From 5580c02a0169fae8725562fd269b168277a03014 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 27 Aug 2024 14:04:18 -0500 Subject: [PATCH] Simplify trait bounds for interface implementations (#3227) --- crates/libs/bindgen/src/rust/implements.rs | 12 +- .../src/Windows/AI/MachineLearning/impl.rs | 63 +- .../ApplicationModel/Activation/impl.rs | 857 +- .../ApplicationModel/Appointments/impl.rs | 27 +- .../ApplicationModel/Background/impl.rs | 168 +- .../src/Windows/ApplicationModel/Chat/impl.rs | 12 +- .../Windows/ApplicationModel/Contacts/impl.rs | 93 +- .../src/Windows/ApplicationModel/Core/impl.rs | 61 +- .../DataTransfer/DragDrop/Core/impl.rs | 27 +- .../Windows/ApplicationModel/Search/impl.rs | 22 +- .../ApplicationModel/UserActivities/impl.rs | 12 +- .../UserDataAccounts/Provider/impl.rs | 12 +- .../src/Windows/ApplicationModel/impl.rs | 77 +- .../windows/src/Windows/Data/Json/impl.rs | 42 +- .../windows/src/Windows/Data/Xml/Dom/impl.rs | 230 +- .../src/Windows/Devices/Adc/Provider/impl.rs | 69 +- .../src/Windows/Devices/Custom/impl.rs | 32 +- .../src/Windows/Devices/Enumeration/impl.rs | 14 +- .../src/Windows/Devices/Geolocation/impl.rs | 22 +- .../src/Windows/Devices/Gpio/Provider/impl.rs | 91 +- .../src/Windows/Devices/I2c/Provider/impl.rs | 66 +- .../windows/src/Windows/Devices/I2c/impl.rs | 22 +- .../Windows/Devices/Lights/Effects/impl.rs | 17 +- .../windows/src/Windows/Devices/Midi/impl.rs | 44 +- .../Windows/Devices/PointOfService/impl.rs | 347 +- .../src/Windows/Devices/Pwm/Provider/impl.rs | 69 +- .../src/Windows/Devices/Scanners/impl.rs | 179 +- .../src/Windows/Devices/Sensors/impl.rs | 49 +- .../windows/src/Windows/Devices/Sms/impl.rs | 205 +- .../src/Windows/Devices/Spi/Provider/impl.rs | 61 +- .../windows/src/Windows/Devices/Spi/impl.rs | 27 +- .../libs/windows/src/Windows/Devices/impl.rs | 32 +- .../Windows/Foundation/Collections/impl.rs | 294 +- .../Windows/Foundation/Diagnostics/impl.rs | 205 +- .../windows/src/Windows/Foundation/impl.rs | 453 +- .../src/Windows/Gaming/Input/Custom/impl.rs | 112 +- .../Gaming/Input/ForceFeedback/impl.rs | 32 +- .../windows/src/Windows/Gaming/Input/impl.rs | 64 +- .../Gaming/Preview/GamesEnumeration/impl.rs | 32 +- .../Globalization/NumberFormatting/impl.rs | 231 +- .../Graphics/DirectX/Direct3D11/impl.rs | 24 +- .../src/Windows/Graphics/Effects/impl.rs | 24 +- .../src/Windows/Graphics/Imaging/impl.rs | 101 +- .../Graphics/Printing/OptionDetails/impl.rs | 105 +- .../src/Windows/Graphics/Printing/impl.rs | 158 +- .../libs/windows/src/Windows/Graphics/impl.rs | 7 +- .../windows/src/Windows/Media/Audio/impl.rs | 118 +- .../windows/src/Windows/Media/Core/impl.rs | 164 +- .../windows/src/Windows/Media/Devices/impl.rs | 39 +- .../windows/src/Windows/Media/Effects/impl.rs | 167 +- .../src/Windows/Media/MediaProperties/impl.rs | 27 +- .../src/Windows/Media/Playback/impl.rs | 24 +- .../Media/Protection/PlayReady/impl.rs | 616 +- .../src/Windows/Media/Protection/impl.rs | 17 +- .../Windows/Media/SpeechRecognition/impl.rs | 42 +- crates/libs/windows/src/Windows/Media/impl.rs | 108 +- .../Networking/BackgroundTransfer/impl.rs | 143 +- .../src/Windows/Networking/Sockets/impl.rs | 174 +- .../src/Windows/Networking/Vpn/impl.rs | 274 +- .../Phone/Notification/Management/impl.rs | 37 +- .../Windows/Phone/PersonalInformation/impl.rs | 104 +- .../src/Windows/Phone/StartScreen/impl.rs | 12 +- .../Authentication/Web/Provider/impl.rs | 109 +- .../src/Windows/Security/Credentials/impl.rs | 22 +- .../src/Windows/Storage/AccessCache/impl.rs | 87 +- .../src/Windows/Storage/BulkAccess/impl.rs | 57 +- .../Windows/Storage/FileProperties/impl.rs | 22 +- .../src/Windows/Storage/Provider/impl.rs | 141 +- .../src/Windows/Storage/Search/impl.rs | 186 +- .../src/Windows/Storage/Streams/impl.rs | 442 +- .../libs/windows/src/Windows/Storage/impl.rs | 327 +- .../Implementation/FileExplorer/impl.rs | 46 +- .../src/Windows/System/RemoteSystems/impl.rs | 7 +- .../libs/windows/src/Windows/System/impl.rs | 17 +- .../UI/Composition/Interactions/impl.rs | 44 +- .../src/Windows/UI/Composition/impl.rs | 74 +- .../Windows/UI/Core/AnimationMetrics/impl.rs | 32 +- .../libs/windows/src/Windows/UI/Core/impl.rs | 501 +- .../Windows/UI/Input/Inking/Analysis/impl.rs | 54 +- .../src/Windows/UI/Input/Inking/impl.rs | 175 +- .../libs/windows/src/Windows/UI/Input/impl.rs | 22 +- .../src/Windows/UI/Notifications/impl.rs | 17 +- .../windows/src/Windows/UI/Popups/impl.rs | 37 +- .../libs/windows/src/Windows/UI/Shell/impl.rs | 24 +- .../libs/windows/src/Windows/UI/Text/impl.rs | 970 +- .../src/Windows/UI/UIAutomation/Core/impl.rs | 29 +- .../windows/src/Windows/UI/WebUI/Core/impl.rs | 14 +- .../libs/windows/src/Windows/UI/WebUI/impl.rs | 41 +- .../src/Windows/Web/Http/Filters/impl.rs | 12 +- .../libs/windows/src/Windows/Web/Http/impl.rs | 42 +- .../src/Windows/Web/Syndication/impl.rs | 176 +- .../libs/windows/src/Windows/Web/UI/impl.rs | 304 +- crates/libs/windows/src/Windows/Web/impl.rs | 12 +- .../Win32/AI/MachineLearning/DirectML/impl.rs | 189 +- .../Win32/AI/MachineLearning/WinML/impl.rs | 411 +- .../src/Windows/Win32/Data/HtmlHelp/impl.rs | 385 +- .../src/Windows/Win32/Data/Xml/MsXml/impl.rs | 3296 +--- .../Windows/Win32/Data/Xml/XmlLite/impl.rs | 433 +- .../Win32/Devices/DeviceAccess/impl.rs | 61 +- .../src/Windows/Win32/Devices/Display/impl.rs | 64 +- .../Win32/Devices/Enumeration/Pnp/impl.rs | 610 +- .../src/Windows/Win32/Devices/Fax/impl.rs | 3598 +--- .../Win32/Devices/FunctionDiscovery/impl.rs | 472 +- .../Windows/Win32/Devices/Geolocation/impl.rs | 350 +- .../Devices/HumanInterfaceDevice/impl.rs | 1089 +- .../Win32/Devices/ImageAcquisition/impl.rs | 1107 +- .../Win32/Devices/PortableDevices/impl.rs | 1197 +- .../src/Windows/Win32/Devices/Sensors/impl.rs | 229 +- .../src/Windows/Win32/Devices/Tapi/impl.rs | 4000 +--- .../Devices/WebServicesOnDevices/impl.rs | 984 +- .../windows/src/Windows/Win32/Gaming/impl.rs | 311 +- .../src/Windows/Win32/Globalization/impl.rs | 952 +- .../Graphics/CompositionSwapchain/impl.rs | 250 +- .../src/Windows/Win32/Graphics/DXCore/impl.rs | 126 +- .../Win32/Graphics/Direct2D/Common/impl.rs | 42 +- .../Windows/Win32/Graphics/Direct2D/impl.rs | 3254 +--- .../Win32/Graphics/Direct3D/Dxc/impl.rs | 683 +- .../Windows/Win32/Graphics/Direct3D/impl.rs | 34 +- .../Windows/Win32/Graphics/Direct3D10/impl.rs | 1297 +- .../Windows/Win32/Graphics/Direct3D11/impl.rs | 2956 +-- .../Win32/Graphics/Direct3D11on12/impl.rs | 47 +- .../Windows/Win32/Graphics/Direct3D12/impl.rs | 2351 +-- .../Windows/Win32/Graphics/Direct3D9/impl.rs | 1235 +- .../Win32/Graphics/Direct3D9on12/impl.rs | 22 +- .../Win32/Graphics/DirectComposition/impl.rs | 1816 +- .../Windows/Win32/Graphics/DirectDraw/impl.rs | 1756 +- .../Win32/Graphics/DirectManipulation/impl.rs | 508 +- .../Win32/Graphics/DirectWrite/impl.rs | 2892 +-- .../src/Windows/Win32/Graphics/Dxgi/impl.rs | 1206 +- .../Windows/Win32/Graphics/GdiPlus/impl.rs | 22 +- .../Win32/Graphics/Imaging/D2D/impl.rs | 32 +- .../Windows/Win32/Graphics/Imaging/impl.rs | 1594 +- .../Windows/Win32/Graphics/Printing/impl.rs | 2070 +-- .../src/Windows/Win32/Media/Audio/Apo/impl.rs | 283 +- .../Win32/Media/Audio/DirectMusic/impl.rs | 497 +- .../Win32/Media/Audio/DirectSound/impl.rs | 688 +- .../Win32/Media/Audio/Endpoints/impl.rs | 280 +- .../Windows/Win32/Media/Audio/XAudio2/impl.rs | 175 +- .../src/Windows/Win32/Media/Audio/impl.rs | 1700 +- .../Windows/Win32/Media/DeviceManager/impl.rs | 1524 +- .../Windows/Win32/Media/DirectShow/Tv/impl.rs | 10195 +++-------- .../Win32/Media/DirectShow/Xml/impl.rs | 22 +- .../Windows/Win32/Media/DirectShow/impl.rs | 9980 +++------- .../Win32/Media/DxMediaObjects/impl.rs | 232 +- .../Win32/Media/KernelStreaming/impl.rs | 594 +- .../Media/LibrarySharingServices/impl.rs | 180 +- .../Win32/Media/MediaFoundation/impl.rs | 10376 +++-------- .../Windows/Win32/Media/MediaPlayer/impl.rs | 4695 +---- .../Windows/Win32/Media/Multimedia/impl.rs | 190 +- .../Win32/Media/PictureAcquisition/impl.rs | 542 +- .../src/Windows/Win32/Media/Speech/impl.rs | 4368 +---- .../Win32/Media/WindowsMediaFormat/impl.rs | 3215 +--- .../windows/src/Windows/Win32/Media/impl.rs | 49 +- .../NetworkManagement/MobileBroadband/impl.rs | 1167 +- .../NetworkManagement/NetManagement/impl.rs | 643 +- .../NetworkDiagnosticsFramework/impl.rs | 155 +- .../NetworkPolicyServer/impl.rs | 240 +- .../Win32/NetworkManagement/WiFi/impl.rs | 305 +- .../WindowsConnectNow/impl.rs | 79 +- .../NetworkManagement/WindowsFirewall/impl.rs | 1765 +- .../Win32/Networking/ActiveDirectory/impl.rs | 3716 +--- .../impl.rs | 1194 +- .../Win32/Networking/Clustering/impl.rs | 1974 +- .../Networking/NetworkListManager/impl.rs | 369 +- .../RemoteDifferentialCompression/impl.rs | 437 +- .../Windows/Win32/Networking/WinHttp/impl.rs | 127 +- .../Windows/Win32/Networking/WinInet/impl.rs | 95 +- .../Networking/WindowsWebServices/impl.rs | 17 +- .../Authentication/Identity/Provider/impl.rs | 503 +- .../Security/Authentication/Identity/impl.rs | 12 +- .../Win32/Security/Authorization/UI/impl.rs | 126 +- .../Win32/Security/Authorization/impl.rs | 2010 +- .../Security/ConfigurationSnapin/impl.rs | 49 +- .../Cryptography/Certificates/impl.rs | 6771 ++----- .../Win32/Security/Cryptography/impl.rs | 335 +- .../Win32/Security/EnterpriseData/impl.rs | 86 +- .../ExtensibleAuthenticationProtocol/impl.rs | 138 +- .../Windows/Win32/Security/Isolation/impl.rs | 54 +- .../src/Windows/Win32/Security/Tpm/impl.rs | 54 +- .../Win32/Storage/DataDeduplication/impl.rs | 177 +- .../Win32/Storage/EnhancedStorage/impl.rs | 143 +- .../Windows/Win32/Storage/FileHistory/impl.rs | 143 +- .../Storage/FileServerResourceManager/impl.rs | 2460 +-- .../Windows/Win32/Storage/FileSystem/impl.rs | 258 +- .../src/Windows/Win32/Storage/Imapi/impl.rs | 2452 +-- .../Windows/Win32/Storage/IndexServer/impl.rs | 49 +- .../Win32/Storage/OfflineFiles/impl.rs | 906 +- .../Win32/Storage/Packaging/Appx/impl.rs | 1737 +- .../Win32/Storage/Packaging/Opc/impl.rs | 973 +- .../Win32/Storage/VirtualDiskService/impl.rs | 1898 +- .../src/Windows/Win32/Storage/Vss/impl.rs | 849 +- .../Win32/Storage/Xps/Printing/impl.rs | 88 +- .../src/Windows/Win32/Storage/Xps/impl.rs | 3167 +--- .../Windows/Win32/System/AddressBook/impl.rs | 833 +- .../Windows/Win32/System/Antimalware/impl.rs | 93 +- .../impl.rs | 1764 +- .../Win32/System/AssessmentTool/impl.rs | 148 +- .../Windows/Win32/System/ClrHosting/impl.rs | 1968 +- .../Windows/Win32/System/Com/CallObj/impl.rs | 202 +- .../System/Com/ChannelCredentials/impl.rs | 55 +- .../Windows/Win32/System/Com/Events/impl.rs | 654 +- .../Windows/Win32/System/Com/Marshal/impl.rs | 52 +- .../System/Com/StructuredStorage/impl.rs | 476 +- .../src/Windows/Win32/System/Com/UI/impl.rs | 29 +- .../Windows/Win32/System/Com/Urlmon/impl.rs | 906 +- .../src/Windows/Win32/System/Com/impl.rs | 3056 +--- .../Win32/System/ComponentServices/impl.rs | 3459 +--- .../src/Windows/Win32/System/Contacts/impl.rs | 847 +- .../Win32/System/DeploymentServices/impl.rs | 760 +- .../Win32/System/DesktopSharing/impl.rs | 818 +- .../System/Diagnostics/ClrProfiling/impl.rs | 1365 +- .../Diagnostics/Debug/ActiveScript/impl.rs | 3112 +--- .../Diagnostics/Debug/Extensions/impl.rs | 15259 ++++------------ .../Win32/System/Diagnostics/Debug/impl.rs | 187 +- .../Win32/System/Diagnostics/Etw/impl.rs | 141 +- .../DistributedTransactionCoordinator/impl.rs | 1346 +- .../System/EventNotificationService/impl.rs | 120 +- .../Windows/Win32/System/GroupPolicy/impl.rs | 2043 +-- .../src/Windows/Win32/System/Iis/impl.rs | 500 +- .../Win32/System/MessageQueuing/impl.rs | 3443 +--- .../src/Windows/Win32/System/Mmc/impl.rs | 2016 +- .../src/Windows/Win32/System/Ole/impl.rs | 2778 +-- .../Win32/System/ParentalControls/impl.rs | 135 +- .../Windows/Win32/System/Performance/impl.rs | 2937 +-- .../System/RealTimeCommunications/impl.rs | 2126 +-- .../Win32/System/RemoteAssistance/impl.rs | 49 +- .../Win32/System/RemoteDesktop/impl.rs | 2809 +-- .../Win32/System/RemoteManagement/impl.rs | 432 +- .../src/Windows/Win32/System/Search/impl.rs | 4062 +--- .../Win32/System/SecurityCenter/impl.rs | 115 +- .../Windows/Win32/System/ServerBackup/impl.rs | 56 +- .../SettingsManagementInfrastructure/impl.rs | 486 +- .../src/Windows/Win32/System/SideShow/impl.rs | 280 +- .../Win32/System/TaskScheduler/impl.rs | 2146 +-- .../Windows/Win32/System/Threading/impl.rs | 76 +- .../Win32/System/TransactionServer/impl.rs | 100 +- .../Windows/Win32/System/UpdateAgent/impl.rs | 2162 +-- .../Win32/System/UpdateAssessment/impl.rs | 12 +- .../Win32/System/WinRT/AllJoyn/impl.rs | 58 +- .../Win32/System/WinRT/Composition/impl.rs | 168 +- .../Win32/System/WinRT/CoreInputView/impl.rs | 12 +- .../Win32/System/WinRT/Direct3D11/impl.rs | 12 +- .../Win32/System/WinRT/Display/impl.rs | 34 +- .../System/WinRT/Graphics/Capture/impl.rs | 17 +- .../System/WinRT/Graphics/Direct2D/impl.rs | 54 +- .../System/WinRT/Graphics/Imaging/impl.rs | 29 +- .../Win32/System/WinRT/Holographic/impl.rs | 93 +- .../Win32/System/WinRT/Isolation/impl.rs | 12 +- .../src/Windows/Win32/System/WinRT/ML/impl.rs | 77 +- .../Windows/Win32/System/WinRT/Media/impl.rs | 53 +- .../Win32/System/WinRT/Metadata/impl.rs | 1148 +- .../Windows/Win32/System/WinRT/Pdf/impl.rs | 17 +- .../Win32/System/WinRT/Printing/impl.rs | 161 +- .../Windows/Win32/System/WinRT/Shell/impl.rs | 12 +- .../Win32/System/WinRT/Storage/impl.rs | 77 +- .../src/Windows/Win32/System/WinRT/impl.rs | 596 +- .../Win32/System/WindowsProgramming/impl.rs | 210 +- .../Windows/Win32/System/WindowsSync/impl.rs | 1980 +- .../src/Windows/Win32/System/Wmi/impl.rs | 2457 +-- .../Windows/Win32/UI/Accessibility/impl.rs | 4588 +---- .../src/Windows/Win32/UI/Animation/impl.rs | 1242 +- .../src/Windows/Win32/UI/ColorSystem/impl.rs | 79 +- .../Windows/Win32/UI/Controls/Dialogs/impl.rs | 44 +- .../Win32/UI/Controls/RichEdit/impl.rs | 2782 +-- .../src/Windows/Win32/UI/Controls/impl.rs | 217 +- .../src/Windows/Win32/UI/Input/Ime/impl.rs | 1265 +- .../src/Windows/Win32/UI/Input/Ink/impl.rs | 102 +- .../src/Windows/Win32/UI/Input/Radial/impl.rs | 36 +- .../src/Windows/Win32/UI/Input/Touch/impl.rs | 386 +- .../LegacyWindowsEnvironmentFeatures/impl.rs | 159 +- .../Windows/Win32/UI/Notifications/impl.rs | 12 +- .../src/Windows/Win32/UI/Ribbon/impl.rs | 239 +- .../src/Windows/Win32/UI/Shell/Common/impl.rs | 42 +- .../Win32/UI/Shell/PropertiesSystem/impl.rs | 634 +- .../src/Windows/Win32/UI/Shell/impl.rs | 12283 +++---------- .../src/Windows/Win32/UI/TabletPC/impl.rs | 3892 +--- .../src/Windows/Win32/UI/TextServices/impl.rs | 4134 +---- .../windows/src/Windows/Win32/UI/Wpf/impl.rs | 464 +- .../Win32/Web/InternetExplorer/impl.rs | 1633 +- .../json_validator_winrt/src/bindings.rs | 34 +- crates/tests/component/src/bindings.rs | 78 +- crates/tests/noexcept/src/bindings.rs | 178 +- 282 files changed, 52784 insertions(+), 197878 deletions(-) diff --git a/crates/libs/bindgen/src/rust/implements.rs b/crates/libs/bindgen/src/rust/implements.rs index 34359e4a00..380c527c2d 100644 --- a/crates/libs/bindgen/src/rust/implements.rs +++ b/crates/libs/bindgen/src/rust/implements.rs @@ -45,7 +45,9 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef) -> TokenStream { let mut matches = quote! { iid == &<#type_ident as windows_core::Interface>::IID }; if let Some(metadata::Type::TypeDef(def, _)) = vtables.last() { - requires.combine(&gen_required_trait(writer, *def, &[])) + requires.combine(&gen_required_trait(writer, *def, &[])); + } else if has_unknown_base { + requires.combine("e! { + windows_core::IUnknownImpl }); } for def in &vtables { @@ -99,11 +101,9 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef) -> TokenStream { quote! { unsafe extern "system" fn #name< #constraints - Identity: windows_core::IUnknownImpl, + Identity: #impl_ident<#generic_names>, const OFFSET: isize > #vtbl_signature - where - Identity: #impl_ident<#generic_names> { // offset the `this` pointer by `OFFSET` times the size of a pointer and cast it as an IUnknown implementation let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); @@ -158,11 +158,9 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef) -> TokenStream { #features impl<#constraints> #vtbl_ident<#generic_names> { pub const fn new< - Identity: windows_core::IUnknownImpl, + Identity: #impl_ident<#generic_names>, const OFFSET: isize >() -> #vtbl_ident<#generic_names> - where - Identity : #impl_ident<#generic_names> { #(#method_impls)* Self{ diff --git a/crates/libs/windows/src/Windows/AI/MachineLearning/impl.rs b/crates/libs/windows/src/Windows/AI/MachineLearning/impl.rs index f5ac0cf564..1b5013287e 100644 --- a/crates/libs/windows/src/Windows/AI/MachineLearning/impl.rs +++ b/crates/libs/windows/src/Windows/AI/MachineLearning/impl.rs @@ -1,4 +1,4 @@ -pub trait ILearningModelFeatureDescriptor_Impl: Sized { +pub trait ILearningModelFeatureDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn Name(&self) -> windows_core::Result; fn Description(&self) -> windows_core::Result; fn Kind(&self) -> windows_core::Result; @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for ILearningModelFeatureDescriptor { const NAME: &'static str = "Windows.AI.MachineLearning.ILearningModelFeatureDescriptor"; } impl ILearningModelFeatureDescriptor_Vtbl { - pub const fn new() -> ILearningModelFeatureDescriptor_Vtbl - where - Identity: ILearningModelFeatureDescriptor_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILearningModelFeatureDescriptor_Impl, - { + pub const fn new() -> ILearningModelFeatureDescriptor_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILearningModelFeatureDescriptor_Impl::Name(this) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl ILearningModelFeatureDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILearningModelFeatureDescriptor_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILearningModelFeatureDescriptor_Impl::Description(this) { Ok(ok__) => { @@ -40,10 +31,7 @@ impl ILearningModelFeatureDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut LearningModelFeatureKind) -> windows_core::HRESULT - where - Identity: ILearningModelFeatureDescriptor_Impl, - { + unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut LearningModelFeatureKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILearningModelFeatureDescriptor_Impl::Kind(this) { Ok(ok__) => { @@ -53,10 +41,7 @@ impl ILearningModelFeatureDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRequired(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ILearningModelFeatureDescriptor_Impl, - { + unsafe extern "system" fn IsRequired(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILearningModelFeatureDescriptor_Impl::IsRequired(this) { Ok(ok__) => { @@ -78,21 +63,15 @@ impl ILearningModelFeatureDescriptor_Vtbl { iid == &::IID } } -pub trait ILearningModelFeatureValue_Impl: Sized { +pub trait ILearningModelFeatureValue_Impl: Sized + windows_core::IUnknownImpl { fn Kind(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ILearningModelFeatureValue { const NAME: &'static str = "Windows.AI.MachineLearning.ILearningModelFeatureValue"; } impl ILearningModelFeatureValue_Vtbl { - pub const fn new() -> ILearningModelFeatureValue_Vtbl - where - Identity: ILearningModelFeatureValue_Impl, - { - unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut LearningModelFeatureKind) -> windows_core::HRESULT - where - Identity: ILearningModelFeatureValue_Impl, - { + pub const fn new() -> ILearningModelFeatureValue_Vtbl { + unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut LearningModelFeatureKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILearningModelFeatureValue_Impl::Kind(this) { Ok(ok__) => { @@ -108,15 +87,12 @@ impl ILearningModelFeatureValue_Vtbl { iid == &::IID } } -pub trait ILearningModelOperatorProvider_Impl: Sized {} +pub trait ILearningModelOperatorProvider_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for ILearningModelOperatorProvider { const NAME: &'static str = "Windows.AI.MachineLearning.ILearningModelOperatorProvider"; } impl ILearningModelOperatorProvider_Vtbl { - pub const fn new() -> ILearningModelOperatorProvider_Vtbl - where - Identity: ILearningModelOperatorProvider_Impl, - { + pub const fn new() -> ILearningModelOperatorProvider_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -124,7 +100,7 @@ impl ILearningModelOperatorProvider_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait ITensor_Impl: Sized + ILearningModelFeatureValue_Impl { +pub trait ITensor_Impl: Sized + windows_core::IUnknownImpl + ILearningModelFeatureValue_Impl { fn TensorKind(&self) -> windows_core::Result; fn Shape(&self) -> windows_core::Result>; } @@ -134,14 +110,8 @@ impl windows_core::RuntimeName for ITensor { } #[cfg(feature = "Foundation_Collections")] impl ITensor_Vtbl { - pub const fn new() -> ITensor_Vtbl - where - Identity: ITensor_Impl, - { - unsafe extern "system" fn TensorKind(this: *mut core::ffi::c_void, result__: *mut TensorKind) -> windows_core::HRESULT - where - Identity: ITensor_Impl, - { + pub const fn new() -> ITensor_Vtbl { + unsafe extern "system" fn TensorKind(this: *mut core::ffi::c_void, result__: *mut TensorKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITensor_Impl::TensorKind(this) { Ok(ok__) => { @@ -151,10 +121,7 @@ impl ITensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shape(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITensor_Impl, - { + unsafe extern "system" fn Shape(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITensor_Impl::Shape(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Activation/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Activation/impl.rs index d0151b78af..a37896e867 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Activation/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Activation/impl.rs @@ -1,4 +1,4 @@ -pub trait IActivatedEventArgs_Impl: Sized { +pub trait IActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn Kind(&self) -> windows_core::Result; fn PreviousExecutionState(&self) -> windows_core::Result; fn SplashScreen(&self) -> windows_core::Result; @@ -7,14 +7,8 @@ impl windows_core::RuntimeName for IActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IActivatedEventArgs"; } impl IActivatedEventArgs_Vtbl { - pub const fn new() -> IActivatedEventArgs_Vtbl - where - Identity: IActivatedEventArgs_Impl, - { - unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut ActivationKind) -> windows_core::HRESULT - where - Identity: IActivatedEventArgs_Impl, - { + pub const fn new() -> IActivatedEventArgs_Vtbl { + unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut ActivationKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActivatedEventArgs_Impl::Kind(this) { Ok(ok__) => { @@ -24,10 +18,7 @@ impl IActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PreviousExecutionState(this: *mut core::ffi::c_void, result__: *mut ApplicationExecutionState) -> windows_core::HRESULT - where - Identity: IActivatedEventArgs_Impl, - { + unsafe extern "system" fn PreviousExecutionState(this: *mut core::ffi::c_void, result__: *mut ApplicationExecutionState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActivatedEventArgs_Impl::PreviousExecutionState(this) { Ok(ok__) => { @@ -37,10 +28,7 @@ impl IActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SplashScreen(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActivatedEventArgs_Impl, - { + unsafe extern "system" fn SplashScreen(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActivatedEventArgs_Impl::SplashScreen(this) { Ok(ok__) => { @@ -63,7 +51,7 @@ impl IActivatedEventArgs_Vtbl { } } #[cfg(feature = "System")] -pub trait IActivatedEventArgsWithUser_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IActivatedEventArgsWithUser_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn User(&self) -> windows_core::Result; } #[cfg(feature = "System")] @@ -72,14 +60,8 @@ impl windows_core::RuntimeName for IActivatedEventArgsWithUser { } #[cfg(feature = "System")] impl IActivatedEventArgsWithUser_Vtbl { - pub const fn new() -> IActivatedEventArgsWithUser_Vtbl - where - Identity: IActivatedEventArgsWithUser_Impl, - { - unsafe extern "system" fn User(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActivatedEventArgsWithUser_Impl, - { + pub const fn new() -> IActivatedEventArgsWithUser_Vtbl { + unsafe extern "system" fn User(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActivatedEventArgsWithUser_Impl::User(this) { Ok(ok__) => { @@ -96,21 +78,15 @@ impl IActivatedEventArgsWithUser_Vtbl { iid == &::IID } } -pub trait IApplicationViewActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IApplicationViewActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn CurrentlyShownApplicationViewId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IApplicationViewActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IApplicationViewActivatedEventArgs"; } impl IApplicationViewActivatedEventArgs_Vtbl { - pub const fn new() -> IApplicationViewActivatedEventArgs_Vtbl - where - Identity: IApplicationViewActivatedEventArgs_Impl, - { - unsafe extern "system" fn CurrentlyShownApplicationViewId(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IApplicationViewActivatedEventArgs_Impl, - { + pub const fn new() -> IApplicationViewActivatedEventArgs_Vtbl { + unsafe extern "system" fn CurrentlyShownApplicationViewId(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationViewActivatedEventArgs_Impl::CurrentlyShownApplicationViewId(this) { Ok(ok__) => { @@ -129,21 +105,15 @@ impl IApplicationViewActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IAppointmentsProviderActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IAppointmentsProviderActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Verb(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppointmentsProviderActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IAppointmentsProviderActivatedEventArgs"; } impl IAppointmentsProviderActivatedEventArgs_Vtbl { - pub const fn new() -> IAppointmentsProviderActivatedEventArgs_Vtbl - where - Identity: IAppointmentsProviderActivatedEventArgs_Impl, - { - unsafe extern "system" fn Verb(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAppointmentsProviderActivatedEventArgs_Impl, - { + pub const fn new() -> IAppointmentsProviderActivatedEventArgs_Vtbl { + unsafe extern "system" fn Verb(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentsProviderActivatedEventArgs_Impl::Verb(this) { Ok(ok__) => { @@ -161,7 +131,7 @@ impl IAppointmentsProviderActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] -pub trait IAppointmentsProviderAddAppointmentActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { +pub trait IAppointmentsProviderAddAppointmentActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { fn AddAppointmentOperation(&self) -> windows_core::Result; } #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] @@ -170,14 +140,8 @@ impl windows_core::RuntimeName for IAppointmentsProviderAddAppointmentActivatedE } #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] impl IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl { - pub const fn new() -> IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl - where - Identity: IAppointmentsProviderAddAppointmentActivatedEventArgs_Impl, - { - unsafe extern "system" fn AddAppointmentOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppointmentsProviderAddAppointmentActivatedEventArgs_Impl, - { + pub const fn new() -> IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl { + unsafe extern "system" fn AddAppointmentOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentsProviderAddAppointmentActivatedEventArgs_Impl::AddAppointmentOperation(this) { Ok(ok__) => { @@ -198,7 +162,7 @@ impl IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] -pub trait IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { +pub trait IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { fn RemoveAppointmentOperation(&self) -> windows_core::Result; } #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] @@ -207,14 +171,8 @@ impl windows_core::RuntimeName for IAppointmentsProviderRemoveAppointmentActivat } #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] impl IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl { - pub const fn new() -> IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl - where - Identity: IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Impl, - { - unsafe extern "system" fn RemoveAppointmentOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Impl, - { + pub const fn new() -> IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl { + unsafe extern "system" fn RemoveAppointmentOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Impl::RemoveAppointmentOperation(this) { Ok(ok__) => { @@ -235,7 +193,7 @@ impl IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] -pub trait IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { +pub trait IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { fn ReplaceAppointmentOperation(&self) -> windows_core::Result; } #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] @@ -244,14 +202,8 @@ impl windows_core::RuntimeName for IAppointmentsProviderReplaceAppointmentActiva } #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] impl IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl { - pub const fn new() -> IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl - where - Identity: IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Impl, - { - unsafe extern "system" fn ReplaceAppointmentOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Impl, - { + pub const fn new() -> IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl { + unsafe extern "system" fn ReplaceAppointmentOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Impl::ReplaceAppointmentOperation(this) { Ok(ok__) => { @@ -271,7 +223,7 @@ impl IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { +pub trait IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { fn InstanceStartDate(&self) -> windows_core::Result>; fn LocalId(&self) -> windows_core::Result; fn RoamingId(&self) -> windows_core::Result; @@ -280,14 +232,8 @@ impl windows_core::RuntimeName for IAppointmentsProviderShowAppointmentDetailsAc const NAME: &'static str = "Windows.ApplicationModel.Activation.IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs"; } impl IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl { - pub const fn new() -> IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl - where - Identity: IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Impl, - { - unsafe extern "system" fn InstanceStartDate(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Impl, - { + pub const fn new() -> IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl { + unsafe extern "system" fn InstanceStartDate(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Impl::InstanceStartDate(this) { Ok(ok__) => { @@ -298,10 +244,7 @@ impl IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Impl, - { + unsafe extern "system" fn LocalId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Impl::LocalId(this) { Ok(ok__) => { @@ -312,10 +255,7 @@ impl IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoamingId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Impl, - { + unsafe extern "system" fn RoamingId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Impl::RoamingId(this) { Ok(ok__) => { @@ -337,7 +277,7 @@ impl IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IAppointmentsProviderShowTimeFrameActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { +pub trait IAppointmentsProviderShowTimeFrameActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { fn TimeToShow(&self) -> windows_core::Result; fn Duration(&self) -> windows_core::Result; } @@ -345,14 +285,8 @@ impl windows_core::RuntimeName for IAppointmentsProviderShowTimeFrameActivatedEv const NAME: &'static str = "Windows.ApplicationModel.Activation.IAppointmentsProviderShowTimeFrameActivatedEventArgs"; } impl IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl { - pub const fn new() -> IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl - where - Identity: IAppointmentsProviderShowTimeFrameActivatedEventArgs_Impl, - { - unsafe extern "system" fn TimeToShow(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IAppointmentsProviderShowTimeFrameActivatedEventArgs_Impl, - { + pub const fn new() -> IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl { + unsafe extern "system" fn TimeToShow(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentsProviderShowTimeFrameActivatedEventArgs_Impl::TimeToShow(this) { Ok(ok__) => { @@ -362,10 +296,7 @@ impl IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IAppointmentsProviderShowTimeFrameActivatedEventArgs_Impl, - { + unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentsProviderShowTimeFrameActivatedEventArgs_Impl::Duration(this) { Ok(ok__) => { @@ -386,7 +317,7 @@ impl IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Background")] -pub trait IBackgroundActivatedEventArgs_Impl: Sized { +pub trait IBackgroundActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn TaskInstance(&self) -> windows_core::Result; } #[cfg(feature = "ApplicationModel_Background")] @@ -395,14 +326,8 @@ impl windows_core::RuntimeName for IBackgroundActivatedEventArgs { } #[cfg(feature = "ApplicationModel_Background")] impl IBackgroundActivatedEventArgs_Vtbl { - pub const fn new() -> IBackgroundActivatedEventArgs_Vtbl - where - Identity: IBackgroundActivatedEventArgs_Impl, - { - unsafe extern "system" fn TaskInstance(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundActivatedEventArgs_Impl, - { + pub const fn new() -> IBackgroundActivatedEventArgs_Vtbl { + unsafe extern "system" fn TaskInstance(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundActivatedEventArgs_Impl::TaskInstance(this) { Ok(ok__) => { @@ -422,21 +347,15 @@ impl IBackgroundActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IBarcodeScannerPreviewActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IBarcodeScannerPreviewActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn ConnectionId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IBarcodeScannerPreviewActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IBarcodeScannerPreviewActivatedEventArgs"; } impl IBarcodeScannerPreviewActivatedEventArgs_Vtbl { - pub const fn new() -> IBarcodeScannerPreviewActivatedEventArgs_Vtbl - where - Identity: IBarcodeScannerPreviewActivatedEventArgs_Impl, - { - unsafe extern "system" fn ConnectionId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBarcodeScannerPreviewActivatedEventArgs_Impl, - { + pub const fn new() -> IBarcodeScannerPreviewActivatedEventArgs_Vtbl { + unsafe extern "system" fn ConnectionId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBarcodeScannerPreviewActivatedEventArgs_Impl::ConnectionId(this) { Ok(ok__) => { @@ -457,7 +376,7 @@ impl IBarcodeScannerPreviewActivatedEventArgs_Vtbl { } } #[cfg(feature = "Storage_Provider")] -pub trait ICachedFileUpdaterActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait ICachedFileUpdaterActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn CachedFileUpdaterUI(&self) -> windows_core::Result; } #[cfg(feature = "Storage_Provider")] @@ -466,14 +385,8 @@ impl windows_core::RuntimeName for ICachedFileUpdaterActivatedEventArgs { } #[cfg(feature = "Storage_Provider")] impl ICachedFileUpdaterActivatedEventArgs_Vtbl { - pub const fn new() -> ICachedFileUpdaterActivatedEventArgs_Vtbl - where - Identity: ICachedFileUpdaterActivatedEventArgs_Impl, - { - unsafe extern "system" fn CachedFileUpdaterUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICachedFileUpdaterActivatedEventArgs_Impl, - { + pub const fn new() -> ICachedFileUpdaterActivatedEventArgs_Vtbl { + unsafe extern "system" fn CachedFileUpdaterUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICachedFileUpdaterActivatedEventArgs_Impl::CachedFileUpdaterUI(this) { Ok(ok__) => { @@ -493,7 +406,7 @@ impl ICachedFileUpdaterActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait ICameraSettingsActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait ICameraSettingsActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn VideoDeviceController(&self) -> windows_core::Result; fn VideoDeviceExtension(&self) -> windows_core::Result; } @@ -501,14 +414,8 @@ impl windows_core::RuntimeName for ICameraSettingsActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ICameraSettingsActivatedEventArgs"; } impl ICameraSettingsActivatedEventArgs_Vtbl { - pub const fn new() -> ICameraSettingsActivatedEventArgs_Vtbl - where - Identity: ICameraSettingsActivatedEventArgs_Impl, - { - unsafe extern "system" fn VideoDeviceController(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICameraSettingsActivatedEventArgs_Impl, - { + pub const fn new() -> ICameraSettingsActivatedEventArgs_Vtbl { + unsafe extern "system" fn VideoDeviceController(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICameraSettingsActivatedEventArgs_Impl::VideoDeviceController(this) { Ok(ok__) => { @@ -519,10 +426,7 @@ impl ICameraSettingsActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VideoDeviceExtension(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICameraSettingsActivatedEventArgs_Impl, - { + unsafe extern "system" fn VideoDeviceExtension(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICameraSettingsActivatedEventArgs_Impl::VideoDeviceExtension(this) { Ok(ok__) => { @@ -543,21 +447,15 @@ impl ICameraSettingsActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait ICommandLineActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait ICommandLineActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Operation(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ICommandLineActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ICommandLineActivatedEventArgs"; } impl ICommandLineActivatedEventArgs_Vtbl { - pub const fn new() -> ICommandLineActivatedEventArgs_Vtbl - where - Identity: ICommandLineActivatedEventArgs_Impl, - { - unsafe extern "system" fn Operation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommandLineActivatedEventArgs_Impl, - { + pub const fn new() -> ICommandLineActivatedEventArgs_Vtbl { + unsafe extern "system" fn Operation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommandLineActivatedEventArgs_Impl::Operation(this) { Ok(ok__) => { @@ -574,21 +472,15 @@ impl ICommandLineActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IContactActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IContactActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Verb(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IContactActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IContactActivatedEventArgs"; } impl IContactActivatedEventArgs_Vtbl { - pub const fn new() -> IContactActivatedEventArgs_Vtbl - where - Identity: IContactActivatedEventArgs_Impl, - { - unsafe extern "system" fn Verb(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactActivatedEventArgs_Impl, - { + pub const fn new() -> IContactActivatedEventArgs_Vtbl { + unsafe extern "system" fn Verb(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactActivatedEventArgs_Impl::Verb(this) { Ok(ok__) => { @@ -606,7 +498,7 @@ impl IContactActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Contacts")] -pub trait IContactCallActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IContactActivatedEventArgs_Impl { +pub trait IContactCallActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IContactActivatedEventArgs_Impl { fn ServiceId(&self) -> windows_core::Result; fn ServiceUserId(&self) -> windows_core::Result; fn Contact(&self) -> windows_core::Result; @@ -617,14 +509,8 @@ impl windows_core::RuntimeName for IContactCallActivatedEventArgs { } #[cfg(feature = "ApplicationModel_Contacts")] impl IContactCallActivatedEventArgs_Vtbl { - pub const fn new() -> IContactCallActivatedEventArgs_Vtbl - where - Identity: IContactCallActivatedEventArgs_Impl, - { - unsafe extern "system" fn ServiceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactCallActivatedEventArgs_Impl, - { + pub const fn new() -> IContactCallActivatedEventArgs_Vtbl { + unsafe extern "system" fn ServiceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactCallActivatedEventArgs_Impl::ServiceId(this) { Ok(ok__) => { @@ -635,10 +521,7 @@ impl IContactCallActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceUserId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactCallActivatedEventArgs_Impl, - { + unsafe extern "system" fn ServiceUserId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactCallActivatedEventArgs_Impl::ServiceUserId(this) { Ok(ok__) => { @@ -649,10 +532,7 @@ impl IContactCallActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactCallActivatedEventArgs_Impl, - { + unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactCallActivatedEventArgs_Impl::Contact(this) { Ok(ok__) => { @@ -675,7 +555,7 @@ impl IContactCallActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Contacts")] -pub trait IContactMapActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IContactActivatedEventArgs_Impl { +pub trait IContactMapActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IContactActivatedEventArgs_Impl { fn Address(&self) -> windows_core::Result; fn Contact(&self) -> windows_core::Result; } @@ -685,14 +565,8 @@ impl windows_core::RuntimeName for IContactMapActivatedEventArgs { } #[cfg(feature = "ApplicationModel_Contacts")] impl IContactMapActivatedEventArgs_Vtbl { - pub const fn new() -> IContactMapActivatedEventArgs_Vtbl - where - Identity: IContactMapActivatedEventArgs_Impl, - { - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactMapActivatedEventArgs_Impl, - { + pub const fn new() -> IContactMapActivatedEventArgs_Vtbl { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactMapActivatedEventArgs_Impl::Address(this) { Ok(ok__) => { @@ -703,10 +577,7 @@ impl IContactMapActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactMapActivatedEventArgs_Impl, - { + unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactMapActivatedEventArgs_Impl::Contact(this) { Ok(ok__) => { @@ -728,7 +599,7 @@ impl IContactMapActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Contacts")] -pub trait IContactMessageActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IContactActivatedEventArgs_Impl { +pub trait IContactMessageActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IContactActivatedEventArgs_Impl { fn ServiceId(&self) -> windows_core::Result; fn ServiceUserId(&self) -> windows_core::Result; fn Contact(&self) -> windows_core::Result; @@ -739,14 +610,8 @@ impl windows_core::RuntimeName for IContactMessageActivatedEventArgs { } #[cfg(feature = "ApplicationModel_Contacts")] impl IContactMessageActivatedEventArgs_Vtbl { - pub const fn new() -> IContactMessageActivatedEventArgs_Vtbl - where - Identity: IContactMessageActivatedEventArgs_Impl, - { - unsafe extern "system" fn ServiceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactMessageActivatedEventArgs_Impl, - { + pub const fn new() -> IContactMessageActivatedEventArgs_Vtbl { + unsafe extern "system" fn ServiceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactMessageActivatedEventArgs_Impl::ServiceId(this) { Ok(ok__) => { @@ -757,10 +622,7 @@ impl IContactMessageActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceUserId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactMessageActivatedEventArgs_Impl, - { + unsafe extern "system" fn ServiceUserId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactMessageActivatedEventArgs_Impl::ServiceUserId(this) { Ok(ok__) => { @@ -771,10 +633,7 @@ impl IContactMessageActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactMessageActivatedEventArgs_Impl, - { + unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactMessageActivatedEventArgs_Impl::Contact(this) { Ok(ok__) => { @@ -797,7 +656,7 @@ impl IContactMessageActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Contacts")] -pub trait IContactPanelActivatedEventArgs_Impl: Sized { +pub trait IContactPanelActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn ContactPanel(&self) -> windows_core::Result; fn Contact(&self) -> windows_core::Result; } @@ -807,14 +666,8 @@ impl windows_core::RuntimeName for IContactPanelActivatedEventArgs { } #[cfg(feature = "ApplicationModel_Contacts")] impl IContactPanelActivatedEventArgs_Vtbl { - pub const fn new() -> IContactPanelActivatedEventArgs_Vtbl - where - Identity: IContactPanelActivatedEventArgs_Impl, - { - unsafe extern "system" fn ContactPanel(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactPanelActivatedEventArgs_Impl, - { + pub const fn new() -> IContactPanelActivatedEventArgs_Vtbl { + unsafe extern "system" fn ContactPanel(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactPanelActivatedEventArgs_Impl::ContactPanel(this) { Ok(ok__) => { @@ -825,10 +678,7 @@ impl IContactPanelActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactPanelActivatedEventArgs_Impl, - { + unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactPanelActivatedEventArgs_Impl::Contact(this) { Ok(ok__) => { @@ -850,7 +700,7 @@ impl IContactPanelActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Contacts_Provider")] -pub trait IContactPickerActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IContactPickerActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn ContactPickerUI(&self) -> windows_core::Result; } #[cfg(feature = "ApplicationModel_Contacts_Provider")] @@ -859,14 +709,8 @@ impl windows_core::RuntimeName for IContactPickerActivatedEventArgs { } #[cfg(feature = "ApplicationModel_Contacts_Provider")] impl IContactPickerActivatedEventArgs_Vtbl { - pub const fn new() -> IContactPickerActivatedEventArgs_Vtbl - where - Identity: IContactPickerActivatedEventArgs_Impl, - { - unsafe extern "system" fn ContactPickerUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactPickerActivatedEventArgs_Impl, - { + pub const fn new() -> IContactPickerActivatedEventArgs_Vtbl { + unsafe extern "system" fn ContactPickerUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactPickerActivatedEventArgs_Impl::ContactPickerUI(this) { Ok(ok__) => { @@ -887,7 +731,7 @@ impl IContactPickerActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Contacts")] -pub trait IContactPostActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IContactActivatedEventArgs_Impl { +pub trait IContactPostActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IContactActivatedEventArgs_Impl { fn ServiceId(&self) -> windows_core::Result; fn ServiceUserId(&self) -> windows_core::Result; fn Contact(&self) -> windows_core::Result; @@ -898,14 +742,8 @@ impl windows_core::RuntimeName for IContactPostActivatedEventArgs { } #[cfg(feature = "ApplicationModel_Contacts")] impl IContactPostActivatedEventArgs_Vtbl { - pub const fn new() -> IContactPostActivatedEventArgs_Vtbl - where - Identity: IContactPostActivatedEventArgs_Impl, - { - unsafe extern "system" fn ServiceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactPostActivatedEventArgs_Impl, - { + pub const fn new() -> IContactPostActivatedEventArgs_Vtbl { + unsafe extern "system" fn ServiceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactPostActivatedEventArgs_Impl::ServiceId(this) { Ok(ok__) => { @@ -916,10 +754,7 @@ impl IContactPostActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceUserId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactPostActivatedEventArgs_Impl, - { + unsafe extern "system" fn ServiceUserId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactPostActivatedEventArgs_Impl::ServiceUserId(this) { Ok(ok__) => { @@ -930,10 +765,7 @@ impl IContactPostActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactPostActivatedEventArgs_Impl, - { + unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactPostActivatedEventArgs_Impl::Contact(this) { Ok(ok__) => { @@ -956,7 +788,7 @@ impl IContactPostActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Contacts")] -pub trait IContactVideoCallActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IContactActivatedEventArgs_Impl { +pub trait IContactVideoCallActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IContactActivatedEventArgs_Impl { fn ServiceId(&self) -> windows_core::Result; fn ServiceUserId(&self) -> windows_core::Result; fn Contact(&self) -> windows_core::Result; @@ -967,14 +799,8 @@ impl windows_core::RuntimeName for IContactVideoCallActivatedEventArgs { } #[cfg(feature = "ApplicationModel_Contacts")] impl IContactVideoCallActivatedEventArgs_Vtbl { - pub const fn new() -> IContactVideoCallActivatedEventArgs_Vtbl - where - Identity: IContactVideoCallActivatedEventArgs_Impl, - { - unsafe extern "system" fn ServiceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactVideoCallActivatedEventArgs_Impl, - { + pub const fn new() -> IContactVideoCallActivatedEventArgs_Vtbl { + unsafe extern "system" fn ServiceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactVideoCallActivatedEventArgs_Impl::ServiceId(this) { Ok(ok__) => { @@ -985,10 +811,7 @@ impl IContactVideoCallActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceUserId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactVideoCallActivatedEventArgs_Impl, - { + unsafe extern "system" fn ServiceUserId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactVideoCallActivatedEventArgs_Impl::ServiceUserId(this) { Ok(ok__) => { @@ -999,10 +822,7 @@ impl IContactVideoCallActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactVideoCallActivatedEventArgs_Impl, - { + unsafe extern "system" fn Contact(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactVideoCallActivatedEventArgs_Impl::Contact(this) { Ok(ok__) => { @@ -1024,21 +844,15 @@ impl IContactVideoCallActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IContactsProviderActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IContactsProviderActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Verb(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IContactsProviderActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IContactsProviderActivatedEventArgs"; } impl IContactsProviderActivatedEventArgs_Vtbl { - pub const fn new() -> IContactsProviderActivatedEventArgs_Vtbl - where - Identity: IContactsProviderActivatedEventArgs_Impl, - { - unsafe extern "system" fn Verb(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactsProviderActivatedEventArgs_Impl, - { + pub const fn new() -> IContactsProviderActivatedEventArgs_Vtbl { + unsafe extern "system" fn Verb(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactsProviderActivatedEventArgs_Impl::Verb(this) { Ok(ok__) => { @@ -1056,7 +870,7 @@ impl IContactsProviderActivatedEventArgs_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IContinuationActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IContinuationActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn ContinuationData(&self) -> windows_core::Result; } #[cfg(feature = "Foundation_Collections")] @@ -1065,14 +879,8 @@ impl windows_core::RuntimeName for IContinuationActivatedEventArgs { } #[cfg(feature = "Foundation_Collections")] impl IContinuationActivatedEventArgs_Vtbl { - pub const fn new() -> IContinuationActivatedEventArgs_Vtbl - where - Identity: IContinuationActivatedEventArgs_Impl, - { - unsafe extern "system" fn ContinuationData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContinuationActivatedEventArgs_Impl, - { + pub const fn new() -> IContinuationActivatedEventArgs_Vtbl { + unsafe extern "system" fn ContinuationData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContinuationActivatedEventArgs_Impl::ContinuationData(this) { Ok(ok__) => { @@ -1092,7 +900,7 @@ impl IContinuationActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IDeviceActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IDeviceActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn DeviceInformationId(&self) -> windows_core::Result; fn Verb(&self) -> windows_core::Result; } @@ -1100,14 +908,8 @@ impl windows_core::RuntimeName for IDeviceActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IDeviceActivatedEventArgs"; } impl IDeviceActivatedEventArgs_Vtbl { - pub const fn new() -> IDeviceActivatedEventArgs_Vtbl - where - Identity: IDeviceActivatedEventArgs_Impl, - { - unsafe extern "system" fn DeviceInformationId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDeviceActivatedEventArgs_Impl, - { + pub const fn new() -> IDeviceActivatedEventArgs_Vtbl { + unsafe extern "system" fn DeviceInformationId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceActivatedEventArgs_Impl::DeviceInformationId(this) { Ok(ok__) => { @@ -1118,10 +920,7 @@ impl IDeviceActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Verb(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDeviceActivatedEventArgs_Impl, - { + unsafe extern "system" fn Verb(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceActivatedEventArgs_Impl::Verb(this) { Ok(ok__) => { @@ -1143,7 +942,7 @@ impl IDeviceActivatedEventArgs_Vtbl { } } #[cfg(feature = "Devices_Enumeration")] -pub trait IDevicePairingActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IDevicePairingActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn DeviceInformation(&self) -> windows_core::Result; } #[cfg(feature = "Devices_Enumeration")] @@ -1152,14 +951,8 @@ impl windows_core::RuntimeName for IDevicePairingActivatedEventArgs { } #[cfg(feature = "Devices_Enumeration")] impl IDevicePairingActivatedEventArgs_Vtbl { - pub const fn new() -> IDevicePairingActivatedEventArgs_Vtbl - where - Identity: IDevicePairingActivatedEventArgs_Impl, - { - unsafe extern "system" fn DeviceInformation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDevicePairingActivatedEventArgs_Impl, - { + pub const fn new() -> IDevicePairingActivatedEventArgs_Vtbl { + unsafe extern "system" fn DeviceInformation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDevicePairingActivatedEventArgs_Impl::DeviceInformation(this) { Ok(ok__) => { @@ -1179,21 +972,15 @@ impl IDevicePairingActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IDialReceiverActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + ILaunchActivatedEventArgs_Impl { +pub trait IDialReceiverActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + ILaunchActivatedEventArgs_Impl { fn AppName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDialReceiverActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IDialReceiverActivatedEventArgs"; } impl IDialReceiverActivatedEventArgs_Vtbl { - pub const fn new() -> IDialReceiverActivatedEventArgs_Vtbl - where - Identity: IDialReceiverActivatedEventArgs_Impl, - { - unsafe extern "system" fn AppName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDialReceiverActivatedEventArgs_Impl, - { + pub const fn new() -> IDialReceiverActivatedEventArgs_Vtbl { + unsafe extern "system" fn AppName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDialReceiverActivatedEventArgs_Impl::AppName(this) { Ok(ok__) => { @@ -1211,7 +998,7 @@ impl IDialReceiverActivatedEventArgs_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] -pub trait IFileActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IFileActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Files(&self) -> windows_core::Result>; fn Verb(&self) -> windows_core::Result; } @@ -1221,14 +1008,8 @@ impl windows_core::RuntimeName for IFileActivatedEventArgs { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] impl IFileActivatedEventArgs_Vtbl { - pub const fn new() -> IFileActivatedEventArgs_Vtbl - where - Identity: IFileActivatedEventArgs_Impl, - { - unsafe extern "system" fn Files(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileActivatedEventArgs_Impl, - { + pub const fn new() -> IFileActivatedEventArgs_Vtbl { + unsafe extern "system" fn Files(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileActivatedEventArgs_Impl::Files(this) { Ok(ok__) => { @@ -1239,10 +1020,7 @@ impl IFileActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Verb(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileActivatedEventArgs_Impl, - { + unsafe extern "system" fn Verb(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileActivatedEventArgs_Impl::Verb(this) { Ok(ok__) => { @@ -1263,21 +1041,15 @@ impl IFileActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IFileActivatedEventArgsWithCallerPackageFamilyName_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IFileActivatedEventArgsWithCallerPackageFamilyName_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn CallerPackageFamilyName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IFileActivatedEventArgsWithCallerPackageFamilyName { const NAME: &'static str = "Windows.ApplicationModel.Activation.IFileActivatedEventArgsWithCallerPackageFamilyName"; } impl IFileActivatedEventArgsWithCallerPackageFamilyName_Vtbl { - pub const fn new() -> IFileActivatedEventArgsWithCallerPackageFamilyName_Vtbl - where - Identity: IFileActivatedEventArgsWithCallerPackageFamilyName_Impl, - { - unsafe extern "system" fn CallerPackageFamilyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileActivatedEventArgsWithCallerPackageFamilyName_Impl, - { + pub const fn new() -> IFileActivatedEventArgsWithCallerPackageFamilyName_Vtbl { + unsafe extern "system" fn CallerPackageFamilyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileActivatedEventArgsWithCallerPackageFamilyName_Impl::CallerPackageFamilyName(this) { Ok(ok__) => { @@ -1298,7 +1070,7 @@ impl IFileActivatedEventArgsWithCallerPackageFamilyName_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] -pub trait IFileActivatedEventArgsWithNeighboringFiles_Impl: Sized + IActivatedEventArgs_Impl + IFileActivatedEventArgs_Impl { +pub trait IFileActivatedEventArgsWithNeighboringFiles_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IFileActivatedEventArgs_Impl { fn NeighboringFilesQuery(&self) -> windows_core::Result; } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] @@ -1307,14 +1079,8 @@ impl windows_core::RuntimeName for IFileActivatedEventArgsWithNeighboringFiles { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] impl IFileActivatedEventArgsWithNeighboringFiles_Vtbl { - pub const fn new() -> IFileActivatedEventArgsWithNeighboringFiles_Vtbl - where - Identity: IFileActivatedEventArgsWithNeighboringFiles_Impl, - { - unsafe extern "system" fn NeighboringFilesQuery(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileActivatedEventArgsWithNeighboringFiles_Impl, - { + pub const fn new() -> IFileActivatedEventArgsWithNeighboringFiles_Vtbl { + unsafe extern "system" fn NeighboringFilesQuery(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileActivatedEventArgsWithNeighboringFiles_Impl::NeighboringFilesQuery(this) { Ok(ok__) => { @@ -1335,7 +1101,7 @@ impl IFileActivatedEventArgsWithNeighboringFiles_Vtbl { } } #[cfg(feature = "Storage_Pickers_Provider")] -pub trait IFileOpenPickerActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IFileOpenPickerActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn FileOpenPickerUI(&self) -> windows_core::Result; } #[cfg(feature = "Storage_Pickers_Provider")] @@ -1344,14 +1110,8 @@ impl windows_core::RuntimeName for IFileOpenPickerActivatedEventArgs { } #[cfg(feature = "Storage_Pickers_Provider")] impl IFileOpenPickerActivatedEventArgs_Vtbl { - pub const fn new() -> IFileOpenPickerActivatedEventArgs_Vtbl - where - Identity: IFileOpenPickerActivatedEventArgs_Impl, - { - unsafe extern "system" fn FileOpenPickerUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOpenPickerActivatedEventArgs_Impl, - { + pub const fn new() -> IFileOpenPickerActivatedEventArgs_Vtbl { + unsafe extern "system" fn FileOpenPickerUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileOpenPickerActivatedEventArgs_Impl::FileOpenPickerUI(this) { Ok(ok__) => { @@ -1371,21 +1131,15 @@ impl IFileOpenPickerActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IFileOpenPickerActivatedEventArgs2_Impl: Sized { +pub trait IFileOpenPickerActivatedEventArgs2_Impl: Sized + windows_core::IUnknownImpl { fn CallerPackageFamilyName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IFileOpenPickerActivatedEventArgs2 { const NAME: &'static str = "Windows.ApplicationModel.Activation.IFileOpenPickerActivatedEventArgs2"; } impl IFileOpenPickerActivatedEventArgs2_Vtbl { - pub const fn new() -> IFileOpenPickerActivatedEventArgs2_Vtbl - where - Identity: IFileOpenPickerActivatedEventArgs2_Impl, - { - unsafe extern "system" fn CallerPackageFamilyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileOpenPickerActivatedEventArgs2_Impl, - { + pub const fn new() -> IFileOpenPickerActivatedEventArgs2_Vtbl { + unsafe extern "system" fn CallerPackageFamilyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileOpenPickerActivatedEventArgs2_Impl::CallerPackageFamilyName(this) { Ok(ok__) => { @@ -1406,7 +1160,7 @@ impl IFileOpenPickerActivatedEventArgs2_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] -pub trait IFileOpenPickerContinuationEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IContinuationActivatedEventArgs_Impl { +pub trait IFileOpenPickerContinuationEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IContinuationActivatedEventArgs_Impl { fn Files(&self) -> windows_core::Result>; } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] @@ -1415,14 +1169,8 @@ impl windows_core::RuntimeName for IFileOpenPickerContinuationEventArgs { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] impl IFileOpenPickerContinuationEventArgs_Vtbl { - pub const fn new() -> IFileOpenPickerContinuationEventArgs_Vtbl - where - Identity: IFileOpenPickerContinuationEventArgs_Impl, - { - unsafe extern "system" fn Files(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOpenPickerContinuationEventArgs_Impl, - { + pub const fn new() -> IFileOpenPickerContinuationEventArgs_Vtbl { + unsafe extern "system" fn Files(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileOpenPickerContinuationEventArgs_Impl::Files(this) { Ok(ok__) => { @@ -1440,7 +1188,7 @@ impl IFileOpenPickerContinuationEventArgs_Vtbl { } } #[cfg(feature = "Storage_Pickers_Provider")] -pub trait IFileSavePickerActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IFileSavePickerActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn FileSavePickerUI(&self) -> windows_core::Result; } #[cfg(feature = "Storage_Pickers_Provider")] @@ -1449,14 +1197,8 @@ impl windows_core::RuntimeName for IFileSavePickerActivatedEventArgs { } #[cfg(feature = "Storage_Pickers_Provider")] impl IFileSavePickerActivatedEventArgs_Vtbl { - pub const fn new() -> IFileSavePickerActivatedEventArgs_Vtbl - where - Identity: IFileSavePickerActivatedEventArgs_Impl, - { - unsafe extern "system" fn FileSavePickerUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSavePickerActivatedEventArgs_Impl, - { + pub const fn new() -> IFileSavePickerActivatedEventArgs_Vtbl { + unsafe extern "system" fn FileSavePickerUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSavePickerActivatedEventArgs_Impl::FileSavePickerUI(this) { Ok(ok__) => { @@ -1476,7 +1218,7 @@ impl IFileSavePickerActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IFileSavePickerActivatedEventArgs2_Impl: Sized { +pub trait IFileSavePickerActivatedEventArgs2_Impl: Sized + windows_core::IUnknownImpl { fn CallerPackageFamilyName(&self) -> windows_core::Result; fn EnterpriseId(&self) -> windows_core::Result; } @@ -1484,14 +1226,8 @@ impl windows_core::RuntimeName for IFileSavePickerActivatedEventArgs2 { const NAME: &'static str = "Windows.ApplicationModel.Activation.IFileSavePickerActivatedEventArgs2"; } impl IFileSavePickerActivatedEventArgs2_Vtbl { - pub const fn new() -> IFileSavePickerActivatedEventArgs2_Vtbl - where - Identity: IFileSavePickerActivatedEventArgs2_Impl, - { - unsafe extern "system" fn CallerPackageFamilyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSavePickerActivatedEventArgs2_Impl, - { + pub const fn new() -> IFileSavePickerActivatedEventArgs2_Vtbl { + unsafe extern "system" fn CallerPackageFamilyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSavePickerActivatedEventArgs2_Impl::CallerPackageFamilyName(this) { Ok(ok__) => { @@ -1502,10 +1238,7 @@ impl IFileSavePickerActivatedEventArgs2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnterpriseId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSavePickerActivatedEventArgs2_Impl, - { + unsafe extern "system" fn EnterpriseId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSavePickerActivatedEventArgs2_Impl::EnterpriseId(this) { Ok(ok__) => { @@ -1527,7 +1260,7 @@ impl IFileSavePickerActivatedEventArgs2_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] -pub trait IFileSavePickerContinuationEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IContinuationActivatedEventArgs_Impl { +pub trait IFileSavePickerContinuationEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IContinuationActivatedEventArgs_Impl { fn File(&self) -> windows_core::Result; } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] @@ -1536,14 +1269,8 @@ impl windows_core::RuntimeName for IFileSavePickerContinuationEventArgs { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] impl IFileSavePickerContinuationEventArgs_Vtbl { - pub const fn new() -> IFileSavePickerContinuationEventArgs_Vtbl - where - Identity: IFileSavePickerContinuationEventArgs_Impl, - { - unsafe extern "system" fn File(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSavePickerContinuationEventArgs_Impl, - { + pub const fn new() -> IFileSavePickerContinuationEventArgs_Vtbl { + unsafe extern "system" fn File(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSavePickerContinuationEventArgs_Impl::File(this) { Ok(ok__) => { @@ -1561,7 +1288,7 @@ impl IFileSavePickerContinuationEventArgs_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] -pub trait IFolderPickerContinuationEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IContinuationActivatedEventArgs_Impl { +pub trait IFolderPickerContinuationEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IContinuationActivatedEventArgs_Impl { fn Folder(&self) -> windows_core::Result; } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] @@ -1570,14 +1297,8 @@ impl windows_core::RuntimeName for IFolderPickerContinuationEventArgs { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] impl IFolderPickerContinuationEventArgs_Vtbl { - pub const fn new() -> IFolderPickerContinuationEventArgs_Vtbl - where - Identity: IFolderPickerContinuationEventArgs_Impl, - { - unsafe extern "system" fn Folder(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderPickerContinuationEventArgs_Impl, - { + pub const fn new() -> IFolderPickerContinuationEventArgs_Vtbl { + unsafe extern "system" fn Folder(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderPickerContinuationEventArgs_Impl::Folder(this) { Ok(ok__) => { @@ -1594,7 +1315,7 @@ impl IFolderPickerContinuationEventArgs_Vtbl { iid == &::IID } } -pub trait ILaunchActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait ILaunchActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Arguments(&self) -> windows_core::Result; fn TileId(&self) -> windows_core::Result; } @@ -1602,14 +1323,8 @@ impl windows_core::RuntimeName for ILaunchActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ILaunchActivatedEventArgs"; } impl ILaunchActivatedEventArgs_Vtbl { - pub const fn new() -> ILaunchActivatedEventArgs_Vtbl - where - Identity: ILaunchActivatedEventArgs_Impl, - { - unsafe extern "system" fn Arguments(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILaunchActivatedEventArgs_Impl, - { + pub const fn new() -> ILaunchActivatedEventArgs_Vtbl { + unsafe extern "system" fn Arguments(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILaunchActivatedEventArgs_Impl::Arguments(this) { Ok(ok__) => { @@ -1620,10 +1335,7 @@ impl ILaunchActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TileId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILaunchActivatedEventArgs_Impl, - { + unsafe extern "system" fn TileId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILaunchActivatedEventArgs_Impl::TileId(this) { Ok(ok__) => { @@ -1644,21 +1356,15 @@ impl ILaunchActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait ILaunchActivatedEventArgs2_Impl: Sized + IActivatedEventArgs_Impl + ILaunchActivatedEventArgs_Impl { +pub trait ILaunchActivatedEventArgs2_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + ILaunchActivatedEventArgs_Impl { fn TileActivatedInfo(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ILaunchActivatedEventArgs2 { const NAME: &'static str = "Windows.ApplicationModel.Activation.ILaunchActivatedEventArgs2"; } impl ILaunchActivatedEventArgs2_Vtbl { - pub const fn new() -> ILaunchActivatedEventArgs2_Vtbl - where - Identity: ILaunchActivatedEventArgs2_Impl, - { - unsafe extern "system" fn TileActivatedInfo(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILaunchActivatedEventArgs2_Impl, - { + pub const fn new() -> ILaunchActivatedEventArgs2_Vtbl { + unsafe extern "system" fn TileActivatedInfo(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILaunchActivatedEventArgs2_Impl::TileActivatedInfo(this) { Ok(ok__) => { @@ -1678,21 +1384,15 @@ impl ILaunchActivatedEventArgs2_Vtbl { iid == &::IID } } -pub trait ILockScreenActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait ILockScreenActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Info(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ILockScreenActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ILockScreenActivatedEventArgs"; } impl ILockScreenActivatedEventArgs_Vtbl { - pub const fn new() -> ILockScreenActivatedEventArgs_Vtbl - where - Identity: ILockScreenActivatedEventArgs_Impl, - { - unsafe extern "system" fn Info(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILockScreenActivatedEventArgs_Impl, - { + pub const fn new() -> ILockScreenActivatedEventArgs_Vtbl { + unsafe extern "system" fn Info(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILockScreenActivatedEventArgs_Impl::Info(this) { Ok(ok__) => { @@ -1710,7 +1410,7 @@ impl ILockScreenActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Calls")] -pub trait ILockScreenCallActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + ILaunchActivatedEventArgs_Impl { +pub trait ILockScreenCallActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + ILaunchActivatedEventArgs_Impl { fn CallUI(&self) -> windows_core::Result; } #[cfg(feature = "ApplicationModel_Calls")] @@ -1719,14 +1419,8 @@ impl windows_core::RuntimeName for ILockScreenCallActivatedEventArgs { } #[cfg(feature = "ApplicationModel_Calls")] impl ILockScreenCallActivatedEventArgs_Vtbl { - pub const fn new() -> ILockScreenCallActivatedEventArgs_Vtbl - where - Identity: ILockScreenCallActivatedEventArgs_Impl, - { - unsafe extern "system" fn CallUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILockScreenCallActivatedEventArgs_Impl, - { + pub const fn new() -> ILockScreenCallActivatedEventArgs_Vtbl { + unsafe extern "system" fn CallUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILockScreenCallActivatedEventArgs_Impl::CallUI(this) { Ok(ok__) => { @@ -1743,21 +1437,15 @@ impl ILockScreenCallActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IPhoneCallActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IPhoneCallActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn LineId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPhoneCallActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IPhoneCallActivatedEventArgs"; } impl IPhoneCallActivatedEventArgs_Vtbl { - pub const fn new() -> IPhoneCallActivatedEventArgs_Vtbl - where - Identity: IPhoneCallActivatedEventArgs_Impl, - { - unsafe extern "system" fn LineId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPhoneCallActivatedEventArgs_Impl, - { + pub const fn new() -> IPhoneCallActivatedEventArgs_Vtbl { + unsafe extern "system" fn LineId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhoneCallActivatedEventArgs_Impl::LineId(this) { Ok(ok__) => { @@ -1773,21 +1461,15 @@ impl IPhoneCallActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IPickerReturnedActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IPickerReturnedActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn PickerOperationId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPickerReturnedActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IPickerReturnedActivatedEventArgs"; } impl IPickerReturnedActivatedEventArgs_Vtbl { - pub const fn new() -> IPickerReturnedActivatedEventArgs_Vtbl - where - Identity: IPickerReturnedActivatedEventArgs_Impl, - { - unsafe extern "system" fn PickerOperationId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPickerReturnedActivatedEventArgs_Impl, - { + pub const fn new() -> IPickerReturnedActivatedEventArgs_Vtbl { + unsafe extern "system" fn PickerOperationId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPickerReturnedActivatedEventArgs_Impl::PickerOperationId(this) { Ok(ok__) => { @@ -1807,21 +1489,15 @@ impl IPickerReturnedActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IPrelaunchActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IPrelaunchActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn PrelaunchActivated(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPrelaunchActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IPrelaunchActivatedEventArgs"; } impl IPrelaunchActivatedEventArgs_Vtbl { - pub const fn new() -> IPrelaunchActivatedEventArgs_Vtbl - where - Identity: IPrelaunchActivatedEventArgs_Impl, - { - unsafe extern "system" fn PrelaunchActivated(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IPrelaunchActivatedEventArgs_Impl, - { + pub const fn new() -> IPrelaunchActivatedEventArgs_Vtbl { + unsafe extern "system" fn PrelaunchActivated(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrelaunchActivatedEventArgs_Impl::PrelaunchActivated(this) { Ok(ok__) => { @@ -1841,7 +1517,7 @@ impl IPrelaunchActivatedEventArgs_Vtbl { } } #[cfg(feature = "Devices_Printers_Extensions")] -pub trait IPrint3DWorkflowActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IPrint3DWorkflowActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Workflow(&self) -> windows_core::Result; } #[cfg(feature = "Devices_Printers_Extensions")] @@ -1850,14 +1526,8 @@ impl windows_core::RuntimeName for IPrint3DWorkflowActivatedEventArgs { } #[cfg(feature = "Devices_Printers_Extensions")] impl IPrint3DWorkflowActivatedEventArgs_Vtbl { - pub const fn new() -> IPrint3DWorkflowActivatedEventArgs_Vtbl - where - Identity: IPrint3DWorkflowActivatedEventArgs_Impl, - { - unsafe extern "system" fn Workflow(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrint3DWorkflowActivatedEventArgs_Impl, - { + pub const fn new() -> IPrint3DWorkflowActivatedEventArgs_Vtbl { + unsafe extern "system" fn Workflow(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrint3DWorkflowActivatedEventArgs_Impl::Workflow(this) { Ok(ok__) => { @@ -1875,7 +1545,7 @@ impl IPrint3DWorkflowActivatedEventArgs_Vtbl { } } #[cfg(feature = "Devices_Printers_Extensions")] -pub trait IPrintTaskSettingsActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IPrintTaskSettingsActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Configuration(&self) -> windows_core::Result; } #[cfg(feature = "Devices_Printers_Extensions")] @@ -1884,14 +1554,8 @@ impl windows_core::RuntimeName for IPrintTaskSettingsActivatedEventArgs { } #[cfg(feature = "Devices_Printers_Extensions")] impl IPrintTaskSettingsActivatedEventArgs_Vtbl { - pub const fn new() -> IPrintTaskSettingsActivatedEventArgs_Vtbl - where - Identity: IPrintTaskSettingsActivatedEventArgs_Impl, - { - unsafe extern "system" fn Configuration(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintTaskSettingsActivatedEventArgs_Impl, - { + pub const fn new() -> IPrintTaskSettingsActivatedEventArgs_Vtbl { + unsafe extern "system" fn Configuration(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskSettingsActivatedEventArgs_Impl::Configuration(this) { Ok(ok__) => { @@ -1911,21 +1575,15 @@ impl IPrintTaskSettingsActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IProtocolActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IProtocolActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Uri(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IProtocolActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IProtocolActivatedEventArgs"; } impl IProtocolActivatedEventArgs_Vtbl { - pub const fn new() -> IProtocolActivatedEventArgs_Vtbl - where - Identity: IProtocolActivatedEventArgs_Impl, - { - unsafe extern "system" fn Uri(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtocolActivatedEventArgs_Impl, - { + pub const fn new() -> IProtocolActivatedEventArgs_Vtbl { + unsafe extern "system" fn Uri(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProtocolActivatedEventArgs_Impl::Uri(this) { Ok(ok__) => { @@ -1943,7 +1601,7 @@ impl IProtocolActivatedEventArgs_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn CallerPackageFamilyName(&self) -> windows_core::Result; fn Data(&self) -> windows_core::Result; } @@ -1953,14 +1611,8 @@ impl windows_core::RuntimeName for IProtocolActivatedEventArgsWithCallerPackageF } #[cfg(feature = "Foundation_Collections")] impl IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Vtbl { - pub const fn new() -> IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Vtbl - where - Identity: IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Impl, - { - unsafe extern "system" fn CallerPackageFamilyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Impl, - { + pub const fn new() -> IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Vtbl { + unsafe extern "system" fn CallerPackageFamilyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Impl::CallerPackageFamilyName(this) { Ok(ok__) => { @@ -1971,10 +1623,7 @@ impl IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Impl, - { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Impl::Data(this) { Ok(ok__) => { @@ -1996,7 +1645,7 @@ impl IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Vtbl { } } #[cfg(feature = "System")] -pub trait IProtocolForResultsActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IProtocolForResultsActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn ProtocolForResultsOperation(&self) -> windows_core::Result; } #[cfg(feature = "System")] @@ -2005,14 +1654,8 @@ impl windows_core::RuntimeName for IProtocolForResultsActivatedEventArgs { } #[cfg(feature = "System")] impl IProtocolForResultsActivatedEventArgs_Vtbl { - pub const fn new() -> IProtocolForResultsActivatedEventArgs_Vtbl - where - Identity: IProtocolForResultsActivatedEventArgs_Impl, - { - unsafe extern "system" fn ProtocolForResultsOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtocolForResultsActivatedEventArgs_Impl, - { + pub const fn new() -> IProtocolForResultsActivatedEventArgs_Vtbl { + unsafe extern "system" fn ProtocolForResultsOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProtocolForResultsActivatedEventArgs_Impl::ProtocolForResultsOperation(this) { Ok(ok__) => { @@ -2032,21 +1675,15 @@ impl IProtocolForResultsActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IRestrictedLaunchActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IRestrictedLaunchActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn SharedContext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IRestrictedLaunchActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IRestrictedLaunchActivatedEventArgs"; } impl IRestrictedLaunchActivatedEventArgs_Vtbl { - pub const fn new() -> IRestrictedLaunchActivatedEventArgs_Vtbl - where - Identity: IRestrictedLaunchActivatedEventArgs_Impl, - { - unsafe extern "system" fn SharedContext(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRestrictedLaunchActivatedEventArgs_Impl, - { + pub const fn new() -> IRestrictedLaunchActivatedEventArgs_Vtbl { + unsafe extern "system" fn SharedContext(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRestrictedLaunchActivatedEventArgs_Impl::SharedContext(this) { Ok(ok__) => { @@ -2066,7 +1703,7 @@ impl IRestrictedLaunchActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait ISearchActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait ISearchActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn QueryText(&self) -> windows_core::Result; fn Language(&self) -> windows_core::Result; } @@ -2074,14 +1711,8 @@ impl windows_core::RuntimeName for ISearchActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ISearchActivatedEventArgs"; } impl ISearchActivatedEventArgs_Vtbl { - pub const fn new() -> ISearchActivatedEventArgs_Vtbl - where - Identity: ISearchActivatedEventArgs_Impl, - { - unsafe extern "system" fn QueryText(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISearchActivatedEventArgs_Impl, - { + pub const fn new() -> ISearchActivatedEventArgs_Vtbl { + unsafe extern "system" fn QueryText(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchActivatedEventArgs_Impl::QueryText(this) { Ok(ok__) => { @@ -2092,10 +1723,7 @@ impl ISearchActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Language(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISearchActivatedEventArgs_Impl, - { + unsafe extern "system" fn Language(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchActivatedEventArgs_Impl::Language(this) { Ok(ok__) => { @@ -2117,7 +1745,7 @@ impl ISearchActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_Search")] -pub trait ISearchActivatedEventArgsWithLinguisticDetails_Impl: Sized { +pub trait ISearchActivatedEventArgsWithLinguisticDetails_Impl: Sized + windows_core::IUnknownImpl { fn LinguisticDetails(&self) -> windows_core::Result; } #[cfg(feature = "ApplicationModel_Search")] @@ -2126,14 +1754,8 @@ impl windows_core::RuntimeName for ISearchActivatedEventArgsWithLinguisticDetail } #[cfg(feature = "ApplicationModel_Search")] impl ISearchActivatedEventArgsWithLinguisticDetails_Vtbl { - pub const fn new() -> ISearchActivatedEventArgsWithLinguisticDetails_Vtbl - where - Identity: ISearchActivatedEventArgsWithLinguisticDetails_Impl, - { - unsafe extern "system" fn LinguisticDetails(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchActivatedEventArgsWithLinguisticDetails_Impl, - { + pub const fn new() -> ISearchActivatedEventArgsWithLinguisticDetails_Vtbl { + unsafe extern "system" fn LinguisticDetails(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchActivatedEventArgsWithLinguisticDetails_Impl::LinguisticDetails(this) { Ok(ok__) => { @@ -2154,7 +1776,7 @@ impl ISearchActivatedEventArgsWithLinguisticDetails_Vtbl { } } #[cfg(feature = "ApplicationModel_DataTransfer_ShareTarget")] -pub trait IShareTargetActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IShareTargetActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn ShareOperation(&self) -> windows_core::Result; } #[cfg(feature = "ApplicationModel_DataTransfer_ShareTarget")] @@ -2163,14 +1785,8 @@ impl windows_core::RuntimeName for IShareTargetActivatedEventArgs { } #[cfg(feature = "ApplicationModel_DataTransfer_ShareTarget")] impl IShareTargetActivatedEventArgs_Vtbl { - pub const fn new() -> IShareTargetActivatedEventArgs_Vtbl - where - Identity: IShareTargetActivatedEventArgs_Impl, - { - unsafe extern "system" fn ShareOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShareTargetActivatedEventArgs_Impl, - { + pub const fn new() -> IShareTargetActivatedEventArgs_Vtbl { + unsafe extern "system" fn ShareOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShareTargetActivatedEventArgs_Impl::ShareOperation(this) { Ok(ok__) => { @@ -2190,21 +1806,15 @@ impl IShareTargetActivatedEventArgs_Vtbl { iid == &::IID } } -pub trait IStartupTaskActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IStartupTaskActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn TaskId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IStartupTaskActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IStartupTaskActivatedEventArgs"; } impl IStartupTaskActivatedEventArgs_Vtbl { - pub const fn new() -> IStartupTaskActivatedEventArgs_Vtbl - where - Identity: IStartupTaskActivatedEventArgs_Impl, - { - unsafe extern "system" fn TaskId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStartupTaskActivatedEventArgs_Impl, - { + pub const fn new() -> IStartupTaskActivatedEventArgs_Vtbl { + unsafe extern "system" fn TaskId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStartupTaskActivatedEventArgs_Impl::TaskId(this) { Ok(ok__) => { @@ -2222,7 +1832,7 @@ impl IStartupTaskActivatedEventArgs_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IToastNotificationActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IToastNotificationActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Argument(&self) -> windows_core::Result; fn UserInput(&self) -> windows_core::Result; } @@ -2232,14 +1842,8 @@ impl windows_core::RuntimeName for IToastNotificationActivatedEventArgs { } #[cfg(feature = "Foundation_Collections")] impl IToastNotificationActivatedEventArgs_Vtbl { - pub const fn new() -> IToastNotificationActivatedEventArgs_Vtbl - where - Identity: IToastNotificationActivatedEventArgs_Impl, - { - unsafe extern "system" fn Argument(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IToastNotificationActivatedEventArgs_Impl, - { + pub const fn new() -> IToastNotificationActivatedEventArgs_Vtbl { + unsafe extern "system" fn Argument(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IToastNotificationActivatedEventArgs_Impl::Argument(this) { Ok(ok__) => { @@ -2250,10 +1854,7 @@ impl IToastNotificationActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserInput(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IToastNotificationActivatedEventArgs_Impl, - { + unsafe extern "system" fn UserInput(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IToastNotificationActivatedEventArgs_Impl::UserInput(this) { Ok(ok__) => { @@ -2275,7 +1876,7 @@ impl IToastNotificationActivatedEventArgs_Vtbl { } } #[cfg(feature = "ApplicationModel_UserDataAccounts_Provider")] -pub trait IUserDataAccountProviderActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IUserDataAccountProviderActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Operation(&self) -> windows_core::Result; } #[cfg(feature = "ApplicationModel_UserDataAccounts_Provider")] @@ -2284,14 +1885,8 @@ impl windows_core::RuntimeName for IUserDataAccountProviderActivatedEventArgs { } #[cfg(feature = "ApplicationModel_UserDataAccounts_Provider")] impl IUserDataAccountProviderActivatedEventArgs_Vtbl { - pub const fn new() -> IUserDataAccountProviderActivatedEventArgs_Vtbl - where - Identity: IUserDataAccountProviderActivatedEventArgs_Impl, - { - unsafe extern "system" fn Operation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUserDataAccountProviderActivatedEventArgs_Impl, - { + pub const fn new() -> IUserDataAccountProviderActivatedEventArgs_Vtbl { + unsafe extern "system" fn Operation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserDataAccountProviderActivatedEventArgs_Impl::Operation(this) { Ok(ok__) => { @@ -2312,7 +1907,7 @@ impl IUserDataAccountProviderActivatedEventArgs_Vtbl { } } #[cfg(feature = "UI_ViewManagement")] -pub trait IViewSwitcherProvider_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IViewSwitcherProvider_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn ViewSwitcher(&self) -> windows_core::Result; } #[cfg(feature = "UI_ViewManagement")] @@ -2321,14 +1916,8 @@ impl windows_core::RuntimeName for IViewSwitcherProvider { } #[cfg(feature = "UI_ViewManagement")] impl IViewSwitcherProvider_Vtbl { - pub const fn new() -> IViewSwitcherProvider_Vtbl - where - Identity: IViewSwitcherProvider_Impl, - { - unsafe extern "system" fn ViewSwitcher(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewSwitcherProvider_Impl, - { + pub const fn new() -> IViewSwitcherProvider_Vtbl { + unsafe extern "system" fn ViewSwitcher(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewSwitcherProvider_Impl::ViewSwitcher(this) { Ok(ok__) => { @@ -2346,7 +1935,7 @@ impl IViewSwitcherProvider_Vtbl { } } #[cfg(feature = "Media_SpeechRecognition")] -pub trait IVoiceCommandActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IVoiceCommandActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Result(&self) -> windows_core::Result; } #[cfg(feature = "Media_SpeechRecognition")] @@ -2355,14 +1944,8 @@ impl windows_core::RuntimeName for IVoiceCommandActivatedEventArgs { } #[cfg(feature = "Media_SpeechRecognition")] impl IVoiceCommandActivatedEventArgs_Vtbl { - pub const fn new() -> IVoiceCommandActivatedEventArgs_Vtbl - where - Identity: IVoiceCommandActivatedEventArgs_Impl, - { - unsafe extern "system" fn Result(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVoiceCommandActivatedEventArgs_Impl, - { + pub const fn new() -> IVoiceCommandActivatedEventArgs_Vtbl { + unsafe extern "system" fn Result(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVoiceCommandActivatedEventArgs_Impl::Result(this) { Ok(ok__) => { @@ -2380,7 +1963,7 @@ impl IVoiceCommandActivatedEventArgs_Vtbl { } } #[cfg(all(feature = "ApplicationModel_Wallet", feature = "deprecated"))] -pub trait IWalletActionActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IWalletActionActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn ItemId(&self) -> windows_core::Result; fn ActionKind(&self) -> windows_core::Result; fn ActionId(&self) -> windows_core::Result; @@ -2391,14 +1974,8 @@ impl windows_core::RuntimeName for IWalletActionActivatedEventArgs { } #[cfg(all(feature = "ApplicationModel_Wallet", feature = "deprecated"))] impl IWalletActionActivatedEventArgs_Vtbl { - pub const fn new() -> IWalletActionActivatedEventArgs_Vtbl - where - Identity: IWalletActionActivatedEventArgs_Impl, - { - unsafe extern "system" fn ItemId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWalletActionActivatedEventArgs_Impl, - { + pub const fn new() -> IWalletActionActivatedEventArgs_Vtbl { + unsafe extern "system" fn ItemId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWalletActionActivatedEventArgs_Impl::ItemId(this) { Ok(ok__) => { @@ -2409,10 +1986,7 @@ impl IWalletActionActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActionKind(this: *mut core::ffi::c_void, result__: *mut super::Wallet::WalletActionKind) -> windows_core::HRESULT - where - Identity: IWalletActionActivatedEventArgs_Impl, - { + unsafe extern "system" fn ActionKind(this: *mut core::ffi::c_void, result__: *mut super::Wallet::WalletActionKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWalletActionActivatedEventArgs_Impl::ActionKind(this) { Ok(ok__) => { @@ -2422,10 +1996,7 @@ impl IWalletActionActivatedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActionId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWalletActionActivatedEventArgs_Impl, - { + unsafe extern "system" fn ActionId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWalletActionActivatedEventArgs_Impl::ActionId(this) { Ok(ok__) => { @@ -2448,7 +2019,7 @@ impl IWalletActionActivatedEventArgs_Vtbl { } } #[cfg(feature = "Security_Authentication_Web_Provider")] -pub trait IWebAccountProviderActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { +pub trait IWebAccountProviderActivatedEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl { fn Operation(&self) -> windows_core::Result; } #[cfg(feature = "Security_Authentication_Web_Provider")] @@ -2457,14 +2028,8 @@ impl windows_core::RuntimeName for IWebAccountProviderActivatedEventArgs { } #[cfg(feature = "Security_Authentication_Web_Provider")] impl IWebAccountProviderActivatedEventArgs_Vtbl { - pub const fn new() -> IWebAccountProviderActivatedEventArgs_Vtbl - where - Identity: IWebAccountProviderActivatedEventArgs_Impl, - { - unsafe extern "system" fn Operation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccountProviderActivatedEventArgs_Impl, - { + pub const fn new() -> IWebAccountProviderActivatedEventArgs_Vtbl { + unsafe extern "system" fn Operation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAccountProviderActivatedEventArgs_Impl::Operation(this) { Ok(ok__) => { @@ -2485,7 +2050,7 @@ impl IWebAccountProviderActivatedEventArgs_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Authentication_Web"))] -pub trait IWebAuthenticationBrokerContinuationEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IContinuationActivatedEventArgs_Impl { +pub trait IWebAuthenticationBrokerContinuationEventArgs_Impl: Sized + windows_core::IUnknownImpl + IActivatedEventArgs_Impl + IContinuationActivatedEventArgs_Impl { fn WebAuthenticationResult(&self) -> windows_core::Result; } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Authentication_Web"))] @@ -2494,14 +2059,8 @@ impl windows_core::RuntimeName for IWebAuthenticationBrokerContinuationEventArgs } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Authentication_Web"))] impl IWebAuthenticationBrokerContinuationEventArgs_Vtbl { - pub const fn new() -> IWebAuthenticationBrokerContinuationEventArgs_Vtbl - where - Identity: IWebAuthenticationBrokerContinuationEventArgs_Impl, - { - unsafe extern "system" fn WebAuthenticationResult(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAuthenticationBrokerContinuationEventArgs_Impl, - { + pub const fn new() -> IWebAuthenticationBrokerContinuationEventArgs_Vtbl { + unsafe extern "system" fn WebAuthenticationResult(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAuthenticationBrokerContinuationEventArgs_Impl::WebAuthenticationResult(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/impl.rs index 4139f467f7..cc38e6701b 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/impl.rs @@ -1,4 +1,4 @@ -pub trait IAppointmentParticipant_Impl: Sized { +pub trait IAppointmentParticipant_Impl: Sized + windows_core::IUnknownImpl { fn DisplayName(&self) -> windows_core::Result; fn SetDisplayName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn Address(&self) -> windows_core::Result; @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for IAppointmentParticipant { const NAME: &'static str = "Windows.ApplicationModel.Appointments.IAppointmentParticipant"; } impl IAppointmentParticipant_Vtbl { - pub const fn new() -> IAppointmentParticipant_Vtbl - where - Identity: IAppointmentParticipant_Impl, - { - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAppointmentParticipant_Impl, - { + pub const fn new() -> IAppointmentParticipant_Vtbl { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentParticipant_Impl::DisplayName(this) { Ok(ok__) => { @@ -26,17 +20,11 @@ impl IAppointmentParticipant_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAppointmentParticipant_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppointmentParticipant_Impl::SetDisplayName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAppointmentParticipant_Impl, - { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppointmentParticipant_Impl::Address(this) { Ok(ok__) => { @@ -47,10 +35,7 @@ impl IAppointmentParticipant_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAddress(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAppointmentParticipant_Impl, - { + unsafe extern "system" fn SetAddress(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppointmentParticipant_Impl::SetAddress(this, core::mem::transmute(&value)).into() } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Background/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Background/impl.rs index 8c216def7c..54df5f736c 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Background/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Background/impl.rs @@ -1,33 +1,24 @@ -pub trait IBackgroundCondition_Impl: Sized {} +pub trait IBackgroundCondition_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IBackgroundCondition { const NAME: &'static str = "Windows.ApplicationModel.Background.IBackgroundCondition"; } impl IBackgroundCondition_Vtbl { - pub const fn new() -> IBackgroundCondition_Vtbl - where - Identity: IBackgroundCondition_Impl, - { + pub const fn new() -> IBackgroundCondition_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IBackgroundTask_Impl: Sized { +pub trait IBackgroundTask_Impl: Sized + windows_core::IUnknownImpl { fn Run(&self, taskinstance: Option<&IBackgroundTaskInstance>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBackgroundTask { const NAME: &'static str = "Windows.ApplicationModel.Background.IBackgroundTask"; } impl IBackgroundTask_Vtbl { - pub const fn new() -> IBackgroundTask_Vtbl - where - Identity: IBackgroundTask_Impl, - { - unsafe extern "system" fn Run(this: *mut core::ffi::c_void, taskinstance: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTask_Impl, - { + pub const fn new() -> IBackgroundTask_Vtbl { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void, taskinstance: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTask_Impl::Run(this, windows_core::from_raw_borrowed(&taskinstance)).into() } @@ -37,7 +28,7 @@ impl IBackgroundTask_Vtbl { iid == &::IID } } -pub trait IBackgroundTaskInstance_Impl: Sized { +pub trait IBackgroundTaskInstance_Impl: Sized + windows_core::IUnknownImpl { fn InstanceId(&self) -> windows_core::Result; fn Task(&self) -> windows_core::Result; fn Progress(&self) -> windows_core::Result; @@ -52,14 +43,8 @@ impl windows_core::RuntimeName for IBackgroundTaskInstance { const NAME: &'static str = "Windows.ApplicationModel.Background.IBackgroundTaskInstance"; } impl IBackgroundTaskInstance_Vtbl { - pub const fn new() -> IBackgroundTaskInstance_Vtbl - where - Identity: IBackgroundTaskInstance_Impl, - { - unsafe extern "system" fn InstanceId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance_Impl, - { + pub const fn new() -> IBackgroundTaskInstance_Vtbl { + unsafe extern "system" fn InstanceId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskInstance_Impl::InstanceId(this) { Ok(ok__) => { @@ -69,10 +54,7 @@ impl IBackgroundTaskInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Task(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance_Impl, - { + unsafe extern "system" fn Task(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskInstance_Impl::Task(this) { Ok(ok__) => { @@ -83,10 +65,7 @@ impl IBackgroundTaskInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance_Impl, - { + unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskInstance_Impl::Progress(this) { Ok(ok__) => { @@ -96,17 +75,11 @@ impl IBackgroundTaskInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProgress(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance_Impl, - { + unsafe extern "system" fn SetProgress(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTaskInstance_Impl::SetProgress(this, value).into() } - unsafe extern "system" fn TriggerDetails(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance_Impl, - { + unsafe extern "system" fn TriggerDetails(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskInstance_Impl::TriggerDetails(this) { Ok(ok__) => { @@ -117,10 +90,7 @@ impl IBackgroundTaskInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Canceled(this: *mut core::ffi::c_void, cancelhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance_Impl, - { + unsafe extern "system" fn Canceled(this: *mut core::ffi::c_void, cancelhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskInstance_Impl::Canceled(this, windows_core::from_raw_borrowed(&cancelhandler)) { Ok(ok__) => { @@ -130,17 +100,11 @@ impl IBackgroundTaskInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveCanceled(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance_Impl, - { + unsafe extern "system" fn RemoveCanceled(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTaskInstance_Impl::RemoveCanceled(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn SuspendedCount(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance_Impl, - { + unsafe extern "system" fn SuspendedCount(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskInstance_Impl::SuspendedCount(this) { Ok(ok__) => { @@ -150,10 +114,7 @@ impl IBackgroundTaskInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeferral(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance_Impl, - { + unsafe extern "system" fn GetDeferral(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskInstance_Impl::GetDeferral(this) { Ok(ok__) => { @@ -181,21 +142,15 @@ impl IBackgroundTaskInstance_Vtbl { iid == &::IID } } -pub trait IBackgroundTaskInstance2_Impl: Sized + IBackgroundTaskInstance_Impl { +pub trait IBackgroundTaskInstance2_Impl: Sized + windows_core::IUnknownImpl + IBackgroundTaskInstance_Impl { fn GetThrottleCount(&self, counter: BackgroundTaskThrottleCounter) -> windows_core::Result; } impl windows_core::RuntimeName for IBackgroundTaskInstance2 { const NAME: &'static str = "Windows.ApplicationModel.Background.IBackgroundTaskInstance2"; } impl IBackgroundTaskInstance2_Vtbl { - pub const fn new() -> IBackgroundTaskInstance2_Vtbl - where - Identity: IBackgroundTaskInstance2_Impl, - { - unsafe extern "system" fn GetThrottleCount(this: *mut core::ffi::c_void, counter: BackgroundTaskThrottleCounter, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance2_Impl, - { + pub const fn new() -> IBackgroundTaskInstance2_Vtbl { + unsafe extern "system" fn GetThrottleCount(this: *mut core::ffi::c_void, counter: BackgroundTaskThrottleCounter, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskInstance2_Impl::GetThrottleCount(this, counter) { Ok(ok__) => { @@ -215,7 +170,7 @@ impl IBackgroundTaskInstance2_Vtbl { } } #[cfg(feature = "System")] -pub trait IBackgroundTaskInstance4_Impl: Sized + IBackgroundTaskInstance_Impl { +pub trait IBackgroundTaskInstance4_Impl: Sized + windows_core::IUnknownImpl + IBackgroundTaskInstance_Impl { fn User(&self) -> windows_core::Result; } #[cfg(feature = "System")] @@ -224,14 +179,8 @@ impl windows_core::RuntimeName for IBackgroundTaskInstance4 { } #[cfg(feature = "System")] impl IBackgroundTaskInstance4_Vtbl { - pub const fn new() -> IBackgroundTaskInstance4_Vtbl - where - Identity: IBackgroundTaskInstance4_Impl, - { - unsafe extern "system" fn User(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTaskInstance4_Impl, - { + pub const fn new() -> IBackgroundTaskInstance4_Vtbl { + unsafe extern "system" fn User(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskInstance4_Impl::User(this) { Ok(ok__) => { @@ -248,7 +197,7 @@ impl IBackgroundTaskInstance4_Vtbl { iid == &::IID } } -pub trait IBackgroundTaskRegistration_Impl: Sized { +pub trait IBackgroundTaskRegistration_Impl: Sized + windows_core::IUnknownImpl { fn TaskId(&self) -> windows_core::Result; fn Name(&self) -> windows_core::Result; fn Progress(&self, handler: Option<&BackgroundTaskProgressEventHandler>) -> windows_core::Result; @@ -261,14 +210,8 @@ impl windows_core::RuntimeName for IBackgroundTaskRegistration { const NAME: &'static str = "Windows.ApplicationModel.Background.IBackgroundTaskRegistration"; } impl IBackgroundTaskRegistration_Vtbl { - pub const fn new() -> IBackgroundTaskRegistration_Vtbl - where - Identity: IBackgroundTaskRegistration_Impl, - { - unsafe extern "system" fn TaskId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBackgroundTaskRegistration_Impl, - { + pub const fn new() -> IBackgroundTaskRegistration_Vtbl { + unsafe extern "system" fn TaskId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskRegistration_Impl::TaskId(this) { Ok(ok__) => { @@ -278,10 +221,7 @@ impl IBackgroundTaskRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBackgroundTaskRegistration_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskRegistration_Impl::Name(this) { Ok(ok__) => { @@ -292,10 +232,7 @@ impl IBackgroundTaskRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IBackgroundTaskRegistration_Impl, - { + unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskRegistration_Impl::Progress(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -305,17 +242,11 @@ impl IBackgroundTaskRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveProgress(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IBackgroundTaskRegistration_Impl, - { + unsafe extern "system" fn RemoveProgress(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTaskRegistration_Impl::RemoveProgress(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IBackgroundTaskRegistration_Impl, - { + unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskRegistration_Impl::Completed(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -325,17 +256,11 @@ impl IBackgroundTaskRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveCompleted(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IBackgroundTaskRegistration_Impl, - { + unsafe extern "system" fn RemoveCompleted(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTaskRegistration_Impl::RemoveCompleted(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void, canceltask: bool) -> windows_core::HRESULT - where - Identity: IBackgroundTaskRegistration_Impl, - { + unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void, canceltask: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTaskRegistration_Impl::Unregister(this, canceltask).into() } @@ -354,21 +279,15 @@ impl IBackgroundTaskRegistration_Vtbl { iid == &::IID } } -pub trait IBackgroundTaskRegistration2_Impl: Sized + IBackgroundTaskRegistration_Impl { +pub trait IBackgroundTaskRegistration2_Impl: Sized + windows_core::IUnknownImpl + IBackgroundTaskRegistration_Impl { fn Trigger(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IBackgroundTaskRegistration2 { const NAME: &'static str = "Windows.ApplicationModel.Background.IBackgroundTaskRegistration2"; } impl IBackgroundTaskRegistration2_Vtbl { - pub const fn new() -> IBackgroundTaskRegistration2_Vtbl - where - Identity: IBackgroundTaskRegistration2_Impl, - { - unsafe extern "system" fn Trigger(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTaskRegistration2_Impl, - { + pub const fn new() -> IBackgroundTaskRegistration2_Vtbl { + unsafe extern "system" fn Trigger(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskRegistration2_Impl::Trigger(this) { Ok(ok__) => { @@ -385,21 +304,15 @@ impl IBackgroundTaskRegistration2_Vtbl { iid == &::IID } } -pub trait IBackgroundTaskRegistration3_Impl: Sized + IBackgroundTaskRegistration_Impl { +pub trait IBackgroundTaskRegistration3_Impl: Sized + windows_core::IUnknownImpl + IBackgroundTaskRegistration_Impl { fn TaskGroup(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IBackgroundTaskRegistration3 { const NAME: &'static str = "Windows.ApplicationModel.Background.IBackgroundTaskRegistration3"; } impl IBackgroundTaskRegistration3_Vtbl { - pub const fn new() -> IBackgroundTaskRegistration3_Vtbl - where - Identity: IBackgroundTaskRegistration3_Impl, - { - unsafe extern "system" fn TaskGroup(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTaskRegistration3_Impl, - { + pub const fn new() -> IBackgroundTaskRegistration3_Vtbl { + unsafe extern "system" fn TaskGroup(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTaskRegistration3_Impl::TaskGroup(this) { Ok(ok__) => { @@ -416,15 +329,12 @@ impl IBackgroundTaskRegistration3_Vtbl { iid == &::IID } } -pub trait IBackgroundTrigger_Impl: Sized {} +pub trait IBackgroundTrigger_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IBackgroundTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.IBackgroundTrigger"; } impl IBackgroundTrigger_Vtbl { - pub const fn new() -> IBackgroundTrigger_Vtbl - where - Identity: IBackgroundTrigger_Impl, - { + pub const fn new() -> IBackgroundTrigger_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Chat/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Chat/impl.rs index 61bf3761e5..65948dcdfd 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Chat/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Chat/impl.rs @@ -1,18 +1,12 @@ -pub trait IChatItem_Impl: Sized { +pub trait IChatItem_Impl: Sized + windows_core::IUnknownImpl { fn ItemKind(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IChatItem { const NAME: &'static str = "Windows.ApplicationModel.Chat.IChatItem"; } impl IChatItem_Vtbl { - pub const fn new() -> IChatItem_Vtbl - where - Identity: IChatItem_Impl, - { - unsafe extern "system" fn ItemKind(this: *mut core::ffi::c_void, result__: *mut ChatItemKind) -> windows_core::HRESULT - where - Identity: IChatItem_Impl, - { + pub const fn new() -> IChatItem_Vtbl { + unsafe extern "system" fn ItemKind(this: *mut core::ffi::c_void, result__: *mut ChatItemKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IChatItem_Impl::ItemKind(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/impl.rs index 978ab4e3cb..aabd7454b5 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/impl.rs @@ -1,4 +1,4 @@ -pub trait IContactField_Impl: Sized { +pub trait IContactField_Impl: Sized + windows_core::IUnknownImpl { fn Type(&self) -> windows_core::Result; fn Category(&self) -> windows_core::Result; fn Name(&self) -> windows_core::Result; @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for IContactField { const NAME: &'static str = "Windows.ApplicationModel.Contacts.IContactField"; } impl IContactField_Vtbl { - pub const fn new() -> IContactField_Vtbl - where - Identity: IContactField_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut ContactFieldType) -> windows_core::HRESULT - where - Identity: IContactField_Impl, - { + pub const fn new() -> IContactField_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut ContactFieldType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactField_Impl::Type(this) { Ok(ok__) => { @@ -25,10 +19,7 @@ impl IContactField_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Category(this: *mut core::ffi::c_void, result__: *mut ContactFieldCategory) -> windows_core::HRESULT - where - Identity: IContactField_Impl, - { + unsafe extern "system" fn Category(this: *mut core::ffi::c_void, result__: *mut ContactFieldCategory) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactField_Impl::Category(this) { Ok(ok__) => { @@ -38,10 +29,7 @@ impl IContactField_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactField_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactField_Impl::Name(this) { Ok(ok__) => { @@ -52,10 +40,7 @@ impl IContactField_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactField_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactField_Impl::Value(this) { Ok(ok__) => { @@ -78,7 +63,7 @@ impl IContactField_Vtbl { iid == &::IID } } -pub trait IContactFieldFactory_Impl: Sized { +pub trait IContactFieldFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateField_Default(&self, value: &windows_core::HSTRING, r#type: ContactFieldType) -> windows_core::Result; fn CreateField_Category(&self, value: &windows_core::HSTRING, r#type: ContactFieldType, category: ContactFieldCategory) -> windows_core::Result; fn CreateField_Custom(&self, name: &windows_core::HSTRING, value: &windows_core::HSTRING, r#type: ContactFieldType, category: ContactFieldCategory) -> windows_core::Result; @@ -87,14 +72,8 @@ impl windows_core::RuntimeName for IContactFieldFactory { const NAME: &'static str = "Windows.ApplicationModel.Contacts.IContactFieldFactory"; } impl IContactFieldFactory_Vtbl { - pub const fn new() -> IContactFieldFactory_Vtbl - where - Identity: IContactFieldFactory_Impl, - { - unsafe extern "system" fn CreateField_Default(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, r#type: ContactFieldType, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactFieldFactory_Impl, - { + pub const fn new() -> IContactFieldFactory_Vtbl { + unsafe extern "system" fn CreateField_Default(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, r#type: ContactFieldType, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactFieldFactory_Impl::CreateField_Default(this, core::mem::transmute(&value), r#type) { Ok(ok__) => { @@ -105,10 +84,7 @@ impl IContactFieldFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateField_Category(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, r#type: ContactFieldType, category: ContactFieldCategory, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactFieldFactory_Impl, - { + unsafe extern "system" fn CreateField_Category(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, r#type: ContactFieldType, category: ContactFieldCategory, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactFieldFactory_Impl::CreateField_Category(this, core::mem::transmute(&value), r#type, category) { Ok(ok__) => { @@ -119,10 +95,7 @@ impl IContactFieldFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateField_Custom(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit, r#type: ContactFieldType, category: ContactFieldCategory, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactFieldFactory_Impl, - { + unsafe extern "system" fn CreateField_Custom(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit, r#type: ContactFieldType, category: ContactFieldCategory, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactFieldFactory_Impl::CreateField_Custom(this, core::mem::transmute(&name), core::mem::transmute(&value), r#type, category) { Ok(ok__) => { @@ -144,7 +117,7 @@ impl IContactFieldFactory_Vtbl { iid == &::IID } } -pub trait IContactInstantMessageFieldFactory_Impl: Sized { +pub trait IContactInstantMessageFieldFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstantMessage_Default(&self, username: &windows_core::HSTRING) -> windows_core::Result; fn CreateInstantMessage_Category(&self, username: &windows_core::HSTRING, category: ContactFieldCategory) -> windows_core::Result; fn CreateInstantMessage_All(&self, username: &windows_core::HSTRING, category: ContactFieldCategory, service: &windows_core::HSTRING, displaytext: &windows_core::HSTRING, verb: Option<&super::super::Foundation::Uri>) -> windows_core::Result; @@ -153,14 +126,8 @@ impl windows_core::RuntimeName for IContactInstantMessageFieldFactory { const NAME: &'static str = "Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory"; } impl IContactInstantMessageFieldFactory_Vtbl { - pub const fn new() -> IContactInstantMessageFieldFactory_Vtbl - where - Identity: IContactInstantMessageFieldFactory_Impl, - { - unsafe extern "system" fn CreateInstantMessage_Default(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactInstantMessageFieldFactory_Impl, - { + pub const fn new() -> IContactInstantMessageFieldFactory_Vtbl { + unsafe extern "system" fn CreateInstantMessage_Default(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInstantMessageFieldFactory_Impl::CreateInstantMessage_Default(this, core::mem::transmute(&username)) { Ok(ok__) => { @@ -171,10 +138,7 @@ impl IContactInstantMessageFieldFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstantMessage_Category(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, category: ContactFieldCategory, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactInstantMessageFieldFactory_Impl, - { + unsafe extern "system" fn CreateInstantMessage_Category(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, category: ContactFieldCategory, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInstantMessageFieldFactory_Impl::CreateInstantMessage_Category(this, core::mem::transmute(&username), category) { Ok(ok__) => { @@ -185,10 +149,7 @@ impl IContactInstantMessageFieldFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstantMessage_All(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, category: ContactFieldCategory, service: core::mem::MaybeUninit, displaytext: core::mem::MaybeUninit, verb: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactInstantMessageFieldFactory_Impl, - { + unsafe extern "system" fn CreateInstantMessage_All(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, category: ContactFieldCategory, service: core::mem::MaybeUninit, displaytext: core::mem::MaybeUninit, verb: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInstantMessageFieldFactory_Impl::CreateInstantMessage_All(this, core::mem::transmute(&username), category, core::mem::transmute(&service), core::mem::transmute(&displaytext), windows_core::from_raw_borrowed(&verb)) { Ok(ok__) => { @@ -210,7 +171,7 @@ impl IContactInstantMessageFieldFactory_Vtbl { iid == &::IID } } -pub trait IContactLocationFieldFactory_Impl: Sized { +pub trait IContactLocationFieldFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateLocation_Default(&self, unstructuredaddress: &windows_core::HSTRING) -> windows_core::Result; fn CreateLocation_Category(&self, unstructuredaddress: &windows_core::HSTRING, category: ContactFieldCategory) -> windows_core::Result; fn CreateLocation_All(&self, unstructuredaddress: &windows_core::HSTRING, category: ContactFieldCategory, street: &windows_core::HSTRING, city: &windows_core::HSTRING, region: &windows_core::HSTRING, country: &windows_core::HSTRING, postalcode: &windows_core::HSTRING) -> windows_core::Result; @@ -219,14 +180,8 @@ impl windows_core::RuntimeName for IContactLocationFieldFactory { const NAME: &'static str = "Windows.ApplicationModel.Contacts.IContactLocationFieldFactory"; } impl IContactLocationFieldFactory_Vtbl { - pub const fn new() -> IContactLocationFieldFactory_Vtbl - where - Identity: IContactLocationFieldFactory_Impl, - { - unsafe extern "system" fn CreateLocation_Default(this: *mut core::ffi::c_void, unstructuredaddress: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactLocationFieldFactory_Impl, - { + pub const fn new() -> IContactLocationFieldFactory_Vtbl { + unsafe extern "system" fn CreateLocation_Default(this: *mut core::ffi::c_void, unstructuredaddress: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactLocationFieldFactory_Impl::CreateLocation_Default(this, core::mem::transmute(&unstructuredaddress)) { Ok(ok__) => { @@ -237,10 +192,7 @@ impl IContactLocationFieldFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLocation_Category(this: *mut core::ffi::c_void, unstructuredaddress: core::mem::MaybeUninit, category: ContactFieldCategory, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactLocationFieldFactory_Impl, - { + unsafe extern "system" fn CreateLocation_Category(this: *mut core::ffi::c_void, unstructuredaddress: core::mem::MaybeUninit, category: ContactFieldCategory, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactLocationFieldFactory_Impl::CreateLocation_Category(this, core::mem::transmute(&unstructuredaddress), category) { Ok(ok__) => { @@ -251,10 +203,7 @@ impl IContactLocationFieldFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLocation_All(this: *mut core::ffi::c_void, unstructuredaddress: core::mem::MaybeUninit, category: ContactFieldCategory, street: core::mem::MaybeUninit, city: core::mem::MaybeUninit, region: core::mem::MaybeUninit, country: core::mem::MaybeUninit, postalcode: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactLocationFieldFactory_Impl, - { + unsafe extern "system" fn CreateLocation_All(this: *mut core::ffi::c_void, unstructuredaddress: core::mem::MaybeUninit, category: ContactFieldCategory, street: core::mem::MaybeUninit, city: core::mem::MaybeUninit, region: core::mem::MaybeUninit, country: core::mem::MaybeUninit, postalcode: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactLocationFieldFactory_Impl::CreateLocation_All(this, core::mem::transmute(&unstructuredaddress), category, core::mem::transmute(&street), core::mem::transmute(&city), core::mem::transmute(®ion), core::mem::transmute(&country), core::mem::transmute(&postalcode)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Core/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Core/impl.rs index db46a0414b..79d8919456 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Core/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Core/impl.rs @@ -1,4 +1,4 @@ -pub trait ICoreApplicationUnhandledError_Impl: Sized { +pub trait ICoreApplicationUnhandledError_Impl: Sized + windows_core::IUnknownImpl { fn UnhandledErrorDetected(&self, handler: Option<&super::super::Foundation::EventHandler>) -> windows_core::Result; fn RemoveUnhandledErrorDetected(&self, token: &super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()>; } @@ -6,14 +6,8 @@ impl windows_core::RuntimeName for ICoreApplicationUnhandledError { const NAME: &'static str = "Windows.ApplicationModel.Core.ICoreApplicationUnhandledError"; } impl ICoreApplicationUnhandledError_Vtbl { - pub const fn new() -> ICoreApplicationUnhandledError_Vtbl - where - Identity: ICoreApplicationUnhandledError_Impl, - { - unsafe extern "system" fn UnhandledErrorDetected(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreApplicationUnhandledError_Impl, - { + pub const fn new() -> ICoreApplicationUnhandledError_Vtbl { + unsafe extern "system" fn UnhandledErrorDetected(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreApplicationUnhandledError_Impl::UnhandledErrorDetected(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -23,10 +17,7 @@ impl ICoreApplicationUnhandledError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveUnhandledErrorDetected(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreApplicationUnhandledError_Impl, - { + unsafe extern "system" fn RemoveUnhandledErrorDetected(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreApplicationUnhandledError_Impl::RemoveUnhandledErrorDetected(this, core::mem::transmute(&token)).into() } @@ -41,7 +32,7 @@ impl ICoreApplicationUnhandledError_Vtbl { } } #[cfg(feature = "UI_Core")] -pub trait IFrameworkView_Impl: Sized { +pub trait IFrameworkView_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, applicationview: Option<&CoreApplicationView>) -> windows_core::Result<()>; fn SetWindow(&self, window: Option<&super::super::UI::Core::CoreWindow>) -> windows_core::Result<()>; fn Load(&self, entrypoint: &windows_core::HSTRING) -> windows_core::Result<()>; @@ -54,42 +45,24 @@ impl windows_core::RuntimeName for IFrameworkView { } #[cfg(feature = "UI_Core")] impl IFrameworkView_Vtbl { - pub const fn new() -> IFrameworkView_Vtbl - where - Identity: IFrameworkView_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, applicationview: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFrameworkView_Impl, - { + pub const fn new() -> IFrameworkView_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, applicationview: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrameworkView_Impl::Initialize(this, windows_core::from_raw_borrowed(&applicationview)).into() } - unsafe extern "system" fn SetWindow(this: *mut core::ffi::c_void, window: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFrameworkView_Impl, - { + unsafe extern "system" fn SetWindow(this: *mut core::ffi::c_void, window: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrameworkView_Impl::SetWindow(this, windows_core::from_raw_borrowed(&window)).into() } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, entrypoint: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFrameworkView_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, entrypoint: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrameworkView_Impl::Load(this, core::mem::transmute(&entrypoint)).into() } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFrameworkView_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrameworkView_Impl::Run(this).into() } - unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFrameworkView_Impl, - { + unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrameworkView_Impl::Uninitialize(this).into() } @@ -106,21 +79,15 @@ impl IFrameworkView_Vtbl { iid == &::IID } } -pub trait IFrameworkViewSource_Impl: Sized { +pub trait IFrameworkViewSource_Impl: Sized + windows_core::IUnknownImpl { fn CreateView(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IFrameworkViewSource { const NAME: &'static str = "Windows.ApplicationModel.Core.IFrameworkViewSource"; } impl IFrameworkViewSource_Vtbl { - pub const fn new() -> IFrameworkViewSource_Vtbl - where - Identity: IFrameworkViewSource_Impl, - { - unsafe extern "system" fn CreateView(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFrameworkViewSource_Impl, - { + pub const fn new() -> IFrameworkViewSource_Vtbl { + unsafe extern "system" fn CreateView(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFrameworkViewSource_Impl::CreateView(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/impl.rs index 428857bc67..d62a76da38 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/impl.rs @@ -1,4 +1,4 @@ -pub trait ICoreDropOperationTarget_Impl: Sized { +pub trait ICoreDropOperationTarget_Impl: Sized + windows_core::IUnknownImpl { fn EnterAsync(&self, draginfo: Option<&CoreDragInfo>, draguioverride: Option<&CoreDragUIOverride>) -> windows_core::Result>; fn OverAsync(&self, draginfo: Option<&CoreDragInfo>, draguioverride: Option<&CoreDragUIOverride>) -> windows_core::Result>; fn LeaveAsync(&self, draginfo: Option<&CoreDragInfo>) -> windows_core::Result; @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for ICoreDropOperationTarget { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DragDrop.Core.ICoreDropOperationTarget"; } impl ICoreDropOperationTarget_Vtbl { - pub const fn new() -> ICoreDropOperationTarget_Vtbl - where - Identity: ICoreDropOperationTarget_Impl, - { - unsafe extern "system" fn EnterAsync(this: *mut core::ffi::c_void, draginfo: *mut core::ffi::c_void, draguioverride: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreDropOperationTarget_Impl, - { + pub const fn new() -> ICoreDropOperationTarget_Vtbl { + unsafe extern "system" fn EnterAsync(this: *mut core::ffi::c_void, draginfo: *mut core::ffi::c_void, draguioverride: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreDropOperationTarget_Impl::EnterAsync(this, windows_core::from_raw_borrowed(&draginfo), windows_core::from_raw_borrowed(&draguioverride)) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl ICoreDropOperationTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OverAsync(this: *mut core::ffi::c_void, draginfo: *mut core::ffi::c_void, draguioverride: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreDropOperationTarget_Impl, - { + unsafe extern "system" fn OverAsync(this: *mut core::ffi::c_void, draginfo: *mut core::ffi::c_void, draguioverride: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreDropOperationTarget_Impl::OverAsync(this, windows_core::from_raw_borrowed(&draginfo), windows_core::from_raw_borrowed(&draguioverride)) { Ok(ok__) => { @@ -40,10 +31,7 @@ impl ICoreDropOperationTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LeaveAsync(this: *mut core::ffi::c_void, draginfo: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreDropOperationTarget_Impl, - { + unsafe extern "system" fn LeaveAsync(this: *mut core::ffi::c_void, draginfo: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreDropOperationTarget_Impl::LeaveAsync(this, windows_core::from_raw_borrowed(&draginfo)) { Ok(ok__) => { @@ -54,10 +42,7 @@ impl ICoreDropOperationTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DropAsync(this: *mut core::ffi::c_void, draginfo: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreDropOperationTarget_Impl, - { + unsafe extern "system" fn DropAsync(this: *mut core::ffi::c_void, draginfo: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreDropOperationTarget_Impl::DropAsync(this, windows_core::from_raw_borrowed(&draginfo)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Search/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Search/impl.rs index ae129b2300..1232b196ee 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Search/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Search/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "deprecated")] -pub trait ISearchPaneQueryChangedEventArgs_Impl: Sized { +pub trait ISearchPaneQueryChangedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn QueryText(&self) -> windows_core::Result; fn Language(&self) -> windows_core::Result; fn LinguisticDetails(&self) -> windows_core::Result; @@ -10,14 +10,8 @@ impl windows_core::RuntimeName for ISearchPaneQueryChangedEventArgs { } #[cfg(feature = "deprecated")] impl ISearchPaneQueryChangedEventArgs_Vtbl { - pub const fn new() -> ISearchPaneQueryChangedEventArgs_Vtbl - where - Identity: ISearchPaneQueryChangedEventArgs_Impl, - { - unsafe extern "system" fn QueryText(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISearchPaneQueryChangedEventArgs_Impl, - { + pub const fn new() -> ISearchPaneQueryChangedEventArgs_Vtbl { + unsafe extern "system" fn QueryText(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchPaneQueryChangedEventArgs_Impl::QueryText(this) { Ok(ok__) => { @@ -28,10 +22,7 @@ impl ISearchPaneQueryChangedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Language(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISearchPaneQueryChangedEventArgs_Impl, - { + unsafe extern "system" fn Language(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchPaneQueryChangedEventArgs_Impl::Language(this) { Ok(ok__) => { @@ -42,10 +33,7 @@ impl ISearchPaneQueryChangedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LinguisticDetails(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchPaneQueryChangedEventArgs_Impl, - { + unsafe extern "system" fn LinguisticDetails(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchPaneQueryChangedEventArgs_Impl::LinguisticDetails(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/impl.rs index 1308e3e306..d5ebc6873c 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/impl.rs @@ -1,18 +1,12 @@ -pub trait IUserActivityContentInfo_Impl: Sized { +pub trait IUserActivityContentInfo_Impl: Sized + windows_core::IUnknownImpl { fn ToJson(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUserActivityContentInfo { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.IUserActivityContentInfo"; } impl IUserActivityContentInfo_Vtbl { - pub const fn new() -> IUserActivityContentInfo_Vtbl - where - Identity: IUserActivityContentInfo_Impl, - { - unsafe extern "system" fn ToJson(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUserActivityContentInfo_Impl, - { + pub const fn new() -> IUserActivityContentInfo_Vtbl { + unsafe extern "system" fn ToJson(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserActivityContentInfo_Impl::ToJson(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/impl.rs index 7d84da9371..c26d3470c9 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/impl.rs @@ -1,18 +1,12 @@ -pub trait IUserDataAccountProviderOperation_Impl: Sized { +pub trait IUserDataAccountProviderOperation_Impl: Sized + windows_core::IUnknownImpl { fn Kind(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUserDataAccountProviderOperation { const NAME: &'static str = "Windows.ApplicationModel.UserDataAccounts.Provider.IUserDataAccountProviderOperation"; } impl IUserDataAccountProviderOperation_Vtbl { - pub const fn new() -> IUserDataAccountProviderOperation_Vtbl - where - Identity: IUserDataAccountProviderOperation_Impl, - { - unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut UserDataAccountProviderOperationKind) -> windows_core::HRESULT - where - Identity: IUserDataAccountProviderOperation_Impl, - { + pub const fn new() -> IUserDataAccountProviderOperation_Vtbl { + unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut UserDataAccountProviderOperationKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserDataAccountProviderOperation_Impl::Kind(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/impl.rs index 4f6619744a..70f1b147a2 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/impl.rs @@ -1,18 +1,12 @@ -pub trait IEnteredBackgroundEventArgs_Impl: Sized { +pub trait IEnteredBackgroundEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn GetDeferral(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IEnteredBackgroundEventArgs { const NAME: &'static str = "Windows.ApplicationModel.IEnteredBackgroundEventArgs"; } impl IEnteredBackgroundEventArgs_Vtbl { - pub const fn new() -> IEnteredBackgroundEventArgs_Vtbl - where - Identity: IEnteredBackgroundEventArgs_Impl, - { - unsafe extern "system" fn GetDeferral(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnteredBackgroundEventArgs_Impl, - { + pub const fn new() -> IEnteredBackgroundEventArgs_Vtbl { + unsafe extern "system" fn GetDeferral(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnteredBackgroundEventArgs_Impl::GetDeferral(this) { Ok(ok__) => { @@ -29,21 +23,15 @@ impl IEnteredBackgroundEventArgs_Vtbl { iid == &::IID } } -pub trait ILeavingBackgroundEventArgs_Impl: Sized { +pub trait ILeavingBackgroundEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn GetDeferral(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ILeavingBackgroundEventArgs { const NAME: &'static str = "Windows.ApplicationModel.ILeavingBackgroundEventArgs"; } impl ILeavingBackgroundEventArgs_Vtbl { - pub const fn new() -> ILeavingBackgroundEventArgs_Vtbl - where - Identity: ILeavingBackgroundEventArgs_Impl, - { - unsafe extern "system" fn GetDeferral(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILeavingBackgroundEventArgs_Impl, - { + pub const fn new() -> ILeavingBackgroundEventArgs_Vtbl { + unsafe extern "system" fn GetDeferral(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILeavingBackgroundEventArgs_Impl::GetDeferral(this) { Ok(ok__) => { @@ -60,21 +48,15 @@ impl ILeavingBackgroundEventArgs_Vtbl { iid == &::IID } } -pub trait IPackageCatalogStatics2_Impl: Sized { +pub trait IPackageCatalogStatics2_Impl: Sized + windows_core::IUnknownImpl { fn OpenForPackage(&self, package: Option<&Package>) -> windows_core::Result; } impl windows_core::RuntimeName for IPackageCatalogStatics2 { const NAME: &'static str = "Windows.ApplicationModel.IPackageCatalogStatics2"; } impl IPackageCatalogStatics2_Vtbl { - pub const fn new() -> IPackageCatalogStatics2_Vtbl - where - Identity: IPackageCatalogStatics2_Impl, - { - unsafe extern "system" fn OpenForPackage(this: *mut core::ffi::c_void, package: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPackageCatalogStatics2_Impl, - { + pub const fn new() -> IPackageCatalogStatics2_Vtbl { + unsafe extern "system" fn OpenForPackage(this: *mut core::ffi::c_void, package: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPackageCatalogStatics2_Impl::OpenForPackage(this, windows_core::from_raw_borrowed(&package)) { Ok(ok__) => { @@ -91,21 +73,15 @@ impl IPackageCatalogStatics2_Vtbl { iid == &::IID } } -pub trait ISuspendingDeferral_Impl: Sized { +pub trait ISuspendingDeferral_Impl: Sized + windows_core::IUnknownImpl { fn Complete(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISuspendingDeferral { const NAME: &'static str = "Windows.ApplicationModel.ISuspendingDeferral"; } impl ISuspendingDeferral_Vtbl { - pub const fn new() -> ISuspendingDeferral_Vtbl - where - Identity: ISuspendingDeferral_Impl, - { - unsafe extern "system" fn Complete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISuspendingDeferral_Impl, - { + pub const fn new() -> ISuspendingDeferral_Vtbl { + unsafe extern "system" fn Complete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISuspendingDeferral_Impl::Complete(this).into() } @@ -115,21 +91,15 @@ impl ISuspendingDeferral_Vtbl { iid == &::IID } } -pub trait ISuspendingEventArgs_Impl: Sized { +pub trait ISuspendingEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn SuspendingOperation(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISuspendingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.ISuspendingEventArgs"; } impl ISuspendingEventArgs_Vtbl { - pub const fn new() -> ISuspendingEventArgs_Vtbl - where - Identity: ISuspendingEventArgs_Impl, - { - unsafe extern "system" fn SuspendingOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISuspendingEventArgs_Impl, - { + pub const fn new() -> ISuspendingEventArgs_Vtbl { + unsafe extern "system" fn SuspendingOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISuspendingEventArgs_Impl::SuspendingOperation(this) { Ok(ok__) => { @@ -149,7 +119,7 @@ impl ISuspendingEventArgs_Vtbl { iid == &::IID } } -pub trait ISuspendingOperation_Impl: Sized { +pub trait ISuspendingOperation_Impl: Sized + windows_core::IUnknownImpl { fn GetDeferral(&self) -> windows_core::Result; fn Deadline(&self) -> windows_core::Result; } @@ -157,14 +127,8 @@ impl windows_core::RuntimeName for ISuspendingOperation { const NAME: &'static str = "Windows.ApplicationModel.ISuspendingOperation"; } impl ISuspendingOperation_Vtbl { - pub const fn new() -> ISuspendingOperation_Vtbl - where - Identity: ISuspendingOperation_Impl, - { - unsafe extern "system" fn GetDeferral(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISuspendingOperation_Impl, - { + pub const fn new() -> ISuspendingOperation_Vtbl { + unsafe extern "system" fn GetDeferral(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISuspendingOperation_Impl::GetDeferral(this) { Ok(ok__) => { @@ -175,10 +139,7 @@ impl ISuspendingOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Deadline(this: *mut core::ffi::c_void, result__: *mut super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: ISuspendingOperation_Impl, - { + unsafe extern "system" fn Deadline(this: *mut core::ffi::c_void, result__: *mut super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISuspendingOperation_Impl::Deadline(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Data/Json/impl.rs b/crates/libs/windows/src/Windows/Data/Json/impl.rs index ffca56d3b4..4cb5d4ab7c 100644 --- a/crates/libs/windows/src/Windows/Data/Json/impl.rs +++ b/crates/libs/windows/src/Windows/Data/Json/impl.rs @@ -1,4 +1,4 @@ -pub trait IJsonValue_Impl: Sized { +pub trait IJsonValue_Impl: Sized + windows_core::IUnknownImpl { fn ValueType(&self) -> windows_core::Result; fn Stringify(&self) -> windows_core::Result; fn GetString(&self) -> windows_core::Result; @@ -11,14 +11,8 @@ impl windows_core::RuntimeName for IJsonValue { const NAME: &'static str = "Windows.Data.Json.IJsonValue"; } impl IJsonValue_Vtbl { - pub const fn new() -> IJsonValue_Vtbl - where - Identity: IJsonValue_Impl, - { - unsafe extern "system" fn ValueType(this: *mut core::ffi::c_void, result__: *mut JsonValueType) -> windows_core::HRESULT - where - Identity: IJsonValue_Impl, - { + pub const fn new() -> IJsonValue_Vtbl { + unsafe extern "system" fn ValueType(this: *mut core::ffi::c_void, result__: *mut JsonValueType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsonValue_Impl::ValueType(this) { Ok(ok__) => { @@ -28,10 +22,7 @@ impl IJsonValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Stringify(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IJsonValue_Impl, - { + unsafe extern "system" fn Stringify(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsonValue_Impl::Stringify(this) { Ok(ok__) => { @@ -42,10 +33,7 @@ impl IJsonValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IJsonValue_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsonValue_Impl::GetString(this) { Ok(ok__) => { @@ -56,10 +44,7 @@ impl IJsonValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumber(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IJsonValue_Impl, - { + unsafe extern "system" fn GetNumber(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsonValue_Impl::GetNumber(this) { Ok(ok__) => { @@ -69,10 +54,7 @@ impl IJsonValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBoolean(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IJsonValue_Impl, - { + unsafe extern "system" fn GetBoolean(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsonValue_Impl::GetBoolean(this) { Ok(ok__) => { @@ -82,10 +64,7 @@ impl IJsonValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetArray(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsonValue_Impl, - { + unsafe extern "system" fn GetArray(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsonValue_Impl::GetArray(this) { Ok(ok__) => { @@ -96,10 +75,7 @@ impl IJsonValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsonValue_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsonValue_Impl::GetObject(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Data/Xml/Dom/impl.rs b/crates/libs/windows/src/Windows/Data/Xml/Dom/impl.rs index 214a8537e6..c40b50e96d 100644 --- a/crates/libs/windows/src/Windows/Data/Xml/Dom/impl.rs +++ b/crates/libs/windows/src/Windows/Data/Xml/Dom/impl.rs @@ -1,4 +1,4 @@ -pub trait IXmlCharacterData_Impl: Sized + IXmlNode_Impl + IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { +pub trait IXmlCharacterData_Impl: Sized + windows_core::IUnknownImpl + IXmlNode_Impl + IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { fn Data(&self) -> windows_core::Result; fn SetData(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn Length(&self) -> windows_core::Result; @@ -12,14 +12,8 @@ impl windows_core::RuntimeName for IXmlCharacterData { const NAME: &'static str = "Windows.Data.Xml.Dom.IXmlCharacterData"; } impl IXmlCharacterData_Vtbl { - pub const fn new() -> IXmlCharacterData_Vtbl - where - Identity: IXmlCharacterData_Impl, - { - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXmlCharacterData_Impl, - { + pub const fn new() -> IXmlCharacterData_Vtbl { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlCharacterData_Impl::Data(this) { Ok(ok__) => { @@ -30,17 +24,11 @@ impl IXmlCharacterData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXmlCharacterData_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlCharacterData_Impl::SetData(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlCharacterData_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlCharacterData_Impl::Length(this) { Ok(ok__) => { @@ -50,10 +38,7 @@ impl IXmlCharacterData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubstringData(this: *mut core::ffi::c_void, offset: u32, count: u32, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXmlCharacterData_Impl, - { + unsafe extern "system" fn SubstringData(this: *mut core::ffi::c_void, offset: u32, count: u32, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlCharacterData_Impl::SubstringData(this, offset, count) { Ok(ok__) => { @@ -64,31 +49,19 @@ impl IXmlCharacterData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppendData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXmlCharacterData_Impl, - { + unsafe extern "system" fn AppendData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlCharacterData_Impl::AppendData(this, core::mem::transmute(&data)).into() } - unsafe extern "system" fn InsertData(this: *mut core::ffi::c_void, offset: u32, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXmlCharacterData_Impl, - { + unsafe extern "system" fn InsertData(this: *mut core::ffi::c_void, offset: u32, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlCharacterData_Impl::InsertData(this, offset, core::mem::transmute(&data)).into() } - unsafe extern "system" fn DeleteData(this: *mut core::ffi::c_void, offset: u32, count: u32) -> windows_core::HRESULT - where - Identity: IXmlCharacterData_Impl, - { + unsafe extern "system" fn DeleteData(this: *mut core::ffi::c_void, offset: u32, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlCharacterData_Impl::DeleteData(this, offset, count).into() } - unsafe extern "system" fn ReplaceData(this: *mut core::ffi::c_void, offset: u32, count: u32, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXmlCharacterData_Impl, - { + unsafe extern "system" fn ReplaceData(this: *mut core::ffi::c_void, offset: u32, count: u32, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlCharacterData_Impl::ReplaceData(this, offset, count, core::mem::transmute(&data)).into() } @@ -108,7 +81,7 @@ impl IXmlCharacterData_Vtbl { iid == &::IID } } -pub trait IXmlNode_Impl: Sized + IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { +pub trait IXmlNode_Impl: Sized + windows_core::IUnknownImpl + IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { fn NodeValue(&self) -> windows_core::Result; fn SetNodeValue(&self, value: Option<&windows_core::IInspectable>) -> windows_core::Result<()>; fn NodeType(&self) -> windows_core::Result; @@ -137,14 +110,8 @@ impl windows_core::RuntimeName for IXmlNode { const NAME: &'static str = "Windows.Data.Xml.Dom.IXmlNode"; } impl IXmlNode_Vtbl { - pub const fn new() -> IXmlNode_Vtbl - where - Identity: IXmlNode_Impl, - { - unsafe extern "system" fn NodeValue(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + pub const fn new() -> IXmlNode_Vtbl { + unsafe extern "system" fn NodeValue(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::NodeValue(this) { Ok(ok__) => { @@ -155,17 +122,11 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNodeValue(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn SetNodeValue(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlNode_Impl::SetNodeValue(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn NodeType(this: *mut core::ffi::c_void, result__: *mut NodeType) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn NodeType(this: *mut core::ffi::c_void, result__: *mut NodeType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::NodeType(this) { Ok(ok__) => { @@ -175,10 +136,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NodeName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn NodeName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::NodeName(this) { Ok(ok__) => { @@ -189,10 +147,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParentNode(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn ParentNode(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::ParentNode(this) { Ok(ok__) => { @@ -203,10 +158,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChildNodes(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn ChildNodes(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::ChildNodes(this) { Ok(ok__) => { @@ -217,10 +169,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FirstChild(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn FirstChild(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::FirstChild(this) { Ok(ok__) => { @@ -231,10 +180,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastChild(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn LastChild(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::LastChild(this) { Ok(ok__) => { @@ -245,10 +191,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PreviousSibling(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn PreviousSibling(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::PreviousSibling(this) { Ok(ok__) => { @@ -259,10 +202,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NextSibling(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn NextSibling(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::NextSibling(this) { Ok(ok__) => { @@ -273,10 +213,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::Attributes(this) { Ok(ok__) => { @@ -287,10 +224,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasChildNodes(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn HasChildNodes(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::HasChildNodes(this) { Ok(ok__) => { @@ -300,10 +234,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OwnerDocument(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn OwnerDocument(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::OwnerDocument(this) { Ok(ok__) => { @@ -314,10 +245,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertBefore(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, referencechild: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn InsertBefore(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, referencechild: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::InsertBefore(this, windows_core::from_raw_borrowed(&newchild), windows_core::from_raw_borrowed(&referencechild)) { Ok(ok__) => { @@ -328,10 +256,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReplaceChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, referencechild: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn ReplaceChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, referencechild: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::ReplaceChild(this, windows_core::from_raw_borrowed(&newchild), windows_core::from_raw_borrowed(&referencechild)) { Ok(ok__) => { @@ -342,10 +267,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveChild(this: *mut core::ffi::c_void, childnode: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn RemoveChild(this: *mut core::ffi::c_void, childnode: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::RemoveChild(this, windows_core::from_raw_borrowed(&childnode)) { Ok(ok__) => { @@ -356,10 +278,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppendChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn AppendChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::AppendChild(this, windows_core::from_raw_borrowed(&newchild)) { Ok(ok__) => { @@ -370,10 +289,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloneNode(this: *mut core::ffi::c_void, deep: bool, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn CloneNode(this: *mut core::ffi::c_void, deep: bool, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::CloneNode(this, deep) { Ok(ok__) => { @@ -384,10 +300,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NamespaceUri(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn NamespaceUri(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::NamespaceUri(this) { Ok(ok__) => { @@ -398,10 +311,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalName(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn LocalName(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::LocalName(this) { Ok(ok__) => { @@ -412,10 +322,7 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Prefix(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn Prefix(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNode_Impl::Prefix(this) { Ok(ok__) => { @@ -426,17 +333,11 @@ impl IXmlNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Normalize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn Normalize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlNode_Impl::Normalize(this).into() } - unsafe extern "system" fn SetPrefix(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNode_Impl, - { + unsafe extern "system" fn SetPrefix(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlNode_Impl::SetPrefix(this, windows_core::from_raw_borrowed(&value)).into() } @@ -471,7 +372,7 @@ impl IXmlNode_Vtbl { iid == &::IID } } -pub trait IXmlNodeSelector_Impl: Sized { +pub trait IXmlNodeSelector_Impl: Sized + windows_core::IUnknownImpl { fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result; fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result; fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: Option<&windows_core::IInspectable>) -> windows_core::Result; @@ -481,14 +382,8 @@ impl windows_core::RuntimeName for IXmlNodeSelector { const NAME: &'static str = "Windows.Data.Xml.Dom.IXmlNodeSelector"; } impl IXmlNodeSelector_Vtbl { - pub const fn new() -> IXmlNodeSelector_Vtbl - where - Identity: IXmlNodeSelector_Impl, - { - unsafe extern "system" fn SelectSingleNode(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNodeSelector_Impl, - { + pub const fn new() -> IXmlNodeSelector_Vtbl { + unsafe extern "system" fn SelectSingleNode(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNodeSelector_Impl::SelectSingleNode(this, core::mem::transmute(&xpath)) { Ok(ok__) => { @@ -499,10 +394,7 @@ impl IXmlNodeSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectNodes(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNodeSelector_Impl, - { + unsafe extern "system" fn SelectNodes(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNodeSelector_Impl::SelectNodes(this, core::mem::transmute(&xpath)) { Ok(ok__) => { @@ -513,10 +405,7 @@ impl IXmlNodeSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectSingleNodeNS(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, namespaces: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNodeSelector_Impl, - { + unsafe extern "system" fn SelectSingleNodeNS(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, namespaces: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNodeSelector_Impl::SelectSingleNodeNS(this, core::mem::transmute(&xpath), windows_core::from_raw_borrowed(&namespaces)) { Ok(ok__) => { @@ -527,10 +416,7 @@ impl IXmlNodeSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectNodesNS(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, namespaces: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlNodeSelector_Impl, - { + unsafe extern "system" fn SelectNodesNS(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, namespaces: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNodeSelector_Impl::SelectNodesNS(this, core::mem::transmute(&xpath), windows_core::from_raw_borrowed(&namespaces)) { Ok(ok__) => { @@ -553,7 +439,7 @@ impl IXmlNodeSelector_Vtbl { iid == &::IID } } -pub trait IXmlNodeSerializer_Impl: Sized { +pub trait IXmlNodeSerializer_Impl: Sized + windows_core::IUnknownImpl { fn GetXml(&self) -> windows_core::Result; fn InnerText(&self) -> windows_core::Result; fn SetInnerText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; @@ -562,14 +448,8 @@ impl windows_core::RuntimeName for IXmlNodeSerializer { const NAME: &'static str = "Windows.Data.Xml.Dom.IXmlNodeSerializer"; } impl IXmlNodeSerializer_Vtbl { - pub const fn new() -> IXmlNodeSerializer_Vtbl - where - Identity: IXmlNodeSerializer_Impl, - { - unsafe extern "system" fn GetXml(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXmlNodeSerializer_Impl, - { + pub const fn new() -> IXmlNodeSerializer_Vtbl { + unsafe extern "system" fn GetXml(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNodeSerializer_Impl::GetXml(this) { Ok(ok__) => { @@ -580,10 +460,7 @@ impl IXmlNodeSerializer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InnerText(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXmlNodeSerializer_Impl, - { + unsafe extern "system" fn InnerText(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlNodeSerializer_Impl::InnerText(this) { Ok(ok__) => { @@ -594,10 +471,7 @@ impl IXmlNodeSerializer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInnerText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXmlNodeSerializer_Impl, - { + unsafe extern "system" fn SetInnerText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlNodeSerializer_Impl::SetInnerText(this, core::mem::transmute(&value)).into() } @@ -612,21 +486,15 @@ impl IXmlNodeSerializer_Vtbl { iid == &::IID } } -pub trait IXmlText_Impl: Sized + IXmlCharacterData_Impl + IXmlNode_Impl + IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { +pub trait IXmlText_Impl: Sized + windows_core::IUnknownImpl + IXmlCharacterData_Impl + IXmlNode_Impl + IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { fn SplitText(&self, offset: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IXmlText { const NAME: &'static str = "Windows.Data.Xml.Dom.IXmlText"; } impl IXmlText_Vtbl { - pub const fn new() -> IXmlText_Vtbl - where - Identity: IXmlText_Impl, - { - unsafe extern "system" fn SplitText(this: *mut core::ffi::c_void, offset: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlText_Impl, - { + pub const fn new() -> IXmlText_Vtbl { + unsafe extern "system" fn SplitText(this: *mut core::ffi::c_void, offset: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlText_Impl::SplitText(this, offset) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/Adc/Provider/impl.rs b/crates/libs/windows/src/Windows/Devices/Adc/Provider/impl.rs index 7b3c3642ea..0c6d2db64b 100644 --- a/crates/libs/windows/src/Windows/Devices/Adc/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Adc/Provider/impl.rs @@ -1,4 +1,4 @@ -pub trait IAdcControllerProvider_Impl: Sized { +pub trait IAdcControllerProvider_Impl: Sized + windows_core::IUnknownImpl { fn ChannelCount(&self) -> windows_core::Result; fn ResolutionInBits(&self) -> windows_core::Result; fn MinValue(&self) -> windows_core::Result; @@ -14,14 +14,8 @@ impl windows_core::RuntimeName for IAdcControllerProvider { const NAME: &'static str = "Windows.Devices.Adc.Provider.IAdcControllerProvider"; } impl IAdcControllerProvider_Vtbl { - pub const fn new() -> IAdcControllerProvider_Vtbl - where - Identity: IAdcControllerProvider_Impl, - { - unsafe extern "system" fn ChannelCount(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IAdcControllerProvider_Impl, - { + pub const fn new() -> IAdcControllerProvider_Vtbl { + unsafe extern "system" fn ChannelCount(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdcControllerProvider_Impl::ChannelCount(this) { Ok(ok__) => { @@ -31,10 +25,7 @@ impl IAdcControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResolutionInBits(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IAdcControllerProvider_Impl, - { + unsafe extern "system" fn ResolutionInBits(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdcControllerProvider_Impl::ResolutionInBits(this) { Ok(ok__) => { @@ -44,10 +35,7 @@ impl IAdcControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinValue(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IAdcControllerProvider_Impl, - { + unsafe extern "system" fn MinValue(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdcControllerProvider_Impl::MinValue(this) { Ok(ok__) => { @@ -57,10 +45,7 @@ impl IAdcControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxValue(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IAdcControllerProvider_Impl, - { + unsafe extern "system" fn MaxValue(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdcControllerProvider_Impl::MaxValue(this) { Ok(ok__) => { @@ -70,10 +55,7 @@ impl IAdcControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChannelMode(this: *mut core::ffi::c_void, result__: *mut ProviderAdcChannelMode) -> windows_core::HRESULT - where - Identity: IAdcControllerProvider_Impl, - { + unsafe extern "system" fn ChannelMode(this: *mut core::ffi::c_void, result__: *mut ProviderAdcChannelMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdcControllerProvider_Impl::ChannelMode(this) { Ok(ok__) => { @@ -83,17 +65,11 @@ impl IAdcControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannelMode(this: *mut core::ffi::c_void, value: ProviderAdcChannelMode) -> windows_core::HRESULT - where - Identity: IAdcControllerProvider_Impl, - { + unsafe extern "system" fn SetChannelMode(this: *mut core::ffi::c_void, value: ProviderAdcChannelMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdcControllerProvider_Impl::SetChannelMode(this, value).into() } - unsafe extern "system" fn IsChannelModeSupported(this: *mut core::ffi::c_void, channelmode: ProviderAdcChannelMode, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IAdcControllerProvider_Impl, - { + unsafe extern "system" fn IsChannelModeSupported(this: *mut core::ffi::c_void, channelmode: ProviderAdcChannelMode, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdcControllerProvider_Impl::IsChannelModeSupported(this, channelmode) { Ok(ok__) => { @@ -103,24 +79,15 @@ impl IAdcControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AcquireChannel(this: *mut core::ffi::c_void, channel: i32) -> windows_core::HRESULT - where - Identity: IAdcControllerProvider_Impl, - { + unsafe extern "system" fn AcquireChannel(this: *mut core::ffi::c_void, channel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdcControllerProvider_Impl::AcquireChannel(this, channel).into() } - unsafe extern "system" fn ReleaseChannel(this: *mut core::ffi::c_void, channel: i32) -> windows_core::HRESULT - where - Identity: IAdcControllerProvider_Impl, - { + unsafe extern "system" fn ReleaseChannel(this: *mut core::ffi::c_void, channel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdcControllerProvider_Impl::ReleaseChannel(this, channel).into() } - unsafe extern "system" fn ReadValue(this: *mut core::ffi::c_void, channelnumber: i32, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IAdcControllerProvider_Impl, - { + unsafe extern "system" fn ReadValue(this: *mut core::ffi::c_void, channelnumber: i32, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdcControllerProvider_Impl::ReadValue(this, channelnumber) { Ok(ok__) => { @@ -149,7 +116,7 @@ impl IAdcControllerProvider_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IAdcProvider_Impl: Sized { +pub trait IAdcProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetControllers(&self) -> windows_core::Result>; } #[cfg(feature = "Foundation_Collections")] @@ -158,14 +125,8 @@ impl windows_core::RuntimeName for IAdcProvider { } #[cfg(feature = "Foundation_Collections")] impl IAdcProvider_Vtbl { - pub const fn new() -> IAdcProvider_Vtbl - where - Identity: IAdcProvider_Impl, - { - unsafe extern "system" fn GetControllers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAdcProvider_Impl, - { + pub const fn new() -> IAdcProvider_Vtbl { + unsafe extern "system" fn GetControllers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdcProvider_Impl::GetControllers(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/Custom/impl.rs b/crates/libs/windows/src/Windows/Devices/Custom/impl.rs index 83d9a23602..b1b7efeb44 100644 --- a/crates/libs/windows/src/Windows/Devices/Custom/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Custom/impl.rs @@ -1,4 +1,4 @@ -pub trait IIOControlCode_Impl: Sized { +pub trait IIOControlCode_Impl: Sized + windows_core::IUnknownImpl { fn AccessMode(&self) -> windows_core::Result; fn BufferingMethod(&self) -> windows_core::Result; fn Function(&self) -> windows_core::Result; @@ -9,14 +9,8 @@ impl windows_core::RuntimeName for IIOControlCode { const NAME: &'static str = "Windows.Devices.Custom.IIOControlCode"; } impl IIOControlCode_Vtbl { - pub const fn new() -> IIOControlCode_Vtbl - where - Identity: IIOControlCode_Impl, - { - unsafe extern "system" fn AccessMode(this: *mut core::ffi::c_void, result__: *mut IOControlAccessMode) -> windows_core::HRESULT - where - Identity: IIOControlCode_Impl, - { + pub const fn new() -> IIOControlCode_Vtbl { + unsafe extern "system" fn AccessMode(this: *mut core::ffi::c_void, result__: *mut IOControlAccessMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIOControlCode_Impl::AccessMode(this) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl IIOControlCode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BufferingMethod(this: *mut core::ffi::c_void, result__: *mut IOControlBufferingMethod) -> windows_core::HRESULT - where - Identity: IIOControlCode_Impl, - { + unsafe extern "system" fn BufferingMethod(this: *mut core::ffi::c_void, result__: *mut IOControlBufferingMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIOControlCode_Impl::BufferingMethod(this) { Ok(ok__) => { @@ -39,10 +30,7 @@ impl IIOControlCode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Function(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT - where - Identity: IIOControlCode_Impl, - { + unsafe extern "system" fn Function(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIOControlCode_Impl::Function(this) { Ok(ok__) => { @@ -52,10 +40,7 @@ impl IIOControlCode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceType(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT - where - Identity: IIOControlCode_Impl, - { + unsafe extern "system" fn DeviceType(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIOControlCode_Impl::DeviceType(this) { Ok(ok__) => { @@ -65,10 +50,7 @@ impl IIOControlCode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ControlCode(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IIOControlCode_Impl, - { + unsafe extern "system" fn ControlCode(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIOControlCode_Impl::ControlCode(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/Enumeration/impl.rs b/crates/libs/windows/src/Windows/Devices/Enumeration/impl.rs index ae6f6ba985..798a70cdbf 100644 --- a/crates/libs/windows/src/Windows/Devices/Enumeration/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Enumeration/impl.rs @@ -1,27 +1,21 @@ -pub trait IDeviceEnumerationSettings_Impl: Sized {} +pub trait IDeviceEnumerationSettings_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IDeviceEnumerationSettings { const NAME: &'static str = "Windows.Devices.Enumeration.IDeviceEnumerationSettings"; } impl IDeviceEnumerationSettings_Vtbl { - pub const fn new() -> IDeviceEnumerationSettings_Vtbl - where - Identity: IDeviceEnumerationSettings_Impl, - { + pub const fn new() -> IDeviceEnumerationSettings_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IDevicePairingSettings_Impl: Sized {} +pub trait IDevicePairingSettings_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IDevicePairingSettings { const NAME: &'static str = "Windows.Devices.Enumeration.IDevicePairingSettings"; } impl IDevicePairingSettings_Vtbl { - pub const fn new() -> IDevicePairingSettings_Vtbl - where - Identity: IDevicePairingSettings_Impl, - { + pub const fn new() -> IDevicePairingSettings_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Devices/Geolocation/impl.rs b/crates/libs/windows/src/Windows/Devices/Geolocation/impl.rs index 7c3228bbd3..198ebf9088 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/impl.rs @@ -1,4 +1,4 @@ -pub trait IGeoshape_Impl: Sized { +pub trait IGeoshape_Impl: Sized + windows_core::IUnknownImpl { fn GeoshapeType(&self) -> windows_core::Result; fn SpatialReferenceId(&self) -> windows_core::Result; fn AltitudeReferenceSystem(&self) -> windows_core::Result; @@ -7,14 +7,8 @@ impl windows_core::RuntimeName for IGeoshape { const NAME: &'static str = "Windows.Devices.Geolocation.IGeoshape"; } impl IGeoshape_Vtbl { - pub const fn new() -> IGeoshape_Vtbl - where - Identity: IGeoshape_Impl, - { - unsafe extern "system" fn GeoshapeType(this: *mut core::ffi::c_void, result__: *mut GeoshapeType) -> windows_core::HRESULT - where - Identity: IGeoshape_Impl, - { + pub const fn new() -> IGeoshape_Vtbl { + unsafe extern "system" fn GeoshapeType(this: *mut core::ffi::c_void, result__: *mut GeoshapeType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGeoshape_Impl::GeoshapeType(this) { Ok(ok__) => { @@ -24,10 +18,7 @@ impl IGeoshape_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpatialReferenceId(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IGeoshape_Impl, - { + unsafe extern "system" fn SpatialReferenceId(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGeoshape_Impl::SpatialReferenceId(this) { Ok(ok__) => { @@ -37,10 +28,7 @@ impl IGeoshape_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AltitudeReferenceSystem(this: *mut core::ffi::c_void, result__: *mut AltitudeReferenceSystem) -> windows_core::HRESULT - where - Identity: IGeoshape_Impl, - { + unsafe extern "system" fn AltitudeReferenceSystem(this: *mut core::ffi::c_void, result__: *mut AltitudeReferenceSystem) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGeoshape_Impl::AltitudeReferenceSystem(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/Gpio/Provider/impl.rs b/crates/libs/windows/src/Windows/Devices/Gpio/Provider/impl.rs index f42d99f70c..393df8455e 100644 --- a/crates/libs/windows/src/Windows/Devices/Gpio/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Gpio/Provider/impl.rs @@ -1,4 +1,4 @@ -pub trait IGpioControllerProvider_Impl: Sized { +pub trait IGpioControllerProvider_Impl: Sized + windows_core::IUnknownImpl { fn PinCount(&self) -> windows_core::Result; fn OpenPinProvider(&self, pin: i32, sharingmode: ProviderGpioSharingMode) -> windows_core::Result; } @@ -6,14 +6,8 @@ impl windows_core::RuntimeName for IGpioControllerProvider { const NAME: &'static str = "Windows.Devices.Gpio.Provider.IGpioControllerProvider"; } impl IGpioControllerProvider_Vtbl { - pub const fn new() -> IGpioControllerProvider_Vtbl - where - Identity: IGpioControllerProvider_Impl, - { - unsafe extern "system" fn PinCount(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IGpioControllerProvider_Impl, - { + pub const fn new() -> IGpioControllerProvider_Vtbl { + unsafe extern "system" fn PinCount(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpioControllerProvider_Impl::PinCount(this) { Ok(ok__) => { @@ -23,10 +17,7 @@ impl IGpioControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenPinProvider(this: *mut core::ffi::c_void, pin: i32, sharingmode: ProviderGpioSharingMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGpioControllerProvider_Impl, - { + unsafe extern "system" fn OpenPinProvider(this: *mut core::ffi::c_void, pin: i32, sharingmode: ProviderGpioSharingMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpioControllerProvider_Impl::OpenPinProvider(this, pin, sharingmode) { Ok(ok__) => { @@ -47,7 +38,7 @@ impl IGpioControllerProvider_Vtbl { iid == &::IID } } -pub trait IGpioPinProvider_Impl: Sized { +pub trait IGpioPinProvider_Impl: Sized + windows_core::IUnknownImpl { fn ValueChanged(&self, handler: Option<&super::super::super::Foundation::TypedEventHandler>) -> windows_core::Result; fn RemoveValueChanged(&self, token: &super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()>; fn DebounceTimeout(&self) -> windows_core::Result; @@ -64,14 +55,8 @@ impl windows_core::RuntimeName for IGpioPinProvider { const NAME: &'static str = "Windows.Devices.Gpio.Provider.IGpioPinProvider"; } impl IGpioPinProvider_Vtbl { - pub const fn new() -> IGpioPinProvider_Vtbl - where - Identity: IGpioPinProvider_Impl, - { - unsafe extern "system" fn ValueChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + pub const fn new() -> IGpioPinProvider_Vtbl { + unsafe extern "system" fn ValueChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpioPinProvider_Impl::ValueChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -81,17 +66,11 @@ impl IGpioPinProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveValueChanged(this: *mut core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + unsafe extern "system" fn RemoveValueChanged(this: *mut core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGpioPinProvider_Impl::RemoveValueChanged(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn DebounceTimeout(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + unsafe extern "system" fn DebounceTimeout(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpioPinProvider_Impl::DebounceTimeout(this) { Ok(ok__) => { @@ -101,17 +80,11 @@ impl IGpioPinProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDebounceTimeout(this: *mut core::ffi::c_void, value: super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + unsafe extern "system" fn SetDebounceTimeout(this: *mut core::ffi::c_void, value: super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGpioPinProvider_Impl::SetDebounceTimeout(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn PinNumber(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + unsafe extern "system" fn PinNumber(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpioPinProvider_Impl::PinNumber(this) { Ok(ok__) => { @@ -121,10 +94,7 @@ impl IGpioPinProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SharingMode(this: *mut core::ffi::c_void, result__: *mut ProviderGpioSharingMode) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + unsafe extern "system" fn SharingMode(this: *mut core::ffi::c_void, result__: *mut ProviderGpioSharingMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpioPinProvider_Impl::SharingMode(this) { Ok(ok__) => { @@ -134,10 +104,7 @@ impl IGpioPinProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDriveModeSupported(this: *mut core::ffi::c_void, drivemode: ProviderGpioPinDriveMode, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + unsafe extern "system" fn IsDriveModeSupported(this: *mut core::ffi::c_void, drivemode: ProviderGpioPinDriveMode, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpioPinProvider_Impl::IsDriveModeSupported(this, drivemode) { Ok(ok__) => { @@ -147,10 +114,7 @@ impl IGpioPinProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDriveMode(this: *mut core::ffi::c_void, result__: *mut ProviderGpioPinDriveMode) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + unsafe extern "system" fn GetDriveMode(this: *mut core::ffi::c_void, result__: *mut ProviderGpioPinDriveMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpioPinProvider_Impl::GetDriveMode(this) { Ok(ok__) => { @@ -160,24 +124,15 @@ impl IGpioPinProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDriveMode(this: *mut core::ffi::c_void, value: ProviderGpioPinDriveMode) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + unsafe extern "system" fn SetDriveMode(this: *mut core::ffi::c_void, value: ProviderGpioPinDriveMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGpioPinProvider_Impl::SetDriveMode(this, value).into() } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, value: ProviderGpioPinValue) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, value: ProviderGpioPinValue) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGpioPinProvider_Impl::Write(this, value).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, result__: *mut ProviderGpioPinValue) -> windows_core::HRESULT - where - Identity: IGpioPinProvider_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, result__: *mut ProviderGpioPinValue) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpioPinProvider_Impl::Read(this) { Ok(ok__) => { @@ -207,7 +162,7 @@ impl IGpioPinProvider_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IGpioProvider_Impl: Sized { +pub trait IGpioProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetControllers(&self) -> windows_core::Result>; } #[cfg(feature = "Foundation_Collections")] @@ -216,14 +171,8 @@ impl windows_core::RuntimeName for IGpioProvider { } #[cfg(feature = "Foundation_Collections")] impl IGpioProvider_Vtbl { - pub const fn new() -> IGpioProvider_Vtbl - where - Identity: IGpioProvider_Impl, - { - unsafe extern "system" fn GetControllers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGpioProvider_Impl, - { + pub const fn new() -> IGpioProvider_Vtbl { + unsafe extern "system" fn GetControllers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpioProvider_Impl::GetControllers(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/I2c/Provider/impl.rs b/crates/libs/windows/src/Windows/Devices/I2c/Provider/impl.rs index cd0d8bbcb6..3deec51568 100644 --- a/crates/libs/windows/src/Windows/Devices/I2c/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/I2c/Provider/impl.rs @@ -1,18 +1,12 @@ -pub trait II2cControllerProvider_Impl: Sized { +pub trait II2cControllerProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceProvider(&self, settings: Option<&ProviderI2cConnectionSettings>) -> windows_core::Result; } impl windows_core::RuntimeName for II2cControllerProvider { const NAME: &'static str = "Windows.Devices.I2c.Provider.II2cControllerProvider"; } impl II2cControllerProvider_Vtbl { - pub const fn new() -> II2cControllerProvider_Vtbl - where - Identity: II2cControllerProvider_Impl, - { - unsafe extern "system" fn GetDeviceProvider(this: *mut core::ffi::c_void, settings: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: II2cControllerProvider_Impl, - { + pub const fn new() -> II2cControllerProvider_Vtbl { + unsafe extern "system" fn GetDeviceProvider(this: *mut core::ffi::c_void, settings: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match II2cControllerProvider_Impl::GetDeviceProvider(this, windows_core::from_raw_borrowed(&settings)) { Ok(ok__) => { @@ -32,7 +26,7 @@ impl II2cControllerProvider_Vtbl { iid == &::IID } } -pub trait II2cDeviceProvider_Impl: Sized + super::super::super::Foundation::IClosable_Impl { +pub trait II2cDeviceProvider_Impl: Sized + windows_core::IUnknownImpl + super::super::super::Foundation::IClosable_Impl { fn DeviceId(&self) -> windows_core::Result; fn Write(&self, buffer: &[u8]) -> windows_core::Result<()>; fn WritePartial(&self, buffer: &[u8]) -> windows_core::Result; @@ -45,14 +39,8 @@ impl windows_core::RuntimeName for II2cDeviceProvider { const NAME: &'static str = "Windows.Devices.I2c.Provider.II2cDeviceProvider"; } impl II2cDeviceProvider_Vtbl { - pub const fn new() -> II2cDeviceProvider_Vtbl - where - Identity: II2cDeviceProvider_Impl, - { - unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: II2cDeviceProvider_Impl, - { + pub const fn new() -> II2cDeviceProvider_Vtbl { + unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match II2cDeviceProvider_Impl::DeviceId(this) { Ok(ok__) => { @@ -63,17 +51,11 @@ impl II2cDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *const u8) -> windows_core::HRESULT - where - Identity: II2cDeviceProvider_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); II2cDeviceProvider_Impl::Write(this, core::slice::from_raw_parts(core::mem::transmute_copy(&buffer), buffer_array_size as usize)).into() } - unsafe extern "system" fn WritePartial(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *const u8, result__: *mut ProviderI2cTransferResult) -> windows_core::HRESULT - where - Identity: II2cDeviceProvider_Impl, - { + unsafe extern "system" fn WritePartial(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *const u8, result__: *mut ProviderI2cTransferResult) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match II2cDeviceProvider_Impl::WritePartial(this, core::slice::from_raw_parts(core::mem::transmute_copy(&buffer), buffer_array_size as usize)) { Ok(ok__) => { @@ -83,17 +65,11 @@ impl II2cDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *mut u8) -> windows_core::HRESULT - where - Identity: II2cDeviceProvider_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); II2cDeviceProvider_Impl::Read(this, core::slice::from_raw_parts_mut(core::mem::transmute_copy(&buffer), buffer_array_size as usize)).into() } - unsafe extern "system" fn ReadPartial(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *mut u8, result__: *mut ProviderI2cTransferResult) -> windows_core::HRESULT - where - Identity: II2cDeviceProvider_Impl, - { + unsafe extern "system" fn ReadPartial(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *mut u8, result__: *mut ProviderI2cTransferResult) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match II2cDeviceProvider_Impl::ReadPartial(this, core::slice::from_raw_parts_mut(core::mem::transmute_copy(&buffer), buffer_array_size as usize)) { Ok(ok__) => { @@ -103,17 +79,11 @@ impl II2cDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteRead(this: *mut core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: II2cDeviceProvider_Impl, - { + unsafe extern "system" fn WriteRead(this: *mut core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); II2cDeviceProvider_Impl::WriteRead(this, core::slice::from_raw_parts(core::mem::transmute_copy(&writebuffer), writeBuffer_array_size as usize), core::slice::from_raw_parts_mut(core::mem::transmute_copy(&readbuffer), readBuffer_array_size as usize)).into() } - unsafe extern "system" fn WriteReadPartial(this: *mut core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8, result__: *mut ProviderI2cTransferResult) -> windows_core::HRESULT - where - Identity: II2cDeviceProvider_Impl, - { + unsafe extern "system" fn WriteReadPartial(this: *mut core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8, result__: *mut ProviderI2cTransferResult) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match II2cDeviceProvider_Impl::WriteReadPartial(this, core::slice::from_raw_parts(core::mem::transmute_copy(&writebuffer), writeBuffer_array_size as usize), core::slice::from_raw_parts_mut(core::mem::transmute_copy(&readbuffer), readBuffer_array_size as usize)) { Ok(ok__) => { @@ -139,7 +109,7 @@ impl II2cDeviceProvider_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait II2cProvider_Impl: Sized { +pub trait II2cProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetControllersAsync(&self) -> windows_core::Result>>; } #[cfg(feature = "Foundation_Collections")] @@ -148,14 +118,8 @@ impl windows_core::RuntimeName for II2cProvider { } #[cfg(feature = "Foundation_Collections")] impl II2cProvider_Vtbl { - pub const fn new() -> II2cProvider_Vtbl - where - Identity: II2cProvider_Impl, - { - unsafe extern "system" fn GetControllersAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: II2cProvider_Impl, - { + pub const fn new() -> II2cProvider_Vtbl { + unsafe extern "system" fn GetControllersAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match II2cProvider_Impl::GetControllersAsync(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/I2c/impl.rs b/crates/libs/windows/src/Windows/Devices/I2c/impl.rs index 5bd635dfb7..4328a4d353 100644 --- a/crates/libs/windows/src/Windows/Devices/I2c/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/I2c/impl.rs @@ -1,4 +1,4 @@ -pub trait II2cDeviceStatics_Impl: Sized { +pub trait II2cDeviceStatics_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceSelector(&self) -> windows_core::Result; fn GetDeviceSelectorFromFriendlyName(&self, friendlyname: &windows_core::HSTRING) -> windows_core::Result; fn FromIdAsync(&self, deviceid: &windows_core::HSTRING, settings: Option<&I2cConnectionSettings>) -> windows_core::Result>; @@ -7,14 +7,8 @@ impl windows_core::RuntimeName for II2cDeviceStatics { const NAME: &'static str = "Windows.Devices.I2c.II2cDeviceStatics"; } impl II2cDeviceStatics_Vtbl { - pub const fn new() -> II2cDeviceStatics_Vtbl - where - Identity: II2cDeviceStatics_Impl, - { - unsafe extern "system" fn GetDeviceSelector(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: II2cDeviceStatics_Impl, - { + pub const fn new() -> II2cDeviceStatics_Vtbl { + unsafe extern "system" fn GetDeviceSelector(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match II2cDeviceStatics_Impl::GetDeviceSelector(this) { Ok(ok__) => { @@ -25,10 +19,7 @@ impl II2cDeviceStatics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceSelectorFromFriendlyName(this: *mut core::ffi::c_void, friendlyname: core::mem::MaybeUninit, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: II2cDeviceStatics_Impl, - { + unsafe extern "system" fn GetDeviceSelectorFromFriendlyName(this: *mut core::ffi::c_void, friendlyname: core::mem::MaybeUninit, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match II2cDeviceStatics_Impl::GetDeviceSelectorFromFriendlyName(this, core::mem::transmute(&friendlyname)) { Ok(ok__) => { @@ -39,10 +30,7 @@ impl II2cDeviceStatics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FromIdAsync(this: *mut core::ffi::c_void, deviceid: core::mem::MaybeUninit, settings: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: II2cDeviceStatics_Impl, - { + unsafe extern "system" fn FromIdAsync(this: *mut core::ffi::c_void, deviceid: core::mem::MaybeUninit, settings: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match II2cDeviceStatics_Impl::FromIdAsync(this, core::mem::transmute(&deviceid), windows_core::from_raw_borrowed(&settings)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/Lights/Effects/impl.rs b/crates/libs/windows/src/Windows/Devices/Lights/Effects/impl.rs index 2f2b257904..426551a851 100644 --- a/crates/libs/windows/src/Windows/Devices/Lights/Effects/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Lights/Effects/impl.rs @@ -1,4 +1,4 @@ -pub trait ILampArrayEffect_Impl: Sized { +pub trait ILampArrayEffect_Impl: Sized + windows_core::IUnknownImpl { fn ZIndex(&self) -> windows_core::Result; fn SetZIndex(&self, value: i32) -> windows_core::Result<()>; } @@ -6,14 +6,8 @@ impl windows_core::RuntimeName for ILampArrayEffect { const NAME: &'static str = "Windows.Devices.Lights.Effects.ILampArrayEffect"; } impl ILampArrayEffect_Vtbl { - pub const fn new() -> ILampArrayEffect_Vtbl - where - Identity: ILampArrayEffect_Impl, - { - unsafe extern "system" fn ZIndex(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ILampArrayEffect_Impl, - { + pub const fn new() -> ILampArrayEffect_Vtbl { + unsafe extern "system" fn ZIndex(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILampArrayEffect_Impl::ZIndex(this) { Ok(ok__) => { @@ -23,10 +17,7 @@ impl ILampArrayEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetZIndex(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ILampArrayEffect_Impl, - { + unsafe extern "system" fn SetZIndex(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILampArrayEffect_Impl::SetZIndex(this, value).into() } diff --git a/crates/libs/windows/src/Windows/Devices/Midi/impl.rs b/crates/libs/windows/src/Windows/Devices/Midi/impl.rs index d3ab58d2b2..c56e79a491 100644 --- a/crates/libs/windows/src/Windows/Devices/Midi/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Midi/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Storage_Streams")] -pub trait IMidiMessage_Impl: Sized { +pub trait IMidiMessage_Impl: Sized + windows_core::IUnknownImpl { fn Timestamp(&self) -> windows_core::Result; fn RawData(&self) -> windows_core::Result; fn Type(&self) -> windows_core::Result; @@ -10,14 +10,8 @@ impl windows_core::RuntimeName for IMidiMessage { } #[cfg(feature = "Storage_Streams")] impl IMidiMessage_Vtbl { - pub const fn new() -> IMidiMessage_Vtbl - where - Identity: IMidiMessage_Impl, - { - unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IMidiMessage_Impl, - { + pub const fn new() -> IMidiMessage_Vtbl { + unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMidiMessage_Impl::Timestamp(this) { Ok(ok__) => { @@ -27,10 +21,7 @@ impl IMidiMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RawData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMidiMessage_Impl, - { + unsafe extern "system" fn RawData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMidiMessage_Impl::RawData(this) { Ok(ok__) => { @@ -41,10 +32,7 @@ impl IMidiMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut MidiMessageType) -> windows_core::HRESULT - where - Identity: IMidiMessage_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut MidiMessageType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMidiMessage_Impl::Type(this) { Ok(ok__) => { @@ -66,7 +54,7 @@ impl IMidiMessage_Vtbl { } } #[cfg(feature = "Storage_Streams")] -pub trait IMidiOutPort_Impl: Sized + super::super::Foundation::IClosable_Impl { +pub trait IMidiOutPort_Impl: Sized + windows_core::IUnknownImpl + super::super::Foundation::IClosable_Impl { fn SendMessage(&self, midimessage: Option<&IMidiMessage>) -> windows_core::Result<()>; fn SendBuffer(&self, mididata: Option<&super::super::Storage::Streams::IBuffer>) -> windows_core::Result<()>; fn DeviceId(&self) -> windows_core::Result; @@ -77,28 +65,16 @@ impl windows_core::RuntimeName for IMidiOutPort { } #[cfg(feature = "Storage_Streams")] impl IMidiOutPort_Vtbl { - pub const fn new() -> IMidiOutPort_Vtbl - where - Identity: IMidiOutPort_Impl, - { - unsafe extern "system" fn SendMessage(this: *mut core::ffi::c_void, midimessage: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMidiOutPort_Impl, - { + pub const fn new() -> IMidiOutPort_Vtbl { + unsafe extern "system" fn SendMessage(this: *mut core::ffi::c_void, midimessage: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMidiOutPort_Impl::SendMessage(this, windows_core::from_raw_borrowed(&midimessage)).into() } - unsafe extern "system" fn SendBuffer(this: *mut core::ffi::c_void, mididata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMidiOutPort_Impl, - { + unsafe extern "system" fn SendBuffer(this: *mut core::ffi::c_void, mididata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMidiOutPort_Impl::SendBuffer(this, windows_core::from_raw_borrowed(&mididata)).into() } - unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMidiOutPort_Impl, - { + unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMidiOutPort_Impl::DeviceId(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/PointOfService/impl.rs b/crates/libs/windows/src/Windows/Devices/PointOfService/impl.rs index 50d163d06d..08ffd9b034 100644 --- a/crates/libs/windows/src/Windows/Devices/PointOfService/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/PointOfService/impl.rs @@ -1,18 +1,12 @@ -pub trait ICashDrawerEventSourceEventArgs_Impl: Sized { +pub trait ICashDrawerEventSourceEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn CashDrawer(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ICashDrawerEventSourceEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.ICashDrawerEventSourceEventArgs"; } impl ICashDrawerEventSourceEventArgs_Vtbl { - pub const fn new() -> ICashDrawerEventSourceEventArgs_Vtbl - where - Identity: ICashDrawerEventSourceEventArgs_Impl, - { - unsafe extern "system" fn CashDrawer(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICashDrawerEventSourceEventArgs_Impl, - { + pub const fn new() -> ICashDrawerEventSourceEventArgs_Vtbl { + unsafe extern "system" fn CashDrawer(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICashDrawerEventSourceEventArgs_Impl::CashDrawer(this) { Ok(ok__) => { @@ -29,7 +23,7 @@ impl ICashDrawerEventSourceEventArgs_Vtbl { iid == &::IID } } -pub trait ICommonClaimedPosPrinterStation_Impl: Sized { +pub trait ICommonClaimedPosPrinterStation_Impl: Sized + windows_core::IUnknownImpl { fn SetCharactersPerLine(&self, value: u32) -> windows_core::Result<()>; fn CharactersPerLine(&self) -> windows_core::Result; fn SetLineHeight(&self, value: u32) -> windows_core::Result<()>; @@ -54,21 +48,12 @@ impl windows_core::RuntimeName for ICommonClaimedPosPrinterStation { const NAME: &'static str = "Windows.Devices.PointOfService.ICommonClaimedPosPrinterStation"; } impl ICommonClaimedPosPrinterStation_Vtbl { - pub const fn new() -> ICommonClaimedPosPrinterStation_Vtbl - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { - unsafe extern "system" fn SetCharactersPerLine(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + pub const fn new() -> ICommonClaimedPosPrinterStation_Vtbl { + unsafe extern "system" fn SetCharactersPerLine(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommonClaimedPosPrinterStation_Impl::SetCharactersPerLine(this, value).into() } - unsafe extern "system" fn CharactersPerLine(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn CharactersPerLine(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::CharactersPerLine(this) { Ok(ok__) => { @@ -78,17 +63,11 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLineHeight(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn SetLineHeight(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommonClaimedPosPrinterStation_Impl::SetLineHeight(this, value).into() } - unsafe extern "system" fn LineHeight(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn LineHeight(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::LineHeight(this) { Ok(ok__) => { @@ -98,17 +77,11 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommonClaimedPosPrinterStation_Impl::SetLineSpacing(this, value).into() } - unsafe extern "system" fn LineSpacing(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn LineSpacing(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::LineSpacing(this) { Ok(ok__) => { @@ -118,10 +91,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LineWidth(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn LineWidth(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::LineWidth(this) { Ok(ok__) => { @@ -131,17 +101,11 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsLetterQuality(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn SetIsLetterQuality(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommonClaimedPosPrinterStation_Impl::SetIsLetterQuality(this, value).into() } - unsafe extern "system" fn IsLetterQuality(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn IsLetterQuality(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::IsLetterQuality(this) { Ok(ok__) => { @@ -151,10 +115,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPaperNearEnd(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn IsPaperNearEnd(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::IsPaperNearEnd(this) { Ok(ok__) => { @@ -164,17 +125,11 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorCartridge(this: *mut core::ffi::c_void, value: PosPrinterColorCartridge) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn SetColorCartridge(this: *mut core::ffi::c_void, value: PosPrinterColorCartridge) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommonClaimedPosPrinterStation_Impl::SetColorCartridge(this, value).into() } - unsafe extern "system" fn ColorCartridge(this: *mut core::ffi::c_void, result__: *mut PosPrinterColorCartridge) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn ColorCartridge(this: *mut core::ffi::c_void, result__: *mut PosPrinterColorCartridge) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::ColorCartridge(this) { Ok(ok__) => { @@ -184,10 +139,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCoverOpen(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn IsCoverOpen(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::IsCoverOpen(this) { Ok(ok__) => { @@ -197,10 +149,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCartridgeRemoved(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn IsCartridgeRemoved(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::IsCartridgeRemoved(this) { Ok(ok__) => { @@ -210,10 +159,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCartridgeEmpty(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn IsCartridgeEmpty(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::IsCartridgeEmpty(this) { Ok(ok__) => { @@ -223,10 +169,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsHeadCleaning(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn IsHeadCleaning(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::IsHeadCleaning(this) { Ok(ok__) => { @@ -236,10 +179,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPaperEmpty(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn IsPaperEmpty(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::IsPaperEmpty(this) { Ok(ok__) => { @@ -249,10 +189,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsReadyToPrint(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn IsReadyToPrint(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::IsReadyToPrint(this) { Ok(ok__) => { @@ -262,10 +199,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ValidateData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonClaimedPosPrinterStation_Impl, - { + unsafe extern "system" fn ValidateData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonClaimedPosPrinterStation_Impl::ValidateData(this, core::mem::transmute(&data)) { Ok(ok__) => { @@ -303,7 +237,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait ICommonPosPrintStationCapabilities_Impl: Sized { +pub trait ICommonPosPrintStationCapabilities_Impl: Sized + windows_core::IUnknownImpl { fn IsPrinterPresent(&self) -> windows_core::Result; fn IsDualColorSupported(&self) -> windows_core::Result; fn ColorCartridgeCapabilities(&self) -> windows_core::Result; @@ -324,14 +258,8 @@ impl windows_core::RuntimeName for ICommonPosPrintStationCapabilities { } #[cfg(feature = "Foundation_Collections")] impl ICommonPosPrintStationCapabilities_Vtbl { - pub const fn new() -> ICommonPosPrintStationCapabilities_Vtbl - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { - unsafe extern "system" fn IsPrinterPresent(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + pub const fn new() -> ICommonPosPrintStationCapabilities_Vtbl { + unsafe extern "system" fn IsPrinterPresent(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::IsPrinterPresent(this) { Ok(ok__) => { @@ -341,10 +269,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDualColorSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn IsDualColorSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::IsDualColorSupported(this) { Ok(ok__) => { @@ -354,10 +279,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ColorCartridgeCapabilities(this: *mut core::ffi::c_void, result__: *mut PosPrinterColorCapabilities) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn ColorCartridgeCapabilities(this: *mut core::ffi::c_void, result__: *mut PosPrinterColorCapabilities) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::ColorCartridgeCapabilities(this) { Ok(ok__) => { @@ -367,10 +289,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CartridgeSensors(this: *mut core::ffi::c_void, result__: *mut PosPrinterCartridgeSensors) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn CartridgeSensors(this: *mut core::ffi::c_void, result__: *mut PosPrinterCartridgeSensors) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::CartridgeSensors(this) { Ok(ok__) => { @@ -380,10 +299,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsBoldSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn IsBoldSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::IsBoldSupported(this) { Ok(ok__) => { @@ -393,10 +309,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsItalicSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn IsItalicSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::IsItalicSupported(this) { Ok(ok__) => { @@ -406,10 +319,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsUnderlineSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn IsUnderlineSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::IsUnderlineSupported(this) { Ok(ok__) => { @@ -419,10 +329,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDoubleHighPrintSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn IsDoubleHighPrintSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::IsDoubleHighPrintSupported(this) { Ok(ok__) => { @@ -432,10 +339,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDoubleWidePrintSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn IsDoubleWidePrintSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::IsDoubleWidePrintSupported(this) { Ok(ok__) => { @@ -445,10 +349,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDoubleHighDoubleWidePrintSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn IsDoubleHighDoubleWidePrintSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::IsDoubleHighDoubleWidePrintSupported(this) { Ok(ok__) => { @@ -458,10 +359,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPaperEmptySensorSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn IsPaperEmptySensorSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::IsPaperEmptySensorSupported(this) { Ok(ok__) => { @@ -471,10 +369,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPaperNearEndSensorSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn IsPaperNearEndSensorSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::IsPaperNearEndSensorSupported(this) { Ok(ok__) => { @@ -484,10 +379,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedCharactersPerLine(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommonPosPrintStationCapabilities_Impl, - { + unsafe extern "system" fn SupportedCharactersPerLine(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonPosPrintStationCapabilities_Impl::SupportedCharactersPerLine(this) { Ok(ok__) => { @@ -520,7 +412,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait ICommonReceiptSlipCapabilities_Impl: Sized + ICommonPosPrintStationCapabilities_Impl { +pub trait ICommonReceiptSlipCapabilities_Impl: Sized + windows_core::IUnknownImpl + ICommonPosPrintStationCapabilities_Impl { fn IsBarcodeSupported(&self) -> windows_core::Result; fn IsBitmapSupported(&self) -> windows_core::Result; fn IsLeft90RotationSupported(&self) -> windows_core::Result; @@ -537,14 +429,8 @@ impl windows_core::RuntimeName for ICommonReceiptSlipCapabilities { } #[cfg(feature = "Foundation_Collections")] impl ICommonReceiptSlipCapabilities_Vtbl { - pub const fn new() -> ICommonReceiptSlipCapabilities_Vtbl - where - Identity: ICommonReceiptSlipCapabilities_Impl, - { - unsafe extern "system" fn IsBarcodeSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonReceiptSlipCapabilities_Impl, - { + pub const fn new() -> ICommonReceiptSlipCapabilities_Vtbl { + unsafe extern "system" fn IsBarcodeSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonReceiptSlipCapabilities_Impl::IsBarcodeSupported(this) { Ok(ok__) => { @@ -554,10 +440,7 @@ impl ICommonReceiptSlipCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsBitmapSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonReceiptSlipCapabilities_Impl, - { + unsafe extern "system" fn IsBitmapSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonReceiptSlipCapabilities_Impl::IsBitmapSupported(this) { Ok(ok__) => { @@ -567,10 +450,7 @@ impl ICommonReceiptSlipCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLeft90RotationSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonReceiptSlipCapabilities_Impl, - { + unsafe extern "system" fn IsLeft90RotationSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonReceiptSlipCapabilities_Impl::IsLeft90RotationSupported(this) { Ok(ok__) => { @@ -580,10 +460,7 @@ impl ICommonReceiptSlipCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRight90RotationSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonReceiptSlipCapabilities_Impl, - { + unsafe extern "system" fn IsRight90RotationSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonReceiptSlipCapabilities_Impl::IsRight90RotationSupported(this) { Ok(ok__) => { @@ -593,10 +470,7 @@ impl ICommonReceiptSlipCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Is180RotationSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonReceiptSlipCapabilities_Impl, - { + unsafe extern "system" fn Is180RotationSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonReceiptSlipCapabilities_Impl::Is180RotationSupported(this) { Ok(ok__) => { @@ -606,10 +480,7 @@ impl ICommonReceiptSlipCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPrintAreaSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICommonReceiptSlipCapabilities_Impl, - { + unsafe extern "system" fn IsPrintAreaSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonReceiptSlipCapabilities_Impl::IsPrintAreaSupported(this) { Ok(ok__) => { @@ -619,10 +490,7 @@ impl ICommonReceiptSlipCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RuledLineCapabilities(this: *mut core::ffi::c_void, result__: *mut PosPrinterRuledLineCapabilities) -> windows_core::HRESULT - where - Identity: ICommonReceiptSlipCapabilities_Impl, - { + unsafe extern "system" fn RuledLineCapabilities(this: *mut core::ffi::c_void, result__: *mut PosPrinterRuledLineCapabilities) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonReceiptSlipCapabilities_Impl::RuledLineCapabilities(this) { Ok(ok__) => { @@ -632,10 +500,7 @@ impl ICommonReceiptSlipCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedBarcodeRotations(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommonReceiptSlipCapabilities_Impl, - { + unsafe extern "system" fn SupportedBarcodeRotations(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonReceiptSlipCapabilities_Impl::SupportedBarcodeRotations(this) { Ok(ok__) => { @@ -646,10 +511,7 @@ impl ICommonReceiptSlipCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedBitmapRotations(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommonReceiptSlipCapabilities_Impl, - { + unsafe extern "system" fn SupportedBitmapRotations(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommonReceiptSlipCapabilities_Impl::SupportedBitmapRotations(this) { Ok(ok__) => { @@ -677,7 +539,7 @@ impl ICommonReceiptSlipCapabilities_Vtbl { iid == &::IID } } -pub trait IPosPrinterJob_Impl: Sized { +pub trait IPosPrinterJob_Impl: Sized + windows_core::IUnknownImpl { fn Print(&self, data: &windows_core::HSTRING) -> windows_core::Result<()>; fn PrintLine(&self, data: &windows_core::HSTRING) -> windows_core::Result<()>; fn PrintNewline(&self) -> windows_core::Result<()>; @@ -687,35 +549,20 @@ impl windows_core::RuntimeName for IPosPrinterJob { const NAME: &'static str = "Windows.Devices.PointOfService.IPosPrinterJob"; } impl IPosPrinterJob_Vtbl { - pub const fn new() -> IPosPrinterJob_Vtbl - where - Identity: IPosPrinterJob_Impl, - { - unsafe extern "system" fn Print(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPosPrinterJob_Impl, - { + pub const fn new() -> IPosPrinterJob_Vtbl { + unsafe extern "system" fn Print(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPosPrinterJob_Impl::Print(this, core::mem::transmute(&data)).into() } - unsafe extern "system" fn PrintLine(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPosPrinterJob_Impl, - { + unsafe extern "system" fn PrintLine(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPosPrinterJob_Impl::PrintLine(this, core::mem::transmute(&data)).into() } - unsafe extern "system" fn PrintNewline(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPosPrinterJob_Impl, - { + unsafe extern "system" fn PrintNewline(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPosPrinterJob_Impl::PrintNewline(this).into() } - unsafe extern "system" fn ExecuteAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPosPrinterJob_Impl, - { + unsafe extern "system" fn ExecuteAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPosPrinterJob_Impl::ExecuteAsync(this) { Ok(ok__) => { @@ -739,7 +586,7 @@ impl IPosPrinterJob_Vtbl { } } #[cfg(feature = "Graphics_Imaging")] -pub trait IReceiptOrSlipJob_Impl: Sized + IPosPrinterJob_Impl { +pub trait IReceiptOrSlipJob_Impl: Sized + windows_core::IUnknownImpl + IPosPrinterJob_Impl { fn SetBarcodeRotation(&self, value: PosPrinterRotation) -> windows_core::Result<()>; fn SetPrintRotation(&self, value: PosPrinterRotation, includebitmaps: bool) -> windows_core::Result<()>; fn SetPrintArea(&self, value: &super::super::Foundation::Rect) -> windows_core::Result<()>; @@ -762,112 +609,64 @@ impl windows_core::RuntimeName for IReceiptOrSlipJob { } #[cfg(feature = "Graphics_Imaging")] impl IReceiptOrSlipJob_Vtbl { - pub const fn new() -> IReceiptOrSlipJob_Vtbl - where - Identity: IReceiptOrSlipJob_Impl, - { - unsafe extern "system" fn SetBarcodeRotation(this: *mut core::ffi::c_void, value: PosPrinterRotation) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + pub const fn new() -> IReceiptOrSlipJob_Vtbl { + unsafe extern "system" fn SetBarcodeRotation(this: *mut core::ffi::c_void, value: PosPrinterRotation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::SetBarcodeRotation(this, value).into() } - unsafe extern "system" fn SetPrintRotation(this: *mut core::ffi::c_void, value: PosPrinterRotation, includebitmaps: bool) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn SetPrintRotation(this: *mut core::ffi::c_void, value: PosPrinterRotation, includebitmaps: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::SetPrintRotation(this, value, includebitmaps).into() } - unsafe extern "system" fn SetPrintArea(this: *mut core::ffi::c_void, value: super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn SetPrintArea(this: *mut core::ffi::c_void, value: super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::SetPrintArea(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn SetBitmap(this: *mut core::ffi::c_void, bitmapnumber: u32, bitmap: *mut core::ffi::c_void, alignment: PosPrinterAlignment) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn SetBitmap(this: *mut core::ffi::c_void, bitmapnumber: u32, bitmap: *mut core::ffi::c_void, alignment: PosPrinterAlignment) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::SetBitmap(this, bitmapnumber, windows_core::from_raw_borrowed(&bitmap), alignment).into() } - unsafe extern "system" fn SetBitmapCustomWidthStandardAlign(this: *mut core::ffi::c_void, bitmapnumber: u32, bitmap: *mut core::ffi::c_void, alignment: PosPrinterAlignment, width: u32) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn SetBitmapCustomWidthStandardAlign(this: *mut core::ffi::c_void, bitmapnumber: u32, bitmap: *mut core::ffi::c_void, alignment: PosPrinterAlignment, width: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::SetBitmapCustomWidthStandardAlign(this, bitmapnumber, windows_core::from_raw_borrowed(&bitmap), alignment, width).into() } - unsafe extern "system" fn SetCustomAlignedBitmap(this: *mut core::ffi::c_void, bitmapnumber: u32, bitmap: *mut core::ffi::c_void, alignmentdistance: u32) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn SetCustomAlignedBitmap(this: *mut core::ffi::c_void, bitmapnumber: u32, bitmap: *mut core::ffi::c_void, alignmentdistance: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::SetCustomAlignedBitmap(this, bitmapnumber, windows_core::from_raw_borrowed(&bitmap), alignmentdistance).into() } - unsafe extern "system" fn SetBitmapCustomWidthCustomAlign(this: *mut core::ffi::c_void, bitmapnumber: u32, bitmap: *mut core::ffi::c_void, alignmentdistance: u32, width: u32) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn SetBitmapCustomWidthCustomAlign(this: *mut core::ffi::c_void, bitmapnumber: u32, bitmap: *mut core::ffi::c_void, alignmentdistance: u32, width: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::SetBitmapCustomWidthCustomAlign(this, bitmapnumber, windows_core::from_raw_borrowed(&bitmap), alignmentdistance, width).into() } - unsafe extern "system" fn PrintSavedBitmap(this: *mut core::ffi::c_void, bitmapnumber: u32) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn PrintSavedBitmap(this: *mut core::ffi::c_void, bitmapnumber: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::PrintSavedBitmap(this, bitmapnumber).into() } - unsafe extern "system" fn DrawRuledLine(this: *mut core::ffi::c_void, positionlist: core::mem::MaybeUninit, linedirection: PosPrinterLineDirection, linewidth: u32, linestyle: PosPrinterLineStyle, linecolor: u32) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn DrawRuledLine(this: *mut core::ffi::c_void, positionlist: core::mem::MaybeUninit, linedirection: PosPrinterLineDirection, linewidth: u32, linestyle: PosPrinterLineStyle, linecolor: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::DrawRuledLine(this, core::mem::transmute(&positionlist), linedirection, linewidth, linestyle, linecolor).into() } - unsafe extern "system" fn PrintBarcode(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, symbology: u32, height: u32, width: u32, textposition: PosPrinterBarcodeTextPosition, alignment: PosPrinterAlignment) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn PrintBarcode(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, symbology: u32, height: u32, width: u32, textposition: PosPrinterBarcodeTextPosition, alignment: PosPrinterAlignment) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::PrintBarcode(this, core::mem::transmute(&data), symbology, height, width, textposition, alignment).into() } - unsafe extern "system" fn PrintBarcodeCustomAlign(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, symbology: u32, height: u32, width: u32, textposition: PosPrinterBarcodeTextPosition, alignmentdistance: u32) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn PrintBarcodeCustomAlign(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, symbology: u32, height: u32, width: u32, textposition: PosPrinterBarcodeTextPosition, alignmentdistance: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::PrintBarcodeCustomAlign(this, core::mem::transmute(&data), symbology, height, width, textposition, alignmentdistance).into() } - unsafe extern "system" fn PrintBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, alignment: PosPrinterAlignment) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn PrintBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, alignment: PosPrinterAlignment) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::PrintBitmap(this, windows_core::from_raw_borrowed(&bitmap), alignment).into() } - unsafe extern "system" fn PrintBitmapCustomWidthStandardAlign(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, alignment: PosPrinterAlignment, width: u32) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn PrintBitmapCustomWidthStandardAlign(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, alignment: PosPrinterAlignment, width: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::PrintBitmapCustomWidthStandardAlign(this, windows_core::from_raw_borrowed(&bitmap), alignment, width).into() } - unsafe extern "system" fn PrintCustomAlignedBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, alignmentdistance: u32) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn PrintCustomAlignedBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, alignmentdistance: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::PrintCustomAlignedBitmap(this, windows_core::from_raw_borrowed(&bitmap), alignmentdistance).into() } - unsafe extern "system" fn PrintBitmapCustomWidthCustomAlign(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, alignmentdistance: u32, width: u32) -> windows_core::HRESULT - where - Identity: IReceiptOrSlipJob_Impl, - { + unsafe extern "system" fn PrintBitmapCustomWidthCustomAlign(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, alignmentdistance: u32, width: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReceiptOrSlipJob_Impl::PrintBitmapCustomWidthCustomAlign(this, windows_core::from_raw_borrowed(&bitmap), alignmentdistance, width).into() } diff --git a/crates/libs/windows/src/Windows/Devices/Pwm/Provider/impl.rs b/crates/libs/windows/src/Windows/Devices/Pwm/Provider/impl.rs index deab320fc3..063121ca16 100644 --- a/crates/libs/windows/src/Windows/Devices/Pwm/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Pwm/Provider/impl.rs @@ -1,4 +1,4 @@ -pub trait IPwmControllerProvider_Impl: Sized { +pub trait IPwmControllerProvider_Impl: Sized + windows_core::IUnknownImpl { fn PinCount(&self) -> windows_core::Result; fn ActualFrequency(&self) -> windows_core::Result; fn SetDesiredFrequency(&self, frequency: f64) -> windows_core::Result; @@ -14,14 +14,8 @@ impl windows_core::RuntimeName for IPwmControllerProvider { const NAME: &'static str = "Windows.Devices.Pwm.Provider.IPwmControllerProvider"; } impl IPwmControllerProvider_Vtbl { - pub const fn new() -> IPwmControllerProvider_Vtbl - where - Identity: IPwmControllerProvider_Impl, - { - unsafe extern "system" fn PinCount(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IPwmControllerProvider_Impl, - { + pub const fn new() -> IPwmControllerProvider_Vtbl { + unsafe extern "system" fn PinCount(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPwmControllerProvider_Impl::PinCount(this) { Ok(ok__) => { @@ -31,10 +25,7 @@ impl IPwmControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActualFrequency(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IPwmControllerProvider_Impl, - { + unsafe extern "system" fn ActualFrequency(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPwmControllerProvider_Impl::ActualFrequency(this) { Ok(ok__) => { @@ -44,10 +35,7 @@ impl IPwmControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredFrequency(this: *mut core::ffi::c_void, frequency: f64, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IPwmControllerProvider_Impl, - { + unsafe extern "system" fn SetDesiredFrequency(this: *mut core::ffi::c_void, frequency: f64, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPwmControllerProvider_Impl::SetDesiredFrequency(this, frequency) { Ok(ok__) => { @@ -57,10 +45,7 @@ impl IPwmControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxFrequency(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IPwmControllerProvider_Impl, - { + unsafe extern "system" fn MaxFrequency(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPwmControllerProvider_Impl::MaxFrequency(this) { Ok(ok__) => { @@ -70,10 +55,7 @@ impl IPwmControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinFrequency(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IPwmControllerProvider_Impl, - { + unsafe extern "system" fn MinFrequency(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPwmControllerProvider_Impl::MinFrequency(this) { Ok(ok__) => { @@ -83,38 +65,23 @@ impl IPwmControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AcquirePin(this: *mut core::ffi::c_void, pin: i32) -> windows_core::HRESULT - where - Identity: IPwmControllerProvider_Impl, - { + unsafe extern "system" fn AcquirePin(this: *mut core::ffi::c_void, pin: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPwmControllerProvider_Impl::AcquirePin(this, pin).into() } - unsafe extern "system" fn ReleasePin(this: *mut core::ffi::c_void, pin: i32) -> windows_core::HRESULT - where - Identity: IPwmControllerProvider_Impl, - { + unsafe extern "system" fn ReleasePin(this: *mut core::ffi::c_void, pin: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPwmControllerProvider_Impl::ReleasePin(this, pin).into() } - unsafe extern "system" fn EnablePin(this: *mut core::ffi::c_void, pin: i32) -> windows_core::HRESULT - where - Identity: IPwmControllerProvider_Impl, - { + unsafe extern "system" fn EnablePin(this: *mut core::ffi::c_void, pin: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPwmControllerProvider_Impl::EnablePin(this, pin).into() } - unsafe extern "system" fn DisablePin(this: *mut core::ffi::c_void, pin: i32) -> windows_core::HRESULT - where - Identity: IPwmControllerProvider_Impl, - { + unsafe extern "system" fn DisablePin(this: *mut core::ffi::c_void, pin: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPwmControllerProvider_Impl::DisablePin(this, pin).into() } - unsafe extern "system" fn SetPulseParameters(this: *mut core::ffi::c_void, pin: i32, dutycycle: f64, invertpolarity: bool) -> windows_core::HRESULT - where - Identity: IPwmControllerProvider_Impl, - { + unsafe extern "system" fn SetPulseParameters(this: *mut core::ffi::c_void, pin: i32, dutycycle: f64, invertpolarity: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPwmControllerProvider_Impl::SetPulseParameters(this, pin, dutycycle, invertpolarity).into() } @@ -137,7 +104,7 @@ impl IPwmControllerProvider_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IPwmProvider_Impl: Sized { +pub trait IPwmProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetControllers(&self) -> windows_core::Result>; } #[cfg(feature = "Foundation_Collections")] @@ -146,14 +113,8 @@ impl windows_core::RuntimeName for IPwmProvider { } #[cfg(feature = "Foundation_Collections")] impl IPwmProvider_Vtbl { - pub const fn new() -> IPwmProvider_Vtbl - where - Identity: IPwmProvider_Impl, - { - unsafe extern "system" fn GetControllers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPwmProvider_Impl, - { + pub const fn new() -> IPwmProvider_Vtbl { + unsafe extern "system" fn GetControllers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPwmProvider_Impl::GetControllers(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/Scanners/impl.rs b/crates/libs/windows/src/Windows/Devices/Scanners/impl.rs index 7275de3462..b78b9fc9d5 100644 --- a/crates/libs/windows/src/Windows/Devices/Scanners/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Scanners/impl.rs @@ -1,4 +1,4 @@ -pub trait IImageScannerFormatConfiguration_Impl: Sized { +pub trait IImageScannerFormatConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn DefaultFormat(&self) -> windows_core::Result; fn Format(&self) -> windows_core::Result; fn SetFormat(&self, value: ImageScannerFormat) -> windows_core::Result<()>; @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for IImageScannerFormatConfiguration { const NAME: &'static str = "Windows.Devices.Scanners.IImageScannerFormatConfiguration"; } impl IImageScannerFormatConfiguration_Vtbl { - pub const fn new() -> IImageScannerFormatConfiguration_Vtbl - where - Identity: IImageScannerFormatConfiguration_Impl, - { - unsafe extern "system" fn DefaultFormat(this: *mut core::ffi::c_void, result__: *mut ImageScannerFormat) -> windows_core::HRESULT - where - Identity: IImageScannerFormatConfiguration_Impl, - { + pub const fn new() -> IImageScannerFormatConfiguration_Vtbl { + unsafe extern "system" fn DefaultFormat(this: *mut core::ffi::c_void, result__: *mut ImageScannerFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerFormatConfiguration_Impl::DefaultFormat(this) { Ok(ok__) => { @@ -25,10 +19,7 @@ impl IImageScannerFormatConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Format(this: *mut core::ffi::c_void, result__: *mut ImageScannerFormat) -> windows_core::HRESULT - where - Identity: IImageScannerFormatConfiguration_Impl, - { + unsafe extern "system" fn Format(this: *mut core::ffi::c_void, result__: *mut ImageScannerFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerFormatConfiguration_Impl::Format(this) { Ok(ok__) => { @@ -38,17 +29,11 @@ impl IImageScannerFormatConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, value: ImageScannerFormat) -> windows_core::HRESULT - where - Identity: IImageScannerFormatConfiguration_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, value: ImageScannerFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageScannerFormatConfiguration_Impl::SetFormat(this, value).into() } - unsafe extern "system" fn IsFormatSupported(this: *mut core::ffi::c_void, value: ImageScannerFormat, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IImageScannerFormatConfiguration_Impl, - { + unsafe extern "system" fn IsFormatSupported(this: *mut core::ffi::c_void, value: ImageScannerFormat, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerFormatConfiguration_Impl::IsFormatSupported(this, value) { Ok(ok__) => { @@ -70,7 +55,7 @@ impl IImageScannerFormatConfiguration_Vtbl { iid == &::IID } } -pub trait IImageScannerSourceConfiguration_Impl: Sized + IImageScannerFormatConfiguration_Impl { +pub trait IImageScannerSourceConfiguration_Impl: Sized + windows_core::IUnknownImpl + IImageScannerFormatConfiguration_Impl { fn MinScanArea(&self) -> windows_core::Result; fn MaxScanArea(&self) -> windows_core::Result; fn SelectedScanRegion(&self) -> windows_core::Result; @@ -105,14 +90,8 @@ impl windows_core::RuntimeName for IImageScannerSourceConfiguration { const NAME: &'static str = "Windows.Devices.Scanners.IImageScannerSourceConfiguration"; } impl IImageScannerSourceConfiguration_Vtbl { - pub const fn new() -> IImageScannerSourceConfiguration_Vtbl - where - Identity: IImageScannerSourceConfiguration_Impl, - { - unsafe extern "system" fn MinScanArea(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Size) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + pub const fn new() -> IImageScannerSourceConfiguration_Vtbl { + unsafe extern "system" fn MinScanArea(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Size) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::MinScanArea(this) { Ok(ok__) => { @@ -122,10 +101,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxScanArea(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Size) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn MaxScanArea(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Size) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::MaxScanArea(this) { Ok(ok__) => { @@ -135,10 +111,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectedScanRegion(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn SelectedScanRegion(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::SelectedScanRegion(this) { Ok(ok__) => { @@ -148,17 +121,11 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelectedScanRegion(this: *mut core::ffi::c_void, value: super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn SetSelectedScanRegion(this: *mut core::ffi::c_void, value: super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageScannerSourceConfiguration_Impl::SetSelectedScanRegion(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn AutoCroppingMode(this: *mut core::ffi::c_void, result__: *mut ImageScannerAutoCroppingMode) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn AutoCroppingMode(this: *mut core::ffi::c_void, result__: *mut ImageScannerAutoCroppingMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::AutoCroppingMode(this) { Ok(ok__) => { @@ -168,17 +135,11 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoCroppingMode(this: *mut core::ffi::c_void, value: ImageScannerAutoCroppingMode) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn SetAutoCroppingMode(this: *mut core::ffi::c_void, value: ImageScannerAutoCroppingMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageScannerSourceConfiguration_Impl::SetAutoCroppingMode(this, value).into() } - unsafe extern "system" fn IsAutoCroppingModeSupported(this: *mut core::ffi::c_void, value: ImageScannerAutoCroppingMode, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn IsAutoCroppingModeSupported(this: *mut core::ffi::c_void, value: ImageScannerAutoCroppingMode, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::IsAutoCroppingModeSupported(this, value) { Ok(ok__) => { @@ -188,10 +149,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinResolution(this: *mut core::ffi::c_void, result__: *mut ImageScannerResolution) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn MinResolution(this: *mut core::ffi::c_void, result__: *mut ImageScannerResolution) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::MinResolution(this) { Ok(ok__) => { @@ -201,10 +159,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxResolution(this: *mut core::ffi::c_void, result__: *mut ImageScannerResolution) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn MaxResolution(this: *mut core::ffi::c_void, result__: *mut ImageScannerResolution) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::MaxResolution(this) { Ok(ok__) => { @@ -214,10 +169,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpticalResolution(this: *mut core::ffi::c_void, result__: *mut ImageScannerResolution) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn OpticalResolution(this: *mut core::ffi::c_void, result__: *mut ImageScannerResolution) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::OpticalResolution(this) { Ok(ok__) => { @@ -227,10 +179,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DesiredResolution(this: *mut core::ffi::c_void, result__: *mut ImageScannerResolution) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn DesiredResolution(this: *mut core::ffi::c_void, result__: *mut ImageScannerResolution) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::DesiredResolution(this) { Ok(ok__) => { @@ -240,17 +189,11 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredResolution(this: *mut core::ffi::c_void, value: ImageScannerResolution) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn SetDesiredResolution(this: *mut core::ffi::c_void, value: ImageScannerResolution) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageScannerSourceConfiguration_Impl::SetDesiredResolution(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ActualResolution(this: *mut core::ffi::c_void, result__: *mut ImageScannerResolution) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn ActualResolution(this: *mut core::ffi::c_void, result__: *mut ImageScannerResolution) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::ActualResolution(this) { Ok(ok__) => { @@ -260,10 +203,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultColorMode(this: *mut core::ffi::c_void, result__: *mut ImageScannerColorMode) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn DefaultColorMode(this: *mut core::ffi::c_void, result__: *mut ImageScannerColorMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::DefaultColorMode(this) { Ok(ok__) => { @@ -273,10 +213,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ColorMode(this: *mut core::ffi::c_void, result__: *mut ImageScannerColorMode) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn ColorMode(this: *mut core::ffi::c_void, result__: *mut ImageScannerColorMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::ColorMode(this) { Ok(ok__) => { @@ -286,17 +223,11 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorMode(this: *mut core::ffi::c_void, value: ImageScannerColorMode) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn SetColorMode(this: *mut core::ffi::c_void, value: ImageScannerColorMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageScannerSourceConfiguration_Impl::SetColorMode(this, value).into() } - unsafe extern "system" fn IsColorModeSupported(this: *mut core::ffi::c_void, value: ImageScannerColorMode, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn IsColorModeSupported(this: *mut core::ffi::c_void, value: ImageScannerColorMode, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::IsColorModeSupported(this, value) { Ok(ok__) => { @@ -306,10 +237,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinBrightness(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn MinBrightness(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::MinBrightness(this) { Ok(ok__) => { @@ -319,10 +247,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxBrightness(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn MaxBrightness(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::MaxBrightness(this) { Ok(ok__) => { @@ -332,10 +257,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BrightnessStep(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn BrightnessStep(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::BrightnessStep(this) { Ok(ok__) => { @@ -345,10 +267,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultBrightness(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn DefaultBrightness(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::DefaultBrightness(this) { Ok(ok__) => { @@ -358,10 +277,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Brightness(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn Brightness(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::Brightness(this) { Ok(ok__) => { @@ -371,17 +287,11 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBrightness(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn SetBrightness(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageScannerSourceConfiguration_Impl::SetBrightness(this, value).into() } - unsafe extern "system" fn MinContrast(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn MinContrast(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::MinContrast(this) { Ok(ok__) => { @@ -391,10 +301,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxContrast(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn MaxContrast(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::MaxContrast(this) { Ok(ok__) => { @@ -404,10 +311,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContrastStep(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn ContrastStep(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::ContrastStep(this) { Ok(ok__) => { @@ -417,10 +321,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultContrast(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn DefaultContrast(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::DefaultContrast(this) { Ok(ok__) => { @@ -430,10 +331,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Contrast(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn Contrast(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageScannerSourceConfiguration_Impl::Contrast(this) { Ok(ok__) => { @@ -443,10 +341,7 @@ impl IImageScannerSourceConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContrast(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IImageScannerSourceConfiguration_Impl, - { + unsafe extern "system" fn SetContrast(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageScannerSourceConfiguration_Impl::SetContrast(this, value).into() } diff --git a/crates/libs/windows/src/Windows/Devices/Sensors/impl.rs b/crates/libs/windows/src/Windows/Devices/Sensors/impl.rs index 550d798065..6f3b4de962 100644 --- a/crates/libs/windows/src/Windows/Devices/Sensors/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Sensors/impl.rs @@ -1,4 +1,4 @@ -pub trait IHumanPresenceSensorExtension_Impl: Sized { +pub trait IHumanPresenceSensorExtension_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, deviceinterface: &windows_core::HSTRING) -> windows_core::Result<()>; fn Start(&self) -> windows_core::Result<()>; fn ProcessReading(&self, reading: Option<&HumanPresenceSensorReading>) -> windows_core::Result; @@ -11,28 +11,16 @@ impl windows_core::RuntimeName for IHumanPresenceSensorExtension { const NAME: &'static str = "Windows.Devices.Sensors.IHumanPresenceSensorExtension"; } impl IHumanPresenceSensorExtension_Vtbl { - pub const fn new() -> IHumanPresenceSensorExtension_Vtbl - where - Identity: IHumanPresenceSensorExtension_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, deviceinterface: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHumanPresenceSensorExtension_Impl, - { + pub const fn new() -> IHumanPresenceSensorExtension_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, deviceinterface: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHumanPresenceSensorExtension_Impl::Initialize(this, core::mem::transmute(&deviceinterface)).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHumanPresenceSensorExtension_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHumanPresenceSensorExtension_Impl::Start(this).into() } - unsafe extern "system" fn ProcessReading(this: *mut core::ffi::c_void, reading: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHumanPresenceSensorExtension_Impl, - { + unsafe extern "system" fn ProcessReading(this: *mut core::ffi::c_void, reading: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHumanPresenceSensorExtension_Impl::ProcessReading(this, windows_core::from_raw_borrowed(&reading)) { Ok(ok__) => { @@ -43,31 +31,19 @@ impl IHumanPresenceSensorExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessReadingTimeoutExpired(this: *mut core::ffi::c_void, reading: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHumanPresenceSensorExtension_Impl, - { + unsafe extern "system" fn ProcessReadingTimeoutExpired(this: *mut core::ffi::c_void, reading: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHumanPresenceSensorExtension_Impl::ProcessReadingTimeoutExpired(this, windows_core::from_raw_borrowed(&reading)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHumanPresenceSensorExtension_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHumanPresenceSensorExtension_Impl::Stop(this).into() } - unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHumanPresenceSensorExtension_Impl, - { + unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHumanPresenceSensorExtension_Impl::Uninitialize(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHumanPresenceSensorExtension_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHumanPresenceSensorExtension_Impl::Reset(this).into() } @@ -86,15 +62,12 @@ impl IHumanPresenceSensorExtension_Vtbl { iid == &::IID } } -pub trait ISensorDataThreshold_Impl: Sized {} +pub trait ISensorDataThreshold_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for ISensorDataThreshold { const NAME: &'static str = "Windows.Devices.Sensors.ISensorDataThreshold"; } impl ISensorDataThreshold_Vtbl { - pub const fn new() -> ISensorDataThreshold_Vtbl - where - Identity: ISensorDataThreshold_Impl, - { + pub const fn new() -> ISensorDataThreshold_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Devices/Sms/impl.rs b/crates/libs/windows/src/Windows/Devices/Sms/impl.rs index 2e8b0d93b8..782c4e2358 100644 --- a/crates/libs/windows/src/Windows/Devices/Sms/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Sms/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "deprecated")] -pub trait ISmsBinaryMessage_Impl: Sized + ISmsMessage_Impl { +pub trait ISmsBinaryMessage_Impl: Sized + windows_core::IUnknownImpl + ISmsMessage_Impl { fn Format(&self) -> windows_core::Result; fn SetFormat(&self, value: SmsDataFormat) -> windows_core::Result<()>; fn GetData(&self) -> windows_core::Result>; @@ -11,14 +11,8 @@ impl windows_core::RuntimeName for ISmsBinaryMessage { } #[cfg(feature = "deprecated")] impl ISmsBinaryMessage_Vtbl { - pub const fn new() -> ISmsBinaryMessage_Vtbl - where - Identity: ISmsBinaryMessage_Impl, - { - unsafe extern "system" fn Format(this: *mut core::ffi::c_void, result__: *mut SmsDataFormat) -> windows_core::HRESULT - where - Identity: ISmsBinaryMessage_Impl, - { + pub const fn new() -> ISmsBinaryMessage_Vtbl { + unsafe extern "system" fn Format(this: *mut core::ffi::c_void, result__: *mut SmsDataFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsBinaryMessage_Impl::Format(this) { Ok(ok__) => { @@ -28,17 +22,11 @@ impl ISmsBinaryMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, value: SmsDataFormat) -> windows_core::HRESULT - where - Identity: ISmsBinaryMessage_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, value: SmsDataFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmsBinaryMessage_Impl::SetFormat(this, value).into() } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ISmsBinaryMessage_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsBinaryMessage_Impl::GetData(this) { Ok(ok__) => { @@ -50,10 +38,7 @@ impl ISmsBinaryMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, value_array_size: u32, value: *const u8) -> windows_core::HRESULT - where - Identity: ISmsBinaryMessage_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, value_array_size: u32, value: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmsBinaryMessage_Impl::SetData(this, core::slice::from_raw_parts(core::mem::transmute_copy(&value), value_array_size as usize)).into() } @@ -70,7 +55,7 @@ impl ISmsBinaryMessage_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait ISmsDevice_Impl: Sized { +pub trait ISmsDevice_Impl: Sized + windows_core::IUnknownImpl { fn SendMessageAsync(&self, message: Option<&ISmsMessage>) -> windows_core::Result; fn CalculateLength(&self, message: Option<&SmsTextMessage>) -> windows_core::Result; fn AccountPhoneNumber(&self) -> windows_core::Result; @@ -88,14 +73,8 @@ impl windows_core::RuntimeName for ISmsDevice { } #[cfg(feature = "deprecated")] impl ISmsDevice_Vtbl { - pub const fn new() -> ISmsDevice_Vtbl - where - Identity: ISmsDevice_Impl, - { - unsafe extern "system" fn SendMessageAsync(this: *mut core::ffi::c_void, message: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISmsDevice_Impl, - { + pub const fn new() -> ISmsDevice_Vtbl { + unsafe extern "system" fn SendMessageAsync(this: *mut core::ffi::c_void, message: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsDevice_Impl::SendMessageAsync(this, windows_core::from_raw_borrowed(&message)) { Ok(ok__) => { @@ -106,10 +85,7 @@ impl ISmsDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CalculateLength(this: *mut core::ffi::c_void, message: *mut core::ffi::c_void, result__: *mut SmsEncodedLength) -> windows_core::HRESULT - where - Identity: ISmsDevice_Impl, - { + unsafe extern "system" fn CalculateLength(this: *mut core::ffi::c_void, message: *mut core::ffi::c_void, result__: *mut SmsEncodedLength) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsDevice_Impl::CalculateLength(this, windows_core::from_raw_borrowed(&message)) { Ok(ok__) => { @@ -119,10 +95,7 @@ impl ISmsDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AccountPhoneNumber(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISmsDevice_Impl, - { + unsafe extern "system" fn AccountPhoneNumber(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsDevice_Impl::AccountPhoneNumber(this) { Ok(ok__) => { @@ -133,10 +106,7 @@ impl ISmsDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CellularClass(this: *mut core::ffi::c_void, result__: *mut CellularClass) -> windows_core::HRESULT - where - Identity: ISmsDevice_Impl, - { + unsafe extern "system" fn CellularClass(this: *mut core::ffi::c_void, result__: *mut CellularClass) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsDevice_Impl::CellularClass(this) { Ok(ok__) => { @@ -146,10 +116,7 @@ impl ISmsDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MessageStore(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISmsDevice_Impl, - { + unsafe extern "system" fn MessageStore(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsDevice_Impl::MessageStore(this) { Ok(ok__) => { @@ -160,10 +127,7 @@ impl ISmsDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceStatus(this: *mut core::ffi::c_void, result__: *mut SmsDeviceStatus) -> windows_core::HRESULT - where - Identity: ISmsDevice_Impl, - { + unsafe extern "system" fn DeviceStatus(this: *mut core::ffi::c_void, result__: *mut SmsDeviceStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsDevice_Impl::DeviceStatus(this) { Ok(ok__) => { @@ -173,10 +137,7 @@ impl ISmsDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SmsMessageReceived(this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ISmsDevice_Impl, - { + unsafe extern "system" fn SmsMessageReceived(this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsDevice_Impl::SmsMessageReceived(this, windows_core::from_raw_borrowed(&eventhandler)) { Ok(ok__) => { @@ -186,17 +147,11 @@ impl ISmsDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveSmsMessageReceived(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ISmsDevice_Impl, - { + unsafe extern "system" fn RemoveSmsMessageReceived(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmsDevice_Impl::RemoveSmsMessageReceived(this, core::mem::transmute(&eventcookie)).into() } - unsafe extern "system" fn SmsDeviceStatusChanged(this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ISmsDevice_Impl, - { + unsafe extern "system" fn SmsDeviceStatusChanged(this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsDevice_Impl::SmsDeviceStatusChanged(this, windows_core::from_raw_borrowed(&eventhandler)) { Ok(ok__) => { @@ -206,10 +161,7 @@ impl ISmsDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveSmsDeviceStatusChanged(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ISmsDevice_Impl, - { + unsafe extern "system" fn RemoveSmsDeviceStatusChanged(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmsDevice_Impl::RemoveSmsDeviceStatusChanged(this, core::mem::transmute(&eventcookie)).into() } @@ -231,7 +183,7 @@ impl ISmsDevice_Vtbl { iid == &::IID } } -pub trait ISmsMessage_Impl: Sized { +pub trait ISmsMessage_Impl: Sized + windows_core::IUnknownImpl { fn Id(&self) -> windows_core::Result; fn MessageClass(&self) -> windows_core::Result; } @@ -239,14 +191,8 @@ impl windows_core::RuntimeName for ISmsMessage { const NAME: &'static str = "Windows.Devices.Sms.ISmsMessage"; } impl ISmsMessage_Vtbl { - pub const fn new() -> ISmsMessage_Vtbl - where - Identity: ISmsMessage_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ISmsMessage_Impl, - { + pub const fn new() -> ISmsMessage_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsMessage_Impl::Id(this) { Ok(ok__) => { @@ -256,10 +202,7 @@ impl ISmsMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MessageClass(this: *mut core::ffi::c_void, result__: *mut SmsMessageClass) -> windows_core::HRESULT - where - Identity: ISmsMessage_Impl, - { + unsafe extern "system" fn MessageClass(this: *mut core::ffi::c_void, result__: *mut SmsMessageClass) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsMessage_Impl::MessageClass(this) { Ok(ok__) => { @@ -279,7 +222,7 @@ impl ISmsMessage_Vtbl { iid == &::IID } } -pub trait ISmsMessageBase_Impl: Sized { +pub trait ISmsMessageBase_Impl: Sized + windows_core::IUnknownImpl { fn MessageType(&self) -> windows_core::Result; fn DeviceId(&self) -> windows_core::Result; fn CellularClass(&self) -> windows_core::Result; @@ -290,14 +233,8 @@ impl windows_core::RuntimeName for ISmsMessageBase { const NAME: &'static str = "Windows.Devices.Sms.ISmsMessageBase"; } impl ISmsMessageBase_Vtbl { - pub const fn new() -> ISmsMessageBase_Vtbl - where - Identity: ISmsMessageBase_Impl, - { - unsafe extern "system" fn MessageType(this: *mut core::ffi::c_void, result__: *mut SmsMessageType) -> windows_core::HRESULT - where - Identity: ISmsMessageBase_Impl, - { + pub const fn new() -> ISmsMessageBase_Vtbl { + unsafe extern "system" fn MessageType(this: *mut core::ffi::c_void, result__: *mut SmsMessageType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsMessageBase_Impl::MessageType(this) { Ok(ok__) => { @@ -307,10 +244,7 @@ impl ISmsMessageBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISmsMessageBase_Impl, - { + unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsMessageBase_Impl::DeviceId(this) { Ok(ok__) => { @@ -321,10 +255,7 @@ impl ISmsMessageBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CellularClass(this: *mut core::ffi::c_void, result__: *mut CellularClass) -> windows_core::HRESULT - where - Identity: ISmsMessageBase_Impl, - { + unsafe extern "system" fn CellularClass(this: *mut core::ffi::c_void, result__: *mut CellularClass) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsMessageBase_Impl::CellularClass(this) { Ok(ok__) => { @@ -334,10 +265,7 @@ impl ISmsMessageBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MessageClass(this: *mut core::ffi::c_void, result__: *mut SmsMessageClass) -> windows_core::HRESULT - where - Identity: ISmsMessageBase_Impl, - { + unsafe extern "system" fn MessageClass(this: *mut core::ffi::c_void, result__: *mut SmsMessageClass) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsMessageBase_Impl::MessageClass(this) { Ok(ok__) => { @@ -347,10 +275,7 @@ impl ISmsMessageBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SimIccId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISmsMessageBase_Impl, - { + unsafe extern "system" fn SimIccId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsMessageBase_Impl::SimIccId(this) { Ok(ok__) => { @@ -375,7 +300,7 @@ impl ISmsMessageBase_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] -pub trait ISmsTextMessage_Impl: Sized + ISmsMessage_Impl { +pub trait ISmsTextMessage_Impl: Sized + windows_core::IUnknownImpl + ISmsMessage_Impl { fn Timestamp(&self) -> windows_core::Result; fn PartReferenceId(&self) -> windows_core::Result; fn PartNumber(&self) -> windows_core::Result; @@ -396,14 +321,8 @@ impl windows_core::RuntimeName for ISmsTextMessage { } #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] impl ISmsTextMessage_Vtbl { - pub const fn new() -> ISmsTextMessage_Vtbl - where - Identity: ISmsTextMessage_Impl, - { - unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + pub const fn new() -> ISmsTextMessage_Vtbl { + unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsTextMessage_Impl::Timestamp(this) { Ok(ok__) => { @@ -413,10 +332,7 @@ impl ISmsTextMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PartReferenceId(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn PartReferenceId(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsTextMessage_Impl::PartReferenceId(this) { Ok(ok__) => { @@ -426,10 +342,7 @@ impl ISmsTextMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PartNumber(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn PartNumber(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsTextMessage_Impl::PartNumber(this) { Ok(ok__) => { @@ -439,10 +352,7 @@ impl ISmsTextMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PartCount(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn PartCount(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsTextMessage_Impl::PartCount(this) { Ok(ok__) => { @@ -452,10 +362,7 @@ impl ISmsTextMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn To(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn To(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsTextMessage_Impl::To(this) { Ok(ok__) => { @@ -466,17 +373,11 @@ impl ISmsTextMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTo(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn SetTo(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmsTextMessage_Impl::SetTo(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn From(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn From(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsTextMessage_Impl::From(this) { Ok(ok__) => { @@ -487,17 +388,11 @@ impl ISmsTextMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrom(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn SetFrom(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmsTextMessage_Impl::SetFrom(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Body(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn Body(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsTextMessage_Impl::Body(this) { Ok(ok__) => { @@ -508,17 +403,11 @@ impl ISmsTextMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmsTextMessage_Impl::SetBody(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Encoding(this: *mut core::ffi::c_void, result__: *mut SmsEncoding) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn Encoding(this: *mut core::ffi::c_void, result__: *mut SmsEncoding) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsTextMessage_Impl::Encoding(this) { Ok(ok__) => { @@ -528,17 +417,11 @@ impl ISmsTextMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncoding(this: *mut core::ffi::c_void, value: SmsEncoding) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn SetEncoding(this: *mut core::ffi::c_void, value: SmsEncoding) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmsTextMessage_Impl::SetEncoding(this, value).into() } - unsafe extern "system" fn ToBinaryMessages(this: *mut core::ffi::c_void, format: SmsDataFormat, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISmsTextMessage_Impl, - { + unsafe extern "system" fn ToBinaryMessages(this: *mut core::ffi::c_void, format: SmsDataFormat, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmsTextMessage_Impl::ToBinaryMessages(this, format) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/Spi/Provider/impl.rs b/crates/libs/windows/src/Windows/Devices/Spi/Provider/impl.rs index 5d5f58e395..9caf535fb7 100644 --- a/crates/libs/windows/src/Windows/Devices/Spi/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Spi/Provider/impl.rs @@ -1,18 +1,12 @@ -pub trait ISpiControllerProvider_Impl: Sized { +pub trait ISpiControllerProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceProvider(&self, settings: Option<&ProviderSpiConnectionSettings>) -> windows_core::Result; } impl windows_core::RuntimeName for ISpiControllerProvider { const NAME: &'static str = "Windows.Devices.Spi.Provider.ISpiControllerProvider"; } impl ISpiControllerProvider_Vtbl { - pub const fn new() -> ISpiControllerProvider_Vtbl - where - Identity: ISpiControllerProvider_Impl, - { - unsafe extern "system" fn GetDeviceProvider(this: *mut core::ffi::c_void, settings: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpiControllerProvider_Impl, - { + pub const fn new() -> ISpiControllerProvider_Vtbl { + unsafe extern "system" fn GetDeviceProvider(this: *mut core::ffi::c_void, settings: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpiControllerProvider_Impl::GetDeviceProvider(this, windows_core::from_raw_borrowed(&settings)) { Ok(ok__) => { @@ -32,7 +26,7 @@ impl ISpiControllerProvider_Vtbl { iid == &::IID } } -pub trait ISpiDeviceProvider_Impl: Sized + super::super::super::Foundation::IClosable_Impl { +pub trait ISpiDeviceProvider_Impl: Sized + windows_core::IUnknownImpl + super::super::super::Foundation::IClosable_Impl { fn DeviceId(&self) -> windows_core::Result; fn ConnectionSettings(&self) -> windows_core::Result; fn Write(&self, buffer: &[u8]) -> windows_core::Result<()>; @@ -44,14 +38,8 @@ impl windows_core::RuntimeName for ISpiDeviceProvider { const NAME: &'static str = "Windows.Devices.Spi.Provider.ISpiDeviceProvider"; } impl ISpiDeviceProvider_Vtbl { - pub const fn new() -> ISpiDeviceProvider_Vtbl - where - Identity: ISpiDeviceProvider_Impl, - { - unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpiDeviceProvider_Impl, - { + pub const fn new() -> ISpiDeviceProvider_Vtbl { + unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpiDeviceProvider_Impl::DeviceId(this) { Ok(ok__) => { @@ -62,10 +50,7 @@ impl ISpiDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectionSettings(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpiDeviceProvider_Impl, - { + unsafe extern "system" fn ConnectionSettings(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpiDeviceProvider_Impl::ConnectionSettings(this) { Ok(ok__) => { @@ -76,31 +61,19 @@ impl ISpiDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *const u8) -> windows_core::HRESULT - where - Identity: ISpiDeviceProvider_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpiDeviceProvider_Impl::Write(this, core::slice::from_raw_parts(core::mem::transmute_copy(&buffer), buffer_array_size as usize)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *mut u8) -> windows_core::HRESULT - where - Identity: ISpiDeviceProvider_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, buffer_array_size: u32, buffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpiDeviceProvider_Impl::Read(this, core::slice::from_raw_parts_mut(core::mem::transmute_copy(&buffer), buffer_array_size as usize)).into() } - unsafe extern "system" fn TransferSequential(this: *mut core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: ISpiDeviceProvider_Impl, - { + unsafe extern "system" fn TransferSequential(this: *mut core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpiDeviceProvider_Impl::TransferSequential(this, core::slice::from_raw_parts(core::mem::transmute_copy(&writebuffer), writeBuffer_array_size as usize), core::slice::from_raw_parts_mut(core::mem::transmute_copy(&readbuffer), readBuffer_array_size as usize)).into() } - unsafe extern "system" fn TransferFullDuplex(this: *mut core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: ISpiDeviceProvider_Impl, - { + unsafe extern "system" fn TransferFullDuplex(this: *mut core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpiDeviceProvider_Impl::TransferFullDuplex(this, core::slice::from_raw_parts(core::mem::transmute_copy(&writebuffer), writeBuffer_array_size as usize), core::slice::from_raw_parts_mut(core::mem::transmute_copy(&readbuffer), readBuffer_array_size as usize)).into() } @@ -119,7 +92,7 @@ impl ISpiDeviceProvider_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait ISpiProvider_Impl: Sized { +pub trait ISpiProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetControllersAsync(&self) -> windows_core::Result>>; } #[cfg(feature = "Foundation_Collections")] @@ -128,14 +101,8 @@ impl windows_core::RuntimeName for ISpiProvider { } #[cfg(feature = "Foundation_Collections")] impl ISpiProvider_Vtbl { - pub const fn new() -> ISpiProvider_Vtbl - where - Identity: ISpiProvider_Impl, - { - unsafe extern "system" fn GetControllersAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpiProvider_Impl, - { + pub const fn new() -> ISpiProvider_Vtbl { + unsafe extern "system" fn GetControllersAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpiProvider_Impl::GetControllersAsync(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/Spi/impl.rs b/crates/libs/windows/src/Windows/Devices/Spi/impl.rs index 727749f365..9284966b08 100644 --- a/crates/libs/windows/src/Windows/Devices/Spi/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Spi/impl.rs @@ -1,4 +1,4 @@ -pub trait ISpiDeviceStatics_Impl: Sized { +pub trait ISpiDeviceStatics_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceSelector(&self) -> windows_core::Result; fn GetDeviceSelectorFromFriendlyName(&self, friendlyname: &windows_core::HSTRING) -> windows_core::Result; fn GetBusInfo(&self, busid: &windows_core::HSTRING) -> windows_core::Result; @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for ISpiDeviceStatics { const NAME: &'static str = "Windows.Devices.Spi.ISpiDeviceStatics"; } impl ISpiDeviceStatics_Vtbl { - pub const fn new() -> ISpiDeviceStatics_Vtbl - where - Identity: ISpiDeviceStatics_Impl, - { - unsafe extern "system" fn GetDeviceSelector(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpiDeviceStatics_Impl, - { + pub const fn new() -> ISpiDeviceStatics_Vtbl { + unsafe extern "system" fn GetDeviceSelector(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpiDeviceStatics_Impl::GetDeviceSelector(this) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl ISpiDeviceStatics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceSelectorFromFriendlyName(this: *mut core::ffi::c_void, friendlyname: core::mem::MaybeUninit, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpiDeviceStatics_Impl, - { + unsafe extern "system" fn GetDeviceSelectorFromFriendlyName(this: *mut core::ffi::c_void, friendlyname: core::mem::MaybeUninit, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpiDeviceStatics_Impl::GetDeviceSelectorFromFriendlyName(this, core::mem::transmute(&friendlyname)) { Ok(ok__) => { @@ -40,10 +31,7 @@ impl ISpiDeviceStatics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBusInfo(this: *mut core::ffi::c_void, busid: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpiDeviceStatics_Impl, - { + unsafe extern "system" fn GetBusInfo(this: *mut core::ffi::c_void, busid: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpiDeviceStatics_Impl::GetBusInfo(this, core::mem::transmute(&busid)) { Ok(ok__) => { @@ -54,10 +42,7 @@ impl ISpiDeviceStatics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FromIdAsync(this: *mut core::ffi::c_void, busid: core::mem::MaybeUninit, settings: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpiDeviceStatics_Impl, - { + unsafe extern "system" fn FromIdAsync(this: *mut core::ffi::c_void, busid: core::mem::MaybeUninit, settings: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpiDeviceStatics_Impl::FromIdAsync(this, core::mem::transmute(&busid), windows_core::from_raw_borrowed(&settings)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Devices/impl.rs b/crates/libs/windows/src/Windows/Devices/impl.rs index a1c2b4d1d6..1acd6fb46c 100644 --- a/crates/libs/windows/src/Windows/Devices/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Devices_Adc_Provider", feature = "Devices_Gpio_Provider", feature = "Devices_I2c_Provider", feature = "Devices_Pwm_Provider", feature = "Devices_Spi_Provider"))] -pub trait ILowLevelDevicesAggregateProvider_Impl: Sized { +pub trait ILowLevelDevicesAggregateProvider_Impl: Sized + windows_core::IUnknownImpl { fn AdcControllerProvider(&self) -> windows_core::Result; fn PwmControllerProvider(&self) -> windows_core::Result; fn GpioControllerProvider(&self) -> windows_core::Result; @@ -12,14 +12,8 @@ impl windows_core::RuntimeName for ILowLevelDevicesAggregateProvider { } #[cfg(all(feature = "Devices_Adc_Provider", feature = "Devices_Gpio_Provider", feature = "Devices_I2c_Provider", feature = "Devices_Pwm_Provider", feature = "Devices_Spi_Provider"))] impl ILowLevelDevicesAggregateProvider_Vtbl { - pub const fn new() -> ILowLevelDevicesAggregateProvider_Vtbl - where - Identity: ILowLevelDevicesAggregateProvider_Impl, - { - unsafe extern "system" fn AdcControllerProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILowLevelDevicesAggregateProvider_Impl, - { + pub const fn new() -> ILowLevelDevicesAggregateProvider_Vtbl { + unsafe extern "system" fn AdcControllerProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILowLevelDevicesAggregateProvider_Impl::AdcControllerProvider(this) { Ok(ok__) => { @@ -30,10 +24,7 @@ impl ILowLevelDevicesAggregateProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PwmControllerProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILowLevelDevicesAggregateProvider_Impl, - { + unsafe extern "system" fn PwmControllerProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILowLevelDevicesAggregateProvider_Impl::PwmControllerProvider(this) { Ok(ok__) => { @@ -44,10 +35,7 @@ impl ILowLevelDevicesAggregateProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GpioControllerProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILowLevelDevicesAggregateProvider_Impl, - { + unsafe extern "system" fn GpioControllerProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILowLevelDevicesAggregateProvider_Impl::GpioControllerProvider(this) { Ok(ok__) => { @@ -58,10 +46,7 @@ impl ILowLevelDevicesAggregateProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn I2cControllerProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILowLevelDevicesAggregateProvider_Impl, - { + unsafe extern "system" fn I2cControllerProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILowLevelDevicesAggregateProvider_Impl::I2cControllerProvider(this) { Ok(ok__) => { @@ -72,10 +57,7 @@ impl ILowLevelDevicesAggregateProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpiControllerProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILowLevelDevicesAggregateProvider_Impl, - { + unsafe extern "system" fn SpiControllerProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILowLevelDevicesAggregateProvider_Impl::SpiControllerProvider(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Foundation/Collections/impl.rs b/crates/libs/windows/src/Windows/Foundation/Collections/impl.rs index 6f88940aa8..c38ae036dc 100644 --- a/crates/libs/windows/src/Windows/Foundation/Collections/impl.rs +++ b/crates/libs/windows/src/Windows/Foundation/Collections/impl.rs @@ -1,4 +1,4 @@ -pub trait IIterable_Impl: Sized +pub trait IIterable_Impl: Sized + windows_core::IUnknownImpl where T: windows_core::RuntimeType + 'static, { @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for IIter const NAME: &'static str = "Windows.Foundation.Collections.IIterable"; } impl IIterable_Vtbl { - pub const fn new() -> IIterable_Vtbl - where - Identity: IIterable_Impl, - { - unsafe extern "system" fn First(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIterable_Impl, - { + pub const fn new, const OFFSET: isize>() -> IIterable_Vtbl { + unsafe extern "system" fn First, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIterable_Impl::First(this) { Ok(ok__) => { @@ -36,7 +30,7 @@ impl IIterable_Vtbl { iid == & as windows_core::Interface>::IID } } -pub trait IIterator_Impl: Sized +pub trait IIterator_Impl: Sized + windows_core::IUnknownImpl where T: windows_core::RuntimeType + 'static, { @@ -49,14 +43,8 @@ impl windows_core::RuntimeName for IIter const NAME: &'static str = "Windows.Foundation.Collections.IIterator"; } impl IIterator_Vtbl { - pub const fn new() -> IIterator_Vtbl - where - Identity: IIterator_Impl, - { - unsafe extern "system" fn Current(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IIterator_Impl, - { + pub const fn new, const OFFSET: isize>() -> IIterator_Vtbl { + unsafe extern "system" fn Current, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIterator_Impl::Current(this) { Ok(ok__) => { @@ -67,10 +55,7 @@ impl IIterator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasCurrent(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IIterator_Impl, - { + unsafe extern "system" fn HasCurrent, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIterator_Impl::HasCurrent(this) { Ok(ok__) => { @@ -80,10 +65,7 @@ impl IIterator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IIterator_Impl, - { + unsafe extern "system" fn MoveNext, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIterator_Impl::MoveNext(this) { Ok(ok__) => { @@ -93,10 +75,7 @@ impl IIterator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMany(this: *mut core::ffi::c_void, items_array_size: u32, items: *mut windows_core::AbiType, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IIterator_Impl, - { + unsafe extern "system" fn GetMany, const OFFSET: isize>(this: *mut core::ffi::c_void, items_array_size: u32, items: *mut windows_core::AbiType, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIterator_Impl::GetMany(this, core::slice::from_raw_parts_mut(core::mem::transmute_copy(&items), items_array_size as usize)) { Ok(ok__) => { @@ -119,7 +98,7 @@ impl IIterator_Vtbl { iid == & as windows_core::Interface>::IID } } -pub trait IKeyValuePair_Impl: Sized +pub trait IKeyValuePair_Impl: Sized + windows_core::IUnknownImpl where K: windows_core::RuntimeType + 'static, V: windows_core::RuntimeType + 'static, @@ -131,14 +110,8 @@ impl IKeyValuePair_Vtbl { - pub const fn new() -> IKeyValuePair_Vtbl - where - Identity: IKeyValuePair_Impl, - { - unsafe extern "system" fn Key(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IKeyValuePair_Impl, - { + pub const fn new, const OFFSET: isize>() -> IKeyValuePair_Vtbl { + unsafe extern "system" fn Key, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKeyValuePair_Impl::Key(this) { Ok(ok__) => { @@ -149,10 +122,7 @@ impl err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IKeyValuePair_Impl, - { + unsafe extern "system" fn Value, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKeyValuePair_Impl::Value(this) { Ok(ok__) => { @@ -175,7 +145,7 @@ impl as windows_core::Interface>::IID } } -pub trait IMap_Impl: Sized + IIterable_Impl> +pub trait IMap_Impl: Sized + windows_core::IUnknownImpl + IIterable_Impl> where K: windows_core::RuntimeType + 'static, V: windows_core::RuntimeType + 'static, @@ -192,14 +162,8 @@ impl IMap_Vtbl { - pub const fn new() -> IMap_Vtbl - where - Identity: IMap_Impl, - { - unsafe extern "system" fn Lookup(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IMap_Impl, - { + pub const fn new, const OFFSET: isize>() -> IMap_Vtbl { + unsafe extern "system" fn Lookup, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMap_Impl::Lookup(this, core::mem::transmute(&key)) { Ok(ok__) => { @@ -210,10 +174,7 @@ impl err.into(), } } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IMap_Impl, - { + unsafe extern "system" fn Size, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMap_Impl::Size(this) { Ok(ok__) => { @@ -223,10 +184,7 @@ impl err.into(), } } - unsafe extern "system" fn HasKey(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IMap_Impl, - { + unsafe extern "system" fn HasKey, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMap_Impl::HasKey(this, core::mem::transmute(&key)) { Ok(ok__) => { @@ -236,10 +194,7 @@ impl err.into(), } } - unsafe extern "system" fn GetView(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMap_Impl, - { + unsafe extern "system" fn GetView, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMap_Impl::GetView(this) { Ok(ok__) => { @@ -250,10 +205,7 @@ impl err.into(), } } - unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, key: windows_core::AbiType, value: windows_core::AbiType, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IMap_Impl, - { + unsafe extern "system" fn Insert, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType, value: windows_core::AbiType, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMap_Impl::Insert(this, core::mem::transmute(&key), core::mem::transmute(&value)) { Ok(ok__) => { @@ -263,17 +215,11 @@ impl err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, key: windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IMap_Impl, - { + unsafe extern "system" fn Remove, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMap_Impl::Remove(this, core::mem::transmute(&key)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMap_Impl, - { + unsafe extern "system" fn Clear, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMap_Impl::Clear(this).into() } @@ -294,7 +240,7 @@ impl as windows_core::Interface>::IID } } -pub trait IMapChangedEventArgs_Impl: Sized +pub trait IMapChangedEventArgs_Impl: Sized + windows_core::IUnknownImpl where K: windows_core::RuntimeType + 'static, { @@ -305,14 +251,8 @@ impl windows_core::RuntimeName for IMapC const NAME: &'static str = "Windows.Foundation.Collections.IMapChangedEventArgs"; } impl IMapChangedEventArgs_Vtbl { - pub const fn new() -> IMapChangedEventArgs_Vtbl - where - Identity: IMapChangedEventArgs_Impl, - { - unsafe extern "system" fn CollectionChange(this: *mut core::ffi::c_void, result__: *mut CollectionChange) -> windows_core::HRESULT - where - Identity: IMapChangedEventArgs_Impl, - { + pub const fn new, const OFFSET: isize>() -> IMapChangedEventArgs_Vtbl { + unsafe extern "system" fn CollectionChange, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut CollectionChange) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMapChangedEventArgs_Impl::CollectionChange(this) { Ok(ok__) => { @@ -322,10 +262,7 @@ impl IMapChangedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Key(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IMapChangedEventArgs_Impl, - { + unsafe extern "system" fn Key, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMapChangedEventArgs_Impl::Key(this) { Ok(ok__) => { @@ -347,7 +284,7 @@ impl IMapChangedEventArgs_Vtbl { iid == & as windows_core::Interface>::IID } } -pub trait IMapView_Impl: Sized + IIterable_Impl> +pub trait IMapView_Impl: Sized + windows_core::IUnknownImpl + IIterable_Impl> where K: windows_core::RuntimeType + 'static, V: windows_core::RuntimeType + 'static, @@ -361,14 +298,8 @@ impl IMapView_Vtbl { - pub const fn new() -> IMapView_Vtbl - where - Identity: IMapView_Impl, - { - unsafe extern "system" fn Lookup(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IMapView_Impl, - { + pub const fn new, const OFFSET: isize>() -> IMapView_Vtbl { + unsafe extern "system" fn Lookup, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMapView_Impl::Lookup(this, core::mem::transmute(&key)) { Ok(ok__) => { @@ -379,10 +310,7 @@ impl err.into(), } } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IMapView_Impl, - { + unsafe extern "system" fn Size, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMapView_Impl::Size(this) { Ok(ok__) => { @@ -392,10 +320,7 @@ impl err.into(), } } - unsafe extern "system" fn HasKey(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IMapView_Impl, - { + unsafe extern "system" fn HasKey, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMapView_Impl::HasKey(this, core::mem::transmute(&key)) { Ok(ok__) => { @@ -405,10 +330,7 @@ impl err.into(), } } - unsafe extern "system" fn Split(this: *mut core::ffi::c_void, first: *mut *mut core::ffi::c_void, second: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMapView_Impl, - { + unsafe extern "system" fn Split, const OFFSET: isize>(this: *mut core::ffi::c_void, first: *mut *mut core::ffi::c_void, second: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMapView_Impl::Split(this, core::mem::transmute_copy(&first), core::mem::transmute_copy(&second)).into() } @@ -426,7 +348,7 @@ impl as windows_core::Interface>::IID } } -pub trait IObservableMap_Impl: Sized + IIterable_Impl> + IMap_Impl +pub trait IObservableMap_Impl: Sized + windows_core::IUnknownImpl + IIterable_Impl> + IMap_Impl where K: windows_core::RuntimeType + 'static, V: windows_core::RuntimeType + 'static, @@ -438,14 +360,8 @@ impl IObservableMap_Vtbl { - pub const fn new() -> IObservableMap_Vtbl - where - Identity: IObservableMap_Impl, - { - unsafe extern "system" fn MapChanged(this: *mut core::ffi::c_void, vhnd: *mut core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IObservableMap_Impl, - { + pub const fn new, const OFFSET: isize>() -> IObservableMap_Vtbl { + unsafe extern "system" fn MapChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, vhnd: *mut core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObservableMap_Impl::MapChanged(this, windows_core::from_raw_borrowed(&vhnd)) { Ok(ok__) => { @@ -455,10 +371,7 @@ impl err.into(), } } - unsafe extern "system" fn RemoveMapChanged(this: *mut core::ffi::c_void, token: super::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IObservableMap_Impl, - { + unsafe extern "system" fn RemoveMapChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, token: super::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObservableMap_Impl::RemoveMapChanged(this, core::mem::transmute(&token)).into() } @@ -474,7 +387,7 @@ impl as windows_core::Interface>::IID } } -pub trait IObservableVector_Impl: Sized + IIterable_Impl + IVector_Impl +pub trait IObservableVector_Impl: Sized + windows_core::IUnknownImpl + IIterable_Impl + IVector_Impl where T: windows_core::RuntimeType + 'static, { @@ -485,14 +398,8 @@ impl windows_core::RuntimeName for IObse const NAME: &'static str = "Windows.Foundation.Collections.IObservableVector"; } impl IObservableVector_Vtbl { - pub const fn new() -> IObservableVector_Vtbl - where - Identity: IObservableVector_Impl, - { - unsafe extern "system" fn VectorChanged(this: *mut core::ffi::c_void, vhnd: *mut core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IObservableVector_Impl, - { + pub const fn new, const OFFSET: isize>() -> IObservableVector_Vtbl { + unsafe extern "system" fn VectorChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, vhnd: *mut core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObservableVector_Impl::VectorChanged(this, windows_core::from_raw_borrowed(&vhnd)) { Ok(ok__) => { @@ -502,10 +409,7 @@ impl IObservableVector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveVectorChanged(this: *mut core::ffi::c_void, token: super::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IObservableVector_Impl, - { + unsafe extern "system" fn RemoveVectorChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, token: super::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObservableVector_Impl::RemoveVectorChanged(this, core::mem::transmute(&token)).into() } @@ -520,22 +424,19 @@ impl IObservableVector_Vtbl { iid == & as windows_core::Interface>::IID } } -pub trait IPropertySet_Impl: Sized + IIterable_Impl> + IMap_Impl + IObservableMap_Impl {} +pub trait IPropertySet_Impl: Sized + windows_core::IUnknownImpl + IIterable_Impl> + IMap_Impl + IObservableMap_Impl {} impl windows_core::RuntimeName for IPropertySet { const NAME: &'static str = "Windows.Foundation.Collections.IPropertySet"; } impl IPropertySet_Vtbl { - pub const fn new() -> IPropertySet_Vtbl - where - Identity: IPropertySet_Impl, - { + pub const fn new() -> IPropertySet_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IVector_Impl: Sized + IIterable_Impl +pub trait IVector_Impl: Sized + windows_core::IUnknownImpl + IIterable_Impl where T: windows_core::RuntimeType + 'static, { @@ -556,14 +457,8 @@ impl windows_core::RuntimeName for IVect const NAME: &'static str = "Windows.Foundation.Collections.IVector"; } impl IVector_Vtbl { - pub const fn new() -> IVector_Vtbl - where - Identity: IVector_Impl, - { - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + pub const fn new, const OFFSET: isize>() -> IVector_Vtbl { + unsafe extern "system" fn GetAt, const OFFSET: isize>(this: *mut core::ffi::c_void, index: u32, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVector_Impl::GetAt(this, index) { Ok(ok__) => { @@ -574,10 +469,7 @@ impl IVector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn Size, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVector_Impl::Size(this) { Ok(ok__) => { @@ -587,10 +479,7 @@ impl IVector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetView(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn GetView, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVector_Impl::GetView(this) { Ok(ok__) => { @@ -601,10 +490,7 @@ impl IVector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IndexOf(this: *mut core::ffi::c_void, value: windows_core::AbiType, index: *mut u32, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn IndexOf, const OFFSET: isize>(this: *mut core::ffi::c_void, value: windows_core::AbiType, index: *mut u32, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVector_Impl::IndexOf(this, core::mem::transmute(&value), core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -614,52 +500,31 @@ impl IVector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, value: windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn SetAt, const OFFSET: isize>(this: *mut core::ffi::c_void, index: u32, value: windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVector_Impl::SetAt(this, index, core::mem::transmute(&value)).into() } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, value: windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn InsertAt, const OFFSET: isize>(this: *mut core::ffi::c_void, index: u32, value: windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVector_Impl::InsertAt(this, index, core::mem::transmute(&value)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn RemoveAt, const OFFSET: isize>(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVector_Impl::RemoveAt(this, index).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, value: windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn Append, const OFFSET: isize>(this: *mut core::ffi::c_void, value: windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVector_Impl::Append(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn RemoveAtEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn RemoveAtEnd, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVector_Impl::RemoveAtEnd(this).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn Clear, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVector_Impl::Clear(this).into() } - unsafe extern "system" fn GetMany(this: *mut core::ffi::c_void, startindex: u32, items_array_size: u32, items: *mut windows_core::AbiType, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn GetMany, const OFFSET: isize>(this: *mut core::ffi::c_void, startindex: u32, items_array_size: u32, items: *mut windows_core::AbiType, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVector_Impl::GetMany(this, startindex, core::slice::from_raw_parts_mut(core::mem::transmute_copy(&items), items_array_size as usize)) { Ok(ok__) => { @@ -669,10 +534,7 @@ impl IVector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReplaceAll(this: *mut core::ffi::c_void, items_array_size: u32, items: *const windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IVector_Impl, - { + unsafe extern "system" fn ReplaceAll, const OFFSET: isize>(this: *mut core::ffi::c_void, items_array_size: u32, items: *const windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVector_Impl::ReplaceAll(this, core::slice::from_raw_parts(core::mem::transmute_copy(&items), items_array_size as usize)).into() } @@ -697,7 +559,7 @@ impl IVector_Vtbl { iid == & as windows_core::Interface>::IID } } -pub trait IVectorChangedEventArgs_Impl: Sized { +pub trait IVectorChangedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn CollectionChange(&self) -> windows_core::Result; fn Index(&self) -> windows_core::Result; } @@ -705,14 +567,8 @@ impl windows_core::RuntimeName for IVectorChangedEventArgs { const NAME: &'static str = "Windows.Foundation.Collections.IVectorChangedEventArgs"; } impl IVectorChangedEventArgs_Vtbl { - pub const fn new() -> IVectorChangedEventArgs_Vtbl - where - Identity: IVectorChangedEventArgs_Impl, - { - unsafe extern "system" fn CollectionChange(this: *mut core::ffi::c_void, result__: *mut CollectionChange) -> windows_core::HRESULT - where - Identity: IVectorChangedEventArgs_Impl, - { + pub const fn new() -> IVectorChangedEventArgs_Vtbl { + unsafe extern "system" fn CollectionChange(this: *mut core::ffi::c_void, result__: *mut CollectionChange) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVectorChangedEventArgs_Impl::CollectionChange(this) { Ok(ok__) => { @@ -722,10 +578,7 @@ impl IVectorChangedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Index(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IVectorChangedEventArgs_Impl, - { + unsafe extern "system" fn Index(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVectorChangedEventArgs_Impl::Index(this) { Ok(ok__) => { @@ -745,7 +598,7 @@ impl IVectorChangedEventArgs_Vtbl { iid == &::IID } } -pub trait IVectorView_Impl: Sized + IIterable_Impl +pub trait IVectorView_Impl: Sized + windows_core::IUnknownImpl + IIterable_Impl where T: windows_core::RuntimeType + 'static, { @@ -758,14 +611,8 @@ impl windows_core::RuntimeName for IVect const NAME: &'static str = "Windows.Foundation.Collections.IVectorView"; } impl IVectorView_Vtbl { - pub const fn new() -> IVectorView_Vtbl - where - Identity: IVectorView_Impl, - { - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IVectorView_Impl, - { + pub const fn new, const OFFSET: isize>() -> IVectorView_Vtbl { + unsafe extern "system" fn GetAt, const OFFSET: isize>(this: *mut core::ffi::c_void, index: u32, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVectorView_Impl::GetAt(this, index) { Ok(ok__) => { @@ -776,10 +623,7 @@ impl IVectorView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IVectorView_Impl, - { + unsafe extern "system" fn Size, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVectorView_Impl::Size(this) { Ok(ok__) => { @@ -789,10 +633,7 @@ impl IVectorView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IndexOf(this: *mut core::ffi::c_void, value: windows_core::AbiType, index: *mut u32, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IVectorView_Impl, - { + unsafe extern "system" fn IndexOf, const OFFSET: isize>(this: *mut core::ffi::c_void, value: windows_core::AbiType, index: *mut u32, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVectorView_Impl::IndexOf(this, core::mem::transmute(&value), core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -802,10 +643,7 @@ impl IVectorView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMany(this: *mut core::ffi::c_void, startindex: u32, items_array_size: u32, items: *mut windows_core::AbiType, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IVectorView_Impl, - { + unsafe extern "system" fn GetMany, const OFFSET: isize>(this: *mut core::ffi::c_void, startindex: u32, items_array_size: u32, items: *mut windows_core::AbiType, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVectorView_Impl::GetMany(this, startindex, core::slice::from_raw_parts_mut(core::mem::transmute_copy(&items), items_array_size as usize)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Foundation/Diagnostics/impl.rs b/crates/libs/windows/src/Windows/Foundation/Diagnostics/impl.rs index 3ede46665c..75e32eae9a 100644 --- a/crates/libs/windows/src/Windows/Foundation/Diagnostics/impl.rs +++ b/crates/libs/windows/src/Windows/Foundation/Diagnostics/impl.rs @@ -1,4 +1,4 @@ -pub trait IErrorReportingSettings_Impl: Sized { +pub trait IErrorReportingSettings_Impl: Sized + windows_core::IUnknownImpl { fn SetErrorOptions(&self, value: ErrorOptions) -> windows_core::Result<()>; fn GetErrorOptions(&self) -> windows_core::Result; } @@ -6,21 +6,12 @@ impl windows_core::RuntimeName for IErrorReportingSettings { const NAME: &'static str = "Windows.Foundation.Diagnostics.IErrorReportingSettings"; } impl IErrorReportingSettings_Vtbl { - pub const fn new() -> IErrorReportingSettings_Vtbl - where - Identity: IErrorReportingSettings_Impl, - { - unsafe extern "system" fn SetErrorOptions(this: *mut core::ffi::c_void, value: ErrorOptions) -> windows_core::HRESULT - where - Identity: IErrorReportingSettings_Impl, - { + pub const fn new() -> IErrorReportingSettings_Vtbl { + unsafe extern "system" fn SetErrorOptions(this: *mut core::ffi::c_void, value: ErrorOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IErrorReportingSettings_Impl::SetErrorOptions(this, value).into() } - unsafe extern "system" fn GetErrorOptions(this: *mut core::ffi::c_void, result__: *mut ErrorOptions) -> windows_core::HRESULT - where - Identity: IErrorReportingSettings_Impl, - { + unsafe extern "system" fn GetErrorOptions(this: *mut core::ffi::c_void, result__: *mut ErrorOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IErrorReportingSettings_Impl::GetErrorOptions(this) { Ok(ok__) => { @@ -41,7 +32,7 @@ impl IErrorReportingSettings_Vtbl { } } #[cfg(feature = "Storage")] -pub trait IFileLoggingSession_Impl: Sized + super::IClosable_Impl { +pub trait IFileLoggingSession_Impl: Sized + windows_core::IUnknownImpl + super::IClosable_Impl { fn Name(&self) -> windows_core::Result; fn AddLoggingChannel(&self, loggingchannel: Option<&ILoggingChannel>) -> windows_core::Result<()>; fn AddLoggingChannelWithLevel(&self, loggingchannel: Option<&ILoggingChannel>, maxlevel: LoggingLevel) -> windows_core::Result<()>; @@ -56,14 +47,8 @@ impl windows_core::RuntimeName for IFileLoggingSession { } #[cfg(feature = "Storage")] impl IFileLoggingSession_Vtbl { - pub const fn new() -> IFileLoggingSession_Vtbl - where - Identity: IFileLoggingSession_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileLoggingSession_Impl, - { + pub const fn new() -> IFileLoggingSession_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileLoggingSession_Impl::Name(this) { Ok(ok__) => { @@ -74,31 +59,19 @@ impl IFileLoggingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddLoggingChannel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileLoggingSession_Impl, - { + unsafe extern "system" fn AddLoggingChannel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileLoggingSession_Impl::AddLoggingChannel(this, windows_core::from_raw_borrowed(&loggingchannel)).into() } - unsafe extern "system" fn AddLoggingChannelWithLevel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void, maxlevel: LoggingLevel) -> windows_core::HRESULT - where - Identity: IFileLoggingSession_Impl, - { + unsafe extern "system" fn AddLoggingChannelWithLevel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void, maxlevel: LoggingLevel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileLoggingSession_Impl::AddLoggingChannelWithLevel(this, windows_core::from_raw_borrowed(&loggingchannel), maxlevel).into() } - unsafe extern "system" fn RemoveLoggingChannel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileLoggingSession_Impl, - { + unsafe extern "system" fn RemoveLoggingChannel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileLoggingSession_Impl::RemoveLoggingChannel(this, windows_core::from_raw_borrowed(&loggingchannel)).into() } - unsafe extern "system" fn CloseAndSaveToFileAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileLoggingSession_Impl, - { + unsafe extern "system" fn CloseAndSaveToFileAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileLoggingSession_Impl::CloseAndSaveToFileAsync(this) { Ok(ok__) => { @@ -109,10 +82,7 @@ impl IFileLoggingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LogFileGenerated(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IFileLoggingSession_Impl, - { + unsafe extern "system" fn LogFileGenerated(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileLoggingSession_Impl::LogFileGenerated(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -122,10 +92,7 @@ impl IFileLoggingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveLogFileGenerated(this: *mut core::ffi::c_void, token: super::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IFileLoggingSession_Impl, - { + unsafe extern "system" fn RemoveLogFileGenerated(this: *mut core::ffi::c_void, token: super::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileLoggingSession_Impl::RemoveLogFileGenerated(this, core::mem::transmute(&token)).into() } @@ -144,7 +111,7 @@ impl IFileLoggingSession_Vtbl { iid == &::IID } } -pub trait ILoggingChannel_Impl: Sized + super::IClosable_Impl { +pub trait ILoggingChannel_Impl: Sized + windows_core::IUnknownImpl + super::IClosable_Impl { fn Name(&self) -> windows_core::Result; fn Enabled(&self) -> windows_core::Result; fn Level(&self) -> windows_core::Result; @@ -159,14 +126,8 @@ impl windows_core::RuntimeName for ILoggingChannel { const NAME: &'static str = "Windows.Foundation.Diagnostics.ILoggingChannel"; } impl ILoggingChannel_Vtbl { - pub const fn new() -> ILoggingChannel_Vtbl - where - Identity: ILoggingChannel_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILoggingChannel_Impl, - { + pub const fn new() -> ILoggingChannel_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingChannel_Impl::Name(this) { Ok(ok__) => { @@ -177,10 +138,7 @@ impl ILoggingChannel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ILoggingChannel_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingChannel_Impl::Enabled(this) { Ok(ok__) => { @@ -190,10 +148,7 @@ impl ILoggingChannel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Level(this: *mut core::ffi::c_void, result__: *mut LoggingLevel) -> windows_core::HRESULT - where - Identity: ILoggingChannel_Impl, - { + unsafe extern "system" fn Level(this: *mut core::ffi::c_void, result__: *mut LoggingLevel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingChannel_Impl::Level(this) { Ok(ok__) => { @@ -203,38 +158,23 @@ impl ILoggingChannel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LogMessage(this: *mut core::ffi::c_void, eventstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILoggingChannel_Impl, - { + unsafe extern "system" fn LogMessage(this: *mut core::ffi::c_void, eventstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingChannel_Impl::LogMessage(this, core::mem::transmute(&eventstring)).into() } - unsafe extern "system" fn LogMessageWithLevel(this: *mut core::ffi::c_void, eventstring: core::mem::MaybeUninit, level: LoggingLevel) -> windows_core::HRESULT - where - Identity: ILoggingChannel_Impl, - { + unsafe extern "system" fn LogMessageWithLevel(this: *mut core::ffi::c_void, eventstring: core::mem::MaybeUninit, level: LoggingLevel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingChannel_Impl::LogMessageWithLevel(this, core::mem::transmute(&eventstring), level).into() } - unsafe extern "system" fn LogValuePair(this: *mut core::ffi::c_void, value1: core::mem::MaybeUninit, value2: i32) -> windows_core::HRESULT - where - Identity: ILoggingChannel_Impl, - { + unsafe extern "system" fn LogValuePair(this: *mut core::ffi::c_void, value1: core::mem::MaybeUninit, value2: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingChannel_Impl::LogValuePair(this, core::mem::transmute(&value1), value2).into() } - unsafe extern "system" fn LogValuePairWithLevel(this: *mut core::ffi::c_void, value1: core::mem::MaybeUninit, value2: i32, level: LoggingLevel) -> windows_core::HRESULT - where - Identity: ILoggingChannel_Impl, - { + unsafe extern "system" fn LogValuePairWithLevel(this: *mut core::ffi::c_void, value1: core::mem::MaybeUninit, value2: i32, level: LoggingLevel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingChannel_Impl::LogValuePairWithLevel(this, core::mem::transmute(&value1), value2, level).into() } - unsafe extern "system" fn LoggingEnabled(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ILoggingChannel_Impl, - { + unsafe extern "system" fn LoggingEnabled(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingChannel_Impl::LoggingEnabled(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -244,10 +184,7 @@ impl ILoggingChannel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveLoggingEnabled(this: *mut core::ffi::c_void, token: super::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ILoggingChannel_Impl, - { + unsafe extern "system" fn RemoveLoggingEnabled(this: *mut core::ffi::c_void, token: super::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingChannel_Impl::RemoveLoggingEnabled(this, core::mem::transmute(&token)).into() } @@ -269,7 +206,7 @@ impl ILoggingChannel_Vtbl { } } #[cfg(feature = "Storage")] -pub trait ILoggingSession_Impl: Sized + super::IClosable_Impl { +pub trait ILoggingSession_Impl: Sized + windows_core::IUnknownImpl + super::IClosable_Impl { fn Name(&self) -> windows_core::Result; fn SaveToFileAsync(&self, folder: Option<&super::super::Storage::IStorageFolder>, filename: &windows_core::HSTRING) -> windows_core::Result>; fn AddLoggingChannel(&self, loggingchannel: Option<&ILoggingChannel>) -> windows_core::Result<()>; @@ -282,14 +219,8 @@ impl windows_core::RuntimeName for ILoggingSession { } #[cfg(feature = "Storage")] impl ILoggingSession_Vtbl { - pub const fn new() -> ILoggingSession_Vtbl - where - Identity: ILoggingSession_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILoggingSession_Impl, - { + pub const fn new() -> ILoggingSession_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingSession_Impl::Name(this) { Ok(ok__) => { @@ -300,10 +231,7 @@ impl ILoggingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveToFileAsync(this: *mut core::ffi::c_void, folder: *mut core::ffi::c_void, filename: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoggingSession_Impl, - { + unsafe extern "system" fn SaveToFileAsync(this: *mut core::ffi::c_void, folder: *mut core::ffi::c_void, filename: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingSession_Impl::SaveToFileAsync(this, windows_core::from_raw_borrowed(&folder), core::mem::transmute(&filename)) { Ok(ok__) => { @@ -314,24 +242,15 @@ impl ILoggingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddLoggingChannel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoggingSession_Impl, - { + unsafe extern "system" fn AddLoggingChannel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingSession_Impl::AddLoggingChannel(this, windows_core::from_raw_borrowed(&loggingchannel)).into() } - unsafe extern "system" fn AddLoggingChannelWithLevel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void, maxlevel: LoggingLevel) -> windows_core::HRESULT - where - Identity: ILoggingSession_Impl, - { + unsafe extern "system" fn AddLoggingChannelWithLevel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void, maxlevel: LoggingLevel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingSession_Impl::AddLoggingChannelWithLevel(this, windows_core::from_raw_borrowed(&loggingchannel), maxlevel).into() } - unsafe extern "system" fn RemoveLoggingChannel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoggingSession_Impl, - { + unsafe extern "system" fn RemoveLoggingChannel(this: *mut core::ffi::c_void, loggingchannel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingSession_Impl::RemoveLoggingChannel(this, windows_core::from_raw_borrowed(&loggingchannel)).into() } @@ -348,7 +267,7 @@ impl ILoggingSession_Vtbl { iid == &::IID } } -pub trait ILoggingTarget_Impl: Sized { +pub trait ILoggingTarget_Impl: Sized + windows_core::IUnknownImpl { fn IsEnabled(&self) -> windows_core::Result; fn IsEnabledWithLevel(&self, level: LoggingLevel) -> windows_core::Result; fn IsEnabledWithLevelAndKeywords(&self, level: LoggingLevel, keywords: i64) -> windows_core::Result; @@ -365,14 +284,8 @@ impl windows_core::RuntimeName for ILoggingTarget { const NAME: &'static str = "Windows.Foundation.Diagnostics.ILoggingTarget"; } impl ILoggingTarget_Vtbl { - pub const fn new() -> ILoggingTarget_Vtbl - where - Identity: ILoggingTarget_Impl, - { - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + pub const fn new() -> ILoggingTarget_Vtbl { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingTarget_Impl::IsEnabled(this) { Ok(ok__) => { @@ -382,10 +295,7 @@ impl ILoggingTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEnabledWithLevel(this: *mut core::ffi::c_void, level: LoggingLevel, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + unsafe extern "system" fn IsEnabledWithLevel(this: *mut core::ffi::c_void, level: LoggingLevel, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingTarget_Impl::IsEnabledWithLevel(this, level) { Ok(ok__) => { @@ -395,10 +305,7 @@ impl ILoggingTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEnabledWithLevelAndKeywords(this: *mut core::ffi::c_void, level: LoggingLevel, keywords: i64, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + unsafe extern "system" fn IsEnabledWithLevelAndKeywords(this: *mut core::ffi::c_void, level: LoggingLevel, keywords: i64, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingTarget_Impl::IsEnabledWithLevelAndKeywords(this, level, keywords) { Ok(ok__) => { @@ -408,38 +315,23 @@ impl ILoggingTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LogEvent(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + unsafe extern "system" fn LogEvent(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingTarget_Impl::LogEvent(this, core::mem::transmute(&eventname)).into() } - unsafe extern "system" fn LogEventWithFields(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + unsafe extern "system" fn LogEventWithFields(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingTarget_Impl::LogEventWithFields(this, core::mem::transmute(&eventname), windows_core::from_raw_borrowed(&fields)).into() } - unsafe extern "system" fn LogEventWithFieldsAndLevel(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void, level: LoggingLevel) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + unsafe extern "system" fn LogEventWithFieldsAndLevel(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void, level: LoggingLevel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingTarget_Impl::LogEventWithFieldsAndLevel(this, core::mem::transmute(&eventname), windows_core::from_raw_borrowed(&fields), level).into() } - unsafe extern "system" fn LogEventWithFieldsAndOptions(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void, level: LoggingLevel, options: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + unsafe extern "system" fn LogEventWithFieldsAndOptions(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void, level: LoggingLevel, options: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoggingTarget_Impl::LogEventWithFieldsAndOptions(this, core::mem::transmute(&eventname), windows_core::from_raw_borrowed(&fields), level, windows_core::from_raw_borrowed(&options)).into() } - unsafe extern "system" fn StartActivity(this: *mut core::ffi::c_void, starteventname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + unsafe extern "system" fn StartActivity(this: *mut core::ffi::c_void, starteventname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingTarget_Impl::StartActivity(this, core::mem::transmute(&starteventname)) { Ok(ok__) => { @@ -450,10 +342,7 @@ impl ILoggingTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartActivityWithFields(this: *mut core::ffi::c_void, starteventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + unsafe extern "system" fn StartActivityWithFields(this: *mut core::ffi::c_void, starteventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingTarget_Impl::StartActivityWithFields(this, core::mem::transmute(&starteventname), windows_core::from_raw_borrowed(&fields)) { Ok(ok__) => { @@ -464,10 +353,7 @@ impl ILoggingTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartActivityWithFieldsAndLevel(this: *mut core::ffi::c_void, starteventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void, level: LoggingLevel, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + unsafe extern "system" fn StartActivityWithFieldsAndLevel(this: *mut core::ffi::c_void, starteventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void, level: LoggingLevel, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingTarget_Impl::StartActivityWithFieldsAndLevel(this, core::mem::transmute(&starteventname), windows_core::from_raw_borrowed(&fields), level) { Ok(ok__) => { @@ -478,10 +364,7 @@ impl ILoggingTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartActivityWithFieldsAndOptions(this: *mut core::ffi::c_void, starteventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void, level: LoggingLevel, options: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoggingTarget_Impl, - { + unsafe extern "system" fn StartActivityWithFieldsAndOptions(this: *mut core::ffi::c_void, starteventname: core::mem::MaybeUninit, fields: *mut core::ffi::c_void, level: LoggingLevel, options: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoggingTarget_Impl::StartActivityWithFieldsAndOptions(this, core::mem::transmute(&starteventname), windows_core::from_raw_borrowed(&fields), level, windows_core::from_raw_borrowed(&options)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Foundation/impl.rs b/crates/libs/windows/src/Windows/Foundation/impl.rs index c12def6826..da01c73493 100644 --- a/crates/libs/windows/src/Windows/Foundation/impl.rs +++ b/crates/libs/windows/src/Windows/Foundation/impl.rs @@ -1,4 +1,4 @@ -pub trait IAsyncAction_Impl: Sized + IAsyncInfo_Impl { +pub trait IAsyncAction_Impl: Sized + windows_core::IUnknownImpl + IAsyncInfo_Impl { fn SetCompleted(&self, handler: Option<&AsyncActionCompletedHandler>) -> windows_core::Result<()>; fn Completed(&self) -> windows_core::Result; fn GetResults(&self) -> windows_core::Result<()>; @@ -7,21 +7,12 @@ impl windows_core::RuntimeName for IAsyncAction { const NAME: &'static str = "Windows.Foundation.IAsyncAction"; } impl IAsyncAction_Vtbl { - pub const fn new() -> IAsyncAction_Vtbl - where - Identity: IAsyncAction_Impl, - { - unsafe extern "system" fn SetCompleted(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncAction_Impl, - { + pub const fn new() -> IAsyncAction_Vtbl { + unsafe extern "system" fn SetCompleted(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncAction_Impl::SetCompleted(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncAction_Impl, - { + unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncAction_Impl::Completed(this) { Ok(ok__) => { @@ -32,10 +23,7 @@ impl IAsyncAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResults(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncAction_Impl, - { + unsafe extern "system" fn GetResults(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncAction_Impl::GetResults(this).into() } @@ -50,7 +38,7 @@ impl IAsyncAction_Vtbl { iid == &::IID } } -pub trait IAsyncActionWithProgress_Impl: Sized + IAsyncInfo_Impl +pub trait IAsyncActionWithProgress_Impl: Sized + windows_core::IUnknownImpl + IAsyncInfo_Impl where TProgress: windows_core::RuntimeType + 'static, { @@ -64,21 +52,12 @@ impl windows_core::RuntimeName f const NAME: &'static str = "Windows.Foundation.IAsyncActionWithProgress"; } impl IAsyncActionWithProgress_Vtbl { - pub const fn new() -> IAsyncActionWithProgress_Vtbl - where - Identity: IAsyncActionWithProgress_Impl, - { - unsafe extern "system" fn SetProgress(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncActionWithProgress_Impl, - { + pub const fn new, const OFFSET: isize>() -> IAsyncActionWithProgress_Vtbl { + unsafe extern "system" fn SetProgress, const OFFSET: isize>(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncActionWithProgress_Impl::SetProgress(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncActionWithProgress_Impl, - { + unsafe extern "system" fn Progress, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncActionWithProgress_Impl::Progress(this) { Ok(ok__) => { @@ -89,17 +68,11 @@ impl IAsyncActionWithProgress_Vt Err(err) => err.into(), } } - unsafe extern "system" fn SetCompleted(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncActionWithProgress_Impl, - { + unsafe extern "system" fn SetCompleted, const OFFSET: isize>(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncActionWithProgress_Impl::SetCompleted(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncActionWithProgress_Impl, - { + unsafe extern "system" fn Completed, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncActionWithProgress_Impl::Completed(this) { Ok(ok__) => { @@ -110,10 +83,7 @@ impl IAsyncActionWithProgress_Vt Err(err) => err.into(), } } - unsafe extern "system" fn GetResults(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncActionWithProgress_Impl, - { + unsafe extern "system" fn GetResults, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncActionWithProgress_Impl::GetResults(this).into() } @@ -131,7 +101,7 @@ impl IAsyncActionWithProgress_Vt iid == & as windows_core::Interface>::IID } } -pub trait IAsyncInfo_Impl: Sized { +pub trait IAsyncInfo_Impl: Sized + windows_core::IUnknownImpl { fn Id(&self) -> windows_core::Result; fn Status(&self) -> windows_core::Result; fn ErrorCode(&self) -> windows_core::Result; @@ -142,14 +112,8 @@ impl windows_core::RuntimeName for IAsyncInfo { const NAME: &'static str = "Windows.Foundation.IAsyncInfo"; } impl IAsyncInfo_Vtbl { - pub const fn new() -> IAsyncInfo_Vtbl - where - Identity: IAsyncInfo_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IAsyncInfo_Impl, - { + pub const fn new() -> IAsyncInfo_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncInfo_Impl::Id(this) { Ok(ok__) => { @@ -159,10 +123,7 @@ impl IAsyncInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, result__: *mut AsyncStatus) -> windows_core::HRESULT - where - Identity: IAsyncInfo_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, result__: *mut AsyncStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncInfo_Impl::Status(this) { Ok(ok__) => { @@ -172,10 +133,7 @@ impl IAsyncInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ErrorCode(this: *mut core::ffi::c_void, result__: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IAsyncInfo_Impl, - { + unsafe extern "system" fn ErrorCode(this: *mut core::ffi::c_void, result__: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncInfo_Impl::ErrorCode(this) { Ok(ok__) => { @@ -185,17 +143,11 @@ impl IAsyncInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncInfo_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncInfo_Impl::Cancel(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncInfo_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncInfo_Impl::Close(this).into() } @@ -212,7 +164,7 @@ impl IAsyncInfo_Vtbl { iid == &::IID } } -pub trait IAsyncOperation_Impl: Sized + IAsyncInfo_Impl +pub trait IAsyncOperation_Impl: Sized + windows_core::IUnknownImpl + IAsyncInfo_Impl where TResult: windows_core::RuntimeType + 'static, { @@ -224,21 +176,12 @@ impl windows_core::RuntimeName for const NAME: &'static str = "Windows.Foundation.IAsyncOperation"; } impl IAsyncOperation_Vtbl { - pub const fn new() -> IAsyncOperation_Vtbl - where - Identity: IAsyncOperation_Impl, - { - unsafe extern "system" fn SetCompleted(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncOperation_Impl, - { + pub const fn new, const OFFSET: isize>() -> IAsyncOperation_Vtbl { + unsafe extern "system" fn SetCompleted, const OFFSET: isize>(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncOperation_Impl::SetCompleted(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncOperation_Impl, - { + unsafe extern "system" fn Completed, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncOperation_Impl::Completed(this) { Ok(ok__) => { @@ -249,10 +192,7 @@ impl IAsyncOperation_Vtbl Err(err) => err.into(), } } - unsafe extern "system" fn GetResults(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IAsyncOperation_Impl, - { + unsafe extern "system" fn GetResults, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncOperation_Impl::GetResults(this) { Ok(ok__) => { @@ -275,7 +215,7 @@ impl IAsyncOperation_Vtbl iid == & as windows_core::Interface>::IID } } -pub trait IAsyncOperationWithProgress_Impl: Sized + IAsyncInfo_Impl +pub trait IAsyncOperationWithProgress_Impl: Sized + windows_core::IUnknownImpl + IAsyncInfo_Impl where TResult: windows_core::RuntimeType + 'static, TProgress: windows_core::RuntimeType + 'static, @@ -290,21 +230,12 @@ impl IAsyncOperationWithProgress_Vtbl { - pub const fn new() -> IAsyncOperationWithProgress_Vtbl - where - Identity: IAsyncOperationWithProgress_Impl, - { - unsafe extern "system" fn SetProgress(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncOperationWithProgress_Impl, - { + pub const fn new, const OFFSET: isize>() -> IAsyncOperationWithProgress_Vtbl { + unsafe extern "system" fn SetProgress, const OFFSET: isize>(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncOperationWithProgress_Impl::SetProgress(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncOperationWithProgress_Impl, - { + unsafe extern "system" fn Progress, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncOperationWithProgress_Impl::Progress(this) { Ok(ok__) => { @@ -315,17 +246,11 @@ impl err.into(), } } - unsafe extern "system" fn SetCompleted(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncOperationWithProgress_Impl, - { + unsafe extern "system" fn SetCompleted, const OFFSET: isize>(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncOperationWithProgress_Impl::SetCompleted(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncOperationWithProgress_Impl, - { + unsafe extern "system" fn Completed, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncOperationWithProgress_Impl::Completed(this) { Ok(ok__) => { @@ -336,10 +261,7 @@ impl err.into(), } } - unsafe extern "system" fn GetResults(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IAsyncOperationWithProgress_Impl, - { + unsafe extern "system" fn GetResults, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncOperationWithProgress_Impl::GetResults(this) { Ok(ok__) => { @@ -365,21 +287,15 @@ impl as windows_core::Interface>::IID } } -pub trait IClosable_Impl: Sized { +pub trait IClosable_Impl: Sized + windows_core::IUnknownImpl { fn Close(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IClosable { const NAME: &'static str = "Windows.Foundation.IClosable"; } impl IClosable_Vtbl { - pub const fn new() -> IClosable_Vtbl - where - Identity: IClosable_Impl, - { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IClosable_Impl, - { + pub const fn new() -> IClosable_Vtbl { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClosable_Impl::Close(this).into() } @@ -389,21 +305,15 @@ impl IClosable_Vtbl { iid == &::IID } } -pub trait IGetActivationFactory_Impl: Sized { +pub trait IGetActivationFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetActivationFactory(&self, activatableclassid: &windows_core::HSTRING) -> windows_core::Result; } impl windows_core::RuntimeName for IGetActivationFactory { const NAME: &'static str = "Windows.Foundation.IGetActivationFactory"; } impl IGetActivationFactory_Vtbl { - pub const fn new() -> IGetActivationFactory_Vtbl - where - Identity: IGetActivationFactory_Impl, - { - unsafe extern "system" fn GetActivationFactory(this: *mut core::ffi::c_void, activatableclassid: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetActivationFactory_Impl, - { + pub const fn new() -> IGetActivationFactory_Vtbl { + unsafe extern "system" fn GetActivationFactory(this: *mut core::ffi::c_void, activatableclassid: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetActivationFactory_Impl::GetActivationFactory(this, core::mem::transmute(&activatableclassid)) { Ok(ok__) => { @@ -423,21 +333,15 @@ impl IGetActivationFactory_Vtbl { iid == &::IID } } -pub trait IMemoryBuffer_Impl: Sized + IClosable_Impl { +pub trait IMemoryBuffer_Impl: Sized + windows_core::IUnknownImpl + IClosable_Impl { fn CreateReference(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMemoryBuffer { const NAME: &'static str = "Windows.Foundation.IMemoryBuffer"; } impl IMemoryBuffer_Vtbl { - pub const fn new() -> IMemoryBuffer_Vtbl - where - Identity: IMemoryBuffer_Impl, - { - unsafe extern "system" fn CreateReference(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMemoryBuffer_Impl, - { + pub const fn new() -> IMemoryBuffer_Vtbl { + unsafe extern "system" fn CreateReference(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMemoryBuffer_Impl::CreateReference(this) { Ok(ok__) => { @@ -454,7 +358,7 @@ impl IMemoryBuffer_Vtbl { iid == &::IID } } -pub trait IMemoryBufferReference_Impl: Sized + IClosable_Impl { +pub trait IMemoryBufferReference_Impl: Sized + windows_core::IUnknownImpl + IClosable_Impl { fn Capacity(&self) -> windows_core::Result; fn Closed(&self, handler: Option<&TypedEventHandler>) -> windows_core::Result; fn RemoveClosed(&self, cookie: &EventRegistrationToken) -> windows_core::Result<()>; @@ -463,14 +367,8 @@ impl windows_core::RuntimeName for IMemoryBufferReference { const NAME: &'static str = "Windows.Foundation.IMemoryBufferReference"; } impl IMemoryBufferReference_Vtbl { - pub const fn new() -> IMemoryBufferReference_Vtbl - where - Identity: IMemoryBufferReference_Impl, - { - unsafe extern "system" fn Capacity(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IMemoryBufferReference_Impl, - { + pub const fn new() -> IMemoryBufferReference_Vtbl { + unsafe extern "system" fn Capacity(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMemoryBufferReference_Impl::Capacity(this) { Ok(ok__) => { @@ -480,10 +378,7 @@ impl IMemoryBufferReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Closed(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IMemoryBufferReference_Impl, - { + unsafe extern "system" fn Closed(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMemoryBufferReference_Impl::Closed(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -493,10 +388,7 @@ impl IMemoryBufferReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveClosed(this: *mut core::ffi::c_void, cookie: EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IMemoryBufferReference_Impl, - { + unsafe extern "system" fn RemoveClosed(this: *mut core::ffi::c_void, cookie: EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemoryBufferReference_Impl::RemoveClosed(this, core::mem::transmute(&cookie)).into() } @@ -511,7 +403,7 @@ impl IMemoryBufferReference_Vtbl { iid == &::IID } } -pub trait IPropertyValue_Impl: Sized { +pub trait IPropertyValue_Impl: Sized + windows_core::IUnknownImpl { fn Type(&self) -> windows_core::Result; fn IsNumericScalar(&self) -> windows_core::Result; fn GetUInt8(&self) -> windows_core::Result; @@ -556,14 +448,8 @@ impl windows_core::RuntimeName for IPropertyValue { const NAME: &'static str = "Windows.Foundation.IPropertyValue"; } impl IPropertyValue_Vtbl { - pub const fn new() -> IPropertyValue_Vtbl - where - Identity: IPropertyValue_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut PropertyType) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + pub const fn new() -> IPropertyValue_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut PropertyType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::Type(this) { Ok(ok__) => { @@ -573,10 +459,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsNumericScalar(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn IsNumericScalar(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::IsNumericScalar(this) { Ok(ok__) => { @@ -586,10 +469,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUInt8(this: *mut core::ffi::c_void, result__: *mut u8) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetUInt8(this: *mut core::ffi::c_void, result__: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetUInt8(this) { Ok(ok__) => { @@ -599,10 +479,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInt16(this: *mut core::ffi::c_void, result__: *mut i16) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetInt16(this: *mut core::ffi::c_void, result__: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetInt16(this) { Ok(ok__) => { @@ -612,10 +489,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUInt16(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetUInt16(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetUInt16(this) { Ok(ok__) => { @@ -625,10 +499,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInt32(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetInt32(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetInt32(this) { Ok(ok__) => { @@ -638,10 +509,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUInt32(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetUInt32(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetUInt32(this) { Ok(ok__) => { @@ -651,10 +519,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInt64(this: *mut core::ffi::c_void, result__: *mut i64) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetInt64(this: *mut core::ffi::c_void, result__: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetInt64(this) { Ok(ok__) => { @@ -664,10 +529,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUInt64(this: *mut core::ffi::c_void, result__: *mut u64) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetUInt64(this: *mut core::ffi::c_void, result__: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetUInt64(this) { Ok(ok__) => { @@ -677,10 +539,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSingle(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetSingle(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetSingle(this) { Ok(ok__) => { @@ -690,10 +549,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDouble(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetDouble(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetDouble(this) { Ok(ok__) => { @@ -703,10 +559,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChar16(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetChar16(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetChar16(this) { Ok(ok__) => { @@ -716,10 +569,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBoolean(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetBoolean(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetBoolean(this) { Ok(ok__) => { @@ -729,10 +579,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetString(this) { Ok(ok__) => { @@ -743,10 +590,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGuid(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetGuid(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetGuid(this) { Ok(ok__) => { @@ -756,10 +600,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDateTime(this: *mut core::ffi::c_void, result__: *mut DateTime) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetDateTime(this: *mut core::ffi::c_void, result__: *mut DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetDateTime(this) { Ok(ok__) => { @@ -769,10 +610,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimeSpan(this: *mut core::ffi::c_void, result__: *mut TimeSpan) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetTimeSpan(this: *mut core::ffi::c_void, result__: *mut TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetTimeSpan(this) { Ok(ok__) => { @@ -782,10 +620,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPoint(this: *mut core::ffi::c_void, result__: *mut Point) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetPoint(this: *mut core::ffi::c_void, result__: *mut Point) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetPoint(this) { Ok(ok__) => { @@ -795,10 +630,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, result__: *mut Size) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, result__: *mut Size) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetSize(this) { Ok(ok__) => { @@ -808,10 +640,7 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, result__: *mut Rect) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, result__: *mut Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyValue_Impl::GetRect(this) { Ok(ok__) => { @@ -821,136 +650,79 @@ impl IPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUInt8Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetUInt8Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetUInt8Array(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetInt16Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut i16) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetInt16Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetInt16Array(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetUInt16Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetUInt16Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetUInt16Array(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetInt32Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut i32) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetInt32Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetInt32Array(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetUInt32Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetUInt32Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetUInt32Array(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetInt64Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut i64) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetInt64Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetInt64Array(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetUInt64Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u64) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetUInt64Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetUInt64Array(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetSingleArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut f32) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetSingleArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetSingleArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetDoubleArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut f64) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetDoubleArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetDoubleArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetChar16Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetChar16Array(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetChar16Array(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetBooleanArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut bool) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetBooleanArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetBooleanArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetStringArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetStringArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetStringArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetInspectableArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetInspectableArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetInspectableArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetGuidArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetGuidArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetGuidArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetDateTimeArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut DateTime) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetDateTimeArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetDateTimeArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetTimeSpanArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut TimeSpan) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetTimeSpanArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetTimeSpanArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetPointArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Point) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetPointArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Point) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetPointArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetSizeArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Size) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetSizeArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Size) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetSizeArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } - unsafe extern "system" fn GetRectArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Rect) -> windows_core::HRESULT - where - Identity: IPropertyValue_Impl, - { + unsafe extern "system" fn GetRectArray(this: *mut core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyValue_Impl::GetRectArray(this, windows_core::ArrayProxy::from_raw_parts(core::mem::transmute_copy(&value), value_array_size).as_array()).into() } @@ -1001,7 +773,7 @@ impl IPropertyValue_Vtbl { iid == &::IID } } -pub trait IReference_Impl: Sized + IPropertyValue_Impl +pub trait IReference_Impl: Sized + windows_core::IUnknownImpl + IPropertyValue_Impl where T: windows_core::RuntimeType + 'static, { @@ -1011,14 +783,8 @@ impl windows_core::RuntimeName for IRefe const NAME: &'static str = "Windows.Foundation.IReference"; } impl IReference_Vtbl { - pub const fn new() -> IReference_Vtbl - where - Identity: IReference_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IReference_Impl, - { + pub const fn new, const OFFSET: isize>() -> IReference_Vtbl { + unsafe extern "system" fn Value, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IReference_Impl::Value(this) { Ok(ok__) => { @@ -1039,7 +805,7 @@ impl IReference_Vtbl { iid == & as windows_core::Interface>::IID } } -pub trait IReferenceArray_Impl: Sized + IPropertyValue_Impl +pub trait IReferenceArray_Impl: Sized + windows_core::IUnknownImpl + IPropertyValue_Impl where T: windows_core::RuntimeType + 'static, { @@ -1049,14 +815,8 @@ impl windows_core::RuntimeName for IRefe const NAME: &'static str = "Windows.Foundation.IReferenceArray"; } impl IReferenceArray_Vtbl { - pub const fn new() -> IReferenceArray_Vtbl - where - Identity: IReferenceArray_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut windows_core::AbiType) -> windows_core::HRESULT - where - Identity: IReferenceArray_Impl, - { + pub const fn new, const OFFSET: isize>() -> IReferenceArray_Vtbl { + unsafe extern "system" fn Value, const OFFSET: isize>(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut windows_core::AbiType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IReferenceArray_Impl::Value(this) { Ok(ok__) => { @@ -1078,21 +838,15 @@ impl IReferenceArray_Vtbl { iid == & as windows_core::Interface>::IID } } -pub trait IStringable_Impl: Sized { +pub trait IStringable_Impl: Sized + windows_core::IUnknownImpl { fn ToString(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IStringable { const NAME: &'static str = "Windows.Foundation.IStringable"; } impl IStringable_Vtbl { - pub const fn new() -> IStringable_Vtbl - where - Identity: IStringable_Impl, - { - unsafe extern "system" fn ToString(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStringable_Impl, - { + pub const fn new() -> IStringable_Vtbl { + unsafe extern "system" fn ToString(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringable_Impl::ToString(this) { Ok(ok__) => { @@ -1109,7 +863,7 @@ impl IStringable_Vtbl { iid == &::IID } } -pub trait IWwwFormUrlDecoderEntry_Impl: Sized { +pub trait IWwwFormUrlDecoderEntry_Impl: Sized + windows_core::IUnknownImpl { fn Name(&self) -> windows_core::Result; fn Value(&self) -> windows_core::Result; } @@ -1117,14 +871,8 @@ impl windows_core::RuntimeName for IWwwFormUrlDecoderEntry { const NAME: &'static str = "Windows.Foundation.IWwwFormUrlDecoderEntry"; } impl IWwwFormUrlDecoderEntry_Vtbl { - pub const fn new() -> IWwwFormUrlDecoderEntry_Vtbl - where - Identity: IWwwFormUrlDecoderEntry_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWwwFormUrlDecoderEntry_Impl, - { + pub const fn new() -> IWwwFormUrlDecoderEntry_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWwwFormUrlDecoderEntry_Impl::Name(this) { Ok(ok__) => { @@ -1135,10 +883,7 @@ impl IWwwFormUrlDecoderEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWwwFormUrlDecoderEntry_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWwwFormUrlDecoderEntry_Impl::Value(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Gaming/Input/Custom/impl.rs b/crates/libs/windows/src/Windows/Gaming/Input/Custom/impl.rs index 5296493e09..0709c4a98c 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/Custom/impl.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/Custom/impl.rs @@ -1,4 +1,4 @@ -pub trait ICustomGameControllerFactory_Impl: Sized { +pub trait ICustomGameControllerFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateGameController(&self, provider: Option<&IGameControllerProvider>) -> windows_core::Result; fn OnGameControllerAdded(&self, value: Option<&super::IGameController>) -> windows_core::Result<()>; fn OnGameControllerRemoved(&self, value: Option<&super::IGameController>) -> windows_core::Result<()>; @@ -7,14 +7,8 @@ impl windows_core::RuntimeName for ICustomGameControllerFactory { const NAME: &'static str = "Windows.Gaming.Input.Custom.ICustomGameControllerFactory"; } impl ICustomGameControllerFactory_Vtbl { - pub const fn new() -> ICustomGameControllerFactory_Vtbl - where - Identity: ICustomGameControllerFactory_Impl, - { - unsafe extern "system" fn CreateGameController(this: *mut core::ffi::c_void, provider: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomGameControllerFactory_Impl, - { + pub const fn new() -> ICustomGameControllerFactory_Vtbl { + unsafe extern "system" fn CreateGameController(this: *mut core::ffi::c_void, provider: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICustomGameControllerFactory_Impl::CreateGameController(this, windows_core::from_raw_borrowed(&provider)) { Ok(ok__) => { @@ -25,17 +19,11 @@ impl ICustomGameControllerFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnGameControllerAdded(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomGameControllerFactory_Impl, - { + unsafe extern "system" fn OnGameControllerAdded(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomGameControllerFactory_Impl::OnGameControllerAdded(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn OnGameControllerRemoved(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomGameControllerFactory_Impl, - { + unsafe extern "system" fn OnGameControllerRemoved(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomGameControllerFactory_Impl::OnGameControllerRemoved(this, windows_core::from_raw_borrowed(&value)).into() } @@ -50,7 +38,7 @@ impl ICustomGameControllerFactory_Vtbl { iid == &::IID } } -pub trait IGameControllerInputSink_Impl: Sized { +pub trait IGameControllerInputSink_Impl: Sized + windows_core::IUnknownImpl { fn OnInputResumed(&self, timestamp: u64) -> windows_core::Result<()>; fn OnInputSuspended(&self, timestamp: u64) -> windows_core::Result<()>; } @@ -58,21 +46,12 @@ impl windows_core::RuntimeName for IGameControllerInputSink { const NAME: &'static str = "Windows.Gaming.Input.Custom.IGameControllerInputSink"; } impl IGameControllerInputSink_Vtbl { - pub const fn new() -> IGameControllerInputSink_Vtbl - where - Identity: IGameControllerInputSink_Impl, - { - unsafe extern "system" fn OnInputResumed(this: *mut core::ffi::c_void, timestamp: u64) -> windows_core::HRESULT - where - Identity: IGameControllerInputSink_Impl, - { + pub const fn new() -> IGameControllerInputSink_Vtbl { + unsafe extern "system" fn OnInputResumed(this: *mut core::ffi::c_void, timestamp: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameControllerInputSink_Impl::OnInputResumed(this, timestamp).into() } - unsafe extern "system" fn OnInputSuspended(this: *mut core::ffi::c_void, timestamp: u64) -> windows_core::HRESULT - where - Identity: IGameControllerInputSink_Impl, - { + unsafe extern "system" fn OnInputSuspended(this: *mut core::ffi::c_void, timestamp: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameControllerInputSink_Impl::OnInputSuspended(this, timestamp).into() } @@ -86,7 +65,7 @@ impl IGameControllerInputSink_Vtbl { iid == &::IID } } -pub trait IGameControllerProvider_Impl: Sized { +pub trait IGameControllerProvider_Impl: Sized + windows_core::IUnknownImpl { fn FirmwareVersionInfo(&self) -> windows_core::Result; fn HardwareProductId(&self) -> windows_core::Result; fn HardwareVendorId(&self) -> windows_core::Result; @@ -97,14 +76,8 @@ impl windows_core::RuntimeName for IGameControllerProvider { const NAME: &'static str = "Windows.Gaming.Input.Custom.IGameControllerProvider"; } impl IGameControllerProvider_Vtbl { - pub const fn new() -> IGameControllerProvider_Vtbl - where - Identity: IGameControllerProvider_Impl, - { - unsafe extern "system" fn FirmwareVersionInfo(this: *mut core::ffi::c_void, result__: *mut GameControllerVersionInfo) -> windows_core::HRESULT - where - Identity: IGameControllerProvider_Impl, - { + pub const fn new() -> IGameControllerProvider_Vtbl { + unsafe extern "system" fn FirmwareVersionInfo(this: *mut core::ffi::c_void, result__: *mut GameControllerVersionInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameControllerProvider_Impl::FirmwareVersionInfo(this) { Ok(ok__) => { @@ -114,10 +87,7 @@ impl IGameControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HardwareProductId(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT - where - Identity: IGameControllerProvider_Impl, - { + unsafe extern "system" fn HardwareProductId(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameControllerProvider_Impl::HardwareProductId(this) { Ok(ok__) => { @@ -127,10 +97,7 @@ impl IGameControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HardwareVendorId(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT - where - Identity: IGameControllerProvider_Impl, - { + unsafe extern "system" fn HardwareVendorId(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameControllerProvider_Impl::HardwareVendorId(this) { Ok(ok__) => { @@ -140,10 +107,7 @@ impl IGameControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HardwareVersionInfo(this: *mut core::ffi::c_void, result__: *mut GameControllerVersionInfo) -> windows_core::HRESULT - where - Identity: IGameControllerProvider_Impl, - { + unsafe extern "system" fn HardwareVersionInfo(this: *mut core::ffi::c_void, result__: *mut GameControllerVersionInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameControllerProvider_Impl::HardwareVersionInfo(this) { Ok(ok__) => { @@ -153,10 +117,7 @@ impl IGameControllerProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IGameControllerProvider_Impl, - { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameControllerProvider_Impl::IsConnected(this) { Ok(ok__) => { @@ -179,7 +140,7 @@ impl IGameControllerProvider_Vtbl { iid == &::IID } } -pub trait IGipGameControllerInputSink_Impl: Sized + IGameControllerInputSink_Impl { +pub trait IGipGameControllerInputSink_Impl: Sized + windows_core::IUnknownImpl + IGameControllerInputSink_Impl { fn OnKeyReceived(&self, timestamp: u64, keycode: u8, ispressed: bool) -> windows_core::Result<()>; fn OnMessageReceived(&self, timestamp: u64, messageclass: GipMessageClass, messageid: u8, sequenceid: u8, messagebuffer: &[u8]) -> windows_core::Result<()>; } @@ -187,21 +148,12 @@ impl windows_core::RuntimeName for IGipGameControllerInputSink { const NAME: &'static str = "Windows.Gaming.Input.Custom.IGipGameControllerInputSink"; } impl IGipGameControllerInputSink_Vtbl { - pub const fn new() -> IGipGameControllerInputSink_Vtbl - where - Identity: IGipGameControllerInputSink_Impl, - { - unsafe extern "system" fn OnKeyReceived(this: *mut core::ffi::c_void, timestamp: u64, keycode: u8, ispressed: bool) -> windows_core::HRESULT - where - Identity: IGipGameControllerInputSink_Impl, - { + pub const fn new() -> IGipGameControllerInputSink_Vtbl { + unsafe extern "system" fn OnKeyReceived(this: *mut core::ffi::c_void, timestamp: u64, keycode: u8, ispressed: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGipGameControllerInputSink_Impl::OnKeyReceived(this, timestamp, keycode, ispressed).into() } - unsafe extern "system" fn OnMessageReceived(this: *mut core::ffi::c_void, timestamp: u64, messageclass: GipMessageClass, messageid: u8, sequenceid: u8, messageBuffer_array_size: u32, messagebuffer: *const u8) -> windows_core::HRESULT - where - Identity: IGipGameControllerInputSink_Impl, - { + unsafe extern "system" fn OnMessageReceived(this: *mut core::ffi::c_void, timestamp: u64, messageclass: GipMessageClass, messageid: u8, sequenceid: u8, messageBuffer_array_size: u32, messagebuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGipGameControllerInputSink_Impl::OnMessageReceived(this, timestamp, messageclass, messageid, sequenceid, core::slice::from_raw_parts(core::mem::transmute_copy(&messagebuffer), messageBuffer_array_size as usize)).into() } @@ -215,21 +167,15 @@ impl IGipGameControllerInputSink_Vtbl { iid == &::IID } } -pub trait IHidGameControllerInputSink_Impl: Sized + IGameControllerInputSink_Impl { +pub trait IHidGameControllerInputSink_Impl: Sized + windows_core::IUnknownImpl + IGameControllerInputSink_Impl { fn OnInputReportReceived(&self, timestamp: u64, reportid: u8, reportbuffer: &[u8]) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHidGameControllerInputSink { const NAME: &'static str = "Windows.Gaming.Input.Custom.IHidGameControllerInputSink"; } impl IHidGameControllerInputSink_Vtbl { - pub const fn new() -> IHidGameControllerInputSink_Vtbl - where - Identity: IHidGameControllerInputSink_Impl, - { - unsafe extern "system" fn OnInputReportReceived(this: *mut core::ffi::c_void, timestamp: u64, reportid: u8, reportBuffer_array_size: u32, reportbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IHidGameControllerInputSink_Impl, - { + pub const fn new() -> IHidGameControllerInputSink_Vtbl { + unsafe extern "system" fn OnInputReportReceived(this: *mut core::ffi::c_void, timestamp: u64, reportid: u8, reportBuffer_array_size: u32, reportbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHidGameControllerInputSink_Impl::OnInputReportReceived(this, timestamp, reportid, core::slice::from_raw_parts(core::mem::transmute_copy(&reportbuffer), reportBuffer_array_size as usize)).into() } @@ -242,21 +188,15 @@ impl IHidGameControllerInputSink_Vtbl { iid == &::IID } } -pub trait IXusbGameControllerInputSink_Impl: Sized + IGameControllerInputSink_Impl { +pub trait IXusbGameControllerInputSink_Impl: Sized + windows_core::IUnknownImpl + IGameControllerInputSink_Impl { fn OnInputReceived(&self, timestamp: u64, reportid: u8, inputbuffer: &[u8]) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXusbGameControllerInputSink { const NAME: &'static str = "Windows.Gaming.Input.Custom.IXusbGameControllerInputSink"; } impl IXusbGameControllerInputSink_Vtbl { - pub const fn new() -> IXusbGameControllerInputSink_Vtbl - where - Identity: IXusbGameControllerInputSink_Impl, - { - unsafe extern "system" fn OnInputReceived(this: *mut core::ffi::c_void, timestamp: u64, reportid: u8, inputBuffer_array_size: u32, inputbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IXusbGameControllerInputSink_Impl, - { + pub const fn new() -> IXusbGameControllerInputSink_Vtbl { + unsafe extern "system" fn OnInputReceived(this: *mut core::ffi::c_void, timestamp: u64, reportid: u8, inputBuffer_array_size: u32, inputbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXusbGameControllerInputSink_Impl::OnInputReceived(this, timestamp, reportid, core::slice::from_raw_parts(core::mem::transmute_copy(&inputbuffer), inputBuffer_array_size as usize)).into() } diff --git a/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/impl.rs b/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/impl.rs index d2d2e13c8e..9dba957bf3 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/impl.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/impl.rs @@ -1,4 +1,4 @@ -pub trait IForceFeedbackEffect_Impl: Sized { +pub trait IForceFeedbackEffect_Impl: Sized + windows_core::IUnknownImpl { fn Gain(&self) -> windows_core::Result; fn SetGain(&self, value: f64) -> windows_core::Result<()>; fn State(&self) -> windows_core::Result; @@ -9,14 +9,8 @@ impl windows_core::RuntimeName for IForceFeedbackEffect { const NAME: &'static str = "Windows.Gaming.Input.ForceFeedback.IForceFeedbackEffect"; } impl IForceFeedbackEffect_Vtbl { - pub const fn new() -> IForceFeedbackEffect_Vtbl - where - Identity: IForceFeedbackEffect_Impl, - { - unsafe extern "system" fn Gain(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IForceFeedbackEffect_Impl, - { + pub const fn new() -> IForceFeedbackEffect_Vtbl { + unsafe extern "system" fn Gain(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IForceFeedbackEffect_Impl::Gain(this) { Ok(ok__) => { @@ -26,17 +20,11 @@ impl IForceFeedbackEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGain(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT - where - Identity: IForceFeedbackEffect_Impl, - { + unsafe extern "system" fn SetGain(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IForceFeedbackEffect_Impl::SetGain(this, value).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, result__: *mut ForceFeedbackEffectState) -> windows_core::HRESULT - where - Identity: IForceFeedbackEffect_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, result__: *mut ForceFeedbackEffectState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IForceFeedbackEffect_Impl::State(this) { Ok(ok__) => { @@ -46,17 +34,11 @@ impl IForceFeedbackEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IForceFeedbackEffect_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IForceFeedbackEffect_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IForceFeedbackEffect_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IForceFeedbackEffect_Impl::Stop(this).into() } diff --git a/crates/libs/windows/src/Windows/Gaming/Input/impl.rs b/crates/libs/windows/src/Windows/Gaming/Input/impl.rs index 2cae98694e..fae5e9d5c5 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/impl.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "System")] -pub trait IGameController_Impl: Sized { +pub trait IGameController_Impl: Sized + windows_core::IUnknownImpl { fn HeadsetConnected(&self, value: Option<&super::super::Foundation::TypedEventHandler>) -> windows_core::Result; fn RemoveHeadsetConnected(&self, token: &super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()>; fn HeadsetDisconnected(&self, value: Option<&super::super::Foundation::TypedEventHandler>) -> windows_core::Result; @@ -16,14 +16,8 @@ impl windows_core::RuntimeName for IGameController { } #[cfg(feature = "System")] impl IGameController_Vtbl { - pub const fn new() -> IGameController_Vtbl - where - Identity: IGameController_Impl, - { - unsafe extern "system" fn HeadsetConnected(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IGameController_Impl, - { + pub const fn new() -> IGameController_Vtbl { + unsafe extern "system" fn HeadsetConnected(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameController_Impl::HeadsetConnected(this, windows_core::from_raw_borrowed(&value)) { Ok(ok__) => { @@ -33,17 +27,11 @@ impl IGameController_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveHeadsetConnected(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IGameController_Impl, - { + unsafe extern "system" fn RemoveHeadsetConnected(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameController_Impl::RemoveHeadsetConnected(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn HeadsetDisconnected(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IGameController_Impl, - { + unsafe extern "system" fn HeadsetDisconnected(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameController_Impl::HeadsetDisconnected(this, windows_core::from_raw_borrowed(&value)) { Ok(ok__) => { @@ -53,17 +41,11 @@ impl IGameController_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveHeadsetDisconnected(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IGameController_Impl, - { + unsafe extern "system" fn RemoveHeadsetDisconnected(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameController_Impl::RemoveHeadsetDisconnected(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn UserChanged(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IGameController_Impl, - { + unsafe extern "system" fn UserChanged(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameController_Impl::UserChanged(this, windows_core::from_raw_borrowed(&value)) { Ok(ok__) => { @@ -73,17 +55,11 @@ impl IGameController_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveUserChanged(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IGameController_Impl, - { + unsafe extern "system" fn RemoveUserChanged(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameController_Impl::RemoveUserChanged(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn Headset(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGameController_Impl, - { + unsafe extern "system" fn Headset(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameController_Impl::Headset(this) { Ok(ok__) => { @@ -94,10 +70,7 @@ impl IGameController_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsWireless(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IGameController_Impl, - { + unsafe extern "system" fn IsWireless(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameController_Impl::IsWireless(this) { Ok(ok__) => { @@ -107,10 +80,7 @@ impl IGameController_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn User(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGameController_Impl, - { + unsafe extern "system" fn User(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameController_Impl::User(this) { Ok(ok__) => { @@ -139,7 +109,7 @@ impl IGameController_Vtbl { } } #[cfg(feature = "Devices_Power")] -pub trait IGameControllerBatteryInfo_Impl: Sized { +pub trait IGameControllerBatteryInfo_Impl: Sized + windows_core::IUnknownImpl { fn TryGetBatteryReport(&self) -> windows_core::Result; } #[cfg(feature = "Devices_Power")] @@ -148,14 +118,8 @@ impl windows_core::RuntimeName for IGameControllerBatteryInfo { } #[cfg(feature = "Devices_Power")] impl IGameControllerBatteryInfo_Vtbl { - pub const fn new() -> IGameControllerBatteryInfo_Vtbl - where - Identity: IGameControllerBatteryInfo_Impl, - { - unsafe extern "system" fn TryGetBatteryReport(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGameControllerBatteryInfo_Impl, - { + pub const fn new() -> IGameControllerBatteryInfo_Vtbl { + unsafe extern "system" fn TryGetBatteryReport(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameControllerBatteryInfo_Impl::TryGetBatteryReport(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/impl.rs b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/impl.rs index 697fdce1a3..efd7010d44 100644 --- a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/impl.rs +++ b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] -pub trait IGameListEntry_Impl: Sized { +pub trait IGameListEntry_Impl: Sized + windows_core::IUnknownImpl { fn DisplayInfo(&self) -> windows_core::Result; fn LaunchAsync(&self) -> windows_core::Result>; fn Category(&self) -> windows_core::Result; @@ -12,14 +12,8 @@ impl windows_core::RuntimeName for IGameListEntry { } #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] impl IGameListEntry_Vtbl { - pub const fn new() -> IGameListEntry_Vtbl - where - Identity: IGameListEntry_Impl, - { - unsafe extern "system" fn DisplayInfo(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGameListEntry_Impl, - { + pub const fn new() -> IGameListEntry_Vtbl { + unsafe extern "system" fn DisplayInfo(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameListEntry_Impl::DisplayInfo(this) { Ok(ok__) => { @@ -30,10 +24,7 @@ impl IGameListEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LaunchAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGameListEntry_Impl, - { + unsafe extern "system" fn LaunchAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameListEntry_Impl::LaunchAsync(this) { Ok(ok__) => { @@ -44,10 +35,7 @@ impl IGameListEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Category(this: *mut core::ffi::c_void, result__: *mut GameListCategory) -> windows_core::HRESULT - where - Identity: IGameListEntry_Impl, - { + unsafe extern "system" fn Category(this: *mut core::ffi::c_void, result__: *mut GameListCategory) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameListEntry_Impl::Category(this) { Ok(ok__) => { @@ -57,10 +45,7 @@ impl IGameListEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGameListEntry_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameListEntry_Impl::Properties(this) { Ok(ok__) => { @@ -71,10 +56,7 @@ impl IGameListEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCategoryAsync(this: *mut core::ffi::c_void, value: GameListCategory, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGameListEntry_Impl, - { + unsafe extern "system" fn SetCategoryAsync(this: *mut core::ffi::c_void, value: GameListCategory, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameListEntry_Impl::SetCategoryAsync(this, value) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/impl.rs b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/impl.rs index 9004078e11..7ac6fd857b 100644 --- a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/impl.rs +++ b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/impl.rs @@ -1,4 +1,4 @@ -pub trait INumberFormatter_Impl: Sized { +pub trait INumberFormatter_Impl: Sized + windows_core::IUnknownImpl { fn FormatInt(&self, value: i64) -> windows_core::Result; fn FormatUInt(&self, value: u64) -> windows_core::Result; fn FormatDouble(&self, value: f64) -> windows_core::Result; @@ -7,14 +7,8 @@ impl windows_core::RuntimeName for INumberFormatter { const NAME: &'static str = "Windows.Globalization.NumberFormatting.INumberFormatter"; } impl INumberFormatter_Vtbl { - pub const fn new() -> INumberFormatter_Vtbl - where - Identity: INumberFormatter_Impl, - { - unsafe extern "system" fn FormatInt(this: *mut core::ffi::c_void, value: i64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatter_Impl, - { + pub const fn new() -> INumberFormatter_Vtbl { + unsafe extern "system" fn FormatInt(this: *mut core::ffi::c_void, value: i64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatter_Impl::FormatInt(this, value) { Ok(ok__) => { @@ -25,10 +19,7 @@ impl INumberFormatter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FormatUInt(this: *mut core::ffi::c_void, value: u64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatter_Impl, - { + unsafe extern "system" fn FormatUInt(this: *mut core::ffi::c_void, value: u64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatter_Impl::FormatUInt(this, value) { Ok(ok__) => { @@ -39,10 +30,7 @@ impl INumberFormatter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FormatDouble(this: *mut core::ffi::c_void, value: f64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatter_Impl, - { + unsafe extern "system" fn FormatDouble(this: *mut core::ffi::c_void, value: f64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatter_Impl::FormatDouble(this, value) { Ok(ok__) => { @@ -64,7 +52,7 @@ impl INumberFormatter_Vtbl { iid == &::IID } } -pub trait INumberFormatter2_Impl: Sized { +pub trait INumberFormatter2_Impl: Sized + windows_core::IUnknownImpl { fn FormatInt(&self, value: i64) -> windows_core::Result; fn FormatUInt(&self, value: u64) -> windows_core::Result; fn FormatDouble(&self, value: f64) -> windows_core::Result; @@ -73,14 +61,8 @@ impl windows_core::RuntimeName for INumberFormatter2 { const NAME: &'static str = "Windows.Globalization.NumberFormatting.INumberFormatter2"; } impl INumberFormatter2_Vtbl { - pub const fn new() -> INumberFormatter2_Vtbl - where - Identity: INumberFormatter2_Impl, - { - unsafe extern "system" fn FormatInt(this: *mut core::ffi::c_void, value: i64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatter2_Impl, - { + pub const fn new() -> INumberFormatter2_Vtbl { + unsafe extern "system" fn FormatInt(this: *mut core::ffi::c_void, value: i64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatter2_Impl::FormatInt(this, value) { Ok(ok__) => { @@ -91,10 +73,7 @@ impl INumberFormatter2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FormatUInt(this: *mut core::ffi::c_void, value: u64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatter2_Impl, - { + unsafe extern "system" fn FormatUInt(this: *mut core::ffi::c_void, value: u64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatter2_Impl::FormatUInt(this, value) { Ok(ok__) => { @@ -105,10 +84,7 @@ impl INumberFormatter2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FormatDouble(this: *mut core::ffi::c_void, value: f64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatter2_Impl, - { + unsafe extern "system" fn FormatDouble(this: *mut core::ffi::c_void, value: f64, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatter2_Impl::FormatDouble(this, value) { Ok(ok__) => { @@ -131,7 +107,7 @@ impl INumberFormatter2_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait INumberFormatterOptions_Impl: Sized { +pub trait INumberFormatterOptions_Impl: Sized + windows_core::IUnknownImpl { fn Languages(&self) -> windows_core::Result>; fn GeographicRegion(&self) -> windows_core::Result; fn IntegerDigits(&self) -> windows_core::Result; @@ -153,14 +129,8 @@ impl windows_core::RuntimeName for INumberFormatterOptions { } #[cfg(feature = "Foundation_Collections")] impl INumberFormatterOptions_Vtbl { - pub const fn new() -> INumberFormatterOptions_Vtbl - where - Identity: INumberFormatterOptions_Impl, - { - unsafe extern "system" fn Languages(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + pub const fn new() -> INumberFormatterOptions_Vtbl { + unsafe extern "system" fn Languages(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatterOptions_Impl::Languages(this) { Ok(ok__) => { @@ -171,10 +141,7 @@ impl INumberFormatterOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GeographicRegion(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn GeographicRegion(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatterOptions_Impl::GeographicRegion(this) { Ok(ok__) => { @@ -185,10 +152,7 @@ impl INumberFormatterOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IntegerDigits(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn IntegerDigits(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatterOptions_Impl::IntegerDigits(this) { Ok(ok__) => { @@ -198,17 +162,11 @@ impl INumberFormatterOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIntegerDigits(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn SetIntegerDigits(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INumberFormatterOptions_Impl::SetIntegerDigits(this, value).into() } - unsafe extern "system" fn FractionDigits(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn FractionDigits(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatterOptions_Impl::FractionDigits(this) { Ok(ok__) => { @@ -218,17 +176,11 @@ impl INumberFormatterOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFractionDigits(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn SetFractionDigits(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INumberFormatterOptions_Impl::SetFractionDigits(this, value).into() } - unsafe extern "system" fn IsGrouped(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn IsGrouped(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatterOptions_Impl::IsGrouped(this) { Ok(ok__) => { @@ -238,17 +190,11 @@ impl INumberFormatterOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsGrouped(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn SetIsGrouped(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INumberFormatterOptions_Impl::SetIsGrouped(this, value).into() } - unsafe extern "system" fn IsDecimalPointAlwaysDisplayed(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn IsDecimalPointAlwaysDisplayed(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatterOptions_Impl::IsDecimalPointAlwaysDisplayed(this) { Ok(ok__) => { @@ -258,17 +204,11 @@ impl INumberFormatterOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsDecimalPointAlwaysDisplayed(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn SetIsDecimalPointAlwaysDisplayed(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INumberFormatterOptions_Impl::SetIsDecimalPointAlwaysDisplayed(this, value).into() } - unsafe extern "system" fn NumeralSystem(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn NumeralSystem(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatterOptions_Impl::NumeralSystem(this) { Ok(ok__) => { @@ -279,17 +219,11 @@ impl INumberFormatterOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNumeralSystem(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn SetNumeralSystem(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INumberFormatterOptions_Impl::SetNumeralSystem(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ResolvedLanguage(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn ResolvedLanguage(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatterOptions_Impl::ResolvedLanguage(this) { Ok(ok__) => { @@ -300,10 +234,7 @@ impl INumberFormatterOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResolvedGeographicRegion(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INumberFormatterOptions_Impl, - { + unsafe extern "system" fn ResolvedGeographicRegion(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberFormatterOptions_Impl::ResolvedGeographicRegion(this) { Ok(ok__) => { @@ -336,7 +267,7 @@ impl INumberFormatterOptions_Vtbl { iid == &::IID } } -pub trait INumberParser_Impl: Sized { +pub trait INumberParser_Impl: Sized + windows_core::IUnknownImpl { fn ParseInt(&self, text: &windows_core::HSTRING) -> windows_core::Result>; fn ParseUInt(&self, text: &windows_core::HSTRING) -> windows_core::Result>; fn ParseDouble(&self, text: &windows_core::HSTRING) -> windows_core::Result>; @@ -345,14 +276,8 @@ impl windows_core::RuntimeName for INumberParser { const NAME: &'static str = "Windows.Globalization.NumberFormatting.INumberParser"; } impl INumberParser_Vtbl { - pub const fn new() -> INumberParser_Vtbl - where - Identity: INumberParser_Impl, - { - unsafe extern "system" fn ParseInt(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INumberParser_Impl, - { + pub const fn new() -> INumberParser_Vtbl { + unsafe extern "system" fn ParseInt(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberParser_Impl::ParseInt(this, core::mem::transmute(&text)) { Ok(ok__) => { @@ -363,10 +288,7 @@ impl INumberParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParseUInt(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INumberParser_Impl, - { + unsafe extern "system" fn ParseUInt(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberParser_Impl::ParseUInt(this, core::mem::transmute(&text)) { Ok(ok__) => { @@ -377,10 +299,7 @@ impl INumberParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParseDouble(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INumberParser_Impl, - { + unsafe extern "system" fn ParseDouble(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberParser_Impl::ParseDouble(this, core::mem::transmute(&text)) { Ok(ok__) => { @@ -402,7 +321,7 @@ impl INumberParser_Vtbl { iid == &::IID } } -pub trait INumberRounder_Impl: Sized { +pub trait INumberRounder_Impl: Sized + windows_core::IUnknownImpl { fn RoundInt32(&self, value: i32) -> windows_core::Result; fn RoundUInt32(&self, value: u32) -> windows_core::Result; fn RoundInt64(&self, value: i64) -> windows_core::Result; @@ -414,14 +333,8 @@ impl windows_core::RuntimeName for INumberRounder { const NAME: &'static str = "Windows.Globalization.NumberFormatting.INumberRounder"; } impl INumberRounder_Vtbl { - pub const fn new() -> INumberRounder_Vtbl - where - Identity: INumberRounder_Impl, - { - unsafe extern "system" fn RoundInt32(this: *mut core::ffi::c_void, value: i32, result__: *mut i32) -> windows_core::HRESULT - where - Identity: INumberRounder_Impl, - { + pub const fn new() -> INumberRounder_Vtbl { + unsafe extern "system" fn RoundInt32(this: *mut core::ffi::c_void, value: i32, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberRounder_Impl::RoundInt32(this, value) { Ok(ok__) => { @@ -431,10 +344,7 @@ impl INumberRounder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoundUInt32(this: *mut core::ffi::c_void, value: u32, result__: *mut u32) -> windows_core::HRESULT - where - Identity: INumberRounder_Impl, - { + unsafe extern "system" fn RoundUInt32(this: *mut core::ffi::c_void, value: u32, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberRounder_Impl::RoundUInt32(this, value) { Ok(ok__) => { @@ -444,10 +354,7 @@ impl INumberRounder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoundInt64(this: *mut core::ffi::c_void, value: i64, result__: *mut i64) -> windows_core::HRESULT - where - Identity: INumberRounder_Impl, - { + unsafe extern "system" fn RoundInt64(this: *mut core::ffi::c_void, value: i64, result__: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberRounder_Impl::RoundInt64(this, value) { Ok(ok__) => { @@ -457,10 +364,7 @@ impl INumberRounder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoundUInt64(this: *mut core::ffi::c_void, value: u64, result__: *mut u64) -> windows_core::HRESULT - where - Identity: INumberRounder_Impl, - { + unsafe extern "system" fn RoundUInt64(this: *mut core::ffi::c_void, value: u64, result__: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberRounder_Impl::RoundUInt64(this, value) { Ok(ok__) => { @@ -470,10 +374,7 @@ impl INumberRounder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoundSingle(this: *mut core::ffi::c_void, value: f32, result__: *mut f32) -> windows_core::HRESULT - where - Identity: INumberRounder_Impl, - { + unsafe extern "system" fn RoundSingle(this: *mut core::ffi::c_void, value: f32, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberRounder_Impl::RoundSingle(this, value) { Ok(ok__) => { @@ -483,10 +384,7 @@ impl INumberRounder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoundDouble(this: *mut core::ffi::c_void, value: f64, result__: *mut f64) -> windows_core::HRESULT - where - Identity: INumberRounder_Impl, - { + unsafe extern "system" fn RoundDouble(this: *mut core::ffi::c_void, value: f64, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberRounder_Impl::RoundDouble(this, value) { Ok(ok__) => { @@ -510,7 +408,7 @@ impl INumberRounder_Vtbl { iid == &::IID } } -pub trait INumberRounderOption_Impl: Sized { +pub trait INumberRounderOption_Impl: Sized + windows_core::IUnknownImpl { fn NumberRounder(&self) -> windows_core::Result; fn SetNumberRounder(&self, value: Option<&INumberRounder>) -> windows_core::Result<()>; } @@ -518,14 +416,8 @@ impl windows_core::RuntimeName for INumberRounderOption { const NAME: &'static str = "Windows.Globalization.NumberFormatting.INumberRounderOption"; } impl INumberRounderOption_Vtbl { - pub const fn new() -> INumberRounderOption_Vtbl - where - Identity: INumberRounderOption_Impl, - { - unsafe extern "system" fn NumberRounder(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INumberRounderOption_Impl, - { + pub const fn new() -> INumberRounderOption_Vtbl { + unsafe extern "system" fn NumberRounder(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INumberRounderOption_Impl::NumberRounder(this) { Ok(ok__) => { @@ -536,10 +428,7 @@ impl INumberRounderOption_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNumberRounder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INumberRounderOption_Impl, - { + unsafe extern "system" fn SetNumberRounder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INumberRounderOption_Impl::SetNumberRounder(this, windows_core::from_raw_borrowed(&value)).into() } @@ -553,7 +442,7 @@ impl INumberRounderOption_Vtbl { iid == &::IID } } -pub trait ISignedZeroOption_Impl: Sized { +pub trait ISignedZeroOption_Impl: Sized + windows_core::IUnknownImpl { fn IsZeroSigned(&self) -> windows_core::Result; fn SetIsZeroSigned(&self, value: bool) -> windows_core::Result<()>; } @@ -561,14 +450,8 @@ impl windows_core::RuntimeName for ISignedZeroOption { const NAME: &'static str = "Windows.Globalization.NumberFormatting.ISignedZeroOption"; } impl ISignedZeroOption_Vtbl { - pub const fn new() -> ISignedZeroOption_Vtbl - where - Identity: ISignedZeroOption_Impl, - { - unsafe extern "system" fn IsZeroSigned(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ISignedZeroOption_Impl, - { + pub const fn new() -> ISignedZeroOption_Vtbl { + unsafe extern "system" fn IsZeroSigned(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignedZeroOption_Impl::IsZeroSigned(this) { Ok(ok__) => { @@ -578,10 +461,7 @@ impl ISignedZeroOption_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsZeroSigned(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: ISignedZeroOption_Impl, - { + unsafe extern "system" fn SetIsZeroSigned(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISignedZeroOption_Impl::SetIsZeroSigned(this, value).into() } @@ -595,7 +475,7 @@ impl ISignedZeroOption_Vtbl { iid == &::IID } } -pub trait ISignificantDigitsOption_Impl: Sized { +pub trait ISignificantDigitsOption_Impl: Sized + windows_core::IUnknownImpl { fn SignificantDigits(&self) -> windows_core::Result; fn SetSignificantDigits(&self, value: i32) -> windows_core::Result<()>; } @@ -603,14 +483,8 @@ impl windows_core::RuntimeName for ISignificantDigitsOption { const NAME: &'static str = "Windows.Globalization.NumberFormatting.ISignificantDigitsOption"; } impl ISignificantDigitsOption_Vtbl { - pub const fn new() -> ISignificantDigitsOption_Vtbl - where - Identity: ISignificantDigitsOption_Impl, - { - unsafe extern "system" fn SignificantDigits(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ISignificantDigitsOption_Impl, - { + pub const fn new() -> ISignificantDigitsOption_Vtbl { + unsafe extern "system" fn SignificantDigits(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignificantDigitsOption_Impl::SignificantDigits(this) { Ok(ok__) => { @@ -620,10 +494,7 @@ impl ISignificantDigitsOption_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignificantDigits(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ISignificantDigitsOption_Impl, - { + unsafe extern "system" fn SetSignificantDigits(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISignificantDigitsOption_Impl::SetSignificantDigits(this, value).into() } diff --git a/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/impl.rs b/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/impl.rs index fbc9a9f3e7..06b64b6aec 100644 --- a/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/impl.rs @@ -1,18 +1,12 @@ -pub trait IDirect3DDevice_Impl: Sized + super::super::super::Foundation::IClosable_Impl { +pub trait IDirect3DDevice_Impl: Sized + windows_core::IUnknownImpl + super::super::super::Foundation::IClosable_Impl { fn Trim(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirect3DDevice { const NAME: &'static str = "Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice"; } impl IDirect3DDevice_Vtbl { - pub const fn new() -> IDirect3DDevice_Vtbl - where - Identity: IDirect3DDevice_Impl, - { - unsafe extern "system" fn Trim(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice_Impl, - { + pub const fn new() -> IDirect3DDevice_Vtbl { + unsafe extern "system" fn Trim(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice_Impl::Trim(this).into() } @@ -22,21 +16,15 @@ impl IDirect3DDevice_Vtbl { iid == &::IID } } -pub trait IDirect3DSurface_Impl: Sized + super::super::super::Foundation::IClosable_Impl { +pub trait IDirect3DSurface_Impl: Sized + windows_core::IUnknownImpl + super::super::super::Foundation::IClosable_Impl { fn Description(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDirect3DSurface { const NAME: &'static str = "Windows.Graphics.DirectX.Direct3D11.IDirect3DSurface"; } impl IDirect3DSurface_Vtbl { - pub const fn new() -> IDirect3DSurface_Vtbl - where - Identity: IDirect3DSurface_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, result__: *mut Direct3DSurfaceDescription) -> windows_core::HRESULT - where - Identity: IDirect3DSurface_Impl, - { + pub const fn new() -> IDirect3DSurface_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, result__: *mut Direct3DSurfaceDescription) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DSurface_Impl::Description(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Graphics/Effects/impl.rs b/crates/libs/windows/src/Windows/Graphics/Effects/impl.rs index 4b4d6e3246..fdd152a4c6 100644 --- a/crates/libs/windows/src/Windows/Graphics/Effects/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/Effects/impl.rs @@ -1,4 +1,4 @@ -pub trait IGraphicsEffect_Impl: Sized + IGraphicsEffectSource_Impl { +pub trait IGraphicsEffect_Impl: Sized + windows_core::IUnknownImpl + IGraphicsEffectSource_Impl { fn Name(&self) -> windows_core::Result; fn SetName(&self, name: &windows_core::HSTRING) -> windows_core::Result<()>; } @@ -6,14 +6,8 @@ impl windows_core::RuntimeName for IGraphicsEffect { const NAME: &'static str = "Windows.Graphics.Effects.IGraphicsEffect"; } impl IGraphicsEffect_Vtbl { - pub const fn new() -> IGraphicsEffect_Vtbl - where - Identity: IGraphicsEffect_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGraphicsEffect_Impl, - { + pub const fn new() -> IGraphicsEffect_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphicsEffect_Impl::Name(this) { Ok(ok__) => { @@ -24,10 +18,7 @@ impl IGraphicsEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGraphicsEffect_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphicsEffect_Impl::SetName(this, core::mem::transmute(&name)).into() } @@ -41,15 +32,12 @@ impl IGraphicsEffect_Vtbl { iid == &::IID } } -pub trait IGraphicsEffectSource_Impl: Sized {} +pub trait IGraphicsEffectSource_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IGraphicsEffectSource { const NAME: &'static str = "Windows.Graphics.Effects.IGraphicsEffectSource"; } impl IGraphicsEffectSource_Vtbl { - pub const fn new() -> IGraphicsEffectSource_Vtbl - where - Identity: IGraphicsEffectSource_Impl, - { + pub const fn new() -> IGraphicsEffectSource_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Graphics/Imaging/impl.rs b/crates/libs/windows/src/Windows/Graphics/Imaging/impl.rs index d527936b37..62cf9e88f4 100644 --- a/crates/libs/windows/src/Windows/Graphics/Imaging/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/Imaging/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Storage_Streams")] -pub trait IBitmapFrame_Impl: Sized { +pub trait IBitmapFrame_Impl: Sized + windows_core::IUnknownImpl { fn GetThumbnailAsync(&self) -> windows_core::Result>; fn BitmapProperties(&self) -> windows_core::Result; fn BitmapPixelFormat(&self) -> windows_core::Result; @@ -19,14 +19,8 @@ impl windows_core::RuntimeName for IBitmapFrame { } #[cfg(feature = "Storage_Streams")] impl IBitmapFrame_Vtbl { - pub const fn new() -> IBitmapFrame_Vtbl - where - Identity: IBitmapFrame_Impl, - { - unsafe extern "system" fn GetThumbnailAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + pub const fn new() -> IBitmapFrame_Vtbl { + unsafe extern "system" fn GetThumbnailAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::GetThumbnailAsync(this) { Ok(ok__) => { @@ -37,10 +31,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BitmapProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn BitmapProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::BitmapProperties(this) { Ok(ok__) => { @@ -51,10 +42,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BitmapPixelFormat(this: *mut core::ffi::c_void, result__: *mut BitmapPixelFormat) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn BitmapPixelFormat(this: *mut core::ffi::c_void, result__: *mut BitmapPixelFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::BitmapPixelFormat(this) { Ok(ok__) => { @@ -64,10 +52,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BitmapAlphaMode(this: *mut core::ffi::c_void, result__: *mut BitmapAlphaMode) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn BitmapAlphaMode(this: *mut core::ffi::c_void, result__: *mut BitmapAlphaMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::BitmapAlphaMode(this) { Ok(ok__) => { @@ -77,10 +62,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DpiX(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn DpiX(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::DpiX(this) { Ok(ok__) => { @@ -90,10 +72,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DpiY(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn DpiY(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::DpiY(this) { Ok(ok__) => { @@ -103,10 +82,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PixelWidth(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn PixelWidth(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::PixelWidth(this) { Ok(ok__) => { @@ -116,10 +92,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PixelHeight(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn PixelHeight(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::PixelHeight(this) { Ok(ok__) => { @@ -129,10 +102,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OrientedPixelWidth(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn OrientedPixelWidth(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::OrientedPixelWidth(this) { Ok(ok__) => { @@ -142,10 +112,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OrientedPixelHeight(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn OrientedPixelHeight(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::OrientedPixelHeight(this) { Ok(ok__) => { @@ -155,10 +122,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPixelDataAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn GetPixelDataAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::GetPixelDataAsync(this) { Ok(ok__) => { @@ -169,10 +133,7 @@ impl IBitmapFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPixelDataTransformedAsync(this: *mut core::ffi::c_void, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: *mut core::ffi::c_void, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitmapFrame_Impl, - { + unsafe extern "system" fn GetPixelDataTransformedAsync(this: *mut core::ffi::c_void, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: *mut core::ffi::c_void, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrame_Impl::GetPixelDataTransformedAsync(this, pixelformat, alphamode, windows_core::from_raw_borrowed(&transform), exiforientationmode, colormanagementmode) { Ok(ok__) => { @@ -204,7 +165,7 @@ impl IBitmapFrame_Vtbl { } } #[cfg(feature = "Storage_Streams")] -pub trait IBitmapFrameWithSoftwareBitmap_Impl: Sized + IBitmapFrame_Impl { +pub trait IBitmapFrameWithSoftwareBitmap_Impl: Sized + windows_core::IUnknownImpl + IBitmapFrame_Impl { fn GetSoftwareBitmapAsync(&self) -> windows_core::Result>; fn GetSoftwareBitmapConvertedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode) -> windows_core::Result>; fn GetSoftwareBitmapTransformedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: Option<&BitmapTransform>, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode) -> windows_core::Result>; @@ -215,14 +176,8 @@ impl windows_core::RuntimeName for IBitmapFrameWithSoftwareBitmap { } #[cfg(feature = "Storage_Streams")] impl IBitmapFrameWithSoftwareBitmap_Vtbl { - pub const fn new() -> IBitmapFrameWithSoftwareBitmap_Vtbl - where - Identity: IBitmapFrameWithSoftwareBitmap_Impl, - { - unsafe extern "system" fn GetSoftwareBitmapAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitmapFrameWithSoftwareBitmap_Impl, - { + pub const fn new() -> IBitmapFrameWithSoftwareBitmap_Vtbl { + unsafe extern "system" fn GetSoftwareBitmapAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrameWithSoftwareBitmap_Impl::GetSoftwareBitmapAsync(this) { Ok(ok__) => { @@ -233,10 +188,7 @@ impl IBitmapFrameWithSoftwareBitmap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSoftwareBitmapConvertedAsync(this: *mut core::ffi::c_void, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitmapFrameWithSoftwareBitmap_Impl, - { + unsafe extern "system" fn GetSoftwareBitmapConvertedAsync(this: *mut core::ffi::c_void, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrameWithSoftwareBitmap_Impl::GetSoftwareBitmapConvertedAsync(this, pixelformat, alphamode) { Ok(ok__) => { @@ -247,10 +199,7 @@ impl IBitmapFrameWithSoftwareBitmap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSoftwareBitmapTransformedAsync(this: *mut core::ffi::c_void, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: *mut core::ffi::c_void, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitmapFrameWithSoftwareBitmap_Impl, - { + unsafe extern "system" fn GetSoftwareBitmapTransformedAsync(this: *mut core::ffi::c_void, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: *mut core::ffi::c_void, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapFrameWithSoftwareBitmap_Impl::GetSoftwareBitmapTransformedAsync(this, pixelformat, alphamode, windows_core::from_raw_borrowed(&transform), exiforientationmode, colormanagementmode) { Ok(ok__) => { @@ -273,7 +222,7 @@ impl IBitmapFrameWithSoftwareBitmap_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IBitmapPropertiesView_Impl: Sized { +pub trait IBitmapPropertiesView_Impl: Sized + windows_core::IUnknownImpl { fn GetPropertiesAsync(&self, propertiestoretrieve: Option<&super::super::Foundation::Collections::IIterable>) -> windows_core::Result>; } #[cfg(feature = "Foundation_Collections")] @@ -282,14 +231,8 @@ impl windows_core::RuntimeName for IBitmapPropertiesView { } #[cfg(feature = "Foundation_Collections")] impl IBitmapPropertiesView_Vtbl { - pub const fn new() -> IBitmapPropertiesView_Vtbl - where - Identity: IBitmapPropertiesView_Impl, - { - unsafe extern "system" fn GetPropertiesAsync(this: *mut core::ffi::c_void, propertiestoretrieve: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitmapPropertiesView_Impl, - { + pub const fn new() -> IBitmapPropertiesView_Vtbl { + unsafe extern "system" fn GetPropertiesAsync(this: *mut core::ffi::c_void, propertiestoretrieve: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitmapPropertiesView_Impl::GetPropertiesAsync(this, windows_core::from_raw_borrowed(&propertiestoretrieve)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/impl.rs b/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/impl.rs index b37e687abe..d9f4c12e8d 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/impl.rs @@ -1,4 +1,4 @@ -pub trait IPrintCustomOptionDetails_Impl: Sized + IPrintOptionDetails_Impl { +pub trait IPrintCustomOptionDetails_Impl: Sized + windows_core::IUnknownImpl + IPrintOptionDetails_Impl { fn SetDisplayName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn DisplayName(&self) -> windows_core::Result; } @@ -6,21 +6,12 @@ impl windows_core::RuntimeName for IPrintCustomOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.IPrintCustomOptionDetails"; } impl IPrintCustomOptionDetails_Vtbl { - pub const fn new() -> IPrintCustomOptionDetails_Vtbl - where - Identity: IPrintCustomOptionDetails_Impl, - { - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintCustomOptionDetails_Impl, - { + pub const fn new() -> IPrintCustomOptionDetails_Vtbl { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCustomOptionDetails_Impl::SetDisplayName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintCustomOptionDetails_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintCustomOptionDetails_Impl::DisplayName(this) { Ok(ok__) => { @@ -42,7 +33,7 @@ impl IPrintCustomOptionDetails_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IPrintItemListOptionDetails_Impl: Sized + IPrintOptionDetails_Impl { +pub trait IPrintItemListOptionDetails_Impl: Sized + windows_core::IUnknownImpl + IPrintOptionDetails_Impl { fn Items(&self) -> windows_core::Result>; } #[cfg(feature = "Foundation_Collections")] @@ -51,14 +42,8 @@ impl windows_core::RuntimeName for IPrintItemListOptionDetails { } #[cfg(feature = "Foundation_Collections")] impl IPrintItemListOptionDetails_Vtbl { - pub const fn new() -> IPrintItemListOptionDetails_Vtbl - where - Identity: IPrintItemListOptionDetails_Impl, - { - unsafe extern "system" fn Items(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintItemListOptionDetails_Impl, - { + pub const fn new() -> IPrintItemListOptionDetails_Vtbl { + unsafe extern "system" fn Items(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintItemListOptionDetails_Impl::Items(this) { Ok(ok__) => { @@ -75,7 +60,7 @@ impl IPrintItemListOptionDetails_Vtbl { iid == &::IID } } -pub trait IPrintNumberOptionDetails_Impl: Sized + IPrintOptionDetails_Impl { +pub trait IPrintNumberOptionDetails_Impl: Sized + windows_core::IUnknownImpl + IPrintOptionDetails_Impl { fn MinValue(&self) -> windows_core::Result; fn MaxValue(&self) -> windows_core::Result; } @@ -83,14 +68,8 @@ impl windows_core::RuntimeName for IPrintNumberOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.IPrintNumberOptionDetails"; } impl IPrintNumberOptionDetails_Vtbl { - pub const fn new() -> IPrintNumberOptionDetails_Vtbl - where - Identity: IPrintNumberOptionDetails_Impl, - { - unsafe extern "system" fn MinValue(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintNumberOptionDetails_Impl, - { + pub const fn new() -> IPrintNumberOptionDetails_Vtbl { + unsafe extern "system" fn MinValue(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintNumberOptionDetails_Impl::MinValue(this) { Ok(ok__) => { @@ -100,10 +79,7 @@ impl IPrintNumberOptionDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxValue(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintNumberOptionDetails_Impl, - { + unsafe extern "system" fn MaxValue(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintNumberOptionDetails_Impl::MaxValue(this) { Ok(ok__) => { @@ -123,7 +99,7 @@ impl IPrintNumberOptionDetails_Vtbl { iid == &::IID } } -pub trait IPrintOptionDetails_Impl: Sized { +pub trait IPrintOptionDetails_Impl: Sized + windows_core::IUnknownImpl { fn OptionId(&self) -> windows_core::Result; fn OptionType(&self) -> windows_core::Result; fn SetErrorText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; @@ -137,14 +113,8 @@ impl windows_core::RuntimeName for IPrintOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.IPrintOptionDetails"; } impl IPrintOptionDetails_Vtbl { - pub const fn new() -> IPrintOptionDetails_Vtbl - where - Identity: IPrintOptionDetails_Impl, - { - unsafe extern "system" fn OptionId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintOptionDetails_Impl, - { + pub const fn new() -> IPrintOptionDetails_Vtbl { + unsafe extern "system" fn OptionId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintOptionDetails_Impl::OptionId(this) { Ok(ok__) => { @@ -155,10 +125,7 @@ impl IPrintOptionDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OptionType(this: *mut core::ffi::c_void, result__: *mut PrintOptionType) -> windows_core::HRESULT - where - Identity: IPrintOptionDetails_Impl, - { + unsafe extern "system" fn OptionType(this: *mut core::ffi::c_void, result__: *mut PrintOptionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintOptionDetails_Impl::OptionType(this) { Ok(ok__) => { @@ -168,17 +135,11 @@ impl IPrintOptionDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetErrorText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintOptionDetails_Impl, - { + unsafe extern "system" fn SetErrorText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOptionDetails_Impl::SetErrorText(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ErrorText(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintOptionDetails_Impl, - { + unsafe extern "system" fn ErrorText(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintOptionDetails_Impl::ErrorText(this) { Ok(ok__) => { @@ -189,17 +150,11 @@ impl IPrintOptionDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, value: PrintOptionStates) -> windows_core::HRESULT - where - Identity: IPrintOptionDetails_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, value: PrintOptionStates) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOptionDetails_Impl::SetState(this, value).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, result__: *mut PrintOptionStates) -> windows_core::HRESULT - where - Identity: IPrintOptionDetails_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, result__: *mut PrintOptionStates) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintOptionDetails_Impl::State(this) { Ok(ok__) => { @@ -209,10 +164,7 @@ impl IPrintOptionDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintOptionDetails_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintOptionDetails_Impl::Value(this) { Ok(ok__) => { @@ -223,10 +175,7 @@ impl IPrintOptionDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TrySetValue(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IPrintOptionDetails_Impl, - { + unsafe extern "system" fn TrySetValue(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintOptionDetails_Impl::TrySetValue(this, windows_core::from_raw_borrowed(&value)) { Ok(ok__) => { @@ -252,21 +201,15 @@ impl IPrintOptionDetails_Vtbl { iid == &::IID } } -pub trait IPrintTextOptionDetails_Impl: Sized + IPrintOptionDetails_Impl { +pub trait IPrintTextOptionDetails_Impl: Sized + windows_core::IUnknownImpl + IPrintOptionDetails_Impl { fn MaxCharacters(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPrintTextOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.IPrintTextOptionDetails"; } impl IPrintTextOptionDetails_Vtbl { - pub const fn new() -> IPrintTextOptionDetails_Vtbl - where - Identity: IPrintTextOptionDetails_Impl, - { - unsafe extern "system" fn MaxCharacters(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintTextOptionDetails_Impl, - { + pub const fn new() -> IPrintTextOptionDetails_Vtbl { + unsafe extern "system" fn MaxCharacters(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTextOptionDetails_Impl::MaxCharacters(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/impl.rs b/crates/libs/windows/src/Windows/Graphics/Printing/impl.rs index 61521d17a8..e26b3fd4df 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/impl.rs @@ -1,33 +1,24 @@ -pub trait IPrintDocumentSource_Impl: Sized {} +pub trait IPrintDocumentSource_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IPrintDocumentSource { const NAME: &'static str = "Windows.Graphics.Printing.IPrintDocumentSource"; } impl IPrintDocumentSource_Vtbl { - pub const fn new() -> IPrintDocumentSource_Vtbl - where - Identity: IPrintDocumentSource_Impl, - { + pub const fn new() -> IPrintDocumentSource_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IPrintTaskOptionsCore_Impl: Sized { +pub trait IPrintTaskOptionsCore_Impl: Sized + windows_core::IUnknownImpl { fn GetPageDescription(&self, jobpagenumber: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IPrintTaskOptionsCore { const NAME: &'static str = "Windows.Graphics.Printing.IPrintTaskOptionsCore"; } impl IPrintTaskOptionsCore_Vtbl { - pub const fn new() -> IPrintTaskOptionsCore_Vtbl - where - Identity: IPrintTaskOptionsCore_Impl, - { - unsafe extern "system" fn GetPageDescription(this: *mut core::ffi::c_void, jobpagenumber: u32, result__: *mut PrintPageDescription) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCore_Impl, - { + pub const fn new() -> IPrintTaskOptionsCore_Vtbl { + unsafe extern "system" fn GetPageDescription(this: *mut core::ffi::c_void, jobpagenumber: u32, result__: *mut PrintPageDescription) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCore_Impl::GetPageDescription(this, jobpagenumber) { Ok(ok__) => { @@ -46,7 +37,7 @@ impl IPrintTaskOptionsCore_Vtbl { iid == &::IID } } -pub trait IPrintTaskOptionsCoreProperties_Impl: Sized { +pub trait IPrintTaskOptionsCoreProperties_Impl: Sized + windows_core::IUnknownImpl { fn SetMediaSize(&self, value: PrintMediaSize) -> windows_core::Result<()>; fn MediaSize(&self) -> windows_core::Result; fn SetMediaType(&self, value: PrintMediaType) -> windows_core::Result<()>; @@ -76,21 +67,12 @@ impl windows_core::RuntimeName for IPrintTaskOptionsCoreProperties { const NAME: &'static str = "Windows.Graphics.Printing.IPrintTaskOptionsCoreProperties"; } impl IPrintTaskOptionsCoreProperties_Vtbl { - pub const fn new() -> IPrintTaskOptionsCoreProperties_Vtbl - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { - unsafe extern "system" fn SetMediaSize(this: *mut core::ffi::c_void, value: PrintMediaSize) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + pub const fn new() -> IPrintTaskOptionsCoreProperties_Vtbl { + unsafe extern "system" fn SetMediaSize(this: *mut core::ffi::c_void, value: PrintMediaSize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetMediaSize(this, value).into() } - unsafe extern "system" fn MediaSize(this: *mut core::ffi::c_void, result__: *mut PrintMediaSize) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn MediaSize(this: *mut core::ffi::c_void, result__: *mut PrintMediaSize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::MediaSize(this) { Ok(ok__) => { @@ -100,17 +82,11 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, value: PrintMediaType) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, value: PrintMediaType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetMediaType(this, value).into() } - unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, result__: *mut PrintMediaType) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, result__: *mut PrintMediaType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::MediaType(this) { Ok(ok__) => { @@ -120,17 +96,11 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOrientation(this: *mut core::ffi::c_void, value: PrintOrientation) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn SetOrientation(this: *mut core::ffi::c_void, value: PrintOrientation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetOrientation(this, value).into() } - unsafe extern "system" fn Orientation(this: *mut core::ffi::c_void, result__: *mut PrintOrientation) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn Orientation(this: *mut core::ffi::c_void, result__: *mut PrintOrientation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::Orientation(this) { Ok(ok__) => { @@ -140,17 +110,11 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintQuality(this: *mut core::ffi::c_void, value: PrintQuality) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn SetPrintQuality(this: *mut core::ffi::c_void, value: PrintQuality) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetPrintQuality(this, value).into() } - unsafe extern "system" fn PrintQuality(this: *mut core::ffi::c_void, result__: *mut PrintQuality) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn PrintQuality(this: *mut core::ffi::c_void, result__: *mut PrintQuality) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::PrintQuality(this) { Ok(ok__) => { @@ -160,17 +124,11 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorMode(this: *mut core::ffi::c_void, value: PrintColorMode) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn SetColorMode(this: *mut core::ffi::c_void, value: PrintColorMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetColorMode(this, value).into() } - unsafe extern "system" fn ColorMode(this: *mut core::ffi::c_void, result__: *mut PrintColorMode) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn ColorMode(this: *mut core::ffi::c_void, result__: *mut PrintColorMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::ColorMode(this) { Ok(ok__) => { @@ -180,17 +138,11 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDuplex(this: *mut core::ffi::c_void, value: PrintDuplex) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn SetDuplex(this: *mut core::ffi::c_void, value: PrintDuplex) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetDuplex(this, value).into() } - unsafe extern "system" fn Duplex(this: *mut core::ffi::c_void, result__: *mut PrintDuplex) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn Duplex(this: *mut core::ffi::c_void, result__: *mut PrintDuplex) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::Duplex(this) { Ok(ok__) => { @@ -200,17 +152,11 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCollation(this: *mut core::ffi::c_void, value: PrintCollation) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn SetCollation(this: *mut core::ffi::c_void, value: PrintCollation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetCollation(this, value).into() } - unsafe extern "system" fn Collation(this: *mut core::ffi::c_void, result__: *mut PrintCollation) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn Collation(this: *mut core::ffi::c_void, result__: *mut PrintCollation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::Collation(this) { Ok(ok__) => { @@ -220,17 +166,11 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStaple(this: *mut core::ffi::c_void, value: PrintStaple) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn SetStaple(this: *mut core::ffi::c_void, value: PrintStaple) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetStaple(this, value).into() } - unsafe extern "system" fn Staple(this: *mut core::ffi::c_void, result__: *mut PrintStaple) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn Staple(this: *mut core::ffi::c_void, result__: *mut PrintStaple) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::Staple(this) { Ok(ok__) => { @@ -240,17 +180,11 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHolePunch(this: *mut core::ffi::c_void, value: PrintHolePunch) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn SetHolePunch(this: *mut core::ffi::c_void, value: PrintHolePunch) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetHolePunch(this, value).into() } - unsafe extern "system" fn HolePunch(this: *mut core::ffi::c_void, result__: *mut PrintHolePunch) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn HolePunch(this: *mut core::ffi::c_void, result__: *mut PrintHolePunch) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::HolePunch(this) { Ok(ok__) => { @@ -260,17 +194,11 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBinding(this: *mut core::ffi::c_void, value: PrintBinding) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn SetBinding(this: *mut core::ffi::c_void, value: PrintBinding) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetBinding(this, value).into() } - unsafe extern "system" fn Binding(this: *mut core::ffi::c_void, result__: *mut PrintBinding) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn Binding(this: *mut core::ffi::c_void, result__: *mut PrintBinding) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::Binding(this) { Ok(ok__) => { @@ -280,10 +208,7 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinCopies(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn MinCopies(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::MinCopies(this) { Ok(ok__) => { @@ -293,10 +218,7 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxCopies(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn MaxCopies(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::MaxCopies(this) { Ok(ok__) => { @@ -306,17 +228,11 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNumberOfCopies(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn SetNumberOfCopies(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskOptionsCoreProperties_Impl::SetNumberOfCopies(this, value).into() } - unsafe extern "system" fn NumberOfCopies(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreProperties_Impl, - { + unsafe extern "system" fn NumberOfCopies(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreProperties_Impl::NumberOfCopies(this) { Ok(ok__) => { @@ -359,7 +275,7 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IPrintTaskOptionsCoreUIConfiguration_Impl: Sized { +pub trait IPrintTaskOptionsCoreUIConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn DisplayedOptions(&self) -> windows_core::Result>; } #[cfg(feature = "Foundation_Collections")] @@ -368,14 +284,8 @@ impl windows_core::RuntimeName for IPrintTaskOptionsCoreUIConfiguration { } #[cfg(feature = "Foundation_Collections")] impl IPrintTaskOptionsCoreUIConfiguration_Vtbl { - pub const fn new() -> IPrintTaskOptionsCoreUIConfiguration_Vtbl - where - Identity: IPrintTaskOptionsCoreUIConfiguration_Impl, - { - unsafe extern "system" fn DisplayedOptions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintTaskOptionsCoreUIConfiguration_Impl, - { + pub const fn new() -> IPrintTaskOptionsCoreUIConfiguration_Vtbl { + unsafe extern "system" fn DisplayedOptions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTaskOptionsCoreUIConfiguration_Impl::DisplayedOptions(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Graphics/impl.rs b/crates/libs/windows/src/Windows/Graphics/impl.rs index b36aa7073c..ba5b7d0bbe 100644 --- a/crates/libs/windows/src/Windows/Graphics/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/impl.rs @@ -1,12 +1,9 @@ -pub trait IGeometrySource2D_Impl: Sized {} +pub trait IGeometrySource2D_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IGeometrySource2D { const NAME: &'static str = "Windows.Graphics.IGeometrySource2D"; } impl IGeometrySource2D_Vtbl { - pub const fn new() -> IGeometrySource2D_Vtbl - where - Identity: IGeometrySource2D_Impl, - { + pub const fn new() -> IGeometrySource2D_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Media/Audio/impl.rs b/crates/libs/windows/src/Windows/Media/Audio/impl.rs index a211b7c061..87a5654ba2 100644 --- a/crates/libs/windows/src/Windows/Media/Audio/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Audio/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] -pub trait IAudioInputNode_Impl: Sized + IAudioNode_Impl + super::super::Foundation::IClosable_Impl { +pub trait IAudioInputNode_Impl: Sized + windows_core::IUnknownImpl + IAudioNode_Impl + super::super::Foundation::IClosable_Impl { fn OutgoingConnections(&self) -> windows_core::Result>; fn AddOutgoingConnection(&self, destination: Option<&IAudioNode>) -> windows_core::Result<()>; fn AddOutgoingConnectionWithGain(&self, destination: Option<&IAudioNode>, gain: f64) -> windows_core::Result<()>; @@ -11,14 +11,8 @@ impl windows_core::RuntimeName for IAudioInputNode { } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] impl IAudioInputNode_Vtbl { - pub const fn new() -> IAudioInputNode_Vtbl - where - Identity: IAudioInputNode_Impl, - { - unsafe extern "system" fn OutgoingConnections(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioInputNode_Impl, - { + pub const fn new() -> IAudioInputNode_Vtbl { + unsafe extern "system" fn OutgoingConnections(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioInputNode_Impl::OutgoingConnections(this) { Ok(ok__) => { @@ -29,24 +23,15 @@ impl IAudioInputNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddOutgoingConnection(this: *mut core::ffi::c_void, destination: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioInputNode_Impl, - { + unsafe extern "system" fn AddOutgoingConnection(this: *mut core::ffi::c_void, destination: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioInputNode_Impl::AddOutgoingConnection(this, windows_core::from_raw_borrowed(&destination)).into() } - unsafe extern "system" fn AddOutgoingConnectionWithGain(this: *mut core::ffi::c_void, destination: *mut core::ffi::c_void, gain: f64) -> windows_core::HRESULT - where - Identity: IAudioInputNode_Impl, - { + unsafe extern "system" fn AddOutgoingConnectionWithGain(this: *mut core::ffi::c_void, destination: *mut core::ffi::c_void, gain: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioInputNode_Impl::AddOutgoingConnectionWithGain(this, windows_core::from_raw_borrowed(&destination), gain).into() } - unsafe extern "system" fn RemoveOutgoingConnection(this: *mut core::ffi::c_void, destination: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioInputNode_Impl, - { + unsafe extern "system" fn RemoveOutgoingConnection(this: *mut core::ffi::c_void, destination: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioInputNode_Impl::RemoveOutgoingConnection(this, windows_core::from_raw_borrowed(&destination)).into() } @@ -63,7 +48,7 @@ impl IAudioInputNode_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] -pub trait IAudioInputNode2_Impl: Sized + IAudioInputNode_Impl + IAudioNode_Impl + super::super::Foundation::IClosable_Impl { +pub trait IAudioInputNode2_Impl: Sized + windows_core::IUnknownImpl + IAudioInputNode_Impl + IAudioNode_Impl + super::super::Foundation::IClosable_Impl { fn Emitter(&self) -> windows_core::Result; } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] @@ -72,14 +57,8 @@ impl windows_core::RuntimeName for IAudioInputNode2 { } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] impl IAudioInputNode2_Vtbl { - pub const fn new() -> IAudioInputNode2_Vtbl - where - Identity: IAudioInputNode2_Impl, - { - unsafe extern "system" fn Emitter(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioInputNode2_Impl, - { + pub const fn new() -> IAudioInputNode2_Vtbl { + unsafe extern "system" fn Emitter(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioInputNode2_Impl::Emitter(this) { Ok(ok__) => { @@ -97,7 +76,7 @@ impl IAudioInputNode2_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] -pub trait IAudioNode_Impl: Sized + super::super::Foundation::IClosable_Impl { +pub trait IAudioNode_Impl: Sized + windows_core::IUnknownImpl + super::super::Foundation::IClosable_Impl { fn EffectDefinitions(&self) -> windows_core::Result>; fn SetOutgoingGain(&self, value: f64) -> windows_core::Result<()>; fn OutgoingGain(&self) -> windows_core::Result; @@ -116,14 +95,8 @@ impl windows_core::RuntimeName for IAudioNode { } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] impl IAudioNode_Vtbl { - pub const fn new() -> IAudioNode_Vtbl - where - Identity: IAudioNode_Impl, - { - unsafe extern "system" fn EffectDefinitions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + pub const fn new() -> IAudioNode_Vtbl { + unsafe extern "system" fn EffectDefinitions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioNode_Impl::EffectDefinitions(this) { Ok(ok__) => { @@ -134,17 +107,11 @@ impl IAudioNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutgoingGain(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + unsafe extern "system" fn SetOutgoingGain(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioNode_Impl::SetOutgoingGain(this, value).into() } - unsafe extern "system" fn OutgoingGain(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + unsafe extern "system" fn OutgoingGain(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioNode_Impl::OutgoingGain(this) { Ok(ok__) => { @@ -154,10 +121,7 @@ impl IAudioNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EncodingProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + unsafe extern "system" fn EncodingProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioNode_Impl::EncodingProperties(this) { Ok(ok__) => { @@ -168,10 +132,7 @@ impl IAudioNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConsumeInput(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + unsafe extern "system" fn ConsumeInput(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioNode_Impl::ConsumeInput(this) { Ok(ok__) => { @@ -181,45 +142,27 @@ impl IAudioNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConsumeInput(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + unsafe extern "system" fn SetConsumeInput(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioNode_Impl::SetConsumeInput(this, value).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioNode_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioNode_Impl::Stop(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioNode_Impl::Reset(this).into() } - unsafe extern "system" fn DisableEffectsByDefinition(this: *mut core::ffi::c_void, definition: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + unsafe extern "system" fn DisableEffectsByDefinition(this: *mut core::ffi::c_void, definition: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioNode_Impl::DisableEffectsByDefinition(this, windows_core::from_raw_borrowed(&definition)).into() } - unsafe extern "system" fn EnableEffectsByDefinition(this: *mut core::ffi::c_void, definition: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioNode_Impl, - { + unsafe extern "system" fn EnableEffectsByDefinition(this: *mut core::ffi::c_void, definition: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioNode_Impl::EnableEffectsByDefinition(this, windows_core::from_raw_borrowed(&definition)).into() } @@ -243,7 +186,7 @@ impl IAudioNode_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] -pub trait IAudioNodeWithListener_Impl: Sized + IAudioNode_Impl + super::super::Foundation::IClosable_Impl { +pub trait IAudioNodeWithListener_Impl: Sized + windows_core::IUnknownImpl + IAudioNode_Impl + super::super::Foundation::IClosable_Impl { fn SetListener(&self, value: Option<&AudioNodeListener>) -> windows_core::Result<()>; fn Listener(&self) -> windows_core::Result; } @@ -253,21 +196,12 @@ impl windows_core::RuntimeName for IAudioNodeWithListener { } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] impl IAudioNodeWithListener_Vtbl { - pub const fn new() -> IAudioNodeWithListener_Vtbl - where - Identity: IAudioNodeWithListener_Impl, - { - unsafe extern "system" fn SetListener(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioNodeWithListener_Impl, - { + pub const fn new() -> IAudioNodeWithListener_Vtbl { + unsafe extern "system" fn SetListener(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioNodeWithListener_Impl::SetListener(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn Listener(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioNodeWithListener_Impl, - { + unsafe extern "system" fn Listener(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioNodeWithListener_Impl::Listener(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Media/Core/impl.rs b/crates/libs/windows/src/Windows/Media/Core/impl.rs index 906656efdd..5aa569ae57 100644 --- a/crates/libs/windows/src/Windows/Media/Core/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Core/impl.rs @@ -1,4 +1,4 @@ -pub trait IMediaCue_Impl: Sized { +pub trait IMediaCue_Impl: Sized + windows_core::IUnknownImpl { fn SetStartTime(&self, value: &super::super::Foundation::TimeSpan) -> windows_core::Result<()>; fn StartTime(&self) -> windows_core::Result; fn SetDuration(&self, value: &super::super::Foundation::TimeSpan) -> windows_core::Result<()>; @@ -10,21 +10,12 @@ impl windows_core::RuntimeName for IMediaCue { const NAME: &'static str = "Windows.Media.Core.IMediaCue"; } impl IMediaCue_Vtbl { - pub const fn new() -> IMediaCue_Vtbl - where - Identity: IMediaCue_Impl, - { - unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IMediaCue_Impl, - { + pub const fn new() -> IMediaCue_Vtbl { + unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaCue_Impl::SetStartTime(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IMediaCue_Impl, - { + unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaCue_Impl::StartTime(this) { Ok(ok__) => { @@ -34,17 +25,11 @@ impl IMediaCue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IMediaCue_Impl, - { + unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaCue_Impl::SetDuration(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IMediaCue_Impl, - { + unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaCue_Impl::Duration(this) { Ok(ok__) => { @@ -54,17 +39,11 @@ impl IMediaCue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaCue_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaCue_Impl::SetId(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaCue_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaCue_Impl::Id(this) { Ok(ok__) => { @@ -89,22 +68,19 @@ impl IMediaCue_Vtbl { iid == &::IID } } -pub trait IMediaSource_Impl: Sized {} +pub trait IMediaSource_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IMediaSource { const NAME: &'static str = "Windows.Media.Core.IMediaSource"; } impl IMediaSource_Vtbl { - pub const fn new() -> IMediaSource_Vtbl - where - Identity: IMediaSource_Impl, - { + pub const fn new() -> IMediaSource_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IMediaStreamDescriptor_Impl: Sized { +pub trait IMediaStreamDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn IsSelected(&self) -> windows_core::Result; fn SetName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn Name(&self) -> windows_core::Result; @@ -115,14 +91,8 @@ impl windows_core::RuntimeName for IMediaStreamDescriptor { const NAME: &'static str = "Windows.Media.Core.IMediaStreamDescriptor"; } impl IMediaStreamDescriptor_Vtbl { - pub const fn new() -> IMediaStreamDescriptor_Vtbl - where - Identity: IMediaStreamDescriptor_Impl, - { - unsafe extern "system" fn IsSelected(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IMediaStreamDescriptor_Impl, - { + pub const fn new() -> IMediaStreamDescriptor_Vtbl { + unsafe extern "system" fn IsSelected(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaStreamDescriptor_Impl::IsSelected(this) { Ok(ok__) => { @@ -132,17 +102,11 @@ impl IMediaStreamDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaStreamDescriptor_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamDescriptor_Impl::SetName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaStreamDescriptor_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaStreamDescriptor_Impl::Name(this) { Ok(ok__) => { @@ -153,17 +117,11 @@ impl IMediaStreamDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaStreamDescriptor_Impl, - { + unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamDescriptor_Impl::SetLanguage(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Language(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaStreamDescriptor_Impl, - { + unsafe extern "system" fn Language(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaStreamDescriptor_Impl::Language(this) { Ok(ok__) => { @@ -187,7 +145,7 @@ impl IMediaStreamDescriptor_Vtbl { iid == &::IID } } -pub trait IMediaStreamDescriptor2_Impl: Sized + IMediaStreamDescriptor_Impl { +pub trait IMediaStreamDescriptor2_Impl: Sized + windows_core::IUnknownImpl + IMediaStreamDescriptor_Impl { fn SetLabel(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn Label(&self) -> windows_core::Result; } @@ -195,21 +153,12 @@ impl windows_core::RuntimeName for IMediaStreamDescriptor2 { const NAME: &'static str = "Windows.Media.Core.IMediaStreamDescriptor2"; } impl IMediaStreamDescriptor2_Vtbl { - pub const fn new() -> IMediaStreamDescriptor2_Vtbl - where - Identity: IMediaStreamDescriptor2_Impl, - { - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaStreamDescriptor2_Impl, - { + pub const fn new() -> IMediaStreamDescriptor2_Vtbl { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamDescriptor2_Impl::SetLabel(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaStreamDescriptor2_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaStreamDescriptor2_Impl::Label(this) { Ok(ok__) => { @@ -230,7 +179,7 @@ impl IMediaStreamDescriptor2_Vtbl { iid == &::IID } } -pub trait IMediaTrack_Impl: Sized { +pub trait IMediaTrack_Impl: Sized + windows_core::IUnknownImpl { fn Id(&self) -> windows_core::Result; fn Language(&self) -> windows_core::Result; fn TrackKind(&self) -> windows_core::Result; @@ -241,14 +190,8 @@ impl windows_core::RuntimeName for IMediaTrack { const NAME: &'static str = "Windows.Media.Core.IMediaTrack"; } impl IMediaTrack_Vtbl { - pub const fn new() -> IMediaTrack_Vtbl - where - Identity: IMediaTrack_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaTrack_Impl, - { + pub const fn new() -> IMediaTrack_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaTrack_Impl::Id(this) { Ok(ok__) => { @@ -259,10 +202,7 @@ impl IMediaTrack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Language(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaTrack_Impl, - { + unsafe extern "system" fn Language(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaTrack_Impl::Language(this) { Ok(ok__) => { @@ -273,10 +213,7 @@ impl IMediaTrack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TrackKind(this: *mut core::ffi::c_void, result__: *mut MediaTrackKind) -> windows_core::HRESULT - where - Identity: IMediaTrack_Impl, - { + unsafe extern "system" fn TrackKind(this: *mut core::ffi::c_void, result__: *mut MediaTrackKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaTrack_Impl::TrackKind(this) { Ok(ok__) => { @@ -286,17 +223,11 @@ impl IMediaTrack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaTrack_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaTrack_Impl::SetLabel(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaTrack_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaTrack_Impl::Label(this) { Ok(ok__) => { @@ -320,7 +251,7 @@ impl IMediaTrack_Vtbl { iid == &::IID } } -pub trait ISingleSelectMediaTrackList_Impl: Sized { +pub trait ISingleSelectMediaTrackList_Impl: Sized + windows_core::IUnknownImpl { fn SelectedIndexChanged(&self, handler: Option<&super::super::Foundation::TypedEventHandler>) -> windows_core::Result; fn RemoveSelectedIndexChanged(&self, token: &super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()>; fn SetSelectedIndex(&self, value: i32) -> windows_core::Result<()>; @@ -330,14 +261,8 @@ impl windows_core::RuntimeName for ISingleSelectMediaTrackList { const NAME: &'static str = "Windows.Media.Core.ISingleSelectMediaTrackList"; } impl ISingleSelectMediaTrackList_Vtbl { - pub const fn new() -> ISingleSelectMediaTrackList_Vtbl - where - Identity: ISingleSelectMediaTrackList_Impl, - { - unsafe extern "system" fn SelectedIndexChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ISingleSelectMediaTrackList_Impl, - { + pub const fn new() -> ISingleSelectMediaTrackList_Vtbl { + unsafe extern "system" fn SelectedIndexChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISingleSelectMediaTrackList_Impl::SelectedIndexChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -347,24 +272,15 @@ impl ISingleSelectMediaTrackList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveSelectedIndexChanged(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ISingleSelectMediaTrackList_Impl, - { + unsafe extern "system" fn RemoveSelectedIndexChanged(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISingleSelectMediaTrackList_Impl::RemoveSelectedIndexChanged(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn SetSelectedIndex(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ISingleSelectMediaTrackList_Impl, - { + unsafe extern "system" fn SetSelectedIndex(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISingleSelectMediaTrackList_Impl::SetSelectedIndex(this, value).into() } - unsafe extern "system" fn SelectedIndex(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ISingleSelectMediaTrackList_Impl, - { + unsafe extern "system" fn SelectedIndex(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISingleSelectMediaTrackList_Impl::SelectedIndex(this) { Ok(ok__) => { @@ -387,7 +303,7 @@ impl ISingleSelectMediaTrackList_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait ITimedMetadataTrackProvider_Impl: Sized { +pub trait ITimedMetadataTrackProvider_Impl: Sized + windows_core::IUnknownImpl { fn TimedMetadataTracks(&self) -> windows_core::Result>; } #[cfg(feature = "Foundation_Collections")] @@ -396,14 +312,8 @@ impl windows_core::RuntimeName for ITimedMetadataTrackProvider { } #[cfg(feature = "Foundation_Collections")] impl ITimedMetadataTrackProvider_Vtbl { - pub const fn new() -> ITimedMetadataTrackProvider_Vtbl - where - Identity: ITimedMetadataTrackProvider_Impl, - { - unsafe extern "system" fn TimedMetadataTracks(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITimedMetadataTrackProvider_Impl, - { + pub const fn new() -> ITimedMetadataTrackProvider_Vtbl { + unsafe extern "system" fn TimedMetadataTracks(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITimedMetadataTrackProvider_Impl::TimedMetadataTracks(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Media/Devices/impl.rs b/crates/libs/windows/src/Windows/Media/Devices/impl.rs index 90d769bf23..220175bf24 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/impl.rs @@ -1,4 +1,4 @@ -pub trait IDefaultAudioDeviceChangedEventArgs_Impl: Sized { +pub trait IDefaultAudioDeviceChangedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn Id(&self) -> windows_core::Result; fn Role(&self) -> windows_core::Result; } @@ -6,14 +6,8 @@ impl windows_core::RuntimeName for IDefaultAudioDeviceChangedEventArgs { const NAME: &'static str = "Windows.Media.Devices.IDefaultAudioDeviceChangedEventArgs"; } impl IDefaultAudioDeviceChangedEventArgs_Vtbl { - pub const fn new() -> IDefaultAudioDeviceChangedEventArgs_Vtbl - where - Identity: IDefaultAudioDeviceChangedEventArgs_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDefaultAudioDeviceChangedEventArgs_Impl, - { + pub const fn new() -> IDefaultAudioDeviceChangedEventArgs_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDefaultAudioDeviceChangedEventArgs_Impl::Id(this) { Ok(ok__) => { @@ -24,10 +18,7 @@ impl IDefaultAudioDeviceChangedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Role(this: *mut core::ffi::c_void, result__: *mut AudioDeviceRole) -> windows_core::HRESULT - where - Identity: IDefaultAudioDeviceChangedEventArgs_Impl, - { + unsafe extern "system" fn Role(this: *mut core::ffi::c_void, result__: *mut AudioDeviceRole) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDefaultAudioDeviceChangedEventArgs_Impl::Role(this) { Ok(ok__) => { @@ -48,7 +39,7 @@ impl IDefaultAudioDeviceChangedEventArgs_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] -pub trait IMediaDeviceController_Impl: Sized { +pub trait IMediaDeviceController_Impl: Sized + windows_core::IUnknownImpl { fn GetAvailableMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> windows_core::Result>; fn GetMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> windows_core::Result; fn SetMediaStreamPropertiesAsync(&self, mediastreamtype: super::Capture::MediaStreamType, mediaencodingproperties: Option<&super::MediaProperties::IMediaEncodingProperties>) -> windows_core::Result; @@ -59,14 +50,8 @@ impl windows_core::RuntimeName for IMediaDeviceController { } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] impl IMediaDeviceController_Vtbl { - pub const fn new() -> IMediaDeviceController_Vtbl - where - Identity: IMediaDeviceController_Impl, - { - unsafe extern "system" fn GetAvailableMediaStreamProperties(this: *mut core::ffi::c_void, mediastreamtype: super::Capture::MediaStreamType, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaDeviceController_Impl, - { + pub const fn new() -> IMediaDeviceController_Vtbl { + unsafe extern "system" fn GetAvailableMediaStreamProperties(this: *mut core::ffi::c_void, mediastreamtype: super::Capture::MediaStreamType, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaDeviceController_Impl::GetAvailableMediaStreamProperties(this, mediastreamtype) { Ok(ok__) => { @@ -77,10 +62,7 @@ impl IMediaDeviceController_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMediaStreamProperties(this: *mut core::ffi::c_void, mediastreamtype: super::Capture::MediaStreamType, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaDeviceController_Impl, - { + unsafe extern "system" fn GetMediaStreamProperties(this: *mut core::ffi::c_void, mediastreamtype: super::Capture::MediaStreamType, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaDeviceController_Impl::GetMediaStreamProperties(this, mediastreamtype) { Ok(ok__) => { @@ -91,10 +73,7 @@ impl IMediaDeviceController_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaStreamPropertiesAsync(this: *mut core::ffi::c_void, mediastreamtype: super::Capture::MediaStreamType, mediaencodingproperties: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaDeviceController_Impl, - { + unsafe extern "system" fn SetMediaStreamPropertiesAsync(this: *mut core::ffi::c_void, mediastreamtype: super::Capture::MediaStreamType, mediaencodingproperties: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaDeviceController_Impl::SetMediaStreamPropertiesAsync(this, mediastreamtype, windows_core::from_raw_borrowed(&mediaencodingproperties)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Media/Effects/impl.rs b/crates/libs/windows/src/Windows/Media/Effects/impl.rs index 436916df99..0ea5bfc0b5 100644 --- a/crates/libs/windows/src/Windows/Media/Effects/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Effects/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Foundation_Collections")] -pub trait IAudioEffectDefinition_Impl: Sized { +pub trait IAudioEffectDefinition_Impl: Sized + windows_core::IUnknownImpl { fn ActivatableClassId(&self) -> windows_core::Result; fn Properties(&self) -> windows_core::Result; } @@ -9,14 +9,8 @@ impl windows_core::RuntimeName for IAudioEffectDefinition { } #[cfg(feature = "Foundation_Collections")] impl IAudioEffectDefinition_Vtbl { - pub const fn new() -> IAudioEffectDefinition_Vtbl - where - Identity: IAudioEffectDefinition_Impl, - { - unsafe extern "system" fn ActivatableClassId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAudioEffectDefinition_Impl, - { + pub const fn new() -> IAudioEffectDefinition_Vtbl { + unsafe extern "system" fn ActivatableClassId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEffectDefinition_Impl::ActivatableClassId(this) { Ok(ok__) => { @@ -27,10 +21,7 @@ impl IAudioEffectDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEffectDefinition_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEffectDefinition_Impl::Properties(this) { Ok(ok__) => { @@ -52,7 +43,7 @@ impl IAudioEffectDefinition_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] -pub trait IBasicAudioEffect_Impl: Sized + super::IMediaExtension_Impl { +pub trait IBasicAudioEffect_Impl: Sized + windows_core::IUnknownImpl + super::IMediaExtension_Impl { fn UseInputFrameForOutput(&self) -> windows_core::Result; fn SupportedEncodingProperties(&self) -> windows_core::Result>; fn SetEncodingProperties(&self, encodingproperties: Option<&super::MediaProperties::AudioEncodingProperties>) -> windows_core::Result<()>; @@ -66,14 +57,8 @@ impl windows_core::RuntimeName for IBasicAudioEffect { } #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] impl IBasicAudioEffect_Vtbl { - pub const fn new() -> IBasicAudioEffect_Vtbl - where - Identity: IBasicAudioEffect_Impl, - { - unsafe extern "system" fn UseInputFrameForOutput(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IBasicAudioEffect_Impl, - { + pub const fn new() -> IBasicAudioEffect_Vtbl { + unsafe extern "system" fn UseInputFrameForOutput(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicAudioEffect_Impl::UseInputFrameForOutput(this) { Ok(ok__) => { @@ -83,10 +68,7 @@ impl IBasicAudioEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedEncodingProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicAudioEffect_Impl, - { + unsafe extern "system" fn SupportedEncodingProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicAudioEffect_Impl::SupportedEncodingProperties(this) { Ok(ok__) => { @@ -97,31 +79,19 @@ impl IBasicAudioEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncodingProperties(this: *mut core::ffi::c_void, encodingproperties: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicAudioEffect_Impl, - { + unsafe extern "system" fn SetEncodingProperties(this: *mut core::ffi::c_void, encodingproperties: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicAudioEffect_Impl::SetEncodingProperties(this, windows_core::from_raw_borrowed(&encodingproperties)).into() } - unsafe extern "system" fn ProcessFrame(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicAudioEffect_Impl, - { + unsafe extern "system" fn ProcessFrame(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicAudioEffect_Impl::ProcessFrame(this, windows_core::from_raw_borrowed(&context)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, reason: MediaEffectClosedReason) -> windows_core::HRESULT - where - Identity: IBasicAudioEffect_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, reason: MediaEffectClosedReason) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicAudioEffect_Impl::Close(this, reason).into() } - unsafe extern "system" fn DiscardQueuedFrames(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicAudioEffect_Impl, - { + unsafe extern "system" fn DiscardQueuedFrames(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicAudioEffect_Impl::DiscardQueuedFrames(this).into() } @@ -140,7 +110,7 @@ impl IBasicAudioEffect_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11", feature = "Media_MediaProperties"))] -pub trait IBasicVideoEffect_Impl: Sized + super::IMediaExtension_Impl { +pub trait IBasicVideoEffect_Impl: Sized + windows_core::IUnknownImpl + super::IMediaExtension_Impl { fn IsReadOnly(&self) -> windows_core::Result; fn SupportedMemoryTypes(&self) -> windows_core::Result; fn TimeIndependent(&self) -> windows_core::Result; @@ -156,14 +126,8 @@ impl windows_core::RuntimeName for IBasicVideoEffect { } #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11", feature = "Media_MediaProperties"))] impl IBasicVideoEffect_Vtbl { - pub const fn new() -> IBasicVideoEffect_Vtbl - where - Identity: IBasicVideoEffect_Impl, - { - unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IBasicVideoEffect_Impl, - { + pub const fn new() -> IBasicVideoEffect_Vtbl { + unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideoEffect_Impl::IsReadOnly(this) { Ok(ok__) => { @@ -173,10 +137,7 @@ impl IBasicVideoEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedMemoryTypes(this: *mut core::ffi::c_void, result__: *mut MediaMemoryTypes) -> windows_core::HRESULT - where - Identity: IBasicVideoEffect_Impl, - { + unsafe extern "system" fn SupportedMemoryTypes(this: *mut core::ffi::c_void, result__: *mut MediaMemoryTypes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideoEffect_Impl::SupportedMemoryTypes(this) { Ok(ok__) => { @@ -186,10 +147,7 @@ impl IBasicVideoEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TimeIndependent(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IBasicVideoEffect_Impl, - { + unsafe extern "system" fn TimeIndependent(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideoEffect_Impl::TimeIndependent(this) { Ok(ok__) => { @@ -199,10 +157,7 @@ impl IBasicVideoEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedEncodingProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicVideoEffect_Impl, - { + unsafe extern "system" fn SupportedEncodingProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideoEffect_Impl::SupportedEncodingProperties(this) { Ok(ok__) => { @@ -213,31 +168,19 @@ impl IBasicVideoEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncodingProperties(this: *mut core::ffi::c_void, encodingproperties: *mut core::ffi::c_void, device: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicVideoEffect_Impl, - { + unsafe extern "system" fn SetEncodingProperties(this: *mut core::ffi::c_void, encodingproperties: *mut core::ffi::c_void, device: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideoEffect_Impl::SetEncodingProperties(this, windows_core::from_raw_borrowed(&encodingproperties), windows_core::from_raw_borrowed(&device)).into() } - unsafe extern "system" fn ProcessFrame(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicVideoEffect_Impl, - { + unsafe extern "system" fn ProcessFrame(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideoEffect_Impl::ProcessFrame(this, windows_core::from_raw_borrowed(&context)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, reason: MediaEffectClosedReason) -> windows_core::HRESULT - where - Identity: IBasicVideoEffect_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, reason: MediaEffectClosedReason) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideoEffect_Impl::Close(this, reason).into() } - unsafe extern "system" fn DiscardQueuedFrames(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicVideoEffect_Impl, - { + unsafe extern "system" fn DiscardQueuedFrames(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideoEffect_Impl::DiscardQueuedFrames(this).into() } @@ -258,7 +201,7 @@ impl IBasicVideoEffect_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11", feature = "Media_MediaProperties"))] -pub trait IVideoCompositor_Impl: Sized + super::IMediaExtension_Impl { +pub trait IVideoCompositor_Impl: Sized + windows_core::IUnknownImpl + super::IMediaExtension_Impl { fn TimeIndependent(&self) -> windows_core::Result; fn SetEncodingProperties(&self, backgroundproperties: Option<&super::MediaProperties::VideoEncodingProperties>, device: Option<&super::super::Graphics::DirectX::Direct3D11::IDirect3DDevice>) -> windows_core::Result<()>; fn CompositeFrame(&self, context: Option<&CompositeVideoFrameContext>) -> windows_core::Result<()>; @@ -271,14 +214,8 @@ impl windows_core::RuntimeName for IVideoCompositor { } #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11", feature = "Media_MediaProperties"))] impl IVideoCompositor_Vtbl { - pub const fn new() -> IVideoCompositor_Vtbl - where - Identity: IVideoCompositor_Impl, - { - unsafe extern "system" fn TimeIndependent(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IVideoCompositor_Impl, - { + pub const fn new() -> IVideoCompositor_Vtbl { + unsafe extern "system" fn TimeIndependent(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoCompositor_Impl::TimeIndependent(this) { Ok(ok__) => { @@ -288,31 +225,19 @@ impl IVideoCompositor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncodingProperties(this: *mut core::ffi::c_void, backgroundproperties: *mut core::ffi::c_void, device: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoCompositor_Impl, - { + unsafe extern "system" fn SetEncodingProperties(this: *mut core::ffi::c_void, backgroundproperties: *mut core::ffi::c_void, device: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoCompositor_Impl::SetEncodingProperties(this, windows_core::from_raw_borrowed(&backgroundproperties), windows_core::from_raw_borrowed(&device)).into() } - unsafe extern "system" fn CompositeFrame(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoCompositor_Impl, - { + unsafe extern "system" fn CompositeFrame(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoCompositor_Impl::CompositeFrame(this, windows_core::from_raw_borrowed(&context)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, reason: MediaEffectClosedReason) -> windows_core::HRESULT - where - Identity: IVideoCompositor_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, reason: MediaEffectClosedReason) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoCompositor_Impl::Close(this, reason).into() } - unsafe extern "system" fn DiscardQueuedFrames(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoCompositor_Impl, - { + unsafe extern "system" fn DiscardQueuedFrames(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoCompositor_Impl::DiscardQueuedFrames(this).into() } @@ -330,7 +255,7 @@ impl IVideoCompositor_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IVideoCompositorDefinition_Impl: Sized { +pub trait IVideoCompositorDefinition_Impl: Sized + windows_core::IUnknownImpl { fn ActivatableClassId(&self) -> windows_core::Result; fn Properties(&self) -> windows_core::Result; } @@ -340,14 +265,8 @@ impl windows_core::RuntimeName for IVideoCompositorDefinition { } #[cfg(feature = "Foundation_Collections")] impl IVideoCompositorDefinition_Vtbl { - pub const fn new() -> IVideoCompositorDefinition_Vtbl - where - Identity: IVideoCompositorDefinition_Impl, - { - unsafe extern "system" fn ActivatableClassId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVideoCompositorDefinition_Impl, - { + pub const fn new() -> IVideoCompositorDefinition_Vtbl { + unsafe extern "system" fn ActivatableClassId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoCompositorDefinition_Impl::ActivatableClassId(this) { Ok(ok__) => { @@ -358,10 +277,7 @@ impl IVideoCompositorDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoCompositorDefinition_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoCompositorDefinition_Impl::Properties(this) { Ok(ok__) => { @@ -383,7 +299,7 @@ impl IVideoCompositorDefinition_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IVideoEffectDefinition_Impl: Sized { +pub trait IVideoEffectDefinition_Impl: Sized + windows_core::IUnknownImpl { fn ActivatableClassId(&self) -> windows_core::Result; fn Properties(&self) -> windows_core::Result; } @@ -393,14 +309,8 @@ impl windows_core::RuntimeName for IVideoEffectDefinition { } #[cfg(feature = "Foundation_Collections")] impl IVideoEffectDefinition_Vtbl { - pub const fn new() -> IVideoEffectDefinition_Vtbl - where - Identity: IVideoEffectDefinition_Impl, - { - unsafe extern "system" fn ActivatableClassId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVideoEffectDefinition_Impl, - { + pub const fn new() -> IVideoEffectDefinition_Vtbl { + unsafe extern "system" fn ActivatableClassId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoEffectDefinition_Impl::ActivatableClassId(this) { Ok(ok__) => { @@ -411,10 +321,7 @@ impl IVideoEffectDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoEffectDefinition_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoEffectDefinition_Impl::Properties(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Media/MediaProperties/impl.rs b/crates/libs/windows/src/Windows/Media/MediaProperties/impl.rs index dad7290129..849959bfa8 100644 --- a/crates/libs/windows/src/Windows/Media/MediaProperties/impl.rs +++ b/crates/libs/windows/src/Windows/Media/MediaProperties/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Foundation_Collections")] -pub trait IMediaEncodingProperties_Impl: Sized { +pub trait IMediaEncodingProperties_Impl: Sized + windows_core::IUnknownImpl { fn Properties(&self) -> windows_core::Result; fn Type(&self) -> windows_core::Result; fn SetSubtype(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; @@ -11,14 +11,8 @@ impl windows_core::RuntimeName for IMediaEncodingProperties { } #[cfg(feature = "Foundation_Collections")] impl IMediaEncodingProperties_Vtbl { - pub const fn new() -> IMediaEncodingProperties_Vtbl - where - Identity: IMediaEncodingProperties_Impl, - { - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaEncodingProperties_Impl, - { + pub const fn new() -> IMediaEncodingProperties_Vtbl { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaEncodingProperties_Impl::Properties(this) { Ok(ok__) => { @@ -29,10 +23,7 @@ impl IMediaEncodingProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaEncodingProperties_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaEncodingProperties_Impl::Type(this) { Ok(ok__) => { @@ -43,17 +34,11 @@ impl IMediaEncodingProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubtype(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaEncodingProperties_Impl, - { + unsafe extern "system" fn SetSubtype(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaEncodingProperties_Impl::SetSubtype(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Subtype(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaEncodingProperties_Impl, - { + unsafe extern "system" fn Subtype(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaEncodingProperties_Impl::Subtype(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Media/Playback/impl.rs b/crates/libs/windows/src/Windows/Media/Playback/impl.rs index 35c2870d04..ad9cd4a0c5 100644 --- a/crates/libs/windows/src/Windows/Media/Playback/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Playback/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "deprecated")] -pub trait IMediaEnginePlaybackSource_Impl: Sized { +pub trait IMediaEnginePlaybackSource_Impl: Sized + windows_core::IUnknownImpl { fn CurrentItem(&self) -> windows_core::Result; fn SetPlaybackSource(&self, source: Option<&IMediaPlaybackSource>) -> windows_core::Result<()>; } @@ -9,14 +9,8 @@ impl windows_core::RuntimeName for IMediaEnginePlaybackSource { } #[cfg(feature = "deprecated")] impl IMediaEnginePlaybackSource_Vtbl { - pub const fn new() -> IMediaEnginePlaybackSource_Vtbl - where - Identity: IMediaEnginePlaybackSource_Impl, - { - unsafe extern "system" fn CurrentItem(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaEnginePlaybackSource_Impl, - { + pub const fn new() -> IMediaEnginePlaybackSource_Vtbl { + unsafe extern "system" fn CurrentItem(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaEnginePlaybackSource_Impl::CurrentItem(this) { Ok(ok__) => { @@ -27,10 +21,7 @@ impl IMediaEnginePlaybackSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlaybackSource(this: *mut core::ffi::c_void, source: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaEnginePlaybackSource_Impl, - { + unsafe extern "system" fn SetPlaybackSource(this: *mut core::ffi::c_void, source: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaEnginePlaybackSource_Impl::SetPlaybackSource(this, windows_core::from_raw_borrowed(&source)).into() } @@ -44,15 +35,12 @@ impl IMediaEnginePlaybackSource_Vtbl { iid == &::IID } } -pub trait IMediaPlaybackSource_Impl: Sized {} +pub trait IMediaPlaybackSource_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IMediaPlaybackSource { const NAME: &'static str = "Windows.Media.Playback.IMediaPlaybackSource"; } impl IMediaPlaybackSource_Vtbl { - pub const fn new() -> IMediaPlaybackSource_Vtbl - where - Identity: IMediaPlaybackSource_Impl, - { + pub const fn new() -> IMediaPlaybackSource_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Media/Protection/PlayReady/impl.rs b/crates/libs/windows/src/Windows/Media/Protection/PlayReady/impl.rs index eb72fbf6c9..cd7b440959 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/PlayReady/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/PlayReady/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "deprecated")] -pub trait INDClosedCaptionDataReceivedEventArgs_Impl: Sized { +pub trait INDClosedCaptionDataReceivedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn ClosedCaptionDataFormat(&self) -> windows_core::Result; fn PresentationTimestamp(&self) -> windows_core::Result; fn ClosedCaptionData(&self) -> windows_core::Result>; @@ -10,14 +10,8 @@ impl windows_core::RuntimeName for INDClosedCaptionDataReceivedEventArgs { } #[cfg(feature = "deprecated")] impl INDClosedCaptionDataReceivedEventArgs_Vtbl { - pub const fn new() -> INDClosedCaptionDataReceivedEventArgs_Vtbl - where - Identity: INDClosedCaptionDataReceivedEventArgs_Impl, - { - unsafe extern "system" fn ClosedCaptionDataFormat(this: *mut core::ffi::c_void, result__: *mut NDClosedCaptionFormat) -> windows_core::HRESULT - where - Identity: INDClosedCaptionDataReceivedEventArgs_Impl, - { + pub const fn new() -> INDClosedCaptionDataReceivedEventArgs_Vtbl { + unsafe extern "system" fn ClosedCaptionDataFormat(this: *mut core::ffi::c_void, result__: *mut NDClosedCaptionFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDClosedCaptionDataReceivedEventArgs_Impl::ClosedCaptionDataFormat(this) { Ok(ok__) => { @@ -27,10 +21,7 @@ impl INDClosedCaptionDataReceivedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PresentationTimestamp(this: *mut core::ffi::c_void, result__: *mut i64) -> windows_core::HRESULT - where - Identity: INDClosedCaptionDataReceivedEventArgs_Impl, - { + unsafe extern "system" fn PresentationTimestamp(this: *mut core::ffi::c_void, result__: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDClosedCaptionDataReceivedEventArgs_Impl::PresentationTimestamp(this) { Ok(ok__) => { @@ -40,10 +31,7 @@ impl INDClosedCaptionDataReceivedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClosedCaptionData(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT - where - Identity: INDClosedCaptionDataReceivedEventArgs_Impl, - { + unsafe extern "system" fn ClosedCaptionData(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDClosedCaptionDataReceivedEventArgs_Impl::ClosedCaptionData(this) { Ok(ok__) => { @@ -67,7 +55,7 @@ impl INDClosedCaptionDataReceivedEventArgs_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDCustomData_Impl: Sized { +pub trait INDCustomData_Impl: Sized + windows_core::IUnknownImpl { fn CustomDataTypeID(&self) -> windows_core::Result>; fn CustomData(&self) -> windows_core::Result>; } @@ -77,14 +65,8 @@ impl windows_core::RuntimeName for INDCustomData { } #[cfg(feature = "deprecated")] impl INDCustomData_Vtbl { - pub const fn new() -> INDCustomData_Vtbl - where - Identity: INDCustomData_Impl, - { - unsafe extern "system" fn CustomDataTypeID(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT - where - Identity: INDCustomData_Impl, - { + pub const fn new() -> INDCustomData_Vtbl { + unsafe extern "system" fn CustomDataTypeID(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDCustomData_Impl::CustomDataTypeID(this) { Ok(ok__) => { @@ -96,10 +78,7 @@ impl INDCustomData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CustomData(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT - where - Identity: INDCustomData_Impl, - { + unsafe extern "system" fn CustomData(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDCustomData_Impl::CustomData(this) { Ok(ok__) => { @@ -122,7 +101,7 @@ impl INDCustomData_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDDownloadEngine_Impl: Sized { +pub trait INDDownloadEngine_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, uri: Option<&super::super::super::Foundation::Uri>, sessionidbytes: &[u8]) -> windows_core::Result<()>; fn Pause(&self) -> windows_core::Result<()>; fn Resume(&self) -> windows_core::Result<()>; @@ -139,49 +118,28 @@ impl windows_core::RuntimeName for INDDownloadEngine { } #[cfg(feature = "deprecated")] impl INDDownloadEngine_Vtbl { - pub const fn new() -> INDDownloadEngine_Vtbl - where - Identity: INDDownloadEngine_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, uri: *mut core::ffi::c_void, sessionIDBytes_array_size: u32, sessionidbytes: *const u8) -> windows_core::HRESULT - where - Identity: INDDownloadEngine_Impl, - { + pub const fn new() -> INDDownloadEngine_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, uri: *mut core::ffi::c_void, sessionIDBytes_array_size: u32, sessionidbytes: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngine_Impl::Open(this, windows_core::from_raw_borrowed(&uri), core::slice::from_raw_parts(core::mem::transmute_copy(&sessionidbytes), sessionIDBytes_array_size as usize)).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDDownloadEngine_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngine_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDDownloadEngine_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngine_Impl::Resume(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDDownloadEngine_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngine_Impl::Close(this).into() } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, startposition: super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: INDDownloadEngine_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, startposition: super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngine_Impl::Seek(this, core::mem::transmute(&startposition)).into() } - unsafe extern "system" fn CanSeek(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: INDDownloadEngine_Impl, - { + unsafe extern "system" fn CanSeek(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDDownloadEngine_Impl::CanSeek(this) { Ok(ok__) => { @@ -191,10 +149,7 @@ impl INDDownloadEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BufferFullMinThresholdInSamples(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: INDDownloadEngine_Impl, - { + unsafe extern "system" fn BufferFullMinThresholdInSamples(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDDownloadEngine_Impl::BufferFullMinThresholdInSamples(this) { Ok(ok__) => { @@ -204,10 +159,7 @@ impl INDDownloadEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BufferFullMaxThresholdInSamples(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: INDDownloadEngine_Impl, - { + unsafe extern "system" fn BufferFullMaxThresholdInSamples(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDDownloadEngine_Impl::BufferFullMaxThresholdInSamples(this) { Ok(ok__) => { @@ -217,10 +169,7 @@ impl INDDownloadEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Notifier(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDDownloadEngine_Impl, - { + unsafe extern "system" fn Notifier(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDDownloadEngine_Impl::Notifier(this) { Ok(ok__) => { @@ -249,7 +198,7 @@ impl INDDownloadEngine_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDDownloadEngineNotifier_Impl: Sized { +pub trait INDDownloadEngineNotifier_Impl: Sized + windows_core::IUnknownImpl { fn OnStreamOpened(&self) -> windows_core::Result<()>; fn OnPlayReadyObjectReceived(&self, databytes: &[u8]) -> windows_core::Result<()>; fn OnContentIDReceived(&self, licensefetchdescriptor: Option<&INDLicenseFetchDescriptor>) -> windows_core::Result<()>; @@ -263,49 +212,28 @@ impl windows_core::RuntimeName for INDDownloadEngineNotifier { } #[cfg(feature = "deprecated")] impl INDDownloadEngineNotifier_Vtbl { - pub const fn new() -> INDDownloadEngineNotifier_Vtbl - where - Identity: INDDownloadEngineNotifier_Impl, - { - unsafe extern "system" fn OnStreamOpened(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDDownloadEngineNotifier_Impl, - { + pub const fn new() -> INDDownloadEngineNotifier_Vtbl { + unsafe extern "system" fn OnStreamOpened(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngineNotifier_Impl::OnStreamOpened(this).into() } - unsafe extern "system" fn OnPlayReadyObjectReceived(this: *mut core::ffi::c_void, dataBytes_array_size: u32, databytes: *const u8) -> windows_core::HRESULT - where - Identity: INDDownloadEngineNotifier_Impl, - { + unsafe extern "system" fn OnPlayReadyObjectReceived(this: *mut core::ffi::c_void, dataBytes_array_size: u32, databytes: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngineNotifier_Impl::OnPlayReadyObjectReceived(this, core::slice::from_raw_parts(core::mem::transmute_copy(&databytes), dataBytes_array_size as usize)).into() } - unsafe extern "system" fn OnContentIDReceived(this: *mut core::ffi::c_void, licensefetchdescriptor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDDownloadEngineNotifier_Impl, - { + unsafe extern "system" fn OnContentIDReceived(this: *mut core::ffi::c_void, licensefetchdescriptor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngineNotifier_Impl::OnContentIDReceived(this, windows_core::from_raw_borrowed(&licensefetchdescriptor)).into() } - unsafe extern "system" fn OnDataReceived(this: *mut core::ffi::c_void, dataBytes_array_size: u32, databytes: *const u8, bytesreceived: u32) -> windows_core::HRESULT - where - Identity: INDDownloadEngineNotifier_Impl, - { + unsafe extern "system" fn OnDataReceived(this: *mut core::ffi::c_void, dataBytes_array_size: u32, databytes: *const u8, bytesreceived: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngineNotifier_Impl::OnDataReceived(this, core::slice::from_raw_parts(core::mem::transmute_copy(&databytes), dataBytes_array_size as usize), bytesreceived).into() } - unsafe extern "system" fn OnEndOfStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDDownloadEngineNotifier_Impl, - { + unsafe extern "system" fn OnEndOfStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngineNotifier_Impl::OnEndOfStream(this).into() } - unsafe extern "system" fn OnNetworkError(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDDownloadEngineNotifier_Impl, - { + unsafe extern "system" fn OnNetworkError(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDDownloadEngineNotifier_Impl::OnNetworkError(this).into() } @@ -324,7 +252,7 @@ impl INDDownloadEngineNotifier_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDLicenseFetchCompletedEventArgs_Impl: Sized { +pub trait INDLicenseFetchCompletedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn ResponseCustomData(&self) -> windows_core::Result; } #[cfg(feature = "deprecated")] @@ -333,14 +261,8 @@ impl windows_core::RuntimeName for INDLicenseFetchCompletedEventArgs { } #[cfg(feature = "deprecated")] impl INDLicenseFetchCompletedEventArgs_Vtbl { - pub const fn new() -> INDLicenseFetchCompletedEventArgs_Vtbl - where - Identity: INDLicenseFetchCompletedEventArgs_Impl, - { - unsafe extern "system" fn ResponseCustomData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDLicenseFetchCompletedEventArgs_Impl, - { + pub const fn new() -> INDLicenseFetchCompletedEventArgs_Vtbl { + unsafe extern "system" fn ResponseCustomData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDLicenseFetchCompletedEventArgs_Impl::ResponseCustomData(this) { Ok(ok__) => { @@ -361,7 +283,7 @@ impl INDLicenseFetchCompletedEventArgs_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDLicenseFetchDescriptor_Impl: Sized { +pub trait INDLicenseFetchDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn ContentIDType(&self) -> windows_core::Result; fn ContentID(&self) -> windows_core::Result>; fn LicenseFetchChallengeCustomData(&self) -> windows_core::Result; @@ -373,14 +295,8 @@ impl windows_core::RuntimeName for INDLicenseFetchDescriptor { } #[cfg(feature = "deprecated")] impl INDLicenseFetchDescriptor_Vtbl { - pub const fn new() -> INDLicenseFetchDescriptor_Vtbl - where - Identity: INDLicenseFetchDescriptor_Impl, - { - unsafe extern "system" fn ContentIDType(this: *mut core::ffi::c_void, result__: *mut NDContentIDType) -> windows_core::HRESULT - where - Identity: INDLicenseFetchDescriptor_Impl, - { + pub const fn new() -> INDLicenseFetchDescriptor_Vtbl { + unsafe extern "system" fn ContentIDType(this: *mut core::ffi::c_void, result__: *mut NDContentIDType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDLicenseFetchDescriptor_Impl::ContentIDType(this) { Ok(ok__) => { @@ -390,10 +306,7 @@ impl INDLicenseFetchDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContentID(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT - where - Identity: INDLicenseFetchDescriptor_Impl, - { + unsafe extern "system" fn ContentID(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDLicenseFetchDescriptor_Impl::ContentID(this) { Ok(ok__) => { @@ -405,10 +318,7 @@ impl INDLicenseFetchDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LicenseFetchChallengeCustomData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDLicenseFetchDescriptor_Impl, - { + unsafe extern "system" fn LicenseFetchChallengeCustomData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDLicenseFetchDescriptor_Impl::LicenseFetchChallengeCustomData(this) { Ok(ok__) => { @@ -419,10 +329,7 @@ impl INDLicenseFetchDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLicenseFetchChallengeCustomData(this: *mut core::ffi::c_void, licensefetchchallengecustomdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDLicenseFetchDescriptor_Impl, - { + unsafe extern "system" fn SetLicenseFetchChallengeCustomData(this: *mut core::ffi::c_void, licensefetchchallengecustomdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDLicenseFetchDescriptor_Impl::SetLicenseFetchChallengeCustomData(this, windows_core::from_raw_borrowed(&licensefetchchallengecustomdata)).into() } @@ -439,7 +346,7 @@ impl INDLicenseFetchDescriptor_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDLicenseFetchResult_Impl: Sized { +pub trait INDLicenseFetchResult_Impl: Sized + windows_core::IUnknownImpl { fn ResponseCustomData(&self) -> windows_core::Result; } #[cfg(feature = "deprecated")] @@ -448,14 +355,8 @@ impl windows_core::RuntimeName for INDLicenseFetchResult { } #[cfg(feature = "deprecated")] impl INDLicenseFetchResult_Vtbl { - pub const fn new() -> INDLicenseFetchResult_Vtbl - where - Identity: INDLicenseFetchResult_Impl, - { - unsafe extern "system" fn ResponseCustomData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDLicenseFetchResult_Impl, - { + pub const fn new() -> INDLicenseFetchResult_Vtbl { + unsafe extern "system" fn ResponseCustomData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDLicenseFetchResult_Impl::ResponseCustomData(this) { Ok(ok__) => { @@ -476,7 +377,7 @@ impl INDLicenseFetchResult_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDMessenger_Impl: Sized { +pub trait INDMessenger_Impl: Sized + windows_core::IUnknownImpl { fn SendRegistrationRequestAsync(&self, sessionidbytes: &[u8], challengedatabytes: &[u8]) -> windows_core::Result>; fn SendProximityDetectionStartAsync(&self, pdtype: NDProximityDetectionType, transmitterchannelbytes: &[u8], sessionidbytes: &[u8], challengedatabytes: &[u8]) -> windows_core::Result>; fn SendProximityDetectionResponseAsync(&self, pdtype: NDProximityDetectionType, transmitterchannelbytes: &[u8], sessionidbytes: &[u8], responsedatabytes: &[u8]) -> windows_core::Result>; @@ -488,14 +389,8 @@ impl windows_core::RuntimeName for INDMessenger { } #[cfg(feature = "deprecated")] impl INDMessenger_Vtbl { - pub const fn new() -> INDMessenger_Vtbl - where - Identity: INDMessenger_Impl, - { - unsafe extern "system" fn SendRegistrationRequestAsync(this: *mut core::ffi::c_void, sessionIDBytes_array_size: u32, sessionidbytes: *const u8, challengeDataBytes_array_size: u32, challengedatabytes: *const u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDMessenger_Impl, - { + pub const fn new() -> INDMessenger_Vtbl { + unsafe extern "system" fn SendRegistrationRequestAsync(this: *mut core::ffi::c_void, sessionIDBytes_array_size: u32, sessionidbytes: *const u8, challengeDataBytes_array_size: u32, challengedatabytes: *const u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDMessenger_Impl::SendRegistrationRequestAsync(this, core::slice::from_raw_parts(core::mem::transmute_copy(&sessionidbytes), sessionIDBytes_array_size as usize), core::slice::from_raw_parts(core::mem::transmute_copy(&challengedatabytes), challengeDataBytes_array_size as usize)) { Ok(ok__) => { @@ -506,10 +401,7 @@ impl INDMessenger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendProximityDetectionStartAsync(this: *mut core::ffi::c_void, pdtype: NDProximityDetectionType, transmitterChannelBytes_array_size: u32, transmitterchannelbytes: *const u8, sessionIDBytes_array_size: u32, sessionidbytes: *const u8, challengeDataBytes_array_size: u32, challengedatabytes: *const u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDMessenger_Impl, - { + unsafe extern "system" fn SendProximityDetectionStartAsync(this: *mut core::ffi::c_void, pdtype: NDProximityDetectionType, transmitterChannelBytes_array_size: u32, transmitterchannelbytes: *const u8, sessionIDBytes_array_size: u32, sessionidbytes: *const u8, challengeDataBytes_array_size: u32, challengedatabytes: *const u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDMessenger_Impl::SendProximityDetectionStartAsync(this, pdtype, core::slice::from_raw_parts(core::mem::transmute_copy(&transmitterchannelbytes), transmitterChannelBytes_array_size as usize), core::slice::from_raw_parts(core::mem::transmute_copy(&sessionidbytes), sessionIDBytes_array_size as usize), core::slice::from_raw_parts(core::mem::transmute_copy(&challengedatabytes), challengeDataBytes_array_size as usize)) { Ok(ok__) => { @@ -520,10 +412,7 @@ impl INDMessenger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendProximityDetectionResponseAsync(this: *mut core::ffi::c_void, pdtype: NDProximityDetectionType, transmitterChannelBytes_array_size: u32, transmitterchannelbytes: *const u8, sessionIDBytes_array_size: u32, sessionidbytes: *const u8, responseDataBytes_array_size: u32, responsedatabytes: *const u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDMessenger_Impl, - { + unsafe extern "system" fn SendProximityDetectionResponseAsync(this: *mut core::ffi::c_void, pdtype: NDProximityDetectionType, transmitterChannelBytes_array_size: u32, transmitterchannelbytes: *const u8, sessionIDBytes_array_size: u32, sessionidbytes: *const u8, responseDataBytes_array_size: u32, responsedatabytes: *const u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDMessenger_Impl::SendProximityDetectionResponseAsync(this, pdtype, core::slice::from_raw_parts(core::mem::transmute_copy(&transmitterchannelbytes), transmitterChannelBytes_array_size as usize), core::slice::from_raw_parts(core::mem::transmute_copy(&sessionidbytes), sessionIDBytes_array_size as usize), core::slice::from_raw_parts(core::mem::transmute_copy(&responsedatabytes), responseDataBytes_array_size as usize)) { Ok(ok__) => { @@ -534,10 +423,7 @@ impl INDMessenger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendLicenseFetchRequestAsync(this: *mut core::ffi::c_void, sessionIDBytes_array_size: u32, sessionidbytes: *const u8, challengeDataBytes_array_size: u32, challengedatabytes: *const u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDMessenger_Impl, - { + unsafe extern "system" fn SendLicenseFetchRequestAsync(this: *mut core::ffi::c_void, sessionIDBytes_array_size: u32, sessionidbytes: *const u8, challengeDataBytes_array_size: u32, challengedatabytes: *const u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDMessenger_Impl::SendLicenseFetchRequestAsync(this, core::slice::from_raw_parts(core::mem::transmute_copy(&sessionidbytes), sessionIDBytes_array_size as usize), core::slice::from_raw_parts(core::mem::transmute_copy(&challengedatabytes), challengeDataBytes_array_size as usize)) { Ok(ok__) => { @@ -561,7 +447,7 @@ impl INDMessenger_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDProximityDetectionCompletedEventArgs_Impl: Sized { +pub trait INDProximityDetectionCompletedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn ProximityDetectionRetryCount(&self) -> windows_core::Result; } #[cfg(feature = "deprecated")] @@ -570,14 +456,8 @@ impl windows_core::RuntimeName for INDProximityDetectionCompletedEventArgs { } #[cfg(feature = "deprecated")] impl INDProximityDetectionCompletedEventArgs_Vtbl { - pub const fn new() -> INDProximityDetectionCompletedEventArgs_Vtbl - where - Identity: INDProximityDetectionCompletedEventArgs_Impl, - { - unsafe extern "system" fn ProximityDetectionRetryCount(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: INDProximityDetectionCompletedEventArgs_Impl, - { + pub const fn new() -> INDProximityDetectionCompletedEventArgs_Vtbl { + unsafe extern "system" fn ProximityDetectionRetryCount(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDProximityDetectionCompletedEventArgs_Impl::ProximityDetectionRetryCount(this) { Ok(ok__) => { @@ -597,7 +477,7 @@ impl INDProximityDetectionCompletedEventArgs_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDRegistrationCompletedEventArgs_Impl: Sized { +pub trait INDRegistrationCompletedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn ResponseCustomData(&self) -> windows_core::Result; fn TransmitterProperties(&self) -> windows_core::Result; fn TransmitterCertificateAccepted(&self) -> windows_core::Result; @@ -609,14 +489,8 @@ impl windows_core::RuntimeName for INDRegistrationCompletedEventArgs { } #[cfg(feature = "deprecated")] impl INDRegistrationCompletedEventArgs_Vtbl { - pub const fn new() -> INDRegistrationCompletedEventArgs_Vtbl - where - Identity: INDRegistrationCompletedEventArgs_Impl, - { - unsafe extern "system" fn ResponseCustomData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDRegistrationCompletedEventArgs_Impl, - { + pub const fn new() -> INDRegistrationCompletedEventArgs_Vtbl { + unsafe extern "system" fn ResponseCustomData(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDRegistrationCompletedEventArgs_Impl::ResponseCustomData(this) { Ok(ok__) => { @@ -627,10 +501,7 @@ impl INDRegistrationCompletedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmitterProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDRegistrationCompletedEventArgs_Impl, - { + unsafe extern "system" fn TransmitterProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDRegistrationCompletedEventArgs_Impl::TransmitterProperties(this) { Ok(ok__) => { @@ -641,10 +512,7 @@ impl INDRegistrationCompletedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmitterCertificateAccepted(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: INDRegistrationCompletedEventArgs_Impl, - { + unsafe extern "system" fn TransmitterCertificateAccepted(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDRegistrationCompletedEventArgs_Impl::TransmitterCertificateAccepted(this) { Ok(ok__) => { @@ -654,10 +522,7 @@ impl INDRegistrationCompletedEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransmitterCertificateAccepted(this: *mut core::ffi::c_void, accept: bool) -> windows_core::HRESULT - where - Identity: INDRegistrationCompletedEventArgs_Impl, - { + unsafe extern "system" fn SetTransmitterCertificateAccepted(this: *mut core::ffi::c_void, accept: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDRegistrationCompletedEventArgs_Impl::SetTransmitterCertificateAccepted(this, accept).into() } @@ -674,7 +539,7 @@ impl INDRegistrationCompletedEventArgs_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDSendResult_Impl: Sized { +pub trait INDSendResult_Impl: Sized + windows_core::IUnknownImpl { fn Response(&self) -> windows_core::Result>; } #[cfg(feature = "deprecated")] @@ -683,14 +548,8 @@ impl windows_core::RuntimeName for INDSendResult { } #[cfg(feature = "deprecated")] impl INDSendResult_Vtbl { - pub const fn new() -> INDSendResult_Vtbl - where - Identity: INDSendResult_Impl, - { - unsafe extern "system" fn Response(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT - where - Identity: INDSendResult_Impl, - { + pub const fn new() -> INDSendResult_Vtbl { + unsafe extern "system" fn Response(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDSendResult_Impl::Response(this) { Ok(ok__) => { @@ -709,7 +568,7 @@ impl INDSendResult_Vtbl { } } #[cfg(all(feature = "Media_Core", feature = "deprecated"))] -pub trait INDStartResult_Impl: Sized { +pub trait INDStartResult_Impl: Sized + windows_core::IUnknownImpl { fn MediaStreamSource(&self) -> windows_core::Result; } #[cfg(all(feature = "Media_Core", feature = "deprecated"))] @@ -718,14 +577,8 @@ impl windows_core::RuntimeName for INDStartResult { } #[cfg(all(feature = "Media_Core", feature = "deprecated"))] impl INDStartResult_Vtbl { - pub const fn new() -> INDStartResult_Vtbl - where - Identity: INDStartResult_Impl, - { - unsafe extern "system" fn MediaStreamSource(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDStartResult_Impl, - { + pub const fn new() -> INDStartResult_Vtbl { + unsafe extern "system" fn MediaStreamSource(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDStartResult_Impl::MediaStreamSource(this) { Ok(ok__) => { @@ -743,7 +596,7 @@ impl INDStartResult_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] -pub trait INDStorageFileHelper_Impl: Sized { +pub trait INDStorageFileHelper_Impl: Sized + windows_core::IUnknownImpl { fn GetFileURLs(&self, file: Option<&super::super::super::Storage::IStorageFile>) -> windows_core::Result>; } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] @@ -752,14 +605,8 @@ impl windows_core::RuntimeName for INDStorageFileHelper { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] impl INDStorageFileHelper_Vtbl { - pub const fn new() -> INDStorageFileHelper_Vtbl - where - Identity: INDStorageFileHelper_Impl, - { - unsafe extern "system" fn GetFileURLs(this: *mut core::ffi::c_void, file: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDStorageFileHelper_Impl, - { + pub const fn new() -> INDStorageFileHelper_Vtbl { + unsafe extern "system" fn GetFileURLs(this: *mut core::ffi::c_void, file: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDStorageFileHelper_Impl::GetFileURLs(this, windows_core::from_raw_borrowed(&file)) { Ok(ok__) => { @@ -777,7 +624,7 @@ impl INDStorageFileHelper_Vtbl { } } #[cfg(all(feature = "Media_Core", feature = "deprecated"))] -pub trait INDStreamParser_Impl: Sized { +pub trait INDStreamParser_Impl: Sized + windows_core::IUnknownImpl { fn ParseData(&self, databytes: &[u8]) -> windows_core::Result<()>; fn GetStreamInformation(&self, descriptor: Option<&super::super::Core::IMediaStreamDescriptor>, streamtype: &mut NDMediaStreamType) -> windows_core::Result; fn BeginOfStream(&self) -> windows_core::Result<()>; @@ -790,21 +637,12 @@ impl windows_core::RuntimeName for INDStreamParser { } #[cfg(all(feature = "Media_Core", feature = "deprecated"))] impl INDStreamParser_Vtbl { - pub const fn new() -> INDStreamParser_Vtbl - where - Identity: INDStreamParser_Impl, - { - unsafe extern "system" fn ParseData(this: *mut core::ffi::c_void, dataBytes_array_size: u32, databytes: *const u8) -> windows_core::HRESULT - where - Identity: INDStreamParser_Impl, - { + pub const fn new() -> INDStreamParser_Vtbl { + unsafe extern "system" fn ParseData(this: *mut core::ffi::c_void, dataBytes_array_size: u32, databytes: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDStreamParser_Impl::ParseData(this, core::slice::from_raw_parts(core::mem::transmute_copy(&databytes), dataBytes_array_size as usize)).into() } - unsafe extern "system" fn GetStreamInformation(this: *mut core::ffi::c_void, descriptor: *mut core::ffi::c_void, streamtype: *mut NDMediaStreamType, result__: *mut u32) -> windows_core::HRESULT - where - Identity: INDStreamParser_Impl, - { + unsafe extern "system" fn GetStreamInformation(this: *mut core::ffi::c_void, descriptor: *mut core::ffi::c_void, streamtype: *mut NDMediaStreamType, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDStreamParser_Impl::GetStreamInformation(this, windows_core::from_raw_borrowed(&descriptor), core::mem::transmute_copy(&streamtype)) { Ok(ok__) => { @@ -814,24 +652,15 @@ impl INDStreamParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginOfStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDStreamParser_Impl, - { + unsafe extern "system" fn BeginOfStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDStreamParser_Impl::BeginOfStream(this).into() } - unsafe extern "system" fn EndOfStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDStreamParser_Impl, - { + unsafe extern "system" fn EndOfStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDStreamParser_Impl::EndOfStream(this).into() } - unsafe extern "system" fn Notifier(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDStreamParser_Impl, - { + unsafe extern "system" fn Notifier(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDStreamParser_Impl::Notifier(this) { Ok(ok__) => { @@ -856,7 +685,7 @@ impl INDStreamParser_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core", feature = "deprecated"))] -pub trait INDStreamParserNotifier_Impl: Sized { +pub trait INDStreamParserNotifier_Impl: Sized + windows_core::IUnknownImpl { fn OnContentIDReceived(&self, licensefetchdescriptor: Option<&INDLicenseFetchDescriptor>) -> windows_core::Result<()>; fn OnMediaStreamDescriptorCreated(&self, audiostreamdescriptors: Option<&super::super::super::Foundation::Collections::IVector>, videostreamdescriptors: Option<&super::super::super::Foundation::Collections::IVector>) -> windows_core::Result<()>; fn OnSampleParsed(&self, streamid: u32, streamtype: NDMediaStreamType, streamsample: Option<&super::super::Core::MediaStreamSample>, pts: i64, ccformat: NDClosedCaptionFormat, ccdatabytes: &[u8]) -> windows_core::Result<()>; @@ -868,35 +697,20 @@ impl windows_core::RuntimeName for INDStreamParserNotifier { } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core", feature = "deprecated"))] impl INDStreamParserNotifier_Vtbl { - pub const fn new() -> INDStreamParserNotifier_Vtbl - where - Identity: INDStreamParserNotifier_Impl, - { - unsafe extern "system" fn OnContentIDReceived(this: *mut core::ffi::c_void, licensefetchdescriptor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDStreamParserNotifier_Impl, - { + pub const fn new() -> INDStreamParserNotifier_Vtbl { + unsafe extern "system" fn OnContentIDReceived(this: *mut core::ffi::c_void, licensefetchdescriptor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDStreamParserNotifier_Impl::OnContentIDReceived(this, windows_core::from_raw_borrowed(&licensefetchdescriptor)).into() } - unsafe extern "system" fn OnMediaStreamDescriptorCreated(this: *mut core::ffi::c_void, audiostreamdescriptors: *mut core::ffi::c_void, videostreamdescriptors: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDStreamParserNotifier_Impl, - { + unsafe extern "system" fn OnMediaStreamDescriptorCreated(this: *mut core::ffi::c_void, audiostreamdescriptors: *mut core::ffi::c_void, videostreamdescriptors: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDStreamParserNotifier_Impl::OnMediaStreamDescriptorCreated(this, windows_core::from_raw_borrowed(&audiostreamdescriptors), windows_core::from_raw_borrowed(&videostreamdescriptors)).into() } - unsafe extern "system" fn OnSampleParsed(this: *mut core::ffi::c_void, streamid: u32, streamtype: NDMediaStreamType, streamsample: *mut core::ffi::c_void, pts: i64, ccformat: NDClosedCaptionFormat, ccDataBytes_array_size: u32, ccdatabytes: *const u8) -> windows_core::HRESULT - where - Identity: INDStreamParserNotifier_Impl, - { + unsafe extern "system" fn OnSampleParsed(this: *mut core::ffi::c_void, streamid: u32, streamtype: NDMediaStreamType, streamsample: *mut core::ffi::c_void, pts: i64, ccformat: NDClosedCaptionFormat, ccDataBytes_array_size: u32, ccdatabytes: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDStreamParserNotifier_Impl::OnSampleParsed(this, streamid, streamtype, windows_core::from_raw_borrowed(&streamsample), pts, ccformat, core::slice::from_raw_parts(core::mem::transmute_copy(&ccdatabytes), ccDataBytes_array_size as usize)).into() } - unsafe extern "system" fn OnBeginSetupDecryptor(this: *mut core::ffi::c_void, descriptor: *mut core::ffi::c_void, keyid: windows_core::GUID, proBytes_array_size: u32, probytes: *const u8) -> windows_core::HRESULT - where - Identity: INDStreamParserNotifier_Impl, - { + unsafe extern "system" fn OnBeginSetupDecryptor(this: *mut core::ffi::c_void, descriptor: *mut core::ffi::c_void, keyid: windows_core::GUID, proBytes_array_size: u32, probytes: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDStreamParserNotifier_Impl::OnBeginSetupDecryptor(this, windows_core::from_raw_borrowed(&descriptor), core::mem::transmute(&keyid), core::slice::from_raw_parts(core::mem::transmute_copy(&probytes), proBytes_array_size as usize)).into() } @@ -913,7 +727,7 @@ impl INDStreamParserNotifier_Vtbl { } } #[cfg(feature = "deprecated")] -pub trait INDTransmitterProperties_Impl: Sized { +pub trait INDTransmitterProperties_Impl: Sized + windows_core::IUnknownImpl { fn CertificateType(&self) -> windows_core::Result; fn PlatformIdentifier(&self) -> windows_core::Result; fn SupportedFeatures(&self) -> windows_core::Result>; @@ -932,14 +746,8 @@ impl windows_core::RuntimeName for INDTransmitterProperties { } #[cfg(feature = "deprecated")] impl INDTransmitterProperties_Vtbl { - pub const fn new() -> INDTransmitterProperties_Vtbl - where - Identity: INDTransmitterProperties_Impl, - { - unsafe extern "system" fn CertificateType(this: *mut core::ffi::c_void, result__: *mut NDCertificateType) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + pub const fn new() -> INDTransmitterProperties_Vtbl { + unsafe extern "system" fn CertificateType(this: *mut core::ffi::c_void, result__: *mut NDCertificateType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::CertificateType(this) { Ok(ok__) => { @@ -949,10 +757,7 @@ impl INDTransmitterProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlatformIdentifier(this: *mut core::ffi::c_void, result__: *mut NDCertificatePlatformID) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + unsafe extern "system" fn PlatformIdentifier(this: *mut core::ffi::c_void, result__: *mut NDCertificatePlatformID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::PlatformIdentifier(this) { Ok(ok__) => { @@ -962,10 +767,7 @@ impl INDTransmitterProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedFeatures(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut NDCertificateFeature) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + unsafe extern "system" fn SupportedFeatures(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut NDCertificateFeature) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::SupportedFeatures(this) { Ok(ok__) => { @@ -977,10 +779,7 @@ impl INDTransmitterProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SecurityLevel(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + unsafe extern "system" fn SecurityLevel(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::SecurityLevel(this) { Ok(ok__) => { @@ -990,10 +789,7 @@ impl INDTransmitterProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SecurityVersion(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + unsafe extern "system" fn SecurityVersion(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::SecurityVersion(this) { Ok(ok__) => { @@ -1003,10 +799,7 @@ impl INDTransmitterProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpirationDate(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + unsafe extern "system" fn ExpirationDate(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::ExpirationDate(this) { Ok(ok__) => { @@ -1016,10 +809,7 @@ impl INDTransmitterProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClientID(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + unsafe extern "system" fn ClientID(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::ClientID(this) { Ok(ok__) => { @@ -1031,10 +821,7 @@ impl INDTransmitterProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModelDigest(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + unsafe extern "system" fn ModelDigest(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::ModelDigest(this) { Ok(ok__) => { @@ -1046,10 +833,7 @@ impl INDTransmitterProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModelManufacturerName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + unsafe extern "system" fn ModelManufacturerName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::ModelManufacturerName(this) { Ok(ok__) => { @@ -1060,10 +844,7 @@ impl INDTransmitterProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModelName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + unsafe extern "system" fn ModelName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::ModelName(this) { Ok(ok__) => { @@ -1074,10 +855,7 @@ impl INDTransmitterProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModelNumber(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INDTransmitterProperties_Impl, - { + unsafe extern "system" fn ModelNumber(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDTransmitterProperties_Impl::ModelNumber(this) { Ok(ok__) => { @@ -1107,7 +885,7 @@ impl INDTransmitterProperties_Vtbl { iid == &::IID } } -pub trait IPlayReadyDomain_Impl: Sized { +pub trait IPlayReadyDomain_Impl: Sized + windows_core::IUnknownImpl { fn AccountId(&self) -> windows_core::Result; fn ServiceId(&self) -> windows_core::Result; fn Revision(&self) -> windows_core::Result; @@ -1118,14 +896,8 @@ impl windows_core::RuntimeName for IPlayReadyDomain { const NAME: &'static str = "Windows.Media.Protection.PlayReady.IPlayReadyDomain"; } impl IPlayReadyDomain_Vtbl { - pub const fn new() -> IPlayReadyDomain_Vtbl - where - Identity: IPlayReadyDomain_Impl, - { - unsafe extern "system" fn AccountId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPlayReadyDomain_Impl, - { + pub const fn new() -> IPlayReadyDomain_Vtbl { + unsafe extern "system" fn AccountId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyDomain_Impl::AccountId(this) { Ok(ok__) => { @@ -1135,10 +907,7 @@ impl IPlayReadyDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPlayReadyDomain_Impl, - { + unsafe extern "system" fn ServiceId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyDomain_Impl::ServiceId(this) { Ok(ok__) => { @@ -1148,10 +917,7 @@ impl IPlayReadyDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Revision(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IPlayReadyDomain_Impl, - { + unsafe extern "system" fn Revision(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyDomain_Impl::Revision(this) { Ok(ok__) => { @@ -1161,10 +927,7 @@ impl IPlayReadyDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPlayReadyDomain_Impl, - { + unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyDomain_Impl::FriendlyName(this) { Ok(ok__) => { @@ -1175,10 +938,7 @@ impl IPlayReadyDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DomainJoinUrl(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyDomain_Impl, - { + unsafe extern "system" fn DomainJoinUrl(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyDomain_Impl::DomainJoinUrl(this) { Ok(ok__) => { @@ -1202,7 +962,7 @@ impl IPlayReadyDomain_Vtbl { iid == &::IID } } -pub trait IPlayReadyLicense_Impl: Sized { +pub trait IPlayReadyLicense_Impl: Sized + windows_core::IUnknownImpl { fn FullyEvaluated(&self) -> windows_core::Result; fn UsableForPlay(&self) -> windows_core::Result; fn ExpirationDate(&self) -> windows_core::Result>; @@ -1215,14 +975,8 @@ impl windows_core::RuntimeName for IPlayReadyLicense { const NAME: &'static str = "Windows.Media.Protection.PlayReady.IPlayReadyLicense"; } impl IPlayReadyLicense_Vtbl { - pub const fn new() -> IPlayReadyLicense_Vtbl - where - Identity: IPlayReadyLicense_Impl, - { - unsafe extern "system" fn FullyEvaluated(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IPlayReadyLicense_Impl, - { + pub const fn new() -> IPlayReadyLicense_Vtbl { + unsafe extern "system" fn FullyEvaluated(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicense_Impl::FullyEvaluated(this) { Ok(ok__) => { @@ -1232,10 +986,7 @@ impl IPlayReadyLicense_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UsableForPlay(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IPlayReadyLicense_Impl, - { + unsafe extern "system" fn UsableForPlay(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicense_Impl::UsableForPlay(this) { Ok(ok__) => { @@ -1245,10 +996,7 @@ impl IPlayReadyLicense_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpirationDate(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyLicense_Impl, - { + unsafe extern "system" fn ExpirationDate(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicense_Impl::ExpirationDate(this) { Ok(ok__) => { @@ -1259,10 +1007,7 @@ impl IPlayReadyLicense_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpireAfterFirstPlay(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IPlayReadyLicense_Impl, - { + unsafe extern "system" fn ExpireAfterFirstPlay(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicense_Impl::ExpireAfterFirstPlay(this) { Ok(ok__) => { @@ -1272,10 +1017,7 @@ impl IPlayReadyLicense_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DomainAccountID(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPlayReadyLicense_Impl, - { + unsafe extern "system" fn DomainAccountID(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicense_Impl::DomainAccountID(this) { Ok(ok__) => { @@ -1285,10 +1027,7 @@ impl IPlayReadyLicense_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChainDepth(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IPlayReadyLicense_Impl, - { + unsafe extern "system" fn ChainDepth(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicense_Impl::ChainDepth(this) { Ok(ok__) => { @@ -1298,10 +1037,7 @@ impl IPlayReadyLicense_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKIDAtChainDepth(this: *mut core::ffi::c_void, chaindepth: u32, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPlayReadyLicense_Impl, - { + unsafe extern "system" fn GetKIDAtChainDepth(this: *mut core::ffi::c_void, chaindepth: u32, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicense_Impl::GetKIDAtChainDepth(this, chaindepth) { Ok(ok__) => { @@ -1326,7 +1062,7 @@ impl IPlayReadyLicense_Vtbl { iid == &::IID } } -pub trait IPlayReadyLicenseAcquisitionServiceRequest_Impl: Sized + super::IMediaProtectionServiceRequest_Impl + IPlayReadyServiceRequest_Impl { +pub trait IPlayReadyLicenseAcquisitionServiceRequest_Impl: Sized + windows_core::IUnknownImpl + super::IMediaProtectionServiceRequest_Impl + IPlayReadyServiceRequest_Impl { fn ContentHeader(&self) -> windows_core::Result; fn SetContentHeader(&self, value: Option<&PlayReadyContentHeader>) -> windows_core::Result<()>; fn DomainServiceId(&self) -> windows_core::Result; @@ -1336,14 +1072,8 @@ impl windows_core::RuntimeName for IPlayReadyLicenseAcquisitionServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.IPlayReadyLicenseAcquisitionServiceRequest"; } impl IPlayReadyLicenseAcquisitionServiceRequest_Vtbl { - pub const fn new() -> IPlayReadyLicenseAcquisitionServiceRequest_Vtbl - where - Identity: IPlayReadyLicenseAcquisitionServiceRequest_Impl, - { - unsafe extern "system" fn ContentHeader(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyLicenseAcquisitionServiceRequest_Impl, - { + pub const fn new() -> IPlayReadyLicenseAcquisitionServiceRequest_Vtbl { + unsafe extern "system" fn ContentHeader(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicenseAcquisitionServiceRequest_Impl::ContentHeader(this) { Ok(ok__) => { @@ -1354,17 +1084,11 @@ impl IPlayReadyLicenseAcquisitionServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContentHeader(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyLicenseAcquisitionServiceRequest_Impl, - { + unsafe extern "system" fn SetContentHeader(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlayReadyLicenseAcquisitionServiceRequest_Impl::SetContentHeader(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn DomainServiceId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPlayReadyLicenseAcquisitionServiceRequest_Impl, - { + unsafe extern "system" fn DomainServiceId(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicenseAcquisitionServiceRequest_Impl::DomainServiceId(this) { Ok(ok__) => { @@ -1374,10 +1098,7 @@ impl IPlayReadyLicenseAcquisitionServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDomainServiceId(this: *mut core::ffi::c_void, value: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPlayReadyLicenseAcquisitionServiceRequest_Impl, - { + unsafe extern "system" fn SetDomainServiceId(this: *mut core::ffi::c_void, value: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlayReadyLicenseAcquisitionServiceRequest_Impl::SetDomainServiceId(this, core::mem::transmute(&value)).into() } @@ -1393,7 +1114,7 @@ impl IPlayReadyLicenseAcquisitionServiceRequest_Vtbl { iid == &::IID } } -pub trait IPlayReadyLicenseSession_Impl: Sized { +pub trait IPlayReadyLicenseSession_Impl: Sized + windows_core::IUnknownImpl { fn CreateLAServiceRequest(&self) -> windows_core::Result; fn ConfigureMediaProtectionManager(&self, mpm: Option<&super::MediaProtectionManager>) -> windows_core::Result<()>; } @@ -1401,14 +1122,8 @@ impl windows_core::RuntimeName for IPlayReadyLicenseSession { const NAME: &'static str = "Windows.Media.Protection.PlayReady.IPlayReadyLicenseSession"; } impl IPlayReadyLicenseSession_Vtbl { - pub const fn new() -> IPlayReadyLicenseSession_Vtbl - where - Identity: IPlayReadyLicenseSession_Impl, - { - unsafe extern "system" fn CreateLAServiceRequest(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyLicenseSession_Impl, - { + pub const fn new() -> IPlayReadyLicenseSession_Vtbl { + unsafe extern "system" fn CreateLAServiceRequest(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicenseSession_Impl::CreateLAServiceRequest(this) { Ok(ok__) => { @@ -1419,10 +1134,7 @@ impl IPlayReadyLicenseSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConfigureMediaProtectionManager(this: *mut core::ffi::c_void, mpm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyLicenseSession_Impl, - { + unsafe extern "system" fn ConfigureMediaProtectionManager(this: *mut core::ffi::c_void, mpm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlayReadyLicenseSession_Impl::ConfigureMediaProtectionManager(this, windows_core::from_raw_borrowed(&mpm)).into() } @@ -1437,7 +1149,7 @@ impl IPlayReadyLicenseSession_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IPlayReadyLicenseSession2_Impl: Sized + IPlayReadyLicenseSession_Impl { +pub trait IPlayReadyLicenseSession2_Impl: Sized + windows_core::IUnknownImpl + IPlayReadyLicenseSession_Impl { fn CreateLicenseIterable(&self, contentheader: Option<&PlayReadyContentHeader>, fullyevaluated: bool) -> windows_core::Result; } #[cfg(feature = "Foundation_Collections")] @@ -1446,14 +1158,8 @@ impl windows_core::RuntimeName for IPlayReadyLicenseSession2 { } #[cfg(feature = "Foundation_Collections")] impl IPlayReadyLicenseSession2_Vtbl { - pub const fn new() -> IPlayReadyLicenseSession2_Vtbl - where - Identity: IPlayReadyLicenseSession2_Impl, - { - unsafe extern "system" fn CreateLicenseIterable(this: *mut core::ffi::c_void, contentheader: *mut core::ffi::c_void, fullyevaluated: bool, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyLicenseSession2_Impl, - { + pub const fn new() -> IPlayReadyLicenseSession2_Vtbl { + unsafe extern "system" fn CreateLicenseIterable(this: *mut core::ffi::c_void, contentheader: *mut core::ffi::c_void, fullyevaluated: bool, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyLicenseSession2_Impl::CreateLicenseIterable(this, windows_core::from_raw_borrowed(&contentheader), fullyevaluated) { Ok(ok__) => { @@ -1473,7 +1179,7 @@ impl IPlayReadyLicenseSession2_Vtbl { iid == &::IID } } -pub trait IPlayReadySecureStopServiceRequest_Impl: Sized + super::IMediaProtectionServiceRequest_Impl + IPlayReadyServiceRequest_Impl { +pub trait IPlayReadySecureStopServiceRequest_Impl: Sized + windows_core::IUnknownImpl + super::IMediaProtectionServiceRequest_Impl + IPlayReadyServiceRequest_Impl { fn SessionID(&self) -> windows_core::Result; fn StartTime(&self) -> windows_core::Result; fn UpdateTime(&self) -> windows_core::Result; @@ -1484,14 +1190,8 @@ impl windows_core::RuntimeName for IPlayReadySecureStopServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.IPlayReadySecureStopServiceRequest"; } impl IPlayReadySecureStopServiceRequest_Vtbl { - pub const fn new() -> IPlayReadySecureStopServiceRequest_Vtbl - where - Identity: IPlayReadySecureStopServiceRequest_Impl, - { - unsafe extern "system" fn SessionID(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPlayReadySecureStopServiceRequest_Impl, - { + pub const fn new() -> IPlayReadySecureStopServiceRequest_Vtbl { + unsafe extern "system" fn SessionID(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadySecureStopServiceRequest_Impl::SessionID(this) { Ok(ok__) => { @@ -1501,10 +1201,7 @@ impl IPlayReadySecureStopServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IPlayReadySecureStopServiceRequest_Impl, - { + unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadySecureStopServiceRequest_Impl::StartTime(this) { Ok(ok__) => { @@ -1514,10 +1211,7 @@ impl IPlayReadySecureStopServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateTime(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IPlayReadySecureStopServiceRequest_Impl, - { + unsafe extern "system" fn UpdateTime(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadySecureStopServiceRequest_Impl::UpdateTime(this) { Ok(ok__) => { @@ -1527,10 +1221,7 @@ impl IPlayReadySecureStopServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Stopped(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IPlayReadySecureStopServiceRequest_Impl, - { + unsafe extern "system" fn Stopped(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadySecureStopServiceRequest_Impl::Stopped(this) { Ok(ok__) => { @@ -1540,10 +1231,7 @@ impl IPlayReadySecureStopServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PublisherCertificate(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IPlayReadySecureStopServiceRequest_Impl, - { + unsafe extern "system" fn PublisherCertificate(this: *mut core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadySecureStopServiceRequest_Impl::PublisherCertificate(this) { Ok(ok__) => { @@ -1568,7 +1256,7 @@ impl IPlayReadySecureStopServiceRequest_Vtbl { iid == &::IID } } -pub trait IPlayReadyServiceRequest_Impl: Sized + super::IMediaProtectionServiceRequest_Impl { +pub trait IPlayReadyServiceRequest_Impl: Sized + windows_core::IUnknownImpl + super::IMediaProtectionServiceRequest_Impl { fn Uri(&self) -> windows_core::Result; fn SetUri(&self, value: Option<&super::super::super::Foundation::Uri>) -> windows_core::Result<()>; fn ResponseCustomData(&self) -> windows_core::Result; @@ -1583,14 +1271,8 @@ impl windows_core::RuntimeName for IPlayReadyServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.IPlayReadyServiceRequest"; } impl IPlayReadyServiceRequest_Vtbl { - pub const fn new() -> IPlayReadyServiceRequest_Vtbl - where - Identity: IPlayReadyServiceRequest_Impl, - { - unsafe extern "system" fn Uri(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyServiceRequest_Impl, - { + pub const fn new() -> IPlayReadyServiceRequest_Vtbl { + unsafe extern "system" fn Uri(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyServiceRequest_Impl::Uri(this) { Ok(ok__) => { @@ -1601,17 +1283,11 @@ impl IPlayReadyServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUri(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyServiceRequest_Impl, - { + unsafe extern "system" fn SetUri(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlayReadyServiceRequest_Impl::SetUri(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn ResponseCustomData(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPlayReadyServiceRequest_Impl, - { + unsafe extern "system" fn ResponseCustomData(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyServiceRequest_Impl::ResponseCustomData(this) { Ok(ok__) => { @@ -1622,10 +1298,7 @@ impl IPlayReadyServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChallengeCustomData(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPlayReadyServiceRequest_Impl, - { + unsafe extern "system" fn ChallengeCustomData(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyServiceRequest_Impl::ChallengeCustomData(this) { Ok(ok__) => { @@ -1636,17 +1309,11 @@ impl IPlayReadyServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChallengeCustomData(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPlayReadyServiceRequest_Impl, - { + unsafe extern "system" fn SetChallengeCustomData(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlayReadyServiceRequest_Impl::SetChallengeCustomData(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn BeginServiceRequest(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyServiceRequest_Impl, - { + unsafe extern "system" fn BeginServiceRequest(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyServiceRequest_Impl::BeginServiceRequest(this) { Ok(ok__) => { @@ -1657,10 +1324,7 @@ impl IPlayReadyServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NextServiceRequest(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyServiceRequest_Impl, - { + unsafe extern "system" fn NextServiceRequest(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyServiceRequest_Impl::NextServiceRequest(this) { Ok(ok__) => { @@ -1671,10 +1335,7 @@ impl IPlayReadyServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateManualEnablingChallenge(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayReadyServiceRequest_Impl, - { + unsafe extern "system" fn GenerateManualEnablingChallenge(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyServiceRequest_Impl::GenerateManualEnablingChallenge(this) { Ok(ok__) => { @@ -1685,10 +1346,7 @@ impl IPlayReadyServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessManualEnablingResponse(this: *mut core::ffi::c_void, responseBytes_array_size: u32, responsebytes: *const u8, result__: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPlayReadyServiceRequest_Impl, - { + unsafe extern "system" fn ProcessManualEnablingResponse(this: *mut core::ffi::c_void, responseBytes_array_size: u32, responsebytes: *const u8, result__: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayReadyServiceRequest_Impl::ProcessManualEnablingResponse(this, core::slice::from_raw_parts(core::mem::transmute_copy(&responsebytes), responseBytes_array_size as usize)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Media/Protection/impl.rs b/crates/libs/windows/src/Windows/Media/Protection/impl.rs index 7c7b5dbe68..d584d06b2b 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/impl.rs @@ -1,4 +1,4 @@ -pub trait IMediaProtectionServiceRequest_Impl: Sized { +pub trait IMediaProtectionServiceRequest_Impl: Sized + windows_core::IUnknownImpl { fn ProtectionSystem(&self) -> windows_core::Result; fn Type(&self) -> windows_core::Result; } @@ -6,14 +6,8 @@ impl windows_core::RuntimeName for IMediaProtectionServiceRequest { const NAME: &'static str = "Windows.Media.Protection.IMediaProtectionServiceRequest"; } impl IMediaProtectionServiceRequest_Vtbl { - pub const fn new() -> IMediaProtectionServiceRequest_Vtbl - where - Identity: IMediaProtectionServiceRequest_Impl, - { - unsafe extern "system" fn ProtectionSystem(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMediaProtectionServiceRequest_Impl, - { + pub const fn new() -> IMediaProtectionServiceRequest_Vtbl { + unsafe extern "system" fn ProtectionSystem(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaProtectionServiceRequest_Impl::ProtectionSystem(this) { Ok(ok__) => { @@ -23,10 +17,7 @@ impl IMediaProtectionServiceRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMediaProtectionServiceRequest_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaProtectionServiceRequest_Impl::Type(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Media/SpeechRecognition/impl.rs b/crates/libs/windows/src/Windows/Media/SpeechRecognition/impl.rs index 9d418b08bb..55e80df373 100644 --- a/crates/libs/windows/src/Windows/Media/SpeechRecognition/impl.rs +++ b/crates/libs/windows/src/Windows/Media/SpeechRecognition/impl.rs @@ -1,4 +1,4 @@ -pub trait ISpeechRecognitionConstraint_Impl: Sized { +pub trait ISpeechRecognitionConstraint_Impl: Sized + windows_core::IUnknownImpl { fn IsEnabled(&self) -> windows_core::Result; fn SetIsEnabled(&self, value: bool) -> windows_core::Result<()>; fn Tag(&self) -> windows_core::Result; @@ -11,14 +11,8 @@ impl windows_core::RuntimeName for ISpeechRecognitionConstraint { const NAME: &'static str = "Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint"; } impl ISpeechRecognitionConstraint_Vtbl { - pub const fn new() -> ISpeechRecognitionConstraint_Vtbl - where - Identity: ISpeechRecognitionConstraint_Impl, - { - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ISpeechRecognitionConstraint_Impl, - { + pub const fn new() -> ISpeechRecognitionConstraint_Vtbl { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognitionConstraint_Impl::IsEnabled(this) { Ok(ok__) => { @@ -28,17 +22,11 @@ impl ISpeechRecognitionConstraint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsEnabled(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: ISpeechRecognitionConstraint_Impl, - { + unsafe extern "system" fn SetIsEnabled(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognitionConstraint_Impl::SetIsEnabled(this, value).into() } - unsafe extern "system" fn Tag(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecognitionConstraint_Impl, - { + unsafe extern "system" fn Tag(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognitionConstraint_Impl::Tag(this) { Ok(ok__) => { @@ -49,17 +37,11 @@ impl ISpeechRecognitionConstraint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecognitionConstraint_Impl, - { + unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognitionConstraint_Impl::SetTag(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut SpeechRecognitionConstraintType) -> windows_core::HRESULT - where - Identity: ISpeechRecognitionConstraint_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut SpeechRecognitionConstraintType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognitionConstraint_Impl::Type(this) { Ok(ok__) => { @@ -69,10 +51,7 @@ impl ISpeechRecognitionConstraint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Probability(this: *mut core::ffi::c_void, result__: *mut SpeechRecognitionConstraintProbability) -> windows_core::HRESULT - where - Identity: ISpeechRecognitionConstraint_Impl, - { + unsafe extern "system" fn Probability(this: *mut core::ffi::c_void, result__: *mut SpeechRecognitionConstraintProbability) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognitionConstraint_Impl::Probability(this) { Ok(ok__) => { @@ -82,10 +61,7 @@ impl ISpeechRecognitionConstraint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProbability(this: *mut core::ffi::c_void, value: SpeechRecognitionConstraintProbability) -> windows_core::HRESULT - where - Identity: ISpeechRecognitionConstraint_Impl, - { + unsafe extern "system" fn SetProbability(this: *mut core::ffi::c_void, value: SpeechRecognitionConstraintProbability) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognitionConstraint_Impl::SetProbability(this, value).into() } diff --git a/crates/libs/windows/src/Windows/Media/impl.rs b/crates/libs/windows/src/Windows/Media/impl.rs index e737853c50..bb52b67314 100644 --- a/crates/libs/windows/src/Windows/Media/impl.rs +++ b/crates/libs/windows/src/Windows/Media/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Foundation_Collections")] -pub trait IMediaExtension_Impl: Sized { +pub trait IMediaExtension_Impl: Sized + windows_core::IUnknownImpl { fn SetProperties(&self, configuration: Option<&super::Foundation::Collections::IPropertySet>) -> windows_core::Result<()>; } #[cfg(feature = "Foundation_Collections")] @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for IMediaExtension { } #[cfg(feature = "Foundation_Collections")] impl IMediaExtension_Vtbl { - pub const fn new() -> IMediaExtension_Vtbl - where - Identity: IMediaExtension_Impl, - { - unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, configuration: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaExtension_Impl, - { + pub const fn new() -> IMediaExtension_Vtbl { + unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, configuration: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaExtension_Impl::SetProperties(this, windows_core::from_raw_borrowed(&configuration)).into() } @@ -26,7 +20,7 @@ impl IMediaExtension_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IMediaFrame_Impl: Sized + super::Foundation::IClosable_Impl { +pub trait IMediaFrame_Impl: Sized + windows_core::IUnknownImpl + super::Foundation::IClosable_Impl { fn Type(&self) -> windows_core::Result; fn IsReadOnly(&self) -> windows_core::Result; fn SetRelativeTime(&self, value: Option<&super::Foundation::IReference>) -> windows_core::Result<()>; @@ -45,14 +39,8 @@ impl windows_core::RuntimeName for IMediaFrame { } #[cfg(feature = "Foundation_Collections")] impl IMediaFrame_Vtbl { - pub const fn new() -> IMediaFrame_Vtbl - where - Identity: IMediaFrame_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + pub const fn new() -> IMediaFrame_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaFrame_Impl::Type(this) { Ok(ok__) => { @@ -63,10 +51,7 @@ impl IMediaFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaFrame_Impl::IsReadOnly(this) { Ok(ok__) => { @@ -76,17 +61,11 @@ impl IMediaFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRelativeTime(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + unsafe extern "system" fn SetRelativeTime(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaFrame_Impl::SetRelativeTime(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn RelativeTime(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + unsafe extern "system" fn RelativeTime(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaFrame_Impl::RelativeTime(this) { Ok(ok__) => { @@ -97,17 +76,11 @@ impl IMediaFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSystemRelativeTime(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + unsafe extern "system" fn SetSystemRelativeTime(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaFrame_Impl::SetSystemRelativeTime(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn SystemRelativeTime(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + unsafe extern "system" fn SystemRelativeTime(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaFrame_Impl::SystemRelativeTime(this) { Ok(ok__) => { @@ -118,17 +91,11 @@ impl IMediaFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaFrame_Impl::SetDuration(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaFrame_Impl::Duration(this) { Ok(ok__) => { @@ -139,17 +106,11 @@ impl IMediaFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsDiscontinuous(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + unsafe extern "system" fn SetIsDiscontinuous(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaFrame_Impl::SetIsDiscontinuous(this, value).into() } - unsafe extern "system" fn IsDiscontinuous(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + unsafe extern "system" fn IsDiscontinuous(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaFrame_Impl::IsDiscontinuous(this) { Ok(ok__) => { @@ -159,10 +120,7 @@ impl IMediaFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFrame_Impl, - { + unsafe extern "system" fn ExtendedProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaFrame_Impl::ExtendedProperties(this) { Ok(ok__) => { @@ -192,7 +150,7 @@ impl IMediaFrame_Vtbl { iid == &::IID } } -pub trait IMediaMarker_Impl: Sized { +pub trait IMediaMarker_Impl: Sized + windows_core::IUnknownImpl { fn Time(&self) -> windows_core::Result; fn MediaMarkerType(&self) -> windows_core::Result; fn Text(&self) -> windows_core::Result; @@ -201,14 +159,8 @@ impl windows_core::RuntimeName for IMediaMarker { const NAME: &'static str = "Windows.Media.IMediaMarker"; } impl IMediaMarker_Vtbl { - pub const fn new() -> IMediaMarker_Vtbl - where - Identity: IMediaMarker_Impl, - { - unsafe extern "system" fn Time(this: *mut core::ffi::c_void, result__: *mut super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IMediaMarker_Impl, - { + pub const fn new() -> IMediaMarker_Vtbl { + unsafe extern "system" fn Time(this: *mut core::ffi::c_void, result__: *mut super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaMarker_Impl::Time(this) { Ok(ok__) => { @@ -218,10 +170,7 @@ impl IMediaMarker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MediaMarkerType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaMarker_Impl, - { + unsafe extern "system" fn MediaMarkerType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaMarker_Impl::MediaMarkerType(this) { Ok(ok__) => { @@ -232,10 +181,7 @@ impl IMediaMarker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Text(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaMarker_Impl, - { + unsafe extern "system" fn Text(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaMarker_Impl::Text(this) { Ok(ok__) => { @@ -258,7 +204,7 @@ impl IMediaMarker_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IMediaMarkers_Impl: Sized { +pub trait IMediaMarkers_Impl: Sized + windows_core::IUnknownImpl { fn Markers(&self) -> windows_core::Result>; } #[cfg(feature = "Foundation_Collections")] @@ -267,14 +213,8 @@ impl windows_core::RuntimeName for IMediaMarkers { } #[cfg(feature = "Foundation_Collections")] impl IMediaMarkers_Vtbl { - pub const fn new() -> IMediaMarkers_Vtbl - where - Identity: IMediaMarkers_Impl, - { - unsafe extern "system" fn Markers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaMarkers_Impl, - { + pub const fn new() -> IMediaMarkers_Vtbl { + unsafe extern "system" fn Markers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaMarkers_Impl::Markers(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/impl.rs b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/impl.rs index 89613ac80e..2afeb63d59 100644 --- a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/impl.rs +++ b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Security_Credentials")] -pub trait IBackgroundTransferBase_Impl: Sized { +pub trait IBackgroundTransferBase_Impl: Sized + windows_core::IUnknownImpl { fn SetRequestHeader(&self, headername: &windows_core::HSTRING, headervalue: &windows_core::HSTRING) -> windows_core::Result<()>; fn ServerCredential(&self) -> windows_core::Result; fn SetServerCredential(&self, credential: Option<&super::super::Security::Credentials::PasswordCredential>) -> windows_core::Result<()>; @@ -18,21 +18,12 @@ impl windows_core::RuntimeName for IBackgroundTransferBase { } #[cfg(feature = "Security_Credentials")] impl IBackgroundTransferBase_Vtbl { - pub const fn new() -> IBackgroundTransferBase_Vtbl - where - Identity: IBackgroundTransferBase_Impl, - { - unsafe extern "system" fn SetRequestHeader(this: *mut core::ffi::c_void, headername: core::mem::MaybeUninit, headervalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + pub const fn new() -> IBackgroundTransferBase_Vtbl { + unsafe extern "system" fn SetRequestHeader(this: *mut core::ffi::c_void, headername: core::mem::MaybeUninit, headervalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTransferBase_Impl::SetRequestHeader(this, core::mem::transmute(&headername), core::mem::transmute(&headervalue)).into() } - unsafe extern "system" fn ServerCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + unsafe extern "system" fn ServerCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferBase_Impl::ServerCredential(this) { Ok(ok__) => { @@ -43,17 +34,11 @@ impl IBackgroundTransferBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerCredential(this: *mut core::ffi::c_void, credential: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + unsafe extern "system" fn SetServerCredential(this: *mut core::ffi::c_void, credential: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTransferBase_Impl::SetServerCredential(this, windows_core::from_raw_borrowed(&credential)).into() } - unsafe extern "system" fn ProxyCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + unsafe extern "system" fn ProxyCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferBase_Impl::ProxyCredential(this) { Ok(ok__) => { @@ -64,17 +49,11 @@ impl IBackgroundTransferBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProxyCredential(this: *mut core::ffi::c_void, credential: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + unsafe extern "system" fn SetProxyCredential(this: *mut core::ffi::c_void, credential: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTransferBase_Impl::SetProxyCredential(this, windows_core::from_raw_borrowed(&credential)).into() } - unsafe extern "system" fn Method(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + unsafe extern "system" fn Method(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferBase_Impl::Method(this) { Ok(ok__) => { @@ -85,17 +64,11 @@ impl IBackgroundTransferBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMethod(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + unsafe extern "system" fn SetMethod(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTransferBase_Impl::SetMethod(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Group(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + unsafe extern "system" fn Group(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferBase_Impl::Group(this) { Ok(ok__) => { @@ -106,17 +79,11 @@ impl IBackgroundTransferBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGroup(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + unsafe extern "system" fn SetGroup(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTransferBase_Impl::SetGroup(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn CostPolicy(this: *mut core::ffi::c_void, result__: *mut BackgroundTransferCostPolicy) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + unsafe extern "system" fn CostPolicy(this: *mut core::ffi::c_void, result__: *mut BackgroundTransferCostPolicy) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferBase_Impl::CostPolicy(this) { Ok(ok__) => { @@ -126,10 +93,7 @@ impl IBackgroundTransferBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCostPolicy(this: *mut core::ffi::c_void, value: BackgroundTransferCostPolicy) -> windows_core::HRESULT - where - Identity: IBackgroundTransferBase_Impl, - { + unsafe extern "system" fn SetCostPolicy(this: *mut core::ffi::c_void, value: BackgroundTransferCostPolicy) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTransferBase_Impl::SetCostPolicy(this, value).into() } @@ -152,7 +116,7 @@ impl IBackgroundTransferBase_Vtbl { iid == &::IID } } -pub trait IBackgroundTransferContentPartFactory_Impl: Sized { +pub trait IBackgroundTransferContentPartFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateWithName(&self, name: &windows_core::HSTRING) -> windows_core::Result; fn CreateWithNameAndFileName(&self, name: &windows_core::HSTRING, filename: &windows_core::HSTRING) -> windows_core::Result; } @@ -160,14 +124,8 @@ impl windows_core::RuntimeName for IBackgroundTransferContentPartFactory { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.IBackgroundTransferContentPartFactory"; } impl IBackgroundTransferContentPartFactory_Vtbl { - pub const fn new() -> IBackgroundTransferContentPartFactory_Vtbl - where - Identity: IBackgroundTransferContentPartFactory_Impl, - { - unsafe extern "system" fn CreateWithName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTransferContentPartFactory_Impl, - { + pub const fn new() -> IBackgroundTransferContentPartFactory_Vtbl { + unsafe extern "system" fn CreateWithName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferContentPartFactory_Impl::CreateWithName(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -178,10 +136,7 @@ impl IBackgroundTransferContentPartFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateWithNameAndFileName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, filename: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTransferContentPartFactory_Impl, - { + unsafe extern "system" fn CreateWithNameAndFileName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, filename: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferContentPartFactory_Impl::CreateWithNameAndFileName(this, core::mem::transmute(&name), core::mem::transmute(&filename)) { Ok(ok__) => { @@ -203,7 +158,7 @@ impl IBackgroundTransferContentPartFactory_Vtbl { } } #[cfg(feature = "Storage_Streams")] -pub trait IBackgroundTransferOperation_Impl: Sized { +pub trait IBackgroundTransferOperation_Impl: Sized + windows_core::IUnknownImpl { fn Guid(&self) -> windows_core::Result; fn RequestedUri(&self) -> windows_core::Result; fn Method(&self) -> windows_core::Result; @@ -219,14 +174,8 @@ impl windows_core::RuntimeName for IBackgroundTransferOperation { } #[cfg(feature = "Storage_Streams")] impl IBackgroundTransferOperation_Vtbl { - pub const fn new() -> IBackgroundTransferOperation_Vtbl - where - Identity: IBackgroundTransferOperation_Impl, - { - unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBackgroundTransferOperation_Impl, - { + pub const fn new() -> IBackgroundTransferOperation_Vtbl { + unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferOperation_Impl::Guid(this) { Ok(ok__) => { @@ -236,10 +185,7 @@ impl IBackgroundTransferOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestedUri(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTransferOperation_Impl, - { + unsafe extern "system" fn RequestedUri(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferOperation_Impl::RequestedUri(this) { Ok(ok__) => { @@ -250,10 +196,7 @@ impl IBackgroundTransferOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Method(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBackgroundTransferOperation_Impl, - { + unsafe extern "system" fn Method(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferOperation_Impl::Method(this) { Ok(ok__) => { @@ -264,10 +207,7 @@ impl IBackgroundTransferOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Group(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBackgroundTransferOperation_Impl, - { + unsafe extern "system" fn Group(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferOperation_Impl::Group(this) { Ok(ok__) => { @@ -278,10 +218,7 @@ impl IBackgroundTransferOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CostPolicy(this: *mut core::ffi::c_void, result__: *mut BackgroundTransferCostPolicy) -> windows_core::HRESULT - where - Identity: IBackgroundTransferOperation_Impl, - { + unsafe extern "system" fn CostPolicy(this: *mut core::ffi::c_void, result__: *mut BackgroundTransferCostPolicy) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferOperation_Impl::CostPolicy(this) { Ok(ok__) => { @@ -291,17 +228,11 @@ impl IBackgroundTransferOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCostPolicy(this: *mut core::ffi::c_void, value: BackgroundTransferCostPolicy) -> windows_core::HRESULT - where - Identity: IBackgroundTransferOperation_Impl, - { + unsafe extern "system" fn SetCostPolicy(this: *mut core::ffi::c_void, value: BackgroundTransferCostPolicy) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTransferOperation_Impl::SetCostPolicy(this, value).into() } - unsafe extern "system" fn GetResultStreamAt(this: *mut core::ffi::c_void, position: u64, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTransferOperation_Impl, - { + unsafe extern "system" fn GetResultStreamAt(this: *mut core::ffi::c_void, position: u64, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferOperation_Impl::GetResultStreamAt(this, position) { Ok(ok__) => { @@ -312,10 +243,7 @@ impl IBackgroundTransferOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResponseInformation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundTransferOperation_Impl, - { + unsafe extern "system" fn GetResponseInformation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferOperation_Impl::GetResponseInformation(this) { Ok(ok__) => { @@ -342,7 +270,7 @@ impl IBackgroundTransferOperation_Vtbl { iid == &::IID } } -pub trait IBackgroundTransferOperationPriority_Impl: Sized { +pub trait IBackgroundTransferOperationPriority_Impl: Sized + windows_core::IUnknownImpl { fn Priority(&self) -> windows_core::Result; fn SetPriority(&self, value: BackgroundTransferPriority) -> windows_core::Result<()>; } @@ -350,14 +278,8 @@ impl windows_core::RuntimeName for IBackgroundTransferOperationPriority { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.IBackgroundTransferOperationPriority"; } impl IBackgroundTransferOperationPriority_Vtbl { - pub const fn new() -> IBackgroundTransferOperationPriority_Vtbl - where - Identity: IBackgroundTransferOperationPriority_Impl, - { - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, result__: *mut BackgroundTransferPriority) -> windows_core::HRESULT - where - Identity: IBackgroundTransferOperationPriority_Impl, - { + pub const fn new() -> IBackgroundTransferOperationPriority_Vtbl { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, result__: *mut BackgroundTransferPriority) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundTransferOperationPriority_Impl::Priority(this) { Ok(ok__) => { @@ -367,10 +289,7 @@ impl IBackgroundTransferOperationPriority_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, value: BackgroundTransferPriority) -> windows_core::HRESULT - where - Identity: IBackgroundTransferOperationPriority_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, value: BackgroundTransferPriority) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundTransferOperationPriority_Impl::SetPriority(this, value).into() } diff --git a/crates/libs/windows/src/Windows/Networking/Sockets/impl.rs b/crates/libs/windows/src/Windows/Networking/Sockets/impl.rs index bf2e792374..9c2d1ed9a1 100644 --- a/crates/libs/windows/src/Windows/Networking/Sockets/impl.rs +++ b/crates/libs/windows/src/Windows/Networking/Sockets/impl.rs @@ -1,18 +1,12 @@ -pub trait IControlChannelTriggerEventDetails_Impl: Sized { +pub trait IControlChannelTriggerEventDetails_Impl: Sized + windows_core::IUnknownImpl { fn ControlChannelTrigger(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IControlChannelTriggerEventDetails { const NAME: &'static str = "Windows.Networking.Sockets.IControlChannelTriggerEventDetails"; } impl IControlChannelTriggerEventDetails_Vtbl { - pub const fn new() -> IControlChannelTriggerEventDetails_Vtbl - where - Identity: IControlChannelTriggerEventDetails_Impl, - { - unsafe extern "system" fn ControlChannelTrigger(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IControlChannelTriggerEventDetails_Impl, - { + pub const fn new() -> IControlChannelTriggerEventDetails_Vtbl { + unsafe extern "system" fn ControlChannelTrigger(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IControlChannelTriggerEventDetails_Impl::ControlChannelTrigger(this) { Ok(ok__) => { @@ -32,7 +26,7 @@ impl IControlChannelTriggerEventDetails_Vtbl { iid == &::IID } } -pub trait IControlChannelTriggerResetEventDetails_Impl: Sized { +pub trait IControlChannelTriggerResetEventDetails_Impl: Sized + windows_core::IUnknownImpl { fn ResetReason(&self) -> windows_core::Result; fn HardwareSlotReset(&self) -> windows_core::Result; fn SoftwareSlotReset(&self) -> windows_core::Result; @@ -41,14 +35,8 @@ impl windows_core::RuntimeName for IControlChannelTriggerResetEventDetails { const NAME: &'static str = "Windows.Networking.Sockets.IControlChannelTriggerResetEventDetails"; } impl IControlChannelTriggerResetEventDetails_Vtbl { - pub const fn new() -> IControlChannelTriggerResetEventDetails_Vtbl - where - Identity: IControlChannelTriggerResetEventDetails_Impl, - { - unsafe extern "system" fn ResetReason(this: *mut core::ffi::c_void, result__: *mut ControlChannelTriggerResetReason) -> windows_core::HRESULT - where - Identity: IControlChannelTriggerResetEventDetails_Impl, - { + pub const fn new() -> IControlChannelTriggerResetEventDetails_Vtbl { + unsafe extern "system" fn ResetReason(this: *mut core::ffi::c_void, result__: *mut ControlChannelTriggerResetReason) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IControlChannelTriggerResetEventDetails_Impl::ResetReason(this) { Ok(ok__) => { @@ -58,10 +46,7 @@ impl IControlChannelTriggerResetEventDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HardwareSlotReset(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IControlChannelTriggerResetEventDetails_Impl, - { + unsafe extern "system" fn HardwareSlotReset(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IControlChannelTriggerResetEventDetails_Impl::HardwareSlotReset(this) { Ok(ok__) => { @@ -71,10 +56,7 @@ impl IControlChannelTriggerResetEventDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SoftwareSlotReset(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IControlChannelTriggerResetEventDetails_Impl, - { + unsafe extern "system" fn SoftwareSlotReset(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IControlChannelTriggerResetEventDetails_Impl::SoftwareSlotReset(this) { Ok(ok__) => { @@ -96,7 +78,7 @@ impl IControlChannelTriggerResetEventDetails_Vtbl { } } #[cfg(feature = "Storage_Streams")] -pub trait IWebSocket_Impl: Sized + super::super::Foundation::IClosable_Impl { +pub trait IWebSocket_Impl: Sized + windows_core::IUnknownImpl + super::super::Foundation::IClosable_Impl { fn OutputStream(&self) -> windows_core::Result; fn ConnectAsync(&self, uri: Option<&super::super::Foundation::Uri>) -> windows_core::Result; fn SetRequestHeader(&self, headername: &windows_core::HSTRING, headervalue: &windows_core::HSTRING) -> windows_core::Result<()>; @@ -110,14 +92,8 @@ impl windows_core::RuntimeName for IWebSocket { } #[cfg(feature = "Storage_Streams")] impl IWebSocket_Vtbl { - pub const fn new() -> IWebSocket_Vtbl - where - Identity: IWebSocket_Impl, - { - unsafe extern "system" fn OutputStream(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocket_Impl, - { + pub const fn new() -> IWebSocket_Vtbl { + unsafe extern "system" fn OutputStream(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocket_Impl::OutputStream(this) { Ok(ok__) => { @@ -128,10 +104,7 @@ impl IWebSocket_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectAsync(this: *mut core::ffi::c_void, uri: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocket_Impl, - { + unsafe extern "system" fn ConnectAsync(this: *mut core::ffi::c_void, uri: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocket_Impl::ConnectAsync(this, windows_core::from_raw_borrowed(&uri)) { Ok(ok__) => { @@ -142,17 +115,11 @@ impl IWebSocket_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRequestHeader(this: *mut core::ffi::c_void, headername: core::mem::MaybeUninit, headervalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebSocket_Impl, - { + unsafe extern "system" fn SetRequestHeader(this: *mut core::ffi::c_void, headername: core::mem::MaybeUninit, headervalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebSocket_Impl::SetRequestHeader(this, core::mem::transmute(&headername), core::mem::transmute(&headervalue)).into() } - unsafe extern "system" fn Closed(this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebSocket_Impl, - { + unsafe extern "system" fn Closed(this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocket_Impl::Closed(this, windows_core::from_raw_borrowed(&eventhandler)) { Ok(ok__) => { @@ -162,17 +129,11 @@ impl IWebSocket_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveClosed(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebSocket_Impl, - { + unsafe extern "system" fn RemoveClosed(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebSocket_Impl::RemoveClosed(this, core::mem::transmute(&eventcookie)).into() } - unsafe extern "system" fn CloseWithStatus(this: *mut core::ffi::c_void, code: u16, reason: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebSocket_Impl, - { + unsafe extern "system" fn CloseWithStatus(this: *mut core::ffi::c_void, code: u16, reason: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebSocket_Impl::CloseWithStatus(this, code, core::mem::transmute(&reason)).into() } @@ -191,7 +152,7 @@ impl IWebSocket_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] -pub trait IWebSocketControl_Impl: Sized { +pub trait IWebSocketControl_Impl: Sized + windows_core::IUnknownImpl { fn OutboundBufferSizeInBytes(&self) -> windows_core::Result; fn SetOutboundBufferSizeInBytes(&self, value: u32) -> windows_core::Result<()>; fn ServerCredential(&self) -> windows_core::Result; @@ -206,14 +167,8 @@ impl windows_core::RuntimeName for IWebSocketControl { } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] impl IWebSocketControl_Vtbl { - pub const fn new() -> IWebSocketControl_Vtbl - where - Identity: IWebSocketControl_Impl, - { - unsafe extern "system" fn OutboundBufferSizeInBytes(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IWebSocketControl_Impl, - { + pub const fn new() -> IWebSocketControl_Vtbl { + unsafe extern "system" fn OutboundBufferSizeInBytes(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketControl_Impl::OutboundBufferSizeInBytes(this) { Ok(ok__) => { @@ -223,17 +178,11 @@ impl IWebSocketControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutboundBufferSizeInBytes(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: IWebSocketControl_Impl, - { + unsafe extern "system" fn SetOutboundBufferSizeInBytes(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebSocketControl_Impl::SetOutboundBufferSizeInBytes(this, value).into() } - unsafe extern "system" fn ServerCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocketControl_Impl, - { + unsafe extern "system" fn ServerCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketControl_Impl::ServerCredential(this) { Ok(ok__) => { @@ -244,17 +193,11 @@ impl IWebSocketControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerCredential(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocketControl_Impl, - { + unsafe extern "system" fn SetServerCredential(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebSocketControl_Impl::SetServerCredential(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn ProxyCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocketControl_Impl, - { + unsafe extern "system" fn ProxyCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketControl_Impl::ProxyCredential(this) { Ok(ok__) => { @@ -265,17 +208,11 @@ impl IWebSocketControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProxyCredential(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocketControl_Impl, - { + unsafe extern "system" fn SetProxyCredential(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebSocketControl_Impl::SetProxyCredential(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn SupportedProtocols(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocketControl_Impl, - { + unsafe extern "system" fn SupportedProtocols(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketControl_Impl::SupportedProtocols(this) { Ok(ok__) => { @@ -302,7 +239,7 @@ impl IWebSocketControl_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] -pub trait IWebSocketControl2_Impl: Sized + IWebSocketControl_Impl { +pub trait IWebSocketControl2_Impl: Sized + windows_core::IUnknownImpl + IWebSocketControl_Impl { fn IgnorableServerCertificateErrors(&self) -> windows_core::Result>; } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] @@ -311,14 +248,8 @@ impl windows_core::RuntimeName for IWebSocketControl2 { } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] impl IWebSocketControl2_Vtbl { - pub const fn new() -> IWebSocketControl2_Vtbl - where - Identity: IWebSocketControl2_Impl, - { - unsafe extern "system" fn IgnorableServerCertificateErrors(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocketControl2_Impl, - { + pub const fn new() -> IWebSocketControl2_Vtbl { + unsafe extern "system" fn IgnorableServerCertificateErrors(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketControl2_Impl::IgnorableServerCertificateErrors(this) { Ok(ok__) => { @@ -338,7 +269,7 @@ impl IWebSocketControl2_Vtbl { iid == &::IID } } -pub trait IWebSocketInformation_Impl: Sized { +pub trait IWebSocketInformation_Impl: Sized + windows_core::IUnknownImpl { fn LocalAddress(&self) -> windows_core::Result; fn BandwidthStatistics(&self) -> windows_core::Result; fn Protocol(&self) -> windows_core::Result; @@ -347,14 +278,8 @@ impl windows_core::RuntimeName for IWebSocketInformation { const NAME: &'static str = "Windows.Networking.Sockets.IWebSocketInformation"; } impl IWebSocketInformation_Vtbl { - pub const fn new() -> IWebSocketInformation_Vtbl - where - Identity: IWebSocketInformation_Impl, - { - unsafe extern "system" fn LocalAddress(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocketInformation_Impl, - { + pub const fn new() -> IWebSocketInformation_Vtbl { + unsafe extern "system" fn LocalAddress(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketInformation_Impl::LocalAddress(this) { Ok(ok__) => { @@ -365,10 +290,7 @@ impl IWebSocketInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BandwidthStatistics(this: *mut core::ffi::c_void, result__: *mut BandwidthStatistics) -> windows_core::HRESULT - where - Identity: IWebSocketInformation_Impl, - { + unsafe extern "system" fn BandwidthStatistics(this: *mut core::ffi::c_void, result__: *mut BandwidthStatistics) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketInformation_Impl::BandwidthStatistics(this) { Ok(ok__) => { @@ -378,10 +300,7 @@ impl IWebSocketInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebSocketInformation_Impl, - { + unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketInformation_Impl::Protocol(this) { Ok(ok__) => { @@ -404,7 +323,7 @@ impl IWebSocketInformation_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] -pub trait IWebSocketInformation2_Impl: Sized + IWebSocketInformation_Impl { +pub trait IWebSocketInformation2_Impl: Sized + windows_core::IUnknownImpl + IWebSocketInformation_Impl { fn ServerCertificate(&self) -> windows_core::Result; fn ServerCertificateErrorSeverity(&self) -> windows_core::Result; fn ServerCertificateErrors(&self) -> windows_core::Result>; @@ -416,14 +335,8 @@ impl windows_core::RuntimeName for IWebSocketInformation2 { } #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] impl IWebSocketInformation2_Vtbl { - pub const fn new() -> IWebSocketInformation2_Vtbl - where - Identity: IWebSocketInformation2_Impl, - { - unsafe extern "system" fn ServerCertificate(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocketInformation2_Impl, - { + pub const fn new() -> IWebSocketInformation2_Vtbl { + unsafe extern "system" fn ServerCertificate(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketInformation2_Impl::ServerCertificate(this) { Ok(ok__) => { @@ -434,10 +347,7 @@ impl IWebSocketInformation2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServerCertificateErrorSeverity(this: *mut core::ffi::c_void, result__: *mut SocketSslErrorSeverity) -> windows_core::HRESULT - where - Identity: IWebSocketInformation2_Impl, - { + unsafe extern "system" fn ServerCertificateErrorSeverity(this: *mut core::ffi::c_void, result__: *mut SocketSslErrorSeverity) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketInformation2_Impl::ServerCertificateErrorSeverity(this) { Ok(ok__) => { @@ -447,10 +357,7 @@ impl IWebSocketInformation2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServerCertificateErrors(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocketInformation2_Impl, - { + unsafe extern "system" fn ServerCertificateErrors(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketInformation2_Impl::ServerCertificateErrors(this) { Ok(ok__) => { @@ -461,10 +368,7 @@ impl IWebSocketInformation2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServerIntermediateCertificates(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebSocketInformation2_Impl, - { + unsafe extern "system" fn ServerIntermediateCertificates(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebSocketInformation2_Impl::ServerIntermediateCertificates(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Networking/Vpn/impl.rs b/crates/libs/windows/src/Windows/Networking/Vpn/impl.rs index a0a2a8e959..b9b3b364a0 100644 --- a/crates/libs/windows/src/Windows/Networking/Vpn/impl.rs +++ b/crates/libs/windows/src/Windows/Networking/Vpn/impl.rs @@ -1,18 +1,12 @@ -pub trait IVpnChannelStatics_Impl: Sized { +pub trait IVpnChannelStatics_Impl: Sized + windows_core::IUnknownImpl { fn ProcessEventAsync(&self, thirdpartyplugin: Option<&windows_core::IInspectable>, event: Option<&windows_core::IInspectable>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVpnChannelStatics { const NAME: &'static str = "Windows.Networking.Vpn.IVpnChannelStatics"; } impl IVpnChannelStatics_Vtbl { - pub const fn new() -> IVpnChannelStatics_Vtbl - where - Identity: IVpnChannelStatics_Impl, - { - unsafe extern "system" fn ProcessEventAsync(this: *mut core::ffi::c_void, thirdpartyplugin: *mut core::ffi::c_void, event: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnChannelStatics_Impl, - { + pub const fn new() -> IVpnChannelStatics_Vtbl { + unsafe extern "system" fn ProcessEventAsync(this: *mut core::ffi::c_void, thirdpartyplugin: *mut core::ffi::c_void, event: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnChannelStatics_Impl::ProcessEventAsync(this, windows_core::from_raw_borrowed(&thirdpartyplugin), windows_core::from_raw_borrowed(&event)).into() } @@ -23,7 +17,7 @@ impl IVpnChannelStatics_Vtbl { } } #[cfg(all(feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] -pub trait IVpnCredential_Impl: Sized { +pub trait IVpnCredential_Impl: Sized + windows_core::IUnknownImpl { fn PasskeyCredential(&self) -> windows_core::Result; fn CertificateCredential(&self) -> windows_core::Result; fn AdditionalPin(&self) -> windows_core::Result; @@ -35,14 +29,8 @@ impl windows_core::RuntimeName for IVpnCredential { } #[cfg(all(feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] impl IVpnCredential_Vtbl { - pub const fn new() -> IVpnCredential_Vtbl - where - Identity: IVpnCredential_Impl, - { - unsafe extern "system" fn PasskeyCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnCredential_Impl, - { + pub const fn new() -> IVpnCredential_Vtbl { + unsafe extern "system" fn PasskeyCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnCredential_Impl::PasskeyCredential(this) { Ok(ok__) => { @@ -53,10 +41,7 @@ impl IVpnCredential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CertificateCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnCredential_Impl, - { + unsafe extern "system" fn CertificateCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnCredential_Impl::CertificateCredential(this) { Ok(ok__) => { @@ -67,10 +52,7 @@ impl IVpnCredential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AdditionalPin(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVpnCredential_Impl, - { + unsafe extern "system" fn AdditionalPin(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnCredential_Impl::AdditionalPin(this) { Ok(ok__) => { @@ -81,10 +63,7 @@ impl IVpnCredential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OldPasswordCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnCredential_Impl, - { + unsafe extern "system" fn OldPasswordCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnCredential_Impl::OldPasswordCredential(this) { Ok(ok__) => { @@ -107,7 +86,7 @@ impl IVpnCredential_Vtbl { iid == &::IID } } -pub trait IVpnCustomPrompt_Impl: Sized { +pub trait IVpnCustomPrompt_Impl: Sized + windows_core::IUnknownImpl { fn SetLabel(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn Label(&self) -> windows_core::Result; fn SetCompulsory(&self, value: bool) -> windows_core::Result<()>; @@ -119,21 +98,12 @@ impl windows_core::RuntimeName for IVpnCustomPrompt { const NAME: &'static str = "Windows.Networking.Vpn.IVpnCustomPrompt"; } impl IVpnCustomPrompt_Vtbl { - pub const fn new() -> IVpnCustomPrompt_Vtbl - where - Identity: IVpnCustomPrompt_Impl, - { - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVpnCustomPrompt_Impl, - { + pub const fn new() -> IVpnCustomPrompt_Vtbl { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnCustomPrompt_Impl::SetLabel(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVpnCustomPrompt_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnCustomPrompt_Impl::Label(this) { Ok(ok__) => { @@ -144,17 +114,11 @@ impl IVpnCustomPrompt_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCompulsory(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IVpnCustomPrompt_Impl, - { + unsafe extern "system" fn SetCompulsory(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnCustomPrompt_Impl::SetCompulsory(this, value).into() } - unsafe extern "system" fn Compulsory(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IVpnCustomPrompt_Impl, - { + unsafe extern "system" fn Compulsory(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnCustomPrompt_Impl::Compulsory(this) { Ok(ok__) => { @@ -164,17 +128,11 @@ impl IVpnCustomPrompt_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBordered(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IVpnCustomPrompt_Impl, - { + unsafe extern "system" fn SetBordered(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnCustomPrompt_Impl::SetBordered(this, value).into() } - unsafe extern "system" fn Bordered(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IVpnCustomPrompt_Impl, - { + unsafe extern "system" fn Bordered(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnCustomPrompt_Impl::Bordered(this) { Ok(ok__) => { @@ -198,7 +156,7 @@ impl IVpnCustomPrompt_Vtbl { iid == &::IID } } -pub trait IVpnCustomPromptElement_Impl: Sized { +pub trait IVpnCustomPromptElement_Impl: Sized + windows_core::IUnknownImpl { fn SetDisplayName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn DisplayName(&self) -> windows_core::Result; fn SetCompulsory(&self, value: bool) -> windows_core::Result<()>; @@ -210,21 +168,12 @@ impl windows_core::RuntimeName for IVpnCustomPromptElement { const NAME: &'static str = "Windows.Networking.Vpn.IVpnCustomPromptElement"; } impl IVpnCustomPromptElement_Vtbl { - pub const fn new() -> IVpnCustomPromptElement_Vtbl - where - Identity: IVpnCustomPromptElement_Impl, - { - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVpnCustomPromptElement_Impl, - { + pub const fn new() -> IVpnCustomPromptElement_Vtbl { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnCustomPromptElement_Impl::SetDisplayName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVpnCustomPromptElement_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnCustomPromptElement_Impl::DisplayName(this) { Ok(ok__) => { @@ -235,17 +184,11 @@ impl IVpnCustomPromptElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCompulsory(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IVpnCustomPromptElement_Impl, - { + unsafe extern "system" fn SetCompulsory(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnCustomPromptElement_Impl::SetCompulsory(this, value).into() } - unsafe extern "system" fn Compulsory(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IVpnCustomPromptElement_Impl, - { + unsafe extern "system" fn Compulsory(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnCustomPromptElement_Impl::Compulsory(this) { Ok(ok__) => { @@ -255,17 +198,11 @@ impl IVpnCustomPromptElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEmphasized(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IVpnCustomPromptElement_Impl, - { + unsafe extern "system" fn SetEmphasized(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnCustomPromptElement_Impl::SetEmphasized(this, value).into() } - unsafe extern "system" fn Emphasized(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IVpnCustomPromptElement_Impl, - { + unsafe extern "system" fn Emphasized(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnCustomPromptElement_Impl::Emphasized(this) { Ok(ok__) => { @@ -290,7 +227,7 @@ impl IVpnCustomPromptElement_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IVpnDomainNameInfoFactory_Impl: Sized { +pub trait IVpnDomainNameInfoFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateVpnDomainNameInfo(&self, name: &windows_core::HSTRING, nametype: VpnDomainNameType, dnsserverlist: Option<&super::super::Foundation::Collections::IIterable>, proxyserverlist: Option<&super::super::Foundation::Collections::IIterable>) -> windows_core::Result; } #[cfg(feature = "Foundation_Collections")] @@ -299,14 +236,8 @@ impl windows_core::RuntimeName for IVpnDomainNameInfoFactory { } #[cfg(feature = "Foundation_Collections")] impl IVpnDomainNameInfoFactory_Vtbl { - pub const fn new() -> IVpnDomainNameInfoFactory_Vtbl - where - Identity: IVpnDomainNameInfoFactory_Impl, - { - unsafe extern "system" fn CreateVpnDomainNameInfo(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, nametype: VpnDomainNameType, dnsserverlist: *mut core::ffi::c_void, proxyserverlist: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnDomainNameInfoFactory_Impl, - { + pub const fn new() -> IVpnDomainNameInfoFactory_Vtbl { + unsafe extern "system" fn CreateVpnDomainNameInfo(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, nametype: VpnDomainNameType, dnsserverlist: *mut core::ffi::c_void, proxyserverlist: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnDomainNameInfoFactory_Impl::CreateVpnDomainNameInfo(this, core::mem::transmute(&name), nametype, windows_core::from_raw_borrowed(&dnsserverlist), windows_core::from_raw_borrowed(&proxyserverlist)) { Ok(ok__) => { @@ -326,21 +257,15 @@ impl IVpnDomainNameInfoFactory_Vtbl { iid == &::IID } } -pub trait IVpnInterfaceIdFactory_Impl: Sized { +pub trait IVpnInterfaceIdFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateVpnInterfaceId(&self, address: &[u8]) -> windows_core::Result; } impl windows_core::RuntimeName for IVpnInterfaceIdFactory { const NAME: &'static str = "Windows.Networking.Vpn.IVpnInterfaceIdFactory"; } impl IVpnInterfaceIdFactory_Vtbl { - pub const fn new() -> IVpnInterfaceIdFactory_Vtbl - where - Identity: IVpnInterfaceIdFactory_Impl, - { - unsafe extern "system" fn CreateVpnInterfaceId(this: *mut core::ffi::c_void, address_array_size: u32, address: *const u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnInterfaceIdFactory_Impl, - { + pub const fn new() -> IVpnInterfaceIdFactory_Vtbl { + unsafe extern "system" fn CreateVpnInterfaceId(this: *mut core::ffi::c_void, address_array_size: u32, address: *const u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnInterfaceIdFactory_Impl::CreateVpnInterfaceId(this, core::slice::from_raw_parts(core::mem::transmute_copy(&address), address_array_size as usize)) { Ok(ok__) => { @@ -361,7 +286,7 @@ impl IVpnInterfaceIdFactory_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IVpnNamespaceInfoFactory_Impl: Sized { +pub trait IVpnNamespaceInfoFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateVpnNamespaceInfo(&self, name: &windows_core::HSTRING, dnsserverlist: Option<&super::super::Foundation::Collections::IVector>, proxyserverlist: Option<&super::super::Foundation::Collections::IVector>) -> windows_core::Result; } #[cfg(feature = "Foundation_Collections")] @@ -370,14 +295,8 @@ impl windows_core::RuntimeName for IVpnNamespaceInfoFactory { } #[cfg(feature = "Foundation_Collections")] impl IVpnNamespaceInfoFactory_Vtbl { - pub const fn new() -> IVpnNamespaceInfoFactory_Vtbl - where - Identity: IVpnNamespaceInfoFactory_Impl, - { - unsafe extern "system" fn CreateVpnNamespaceInfo(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, dnsserverlist: *mut core::ffi::c_void, proxyserverlist: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnNamespaceInfoFactory_Impl, - { + pub const fn new() -> IVpnNamespaceInfoFactory_Vtbl { + unsafe extern "system" fn CreateVpnNamespaceInfo(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, dnsserverlist: *mut core::ffi::c_void, proxyserverlist: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnNamespaceInfoFactory_Impl::CreateVpnNamespaceInfo(this, core::mem::transmute(&name), windows_core::from_raw_borrowed(&dnsserverlist), windows_core::from_raw_borrowed(&proxyserverlist)) { Ok(ok__) => { @@ -397,21 +316,15 @@ impl IVpnNamespaceInfoFactory_Vtbl { iid == &::IID } } -pub trait IVpnPacketBufferFactory_Impl: Sized { +pub trait IVpnPacketBufferFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateVpnPacketBuffer(&self, parentbuffer: Option<&VpnPacketBuffer>, offset: u32, length: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IVpnPacketBufferFactory { const NAME: &'static str = "Windows.Networking.Vpn.IVpnPacketBufferFactory"; } impl IVpnPacketBufferFactory_Vtbl { - pub const fn new() -> IVpnPacketBufferFactory_Vtbl - where - Identity: IVpnPacketBufferFactory_Impl, - { - unsafe extern "system" fn CreateVpnPacketBuffer(this: *mut core::ffi::c_void, parentbuffer: *mut core::ffi::c_void, offset: u32, length: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnPacketBufferFactory_Impl, - { + pub const fn new() -> IVpnPacketBufferFactory_Vtbl { + unsafe extern "system" fn CreateVpnPacketBuffer(this: *mut core::ffi::c_void, parentbuffer: *mut core::ffi::c_void, offset: u32, length: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnPacketBufferFactory_Impl::CreateVpnPacketBuffer(this, windows_core::from_raw_borrowed(&parentbuffer), offset, length) { Ok(ok__) => { @@ -431,7 +344,7 @@ impl IVpnPacketBufferFactory_Vtbl { iid == &::IID } } -pub trait IVpnPlugIn_Impl: Sized { +pub trait IVpnPlugIn_Impl: Sized + windows_core::IUnknownImpl { fn Connect(&self, channel: Option<&VpnChannel>) -> windows_core::Result<()>; fn Disconnect(&self, channel: Option<&VpnChannel>) -> windows_core::Result<()>; fn GetKeepAlivePayload(&self, channel: Option<&VpnChannel>, keepalivepacket: &mut Option) -> windows_core::Result<()>; @@ -442,42 +355,24 @@ impl windows_core::RuntimeName for IVpnPlugIn { const NAME: &'static str = "Windows.Networking.Vpn.IVpnPlugIn"; } impl IVpnPlugIn_Vtbl { - pub const fn new() -> IVpnPlugIn_Vtbl - where - Identity: IVpnPlugIn_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnPlugIn_Impl, - { + pub const fn new() -> IVpnPlugIn_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnPlugIn_Impl::Connect(this, windows_core::from_raw_borrowed(&channel)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnPlugIn_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnPlugIn_Impl::Disconnect(this, windows_core::from_raw_borrowed(&channel)).into() } - unsafe extern "system" fn GetKeepAlivePayload(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void, keepalivepacket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnPlugIn_Impl, - { + unsafe extern "system" fn GetKeepAlivePayload(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void, keepalivepacket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnPlugIn_Impl::GetKeepAlivePayload(this, windows_core::from_raw_borrowed(&channel), core::mem::transmute_copy(&keepalivepacket)).into() } - unsafe extern "system" fn Encapsulate(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void, packets: *mut core::ffi::c_void, encapulatedpackets: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnPlugIn_Impl, - { + unsafe extern "system" fn Encapsulate(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void, packets: *mut core::ffi::c_void, encapulatedpackets: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnPlugIn_Impl::Encapsulate(this, windows_core::from_raw_borrowed(&channel), windows_core::from_raw_borrowed(&packets), windows_core::from_raw_borrowed(&encapulatedpackets)).into() } - unsafe extern "system" fn Decapsulate(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void, encapbuffer: *mut core::ffi::c_void, decapsulatedpackets: *mut core::ffi::c_void, controlpacketstosend: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnPlugIn_Impl, - { + unsafe extern "system" fn Decapsulate(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void, encapbuffer: *mut core::ffi::c_void, decapsulatedpackets: *mut core::ffi::c_void, controlpacketstosend: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnPlugIn_Impl::Decapsulate(this, windows_core::from_raw_borrowed(&channel), windows_core::from_raw_borrowed(&encapbuffer), windows_core::from_raw_borrowed(&decapsulatedpackets), windows_core::from_raw_borrowed(&controlpacketstosend)).into() } @@ -494,21 +389,15 @@ impl IVpnPlugIn_Vtbl { iid == &::IID } } -pub trait IVpnPlugInReconnectTransport_Impl: Sized { +pub trait IVpnPlugInReconnectTransport_Impl: Sized + windows_core::IUnknownImpl { fn ReconnectTransport(&self, channel: Option<&VpnChannel>, context: Option<&windows_core::IInspectable>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVpnPlugInReconnectTransport { const NAME: &'static str = "Windows.Networking.Vpn.IVpnPlugInReconnectTransport"; } impl IVpnPlugInReconnectTransport_Vtbl { - pub const fn new() -> IVpnPlugInReconnectTransport_Vtbl - where - Identity: IVpnPlugInReconnectTransport_Impl, - { - unsafe extern "system" fn ReconnectTransport(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnPlugInReconnectTransport_Impl, - { + pub const fn new() -> IVpnPlugInReconnectTransport_Vtbl { + unsafe extern "system" fn ReconnectTransport(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnPlugInReconnectTransport_Impl::ReconnectTransport(this, windows_core::from_raw_borrowed(&channel), windows_core::from_raw_borrowed(&context)).into() } @@ -522,7 +411,7 @@ impl IVpnPlugInReconnectTransport_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IVpnProfile_Impl: Sized { +pub trait IVpnProfile_Impl: Sized + windows_core::IUnknownImpl { fn ProfileName(&self) -> windows_core::Result; fn SetProfileName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn AppTriggers(&self) -> windows_core::Result>; @@ -540,14 +429,8 @@ impl windows_core::RuntimeName for IVpnProfile { } #[cfg(feature = "Foundation_Collections")] impl IVpnProfile_Vtbl { - pub const fn new() -> IVpnProfile_Vtbl - where - Identity: IVpnProfile_Impl, - { - unsafe extern "system" fn ProfileName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVpnProfile_Impl, - { + pub const fn new() -> IVpnProfile_Vtbl { + unsafe extern "system" fn ProfileName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnProfile_Impl::ProfileName(this) { Ok(ok__) => { @@ -558,17 +441,11 @@ impl IVpnProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProfileName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVpnProfile_Impl, - { + unsafe extern "system" fn SetProfileName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnProfile_Impl::SetProfileName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn AppTriggers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnProfile_Impl, - { + unsafe extern "system" fn AppTriggers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnProfile_Impl::AppTriggers(this) { Ok(ok__) => { @@ -579,10 +456,7 @@ impl IVpnProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Routes(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnProfile_Impl, - { + unsafe extern "system" fn Routes(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnProfile_Impl::Routes(this) { Ok(ok__) => { @@ -593,10 +467,7 @@ impl IVpnProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DomainNameInfoList(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnProfile_Impl, - { + unsafe extern "system" fn DomainNameInfoList(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnProfile_Impl::DomainNameInfoList(this) { Ok(ok__) => { @@ -607,10 +478,7 @@ impl IVpnProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TrafficFilters(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnProfile_Impl, - { + unsafe extern "system" fn TrafficFilters(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnProfile_Impl::TrafficFilters(this) { Ok(ok__) => { @@ -621,10 +489,7 @@ impl IVpnProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RememberCredentials(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IVpnProfile_Impl, - { + unsafe extern "system" fn RememberCredentials(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnProfile_Impl::RememberCredentials(this) { Ok(ok__) => { @@ -634,17 +499,11 @@ impl IVpnProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRememberCredentials(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IVpnProfile_Impl, - { + unsafe extern "system" fn SetRememberCredentials(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnProfile_Impl::SetRememberCredentials(this, value).into() } - unsafe extern "system" fn AlwaysOn(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IVpnProfile_Impl, - { + unsafe extern "system" fn AlwaysOn(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnProfile_Impl::AlwaysOn(this) { Ok(ok__) => { @@ -654,10 +513,7 @@ impl IVpnProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlwaysOn(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IVpnProfile_Impl, - { + unsafe extern "system" fn SetAlwaysOn(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVpnProfile_Impl::SetAlwaysOn(this, value).into() } @@ -679,21 +535,15 @@ impl IVpnProfile_Vtbl { iid == &::IID } } -pub trait IVpnRouteFactory_Impl: Sized { +pub trait IVpnRouteFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateVpnRoute(&self, address: Option<&super::HostName>, prefixsize: u8) -> windows_core::Result; } impl windows_core::RuntimeName for IVpnRouteFactory { const NAME: &'static str = "Windows.Networking.Vpn.IVpnRouteFactory"; } impl IVpnRouteFactory_Vtbl { - pub const fn new() -> IVpnRouteFactory_Vtbl - where - Identity: IVpnRouteFactory_Impl, - { - unsafe extern "system" fn CreateVpnRoute(this: *mut core::ffi::c_void, address: *mut core::ffi::c_void, prefixsize: u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVpnRouteFactory_Impl, - { + pub const fn new() -> IVpnRouteFactory_Vtbl { + unsafe extern "system" fn CreateVpnRoute(this: *mut core::ffi::c_void, address: *mut core::ffi::c_void, prefixsize: u8, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVpnRouteFactory_Impl::CreateVpnRoute(this, windows_core::from_raw_borrowed(&address), prefixsize) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Phone/Notification/Management/impl.rs b/crates/libs/windows/src/Windows/Phone/Notification/Management/impl.rs index df42ed46d6..96cc1bc4f4 100644 --- a/crates/libs/windows/src/Windows/Phone/Notification/Management/impl.rs +++ b/crates/libs/windows/src/Windows/Phone/Notification/Management/impl.rs @@ -1,4 +1,4 @@ -pub trait IAccessoryNotificationTriggerDetails_Impl: Sized { +pub trait IAccessoryNotificationTriggerDetails_Impl: Sized + windows_core::IUnknownImpl { fn TimeCreated(&self) -> windows_core::Result; fn AppDisplayName(&self) -> windows_core::Result; fn AppId(&self) -> windows_core::Result; @@ -10,14 +10,8 @@ impl windows_core::RuntimeName for IAccessoryNotificationTriggerDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.IAccessoryNotificationTriggerDetails"; } impl IAccessoryNotificationTriggerDetails_Vtbl { - pub const fn new() -> IAccessoryNotificationTriggerDetails_Vtbl - where - Identity: IAccessoryNotificationTriggerDetails_Impl, - { - unsafe extern "system" fn TimeCreated(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IAccessoryNotificationTriggerDetails_Impl, - { + pub const fn new() -> IAccessoryNotificationTriggerDetails_Vtbl { + unsafe extern "system" fn TimeCreated(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessoryNotificationTriggerDetails_Impl::TimeCreated(this) { Ok(ok__) => { @@ -27,10 +21,7 @@ impl IAccessoryNotificationTriggerDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppDisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessoryNotificationTriggerDetails_Impl, - { + unsafe extern "system" fn AppDisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessoryNotificationTriggerDetails_Impl::AppDisplayName(this) { Ok(ok__) => { @@ -41,10 +32,7 @@ impl IAccessoryNotificationTriggerDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessoryNotificationTriggerDetails_Impl, - { + unsafe extern "system" fn AppId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessoryNotificationTriggerDetails_Impl::AppId(this) { Ok(ok__) => { @@ -55,10 +43,7 @@ impl IAccessoryNotificationTriggerDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AccessoryNotificationType(this: *mut core::ffi::c_void, result__: *mut AccessoryNotificationType) -> windows_core::HRESULT - where - Identity: IAccessoryNotificationTriggerDetails_Impl, - { + unsafe extern "system" fn AccessoryNotificationType(this: *mut core::ffi::c_void, result__: *mut AccessoryNotificationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessoryNotificationTriggerDetails_Impl::AccessoryNotificationType(this) { Ok(ok__) => { @@ -68,10 +53,7 @@ impl IAccessoryNotificationTriggerDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartedProcessing(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IAccessoryNotificationTriggerDetails_Impl, - { + unsafe extern "system" fn StartedProcessing(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessoryNotificationTriggerDetails_Impl::StartedProcessing(this) { Ok(ok__) => { @@ -81,10 +63,7 @@ impl IAccessoryNotificationTriggerDetails_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartedProcessing(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IAccessoryNotificationTriggerDetails_Impl, - { + unsafe extern "system" fn SetStartedProcessing(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessoryNotificationTriggerDetails_Impl::SetStartedProcessing(this, value).into() } diff --git a/crates/libs/windows/src/Windows/Phone/PersonalInformation/impl.rs b/crates/libs/windows/src/Windows/Phone/PersonalInformation/impl.rs index f27c00688a..886ddb942c 100644 --- a/crates/libs/windows/src/Windows/Phone/PersonalInformation/impl.rs +++ b/crates/libs/windows/src/Windows/Phone/PersonalInformation/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] -pub trait IContactInformation_Impl: Sized { +pub trait IContactInformation_Impl: Sized + windows_core::IUnknownImpl { fn DisplayName(&self) -> windows_core::Result; fn SetDisplayName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn FamilyName(&self) -> windows_core::Result; @@ -23,14 +23,8 @@ impl windows_core::RuntimeName for IContactInformation { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] impl IContactInformation_Vtbl { - pub const fn new() -> IContactInformation_Vtbl - where - Identity: IContactInformation_Impl, - { - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + pub const fn new() -> IContactInformation_Vtbl { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::DisplayName(this) { Ok(ok__) => { @@ -41,17 +35,11 @@ impl IContactInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactInformation_Impl::SetDisplayName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn FamilyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn FamilyName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::FamilyName(this) { Ok(ok__) => { @@ -62,17 +50,11 @@ impl IContactInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFamilyName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn SetFamilyName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactInformation_Impl::SetFamilyName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn GivenName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn GivenName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::GivenName(this) { Ok(ok__) => { @@ -83,17 +65,11 @@ impl IContactInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGivenName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn SetGivenName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactInformation_Impl::SetGivenName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn HonorificPrefix(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn HonorificPrefix(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::HonorificPrefix(this) { Ok(ok__) => { @@ -104,17 +80,11 @@ impl IContactInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHonorificPrefix(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn SetHonorificPrefix(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactInformation_Impl::SetHonorificPrefix(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn HonorificSuffix(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn HonorificSuffix(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::HonorificSuffix(this) { Ok(ok__) => { @@ -125,17 +95,11 @@ impl IContactInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHonorificSuffix(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn SetHonorificSuffix(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactInformation_Impl::SetHonorificSuffix(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetDisplayPictureAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn GetDisplayPictureAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::GetDisplayPictureAsync(this) { Ok(ok__) => { @@ -146,10 +110,7 @@ impl IContactInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayPictureAsync(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn SetDisplayPictureAsync(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::SetDisplayPictureAsync(this, windows_core::from_raw_borrowed(&stream)) { Ok(ok__) => { @@ -160,10 +121,7 @@ impl IContactInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayPicture(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn DisplayPicture(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::DisplayPicture(this) { Ok(ok__) => { @@ -174,10 +132,7 @@ impl IContactInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertiesAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn GetPropertiesAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::GetPropertiesAsync(this) { Ok(ok__) => { @@ -188,10 +143,7 @@ impl IContactInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ToVcardAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn ToVcardAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::ToVcardAsync(this) { Ok(ok__) => { @@ -202,10 +154,7 @@ impl IContactInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ToVcardWithOptionsAsync(this: *mut core::ffi::c_void, format: VCardFormat, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactInformation_Impl, - { + unsafe extern "system" fn ToVcardWithOptionsAsync(this: *mut core::ffi::c_void, format: VCardFormat, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation_Impl::ToVcardWithOptionsAsync(this, format) { Ok(ok__) => { @@ -240,7 +189,7 @@ impl IContactInformation_Vtbl { iid == &::IID } } -pub trait IContactInformation2_Impl: Sized { +pub trait IContactInformation2_Impl: Sized + windows_core::IUnknownImpl { fn DisplayPictureDate(&self) -> windows_core::Result; fn SetDisplayPictureDate(&self, returnvalue: &super::super::Foundation::DateTime) -> windows_core::Result<()>; } @@ -248,14 +197,8 @@ impl windows_core::RuntimeName for IContactInformation2 { const NAME: &'static str = "Windows.Phone.PersonalInformation.IContactInformation2"; } impl IContactInformation2_Vtbl { - pub const fn new() -> IContactInformation2_Vtbl - where - Identity: IContactInformation2_Impl, - { - unsafe extern "system" fn DisplayPictureDate(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IContactInformation2_Impl, - { + pub const fn new() -> IContactInformation2_Vtbl { + unsafe extern "system" fn DisplayPictureDate(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactInformation2_Impl::DisplayPictureDate(this) { Ok(ok__) => { @@ -265,10 +208,7 @@ impl IContactInformation2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayPictureDate(this: *mut core::ffi::c_void, returnvalue: super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IContactInformation2_Impl, - { + unsafe extern "system" fn SetDisplayPictureDate(this: *mut core::ffi::c_void, returnvalue: super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactInformation2_Impl::SetDisplayPictureDate(this, core::mem::transmute(&returnvalue)).into() } diff --git a/crates/libs/windows/src/Windows/Phone/StartScreen/impl.rs b/crates/libs/windows/src/Windows/Phone/StartScreen/impl.rs index 9900b231cb..3a9a14626f 100644 --- a/crates/libs/windows/src/Windows/Phone/StartScreen/impl.rs +++ b/crates/libs/windows/src/Windows/Phone/StartScreen/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "UI_Notifications")] -pub trait IToastNotificationManagerStatics3_Impl: Sized { +pub trait IToastNotificationManagerStatics3_Impl: Sized + windows_core::IUnknownImpl { fn CreateToastNotifierForSecondaryTile(&self, tileid: &windows_core::HSTRING) -> windows_core::Result; } #[cfg(feature = "UI_Notifications")] @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for IToastNotificationManagerStatics3 { } #[cfg(feature = "UI_Notifications")] impl IToastNotificationManagerStatics3_Vtbl { - pub const fn new() -> IToastNotificationManagerStatics3_Vtbl - where - Identity: IToastNotificationManagerStatics3_Impl, - { - unsafe extern "system" fn CreateToastNotifierForSecondaryTile(this: *mut core::ffi::c_void, tileid: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IToastNotificationManagerStatics3_Impl, - { + pub const fn new() -> IToastNotificationManagerStatics3_Vtbl { + unsafe extern "system" fn CreateToastNotifierForSecondaryTile(this: *mut core::ffi::c_void, tileid: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IToastNotificationManagerStatics3_Impl::CreateToastNotifierForSecondaryTile(this, core::mem::transmute(&tileid)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/impl.rs b/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/impl.rs index 6c7b3519df..952feaf0b8 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Security_Authentication_Web_Core")] -pub trait IWebAccountProviderBaseReportOperation_Impl: Sized { +pub trait IWebAccountProviderBaseReportOperation_Impl: Sized + windows_core::IUnknownImpl { fn ReportCompleted(&self) -> windows_core::Result<()>; fn ReportError(&self, value: Option<&super::Core::WebProviderError>) -> windows_core::Result<()>; } @@ -9,21 +9,12 @@ impl windows_core::RuntimeName for IWebAccountProviderBaseReportOperation { } #[cfg(feature = "Security_Authentication_Web_Core")] impl IWebAccountProviderBaseReportOperation_Vtbl { - pub const fn new() -> IWebAccountProviderBaseReportOperation_Vtbl - where - Identity: IWebAccountProviderBaseReportOperation_Impl, - { - unsafe extern "system" fn ReportCompleted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccountProviderBaseReportOperation_Impl, - { + pub const fn new() -> IWebAccountProviderBaseReportOperation_Vtbl { + unsafe extern "system" fn ReportCompleted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebAccountProviderBaseReportOperation_Impl::ReportCompleted(this).into() } - unsafe extern "system" fn ReportError(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccountProviderBaseReportOperation_Impl, - { + unsafe extern "system" fn ReportError(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebAccountProviderBaseReportOperation_Impl::ReportError(this, windows_core::from_raw_borrowed(&value)).into() } @@ -37,21 +28,15 @@ impl IWebAccountProviderBaseReportOperation_Vtbl { iid == &::IID } } -pub trait IWebAccountProviderOperation_Impl: Sized { +pub trait IWebAccountProviderOperation_Impl: Sized + windows_core::IUnknownImpl { fn Kind(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWebAccountProviderOperation { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.IWebAccountProviderOperation"; } impl IWebAccountProviderOperation_Vtbl { - pub const fn new() -> IWebAccountProviderOperation_Vtbl - where - Identity: IWebAccountProviderOperation_Impl, - { - unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut WebAccountProviderOperationKind) -> windows_core::HRESULT - where - Identity: IWebAccountProviderOperation_Impl, - { + pub const fn new() -> IWebAccountProviderOperation_Vtbl { + unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut WebAccountProviderOperationKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAccountProviderOperation_Impl::Kind(this) { Ok(ok__) => { @@ -68,7 +53,7 @@ impl IWebAccountProviderOperation_Vtbl { } } #[cfg(feature = "Security_Authentication_Web_Core")] -pub trait IWebAccountProviderSilentReportOperation_Impl: Sized + IWebAccountProviderBaseReportOperation_Impl { +pub trait IWebAccountProviderSilentReportOperation_Impl: Sized + windows_core::IUnknownImpl + IWebAccountProviderBaseReportOperation_Impl { fn ReportUserInteractionRequired(&self) -> windows_core::Result<()>; fn ReportUserInteractionRequiredWithError(&self, value: Option<&super::Core::WebProviderError>) -> windows_core::Result<()>; } @@ -78,21 +63,12 @@ impl windows_core::RuntimeName for IWebAccountProviderSilentReportOperation { } #[cfg(feature = "Security_Authentication_Web_Core")] impl IWebAccountProviderSilentReportOperation_Vtbl { - pub const fn new() -> IWebAccountProviderSilentReportOperation_Vtbl - where - Identity: IWebAccountProviderSilentReportOperation_Impl, - { - unsafe extern "system" fn ReportUserInteractionRequired(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccountProviderSilentReportOperation_Impl, - { + pub const fn new() -> IWebAccountProviderSilentReportOperation_Vtbl { + unsafe extern "system" fn ReportUserInteractionRequired(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebAccountProviderSilentReportOperation_Impl::ReportUserInteractionRequired(this).into() } - unsafe extern "system" fn ReportUserInteractionRequiredWithError(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccountProviderSilentReportOperation_Impl, - { + unsafe extern "system" fn ReportUserInteractionRequiredWithError(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebAccountProviderSilentReportOperation_Impl::ReportUserInteractionRequiredWithError(this, windows_core::from_raw_borrowed(&value)).into() } @@ -106,21 +82,15 @@ impl IWebAccountProviderSilentReportOperation_Vtbl { iid == &::IID } } -pub trait IWebAccountProviderTokenObjects_Impl: Sized { +pub trait IWebAccountProviderTokenObjects_Impl: Sized + windows_core::IUnknownImpl { fn Operation(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWebAccountProviderTokenObjects { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.IWebAccountProviderTokenObjects"; } impl IWebAccountProviderTokenObjects_Vtbl { - pub const fn new() -> IWebAccountProviderTokenObjects_Vtbl - where - Identity: IWebAccountProviderTokenObjects_Impl, - { - unsafe extern "system" fn Operation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccountProviderTokenObjects_Impl, - { + pub const fn new() -> IWebAccountProviderTokenObjects_Vtbl { + unsafe extern "system" fn Operation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAccountProviderTokenObjects_Impl::Operation(this) { Ok(ok__) => { @@ -138,7 +108,7 @@ impl IWebAccountProviderTokenObjects_Vtbl { } } #[cfg(feature = "System")] -pub trait IWebAccountProviderTokenObjects2_Impl: Sized + IWebAccountProviderTokenObjects_Impl { +pub trait IWebAccountProviderTokenObjects2_Impl: Sized + windows_core::IUnknownImpl + IWebAccountProviderTokenObjects_Impl { fn User(&self) -> windows_core::Result; } #[cfg(feature = "System")] @@ -147,14 +117,8 @@ impl windows_core::RuntimeName for IWebAccountProviderTokenObjects2 { } #[cfg(feature = "System")] impl IWebAccountProviderTokenObjects2_Vtbl { - pub const fn new() -> IWebAccountProviderTokenObjects2_Vtbl - where - Identity: IWebAccountProviderTokenObjects2_Impl, - { - unsafe extern "system" fn User(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccountProviderTokenObjects2_Impl, - { + pub const fn new() -> IWebAccountProviderTokenObjects2_Vtbl { + unsafe extern "system" fn User(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAccountProviderTokenObjects2_Impl::User(this) { Ok(ok__) => { @@ -172,7 +136,7 @@ impl IWebAccountProviderTokenObjects2_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IWebAccountProviderTokenOperation_Impl: Sized + IWebAccountProviderOperation_Impl { +pub trait IWebAccountProviderTokenOperation_Impl: Sized + windows_core::IUnknownImpl + IWebAccountProviderOperation_Impl { fn ProviderRequest(&self) -> windows_core::Result; fn ProviderResponses(&self) -> windows_core::Result>; fn SetCacheExpirationTime(&self, value: &super::super::super::super::Foundation::DateTime) -> windows_core::Result<()>; @@ -184,14 +148,8 @@ impl windows_core::RuntimeName for IWebAccountProviderTokenOperation { } #[cfg(feature = "Foundation_Collections")] impl IWebAccountProviderTokenOperation_Vtbl { - pub const fn new() -> IWebAccountProviderTokenOperation_Vtbl - where - Identity: IWebAccountProviderTokenOperation_Impl, - { - unsafe extern "system" fn ProviderRequest(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccountProviderTokenOperation_Impl, - { + pub const fn new() -> IWebAccountProviderTokenOperation_Vtbl { + unsafe extern "system" fn ProviderRequest(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAccountProviderTokenOperation_Impl::ProviderRequest(this) { Ok(ok__) => { @@ -202,10 +160,7 @@ impl IWebAccountProviderTokenOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProviderResponses(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccountProviderTokenOperation_Impl, - { + unsafe extern "system" fn ProviderResponses(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAccountProviderTokenOperation_Impl::ProviderResponses(this) { Ok(ok__) => { @@ -216,17 +171,11 @@ impl IWebAccountProviderTokenOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCacheExpirationTime(this: *mut core::ffi::c_void, value: super::super::super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IWebAccountProviderTokenOperation_Impl, - { + unsafe extern "system" fn SetCacheExpirationTime(this: *mut core::ffi::c_void, value: super::super::super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebAccountProviderTokenOperation_Impl::SetCacheExpirationTime(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn CacheExpirationTime(this: *mut core::ffi::c_void, result__: *mut super::super::super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IWebAccountProviderTokenOperation_Impl, - { + unsafe extern "system" fn CacheExpirationTime(this: *mut core::ffi::c_void, result__: *mut super::super::super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAccountProviderTokenOperation_Impl::CacheExpirationTime(this) { Ok(ok__) => { @@ -249,7 +198,7 @@ impl IWebAccountProviderTokenOperation_Vtbl { } } #[cfg(feature = "Security_Authentication_Web_Core")] -pub trait IWebAccountProviderUIReportOperation_Impl: Sized + IWebAccountProviderBaseReportOperation_Impl { +pub trait IWebAccountProviderUIReportOperation_Impl: Sized + windows_core::IUnknownImpl + IWebAccountProviderBaseReportOperation_Impl { fn ReportUserCanceled(&self) -> windows_core::Result<()>; } #[cfg(feature = "Security_Authentication_Web_Core")] @@ -258,14 +207,8 @@ impl windows_core::RuntimeName for IWebAccountProviderUIReportOperation { } #[cfg(feature = "Security_Authentication_Web_Core")] impl IWebAccountProviderUIReportOperation_Vtbl { - pub const fn new() -> IWebAccountProviderUIReportOperation_Vtbl - where - Identity: IWebAccountProviderUIReportOperation_Impl, - { - unsafe extern "system" fn ReportUserCanceled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccountProviderUIReportOperation_Impl, - { + pub const fn new() -> IWebAccountProviderUIReportOperation_Vtbl { + unsafe extern "system" fn ReportUserCanceled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebAccountProviderUIReportOperation_Impl::ReportUserCanceled(this).into() } diff --git a/crates/libs/windows/src/Windows/Security/Credentials/impl.rs b/crates/libs/windows/src/Windows/Security/Credentials/impl.rs index 1259addab1..eabb7e2198 100644 --- a/crates/libs/windows/src/Windows/Security/Credentials/impl.rs +++ b/crates/libs/windows/src/Windows/Security/Credentials/impl.rs @@ -1,4 +1,4 @@ -pub trait IWebAccount_Impl: Sized { +pub trait IWebAccount_Impl: Sized + windows_core::IUnknownImpl { fn WebAccountProvider(&self) -> windows_core::Result; fn UserName(&self) -> windows_core::Result; fn State(&self) -> windows_core::Result; @@ -7,14 +7,8 @@ impl windows_core::RuntimeName for IWebAccount { const NAME: &'static str = "Windows.Security.Credentials.IWebAccount"; } impl IWebAccount_Vtbl { - pub const fn new() -> IWebAccount_Vtbl - where - Identity: IWebAccount_Impl, - { - unsafe extern "system" fn WebAccountProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAccount_Impl, - { + pub const fn new() -> IWebAccount_Vtbl { + unsafe extern "system" fn WebAccountProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAccount_Impl::WebAccountProvider(this) { Ok(ok__) => { @@ -25,10 +19,7 @@ impl IWebAccount_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebAccount_Impl, - { + unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAccount_Impl::UserName(this) { Ok(ok__) => { @@ -39,10 +30,7 @@ impl IWebAccount_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, result__: *mut WebAccountState) -> windows_core::HRESULT - where - Identity: IWebAccount_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, result__: *mut WebAccountState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAccount_Impl::State(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Storage/AccessCache/impl.rs b/crates/libs/windows/src/Windows/Storage/AccessCache/impl.rs index 9994096fe5..44b24345b6 100644 --- a/crates/libs/windows/src/Windows/Storage/AccessCache/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/AccessCache/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Foundation_Collections")] -pub trait IStorageItemAccessList_Impl: Sized { +pub trait IStorageItemAccessList_Impl: Sized + windows_core::IUnknownImpl { fn AddOverloadDefaultMetadata(&self, file: Option<&super::IStorageItem>) -> windows_core::Result; fn Add(&self, file: Option<&super::IStorageItem>, metadata: &windows_core::HSTRING) -> windows_core::Result; fn AddOrReplaceOverloadDefaultMetadata(&self, token: &windows_core::HSTRING, file: Option<&super::IStorageItem>) -> windows_core::Result<()>; @@ -23,14 +23,8 @@ impl windows_core::RuntimeName for IStorageItemAccessList { } #[cfg(feature = "Foundation_Collections")] impl IStorageItemAccessList_Vtbl { - pub const fn new() -> IStorageItemAccessList_Vtbl - where - Identity: IStorageItemAccessList_Impl, - { - unsafe extern "system" fn AddOverloadDefaultMetadata(this: *mut core::ffi::c_void, file: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + pub const fn new() -> IStorageItemAccessList_Vtbl { + unsafe extern "system" fn AddOverloadDefaultMetadata(this: *mut core::ffi::c_void, file: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::AddOverloadDefaultMetadata(this, windows_core::from_raw_borrowed(&file)) { Ok(ok__) => { @@ -41,10 +35,7 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, file: *mut core::ffi::c_void, metadata: core::mem::MaybeUninit, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, file: *mut core::ffi::c_void, metadata: core::mem::MaybeUninit, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::Add(this, windows_core::from_raw_borrowed(&file), core::mem::transmute(&metadata)) { Ok(ok__) => { @@ -55,24 +46,15 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddOrReplaceOverloadDefaultMetadata(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, file: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn AddOrReplaceOverloadDefaultMetadata(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, file: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageItemAccessList_Impl::AddOrReplaceOverloadDefaultMetadata(this, core::mem::transmute(&token), windows_core::from_raw_borrowed(&file)).into() } - unsafe extern "system" fn AddOrReplace(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, file: *mut core::ffi::c_void, metadata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn AddOrReplace(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, file: *mut core::ffi::c_void, metadata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageItemAccessList_Impl::AddOrReplace(this, core::mem::transmute(&token), windows_core::from_raw_borrowed(&file), core::mem::transmute(&metadata)).into() } - unsafe extern "system" fn GetItemAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn GetItemAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::GetItemAsync(this, core::mem::transmute(&token)) { Ok(ok__) => { @@ -83,10 +65,7 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn GetFileAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::GetFileAsync(this, core::mem::transmute(&token)) { Ok(ok__) => { @@ -97,10 +76,7 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolderAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn GetFolderAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::GetFolderAsync(this, core::mem::transmute(&token)) { Ok(ok__) => { @@ -111,10 +87,7 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemWithOptionsAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, options: AccessCacheOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn GetItemWithOptionsAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, options: AccessCacheOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::GetItemWithOptionsAsync(this, core::mem::transmute(&token), options) { Ok(ok__) => { @@ -125,10 +98,7 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileWithOptionsAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, options: AccessCacheOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn GetFileWithOptionsAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, options: AccessCacheOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::GetFileWithOptionsAsync(this, core::mem::transmute(&token), options) { Ok(ok__) => { @@ -139,10 +109,7 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolderWithOptionsAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, options: AccessCacheOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn GetFolderWithOptionsAsync(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, options: AccessCacheOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::GetFolderWithOptionsAsync(this, core::mem::transmute(&token), options) { Ok(ok__) => { @@ -153,17 +120,11 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageItemAccessList_Impl::Remove(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn ContainsItem(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn ContainsItem(this: *mut core::ffi::c_void, token: core::mem::MaybeUninit, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::ContainsItem(this, core::mem::transmute(&token)) { Ok(ok__) => { @@ -173,17 +134,11 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageItemAccessList_Impl::Clear(this).into() } - unsafe extern "system" fn CheckAccess(this: *mut core::ffi::c_void, file: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn CheckAccess(this: *mut core::ffi::c_void, file: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::CheckAccess(this, windows_core::from_raw_borrowed(&file)) { Ok(ok__) => { @@ -193,10 +148,7 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Entries(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn Entries(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::Entries(this) { Ok(ok__) => { @@ -207,10 +159,7 @@ impl IStorageItemAccessList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaximumItemsAllowed(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IStorageItemAccessList_Impl, - { + unsafe extern "system" fn MaximumItemsAllowed(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemAccessList_Impl::MaximumItemsAllowed(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Storage/BulkAccess/impl.rs b/crates/libs/windows/src/Windows/Storage/BulkAccess/impl.rs index 113e1b4e83..ba099f6a52 100644 --- a/crates/libs/windows/src/Windows/Storage/BulkAccess/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/BulkAccess/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] -pub trait IStorageItemInformation_Impl: Sized { +pub trait IStorageItemInformation_Impl: Sized + windows_core::IUnknownImpl { fn MusicProperties(&self) -> windows_core::Result; fn VideoProperties(&self) -> windows_core::Result; fn ImageProperties(&self) -> windows_core::Result; @@ -17,14 +17,8 @@ impl windows_core::RuntimeName for IStorageItemInformation { } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] impl IStorageItemInformation_Vtbl { - pub const fn new() -> IStorageItemInformation_Vtbl - where - Identity: IStorageItemInformation_Impl, - { - unsafe extern "system" fn MusicProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemInformation_Impl, - { + pub const fn new() -> IStorageItemInformation_Vtbl { + unsafe extern "system" fn MusicProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemInformation_Impl::MusicProperties(this) { Ok(ok__) => { @@ -35,10 +29,7 @@ impl IStorageItemInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VideoProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemInformation_Impl, - { + unsafe extern "system" fn VideoProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemInformation_Impl::VideoProperties(this) { Ok(ok__) => { @@ -49,10 +40,7 @@ impl IStorageItemInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImageProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemInformation_Impl, - { + unsafe extern "system" fn ImageProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemInformation_Impl::ImageProperties(this) { Ok(ok__) => { @@ -63,10 +51,7 @@ impl IStorageItemInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DocumentProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemInformation_Impl, - { + unsafe extern "system" fn DocumentProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemInformation_Impl::DocumentProperties(this) { Ok(ok__) => { @@ -77,10 +62,7 @@ impl IStorageItemInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BasicProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemInformation_Impl, - { + unsafe extern "system" fn BasicProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemInformation_Impl::BasicProperties(this) { Ok(ok__) => { @@ -91,10 +73,7 @@ impl IStorageItemInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Thumbnail(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemInformation_Impl, - { + unsafe extern "system" fn Thumbnail(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemInformation_Impl::Thumbnail(this) { Ok(ok__) => { @@ -105,10 +84,7 @@ impl IStorageItemInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ThumbnailUpdated(this: *mut core::ffi::c_void, changedhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageItemInformation_Impl, - { + unsafe extern "system" fn ThumbnailUpdated(this: *mut core::ffi::c_void, changedhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemInformation_Impl::ThumbnailUpdated(this, windows_core::from_raw_borrowed(&changedhandler)) { Ok(ok__) => { @@ -118,17 +94,11 @@ impl IStorageItemInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveThumbnailUpdated(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageItemInformation_Impl, - { + unsafe extern "system" fn RemoveThumbnailUpdated(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageItemInformation_Impl::RemoveThumbnailUpdated(this, core::mem::transmute(&eventcookie)).into() } - unsafe extern "system" fn PropertiesUpdated(this: *mut core::ffi::c_void, changedhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageItemInformation_Impl, - { + unsafe extern "system" fn PropertiesUpdated(this: *mut core::ffi::c_void, changedhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemInformation_Impl::PropertiesUpdated(this, windows_core::from_raw_borrowed(&changedhandler)) { Ok(ok__) => { @@ -138,10 +108,7 @@ impl IStorageItemInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePropertiesUpdated(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageItemInformation_Impl, - { + unsafe extern "system" fn RemovePropertiesUpdated(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageItemInformation_Impl::RemovePropertiesUpdated(this, core::mem::transmute(&eventcookie)).into() } diff --git a/crates/libs/windows/src/Windows/Storage/FileProperties/impl.rs b/crates/libs/windows/src/Windows/Storage/FileProperties/impl.rs index 14791b2bbd..e0161a6b6f 100644 --- a/crates/libs/windows/src/Windows/Storage/FileProperties/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/FileProperties/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Foundation_Collections")] -pub trait IStorageItemExtraProperties_Impl: Sized { +pub trait IStorageItemExtraProperties_Impl: Sized + windows_core::IUnknownImpl { fn RetrievePropertiesAsync(&self, propertiestoretrieve: Option<&super::super::Foundation::Collections::IIterable>) -> windows_core::Result>>; fn SavePropertiesAsync(&self, propertiestosave: Option<&super::super::Foundation::Collections::IIterable>>) -> windows_core::Result; fn SavePropertiesAsyncOverloadDefault(&self) -> windows_core::Result; @@ -10,14 +10,8 @@ impl windows_core::RuntimeName for IStorageItemExtraProperties { } #[cfg(feature = "Foundation_Collections")] impl IStorageItemExtraProperties_Vtbl { - pub const fn new() -> IStorageItemExtraProperties_Vtbl - where - Identity: IStorageItemExtraProperties_Impl, - { - unsafe extern "system" fn RetrievePropertiesAsync(this: *mut core::ffi::c_void, propertiestoretrieve: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemExtraProperties_Impl, - { + pub const fn new() -> IStorageItemExtraProperties_Vtbl { + unsafe extern "system" fn RetrievePropertiesAsync(this: *mut core::ffi::c_void, propertiestoretrieve: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemExtraProperties_Impl::RetrievePropertiesAsync(this, windows_core::from_raw_borrowed(&propertiestoretrieve)) { Ok(ok__) => { @@ -28,10 +22,7 @@ impl IStorageItemExtraProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SavePropertiesAsync(this: *mut core::ffi::c_void, propertiestosave: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemExtraProperties_Impl, - { + unsafe extern "system" fn SavePropertiesAsync(this: *mut core::ffi::c_void, propertiestosave: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemExtraProperties_Impl::SavePropertiesAsync(this, windows_core::from_raw_borrowed(&propertiestosave)) { Ok(ok__) => { @@ -42,10 +33,7 @@ impl IStorageItemExtraProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SavePropertiesAsyncOverloadDefault(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemExtraProperties_Impl, - { + unsafe extern "system" fn SavePropertiesAsyncOverloadDefault(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemExtraProperties_Impl::SavePropertiesAsyncOverloadDefault(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Storage/Provider/impl.rs b/crates/libs/windows/src/Windows/Storage/Provider/impl.rs index 076ed6bcc5..99c337c05c 100644 --- a/crates/libs/windows/src/Windows/Storage/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/Provider/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Foundation_Collections")] -pub trait IStorageProviderItemPropertySource_Impl: Sized { +pub trait IStorageProviderItemPropertySource_Impl: Sized + windows_core::IUnknownImpl { fn GetItemProperties(&self, itempath: &windows_core::HSTRING) -> windows_core::Result>; } #[cfg(feature = "Foundation_Collections")] @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for IStorageProviderItemPropertySource { } #[cfg(feature = "Foundation_Collections")] impl IStorageProviderItemPropertySource_Vtbl { - pub const fn new() -> IStorageProviderItemPropertySource_Vtbl - where - Identity: IStorageProviderItemPropertySource_Impl, - { - unsafe extern "system" fn GetItemProperties(this: *mut core::ffi::c_void, itempath: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderItemPropertySource_Impl, - { + pub const fn new() -> IStorageProviderItemPropertySource_Vtbl { + unsafe extern "system" fn GetItemProperties(this: *mut core::ffi::c_void, itempath: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderItemPropertySource_Impl::GetItemProperties(this, core::mem::transmute(&itempath)) { Ok(ok__) => { @@ -35,7 +29,7 @@ impl IStorageProviderItemPropertySource_Vtbl { iid == &::IID } } -pub trait IStorageProviderKnownFolderSyncInfoSource_Impl: Sized { +pub trait IStorageProviderKnownFolderSyncInfoSource_Impl: Sized + windows_core::IUnknownImpl { fn GetKnownFolderSyncInfo(&self) -> windows_core::Result; fn KnownFolderSyncInfoChanged(&self, handler: Option<&super::super::Foundation::TypedEventHandler>) -> windows_core::Result; fn RemoveKnownFolderSyncInfoChanged(&self, token: &super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()>; @@ -44,14 +38,8 @@ impl windows_core::RuntimeName for IStorageProviderKnownFolderSyncInfoSource { const NAME: &'static str = "Windows.Storage.Provider.IStorageProviderKnownFolderSyncInfoSource"; } impl IStorageProviderKnownFolderSyncInfoSource_Vtbl { - pub const fn new() -> IStorageProviderKnownFolderSyncInfoSource_Vtbl - where - Identity: IStorageProviderKnownFolderSyncInfoSource_Impl, - { - unsafe extern "system" fn GetKnownFolderSyncInfo(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderKnownFolderSyncInfoSource_Impl, - { + pub const fn new() -> IStorageProviderKnownFolderSyncInfoSource_Vtbl { + unsafe extern "system" fn GetKnownFolderSyncInfo(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderKnownFolderSyncInfoSource_Impl::GetKnownFolderSyncInfo(this) { Ok(ok__) => { @@ -62,10 +50,7 @@ impl IStorageProviderKnownFolderSyncInfoSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KnownFolderSyncInfoChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageProviderKnownFolderSyncInfoSource_Impl, - { + unsafe extern "system" fn KnownFolderSyncInfoChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderKnownFolderSyncInfoSource_Impl::KnownFolderSyncInfoChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -75,10 +60,7 @@ impl IStorageProviderKnownFolderSyncInfoSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveKnownFolderSyncInfoChanged(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageProviderKnownFolderSyncInfoSource_Impl, - { + unsafe extern "system" fn RemoveKnownFolderSyncInfoChanged(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageProviderKnownFolderSyncInfoSource_Impl::RemoveKnownFolderSyncInfoChanged(this, core::mem::transmute(&token)).into() } @@ -93,21 +75,15 @@ impl IStorageProviderKnownFolderSyncInfoSource_Vtbl { iid == &::IID } } -pub trait IStorageProviderKnownFolderSyncInfoSourceFactory_Impl: Sized { +pub trait IStorageProviderKnownFolderSyncInfoSourceFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetKnownFolderSyncInfoSource(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IStorageProviderKnownFolderSyncInfoSourceFactory { const NAME: &'static str = "Windows.Storage.Provider.IStorageProviderKnownFolderSyncInfoSourceFactory"; } impl IStorageProviderKnownFolderSyncInfoSourceFactory_Vtbl { - pub const fn new() -> IStorageProviderKnownFolderSyncInfoSourceFactory_Vtbl - where - Identity: IStorageProviderKnownFolderSyncInfoSourceFactory_Impl, - { - unsafe extern "system" fn GetKnownFolderSyncInfoSource(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderKnownFolderSyncInfoSourceFactory_Impl, - { + pub const fn new() -> IStorageProviderKnownFolderSyncInfoSourceFactory_Vtbl { + unsafe extern "system" fn GetKnownFolderSyncInfoSource(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderKnownFolderSyncInfoSourceFactory_Impl::GetKnownFolderSyncInfoSource(this) { Ok(ok__) => { @@ -127,21 +103,15 @@ impl IStorageProviderKnownFolderSyncInfoSourceFactory_Vtbl { iid == &::IID } } -pub trait IStorageProviderPropertyCapabilities_Impl: Sized { +pub trait IStorageProviderPropertyCapabilities_Impl: Sized + windows_core::IUnknownImpl { fn IsPropertySupported(&self, propertycanonicalname: &windows_core::HSTRING) -> windows_core::Result; } impl windows_core::RuntimeName for IStorageProviderPropertyCapabilities { const NAME: &'static str = "Windows.Storage.Provider.IStorageProviderPropertyCapabilities"; } impl IStorageProviderPropertyCapabilities_Vtbl { - pub const fn new() -> IStorageProviderPropertyCapabilities_Vtbl - where - Identity: IStorageProviderPropertyCapabilities_Impl, - { - unsafe extern "system" fn IsPropertySupported(this: *mut core::ffi::c_void, propertycanonicalname: core::mem::MaybeUninit, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IStorageProviderPropertyCapabilities_Impl, - { + pub const fn new() -> IStorageProviderPropertyCapabilities_Vtbl { + unsafe extern "system" fn IsPropertySupported(this: *mut core::ffi::c_void, propertycanonicalname: core::mem::MaybeUninit, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderPropertyCapabilities_Impl::IsPropertySupported(this, core::mem::transmute(&propertycanonicalname)) { Ok(ok__) => { @@ -160,7 +130,7 @@ impl IStorageProviderPropertyCapabilities_Vtbl { iid == &::IID } } -pub trait IStorageProviderStatusUISource_Impl: Sized { +pub trait IStorageProviderStatusUISource_Impl: Sized + windows_core::IUnknownImpl { fn GetStatusUI(&self) -> windows_core::Result; fn StatusUIChanged(&self, handler: Option<&super::super::Foundation::TypedEventHandler>) -> windows_core::Result; fn RemoveStatusUIChanged(&self, token: &super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()>; @@ -169,14 +139,8 @@ impl windows_core::RuntimeName for IStorageProviderStatusUISource { const NAME: &'static str = "Windows.Storage.Provider.IStorageProviderStatusUISource"; } impl IStorageProviderStatusUISource_Vtbl { - pub const fn new() -> IStorageProviderStatusUISource_Vtbl - where - Identity: IStorageProviderStatusUISource_Impl, - { - unsafe extern "system" fn GetStatusUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderStatusUISource_Impl, - { + pub const fn new() -> IStorageProviderStatusUISource_Vtbl { + unsafe extern "system" fn GetStatusUI(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderStatusUISource_Impl::GetStatusUI(this) { Ok(ok__) => { @@ -187,10 +151,7 @@ impl IStorageProviderStatusUISource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusUIChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageProviderStatusUISource_Impl, - { + unsafe extern "system" fn StatusUIChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderStatusUISource_Impl::StatusUIChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -200,10 +161,7 @@ impl IStorageProviderStatusUISource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveStatusUIChanged(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageProviderStatusUISource_Impl, - { + unsafe extern "system" fn RemoveStatusUIChanged(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageProviderStatusUISource_Impl::RemoveStatusUIChanged(this, core::mem::transmute(&token)).into() } @@ -218,21 +176,15 @@ impl IStorageProviderStatusUISource_Vtbl { iid == &::IID } } -pub trait IStorageProviderStatusUISourceFactory_Impl: Sized { +pub trait IStorageProviderStatusUISourceFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetStatusUISource(&self, syncrootid: &windows_core::HSTRING) -> windows_core::Result; } impl windows_core::RuntimeName for IStorageProviderStatusUISourceFactory { const NAME: &'static str = "Windows.Storage.Provider.IStorageProviderStatusUISourceFactory"; } impl IStorageProviderStatusUISourceFactory_Vtbl { - pub const fn new() -> IStorageProviderStatusUISourceFactory_Vtbl - where - Identity: IStorageProviderStatusUISourceFactory_Impl, - { - unsafe extern "system" fn GetStatusUISource(this: *mut core::ffi::c_void, syncrootid: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderStatusUISourceFactory_Impl, - { + pub const fn new() -> IStorageProviderStatusUISourceFactory_Vtbl { + unsafe extern "system" fn GetStatusUISource(this: *mut core::ffi::c_void, syncrootid: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderStatusUISourceFactory_Impl::GetStatusUISource(this, core::mem::transmute(&syncrootid)) { Ok(ok__) => { @@ -252,7 +204,7 @@ impl IStorageProviderStatusUISourceFactory_Vtbl { iid == &::IID } } -pub trait IStorageProviderUICommand_Impl: Sized { +pub trait IStorageProviderUICommand_Impl: Sized + windows_core::IUnknownImpl { fn Label(&self) -> windows_core::Result; fn Description(&self) -> windows_core::Result; fn Icon(&self) -> windows_core::Result; @@ -263,14 +215,8 @@ impl windows_core::RuntimeName for IStorageProviderUICommand { const NAME: &'static str = "Windows.Storage.Provider.IStorageProviderUICommand"; } impl IStorageProviderUICommand_Vtbl { - pub const fn new() -> IStorageProviderUICommand_Vtbl - where - Identity: IStorageProviderUICommand_Impl, - { - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageProviderUICommand_Impl, - { + pub const fn new() -> IStorageProviderUICommand_Vtbl { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderUICommand_Impl::Label(this) { Ok(ok__) => { @@ -281,10 +227,7 @@ impl IStorageProviderUICommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageProviderUICommand_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderUICommand_Impl::Description(this) { Ok(ok__) => { @@ -295,10 +238,7 @@ impl IStorageProviderUICommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Icon(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderUICommand_Impl, - { + unsafe extern "system" fn Icon(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderUICommand_Impl::Icon(this) { Ok(ok__) => { @@ -309,10 +249,7 @@ impl IStorageProviderUICommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, result__: *mut StorageProviderUICommandState) -> windows_core::HRESULT - where - Identity: IStorageProviderUICommand_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, result__: *mut StorageProviderUICommandState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderUICommand_Impl::State(this) { Ok(ok__) => { @@ -322,10 +259,7 @@ impl IStorageProviderUICommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderUICommand_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageProviderUICommand_Impl::Invoke(this).into() } @@ -342,7 +276,7 @@ impl IStorageProviderUICommand_Vtbl { iid == &::IID } } -pub trait IStorageProviderUriSource_Impl: Sized { +pub trait IStorageProviderUriSource_Impl: Sized + windows_core::IUnknownImpl { fn GetPathForContentUri(&self, contenturi: &windows_core::HSTRING, result: Option<&StorageProviderGetPathForContentUriResult>) -> windows_core::Result<()>; fn GetContentInfoForPath(&self, path: &windows_core::HSTRING, result: Option<&StorageProviderGetContentInfoForPathResult>) -> windows_core::Result<()>; } @@ -350,21 +284,12 @@ impl windows_core::RuntimeName for IStorageProviderUriSource { const NAME: &'static str = "Windows.Storage.Provider.IStorageProviderUriSource"; } impl IStorageProviderUriSource_Vtbl { - pub const fn new() -> IStorageProviderUriSource_Vtbl - where - Identity: IStorageProviderUriSource_Impl, - { - unsafe extern "system" fn GetPathForContentUri(this: *mut core::ffi::c_void, contenturi: core::mem::MaybeUninit, result: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderUriSource_Impl, - { + pub const fn new() -> IStorageProviderUriSource_Vtbl { + unsafe extern "system" fn GetPathForContentUri(this: *mut core::ffi::c_void, contenturi: core::mem::MaybeUninit, result: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageProviderUriSource_Impl::GetPathForContentUri(this, core::mem::transmute(&contenturi), windows_core::from_raw_borrowed(&result)).into() } - unsafe extern "system" fn GetContentInfoForPath(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, result: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderUriSource_Impl, - { + unsafe extern "system" fn GetContentInfoForPath(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, result: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageProviderUriSource_Impl::GetContentInfoForPath(this, core::mem::transmute(&path), windows_core::from_raw_borrowed(&result)).into() } diff --git a/crates/libs/windows/src/Windows/Storage/Search/impl.rs b/crates/libs/windows/src/Windows/Storage/Search/impl.rs index 5f613ee36b..1fe12c3218 100644 --- a/crates/libs/windows/src/Windows/Storage/Search/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/Search/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] -pub trait IIndexableContent_Impl: Sized { +pub trait IIndexableContent_Impl: Sized + windows_core::IUnknownImpl { fn Id(&self) -> windows_core::Result; fn SetId(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn Properties(&self) -> windows_core::Result>; @@ -14,14 +14,8 @@ impl windows_core::RuntimeName for IIndexableContent { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] impl IIndexableContent_Vtbl { - pub const fn new() -> IIndexableContent_Vtbl - where - Identity: IIndexableContent_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIndexableContent_Impl, - { + pub const fn new() -> IIndexableContent_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIndexableContent_Impl::Id(this) { Ok(ok__) => { @@ -32,17 +26,11 @@ impl IIndexableContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIndexableContent_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIndexableContent_Impl::SetId(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIndexableContent_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIndexableContent_Impl::Properties(this) { Ok(ok__) => { @@ -53,10 +41,7 @@ impl IIndexableContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIndexableContent_Impl, - { + unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIndexableContent_Impl::Stream(this) { Ok(ok__) => { @@ -67,17 +52,11 @@ impl IIndexableContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStream(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIndexableContent_Impl, - { + unsafe extern "system" fn SetStream(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIndexableContent_Impl::SetStream(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn StreamContentType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIndexableContent_Impl, - { + unsafe extern "system" fn StreamContentType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIndexableContent_Impl::StreamContentType(this) { Ok(ok__) => { @@ -88,10 +67,7 @@ impl IIndexableContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamContentType(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIndexableContent_Impl, - { + unsafe extern "system" fn SetStreamContentType(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIndexableContent_Impl::SetStreamContentType(this, core::mem::transmute(&value)).into() } @@ -111,7 +87,7 @@ impl IIndexableContent_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IStorageFolderQueryOperations_Impl: Sized { +pub trait IStorageFolderQueryOperations_Impl: Sized + windows_core::IUnknownImpl { fn GetIndexedStateAsync(&self) -> windows_core::Result>; fn CreateFileQueryOverloadDefault(&self) -> windows_core::Result; fn CreateFileQuery(&self, query: CommonFileQuery) -> windows_core::Result; @@ -136,14 +112,8 @@ impl windows_core::RuntimeName for IStorageFolderQueryOperations { } #[cfg(feature = "Foundation_Collections")] impl IStorageFolderQueryOperations_Vtbl { - pub const fn new() -> IStorageFolderQueryOperations_Vtbl - where - Identity: IStorageFolderQueryOperations_Impl, - { - unsafe extern "system" fn GetIndexedStateAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + pub const fn new() -> IStorageFolderQueryOperations_Vtbl { + unsafe extern "system" fn GetIndexedStateAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::GetIndexedStateAsync(this) { Ok(ok__) => { @@ -154,10 +124,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileQueryOverloadDefault(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn CreateFileQueryOverloadDefault(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::CreateFileQueryOverloadDefault(this) { Ok(ok__) => { @@ -168,10 +135,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileQuery(this: *mut core::ffi::c_void, query: CommonFileQuery, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn CreateFileQuery(this: *mut core::ffi::c_void, query: CommonFileQuery, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::CreateFileQuery(this, query) { Ok(ok__) => { @@ -182,10 +146,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileQueryWithOptions(this: *mut core::ffi::c_void, queryoptions: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn CreateFileQueryWithOptions(this: *mut core::ffi::c_void, queryoptions: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::CreateFileQueryWithOptions(this, windows_core::from_raw_borrowed(&queryoptions)) { Ok(ok__) => { @@ -196,10 +157,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFolderQueryOverloadDefault(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn CreateFolderQueryOverloadDefault(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::CreateFolderQueryOverloadDefault(this) { Ok(ok__) => { @@ -210,10 +168,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFolderQuery(this: *mut core::ffi::c_void, query: CommonFolderQuery, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn CreateFolderQuery(this: *mut core::ffi::c_void, query: CommonFolderQuery, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::CreateFolderQuery(this, query) { Ok(ok__) => { @@ -224,10 +179,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFolderQueryWithOptions(this: *mut core::ffi::c_void, queryoptions: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn CreateFolderQueryWithOptions(this: *mut core::ffi::c_void, queryoptions: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::CreateFolderQueryWithOptions(this, windows_core::from_raw_borrowed(&queryoptions)) { Ok(ok__) => { @@ -238,10 +190,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItemQuery(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn CreateItemQuery(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::CreateItemQuery(this) { Ok(ok__) => { @@ -252,10 +201,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItemQueryWithOptions(this: *mut core::ffi::c_void, queryoptions: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn CreateItemQueryWithOptions(this: *mut core::ffi::c_void, queryoptions: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::CreateItemQueryWithOptions(this, windows_core::from_raw_borrowed(&queryoptions)) { Ok(ok__) => { @@ -266,10 +212,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilesAsync(this: *mut core::ffi::c_void, query: CommonFileQuery, startindex: u32, maxitemstoretrieve: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn GetFilesAsync(this: *mut core::ffi::c_void, query: CommonFileQuery, startindex: u32, maxitemstoretrieve: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::GetFilesAsync(this, query, startindex, maxitemstoretrieve) { Ok(ok__) => { @@ -280,10 +223,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilesAsyncOverloadDefaultStartAndCount(this: *mut core::ffi::c_void, query: CommonFileQuery, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn GetFilesAsyncOverloadDefaultStartAndCount(this: *mut core::ffi::c_void, query: CommonFileQuery, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::GetFilesAsyncOverloadDefaultStartAndCount(this, query) { Ok(ok__) => { @@ -294,10 +234,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFoldersAsync(this: *mut core::ffi::c_void, query: CommonFolderQuery, startindex: u32, maxitemstoretrieve: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn GetFoldersAsync(this: *mut core::ffi::c_void, query: CommonFolderQuery, startindex: u32, maxitemstoretrieve: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::GetFoldersAsync(this, query, startindex, maxitemstoretrieve) { Ok(ok__) => { @@ -308,10 +245,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFoldersAsyncOverloadDefaultStartAndCount(this: *mut core::ffi::c_void, query: CommonFolderQuery, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn GetFoldersAsyncOverloadDefaultStartAndCount(this: *mut core::ffi::c_void, query: CommonFolderQuery, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::GetFoldersAsyncOverloadDefaultStartAndCount(this, query) { Ok(ok__) => { @@ -322,10 +256,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemsAsync(this: *mut core::ffi::c_void, startindex: u32, maxitemstoretrieve: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn GetItemsAsync(this: *mut core::ffi::c_void, startindex: u32, maxitemstoretrieve: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::GetItemsAsync(this, startindex, maxitemstoretrieve) { Ok(ok__) => { @@ -336,10 +267,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AreQueryOptionsSupported(this: *mut core::ffi::c_void, queryoptions: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn AreQueryOptionsSupported(this: *mut core::ffi::c_void, queryoptions: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::AreQueryOptionsSupported(this, windows_core::from_raw_borrowed(&queryoptions)) { Ok(ok__) => { @@ -349,10 +277,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCommonFolderQuerySupported(this: *mut core::ffi::c_void, query: CommonFolderQuery, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn IsCommonFolderQuerySupported(this: *mut core::ffi::c_void, query: CommonFolderQuery, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::IsCommonFolderQuerySupported(this, query) { Ok(ok__) => { @@ -362,10 +287,7 @@ impl IStorageFolderQueryOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCommonFileQuerySupported(this: *mut core::ffi::c_void, query: CommonFileQuery, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IStorageFolderQueryOperations_Impl, - { + unsafe extern "system" fn IsCommonFileQuerySupported(this: *mut core::ffi::c_void, query: CommonFileQuery, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderQueryOperations_Impl::IsCommonFileQuerySupported(this, query) { Ok(ok__) => { @@ -400,7 +322,7 @@ impl IStorageFolderQueryOperations_Vtbl { iid == &::IID } } -pub trait IStorageQueryResultBase_Impl: Sized { +pub trait IStorageQueryResultBase_Impl: Sized + windows_core::IUnknownImpl { fn GetItemCountAsync(&self) -> windows_core::Result>; fn Folder(&self) -> windows_core::Result; fn ContentsChanged(&self, handler: Option<&super::super::Foundation::TypedEventHandler>) -> windows_core::Result; @@ -415,14 +337,8 @@ impl windows_core::RuntimeName for IStorageQueryResultBase { const NAME: &'static str = "Windows.Storage.Search.IStorageQueryResultBase"; } impl IStorageQueryResultBase_Vtbl { - pub const fn new() -> IStorageQueryResultBase_Vtbl - where - Identity: IStorageQueryResultBase_Impl, - { - unsafe extern "system" fn GetItemCountAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageQueryResultBase_Impl, - { + pub const fn new() -> IStorageQueryResultBase_Vtbl { + unsafe extern "system" fn GetItemCountAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageQueryResultBase_Impl::GetItemCountAsync(this) { Ok(ok__) => { @@ -433,10 +349,7 @@ impl IStorageQueryResultBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Folder(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageQueryResultBase_Impl, - { + unsafe extern "system" fn Folder(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageQueryResultBase_Impl::Folder(this) { Ok(ok__) => { @@ -447,10 +360,7 @@ impl IStorageQueryResultBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContentsChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageQueryResultBase_Impl, - { + unsafe extern "system" fn ContentsChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageQueryResultBase_Impl::ContentsChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -460,17 +370,11 @@ impl IStorageQueryResultBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveContentsChanged(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageQueryResultBase_Impl, - { + unsafe extern "system" fn RemoveContentsChanged(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageQueryResultBase_Impl::RemoveContentsChanged(this, core::mem::transmute(&eventcookie)).into() } - unsafe extern "system" fn OptionsChanged(this: *mut core::ffi::c_void, changedhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageQueryResultBase_Impl, - { + unsafe extern "system" fn OptionsChanged(this: *mut core::ffi::c_void, changedhandler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageQueryResultBase_Impl::OptionsChanged(this, windows_core::from_raw_borrowed(&changedhandler)) { Ok(ok__) => { @@ -480,17 +384,11 @@ impl IStorageQueryResultBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveOptionsChanged(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IStorageQueryResultBase_Impl, - { + unsafe extern "system" fn RemoveOptionsChanged(this: *mut core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageQueryResultBase_Impl::RemoveOptionsChanged(this, core::mem::transmute(&eventcookie)).into() } - unsafe extern "system" fn FindStartIndexAsync(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageQueryResultBase_Impl, - { + unsafe extern "system" fn FindStartIndexAsync(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageQueryResultBase_Impl::FindStartIndexAsync(this, windows_core::from_raw_borrowed(&value)) { Ok(ok__) => { @@ -501,10 +399,7 @@ impl IStorageQueryResultBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentQueryOptions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageQueryResultBase_Impl, - { + unsafe extern "system" fn GetCurrentQueryOptions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageQueryResultBase_Impl::GetCurrentQueryOptions(this) { Ok(ok__) => { @@ -515,10 +410,7 @@ impl IStorageQueryResultBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplyNewQueryOptions(this: *mut core::ffi::c_void, newqueryoptions: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageQueryResultBase_Impl, - { + unsafe extern "system" fn ApplyNewQueryOptions(this: *mut core::ffi::c_void, newqueryoptions: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageQueryResultBase_Impl::ApplyNewQueryOptions(this, windows_core::from_raw_borrowed(&newqueryoptions)).into() } diff --git a/crates/libs/windows/src/Windows/Storage/Streams/impl.rs b/crates/libs/windows/src/Windows/Storage/Streams/impl.rs index d7c3227861..ccf7cdcc7f 100644 --- a/crates/libs/windows/src/Windows/Storage/Streams/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/Streams/impl.rs @@ -1,4 +1,4 @@ -pub trait IBuffer_Impl: Sized { +pub trait IBuffer_Impl: Sized + windows_core::IUnknownImpl { fn Capacity(&self) -> windows_core::Result; fn Length(&self) -> windows_core::Result; fn SetLength(&self, value: u32) -> windows_core::Result<()>; @@ -7,14 +7,8 @@ impl windows_core::RuntimeName for IBuffer { const NAME: &'static str = "Windows.Storage.Streams.IBuffer"; } impl IBuffer_Vtbl { - pub const fn new() -> IBuffer_Vtbl - where - Identity: IBuffer_Impl, - { - unsafe extern "system" fn Capacity(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IBuffer_Impl, - { + pub const fn new() -> IBuffer_Vtbl { + unsafe extern "system" fn Capacity(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBuffer_Impl::Capacity(this) { Ok(ok__) => { @@ -24,10 +18,7 @@ impl IBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IBuffer_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBuffer_Impl::Length(this) { Ok(ok__) => { @@ -37,10 +28,7 @@ impl IBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: IBuffer_Impl, - { + unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBuffer_Impl::SetLength(this, value).into() } @@ -55,21 +43,15 @@ impl IBuffer_Vtbl { iid == &::IID } } -pub trait IContentTypeProvider_Impl: Sized { +pub trait IContentTypeProvider_Impl: Sized + windows_core::IUnknownImpl { fn ContentType(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IContentTypeProvider { const NAME: &'static str = "Windows.Storage.Streams.IContentTypeProvider"; } impl IContentTypeProvider_Vtbl { - pub const fn new() -> IContentTypeProvider_Vtbl - where - Identity: IContentTypeProvider_Impl, - { - unsafe extern "system" fn ContentType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContentTypeProvider_Impl, - { + pub const fn new() -> IContentTypeProvider_Vtbl { + unsafe extern "system" fn ContentType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContentTypeProvider_Impl::ContentType(this) { Ok(ok__) => { @@ -86,7 +68,7 @@ impl IContentTypeProvider_Vtbl { iid == &::IID } } -pub trait IDataReader_Impl: Sized { +pub trait IDataReader_Impl: Sized + windows_core::IUnknownImpl { fn UnconsumedBufferLength(&self) -> windows_core::Result; fn UnicodeEncoding(&self) -> windows_core::Result; fn SetUnicodeEncoding(&self, value: UnicodeEncoding) -> windows_core::Result<()>; @@ -118,14 +100,8 @@ impl windows_core::RuntimeName for IDataReader { const NAME: &'static str = "Windows.Storage.Streams.IDataReader"; } impl IDataReader_Vtbl { - pub const fn new() -> IDataReader_Vtbl - where - Identity: IDataReader_Impl, - { - unsafe extern "system" fn UnconsumedBufferLength(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + pub const fn new() -> IDataReader_Vtbl { + unsafe extern "system" fn UnconsumedBufferLength(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::UnconsumedBufferLength(this) { Ok(ok__) => { @@ -135,10 +111,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnicodeEncoding(this: *mut core::ffi::c_void, result__: *mut UnicodeEncoding) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn UnicodeEncoding(this: *mut core::ffi::c_void, result__: *mut UnicodeEncoding) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::UnicodeEncoding(this) { Ok(ok__) => { @@ -148,17 +121,11 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUnicodeEncoding(this: *mut core::ffi::c_void, value: UnicodeEncoding) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn SetUnicodeEncoding(this: *mut core::ffi::c_void, value: UnicodeEncoding) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataReader_Impl::SetUnicodeEncoding(this, value).into() } - unsafe extern "system" fn ByteOrder(this: *mut core::ffi::c_void, result__: *mut ByteOrder) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ByteOrder(this: *mut core::ffi::c_void, result__: *mut ByteOrder) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ByteOrder(this) { Ok(ok__) => { @@ -168,17 +135,11 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetByteOrder(this: *mut core::ffi::c_void, value: ByteOrder) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn SetByteOrder(this: *mut core::ffi::c_void, value: ByteOrder) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataReader_Impl::SetByteOrder(this, value).into() } - unsafe extern "system" fn InputStreamOptions(this: *mut core::ffi::c_void, result__: *mut InputStreamOptions) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn InputStreamOptions(this: *mut core::ffi::c_void, result__: *mut InputStreamOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::InputStreamOptions(this) { Ok(ok__) => { @@ -188,17 +149,11 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputStreamOptions(this: *mut core::ffi::c_void, value: InputStreamOptions) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn SetInputStreamOptions(this: *mut core::ffi::c_void, value: InputStreamOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataReader_Impl::SetInputStreamOptions(this, value).into() } - unsafe extern "system" fn ReadByte(this: *mut core::ffi::c_void, result__: *mut u8) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadByte(this: *mut core::ffi::c_void, result__: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadByte(this) { Ok(ok__) => { @@ -208,17 +163,11 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadBytes(this: *mut core::ffi::c_void, value_array_size: u32, value: *mut u8) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadBytes(this: *mut core::ffi::c_void, value_array_size: u32, value: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataReader_Impl::ReadBytes(this, core::slice::from_raw_parts_mut(core::mem::transmute_copy(&value), value_array_size as usize)).into() } - unsafe extern "system" fn ReadBuffer(this: *mut core::ffi::c_void, length: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadBuffer(this: *mut core::ffi::c_void, length: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadBuffer(this, length) { Ok(ok__) => { @@ -229,10 +178,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadBoolean(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadBoolean(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadBoolean(this) { Ok(ok__) => { @@ -242,10 +188,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadGuid(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadGuid(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadGuid(this) { Ok(ok__) => { @@ -255,10 +198,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadInt16(this: *mut core::ffi::c_void, result__: *mut i16) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadInt16(this: *mut core::ffi::c_void, result__: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadInt16(this) { Ok(ok__) => { @@ -268,10 +208,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadInt32(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadInt32(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadInt32(this) { Ok(ok__) => { @@ -281,10 +218,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadInt64(this: *mut core::ffi::c_void, result__: *mut i64) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadInt64(this: *mut core::ffi::c_void, result__: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadInt64(this) { Ok(ok__) => { @@ -294,10 +228,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadUInt16(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadUInt16(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadUInt16(this) { Ok(ok__) => { @@ -307,10 +238,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadUInt32(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadUInt32(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadUInt32(this) { Ok(ok__) => { @@ -320,10 +248,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadUInt64(this: *mut core::ffi::c_void, result__: *mut u64) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadUInt64(this: *mut core::ffi::c_void, result__: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadUInt64(this) { Ok(ok__) => { @@ -333,10 +258,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadSingle(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadSingle(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadSingle(this) { Ok(ok__) => { @@ -346,10 +268,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadDouble(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadDouble(this: *mut core::ffi::c_void, result__: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadDouble(this) { Ok(ok__) => { @@ -359,10 +278,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadString(this: *mut core::ffi::c_void, codeunitcount: u32, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadString(this: *mut core::ffi::c_void, codeunitcount: u32, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadString(this, codeunitcount) { Ok(ok__) => { @@ -373,10 +289,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadDateTime(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadDateTime(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadDateTime(this) { Ok(ok__) => { @@ -386,10 +299,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadTimeSpan(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn ReadTimeSpan(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::ReadTimeSpan(this) { Ok(ok__) => { @@ -399,10 +309,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadAsync(this: *mut core::ffi::c_void, count: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn LoadAsync(this: *mut core::ffi::c_void, count: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::LoadAsync(this, count) { Ok(ok__) => { @@ -413,10 +320,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DetachBuffer(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn DetachBuffer(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::DetachBuffer(this) { Ok(ok__) => { @@ -427,10 +331,7 @@ impl IDataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DetachStream(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataReader_Impl, - { + unsafe extern "system" fn DetachStream(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataReader_Impl::DetachStream(this) { Ok(ok__) => { @@ -475,7 +376,7 @@ impl IDataReader_Vtbl { iid == &::IID } } -pub trait IDataWriter_Impl: Sized { +pub trait IDataWriter_Impl: Sized + windows_core::IUnknownImpl { fn UnstoredBufferLength(&self) -> windows_core::Result; fn UnicodeEncoding(&self) -> windows_core::Result; fn SetUnicodeEncoding(&self, value: UnicodeEncoding) -> windows_core::Result<()>; @@ -508,14 +409,8 @@ impl windows_core::RuntimeName for IDataWriter { const NAME: &'static str = "Windows.Storage.Streams.IDataWriter"; } impl IDataWriter_Vtbl { - pub const fn new() -> IDataWriter_Vtbl - where - Identity: IDataWriter_Impl, - { - unsafe extern "system" fn UnstoredBufferLength(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + pub const fn new() -> IDataWriter_Vtbl { + unsafe extern "system" fn UnstoredBufferLength(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataWriter_Impl::UnstoredBufferLength(this) { Ok(ok__) => { @@ -525,10 +420,7 @@ impl IDataWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnicodeEncoding(this: *mut core::ffi::c_void, result__: *mut UnicodeEncoding) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn UnicodeEncoding(this: *mut core::ffi::c_void, result__: *mut UnicodeEncoding) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataWriter_Impl::UnicodeEncoding(this) { Ok(ok__) => { @@ -538,17 +430,11 @@ impl IDataWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUnicodeEncoding(this: *mut core::ffi::c_void, value: UnicodeEncoding) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn SetUnicodeEncoding(this: *mut core::ffi::c_void, value: UnicodeEncoding) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::SetUnicodeEncoding(this, value).into() } - unsafe extern "system" fn ByteOrder(this: *mut core::ffi::c_void, result__: *mut ByteOrder) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn ByteOrder(this: *mut core::ffi::c_void, result__: *mut ByteOrder) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataWriter_Impl::ByteOrder(this) { Ok(ok__) => { @@ -558,129 +444,75 @@ impl IDataWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetByteOrder(this: *mut core::ffi::c_void, value: ByteOrder) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn SetByteOrder(this: *mut core::ffi::c_void, value: ByteOrder) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::SetByteOrder(this, value).into() } - unsafe extern "system" fn WriteByte(this: *mut core::ffi::c_void, value: u8) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteByte(this: *mut core::ffi::c_void, value: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteByte(this, value).into() } - unsafe extern "system" fn WriteBytes(this: *mut core::ffi::c_void, value_array_size: u32, value: *const u8) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteBytes(this: *mut core::ffi::c_void, value_array_size: u32, value: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteBytes(this, core::slice::from_raw_parts(core::mem::transmute_copy(&value), value_array_size as usize)).into() } - unsafe extern "system" fn WriteBuffer(this: *mut core::ffi::c_void, buffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteBuffer(this: *mut core::ffi::c_void, buffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteBuffer(this, windows_core::from_raw_borrowed(&buffer)).into() } - unsafe extern "system" fn WriteBufferRange(this: *mut core::ffi::c_void, buffer: *mut core::ffi::c_void, start: u32, count: u32) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteBufferRange(this: *mut core::ffi::c_void, buffer: *mut core::ffi::c_void, start: u32, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteBufferRange(this, windows_core::from_raw_borrowed(&buffer), start, count).into() } - unsafe extern "system" fn WriteBoolean(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteBoolean(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteBoolean(this, value).into() } - unsafe extern "system" fn WriteGuid(this: *mut core::ffi::c_void, value: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteGuid(this: *mut core::ffi::c_void, value: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteGuid(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn WriteInt16(this: *mut core::ffi::c_void, value: i16) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteInt16(this: *mut core::ffi::c_void, value: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteInt16(this, value).into() } - unsafe extern "system" fn WriteInt32(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteInt32(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteInt32(this, value).into() } - unsafe extern "system" fn WriteInt64(this: *mut core::ffi::c_void, value: i64) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteInt64(this: *mut core::ffi::c_void, value: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteInt64(this, value).into() } - unsafe extern "system" fn WriteUInt16(this: *mut core::ffi::c_void, value: u16) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteUInt16(this: *mut core::ffi::c_void, value: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteUInt16(this, value).into() } - unsafe extern "system" fn WriteUInt32(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteUInt32(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteUInt32(this, value).into() } - unsafe extern "system" fn WriteUInt64(this: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteUInt64(this: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteUInt64(this, value).into() } - unsafe extern "system" fn WriteSingle(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteSingle(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteSingle(this, value).into() } - unsafe extern "system" fn WriteDouble(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteDouble(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteDouble(this, value).into() } - unsafe extern "system" fn WriteDateTime(this: *mut core::ffi::c_void, value: super::super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteDateTime(this: *mut core::ffi::c_void, value: super::super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteDateTime(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn WriteTimeSpan(this: *mut core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteTimeSpan(this: *mut core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataWriter_Impl::WriteTimeSpan(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn WriteString(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn WriteString(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataWriter_Impl::WriteString(this, core::mem::transmute(&value)) { Ok(ok__) => { @@ -690,10 +522,7 @@ impl IDataWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MeasureString(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn MeasureString(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataWriter_Impl::MeasureString(this, core::mem::transmute(&value)) { Ok(ok__) => { @@ -703,10 +532,7 @@ impl IDataWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StoreAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn StoreAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataWriter_Impl::StoreAsync(this) { Ok(ok__) => { @@ -717,10 +543,7 @@ impl IDataWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FlushAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn FlushAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataWriter_Impl::FlushAsync(this) { Ok(ok__) => { @@ -731,10 +554,7 @@ impl IDataWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DetachBuffer(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn DetachBuffer(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataWriter_Impl::DetachBuffer(this) { Ok(ok__) => { @@ -745,10 +565,7 @@ impl IDataWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DetachStream(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataWriter_Impl, - { + unsafe extern "system" fn DetachStream(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataWriter_Impl::DetachStream(this) { Ok(ok__) => { @@ -794,21 +611,15 @@ impl IDataWriter_Vtbl { iid == &::IID } } -pub trait IInputStream_Impl: Sized + super::super::Foundation::IClosable_Impl { +pub trait IInputStream_Impl: Sized + windows_core::IUnknownImpl + super::super::Foundation::IClosable_Impl { fn ReadAsync(&self, buffer: Option<&IBuffer>, count: u32, options: InputStreamOptions) -> windows_core::Result>; } impl windows_core::RuntimeName for IInputStream { const NAME: &'static str = "Windows.Storage.Streams.IInputStream"; } impl IInputStream_Vtbl { - pub const fn new() -> IInputStream_Vtbl - where - Identity: IInputStream_Impl, - { - unsafe extern "system" fn ReadAsync(this: *mut core::ffi::c_void, buffer: *mut core::ffi::c_void, count: u32, options: InputStreamOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInputStream_Impl, - { + pub const fn new() -> IInputStream_Vtbl { + unsafe extern "system" fn ReadAsync(this: *mut core::ffi::c_void, buffer: *mut core::ffi::c_void, count: u32, options: InputStreamOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInputStream_Impl::ReadAsync(this, windows_core::from_raw_borrowed(&buffer), count, options) { Ok(ok__) => { @@ -825,21 +636,15 @@ impl IInputStream_Vtbl { iid == &::IID } } -pub trait IInputStreamReference_Impl: Sized { +pub trait IInputStreamReference_Impl: Sized + windows_core::IUnknownImpl { fn OpenSequentialReadAsync(&self) -> windows_core::Result>; } impl windows_core::RuntimeName for IInputStreamReference { const NAME: &'static str = "Windows.Storage.Streams.IInputStreamReference"; } impl IInputStreamReference_Vtbl { - pub const fn new() -> IInputStreamReference_Vtbl - where - Identity: IInputStreamReference_Impl, - { - unsafe extern "system" fn OpenSequentialReadAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInputStreamReference_Impl, - { + pub const fn new() -> IInputStreamReference_Vtbl { + unsafe extern "system" fn OpenSequentialReadAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInputStreamReference_Impl::OpenSequentialReadAsync(this) { Ok(ok__) => { @@ -859,7 +664,7 @@ impl IInputStreamReference_Vtbl { iid == &::IID } } -pub trait IOutputStream_Impl: Sized + super::super::Foundation::IClosable_Impl { +pub trait IOutputStream_Impl: Sized + windows_core::IUnknownImpl + super::super::Foundation::IClosable_Impl { fn WriteAsync(&self, buffer: Option<&IBuffer>) -> windows_core::Result>; fn FlushAsync(&self) -> windows_core::Result>; } @@ -867,14 +672,8 @@ impl windows_core::RuntimeName for IOutputStream { const NAME: &'static str = "Windows.Storage.Streams.IOutputStream"; } impl IOutputStream_Vtbl { - pub const fn new() -> IOutputStream_Vtbl - where - Identity: IOutputStream_Impl, - { - unsafe extern "system" fn WriteAsync(this: *mut core::ffi::c_void, buffer: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOutputStream_Impl, - { + pub const fn new() -> IOutputStream_Vtbl { + unsafe extern "system" fn WriteAsync(this: *mut core::ffi::c_void, buffer: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOutputStream_Impl::WriteAsync(this, windows_core::from_raw_borrowed(&buffer)) { Ok(ok__) => { @@ -885,10 +684,7 @@ impl IOutputStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FlushAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOutputStream_Impl, - { + unsafe extern "system" fn FlushAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOutputStream_Impl::FlushAsync(this) { Ok(ok__) => { @@ -910,7 +706,7 @@ impl IOutputStream_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IPropertySetSerializer_Impl: Sized { +pub trait IPropertySetSerializer_Impl: Sized + windows_core::IUnknownImpl { fn Serialize(&self, propertyset: Option<&super::super::Foundation::Collections::IPropertySet>) -> windows_core::Result; fn Deserialize(&self, propertyset: Option<&super::super::Foundation::Collections::IPropertySet>, buffer: Option<&IBuffer>) -> windows_core::Result<()>; } @@ -920,14 +716,8 @@ impl windows_core::RuntimeName for IPropertySetSerializer { } #[cfg(feature = "Foundation_Collections")] impl IPropertySetSerializer_Vtbl { - pub const fn new() -> IPropertySetSerializer_Vtbl - where - Identity: IPropertySetSerializer_Impl, - { - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, propertyset: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySetSerializer_Impl, - { + pub const fn new() -> IPropertySetSerializer_Vtbl { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, propertyset: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertySetSerializer_Impl::Serialize(this, windows_core::from_raw_borrowed(&propertyset)) { Ok(ok__) => { @@ -938,10 +728,7 @@ impl IPropertySetSerializer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Deserialize(this: *mut core::ffi::c_void, propertyset: *mut core::ffi::c_void, buffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySetSerializer_Impl, - { + unsafe extern "system" fn Deserialize(this: *mut core::ffi::c_void, propertyset: *mut core::ffi::c_void, buffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySetSerializer_Impl::Deserialize(this, windows_core::from_raw_borrowed(&propertyset), windows_core::from_raw_borrowed(&buffer)).into() } @@ -955,7 +742,7 @@ impl IPropertySetSerializer_Vtbl { iid == &::IID } } -pub trait IRandomAccessStream_Impl: Sized + super::super::Foundation::IClosable_Impl + IInputStream_Impl + IOutputStream_Impl { +pub trait IRandomAccessStream_Impl: Sized + windows_core::IUnknownImpl + super::super::Foundation::IClosable_Impl + IInputStream_Impl + IOutputStream_Impl { fn Size(&self) -> windows_core::Result; fn SetSize(&self, value: u64) -> windows_core::Result<()>; fn GetInputStreamAt(&self, position: u64) -> windows_core::Result; @@ -970,14 +757,8 @@ impl windows_core::RuntimeName for IRandomAccessStream { const NAME: &'static str = "Windows.Storage.Streams.IRandomAccessStream"; } impl IRandomAccessStream_Vtbl { - pub const fn new() -> IRandomAccessStream_Vtbl - where - Identity: IRandomAccessStream_Impl, - { - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, result__: *mut u64) -> windows_core::HRESULT - where - Identity: IRandomAccessStream_Impl, - { + pub const fn new() -> IRandomAccessStream_Vtbl { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, result__: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRandomAccessStream_Impl::Size(this) { Ok(ok__) => { @@ -987,17 +768,11 @@ impl IRandomAccessStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT - where - Identity: IRandomAccessStream_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRandomAccessStream_Impl::SetSize(this, value).into() } - unsafe extern "system" fn GetInputStreamAt(this: *mut core::ffi::c_void, position: u64, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRandomAccessStream_Impl, - { + unsafe extern "system" fn GetInputStreamAt(this: *mut core::ffi::c_void, position: u64, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRandomAccessStream_Impl::GetInputStreamAt(this, position) { Ok(ok__) => { @@ -1008,10 +783,7 @@ impl IRandomAccessStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputStreamAt(this: *mut core::ffi::c_void, position: u64, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRandomAccessStream_Impl, - { + unsafe extern "system" fn GetOutputStreamAt(this: *mut core::ffi::c_void, position: u64, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRandomAccessStream_Impl::GetOutputStreamAt(this, position) { Ok(ok__) => { @@ -1022,10 +794,7 @@ impl IRandomAccessStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Position(this: *mut core::ffi::c_void, result__: *mut u64) -> windows_core::HRESULT - where - Identity: IRandomAccessStream_Impl, - { + unsafe extern "system" fn Position(this: *mut core::ffi::c_void, result__: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRandomAccessStream_Impl::Position(this) { Ok(ok__) => { @@ -1035,17 +804,11 @@ impl IRandomAccessStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, position: u64) -> windows_core::HRESULT - where - Identity: IRandomAccessStream_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, position: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRandomAccessStream_Impl::Seek(this, position).into() } - unsafe extern "system" fn CloneStream(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRandomAccessStream_Impl, - { + unsafe extern "system" fn CloneStream(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRandomAccessStream_Impl::CloneStream(this) { Ok(ok__) => { @@ -1056,10 +819,7 @@ impl IRandomAccessStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanRead(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IRandomAccessStream_Impl, - { + unsafe extern "system" fn CanRead(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRandomAccessStream_Impl::CanRead(this) { Ok(ok__) => { @@ -1069,10 +829,7 @@ impl IRandomAccessStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanWrite(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IRandomAccessStream_Impl, - { + unsafe extern "system" fn CanWrite(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRandomAccessStream_Impl::CanWrite(this) { Ok(ok__) => { @@ -1099,21 +856,15 @@ impl IRandomAccessStream_Vtbl { iid == &::IID } } -pub trait IRandomAccessStreamReference_Impl: Sized { +pub trait IRandomAccessStreamReference_Impl: Sized + windows_core::IUnknownImpl { fn OpenReadAsync(&self) -> windows_core::Result>; } impl windows_core::RuntimeName for IRandomAccessStreamReference { const NAME: &'static str = "Windows.Storage.Streams.IRandomAccessStreamReference"; } impl IRandomAccessStreamReference_Vtbl { - pub const fn new() -> IRandomAccessStreamReference_Vtbl - where - Identity: IRandomAccessStreamReference_Impl, - { - unsafe extern "system" fn OpenReadAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRandomAccessStreamReference_Impl, - { + pub const fn new() -> IRandomAccessStreamReference_Vtbl { + unsafe extern "system" fn OpenReadAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRandomAccessStreamReference_Impl::OpenReadAsync(this) { Ok(ok__) => { @@ -1133,15 +884,12 @@ impl IRandomAccessStreamReference_Vtbl { iid == &::IID } } -pub trait IRandomAccessStreamWithContentType_Impl: Sized + super::super::Foundation::IClosable_Impl + IContentTypeProvider_Impl + IInputStream_Impl + IOutputStream_Impl + IRandomAccessStream_Impl {} +pub trait IRandomAccessStreamWithContentType_Impl: Sized + windows_core::IUnknownImpl + super::super::Foundation::IClosable_Impl + IContentTypeProvider_Impl + IInputStream_Impl + IOutputStream_Impl + IRandomAccessStream_Impl {} impl windows_core::RuntimeName for IRandomAccessStreamWithContentType { const NAME: &'static str = "Windows.Storage.Streams.IRandomAccessStreamWithContentType"; } impl IRandomAccessStreamWithContentType_Vtbl { - pub const fn new() -> IRandomAccessStreamWithContentType_Vtbl - where - Identity: IRandomAccessStreamWithContentType_Impl, - { + pub const fn new() -> IRandomAccessStreamWithContentType_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Storage/impl.rs b/crates/libs/windows/src/Windows/Storage/impl.rs index 0aaa335028..7b85ae6283 100644 --- a/crates/libs/windows/src/Windows/Storage/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] -pub trait IStorageFile_Impl: Sized + Streams::IInputStreamReference_Impl + Streams::IRandomAccessStreamReference_Impl + IStorageItem_Impl { +pub trait IStorageFile_Impl: Sized + windows_core::IUnknownImpl + Streams::IInputStreamReference_Impl + Streams::IRandomAccessStreamReference_Impl + IStorageItem_Impl { fn FileType(&self) -> windows_core::Result; fn ContentType(&self) -> windows_core::Result; fn OpenAsync(&self, accessmode: FileAccessMode) -> windows_core::Result>; @@ -19,14 +19,8 @@ impl windows_core::RuntimeName for IStorageFile { } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] impl IStorageFile_Vtbl { - pub const fn new() -> IStorageFile_Vtbl - where - Identity: IStorageFile_Impl, - { - unsafe extern "system" fn FileType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + pub const fn new() -> IStorageFile_Vtbl { + unsafe extern "system" fn FileType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::FileType(this) { Ok(ok__) => { @@ -37,10 +31,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContentType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn ContentType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::ContentType(this) { Ok(ok__) => { @@ -51,10 +42,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenAsync(this: *mut core::ffi::c_void, accessmode: FileAccessMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn OpenAsync(this: *mut core::ffi::c_void, accessmode: FileAccessMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::OpenAsync(this, accessmode) { Ok(ok__) => { @@ -65,10 +53,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenTransactedWriteAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn OpenTransactedWriteAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::OpenTransactedWriteAsync(this) { Ok(ok__) => { @@ -79,10 +64,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyOverloadDefaultNameAndOptions(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn CopyOverloadDefaultNameAndOptions(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::CopyOverloadDefaultNameAndOptions(this, windows_core::from_raw_borrowed(&destinationfolder)) { Ok(ok__) => { @@ -93,10 +75,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyOverloadDefaultOptions(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, desirednewname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn CopyOverloadDefaultOptions(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, desirednewname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::CopyOverloadDefaultOptions(this, windows_core::from_raw_borrowed(&destinationfolder), core::mem::transmute(&desirednewname)) { Ok(ok__) => { @@ -107,10 +86,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyOverload(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, desirednewname: core::mem::MaybeUninit, option: NameCollisionOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn CopyOverload(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, desirednewname: core::mem::MaybeUninit, option: NameCollisionOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::CopyOverload(this, windows_core::from_raw_borrowed(&destinationfolder), core::mem::transmute(&desirednewname), option) { Ok(ok__) => { @@ -121,10 +97,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyAndReplaceAsync(this: *mut core::ffi::c_void, filetoreplace: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn CopyAndReplaceAsync(this: *mut core::ffi::c_void, filetoreplace: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::CopyAndReplaceAsync(this, windows_core::from_raw_borrowed(&filetoreplace)) { Ok(ok__) => { @@ -135,10 +108,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveOverloadDefaultNameAndOptions(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn MoveOverloadDefaultNameAndOptions(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::MoveOverloadDefaultNameAndOptions(this, windows_core::from_raw_borrowed(&destinationfolder)) { Ok(ok__) => { @@ -149,10 +119,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveOverloadDefaultOptions(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, desirednewname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn MoveOverloadDefaultOptions(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, desirednewname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::MoveOverloadDefaultOptions(this, windows_core::from_raw_borrowed(&destinationfolder), core::mem::transmute(&desirednewname)) { Ok(ok__) => { @@ -163,10 +130,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveOverload(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, desirednewname: core::mem::MaybeUninit, option: NameCollisionOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn MoveOverload(this: *mut core::ffi::c_void, destinationfolder: *mut core::ffi::c_void, desirednewname: core::mem::MaybeUninit, option: NameCollisionOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::MoveOverload(this, windows_core::from_raw_borrowed(&destinationfolder), core::mem::transmute(&desirednewname), option) { Ok(ok__) => { @@ -177,10 +141,7 @@ impl IStorageFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveAndReplaceAsync(this: *mut core::ffi::c_void, filetoreplace: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile_Impl, - { + unsafe extern "system" fn MoveAndReplaceAsync(this: *mut core::ffi::c_void, filetoreplace: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile_Impl::MoveAndReplaceAsync(this, windows_core::from_raw_borrowed(&filetoreplace)) { Ok(ok__) => { @@ -212,7 +173,7 @@ impl IStorageFile_Vtbl { } } #[cfg(feature = "Storage_Streams")] -pub trait IStorageFile2_Impl: Sized { +pub trait IStorageFile2_Impl: Sized + windows_core::IUnknownImpl { fn OpenWithOptionsAsync(&self, accessmode: FileAccessMode, options: StorageOpenOptions) -> windows_core::Result>; fn OpenTransactedWriteWithOptionsAsync(&self, options: StorageOpenOptions) -> windows_core::Result>; } @@ -222,14 +183,8 @@ impl windows_core::RuntimeName for IStorageFile2 { } #[cfg(feature = "Storage_Streams")] impl IStorageFile2_Vtbl { - pub const fn new() -> IStorageFile2_Vtbl - where - Identity: IStorageFile2_Impl, - { - unsafe extern "system" fn OpenWithOptionsAsync(this: *mut core::ffi::c_void, accessmode: FileAccessMode, options: StorageOpenOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile2_Impl, - { + pub const fn new() -> IStorageFile2_Vtbl { + unsafe extern "system" fn OpenWithOptionsAsync(this: *mut core::ffi::c_void, accessmode: FileAccessMode, options: StorageOpenOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile2_Impl::OpenWithOptionsAsync(this, accessmode, options) { Ok(ok__) => { @@ -240,10 +195,7 @@ impl IStorageFile2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenTransactedWriteWithOptionsAsync(this: *mut core::ffi::c_void, options: StorageOpenOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFile2_Impl, - { + unsafe extern "system" fn OpenTransactedWriteWithOptionsAsync(this: *mut core::ffi::c_void, options: StorageOpenOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFile2_Impl::OpenTransactedWriteWithOptionsAsync(this, options) { Ok(ok__) => { @@ -264,21 +216,15 @@ impl IStorageFile2_Vtbl { iid == &::IID } } -pub trait IStorageFilePropertiesWithAvailability_Impl: Sized { +pub trait IStorageFilePropertiesWithAvailability_Impl: Sized + windows_core::IUnknownImpl { fn IsAvailable(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IStorageFilePropertiesWithAvailability { const NAME: &'static str = "Windows.Storage.IStorageFilePropertiesWithAvailability"; } impl IStorageFilePropertiesWithAvailability_Vtbl { - pub const fn new() -> IStorageFilePropertiesWithAvailability_Vtbl - where - Identity: IStorageFilePropertiesWithAvailability_Impl, - { - unsafe extern "system" fn IsAvailable(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IStorageFilePropertiesWithAvailability_Impl, - { + pub const fn new() -> IStorageFilePropertiesWithAvailability_Vtbl { + unsafe extern "system" fn IsAvailable(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFilePropertiesWithAvailability_Impl::IsAvailable(this) { Ok(ok__) => { @@ -298,7 +244,7 @@ impl IStorageFilePropertiesWithAvailability_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_FileProperties"))] -pub trait IStorageFolder_Impl: Sized + IStorageItem_Impl { +pub trait IStorageFolder_Impl: Sized + windows_core::IUnknownImpl + IStorageItem_Impl { fn CreateFileAsyncOverloadDefaultOptions(&self, desiredname: &windows_core::HSTRING) -> windows_core::Result>; fn CreateFileAsync(&self, desiredname: &windows_core::HSTRING, options: CreationCollisionOption) -> windows_core::Result>; fn CreateFolderAsyncOverloadDefaultOptions(&self, desiredname: &windows_core::HSTRING) -> windows_core::Result>; @@ -316,14 +262,8 @@ impl windows_core::RuntimeName for IStorageFolder { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_FileProperties"))] impl IStorageFolder_Vtbl { - pub const fn new() -> IStorageFolder_Vtbl - where - Identity: IStorageFolder_Impl, - { - unsafe extern "system" fn CreateFileAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder_Impl, - { + pub const fn new() -> IStorageFolder_Vtbl { + unsafe extern "system" fn CreateFileAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder_Impl::CreateFileAsyncOverloadDefaultOptions(this, core::mem::transmute(&desiredname)) { Ok(ok__) => { @@ -334,10 +274,7 @@ impl IStorageFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileAsync(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, options: CreationCollisionOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder_Impl, - { + unsafe extern "system" fn CreateFileAsync(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, options: CreationCollisionOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder_Impl::CreateFileAsync(this, core::mem::transmute(&desiredname), options) { Ok(ok__) => { @@ -348,10 +285,7 @@ impl IStorageFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFolderAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder_Impl, - { + unsafe extern "system" fn CreateFolderAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder_Impl::CreateFolderAsyncOverloadDefaultOptions(this, core::mem::transmute(&desiredname)) { Ok(ok__) => { @@ -362,10 +296,7 @@ impl IStorageFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFolderAsync(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, options: CreationCollisionOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder_Impl, - { + unsafe extern "system" fn CreateFolderAsync(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, options: CreationCollisionOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder_Impl::CreateFolderAsync(this, core::mem::transmute(&desiredname), options) { Ok(ok__) => { @@ -376,10 +307,7 @@ impl IStorageFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileAsync(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder_Impl, - { + unsafe extern "system" fn GetFileAsync(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder_Impl::GetFileAsync(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -390,10 +318,7 @@ impl IStorageFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolderAsync(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder_Impl, - { + unsafe extern "system" fn GetFolderAsync(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder_Impl::GetFolderAsync(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -404,10 +329,7 @@ impl IStorageFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemAsync(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder_Impl, - { + unsafe extern "system" fn GetItemAsync(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder_Impl::GetItemAsync(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -418,10 +340,7 @@ impl IStorageFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder_Impl, - { + unsafe extern "system" fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder_Impl::GetFilesAsyncOverloadDefaultOptionsStartAndCount(this) { Ok(ok__) => { @@ -432,10 +351,7 @@ impl IStorageFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder_Impl, - { + unsafe extern "system" fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder_Impl::GetFoldersAsyncOverloadDefaultOptionsStartAndCount(this) { Ok(ok__) => { @@ -446,10 +362,7 @@ impl IStorageFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemsAsyncOverloadDefaultStartAndCount(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder_Impl, - { + unsafe extern "system" fn GetItemsAsyncOverloadDefaultStartAndCount(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder_Impl::GetItemsAsyncOverloadDefaultStartAndCount(this) { Ok(ok__) => { @@ -478,21 +391,15 @@ impl IStorageFolder_Vtbl { iid == &::IID } } -pub trait IStorageFolder2_Impl: Sized { +pub trait IStorageFolder2_Impl: Sized + windows_core::IUnknownImpl { fn TryGetItemAsync(&self, name: &windows_core::HSTRING) -> windows_core::Result>; } impl windows_core::RuntimeName for IStorageFolder2 { const NAME: &'static str = "Windows.Storage.IStorageFolder2"; } impl IStorageFolder2_Vtbl { - pub const fn new() -> IStorageFolder2_Vtbl - where - Identity: IStorageFolder2_Impl, - { - unsafe extern "system" fn TryGetItemAsync(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageFolder2_Impl, - { + pub const fn new() -> IStorageFolder2_Vtbl { + unsafe extern "system" fn TryGetItemAsync(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolder2_Impl::TryGetItemAsync(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -510,7 +417,7 @@ impl IStorageFolder2_Vtbl { } } #[cfg(feature = "Storage_FileProperties")] -pub trait IStorageItem_Impl: Sized { +pub trait IStorageItem_Impl: Sized + windows_core::IUnknownImpl { fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &windows_core::HSTRING) -> windows_core::Result; fn RenameAsync(&self, desiredname: &windows_core::HSTRING, option: NameCollisionOption) -> windows_core::Result; fn DeleteAsyncOverloadDefaultOptions(&self) -> windows_core::Result; @@ -528,14 +435,8 @@ impl windows_core::RuntimeName for IStorageItem { } #[cfg(feature = "Storage_FileProperties")] impl IStorageItem_Vtbl { - pub const fn new() -> IStorageItem_Vtbl - where - Identity: IStorageItem_Impl, - { - unsafe extern "system" fn RenameAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItem_Impl, - { + pub const fn new() -> IStorageItem_Vtbl { + unsafe extern "system" fn RenameAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem_Impl::RenameAsyncOverloadDefaultOptions(this, core::mem::transmute(&desiredname)) { Ok(ok__) => { @@ -546,10 +447,7 @@ impl IStorageItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RenameAsync(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, option: NameCollisionOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItem_Impl, - { + unsafe extern "system" fn RenameAsync(this: *mut core::ffi::c_void, desiredname: core::mem::MaybeUninit, option: NameCollisionOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem_Impl::RenameAsync(this, core::mem::transmute(&desiredname), option) { Ok(ok__) => { @@ -560,10 +458,7 @@ impl IStorageItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItem_Impl, - { + unsafe extern "system" fn DeleteAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem_Impl::DeleteAsyncOverloadDefaultOptions(this) { Ok(ok__) => { @@ -574,10 +469,7 @@ impl IStorageItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteAsync(this: *mut core::ffi::c_void, option: StorageDeleteOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItem_Impl, - { + unsafe extern "system" fn DeleteAsync(this: *mut core::ffi::c_void, option: StorageDeleteOption, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem_Impl::DeleteAsync(this, option) { Ok(ok__) => { @@ -588,10 +480,7 @@ impl IStorageItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBasicPropertiesAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItem_Impl, - { + unsafe extern "system" fn GetBasicPropertiesAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem_Impl::GetBasicPropertiesAsync(this) { Ok(ok__) => { @@ -602,10 +491,7 @@ impl IStorageItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageItem_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem_Impl::Name(this) { Ok(ok__) => { @@ -616,10 +502,7 @@ impl IStorageItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageItem_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem_Impl::Path(this) { Ok(ok__) => { @@ -630,10 +513,7 @@ impl IStorageItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, result__: *mut FileAttributes) -> windows_core::HRESULT - where - Identity: IStorageItem_Impl, - { + unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, result__: *mut FileAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem_Impl::Attributes(this) { Ok(ok__) => { @@ -643,10 +523,7 @@ impl IStorageItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DateCreated(this: *mut core::ffi::c_void, result__: *mut super::Foundation::DateTime) -> windows_core::HRESULT - where - Identity: IStorageItem_Impl, - { + unsafe extern "system" fn DateCreated(this: *mut core::ffi::c_void, result__: *mut super::Foundation::DateTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem_Impl::DateCreated(this) { Ok(ok__) => { @@ -656,10 +533,7 @@ impl IStorageItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOfType(this: *mut core::ffi::c_void, r#type: StorageItemTypes, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IStorageItem_Impl, - { + unsafe extern "system" fn IsOfType(this: *mut core::ffi::c_void, r#type: StorageItemTypes, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem_Impl::IsOfType(this, r#type) { Ok(ok__) => { @@ -688,7 +562,7 @@ impl IStorageItem_Vtbl { } } #[cfg(feature = "Storage_FileProperties")] -pub trait IStorageItem2_Impl: Sized + IStorageItem_Impl { +pub trait IStorageItem2_Impl: Sized + windows_core::IUnknownImpl + IStorageItem_Impl { fn GetParentAsync(&self) -> windows_core::Result>; fn IsEqual(&self, item: Option<&IStorageItem>) -> windows_core::Result; } @@ -698,14 +572,8 @@ impl windows_core::RuntimeName for IStorageItem2 { } #[cfg(feature = "Storage_FileProperties")] impl IStorageItem2_Vtbl { - pub const fn new() -> IStorageItem2_Vtbl - where - Identity: IStorageItem2_Impl, - { - unsafe extern "system" fn GetParentAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItem2_Impl, - { + pub const fn new() -> IStorageItem2_Vtbl { + unsafe extern "system" fn GetParentAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem2_Impl::GetParentAsync(this) { Ok(ok__) => { @@ -716,10 +584,7 @@ impl IStorageItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, item: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IStorageItem2_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, item: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItem2_Impl::IsEqual(this, windows_core::from_raw_borrowed(&item)) { Ok(ok__) => { @@ -740,7 +605,7 @@ impl IStorageItem2_Vtbl { } } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] -pub trait IStorageItemProperties_Impl: Sized { +pub trait IStorageItemProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(&self, mode: FileProperties::ThumbnailMode) -> windows_core::Result>; fn GetThumbnailAsyncOverloadDefaultOptions(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32) -> windows_core::Result>; fn GetThumbnailAsync(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions) -> windows_core::Result>; @@ -755,14 +620,8 @@ impl windows_core::RuntimeName for IStorageItemProperties { } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] impl IStorageItemProperties_Vtbl { - pub const fn new() -> IStorageItemProperties_Vtbl - where - Identity: IStorageItemProperties_Impl, - { - unsafe extern "system" fn GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemProperties_Impl, - { + pub const fn new() -> IStorageItemProperties_Vtbl { + unsafe extern "system" fn GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemProperties_Impl::GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(this, mode) { Ok(ok__) => { @@ -773,10 +632,7 @@ impl IStorageItemProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThumbnailAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, requestedsize: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemProperties_Impl, - { + unsafe extern "system" fn GetThumbnailAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, requestedsize: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemProperties_Impl::GetThumbnailAsyncOverloadDefaultOptions(this, mode, requestedsize) { Ok(ok__) => { @@ -787,10 +643,7 @@ impl IStorageItemProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThumbnailAsync(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemProperties_Impl, - { + unsafe extern "system" fn GetThumbnailAsync(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemProperties_Impl::GetThumbnailAsync(this, mode, requestedsize, options) { Ok(ok__) => { @@ -801,10 +654,7 @@ impl IStorageItemProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageItemProperties_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemProperties_Impl::DisplayName(this) { Ok(ok__) => { @@ -815,10 +665,7 @@ impl IStorageItemProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageItemProperties_Impl, - { + unsafe extern "system" fn DisplayType(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemProperties_Impl::DisplayType(this) { Ok(ok__) => { @@ -829,10 +676,7 @@ impl IStorageItemProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FolderRelativeId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStorageItemProperties_Impl, - { + unsafe extern "system" fn FolderRelativeId(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemProperties_Impl::FolderRelativeId(this) { Ok(ok__) => { @@ -843,10 +687,7 @@ impl IStorageItemProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemProperties_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemProperties_Impl::Properties(this) { Ok(ok__) => { @@ -873,7 +714,7 @@ impl IStorageItemProperties_Vtbl { } } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] -pub trait IStorageItemProperties2_Impl: Sized + IStorageItemProperties_Impl { +pub trait IStorageItemProperties2_Impl: Sized + windows_core::IUnknownImpl + IStorageItemProperties_Impl { fn GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions(&self, mode: FileProperties::ThumbnailMode) -> windows_core::Result>; fn GetScaledImageAsThumbnailAsyncOverloadDefaultOptions(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32) -> windows_core::Result>; fn GetScaledImageAsThumbnailAsync(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions) -> windows_core::Result>; @@ -884,14 +725,8 @@ impl windows_core::RuntimeName for IStorageItemProperties2 { } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] impl IStorageItemProperties2_Vtbl { - pub const fn new() -> IStorageItemProperties2_Vtbl - where - Identity: IStorageItemProperties2_Impl, - { - unsafe extern "system" fn GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemProperties2_Impl, - { + pub const fn new() -> IStorageItemProperties2_Vtbl { + unsafe extern "system" fn GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemProperties2_Impl::GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions(this, mode) { Ok(ok__) => { @@ -902,10 +737,7 @@ impl IStorageItemProperties2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScaledImageAsThumbnailAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, requestedsize: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemProperties2_Impl, - { + unsafe extern "system" fn GetScaledImageAsThumbnailAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, requestedsize: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemProperties2_Impl::GetScaledImageAsThumbnailAsyncOverloadDefaultOptions(this, mode, requestedsize) { Ok(ok__) => { @@ -916,10 +748,7 @@ impl IStorageItemProperties2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScaledImageAsThumbnailAsync(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemProperties2_Impl, - { + unsafe extern "system" fn GetScaledImageAsThumbnailAsync(this: *mut core::ffi::c_void, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemProperties2_Impl::GetScaledImageAsThumbnailAsync(this, mode, requestedsize, options) { Ok(ok__) => { @@ -942,7 +771,7 @@ impl IStorageItemProperties2_Vtbl { } } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] -pub trait IStorageItemPropertiesWithProvider_Impl: Sized + IStorageItemProperties_Impl { +pub trait IStorageItemPropertiesWithProvider_Impl: Sized + windows_core::IUnknownImpl + IStorageItemProperties_Impl { fn Provider(&self) -> windows_core::Result; } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] @@ -951,14 +780,8 @@ impl windows_core::RuntimeName for IStorageItemPropertiesWithProvider { } #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] impl IStorageItemPropertiesWithProvider_Vtbl { - pub const fn new() -> IStorageItemPropertiesWithProvider_Vtbl - where - Identity: IStorageItemPropertiesWithProvider_Impl, - { - unsafe extern "system" fn Provider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageItemPropertiesWithProvider_Impl, - { + pub const fn new() -> IStorageItemPropertiesWithProvider_Vtbl { + unsafe extern "system" fn Provider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemPropertiesWithProvider_Impl::Provider(this) { Ok(ok__) => { @@ -975,21 +798,15 @@ impl IStorageItemPropertiesWithProvider_Vtbl { iid == &::IID } } -pub trait IStreamedFileDataRequest_Impl: Sized { +pub trait IStreamedFileDataRequest_Impl: Sized + windows_core::IUnknownImpl { fn FailAndClose(&self, failuremode: StreamedFileFailureMode) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IStreamedFileDataRequest { const NAME: &'static str = "Windows.Storage.IStreamedFileDataRequest"; } impl IStreamedFileDataRequest_Vtbl { - pub const fn new() -> IStreamedFileDataRequest_Vtbl - where - Identity: IStreamedFileDataRequest_Impl, - { - unsafe extern "system" fn FailAndClose(this: *mut core::ffi::c_void, failuremode: StreamedFileFailureMode) -> windows_core::HRESULT - where - Identity: IStreamedFileDataRequest_Impl, - { + pub const fn new() -> IStreamedFileDataRequest_Vtbl { + unsafe extern "system" fn FailAndClose(this: *mut core::ffi::c_void, failuremode: StreamedFileFailureMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamedFileDataRequest_Impl::FailAndClose(this, failuremode).into() } diff --git a/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/impl.rs b/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/impl.rs index d6def7f3d8..974f3e1087 100644 --- a/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/impl.rs +++ b/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/impl.rs @@ -1,4 +1,4 @@ -pub trait ISysStorageProviderEventSource_Impl: Sized { +pub trait ISysStorageProviderEventSource_Impl: Sized + windows_core::IUnknownImpl { fn EventReceived(&self, handler: Option<&super::super::super::Foundation::TypedEventHandler>) -> windows_core::Result; fn RemoveEventReceived(&self, token: &super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()>; } @@ -6,14 +6,8 @@ impl windows_core::RuntimeName for ISysStorageProviderEventSource { const NAME: &'static str = "Windows.System.Implementation.FileExplorer.ISysStorageProviderEventSource"; } impl ISysStorageProviderEventSource_Vtbl { - pub const fn new() -> ISysStorageProviderEventSource_Vtbl - where - Identity: ISysStorageProviderEventSource_Impl, - { - unsafe extern "system" fn EventReceived(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ISysStorageProviderEventSource_Impl, - { + pub const fn new() -> ISysStorageProviderEventSource_Vtbl { + unsafe extern "system" fn EventReceived(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISysStorageProviderEventSource_Impl::EventReceived(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -23,10 +17,7 @@ impl ISysStorageProviderEventSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveEventReceived(this: *mut core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ISysStorageProviderEventSource_Impl, - { + unsafe extern "system" fn RemoveEventReceived(this: *mut core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISysStorageProviderEventSource_Impl::RemoveEventReceived(this, core::mem::transmute(&token)).into() } @@ -40,7 +31,7 @@ impl ISysStorageProviderEventSource_Vtbl { iid == &::IID } } -pub trait ISysStorageProviderHandlerFactory_Impl: Sized { +pub trait ISysStorageProviderHandlerFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetHttpRequestProvider(&self, syncrootid: &windows_core::HSTRING) -> windows_core::Result; fn GetEventSource(&self, syncrootid: &windows_core::HSTRING, eventname: &windows_core::HSTRING) -> windows_core::Result; } @@ -48,14 +39,8 @@ impl windows_core::RuntimeName for ISysStorageProviderHandlerFactory { const NAME: &'static str = "Windows.System.Implementation.FileExplorer.ISysStorageProviderHandlerFactory"; } impl ISysStorageProviderHandlerFactory_Vtbl { - pub const fn new() -> ISysStorageProviderHandlerFactory_Vtbl - where - Identity: ISysStorageProviderHandlerFactory_Impl, - { - unsafe extern "system" fn GetHttpRequestProvider(this: *mut core::ffi::c_void, syncrootid: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISysStorageProviderHandlerFactory_Impl, - { + pub const fn new() -> ISysStorageProviderHandlerFactory_Vtbl { + unsafe extern "system" fn GetHttpRequestProvider(this: *mut core::ffi::c_void, syncrootid: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISysStorageProviderHandlerFactory_Impl::GetHttpRequestProvider(this, core::mem::transmute(&syncrootid)) { Ok(ok__) => { @@ -66,10 +51,7 @@ impl ISysStorageProviderHandlerFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventSource(this: *mut core::ffi::c_void, syncrootid: core::mem::MaybeUninit, eventname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISysStorageProviderHandlerFactory_Impl, - { + unsafe extern "system" fn GetEventSource(this: *mut core::ffi::c_void, syncrootid: core::mem::MaybeUninit, eventname: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISysStorageProviderHandlerFactory_Impl::GetEventSource(this, core::mem::transmute(&syncrootid), core::mem::transmute(&eventname)) { Ok(ok__) => { @@ -91,7 +73,7 @@ impl ISysStorageProviderHandlerFactory_Vtbl { } } #[cfg(feature = "Web_Http")] -pub trait ISysStorageProviderHttpRequestProvider_Impl: Sized { +pub trait ISysStorageProviderHttpRequestProvider_Impl: Sized + windows_core::IUnknownImpl { fn SendRequestAsync(&self, request: Option<&super::super::super::Web::Http::HttpRequestMessage>) -> windows_core::Result>; } #[cfg(feature = "Web_Http")] @@ -100,14 +82,8 @@ impl windows_core::RuntimeName for ISysStorageProviderHttpRequestProvider { } #[cfg(feature = "Web_Http")] impl ISysStorageProviderHttpRequestProvider_Vtbl { - pub const fn new() -> ISysStorageProviderHttpRequestProvider_Vtbl - where - Identity: ISysStorageProviderHttpRequestProvider_Impl, - { - unsafe extern "system" fn SendRequestAsync(this: *mut core::ffi::c_void, request: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISysStorageProviderHttpRequestProvider_Impl, - { + pub const fn new() -> ISysStorageProviderHttpRequestProvider_Vtbl { + unsafe extern "system" fn SendRequestAsync(this: *mut core::ffi::c_void, request: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISysStorageProviderHttpRequestProvider_Impl::SendRequestAsync(this, windows_core::from_raw_borrowed(&request)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/System/RemoteSystems/impl.rs b/crates/libs/windows/src/Windows/System/RemoteSystems/impl.rs index 411600baf7..827400160f 100644 --- a/crates/libs/windows/src/Windows/System/RemoteSystems/impl.rs +++ b/crates/libs/windows/src/Windows/System/RemoteSystems/impl.rs @@ -1,12 +1,9 @@ -pub trait IRemoteSystemFilter_Impl: Sized {} +pub trait IRemoteSystemFilter_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IRemoteSystemFilter { const NAME: &'static str = "Windows.System.RemoteSystems.IRemoteSystemFilter"; } impl IRemoteSystemFilter_Vtbl { - pub const fn new() -> IRemoteSystemFilter_Vtbl - where - Identity: IRemoteSystemFilter_Impl, - { + pub const fn new() -> IRemoteSystemFilter_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/System/impl.rs b/crates/libs/windows/src/Windows/System/impl.rs index 78a774822b..88c4913f07 100644 --- a/crates/libs/windows/src/Windows/System/impl.rs +++ b/crates/libs/windows/src/Windows/System/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "UI_ViewManagement")] -pub trait ILauncherViewOptions_Impl: Sized { +pub trait ILauncherViewOptions_Impl: Sized + windows_core::IUnknownImpl { fn DesiredRemainingView(&self) -> windows_core::Result; fn SetDesiredRemainingView(&self, value: super::UI::ViewManagement::ViewSizePreference) -> windows_core::Result<()>; } @@ -9,14 +9,8 @@ impl windows_core::RuntimeName for ILauncherViewOptions { } #[cfg(feature = "UI_ViewManagement")] impl ILauncherViewOptions_Vtbl { - pub const fn new() -> ILauncherViewOptions_Vtbl - where - Identity: ILauncherViewOptions_Impl, - { - unsafe extern "system" fn DesiredRemainingView(this: *mut core::ffi::c_void, result__: *mut super::UI::ViewManagement::ViewSizePreference) -> windows_core::HRESULT - where - Identity: ILauncherViewOptions_Impl, - { + pub const fn new() -> ILauncherViewOptions_Vtbl { + unsafe extern "system" fn DesiredRemainingView(this: *mut core::ffi::c_void, result__: *mut super::UI::ViewManagement::ViewSizePreference) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILauncherViewOptions_Impl::DesiredRemainingView(this) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl ILauncherViewOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredRemainingView(this: *mut core::ffi::c_void, value: super::UI::ViewManagement::ViewSizePreference) -> windows_core::HRESULT - where - Identity: ILauncherViewOptions_Impl, - { + unsafe extern "system" fn SetDesiredRemainingView(this: *mut core::ffi::c_void, value: super::UI::ViewManagement::ViewSizePreference) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILauncherViewOptions_Impl::SetDesiredRemainingView(this, value).into() } diff --git a/crates/libs/windows/src/Windows/UI/Composition/Interactions/impl.rs b/crates/libs/windows/src/Windows/UI/Composition/Interactions/impl.rs index aaef0193cd..cf588f394c 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Interactions/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Interactions/impl.rs @@ -1,19 +1,16 @@ -pub trait ICompositionInteractionSource_Impl: Sized {} +pub trait ICompositionInteractionSource_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for ICompositionInteractionSource { const NAME: &'static str = "Windows.UI.Composition.Interactions.ICompositionInteractionSource"; } impl ICompositionInteractionSource_Vtbl { - pub const fn new() -> ICompositionInteractionSource_Vtbl - where - Identity: ICompositionInteractionSource_Impl, - { + pub const fn new() -> ICompositionInteractionSource_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IInteractionTrackerOwner_Impl: Sized { +pub trait IInteractionTrackerOwner_Impl: Sized + windows_core::IUnknownImpl { fn CustomAnimationStateEntered(&self, sender: Option<&InteractionTracker>, args: Option<&InteractionTrackerCustomAnimationStateEnteredArgs>) -> windows_core::Result<()>; fn IdleStateEntered(&self, sender: Option<&InteractionTracker>, args: Option<&InteractionTrackerIdleStateEnteredArgs>) -> windows_core::Result<()>; fn InertiaStateEntered(&self, sender: Option<&InteractionTracker>, args: Option<&InteractionTrackerInertiaStateEnteredArgs>) -> windows_core::Result<()>; @@ -25,49 +22,28 @@ impl windows_core::RuntimeName for IInteractionTrackerOwner { const NAME: &'static str = "Windows.UI.Composition.Interactions.IInteractionTrackerOwner"; } impl IInteractionTrackerOwner_Vtbl { - pub const fn new() -> IInteractionTrackerOwner_Vtbl - where - Identity: IInteractionTrackerOwner_Impl, - { - unsafe extern "system" fn CustomAnimationStateEntered(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInteractionTrackerOwner_Impl, - { + pub const fn new() -> IInteractionTrackerOwner_Vtbl { + unsafe extern "system" fn CustomAnimationStateEntered(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInteractionTrackerOwner_Impl::CustomAnimationStateEntered(this, windows_core::from_raw_borrowed(&sender), windows_core::from_raw_borrowed(&args)).into() } - unsafe extern "system" fn IdleStateEntered(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInteractionTrackerOwner_Impl, - { + unsafe extern "system" fn IdleStateEntered(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInteractionTrackerOwner_Impl::IdleStateEntered(this, windows_core::from_raw_borrowed(&sender), windows_core::from_raw_borrowed(&args)).into() } - unsafe extern "system" fn InertiaStateEntered(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInteractionTrackerOwner_Impl, - { + unsafe extern "system" fn InertiaStateEntered(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInteractionTrackerOwner_Impl::InertiaStateEntered(this, windows_core::from_raw_borrowed(&sender), windows_core::from_raw_borrowed(&args)).into() } - unsafe extern "system" fn InteractingStateEntered(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInteractionTrackerOwner_Impl, - { + unsafe extern "system" fn InteractingStateEntered(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInteractionTrackerOwner_Impl::InteractingStateEntered(this, windows_core::from_raw_borrowed(&sender), windows_core::from_raw_borrowed(&args)).into() } - unsafe extern "system" fn RequestIgnored(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInteractionTrackerOwner_Impl, - { + unsafe extern "system" fn RequestIgnored(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInteractionTrackerOwner_Impl::RequestIgnored(this, windows_core::from_raw_borrowed(&sender), windows_core::from_raw_borrowed(&args)).into() } - unsafe extern "system" fn ValuesChanged(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInteractionTrackerOwner_Impl, - { + unsafe extern "system" fn ValuesChanged(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInteractionTrackerOwner_Impl::ValuesChanged(this, windows_core::from_raw_borrowed(&sender), windows_core::from_raw_borrowed(&args)).into() } diff --git a/crates/libs/windows/src/Windows/UI/Composition/impl.rs b/crates/libs/windows/src/Windows/UI/Composition/impl.rs index 14e923a567..d3d84c7c68 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/impl.rs @@ -1,18 +1,12 @@ -pub trait IAnimationObject_Impl: Sized { +pub trait IAnimationObject_Impl: Sized + windows_core::IUnknownImpl { fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: Option<&AnimationPropertyInfo>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAnimationObject { const NAME: &'static str = "Windows.UI.Composition.IAnimationObject"; } impl IAnimationObject_Vtbl { - pub const fn new() -> IAnimationObject_Vtbl - where - Identity: IAnimationObject_Impl, - { - unsafe extern "system" fn PopulatePropertyInfo(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, propertyinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAnimationObject_Impl, - { + pub const fn new() -> IAnimationObject_Vtbl { + unsafe extern "system" fn PopulatePropertyInfo(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, propertyinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnimationObject_Impl::PopulatePropertyInfo(this, core::mem::transmute(&propertyname), windows_core::from_raw_borrowed(&propertyinfo)).into() } @@ -25,22 +19,19 @@ impl IAnimationObject_Vtbl { iid == &::IID } } -pub trait ICompositionAnimationBase_Impl: Sized {} +pub trait ICompositionAnimationBase_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for ICompositionAnimationBase { const NAME: &'static str = "Windows.UI.Composition.ICompositionAnimationBase"; } impl ICompositionAnimationBase_Vtbl { - pub const fn new() -> ICompositionAnimationBase_Vtbl - where - Identity: ICompositionAnimationBase_Impl, - { + pub const fn new() -> ICompositionAnimationBase_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait ICompositionSupportsSystemBackdrop_Impl: Sized { +pub trait ICompositionSupportsSystemBackdrop_Impl: Sized + windows_core::IUnknownImpl { fn SystemBackdrop(&self) -> windows_core::Result; fn SetSystemBackdrop(&self, value: Option<&CompositionBrush>) -> windows_core::Result<()>; } @@ -48,14 +39,8 @@ impl windows_core::RuntimeName for ICompositionSupportsSystemBackdrop { const NAME: &'static str = "Windows.UI.Composition.ICompositionSupportsSystemBackdrop"; } impl ICompositionSupportsSystemBackdrop_Vtbl { - pub const fn new() -> ICompositionSupportsSystemBackdrop_Vtbl - where - Identity: ICompositionSupportsSystemBackdrop_Impl, - { - unsafe extern "system" fn SystemBackdrop(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositionSupportsSystemBackdrop_Impl, - { + pub const fn new() -> ICompositionSupportsSystemBackdrop_Vtbl { + unsafe extern "system" fn SystemBackdrop(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositionSupportsSystemBackdrop_Impl::SystemBackdrop(this) { Ok(ok__) => { @@ -66,10 +51,7 @@ impl ICompositionSupportsSystemBackdrop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSystemBackdrop(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositionSupportsSystemBackdrop_Impl, - { + unsafe extern "system" fn SetSystemBackdrop(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionSupportsSystemBackdrop_Impl::SetSystemBackdrop(this, windows_core::from_raw_borrowed(&value)).into() } @@ -83,36 +65,27 @@ impl ICompositionSupportsSystemBackdrop_Vtbl { iid == &::IID } } -pub trait ICompositionSurface_Impl: Sized {} +pub trait ICompositionSurface_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for ICompositionSurface { const NAME: &'static str = "Windows.UI.Composition.ICompositionSurface"; } impl ICompositionSurface_Vtbl { - pub const fn new() -> ICompositionSurface_Vtbl - where - Identity: ICompositionSurface_Impl, - { + pub const fn new() -> ICompositionSurface_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait ICompositionSurfaceFacade_Impl: Sized { +pub trait ICompositionSurfaceFacade_Impl: Sized + windows_core::IUnknownImpl { fn GetRealSurface(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ICompositionSurfaceFacade { const NAME: &'static str = "Windows.UI.Composition.ICompositionSurfaceFacade"; } impl ICompositionSurfaceFacade_Vtbl { - pub const fn new() -> ICompositionSurfaceFacade_Vtbl - where - Identity: ICompositionSurfaceFacade_Impl, - { - unsafe extern "system" fn GetRealSurface(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositionSurfaceFacade_Impl, - { + pub const fn new() -> ICompositionSurfaceFacade_Vtbl { + unsafe extern "system" fn GetRealSurface(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositionSurfaceFacade_Impl::GetRealSurface(this) { Ok(ok__) => { @@ -132,36 +105,27 @@ impl ICompositionSurfaceFacade_Vtbl { iid == &::IID } } -pub trait IVisualElement_Impl: Sized {} +pub trait IVisualElement_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IVisualElement { const NAME: &'static str = "Windows.UI.Composition.IVisualElement"; } impl IVisualElement_Vtbl { - pub const fn new() -> IVisualElement_Vtbl - where - Identity: IVisualElement_Impl, - { + pub const fn new() -> IVisualElement_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IVisualElement2_Impl: Sized { +pub trait IVisualElement2_Impl: Sized + windows_core::IUnknownImpl { fn GetVisualInternal(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVisualElement2 { const NAME: &'static str = "Windows.UI.Composition.IVisualElement2"; } impl IVisualElement2_Vtbl { - pub const fn new() -> IVisualElement2_Vtbl - where - Identity: IVisualElement2_Impl, - { - unsafe extern "system" fn GetVisualInternal(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVisualElement2_Impl, - { + pub const fn new() -> IVisualElement2_Vtbl { + unsafe extern "system" fn GetVisualInternal(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVisualElement2_Impl::GetVisualInternal(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/impl.rs b/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/impl.rs index d3f238b884..346f37c63f 100644 --- a/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/impl.rs @@ -1,4 +1,4 @@ -pub trait IPropertyAnimation_Impl: Sized { +pub trait IPropertyAnimation_Impl: Sized + windows_core::IUnknownImpl { fn Type(&self) -> windows_core::Result; fn Delay(&self) -> windows_core::Result; fn Duration(&self) -> windows_core::Result; @@ -9,14 +9,8 @@ impl windows_core::RuntimeName for IPropertyAnimation { const NAME: &'static str = "Windows.UI.Core.AnimationMetrics.IPropertyAnimation"; } impl IPropertyAnimation_Vtbl { - pub const fn new() -> IPropertyAnimation_Vtbl - where - Identity: IPropertyAnimation_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut PropertyAnimationType) -> windows_core::HRESULT - where - Identity: IPropertyAnimation_Impl, - { + pub const fn new() -> IPropertyAnimation_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut PropertyAnimationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyAnimation_Impl::Type(this) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl IPropertyAnimation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IPropertyAnimation_Impl, - { + unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyAnimation_Impl::Delay(this) { Ok(ok__) => { @@ -39,10 +30,7 @@ impl IPropertyAnimation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT - where - Identity: IPropertyAnimation_Impl, - { + unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyAnimation_Impl::Duration(this) { Ok(ok__) => { @@ -52,10 +40,7 @@ impl IPropertyAnimation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Control1(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Point) -> windows_core::HRESULT - where - Identity: IPropertyAnimation_Impl, - { + unsafe extern "system" fn Control1(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Point) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyAnimation_Impl::Control1(this) { Ok(ok__) => { @@ -65,10 +50,7 @@ impl IPropertyAnimation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Control2(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Point) -> windows_core::HRESULT - where - Identity: IPropertyAnimation_Impl, - { + unsafe extern "system" fn Control2(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Point) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyAnimation_Impl::Control2(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/UI/Core/impl.rs b/crates/libs/windows/src/Windows/UI/Core/impl.rs index 3a0e4f681f..558b206777 100644 --- a/crates/libs/windows/src/Windows/UI/Core/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Core/impl.rs @@ -1,4 +1,4 @@ -pub trait ICoreAcceleratorKeys_Impl: Sized { +pub trait ICoreAcceleratorKeys_Impl: Sized + windows_core::IUnknownImpl { fn AcceleratorKeyActivated(&self, handler: Option<&super::super::Foundation::TypedEventHandler>) -> windows_core::Result; fn RemoveAcceleratorKeyActivated(&self, cookie: &super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()>; } @@ -6,14 +6,8 @@ impl windows_core::RuntimeName for ICoreAcceleratorKeys { const NAME: &'static str = "Windows.UI.Core.ICoreAcceleratorKeys"; } impl ICoreAcceleratorKeys_Vtbl { - pub const fn new() -> ICoreAcceleratorKeys_Vtbl - where - Identity: ICoreAcceleratorKeys_Impl, - { - unsafe extern "system" fn AcceleratorKeyActivated(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreAcceleratorKeys_Impl, - { + pub const fn new() -> ICoreAcceleratorKeys_Vtbl { + unsafe extern "system" fn AcceleratorKeyActivated(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreAcceleratorKeys_Impl::AcceleratorKeyActivated(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -23,10 +17,7 @@ impl ICoreAcceleratorKeys_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveAcceleratorKeyActivated(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreAcceleratorKeys_Impl, - { + unsafe extern "system" fn RemoveAcceleratorKeyActivated(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreAcceleratorKeys_Impl::RemoveAcceleratorKeyActivated(this, core::mem::transmute(&cookie)).into() } @@ -40,7 +31,7 @@ impl ICoreAcceleratorKeys_Vtbl { iid == &::IID } } -pub trait ICoreInputSourceBase_Impl: Sized { +pub trait ICoreInputSourceBase_Impl: Sized + windows_core::IUnknownImpl { fn Dispatcher(&self) -> windows_core::Result; fn IsInputEnabled(&self) -> windows_core::Result; fn SetIsInputEnabled(&self, value: bool) -> windows_core::Result<()>; @@ -51,14 +42,8 @@ impl windows_core::RuntimeName for ICoreInputSourceBase { const NAME: &'static str = "Windows.UI.Core.ICoreInputSourceBase"; } impl ICoreInputSourceBase_Vtbl { - pub const fn new() -> ICoreInputSourceBase_Vtbl - where - Identity: ICoreInputSourceBase_Impl, - { - unsafe extern "system" fn Dispatcher(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreInputSourceBase_Impl, - { + pub const fn new() -> ICoreInputSourceBase_Vtbl { + unsafe extern "system" fn Dispatcher(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreInputSourceBase_Impl::Dispatcher(this) { Ok(ok__) => { @@ -69,10 +54,7 @@ impl ICoreInputSourceBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsInputEnabled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICoreInputSourceBase_Impl, - { + unsafe extern "system" fn IsInputEnabled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreInputSourceBase_Impl::IsInputEnabled(this) { Ok(ok__) => { @@ -82,17 +64,11 @@ impl ICoreInputSourceBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsInputEnabled(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: ICoreInputSourceBase_Impl, - { + unsafe extern "system" fn SetIsInputEnabled(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreInputSourceBase_Impl::SetIsInputEnabled(this, value).into() } - unsafe extern "system" fn InputEnabled(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreInputSourceBase_Impl, - { + unsafe extern "system" fn InputEnabled(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreInputSourceBase_Impl::InputEnabled(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -102,10 +78,7 @@ impl ICoreInputSourceBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveInputEnabled(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreInputSourceBase_Impl, - { + unsafe extern "system" fn RemoveInputEnabled(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreInputSourceBase_Impl::RemoveInputEnabled(this, core::mem::transmute(&cookie)).into() } @@ -122,7 +95,7 @@ impl ICoreInputSourceBase_Vtbl { iid == &::IID } } -pub trait ICorePointerInputSource_Impl: Sized { +pub trait ICorePointerInputSource_Impl: Sized + windows_core::IUnknownImpl { fn ReleasePointerCapture(&self) -> windows_core::Result<()>; fn SetPointerCapture(&self) -> windows_core::Result<()>; fn HasCapture(&self) -> windows_core::Result; @@ -148,28 +121,16 @@ impl windows_core::RuntimeName for ICorePointerInputSource { const NAME: &'static str = "Windows.UI.Core.ICorePointerInputSource"; } impl ICorePointerInputSource_Vtbl { - pub const fn new() -> ICorePointerInputSource_Vtbl - where - Identity: ICorePointerInputSource_Impl, - { - unsafe extern "system" fn ReleasePointerCapture(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + pub const fn new() -> ICorePointerInputSource_Vtbl { + unsafe extern "system" fn ReleasePointerCapture(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerInputSource_Impl::ReleasePointerCapture(this).into() } - unsafe extern "system" fn SetPointerCapture(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn SetPointerCapture(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerInputSource_Impl::SetPointerCapture(this).into() } - unsafe extern "system" fn HasCapture(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn HasCapture(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource_Impl::HasCapture(this) { Ok(ok__) => { @@ -179,10 +140,7 @@ impl ICorePointerInputSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PointerPosition(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn PointerPosition(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource_Impl::PointerPosition(this) { Ok(ok__) => { @@ -192,10 +150,7 @@ impl ICorePointerInputSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PointerCursor(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn PointerCursor(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource_Impl::PointerCursor(this) { Ok(ok__) => { @@ -206,17 +161,11 @@ impl ICorePointerInputSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPointerCursor(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn SetPointerCursor(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerInputSource_Impl::SetPointerCursor(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn PointerCaptureLost(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn PointerCaptureLost(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource_Impl::PointerCaptureLost(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -226,17 +175,11 @@ impl ICorePointerInputSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerCaptureLost(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn RemovePointerCaptureLost(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerInputSource_Impl::RemovePointerCaptureLost(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerEntered(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn PointerEntered(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource_Impl::PointerEntered(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -246,17 +189,11 @@ impl ICorePointerInputSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerEntered(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn RemovePointerEntered(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerInputSource_Impl::RemovePointerEntered(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerExited(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn PointerExited(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource_Impl::PointerExited(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -266,17 +203,11 @@ impl ICorePointerInputSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerExited(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn RemovePointerExited(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerInputSource_Impl::RemovePointerExited(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerMoved(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn PointerMoved(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource_Impl::PointerMoved(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -286,17 +217,11 @@ impl ICorePointerInputSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerMoved(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn RemovePointerMoved(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerInputSource_Impl::RemovePointerMoved(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerPressed(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn PointerPressed(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource_Impl::PointerPressed(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -306,17 +231,11 @@ impl ICorePointerInputSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerPressed(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn RemovePointerPressed(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerInputSource_Impl::RemovePointerPressed(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerReleased(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn PointerReleased(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource_Impl::PointerReleased(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -326,17 +245,11 @@ impl ICorePointerInputSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerReleased(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn RemovePointerReleased(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerInputSource_Impl::RemovePointerReleased(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerWheelChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn PointerWheelChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource_Impl::PointerWheelChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -346,10 +259,7 @@ impl ICorePointerInputSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerWheelChanged(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource_Impl, - { + unsafe extern "system" fn RemovePointerWheelChanged(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerInputSource_Impl::RemovePointerWheelChanged(this, core::mem::transmute(&cookie)).into() } @@ -382,7 +292,7 @@ impl ICorePointerInputSource_Vtbl { } } #[cfg(feature = "System")] -pub trait ICorePointerInputSource2_Impl: Sized + ICorePointerInputSource_Impl { +pub trait ICorePointerInputSource2_Impl: Sized + windows_core::IUnknownImpl + ICorePointerInputSource_Impl { fn DispatcherQueue(&self) -> windows_core::Result; } #[cfg(feature = "System")] @@ -391,14 +301,8 @@ impl windows_core::RuntimeName for ICorePointerInputSource2 { } #[cfg(feature = "System")] impl ICorePointerInputSource2_Vtbl { - pub const fn new() -> ICorePointerInputSource2_Vtbl - where - Identity: ICorePointerInputSource2_Impl, - { - unsafe extern "system" fn DispatcherQueue(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorePointerInputSource2_Impl, - { + pub const fn new() -> ICorePointerInputSource2_Vtbl { + unsafe extern "system" fn DispatcherQueue(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerInputSource2_Impl::DispatcherQueue(this) { Ok(ok__) => { @@ -418,7 +322,7 @@ impl ICorePointerInputSource2_Vtbl { iid == &::IID } } -pub trait ICorePointerRedirector_Impl: Sized { +pub trait ICorePointerRedirector_Impl: Sized + windows_core::IUnknownImpl { fn PointerRoutedAway(&self, handler: Option<&super::super::Foundation::TypedEventHandler>) -> windows_core::Result; fn RemovePointerRoutedAway(&self, cookie: &super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()>; fn PointerRoutedTo(&self, handler: Option<&super::super::Foundation::TypedEventHandler>) -> windows_core::Result; @@ -430,14 +334,8 @@ impl windows_core::RuntimeName for ICorePointerRedirector { const NAME: &'static str = "Windows.UI.Core.ICorePointerRedirector"; } impl ICorePointerRedirector_Vtbl { - pub const fn new() -> ICorePointerRedirector_Vtbl - where - Identity: ICorePointerRedirector_Impl, - { - unsafe extern "system" fn PointerRoutedAway(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerRedirector_Impl, - { + pub const fn new() -> ICorePointerRedirector_Vtbl { + unsafe extern "system" fn PointerRoutedAway(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerRedirector_Impl::PointerRoutedAway(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -447,17 +345,11 @@ impl ICorePointerRedirector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerRoutedAway(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerRedirector_Impl, - { + unsafe extern "system" fn RemovePointerRoutedAway(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerRedirector_Impl::RemovePointerRoutedAway(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerRoutedTo(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerRedirector_Impl, - { + unsafe extern "system" fn PointerRoutedTo(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerRedirector_Impl::PointerRoutedTo(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -467,17 +359,11 @@ impl ICorePointerRedirector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerRoutedTo(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerRedirector_Impl, - { + unsafe extern "system" fn RemovePointerRoutedTo(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerRedirector_Impl::RemovePointerRoutedTo(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerRoutedReleased(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerRedirector_Impl, - { + unsafe extern "system" fn PointerRoutedReleased(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorePointerRedirector_Impl::PointerRoutedReleased(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -487,10 +373,7 @@ impl ICorePointerRedirector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerRoutedReleased(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICorePointerRedirector_Impl, - { + unsafe extern "system" fn RemovePointerRoutedReleased(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorePointerRedirector_Impl::RemovePointerRoutedReleased(this, core::mem::transmute(&cookie)).into() } @@ -509,7 +392,7 @@ impl ICorePointerRedirector_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "System"))] -pub trait ICoreWindow_Impl: Sized { +pub trait ICoreWindow_Impl: Sized + windows_core::IUnknownImpl { fn AutomationHostProvider(&self) -> windows_core::Result; fn Bounds(&self) -> windows_core::Result; fn CustomProperties(&self) -> windows_core::Result; @@ -569,14 +452,8 @@ impl windows_core::RuntimeName for ICoreWindow { } #[cfg(all(feature = "Foundation_Collections", feature = "System"))] impl ICoreWindow_Vtbl { - pub const fn new() -> ICoreWindow_Vtbl - where - Identity: ICoreWindow_Impl, - { - unsafe extern "system" fn AutomationHostProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + pub const fn new() -> ICoreWindow_Vtbl { + unsafe extern "system" fn AutomationHostProvider(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::AutomationHostProvider(this) { Ok(ok__) => { @@ -587,10 +464,7 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Bounds(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn Bounds(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::Bounds(this) { Ok(ok__) => { @@ -600,10 +474,7 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CustomProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn CustomProperties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::CustomProperties(this) { Ok(ok__) => { @@ -614,10 +485,7 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Dispatcher(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn Dispatcher(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::Dispatcher(this) { Ok(ok__) => { @@ -628,10 +496,7 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FlowDirection(this: *mut core::ffi::c_void, result__: *mut CoreWindowFlowDirection) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn FlowDirection(this: *mut core::ffi::c_void, result__: *mut CoreWindowFlowDirection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::FlowDirection(this) { Ok(ok__) => { @@ -641,17 +506,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlowDirection(this: *mut core::ffi::c_void, value: CoreWindowFlowDirection) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn SetFlowDirection(this: *mut core::ffi::c_void, value: CoreWindowFlowDirection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::SetFlowDirection(this, value).into() } - unsafe extern "system" fn IsInputEnabled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn IsInputEnabled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::IsInputEnabled(this) { Ok(ok__) => { @@ -661,17 +520,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsInputEnabled(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn SetIsInputEnabled(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::SetIsInputEnabled(this, value).into() } - unsafe extern "system" fn PointerCursor(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn PointerCursor(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::PointerCursor(this) { Ok(ok__) => { @@ -682,17 +535,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPointerCursor(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn SetPointerCursor(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::SetPointerCursor(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn PointerPosition(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn PointerPosition(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::PointerPosition(this) { Ok(ok__) => { @@ -702,10 +549,7 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::Visible(this) { Ok(ok__) => { @@ -715,24 +559,15 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::Activate(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::Close(this).into() } - unsafe extern "system" fn GetAsyncKeyState(this: *mut core::ffi::c_void, virtualkey: super::super::System::VirtualKey, result__: *mut CoreVirtualKeyStates) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn GetAsyncKeyState(this: *mut core::ffi::c_void, virtualkey: super::super::System::VirtualKey, result__: *mut CoreVirtualKeyStates) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::GetAsyncKeyState(this, virtualkey) { Ok(ok__) => { @@ -742,10 +577,7 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyState(this: *mut core::ffi::c_void, virtualkey: super::super::System::VirtualKey, result__: *mut CoreVirtualKeyStates) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn GetKeyState(this: *mut core::ffi::c_void, virtualkey: super::super::System::VirtualKey, result__: *mut CoreVirtualKeyStates) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::GetKeyState(this, virtualkey) { Ok(ok__) => { @@ -755,24 +587,15 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleasePointerCapture(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn ReleasePointerCapture(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::ReleasePointerCapture(this).into() } - unsafe extern "system" fn SetPointerCapture(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn SetPointerCapture(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::SetPointerCapture(this).into() } - unsafe extern "system" fn Activated(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn Activated(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::Activated(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -782,17 +605,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveActivated(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemoveActivated(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemoveActivated(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn AutomationProviderRequested(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn AutomationProviderRequested(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::AutomationProviderRequested(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -802,17 +619,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveAutomationProviderRequested(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemoveAutomationProviderRequested(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemoveAutomationProviderRequested(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn CharacterReceived(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn CharacterReceived(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::CharacterReceived(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -822,17 +633,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveCharacterReceived(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemoveCharacterReceived(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemoveCharacterReceived(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn Closed(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn Closed(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::Closed(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -842,17 +647,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveClosed(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemoveClosed(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemoveClosed(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn InputEnabled(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn InputEnabled(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::InputEnabled(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -862,17 +661,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveInputEnabled(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemoveInputEnabled(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemoveInputEnabled(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn KeyDown(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn KeyDown(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::KeyDown(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -882,17 +675,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveKeyDown(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemoveKeyDown(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemoveKeyDown(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn KeyUp(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn KeyUp(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::KeyUp(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -902,17 +689,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveKeyUp(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemoveKeyUp(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemoveKeyUp(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerCaptureLost(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn PointerCaptureLost(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::PointerCaptureLost(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -922,17 +703,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerCaptureLost(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemovePointerCaptureLost(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemovePointerCaptureLost(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerEntered(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn PointerEntered(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::PointerEntered(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -942,17 +717,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerEntered(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemovePointerEntered(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemovePointerEntered(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerExited(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn PointerExited(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::PointerExited(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -962,17 +731,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerExited(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemovePointerExited(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemovePointerExited(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerMoved(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn PointerMoved(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::PointerMoved(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -982,17 +745,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerMoved(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemovePointerMoved(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemovePointerMoved(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerPressed(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn PointerPressed(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::PointerPressed(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -1002,17 +759,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerPressed(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemovePointerPressed(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemovePointerPressed(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerReleased(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn PointerReleased(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::PointerReleased(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -1022,17 +773,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerReleased(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemovePointerReleased(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemovePointerReleased(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn TouchHitTesting(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn TouchHitTesting(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::TouchHitTesting(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -1042,17 +787,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveTouchHitTesting(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemoveTouchHitTesting(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemoveTouchHitTesting(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn PointerWheelChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn PointerWheelChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::PointerWheelChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -1062,17 +801,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePointerWheelChanged(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemovePointerWheelChanged(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemovePointerWheelChanged(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn SizeChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn SizeChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::SizeChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -1082,17 +815,11 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveSizeChanged(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemoveSizeChanged(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemoveSizeChanged(this, core::mem::transmute(&cookie)).into() } - unsafe extern "system" fn VisibilityChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn VisibilityChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindow_Impl::VisibilityChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -1102,10 +829,7 @@ impl ICoreWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveVisibilityChanged(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: ICoreWindow_Impl, - { + unsafe extern "system" fn RemoveVisibilityChanged(this: *mut core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindow_Impl::RemoveVisibilityChanged(this, core::mem::transmute(&cookie)).into() } @@ -1169,7 +893,7 @@ impl ICoreWindow_Vtbl { iid == &::IID } } -pub trait ICoreWindowEventArgs_Impl: Sized { +pub trait ICoreWindowEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn Handled(&self) -> windows_core::Result; fn SetHandled(&self, value: bool) -> windows_core::Result<()>; } @@ -1177,14 +901,8 @@ impl windows_core::RuntimeName for ICoreWindowEventArgs { const NAME: &'static str = "Windows.UI.Core.ICoreWindowEventArgs"; } impl ICoreWindowEventArgs_Vtbl { - pub const fn new() -> ICoreWindowEventArgs_Vtbl - where - Identity: ICoreWindowEventArgs_Impl, - { - unsafe extern "system" fn Handled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICoreWindowEventArgs_Impl, - { + pub const fn new() -> ICoreWindowEventArgs_Vtbl { + unsafe extern "system" fn Handled(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindowEventArgs_Impl::Handled(this) { Ok(ok__) => { @@ -1194,10 +912,7 @@ impl ICoreWindowEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHandled(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: ICoreWindowEventArgs_Impl, - { + unsafe extern "system" fn SetHandled(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindowEventArgs_Impl::SetHandled(this, value).into() } @@ -1211,21 +926,15 @@ impl ICoreWindowEventArgs_Vtbl { iid == &::IID } } -pub trait IInitializeWithCoreWindow_Impl: Sized { +pub trait IInitializeWithCoreWindow_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, window: Option<&CoreWindow>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInitializeWithCoreWindow { const NAME: &'static str = "Windows.UI.Core.IInitializeWithCoreWindow"; } impl IInitializeWithCoreWindow_Vtbl { - pub const fn new() -> IInitializeWithCoreWindow_Vtbl - where - Identity: IInitializeWithCoreWindow_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, window: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInitializeWithCoreWindow_Impl, - { + pub const fn new() -> IInitializeWithCoreWindow_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, window: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeWithCoreWindow_Impl::Initialize(this, windows_core::from_raw_borrowed(&window)).into() } diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/impl.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/impl.rs index 7d77a6a523..b1363afd25 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Foundation_Collections")] -pub trait IInkAnalysisNode_Impl: Sized { +pub trait IInkAnalysisNode_Impl: Sized + windows_core::IUnknownImpl { fn Id(&self) -> windows_core::Result; fn Kind(&self) -> windows_core::Result; fn BoundingRect(&self) -> windows_core::Result; @@ -14,14 +14,8 @@ impl windows_core::RuntimeName for IInkAnalysisNode { } #[cfg(feature = "Foundation_Collections")] impl IInkAnalysisNode_Vtbl { - pub const fn new() -> IInkAnalysisNode_Vtbl - where - Identity: IInkAnalysisNode_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: IInkAnalysisNode_Impl, - { + pub const fn new() -> IInkAnalysisNode_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkAnalysisNode_Impl::Id(this) { Ok(ok__) => { @@ -31,10 +25,7 @@ impl IInkAnalysisNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut InkAnalysisNodeKind) -> windows_core::HRESULT - where - Identity: IInkAnalysisNode_Impl, - { + unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut InkAnalysisNodeKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkAnalysisNode_Impl::Kind(this) { Ok(ok__) => { @@ -44,10 +35,7 @@ impl IInkAnalysisNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BoundingRect(this: *mut core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IInkAnalysisNode_Impl, - { + unsafe extern "system" fn BoundingRect(this: *mut core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkAnalysisNode_Impl::BoundingRect(this) { Ok(ok__) => { @@ -57,10 +45,7 @@ impl IInkAnalysisNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RotatedBoundingRect(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkAnalysisNode_Impl, - { + unsafe extern "system" fn RotatedBoundingRect(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkAnalysisNode_Impl::RotatedBoundingRect(this) { Ok(ok__) => { @@ -71,10 +56,7 @@ impl IInkAnalysisNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Children(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkAnalysisNode_Impl, - { + unsafe extern "system" fn Children(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkAnalysisNode_Impl::Children(this) { Ok(ok__) => { @@ -85,10 +67,7 @@ impl IInkAnalysisNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkAnalysisNode_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkAnalysisNode_Impl::Parent(this) { Ok(ok__) => { @@ -99,10 +78,7 @@ impl IInkAnalysisNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStrokeIds(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkAnalysisNode_Impl, - { + unsafe extern "system" fn GetStrokeIds(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkAnalysisNode_Impl::GetStrokeIds(this) { Ok(ok__) => { @@ -128,21 +104,15 @@ impl IInkAnalysisNode_Vtbl { iid == &::IID } } -pub trait IInkAnalyzerFactory_Impl: Sized { +pub trait IInkAnalyzerFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateAnalyzer(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IInkAnalyzerFactory { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.IInkAnalyzerFactory"; } impl IInkAnalyzerFactory_Vtbl { - pub const fn new() -> IInkAnalyzerFactory_Vtbl - where - Identity: IInkAnalyzerFactory_Impl, - { - unsafe extern "system" fn CreateAnalyzer(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkAnalyzerFactory_Impl, - { + pub const fn new() -> IInkAnalyzerFactory_Vtbl { + unsafe extern "system" fn CreateAnalyzer(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkAnalyzerFactory_Impl::CreateAnalyzer(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/impl.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/impl.rs index 3f6f1308c1..01f188b258 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/impl.rs @@ -1,18 +1,12 @@ -pub trait IInkPointFactory_Impl: Sized { +pub trait IInkPointFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInkPoint(&self, position: &super::super::super::Foundation::Point, pressure: f32) -> windows_core::Result; } impl windows_core::RuntimeName for IInkPointFactory { const NAME: &'static str = "Windows.UI.Input.Inking.IInkPointFactory"; } impl IInkPointFactory_Vtbl { - pub const fn new() -> IInkPointFactory_Vtbl - where - Identity: IInkPointFactory_Impl, - { - unsafe extern "system" fn CreateInkPoint(this: *mut core::ffi::c_void, position: super::super::super::Foundation::Point, pressure: f32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPointFactory_Impl, - { + pub const fn new() -> IInkPointFactory_Vtbl { + unsafe extern "system" fn CreateInkPoint(this: *mut core::ffi::c_void, position: super::super::super::Foundation::Point, pressure: f32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPointFactory_Impl::CreateInkPoint(this, core::mem::transmute(&position), pressure) { Ok(ok__) => { @@ -29,21 +23,15 @@ impl IInkPointFactory_Vtbl { iid == &::IID } } -pub trait IInkPresenterRulerFactory_Impl: Sized { +pub trait IInkPresenterRulerFactory_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, inkpresenter: Option<&InkPresenter>) -> windows_core::Result; } impl windows_core::RuntimeName for IInkPresenterRulerFactory { const NAME: &'static str = "Windows.UI.Input.Inking.IInkPresenterRulerFactory"; } impl IInkPresenterRulerFactory_Vtbl { - pub const fn new() -> IInkPresenterRulerFactory_Vtbl - where - Identity: IInkPresenterRulerFactory_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, inkpresenter: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPresenterRulerFactory_Impl, - { + pub const fn new() -> IInkPresenterRulerFactory_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, inkpresenter: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPresenterRulerFactory_Impl::Create(this, windows_core::from_raw_borrowed(&inkpresenter)) { Ok(ok__) => { @@ -61,7 +49,7 @@ impl IInkPresenterRulerFactory_Vtbl { } } #[cfg(feature = "Foundation_Numerics")] -pub trait IInkPresenterStencil_Impl: Sized { +pub trait IInkPresenterStencil_Impl: Sized + windows_core::IUnknownImpl { fn Kind(&self) -> windows_core::Result; fn IsVisible(&self) -> windows_core::Result; fn SetIsVisible(&self, value: bool) -> windows_core::Result<()>; @@ -78,14 +66,8 @@ impl windows_core::RuntimeName for IInkPresenterStencil { } #[cfg(feature = "Foundation_Numerics")] impl IInkPresenterStencil_Vtbl { - pub const fn new() -> IInkPresenterStencil_Vtbl - where - Identity: IInkPresenterStencil_Impl, - { - unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut InkPresenterStencilKind) -> windows_core::HRESULT - where - Identity: IInkPresenterStencil_Impl, - { + pub const fn new() -> IInkPresenterStencil_Vtbl { + unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut InkPresenterStencilKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPresenterStencil_Impl::Kind(this) { Ok(ok__) => { @@ -95,10 +77,7 @@ impl IInkPresenterStencil_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsVisible(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IInkPresenterStencil_Impl, - { + unsafe extern "system" fn IsVisible(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPresenterStencil_Impl::IsVisible(this) { Ok(ok__) => { @@ -108,17 +87,11 @@ impl IInkPresenterStencil_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsVisible(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: IInkPresenterStencil_Impl, - { + unsafe extern "system" fn SetIsVisible(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPresenterStencil_Impl::SetIsVisible(this, value).into() } - unsafe extern "system" fn BackgroundColor(this: *mut core::ffi::c_void, result__: *mut super::super::Color) -> windows_core::HRESULT - where - Identity: IInkPresenterStencil_Impl, - { + unsafe extern "system" fn BackgroundColor(this: *mut core::ffi::c_void, result__: *mut super::super::Color) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPresenterStencil_Impl::BackgroundColor(this) { Ok(ok__) => { @@ -128,17 +101,11 @@ impl IInkPresenterStencil_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, value: super::super::Color) -> windows_core::HRESULT - where - Identity: IInkPresenterStencil_Impl, - { + unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, value: super::super::Color) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPresenterStencil_Impl::SetBackgroundColor(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ForegroundColor(this: *mut core::ffi::c_void, result__: *mut super::super::Color) -> windows_core::HRESULT - where - Identity: IInkPresenterStencil_Impl, - { + unsafe extern "system" fn ForegroundColor(this: *mut core::ffi::c_void, result__: *mut super::super::Color) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPresenterStencil_Impl::ForegroundColor(this) { Ok(ok__) => { @@ -148,17 +115,11 @@ impl IInkPresenterStencil_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetForegroundColor(this: *mut core::ffi::c_void, value: super::super::Color) -> windows_core::HRESULT - where - Identity: IInkPresenterStencil_Impl, - { + unsafe extern "system" fn SetForegroundColor(this: *mut core::ffi::c_void, value: super::super::Color) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPresenterStencil_Impl::SetForegroundColor(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Transform(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT - where - Identity: IInkPresenterStencil_Impl, - { + unsafe extern "system" fn Transform(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPresenterStencil_Impl::Transform(this) { Ok(ok__) => { @@ -168,10 +129,7 @@ impl IInkPresenterStencil_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, value: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT - where - Identity: IInkPresenterStencil_Impl, - { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, value: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPresenterStencil_Impl::SetTransform(this, core::mem::transmute(&value)).into() } @@ -193,7 +151,7 @@ impl IInkPresenterStencil_Vtbl { } } #[cfg(feature = "Foundation_Collections")] -pub trait IInkRecognizerContainer_Impl: Sized { +pub trait IInkRecognizerContainer_Impl: Sized + windows_core::IUnknownImpl { fn SetDefaultRecognizer(&self, recognizer: Option<&InkRecognizer>) -> windows_core::Result<()>; fn RecognizeAsync(&self, strokecollection: Option<&InkStrokeContainer>, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>>; fn GetRecognizers(&self) -> windows_core::Result>; @@ -204,21 +162,12 @@ impl windows_core::RuntimeName for IInkRecognizerContainer { } #[cfg(feature = "Foundation_Collections")] impl IInkRecognizerContainer_Vtbl { - pub const fn new() -> IInkRecognizerContainer_Vtbl - where - Identity: IInkRecognizerContainer_Impl, - { - unsafe extern "system" fn SetDefaultRecognizer(this: *mut core::ffi::c_void, recognizer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContainer_Impl, - { + pub const fn new() -> IInkRecognizerContainer_Vtbl { + unsafe extern "system" fn SetDefaultRecognizer(this: *mut core::ffi::c_void, recognizer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContainer_Impl::SetDefaultRecognizer(this, windows_core::from_raw_borrowed(&recognizer)).into() } - unsafe extern "system" fn RecognizeAsync(this: *mut core::ffi::c_void, strokecollection: *mut core::ffi::c_void, recognitiontarget: InkRecognitionTarget, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContainer_Impl, - { + unsafe extern "system" fn RecognizeAsync(this: *mut core::ffi::c_void, strokecollection: *mut core::ffi::c_void, recognitiontarget: InkRecognitionTarget, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContainer_Impl::RecognizeAsync(this, windows_core::from_raw_borrowed(&strokecollection), recognitiontarget) { Ok(ok__) => { @@ -229,10 +178,7 @@ impl IInkRecognizerContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecognizers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContainer_Impl, - { + unsafe extern "system" fn GetRecognizers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContainer_Impl::GetRecognizers(this) { Ok(ok__) => { @@ -255,7 +201,7 @@ impl IInkRecognizerContainer_Vtbl { } } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] -pub trait IInkStrokeContainer_Impl: Sized { +pub trait IInkStrokeContainer_Impl: Sized + windows_core::IUnknownImpl { fn BoundingRect(&self) -> windows_core::Result; fn AddStroke(&self, stroke: Option<&InkStroke>) -> windows_core::Result<()>; fn DeleteSelected(&self) -> windows_core::Result; @@ -277,14 +223,8 @@ impl windows_core::RuntimeName for IInkStrokeContainer { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] impl IInkStrokeContainer_Vtbl { - pub const fn new() -> IInkStrokeContainer_Vtbl - where - Identity: IInkStrokeContainer_Impl, - { - unsafe extern "system" fn BoundingRect(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + pub const fn new() -> IInkStrokeContainer_Vtbl { + unsafe extern "system" fn BoundingRect(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::BoundingRect(this) { Ok(ok__) => { @@ -294,17 +234,11 @@ impl IInkStrokeContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStroke(this: *mut core::ffi::c_void, stroke: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn AddStroke(this: *mut core::ffi::c_void, stroke: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeContainer_Impl::AddStroke(this, windows_core::from_raw_borrowed(&stroke)).into() } - unsafe extern "system" fn DeleteSelected(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn DeleteSelected(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::DeleteSelected(this) { Ok(ok__) => { @@ -314,10 +248,7 @@ impl IInkStrokeContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveSelected(this: *mut core::ffi::c_void, translation: super::super::super::Foundation::Point, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn MoveSelected(this: *mut core::ffi::c_void, translation: super::super::super::Foundation::Point, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::MoveSelected(this, core::mem::transmute(&translation)) { Ok(ok__) => { @@ -327,10 +258,7 @@ impl IInkStrokeContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectWithPolyLine(this: *mut core::ffi::c_void, polyline: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn SelectWithPolyLine(this: *mut core::ffi::c_void, polyline: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::SelectWithPolyLine(this, windows_core::from_raw_borrowed(&polyline)) { Ok(ok__) => { @@ -340,10 +268,7 @@ impl IInkStrokeContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectWithLine(this: *mut core::ffi::c_void, from: super::super::super::Foundation::Point, to: super::super::super::Foundation::Point, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn SelectWithLine(this: *mut core::ffi::c_void, from: super::super::super::Foundation::Point, to: super::super::super::Foundation::Point, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::SelectWithLine(this, core::mem::transmute(&from), core::mem::transmute(&to)) { Ok(ok__) => { @@ -353,17 +278,11 @@ impl IInkStrokeContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopySelectedToClipboard(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn CopySelectedToClipboard(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeContainer_Impl::CopySelectedToClipboard(this).into() } - unsafe extern "system" fn PasteFromClipboard(this: *mut core::ffi::c_void, position: super::super::super::Foundation::Point, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn PasteFromClipboard(this: *mut core::ffi::c_void, position: super::super::super::Foundation::Point, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::PasteFromClipboard(this, core::mem::transmute(&position)) { Ok(ok__) => { @@ -373,10 +292,7 @@ impl IInkStrokeContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanPasteFromClipboard(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn CanPasteFromClipboard(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::CanPasteFromClipboard(this) { Ok(ok__) => { @@ -386,10 +302,7 @@ impl IInkStrokeContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadAsync(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn LoadAsync(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::LoadAsync(this, windows_core::from_raw_borrowed(&inputstream)) { Ok(ok__) => { @@ -400,10 +313,7 @@ impl IInkStrokeContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveAsync(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn SaveAsync(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::SaveAsync(this, windows_core::from_raw_borrowed(&outputstream)) { Ok(ok__) => { @@ -414,17 +324,11 @@ impl IInkStrokeContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateRecognitionResults(this: *mut core::ffi::c_void, recognitionresults: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn UpdateRecognitionResults(this: *mut core::ffi::c_void, recognitionresults: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeContainer_Impl::UpdateRecognitionResults(this, windows_core::from_raw_borrowed(&recognitionresults)).into() } - unsafe extern "system" fn GetStrokes(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn GetStrokes(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::GetStrokes(this) { Ok(ok__) => { @@ -435,10 +339,7 @@ impl IInkStrokeContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecognitionResults(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeContainer_Impl, - { + unsafe extern "system" fn GetRecognitionResults(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeContainer_Impl::GetRecognitionResults(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/UI/Input/impl.rs b/crates/libs/windows/src/Windows/UI/Input/impl.rs index 7f553d5c45..c793c2ee9c 100644 --- a/crates/libs/windows/src/Windows/UI/Input/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Input/impl.rs @@ -1,4 +1,4 @@ -pub trait IPointerPointTransform_Impl: Sized { +pub trait IPointerPointTransform_Impl: Sized + windows_core::IUnknownImpl { fn Inverse(&self) -> windows_core::Result; fn TryTransform(&self, inpoint: &super::super::Foundation::Point, outpoint: &mut super::super::Foundation::Point) -> windows_core::Result; fn TransformBounds(&self, rect: &super::super::Foundation::Rect) -> windows_core::Result; @@ -7,14 +7,8 @@ impl windows_core::RuntimeName for IPointerPointTransform { const NAME: &'static str = "Windows.UI.Input.IPointerPointTransform"; } impl IPointerPointTransform_Vtbl { - pub const fn new() -> IPointerPointTransform_Vtbl - where - Identity: IPointerPointTransform_Impl, - { - unsafe extern "system" fn Inverse(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPointerPointTransform_Impl, - { + pub const fn new() -> IPointerPointTransform_Vtbl { + unsafe extern "system" fn Inverse(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPointerPointTransform_Impl::Inverse(this) { Ok(ok__) => { @@ -25,10 +19,7 @@ impl IPointerPointTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TryTransform(this: *mut core::ffi::c_void, inpoint: super::super::Foundation::Point, outpoint: *mut super::super::Foundation::Point, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IPointerPointTransform_Impl, - { + unsafe extern "system" fn TryTransform(this: *mut core::ffi::c_void, inpoint: super::super::Foundation::Point, outpoint: *mut super::super::Foundation::Point, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPointerPointTransform_Impl::TryTransform(this, core::mem::transmute(&inpoint), core::mem::transmute_copy(&outpoint)) { Ok(ok__) => { @@ -38,10 +29,7 @@ impl IPointerPointTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransformBounds(this: *mut core::ffi::c_void, rect: super::super::Foundation::Rect, result__: *mut super::super::Foundation::Rect) -> windows_core::HRESULT - where - Identity: IPointerPointTransform_Impl, - { + unsafe extern "system" fn TransformBounds(this: *mut core::ffi::c_void, rect: super::super::Foundation::Rect, result__: *mut super::super::Foundation::Rect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPointerPointTransform_Impl::TransformBounds(this, core::mem::transmute(&rect)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/UI/Notifications/impl.rs b/crates/libs/windows/src/Windows/UI/Notifications/impl.rs index 1aad69b77b..12e7460401 100644 --- a/crates/libs/windows/src/Windows/UI/Notifications/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Notifications/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Foundation_Collections")] -pub trait IAdaptiveNotificationContent_Impl: Sized { +pub trait IAdaptiveNotificationContent_Impl: Sized + windows_core::IUnknownImpl { fn Kind(&self) -> windows_core::Result; fn Hints(&self) -> windows_core::Result>; } @@ -9,14 +9,8 @@ impl windows_core::RuntimeName for IAdaptiveNotificationContent { } #[cfg(feature = "Foundation_Collections")] impl IAdaptiveNotificationContent_Vtbl { - pub const fn new() -> IAdaptiveNotificationContent_Vtbl - where - Identity: IAdaptiveNotificationContent_Impl, - { - unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut AdaptiveNotificationContentKind) -> windows_core::HRESULT - where - Identity: IAdaptiveNotificationContent_Impl, - { + pub const fn new() -> IAdaptiveNotificationContent_Vtbl { + unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut AdaptiveNotificationContentKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdaptiveNotificationContent_Impl::Kind(this) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl IAdaptiveNotificationContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Hints(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAdaptiveNotificationContent_Impl, - { + unsafe extern "system" fn Hints(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdaptiveNotificationContent_Impl::Hints(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/UI/Popups/impl.rs b/crates/libs/windows/src/Windows/UI/Popups/impl.rs index f2e5f222b9..07129007d1 100644 --- a/crates/libs/windows/src/Windows/UI/Popups/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Popups/impl.rs @@ -1,4 +1,4 @@ -pub trait IUICommand_Impl: Sized { +pub trait IUICommand_Impl: Sized + windows_core::IUnknownImpl { fn Label(&self) -> windows_core::Result; fn SetLabel(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn Invoked(&self) -> windows_core::Result; @@ -10,14 +10,8 @@ impl windows_core::RuntimeName for IUICommand { const NAME: &'static str = "Windows.UI.Popups.IUICommand"; } impl IUICommand_Vtbl { - pub const fn new() -> IUICommand_Vtbl - where - Identity: IUICommand_Impl, - { - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUICommand_Impl, - { + pub const fn new() -> IUICommand_Vtbl { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUICommand_Impl::Label(this) { Ok(ok__) => { @@ -28,17 +22,11 @@ impl IUICommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUICommand_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUICommand_Impl::SetLabel(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Invoked(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICommand_Impl, - { + unsafe extern "system" fn Invoked(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUICommand_Impl::Invoked(this) { Ok(ok__) => { @@ -49,17 +37,11 @@ impl IUICommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInvoked(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICommand_Impl, - { + unsafe extern "system" fn SetInvoked(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUICommand_Impl::SetInvoked(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICommand_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUICommand_Impl::Id(this) { Ok(ok__) => { @@ -70,10 +52,7 @@ impl IUICommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICommand_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUICommand_Impl::SetId(this, windows_core::from_raw_borrowed(&value)).into() } diff --git a/crates/libs/windows/src/Windows/UI/Shell/impl.rs b/crates/libs/windows/src/Windows/UI/Shell/impl.rs index ee42a93ce1..5b1fe196f0 100644 --- a/crates/libs/windows/src/Windows/UI/Shell/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Shell/impl.rs @@ -1,18 +1,12 @@ -pub trait IAdaptiveCard_Impl: Sized { +pub trait IAdaptiveCard_Impl: Sized + windows_core::IUnknownImpl { fn ToJson(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAdaptiveCard { const NAME: &'static str = "Windows.UI.Shell.IAdaptiveCard"; } impl IAdaptiveCard_Vtbl { - pub const fn new() -> IAdaptiveCard_Vtbl - where - Identity: IAdaptiveCard_Impl, - { - unsafe extern "system" fn ToJson(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAdaptiveCard_Impl, - { + pub const fn new() -> IAdaptiveCard_Vtbl { + unsafe extern "system" fn ToJson(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdaptiveCard_Impl::ToJson(this) { Ok(ok__) => { @@ -29,21 +23,15 @@ impl IAdaptiveCard_Vtbl { iid == &::IID } } -pub trait IAdaptiveCardBuilderStatics_Impl: Sized { +pub trait IAdaptiveCardBuilderStatics_Impl: Sized + windows_core::IUnknownImpl { fn CreateAdaptiveCardFromJson(&self, value: &windows_core::HSTRING) -> windows_core::Result; } impl windows_core::RuntimeName for IAdaptiveCardBuilderStatics { const NAME: &'static str = "Windows.UI.Shell.IAdaptiveCardBuilderStatics"; } impl IAdaptiveCardBuilderStatics_Vtbl { - pub const fn new() -> IAdaptiveCardBuilderStatics_Vtbl - where - Identity: IAdaptiveCardBuilderStatics_Impl, - { - unsafe extern "system" fn CreateAdaptiveCardFromJson(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAdaptiveCardBuilderStatics_Impl, - { + pub const fn new() -> IAdaptiveCardBuilderStatics_Vtbl { + unsafe extern "system" fn CreateAdaptiveCardFromJson(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdaptiveCardBuilderStatics_Impl::CreateAdaptiveCardFromJson(this, core::mem::transmute(&value)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/UI/Text/impl.rs b/crates/libs/windows/src/Windows/UI/Text/impl.rs index a5eeef017f..b94c1d2112 100644 --- a/crates/libs/windows/src/Windows/UI/Text/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Text/impl.rs @@ -1,4 +1,4 @@ -pub trait ITextCharacterFormat_Impl: Sized { +pub trait ITextCharacterFormat_Impl: Sized + windows_core::IUnknownImpl { fn AllCaps(&self) -> windows_core::Result; fn SetAllCaps(&self, value: FormatEffect) -> windows_core::Result<()>; fn BackgroundColor(&self) -> windows_core::Result; @@ -54,14 +54,8 @@ impl windows_core::RuntimeName for ITextCharacterFormat { const NAME: &'static str = "Windows.UI.Text.ITextCharacterFormat"; } impl ITextCharacterFormat_Vtbl { - pub const fn new() -> ITextCharacterFormat_Vtbl - where - Identity: ITextCharacterFormat_Impl, - { - unsafe extern "system" fn AllCaps(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + pub const fn new() -> ITextCharacterFormat_Vtbl { + unsafe extern "system" fn AllCaps(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::AllCaps(this) { Ok(ok__) => { @@ -71,17 +65,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllCaps(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetAllCaps(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetAllCaps(this, value).into() } - unsafe extern "system" fn BackgroundColor(this: *mut core::ffi::c_void, result__: *mut super::Color) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn BackgroundColor(this: *mut core::ffi::c_void, result__: *mut super::Color) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::BackgroundColor(this) { Ok(ok__) => { @@ -91,17 +79,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, value: super::Color) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, value: super::Color) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetBackgroundColor(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Bold(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Bold(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Bold(this) { Ok(ok__) => { @@ -111,17 +93,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBold(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetBold(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetBold(this, value).into() } - unsafe extern "system" fn FontStretch(this: *mut core::ffi::c_void, result__: *mut FontStretch) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn FontStretch(this: *mut core::ffi::c_void, result__: *mut FontStretch) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::FontStretch(this) { Ok(ok__) => { @@ -131,17 +107,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFontStretch(this: *mut core::ffi::c_void, value: FontStretch) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetFontStretch(this: *mut core::ffi::c_void, value: FontStretch) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetFontStretch(this, value).into() } - unsafe extern "system" fn FontStyle(this: *mut core::ffi::c_void, result__: *mut FontStyle) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn FontStyle(this: *mut core::ffi::c_void, result__: *mut FontStyle) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::FontStyle(this) { Ok(ok__) => { @@ -151,17 +121,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFontStyle(this: *mut core::ffi::c_void, value: FontStyle) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetFontStyle(this: *mut core::ffi::c_void, value: FontStyle) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetFontStyle(this, value).into() } - unsafe extern "system" fn ForegroundColor(this: *mut core::ffi::c_void, result__: *mut super::Color) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn ForegroundColor(this: *mut core::ffi::c_void, result__: *mut super::Color) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::ForegroundColor(this) { Ok(ok__) => { @@ -171,17 +135,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetForegroundColor(this: *mut core::ffi::c_void, value: super::Color) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetForegroundColor(this: *mut core::ffi::c_void, value: super::Color) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetForegroundColor(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Hidden(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Hidden(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Hidden(this) { Ok(ok__) => { @@ -191,17 +149,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHidden(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetHidden(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetHidden(this, value).into() } - unsafe extern "system" fn Italic(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Italic(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Italic(this) { Ok(ok__) => { @@ -211,17 +163,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetItalic(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetItalic(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetItalic(this, value).into() } - unsafe extern "system" fn Kerning(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Kerning(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Kerning(this) { Ok(ok__) => { @@ -231,17 +177,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKerning(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetKerning(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetKerning(this, value).into() } - unsafe extern "system" fn LanguageTag(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn LanguageTag(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::LanguageTag(this) { Ok(ok__) => { @@ -252,17 +192,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLanguageTag(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetLanguageTag(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetLanguageTag(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn LinkType(this: *mut core::ffi::c_void, result__: *mut LinkType) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn LinkType(this: *mut core::ffi::c_void, result__: *mut LinkType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::LinkType(this) { Ok(ok__) => { @@ -272,10 +206,7 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Name(this) { Ok(ok__) => { @@ -286,17 +217,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Outline(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Outline(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Outline(this) { Ok(ok__) => { @@ -306,17 +231,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutline(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetOutline(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetOutline(this, value).into() } - unsafe extern "system" fn Position(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Position(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Position(this) { Ok(ok__) => { @@ -326,17 +245,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetPosition(this, value).into() } - unsafe extern "system" fn ProtectedText(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn ProtectedText(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::ProtectedText(this) { Ok(ok__) => { @@ -346,17 +259,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProtectedText(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetProtectedText(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetProtectedText(this, value).into() } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Size(this) { Ok(ok__) => { @@ -366,17 +273,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetSize(this, value).into() } - unsafe extern "system" fn SmallCaps(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SmallCaps(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::SmallCaps(this) { Ok(ok__) => { @@ -386,17 +287,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSmallCaps(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetSmallCaps(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetSmallCaps(this, value).into() } - unsafe extern "system" fn Spacing(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Spacing(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Spacing(this) { Ok(ok__) => { @@ -406,17 +301,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpacing(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetSpacing(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetSpacing(this, value).into() } - unsafe extern "system" fn Strikethrough(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Strikethrough(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Strikethrough(this) { Ok(ok__) => { @@ -426,17 +315,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrikethrough(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetStrikethrough(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetStrikethrough(this, value).into() } - unsafe extern "system" fn Subscript(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Subscript(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Subscript(this) { Ok(ok__) => { @@ -446,17 +329,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubscript(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetSubscript(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetSubscript(this, value).into() } - unsafe extern "system" fn Superscript(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Superscript(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Superscript(this) { Ok(ok__) => { @@ -466,17 +343,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSuperscript(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetSuperscript(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetSuperscript(this, value).into() } - unsafe extern "system" fn TextScript(this: *mut core::ffi::c_void, result__: *mut TextScript) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn TextScript(this: *mut core::ffi::c_void, result__: *mut TextScript) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::TextScript(this) { Ok(ok__) => { @@ -486,17 +357,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTextScript(this: *mut core::ffi::c_void, value: TextScript) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetTextScript(this: *mut core::ffi::c_void, value: TextScript) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetTextScript(this, value).into() } - unsafe extern "system" fn Underline(this: *mut core::ffi::c_void, result__: *mut UnderlineType) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Underline(this: *mut core::ffi::c_void, result__: *mut UnderlineType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Underline(this) { Ok(ok__) => { @@ -506,17 +371,11 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, value: UnderlineType) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, value: UnderlineType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetUnderline(this, value).into() } - unsafe extern "system" fn Weight(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn Weight(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::Weight(this) { Ok(ok__) => { @@ -526,24 +385,15 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWeight(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetWeight(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetWeight(this, value).into() } - unsafe extern "system" fn SetClone(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn SetClone(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextCharacterFormat_Impl::SetClone(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn GetClone(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn GetClone(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::GetClone(this) { Ok(ok__) => { @@ -554,10 +404,7 @@ impl ITextCharacterFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ITextCharacterFormat_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextCharacterFormat_Impl::IsEqual(this, windows_core::from_raw_borrowed(&format)) { Ok(ok__) => { @@ -626,7 +473,7 @@ impl ITextCharacterFormat_Vtbl { } } #[cfg(feature = "Storage_Streams")] -pub trait ITextDocument_Impl: Sized { +pub trait ITextDocument_Impl: Sized + windows_core::IUnknownImpl { fn CaretType(&self) -> windows_core::Result; fn SetCaretType(&self, value: CaretType) -> windows_core::Result<()>; fn DefaultTabStop(&self) -> windows_core::Result; @@ -661,14 +508,8 @@ impl windows_core::RuntimeName for ITextDocument { } #[cfg(feature = "Storage_Streams")] impl ITextDocument_Vtbl { - pub const fn new() -> ITextDocument_Vtbl - where - Identity: ITextDocument_Impl, - { - unsafe extern "system" fn CaretType(this: *mut core::ffi::c_void, result__: *mut CaretType) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + pub const fn new() -> ITextDocument_Vtbl { + unsafe extern "system" fn CaretType(this: *mut core::ffi::c_void, result__: *mut CaretType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::CaretType(this) { Ok(ok__) => { @@ -678,17 +519,11 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCaretType(this: *mut core::ffi::c_void, value: CaretType) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn SetCaretType(this: *mut core::ffi::c_void, value: CaretType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::SetCaretType(this, value).into() } - unsafe extern "system" fn DefaultTabStop(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn DefaultTabStop(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::DefaultTabStop(this) { Ok(ok__) => { @@ -698,17 +533,11 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultTabStop(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn SetDefaultTabStop(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::SetDefaultTabStop(this, value).into() } - unsafe extern "system" fn Selection(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn Selection(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::Selection(this) { Ok(ok__) => { @@ -719,10 +548,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UndoLimit(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn UndoLimit(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::UndoLimit(this) { Ok(ok__) => { @@ -732,17 +558,11 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUndoLimit(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn SetUndoLimit(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::SetUndoLimit(this, value).into() } - unsafe extern "system" fn CanCopy(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn CanCopy(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::CanCopy(this) { Ok(ok__) => { @@ -752,10 +572,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanPaste(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn CanPaste(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::CanPaste(this) { Ok(ok__) => { @@ -765,10 +582,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanRedo(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn CanRedo(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::CanRedo(this) { Ok(ok__) => { @@ -778,10 +592,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanUndo(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn CanUndo(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::CanUndo(this) { Ok(ok__) => { @@ -791,10 +602,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplyDisplayUpdates(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn ApplyDisplayUpdates(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::ApplyDisplayUpdates(this) { Ok(ok__) => { @@ -804,10 +612,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BatchDisplayUpdates(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn BatchDisplayUpdates(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::BatchDisplayUpdates(this) { Ok(ok__) => { @@ -817,24 +622,15 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginUndoGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn BeginUndoGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::BeginUndoGroup(this).into() } - unsafe extern "system" fn EndUndoGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn EndUndoGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::EndUndoGroup(this).into() } - unsafe extern "system" fn GetDefaultCharacterFormat(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn GetDefaultCharacterFormat(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::GetDefaultCharacterFormat(this) { Ok(ok__) => { @@ -845,10 +641,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultParagraphFormat(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn GetDefaultParagraphFormat(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::GetDefaultParagraphFormat(this) { Ok(ok__) => { @@ -859,10 +652,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, startposition: i32, endposition: i32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, startposition: i32, endposition: i32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::GetRange(this, startposition, endposition) { Ok(ok__) => { @@ -873,10 +663,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRangeFromPoint(this: *mut core::ffi::c_void, point: super::super::Foundation::Point, options: PointOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn GetRangeFromPoint(this: *mut core::ffi::c_void, point: super::super::Foundation::Point, options: PointOptions, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::GetRangeFromPoint(this, core::mem::transmute(&point), options) { Ok(ok__) => { @@ -887,59 +674,35 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, options: TextGetOptions, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, options: TextGetOptions, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::GetText(this, options, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn LoadFromStream(this: *mut core::ffi::c_void, options: TextSetOptions, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn LoadFromStream(this: *mut core::ffi::c_void, options: TextSetOptions, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::LoadFromStream(this, options, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn Redo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn Redo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::Redo(this).into() } - unsafe extern "system" fn SaveToStream(this: *mut core::ffi::c_void, options: TextGetOptions, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn SaveToStream(this: *mut core::ffi::c_void, options: TextGetOptions, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::SaveToStream(this, options, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn SetDefaultCharacterFormat(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn SetDefaultCharacterFormat(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::SetDefaultCharacterFormat(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn SetDefaultParagraphFormat(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn SetDefaultParagraphFormat(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::SetDefaultParagraphFormat(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, options: TextSetOptions, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, options: TextSetOptions, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::SetText(this, options, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Undo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn Undo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::Undo(this).into() } @@ -978,7 +741,7 @@ impl ITextDocument_Vtbl { iid == &::IID } } -pub trait ITextParagraphFormat_Impl: Sized { +pub trait ITextParagraphFormat_Impl: Sized + windows_core::IUnknownImpl { fn Alignment(&self) -> windows_core::Result; fn SetAlignment(&self, value: ParagraphAlignment) -> windows_core::Result<()>; fn FirstLineIndent(&self) -> windows_core::Result; @@ -1032,14 +795,8 @@ impl windows_core::RuntimeName for ITextParagraphFormat { const NAME: &'static str = "Windows.UI.Text.ITextParagraphFormat"; } impl ITextParagraphFormat_Vtbl { - pub const fn new() -> ITextParagraphFormat_Vtbl - where - Identity: ITextParagraphFormat_Impl, - { - unsafe extern "system" fn Alignment(this: *mut core::ffi::c_void, result__: *mut ParagraphAlignment) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + pub const fn new() -> ITextParagraphFormat_Vtbl { + unsafe extern "system" fn Alignment(this: *mut core::ffi::c_void, result__: *mut ParagraphAlignment) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::Alignment(this) { Ok(ok__) => { @@ -1049,17 +806,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlignment(this: *mut core::ffi::c_void, value: ParagraphAlignment) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetAlignment(this: *mut core::ffi::c_void, value: ParagraphAlignment) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetAlignment(this, value).into() } - unsafe extern "system" fn FirstLineIndent(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn FirstLineIndent(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::FirstLineIndent(this) { Ok(ok__) => { @@ -1069,10 +820,7 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeepTogether(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn KeepTogether(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::KeepTogether(this) { Ok(ok__) => { @@ -1082,17 +830,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeepTogether(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetKeepTogether(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetKeepTogether(this, value).into() } - unsafe extern "system" fn KeepWithNext(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn KeepWithNext(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::KeepWithNext(this) { Ok(ok__) => { @@ -1102,17 +844,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeepWithNext(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetKeepWithNext(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetKeepWithNext(this, value).into() } - unsafe extern "system" fn LeftIndent(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn LeftIndent(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::LeftIndent(this) { Ok(ok__) => { @@ -1122,10 +858,7 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LineSpacing(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn LineSpacing(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::LineSpacing(this) { Ok(ok__) => { @@ -1135,10 +868,7 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LineSpacingRule(this: *mut core::ffi::c_void, result__: *mut LineSpacingRule) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn LineSpacingRule(this: *mut core::ffi::c_void, result__: *mut LineSpacingRule) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::LineSpacingRule(this) { Ok(ok__) => { @@ -1148,10 +878,7 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ListAlignment(this: *mut core::ffi::c_void, result__: *mut MarkerAlignment) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn ListAlignment(this: *mut core::ffi::c_void, result__: *mut MarkerAlignment) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::ListAlignment(this) { Ok(ok__) => { @@ -1161,17 +888,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListAlignment(this: *mut core::ffi::c_void, value: MarkerAlignment) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetListAlignment(this: *mut core::ffi::c_void, value: MarkerAlignment) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetListAlignment(this, value).into() } - unsafe extern "system" fn ListLevelIndex(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn ListLevelIndex(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::ListLevelIndex(this) { Ok(ok__) => { @@ -1181,17 +902,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListLevelIndex(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetListLevelIndex(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetListLevelIndex(this, value).into() } - unsafe extern "system" fn ListStart(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn ListStart(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::ListStart(this) { Ok(ok__) => { @@ -1201,17 +916,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListStart(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetListStart(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetListStart(this, value).into() } - unsafe extern "system" fn ListStyle(this: *mut core::ffi::c_void, result__: *mut MarkerStyle) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn ListStyle(this: *mut core::ffi::c_void, result__: *mut MarkerStyle) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::ListStyle(this) { Ok(ok__) => { @@ -1221,17 +930,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListStyle(this: *mut core::ffi::c_void, value: MarkerStyle) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetListStyle(this: *mut core::ffi::c_void, value: MarkerStyle) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetListStyle(this, value).into() } - unsafe extern "system" fn ListTab(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn ListTab(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::ListTab(this) { Ok(ok__) => { @@ -1241,17 +944,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListTab(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetListTab(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetListTab(this, value).into() } - unsafe extern "system" fn ListType(this: *mut core::ffi::c_void, result__: *mut MarkerType) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn ListType(this: *mut core::ffi::c_void, result__: *mut MarkerType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::ListType(this) { Ok(ok__) => { @@ -1261,17 +958,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListType(this: *mut core::ffi::c_void, value: MarkerType) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetListType(this: *mut core::ffi::c_void, value: MarkerType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetListType(this, value).into() } - unsafe extern "system" fn NoLineNumber(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn NoLineNumber(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::NoLineNumber(this) { Ok(ok__) => { @@ -1281,17 +972,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNoLineNumber(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetNoLineNumber(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetNoLineNumber(this, value).into() } - unsafe extern "system" fn PageBreakBefore(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn PageBreakBefore(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::PageBreakBefore(this) { Ok(ok__) => { @@ -1301,17 +986,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPageBreakBefore(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetPageBreakBefore(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetPageBreakBefore(this, value).into() } - unsafe extern "system" fn RightIndent(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn RightIndent(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::RightIndent(this) { Ok(ok__) => { @@ -1321,17 +1000,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRightIndent(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetRightIndent(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetRightIndent(this, value).into() } - unsafe extern "system" fn RightToLeft(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn RightToLeft(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::RightToLeft(this) { Ok(ok__) => { @@ -1341,17 +1014,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRightToLeft(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetRightToLeft(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetRightToLeft(this, value).into() } - unsafe extern "system" fn Style(this: *mut core::ffi::c_void, result__: *mut ParagraphStyle) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn Style(this: *mut core::ffi::c_void, result__: *mut ParagraphStyle) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::Style(this) { Ok(ok__) => { @@ -1361,17 +1028,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStyle(this: *mut core::ffi::c_void, value: ParagraphStyle) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetStyle(this: *mut core::ffi::c_void, value: ParagraphStyle) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetStyle(this, value).into() } - unsafe extern "system" fn SpaceAfter(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SpaceAfter(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::SpaceAfter(this) { Ok(ok__) => { @@ -1381,17 +1042,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpaceAfter(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetSpaceAfter(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetSpaceAfter(this, value).into() } - unsafe extern "system" fn SpaceBefore(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SpaceBefore(this: *mut core::ffi::c_void, result__: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::SpaceBefore(this) { Ok(ok__) => { @@ -1401,17 +1056,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpaceBefore(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetSpaceBefore(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetSpaceBefore(this, value).into() } - unsafe extern "system" fn WidowControl(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn WidowControl(this: *mut core::ffi::c_void, result__: *mut FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::WidowControl(this) { Ok(ok__) => { @@ -1421,17 +1070,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWidowControl(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetWidowControl(this: *mut core::ffi::c_void, value: FormatEffect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetWidowControl(this, value).into() } - unsafe extern "system" fn TabCount(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn TabCount(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::TabCount(this) { Ok(ok__) => { @@ -1441,31 +1084,19 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTab(this: *mut core::ffi::c_void, position: f32, align: TabAlignment, leader: TabLeader) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn AddTab(this: *mut core::ffi::c_void, position: f32, align: TabAlignment, leader: TabLeader) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::AddTab(this, position, align, leader).into() } - unsafe extern "system" fn ClearAllTabs(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn ClearAllTabs(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::ClearAllTabs(this).into() } - unsafe extern "system" fn DeleteTab(this: *mut core::ffi::c_void, position: f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn DeleteTab(this: *mut core::ffi::c_void, position: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::DeleteTab(this, position).into() } - unsafe extern "system" fn GetClone(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn GetClone(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::GetClone(this) { Ok(ok__) => { @@ -1476,17 +1107,11 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTab(this: *mut core::ffi::c_void, index: i32, position: *mut f32, align: *mut TabAlignment, leader: *mut TabLeader) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn GetTab(this: *mut core::ffi::c_void, index: i32, position: *mut f32, align: *mut TabAlignment, leader: *mut TabLeader) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::GetTab(this, index, core::mem::transmute_copy(&position), core::mem::transmute_copy(&align), core::mem::transmute_copy(&leader)).into() } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextParagraphFormat_Impl::IsEqual(this, windows_core::from_raw_borrowed(&format)) { Ok(ok__) => { @@ -1496,24 +1121,15 @@ impl ITextParagraphFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClone(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetClone(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetClone(this, windows_core::from_raw_borrowed(&format)).into() } - unsafe extern "system" fn SetIndents(this: *mut core::ffi::c_void, start: f32, left: f32, right: f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetIndents(this: *mut core::ffi::c_void, start: f32, left: f32, right: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetIndents(this, start, left, right).into() } - unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, rule: LineSpacingRule, spacing: f32) -> windows_core::HRESULT - where - Identity: ITextParagraphFormat_Impl, - { + unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, rule: LineSpacingRule, spacing: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextParagraphFormat_Impl::SetLineSpacing(this, rule, spacing).into() } @@ -1574,7 +1190,7 @@ impl ITextParagraphFormat_Vtbl { } } #[cfg(feature = "Storage_Streams")] -pub trait ITextRange_Impl: Sized { +pub trait ITextRange_Impl: Sized + windows_core::IUnknownImpl { fn Character(&self) -> windows_core::Result; fn SetCharacter(&self, value: u16) -> windows_core::Result<()>; fn CharacterFormat(&self) -> windows_core::Result; @@ -1634,14 +1250,8 @@ impl windows_core::RuntimeName for ITextRange { } #[cfg(feature = "Storage_Streams")] impl ITextRange_Vtbl { - pub const fn new() -> ITextRange_Vtbl - where - Identity: ITextRange_Impl, - { - unsafe extern "system" fn Character(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + pub const fn new() -> ITextRange_Vtbl { + unsafe extern "system" fn Character(this: *mut core::ffi::c_void, result__: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Character(this) { Ok(ok__) => { @@ -1651,17 +1261,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCharacter(this: *mut core::ffi::c_void, value: u16) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetCharacter(this: *mut core::ffi::c_void, value: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetCharacter(this, value).into() } - unsafe extern "system" fn CharacterFormat(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn CharacterFormat(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::CharacterFormat(this) { Ok(ok__) => { @@ -1672,17 +1276,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCharacterFormat(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetCharacterFormat(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetCharacterFormat(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn FormattedText(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn FormattedText(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::FormattedText(this) { Ok(ok__) => { @@ -1693,17 +1291,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormattedText(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetFormattedText(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetFormattedText(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn EndPosition(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn EndPosition(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::EndPosition(this) { Ok(ok__) => { @@ -1713,17 +1305,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEndPosition(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetEndPosition(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetEndPosition(this, value).into() } - unsafe extern "system" fn Gravity(this: *mut core::ffi::c_void, result__: *mut RangeGravity) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Gravity(this: *mut core::ffi::c_void, result__: *mut RangeGravity) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Gravity(this) { Ok(ok__) => { @@ -1733,17 +1319,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGravity(this: *mut core::ffi::c_void, value: RangeGravity) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetGravity(this: *mut core::ffi::c_void, value: RangeGravity) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetGravity(this, value).into() } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Length(this) { Ok(ok__) => { @@ -1753,10 +1333,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Link(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Link(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Link(this) { Ok(ok__) => { @@ -1767,17 +1344,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLink(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetLink(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetLink(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ParagraphFormat(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn ParagraphFormat(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::ParagraphFormat(this) { Ok(ok__) => { @@ -1788,17 +1359,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParagraphFormat(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetParagraphFormat(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetParagraphFormat(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn StartPosition(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn StartPosition(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::StartPosition(this) { Ok(ok__) => { @@ -1808,17 +1373,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartPosition(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetStartPosition(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetStartPosition(this, value).into() } - unsafe extern "system" fn StoryLength(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn StoryLength(this: *mut core::ffi::c_void, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::StoryLength(this) { Ok(ok__) => { @@ -1828,10 +1387,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Text(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Text(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Text(this) { Ok(ok__) => { @@ -1842,17 +1398,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetText(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn CanPaste(this: *mut core::ffi::c_void, format: i32, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn CanPaste(this: *mut core::ffi::c_void, format: i32, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::CanPaste(this, format) { Ok(ok__) => { @@ -1862,38 +1412,23 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChangeCase(this: *mut core::ffi::c_void, value: LetterCase) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn ChangeCase(this: *mut core::ffi::c_void, value: LetterCase) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::ChangeCase(this, value).into() } - unsafe extern "system" fn Collapse(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Collapse(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::Collapse(this, value).into() } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::Copy(this).into() } - unsafe extern "system" fn Cut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Cut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::Cut(this).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Delete(this, unit, count) { Ok(ok__) => { @@ -1903,10 +1438,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndOf(this: *mut core::ffi::c_void, unit: TextRangeUnit, extend: bool, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn EndOf(this: *mut core::ffi::c_void, unit: TextRangeUnit, extend: bool, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::EndOf(this, unit, extend) { Ok(ok__) => { @@ -1916,10 +1448,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, unit: TextRangeUnit, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, unit: TextRangeUnit, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Expand(this, unit) { Ok(ok__) => { @@ -1929,10 +1458,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, scanlength: i32, options: FindOptions, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, scanlength: i32, options: FindOptions, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::FindText(this, core::mem::transmute(&value), scanlength, options) { Ok(ok__) => { @@ -1942,17 +1468,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCharacterUtf32(this: *mut core::ffi::c_void, value: *mut u32, offset: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetCharacterUtf32(this: *mut core::ffi::c_void, value: *mut u32, offset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::GetCharacterUtf32(this, core::mem::transmute_copy(&value), offset).into() } - unsafe extern "system" fn GetClone(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetClone(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetClone(this) { Ok(ok__) => { @@ -1963,10 +1483,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, unit: TextRangeUnit, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, unit: TextRangeUnit, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetIndex(this, unit) { Ok(ok__) => { @@ -1976,38 +1493,23 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPoint(this: *mut core::ffi::c_void, horizontalalign: HorizontalCharacterAlignment, verticalalign: VerticalCharacterAlignment, options: PointOptions, point: *mut super::super::Foundation::Point) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetPoint(this: *mut core::ffi::c_void, horizontalalign: HorizontalCharacterAlignment, verticalalign: VerticalCharacterAlignment, options: PointOptions, point: *mut super::super::Foundation::Point) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::GetPoint(this, horizontalalign, verticalalign, options, core::mem::transmute_copy(&point)).into() } - unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, options: PointOptions, rect: *mut super::super::Foundation::Rect, hit: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, options: PointOptions, rect: *mut super::super::Foundation::Rect, hit: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::GetRect(this, options, core::mem::transmute_copy(&rect), core::mem::transmute_copy(&hit)).into() } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, options: TextGetOptions, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, options: TextGetOptions, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::GetText(this, options, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetTextViaStream(this: *mut core::ffi::c_void, options: TextGetOptions, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetTextViaStream(this: *mut core::ffi::c_void, options: TextGetOptions, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::GetTextViaStream(this, options, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn InRange(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn InRange(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::InRange(this, windows_core::from_raw_borrowed(&range)) { Ok(ok__) => { @@ -2017,17 +1519,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertImage(this: *mut core::ffi::c_void, width: i32, height: i32, ascent: i32, verticalalign: VerticalCharacterAlignment, alternatetext: core::mem::MaybeUninit, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn InsertImage(this: *mut core::ffi::c_void, width: i32, height: i32, ascent: i32, verticalalign: VerticalCharacterAlignment, alternatetext: core::mem::MaybeUninit, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::InsertImage(this, width, height, ascent, verticalalign, core::mem::transmute(&alternatetext), windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn InStory(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn InStory(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::InStory(this, windows_core::from_raw_borrowed(&range)) { Ok(ok__) => { @@ -2037,10 +1533,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::IsEqual(this, windows_core::from_raw_borrowed(&range)) { Ok(ok__) => { @@ -2050,10 +1543,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Move(this, unit, count) { Ok(ok__) => { @@ -2063,10 +1553,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveEnd(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MoveEnd(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::MoveEnd(this, unit, count) { Ok(ok__) => { @@ -2076,10 +1563,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveStart(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MoveStart(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::MoveStart(this, unit, count) { Ok(ok__) => { @@ -2089,66 +1573,39 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Paste(this: *mut core::ffi::c_void, format: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Paste(this: *mut core::ffi::c_void, format: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::Paste(this, format).into() } - unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, value: PointOptions) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, value: PointOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::ScrollIntoView(this, value).into() } - unsafe extern "system" fn MatchSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MatchSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::MatchSelection(this).into() } - unsafe extern "system" fn SetIndex(this: *mut core::ffi::c_void, unit: TextRangeUnit, index: i32, extend: bool) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetIndex(this: *mut core::ffi::c_void, unit: TextRangeUnit, index: i32, extend: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetIndex(this, unit, index, extend).into() } - unsafe extern "system" fn SetPoint(this: *mut core::ffi::c_void, point: super::super::Foundation::Point, options: PointOptions, extend: bool) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetPoint(this: *mut core::ffi::c_void, point: super::super::Foundation::Point, options: PointOptions, extend: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetPoint(this, core::mem::transmute(&point), options, extend).into() } - unsafe extern "system" fn SetRange(this: *mut core::ffi::c_void, startposition: i32, endposition: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetRange(this: *mut core::ffi::c_void, startposition: i32, endposition: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetRange(this, startposition, endposition).into() } - unsafe extern "system" fn SetText2(this: *mut core::ffi::c_void, options: TextSetOptions, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetText2(this: *mut core::ffi::c_void, options: TextSetOptions, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetText2(this, options, core::mem::transmute(&value)).into() } - unsafe extern "system" fn SetTextViaStream(this: *mut core::ffi::c_void, options: TextSetOptions, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetTextViaStream(this: *mut core::ffi::c_void, options: TextSetOptions, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetTextViaStream(this, options, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn StartOf(this: *mut core::ffi::c_void, unit: TextRangeUnit, extend: bool, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn StartOf(this: *mut core::ffi::c_void, unit: TextRangeUnit, extend: bool, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::StartOf(this, unit, extend) { Ok(ok__) => { @@ -2219,7 +1676,7 @@ impl ITextRange_Vtbl { } } #[cfg(feature = "Storage_Streams")] -pub trait ITextSelection_Impl: Sized + ITextRange_Impl { +pub trait ITextSelection_Impl: Sized + windows_core::IUnknownImpl + ITextRange_Impl { fn Options(&self) -> windows_core::Result; fn SetOptions(&self, value: SelectionOptions) -> windows_core::Result<()>; fn Type(&self) -> windows_core::Result; @@ -2237,14 +1694,8 @@ impl windows_core::RuntimeName for ITextSelection { } #[cfg(feature = "Storage_Streams")] impl ITextSelection_Vtbl { - pub const fn new() -> ITextSelection_Vtbl - where - Identity: ITextSelection_Impl, - { - unsafe extern "system" fn Options(this: *mut core::ffi::c_void, result__: *mut SelectionOptions) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + pub const fn new() -> ITextSelection_Vtbl { + unsafe extern "system" fn Options(this: *mut core::ffi::c_void, result__: *mut SelectionOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::Options(this) { Ok(ok__) => { @@ -2254,17 +1705,11 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, value: SelectionOptions) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, value: SelectionOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextSelection_Impl::SetOptions(this, value).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut SelectionType) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut SelectionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::Type(this) { Ok(ok__) => { @@ -2274,10 +1719,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndKey(this: *mut core::ffi::c_void, unit: TextRangeUnit, extend: bool, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn EndKey(this: *mut core::ffi::c_void, unit: TextRangeUnit, extend: bool, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::EndKey(this, unit, extend) { Ok(ok__) => { @@ -2287,10 +1729,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HomeKey(this: *mut core::ffi::c_void, unit: TextRangeUnit, extend: bool, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn HomeKey(this: *mut core::ffi::c_void, unit: TextRangeUnit, extend: bool, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::HomeKey(this, unit, extend) { Ok(ok__) => { @@ -2300,10 +1739,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveDown(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, extend: bool, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn MoveDown(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, extend: bool, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::MoveDown(this, unit, count, extend) { Ok(ok__) => { @@ -2313,10 +1749,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveLeft(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, extend: bool, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn MoveLeft(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, extend: bool, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::MoveLeft(this, unit, count, extend) { Ok(ok__) => { @@ -2326,10 +1759,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveRight(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, extend: bool, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn MoveRight(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, extend: bool, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::MoveRight(this, unit, count, extend) { Ok(ok__) => { @@ -2339,10 +1769,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveUp(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, extend: bool, result__: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn MoveUp(this: *mut core::ffi::c_void, unit: TextRangeUnit, count: i32, extend: bool, result__: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::MoveUp(this, unit, count, extend) { Ok(ok__) => { @@ -2352,10 +1779,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TypeText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn TypeText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextSelection_Impl::TypeText(this, core::mem::transmute(&value)).into() } diff --git a/crates/libs/windows/src/Windows/UI/UIAutomation/Core/impl.rs b/crates/libs/windows/src/Windows/UI/UIAutomation/Core/impl.rs index 0cf7f8ed38..ee2f07ea3d 100644 --- a/crates/libs/windows/src/Windows/UI/UIAutomation/Core/impl.rs +++ b/crates/libs/windows/src/Windows/UI/UIAutomation/Core/impl.rs @@ -1,18 +1,12 @@ -pub trait ICoreAutomationConnectionBoundObjectProvider_Impl: Sized { +pub trait ICoreAutomationConnectionBoundObjectProvider_Impl: Sized + windows_core::IUnknownImpl { fn IsComThreadingRequired(&self) -> bool; } impl windows_core::RuntimeName for ICoreAutomationConnectionBoundObjectProvider { const NAME: &'static str = "Windows.UI.UIAutomation.Core.ICoreAutomationConnectionBoundObjectProvider"; } impl ICoreAutomationConnectionBoundObjectProvider_Vtbl { - pub const fn new() -> ICoreAutomationConnectionBoundObjectProvider_Vtbl - where - Identity: ICoreAutomationConnectionBoundObjectProvider_Impl, - { - unsafe extern "system" fn IsComThreadingRequired(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICoreAutomationConnectionBoundObjectProvider_Impl, - { + pub const fn new() -> ICoreAutomationConnectionBoundObjectProvider_Vtbl { + unsafe extern "system" fn IsComThreadingRequired(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); let ok__ = ICoreAutomationConnectionBoundObjectProvider_Impl::IsComThreadingRequired(this); result__.write(core::mem::transmute_copy(&ok__)); @@ -27,7 +21,7 @@ impl ICoreAutomationConnectionBoundObjectProvider_Vtbl { iid == &::IID } } -pub trait ICoreAutomationRemoteOperationExtensionProvider_Impl: Sized { +pub trait ICoreAutomationRemoteOperationExtensionProvider_Impl: Sized + windows_core::IUnknownImpl { fn CallExtension(&self, extensionid: &windows_core::GUID, context: Option<&CoreAutomationRemoteOperationContext>, operandids: &[AutomationRemoteOperationOperandId]) -> windows_core::Result<()>; fn IsExtensionSupported(&self, extensionid: &windows_core::GUID) -> windows_core::Result; } @@ -35,21 +29,12 @@ impl windows_core::RuntimeName for ICoreAutomationRemoteOperationExtensionProvid const NAME: &'static str = "Windows.UI.UIAutomation.Core.ICoreAutomationRemoteOperationExtensionProvider"; } impl ICoreAutomationRemoteOperationExtensionProvider_Vtbl { - pub const fn new() -> ICoreAutomationRemoteOperationExtensionProvider_Vtbl - where - Identity: ICoreAutomationRemoteOperationExtensionProvider_Impl, - { - unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, extensionid: windows_core::GUID, context: *mut core::ffi::c_void, operandIds_array_size: u32, operandids: *const AutomationRemoteOperationOperandId) -> windows_core::HRESULT - where - Identity: ICoreAutomationRemoteOperationExtensionProvider_Impl, - { + pub const fn new() -> ICoreAutomationRemoteOperationExtensionProvider_Vtbl { + unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, extensionid: windows_core::GUID, context: *mut core::ffi::c_void, operandIds_array_size: u32, operandids: *const AutomationRemoteOperationOperandId) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreAutomationRemoteOperationExtensionProvider_Impl::CallExtension(this, core::mem::transmute(&extensionid), windows_core::from_raw_borrowed(&context), core::slice::from_raw_parts(core::mem::transmute_copy(&operandids), operandIds_array_size as usize)).into() } - unsafe extern "system" fn IsExtensionSupported(this: *mut core::ffi::c_void, extensionid: windows_core::GUID, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ICoreAutomationRemoteOperationExtensionProvider_Impl, - { + unsafe extern "system" fn IsExtensionSupported(this: *mut core::ffi::c_void, extensionid: windows_core::GUID, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreAutomationRemoteOperationExtensionProvider_Impl::IsExtensionSupported(this, core::mem::transmute(&extensionid)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/UI/WebUI/Core/impl.rs b/crates/libs/windows/src/Windows/UI/WebUI/Core/impl.rs index 4f37da3024..0604e9096c 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/Core/impl.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/Core/impl.rs @@ -1,27 +1,21 @@ -pub trait IWebUICommandBarElement_Impl: Sized {} +pub trait IWebUICommandBarElement_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IWebUICommandBarElement { const NAME: &'static str = "Windows.UI.WebUI.Core.IWebUICommandBarElement"; } impl IWebUICommandBarElement_Vtbl { - pub const fn new() -> IWebUICommandBarElement_Vtbl - where - Identity: IWebUICommandBarElement_Impl, - { + pub const fn new() -> IWebUICommandBarElement_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IWebUICommandBarIcon_Impl: Sized {} +pub trait IWebUICommandBarIcon_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IWebUICommandBarIcon { const NAME: &'static str = "Windows.UI.WebUI.Core.IWebUICommandBarIcon"; } impl IWebUICommandBarIcon_Vtbl { - pub const fn new() -> IWebUICommandBarIcon_Vtbl - where - Identity: IWebUICommandBarIcon_Impl, - { + pub const fn new() -> IWebUICommandBarIcon_Vtbl { Self { base__: windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/UI/WebUI/impl.rs b/crates/libs/windows/src/Windows/UI/WebUI/impl.rs index 0b078bcb9e..2e859985c9 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/impl.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/impl.rs @@ -1,18 +1,12 @@ -pub trait IActivatedEventArgsDeferral_Impl: Sized { +pub trait IActivatedEventArgsDeferral_Impl: Sized + windows_core::IUnknownImpl { fn ActivatedOperation(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IActivatedEventArgsDeferral { const NAME: &'static str = "Windows.UI.WebUI.IActivatedEventArgsDeferral"; } impl IActivatedEventArgsDeferral_Vtbl { - pub const fn new() -> IActivatedEventArgsDeferral_Vtbl - where - Identity: IActivatedEventArgsDeferral_Impl, - { - unsafe extern "system" fn ActivatedOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActivatedEventArgsDeferral_Impl, - { + pub const fn new() -> IActivatedEventArgsDeferral_Vtbl { + unsafe extern "system" fn ActivatedOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActivatedEventArgsDeferral_Impl::ActivatedOperation(this) { Ok(ok__) => { @@ -32,7 +26,7 @@ impl IActivatedEventArgsDeferral_Vtbl { iid == &::IID } } -pub trait IWebUIBackgroundTaskInstance_Impl: Sized { +pub trait IWebUIBackgroundTaskInstance_Impl: Sized + windows_core::IUnknownImpl { fn Succeeded(&self) -> windows_core::Result; fn SetSucceeded(&self, succeeded: bool) -> windows_core::Result<()>; } @@ -40,14 +34,8 @@ impl windows_core::RuntimeName for IWebUIBackgroundTaskInstance { const NAME: &'static str = "Windows.UI.WebUI.IWebUIBackgroundTaskInstance"; } impl IWebUIBackgroundTaskInstance_Vtbl { - pub const fn new() -> IWebUIBackgroundTaskInstance_Vtbl - where - Identity: IWebUIBackgroundTaskInstance_Impl, - { - unsafe extern "system" fn Succeeded(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IWebUIBackgroundTaskInstance_Impl, - { + pub const fn new() -> IWebUIBackgroundTaskInstance_Vtbl { + unsafe extern "system" fn Succeeded(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebUIBackgroundTaskInstance_Impl::Succeeded(this) { Ok(ok__) => { @@ -57,10 +45,7 @@ impl IWebUIBackgroundTaskInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSucceeded(this: *mut core::ffi::c_void, succeeded: bool) -> windows_core::HRESULT - where - Identity: IWebUIBackgroundTaskInstance_Impl, - { + unsafe extern "system" fn SetSucceeded(this: *mut core::ffi::c_void, succeeded: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebUIBackgroundTaskInstance_Impl::SetSucceeded(this, succeeded).into() } @@ -74,21 +59,15 @@ impl IWebUIBackgroundTaskInstance_Vtbl { iid == &::IID } } -pub trait IWebUINavigatedEventArgs_Impl: Sized { +pub trait IWebUINavigatedEventArgs_Impl: Sized + windows_core::IUnknownImpl { fn NavigatedOperation(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWebUINavigatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.IWebUINavigatedEventArgs"; } impl IWebUINavigatedEventArgs_Vtbl { - pub const fn new() -> IWebUINavigatedEventArgs_Vtbl - where - Identity: IWebUINavigatedEventArgs_Impl, - { - unsafe extern "system" fn NavigatedOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebUINavigatedEventArgs_Impl, - { + pub const fn new() -> IWebUINavigatedEventArgs_Vtbl { + unsafe extern "system" fn NavigatedOperation(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebUINavigatedEventArgs_Impl::NavigatedOperation(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Web/Http/Filters/impl.rs b/crates/libs/windows/src/Windows/Web/Http/Filters/impl.rs index 0add894ae7..1e533701c6 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Filters/impl.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Filters/impl.rs @@ -1,18 +1,12 @@ -pub trait IHttpFilter_Impl: Sized + super::super::super::Foundation::IClosable_Impl { +pub trait IHttpFilter_Impl: Sized + windows_core::IUnknownImpl + super::super::super::Foundation::IClosable_Impl { fn SendRequestAsync(&self, request: Option<&super::HttpRequestMessage>) -> windows_core::Result>; } impl windows_core::RuntimeName for IHttpFilter { const NAME: &'static str = "Windows.Web.Http.Filters.IHttpFilter"; } impl IHttpFilter_Vtbl { - pub const fn new() -> IHttpFilter_Vtbl - where - Identity: IHttpFilter_Impl, - { - unsafe extern "system" fn SendRequestAsync(this: *mut core::ffi::c_void, request: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHttpFilter_Impl, - { + pub const fn new() -> IHttpFilter_Vtbl { + unsafe extern "system" fn SendRequestAsync(this: *mut core::ffi::c_void, request: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHttpFilter_Impl::SendRequestAsync(this, windows_core::from_raw_borrowed(&request)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Web/Http/impl.rs b/crates/libs/windows/src/Windows/Web/Http/impl.rs index 687f342411..989d0589ed 100644 --- a/crates/libs/windows/src/Windows/Web/Http/impl.rs +++ b/crates/libs/windows/src/Windows/Web/Http/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Storage_Streams", feature = "Web_Http_Headers"))] -pub trait IHttpContent_Impl: Sized + super::super::Foundation::IClosable_Impl { +pub trait IHttpContent_Impl: Sized + windows_core::IUnknownImpl + super::super::Foundation::IClosable_Impl { fn Headers(&self) -> windows_core::Result; fn BufferAllAsync(&self) -> windows_core::Result>; fn ReadAsBufferAsync(&self) -> windows_core::Result>; @@ -14,14 +14,8 @@ impl windows_core::RuntimeName for IHttpContent { } #[cfg(all(feature = "Storage_Streams", feature = "Web_Http_Headers"))] impl IHttpContent_Vtbl { - pub const fn new() -> IHttpContent_Vtbl - where - Identity: IHttpContent_Impl, - { - unsafe extern "system" fn Headers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHttpContent_Impl, - { + pub const fn new() -> IHttpContent_Vtbl { + unsafe extern "system" fn Headers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHttpContent_Impl::Headers(this) { Ok(ok__) => { @@ -32,10 +26,7 @@ impl IHttpContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BufferAllAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHttpContent_Impl, - { + unsafe extern "system" fn BufferAllAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHttpContent_Impl::BufferAllAsync(this) { Ok(ok__) => { @@ -46,10 +37,7 @@ impl IHttpContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadAsBufferAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHttpContent_Impl, - { + unsafe extern "system" fn ReadAsBufferAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHttpContent_Impl::ReadAsBufferAsync(this) { Ok(ok__) => { @@ -60,10 +48,7 @@ impl IHttpContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadAsInputStreamAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHttpContent_Impl, - { + unsafe extern "system" fn ReadAsInputStreamAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHttpContent_Impl::ReadAsInputStreamAsync(this) { Ok(ok__) => { @@ -74,10 +59,7 @@ impl IHttpContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadAsStringAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHttpContent_Impl, - { + unsafe extern "system" fn ReadAsStringAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHttpContent_Impl::ReadAsStringAsync(this) { Ok(ok__) => { @@ -88,10 +70,7 @@ impl IHttpContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TryComputeLength(this: *mut core::ffi::c_void, length: *mut u64, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IHttpContent_Impl, - { + unsafe extern "system" fn TryComputeLength(this: *mut core::ffi::c_void, length: *mut u64, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHttpContent_Impl::TryComputeLength(this, core::mem::transmute_copy(&length)) { Ok(ok__) => { @@ -101,10 +80,7 @@ impl IHttpContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteToStreamAsync(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHttpContent_Impl, - { + unsafe extern "system" fn WriteToStreamAsync(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHttpContent_Impl::WriteToStreamAsync(this, windows_core::from_raw_borrowed(&outputstream)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Web/Syndication/impl.rs b/crates/libs/windows/src/Windows/Web/Syndication/impl.rs index 66f05ef25d..3ebc4efcf2 100644 --- a/crates/libs/windows/src/Windows/Web/Syndication/impl.rs +++ b/crates/libs/windows/src/Windows/Web/Syndication/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Security_Credentials")] -pub trait ISyndicationClient_Impl: Sized { +pub trait ISyndicationClient_Impl: Sized + windows_core::IUnknownImpl { fn ServerCredential(&self) -> windows_core::Result; fn SetServerCredential(&self, value: Option<&super::super::Security::Credentials::PasswordCredential>) -> windows_core::Result<()>; fn ProxyCredential(&self) -> windows_core::Result; @@ -19,14 +19,8 @@ impl windows_core::RuntimeName for ISyndicationClient { } #[cfg(feature = "Security_Credentials")] impl ISyndicationClient_Vtbl { - pub const fn new() -> ISyndicationClient_Vtbl - where - Identity: ISyndicationClient_Impl, - { - unsafe extern "system" fn ServerCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + pub const fn new() -> ISyndicationClient_Vtbl { + unsafe extern "system" fn ServerCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationClient_Impl::ServerCredential(this) { Ok(ok__) => { @@ -37,17 +31,11 @@ impl ISyndicationClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerCredential(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn SetServerCredential(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationClient_Impl::SetServerCredential(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn ProxyCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn ProxyCredential(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationClient_Impl::ProxyCredential(this) { Ok(ok__) => { @@ -58,17 +46,11 @@ impl ISyndicationClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProxyCredential(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn SetProxyCredential(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationClient_Impl::SetProxyCredential(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn MaxResponseBufferSize(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn MaxResponseBufferSize(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationClient_Impl::MaxResponseBufferSize(this) { Ok(ok__) => { @@ -78,17 +60,11 @@ impl ISyndicationClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxResponseBufferSize(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn SetMaxResponseBufferSize(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationClient_Impl::SetMaxResponseBufferSize(this, value).into() } - unsafe extern "system" fn Timeout(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn Timeout(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationClient_Impl::Timeout(this) { Ok(ok__) => { @@ -98,17 +74,11 @@ impl ISyndicationClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTimeout(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn SetTimeout(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationClient_Impl::SetTimeout(this, value).into() } - unsafe extern "system" fn BypassCacheOnRetrieve(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn BypassCacheOnRetrieve(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationClient_Impl::BypassCacheOnRetrieve(this) { Ok(ok__) => { @@ -118,24 +88,15 @@ impl ISyndicationClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBypassCacheOnRetrieve(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn SetBypassCacheOnRetrieve(this: *mut core::ffi::c_void, value: bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationClient_Impl::SetBypassCacheOnRetrieve(this, value).into() } - unsafe extern "system" fn SetRequestHeader(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn SetRequestHeader(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationClient_Impl::SetRequestHeader(this, core::mem::transmute(&name), core::mem::transmute(&value)).into() } - unsafe extern "system" fn RetrieveFeedAsync(this: *mut core::ffi::c_void, uri: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationClient_Impl, - { + unsafe extern "system" fn RetrieveFeedAsync(this: *mut core::ffi::c_void, uri: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationClient_Impl::RetrieveFeedAsync(this, windows_core::from_raw_borrowed(&uri)) { Ok(ok__) => { @@ -167,7 +128,7 @@ impl ISyndicationClient_Vtbl { } } #[cfg(all(feature = "Data_Xml_Dom", feature = "Foundation_Collections"))] -pub trait ISyndicationNode_Impl: Sized { +pub trait ISyndicationNode_Impl: Sized + windows_core::IUnknownImpl { fn NodeName(&self) -> windows_core::Result; fn SetNodeName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn NodeNamespace(&self) -> windows_core::Result; @@ -188,14 +149,8 @@ impl windows_core::RuntimeName for ISyndicationNode { } #[cfg(all(feature = "Data_Xml_Dom", feature = "Foundation_Collections"))] impl ISyndicationNode_Vtbl { - pub const fn new() -> ISyndicationNode_Vtbl - where - Identity: ISyndicationNode_Impl, - { - unsafe extern "system" fn NodeName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + pub const fn new() -> ISyndicationNode_Vtbl { + unsafe extern "system" fn NodeName(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationNode_Impl::NodeName(this) { Ok(ok__) => { @@ -206,17 +161,11 @@ impl ISyndicationNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNodeName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn SetNodeName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationNode_Impl::SetNodeName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn NodeNamespace(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn NodeNamespace(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationNode_Impl::NodeNamespace(this) { Ok(ok__) => { @@ -227,17 +176,11 @@ impl ISyndicationNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNodeNamespace(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn SetNodeNamespace(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationNode_Impl::SetNodeNamespace(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn NodeValue(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn NodeValue(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationNode_Impl::NodeValue(this) { Ok(ok__) => { @@ -248,17 +191,11 @@ impl ISyndicationNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNodeValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn SetNodeValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationNode_Impl::SetNodeValue(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Language(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn Language(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationNode_Impl::Language(this) { Ok(ok__) => { @@ -269,17 +206,11 @@ impl ISyndicationNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationNode_Impl::SetLanguage(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn BaseUri(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn BaseUri(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationNode_Impl::BaseUri(this) { Ok(ok__) => { @@ -290,17 +221,11 @@ impl ISyndicationNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBaseUri(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn SetBaseUri(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationNode_Impl::SetBaseUri(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn AttributeExtensions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn AttributeExtensions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationNode_Impl::AttributeExtensions(this) { Ok(ok__) => { @@ -311,10 +236,7 @@ impl ISyndicationNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ElementExtensions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn ElementExtensions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationNode_Impl::ElementExtensions(this) { Ok(ok__) => { @@ -325,10 +247,7 @@ impl ISyndicationNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetXmlDocument(this: *mut core::ffi::c_void, format: SyndicationFormat, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationNode_Impl, - { + unsafe extern "system" fn GetXmlDocument(this: *mut core::ffi::c_void, format: SyndicationFormat, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationNode_Impl::GetXmlDocument(this, format) { Ok(ok__) => { @@ -361,7 +280,7 @@ impl ISyndicationNode_Vtbl { } } #[cfg(all(feature = "Data_Xml_Dom", feature = "Foundation_Collections"))] -pub trait ISyndicationText_Impl: Sized + ISyndicationNode_Impl { +pub trait ISyndicationText_Impl: Sized + windows_core::IUnknownImpl + ISyndicationNode_Impl { fn Text(&self) -> windows_core::Result; fn SetText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn Type(&self) -> windows_core::Result; @@ -375,14 +294,8 @@ impl windows_core::RuntimeName for ISyndicationText { } #[cfg(all(feature = "Data_Xml_Dom", feature = "Foundation_Collections"))] impl ISyndicationText_Vtbl { - pub const fn new() -> ISyndicationText_Vtbl - where - Identity: ISyndicationText_Impl, - { - unsafe extern "system" fn Text(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationText_Impl, - { + pub const fn new() -> ISyndicationText_Vtbl { + unsafe extern "system" fn Text(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationText_Impl::Text(this) { Ok(ok__) => { @@ -393,17 +306,11 @@ impl ISyndicationText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationText_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationText_Impl::SetText(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationText_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationText_Impl::Type(this) { Ok(ok__) => { @@ -414,17 +321,11 @@ impl ISyndicationText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyndicationText_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationText_Impl::SetType(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationText_Impl, - { + unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyndicationText_Impl::Xml(this) { Ok(ok__) => { @@ -435,10 +336,7 @@ impl ISyndicationText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetXml(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyndicationText_Impl, - { + unsafe extern "system" fn SetXml(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyndicationText_Impl::SetXml(this, windows_core::from_raw_borrowed(&value)).into() } diff --git a/crates/libs/windows/src/Windows/Web/UI/impl.rs b/crates/libs/windows/src/Windows/Web/UI/impl.rs index caa4b9d15d..4d7d3cbf56 100644 --- a/crates/libs/windows/src/Windows/Web/UI/impl.rs +++ b/crates/libs/windows/src/Windows/Web/UI/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation_Collections", feature = "Storage_Streams", feature = "UI", feature = "Web_Http"))] -pub trait IWebViewControl_Impl: Sized { +pub trait IWebViewControl_Impl: Sized + windows_core::IUnknownImpl { fn Source(&self) -> windows_core::Result; fn SetSource(&self, source: Option<&super::super::Foundation::Uri>) -> windows_core::Result<()>; fn DocumentTitle(&self) -> windows_core::Result; @@ -64,14 +64,8 @@ impl windows_core::RuntimeName for IWebViewControl { } #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation_Collections", feature = "Storage_Streams", feature = "UI", feature = "Web_Http"))] impl IWebViewControl_Vtbl { - pub const fn new() -> IWebViewControl_Vtbl - where - Identity: IWebViewControl_Impl, - { - unsafe extern "system" fn Source(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + pub const fn new() -> IWebViewControl_Vtbl { + unsafe extern "system" fn Source(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::Source(this) { Ok(ok__) => { @@ -82,17 +76,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, source: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, source: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::SetSource(this, windows_core::from_raw_borrowed(&source)).into() } - unsafe extern "system" fn DocumentTitle(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn DocumentTitle(this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::DocumentTitle(this) { Ok(ok__) => { @@ -103,10 +91,7 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanGoBack(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn CanGoBack(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::CanGoBack(this) { Ok(ok__) => { @@ -116,10 +101,7 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanGoForward(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn CanGoForward(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::CanGoForward(this) { Ok(ok__) => { @@ -129,17 +111,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultBackgroundColor(this: *mut core::ffi::c_void, value: super::super::UI::Color) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn SetDefaultBackgroundColor(this: *mut core::ffi::c_void, value: super::super::UI::Color) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::SetDefaultBackgroundColor(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn DefaultBackgroundColor(this: *mut core::ffi::c_void, result__: *mut super::super::UI::Color) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn DefaultBackgroundColor(this: *mut core::ffi::c_void, result__: *mut super::super::UI::Color) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::DefaultBackgroundColor(this) { Ok(ok__) => { @@ -149,10 +125,7 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContainsFullScreenElement(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn ContainsFullScreenElement(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::ContainsFullScreenElement(this) { Ok(ok__) => { @@ -162,10 +135,7 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Settings(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn Settings(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::Settings(this) { Ok(ok__) => { @@ -176,10 +146,7 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeferredPermissionRequests(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn DeferredPermissionRequests(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::DeferredPermissionRequests(this) { Ok(ok__) => { @@ -190,66 +157,39 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GoForward(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn GoForward(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::GoForward(this).into() } - unsafe extern "system" fn GoBack(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn GoBack(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::GoBack(this).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::Refresh(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::Stop(this).into() } - unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, source: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, source: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::Navigate(this, windows_core::from_raw_borrowed(&source)).into() } - unsafe extern "system" fn NavigateToString(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn NavigateToString(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::NavigateToString(this, core::mem::transmute(&text)).into() } - unsafe extern "system" fn NavigateToLocalStreamUri(this: *mut core::ffi::c_void, source: *mut core::ffi::c_void, streamresolver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn NavigateToLocalStreamUri(this: *mut core::ffi::c_void, source: *mut core::ffi::c_void, streamresolver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::NavigateToLocalStreamUri(this, windows_core::from_raw_borrowed(&source), windows_core::from_raw_borrowed(&streamresolver)).into() } - unsafe extern "system" fn NavigateWithHttpRequestMessage(this: *mut core::ffi::c_void, requestmessage: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn NavigateWithHttpRequestMessage(this: *mut core::ffi::c_void, requestmessage: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::NavigateWithHttpRequestMessage(this, windows_core::from_raw_borrowed(&requestmessage)).into() } - unsafe extern "system" fn InvokeScriptAsync(this: *mut core::ffi::c_void, scriptname: core::mem::MaybeUninit, arguments: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn InvokeScriptAsync(this: *mut core::ffi::c_void, scriptname: core::mem::MaybeUninit, arguments: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::InvokeScriptAsync(this, core::mem::transmute(&scriptname), windows_core::from_raw_borrowed(&arguments)) { Ok(ok__) => { @@ -260,10 +200,7 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CapturePreviewToStreamAsync(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn CapturePreviewToStreamAsync(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::CapturePreviewToStreamAsync(this, windows_core::from_raw_borrowed(&stream)) { Ok(ok__) => { @@ -274,10 +211,7 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CaptureSelectedContentToDataPackageAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn CaptureSelectedContentToDataPackageAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::CaptureSelectedContentToDataPackageAsync(this) { Ok(ok__) => { @@ -288,10 +222,7 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BuildLocalStreamUri(this: *mut core::ffi::c_void, contentidentifier: core::mem::MaybeUninit, relativepath: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn BuildLocalStreamUri(this: *mut core::ffi::c_void, contentidentifier: core::mem::MaybeUninit, relativepath: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::BuildLocalStreamUri(this, core::mem::transmute(&contentidentifier), core::mem::transmute(&relativepath)) { Ok(ok__) => { @@ -302,17 +233,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeferredPermissionRequestById(this: *mut core::ffi::c_void, id: u32, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn GetDeferredPermissionRequestById(this: *mut core::ffi::c_void, id: u32, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::GetDeferredPermissionRequestById(this, id, core::mem::transmute_copy(&result)).into() } - unsafe extern "system" fn NavigationStarting(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn NavigationStarting(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::NavigationStarting(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -322,17 +247,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveNavigationStarting(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveNavigationStarting(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveNavigationStarting(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn ContentLoading(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn ContentLoading(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::ContentLoading(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -342,17 +261,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveContentLoading(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveContentLoading(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveContentLoading(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn DOMContentLoaded(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn DOMContentLoaded(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::DOMContentLoaded(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -362,17 +275,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveDOMContentLoaded(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveDOMContentLoaded(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveDOMContentLoaded(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn NavigationCompleted(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn NavigationCompleted(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::NavigationCompleted(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -382,17 +289,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveNavigationCompleted(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveNavigationCompleted(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveNavigationCompleted(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn FrameNavigationStarting(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn FrameNavigationStarting(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::FrameNavigationStarting(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -402,17 +303,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFrameNavigationStarting(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveFrameNavigationStarting(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveFrameNavigationStarting(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn FrameContentLoading(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn FrameContentLoading(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::FrameContentLoading(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -422,17 +317,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFrameContentLoading(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveFrameContentLoading(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveFrameContentLoading(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn FrameDOMContentLoaded(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn FrameDOMContentLoaded(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::FrameDOMContentLoaded(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -442,17 +331,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFrameDOMContentLoaded(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveFrameDOMContentLoaded(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveFrameDOMContentLoaded(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn FrameNavigationCompleted(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn FrameNavigationCompleted(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::FrameNavigationCompleted(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -462,17 +345,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFrameNavigationCompleted(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveFrameNavigationCompleted(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveFrameNavigationCompleted(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn ScriptNotify(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn ScriptNotify(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::ScriptNotify(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -482,17 +359,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveScriptNotify(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveScriptNotify(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveScriptNotify(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn LongRunningScriptDetected(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn LongRunningScriptDetected(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::LongRunningScriptDetected(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -502,17 +373,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveLongRunningScriptDetected(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveLongRunningScriptDetected(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveLongRunningScriptDetected(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn UnsafeContentWarningDisplaying(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn UnsafeContentWarningDisplaying(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::UnsafeContentWarningDisplaying(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -522,17 +387,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveUnsafeContentWarningDisplaying(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveUnsafeContentWarningDisplaying(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveUnsafeContentWarningDisplaying(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn UnviewableContentIdentified(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn UnviewableContentIdentified(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::UnviewableContentIdentified(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -542,17 +401,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveUnviewableContentIdentified(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveUnviewableContentIdentified(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveUnviewableContentIdentified(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn PermissionRequested(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn PermissionRequested(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::PermissionRequested(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -562,17 +415,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePermissionRequested(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemovePermissionRequested(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemovePermissionRequested(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn UnsupportedUriSchemeIdentified(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn UnsupportedUriSchemeIdentified(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::UnsupportedUriSchemeIdentified(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -582,17 +429,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveUnsupportedUriSchemeIdentified(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveUnsupportedUriSchemeIdentified(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveUnsupportedUriSchemeIdentified(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn NewWindowRequested(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn NewWindowRequested(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::NewWindowRequested(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -602,17 +443,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveNewWindowRequested(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveNewWindowRequested(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveNewWindowRequested(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn ContainsFullScreenElementChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn ContainsFullScreenElementChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::ContainsFullScreenElementChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -622,17 +457,11 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveContainsFullScreenElementChanged(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveContainsFullScreenElementChanged(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveContainsFullScreenElementChanged(this, core::mem::transmute(&token)).into() } - unsafe extern "system" fn WebResourceRequested(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn WebResourceRequested(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebViewControl_Impl::WebResourceRequested(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -642,10 +471,7 @@ impl IWebViewControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveWebResourceRequested(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT - where - Identity: IWebViewControl_Impl, - { + unsafe extern "system" fn RemoveWebResourceRequested(this: *mut core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl_Impl::RemoveWebResourceRequested(this, core::mem::transmute(&token)).into() } @@ -714,21 +540,15 @@ impl IWebViewControl_Vtbl { iid == &::IID } } -pub trait IWebViewControl2_Impl: Sized { +pub trait IWebViewControl2_Impl: Sized + windows_core::IUnknownImpl { fn AddInitializeScript(&self, script: &windows_core::HSTRING) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWebViewControl2 { const NAME: &'static str = "Windows.Web.UI.IWebViewControl2"; } impl IWebViewControl2_Vtbl { - pub const fn new() -> IWebViewControl2_Vtbl - where - Identity: IWebViewControl2_Impl, - { - unsafe extern "system" fn AddInitializeScript(this: *mut core::ffi::c_void, script: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebViewControl2_Impl, - { + pub const fn new() -> IWebViewControl2_Vtbl { + unsafe extern "system" fn AddInitializeScript(this: *mut core::ffi::c_void, script: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebViewControl2_Impl::AddInitializeScript(this, core::mem::transmute(&script)).into() } diff --git a/crates/libs/windows/src/Windows/Web/impl.rs b/crates/libs/windows/src/Windows/Web/impl.rs index 3f4269a77d..3fb92e639c 100644 --- a/crates/libs/windows/src/Windows/Web/impl.rs +++ b/crates/libs/windows/src/Windows/Web/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Storage_Streams")] -pub trait IUriToStreamResolver_Impl: Sized { +pub trait IUriToStreamResolver_Impl: Sized + windows_core::IUnknownImpl { fn UriToStreamAsync(&self, uri: Option<&super::Foundation::Uri>) -> windows_core::Result>; } #[cfg(feature = "Storage_Streams")] @@ -8,14 +8,8 @@ impl windows_core::RuntimeName for IUriToStreamResolver { } #[cfg(feature = "Storage_Streams")] impl IUriToStreamResolver_Vtbl { - pub const fn new() -> IUriToStreamResolver_Vtbl - where - Identity: IUriToStreamResolver_Impl, - { - unsafe extern "system" fn UriToStreamAsync(this: *mut core::ffi::c_void, uri: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUriToStreamResolver_Impl, - { + pub const fn new() -> IUriToStreamResolver_Vtbl { + unsafe extern "system" fn UriToStreamAsync(this: *mut core::ffi::c_void, uri: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUriToStreamResolver_Impl::UriToStreamAsync(this, windows_core::from_raw_borrowed(&uri)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/impl.rs b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/impl.rs index 3eec0fb4f0..fad890d944 100644 --- a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/impl.rs @@ -10,42 +10,24 @@ pub trait IDMLBindingTable_Impl: Sized + IDMLDeviceChild_Impl { impl windows_core::RuntimeName for IDMLBindingTable {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl IDMLBindingTable_Vtbl { - pub const fn new() -> IDMLBindingTable_Vtbl - where - Identity: IDMLBindingTable_Impl, - { - unsafe extern "system" fn BindInputs(this: *mut core::ffi::c_void, bindingcount: u32, bindings: *const DML_BINDING_DESC) - where - Identity: IDMLBindingTable_Impl, - { + pub const fn new() -> IDMLBindingTable_Vtbl { + unsafe extern "system" fn BindInputs(this: *mut core::ffi::c_void, bindingcount: u32, bindings: *const DML_BINDING_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLBindingTable_Impl::BindInputs(this, core::mem::transmute_copy(&bindingcount), core::mem::transmute_copy(&bindings)) } - unsafe extern "system" fn BindOutputs(this: *mut core::ffi::c_void, bindingcount: u32, bindings: *const DML_BINDING_DESC) - where - Identity: IDMLBindingTable_Impl, - { + unsafe extern "system" fn BindOutputs(this: *mut core::ffi::c_void, bindingcount: u32, bindings: *const DML_BINDING_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLBindingTable_Impl::BindOutputs(this, core::mem::transmute_copy(&bindingcount), core::mem::transmute_copy(&bindings)) } - unsafe extern "system" fn BindTemporaryResource(this: *mut core::ffi::c_void, binding: *const DML_BINDING_DESC) - where - Identity: IDMLBindingTable_Impl, - { + unsafe extern "system" fn BindTemporaryResource(this: *mut core::ffi::c_void, binding: *const DML_BINDING_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLBindingTable_Impl::BindTemporaryResource(this, core::mem::transmute_copy(&binding)) } - unsafe extern "system" fn BindPersistentResource(this: *mut core::ffi::c_void, binding: *const DML_BINDING_DESC) - where - Identity: IDMLBindingTable_Impl, - { + unsafe extern "system" fn BindPersistentResource(this: *mut core::ffi::c_void, binding: *const DML_BINDING_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLBindingTable_Impl::BindPersistentResource(this, core::mem::transmute_copy(&binding)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, desc: *const DML_BINDING_TABLE_DESC) -> windows_core::HRESULT - where - Identity: IDMLBindingTable_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, desc: *const DML_BINDING_TABLE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLBindingTable_Impl::Reset(this, core::mem::transmute_copy(&desc)).into() } @@ -70,14 +52,8 @@ pub trait IDMLCommandRecorder_Impl: Sized + IDMLDeviceChild_Impl { impl windows_core::RuntimeName for IDMLCommandRecorder {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl IDMLCommandRecorder_Vtbl { - pub const fn new() -> IDMLCommandRecorder_Vtbl - where - Identity: IDMLCommandRecorder_Impl, - { - unsafe extern "system" fn RecordDispatch(this: *mut core::ffi::c_void, commandlist: *mut core::ffi::c_void, dispatchable: *mut core::ffi::c_void, bindings: *mut core::ffi::c_void) - where - Identity: IDMLCommandRecorder_Impl, - { + pub const fn new() -> IDMLCommandRecorder_Vtbl { + unsafe extern "system" fn RecordDispatch(this: *mut core::ffi::c_void, commandlist: *mut core::ffi::c_void, dispatchable: *mut core::ffi::c_void, bindings: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLCommandRecorder_Impl::RecordDispatch(this, windows_core::from_raw_borrowed(&commandlist), windows_core::from_raw_borrowed(&dispatchable), windows_core::from_raw_borrowed(&bindings)) } @@ -90,29 +66,20 @@ impl IDMLCommandRecorder_Vtbl { pub trait IDMLCompiledOperator_Impl: Sized + IDMLDispatchable_Impl {} impl windows_core::RuntimeName for IDMLCompiledOperator {} impl IDMLCompiledOperator_Vtbl { - pub const fn new() -> IDMLCompiledOperator_Vtbl - where - Identity: IDMLCompiledOperator_Impl, - { + pub const fn new() -> IDMLCompiledOperator_Vtbl { Self { base__: IDMLDispatchable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDMLDebugDevice_Impl: Sized { +pub trait IDMLDebugDevice_Impl: Sized + windows_core::IUnknownImpl { fn SetMuteDebugOutput(&self, mute: super::super::super::Foundation::BOOL); } impl windows_core::RuntimeName for IDMLDebugDevice {} impl IDMLDebugDevice_Vtbl { - pub const fn new() -> IDMLDebugDevice_Vtbl - where - Identity: IDMLDebugDevice_Impl, - { - unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, mute: super::super::super::Foundation::BOOL) - where - Identity: IDMLDebugDevice_Impl, - { + pub const fn new() -> IDMLDebugDevice_Vtbl { + unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, mute: super::super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDebugDevice_Impl::SetMuteDebugOutput(this, core::mem::transmute_copy(&mute)) } @@ -139,77 +106,44 @@ pub trait IDMLDevice_Impl: Sized + IDMLObject_Impl { impl windows_core::RuntimeName for IDMLDevice {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl IDMLDevice_Vtbl { - pub const fn new() -> IDMLDevice_Vtbl - where - Identity: IDMLDevice_Impl, - { - unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: DML_FEATURE, featurequerydatasize: u32, featurequerydata: *const core::ffi::c_void, featuresupportdatasize: u32, featuresupportdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice_Impl, - { + pub const fn new() -> IDMLDevice_Vtbl { + unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: DML_FEATURE, featurequerydatasize: u32, featurequerydata: *const core::ffi::c_void, featuresupportdatasize: u32, featuresupportdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice_Impl::CheckFeatureSupport(this, core::mem::transmute_copy(&feature), core::mem::transmute_copy(&featurequerydatasize), core::mem::transmute_copy(&featurequerydata), core::mem::transmute_copy(&featuresupportdatasize), core::mem::transmute_copy(&featuresupportdata)).into() } - unsafe extern "system" fn CreateOperator(this: *mut core::ffi::c_void, desc: *const DML_OPERATOR_DESC, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice_Impl, - { + unsafe extern "system" fn CreateOperator(this: *mut core::ffi::c_void, desc: *const DML_OPERATOR_DESC, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice_Impl::CreateOperator(this, core::mem::transmute_copy(&desc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CompileOperator(this: *mut core::ffi::c_void, op: *mut core::ffi::c_void, flags: DML_EXECUTION_FLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice_Impl, - { + unsafe extern "system" fn CompileOperator(this: *mut core::ffi::c_void, op: *mut core::ffi::c_void, flags: DML_EXECUTION_FLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice_Impl::CompileOperator(this, windows_core::from_raw_borrowed(&op), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateOperatorInitializer(this: *mut core::ffi::c_void, operatorcount: u32, operators: *const *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice_Impl, - { + unsafe extern "system" fn CreateOperatorInitializer(this: *mut core::ffi::c_void, operatorcount: u32, operators: *const *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice_Impl::CreateOperatorInitializer(this, core::mem::transmute_copy(&operatorcount), core::mem::transmute_copy(&operators), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateCommandRecorder(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice_Impl, - { + unsafe extern "system" fn CreateCommandRecorder(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice_Impl::CreateCommandRecorder(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateBindingTable(this: *mut core::ffi::c_void, desc: *const DML_BINDING_TABLE_DESC, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice_Impl, - { + unsafe extern "system" fn CreateBindingTable(this: *mut core::ffi::c_void, desc: *const DML_BINDING_TABLE_DESC, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice_Impl::CreateBindingTable(this, core::mem::transmute_copy(&desc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn Evict(this: *mut core::ffi::c_void, count: u32, ppobjects: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice_Impl, - { + unsafe extern "system" fn Evict(this: *mut core::ffi::c_void, count: u32, ppobjects: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice_Impl::Evict(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&ppobjects)).into() } - unsafe extern "system" fn MakeResident(this: *mut core::ffi::c_void, count: u32, ppobjects: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice_Impl, - { + unsafe extern "system" fn MakeResident(this: *mut core::ffi::c_void, count: u32, ppobjects: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice_Impl::MakeResident(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&ppobjects)).into() } - unsafe extern "system" fn GetDeviceRemovedReason(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice_Impl, - { + unsafe extern "system" fn GetDeviceRemovedReason(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice_Impl::GetDeviceRemovedReason(this).into() } - unsafe extern "system" fn GetParentDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice_Impl, - { + unsafe extern "system" fn GetParentDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice_Impl::GetParentDevice(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -239,14 +173,8 @@ pub trait IDMLDevice1_Impl: Sized + IDMLDevice_Impl { impl windows_core::RuntimeName for IDMLDevice1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl IDMLDevice1_Vtbl { - pub const fn new() -> IDMLDevice1_Vtbl - where - Identity: IDMLDevice1_Impl, - { - unsafe extern "system" fn CompileGraph(this: *mut core::ffi::c_void, desc: *const DML_GRAPH_DESC, flags: DML_EXECUTION_FLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDevice1_Impl, - { + pub const fn new() -> IDMLDevice1_Vtbl { + unsafe extern "system" fn CompileGraph(this: *mut core::ffi::c_void, desc: *const DML_GRAPH_DESC, flags: DML_EXECUTION_FLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDevice1_Impl::CompileGraph(this, core::mem::transmute_copy(&desc), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -261,14 +189,8 @@ pub trait IDMLDeviceChild_Impl: Sized + IDMLObject_Impl { } impl windows_core::RuntimeName for IDMLDeviceChild {} impl IDMLDeviceChild_Vtbl { - pub const fn new() -> IDMLDeviceChild_Vtbl - where - Identity: IDMLDeviceChild_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLDeviceChild_Impl, - { + pub const fn new() -> IDMLDeviceChild_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDeviceChild_Impl::GetDevice(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -283,14 +205,8 @@ pub trait IDMLDispatchable_Impl: Sized + IDMLPageable_Impl { } impl windows_core::RuntimeName for IDMLDispatchable {} impl IDMLDispatchable_Vtbl { - pub const fn new() -> IDMLDispatchable_Vtbl - where - Identity: IDMLDispatchable_Impl, - { - unsafe extern "system" fn GetBindingProperties(this: *mut core::ffi::c_void, result__: *mut DML_BINDING_PROPERTIES) - where - Identity: IDMLDispatchable_Impl, - { + pub const fn new() -> IDMLDispatchable_Vtbl { + unsafe extern "system" fn GetBindingProperties(this: *mut core::ffi::c_void, result__: *mut DML_BINDING_PROPERTIES) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = IDMLDispatchable_Impl::GetBindingProperties(this) } @@ -300,7 +216,7 @@ impl IDMLDispatchable_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDMLObject_Impl: Sized { +pub trait IDMLObject_Impl: Sized + windows_core::IUnknownImpl { fn GetPrivateData(&self, guid: *const windows_core::GUID, datasize: *mut u32, data: *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, data: *const core::ffi::c_void) -> windows_core::Result<()>; fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, data: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -308,35 +224,20 @@ pub trait IDMLObject_Impl: Sized { } impl windows_core::RuntimeName for IDMLObject {} impl IDMLObject_Vtbl { - pub const fn new() -> IDMLObject_Vtbl - where - Identity: IDMLObject_Impl, - { - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: *mut u32, data: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLObject_Impl, - { + pub const fn new() -> IDMLObject_Vtbl { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: *mut u32, data: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLObject_Impl::GetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&data)).into() } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, data: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLObject_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, data: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLObject_Impl::SetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&data)).into() } - unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, data: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLObject_Impl, - { + unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, data: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLObject_Impl::SetPrivateDataInterface(this, core::mem::transmute_copy(&guid), windows_core::from_raw_borrowed(&data)).into() } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDMLObject_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLObject_Impl::SetName(this, core::mem::transmute(&name)).into() } @@ -355,10 +256,7 @@ impl IDMLObject_Vtbl { pub trait IDMLOperator_Impl: Sized + IDMLDeviceChild_Impl {} impl windows_core::RuntimeName for IDMLOperator {} impl IDMLOperator_Vtbl { - pub const fn new() -> IDMLOperator_Vtbl - where - Identity: IDMLOperator_Impl, - { + pub const fn new() -> IDMLOperator_Vtbl { Self { base__: IDMLDeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -370,14 +268,8 @@ pub trait IDMLOperatorInitializer_Impl: Sized + IDMLDispatchable_Impl { } impl windows_core::RuntimeName for IDMLOperatorInitializer {} impl IDMLOperatorInitializer_Vtbl { - pub const fn new() -> IDMLOperatorInitializer_Vtbl - where - Identity: IDMLOperatorInitializer_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, operatorcount: u32, operators: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDMLOperatorInitializer_Impl, - { + pub const fn new() -> IDMLOperatorInitializer_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, operatorcount: u32, operators: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLOperatorInitializer_Impl::Reset(this, core::mem::transmute_copy(&operatorcount), core::mem::transmute_copy(&operators)).into() } @@ -390,10 +282,7 @@ impl IDMLOperatorInitializer_Vtbl { pub trait IDMLPageable_Impl: Sized + IDMLDeviceChild_Impl {} impl windows_core::RuntimeName for IDMLPageable {} impl IDMLPageable_Vtbl { - pub const fn new() -> IDMLPageable_Vtbl - where - Identity: IDMLPageable_Impl, - { + pub const fn new() -> IDMLPageable_Vtbl { Self { base__: IDMLDeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs index de65d199ca..b4078d681b 100644 --- a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs @@ -1,4 +1,4 @@ -pub trait IMLOperatorAttributes_Impl: Sized { +pub trait IMLOperatorAttributes_Impl: Sized + windows_core::IUnknownImpl { fn GetAttributeElementCount(&self, name: &windows_core::PCSTR, r#type: MLOperatorAttributeType) -> windows_core::Result; fn GetAttribute(&self, name: &windows_core::PCSTR, r#type: MLOperatorAttributeType, elementcount: u32, elementbytesize: usize, value: *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetStringAttributeElementLength(&self, name: &windows_core::PCSTR, elementindex: u32) -> windows_core::Result; @@ -6,14 +6,8 @@ pub trait IMLOperatorAttributes_Impl: Sized { } impl windows_core::RuntimeName for IMLOperatorAttributes {} impl IMLOperatorAttributes_Vtbl { - pub const fn new() -> IMLOperatorAttributes_Vtbl - where - Identity: IMLOperatorAttributes_Impl, - { - unsafe extern "system" fn GetAttributeElementCount(this: *mut core::ffi::c_void, name: windows_core::PCSTR, r#type: MLOperatorAttributeType, elementcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMLOperatorAttributes_Impl, - { + pub const fn new() -> IMLOperatorAttributes_Vtbl { + unsafe extern "system" fn GetAttributeElementCount(this: *mut core::ffi::c_void, name: windows_core::PCSTR, r#type: MLOperatorAttributeType, elementcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorAttributes_Impl::GetAttributeElementCount(this, core::mem::transmute(&name), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -23,17 +17,11 @@ impl IMLOperatorAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, name: windows_core::PCSTR, r#type: MLOperatorAttributeType, elementcount: u32, elementbytesize: usize, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorAttributes_Impl, - { + unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, name: windows_core::PCSTR, r#type: MLOperatorAttributeType, elementcount: u32, elementbytesize: usize, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorAttributes_Impl::GetAttribute(this, core::mem::transmute(&name), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&elementcount), core::mem::transmute_copy(&elementbytesize), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetStringAttributeElementLength(this: *mut core::ffi::c_void, name: windows_core::PCSTR, elementindex: u32, attributeelementbytesize: *mut u32) -> windows_core::HRESULT - where - Identity: IMLOperatorAttributes_Impl, - { + unsafe extern "system" fn GetStringAttributeElementLength(this: *mut core::ffi::c_void, name: windows_core::PCSTR, elementindex: u32, attributeelementbytesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorAttributes_Impl::GetStringAttributeElementLength(this, core::mem::transmute(&name), core::mem::transmute_copy(&elementindex)) { Ok(ok__) => { @@ -43,10 +31,7 @@ impl IMLOperatorAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStringAttributeElement(this: *mut core::ffi::c_void, name: windows_core::PCSTR, elementindex: u32, attributeelementbytesize: u32, attributeelement: windows_core::PSTR) -> windows_core::HRESULT - where - Identity: IMLOperatorAttributes_Impl, - { + unsafe extern "system" fn GetStringAttributeElement(this: *mut core::ffi::c_void, name: windows_core::PCSTR, elementindex: u32, attributeelementbytesize: u32, attributeelement: windows_core::PSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorAttributes_Impl::GetStringAttributeElement(this, core::mem::transmute(&name), core::mem::transmute_copy(&elementindex), core::mem::transmute_copy(&attributeelementbytesize), core::mem::transmute_copy(&attributeelement)).into() } @@ -62,19 +47,13 @@ impl IMLOperatorAttributes_Vtbl { iid == &::IID } } -pub trait IMLOperatorKernel_Impl: Sized { +pub trait IMLOperatorKernel_Impl: Sized + windows_core::IUnknownImpl { fn Compute(&self, context: Option<&IMLOperatorKernelContext>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMLOperatorKernel {} impl IMLOperatorKernel_Vtbl { - pub const fn new() -> IMLOperatorKernel_Vtbl - where - Identity: IMLOperatorKernel_Impl, - { - unsafe extern "system" fn Compute(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorKernel_Impl, - { + pub const fn new() -> IMLOperatorKernel_Vtbl { + unsafe extern "system" fn Compute(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorKernel_Impl::Compute(this, windows_core::from_raw_borrowed(&context)).into() } @@ -84,7 +63,7 @@ impl IMLOperatorKernel_Vtbl { iid == &::IID } } -pub trait IMLOperatorKernelContext_Impl: Sized { +pub trait IMLOperatorKernelContext_Impl: Sized + windows_core::IUnknownImpl { fn GetInputTensor(&self, inputindex: u32) -> windows_core::Result; fn GetOutputTensor(&self, outputindex: u32, dimensioncount: u32, dimensionsizes: *const u32) -> windows_core::Result; fn GetOutputTensor2(&self, outputindex: u32) -> windows_core::Result; @@ -93,14 +72,8 @@ pub trait IMLOperatorKernelContext_Impl: Sized { } impl windows_core::RuntimeName for IMLOperatorKernelContext {} impl IMLOperatorKernelContext_Vtbl { - pub const fn new() -> IMLOperatorKernelContext_Vtbl - where - Identity: IMLOperatorKernelContext_Impl, - { - unsafe extern "system" fn GetInputTensor(this: *mut core::ffi::c_void, inputindex: u32, tensor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorKernelContext_Impl, - { + pub const fn new() -> IMLOperatorKernelContext_Vtbl { + unsafe extern "system" fn GetInputTensor(this: *mut core::ffi::c_void, inputindex: u32, tensor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorKernelContext_Impl::GetInputTensor(this, core::mem::transmute_copy(&inputindex)) { Ok(ok__) => { @@ -110,10 +83,7 @@ impl IMLOperatorKernelContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputTensor(this: *mut core::ffi::c_void, outputindex: u32, dimensioncount: u32, dimensionsizes: *const u32, tensor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorKernelContext_Impl, - { + unsafe extern "system" fn GetOutputTensor(this: *mut core::ffi::c_void, outputindex: u32, dimensioncount: u32, dimensionsizes: *const u32, tensor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorKernelContext_Impl::GetOutputTensor(this, core::mem::transmute_copy(&outputindex), core::mem::transmute_copy(&dimensioncount), core::mem::transmute_copy(&dimensionsizes)) { Ok(ok__) => { @@ -123,10 +93,7 @@ impl IMLOperatorKernelContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputTensor2(this: *mut core::ffi::c_void, outputindex: u32, tensor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorKernelContext_Impl, - { + unsafe extern "system" fn GetOutputTensor2(this: *mut core::ffi::c_void, outputindex: u32, tensor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorKernelContext_Impl::GetOutputTensor2(this, core::mem::transmute_copy(&outputindex)) { Ok(ok__) => { @@ -136,10 +103,7 @@ impl IMLOperatorKernelContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AllocateTemporaryData(this: *mut core::ffi::c_void, size: usize, data: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorKernelContext_Impl, - { + unsafe extern "system" fn AllocateTemporaryData(this: *mut core::ffi::c_void, size: usize, data: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorKernelContext_Impl::AllocateTemporaryData(this, core::mem::transmute_copy(&size)) { Ok(ok__) => { @@ -149,10 +113,7 @@ impl IMLOperatorKernelContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutionInterface(this: *mut core::ffi::c_void, executionobject: *mut *mut core::ffi::c_void) - where - Identity: IMLOperatorKernelContext_Impl, - { + unsafe extern "system" fn GetExecutionInterface(this: *mut core::ffi::c_void, executionobject: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorKernelContext_Impl::GetExecutionInterface(this, core::mem::transmute_copy(&executionobject)) } @@ -182,42 +143,24 @@ pub trait IMLOperatorKernelCreationContext_Impl: Sized + IMLOperatorAttributes_I } impl windows_core::RuntimeName for IMLOperatorKernelCreationContext {} impl IMLOperatorKernelCreationContext_Vtbl { - pub const fn new() -> IMLOperatorKernelCreationContext_Vtbl - where - Identity: IMLOperatorKernelCreationContext_Impl, - { - unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMLOperatorKernelCreationContext_Impl, - { + pub const fn new() -> IMLOperatorKernelCreationContext_Vtbl { + unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorKernelCreationContext_Impl::GetInputCount(this) } - unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMLOperatorKernelCreationContext_Impl, - { + unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorKernelCreationContext_Impl::GetOutputCount(this) } - unsafe extern "system" fn IsInputValid(this: *mut core::ffi::c_void, inputindex: u32) -> bool - where - Identity: IMLOperatorKernelCreationContext_Impl, - { + unsafe extern "system" fn IsInputValid(this: *mut core::ffi::c_void, inputindex: u32) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorKernelCreationContext_Impl::IsInputValid(this, core::mem::transmute_copy(&inputindex)) } - unsafe extern "system" fn IsOutputValid(this: *mut core::ffi::c_void, outputindex: u32) -> bool - where - Identity: IMLOperatorKernelCreationContext_Impl, - { + unsafe extern "system" fn IsOutputValid(this: *mut core::ffi::c_void, outputindex: u32) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorKernelCreationContext_Impl::IsOutputValid(this, core::mem::transmute_copy(&outputindex)) } - unsafe extern "system" fn GetInputEdgeDescription(this: *mut core::ffi::c_void, inputindex: u32, edgedescription: *mut MLOperatorEdgeDescription) -> windows_core::HRESULT - where - Identity: IMLOperatorKernelCreationContext_Impl, - { + unsafe extern "system" fn GetInputEdgeDescription(this: *mut core::ffi::c_void, inputindex: u32, edgedescription: *mut MLOperatorEdgeDescription) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorKernelCreationContext_Impl::GetInputEdgeDescription(this, core::mem::transmute_copy(&inputindex)) { Ok(ok__) => { @@ -227,10 +170,7 @@ impl IMLOperatorKernelCreationContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputEdgeDescription(this: *mut core::ffi::c_void, outputindex: u32, edgedescription: *mut MLOperatorEdgeDescription) -> windows_core::HRESULT - where - Identity: IMLOperatorKernelCreationContext_Impl, - { + unsafe extern "system" fn GetOutputEdgeDescription(this: *mut core::ffi::c_void, outputindex: u32, edgedescription: *mut MLOperatorEdgeDescription) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorKernelCreationContext_Impl::GetOutputEdgeDescription(this, core::mem::transmute_copy(&outputindex)) { Ok(ok__) => { @@ -240,17 +180,11 @@ impl IMLOperatorKernelCreationContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasTensorShapeDescription(this: *mut core::ffi::c_void) -> bool - where - Identity: IMLOperatorKernelCreationContext_Impl, - { + unsafe extern "system" fn HasTensorShapeDescription(this: *mut core::ffi::c_void) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorKernelCreationContext_Impl::HasTensorShapeDescription(this) } - unsafe extern "system" fn GetTensorShapeDescription(this: *mut core::ffi::c_void, shapedescription: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorKernelCreationContext_Impl, - { + unsafe extern "system" fn GetTensorShapeDescription(this: *mut core::ffi::c_void, shapedescription: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorKernelCreationContext_Impl::GetTensorShapeDescription(this) { Ok(ok__) => { @@ -260,10 +194,7 @@ impl IMLOperatorKernelCreationContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutionInterface(this: *mut core::ffi::c_void, executionobject: *mut *mut core::ffi::c_void) - where - Identity: IMLOperatorKernelCreationContext_Impl, - { + unsafe extern "system" fn GetExecutionInterface(this: *mut core::ffi::c_void, executionobject: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorKernelCreationContext_Impl::GetExecutionInterface(this, core::mem::transmute_copy(&executionobject)) } @@ -284,19 +215,13 @@ impl IMLOperatorKernelCreationContext_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMLOperatorKernelFactory_Impl: Sized { +pub trait IMLOperatorKernelFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateKernel(&self, context: Option<&IMLOperatorKernelCreationContext>) -> windows_core::Result; } impl windows_core::RuntimeName for IMLOperatorKernelFactory {} impl IMLOperatorKernelFactory_Vtbl { - pub const fn new() -> IMLOperatorKernelFactory_Vtbl - where - Identity: IMLOperatorKernelFactory_Impl, - { - unsafe extern "system" fn CreateKernel(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, kernel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorKernelFactory_Impl, - { + pub const fn new() -> IMLOperatorKernelFactory_Vtbl { + unsafe extern "system" fn CreateKernel(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, kernel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorKernelFactory_Impl::CreateKernel(this, windows_core::from_raw_borrowed(&context)) { Ok(ok__) => { @@ -312,27 +237,18 @@ impl IMLOperatorKernelFactory_Vtbl { iid == &::IID } } -pub trait IMLOperatorRegistry_Impl: Sized { +pub trait IMLOperatorRegistry_Impl: Sized + windows_core::IUnknownImpl { fn RegisterOperatorSetSchema(&self, operatorsetid: *const MLOperatorSetId, baselineversion: i32, schema: *const *const MLOperatorSchemaDescription, schemacount: u32, typeinferrer: Option<&IMLOperatorTypeInferrer>, shapeinferrer: Option<&IMLOperatorShapeInferrer>) -> windows_core::Result<()>; fn RegisterOperatorKernel(&self, operatorkernel: *const MLOperatorKernelDescription, operatorkernelfactory: Option<&IMLOperatorKernelFactory>, shapeinferrer: Option<&IMLOperatorShapeInferrer>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMLOperatorRegistry {} impl IMLOperatorRegistry_Vtbl { - pub const fn new() -> IMLOperatorRegistry_Vtbl - where - Identity: IMLOperatorRegistry_Impl, - { - unsafe extern "system" fn RegisterOperatorSetSchema(this: *mut core::ffi::c_void, operatorsetid: *const MLOperatorSetId, baselineversion: i32, schema: *const *const MLOperatorSchemaDescription, schemacount: u32, typeinferrer: *mut core::ffi::c_void, shapeinferrer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorRegistry_Impl, - { + pub const fn new() -> IMLOperatorRegistry_Vtbl { + unsafe extern "system" fn RegisterOperatorSetSchema(this: *mut core::ffi::c_void, operatorsetid: *const MLOperatorSetId, baselineversion: i32, schema: *const *const MLOperatorSchemaDescription, schemacount: u32, typeinferrer: *mut core::ffi::c_void, shapeinferrer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorRegistry_Impl::RegisterOperatorSetSchema(this, core::mem::transmute_copy(&operatorsetid), core::mem::transmute_copy(&baselineversion), core::mem::transmute_copy(&schema), core::mem::transmute_copy(&schemacount), windows_core::from_raw_borrowed(&typeinferrer), windows_core::from_raw_borrowed(&shapeinferrer)).into() } - unsafe extern "system" fn RegisterOperatorKernel(this: *mut core::ffi::c_void, operatorkernel: *const MLOperatorKernelDescription, operatorkernelfactory: *mut core::ffi::c_void, shapeinferrer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorRegistry_Impl, - { + unsafe extern "system" fn RegisterOperatorKernel(this: *mut core::ffi::c_void, operatorkernel: *const MLOperatorKernelDescription, operatorkernelfactory: *mut core::ffi::c_void, shapeinferrer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorRegistry_Impl::RegisterOperatorKernel(this, core::mem::transmute_copy(&operatorkernel), windows_core::from_raw_borrowed(&operatorkernelfactory), windows_core::from_raw_borrowed(&shapeinferrer)).into() } @@ -358,42 +274,24 @@ pub trait IMLOperatorShapeInferenceContext_Impl: Sized + IMLOperatorAttributes_I } impl windows_core::RuntimeName for IMLOperatorShapeInferenceContext {} impl IMLOperatorShapeInferenceContext_Vtbl { - pub const fn new() -> IMLOperatorShapeInferenceContext_Vtbl - where - Identity: IMLOperatorShapeInferenceContext_Impl, - { - unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMLOperatorShapeInferenceContext_Impl, - { + pub const fn new() -> IMLOperatorShapeInferenceContext_Vtbl { + unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorShapeInferenceContext_Impl::GetInputCount(this) } - unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMLOperatorShapeInferenceContext_Impl, - { + unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorShapeInferenceContext_Impl::GetOutputCount(this) } - unsafe extern "system" fn IsInputValid(this: *mut core::ffi::c_void, inputindex: u32) -> bool - where - Identity: IMLOperatorShapeInferenceContext_Impl, - { + unsafe extern "system" fn IsInputValid(this: *mut core::ffi::c_void, inputindex: u32) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorShapeInferenceContext_Impl::IsInputValid(this, core::mem::transmute_copy(&inputindex)) } - unsafe extern "system" fn IsOutputValid(this: *mut core::ffi::c_void, outputindex: u32) -> bool - where - Identity: IMLOperatorShapeInferenceContext_Impl, - { + unsafe extern "system" fn IsOutputValid(this: *mut core::ffi::c_void, outputindex: u32) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorShapeInferenceContext_Impl::IsOutputValid(this, core::mem::transmute_copy(&outputindex)) } - unsafe extern "system" fn GetInputEdgeDescription(this: *mut core::ffi::c_void, inputindex: u32, edgedescription: *mut MLOperatorEdgeDescription) -> windows_core::HRESULT - where - Identity: IMLOperatorShapeInferenceContext_Impl, - { + unsafe extern "system" fn GetInputEdgeDescription(this: *mut core::ffi::c_void, inputindex: u32, edgedescription: *mut MLOperatorEdgeDescription) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorShapeInferenceContext_Impl::GetInputEdgeDescription(this, core::mem::transmute_copy(&inputindex)) { Ok(ok__) => { @@ -403,10 +301,7 @@ impl IMLOperatorShapeInferenceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputTensorDimensionCount(this: *mut core::ffi::c_void, inputindex: u32, dimensioncount: *mut u32) -> windows_core::HRESULT - where - Identity: IMLOperatorShapeInferenceContext_Impl, - { + unsafe extern "system" fn GetInputTensorDimensionCount(this: *mut core::ffi::c_void, inputindex: u32, dimensioncount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorShapeInferenceContext_Impl::GetInputTensorDimensionCount(this, core::mem::transmute_copy(&inputindex)) { Ok(ok__) => { @@ -416,17 +311,11 @@ impl IMLOperatorShapeInferenceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputTensorShape(this: *mut core::ffi::c_void, inputindex: u32, dimensioncount: u32, dimensions: *mut u32) -> windows_core::HRESULT - where - Identity: IMLOperatorShapeInferenceContext_Impl, - { + unsafe extern "system" fn GetInputTensorShape(this: *mut core::ffi::c_void, inputindex: u32, dimensioncount: u32, dimensions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorShapeInferenceContext_Impl::GetInputTensorShape(this, core::mem::transmute_copy(&inputindex), core::mem::transmute_copy(&dimensioncount), core::mem::transmute_copy(&dimensions)).into() } - unsafe extern "system" fn SetOutputTensorShape(this: *mut core::ffi::c_void, outputindex: u32, dimensioncount: u32, dimensions: *const u32) -> windows_core::HRESULT - where - Identity: IMLOperatorShapeInferenceContext_Impl, - { + unsafe extern "system" fn SetOutputTensorShape(this: *mut core::ffi::c_void, outputindex: u32, dimensioncount: u32, dimensions: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorShapeInferenceContext_Impl::SetOutputTensorShape(this, core::mem::transmute_copy(&outputindex), core::mem::transmute_copy(&dimensioncount), core::mem::transmute_copy(&dimensions)).into() } @@ -446,19 +335,13 @@ impl IMLOperatorShapeInferenceContext_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMLOperatorShapeInferrer_Impl: Sized { +pub trait IMLOperatorShapeInferrer_Impl: Sized + windows_core::IUnknownImpl { fn InferOutputShapes(&self, context: Option<&IMLOperatorShapeInferenceContext>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMLOperatorShapeInferrer {} impl IMLOperatorShapeInferrer_Vtbl { - pub const fn new() -> IMLOperatorShapeInferrer_Vtbl - where - Identity: IMLOperatorShapeInferrer_Impl, - { - unsafe extern "system" fn InferOutputShapes(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorShapeInferrer_Impl, - { + pub const fn new() -> IMLOperatorShapeInferrer_Vtbl { + unsafe extern "system" fn InferOutputShapes(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorShapeInferrer_Impl::InferOutputShapes(this, windows_core::from_raw_borrowed(&context)).into() } @@ -468,7 +351,7 @@ impl IMLOperatorShapeInferrer_Vtbl { iid == &::IID } } -pub trait IMLOperatorTensor_Impl: Sized { +pub trait IMLOperatorTensor_Impl: Sized + windows_core::IUnknownImpl { fn GetDimensionCount(&self) -> u32; fn GetShape(&self, dimensioncount: u32, dimensions: *mut u32) -> windows_core::Result<()>; fn GetTensorDataType(&self) -> MLOperatorTensorDataType; @@ -479,56 +362,32 @@ pub trait IMLOperatorTensor_Impl: Sized { } impl windows_core::RuntimeName for IMLOperatorTensor {} impl IMLOperatorTensor_Vtbl { - pub const fn new() -> IMLOperatorTensor_Vtbl - where - Identity: IMLOperatorTensor_Impl, - { - unsafe extern "system" fn GetDimensionCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMLOperatorTensor_Impl, - { + pub const fn new() -> IMLOperatorTensor_Vtbl { + unsafe extern "system" fn GetDimensionCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTensor_Impl::GetDimensionCount(this) } - unsafe extern "system" fn GetShape(this: *mut core::ffi::c_void, dimensioncount: u32, dimensions: *mut u32) -> windows_core::HRESULT - where - Identity: IMLOperatorTensor_Impl, - { + unsafe extern "system" fn GetShape(this: *mut core::ffi::c_void, dimensioncount: u32, dimensions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTensor_Impl::GetShape(this, core::mem::transmute_copy(&dimensioncount), core::mem::transmute_copy(&dimensions)).into() } - unsafe extern "system" fn GetTensorDataType(this: *mut core::ffi::c_void) -> MLOperatorTensorDataType - where - Identity: IMLOperatorTensor_Impl, - { + unsafe extern "system" fn GetTensorDataType(this: *mut core::ffi::c_void) -> MLOperatorTensorDataType { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTensor_Impl::GetTensorDataType(this) } - unsafe extern "system" fn IsCpuData(this: *mut core::ffi::c_void) -> bool - where - Identity: IMLOperatorTensor_Impl, - { + unsafe extern "system" fn IsCpuData(this: *mut core::ffi::c_void) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTensor_Impl::IsCpuData(this) } - unsafe extern "system" fn IsDataInterface(this: *mut core::ffi::c_void) -> bool - where - Identity: IMLOperatorTensor_Impl, - { + unsafe extern "system" fn IsDataInterface(this: *mut core::ffi::c_void) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTensor_Impl::IsDataInterface(this) } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void - where - Identity: IMLOperatorTensor_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTensor_Impl::GetData(this) } - unsafe extern "system" fn GetDataInterface(this: *mut core::ffi::c_void, datainterface: *mut *mut core::ffi::c_void) - where - Identity: IMLOperatorTensor_Impl, - { + unsafe extern "system" fn GetDataInterface(this: *mut core::ffi::c_void, datainterface: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTensor_Impl::GetDataInterface(this, core::mem::transmute_copy(&datainterface)) } @@ -547,7 +406,7 @@ impl IMLOperatorTensor_Vtbl { iid == &::IID } } -pub trait IMLOperatorTensorShapeDescription_Impl: Sized { +pub trait IMLOperatorTensorShapeDescription_Impl: Sized + windows_core::IUnknownImpl { fn GetInputTensorDimensionCount(&self, inputindex: u32) -> windows_core::Result; fn GetInputTensorShape(&self, inputindex: u32, dimensioncount: u32, dimensions: *mut u32) -> windows_core::Result<()>; fn HasOutputShapeDescription(&self) -> bool; @@ -556,14 +415,8 @@ pub trait IMLOperatorTensorShapeDescription_Impl: Sized { } impl windows_core::RuntimeName for IMLOperatorTensorShapeDescription {} impl IMLOperatorTensorShapeDescription_Vtbl { - pub const fn new() -> IMLOperatorTensorShapeDescription_Vtbl - where - Identity: IMLOperatorTensorShapeDescription_Impl, - { - unsafe extern "system" fn GetInputTensorDimensionCount(this: *mut core::ffi::c_void, inputindex: u32, dimensioncount: *mut u32) -> windows_core::HRESULT - where - Identity: IMLOperatorTensorShapeDescription_Impl, - { + pub const fn new() -> IMLOperatorTensorShapeDescription_Vtbl { + unsafe extern "system" fn GetInputTensorDimensionCount(this: *mut core::ffi::c_void, inputindex: u32, dimensioncount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorTensorShapeDescription_Impl::GetInputTensorDimensionCount(this, core::mem::transmute_copy(&inputindex)) { Ok(ok__) => { @@ -573,24 +426,15 @@ impl IMLOperatorTensorShapeDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputTensorShape(this: *mut core::ffi::c_void, inputindex: u32, dimensioncount: u32, dimensions: *mut u32) -> windows_core::HRESULT - where - Identity: IMLOperatorTensorShapeDescription_Impl, - { + unsafe extern "system" fn GetInputTensorShape(this: *mut core::ffi::c_void, inputindex: u32, dimensioncount: u32, dimensions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTensorShapeDescription_Impl::GetInputTensorShape(this, core::mem::transmute_copy(&inputindex), core::mem::transmute_copy(&dimensioncount), core::mem::transmute_copy(&dimensions)).into() } - unsafe extern "system" fn HasOutputShapeDescription(this: *mut core::ffi::c_void) -> bool - where - Identity: IMLOperatorTensorShapeDescription_Impl, - { + unsafe extern "system" fn HasOutputShapeDescription(this: *mut core::ffi::c_void) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTensorShapeDescription_Impl::HasOutputShapeDescription(this) } - unsafe extern "system" fn GetOutputTensorDimensionCount(this: *mut core::ffi::c_void, outputindex: u32, dimensioncount: *mut u32) -> windows_core::HRESULT - where - Identity: IMLOperatorTensorShapeDescription_Impl, - { + unsafe extern "system" fn GetOutputTensorDimensionCount(this: *mut core::ffi::c_void, outputindex: u32, dimensioncount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorTensorShapeDescription_Impl::GetOutputTensorDimensionCount(this, core::mem::transmute_copy(&outputindex)) { Ok(ok__) => { @@ -600,10 +444,7 @@ impl IMLOperatorTensorShapeDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputTensorShape(this: *mut core::ffi::c_void, outputindex: u32, dimensioncount: u32, dimensions: *mut u32) -> windows_core::HRESULT - where - Identity: IMLOperatorTensorShapeDescription_Impl, - { + unsafe extern "system" fn GetOutputTensorShape(this: *mut core::ffi::c_void, outputindex: u32, dimensioncount: u32, dimensions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTensorShapeDescription_Impl::GetOutputTensorShape(this, core::mem::transmute_copy(&outputindex), core::mem::transmute_copy(&dimensioncount), core::mem::transmute_copy(&dimensions)).into() } @@ -630,42 +471,24 @@ pub trait IMLOperatorTypeInferenceContext_Impl: Sized + IMLOperatorAttributes_Im } impl windows_core::RuntimeName for IMLOperatorTypeInferenceContext {} impl IMLOperatorTypeInferenceContext_Vtbl { - pub const fn new() -> IMLOperatorTypeInferenceContext_Vtbl - where - Identity: IMLOperatorTypeInferenceContext_Impl, - { - unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMLOperatorTypeInferenceContext_Impl, - { + pub const fn new() -> IMLOperatorTypeInferenceContext_Vtbl { + unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTypeInferenceContext_Impl::GetInputCount(this) } - unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMLOperatorTypeInferenceContext_Impl, - { + unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTypeInferenceContext_Impl::GetOutputCount(this) } - unsafe extern "system" fn IsInputValid(this: *mut core::ffi::c_void, inputindex: u32) -> bool - where - Identity: IMLOperatorTypeInferenceContext_Impl, - { + unsafe extern "system" fn IsInputValid(this: *mut core::ffi::c_void, inputindex: u32) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTypeInferenceContext_Impl::IsInputValid(this, core::mem::transmute_copy(&inputindex)) } - unsafe extern "system" fn IsOutputValid(this: *mut core::ffi::c_void, outputindex: u32) -> bool - where - Identity: IMLOperatorTypeInferenceContext_Impl, - { + unsafe extern "system" fn IsOutputValid(this: *mut core::ffi::c_void, outputindex: u32) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTypeInferenceContext_Impl::IsOutputValid(this, core::mem::transmute_copy(&outputindex)) } - unsafe extern "system" fn GetInputEdgeDescription(this: *mut core::ffi::c_void, inputindex: u32, edgedescription: *mut MLOperatorEdgeDescription) -> windows_core::HRESULT - where - Identity: IMLOperatorTypeInferenceContext_Impl, - { + unsafe extern "system" fn GetInputEdgeDescription(this: *mut core::ffi::c_void, inputindex: u32, edgedescription: *mut MLOperatorEdgeDescription) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLOperatorTypeInferenceContext_Impl::GetInputEdgeDescription(this, core::mem::transmute_copy(&inputindex)) { Ok(ok__) => { @@ -675,10 +498,7 @@ impl IMLOperatorTypeInferenceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputEdgeDescription(this: *mut core::ffi::c_void, outputindex: u32, edgedescription: *const MLOperatorEdgeDescription) -> windows_core::HRESULT - where - Identity: IMLOperatorTypeInferenceContext_Impl, - { + unsafe extern "system" fn SetOutputEdgeDescription(this: *mut core::ffi::c_void, outputindex: u32, edgedescription: *const MLOperatorEdgeDescription) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTypeInferenceContext_Impl::SetOutputEdgeDescription(this, core::mem::transmute_copy(&outputindex), core::mem::transmute_copy(&edgedescription)).into() } @@ -696,19 +516,13 @@ impl IMLOperatorTypeInferenceContext_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMLOperatorTypeInferrer_Impl: Sized { +pub trait IMLOperatorTypeInferrer_Impl: Sized + windows_core::IUnknownImpl { fn InferOutputTypes(&self, context: Option<&IMLOperatorTypeInferenceContext>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMLOperatorTypeInferrer {} impl IMLOperatorTypeInferrer_Vtbl { - pub const fn new() -> IMLOperatorTypeInferrer_Vtbl - where - Identity: IMLOperatorTypeInferrer_Impl, - { - unsafe extern "system" fn InferOutputTypes(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLOperatorTypeInferrer_Impl, - { + pub const fn new() -> IMLOperatorTypeInferrer_Vtbl { + unsafe extern "system" fn InferOutputTypes(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLOperatorTypeInferrer_Impl::InferOutputTypes(this, windows_core::from_raw_borrowed(&context)).into() } @@ -719,7 +533,7 @@ impl IMLOperatorTypeInferrer_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -pub trait IWinMLEvaluationContext_Impl: Sized { +pub trait IWinMLEvaluationContext_Impl: Sized + windows_core::IUnknownImpl { fn BindValue(&self, pdescriptor: *const WINML_BINDING_DESC) -> windows_core::Result<()>; fn GetValueByName(&self, name: &windows_core::PCWSTR) -> windows_core::Result<*mut WINML_BINDING_DESC>; fn Clear(&self) -> windows_core::Result<()>; @@ -728,21 +542,12 @@ pub trait IWinMLEvaluationContext_Impl: Sized { impl windows_core::RuntimeName for IWinMLEvaluationContext {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl IWinMLEvaluationContext_Vtbl { - pub const fn new() -> IWinMLEvaluationContext_Vtbl - where - Identity: IWinMLEvaluationContext_Impl, - { - unsafe extern "system" fn BindValue(this: *mut core::ffi::c_void, pdescriptor: *const WINML_BINDING_DESC) -> windows_core::HRESULT - where - Identity: IWinMLEvaluationContext_Impl, - { + pub const fn new() -> IWinMLEvaluationContext_Vtbl { + unsafe extern "system" fn BindValue(this: *mut core::ffi::c_void, pdescriptor: *const WINML_BINDING_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinMLEvaluationContext_Impl::BindValue(this, core::mem::transmute_copy(&pdescriptor)).into() } - unsafe extern "system" fn GetValueByName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, pdescriptor: *mut *mut WINML_BINDING_DESC) -> windows_core::HRESULT - where - Identity: IWinMLEvaluationContext_Impl, - { + unsafe extern "system" fn GetValueByName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, pdescriptor: *mut *mut WINML_BINDING_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinMLEvaluationContext_Impl::GetValueByName(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -752,10 +557,7 @@ impl IWinMLEvaluationContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWinMLEvaluationContext_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinMLEvaluationContext_Impl::Clear(this).into() } @@ -770,7 +572,7 @@ impl IWinMLEvaluationContext_Vtbl { iid == &::IID } } -pub trait IWinMLModel_Impl: Sized { +pub trait IWinMLModel_Impl: Sized + windows_core::IUnknownImpl { fn GetDescription(&self) -> windows_core::Result<*mut WINML_MODEL_DESC>; fn EnumerateMetadata(&self, index: u32, pkey: *mut windows_core::PCWSTR, pvalue: *mut windows_core::PCWSTR) -> windows_core::Result<()>; fn EnumerateModelInputs(&self, index: u32) -> windows_core::Result<*mut WINML_VARIABLE_DESC>; @@ -778,14 +580,8 @@ pub trait IWinMLModel_Impl: Sized { } impl windows_core::RuntimeName for IWinMLModel {} impl IWinMLModel_Vtbl { - pub const fn new() -> IWinMLModel_Vtbl - where - Identity: IWinMLModel_Impl, - { - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, ppdescription: *mut *mut WINML_MODEL_DESC) -> windows_core::HRESULT - where - Identity: IWinMLModel_Impl, - { + pub const fn new() -> IWinMLModel_Vtbl { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, ppdescription: *mut *mut WINML_MODEL_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinMLModel_Impl::GetDescription(this) { Ok(ok__) => { @@ -795,17 +591,11 @@ impl IWinMLModel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateMetadata(this: *mut core::ffi::c_void, index: u32, pkey: *mut windows_core::PCWSTR, pvalue: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWinMLModel_Impl, - { + unsafe extern "system" fn EnumerateMetadata(this: *mut core::ffi::c_void, index: u32, pkey: *mut windows_core::PCWSTR, pvalue: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinMLModel_Impl::EnumerateMetadata(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn EnumerateModelInputs(this: *mut core::ffi::c_void, index: u32, ppinputdescriptor: *mut *mut WINML_VARIABLE_DESC) -> windows_core::HRESULT - where - Identity: IWinMLModel_Impl, - { + unsafe extern "system" fn EnumerateModelInputs(this: *mut core::ffi::c_void, index: u32, ppinputdescriptor: *mut *mut WINML_VARIABLE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinMLModel_Impl::EnumerateModelInputs(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -815,10 +605,7 @@ impl IWinMLModel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateModelOutputs(this: *mut core::ffi::c_void, index: u32, ppoutputdescriptor: *mut *mut WINML_VARIABLE_DESC) -> windows_core::HRESULT - where - Identity: IWinMLModel_Impl, - { + unsafe extern "system" fn EnumerateModelOutputs(this: *mut core::ffi::c_void, index: u32, ppoutputdescriptor: *mut *mut WINML_VARIABLE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinMLModel_Impl::EnumerateModelOutputs(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -841,7 +628,7 @@ impl IWinMLModel_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -pub trait IWinMLRuntime_Impl: Sized { +pub trait IWinMLRuntime_Impl: Sized + windows_core::IUnknownImpl { fn LoadModel(&self, path: &windows_core::PCWSTR) -> windows_core::Result; fn CreateEvaluationContext(&self, device: Option<&super::super::super::Graphics::Direct3D12::ID3D12Device>) -> windows_core::Result; fn EvaluateModel(&self, pcontext: Option<&IWinMLEvaluationContext>) -> windows_core::Result<()>; @@ -850,14 +637,8 @@ pub trait IWinMLRuntime_Impl: Sized { impl windows_core::RuntimeName for IWinMLRuntime {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl IWinMLRuntime_Vtbl { - pub const fn new() -> IWinMLRuntime_Vtbl - where - Identity: IWinMLRuntime_Impl, - { - unsafe extern "system" fn LoadModel(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, ppmodel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWinMLRuntime_Impl, - { + pub const fn new() -> IWinMLRuntime_Vtbl { + unsafe extern "system" fn LoadModel(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, ppmodel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinMLRuntime_Impl::LoadModel(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -867,10 +648,7 @@ impl IWinMLRuntime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEvaluationContext(this: *mut core::ffi::c_void, device: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWinMLRuntime_Impl, - { + unsafe extern "system" fn CreateEvaluationContext(this: *mut core::ffi::c_void, device: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinMLRuntime_Impl::CreateEvaluationContext(this, windows_core::from_raw_borrowed(&device)) { Ok(ok__) => { @@ -880,10 +658,7 @@ impl IWinMLRuntime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EvaluateModel(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWinMLRuntime_Impl, - { + unsafe extern "system" fn EvaluateModel(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinMLRuntime_Impl::EvaluateModel(this, windows_core::from_raw_borrowed(&pcontext)).into() } @@ -898,19 +673,13 @@ impl IWinMLRuntime_Vtbl { iid == &::IID } } -pub trait IWinMLRuntimeFactory_Impl: Sized { +pub trait IWinMLRuntimeFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateRuntime(&self, runtimetype: WINML_RUNTIME_TYPE) -> windows_core::Result; } impl windows_core::RuntimeName for IWinMLRuntimeFactory {} impl IWinMLRuntimeFactory_Vtbl { - pub const fn new() -> IWinMLRuntimeFactory_Vtbl - where - Identity: IWinMLRuntimeFactory_Impl, - { - unsafe extern "system" fn CreateRuntime(this: *mut core::ffi::c_void, runtimetype: WINML_RUNTIME_TYPE, ppruntime: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWinMLRuntimeFactory_Impl, - { + pub const fn new() -> IWinMLRuntimeFactory_Vtbl { + unsafe extern "system" fn CreateRuntime(this: *mut core::ffi::c_void, runtimetype: WINML_RUNTIME_TYPE, ppruntime: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinMLRuntimeFactory_Impl::CreateRuntime(this, core::mem::transmute_copy(&runtimetype)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/impl.rs b/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/impl.rs index 7f050fc39e..a0ada084ea 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/impl.rs @@ -1,4 +1,4 @@ -pub trait IITDatabase_Impl: Sized { +pub trait IITDatabase_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, lpszhost: &windows_core::PCWSTR, lpszmoniker: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn CreateObject(&self, rclsid: *const windows_core::GUID, pdwobjinstance: *mut u32) -> windows_core::Result<()>; @@ -7,42 +7,24 @@ pub trait IITDatabase_Impl: Sized { } impl windows_core::RuntimeName for IITDatabase {} impl IITDatabase_Vtbl { - pub const fn new() -> IITDatabase_Vtbl - where - Identity: IITDatabase_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, lpszhost: windows_core::PCWSTR, lpszmoniker: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IITDatabase_Impl, - { + pub const fn new() -> IITDatabase_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, lpszhost: windows_core::PCWSTR, lpszmoniker: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITDatabase_Impl::Open(this, core::mem::transmute(&lpszhost), core::mem::transmute(&lpszmoniker), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITDatabase_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITDatabase_Impl::Close(this).into() } - unsafe extern "system" fn CreateObject(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, pdwobjinstance: *mut u32) -> windows_core::HRESULT - where - Identity: IITDatabase_Impl, - { + unsafe extern "system" fn CreateObject(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, pdwobjinstance: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITDatabase_Impl::CreateObject(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&pdwobjinstance)).into() } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, dwobjinstance: u32, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITDatabase_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, dwobjinstance: u32, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITDatabase_Impl::GetObject(this, core::mem::transmute_copy(&dwobjinstance), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobj)).into() } - unsafe extern "system" fn GetObjectPersistence(this: *mut core::ffi::c_void, lpwszobject: windows_core::PCWSTR, dwobjinstance: u32, ppvpersistence: *mut *mut core::ffi::c_void, fstream: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IITDatabase_Impl, - { + unsafe extern "system" fn GetObjectPersistence(this: *mut core::ffi::c_void, lpwszobject: windows_core::PCWSTR, dwobjinstance: u32, ppvpersistence: *mut *mut core::ffi::c_void, fstream: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITDatabase_Impl::GetObjectPersistence(this, core::mem::transmute(&lpwszobject), core::mem::transmute_copy(&dwobjinstance), core::mem::transmute_copy(&ppvpersistence), core::mem::transmute_copy(&fstream)).into() } @@ -84,133 +66,76 @@ pub trait IITPropList_Impl: Sized + super::super::System::Com::IPersistStreamIni impl windows_core::RuntimeName for IITPropList {} #[cfg(feature = "Win32_System_Com")] impl IITPropList_Vtbl { - pub const fn new() -> IITPropList_Vtbl - where - Identity: IITPropList_Impl, - { - unsafe extern "system" fn Set(this: *mut core::ffi::c_void, propid: u32, lpszwstring: windows_core::PCWSTR, dwoperation: u32) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + pub const fn new() -> IITPropList_Vtbl { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, propid: u32, lpszwstring: windows_core::PCWSTR, dwoperation: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::Set(this, core::mem::transmute_copy(&propid), core::mem::transmute(&lpszwstring), core::mem::transmute_copy(&dwoperation)).into() } - unsafe extern "system" fn Set2(this: *mut core::ffi::c_void, propid: u32, lpvdata: *mut core::ffi::c_void, cbdata: u32, dwoperation: u32) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn Set2(this: *mut core::ffi::c_void, propid: u32, lpvdata: *mut core::ffi::c_void, cbdata: u32, dwoperation: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::Set2(this, core::mem::transmute_copy(&propid), core::mem::transmute_copy(&lpvdata), core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&dwoperation)).into() } - unsafe extern "system" fn Set3(this: *mut core::ffi::c_void, propid: u32, dwdata: u32, dwoperation: u32) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn Set3(this: *mut core::ffi::c_void, propid: u32, dwdata: u32, dwoperation: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::Set3(this, core::mem::transmute_copy(&propid), core::mem::transmute_copy(&dwdata), core::mem::transmute_copy(&dwoperation)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, prop: *mut CProperty) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, prop: *mut CProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::Add(this, core::mem::transmute_copy(&prop)).into() } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, propid: u32, property: *mut CProperty) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, propid: u32, property: *mut CProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::Get(this, core::mem::transmute_copy(&propid), core::mem::transmute_copy(&property)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::Clear(this).into() } - unsafe extern "system" fn SetPersist(this: *mut core::ffi::c_void, fpersist: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn SetPersist(this: *mut core::ffi::c_void, fpersist: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::SetPersist(this, core::mem::transmute_copy(&fpersist)).into() } - unsafe extern "system" fn SetPersist2(this: *mut core::ffi::c_void, propid: u32, fpersist: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn SetPersist2(this: *mut core::ffi::c_void, propid: u32, fpersist: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::SetPersist2(this, core::mem::transmute_copy(&propid), core::mem::transmute_copy(&fpersist)).into() } - unsafe extern "system" fn GetFirst(this: *mut core::ffi::c_void, property: *mut CProperty) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn GetFirst(this: *mut core::ffi::c_void, property: *mut CProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::GetFirst(this, core::mem::transmute_copy(&property)).into() } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, property: *mut CProperty) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, property: *mut CProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::GetNext(this, core::mem::transmute_copy(&property)).into() } - unsafe extern "system" fn GetPropCount(this: *mut core::ffi::c_void, cprop: *mut i32) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn GetPropCount(this: *mut core::ffi::c_void, cprop: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::GetPropCount(this, core::mem::transmute_copy(&cprop)).into() } - unsafe extern "system" fn SaveHeader(this: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void, dwhdrsize: u32) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn SaveHeader(this: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void, dwhdrsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::SaveHeader(this, core::mem::transmute_copy(&lpvdata), core::mem::transmute_copy(&dwhdrsize)).into() } - unsafe extern "system" fn SaveData(this: *mut core::ffi::c_void, lpvheader: *mut core::ffi::c_void, dwhdrsize: u32, lpvdata: *mut core::ffi::c_void, dwbufsize: u32) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn SaveData(this: *mut core::ffi::c_void, lpvheader: *mut core::ffi::c_void, dwhdrsize: u32, lpvdata: *mut core::ffi::c_void, dwbufsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::SaveData(this, core::mem::transmute_copy(&lpvheader), core::mem::transmute_copy(&dwhdrsize), core::mem::transmute_copy(&lpvdata), core::mem::transmute_copy(&dwbufsize)).into() } - unsafe extern "system" fn GetHeaderSize(this: *mut core::ffi::c_void, dwhdrsize: *mut u32) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn GetHeaderSize(this: *mut core::ffi::c_void, dwhdrsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::GetHeaderSize(this, core::mem::transmute_copy(&dwhdrsize)).into() } - unsafe extern "system" fn GetDataSize(this: *mut core::ffi::c_void, lpvheader: *mut core::ffi::c_void, dwhdrsize: u32, dwdatasize: *mut u32) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn GetDataSize(this: *mut core::ffi::c_void, lpvheader: *mut core::ffi::c_void, dwhdrsize: u32, dwdatasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::GetDataSize(this, core::mem::transmute_copy(&lpvheader), core::mem::transmute_copy(&dwhdrsize), core::mem::transmute_copy(&dwdatasize)).into() } - unsafe extern "system" fn SaveDataToStream(this: *mut core::ffi::c_void, lpvheader: *mut core::ffi::c_void, dwhdrsize: u32, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn SaveDataToStream(this: *mut core::ffi::c_void, lpvheader: *mut core::ffi::c_void, dwhdrsize: u32, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::SaveDataToStream(this, core::mem::transmute_copy(&lpvheader), core::mem::transmute_copy(&dwhdrsize), windows_core::from_raw_borrowed(&pstream)).into() } - unsafe extern "system" fn LoadFromMem(this: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void, dwbufsize: u32) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn LoadFromMem(this: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void, dwbufsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::LoadFromMem(this, core::mem::transmute_copy(&lpvdata), core::mem::transmute_copy(&dwbufsize)).into() } - unsafe extern "system" fn SaveToMem(this: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void, dwbufsize: u32) -> windows_core::HRESULT - where - Identity: IITPropList_Impl, - { + unsafe extern "system" fn SaveToMem(this: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void, dwbufsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::SaveToMem(this, core::mem::transmute_copy(&lpvdata), core::mem::transmute_copy(&dwbufsize)).into() } @@ -240,7 +165,7 @@ impl IITPropList_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IITResultSet_Impl: Sized { +pub trait IITResultSet_Impl: Sized + windows_core::IUnknownImpl { fn SetColumnPriority(&self, lcolumnindex: i32, columnpriority: PRIORITY) -> windows_core::Result<()>; fn SetColumnHeap(&self, lcolumnindex: i32, lpvheap: *mut core::ffi::c_void, pfncolheapfree: PFNCOLHEAPFREE) -> windows_core::Result<()>; fn SetKeyProp(&self, propid: u32) -> windows_core::Result<()>; @@ -274,217 +199,124 @@ pub trait IITResultSet_Impl: Sized { } impl windows_core::RuntimeName for IITResultSet {} impl IITResultSet_Vtbl { - pub const fn new() -> IITResultSet_Vtbl - where - Identity: IITResultSet_Impl, - { - unsafe extern "system" fn SetColumnPriority(this: *mut core::ffi::c_void, lcolumnindex: i32, columnpriority: PRIORITY) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + pub const fn new() -> IITResultSet_Vtbl { + unsafe extern "system" fn SetColumnPriority(this: *mut core::ffi::c_void, lcolumnindex: i32, columnpriority: PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::SetColumnPriority(this, core::mem::transmute_copy(&lcolumnindex), core::mem::transmute_copy(&columnpriority)).into() } - unsafe extern "system" fn SetColumnHeap(this: *mut core::ffi::c_void, lcolumnindex: i32, lpvheap: *mut core::ffi::c_void, pfncolheapfree: PFNCOLHEAPFREE) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn SetColumnHeap(this: *mut core::ffi::c_void, lcolumnindex: i32, lpvheap: *mut core::ffi::c_void, pfncolheapfree: PFNCOLHEAPFREE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::SetColumnHeap(this, core::mem::transmute_copy(&lcolumnindex), core::mem::transmute_copy(&lpvheap), core::mem::transmute_copy(&pfncolheapfree)).into() } - unsafe extern "system" fn SetKeyProp(this: *mut core::ffi::c_void, propid: u32) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn SetKeyProp(this: *mut core::ffi::c_void, propid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::SetKeyProp(this, core::mem::transmute_copy(&propid)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, propid: u32, dwdefaultdata: u32, priority: PRIORITY) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, propid: u32, dwdefaultdata: u32, priority: PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Add(this, core::mem::transmute_copy(&propid), core::mem::transmute_copy(&dwdefaultdata), core::mem::transmute_copy(&priority)).into() } - unsafe extern "system" fn Add2(this: *mut core::ffi::c_void, propid: u32, lpszwdefault: windows_core::PCWSTR, priority: PRIORITY) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Add2(this: *mut core::ffi::c_void, propid: u32, lpszwdefault: windows_core::PCWSTR, priority: PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Add2(this, core::mem::transmute_copy(&propid), core::mem::transmute(&lpszwdefault), core::mem::transmute_copy(&priority)).into() } - unsafe extern "system" fn Add3(this: *mut core::ffi::c_void, propid: u32, lpvdefaultdata: *mut core::ffi::c_void, cbdata: u32, priority: PRIORITY) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Add3(this: *mut core::ffi::c_void, propid: u32, lpvdefaultdata: *mut core::ffi::c_void, cbdata: u32, priority: PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Add3(this, core::mem::transmute_copy(&propid), core::mem::transmute_copy(&lpvdefaultdata), core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&priority)).into() } - unsafe extern "system" fn Add4(this: *mut core::ffi::c_void, lpvhdr: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Add4(this: *mut core::ffi::c_void, lpvhdr: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Add4(this, core::mem::transmute_copy(&lpvhdr)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, lpvhdr: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, lpvhdr: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Append(this, core::mem::transmute_copy(&lpvhdr), core::mem::transmute_copy(&lpvdata)).into() } - unsafe extern "system" fn Set(this: *mut core::ffi::c_void, lrowindex: i32, lcolumnindex: i32, lpvdata: *mut core::ffi::c_void, cbdata: u32) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, lrowindex: i32, lcolumnindex: i32, lpvdata: *mut core::ffi::c_void, cbdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Set(this, core::mem::transmute_copy(&lrowindex), core::mem::transmute_copy(&lcolumnindex), core::mem::transmute_copy(&lpvdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn Set2(this: *mut core::ffi::c_void, lrowindex: i32, lcolumnindex: i32, lpwstr: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Set2(this: *mut core::ffi::c_void, lrowindex: i32, lcolumnindex: i32, lpwstr: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Set2(this, core::mem::transmute_copy(&lrowindex), core::mem::transmute_copy(&lcolumnindex), core::mem::transmute(&lpwstr)).into() } - unsafe extern "system" fn Set3(this: *mut core::ffi::c_void, lrowindex: i32, lcolumnindex: i32, dwdata: usize) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Set3(this: *mut core::ffi::c_void, lrowindex: i32, lcolumnindex: i32, dwdata: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Set3(this, core::mem::transmute_copy(&lrowindex), core::mem::transmute_copy(&lcolumnindex), core::mem::transmute_copy(&dwdata)).into() } - unsafe extern "system" fn Set4(this: *mut core::ffi::c_void, lrowindex: i32, lpvhdr: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Set4(this: *mut core::ffi::c_void, lrowindex: i32, lpvhdr: *mut core::ffi::c_void, lpvdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Set4(this, core::mem::transmute_copy(&lrowindex), core::mem::transmute_copy(&lpvhdr), core::mem::transmute_copy(&lpvdata)).into() } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, prscopy: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, prscopy: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Copy(this, windows_core::from_raw_borrowed(&prscopy)).into() } - unsafe extern "system" fn AppendRows(this: *mut core::ffi::c_void, pressrc: *mut core::ffi::c_void, lrowsrcfirst: i32, csrcrows: i32, lrowfirstdest: *mut i32) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn AppendRows(this: *mut core::ffi::c_void, pressrc: *mut core::ffi::c_void, lrowsrcfirst: i32, csrcrows: i32, lrowfirstdest: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::AppendRows(this, windows_core::from_raw_borrowed(&pressrc), core::mem::transmute_copy(&lrowsrcfirst), core::mem::transmute_copy(&csrcrows), core::mem::transmute_copy(&lrowfirstdest)).into() } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, lrowindex: i32, lcolumnindex: i32, prop: *mut CProperty) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, lrowindex: i32, lcolumnindex: i32, prop: *mut CProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Get(this, core::mem::transmute_copy(&lrowindex), core::mem::transmute_copy(&lcolumnindex), core::mem::transmute_copy(&prop)).into() } - unsafe extern "system" fn GetKeyProp(this: *mut core::ffi::c_void, keypropid: *mut u32) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn GetKeyProp(this: *mut core::ffi::c_void, keypropid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::GetKeyProp(this, core::mem::transmute_copy(&keypropid)).into() } - unsafe extern "system" fn GetColumnPriority(this: *mut core::ffi::c_void, lcolumnindex: i32, columnpriority: *mut PRIORITY) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn GetColumnPriority(this: *mut core::ffi::c_void, lcolumnindex: i32, columnpriority: *mut PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::GetColumnPriority(this, core::mem::transmute_copy(&lcolumnindex), core::mem::transmute_copy(&columnpriority)).into() } - unsafe extern "system" fn GetRowCount(this: *mut core::ffi::c_void, lnumberofrows: *mut i32) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn GetRowCount(this: *mut core::ffi::c_void, lnumberofrows: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::GetRowCount(this, core::mem::transmute_copy(&lnumberofrows)).into() } - unsafe extern "system" fn GetColumnCount(this: *mut core::ffi::c_void, lnumberofcolumns: *mut i32) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn GetColumnCount(this: *mut core::ffi::c_void, lnumberofcolumns: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::GetColumnCount(this, core::mem::transmute_copy(&lnumberofcolumns)).into() } - unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, lcolumnindex: i32, propid: *mut u32, dwtype: *mut u32, lpvdefaultvalue: *mut *mut core::ffi::c_void, cbsize: *mut u32, columnpriority: *mut PRIORITY) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, lcolumnindex: i32, propid: *mut u32, dwtype: *mut u32, lpvdefaultvalue: *mut *mut core::ffi::c_void, cbsize: *mut u32, columnpriority: *mut PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::GetColumn(this, core::mem::transmute_copy(&lcolumnindex), core::mem::transmute_copy(&propid), core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&lpvdefaultvalue), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&columnpriority)).into() } - unsafe extern "system" fn GetColumn2(this: *mut core::ffi::c_void, lcolumnindex: i32, propid: *mut u32) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn GetColumn2(this: *mut core::ffi::c_void, lcolumnindex: i32, propid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::GetColumn2(this, core::mem::transmute_copy(&lcolumnindex), core::mem::transmute_copy(&propid)).into() } - unsafe extern "system" fn GetColumnFromPropID(this: *mut core::ffi::c_void, propid: u32, lcolumnindex: *mut i32) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn GetColumnFromPropID(this: *mut core::ffi::c_void, propid: u32, lcolumnindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::GetColumnFromPropID(this, core::mem::transmute_copy(&propid), core::mem::transmute_copy(&lcolumnindex)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Clear(this).into() } - unsafe extern "system" fn ClearRows(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn ClearRows(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::ClearRows(this).into() } - unsafe extern "system" fn Free(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Free(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Free(this).into() } - unsafe extern "system" fn IsCompleted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn IsCompleted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::IsCompleted(this).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Cancel(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, fpause: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, fpause: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Pause(this, core::mem::transmute_copy(&fpause)).into() } - unsafe extern "system" fn GetRowStatus(this: *mut core::ffi::c_void, lrowfirst: i32, crows: i32, lprowstatus: *mut ROWSTATUS) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn GetRowStatus(this: *mut core::ffi::c_void, lrowfirst: i32, crows: i32, lprowstatus: *mut ROWSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::GetRowStatus(this, core::mem::transmute_copy(&lrowfirst), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&lprowstatus)).into() } - unsafe extern "system" fn GetColumnStatus(this: *mut core::ffi::c_void, lpcolstatus: *mut COLUMNSTATUS) -> windows_core::HRESULT - where - Identity: IITResultSet_Impl, - { + unsafe extern "system" fn GetColumnStatus(this: *mut core::ffi::c_void, lpcolstatus: *mut COLUMNSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::GetColumnStatus(this, core::mem::transmute_copy(&lpcolstatus)).into() } @@ -526,27 +358,18 @@ impl IITResultSet_Vtbl { iid == &::IID } } -pub trait IStemSink_Impl: Sized { +pub trait IStemSink_Impl: Sized + windows_core::IUnknownImpl { fn PutAltWord(&self, pwcinbuf: &windows_core::PCWSTR, cwc: u32) -> windows_core::Result<()>; fn PutWord(&self, pwcinbuf: &windows_core::PCWSTR, cwc: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IStemSink {} impl IStemSink_Vtbl { - pub const fn new() -> IStemSink_Vtbl - where - Identity: IStemSink_Impl, - { - unsafe extern "system" fn PutAltWord(this: *mut core::ffi::c_void, pwcinbuf: windows_core::PCWSTR, cwc: u32) -> windows_core::HRESULT - where - Identity: IStemSink_Impl, - { + pub const fn new() -> IStemSink_Vtbl { + unsafe extern "system" fn PutAltWord(this: *mut core::ffi::c_void, pwcinbuf: windows_core::PCWSTR, cwc: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemSink_Impl::PutAltWord(this, core::mem::transmute(&pwcinbuf), core::mem::transmute_copy(&cwc)).into() } - unsafe extern "system" fn PutWord(this: *mut core::ffi::c_void, pwcinbuf: windows_core::PCWSTR, cwc: u32) -> windows_core::HRESULT - where - Identity: IStemSink_Impl, - { + unsafe extern "system" fn PutWord(this: *mut core::ffi::c_void, pwcinbuf: windows_core::PCWSTR, cwc: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemSink_Impl::PutWord(this, core::mem::transmute(&pwcinbuf), core::mem::transmute_copy(&cwc)).into() } @@ -557,7 +380,7 @@ impl IStemSink_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IStemmerConfig_Impl: Sized { +pub trait IStemmerConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetLocaleInfo(&self, dwcodepageid: u32, lcid: u32) -> windows_core::Result<()>; fn GetLocaleInfo(&self, pdwcodepageid: *mut u32, plcid: *mut u32) -> windows_core::Result<()>; fn SetControlInfo(&self, grfstemflags: u32, dwreserved: u32) -> windows_core::Result<()>; @@ -568,42 +391,24 @@ pub trait IStemmerConfig_Impl: Sized { impl windows_core::RuntimeName for IStemmerConfig {} #[cfg(feature = "Win32_System_Com")] impl IStemmerConfig_Vtbl { - pub const fn new() -> IStemmerConfig_Vtbl - where - Identity: IStemmerConfig_Impl, - { - unsafe extern "system" fn SetLocaleInfo(this: *mut core::ffi::c_void, dwcodepageid: u32, lcid: u32) -> windows_core::HRESULT - where - Identity: IStemmerConfig_Impl, - { + pub const fn new() -> IStemmerConfig_Vtbl { + unsafe extern "system" fn SetLocaleInfo(this: *mut core::ffi::c_void, dwcodepageid: u32, lcid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemmerConfig_Impl::SetLocaleInfo(this, core::mem::transmute_copy(&dwcodepageid), core::mem::transmute_copy(&lcid)).into() } - unsafe extern "system" fn GetLocaleInfo(this: *mut core::ffi::c_void, pdwcodepageid: *mut u32, plcid: *mut u32) -> windows_core::HRESULT - where - Identity: IStemmerConfig_Impl, - { + unsafe extern "system" fn GetLocaleInfo(this: *mut core::ffi::c_void, pdwcodepageid: *mut u32, plcid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemmerConfig_Impl::GetLocaleInfo(this, core::mem::transmute_copy(&pdwcodepageid), core::mem::transmute_copy(&plcid)).into() } - unsafe extern "system" fn SetControlInfo(this: *mut core::ffi::c_void, grfstemflags: u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IStemmerConfig_Impl, - { + unsafe extern "system" fn SetControlInfo(this: *mut core::ffi::c_void, grfstemflags: u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemmerConfig_Impl::SetControlInfo(this, core::mem::transmute_copy(&grfstemflags), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn GetControlInfo(this: *mut core::ffi::c_void, pgrfstemflags: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT - where - Identity: IStemmerConfig_Impl, - { + unsafe extern "system" fn GetControlInfo(this: *mut core::ffi::c_void, pgrfstemflags: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemmerConfig_Impl::GetControlInfo(this, core::mem::transmute_copy(&pgrfstemflags), core::mem::transmute_copy(&pdwreserved)).into() } - unsafe extern "system" fn LoadExternalStemmerData(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, dwextdatatype: u32) -> windows_core::HRESULT - where - Identity: IStemmerConfig_Impl, - { + unsafe extern "system" fn LoadExternalStemmerData(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, dwextdatatype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemmerConfig_Impl::LoadExternalStemmerData(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&dwextdatatype)).into() } @@ -621,7 +426,7 @@ impl IStemmerConfig_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search"))] -pub trait IWordBreakerConfig_Impl: Sized { +pub trait IWordBreakerConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetLocaleInfo(&self, dwcodepageid: u32, lcid: u32) -> windows_core::Result<()>; fn GetLocaleInfo(&self, pdwcodepageid: *mut u32, plcid: *mut u32) -> windows_core::Result<()>; fn SetBreakWordType(&self, dwbreakwordtype: u32) -> windows_core::Result<()>; @@ -636,70 +441,40 @@ pub trait IWordBreakerConfig_Impl: Sized { impl windows_core::RuntimeName for IWordBreakerConfig {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search"))] impl IWordBreakerConfig_Vtbl { - pub const fn new() -> IWordBreakerConfig_Vtbl - where - Identity: IWordBreakerConfig_Impl, - { - unsafe extern "system" fn SetLocaleInfo(this: *mut core::ffi::c_void, dwcodepageid: u32, lcid: u32) -> windows_core::HRESULT - where - Identity: IWordBreakerConfig_Impl, - { + pub const fn new() -> IWordBreakerConfig_Vtbl { + unsafe extern "system" fn SetLocaleInfo(this: *mut core::ffi::c_void, dwcodepageid: u32, lcid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreakerConfig_Impl::SetLocaleInfo(this, core::mem::transmute_copy(&dwcodepageid), core::mem::transmute_copy(&lcid)).into() } - unsafe extern "system" fn GetLocaleInfo(this: *mut core::ffi::c_void, pdwcodepageid: *mut u32, plcid: *mut u32) -> windows_core::HRESULT - where - Identity: IWordBreakerConfig_Impl, - { + unsafe extern "system" fn GetLocaleInfo(this: *mut core::ffi::c_void, pdwcodepageid: *mut u32, plcid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreakerConfig_Impl::GetLocaleInfo(this, core::mem::transmute_copy(&pdwcodepageid), core::mem::transmute_copy(&plcid)).into() } - unsafe extern "system" fn SetBreakWordType(this: *mut core::ffi::c_void, dwbreakwordtype: u32) -> windows_core::HRESULT - where - Identity: IWordBreakerConfig_Impl, - { + unsafe extern "system" fn SetBreakWordType(this: *mut core::ffi::c_void, dwbreakwordtype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreakerConfig_Impl::SetBreakWordType(this, core::mem::transmute_copy(&dwbreakwordtype)).into() } - unsafe extern "system" fn GetBreakWordType(this: *mut core::ffi::c_void, pdwbreakwordtype: *mut u32) -> windows_core::HRESULT - where - Identity: IWordBreakerConfig_Impl, - { + unsafe extern "system" fn GetBreakWordType(this: *mut core::ffi::c_void, pdwbreakwordtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreakerConfig_Impl::GetBreakWordType(this, core::mem::transmute_copy(&pdwbreakwordtype)).into() } - unsafe extern "system" fn SetControlInfo(this: *mut core::ffi::c_void, grfbreakflags: u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IWordBreakerConfig_Impl, - { + unsafe extern "system" fn SetControlInfo(this: *mut core::ffi::c_void, grfbreakflags: u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreakerConfig_Impl::SetControlInfo(this, core::mem::transmute_copy(&grfbreakflags), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn GetControlInfo(this: *mut core::ffi::c_void, pgrfbreakflags: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT - where - Identity: IWordBreakerConfig_Impl, - { + unsafe extern "system" fn GetControlInfo(this: *mut core::ffi::c_void, pgrfbreakflags: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreakerConfig_Impl::GetControlInfo(this, core::mem::transmute_copy(&pgrfbreakflags), core::mem::transmute_copy(&pdwreserved)).into() } - unsafe extern "system" fn LoadExternalBreakerData(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, dwextdatatype: u32) -> windows_core::HRESULT - where - Identity: IWordBreakerConfig_Impl, - { + unsafe extern "system" fn LoadExternalBreakerData(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, dwextdatatype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreakerConfig_Impl::LoadExternalBreakerData(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&dwextdatatype)).into() } - unsafe extern "system" fn SetWordStemmer(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, pstemmer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWordBreakerConfig_Impl, - { + unsafe extern "system" fn SetWordStemmer(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, pstemmer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreakerConfig_Impl::SetWordStemmer(this, core::mem::transmute_copy(&rclsid), windows_core::from_raw_borrowed(&pstemmer)).into() } - unsafe extern "system" fn GetWordStemmer(this: *mut core::ffi::c_void, ppstemmer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWordBreakerConfig_Impl, - { + unsafe extern "system" fn GetWordStemmer(this: *mut core::ffi::c_void, ppstemmer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWordBreakerConfig_Impl::GetWordStemmer(this) { Ok(ok__) => { 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 79ed1fb6a6..acb845ecd3 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 @@ -16,84 +16,48 @@ pub trait IMXAttributes_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for IMXAttributes {} #[cfg(feature = "Win32_System_Com")] impl IMXAttributes_Vtbl { - pub const fn new() -> IMXAttributes_Vtbl - where - Identity: IMXAttributes_Impl, - { - unsafe extern "system" fn addAttribute(this: *mut core::ffi::c_void, struri: core::mem::MaybeUninit, strlocalname: core::mem::MaybeUninit, strqname: core::mem::MaybeUninit, strtype: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + pub const fn new() -> IMXAttributes_Vtbl { + unsafe extern "system" fn addAttribute(this: *mut core::ffi::c_void, struri: core::mem::MaybeUninit, strlocalname: core::mem::MaybeUninit, strqname: core::mem::MaybeUninit, strtype: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::addAttribute(this, core::mem::transmute(&struri), core::mem::transmute(&strlocalname), core::mem::transmute(&strqname), core::mem::transmute(&strtype), core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn addAttributeFromIndex(this: *mut core::ffi::c_void, varatts: core::mem::MaybeUninit, nindex: i32) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + unsafe extern "system" fn addAttributeFromIndex(this: *mut core::ffi::c_void, varatts: core::mem::MaybeUninit, nindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::addAttributeFromIndex(this, core::mem::transmute(&varatts), core::mem::transmute_copy(&nindex)).into() } - unsafe extern "system" fn clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + unsafe extern "system" fn clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::clear(this).into() } - unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, nindex: i32) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, nindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::removeAttribute(this, core::mem::transmute_copy(&nindex)).into() } - unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, nindex: i32, struri: core::mem::MaybeUninit, strlocalname: core::mem::MaybeUninit, strqname: core::mem::MaybeUninit, strtype: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, nindex: i32, struri: core::mem::MaybeUninit, strlocalname: core::mem::MaybeUninit, strqname: core::mem::MaybeUninit, strtype: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::setAttribute(this, 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() } - unsafe extern "system" fn setAttributes(this: *mut core::ffi::c_void, varatts: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + unsafe extern "system" fn setAttributes(this: *mut core::ffi::c_void, varatts: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::setAttributes(this, core::mem::transmute(&varatts)).into() } - unsafe extern "system" fn setLocalName(this: *mut core::ffi::c_void, nindex: i32, strlocalname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + unsafe extern "system" fn setLocalName(this: *mut core::ffi::c_void, nindex: i32, strlocalname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::setLocalName(this, core::mem::transmute_copy(&nindex), core::mem::transmute(&strlocalname)).into() } - unsafe extern "system" fn setQName(this: *mut core::ffi::c_void, nindex: i32, strqname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + unsafe extern "system" fn setQName(this: *mut core::ffi::c_void, nindex: i32, strqname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::setQName(this, core::mem::transmute_copy(&nindex), core::mem::transmute(&strqname)).into() } - unsafe extern "system" fn setType(this: *mut core::ffi::c_void, nindex: i32, strtype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + unsafe extern "system" fn setType(this: *mut core::ffi::c_void, nindex: i32, strtype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::setType(this, core::mem::transmute_copy(&nindex), core::mem::transmute(&strtype)).into() } - unsafe extern "system" fn setURI(this: *mut core::ffi::c_void, nindex: i32, struri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + unsafe extern "system" fn setURI(this: *mut core::ffi::c_void, nindex: i32, struri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::setURI(this, core::mem::transmute_copy(&nindex), core::mem::transmute(&struri)).into() } - unsafe extern "system" fn setValue(this: *mut core::ffi::c_void, nindex: i32, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXAttributes_Impl, - { + unsafe extern "system" fn setValue(this: *mut core::ffi::c_void, nindex: i32, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXAttributes_Impl::setValue(this, core::mem::transmute_copy(&nindex), core::mem::transmute(&strvalue)).into() } @@ -117,7 +81,7 @@ impl IMXAttributes_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMXNamespaceManager_Impl: Sized { +pub trait IMXNamespaceManager_Impl: Sized + windows_core::IUnknownImpl { fn putAllowOverride(&self, foverride: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; fn getAllowOverride(&self) -> windows_core::Result; fn reset(&self) -> windows_core::Result<()>; @@ -133,21 +97,12 @@ pub trait IMXNamespaceManager_Impl: Sized { impl windows_core::RuntimeName for IMXNamespaceManager {} #[cfg(feature = "Win32_System_Com")] impl IMXNamespaceManager_Vtbl { - pub const fn new() -> IMXNamespaceManager_Vtbl - where - Identity: IMXNamespaceManager_Impl, - { - unsafe extern "system" fn putAllowOverride(this: *mut core::ffi::c_void, foverride: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXNamespaceManager_Impl, - { + pub const fn new() -> IMXNamespaceManager_Vtbl { + unsafe extern "system" fn putAllowOverride(this: *mut core::ffi::c_void, foverride: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXNamespaceManager_Impl::putAllowOverride(this, core::mem::transmute_copy(&foverride)).into() } - unsafe extern "system" fn getAllowOverride(this: *mut core::ffi::c_void, foverride: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXNamespaceManager_Impl, - { + unsafe extern "system" fn getAllowOverride(this: *mut core::ffi::c_void, foverride: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXNamespaceManager_Impl::getAllowOverride(this) { Ok(ok__) => { @@ -157,59 +112,35 @@ impl IMXNamespaceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXNamespaceManager_Impl, - { + unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXNamespaceManager_Impl::reset(this).into() } - unsafe extern "system" fn pushContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXNamespaceManager_Impl, - { + unsafe extern "system" fn pushContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXNamespaceManager_Impl::pushContext(this).into() } - unsafe extern "system" fn pushNodeContext(this: *mut core::ffi::c_void, contextnode: *mut core::ffi::c_void, fdeep: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXNamespaceManager_Impl, - { + unsafe extern "system" fn pushNodeContext(this: *mut core::ffi::c_void, contextnode: *mut core::ffi::c_void, fdeep: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXNamespaceManager_Impl::pushNodeContext(this, windows_core::from_raw_borrowed(&contextnode), core::mem::transmute_copy(&fdeep)).into() } - unsafe extern "system" fn popContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXNamespaceManager_Impl, - { + unsafe extern "system" fn popContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXNamespaceManager_Impl::popContext(this).into() } - unsafe extern "system" fn declarePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCWSTR, namespaceuri: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMXNamespaceManager_Impl, - { + unsafe extern "system" fn declarePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCWSTR, namespaceuri: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXNamespaceManager_Impl::declarePrefix(this, core::mem::transmute(&prefix), core::mem::transmute(&namespaceuri)).into() } - unsafe extern "system" fn getDeclaredPrefix(this: *mut core::ffi::c_void, nindex: i32, pwchprefix: windows_core::PWSTR, pcchprefix: *mut i32) -> windows_core::HRESULT - where - Identity: IMXNamespaceManager_Impl, - { + unsafe extern "system" fn getDeclaredPrefix(this: *mut core::ffi::c_void, nindex: i32, pwchprefix: windows_core::PWSTR, pcchprefix: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXNamespaceManager_Impl::getDeclaredPrefix(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&pwchprefix), core::mem::transmute_copy(&pcchprefix)).into() } - unsafe extern "system" fn getPrefix(this: *mut core::ffi::c_void, pwsznamespaceuri: windows_core::PCWSTR, nindex: i32, pwchprefix: windows_core::PWSTR, pcchprefix: *mut i32) -> windows_core::HRESULT - where - Identity: IMXNamespaceManager_Impl, - { + unsafe extern "system" fn getPrefix(this: *mut core::ffi::c_void, pwsznamespaceuri: windows_core::PCWSTR, nindex: i32, pwchprefix: windows_core::PWSTR, pcchprefix: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXNamespaceManager_Impl::getPrefix(this, core::mem::transmute(&pwsznamespaceuri), core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&pwchprefix), core::mem::transmute_copy(&pcchprefix)).into() } - unsafe extern "system" fn getURI(this: *mut core::ffi::c_void, pwchprefix: windows_core::PCWSTR, pcontextnode: *mut core::ffi::c_void, pwchuri: windows_core::PWSTR, pcchuri: *mut i32) -> windows_core::HRESULT - where - Identity: IMXNamespaceManager_Impl, - { + unsafe extern "system" fn getURI(this: *mut core::ffi::c_void, pwchprefix: windows_core::PCWSTR, pcontextnode: *mut core::ffi::c_void, pwchuri: windows_core::PWSTR, pcchuri: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXNamespaceManager_Impl::getURI(this, core::mem::transmute(&pwchprefix), windows_core::from_raw_borrowed(&pcontextnode), core::mem::transmute_copy(&pwchuri), core::mem::transmute_copy(&pcchuri)).into() } @@ -241,14 +172,8 @@ pub trait IMXNamespacePrefixes_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for IMXNamespacePrefixes {} #[cfg(feature = "Win32_System_Com")] impl IMXNamespacePrefixes_Vtbl { - pub const fn new() -> IMXNamespacePrefixes_Vtbl - where - Identity: IMXNamespacePrefixes_Impl, - { - unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, prefix: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXNamespacePrefixes_Impl, - { + pub const fn new() -> IMXNamespacePrefixes_Vtbl { + unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, prefix: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXNamespacePrefixes_Impl::get_item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -258,10 +183,7 @@ impl IMXNamespacePrefixes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT - where - Identity: IMXNamespacePrefixes_Impl, - { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXNamespacePrefixes_Impl::length(this) { Ok(ok__) => { @@ -271,10 +193,7 @@ impl IMXNamespacePrefixes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXNamespacePrefixes_Impl, - { + unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXNamespacePrefixes_Impl::_newEnum(this) { Ok(ok__) => { @@ -305,28 +224,16 @@ pub trait IMXReaderControl_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for IMXReaderControl {} #[cfg(feature = "Win32_System_Com")] impl IMXReaderControl_Vtbl { - pub const fn new() -> IMXReaderControl_Vtbl - where - Identity: IMXReaderControl_Impl, - { - unsafe extern "system" fn abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXReaderControl_Impl, - { + pub const fn new() -> IMXReaderControl_Vtbl { + unsafe extern "system" fn abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXReaderControl_Impl::abort(this).into() } - unsafe extern "system" fn resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXReaderControl_Impl, - { + unsafe extern "system" fn resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXReaderControl_Impl::resume(this).into() } - unsafe extern "system" fn suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXReaderControl_Impl, - { + unsafe extern "system" fn suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXReaderControl_Impl::suspend(this).into() } @@ -349,14 +256,8 @@ pub trait IMXSchemaDeclHandler_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for IMXSchemaDeclHandler {} #[cfg(feature = "Win32_System_Com")] impl IMXSchemaDeclHandler_Vtbl { - pub const fn new() -> IMXSchemaDeclHandler_Vtbl - where - Identity: IMXSchemaDeclHandler_Impl, - { - unsafe extern "system" fn schemaElementDecl(this: *mut core::ffi::c_void, oschemaelement: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXSchemaDeclHandler_Impl, - { + pub const fn new() -> IMXSchemaDeclHandler_Vtbl { + unsafe extern "system" fn schemaElementDecl(this: *mut core::ffi::c_void, oschemaelement: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXSchemaDeclHandler_Impl::schemaElementDecl(this, windows_core::from_raw_borrowed(&oschemaelement)).into() } @@ -390,21 +291,12 @@ pub trait IMXWriter_Impl: Sized + super::super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IMXWriter {} #[cfg(feature = "Win32_System_Com")] impl IMXWriter_Vtbl { - pub const fn new() -> IMXWriter_Vtbl - where - Identity: IMXWriter_Impl, - { - unsafe extern "system" fn Setoutput(this: *mut core::ffi::c_void, vardestination: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + pub const fn new() -> IMXWriter_Vtbl { + unsafe extern "system" fn Setoutput(this: *mut core::ffi::c_void, vardestination: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXWriter_Impl::Setoutput(this, core::mem::transmute(&vardestination)).into() } - unsafe extern "system" fn output(this: *mut core::ffi::c_void, vardestination: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn output(this: *mut core::ffi::c_void, vardestination: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXWriter_Impl::output(this) { Ok(ok__) => { @@ -414,17 +306,11 @@ impl IMXWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setencoding(this: *mut core::ffi::c_void, strencoding: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn Setencoding(this: *mut core::ffi::c_void, strencoding: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXWriter_Impl::Setencoding(this, core::mem::transmute(&strencoding)).into() } - unsafe extern "system" fn encoding(this: *mut core::ffi::c_void, strencoding: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn encoding(this: *mut core::ffi::c_void, strencoding: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXWriter_Impl::encoding(this) { Ok(ok__) => { @@ -434,17 +320,11 @@ impl IMXWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetbyteOrderMark(this: *mut core::ffi::c_void, fwritebyteordermark: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn SetbyteOrderMark(this: *mut core::ffi::c_void, fwritebyteordermark: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXWriter_Impl::SetbyteOrderMark(this, core::mem::transmute_copy(&fwritebyteordermark)).into() } - unsafe extern "system" fn byteOrderMark(this: *mut core::ffi::c_void, fwritebyteordermark: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn byteOrderMark(this: *mut core::ffi::c_void, fwritebyteordermark: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXWriter_Impl::byteOrderMark(this) { Ok(ok__) => { @@ -454,17 +334,11 @@ impl IMXWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setindent(this: *mut core::ffi::c_void, findentmode: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn Setindent(this: *mut core::ffi::c_void, findentmode: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXWriter_Impl::Setindent(this, core::mem::transmute_copy(&findentmode)).into() } - unsafe extern "system" fn indent(this: *mut core::ffi::c_void, findentmode: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn indent(this: *mut core::ffi::c_void, findentmode: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXWriter_Impl::indent(this) { Ok(ok__) => { @@ -474,17 +348,11 @@ impl IMXWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setstandalone(this: *mut core::ffi::c_void, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn Setstandalone(this: *mut core::ffi::c_void, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXWriter_Impl::Setstandalone(this, core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn standalone(this: *mut core::ffi::c_void, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn standalone(this: *mut core::ffi::c_void, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXWriter_Impl::standalone(this) { Ok(ok__) => { @@ -494,17 +362,11 @@ impl IMXWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetomitXMLDeclaration(this: *mut core::ffi::c_void, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn SetomitXMLDeclaration(this: *mut core::ffi::c_void, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXWriter_Impl::SetomitXMLDeclaration(this, core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn omitXMLDeclaration(this: *mut core::ffi::c_void, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn omitXMLDeclaration(this: *mut core::ffi::c_void, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXWriter_Impl::omitXMLDeclaration(this) { Ok(ok__) => { @@ -514,17 +376,11 @@ impl IMXWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setversion(this: *mut core::ffi::c_void, strversion: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn Setversion(this: *mut core::ffi::c_void, strversion: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXWriter_Impl::Setversion(this, core::mem::transmute(&strversion)).into() } - unsafe extern "system" fn version(this: *mut core::ffi::c_void, strversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn version(this: *mut core::ffi::c_void, strversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXWriter_Impl::version(this) { Ok(ok__) => { @@ -534,17 +390,11 @@ impl IMXWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetdisableOutputEscaping(this: *mut core::ffi::c_void, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn SetdisableOutputEscaping(this: *mut core::ffi::c_void, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXWriter_Impl::SetdisableOutputEscaping(this, core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn disableOutputEscaping(this: *mut core::ffi::c_void, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn disableOutputEscaping(this: *mut core::ffi::c_void, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXWriter_Impl::disableOutputEscaping(this) { Ok(ok__) => { @@ -554,10 +404,7 @@ impl IMXWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXWriter_Impl, - { + unsafe extern "system" fn flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXWriter_Impl::flush(this).into() } @@ -605,14 +452,8 @@ pub trait IMXXMLFilter_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for IMXXMLFilter {} #[cfg(feature = "Win32_System_Com")] impl IMXXMLFilter_Vtbl { - pub const fn new() -> IMXXMLFilter_Vtbl - where - Identity: IMXXMLFilter_Impl, - { - unsafe extern "system" fn getFeature(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + pub const fn new() -> IMXXMLFilter_Vtbl { + unsafe extern "system" fn getFeature(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXXMLFilter_Impl::getFeature(this, core::mem::transmute(&strname)) { Ok(ok__) => { @@ -622,17 +463,11 @@ impl IMXXMLFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putFeature(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn putFeature(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXXMLFilter_Impl::putFeature(this, core::mem::transmute(&strname), core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn getProperty(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn getProperty(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXXMLFilter_Impl::getProperty(this, core::mem::transmute(&strname)) { Ok(ok__) => { @@ -642,17 +477,11 @@ impl IMXXMLFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putProperty(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn putProperty(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXXMLFilter_Impl::putProperty(this, core::mem::transmute(&strname), core::mem::transmute(&varvalue)).into() } - unsafe extern "system" fn entityResolver(this: *mut core::ffi::c_void, oresolver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn entityResolver(this: *mut core::ffi::c_void, oresolver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXXMLFilter_Impl::entityResolver(this) { Ok(ok__) => { @@ -662,17 +491,11 @@ impl IMXXMLFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_entityResolver(this: *mut core::ffi::c_void, oresolver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn putref_entityResolver(this: *mut core::ffi::c_void, oresolver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXXMLFilter_Impl::putref_entityResolver(this, windows_core::from_raw_borrowed(&oresolver)).into() } - unsafe extern "system" fn contentHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn contentHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXXMLFilter_Impl::contentHandler(this) { Ok(ok__) => { @@ -682,17 +505,11 @@ impl IMXXMLFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_contentHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn putref_contentHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXXMLFilter_Impl::putref_contentHandler(this, windows_core::from_raw_borrowed(&ohandler)).into() } - unsafe extern "system" fn dtdHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn dtdHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXXMLFilter_Impl::dtdHandler(this) { Ok(ok__) => { @@ -702,17 +519,11 @@ impl IMXXMLFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_dtdHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn putref_dtdHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXXMLFilter_Impl::putref_dtdHandler(this, windows_core::from_raw_borrowed(&ohandler)).into() } - unsafe extern "system" fn errorHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn errorHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMXXMLFilter_Impl::errorHandler(this) { Ok(ok__) => { @@ -722,10 +533,7 @@ impl IMXXMLFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_errorHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMXXMLFilter_Impl, - { + unsafe extern "system" fn putref_errorHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMXXMLFilter_Impl::putref_errorHandler(this, windows_core::from_raw_borrowed(&ohandler)).into() } @@ -749,7 +557,7 @@ impl IMXXMLFilter_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISAXAttributes_Impl: Sized { +pub trait ISAXAttributes_Impl: Sized + windows_core::IUnknownImpl { fn getLength(&self) -> windows_core::Result; fn getURI(&self, nindex: i32, ppwchuri: *mut *mut u16, pcchuri: *mut i32) -> windows_core::Result<()>; fn getLocalName(&self, nindex: i32, ppwchlocalname: *mut *mut u16, pcchlocalname: *mut i32) -> windows_core::Result<()>; @@ -766,14 +574,8 @@ pub trait ISAXAttributes_Impl: Sized { } impl windows_core::RuntimeName for ISAXAttributes {} impl ISAXAttributes_Vtbl { - pub const fn new() -> ISAXAttributes_Vtbl - where - Identity: ISAXAttributes_Impl, - { - unsafe extern "system" fn getLength(this: *mut core::ffi::c_void, pnlength: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + pub const fn new() -> ISAXAttributes_Vtbl { + unsafe extern "system" fn getLength(this: *mut core::ffi::c_void, pnlength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXAttributes_Impl::getLength(this) { Ok(ok__) => { @@ -783,38 +585,23 @@ impl ISAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getURI(this: *mut core::ffi::c_void, nindex: i32, ppwchuri: *mut *mut u16, pcchuri: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getURI(this: *mut core::ffi::c_void, nindex: i32, ppwchuri: *mut *mut u16, pcchuri: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXAttributes_Impl::getURI(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&ppwchuri), core::mem::transmute_copy(&pcchuri)).into() } - unsafe extern "system" fn getLocalName(this: *mut core::ffi::c_void, nindex: i32, ppwchlocalname: *mut *mut u16, pcchlocalname: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getLocalName(this: *mut core::ffi::c_void, nindex: i32, ppwchlocalname: *mut *mut u16, pcchlocalname: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXAttributes_Impl::getLocalName(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&ppwchlocalname), core::mem::transmute_copy(&pcchlocalname)).into() } - unsafe extern "system" fn getQName(this: *mut core::ffi::c_void, nindex: i32, ppwchqname: *mut *mut u16, pcchqname: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getQName(this: *mut core::ffi::c_void, nindex: i32, ppwchqname: *mut *mut u16, pcchqname: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXAttributes_Impl::getQName(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&ppwchqname), core::mem::transmute_copy(&pcchqname)).into() } - unsafe extern "system" fn getName(this: *mut core::ffi::c_void, nindex: i32, ppwchuri: *mut *mut u16, pcchuri: *mut i32, ppwchlocalname: *mut *mut u16, pcchlocalname: *mut i32, ppwchqname: *mut *mut u16, pcchqname: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getName(this: *mut core::ffi::c_void, nindex: i32, ppwchuri: *mut *mut u16, pcchuri: *mut i32, ppwchlocalname: *mut *mut u16, pcchlocalname: *mut i32, ppwchqname: *mut *mut u16, pcchqname: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXAttributes_Impl::getName(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&ppwchuri), core::mem::transmute_copy(&pcchuri), core::mem::transmute_copy(&ppwchlocalname), core::mem::transmute_copy(&pcchlocalname), core::mem::transmute_copy(&ppwchqname), core::mem::transmute_copy(&pcchqname)).into() } - unsafe extern "system" fn getIndexFromName(this: *mut core::ffi::c_void, pwchuri: windows_core::PCWSTR, cchuri: i32, pwchlocalname: windows_core::PCWSTR, cchlocalname: i32, pnindex: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getIndexFromName(this: *mut core::ffi::c_void, pwchuri: windows_core::PCWSTR, cchuri: i32, pwchlocalname: windows_core::PCWSTR, cchlocalname: i32, pnindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXAttributes_Impl::getIndexFromName(this, core::mem::transmute(&pwchuri), core::mem::transmute_copy(&cchuri), core::mem::transmute(&pwchlocalname), core::mem::transmute_copy(&cchlocalname)) { Ok(ok__) => { @@ -824,10 +611,7 @@ impl ISAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getIndexFromQName(this: *mut core::ffi::c_void, pwchqname: windows_core::PCWSTR, cchqname: i32, pnindex: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getIndexFromQName(this: *mut core::ffi::c_void, pwchqname: windows_core::PCWSTR, cchqname: i32, pnindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXAttributes_Impl::getIndexFromQName(this, core::mem::transmute(&pwchqname), core::mem::transmute_copy(&cchqname)) { Ok(ok__) => { @@ -837,45 +621,27 @@ impl ISAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getType(this: *mut core::ffi::c_void, nindex: i32, ppwchtype: *mut *mut u16, pcchtype: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getType(this: *mut core::ffi::c_void, nindex: i32, ppwchtype: *mut *mut u16, pcchtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXAttributes_Impl::getType(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&ppwchtype), core::mem::transmute_copy(&pcchtype)).into() } - unsafe extern "system" fn getTypeFromName(this: *mut core::ffi::c_void, pwchuri: windows_core::PCWSTR, cchuri: i32, pwchlocalname: windows_core::PCWSTR, cchlocalname: i32, ppwchtype: *mut *mut u16, pcchtype: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getTypeFromName(this: *mut core::ffi::c_void, pwchuri: windows_core::PCWSTR, cchuri: i32, pwchlocalname: windows_core::PCWSTR, cchlocalname: i32, ppwchtype: *mut *mut u16, pcchtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXAttributes_Impl::getTypeFromName(this, core::mem::transmute(&pwchuri), core::mem::transmute_copy(&cchuri), core::mem::transmute(&pwchlocalname), core::mem::transmute_copy(&cchlocalname), core::mem::transmute_copy(&ppwchtype), core::mem::transmute_copy(&pcchtype)).into() } - unsafe extern "system" fn getTypeFromQName(this: *mut core::ffi::c_void, pwchqname: windows_core::PCWSTR, cchqname: i32, ppwchtype: *mut *mut u16, pcchtype: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getTypeFromQName(this: *mut core::ffi::c_void, pwchqname: windows_core::PCWSTR, cchqname: i32, ppwchtype: *mut *mut u16, pcchtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXAttributes_Impl::getTypeFromQName(this, core::mem::transmute(&pwchqname), core::mem::transmute_copy(&cchqname), core::mem::transmute_copy(&ppwchtype), core::mem::transmute_copy(&pcchtype)).into() } - unsafe extern "system" fn getValue(this: *mut core::ffi::c_void, nindex: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getValue(this: *mut core::ffi::c_void, nindex: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXAttributes_Impl::getValue(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&ppwchvalue), core::mem::transmute_copy(&pcchvalue)).into() } - unsafe extern "system" fn getValueFromName(this: *mut core::ffi::c_void, pwchuri: windows_core::PCWSTR, cchuri: i32, pwchlocalname: windows_core::PCWSTR, cchlocalname: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getValueFromName(this: *mut core::ffi::c_void, pwchuri: windows_core::PCWSTR, cchuri: i32, pwchlocalname: windows_core::PCWSTR, cchlocalname: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXAttributes_Impl::getValueFromName(this, core::mem::transmute(&pwchuri), core::mem::transmute_copy(&cchuri), core::mem::transmute(&pwchlocalname), core::mem::transmute_copy(&cchlocalname), core::mem::transmute_copy(&ppwchvalue), core::mem::transmute_copy(&pcchvalue)).into() } - unsafe extern "system" fn getValueFromQName(this: *mut core::ffi::c_void, pwchqname: windows_core::PCWSTR, cchqname: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXAttributes_Impl, - { + unsafe extern "system" fn getValueFromQName(this: *mut core::ffi::c_void, pwchqname: windows_core::PCWSTR, cchqname: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXAttributes_Impl::getValueFromQName(this, core::mem::transmute(&pwchqname), core::mem::transmute_copy(&cchqname), core::mem::transmute_copy(&ppwchvalue), core::mem::transmute_copy(&pcchvalue)).into() } @@ -900,7 +666,7 @@ impl ISAXAttributes_Vtbl { iid == &::IID } } -pub trait ISAXContentHandler_Impl: Sized { +pub trait ISAXContentHandler_Impl: Sized + windows_core::IUnknownImpl { fn putDocumentLocator(&self, plocator: Option<&ISAXLocator>) -> windows_core::Result<()>; fn startDocument(&self) -> windows_core::Result<()>; fn endDocument(&self) -> windows_core::Result<()>; @@ -915,84 +681,48 @@ pub trait ISAXContentHandler_Impl: Sized { } impl windows_core::RuntimeName for ISAXContentHandler {} impl ISAXContentHandler_Vtbl { - pub const fn new() -> ISAXContentHandler_Vtbl - where - Identity: ISAXContentHandler_Impl, - { - unsafe extern "system" fn putDocumentLocator(this: *mut core::ffi::c_void, plocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + pub const fn new() -> ISAXContentHandler_Vtbl { + unsafe extern "system" fn putDocumentLocator(this: *mut core::ffi::c_void, plocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::putDocumentLocator(this, windows_core::from_raw_borrowed(&plocator)).into() } - unsafe extern "system" fn startDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + unsafe extern "system" fn startDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::startDocument(this).into() } - unsafe extern "system" fn endDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + unsafe extern "system" fn endDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::endDocument(this).into() } - unsafe extern "system" fn startPrefixMapping(this: *mut core::ffi::c_void, pwchprefix: windows_core::PCWSTR, cchprefix: i32, pwchuri: windows_core::PCWSTR, cchuri: i32) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + unsafe extern "system" fn startPrefixMapping(this: *mut core::ffi::c_void, pwchprefix: windows_core::PCWSTR, cchprefix: i32, pwchuri: windows_core::PCWSTR, cchuri: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::startPrefixMapping(this, core::mem::transmute(&pwchprefix), core::mem::transmute_copy(&cchprefix), core::mem::transmute(&pwchuri), core::mem::transmute_copy(&cchuri)).into() } - unsafe extern "system" fn endPrefixMapping(this: *mut core::ffi::c_void, pwchprefix: windows_core::PCWSTR, cchprefix: i32) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + unsafe extern "system" fn endPrefixMapping(this: *mut core::ffi::c_void, pwchprefix: windows_core::PCWSTR, cchprefix: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::endPrefixMapping(this, core::mem::transmute(&pwchprefix), core::mem::transmute_copy(&cchprefix)).into() } - unsafe extern "system" fn startElement(this: *mut core::ffi::c_void, pwchnamespaceuri: windows_core::PCWSTR, cchnamespaceuri: i32, pwchlocalname: windows_core::PCWSTR, cchlocalname: i32, pwchqname: windows_core::PCWSTR, cchqname: i32, pattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + unsafe extern "system" fn startElement(this: *mut core::ffi::c_void, pwchnamespaceuri: windows_core::PCWSTR, cchnamespaceuri: i32, pwchlocalname: windows_core::PCWSTR, cchlocalname: i32, pwchqname: windows_core::PCWSTR, cchqname: i32, pattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::startElement(this, core::mem::transmute(&pwchnamespaceuri), core::mem::transmute_copy(&cchnamespaceuri), core::mem::transmute(&pwchlocalname), core::mem::transmute_copy(&cchlocalname), core::mem::transmute(&pwchqname), core::mem::transmute_copy(&cchqname), windows_core::from_raw_borrowed(&pattributes)).into() } - unsafe extern "system" fn endElement(this: *mut core::ffi::c_void, pwchnamespaceuri: windows_core::PCWSTR, cchnamespaceuri: i32, pwchlocalname: windows_core::PCWSTR, cchlocalname: i32, pwchqname: windows_core::PCWSTR, cchqname: i32) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + unsafe extern "system" fn endElement(this: *mut core::ffi::c_void, pwchnamespaceuri: windows_core::PCWSTR, cchnamespaceuri: i32, pwchlocalname: windows_core::PCWSTR, cchlocalname: i32, pwchqname: windows_core::PCWSTR, cchqname: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::endElement(this, core::mem::transmute(&pwchnamespaceuri), core::mem::transmute_copy(&cchnamespaceuri), core::mem::transmute(&pwchlocalname), core::mem::transmute_copy(&cchlocalname), core::mem::transmute(&pwchqname), core::mem::transmute_copy(&cchqname)).into() } - unsafe extern "system" fn characters(this: *mut core::ffi::c_void, pwchchars: windows_core::PCWSTR, cchchars: i32) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + unsafe extern "system" fn characters(this: *mut core::ffi::c_void, pwchchars: windows_core::PCWSTR, cchchars: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::characters(this, core::mem::transmute(&pwchchars), core::mem::transmute_copy(&cchchars)).into() } - unsafe extern "system" fn ignorableWhitespace(this: *mut core::ffi::c_void, pwchchars: windows_core::PCWSTR, cchchars: i32) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + unsafe extern "system" fn ignorableWhitespace(this: *mut core::ffi::c_void, pwchchars: windows_core::PCWSTR, cchchars: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::ignorableWhitespace(this, core::mem::transmute(&pwchchars), core::mem::transmute_copy(&cchchars)).into() } - unsafe extern "system" fn processingInstruction(this: *mut core::ffi::c_void, pwchtarget: windows_core::PCWSTR, cchtarget: i32, pwchdata: windows_core::PCWSTR, cchdata: i32) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + unsafe extern "system" fn processingInstruction(this: *mut core::ffi::c_void, pwchtarget: windows_core::PCWSTR, cchtarget: i32, pwchdata: windows_core::PCWSTR, cchdata: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::processingInstruction(this, core::mem::transmute(&pwchtarget), core::mem::transmute_copy(&cchtarget), core::mem::transmute(&pwchdata), core::mem::transmute_copy(&cchdata)).into() } - unsafe extern "system" fn skippedEntity(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32) -> windows_core::HRESULT - where - Identity: ISAXContentHandler_Impl, - { + unsafe extern "system" fn skippedEntity(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXContentHandler_Impl::skippedEntity(this, core::mem::transmute(&pwchname), core::mem::transmute_copy(&cchname)).into() } @@ -1015,27 +745,18 @@ impl ISAXContentHandler_Vtbl { iid == &::IID } } -pub trait ISAXDTDHandler_Impl: Sized { +pub trait ISAXDTDHandler_Impl: Sized + windows_core::IUnknownImpl { fn notationDecl(&self, pwchname: &windows_core::PCWSTR, cchname: i32, pwchpublicid: &windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: &windows_core::PCWSTR, cchsystemid: i32) -> windows_core::Result<()>; fn unparsedEntityDecl(&self, pwchname: &windows_core::PCWSTR, cchname: i32, pwchpublicid: &windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: &windows_core::PCWSTR, cchsystemid: i32, pwchnotationname: &windows_core::PCWSTR, cchnotationname: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISAXDTDHandler {} impl ISAXDTDHandler_Vtbl { - pub const fn new() -> ISAXDTDHandler_Vtbl - where - Identity: ISAXDTDHandler_Impl, - { - unsafe extern "system" fn notationDecl(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchpublicid: windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: windows_core::PCWSTR, cchsystemid: i32) -> windows_core::HRESULT - where - Identity: ISAXDTDHandler_Impl, - { + pub const fn new() -> ISAXDTDHandler_Vtbl { + unsafe extern "system" fn notationDecl(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchpublicid: windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: windows_core::PCWSTR, cchsystemid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXDTDHandler_Impl::notationDecl(this, core::mem::transmute(&pwchname), core::mem::transmute_copy(&cchname), core::mem::transmute(&pwchpublicid), core::mem::transmute_copy(&cchpublicid), core::mem::transmute(&pwchsystemid), core::mem::transmute_copy(&cchsystemid)).into() } - unsafe extern "system" fn unparsedEntityDecl(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchpublicid: windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: windows_core::PCWSTR, cchsystemid: i32, pwchnotationname: windows_core::PCWSTR, cchnotationname: i32) -> windows_core::HRESULT - where - Identity: ISAXDTDHandler_Impl, - { + unsafe extern "system" fn unparsedEntityDecl(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchpublicid: windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: windows_core::PCWSTR, cchsystemid: i32, pwchnotationname: windows_core::PCWSTR, cchnotationname: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXDTDHandler_Impl::unparsedEntityDecl(this, core::mem::transmute(&pwchname), core::mem::transmute_copy(&cchname), core::mem::transmute(&pwchpublicid), core::mem::transmute_copy(&cchpublicid), core::mem::transmute(&pwchsystemid), core::mem::transmute_copy(&cchsystemid), core::mem::transmute(&pwchnotationname), core::mem::transmute_copy(&cchnotationname)).into() } @@ -1049,7 +770,7 @@ impl ISAXDTDHandler_Vtbl { iid == &::IID } } -pub trait ISAXDeclHandler_Impl: Sized { +pub trait ISAXDeclHandler_Impl: Sized + windows_core::IUnknownImpl { fn elementDecl(&self, pwchname: &windows_core::PCWSTR, cchname: i32, pwchmodel: &windows_core::PCWSTR, cchmodel: i32) -> windows_core::Result<()>; fn attributeDecl(&self, pwchelementname: &windows_core::PCWSTR, cchelementname: i32, pwchattributename: &windows_core::PCWSTR, cchattributename: i32, pwchtype: &windows_core::PCWSTR, cchtype: i32, pwchvaluedefault: &windows_core::PCWSTR, cchvaluedefault: i32, pwchvalue: &windows_core::PCWSTR, cchvalue: i32) -> windows_core::Result<()>; fn internalEntityDecl(&self, pwchname: &windows_core::PCWSTR, cchname: i32, pwchvalue: &windows_core::PCWSTR, cchvalue: i32) -> windows_core::Result<()>; @@ -1057,35 +778,20 @@ pub trait ISAXDeclHandler_Impl: Sized { } impl windows_core::RuntimeName for ISAXDeclHandler {} impl ISAXDeclHandler_Vtbl { - pub const fn new() -> ISAXDeclHandler_Vtbl - where - Identity: ISAXDeclHandler_Impl, - { - unsafe extern "system" fn elementDecl(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchmodel: windows_core::PCWSTR, cchmodel: i32) -> windows_core::HRESULT - where - Identity: ISAXDeclHandler_Impl, - { + pub const fn new() -> ISAXDeclHandler_Vtbl { + unsafe extern "system" fn elementDecl(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchmodel: windows_core::PCWSTR, cchmodel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXDeclHandler_Impl::elementDecl(this, core::mem::transmute(&pwchname), core::mem::transmute_copy(&cchname), core::mem::transmute(&pwchmodel), core::mem::transmute_copy(&cchmodel)).into() } - unsafe extern "system" fn attributeDecl(this: *mut core::ffi::c_void, pwchelementname: windows_core::PCWSTR, cchelementname: i32, pwchattributename: windows_core::PCWSTR, cchattributename: i32, pwchtype: windows_core::PCWSTR, cchtype: i32, pwchvaluedefault: windows_core::PCWSTR, cchvaluedefault: i32, pwchvalue: windows_core::PCWSTR, cchvalue: i32) -> windows_core::HRESULT - where - Identity: ISAXDeclHandler_Impl, - { + unsafe extern "system" fn attributeDecl(this: *mut core::ffi::c_void, pwchelementname: windows_core::PCWSTR, cchelementname: i32, pwchattributename: windows_core::PCWSTR, cchattributename: i32, pwchtype: windows_core::PCWSTR, cchtype: i32, pwchvaluedefault: windows_core::PCWSTR, cchvaluedefault: i32, pwchvalue: windows_core::PCWSTR, cchvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXDeclHandler_Impl::attributeDecl(this, core::mem::transmute(&pwchelementname), core::mem::transmute_copy(&cchelementname), core::mem::transmute(&pwchattributename), core::mem::transmute_copy(&cchattributename), core::mem::transmute(&pwchtype), core::mem::transmute_copy(&cchtype), core::mem::transmute(&pwchvaluedefault), core::mem::transmute_copy(&cchvaluedefault), core::mem::transmute(&pwchvalue), core::mem::transmute_copy(&cchvalue)).into() } - unsafe extern "system" fn internalEntityDecl(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchvalue: windows_core::PCWSTR, cchvalue: i32) -> windows_core::HRESULT - where - Identity: ISAXDeclHandler_Impl, - { + unsafe extern "system" fn internalEntityDecl(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchvalue: windows_core::PCWSTR, cchvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXDeclHandler_Impl::internalEntityDecl(this, core::mem::transmute(&pwchname), core::mem::transmute_copy(&cchname), core::mem::transmute(&pwchvalue), core::mem::transmute_copy(&cchvalue)).into() } - unsafe extern "system" fn externalEntityDecl(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchpublicid: windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: windows_core::PCWSTR, cchsystemid: i32) -> windows_core::HRESULT - where - Identity: ISAXDeclHandler_Impl, - { + unsafe extern "system" fn externalEntityDecl(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchpublicid: windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: windows_core::PCWSTR, cchsystemid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXDeclHandler_Impl::externalEntityDecl(this, core::mem::transmute(&pwchname), core::mem::transmute_copy(&cchname), core::mem::transmute(&pwchpublicid), core::mem::transmute_copy(&cchpublicid), core::mem::transmute(&pwchsystemid), core::mem::transmute_copy(&cchsystemid)).into() } @@ -1101,19 +807,13 @@ impl ISAXDeclHandler_Vtbl { iid == &::IID } } -pub trait ISAXEntityResolver_Impl: Sized { +pub trait ISAXEntityResolver_Impl: Sized + windows_core::IUnknownImpl { fn resolveEntity(&self, pwchpublicid: &windows_core::PCWSTR, pwchsystemid: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for ISAXEntityResolver {} impl ISAXEntityResolver_Vtbl { - pub const fn new() -> ISAXEntityResolver_Vtbl - where - Identity: ISAXEntityResolver_Impl, - { - unsafe extern "system" fn resolveEntity(this: *mut core::ffi::c_void, pwchpublicid: windows_core::PCWSTR, pwchsystemid: windows_core::PCWSTR, pvarinput: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISAXEntityResolver_Impl, - { + pub const fn new() -> ISAXEntityResolver_Vtbl { + unsafe extern "system" fn resolveEntity(this: *mut core::ffi::c_void, pwchpublicid: windows_core::PCWSTR, pwchsystemid: windows_core::PCWSTR, pvarinput: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXEntityResolver_Impl::resolveEntity(this, core::mem::transmute(&pwchpublicid), core::mem::transmute(&pwchsystemid)) { Ok(ok__) => { @@ -1129,35 +829,23 @@ impl ISAXEntityResolver_Vtbl { iid == &::IID } } -pub trait ISAXErrorHandler_Impl: Sized { +pub trait ISAXErrorHandler_Impl: Sized + windows_core::IUnknownImpl { fn error(&self, plocator: Option<&ISAXLocator>, pwcherrormessage: &windows_core::PCWSTR, hrerrorcode: windows_core::HRESULT) -> windows_core::Result<()>; fn fatalError(&self, plocator: Option<&ISAXLocator>, pwcherrormessage: &windows_core::PCWSTR, hrerrorcode: windows_core::HRESULT) -> windows_core::Result<()>; fn ignorableWarning(&self, plocator: Option<&ISAXLocator>, pwcherrormessage: &windows_core::PCWSTR, hrerrorcode: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISAXErrorHandler {} impl ISAXErrorHandler_Vtbl { - pub const fn new() -> ISAXErrorHandler_Vtbl - where - Identity: ISAXErrorHandler_Impl, - { - unsafe extern "system" fn error(this: *mut core::ffi::c_void, plocator: *mut core::ffi::c_void, pwcherrormessage: windows_core::PCWSTR, hrerrorcode: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISAXErrorHandler_Impl, - { + pub const fn new() -> ISAXErrorHandler_Vtbl { + unsafe extern "system" fn error(this: *mut core::ffi::c_void, plocator: *mut core::ffi::c_void, pwcherrormessage: windows_core::PCWSTR, hrerrorcode: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXErrorHandler_Impl::error(this, windows_core::from_raw_borrowed(&plocator), core::mem::transmute(&pwcherrormessage), core::mem::transmute_copy(&hrerrorcode)).into() } - unsafe extern "system" fn fatalError(this: *mut core::ffi::c_void, plocator: *mut core::ffi::c_void, pwcherrormessage: windows_core::PCWSTR, hrerrorcode: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISAXErrorHandler_Impl, - { + unsafe extern "system" fn fatalError(this: *mut core::ffi::c_void, plocator: *mut core::ffi::c_void, pwcherrormessage: windows_core::PCWSTR, hrerrorcode: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXErrorHandler_Impl::fatalError(this, windows_core::from_raw_borrowed(&plocator), core::mem::transmute(&pwcherrormessage), core::mem::transmute_copy(&hrerrorcode)).into() } - unsafe extern "system" fn ignorableWarning(this: *mut core::ffi::c_void, plocator: *mut core::ffi::c_void, pwcherrormessage: windows_core::PCWSTR, hrerrorcode: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISAXErrorHandler_Impl, - { + unsafe extern "system" fn ignorableWarning(this: *mut core::ffi::c_void, plocator: *mut core::ffi::c_void, pwcherrormessage: windows_core::PCWSTR, hrerrorcode: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXErrorHandler_Impl::ignorableWarning(this, windows_core::from_raw_borrowed(&plocator), core::mem::transmute(&pwcherrormessage), core::mem::transmute_copy(&hrerrorcode)).into() } @@ -1172,7 +860,7 @@ impl ISAXErrorHandler_Vtbl { iid == &::IID } } -pub trait ISAXLexicalHandler_Impl: Sized { +pub trait ISAXLexicalHandler_Impl: Sized + windows_core::IUnknownImpl { fn startDTD(&self, pwchname: &windows_core::PCWSTR, cchname: i32, pwchpublicid: &windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: &windows_core::PCWSTR, cchsystemid: i32) -> windows_core::Result<()>; fn endDTD(&self) -> windows_core::Result<()>; fn startEntity(&self, pwchname: &windows_core::PCWSTR, cchname: i32) -> windows_core::Result<()>; @@ -1183,56 +871,32 @@ pub trait ISAXLexicalHandler_Impl: Sized { } impl windows_core::RuntimeName for ISAXLexicalHandler {} impl ISAXLexicalHandler_Vtbl { - pub const fn new() -> ISAXLexicalHandler_Vtbl - where - Identity: ISAXLexicalHandler_Impl, - { - unsafe extern "system" fn startDTD(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchpublicid: windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: windows_core::PCWSTR, cchsystemid: i32) -> windows_core::HRESULT - where - Identity: ISAXLexicalHandler_Impl, - { + pub const fn new() -> ISAXLexicalHandler_Vtbl { + unsafe extern "system" fn startDTD(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32, pwchpublicid: windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: windows_core::PCWSTR, cchsystemid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXLexicalHandler_Impl::startDTD(this, core::mem::transmute(&pwchname), core::mem::transmute_copy(&cchname), core::mem::transmute(&pwchpublicid), core::mem::transmute_copy(&cchpublicid), core::mem::transmute(&pwchsystemid), core::mem::transmute_copy(&cchsystemid)).into() } - unsafe extern "system" fn endDTD(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXLexicalHandler_Impl, - { + unsafe extern "system" fn endDTD(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXLexicalHandler_Impl::endDTD(this).into() } - unsafe extern "system" fn startEntity(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32) -> windows_core::HRESULT - where - Identity: ISAXLexicalHandler_Impl, - { + unsafe extern "system" fn startEntity(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXLexicalHandler_Impl::startEntity(this, core::mem::transmute(&pwchname), core::mem::transmute_copy(&cchname)).into() } - unsafe extern "system" fn endEntity(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32) -> windows_core::HRESULT - where - Identity: ISAXLexicalHandler_Impl, - { + unsafe extern "system" fn endEntity(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, cchname: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXLexicalHandler_Impl::endEntity(this, core::mem::transmute(&pwchname), core::mem::transmute_copy(&cchname)).into() } - unsafe extern "system" fn startCDATA(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXLexicalHandler_Impl, - { + unsafe extern "system" fn startCDATA(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXLexicalHandler_Impl::startCDATA(this).into() } - unsafe extern "system" fn endCDATA(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXLexicalHandler_Impl, - { + unsafe extern "system" fn endCDATA(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXLexicalHandler_Impl::endCDATA(this).into() } - unsafe extern "system" fn comment(this: *mut core::ffi::c_void, pwchchars: windows_core::PCWSTR, cchchars: i32) -> windows_core::HRESULT - where - Identity: ISAXLexicalHandler_Impl, - { + unsafe extern "system" fn comment(this: *mut core::ffi::c_void, pwchchars: windows_core::PCWSTR, cchchars: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXLexicalHandler_Impl::comment(this, core::mem::transmute(&pwchchars), core::mem::transmute_copy(&cchchars)).into() } @@ -1251,7 +915,7 @@ impl ISAXLexicalHandler_Vtbl { iid == &::IID } } -pub trait ISAXLocator_Impl: Sized { +pub trait ISAXLocator_Impl: Sized + windows_core::IUnknownImpl { fn getColumnNumber(&self) -> windows_core::Result; fn getLineNumber(&self) -> windows_core::Result; fn getPublicId(&self) -> windows_core::Result<*mut u16>; @@ -1259,14 +923,8 @@ pub trait ISAXLocator_Impl: Sized { } impl windows_core::RuntimeName for ISAXLocator {} impl ISAXLocator_Vtbl { - pub const fn new() -> ISAXLocator_Vtbl - where - Identity: ISAXLocator_Impl, - { - unsafe extern "system" fn getColumnNumber(this: *mut core::ffi::c_void, pncolumn: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXLocator_Impl, - { + pub const fn new() -> ISAXLocator_Vtbl { + unsafe extern "system" fn getColumnNumber(this: *mut core::ffi::c_void, pncolumn: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXLocator_Impl::getColumnNumber(this) { Ok(ok__) => { @@ -1276,10 +934,7 @@ impl ISAXLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getLineNumber(this: *mut core::ffi::c_void, pnline: *mut i32) -> windows_core::HRESULT - where - Identity: ISAXLocator_Impl, - { + unsafe extern "system" fn getLineNumber(this: *mut core::ffi::c_void, pnline: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXLocator_Impl::getLineNumber(this) { Ok(ok__) => { @@ -1289,10 +944,7 @@ impl ISAXLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getPublicId(this: *mut core::ffi::c_void, ppwchpublicid: *mut *mut u16) -> windows_core::HRESULT - where - Identity: ISAXLocator_Impl, - { + unsafe extern "system" fn getPublicId(this: *mut core::ffi::c_void, ppwchpublicid: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXLocator_Impl::getPublicId(this) { Ok(ok__) => { @@ -1302,10 +954,7 @@ impl ISAXLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getSystemId(this: *mut core::ffi::c_void, ppwchsystemid: *mut *mut u16) -> windows_core::HRESULT - where - Identity: ISAXLocator_Impl, - { + unsafe extern "system" fn getSystemId(this: *mut core::ffi::c_void, ppwchsystemid: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXLocator_Impl::getSystemId(this) { Ok(ok__) => { @@ -1333,14 +982,8 @@ pub trait ISAXXMLFilter_Impl: Sized + ISAXXMLReader_Impl { } impl windows_core::RuntimeName for ISAXXMLFilter {} impl ISAXXMLFilter_Vtbl { - pub const fn new() -> ISAXXMLFilter_Vtbl - where - Identity: ISAXXMLFilter_Impl, - { - unsafe extern "system" fn getParent(this: *mut core::ffi::c_void, ppreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXXMLFilter_Impl, - { + pub const fn new() -> ISAXXMLFilter_Vtbl { + unsafe extern "system" fn getParent(this: *mut core::ffi::c_void, ppreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXXMLFilter_Impl::getParent(this) { Ok(ok__) => { @@ -1350,10 +993,7 @@ impl ISAXXMLFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putParent(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXXMLFilter_Impl, - { + unsafe extern "system" fn putParent(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLFilter_Impl::putParent(this, windows_core::from_raw_borrowed(&preader)).into() } @@ -1363,7 +1003,7 @@ impl ISAXXMLFilter_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISAXXMLReader_Impl: Sized { +pub trait ISAXXMLReader_Impl: Sized + windows_core::IUnknownImpl { fn getFeature(&self, pwchname: &windows_core::PCWSTR) -> windows_core::Result; fn putFeature(&self, pwchname: &windows_core::PCWSTR, vfvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; fn getProperty(&self, pwchname: &windows_core::PCWSTR) -> windows_core::Result; @@ -1385,14 +1025,8 @@ pub trait ISAXXMLReader_Impl: Sized { } impl windows_core::RuntimeName for ISAXXMLReader {} impl ISAXXMLReader_Vtbl { - pub const fn new() -> ISAXXMLReader_Vtbl - where - Identity: ISAXXMLReader_Impl, - { - unsafe extern "system" fn getFeature(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, pvfvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + pub const fn new() -> ISAXXMLReader_Vtbl { + unsafe extern "system" fn getFeature(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, pvfvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXXMLReader_Impl::getFeature(this, core::mem::transmute(&pwchname)) { Ok(ok__) => { @@ -1402,17 +1036,11 @@ impl ISAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putFeature(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, vfvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn putFeature(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, vfvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLReader_Impl::putFeature(this, core::mem::transmute(&pwchname), core::mem::transmute_copy(&vfvalue)).into() } - unsafe extern "system" fn getProperty(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn getProperty(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXXMLReader_Impl::getProperty(this, core::mem::transmute(&pwchname)) { Ok(ok__) => { @@ -1422,17 +1050,11 @@ impl ISAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putProperty(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn putProperty(this: *mut core::ffi::c_void, pwchname: windows_core::PCWSTR, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLReader_Impl::putProperty(this, core::mem::transmute(&pwchname), core::mem::transmute(&varvalue)).into() } - unsafe extern "system" fn getEntityResolver(this: *mut core::ffi::c_void, ppresolver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn getEntityResolver(this: *mut core::ffi::c_void, ppresolver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXXMLReader_Impl::getEntityResolver(this) { Ok(ok__) => { @@ -1442,17 +1064,11 @@ impl ISAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putEntityResolver(this: *mut core::ffi::c_void, presolver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn putEntityResolver(this: *mut core::ffi::c_void, presolver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLReader_Impl::putEntityResolver(this, windows_core::from_raw_borrowed(&presolver)).into() } - unsafe extern "system" fn getContentHandler(this: *mut core::ffi::c_void, pphandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn getContentHandler(this: *mut core::ffi::c_void, pphandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXXMLReader_Impl::getContentHandler(this) { Ok(ok__) => { @@ -1462,17 +1078,11 @@ impl ISAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putContentHandler(this: *mut core::ffi::c_void, phandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn putContentHandler(this: *mut core::ffi::c_void, phandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLReader_Impl::putContentHandler(this, windows_core::from_raw_borrowed(&phandler)).into() } - unsafe extern "system" fn getDTDHandler(this: *mut core::ffi::c_void, pphandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn getDTDHandler(this: *mut core::ffi::c_void, pphandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXXMLReader_Impl::getDTDHandler(this) { Ok(ok__) => { @@ -1482,17 +1092,11 @@ impl ISAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putDTDHandler(this: *mut core::ffi::c_void, phandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn putDTDHandler(this: *mut core::ffi::c_void, phandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLReader_Impl::putDTDHandler(this, windows_core::from_raw_borrowed(&phandler)).into() } - unsafe extern "system" fn getErrorHandler(this: *mut core::ffi::c_void, pphandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn getErrorHandler(this: *mut core::ffi::c_void, pphandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXXMLReader_Impl::getErrorHandler(this) { Ok(ok__) => { @@ -1502,17 +1106,11 @@ impl ISAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putErrorHandler(this: *mut core::ffi::c_void, phandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn putErrorHandler(this: *mut core::ffi::c_void, phandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLReader_Impl::putErrorHandler(this, windows_core::from_raw_borrowed(&phandler)).into() } - unsafe extern "system" fn getBaseURL(this: *mut core::ffi::c_void, ppwchbaseurl: *mut *mut u16) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn getBaseURL(this: *mut core::ffi::c_void, ppwchbaseurl: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXXMLReader_Impl::getBaseURL(this) { Ok(ok__) => { @@ -1522,17 +1120,11 @@ impl ISAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putBaseURL(this: *mut core::ffi::c_void, pwchbaseurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn putBaseURL(this: *mut core::ffi::c_void, pwchbaseurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLReader_Impl::putBaseURL(this, core::mem::transmute(&pwchbaseurl)).into() } - unsafe extern "system" fn getSecureBaseURL(this: *mut core::ffi::c_void, ppwchsecurebaseurl: *mut *mut u16) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn getSecureBaseURL(this: *mut core::ffi::c_void, ppwchsecurebaseurl: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISAXXMLReader_Impl::getSecureBaseURL(this) { Ok(ok__) => { @@ -1542,24 +1134,15 @@ impl ISAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putSecureBaseURL(this: *mut core::ffi::c_void, pwchsecurebaseurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn putSecureBaseURL(this: *mut core::ffi::c_void, pwchsecurebaseurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLReader_Impl::putSecureBaseURL(this, core::mem::transmute(&pwchsecurebaseurl)).into() } - unsafe extern "system" fn parse(this: *mut core::ffi::c_void, varinput: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn parse(this: *mut core::ffi::c_void, varinput: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLReader_Impl::parse(this, core::mem::transmute(&varinput)).into() } - unsafe extern "system" fn parseURL(this: *mut core::ffi::c_void, pwchurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISAXXMLReader_Impl, - { + unsafe extern "system" fn parseURL(this: *mut core::ffi::c_void, pwchurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISAXXMLReader_Impl::parseURL(this, core::mem::transmute(&pwchurl)).into() } @@ -1605,14 +1188,8 @@ pub trait ISchema_Impl: Sized + ISchemaItem_Impl { impl windows_core::RuntimeName for ISchema {} #[cfg(feature = "Win32_System_Com")] impl ISchema_Vtbl { - pub const fn new() -> ISchema_Vtbl - where - Identity: ISchema_Impl, - { - unsafe extern "system" fn targetNamespace(this: *mut core::ffi::c_void, targetnamespace: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchema_Impl, - { + pub const fn new() -> ISchema_Vtbl { + unsafe extern "system" fn targetNamespace(this: *mut core::ffi::c_void, targetnamespace: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchema_Impl::targetNamespace(this) { Ok(ok__) => { @@ -1622,10 +1199,7 @@ impl ISchema_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn version(this: *mut core::ffi::c_void, version: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchema_Impl, - { + unsafe extern "system" fn version(this: *mut core::ffi::c_void, version: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchema_Impl::version(this) { Ok(ok__) => { @@ -1635,10 +1209,7 @@ impl ISchema_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn types(this: *mut core::ffi::c_void, types: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchema_Impl, - { + unsafe extern "system" fn types(this: *mut core::ffi::c_void, types: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchema_Impl::types(this) { Ok(ok__) => { @@ -1648,10 +1219,7 @@ impl ISchema_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn elements(this: *mut core::ffi::c_void, elements: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchema_Impl, - { + unsafe extern "system" fn elements(this: *mut core::ffi::c_void, elements: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchema_Impl::elements(this) { Ok(ok__) => { @@ -1661,10 +1229,7 @@ impl ISchema_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn attributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchema_Impl, - { + unsafe extern "system" fn attributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchema_Impl::attributes(this) { Ok(ok__) => { @@ -1674,10 +1239,7 @@ impl ISchema_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn attributeGroups(this: *mut core::ffi::c_void, attributegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchema_Impl, - { + unsafe extern "system" fn attributeGroups(this: *mut core::ffi::c_void, attributegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchema_Impl::attributeGroups(this) { Ok(ok__) => { @@ -1687,10 +1249,7 @@ impl ISchema_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn modelGroups(this: *mut core::ffi::c_void, modelgroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchema_Impl, - { + unsafe extern "system" fn modelGroups(this: *mut core::ffi::c_void, modelgroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchema_Impl::modelGroups(this) { Ok(ok__) => { @@ -1700,10 +1259,7 @@ impl ISchema_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn notations(this: *mut core::ffi::c_void, notations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchema_Impl, - { + unsafe extern "system" fn notations(this: *mut core::ffi::c_void, notations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchema_Impl::notations(this) { Ok(ok__) => { @@ -1713,10 +1269,7 @@ impl ISchema_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn schemaLocations(this: *mut core::ffi::c_void, schemalocations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchema_Impl, - { + unsafe extern "system" fn schemaLocations(this: *mut core::ffi::c_void, schemalocations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchema_Impl::schemaLocations(this) { Ok(ok__) => { @@ -1752,14 +1305,8 @@ pub trait ISchemaAny_Impl: Sized + ISchemaParticle_Impl { impl windows_core::RuntimeName for ISchemaAny {} #[cfg(feature = "Win32_System_Com")] impl ISchemaAny_Vtbl { - pub const fn new() -> ISchemaAny_Vtbl - where - Identity: ISchemaAny_Impl, - { - unsafe extern "system" fn namespaces(this: *mut core::ffi::c_void, namespaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaAny_Impl, - { + pub const fn new() -> ISchemaAny_Vtbl { + unsafe extern "system" fn namespaces(this: *mut core::ffi::c_void, namespaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaAny_Impl::namespaces(this) { Ok(ok__) => { @@ -1769,10 +1316,7 @@ impl ISchemaAny_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn processContents(this: *mut core::ffi::c_void, processcontents: *mut SCHEMAPROCESSCONTENTS) -> windows_core::HRESULT - where - Identity: ISchemaAny_Impl, - { + unsafe extern "system" fn processContents(this: *mut core::ffi::c_void, processcontents: *mut SCHEMAPROCESSCONTENTS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaAny_Impl::processContents(this) { Ok(ok__) => { @@ -1805,14 +1349,8 @@ pub trait ISchemaAttribute_Impl: Sized + ISchemaItem_Impl { impl windows_core::RuntimeName for ISchemaAttribute {} #[cfg(feature = "Win32_System_Com")] impl ISchemaAttribute_Vtbl { - pub const fn new() -> ISchemaAttribute_Vtbl - where - Identity: ISchemaAttribute_Impl, - { - unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaAttribute_Impl, - { + pub const fn new() -> ISchemaAttribute_Vtbl { + unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaAttribute_Impl::r#type(this) { Ok(ok__) => { @@ -1822,10 +1360,7 @@ impl ISchemaAttribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn scope(this: *mut core::ffi::c_void, scope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaAttribute_Impl, - { + unsafe extern "system" fn scope(this: *mut core::ffi::c_void, scope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaAttribute_Impl::scope(this) { Ok(ok__) => { @@ -1835,10 +1370,7 @@ impl ISchemaAttribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn defaultValue(this: *mut core::ffi::c_void, defaultvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaAttribute_Impl, - { + unsafe extern "system" fn defaultValue(this: *mut core::ffi::c_void, defaultvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaAttribute_Impl::defaultValue(this) { Ok(ok__) => { @@ -1848,10 +1380,7 @@ impl ISchemaAttribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn fixedValue(this: *mut core::ffi::c_void, fixedvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaAttribute_Impl, - { + unsafe extern "system" fn fixedValue(this: *mut core::ffi::c_void, fixedvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaAttribute_Impl::fixedValue(this) { Ok(ok__) => { @@ -1861,10 +1390,7 @@ impl ISchemaAttribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn r#use(this: *mut core::ffi::c_void, r#use: *mut SCHEMAUSE) -> windows_core::HRESULT - where - Identity: ISchemaAttribute_Impl, - { + unsafe extern "system" fn r#use(this: *mut core::ffi::c_void, r#use: *mut SCHEMAUSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaAttribute_Impl::r#use(this) { Ok(ok__) => { @@ -1874,10 +1400,7 @@ impl ISchemaAttribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn isReference(this: *mut core::ffi::c_void, reference: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISchemaAttribute_Impl, - { + unsafe extern "system" fn isReference(this: *mut core::ffi::c_void, reference: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaAttribute_Impl::isReference(this) { Ok(ok__) => { @@ -1910,14 +1433,8 @@ pub trait ISchemaAttributeGroup_Impl: Sized + ISchemaItem_Impl { impl windows_core::RuntimeName for ISchemaAttributeGroup {} #[cfg(feature = "Win32_System_Com")] impl ISchemaAttributeGroup_Vtbl { - pub const fn new() -> ISchemaAttributeGroup_Vtbl - where - Identity: ISchemaAttributeGroup_Impl, - { - unsafe extern "system" fn anyAttribute(this: *mut core::ffi::c_void, anyattribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaAttributeGroup_Impl, - { + pub const fn new() -> ISchemaAttributeGroup_Vtbl { + unsafe extern "system" fn anyAttribute(this: *mut core::ffi::c_void, anyattribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaAttributeGroup_Impl::anyAttribute(this) { Ok(ok__) => { @@ -1927,10 +1444,7 @@ impl ISchemaAttributeGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn attributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaAttributeGroup_Impl, - { + unsafe extern "system" fn attributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaAttributeGroup_Impl::attributes(this) { Ok(ok__) => { @@ -1959,14 +1473,8 @@ pub trait ISchemaComplexType_Impl: Sized + ISchemaType_Impl { impl windows_core::RuntimeName for ISchemaComplexType {} #[cfg(feature = "Win32_System_Com")] impl ISchemaComplexType_Vtbl { - pub const fn new() -> ISchemaComplexType_Vtbl - where - Identity: ISchemaComplexType_Impl, - { - unsafe extern "system" fn isAbstract(this: *mut core::ffi::c_void, r#abstract: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISchemaComplexType_Impl, - { + pub const fn new() -> ISchemaComplexType_Vtbl { + unsafe extern "system" fn isAbstract(this: *mut core::ffi::c_void, r#abstract: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaComplexType_Impl::isAbstract(this) { Ok(ok__) => { @@ -1976,10 +1484,7 @@ impl ISchemaComplexType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn anyAttribute(this: *mut core::ffi::c_void, anyattribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaComplexType_Impl, - { + unsafe extern "system" fn anyAttribute(this: *mut core::ffi::c_void, anyattribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaComplexType_Impl::anyAttribute(this) { Ok(ok__) => { @@ -1989,10 +1494,7 @@ impl ISchemaComplexType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn attributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaComplexType_Impl, - { + unsafe extern "system" fn attributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaComplexType_Impl::attributes(this) { Ok(ok__) => { @@ -2002,10 +1504,7 @@ impl ISchemaComplexType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn contentType(this: *mut core::ffi::c_void, contenttype: *mut SCHEMACONTENTTYPE) -> windows_core::HRESULT - where - Identity: ISchemaComplexType_Impl, - { + unsafe extern "system" fn contentType(this: *mut core::ffi::c_void, contenttype: *mut SCHEMACONTENTTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaComplexType_Impl::contentType(this) { Ok(ok__) => { @@ -2015,10 +1514,7 @@ impl ISchemaComplexType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn contentModel(this: *mut core::ffi::c_void, contentmodel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaComplexType_Impl, - { + unsafe extern "system" fn contentModel(this: *mut core::ffi::c_void, contentmodel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaComplexType_Impl::contentModel(this) { Ok(ok__) => { @@ -2028,10 +1524,7 @@ impl ISchemaComplexType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn prohibitedSubstitutions(this: *mut core::ffi::c_void, prohibited: *mut SCHEMADERIVATIONMETHOD) -> windows_core::HRESULT - where - Identity: ISchemaComplexType_Impl, - { + unsafe extern "system" fn prohibitedSubstitutions(this: *mut core::ffi::c_void, prohibited: *mut SCHEMADERIVATIONMETHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaComplexType_Impl::prohibitedSubstitutions(this) { Ok(ok__) => { @@ -2073,14 +1566,8 @@ pub trait ISchemaElement_Impl: Sized + ISchemaParticle_Impl { impl windows_core::RuntimeName for ISchemaElement {} #[cfg(feature = "Win32_System_Com")] impl ISchemaElement_Vtbl { - pub const fn new() -> ISchemaElement_Vtbl - where - Identity: ISchemaElement_Impl, - { - unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + pub const fn new() -> ISchemaElement_Vtbl { + unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::r#type(this) { Ok(ok__) => { @@ -2090,10 +1577,7 @@ impl ISchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn scope(this: *mut core::ffi::c_void, scope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + unsafe extern "system" fn scope(this: *mut core::ffi::c_void, scope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::scope(this) { Ok(ok__) => { @@ -2103,10 +1587,7 @@ impl ISchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn defaultValue(this: *mut core::ffi::c_void, defaultvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + unsafe extern "system" fn defaultValue(this: *mut core::ffi::c_void, defaultvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::defaultValue(this) { Ok(ok__) => { @@ -2116,10 +1597,7 @@ impl ISchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn fixedValue(this: *mut core::ffi::c_void, fixedvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + unsafe extern "system" fn fixedValue(this: *mut core::ffi::c_void, fixedvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::fixedValue(this) { Ok(ok__) => { @@ -2129,10 +1607,7 @@ impl ISchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn isNillable(this: *mut core::ffi::c_void, nillable: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + unsafe extern "system" fn isNillable(this: *mut core::ffi::c_void, nillable: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::isNillable(this) { Ok(ok__) => { @@ -2142,10 +1617,7 @@ impl ISchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn identityConstraints(this: *mut core::ffi::c_void, constraints: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + unsafe extern "system" fn identityConstraints(this: *mut core::ffi::c_void, constraints: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::identityConstraints(this) { Ok(ok__) => { @@ -2155,10 +1627,7 @@ impl ISchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn substitutionGroup(this: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + unsafe extern "system" fn substitutionGroup(this: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::substitutionGroup(this) { Ok(ok__) => { @@ -2168,10 +1637,7 @@ impl ISchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn substitutionGroupExclusions(this: *mut core::ffi::c_void, exclusions: *mut SCHEMADERIVATIONMETHOD) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + unsafe extern "system" fn substitutionGroupExclusions(this: *mut core::ffi::c_void, exclusions: *mut SCHEMADERIVATIONMETHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::substitutionGroupExclusions(this) { Ok(ok__) => { @@ -2181,10 +1647,7 @@ impl ISchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn disallowedSubstitutions(this: *mut core::ffi::c_void, disallowed: *mut SCHEMADERIVATIONMETHOD) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + unsafe extern "system" fn disallowedSubstitutions(this: *mut core::ffi::c_void, disallowed: *mut SCHEMADERIVATIONMETHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::disallowedSubstitutions(this) { Ok(ok__) => { @@ -2194,10 +1657,7 @@ impl ISchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn isAbstract(this: *mut core::ffi::c_void, r#abstract: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + unsafe extern "system" fn isAbstract(this: *mut core::ffi::c_void, r#abstract: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::isAbstract(this) { Ok(ok__) => { @@ -2207,10 +1667,7 @@ impl ISchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn isReference(this: *mut core::ffi::c_void, reference: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISchemaElement_Impl, - { + unsafe extern "system" fn isReference(this: *mut core::ffi::c_void, reference: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaElement_Impl::isReference(this) { Ok(ok__) => { @@ -2249,14 +1706,8 @@ pub trait ISchemaIdentityConstraint_Impl: Sized + ISchemaItem_Impl { impl windows_core::RuntimeName for ISchemaIdentityConstraint {} #[cfg(feature = "Win32_System_Com")] impl ISchemaIdentityConstraint_Vtbl { - pub const fn new() -> ISchemaIdentityConstraint_Vtbl - where - Identity: ISchemaIdentityConstraint_Impl, - { - unsafe extern "system" fn selector(this: *mut core::ffi::c_void, selector: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaIdentityConstraint_Impl, - { + pub const fn new() -> ISchemaIdentityConstraint_Vtbl { + unsafe extern "system" fn selector(this: *mut core::ffi::c_void, selector: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaIdentityConstraint_Impl::selector(this) { Ok(ok__) => { @@ -2266,10 +1717,7 @@ impl ISchemaIdentityConstraint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn fields(this: *mut core::ffi::c_void, fields: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaIdentityConstraint_Impl, - { + unsafe extern "system" fn fields(this: *mut core::ffi::c_void, fields: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaIdentityConstraint_Impl::fields(this) { Ok(ok__) => { @@ -2279,10 +1727,7 @@ impl ISchemaIdentityConstraint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn referencedKey(this: *mut core::ffi::c_void, key: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaIdentityConstraint_Impl, - { + unsafe extern "system" fn referencedKey(this: *mut core::ffi::c_void, key: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaIdentityConstraint_Impl::referencedKey(this) { Ok(ok__) => { @@ -2317,14 +1762,8 @@ pub trait ISchemaItem_Impl: Sized + super::super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISchemaItem {} #[cfg(feature = "Win32_System_Com")] impl ISchemaItem_Vtbl { - pub const fn new() -> ISchemaItem_Vtbl - where - Identity: ISchemaItem_Impl, - { - unsafe extern "system" fn name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaItem_Impl, - { + pub const fn new() -> ISchemaItem_Vtbl { + unsafe extern "system" fn name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItem_Impl::name(this) { Ok(ok__) => { @@ -2334,10 +1773,7 @@ impl ISchemaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn namespaceURI(this: *mut core::ffi::c_void, namespaceuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaItem_Impl, - { + unsafe extern "system" fn namespaceURI(this: *mut core::ffi::c_void, namespaceuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItem_Impl::namespaceURI(this) { Ok(ok__) => { @@ -2347,10 +1783,7 @@ impl ISchemaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn schema(this: *mut core::ffi::c_void, schema: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaItem_Impl, - { + unsafe extern "system" fn schema(this: *mut core::ffi::c_void, schema: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItem_Impl::schema(this) { Ok(ok__) => { @@ -2360,10 +1793,7 @@ impl ISchemaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn id(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaItem_Impl, - { + unsafe extern "system" fn id(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItem_Impl::id(this) { Ok(ok__) => { @@ -2373,10 +1803,7 @@ impl ISchemaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn itemType(this: *mut core::ffi::c_void, itemtype: *mut SOMITEMTYPE) -> windows_core::HRESULT - where - Identity: ISchemaItem_Impl, - { + unsafe extern "system" fn itemType(this: *mut core::ffi::c_void, itemtype: *mut SOMITEMTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItem_Impl::itemType(this) { Ok(ok__) => { @@ -2386,10 +1813,7 @@ impl ISchemaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn unhandledAttributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaItem_Impl, - { + unsafe extern "system" fn unhandledAttributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItem_Impl::unhandledAttributes(this) { Ok(ok__) => { @@ -2399,10 +1823,7 @@ impl ISchemaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn writeAnnotation(this: *mut core::ffi::c_void, annotationsink: *mut core::ffi::c_void, iswritten: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISchemaItem_Impl, - { + unsafe extern "system" fn writeAnnotation(this: *mut core::ffi::c_void, annotationsink: *mut core::ffi::c_void, iswritten: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItem_Impl::writeAnnotation(this, windows_core::from_raw_borrowed(&annotationsink)) { Ok(ok__) => { @@ -2439,14 +1860,8 @@ pub trait ISchemaItemCollection_Impl: Sized + super::super::super::System::Com:: impl windows_core::RuntimeName for ISchemaItemCollection {} #[cfg(feature = "Win32_System_Com")] impl ISchemaItemCollection_Vtbl { - pub const fn new() -> ISchemaItemCollection_Vtbl - where - Identity: ISchemaItemCollection_Impl, - { - unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaItemCollection_Impl, - { + pub const fn new() -> ISchemaItemCollection_Vtbl { + unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItemCollection_Impl::get_item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2456,10 +1871,7 @@ impl ISchemaItemCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn itemByName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaItemCollection_Impl, - { + unsafe extern "system" fn itemByName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItemCollection_Impl::itemByName(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -2469,10 +1881,7 @@ impl ISchemaItemCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn itemByQName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaItemCollection_Impl, - { + unsafe extern "system" fn itemByQName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItemCollection_Impl::itemByQName(this, core::mem::transmute(&name), core::mem::transmute(&namespaceuri)) { Ok(ok__) => { @@ -2482,10 +1891,7 @@ impl ISchemaItemCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT - where - Identity: ISchemaItemCollection_Impl, - { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItemCollection_Impl::length(this) { Ok(ok__) => { @@ -2495,10 +1901,7 @@ impl ISchemaItemCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaItemCollection_Impl, - { + unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaItemCollection_Impl::_newEnum(this) { Ok(ok__) => { @@ -2529,14 +1932,8 @@ pub trait ISchemaModelGroup_Impl: Sized + ISchemaParticle_Impl { impl windows_core::RuntimeName for ISchemaModelGroup {} #[cfg(feature = "Win32_System_Com")] impl ISchemaModelGroup_Vtbl { - pub const fn new() -> ISchemaModelGroup_Vtbl - where - Identity: ISchemaModelGroup_Impl, - { - unsafe extern "system" fn particles(this: *mut core::ffi::c_void, particles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaModelGroup_Impl, - { + pub const fn new() -> ISchemaModelGroup_Vtbl { + unsafe extern "system" fn particles(this: *mut core::ffi::c_void, particles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaModelGroup_Impl::particles(this) { Ok(ok__) => { @@ -2561,14 +1958,8 @@ pub trait ISchemaNotation_Impl: Sized + ISchemaItem_Impl { impl windows_core::RuntimeName for ISchemaNotation {} #[cfg(feature = "Win32_System_Com")] impl ISchemaNotation_Vtbl { - pub const fn new() -> ISchemaNotation_Vtbl - where - Identity: ISchemaNotation_Impl, - { - unsafe extern "system" fn systemIdentifier(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaNotation_Impl, - { + pub const fn new() -> ISchemaNotation_Vtbl { + unsafe extern "system" fn systemIdentifier(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaNotation_Impl::systemIdentifier(this) { Ok(ok__) => { @@ -2578,10 +1969,7 @@ impl ISchemaNotation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn publicIdentifier(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaNotation_Impl, - { + unsafe extern "system" fn publicIdentifier(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaNotation_Impl::publicIdentifier(this) { Ok(ok__) => { @@ -2610,14 +1998,8 @@ pub trait ISchemaParticle_Impl: Sized + ISchemaItem_Impl { impl windows_core::RuntimeName for ISchemaParticle {} #[cfg(feature = "Win32_System_Com")] impl ISchemaParticle_Vtbl { - pub const fn new() -> ISchemaParticle_Vtbl - where - Identity: ISchemaParticle_Impl, - { - unsafe extern "system" fn minOccurs(this: *mut core::ffi::c_void, minoccurs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaParticle_Impl, - { + pub const fn new() -> ISchemaParticle_Vtbl { + unsafe extern "system" fn minOccurs(this: *mut core::ffi::c_void, minoccurs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaParticle_Impl::minOccurs(this) { Ok(ok__) => { @@ -2627,10 +2009,7 @@ impl ISchemaParticle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn maxOccurs(this: *mut core::ffi::c_void, maxoccurs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaParticle_Impl, - { + unsafe extern "system" fn maxOccurs(this: *mut core::ffi::c_void, maxoccurs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaParticle_Impl::maxOccurs(this) { Ok(ok__) => { @@ -2656,14 +2035,8 @@ pub trait ISchemaStringCollection_Impl: Sized + super::super::super::System::Com impl windows_core::RuntimeName for ISchemaStringCollection {} #[cfg(feature = "Win32_System_Com")] impl ISchemaStringCollection_Vtbl { - pub const fn new() -> ISchemaStringCollection_Vtbl - where - Identity: ISchemaStringCollection_Impl, - { - unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, bstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaStringCollection_Impl, - { + pub const fn new() -> ISchemaStringCollection_Vtbl { + unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, bstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaStringCollection_Impl::get_item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2673,10 +2046,7 @@ impl ISchemaStringCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT - where - Identity: ISchemaStringCollection_Impl, - { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaStringCollection_Impl::length(this) { Ok(ok__) => { @@ -2686,10 +2056,7 @@ impl ISchemaStringCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaStringCollection_Impl, - { + unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaStringCollection_Impl::_newEnum(this) { Ok(ok__) => { @@ -2734,14 +2101,8 @@ pub trait ISchemaType_Impl: Sized + ISchemaItem_Impl { impl windows_core::RuntimeName for ISchemaType {} #[cfg(feature = "Win32_System_Com")] impl ISchemaType_Vtbl { - pub const fn new() -> ISchemaType_Vtbl - where - Identity: ISchemaType_Impl, - { - unsafe extern "system" fn baseTypes(this: *mut core::ffi::c_void, basetypes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + pub const fn new() -> ISchemaType_Vtbl { + unsafe extern "system" fn baseTypes(this: *mut core::ffi::c_void, basetypes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::baseTypes(this) { Ok(ok__) => { @@ -2751,10 +2112,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn r#final(this: *mut core::ffi::c_void, r#final: *mut SCHEMADERIVATIONMETHOD) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn r#final(this: *mut core::ffi::c_void, r#final: *mut SCHEMADERIVATIONMETHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::r#final(this) { Ok(ok__) => { @@ -2764,10 +2122,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn variety(this: *mut core::ffi::c_void, variety: *mut SCHEMATYPEVARIETY) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn variety(this: *mut core::ffi::c_void, variety: *mut SCHEMATYPEVARIETY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::variety(this) { Ok(ok__) => { @@ -2777,10 +2132,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn derivedBy(this: *mut core::ffi::c_void, derivedby: *mut SCHEMADERIVATIONMETHOD) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn derivedBy(this: *mut core::ffi::c_void, derivedby: *mut SCHEMADERIVATIONMETHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::derivedBy(this) { Ok(ok__) => { @@ -2790,10 +2142,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn isValid(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, valid: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn isValid(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, valid: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::isValid(this, core::mem::transmute(&data)) { Ok(ok__) => { @@ -2803,10 +2152,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn minExclusive(this: *mut core::ffi::c_void, minexclusive: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn minExclusive(this: *mut core::ffi::c_void, minexclusive: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::minExclusive(this) { Ok(ok__) => { @@ -2816,10 +2162,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn minInclusive(this: *mut core::ffi::c_void, mininclusive: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn minInclusive(this: *mut core::ffi::c_void, mininclusive: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::minInclusive(this) { Ok(ok__) => { @@ -2829,10 +2172,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn maxExclusive(this: *mut core::ffi::c_void, maxexclusive: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn maxExclusive(this: *mut core::ffi::c_void, maxexclusive: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::maxExclusive(this) { Ok(ok__) => { @@ -2842,10 +2182,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn maxInclusive(this: *mut core::ffi::c_void, maxinclusive: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn maxInclusive(this: *mut core::ffi::c_void, maxinclusive: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::maxInclusive(this) { Ok(ok__) => { @@ -2855,10 +2192,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn totalDigits(this: *mut core::ffi::c_void, totaldigits: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn totalDigits(this: *mut core::ffi::c_void, totaldigits: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::totalDigits(this) { Ok(ok__) => { @@ -2868,10 +2202,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn fractionDigits(this: *mut core::ffi::c_void, fractiondigits: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn fractionDigits(this: *mut core::ffi::c_void, fractiondigits: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::fractionDigits(this) { Ok(ok__) => { @@ -2881,10 +2212,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::length(this) { Ok(ok__) => { @@ -2894,10 +2222,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn minLength(this: *mut core::ffi::c_void, minlength: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn minLength(this: *mut core::ffi::c_void, minlength: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::minLength(this) { Ok(ok__) => { @@ -2907,10 +2232,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn maxLength(this: *mut core::ffi::c_void, maxlength: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn maxLength(this: *mut core::ffi::c_void, maxlength: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::maxLength(this) { Ok(ok__) => { @@ -2920,10 +2242,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn enumeration(this: *mut core::ffi::c_void, enumeration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn enumeration(this: *mut core::ffi::c_void, enumeration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::enumeration(this) { Ok(ok__) => { @@ -2933,10 +2252,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn whitespace(this: *mut core::ffi::c_void, whitespace: *mut SCHEMAWHITESPACE) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn whitespace(this: *mut core::ffi::c_void, whitespace: *mut SCHEMAWHITESPACE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::whitespace(this) { Ok(ok__) => { @@ -2946,10 +2262,7 @@ impl ISchemaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn patterns(this: *mut core::ffi::c_void, patterns: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaType_Impl, - { + unsafe extern "system" fn patterns(this: *mut core::ffi::c_void, patterns: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaType_Impl::patterns(this) { Ok(ok__) => { @@ -2995,21 +2308,12 @@ pub trait IServerXMLHTTPRequest_Impl: Sized + IXMLHTTPRequest_Impl { impl windows_core::RuntimeName for IServerXMLHTTPRequest {} #[cfg(feature = "Win32_System_Com")] impl IServerXMLHTTPRequest_Vtbl { - pub const fn new() -> IServerXMLHTTPRequest_Vtbl - where - Identity: IServerXMLHTTPRequest_Impl, - { - unsafe extern "system" fn setTimeouts(this: *mut core::ffi::c_void, resolvetimeout: i32, connecttimeout: i32, sendtimeout: i32, receivetimeout: i32) -> windows_core::HRESULT - where - Identity: IServerXMLHTTPRequest_Impl, - { + pub const fn new() -> IServerXMLHTTPRequest_Vtbl { + unsafe extern "system" fn setTimeouts(this: *mut core::ffi::c_void, resolvetimeout: i32, connecttimeout: i32, sendtimeout: i32, receivetimeout: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServerXMLHTTPRequest_Impl::setTimeouts(this, core::mem::transmute_copy(&resolvetimeout), core::mem::transmute_copy(&connecttimeout), core::mem::transmute_copy(&sendtimeout), core::mem::transmute_copy(&receivetimeout)).into() } - unsafe extern "system" fn waitForResponse(this: *mut core::ffi::c_void, timeoutinseconds: core::mem::MaybeUninit, issuccessful: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IServerXMLHTTPRequest_Impl, - { + unsafe extern "system" fn waitForResponse(this: *mut core::ffi::c_void, timeoutinseconds: core::mem::MaybeUninit, issuccessful: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IServerXMLHTTPRequest_Impl::waitForResponse(this, core::mem::transmute(&timeoutinseconds)) { Ok(ok__) => { @@ -3019,10 +2323,7 @@ impl IServerXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getOption(this: *mut core::ffi::c_void, option: SERVERXMLHTTP_OPTION, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IServerXMLHTTPRequest_Impl, - { + unsafe extern "system" fn getOption(this: *mut core::ffi::c_void, option: SERVERXMLHTTP_OPTION, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IServerXMLHTTPRequest_Impl::getOption(this, core::mem::transmute_copy(&option)) { Ok(ok__) => { @@ -3032,10 +2333,7 @@ impl IServerXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setOption(this: *mut core::ffi::c_void, option: SERVERXMLHTTP_OPTION, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IServerXMLHTTPRequest_Impl, - { + unsafe extern "system" fn setOption(this: *mut core::ffi::c_void, option: SERVERXMLHTTP_OPTION, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServerXMLHTTPRequest_Impl::setOption(this, core::mem::transmute_copy(&option), core::mem::transmute(&value)).into() } @@ -3060,21 +2358,12 @@ pub trait IServerXMLHTTPRequest2_Impl: Sized + IServerXMLHTTPRequest_Impl { impl windows_core::RuntimeName for IServerXMLHTTPRequest2 {} #[cfg(feature = "Win32_System_Com")] impl IServerXMLHTTPRequest2_Vtbl { - pub const fn new() -> IServerXMLHTTPRequest2_Vtbl - where - Identity: IServerXMLHTTPRequest2_Impl, - { - unsafe extern "system" fn setProxy(this: *mut core::ffi::c_void, proxysetting: SXH_PROXY_SETTING, varproxyserver: core::mem::MaybeUninit, varbypasslist: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IServerXMLHTTPRequest2_Impl, - { + pub const fn new() -> IServerXMLHTTPRequest2_Vtbl { + unsafe extern "system" fn setProxy(this: *mut core::ffi::c_void, proxysetting: SXH_PROXY_SETTING, varproxyserver: core::mem::MaybeUninit, varbypasslist: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServerXMLHTTPRequest2_Impl::setProxy(this, core::mem::transmute_copy(&proxysetting), core::mem::transmute(&varproxyserver), core::mem::transmute(&varbypasslist)).into() } - unsafe extern "system" fn setProxyCredentials(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IServerXMLHTTPRequest2_Impl, - { + unsafe extern "system" fn setProxyCredentials(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServerXMLHTTPRequest2_Impl::setProxyCredentials(this, core::mem::transmute(&bstrusername), core::mem::transmute(&bstrpassword)).into() } @@ -3106,21 +2395,12 @@ pub trait IVBMXNamespaceManager_Impl: Sized + super::super::super::System::Com:: impl windows_core::RuntimeName for IVBMXNamespaceManager {} #[cfg(feature = "Win32_System_Com")] impl IVBMXNamespaceManager_Vtbl { - pub const fn new() -> IVBMXNamespaceManager_Vtbl - where - Identity: IVBMXNamespaceManager_Impl, - { - unsafe extern "system" fn SetallowOverride(this: *mut core::ffi::c_void, foverride: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + pub const fn new() -> IVBMXNamespaceManager_Vtbl { + unsafe extern "system" fn SetallowOverride(this: *mut core::ffi::c_void, foverride: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBMXNamespaceManager_Impl::SetallowOverride(this, core::mem::transmute_copy(&foverride)).into() } - unsafe extern "system" fn allowOverride(this: *mut core::ffi::c_void, foverride: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + unsafe extern "system" fn allowOverride(this: *mut core::ffi::c_void, foverride: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBMXNamespaceManager_Impl::allowOverride(this) { Ok(ok__) => { @@ -3130,45 +2410,27 @@ impl IVBMXNamespaceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBMXNamespaceManager_Impl::reset(this).into() } - unsafe extern "system" fn pushContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + unsafe extern "system" fn pushContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBMXNamespaceManager_Impl::pushContext(this).into() } - unsafe extern "system" fn pushNodeContext(this: *mut core::ffi::c_void, contextnode: *mut core::ffi::c_void, fdeep: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + unsafe extern "system" fn pushNodeContext(this: *mut core::ffi::c_void, contextnode: *mut core::ffi::c_void, fdeep: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBMXNamespaceManager_Impl::pushNodeContext(this, windows_core::from_raw_borrowed(&contextnode), core::mem::transmute_copy(&fdeep)).into() } - unsafe extern "system" fn popContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + unsafe extern "system" fn popContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBMXNamespaceManager_Impl::popContext(this).into() } - unsafe extern "system" fn declarePrefix(this: *mut core::ffi::c_void, prefix: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + unsafe extern "system" fn declarePrefix(this: *mut core::ffi::c_void, prefix: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBMXNamespaceManager_Impl::declarePrefix(this, core::mem::transmute(&prefix), core::mem::transmute(&namespaceuri)).into() } - unsafe extern "system" fn getDeclaredPrefixes(this: *mut core::ffi::c_void, prefixes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + unsafe extern "system" fn getDeclaredPrefixes(this: *mut core::ffi::c_void, prefixes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBMXNamespaceManager_Impl::getDeclaredPrefixes(this) { Ok(ok__) => { @@ -3178,10 +2440,7 @@ impl IVBMXNamespaceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getPrefixes(this: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit, prefixes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + unsafe extern "system" fn getPrefixes(this: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit, prefixes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBMXNamespaceManager_Impl::getPrefixes(this, core::mem::transmute(&namespaceuri)) { Ok(ok__) => { @@ -3191,10 +2450,7 @@ impl IVBMXNamespaceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getURI(this: *mut core::ffi::c_void, prefix: core::mem::MaybeUninit, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + unsafe extern "system" fn getURI(this: *mut core::ffi::c_void, prefix: core::mem::MaybeUninit, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBMXNamespaceManager_Impl::getURI(this, core::mem::transmute(&prefix)) { Ok(ok__) => { @@ -3204,10 +2460,7 @@ impl IVBMXNamespaceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getURIFromNode(this: *mut core::ffi::c_void, strprefix: core::mem::MaybeUninit, contextnode: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBMXNamespaceManager_Impl, - { + unsafe extern "system" fn getURIFromNode(this: *mut core::ffi::c_void, strprefix: core::mem::MaybeUninit, contextnode: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBMXNamespaceManager_Impl::getURIFromNode(this, core::mem::transmute(&strprefix), windows_core::from_raw_borrowed(&contextnode)) { Ok(ok__) => { @@ -3255,14 +2508,8 @@ pub trait IVBSAXAttributes_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for IVBSAXAttributes {} #[cfg(feature = "Win32_System_Com")] impl IVBSAXAttributes_Vtbl { - pub const fn new() -> IVBSAXAttributes_Vtbl - where - Identity: IVBSAXAttributes_Impl, - { - unsafe extern "system" fn length(this: *mut core::ffi::c_void, nlength: *mut i32) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + pub const fn new() -> IVBSAXAttributes_Vtbl { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, nlength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::length(this) { Ok(ok__) => { @@ -3272,10 +2519,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getURI(this: *mut core::ffi::c_void, nindex: i32, struri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getURI(this: *mut core::ffi::c_void, nindex: i32, struri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getURI(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -3285,10 +2529,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getLocalName(this: *mut core::ffi::c_void, nindex: i32, strlocalname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getLocalName(this: *mut core::ffi::c_void, nindex: i32, strlocalname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getLocalName(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -3298,10 +2539,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getQName(this: *mut core::ffi::c_void, nindex: i32, strqname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getQName(this: *mut core::ffi::c_void, nindex: i32, strqname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getQName(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -3311,10 +2549,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getIndexFromName(this: *mut core::ffi::c_void, struri: core::mem::MaybeUninit, strlocalname: core::mem::MaybeUninit, nindex: *mut i32) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getIndexFromName(this: *mut core::ffi::c_void, struri: core::mem::MaybeUninit, strlocalname: core::mem::MaybeUninit, nindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getIndexFromName(this, core::mem::transmute(&struri), core::mem::transmute(&strlocalname)) { Ok(ok__) => { @@ -3324,10 +2559,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getIndexFromQName(this: *mut core::ffi::c_void, strqname: core::mem::MaybeUninit, nindex: *mut i32) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getIndexFromQName(this: *mut core::ffi::c_void, strqname: core::mem::MaybeUninit, nindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getIndexFromQName(this, core::mem::transmute(&strqname)) { Ok(ok__) => { @@ -3337,10 +2569,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getType(this: *mut core::ffi::c_void, nindex: i32, strtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getType(this: *mut core::ffi::c_void, nindex: i32, strtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getType(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -3350,10 +2579,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getTypeFromName(this: *mut core::ffi::c_void, struri: core::mem::MaybeUninit, strlocalname: core::mem::MaybeUninit, strtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getTypeFromName(this: *mut core::ffi::c_void, struri: core::mem::MaybeUninit, strlocalname: core::mem::MaybeUninit, strtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getTypeFromName(this, core::mem::transmute(&struri), core::mem::transmute(&strlocalname)) { Ok(ok__) => { @@ -3363,10 +2589,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getTypeFromQName(this: *mut core::ffi::c_void, strqname: core::mem::MaybeUninit, strtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getTypeFromQName(this: *mut core::ffi::c_void, strqname: core::mem::MaybeUninit, strtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getTypeFromQName(this, core::mem::transmute(&strqname)) { Ok(ok__) => { @@ -3376,10 +2599,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getValue(this: *mut core::ffi::c_void, nindex: i32, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getValue(this: *mut core::ffi::c_void, nindex: i32, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getValue(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -3389,10 +2609,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getValueFromName(this: *mut core::ffi::c_void, struri: core::mem::MaybeUninit, strlocalname: core::mem::MaybeUninit, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getValueFromName(this: *mut core::ffi::c_void, struri: core::mem::MaybeUninit, strlocalname: core::mem::MaybeUninit, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getValueFromName(this, core::mem::transmute(&struri), core::mem::transmute(&strlocalname)) { Ok(ok__) => { @@ -3402,10 +2619,7 @@ impl IVBSAXAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getValueFromQName(this: *mut core::ffi::c_void, strqname: core::mem::MaybeUninit, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXAttributes_Impl, - { + unsafe extern "system" fn getValueFromQName(this: *mut core::ffi::c_void, strqname: core::mem::MaybeUninit, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXAttributes_Impl::getValueFromQName(this, core::mem::transmute(&strqname)) { Ok(ok__) => { @@ -3453,84 +2667,48 @@ pub trait IVBSAXContentHandler_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for IVBSAXContentHandler {} #[cfg(feature = "Win32_System_Com")] impl IVBSAXContentHandler_Vtbl { - pub const fn new() -> IVBSAXContentHandler_Vtbl - where - Identity: IVBSAXContentHandler_Impl, - { - unsafe extern "system" fn putref_documentLocator(this: *mut core::ffi::c_void, olocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + pub const fn new() -> IVBSAXContentHandler_Vtbl { + unsafe extern "system" fn putref_documentLocator(this: *mut core::ffi::c_void, olocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::putref_documentLocator(this, windows_core::from_raw_borrowed(&olocator)).into() } - unsafe extern "system" fn startDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + unsafe extern "system" fn startDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::startDocument(this).into() } - unsafe extern "system" fn endDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + unsafe extern "system" fn endDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::endDocument(this).into() } - unsafe extern "system" fn startPrefixMapping(this: *mut core::ffi::c_void, strprefix: *mut core::mem::MaybeUninit, struri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + unsafe extern "system" fn startPrefixMapping(this: *mut core::ffi::c_void, strprefix: *mut core::mem::MaybeUninit, struri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::startPrefixMapping(this, core::mem::transmute_copy(&strprefix), core::mem::transmute_copy(&struri)).into() } - unsafe extern "system" fn endPrefixMapping(this: *mut core::ffi::c_void, strprefix: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + unsafe extern "system" fn endPrefixMapping(this: *mut core::ffi::c_void, strprefix: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::endPrefixMapping(this, core::mem::transmute_copy(&strprefix)).into() } - unsafe extern "system" fn startElement(this: *mut core::ffi::c_void, strnamespaceuri: *mut core::mem::MaybeUninit, strlocalname: *mut core::mem::MaybeUninit, strqname: *mut core::mem::MaybeUninit, oattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + unsafe extern "system" fn startElement(this: *mut core::ffi::c_void, strnamespaceuri: *mut core::mem::MaybeUninit, strlocalname: *mut core::mem::MaybeUninit, strqname: *mut core::mem::MaybeUninit, oattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::startElement(this, core::mem::transmute_copy(&strnamespaceuri), core::mem::transmute_copy(&strlocalname), core::mem::transmute_copy(&strqname), windows_core::from_raw_borrowed(&oattributes)).into() } - unsafe extern "system" fn endElement(this: *mut core::ffi::c_void, strnamespaceuri: *mut core::mem::MaybeUninit, strlocalname: *mut core::mem::MaybeUninit, strqname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + unsafe extern "system" fn endElement(this: *mut core::ffi::c_void, strnamespaceuri: *mut core::mem::MaybeUninit, strlocalname: *mut core::mem::MaybeUninit, strqname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::endElement(this, core::mem::transmute_copy(&strnamespaceuri), core::mem::transmute_copy(&strlocalname), core::mem::transmute_copy(&strqname)).into() } - unsafe extern "system" fn characters(this: *mut core::ffi::c_void, strchars: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + unsafe extern "system" fn characters(this: *mut core::ffi::c_void, strchars: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::characters(this, core::mem::transmute_copy(&strchars)).into() } - unsafe extern "system" fn ignorableWhitespace(this: *mut core::ffi::c_void, strchars: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + unsafe extern "system" fn ignorableWhitespace(this: *mut core::ffi::c_void, strchars: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::ignorableWhitespace(this, core::mem::transmute_copy(&strchars)).into() } - unsafe extern "system" fn processingInstruction(this: *mut core::ffi::c_void, strtarget: *mut core::mem::MaybeUninit, strdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + unsafe extern "system" fn processingInstruction(this: *mut core::ffi::c_void, strtarget: *mut core::mem::MaybeUninit, strdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::processingInstruction(this, core::mem::transmute_copy(&strtarget), core::mem::transmute_copy(&strdata)).into() } - unsafe extern "system" fn skippedEntity(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXContentHandler_Impl, - { + unsafe extern "system" fn skippedEntity(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXContentHandler_Impl::skippedEntity(this, core::mem::transmute_copy(&strname)).into() } @@ -3562,21 +2740,12 @@ pub trait IVBSAXDTDHandler_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for IVBSAXDTDHandler {} #[cfg(feature = "Win32_System_Com")] impl IVBSAXDTDHandler_Vtbl { - pub const fn new() -> IVBSAXDTDHandler_Vtbl - where - Identity: IVBSAXDTDHandler_Impl, - { - unsafe extern "system" fn notationDecl(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strpublicid: *mut core::mem::MaybeUninit, strsystemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXDTDHandler_Impl, - { + pub const fn new() -> IVBSAXDTDHandler_Vtbl { + unsafe extern "system" fn notationDecl(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strpublicid: *mut core::mem::MaybeUninit, strsystemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXDTDHandler_Impl::notationDecl(this, core::mem::transmute_copy(&strname), core::mem::transmute_copy(&strpublicid), core::mem::transmute_copy(&strsystemid)).into() } - unsafe extern "system" fn unparsedEntityDecl(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strpublicid: *mut core::mem::MaybeUninit, strsystemid: *mut core::mem::MaybeUninit, strnotationname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXDTDHandler_Impl, - { + unsafe extern "system" fn unparsedEntityDecl(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strpublicid: *mut core::mem::MaybeUninit, strsystemid: *mut core::mem::MaybeUninit, strnotationname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXDTDHandler_Impl::unparsedEntityDecl(this, core::mem::transmute_copy(&strname), core::mem::transmute_copy(&strpublicid), core::mem::transmute_copy(&strsystemid), core::mem::transmute_copy(&strnotationname)).into() } @@ -3601,35 +2770,20 @@ pub trait IVBSAXDeclHandler_Impl: Sized + super::super::super::System::Com::IDis impl windows_core::RuntimeName for IVBSAXDeclHandler {} #[cfg(feature = "Win32_System_Com")] impl IVBSAXDeclHandler_Vtbl { - pub const fn new() -> IVBSAXDeclHandler_Vtbl - where - Identity: IVBSAXDeclHandler_Impl, - { - unsafe extern "system" fn elementDecl(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strmodel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXDeclHandler_Impl, - { + pub const fn new() -> IVBSAXDeclHandler_Vtbl { + unsafe extern "system" fn elementDecl(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strmodel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXDeclHandler_Impl::elementDecl(this, core::mem::transmute_copy(&strname), core::mem::transmute_copy(&strmodel)).into() } - unsafe extern "system" fn attributeDecl(this: *mut core::ffi::c_void, strelementname: *mut core::mem::MaybeUninit, strattributename: *mut core::mem::MaybeUninit, strtype: *mut core::mem::MaybeUninit, strvaluedefault: *mut core::mem::MaybeUninit, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXDeclHandler_Impl, - { + unsafe extern "system" fn attributeDecl(this: *mut core::ffi::c_void, strelementname: *mut core::mem::MaybeUninit, strattributename: *mut core::mem::MaybeUninit, strtype: *mut core::mem::MaybeUninit, strvaluedefault: *mut core::mem::MaybeUninit, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXDeclHandler_Impl::attributeDecl(this, 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(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXDeclHandler_Impl, - { + unsafe extern "system" fn internalEntityDecl(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXDeclHandler_Impl::internalEntityDecl(this, core::mem::transmute_copy(&strname), core::mem::transmute_copy(&strvalue)).into() } - unsafe extern "system" fn externalEntityDecl(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strpublicid: *mut core::mem::MaybeUninit, strsystemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXDeclHandler_Impl, - { + unsafe extern "system" fn externalEntityDecl(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strpublicid: *mut core::mem::MaybeUninit, strsystemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXDeclHandler_Impl::externalEntityDecl(this, core::mem::transmute_copy(&strname), core::mem::transmute_copy(&strpublicid), core::mem::transmute_copy(&strsystemid)).into() } @@ -3653,14 +2807,8 @@ pub trait IVBSAXEntityResolver_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for IVBSAXEntityResolver {} #[cfg(feature = "Win32_System_Com")] impl IVBSAXEntityResolver_Vtbl { - pub const fn new() -> IVBSAXEntityResolver_Vtbl - where - Identity: IVBSAXEntityResolver_Impl, - { - unsafe extern "system" fn resolveEntity(this: *mut core::ffi::c_void, strpublicid: *mut core::mem::MaybeUninit, strsystemid: *mut core::mem::MaybeUninit, varinput: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXEntityResolver_Impl, - { + pub const fn new() -> IVBSAXEntityResolver_Vtbl { + unsafe extern "system" fn resolveEntity(this: *mut core::ffi::c_void, strpublicid: *mut core::mem::MaybeUninit, strsystemid: *mut core::mem::MaybeUninit, varinput: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXEntityResolver_Impl::resolveEntity(this, core::mem::transmute_copy(&strpublicid), core::mem::transmute_copy(&strsystemid)) { Ok(ok__) => { @@ -3686,28 +2834,16 @@ pub trait IVBSAXErrorHandler_Impl: Sized + super::super::super::System::Com::IDi impl windows_core::RuntimeName for IVBSAXErrorHandler {} #[cfg(feature = "Win32_System_Com")] impl IVBSAXErrorHandler_Vtbl { - pub const fn new() -> IVBSAXErrorHandler_Vtbl - where - Identity: IVBSAXErrorHandler_Impl, - { - unsafe extern "system" fn error(this: *mut core::ffi::c_void, olocator: *mut core::ffi::c_void, strerrormessage: *mut core::mem::MaybeUninit, nerrorcode: i32) -> windows_core::HRESULT - where - Identity: IVBSAXErrorHandler_Impl, - { + pub const fn new() -> IVBSAXErrorHandler_Vtbl { + unsafe extern "system" fn error(this: *mut core::ffi::c_void, olocator: *mut core::ffi::c_void, strerrormessage: *mut core::mem::MaybeUninit, nerrorcode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXErrorHandler_Impl::error(this, windows_core::from_raw_borrowed(&olocator), core::mem::transmute_copy(&strerrormessage), core::mem::transmute_copy(&nerrorcode)).into() } - unsafe extern "system" fn fatalError(this: *mut core::ffi::c_void, olocator: *mut core::ffi::c_void, strerrormessage: *mut core::mem::MaybeUninit, nerrorcode: i32) -> windows_core::HRESULT - where - Identity: IVBSAXErrorHandler_Impl, - { + unsafe extern "system" fn fatalError(this: *mut core::ffi::c_void, olocator: *mut core::ffi::c_void, strerrormessage: *mut core::mem::MaybeUninit, nerrorcode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXErrorHandler_Impl::fatalError(this, windows_core::from_raw_borrowed(&olocator), core::mem::transmute_copy(&strerrormessage), core::mem::transmute_copy(&nerrorcode)).into() } - unsafe extern "system" fn ignorableWarning(this: *mut core::ffi::c_void, olocator: *mut core::ffi::c_void, strerrormessage: *mut core::mem::MaybeUninit, nerrorcode: i32) -> windows_core::HRESULT - where - Identity: IVBSAXErrorHandler_Impl, - { + unsafe extern "system" fn ignorableWarning(this: *mut core::ffi::c_void, olocator: *mut core::ffi::c_void, strerrormessage: *mut core::mem::MaybeUninit, nerrorcode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXErrorHandler_Impl::ignorableWarning(this, windows_core::from_raw_borrowed(&olocator), core::mem::transmute_copy(&strerrormessage), core::mem::transmute_copy(&nerrorcode)).into() } @@ -3736,56 +2872,32 @@ pub trait IVBSAXLexicalHandler_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for IVBSAXLexicalHandler {} #[cfg(feature = "Win32_System_Com")] impl IVBSAXLexicalHandler_Vtbl { - pub const fn new() -> IVBSAXLexicalHandler_Vtbl - where - Identity: IVBSAXLexicalHandler_Impl, - { - unsafe extern "system" fn startDTD(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strpublicid: *mut core::mem::MaybeUninit, strsystemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXLexicalHandler_Impl, - { + pub const fn new() -> IVBSAXLexicalHandler_Vtbl { + unsafe extern "system" fn startDTD(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit, strpublicid: *mut core::mem::MaybeUninit, strsystemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXLexicalHandler_Impl::startDTD(this, core::mem::transmute_copy(&strname), core::mem::transmute_copy(&strpublicid), core::mem::transmute_copy(&strsystemid)).into() } - unsafe extern "system" fn endDTD(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXLexicalHandler_Impl, - { + unsafe extern "system" fn endDTD(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXLexicalHandler_Impl::endDTD(this).into() } - unsafe extern "system" fn startEntity(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXLexicalHandler_Impl, - { + unsafe extern "system" fn startEntity(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXLexicalHandler_Impl::startEntity(this, core::mem::transmute_copy(&strname)).into() } - unsafe extern "system" fn endEntity(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXLexicalHandler_Impl, - { + unsafe extern "system" fn endEntity(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXLexicalHandler_Impl::endEntity(this, core::mem::transmute_copy(&strname)).into() } - unsafe extern "system" fn startCDATA(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXLexicalHandler_Impl, - { + unsafe extern "system" fn startCDATA(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXLexicalHandler_Impl::startCDATA(this).into() } - unsafe extern "system" fn endCDATA(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXLexicalHandler_Impl, - { + unsafe extern "system" fn endCDATA(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXLexicalHandler_Impl::endCDATA(this).into() } - unsafe extern "system" fn comment(this: *mut core::ffi::c_void, strchars: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXLexicalHandler_Impl, - { + unsafe extern "system" fn comment(this: *mut core::ffi::c_void, strchars: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXLexicalHandler_Impl::comment(this, core::mem::transmute_copy(&strchars)).into() } @@ -3815,14 +2927,8 @@ pub trait IVBSAXLocator_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for IVBSAXLocator {} #[cfg(feature = "Win32_System_Com")] impl IVBSAXLocator_Vtbl { - pub const fn new() -> IVBSAXLocator_Vtbl - where - Identity: IVBSAXLocator_Impl, - { - unsafe extern "system" fn columnNumber(this: *mut core::ffi::c_void, ncolumn: *mut i32) -> windows_core::HRESULT - where - Identity: IVBSAXLocator_Impl, - { + pub const fn new() -> IVBSAXLocator_Vtbl { + unsafe extern "system" fn columnNumber(this: *mut core::ffi::c_void, ncolumn: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXLocator_Impl::columnNumber(this) { Ok(ok__) => { @@ -3832,10 +2938,7 @@ impl IVBSAXLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn lineNumber(this: *mut core::ffi::c_void, nline: *mut i32) -> windows_core::HRESULT - where - Identity: IVBSAXLocator_Impl, - { + unsafe extern "system" fn lineNumber(this: *mut core::ffi::c_void, nline: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXLocator_Impl::lineNumber(this) { Ok(ok__) => { @@ -3845,10 +2948,7 @@ impl IVBSAXLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn publicId(this: *mut core::ffi::c_void, strpublicid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXLocator_Impl, - { + unsafe extern "system" fn publicId(this: *mut core::ffi::c_void, strpublicid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXLocator_Impl::publicId(this) { Ok(ok__) => { @@ -3858,10 +2958,7 @@ impl IVBSAXLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn systemId(this: *mut core::ffi::c_void, strsystemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXLocator_Impl, - { + unsafe extern "system" fn systemId(this: *mut core::ffi::c_void, strsystemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXLocator_Impl::systemId(this) { Ok(ok__) => { @@ -3892,14 +2989,8 @@ pub trait IVBSAXXMLFilter_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IVBSAXXMLFilter {} #[cfg(feature = "Win32_System_Com")] impl IVBSAXXMLFilter_Vtbl { - pub const fn new() -> IVBSAXXMLFilter_Vtbl - where - Identity: IVBSAXXMLFilter_Impl, - { - unsafe extern "system" fn parent(this: *mut core::ffi::c_void, oreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXXMLFilter_Impl, - { + pub const fn new() -> IVBSAXXMLFilter_Vtbl { + unsafe extern "system" fn parent(this: *mut core::ffi::c_void, oreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXXMLFilter_Impl::parent(this) { Ok(ok__) => { @@ -3909,10 +3000,7 @@ impl IVBSAXXMLFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_parent(this: *mut core::ffi::c_void, oreader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXXMLFilter_Impl, - { + unsafe extern "system" fn putref_parent(this: *mut core::ffi::c_void, oreader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLFilter_Impl::putref_parent(this, windows_core::from_raw_borrowed(&oreader)).into() } @@ -3951,14 +3039,8 @@ pub trait IVBSAXXMLReader_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IVBSAXXMLReader {} #[cfg(feature = "Win32_System_Com")] impl IVBSAXXMLReader_Vtbl { - pub const fn new() -> IVBSAXXMLReader_Vtbl - where - Identity: IVBSAXXMLReader_Impl, - { - unsafe extern "system" fn getFeature(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + pub const fn new() -> IVBSAXXMLReader_Vtbl { + unsafe extern "system" fn getFeature(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXXMLReader_Impl::getFeature(this, core::mem::transmute(&strname)) { Ok(ok__) => { @@ -3968,17 +3050,11 @@ impl IVBSAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putFeature(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn putFeature(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, fvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLReader_Impl::putFeature(this, core::mem::transmute(&strname), core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn getProperty(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn getProperty(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXXMLReader_Impl::getProperty(this, core::mem::transmute(&strname)) { Ok(ok__) => { @@ -3988,17 +3064,11 @@ impl IVBSAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putProperty(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn putProperty(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLReader_Impl::putProperty(this, core::mem::transmute(&strname), core::mem::transmute(&varvalue)).into() } - unsafe extern "system" fn entityResolver(this: *mut core::ffi::c_void, oresolver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn entityResolver(this: *mut core::ffi::c_void, oresolver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXXMLReader_Impl::entityResolver(this) { Ok(ok__) => { @@ -4008,17 +3078,11 @@ impl IVBSAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_entityResolver(this: *mut core::ffi::c_void, oresolver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn putref_entityResolver(this: *mut core::ffi::c_void, oresolver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLReader_Impl::putref_entityResolver(this, windows_core::from_raw_borrowed(&oresolver)).into() } - unsafe extern "system" fn contentHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn contentHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXXMLReader_Impl::contentHandler(this) { Ok(ok__) => { @@ -4028,17 +3092,11 @@ impl IVBSAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_contentHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn putref_contentHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLReader_Impl::putref_contentHandler(this, windows_core::from_raw_borrowed(&ohandler)).into() } - unsafe extern "system" fn dtdHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn dtdHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXXMLReader_Impl::dtdHandler(this) { Ok(ok__) => { @@ -4048,17 +3106,11 @@ impl IVBSAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_dtdHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn putref_dtdHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLReader_Impl::putref_dtdHandler(this, windows_core::from_raw_borrowed(&ohandler)).into() } - unsafe extern "system" fn errorHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn errorHandler(this: *mut core::ffi::c_void, ohandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXXMLReader_Impl::errorHandler(this) { Ok(ok__) => { @@ -4068,17 +3120,11 @@ impl IVBSAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_errorHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn putref_errorHandler(this: *mut core::ffi::c_void, ohandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLReader_Impl::putref_errorHandler(this, windows_core::from_raw_borrowed(&ohandler)).into() } - unsafe extern "system" fn baseURL(this: *mut core::ffi::c_void, strbaseurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn baseURL(this: *mut core::ffi::c_void, strbaseurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXXMLReader_Impl::baseURL(this) { Ok(ok__) => { @@ -4088,17 +3134,11 @@ impl IVBSAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetbaseURL(this: *mut core::ffi::c_void, strbaseurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn SetbaseURL(this: *mut core::ffi::c_void, strbaseurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLReader_Impl::SetbaseURL(this, core::mem::transmute(&strbaseurl)).into() } - unsafe extern "system" fn secureBaseURL(this: *mut core::ffi::c_void, strsecurebaseurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn secureBaseURL(this: *mut core::ffi::c_void, strsecurebaseurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBSAXXMLReader_Impl::secureBaseURL(this) { Ok(ok__) => { @@ -4108,24 +3148,15 @@ impl IVBSAXXMLReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetsecureBaseURL(this: *mut core::ffi::c_void, strsecurebaseurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn SetsecureBaseURL(this: *mut core::ffi::c_void, strsecurebaseurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLReader_Impl::SetsecureBaseURL(this, core::mem::transmute(&strsecurebaseurl)).into() } - unsafe extern "system" fn parse(this: *mut core::ffi::c_void, varinput: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn parse(this: *mut core::ffi::c_void, varinput: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLReader_Impl::parse(this, core::mem::transmute(&varinput)).into() } - unsafe extern "system" fn parseURL(this: *mut core::ffi::c_void, strurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVBSAXXMLReader_Impl, - { + unsafe extern "system" fn parseURL(this: *mut core::ffi::c_void, strurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBSAXXMLReader_Impl::parseURL(this, core::mem::transmute(&strurl)).into() } @@ -4164,14 +3195,8 @@ pub trait IXMLAttribute_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for IXMLAttribute {} #[cfg(feature = "Win32_System_Com")] impl IXMLAttribute_Vtbl { - pub const fn new() -> IXMLAttribute_Vtbl - where - Identity: IXMLAttribute_Impl, - { - unsafe extern "system" fn name(this: *mut core::ffi::c_void, n: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLAttribute_Impl, - { + pub const fn new() -> IXMLAttribute_Vtbl { + unsafe extern "system" fn name(this: *mut core::ffi::c_void, n: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLAttribute_Impl::name(this) { Ok(ok__) => { @@ -4181,10 +3206,7 @@ impl IXMLAttribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn value(this: *mut core::ffi::c_void, v: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLAttribute_Impl, - { + unsafe extern "system" fn value(this: *mut core::ffi::c_void, v: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLAttribute_Impl::value(this) { Ok(ok__) => { @@ -4214,14 +3236,8 @@ pub trait IXMLDOMAttribute_Impl: Sized + IXMLDOMNode_Impl { impl windows_core::RuntimeName for IXMLDOMAttribute {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMAttribute_Vtbl { - pub const fn new() -> IXMLDOMAttribute_Vtbl - where - Identity: IXMLDOMAttribute_Impl, - { - unsafe extern "system" fn name(this: *mut core::ffi::c_void, attributename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMAttribute_Impl, - { + pub const fn new() -> IXMLDOMAttribute_Vtbl { + unsafe extern "system" fn name(this: *mut core::ffi::c_void, attributename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMAttribute_Impl::name(this) { Ok(ok__) => { @@ -4231,10 +3247,7 @@ impl IXMLDOMAttribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn value(this: *mut core::ffi::c_void, attributevalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMAttribute_Impl, - { + unsafe extern "system" fn value(this: *mut core::ffi::c_void, attributevalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMAttribute_Impl::value(this) { Ok(ok__) => { @@ -4244,10 +3257,7 @@ impl IXMLDOMAttribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setvalue(this: *mut core::ffi::c_void, attributevalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMAttribute_Impl, - { + unsafe extern "system" fn Setvalue(this: *mut core::ffi::c_void, attributevalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMAttribute_Impl::Setvalue(this, core::mem::transmute(&attributevalue)).into() } @@ -4268,10 +3278,7 @@ pub trait IXMLDOMCDATASection_Impl: Sized + IXMLDOMText_Impl {} impl windows_core::RuntimeName for IXMLDOMCDATASection {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMCDATASection_Vtbl { - pub const fn new() -> IXMLDOMCDATASection_Vtbl - where - Identity: IXMLDOMCDATASection_Impl, - { + pub const fn new() -> IXMLDOMCDATASection_Vtbl { Self { base__: IXMLDOMText_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -4293,14 +3300,8 @@ pub trait IXMLDOMCharacterData_Impl: Sized + IXMLDOMNode_Impl { impl windows_core::RuntimeName for IXMLDOMCharacterData {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMCharacterData_Vtbl { - pub const fn new() -> IXMLDOMCharacterData_Vtbl - where - Identity: IXMLDOMCharacterData_Impl, - { - unsafe extern "system" fn data(this: *mut core::ffi::c_void, data: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMCharacterData_Impl, - { + pub const fn new() -> IXMLDOMCharacterData_Vtbl { + unsafe extern "system" fn data(this: *mut core::ffi::c_void, data: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMCharacterData_Impl::data(this) { Ok(ok__) => { @@ -4310,17 +3311,11 @@ impl IXMLDOMCharacterData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setdata(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMCharacterData_Impl, - { + unsafe extern "system" fn Setdata(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMCharacterData_Impl::Setdata(this, core::mem::transmute(&data)).into() } - unsafe extern "system" fn length(this: *mut core::ffi::c_void, datalength: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMCharacterData_Impl, - { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, datalength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMCharacterData_Impl::length(this) { Ok(ok__) => { @@ -4330,10 +3325,7 @@ impl IXMLDOMCharacterData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn substringData(this: *mut core::ffi::c_void, offset: i32, count: i32, data: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMCharacterData_Impl, - { + unsafe extern "system" fn substringData(this: *mut core::ffi::c_void, offset: i32, count: i32, data: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMCharacterData_Impl::substringData(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4343,31 +3335,19 @@ impl IXMLDOMCharacterData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn appendData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMCharacterData_Impl, - { + unsafe extern "system" fn appendData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMCharacterData_Impl::appendData(this, core::mem::transmute(&data)).into() } - unsafe extern "system" fn insertData(this: *mut core::ffi::c_void, offset: i32, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMCharacterData_Impl, - { + unsafe extern "system" fn insertData(this: *mut core::ffi::c_void, offset: i32, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMCharacterData_Impl::insertData(this, core::mem::transmute_copy(&offset), core::mem::transmute(&data)).into() } - unsafe extern "system" fn deleteData(this: *mut core::ffi::c_void, offset: i32, count: i32) -> windows_core::HRESULT - where - Identity: IXMLDOMCharacterData_Impl, - { + unsafe extern "system" fn deleteData(this: *mut core::ffi::c_void, offset: i32, count: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMCharacterData_Impl::deleteData(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn replaceData(this: *mut core::ffi::c_void, offset: i32, count: i32, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMCharacterData_Impl, - { + unsafe extern "system" fn replaceData(this: *mut core::ffi::c_void, offset: i32, count: i32, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMCharacterData_Impl::replaceData(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&count), core::mem::transmute(&data)).into() } @@ -4393,10 +3373,7 @@ pub trait IXMLDOMComment_Impl: Sized + IXMLDOMCharacterData_Impl {} impl windows_core::RuntimeName for IXMLDOMComment {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMComment_Vtbl { - pub const fn new() -> IXMLDOMComment_Vtbl - where - Identity: IXMLDOMComment_Impl, - { + pub const fn new() -> IXMLDOMComment_Vtbl { Self { base__: IXMLDOMCharacterData_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -4443,14 +3420,8 @@ pub trait IXMLDOMDocument_Impl: Sized + IXMLDOMNode_Impl { impl windows_core::RuntimeName for IXMLDOMDocument {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocument_Vtbl { - pub const fn new() -> IXMLDOMDocument_Vtbl - where - Identity: IXMLDOMDocument_Impl, - { - unsafe extern "system" fn doctype(this: *mut core::ffi::c_void, documenttype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + pub const fn new() -> IXMLDOMDocument_Vtbl { + unsafe extern "system" fn doctype(this: *mut core::ffi::c_void, documenttype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::doctype(this) { Ok(ok__) => { @@ -4460,10 +3431,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn implementation(this: *mut core::ffi::c_void, r#impl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn implementation(this: *mut core::ffi::c_void, r#impl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::implementation(this) { Ok(ok__) => { @@ -4473,10 +3441,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn documentElement(this: *mut core::ffi::c_void, domelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn documentElement(this: *mut core::ffi::c_void, domelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::documentElement(this) { Ok(ok__) => { @@ -4486,17 +3451,11 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_documentElement(this: *mut core::ffi::c_void, domelement: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn putref_documentElement(this: *mut core::ffi::c_void, domelement: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument_Impl::putref_documentElement(this, windows_core::from_raw_borrowed(&domelement)).into() } - unsafe extern "system" fn createElement(this: *mut core::ffi::c_void, tagname: core::mem::MaybeUninit, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn createElement(this: *mut core::ffi::c_void, tagname: core::mem::MaybeUninit, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::createElement(this, core::mem::transmute(&tagname)) { Ok(ok__) => { @@ -4506,10 +3465,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createDocumentFragment(this: *mut core::ffi::c_void, docfrag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn createDocumentFragment(this: *mut core::ffi::c_void, docfrag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::createDocumentFragment(this) { Ok(ok__) => { @@ -4519,10 +3475,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createTextNode(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, text: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn createTextNode(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, text: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::createTextNode(this, core::mem::transmute(&data)) { Ok(ok__) => { @@ -4532,10 +3485,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createComment(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, comment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn createComment(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, comment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::createComment(this, core::mem::transmute(&data)) { Ok(ok__) => { @@ -4545,10 +3495,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createCDATASection(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, cdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn createCDATASection(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit, cdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::createCDATASection(this, core::mem::transmute(&data)) { Ok(ok__) => { @@ -4558,10 +3505,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createProcessingInstruction(this: *mut core::ffi::c_void, target: core::mem::MaybeUninit, data: core::mem::MaybeUninit, pi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn createProcessingInstruction(this: *mut core::ffi::c_void, target: core::mem::MaybeUninit, data: core::mem::MaybeUninit, pi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::createProcessingInstruction(this, core::mem::transmute(&target), core::mem::transmute(&data)) { Ok(ok__) => { @@ -4571,10 +3515,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, attribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn createAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, attribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::createAttribute(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -4584,10 +3525,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createEntityReference(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, entityref: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn createEntityReference(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, entityref: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::createEntityReference(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -4597,10 +3535,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getElementsByTagName(this: *mut core::ffi::c_void, tagname: core::mem::MaybeUninit, resultlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn getElementsByTagName(this: *mut core::ffi::c_void, tagname: core::mem::MaybeUninit, resultlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::getElementsByTagName(this, core::mem::transmute(&tagname)) { Ok(ok__) => { @@ -4610,10 +3545,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createNode(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, name: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit, node: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn createNode(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, name: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit, node: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::createNode(this, core::mem::transmute(&r#type), core::mem::transmute(&name), core::mem::transmute(&namespaceuri)) { Ok(ok__) => { @@ -4623,10 +3555,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn nodeFromID(this: *mut core::ffi::c_void, idstring: core::mem::MaybeUninit, node: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn nodeFromID(this: *mut core::ffi::c_void, idstring: core::mem::MaybeUninit, node: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::nodeFromID(this, core::mem::transmute(&idstring)) { Ok(ok__) => { @@ -4636,10 +3565,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn load(this: *mut core::ffi::c_void, xmlsource: core::mem::MaybeUninit, issuccessful: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn load(this: *mut core::ffi::c_void, xmlsource: core::mem::MaybeUninit, issuccessful: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::load(this, core::mem::transmute(&xmlsource)) { Ok(ok__) => { @@ -4649,10 +3575,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::readyState(this) { Ok(ok__) => { @@ -4662,10 +3585,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn parseError(this: *mut core::ffi::c_void, errorobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn parseError(this: *mut core::ffi::c_void, errorobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::parseError(this) { Ok(ok__) => { @@ -4675,10 +3595,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn url(this: *mut core::ffi::c_void, urlstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn url(this: *mut core::ffi::c_void, urlstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::url(this) { Ok(ok__) => { @@ -4688,10 +3605,7 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn r#async(this: *mut core::ffi::c_void, isasync: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn r#async(this: *mut core::ffi::c_void, isasync: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::r#async(this) { Ok(ok__) => { @@ -4701,24 +3615,15 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setasync(this: *mut core::ffi::c_void, isasync: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn Setasync(this: *mut core::ffi::c_void, isasync: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument_Impl::Setasync(this, core::mem::transmute_copy(&isasync)).into() } - unsafe extern "system" fn abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument_Impl::abort(this).into() } - unsafe extern "system" fn loadXML(this: *mut core::ffi::c_void, bstrxml: core::mem::MaybeUninit, issuccessful: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn loadXML(this: *mut core::ffi::c_void, bstrxml: core::mem::MaybeUninit, issuccessful: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::loadXML(this, core::mem::transmute(&bstrxml)) { Ok(ok__) => { @@ -4728,17 +3633,11 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn save(this: *mut core::ffi::c_void, destination: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn save(this: *mut core::ffi::c_void, destination: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument_Impl::save(this, core::mem::transmute(&destination)).into() } - unsafe extern "system" fn validateOnParse(this: *mut core::ffi::c_void, isvalidating: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn validateOnParse(this: *mut core::ffi::c_void, isvalidating: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::validateOnParse(this) { Ok(ok__) => { @@ -4748,17 +3647,11 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetvalidateOnParse(this: *mut core::ffi::c_void, isvalidating: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn SetvalidateOnParse(this: *mut core::ffi::c_void, isvalidating: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument_Impl::SetvalidateOnParse(this, core::mem::transmute_copy(&isvalidating)).into() } - unsafe extern "system" fn resolveExternals(this: *mut core::ffi::c_void, isresolving: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn resolveExternals(this: *mut core::ffi::c_void, isresolving: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::resolveExternals(this) { Ok(ok__) => { @@ -4768,17 +3661,11 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetresolveExternals(this: *mut core::ffi::c_void, isresolving: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn SetresolveExternals(this: *mut core::ffi::c_void, isresolving: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument_Impl::SetresolveExternals(this, core::mem::transmute_copy(&isresolving)).into() } - unsafe extern "system" fn preserveWhiteSpace(this: *mut core::ffi::c_void, ispreserving: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn preserveWhiteSpace(this: *mut core::ffi::c_void, ispreserving: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument_Impl::preserveWhiteSpace(this) { Ok(ok__) => { @@ -4788,31 +3675,19 @@ impl IXMLDOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetpreserveWhiteSpace(this: *mut core::ffi::c_void, ispreserving: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn SetpreserveWhiteSpace(this: *mut core::ffi::c_void, ispreserving: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument_Impl::SetpreserveWhiteSpace(this, core::mem::transmute_copy(&ispreserving)).into() } - unsafe extern "system" fn Setonreadystatechange(this: *mut core::ffi::c_void, readystatechangesink: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn Setonreadystatechange(this: *mut core::ffi::c_void, readystatechangesink: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument_Impl::Setonreadystatechange(this, core::mem::transmute(&readystatechangesink)).into() } - unsafe extern "system" fn Setondataavailable(this: *mut core::ffi::c_void, ondataavailablesink: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn Setondataavailable(this: *mut core::ffi::c_void, ondataavailablesink: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument_Impl::Setondataavailable(this, core::mem::transmute(&ondataavailablesink)).into() } - unsafe extern "system" fn Setontransformnode(this: *mut core::ffi::c_void, ontransformnodesink: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument_Impl, - { + unsafe extern "system" fn Setontransformnode(this: *mut core::ffi::c_void, ontransformnodesink: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument_Impl::Setontransformnode(this, core::mem::transmute(&ontransformnodesink)).into() } @@ -4870,14 +3745,8 @@ pub trait IXMLDOMDocument2_Impl: Sized + IXMLDOMDocument_Impl { impl windows_core::RuntimeName for IXMLDOMDocument2 {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocument2_Vtbl { - pub const fn new() -> IXMLDOMDocument2_Vtbl - where - Identity: IXMLDOMDocument2_Impl, - { - unsafe extern "system" fn namespaces(this: *mut core::ffi::c_void, namespacecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument2_Impl, - { + pub const fn new() -> IXMLDOMDocument2_Vtbl { + unsafe extern "system" fn namespaces(this: *mut core::ffi::c_void, namespacecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument2_Impl::namespaces(this) { Ok(ok__) => { @@ -4887,10 +3756,7 @@ impl IXMLDOMDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn schemas(this: *mut core::ffi::c_void, othercollection: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument2_Impl, - { + unsafe extern "system" fn schemas(this: *mut core::ffi::c_void, othercollection: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument2_Impl::schemas(this) { Ok(ok__) => { @@ -4900,17 +3766,11 @@ impl IXMLDOMDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_schemas(this: *mut core::ffi::c_void, othercollection: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument2_Impl, - { + unsafe extern "system" fn putref_schemas(this: *mut core::ffi::c_void, othercollection: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument2_Impl::putref_schemas(this, core::mem::transmute(&othercollection)).into() } - unsafe extern "system" fn validate(this: *mut core::ffi::c_void, errorobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument2_Impl, - { + unsafe extern "system" fn validate(this: *mut core::ffi::c_void, errorobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument2_Impl::validate(this) { Ok(ok__) => { @@ -4920,17 +3780,11 @@ impl IXMLDOMDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument2_Impl, - { + unsafe extern "system" fn setProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMDocument2_Impl::setProperty(this, core::mem::transmute(&name), core::mem::transmute(&value)).into() } - unsafe extern "system" fn getProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument2_Impl, - { + unsafe extern "system" fn getProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument2_Impl::getProperty(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -4963,14 +3817,8 @@ pub trait IXMLDOMDocument3_Impl: Sized + IXMLDOMDocument2_Impl { impl windows_core::RuntimeName for IXMLDOMDocument3 {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocument3_Vtbl { - pub const fn new() -> IXMLDOMDocument3_Vtbl - where - Identity: IXMLDOMDocument3_Impl, - { - unsafe extern "system" fn validateNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, errorobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument3_Impl, - { + pub const fn new() -> IXMLDOMDocument3_Vtbl { + unsafe extern "system" fn validateNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, errorobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument3_Impl::validateNode(this, windows_core::from_raw_borrowed(&node)) { Ok(ok__) => { @@ -4980,10 +3828,7 @@ impl IXMLDOMDocument3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn importNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, deep: super::super::super::Foundation::VARIANT_BOOL, clone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocument3_Impl, - { + unsafe extern "system" fn importNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, deep: super::super::super::Foundation::VARIANT_BOOL, clone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocument3_Impl::importNode(this, windows_core::from_raw_borrowed(&node), core::mem::transmute_copy(&deep)) { Ok(ok__) => { @@ -5009,10 +3854,7 @@ pub trait IXMLDOMDocumentFragment_Impl: Sized + IXMLDOMNode_Impl {} impl windows_core::RuntimeName for IXMLDOMDocumentFragment {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocumentFragment_Vtbl { - pub const fn new() -> IXMLDOMDocumentFragment_Vtbl - where - Identity: IXMLDOMDocumentFragment_Impl, - { + pub const fn new() -> IXMLDOMDocumentFragment_Vtbl { Self { base__: IXMLDOMNode_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -5029,14 +3871,8 @@ pub trait IXMLDOMDocumentType_Impl: Sized + IXMLDOMNode_Impl { impl windows_core::RuntimeName for IXMLDOMDocumentType {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocumentType_Vtbl { - pub const fn new() -> IXMLDOMDocumentType_Vtbl - where - Identity: IXMLDOMDocumentType_Impl, - { - unsafe extern "system" fn name(this: *mut core::ffi::c_void, rootname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMDocumentType_Impl, - { + pub const fn new() -> IXMLDOMDocumentType_Vtbl { + unsafe extern "system" fn name(this: *mut core::ffi::c_void, rootname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocumentType_Impl::name(this) { Ok(ok__) => { @@ -5046,10 +3882,7 @@ impl IXMLDOMDocumentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn entities(this: *mut core::ffi::c_void, entitymap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocumentType_Impl, - { + unsafe extern "system" fn entities(this: *mut core::ffi::c_void, entitymap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocumentType_Impl::entities(this) { Ok(ok__) => { @@ -5059,10 +3892,7 @@ impl IXMLDOMDocumentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn notations(this: *mut core::ffi::c_void, notationmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMDocumentType_Impl, - { + unsafe extern "system" fn notations(this: *mut core::ffi::c_void, notationmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMDocumentType_Impl::notations(this) { Ok(ok__) => { @@ -5099,14 +3929,8 @@ pub trait IXMLDOMElement_Impl: Sized + IXMLDOMNode_Impl { impl windows_core::RuntimeName for IXMLDOMElement {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMElement_Vtbl { - pub const fn new() -> IXMLDOMElement_Vtbl - where - Identity: IXMLDOMElement_Impl, - { - unsafe extern "system" fn tagName(this: *mut core::ffi::c_void, tagname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMElement_Impl, - { + pub const fn new() -> IXMLDOMElement_Vtbl { + unsafe extern "system" fn tagName(this: *mut core::ffi::c_void, tagname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMElement_Impl::tagName(this) { Ok(ok__) => { @@ -5116,10 +3940,7 @@ impl IXMLDOMElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMElement_Impl, - { + unsafe extern "system" fn getAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMElement_Impl::getAttribute(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -5129,24 +3950,15 @@ impl IXMLDOMElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMElement_Impl, - { + unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMElement_Impl::setAttribute(this, core::mem::transmute(&name), core::mem::transmute(&value)).into() } - unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMElement_Impl, - { + unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMElement_Impl::removeAttribute(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn getAttributeNode(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, attributenode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMElement_Impl, - { + unsafe extern "system" fn getAttributeNode(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, attributenode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMElement_Impl::getAttributeNode(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -5156,10 +3968,7 @@ impl IXMLDOMElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setAttributeNode(this: *mut core::ffi::c_void, domattribute: *mut core::ffi::c_void, attributenode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMElement_Impl, - { + unsafe extern "system" fn setAttributeNode(this: *mut core::ffi::c_void, domattribute: *mut core::ffi::c_void, attributenode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMElement_Impl::setAttributeNode(this, windows_core::from_raw_borrowed(&domattribute)) { Ok(ok__) => { @@ -5169,10 +3978,7 @@ impl IXMLDOMElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn removeAttributeNode(this: *mut core::ffi::c_void, domattribute: *mut core::ffi::c_void, attributenode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMElement_Impl, - { + unsafe extern "system" fn removeAttributeNode(this: *mut core::ffi::c_void, domattribute: *mut core::ffi::c_void, attributenode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMElement_Impl::removeAttributeNode(this, windows_core::from_raw_borrowed(&domattribute)) { Ok(ok__) => { @@ -5182,10 +3988,7 @@ impl IXMLDOMElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getElementsByTagName(this: *mut core::ffi::c_void, tagname: core::mem::MaybeUninit, resultlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMElement_Impl, - { + unsafe extern "system" fn getElementsByTagName(this: *mut core::ffi::c_void, tagname: core::mem::MaybeUninit, resultlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMElement_Impl::getElementsByTagName(this, core::mem::transmute(&tagname)) { Ok(ok__) => { @@ -5195,10 +3998,7 @@ impl IXMLDOMElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn normalize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMElement_Impl, - { + unsafe extern "system" fn normalize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMElement_Impl::normalize(this).into() } @@ -5229,14 +4029,8 @@ pub trait IXMLDOMEntity_Impl: Sized + IXMLDOMNode_Impl { impl windows_core::RuntimeName for IXMLDOMEntity {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMEntity_Vtbl { - pub const fn new() -> IXMLDOMEntity_Vtbl - where - Identity: IXMLDOMEntity_Impl, - { - unsafe extern "system" fn publicId(this: *mut core::ffi::c_void, publicid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMEntity_Impl, - { + pub const fn new() -> IXMLDOMEntity_Vtbl { + unsafe extern "system" fn publicId(this: *mut core::ffi::c_void, publicid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMEntity_Impl::publicId(this) { Ok(ok__) => { @@ -5246,10 +4040,7 @@ impl IXMLDOMEntity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn systemId(this: *mut core::ffi::c_void, systemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMEntity_Impl, - { + unsafe extern "system" fn systemId(this: *mut core::ffi::c_void, systemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMEntity_Impl::systemId(this) { Ok(ok__) => { @@ -5259,10 +4050,7 @@ impl IXMLDOMEntity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn notationName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMEntity_Impl, - { + unsafe extern "system" fn notationName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMEntity_Impl::notationName(this) { Ok(ok__) => { @@ -5289,10 +4077,7 @@ pub trait IXMLDOMEntityReference_Impl: Sized + IXMLDOMNode_Impl {} impl windows_core::RuntimeName for IXMLDOMEntityReference {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMEntityReference_Vtbl { - pub const fn new() -> IXMLDOMEntityReference_Vtbl - where - Identity: IXMLDOMEntityReference_Impl, - { + pub const fn new() -> IXMLDOMEntityReference_Vtbl { Self { base__: IXMLDOMNode_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -5307,14 +4092,8 @@ pub trait IXMLDOMImplementation_Impl: Sized + super::super::super::System::Com:: impl windows_core::RuntimeName for IXMLDOMImplementation {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMImplementation_Vtbl { - pub const fn new() -> IXMLDOMImplementation_Vtbl - where - Identity: IXMLDOMImplementation_Impl, - { - unsafe extern "system" fn hasFeature(this: *mut core::ffi::c_void, feature: core::mem::MaybeUninit, version: core::mem::MaybeUninit, hasfeature: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMImplementation_Impl, - { + pub const fn new() -> IXMLDOMImplementation_Vtbl { + unsafe extern "system" fn hasFeature(this: *mut core::ffi::c_void, feature: core::mem::MaybeUninit, version: core::mem::MaybeUninit, hasfeature: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMImplementation_Impl::hasFeature(this, core::mem::transmute(&feature), core::mem::transmute(&version)) { Ok(ok__) => { @@ -5347,14 +4126,8 @@ pub trait IXMLDOMNamedNodeMap_Impl: Sized + super::super::super::System::Com::ID impl windows_core::RuntimeName for IXMLDOMNamedNodeMap {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNamedNodeMap_Vtbl { - pub const fn new() -> IXMLDOMNamedNodeMap_Vtbl - where - Identity: IXMLDOMNamedNodeMap_Impl, - { - unsafe extern "system" fn getNamedItem(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, nameditem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNamedNodeMap_Impl, - { + pub const fn new() -> IXMLDOMNamedNodeMap_Vtbl { + unsafe extern "system" fn getNamedItem(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, nameditem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNamedNodeMap_Impl::getNamedItem(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -5364,10 +4137,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setNamedItem(this: *mut core::ffi::c_void, newitem: *mut core::ffi::c_void, nameitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNamedNodeMap_Impl, - { + unsafe extern "system" fn setNamedItem(this: *mut core::ffi::c_void, newitem: *mut core::ffi::c_void, nameitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNamedNodeMap_Impl::setNamedItem(this, windows_core::from_raw_borrowed(&newitem)) { Ok(ok__) => { @@ -5377,10 +4147,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn removeNamedItem(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, nameditem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNamedNodeMap_Impl, - { + unsafe extern "system" fn removeNamedItem(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, nameditem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNamedNodeMap_Impl::removeNamedItem(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -5390,10 +4157,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, listitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNamedNodeMap_Impl, - { + unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, listitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNamedNodeMap_Impl::get_item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5403,10 +4167,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn length(this: *mut core::ffi::c_void, listlength: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMNamedNodeMap_Impl, - { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, listlength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNamedNodeMap_Impl::length(this) { Ok(ok__) => { @@ -5416,10 +4177,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getQualifiedItem(this: *mut core::ffi::c_void, basename: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit, qualifieditem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNamedNodeMap_Impl, - { + unsafe extern "system" fn getQualifiedItem(this: *mut core::ffi::c_void, basename: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit, qualifieditem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNamedNodeMap_Impl::getQualifiedItem(this, core::mem::transmute(&basename), core::mem::transmute(&namespaceuri)) { Ok(ok__) => { @@ -5429,10 +4187,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn removeQualifiedItem(this: *mut core::ffi::c_void, basename: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit, qualifieditem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNamedNodeMap_Impl, - { + unsafe extern "system" fn removeQualifiedItem(this: *mut core::ffi::c_void, basename: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit, qualifieditem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNamedNodeMap_Impl::removeQualifiedItem(this, core::mem::transmute(&basename), core::mem::transmute(&namespaceuri)) { Ok(ok__) => { @@ -5442,10 +4197,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn nextNode(this: *mut core::ffi::c_void, nextitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNamedNodeMap_Impl, - { + unsafe extern "system" fn nextNode(this: *mut core::ffi::c_void, nextitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNamedNodeMap_Impl::nextNode(this) { Ok(ok__) => { @@ -5455,17 +4207,11 @@ impl IXMLDOMNamedNodeMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNamedNodeMap_Impl, - { + unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMNamedNodeMap_Impl::reset(this).into() } - unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNamedNodeMap_Impl, - { + unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNamedNodeMap_Impl::_newEnum(this) { Ok(ok__) => { @@ -5536,14 +4282,8 @@ pub trait IXMLDOMNode_Impl: Sized + super::super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IXMLDOMNode {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNode_Vtbl { - pub const fn new() -> IXMLDOMNode_Vtbl - where - Identity: IXMLDOMNode_Impl, - { - unsafe extern "system" fn nodeName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + pub const fn new() -> IXMLDOMNode_Vtbl { + unsafe extern "system" fn nodeName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::nodeName(this) { Ok(ok__) => { @@ -5553,10 +4293,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn nodeValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn nodeValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::nodeValue(this) { Ok(ok__) => { @@ -5566,17 +4303,11 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetnodeValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn SetnodeValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMNode_Impl::SetnodeValue(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn nodeType(this: *mut core::ffi::c_void, r#type: *mut DOMNodeType) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn nodeType(this: *mut core::ffi::c_void, r#type: *mut DOMNodeType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::nodeType(this) { Ok(ok__) => { @@ -5586,10 +4317,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn parentNode(this: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn parentNode(this: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::parentNode(this) { Ok(ok__) => { @@ -5599,10 +4327,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn childNodes(this: *mut core::ffi::c_void, childlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn childNodes(this: *mut core::ffi::c_void, childlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::childNodes(this) { Ok(ok__) => { @@ -5612,10 +4337,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn firstChild(this: *mut core::ffi::c_void, firstchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn firstChild(this: *mut core::ffi::c_void, firstchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::firstChild(this) { Ok(ok__) => { @@ -5625,10 +4347,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn lastChild(this: *mut core::ffi::c_void, lastchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn lastChild(this: *mut core::ffi::c_void, lastchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::lastChild(this) { Ok(ok__) => { @@ -5638,10 +4357,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn previousSibling(this: *mut core::ffi::c_void, previoussibling: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn previousSibling(this: *mut core::ffi::c_void, previoussibling: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::previousSibling(this) { Ok(ok__) => { @@ -5651,10 +4367,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn nextSibling(this: *mut core::ffi::c_void, nextsibling: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn nextSibling(this: *mut core::ffi::c_void, nextsibling: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::nextSibling(this) { Ok(ok__) => { @@ -5664,10 +4377,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn attributes(this: *mut core::ffi::c_void, attributemap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn attributes(this: *mut core::ffi::c_void, attributemap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::attributes(this) { Ok(ok__) => { @@ -5677,10 +4387,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn insertBefore(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, refchild: core::mem::MaybeUninit, outnewchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn insertBefore(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, refchild: core::mem::MaybeUninit, outnewchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::insertBefore(this, windows_core::from_raw_borrowed(&newchild), core::mem::transmute(&refchild)) { Ok(ok__) => { @@ -5690,10 +4397,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn replaceChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, oldchild: *mut core::ffi::c_void, outoldchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn replaceChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, oldchild: *mut core::ffi::c_void, outoldchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::replaceChild(this, windows_core::from_raw_borrowed(&newchild), windows_core::from_raw_borrowed(&oldchild)) { Ok(ok__) => { @@ -5703,10 +4407,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn removeChild(this: *mut core::ffi::c_void, childnode: *mut core::ffi::c_void, oldchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn removeChild(this: *mut core::ffi::c_void, childnode: *mut core::ffi::c_void, oldchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::removeChild(this, windows_core::from_raw_borrowed(&childnode)) { Ok(ok__) => { @@ -5716,10 +4417,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn appendChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, outnewchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn appendChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, outnewchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::appendChild(this, windows_core::from_raw_borrowed(&newchild)) { Ok(ok__) => { @@ -5729,10 +4427,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn hasChildNodes(this: *mut core::ffi::c_void, haschild: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn hasChildNodes(this: *mut core::ffi::c_void, haschild: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::hasChildNodes(this) { Ok(ok__) => { @@ -5742,10 +4437,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ownerDocument(this: *mut core::ffi::c_void, xmldomdocument: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn ownerDocument(this: *mut core::ffi::c_void, xmldomdocument: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::ownerDocument(this) { Ok(ok__) => { @@ -5755,10 +4447,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn cloneNode(this: *mut core::ffi::c_void, deep: super::super::super::Foundation::VARIANT_BOOL, cloneroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn cloneNode(this: *mut core::ffi::c_void, deep: super::super::super::Foundation::VARIANT_BOOL, cloneroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::cloneNode(this, core::mem::transmute_copy(&deep)) { Ok(ok__) => { @@ -5768,10 +4457,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn nodeTypeString(this: *mut core::ffi::c_void, nodetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn nodeTypeString(this: *mut core::ffi::c_void, nodetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::nodeTypeString(this) { Ok(ok__) => { @@ -5781,10 +4467,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn text(this: *mut core::ffi::c_void, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn text(this: *mut core::ffi::c_void, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::text(this) { Ok(ok__) => { @@ -5794,17 +4477,11 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Settext(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn Settext(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMNode_Impl::Settext(this, core::mem::transmute(&text)).into() } - unsafe extern "system" fn specified(this: *mut core::ffi::c_void, isspecified: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn specified(this: *mut core::ffi::c_void, isspecified: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::specified(this) { Ok(ok__) => { @@ -5814,10 +4491,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn definition(this: *mut core::ffi::c_void, definitionnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn definition(this: *mut core::ffi::c_void, definitionnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::definition(this) { Ok(ok__) => { @@ -5827,10 +4501,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn nodeTypedValue(this: *mut core::ffi::c_void, typedvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn nodeTypedValue(this: *mut core::ffi::c_void, typedvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::nodeTypedValue(this) { Ok(ok__) => { @@ -5840,17 +4511,11 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetnodeTypedValue(this: *mut core::ffi::c_void, typedvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn SetnodeTypedValue(this: *mut core::ffi::c_void, typedvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMNode_Impl::SetnodeTypedValue(this, core::mem::transmute(&typedvalue)).into() } - unsafe extern "system" fn dataType(this: *mut core::ffi::c_void, datatypename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn dataType(this: *mut core::ffi::c_void, datatypename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::dataType(this) { Ok(ok__) => { @@ -5860,17 +4525,11 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetdataType(this: *mut core::ffi::c_void, datatypename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn SetdataType(this: *mut core::ffi::c_void, datatypename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMNode_Impl::SetdataType(this, core::mem::transmute(&datatypename)).into() } - unsafe extern "system" fn xml(this: *mut core::ffi::c_void, xmlstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn xml(this: *mut core::ffi::c_void, xmlstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::xml(this) { Ok(ok__) => { @@ -5880,10 +4539,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn transformNode(this: *mut core::ffi::c_void, stylesheet: *mut core::ffi::c_void, xmlstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn transformNode(this: *mut core::ffi::c_void, stylesheet: *mut core::ffi::c_void, xmlstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::transformNode(this, windows_core::from_raw_borrowed(&stylesheet)) { Ok(ok__) => { @@ -5893,10 +4549,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn selectNodes(this: *mut core::ffi::c_void, querystring: core::mem::MaybeUninit, resultlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn selectNodes(this: *mut core::ffi::c_void, querystring: core::mem::MaybeUninit, resultlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::selectNodes(this, core::mem::transmute(&querystring)) { Ok(ok__) => { @@ -5906,10 +4559,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn selectSingleNode(this: *mut core::ffi::c_void, querystring: core::mem::MaybeUninit, resultnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn selectSingleNode(this: *mut core::ffi::c_void, querystring: core::mem::MaybeUninit, resultnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::selectSingleNode(this, core::mem::transmute(&querystring)) { Ok(ok__) => { @@ -5919,10 +4569,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn parsed(this: *mut core::ffi::c_void, isparsed: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn parsed(this: *mut core::ffi::c_void, isparsed: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::parsed(this) { Ok(ok__) => { @@ -5932,10 +4579,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn namespaceURI(this: *mut core::ffi::c_void, namespaceuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn namespaceURI(this: *mut core::ffi::c_void, namespaceuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::namespaceURI(this) { Ok(ok__) => { @@ -5945,10 +4589,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn prefix(this: *mut core::ffi::c_void, prefixstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn prefix(this: *mut core::ffi::c_void, prefixstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::prefix(this) { Ok(ok__) => { @@ -5958,10 +4599,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn baseName(this: *mut core::ffi::c_void, namestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn baseName(this: *mut core::ffi::c_void, namestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNode_Impl::baseName(this) { Ok(ok__) => { @@ -5971,10 +4609,7 @@ impl IXMLDOMNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn transformNodeToObject(this: *mut core::ffi::c_void, stylesheet: *mut core::ffi::c_void, outputobject: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNode_Impl, - { + unsafe extern "system" fn transformNodeToObject(this: *mut core::ffi::c_void, stylesheet: *mut core::ffi::c_void, outputobject: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMNode_Impl::transformNodeToObject(this, windows_core::from_raw_borrowed(&stylesheet), core::mem::transmute(&outputobject)).into() } @@ -6034,14 +4669,8 @@ pub trait IXMLDOMNodeList_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IXMLDOMNodeList {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNodeList_Vtbl { - pub const fn new() -> IXMLDOMNodeList_Vtbl - where - Identity: IXMLDOMNodeList_Impl, - { - unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, listitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNodeList_Impl, - { + pub const fn new() -> IXMLDOMNodeList_Vtbl { + unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, listitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNodeList_Impl::get_item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6051,10 +4680,7 @@ impl IXMLDOMNodeList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn length(this: *mut core::ffi::c_void, listlength: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMNodeList_Impl, - { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, listlength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNodeList_Impl::length(this) { Ok(ok__) => { @@ -6064,10 +4690,7 @@ impl IXMLDOMNodeList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn nextNode(this: *mut core::ffi::c_void, nextitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNodeList_Impl, - { + unsafe extern "system" fn nextNode(this: *mut core::ffi::c_void, nextitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNodeList_Impl::nextNode(this) { Ok(ok__) => { @@ -6077,17 +4700,11 @@ impl IXMLDOMNodeList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNodeList_Impl, - { + unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMNodeList_Impl::reset(this).into() } - unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMNodeList_Impl, - { + unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNodeList_Impl::_newEnum(this) { Ok(ok__) => { @@ -6119,14 +4736,8 @@ pub trait IXMLDOMNotation_Impl: Sized + IXMLDOMNode_Impl { impl windows_core::RuntimeName for IXMLDOMNotation {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNotation_Vtbl { - pub const fn new() -> IXMLDOMNotation_Vtbl - where - Identity: IXMLDOMNotation_Impl, - { - unsafe extern "system" fn publicId(this: *mut core::ffi::c_void, publicid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNotation_Impl, - { + pub const fn new() -> IXMLDOMNotation_Vtbl { + unsafe extern "system" fn publicId(this: *mut core::ffi::c_void, publicid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNotation_Impl::publicId(this) { Ok(ok__) => { @@ -6136,10 +4747,7 @@ impl IXMLDOMNotation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn systemId(this: *mut core::ffi::c_void, systemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMNotation_Impl, - { + unsafe extern "system" fn systemId(this: *mut core::ffi::c_void, systemid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMNotation_Impl::systemId(this) { Ok(ok__) => { @@ -6169,14 +4777,8 @@ pub trait IXMLDOMParseError_Impl: Sized + super::super::super::System::Com::IDis impl windows_core::RuntimeName for IXMLDOMParseError {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMParseError_Vtbl { - pub const fn new() -> IXMLDOMParseError_Vtbl - where - Identity: IXMLDOMParseError_Impl, - { - unsafe extern "system" fn errorCode(this: *mut core::ffi::c_void, errorcode: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError_Impl, - { + pub const fn new() -> IXMLDOMParseError_Vtbl { + unsafe extern "system" fn errorCode(this: *mut core::ffi::c_void, errorcode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError_Impl::errorCode(this) { Ok(ok__) => { @@ -6186,10 +4788,7 @@ impl IXMLDOMParseError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn url(this: *mut core::ffi::c_void, urlstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError_Impl, - { + unsafe extern "system" fn url(this: *mut core::ffi::c_void, urlstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError_Impl::url(this) { Ok(ok__) => { @@ -6199,10 +4798,7 @@ impl IXMLDOMParseError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn reason(this: *mut core::ffi::c_void, reasonstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError_Impl, - { + unsafe extern "system" fn reason(this: *mut core::ffi::c_void, reasonstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError_Impl::reason(this) { Ok(ok__) => { @@ -6212,10 +4808,7 @@ impl IXMLDOMParseError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn srcText(this: *mut core::ffi::c_void, sourcestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError_Impl, - { + unsafe extern "system" fn srcText(this: *mut core::ffi::c_void, sourcestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError_Impl::srcText(this) { Ok(ok__) => { @@ -6225,10 +4818,7 @@ impl IXMLDOMParseError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn line(this: *mut core::ffi::c_void, linenumber: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError_Impl, - { + unsafe extern "system" fn line(this: *mut core::ffi::c_void, linenumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError_Impl::line(this) { Ok(ok__) => { @@ -6238,10 +4828,7 @@ impl IXMLDOMParseError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn linepos(this: *mut core::ffi::c_void, lineposition: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError_Impl, - { + unsafe extern "system" fn linepos(this: *mut core::ffi::c_void, lineposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError_Impl::linepos(this) { Ok(ok__) => { @@ -6251,10 +4838,7 @@ impl IXMLDOMParseError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn filepos(this: *mut core::ffi::c_void, fileposition: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError_Impl, - { + unsafe extern "system" fn filepos(this: *mut core::ffi::c_void, fileposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError_Impl::filepos(this) { Ok(ok__) => { @@ -6290,14 +4874,8 @@ pub trait IXMLDOMParseError2_Impl: Sized + IXMLDOMParseError_Impl { impl windows_core::RuntimeName for IXMLDOMParseError2 {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMParseError2_Vtbl { - pub const fn new() -> IXMLDOMParseError2_Vtbl - where - Identity: IXMLDOMParseError2_Impl, - { - unsafe extern "system" fn errorXPath(this: *mut core::ffi::c_void, xpathexpr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError2_Impl, - { + pub const fn new() -> IXMLDOMParseError2_Vtbl { + unsafe extern "system" fn errorXPath(this: *mut core::ffi::c_void, xpathexpr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError2_Impl::errorXPath(this) { Ok(ok__) => { @@ -6307,10 +4885,7 @@ impl IXMLDOMParseError2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn allErrors(this: *mut core::ffi::c_void, allerrors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError2_Impl, - { + unsafe extern "system" fn allErrors(this: *mut core::ffi::c_void, allerrors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError2_Impl::allErrors(this) { Ok(ok__) => { @@ -6320,10 +4895,7 @@ impl IXMLDOMParseError2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn errorParameters(this: *mut core::ffi::c_void, index: i32, param1: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError2_Impl, - { + unsafe extern "system" fn errorParameters(this: *mut core::ffi::c_void, index: i32, param1: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError2_Impl::errorParameters(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6333,10 +4905,7 @@ impl IXMLDOMParseError2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn errorParametersCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMParseError2_Impl, - { + unsafe extern "system" fn errorParametersCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseError2_Impl::errorParametersCount(this) { Ok(ok__) => { @@ -6370,14 +4939,8 @@ pub trait IXMLDOMParseErrorCollection_Impl: Sized + super::super::super::System: impl windows_core::RuntimeName for IXMLDOMParseErrorCollection {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMParseErrorCollection_Vtbl { - pub const fn new() -> IXMLDOMParseErrorCollection_Vtbl - where - Identity: IXMLDOMParseErrorCollection_Impl, - { - unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, error: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMParseErrorCollection_Impl, - { + pub const fn new() -> IXMLDOMParseErrorCollection_Vtbl { + unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, index: i32, error: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseErrorCollection_Impl::get_item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6387,10 +4950,7 @@ impl IXMLDOMParseErrorCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMParseErrorCollection_Impl, - { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseErrorCollection_Impl::length(this) { Ok(ok__) => { @@ -6400,10 +4960,7 @@ impl IXMLDOMParseErrorCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn next(this: *mut core::ffi::c_void, error: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMParseErrorCollection_Impl, - { + unsafe extern "system" fn next(this: *mut core::ffi::c_void, error: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseErrorCollection_Impl::next(this) { Ok(ok__) => { @@ -6413,17 +4970,11 @@ impl IXMLDOMParseErrorCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMParseErrorCollection_Impl, - { + unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMParseErrorCollection_Impl::reset(this).into() } - unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMParseErrorCollection_Impl, - { + unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMParseErrorCollection_Impl::_newEnum(this) { Ok(ok__) => { @@ -6456,14 +5007,8 @@ pub trait IXMLDOMProcessingInstruction_Impl: Sized + IXMLDOMNode_Impl { impl windows_core::RuntimeName for IXMLDOMProcessingInstruction {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMProcessingInstruction_Vtbl { - pub const fn new() -> IXMLDOMProcessingInstruction_Vtbl - where - Identity: IXMLDOMProcessingInstruction_Impl, - { - unsafe extern "system" fn target(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMProcessingInstruction_Impl, - { + pub const fn new() -> IXMLDOMProcessingInstruction_Vtbl { + unsafe extern "system" fn target(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMProcessingInstruction_Impl::target(this) { Ok(ok__) => { @@ -6473,10 +5018,7 @@ impl IXMLDOMProcessingInstruction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn data(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMProcessingInstruction_Impl, - { + unsafe extern "system" fn data(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMProcessingInstruction_Impl::data(this) { Ok(ok__) => { @@ -6486,10 +5028,7 @@ impl IXMLDOMProcessingInstruction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setdata(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMProcessingInstruction_Impl, - { + unsafe extern "system" fn Setdata(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMProcessingInstruction_Impl::Setdata(this, core::mem::transmute(&value)).into() } @@ -6518,21 +5057,12 @@ pub trait IXMLDOMSchemaCollection_Impl: Sized + super::super::super::System::Com impl windows_core::RuntimeName for IXMLDOMSchemaCollection {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMSchemaCollection_Vtbl { - pub const fn new() -> IXMLDOMSchemaCollection_Vtbl - where - Identity: IXMLDOMSchemaCollection_Impl, - { - unsafe extern "system" fn add(this: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit, var: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection_Impl, - { + pub const fn new() -> IXMLDOMSchemaCollection_Vtbl { + unsafe extern "system" fn add(this: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit, var: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMSchemaCollection_Impl::add(this, core::mem::transmute(&namespaceuri), core::mem::transmute(&var)).into() } - unsafe extern "system" fn get(this: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit, schemanode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection_Impl, - { + unsafe extern "system" fn get(this: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit, schemanode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSchemaCollection_Impl::get(this, core::mem::transmute(&namespaceuri)) { Ok(ok__) => { @@ -6542,17 +5072,11 @@ impl IXMLDOMSchemaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn remove(this: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection_Impl, - { + unsafe extern "system" fn remove(this: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMSchemaCollection_Impl::remove(this, core::mem::transmute(&namespaceuri)).into() } - unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection_Impl, - { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSchemaCollection_Impl::length(this) { Ok(ok__) => { @@ -6562,10 +5086,7 @@ impl IXMLDOMSchemaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_namespaceURI(this: *mut core::ffi::c_void, index: i32, length: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection_Impl, - { + unsafe extern "system" fn get_namespaceURI(this: *mut core::ffi::c_void, index: i32, length: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSchemaCollection_Impl::get_namespaceURI(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6575,17 +5096,11 @@ impl IXMLDOMSchemaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn addCollection(this: *mut core::ffi::c_void, othercollection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection_Impl, - { + unsafe extern "system" fn addCollection(this: *mut core::ffi::c_void, othercollection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMSchemaCollection_Impl::addCollection(this, windows_core::from_raw_borrowed(&othercollection)).into() } - unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection_Impl, - { + unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSchemaCollection_Impl::_newEnum(this) { Ok(ok__) => { @@ -6622,28 +5137,16 @@ pub trait IXMLDOMSchemaCollection2_Impl: Sized + IXMLDOMSchemaCollection_Impl { impl windows_core::RuntimeName for IXMLDOMSchemaCollection2 {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMSchemaCollection2_Vtbl { - pub const fn new() -> IXMLDOMSchemaCollection2_Vtbl - where - Identity: IXMLDOMSchemaCollection2_Impl, - { - unsafe extern "system" fn validate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection2_Impl, - { + pub const fn new() -> IXMLDOMSchemaCollection2_Vtbl { + unsafe extern "system" fn validate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMSchemaCollection2_Impl::validate(this).into() } - unsafe extern "system" fn SetvalidateOnLoad(this: *mut core::ffi::c_void, validateonload: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection2_Impl, - { + unsafe extern "system" fn SetvalidateOnLoad(this: *mut core::ffi::c_void, validateonload: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMSchemaCollection2_Impl::SetvalidateOnLoad(this, core::mem::transmute_copy(&validateonload)).into() } - unsafe extern "system" fn validateOnLoad(this: *mut core::ffi::c_void, validateonload: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection2_Impl, - { + unsafe extern "system" fn validateOnLoad(this: *mut core::ffi::c_void, validateonload: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSchemaCollection2_Impl::validateOnLoad(this) { Ok(ok__) => { @@ -6653,10 +5156,7 @@ impl IXMLDOMSchemaCollection2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getSchema(this: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit, schema: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection2_Impl, - { + unsafe extern "system" fn getSchema(this: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit, schema: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSchemaCollection2_Impl::getSchema(this, core::mem::transmute(&namespaceuri)) { Ok(ok__) => { @@ -6666,10 +5166,7 @@ impl IXMLDOMSchemaCollection2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getDeclaration(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSchemaCollection2_Impl, - { + unsafe extern "system" fn getDeclaration(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSchemaCollection2_Impl::getDeclaration(this, windows_core::from_raw_borrowed(&node)) { Ok(ok__) => { @@ -6710,14 +5207,8 @@ pub trait IXMLDOMSelection_Impl: Sized + IXMLDOMNodeList_Impl { impl windows_core::RuntimeName for IXMLDOMSelection {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMSelection_Vtbl { - pub const fn new() -> IXMLDOMSelection_Vtbl - where - Identity: IXMLDOMSelection_Impl, - { - unsafe extern "system" fn expr(this: *mut core::ffi::c_void, expression: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + pub const fn new() -> IXMLDOMSelection_Vtbl { + unsafe extern "system" fn expr(this: *mut core::ffi::c_void, expression: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSelection_Impl::expr(this) { Ok(ok__) => { @@ -6727,17 +5218,11 @@ impl IXMLDOMSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setexpr(this: *mut core::ffi::c_void, expression: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + unsafe extern "system" fn Setexpr(this: *mut core::ffi::c_void, expression: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMSelection_Impl::Setexpr(this, core::mem::transmute(&expression)).into() } - unsafe extern "system" fn context(this: *mut core::ffi::c_void, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + unsafe extern "system" fn context(this: *mut core::ffi::c_void, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSelection_Impl::context(this) { Ok(ok__) => { @@ -6747,17 +5232,11 @@ impl IXMLDOMSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_context(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + unsafe extern "system" fn putref_context(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMSelection_Impl::putref_context(this, windows_core::from_raw_borrowed(&pnode)).into() } - unsafe extern "system" fn peekNode(this: *mut core::ffi::c_void, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + unsafe extern "system" fn peekNode(this: *mut core::ffi::c_void, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSelection_Impl::peekNode(this) { Ok(ok__) => { @@ -6767,10 +5246,7 @@ impl IXMLDOMSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn matches(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + unsafe extern "system" fn matches(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSelection_Impl::matches(this, windows_core::from_raw_borrowed(&pnode)) { Ok(ok__) => { @@ -6780,10 +5256,7 @@ impl IXMLDOMSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn removeNext(this: *mut core::ffi::c_void, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + unsafe extern "system" fn removeNext(this: *mut core::ffi::c_void, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSelection_Impl::removeNext(this) { Ok(ok__) => { @@ -6793,17 +5266,11 @@ impl IXMLDOMSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn removeAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + unsafe extern "system" fn removeAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMSelection_Impl::removeAll(this).into() } - unsafe extern "system" fn clone(this: *mut core::ffi::c_void, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + unsafe extern "system" fn clone(this: *mut core::ffi::c_void, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSelection_Impl::clone(this) { Ok(ok__) => { @@ -6813,10 +5280,7 @@ impl IXMLDOMSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + unsafe extern "system" fn getProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMSelection_Impl::getProperty(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -6826,10 +5290,7 @@ impl IXMLDOMSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDOMSelection_Impl, - { + unsafe extern "system" fn setProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDOMSelection_Impl::setProperty(this, core::mem::transmute(&name), core::mem::transmute(&value)).into() } @@ -6860,14 +5321,8 @@ pub trait IXMLDOMText_Impl: Sized + IXMLDOMCharacterData_Impl { impl windows_core::RuntimeName for IXMLDOMText {} #[cfg(feature = "Win32_System_Com")] impl IXMLDOMText_Vtbl { - pub const fn new() -> IXMLDOMText_Vtbl - where - Identity: IXMLDOMText_Impl, - { - unsafe extern "system" fn splitText(this: *mut core::ffi::c_void, offset: i32, righthandtextnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDOMText_Impl, - { + pub const fn new() -> IXMLDOMText_Vtbl { + unsafe extern "system" fn splitText(this: *mut core::ffi::c_void, offset: i32, righthandtextnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDOMText_Impl::splitText(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -6895,14 +5350,8 @@ pub trait IXMLDSOControl_Impl: Sized + super::super::super::System::Com::IDispat impl windows_core::RuntimeName for IXMLDSOControl {} #[cfg(feature = "Win32_System_Com")] impl IXMLDSOControl_Vtbl { - pub const fn new() -> IXMLDSOControl_Vtbl - where - Identity: IXMLDSOControl_Impl, - { - unsafe extern "system" fn XMLDocument(this: *mut core::ffi::c_void, ppdoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDSOControl_Impl, - { + pub const fn new() -> IXMLDSOControl_Vtbl { + unsafe extern "system" fn XMLDocument(this: *mut core::ffi::c_void, ppdoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDSOControl_Impl::XMLDocument(this) { Ok(ok__) => { @@ -6912,17 +5361,11 @@ impl IXMLDSOControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetXMLDocument(this: *mut core::ffi::c_void, ppdoc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDSOControl_Impl, - { + unsafe extern "system" fn SetXMLDocument(this: *mut core::ffi::c_void, ppdoc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDSOControl_Impl::SetXMLDocument(this, windows_core::from_raw_borrowed(&ppdoc)).into() } - unsafe extern "system" fn JavaDSOCompatible(this: *mut core::ffi::c_void, fjavadsocompatible: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXMLDSOControl_Impl, - { + unsafe extern "system" fn JavaDSOCompatible(this: *mut core::ffi::c_void, fjavadsocompatible: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDSOControl_Impl::JavaDSOCompatible(this) { Ok(ok__) => { @@ -6932,17 +5375,11 @@ impl IXMLDSOControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJavaDSOCompatible(this: *mut core::ffi::c_void, fjavadsocompatible: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXMLDSOControl_Impl, - { + unsafe extern "system" fn SetJavaDSOCompatible(this: *mut core::ffi::c_void, fjavadsocompatible: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDSOControl_Impl::SetJavaDSOCompatible(this, core::mem::transmute_copy(&fjavadsocompatible)).into() } - unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, state: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDSOControl_Impl, - { + unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, state: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDSOControl_Impl::readyState(this) { Ok(ok__) => { @@ -6986,14 +5423,8 @@ pub trait IXMLDocument_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for IXMLDocument {} #[cfg(feature = "Win32_System_Com")] impl IXMLDocument_Vtbl { - pub const fn new() -> IXMLDocument_Vtbl - where - Identity: IXMLDocument_Impl, - { - unsafe extern "system" fn root(this: *mut core::ffi::c_void, p: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + pub const fn new() -> IXMLDocument_Vtbl { + unsafe extern "system" fn root(this: *mut core::ffi::c_void, p: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::root(this) { Ok(ok__) => { @@ -7003,10 +5434,7 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn fileSize(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn fileSize(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::fileSize(this) { Ok(ok__) => { @@ -7016,10 +5444,7 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn fileModifiedDate(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn fileModifiedDate(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::fileModifiedDate(this) { Ok(ok__) => { @@ -7029,10 +5454,7 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn fileUpdatedDate(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn fileUpdatedDate(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::fileUpdatedDate(this) { Ok(ok__) => { @@ -7042,10 +5464,7 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn URL(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn URL(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::URL(this) { Ok(ok__) => { @@ -7055,17 +5474,11 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDocument_Impl::SetURL(this, core::mem::transmute(&p)).into() } - unsafe extern "system" fn mimeType(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn mimeType(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::mimeType(this) { Ok(ok__) => { @@ -7075,10 +5488,7 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::readyState(this) { Ok(ok__) => { @@ -7088,10 +5498,7 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn charset(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn charset(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::charset(this) { Ok(ok__) => { @@ -7101,17 +5508,11 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setcharset(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn Setcharset(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDocument_Impl::Setcharset(this, core::mem::transmute(&p)).into() } - unsafe extern "system" fn version(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn version(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::version(this) { Ok(ok__) => { @@ -7121,10 +5522,7 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn doctype(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn doctype(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::doctype(this) { Ok(ok__) => { @@ -7134,10 +5532,7 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn dtdURL(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn dtdURL(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::dtdURL(this) { Ok(ok__) => { @@ -7147,10 +5542,7 @@ impl IXMLDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createElement(this: *mut core::ffi::c_void, vtype: core::mem::MaybeUninit, var1: core::mem::MaybeUninit, ppelem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDocument_Impl, - { + unsafe extern "system" fn createElement(this: *mut core::ffi::c_void, vtype: core::mem::MaybeUninit, var1: core::mem::MaybeUninit, ppelem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument_Impl::createElement(this, core::mem::transmute(&vtype), core::mem::transmute(&var1)) { Ok(ok__) => { @@ -7205,14 +5597,8 @@ pub trait IXMLDocument2_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for IXMLDocument2 {} #[cfg(feature = "Win32_System_Com")] impl IXMLDocument2_Vtbl { - pub const fn new() -> IXMLDocument2_Vtbl - where - Identity: IXMLDocument2_Impl, - { - unsafe extern "system" fn root(this: *mut core::ffi::c_void, p: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + pub const fn new() -> IXMLDocument2_Vtbl { + unsafe extern "system" fn root(this: *mut core::ffi::c_void, p: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::root(this) { Ok(ok__) => { @@ -7222,10 +5608,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn fileSize(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn fileSize(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::fileSize(this) { Ok(ok__) => { @@ -7235,10 +5618,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn fileModifiedDate(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn fileModifiedDate(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::fileModifiedDate(this) { Ok(ok__) => { @@ -7248,10 +5628,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn fileUpdatedDate(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn fileUpdatedDate(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::fileUpdatedDate(this) { Ok(ok__) => { @@ -7261,10 +5638,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn URL(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn URL(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::URL(this) { Ok(ok__) => { @@ -7274,17 +5648,11 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDocument2_Impl::SetURL(this, core::mem::transmute(&p)).into() } - unsafe extern "system" fn mimeType(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn mimeType(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::mimeType(this) { Ok(ok__) => { @@ -7294,10 +5662,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::readyState(this) { Ok(ok__) => { @@ -7307,10 +5672,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn charset(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn charset(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::charset(this) { Ok(ok__) => { @@ -7320,17 +5682,11 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setcharset(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn Setcharset(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDocument2_Impl::Setcharset(this, core::mem::transmute(&p)).into() } - unsafe extern "system" fn version(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn version(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::version(this) { Ok(ok__) => { @@ -7340,10 +5696,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn doctype(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn doctype(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::doctype(this) { Ok(ok__) => { @@ -7353,10 +5706,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn dtdURL(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn dtdURL(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::dtdURL(this) { Ok(ok__) => { @@ -7366,10 +5716,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createElement(this: *mut core::ffi::c_void, vtype: core::mem::MaybeUninit, var1: core::mem::MaybeUninit, ppelem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn createElement(this: *mut core::ffi::c_void, vtype: core::mem::MaybeUninit, var1: core::mem::MaybeUninit, ppelem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::createElement(this, core::mem::transmute(&vtype), core::mem::transmute(&var1)) { Ok(ok__) => { @@ -7379,10 +5726,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn r#async(this: *mut core::ffi::c_void, pf: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn r#async(this: *mut core::ffi::c_void, pf: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDocument2_Impl::r#async(this) { Ok(ok__) => { @@ -7392,10 +5736,7 @@ impl IXMLDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setasync(this: *mut core::ffi::c_void, f: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXMLDocument2_Impl, - { + unsafe extern "system" fn Setasync(this: *mut core::ffi::c_void, f: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDocument2_Impl::Setasync(this, core::mem::transmute_copy(&f)).into() } @@ -7442,14 +5783,8 @@ pub trait IXMLElement_Impl: Sized + super::super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IXMLElement {} #[cfg(feature = "Win32_System_Com")] impl IXMLElement_Vtbl { - pub const fn new() -> IXMLElement_Vtbl - where - Identity: IXMLElement_Impl, - { - unsafe extern "system" fn tagName(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + pub const fn new() -> IXMLElement_Vtbl { + unsafe extern "system" fn tagName(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement_Impl::tagName(this) { Ok(ok__) => { @@ -7459,17 +5794,11 @@ impl IXMLElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SettagName(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn SettagName(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement_Impl::SettagName(this, core::mem::transmute(&p)).into() } - unsafe extern "system" fn parent(this: *mut core::ffi::c_void, ppparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn parent(this: *mut core::ffi::c_void, ppparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement_Impl::parent(this) { Ok(ok__) => { @@ -7479,17 +5808,11 @@ impl IXMLElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertyvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertyvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement_Impl::setAttribute(this, core::mem::transmute(&strpropertyname), core::mem::transmute(&propertyvalue)).into() } - unsafe extern "system" fn getAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn getAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement_Impl::getAttribute(this, core::mem::transmute(&strpropertyname)) { Ok(ok__) => { @@ -7499,17 +5822,11 @@ impl IXMLElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement_Impl::removeAttribute(this, core::mem::transmute(&strpropertyname)).into() } - unsafe extern "system" fn children(this: *mut core::ffi::c_void, pp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn children(this: *mut core::ffi::c_void, pp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement_Impl::children(this) { Ok(ok__) => { @@ -7519,10 +5836,7 @@ impl IXMLElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, pltype: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, pltype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement_Impl::r#type(this) { Ok(ok__) => { @@ -7532,10 +5846,7 @@ impl IXMLElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn text(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn text(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement_Impl::text(this) { Ok(ok__) => { @@ -7545,24 +5856,15 @@ impl IXMLElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Settext(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn Settext(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement_Impl::Settext(this, core::mem::transmute(&p)).into() } - unsafe extern "system" fn addChild(this: *mut core::ffi::c_void, pchildelem: *mut core::ffi::c_void, lindex: i32, lreserved: i32) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn addChild(this: *mut core::ffi::c_void, pchildelem: *mut core::ffi::c_void, lindex: i32, lreserved: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement_Impl::addChild(this, windows_core::from_raw_borrowed(&pchildelem), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&lreserved)).into() } - unsafe extern "system" fn removeChild(this: *mut core::ffi::c_void, pchildelem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLElement_Impl, - { + unsafe extern "system" fn removeChild(this: *mut core::ffi::c_void, pchildelem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement_Impl::removeChild(this, windows_core::from_raw_borrowed(&pchildelem)).into() } @@ -7606,14 +5908,8 @@ pub trait IXMLElement2_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for IXMLElement2 {} #[cfg(feature = "Win32_System_Com")] impl IXMLElement2_Vtbl { - pub const fn new() -> IXMLElement2_Vtbl - where - Identity: IXMLElement2_Impl, - { - unsafe extern "system" fn tagName(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + pub const fn new() -> IXMLElement2_Vtbl { + unsafe extern "system" fn tagName(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement2_Impl::tagName(this) { Ok(ok__) => { @@ -7623,17 +5919,11 @@ impl IXMLElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SettagName(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn SettagName(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement2_Impl::SettagName(this, core::mem::transmute(&p)).into() } - unsafe extern "system" fn parent(this: *mut core::ffi::c_void, ppparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn parent(this: *mut core::ffi::c_void, ppparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement2_Impl::parent(this) { Ok(ok__) => { @@ -7643,17 +5933,11 @@ impl IXMLElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertyvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertyvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement2_Impl::setAttribute(this, core::mem::transmute(&strpropertyname), core::mem::transmute(&propertyvalue)).into() } - unsafe extern "system" fn getAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn getAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement2_Impl::getAttribute(this, core::mem::transmute(&strpropertyname)) { Ok(ok__) => { @@ -7663,17 +5947,11 @@ impl IXMLElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement2_Impl::removeAttribute(this, core::mem::transmute(&strpropertyname)).into() } - unsafe extern "system" fn children(this: *mut core::ffi::c_void, pp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn children(this: *mut core::ffi::c_void, pp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement2_Impl::children(this) { Ok(ok__) => { @@ -7683,10 +5961,7 @@ impl IXMLElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, pltype: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, pltype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement2_Impl::r#type(this) { Ok(ok__) => { @@ -7696,10 +5971,7 @@ impl IXMLElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn text(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn text(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement2_Impl::text(this) { Ok(ok__) => { @@ -7709,31 +5981,19 @@ impl IXMLElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Settext(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn Settext(this: *mut core::ffi::c_void, p: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement2_Impl::Settext(this, core::mem::transmute(&p)).into() } - unsafe extern "system" fn addChild(this: *mut core::ffi::c_void, pchildelem: *mut core::ffi::c_void, lindex: i32, lreserved: i32) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn addChild(this: *mut core::ffi::c_void, pchildelem: *mut core::ffi::c_void, lindex: i32, lreserved: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement2_Impl::addChild(this, windows_core::from_raw_borrowed(&pchildelem), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&lreserved)).into() } - unsafe extern "system" fn removeChild(this: *mut core::ffi::c_void, pchildelem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn removeChild(this: *mut core::ffi::c_void, pchildelem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElement2_Impl::removeChild(this, windows_core::from_raw_borrowed(&pchildelem)).into() } - unsafe extern "system" fn attributes(this: *mut core::ffi::c_void, pp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLElement2_Impl, - { + unsafe extern "system" fn attributes(this: *mut core::ffi::c_void, pp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElement2_Impl::attributes(this) { Ok(ok__) => { @@ -7775,21 +6035,12 @@ pub trait IXMLElementCollection_Impl: Sized + super::super::super::System::Com:: impl windows_core::RuntimeName for IXMLElementCollection {} #[cfg(feature = "Win32_System_Com")] impl IXMLElementCollection_Vtbl { - pub const fn new() -> IXMLElementCollection_Vtbl - where - Identity: IXMLElementCollection_Impl, - { - unsafe extern "system" fn Setlength(this: *mut core::ffi::c_void, v: i32) -> windows_core::HRESULT - where - Identity: IXMLElementCollection_Impl, - { + pub const fn new() -> IXMLElementCollection_Vtbl { + unsafe extern "system" fn Setlength(this: *mut core::ffi::c_void, v: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLElementCollection_Impl::Setlength(this, core::mem::transmute_copy(&v)).into() } - unsafe extern "system" fn length(this: *mut core::ffi::c_void, p: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLElementCollection_Impl, - { + unsafe extern "system" fn length(this: *mut core::ffi::c_void, p: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElementCollection_Impl::length(this) { Ok(ok__) => { @@ -7799,10 +6050,7 @@ impl IXMLElementCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLElementCollection_Impl, - { + unsafe extern "system" fn _newEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElementCollection_Impl::_newEnum(this) { Ok(ok__) => { @@ -7812,10 +6060,7 @@ impl IXMLElementCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn item(this: *mut core::ffi::c_void, var1: core::mem::MaybeUninit, var2: core::mem::MaybeUninit, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLElementCollection_Impl, - { + unsafe extern "system" fn item(this: *mut core::ffi::c_void, var1: core::mem::MaybeUninit, var2: core::mem::MaybeUninit, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLElementCollection_Impl::item(this, core::mem::transmute(&var1), core::mem::transmute(&var2)) { Ok(ok__) => { @@ -7837,19 +6082,13 @@ impl IXMLElementCollection_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IXMLError_Impl: Sized { +pub trait IXMLError_Impl: Sized + windows_core::IUnknownImpl { fn GetErrorInfo(&self, perrorreturn: *mut XML_ERROR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXMLError {} impl IXMLError_Vtbl { - pub const fn new() -> IXMLError_Vtbl - where - Identity: IXMLError_Impl, - { - unsafe extern "system" fn GetErrorInfo(this: *mut core::ffi::c_void, perrorreturn: *mut XML_ERROR) -> windows_core::HRESULT - where - Identity: IXMLError_Impl, - { + pub const fn new() -> IXMLError_Vtbl { + unsafe extern "system" fn GetErrorInfo(this: *mut core::ffi::c_void, perrorreturn: *mut XML_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLError_Impl::GetErrorInfo(this, core::mem::transmute_copy(&perrorreturn)).into() } @@ -7880,28 +6119,16 @@ pub trait IXMLHTTPRequest_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IXMLHTTPRequest {} #[cfg(feature = "Win32_System_Com")] impl IXMLHTTPRequest_Vtbl { - pub const fn new() -> IXMLHTTPRequest_Vtbl - where - Identity: IXMLHTTPRequest_Impl, - { - unsafe extern "system" fn open(this: *mut core::ffi::c_void, bstrmethod: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, varasync: core::mem::MaybeUninit, bstruser: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + pub const fn new() -> IXMLHTTPRequest_Vtbl { + unsafe extern "system" fn open(this: *mut core::ffi::c_void, bstrmethod: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, varasync: core::mem::MaybeUninit, bstruser: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest_Impl::open(this, 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(this: *mut core::ffi::c_void, bstrheader: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn setRequestHeader(this: *mut core::ffi::c_void, bstrheader: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest_Impl::setRequestHeader(this, core::mem::transmute(&bstrheader), core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn getResponseHeader(this: *mut core::ffi::c_void, bstrheader: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn getResponseHeader(this: *mut core::ffi::c_void, bstrheader: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest_Impl::getResponseHeader(this, core::mem::transmute(&bstrheader)) { Ok(ok__) => { @@ -7911,10 +6138,7 @@ impl IXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getAllResponseHeaders(this: *mut core::ffi::c_void, pbstrheaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn getAllResponseHeaders(this: *mut core::ffi::c_void, pbstrheaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest_Impl::getAllResponseHeaders(this) { Ok(ok__) => { @@ -7924,24 +6148,15 @@ impl IXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn send(this: *mut core::ffi::c_void, varbody: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn send(this: *mut core::ffi::c_void, varbody: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest_Impl::send(this, core::mem::transmute(&varbody)).into() } - unsafe extern "system" fn abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest_Impl::abort(this).into() } - unsafe extern "system" fn status(this: *mut core::ffi::c_void, plstatus: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn status(this: *mut core::ffi::c_void, plstatus: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest_Impl::status(this) { Ok(ok__) => { @@ -7951,10 +6166,7 @@ impl IXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn statusText(this: *mut core::ffi::c_void, pbstrstatus: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn statusText(this: *mut core::ffi::c_void, pbstrstatus: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest_Impl::statusText(this) { Ok(ok__) => { @@ -7964,10 +6176,7 @@ impl IXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn responseXML(this: *mut core::ffi::c_void, ppbody: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn responseXML(this: *mut core::ffi::c_void, ppbody: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest_Impl::responseXML(this) { Ok(ok__) => { @@ -7977,10 +6186,7 @@ impl IXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn responseText(this: *mut core::ffi::c_void, pbstrbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn responseText(this: *mut core::ffi::c_void, pbstrbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest_Impl::responseText(this) { Ok(ok__) => { @@ -7990,10 +6196,7 @@ impl IXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn responseBody(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn responseBody(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest_Impl::responseBody(this) { Ok(ok__) => { @@ -8003,10 +6206,7 @@ impl IXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn responseStream(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn responseStream(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest_Impl::responseStream(this) { Ok(ok__) => { @@ -8016,10 +6216,7 @@ impl IXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, plstate: *mut i32) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, plstate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest_Impl::readyState(this) { Ok(ok__) => { @@ -8029,10 +6226,7 @@ impl IXMLHTTPRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setonreadystatechange(this: *mut core::ffi::c_void, preadystatesink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest_Impl, - { + unsafe extern "system" fn Setonreadystatechange(this: *mut core::ffi::c_void, preadystatesink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest_Impl::Setonreadystatechange(this, windows_core::from_raw_borrowed(&preadystatesink)).into() } @@ -8059,7 +6253,7 @@ impl IXMLHTTPRequest_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IXMLHTTPRequest2_Impl: Sized { +pub trait IXMLHTTPRequest2_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, pwszmethod: &windows_core::PCWSTR, pwszurl: &windows_core::PCWSTR, pstatuscallback: Option<&IXMLHTTPRequest2Callback>, pwszusername: &windows_core::PCWSTR, pwszpassword: &windows_core::PCWSTR, pwszproxyusername: &windows_core::PCWSTR, pwszproxypassword: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Send(&self, pbody: Option<&super::super::super::System::Com::ISequentialStream>, cbbody: u64) -> windows_core::Result<()>; fn Abort(&self) -> windows_core::Result<()>; @@ -8075,35 +6269,20 @@ pub trait IXMLHTTPRequest2_Impl: Sized { impl windows_core::RuntimeName for IXMLHTTPRequest2 {} #[cfg(feature = "Win32_System_Com")] impl IXMLHTTPRequest2_Vtbl { - pub const fn new() -> IXMLHTTPRequest2_Vtbl - where - Identity: IXMLHTTPRequest2_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pwszmethod: windows_core::PCWSTR, pwszurl: windows_core::PCWSTR, pstatuscallback: *mut core::ffi::c_void, pwszusername: windows_core::PCWSTR, pwszpassword: windows_core::PCWSTR, pwszproxyusername: windows_core::PCWSTR, pwszproxypassword: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2_Impl, - { + pub const fn new() -> IXMLHTTPRequest2_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pwszmethod: windows_core::PCWSTR, pwszurl: windows_core::PCWSTR, pstatuscallback: *mut core::ffi::c_void, pwszusername: windows_core::PCWSTR, pwszpassword: windows_core::PCWSTR, pwszproxyusername: windows_core::PCWSTR, pwszproxypassword: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2_Impl::Open(this, core::mem::transmute(&pwszmethod), core::mem::transmute(&pwszurl), windows_core::from_raw_borrowed(&pstatuscallback), core::mem::transmute(&pwszusername), core::mem::transmute(&pwszpassword), core::mem::transmute(&pwszproxyusername), core::mem::transmute(&pwszproxypassword)).into() } - unsafe extern "system" fn Send(this: *mut core::ffi::c_void, pbody: *mut core::ffi::c_void, cbbody: u64) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2_Impl, - { + unsafe extern "system" fn Send(this: *mut core::ffi::c_void, pbody: *mut core::ffi::c_void, cbbody: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2_Impl::Send(this, windows_core::from_raw_borrowed(&pbody), core::mem::transmute_copy(&cbbody)).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2_Impl::Abort(this).into() } - unsafe extern "system" fn SetCookie(this: *mut core::ffi::c_void, pcookie: *const XHR_COOKIE, pdwcookiestate: *mut u32) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2_Impl, - { + unsafe extern "system" fn SetCookie(this: *mut core::ffi::c_void, pcookie: *const XHR_COOKIE, pdwcookiestate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest2_Impl::SetCookie(this, core::mem::transmute_copy(&pcookie)) { Ok(ok__) => { @@ -8113,31 +6292,19 @@ impl IXMLHTTPRequest2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCustomResponseStream(this: *mut core::ffi::c_void, psequentialstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2_Impl, - { + unsafe extern "system" fn SetCustomResponseStream(this: *mut core::ffi::c_void, psequentialstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2_Impl::SetCustomResponseStream(this, windows_core::from_raw_borrowed(&psequentialstream)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, eproperty: XHR_PROPERTY, ullvalue: u64) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, eproperty: XHR_PROPERTY, ullvalue: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2_Impl::SetProperty(this, core::mem::transmute_copy(&eproperty), core::mem::transmute_copy(&ullvalue)).into() } - unsafe extern "system" fn SetRequestHeader(this: *mut core::ffi::c_void, pwszheader: windows_core::PCWSTR, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2_Impl, - { + unsafe extern "system" fn SetRequestHeader(this: *mut core::ffi::c_void, pwszheader: windows_core::PCWSTR, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2_Impl::SetRequestHeader(this, core::mem::transmute(&pwszheader), core::mem::transmute(&pwszvalue)).into() } - unsafe extern "system" fn GetAllResponseHeaders(this: *mut core::ffi::c_void, ppwszheaders: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2_Impl, - { + unsafe extern "system" fn GetAllResponseHeaders(this: *mut core::ffi::c_void, ppwszheaders: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest2_Impl::GetAllResponseHeaders(this) { Ok(ok__) => { @@ -8147,17 +6314,11 @@ impl IXMLHTTPRequest2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCookie(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pwszname: windows_core::PCWSTR, dwflags: u32, pccookies: *mut u32, ppcookies: *mut *mut XHR_COOKIE) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2_Impl, - { + unsafe extern "system" fn GetCookie(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pwszname: windows_core::PCWSTR, dwflags: u32, pccookies: *mut u32, ppcookies: *mut *mut XHR_COOKIE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2_Impl::GetCookie(this, core::mem::transmute(&pwszurl), core::mem::transmute(&pwszname), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pccookies), core::mem::transmute_copy(&ppcookies)).into() } - unsafe extern "system" fn GetResponseHeader(this: *mut core::ffi::c_void, pwszheader: windows_core::PCWSTR, ppwszvalue: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2_Impl, - { + unsafe extern "system" fn GetResponseHeader(this: *mut core::ffi::c_void, pwszheader: windows_core::PCWSTR, ppwszvalue: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLHTTPRequest2_Impl::GetResponseHeader(this, core::mem::transmute(&pwszheader)) { Ok(ok__) => { @@ -8186,7 +6347,7 @@ impl IXMLHTTPRequest2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IXMLHTTPRequest2Callback_Impl: Sized { +pub trait IXMLHTTPRequest2Callback_Impl: Sized + windows_core::IUnknownImpl { fn OnRedirect(&self, pxhr: Option<&IXMLHTTPRequest2>, pwszredirecturl: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OnHeadersAvailable(&self, pxhr: Option<&IXMLHTTPRequest2>, dwstatus: u32, pwszstatus: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OnDataAvailable(&self, pxhr: Option<&IXMLHTTPRequest2>, presponsestream: Option<&super::super::super::System::Com::ISequentialStream>) -> windows_core::Result<()>; @@ -8197,42 +6358,24 @@ pub trait IXMLHTTPRequest2Callback_Impl: Sized { impl windows_core::RuntimeName for IXMLHTTPRequest2Callback {} #[cfg(feature = "Win32_System_Com")] impl IXMLHTTPRequest2Callback_Vtbl { - pub const fn new() -> IXMLHTTPRequest2Callback_Vtbl - where - Identity: IXMLHTTPRequest2Callback_Impl, - { - unsafe extern "system" fn OnRedirect(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, pwszredirecturl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2Callback_Impl, - { + pub const fn new() -> IXMLHTTPRequest2Callback_Vtbl { + unsafe extern "system" fn OnRedirect(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, pwszredirecturl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2Callback_Impl::OnRedirect(this, windows_core::from_raw_borrowed(&pxhr), core::mem::transmute(&pwszredirecturl)).into() } - unsafe extern "system" fn OnHeadersAvailable(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, dwstatus: u32, pwszstatus: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2Callback_Impl, - { + unsafe extern "system" fn OnHeadersAvailable(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, dwstatus: u32, pwszstatus: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2Callback_Impl::OnHeadersAvailable(this, windows_core::from_raw_borrowed(&pxhr), core::mem::transmute_copy(&dwstatus), core::mem::transmute(&pwszstatus)).into() } - unsafe extern "system" fn OnDataAvailable(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, presponsestream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2Callback_Impl, - { + unsafe extern "system" fn OnDataAvailable(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, presponsestream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2Callback_Impl::OnDataAvailable(this, windows_core::from_raw_borrowed(&pxhr), windows_core::from_raw_borrowed(&presponsestream)).into() } - unsafe extern "system" fn OnResponseReceived(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, presponsestream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2Callback_Impl, - { + unsafe extern "system" fn OnResponseReceived(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, presponsestream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2Callback_Impl::OnResponseReceived(this, windows_core::from_raw_borrowed(&pxhr), windows_core::from_raw_borrowed(&presponsestream)).into() } - unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, hrerror: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest2Callback_Impl, - { + unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, hrerror: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest2Callback_Impl::OnError(this, windows_core::from_raw_borrowed(&pxhr), core::mem::transmute_copy(&hrerror)).into() } @@ -8257,14 +6400,8 @@ pub trait IXMLHTTPRequest3_Impl: Sized + IXMLHTTPRequest2_Impl { impl windows_core::RuntimeName for IXMLHTTPRequest3 {} #[cfg(feature = "Win32_System_Com")] impl IXMLHTTPRequest3_Vtbl { - pub const fn new() -> IXMLHTTPRequest3_Vtbl - where - Identity: IXMLHTTPRequest3_Impl, - { - unsafe extern "system" fn SetClientCertificate(this: *mut core::ffi::c_void, cbclientcertificatehash: u32, pbclientcertificatehash: *const u8, pwszpin: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest3_Impl, - { + pub const fn new() -> IXMLHTTPRequest3_Vtbl { + unsafe extern "system" fn SetClientCertificate(this: *mut core::ffi::c_void, cbclientcertificatehash: u32, pbclientcertificatehash: *const u8, pwszpin: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest3_Impl::SetClientCertificate(this, core::mem::transmute_copy(&cbclientcertificatehash), core::mem::transmute_copy(&pbclientcertificatehash), core::mem::transmute(&pwszpin)).into() } @@ -8283,21 +6420,12 @@ pub trait IXMLHTTPRequest3Callback_Impl: Sized + IXMLHTTPRequest2Callback_Impl { impl windows_core::RuntimeName for IXMLHTTPRequest3Callback {} #[cfg(feature = "Win32_System_Com")] impl IXMLHTTPRequest3Callback_Vtbl { - pub const fn new() -> IXMLHTTPRequest3Callback_Vtbl - where - Identity: IXMLHTTPRequest3Callback_Impl, - { - unsafe extern "system" fn OnServerCertificateReceived(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, dwcertificateerrors: u32, cservercertificatechain: u32, rgservercertificatechain: *const XHR_CERT) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest3Callback_Impl, - { + pub const fn new() -> IXMLHTTPRequest3Callback_Vtbl { + unsafe extern "system" fn OnServerCertificateReceived(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, dwcertificateerrors: u32, cservercertificatechain: u32, rgservercertificatechain: *const XHR_CERT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest3Callback_Impl::OnServerCertificateReceived(this, windows_core::from_raw_borrowed(&pxhr), core::mem::transmute_copy(&dwcertificateerrors), core::mem::transmute_copy(&cservercertificatechain), core::mem::transmute_copy(&rgservercertificatechain)).into() } - unsafe extern "system" fn OnClientCertificateRequested(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, cissuerlist: u32, rgpwszissuerlist: *const *const u16) -> windows_core::HRESULT - where - Identity: IXMLHTTPRequest3Callback_Impl, - { + unsafe extern "system" fn OnClientCertificateRequested(this: *mut core::ffi::c_void, pxhr: *mut core::ffi::c_void, cissuerlist: u32, rgpwszissuerlist: *const *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLHTTPRequest3Callback_Impl::OnClientCertificateRequested(this, windows_core::from_raw_borrowed(&pxhr), core::mem::transmute_copy(&cissuerlist), core::mem::transmute_copy(&rgpwszissuerlist)).into() } @@ -8332,21 +6460,12 @@ pub trait IXSLProcessor_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for IXSLProcessor {} #[cfg(feature = "Win32_System_Com")] impl IXSLProcessor_Vtbl { - pub const fn new() -> IXSLProcessor_Vtbl - where - Identity: IXSLProcessor_Impl, - { - unsafe extern "system" fn Setinput(this: *mut core::ffi::c_void, var: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + pub const fn new() -> IXSLProcessor_Vtbl { + unsafe extern "system" fn Setinput(this: *mut core::ffi::c_void, var: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXSLProcessor_Impl::Setinput(this, core::mem::transmute(&var)).into() } - unsafe extern "system" fn input(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn input(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXSLProcessor_Impl::input(this) { Ok(ok__) => { @@ -8356,10 +6475,7 @@ impl IXSLProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ownerTemplate(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn ownerTemplate(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXSLProcessor_Impl::ownerTemplate(this) { Ok(ok__) => { @@ -8369,17 +6485,11 @@ impl IXSLProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setStartMode(this: *mut core::ffi::c_void, mode: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn setStartMode(this: *mut core::ffi::c_void, mode: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXSLProcessor_Impl::setStartMode(this, core::mem::transmute(&mode), core::mem::transmute(&namespaceuri)).into() } - unsafe extern "system" fn startMode(this: *mut core::ffi::c_void, mode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn startMode(this: *mut core::ffi::c_void, mode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXSLProcessor_Impl::startMode(this) { Ok(ok__) => { @@ -8389,10 +6499,7 @@ impl IXSLProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn startModeURI(this: *mut core::ffi::c_void, namespaceuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn startModeURI(this: *mut core::ffi::c_void, namespaceuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXSLProcessor_Impl::startModeURI(this) { Ok(ok__) => { @@ -8402,17 +6509,11 @@ impl IXSLProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setoutput(this: *mut core::ffi::c_void, output: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn Setoutput(this: *mut core::ffi::c_void, output: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXSLProcessor_Impl::Setoutput(this, core::mem::transmute(&output)).into() } - unsafe extern "system" fn output(this: *mut core::ffi::c_void, poutput: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn output(this: *mut core::ffi::c_void, poutput: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXSLProcessor_Impl::output(this) { Ok(ok__) => { @@ -8422,10 +6523,7 @@ impl IXSLProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn transform(this: *mut core::ffi::c_void, pdone: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn transform(this: *mut core::ffi::c_void, pdone: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXSLProcessor_Impl::transform(this) { Ok(ok__) => { @@ -8435,17 +6533,11 @@ impl IXSLProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXSLProcessor_Impl::reset(this).into() } - unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, preadystate: *mut i32) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn readyState(this: *mut core::ffi::c_void, preadystate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXSLProcessor_Impl::readyState(this) { Ok(ok__) => { @@ -8455,24 +6547,15 @@ impl IXSLProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn addParameter(this: *mut core::ffi::c_void, basename: core::mem::MaybeUninit, parameter: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn addParameter(this: *mut core::ffi::c_void, basename: core::mem::MaybeUninit, parameter: core::mem::MaybeUninit, namespaceuri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXSLProcessor_Impl::addParameter(this, core::mem::transmute(&basename), core::mem::transmute(¶meter), core::mem::transmute(&namespaceuri)).into() } - unsafe extern "system" fn addObject(this: *mut core::ffi::c_void, obj: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn addObject(this: *mut core::ffi::c_void, obj: *mut core::ffi::c_void, namespaceuri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXSLProcessor_Impl::addObject(this, windows_core::from_raw_borrowed(&obj), core::mem::transmute(&namespaceuri)).into() } - unsafe extern "system" fn stylesheet(this: *mut core::ffi::c_void, stylesheet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXSLProcessor_Impl, - { + unsafe extern "system" fn stylesheet(this: *mut core::ffi::c_void, stylesheet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXSLProcessor_Impl::stylesheet(this) { Ok(ok__) => { @@ -8514,21 +6597,12 @@ pub trait IXSLTemplate_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for IXSLTemplate {} #[cfg(feature = "Win32_System_Com")] impl IXSLTemplate_Vtbl { - pub const fn new() -> IXSLTemplate_Vtbl - where - Identity: IXSLTemplate_Impl, - { - unsafe extern "system" fn putref_stylesheet(this: *mut core::ffi::c_void, stylesheet: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXSLTemplate_Impl, - { + pub const fn new() -> IXSLTemplate_Vtbl { + unsafe extern "system" fn putref_stylesheet(this: *mut core::ffi::c_void, stylesheet: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXSLTemplate_Impl::putref_stylesheet(this, windows_core::from_raw_borrowed(&stylesheet)).into() } - unsafe extern "system" fn stylesheet(this: *mut core::ffi::c_void, stylesheet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXSLTemplate_Impl, - { + unsafe extern "system" fn stylesheet(this: *mut core::ffi::c_void, stylesheet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXSLTemplate_Impl::stylesheet(this) { Ok(ok__) => { @@ -8538,10 +6612,7 @@ impl IXSLTemplate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createProcessor(this: *mut core::ffi::c_void, ppprocessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXSLTemplate_Impl, - { + unsafe extern "system" fn createProcessor(this: *mut core::ffi::c_void, ppprocessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXSLTemplate_Impl::createProcessor(this) { Ok(ok__) => { @@ -8578,14 +6649,8 @@ pub trait IXTLRuntime_Impl: Sized + IXMLDOMNode_Impl { impl windows_core::RuntimeName for IXTLRuntime {} #[cfg(feature = "Win32_System_Com")] impl IXTLRuntime_Vtbl { - pub const fn new() -> IXTLRuntime_Vtbl - where - Identity: IXTLRuntime_Impl, - { - unsafe extern "system" fn uniqueID(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT - where - Identity: IXTLRuntime_Impl, - { + pub const fn new() -> IXTLRuntime_Vtbl { + unsafe extern "system" fn uniqueID(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXTLRuntime_Impl::uniqueID(this, windows_core::from_raw_borrowed(&pnode)) { Ok(ok__) => { @@ -8595,10 +6660,7 @@ impl IXTLRuntime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn depth(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, pdepth: *mut i32) -> windows_core::HRESULT - where - Identity: IXTLRuntime_Impl, - { + unsafe extern "system" fn depth(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, pdepth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXTLRuntime_Impl::depth(this, windows_core::from_raw_borrowed(&pnode)) { Ok(ok__) => { @@ -8608,10 +6670,7 @@ impl IXTLRuntime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn childNumber(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, pnumber: *mut i32) -> windows_core::HRESULT - where - Identity: IXTLRuntime_Impl, - { + unsafe extern "system" fn childNumber(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, pnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXTLRuntime_Impl::childNumber(this, windows_core::from_raw_borrowed(&pnode)) { Ok(ok__) => { @@ -8621,10 +6680,7 @@ impl IXTLRuntime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ancestorChildNumber(this: *mut core::ffi::c_void, bstrnodename: core::mem::MaybeUninit, pnode: *mut core::ffi::c_void, pnumber: *mut i32) -> windows_core::HRESULT - where - Identity: IXTLRuntime_Impl, - { + unsafe extern "system" fn ancestorChildNumber(this: *mut core::ffi::c_void, bstrnodename: core::mem::MaybeUninit, pnode: *mut core::ffi::c_void, pnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXTLRuntime_Impl::ancestorChildNumber(this, core::mem::transmute(&bstrnodename), windows_core::from_raw_borrowed(&pnode)) { Ok(ok__) => { @@ -8634,10 +6690,7 @@ impl IXTLRuntime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn absoluteChildNumber(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, pnumber: *mut i32) -> windows_core::HRESULT - where - Identity: IXTLRuntime_Impl, - { + unsafe extern "system" fn absoluteChildNumber(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, pnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXTLRuntime_Impl::absoluteChildNumber(this, windows_core::from_raw_borrowed(&pnode)) { Ok(ok__) => { @@ -8647,10 +6700,7 @@ impl IXTLRuntime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn formatIndex(this: *mut core::ffi::c_void, lindex: i32, bstrformat: core::mem::MaybeUninit, pbstrformattedstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXTLRuntime_Impl, - { + unsafe extern "system" fn formatIndex(this: *mut core::ffi::c_void, lindex: i32, bstrformat: core::mem::MaybeUninit, pbstrformattedstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXTLRuntime_Impl::formatIndex(this, core::mem::transmute_copy(&lindex), core::mem::transmute(&bstrformat)) { Ok(ok__) => { @@ -8660,10 +6710,7 @@ impl IXTLRuntime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn formatNumber(this: *mut core::ffi::c_void, dblnumber: f64, bstrformat: core::mem::MaybeUninit, pbstrformattedstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXTLRuntime_Impl, - { + unsafe extern "system" fn formatNumber(this: *mut core::ffi::c_void, dblnumber: f64, bstrformat: core::mem::MaybeUninit, pbstrformattedstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXTLRuntime_Impl::formatNumber(this, core::mem::transmute_copy(&dblnumber), core::mem::transmute(&bstrformat)) { Ok(ok__) => { @@ -8673,10 +6720,7 @@ impl IXTLRuntime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn formatDate(this: *mut core::ffi::c_void, vardate: core::mem::MaybeUninit, bstrformat: core::mem::MaybeUninit, vardestlocale: core::mem::MaybeUninit, pbstrformattedstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXTLRuntime_Impl, - { + unsafe extern "system" fn formatDate(this: *mut core::ffi::c_void, vardate: core::mem::MaybeUninit, bstrformat: core::mem::MaybeUninit, vardestlocale: core::mem::MaybeUninit, pbstrformattedstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXTLRuntime_Impl::formatDate(this, core::mem::transmute(&vardate), core::mem::transmute(&bstrformat), core::mem::transmute(&vardestlocale)) { Ok(ok__) => { @@ -8686,10 +6730,7 @@ impl IXTLRuntime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn formatTime(this: *mut core::ffi::c_void, vartime: core::mem::MaybeUninit, bstrformat: core::mem::MaybeUninit, vardestlocale: core::mem::MaybeUninit, pbstrformattedstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXTLRuntime_Impl, - { + unsafe extern "system" fn formatTime(this: *mut core::ffi::c_void, vartime: core::mem::MaybeUninit, bstrformat: core::mem::MaybeUninit, vardestlocale: core::mem::MaybeUninit, pbstrformattedstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXTLRuntime_Impl::formatTime(this, core::mem::transmute(&vartime), core::mem::transmute(&bstrformat), core::mem::transmute(&vardestlocale)) { Ok(ok__) => { @@ -8722,10 +6763,7 @@ pub trait XMLDOMDocumentEvents_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for XMLDOMDocumentEvents {} #[cfg(feature = "Win32_System_Com")] impl XMLDOMDocumentEvents_Vtbl { - pub const fn new() -> XMLDOMDocumentEvents_Vtbl - where - Identity: XMLDOMDocumentEvents_Impl, - { + pub const fn new() -> XMLDOMDocumentEvents_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs b/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs index 2678aff962..8ae0328364 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs @@ -1,4 +1,4 @@ -pub trait IXmlReader_Impl: Sized { +pub trait IXmlReader_Impl: Sized + windows_core::IUnknownImpl { fn SetInput(&self, pinput: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetProperty(&self, nproperty: u32) -> windows_core::Result; fn SetProperty(&self, nproperty: u32, pvalue: isize) -> windows_core::Result<()>; @@ -25,21 +25,12 @@ pub trait IXmlReader_Impl: Sized { } impl windows_core::RuntimeName for IXmlReader {} impl IXmlReader_Vtbl { - pub const fn new() -> IXmlReader_Vtbl - where - Identity: IXmlReader_Impl, - { - unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + pub const fn new() -> IXmlReader_Vtbl { + unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::SetInput(this, windows_core::from_raw_borrowed(&pinput)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, nproperty: u32, ppvalue: *mut isize) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, nproperty: u32, ppvalue: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlReader_Impl::GetProperty(this, core::mem::transmute_copy(&nproperty)) { Ok(ok__) => { @@ -49,24 +40,15 @@ impl IXmlReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, nproperty: u32, pvalue: isize) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, nproperty: u32, pvalue: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::SetProperty(this, core::mem::transmute_copy(&nproperty), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pnodetype: *mut XmlNodeType) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pnodetype: *mut XmlNodeType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::Read(this, core::mem::transmute_copy(&pnodetype)) } - unsafe extern "system" fn GetNodeType(this: *mut core::ffi::c_void, pnodetype: *mut XmlNodeType) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetNodeType(this: *mut core::ffi::c_void, pnodetype: *mut XmlNodeType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlReader_Impl::GetNodeType(this) { Ok(ok__) => { @@ -76,101 +58,59 @@ impl IXmlReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveToFirstAttribute(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn MoveToFirstAttribute(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::MoveToFirstAttribute(this) } - unsafe extern "system" fn MoveToNextAttribute(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn MoveToNextAttribute(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::MoveToNextAttribute(this) } - unsafe extern "system" fn MoveToAttributeByName(this: *mut core::ffi::c_void, pwszlocalname: windows_core::PCWSTR, pwsznamespaceuri: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn MoveToAttributeByName(this: *mut core::ffi::c_void, pwszlocalname: windows_core::PCWSTR, pwsznamespaceuri: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::MoveToAttributeByName(this, core::mem::transmute(&pwszlocalname), core::mem::transmute(&pwsznamespaceuri)) } - unsafe extern "system" fn MoveToElement(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn MoveToElement(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::MoveToElement(this).into() } - unsafe extern "system" fn GetQualifiedName(this: *mut core::ffi::c_void, ppwszqualifiedname: *mut windows_core::PCWSTR, pcwchqualifiedname: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetQualifiedName(this: *mut core::ffi::c_void, ppwszqualifiedname: *mut windows_core::PCWSTR, pcwchqualifiedname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::GetQualifiedName(this, core::mem::transmute_copy(&ppwszqualifiedname), core::mem::transmute_copy(&pcwchqualifiedname)).into() } - unsafe extern "system" fn GetNamespaceUri(this: *mut core::ffi::c_void, ppwsznamespaceuri: *mut windows_core::PCWSTR, pcwchnamespaceuri: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetNamespaceUri(this: *mut core::ffi::c_void, ppwsznamespaceuri: *mut windows_core::PCWSTR, pcwchnamespaceuri: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::GetNamespaceUri(this, core::mem::transmute_copy(&ppwsznamespaceuri), core::mem::transmute_copy(&pcwchnamespaceuri)).into() } - unsafe extern "system" fn GetLocalName(this: *mut core::ffi::c_void, ppwszlocalname: *mut windows_core::PCWSTR, pcwchlocalname: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetLocalName(this: *mut core::ffi::c_void, ppwszlocalname: *mut windows_core::PCWSTR, pcwchlocalname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::GetLocalName(this, core::mem::transmute_copy(&ppwszlocalname), core::mem::transmute_copy(&pcwchlocalname)).into() } - unsafe extern "system" fn GetPrefix(this: *mut core::ffi::c_void, ppwszprefix: *mut windows_core::PCWSTR, pcwchprefix: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetPrefix(this: *mut core::ffi::c_void, ppwszprefix: *mut windows_core::PCWSTR, pcwchprefix: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::GetPrefix(this, core::mem::transmute_copy(&ppwszprefix), core::mem::transmute_copy(&pcwchprefix)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, ppwszvalue: *mut windows_core::PCWSTR, pcwchvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, ppwszvalue: *mut windows_core::PCWSTR, pcwchvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::GetValue(this, core::mem::transmute_copy(&ppwszvalue), core::mem::transmute_copy(&pcwchvalue)).into() } - unsafe extern "system" fn ReadValueChunk(this: *mut core::ffi::c_void, pwchbuffer: windows_core::PWSTR, cwchchunksize: u32, pcwchread: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn ReadValueChunk(this: *mut core::ffi::c_void, pwchbuffer: windows_core::PWSTR, cwchchunksize: u32, pcwchread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::ReadValueChunk(this, core::mem::transmute_copy(&pwchbuffer), core::mem::transmute_copy(&cwchchunksize), core::mem::transmute_copy(&pcwchread)) } - unsafe extern "system" fn GetBaseUri(this: *mut core::ffi::c_void, ppwszbaseuri: *mut windows_core::PCWSTR, pcwchbaseuri: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetBaseUri(this: *mut core::ffi::c_void, ppwszbaseuri: *mut windows_core::PCWSTR, pcwchbaseuri: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::GetBaseUri(this, core::mem::transmute_copy(&ppwszbaseuri), core::mem::transmute_copy(&pcwchbaseuri)).into() } - unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::IsDefault(this) } - unsafe extern "system" fn IsEmptyElement(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn IsEmptyElement(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::IsEmptyElement(this) } - unsafe extern "system" fn GetLineNumber(this: *mut core::ffi::c_void, pnlinenumber: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetLineNumber(this: *mut core::ffi::c_void, pnlinenumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlReader_Impl::GetLineNumber(this) { Ok(ok__) => { @@ -180,10 +120,7 @@ impl IXmlReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLinePosition(this: *mut core::ffi::c_void, pnlineposition: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetLinePosition(this: *mut core::ffi::c_void, pnlineposition: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlReader_Impl::GetLinePosition(this) { Ok(ok__) => { @@ -193,10 +130,7 @@ impl IXmlReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeCount(this: *mut core::ffi::c_void, pnattributecount: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetAttributeCount(this: *mut core::ffi::c_void, pnattributecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlReader_Impl::GetAttributeCount(this) { Ok(ok__) => { @@ -206,10 +140,7 @@ impl IXmlReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDepth(this: *mut core::ffi::c_void, pndepth: *mut u32) -> windows_core::HRESULT - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn GetDepth(this: *mut core::ffi::c_void, pndepth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlReader_Impl::GetDepth(this) { Ok(ok__) => { @@ -219,10 +150,7 @@ impl IXmlReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEOF(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL - where - Identity: IXmlReader_Impl, - { + unsafe extern "system" fn IsEOF(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::IsEOF(this) } @@ -257,19 +185,13 @@ impl IXmlReader_Vtbl { iid == &::IID } } -pub trait IXmlResolver_Impl: Sized { +pub trait IXmlResolver_Impl: Sized + windows_core::IUnknownImpl { fn ResolveUri(&self, pwszbaseuri: &windows_core::PCWSTR, pwszpublicidentifier: &windows_core::PCWSTR, pwszsystemidentifier: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IXmlResolver {} impl IXmlResolver_Vtbl { - pub const fn new() -> IXmlResolver_Vtbl - where - Identity: IXmlResolver_Impl, - { - unsafe extern "system" fn ResolveUri(this: *mut core::ffi::c_void, pwszbaseuri: windows_core::PCWSTR, pwszpublicidentifier: windows_core::PCWSTR, pwszsystemidentifier: windows_core::PCWSTR, ppresolvedinput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlResolver_Impl, - { + pub const fn new() -> IXmlResolver_Vtbl { + unsafe extern "system" fn ResolveUri(this: *mut core::ffi::c_void, pwszbaseuri: windows_core::PCWSTR, pwszpublicidentifier: windows_core::PCWSTR, pwszsystemidentifier: windows_core::PCWSTR, ppresolvedinput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlResolver_Impl::ResolveUri(this, core::mem::transmute(&pwszbaseuri), core::mem::transmute(&pwszpublicidentifier), core::mem::transmute(&pwszsystemidentifier)) { Ok(ok__) => { @@ -285,7 +207,7 @@ impl IXmlResolver_Vtbl { iid == &::IID } } -pub trait IXmlWriter_Impl: Sized { +pub trait IXmlWriter_Impl: Sized + windows_core::IUnknownImpl { fn SetOutput(&self, poutput: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetProperty(&self, nproperty: u32) -> windows_core::Result; fn SetProperty(&self, nproperty: u32, pvalue: isize) -> windows_core::Result<()>; @@ -318,21 +240,12 @@ pub trait IXmlWriter_Impl: Sized { } impl windows_core::RuntimeName for IXmlWriter {} impl IXmlWriter_Vtbl { - pub const fn new() -> IXmlWriter_Vtbl - where - Identity: IXmlWriter_Impl, - { - unsafe extern "system" fn SetOutput(this: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + pub const fn new() -> IXmlWriter_Vtbl { + unsafe extern "system" fn SetOutput(this: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::SetOutput(this, windows_core::from_raw_borrowed(&poutput)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, nproperty: u32, ppvalue: *mut isize) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, nproperty: u32, ppvalue: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlWriter_Impl::GetProperty(this, core::mem::transmute_copy(&nproperty)) { Ok(ok__) => { @@ -342,192 +255,111 @@ impl IXmlWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, nproperty: u32, pvalue: isize) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, nproperty: u32, pvalue: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::SetProperty(this, core::mem::transmute_copy(&nproperty), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn WriteAttributes(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteAttributes(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteAttributes(this, windows_core::from_raw_borrowed(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() } - unsafe extern "system" fn WriteAttributeString(this: *mut core::ffi::c_void, pwszprefix: windows_core::PCWSTR, pwszlocalname: windows_core::PCWSTR, pwsznamespaceuri: windows_core::PCWSTR, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteAttributeString(this: *mut core::ffi::c_void, pwszprefix: windows_core::PCWSTR, pwszlocalname: windows_core::PCWSTR, pwsznamespaceuri: windows_core::PCWSTR, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteAttributeString(this, core::mem::transmute(&pwszprefix), core::mem::transmute(&pwszlocalname), core::mem::transmute(&pwsznamespaceuri), core::mem::transmute(&pwszvalue)).into() } - unsafe extern "system" fn WriteCData(this: *mut core::ffi::c_void, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteCData(this: *mut core::ffi::c_void, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteCData(this, core::mem::transmute(&pwsztext)).into() } - unsafe extern "system" fn WriteCharEntity(this: *mut core::ffi::c_void, wch: u16) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteCharEntity(this: *mut core::ffi::c_void, wch: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteCharEntity(this, core::mem::transmute_copy(&wch)).into() } - unsafe extern "system" fn WriteChars(this: *mut core::ffi::c_void, pwch: windows_core::PCWSTR, cwch: u32) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteChars(this: *mut core::ffi::c_void, pwch: windows_core::PCWSTR, cwch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteChars(this, core::mem::transmute(&pwch), core::mem::transmute_copy(&cwch)).into() } - unsafe extern "system" fn WriteComment(this: *mut core::ffi::c_void, pwszcomment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteComment(this: *mut core::ffi::c_void, pwszcomment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteComment(this, core::mem::transmute(&pwszcomment)).into() } - unsafe extern "system" fn WriteDocType(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pwszpublicid: windows_core::PCWSTR, pwszsystemid: windows_core::PCWSTR, pwszsubset: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteDocType(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pwszpublicid: windows_core::PCWSTR, pwszsystemid: windows_core::PCWSTR, pwszsubset: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteDocType(this, core::mem::transmute(&pwszname), core::mem::transmute(&pwszpublicid), core::mem::transmute(&pwszsystemid), core::mem::transmute(&pwszsubset)).into() } - unsafe extern "system" fn WriteElementString(this: *mut core::ffi::c_void, pwszprefix: windows_core::PCWSTR, pwszlocalname: windows_core::PCWSTR, pwsznamespaceuri: windows_core::PCWSTR, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteElementString(this: *mut core::ffi::c_void, pwszprefix: windows_core::PCWSTR, pwszlocalname: windows_core::PCWSTR, pwsznamespaceuri: windows_core::PCWSTR, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteElementString(this, core::mem::transmute(&pwszprefix), core::mem::transmute(&pwszlocalname), core::mem::transmute(&pwsznamespaceuri), core::mem::transmute(&pwszvalue)).into() } - unsafe extern "system" fn WriteEndDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteEndDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteEndDocument(this).into() } - unsafe extern "system" fn WriteEndElement(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteEndElement(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteEndElement(this).into() } - unsafe extern "system" fn WriteEntityRef(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteEntityRef(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteEntityRef(this, core::mem::transmute(&pwszname)).into() } - unsafe extern "system" fn WriteFullEndElement(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteFullEndElement(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteFullEndElement(this).into() } - unsafe extern "system" fn WriteName(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteName(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteName(this, core::mem::transmute(&pwszname)).into() } - unsafe extern "system" fn WriteNmToken(this: *mut core::ffi::c_void, pwsznmtoken: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteNmToken(this: *mut core::ffi::c_void, pwsznmtoken: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteNmToken(this, core::mem::transmute(&pwsznmtoken)).into() } - unsafe extern "system" fn WriteNode(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteNode(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteNode(this, windows_core::from_raw_borrowed(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() } - unsafe extern "system" fn WriteNodeShallow(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteNodeShallow(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteNodeShallow(this, windows_core::from_raw_borrowed(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() } - unsafe extern "system" fn WriteProcessingInstruction(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteProcessingInstruction(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteProcessingInstruction(this, core::mem::transmute(&pwszname), core::mem::transmute(&pwsztext)).into() } - unsafe extern "system" fn WriteQualifiedName(this: *mut core::ffi::c_void, pwszlocalname: windows_core::PCWSTR, pwsznamespaceuri: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteQualifiedName(this: *mut core::ffi::c_void, pwszlocalname: windows_core::PCWSTR, pwsznamespaceuri: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteQualifiedName(this, core::mem::transmute(&pwszlocalname), core::mem::transmute(&pwsznamespaceuri)).into() } - unsafe extern "system" fn WriteRaw(this: *mut core::ffi::c_void, pwszdata: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteRaw(this: *mut core::ffi::c_void, pwszdata: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteRaw(this, core::mem::transmute(&pwszdata)).into() } - unsafe extern "system" fn WriteRawChars(this: *mut core::ffi::c_void, pwch: windows_core::PCWSTR, cwch: u32) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteRawChars(this: *mut core::ffi::c_void, pwch: windows_core::PCWSTR, cwch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteRawChars(this, core::mem::transmute(&pwch), core::mem::transmute_copy(&cwch)).into() } - unsafe extern "system" fn WriteStartDocument(this: *mut core::ffi::c_void, standalone: XmlStandalone) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteStartDocument(this: *mut core::ffi::c_void, standalone: XmlStandalone) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteStartDocument(this, core::mem::transmute_copy(&standalone)).into() } - unsafe extern "system" fn WriteStartElement(this: *mut core::ffi::c_void, pwszprefix: windows_core::PCWSTR, pwszlocalname: windows_core::PCWSTR, pwsznamespaceuri: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteStartElement(this: *mut core::ffi::c_void, pwszprefix: windows_core::PCWSTR, pwszlocalname: windows_core::PCWSTR, pwsznamespaceuri: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteStartElement(this, core::mem::transmute(&pwszprefix), core::mem::transmute(&pwszlocalname), core::mem::transmute(&pwsznamespaceuri)).into() } - unsafe extern "system" fn WriteString(this: *mut core::ffi::c_void, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteString(this: *mut core::ffi::c_void, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteString(this, core::mem::transmute(&pwsztext)).into() } - unsafe extern "system" fn WriteSurrogateCharEntity(this: *mut core::ffi::c_void, wchlow: u16, wchhigh: u16) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteSurrogateCharEntity(this: *mut core::ffi::c_void, wchlow: u16, wchhigh: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteSurrogateCharEntity(this, core::mem::transmute_copy(&wchlow), core::mem::transmute_copy(&wchhigh)).into() } - unsafe extern "system" fn WriteWhitespace(this: *mut core::ffi::c_void, pwszwhitespace: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn WriteWhitespace(this: *mut core::ffi::c_void, pwszwhitespace: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteWhitespace(this, core::mem::transmute(&pwszwhitespace)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlWriter_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::Flush(this).into() } @@ -568,7 +400,7 @@ impl IXmlWriter_Vtbl { iid == &::IID } } -pub trait IXmlWriterLite_Impl: Sized { +pub trait IXmlWriterLite_Impl: Sized + windows_core::IUnknownImpl { fn SetOutput(&self, poutput: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetProperty(&self, nproperty: u32) -> windows_core::Result; fn SetProperty(&self, nproperty: u32, pvalue: isize) -> windows_core::Result<()>; @@ -600,21 +432,12 @@ pub trait IXmlWriterLite_Impl: Sized { } impl windows_core::RuntimeName for IXmlWriterLite {} impl IXmlWriterLite_Vtbl { - pub const fn new() -> IXmlWriterLite_Vtbl - where - Identity: IXmlWriterLite_Impl, - { - unsafe extern "system" fn SetOutput(this: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + pub const fn new() -> IXmlWriterLite_Vtbl { + unsafe extern "system" fn SetOutput(this: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::SetOutput(this, windows_core::from_raw_borrowed(&poutput)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, nproperty: u32, ppvalue: *mut isize) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, nproperty: u32, ppvalue: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXmlWriterLite_Impl::GetProperty(this, core::mem::transmute_copy(&nproperty)) { Ok(ok__) => { @@ -624,185 +447,107 @@ impl IXmlWriterLite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, nproperty: u32, pvalue: isize) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, nproperty: u32, pvalue: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::SetProperty(this, core::mem::transmute_copy(&nproperty), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn WriteAttributes(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteAttributes(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteAttributes(this, windows_core::from_raw_borrowed(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() } - unsafe extern "system" fn WriteAttributeString(this: *mut core::ffi::c_void, pwszqname: windows_core::PCWSTR, cwszqname: u32, pwszvalue: windows_core::PCWSTR, cwszvalue: u32) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteAttributeString(this: *mut core::ffi::c_void, pwszqname: windows_core::PCWSTR, cwszqname: u32, pwszvalue: windows_core::PCWSTR, cwszvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteAttributeString(this, core::mem::transmute(&pwszqname), core::mem::transmute_copy(&cwszqname), core::mem::transmute(&pwszvalue), core::mem::transmute_copy(&cwszvalue)).into() } - unsafe extern "system" fn WriteCData(this: *mut core::ffi::c_void, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteCData(this: *mut core::ffi::c_void, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteCData(this, core::mem::transmute(&pwsztext)).into() } - unsafe extern "system" fn WriteCharEntity(this: *mut core::ffi::c_void, wch: u16) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteCharEntity(this: *mut core::ffi::c_void, wch: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteCharEntity(this, core::mem::transmute_copy(&wch)).into() } - unsafe extern "system" fn WriteChars(this: *mut core::ffi::c_void, pwch: windows_core::PCWSTR, cwch: u32) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteChars(this: *mut core::ffi::c_void, pwch: windows_core::PCWSTR, cwch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteChars(this, core::mem::transmute(&pwch), core::mem::transmute_copy(&cwch)).into() } - unsafe extern "system" fn WriteComment(this: *mut core::ffi::c_void, pwszcomment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteComment(this: *mut core::ffi::c_void, pwszcomment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteComment(this, core::mem::transmute(&pwszcomment)).into() } - unsafe extern "system" fn WriteDocType(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pwszpublicid: windows_core::PCWSTR, pwszsystemid: windows_core::PCWSTR, pwszsubset: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteDocType(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pwszpublicid: windows_core::PCWSTR, pwszsystemid: windows_core::PCWSTR, pwszsubset: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteDocType(this, core::mem::transmute(&pwszname), core::mem::transmute(&pwszpublicid), core::mem::transmute(&pwszsystemid), core::mem::transmute(&pwszsubset)).into() } - unsafe extern "system" fn WriteElementString(this: *mut core::ffi::c_void, pwszqname: windows_core::PCWSTR, cwszqname: u32, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteElementString(this: *mut core::ffi::c_void, pwszqname: windows_core::PCWSTR, cwszqname: u32, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteElementString(this, core::mem::transmute(&pwszqname), core::mem::transmute_copy(&cwszqname), core::mem::transmute(&pwszvalue)).into() } - unsafe extern "system" fn WriteEndDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteEndDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteEndDocument(this).into() } - unsafe extern "system" fn WriteEndElement(this: *mut core::ffi::c_void, pwszqname: windows_core::PCWSTR, cwszqname: u32) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteEndElement(this: *mut core::ffi::c_void, pwszqname: windows_core::PCWSTR, cwszqname: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteEndElement(this, core::mem::transmute(&pwszqname), core::mem::transmute_copy(&cwszqname)).into() } - unsafe extern "system" fn WriteEntityRef(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteEntityRef(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteEntityRef(this, core::mem::transmute(&pwszname)).into() } - unsafe extern "system" fn WriteFullEndElement(this: *mut core::ffi::c_void, pwszqname: windows_core::PCWSTR, cwszqname: u32) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteFullEndElement(this: *mut core::ffi::c_void, pwszqname: windows_core::PCWSTR, cwszqname: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteFullEndElement(this, core::mem::transmute(&pwszqname), core::mem::transmute_copy(&cwszqname)).into() } - unsafe extern "system" fn WriteName(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteName(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteName(this, core::mem::transmute(&pwszname)).into() } - unsafe extern "system" fn WriteNmToken(this: *mut core::ffi::c_void, pwsznmtoken: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteNmToken(this: *mut core::ffi::c_void, pwsznmtoken: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteNmToken(this, core::mem::transmute(&pwsznmtoken)).into() } - unsafe extern "system" fn WriteNode(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteNode(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteNode(this, windows_core::from_raw_borrowed(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() } - unsafe extern "system" fn WriteNodeShallow(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteNodeShallow(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteNodeShallow(this, windows_core::from_raw_borrowed(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() } - unsafe extern "system" fn WriteProcessingInstruction(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteProcessingInstruction(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteProcessingInstruction(this, core::mem::transmute(&pwszname), core::mem::transmute(&pwsztext)).into() } - unsafe extern "system" fn WriteRaw(this: *mut core::ffi::c_void, pwszdata: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteRaw(this: *mut core::ffi::c_void, pwszdata: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteRaw(this, core::mem::transmute(&pwszdata)).into() } - unsafe extern "system" fn WriteRawChars(this: *mut core::ffi::c_void, pwch: windows_core::PCWSTR, cwch: u32) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteRawChars(this: *mut core::ffi::c_void, pwch: windows_core::PCWSTR, cwch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteRawChars(this, core::mem::transmute(&pwch), core::mem::transmute_copy(&cwch)).into() } - unsafe extern "system" fn WriteStartDocument(this: *mut core::ffi::c_void, standalone: XmlStandalone) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteStartDocument(this: *mut core::ffi::c_void, standalone: XmlStandalone) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteStartDocument(this, core::mem::transmute_copy(&standalone)).into() } - unsafe extern "system" fn WriteStartElement(this: *mut core::ffi::c_void, pwszqname: windows_core::PCWSTR, cwszqname: u32) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteStartElement(this: *mut core::ffi::c_void, pwszqname: windows_core::PCWSTR, cwszqname: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteStartElement(this, core::mem::transmute(&pwszqname), core::mem::transmute_copy(&cwszqname)).into() } - unsafe extern "system" fn WriteString(this: *mut core::ffi::c_void, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteString(this: *mut core::ffi::c_void, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteString(this, core::mem::transmute(&pwsztext)).into() } - unsafe extern "system" fn WriteSurrogateCharEntity(this: *mut core::ffi::c_void, wchlow: u16, wchhigh: u16) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteSurrogateCharEntity(this: *mut core::ffi::c_void, wchlow: u16, wchhigh: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteSurrogateCharEntity(this, core::mem::transmute_copy(&wchlow), core::mem::transmute_copy(&wchhigh)).into() } - unsafe extern "system" fn WriteWhitespace(this: *mut core::ffi::c_void, pwszwhitespace: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn WriteWhitespace(this: *mut core::ffi::c_void, pwszwhitespace: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteWhitespace(this, core::mem::transmute(&pwszwhitespace)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXmlWriterLite_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::Flush(this).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/impl.rs index f05c8e5e2e..4465c63107 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/impl.rs @@ -1,4 +1,4 @@ -pub trait ICreateDeviceAccessAsync_Impl: Sized { +pub trait ICreateDeviceAccessAsync_Impl: Sized + windows_core::IUnknownImpl { fn Cancel(&self) -> windows_core::Result<()>; fn Wait(&self, timeout: u32) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; @@ -6,35 +6,20 @@ pub trait ICreateDeviceAccessAsync_Impl: Sized { } impl windows_core::RuntimeName for ICreateDeviceAccessAsync {} impl ICreateDeviceAccessAsync_Vtbl { - pub const fn new() -> ICreateDeviceAccessAsync_Vtbl - where - Identity: ICreateDeviceAccessAsync_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateDeviceAccessAsync_Impl, - { + pub const fn new() -> ICreateDeviceAccessAsync_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateDeviceAccessAsync_Impl::Cancel(this).into() } - unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: ICreateDeviceAccessAsync_Impl, - { + unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateDeviceAccessAsync_Impl::Wait(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateDeviceAccessAsync_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateDeviceAccessAsync_Impl::Close(this).into() } - unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, deviceaccess: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateDeviceAccessAsync_Impl, - { + unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, deviceaccess: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateDeviceAccessAsync_Impl::GetResult(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&deviceaccess)).into() } @@ -50,35 +35,23 @@ impl ICreateDeviceAccessAsync_Vtbl { iid == &::IID } } -pub trait IDeviceIoControl_Impl: Sized { +pub trait IDeviceIoControl_Impl: Sized + windows_core::IUnknownImpl { fn DeviceIoControlSync(&self, iocontrolcode: u32, inputbuffer: *const u8, inputbuffersize: u32, outputbuffer: *mut u8, outputbuffersize: u32, bytesreturned: *mut u32) -> windows_core::Result<()>; fn DeviceIoControlAsync(&self, iocontrolcode: u32, inputbuffer: *const u8, inputbuffersize: u32, outputbuffer: *mut u8, outputbuffersize: u32, requestcompletioncallback: Option<&IDeviceRequestCompletionCallback>, cancelcontext: *mut usize) -> windows_core::Result<()>; fn CancelOperation(&self, cancelcontext: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDeviceIoControl {} impl IDeviceIoControl_Vtbl { - pub const fn new() -> IDeviceIoControl_Vtbl - where - Identity: IDeviceIoControl_Impl, - { - unsafe extern "system" fn DeviceIoControlSync(this: *mut core::ffi::c_void, iocontrolcode: u32, inputbuffer: *const u8, inputbuffersize: u32, outputbuffer: *mut u8, outputbuffersize: u32, bytesreturned: *mut u32) -> windows_core::HRESULT - where - Identity: IDeviceIoControl_Impl, - { + pub const fn new() -> IDeviceIoControl_Vtbl { + unsafe extern "system" fn DeviceIoControlSync(this: *mut core::ffi::c_void, iocontrolcode: u32, inputbuffer: *const u8, inputbuffersize: u32, outputbuffer: *mut u8, outputbuffersize: u32, bytesreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceIoControl_Impl::DeviceIoControlSync(this, core::mem::transmute_copy(&iocontrolcode), core::mem::transmute_copy(&inputbuffer), core::mem::transmute_copy(&inputbuffersize), core::mem::transmute_copy(&outputbuffer), core::mem::transmute_copy(&outputbuffersize), core::mem::transmute_copy(&bytesreturned)).into() } - unsafe extern "system" fn DeviceIoControlAsync(this: *mut core::ffi::c_void, iocontrolcode: u32, inputbuffer: *const u8, inputbuffersize: u32, outputbuffer: *mut u8, outputbuffersize: u32, requestcompletioncallback: *mut core::ffi::c_void, cancelcontext: *mut usize) -> windows_core::HRESULT - where - Identity: IDeviceIoControl_Impl, - { + unsafe extern "system" fn DeviceIoControlAsync(this: *mut core::ffi::c_void, iocontrolcode: u32, inputbuffer: *const u8, inputbuffersize: u32, outputbuffer: *mut u8, outputbuffersize: u32, requestcompletioncallback: *mut core::ffi::c_void, cancelcontext: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceIoControl_Impl::DeviceIoControlAsync(this, core::mem::transmute_copy(&iocontrolcode), core::mem::transmute_copy(&inputbuffer), core::mem::transmute_copy(&inputbuffersize), core::mem::transmute_copy(&outputbuffer), core::mem::transmute_copy(&outputbuffersize), windows_core::from_raw_borrowed(&requestcompletioncallback), core::mem::transmute_copy(&cancelcontext)).into() } - unsafe extern "system" fn CancelOperation(this: *mut core::ffi::c_void, cancelcontext: usize) -> windows_core::HRESULT - where - Identity: IDeviceIoControl_Impl, - { + unsafe extern "system" fn CancelOperation(this: *mut core::ffi::c_void, cancelcontext: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceIoControl_Impl::CancelOperation(this, core::mem::transmute_copy(&cancelcontext)).into() } @@ -93,19 +66,13 @@ impl IDeviceIoControl_Vtbl { iid == &::IID } } -pub trait IDeviceRequestCompletionCallback_Impl: Sized { +pub trait IDeviceRequestCompletionCallback_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self, requestresult: windows_core::HRESULT, bytesreturned: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDeviceRequestCompletionCallback {} impl IDeviceRequestCompletionCallback_Vtbl { - pub const fn new() -> IDeviceRequestCompletionCallback_Vtbl - where - Identity: IDeviceRequestCompletionCallback_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, requestresult: windows_core::HRESULT, bytesreturned: u32) -> windows_core::HRESULT - where - Identity: IDeviceRequestCompletionCallback_Impl, - { + pub const fn new() -> IDeviceRequestCompletionCallback_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, requestresult: windows_core::HRESULT, bytesreturned: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceRequestCompletionCallback_Impl::Invoke(this, core::mem::transmute_copy(&requestresult), core::mem::transmute_copy(&bytesreturned)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Display/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Display/impl.rs index 859705e6cb..88ef0c13c7 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Display/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Display/impl.rs @@ -1,4 +1,4 @@ -pub trait ICloneViewHelper_Impl: Sized { +pub trait ICloneViewHelper_Impl: Sized + windows_core::IUnknownImpl { fn GetConnectedIDs(&self, wszadaptorname: &windows_core::PCWSTR, pulcount: *mut u32, pulid: *mut u32, ulflags: u32) -> windows_core::Result<()>; fn GetActiveTopology(&self, wszadaptorname: &windows_core::PCWSTR, ulsourceid: u32, pulcount: *mut u32, pultargetid: *mut u32) -> windows_core::Result<()>; fn SetActiveTopology(&self, wszadaptorname: &windows_core::PCWSTR, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::Result<()>; @@ -6,35 +6,20 @@ pub trait ICloneViewHelper_Impl: Sized { } impl windows_core::RuntimeName for ICloneViewHelper {} impl ICloneViewHelper_Vtbl { - pub const fn new() -> ICloneViewHelper_Vtbl - where - Identity: ICloneViewHelper_Impl, - { - unsafe extern "system" fn GetConnectedIDs(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, pulcount: *mut u32, pulid: *mut u32, ulflags: u32) -> windows_core::HRESULT - where - Identity: ICloneViewHelper_Impl, - { + pub const fn new() -> ICloneViewHelper_Vtbl { + unsafe extern "system" fn GetConnectedIDs(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, pulcount: *mut u32, pulid: *mut u32, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICloneViewHelper_Impl::GetConnectedIDs(this, core::mem::transmute(&wszadaptorname), core::mem::transmute_copy(&pulcount), core::mem::transmute_copy(&pulid), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn GetActiveTopology(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, ulsourceid: u32, pulcount: *mut u32, pultargetid: *mut u32) -> windows_core::HRESULT - where - Identity: ICloneViewHelper_Impl, - { + unsafe extern "system" fn GetActiveTopology(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, ulsourceid: u32, pulcount: *mut u32, pultargetid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICloneViewHelper_Impl::GetActiveTopology(this, core::mem::transmute(&wszadaptorname), core::mem::transmute_copy(&ulsourceid), core::mem::transmute_copy(&pulcount), core::mem::transmute_copy(&pultargetid)).into() } - unsafe extern "system" fn SetActiveTopology(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::HRESULT - where - Identity: ICloneViewHelper_Impl, - { + unsafe extern "system" fn SetActiveTopology(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICloneViewHelper_Impl::SetActiveTopology(this, core::mem::transmute(&wszadaptorname), core::mem::transmute_copy(&ulsourceid), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pultargetid)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, ffinalcall: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICloneViewHelper_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, ffinalcall: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICloneViewHelper_Impl::Commit(this, core::mem::transmute_copy(&ffinalcall)).into() } @@ -51,7 +36,7 @@ impl ICloneViewHelper_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IViewHelper_Impl: Sized { +pub trait IViewHelper_Impl: Sized + windows_core::IUnknownImpl { fn GetConnectedIDs(&self, wszadaptorname: &windows_core::PCWSTR, pulcount: *mut u32, pulid: *mut u32, ulflags: u32) -> windows_core::Result<()>; fn GetActiveTopology(&self, wszadaptorname: &windows_core::PCWSTR, ulsourceid: u32, pulcount: *mut u32, pultargetid: *mut u32) -> windows_core::Result<()>; fn SetActiveTopology(&self, wszadaptorname: &windows_core::PCWSTR, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::Result<()>; @@ -63,42 +48,24 @@ pub trait IViewHelper_Impl: Sized { impl windows_core::RuntimeName for IViewHelper {} #[cfg(feature = "Win32_System_Com")] impl IViewHelper_Vtbl { - pub const fn new() -> IViewHelper_Vtbl - where - Identity: IViewHelper_Impl, - { - unsafe extern "system" fn GetConnectedIDs(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, pulcount: *mut u32, pulid: *mut u32, ulflags: u32) -> windows_core::HRESULT - where - Identity: IViewHelper_Impl, - { + pub const fn new() -> IViewHelper_Vtbl { + unsafe extern "system" fn GetConnectedIDs(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, pulcount: *mut u32, pulid: *mut u32, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewHelper_Impl::GetConnectedIDs(this, core::mem::transmute(&wszadaptorname), core::mem::transmute_copy(&pulcount), core::mem::transmute_copy(&pulid), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn GetActiveTopology(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, ulsourceid: u32, pulcount: *mut u32, pultargetid: *mut u32) -> windows_core::HRESULT - where - Identity: IViewHelper_Impl, - { + unsafe extern "system" fn GetActiveTopology(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, ulsourceid: u32, pulcount: *mut u32, pultargetid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewHelper_Impl::GetActiveTopology(this, core::mem::transmute(&wszadaptorname), core::mem::transmute_copy(&ulsourceid), core::mem::transmute_copy(&pulcount), core::mem::transmute_copy(&pultargetid)).into() } - unsafe extern "system" fn SetActiveTopology(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::HRESULT - where - Identity: IViewHelper_Impl, - { + unsafe extern "system" fn SetActiveTopology(this: *mut core::ffi::c_void, wszadaptorname: windows_core::PCWSTR, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewHelper_Impl::SetActiveTopology(this, core::mem::transmute(&wszadaptorname), core::mem::transmute_copy(&ulsourceid), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pultargetid)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewHelper_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewHelper_Impl::Commit(this).into() } - unsafe extern "system" fn SetConfiguration(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pulstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IViewHelper_Impl, - { + unsafe extern "system" fn SetConfiguration(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pulstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewHelper_Impl::SetConfiguration(this, windows_core::from_raw_borrowed(&pistream)) { Ok(ok__) => { @@ -108,10 +75,7 @@ impl IViewHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProceedOnNewConfiguration(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewHelper_Impl, - { + unsafe extern "system" fn GetProceedOnNewConfiguration(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewHelper_Impl::GetProceedOnNewConfiguration(this).into() } 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 cb8ba20a37..cb4667d7f9 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 @@ -1,24 +1,15 @@ -pub trait IUPnPAddressFamilyControl_Impl: Sized { +pub trait IUPnPAddressFamilyControl_Impl: Sized + windows_core::IUnknownImpl { fn SetAddressFamily(&self, dwflags: i32) -> windows_core::Result<()>; fn GetAddressFamily(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUPnPAddressFamilyControl {} impl IUPnPAddressFamilyControl_Vtbl { - pub const fn new() -> IUPnPAddressFamilyControl_Vtbl - where - Identity: IUPnPAddressFamilyControl_Impl, - { - unsafe extern "system" fn SetAddressFamily(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: IUPnPAddressFamilyControl_Impl, - { + pub const fn new() -> IUPnPAddressFamilyControl_Vtbl { + unsafe extern "system" fn SetAddressFamily(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPAddressFamilyControl_Impl::SetAddressFamily(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetAddressFamily(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: IUPnPAddressFamilyControl_Impl, - { + unsafe extern "system" fn GetAddressFamily(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPAddressFamilyControl_Impl::GetAddressFamily(this) { Ok(ok__) => { @@ -38,19 +29,13 @@ impl IUPnPAddressFamilyControl_Vtbl { iid == &::IID } } -pub trait IUPnPAsyncResult_Impl: Sized { +pub trait IUPnPAsyncResult_Impl: Sized + windows_core::IUnknownImpl { fn AsyncOperationComplete(&self, ullrequestid: u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUPnPAsyncResult {} impl IUPnPAsyncResult_Vtbl { - pub const fn new() -> IUPnPAsyncResult_Vtbl - where - Identity: IUPnPAsyncResult_Impl, - { - unsafe extern "system" fn AsyncOperationComplete(this: *mut core::ffi::c_void, ullrequestid: u64) -> windows_core::HRESULT - where - Identity: IUPnPAsyncResult_Impl, - { + pub const fn new() -> IUPnPAsyncResult_Vtbl { + unsafe extern "system" fn AsyncOperationComplete(this: *mut core::ffi::c_void, ullrequestid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPAsyncResult_Impl::AsyncOperationComplete(this, core::mem::transmute_copy(&ullrequestid)).into() } @@ -74,14 +59,8 @@ pub trait IUPnPDescriptionDocument_Impl: Sized + super::super::super::System::Co impl windows_core::RuntimeName for IUPnPDescriptionDocument {} #[cfg(feature = "Win32_System_Com")] impl IUPnPDescriptionDocument_Vtbl { - pub const fn new() -> IUPnPDescriptionDocument_Vtbl - where - Identity: IUPnPDescriptionDocument_Impl, - { - unsafe extern "system" fn ReadyState(this: *mut core::ffi::c_void, plreadystate: *mut i32) -> windows_core::HRESULT - where - Identity: IUPnPDescriptionDocument_Impl, - { + pub const fn new() -> IUPnPDescriptionDocument_Vtbl { + unsafe extern "system" fn ReadyState(this: *mut core::ffi::c_void, plreadystate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDescriptionDocument_Impl::ReadyState(this) { Ok(ok__) => { @@ -91,24 +70,15 @@ impl IUPnPDescriptionDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDescriptionDocument_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDescriptionDocument_Impl::Load(this, core::mem::transmute(&bstrurl)).into() } - unsafe extern "system" fn LoadAsync(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, punkcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDescriptionDocument_Impl, - { + unsafe extern "system" fn LoadAsync(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, punkcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDescriptionDocument_Impl::LoadAsync(this, core::mem::transmute(&bstrurl), windows_core::from_raw_borrowed(&punkcallback)).into() } - unsafe extern "system" fn LoadResult(this: *mut core::ffi::c_void, phrerror: *mut i32) -> windows_core::HRESULT - where - Identity: IUPnPDescriptionDocument_Impl, - { + unsafe extern "system" fn LoadResult(this: *mut core::ffi::c_void, phrerror: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDescriptionDocument_Impl::LoadResult(this) { Ok(ok__) => { @@ -118,17 +88,11 @@ impl IUPnPDescriptionDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDescriptionDocument_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDescriptionDocument_Impl::Abort(this).into() } - unsafe extern "system" fn RootDevice(this: *mut core::ffi::c_void, ppudrootdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDescriptionDocument_Impl, - { + unsafe extern "system" fn RootDevice(this: *mut core::ffi::c_void, ppudrootdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDescriptionDocument_Impl::RootDevice(this) { Ok(ok__) => { @@ -138,10 +102,7 @@ impl IUPnPDescriptionDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceByUDN(this: *mut core::ffi::c_void, bstrudn: core::mem::MaybeUninit, ppuddevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDescriptionDocument_Impl, - { + unsafe extern "system" fn DeviceByUDN(this: *mut core::ffi::c_void, bstrudn: core::mem::MaybeUninit, ppuddevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDescriptionDocument_Impl::DeviceByUDN(this, core::mem::transmute(&bstrudn)) { Ok(ok__) => { @@ -166,19 +127,13 @@ impl IUPnPDescriptionDocument_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IUPnPDescriptionDocumentCallback_Impl: Sized { +pub trait IUPnPDescriptionDocumentCallback_Impl: Sized + windows_core::IUnknownImpl { fn LoadComplete(&self, hrloadresult: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUPnPDescriptionDocumentCallback {} impl IUPnPDescriptionDocumentCallback_Vtbl { - pub const fn new() -> IUPnPDescriptionDocumentCallback_Vtbl - where - Identity: IUPnPDescriptionDocumentCallback_Impl, - { - unsafe extern "system" fn LoadComplete(this: *mut core::ffi::c_void, hrloadresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IUPnPDescriptionDocumentCallback_Impl, - { + pub const fn new() -> IUPnPDescriptionDocumentCallback_Vtbl { + unsafe extern "system" fn LoadComplete(this: *mut core::ffi::c_void, hrloadresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDescriptionDocumentCallback_Impl::LoadComplete(this, core::mem::transmute_copy(&hrloadresult)).into() } @@ -214,14 +169,8 @@ pub trait IUPnPDevice_Impl: Sized + super::super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IUPnPDevice {} #[cfg(feature = "Win32_System_Com")] impl IUPnPDevice_Vtbl { - pub const fn new() -> IUPnPDevice_Vtbl - where - Identity: IUPnPDevice_Impl, - { - unsafe extern "system" fn IsRootDevice(this: *mut core::ffi::c_void, pvarb: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + pub const fn new() -> IUPnPDevice_Vtbl { + unsafe extern "system" fn IsRootDevice(this: *mut core::ffi::c_void, pvarb: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::IsRootDevice(this) { Ok(ok__) => { @@ -231,10 +180,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RootDevice(this: *mut core::ffi::c_void, ppudrootdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn RootDevice(this: *mut core::ffi::c_void, ppudrootdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::RootDevice(this) { Ok(ok__) => { @@ -244,10 +190,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParentDevice(this: *mut core::ffi::c_void, ppuddeviceparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn ParentDevice(this: *mut core::ffi::c_void, ppuddeviceparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::ParentDevice(this) { Ok(ok__) => { @@ -257,10 +200,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasChildren(this: *mut core::ffi::c_void, pvarb: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn HasChildren(this: *mut core::ffi::c_void, pvarb: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::HasChildren(this) { Ok(ok__) => { @@ -270,10 +210,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Children(this: *mut core::ffi::c_void, ppudchildren: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn Children(this: *mut core::ffi::c_void, ppudchildren: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::Children(this) { Ok(ok__) => { @@ -283,10 +220,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UniqueDeviceName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn UniqueDeviceName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::UniqueDeviceName(this) { Ok(ok__) => { @@ -296,10 +230,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::FriendlyName(this) { Ok(ok__) => { @@ -309,10 +240,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::Type(this) { Ok(ok__) => { @@ -322,10 +250,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PresentationURL(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn PresentationURL(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::PresentationURL(this) { Ok(ok__) => { @@ -335,10 +260,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ManufacturerName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn ManufacturerName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::ManufacturerName(this) { Ok(ok__) => { @@ -348,10 +270,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ManufacturerURL(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn ManufacturerURL(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::ManufacturerURL(this) { Ok(ok__) => { @@ -361,10 +280,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModelName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn ModelName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::ModelName(this) { Ok(ok__) => { @@ -374,10 +290,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModelNumber(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn ModelNumber(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::ModelNumber(this) { Ok(ok__) => { @@ -387,10 +300,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::Description(this) { Ok(ok__) => { @@ -400,10 +310,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModelURL(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn ModelURL(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::ModelURL(this) { Ok(ok__) => { @@ -413,10 +320,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UPC(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn UPC(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::UPC(this) { Ok(ok__) => { @@ -426,10 +330,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SerialNumber(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn SerialNumber(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::SerialNumber(this) { Ok(ok__) => { @@ -439,10 +340,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IconURL(this: *mut core::ffi::c_void, bstrencodingformat: core::mem::MaybeUninit, lsizex: i32, lsizey: i32, lbitdepth: i32, pbstriconurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn IconURL(this: *mut core::ffi::c_void, bstrencodingformat: core::mem::MaybeUninit, lsizex: i32, lsizey: i32, lbitdepth: i32, pbstriconurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::IconURL(this, core::mem::transmute(&bstrencodingformat), core::mem::transmute_copy(&lsizex), core::mem::transmute_copy(&lsizey), core::mem::transmute_copy(&lbitdepth)) { Ok(ok__) => { @@ -452,10 +350,7 @@ impl IUPnPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Services(this: *mut core::ffi::c_void, ppusservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDevice_Impl, - { + unsafe extern "system" fn Services(this: *mut core::ffi::c_void, ppusservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevice_Impl::Services(this) { Ok(ok__) => { @@ -493,7 +388,7 @@ impl IUPnPDevice_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUPnPDeviceControl_Impl: Sized { +pub trait IUPnPDeviceControl_Impl: Sized + windows_core::IUnknownImpl { 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; } @@ -501,21 +396,12 @@ pub trait IUPnPDeviceControl_Impl: Sized { impl windows_core::RuntimeName for IUPnPDeviceControl {} #[cfg(feature = "Win32_System_Com")] impl IUPnPDeviceControl_Vtbl { - pub const fn new() -> IUPnPDeviceControl_Vtbl - where - Identity: IUPnPDeviceControl_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, bstrxmldesc: core::mem::MaybeUninit, bstrdeviceidentifier: core::mem::MaybeUninit, bstrinitstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDeviceControl_Impl, - { + pub const fn new() -> IUPnPDeviceControl_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, bstrxmldesc: core::mem::MaybeUninit, bstrdeviceidentifier: core::mem::MaybeUninit, bstrinitstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDeviceControl_Impl::Initialize(this, core::mem::transmute(&bstrxmldesc), core::mem::transmute(&bstrdeviceidentifier), core::mem::transmute(&bstrinitstring)).into() } - unsafe extern "system" fn GetServiceObject(this: *mut core::ffi::c_void, bstrudn: core::mem::MaybeUninit, bstrserviceid: core::mem::MaybeUninit, ppdispservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDeviceControl_Impl, - { + unsafe extern "system" fn GetServiceObject(this: *mut core::ffi::c_void, bstrudn: core::mem::MaybeUninit, bstrserviceid: core::mem::MaybeUninit, ppdispservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDeviceControl_Impl::GetServiceObject(this, core::mem::transmute(&bstrudn), core::mem::transmute(&bstrserviceid)) { Ok(ok__) => { @@ -535,19 +421,13 @@ impl IUPnPDeviceControl_Vtbl { iid == &::IID } } -pub trait IUPnPDeviceControlHttpHeaders_Impl: Sized { +pub trait IUPnPDeviceControlHttpHeaders_Impl: Sized + windows_core::IUnknownImpl { fn GetAdditionalResponseHeaders(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUPnPDeviceControlHttpHeaders {} impl IUPnPDeviceControlHttpHeaders_Vtbl { - pub const fn new() -> IUPnPDeviceControlHttpHeaders_Vtbl - where - Identity: IUPnPDeviceControlHttpHeaders_Impl, - { - unsafe extern "system" fn GetAdditionalResponseHeaders(this: *mut core::ffi::c_void, bstrhttpresponseheaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDeviceControlHttpHeaders_Impl, - { + pub const fn new() -> IUPnPDeviceControlHttpHeaders_Vtbl { + unsafe extern "system" fn GetAdditionalResponseHeaders(this: *mut core::ffi::c_void, bstrhttpresponseheaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDeviceControlHttpHeaders_Impl::GetAdditionalResponseHeaders(this) { Ok(ok__) => { @@ -563,19 +443,13 @@ impl IUPnPDeviceControlHttpHeaders_Vtbl { iid == &::IID } } -pub trait IUPnPDeviceDocumentAccess_Impl: Sized { +pub trait IUPnPDeviceDocumentAccess_Impl: Sized + windows_core::IUnknownImpl { fn GetDocumentURL(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUPnPDeviceDocumentAccess {} impl IUPnPDeviceDocumentAccess_Vtbl { - pub const fn new() -> IUPnPDeviceDocumentAccess_Vtbl - where - Identity: IUPnPDeviceDocumentAccess_Impl, - { - unsafe extern "system" fn GetDocumentURL(this: *mut core::ffi::c_void, pbstrdocument: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDeviceDocumentAccess_Impl, - { + pub const fn new() -> IUPnPDeviceDocumentAccess_Vtbl { + unsafe extern "system" fn GetDocumentURL(this: *mut core::ffi::c_void, pbstrdocument: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDeviceDocumentAccess_Impl::GetDocumentURL(this) { Ok(ok__) => { @@ -591,19 +465,13 @@ impl IUPnPDeviceDocumentAccess_Vtbl { iid == &::IID } } -pub trait IUPnPDeviceDocumentAccessEx_Impl: Sized { +pub trait IUPnPDeviceDocumentAccessEx_Impl: Sized + windows_core::IUnknownImpl { fn GetDocument(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUPnPDeviceDocumentAccessEx {} impl IUPnPDeviceDocumentAccessEx_Vtbl { - pub const fn new() -> IUPnPDeviceDocumentAccessEx_Vtbl - where - Identity: IUPnPDeviceDocumentAccessEx_Impl, - { - unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, pbstrdocument: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDeviceDocumentAccessEx_Impl, - { + pub const fn new() -> IUPnPDeviceDocumentAccessEx_Vtbl { + unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, pbstrdocument: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDeviceDocumentAccessEx_Impl::GetDocument(this) { Ok(ok__) => { @@ -631,14 +499,8 @@ pub trait IUPnPDeviceFinder_Impl: Sized + super::super::super::System::Com::IDis impl windows_core::RuntimeName for IUPnPDeviceFinder {} #[cfg(feature = "Win32_System_Com")] impl IUPnPDeviceFinder_Vtbl { - pub const fn new() -> IUPnPDeviceFinder_Vtbl - where - Identity: IUPnPDeviceFinder_Impl, - { - unsafe extern "system" fn FindByType(this: *mut core::ffi::c_void, bstrtypeuri: core::mem::MaybeUninit, dwflags: u32, pdevices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDeviceFinder_Impl, - { + pub const fn new() -> IUPnPDeviceFinder_Vtbl { + unsafe extern "system" fn FindByType(this: *mut core::ffi::c_void, bstrtypeuri: core::mem::MaybeUninit, dwflags: u32, pdevices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDeviceFinder_Impl::FindByType(this, core::mem::transmute(&bstrtypeuri), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -648,10 +510,7 @@ impl IUPnPDeviceFinder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAsyncFind(this: *mut core::ffi::c_void, bstrtypeuri: core::mem::MaybeUninit, dwflags: u32, punkdevicefindercallback: *mut core::ffi::c_void, plfinddata: *mut i32) -> windows_core::HRESULT - where - Identity: IUPnPDeviceFinder_Impl, - { + unsafe extern "system" fn CreateAsyncFind(this: *mut core::ffi::c_void, bstrtypeuri: core::mem::MaybeUninit, dwflags: u32, punkdevicefindercallback: *mut core::ffi::c_void, plfinddata: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDeviceFinder_Impl::CreateAsyncFind(this, core::mem::transmute(&bstrtypeuri), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&punkdevicefindercallback)) { Ok(ok__) => { @@ -661,24 +520,15 @@ impl IUPnPDeviceFinder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartAsyncFind(this: *mut core::ffi::c_void, lfinddata: i32) -> windows_core::HRESULT - where - Identity: IUPnPDeviceFinder_Impl, - { + unsafe extern "system" fn StartAsyncFind(this: *mut core::ffi::c_void, lfinddata: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDeviceFinder_Impl::StartAsyncFind(this, core::mem::transmute_copy(&lfinddata)).into() } - unsafe extern "system" fn CancelAsyncFind(this: *mut core::ffi::c_void, lfinddata: i32) -> windows_core::HRESULT - where - Identity: IUPnPDeviceFinder_Impl, - { + unsafe extern "system" fn CancelAsyncFind(this: *mut core::ffi::c_void, lfinddata: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDeviceFinder_Impl::CancelAsyncFind(this, core::mem::transmute_copy(&lfinddata)).into() } - unsafe extern "system" fn FindByUDN(this: *mut core::ffi::c_void, bstrudn: core::mem::MaybeUninit, pdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDeviceFinder_Impl, - { + unsafe extern "system" fn FindByUDN(this: *mut core::ffi::c_void, bstrudn: core::mem::MaybeUninit, pdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDeviceFinder_Impl::FindByUDN(this, core::mem::transmute(&bstrudn)) { Ok(ok__) => { @@ -702,21 +552,15 @@ impl IUPnPDeviceFinder_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUPnPDeviceFinderAddCallbackWithInterface_Impl: Sized { +pub trait IUPnPDeviceFinderAddCallbackWithInterface_Impl: Sized + windows_core::IUnknownImpl { fn DeviceAddedWithInterface(&self, lfinddata: i32, pdevice: Option<&IUPnPDevice>, pguidinterface: *const windows_core::GUID) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IUPnPDeviceFinderAddCallbackWithInterface {} #[cfg(feature = "Win32_System_Com")] impl IUPnPDeviceFinderAddCallbackWithInterface_Vtbl { - pub const fn new() -> IUPnPDeviceFinderAddCallbackWithInterface_Vtbl - where - Identity: IUPnPDeviceFinderAddCallbackWithInterface_Impl, - { - unsafe extern "system" fn DeviceAddedWithInterface(this: *mut core::ffi::c_void, lfinddata: i32, pdevice: *mut core::ffi::c_void, pguidinterface: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IUPnPDeviceFinderAddCallbackWithInterface_Impl, - { + pub const fn new() -> IUPnPDeviceFinderAddCallbackWithInterface_Vtbl { + unsafe extern "system" fn DeviceAddedWithInterface(this: *mut core::ffi::c_void, lfinddata: i32, pdevice: *mut core::ffi::c_void, pguidinterface: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDeviceFinderAddCallbackWithInterface_Impl::DeviceAddedWithInterface(this, core::mem::transmute_copy(&lfinddata), windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&pguidinterface)).into() } @@ -727,7 +571,7 @@ impl IUPnPDeviceFinderAddCallbackWithInterface_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUPnPDeviceFinderCallback_Impl: Sized { +pub trait IUPnPDeviceFinderCallback_Impl: Sized + windows_core::IUnknownImpl { fn DeviceAdded(&self, lfinddata: i32, pdevice: Option<&IUPnPDevice>) -> windows_core::Result<()>; fn DeviceRemoved(&self, lfinddata: i32, bstrudn: &windows_core::BSTR) -> windows_core::Result<()>; fn SearchComplete(&self, lfinddata: i32) -> windows_core::Result<()>; @@ -736,28 +580,16 @@ pub trait IUPnPDeviceFinderCallback_Impl: Sized { impl windows_core::RuntimeName for IUPnPDeviceFinderCallback {} #[cfg(feature = "Win32_System_Com")] impl IUPnPDeviceFinderCallback_Vtbl { - pub const fn new() -> IUPnPDeviceFinderCallback_Vtbl - where - Identity: IUPnPDeviceFinderCallback_Impl, - { - unsafe extern "system" fn DeviceAdded(this: *mut core::ffi::c_void, lfinddata: i32, pdevice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDeviceFinderCallback_Impl, - { + pub const fn new() -> IUPnPDeviceFinderCallback_Vtbl { + unsafe extern "system" fn DeviceAdded(this: *mut core::ffi::c_void, lfinddata: i32, pdevice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDeviceFinderCallback_Impl::DeviceAdded(this, core::mem::transmute_copy(&lfinddata), windows_core::from_raw_borrowed(&pdevice)).into() } - unsafe extern "system" fn DeviceRemoved(this: *mut core::ffi::c_void, lfinddata: i32, bstrudn: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDeviceFinderCallback_Impl, - { + unsafe extern "system" fn DeviceRemoved(this: *mut core::ffi::c_void, lfinddata: i32, bstrudn: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDeviceFinderCallback_Impl::DeviceRemoved(this, core::mem::transmute_copy(&lfinddata), core::mem::transmute(&bstrudn)).into() } - unsafe extern "system" fn SearchComplete(this: *mut core::ffi::c_void, lfinddata: i32) -> windows_core::HRESULT - where - Identity: IUPnPDeviceFinderCallback_Impl, - { + unsafe extern "system" fn SearchComplete(this: *mut core::ffi::c_void, lfinddata: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDeviceFinderCallback_Impl::SearchComplete(this, core::mem::transmute_copy(&lfinddata)).into() } @@ -772,27 +604,18 @@ impl IUPnPDeviceFinderCallback_Vtbl { iid == &::IID } } -pub trait IUPnPDeviceProvider_Impl: Sized { +pub trait IUPnPDeviceProvider_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self, bstrinitstring: &windows_core::BSTR) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUPnPDeviceProvider {} impl IUPnPDeviceProvider_Vtbl { - pub const fn new() -> IUPnPDeviceProvider_Vtbl - where - Identity: IUPnPDeviceProvider_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, bstrinitstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPDeviceProvider_Impl, - { + pub const fn new() -> IUPnPDeviceProvider_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, bstrinitstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDeviceProvider_Impl::Start(this, core::mem::transmute(&bstrinitstring)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDeviceProvider_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPDeviceProvider_Impl::Stop(this).into() } @@ -812,14 +635,8 @@ pub trait IUPnPDevices_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for IUPnPDevices {} #[cfg(feature = "Win32_System_Com")] impl IUPnPDevices_Vtbl { - pub const fn new() -> IUPnPDevices_Vtbl - where - Identity: IUPnPDevices_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IUPnPDevices_Impl, - { + pub const fn new() -> IUPnPDevices_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevices_Impl::Count(this) { Ok(ok__) => { @@ -829,10 +646,7 @@ impl IUPnPDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDevices_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevices_Impl::_NewEnum(this) { Ok(ok__) => { @@ -842,10 +656,7 @@ impl IUPnPDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, bstrudn: core::mem::MaybeUninit, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPDevices_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, bstrudn: core::mem::MaybeUninit, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPDevices_Impl::get_Item(this, core::mem::transmute(&bstrudn)) { Ok(ok__) => { @@ -866,27 +677,18 @@ impl IUPnPDevices_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IUPnPEventSink_Impl: Sized { +pub trait IUPnPEventSink_Impl: Sized + windows_core::IUnknownImpl { fn OnStateChanged(&self, cchanges: u32, rgdispidchanges: *const i32) -> windows_core::Result<()>; fn OnStateChangedSafe(&self, varsadispidchanges: &windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUPnPEventSink {} impl IUPnPEventSink_Vtbl { - pub const fn new() -> IUPnPEventSink_Vtbl - where - Identity: IUPnPEventSink_Impl, - { - unsafe extern "system" fn OnStateChanged(this: *mut core::ffi::c_void, cchanges: u32, rgdispidchanges: *const i32) -> windows_core::HRESULT - where - Identity: IUPnPEventSink_Impl, - { + pub const fn new() -> IUPnPEventSink_Vtbl { + unsafe extern "system" fn OnStateChanged(this: *mut core::ffi::c_void, cchanges: u32, rgdispidchanges: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPEventSink_Impl::OnStateChanged(this, core::mem::transmute_copy(&cchanges), core::mem::transmute_copy(&rgdispidchanges)).into() } - unsafe extern "system" fn OnStateChangedSafe(this: *mut core::ffi::c_void, varsadispidchanges: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPEventSink_Impl, - { + unsafe extern "system" fn OnStateChangedSafe(this: *mut core::ffi::c_void, varsadispidchanges: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPEventSink_Impl::OnStateChangedSafe(this, core::mem::transmute(&varsadispidchanges)).into() } @@ -900,27 +702,18 @@ impl IUPnPEventSink_Vtbl { iid == &::IID } } -pub trait IUPnPEventSource_Impl: Sized { +pub trait IUPnPEventSource_Impl: Sized + windows_core::IUnknownImpl { fn Advise(&self, pessubscriber: Option<&IUPnPEventSink>) -> windows_core::Result<()>; fn Unadvise(&self, pessubscriber: Option<&IUPnPEventSink>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUPnPEventSource {} impl IUPnPEventSource_Vtbl { - pub const fn new() -> IUPnPEventSource_Vtbl - where - Identity: IUPnPEventSource_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pessubscriber: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPEventSource_Impl, - { + pub const fn new() -> IUPnPEventSource_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pessubscriber: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPEventSource_Impl::Advise(this, windows_core::from_raw_borrowed(&pessubscriber)).into() } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, pessubscriber: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPEventSource_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, pessubscriber: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPEventSource_Impl::Unadvise(this, windows_core::from_raw_borrowed(&pessubscriber)).into() } @@ -930,19 +723,13 @@ impl IUPnPEventSource_Vtbl { iid == &::IID } } -pub trait IUPnPHttpHeaderControl_Impl: Sized { +pub trait IUPnPHttpHeaderControl_Impl: Sized + windows_core::IUnknownImpl { fn AddRequestHeaders(&self, bstrhttpheaders: &windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUPnPHttpHeaderControl {} impl IUPnPHttpHeaderControl_Vtbl { - pub const fn new() -> IUPnPHttpHeaderControl_Vtbl - where - Identity: IUPnPHttpHeaderControl_Impl, - { - unsafe extern "system" fn AddRequestHeaders(this: *mut core::ffi::c_void, bstrhttpheaders: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPHttpHeaderControl_Impl, - { + pub const fn new() -> IUPnPHttpHeaderControl_Vtbl { + unsafe extern "system" fn AddRequestHeaders(this: *mut core::ffi::c_void, bstrhttpheaders: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPHttpHeaderControl_Impl::AddRequestHeaders(this, core::mem::transmute(&bstrhttpheaders)).into() } @@ -952,7 +739,7 @@ impl IUPnPHttpHeaderControl_Vtbl { iid == &::IID } } -pub trait IUPnPRegistrar_Impl: Sized { +pub trait IUPnPRegistrar_Impl: Sized + windows_core::IUnknownImpl { 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; fn RegisterRunningDevice(&self, bstrxmldesc: &windows_core::BSTR, punkdevicecontrol: Option<&windows_core::IUnknown>, bstrinitstring: &windows_core::BSTR, bstrresourcepath: &windows_core::BSTR, nlifetime: i32) -> windows_core::Result; fn RegisterDeviceProvider(&self, bstrprovidername: &windows_core::BSTR, bstrprogidproviderclass: &windows_core::BSTR, bstrinitstring: &windows_core::BSTR, bstrcontainerid: &windows_core::BSTR) -> windows_core::Result<()>; @@ -962,14 +749,8 @@ pub trait IUPnPRegistrar_Impl: Sized { } impl windows_core::RuntimeName for IUPnPRegistrar {} impl IUPnPRegistrar_Vtbl { - pub const fn new() -> IUPnPRegistrar_Vtbl - where - Identity: IUPnPRegistrar_Impl, - { - unsafe extern "system" fn RegisterDevice(this: *mut core::ffi::c_void, bstrxmldesc: core::mem::MaybeUninit, bstrprogiddevicecontrolclass: core::mem::MaybeUninit, bstrinitstring: core::mem::MaybeUninit, bstrcontainerid: core::mem::MaybeUninit, bstrresourcepath: core::mem::MaybeUninit, nlifetime: i32, pbstrdeviceidentifier: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPRegistrar_Impl, - { + pub const fn new() -> IUPnPRegistrar_Vtbl { + unsafe extern "system" fn RegisterDevice(this: *mut core::ffi::c_void, bstrxmldesc: core::mem::MaybeUninit, bstrprogiddevicecontrolclass: core::mem::MaybeUninit, bstrinitstring: core::mem::MaybeUninit, bstrcontainerid: core::mem::MaybeUninit, bstrresourcepath: core::mem::MaybeUninit, nlifetime: i32, pbstrdeviceidentifier: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPRegistrar_Impl::RegisterDevice(this, 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)) { Ok(ok__) => { @@ -979,10 +760,7 @@ impl IUPnPRegistrar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterRunningDevice(this: *mut core::ffi::c_void, bstrxmldesc: core::mem::MaybeUninit, punkdevicecontrol: *mut core::ffi::c_void, bstrinitstring: core::mem::MaybeUninit, bstrresourcepath: core::mem::MaybeUninit, nlifetime: i32, pbstrdeviceidentifier: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPRegistrar_Impl, - { + unsafe extern "system" fn RegisterRunningDevice(this: *mut core::ffi::c_void, bstrxmldesc: core::mem::MaybeUninit, punkdevicecontrol: *mut core::ffi::c_void, bstrinitstring: core::mem::MaybeUninit, bstrresourcepath: core::mem::MaybeUninit, nlifetime: i32, pbstrdeviceidentifier: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPRegistrar_Impl::RegisterRunningDevice(this, core::mem::transmute(&bstrxmldesc), windows_core::from_raw_borrowed(&punkdevicecontrol), core::mem::transmute(&bstrinitstring), core::mem::transmute(&bstrresourcepath), core::mem::transmute_copy(&nlifetime)) { Ok(ok__) => { @@ -992,17 +770,11 @@ impl IUPnPRegistrar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterDeviceProvider(this: *mut core::ffi::c_void, bstrprovidername: core::mem::MaybeUninit, bstrprogidproviderclass: core::mem::MaybeUninit, bstrinitstring: core::mem::MaybeUninit, bstrcontainerid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPRegistrar_Impl, - { + unsafe extern "system" fn RegisterDeviceProvider(this: *mut core::ffi::c_void, bstrprovidername: core::mem::MaybeUninit, bstrprogidproviderclass: core::mem::MaybeUninit, bstrinitstring: core::mem::MaybeUninit, bstrcontainerid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPRegistrar_Impl::RegisterDeviceProvider(this, core::mem::transmute(&bstrprovidername), core::mem::transmute(&bstrprogidproviderclass), core::mem::transmute(&bstrinitstring), core::mem::transmute(&bstrcontainerid)).into() } - unsafe extern "system" fn GetUniqueDeviceName(this: *mut core::ffi::c_void, bstrdeviceidentifier: core::mem::MaybeUninit, bstrtemplateudn: core::mem::MaybeUninit, pbstrudn: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPRegistrar_Impl, - { + unsafe extern "system" fn GetUniqueDeviceName(this: *mut core::ffi::c_void, bstrdeviceidentifier: core::mem::MaybeUninit, bstrtemplateudn: core::mem::MaybeUninit, pbstrudn: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPRegistrar_Impl::GetUniqueDeviceName(this, core::mem::transmute(&bstrdeviceidentifier), core::mem::transmute(&bstrtemplateudn)) { Ok(ok__) => { @@ -1012,17 +784,11 @@ impl IUPnPRegistrar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterDevice(this: *mut core::ffi::c_void, bstrdeviceidentifier: core::mem::MaybeUninit, fpermanent: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUPnPRegistrar_Impl, - { + unsafe extern "system" fn UnregisterDevice(this: *mut core::ffi::c_void, bstrdeviceidentifier: core::mem::MaybeUninit, fpermanent: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPRegistrar_Impl::UnregisterDevice(this, core::mem::transmute(&bstrdeviceidentifier), core::mem::transmute_copy(&fpermanent)).into() } - unsafe extern "system" fn UnregisterDeviceProvider(this: *mut core::ffi::c_void, bstrprovidername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPRegistrar_Impl, - { + unsafe extern "system" fn UnregisterDeviceProvider(this: *mut core::ffi::c_void, bstrprovidername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPRegistrar_Impl::UnregisterDeviceProvider(this, core::mem::transmute(&bstrprovidername)).into() } @@ -1040,21 +806,15 @@ impl IUPnPRegistrar_Vtbl { iid == &::IID } } -pub trait IUPnPRemoteEndpointInfo_Impl: Sized { +pub trait IUPnPRemoteEndpointInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetDwordValue(&self, bstrvaluename: &windows_core::BSTR) -> windows_core::Result; fn GetStringValue(&self, bstrvaluename: &windows_core::BSTR) -> windows_core::Result; fn GetGuidValue(&self, bstrvaluename: &windows_core::BSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IUPnPRemoteEndpointInfo {} impl IUPnPRemoteEndpointInfo_Vtbl { - pub const fn new() -> IUPnPRemoteEndpointInfo_Vtbl - where - Identity: IUPnPRemoteEndpointInfo_Impl, - { - unsafe extern "system" fn GetDwordValue(this: *mut core::ffi::c_void, bstrvaluename: core::mem::MaybeUninit, pdwvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IUPnPRemoteEndpointInfo_Impl, - { + pub const fn new() -> IUPnPRemoteEndpointInfo_Vtbl { + unsafe extern "system" fn GetDwordValue(this: *mut core::ffi::c_void, bstrvaluename: core::mem::MaybeUninit, pdwvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPRemoteEndpointInfo_Impl::GetDwordValue(this, core::mem::transmute(&bstrvaluename)) { Ok(ok__) => { @@ -1064,10 +824,7 @@ impl IUPnPRemoteEndpointInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, bstrvaluename: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPRemoteEndpointInfo_Impl, - { + unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, bstrvaluename: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPRemoteEndpointInfo_Impl::GetStringValue(this, core::mem::transmute(&bstrvaluename)) { Ok(ok__) => { @@ -1077,10 +834,7 @@ impl IUPnPRemoteEndpointInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGuidValue(this: *mut core::ffi::c_void, bstrvaluename: core::mem::MaybeUninit, pguidvalue: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IUPnPRemoteEndpointInfo_Impl, - { + unsafe extern "system" fn GetGuidValue(this: *mut core::ffi::c_void, bstrvaluename: core::mem::MaybeUninit, pguidvalue: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPRemoteEndpointInfo_Impl::GetGuidValue(this, core::mem::transmute(&bstrvaluename)) { Ok(ok__) => { @@ -1101,27 +855,18 @@ impl IUPnPRemoteEndpointInfo_Vtbl { iid == &::IID } } -pub trait IUPnPReregistrar_Impl: Sized { +pub trait IUPnPReregistrar_Impl: Sized + windows_core::IUnknownImpl { 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: Option<&windows_core::IUnknown>, bstrinitstring: &windows_core::BSTR, bstrresourcepath: &windows_core::BSTR, nlifetime: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUPnPReregistrar {} impl IUPnPReregistrar_Vtbl { - pub const fn new() -> IUPnPReregistrar_Vtbl - where - Identity: IUPnPReregistrar_Impl, - { - unsafe extern "system" fn ReregisterDevice(this: *mut core::ffi::c_void, bstrdeviceidentifier: core::mem::MaybeUninit, bstrxmldesc: core::mem::MaybeUninit, bstrprogiddevicecontrolclass: core::mem::MaybeUninit, bstrinitstring: core::mem::MaybeUninit, bstrcontainerid: core::mem::MaybeUninit, bstrresourcepath: core::mem::MaybeUninit, nlifetime: i32) -> windows_core::HRESULT - where - Identity: IUPnPReregistrar_Impl, - { + pub const fn new() -> IUPnPReregistrar_Vtbl { + unsafe extern "system" fn ReregisterDevice(this: *mut core::ffi::c_void, bstrdeviceidentifier: core::mem::MaybeUninit, bstrxmldesc: core::mem::MaybeUninit, bstrprogiddevicecontrolclass: core::mem::MaybeUninit, bstrinitstring: core::mem::MaybeUninit, bstrcontainerid: core::mem::MaybeUninit, bstrresourcepath: core::mem::MaybeUninit, nlifetime: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPReregistrar_Impl::ReregisterDevice(this, 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(this: *mut core::ffi::c_void, bstrdeviceidentifier: core::mem::MaybeUninit, bstrxmldesc: core::mem::MaybeUninit, punkdevicecontrol: *mut core::ffi::c_void, bstrinitstring: core::mem::MaybeUninit, bstrresourcepath: core::mem::MaybeUninit, nlifetime: i32) -> windows_core::HRESULT - where - Identity: IUPnPReregistrar_Impl, - { + unsafe extern "system" fn ReregisterRunningDevice(this: *mut core::ffi::c_void, bstrdeviceidentifier: core::mem::MaybeUninit, bstrxmldesc: core::mem::MaybeUninit, punkdevicecontrol: *mut core::ffi::c_void, bstrinitstring: core::mem::MaybeUninit, bstrresourcepath: core::mem::MaybeUninit, nlifetime: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPReregistrar_Impl::ReregisterRunningDevice(this, core::mem::transmute(&bstrdeviceidentifier), core::mem::transmute(&bstrxmldesc), windows_core::from_raw_borrowed(&punkdevicecontrol), core::mem::transmute(&bstrinitstring), core::mem::transmute(&bstrresourcepath), core::mem::transmute_copy(&nlifetime)).into() } @@ -1148,14 +893,8 @@ pub trait IUPnPService_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for IUPnPService {} #[cfg(feature = "Win32_System_Com")] impl IUPnPService_Vtbl { - pub const fn new() -> IUPnPService_Vtbl - where - Identity: IUPnPService_Impl, - { - unsafe extern "system" fn QueryStateVariable(this: *mut core::ffi::c_void, bstrvariablename: core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPService_Impl, - { + pub const fn new() -> IUPnPService_Vtbl { + unsafe extern "system" fn QueryStateVariable(this: *mut core::ffi::c_void, bstrvariablename: core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPService_Impl::QueryStateVariable(this, core::mem::transmute(&bstrvariablename)) { Ok(ok__) => { @@ -1165,10 +904,7 @@ impl IUPnPService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InvokeAction(this: *mut core::ffi::c_void, bstractionname: core::mem::MaybeUninit, vinactionargs: core::mem::MaybeUninit, pvoutactionargs: *mut core::mem::MaybeUninit, pvretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPService_Impl, - { + unsafe extern "system" fn InvokeAction(this: *mut core::ffi::c_void, bstractionname: core::mem::MaybeUninit, vinactionargs: core::mem::MaybeUninit, pvoutactionargs: *mut core::mem::MaybeUninit, pvretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPService_Impl::InvokeAction(this, core::mem::transmute(&bstractionname), core::mem::transmute(&vinactionargs), core::mem::transmute_copy(&pvoutactionargs)) { Ok(ok__) => { @@ -1178,10 +914,7 @@ impl IUPnPService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceTypeIdentifier(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPService_Impl, - { + unsafe extern "system" fn ServiceTypeIdentifier(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPService_Impl::ServiceTypeIdentifier(this) { Ok(ok__) => { @@ -1191,17 +924,11 @@ impl IUPnPService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddCallback(this: *mut core::ffi::c_void, punkcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPService_Impl, - { + unsafe extern "system" fn AddCallback(this: *mut core::ffi::c_void, punkcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPService_Impl::AddCallback(this, windows_core::from_raw_borrowed(&punkcallback)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPService_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPService_Impl::Id(this) { Ok(ok__) => { @@ -1211,10 +938,7 @@ impl IUPnPService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastTransportStatus(this: *mut core::ffi::c_void, plvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IUPnPService_Impl, - { + unsafe extern "system" fn LastTransportStatus(this: *mut core::ffi::c_void, plvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPService_Impl::LastTransportStatus(this) { Ok(ok__) => { @@ -1238,7 +962,7 @@ impl IUPnPService_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IUPnPServiceAsync_Impl: Sized { +pub trait IUPnPServiceAsync_Impl: Sized + windows_core::IUnknownImpl { fn BeginInvokeAction(&self, bstractionname: &windows_core::BSTR, vinactionargs: &windows_core::VARIANT, pasyncresult: Option<&IUPnPAsyncResult>) -> windows_core::Result; fn EndInvokeAction(&self, ullrequestid: u64, pvoutactionargs: *mut windows_core::VARIANT, pvretval: *mut windows_core::VARIANT) -> windows_core::Result<()>; fn BeginQueryStateVariable(&self, bstrvariablename: &windows_core::BSTR, pasyncresult: Option<&IUPnPAsyncResult>) -> windows_core::Result; @@ -1251,14 +975,8 @@ pub trait IUPnPServiceAsync_Impl: Sized { } impl windows_core::RuntimeName for IUPnPServiceAsync {} impl IUPnPServiceAsync_Vtbl { - pub const fn new() -> IUPnPServiceAsync_Vtbl - where - Identity: IUPnPServiceAsync_Impl, - { - unsafe extern "system" fn BeginInvokeAction(this: *mut core::ffi::c_void, bstractionname: core::mem::MaybeUninit, vinactionargs: core::mem::MaybeUninit, pasyncresult: *mut core::ffi::c_void, pullrequestid: *mut u64) -> windows_core::HRESULT - where - Identity: IUPnPServiceAsync_Impl, - { + pub const fn new() -> IUPnPServiceAsync_Vtbl { + unsafe extern "system" fn BeginInvokeAction(this: *mut core::ffi::c_void, bstractionname: core::mem::MaybeUninit, vinactionargs: core::mem::MaybeUninit, pasyncresult: *mut core::ffi::c_void, pullrequestid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPServiceAsync_Impl::BeginInvokeAction(this, core::mem::transmute(&bstractionname), core::mem::transmute(&vinactionargs), windows_core::from_raw_borrowed(&pasyncresult)) { Ok(ok__) => { @@ -1268,17 +986,11 @@ impl IUPnPServiceAsync_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndInvokeAction(this: *mut core::ffi::c_void, ullrequestid: u64, pvoutactionargs: *mut core::mem::MaybeUninit, pvretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPServiceAsync_Impl, - { + unsafe extern "system" fn EndInvokeAction(this: *mut core::ffi::c_void, ullrequestid: u64, pvoutactionargs: *mut core::mem::MaybeUninit, pvretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPServiceAsync_Impl::EndInvokeAction(this, core::mem::transmute_copy(&ullrequestid), core::mem::transmute_copy(&pvoutactionargs), core::mem::transmute_copy(&pvretval)).into() } - unsafe extern "system" fn BeginQueryStateVariable(this: *mut core::ffi::c_void, bstrvariablename: core::mem::MaybeUninit, pasyncresult: *mut core::ffi::c_void, pullrequestid: *mut u64) -> windows_core::HRESULT - where - Identity: IUPnPServiceAsync_Impl, - { + unsafe extern "system" fn BeginQueryStateVariable(this: *mut core::ffi::c_void, bstrvariablename: core::mem::MaybeUninit, pasyncresult: *mut core::ffi::c_void, pullrequestid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPServiceAsync_Impl::BeginQueryStateVariable(this, core::mem::transmute(&bstrvariablename), windows_core::from_raw_borrowed(&pasyncresult)) { Ok(ok__) => { @@ -1288,17 +1000,11 @@ impl IUPnPServiceAsync_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndQueryStateVariable(this: *mut core::ffi::c_void, ullrequestid: u64, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPServiceAsync_Impl, - { + unsafe extern "system" fn EndQueryStateVariable(this: *mut core::ffi::c_void, ullrequestid: u64, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPServiceAsync_Impl::EndQueryStateVariable(this, core::mem::transmute_copy(&ullrequestid), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn BeginSubscribeToEvents(this: *mut core::ffi::c_void, punkcallback: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void, pullrequestid: *mut u64) -> windows_core::HRESULT - where - Identity: IUPnPServiceAsync_Impl, - { + unsafe extern "system" fn BeginSubscribeToEvents(this: *mut core::ffi::c_void, punkcallback: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void, pullrequestid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPServiceAsync_Impl::BeginSubscribeToEvents(this, windows_core::from_raw_borrowed(&punkcallback), windows_core::from_raw_borrowed(&pasyncresult)) { Ok(ok__) => { @@ -1308,17 +1014,11 @@ impl IUPnPServiceAsync_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndSubscribeToEvents(this: *mut core::ffi::c_void, ullrequestid: u64) -> windows_core::HRESULT - where - Identity: IUPnPServiceAsync_Impl, - { + unsafe extern "system" fn EndSubscribeToEvents(this: *mut core::ffi::c_void, ullrequestid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPServiceAsync_Impl::EndSubscribeToEvents(this, core::mem::transmute_copy(&ullrequestid)).into() } - unsafe extern "system" fn BeginSCPDDownload(this: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void, pullrequestid: *mut u64) -> windows_core::HRESULT - where - Identity: IUPnPServiceAsync_Impl, - { + unsafe extern "system" fn BeginSCPDDownload(this: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void, pullrequestid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPServiceAsync_Impl::BeginSCPDDownload(this, windows_core::from_raw_borrowed(&pasyncresult)) { Ok(ok__) => { @@ -1328,10 +1028,7 @@ impl IUPnPServiceAsync_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndSCPDDownload(this: *mut core::ffi::c_void, ullrequestid: u64, pbstrscpddoc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPServiceAsync_Impl, - { + unsafe extern "system" fn EndSCPDDownload(this: *mut core::ffi::c_void, ullrequestid: u64, pbstrscpddoc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPServiceAsync_Impl::EndSCPDDownload(this, core::mem::transmute_copy(&ullrequestid)) { Ok(ok__) => { @@ -1341,10 +1038,7 @@ impl IUPnPServiceAsync_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CancelAsyncOperation(this: *mut core::ffi::c_void, ullrequestid: u64) -> windows_core::HRESULT - where - Identity: IUPnPServiceAsync_Impl, - { + unsafe extern "system" fn CancelAsyncOperation(this: *mut core::ffi::c_void, ullrequestid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPServiceAsync_Impl::CancelAsyncOperation(this, core::mem::transmute_copy(&ullrequestid)).into() } @@ -1366,7 +1060,7 @@ impl IUPnPServiceAsync_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUPnPServiceCallback_Impl: Sized { +pub trait IUPnPServiceCallback_Impl: Sized + windows_core::IUnknownImpl { fn StateVariableChanged(&self, pus: Option<&IUPnPService>, pcwszstatevarname: &windows_core::PCWSTR, vavalue: &windows_core::VARIANT) -> windows_core::Result<()>; fn ServiceInstanceDied(&self, pus: Option<&IUPnPService>) -> windows_core::Result<()>; } @@ -1374,21 +1068,12 @@ pub trait IUPnPServiceCallback_Impl: Sized { impl windows_core::RuntimeName for IUPnPServiceCallback {} #[cfg(feature = "Win32_System_Com")] impl IUPnPServiceCallback_Vtbl { - pub const fn new() -> IUPnPServiceCallback_Vtbl - where - Identity: IUPnPServiceCallback_Impl, - { - unsafe extern "system" fn StateVariableChanged(this: *mut core::ffi::c_void, pus: *mut core::ffi::c_void, pcwszstatevarname: windows_core::PCWSTR, vavalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPServiceCallback_Impl, - { + pub const fn new() -> IUPnPServiceCallback_Vtbl { + unsafe extern "system" fn StateVariableChanged(this: *mut core::ffi::c_void, pus: *mut core::ffi::c_void, pcwszstatevarname: windows_core::PCWSTR, vavalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPServiceCallback_Impl::StateVariableChanged(this, windows_core::from_raw_borrowed(&pus), core::mem::transmute(&pcwszstatevarname), core::mem::transmute(&vavalue)).into() } - unsafe extern "system" fn ServiceInstanceDied(this: *mut core::ffi::c_void, pus: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPServiceCallback_Impl, - { + unsafe extern "system" fn ServiceInstanceDied(this: *mut core::ffi::c_void, pus: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPServiceCallback_Impl::ServiceInstanceDied(this, windows_core::from_raw_borrowed(&pus)).into() } @@ -1402,20 +1087,14 @@ impl IUPnPServiceCallback_Vtbl { iid == &::IID } } -pub trait IUPnPServiceDocumentAccess_Impl: Sized { +pub trait IUPnPServiceDocumentAccess_Impl: Sized + windows_core::IUnknownImpl { fn GetDocumentURL(&self) -> windows_core::Result; fn GetDocument(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUPnPServiceDocumentAccess {} impl IUPnPServiceDocumentAccess_Vtbl { - pub const fn new() -> IUPnPServiceDocumentAccess_Vtbl - where - Identity: IUPnPServiceDocumentAccess_Impl, - { - unsafe extern "system" fn GetDocumentURL(this: *mut core::ffi::c_void, pbstrdocurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPServiceDocumentAccess_Impl, - { + pub const fn new() -> IUPnPServiceDocumentAccess_Vtbl { + unsafe extern "system" fn GetDocumentURL(this: *mut core::ffi::c_void, pbstrdocurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPServiceDocumentAccess_Impl::GetDocumentURL(this) { Ok(ok__) => { @@ -1425,10 +1104,7 @@ impl IUPnPServiceDocumentAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, pbstrdoc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUPnPServiceDocumentAccess_Impl, - { + unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, pbstrdoc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPServiceDocumentAccess_Impl::GetDocument(this) { Ok(ok__) => { @@ -1448,19 +1124,13 @@ impl IUPnPServiceDocumentAccess_Vtbl { iid == &::IID } } -pub trait IUPnPServiceEnumProperty_Impl: Sized { +pub trait IUPnPServiceEnumProperty_Impl: Sized + windows_core::IUnknownImpl { fn SetServiceEnumProperty(&self, dwmask: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUPnPServiceEnumProperty {} impl IUPnPServiceEnumProperty_Vtbl { - pub const fn new() -> IUPnPServiceEnumProperty_Vtbl - where - Identity: IUPnPServiceEnumProperty_Impl, - { - unsafe extern "system" fn SetServiceEnumProperty(this: *mut core::ffi::c_void, dwmask: u32) -> windows_core::HRESULT - where - Identity: IUPnPServiceEnumProperty_Impl, - { + pub const fn new() -> IUPnPServiceEnumProperty_Vtbl { + unsafe extern "system" fn SetServiceEnumProperty(this: *mut core::ffi::c_void, dwmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPServiceEnumProperty_Impl::SetServiceEnumProperty(this, core::mem::transmute_copy(&dwmask)).into() } @@ -1480,14 +1150,8 @@ pub trait IUPnPServices_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for IUPnPServices {} #[cfg(feature = "Win32_System_Com")] impl IUPnPServices_Vtbl { - pub const fn new() -> IUPnPServices_Vtbl - where - Identity: IUPnPServices_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IUPnPServices_Impl, - { + pub const fn new() -> IUPnPServices_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPServices_Impl::Count(this) { Ok(ok__) => { @@ -1497,10 +1161,7 @@ impl IUPnPServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPServices_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPServices_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1510,10 +1171,7 @@ impl IUPnPServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, bstrserviceid: core::mem::MaybeUninit, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPServices_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, bstrserviceid: core::mem::MaybeUninit, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPServices_Impl::get_Item(this, core::mem::transmute(&bstrserviceid)) { Ok(ok__) => { 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 4bf1122e24..47cac6f86a 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Fax/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Fax/impl.rs @@ -9,14 +9,8 @@ pub trait IFaxAccount_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFaxAccount {} #[cfg(feature = "Win32_System_Com")] impl IFaxAccount_Vtbl { - pub const fn new() -> IFaxAccount_Vtbl - where - Identity: IFaxAccount_Impl, - { - unsafe extern "system" fn AccountName(this: *mut core::ffi::c_void, pbstraccountname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxAccount_Impl, - { + pub const fn new() -> IFaxAccount_Vtbl { + unsafe extern "system" fn AccountName(this: *mut core::ffi::c_void, pbstraccountname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccount_Impl::AccountName(this) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl IFaxAccount_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Folders(this: *mut core::ffi::c_void, ppfolders: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccount_Impl, - { + unsafe extern "system" fn Folders(this: *mut core::ffi::c_void, ppfolders: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccount_Impl::Folders(this) { Ok(ok__) => { @@ -39,17 +30,11 @@ impl IFaxAccount_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ListenToAccountEvents(this: *mut core::ffi::c_void, eventtypes: FAX_ACCOUNT_EVENTS_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxAccount_Impl, - { + unsafe extern "system" fn ListenToAccountEvents(this: *mut core::ffi::c_void, eventtypes: FAX_ACCOUNT_EVENTS_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccount_Impl::ListenToAccountEvents(this, core::mem::transmute_copy(&eventtypes)).into() } - unsafe extern "system" fn RegisteredEvents(this: *mut core::ffi::c_void, pregisteredevents: *mut FAX_ACCOUNT_EVENTS_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxAccount_Impl, - { + unsafe extern "system" fn RegisteredEvents(this: *mut core::ffi::c_void, pregisteredevents: *mut FAX_ACCOUNT_EVENTS_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccount_Impl::RegisteredEvents(this) { Ok(ok__) => { @@ -82,14 +67,8 @@ pub trait IFaxAccountFolders_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IFaxAccountFolders {} #[cfg(feature = "Win32_System_Com")] impl IFaxAccountFolders_Vtbl { - pub const fn new() -> IFaxAccountFolders_Vtbl - where - Identity: IFaxAccountFolders_Impl, - { - unsafe extern "system" fn OutgoingQueue(this: *mut core::ffi::c_void, pfaxoutgoingqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountFolders_Impl, - { + pub const fn new() -> IFaxAccountFolders_Vtbl { + unsafe extern "system" fn OutgoingQueue(this: *mut core::ffi::c_void, pfaxoutgoingqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountFolders_Impl::OutgoingQueue(this) { Ok(ok__) => { @@ -99,10 +78,7 @@ impl IFaxAccountFolders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IncomingQueue(this: *mut core::ffi::c_void, pfaxincomingqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountFolders_Impl, - { + unsafe extern "system" fn IncomingQueue(this: *mut core::ffi::c_void, pfaxincomingqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountFolders_Impl::IncomingQueue(this) { Ok(ok__) => { @@ -112,10 +88,7 @@ impl IFaxAccountFolders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IncomingArchive(this: *mut core::ffi::c_void, pfaxincomingarchive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountFolders_Impl, - { + unsafe extern "system" fn IncomingArchive(this: *mut core::ffi::c_void, pfaxincomingarchive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountFolders_Impl::IncomingArchive(this) { Ok(ok__) => { @@ -125,10 +98,7 @@ impl IFaxAccountFolders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutgoingArchive(this: *mut core::ffi::c_void, pfaxoutgoingarchive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountFolders_Impl, - { + unsafe extern "system" fn OutgoingArchive(this: *mut core::ffi::c_void, pfaxoutgoingarchive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountFolders_Impl::OutgoingArchive(this) { Ok(ok__) => { @@ -162,14 +132,8 @@ pub trait IFaxAccountIncomingArchive_Impl: Sized + super::super::System::Com::ID impl windows_core::RuntimeName for IFaxAccountIncomingArchive {} #[cfg(feature = "Win32_System_Com")] impl IFaxAccountIncomingArchive_Vtbl { - pub const fn new() -> IFaxAccountIncomingArchive_Vtbl - where - Identity: IFaxAccountIncomingArchive_Impl, - { - unsafe extern "system" fn SizeLow(this: *mut core::ffi::c_void, plsizelow: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxAccountIncomingArchive_Impl, - { + pub const fn new() -> IFaxAccountIncomingArchive_Vtbl { + unsafe extern "system" fn SizeLow(this: *mut core::ffi::c_void, plsizelow: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountIncomingArchive_Impl::SizeLow(this) { Ok(ok__) => { @@ -179,10 +143,7 @@ impl IFaxAccountIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SizeHigh(this: *mut core::ffi::c_void, plsizehigh: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxAccountIncomingArchive_Impl, - { + unsafe extern "system" fn SizeHigh(this: *mut core::ffi::c_void, plsizehigh: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountIncomingArchive_Impl::SizeHigh(this) { Ok(ok__) => { @@ -192,17 +153,11 @@ impl IFaxAccountIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountIncomingArchive_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountIncomingArchive_Impl::Refresh(this).into() } - unsafe extern "system" fn GetMessages(this: *mut core::ffi::c_void, lprefetchsize: i32, pfaxincomingmessageiterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountIncomingArchive_Impl, - { + unsafe extern "system" fn GetMessages(this: *mut core::ffi::c_void, lprefetchsize: i32, pfaxincomingmessageiterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountIncomingArchive_Impl::GetMessages(this, core::mem::transmute_copy(&lprefetchsize)) { Ok(ok__) => { @@ -212,10 +167,7 @@ impl IFaxAccountIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, pfaxincomingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountIncomingArchive_Impl, - { + unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, pfaxincomingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountIncomingArchive_Impl::GetMessage(this, core::mem::transmute(&bstrmessageid)) { Ok(ok__) => { @@ -247,14 +199,8 @@ pub trait IFaxAccountIncomingQueue_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for IFaxAccountIncomingQueue {} #[cfg(feature = "Win32_System_Com")] impl IFaxAccountIncomingQueue_Vtbl { - pub const fn new() -> IFaxAccountIncomingQueue_Vtbl - where - Identity: IFaxAccountIncomingQueue_Impl, - { - unsafe extern "system" fn GetJobs(this: *mut core::ffi::c_void, pfaxincomingjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountIncomingQueue_Impl, - { + pub const fn new() -> IFaxAccountIncomingQueue_Vtbl { + unsafe extern "system" fn GetJobs(this: *mut core::ffi::c_void, pfaxincomingjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountIncomingQueue_Impl::GetJobs(this) { Ok(ok__) => { @@ -264,10 +210,7 @@ impl IFaxAccountIncomingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pfaxincomingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountIncomingQueue_Impl, - { + unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pfaxincomingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountIncomingQueue_Impl::GetJob(this, core::mem::transmute(&bstrjobid)) { Ok(ok__) => { @@ -305,84 +248,48 @@ pub trait IFaxAccountNotify_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IFaxAccountNotify {} #[cfg(feature = "Win32_System_Com")] impl IFaxAccountNotify_Vtbl { - pub const fn new() -> IFaxAccountNotify_Vtbl - where - Identity: IFaxAccountNotify_Impl, - { - unsafe extern "system" fn OnIncomingJobAdded(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + pub const fn new() -> IFaxAccountNotify_Vtbl { + unsafe extern "system" fn OnIncomingJobAdded(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnIncomingJobAdded(this, windows_core::from_raw_borrowed(&pfaxaccount), core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnIncomingJobRemoved(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + unsafe extern "system" fn OnIncomingJobRemoved(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnIncomingJobRemoved(this, windows_core::from_raw_borrowed(&pfaxaccount), core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnIncomingJobChanged(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pjobstatus: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + unsafe extern "system" fn OnIncomingJobChanged(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pjobstatus: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnIncomingJobChanged(this, windows_core::from_raw_borrowed(&pfaxaccount), core::mem::transmute(&bstrjobid), windows_core::from_raw_borrowed(&pjobstatus)).into() } - unsafe extern "system" fn OnOutgoingJobAdded(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + unsafe extern "system" fn OnOutgoingJobAdded(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnOutgoingJobAdded(this, windows_core::from_raw_borrowed(&pfaxaccount), core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnOutgoingJobRemoved(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + unsafe extern "system" fn OnOutgoingJobRemoved(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnOutgoingJobRemoved(this, windows_core::from_raw_borrowed(&pfaxaccount), core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnOutgoingJobChanged(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pjobstatus: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + unsafe extern "system" fn OnOutgoingJobChanged(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pjobstatus: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnOutgoingJobChanged(this, windows_core::from_raw_borrowed(&pfaxaccount), core::mem::transmute(&bstrjobid), windows_core::from_raw_borrowed(&pjobstatus)).into() } - unsafe extern "system" fn OnIncomingMessageAdded(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, faddedtoreceivefolder: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + unsafe extern "system" fn OnIncomingMessageAdded(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, faddedtoreceivefolder: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnIncomingMessageAdded(this, windows_core::from_raw_borrowed(&pfaxaccount), core::mem::transmute(&bstrmessageid), core::mem::transmute_copy(&faddedtoreceivefolder)).into() } - unsafe extern "system" fn OnIncomingMessageRemoved(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, fremovedfromreceivefolder: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + unsafe extern "system" fn OnIncomingMessageRemoved(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, fremovedfromreceivefolder: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnIncomingMessageRemoved(this, windows_core::from_raw_borrowed(&pfaxaccount), core::mem::transmute(&bstrmessageid), core::mem::transmute_copy(&fremovedfromreceivefolder)).into() } - unsafe extern "system" fn OnOutgoingMessageAdded(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + unsafe extern "system" fn OnOutgoingMessageAdded(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnOutgoingMessageAdded(this, windows_core::from_raw_borrowed(&pfaxaccount), core::mem::transmute(&bstrmessageid)).into() } - unsafe extern "system" fn OnOutgoingMessageRemoved(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + unsafe extern "system" fn OnOutgoingMessageRemoved(this: *mut core::ffi::c_void, pfaxaccount: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnOutgoingMessageRemoved(this, windows_core::from_raw_borrowed(&pfaxaccount), core::mem::transmute(&bstrmessageid)).into() } - unsafe extern "system" fn OnServerShutDown(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountNotify_Impl, - { + unsafe extern "system" fn OnServerShutDown(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountNotify_Impl::OnServerShutDown(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } @@ -417,14 +324,8 @@ pub trait IFaxAccountOutgoingArchive_Impl: Sized + super::super::System::Com::ID impl windows_core::RuntimeName for IFaxAccountOutgoingArchive {} #[cfg(feature = "Win32_System_Com")] impl IFaxAccountOutgoingArchive_Vtbl { - pub const fn new() -> IFaxAccountOutgoingArchive_Vtbl - where - Identity: IFaxAccountOutgoingArchive_Impl, - { - unsafe extern "system" fn SizeLow(this: *mut core::ffi::c_void, plsizelow: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxAccountOutgoingArchive_Impl, - { + pub const fn new() -> IFaxAccountOutgoingArchive_Vtbl { + unsafe extern "system" fn SizeLow(this: *mut core::ffi::c_void, plsizelow: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountOutgoingArchive_Impl::SizeLow(this) { Ok(ok__) => { @@ -434,10 +335,7 @@ impl IFaxAccountOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SizeHigh(this: *mut core::ffi::c_void, plsizehigh: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxAccountOutgoingArchive_Impl, - { + unsafe extern "system" fn SizeHigh(this: *mut core::ffi::c_void, plsizehigh: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountOutgoingArchive_Impl::SizeHigh(this) { Ok(ok__) => { @@ -447,17 +345,11 @@ impl IFaxAccountOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountOutgoingArchive_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountOutgoingArchive_Impl::Refresh(this).into() } - unsafe extern "system" fn GetMessages(this: *mut core::ffi::c_void, lprefetchsize: i32, pfaxoutgoingmessageiterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountOutgoingArchive_Impl, - { + unsafe extern "system" fn GetMessages(this: *mut core::ffi::c_void, lprefetchsize: i32, pfaxoutgoingmessageiterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountOutgoingArchive_Impl::GetMessages(this, core::mem::transmute_copy(&lprefetchsize)) { Ok(ok__) => { @@ -467,10 +359,7 @@ impl IFaxAccountOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, pfaxoutgoingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountOutgoingArchive_Impl, - { + unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, pfaxoutgoingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountOutgoingArchive_Impl::GetMessage(this, core::mem::transmute(&bstrmessageid)) { Ok(ok__) => { @@ -502,14 +391,8 @@ pub trait IFaxAccountOutgoingQueue_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for IFaxAccountOutgoingQueue {} #[cfg(feature = "Win32_System_Com")] impl IFaxAccountOutgoingQueue_Vtbl { - pub const fn new() -> IFaxAccountOutgoingQueue_Vtbl - where - Identity: IFaxAccountOutgoingQueue_Impl, - { - unsafe extern "system" fn GetJobs(this: *mut core::ffi::c_void, pfaxoutgoingjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountOutgoingQueue_Impl, - { + pub const fn new() -> IFaxAccountOutgoingQueue_Vtbl { + unsafe extern "system" fn GetJobs(this: *mut core::ffi::c_void, pfaxoutgoingjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountOutgoingQueue_Impl::GetJobs(this) { Ok(ok__) => { @@ -519,10 +402,7 @@ impl IFaxAccountOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pfaxoutgoingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountOutgoingQueue_Impl, - { + unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pfaxoutgoingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountOutgoingQueue_Impl::GetJob(this, core::mem::transmute(&bstrjobid)) { Ok(ok__) => { @@ -553,14 +433,8 @@ pub trait IFaxAccountSet_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IFaxAccountSet {} #[cfg(feature = "Win32_System_Com")] impl IFaxAccountSet_Vtbl { - pub const fn new() -> IFaxAccountSet_Vtbl - where - Identity: IFaxAccountSet_Impl, - { - unsafe extern "system" fn GetAccounts(this: *mut core::ffi::c_void, ppfaxaccounts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountSet_Impl, - { + pub const fn new() -> IFaxAccountSet_Vtbl { + unsafe extern "system" fn GetAccounts(this: *mut core::ffi::c_void, ppfaxaccounts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountSet_Impl::GetAccounts(this) { Ok(ok__) => { @@ -570,10 +444,7 @@ impl IFaxAccountSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAccount(this: *mut core::ffi::c_void, bstraccountname: core::mem::MaybeUninit, pfaxaccount: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountSet_Impl, - { + unsafe extern "system" fn GetAccount(this: *mut core::ffi::c_void, bstraccountname: core::mem::MaybeUninit, pfaxaccount: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountSet_Impl::GetAccount(this, core::mem::transmute(&bstraccountname)) { Ok(ok__) => { @@ -583,10 +454,7 @@ impl IFaxAccountSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddAccount(this: *mut core::ffi::c_void, bstraccountname: core::mem::MaybeUninit, pfaxaccount: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccountSet_Impl, - { + unsafe extern "system" fn AddAccount(this: *mut core::ffi::c_void, bstraccountname: core::mem::MaybeUninit, pfaxaccount: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccountSet_Impl::AddAccount(this, core::mem::transmute(&bstraccountname)) { Ok(ok__) => { @@ -596,10 +464,7 @@ impl IFaxAccountSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveAccount(this: *mut core::ffi::c_void, bstraccountname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxAccountSet_Impl, - { + unsafe extern "system" fn RemoveAccount(this: *mut core::ffi::c_void, bstraccountname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxAccountSet_Impl::RemoveAccount(this, core::mem::transmute(&bstraccountname)).into() } @@ -625,14 +490,8 @@ pub trait IFaxAccounts_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFaxAccounts {} #[cfg(feature = "Win32_System_Com")] impl IFaxAccounts_Vtbl { - pub const fn new() -> IFaxAccounts_Vtbl - where - Identity: IFaxAccounts_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccounts_Impl, - { + pub const fn new() -> IFaxAccounts_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccounts_Impl::_NewEnum(this) { Ok(ok__) => { @@ -642,10 +501,7 @@ impl IFaxAccounts_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxaccount: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxAccounts_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxaccount: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccounts_Impl::get_Item(this, core::mem::transmute(&vindex)) { Ok(ok__) => { @@ -655,10 +511,7 @@ impl IFaxAccounts_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxAccounts_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxAccounts_Impl::Count(this) { Ok(ok__) => { @@ -691,14 +544,8 @@ pub trait IFaxActivity_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFaxActivity {} #[cfg(feature = "Win32_System_Com")] impl IFaxActivity_Vtbl { - pub const fn new() -> IFaxActivity_Vtbl - where - Identity: IFaxActivity_Impl, - { - unsafe extern "system" fn IncomingMessages(this: *mut core::ffi::c_void, plincomingmessages: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxActivity_Impl, - { + pub const fn new() -> IFaxActivity_Vtbl { + unsafe extern "system" fn IncomingMessages(this: *mut core::ffi::c_void, plincomingmessages: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxActivity_Impl::IncomingMessages(this) { Ok(ok__) => { @@ -708,10 +555,7 @@ impl IFaxActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoutingMessages(this: *mut core::ffi::c_void, plroutingmessages: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxActivity_Impl, - { + unsafe extern "system" fn RoutingMessages(this: *mut core::ffi::c_void, plroutingmessages: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxActivity_Impl::RoutingMessages(this) { Ok(ok__) => { @@ -721,10 +565,7 @@ impl IFaxActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutgoingMessages(this: *mut core::ffi::c_void, ploutgoingmessages: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxActivity_Impl, - { + unsafe extern "system" fn OutgoingMessages(this: *mut core::ffi::c_void, ploutgoingmessages: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxActivity_Impl::OutgoingMessages(this) { Ok(ok__) => { @@ -734,10 +575,7 @@ impl IFaxActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueuedMessages(this: *mut core::ffi::c_void, plqueuedmessages: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxActivity_Impl, - { + unsafe extern "system" fn QueuedMessages(this: *mut core::ffi::c_void, plqueuedmessages: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxActivity_Impl::QueuedMessages(this) { Ok(ok__) => { @@ -747,10 +585,7 @@ impl IFaxActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxActivity_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxActivity_Impl::Refresh(this).into() } @@ -782,14 +617,8 @@ pub trait IFaxActivityLogging_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IFaxActivityLogging {} #[cfg(feature = "Win32_System_Com")] impl IFaxActivityLogging_Vtbl { - pub const fn new() -> IFaxActivityLogging_Vtbl - where - Identity: IFaxActivityLogging_Impl, - { - unsafe extern "system" fn LogIncoming(this: *mut core::ffi::c_void, pblogincoming: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxActivityLogging_Impl, - { + pub const fn new() -> IFaxActivityLogging_Vtbl { + unsafe extern "system" fn LogIncoming(this: *mut core::ffi::c_void, pblogincoming: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxActivityLogging_Impl::LogIncoming(this) { Ok(ok__) => { @@ -799,17 +628,11 @@ impl IFaxActivityLogging_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogIncoming(this: *mut core::ffi::c_void, blogincoming: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxActivityLogging_Impl, - { + unsafe extern "system" fn SetLogIncoming(this: *mut core::ffi::c_void, blogincoming: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxActivityLogging_Impl::SetLogIncoming(this, core::mem::transmute_copy(&blogincoming)).into() } - unsafe extern "system" fn LogOutgoing(this: *mut core::ffi::c_void, pblogoutgoing: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxActivityLogging_Impl, - { + unsafe extern "system" fn LogOutgoing(this: *mut core::ffi::c_void, pblogoutgoing: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxActivityLogging_Impl::LogOutgoing(this) { Ok(ok__) => { @@ -819,17 +642,11 @@ impl IFaxActivityLogging_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogOutgoing(this: *mut core::ffi::c_void, blogoutgoing: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxActivityLogging_Impl, - { + unsafe extern "system" fn SetLogOutgoing(this: *mut core::ffi::c_void, blogoutgoing: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxActivityLogging_Impl::SetLogOutgoing(this, core::mem::transmute_copy(&blogoutgoing)).into() } - unsafe extern "system" fn DatabasePath(this: *mut core::ffi::c_void, pbstrdatabasepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxActivityLogging_Impl, - { + unsafe extern "system" fn DatabasePath(this: *mut core::ffi::c_void, pbstrdatabasepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxActivityLogging_Impl::DatabasePath(this) { Ok(ok__) => { @@ -839,24 +656,15 @@ impl IFaxActivityLogging_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDatabasePath(this: *mut core::ffi::c_void, bstrdatabasepath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxActivityLogging_Impl, - { + unsafe extern "system" fn SetDatabasePath(this: *mut core::ffi::c_void, bstrdatabasepath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxActivityLogging_Impl::SetDatabasePath(this, core::mem::transmute(&bstrdatabasepath)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxActivityLogging_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxActivityLogging_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxActivityLogging_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxActivityLogging_Impl::Save(this).into() } @@ -925,14 +733,8 @@ pub trait IFaxConfiguration_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IFaxConfiguration {} #[cfg(feature = "Win32_System_Com")] impl IFaxConfiguration_Vtbl { - pub const fn new() -> IFaxConfiguration_Vtbl - where - Identity: IFaxConfiguration_Impl, - { - unsafe extern "system" fn UseArchive(this: *mut core::ffi::c_void, pbusearchive: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + pub const fn new() -> IFaxConfiguration_Vtbl { + unsafe extern "system" fn UseArchive(this: *mut core::ffi::c_void, pbusearchive: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::UseArchive(this) { Ok(ok__) => { @@ -942,17 +744,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseArchive(this: *mut core::ffi::c_void, busearchive: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetUseArchive(this: *mut core::ffi::c_void, busearchive: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetUseArchive(this, core::mem::transmute_copy(&busearchive)).into() } - unsafe extern "system" fn ArchiveLocation(this: *mut core::ffi::c_void, pbstrarchivelocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn ArchiveLocation(this: *mut core::ffi::c_void, pbstrarchivelocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::ArchiveLocation(this) { Ok(ok__) => { @@ -962,17 +758,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetArchiveLocation(this: *mut core::ffi::c_void, bstrarchivelocation: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetArchiveLocation(this: *mut core::ffi::c_void, bstrarchivelocation: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetArchiveLocation(this, core::mem::transmute(&bstrarchivelocation)).into() } - unsafe extern "system" fn SizeQuotaWarning(this: *mut core::ffi::c_void, pbsizequotawarning: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SizeQuotaWarning(this: *mut core::ffi::c_void, pbsizequotawarning: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::SizeQuotaWarning(this) { Ok(ok__) => { @@ -982,17 +772,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSizeQuotaWarning(this: *mut core::ffi::c_void, bsizequotawarning: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetSizeQuotaWarning(this: *mut core::ffi::c_void, bsizequotawarning: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetSizeQuotaWarning(this, core::mem::transmute_copy(&bsizequotawarning)).into() } - unsafe extern "system" fn HighQuotaWaterMark(this: *mut core::ffi::c_void, plhighquotawatermark: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn HighQuotaWaterMark(this: *mut core::ffi::c_void, plhighquotawatermark: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::HighQuotaWaterMark(this) { Ok(ok__) => { @@ -1002,17 +786,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHighQuotaWaterMark(this: *mut core::ffi::c_void, lhighquotawatermark: i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetHighQuotaWaterMark(this: *mut core::ffi::c_void, lhighquotawatermark: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetHighQuotaWaterMark(this, core::mem::transmute_copy(&lhighquotawatermark)).into() } - unsafe extern "system" fn LowQuotaWaterMark(this: *mut core::ffi::c_void, pllowquotawatermark: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn LowQuotaWaterMark(this: *mut core::ffi::c_void, pllowquotawatermark: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::LowQuotaWaterMark(this) { Ok(ok__) => { @@ -1022,17 +800,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLowQuotaWaterMark(this: *mut core::ffi::c_void, llowquotawatermark: i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetLowQuotaWaterMark(this: *mut core::ffi::c_void, llowquotawatermark: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetLowQuotaWaterMark(this, core::mem::transmute_copy(&llowquotawatermark)).into() } - unsafe extern "system" fn ArchiveAgeLimit(this: *mut core::ffi::c_void, plarchiveagelimit: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn ArchiveAgeLimit(this: *mut core::ffi::c_void, plarchiveagelimit: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::ArchiveAgeLimit(this) { Ok(ok__) => { @@ -1042,17 +814,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetArchiveAgeLimit(this: *mut core::ffi::c_void, larchiveagelimit: i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetArchiveAgeLimit(this: *mut core::ffi::c_void, larchiveagelimit: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetArchiveAgeLimit(this, core::mem::transmute_copy(&larchiveagelimit)).into() } - unsafe extern "system" fn ArchiveSizeLow(this: *mut core::ffi::c_void, plsizelow: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn ArchiveSizeLow(this: *mut core::ffi::c_void, plsizelow: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::ArchiveSizeLow(this) { Ok(ok__) => { @@ -1062,10 +828,7 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ArchiveSizeHigh(this: *mut core::ffi::c_void, plsizehigh: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn ArchiveSizeHigh(this: *mut core::ffi::c_void, plsizehigh: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::ArchiveSizeHigh(this) { Ok(ok__) => { @@ -1075,10 +838,7 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutgoingQueueBlocked(this: *mut core::ffi::c_void, pboutgoingblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn OutgoingQueueBlocked(this: *mut core::ffi::c_void, pboutgoingblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::OutgoingQueueBlocked(this) { Ok(ok__) => { @@ -1088,17 +848,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutgoingQueueBlocked(this: *mut core::ffi::c_void, boutgoingblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetOutgoingQueueBlocked(this: *mut core::ffi::c_void, boutgoingblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetOutgoingQueueBlocked(this, core::mem::transmute_copy(&boutgoingblocked)).into() } - unsafe extern "system" fn OutgoingQueuePaused(this: *mut core::ffi::c_void, pboutgoingpaused: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn OutgoingQueuePaused(this: *mut core::ffi::c_void, pboutgoingpaused: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::OutgoingQueuePaused(this) { Ok(ok__) => { @@ -1108,17 +862,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutgoingQueuePaused(this: *mut core::ffi::c_void, boutgoingpaused: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetOutgoingQueuePaused(this: *mut core::ffi::c_void, boutgoingpaused: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetOutgoingQueuePaused(this, core::mem::transmute_copy(&boutgoingpaused)).into() } - unsafe extern "system" fn AllowPersonalCoverPages(this: *mut core::ffi::c_void, pballowpersonalcoverpages: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn AllowPersonalCoverPages(this: *mut core::ffi::c_void, pballowpersonalcoverpages: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::AllowPersonalCoverPages(this) { Ok(ok__) => { @@ -1128,17 +876,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowPersonalCoverPages(this: *mut core::ffi::c_void, ballowpersonalcoverpages: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetAllowPersonalCoverPages(this: *mut core::ffi::c_void, ballowpersonalcoverpages: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetAllowPersonalCoverPages(this, core::mem::transmute_copy(&ballowpersonalcoverpages)).into() } - unsafe extern "system" fn UseDeviceTSID(this: *mut core::ffi::c_void, pbusedevicetsid: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn UseDeviceTSID(this: *mut core::ffi::c_void, pbusedevicetsid: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::UseDeviceTSID(this) { Ok(ok__) => { @@ -1148,17 +890,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseDeviceTSID(this: *mut core::ffi::c_void, busedevicetsid: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetUseDeviceTSID(this: *mut core::ffi::c_void, busedevicetsid: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetUseDeviceTSID(this, core::mem::transmute_copy(&busedevicetsid)).into() } - unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::Retries(this) { Ok(ok__) => { @@ -1168,17 +904,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRetries(this: *mut core::ffi::c_void, lretries: i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetRetries(this: *mut core::ffi::c_void, lretries: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetRetries(this, core::mem::transmute_copy(&lretries)).into() } - unsafe extern "system" fn RetryDelay(this: *mut core::ffi::c_void, plretrydelay: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn RetryDelay(this: *mut core::ffi::c_void, plretrydelay: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::RetryDelay(this) { Ok(ok__) => { @@ -1188,17 +918,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRetryDelay(this: *mut core::ffi::c_void, lretrydelay: i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetRetryDelay(this: *mut core::ffi::c_void, lretrydelay: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetRetryDelay(this, core::mem::transmute_copy(&lretrydelay)).into() } - unsafe extern "system" fn DiscountRateStart(this: *mut core::ffi::c_void, pdatediscountratestart: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn DiscountRateStart(this: *mut core::ffi::c_void, pdatediscountratestart: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::DiscountRateStart(this) { Ok(ok__) => { @@ -1208,17 +932,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDiscountRateStart(this: *mut core::ffi::c_void, datediscountratestart: f64) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetDiscountRateStart(this: *mut core::ffi::c_void, datediscountratestart: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetDiscountRateStart(this, core::mem::transmute_copy(&datediscountratestart)).into() } - unsafe extern "system" fn DiscountRateEnd(this: *mut core::ffi::c_void, pdatediscountrateend: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn DiscountRateEnd(this: *mut core::ffi::c_void, pdatediscountrateend: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::DiscountRateEnd(this) { Ok(ok__) => { @@ -1228,17 +946,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDiscountRateEnd(this: *mut core::ffi::c_void, datediscountrateend: f64) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetDiscountRateEnd(this: *mut core::ffi::c_void, datediscountrateend: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetDiscountRateEnd(this, core::mem::transmute_copy(&datediscountrateend)).into() } - unsafe extern "system" fn OutgoingQueueAgeLimit(this: *mut core::ffi::c_void, ploutgoingqueueagelimit: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn OutgoingQueueAgeLimit(this: *mut core::ffi::c_void, ploutgoingqueueagelimit: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::OutgoingQueueAgeLimit(this) { Ok(ok__) => { @@ -1248,17 +960,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutgoingQueueAgeLimit(this: *mut core::ffi::c_void, loutgoingqueueagelimit: i32) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetOutgoingQueueAgeLimit(this: *mut core::ffi::c_void, loutgoingqueueagelimit: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetOutgoingQueueAgeLimit(this, core::mem::transmute_copy(&loutgoingqueueagelimit)).into() } - unsafe extern "system" fn Branding(this: *mut core::ffi::c_void, pbbranding: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn Branding(this: *mut core::ffi::c_void, pbbranding: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::Branding(this) { Ok(ok__) => { @@ -1268,17 +974,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBranding(this: *mut core::ffi::c_void, bbranding: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetBranding(this: *mut core::ffi::c_void, bbranding: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetBranding(this, core::mem::transmute_copy(&bbranding)).into() } - unsafe extern "system" fn IncomingQueueBlocked(this: *mut core::ffi::c_void, pbincomingblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn IncomingQueueBlocked(this: *mut core::ffi::c_void, pbincomingblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::IncomingQueueBlocked(this) { Ok(ok__) => { @@ -1288,17 +988,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIncomingQueueBlocked(this: *mut core::ffi::c_void, bincomingblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetIncomingQueueBlocked(this: *mut core::ffi::c_void, bincomingblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetIncomingQueueBlocked(this, core::mem::transmute_copy(&bincomingblocked)).into() } - unsafe extern "system" fn AutoCreateAccountOnConnect(this: *mut core::ffi::c_void, pbautocreateaccountonconnect: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn AutoCreateAccountOnConnect(this: *mut core::ffi::c_void, pbautocreateaccountonconnect: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::AutoCreateAccountOnConnect(this) { Ok(ok__) => { @@ -1308,17 +1002,11 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoCreateAccountOnConnect(this: *mut core::ffi::c_void, bautocreateaccountonconnect: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetAutoCreateAccountOnConnect(this: *mut core::ffi::c_void, bautocreateaccountonconnect: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetAutoCreateAccountOnConnect(this, core::mem::transmute_copy(&bautocreateaccountonconnect)).into() } - unsafe extern "system" fn IncomingFaxesArePublic(this: *mut core::ffi::c_void, pbincomingfaxesarepublic: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn IncomingFaxesArePublic(this: *mut core::ffi::c_void, pbincomingfaxesarepublic: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxConfiguration_Impl::IncomingFaxesArePublic(this) { Ok(ok__) => { @@ -1328,24 +1016,15 @@ impl IFaxConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIncomingFaxesArePublic(this: *mut core::ffi::c_void, bincomingfaxesarepublic: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn SetIncomingFaxesArePublic(this: *mut core::ffi::c_void, bincomingfaxesarepublic: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::SetIncomingFaxesArePublic(this, core::mem::transmute_copy(&bincomingfaxesarepublic)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxConfiguration_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxConfiguration_Impl::Save(this).into() } @@ -1432,14 +1111,8 @@ pub trait IFaxDevice_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFaxDevice {} #[cfg(feature = "Win32_System_Com")] impl IFaxDevice_Vtbl { - pub const fn new() -> IFaxDevice_Vtbl - where - Identity: IFaxDevice_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + pub const fn new() -> IFaxDevice_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::Id(this) { Ok(ok__) => { @@ -1449,10 +1122,7 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceName(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn DeviceName(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::DeviceName(this) { Ok(ok__) => { @@ -1462,10 +1132,7 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProviderUniqueName(this: *mut core::ffi::c_void, pbstrprovideruniquename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn ProviderUniqueName(this: *mut core::ffi::c_void, pbstrprovideruniquename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::ProviderUniqueName(this) { Ok(ok__) => { @@ -1475,10 +1142,7 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PoweredOff(this: *mut core::ffi::c_void, pbpoweredoff: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn PoweredOff(this: *mut core::ffi::c_void, pbpoweredoff: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::PoweredOff(this) { Ok(ok__) => { @@ -1488,10 +1152,7 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceivingNow(this: *mut core::ffi::c_void, pbreceivingnow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn ReceivingNow(this: *mut core::ffi::c_void, pbreceivingnow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::ReceivingNow(this) { Ok(ok__) => { @@ -1501,10 +1162,7 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendingNow(this: *mut core::ffi::c_void, pbsendingnow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn SendingNow(this: *mut core::ffi::c_void, pbsendingnow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::SendingNow(this) { Ok(ok__) => { @@ -1514,10 +1172,7 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UsedRoutingMethods(this: *mut core::ffi::c_void, pvusedroutingmethods: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn UsedRoutingMethods(this: *mut core::ffi::c_void, pvusedroutingmethods: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::UsedRoutingMethods(this) { Ok(ok__) => { @@ -1527,10 +1182,7 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::Description(this) { Ok(ok__) => { @@ -1540,17 +1192,11 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn SendEnabled(this: *mut core::ffi::c_void, pbsendenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn SendEnabled(this: *mut core::ffi::c_void, pbsendenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::SendEnabled(this) { Ok(ok__) => { @@ -1560,17 +1206,11 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSendEnabled(this: *mut core::ffi::c_void, bsendenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn SetSendEnabled(this: *mut core::ffi::c_void, bsendenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::SetSendEnabled(this, core::mem::transmute_copy(&bsendenabled)).into() } - unsafe extern "system" fn ReceiveMode(this: *mut core::ffi::c_void, preceivemode: *mut FAX_DEVICE_RECEIVE_MODE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn ReceiveMode(this: *mut core::ffi::c_void, preceivemode: *mut FAX_DEVICE_RECEIVE_MODE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::ReceiveMode(this) { Ok(ok__) => { @@ -1580,17 +1220,11 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReceiveMode(this: *mut core::ffi::c_void, receivemode: FAX_DEVICE_RECEIVE_MODE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn SetReceiveMode(this: *mut core::ffi::c_void, receivemode: FAX_DEVICE_RECEIVE_MODE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::SetReceiveMode(this, core::mem::transmute_copy(&receivemode)).into() } - unsafe extern "system" fn RingsBeforeAnswer(this: *mut core::ffi::c_void, plringsbeforeanswer: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn RingsBeforeAnswer(this: *mut core::ffi::c_void, plringsbeforeanswer: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::RingsBeforeAnswer(this) { Ok(ok__) => { @@ -1600,17 +1234,11 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRingsBeforeAnswer(this: *mut core::ffi::c_void, lringsbeforeanswer: i32) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn SetRingsBeforeAnswer(this: *mut core::ffi::c_void, lringsbeforeanswer: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::SetRingsBeforeAnswer(this, core::mem::transmute_copy(&lringsbeforeanswer)).into() } - unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::CSID(this) { Ok(ok__) => { @@ -1620,17 +1248,11 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCSID(this: *mut core::ffi::c_void, bstrcsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn SetCSID(this: *mut core::ffi::c_void, bstrcsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::SetCSID(this, core::mem::transmute(&bstrcsid)).into() } - unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::TSID(this) { Ok(ok__) => { @@ -1640,31 +1262,19 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, bstrtsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, bstrtsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::SetTSID(this, core::mem::transmute(&bstrtsid)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::Save(this).into() } - unsafe extern "system" fn GetExtensionProperty(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, pvproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn GetExtensionProperty(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, pvproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::GetExtensionProperty(this, core::mem::transmute(&bstrguid)) { Ok(ok__) => { @@ -1674,24 +1284,15 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExtensionProperty(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, vproperty: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn SetExtensionProperty(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, vproperty: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::SetExtensionProperty(this, core::mem::transmute(&bstrguid), core::mem::transmute(&vproperty)).into() } - unsafe extern "system" fn UseRoutingMethod(this: *mut core::ffi::c_void, bstrmethodguid: core::mem::MaybeUninit, buse: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn UseRoutingMethod(this: *mut core::ffi::c_void, bstrmethodguid: core::mem::MaybeUninit, buse: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::UseRoutingMethod(this, core::mem::transmute(&bstrmethodguid), core::mem::transmute_copy(&buse)).into() } - unsafe extern "system" fn RingingNow(this: *mut core::ffi::c_void, pbringingnow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn RingingNow(this: *mut core::ffi::c_void, pbringingnow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevice_Impl::RingingNow(this) { Ok(ok__) => { @@ -1701,10 +1302,7 @@ impl IFaxDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AnswerCall(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDevice_Impl, - { + unsafe extern "system" fn AnswerCall(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDevice_Impl::AnswerCall(this).into() } @@ -1755,14 +1353,8 @@ pub trait IFaxDeviceIds_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IFaxDeviceIds {} #[cfg(feature = "Win32_System_Com")] impl IFaxDeviceIds_Vtbl { - pub const fn new() -> IFaxDeviceIds_Vtbl - where - Identity: IFaxDeviceIds_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDeviceIds_Impl, - { + pub const fn new() -> IFaxDeviceIds_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceIds_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1772,10 +1364,7 @@ impl IFaxDeviceIds_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pldeviceid: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceIds_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pldeviceid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceIds_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -1785,10 +1374,7 @@ impl IFaxDeviceIds_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceIds_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceIds_Impl::Count(this) { Ok(ok__) => { @@ -1798,24 +1384,15 @@ impl IFaxDeviceIds_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, ldeviceid: i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceIds_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, ldeviceid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDeviceIds_Impl::Add(this, core::mem::transmute_copy(&ldeviceid)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceIds_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDeviceIds_Impl::Remove(this, core::mem::transmute_copy(&lindex)).into() } - unsafe extern "system" fn SetOrder(this: *mut core::ffi::c_void, ldeviceid: i32, lneworder: i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceIds_Impl, - { + unsafe extern "system" fn SetOrder(this: *mut core::ffi::c_void, ldeviceid: i32, lneworder: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDeviceIds_Impl::SetOrder(this, core::mem::transmute_copy(&ldeviceid), core::mem::transmute_copy(&lneworder)).into() } @@ -1852,14 +1429,8 @@ pub trait IFaxDeviceProvider_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IFaxDeviceProvider {} #[cfg(feature = "Win32_System_Com")] impl IFaxDeviceProvider_Vtbl { - pub const fn new() -> IFaxDeviceProvider_Vtbl - where - Identity: IFaxDeviceProvider_Impl, - { - unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pbstrfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + pub const fn new() -> IFaxDeviceProvider_Vtbl { + unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pbstrfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::FriendlyName(this) { Ok(ok__) => { @@ -1869,10 +1440,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImageName(this: *mut core::ffi::c_void, pbstrimagename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn ImageName(this: *mut core::ffi::c_void, pbstrimagename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::ImageName(this) { Ok(ok__) => { @@ -1882,10 +1450,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UniqueName(this: *mut core::ffi::c_void, pbstruniquename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn UniqueName(this: *mut core::ffi::c_void, pbstruniquename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::UniqueName(this) { Ok(ok__) => { @@ -1895,10 +1460,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TapiProviderName(this: *mut core::ffi::c_void, pbstrtapiprovidername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn TapiProviderName(this: *mut core::ffi::c_void, pbstrtapiprovidername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::TapiProviderName(this) { Ok(ok__) => { @@ -1908,10 +1470,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::MajorVersion(this) { Ok(ok__) => { @@ -1921,10 +1480,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, plminorversion: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, plminorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::MinorVersion(this) { Ok(ok__) => { @@ -1934,10 +1490,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MajorBuild(this: *mut core::ffi::c_void, plmajorbuild: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn MajorBuild(this: *mut core::ffi::c_void, plmajorbuild: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::MajorBuild(this) { Ok(ok__) => { @@ -1947,10 +1500,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinorBuild(this: *mut core::ffi::c_void, plminorbuild: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn MinorBuild(this: *mut core::ffi::c_void, plminorbuild: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::MinorBuild(this) { Ok(ok__) => { @@ -1960,10 +1510,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Debug(this: *mut core::ffi::c_void, pbdebug: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn Debug(this: *mut core::ffi::c_void, pbdebug: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::Debug(this) { Ok(ok__) => { @@ -1973,10 +1520,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_PROVIDER_STATUS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_PROVIDER_STATUS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::Status(this) { Ok(ok__) => { @@ -1986,10 +1530,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitErrorCode(this: *mut core::ffi::c_void, pliniterrorcode: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn InitErrorCode(this: *mut core::ffi::c_void, pliniterrorcode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::InitErrorCode(this) { Ok(ok__) => { @@ -1999,10 +1540,7 @@ impl IFaxDeviceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceIds(this: *mut core::ffi::c_void, pvdeviceids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDeviceProvider_Impl, - { + unsafe extern "system" fn DeviceIds(this: *mut core::ffi::c_void, pvdeviceids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProvider_Impl::DeviceIds(this) { Ok(ok__) => { @@ -2042,14 +1580,8 @@ pub trait IFaxDeviceProviders_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IFaxDeviceProviders {} #[cfg(feature = "Win32_System_Com")] impl IFaxDeviceProviders_Vtbl { - pub const fn new() -> IFaxDeviceProviders_Vtbl - where - Identity: IFaxDeviceProviders_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDeviceProviders_Impl, - { + pub const fn new() -> IFaxDeviceProviders_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProviders_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2059,10 +1591,7 @@ impl IFaxDeviceProviders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxdeviceprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDeviceProviders_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxdeviceprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProviders_Impl::get_Item(this, core::mem::transmute(&vindex)) { Ok(ok__) => { @@ -2072,10 +1601,7 @@ impl IFaxDeviceProviders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDeviceProviders_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDeviceProviders_Impl::Count(this) { Ok(ok__) => { @@ -2107,14 +1633,8 @@ pub trait IFaxDevices_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFaxDevices {} #[cfg(feature = "Win32_System_Com")] impl IFaxDevices_Vtbl { - pub const fn new() -> IFaxDevices_Vtbl - where - Identity: IFaxDevices_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDevices_Impl, - { + pub const fn new() -> IFaxDevices_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevices_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2124,10 +1644,7 @@ impl IFaxDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDevices_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevices_Impl::get_Item(this, core::mem::transmute(&vindex)) { Ok(ok__) => { @@ -2137,10 +1654,7 @@ impl IFaxDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDevices_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevices_Impl::Count(this) { Ok(ok__) => { @@ -2150,10 +1664,7 @@ impl IFaxDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ItemById(this: *mut core::ffi::c_void, lid: i32, ppfaxdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDevices_Impl, - { + unsafe extern "system" fn get_ItemById(this: *mut core::ffi::c_void, lid: i32, ppfaxdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDevices_Impl::get_ItemById(this, core::mem::transmute_copy(&lid)) { Ok(ok__) => { @@ -2216,14 +1727,8 @@ pub trait IFaxDocument_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFaxDocument {} #[cfg(feature = "Win32_System_Com")] impl IFaxDocument_Vtbl { - pub const fn new() -> IFaxDocument_Vtbl - where - Identity: IFaxDocument_Impl, - { - unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pbstrbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + pub const fn new() -> IFaxDocument_Vtbl { + unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pbstrbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::Body(this) { Ok(ok__) => { @@ -2233,17 +1738,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, bstrbody: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, bstrbody: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetBody(this, core::mem::transmute(&bstrbody)).into() } - unsafe extern "system" fn Sender(this: *mut core::ffi::c_void, ppfaxsender: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn Sender(this: *mut core::ffi::c_void, ppfaxsender: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::Sender(this) { Ok(ok__) => { @@ -2253,10 +1752,7 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Recipients(this: *mut core::ffi::c_void, ppfaxrecipients: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn Recipients(this: *mut core::ffi::c_void, ppfaxrecipients: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::Recipients(this) { Ok(ok__) => { @@ -2266,10 +1762,7 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CoverPage(this: *mut core::ffi::c_void, pbstrcoverpage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn CoverPage(this: *mut core::ffi::c_void, pbstrcoverpage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::CoverPage(this) { Ok(ok__) => { @@ -2279,17 +1772,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCoverPage(this: *mut core::ffi::c_void, bstrcoverpage: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetCoverPage(this: *mut core::ffi::c_void, bstrcoverpage: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetCoverPage(this, core::mem::transmute(&bstrcoverpage)).into() } - unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, pbstrsubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, pbstrsubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::Subject(this) { Ok(ok__) => { @@ -2299,17 +1786,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubject(this: *mut core::ffi::c_void, bstrsubject: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetSubject(this: *mut core::ffi::c_void, bstrsubject: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetSubject(this, core::mem::transmute(&bstrsubject)).into() } - unsafe extern "system" fn Note(this: *mut core::ffi::c_void, pbstrnote: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn Note(this: *mut core::ffi::c_void, pbstrnote: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::Note(this) { Ok(ok__) => { @@ -2319,17 +1800,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNote(this: *mut core::ffi::c_void, bstrnote: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetNote(this: *mut core::ffi::c_void, bstrnote: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetNote(this, core::mem::transmute(&bstrnote)).into() } - unsafe extern "system" fn ScheduleTime(this: *mut core::ffi::c_void, pdatescheduletime: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn ScheduleTime(this: *mut core::ffi::c_void, pdatescheduletime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::ScheduleTime(this) { Ok(ok__) => { @@ -2339,17 +1814,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScheduleTime(this: *mut core::ffi::c_void, datescheduletime: f64) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetScheduleTime(this: *mut core::ffi::c_void, datescheduletime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetScheduleTime(this, core::mem::transmute_copy(&datescheduletime)).into() } - unsafe extern "system" fn ReceiptAddress(this: *mut core::ffi::c_void, pbstrreceiptaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn ReceiptAddress(this: *mut core::ffi::c_void, pbstrreceiptaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::ReceiptAddress(this) { Ok(ok__) => { @@ -2359,17 +1828,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReceiptAddress(this: *mut core::ffi::c_void, bstrreceiptaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetReceiptAddress(this: *mut core::ffi::c_void, bstrreceiptaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetReceiptAddress(this, core::mem::transmute(&bstrreceiptaddress)).into() } - unsafe extern "system" fn DocumentName(this: *mut core::ffi::c_void, pbstrdocumentname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn DocumentName(this: *mut core::ffi::c_void, pbstrdocumentname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::DocumentName(this) { Ok(ok__) => { @@ -2379,17 +1842,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDocumentName(this: *mut core::ffi::c_void, bstrdocumentname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetDocumentName(this: *mut core::ffi::c_void, bstrdocumentname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetDocumentName(this, core::mem::transmute(&bstrdocumentname)).into() } - unsafe extern "system" fn CallHandle(this: *mut core::ffi::c_void, plcallhandle: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn CallHandle(this: *mut core::ffi::c_void, plcallhandle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::CallHandle(this) { Ok(ok__) => { @@ -2399,17 +1856,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCallHandle(this: *mut core::ffi::c_void, lcallhandle: i32) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetCallHandle(this: *mut core::ffi::c_void, lcallhandle: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetCallHandle(this, core::mem::transmute_copy(&lcallhandle)).into() } - unsafe extern "system" fn CoverPageType(this: *mut core::ffi::c_void, pcoverpagetype: *mut FAX_COVERPAGE_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn CoverPageType(this: *mut core::ffi::c_void, pcoverpagetype: *mut FAX_COVERPAGE_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::CoverPageType(this) { Ok(ok__) => { @@ -2419,17 +1870,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCoverPageType(this: *mut core::ffi::c_void, coverpagetype: FAX_COVERPAGE_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetCoverPageType(this: *mut core::ffi::c_void, coverpagetype: FAX_COVERPAGE_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetCoverPageType(this, core::mem::transmute_copy(&coverpagetype)).into() } - unsafe extern "system" fn ScheduleType(this: *mut core::ffi::c_void, pscheduletype: *mut FAX_SCHEDULE_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn ScheduleType(this: *mut core::ffi::c_void, pscheduletype: *mut FAX_SCHEDULE_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::ScheduleType(this) { Ok(ok__) => { @@ -2439,17 +1884,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScheduleType(this: *mut core::ffi::c_void, scheduletype: FAX_SCHEDULE_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetScheduleType(this: *mut core::ffi::c_void, scheduletype: FAX_SCHEDULE_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetScheduleType(this, core::mem::transmute_copy(&scheduletype)).into() } - unsafe extern "system" fn ReceiptType(this: *mut core::ffi::c_void, preceipttype: *mut FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn ReceiptType(this: *mut core::ffi::c_void, preceipttype: *mut FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::ReceiptType(this) { Ok(ok__) => { @@ -2459,17 +1898,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReceiptType(this: *mut core::ffi::c_void, receipttype: FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetReceiptType(this: *mut core::ffi::c_void, receipttype: FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetReceiptType(this, core::mem::transmute_copy(&receipttype)).into() } - unsafe extern "system" fn GroupBroadcastReceipts(this: *mut core::ffi::c_void, pbusegrouping: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn GroupBroadcastReceipts(this: *mut core::ffi::c_void, pbusegrouping: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::GroupBroadcastReceipts(this) { Ok(ok__) => { @@ -2479,17 +1912,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGroupBroadcastReceipts(this: *mut core::ffi::c_void, busegrouping: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetGroupBroadcastReceipts(this: *mut core::ffi::c_void, busegrouping: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetGroupBroadcastReceipts(this, core::mem::transmute_copy(&busegrouping)).into() } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, ppriority: *mut FAX_PRIORITY_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, ppriority: *mut FAX_PRIORITY_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::Priority(this) { Ok(ok__) => { @@ -2499,17 +1926,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, priority: FAX_PRIORITY_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, priority: FAX_PRIORITY_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetPriority(this, core::mem::transmute_copy(&priority)).into() } - unsafe extern "system" fn TapiConnection(this: *mut core::ffi::c_void, pptapiconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn TapiConnection(this: *mut core::ffi::c_void, pptapiconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::TapiConnection(this) { Ok(ok__) => { @@ -2519,17 +1940,11 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_TapiConnection(this: *mut core::ffi::c_void, ptapiconnection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn putref_TapiConnection(this: *mut core::ffi::c_void, ptapiconnection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::putref_TapiConnection(this, windows_core::from_raw_borrowed(&ptapiconnection)).into() } - unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, bstrfaxservername: core::mem::MaybeUninit, pvfaxoutgoingjobids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, bstrfaxservername: core::mem::MaybeUninit, pvfaxoutgoingjobids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::Submit(this, core::mem::transmute(&bstrfaxservername)) { Ok(ok__) => { @@ -2539,10 +1954,7 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectedSubmit(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, pvfaxoutgoingjobids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn ConnectedSubmit(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, pvfaxoutgoingjobids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::ConnectedSubmit(this, windows_core::from_raw_borrowed(&pfaxserver)) { Ok(ok__) => { @@ -2552,10 +1964,7 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AttachFaxToReceipt(this: *mut core::ffi::c_void, pbattachfax: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn AttachFaxToReceipt(this: *mut core::ffi::c_void, pbattachfax: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument_Impl::AttachFaxToReceipt(this) { Ok(ok__) => { @@ -2565,10 +1974,7 @@ impl IFaxDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttachFaxToReceipt(this: *mut core::ffi::c_void, battachfax: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxDocument_Impl, - { + unsafe extern "system" fn SetAttachFaxToReceipt(this: *mut core::ffi::c_void, battachfax: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument_Impl::SetAttachFaxToReceipt(this, core::mem::transmute_copy(&battachfax)).into() } @@ -2626,14 +2032,8 @@ pub trait IFaxDocument2_Impl: Sized + IFaxDocument_Impl { impl windows_core::RuntimeName for IFaxDocument2 {} #[cfg(feature = "Win32_System_Com")] impl IFaxDocument2_Vtbl { - pub const fn new() -> IFaxDocument2_Vtbl - where - Identity: IFaxDocument2_Impl, - { - unsafe extern "system" fn SubmissionId(this: *mut core::ffi::c_void, pbstrsubmissionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument2_Impl, - { + pub const fn new() -> IFaxDocument2_Vtbl { + unsafe extern "system" fn SubmissionId(this: *mut core::ffi::c_void, pbstrsubmissionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument2_Impl::SubmissionId(this) { Ok(ok__) => { @@ -2643,10 +2043,7 @@ impl IFaxDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Bodies(this: *mut core::ffi::c_void, pvbodies: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument2_Impl, - { + unsafe extern "system" fn Bodies(this: *mut core::ffi::c_void, pvbodies: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxDocument2_Impl::Bodies(this) { Ok(ok__) => { @@ -2656,24 +2053,15 @@ impl IFaxDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBodies(this: *mut core::ffi::c_void, vbodies: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxDocument2_Impl, - { + unsafe extern "system" fn SetBodies(this: *mut core::ffi::c_void, vbodies: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument2_Impl::SetBodies(this, core::mem::transmute(&vbodies)).into() } - unsafe extern "system" fn Submit2(this: *mut core::ffi::c_void, bstrfaxservername: core::mem::MaybeUninit, pvfaxoutgoingjobids: *mut core::mem::MaybeUninit, plerrorbodyfile: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDocument2_Impl, - { + unsafe extern "system" fn Submit2(this: *mut core::ffi::c_void, bstrfaxservername: core::mem::MaybeUninit, pvfaxoutgoingjobids: *mut core::mem::MaybeUninit, plerrorbodyfile: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument2_Impl::Submit2(this, core::mem::transmute(&bstrfaxservername), core::mem::transmute_copy(&pvfaxoutgoingjobids), core::mem::transmute_copy(&plerrorbodyfile)).into() } - unsafe extern "system" fn ConnectedSubmit2(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, pvfaxoutgoingjobids: *mut core::mem::MaybeUninit, plerrorbodyfile: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxDocument2_Impl, - { + unsafe extern "system" fn ConnectedSubmit2(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, pvfaxoutgoingjobids: *mut core::mem::MaybeUninit, plerrorbodyfile: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxDocument2_Impl::ConnectedSubmit2(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute_copy(&pvfaxoutgoingjobids), core::mem::transmute_copy(&plerrorbodyfile)).into() } @@ -2707,14 +2095,8 @@ pub trait IFaxEventLogging_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IFaxEventLogging {} #[cfg(feature = "Win32_System_Com")] impl IFaxEventLogging_Vtbl { - pub const fn new() -> IFaxEventLogging_Vtbl - where - Identity: IFaxEventLogging_Impl, - { - unsafe extern "system" fn InitEventsLevel(this: *mut core::ffi::c_void, piniteventlevel: *mut FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT - where - Identity: IFaxEventLogging_Impl, - { + pub const fn new() -> IFaxEventLogging_Vtbl { + unsafe extern "system" fn InitEventsLevel(this: *mut core::ffi::c_void, piniteventlevel: *mut FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxEventLogging_Impl::InitEventsLevel(this) { Ok(ok__) => { @@ -2724,17 +2106,11 @@ impl IFaxEventLogging_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitEventsLevel(this: *mut core::ffi::c_void, initeventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT - where - Identity: IFaxEventLogging_Impl, - { + unsafe extern "system" fn SetInitEventsLevel(this: *mut core::ffi::c_void, initeventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxEventLogging_Impl::SetInitEventsLevel(this, core::mem::transmute_copy(&initeventlevel)).into() } - unsafe extern "system" fn InboundEventsLevel(this: *mut core::ffi::c_void, pinboundeventlevel: *mut FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT - where - Identity: IFaxEventLogging_Impl, - { + unsafe extern "system" fn InboundEventsLevel(this: *mut core::ffi::c_void, pinboundeventlevel: *mut FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxEventLogging_Impl::InboundEventsLevel(this) { Ok(ok__) => { @@ -2744,17 +2120,11 @@ impl IFaxEventLogging_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInboundEventsLevel(this: *mut core::ffi::c_void, inboundeventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT - where - Identity: IFaxEventLogging_Impl, - { + unsafe extern "system" fn SetInboundEventsLevel(this: *mut core::ffi::c_void, inboundeventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxEventLogging_Impl::SetInboundEventsLevel(this, core::mem::transmute_copy(&inboundeventlevel)).into() } - unsafe extern "system" fn OutboundEventsLevel(this: *mut core::ffi::c_void, poutboundeventlevel: *mut FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT - where - Identity: IFaxEventLogging_Impl, - { + unsafe extern "system" fn OutboundEventsLevel(this: *mut core::ffi::c_void, poutboundeventlevel: *mut FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxEventLogging_Impl::OutboundEventsLevel(this) { Ok(ok__) => { @@ -2764,17 +2134,11 @@ impl IFaxEventLogging_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutboundEventsLevel(this: *mut core::ffi::c_void, outboundeventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT - where - Identity: IFaxEventLogging_Impl, - { + unsafe extern "system" fn SetOutboundEventsLevel(this: *mut core::ffi::c_void, outboundeventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxEventLogging_Impl::SetOutboundEventsLevel(this, core::mem::transmute_copy(&outboundeventlevel)).into() } - unsafe extern "system" fn GeneralEventsLevel(this: *mut core::ffi::c_void, pgeneraleventlevel: *mut FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT - where - Identity: IFaxEventLogging_Impl, - { + unsafe extern "system" fn GeneralEventsLevel(this: *mut core::ffi::c_void, pgeneraleventlevel: *mut FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxEventLogging_Impl::GeneralEventsLevel(this) { Ok(ok__) => { @@ -2784,24 +2148,15 @@ impl IFaxEventLogging_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGeneralEventsLevel(this: *mut core::ffi::c_void, generaleventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT - where - Identity: IFaxEventLogging_Impl, - { + unsafe extern "system" fn SetGeneralEventsLevel(this: *mut core::ffi::c_void, generaleventlevel: FAX_LOG_LEVEL_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxEventLogging_Impl::SetGeneralEventsLevel(this, core::mem::transmute_copy(&generaleventlevel)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxEventLogging_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxEventLogging_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxEventLogging_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxEventLogging_Impl::Save(this).into() } @@ -2834,14 +2189,8 @@ pub trait IFaxFolders_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFaxFolders {} #[cfg(feature = "Win32_System_Com")] impl IFaxFolders_Vtbl { - pub const fn new() -> IFaxFolders_Vtbl - where - Identity: IFaxFolders_Impl, - { - unsafe extern "system" fn OutgoingQueue(this: *mut core::ffi::c_void, pfaxoutgoingqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxFolders_Impl, - { + pub const fn new() -> IFaxFolders_Vtbl { + unsafe extern "system" fn OutgoingQueue(this: *mut core::ffi::c_void, pfaxoutgoingqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxFolders_Impl::OutgoingQueue(this) { Ok(ok__) => { @@ -2851,10 +2200,7 @@ impl IFaxFolders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IncomingQueue(this: *mut core::ffi::c_void, pfaxincomingqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxFolders_Impl, - { + unsafe extern "system" fn IncomingQueue(this: *mut core::ffi::c_void, pfaxincomingqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxFolders_Impl::IncomingQueue(this) { Ok(ok__) => { @@ -2864,10 +2210,7 @@ impl IFaxFolders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IncomingArchive(this: *mut core::ffi::c_void, pfaxincomingarchive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxFolders_Impl, - { + unsafe extern "system" fn IncomingArchive(this: *mut core::ffi::c_void, pfaxincomingarchive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxFolders_Impl::IncomingArchive(this) { Ok(ok__) => { @@ -2877,10 +2220,7 @@ impl IFaxFolders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutgoingArchive(this: *mut core::ffi::c_void, pfaxoutgoingarchive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxFolders_Impl, - { + unsafe extern "system" fn OutgoingArchive(this: *mut core::ffi::c_void, pfaxoutgoingarchive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxFolders_Impl::OutgoingArchive(this) { Ok(ok__) => { @@ -2911,14 +2251,8 @@ pub trait IFaxInboundRouting_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IFaxInboundRouting {} #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRouting_Vtbl { - pub const fn new() -> IFaxInboundRouting_Vtbl - where - Identity: IFaxInboundRouting_Impl, - { - unsafe extern "system" fn GetExtensions(this: *mut core::ffi::c_void, pfaxinboundroutingextensions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxInboundRouting_Impl, - { + pub const fn new() -> IFaxInboundRouting_Vtbl { + unsafe extern "system" fn GetExtensions(this: *mut core::ffi::c_void, pfaxinboundroutingextensions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRouting_Impl::GetExtensions(this) { Ok(ok__) => { @@ -2928,10 +2262,7 @@ impl IFaxInboundRouting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMethods(this: *mut core::ffi::c_void, pfaxinboundroutingmethods: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxInboundRouting_Impl, - { + unsafe extern "system" fn GetMethods(this: *mut core::ffi::c_void, pfaxinboundroutingmethods: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRouting_Impl::GetMethods(this) { Ok(ok__) => { @@ -2969,14 +2300,8 @@ pub trait IFaxInboundRoutingExtension_Impl: Sized + super::super::System::Com::I impl windows_core::RuntimeName for IFaxInboundRoutingExtension {} #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRoutingExtension_Vtbl { - pub const fn new() -> IFaxInboundRoutingExtension_Vtbl - where - Identity: IFaxInboundRoutingExtension_Impl, - { - unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pbstrfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + pub const fn new() -> IFaxInboundRoutingExtension_Vtbl { + unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pbstrfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::FriendlyName(this) { Ok(ok__) => { @@ -2986,10 +2311,7 @@ impl IFaxInboundRoutingExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImageName(this: *mut core::ffi::c_void, pbstrimagename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + unsafe extern "system" fn ImageName(this: *mut core::ffi::c_void, pbstrimagename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::ImageName(this) { Ok(ok__) => { @@ -2999,10 +2321,7 @@ impl IFaxInboundRoutingExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UniqueName(this: *mut core::ffi::c_void, pbstruniquename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + unsafe extern "system" fn UniqueName(this: *mut core::ffi::c_void, pbstruniquename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::UniqueName(this) { Ok(ok__) => { @@ -3012,10 +2331,7 @@ impl IFaxInboundRoutingExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::MajorVersion(this) { Ok(ok__) => { @@ -3025,10 +2341,7 @@ impl IFaxInboundRoutingExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, plminorversion: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, plminorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::MinorVersion(this) { Ok(ok__) => { @@ -3038,10 +2351,7 @@ impl IFaxInboundRoutingExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MajorBuild(this: *mut core::ffi::c_void, plmajorbuild: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + unsafe extern "system" fn MajorBuild(this: *mut core::ffi::c_void, plmajorbuild: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::MajorBuild(this) { Ok(ok__) => { @@ -3051,10 +2361,7 @@ impl IFaxInboundRoutingExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinorBuild(this: *mut core::ffi::c_void, plminorbuild: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + unsafe extern "system" fn MinorBuild(this: *mut core::ffi::c_void, plminorbuild: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::MinorBuild(this) { Ok(ok__) => { @@ -3064,10 +2371,7 @@ impl IFaxInboundRoutingExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Debug(this: *mut core::ffi::c_void, pbdebug: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + unsafe extern "system" fn Debug(this: *mut core::ffi::c_void, pbdebug: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::Debug(this) { Ok(ok__) => { @@ -3077,10 +2381,7 @@ impl IFaxInboundRoutingExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_PROVIDER_STATUS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_PROVIDER_STATUS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::Status(this) { Ok(ok__) => { @@ -3090,10 +2391,7 @@ impl IFaxInboundRoutingExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitErrorCode(this: *mut core::ffi::c_void, pliniterrorcode: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + unsafe extern "system" fn InitErrorCode(this: *mut core::ffi::c_void, pliniterrorcode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::InitErrorCode(this) { Ok(ok__) => { @@ -3103,10 +2401,7 @@ impl IFaxInboundRoutingExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Methods(this: *mut core::ffi::c_void, pvmethods: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtension_Impl, - { + unsafe extern "system" fn Methods(this: *mut core::ffi::c_void, pvmethods: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtension_Impl::Methods(this) { Ok(ok__) => { @@ -3145,14 +2440,8 @@ pub trait IFaxInboundRoutingExtensions_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for IFaxInboundRoutingExtensions {} #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRoutingExtensions_Vtbl { - pub const fn new() -> IFaxInboundRoutingExtensions_Vtbl - where - Identity: IFaxInboundRoutingExtensions_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtensions_Impl, - { + pub const fn new() -> IFaxInboundRoutingExtensions_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtensions_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3162,10 +2451,7 @@ impl IFaxInboundRoutingExtensions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxinboundroutingextension: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtensions_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxinboundroutingextension: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtensions_Impl::get_Item(this, core::mem::transmute(&vindex)) { Ok(ok__) => { @@ -3175,10 +2461,7 @@ impl IFaxInboundRoutingExtensions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingExtensions_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingExtensions_Impl::Count(this) { Ok(ok__) => { @@ -3215,14 +2498,8 @@ pub trait IFaxInboundRoutingMethod_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for IFaxInboundRoutingMethod {} #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRoutingMethod_Vtbl { - pub const fn new() -> IFaxInboundRoutingMethod_Vtbl - where - Identity: IFaxInboundRoutingMethod_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethod_Impl, - { + pub const fn new() -> IFaxInboundRoutingMethod_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingMethod_Impl::Name(this) { Ok(ok__) => { @@ -3232,10 +2509,7 @@ impl IFaxInboundRoutingMethod_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GUID(this: *mut core::ffi::c_void, pbstrguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethod_Impl, - { + unsafe extern "system" fn GUID(this: *mut core::ffi::c_void, pbstrguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingMethod_Impl::GUID(this) { Ok(ok__) => { @@ -3245,10 +2519,7 @@ impl IFaxInboundRoutingMethod_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FunctionName(this: *mut core::ffi::c_void, pbstrfunctionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethod_Impl, - { + unsafe extern "system" fn FunctionName(this: *mut core::ffi::c_void, pbstrfunctionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingMethod_Impl::FunctionName(this) { Ok(ok__) => { @@ -3258,10 +2529,7 @@ impl IFaxInboundRoutingMethod_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtensionFriendlyName(this: *mut core::ffi::c_void, pbstrextensionfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethod_Impl, - { + unsafe extern "system" fn ExtensionFriendlyName(this: *mut core::ffi::c_void, pbstrextensionfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingMethod_Impl::ExtensionFriendlyName(this) { Ok(ok__) => { @@ -3271,10 +2539,7 @@ impl IFaxInboundRoutingMethod_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtensionImageName(this: *mut core::ffi::c_void, pbstrextensionimagename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethod_Impl, - { + unsafe extern "system" fn ExtensionImageName(this: *mut core::ffi::c_void, pbstrextensionimagename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingMethod_Impl::ExtensionImageName(this) { Ok(ok__) => { @@ -3284,10 +2549,7 @@ impl IFaxInboundRoutingMethod_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, plpriority: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethod_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, plpriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingMethod_Impl::Priority(this) { Ok(ok__) => { @@ -3297,24 +2559,15 @@ impl IFaxInboundRoutingMethod_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lpriority: i32) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethod_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lpriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxInboundRoutingMethod_Impl::SetPriority(this, core::mem::transmute_copy(&lpriority)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethod_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxInboundRoutingMethod_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethod_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxInboundRoutingMethod_Impl::Save(this).into() } @@ -3345,14 +2598,8 @@ pub trait IFaxInboundRoutingMethods_Impl: Sized + super::super::System::Com::IDi impl windows_core::RuntimeName for IFaxInboundRoutingMethods {} #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRoutingMethods_Vtbl { - pub const fn new() -> IFaxInboundRoutingMethods_Vtbl - where - Identity: IFaxInboundRoutingMethods_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethods_Impl, - { + pub const fn new() -> IFaxInboundRoutingMethods_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingMethods_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3362,10 +2609,7 @@ impl IFaxInboundRoutingMethods_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxinboundroutingmethod: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethods_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxinboundroutingmethod: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingMethods_Impl::get_Item(this, core::mem::transmute(&vindex)) { Ok(ok__) => { @@ -3375,10 +2619,7 @@ impl IFaxInboundRoutingMethods_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxInboundRoutingMethods_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxInboundRoutingMethods_Impl::Count(this) { Ok(ok__) => { @@ -3424,14 +2665,8 @@ pub trait IFaxIncomingArchive_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IFaxIncomingArchive {} #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingArchive_Vtbl { - pub const fn new() -> IFaxIncomingArchive_Vtbl - where - Identity: IFaxIncomingArchive_Impl, - { - unsafe extern "system" fn UseArchive(this: *mut core::ffi::c_void, pbusearchive: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + pub const fn new() -> IFaxIncomingArchive_Vtbl { + unsafe extern "system" fn UseArchive(this: *mut core::ffi::c_void, pbusearchive: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingArchive_Impl::UseArchive(this) { Ok(ok__) => { @@ -3441,17 +2676,11 @@ impl IFaxIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseArchive(this: *mut core::ffi::c_void, busearchive: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn SetUseArchive(this: *mut core::ffi::c_void, busearchive: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingArchive_Impl::SetUseArchive(this, core::mem::transmute_copy(&busearchive)).into() } - unsafe extern "system" fn ArchiveFolder(this: *mut core::ffi::c_void, pbstrarchivefolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn ArchiveFolder(this: *mut core::ffi::c_void, pbstrarchivefolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingArchive_Impl::ArchiveFolder(this) { Ok(ok__) => { @@ -3461,17 +2690,11 @@ impl IFaxIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetArchiveFolder(this: *mut core::ffi::c_void, bstrarchivefolder: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn SetArchiveFolder(this: *mut core::ffi::c_void, bstrarchivefolder: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingArchive_Impl::SetArchiveFolder(this, core::mem::transmute(&bstrarchivefolder)).into() } - unsafe extern "system" fn SizeQuotaWarning(this: *mut core::ffi::c_void, pbsizequotawarning: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn SizeQuotaWarning(this: *mut core::ffi::c_void, pbsizequotawarning: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingArchive_Impl::SizeQuotaWarning(this) { Ok(ok__) => { @@ -3481,17 +2704,11 @@ impl IFaxIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSizeQuotaWarning(this: *mut core::ffi::c_void, bsizequotawarning: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn SetSizeQuotaWarning(this: *mut core::ffi::c_void, bsizequotawarning: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingArchive_Impl::SetSizeQuotaWarning(this, core::mem::transmute_copy(&bsizequotawarning)).into() } - unsafe extern "system" fn HighQuotaWaterMark(this: *mut core::ffi::c_void, plhighquotawatermark: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn HighQuotaWaterMark(this: *mut core::ffi::c_void, plhighquotawatermark: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingArchive_Impl::HighQuotaWaterMark(this) { Ok(ok__) => { @@ -3501,17 +2718,11 @@ impl IFaxIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHighQuotaWaterMark(this: *mut core::ffi::c_void, lhighquotawatermark: i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn SetHighQuotaWaterMark(this: *mut core::ffi::c_void, lhighquotawatermark: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingArchive_Impl::SetHighQuotaWaterMark(this, core::mem::transmute_copy(&lhighquotawatermark)).into() } - unsafe extern "system" fn LowQuotaWaterMark(this: *mut core::ffi::c_void, pllowquotawatermark: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn LowQuotaWaterMark(this: *mut core::ffi::c_void, pllowquotawatermark: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingArchive_Impl::LowQuotaWaterMark(this) { Ok(ok__) => { @@ -3521,17 +2732,11 @@ impl IFaxIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLowQuotaWaterMark(this: *mut core::ffi::c_void, llowquotawatermark: i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn SetLowQuotaWaterMark(this: *mut core::ffi::c_void, llowquotawatermark: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingArchive_Impl::SetLowQuotaWaterMark(this, core::mem::transmute_copy(&llowquotawatermark)).into() } - unsafe extern "system" fn AgeLimit(this: *mut core::ffi::c_void, plagelimit: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn AgeLimit(this: *mut core::ffi::c_void, plagelimit: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingArchive_Impl::AgeLimit(this) { Ok(ok__) => { @@ -3541,17 +2746,11 @@ impl IFaxIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAgeLimit(this: *mut core::ffi::c_void, lagelimit: i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn SetAgeLimit(this: *mut core::ffi::c_void, lagelimit: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingArchive_Impl::SetAgeLimit(this, core::mem::transmute_copy(&lagelimit)).into() } - unsafe extern "system" fn SizeLow(this: *mut core::ffi::c_void, plsizelow: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn SizeLow(this: *mut core::ffi::c_void, plsizelow: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingArchive_Impl::SizeLow(this) { Ok(ok__) => { @@ -3561,10 +2760,7 @@ impl IFaxIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SizeHigh(this: *mut core::ffi::c_void, plsizehigh: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn SizeHigh(this: *mut core::ffi::c_void, plsizehigh: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingArchive_Impl::SizeHigh(this) { Ok(ok__) => { @@ -3574,24 +2770,15 @@ impl IFaxIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingArchive_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingArchive_Impl::Save(this).into() } - unsafe extern "system" fn GetMessages(this: *mut core::ffi::c_void, lprefetchsize: i32, pfaxincomingmessageiterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn GetMessages(this: *mut core::ffi::c_void, lprefetchsize: i32, pfaxincomingmessageiterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingArchive_Impl::GetMessages(this, core::mem::transmute_copy(&lprefetchsize)) { Ok(ok__) => { @@ -3601,10 +2788,7 @@ impl IFaxIncomingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, pfaxincomingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingArchive_Impl, - { + unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, pfaxincomingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingArchive_Impl::GetMessage(this, core::mem::transmute(&bstrmessageid)) { Ok(ok__) => { @@ -3666,14 +2850,8 @@ pub trait IFaxIncomingJob_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IFaxIncomingJob {} #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingJob_Vtbl { - pub const fn new() -> IFaxIncomingJob_Vtbl - where - Identity: IFaxIncomingJob_Impl, - { - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + pub const fn new() -> IFaxIncomingJob_Vtbl { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::Size(this) { Ok(ok__) => { @@ -3683,10 +2861,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::Id(this) { Ok(ok__) => { @@ -3696,10 +2871,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentPage(this: *mut core::ffi::c_void, plcurrentpage: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn CurrentPage(this: *mut core::ffi::c_void, plcurrentpage: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::CurrentPage(this) { Ok(ok__) => { @@ -3709,10 +2881,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, pldeviceid: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, pldeviceid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::DeviceId(this) { Ok(ok__) => { @@ -3722,10 +2891,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_JOB_STATUS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_JOB_STATUS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::Status(this) { Ok(ok__) => { @@ -3735,10 +2901,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedStatusCode(this: *mut core::ffi::c_void, pextendedstatuscode: *mut FAX_JOB_EXTENDED_STATUS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn ExtendedStatusCode(this: *mut core::ffi::c_void, pextendedstatuscode: *mut FAX_JOB_EXTENDED_STATUS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::ExtendedStatusCode(this) { Ok(ok__) => { @@ -3748,10 +2911,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedStatus(this: *mut core::ffi::c_void, pbstrextendedstatus: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn ExtendedStatus(this: *mut core::ffi::c_void, pbstrextendedstatus: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::ExtendedStatus(this) { Ok(ok__) => { @@ -3761,10 +2921,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AvailableOperations(this: *mut core::ffi::c_void, pavailableoperations: *mut FAX_JOB_OPERATIONS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn AvailableOperations(this: *mut core::ffi::c_void, pavailableoperations: *mut FAX_JOB_OPERATIONS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::AvailableOperations(this) { Ok(ok__) => { @@ -3774,10 +2931,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::Retries(this) { Ok(ok__) => { @@ -3787,10 +2941,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionStart(this: *mut core::ffi::c_void, pdatetransmissionstart: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn TransmissionStart(this: *mut core::ffi::c_void, pdatetransmissionstart: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::TransmissionStart(this) { Ok(ok__) => { @@ -3800,10 +2951,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionEnd(this: *mut core::ffi::c_void, pdatetransmissionend: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn TransmissionEnd(this: *mut core::ffi::c_void, pdatetransmissionend: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::TransmissionEnd(this) { Ok(ok__) => { @@ -3813,10 +2961,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::CSID(this) { Ok(ok__) => { @@ -3826,10 +2971,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::TSID(this) { Ok(ok__) => { @@ -3839,10 +2981,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallerId(this: *mut core::ffi::c_void, pbstrcallerid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn CallerId(this: *mut core::ffi::c_void, pbstrcallerid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::CallerId(this) { Ok(ok__) => { @@ -3852,10 +2991,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoutingInformation(this: *mut core::ffi::c_void, pbstrroutinginformation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn RoutingInformation(this: *mut core::ffi::c_void, pbstrroutinginformation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::RoutingInformation(this) { Ok(ok__) => { @@ -3865,10 +3001,7 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn JobType(this: *mut core::ffi::c_void, pjobtype: *mut FAX_JOB_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn JobType(this: *mut core::ffi::c_void, pjobtype: *mut FAX_JOB_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJob_Impl::JobType(this) { Ok(ok__) => { @@ -3878,24 +3011,15 @@ impl IFaxIncomingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingJob_Impl::Cancel(this).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingJob_Impl::Refresh(this).into() } - unsafe extern "system" fn CopyTiff(this: *mut core::ffi::c_void, bstrtiffpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingJob_Impl, - { + unsafe extern "system" fn CopyTiff(this: *mut core::ffi::c_void, bstrtiffpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingJob_Impl::CopyTiff(this, core::mem::transmute(&bstrtiffpath)).into() } @@ -3936,14 +3060,8 @@ pub trait IFaxIncomingJobs_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IFaxIncomingJobs {} #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingJobs_Vtbl { - pub const fn new() -> IFaxIncomingJobs_Vtbl - where - Identity: IFaxIncomingJobs_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingJobs_Impl, - { + pub const fn new() -> IFaxIncomingJobs_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJobs_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3953,10 +3071,7 @@ impl IFaxIncomingJobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxincomingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingJobs_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxincomingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJobs_Impl::get_Item(this, core::mem::transmute(&vindex)) { Ok(ok__) => { @@ -3966,10 +3081,7 @@ impl IFaxIncomingJobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingJobs_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingJobs_Impl::Count(this) { Ok(ok__) => { @@ -4010,14 +3122,8 @@ pub trait IFaxIncomingMessage_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IFaxIncomingMessage {} #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingMessage_Vtbl { - pub const fn new() -> IFaxIncomingMessage_Vtbl - where - Identity: IFaxIncomingMessage_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + pub const fn new() -> IFaxIncomingMessage_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::Id(this) { Ok(ok__) => { @@ -4027,10 +3133,7 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pages(this: *mut core::ffi::c_void, plpages: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn Pages(this: *mut core::ffi::c_void, plpages: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::Pages(this) { Ok(ok__) => { @@ -4040,10 +3143,7 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::Size(this) { Ok(ok__) => { @@ -4053,10 +3153,7 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceName(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn DeviceName(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::DeviceName(this) { Ok(ok__) => { @@ -4066,10 +3163,7 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::Retries(this) { Ok(ok__) => { @@ -4079,10 +3173,7 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionStart(this: *mut core::ffi::c_void, pdatetransmissionstart: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn TransmissionStart(this: *mut core::ffi::c_void, pdatetransmissionstart: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::TransmissionStart(this) { Ok(ok__) => { @@ -4092,10 +3183,7 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionEnd(this: *mut core::ffi::c_void, pdatetransmissionend: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn TransmissionEnd(this: *mut core::ffi::c_void, pdatetransmissionend: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::TransmissionEnd(this) { Ok(ok__) => { @@ -4105,10 +3193,7 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::CSID(this) { Ok(ok__) => { @@ -4118,10 +3203,7 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::TSID(this) { Ok(ok__) => { @@ -4131,10 +3213,7 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallerId(this: *mut core::ffi::c_void, pbstrcallerid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn CallerId(this: *mut core::ffi::c_void, pbstrcallerid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::CallerId(this) { Ok(ok__) => { @@ -4144,10 +3223,7 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoutingInformation(this: *mut core::ffi::c_void, pbstrroutinginformation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn RoutingInformation(this: *mut core::ffi::c_void, pbstrroutinginformation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage_Impl::RoutingInformation(this) { Ok(ok__) => { @@ -4157,17 +3233,11 @@ impl IFaxIncomingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyTiff(this: *mut core::ffi::c_void, bstrtiffpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn CopyTiff(this: *mut core::ffi::c_void, bstrtiffpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage_Impl::CopyTiff(this, core::mem::transmute(&bstrtiffpath)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage_Impl::Delete(this).into() } @@ -4215,14 +3285,8 @@ pub trait IFaxIncomingMessage2_Impl: Sized + IFaxIncomingMessage_Impl { impl windows_core::RuntimeName for IFaxIncomingMessage2 {} #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingMessage2_Vtbl { - pub const fn new() -> IFaxIncomingMessage2_Vtbl - where - Identity: IFaxIncomingMessage2_Impl, - { - unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, pbstrsubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + pub const fn new() -> IFaxIncomingMessage2_Vtbl { + unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, pbstrsubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage2_Impl::Subject(this) { Ok(ok__) => { @@ -4232,17 +3296,11 @@ impl IFaxIncomingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubject(this: *mut core::ffi::c_void, bstrsubject: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn SetSubject(this: *mut core::ffi::c_void, bstrsubject: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage2_Impl::SetSubject(this, core::mem::transmute(&bstrsubject)).into() } - unsafe extern "system" fn SenderName(this: *mut core::ffi::c_void, pbstrsendername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn SenderName(this: *mut core::ffi::c_void, pbstrsendername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage2_Impl::SenderName(this) { Ok(ok__) => { @@ -4252,17 +3310,11 @@ impl IFaxIncomingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderName(this: *mut core::ffi::c_void, bstrsendername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn SetSenderName(this: *mut core::ffi::c_void, bstrsendername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage2_Impl::SetSenderName(this, core::mem::transmute(&bstrsendername)).into() } - unsafe extern "system" fn SenderFaxNumber(this: *mut core::ffi::c_void, pbstrsenderfaxnumber: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn SenderFaxNumber(this: *mut core::ffi::c_void, pbstrsenderfaxnumber: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage2_Impl::SenderFaxNumber(this) { Ok(ok__) => { @@ -4272,17 +3324,11 @@ impl IFaxIncomingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderFaxNumber(this: *mut core::ffi::c_void, bstrsenderfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn SetSenderFaxNumber(this: *mut core::ffi::c_void, bstrsenderfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage2_Impl::SetSenderFaxNumber(this, core::mem::transmute(&bstrsenderfaxnumber)).into() } - unsafe extern "system" fn HasCoverPage(this: *mut core::ffi::c_void, pbhascoverpage: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn HasCoverPage(this: *mut core::ffi::c_void, pbhascoverpage: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage2_Impl::HasCoverPage(this) { Ok(ok__) => { @@ -4292,17 +3338,11 @@ impl IFaxIncomingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHasCoverPage(this: *mut core::ffi::c_void, bhascoverpage: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn SetHasCoverPage(this: *mut core::ffi::c_void, bhascoverpage: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage2_Impl::SetHasCoverPage(this, core::mem::transmute_copy(&bhascoverpage)).into() } - unsafe extern "system" fn Recipients(this: *mut core::ffi::c_void, pbstrrecipients: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn Recipients(this: *mut core::ffi::c_void, pbstrrecipients: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage2_Impl::Recipients(this) { Ok(ok__) => { @@ -4312,17 +3352,11 @@ impl IFaxIncomingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRecipients(this: *mut core::ffi::c_void, bstrrecipients: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn SetRecipients(this: *mut core::ffi::c_void, bstrrecipients: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage2_Impl::SetRecipients(this, core::mem::transmute(&bstrrecipients)).into() } - unsafe extern "system" fn WasReAssigned(this: *mut core::ffi::c_void, pbwasreassigned: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn WasReAssigned(this: *mut core::ffi::c_void, pbwasreassigned: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage2_Impl::WasReAssigned(this) { Ok(ok__) => { @@ -4332,10 +3366,7 @@ impl IFaxIncomingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbread: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbread: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessage2_Impl::Read(this) { Ok(ok__) => { @@ -4345,31 +3376,19 @@ impl IFaxIncomingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRead(this: *mut core::ffi::c_void, bread: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn SetRead(this: *mut core::ffi::c_void, bread: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage2_Impl::SetRead(this, core::mem::transmute_copy(&bread)).into() } - unsafe extern "system" fn ReAssign(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn ReAssign(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage2_Impl::ReAssign(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage2_Impl::Save(this).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessage2_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessage2_Impl::Refresh(this).into() } @@ -4410,14 +3429,8 @@ pub trait IFaxIncomingMessageIterator_Impl: Sized + super::super::System::Com::I impl windows_core::RuntimeName for IFaxIncomingMessageIterator {} #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingMessageIterator_Vtbl { - pub const fn new() -> IFaxIncomingMessageIterator_Vtbl - where - Identity: IFaxIncomingMessageIterator_Impl, - { - unsafe extern "system" fn Message(this: *mut core::ffi::c_void, pfaxincomingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessageIterator_Impl, - { + pub const fn new() -> IFaxIncomingMessageIterator_Vtbl { + unsafe extern "system" fn Message(this: *mut core::ffi::c_void, pfaxincomingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessageIterator_Impl::Message(this) { Ok(ok__) => { @@ -4427,10 +3440,7 @@ impl IFaxIncomingMessageIterator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrefetchSize(this: *mut core::ffi::c_void, plprefetchsize: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessageIterator_Impl, - { + unsafe extern "system" fn PrefetchSize(this: *mut core::ffi::c_void, plprefetchsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessageIterator_Impl::PrefetchSize(this) { Ok(ok__) => { @@ -4440,17 +3450,11 @@ impl IFaxIncomingMessageIterator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrefetchSize(this: *mut core::ffi::c_void, lprefetchsize: i32) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessageIterator_Impl, - { + unsafe extern "system" fn SetPrefetchSize(this: *mut core::ffi::c_void, lprefetchsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessageIterator_Impl::SetPrefetchSize(this, core::mem::transmute_copy(&lprefetchsize)).into() } - unsafe extern "system" fn AtEOF(this: *mut core::ffi::c_void, pbeof: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessageIterator_Impl, - { + unsafe extern "system" fn AtEOF(this: *mut core::ffi::c_void, pbeof: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingMessageIterator_Impl::AtEOF(this) { Ok(ok__) => { @@ -4460,17 +3464,11 @@ impl IFaxIncomingMessageIterator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveFirst(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessageIterator_Impl, - { + unsafe extern "system" fn MoveFirst(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessageIterator_Impl::MoveFirst(this).into() } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingMessageIterator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingMessageIterator_Impl::MoveNext(this).into() } @@ -4501,14 +3499,8 @@ pub trait IFaxIncomingQueue_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IFaxIncomingQueue {} #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingQueue_Vtbl { - pub const fn new() -> IFaxIncomingQueue_Vtbl - where - Identity: IFaxIncomingQueue_Impl, - { - unsafe extern "system" fn Blocked(this: *mut core::ffi::c_void, pbblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingQueue_Impl, - { + pub const fn new() -> IFaxIncomingQueue_Vtbl { + unsafe extern "system" fn Blocked(this: *mut core::ffi::c_void, pbblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingQueue_Impl::Blocked(this) { Ok(ok__) => { @@ -4518,31 +3510,19 @@ impl IFaxIncomingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBlocked(this: *mut core::ffi::c_void, bblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxIncomingQueue_Impl, - { + unsafe extern "system" fn SetBlocked(this: *mut core::ffi::c_void, bblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingQueue_Impl::SetBlocked(this, core::mem::transmute_copy(&bblocked)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingQueue_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingQueue_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingQueue_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxIncomingQueue_Impl::Save(this).into() } - unsafe extern "system" fn GetJobs(this: *mut core::ffi::c_void, pfaxincomingjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingQueue_Impl, - { + unsafe extern "system" fn GetJobs(this: *mut core::ffi::c_void, pfaxincomingjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingQueue_Impl::GetJobs(this) { Ok(ok__) => { @@ -4552,10 +3532,7 @@ impl IFaxIncomingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pfaxincomingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxIncomingQueue_Impl, - { + unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pfaxincomingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxIncomingQueue_Impl::GetJob(this, core::mem::transmute(&bstrjobid)) { Ok(ok__) => { @@ -4603,14 +3580,8 @@ pub trait IFaxJobStatus_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IFaxJobStatus {} #[cfg(feature = "Win32_System_Com")] impl IFaxJobStatus_Vtbl { - pub const fn new() -> IFaxJobStatus_Vtbl - where - Identity: IFaxJobStatus_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_JOB_STATUS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + pub const fn new() -> IFaxJobStatus_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_JOB_STATUS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::Status(this) { Ok(ok__) => { @@ -4620,10 +3591,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pages(this: *mut core::ffi::c_void, plpages: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn Pages(this: *mut core::ffi::c_void, plpages: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::Pages(this) { Ok(ok__) => { @@ -4633,10 +3601,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::Size(this) { Ok(ok__) => { @@ -4646,10 +3611,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentPage(this: *mut core::ffi::c_void, plcurrentpage: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn CurrentPage(this: *mut core::ffi::c_void, plcurrentpage: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::CurrentPage(this) { Ok(ok__) => { @@ -4659,10 +3621,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, pldeviceid: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, pldeviceid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::DeviceId(this) { Ok(ok__) => { @@ -4672,10 +3631,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::CSID(this) { Ok(ok__) => { @@ -4685,10 +3641,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::TSID(this) { Ok(ok__) => { @@ -4698,10 +3651,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedStatusCode(this: *mut core::ffi::c_void, pextendedstatuscode: *mut FAX_JOB_EXTENDED_STATUS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn ExtendedStatusCode(this: *mut core::ffi::c_void, pextendedstatuscode: *mut FAX_JOB_EXTENDED_STATUS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::ExtendedStatusCode(this) { Ok(ok__) => { @@ -4711,10 +3661,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedStatus(this: *mut core::ffi::c_void, pbstrextendedstatus: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn ExtendedStatus(this: *mut core::ffi::c_void, pbstrextendedstatus: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::ExtendedStatus(this) { Ok(ok__) => { @@ -4724,10 +3671,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AvailableOperations(this: *mut core::ffi::c_void, pavailableoperations: *mut FAX_JOB_OPERATIONS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn AvailableOperations(this: *mut core::ffi::c_void, pavailableoperations: *mut FAX_JOB_OPERATIONS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::AvailableOperations(this) { Ok(ok__) => { @@ -4737,10 +3681,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::Retries(this) { Ok(ok__) => { @@ -4750,10 +3691,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn JobType(this: *mut core::ffi::c_void, pjobtype: *mut FAX_JOB_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn JobType(this: *mut core::ffi::c_void, pjobtype: *mut FAX_JOB_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::JobType(this) { Ok(ok__) => { @@ -4763,10 +3701,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScheduledTime(this: *mut core::ffi::c_void, pdatescheduledtime: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn ScheduledTime(this: *mut core::ffi::c_void, pdatescheduledtime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::ScheduledTime(this) { Ok(ok__) => { @@ -4776,10 +3711,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionStart(this: *mut core::ffi::c_void, pdatetransmissionstart: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn TransmissionStart(this: *mut core::ffi::c_void, pdatetransmissionstart: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::TransmissionStart(this) { Ok(ok__) => { @@ -4789,10 +3721,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionEnd(this: *mut core::ffi::c_void, pdatetransmissionend: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn TransmissionEnd(this: *mut core::ffi::c_void, pdatetransmissionend: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::TransmissionEnd(this) { Ok(ok__) => { @@ -4802,10 +3731,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallerId(this: *mut core::ffi::c_void, pbstrcallerid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn CallerId(this: *mut core::ffi::c_void, pbstrcallerid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::CallerId(this) { Ok(ok__) => { @@ -4815,10 +3741,7 @@ impl IFaxJobStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoutingInformation(this: *mut core::ffi::c_void, pbstrroutinginformation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxJobStatus_Impl, - { + unsafe extern "system" fn RoutingInformation(this: *mut core::ffi::c_void, pbstrroutinginformation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxJobStatus_Impl::RoutingInformation(this) { Ok(ok__) => { @@ -4862,14 +3785,8 @@ pub trait IFaxLoggingOptions_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IFaxLoggingOptions {} #[cfg(feature = "Win32_System_Com")] impl IFaxLoggingOptions_Vtbl { - pub const fn new() -> IFaxLoggingOptions_Vtbl - where - Identity: IFaxLoggingOptions_Impl, - { - unsafe extern "system" fn EventLogging(this: *mut core::ffi::c_void, pfaxeventlogging: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxLoggingOptions_Impl, - { + pub const fn new() -> IFaxLoggingOptions_Vtbl { + unsafe extern "system" fn EventLogging(this: *mut core::ffi::c_void, pfaxeventlogging: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxLoggingOptions_Impl::EventLogging(this) { Ok(ok__) => { @@ -4879,10 +3796,7 @@ impl IFaxLoggingOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivityLogging(this: *mut core::ffi::c_void, pfaxactivitylogging: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxLoggingOptions_Impl, - { + unsafe extern "system" fn ActivityLogging(this: *mut core::ffi::c_void, pfaxactivitylogging: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxLoggingOptions_Impl::ActivityLogging(this) { Ok(ok__) => { @@ -4911,14 +3825,8 @@ pub trait IFaxOutboundRouting_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IFaxOutboundRouting {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRouting_Vtbl { - pub const fn new() -> IFaxOutboundRouting_Vtbl - where - Identity: IFaxOutboundRouting_Impl, - { - unsafe extern "system" fn GetGroups(this: *mut core::ffi::c_void, pfaxoutboundroutinggroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRouting_Impl, - { + pub const fn new() -> IFaxOutboundRouting_Vtbl { + unsafe extern "system" fn GetGroups(this: *mut core::ffi::c_void, pfaxoutboundroutinggroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRouting_Impl::GetGroups(this) { Ok(ok__) => { @@ -4928,10 +3836,7 @@ impl IFaxOutboundRouting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRules(this: *mut core::ffi::c_void, pfaxoutboundroutingrules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRouting_Impl, - { + unsafe extern "system" fn GetRules(this: *mut core::ffi::c_void, pfaxoutboundroutingrules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRouting_Impl::GetRules(this) { Ok(ok__) => { @@ -4961,14 +3866,8 @@ pub trait IFaxOutboundRoutingGroup_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for IFaxOutboundRoutingGroup {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRoutingGroup_Vtbl { - pub const fn new() -> IFaxOutboundRoutingGroup_Vtbl - where - Identity: IFaxOutboundRoutingGroup_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingGroup_Impl, - { + pub const fn new() -> IFaxOutboundRoutingGroup_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingGroup_Impl::Name(this) { Ok(ok__) => { @@ -4978,10 +3877,7 @@ impl IFaxOutboundRoutingGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_GROUP_STATUS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingGroup_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_GROUP_STATUS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingGroup_Impl::Status(this) { Ok(ok__) => { @@ -4991,10 +3887,7 @@ impl IFaxOutboundRoutingGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceIds(this: *mut core::ffi::c_void, pfaxdeviceids: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingGroup_Impl, - { + unsafe extern "system" fn DeviceIds(this: *mut core::ffi::c_void, pfaxdeviceids: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingGroup_Impl::DeviceIds(this) { Ok(ok__) => { @@ -5027,14 +3920,8 @@ pub trait IFaxOutboundRoutingGroups_Impl: Sized + super::super::System::Com::IDi impl windows_core::RuntimeName for IFaxOutboundRoutingGroups {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRoutingGroups_Vtbl { - pub const fn new() -> IFaxOutboundRoutingGroups_Vtbl - where - Identity: IFaxOutboundRoutingGroups_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingGroups_Impl, - { + pub const fn new() -> IFaxOutboundRoutingGroups_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingGroups_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5044,10 +3931,7 @@ impl IFaxOutboundRoutingGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxoutboundroutinggroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingGroups_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxoutboundroutinggroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingGroups_Impl::get_Item(this, core::mem::transmute(&vindex)) { Ok(ok__) => { @@ -5057,10 +3941,7 @@ impl IFaxOutboundRoutingGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingGroups_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingGroups_Impl::Count(this) { Ok(ok__) => { @@ -5070,10 +3951,7 @@ impl IFaxOutboundRoutingGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pfaxoutboundroutinggroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingGroups_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pfaxoutboundroutinggroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingGroups_Impl::Add(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -5083,10 +3961,7 @@ impl IFaxOutboundRoutingGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingGroups_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutboundRoutingGroups_Impl::Remove(this, core::mem::transmute(&vindex)).into() } @@ -5121,14 +3996,8 @@ pub trait IFaxOutboundRoutingRule_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for IFaxOutboundRoutingRule {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRoutingRule_Vtbl { - pub const fn new() -> IFaxOutboundRoutingRule_Vtbl - where - Identity: IFaxOutboundRoutingRule_Impl, - { - unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, plcountrycode: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + pub const fn new() -> IFaxOutboundRoutingRule_Vtbl { + unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, plcountrycode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRule_Impl::CountryCode(this) { Ok(ok__) => { @@ -5138,10 +4007,7 @@ impl IFaxOutboundRoutingRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AreaCode(this: *mut core::ffi::c_void, plareacode: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + unsafe extern "system" fn AreaCode(this: *mut core::ffi::c_void, plareacode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRule_Impl::AreaCode(this) { Ok(ok__) => { @@ -5151,10 +4017,7 @@ impl IFaxOutboundRoutingRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_RULE_STATUS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_RULE_STATUS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRule_Impl::Status(this) { Ok(ok__) => { @@ -5164,10 +4027,7 @@ impl IFaxOutboundRoutingRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UseDevice(this: *mut core::ffi::c_void, pbusedevice: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + unsafe extern "system" fn UseDevice(this: *mut core::ffi::c_void, pbusedevice: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRule_Impl::UseDevice(this) { Ok(ok__) => { @@ -5177,17 +4037,11 @@ impl IFaxOutboundRoutingRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseDevice(this: *mut core::ffi::c_void, busedevice: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + unsafe extern "system" fn SetUseDevice(this: *mut core::ffi::c_void, busedevice: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutboundRoutingRule_Impl::SetUseDevice(this, core::mem::transmute_copy(&busedevice)).into() } - unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, pldeviceid: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, pldeviceid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRule_Impl::DeviceId(this) { Ok(ok__) => { @@ -5197,17 +4051,11 @@ impl IFaxOutboundRoutingRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDeviceId(this: *mut core::ffi::c_void, deviceid: i32) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + unsafe extern "system" fn SetDeviceId(this: *mut core::ffi::c_void, deviceid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutboundRoutingRule_Impl::SetDeviceId(this, core::mem::transmute_copy(&deviceid)).into() } - unsafe extern "system" fn GroupName(this: *mut core::ffi::c_void, pbstrgroupname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + unsafe extern "system" fn GroupName(this: *mut core::ffi::c_void, pbstrgroupname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRule_Impl::GroupName(this) { Ok(ok__) => { @@ -5217,24 +4065,15 @@ impl IFaxOutboundRoutingRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGroupName(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + unsafe extern "system" fn SetGroupName(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutboundRoutingRule_Impl::SetGroupName(this, core::mem::transmute(&bstrgroupname)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutboundRoutingRule_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRule_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutboundRoutingRule_Impl::Save(this).into() } @@ -5271,14 +4110,8 @@ pub trait IFaxOutboundRoutingRules_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for IFaxOutboundRoutingRules {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRoutingRules_Vtbl { - pub const fn new() -> IFaxOutboundRoutingRules_Vtbl - where - Identity: IFaxOutboundRoutingRules_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRules_Impl, - { + pub const fn new() -> IFaxOutboundRoutingRules_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRules_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5288,10 +4121,7 @@ impl IFaxOutboundRoutingRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pfaxoutboundroutingrule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRules_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pfaxoutboundroutingrule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRules_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -5301,10 +4131,7 @@ impl IFaxOutboundRoutingRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRules_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRules_Impl::Count(this) { Ok(ok__) => { @@ -5314,10 +4141,7 @@ impl IFaxOutboundRoutingRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ItemByCountryAndArea(this: *mut core::ffi::c_void, lcountrycode: i32, lareacode: i32, pfaxoutboundroutingrule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRules_Impl, - { + unsafe extern "system" fn ItemByCountryAndArea(this: *mut core::ffi::c_void, lcountrycode: i32, lareacode: i32, pfaxoutboundroutingrule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRules_Impl::ItemByCountryAndArea(this, core::mem::transmute_copy(&lcountrycode), core::mem::transmute_copy(&lareacode)) { Ok(ok__) => { @@ -5327,24 +4151,15 @@ impl IFaxOutboundRoutingRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveByCountryAndArea(this: *mut core::ffi::c_void, lcountrycode: i32, lareacode: i32) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRules_Impl, - { + unsafe extern "system" fn RemoveByCountryAndArea(this: *mut core::ffi::c_void, lcountrycode: i32, lareacode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutboundRoutingRules_Impl::RemoveByCountryAndArea(this, core::mem::transmute_copy(&lcountrycode), core::mem::transmute_copy(&lareacode)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRules_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutboundRoutingRules_Impl::Remove(this, core::mem::transmute_copy(&lindex)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, lcountrycode: i32, lareacode: i32, busedevice: super::super::Foundation::VARIANT_BOOL, bstrgroupname: core::mem::MaybeUninit, ldeviceid: i32, pfaxoutboundroutingrule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutboundRoutingRules_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, lcountrycode: i32, lareacode: i32, busedevice: super::super::Foundation::VARIANT_BOOL, bstrgroupname: core::mem::MaybeUninit, ldeviceid: i32, pfaxoutboundroutingrule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutboundRoutingRules_Impl::Add(this, core::mem::transmute_copy(&lcountrycode), core::mem::transmute_copy(&lareacode), core::mem::transmute_copy(&busedevice), core::mem::transmute(&bstrgroupname), core::mem::transmute_copy(&ldeviceid)) { Ok(ok__) => { @@ -5394,14 +4209,8 @@ pub trait IFaxOutgoingArchive_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IFaxOutgoingArchive {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingArchive_Vtbl { - pub const fn new() -> IFaxOutgoingArchive_Vtbl - where - Identity: IFaxOutgoingArchive_Impl, - { - unsafe extern "system" fn UseArchive(this: *mut core::ffi::c_void, pbusearchive: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + pub const fn new() -> IFaxOutgoingArchive_Vtbl { + unsafe extern "system" fn UseArchive(this: *mut core::ffi::c_void, pbusearchive: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingArchive_Impl::UseArchive(this) { Ok(ok__) => { @@ -5411,17 +4220,11 @@ impl IFaxOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseArchive(this: *mut core::ffi::c_void, busearchive: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn SetUseArchive(this: *mut core::ffi::c_void, busearchive: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingArchive_Impl::SetUseArchive(this, core::mem::transmute_copy(&busearchive)).into() } - unsafe extern "system" fn ArchiveFolder(this: *mut core::ffi::c_void, pbstrarchivefolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn ArchiveFolder(this: *mut core::ffi::c_void, pbstrarchivefolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingArchive_Impl::ArchiveFolder(this) { Ok(ok__) => { @@ -5431,17 +4234,11 @@ impl IFaxOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetArchiveFolder(this: *mut core::ffi::c_void, bstrarchivefolder: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn SetArchiveFolder(this: *mut core::ffi::c_void, bstrarchivefolder: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingArchive_Impl::SetArchiveFolder(this, core::mem::transmute(&bstrarchivefolder)).into() } - unsafe extern "system" fn SizeQuotaWarning(this: *mut core::ffi::c_void, pbsizequotawarning: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn SizeQuotaWarning(this: *mut core::ffi::c_void, pbsizequotawarning: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingArchive_Impl::SizeQuotaWarning(this) { Ok(ok__) => { @@ -5451,17 +4248,11 @@ impl IFaxOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSizeQuotaWarning(this: *mut core::ffi::c_void, bsizequotawarning: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn SetSizeQuotaWarning(this: *mut core::ffi::c_void, bsizequotawarning: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingArchive_Impl::SetSizeQuotaWarning(this, core::mem::transmute_copy(&bsizequotawarning)).into() } - unsafe extern "system" fn HighQuotaWaterMark(this: *mut core::ffi::c_void, plhighquotawatermark: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn HighQuotaWaterMark(this: *mut core::ffi::c_void, plhighquotawatermark: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingArchive_Impl::HighQuotaWaterMark(this) { Ok(ok__) => { @@ -5471,17 +4262,11 @@ impl IFaxOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHighQuotaWaterMark(this: *mut core::ffi::c_void, lhighquotawatermark: i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn SetHighQuotaWaterMark(this: *mut core::ffi::c_void, lhighquotawatermark: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingArchive_Impl::SetHighQuotaWaterMark(this, core::mem::transmute_copy(&lhighquotawatermark)).into() } - unsafe extern "system" fn LowQuotaWaterMark(this: *mut core::ffi::c_void, pllowquotawatermark: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn LowQuotaWaterMark(this: *mut core::ffi::c_void, pllowquotawatermark: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingArchive_Impl::LowQuotaWaterMark(this) { Ok(ok__) => { @@ -5491,17 +4276,11 @@ impl IFaxOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLowQuotaWaterMark(this: *mut core::ffi::c_void, llowquotawatermark: i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn SetLowQuotaWaterMark(this: *mut core::ffi::c_void, llowquotawatermark: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingArchive_Impl::SetLowQuotaWaterMark(this, core::mem::transmute_copy(&llowquotawatermark)).into() } - unsafe extern "system" fn AgeLimit(this: *mut core::ffi::c_void, plagelimit: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn AgeLimit(this: *mut core::ffi::c_void, plagelimit: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingArchive_Impl::AgeLimit(this) { Ok(ok__) => { @@ -5511,17 +4290,11 @@ impl IFaxOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAgeLimit(this: *mut core::ffi::c_void, lagelimit: i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn SetAgeLimit(this: *mut core::ffi::c_void, lagelimit: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingArchive_Impl::SetAgeLimit(this, core::mem::transmute_copy(&lagelimit)).into() } - unsafe extern "system" fn SizeLow(this: *mut core::ffi::c_void, plsizelow: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn SizeLow(this: *mut core::ffi::c_void, plsizelow: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingArchive_Impl::SizeLow(this) { Ok(ok__) => { @@ -5531,10 +4304,7 @@ impl IFaxOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SizeHigh(this: *mut core::ffi::c_void, plsizehigh: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn SizeHigh(this: *mut core::ffi::c_void, plsizehigh: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingArchive_Impl::SizeHigh(this) { Ok(ok__) => { @@ -5544,24 +4314,15 @@ impl IFaxOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingArchive_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingArchive_Impl::Save(this).into() } - unsafe extern "system" fn GetMessages(this: *mut core::ffi::c_void, lprefetchsize: i32, pfaxoutgoingmessageiterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn GetMessages(this: *mut core::ffi::c_void, lprefetchsize: i32, pfaxoutgoingmessageiterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingArchive_Impl::GetMessages(this, core::mem::transmute_copy(&lprefetchsize)) { Ok(ok__) => { @@ -5571,10 +4332,7 @@ impl IFaxOutgoingArchive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, pfaxoutgoingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingArchive_Impl, - { + unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit, pfaxoutgoingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingArchive_Impl::GetMessage(this, core::mem::transmute(&bstrmessageid)) { Ok(ok__) => { @@ -5648,14 +4406,8 @@ pub trait IFaxOutgoingJob_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IFaxOutgoingJob {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingJob_Vtbl { - pub const fn new() -> IFaxOutgoingJob_Vtbl - where - Identity: IFaxOutgoingJob_Impl, - { - unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, pbstrsubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + pub const fn new() -> IFaxOutgoingJob_Vtbl { + unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, pbstrsubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::Subject(this) { Ok(ok__) => { @@ -5665,10 +4417,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DocumentName(this: *mut core::ffi::c_void, pbstrdocumentname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn DocumentName(this: *mut core::ffi::c_void, pbstrdocumentname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::DocumentName(this) { Ok(ok__) => { @@ -5678,10 +4427,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pages(this: *mut core::ffi::c_void, plpages: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Pages(this: *mut core::ffi::c_void, plpages: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::Pages(this) { Ok(ok__) => { @@ -5691,10 +4437,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::Size(this) { Ok(ok__) => { @@ -5704,10 +4447,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubmissionId(this: *mut core::ffi::c_void, pbstrsubmissionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn SubmissionId(this: *mut core::ffi::c_void, pbstrsubmissionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::SubmissionId(this) { Ok(ok__) => { @@ -5717,10 +4457,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::Id(this) { Ok(ok__) => { @@ -5730,10 +4467,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OriginalScheduledTime(this: *mut core::ffi::c_void, pdateoriginalscheduledtime: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn OriginalScheduledTime(this: *mut core::ffi::c_void, pdateoriginalscheduledtime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::OriginalScheduledTime(this) { Ok(ok__) => { @@ -5743,10 +4477,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubmissionTime(this: *mut core::ffi::c_void, pdatesubmissiontime: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn SubmissionTime(this: *mut core::ffi::c_void, pdatesubmissiontime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::SubmissionTime(this) { Ok(ok__) => { @@ -5756,10 +4487,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiptType(this: *mut core::ffi::c_void, preceipttype: *mut FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn ReceiptType(this: *mut core::ffi::c_void, preceipttype: *mut FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::ReceiptType(this) { Ok(ok__) => { @@ -5769,10 +4497,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, ppriority: *mut FAX_PRIORITY_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, ppriority: *mut FAX_PRIORITY_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::Priority(this) { Ok(ok__) => { @@ -5782,10 +4507,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Sender(this: *mut core::ffi::c_void, ppfaxsender: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Sender(this: *mut core::ffi::c_void, ppfaxsender: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::Sender(this) { Ok(ok__) => { @@ -5795,10 +4517,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Recipient(this: *mut core::ffi::c_void, ppfaxrecipient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Recipient(this: *mut core::ffi::c_void, ppfaxrecipient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::Recipient(this) { Ok(ok__) => { @@ -5808,10 +4527,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentPage(this: *mut core::ffi::c_void, plcurrentpage: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn CurrentPage(this: *mut core::ffi::c_void, plcurrentpage: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::CurrentPage(this) { Ok(ok__) => { @@ -5821,10 +4537,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, pldeviceid: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, pldeviceid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::DeviceId(this) { Ok(ok__) => { @@ -5834,10 +4547,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_JOB_STATUS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut FAX_JOB_STATUS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::Status(this) { Ok(ok__) => { @@ -5847,10 +4557,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedStatusCode(this: *mut core::ffi::c_void, pextendedstatuscode: *mut FAX_JOB_EXTENDED_STATUS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn ExtendedStatusCode(this: *mut core::ffi::c_void, pextendedstatuscode: *mut FAX_JOB_EXTENDED_STATUS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::ExtendedStatusCode(this) { Ok(ok__) => { @@ -5860,10 +4567,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedStatus(this: *mut core::ffi::c_void, pbstrextendedstatus: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn ExtendedStatus(this: *mut core::ffi::c_void, pbstrextendedstatus: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::ExtendedStatus(this) { Ok(ok__) => { @@ -5873,10 +4577,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AvailableOperations(this: *mut core::ffi::c_void, pavailableoperations: *mut FAX_JOB_OPERATIONS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn AvailableOperations(this: *mut core::ffi::c_void, pavailableoperations: *mut FAX_JOB_OPERATIONS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::AvailableOperations(this) { Ok(ok__) => { @@ -5886,10 +4587,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::Retries(this) { Ok(ok__) => { @@ -5899,10 +4597,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScheduledTime(this: *mut core::ffi::c_void, pdatescheduledtime: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn ScheduledTime(this: *mut core::ffi::c_void, pdatescheduledtime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::ScheduledTime(this) { Ok(ok__) => { @@ -5912,10 +4607,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionStart(this: *mut core::ffi::c_void, pdatetransmissionstart: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn TransmissionStart(this: *mut core::ffi::c_void, pdatetransmissionstart: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::TransmissionStart(this) { Ok(ok__) => { @@ -5925,10 +4617,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionEnd(this: *mut core::ffi::c_void, pdatetransmissionend: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn TransmissionEnd(this: *mut core::ffi::c_void, pdatetransmissionend: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::TransmissionEnd(this) { Ok(ok__) => { @@ -5938,10 +4627,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::CSID(this) { Ok(ok__) => { @@ -5951,10 +4637,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::TSID(this) { Ok(ok__) => { @@ -5964,10 +4647,7 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GroupBroadcastReceipts(this: *mut core::ffi::c_void, pbgroupbroadcastreceipts: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn GroupBroadcastReceipts(this: *mut core::ffi::c_void, pbgroupbroadcastreceipts: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob_Impl::GroupBroadcastReceipts(this) { Ok(ok__) => { @@ -5977,45 +4657,27 @@ impl IFaxOutgoingJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingJob_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingJob_Impl::Resume(this).into() } - unsafe extern "system" fn Restart(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Restart(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingJob_Impl::Restart(this).into() } - unsafe extern "system" fn CopyTiff(this: *mut core::ffi::c_void, bstrtiffpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn CopyTiff(this: *mut core::ffi::c_void, bstrtiffpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingJob_Impl::CopyTiff(this, core::mem::transmute(&bstrtiffpath)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingJob_Impl::Refresh(this).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingJob_Impl::Cancel(this).into() } @@ -6068,14 +4730,8 @@ pub trait IFaxOutgoingJob2_Impl: Sized + IFaxOutgoingJob_Impl { impl windows_core::RuntimeName for IFaxOutgoingJob2 {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingJob2_Vtbl { - pub const fn new() -> IFaxOutgoingJob2_Vtbl - where - Identity: IFaxOutgoingJob2_Impl, - { - unsafe extern "system" fn HasCoverPage(this: *mut core::ffi::c_void, pbhascoverpage: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob2_Impl, - { + pub const fn new() -> IFaxOutgoingJob2_Vtbl { + unsafe extern "system" fn HasCoverPage(this: *mut core::ffi::c_void, pbhascoverpage: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob2_Impl::HasCoverPage(this) { Ok(ok__) => { @@ -6085,10 +4741,7 @@ impl IFaxOutgoingJob2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiptAddress(this: *mut core::ffi::c_void, pbstrreceiptaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob2_Impl, - { + unsafe extern "system" fn ReceiptAddress(this: *mut core::ffi::c_void, pbstrreceiptaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob2_Impl::ReceiptAddress(this) { Ok(ok__) => { @@ -6098,10 +4751,7 @@ impl IFaxOutgoingJob2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScheduleType(this: *mut core::ffi::c_void, pscheduletype: *mut FAX_SCHEDULE_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJob2_Impl, - { + unsafe extern "system" fn ScheduleType(this: *mut core::ffi::c_void, pscheduletype: *mut FAX_SCHEDULE_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJob2_Impl::ScheduleType(this) { Ok(ok__) => { @@ -6132,14 +4782,8 @@ pub trait IFaxOutgoingJobs_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IFaxOutgoingJobs {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingJobs_Vtbl { - pub const fn new() -> IFaxOutgoingJobs_Vtbl - where - Identity: IFaxOutgoingJobs_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJobs_Impl, - { + pub const fn new() -> IFaxOutgoingJobs_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJobs_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6149,10 +4793,7 @@ impl IFaxOutgoingJobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxoutgoingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJobs_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, vindex: core::mem::MaybeUninit, pfaxoutgoingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJobs_Impl::get_Item(this, core::mem::transmute(&vindex)) { Ok(ok__) => { @@ -6162,10 +4803,7 @@ impl IFaxOutgoingJobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingJobs_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingJobs_Impl::Count(this) { Ok(ok__) => { @@ -6212,14 +4850,8 @@ pub trait IFaxOutgoingMessage_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IFaxOutgoingMessage {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingMessage_Vtbl { - pub const fn new() -> IFaxOutgoingMessage_Vtbl - where - Identity: IFaxOutgoingMessage_Impl, - { - unsafe extern "system" fn SubmissionId(this: *mut core::ffi::c_void, pbstrsubmissionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + pub const fn new() -> IFaxOutgoingMessage_Vtbl { + unsafe extern "system" fn SubmissionId(this: *mut core::ffi::c_void, pbstrsubmissionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::SubmissionId(this) { Ok(ok__) => { @@ -6229,10 +4861,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::Id(this) { Ok(ok__) => { @@ -6242,10 +4871,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, pbstrsubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, pbstrsubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::Subject(this) { Ok(ok__) => { @@ -6255,10 +4881,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DocumentName(this: *mut core::ffi::c_void, pbstrdocumentname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn DocumentName(this: *mut core::ffi::c_void, pbstrdocumentname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::DocumentName(this) { Ok(ok__) => { @@ -6268,10 +4891,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::Retries(this) { Ok(ok__) => { @@ -6281,10 +4901,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pages(this: *mut core::ffi::c_void, plpages: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn Pages(this: *mut core::ffi::c_void, plpages: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::Pages(this) { Ok(ok__) => { @@ -6294,10 +4911,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::Size(this) { Ok(ok__) => { @@ -6307,10 +4921,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OriginalScheduledTime(this: *mut core::ffi::c_void, pdateoriginalscheduledtime: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn OriginalScheduledTime(this: *mut core::ffi::c_void, pdateoriginalscheduledtime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::OriginalScheduledTime(this) { Ok(ok__) => { @@ -6320,10 +4931,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubmissionTime(this: *mut core::ffi::c_void, pdatesubmissiontime: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn SubmissionTime(this: *mut core::ffi::c_void, pdatesubmissiontime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::SubmissionTime(this) { Ok(ok__) => { @@ -6333,10 +4941,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, ppriority: *mut FAX_PRIORITY_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, ppriority: *mut FAX_PRIORITY_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::Priority(this) { Ok(ok__) => { @@ -6346,10 +4951,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Sender(this: *mut core::ffi::c_void, ppfaxsender: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn Sender(this: *mut core::ffi::c_void, ppfaxsender: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::Sender(this) { Ok(ok__) => { @@ -6359,10 +4961,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Recipient(this: *mut core::ffi::c_void, ppfaxrecipient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn Recipient(this: *mut core::ffi::c_void, ppfaxrecipient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::Recipient(this) { Ok(ok__) => { @@ -6372,10 +4971,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceName(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn DeviceName(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::DeviceName(this) { Ok(ok__) => { @@ -6385,10 +4981,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionStart(this: *mut core::ffi::c_void, pdatetransmissionstart: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn TransmissionStart(this: *mut core::ffi::c_void, pdatetransmissionstart: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::TransmissionStart(this) { Ok(ok__) => { @@ -6398,10 +4991,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionEnd(this: *mut core::ffi::c_void, pdatetransmissionend: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn TransmissionEnd(this: *mut core::ffi::c_void, pdatetransmissionend: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::TransmissionEnd(this) { Ok(ok__) => { @@ -6411,10 +5001,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn CSID(this: *mut core::ffi::c_void, pbstrcsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::CSID(this) { Ok(ok__) => { @@ -6424,10 +5011,7 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage_Impl::TSID(this) { Ok(ok__) => { @@ -6437,17 +5021,11 @@ impl IFaxOutgoingMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyTiff(this: *mut core::ffi::c_void, bstrtiffpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn CopyTiff(this: *mut core::ffi::c_void, bstrtiffpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingMessage_Impl::CopyTiff(this, core::mem::transmute(&bstrtiffpath)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingMessage_Impl::Delete(this).into() } @@ -6492,14 +5070,8 @@ pub trait IFaxOutgoingMessage2_Impl: Sized + IFaxOutgoingMessage_Impl { impl windows_core::RuntimeName for IFaxOutgoingMessage2 {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingMessage2_Vtbl { - pub const fn new() -> IFaxOutgoingMessage2_Vtbl - where - Identity: IFaxOutgoingMessage2_Impl, - { - unsafe extern "system" fn HasCoverPage(this: *mut core::ffi::c_void, pbhascoverpage: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage2_Impl, - { + pub const fn new() -> IFaxOutgoingMessage2_Vtbl { + unsafe extern "system" fn HasCoverPage(this: *mut core::ffi::c_void, pbhascoverpage: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage2_Impl::HasCoverPage(this) { Ok(ok__) => { @@ -6509,10 +5081,7 @@ impl IFaxOutgoingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiptType(this: *mut core::ffi::c_void, preceipttype: *mut FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage2_Impl, - { + unsafe extern "system" fn ReceiptType(this: *mut core::ffi::c_void, preceipttype: *mut FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage2_Impl::ReceiptType(this) { Ok(ok__) => { @@ -6522,10 +5091,7 @@ impl IFaxOutgoingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiptAddress(this: *mut core::ffi::c_void, pbstrreceiptaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage2_Impl, - { + unsafe extern "system" fn ReceiptAddress(this: *mut core::ffi::c_void, pbstrreceiptaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage2_Impl::ReceiptAddress(this) { Ok(ok__) => { @@ -6535,10 +5101,7 @@ impl IFaxOutgoingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbread: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage2_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbread: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessage2_Impl::Read(this) { Ok(ok__) => { @@ -6548,24 +5111,15 @@ impl IFaxOutgoingMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRead(this: *mut core::ffi::c_void, bread: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage2_Impl, - { + unsafe extern "system" fn SetRead(this: *mut core::ffi::c_void, bread: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingMessage2_Impl::SetRead(this, core::mem::transmute_copy(&bread)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage2_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingMessage2_Impl::Save(this).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessage2_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingMessage2_Impl::Refresh(this).into() } @@ -6597,14 +5151,8 @@ pub trait IFaxOutgoingMessageIterator_Impl: Sized + super::super::System::Com::I impl windows_core::RuntimeName for IFaxOutgoingMessageIterator {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingMessageIterator_Vtbl { - pub const fn new() -> IFaxOutgoingMessageIterator_Vtbl - where - Identity: IFaxOutgoingMessageIterator_Impl, - { - unsafe extern "system" fn Message(this: *mut core::ffi::c_void, pfaxoutgoingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessageIterator_Impl, - { + pub const fn new() -> IFaxOutgoingMessageIterator_Vtbl { + unsafe extern "system" fn Message(this: *mut core::ffi::c_void, pfaxoutgoingmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessageIterator_Impl::Message(this) { Ok(ok__) => { @@ -6614,10 +5162,7 @@ impl IFaxOutgoingMessageIterator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AtEOF(this: *mut core::ffi::c_void, pbeof: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessageIterator_Impl, - { + unsafe extern "system" fn AtEOF(this: *mut core::ffi::c_void, pbeof: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessageIterator_Impl::AtEOF(this) { Ok(ok__) => { @@ -6627,10 +5172,7 @@ impl IFaxOutgoingMessageIterator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrefetchSize(this: *mut core::ffi::c_void, plprefetchsize: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessageIterator_Impl, - { + unsafe extern "system" fn PrefetchSize(this: *mut core::ffi::c_void, plprefetchsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingMessageIterator_Impl::PrefetchSize(this) { Ok(ok__) => { @@ -6640,24 +5182,15 @@ impl IFaxOutgoingMessageIterator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrefetchSize(this: *mut core::ffi::c_void, lprefetchsize: i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessageIterator_Impl, - { + unsafe extern "system" fn SetPrefetchSize(this: *mut core::ffi::c_void, lprefetchsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingMessageIterator_Impl::SetPrefetchSize(this, core::mem::transmute_copy(&lprefetchsize)).into() } - unsafe extern "system" fn MoveFirst(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessageIterator_Impl, - { + unsafe extern "system" fn MoveFirst(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingMessageIterator_Impl::MoveFirst(this).into() } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingMessageIterator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingMessageIterator_Impl::MoveNext(this).into() } @@ -6706,14 +5239,8 @@ pub trait IFaxOutgoingQueue_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IFaxOutgoingQueue {} #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingQueue_Vtbl { - pub const fn new() -> IFaxOutgoingQueue_Vtbl - where - Identity: IFaxOutgoingQueue_Impl, - { - unsafe extern "system" fn Blocked(this: *mut core::ffi::c_void, pbblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + pub const fn new() -> IFaxOutgoingQueue_Vtbl { + unsafe extern "system" fn Blocked(this: *mut core::ffi::c_void, pbblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::Blocked(this) { Ok(ok__) => { @@ -6723,17 +5250,11 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBlocked(this: *mut core::ffi::c_void, bblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn SetBlocked(this: *mut core::ffi::c_void, bblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::SetBlocked(this, core::mem::transmute_copy(&bblocked)).into() } - unsafe extern "system" fn Paused(this: *mut core::ffi::c_void, pbpaused: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn Paused(this: *mut core::ffi::c_void, pbpaused: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::Paused(this) { Ok(ok__) => { @@ -6743,17 +5264,11 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPaused(this: *mut core::ffi::c_void, bpaused: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn SetPaused(this: *mut core::ffi::c_void, bpaused: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::SetPaused(this, core::mem::transmute_copy(&bpaused)).into() } - unsafe extern "system" fn AllowPersonalCoverPages(this: *mut core::ffi::c_void, pballowpersonalcoverpages: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn AllowPersonalCoverPages(this: *mut core::ffi::c_void, pballowpersonalcoverpages: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::AllowPersonalCoverPages(this) { Ok(ok__) => { @@ -6763,17 +5278,11 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowPersonalCoverPages(this: *mut core::ffi::c_void, ballowpersonalcoverpages: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn SetAllowPersonalCoverPages(this: *mut core::ffi::c_void, ballowpersonalcoverpages: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::SetAllowPersonalCoverPages(this, core::mem::transmute_copy(&ballowpersonalcoverpages)).into() } - unsafe extern "system" fn UseDeviceTSID(this: *mut core::ffi::c_void, pbusedevicetsid: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn UseDeviceTSID(this: *mut core::ffi::c_void, pbusedevicetsid: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::UseDeviceTSID(this) { Ok(ok__) => { @@ -6783,17 +5292,11 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseDeviceTSID(this: *mut core::ffi::c_void, busedevicetsid: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn SetUseDeviceTSID(this: *mut core::ffi::c_void, busedevicetsid: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::SetUseDeviceTSID(this, core::mem::transmute_copy(&busedevicetsid)).into() } - unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn Retries(this: *mut core::ffi::c_void, plretries: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::Retries(this) { Ok(ok__) => { @@ -6803,17 +5306,11 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRetries(this: *mut core::ffi::c_void, lretries: i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn SetRetries(this: *mut core::ffi::c_void, lretries: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::SetRetries(this, core::mem::transmute_copy(&lretries)).into() } - unsafe extern "system" fn RetryDelay(this: *mut core::ffi::c_void, plretrydelay: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn RetryDelay(this: *mut core::ffi::c_void, plretrydelay: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::RetryDelay(this) { Ok(ok__) => { @@ -6823,17 +5320,11 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRetryDelay(this: *mut core::ffi::c_void, lretrydelay: i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn SetRetryDelay(this: *mut core::ffi::c_void, lretrydelay: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::SetRetryDelay(this, core::mem::transmute_copy(&lretrydelay)).into() } - unsafe extern "system" fn DiscountRateStart(this: *mut core::ffi::c_void, pdatediscountratestart: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn DiscountRateStart(this: *mut core::ffi::c_void, pdatediscountratestart: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::DiscountRateStart(this) { Ok(ok__) => { @@ -6843,17 +5334,11 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDiscountRateStart(this: *mut core::ffi::c_void, datediscountratestart: f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn SetDiscountRateStart(this: *mut core::ffi::c_void, datediscountratestart: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::SetDiscountRateStart(this, core::mem::transmute_copy(&datediscountratestart)).into() } - unsafe extern "system" fn DiscountRateEnd(this: *mut core::ffi::c_void, pdatediscountrateend: *mut f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn DiscountRateEnd(this: *mut core::ffi::c_void, pdatediscountrateend: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::DiscountRateEnd(this) { Ok(ok__) => { @@ -6863,17 +5348,11 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDiscountRateEnd(this: *mut core::ffi::c_void, datediscountrateend: f64) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn SetDiscountRateEnd(this: *mut core::ffi::c_void, datediscountrateend: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::SetDiscountRateEnd(this, core::mem::transmute_copy(&datediscountrateend)).into() } - unsafe extern "system" fn AgeLimit(this: *mut core::ffi::c_void, plagelimit: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn AgeLimit(this: *mut core::ffi::c_void, plagelimit: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::AgeLimit(this) { Ok(ok__) => { @@ -6883,17 +5362,11 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAgeLimit(this: *mut core::ffi::c_void, lagelimit: i32) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn SetAgeLimit(this: *mut core::ffi::c_void, lagelimit: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::SetAgeLimit(this, core::mem::transmute_copy(&lagelimit)).into() } - unsafe extern "system" fn Branding(this: *mut core::ffi::c_void, pbbranding: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn Branding(this: *mut core::ffi::c_void, pbbranding: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::Branding(this) { Ok(ok__) => { @@ -6903,31 +5376,19 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBranding(this: *mut core::ffi::c_void, bbranding: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn SetBranding(this: *mut core::ffi::c_void, bbranding: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::SetBranding(this, core::mem::transmute_copy(&bbranding)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxOutgoingQueue_Impl::Save(this).into() } - unsafe extern "system" fn GetJobs(this: *mut core::ffi::c_void, pfaxoutgoingjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn GetJobs(this: *mut core::ffi::c_void, pfaxoutgoingjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::GetJobs(this) { Ok(ok__) => { @@ -6937,10 +5398,7 @@ impl IFaxOutgoingQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pfaxoutgoingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxOutgoingQueue_Impl, - { + unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pfaxoutgoingjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxOutgoingQueue_Impl::GetJob(this, core::mem::transmute(&bstrjobid)) { Ok(ok__) => { @@ -7007,14 +5465,8 @@ pub trait IFaxReceiptOptions_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IFaxReceiptOptions {} #[cfg(feature = "Win32_System_Com")] impl IFaxReceiptOptions_Vtbl { - pub const fn new() -> IFaxReceiptOptions_Vtbl - where - Identity: IFaxReceiptOptions_Impl, - { - unsafe extern "system" fn AuthenticationType(this: *mut core::ffi::c_void, ptype: *mut FAX_SMTP_AUTHENTICATION_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + pub const fn new() -> IFaxReceiptOptions_Vtbl { + unsafe extern "system" fn AuthenticationType(this: *mut core::ffi::c_void, ptype: *mut FAX_SMTP_AUTHENTICATION_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxReceiptOptions_Impl::AuthenticationType(this) { Ok(ok__) => { @@ -7024,17 +5476,11 @@ impl IFaxReceiptOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationType(this: *mut core::ffi::c_void, r#type: FAX_SMTP_AUTHENTICATION_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SetAuthenticationType(this: *mut core::ffi::c_void, r#type: FAX_SMTP_AUTHENTICATION_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxReceiptOptions_Impl::SetAuthenticationType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn SMTPServer(this: *mut core::ffi::c_void, pbstrsmtpserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SMTPServer(this: *mut core::ffi::c_void, pbstrsmtpserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxReceiptOptions_Impl::SMTPServer(this) { Ok(ok__) => { @@ -7044,17 +5490,11 @@ impl IFaxReceiptOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSMTPServer(this: *mut core::ffi::c_void, bstrsmtpserver: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SetSMTPServer(this: *mut core::ffi::c_void, bstrsmtpserver: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxReceiptOptions_Impl::SetSMTPServer(this, core::mem::transmute(&bstrsmtpserver)).into() } - unsafe extern "system" fn SMTPPort(this: *mut core::ffi::c_void, plsmtpport: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SMTPPort(this: *mut core::ffi::c_void, plsmtpport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxReceiptOptions_Impl::SMTPPort(this) { Ok(ok__) => { @@ -7064,17 +5504,11 @@ impl IFaxReceiptOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSMTPPort(this: *mut core::ffi::c_void, lsmtpport: i32) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SetSMTPPort(this: *mut core::ffi::c_void, lsmtpport: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxReceiptOptions_Impl::SetSMTPPort(this, core::mem::transmute_copy(&lsmtpport)).into() } - unsafe extern "system" fn SMTPSender(this: *mut core::ffi::c_void, pbstrsmtpsender: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SMTPSender(this: *mut core::ffi::c_void, pbstrsmtpsender: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxReceiptOptions_Impl::SMTPSender(this) { Ok(ok__) => { @@ -7084,17 +5518,11 @@ impl IFaxReceiptOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSMTPSender(this: *mut core::ffi::c_void, bstrsmtpsender: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SetSMTPSender(this: *mut core::ffi::c_void, bstrsmtpsender: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxReceiptOptions_Impl::SetSMTPSender(this, core::mem::transmute(&bstrsmtpsender)).into() } - unsafe extern "system" fn SMTPUser(this: *mut core::ffi::c_void, pbstrsmtpuser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SMTPUser(this: *mut core::ffi::c_void, pbstrsmtpuser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxReceiptOptions_Impl::SMTPUser(this) { Ok(ok__) => { @@ -7104,17 +5532,11 @@ impl IFaxReceiptOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSMTPUser(this: *mut core::ffi::c_void, bstrsmtpuser: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SetSMTPUser(this: *mut core::ffi::c_void, bstrsmtpuser: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxReceiptOptions_Impl::SetSMTPUser(this, core::mem::transmute(&bstrsmtpuser)).into() } - unsafe extern "system" fn AllowedReceipts(this: *mut core::ffi::c_void, pallowedreceipts: *mut FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn AllowedReceipts(this: *mut core::ffi::c_void, pallowedreceipts: *mut FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxReceiptOptions_Impl::AllowedReceipts(this) { Ok(ok__) => { @@ -7124,17 +5546,11 @@ impl IFaxReceiptOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowedReceipts(this: *mut core::ffi::c_void, allowedreceipts: FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SetAllowedReceipts(this: *mut core::ffi::c_void, allowedreceipts: FAX_RECEIPT_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxReceiptOptions_Impl::SetAllowedReceipts(this, core::mem::transmute_copy(&allowedreceipts)).into() } - unsafe extern "system" fn SMTPPassword(this: *mut core::ffi::c_void, pbstrsmtppassword: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SMTPPassword(this: *mut core::ffi::c_void, pbstrsmtppassword: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxReceiptOptions_Impl::SMTPPassword(this) { Ok(ok__) => { @@ -7144,31 +5560,19 @@ impl IFaxReceiptOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSMTPPassword(this: *mut core::ffi::c_void, bstrsmtppassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SetSMTPPassword(this: *mut core::ffi::c_void, bstrsmtppassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxReceiptOptions_Impl::SetSMTPPassword(this, core::mem::transmute(&bstrsmtppassword)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxReceiptOptions_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxReceiptOptions_Impl::Save(this).into() } - unsafe extern "system" fn UseForInboundRouting(this: *mut core::ffi::c_void, pbuseforinboundrouting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn UseForInboundRouting(this: *mut core::ffi::c_void, pbuseforinboundrouting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxReceiptOptions_Impl::UseForInboundRouting(this) { Ok(ok__) => { @@ -7178,10 +5582,7 @@ impl IFaxReceiptOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseForInboundRouting(this: *mut core::ffi::c_void, buseforinboundrouting: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxReceiptOptions_Impl, - { + unsafe extern "system" fn SetUseForInboundRouting(this: *mut core::ffi::c_void, buseforinboundrouting: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxReceiptOptions_Impl::SetUseForInboundRouting(this, core::mem::transmute_copy(&buseforinboundrouting)).into() } @@ -7222,14 +5623,8 @@ pub trait IFaxRecipient_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IFaxRecipient {} #[cfg(feature = "Win32_System_Com")] impl IFaxRecipient_Vtbl { - pub const fn new() -> IFaxRecipient_Vtbl - where - Identity: IFaxRecipient_Impl, - { - unsafe extern "system" fn FaxNumber(this: *mut core::ffi::c_void, pbstrfaxnumber: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxRecipient_Impl, - { + pub const fn new() -> IFaxRecipient_Vtbl { + unsafe extern "system" fn FaxNumber(this: *mut core::ffi::c_void, pbstrfaxnumber: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxRecipient_Impl::FaxNumber(this) { Ok(ok__) => { @@ -7239,17 +5634,11 @@ impl IFaxRecipient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFaxNumber(this: *mut core::ffi::c_void, bstrfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxRecipient_Impl, - { + unsafe extern "system" fn SetFaxNumber(this: *mut core::ffi::c_void, bstrfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxRecipient_Impl::SetFaxNumber(this, core::mem::transmute(&bstrfaxnumber)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxRecipient_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxRecipient_Impl::Name(this) { Ok(ok__) => { @@ -7259,10 +5648,7 @@ impl IFaxRecipient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxRecipient_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxRecipient_Impl::SetName(this, core::mem::transmute(&bstrname)).into() } @@ -7290,14 +5676,8 @@ pub trait IFaxRecipients_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IFaxRecipients {} #[cfg(feature = "Win32_System_Com")] impl IFaxRecipients_Vtbl { - pub const fn new() -> IFaxRecipients_Vtbl - where - Identity: IFaxRecipients_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxRecipients_Impl, - { + pub const fn new() -> IFaxRecipients_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxRecipients_Impl::_NewEnum(this) { Ok(ok__) => { @@ -7307,10 +5687,7 @@ impl IFaxRecipients_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, ppfaxrecipient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxRecipients_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, ppfaxrecipient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxRecipients_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -7320,10 +5697,7 @@ impl IFaxRecipients_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxRecipients_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxRecipients_Impl::Count(this) { Ok(ok__) => { @@ -7333,10 +5707,7 @@ impl IFaxRecipients_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrfaxnumber: core::mem::MaybeUninit, bstrrecipientname: core::mem::MaybeUninit, ppfaxrecipient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxRecipients_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrfaxnumber: core::mem::MaybeUninit, bstrrecipientname: core::mem::MaybeUninit, ppfaxrecipient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxRecipients_Impl::Add(this, core::mem::transmute(&bstrfaxnumber), core::mem::transmute(&bstrrecipientname)) { Ok(ok__) => { @@ -7346,10 +5717,7 @@ impl IFaxRecipients_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT - where - Identity: IFaxRecipients_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxRecipients_Impl::Remove(this, core::mem::transmute_copy(&lindex)).into() } @@ -7380,14 +5748,8 @@ pub trait IFaxSecurity_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFaxSecurity {} #[cfg(feature = "Win32_System_Com")] impl IFaxSecurity_Vtbl { - pub const fn new() -> IFaxSecurity_Vtbl - where - Identity: IFaxSecurity_Impl, - { - unsafe extern "system" fn Descriptor(this: *mut core::ffi::c_void, pvdescriptor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSecurity_Impl, - { + pub const fn new() -> IFaxSecurity_Vtbl { + unsafe extern "system" fn Descriptor(this: *mut core::ffi::c_void, pvdescriptor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSecurity_Impl::Descriptor(this) { Ok(ok__) => { @@ -7397,17 +5759,11 @@ impl IFaxSecurity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescriptor(this: *mut core::ffi::c_void, vdescriptor: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSecurity_Impl, - { + unsafe extern "system" fn SetDescriptor(this: *mut core::ffi::c_void, vdescriptor: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSecurity_Impl::SetDescriptor(this, core::mem::transmute(&vdescriptor)).into() } - unsafe extern "system" fn GrantedRights(this: *mut core::ffi::c_void, pgrantedrights: *mut FAX_ACCESS_RIGHTS_ENUM) -> windows_core::HRESULT - where - Identity: IFaxSecurity_Impl, - { + unsafe extern "system" fn GrantedRights(this: *mut core::ffi::c_void, pgrantedrights: *mut FAX_ACCESS_RIGHTS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSecurity_Impl::GrantedRights(this) { Ok(ok__) => { @@ -7417,24 +5773,15 @@ impl IFaxSecurity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxSecurity_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSecurity_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxSecurity_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSecurity_Impl::Save(this).into() } - unsafe extern "system" fn InformationType(this: *mut core::ffi::c_void, plinformationtype: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxSecurity_Impl, - { + unsafe extern "system" fn InformationType(this: *mut core::ffi::c_void, plinformationtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSecurity_Impl::InformationType(this) { Ok(ok__) => { @@ -7444,10 +5791,7 @@ impl IFaxSecurity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInformationType(this: *mut core::ffi::c_void, linformationtype: i32) -> windows_core::HRESULT - where - Identity: IFaxSecurity_Impl, - { + unsafe extern "system" fn SetInformationType(this: *mut core::ffi::c_void, linformationtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSecurity_Impl::SetInformationType(this, core::mem::transmute_copy(&linformationtype)).into() } @@ -7480,14 +5824,8 @@ pub trait IFaxSecurity2_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IFaxSecurity2 {} #[cfg(feature = "Win32_System_Com")] impl IFaxSecurity2_Vtbl { - pub const fn new() -> IFaxSecurity2_Vtbl - where - Identity: IFaxSecurity2_Impl, - { - unsafe extern "system" fn Descriptor(this: *mut core::ffi::c_void, pvdescriptor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSecurity2_Impl, - { + pub const fn new() -> IFaxSecurity2_Vtbl { + unsafe extern "system" fn Descriptor(this: *mut core::ffi::c_void, pvdescriptor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSecurity2_Impl::Descriptor(this) { Ok(ok__) => { @@ -7497,17 +5835,11 @@ impl IFaxSecurity2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescriptor(this: *mut core::ffi::c_void, vdescriptor: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSecurity2_Impl, - { + unsafe extern "system" fn SetDescriptor(this: *mut core::ffi::c_void, vdescriptor: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSecurity2_Impl::SetDescriptor(this, core::mem::transmute(&vdescriptor)).into() } - unsafe extern "system" fn GrantedRights(this: *mut core::ffi::c_void, pgrantedrights: *mut FAX_ACCESS_RIGHTS_ENUM_2) -> windows_core::HRESULT - where - Identity: IFaxSecurity2_Impl, - { + unsafe extern "system" fn GrantedRights(this: *mut core::ffi::c_void, pgrantedrights: *mut FAX_ACCESS_RIGHTS_ENUM_2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSecurity2_Impl::GrantedRights(this) { Ok(ok__) => { @@ -7517,24 +5849,15 @@ impl IFaxSecurity2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxSecurity2_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSecurity2_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxSecurity2_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSecurity2_Impl::Save(this).into() } - unsafe extern "system" fn InformationType(this: *mut core::ffi::c_void, plinformationtype: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxSecurity2_Impl, - { + unsafe extern "system" fn InformationType(this: *mut core::ffi::c_void, plinformationtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSecurity2_Impl::InformationType(this) { Ok(ok__) => { @@ -7544,10 +5867,7 @@ impl IFaxSecurity2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInformationType(this: *mut core::ffi::c_void, linformationtype: i32) -> windows_core::HRESULT - where - Identity: IFaxSecurity2_Impl, - { + unsafe extern "system" fn SetInformationType(this: *mut core::ffi::c_void, linformationtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSecurity2_Impl::SetInformationType(this, core::mem::transmute_copy(&linformationtype)).into() } @@ -7607,14 +5927,8 @@ pub trait IFaxSender_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFaxSender {} #[cfg(feature = "Win32_System_Com")] impl IFaxSender_Vtbl { - pub const fn new() -> IFaxSender_Vtbl - where - Identity: IFaxSender_Impl, - { - unsafe extern "system" fn BillingCode(this: *mut core::ffi::c_void, pbstrbillingcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + pub const fn new() -> IFaxSender_Vtbl { + unsafe extern "system" fn BillingCode(this: *mut core::ffi::c_void, pbstrbillingcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::BillingCode(this) { Ok(ok__) => { @@ -7624,17 +5938,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBillingCode(this: *mut core::ffi::c_void, bstrbillingcode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetBillingCode(this: *mut core::ffi::c_void, bstrbillingcode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetBillingCode(this, core::mem::transmute(&bstrbillingcode)).into() } - unsafe extern "system" fn City(this: *mut core::ffi::c_void, pbstrcity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn City(this: *mut core::ffi::c_void, pbstrcity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::City(this) { Ok(ok__) => { @@ -7644,17 +5952,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCity(this: *mut core::ffi::c_void, bstrcity: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetCity(this: *mut core::ffi::c_void, bstrcity: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetCity(this, core::mem::transmute(&bstrcity)).into() } - unsafe extern "system" fn Company(this: *mut core::ffi::c_void, pbstrcompany: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn Company(this: *mut core::ffi::c_void, pbstrcompany: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::Company(this) { Ok(ok__) => { @@ -7664,17 +5966,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCompany(this: *mut core::ffi::c_void, bstrcompany: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetCompany(this: *mut core::ffi::c_void, bstrcompany: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetCompany(this, core::mem::transmute(&bstrcompany)).into() } - unsafe extern "system" fn Country(this: *mut core::ffi::c_void, pbstrcountry: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn Country(this: *mut core::ffi::c_void, pbstrcountry: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::Country(this) { Ok(ok__) => { @@ -7684,17 +5980,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCountry(this: *mut core::ffi::c_void, bstrcountry: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetCountry(this: *mut core::ffi::c_void, bstrcountry: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetCountry(this, core::mem::transmute(&bstrcountry)).into() } - unsafe extern "system" fn Department(this: *mut core::ffi::c_void, pbstrdepartment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn Department(this: *mut core::ffi::c_void, pbstrdepartment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::Department(this) { Ok(ok__) => { @@ -7704,17 +5994,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDepartment(this: *mut core::ffi::c_void, bstrdepartment: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetDepartment(this: *mut core::ffi::c_void, bstrdepartment: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetDepartment(this, core::mem::transmute(&bstrdepartment)).into() } - unsafe extern "system" fn Email(this: *mut core::ffi::c_void, pbstremail: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn Email(this: *mut core::ffi::c_void, pbstremail: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::Email(this) { Ok(ok__) => { @@ -7724,17 +6008,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEmail(this: *mut core::ffi::c_void, bstremail: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetEmail(this: *mut core::ffi::c_void, bstremail: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetEmail(this, core::mem::transmute(&bstremail)).into() } - unsafe extern "system" fn FaxNumber(this: *mut core::ffi::c_void, pbstrfaxnumber: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn FaxNumber(this: *mut core::ffi::c_void, pbstrfaxnumber: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::FaxNumber(this) { Ok(ok__) => { @@ -7744,17 +6022,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFaxNumber(this: *mut core::ffi::c_void, bstrfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetFaxNumber(this: *mut core::ffi::c_void, bstrfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetFaxNumber(this, core::mem::transmute(&bstrfaxnumber)).into() } - unsafe extern "system" fn HomePhone(this: *mut core::ffi::c_void, pbstrhomephone: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn HomePhone(this: *mut core::ffi::c_void, pbstrhomephone: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::HomePhone(this) { Ok(ok__) => { @@ -7764,17 +6036,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHomePhone(this: *mut core::ffi::c_void, bstrhomephone: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetHomePhone(this: *mut core::ffi::c_void, bstrhomephone: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetHomePhone(this, core::mem::transmute(&bstrhomephone)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::Name(this) { Ok(ok__) => { @@ -7784,17 +6050,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, pbstrtsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::TSID(this) { Ok(ok__) => { @@ -7804,17 +6064,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, bstrtsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, bstrtsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetTSID(this, core::mem::transmute(&bstrtsid)).into() } - unsafe extern "system" fn OfficePhone(this: *mut core::ffi::c_void, pbstrofficephone: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn OfficePhone(this: *mut core::ffi::c_void, pbstrofficephone: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::OfficePhone(this) { Ok(ok__) => { @@ -7824,17 +6078,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOfficePhone(this: *mut core::ffi::c_void, bstrofficephone: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetOfficePhone(this: *mut core::ffi::c_void, bstrofficephone: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetOfficePhone(this, core::mem::transmute(&bstrofficephone)).into() } - unsafe extern "system" fn OfficeLocation(this: *mut core::ffi::c_void, pbstrofficelocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn OfficeLocation(this: *mut core::ffi::c_void, pbstrofficelocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::OfficeLocation(this) { Ok(ok__) => { @@ -7844,17 +6092,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOfficeLocation(this: *mut core::ffi::c_void, bstrofficelocation: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetOfficeLocation(this: *mut core::ffi::c_void, bstrofficelocation: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetOfficeLocation(this, core::mem::transmute(&bstrofficelocation)).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pbstrstate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pbstrstate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::State(this) { Ok(ok__) => { @@ -7864,17 +6106,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, bstrstate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, bstrstate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetState(this, core::mem::transmute(&bstrstate)).into() } - unsafe extern "system" fn StreetAddress(this: *mut core::ffi::c_void, pbstrstreetaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn StreetAddress(this: *mut core::ffi::c_void, pbstrstreetaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::StreetAddress(this) { Ok(ok__) => { @@ -7884,17 +6120,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreetAddress(this: *mut core::ffi::c_void, bstrstreetaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetStreetAddress(this: *mut core::ffi::c_void, bstrstreetaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetStreetAddress(this, core::mem::transmute(&bstrstreetaddress)).into() } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, pbstrtitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, pbstrtitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::Title(this) { Ok(ok__) => { @@ -7904,17 +6134,11 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, bstrtitle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, bstrtitle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetTitle(this, core::mem::transmute(&bstrtitle)).into() } - unsafe extern "system" fn ZipCode(this: *mut core::ffi::c_void, pbstrzipcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn ZipCode(this: *mut core::ffi::c_void, pbstrzipcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxSender_Impl::ZipCode(this) { Ok(ok__) => { @@ -7924,24 +6148,15 @@ impl IFaxSender_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetZipCode(this: *mut core::ffi::c_void, bstrzipcode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SetZipCode(this: *mut core::ffi::c_void, bstrzipcode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SetZipCode(this, core::mem::transmute(&bstrzipcode)).into() } - unsafe extern "system" fn LoadDefaultSender(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn LoadDefaultSender(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::LoadDefaultSender(this).into() } - unsafe extern "system" fn SaveDefaultSender(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxSender_Impl, - { + unsafe extern "system" fn SaveDefaultSender(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxSender_Impl::SaveDefaultSender(this).into() } @@ -8020,21 +6235,12 @@ pub trait IFaxServer_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFaxServer {} #[cfg(feature = "Win32_System_Com")] impl IFaxServer_Vtbl { - pub const fn new() -> IFaxServer_Vtbl - where - Identity: IFaxServer_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + pub const fn new() -> IFaxServer_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServer_Impl::Connect(this, core::mem::transmute(&bstrservername)).into() } - unsafe extern "system" fn ServerName(this: *mut core::ffi::c_void, pbstrservername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn ServerName(this: *mut core::ffi::c_void, pbstrservername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::ServerName(this) { Ok(ok__) => { @@ -8044,10 +6250,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceProviders(this: *mut core::ffi::c_void, ppfaxdeviceproviders: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn GetDeviceProviders(this: *mut core::ffi::c_void, ppfaxdeviceproviders: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::GetDeviceProviders(this) { Ok(ok__) => { @@ -8057,10 +6260,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDevices(this: *mut core::ffi::c_void, ppfaxdevices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn GetDevices(this: *mut core::ffi::c_void, ppfaxdevices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::GetDevices(this) { Ok(ok__) => { @@ -8070,10 +6270,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InboundRouting(this: *mut core::ffi::c_void, ppfaxinboundrouting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn InboundRouting(this: *mut core::ffi::c_void, ppfaxinboundrouting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::InboundRouting(this) { Ok(ok__) => { @@ -8083,10 +6280,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Folders(this: *mut core::ffi::c_void, pfaxfolders: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn Folders(this: *mut core::ffi::c_void, pfaxfolders: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::Folders(this) { Ok(ok__) => { @@ -8096,10 +6290,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoggingOptions(this: *mut core::ffi::c_void, ppfaxloggingoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn LoggingOptions(this: *mut core::ffi::c_void, ppfaxloggingoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::LoggingOptions(this) { Ok(ok__) => { @@ -8109,10 +6300,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::MajorVersion(this) { Ok(ok__) => { @@ -8122,10 +6310,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, plminorversion: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, plminorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::MinorVersion(this) { Ok(ok__) => { @@ -8135,10 +6320,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MajorBuild(this: *mut core::ffi::c_void, plmajorbuild: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn MajorBuild(this: *mut core::ffi::c_void, plmajorbuild: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::MajorBuild(this) { Ok(ok__) => { @@ -8148,10 +6330,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinorBuild(this: *mut core::ffi::c_void, plminorbuild: *mut i32) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn MinorBuild(this: *mut core::ffi::c_void, plminorbuild: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::MinorBuild(this) { Ok(ok__) => { @@ -8161,10 +6340,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Debug(this: *mut core::ffi::c_void, pbdebug: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn Debug(this: *mut core::ffi::c_void, pbdebug: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::Debug(this) { Ok(ok__) => { @@ -8174,10 +6350,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Activity(this: *mut core::ffi::c_void, ppfaxactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn Activity(this: *mut core::ffi::c_void, ppfaxactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::Activity(this) { Ok(ok__) => { @@ -8187,10 +6360,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutboundRouting(this: *mut core::ffi::c_void, ppfaxoutboundrouting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn OutboundRouting(this: *mut core::ffi::c_void, ppfaxoutboundrouting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::OutboundRouting(this) { Ok(ok__) => { @@ -8200,10 +6370,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiptOptions(this: *mut core::ffi::c_void, ppfaxreceiptoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn ReceiptOptions(this: *mut core::ffi::c_void, ppfaxreceiptoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::ReceiptOptions(this) { Ok(ok__) => { @@ -8213,10 +6380,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security(this: *mut core::ffi::c_void, ppfaxsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn Security(this: *mut core::ffi::c_void, ppfaxsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::Security(this) { Ok(ok__) => { @@ -8226,17 +6390,11 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServer_Impl::Disconnect(this).into() } - unsafe extern "system" fn GetExtensionProperty(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, pvproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn GetExtensionProperty(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, pvproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::GetExtensionProperty(this, core::mem::transmute(&bstrguid)) { Ok(ok__) => { @@ -8246,52 +6404,31 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExtensionProperty(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, vproperty: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn SetExtensionProperty(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, vproperty: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServer_Impl::SetExtensionProperty(this, core::mem::transmute(&bstrguid), core::mem::transmute(&vproperty)).into() } - unsafe extern "system" fn ListenToServerEvents(this: *mut core::ffi::c_void, eventtypes: FAX_SERVER_EVENTS_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn ListenToServerEvents(this: *mut core::ffi::c_void, eventtypes: FAX_SERVER_EVENTS_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServer_Impl::ListenToServerEvents(this, core::mem::transmute_copy(&eventtypes)).into() } - unsafe extern "system" fn RegisterDeviceProvider(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, bstrfriendlyname: core::mem::MaybeUninit, bstrimagename: core::mem::MaybeUninit, tspname: core::mem::MaybeUninit, lfspiversion: i32) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn RegisterDeviceProvider(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, bstrfriendlyname: core::mem::MaybeUninit, bstrimagename: core::mem::MaybeUninit, tspname: core::mem::MaybeUninit, lfspiversion: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServer_Impl::RegisterDeviceProvider(this, 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(this: *mut core::ffi::c_void, bstruniquename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn UnregisterDeviceProvider(this: *mut core::ffi::c_void, bstruniquename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServer_Impl::UnregisterDeviceProvider(this, core::mem::transmute(&bstruniquename)).into() } - unsafe extern "system" fn RegisterInboundRoutingExtension(this: *mut core::ffi::c_void, bstrextensionname: core::mem::MaybeUninit, bstrfriendlyname: core::mem::MaybeUninit, bstrimagename: core::mem::MaybeUninit, vmethods: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn RegisterInboundRoutingExtension(this: *mut core::ffi::c_void, bstrextensionname: core::mem::MaybeUninit, bstrfriendlyname: core::mem::MaybeUninit, bstrimagename: core::mem::MaybeUninit, vmethods: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServer_Impl::RegisterInboundRoutingExtension(this, core::mem::transmute(&bstrextensionname), core::mem::transmute(&bstrfriendlyname), core::mem::transmute(&bstrimagename), core::mem::transmute(&vmethods)).into() } - unsafe extern "system" fn UnregisterInboundRoutingExtension(this: *mut core::ffi::c_void, bstrextensionuniquename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn UnregisterInboundRoutingExtension(this: *mut core::ffi::c_void, bstrextensionuniquename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServer_Impl::UnregisterInboundRoutingExtension(this, core::mem::transmute(&bstrextensionuniquename)).into() } - unsafe extern "system" fn RegisteredEvents(this: *mut core::ffi::c_void, peventtypes: *mut FAX_SERVER_EVENTS_TYPE_ENUM) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn RegisteredEvents(this: *mut core::ffi::c_void, peventtypes: *mut FAX_SERVER_EVENTS_TYPE_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::RegisteredEvents(this) { Ok(ok__) => { @@ -8301,10 +6438,7 @@ impl IFaxServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn APIVersion(this: *mut core::ffi::c_void, papiversion: *mut FAX_SERVER_APIVERSION_ENUM) -> windows_core::HRESULT - where - Identity: IFaxServer_Impl, - { + unsafe extern "system" fn APIVersion(this: *mut core::ffi::c_void, papiversion: *mut FAX_SERVER_APIVERSION_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer_Impl::APIVersion(this) { Ok(ok__) => { @@ -8359,14 +6493,8 @@ pub trait IFaxServer2_Impl: Sized + IFaxServer_Impl { impl windows_core::RuntimeName for IFaxServer2 {} #[cfg(feature = "Win32_System_Com")] impl IFaxServer2_Vtbl { - pub const fn new() -> IFaxServer2_Vtbl - where - Identity: IFaxServer2_Impl, - { - unsafe extern "system" fn Configuration(this: *mut core::ffi::c_void, ppfaxconfiguration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer2_Impl, - { + pub const fn new() -> IFaxServer2_Vtbl { + unsafe extern "system" fn Configuration(this: *mut core::ffi::c_void, ppfaxconfiguration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer2_Impl::Configuration(this) { Ok(ok__) => { @@ -8376,10 +6504,7 @@ impl IFaxServer2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAccount(this: *mut core::ffi::c_void, ppcurrentaccount: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer2_Impl, - { + unsafe extern "system" fn CurrentAccount(this: *mut core::ffi::c_void, ppcurrentaccount: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer2_Impl::CurrentAccount(this) { Ok(ok__) => { @@ -8389,10 +6514,7 @@ impl IFaxServer2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FaxAccountSet(this: *mut core::ffi::c_void, ppfaxaccountset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer2_Impl, - { + unsafe extern "system" fn FaxAccountSet(this: *mut core::ffi::c_void, ppfaxaccountset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer2_Impl::FaxAccountSet(this) { Ok(ok__) => { @@ -8402,10 +6524,7 @@ impl IFaxServer2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security2(this: *mut core::ffi::c_void, ppfaxsecurity2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServer2_Impl, - { + unsafe extern "system" fn Security2(this: *mut core::ffi::c_void, ppfaxsecurity2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFaxServer2_Impl::Security2(this) { Ok(ok__) => { @@ -8433,10 +6552,7 @@ pub trait IFaxServerNotify_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IFaxServerNotify {} #[cfg(feature = "Win32_System_Com")] impl IFaxServerNotify_Vtbl { - pub const fn new() -> IFaxServerNotify_Vtbl - where - Identity: IFaxServerNotify_Impl, - { + pub const fn new() -> IFaxServerNotify_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -8476,189 +6592,108 @@ pub trait IFaxServerNotify2_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IFaxServerNotify2 {} #[cfg(feature = "Win32_System_Com")] impl IFaxServerNotify2_Vtbl { - pub const fn new() -> IFaxServerNotify2_Vtbl - where - Identity: IFaxServerNotify2_Impl, - { - unsafe extern "system" fn OnIncomingJobAdded(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + pub const fn new() -> IFaxServerNotify2_Vtbl { + unsafe extern "system" fn OnIncomingJobAdded(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnIncomingJobAdded(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnIncomingJobRemoved(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnIncomingJobRemoved(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnIncomingJobRemoved(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnIncomingJobChanged(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pjobstatus: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnIncomingJobChanged(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pjobstatus: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnIncomingJobChanged(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute(&bstrjobid), windows_core::from_raw_borrowed(&pjobstatus)).into() } - unsafe extern "system" fn OnOutgoingJobAdded(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnOutgoingJobAdded(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnOutgoingJobAdded(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnOutgoingJobRemoved(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnOutgoingJobRemoved(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnOutgoingJobRemoved(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnOutgoingJobChanged(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pjobstatus: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnOutgoingJobChanged(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrjobid: core::mem::MaybeUninit, pjobstatus: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnOutgoingJobChanged(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute(&bstrjobid), windows_core::from_raw_borrowed(&pjobstatus)).into() } - unsafe extern "system" fn OnIncomingMessageAdded(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnIncomingMessageAdded(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnIncomingMessageAdded(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute(&bstrmessageid)).into() } - unsafe extern "system" fn OnIncomingMessageRemoved(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnIncomingMessageRemoved(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnIncomingMessageRemoved(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute(&bstrmessageid)).into() } - unsafe extern "system" fn OnOutgoingMessageAdded(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnOutgoingMessageAdded(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnOutgoingMessageAdded(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute(&bstrmessageid)).into() } - unsafe extern "system" fn OnOutgoingMessageRemoved(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnOutgoingMessageRemoved(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, bstrmessageid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnOutgoingMessageRemoved(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute(&bstrmessageid)).into() } - unsafe extern "system" fn OnReceiptOptionsChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnReceiptOptionsChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnReceiptOptionsChange(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnActivityLoggingConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnActivityLoggingConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnActivityLoggingConfigChange(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnSecurityConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnSecurityConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnSecurityConfigChange(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnEventLoggingConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnEventLoggingConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnEventLoggingConfigChange(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnOutgoingQueueConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnOutgoingQueueConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnOutgoingQueueConfigChange(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnOutgoingArchiveConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnOutgoingArchiveConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnOutgoingArchiveConfigChange(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnIncomingArchiveConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnIncomingArchiveConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnIncomingArchiveConfigChange(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnDevicesConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnDevicesConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnDevicesConfigChange(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnOutboundRoutingGroupsConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnOutboundRoutingGroupsConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnOutboundRoutingGroupsConfigChange(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnOutboundRoutingRulesConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnOutboundRoutingRulesConfigChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnOutboundRoutingRulesConfigChange(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnServerActivityChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, lincomingmessages: i32, lroutingmessages: i32, loutgoingmessages: i32, lqueuedmessages: i32) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnServerActivityChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, lincomingmessages: i32, lroutingmessages: i32, loutgoingmessages: i32, lqueuedmessages: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnServerActivityChange(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute_copy(&lincomingmessages), core::mem::transmute_copy(&lroutingmessages), core::mem::transmute_copy(&loutgoingmessages), core::mem::transmute_copy(&lqueuedmessages)).into() } - unsafe extern "system" fn OnQueuesStatusChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, boutgoingqueueblocked: super::super::Foundation::VARIANT_BOOL, boutgoingqueuepaused: super::super::Foundation::VARIANT_BOOL, bincomingqueueblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnQueuesStatusChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, boutgoingqueueblocked: super::super::Foundation::VARIANT_BOOL, boutgoingqueuepaused: super::super::Foundation::VARIANT_BOOL, bincomingqueueblocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnQueuesStatusChange(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute_copy(&boutgoingqueueblocked), core::mem::transmute_copy(&boutgoingqueuepaused), core::mem::transmute_copy(&bincomingqueueblocked)).into() } - unsafe extern "system" fn OnNewCall(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, lcallid: i32, ldeviceid: i32, bstrcallerid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnNewCall(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, lcallid: i32, ldeviceid: i32, bstrcallerid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnNewCall(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute_copy(&lcallid), core::mem::transmute_copy(&ldeviceid), core::mem::transmute(&bstrcallerid)).into() } - unsafe extern "system" fn OnServerShutDown(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnServerShutDown(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnServerShutDown(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } - unsafe extern "system" fn OnDeviceStatusChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, ldeviceid: i32, bpoweredoff: super::super::Foundation::VARIANT_BOOL, bsending: super::super::Foundation::VARIANT_BOOL, breceiving: super::super::Foundation::VARIANT_BOOL, bringing: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnDeviceStatusChange(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void, ldeviceid: i32, bpoweredoff: super::super::Foundation::VARIANT_BOOL, bsending: super::super::Foundation::VARIANT_BOOL, breceiving: super::super::Foundation::VARIANT_BOOL, bringing: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnDeviceStatusChange(this, windows_core::from_raw_borrowed(&pfaxserver), core::mem::transmute_copy(&ldeviceid), core::mem::transmute_copy(&bpoweredoff), core::mem::transmute_copy(&bsending), core::mem::transmute_copy(&breceiving), core::mem::transmute_copy(&bringing)).into() } - unsafe extern "system" fn OnGeneralServerConfigChanged(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFaxServerNotify2_Impl, - { + unsafe extern "system" fn OnGeneralServerConfigChanged(this: *mut core::ffi::c_void, pfaxserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFaxServerNotify2_Impl::OnGeneralServerConfigChanged(this, windows_core::from_raw_borrowed(&pfaxserver)).into() } @@ -8697,7 +6732,7 @@ impl IFaxServerNotify2_Vtbl { } } #[cfg(feature = "Win32_System_IO")] -pub trait IStiDevice_Impl: Sized { +pub trait IStiDevice_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hinst: super::super::Foundation::HINSTANCE, pwszdevicename: &windows_core::PCWSTR, dwversion: u32, dwmode: u32) -> windows_core::Result<()>; fn GetCapabilities(&self, pdevcaps: *mut STI_DEV_CAPS) -> windows_core::Result<()>; fn GetStatus(&self, pdevstatus: *mut STI_DEVICE_STATUS) -> windows_core::Result<()>; @@ -8720,56 +6755,32 @@ pub trait IStiDevice_Impl: Sized { impl windows_core::RuntimeName for IStiDevice {} #[cfg(feature = "Win32_System_IO")] impl IStiDevice_Vtbl { - pub const fn new() -> IStiDevice_Vtbl - where - Identity: IStiDevice_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hinst: super::super::Foundation::HINSTANCE, pwszdevicename: windows_core::PCWSTR, dwversion: u32, dwmode: u32) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + pub const fn new() -> IStiDevice_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hinst: super::super::Foundation::HINSTANCE, pwszdevicename: windows_core::PCWSTR, dwversion: u32, dwmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::Initialize(this, core::mem::transmute_copy(&hinst), core::mem::transmute(&pwszdevicename), core::mem::transmute_copy(&dwversion), core::mem::transmute_copy(&dwmode)).into() } - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdevcaps: *mut STI_DEV_CAPS) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdevcaps: *mut STI_DEV_CAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::GetCapabilities(this, core::mem::transmute_copy(&pdevcaps)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdevstatus: *mut STI_DEVICE_STATUS) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdevstatus: *mut STI_DEVICE_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::GetStatus(this, core::mem::transmute_copy(&pdevstatus)).into() } - unsafe extern "system" fn DeviceReset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn DeviceReset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::DeviceReset(this).into() } - unsafe extern "system" fn Diagnostic(this: *mut core::ffi::c_void, pbuffer: *mut STI_DIAG) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn Diagnostic(this: *mut core::ffi::c_void, pbuffer: *mut STI_DIAG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::Diagnostic(this, core::mem::transmute_copy(&pbuffer)).into() } - unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, escapefunction: u32, lpindata: *const core::ffi::c_void, cbindatasize: u32, poutdata: *mut core::ffi::c_void, dwoutdatasize: u32, pdwactualdata: *mut u32) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, escapefunction: u32, lpindata: *const core::ffi::c_void, cbindatasize: u32, poutdata: *mut core::ffi::c_void, dwoutdatasize: u32, pdwactualdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::Escape(this, core::mem::transmute_copy(&escapefunction), core::mem::transmute_copy(&lpindata), core::mem::transmute_copy(&cbindatasize), core::mem::transmute_copy(&poutdata), core::mem::transmute_copy(&dwoutdatasize), core::mem::transmute_copy(&pdwactualdata)).into() } - unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, pdwlastdeviceerror: *mut u32) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, pdwlastdeviceerror: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStiDevice_Impl::GetLastError(this) { Ok(ok__) => { @@ -8779,73 +6790,43 @@ impl IStiDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void, dwtimeout: u32) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void, dwtimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::LockDevice(this, core::mem::transmute_copy(&dwtimeout)).into() } - unsafe extern "system" fn UnLockDevice(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn UnLockDevice(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::UnLockDevice(this).into() } - unsafe extern "system" fn RawReadData(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn RawReadData(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::RawReadData(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&lpdwnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn RawWriteData(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn RawWriteData(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::RawWriteData(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&nnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn RawReadCommand(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn RawReadCommand(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::RawReadCommand(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&lpdwnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn RawWriteCommand(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn RawWriteCommand(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::RawWriteCommand(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&nnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn Subscribe(this: *mut core::ffi::c_void, lpsubsribe: *mut STISUBSCRIBE) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn Subscribe(this: *mut core::ffi::c_void, lpsubsribe: *mut STISUBSCRIBE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::Subscribe(this, core::mem::transmute_copy(&lpsubsribe)).into() } - unsafe extern "system" fn GetLastNotificationData(this: *mut core::ffi::c_void, lpnotify: *mut STINOTIFY) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn GetLastNotificationData(this: *mut core::ffi::c_void, lpnotify: *mut STINOTIFY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::GetLastNotificationData(this, core::mem::transmute_copy(&lpnotify)).into() } - unsafe extern "system" fn UnSubscribe(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn UnSubscribe(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::UnSubscribe(this).into() } - unsafe extern "system" fn GetLastErrorInfo(this: *mut core::ffi::c_void, plasterrorinfo: *mut _ERROR_INFOW) -> windows_core::HRESULT - where - Identity: IStiDevice_Impl, - { + unsafe extern "system" fn GetLastErrorInfo(this: *mut core::ffi::c_void, plasterrorinfo: *mut _ERROR_INFOW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDevice_Impl::GetLastErrorInfo(this, core::mem::transmute_copy(&plasterrorinfo)).into() } @@ -8875,7 +6856,7 @@ impl IStiDevice_Vtbl { } } #[cfg(feature = "Win32_System_IO")] -pub trait IStiDeviceControl_Impl: Sized { +pub trait IStiDeviceControl_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, dwdevicetype: u32, dwmode: u32, pwszportname: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; fn RawReadData(&self, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()>; fn RawWriteData(&self, lpbuffer: *mut core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()>; @@ -8892,84 +6873,48 @@ pub trait IStiDeviceControl_Impl: Sized { impl windows_core::RuntimeName for IStiDeviceControl {} #[cfg(feature = "Win32_System_IO")] impl IStiDeviceControl_Vtbl { - pub const fn new() -> IStiDeviceControl_Vtbl - where - Identity: IStiDeviceControl_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, dwdevicetype: u32, dwmode: u32, pwszportname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + pub const fn new() -> IStiDeviceControl_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, dwdevicetype: u32, dwmode: u32, pwszportname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::Initialize(this, core::mem::transmute_copy(&dwdevicetype), core::mem::transmute_copy(&dwmode), core::mem::transmute(&pwszportname), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RawReadData(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + unsafe extern "system" fn RawReadData(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::RawReadData(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&lpdwnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn RawWriteData(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + unsafe extern "system" fn RawWriteData(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::RawWriteData(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&nnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn RawReadCommand(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + unsafe extern "system" fn RawReadCommand(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::RawReadCommand(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&lpdwnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn RawWriteCommand(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + unsafe extern "system" fn RawWriteCommand(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::RawWriteCommand(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&nnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn RawDeviceControl(this: *mut core::ffi::c_void, escapefunction: u32, lpindata: *mut core::ffi::c_void, cbindatasize: u32, poutdata: *mut core::ffi::c_void, dwoutdatasize: u32, pdwactualdata: *mut u32) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + unsafe extern "system" fn RawDeviceControl(this: *mut core::ffi::c_void, escapefunction: u32, lpindata: *mut core::ffi::c_void, cbindatasize: u32, poutdata: *mut core::ffi::c_void, dwoutdatasize: u32, pdwactualdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::RawDeviceControl(this, core::mem::transmute_copy(&escapefunction), core::mem::transmute_copy(&lpindata), core::mem::transmute_copy(&cbindatasize), core::mem::transmute_copy(&poutdata), core::mem::transmute_copy(&dwoutdatasize), core::mem::transmute_copy(&pdwactualdata)).into() } - unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, lpdwlasterror: *mut u32) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, lpdwlasterror: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::GetLastError(this, core::mem::transmute_copy(&lpdwlasterror)).into() } - unsafe extern "system" fn GetMyDevicePortName(this: *mut core::ffi::c_void, lpszdevicepath: windows_core::PWSTR, cwdevicepathsize: u32) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + unsafe extern "system" fn GetMyDevicePortName(this: *mut core::ffi::c_void, lpszdevicepath: windows_core::PWSTR, cwdevicepathsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::GetMyDevicePortName(this, core::mem::transmute_copy(&lpszdevicepath), core::mem::transmute_copy(&cwdevicepathsize)).into() } - unsafe extern "system" fn GetMyDeviceHandle(this: *mut core::ffi::c_void, lph: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + unsafe extern "system" fn GetMyDeviceHandle(this: *mut core::ffi::c_void, lph: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::GetMyDeviceHandle(this, core::mem::transmute_copy(&lph)).into() } - unsafe extern "system" fn GetMyDeviceOpenMode(this: *mut core::ffi::c_void, pdwopenmode: *mut u32) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + unsafe extern "system" fn GetMyDeviceOpenMode(this: *mut core::ffi::c_void, pdwopenmode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::GetMyDeviceOpenMode(this, core::mem::transmute_copy(&pdwopenmode)).into() } - unsafe extern "system" fn WriteToErrorLog(this: *mut core::ffi::c_void, dwmessagetype: u32, pszmessage: windows_core::PCWSTR, dwerrorcode: u32) -> windows_core::HRESULT - where - Identity: IStiDeviceControl_Impl, - { + unsafe extern "system" fn WriteToErrorLog(this: *mut core::ffi::c_void, dwmessagetype: u32, pszmessage: windows_core::PCWSTR, dwerrorcode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiDeviceControl_Impl::WriteToErrorLog(this, core::mem::transmute_copy(&dwmessagetype), core::mem::transmute(&pszmessage), core::mem::transmute_copy(&dwerrorcode)).into() } @@ -8993,7 +6938,7 @@ impl IStiDeviceControl_Vtbl { } } #[cfg(all(feature = "Win32_System_IO", feature = "Win32_System_Registry"))] -pub trait IStiUSD_Impl: Sized { +pub trait IStiUSD_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pheldcb: Option<&IStiDeviceControl>, dwstiversion: u32, hparameterskey: super::super::System::Registry::HKEY) -> windows_core::Result<()>; fn GetCapabilities(&self) -> windows_core::Result; fn GetStatus(&self, pdevstatus: *mut STI_DEVICE_STATUS) -> windows_core::Result<()>; @@ -9015,21 +6960,12 @@ pub trait IStiUSD_Impl: Sized { impl windows_core::RuntimeName for IStiUSD {} #[cfg(all(feature = "Win32_System_IO", feature = "Win32_System_Registry"))] impl IStiUSD_Vtbl { - pub const fn new() -> IStiUSD_Vtbl - where - Identity: IStiUSD_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pheldcb: *mut core::ffi::c_void, dwstiversion: u32, hparameterskey: super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + pub const fn new() -> IStiUSD_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pheldcb: *mut core::ffi::c_void, dwstiversion: u32, hparameterskey: super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::Initialize(this, windows_core::from_raw_borrowed(&pheldcb), core::mem::transmute_copy(&dwstiversion), core::mem::transmute_copy(&hparameterskey)).into() } - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdevcaps: *mut STI_USD_CAPS) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdevcaps: *mut STI_USD_CAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStiUSD_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -9039,38 +6975,23 @@ impl IStiUSD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdevstatus: *mut STI_DEVICE_STATUS) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdevstatus: *mut STI_DEVICE_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::GetStatus(this, core::mem::transmute_copy(&pdevstatus)).into() } - unsafe extern "system" fn DeviceReset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn DeviceReset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::DeviceReset(this).into() } - unsafe extern "system" fn Diagnostic(this: *mut core::ffi::c_void, pbuffer: *mut STI_DIAG) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn Diagnostic(this: *mut core::ffi::c_void, pbuffer: *mut STI_DIAG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::Diagnostic(this, core::mem::transmute_copy(&pbuffer)).into() } - unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, escapefunction: u32, lpindata: *const core::ffi::c_void, cbindatasize: u32, poutdata: *mut core::ffi::c_void, cboutdatasize: u32, pdwactualdata: *mut u32) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, escapefunction: u32, lpindata: *const core::ffi::c_void, cbindatasize: u32, poutdata: *mut core::ffi::c_void, cboutdatasize: u32, pdwactualdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::Escape(this, core::mem::transmute_copy(&escapefunction), core::mem::transmute_copy(&lpindata), core::mem::transmute_copy(&cbindatasize), core::mem::transmute_copy(&poutdata), core::mem::transmute_copy(&cboutdatasize), core::mem::transmute_copy(&pdwactualdata)).into() } - unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, pdwlastdeviceerror: *mut u32) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, pdwlastdeviceerror: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStiUSD_Impl::GetLastError(this) { Ok(ok__) => { @@ -9080,66 +7001,39 @@ impl IStiUSD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::LockDevice(this).into() } - unsafe extern "system" fn UnLockDevice(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn UnLockDevice(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::UnLockDevice(this).into() } - unsafe extern "system" fn RawReadData(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn RawReadData(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::RawReadData(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&lpdwnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn RawWriteData(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn RawWriteData(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::RawWriteData(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&nnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn RawReadCommand(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn RawReadCommand(this: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, lpdwnumberofbytes: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::RawReadCommand(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&lpdwnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn RawWriteCommand(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn RawWriteCommand(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nnumberofbytes: u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::RawWriteCommand(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&nnumberofbytes), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn SetNotificationHandle(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn SetNotificationHandle(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::SetNotificationHandle(this, core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn GetNotificationData(this: *mut core::ffi::c_void, lpnotify: *mut STINOTIFY) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn GetNotificationData(this: *mut core::ffi::c_void, lpnotify: *mut STINOTIFY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::GetNotificationData(this, core::mem::transmute_copy(&lpnotify)).into() } - unsafe extern "system" fn GetLastErrorInfo(this: *mut core::ffi::c_void, plasterrorinfo: *mut _ERROR_INFOW) -> windows_core::HRESULT - where - Identity: IStiUSD_Impl, - { + unsafe extern "system" fn GetLastErrorInfo(this: *mut core::ffi::c_void, plasterrorinfo: *mut _ERROR_INFOW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStiUSD_Impl::GetLastErrorInfo(this, core::mem::transmute_copy(&plasterrorinfo)).into() } @@ -9167,7 +7061,7 @@ impl IStiUSD_Vtbl { iid == &::IID } } -pub trait IStillImageW_Impl: Sized { +pub trait IStillImageW_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hinst: super::super::Foundation::HINSTANCE, dwversion: u32) -> windows_core::Result<()>; fn GetDeviceList(&self, dwtype: u32, dwflags: u32, pdwitemsreturned: *mut u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetDeviceInfo(&self, pwszdevicename: &windows_core::PCWSTR, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -9186,84 +7080,48 @@ pub trait IStillImageW_Impl: Sized { } impl windows_core::RuntimeName for IStillImageW {} impl IStillImageW_Vtbl { - pub const fn new() -> IStillImageW_Vtbl - where - Identity: IStillImageW_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hinst: super::super::Foundation::HINSTANCE, dwversion: u32) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + pub const fn new() -> IStillImageW_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hinst: super::super::Foundation::HINSTANCE, dwversion: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::Initialize(this, core::mem::transmute_copy(&hinst), core::mem::transmute_copy(&dwversion)).into() } - unsafe extern "system" fn GetDeviceList(this: *mut core::ffi::c_void, dwtype: u32, dwflags: u32, pdwitemsreturned: *mut u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn GetDeviceList(this: *mut core::ffi::c_void, dwtype: u32, dwflags: u32, pdwitemsreturned: *mut u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::GetDeviceList(this, core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pdwitemsreturned), core::mem::transmute_copy(&ppbuffer)).into() } - unsafe extern "system" fn GetDeviceInfo(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn GetDeviceInfo(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::GetDeviceInfo(this, core::mem::transmute(&pwszdevicename), core::mem::transmute_copy(&ppbuffer)).into() } - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, dwmode: u32, pdevice: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, dwmode: u32, pdevice: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::CreateDevice(this, core::mem::transmute(&pwszdevicename), core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&pdevice), windows_core::from_raw_borrowed(&punkouter)).into() } - unsafe extern "system" fn GetDeviceValue(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, ptype: *mut u32, pdata: *mut u8, cbdata: *mut u32) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn GetDeviceValue(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, ptype: *mut u32, pdata: *mut u8, cbdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::GetDeviceValue(this, core::mem::transmute(&pwszdevicename), core::mem::transmute(&pvaluename), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn SetDeviceValue(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, r#type: u32, pdata: *const u8, cbdata: u32) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn SetDeviceValue(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, r#type: u32, pdata: *const u8, cbdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::SetDeviceValue(this, core::mem::transmute(&pwszdevicename), core::mem::transmute(&pvaluename), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn GetSTILaunchInformation(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PWSTR, pdweventcode: *mut u32, pwszeventname: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn GetSTILaunchInformation(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PWSTR, pdweventcode: *mut u32, pwszeventname: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::GetSTILaunchInformation(this, core::mem::transmute_copy(&pwszdevicename), core::mem::transmute_copy(&pdweventcode), core::mem::transmute_copy(&pwszeventname)).into() } - unsafe extern "system" fn RegisterLaunchApplication(this: *mut core::ffi::c_void, pwszappname: windows_core::PCWSTR, pwszcommandline: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn RegisterLaunchApplication(this: *mut core::ffi::c_void, pwszappname: windows_core::PCWSTR, pwszcommandline: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::RegisterLaunchApplication(this, core::mem::transmute(&pwszappname), core::mem::transmute(&pwszcommandline)).into() } - unsafe extern "system" fn UnregisterLaunchApplication(this: *mut core::ffi::c_void, pwszappname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn UnregisterLaunchApplication(this: *mut core::ffi::c_void, pwszappname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::UnregisterLaunchApplication(this, core::mem::transmute(&pwszappname)).into() } - unsafe extern "system" fn EnableHwNotifications(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, bnewstate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn EnableHwNotifications(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, bnewstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::EnableHwNotifications(this, core::mem::transmute(&pwszdevicename), core::mem::transmute_copy(&bnewstate)).into() } - unsafe extern "system" fn GetHwNotificationState(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, pbcurrentstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn GetHwNotificationState(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, pbcurrentstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStillImageW_Impl::GetHwNotificationState(this, core::mem::transmute(&pwszdevicename)) { Ok(ok__) => { @@ -9273,31 +7131,19 @@ impl IStillImageW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RefreshDeviceBus(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn RefreshDeviceBus(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::RefreshDeviceBus(this, core::mem::transmute(&pwszdevicename)).into() } - unsafe extern "system" fn LaunchApplicationForDevice(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, pwszappname: windows_core::PCWSTR, pstinotify: *const STINOTIFY) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn LaunchApplicationForDevice(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, pwszappname: windows_core::PCWSTR, pstinotify: *const STINOTIFY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::LaunchApplicationForDevice(this, core::mem::transmute(&pwszdevicename), core::mem::transmute(&pwszappname), core::mem::transmute_copy(&pstinotify)).into() } - unsafe extern "system" fn SetupDeviceParameters(this: *mut core::ffi::c_void, param0: *mut STI_DEVICE_INFORMATIONW) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn SetupDeviceParameters(this: *mut core::ffi::c_void, param0: *mut STI_DEVICE_INFORMATIONW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::SetupDeviceParameters(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn WriteToErrorLog(this: *mut core::ffi::c_void, dwmessagetype: u32, pszmessage: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStillImageW_Impl, - { + unsafe extern "system" fn WriteToErrorLog(this: *mut core::ffi::c_void, dwmessagetype: u32, pszmessage: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::WriteToErrorLog(this, core::mem::transmute_copy(&dwmessagetype), core::mem::transmute(&pszmessage)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs index 0cf99bf49d..50e3c2722d 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_System_Com")] -pub trait IFunctionDiscovery_Impl: Sized { +pub trait IFunctionDiscovery_Impl: Sized + windows_core::IUnknownImpl { fn GetInstanceCollection(&self, pszcategory: &windows_core::PCWSTR, pszsubcategory: &windows_core::PCWSTR, fincludeallsubcategories: super::super::Foundation::BOOL) -> windows_core::Result; fn GetInstance(&self, pszfunctioninstanceidentity: &windows_core::PCWSTR) -> windows_core::Result; fn CreateInstanceCollectionQuery(&self, pszcategory: &windows_core::PCWSTR, pszsubcategory: &windows_core::PCWSTR, fincludeallsubcategories: super::super::Foundation::BOOL, pifunctiondiscoverynotification: Option<&IFunctionDiscoveryNotification>, pfdqcquerycontext: *mut u64) -> windows_core::Result; @@ -11,14 +11,8 @@ pub trait IFunctionDiscovery_Impl: Sized { impl windows_core::RuntimeName for IFunctionDiscovery {} #[cfg(feature = "Win32_System_Com")] impl IFunctionDiscovery_Vtbl { - pub const fn new() -> IFunctionDiscovery_Vtbl - where - Identity: IFunctionDiscovery_Impl, - { - unsafe extern "system" fn GetInstanceCollection(this: *mut core::ffi::c_void, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, fincludeallsubcategories: super::super::Foundation::BOOL, ppifunctioninstancecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscovery_Impl, - { + pub const fn new() -> IFunctionDiscovery_Vtbl { + unsafe extern "system" fn GetInstanceCollection(this: *mut core::ffi::c_void, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, fincludeallsubcategories: super::super::Foundation::BOOL, ppifunctioninstancecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscovery_Impl::GetInstanceCollection(this, core::mem::transmute(&pszcategory), core::mem::transmute(&pszsubcategory), core::mem::transmute_copy(&fincludeallsubcategories)) { Ok(ok__) => { @@ -28,10 +22,7 @@ impl IFunctionDiscovery_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInstance(this: *mut core::ffi::c_void, pszfunctioninstanceidentity: windows_core::PCWSTR, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscovery_Impl, - { + unsafe extern "system" fn GetInstance(this: *mut core::ffi::c_void, pszfunctioninstanceidentity: windows_core::PCWSTR, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscovery_Impl::GetInstance(this, core::mem::transmute(&pszfunctioninstanceidentity)) { Ok(ok__) => { @@ -41,10 +32,7 @@ impl IFunctionDiscovery_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstanceCollectionQuery(this: *mut core::ffi::c_void, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, fincludeallsubcategories: super::super::Foundation::BOOL, pifunctiondiscoverynotification: *mut core::ffi::c_void, pfdqcquerycontext: *mut u64, ppifunctioninstancecollectionquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscovery_Impl, - { + unsafe extern "system" fn CreateInstanceCollectionQuery(this: *mut core::ffi::c_void, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, fincludeallsubcategories: super::super::Foundation::BOOL, pifunctiondiscoverynotification: *mut core::ffi::c_void, pfdqcquerycontext: *mut u64, ppifunctioninstancecollectionquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscovery_Impl::CreateInstanceCollectionQuery(this, core::mem::transmute(&pszcategory), core::mem::transmute(&pszsubcategory), core::mem::transmute_copy(&fincludeallsubcategories), windows_core::from_raw_borrowed(&pifunctiondiscoverynotification), core::mem::transmute_copy(&pfdqcquerycontext)) { Ok(ok__) => { @@ -54,10 +42,7 @@ impl IFunctionDiscovery_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstanceQuery(this: *mut core::ffi::c_void, pszfunctioninstanceidentity: windows_core::PCWSTR, pifunctiondiscoverynotification: *mut core::ffi::c_void, pfdqcquerycontext: *mut u64, ppifunctioninstancequery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscovery_Impl, - { + unsafe extern "system" fn CreateInstanceQuery(this: *mut core::ffi::c_void, pszfunctioninstanceidentity: windows_core::PCWSTR, pifunctiondiscoverynotification: *mut core::ffi::c_void, pfdqcquerycontext: *mut u64, ppifunctioninstancequery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscovery_Impl::CreateInstanceQuery(this, core::mem::transmute(&pszfunctioninstanceidentity), windows_core::from_raw_borrowed(&pifunctiondiscoverynotification), core::mem::transmute_copy(&pfdqcquerycontext)) { Ok(ok__) => { @@ -67,10 +52,7 @@ impl IFunctionDiscovery_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddInstance(this: *mut core::ffi::c_void, enumsystemvisibility: SystemVisibilityFlags, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, pszcategoryidentity: windows_core::PCWSTR, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscovery_Impl, - { + unsafe extern "system" fn AddInstance(this: *mut core::ffi::c_void, enumsystemvisibility: SystemVisibilityFlags, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, pszcategoryidentity: windows_core::PCWSTR, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscovery_Impl::AddInstance(this, core::mem::transmute_copy(&enumsystemvisibility), core::mem::transmute(&pszcategory), core::mem::transmute(&pszsubcategory), core::mem::transmute(&pszcategoryidentity)) { Ok(ok__) => { @@ -80,10 +62,7 @@ impl IFunctionDiscovery_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveInstance(this: *mut core::ffi::c_void, enumsystemvisibility: SystemVisibilityFlags, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, pszcategoryidentity: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFunctionDiscovery_Impl, - { + unsafe extern "system" fn RemoveInstance(this: *mut core::ffi::c_void, enumsystemvisibility: SystemVisibilityFlags, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, pszcategoryidentity: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscovery_Impl::RemoveInstance(this, core::mem::transmute_copy(&enumsystemvisibility), core::mem::transmute(&pszcategory), core::mem::transmute(&pszsubcategory), core::mem::transmute(&pszcategoryidentity)).into() } @@ -102,7 +81,7 @@ impl IFunctionDiscovery_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IFunctionDiscoveryNotification_Impl: Sized { +pub trait IFunctionDiscoveryNotification_Impl: Sized + windows_core::IUnknownImpl { fn OnUpdate(&self, enumqueryupdateaction: QueryUpdateAction, fdqcquerycontext: u64, pifunctioninstance: Option<&IFunctionInstance>) -> windows_core::Result<()>; fn OnError(&self, hr: windows_core::HRESULT, fdqcquerycontext: u64, pszprovider: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OnEvent(&self, dweventid: u32, fdqcquerycontext: u64, pszprovider: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -111,28 +90,16 @@ pub trait IFunctionDiscoveryNotification_Impl: Sized { impl windows_core::RuntimeName for IFunctionDiscoveryNotification {} #[cfg(feature = "Win32_System_Com")] impl IFunctionDiscoveryNotification_Vtbl { - pub const fn new() -> IFunctionDiscoveryNotification_Vtbl - where - Identity: IFunctionDiscoveryNotification_Impl, - { - unsafe extern "system" fn OnUpdate(this: *mut core::ffi::c_void, enumqueryupdateaction: QueryUpdateAction, fdqcquerycontext: u64, pifunctioninstance: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryNotification_Impl, - { + pub const fn new() -> IFunctionDiscoveryNotification_Vtbl { + unsafe extern "system" fn OnUpdate(this: *mut core::ffi::c_void, enumqueryupdateaction: QueryUpdateAction, fdqcquerycontext: u64, pifunctioninstance: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryNotification_Impl::OnUpdate(this, core::mem::transmute_copy(&enumqueryupdateaction), core::mem::transmute_copy(&fdqcquerycontext), windows_core::from_raw_borrowed(&pifunctioninstance)).into() } - unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, fdqcquerycontext: u64, pszprovider: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryNotification_Impl, - { + unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, fdqcquerycontext: u64, pszprovider: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryNotification_Impl::OnError(this, core::mem::transmute_copy(&hr), core::mem::transmute_copy(&fdqcquerycontext), core::mem::transmute(&pszprovider)).into() } - unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, dweventid: u32, fdqcquerycontext: u64, pszprovider: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryNotification_Impl, - { + unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, dweventid: u32, fdqcquerycontext: u64, pszprovider: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryNotification_Impl::OnEvent(this, core::mem::transmute_copy(&dweventid), core::mem::transmute_copy(&fdqcquerycontext), core::mem::transmute(&pszprovider)).into() } @@ -148,7 +115,7 @@ impl IFunctionDiscoveryNotification_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IFunctionDiscoveryProvider_Impl: Sized { +pub trait IFunctionDiscoveryProvider_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pifunctiondiscoveryproviderfactory: Option<&IFunctionDiscoveryProviderFactory>, pifunctiondiscoverynotification: Option<&IFunctionDiscoveryNotification>, lciduserdefault: u32) -> windows_core::Result; fn Query(&self, pifunctiondiscoveryproviderquery: Option<&IFunctionDiscoveryProviderQuery>) -> windows_core::Result; fn EndQuery(&self) -> windows_core::Result<()>; @@ -162,14 +129,8 @@ pub trait IFunctionDiscoveryProvider_Impl: Sized { impl windows_core::RuntimeName for IFunctionDiscoveryProvider {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IFunctionDiscoveryProvider_Vtbl { - pub const fn new() -> IFunctionDiscoveryProvider_Vtbl - where - Identity: IFunctionDiscoveryProvider_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pifunctiondiscoveryproviderfactory: *mut core::ffi::c_void, pifunctiondiscoverynotification: *mut core::ffi::c_void, lciduserdefault: u32, pdwstgaccesscapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProvider_Impl, - { + pub const fn new() -> IFunctionDiscoveryProvider_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pifunctiondiscoveryproviderfactory: *mut core::ffi::c_void, pifunctiondiscoverynotification: *mut core::ffi::c_void, lciduserdefault: u32, pdwstgaccesscapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscoveryProvider_Impl::Initialize(this, windows_core::from_raw_borrowed(&pifunctiondiscoveryproviderfactory), windows_core::from_raw_borrowed(&pifunctiondiscoverynotification), core::mem::transmute_copy(&lciduserdefault)) { Ok(ok__) => { @@ -179,10 +140,7 @@ impl IFunctionDiscoveryProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, pifunctiondiscoveryproviderquery: *mut core::ffi::c_void, ppifunctioninstancecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProvider_Impl, - { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, pifunctiondiscoveryproviderquery: *mut core::ffi::c_void, ppifunctioninstancecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscoveryProvider_Impl::Query(this, windows_core::from_raw_borrowed(&pifunctiondiscoveryproviderquery)) { Ok(ok__) => { @@ -192,24 +150,15 @@ impl IFunctionDiscoveryProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndQuery(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProvider_Impl, - { + unsafe extern "system" fn EndQuery(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryProvider_Impl::EndQuery(this).into() } - unsafe extern "system" fn InstancePropertyStoreValidateAccess(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, dwstgaccess: u32) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProvider_Impl, - { + unsafe extern "system" fn InstancePropertyStoreValidateAccess(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, dwstgaccess: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryProvider_Impl::InstancePropertyStoreValidateAccess(this, windows_core::from_raw_borrowed(&pifunctioninstance), core::mem::transmute_copy(&iproviderinstancecontext), core::mem::transmute_copy(&dwstgaccess)).into() } - unsafe extern "system" fn InstancePropertyStoreOpen(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, dwstgaccess: u32, ppipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProvider_Impl, - { + unsafe extern "system" fn InstancePropertyStoreOpen(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, dwstgaccess: u32, ppipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscoveryProvider_Impl::InstancePropertyStoreOpen(this, windows_core::from_raw_borrowed(&pifunctioninstance), core::mem::transmute_copy(&iproviderinstancecontext), core::mem::transmute_copy(&dwstgaccess)) { Ok(ok__) => { @@ -219,17 +168,11 @@ impl IFunctionDiscoveryProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstancePropertyStoreFlush(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProvider_Impl, - { + unsafe extern "system" fn InstancePropertyStoreFlush(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryProvider_Impl::InstancePropertyStoreFlush(this, windows_core::from_raw_borrowed(&pifunctioninstance), core::mem::transmute_copy(&iproviderinstancecontext)).into() } - unsafe extern "system" fn InstanceQueryService(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProvider_Impl, - { + unsafe extern "system" fn InstanceQueryService(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscoveryProvider_Impl::InstanceQueryService(this, windows_core::from_raw_borrowed(&pifunctioninstance), core::mem::transmute_copy(&iproviderinstancecontext), core::mem::transmute_copy(&guidservice), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -239,10 +182,7 @@ impl IFunctionDiscoveryProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstanceReleased(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProvider_Impl, - { + unsafe extern "system" fn InstanceReleased(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryProvider_Impl::InstanceReleased(this, windows_core::from_raw_borrowed(&pifunctioninstance), core::mem::transmute_copy(&iproviderinstancecontext)).into() } @@ -263,7 +203,7 @@ impl IFunctionDiscoveryProvider_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IFunctionDiscoveryProviderFactory_Impl: Sized { +pub trait IFunctionDiscoveryProviderFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreatePropertyStore(&self) -> windows_core::Result; fn CreateInstance(&self, pszsubcategory: &windows_core::PCWSTR, pszproviderinstanceidentity: &windows_core::PCWSTR, iproviderinstancecontext: isize, pipropertystore: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>, pifunctiondiscoveryprovider: Option<&IFunctionDiscoveryProvider>) -> windows_core::Result; fn CreateFunctionInstanceCollection(&self) -> windows_core::Result; @@ -272,14 +212,8 @@ pub trait IFunctionDiscoveryProviderFactory_Impl: Sized { impl windows_core::RuntimeName for IFunctionDiscoveryProviderFactory {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IFunctionDiscoveryProviderFactory_Vtbl { - pub const fn new() -> IFunctionDiscoveryProviderFactory_Vtbl - where - Identity: IFunctionDiscoveryProviderFactory_Impl, - { - unsafe extern "system" fn CreatePropertyStore(this: *mut core::ffi::c_void, ppipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProviderFactory_Impl, - { + pub const fn new() -> IFunctionDiscoveryProviderFactory_Vtbl { + unsafe extern "system" fn CreatePropertyStore(this: *mut core::ffi::c_void, ppipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscoveryProviderFactory_Impl::CreatePropertyStore(this) { Ok(ok__) => { @@ -289,10 +223,7 @@ impl IFunctionDiscoveryProviderFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR, pszproviderinstanceidentity: windows_core::PCWSTR, iproviderinstancecontext: isize, pipropertystore: *mut core::ffi::c_void, pifunctiondiscoveryprovider: *mut core::ffi::c_void, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProviderFactory_Impl, - { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR, pszproviderinstanceidentity: windows_core::PCWSTR, iproviderinstancecontext: isize, pipropertystore: *mut core::ffi::c_void, pifunctiondiscoveryprovider: *mut core::ffi::c_void, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscoveryProviderFactory_Impl::CreateInstance(this, core::mem::transmute(&pszsubcategory), core::mem::transmute(&pszproviderinstanceidentity), core::mem::transmute_copy(&iproviderinstancecontext), windows_core::from_raw_borrowed(&pipropertystore), windows_core::from_raw_borrowed(&pifunctiondiscoveryprovider)) { Ok(ok__) => { @@ -302,10 +233,7 @@ impl IFunctionDiscoveryProviderFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFunctionInstanceCollection(this: *mut core::ffi::c_void, ppifunctioninstancecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProviderFactory_Impl, - { + unsafe extern "system" fn CreateFunctionInstanceCollection(this: *mut core::ffi::c_void, ppifunctioninstancecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscoveryProviderFactory_Impl::CreateFunctionInstanceCollection(this) { Ok(ok__) => { @@ -326,7 +254,7 @@ impl IFunctionDiscoveryProviderFactory_Vtbl { iid == &::IID } } -pub trait IFunctionDiscoveryProviderQuery_Impl: Sized { +pub trait IFunctionDiscoveryProviderQuery_Impl: Sized + windows_core::IUnknownImpl { fn IsInstanceQuery(&self, pisinstancequery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()>; fn IsSubcategoryQuery(&self, pissubcategoryquery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()>; fn GetQueryConstraints(&self) -> windows_core::Result; @@ -334,28 +262,16 @@ pub trait IFunctionDiscoveryProviderQuery_Impl: Sized { } impl windows_core::RuntimeName for IFunctionDiscoveryProviderQuery {} impl IFunctionDiscoveryProviderQuery_Vtbl { - pub const fn new() -> IFunctionDiscoveryProviderQuery_Vtbl - where - Identity: IFunctionDiscoveryProviderQuery_Impl, - { - unsafe extern "system" fn IsInstanceQuery(this: *mut core::ffi::c_void, pisinstancequery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProviderQuery_Impl, - { + pub const fn new() -> IFunctionDiscoveryProviderQuery_Vtbl { + unsafe extern "system" fn IsInstanceQuery(this: *mut core::ffi::c_void, pisinstancequery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryProviderQuery_Impl::IsInstanceQuery(this, core::mem::transmute_copy(&pisinstancequery), core::mem::transmute_copy(&ppszconstraintvalue)).into() } - unsafe extern "system" fn IsSubcategoryQuery(this: *mut core::ffi::c_void, pissubcategoryquery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProviderQuery_Impl, - { + unsafe extern "system" fn IsSubcategoryQuery(this: *mut core::ffi::c_void, pissubcategoryquery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryProviderQuery_Impl::IsSubcategoryQuery(this, core::mem::transmute_copy(&pissubcategoryquery), core::mem::transmute_copy(&ppszconstraintvalue)).into() } - unsafe extern "system" fn GetQueryConstraints(this: *mut core::ffi::c_void, ppiproviderqueryconstraints: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProviderQuery_Impl, - { + unsafe extern "system" fn GetQueryConstraints(this: *mut core::ffi::c_void, ppiproviderqueryconstraints: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscoveryProviderQuery_Impl::GetQueryConstraints(this) { Ok(ok__) => { @@ -365,10 +281,7 @@ impl IFunctionDiscoveryProviderQuery_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyConstraints(this: *mut core::ffi::c_void, ppiproviderpropertyconstraints: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryProviderQuery_Impl, - { + unsafe extern "system" fn GetPropertyConstraints(this: *mut core::ffi::c_void, ppiproviderpropertyconstraints: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscoveryProviderQuery_Impl::GetPropertyConstraints(this) { Ok(ok__) => { @@ -391,21 +304,15 @@ impl IFunctionDiscoveryProviderQuery_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IFunctionDiscoveryServiceProvider_Impl: Sized { +pub trait IFunctionDiscoveryServiceProvider_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pifunctioninstance: Option<&IFunctionInstance>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IFunctionDiscoveryServiceProvider {} #[cfg(feature = "Win32_System_Com")] impl IFunctionDiscoveryServiceProvider_Vtbl { - pub const fn new() -> IFunctionDiscoveryServiceProvider_Vtbl - where - Identity: IFunctionDiscoveryServiceProvider_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionDiscoveryServiceProvider_Impl, - { + pub const fn new() -> IFunctionDiscoveryServiceProvider_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryServiceProvider_Impl::Initialize(this, windows_core::from_raw_borrowed(&pifunctioninstance), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -426,14 +333,8 @@ pub trait IFunctionInstance_Impl: Sized + super::super::System::Com::IServicePro impl windows_core::RuntimeName for IFunctionInstance {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IFunctionInstance_Vtbl { - pub const fn new() -> IFunctionInstance_Vtbl - where - Identity: IFunctionInstance_Impl, - { - unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, ppszcomemidentity: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IFunctionInstance_Impl, - { + pub const fn new() -> IFunctionInstance_Vtbl { + unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, ppszcomemidentity: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionInstance_Impl::GetID(this) { Ok(ok__) => { @@ -443,10 +344,7 @@ impl IFunctionInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderInstanceID(this: *mut core::ffi::c_void, ppszcomemproviderinstanceidentity: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IFunctionInstance_Impl, - { + unsafe extern "system" fn GetProviderInstanceID(this: *mut core::ffi::c_void, ppszcomemproviderinstanceidentity: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionInstance_Impl::GetProviderInstanceID(this) { Ok(ok__) => { @@ -456,10 +354,7 @@ impl IFunctionInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenPropertyStore(this: *mut core::ffi::c_void, dwstgaccess: super::super::System::Com::STGM, ppipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionInstance_Impl, - { + unsafe extern "system" fn OpenPropertyStore(this: *mut core::ffi::c_void, dwstgaccess: super::super::System::Com::STGM, ppipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionInstance_Impl::OpenPropertyStore(this, core::mem::transmute_copy(&dwstgaccess)) { Ok(ok__) => { @@ -469,10 +364,7 @@ impl IFunctionInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, ppszcomemcategory: *mut *mut u16, ppszcomemsubcategory: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IFunctionInstance_Impl, - { + unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, ppszcomemcategory: *mut *mut u16, ppszcomemsubcategory: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionInstance_Impl::GetCategory(this, core::mem::transmute_copy(&ppszcomemcategory), core::mem::transmute_copy(&ppszcomemsubcategory)).into() } @@ -489,7 +381,7 @@ impl IFunctionInstance_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IFunctionInstanceCollection_Impl: Sized { +pub trait IFunctionInstanceCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn Get(&self, pszinstanceidentity: &windows_core::PCWSTR, pdwindex: *mut u32) -> windows_core::Result; fn Item(&self, dwindex: u32) -> windows_core::Result; @@ -502,14 +394,8 @@ pub trait IFunctionInstanceCollection_Impl: Sized { impl windows_core::RuntimeName for IFunctionInstanceCollection {} #[cfg(feature = "Win32_System_Com")] impl IFunctionInstanceCollection_Vtbl { - pub const fn new() -> IFunctionInstanceCollection_Vtbl - where - Identity: IFunctionInstanceCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IFunctionInstanceCollection_Impl, - { + pub const fn new() -> IFunctionInstanceCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionInstanceCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -519,10 +405,7 @@ impl IFunctionInstanceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, pszinstanceidentity: windows_core::PCWSTR, pdwindex: *mut u32, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionInstanceCollection_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, pszinstanceidentity: windows_core::PCWSTR, pdwindex: *mut u32, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionInstanceCollection_Impl::Get(this, core::mem::transmute(&pszinstanceidentity), core::mem::transmute_copy(&pdwindex)) { Ok(ok__) => { @@ -532,10 +415,7 @@ impl IFunctionInstanceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, dwindex: u32, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionInstanceCollection_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, dwindex: u32, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionInstanceCollection_Impl::Item(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -545,17 +425,11 @@ impl IFunctionInstanceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionInstanceCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionInstanceCollection_Impl::Add(this, windows_core::from_raw_borrowed(&pifunctioninstance)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, dwindex: u32, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionInstanceCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, dwindex: u32, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionInstanceCollection_Impl::Remove(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -565,17 +439,11 @@ impl IFunctionInstanceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT - where - Identity: IFunctionInstanceCollection_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionInstanceCollection_Impl::Delete(this, core::mem::transmute_copy(&dwindex)).into() } - unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionInstanceCollection_Impl, - { + unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionInstanceCollection_Impl::DeleteAll(this).into() } @@ -595,7 +463,7 @@ impl IFunctionInstanceCollection_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IFunctionInstanceCollectionQuery_Impl: Sized { +pub trait IFunctionInstanceCollectionQuery_Impl: Sized + windows_core::IUnknownImpl { fn AddQueryConstraint(&self, pszconstraintname: &windows_core::PCWSTR, pszconstraintvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; fn AddPropertyConstraint(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pv: *const windows_core::PROPVARIANT, enumpropertyconstraint: PropertyConstraint) -> windows_core::Result<()>; fn Execute(&self) -> windows_core::Result; @@ -604,28 +472,16 @@ pub trait IFunctionInstanceCollectionQuery_Impl: Sized { impl windows_core::RuntimeName for IFunctionInstanceCollectionQuery {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IFunctionInstanceCollectionQuery_Vtbl { - pub const fn new() -> IFunctionInstanceCollectionQuery_Vtbl - where - Identity: IFunctionInstanceCollectionQuery_Impl, - { - unsafe extern "system" fn AddQueryConstraint(this: *mut core::ffi::c_void, pszconstraintname: windows_core::PCWSTR, pszconstraintvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFunctionInstanceCollectionQuery_Impl, - { + pub const fn new() -> IFunctionInstanceCollectionQuery_Vtbl { + unsafe extern "system" fn AddQueryConstraint(this: *mut core::ffi::c_void, pszconstraintname: windows_core::PCWSTR, pszconstraintvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionInstanceCollectionQuery_Impl::AddQueryConstraint(this, core::mem::transmute(&pszconstraintname), core::mem::transmute(&pszconstraintvalue)).into() } - unsafe extern "system" fn AddPropertyConstraint(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pv: *const core::mem::MaybeUninit, enumpropertyconstraint: PropertyConstraint) -> windows_core::HRESULT - where - Identity: IFunctionInstanceCollectionQuery_Impl, - { + unsafe extern "system" fn AddPropertyConstraint(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pv: *const core::mem::MaybeUninit, enumpropertyconstraint: PropertyConstraint) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionInstanceCollectionQuery_Impl::AddPropertyConstraint(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&pv), core::mem::transmute_copy(&enumpropertyconstraint)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, ppifunctioninstancecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionInstanceCollectionQuery_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, ppifunctioninstancecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionInstanceCollectionQuery_Impl::Execute(this) { Ok(ok__) => { @@ -647,21 +503,15 @@ impl IFunctionInstanceCollectionQuery_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IFunctionInstanceQuery_Impl: Sized { +pub trait IFunctionInstanceQuery_Impl: Sized + windows_core::IUnknownImpl { fn Execute(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IFunctionInstanceQuery {} #[cfg(feature = "Win32_System_Com")] impl IFunctionInstanceQuery_Vtbl { - pub const fn new() -> IFunctionInstanceQuery_Vtbl - where - Identity: IFunctionInstanceQuery_Impl, - { - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFunctionInstanceQuery_Impl, - { + pub const fn new() -> IFunctionInstanceQuery_Vtbl { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionInstanceQuery_Impl::Execute(this) { Ok(ok__) => { @@ -677,35 +527,23 @@ impl IFunctionInstanceQuery_Vtbl { iid == &::IID } } -pub trait IPNPXAssociation_Impl: Sized { +pub trait IPNPXAssociation_Impl: Sized + windows_core::IUnknownImpl { fn Associate(&self, pszsubcategory: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Unassociate(&self, pszsubcategory: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Delete(&self, pszsubcategory: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPNPXAssociation {} impl IPNPXAssociation_Vtbl { - pub const fn new() -> IPNPXAssociation_Vtbl - where - Identity: IPNPXAssociation_Impl, - { - unsafe extern "system" fn Associate(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPNPXAssociation_Impl, - { + pub const fn new() -> IPNPXAssociation_Vtbl { + unsafe extern "system" fn Associate(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPNPXAssociation_Impl::Associate(this, core::mem::transmute(&pszsubcategory)).into() } - unsafe extern "system" fn Unassociate(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPNPXAssociation_Impl, - { + unsafe extern "system" fn Unassociate(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPNPXAssociation_Impl::Unassociate(this, core::mem::transmute(&pszsubcategory)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPNPXAssociation_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPNPXAssociation_Impl::Delete(this, core::mem::transmute(&pszsubcategory)).into() } @@ -720,35 +558,23 @@ impl IPNPXAssociation_Vtbl { iid == &::IID } } -pub trait IPNPXDeviceAssociation_Impl: Sized { +pub trait IPNPXDeviceAssociation_Impl: Sized + windows_core::IUnknownImpl { fn Associate(&self, pszsubcategory: &windows_core::PCWSTR, pifunctiondiscoverynotification: Option<&IFunctionDiscoveryNotification>) -> windows_core::Result<()>; fn Unassociate(&self, pszsubcategory: &windows_core::PCWSTR, pifunctiondiscoverynotification: Option<&IFunctionDiscoveryNotification>) -> windows_core::Result<()>; fn Delete(&self, pszsubcategory: &windows_core::PCWSTR, pifunctiondiscoverynotification: Option<&IFunctionDiscoveryNotification>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPNPXDeviceAssociation {} impl IPNPXDeviceAssociation_Vtbl { - pub const fn new() -> IPNPXDeviceAssociation_Vtbl - where - Identity: IPNPXDeviceAssociation_Impl, - { - unsafe extern "system" fn Associate(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR, pifunctiondiscoverynotification: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPNPXDeviceAssociation_Impl, - { + pub const fn new() -> IPNPXDeviceAssociation_Vtbl { + unsafe extern "system" fn Associate(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR, pifunctiondiscoverynotification: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPNPXDeviceAssociation_Impl::Associate(this, core::mem::transmute(&pszsubcategory), windows_core::from_raw_borrowed(&pifunctiondiscoverynotification)).into() } - unsafe extern "system" fn Unassociate(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR, pifunctiondiscoverynotification: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPNPXDeviceAssociation_Impl, - { + unsafe extern "system" fn Unassociate(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR, pifunctiondiscoverynotification: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPNPXDeviceAssociation_Impl::Unassociate(this, core::mem::transmute(&pszsubcategory), windows_core::from_raw_borrowed(&pifunctiondiscoverynotification)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR, pifunctiondiscoverynotification: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPNPXDeviceAssociation_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, pszsubcategory: windows_core::PCWSTR, pifunctiondiscoverynotification: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPNPXDeviceAssociation_Impl::Delete(this, core::mem::transmute(&pszsubcategory), windows_core::from_raw_borrowed(&pifunctiondiscoverynotification)).into() } @@ -764,7 +590,7 @@ impl IPNPXDeviceAssociation_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IPropertyStoreCollection_Impl: Sized { +pub trait IPropertyStoreCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn Get(&self, pszinstanceidentity: &windows_core::PCWSTR, pdwindex: *mut u32) -> windows_core::Result; fn Item(&self, dwindex: u32) -> windows_core::Result; @@ -777,14 +603,8 @@ pub trait IPropertyStoreCollection_Impl: Sized { impl windows_core::RuntimeName for IPropertyStoreCollection {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IPropertyStoreCollection_Vtbl { - pub const fn new() -> IPropertyStoreCollection_Vtbl - where - Identity: IPropertyStoreCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyStoreCollection_Impl, - { + pub const fn new() -> IPropertyStoreCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyStoreCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -794,10 +614,7 @@ impl IPropertyStoreCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, pszinstanceidentity: windows_core::PCWSTR, pdwindex: *mut u32, ppipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyStoreCollection_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, pszinstanceidentity: windows_core::PCWSTR, pdwindex: *mut u32, ppipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyStoreCollection_Impl::Get(this, core::mem::transmute(&pszinstanceidentity), core::mem::transmute_copy(&pdwindex)) { Ok(ok__) => { @@ -807,10 +624,7 @@ impl IPropertyStoreCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, dwindex: u32, ppipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyStoreCollection_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, dwindex: u32, ppipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyStoreCollection_Impl::Item(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -820,17 +634,11 @@ impl IPropertyStoreCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pipropertystore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyStoreCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pipropertystore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStoreCollection_Impl::Add(this, windows_core::from_raw_borrowed(&pipropertystore)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, dwindex: u32, pipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyStoreCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, dwindex: u32, pipropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyStoreCollection_Impl::Remove(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -840,17 +648,11 @@ impl IPropertyStoreCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT - where - Identity: IPropertyStoreCollection_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStoreCollection_Impl::Delete(this, core::mem::transmute_copy(&dwindex)).into() } - unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyStoreCollection_Impl, - { + unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStoreCollection_Impl::DeleteAll(this).into() } @@ -870,7 +672,7 @@ impl IPropertyStoreCollection_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IProviderProperties_Impl: Sized { +pub trait IProviderProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self, pifunctioninstance: Option<&IFunctionInstance>, iproviderinstancecontext: isize) -> windows_core::Result; fn GetAt(&self, pifunctioninstance: Option<&IFunctionInstance>, iproviderinstancecontext: isize, dwindex: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()>; fn GetValue(&self, pifunctioninstance: Option<&IFunctionInstance>, iproviderinstancecontext: isize, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result; @@ -880,14 +682,8 @@ pub trait IProviderProperties_Impl: Sized { impl windows_core::RuntimeName for IProviderProperties {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IProviderProperties_Vtbl { - pub const fn new() -> IProviderProperties_Vtbl - where - Identity: IProviderProperties_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IProviderProperties_Impl, - { + pub const fn new() -> IProviderProperties_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProviderProperties_Impl::GetCount(this, windows_core::from_raw_borrowed(&pifunctioninstance), core::mem::transmute_copy(&iproviderinstancecontext)) { Ok(ok__) => { @@ -897,17 +693,11 @@ impl IProviderProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, dwindex: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IProviderProperties_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, dwindex: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderProperties_Impl::GetAt(this, windows_core::from_raw_borrowed(&pifunctioninstance), core::mem::transmute_copy(&iproviderinstancecontext), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pkey)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IProviderProperties_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProviderProperties_Impl::GetValue(this, windows_core::from_raw_borrowed(&pifunctioninstance), core::mem::transmute_copy(&iproviderinstancecontext), core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -917,10 +707,7 @@ impl IProviderProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IProviderProperties_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, pifunctioninstance: *mut core::ffi::c_void, iproviderinstancecontext: isize, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderProperties_Impl::SetValue(this, windows_core::from_raw_borrowed(&pifunctioninstance), core::mem::transmute_copy(&iproviderinstancecontext), core::mem::transmute_copy(&key), core::mem::transmute_copy(&ppropvar)).into() } @@ -937,7 +724,7 @@ impl IProviderProperties_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IProviderPropertyConstraintCollection_Impl: Sized { +pub trait IProviderPropertyConstraintCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn Get(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *mut windows_core::PROPVARIANT, pdwpropertyconstraint: *mut u32) -> windows_core::Result<()>; fn Item(&self, dwindex: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *mut windows_core::PROPVARIANT, pdwpropertyconstraint: *mut u32) -> windows_core::Result<()>; @@ -949,14 +736,8 @@ pub trait IProviderPropertyConstraintCollection_Impl: Sized { impl windows_core::RuntimeName for IProviderPropertyConstraintCollection {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IProviderPropertyConstraintCollection_Vtbl { - pub const fn new() -> IProviderPropertyConstraintCollection_Vtbl - where - Identity: IProviderPropertyConstraintCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IProviderPropertyConstraintCollection_Impl, - { + pub const fn new() -> IProviderPropertyConstraintCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProviderPropertyConstraintCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -966,38 +747,23 @@ impl IProviderPropertyConstraintCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit, pdwpropertyconstraint: *mut u32) -> windows_core::HRESULT - where - Identity: IProviderPropertyConstraintCollection_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit, pdwpropertyconstraint: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderPropertyConstraintCollection_Impl::Get(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&ppropvar), core::mem::transmute_copy(&pdwpropertyconstraint)).into() } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, dwindex: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit, pdwpropertyconstraint: *mut u32) -> windows_core::HRESULT - where - Identity: IProviderPropertyConstraintCollection_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, dwindex: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit, pdwpropertyconstraint: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderPropertyConstraintCollection_Impl::Item(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&ppropvar), core::mem::transmute_copy(&pdwpropertyconstraint)).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit, pdwpropertyconstraint: *mut u32) -> windows_core::HRESULT - where - Identity: IProviderPropertyConstraintCollection_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit, pdwpropertyconstraint: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderPropertyConstraintCollection_Impl::Next(this, core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&ppropvar), core::mem::transmute_copy(&pdwpropertyconstraint)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProviderPropertyConstraintCollection_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderPropertyConstraintCollection_Impl::Skip(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProviderPropertyConstraintCollection_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderPropertyConstraintCollection_Impl::Reset(this).into() } @@ -1016,7 +782,7 @@ impl IProviderPropertyConstraintCollection_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IProviderPublishing_Impl: Sized { +pub trait IProviderPublishing_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, enumvisibilityflags: SystemVisibilityFlags, pszsubcategory: &windows_core::PCWSTR, pszproviderinstanceidentity: &windows_core::PCWSTR) -> windows_core::Result; fn RemoveInstance(&self, enumvisibilityflags: SystemVisibilityFlags, pszsubcategory: &windows_core::PCWSTR, pszproviderinstanceidentity: &windows_core::PCWSTR) -> windows_core::Result<()>; } @@ -1024,14 +790,8 @@ pub trait IProviderPublishing_Impl: Sized { impl windows_core::RuntimeName for IProviderPublishing {} #[cfg(feature = "Win32_System_Com")] impl IProviderPublishing_Vtbl { - pub const fn new() -> IProviderPublishing_Vtbl - where - Identity: IProviderPublishing_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, enumvisibilityflags: SystemVisibilityFlags, pszsubcategory: windows_core::PCWSTR, pszproviderinstanceidentity: windows_core::PCWSTR, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProviderPublishing_Impl, - { + pub const fn new() -> IProviderPublishing_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, enumvisibilityflags: SystemVisibilityFlags, pszsubcategory: windows_core::PCWSTR, pszproviderinstanceidentity: windows_core::PCWSTR, ppifunctioninstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProviderPublishing_Impl::CreateInstance(this, core::mem::transmute_copy(&enumvisibilityflags), core::mem::transmute(&pszsubcategory), core::mem::transmute(&pszproviderinstanceidentity)) { Ok(ok__) => { @@ -1041,10 +801,7 @@ impl IProviderPublishing_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveInstance(this: *mut core::ffi::c_void, enumvisibilityflags: SystemVisibilityFlags, pszsubcategory: windows_core::PCWSTR, pszproviderinstanceidentity: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IProviderPublishing_Impl, - { + unsafe extern "system" fn RemoveInstance(this: *mut core::ffi::c_void, enumvisibilityflags: SystemVisibilityFlags, pszsubcategory: windows_core::PCWSTR, pszproviderinstanceidentity: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderPublishing_Impl::RemoveInstance(this, core::mem::transmute_copy(&enumvisibilityflags), core::mem::transmute(&pszsubcategory), core::mem::transmute(&pszproviderinstanceidentity)).into() } @@ -1058,7 +815,7 @@ impl IProviderPublishing_Vtbl { iid == &::IID } } -pub trait IProviderQueryConstraintCollection_Impl: Sized { +pub trait IProviderQueryConstraintCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn Get(&self, pszconstraintname: &windows_core::PCWSTR) -> windows_core::Result<*mut u16>; fn Item(&self, dwindex: u32, ppszconstraintname: *mut *mut u16, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()>; @@ -1068,14 +825,8 @@ pub trait IProviderQueryConstraintCollection_Impl: Sized { } impl windows_core::RuntimeName for IProviderQueryConstraintCollection {} impl IProviderQueryConstraintCollection_Vtbl { - pub const fn new() -> IProviderQueryConstraintCollection_Vtbl - where - Identity: IProviderQueryConstraintCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IProviderQueryConstraintCollection_Impl, - { + pub const fn new() -> IProviderQueryConstraintCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProviderQueryConstraintCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -1085,10 +836,7 @@ impl IProviderQueryConstraintCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, pszconstraintname: windows_core::PCWSTR, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IProviderQueryConstraintCollection_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, pszconstraintname: windows_core::PCWSTR, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProviderQueryConstraintCollection_Impl::Get(this, core::mem::transmute(&pszconstraintname)) { Ok(ok__) => { @@ -1098,31 +846,19 @@ impl IProviderQueryConstraintCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, dwindex: u32, ppszconstraintname: *mut *mut u16, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IProviderQueryConstraintCollection_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, dwindex: u32, ppszconstraintname: *mut *mut u16, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderQueryConstraintCollection_Impl::Item(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&ppszconstraintname), core::mem::transmute_copy(&ppszconstraintvalue)).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppszconstraintname: *mut *mut u16, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IProviderQueryConstraintCollection_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppszconstraintname: *mut *mut u16, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderQueryConstraintCollection_Impl::Next(this, core::mem::transmute_copy(&ppszconstraintname), core::mem::transmute_copy(&ppszconstraintvalue)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProviderQueryConstraintCollection_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderQueryConstraintCollection_Impl::Skip(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProviderQueryConstraintCollection_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderQueryConstraintCollection_Impl::Reset(this).into() } 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 d8862d1ded..40ec7bd2e6 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/impl.rs @@ -12,14 +12,8 @@ pub trait ICivicAddressReport_Impl: Sized + ILocationReport_Impl { impl windows_core::RuntimeName for ICivicAddressReport {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ICivicAddressReport_Vtbl { - pub const fn new() -> ICivicAddressReport_Vtbl - where - Identity: ICivicAddressReport_Impl, - { - unsafe extern "system" fn GetAddressLine1(this: *mut core::ffi::c_void, pbstraddress1: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICivicAddressReport_Impl, - { + pub const fn new() -> ICivicAddressReport_Vtbl { + unsafe extern "system" fn GetAddressLine1(this: *mut core::ffi::c_void, pbstraddress1: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICivicAddressReport_Impl::GetAddressLine1(this) { Ok(ok__) => { @@ -29,10 +23,7 @@ impl ICivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAddressLine2(this: *mut core::ffi::c_void, pbstraddress2: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICivicAddressReport_Impl, - { + unsafe extern "system" fn GetAddressLine2(this: *mut core::ffi::c_void, pbstraddress2: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICivicAddressReport_Impl::GetAddressLine2(this) { Ok(ok__) => { @@ -42,10 +33,7 @@ impl ICivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCity(this: *mut core::ffi::c_void, pbstrcity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICivicAddressReport_Impl, - { + unsafe extern "system" fn GetCity(this: *mut core::ffi::c_void, pbstrcity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICivicAddressReport_Impl::GetCity(this) { Ok(ok__) => { @@ -55,10 +43,7 @@ impl ICivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStateProvince(this: *mut core::ffi::c_void, pbstrstateprovince: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICivicAddressReport_Impl, - { + unsafe extern "system" fn GetStateProvince(this: *mut core::ffi::c_void, pbstrstateprovince: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICivicAddressReport_Impl::GetStateProvince(this) { Ok(ok__) => { @@ -68,10 +53,7 @@ impl ICivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPostalCode(this: *mut core::ffi::c_void, pbstrpostalcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICivicAddressReport_Impl, - { + unsafe extern "system" fn GetPostalCode(this: *mut core::ffi::c_void, pbstrpostalcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICivicAddressReport_Impl::GetPostalCode(this) { Ok(ok__) => { @@ -81,10 +63,7 @@ impl ICivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountryRegion(this: *mut core::ffi::c_void, pbstrcountryregion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICivicAddressReport_Impl, - { + unsafe extern "system" fn GetCountryRegion(this: *mut core::ffi::c_void, pbstrcountryregion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICivicAddressReport_Impl::GetCountryRegion(this) { Ok(ok__) => { @@ -94,10 +73,7 @@ impl ICivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDetailLevel(this: *mut core::ffi::c_void, pdetaillevel: *mut u32) -> windows_core::HRESULT - where - Identity: ICivicAddressReport_Impl, - { + unsafe extern "system" fn GetDetailLevel(this: *mut core::ffi::c_void, pdetaillevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICivicAddressReport_Impl::GetDetailLevel(this) { Ok(ok__) => { @@ -130,14 +106,8 @@ pub trait ICivicAddressReportFactory_Impl: Sized + ILocationReportFactory_Impl { impl windows_core::RuntimeName for ICivicAddressReportFactory {} #[cfg(feature = "Win32_System_Com")] impl ICivicAddressReportFactory_Vtbl { - pub const fn new() -> ICivicAddressReportFactory_Vtbl - where - Identity: ICivicAddressReportFactory_Impl, - { - unsafe extern "system" fn CivicAddressReport(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICivicAddressReportFactory_Impl, - { + pub const fn new() -> ICivicAddressReportFactory_Vtbl { + unsafe extern "system" fn CivicAddressReport(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICivicAddressReportFactory_Impl::CivicAddressReport(this) { Ok(ok__) => { @@ -153,27 +123,18 @@ impl ICivicAddressReportFactory_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDefaultLocation_Impl: Sized { +pub trait IDefaultLocation_Impl: Sized + windows_core::IUnknownImpl { fn SetReport(&self, reporttype: *const windows_core::GUID, plocationreport: Option<&ILocationReport>) -> windows_core::Result<()>; fn GetReport(&self, reporttype: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IDefaultLocation {} impl IDefaultLocation_Vtbl { - pub const fn new() -> IDefaultLocation_Vtbl - where - Identity: IDefaultLocation_Impl, - { - unsafe extern "system" fn SetReport(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, plocationreport: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDefaultLocation_Impl, - { + pub const fn new() -> IDefaultLocation_Vtbl { + unsafe extern "system" fn SetReport(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, plocationreport: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultLocation_Impl::SetReport(this, core::mem::transmute_copy(&reporttype), windows_core::from_raw_borrowed(&plocationreport)).into() } - unsafe extern "system" fn GetReport(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, pplocationreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDefaultLocation_Impl, - { + unsafe extern "system" fn GetReport(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, pplocationreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDefaultLocation_Impl::GetReport(this, core::mem::transmute_copy(&reporttype)) { Ok(ok__) => { @@ -208,14 +169,8 @@ pub trait IDispCivicAddressReport_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for IDispCivicAddressReport {} #[cfg(feature = "Win32_System_Com")] impl IDispCivicAddressReport_Vtbl { - pub const fn new() -> IDispCivicAddressReport_Vtbl - where - Identity: IDispCivicAddressReport_Impl, - { - unsafe extern "system" fn AddressLine1(this: *mut core::ffi::c_void, paddress1: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDispCivicAddressReport_Impl, - { + pub const fn new() -> IDispCivicAddressReport_Vtbl { + unsafe extern "system" fn AddressLine1(this: *mut core::ffi::c_void, paddress1: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispCivicAddressReport_Impl::AddressLine1(this) { Ok(ok__) => { @@ -225,10 +180,7 @@ impl IDispCivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddressLine2(this: *mut core::ffi::c_void, paddress2: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDispCivicAddressReport_Impl, - { + unsafe extern "system" fn AddressLine2(this: *mut core::ffi::c_void, paddress2: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispCivicAddressReport_Impl::AddressLine2(this) { Ok(ok__) => { @@ -238,10 +190,7 @@ impl IDispCivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn City(this: *mut core::ffi::c_void, pcity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDispCivicAddressReport_Impl, - { + unsafe extern "system" fn City(this: *mut core::ffi::c_void, pcity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispCivicAddressReport_Impl::City(this) { Ok(ok__) => { @@ -251,10 +200,7 @@ impl IDispCivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StateProvince(this: *mut core::ffi::c_void, pstateprovince: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDispCivicAddressReport_Impl, - { + unsafe extern "system" fn StateProvince(this: *mut core::ffi::c_void, pstateprovince: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispCivicAddressReport_Impl::StateProvince(this) { Ok(ok__) => { @@ -264,10 +210,7 @@ impl IDispCivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PostalCode(this: *mut core::ffi::c_void, ppostalcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDispCivicAddressReport_Impl, - { + unsafe extern "system" fn PostalCode(this: *mut core::ffi::c_void, ppostalcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispCivicAddressReport_Impl::PostalCode(this) { Ok(ok__) => { @@ -277,10 +220,7 @@ impl IDispCivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CountryRegion(this: *mut core::ffi::c_void, pcountryregion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDispCivicAddressReport_Impl, - { + unsafe extern "system" fn CountryRegion(this: *mut core::ffi::c_void, pcountryregion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispCivicAddressReport_Impl::CountryRegion(this) { Ok(ok__) => { @@ -290,10 +230,7 @@ impl IDispCivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DetailLevel(this: *mut core::ffi::c_void, pdetaillevel: *mut u32) -> windows_core::HRESULT - where - Identity: IDispCivicAddressReport_Impl, - { + unsafe extern "system" fn DetailLevel(this: *mut core::ffi::c_void, pdetaillevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispCivicAddressReport_Impl::DetailLevel(this) { Ok(ok__) => { @@ -303,10 +240,7 @@ impl IDispCivicAddressReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IDispCivicAddressReport_Impl, - { + unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispCivicAddressReport_Impl::Timestamp(this) { Ok(ok__) => { @@ -345,14 +279,8 @@ pub trait IDispLatLongReport_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IDispLatLongReport {} #[cfg(feature = "Win32_System_Com")] impl IDispLatLongReport_Vtbl { - pub const fn new() -> IDispLatLongReport_Vtbl - where - Identity: IDispLatLongReport_Impl, - { - unsafe extern "system" fn Latitude(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IDispLatLongReport_Impl, - { + pub const fn new() -> IDispLatLongReport_Vtbl { + unsafe extern "system" fn Latitude(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispLatLongReport_Impl::Latitude(this) { Ok(ok__) => { @@ -362,10 +290,7 @@ impl IDispLatLongReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Longitude(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IDispLatLongReport_Impl, - { + unsafe extern "system" fn Longitude(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispLatLongReport_Impl::Longitude(this) { Ok(ok__) => { @@ -375,10 +300,7 @@ impl IDispLatLongReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ErrorRadius(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IDispLatLongReport_Impl, - { + unsafe extern "system" fn ErrorRadius(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispLatLongReport_Impl::ErrorRadius(this) { Ok(ok__) => { @@ -388,10 +310,7 @@ impl IDispLatLongReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Altitude(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IDispLatLongReport_Impl, - { + unsafe extern "system" fn Altitude(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispLatLongReport_Impl::Altitude(this) { Ok(ok__) => { @@ -401,10 +320,7 @@ impl IDispLatLongReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AltitudeError(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IDispLatLongReport_Impl, - { + unsafe extern "system" fn AltitudeError(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispLatLongReport_Impl::AltitudeError(this) { Ok(ok__) => { @@ -414,10 +330,7 @@ impl IDispLatLongReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IDispLatLongReport_Impl, - { + unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispLatLongReport_Impl::Timestamp(this) { Ok(ok__) => { @@ -453,14 +366,8 @@ pub trait ILatLongReport_Impl: Sized + ILocationReport_Impl { impl windows_core::RuntimeName for ILatLongReport {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ILatLongReport_Vtbl { - pub const fn new() -> ILatLongReport_Vtbl - where - Identity: ILatLongReport_Impl, - { - unsafe extern "system" fn GetLatitude(this: *mut core::ffi::c_void, platitude: *mut f64) -> windows_core::HRESULT - where - Identity: ILatLongReport_Impl, - { + pub const fn new() -> ILatLongReport_Vtbl { + unsafe extern "system" fn GetLatitude(this: *mut core::ffi::c_void, platitude: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILatLongReport_Impl::GetLatitude(this) { Ok(ok__) => { @@ -470,10 +377,7 @@ impl ILatLongReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLongitude(this: *mut core::ffi::c_void, plongitude: *mut f64) -> windows_core::HRESULT - where - Identity: ILatLongReport_Impl, - { + unsafe extern "system" fn GetLongitude(this: *mut core::ffi::c_void, plongitude: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILatLongReport_Impl::GetLongitude(this) { Ok(ok__) => { @@ -483,10 +387,7 @@ impl ILatLongReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorRadius(this: *mut core::ffi::c_void, perrorradius: *mut f64) -> windows_core::HRESULT - where - Identity: ILatLongReport_Impl, - { + unsafe extern "system" fn GetErrorRadius(this: *mut core::ffi::c_void, perrorradius: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILatLongReport_Impl::GetErrorRadius(this) { Ok(ok__) => { @@ -496,10 +397,7 @@ impl ILatLongReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAltitude(this: *mut core::ffi::c_void, paltitude: *mut f64) -> windows_core::HRESULT - where - Identity: ILatLongReport_Impl, - { + unsafe extern "system" fn GetAltitude(this: *mut core::ffi::c_void, paltitude: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILatLongReport_Impl::GetAltitude(this) { Ok(ok__) => { @@ -509,10 +407,7 @@ impl ILatLongReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAltitudeError(this: *mut core::ffi::c_void, paltitudeerror: *mut f64) -> windows_core::HRESULT - where - Identity: ILatLongReport_Impl, - { + unsafe extern "system" fn GetAltitudeError(this: *mut core::ffi::c_void, paltitudeerror: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILatLongReport_Impl::GetAltitudeError(this) { Ok(ok__) => { @@ -543,14 +438,8 @@ pub trait ILatLongReportFactory_Impl: Sized + ILocationReportFactory_Impl { impl windows_core::RuntimeName for ILatLongReportFactory {} #[cfg(feature = "Win32_System_Com")] impl ILatLongReportFactory_Vtbl { - pub const fn new() -> ILatLongReportFactory_Vtbl - where - Identity: ILatLongReportFactory_Impl, - { - unsafe extern "system" fn LatLongReport(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILatLongReportFactory_Impl, - { + pub const fn new() -> ILatLongReportFactory_Vtbl { + unsafe extern "system" fn LatLongReport(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILatLongReportFactory_Impl::LatLongReport(this) { Ok(ok__) => { @@ -567,7 +456,7 @@ impl ILatLongReportFactory_Vtbl { } } #[cfg(feature = "Win32_Devices_Sensors")] -pub trait ILocation_Impl: Sized { +pub trait ILocation_Impl: Sized + windows_core::IUnknownImpl { fn RegisterForReport(&self, pevents: Option<&ILocationEvents>, reporttype: *const windows_core::GUID, dwrequestedreportinterval: u32) -> windows_core::Result<()>; fn UnregisterForReport(&self, reporttype: *const windows_core::GUID) -> windows_core::Result<()>; fn GetReport(&self, reporttype: *const windows_core::GUID) -> windows_core::Result; @@ -582,28 +471,16 @@ pub trait ILocation_Impl: Sized { impl windows_core::RuntimeName for ILocation {} #[cfg(feature = "Win32_Devices_Sensors")] impl ILocation_Vtbl { - pub const fn new() -> ILocation_Vtbl - where - Identity: ILocation_Impl, - { - unsafe extern "system" fn RegisterForReport(this: *mut core::ffi::c_void, pevents: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, dwrequestedreportinterval: u32) -> windows_core::HRESULT - where - Identity: ILocation_Impl, - { + pub const fn new() -> ILocation_Vtbl { + unsafe extern "system" fn RegisterForReport(this: *mut core::ffi::c_void, pevents: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, dwrequestedreportinterval: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocation_Impl::RegisterForReport(this, windows_core::from_raw_borrowed(&pevents), core::mem::transmute_copy(&reporttype), core::mem::transmute_copy(&dwrequestedreportinterval)).into() } - unsafe extern "system" fn UnregisterForReport(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ILocation_Impl, - { + unsafe extern "system" fn UnregisterForReport(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocation_Impl::UnregisterForReport(this, core::mem::transmute_copy(&reporttype)).into() } - unsafe extern "system" fn GetReport(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, pplocationreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILocation_Impl, - { + unsafe extern "system" fn GetReport(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, pplocationreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocation_Impl::GetReport(this, core::mem::transmute_copy(&reporttype)) { Ok(ok__) => { @@ -613,10 +490,7 @@ impl ILocation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReportStatus(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, pstatus: *mut LOCATION_REPORT_STATUS) -> windows_core::HRESULT - where - Identity: ILocation_Impl, - { + unsafe extern "system" fn GetReportStatus(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, pstatus: *mut LOCATION_REPORT_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocation_Impl::GetReportStatus(this, core::mem::transmute_copy(&reporttype)) { Ok(ok__) => { @@ -626,10 +500,7 @@ impl ILocation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReportInterval(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, pmilliseconds: *mut u32) -> windows_core::HRESULT - where - Identity: ILocation_Impl, - { + unsafe extern "system" fn GetReportInterval(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, pmilliseconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocation_Impl::GetReportInterval(this, core::mem::transmute_copy(&reporttype)) { Ok(ok__) => { @@ -639,17 +510,11 @@ impl ILocation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReportInterval(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, millisecondsrequested: u32) -> windows_core::HRESULT - where - Identity: ILocation_Impl, - { + unsafe extern "system" fn SetReportInterval(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, millisecondsrequested: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocation_Impl::SetReportInterval(this, core::mem::transmute_copy(&reporttype), core::mem::transmute_copy(&millisecondsrequested)).into() } - unsafe extern "system" fn GetDesiredAccuracy(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, pdesiredaccuracy: *mut super::Sensors::LOCATION_DESIRED_ACCURACY) -> windows_core::HRESULT - where - Identity: ILocation_Impl, - { + unsafe extern "system" fn GetDesiredAccuracy(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, pdesiredaccuracy: *mut super::Sensors::LOCATION_DESIRED_ACCURACY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocation_Impl::GetDesiredAccuracy(this, core::mem::transmute_copy(&reporttype)) { Ok(ok__) => { @@ -659,17 +524,11 @@ impl ILocation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredAccuracy(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, desiredaccuracy: super::Sensors::LOCATION_DESIRED_ACCURACY) -> windows_core::HRESULT - where - Identity: ILocation_Impl, - { + unsafe extern "system" fn SetDesiredAccuracy(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, desiredaccuracy: super::Sensors::LOCATION_DESIRED_ACCURACY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocation_Impl::SetDesiredAccuracy(this, core::mem::transmute_copy(&reporttype), core::mem::transmute_copy(&desiredaccuracy)).into() } - unsafe extern "system" fn RequestPermissions(this: *mut core::ffi::c_void, hparent: super::super::Foundation::HWND, preporttypes: *const windows_core::GUID, count: u32, fmodal: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ILocation_Impl, - { + unsafe extern "system" fn RequestPermissions(this: *mut core::ffi::c_void, hparent: super::super::Foundation::HWND, preporttypes: *const windows_core::GUID, count: u32, fmodal: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocation_Impl::RequestPermissions(this, core::mem::transmute_copy(&hparent), core::mem::transmute_copy(&preporttypes), core::mem::transmute_copy(&count), core::mem::transmute_copy(&fmodal)).into() } @@ -690,27 +549,18 @@ impl ILocation_Vtbl { iid == &::IID } } -pub trait ILocationEvents_Impl: Sized { +pub trait ILocationEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnLocationChanged(&self, reporttype: *const windows_core::GUID, plocationreport: Option<&ILocationReport>) -> windows_core::Result<()>; fn OnStatusChanged(&self, reporttype: *const windows_core::GUID, newstatus: LOCATION_REPORT_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILocationEvents {} impl ILocationEvents_Vtbl { - pub const fn new() -> ILocationEvents_Vtbl - where - Identity: ILocationEvents_Impl, - { - unsafe extern "system" fn OnLocationChanged(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, plocationreport: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILocationEvents_Impl, - { + pub const fn new() -> ILocationEvents_Vtbl { + unsafe extern "system" fn OnLocationChanged(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, plocationreport: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocationEvents_Impl::OnLocationChanged(this, core::mem::transmute_copy(&reporttype), windows_core::from_raw_borrowed(&plocationreport)).into() } - unsafe extern "system" fn OnStatusChanged(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, newstatus: LOCATION_REPORT_STATUS) -> windows_core::HRESULT - where - Identity: ILocationEvents_Impl, - { + unsafe extern "system" fn OnStatusChanged(this: *mut core::ffi::c_void, reporttype: *const windows_core::GUID, newstatus: LOCATION_REPORT_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocationEvents_Impl::OnStatusChanged(this, core::mem::transmute_copy(&reporttype), core::mem::transmute_copy(&newstatus)).into() } @@ -724,27 +574,18 @@ impl ILocationEvents_Vtbl { iid == &::IID } } -pub trait ILocationPower_Impl: Sized { +pub trait ILocationPower_Impl: Sized + windows_core::IUnknownImpl { fn Connect(&self) -> windows_core::Result<()>; fn Disconnect(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILocationPower {} impl ILocationPower_Vtbl { - pub const fn new() -> ILocationPower_Vtbl - where - Identity: ILocationPower_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILocationPower_Impl, - { + pub const fn new() -> ILocationPower_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocationPower_Impl::Connect(this).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILocationPower_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocationPower_Impl::Disconnect(this).into() } @@ -755,7 +596,7 @@ impl ILocationPower_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ILocationReport_Impl: Sized { +pub trait ILocationReport_Impl: Sized + windows_core::IUnknownImpl { fn GetSensorID(&self) -> windows_core::Result; fn GetTimestamp(&self) -> windows_core::Result; fn GetValue(&self, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result; @@ -764,14 +605,8 @@ pub trait ILocationReport_Impl: Sized { impl windows_core::RuntimeName for ILocationReport {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ILocationReport_Vtbl { - pub const fn new() -> ILocationReport_Vtbl - where - Identity: ILocationReport_Impl, - { - unsafe extern "system" fn GetSensorID(this: *mut core::ffi::c_void, psensorid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ILocationReport_Impl, - { + pub const fn new() -> ILocationReport_Vtbl { + unsafe extern "system" fn GetSensorID(this: *mut core::ffi::c_void, psensorid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocationReport_Impl::GetSensorID(this) { Ok(ok__) => { @@ -781,10 +616,7 @@ impl ILocationReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimestamp(this: *mut core::ffi::c_void, pcreationtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: ILocationReport_Impl, - { + unsafe extern "system" fn GetTimestamp(this: *mut core::ffi::c_void, pcreationtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocationReport_Impl::GetTimestamp(this) { Ok(ok__) => { @@ -794,10 +626,7 @@ impl ILocationReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILocationReport_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocationReport_Impl::GetValue(this, core::mem::transmute_copy(&pkey)) { Ok(ok__) => { @@ -833,28 +662,16 @@ pub trait ILocationReportFactory_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for ILocationReportFactory {} #[cfg(feature = "Win32_System_Com")] impl ILocationReportFactory_Vtbl { - pub const fn new() -> ILocationReportFactory_Vtbl - where - Identity: ILocationReportFactory_Impl, - { - unsafe extern "system" fn ListenForReports(this: *mut core::ffi::c_void, requestedreportinterval: u32) -> windows_core::HRESULT - where - Identity: ILocationReportFactory_Impl, - { + pub const fn new() -> ILocationReportFactory_Vtbl { + unsafe extern "system" fn ListenForReports(this: *mut core::ffi::c_void, requestedreportinterval: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocationReportFactory_Impl::ListenForReports(this, core::mem::transmute_copy(&requestedreportinterval)).into() } - unsafe extern "system" fn StopListeningForReports(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILocationReportFactory_Impl, - { + unsafe extern "system" fn StopListeningForReports(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocationReportFactory_Impl::StopListeningForReports(this).into() } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT - where - Identity: ILocationReportFactory_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocationReportFactory_Impl::Status(this) { Ok(ok__) => { @@ -864,10 +681,7 @@ impl ILocationReportFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReportInterval(this: *mut core::ffi::c_void, pmilliseconds: *mut u32) -> windows_core::HRESULT - where - Identity: ILocationReportFactory_Impl, - { + unsafe extern "system" fn ReportInterval(this: *mut core::ffi::c_void, pmilliseconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocationReportFactory_Impl::ReportInterval(this) { Ok(ok__) => { @@ -877,17 +691,11 @@ impl ILocationReportFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReportInterval(this: *mut core::ffi::c_void, millisecondsrequested: u32) -> windows_core::HRESULT - where - Identity: ILocationReportFactory_Impl, - { + unsafe extern "system" fn SetReportInterval(this: *mut core::ffi::c_void, millisecondsrequested: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocationReportFactory_Impl::SetReportInterval(this, core::mem::transmute_copy(&millisecondsrequested)).into() } - unsafe extern "system" fn DesiredAccuracy(this: *mut core::ffi::c_void, pdesiredaccuracy: *mut u32) -> windows_core::HRESULT - where - Identity: ILocationReportFactory_Impl, - { + unsafe extern "system" fn DesiredAccuracy(this: *mut core::ffi::c_void, pdesiredaccuracy: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocationReportFactory_Impl::DesiredAccuracy(this) { Ok(ok__) => { @@ -897,17 +705,11 @@ impl ILocationReportFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredAccuracy(this: *mut core::ffi::c_void, desiredaccuracy: u32) -> windows_core::HRESULT - where - Identity: ILocationReportFactory_Impl, - { + unsafe extern "system" fn SetDesiredAccuracy(this: *mut core::ffi::c_void, desiredaccuracy: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocationReportFactory_Impl::SetDesiredAccuracy(this, core::mem::transmute_copy(&desiredaccuracy)).into() } - unsafe extern "system" fn RequestPermissions(this: *mut core::ffi::c_void, hwnd: *const u32) -> windows_core::HRESULT - where - Identity: ILocationReportFactory_Impl, - { + unsafe extern "system" fn RequestPermissions(this: *mut core::ffi::c_void, hwnd: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocationReportFactory_Impl::RequestPermissions(this, core::mem::transmute_copy(&hwnd)).into() } @@ -933,10 +735,7 @@ pub trait _ICivicAddressReportFactoryEvents_Impl: Sized + super::super::System:: impl windows_core::RuntimeName for _ICivicAddressReportFactoryEvents {} #[cfg(feature = "Win32_System_Com")] impl _ICivicAddressReportFactoryEvents_Vtbl { - pub const fn new() -> _ICivicAddressReportFactoryEvents_Vtbl - where - Identity: _ICivicAddressReportFactoryEvents_Impl, - { + pub const fn new() -> _ICivicAddressReportFactoryEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -949,10 +748,7 @@ pub trait _ILatLongReportFactoryEvents_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for _ILatLongReportFactoryEvents {} #[cfg(feature = "Win32_System_Com")] impl _ILatLongReportFactoryEvents_Vtbl { - pub const fn new() -> _ILatLongReportFactoryEvents_Vtbl - where - Identity: _ILatLongReportFactoryEvents_Impl, - { + pub const fn new() -> _ILatLongReportFactoryEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/impl.rs index 1225873160..c502ce8d0c 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/impl.rs @@ -3,14 +3,8 @@ pub trait IDirectInput2A_Impl: Sized + IDirectInputA_Impl { } impl windows_core::RuntimeName for IDirectInput2A {} impl IDirectInput2A_Vtbl { - pub const fn new() -> IDirectInput2A_Vtbl - where - Identity: IDirectInput2A_Impl, - { - unsafe extern "system" fn FindDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: windows_core::PCSTR, param2: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInput2A_Impl, - { + pub const fn new() -> IDirectInput2A_Vtbl { + unsafe extern "system" fn FindDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: windows_core::PCSTR, param2: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput2A_Impl::FindDevice(this, core::mem::transmute_copy(¶m0), core::mem::transmute(¶m1), core::mem::transmute_copy(¶m2)).into() } @@ -25,14 +19,8 @@ pub trait IDirectInput2W_Impl: Sized + IDirectInputW_Impl { } impl windows_core::RuntimeName for IDirectInput2W {} impl IDirectInput2W_Vtbl { - pub const fn new() -> IDirectInput2W_Vtbl - where - Identity: IDirectInput2W_Impl, - { - unsafe extern "system" fn FindDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: windows_core::PCWSTR, param2: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInput2W_Impl, - { + pub const fn new() -> IDirectInput2W_Vtbl { + unsafe extern "system" fn FindDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: windows_core::PCWSTR, param2: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput2W_Impl::FindDevice(this, core::mem::transmute_copy(¶m0), core::mem::transmute(¶m1), core::mem::transmute_copy(¶m2)).into() } @@ -47,14 +35,8 @@ pub trait IDirectInput7A_Impl: Sized + IDirectInput2A_Impl { } impl windows_core::RuntimeName for IDirectInput7A {} impl IDirectInput7A_Vtbl { - pub const fn new() -> IDirectInput7A_Vtbl - where - Identity: IDirectInput7A_Impl, - { - unsafe extern "system" fn CreateDeviceEx(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *const windows_core::GUID, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInput7A_Impl, - { + pub const fn new() -> IDirectInput7A_Vtbl { + unsafe extern "system" fn CreateDeviceEx(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *const windows_core::GUID, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput7A_Impl::CreateDeviceEx(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } @@ -69,14 +51,8 @@ pub trait IDirectInput7W_Impl: Sized + IDirectInput2W_Impl { } impl windows_core::RuntimeName for IDirectInput7W {} impl IDirectInput7W_Vtbl { - pub const fn new() -> IDirectInput7W_Vtbl - where - Identity: IDirectInput7W_Impl, - { - unsafe extern "system" fn CreateDeviceEx(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *const windows_core::GUID, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInput7W_Impl, - { + pub const fn new() -> IDirectInput7W_Vtbl { + unsafe extern "system" fn CreateDeviceEx(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *const windows_core::GUID, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput7W_Impl::CreateDeviceEx(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } @@ -86,7 +62,7 @@ impl IDirectInput7W_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDirectInput8A_Impl: Sized { +pub trait IDirectInput8A_Impl: Sized + windows_core::IUnknownImpl { fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EnumDevices(&self, param0: u32, param1: LPDIENUMDEVICESCALLBACKA, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()>; fn GetDeviceStatus(&self, param0: *const windows_core::GUID) -> windows_core::Result<()>; @@ -98,63 +74,36 @@ pub trait IDirectInput8A_Impl: Sized { } impl windows_core::RuntimeName for IDirectInput8A {} impl IDirectInput8A_Vtbl { - pub const fn new() -> IDirectInput8A_Vtbl - where - Identity: IDirectInput8A_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInput8A_Impl, - { + pub const fn new() -> IDirectInput8A_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8A_Impl::CreateDevice(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, param0: u32, param1: LPDIENUMDEVICESCALLBACKA, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInput8A_Impl, - { + unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, param0: u32, param1: LPDIENUMDEVICESCALLBACKA, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8A_Impl::EnumDevices(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn GetDeviceStatus(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInput8A_Impl, - { + unsafe extern "system" fn GetDeviceStatus(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8A_Impl::GetDeviceStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInput8A_Impl, - { + unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8A_Impl::RunControlPanel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInput8A_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8A_Impl::Initialize(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn FindDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: windows_core::PCSTR, param2: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInput8A_Impl, - { + unsafe extern "system" fn FindDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: windows_core::PCSTR, param2: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8A_Impl::FindDevice(this, core::mem::transmute_copy(¶m0), core::mem::transmute(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn EnumDevicesBySemantics(this: *mut core::ffi::c_void, param0: windows_core::PCSTR, param1: *mut DIACTIONFORMATA, param2: LPDIENUMDEVICESBYSEMANTICSCBA, param3: *mut core::ffi::c_void, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectInput8A_Impl, - { + unsafe extern "system" fn EnumDevicesBySemantics(this: *mut core::ffi::c_void, param0: windows_core::PCSTR, param1: *mut DIACTIONFORMATA, param2: LPDIENUMDEVICESBYSEMANTICSCBA, param3: *mut core::ffi::c_void, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8A_Impl::EnumDevicesBySemantics(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn ConfigureDevices(this: *mut core::ffi::c_void, param0: LPDICONFIGUREDEVICESCALLBACK, param1: *mut DICONFIGUREDEVICESPARAMSA, param2: u32, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInput8A_Impl, - { + unsafe extern "system" fn ConfigureDevices(this: *mut core::ffi::c_void, param0: LPDICONFIGUREDEVICESCALLBACK, param1: *mut DICONFIGUREDEVICESPARAMSA, param2: u32, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8A_Impl::ConfigureDevices(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } @@ -174,7 +123,7 @@ impl IDirectInput8A_Vtbl { iid == &::IID } } -pub trait IDirectInput8W_Impl: Sized { +pub trait IDirectInput8W_Impl: Sized + windows_core::IUnknownImpl { fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EnumDevices(&self, param0: u32, param1: LPDIENUMDEVICESCALLBACKW, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()>; fn GetDeviceStatus(&self, param0: *const windows_core::GUID) -> windows_core::Result<()>; @@ -186,63 +135,36 @@ pub trait IDirectInput8W_Impl: Sized { } impl windows_core::RuntimeName for IDirectInput8W {} impl IDirectInput8W_Vtbl { - pub const fn new() -> IDirectInput8W_Vtbl - where - Identity: IDirectInput8W_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInput8W_Impl, - { + pub const fn new() -> IDirectInput8W_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8W_Impl::CreateDevice(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, param0: u32, param1: LPDIENUMDEVICESCALLBACKW, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInput8W_Impl, - { + unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, param0: u32, param1: LPDIENUMDEVICESCALLBACKW, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8W_Impl::EnumDevices(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn GetDeviceStatus(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInput8W_Impl, - { + unsafe extern "system" fn GetDeviceStatus(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8W_Impl::GetDeviceStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInput8W_Impl, - { + unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8W_Impl::RunControlPanel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInput8W_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8W_Impl::Initialize(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn FindDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: windows_core::PCWSTR, param2: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInput8W_Impl, - { + unsafe extern "system" fn FindDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: windows_core::PCWSTR, param2: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8W_Impl::FindDevice(this, core::mem::transmute_copy(¶m0), core::mem::transmute(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn EnumDevicesBySemantics(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: *mut DIACTIONFORMATW, param2: LPDIENUMDEVICESBYSEMANTICSCBW, param3: *mut core::ffi::c_void, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectInput8W_Impl, - { + unsafe extern "system" fn EnumDevicesBySemantics(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: *mut DIACTIONFORMATW, param2: LPDIENUMDEVICESBYSEMANTICSCBW, param3: *mut core::ffi::c_void, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8W_Impl::EnumDevicesBySemantics(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn ConfigureDevices(this: *mut core::ffi::c_void, param0: LPDICONFIGUREDEVICESCALLBACK, param1: *mut DICONFIGUREDEVICESPARAMSW, param2: u32, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInput8W_Impl, - { + unsafe extern "system" fn ConfigureDevices(this: *mut core::ffi::c_void, param0: LPDICONFIGUREDEVICESCALLBACK, param1: *mut DICONFIGUREDEVICESPARAMSW, param2: u32, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInput8W_Impl::ConfigureDevices(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } @@ -262,7 +184,7 @@ impl IDirectInput8W_Vtbl { iid == &::IID } } -pub trait IDirectInputA_Impl: Sized { +pub trait IDirectInputA_Impl: Sized + windows_core::IUnknownImpl { fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EnumDevices(&self, param0: u32, param1: LPDIENUMDEVICESCALLBACKA, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()>; fn GetDeviceStatus(&self, param0: *const windows_core::GUID) -> windows_core::Result<()>; @@ -271,42 +193,24 @@ pub trait IDirectInputA_Impl: Sized { } impl windows_core::RuntimeName for IDirectInputA {} impl IDirectInputA_Vtbl { - pub const fn new() -> IDirectInputA_Vtbl - where - Identity: IDirectInputA_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputA_Impl, - { + pub const fn new() -> IDirectInputA_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputA_Impl::CreateDevice(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, param0: u32, param1: LPDIENUMDEVICESCALLBACKA, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputA_Impl, - { + unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, param0: u32, param1: LPDIENUMDEVICESCALLBACKA, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputA_Impl::EnumDevices(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn GetDeviceStatus(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputA_Impl, - { + unsafe extern "system" fn GetDeviceStatus(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputA_Impl::GetDeviceStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputA_Impl, - { + unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputA_Impl::RunControlPanel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputA_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputA_Impl::Initialize(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -336,70 +240,40 @@ pub trait IDirectInputDevice2A_Impl: Sized + IDirectInputDeviceA_Impl { } impl windows_core::RuntimeName for IDirectInputDevice2A {} impl IDirectInputDevice2A_Vtbl { - pub const fn new() -> IDirectInputDevice2A_Vtbl - where - Identity: IDirectInputDevice2A_Impl, - { - unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2A_Impl, - { + pub const fn new() -> IDirectInputDevice2A_Vtbl { + unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2A_Impl::CreateEffect(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } - unsafe extern "system" fn EnumEffects(this: *mut core::ffi::c_void, param0: LPDIENUMEFFECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2A_Impl, - { + unsafe extern "system" fn EnumEffects(this: *mut core::ffi::c_void, param0: LPDIENUMEFFECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2A_Impl::EnumEffects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetEffectInfo(this: *mut core::ffi::c_void, param0: *mut DIEFFECTINFOA, param1: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2A_Impl, - { + unsafe extern "system" fn GetEffectInfo(this: *mut core::ffi::c_void, param0: *mut DIEFFECTINFOA, param1: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2A_Impl::GetEffectInfo(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetForceFeedbackState(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2A_Impl, - { + unsafe extern "system" fn GetForceFeedbackState(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2A_Impl::GetForceFeedbackState(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SendForceFeedbackCommand(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2A_Impl, - { + unsafe extern "system" fn SendForceFeedbackCommand(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2A_Impl::SendForceFeedbackCommand(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn EnumCreatedEffectObjects(this: *mut core::ffi::c_void, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2A_Impl, - { + unsafe extern "system" fn EnumCreatedEffectObjects(this: *mut core::ffi::c_void, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2A_Impl::EnumCreatedEffectObjects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: *mut DIEFFESCAPE) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2A_Impl, - { + unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: *mut DIEFFESCAPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2A_Impl::Escape(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Poll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2A_Impl, - { + unsafe extern "system" fn Poll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2A_Impl::Poll(this).into() } - unsafe extern "system" fn SendDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2A_Impl, - { + unsafe extern "system" fn SendDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2A_Impl::SendDeviceData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } @@ -433,70 +307,40 @@ pub trait IDirectInputDevice2W_Impl: Sized + IDirectInputDeviceW_Impl { } impl windows_core::RuntimeName for IDirectInputDevice2W {} impl IDirectInputDevice2W_Vtbl { - pub const fn new() -> IDirectInputDevice2W_Vtbl - where - Identity: IDirectInputDevice2W_Impl, - { - unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2W_Impl, - { + pub const fn new() -> IDirectInputDevice2W_Vtbl { + unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2W_Impl::CreateEffect(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } - unsafe extern "system" fn EnumEffects(this: *mut core::ffi::c_void, param0: LPDIENUMEFFECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2W_Impl, - { + unsafe extern "system" fn EnumEffects(this: *mut core::ffi::c_void, param0: LPDIENUMEFFECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2W_Impl::EnumEffects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetEffectInfo(this: *mut core::ffi::c_void, param0: *mut DIEFFECTINFOW, param1: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2W_Impl, - { + unsafe extern "system" fn GetEffectInfo(this: *mut core::ffi::c_void, param0: *mut DIEFFECTINFOW, param1: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2W_Impl::GetEffectInfo(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetForceFeedbackState(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2W_Impl, - { + unsafe extern "system" fn GetForceFeedbackState(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2W_Impl::GetForceFeedbackState(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SendForceFeedbackCommand(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2W_Impl, - { + unsafe extern "system" fn SendForceFeedbackCommand(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2W_Impl::SendForceFeedbackCommand(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn EnumCreatedEffectObjects(this: *mut core::ffi::c_void, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2W_Impl, - { + unsafe extern "system" fn EnumCreatedEffectObjects(this: *mut core::ffi::c_void, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2W_Impl::EnumCreatedEffectObjects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: *mut DIEFFESCAPE) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2W_Impl, - { + unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: *mut DIEFFESCAPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2W_Impl::Escape(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Poll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2W_Impl, - { + unsafe extern "system" fn Poll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2W_Impl::Poll(this).into() } - unsafe extern "system" fn SendDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice2W_Impl, - { + unsafe extern "system" fn SendDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice2W_Impl::SendDeviceData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } @@ -523,21 +367,12 @@ pub trait IDirectInputDevice7A_Impl: Sized + IDirectInputDevice2A_Impl { } impl windows_core::RuntimeName for IDirectInputDevice7A {} impl IDirectInputDevice7A_Vtbl { - pub const fn new() -> IDirectInputDevice7A_Vtbl - where - Identity: IDirectInputDevice7A_Impl, - { - unsafe extern "system" fn EnumEffectsInFile(this: *mut core::ffi::c_void, param0: windows_core::PCSTR, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice7A_Impl, - { + pub const fn new() -> IDirectInputDevice7A_Vtbl { + unsafe extern "system" fn EnumEffectsInFile(this: *mut core::ffi::c_void, param0: windows_core::PCSTR, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice7A_Impl::EnumEffectsInFile(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn WriteEffectToFile(this: *mut core::ffi::c_void, param0: windows_core::PCSTR, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice7A_Impl, - { + unsafe extern "system" fn WriteEffectToFile(this: *mut core::ffi::c_void, param0: windows_core::PCSTR, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice7A_Impl::WriteEffectToFile(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } @@ -557,21 +392,12 @@ pub trait IDirectInputDevice7W_Impl: Sized + IDirectInputDevice2W_Impl { } impl windows_core::RuntimeName for IDirectInputDevice7W {} impl IDirectInputDevice7W_Vtbl { - pub const fn new() -> IDirectInputDevice7W_Vtbl - where - Identity: IDirectInputDevice7W_Impl, - { - unsafe extern "system" fn EnumEffectsInFile(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice7W_Impl, - { + pub const fn new() -> IDirectInputDevice7W_Vtbl { + unsafe extern "system" fn EnumEffectsInFile(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice7W_Impl::EnumEffectsInFile(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn WriteEffectToFile(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice7W_Impl, - { + unsafe extern "system" fn WriteEffectToFile(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice7W_Impl::WriteEffectToFile(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } @@ -585,7 +411,7 @@ impl IDirectInputDevice7W_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDirectInputDevice8A_Impl: Sized { +pub trait IDirectInputDevice8A_Impl: Sized + windows_core::IUnknownImpl { fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> windows_core::Result<()>; fn EnumObjects(&self, param0: LPDIENUMDEVICEOBJECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()>; fn GetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()>; @@ -618,210 +444,120 @@ pub trait IDirectInputDevice8A_Impl: Sized { } impl windows_core::RuntimeName for IDirectInputDevice8A {} impl IDirectInputDevice8A_Vtbl { - pub const fn new() -> IDirectInputDevice8A_Vtbl - where - Identity: IDirectInputDevice8A_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, param0: *mut DIDEVCAPS) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + pub const fn new() -> IDirectInputDevice8A_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, param0: *mut DIDEVCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::GetCapabilities(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, param0: LPDIENUMDEVICEOBJECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, param0: LPDIENUMDEVICEOBJECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::EnumObjects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::GetProperty(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::SetProperty(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::Acquire(this).into() } - unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::Unacquire(this).into() } - unsafe extern "system" fn GetDeviceState(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn GetDeviceState(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::GetDeviceState(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn GetDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::GetDeviceData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn SetDataFormat(this: *mut core::ffi::c_void, param0: *mut DIDATAFORMAT) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn SetDataFormat(this: *mut core::ffi::c_void, param0: *mut DIDATAFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::SetDataFormat(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetEventNotification(this: *mut core::ffi::c_void, param0: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn SetEventNotification(this: *mut core::ffi::c_void, param0: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::SetEventNotification(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEOBJECTINSTANCEA, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEOBJECTINSTANCEA, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::GetObjectInfo(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetDeviceInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEINSTANCEA) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn GetDeviceInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEINSTANCEA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::GetDeviceInfo(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::RunControlPanel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::Initialize(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::CreateEffect(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } - unsafe extern "system" fn EnumEffects(this: *mut core::ffi::c_void, param0: LPDIENUMEFFECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn EnumEffects(this: *mut core::ffi::c_void, param0: LPDIENUMEFFECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::EnumEffects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetEffectInfo(this: *mut core::ffi::c_void, param0: *mut DIEFFECTINFOA, param1: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn GetEffectInfo(this: *mut core::ffi::c_void, param0: *mut DIEFFECTINFOA, param1: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::GetEffectInfo(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetForceFeedbackState(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn GetForceFeedbackState(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::GetForceFeedbackState(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SendForceFeedbackCommand(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn SendForceFeedbackCommand(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::SendForceFeedbackCommand(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn EnumCreatedEffectObjects(this: *mut core::ffi::c_void, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn EnumCreatedEffectObjects(this: *mut core::ffi::c_void, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::EnumCreatedEffectObjects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: *mut DIEFFESCAPE) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: *mut DIEFFESCAPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::Escape(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Poll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn Poll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::Poll(this).into() } - unsafe extern "system" fn SendDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn SendDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::SendDeviceData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn EnumEffectsInFile(this: *mut core::ffi::c_void, param0: windows_core::PCSTR, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn EnumEffectsInFile(this: *mut core::ffi::c_void, param0: windows_core::PCSTR, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::EnumEffectsInFile(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn WriteEffectToFile(this: *mut core::ffi::c_void, param0: windows_core::PCSTR, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn WriteEffectToFile(this: *mut core::ffi::c_void, param0: windows_core::PCSTR, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::WriteEffectToFile(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn BuildActionMap(this: *mut core::ffi::c_void, param0: *mut DIACTIONFORMATA, param1: windows_core::PCSTR, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn BuildActionMap(this: *mut core::ffi::c_void, param0: *mut DIACTIONFORMATA, param1: windows_core::PCSTR, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::BuildActionMap(this, core::mem::transmute_copy(¶m0), core::mem::transmute(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn SetActionMap(this: *mut core::ffi::c_void, param0: *mut DIACTIONFORMATA, param1: windows_core::PCSTR, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn SetActionMap(this: *mut core::ffi::c_void, param0: *mut DIACTIONFORMATA, param1: windows_core::PCSTR, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::SetActionMap(this, core::mem::transmute_copy(¶m0), core::mem::transmute(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetImageInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEIMAGEINFOHEADERA) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8A_Impl, - { + unsafe extern "system" fn GetImageInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEIMAGEINFOHEADERA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8A_Impl::GetImageInfo(this, core::mem::transmute_copy(¶m0)).into() } @@ -862,7 +598,7 @@ impl IDirectInputDevice8A_Vtbl { iid == &::IID } } -pub trait IDirectInputDevice8W_Impl: Sized { +pub trait IDirectInputDevice8W_Impl: Sized + windows_core::IUnknownImpl { fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> windows_core::Result<()>; fn EnumObjects(&self, param0: LPDIENUMDEVICEOBJECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()>; fn GetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()>; @@ -895,210 +631,120 @@ pub trait IDirectInputDevice8W_Impl: Sized { } impl windows_core::RuntimeName for IDirectInputDevice8W {} impl IDirectInputDevice8W_Vtbl { - pub const fn new() -> IDirectInputDevice8W_Vtbl - where - Identity: IDirectInputDevice8W_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, param0: *mut DIDEVCAPS) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + pub const fn new() -> IDirectInputDevice8W_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, param0: *mut DIDEVCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::GetCapabilities(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, param0: LPDIENUMDEVICEOBJECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, param0: LPDIENUMDEVICEOBJECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::EnumObjects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::GetProperty(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::SetProperty(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::Acquire(this).into() } - unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::Unacquire(this).into() } - unsafe extern "system" fn GetDeviceState(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn GetDeviceState(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::GetDeviceState(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn GetDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::GetDeviceData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn SetDataFormat(this: *mut core::ffi::c_void, param0: *mut DIDATAFORMAT) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn SetDataFormat(this: *mut core::ffi::c_void, param0: *mut DIDATAFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::SetDataFormat(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetEventNotification(this: *mut core::ffi::c_void, param0: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn SetEventNotification(this: *mut core::ffi::c_void, param0: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::SetEventNotification(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEOBJECTINSTANCEW, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEOBJECTINSTANCEW, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::GetObjectInfo(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetDeviceInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEINSTANCEW) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn GetDeviceInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEINSTANCEW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::GetDeviceInfo(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::RunControlPanel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::Initialize(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIEFFECT, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::CreateEffect(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } - unsafe extern "system" fn EnumEffects(this: *mut core::ffi::c_void, param0: LPDIENUMEFFECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn EnumEffects(this: *mut core::ffi::c_void, param0: LPDIENUMEFFECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::EnumEffects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetEffectInfo(this: *mut core::ffi::c_void, param0: *mut DIEFFECTINFOW, param1: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn GetEffectInfo(this: *mut core::ffi::c_void, param0: *mut DIEFFECTINFOW, param1: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::GetEffectInfo(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetForceFeedbackState(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn GetForceFeedbackState(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::GetForceFeedbackState(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SendForceFeedbackCommand(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn SendForceFeedbackCommand(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::SendForceFeedbackCommand(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn EnumCreatedEffectObjects(this: *mut core::ffi::c_void, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn EnumCreatedEffectObjects(this: *mut core::ffi::c_void, param0: LPDIENUMCREATEDEFFECTOBJECTSCALLBACK, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::EnumCreatedEffectObjects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: *mut DIEFFESCAPE) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: *mut DIEFFESCAPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::Escape(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Poll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn Poll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::Poll(this).into() } - unsafe extern "system" fn SendDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn SendDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::SendDeviceData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn EnumEffectsInFile(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn EnumEffectsInFile(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::EnumEffectsInFile(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn WriteEffectToFile(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn WriteEffectToFile(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::WriteEffectToFile(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn BuildActionMap(this: *mut core::ffi::c_void, param0: *mut DIACTIONFORMATW, param1: windows_core::PCWSTR, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn BuildActionMap(this: *mut core::ffi::c_void, param0: *mut DIACTIONFORMATW, param1: windows_core::PCWSTR, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::BuildActionMap(this, core::mem::transmute_copy(¶m0), core::mem::transmute(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn SetActionMap(this: *mut core::ffi::c_void, param0: *mut DIACTIONFORMATW, param1: windows_core::PCWSTR, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn SetActionMap(this: *mut core::ffi::c_void, param0: *mut DIACTIONFORMATW, param1: windows_core::PCWSTR, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::SetActionMap(this, core::mem::transmute_copy(¶m0), core::mem::transmute(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetImageInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEIMAGEINFOHEADERW) -> windows_core::HRESULT - where - Identity: IDirectInputDevice8W_Impl, - { + unsafe extern "system" fn GetImageInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEIMAGEINFOHEADERW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDevice8W_Impl::GetImageInfo(this, core::mem::transmute_copy(¶m0)).into() } @@ -1139,7 +785,7 @@ impl IDirectInputDevice8W_Vtbl { iid == &::IID } } -pub trait IDirectInputDeviceA_Impl: Sized { +pub trait IDirectInputDeviceA_Impl: Sized + windows_core::IUnknownImpl { fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> windows_core::Result<()>; fn EnumObjects(&self, param0: LPDIENUMDEVICEOBJECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()>; fn GetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()>; @@ -1158,112 +804,64 @@ pub trait IDirectInputDeviceA_Impl: Sized { } impl windows_core::RuntimeName for IDirectInputDeviceA {} impl IDirectInputDeviceA_Vtbl { - pub const fn new() -> IDirectInputDeviceA_Vtbl - where - Identity: IDirectInputDeviceA_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, param0: *mut DIDEVCAPS) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + pub const fn new() -> IDirectInputDeviceA_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, param0: *mut DIDEVCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::GetCapabilities(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, param0: LPDIENUMDEVICEOBJECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, param0: LPDIENUMDEVICEOBJECTSCALLBACKA, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::EnumObjects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::GetProperty(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::SetProperty(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::Acquire(this).into() } - unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::Unacquire(this).into() } - unsafe extern "system" fn GetDeviceState(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn GetDeviceState(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::GetDeviceState(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn GetDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::GetDeviceData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn SetDataFormat(this: *mut core::ffi::c_void, param0: *mut DIDATAFORMAT) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn SetDataFormat(this: *mut core::ffi::c_void, param0: *mut DIDATAFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::SetDataFormat(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetEventNotification(this: *mut core::ffi::c_void, param0: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn SetEventNotification(this: *mut core::ffi::c_void, param0: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::SetEventNotification(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEOBJECTINSTANCEA, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEOBJECTINSTANCEA, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::GetObjectInfo(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetDeviceInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEINSTANCEA) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn GetDeviceInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEINSTANCEA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::GetDeviceInfo(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::RunControlPanel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceA_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceA_Impl::Initialize(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } @@ -1290,7 +888,7 @@ impl IDirectInputDeviceA_Vtbl { iid == &::IID } } -pub trait IDirectInputDeviceW_Impl: Sized { +pub trait IDirectInputDeviceW_Impl: Sized + windows_core::IUnknownImpl { fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> windows_core::Result<()>; fn EnumObjects(&self, param0: LPDIENUMDEVICEOBJECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::Result<()>; fn GetProperty(&self, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::Result<()>; @@ -1309,112 +907,64 @@ pub trait IDirectInputDeviceW_Impl: Sized { } impl windows_core::RuntimeName for IDirectInputDeviceW {} impl IDirectInputDeviceW_Vtbl { - pub const fn new() -> IDirectInputDeviceW_Vtbl - where - Identity: IDirectInputDeviceW_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, param0: *mut DIDEVCAPS) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + pub const fn new() -> IDirectInputDeviceW_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, param0: *mut DIDEVCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::GetCapabilities(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, param0: LPDIENUMDEVICEOBJECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, param0: LPDIENUMDEVICEOBJECTSCALLBACKW, param1: *mut core::ffi::c_void, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::EnumObjects(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::GetProperty(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut DIPROPHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::SetProperty(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::Acquire(this).into() } - unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::Unacquire(this).into() } - unsafe extern "system" fn GetDeviceState(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn GetDeviceState(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::GetDeviceState(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn GetDeviceData(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::GetDeviceData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn SetDataFormat(this: *mut core::ffi::c_void, param0: *mut DIDATAFORMAT) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn SetDataFormat(this: *mut core::ffi::c_void, param0: *mut DIDATAFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::SetDataFormat(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetEventNotification(this: *mut core::ffi::c_void, param0: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn SetEventNotification(this: *mut core::ffi::c_void, param0: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::SetEventNotification(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEOBJECTINSTANCEW, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEOBJECTINSTANCEW, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::GetObjectInfo(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetDeviceInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEINSTANCEW) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn GetDeviceInfo(this: *mut core::ffi::c_void, param0: *mut DIDEVICEINSTANCEW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::GetDeviceInfo(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::RunControlPanel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputDeviceW_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputDeviceW_Impl::Initialize(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } @@ -1441,7 +991,7 @@ impl IDirectInputDeviceW_Vtbl { iid == &::IID } } -pub trait IDirectInputEffect_Impl: Sized { +pub trait IDirectInputEffect_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::Result<()>; fn GetEffectGuid(&self, param0: *mut windows_core::GUID) -> windows_core::Result<()>; fn GetParameters(&self, param0: *mut DIEFFECT, param1: u32) -> windows_core::Result<()>; @@ -1455,77 +1005,44 @@ pub trait IDirectInputEffect_Impl: Sized { } impl windows_core::RuntimeName for IDirectInputEffect {} impl IDirectInputEffect_Vtbl { - pub const fn new() -> IDirectInputEffect_Vtbl - where - Identity: IDirectInputEffect_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputEffect_Impl, - { + pub const fn new() -> IDirectInputEffect_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffect_Impl::Initialize(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetEffectGuid(this: *mut core::ffi::c_void, param0: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputEffect_Impl, - { + unsafe extern "system" fn GetEffectGuid(this: *mut core::ffi::c_void, param0: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffect_Impl::GetEffectGuid(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, param0: *mut DIEFFECT, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffect_Impl, - { + unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, param0: *mut DIEFFECT, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffect_Impl::GetParameters(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, param0: *mut DIEFFECT, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffect_Impl, - { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, param0: *mut DIEFFECT, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffect_Impl::SetParameters(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, param0: u32, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffect_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, param0: u32, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffect_Impl::Start(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputEffect_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffect_Impl::Stop(this).into() } - unsafe extern "system" fn GetEffectStatus(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffect_Impl, - { + unsafe extern "system" fn GetEffectStatus(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffect_Impl::GetEffectStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Download(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputEffect_Impl, - { + unsafe extern "system" fn Download(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffect_Impl::Download(this).into() } - unsafe extern "system" fn Unload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputEffect_Impl, - { + unsafe extern "system" fn Unload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffect_Impl::Unload(this).into() } - unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: *mut DIEFFESCAPE) -> windows_core::HRESULT - where - Identity: IDirectInputEffect_Impl, - { + unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: *mut DIEFFESCAPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffect_Impl::Escape(this, core::mem::transmute_copy(¶m0)).into() } @@ -1547,7 +1064,7 @@ impl IDirectInputEffect_Vtbl { iid == &::IID } } -pub trait IDirectInputEffectDriver_Impl: Sized { +pub trait IDirectInputEffectDriver_Impl: Sized + windows_core::IUnknownImpl { fn DeviceID(&self, param0: u32, param1: u32, param2: u32, param3: u32, param4: *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetVersions(&self, param0: *mut DIDRIVERVERSIONS) -> windows_core::Result<()>; fn Escape(&self, param0: u32, param1: u32, param2: *mut DIEFFESCAPE) -> windows_core::Result<()>; @@ -1562,84 +1079,48 @@ pub trait IDirectInputEffectDriver_Impl: Sized { } impl windows_core::RuntimeName for IDirectInputEffectDriver {} impl IDirectInputEffectDriver_Vtbl { - pub const fn new() -> IDirectInputEffectDriver_Vtbl - where - Identity: IDirectInputEffectDriver_Impl, - { - unsafe extern "system" fn DeviceID(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: u32, param4: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + pub const fn new() -> IDirectInputEffectDriver_Vtbl { + unsafe extern "system" fn DeviceID(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: u32, param4: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::DeviceID(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn GetVersions(this: *mut core::ffi::c_void, param0: *mut DIDRIVERVERSIONS) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + unsafe extern "system" fn GetVersions(this: *mut core::ffi::c_void, param0: *mut DIDRIVERVERSIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::GetVersions(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut DIEFFESCAPE) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut DIEFFESCAPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::Escape(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn SetGain(this: *mut core::ffi::c_void, param0: u32, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + unsafe extern "system" fn SetGain(this: *mut core::ffi::c_void, param0: u32, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::SetGain(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SendForceFeedbackCommand(this: *mut core::ffi::c_void, param0: u32, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + unsafe extern "system" fn SendForceFeedbackCommand(this: *mut core::ffi::c_void, param0: u32, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::SendForceFeedbackCommand(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetForceFeedbackState(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICESTATE) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + unsafe extern "system" fn GetForceFeedbackState(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIDEVICESTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::GetForceFeedbackState(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn DownloadEffect(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut u32, param3: *mut DIEFFECT, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + unsafe extern "system" fn DownloadEffect(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut u32, param3: *mut DIEFFECT, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::DownloadEffect(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn DestroyEffect(this: *mut core::ffi::c_void, param0: u32, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + unsafe extern "system" fn DestroyEffect(this: *mut core::ffi::c_void, param0: u32, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::DestroyEffect(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn StartEffect(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + unsafe extern "system" fn StartEffect(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::StartEffect(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn StopEffect(this: *mut core::ffi::c_void, param0: u32, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + unsafe extern "system" fn StopEffect(this: *mut core::ffi::c_void, param0: u32, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::StopEffect(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetEffectStatus(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectInputEffectDriver_Impl, - { + unsafe extern "system" fn GetEffectStatus(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputEffectDriver_Impl::GetEffectStatus(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } @@ -1663,7 +1144,7 @@ impl IDirectInputEffectDriver_Vtbl { } } #[cfg(feature = "Win32_System_Registry")] -pub trait IDirectInputJoyConfig_Impl: Sized { +pub trait IDirectInputJoyConfig_Impl: Sized + windows_core::IUnknownImpl { fn Acquire(&self) -> windows_core::Result<()>; fn Unacquire(&self) -> windows_core::Result<()>; fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()>; @@ -1685,119 +1166,68 @@ pub trait IDirectInputJoyConfig_Impl: Sized { impl windows_core::RuntimeName for IDirectInputJoyConfig {} #[cfg(feature = "Win32_System_Registry")] impl IDirectInputJoyConfig_Vtbl { - pub const fn new() -> IDirectInputJoyConfig_Vtbl - where - Identity: IDirectInputJoyConfig_Impl, - { - unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + pub const fn new() -> IDirectInputJoyConfig_Vtbl { + unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::Acquire(this).into() } - unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::Unacquire(this).into() } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SendNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn SendNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::SendNotify(this).into() } - unsafe extern "system" fn EnumTypes(this: *mut core::ffi::c_void, param0: LPDIJOYTYPECALLBACK, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn EnumTypes(this: *mut core::ffi::c_void, param0: LPDIJOYTYPECALLBACK, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::EnumTypes(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::GetTypeInfo(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn SetTypeInfo(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn SetTypeInfo(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::SetTypeInfo(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn DeleteType(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn DeleteType(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::DeleteType(this, core::mem::transmute(¶m0)).into() } - unsafe extern "system" fn GetConfig(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn GetConfig(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::GetConfig(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn SetConfig(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn SetConfig(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::SetConfig(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn DeleteConfig(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn DeleteConfig(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::DeleteConfig(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetUserValues(this: *mut core::ffi::c_void, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn GetUserValues(this: *mut core::ffi::c_void, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::GetUserValues(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetUserValues(this: *mut core::ffi::c_void, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn SetUserValues(this: *mut core::ffi::c_void, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::SetUserValues(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn AddNewHardware(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn AddNewHardware(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::AddNewHardware(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn OpenTypeKey(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: u32, param2: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn OpenTypeKey(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: u32, param2: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::OpenTypeKey(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn OpenConfigKey(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig_Impl, - { + unsafe extern "system" fn OpenConfigKey(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig_Impl::OpenConfigKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } @@ -1826,7 +1256,7 @@ impl IDirectInputJoyConfig_Vtbl { } } #[cfg(feature = "Win32_System_Registry")] -pub trait IDirectInputJoyConfig8_Impl: Sized { +pub trait IDirectInputJoyConfig8_Impl: Sized + windows_core::IUnknownImpl { fn Acquire(&self) -> windows_core::Result<()>; fn Unacquire(&self) -> windows_core::Result<()>; fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()>; @@ -1848,119 +1278,68 @@ pub trait IDirectInputJoyConfig8_Impl: Sized { impl windows_core::RuntimeName for IDirectInputJoyConfig8 {} #[cfg(feature = "Win32_System_Registry")] impl IDirectInputJoyConfig8_Vtbl { - pub const fn new() -> IDirectInputJoyConfig8_Vtbl - where - Identity: IDirectInputJoyConfig8_Impl, - { - unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + pub const fn new() -> IDirectInputJoyConfig8_Vtbl { + unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::Acquire(this).into() } - unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn Unacquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::Unacquire(this).into() } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SendNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn SendNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::SendNotify(this).into() } - unsafe extern "system" fn EnumTypes(this: *mut core::ffi::c_void, param0: LPDIJOYTYPECALLBACK, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn EnumTypes(this: *mut core::ffi::c_void, param0: LPDIJOYTYPECALLBACK, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::EnumTypes(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: *mut DIJOYTYPEINFO, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::GetTypeInfo(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn SetTypeInfo(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: *mut DIJOYTYPEINFO, param2: u32, param3: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn SetTypeInfo(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: *mut DIJOYTYPEINFO, param2: u32, param3: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::SetTypeInfo(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute(¶m3)).into() } - unsafe extern "system" fn DeleteType(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn DeleteType(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::DeleteType(this, core::mem::transmute(¶m0)).into() } - unsafe extern "system" fn GetConfig(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn GetConfig(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::GetConfig(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn SetConfig(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn SetConfig(this: *mut core::ffi::c_void, param0: u32, param1: *mut DIJOYCONFIG, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::SetConfig(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn DeleteConfig(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn DeleteConfig(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::DeleteConfig(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetUserValues(this: *mut core::ffi::c_void, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn GetUserValues(this: *mut core::ffi::c_void, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::GetUserValues(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetUserValues(this: *mut core::ffi::c_void, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn SetUserValues(this: *mut core::ffi::c_void, param0: *mut DIJOYUSERVALUES, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::SetUserValues(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn AddNewHardware(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn AddNewHardware(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::AddNewHardware(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn OpenTypeKey(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: u32, param2: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn OpenTypeKey(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR, param1: u32, param2: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::OpenTypeKey(this, core::mem::transmute(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn OpenAppStatusKey(this: *mut core::ffi::c_void, param0: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IDirectInputJoyConfig8_Impl, - { + unsafe extern "system" fn OpenAppStatusKey(this: *mut core::ffi::c_void, param0: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputJoyConfig8_Impl::OpenAppStatusKey(this, core::mem::transmute_copy(¶m0)).into() } @@ -1988,7 +1367,7 @@ impl IDirectInputJoyConfig8_Vtbl { iid == &::IID } } -pub trait IDirectInputW_Impl: Sized { +pub trait IDirectInputW_Impl: Sized + windows_core::IUnknownImpl { fn CreateDevice(&self, param0: *const windows_core::GUID, param1: *mut Option, param2: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EnumDevices(&self, param0: u32, param1: LPDIENUMDEVICESCALLBACKW, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::Result<()>; fn GetDeviceStatus(&self, param0: *const windows_core::GUID) -> windows_core::Result<()>; @@ -1997,42 +1376,24 @@ pub trait IDirectInputW_Impl: Sized { } impl windows_core::RuntimeName for IDirectInputW {} impl IDirectInputW_Vtbl { - pub const fn new() -> IDirectInputW_Vtbl - where - Identity: IDirectInputW_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectInputW_Impl, - { + pub const fn new() -> IDirectInputW_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputW_Impl::CreateDevice(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, param0: u32, param1: LPDIENUMDEVICESCALLBACKW, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectInputW_Impl, - { + unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, param0: u32, param1: LPDIENUMDEVICESCALLBACKW, param2: *mut core::ffi::c_void, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputW_Impl::EnumDevices(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn GetDeviceStatus(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectInputW_Impl, - { + unsafe extern "system" fn GetDeviceStatus(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputW_Impl::GetDeviceStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputW_Impl, - { + unsafe extern "system" fn RunControlPanel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputW_Impl::RunControlPanel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectInputW_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectInputW_Impl::Initialize(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } 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 171b87307d..e7e603df22 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,4 @@ -pub trait IEnumWIA_DEV_CAPS_Impl: Sized { +pub trait IEnumWIA_DEV_CAPS_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut WIA_DEV_CAP, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -7,35 +7,20 @@ pub trait IEnumWIA_DEV_CAPS_Impl: Sized { } impl windows_core::RuntimeName for IEnumWIA_DEV_CAPS {} impl IEnumWIA_DEV_CAPS_Vtbl { - pub const fn new() -> IEnumWIA_DEV_CAPS_Vtbl - where - Identity: IEnumWIA_DEV_CAPS_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut WIA_DEV_CAP, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWIA_DEV_CAPS_Impl, - { + pub const fn new() -> IEnumWIA_DEV_CAPS_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut WIA_DEV_CAP, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWIA_DEV_CAPS_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumWIA_DEV_CAPS_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWIA_DEV_CAPS_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWIA_DEV_CAPS_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWIA_DEV_CAPS_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWIA_DEV_CAPS_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWIA_DEV_CAPS_Impl::Clone(this) { Ok(ok__) => { @@ -45,10 +30,7 @@ impl IEnumWIA_DEV_CAPS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWIA_DEV_CAPS_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWIA_DEV_CAPS_Impl::GetCount(this) { Ok(ok__) => { @@ -71,7 +53,7 @@ impl IEnumWIA_DEV_CAPS_Vtbl { iid == &::IID } } -pub trait IEnumWIA_DEV_INFO_Impl: Sized { +pub trait IEnumWIA_DEV_INFO_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -80,35 +62,20 @@ pub trait IEnumWIA_DEV_INFO_Impl: Sized { } impl windows_core::RuntimeName for IEnumWIA_DEV_INFO {} impl IEnumWIA_DEV_INFO_Vtbl { - pub const fn new() -> IEnumWIA_DEV_INFO_Vtbl - where - Identity: IEnumWIA_DEV_INFO_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWIA_DEV_INFO_Impl, - { + pub const fn new() -> IEnumWIA_DEV_INFO_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWIA_DEV_INFO_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumWIA_DEV_INFO_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWIA_DEV_INFO_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWIA_DEV_INFO_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWIA_DEV_INFO_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWIA_DEV_INFO_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWIA_DEV_INFO_Impl::Clone(this) { Ok(ok__) => { @@ -118,10 +85,7 @@ impl IEnumWIA_DEV_INFO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, celt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWIA_DEV_INFO_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, celt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWIA_DEV_INFO_Impl::GetCount(this) { Ok(ok__) => { @@ -144,7 +108,7 @@ impl IEnumWIA_DEV_INFO_Vtbl { iid == &::IID } } -pub trait IEnumWIA_FORMAT_INFO_Impl: Sized { +pub trait IEnumWIA_FORMAT_INFO_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut WIA_FORMAT_INFO, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -153,35 +117,20 @@ pub trait IEnumWIA_FORMAT_INFO_Impl: Sized { } impl windows_core::RuntimeName for IEnumWIA_FORMAT_INFO {} impl IEnumWIA_FORMAT_INFO_Vtbl { - pub const fn new() -> IEnumWIA_FORMAT_INFO_Vtbl - where - Identity: IEnumWIA_FORMAT_INFO_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut WIA_FORMAT_INFO, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWIA_FORMAT_INFO_Impl, - { + pub const fn new() -> IEnumWIA_FORMAT_INFO_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut WIA_FORMAT_INFO, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWIA_FORMAT_INFO_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumWIA_FORMAT_INFO_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWIA_FORMAT_INFO_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWIA_FORMAT_INFO_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWIA_FORMAT_INFO_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWIA_FORMAT_INFO_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWIA_FORMAT_INFO_Impl::Clone(this) { Ok(ok__) => { @@ -191,10 +140,7 @@ impl IEnumWIA_FORMAT_INFO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWIA_FORMAT_INFO_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWIA_FORMAT_INFO_Impl::GetCount(this) { Ok(ok__) => { @@ -217,7 +163,7 @@ impl IEnumWIA_FORMAT_INFO_Vtbl { iid == &::IID } } -pub trait IEnumWiaItem_Impl: Sized { +pub trait IEnumWiaItem_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppiwiaitem: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -226,35 +172,20 @@ pub trait IEnumWiaItem_Impl: Sized { } impl windows_core::RuntimeName for IEnumWiaItem {} impl IEnumWiaItem_Vtbl { - pub const fn new() -> IEnumWiaItem_Vtbl - where - Identity: IEnumWiaItem_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppiwiaitem: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWiaItem_Impl, - { + pub const fn new() -> IEnumWiaItem_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppiwiaitem: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWiaItem_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppiwiaitem), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumWiaItem_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWiaItem_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWiaItem_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWiaItem_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWiaItem_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWiaItem_Impl::Clone(this) { Ok(ok__) => { @@ -264,10 +195,7 @@ impl IEnumWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, celt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWiaItem_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, celt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWiaItem_Impl::GetCount(this) { Ok(ok__) => { @@ -290,7 +218,7 @@ impl IEnumWiaItem_Vtbl { iid == &::IID } } -pub trait IEnumWiaItem2_Impl: Sized { +pub trait IEnumWiaItem2_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppiwiaitem2: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -299,35 +227,20 @@ pub trait IEnumWiaItem2_Impl: Sized { } impl windows_core::RuntimeName for IEnumWiaItem2 {} impl IEnumWiaItem2_Vtbl { - pub const fn new() -> IEnumWiaItem2_Vtbl - where - Identity: IEnumWiaItem2_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppiwiaitem2: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWiaItem2_Impl, - { + pub const fn new() -> IEnumWiaItem2_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppiwiaitem2: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWiaItem2_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppiwiaitem2), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumWiaItem2_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWiaItem2_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWiaItem2_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWiaItem2_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWiaItem2_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWiaItem2_Impl::Clone(this) { Ok(ok__) => { @@ -337,10 +250,7 @@ impl IEnumWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, celt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWiaItem2_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, celt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWiaItem2_Impl::GetCount(this) { Ok(ok__) => { @@ -363,20 +273,14 @@ impl IEnumWiaItem2_Vtbl { iid == &::IID } } -pub trait IWiaAppErrorHandler_Impl: Sized { +pub trait IWiaAppErrorHandler_Impl: Sized + windows_core::IUnknownImpl { fn GetWindow(&self) -> windows_core::Result; fn ReportStatus(&self, lflags: i32, pwiaitem2: Option<&IWiaItem2>, hrstatus: windows_core::HRESULT, lpercentcomplete: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWiaAppErrorHandler {} impl IWiaAppErrorHandler_Vtbl { - pub const fn new() -> IWiaAppErrorHandler_Vtbl - where - Identity: IWiaAppErrorHandler_Impl, - { - unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IWiaAppErrorHandler_Impl, - { + pub const fn new() -> IWiaAppErrorHandler_Vtbl { + unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaAppErrorHandler_Impl::GetWindow(this) { Ok(ok__) => { @@ -386,10 +290,7 @@ impl IWiaAppErrorHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReportStatus(this: *mut core::ffi::c_void, lflags: i32, pwiaitem2: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, lpercentcomplete: i32) -> windows_core::HRESULT - where - Identity: IWiaAppErrorHandler_Impl, - { + unsafe extern "system" fn ReportStatus(this: *mut core::ffi::c_void, lflags: i32, pwiaitem2: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, lpercentcomplete: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaAppErrorHandler_Impl::ReportStatus(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pwiaitem2), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&lpercentcomplete)).into() } @@ -403,19 +304,13 @@ impl IWiaAppErrorHandler_Vtbl { iid == &::IID } } -pub trait IWiaDataCallback_Impl: Sized { +pub trait IWiaDataCallback_Impl: Sized + windows_core::IUnknownImpl { fn BandedDataCallback(&self, lmessage: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, lreserved: i32, lreslength: i32, pbbuffer: *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWiaDataCallback {} impl IWiaDataCallback_Vtbl { - pub const fn new() -> IWiaDataCallback_Vtbl - where - Identity: IWiaDataCallback_Impl, - { - unsafe extern "system" fn BandedDataCallback(this: *mut core::ffi::c_void, lmessage: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, lreserved: i32, lreslength: i32, pbbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IWiaDataCallback_Impl, - { + pub const fn new() -> IWiaDataCallback_Vtbl { + unsafe extern "system" fn BandedDataCallback(this: *mut core::ffi::c_void, lmessage: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, lreserved: i32, lreslength: i32, pbbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDataCallback_Impl::BandedDataCallback(this, core::mem::transmute_copy(&lmessage), core::mem::transmute_copy(&lstatus), core::mem::transmute_copy(&lpercentcomplete), core::mem::transmute_copy(&loffset), core::mem::transmute_copy(&llength), core::mem::transmute_copy(&lreserved), core::mem::transmute_copy(&lreslength), core::mem::transmute_copy(&pbbuffer)).into() } @@ -426,7 +321,7 @@ impl IWiaDataCallback_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IWiaDataTransfer_Impl: Sized { +pub trait IWiaDataTransfer_Impl: Sized + windows_core::IUnknownImpl { fn idtGetData(&self, pmedium: *mut super::super::System::Com::STGMEDIUM, piwiadatacallback: Option<&IWiaDataCallback>) -> windows_core::Result<()>; fn idtGetBandedData(&self, pwiadatatransinfo: *mut WIA_DATA_TRANSFER_INFO, piwiadatacallback: Option<&IWiaDataCallback>) -> windows_core::Result<()>; fn idtQueryGetData(&self, pfe: *const WIA_FORMAT_INFO) -> windows_core::Result<()>; @@ -437,35 +332,20 @@ pub trait IWiaDataTransfer_Impl: Sized { impl windows_core::RuntimeName for IWiaDataTransfer {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl IWiaDataTransfer_Vtbl { - pub const fn new() -> IWiaDataTransfer_Vtbl - where - Identity: IWiaDataTransfer_Impl, - { - unsafe extern "system" fn idtGetData(this: *mut core::ffi::c_void, pmedium: *mut super::super::System::Com::STGMEDIUM, piwiadatacallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDataTransfer_Impl, - { + pub const fn new() -> IWiaDataTransfer_Vtbl { + unsafe extern "system" fn idtGetData(this: *mut core::ffi::c_void, pmedium: *mut super::super::System::Com::STGMEDIUM, piwiadatacallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDataTransfer_Impl::idtGetData(this, core::mem::transmute_copy(&pmedium), windows_core::from_raw_borrowed(&piwiadatacallback)).into() } - unsafe extern "system" fn idtGetBandedData(this: *mut core::ffi::c_void, pwiadatatransinfo: *mut WIA_DATA_TRANSFER_INFO, piwiadatacallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDataTransfer_Impl, - { + unsafe extern "system" fn idtGetBandedData(this: *mut core::ffi::c_void, pwiadatatransinfo: *mut WIA_DATA_TRANSFER_INFO, piwiadatacallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDataTransfer_Impl::idtGetBandedData(this, core::mem::transmute_copy(&pwiadatatransinfo), windows_core::from_raw_borrowed(&piwiadatacallback)).into() } - unsafe extern "system" fn idtQueryGetData(this: *mut core::ffi::c_void, pfe: *const WIA_FORMAT_INFO) -> windows_core::HRESULT - where - Identity: IWiaDataTransfer_Impl, - { + unsafe extern "system" fn idtQueryGetData(this: *mut core::ffi::c_void, pfe: *const WIA_FORMAT_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDataTransfer_Impl::idtQueryGetData(this, core::mem::transmute_copy(&pfe)).into() } - unsafe extern "system" fn idtEnumWIA_FORMAT_INFO(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDataTransfer_Impl, - { + unsafe extern "system" fn idtEnumWIA_FORMAT_INFO(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDataTransfer_Impl::idtEnumWIA_FORMAT_INFO(this) { Ok(ok__) => { @@ -475,10 +355,7 @@ impl IWiaDataTransfer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn idtGetExtendedTransferInfo(this: *mut core::ffi::c_void, pextendedtransferinfo: *mut WIA_EXTENDED_TRANSFER_INFO) -> windows_core::HRESULT - where - Identity: IWiaDataTransfer_Impl, - { + unsafe extern "system" fn idtGetExtendedTransferInfo(this: *mut core::ffi::c_void, pextendedtransferinfo: *mut WIA_EXTENDED_TRANSFER_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDataTransfer_Impl::idtGetExtendedTransferInfo(this, core::mem::transmute_copy(&pextendedtransferinfo)).into() } @@ -495,7 +372,7 @@ impl IWiaDataTransfer_Vtbl { iid == &::IID } } -pub trait IWiaDevMgr_Impl: Sized { +pub trait IWiaDevMgr_Impl: Sized + windows_core::IUnknownImpl { fn EnumDeviceInfo(&self, lflag: i32) -> 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 Option) -> windows_core::Result<()>; @@ -508,14 +385,8 @@ pub trait IWiaDevMgr_Impl: Sized { } impl windows_core::RuntimeName for IWiaDevMgr {} impl IWiaDevMgr_Vtbl { - pub const fn new() -> IWiaDevMgr_Vtbl - where - Identity: IWiaDevMgr_Impl, - { - unsafe extern "system" fn EnumDeviceInfo(this: *mut core::ffi::c_void, lflag: i32, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDevMgr_Impl, - { + pub const fn new() -> IWiaDevMgr_Vtbl { + unsafe extern "system" fn EnumDeviceInfo(this: *mut core::ffi::c_void, lflag: i32, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDevMgr_Impl::EnumDeviceInfo(this, core::mem::transmute_copy(&lflag)) { Ok(ok__) => { @@ -525,10 +396,7 @@ impl IWiaDevMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, bstrdeviceid: core::mem::MaybeUninit, ppwiaitemroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDevMgr_Impl, - { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, bstrdeviceid: core::mem::MaybeUninit, ppwiaitemroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDevMgr_Impl::CreateDevice(this, core::mem::transmute(&bstrdeviceid)) { Ok(ok__) => { @@ -538,38 +406,23 @@ impl IWiaDevMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectDeviceDlg(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut core::mem::MaybeUninit, ppitemroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDevMgr_Impl, - { + unsafe extern "system" fn SelectDeviceDlg(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut core::mem::MaybeUninit, ppitemroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr_Impl::SelectDeviceDlg(this, 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(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaDevMgr_Impl, - { + unsafe extern "system" fn SelectDeviceDlgID(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr_Impl::SelectDeviceDlgID(this, 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(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::MaybeUninit, pguidformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWiaDevMgr_Impl, - { + unsafe extern "system" fn GetImageDlg(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::MaybeUninit, pguidformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr_Impl::GetImageDlg(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&ldevicetype), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&lintent), windows_core::from_raw_borrowed(&pitemroot), core::mem::transmute(&bstrfilename), core::mem::transmute_copy(&pguidformat)).into() } - unsafe extern "system" fn RegisterEventCallbackProgram(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, bstrcommandline: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, bstrdescription: core::mem::MaybeUninit, bstricon: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaDevMgr_Impl, - { + unsafe extern "system" fn RegisterEventCallbackProgram(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, bstrcommandline: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, bstrdescription: core::mem::MaybeUninit, bstricon: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr_Impl::RegisterEventCallbackProgram(this, 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(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, piwiaeventcallback: *mut core::ffi::c_void, peventobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDevMgr_Impl, - { + unsafe extern "system" fn RegisterEventCallbackInterface(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, piwiaeventcallback: *mut core::ffi::c_void, peventobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDevMgr_Impl::RegisterEventCallbackInterface(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstrdeviceid), core::mem::transmute_copy(&peventguid), windows_core::from_raw_borrowed(&piwiaeventcallback)) { Ok(ok__) => { @@ -579,17 +432,11 @@ impl IWiaDevMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterEventCallbackCLSID(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, pclsid: *const windows_core::GUID, bstrname: core::mem::MaybeUninit, bstrdescription: core::mem::MaybeUninit, bstricon: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaDevMgr_Impl, - { + unsafe extern "system" fn RegisterEventCallbackCLSID(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, pclsid: *const windows_core::GUID, bstrname: core::mem::MaybeUninit, bstrdescription: core::mem::MaybeUninit, bstricon: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr_Impl::RegisterEventCallbackCLSID(this, 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 AddDeviceDlg(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, lflags: i32) -> windows_core::HRESULT - where - Identity: IWiaDevMgr_Impl, - { + unsafe extern "system" fn AddDeviceDlg(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr_Impl::AddDeviceDlg(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&lflags)).into() } @@ -610,7 +457,7 @@ impl IWiaDevMgr_Vtbl { iid == &::IID } } -pub trait IWiaDevMgr2_Impl: Sized { +pub trait IWiaDevMgr2_Impl: Sized + windows_core::IUnknownImpl { fn EnumDeviceInfo(&self, lflags: i32) -> 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 Option) -> windows_core::Result<()>; @@ -622,14 +469,8 @@ pub trait IWiaDevMgr2_Impl: Sized { } impl windows_core::RuntimeName for IWiaDevMgr2 {} impl IWiaDevMgr2_Vtbl { - pub const fn new() -> IWiaDevMgr2_Vtbl - where - Identity: IWiaDevMgr2_Impl, - { - unsafe extern "system" fn EnumDeviceInfo(this: *mut core::ffi::c_void, lflags: i32, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDevMgr2_Impl, - { + pub const fn new() -> IWiaDevMgr2_Vtbl { + unsafe extern "system" fn EnumDeviceInfo(this: *mut core::ffi::c_void, lflags: i32, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDevMgr2_Impl::EnumDeviceInfo(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -639,10 +480,7 @@ impl IWiaDevMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, ppwiaitem2root: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDevMgr2_Impl, - { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, ppwiaitem2root: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDevMgr2_Impl::CreateDevice(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstrdeviceid)) { Ok(ok__) => { @@ -652,24 +490,15 @@ impl IWiaDevMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectDeviceDlg(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut core::mem::MaybeUninit, ppitemroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDevMgr2_Impl, - { + unsafe extern "system" fn SelectDeviceDlg(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut core::mem::MaybeUninit, ppitemroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr2_Impl::SelectDeviceDlg(this, 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(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaDevMgr2_Impl, - { + unsafe extern "system" fn SelectDeviceDlgID(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr2_Impl::SelectDeviceDlgID(this, 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(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, piwiaeventcallback: *mut core::ffi::c_void, peventobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDevMgr2_Impl, - { + unsafe extern "system" fn RegisterEventCallbackInterface(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, piwiaeventcallback: *mut core::ffi::c_void, peventobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDevMgr2_Impl::RegisterEventCallbackInterface(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstrdeviceid), core::mem::transmute_copy(&peventguid), windows_core::from_raw_borrowed(&piwiaeventcallback)) { Ok(ok__) => { @@ -679,24 +508,15 @@ impl IWiaDevMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterEventCallbackProgram(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, bstrfullappname: core::mem::MaybeUninit, bstrcommandlinearg: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, bstrdescription: core::mem::MaybeUninit, bstricon: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaDevMgr2_Impl, - { + unsafe extern "system" fn RegisterEventCallbackProgram(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, bstrfullappname: core::mem::MaybeUninit, bstrcommandlinearg: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, bstrdescription: core::mem::MaybeUninit, bstricon: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr2_Impl::RegisterEventCallbackProgram(this, 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(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, pclsid: *const windows_core::GUID, bstrname: core::mem::MaybeUninit, bstrdescription: core::mem::MaybeUninit, bstricon: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaDevMgr2_Impl, - { + unsafe extern "system" fn RegisterEventCallbackCLSID(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, peventguid: *const windows_core::GUID, pclsid: *const windows_core::GUID, bstrname: core::mem::MaybeUninit, bstrdescription: core::mem::MaybeUninit, bstricon: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr2_Impl::RegisterEventCallbackCLSID(this, 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(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, hwndparent: super::super::Foundation::HWND, bstrfoldername: core::mem::MaybeUninit, bstrfilename: core::mem::MaybeUninit, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut windows_core::BSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDevMgr2_Impl, - { + unsafe extern "system" fn GetImageDlg(this: *mut core::ffi::c_void, lflags: i32, bstrdeviceid: core::mem::MaybeUninit, hwndparent: super::super::Foundation::HWND, bstrfoldername: core::mem::MaybeUninit, bstrfilename: core::mem::MaybeUninit, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut windows_core::BSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDevMgr2_Impl::GetImageDlg(this, 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() } @@ -716,7 +536,7 @@ impl IWiaDevMgr2_Vtbl { iid == &::IID } } -pub trait IWiaDrvItem_Impl: Sized { +pub trait IWiaDrvItem_Impl: Sized + windows_core::IUnknownImpl { fn GetItemFlags(&self) -> windows_core::Result; fn GetDeviceSpecContext(&self) -> windows_core::Result<*mut u8>; fn GetFullItemName(&self) -> windows_core::Result; @@ -733,14 +553,8 @@ pub trait IWiaDrvItem_Impl: Sized { } impl windows_core::RuntimeName for IWiaDrvItem {} impl IWiaDrvItem_Vtbl { - pub const fn new() -> IWiaDrvItem_Vtbl - where - Identity: IWiaDrvItem_Impl, - { - unsafe extern "system" fn GetItemFlags(this: *mut core::ffi::c_void, __midl__iwiadrvitem0000: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + pub const fn new() -> IWiaDrvItem_Vtbl { + unsafe extern "system" fn GetItemFlags(this: *mut core::ffi::c_void, __midl__iwiadrvitem0000: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDrvItem_Impl::GetItemFlags(this) { Ok(ok__) => { @@ -750,10 +564,7 @@ impl IWiaDrvItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceSpecContext(this: *mut core::ffi::c_void, __midl__iwiadrvitem0001: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn GetDeviceSpecContext(this: *mut core::ffi::c_void, __midl__iwiadrvitem0001: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDrvItem_Impl::GetDeviceSpecContext(this) { Ok(ok__) => { @@ -763,10 +574,7 @@ impl IWiaDrvItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFullItemName(this: *mut core::ffi::c_void, __midl__iwiadrvitem0002: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn GetFullItemName(this: *mut core::ffi::c_void, __midl__iwiadrvitem0002: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDrvItem_Impl::GetFullItemName(this) { Ok(ok__) => { @@ -776,10 +584,7 @@ impl IWiaDrvItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemName(this: *mut core::ffi::c_void, __midl__iwiadrvitem0003: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn GetItemName(this: *mut core::ffi::c_void, __midl__iwiadrvitem0003: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDrvItem_Impl::GetItemName(this) { Ok(ok__) => { @@ -789,31 +594,19 @@ impl IWiaDrvItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddItemToFolder(this: *mut core::ffi::c_void, __midl__iwiadrvitem0004: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn AddItemToFolder(this: *mut core::ffi::c_void, __midl__iwiadrvitem0004: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDrvItem_Impl::AddItemToFolder(this, windows_core::from_raw_borrowed(&__midl__iwiadrvitem0004)).into() } - unsafe extern "system" fn UnlinkItemTree(this: *mut core::ffi::c_void, __midl__iwiadrvitem0005: i32) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn UnlinkItemTree(this: *mut core::ffi::c_void, __midl__iwiadrvitem0005: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDrvItem_Impl::UnlinkItemTree(this, core::mem::transmute_copy(&__midl__iwiadrvitem0005)).into() } - unsafe extern "system" fn RemoveItemFromFolder(this: *mut core::ffi::c_void, __midl__iwiadrvitem0006: i32) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn RemoveItemFromFolder(this: *mut core::ffi::c_void, __midl__iwiadrvitem0006: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaDrvItem_Impl::RemoveItemFromFolder(this, core::mem::transmute_copy(&__midl__iwiadrvitem0006)).into() } - unsafe extern "system" fn FindItemByName(this: *mut core::ffi::c_void, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: core::mem::MaybeUninit, __midl__iwiadrvitem0009: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn FindItemByName(this: *mut core::ffi::c_void, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: core::mem::MaybeUninit, __midl__iwiadrvitem0009: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDrvItem_Impl::FindItemByName(this, core::mem::transmute_copy(&__midl__iwiadrvitem0007), core::mem::transmute(&__midl__iwiadrvitem0008)) { Ok(ok__) => { @@ -823,10 +616,7 @@ impl IWiaDrvItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindChildItemByName(this: *mut core::ffi::c_void, __midl__iwiadrvitem0010: core::mem::MaybeUninit, __midl__iwiadrvitem0011: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn FindChildItemByName(this: *mut core::ffi::c_void, __midl__iwiadrvitem0010: core::mem::MaybeUninit, __midl__iwiadrvitem0011: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDrvItem_Impl::FindChildItemByName(this, core::mem::transmute(&__midl__iwiadrvitem0010)) { Ok(ok__) => { @@ -836,10 +626,7 @@ impl IWiaDrvItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentItem(this: *mut core::ffi::c_void, __midl__iwiadrvitem0012: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn GetParentItem(this: *mut core::ffi::c_void, __midl__iwiadrvitem0012: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDrvItem_Impl::GetParentItem(this) { Ok(ok__) => { @@ -849,10 +636,7 @@ impl IWiaDrvItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFirstChildItem(this: *mut core::ffi::c_void, __midl__iwiadrvitem0013: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn GetFirstChildItem(this: *mut core::ffi::c_void, __midl__iwiadrvitem0013: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDrvItem_Impl::GetFirstChildItem(this) { Ok(ok__) => { @@ -862,10 +646,7 @@ impl IWiaDrvItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSiblingItem(this: *mut core::ffi::c_void, __midl__iwiadrvitem0014: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn GetNextSiblingItem(this: *mut core::ffi::c_void, __midl__iwiadrvitem0014: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDrvItem_Impl::GetNextSiblingItem(this) { Ok(ok__) => { @@ -875,10 +656,7 @@ impl IWiaDrvItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DumpItemData(this: *mut core::ffi::c_void, __midl__iwiadrvitem0015: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaDrvItem_Impl, - { + unsafe extern "system" fn DumpItemData(this: *mut core::ffi::c_void, __midl__iwiadrvitem0015: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaDrvItem_Impl::DumpItemData(this) { Ok(ok__) => { @@ -909,27 +687,18 @@ impl IWiaDrvItem_Vtbl { iid == &::IID } } -pub trait IWiaErrorHandler_Impl: Sized { +pub trait IWiaErrorHandler_Impl: Sized + windows_core::IUnknownImpl { fn ReportStatus(&self, lflags: i32, hwndparent: super::super::Foundation::HWND, pwiaitem2: Option<&IWiaItem2>, hrstatus: windows_core::HRESULT, lpercentcomplete: i32) -> windows_core::Result<()>; fn GetStatusDescription(&self, lflags: i32, pwiaitem2: Option<&IWiaItem2>, hrstatus: windows_core::HRESULT) -> windows_core::Result; } impl windows_core::RuntimeName for IWiaErrorHandler {} impl IWiaErrorHandler_Vtbl { - pub const fn new() -> IWiaErrorHandler_Vtbl - where - Identity: IWiaErrorHandler_Impl, - { - unsafe extern "system" fn ReportStatus(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 - where - Identity: IWiaErrorHandler_Impl, - { + pub const fn new() -> IWiaErrorHandler_Vtbl { + unsafe extern "system" fn ReportStatus(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaErrorHandler_Impl::ReportStatus(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&hwndparent), windows_core::from_raw_borrowed(&pwiaitem2), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&lpercentcomplete)).into() } - unsafe extern "system" fn GetStatusDescription(this: *mut core::ffi::c_void, lflags: i32, pwiaitem2: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaErrorHandler_Impl, - { + unsafe extern "system" fn GetStatusDescription(this: *mut core::ffi::c_void, lflags: i32, pwiaitem2: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaErrorHandler_Impl::GetStatusDescription(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pwiaitem2), core::mem::transmute_copy(&hrstatus)) { Ok(ok__) => { @@ -949,19 +718,13 @@ impl IWiaErrorHandler_Vtbl { iid == &::IID } } -pub trait IWiaEventCallback_Impl: Sized { +pub trait IWiaEventCallback_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IWiaEventCallback {} impl IWiaEventCallback_Vtbl { - pub const fn new() -> IWiaEventCallback_Vtbl - where - Identity: IWiaEventCallback_Impl, - { - unsafe extern "system" fn ImageEventCallback(this: *mut core::ffi::c_void, peventguid: *const windows_core::GUID, bstreventdescription: core::mem::MaybeUninit, bstrdeviceid: core::mem::MaybeUninit, bstrdevicedescription: core::mem::MaybeUninit, dwdevicetype: u32, bstrfullitemname: core::mem::MaybeUninit, puleventtype: *mut u32, ulreserved: u32) -> windows_core::HRESULT - where - Identity: IWiaEventCallback_Impl, - { + pub const fn new() -> IWiaEventCallback_Vtbl { + unsafe extern "system" fn ImageEventCallback(this: *mut core::ffi::c_void, peventguid: *const windows_core::GUID, bstreventdescription: core::mem::MaybeUninit, bstrdeviceid: core::mem::MaybeUninit, bstrdevicedescription: core::mem::MaybeUninit, dwdevicetype: u32, bstrfullitemname: core::mem::MaybeUninit, puleventtype: *mut u32, ulreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaEventCallback_Impl::ImageEventCallback(this, 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() } @@ -972,7 +735,7 @@ impl IWiaEventCallback_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWiaImageFilter_Impl: Sized { +pub trait IWiaImageFilter_Impl: Sized + windows_core::IUnknownImpl { fn InitializeFilter(&self, pwiaitem2: Option<&IWiaItem2>, pwiatransfercallback: Option<&IWiaTransferCallback>) -> windows_core::Result<()>; fn SetNewCallback(&self, pwiatransfercallback: Option<&IWiaTransferCallback>) -> windows_core::Result<()>; fn FilterPreviewImage(&self, lflags: i32, pwiachilditem2: Option<&IWiaItem2>, inputimageextents: &super::super::Foundation::RECT, pinputstream: Option<&super::super::System::Com::IStream>) -> windows_core::Result<()>; @@ -982,35 +745,20 @@ pub trait IWiaImageFilter_Impl: Sized { impl windows_core::RuntimeName for IWiaImageFilter {} #[cfg(feature = "Win32_System_Com")] impl IWiaImageFilter_Vtbl { - pub const fn new() -> IWiaImageFilter_Vtbl - where - Identity: IWiaImageFilter_Impl, - { - unsafe extern "system" fn InitializeFilter(this: *mut core::ffi::c_void, pwiaitem2: *mut core::ffi::c_void, pwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaImageFilter_Impl, - { + pub const fn new() -> IWiaImageFilter_Vtbl { + unsafe extern "system" fn InitializeFilter(this: *mut core::ffi::c_void, pwiaitem2: *mut core::ffi::c_void, pwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaImageFilter_Impl::InitializeFilter(this, windows_core::from_raw_borrowed(&pwiaitem2), windows_core::from_raw_borrowed(&pwiatransfercallback)).into() } - unsafe extern "system" fn SetNewCallback(this: *mut core::ffi::c_void, pwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaImageFilter_Impl, - { + unsafe extern "system" fn SetNewCallback(this: *mut core::ffi::c_void, pwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaImageFilter_Impl::SetNewCallback(this, windows_core::from_raw_borrowed(&pwiatransfercallback)).into() } - unsafe extern "system" fn FilterPreviewImage(this: *mut core::ffi::c_void, lflags: i32, pwiachilditem2: *mut core::ffi::c_void, inputimageextents: super::super::Foundation::RECT, pinputstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaImageFilter_Impl, - { + unsafe extern "system" fn FilterPreviewImage(this: *mut core::ffi::c_void, lflags: i32, pwiachilditem2: *mut core::ffi::c_void, inputimageextents: super::super::Foundation::RECT, pinputstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaImageFilter_Impl::FilterPreviewImage(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pwiachilditem2), core::mem::transmute(&inputimageextents), windows_core::from_raw_borrowed(&pinputstream)).into() } - unsafe extern "system" fn ApplyProperties(this: *mut core::ffi::c_void, pwiapropertystorage: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaImageFilter_Impl, - { + unsafe extern "system" fn ApplyProperties(this: *mut core::ffi::c_void, pwiapropertystorage: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaImageFilter_Impl::ApplyProperties(this, windows_core::from_raw_borrowed(&pwiapropertystorage)).into() } @@ -1026,7 +774,7 @@ impl IWiaImageFilter_Vtbl { iid == &::IID } } -pub trait IWiaItem_Impl: Sized { +pub trait IWiaItem_Impl: Sized + windows_core::IUnknownImpl { fn GetItemType(&self) -> windows_core::Result; fn AnalyzeItem(&self, lflags: i32) -> windows_core::Result<()>; fn EnumChildItems(&self) -> windows_core::Result; @@ -1045,14 +793,8 @@ pub trait IWiaItem_Impl: Sized { } impl windows_core::RuntimeName for IWiaItem {} impl IWiaItem_Vtbl { - pub const fn new() -> IWiaItem_Vtbl - where - Identity: IWiaItem_Impl, - { - unsafe extern "system" fn GetItemType(this: *mut core::ffi::c_void, pitemtype: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + pub const fn new() -> IWiaItem_Vtbl { + unsafe extern "system" fn GetItemType(this: *mut core::ffi::c_void, pitemtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem_Impl::GetItemType(this) { Ok(ok__) => { @@ -1062,17 +804,11 @@ impl IWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AnalyzeItem(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn AnalyzeItem(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem_Impl::AnalyzeItem(this, core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn EnumChildItems(this: *mut core::ffi::c_void, ppienumwiaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn EnumChildItems(this: *mut core::ffi::c_void, ppienumwiaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem_Impl::EnumChildItems(this) { Ok(ok__) => { @@ -1082,17 +818,11 @@ impl IWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem_Impl::DeleteItem(this, core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn CreateChildItem(this: *mut core::ffi::c_void, lflags: i32, bstritemname: core::mem::MaybeUninit, bstrfullitemname: core::mem::MaybeUninit, ppiwiaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn CreateChildItem(this: *mut core::ffi::c_void, lflags: i32, bstritemname: core::mem::MaybeUninit, bstrfullitemname: core::mem::MaybeUninit, ppiwiaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem_Impl::CreateChildItem(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstritemname), core::mem::transmute(&bstrfullitemname)) { Ok(ok__) => { @@ -1102,10 +832,7 @@ impl IWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumRegisterEventInfo(this: *mut core::ffi::c_void, lflags: i32, peventguid: *const windows_core::GUID, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn EnumRegisterEventInfo(this: *mut core::ffi::c_void, lflags: i32, peventguid: *const windows_core::GUID, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem_Impl::EnumRegisterEventInfo(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&peventguid)) { Ok(ok__) => { @@ -1115,10 +842,7 @@ impl IWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindItemByName(this: *mut core::ffi::c_void, lflags: i32, bstrfullitemname: core::mem::MaybeUninit, ppiwiaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn FindItemByName(this: *mut core::ffi::c_void, lflags: i32, bstrfullitemname: core::mem::MaybeUninit, ppiwiaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem_Impl::FindItemByName(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstrfullitemname)) { Ok(ok__) => { @@ -1128,24 +852,15 @@ impl IWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceDlg(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, lflags: i32, lintent: i32, plitemcount: *mut i32, ppiwiaitem: *mut *mut Option) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn DeviceDlg(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, lflags: i32, lintent: i32, plitemcount: *mut i32, ppiwiaitem: *mut *mut Option) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem_Impl::DeviceDlg(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&lintent), core::mem::transmute_copy(&plitemcount), core::mem::transmute_copy(&ppiwiaitem)).into() } - unsafe extern "system" fn DeviceCommand(this: *mut core::ffi::c_void, lflags: i32, pcmdguid: *const windows_core::GUID, piwiaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn DeviceCommand(this: *mut core::ffi::c_void, lflags: i32, pcmdguid: *const windows_core::GUID, piwiaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem_Impl::DeviceCommand(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pcmdguid), core::mem::transmute_copy(&piwiaitem)).into() } - unsafe extern "system" fn GetRootItem(this: *mut core::ffi::c_void, ppiwiaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn GetRootItem(this: *mut core::ffi::c_void, ppiwiaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem_Impl::GetRootItem(this) { Ok(ok__) => { @@ -1155,10 +870,7 @@ impl IWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDeviceCapabilities(this: *mut core::ffi::c_void, lflags: i32, ppienumwia_dev_caps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn EnumDeviceCapabilities(this: *mut core::ffi::c_void, lflags: i32, ppienumwia_dev_caps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem_Impl::EnumDeviceCapabilities(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -1168,10 +880,7 @@ impl IWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DumpItemData(this: *mut core::ffi::c_void, bstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn DumpItemData(this: *mut core::ffi::c_void, bstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem_Impl::DumpItemData(this) { Ok(ok__) => { @@ -1181,10 +890,7 @@ impl IWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DumpDrvItemData(this: *mut core::ffi::c_void, bstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn DumpDrvItemData(this: *mut core::ffi::c_void, bstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem_Impl::DumpDrvItemData(this) { Ok(ok__) => { @@ -1194,10 +900,7 @@ impl IWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DumpTreeItemData(this: *mut core::ffi::c_void, bstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn DumpTreeItemData(this: *mut core::ffi::c_void, bstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem_Impl::DumpTreeItemData(this) { Ok(ok__) => { @@ -1207,10 +910,7 @@ impl IWiaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Diagnostic(this: *mut core::ffi::c_void, ulsize: u32, pbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IWiaItem_Impl, - { + unsafe extern "system" fn Diagnostic(this: *mut core::ffi::c_void, ulsize: u32, pbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem_Impl::Diagnostic(this, core::mem::transmute_copy(&ulsize), core::mem::transmute_copy(&pbuffer)).into() } @@ -1237,7 +937,7 @@ impl IWiaItem_Vtbl { iid == &::IID } } -pub trait IWiaItem2_Impl: Sized { +pub trait IWiaItem2_Impl: Sized + windows_core::IUnknownImpl { 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; @@ -1257,14 +957,8 @@ pub trait IWiaItem2_Impl: Sized { } impl windows_core::RuntimeName for IWiaItem2 {} impl IWiaItem2_Vtbl { - pub const fn new() -> IWiaItem2_Vtbl - where - Identity: IWiaItem2_Impl, - { - unsafe extern "system" fn CreateChildItem(this: *mut core::ffi::c_void, litemflags: i32, lcreationflags: i32, bstritemname: core::mem::MaybeUninit, ppiwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + pub const fn new() -> IWiaItem2_Vtbl { + unsafe extern "system" fn CreateChildItem(this: *mut core::ffi::c_void, litemflags: i32, lcreationflags: i32, bstritemname: core::mem::MaybeUninit, ppiwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem2_Impl::CreateChildItem(this, core::mem::transmute_copy(&litemflags), core::mem::transmute_copy(&lcreationflags), core::mem::transmute(&bstritemname)) { Ok(ok__) => { @@ -1274,17 +968,11 @@ impl IWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem2_Impl::DeleteItem(this, core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn EnumChildItems(this: *mut core::ffi::c_void, pcategoryguid: *const windows_core::GUID, ppienumwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn EnumChildItems(this: *mut core::ffi::c_void, pcategoryguid: *const windows_core::GUID, ppienumwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem2_Impl::EnumChildItems(this, core::mem::transmute_copy(&pcategoryguid)) { Ok(ok__) => { @@ -1294,10 +982,7 @@ impl IWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindItemByName(this: *mut core::ffi::c_void, lflags: i32, bstrfullitemname: core::mem::MaybeUninit, ppiwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn FindItemByName(this: *mut core::ffi::c_void, lflags: i32, bstrfullitemname: core::mem::MaybeUninit, ppiwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem2_Impl::FindItemByName(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstrfullitemname)) { Ok(ok__) => { @@ -1307,10 +992,7 @@ impl IWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemCategory(this: *mut core::ffi::c_void, pitemcategoryguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn GetItemCategory(this: *mut core::ffi::c_void, pitemcategoryguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem2_Impl::GetItemCategory(this) { Ok(ok__) => { @@ -1320,10 +1002,7 @@ impl IWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemType(this: *mut core::ffi::c_void, pitemtype: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn GetItemType(this: *mut core::ffi::c_void, pitemtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem2_Impl::GetItemType(this) { Ok(ok__) => { @@ -1333,24 +1012,15 @@ impl IWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceDlg(this: *mut core::ffi::c_void, lflags: i32, hwndparent: super::super::Foundation::HWND, bstrfoldername: core::mem::MaybeUninit, bstrfilename: core::mem::MaybeUninit, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut windows_core::BSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn DeviceDlg(this: *mut core::ffi::c_void, lflags: i32, hwndparent: super::super::Foundation::HWND, bstrfoldername: core::mem::MaybeUninit, bstrfilename: core::mem::MaybeUninit, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut windows_core::BSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem2_Impl::DeviceDlg(this, 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() } - unsafe extern "system" fn DeviceCommand(this: *mut core::ffi::c_void, lflags: i32, pcmdguid: *const windows_core::GUID, ppiwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn DeviceCommand(this: *mut core::ffi::c_void, lflags: i32, pcmdguid: *const windows_core::GUID, ppiwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem2_Impl::DeviceCommand(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pcmdguid), core::mem::transmute_copy(&ppiwiaitem2)).into() } - unsafe extern "system" fn EnumDeviceCapabilities(this: *mut core::ffi::c_void, lflags: i32, ppienumwia_dev_caps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn EnumDeviceCapabilities(this: *mut core::ffi::c_void, lflags: i32, ppienumwia_dev_caps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem2_Impl::EnumDeviceCapabilities(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -1360,24 +1030,15 @@ impl IWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckExtension(this: *mut core::ffi::c_void, lflags: i32, bstrname: core::mem::MaybeUninit, riidextensioninterface: *const windows_core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn CheckExtension(this: *mut core::ffi::c_void, lflags: i32, bstrname: core::mem::MaybeUninit, riidextensioninterface: *const windows_core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem2_Impl::CheckExtension(this, 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(this: *mut core::ffi::c_void, lflags: i32, bstrname: core::mem::MaybeUninit, riidextensioninterface: *const windows_core::GUID, ppout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn GetExtension(this: *mut core::ffi::c_void, lflags: i32, bstrname: core::mem::MaybeUninit, riidextensioninterface: *const windows_core::GUID, ppout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem2_Impl::GetExtension(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstrname), core::mem::transmute_copy(&riidextensioninterface), core::mem::transmute_copy(&ppout)).into() } - unsafe extern "system" fn GetParentItem(this: *mut core::ffi::c_void, ppiwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn GetParentItem(this: *mut core::ffi::c_void, ppiwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem2_Impl::GetParentItem(this) { Ok(ok__) => { @@ -1387,10 +1048,7 @@ impl IWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRootItem(this: *mut core::ffi::c_void, ppiwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn GetRootItem(this: *mut core::ffi::c_void, ppiwiaitem2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem2_Impl::GetRootItem(this) { Ok(ok__) => { @@ -1400,10 +1058,7 @@ impl IWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreviewComponent(this: *mut core::ffi::c_void, lflags: i32, ppwiapreview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn GetPreviewComponent(this: *mut core::ffi::c_void, lflags: i32, ppwiapreview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem2_Impl::GetPreviewComponent(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -1413,10 +1068,7 @@ impl IWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumRegisterEventInfo(this: *mut core::ffi::c_void, lflags: i32, peventguid: *const windows_core::GUID, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn EnumRegisterEventInfo(this: *mut core::ffi::c_void, lflags: i32, peventguid: *const windows_core::GUID, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItem2_Impl::EnumRegisterEventInfo(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&peventguid)) { Ok(ok__) => { @@ -1426,10 +1078,7 @@ impl IWiaItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Diagnostic(this: *mut core::ffi::c_void, ulsize: u32, pbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IWiaItem2_Impl, - { + unsafe extern "system" fn Diagnostic(this: *mut core::ffi::c_void, ulsize: u32, pbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem2_Impl::Diagnostic(this, core::mem::transmute_copy(&ulsize), core::mem::transmute_copy(&pbuffer)).into() } @@ -1457,21 +1106,15 @@ impl IWiaItem2_Vtbl { iid == &::IID } } -pub trait IWiaItemExtras_Impl: Sized { +pub trait IWiaItemExtras_Impl: Sized + windows_core::IUnknownImpl { fn GetExtendedErrorInfo(&self) -> windows_core::Result; 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<()>; } impl windows_core::RuntimeName for IWiaItemExtras {} impl IWiaItemExtras_Vtbl { - pub const fn new() -> IWiaItemExtras_Vtbl - where - Identity: IWiaItemExtras_Impl, - { - unsafe extern "system" fn GetExtendedErrorInfo(this: *mut core::ffi::c_void, bstrerrortext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaItemExtras_Impl, - { + pub const fn new() -> IWiaItemExtras_Vtbl { + unsafe extern "system" fn GetExtendedErrorInfo(this: *mut core::ffi::c_void, bstrerrortext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaItemExtras_Impl::GetExtendedErrorInfo(this) { Ok(ok__) => { @@ -1481,17 +1124,11 @@ impl IWiaItemExtras_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, dwescapecode: u32, lpindata: *const u8, cbindatasize: u32, poutdata: *mut u8, dwoutdatasize: u32, pdwactualdatasize: *mut u32) -> windows_core::HRESULT - where - Identity: IWiaItemExtras_Impl, - { + unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, dwescapecode: u32, lpindata: *const u8, cbindatasize: u32, poutdata: *mut u8, dwoutdatasize: u32, pdwactualdatasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItemExtras_Impl::Escape(this, core::mem::transmute_copy(&dwescapecode), core::mem::transmute_copy(&lpindata), core::mem::transmute_copy(&cbindatasize), core::mem::transmute_copy(&poutdata), core::mem::transmute_copy(&dwoutdatasize), core::mem::transmute_copy(&pdwactualdatasize)).into() } - unsafe extern "system" fn CancelPendingIO(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaItemExtras_Impl, - { + unsafe extern "system" fn CancelPendingIO(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItemExtras_Impl::CancelPendingIO(this).into() } @@ -1506,35 +1143,23 @@ impl IWiaItemExtras_Vtbl { iid == &::IID } } -pub trait IWiaLog_Impl: Sized { +pub trait IWiaLog_Impl: Sized + windows_core::IUnknownImpl { 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: &windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWiaLog {} impl IWiaLog_Vtbl { - pub const fn new() -> IWiaLog_Vtbl - where - Identity: IWiaLog_Impl, - { - unsafe extern "system" fn InitializeLog(this: *mut core::ffi::c_void, hinstance: i32) -> windows_core::HRESULT - where - Identity: IWiaLog_Impl, - { + pub const fn new() -> IWiaLog_Vtbl { + unsafe extern "system" fn InitializeLog(this: *mut core::ffi::c_void, hinstance: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaLog_Impl::InitializeLog(this, core::mem::transmute_copy(&hinstance)).into() } - unsafe extern "system" fn hResult(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWiaLog_Impl, - { + unsafe extern "system" fn hResult(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaLog_Impl::hResult(this, core::mem::transmute_copy(&hresult)).into() } - unsafe extern "system" fn Log(this: *mut core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaLog_Impl, - { + unsafe extern "system" fn Log(this: *mut core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaLog_Impl::Log(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&lresid), core::mem::transmute_copy(&ldetail), core::mem::transmute(&bstrtext)).into() } @@ -1549,7 +1174,7 @@ impl IWiaLog_Vtbl { iid == &::IID } } -pub trait IWiaLogEx_Impl: Sized { +pub trait IWiaLogEx_Impl: Sized + windows_core::IUnknownImpl { 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: &windows_core::BSTR) -> windows_core::Result<()>; @@ -1558,42 +1183,24 @@ pub trait IWiaLogEx_Impl: Sized { } impl windows_core::RuntimeName for IWiaLogEx {} impl IWiaLogEx_Vtbl { - pub const fn new() -> IWiaLogEx_Vtbl - where - Identity: IWiaLogEx_Impl, - { - unsafe extern "system" fn InitializeLogEx(this: *mut core::ffi::c_void, hinstance: *const u8) -> windows_core::HRESULT - where - Identity: IWiaLogEx_Impl, - { + pub const fn new() -> IWiaLogEx_Vtbl { + unsafe extern "system" fn InitializeLogEx(this: *mut core::ffi::c_void, hinstance: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaLogEx_Impl::InitializeLogEx(this, core::mem::transmute_copy(&hinstance)).into() } - unsafe extern "system" fn hResult(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWiaLogEx_Impl, - { + unsafe extern "system" fn hResult(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaLogEx_Impl::hResult(this, core::mem::transmute_copy(&hresult)).into() } - unsafe extern "system" fn Log(this: *mut core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaLogEx_Impl, - { + unsafe extern "system" fn Log(this: *mut core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaLogEx_Impl::Log(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&lresid), core::mem::transmute_copy(&ldetail), core::mem::transmute(&bstrtext)).into() } - unsafe extern "system" fn hResultEx(this: *mut core::ffi::c_void, lmethodid: i32, hresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWiaLogEx_Impl, - { + unsafe extern "system" fn hResultEx(this: *mut core::ffi::c_void, lmethodid: i32, hresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaLogEx_Impl::hResultEx(this, core::mem::transmute_copy(&lmethodid), core::mem::transmute_copy(&hresult)).into() } - unsafe extern "system" fn LogEx(this: *mut core::ffi::c_void, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaLogEx_Impl, - { + unsafe extern "system" fn LogEx(this: *mut core::ffi::c_void, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaLogEx_Impl::LogEx(this, 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() } @@ -1611,7 +1218,7 @@ impl IWiaLogEx_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IWiaMiniDrv_Impl: Sized { +pub trait IWiaMiniDrv_Impl: Sized + windows_core::IUnknownImpl { fn drvInitializeWia(&self, __midl__iwiaminidrv0000: *const u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: &windows_core::BSTR, __midl__iwiaminidrv0003: &windows_core::BSTR, __midl__iwiaminidrv0004: Option<&windows_core::IUnknown>, __midl__iwiaminidrv0005: Option<&windows_core::IUnknown>, __midl__iwiaminidrv0006: *mut Option, __midl__iwiaminidrv0007: *mut Option, __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; @@ -1634,14 +1241,8 @@ pub trait IWiaMiniDrv_Impl: Sized { impl windows_core::RuntimeName for IWiaMiniDrv {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IWiaMiniDrv_Vtbl { - pub const fn new() -> IWiaMiniDrv_Vtbl - where - Identity: IWiaMiniDrv_Impl, - { - unsafe extern "system" fn drvInitializeWia(this: *mut core::ffi::c_void, __midl__iwiaminidrv0000: *const u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: core::mem::MaybeUninit, __midl__iwiaminidrv0003: core::mem::MaybeUninit, __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 - where - Identity: IWiaMiniDrv_Impl, - { + pub const fn new() -> IWiaMiniDrv_Vtbl { + unsafe extern "system" fn drvInitializeWia(this: *mut core::ffi::c_void, __midl__iwiaminidrv0000: *const u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: core::mem::MaybeUninit, __midl__iwiaminidrv0003: core::mem::MaybeUninit, __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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrv_Impl::drvInitializeWia( this, @@ -1657,17 +1258,11 @@ impl IWiaMiniDrv_Vtbl { ) .into() } - unsafe extern "system" fn drvAcquireItemData(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 - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvAcquireItemData(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrv_Impl::drvAcquireItemData(this, core::mem::transmute_copy(&__midl__iwiaminidrv0009), core::mem::transmute_copy(&__midl__iwiaminidrv0010), core::mem::transmute_copy(&__midl__iwiaminidrv0011), core::mem::transmute_copy(&__midl__iwiaminidrv0012)).into() } - unsafe extern "system" fn drvInitItemProperties(this: *mut core::ffi::c_void, __midl__iwiaminidrv0013: *const u8, __midl__iwiaminidrv0014: i32, __midl__iwiaminidrv0015: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvInitItemProperties(this: *mut core::ffi::c_void, __midl__iwiaminidrv0013: *const u8, __midl__iwiaminidrv0014: i32, __midl__iwiaminidrv0015: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaMiniDrv_Impl::drvInitItemProperties(this, core::mem::transmute_copy(&__midl__iwiaminidrv0013), core::mem::transmute_copy(&__midl__iwiaminidrv0014)) { Ok(ok__) => { @@ -1677,10 +1272,7 @@ impl IWiaMiniDrv_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn drvValidateItemProperties(this: *mut core::ffi::c_void, __midl__iwiaminidrv0016: *const u8, __midl__iwiaminidrv0017: i32, __midl__iwiaminidrv0018: u32, __midl__iwiaminidrv0019: *const super::super::System::Com::StructuredStorage::PROPSPEC, __midl__iwiaminidrv0020: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvValidateItemProperties(this: *mut core::ffi::c_void, __midl__iwiaminidrv0016: *const u8, __midl__iwiaminidrv0017: i32, __midl__iwiaminidrv0018: u32, __midl__iwiaminidrv0019: *const super::super::System::Com::StructuredStorage::PROPSPEC, __midl__iwiaminidrv0020: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaMiniDrv_Impl::drvValidateItemProperties(this, core::mem::transmute_copy(&__midl__iwiaminidrv0016), core::mem::transmute_copy(&__midl__iwiaminidrv0017), core::mem::transmute_copy(&__midl__iwiaminidrv0018), core::mem::transmute_copy(&__midl__iwiaminidrv0019)) { Ok(ok__) => { @@ -1690,10 +1282,7 @@ impl IWiaMiniDrv_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn drvWriteItemProperties(this: *mut core::ffi::c_void, __midl__iwiaminidrv0021: *const u8, __midl__iwiaminidrv0022: i32, __midl__iwiaminidrv0023: *const MINIDRV_TRANSFER_CONTEXT, __midl__iwiaminidrv0024: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvWriteItemProperties(this: *mut core::ffi::c_void, __midl__iwiaminidrv0021: *const u8, __midl__iwiaminidrv0022: i32, __midl__iwiaminidrv0023: *const MINIDRV_TRANSFER_CONTEXT, __midl__iwiaminidrv0024: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaMiniDrv_Impl::drvWriteItemProperties(this, core::mem::transmute_copy(&__midl__iwiaminidrv0021), core::mem::transmute_copy(&__midl__iwiaminidrv0022), core::mem::transmute_copy(&__midl__iwiaminidrv0023)) { Ok(ok__) => { @@ -1703,10 +1292,7 @@ impl IWiaMiniDrv_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn drvReadItemProperties(this: *mut core::ffi::c_void, __midl__iwiaminidrv0025: *const u8, __midl__iwiaminidrv0026: i32, __midl__iwiaminidrv0027: u32, __midl__iwiaminidrv0028: *const super::super::System::Com::StructuredStorage::PROPSPEC, __midl__iwiaminidrv0029: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvReadItemProperties(this: *mut core::ffi::c_void, __midl__iwiaminidrv0025: *const u8, __midl__iwiaminidrv0026: i32, __midl__iwiaminidrv0027: u32, __midl__iwiaminidrv0028: *const super::super::System::Com::StructuredStorage::PROPSPEC, __midl__iwiaminidrv0029: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaMiniDrv_Impl::drvReadItemProperties(this, core::mem::transmute_copy(&__midl__iwiaminidrv0025), core::mem::transmute_copy(&__midl__iwiaminidrv0026), core::mem::transmute_copy(&__midl__iwiaminidrv0027), core::mem::transmute_copy(&__midl__iwiaminidrv0028)) { Ok(ok__) => { @@ -1716,10 +1302,7 @@ impl IWiaMiniDrv_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn drvLockWiaDevice(this: *mut core::ffi::c_void, __midl__iwiaminidrv0030: *const u8, __midl__iwiaminidrv0031: i32, __midl__iwiaminidrv0032: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvLockWiaDevice(this: *mut core::ffi::c_void, __midl__iwiaminidrv0030: *const u8, __midl__iwiaminidrv0031: i32, __midl__iwiaminidrv0032: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaMiniDrv_Impl::drvLockWiaDevice(this, core::mem::transmute_copy(&__midl__iwiaminidrv0030), core::mem::transmute_copy(&__midl__iwiaminidrv0031)) { Ok(ok__) => { @@ -1729,10 +1312,7 @@ impl IWiaMiniDrv_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn drvUnLockWiaDevice(this: *mut core::ffi::c_void, __midl__iwiaminidrv0033: *const u8, __midl__iwiaminidrv0034: i32, __midl__iwiaminidrv0035: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvUnLockWiaDevice(this: *mut core::ffi::c_void, __midl__iwiaminidrv0033: *const u8, __midl__iwiaminidrv0034: i32, __midl__iwiaminidrv0035: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaMiniDrv_Impl::drvUnLockWiaDevice(this, core::mem::transmute_copy(&__midl__iwiaminidrv0033), core::mem::transmute_copy(&__midl__iwiaminidrv0034)) { Ok(ok__) => { @@ -1742,38 +1322,23 @@ impl IWiaMiniDrv_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn drvAnalyzeItem(this: *mut core::ffi::c_void, __midl__iwiaminidrv0036: *const u8, __midl__iwiaminidrv0037: i32, __midl__iwiaminidrv0038: *const i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvAnalyzeItem(this: *mut core::ffi::c_void, __midl__iwiaminidrv0036: *const u8, __midl__iwiaminidrv0037: i32, __midl__iwiaminidrv0038: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrv_Impl::drvAnalyzeItem(this, core::mem::transmute_copy(&__midl__iwiaminidrv0036), core::mem::transmute_copy(&__midl__iwiaminidrv0037), core::mem::transmute_copy(&__midl__iwiaminidrv0038)).into() } - unsafe extern "system" fn drvGetDeviceErrorStr(this: *mut core::ffi::c_void, __midl__iwiaminidrv0039: i32, __midl__iwiaminidrv0040: i32, __midl__iwiaminidrv0041: *mut windows_core::PWSTR, __midl__iwiaminidrv0042: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvGetDeviceErrorStr(this: *mut core::ffi::c_void, __midl__iwiaminidrv0039: i32, __midl__iwiaminidrv0040: i32, __midl__iwiaminidrv0041: *mut windows_core::PWSTR, __midl__iwiaminidrv0042: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrv_Impl::drvGetDeviceErrorStr(this, core::mem::transmute_copy(&__midl__iwiaminidrv0039), core::mem::transmute_copy(&__midl__iwiaminidrv0040), core::mem::transmute_copy(&__midl__iwiaminidrv0041), core::mem::transmute_copy(&__midl__iwiaminidrv0042)).into() } - unsafe extern "system" fn drvDeviceCommand(this: *mut core::ffi::c_void, __midl__iwiaminidrv0043: *const u8, __midl__iwiaminidrv0044: i32, __midl__iwiaminidrv0045: *const windows_core::GUID, __midl__iwiaminidrv0046: *mut *mut core::ffi::c_void, __midl__iwiaminidrv0047: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvDeviceCommand(this: *mut core::ffi::c_void, __midl__iwiaminidrv0043: *const u8, __midl__iwiaminidrv0044: i32, __midl__iwiaminidrv0045: *const windows_core::GUID, __midl__iwiaminidrv0046: *mut *mut core::ffi::c_void, __midl__iwiaminidrv0047: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrv_Impl::drvDeviceCommand(this, core::mem::transmute_copy(&__midl__iwiaminidrv0043), core::mem::transmute_copy(&__midl__iwiaminidrv0044), core::mem::transmute_copy(&__midl__iwiaminidrv0045), core::mem::transmute_copy(&__midl__iwiaminidrv0046), core::mem::transmute_copy(&__midl__iwiaminidrv0047)).into() } - unsafe extern "system" fn drvGetCapabilities(this: *mut core::ffi::c_void, __midl__iwiaminidrv0048: *const u8, __midl__iwiaminidrv0049: i32, __midl__iwiaminidrv0050: *mut i32, __midl__iwiaminidrv0051: *mut *mut WIA_DEV_CAP_DRV, __midl__iwiaminidrv0052: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvGetCapabilities(this: *mut core::ffi::c_void, __midl__iwiaminidrv0048: *const u8, __midl__iwiaminidrv0049: i32, __midl__iwiaminidrv0050: *mut i32, __midl__iwiaminidrv0051: *mut *mut WIA_DEV_CAP_DRV, __midl__iwiaminidrv0052: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrv_Impl::drvGetCapabilities(this, core::mem::transmute_copy(&__midl__iwiaminidrv0048), core::mem::transmute_copy(&__midl__iwiaminidrv0049), core::mem::transmute_copy(&__midl__iwiaminidrv0050), core::mem::transmute_copy(&__midl__iwiaminidrv0051), core::mem::transmute_copy(&__midl__iwiaminidrv0052)).into() } - unsafe extern "system" fn drvDeleteItem(this: *mut core::ffi::c_void, __midl__iwiaminidrv0053: *const u8, __midl__iwiaminidrv0054: i32, __midl__iwiaminidrv0055: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvDeleteItem(this: *mut core::ffi::c_void, __midl__iwiaminidrv0053: *const u8, __midl__iwiaminidrv0054: i32, __midl__iwiaminidrv0055: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaMiniDrv_Impl::drvDeleteItem(this, core::mem::transmute_copy(&__midl__iwiaminidrv0053), core::mem::transmute_copy(&__midl__iwiaminidrv0054)) { Ok(ok__) => { @@ -1783,10 +1348,7 @@ impl IWiaMiniDrv_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn drvFreeDrvItemContext(this: *mut core::ffi::c_void, __midl__iwiaminidrv0056: i32, __midl__iwiaminidrv0057: *const u8, __midl__iwiaminidrv0058: *mut i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvFreeDrvItemContext(this: *mut core::ffi::c_void, __midl__iwiaminidrv0056: i32, __midl__iwiaminidrv0057: *const u8, __midl__iwiaminidrv0058: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaMiniDrv_Impl::drvFreeDrvItemContext(this, core::mem::transmute_copy(&__midl__iwiaminidrv0056), core::mem::transmute_copy(&__midl__iwiaminidrv0057)) { Ok(ok__) => { @@ -1796,24 +1358,15 @@ impl IWiaMiniDrv_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn drvGetWiaFormatInfo(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 - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvGetWiaFormatInfo(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrv_Impl::drvGetWiaFormatInfo(this, 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(this: *mut core::ffi::c_void, peventguid: *const windows_core::GUID, bstrdeviceid: core::mem::MaybeUninit, ulreserved: u32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvNotifyPnpEvent(this: *mut core::ffi::c_void, peventguid: *const windows_core::GUID, bstrdeviceid: core::mem::MaybeUninit, ulreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrv_Impl::drvNotifyPnpEvent(this, core::mem::transmute_copy(&peventguid), core::mem::transmute(&bstrdeviceid), core::mem::transmute_copy(&ulreserved)).into() } - unsafe extern "system" fn drvUnInitializeWia(this: *mut core::ffi::c_void, __midl__iwiaminidrv0064: *const u8) -> windows_core::HRESULT - where - Identity: IWiaMiniDrv_Impl, - { + unsafe extern "system" fn drvUnInitializeWia(this: *mut core::ffi::c_void, __midl__iwiaminidrv0064: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrv_Impl::drvUnInitializeWia(this, core::mem::transmute_copy(&__midl__iwiaminidrv0064)).into() } @@ -1842,19 +1395,13 @@ impl IWiaMiniDrv_Vtbl { iid == &::IID } } -pub trait IWiaMiniDrvCallBack_Impl: Sized { +pub trait IWiaMiniDrvCallBack_Impl: Sized + windows_core::IUnknownImpl { fn MiniDrvCallback(&self, lreason: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, ptranctx: *const MINIDRV_TRANSFER_CONTEXT, lreserved: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWiaMiniDrvCallBack {} impl IWiaMiniDrvCallBack_Vtbl { - pub const fn new() -> IWiaMiniDrvCallBack_Vtbl - where - Identity: IWiaMiniDrvCallBack_Impl, - { - unsafe extern "system" fn MiniDrvCallback(this: *mut core::ffi::c_void, lreason: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, ptranctx: *const MINIDRV_TRANSFER_CONTEXT, lreserved: i32) -> windows_core::HRESULT - where - Identity: IWiaMiniDrvCallBack_Impl, - { + pub const fn new() -> IWiaMiniDrvCallBack_Vtbl { + unsafe extern "system" fn MiniDrvCallback(this: *mut core::ffi::c_void, lreason: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, ptranctx: *const MINIDRV_TRANSFER_CONTEXT, lreserved: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrvCallBack_Impl::MiniDrvCallback(this, core::mem::transmute_copy(&lreason), core::mem::transmute_copy(&lstatus), core::mem::transmute_copy(&lpercentcomplete), core::mem::transmute_copy(&loffset), core::mem::transmute_copy(&llength), core::mem::transmute_copy(&ptranctx), core::mem::transmute_copy(&lreserved)).into() } @@ -1865,7 +1412,7 @@ impl IWiaMiniDrvCallBack_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWiaMiniDrvTransferCallback_Impl: Sized { +pub trait IWiaMiniDrvTransferCallback_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } @@ -1873,14 +1420,8 @@ pub trait IWiaMiniDrvTransferCallback_Impl: Sized { impl windows_core::RuntimeName for IWiaMiniDrvTransferCallback {} #[cfg(feature = "Win32_System_Com")] impl IWiaMiniDrvTransferCallback_Vtbl { - pub const fn new() -> IWiaMiniDrvTransferCallback_Vtbl - where - Identity: IWiaMiniDrvTransferCallback_Impl, - { - unsafe extern "system" fn GetNextStream(this: *mut core::ffi::c_void, lflags: i32, bstritemname: core::mem::MaybeUninit, bstrfullitemname: core::mem::MaybeUninit, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaMiniDrvTransferCallback_Impl, - { + pub const fn new() -> IWiaMiniDrvTransferCallback_Vtbl { + unsafe extern "system" fn GetNextStream(this: *mut core::ffi::c_void, lflags: i32, bstritemname: core::mem::MaybeUninit, bstrfullitemname: core::mem::MaybeUninit, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaMiniDrvTransferCallback_Impl::GetNextStream(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstritemname), core::mem::transmute(&bstrfullitemname)) { Ok(ok__) => { @@ -1890,10 +1431,7 @@ impl IWiaMiniDrvTransferCallback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendMessage(this: *mut core::ffi::c_void, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> windows_core::HRESULT - where - Identity: IWiaMiniDrvTransferCallback_Impl, - { + unsafe extern "system" fn SendMessage(this: *mut core::ffi::c_void, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaMiniDrvTransferCallback_Impl::SendMessage(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pwiatransferparams)).into() } @@ -1907,19 +1445,13 @@ impl IWiaMiniDrvTransferCallback_Vtbl { iid == &::IID } } -pub trait IWiaNotifyDevMgr_Impl: Sized { +pub trait IWiaNotifyDevMgr_Impl: Sized + windows_core::IUnknownImpl { fn NewDeviceArrival(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWiaNotifyDevMgr {} impl IWiaNotifyDevMgr_Vtbl { - pub const fn new() -> IWiaNotifyDevMgr_Vtbl - where - Identity: IWiaNotifyDevMgr_Impl, - { - unsafe extern "system" fn NewDeviceArrival(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaNotifyDevMgr_Impl, - { + pub const fn new() -> IWiaNotifyDevMgr_Vtbl { + unsafe extern "system" fn NewDeviceArrival(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaNotifyDevMgr_Impl::NewDeviceArrival(this).into() } @@ -1929,7 +1461,7 @@ impl IWiaNotifyDevMgr_Vtbl { iid == &::IID } } -pub trait IWiaPreview_Impl: Sized { +pub trait IWiaPreview_Impl: Sized + windows_core::IUnknownImpl { fn GetNewPreview(&self, lflags: i32, pwiaitem2: Option<&IWiaItem2>, pwiatransfercallback: Option<&IWiaTransferCallback>) -> windows_core::Result<()>; fn UpdatePreview(&self, lflags: i32, pchildwiaitem2: Option<&IWiaItem2>, pwiatransfercallback: Option<&IWiaTransferCallback>) -> windows_core::Result<()>; fn DetectRegions(&self, lflags: i32) -> windows_core::Result<()>; @@ -1937,35 +1469,20 @@ pub trait IWiaPreview_Impl: Sized { } impl windows_core::RuntimeName for IWiaPreview {} impl IWiaPreview_Vtbl { - pub const fn new() -> IWiaPreview_Vtbl - where - Identity: IWiaPreview_Impl, - { - unsafe extern "system" fn GetNewPreview(this: *mut core::ffi::c_void, lflags: i32, pwiaitem2: *mut core::ffi::c_void, pwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaPreview_Impl, - { + pub const fn new() -> IWiaPreview_Vtbl { + unsafe extern "system" fn GetNewPreview(this: *mut core::ffi::c_void, lflags: i32, pwiaitem2: *mut core::ffi::c_void, pwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPreview_Impl::GetNewPreview(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pwiaitem2), windows_core::from_raw_borrowed(&pwiatransfercallback)).into() } - unsafe extern "system" fn UpdatePreview(this: *mut core::ffi::c_void, lflags: i32, pchildwiaitem2: *mut core::ffi::c_void, pwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaPreview_Impl, - { + unsafe extern "system" fn UpdatePreview(this: *mut core::ffi::c_void, lflags: i32, pchildwiaitem2: *mut core::ffi::c_void, pwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPreview_Impl::UpdatePreview(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pchildwiaitem2), windows_core::from_raw_borrowed(&pwiatransfercallback)).into() } - unsafe extern "system" fn DetectRegions(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWiaPreview_Impl, - { + unsafe extern "system" fn DetectRegions(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPreview_Impl::DetectRegions(this, core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaPreview_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPreview_Impl::Clear(this).into() } @@ -1982,7 +1499,7 @@ impl IWiaPreview_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IWiaPropertyStorage_Impl: Sized { +pub trait IWiaPropertyStorage_Impl: Sized + windows_core::IUnknownImpl { fn ReadMultiple(&self, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC, rgpropvar: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; fn WriteMultiple(&self, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC, rgpropvar: *const windows_core::PROPVARIANT, propidnamefirst: u32) -> windows_core::Result<()>; fn DeleteMultiple(&self, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC) -> windows_core::Result<()>; @@ -2004,70 +1521,40 @@ pub trait IWiaPropertyStorage_Impl: Sized { impl windows_core::RuntimeName for IWiaPropertyStorage {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IWiaPropertyStorage_Vtbl { - pub const fn new() -> IWiaPropertyStorage_Vtbl - where - Identity: IWiaPropertyStorage_Impl, - { - unsafe extern "system" fn ReadMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC, rgpropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + pub const fn new() -> IWiaPropertyStorage_Vtbl { + unsafe extern "system" fn ReadMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC, rgpropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::ReadMultiple(this, core::mem::transmute_copy(&cpspec), core::mem::transmute_copy(&rgpspec), core::mem::transmute_copy(&rgpropvar)).into() } - unsafe extern "system" fn WriteMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC, rgpropvar: *const core::mem::MaybeUninit, propidnamefirst: u32) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn WriteMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC, rgpropvar: *const core::mem::MaybeUninit, propidnamefirst: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::WriteMultiple(this, core::mem::transmute_copy(&cpspec), core::mem::transmute_copy(&rgpspec), core::mem::transmute_copy(&rgpropvar), core::mem::transmute_copy(&propidnamefirst)).into() } - unsafe extern "system" fn DeleteMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn DeleteMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::DeleteMultiple(this, core::mem::transmute_copy(&cpspec), core::mem::transmute_copy(&rgpspec)).into() } - unsafe extern "system" fn ReadPropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32, rglpwstrname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn ReadPropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32, rglpwstrname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::ReadPropertyNames(this, core::mem::transmute_copy(&cpropid), core::mem::transmute_copy(&rgpropid), core::mem::transmute_copy(&rglpwstrname)).into() } - unsafe extern "system" fn WritePropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32, rglpwstrname: *const windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn WritePropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32, rglpwstrname: *const windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::WritePropertyNames(this, core::mem::transmute_copy(&cpropid), core::mem::transmute_copy(&rgpropid), core::mem::transmute_copy(&rglpwstrname)).into() } - unsafe extern "system" fn DeletePropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn DeletePropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::DeletePropertyNames(this, core::mem::transmute_copy(&cpropid), core::mem::transmute_copy(&rgpropid)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, grfcommitflags: u32) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, grfcommitflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::Commit(this, core::mem::transmute_copy(&grfcommitflags)).into() } - unsafe extern "system" fn Revert(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn Revert(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::Revert(this).into() } - unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaPropertyStorage_Impl::Enum(this) { Ok(ok__) => { @@ -2077,38 +1564,23 @@ impl IWiaPropertyStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTimes(this: *mut core::ffi::c_void, pctime: *const super::super::Foundation::FILETIME, patime: *const super::super::Foundation::FILETIME, pmtime: *const super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn SetTimes(this: *mut core::ffi::c_void, pctime: *const super::super::Foundation::FILETIME, patime: *const super::super::Foundation::FILETIME, pmtime: *const super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::SetTimes(this, core::mem::transmute_copy(&pctime), core::mem::transmute_copy(&patime), core::mem::transmute_copy(&pmtime)).into() } - unsafe extern "system" fn SetClass(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn SetClass(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::SetClass(this, core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn Stat(this: *mut core::ffi::c_void, pstatpsstg: *mut super::super::System::Com::StructuredStorage::STATPROPSETSTG) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn Stat(this: *mut core::ffi::c_void, pstatpsstg: *mut super::super::System::Com::StructuredStorage::STATPROPSETSTG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::Stat(this, core::mem::transmute_copy(&pstatpsstg)).into() } - unsafe extern "system" fn GetPropertyAttributes(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC, rgflags: *mut u32, rgpropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn GetPropertyAttributes(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const super::super::System::Com::StructuredStorage::PROPSPEC, rgflags: *mut u32, rgpropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::GetPropertyAttributes(this, core::mem::transmute_copy(&cpspec), core::mem::transmute_copy(&rgpspec), core::mem::transmute_copy(&rgflags), core::mem::transmute_copy(&rgpropvar)).into() } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pulnumprops: *mut u32) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pulnumprops: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaPropertyStorage_Impl::GetCount(this) { Ok(ok__) => { @@ -2118,17 +1590,11 @@ impl IWiaPropertyStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyStream(this: *mut core::ffi::c_void, pcompatibilityid: *mut windows_core::GUID, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn GetPropertyStream(this: *mut core::ffi::c_void, pcompatibilityid: *mut windows_core::GUID, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::GetPropertyStream(this, core::mem::transmute_copy(&pcompatibilityid), core::mem::transmute_copy(&ppistream)).into() } - unsafe extern "system" fn SetPropertyStream(this: *mut core::ffi::c_void, pcompatibilityid: *mut windows_core::GUID, pistream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaPropertyStorage_Impl, - { + unsafe extern "system" fn SetPropertyStream(this: *mut core::ffi::c_void, pcompatibilityid: *mut windows_core::GUID, pistream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaPropertyStorage_Impl::SetPropertyStream(this, core::mem::transmute_copy(&pcompatibilityid), windows_core::from_raw_borrowed(&pistream)).into() } @@ -2157,21 +1623,15 @@ impl IWiaPropertyStorage_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWiaSegmentationFilter_Impl: Sized { +pub trait IWiaSegmentationFilter_Impl: Sized + windows_core::IUnknownImpl { fn DetectRegions(&self, lflags: i32, pinputstream: Option<&super::super::System::Com::IStream>, pwiaitem2: Option<&IWiaItem2>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IWiaSegmentationFilter {} #[cfg(feature = "Win32_System_Com")] impl IWiaSegmentationFilter_Vtbl { - pub const fn new() -> IWiaSegmentationFilter_Vtbl - where - Identity: IWiaSegmentationFilter_Impl, - { - unsafe extern "system" fn DetectRegions(this: *mut core::ffi::c_void, lflags: i32, pinputstream: *mut core::ffi::c_void, pwiaitem2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaSegmentationFilter_Impl, - { + pub const fn new() -> IWiaSegmentationFilter_Vtbl { + unsafe extern "system" fn DetectRegions(this: *mut core::ffi::c_void, lflags: i32, pinputstream: *mut core::ffi::c_void, pwiaitem2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaSegmentationFilter_Impl::DetectRegions(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pinputstream), windows_core::from_raw_borrowed(&pwiaitem2)).into() } @@ -2182,7 +1642,7 @@ impl IWiaSegmentationFilter_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWiaTransfer_Impl: Sized { +pub trait IWiaTransfer_Impl: Sized + windows_core::IUnknownImpl { fn Download(&self, lflags: i32, piwiatransfercallback: Option<&IWiaTransferCallback>) -> windows_core::Result<()>; fn Upload(&self, lflags: i32, psource: Option<&super::super::System::Com::IStream>, piwiatransfercallback: Option<&IWiaTransferCallback>) -> windows_core::Result<()>; fn Cancel(&self) -> windows_core::Result<()>; @@ -2192,35 +1652,20 @@ pub trait IWiaTransfer_Impl: Sized { impl windows_core::RuntimeName for IWiaTransfer {} #[cfg(feature = "Win32_System_Com")] impl IWiaTransfer_Vtbl { - pub const fn new() -> IWiaTransfer_Vtbl - where - Identity: IWiaTransfer_Impl, - { - unsafe extern "system" fn Download(this: *mut core::ffi::c_void, lflags: i32, piwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaTransfer_Impl, - { + pub const fn new() -> IWiaTransfer_Vtbl { + unsafe extern "system" fn Download(this: *mut core::ffi::c_void, lflags: i32, piwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaTransfer_Impl::Download(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&piwiatransfercallback)).into() } - unsafe extern "system" fn Upload(this: *mut core::ffi::c_void, lflags: i32, psource: *mut core::ffi::c_void, piwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaTransfer_Impl, - { + unsafe extern "system" fn Upload(this: *mut core::ffi::c_void, lflags: i32, psource: *mut core::ffi::c_void, piwiatransfercallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaTransfer_Impl::Upload(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&psource), windows_core::from_raw_borrowed(&piwiatransfercallback)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaTransfer_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaTransfer_Impl::Cancel(this).into() } - unsafe extern "system" fn EnumWIA_FORMAT_INFO(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaTransfer_Impl, - { + unsafe extern "system" fn EnumWIA_FORMAT_INFO(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaTransfer_Impl::EnumWIA_FORMAT_INFO(this) { Ok(ok__) => { @@ -2243,7 +1688,7 @@ impl IWiaTransfer_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWiaTransferCallback_Impl: Sized { +pub trait IWiaTransferCallback_Impl: Sized + windows_core::IUnknownImpl { fn TransferCallback(&self, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> windows_core::Result<()>; fn GetNextStream(&self, lflags: i32, bstritemname: &windows_core::BSTR, bstrfullitemname: &windows_core::BSTR) -> windows_core::Result; } @@ -2251,21 +1696,12 @@ pub trait IWiaTransferCallback_Impl: Sized { impl windows_core::RuntimeName for IWiaTransferCallback {} #[cfg(feature = "Win32_System_Com")] impl IWiaTransferCallback_Vtbl { - pub const fn new() -> IWiaTransferCallback_Vtbl - where - Identity: IWiaTransferCallback_Impl, - { - unsafe extern "system" fn TransferCallback(this: *mut core::ffi::c_void, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> windows_core::HRESULT - where - Identity: IWiaTransferCallback_Impl, - { + pub const fn new() -> IWiaTransferCallback_Vtbl { + unsafe extern "system" fn TransferCallback(this: *mut core::ffi::c_void, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaTransferCallback_Impl::TransferCallback(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pwiatransferparams)).into() } - unsafe extern "system" fn GetNextStream(this: *mut core::ffi::c_void, lflags: i32, bstritemname: core::mem::MaybeUninit, bstrfullitemname: core::mem::MaybeUninit, ppdestination: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaTransferCallback_Impl, - { + unsafe extern "system" fn GetNextStream(this: *mut core::ffi::c_void, lflags: i32, bstritemname: core::mem::MaybeUninit, bstrfullitemname: core::mem::MaybeUninit, ppdestination: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaTransferCallback_Impl::GetNextStream(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstritemname), core::mem::transmute(&bstrfullitemname)) { Ok(ok__) => { @@ -2286,7 +1722,7 @@ impl IWiaTransferCallback_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IWiaUIExtension_Impl: Sized { +pub trait IWiaUIExtension_Impl: Sized + windows_core::IUnknownImpl { fn DeviceDialog(&self, pdevicedialogdata: *const DEVICEDIALOGDATA) -> 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<()>; @@ -2295,28 +1731,16 @@ pub trait IWiaUIExtension_Impl: Sized { impl windows_core::RuntimeName for IWiaUIExtension {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IWiaUIExtension_Vtbl { - pub const fn new() -> IWiaUIExtension_Vtbl - where - Identity: IWiaUIExtension_Impl, - { - unsafe extern "system" fn DeviceDialog(this: *mut core::ffi::c_void, pdevicedialogdata: *const DEVICEDIALOGDATA) -> windows_core::HRESULT - where - Identity: IWiaUIExtension_Impl, - { + pub const fn new() -> IWiaUIExtension_Vtbl { + unsafe extern "system" fn DeviceDialog(this: *mut core::ffi::c_void, pdevicedialogdata: *const DEVICEDIALOGDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaUIExtension_Impl::DeviceDialog(this, core::mem::transmute_copy(&pdevicedialogdata)).into() } - unsafe extern "system" fn GetDeviceIcon(this: *mut core::ffi::c_void, bstrdeviceid: core::mem::MaybeUninit, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> windows_core::HRESULT - where - Identity: IWiaUIExtension_Impl, - { + unsafe extern "system" fn GetDeviceIcon(this: *mut core::ffi::c_void, bstrdeviceid: core::mem::MaybeUninit, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaUIExtension_Impl::GetDeviceIcon(this, core::mem::transmute(&bstrdeviceid), core::mem::transmute_copy(&phicon), core::mem::transmute_copy(&nsize)).into() } - unsafe extern "system" fn GetDeviceBitmapLogo(this: *mut core::ffi::c_void, bstrdeviceid: core::mem::MaybeUninit, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> windows_core::HRESULT - where - Identity: IWiaUIExtension_Impl, - { + unsafe extern "system" fn GetDeviceBitmapLogo(this: *mut core::ffi::c_void, bstrdeviceid: core::mem::MaybeUninit, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaUIExtension_Impl::GetDeviceBitmapLogo(this, core::mem::transmute(&bstrdeviceid), core::mem::transmute_copy(&phbitmap), core::mem::transmute_copy(&nmaxwidth), core::mem::transmute_copy(&nmaxheight)).into() } @@ -2332,7 +1756,7 @@ impl IWiaUIExtension_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IWiaUIExtension2_Impl: Sized { +pub trait IWiaUIExtension2_Impl: Sized + windows_core::IUnknownImpl { fn DeviceDialog(&self, pdevicedialogdata: *const DEVICEDIALOGDATA2) -> windows_core::Result<()>; fn GetDeviceIcon(&self, bstrdeviceid: &windows_core::BSTR, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> windows_core::Result<()>; } @@ -2340,21 +1764,12 @@ pub trait IWiaUIExtension2_Impl: Sized { impl windows_core::RuntimeName for IWiaUIExtension2 {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IWiaUIExtension2_Vtbl { - pub const fn new() -> IWiaUIExtension2_Vtbl - where - Identity: IWiaUIExtension2_Impl, - { - unsafe extern "system" fn DeviceDialog(this: *mut core::ffi::c_void, pdevicedialogdata: *const DEVICEDIALOGDATA2) -> windows_core::HRESULT - where - Identity: IWiaUIExtension2_Impl, - { + pub const fn new() -> IWiaUIExtension2_Vtbl { + unsafe extern "system" fn DeviceDialog(this: *mut core::ffi::c_void, pdevicedialogdata: *const DEVICEDIALOGDATA2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaUIExtension2_Impl::DeviceDialog(this, core::mem::transmute_copy(&pdevicedialogdata)).into() } - unsafe extern "system" fn GetDeviceIcon(this: *mut core::ffi::c_void, bstrdeviceid: core::mem::MaybeUninit, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> windows_core::HRESULT - where - Identity: IWiaUIExtension2_Impl, - { + unsafe extern "system" fn GetDeviceIcon(this: *mut core::ffi::c_void, bstrdeviceid: core::mem::MaybeUninit, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaUIExtension2_Impl::GetDeviceIcon(this, core::mem::transmute(&bstrdeviceid), core::mem::transmute_copy(&phicon), core::mem::transmute_copy(&nsize)).into() } @@ -2368,7 +1783,7 @@ impl IWiaUIExtension2_Vtbl { iid == &::IID } } -pub trait IWiaVideo_Impl: Sized { +pub trait IWiaVideo_Impl: Sized + windows_core::IUnknownImpl { fn PreviewVisible(&self) -> windows_core::Result; fn SetPreviewVisible(&self, bpreviewvisible: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn ImagesDirectory(&self) -> windows_core::Result; @@ -2385,14 +1800,8 @@ pub trait IWiaVideo_Impl: Sized { } impl windows_core::RuntimeName for IWiaVideo {} impl IWiaVideo_Vtbl { - pub const fn new() -> IWiaVideo_Vtbl - where - Identity: IWiaVideo_Impl, - { - unsafe extern "system" fn PreviewVisible(this: *mut core::ffi::c_void, pbpreviewvisible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + pub const fn new() -> IWiaVideo_Vtbl { + unsafe extern "system" fn PreviewVisible(this: *mut core::ffi::c_void, pbpreviewvisible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaVideo_Impl::PreviewVisible(this) { Ok(ok__) => { @@ -2402,17 +1811,11 @@ impl IWiaVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPreviewVisible(this: *mut core::ffi::c_void, bpreviewvisible: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn SetPreviewVisible(this: *mut core::ffi::c_void, bpreviewvisible: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::SetPreviewVisible(this, core::mem::transmute_copy(&bpreviewvisible)).into() } - unsafe extern "system" fn ImagesDirectory(this: *mut core::ffi::c_void, pbstrimagedirectory: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn ImagesDirectory(this: *mut core::ffi::c_void, pbstrimagedirectory: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaVideo_Impl::ImagesDirectory(this) { Ok(ok__) => { @@ -2422,59 +1825,35 @@ impl IWiaVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImagesDirectory(this: *mut core::ffi::c_void, bstrimagedirectory: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn SetImagesDirectory(this: *mut core::ffi::c_void, bstrimagedirectory: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::SetImagesDirectory(this, core::mem::transmute(&bstrimagedirectory)).into() } - unsafe extern "system" fn CreateVideoByWiaDevID(this: *mut core::ffi::c_void, bstrwiadeviceid: core::mem::MaybeUninit, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn CreateVideoByWiaDevID(this: *mut core::ffi::c_void, bstrwiadeviceid: core::mem::MaybeUninit, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::CreateVideoByWiaDevID(this, core::mem::transmute(&bstrwiadeviceid), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&bstretchtofitparent), core::mem::transmute_copy(&bautobeginplayback)).into() } - unsafe extern "system" fn CreateVideoByDevNum(this: *mut core::ffi::c_void, uidevicenumber: u32, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn CreateVideoByDevNum(this: *mut core::ffi::c_void, uidevicenumber: u32, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::CreateVideoByDevNum(this, 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(this: *mut core::ffi::c_void, bstrfriendlyname: core::mem::MaybeUninit, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn CreateVideoByName(this: *mut core::ffi::c_void, bstrfriendlyname: core::mem::MaybeUninit, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::CreateVideoByName(this, core::mem::transmute(&bstrfriendlyname), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&bstretchtofitparent), core::mem::transmute_copy(&bautobeginplayback)).into() } - unsafe extern "system" fn DestroyVideo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn DestroyVideo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::DestroyVideo(this).into() } - unsafe extern "system" fn Play(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn Play(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::Play(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::Pause(this).into() } - unsafe extern "system" fn TakePicture(this: *mut core::ffi::c_void, pbstrnewimagefilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn TakePicture(this: *mut core::ffi::c_void, pbstrnewimagefilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaVideo_Impl::TakePicture(this) { Ok(ok__) => { @@ -2484,17 +1863,11 @@ impl IWiaVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResizeVideo(this: *mut core::ffi::c_void, bstretchtofitparent: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn ResizeVideo(this: *mut core::ffi::c_void, bstretchtofitparent: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::ResizeVideo(this, core::mem::transmute_copy(&bstretchtofitparent)).into() } - unsafe extern "system" fn GetCurrentState(this: *mut core::ffi::c_void, pstate: *mut WIAVIDEO_STATE) -> windows_core::HRESULT - where - Identity: IWiaVideo_Impl, - { + unsafe extern "system" fn GetCurrentState(this: *mut core::ffi::c_void, pstate: *mut WIAVIDEO_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaVideo_Impl::GetCurrentState(this) { Ok(ok__) => { 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 9c6c8558d7..a25b45238c 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/impl.rs @@ -1,16 +1,10 @@ -pub trait IConnectionRequestCallback_Impl: Sized { +pub trait IConnectionRequestCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnComplete(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IConnectionRequestCallback {} impl IConnectionRequestCallback_Vtbl { - pub const fn new() -> IConnectionRequestCallback_Vtbl - where - Identity: IConnectionRequestCallback_Impl, - { - unsafe extern "system" fn OnComplete(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IConnectionRequestCallback_Impl, - { + pub const fn new() -> IConnectionRequestCallback_Vtbl { + unsafe extern "system" fn OnComplete(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConnectionRequestCallback_Impl::OnComplete(this, core::mem::transmute_copy(&hrstatus)).into() } @@ -20,7 +14,7 @@ impl IConnectionRequestCallback_Vtbl { iid == &::IID } } -pub trait IEnumPortableDeviceConnectors_Impl: Sized { +pub trait IEnumPortableDeviceConnectors_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, crequested: u32, pconnectors: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cconnectors: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -28,35 +22,20 @@ pub trait IEnumPortableDeviceConnectors_Impl: Sized { } impl windows_core::RuntimeName for IEnumPortableDeviceConnectors {} impl IEnumPortableDeviceConnectors_Vtbl { - pub const fn new() -> IEnumPortableDeviceConnectors_Vtbl - where - Identity: IEnumPortableDeviceConnectors_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crequested: u32, pconnectors: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumPortableDeviceConnectors_Impl, - { + pub const fn new() -> IEnumPortableDeviceConnectors_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crequested: u32, pconnectors: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPortableDeviceConnectors_Impl::Next(this, core::mem::transmute_copy(&crequested), core::mem::transmute_copy(&pconnectors), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cconnectors: u32) -> windows_core::HRESULT - where - Identity: IEnumPortableDeviceConnectors_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cconnectors: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPortableDeviceConnectors_Impl::Skip(this, core::mem::transmute_copy(&cconnectors)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPortableDeviceConnectors_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPortableDeviceConnectors_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPortableDeviceConnectors_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumPortableDeviceConnectors_Impl::Clone(this) { Ok(ok__) => { @@ -78,7 +57,7 @@ impl IEnumPortableDeviceConnectors_Vtbl { iid == &::IID } } -pub trait IEnumPortableDeviceObjectIDs_Impl: Sized { +pub trait IEnumPortableDeviceObjectIDs_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cobjects: u32, pobjids: *mut windows_core::PWSTR, pcfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, cobjects: u32) -> windows_core::HRESULT; fn Reset(&self) -> windows_core::Result<()>; @@ -87,35 +66,20 @@ pub trait IEnumPortableDeviceObjectIDs_Impl: Sized { } impl windows_core::RuntimeName for IEnumPortableDeviceObjectIDs {} impl IEnumPortableDeviceObjectIDs_Vtbl { - pub const fn new() -> IEnumPortableDeviceObjectIDs_Vtbl - where - Identity: IEnumPortableDeviceObjectIDs_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cobjects: u32, pobjids: *mut windows_core::PWSTR, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumPortableDeviceObjectIDs_Impl, - { + pub const fn new() -> IEnumPortableDeviceObjectIDs_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cobjects: u32, pobjids: *mut windows_core::PWSTR, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPortableDeviceObjectIDs_Impl::Next(this, core::mem::transmute_copy(&cobjects), core::mem::transmute_copy(&pobjids), core::mem::transmute_copy(&pcfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cobjects: u32) -> windows_core::HRESULT - where - Identity: IEnumPortableDeviceObjectIDs_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cobjects: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPortableDeviceObjectIDs_Impl::Skip(this, core::mem::transmute_copy(&cobjects)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPortableDeviceObjectIDs_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPortableDeviceObjectIDs_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPortableDeviceObjectIDs_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumPortableDeviceObjectIDs_Impl::Clone(this) { Ok(ok__) => { @@ -125,10 +89,7 @@ impl IEnumPortableDeviceObjectIDs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPortableDeviceObjectIDs_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPortableDeviceObjectIDs_Impl::Cancel(this).into() } @@ -145,20 +106,14 @@ impl IEnumPortableDeviceObjectIDs_Vtbl { iid == &::IID } } -pub trait IMediaRadioManager_Impl: Sized { +pub trait IMediaRadioManager_Impl: Sized + windows_core::IUnknownImpl { fn GetRadioInstances(&self) -> windows_core::Result; fn OnSystemRadioStateChange(&self, sysradiostate: SYSTEM_RADIO_STATE, utimeoutsec: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMediaRadioManager {} impl IMediaRadioManager_Vtbl { - pub const fn new() -> IMediaRadioManager_Vtbl - where - Identity: IMediaRadioManager_Impl, - { - unsafe extern "system" fn GetRadioInstances(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaRadioManager_Impl, - { + pub const fn new() -> IMediaRadioManager_Vtbl { + unsafe extern "system" fn GetRadioInstances(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaRadioManager_Impl::GetRadioInstances(this) { Ok(ok__) => { @@ -168,10 +123,7 @@ impl IMediaRadioManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnSystemRadioStateChange(this: *mut core::ffi::c_void, sysradiostate: SYSTEM_RADIO_STATE, utimeoutsec: u32) -> windows_core::HRESULT - where - Identity: IMediaRadioManager_Impl, - { + unsafe extern "system" fn OnSystemRadioStateChange(this: *mut core::ffi::c_void, sysradiostate: SYSTEM_RADIO_STATE, utimeoutsec: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaRadioManager_Impl::OnSystemRadioStateChange(this, core::mem::transmute_copy(&sysradiostate), core::mem::transmute_copy(&utimeoutsec)).into() } @@ -185,35 +137,23 @@ impl IMediaRadioManager_Vtbl { iid == &::IID } } -pub trait IMediaRadioManagerNotifySink_Impl: Sized { +pub trait IMediaRadioManagerNotifySink_Impl: Sized + windows_core::IUnknownImpl { fn OnInstanceAdd(&self, pradioinstance: Option<&IRadioInstance>) -> 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<()>; } impl windows_core::RuntimeName for IMediaRadioManagerNotifySink {} impl IMediaRadioManagerNotifySink_Vtbl { - pub const fn new() -> IMediaRadioManagerNotifySink_Vtbl - where - Identity: IMediaRadioManagerNotifySink_Impl, - { - unsafe extern "system" fn OnInstanceAdd(this: *mut core::ffi::c_void, pradioinstance: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaRadioManagerNotifySink_Impl, - { + pub const fn new() -> IMediaRadioManagerNotifySink_Vtbl { + unsafe extern "system" fn OnInstanceAdd(this: *mut core::ffi::c_void, pradioinstance: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaRadioManagerNotifySink_Impl::OnInstanceAdd(this, windows_core::from_raw_borrowed(&pradioinstance)).into() } - unsafe extern "system" fn OnInstanceRemove(this: *mut core::ffi::c_void, bstrradioinstanceid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaRadioManagerNotifySink_Impl, - { + unsafe extern "system" fn OnInstanceRemove(this: *mut core::ffi::c_void, bstrradioinstanceid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaRadioManagerNotifySink_Impl::OnInstanceRemove(this, core::mem::transmute(&bstrradioinstanceid)).into() } - unsafe extern "system" fn OnInstanceRadioChange(this: *mut core::ffi::c_void, bstrradioinstanceid: core::mem::MaybeUninit, radiostate: DEVICE_RADIO_STATE) -> windows_core::HRESULT - where - Identity: IMediaRadioManagerNotifySink_Impl, - { + unsafe extern "system" fn OnInstanceRadioChange(this: *mut core::ffi::c_void, bstrradioinstanceid: core::mem::MaybeUninit, radiostate: DEVICE_RADIO_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaRadioManagerNotifySink_Impl::OnInstanceRadioChange(this, core::mem::transmute(&bstrradioinstanceid), core::mem::transmute_copy(&radiostate)).into() } @@ -228,7 +168,7 @@ impl IMediaRadioManagerNotifySink_Vtbl { iid == &::IID } } -pub trait IPortableDevice_Impl: Sized { +pub trait IPortableDevice_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, pszpnpdeviceid: &windows_core::PCWSTR, pclientinfo: Option<&IPortableDeviceValues>) -> windows_core::Result<()>; fn SendCommand(&self, dwflags: u32, pparameters: Option<&IPortableDeviceValues>) -> windows_core::Result; fn Content(&self) -> windows_core::Result; @@ -241,21 +181,12 @@ pub trait IPortableDevice_Impl: Sized { } impl windows_core::RuntimeName for IPortableDevice {} impl IPortableDevice_Vtbl { - pub const fn new() -> IPortableDevice_Vtbl - where - Identity: IPortableDevice_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, pclientinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDevice_Impl, - { + pub const fn new() -> IPortableDevice_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, pclientinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevice_Impl::Open(this, core::mem::transmute(&pszpnpdeviceid), windows_core::from_raw_borrowed(&pclientinfo)).into() } - unsafe extern "system" fn SendCommand(this: *mut core::ffi::c_void, dwflags: u32, pparameters: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDevice_Impl, - { + unsafe extern "system" fn SendCommand(this: *mut core::ffi::c_void, dwflags: u32, pparameters: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDevice_Impl::SendCommand(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pparameters)) { Ok(ok__) => { @@ -265,10 +196,7 @@ impl IPortableDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Content(this: *mut core::ffi::c_void, ppcontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDevice_Impl, - { + unsafe extern "system" fn Content(this: *mut core::ffi::c_void, ppcontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDevice_Impl::Content(this) { Ok(ok__) => { @@ -278,10 +206,7 @@ impl IPortableDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Capabilities(this: *mut core::ffi::c_void, ppcapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDevice_Impl, - { + unsafe extern "system" fn Capabilities(this: *mut core::ffi::c_void, ppcapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDevice_Impl::Capabilities(this) { Ok(ok__) => { @@ -291,24 +216,15 @@ impl IPortableDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDevice_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevice_Impl::Cancel(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDevice_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevice_Impl::Close(this).into() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, dwflags: u32, pcallback: *mut core::ffi::c_void, pparameters: *mut core::ffi::c_void, ppszcookie: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDevice_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, dwflags: u32, pcallback: *mut core::ffi::c_void, pparameters: *mut core::ffi::c_void, ppszcookie: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDevice_Impl::Advise(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pparameters)) { Ok(ok__) => { @@ -318,17 +234,11 @@ impl IPortableDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, pszcookie: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPortableDevice_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, pszcookie: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevice_Impl::Unadvise(this, core::mem::transmute(&pszcookie)).into() } - unsafe extern "system" fn GetPnPDeviceID(this: *mut core::ffi::c_void, ppszpnpdeviceid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDevice_Impl, - { + unsafe extern "system" fn GetPnPDeviceID(this: *mut core::ffi::c_void, ppszpnpdeviceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDevice_Impl::GetPnPDeviceID(this) { Ok(ok__) => { @@ -356,7 +266,7 @@ impl IPortableDevice_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IPortableDeviceCapabilities_Impl: Sized { +pub trait IPortableDeviceCapabilities_Impl: Sized + windows_core::IUnknownImpl { fn GetSupportedCommands(&self) -> windows_core::Result; fn GetCommandOptions(&self, command: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result; fn GetFunctionalCategories(&self) -> windows_core::Result; @@ -373,14 +283,8 @@ pub trait IPortableDeviceCapabilities_Impl: Sized { impl windows_core::RuntimeName for IPortableDeviceCapabilities {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IPortableDeviceCapabilities_Vtbl { - pub const fn new() -> IPortableDeviceCapabilities_Vtbl - where - Identity: IPortableDeviceCapabilities_Impl, - { - unsafe extern "system" fn GetSupportedCommands(this: *mut core::ffi::c_void, ppcommands: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + pub const fn new() -> IPortableDeviceCapabilities_Vtbl { + unsafe extern "system" fn GetSupportedCommands(this: *mut core::ffi::c_void, ppcommands: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceCapabilities_Impl::GetSupportedCommands(this) { Ok(ok__) => { @@ -390,10 +294,7 @@ impl IPortableDeviceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCommandOptions(this: *mut core::ffi::c_void, command: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + unsafe extern "system" fn GetCommandOptions(this: *mut core::ffi::c_void, command: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceCapabilities_Impl::GetCommandOptions(this, core::mem::transmute_copy(&command)) { Ok(ok__) => { @@ -403,10 +304,7 @@ impl IPortableDeviceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionalCategories(this: *mut core::ffi::c_void, ppcategories: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + unsafe extern "system" fn GetFunctionalCategories(this: *mut core::ffi::c_void, ppcategories: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceCapabilities_Impl::GetFunctionalCategories(this) { Ok(ok__) => { @@ -416,10 +314,7 @@ impl IPortableDeviceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionalObjects(this: *mut core::ffi::c_void, category: *const windows_core::GUID, ppobjectids: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + unsafe extern "system" fn GetFunctionalObjects(this: *mut core::ffi::c_void, category: *const windows_core::GUID, ppobjectids: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceCapabilities_Impl::GetFunctionalObjects(this, core::mem::transmute_copy(&category)) { Ok(ok__) => { @@ -429,10 +324,7 @@ impl IPortableDeviceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedContentTypes(this: *mut core::ffi::c_void, category: *const windows_core::GUID, ppcontenttypes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + unsafe extern "system" fn GetSupportedContentTypes(this: *mut core::ffi::c_void, category: *const windows_core::GUID, ppcontenttypes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceCapabilities_Impl::GetSupportedContentTypes(this, core::mem::transmute_copy(&category)) { Ok(ok__) => { @@ -442,10 +334,7 @@ impl IPortableDeviceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedFormats(this: *mut core::ffi::c_void, contenttype: *const windows_core::GUID, ppformats: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + unsafe extern "system" fn GetSupportedFormats(this: *mut core::ffi::c_void, contenttype: *const windows_core::GUID, ppformats: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceCapabilities_Impl::GetSupportedFormats(this, core::mem::transmute_copy(&contenttype)) { Ok(ok__) => { @@ -455,10 +344,7 @@ impl IPortableDeviceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedFormatProperties(this: *mut core::ffi::c_void, format: *const windows_core::GUID, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + unsafe extern "system" fn GetSupportedFormatProperties(this: *mut core::ffi::c_void, format: *const windows_core::GUID, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceCapabilities_Impl::GetSupportedFormatProperties(this, core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -468,10 +354,7 @@ impl IPortableDeviceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFixedPropertyAttributes(this: *mut core::ffi::c_void, format: *const windows_core::GUID, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + unsafe extern "system" fn GetFixedPropertyAttributes(this: *mut core::ffi::c_void, format: *const windows_core::GUID, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceCapabilities_Impl::GetFixedPropertyAttributes(this, core::mem::transmute_copy(&format), core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -481,17 +364,11 @@ impl IPortableDeviceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceCapabilities_Impl::Cancel(this).into() } - unsafe extern "system" fn GetSupportedEvents(this: *mut core::ffi::c_void, ppevents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + unsafe extern "system" fn GetSupportedEvents(this: *mut core::ffi::c_void, ppevents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceCapabilities_Impl::GetSupportedEvents(this) { Ok(ok__) => { @@ -501,10 +378,7 @@ impl IPortableDeviceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventOptions(this: *mut core::ffi::c_void, event: *const windows_core::GUID, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceCapabilities_Impl, - { + unsafe extern "system" fn GetEventOptions(this: *mut core::ffi::c_void, event: *const windows_core::GUID, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceCapabilities_Impl::GetEventOptions(this, core::mem::transmute_copy(&event)) { Ok(ok__) => { @@ -534,7 +408,7 @@ impl IPortableDeviceCapabilities_Vtbl { } } #[cfg(feature = "Win32_Devices_Properties")] -pub trait IPortableDeviceConnector_Impl: Sized { +pub trait IPortableDeviceConnector_Impl: Sized + windows_core::IUnknownImpl { fn Connect(&self, pcallback: Option<&IConnectionRequestCallback>) -> windows_core::Result<()>; fn Disconnect(&self, pcallback: Option<&IConnectionRequestCallback>) -> windows_core::Result<()>; fn Cancel(&self, pcallback: Option<&IConnectionRequestCallback>) -> windows_core::Result<()>; @@ -546,49 +420,28 @@ pub trait IPortableDeviceConnector_Impl: Sized { impl windows_core::RuntimeName for IPortableDeviceConnector {} #[cfg(feature = "Win32_Devices_Properties")] impl IPortableDeviceConnector_Vtbl { - pub const fn new() -> IPortableDeviceConnector_Vtbl - where - Identity: IPortableDeviceConnector_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceConnector_Impl, - { + pub const fn new() -> IPortableDeviceConnector_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceConnector_Impl::Connect(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceConnector_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceConnector_Impl::Disconnect(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceConnector_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceConnector_Impl::Cancel(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, ppropertykey: *const super::Properties::DEVPROPKEY, ppropertytype: *mut super::Properties::DEVPROPTYPE, ppdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceConnector_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, ppropertykey: *const super::Properties::DEVPROPKEY, ppropertytype: *mut super::Properties::DEVPROPTYPE, ppdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceConnector_Impl::GetProperty(this, core::mem::transmute_copy(&ppropertykey), core::mem::transmute_copy(&ppropertytype), core::mem::transmute_copy(&ppdata), core::mem::transmute_copy(&pcbdata)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, ppropertykey: *const super::Properties::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, pdata: *const u8, cbdata: u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceConnector_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, ppropertykey: *const super::Properties::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, pdata: *const u8, cbdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceConnector_Impl::SetProperty(this, core::mem::transmute_copy(&ppropertykey), core::mem::transmute_copy(&propertytype), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn GetPnPID(this: *mut core::ffi::c_void, ppwszpnpid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceConnector_Impl, - { + unsafe extern "system" fn GetPnPID(this: *mut core::ffi::c_void, ppwszpnpid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceConnector_Impl::GetPnPID(this) { Ok(ok__) => { @@ -613,7 +466,7 @@ impl IPortableDeviceConnector_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IPortableDeviceContent_Impl: Sized { +pub trait IPortableDeviceContent_Impl: Sized + windows_core::IUnknownImpl { fn EnumObjects(&self, dwflags: u32, pszparentobjectid: &windows_core::PCWSTR, pfilter: Option<&IPortableDeviceValues>) -> windows_core::Result; fn Properties(&self) -> windows_core::Result; fn Transfer(&self) -> windows_core::Result; @@ -629,14 +482,8 @@ pub trait IPortableDeviceContent_Impl: Sized { impl windows_core::RuntimeName for IPortableDeviceContent {} #[cfg(feature = "Win32_System_Com")] impl IPortableDeviceContent_Vtbl { - pub const fn new() -> IPortableDeviceContent_Vtbl - where - Identity: IPortableDeviceContent_Impl, - { - unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, dwflags: u32, pszparentobjectid: windows_core::PCWSTR, pfilter: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent_Impl, - { + pub const fn new() -> IPortableDeviceContent_Vtbl { + unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, dwflags: u32, pszparentobjectid: windows_core::PCWSTR, pfilter: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceContent_Impl::EnumObjects(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszparentobjectid), windows_core::from_raw_borrowed(&pfilter)) { Ok(ok__) => { @@ -646,10 +493,7 @@ impl IPortableDeviceContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceContent_Impl::Properties(this) { Ok(ok__) => { @@ -659,10 +503,7 @@ impl IPortableDeviceContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Transfer(this: *mut core::ffi::c_void, ppresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent_Impl, - { + unsafe extern "system" fn Transfer(this: *mut core::ffi::c_void, ppresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceContent_Impl::Transfer(this) { Ok(ok__) => { @@ -672,31 +513,19 @@ impl IPortableDeviceContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateObjectWithPropertiesOnly(this: *mut core::ffi::c_void, pvalues: *mut core::ffi::c_void, ppszobjectid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent_Impl, - { + unsafe extern "system" fn CreateObjectWithPropertiesOnly(this: *mut core::ffi::c_void, pvalues: *mut core::ffi::c_void, ppszobjectid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceContent_Impl::CreateObjectWithPropertiesOnly(this, windows_core::from_raw_borrowed(&pvalues), core::mem::transmute_copy(&ppszobjectid)).into() } - unsafe extern "system" fn CreateObjectWithPropertiesAndData(this: *mut core::ffi::c_void, pvalues: *mut core::ffi::c_void, ppdata: *mut *mut core::ffi::c_void, pdwoptimalwritebuffersize: *mut u32, ppszcookie: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent_Impl, - { + unsafe extern "system" fn CreateObjectWithPropertiesAndData(this: *mut core::ffi::c_void, pvalues: *mut core::ffi::c_void, ppdata: *mut *mut core::ffi::c_void, pdwoptimalwritebuffersize: *mut u32, ppszcookie: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceContent_Impl::CreateObjectWithPropertiesAndData(this, windows_core::from_raw_borrowed(&pvalues), core::mem::transmute_copy(&ppdata), core::mem::transmute_copy(&pdwoptimalwritebuffersize), core::mem::transmute_copy(&ppszcookie)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, dwoptions: u32, pobjectids: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, dwoptions: u32, pobjectids: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceContent_Impl::Delete(this, core::mem::transmute_copy(&dwoptions), windows_core::from_raw_borrowed(&pobjectids), core::mem::transmute_copy(&ppresults)).into() } - unsafe extern "system" fn GetObjectIDsFromPersistentUniqueIDs(this: *mut core::ffi::c_void, ppersistentuniqueids: *mut core::ffi::c_void, ppobjectids: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent_Impl, - { + unsafe extern "system" fn GetObjectIDsFromPersistentUniqueIDs(this: *mut core::ffi::c_void, ppersistentuniqueids: *mut core::ffi::c_void, ppobjectids: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceContent_Impl::GetObjectIDsFromPersistentUniqueIDs(this, windows_core::from_raw_borrowed(&ppersistentuniqueids)) { Ok(ok__) => { @@ -706,24 +535,15 @@ impl IPortableDeviceContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceContent_Impl::Cancel(this).into() } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, pobjectids: *mut core::ffi::c_void, pszdestinationfolderobjectid: windows_core::PCWSTR, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, pobjectids: *mut core::ffi::c_void, pszdestinationfolderobjectid: windows_core::PCWSTR, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceContent_Impl::Move(this, windows_core::from_raw_borrowed(&pobjectids), core::mem::transmute(&pszdestinationfolderobjectid), core::mem::transmute_copy(&ppresults)).into() } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, pobjectids: *mut core::ffi::c_void, pszdestinationfolderobjectid: windows_core::PCWSTR, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, pobjectids: *mut core::ffi::c_void, pszdestinationfolderobjectid: windows_core::PCWSTR, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceContent_Impl::Copy(this, windows_core::from_raw_borrowed(&pobjectids), core::mem::transmute(&pszdestinationfolderobjectid), core::mem::transmute_copy(&ppresults)).into() } @@ -753,14 +573,8 @@ pub trait IPortableDeviceContent2_Impl: Sized + IPortableDeviceContent_Impl { impl windows_core::RuntimeName for IPortableDeviceContent2 {} #[cfg(feature = "Win32_System_Com")] impl IPortableDeviceContent2_Vtbl { - pub const fn new() -> IPortableDeviceContent2_Vtbl - where - Identity: IPortableDeviceContent2_Impl, - { - unsafe extern "system" fn UpdateObjectWithPropertiesAndData(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, pproperties: *mut core::ffi::c_void, ppdata: *mut *mut core::ffi::c_void, pdwoptimalwritebuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceContent2_Impl, - { + pub const fn new() -> IPortableDeviceContent2_Vtbl { + unsafe extern "system" fn UpdateObjectWithPropertiesAndData(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, pproperties: *mut core::ffi::c_void, ppdata: *mut *mut core::ffi::c_void, pdwoptimalwritebuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceContent2_Impl::UpdateObjectWithPropertiesAndData(this, core::mem::transmute(&pszobjectid), windows_core::from_raw_borrowed(&pproperties), core::mem::transmute_copy(&ppdata), core::mem::transmute_copy(&pdwoptimalwritebuffersize)).into() } @@ -782,14 +596,8 @@ pub trait IPortableDeviceDataStream_Impl: Sized + super::super::System::Com::ISt impl windows_core::RuntimeName for IPortableDeviceDataStream {} #[cfg(feature = "Win32_System_Com")] impl IPortableDeviceDataStream_Vtbl { - pub const fn new() -> IPortableDeviceDataStream_Vtbl - where - Identity: IPortableDeviceDataStream_Impl, - { - unsafe extern "system" fn GetObjectID(this: *mut core::ffi::c_void, ppszobjectid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceDataStream_Impl, - { + pub const fn new() -> IPortableDeviceDataStream_Vtbl { + unsafe extern "system" fn GetObjectID(this: *mut core::ffi::c_void, ppszobjectid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceDataStream_Impl::GetObjectID(this) { Ok(ok__) => { @@ -799,10 +607,7 @@ impl IPortableDeviceDataStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceDataStream_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceDataStream_Impl::Cancel(this).into() } @@ -817,21 +622,15 @@ impl IPortableDeviceDataStream_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IPortableDeviceDispatchFactory_Impl: Sized { +pub trait IPortableDeviceDispatchFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceDispatch(&self, pszpnpdeviceid: &windows_core::PCWSTR) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IPortableDeviceDispatchFactory {} #[cfg(feature = "Win32_System_Com")] impl IPortableDeviceDispatchFactory_Vtbl { - pub const fn new() -> IPortableDeviceDispatchFactory_Vtbl - where - Identity: IPortableDeviceDispatchFactory_Impl, - { - unsafe extern "system" fn GetDeviceDispatch(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, ppdevicedispatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceDispatchFactory_Impl, - { + pub const fn new() -> IPortableDeviceDispatchFactory_Vtbl { + unsafe extern "system" fn GetDeviceDispatch(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, ppdevicedispatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceDispatchFactory_Impl::GetDeviceDispatch(this, core::mem::transmute(&pszpnpdeviceid)) { Ok(ok__) => { @@ -847,19 +646,13 @@ impl IPortableDeviceDispatchFactory_Vtbl { iid == &::IID } } -pub trait IPortableDeviceEventCallback_Impl: Sized { +pub trait IPortableDeviceEventCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnEvent(&self, peventparameters: Option<&IPortableDeviceValues>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPortableDeviceEventCallback {} impl IPortableDeviceEventCallback_Vtbl { - pub const fn new() -> IPortableDeviceEventCallback_Vtbl - where - Identity: IPortableDeviceEventCallback_Impl, - { - unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, peventparameters: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceEventCallback_Impl, - { + pub const fn new() -> IPortableDeviceEventCallback_Vtbl { + unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, peventparameters: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceEventCallback_Impl::OnEvent(this, windows_core::from_raw_borrowed(&peventparameters)).into() } @@ -870,7 +663,7 @@ impl IPortableDeviceEventCallback_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IPortableDeviceKeyCollection_Impl: Sized { +pub trait IPortableDeviceKeyCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self, pcelems: *const u32) -> windows_core::Result<()>; fn GetAt(&self, dwindex: u32, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()>; fn Add(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()>; @@ -881,42 +674,24 @@ pub trait IPortableDeviceKeyCollection_Impl: Sized { impl windows_core::RuntimeName for IPortableDeviceKeyCollection {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IPortableDeviceKeyCollection_Vtbl { - pub const fn new() -> IPortableDeviceKeyCollection_Vtbl - where - Identity: IPortableDeviceKeyCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelems: *const u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceKeyCollection_Impl, - { + pub const fn new() -> IPortableDeviceKeyCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelems: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceKeyCollection_Impl::GetCount(this, core::mem::transmute_copy(&pcelems)).into() } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwindex: u32, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPortableDeviceKeyCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwindex: u32, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceKeyCollection_Impl::GetAt(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pkey)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPortableDeviceKeyCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceKeyCollection_Impl::Add(this, core::mem::transmute_copy(&key)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceKeyCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceKeyCollection_Impl::Clear(this).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceKeyCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceKeyCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&dwindex)).into() } @@ -933,7 +708,7 @@ impl IPortableDeviceKeyCollection_Vtbl { iid == &::IID } } -pub trait IPortableDeviceManager_Impl: Sized { +pub trait IPortableDeviceManager_Impl: Sized + windows_core::IUnknownImpl { fn GetDevices(&self, ppnpdeviceids: *mut windows_core::PWSTR, pcpnpdeviceids: *mut u32) -> windows_core::Result<()>; fn RefreshDeviceList(&self) -> windows_core::Result<()>; fn GetDeviceFriendlyName(&self, pszpnpdeviceid: &windows_core::PCWSTR, pdevicefriendlyname: &windows_core::PWSTR, pcchdevicefriendlyname: *mut u32) -> windows_core::Result<()>; @@ -944,56 +719,32 @@ pub trait IPortableDeviceManager_Impl: Sized { } impl windows_core::RuntimeName for IPortableDeviceManager {} impl IPortableDeviceManager_Vtbl { - pub const fn new() -> IPortableDeviceManager_Vtbl - where - Identity: IPortableDeviceManager_Impl, - { - unsafe extern "system" fn GetDevices(this: *mut core::ffi::c_void, ppnpdeviceids: *mut windows_core::PWSTR, pcpnpdeviceids: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceManager_Impl, - { + pub const fn new() -> IPortableDeviceManager_Vtbl { + unsafe extern "system" fn GetDevices(this: *mut core::ffi::c_void, ppnpdeviceids: *mut windows_core::PWSTR, pcpnpdeviceids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceManager_Impl::GetDevices(this, core::mem::transmute_copy(&ppnpdeviceids), core::mem::transmute_copy(&pcpnpdeviceids)).into() } - unsafe extern "system" fn RefreshDeviceList(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceManager_Impl, - { + unsafe extern "system" fn RefreshDeviceList(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceManager_Impl::RefreshDeviceList(this).into() } - unsafe extern "system" fn GetDeviceFriendlyName(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, pdevicefriendlyname: windows_core::PWSTR, pcchdevicefriendlyname: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceManager_Impl, - { + unsafe extern "system" fn GetDeviceFriendlyName(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, pdevicefriendlyname: windows_core::PWSTR, pcchdevicefriendlyname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceManager_Impl::GetDeviceFriendlyName(this, core::mem::transmute(&pszpnpdeviceid), core::mem::transmute(&pdevicefriendlyname), core::mem::transmute_copy(&pcchdevicefriendlyname)).into() } - unsafe extern "system" fn GetDeviceDescription(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, pdevicedescription: windows_core::PWSTR, pcchdevicedescription: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceManager_Impl, - { + unsafe extern "system" fn GetDeviceDescription(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, pdevicedescription: windows_core::PWSTR, pcchdevicedescription: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceManager_Impl::GetDeviceDescription(this, core::mem::transmute(&pszpnpdeviceid), core::mem::transmute(&pdevicedescription), core::mem::transmute_copy(&pcchdevicedescription)).into() } - unsafe extern "system" fn GetDeviceManufacturer(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, pdevicemanufacturer: windows_core::PWSTR, pcchdevicemanufacturer: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceManager_Impl, - { + unsafe extern "system" fn GetDeviceManufacturer(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, pdevicemanufacturer: windows_core::PWSTR, pcchdevicemanufacturer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceManager_Impl::GetDeviceManufacturer(this, core::mem::transmute(&pszpnpdeviceid), core::mem::transmute(&pdevicemanufacturer), core::mem::transmute_copy(&pcchdevicemanufacturer)).into() } - unsafe extern "system" fn GetDeviceProperty(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, pszdevicepropertyname: windows_core::PCWSTR, pdata: *mut u8, pcbdata: *mut u32, pdwtype: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceManager_Impl, - { + unsafe extern "system" fn GetDeviceProperty(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, pszdevicepropertyname: windows_core::PCWSTR, pdata: *mut u8, pcbdata: *mut u32, pdwtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceManager_Impl::GetDeviceProperty(this, core::mem::transmute(&pszpnpdeviceid), core::mem::transmute(&pszdevicepropertyname), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&pdwtype)).into() } - unsafe extern "system" fn GetPrivateDevices(this: *mut core::ffi::c_void, ppnpdeviceids: *mut windows_core::PWSTR, pcpnpdeviceids: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceManager_Impl, - { + unsafe extern "system" fn GetPrivateDevices(this: *mut core::ffi::c_void, ppnpdeviceids: *mut windows_core::PWSTR, pcpnpdeviceids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceManager_Impl::GetPrivateDevices(this, core::mem::transmute_copy(&ppnpdeviceids), core::mem::transmute_copy(&pcpnpdeviceids)).into() } @@ -1012,7 +763,7 @@ impl IPortableDeviceManager_Vtbl { iid == &::IID } } -pub trait IPortableDevicePropVariantCollection_Impl: Sized { +pub trait IPortableDevicePropVariantCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self, pcelems: *const u32) -> windows_core::Result<()>; fn GetAt(&self, dwindex: u32, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; fn Add(&self, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; @@ -1023,35 +774,20 @@ pub trait IPortableDevicePropVariantCollection_Impl: Sized { } impl windows_core::RuntimeName for IPortableDevicePropVariantCollection {} impl IPortableDevicePropVariantCollection_Vtbl { - pub const fn new() -> IPortableDevicePropVariantCollection_Vtbl - where - Identity: IPortableDevicePropVariantCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelems: *const u32) -> windows_core::HRESULT - where - Identity: IPortableDevicePropVariantCollection_Impl, - { + pub const fn new() -> IPortableDevicePropVariantCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelems: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropVariantCollection_Impl::GetCount(this, core::mem::transmute_copy(&pcelems)).into() } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwindex: u32, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPortableDevicePropVariantCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwindex: u32, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropVariantCollection_Impl::GetAt(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPortableDevicePropVariantCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropVariantCollection_Impl::Add(this, core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pvt: *mut u16) -> windows_core::HRESULT - where - Identity: IPortableDevicePropVariantCollection_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pvt: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDevicePropVariantCollection_Impl::GetType(this) { Ok(ok__) => { @@ -1061,24 +797,15 @@ impl IPortableDevicePropVariantCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChangeType(this: *mut core::ffi::c_void, vt: u16) -> windows_core::HRESULT - where - Identity: IPortableDevicePropVariantCollection_Impl, - { + unsafe extern "system" fn ChangeType(this: *mut core::ffi::c_void, vt: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropVariantCollection_Impl::ChangeType(this, core::mem::transmute_copy(&vt)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDevicePropVariantCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropVariantCollection_Impl::Clear(this).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT - where - Identity: IPortableDevicePropVariantCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropVariantCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&dwindex)).into() } @@ -1098,7 +825,7 @@ impl IPortableDevicePropVariantCollection_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IPortableDeviceProperties_Impl: Sized { +pub trait IPortableDeviceProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetSupportedProperties(&self, pszobjectid: &windows_core::PCWSTR) -> windows_core::Result; fn GetPropertyAttributes(&self, pszobjectid: &windows_core::PCWSTR, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result; fn GetValues(&self, pszobjectid: &windows_core::PCWSTR, pkeys: Option<&IPortableDeviceKeyCollection>) -> windows_core::Result; @@ -1110,14 +837,8 @@ pub trait IPortableDeviceProperties_Impl: Sized { impl windows_core::RuntimeName for IPortableDeviceProperties {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IPortableDeviceProperties_Vtbl { - pub const fn new() -> IPortableDeviceProperties_Vtbl - where - Identity: IPortableDeviceProperties_Impl, - { - unsafe extern "system" fn GetSupportedProperties(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceProperties_Impl, - { + pub const fn new() -> IPortableDeviceProperties_Vtbl { + unsafe extern "system" fn GetSupportedProperties(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceProperties_Impl::GetSupportedProperties(this, core::mem::transmute(&pszobjectid)) { Ok(ok__) => { @@ -1127,10 +848,7 @@ impl IPortableDeviceProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyAttributes(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceProperties_Impl, - { + unsafe extern "system" fn GetPropertyAttributes(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceProperties_Impl::GetPropertyAttributes(this, core::mem::transmute(&pszobjectid), core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -1140,10 +858,7 @@ impl IPortableDeviceProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValues(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, pkeys: *mut core::ffi::c_void, ppvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceProperties_Impl, - { + unsafe extern "system" fn GetValues(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, pkeys: *mut core::ffi::c_void, ppvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceProperties_Impl::GetValues(this, core::mem::transmute(&pszobjectid), windows_core::from_raw_borrowed(&pkeys)) { Ok(ok__) => { @@ -1153,10 +868,7 @@ impl IPortableDeviceProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValues(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, pvalues: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceProperties_Impl, - { + unsafe extern "system" fn SetValues(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, pvalues: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceProperties_Impl::SetValues(this, core::mem::transmute(&pszobjectid), windows_core::from_raw_borrowed(&pvalues)) { Ok(ok__) => { @@ -1166,17 +878,11 @@ impl IPortableDeviceProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, pkeys: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceProperties_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, pkeys: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceProperties_Impl::Delete(this, core::mem::transmute(&pszobjectid), windows_core::from_raw_borrowed(&pkeys)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceProperties_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceProperties_Impl::Cancel(this).into() } @@ -1194,7 +900,7 @@ impl IPortableDeviceProperties_Vtbl { iid == &::IID } } -pub trait IPortableDevicePropertiesBulk_Impl: Sized { +pub trait IPortableDevicePropertiesBulk_Impl: Sized + windows_core::IUnknownImpl { fn QueueGetValuesByObjectList(&self, pobjectids: Option<&IPortableDevicePropVariantCollection>, pkeys: Option<&IPortableDeviceKeyCollection>, pcallback: Option<&IPortableDevicePropertiesBulkCallback>) -> windows_core::Result; fn QueueGetValuesByObjectFormat(&self, pguidobjectformat: *const windows_core::GUID, pszparentobjectid: &windows_core::PCWSTR, dwdepth: u32, pkeys: Option<&IPortableDeviceKeyCollection>, pcallback: Option<&IPortableDevicePropertiesBulkCallback>) -> windows_core::Result; fn QueueSetValuesByObjectList(&self, pobjectvalues: Option<&IPortableDeviceValuesCollection>, pcallback: Option<&IPortableDevicePropertiesBulkCallback>) -> windows_core::Result; @@ -1203,14 +909,8 @@ pub trait IPortableDevicePropertiesBulk_Impl: Sized { } impl windows_core::RuntimeName for IPortableDevicePropertiesBulk {} impl IPortableDevicePropertiesBulk_Vtbl { - pub const fn new() -> IPortableDevicePropertiesBulk_Vtbl - where - Identity: IPortableDevicePropertiesBulk_Impl, - { - unsafe extern "system" fn QueueGetValuesByObjectList(this: *mut core::ffi::c_void, pobjectids: *mut core::ffi::c_void, pkeys: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pcontext: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPortableDevicePropertiesBulk_Impl, - { + pub const fn new() -> IPortableDevicePropertiesBulk_Vtbl { + unsafe extern "system" fn QueueGetValuesByObjectList(this: *mut core::ffi::c_void, pobjectids: *mut core::ffi::c_void, pkeys: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pcontext: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDevicePropertiesBulk_Impl::QueueGetValuesByObjectList(this, windows_core::from_raw_borrowed(&pobjectids), windows_core::from_raw_borrowed(&pkeys), windows_core::from_raw_borrowed(&pcallback)) { Ok(ok__) => { @@ -1220,10 +920,7 @@ impl IPortableDevicePropertiesBulk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueGetValuesByObjectFormat(this: *mut core::ffi::c_void, pguidobjectformat: *const windows_core::GUID, pszparentobjectid: windows_core::PCWSTR, dwdepth: u32, pkeys: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pcontext: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPortableDevicePropertiesBulk_Impl, - { + unsafe extern "system" fn QueueGetValuesByObjectFormat(this: *mut core::ffi::c_void, pguidobjectformat: *const windows_core::GUID, pszparentobjectid: windows_core::PCWSTR, dwdepth: u32, pkeys: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pcontext: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDevicePropertiesBulk_Impl::QueueGetValuesByObjectFormat(this, core::mem::transmute_copy(&pguidobjectformat), core::mem::transmute(&pszparentobjectid), core::mem::transmute_copy(&dwdepth), windows_core::from_raw_borrowed(&pkeys), windows_core::from_raw_borrowed(&pcallback)) { Ok(ok__) => { @@ -1233,10 +930,7 @@ impl IPortableDevicePropertiesBulk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueSetValuesByObjectList(this: *mut core::ffi::c_void, pobjectvalues: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pcontext: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPortableDevicePropertiesBulk_Impl, - { + unsafe extern "system" fn QueueSetValuesByObjectList(this: *mut core::ffi::c_void, pobjectvalues: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pcontext: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDevicePropertiesBulk_Impl::QueueSetValuesByObjectList(this, windows_core::from_raw_borrowed(&pobjectvalues), windows_core::from_raw_borrowed(&pcallback)) { Ok(ok__) => { @@ -1246,17 +940,11 @@ impl IPortableDevicePropertiesBulk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, pcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPortableDevicePropertiesBulk_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, pcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropertiesBulk_Impl::Start(this, core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, pcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPortableDevicePropertiesBulk_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, pcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropertiesBulk_Impl::Cancel(this, core::mem::transmute_copy(&pcontext)).into() } @@ -1273,35 +961,23 @@ impl IPortableDevicePropertiesBulk_Vtbl { iid == &::IID } } -pub trait IPortableDevicePropertiesBulkCallback_Impl: Sized { +pub trait IPortableDevicePropertiesBulkCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnStart(&self, pcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn OnProgress(&self, pcontext: *const windows_core::GUID, presults: Option<&IPortableDeviceValuesCollection>) -> windows_core::Result<()>; fn OnEnd(&self, pcontext: *const windows_core::GUID, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPortableDevicePropertiesBulkCallback {} impl IPortableDevicePropertiesBulkCallback_Vtbl { - pub const fn new() -> IPortableDevicePropertiesBulkCallback_Vtbl - where - Identity: IPortableDevicePropertiesBulkCallback_Impl, - { - unsafe extern "system" fn OnStart(this: *mut core::ffi::c_void, pcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPortableDevicePropertiesBulkCallback_Impl, - { + pub const fn new() -> IPortableDevicePropertiesBulkCallback_Vtbl { + unsafe extern "system" fn OnStart(this: *mut core::ffi::c_void, pcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropertiesBulkCallback_Impl::OnStart(this, core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, pcontext: *const windows_core::GUID, presults: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDevicePropertiesBulkCallback_Impl, - { + unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, pcontext: *const windows_core::GUID, presults: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropertiesBulkCallback_Impl::OnProgress(this, core::mem::transmute_copy(&pcontext), windows_core::from_raw_borrowed(&presults)).into() } - unsafe extern "system" fn OnEnd(this: *mut core::ffi::c_void, pcontext: *const windows_core::GUID, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPortableDevicePropertiesBulkCallback_Impl, - { + unsafe extern "system" fn OnEnd(this: *mut core::ffi::c_void, pcontext: *const windows_core::GUID, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDevicePropertiesBulkCallback_Impl::OnEnd(this, core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&hrstatus)).into() } @@ -1317,7 +993,7 @@ impl IPortableDevicePropertiesBulkCallback_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IPortableDeviceResources_Impl: Sized { +pub trait IPortableDeviceResources_Impl: Sized + windows_core::IUnknownImpl { fn GetSupportedResources(&self, pszobjectid: &windows_core::PCWSTR) -> windows_core::Result; fn GetResourceAttributes(&self, pszobjectid: &windows_core::PCWSTR, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result; fn GetStream(&self, pszobjectid: &windows_core::PCWSTR, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, dwmode: u32, pdwoptimalbuffersize: *mut u32, ppstream: *mut Option) -> windows_core::Result<()>; @@ -1329,14 +1005,8 @@ pub trait IPortableDeviceResources_Impl: Sized { impl windows_core::RuntimeName for IPortableDeviceResources {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IPortableDeviceResources_Vtbl { - pub const fn new() -> IPortableDeviceResources_Vtbl - where - Identity: IPortableDeviceResources_Impl, - { - unsafe extern "system" fn GetSupportedResources(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceResources_Impl, - { + pub const fn new() -> IPortableDeviceResources_Vtbl { + unsafe extern "system" fn GetSupportedResources(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceResources_Impl::GetSupportedResources(this, core::mem::transmute(&pszobjectid)) { Ok(ok__) => { @@ -1346,10 +1016,7 @@ impl IPortableDeviceResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResourceAttributes(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppresourceattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceResources_Impl, - { + unsafe extern "system" fn GetResourceAttributes(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppresourceattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceResources_Impl::GetResourceAttributes(this, core::mem::transmute(&pszobjectid), core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -1359,31 +1026,19 @@ impl IPortableDeviceResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, dwmode: u32, pdwoptimalbuffersize: *mut u32, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceResources_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, dwmode: u32, pdwoptimalbuffersize: *mut u32, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceResources_Impl::GetStream(this, core::mem::transmute(&pszobjectid), core::mem::transmute_copy(&key), core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&pdwoptimalbuffersize), core::mem::transmute_copy(&ppstream)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, pkeys: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceResources_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, pszobjectid: windows_core::PCWSTR, pkeys: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceResources_Impl::Delete(this, core::mem::transmute(&pszobjectid), windows_core::from_raw_borrowed(&pkeys)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceResources_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceResources_Impl::Cancel(this).into() } - unsafe extern "system" fn CreateResource(this: *mut core::ffi::c_void, presourceattributes: *mut core::ffi::c_void, ppdata: *mut *mut core::ffi::c_void, pdwoptimalwritebuffersize: *mut u32, ppszcookie: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceResources_Impl, - { + unsafe extern "system" fn CreateResource(this: *mut core::ffi::c_void, presourceattributes: *mut core::ffi::c_void, ppdata: *mut *mut core::ffi::c_void, pdwoptimalwritebuffersize: *mut u32, ppszcookie: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceResources_Impl::CreateResource(this, windows_core::from_raw_borrowed(&presourceattributes), core::mem::transmute_copy(&ppdata), core::mem::transmute_copy(&pdwoptimalwritebuffersize), core::mem::transmute_copy(&ppszcookie)).into() } @@ -1401,7 +1056,7 @@ impl IPortableDeviceResources_Vtbl { iid == &::IID } } -pub trait IPortableDeviceService_Impl: Sized { +pub trait IPortableDeviceService_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, pszpnpserviceid: &windows_core::PCWSTR, pclientinfo: Option<&IPortableDeviceValues>) -> windows_core::Result<()>; fn Capabilities(&self) -> windows_core::Result; fn Content(&self) -> windows_core::Result; @@ -1416,21 +1071,12 @@ pub trait IPortableDeviceService_Impl: Sized { } impl windows_core::RuntimeName for IPortableDeviceService {} impl IPortableDeviceService_Vtbl { - pub const fn new() -> IPortableDeviceService_Vtbl - where - Identity: IPortableDeviceService_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pszpnpserviceid: windows_core::PCWSTR, pclientinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + pub const fn new() -> IPortableDeviceService_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pszpnpserviceid: windows_core::PCWSTR, pclientinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceService_Impl::Open(this, core::mem::transmute(&pszpnpserviceid), windows_core::from_raw_borrowed(&pclientinfo)).into() } - unsafe extern "system" fn Capabilities(this: *mut core::ffi::c_void, ppcapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + unsafe extern "system" fn Capabilities(this: *mut core::ffi::c_void, ppcapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceService_Impl::Capabilities(this) { Ok(ok__) => { @@ -1440,10 +1086,7 @@ impl IPortableDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Content(this: *mut core::ffi::c_void, ppcontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + unsafe extern "system" fn Content(this: *mut core::ffi::c_void, ppcontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceService_Impl::Content(this) { Ok(ok__) => { @@ -1453,10 +1096,7 @@ impl IPortableDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Methods(this: *mut core::ffi::c_void, ppmethods: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + unsafe extern "system" fn Methods(this: *mut core::ffi::c_void, ppmethods: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceService_Impl::Methods(this) { Ok(ok__) => { @@ -1466,24 +1106,15 @@ impl IPortableDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceService_Impl::Cancel(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceService_Impl::Close(this).into() } - unsafe extern "system" fn GetServiceObjectID(this: *mut core::ffi::c_void, ppszserviceobjectid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + unsafe extern "system" fn GetServiceObjectID(this: *mut core::ffi::c_void, ppszserviceobjectid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceService_Impl::GetServiceObjectID(this) { Ok(ok__) => { @@ -1493,10 +1124,7 @@ impl IPortableDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPnPServiceID(this: *mut core::ffi::c_void, ppszpnpserviceid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + unsafe extern "system" fn GetPnPServiceID(this: *mut core::ffi::c_void, ppszpnpserviceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceService_Impl::GetPnPServiceID(this) { Ok(ok__) => { @@ -1506,10 +1134,7 @@ impl IPortableDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, dwflags: u32, pcallback: *mut core::ffi::c_void, pparameters: *mut core::ffi::c_void, ppszcookie: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, dwflags: u32, pcallback: *mut core::ffi::c_void, pparameters: *mut core::ffi::c_void, ppszcookie: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceService_Impl::Advise(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pparameters)) { Ok(ok__) => { @@ -1519,17 +1144,11 @@ impl IPortableDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, pszcookie: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, pszcookie: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceService_Impl::Unadvise(this, core::mem::transmute(&pszcookie)).into() } - unsafe extern "system" fn SendCommand(this: *mut core::ffi::c_void, dwflags: u32, pparameters: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceService_Impl, - { + unsafe extern "system" fn SendCommand(this: *mut core::ffi::c_void, dwflags: u32, pparameters: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceService_Impl::SendCommand(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pparameters)) { Ok(ok__) => { @@ -1558,27 +1177,18 @@ impl IPortableDeviceService_Vtbl { iid == &::IID } } -pub trait IPortableDeviceServiceActivation_Impl: Sized { +pub trait IPortableDeviceServiceActivation_Impl: Sized + windows_core::IUnknownImpl { fn OpenAsync(&self, pszpnpserviceid: &windows_core::PCWSTR, pclientinfo: Option<&IPortableDeviceValues>, pcallback: Option<&IPortableDeviceServiceOpenCallback>) -> windows_core::Result<()>; fn CancelOpenAsync(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPortableDeviceServiceActivation {} impl IPortableDeviceServiceActivation_Vtbl { - pub const fn new() -> IPortableDeviceServiceActivation_Vtbl - where - Identity: IPortableDeviceServiceActivation_Impl, - { - unsafe extern "system" fn OpenAsync(this: *mut core::ffi::c_void, pszpnpserviceid: windows_core::PCWSTR, pclientinfo: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceActivation_Impl, - { + pub const fn new() -> IPortableDeviceServiceActivation_Vtbl { + unsafe extern "system" fn OpenAsync(this: *mut core::ffi::c_void, pszpnpserviceid: windows_core::PCWSTR, pclientinfo: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceServiceActivation_Impl::OpenAsync(this, core::mem::transmute(&pszpnpserviceid), windows_core::from_raw_borrowed(&pclientinfo), windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn CancelOpenAsync(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceActivation_Impl, - { + unsafe extern "system" fn CancelOpenAsync(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceServiceActivation_Impl::CancelOpenAsync(this).into() } @@ -1593,7 +1203,7 @@ impl IPortableDeviceServiceActivation_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IPortableDeviceServiceCapabilities_Impl: Sized { +pub trait IPortableDeviceServiceCapabilities_Impl: Sized + windows_core::IUnknownImpl { fn GetSupportedMethods(&self) -> windows_core::Result; fn GetSupportedMethodsByFormat(&self, format: *const windows_core::GUID) -> windows_core::Result; fn GetMethodAttributes(&self, method: *const windows_core::GUID) -> windows_core::Result; @@ -1615,14 +1225,8 @@ pub trait IPortableDeviceServiceCapabilities_Impl: Sized { impl windows_core::RuntimeName for IPortableDeviceServiceCapabilities {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IPortableDeviceServiceCapabilities_Vtbl { - pub const fn new() -> IPortableDeviceServiceCapabilities_Vtbl - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { - unsafe extern "system" fn GetSupportedMethods(this: *mut core::ffi::c_void, ppmethods: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + pub const fn new() -> IPortableDeviceServiceCapabilities_Vtbl { + unsafe extern "system" fn GetSupportedMethods(this: *mut core::ffi::c_void, ppmethods: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetSupportedMethods(this) { Ok(ok__) => { @@ -1632,10 +1236,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedMethodsByFormat(this: *mut core::ffi::c_void, format: *const windows_core::GUID, ppmethods: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetSupportedMethodsByFormat(this: *mut core::ffi::c_void, format: *const windows_core::GUID, ppmethods: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetSupportedMethodsByFormat(this, core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -1645,10 +1246,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMethodAttributes(this: *mut core::ffi::c_void, method: *const windows_core::GUID, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetMethodAttributes(this: *mut core::ffi::c_void, method: *const windows_core::GUID, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetMethodAttributes(this, core::mem::transmute_copy(&method)) { Ok(ok__) => { @@ -1658,10 +1256,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMethodParameterAttributes(this: *mut core::ffi::c_void, method: *const windows_core::GUID, parameter: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetMethodParameterAttributes(this: *mut core::ffi::c_void, method: *const windows_core::GUID, parameter: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetMethodParameterAttributes(this, core::mem::transmute_copy(&method), core::mem::transmute_copy(¶meter)) { Ok(ok__) => { @@ -1671,10 +1266,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedFormats(this: *mut core::ffi::c_void, ppformats: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetSupportedFormats(this: *mut core::ffi::c_void, ppformats: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetSupportedFormats(this) { Ok(ok__) => { @@ -1684,10 +1276,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormatAttributes(this: *mut core::ffi::c_void, format: *const windows_core::GUID, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetFormatAttributes(this: *mut core::ffi::c_void, format: *const windows_core::GUID, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetFormatAttributes(this, core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -1697,10 +1286,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedFormatProperties(this: *mut core::ffi::c_void, format: *const windows_core::GUID, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetSupportedFormatProperties(this: *mut core::ffi::c_void, format: *const windows_core::GUID, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetSupportedFormatProperties(this, core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -1710,10 +1296,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormatPropertyAttributes(this: *mut core::ffi::c_void, format: *const windows_core::GUID, property: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetFormatPropertyAttributes(this: *mut core::ffi::c_void, format: *const windows_core::GUID, property: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetFormatPropertyAttributes(this, core::mem::transmute_copy(&format), core::mem::transmute_copy(&property)) { Ok(ok__) => { @@ -1723,10 +1306,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedEvents(this: *mut core::ffi::c_void, ppevents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetSupportedEvents(this: *mut core::ffi::c_void, ppevents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetSupportedEvents(this) { Ok(ok__) => { @@ -1736,10 +1316,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventAttributes(this: *mut core::ffi::c_void, event: *const windows_core::GUID, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetEventAttributes(this: *mut core::ffi::c_void, event: *const windows_core::GUID, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetEventAttributes(this, core::mem::transmute_copy(&event)) { Ok(ok__) => { @@ -1749,10 +1326,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventParameterAttributes(this: *mut core::ffi::c_void, event: *const windows_core::GUID, parameter: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetEventParameterAttributes(this: *mut core::ffi::c_void, event: *const windows_core::GUID, parameter: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetEventParameterAttributes(this, core::mem::transmute_copy(&event), core::mem::transmute_copy(¶meter)) { Ok(ok__) => { @@ -1762,10 +1336,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInheritedServices(this: *mut core::ffi::c_void, dwinheritancetype: u32, ppservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetInheritedServices(this: *mut core::ffi::c_void, dwinheritancetype: u32, ppservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetInheritedServices(this, core::mem::transmute_copy(&dwinheritancetype)) { Ok(ok__) => { @@ -1775,10 +1346,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormatRenderingProfiles(this: *mut core::ffi::c_void, format: *const windows_core::GUID, pprenderingprofiles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetFormatRenderingProfiles(this: *mut core::ffi::c_void, format: *const windows_core::GUID, pprenderingprofiles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetFormatRenderingProfiles(this, core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -1788,10 +1356,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedCommands(this: *mut core::ffi::c_void, ppcommands: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetSupportedCommands(this: *mut core::ffi::c_void, ppcommands: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetSupportedCommands(this) { Ok(ok__) => { @@ -1801,10 +1366,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCommandOptions(this: *mut core::ffi::c_void, command: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn GetCommandOptions(this: *mut core::ffi::c_void, command: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceCapabilities_Impl::GetCommandOptions(this, core::mem::transmute_copy(&command)) { Ok(ok__) => { @@ -1814,10 +1376,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceCapabilities_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceServiceCapabilities_Impl::Cancel(this).into() } @@ -1845,27 +1404,18 @@ impl IPortableDeviceServiceCapabilities_Vtbl { iid == &::IID } } -pub trait IPortableDeviceServiceManager_Impl: Sized { +pub trait IPortableDeviceServiceManager_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceServices(&self, pszpnpdeviceid: &windows_core::PCWSTR, guidservicecategory: *const windows_core::GUID, pservices: *mut windows_core::PWSTR, pcservices: *mut u32) -> windows_core::Result<()>; fn GetDeviceForService(&self, pszpnpserviceid: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IPortableDeviceServiceManager {} impl IPortableDeviceServiceManager_Vtbl { - pub const fn new() -> IPortableDeviceServiceManager_Vtbl - where - Identity: IPortableDeviceServiceManager_Impl, - { - unsafe extern "system" fn GetDeviceServices(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, guidservicecategory: *const windows_core::GUID, pservices: *mut windows_core::PWSTR, pcservices: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceManager_Impl, - { + pub const fn new() -> IPortableDeviceServiceManager_Vtbl { + unsafe extern "system" fn GetDeviceServices(this: *mut core::ffi::c_void, pszpnpdeviceid: windows_core::PCWSTR, guidservicecategory: *const windows_core::GUID, pservices: *mut windows_core::PWSTR, pcservices: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceServiceManager_Impl::GetDeviceServices(this, core::mem::transmute(&pszpnpdeviceid), core::mem::transmute_copy(&guidservicecategory), core::mem::transmute_copy(&pservices), core::mem::transmute_copy(&pcservices)).into() } - unsafe extern "system" fn GetDeviceForService(this: *mut core::ffi::c_void, pszpnpserviceid: windows_core::PCWSTR, ppszpnpdeviceid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceManager_Impl, - { + unsafe extern "system" fn GetDeviceForService(this: *mut core::ffi::c_void, pszpnpserviceid: windows_core::PCWSTR, ppszpnpdeviceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceServiceManager_Impl::GetDeviceForService(this, core::mem::transmute(&pszpnpserviceid)) { Ok(ok__) => { @@ -1885,19 +1435,13 @@ impl IPortableDeviceServiceManager_Vtbl { iid == &::IID } } -pub trait IPortableDeviceServiceMethodCallback_Impl: Sized { +pub trait IPortableDeviceServiceMethodCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnComplete(&self, hrstatus: windows_core::HRESULT, presults: Option<&IPortableDeviceValues>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPortableDeviceServiceMethodCallback {} impl IPortableDeviceServiceMethodCallback_Vtbl { - pub const fn new() -> IPortableDeviceServiceMethodCallback_Vtbl - where - Identity: IPortableDeviceServiceMethodCallback_Impl, - { - unsafe extern "system" fn OnComplete(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, presults: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceMethodCallback_Impl, - { + pub const fn new() -> IPortableDeviceServiceMethodCallback_Vtbl { + unsafe extern "system" fn OnComplete(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, presults: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceServiceMethodCallback_Impl::OnComplete(this, core::mem::transmute_copy(&hrstatus), windows_core::from_raw_borrowed(&presults)).into() } @@ -1907,35 +1451,23 @@ impl IPortableDeviceServiceMethodCallback_Vtbl { iid == &::IID } } -pub trait IPortableDeviceServiceMethods_Impl: Sized { +pub trait IPortableDeviceServiceMethods_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self, method: *const windows_core::GUID, pparameters: Option<&IPortableDeviceValues>, ppresults: *mut Option) -> windows_core::Result<()>; fn InvokeAsync(&self, method: *const windows_core::GUID, pparameters: Option<&IPortableDeviceValues>, pcallback: Option<&IPortableDeviceServiceMethodCallback>) -> windows_core::Result<()>; fn Cancel(&self, pcallback: Option<&IPortableDeviceServiceMethodCallback>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPortableDeviceServiceMethods {} impl IPortableDeviceServiceMethods_Vtbl { - pub const fn new() -> IPortableDeviceServiceMethods_Vtbl - where - Identity: IPortableDeviceServiceMethods_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, method: *const windows_core::GUID, pparameters: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceMethods_Impl, - { + pub const fn new() -> IPortableDeviceServiceMethods_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, method: *const windows_core::GUID, pparameters: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceServiceMethods_Impl::Invoke(this, core::mem::transmute_copy(&method), windows_core::from_raw_borrowed(&pparameters), core::mem::transmute_copy(&ppresults)).into() } - unsafe extern "system" fn InvokeAsync(this: *mut core::ffi::c_void, method: *const windows_core::GUID, pparameters: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceMethods_Impl, - { + unsafe extern "system" fn InvokeAsync(this: *mut core::ffi::c_void, method: *const windows_core::GUID, pparameters: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceServiceMethods_Impl::InvokeAsync(this, core::mem::transmute_copy(&method), windows_core::from_raw_borrowed(&pparameters), windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceMethods_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceServiceMethods_Impl::Cancel(this, windows_core::from_raw_borrowed(&pcallback)).into() } @@ -1950,19 +1482,13 @@ impl IPortableDeviceServiceMethods_Vtbl { iid == &::IID } } -pub trait IPortableDeviceServiceOpenCallback_Impl: Sized { +pub trait IPortableDeviceServiceOpenCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnComplete(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPortableDeviceServiceOpenCallback {} impl IPortableDeviceServiceOpenCallback_Vtbl { - pub const fn new() -> IPortableDeviceServiceOpenCallback_Vtbl - where - Identity: IPortableDeviceServiceOpenCallback_Impl, - { - unsafe extern "system" fn OnComplete(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPortableDeviceServiceOpenCallback_Impl, - { + pub const fn new() -> IPortableDeviceServiceOpenCallback_Vtbl { + unsafe extern "system" fn OnComplete(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceServiceOpenCallback_Impl::OnComplete(this, core::mem::transmute_copy(&hrstatus)).into() } @@ -1972,27 +1498,18 @@ impl IPortableDeviceServiceOpenCallback_Vtbl { iid == &::IID } } -pub trait IPortableDeviceUnitsStream_Impl: Sized { +pub trait IPortableDeviceUnitsStream_Impl: Sized + windows_core::IUnknownImpl { fn SeekInUnits(&self, dlibmove: i64, units: WPD_STREAM_UNITS, dworigin: u32, plibnewposition: *mut u64) -> windows_core::Result<()>; fn Cancel(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPortableDeviceUnitsStream {} impl IPortableDeviceUnitsStream_Vtbl { - pub const fn new() -> IPortableDeviceUnitsStream_Vtbl - where - Identity: IPortableDeviceUnitsStream_Impl, - { - unsafe extern "system" fn SeekInUnits(this: *mut core::ffi::c_void, dlibmove: i64, units: WPD_STREAM_UNITS, dworigin: u32, plibnewposition: *mut u64) -> windows_core::HRESULT - where - Identity: IPortableDeviceUnitsStream_Impl, - { + pub const fn new() -> IPortableDeviceUnitsStream_Vtbl { + unsafe extern "system" fn SeekInUnits(this: *mut core::ffi::c_void, dlibmove: i64, units: WPD_STREAM_UNITS, dworigin: u32, plibnewposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceUnitsStream_Impl::SeekInUnits(this, core::mem::transmute_copy(&dlibmove), core::mem::transmute_copy(&units), core::mem::transmute_copy(&dworigin), core::mem::transmute_copy(&plibnewposition)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceUnitsStream_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceUnitsStream_Impl::Cancel(this).into() } @@ -2003,7 +1520,7 @@ impl IPortableDeviceUnitsStream_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IPortableDeviceValues_Impl: Sized { +pub trait IPortableDeviceValues_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self, pcelt: *const u32) -> windows_core::Result<()>; fn GetAt(&self, index: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; fn SetValue(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; @@ -2049,35 +1566,20 @@ pub trait IPortableDeviceValues_Impl: Sized { impl windows_core::RuntimeName for IPortableDeviceValues {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IPortableDeviceValues_Vtbl { - pub const fn new() -> IPortableDeviceValues_Vtbl - where - Identity: IPortableDeviceValues_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *const u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + pub const fn new() -> IPortableDeviceValues_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::GetCount(this, core::mem::transmute_copy(&pcelt)).into() } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::GetAt(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2087,17 +1589,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStringValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetStringValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetStringValue(this, core::mem::transmute_copy(&key), core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetStringValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2107,17 +1603,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUnsignedIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetUnsignedIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetUnsignedIntegerValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetUnsignedIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetUnsignedIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetUnsignedIntegerValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2127,17 +1617,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignedIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: i32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetSignedIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetSignedIntegerValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSignedIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetSignedIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetSignedIntegerValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2147,17 +1631,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUnsignedLargeIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: u64) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetUnsignedLargeIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetUnsignedLargeIntegerValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetUnsignedLargeIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut u64) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetUnsignedLargeIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetUnsignedLargeIntegerValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2167,17 +1645,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignedLargeIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: i64) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetSignedLargeIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetSignedLargeIntegerValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSignedLargeIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut i64) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetSignedLargeIntegerValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetSignedLargeIntegerValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2187,17 +1659,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFloatValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: f32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetFloatValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetFloatValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetFloatValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetFloatValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetFloatValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2207,17 +1673,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetErrorValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetErrorValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetErrorValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetErrorValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetErrorValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetErrorValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2227,31 +1687,19 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeyValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetKeyValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetKeyValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetKeyValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetKeyValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::GetKeyValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn SetBoolValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetBoolValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetBoolValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetBoolValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetBoolValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetBoolValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2261,17 +1709,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIUnknownValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetIUnknownValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetIUnknownValue(this, core::mem::transmute_copy(&key), windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn GetIUnknownValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetIUnknownValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetIUnknownValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2281,17 +1723,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGuidValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetGuidValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, value: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetGuidValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetGuidValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetGuidValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetGuidValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2301,31 +1737,19 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *const u8, cbvalue: u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetBufferValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *const u8, cbvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetBufferValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cbvalue)).into() } - unsafe extern "system" fn GetBufferValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut u8, pcbvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetBufferValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut u8, pcbvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::GetBufferValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&ppvalue), core::mem::transmute_copy(&pcbvalue)).into() } - unsafe extern "system" fn SetIPortableDeviceValuesValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetIPortableDeviceValuesValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetIPortableDeviceValuesValue(this, core::mem::transmute_copy(&key), windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn GetIPortableDeviceValuesValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetIPortableDeviceValuesValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetIPortableDeviceValuesValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2335,17 +1759,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIPortableDevicePropVariantCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetIPortableDevicePropVariantCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetIPortableDevicePropVariantCollectionValue(this, core::mem::transmute_copy(&key), windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn GetIPortableDevicePropVariantCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetIPortableDevicePropVariantCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetIPortableDevicePropVariantCollectionValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2355,17 +1773,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIPortableDeviceKeyCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetIPortableDeviceKeyCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetIPortableDeviceKeyCollectionValue(this, core::mem::transmute_copy(&key), windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn GetIPortableDeviceKeyCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetIPortableDeviceKeyCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetIPortableDeviceKeyCollectionValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2375,17 +1787,11 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIPortableDeviceValuesCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn SetIPortableDeviceValuesCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetIPortableDeviceValuesCollectionValue(this, core::mem::transmute_copy(&key), windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn GetIPortableDeviceValuesCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn GetIPortableDeviceValuesCollectionValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetIPortableDeviceValuesCollectionValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -2395,31 +1801,19 @@ impl IPortableDeviceValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn RemoveValue(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::RemoveValue(this, core::mem::transmute_copy(&key)).into() } - unsafe extern "system" fn CopyValuesFromPropertyStore(this: *mut core::ffi::c_void, pstore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn CopyValuesFromPropertyStore(this: *mut core::ffi::c_void, pstore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::CopyValuesFromPropertyStore(this, windows_core::from_raw_borrowed(&pstore)).into() } - unsafe extern "system" fn CopyValuesToPropertyStore(this: *mut core::ffi::c_void, pstore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn CopyValuesToPropertyStore(this: *mut core::ffi::c_void, pstore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::CopyValuesToPropertyStore(this, windows_core::from_raw_borrowed(&pstore)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValues_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::Clear(this).into() } @@ -2471,7 +1865,7 @@ impl IPortableDeviceValues_Vtbl { iid == &::IID } } -pub trait IPortableDeviceValuesCollection_Impl: Sized { +pub trait IPortableDeviceValuesCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self, pcelems: *const u32) -> windows_core::Result<()>; fn GetAt(&self, dwindex: u32) -> windows_core::Result; fn Add(&self, pvalues: Option<&IPortableDeviceValues>) -> windows_core::Result<()>; @@ -2480,21 +1874,12 @@ pub trait IPortableDeviceValuesCollection_Impl: Sized { } impl windows_core::RuntimeName for IPortableDeviceValuesCollection {} impl IPortableDeviceValuesCollection_Vtbl { - pub const fn new() -> IPortableDeviceValuesCollection_Vtbl - where - Identity: IPortableDeviceValuesCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelems: *const u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValuesCollection_Impl, - { + pub const fn new() -> IPortableDeviceValuesCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelems: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValuesCollection_Impl::GetCount(this, core::mem::transmute_copy(&pcelems)).into() } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwindex: u32, ppvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValuesCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwindex: u32, ppvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValuesCollection_Impl::GetAt(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -2504,24 +1889,15 @@ impl IPortableDeviceValuesCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pvalues: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValuesCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pvalues: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValuesCollection_Impl::Add(this, windows_core::from_raw_borrowed(&pvalues)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceValuesCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValuesCollection_Impl::Clear(this).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT - where - Identity: IPortableDeviceValuesCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValuesCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&dwindex)).into() } @@ -2547,14 +1923,8 @@ pub trait IPortableDeviceWebControl_Impl: Sized + super::super::System::Com::IDi impl windows_core::RuntimeName for IPortableDeviceWebControl {} #[cfg(feature = "Win32_System_Com")] impl IPortableDeviceWebControl_Vtbl { - pub const fn new() -> IPortableDeviceWebControl_Vtbl - where - Identity: IPortableDeviceWebControl_Impl, - { - unsafe extern "system" fn GetDeviceFromId(this: *mut core::ffi::c_void, deviceid: core::mem::MaybeUninit, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceWebControl_Impl, - { + pub const fn new() -> IPortableDeviceWebControl_Vtbl { + unsafe extern "system" fn GetDeviceFromId(this: *mut core::ffi::c_void, deviceid: core::mem::MaybeUninit, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceWebControl_Impl::GetDeviceFromId(this, core::mem::transmute(&deviceid)) { Ok(ok__) => { @@ -2564,10 +1934,7 @@ impl IPortableDeviceWebControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceFromIdAsync(this: *mut core::ffi::c_void, deviceid: core::mem::MaybeUninit, pcompletionhandler: *mut core::ffi::c_void, perrorhandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPortableDeviceWebControl_Impl, - { + unsafe extern "system" fn GetDeviceFromIdAsync(this: *mut core::ffi::c_void, deviceid: core::mem::MaybeUninit, pcompletionhandler: *mut core::ffi::c_void, perrorhandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceWebControl_Impl::GetDeviceFromIdAsync(this, core::mem::transmute(&deviceid), windows_core::from_raw_borrowed(&pcompletionhandler), windows_core::from_raw_borrowed(&perrorhandler)).into() } @@ -2581,7 +1948,7 @@ impl IPortableDeviceWebControl_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRadioInstance_Impl: Sized { +pub trait IRadioInstance_Impl: Sized + windows_core::IUnknownImpl { fn GetRadioManagerSignature(&self) -> windows_core::Result; fn GetInstanceSignature(&self) -> windows_core::Result; fn GetFriendlyName(&self, lcid: u32) -> windows_core::Result; @@ -2592,14 +1959,8 @@ pub trait IRadioInstance_Impl: Sized { } impl windows_core::RuntimeName for IRadioInstance {} impl IRadioInstance_Vtbl { - pub const fn new() -> IRadioInstance_Vtbl - where - Identity: IRadioInstance_Impl, - { - unsafe extern "system" fn GetRadioManagerSignature(this: *mut core::ffi::c_void, pguidsignature: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRadioInstance_Impl, - { + pub const fn new() -> IRadioInstance_Vtbl { + unsafe extern "system" fn GetRadioManagerSignature(this: *mut core::ffi::c_void, pguidsignature: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRadioInstance_Impl::GetRadioManagerSignature(this) { Ok(ok__) => { @@ -2609,10 +1970,7 @@ impl IRadioInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInstanceSignature(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRadioInstance_Impl, - { + unsafe extern "system" fn GetInstanceSignature(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRadioInstance_Impl::GetInstanceSignature(this) { Ok(ok__) => { @@ -2622,10 +1980,7 @@ impl IRadioInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, lcid: u32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRadioInstance_Impl, - { + unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, lcid: u32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRadioInstance_Impl::GetFriendlyName(this, core::mem::transmute_copy(&lcid)) { Ok(ok__) => { @@ -2635,10 +1990,7 @@ impl IRadioInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRadioState(this: *mut core::ffi::c_void, pradiostate: *mut DEVICE_RADIO_STATE) -> windows_core::HRESULT - where - Identity: IRadioInstance_Impl, - { + unsafe extern "system" fn GetRadioState(this: *mut core::ffi::c_void, pradiostate: *mut DEVICE_RADIO_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRadioInstance_Impl::GetRadioState(this) { Ok(ok__) => { @@ -2648,24 +2000,15 @@ impl IRadioInstance_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRadioState(this: *mut core::ffi::c_void, radiostate: DEVICE_RADIO_STATE, utimeoutsec: u32) -> windows_core::HRESULT - where - Identity: IRadioInstance_Impl, - { + unsafe extern "system" fn SetRadioState(this: *mut core::ffi::c_void, radiostate: DEVICE_RADIO_STATE, utimeoutsec: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRadioInstance_Impl::SetRadioState(this, core::mem::transmute_copy(&radiostate), core::mem::transmute_copy(&utimeoutsec)).into() } - unsafe extern "system" fn IsMultiComm(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IRadioInstance_Impl, - { + unsafe extern "system" fn IsMultiComm(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRadioInstance_Impl::IsMultiComm(this) } - unsafe extern "system" fn IsAssociatingDevice(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IRadioInstance_Impl, - { + unsafe extern "system" fn IsAssociatingDevice(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRadioInstance_Impl::IsAssociatingDevice(this) } @@ -2684,20 +2027,14 @@ impl IRadioInstance_Vtbl { iid == &::IID } } -pub trait IRadioInstanceCollection_Impl: Sized { +pub trait IRadioInstanceCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, uindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IRadioInstanceCollection {} impl IRadioInstanceCollection_Vtbl { - pub const fn new() -> IRadioInstanceCollection_Vtbl - where - Identity: IRadioInstanceCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcinstance: *mut u32) -> windows_core::HRESULT - where - Identity: IRadioInstanceCollection_Impl, - { + pub const fn new() -> IRadioInstanceCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcinstance: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRadioInstanceCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -2707,10 +2044,7 @@ impl IRadioInstanceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, uindex: u32, ppradioinstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRadioInstanceCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, uindex: u32, ppradioinstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRadioInstanceCollection_Impl::GetAt(this, core::mem::transmute_copy(&uindex)) { Ok(ok__) => { @@ -2726,7 +2060,7 @@ impl IRadioInstanceCollection_Vtbl { iid == &::IID } } -pub trait IWpdSerializer_Impl: Sized { +pub trait IWpdSerializer_Impl: Sized + windows_core::IUnknownImpl { fn GetIPortableDeviceValuesFromBuffer(&self, pbuffer: *const u8, dwinputbufferlength: u32) -> windows_core::Result; fn WriteIPortableDeviceValuesToBuffer(&self, dwoutputbufferlength: u32, presults: Option<&IPortableDeviceValues>, pbuffer: *mut u8, pdwbyteswritten: *mut u32) -> windows_core::Result<()>; fn GetBufferFromIPortableDeviceValues(&self, psource: Option<&IPortableDeviceValues>, ppbuffer: *mut *mut u8, pdwbuffersize: *mut u32) -> windows_core::Result<()>; @@ -2734,14 +2068,8 @@ pub trait IWpdSerializer_Impl: Sized { } impl windows_core::RuntimeName for IWpdSerializer {} impl IWpdSerializer_Vtbl { - pub const fn new() -> IWpdSerializer_Vtbl - where - Identity: IWpdSerializer_Impl, - { - unsafe extern "system" fn GetIPortableDeviceValuesFromBuffer(this: *mut core::ffi::c_void, pbuffer: *const u8, dwinputbufferlength: u32, ppparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWpdSerializer_Impl, - { + pub const fn new() -> IWpdSerializer_Vtbl { + unsafe extern "system" fn GetIPortableDeviceValuesFromBuffer(this: *mut core::ffi::c_void, pbuffer: *const u8, dwinputbufferlength: u32, ppparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWpdSerializer_Impl::GetIPortableDeviceValuesFromBuffer(this, core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&dwinputbufferlength)) { Ok(ok__) => { @@ -2751,24 +2079,15 @@ impl IWpdSerializer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteIPortableDeviceValuesToBuffer(this: *mut core::ffi::c_void, dwoutputbufferlength: u32, presults: *mut core::ffi::c_void, pbuffer: *mut u8, pdwbyteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IWpdSerializer_Impl, - { + unsafe extern "system" fn WriteIPortableDeviceValuesToBuffer(this: *mut core::ffi::c_void, dwoutputbufferlength: u32, presults: *mut core::ffi::c_void, pbuffer: *mut u8, pdwbyteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWpdSerializer_Impl::WriteIPortableDeviceValuesToBuffer(this, core::mem::transmute_copy(&dwoutputbufferlength), windows_core::from_raw_borrowed(&presults), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&pdwbyteswritten)).into() } - unsafe extern "system" fn GetBufferFromIPortableDeviceValues(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, ppbuffer: *mut *mut u8, pdwbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IWpdSerializer_Impl, - { + unsafe extern "system" fn GetBufferFromIPortableDeviceValues(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, ppbuffer: *mut *mut u8, pdwbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWpdSerializer_Impl::GetBufferFromIPortableDeviceValues(this, windows_core::from_raw_borrowed(&psource), core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&pdwbuffersize)).into() } - unsafe extern "system" fn GetSerializedSize(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWpdSerializer_Impl, - { + unsafe extern "system" fn GetSerializedSize(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWpdSerializer_Impl::GetSerializedSize(this, windows_core::from_raw_borrowed(&psource)) { Ok(ok__) => { 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 0d671338a2..6f052ce093 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/impl.rs @@ -1,17 +1,11 @@ -pub trait ILocationPermissions_Impl: Sized { +pub trait ILocationPermissions_Impl: Sized + windows_core::IUnknownImpl { fn GetGlobalLocationPermission(&self) -> windows_core::Result; fn CheckLocationCapability(&self, dwclientthreadid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILocationPermissions {} impl ILocationPermissions_Vtbl { - pub const fn new() -> ILocationPermissions_Vtbl - where - Identity: ILocationPermissions_Impl, - { - unsafe extern "system" fn GetGlobalLocationPermission(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ILocationPermissions_Impl, - { + pub const fn new() -> ILocationPermissions_Vtbl { + unsafe extern "system" fn GetGlobalLocationPermission(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocationPermissions_Impl::GetGlobalLocationPermission(this) { Ok(ok__) => { @@ -21,10 +15,7 @@ impl ILocationPermissions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckLocationCapability(this: *mut core::ffi::c_void, dwclientthreadid: u32) -> windows_core::HRESULT - where - Identity: ILocationPermissions_Impl, - { + unsafe extern "system" fn CheckLocationCapability(this: *mut core::ffi::c_void, dwclientthreadid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocationPermissions_Impl::CheckLocationCapability(this, core::mem::transmute_copy(&dwclientthreadid)).into() } @@ -39,7 +30,7 @@ impl ILocationPermissions_Vtbl { } } #[cfg(all(feature = "Win32_Devices_PortableDevices", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait ISensor_Impl: Sized { +pub trait ISensor_Impl: Sized + windows_core::IUnknownImpl { fn GetID(&self) -> windows_core::Result; fn GetCategory(&self) -> windows_core::Result; fn GetType(&self) -> windows_core::Result; @@ -60,14 +51,8 @@ pub trait ISensor_Impl: Sized { impl windows_core::RuntimeName for ISensor {} #[cfg(all(feature = "Win32_Devices_PortableDevices", feature = "Win32_UI_Shell_PropertiesSystem"))] impl ISensor_Vtbl { - pub const fn new() -> ISensor_Vtbl - where - Identity: ISensor_Impl, - { - unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + pub const fn new() -> ISensor_Vtbl { + unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::GetID(this) { Ok(ok__) => { @@ -77,10 +62,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, psensorcategory: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, psensorcategory: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::GetCategory(this) { Ok(ok__) => { @@ -90,10 +72,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, psensortype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, psensortype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::GetType(this) { Ok(ok__) => { @@ -103,10 +82,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, pfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, pfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::GetFriendlyName(this) { Ok(ok__) => { @@ -116,10 +92,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::GetProperty(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -129,10 +102,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pkeys: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pkeys: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::GetProperties(this, windows_core::from_raw_borrowed(&pkeys)) { Ok(ok__) => { @@ -142,10 +112,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedDataFields(this: *mut core::ffi::c_void, ppdatafields: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn GetSupportedDataFields(this: *mut core::ffi::c_void, ppdatafields: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::GetSupportedDataFields(this) { Ok(ok__) => { @@ -155,10 +122,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, pproperties: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, pproperties: *mut core::ffi::c_void, ppresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::SetProperties(this, windows_core::from_raw_borrowed(&pproperties)) { Ok(ok__) => { @@ -168,10 +132,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportsDataField(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pissupported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn SupportsDataField(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pissupported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::SupportsDataField(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -181,10 +142,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pstate: *mut SensorState) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pstate: *mut SensorState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::GetState(this) { Ok(ok__) => { @@ -194,10 +152,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, ppdatareport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, ppdatareport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::GetData(this) { Ok(ok__) => { @@ -207,10 +162,7 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportsEvent(this: *mut core::ffi::c_void, eventguid: *const windows_core::GUID, pissupported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn SupportsEvent(this: *mut core::ffi::c_void, eventguid: *const windows_core::GUID, pissupported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensor_Impl::SupportsEvent(this, core::mem::transmute_copy(&eventguid)) { Ok(ok__) => { @@ -220,24 +172,15 @@ impl ISensor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventInterest(this: *mut core::ffi::c_void, ppvalues: *mut *mut windows_core::GUID, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn GetEventInterest(this: *mut core::ffi::c_void, ppvalues: *mut *mut windows_core::GUID, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensor_Impl::GetEventInterest(this, core::mem::transmute_copy(&ppvalues), core::mem::transmute_copy(&pcount)).into() } - unsafe extern "system" fn SetEventInterest(this: *mut core::ffi::c_void, pvalues: *const windows_core::GUID, count: u32) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn SetEventInterest(this: *mut core::ffi::c_void, pvalues: *const windows_core::GUID, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensor_Impl::SetEventInterest(this, core::mem::transmute_copy(&pvalues), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn SetEventSink(this: *mut core::ffi::c_void, pevents: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensor_Impl, - { + unsafe extern "system" fn SetEventSink(this: *mut core::ffi::c_void, pevents: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensor_Impl::SetEventSink(this, windows_core::from_raw_borrowed(&pevents)).into() } @@ -264,7 +207,7 @@ impl ISensor_Vtbl { iid == &::IID } } -pub trait ISensorCollection_Impl: Sized { +pub trait ISensorCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetAt(&self, ulindex: u32) -> windows_core::Result; fn GetCount(&self) -> windows_core::Result; fn Add(&self, psensor: Option<&ISensor>) -> windows_core::Result<()>; @@ -274,14 +217,8 @@ pub trait ISensorCollection_Impl: Sized { } impl windows_core::RuntimeName for ISensorCollection {} impl ISensorCollection_Vtbl { - pub const fn new() -> ISensorCollection_Vtbl - where - Identity: ISensorCollection_Impl, - { - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, ulindex: u32, ppsensor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorCollection_Impl, - { + pub const fn new() -> ISensorCollection_Vtbl { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, ulindex: u32, ppsensor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensorCollection_Impl::GetAt(this, core::mem::transmute_copy(&ulindex)) { Ok(ok__) => { @@ -291,10 +228,7 @@ impl ISensorCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ISensorCollection_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensorCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -304,31 +238,19 @@ impl ISensorCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorCollection_Impl::Add(this, windows_core::from_raw_borrowed(&psensor)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorCollection_Impl::Remove(this, windows_core::from_raw_borrowed(&psensor)).into() } - unsafe extern "system" fn RemoveByID(this: *mut core::ffi::c_void, sensorid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISensorCollection_Impl, - { + unsafe extern "system" fn RemoveByID(this: *mut core::ffi::c_void, sensorid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorCollection_Impl::RemoveByID(this, core::mem::transmute_copy(&sensorid)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorCollection_Impl::Clear(this).into() } @@ -347,7 +269,7 @@ impl ISensorCollection_Vtbl { } } #[cfg(all(feature = "Win32_Devices_PortableDevices", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait ISensorDataReport_Impl: Sized { +pub trait ISensorDataReport_Impl: Sized + windows_core::IUnknownImpl { fn GetTimestamp(&self) -> windows_core::Result; fn GetSensorValue(&self, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result; fn GetSensorValues(&self, pkeys: Option<&super::PortableDevices::IPortableDeviceKeyCollection>) -> windows_core::Result; @@ -356,14 +278,8 @@ pub trait ISensorDataReport_Impl: Sized { impl windows_core::RuntimeName for ISensorDataReport {} #[cfg(all(feature = "Win32_Devices_PortableDevices", feature = "Win32_UI_Shell_PropertiesSystem"))] impl ISensorDataReport_Vtbl { - pub const fn new() -> ISensorDataReport_Vtbl - where - Identity: ISensorDataReport_Impl, - { - unsafe extern "system" fn GetTimestamp(this: *mut core::ffi::c_void, ptimestamp: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: ISensorDataReport_Impl, - { + pub const fn new() -> ISensorDataReport_Vtbl { + unsafe extern "system" fn GetTimestamp(this: *mut core::ffi::c_void, ptimestamp: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensorDataReport_Impl::GetTimestamp(this) { Ok(ok__) => { @@ -373,10 +289,7 @@ impl ISensorDataReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSensorValue(this: *mut core::ffi::c_void, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISensorDataReport_Impl, - { + unsafe extern "system" fn GetSensorValue(this: *mut core::ffi::c_void, pkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensorDataReport_Impl::GetSensorValue(this, core::mem::transmute_copy(&pkey)) { Ok(ok__) => { @@ -386,10 +299,7 @@ impl ISensorDataReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSensorValues(this: *mut core::ffi::c_void, pkeys: *mut core::ffi::c_void, ppvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorDataReport_Impl, - { + unsafe extern "system" fn GetSensorValues(this: *mut core::ffi::c_void, pkeys: *mut core::ffi::c_void, ppvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensorDataReport_Impl::GetSensorValues(this, windows_core::from_raw_borrowed(&pkeys)) { Ok(ok__) => { @@ -411,7 +321,7 @@ impl ISensorDataReport_Vtbl { } } #[cfg(feature = "Win32_Devices_PortableDevices")] -pub trait ISensorEvents_Impl: Sized { +pub trait ISensorEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnStateChanged(&self, psensor: Option<&ISensor>, state: SensorState) -> windows_core::Result<()>; fn OnDataUpdated(&self, psensor: Option<&ISensor>, pnewdata: Option<&ISensorDataReport>) -> windows_core::Result<()>; fn OnEvent(&self, psensor: Option<&ISensor>, eventid: *const windows_core::GUID, peventdata: Option<&super::PortableDevices::IPortableDeviceValues>) -> windows_core::Result<()>; @@ -421,35 +331,20 @@ pub trait ISensorEvents_Impl: Sized { impl windows_core::RuntimeName for ISensorEvents {} #[cfg(feature = "Win32_Devices_PortableDevices")] impl ISensorEvents_Vtbl { - pub const fn new() -> ISensorEvents_Vtbl - where - Identity: ISensorEvents_Impl, - { - unsafe extern "system" fn OnStateChanged(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void, state: SensorState) -> windows_core::HRESULT - where - Identity: ISensorEvents_Impl, - { + pub const fn new() -> ISensorEvents_Vtbl { + unsafe extern "system" fn OnStateChanged(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void, state: SensorState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorEvents_Impl::OnStateChanged(this, windows_core::from_raw_borrowed(&psensor), core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn OnDataUpdated(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void, pnewdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorEvents_Impl, - { + unsafe extern "system" fn OnDataUpdated(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void, pnewdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorEvents_Impl::OnDataUpdated(this, windows_core::from_raw_borrowed(&psensor), windows_core::from_raw_borrowed(&pnewdata)).into() } - unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void, eventid: *const windows_core::GUID, peventdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorEvents_Impl, - { + unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void, eventid: *const windows_core::GUID, peventdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorEvents_Impl::OnEvent(this, windows_core::from_raw_borrowed(&psensor), core::mem::transmute_copy(&eventid), windows_core::from_raw_borrowed(&peventdata)).into() } - unsafe extern "system" fn OnLeave(this: *mut core::ffi::c_void, id: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISensorEvents_Impl, - { + unsafe extern "system" fn OnLeave(this: *mut core::ffi::c_void, id: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorEvents_Impl::OnLeave(this, core::mem::transmute_copy(&id)).into() } @@ -465,7 +360,7 @@ impl ISensorEvents_Vtbl { iid == &::IID } } -pub trait ISensorManager_Impl: Sized { +pub trait ISensorManager_Impl: Sized + windows_core::IUnknownImpl { fn GetSensorsByCategory(&self, sensorcategory: *const windows_core::GUID) -> windows_core::Result; fn GetSensorsByType(&self, sensortype: *const windows_core::GUID) -> windows_core::Result; fn GetSensorByID(&self, sensorid: *const windows_core::GUID) -> windows_core::Result; @@ -474,14 +369,8 @@ pub trait ISensorManager_Impl: Sized { } impl windows_core::RuntimeName for ISensorManager {} impl ISensorManager_Vtbl { - pub const fn new() -> ISensorManager_Vtbl - where - Identity: ISensorManager_Impl, - { - unsafe extern "system" fn GetSensorsByCategory(this: *mut core::ffi::c_void, sensorcategory: *const windows_core::GUID, ppsensorsfound: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorManager_Impl, - { + pub const fn new() -> ISensorManager_Vtbl { + unsafe extern "system" fn GetSensorsByCategory(this: *mut core::ffi::c_void, sensorcategory: *const windows_core::GUID, ppsensorsfound: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensorManager_Impl::GetSensorsByCategory(this, core::mem::transmute_copy(&sensorcategory)) { Ok(ok__) => { @@ -491,10 +380,7 @@ impl ISensorManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSensorsByType(this: *mut core::ffi::c_void, sensortype: *const windows_core::GUID, ppsensorsfound: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorManager_Impl, - { + unsafe extern "system" fn GetSensorsByType(this: *mut core::ffi::c_void, sensortype: *const windows_core::GUID, ppsensorsfound: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensorManager_Impl::GetSensorsByType(this, core::mem::transmute_copy(&sensortype)) { Ok(ok__) => { @@ -504,10 +390,7 @@ impl ISensorManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSensorByID(this: *mut core::ffi::c_void, sensorid: *const windows_core::GUID, ppsensor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorManager_Impl, - { + unsafe extern "system" fn GetSensorByID(this: *mut core::ffi::c_void, sensorid: *const windows_core::GUID, ppsensor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISensorManager_Impl::GetSensorByID(this, core::mem::transmute_copy(&sensorid)) { Ok(ok__) => { @@ -517,17 +400,11 @@ impl ISensorManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventSink(this: *mut core::ffi::c_void, pevents: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensorManager_Impl, - { + unsafe extern "system" fn SetEventSink(this: *mut core::ffi::c_void, pevents: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorManager_Impl::SetEventSink(this, windows_core::from_raw_borrowed(&pevents)).into() } - unsafe extern "system" fn RequestPermissions(this: *mut core::ffi::c_void, hparent: super::super::Foundation::HWND, psensors: *mut core::ffi::c_void, fmodal: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISensorManager_Impl, - { + unsafe extern "system" fn RequestPermissions(this: *mut core::ffi::c_void, hparent: super::super::Foundation::HWND, psensors: *mut core::ffi::c_void, fmodal: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorManager_Impl::RequestPermissions(this, core::mem::transmute_copy(&hparent), windows_core::from_raw_borrowed(&psensors), core::mem::transmute_copy(&fmodal)).into() } @@ -544,19 +421,13 @@ impl ISensorManager_Vtbl { iid == &::IID } } -pub trait ISensorManagerEvents_Impl: Sized { +pub trait ISensorManagerEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnSensorEnter(&self, psensor: Option<&ISensor>, state: SensorState) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISensorManagerEvents {} impl ISensorManagerEvents_Vtbl { - pub const fn new() -> ISensorManagerEvents_Vtbl - where - Identity: ISensorManagerEvents_Impl, - { - unsafe extern "system" fn OnSensorEnter(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void, state: SensorState) -> windows_core::HRESULT - where - Identity: ISensorManagerEvents_Impl, - { + pub const fn new() -> ISensorManagerEvents_Vtbl { + unsafe extern "system" fn OnSensorEnter(this: *mut core::ffi::c_void, psensor: *mut core::ffi::c_void, state: SensorState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorManagerEvents_Impl::OnSensorEnter(this, windows_core::from_raw_borrowed(&psensor), core::mem::transmute_copy(&state)).into() } 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 bf8ac26e95..ba64a4c5a8 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_System_Com")] -pub trait IEnumACDGroup_Impl: Sized { +pub trait IEnumACDGroup_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -9,35 +9,20 @@ pub trait IEnumACDGroup_Impl: Sized { impl windows_core::RuntimeName for IEnumACDGroup {} #[cfg(feature = "Win32_System_Com")] impl IEnumACDGroup_Vtbl { - pub const fn new() -> IEnumACDGroup_Vtbl - where - Identity: IEnumACDGroup_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumACDGroup_Impl, - { + pub const fn new() -> IEnumACDGroup_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumACDGroup_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumACDGroup_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumACDGroup_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumACDGroup_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumACDGroup_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumACDGroup_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumACDGroup_Impl::Clone(this) { Ok(ok__) => { @@ -60,7 +45,7 @@ impl IEnumACDGroup_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumAddress_Impl: Sized { +pub trait IEnumAddress_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -70,35 +55,20 @@ pub trait IEnumAddress_Impl: Sized { impl windows_core::RuntimeName for IEnumAddress {} #[cfg(feature = "Win32_System_Com")] impl IEnumAddress_Vtbl { - pub const fn new() -> IEnumAddress_Vtbl - where - Identity: IEnumAddress_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumAddress_Impl, - { + pub const fn new() -> IEnumAddress_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAddress_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumAddress_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAddress_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumAddress_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAddress_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumAddress_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumAddress_Impl::Clone(this) { Ok(ok__) => { @@ -121,7 +91,7 @@ impl IEnumAddress_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumAgent_Impl: Sized { +pub trait IEnumAgent_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -131,35 +101,20 @@ pub trait IEnumAgent_Impl: Sized { impl windows_core::RuntimeName for IEnumAgent {} #[cfg(feature = "Win32_System_Com")] impl IEnumAgent_Vtbl { - pub const fn new() -> IEnumAgent_Vtbl - where - Identity: IEnumAgent_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumAgent_Impl, - { + pub const fn new() -> IEnumAgent_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAgent_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumAgent_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAgent_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumAgent_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAgent_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumAgent_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumAgent_Impl::Clone(this) { Ok(ok__) => { @@ -182,7 +137,7 @@ impl IEnumAgent_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumAgentHandler_Impl: Sized { +pub trait IEnumAgentHandler_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -192,35 +147,20 @@ pub trait IEnumAgentHandler_Impl: Sized { impl windows_core::RuntimeName for IEnumAgentHandler {} #[cfg(feature = "Win32_System_Com")] impl IEnumAgentHandler_Vtbl { - pub const fn new() -> IEnumAgentHandler_Vtbl - where - Identity: IEnumAgentHandler_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumAgentHandler_Impl, - { + pub const fn new() -> IEnumAgentHandler_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAgentHandler_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumAgentHandler_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAgentHandler_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumAgentHandler_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAgentHandler_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumAgentHandler_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumAgentHandler_Impl::Clone(this) { Ok(ok__) => { @@ -243,7 +183,7 @@ impl IEnumAgentHandler_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumAgentSession_Impl: Sized { +pub trait IEnumAgentSession_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -253,35 +193,20 @@ pub trait IEnumAgentSession_Impl: Sized { impl windows_core::RuntimeName for IEnumAgentSession {} #[cfg(feature = "Win32_System_Com")] impl IEnumAgentSession_Vtbl { - pub const fn new() -> IEnumAgentSession_Vtbl - where - Identity: IEnumAgentSession_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumAgentSession_Impl, - { + pub const fn new() -> IEnumAgentSession_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAgentSession_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumAgentSession_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAgentSession_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumAgentSession_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAgentSession_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumAgentSession_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumAgentSession_Impl::Clone(this) { Ok(ok__) => { @@ -303,7 +228,7 @@ impl IEnumAgentSession_Vtbl { iid == &::IID } } -pub trait IEnumBstr_Impl: Sized { +pub trait IEnumBstr_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -311,35 +236,20 @@ pub trait IEnumBstr_Impl: Sized { } impl windows_core::RuntimeName for IEnumBstr {} impl IEnumBstr_Vtbl { - pub const fn new() -> IEnumBstr_Vtbl - where - Identity: IEnumBstr_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppstrings: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBstr_Impl, - { + pub const fn new() -> IEnumBstr_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppstrings: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBstr_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppstrings), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBstr_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBstr_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumBstr_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBstr_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBstr_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBstr_Impl::Clone(this) { Ok(ok__) => { @@ -362,7 +272,7 @@ impl IEnumBstr_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumCall_Impl: Sized { +pub trait IEnumCall_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -372,35 +282,20 @@ pub trait IEnumCall_Impl: Sized { impl windows_core::RuntimeName for IEnumCall {} #[cfg(feature = "Win32_System_Com")] impl IEnumCall_Vtbl { - pub const fn new() -> IEnumCall_Vtbl - where - Identity: IEnumCall_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumCall_Impl, - { + pub const fn new() -> IEnumCall_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCall_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCall_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCall_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumCall_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCall_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCall_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCall_Impl::Clone(this) { Ok(ok__) => { @@ -423,7 +318,7 @@ impl IEnumCall_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumCallHub_Impl: Sized { +pub trait IEnumCallHub_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -433,35 +328,20 @@ pub trait IEnumCallHub_Impl: Sized { impl windows_core::RuntimeName for IEnumCallHub {} #[cfg(feature = "Win32_System_Com")] impl IEnumCallHub_Vtbl { - pub const fn new() -> IEnumCallHub_Vtbl - where - Identity: IEnumCallHub_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumCallHub_Impl, - { + pub const fn new() -> IEnumCallHub_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCallHub_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCallHub_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCallHub_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumCallHub_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCallHub_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCallHub_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCallHub_Impl::Clone(this) { Ok(ok__) => { @@ -484,7 +364,7 @@ impl IEnumCallHub_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumCallingCard_Impl: Sized { +pub trait IEnumCallingCard_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -494,35 +374,20 @@ pub trait IEnumCallingCard_Impl: Sized { impl windows_core::RuntimeName for IEnumCallingCard {} #[cfg(feature = "Win32_System_Com")] impl IEnumCallingCard_Vtbl { - pub const fn new() -> IEnumCallingCard_Vtbl - where - Identity: IEnumCallingCard_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumCallingCard_Impl, - { + pub const fn new() -> IEnumCallingCard_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCallingCard_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCallingCard_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCallingCard_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumCallingCard_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCallingCard_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCallingCard_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCallingCard_Impl::Clone(this) { Ok(ok__) => { @@ -544,7 +409,7 @@ impl IEnumCallingCard_Vtbl { iid == &::IID } } -pub trait IEnumDialableAddrs_Impl: Sized { +pub trait IEnumDialableAddrs_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -552,35 +417,20 @@ pub trait IEnumDialableAddrs_Impl: Sized { } impl windows_core::RuntimeName for IEnumDialableAddrs {} impl IEnumDialableAddrs_Vtbl { - pub const fn new() -> IEnumDialableAddrs_Vtbl - where - Identity: IEnumDialableAddrs_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut core::mem::MaybeUninit, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDialableAddrs_Impl, - { + pub const fn new() -> IEnumDialableAddrs_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut core::mem::MaybeUninit, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDialableAddrs_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDialableAddrs_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDialableAddrs_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDialableAddrs_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDialableAddrs_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDialableAddrs_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDialableAddrs_Impl::Clone(this) { Ok(ok__) => { @@ -603,7 +453,7 @@ impl IEnumDialableAddrs_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumDirectory_Impl: Sized { +pub trait IEnumDirectory_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -613,35 +463,20 @@ pub trait IEnumDirectory_Impl: Sized { impl windows_core::RuntimeName for IEnumDirectory {} #[cfg(feature = "Win32_System_Com")] impl IEnumDirectory_Vtbl { - pub const fn new() -> IEnumDirectory_Vtbl - where - Identity: IEnumDirectory_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDirectory_Impl, - { + pub const fn new() -> IEnumDirectory_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDirectory_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDirectory_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDirectory_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDirectory_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDirectory_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDirectory_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDirectory_Impl::Clone(this) { Ok(ok__) => { @@ -664,7 +499,7 @@ impl IEnumDirectory_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumDirectoryObject_Impl: Sized { +pub trait IEnumDirectoryObject_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, pval: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -674,35 +509,20 @@ pub trait IEnumDirectoryObject_Impl: Sized { impl windows_core::RuntimeName for IEnumDirectoryObject {} #[cfg(feature = "Win32_System_Com")] impl IEnumDirectoryObject_Vtbl { - pub const fn new() -> IEnumDirectoryObject_Vtbl - where - Identity: IEnumDirectoryObject_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pval: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDirectoryObject_Impl, - { + pub const fn new() -> IEnumDirectoryObject_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pval: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDirectoryObject_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&pval), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDirectoryObject_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDirectoryObject_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDirectoryObject_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDirectoryObject_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDirectoryObject_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDirectoryObject_Impl::Clone(this) { Ok(ok__) => { @@ -725,7 +545,7 @@ impl IEnumDirectoryObject_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumLocation_Impl: Sized { +pub trait IEnumLocation_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -735,35 +555,20 @@ pub trait IEnumLocation_Impl: Sized { impl windows_core::RuntimeName for IEnumLocation {} #[cfg(feature = "Win32_System_Com")] impl IEnumLocation_Vtbl { - pub const fn new() -> IEnumLocation_Vtbl - where - Identity: IEnumLocation_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumLocation_Impl, - { + pub const fn new() -> IEnumLocation_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumLocation_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumLocation_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumLocation_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumLocation_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumLocation_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumLocation_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumLocation_Impl::Clone(this) { Ok(ok__) => { @@ -786,7 +591,7 @@ impl IEnumLocation_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumMcastScope_Impl: Sized { +pub trait IEnumMcastScope_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppscopes: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -796,35 +601,20 @@ pub trait IEnumMcastScope_Impl: Sized { impl windows_core::RuntimeName for IEnumMcastScope {} #[cfg(feature = "Win32_System_Com")] impl IEnumMcastScope_Vtbl { - pub const fn new() -> IEnumMcastScope_Vtbl - where - Identity: IEnumMcastScope_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppscopes: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumMcastScope_Impl, - { + pub const fn new() -> IEnumMcastScope_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppscopes: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMcastScope_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppscopes), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMcastScope_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMcastScope_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumMcastScope_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMcastScope_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMcastScope_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumMcastScope_Impl::Clone(this) { Ok(ok__) => { @@ -847,7 +637,7 @@ impl IEnumMcastScope_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumPhone_Impl: Sized { +pub trait IEnumPhone_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -857,35 +647,20 @@ pub trait IEnumPhone_Impl: Sized { impl windows_core::RuntimeName for IEnumPhone {} #[cfg(feature = "Win32_System_Com")] impl IEnumPhone_Vtbl { - pub const fn new() -> IEnumPhone_Vtbl - where - Identity: IEnumPhone_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumPhone_Impl, - { + pub const fn new() -> IEnumPhone_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPhone_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPhone_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPhone_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumPhone_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPhone_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPhone_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumPhone_Impl::Clone(this) { Ok(ok__) => { @@ -908,7 +683,7 @@ impl IEnumPhone_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumPluggableSuperclassInfo_Impl: Sized { +pub trait IEnumPluggableSuperclassInfo_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -918,35 +693,20 @@ pub trait IEnumPluggableSuperclassInfo_Impl: Sized { impl windows_core::RuntimeName for IEnumPluggableSuperclassInfo {} #[cfg(feature = "Win32_System_Com")] impl IEnumPluggableSuperclassInfo_Vtbl { - pub const fn new() -> IEnumPluggableSuperclassInfo_Vtbl - where - Identity: IEnumPluggableSuperclassInfo_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumPluggableSuperclassInfo_Impl, - { + pub const fn new() -> IEnumPluggableSuperclassInfo_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPluggableSuperclassInfo_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPluggableSuperclassInfo_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPluggableSuperclassInfo_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumPluggableSuperclassInfo_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPluggableSuperclassInfo_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPluggableSuperclassInfo_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumPluggableSuperclassInfo_Impl::Clone(this) { Ok(ok__) => { @@ -969,7 +729,7 @@ impl IEnumPluggableSuperclassInfo_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumPluggableTerminalClassInfo_Impl: Sized { +pub trait IEnumPluggableTerminalClassInfo_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -979,35 +739,20 @@ pub trait IEnumPluggableTerminalClassInfo_Impl: Sized { impl windows_core::RuntimeName for IEnumPluggableTerminalClassInfo {} #[cfg(feature = "Win32_System_Com")] impl IEnumPluggableTerminalClassInfo_Vtbl { - pub const fn new() -> IEnumPluggableTerminalClassInfo_Vtbl - where - Identity: IEnumPluggableTerminalClassInfo_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumPluggableTerminalClassInfo_Impl, - { + pub const fn new() -> IEnumPluggableTerminalClassInfo_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPluggableTerminalClassInfo_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPluggableTerminalClassInfo_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPluggableTerminalClassInfo_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumPluggableTerminalClassInfo_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPluggableTerminalClassInfo_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPluggableTerminalClassInfo_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumPluggableTerminalClassInfo_Impl::Clone(this) { Ok(ok__) => { @@ -1030,7 +775,7 @@ impl IEnumPluggableTerminalClassInfo_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumQueue_Impl: Sized { +pub trait IEnumQueue_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -1040,35 +785,20 @@ pub trait IEnumQueue_Impl: Sized { impl windows_core::RuntimeName for IEnumQueue {} #[cfg(feature = "Win32_System_Com")] impl IEnumQueue_Vtbl { - pub const fn new() -> IEnumQueue_Vtbl - where - Identity: IEnumQueue_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumQueue_Impl, - { + pub const fn new() -> IEnumQueue_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumQueue_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumQueue_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumQueue_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumQueue_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumQueue_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumQueue_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumQueue_Impl::Clone(this) { Ok(ok__) => { @@ -1091,7 +821,7 @@ impl IEnumQueue_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumStream_Impl: Sized { +pub trait IEnumStream_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -1101,35 +831,20 @@ pub trait IEnumStream_Impl: Sized { impl windows_core::RuntimeName for IEnumStream {} #[cfg(feature = "Win32_System_Com")] impl IEnumStream_Vtbl { - pub const fn new() -> IEnumStream_Vtbl - where - Identity: IEnumStream_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumStream_Impl, - { + pub const fn new() -> IEnumStream_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumStream_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumStream_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumStream_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumStream_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumStream_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumStream_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumStream_Impl::Clone(this) { Ok(ok__) => { @@ -1152,7 +867,7 @@ impl IEnumStream_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumSubStream_Impl: Sized { +pub trait IEnumSubStream_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -1162,35 +877,20 @@ pub trait IEnumSubStream_Impl: Sized { impl windows_core::RuntimeName for IEnumSubStream {} #[cfg(feature = "Win32_System_Com")] impl IEnumSubStream_Vtbl { - pub const fn new() -> IEnumSubStream_Vtbl - where - Identity: IEnumSubStream_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSubStream_Impl, - { + pub const fn new() -> IEnumSubStream_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSubStream_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSubStream_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSubStream_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSubStream_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSubStream_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSubStream_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSubStream_Impl::Clone(this) { Ok(ok__) => { @@ -1213,7 +913,7 @@ impl IEnumSubStream_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumTerminal_Impl: Sized { +pub trait IEnumTerminal_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -1223,35 +923,20 @@ pub trait IEnumTerminal_Impl: Sized { impl windows_core::RuntimeName for IEnumTerminal {} #[cfg(feature = "Win32_System_Com")] impl IEnumTerminal_Vtbl { - pub const fn new() -> IEnumTerminal_Vtbl - where - Identity: IEnumTerminal_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTerminal_Impl, - { + pub const fn new() -> IEnumTerminal_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTerminal_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTerminal_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTerminal_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumTerminal_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTerminal_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTerminal_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTerminal_Impl::Clone(this) { Ok(ok__) => { @@ -1273,7 +958,7 @@ impl IEnumTerminal_Vtbl { iid == &::IID } } -pub trait IEnumTerminalClass_Impl: Sized { +pub trait IEnumTerminalClass_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, pelements: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -1281,35 +966,20 @@ pub trait IEnumTerminalClass_Impl: Sized { } impl windows_core::RuntimeName for IEnumTerminalClass {} impl IEnumTerminalClass_Vtbl { - pub const fn new() -> IEnumTerminalClass_Vtbl - where - Identity: IEnumTerminalClass_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pelements: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTerminalClass_Impl, - { + pub const fn new() -> IEnumTerminalClass_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pelements: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTerminalClass_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&pelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTerminalClass_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTerminalClass_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumTerminalClass_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTerminalClass_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTerminalClass_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTerminalClass_Impl::Clone(this) { Ok(ok__) => { @@ -1345,14 +1015,8 @@ pub trait IMcastAddressAllocation_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for IMcastAddressAllocation {} #[cfg(feature = "Win32_System_Com")] impl IMcastAddressAllocation_Vtbl { - pub const fn new() -> IMcastAddressAllocation_Vtbl - where - Identity: IMcastAddressAllocation_Impl, - { - unsafe extern "system" fn Scopes(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMcastAddressAllocation_Impl, - { + pub const fn new() -> IMcastAddressAllocation_Vtbl { + unsafe extern "system" fn Scopes(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastAddressAllocation_Impl::Scopes(this) { Ok(ok__) => { @@ -1362,10 +1026,7 @@ impl IMcastAddressAllocation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateScopes(this: *mut core::ffi::c_void, ppenummcastscope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMcastAddressAllocation_Impl, - { + unsafe extern "system" fn EnumerateScopes(this: *mut core::ffi::c_void, ppenummcastscope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastAddressAllocation_Impl::EnumerateScopes(this) { Ok(ok__) => { @@ -1375,10 +1036,7 @@ impl IMcastAddressAllocation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestAddress(this: *mut core::ffi::c_void, pscope: *mut core::ffi::c_void, leasestarttime: f64, leasestoptime: f64, numaddresses: i32, ppleaseresponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMcastAddressAllocation_Impl, - { + unsafe extern "system" fn RequestAddress(this: *mut core::ffi::c_void, pscope: *mut core::ffi::c_void, leasestarttime: f64, leasestoptime: f64, numaddresses: i32, ppleaseresponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastAddressAllocation_Impl::RequestAddress(this, windows_core::from_raw_borrowed(&pscope), core::mem::transmute_copy(&leasestarttime), core::mem::transmute_copy(&leasestoptime), core::mem::transmute_copy(&numaddresses)) { Ok(ok__) => { @@ -1388,10 +1046,7 @@ impl IMcastAddressAllocation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RenewAddress(this: *mut core::ffi::c_void, lreserved: i32, prenewrequest: *mut core::ffi::c_void, pprenewresponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMcastAddressAllocation_Impl, - { + unsafe extern "system" fn RenewAddress(this: *mut core::ffi::c_void, lreserved: i32, prenewrequest: *mut core::ffi::c_void, pprenewresponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastAddressAllocation_Impl::RenewAddress(this, core::mem::transmute_copy(&lreserved), windows_core::from_raw_borrowed(&prenewrequest)) { Ok(ok__) => { @@ -1401,17 +1056,11 @@ impl IMcastAddressAllocation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseAddress(this: *mut core::ffi::c_void, preleaserequest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMcastAddressAllocation_Impl, - { + unsafe extern "system" fn ReleaseAddress(this: *mut core::ffi::c_void, preleaserequest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMcastAddressAllocation_Impl::ReleaseAddress(this, windows_core::from_raw_borrowed(&preleaserequest)).into() } - unsafe extern "system" fn CreateLeaseInfo(this: *mut core::ffi::c_void, leasestarttime: f64, leasestoptime: f64, dwnumaddresses: u32, ppaddresses: *const windows_core::PCWSTR, prequestid: windows_core::PCWSTR, pserveraddress: windows_core::PCWSTR, ppreleaserequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMcastAddressAllocation_Impl, - { + unsafe extern "system" fn CreateLeaseInfo(this: *mut core::ffi::c_void, leasestarttime: f64, leasestoptime: f64, dwnumaddresses: u32, ppaddresses: *const windows_core::PCWSTR, prequestid: windows_core::PCWSTR, pserveraddress: windows_core::PCWSTR, ppreleaserequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastAddressAllocation_Impl::CreateLeaseInfo(this, core::mem::transmute_copy(&leasestarttime), core::mem::transmute_copy(&leasestoptime), core::mem::transmute_copy(&dwnumaddresses), core::mem::transmute_copy(&ppaddresses), core::mem::transmute(&prequestid), core::mem::transmute(&pserveraddress)) { Ok(ok__) => { @@ -1421,10 +1070,7 @@ impl IMcastAddressAllocation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLeaseInfoFromVariant(this: *mut core::ffi::c_void, leasestarttime: f64, leasestoptime: f64, vaddresses: core::mem::MaybeUninit, prequestid: core::mem::MaybeUninit, pserveraddress: core::mem::MaybeUninit, ppreleaserequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMcastAddressAllocation_Impl, - { + unsafe extern "system" fn CreateLeaseInfoFromVariant(this: *mut core::ffi::c_void, leasestarttime: f64, leasestoptime: f64, vaddresses: core::mem::MaybeUninit, prequestid: core::mem::MaybeUninit, pserveraddress: core::mem::MaybeUninit, ppreleaserequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastAddressAllocation_Impl::CreateLeaseInfoFromVariant(this, core::mem::transmute_copy(&leasestarttime), core::mem::transmute_copy(&leasestoptime), core::mem::transmute(&vaddresses), core::mem::transmute(&prequestid), core::mem::transmute(&pserveraddress)) { Ok(ok__) => { @@ -1466,14 +1112,8 @@ pub trait IMcastLeaseInfo_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IMcastLeaseInfo {} #[cfg(feature = "Win32_System_Com")] impl IMcastLeaseInfo_Vtbl { - pub const fn new() -> IMcastLeaseInfo_Vtbl - where - Identity: IMcastLeaseInfo_Impl, - { - unsafe extern "system" fn RequestID(this: *mut core::ffi::c_void, pprequestid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMcastLeaseInfo_Impl, - { + pub const fn new() -> IMcastLeaseInfo_Vtbl { + unsafe extern "system" fn RequestID(this: *mut core::ffi::c_void, pprequestid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastLeaseInfo_Impl::RequestID(this) { Ok(ok__) => { @@ -1483,10 +1123,7 @@ impl IMcastLeaseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LeaseStartTime(this: *mut core::ffi::c_void, ptime: *mut f64) -> windows_core::HRESULT - where - Identity: IMcastLeaseInfo_Impl, - { + unsafe extern "system" fn LeaseStartTime(this: *mut core::ffi::c_void, ptime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastLeaseInfo_Impl::LeaseStartTime(this) { Ok(ok__) => { @@ -1496,17 +1133,11 @@ impl IMcastLeaseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLeaseStartTime(this: *mut core::ffi::c_void, time: f64) -> windows_core::HRESULT - where - Identity: IMcastLeaseInfo_Impl, - { + unsafe extern "system" fn SetLeaseStartTime(this: *mut core::ffi::c_void, time: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMcastLeaseInfo_Impl::SetLeaseStartTime(this, core::mem::transmute_copy(&time)).into() } - unsafe extern "system" fn LeaseStopTime(this: *mut core::ffi::c_void, ptime: *mut f64) -> windows_core::HRESULT - where - Identity: IMcastLeaseInfo_Impl, - { + unsafe extern "system" fn LeaseStopTime(this: *mut core::ffi::c_void, ptime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastLeaseInfo_Impl::LeaseStopTime(this) { Ok(ok__) => { @@ -1516,17 +1147,11 @@ impl IMcastLeaseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLeaseStopTime(this: *mut core::ffi::c_void, time: f64) -> windows_core::HRESULT - where - Identity: IMcastLeaseInfo_Impl, - { + unsafe extern "system" fn SetLeaseStopTime(this: *mut core::ffi::c_void, time: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMcastLeaseInfo_Impl::SetLeaseStopTime(this, core::mem::transmute_copy(&time)).into() } - unsafe extern "system" fn AddressCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: IMcastLeaseInfo_Impl, - { + unsafe extern "system" fn AddressCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastLeaseInfo_Impl::AddressCount(this) { Ok(ok__) => { @@ -1536,10 +1161,7 @@ impl IMcastLeaseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServerAddress(this: *mut core::ffi::c_void, ppaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMcastLeaseInfo_Impl, - { + unsafe extern "system" fn ServerAddress(this: *mut core::ffi::c_void, ppaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastLeaseInfo_Impl::ServerAddress(this) { Ok(ok__) => { @@ -1549,10 +1171,7 @@ impl IMcastLeaseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TTL(this: *mut core::ffi::c_void, pttl: *mut i32) -> windows_core::HRESULT - where - Identity: IMcastLeaseInfo_Impl, - { + unsafe extern "system" fn TTL(this: *mut core::ffi::c_void, pttl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastLeaseInfo_Impl::TTL(this) { Ok(ok__) => { @@ -1562,10 +1181,7 @@ impl IMcastLeaseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Addresses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMcastLeaseInfo_Impl, - { + unsafe extern "system" fn Addresses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastLeaseInfo_Impl::Addresses(this) { Ok(ok__) => { @@ -1575,10 +1191,7 @@ impl IMcastLeaseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateAddresses(this: *mut core::ffi::c_void, ppenumaddresses: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMcastLeaseInfo_Impl, - { + unsafe extern "system" fn EnumerateAddresses(this: *mut core::ffi::c_void, ppenumaddresses: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastLeaseInfo_Impl::EnumerateAddresses(this) { Ok(ok__) => { @@ -1618,14 +1231,8 @@ pub trait IMcastScope_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMcastScope {} #[cfg(feature = "Win32_System_Com")] impl IMcastScope_Vtbl { - pub const fn new() -> IMcastScope_Vtbl - where - Identity: IMcastScope_Impl, - { - unsafe extern "system" fn ScopeID(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT - where - Identity: IMcastScope_Impl, - { + pub const fn new() -> IMcastScope_Vtbl { + unsafe extern "system" fn ScopeID(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastScope_Impl::ScopeID(this) { Ok(ok__) => { @@ -1635,10 +1242,7 @@ impl IMcastScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServerID(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT - where - Identity: IMcastScope_Impl, - { + unsafe extern "system" fn ServerID(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastScope_Impl::ServerID(this) { Ok(ok__) => { @@ -1648,10 +1252,7 @@ impl IMcastScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InterfaceID(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT - where - Identity: IMcastScope_Impl, - { + unsafe extern "system" fn InterfaceID(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastScope_Impl::InterfaceID(this) { Ok(ok__) => { @@ -1661,10 +1262,7 @@ impl IMcastScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScopeDescription(this: *mut core::ffi::c_void, ppdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMcastScope_Impl, - { + unsafe extern "system" fn ScopeDescription(this: *mut core::ffi::c_void, ppdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastScope_Impl::ScopeDescription(this) { Ok(ok__) => { @@ -1674,10 +1272,7 @@ impl IMcastScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TTL(this: *mut core::ffi::c_void, pttl: *mut i32) -> windows_core::HRESULT - where - Identity: IMcastScope_Impl, - { + unsafe extern "system" fn TTL(this: *mut core::ffi::c_void, pttl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMcastScope_Impl::TTL(this) { Ok(ok__) => { @@ -1710,14 +1305,8 @@ pub trait ITACDGroup_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITACDGroup {} #[cfg(feature = "Win32_System_Com")] impl ITACDGroup_Vtbl { - pub const fn new() -> ITACDGroup_Vtbl - where - Identity: ITACDGroup_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITACDGroup_Impl, - { + pub const fn new() -> ITACDGroup_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITACDGroup_Impl::Name(this) { Ok(ok__) => { @@ -1727,10 +1316,7 @@ impl ITACDGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateQueues(this: *mut core::ffi::c_void, ppenumqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITACDGroup_Impl, - { + unsafe extern "system" fn EnumerateQueues(this: *mut core::ffi::c_void, ppenumqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITACDGroup_Impl::EnumerateQueues(this) { Ok(ok__) => { @@ -1740,10 +1326,7 @@ impl ITACDGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Queues(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITACDGroup_Impl, - { + unsafe extern "system" fn Queues(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITACDGroup_Impl::Queues(this) { Ok(ok__) => { @@ -1773,14 +1356,8 @@ pub trait ITACDGroupEvent_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for ITACDGroupEvent {} #[cfg(feature = "Win32_System_Com")] impl ITACDGroupEvent_Vtbl { - pub const fn new() -> ITACDGroupEvent_Vtbl - where - Identity: ITACDGroupEvent_Impl, - { - unsafe extern "system" fn Group(this: *mut core::ffi::c_void, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITACDGroupEvent_Impl, - { + pub const fn new() -> ITACDGroupEvent_Vtbl { + unsafe extern "system" fn Group(this: *mut core::ffi::c_void, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITACDGroupEvent_Impl::Group(this) { Ok(ok__) => { @@ -1790,10 +1367,7 @@ impl ITACDGroupEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut ACDGROUP_EVENT) -> windows_core::HRESULT - where - Identity: ITACDGroupEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut ACDGROUP_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITACDGroupEvent_Impl::Event(this) { Ok(ok__) => { @@ -1810,7 +1384,7 @@ impl ITACDGroupEvent_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait ITAMMediaFormat_Impl: Sized { +pub trait ITAMMediaFormat_Impl: Sized + windows_core::IUnknownImpl { fn MediaFormat(&self) -> windows_core::Result<*mut super::super::Media::MediaFoundation::AM_MEDIA_TYPE>; fn SetMediaFormat(&self, pmt: *const super::super::Media::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; } @@ -1818,14 +1392,8 @@ pub trait ITAMMediaFormat_Impl: Sized { impl windows_core::RuntimeName for ITAMMediaFormat {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl ITAMMediaFormat_Vtbl { - pub const fn new() -> ITAMMediaFormat_Vtbl - where - Identity: ITAMMediaFormat_Impl, - { - unsafe extern "system" fn MediaFormat(this: *mut core::ffi::c_void, ppmt: *mut *mut super::super::Media::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: ITAMMediaFormat_Impl, - { + pub const fn new() -> ITAMMediaFormat_Vtbl { + unsafe extern "system" fn MediaFormat(this: *mut core::ffi::c_void, ppmt: *mut *mut super::super::Media::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAMMediaFormat_Impl::MediaFormat(this) { Ok(ok__) => { @@ -1835,10 +1403,7 @@ impl ITAMMediaFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaFormat(this: *mut core::ffi::c_void, pmt: *const super::super::Media::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: ITAMMediaFormat_Impl, - { + unsafe extern "system" fn SetMediaFormat(this: *mut core::ffi::c_void, pmt: *const super::super::Media::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAMMediaFormat_Impl::SetMediaFormat(this, core::mem::transmute_copy(&pmt)).into() } @@ -1862,14 +1427,8 @@ pub trait ITASRTerminalEvent_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ITASRTerminalEvent {} #[cfg(feature = "Win32_System_Com")] impl ITASRTerminalEvent_Vtbl { - pub const fn new() -> ITASRTerminalEvent_Vtbl - where - Identity: ITASRTerminalEvent_Impl, - { - unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITASRTerminalEvent_Impl, - { + pub const fn new() -> ITASRTerminalEvent_Vtbl { + unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITASRTerminalEvent_Impl::Terminal(this) { Ok(ok__) => { @@ -1879,10 +1438,7 @@ impl ITASRTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITASRTerminalEvent_Impl, - { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITASRTerminalEvent_Impl::Call(this) { Ok(ok__) => { @@ -1892,10 +1448,7 @@ impl ITASRTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, phrerrorcode: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITASRTerminalEvent_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, phrerrorcode: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITASRTerminalEvent_Impl::Error(this) { Ok(ok__) => { @@ -1938,14 +1491,8 @@ pub trait ITAddress_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITAddress {} #[cfg(feature = "Win32_System_Com")] impl ITAddress_Vtbl { - pub const fn new() -> ITAddress_Vtbl - where - Identity: ITAddress_Impl, - { - unsafe extern "system" fn State(this: *mut core::ffi::c_void, paddressstate: *mut ADDRESS_STATE) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + pub const fn new() -> ITAddress_Vtbl { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, paddressstate: *mut ADDRESS_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::State(this) { Ok(ok__) => { @@ -1955,10 +1502,7 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddressName(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn AddressName(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::AddressName(this) { Ok(ok__) => { @@ -1968,10 +1512,7 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceProviderName(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn ServiceProviderName(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::ServiceProviderName(this) { Ok(ok__) => { @@ -1981,10 +1522,7 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TAPIObject(this: *mut core::ffi::c_void, pptapiobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn TAPIObject(this: *mut core::ffi::c_void, pptapiobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::TAPIObject(this) { Ok(ok__) => { @@ -1994,10 +1532,7 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCall(this: *mut core::ffi::c_void, pdestaddress: core::mem::MaybeUninit, laddresstype: i32, lmediatypes: i32, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn CreateCall(this: *mut core::ffi::c_void, pdestaddress: core::mem::MaybeUninit, laddresstype: i32, lmediatypes: i32, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::CreateCall(this, core::mem::transmute(&pdestaddress), core::mem::transmute_copy(&laddresstype), core::mem::transmute_copy(&lmediatypes)) { Ok(ok__) => { @@ -2007,10 +1542,7 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Calls(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn Calls(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::Calls(this) { Ok(ok__) => { @@ -2020,10 +1552,7 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateCalls(this: *mut core::ffi::c_void, ppcallenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn EnumerateCalls(this: *mut core::ffi::c_void, ppcallenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::EnumerateCalls(this) { Ok(ok__) => { @@ -2033,10 +1562,7 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DialableAddress(this: *mut core::ffi::c_void, pdialableaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn DialableAddress(this: *mut core::ffi::c_void, pdialableaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::DialableAddress(this) { Ok(ok__) => { @@ -2046,10 +1572,7 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateForwardInfoObject(this: *mut core::ffi::c_void, ppforwardinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn CreateForwardInfoObject(this: *mut core::ffi::c_void, ppforwardinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::CreateForwardInfoObject(this) { Ok(ok__) => { @@ -2059,17 +1582,11 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Forward(this: *mut core::ffi::c_void, pforwardinfo: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn Forward(this: *mut core::ffi::c_void, pforwardinfo: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAddress_Impl::Forward(this, windows_core::from_raw_borrowed(&pforwardinfo), windows_core::from_raw_borrowed(&pcall)).into() } - unsafe extern "system" fn CurrentForwardInfo(this: *mut core::ffi::c_void, ppforwardinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn CurrentForwardInfo(this: *mut core::ffi::c_void, ppforwardinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::CurrentForwardInfo(this) { Ok(ok__) => { @@ -2079,17 +1596,11 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMessageWaiting(this: *mut core::ffi::c_void, fmessagewaiting: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn SetMessageWaiting(this: *mut core::ffi::c_void, fmessagewaiting: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAddress_Impl::SetMessageWaiting(this, core::mem::transmute_copy(&fmessagewaiting)).into() } - unsafe extern "system" fn MessageWaiting(this: *mut core::ffi::c_void, pfmessagewaiting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn MessageWaiting(this: *mut core::ffi::c_void, pfmessagewaiting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::MessageWaiting(this) { Ok(ok__) => { @@ -2099,17 +1610,11 @@ impl ITAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDoNotDisturb(this: *mut core::ffi::c_void, fdonotdisturb: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn SetDoNotDisturb(this: *mut core::ffi::c_void, fdonotdisturb: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAddress_Impl::SetDoNotDisturb(this, core::mem::transmute_copy(&fdonotdisturb)).into() } - unsafe extern "system" fn DoNotDisturb(this: *mut core::ffi::c_void, pfdonotdisturb: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAddress_Impl, - { + unsafe extern "system" fn DoNotDisturb(this: *mut core::ffi::c_void, pfdonotdisturb: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress_Impl::DoNotDisturb(this) { Ok(ok__) => { @@ -2159,14 +1664,8 @@ pub trait ITAddress2_Impl: Sized + ITAddress_Impl { impl windows_core::RuntimeName for ITAddress2 {} #[cfg(feature = "Win32_System_Com")] impl ITAddress2_Vtbl { - pub const fn new() -> ITAddress2_Vtbl - where - Identity: ITAddress2_Impl, - { - unsafe extern "system" fn Phones(this: *mut core::ffi::c_void, pphones: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddress2_Impl, - { + pub const fn new() -> ITAddress2_Vtbl { + unsafe extern "system" fn Phones(this: *mut core::ffi::c_void, pphones: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress2_Impl::Phones(this) { Ok(ok__) => { @@ -2176,10 +1675,7 @@ impl ITAddress2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumeratePhones(this: *mut core::ffi::c_void, ppenumphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddress2_Impl, - { + unsafe extern "system" fn EnumeratePhones(this: *mut core::ffi::c_void, ppenumphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress2_Impl::EnumeratePhones(this) { Ok(ok__) => { @@ -2189,10 +1685,7 @@ impl ITAddress2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPhoneFromTerminal(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void, ppphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddress2_Impl, - { + unsafe extern "system" fn GetPhoneFromTerminal(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void, ppphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress2_Impl::GetPhoneFromTerminal(this, windows_core::from_raw_borrowed(&pterminal)) { Ok(ok__) => { @@ -2202,10 +1695,7 @@ impl ITAddress2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PreferredPhones(this: *mut core::ffi::c_void, pphones: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddress2_Impl, - { + unsafe extern "system" fn PreferredPhones(this: *mut core::ffi::c_void, pphones: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress2_Impl::PreferredPhones(this) { Ok(ok__) => { @@ -2215,10 +1705,7 @@ impl ITAddress2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumeratePreferredPhones(this: *mut core::ffi::c_void, ppenumphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddress2_Impl, - { + unsafe extern "system" fn EnumeratePreferredPhones(this: *mut core::ffi::c_void, ppenumphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress2_Impl::EnumeratePreferredPhones(this) { Ok(ok__) => { @@ -2228,10 +1715,7 @@ impl ITAddress2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_EventFilter(this: *mut core::ffi::c_void, tapievent: TAPI_EVENT, lsubevent: i32, penable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAddress2_Impl, - { + unsafe extern "system" fn get_EventFilter(this: *mut core::ffi::c_void, tapievent: TAPI_EVENT, lsubevent: i32, penable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress2_Impl::get_EventFilter(this, core::mem::transmute_copy(&tapievent), core::mem::transmute_copy(&lsubevent)) { Ok(ok__) => { @@ -2241,31 +1725,19 @@ impl ITAddress2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_EventFilter(this: *mut core::ffi::c_void, tapievent: TAPI_EVENT, lsubevent: i32, benable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAddress2_Impl, - { + unsafe extern "system" fn put_EventFilter(this: *mut core::ffi::c_void, tapievent: TAPI_EVENT, lsubevent: i32, benable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAddress2_Impl::put_EventFilter(this, core::mem::transmute_copy(&tapievent), core::mem::transmute_copy(&lsubevent), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn DeviceSpecific(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void, pparams: *const u8, dwsize: u32) -> windows_core::HRESULT - where - Identity: ITAddress2_Impl, - { + unsafe extern "system" fn DeviceSpecific(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void, pparams: *const u8, dwsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAddress2_Impl::DeviceSpecific(this, windows_core::from_raw_borrowed(&pcall), core::mem::transmute_copy(&pparams), core::mem::transmute_copy(&dwsize)).into() } - unsafe extern "system" fn DeviceSpecificVariant(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void, vardevspecificbytearray: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddress2_Impl, - { + unsafe extern "system" fn DeviceSpecificVariant(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void, vardevspecificbytearray: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAddress2_Impl::DeviceSpecificVariant(this, windows_core::from_raw_borrowed(&pcall), core::mem::transmute(&vardevspecificbytearray)).into() } - unsafe extern "system" fn NegotiateExtVersion(this: *mut core::ffi::c_void, llowversion: i32, lhighversion: i32, plextversion: *mut i32) -> windows_core::HRESULT - where - Identity: ITAddress2_Impl, - { + unsafe extern "system" fn NegotiateExtVersion(this: *mut core::ffi::c_void, llowversion: i32, lhighversion: i32, plextversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddress2_Impl::NegotiateExtVersion(this, core::mem::transmute_copy(&llowversion), core::mem::transmute_copy(&lhighversion)) { Ok(ok__) => { @@ -2308,14 +1780,8 @@ pub trait ITAddressCapabilities_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ITAddressCapabilities {} #[cfg(feature = "Win32_System_Com")] impl ITAddressCapabilities_Vtbl { - pub const fn new() -> ITAddressCapabilities_Vtbl - where - Identity: ITAddressCapabilities_Impl, - { - unsafe extern "system" fn get_AddressCapability(this: *mut core::ffi::c_void, addresscap: ADDRESS_CAPABILITY, plcapability: *mut i32) -> windows_core::HRESULT - where - Identity: ITAddressCapabilities_Impl, - { + pub const fn new() -> ITAddressCapabilities_Vtbl { + unsafe extern "system" fn get_AddressCapability(this: *mut core::ffi::c_void, addresscap: ADDRESS_CAPABILITY, plcapability: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressCapabilities_Impl::get_AddressCapability(this, core::mem::transmute_copy(&addresscap)) { Ok(ok__) => { @@ -2325,10 +1791,7 @@ impl ITAddressCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_AddressCapabilityString(this: *mut core::ffi::c_void, addresscapstring: ADDRESS_CAPABILITY_STRING, ppcapabilitystring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddressCapabilities_Impl, - { + unsafe extern "system" fn get_AddressCapabilityString(this: *mut core::ffi::c_void, addresscapstring: ADDRESS_CAPABILITY_STRING, ppcapabilitystring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressCapabilities_Impl::get_AddressCapabilityString(this, core::mem::transmute_copy(&addresscapstring)) { Ok(ok__) => { @@ -2338,10 +1801,7 @@ impl ITAddressCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallTreatments(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddressCapabilities_Impl, - { + unsafe extern "system" fn CallTreatments(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressCapabilities_Impl::CallTreatments(this) { Ok(ok__) => { @@ -2351,10 +1811,7 @@ impl ITAddressCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateCallTreatments(this: *mut core::ffi::c_void, ppenumcalltreatment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddressCapabilities_Impl, - { + unsafe extern "system" fn EnumerateCallTreatments(this: *mut core::ffi::c_void, ppenumcalltreatment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressCapabilities_Impl::EnumerateCallTreatments(this) { Ok(ok__) => { @@ -2364,10 +1821,7 @@ impl ITAddressCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompletionMessages(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddressCapabilities_Impl, - { + unsafe extern "system" fn CompletionMessages(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressCapabilities_Impl::CompletionMessages(this) { Ok(ok__) => { @@ -2377,10 +1831,7 @@ impl ITAddressCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateCompletionMessages(this: *mut core::ffi::c_void, ppenumcompletionmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddressCapabilities_Impl, - { + unsafe extern "system" fn EnumerateCompletionMessages(this: *mut core::ffi::c_void, ppenumcompletionmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressCapabilities_Impl::EnumerateCompletionMessages(this) { Ok(ok__) => { @@ -2390,10 +1841,7 @@ impl ITAddressCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceClasses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddressCapabilities_Impl, - { + unsafe extern "system" fn DeviceClasses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressCapabilities_Impl::DeviceClasses(this) { Ok(ok__) => { @@ -2403,10 +1851,7 @@ impl ITAddressCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateDeviceClasses(this: *mut core::ffi::c_void, ppenumdeviceclass: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddressCapabilities_Impl, - { + unsafe extern "system" fn EnumerateDeviceClasses(this: *mut core::ffi::c_void, ppenumdeviceclass: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressCapabilities_Impl::EnumerateDeviceClasses(this) { Ok(ok__) => { @@ -2444,14 +1889,8 @@ pub trait ITAddressDeviceSpecificEvent_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for ITAddressDeviceSpecificEvent {} #[cfg(feature = "Win32_System_Com")] impl ITAddressDeviceSpecificEvent_Vtbl { - pub const fn new() -> ITAddressDeviceSpecificEvent_Vtbl - where - Identity: ITAddressDeviceSpecificEvent_Impl, - { - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddressDeviceSpecificEvent_Impl, - { + pub const fn new() -> ITAddressDeviceSpecificEvent_Vtbl { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressDeviceSpecificEvent_Impl::Address(this) { Ok(ok__) => { @@ -2461,10 +1900,7 @@ impl ITAddressDeviceSpecificEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddressDeviceSpecificEvent_Impl, - { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressDeviceSpecificEvent_Impl::Call(this) { Ok(ok__) => { @@ -2474,10 +1910,7 @@ impl ITAddressDeviceSpecificEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn lParam1(this: *mut core::ffi::c_void, pparam1: *mut i32) -> windows_core::HRESULT - where - Identity: ITAddressDeviceSpecificEvent_Impl, - { + unsafe extern "system" fn lParam1(this: *mut core::ffi::c_void, pparam1: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressDeviceSpecificEvent_Impl::lParam1(this) { Ok(ok__) => { @@ -2487,10 +1920,7 @@ impl ITAddressDeviceSpecificEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn lParam2(this: *mut core::ffi::c_void, pparam2: *mut i32) -> windows_core::HRESULT - where - Identity: ITAddressDeviceSpecificEvent_Impl, - { + unsafe extern "system" fn lParam2(this: *mut core::ffi::c_void, pparam2: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressDeviceSpecificEvent_Impl::lParam2(this) { Ok(ok__) => { @@ -2500,10 +1930,7 @@ impl ITAddressDeviceSpecificEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn lParam3(this: *mut core::ffi::c_void, pparam3: *mut i32) -> windows_core::HRESULT - where - Identity: ITAddressDeviceSpecificEvent_Impl, - { + unsafe extern "system" fn lParam3(this: *mut core::ffi::c_void, pparam3: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressDeviceSpecificEvent_Impl::lParam3(this) { Ok(ok__) => { @@ -2536,14 +1963,8 @@ pub trait ITAddressEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITAddressEvent {} #[cfg(feature = "Win32_System_Com")] impl ITAddressEvent_Vtbl { - pub const fn new() -> ITAddressEvent_Vtbl - where - Identity: ITAddressEvent_Impl, - { - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddressEvent_Impl, - { + pub const fn new() -> ITAddressEvent_Vtbl { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressEvent_Impl::Address(this) { Ok(ok__) => { @@ -2553,10 +1974,7 @@ impl ITAddressEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut ADDRESS_EVENT) -> windows_core::HRESULT - where - Identity: ITAddressEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut ADDRESS_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressEvent_Impl::Event(this) { Ok(ok__) => { @@ -2566,10 +1984,7 @@ impl ITAddressEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddressEvent_Impl, - { + unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressEvent_Impl::Terminal(this) { Ok(ok__) => { @@ -2603,14 +2018,8 @@ pub trait ITAddressTranslation_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for ITAddressTranslation {} #[cfg(feature = "Win32_System_Com")] impl ITAddressTranslation_Vtbl { - pub const fn new() -> ITAddressTranslation_Vtbl - where - Identity: ITAddressTranslation_Impl, - { - unsafe extern "system" fn TranslateAddress(this: *mut core::ffi::c_void, paddresstotranslate: core::mem::MaybeUninit, lcard: i32, ltranslateoptions: i32, pptranslated: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddressTranslation_Impl, - { + pub const fn new() -> ITAddressTranslation_Vtbl { + unsafe extern "system" fn TranslateAddress(this: *mut core::ffi::c_void, paddresstotranslate: core::mem::MaybeUninit, lcard: i32, ltranslateoptions: i32, pptranslated: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressTranslation_Impl::TranslateAddress(this, core::mem::transmute(&paddresstotranslate), core::mem::transmute_copy(&lcard), core::mem::transmute_copy(<ranslateoptions)) { Ok(ok__) => { @@ -2620,17 +2029,11 @@ impl ITAddressTranslation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TranslateDialog(this: *mut core::ffi::c_void, hwndowner: isize, paddressin: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddressTranslation_Impl, - { + unsafe extern "system" fn TranslateDialog(this: *mut core::ffi::c_void, hwndowner: isize, paddressin: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAddressTranslation_Impl::TranslateDialog(this, core::mem::transmute_copy(&hwndowner), core::mem::transmute(&paddressin)).into() } - unsafe extern "system" fn EnumerateLocations(this: *mut core::ffi::c_void, ppenumlocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddressTranslation_Impl, - { + unsafe extern "system" fn EnumerateLocations(this: *mut core::ffi::c_void, ppenumlocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressTranslation_Impl::EnumerateLocations(this) { Ok(ok__) => { @@ -2640,10 +2043,7 @@ impl ITAddressTranslation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Locations(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddressTranslation_Impl, - { + unsafe extern "system" fn Locations(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressTranslation_Impl::Locations(this) { Ok(ok__) => { @@ -2653,10 +2053,7 @@ impl ITAddressTranslation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateCallingCards(this: *mut core::ffi::c_void, ppenumcallingcard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAddressTranslation_Impl, - { + unsafe extern "system" fn EnumerateCallingCards(this: *mut core::ffi::c_void, ppenumcallingcard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressTranslation_Impl::EnumerateCallingCards(this) { Ok(ok__) => { @@ -2666,10 +2063,7 @@ impl ITAddressTranslation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallingCards(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddressTranslation_Impl, - { + unsafe extern "system" fn CallingCards(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressTranslation_Impl::CallingCards(this) { Ok(ok__) => { @@ -2705,14 +2099,8 @@ pub trait ITAddressTranslationInfo_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for ITAddressTranslationInfo {} #[cfg(feature = "Win32_System_Com")] impl ITAddressTranslationInfo_Vtbl { - pub const fn new() -> ITAddressTranslationInfo_Vtbl - where - Identity: ITAddressTranslationInfo_Impl, - { - unsafe extern "system" fn DialableString(this: *mut core::ffi::c_void, ppdialablestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddressTranslationInfo_Impl, - { + pub const fn new() -> ITAddressTranslationInfo_Vtbl { + unsafe extern "system" fn DialableString(this: *mut core::ffi::c_void, ppdialablestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressTranslationInfo_Impl::DialableString(this) { Ok(ok__) => { @@ -2722,10 +2110,7 @@ impl ITAddressTranslationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayableString(this: *mut core::ffi::c_void, ppdisplayablestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAddressTranslationInfo_Impl, - { + unsafe extern "system" fn DisplayableString(this: *mut core::ffi::c_void, ppdisplayablestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressTranslationInfo_Impl::DisplayableString(this) { Ok(ok__) => { @@ -2735,10 +2120,7 @@ impl ITAddressTranslationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentCountryCode(this: *mut core::ffi::c_void, countrycode: *mut i32) -> windows_core::HRESULT - where - Identity: ITAddressTranslationInfo_Impl, - { + unsafe extern "system" fn CurrentCountryCode(this: *mut core::ffi::c_void, countrycode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressTranslationInfo_Impl::CurrentCountryCode(this) { Ok(ok__) => { @@ -2748,10 +2130,7 @@ impl ITAddressTranslationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationCountryCode(this: *mut core::ffi::c_void, countrycode: *mut i32) -> windows_core::HRESULT - where - Identity: ITAddressTranslationInfo_Impl, - { + unsafe extern "system" fn DestinationCountryCode(this: *mut core::ffi::c_void, countrycode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressTranslationInfo_Impl::DestinationCountryCode(this) { Ok(ok__) => { @@ -2761,10 +2140,7 @@ impl ITAddressTranslationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TranslationResults(this: *mut core::ffi::c_void, plresults: *mut i32) -> windows_core::HRESULT - where - Identity: ITAddressTranslationInfo_Impl, - { + unsafe extern "system" fn TranslationResults(this: *mut core::ffi::c_void, plresults: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAddressTranslationInfo_Impl::TranslationResults(this) { Ok(ok__) => { @@ -2811,14 +2187,8 @@ pub trait ITAgent_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITAgent {} #[cfg(feature = "Win32_System_Com")] impl ITAgent_Vtbl { - pub const fn new() -> ITAgent_Vtbl - where - Identity: ITAgent_Impl, - { - unsafe extern "system" fn EnumerateAgentSessions(this: *mut core::ffi::c_void, ppenumagentsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + pub const fn new() -> ITAgent_Vtbl { + unsafe extern "system" fn EnumerateAgentSessions(this: *mut core::ffi::c_void, ppenumagentsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::EnumerateAgentSessions(this) { Ok(ok__) => { @@ -2828,10 +2198,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSession(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 - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn CreateSession(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::CreateSession(this, windows_core::from_raw_borrowed(&pacdgroup), windows_core::from_raw_borrowed(&paddress)) { Ok(ok__) => { @@ -2841,10 +2208,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSessionWithPIN(this: *mut core::ffi::c_void, pacdgroup: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void, ppin: core::mem::MaybeUninit, ppagentsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn CreateSessionWithPIN(this: *mut core::ffi::c_void, pacdgroup: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void, ppin: core::mem::MaybeUninit, ppagentsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::CreateSessionWithPIN(this, windows_core::from_raw_borrowed(&pacdgroup), windows_core::from_raw_borrowed(&paddress), core::mem::transmute(&ppin)) { Ok(ok__) => { @@ -2854,10 +2218,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ID(this: *mut core::ffi::c_void, ppid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn ID(this: *mut core::ffi::c_void, ppid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::ID(this) { Ok(ok__) => { @@ -2867,10 +2228,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn User(this: *mut core::ffi::c_void, ppuser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn User(this: *mut core::ffi::c_void, ppuser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::User(this) { Ok(ok__) => { @@ -2880,17 +2238,11 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, agentstate: AGENT_STATE) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, agentstate: AGENT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAgent_Impl::SetState(this, core::mem::transmute_copy(&agentstate)).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pagentstate: *mut AGENT_STATE) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pagentstate: *mut AGENT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::State(this) { Ok(ok__) => { @@ -2900,17 +2252,11 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMeasurementPeriod(this: *mut core::ffi::c_void, lperiod: i32) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn SetMeasurementPeriod(this: *mut core::ffi::c_void, lperiod: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAgent_Impl::SetMeasurementPeriod(this, core::mem::transmute_copy(&lperiod)).into() } - unsafe extern "system" fn MeasurementPeriod(this: *mut core::ffi::c_void, plperiod: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn MeasurementPeriod(this: *mut core::ffi::c_void, plperiod: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::MeasurementPeriod(this) { Ok(ok__) => { @@ -2920,10 +2266,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OverallCallRate(this: *mut core::ffi::c_void, pcycallrate: *mut super::super::System::Com::CY) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn OverallCallRate(this: *mut core::ffi::c_void, pcycallrate: *mut super::super::System::Com::CY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::OverallCallRate(this) { Ok(ok__) => { @@ -2933,10 +2276,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfACDCalls(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn NumberOfACDCalls(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::NumberOfACDCalls(this) { Ok(ok__) => { @@ -2946,10 +2286,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfIncomingCalls(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn NumberOfIncomingCalls(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::NumberOfIncomingCalls(this) { Ok(ok__) => { @@ -2959,10 +2296,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfOutgoingCalls(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn NumberOfOutgoingCalls(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::NumberOfOutgoingCalls(this) { Ok(ok__) => { @@ -2972,10 +2306,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalACDTalkTime(this: *mut core::ffi::c_void, pltalktime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn TotalACDTalkTime(this: *mut core::ffi::c_void, pltalktime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::TotalACDTalkTime(this) { Ok(ok__) => { @@ -2985,10 +2316,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalACDCallTime(this: *mut core::ffi::c_void, plcalltime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn TotalACDCallTime(this: *mut core::ffi::c_void, plcalltime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::TotalACDCallTime(this) { Ok(ok__) => { @@ -2998,10 +2326,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalWrapUpTime(this: *mut core::ffi::c_void, plwrapuptime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn TotalWrapUpTime(this: *mut core::ffi::c_void, plwrapuptime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::TotalWrapUpTime(this) { Ok(ok__) => { @@ -3011,10 +2336,7 @@ impl ITAgent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AgentSessions(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAgent_Impl, - { + unsafe extern "system" fn AgentSessions(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgent_Impl::AgentSessions(this) { Ok(ok__) => { @@ -3058,14 +2380,8 @@ pub trait ITAgentEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITAgentEvent {} #[cfg(feature = "Win32_System_Com")] impl ITAgentEvent_Vtbl { - pub const fn new() -> ITAgentEvent_Vtbl - where - Identity: ITAgentEvent_Impl, - { - unsafe extern "system" fn Agent(this: *mut core::ffi::c_void, ppagent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgentEvent_Impl, - { + pub const fn new() -> ITAgentEvent_Vtbl { + unsafe extern "system" fn Agent(this: *mut core::ffi::c_void, ppagent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentEvent_Impl::Agent(this) { Ok(ok__) => { @@ -3075,10 +2391,7 @@ impl ITAgentEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut AGENT_EVENT) -> windows_core::HRESULT - where - Identity: ITAgentEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut AGENT_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentEvent_Impl::Event(this) { Ok(ok__) => { @@ -3108,14 +2421,8 @@ pub trait ITAgentHandler_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITAgentHandler {} #[cfg(feature = "Win32_System_Com")] impl ITAgentHandler_Vtbl { - pub const fn new() -> ITAgentHandler_Vtbl - where - Identity: ITAgentHandler_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAgentHandler_Impl, - { + pub const fn new() -> ITAgentHandler_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentHandler_Impl::Name(this) { Ok(ok__) => { @@ -3125,10 +2432,7 @@ impl ITAgentHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAgent(this: *mut core::ffi::c_void, ppagent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgentHandler_Impl, - { + unsafe extern "system" fn CreateAgent(this: *mut core::ffi::c_void, ppagent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentHandler_Impl::CreateAgent(this) { Ok(ok__) => { @@ -3138,10 +2442,7 @@ impl ITAgentHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAgentWithID(this: *mut core::ffi::c_void, pid: core::mem::MaybeUninit, ppin: core::mem::MaybeUninit, ppagent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgentHandler_Impl, - { + unsafe extern "system" fn CreateAgentWithID(this: *mut core::ffi::c_void, pid: core::mem::MaybeUninit, ppin: core::mem::MaybeUninit, ppagent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentHandler_Impl::CreateAgentWithID(this, core::mem::transmute(&pid), core::mem::transmute(&ppin)) { Ok(ok__) => { @@ -3151,10 +2452,7 @@ impl ITAgentHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateACDGroups(this: *mut core::ffi::c_void, ppenumacdgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgentHandler_Impl, - { + unsafe extern "system" fn EnumerateACDGroups(this: *mut core::ffi::c_void, ppenumacdgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentHandler_Impl::EnumerateACDGroups(this) { Ok(ok__) => { @@ -3164,10 +2462,7 @@ impl ITAgentHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateUsableAddresses(this: *mut core::ffi::c_void, ppenumaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgentHandler_Impl, - { + unsafe extern "system" fn EnumerateUsableAddresses(this: *mut core::ffi::c_void, ppenumaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentHandler_Impl::EnumerateUsableAddresses(this) { Ok(ok__) => { @@ -3177,10 +2472,7 @@ impl ITAgentHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ACDGroups(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAgentHandler_Impl, - { + unsafe extern "system" fn ACDGroups(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentHandler_Impl::ACDGroups(this) { Ok(ok__) => { @@ -3190,10 +2482,7 @@ impl ITAgentHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UsableAddresses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAgentHandler_Impl, - { + unsafe extern "system" fn UsableAddresses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentHandler_Impl::UsableAddresses(this) { Ok(ok__) => { @@ -3227,14 +2516,8 @@ pub trait ITAgentHandlerEvent_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ITAgentHandlerEvent {} #[cfg(feature = "Win32_System_Com")] impl ITAgentHandlerEvent_Vtbl { - pub const fn new() -> ITAgentHandlerEvent_Vtbl - where - Identity: ITAgentHandlerEvent_Impl, - { - unsafe extern "system" fn AgentHandler(this: *mut core::ffi::c_void, ppagenthandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgentHandlerEvent_Impl, - { + pub const fn new() -> ITAgentHandlerEvent_Vtbl { + unsafe extern "system" fn AgentHandler(this: *mut core::ffi::c_void, ppagenthandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentHandlerEvent_Impl::AgentHandler(this) { Ok(ok__) => { @@ -3244,10 +2527,7 @@ impl ITAgentHandlerEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut AGENTHANDLER_EVENT) -> windows_core::HRESULT - where - Identity: ITAgentHandlerEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut AGENTHANDLER_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentHandlerEvent_Impl::Event(this) { Ok(ok__) => { @@ -3291,14 +2571,8 @@ pub trait ITAgentSession_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITAgentSession {} #[cfg(feature = "Win32_System_Com")] impl ITAgentSession_Vtbl { - pub const fn new() -> ITAgentSession_Vtbl - where - Identity: ITAgentSession_Impl, - { - unsafe extern "system" fn Agent(this: *mut core::ffi::c_void, ppagent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + pub const fn new() -> ITAgentSession_Vtbl { + unsafe extern "system" fn Agent(this: *mut core::ffi::c_void, ppagent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::Agent(this) { Ok(ok__) => { @@ -3308,10 +2582,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::Address(this) { Ok(ok__) => { @@ -3321,10 +2592,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ACDGroup(this: *mut core::ffi::c_void, ppacdgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn ACDGroup(this: *mut core::ffi::c_void, ppacdgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::ACDGroup(this) { Ok(ok__) => { @@ -3334,17 +2602,11 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, sessionstate: AGENT_SESSION_STATE) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, sessionstate: AGENT_SESSION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAgentSession_Impl::SetState(this, core::mem::transmute_copy(&sessionstate)).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, psessionstate: *mut AGENT_SESSION_STATE) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, psessionstate: *mut AGENT_SESSION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::State(this) { Ok(ok__) => { @@ -3354,10 +2616,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionStartTime(this: *mut core::ffi::c_void, pdatesessionstart: *mut f64) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn SessionStartTime(this: *mut core::ffi::c_void, pdatesessionstart: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::SessionStartTime(this) { Ok(ok__) => { @@ -3367,10 +2626,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionDuration(this: *mut core::ffi::c_void, plduration: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn SessionDuration(this: *mut core::ffi::c_void, plduration: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::SessionDuration(this) { Ok(ok__) => { @@ -3380,10 +2636,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfCalls(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn NumberOfCalls(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::NumberOfCalls(this) { Ok(ok__) => { @@ -3393,10 +2646,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalTalkTime(this: *mut core::ffi::c_void, pltalktime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn TotalTalkTime(this: *mut core::ffi::c_void, pltalktime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::TotalTalkTime(this) { Ok(ok__) => { @@ -3406,10 +2656,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AverageTalkTime(this: *mut core::ffi::c_void, pltalktime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn AverageTalkTime(this: *mut core::ffi::c_void, pltalktime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::AverageTalkTime(this) { Ok(ok__) => { @@ -3419,10 +2666,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalCallTime(this: *mut core::ffi::c_void, plcalltime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn TotalCallTime(this: *mut core::ffi::c_void, plcalltime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::TotalCallTime(this) { Ok(ok__) => { @@ -3432,10 +2676,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AverageCallTime(this: *mut core::ffi::c_void, plcalltime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn AverageCallTime(this: *mut core::ffi::c_void, plcalltime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::AverageCallTime(this) { Ok(ok__) => { @@ -3445,10 +2686,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalWrapUpTime(this: *mut core::ffi::c_void, plwrapuptime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn TotalWrapUpTime(this: *mut core::ffi::c_void, plwrapuptime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::TotalWrapUpTime(this) { Ok(ok__) => { @@ -3458,10 +2696,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AverageWrapUpTime(this: *mut core::ffi::c_void, plwrapuptime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn AverageWrapUpTime(this: *mut core::ffi::c_void, plwrapuptime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::AverageWrapUpTime(this) { Ok(ok__) => { @@ -3471,10 +2706,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ACDCallRate(this: *mut core::ffi::c_void, pcycallrate: *mut super::super::System::Com::CY) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn ACDCallRate(this: *mut core::ffi::c_void, pcycallrate: *mut super::super::System::Com::CY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::ACDCallRate(this) { Ok(ok__) => { @@ -3484,10 +2716,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LongestTimeToAnswer(this: *mut core::ffi::c_void, planswertime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn LongestTimeToAnswer(this: *mut core::ffi::c_void, planswertime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::LongestTimeToAnswer(this) { Ok(ok__) => { @@ -3497,10 +2726,7 @@ impl ITAgentSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AverageTimeToAnswer(this: *mut core::ffi::c_void, planswertime: *mut i32) -> windows_core::HRESULT - where - Identity: ITAgentSession_Impl, - { + unsafe extern "system" fn AverageTimeToAnswer(this: *mut core::ffi::c_void, planswertime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSession_Impl::AverageTimeToAnswer(this) { Ok(ok__) => { @@ -3544,14 +2770,8 @@ pub trait ITAgentSessionEvent_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ITAgentSessionEvent {} #[cfg(feature = "Win32_System_Com")] impl ITAgentSessionEvent_Vtbl { - pub const fn new() -> ITAgentSessionEvent_Vtbl - where - Identity: ITAgentSessionEvent_Impl, - { - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAgentSessionEvent_Impl, - { + pub const fn new() -> ITAgentSessionEvent_Vtbl { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSessionEvent_Impl::Session(this) { Ok(ok__) => { @@ -3561,10 +2781,7 @@ impl ITAgentSessionEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut AGENT_SESSION_EVENT) -> windows_core::HRESULT - where - Identity: ITAgentSessionEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut AGENT_SESSION_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAgentSessionEvent_Impl::Event(this) { Ok(ok__) => { @@ -3585,7 +2802,7 @@ impl ITAgentSessionEvent_Vtbl { } } #[cfg(feature = "Win32_Media_DirectShow")] -pub trait ITAllocatorProperties_Impl: Sized { +pub trait ITAllocatorProperties_Impl: Sized + windows_core::IUnknownImpl { fn SetAllocatorProperties(&self, pallocproperties: *const super::super::Media::DirectShow::ALLOCATOR_PROPERTIES) -> windows_core::Result<()>; fn GetAllocatorProperties(&self) -> windows_core::Result; fn SetAllocateBuffers(&self, ballocbuffers: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -3597,21 +2814,12 @@ pub trait ITAllocatorProperties_Impl: Sized { impl windows_core::RuntimeName for ITAllocatorProperties {} #[cfg(feature = "Win32_Media_DirectShow")] impl ITAllocatorProperties_Vtbl { - pub const fn new() -> ITAllocatorProperties_Vtbl - where - Identity: ITAllocatorProperties_Impl, - { - unsafe extern "system" fn SetAllocatorProperties(this: *mut core::ffi::c_void, pallocproperties: *const super::super::Media::DirectShow::ALLOCATOR_PROPERTIES) -> windows_core::HRESULT - where - Identity: ITAllocatorProperties_Impl, - { + pub const fn new() -> ITAllocatorProperties_Vtbl { + unsafe extern "system" fn SetAllocatorProperties(this: *mut core::ffi::c_void, pallocproperties: *const super::super::Media::DirectShow::ALLOCATOR_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAllocatorProperties_Impl::SetAllocatorProperties(this, core::mem::transmute_copy(&pallocproperties)).into() } - unsafe extern "system" fn GetAllocatorProperties(this: *mut core::ffi::c_void, pallocproperties: *mut super::super::Media::DirectShow::ALLOCATOR_PROPERTIES) -> windows_core::HRESULT - where - Identity: ITAllocatorProperties_Impl, - { + unsafe extern "system" fn GetAllocatorProperties(this: *mut core::ffi::c_void, pallocproperties: *mut super::super::Media::DirectShow::ALLOCATOR_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAllocatorProperties_Impl::GetAllocatorProperties(this) { Ok(ok__) => { @@ -3621,17 +2829,11 @@ impl ITAllocatorProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllocateBuffers(this: *mut core::ffi::c_void, ballocbuffers: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITAllocatorProperties_Impl, - { + unsafe extern "system" fn SetAllocateBuffers(this: *mut core::ffi::c_void, ballocbuffers: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAllocatorProperties_Impl::SetAllocateBuffers(this, core::mem::transmute_copy(&ballocbuffers)).into() } - unsafe extern "system" fn GetAllocateBuffers(this: *mut core::ffi::c_void, pballocbuffers: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITAllocatorProperties_Impl, - { + unsafe extern "system" fn GetAllocateBuffers(this: *mut core::ffi::c_void, pballocbuffers: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAllocatorProperties_Impl::GetAllocateBuffers(this) { Ok(ok__) => { @@ -3641,17 +2843,11 @@ impl ITAllocatorProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferSize(this: *mut core::ffi::c_void, buffersize: u32) -> windows_core::HRESULT - where - Identity: ITAllocatorProperties_Impl, - { + unsafe extern "system" fn SetBufferSize(this: *mut core::ffi::c_void, buffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAllocatorProperties_Impl::SetBufferSize(this, core::mem::transmute_copy(&buffersize)).into() } - unsafe extern "system" fn GetBufferSize(this: *mut core::ffi::c_void, pbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: ITAllocatorProperties_Impl, - { + unsafe extern "system" fn GetBufferSize(this: *mut core::ffi::c_void, pbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAllocatorProperties_Impl::GetBufferSize(this) { Ok(ok__) => { @@ -3714,28 +2910,16 @@ pub trait ITAutomatedPhoneControl_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for ITAutomatedPhoneControl {} #[cfg(feature = "Win32_System_Com")] impl ITAutomatedPhoneControl_Vtbl { - pub const fn new() -> ITAutomatedPhoneControl_Vtbl - where - Identity: ITAutomatedPhoneControl_Impl, - { - unsafe extern "system" fn StartTone(this: *mut core::ffi::c_void, tone: PHONE_TONE, lduration: i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + pub const fn new() -> ITAutomatedPhoneControl_Vtbl { + unsafe extern "system" fn StartTone(this: *mut core::ffi::c_void, tone: PHONE_TONE, lduration: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::StartTone(this, core::mem::transmute_copy(&tone), core::mem::transmute_copy(&lduration)).into() } - unsafe extern "system" fn StopTone(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn StopTone(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::StopTone(this).into() } - unsafe extern "system" fn Tone(this: *mut core::ffi::c_void, ptone: *mut PHONE_TONE) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn Tone(this: *mut core::ffi::c_void, ptone: *mut PHONE_TONE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::Tone(this) { Ok(ok__) => { @@ -3745,24 +2929,15 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartRinger(this: *mut core::ffi::c_void, lringmode: i32, lduration: i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn StartRinger(this: *mut core::ffi::c_void, lringmode: i32, lduration: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::StartRinger(this, core::mem::transmute_copy(&lringmode), core::mem::transmute_copy(&lduration)).into() } - unsafe extern "system" fn StopRinger(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn StopRinger(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::StopRinger(this).into() } - unsafe extern "system" fn Ringer(this: *mut core::ffi::c_void, pfringing: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn Ringer(this: *mut core::ffi::c_void, pfringing: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::Ringer(this) { Ok(ok__) => { @@ -3772,17 +2947,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPhoneHandlingEnabled(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetPhoneHandlingEnabled(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetPhoneHandlingEnabled(this, core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn PhoneHandlingEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn PhoneHandlingEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::PhoneHandlingEnabled(this) { Ok(ok__) => { @@ -3792,17 +2961,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoEndOfNumberTimeout(this: *mut core::ffi::c_void, ltimeout: i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetAutoEndOfNumberTimeout(this: *mut core::ffi::c_void, ltimeout: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetAutoEndOfNumberTimeout(this, core::mem::transmute_copy(<imeout)).into() } - unsafe extern "system" fn AutoEndOfNumberTimeout(this: *mut core::ffi::c_void, pltimeout: *mut i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn AutoEndOfNumberTimeout(this: *mut core::ffi::c_void, pltimeout: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::AutoEndOfNumberTimeout(this) { Ok(ok__) => { @@ -3812,17 +2975,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoDialtone(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetAutoDialtone(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetAutoDialtone(this, core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn AutoDialtone(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn AutoDialtone(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::AutoDialtone(this) { Ok(ok__) => { @@ -3832,17 +2989,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoStopTonesOnOnHook(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetAutoStopTonesOnOnHook(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetAutoStopTonesOnOnHook(this, core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn AutoStopTonesOnOnHook(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn AutoStopTonesOnOnHook(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::AutoStopTonesOnOnHook(this) { Ok(ok__) => { @@ -3852,17 +3003,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoStopRingOnOffHook(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetAutoStopRingOnOffHook(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetAutoStopRingOnOffHook(this, core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn AutoStopRingOnOffHook(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn AutoStopRingOnOffHook(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::AutoStopRingOnOffHook(this) { Ok(ok__) => { @@ -3872,17 +3017,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoKeypadTones(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetAutoKeypadTones(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetAutoKeypadTones(this, core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn AutoKeypadTones(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn AutoKeypadTones(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::AutoKeypadTones(this) { Ok(ok__) => { @@ -3892,17 +3031,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoKeypadTonesMinimumDuration(this: *mut core::ffi::c_void, lduration: i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetAutoKeypadTonesMinimumDuration(this: *mut core::ffi::c_void, lduration: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetAutoKeypadTonesMinimumDuration(this, core::mem::transmute_copy(&lduration)).into() } - unsafe extern "system" fn AutoKeypadTonesMinimumDuration(this: *mut core::ffi::c_void, plduration: *mut i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn AutoKeypadTonesMinimumDuration(this: *mut core::ffi::c_void, plduration: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::AutoKeypadTonesMinimumDuration(this) { Ok(ok__) => { @@ -3912,17 +3045,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoVolumeControl(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetAutoVolumeControl(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetAutoVolumeControl(this, core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn AutoVolumeControl(this: *mut core::ffi::c_void, fenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn AutoVolumeControl(this: *mut core::ffi::c_void, fenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::AutoVolumeControl(this) { Ok(ok__) => { @@ -3932,17 +3059,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoVolumeControlStep(this: *mut core::ffi::c_void, lstepsize: i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetAutoVolumeControlStep(this: *mut core::ffi::c_void, lstepsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetAutoVolumeControlStep(this, core::mem::transmute_copy(&lstepsize)).into() } - unsafe extern "system" fn AutoVolumeControlStep(this: *mut core::ffi::c_void, plstepsize: *mut i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn AutoVolumeControlStep(this: *mut core::ffi::c_void, plstepsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::AutoVolumeControlStep(this) { Ok(ok__) => { @@ -3952,17 +3073,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoVolumeControlRepeatDelay(this: *mut core::ffi::c_void, ldelay: i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetAutoVolumeControlRepeatDelay(this: *mut core::ffi::c_void, ldelay: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetAutoVolumeControlRepeatDelay(this, core::mem::transmute_copy(&ldelay)).into() } - unsafe extern "system" fn AutoVolumeControlRepeatDelay(this: *mut core::ffi::c_void, pldelay: *mut i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn AutoVolumeControlRepeatDelay(this: *mut core::ffi::c_void, pldelay: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::AutoVolumeControlRepeatDelay(this) { Ok(ok__) => { @@ -3972,17 +3087,11 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoVolumeControlRepeatPeriod(this: *mut core::ffi::c_void, lperiod: i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SetAutoVolumeControlRepeatPeriod(this: *mut core::ffi::c_void, lperiod: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SetAutoVolumeControlRepeatPeriod(this, core::mem::transmute_copy(&lperiod)).into() } - unsafe extern "system" fn AutoVolumeControlRepeatPeriod(this: *mut core::ffi::c_void, plperiod: *mut i32) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn AutoVolumeControlRepeatPeriod(this: *mut core::ffi::c_void, plperiod: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::AutoVolumeControlRepeatPeriod(this) { Ok(ok__) => { @@ -3992,24 +3101,15 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectCall(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void, fselectdefaultterminals: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SelectCall(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void, fselectdefaultterminals: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::SelectCall(this, windows_core::from_raw_borrowed(&pcall), core::mem::transmute_copy(&fselectdefaultterminals)).into() } - unsafe extern "system" fn UnselectCall(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn UnselectCall(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAutomatedPhoneControl_Impl::UnselectCall(this, windows_core::from_raw_borrowed(&pcall)).into() } - unsafe extern "system" fn EnumerateSelectedCalls(this: *mut core::ffi::c_void, ppcallenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn EnumerateSelectedCalls(this: *mut core::ffi::c_void, ppcallenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::EnumerateSelectedCalls(this) { Ok(ok__) => { @@ -4019,10 +3119,7 @@ impl ITAutomatedPhoneControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectedCalls(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITAutomatedPhoneControl_Impl, - { + unsafe extern "system" fn SelectedCalls(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAutomatedPhoneControl_Impl::SelectedCalls(this) { Ok(ok__) => { @@ -4083,21 +3180,12 @@ pub trait ITBasicAudioTerminal_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for ITBasicAudioTerminal {} #[cfg(feature = "Win32_System_Com")] impl ITBasicAudioTerminal_Vtbl { - pub const fn new() -> ITBasicAudioTerminal_Vtbl - where - Identity: ITBasicAudioTerminal_Impl, - { - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, lvolume: i32) -> windows_core::HRESULT - where - Identity: ITBasicAudioTerminal_Impl, - { + pub const fn new() -> ITBasicAudioTerminal_Vtbl { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, lvolume: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicAudioTerminal_Impl::SetVolume(this, core::mem::transmute_copy(&lvolume)).into() } - unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, plvolume: *mut i32) -> windows_core::HRESULT - where - Identity: ITBasicAudioTerminal_Impl, - { + unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, plvolume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITBasicAudioTerminal_Impl::Volume(this) { Ok(ok__) => { @@ -4107,17 +3195,11 @@ impl ITBasicAudioTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBalance(this: *mut core::ffi::c_void, lbalance: i32) -> windows_core::HRESULT - where - Identity: ITBasicAudioTerminal_Impl, - { + unsafe extern "system" fn SetBalance(this: *mut core::ffi::c_void, lbalance: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicAudioTerminal_Impl::SetBalance(this, core::mem::transmute_copy(&lbalance)).into() } - unsafe extern "system" fn Balance(this: *mut core::ffi::c_void, plbalance: *mut i32) -> windows_core::HRESULT - where - Identity: ITBasicAudioTerminal_Impl, - { + unsafe extern "system" fn Balance(this: *mut core::ffi::c_void, plbalance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITBasicAudioTerminal_Impl::Balance(this) { Ok(ok__) => { @@ -4164,91 +3246,52 @@ pub trait ITBasicCallControl_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ITBasicCallControl {} #[cfg(feature = "Win32_System_Com")] impl ITBasicCallControl_Vtbl { - pub const fn new() -> ITBasicCallControl_Vtbl - where - Identity: ITBasicCallControl_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, fsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + pub const fn new() -> ITBasicCallControl_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, fsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::Connect(this, core::mem::transmute_copy(&fsync)).into() } - unsafe extern "system" fn Answer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn Answer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::Answer(this).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, code: DISCONNECT_CODE) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, code: DISCONNECT_CODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::Disconnect(this, core::mem::transmute_copy(&code)).into() } - unsafe extern "system" fn Hold(this: *mut core::ffi::c_void, fhold: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn Hold(this: *mut core::ffi::c_void, fhold: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::Hold(this, core::mem::transmute_copy(&fhold)).into() } - unsafe extern "system" fn HandoffDirect(this: *mut core::ffi::c_void, papplicationname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn HandoffDirect(this: *mut core::ffi::c_void, papplicationname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::HandoffDirect(this, core::mem::transmute(&papplicationname)).into() } - unsafe extern "system" fn HandoffIndirect(this: *mut core::ffi::c_void, lmediatype: i32) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn HandoffIndirect(this: *mut core::ffi::c_void, lmediatype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::HandoffIndirect(this, core::mem::transmute_copy(&lmediatype)).into() } - unsafe extern "system" fn Conference(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void, fsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn Conference(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void, fsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::Conference(this, windows_core::from_raw_borrowed(&pcall), core::mem::transmute_copy(&fsync)).into() } - unsafe extern "system" fn Transfer(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void, fsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn Transfer(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void, fsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::Transfer(this, windows_core::from_raw_borrowed(&pcall), core::mem::transmute_copy(&fsync)).into() } - unsafe extern "system" fn BlindTransfer(this: *mut core::ffi::c_void, pdestaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn BlindTransfer(this: *mut core::ffi::c_void, pdestaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::BlindTransfer(this, core::mem::transmute(&pdestaddress)).into() } - unsafe extern "system" fn SwapHold(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn SwapHold(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::SwapHold(this, windows_core::from_raw_borrowed(&pcall)).into() } - unsafe extern "system" fn ParkDirect(this: *mut core::ffi::c_void, pparkaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn ParkDirect(this: *mut core::ffi::c_void, pparkaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::ParkDirect(this, core::mem::transmute(&pparkaddress)).into() } - unsafe extern "system" fn ParkIndirect(this: *mut core::ffi::c_void, ppnondiraddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn ParkIndirect(this: *mut core::ffi::c_void, ppnondiraddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITBasicCallControl_Impl::ParkIndirect(this) { Ok(ok__) => { @@ -4258,45 +3301,27 @@ impl ITBasicCallControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unpark(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn Unpark(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::Unpark(this).into() } - unsafe extern "system" fn SetQOS(this: *mut core::ffi::c_void, lmediatype: i32, servicelevel: QOS_SERVICE_LEVEL) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn SetQOS(this: *mut core::ffi::c_void, lmediatype: i32, servicelevel: QOS_SERVICE_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::SetQOS(this, core::mem::transmute_copy(&lmediatype), core::mem::transmute_copy(&servicelevel)).into() } - unsafe extern "system" fn Pickup(this: *mut core::ffi::c_void, pgroupid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn Pickup(this: *mut core::ffi::c_void, pgroupid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::Pickup(this, core::mem::transmute(&pgroupid)).into() } - unsafe extern "system" fn Dial(this: *mut core::ffi::c_void, pdestaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn Dial(this: *mut core::ffi::c_void, pdestaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::Dial(this, core::mem::transmute(&pdestaddress)).into() } - unsafe extern "system" fn Finish(this: *mut core::ffi::c_void, finishmode: FINISH_MODE) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn Finish(this: *mut core::ffi::c_void, finishmode: FINISH_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::Finish(this, core::mem::transmute_copy(&finishmode)).into() } - unsafe extern "system" fn RemoveFromConference(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITBasicCallControl_Impl, - { + unsafe extern "system" fn RemoveFromConference(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl_Impl::RemoveFromConference(this).into() } @@ -4336,14 +3361,8 @@ pub trait ITBasicCallControl2_Impl: Sized + ITBasicCallControl_Impl { impl windows_core::RuntimeName for ITBasicCallControl2 {} #[cfg(feature = "Win32_System_Com")] impl ITBasicCallControl2_Vtbl { - pub const fn new() -> ITBasicCallControl2_Vtbl - where - Identity: ITBasicCallControl2_Impl, - { - unsafe extern "system" fn RequestTerminal(this: *mut core::ffi::c_void, bstrterminalclassguid: core::mem::MaybeUninit, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITBasicCallControl2_Impl, - { + pub const fn new() -> ITBasicCallControl2_Vtbl { + unsafe extern "system" fn RequestTerminal(this: *mut core::ffi::c_void, bstrterminalclassguid: core::mem::MaybeUninit, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITBasicCallControl2_Impl::RequestTerminal(this, core::mem::transmute(&bstrterminalclassguid), core::mem::transmute_copy(&lmediatype), core::mem::transmute_copy(&direction)) { Ok(ok__) => { @@ -4353,17 +3372,11 @@ impl ITBasicCallControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectTerminalOnCall(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITBasicCallControl2_Impl, - { + unsafe extern "system" fn SelectTerminalOnCall(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl2_Impl::SelectTerminalOnCall(this, windows_core::from_raw_borrowed(&pterminal)).into() } - unsafe extern "system" fn UnselectTerminalOnCall(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITBasicCallControl2_Impl, - { + unsafe extern "system" fn UnselectTerminalOnCall(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITBasicCallControl2_Impl::UnselectTerminalOnCall(this, windows_core::from_raw_borrowed(&pterminal)).into() } @@ -4390,21 +3403,12 @@ pub trait ITCallHub_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITCallHub {} #[cfg(feature = "Win32_System_Com")] impl ITCallHub_Vtbl { - pub const fn new() -> ITCallHub_Vtbl - where - Identity: ITCallHub_Impl, - { - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallHub_Impl, - { + pub const fn new() -> ITCallHub_Vtbl { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCallHub_Impl::Clear(this).into() } - unsafe extern "system" fn EnumerateCalls(this: *mut core::ffi::c_void, ppenumcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallHub_Impl, - { + unsafe extern "system" fn EnumerateCalls(this: *mut core::ffi::c_void, ppenumcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallHub_Impl::EnumerateCalls(this) { Ok(ok__) => { @@ -4414,10 +3418,7 @@ impl ITCallHub_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Calls(this: *mut core::ffi::c_void, pcalls: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCallHub_Impl, - { + unsafe extern "system" fn Calls(this: *mut core::ffi::c_void, pcalls: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallHub_Impl::Calls(this) { Ok(ok__) => { @@ -4427,10 +3428,7 @@ impl ITCallHub_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumCalls(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITCallHub_Impl, - { + unsafe extern "system" fn NumCalls(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallHub_Impl::NumCalls(this) { Ok(ok__) => { @@ -4440,10 +3438,7 @@ impl ITCallHub_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut CALLHUB_STATE) -> windows_core::HRESULT - where - Identity: ITCallHub_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut CALLHUB_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallHub_Impl::State(this) { Ok(ok__) => { @@ -4476,14 +3471,8 @@ pub trait ITCallHubEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITCallHubEvent {} #[cfg(feature = "Win32_System_Com")] impl ITCallHubEvent_Vtbl { - pub const fn new() -> ITCallHubEvent_Vtbl - where - Identity: ITCallHubEvent_Impl, - { - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut CALLHUB_EVENT) -> windows_core::HRESULT - where - Identity: ITCallHubEvent_Impl, - { + pub const fn new() -> ITCallHubEvent_Vtbl { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut CALLHUB_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallHubEvent_Impl::Event(this) { Ok(ok__) => { @@ -4493,10 +3482,7 @@ impl ITCallHubEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallHub(this: *mut core::ffi::c_void, ppcallhub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallHubEvent_Impl, - { + unsafe extern "system" fn CallHub(this: *mut core::ffi::c_void, ppcallhub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallHubEvent_Impl::CallHub(this) { Ok(ok__) => { @@ -4506,10 +3492,7 @@ impl ITCallHubEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallHubEvent_Impl, - { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallHubEvent_Impl::Call(this) { Ok(ok__) => { @@ -4550,14 +3533,8 @@ pub trait ITCallInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITCallInfo {} #[cfg(feature = "Win32_System_Com")] impl ITCallInfo_Vtbl { - pub const fn new() -> ITCallInfo_Vtbl - where - Identity: ITCallInfo_Impl, - { - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + pub const fn new() -> ITCallInfo_Vtbl { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfo_Impl::Address(this) { Ok(ok__) => { @@ -4567,10 +3544,7 @@ impl ITCallInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallState(this: *mut core::ffi::c_void, pcallstate: *mut CALL_STATE) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn CallState(this: *mut core::ffi::c_void, pcallstate: *mut CALL_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfo_Impl::CallState(this) { Ok(ok__) => { @@ -4580,10 +3554,7 @@ impl ITCallInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Privilege(this: *mut core::ffi::c_void, pprivilege: *mut CALL_PRIVILEGE) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn Privilege(this: *mut core::ffi::c_void, pprivilege: *mut CALL_PRIVILEGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfo_Impl::Privilege(this) { Ok(ok__) => { @@ -4593,10 +3564,7 @@ impl ITCallInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallHub(this: *mut core::ffi::c_void, ppcallhub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn CallHub(this: *mut core::ffi::c_void, ppcallhub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfo_Impl::CallHub(this) { Ok(ok__) => { @@ -4606,10 +3574,7 @@ impl ITCallInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_CallInfoLong(this: *mut core::ffi::c_void, callinfolong: CALLINFO_LONG, plcallinfolongval: *mut i32) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn get_CallInfoLong(this: *mut core::ffi::c_void, callinfolong: CALLINFO_LONG, plcallinfolongval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfo_Impl::get_CallInfoLong(this, core::mem::transmute_copy(&callinfolong)) { Ok(ok__) => { @@ -4619,17 +3584,11 @@ impl ITCallInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_CallInfoLong(this: *mut core::ffi::c_void, callinfolong: CALLINFO_LONG, lcallinfolongval: i32) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn put_CallInfoLong(this: *mut core::ffi::c_void, callinfolong: CALLINFO_LONG, lcallinfolongval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCallInfo_Impl::put_CallInfoLong(this, core::mem::transmute_copy(&callinfolong), core::mem::transmute_copy(&lcallinfolongval)).into() } - unsafe extern "system" fn get_CallInfoString(this: *mut core::ffi::c_void, callinfostring: CALLINFO_STRING, ppcallinfostring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn get_CallInfoString(this: *mut core::ffi::c_void, callinfostring: CALLINFO_STRING, ppcallinfostring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfo_Impl::get_CallInfoString(this, core::mem::transmute_copy(&callinfostring)) { Ok(ok__) => { @@ -4639,17 +3598,11 @@ impl ITCallInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_CallInfoString(this: *mut core::ffi::c_void, callinfostring: CALLINFO_STRING, pcallinfostring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn put_CallInfoString(this: *mut core::ffi::c_void, callinfostring: CALLINFO_STRING, pcallinfostring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCallInfo_Impl::put_CallInfoString(this, core::mem::transmute_copy(&callinfostring), core::mem::transmute(&pcallinfostring)).into() } - unsafe extern "system" fn get_CallInfoBuffer(this: *mut core::ffi::c_void, callinfobuffer: CALLINFO_BUFFER, ppcallinfobuffer: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn get_CallInfoBuffer(this: *mut core::ffi::c_void, callinfobuffer: CALLINFO_BUFFER, ppcallinfobuffer: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfo_Impl::get_CallInfoBuffer(this, core::mem::transmute_copy(&callinfobuffer)) { Ok(ok__) => { @@ -4659,31 +3612,19 @@ impl ITCallInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_CallInfoBuffer(this: *mut core::ffi::c_void, callinfobuffer: CALLINFO_BUFFER, pcallinfobuffer: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn put_CallInfoBuffer(this: *mut core::ffi::c_void, callinfobuffer: CALLINFO_BUFFER, pcallinfobuffer: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCallInfo_Impl::put_CallInfoBuffer(this, core::mem::transmute_copy(&callinfobuffer), core::mem::transmute(&pcallinfobuffer)).into() } - unsafe extern "system" fn GetCallInfoBuffer(this: *mut core::ffi::c_void, callinfobuffer: CALLINFO_BUFFER, pdwsize: *mut u32, ppcallinfobuffer: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn GetCallInfoBuffer(this: *mut core::ffi::c_void, callinfobuffer: CALLINFO_BUFFER, pdwsize: *mut u32, ppcallinfobuffer: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCallInfo_Impl::GetCallInfoBuffer(this, core::mem::transmute_copy(&callinfobuffer), core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&ppcallinfobuffer)).into() } - unsafe extern "system" fn SetCallInfoBuffer(this: *mut core::ffi::c_void, callinfobuffer: CALLINFO_BUFFER, dwsize: u32, pcallinfobuffer: *const u8) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn SetCallInfoBuffer(this: *mut core::ffi::c_void, callinfobuffer: CALLINFO_BUFFER, dwsize: u32, pcallinfobuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCallInfo_Impl::SetCallInfoBuffer(this, core::mem::transmute_copy(&callinfobuffer), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pcallinfobuffer)).into() } - unsafe extern "system" fn ReleaseUserUserInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallInfo_Impl, - { + unsafe extern "system" fn ReleaseUserUserInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCallInfo_Impl::ReleaseUserUserInfo(this).into() } @@ -4717,14 +3658,8 @@ pub trait ITCallInfo2_Impl: Sized + ITCallInfo_Impl { impl windows_core::RuntimeName for ITCallInfo2 {} #[cfg(feature = "Win32_System_Com")] impl ITCallInfo2_Vtbl { - pub const fn new() -> ITCallInfo2_Vtbl - where - Identity: ITCallInfo2_Impl, - { - unsafe extern "system" fn get_EventFilter(this: *mut core::ffi::c_void, tapievent: TAPI_EVENT, lsubevent: i32, penable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITCallInfo2_Impl, - { + pub const fn new() -> ITCallInfo2_Vtbl { + unsafe extern "system" fn get_EventFilter(this: *mut core::ffi::c_void, tapievent: TAPI_EVENT, lsubevent: i32, penable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfo2_Impl::get_EventFilter(this, core::mem::transmute_copy(&tapievent), core::mem::transmute_copy(&lsubevent)) { Ok(ok__) => { @@ -4734,10 +3669,7 @@ impl ITCallInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_EventFilter(this: *mut core::ffi::c_void, tapievent: TAPI_EVENT, lsubevent: i32, benable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITCallInfo2_Impl, - { + unsafe extern "system" fn put_EventFilter(this: *mut core::ffi::c_void, tapievent: TAPI_EVENT, lsubevent: i32, benable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCallInfo2_Impl::put_EventFilter(this, core::mem::transmute_copy(&tapievent), core::mem::transmute_copy(&lsubevent), core::mem::transmute_copy(&benable)).into() } @@ -4761,14 +3693,8 @@ pub trait ITCallInfoChangeEvent_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ITCallInfoChangeEvent {} #[cfg(feature = "Win32_System_Com")] impl ITCallInfoChangeEvent_Vtbl { - pub const fn new() -> ITCallInfoChangeEvent_Vtbl - where - Identity: ITCallInfoChangeEvent_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallInfoChangeEvent_Impl, - { + pub const fn new() -> ITCallInfoChangeEvent_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfoChangeEvent_Impl::Call(this) { Ok(ok__) => { @@ -4778,10 +3704,7 @@ impl ITCallInfoChangeEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cause(this: *mut core::ffi::c_void, pcic: *mut CALLINFOCHANGE_CAUSE) -> windows_core::HRESULT - where - Identity: ITCallInfoChangeEvent_Impl, - { + unsafe extern "system" fn Cause(this: *mut core::ffi::c_void, pcic: *mut CALLINFOCHANGE_CAUSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfoChangeEvent_Impl::Cause(this) { Ok(ok__) => { @@ -4791,10 +3714,7 @@ impl ITCallInfoChangeEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT - where - Identity: ITCallInfoChangeEvent_Impl, - { + unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallInfoChangeEvent_Impl::CallbackInstance(this) { Ok(ok__) => { @@ -4828,14 +3748,8 @@ pub trait ITCallMediaEvent_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ITCallMediaEvent {} #[cfg(feature = "Win32_System_Com")] impl ITCallMediaEvent_Vtbl { - pub const fn new() -> ITCallMediaEvent_Vtbl - where - Identity: ITCallMediaEvent_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallMediaEvent_Impl, - { + pub const fn new() -> ITCallMediaEvent_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallMediaEvent_Impl::Call(this) { Ok(ok__) => { @@ -4845,10 +3759,7 @@ impl ITCallMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pcallmediaevent: *mut CALL_MEDIA_EVENT) -> windows_core::HRESULT - where - Identity: ITCallMediaEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pcallmediaevent: *mut CALL_MEDIA_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallMediaEvent_Impl::Event(this) { Ok(ok__) => { @@ -4858,10 +3769,7 @@ impl ITCallMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, phrerror: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITCallMediaEvent_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, phrerror: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallMediaEvent_Impl::Error(this) { Ok(ok__) => { @@ -4871,10 +3779,7 @@ impl ITCallMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallMediaEvent_Impl, - { + unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallMediaEvent_Impl::Terminal(this) { Ok(ok__) => { @@ -4884,10 +3789,7 @@ impl ITCallMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallMediaEvent_Impl, - { + unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallMediaEvent_Impl::Stream(this) { Ok(ok__) => { @@ -4897,10 +3799,7 @@ impl ITCallMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cause(this: *mut core::ffi::c_void, pcause: *mut CALL_MEDIA_EVENT_CAUSE) -> windows_core::HRESULT - where - Identity: ITCallMediaEvent_Impl, - { + unsafe extern "system" fn Cause(this: *mut core::ffi::c_void, pcause: *mut CALL_MEDIA_EVENT_CAUSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallMediaEvent_Impl::Cause(this) { Ok(ok__) => { @@ -4934,14 +3833,8 @@ pub trait ITCallNotificationEvent_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for ITCallNotificationEvent {} #[cfg(feature = "Win32_System_Com")] impl ITCallNotificationEvent_Vtbl { - pub const fn new() -> ITCallNotificationEvent_Vtbl - where - Identity: ITCallNotificationEvent_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallNotificationEvent_Impl, - { + pub const fn new() -> ITCallNotificationEvent_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallNotificationEvent_Impl::Call(this) { Ok(ok__) => { @@ -4951,10 +3844,7 @@ impl ITCallNotificationEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pcallnotificationevent: *mut CALL_NOTIFICATION_EVENT) -> windows_core::HRESULT - where - Identity: ITCallNotificationEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pcallnotificationevent: *mut CALL_NOTIFICATION_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallNotificationEvent_Impl::Event(this) { Ok(ok__) => { @@ -4964,10 +3854,7 @@ impl ITCallNotificationEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT - where - Identity: ITCallNotificationEvent_Impl, - { + unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallNotificationEvent_Impl::CallbackInstance(this) { Ok(ok__) => { @@ -4999,14 +3886,8 @@ pub trait ITCallStateEvent_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ITCallStateEvent {} #[cfg(feature = "Win32_System_Com")] impl ITCallStateEvent_Vtbl { - pub const fn new() -> ITCallStateEvent_Vtbl - where - Identity: ITCallStateEvent_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCallStateEvent_Impl, - { + pub const fn new() -> ITCallStateEvent_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallStateEvent_Impl::Call(this) { Ok(ok__) => { @@ -5016,10 +3897,7 @@ impl ITCallStateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pcallstate: *mut CALL_STATE) -> windows_core::HRESULT - where - Identity: ITCallStateEvent_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pcallstate: *mut CALL_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallStateEvent_Impl::State(this) { Ok(ok__) => { @@ -5029,10 +3907,7 @@ impl ITCallStateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cause(this: *mut core::ffi::c_void, pcec: *mut CALL_STATE_EVENT_CAUSE) -> windows_core::HRESULT - where - Identity: ITCallStateEvent_Impl, - { + unsafe extern "system" fn Cause(this: *mut core::ffi::c_void, pcec: *mut CALL_STATE_EVENT_CAUSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallStateEvent_Impl::Cause(this) { Ok(ok__) => { @@ -5042,10 +3917,7 @@ impl ITCallStateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT - where - Identity: ITCallStateEvent_Impl, - { + unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallStateEvent_Impl::CallbackInstance(this) { Ok(ok__) => { @@ -5081,14 +3953,8 @@ pub trait ITCallingCard_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITCallingCard {} #[cfg(feature = "Win32_System_Com")] impl ITCallingCard_Vtbl { - pub const fn new() -> ITCallingCard_Vtbl - where - Identity: ITCallingCard_Impl, - { - unsafe extern "system" fn PermanentCardID(this: *mut core::ffi::c_void, plcardid: *mut i32) -> windows_core::HRESULT - where - Identity: ITCallingCard_Impl, - { + pub const fn new() -> ITCallingCard_Vtbl { + unsafe extern "system" fn PermanentCardID(this: *mut core::ffi::c_void, plcardid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallingCard_Impl::PermanentCardID(this) { Ok(ok__) => { @@ -5098,10 +3964,7 @@ impl ITCallingCard_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfDigits(this: *mut core::ffi::c_void, pldigits: *mut i32) -> windows_core::HRESULT - where - Identity: ITCallingCard_Impl, - { + unsafe extern "system" fn NumberOfDigits(this: *mut core::ffi::c_void, pldigits: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallingCard_Impl::NumberOfDigits(this) { Ok(ok__) => { @@ -5111,10 +3974,7 @@ impl ITCallingCard_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Options(this: *mut core::ffi::c_void, ploptions: *mut i32) -> windows_core::HRESULT - where - Identity: ITCallingCard_Impl, - { + unsafe extern "system" fn Options(this: *mut core::ffi::c_void, ploptions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallingCard_Impl::Options(this) { Ok(ok__) => { @@ -5124,10 +3984,7 @@ impl ITCallingCard_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CardName(this: *mut core::ffi::c_void, ppcardname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCallingCard_Impl, - { + unsafe extern "system" fn CardName(this: *mut core::ffi::c_void, ppcardname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallingCard_Impl::CardName(this) { Ok(ok__) => { @@ -5137,10 +3994,7 @@ impl ITCallingCard_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SameAreaDialingRule(this: *mut core::ffi::c_void, pprule: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCallingCard_Impl, - { + unsafe extern "system" fn SameAreaDialingRule(this: *mut core::ffi::c_void, pprule: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallingCard_Impl::SameAreaDialingRule(this) { Ok(ok__) => { @@ -5150,10 +4004,7 @@ impl ITCallingCard_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LongDistanceDialingRule(this: *mut core::ffi::c_void, pprule: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCallingCard_Impl, - { + unsafe extern "system" fn LongDistanceDialingRule(this: *mut core::ffi::c_void, pprule: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallingCard_Impl::LongDistanceDialingRule(this) { Ok(ok__) => { @@ -5163,10 +4014,7 @@ impl ITCallingCard_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InternationalDialingRule(this: *mut core::ffi::c_void, pprule: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCallingCard_Impl, - { + unsafe extern "system" fn InternationalDialingRule(this: *mut core::ffi::c_void, pprule: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCallingCard_Impl::InternationalDialingRule(this) { Ok(ok__) => { @@ -5201,14 +4049,8 @@ pub trait ITCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITCollection {} #[cfg(feature = "Win32_System_Com")] impl ITCollection_Vtbl { - pub const fn new() -> ITCollection_Vtbl - where - Identity: ITCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITCollection_Impl, - { + pub const fn new() -> ITCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCollection_Impl::Count(this) { Ok(ok__) => { @@ -5218,10 +4060,7 @@ impl ITCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5231,10 +4070,7 @@ impl ITCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5264,21 +4100,12 @@ pub trait ITCollection2_Impl: Sized + ITCollection_Impl { impl windows_core::RuntimeName for ITCollection2 {} #[cfg(feature = "Win32_System_Com")] impl ITCollection2_Vtbl { - pub const fn new() -> ITCollection2_Vtbl - where - Identity: ITCollection2_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, index: i32, pvariant: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITCollection2_Impl, - { + pub const fn new() -> ITCollection2_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, index: i32, pvariant: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCollection2_Impl::Add(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pvariant)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ITCollection2_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCollection2_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } @@ -5303,14 +4130,8 @@ pub trait ITCustomTone_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITCustomTone {} #[cfg(feature = "Win32_System_Com")] impl ITCustomTone_Vtbl { - pub const fn new() -> ITCustomTone_Vtbl - where - Identity: ITCustomTone_Impl, - { - unsafe extern "system" fn Frequency(this: *mut core::ffi::c_void, plfrequency: *mut i32) -> windows_core::HRESULT - where - Identity: ITCustomTone_Impl, - { + pub const fn new() -> ITCustomTone_Vtbl { + unsafe extern "system" fn Frequency(this: *mut core::ffi::c_void, plfrequency: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCustomTone_Impl::Frequency(this) { Ok(ok__) => { @@ -5320,17 +4141,11 @@ impl ITCustomTone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrequency(this: *mut core::ffi::c_void, lfrequency: i32) -> windows_core::HRESULT - where - Identity: ITCustomTone_Impl, - { + unsafe extern "system" fn SetFrequency(this: *mut core::ffi::c_void, lfrequency: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCustomTone_Impl::SetFrequency(this, core::mem::transmute_copy(&lfrequency)).into() } - unsafe extern "system" fn CadenceOn(this: *mut core::ffi::c_void, plcadenceon: *mut i32) -> windows_core::HRESULT - where - Identity: ITCustomTone_Impl, - { + unsafe extern "system" fn CadenceOn(this: *mut core::ffi::c_void, plcadenceon: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCustomTone_Impl::CadenceOn(this) { Ok(ok__) => { @@ -5340,17 +4155,11 @@ impl ITCustomTone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCadenceOn(this: *mut core::ffi::c_void, cadenceon: i32) -> windows_core::HRESULT - where - Identity: ITCustomTone_Impl, - { + unsafe extern "system" fn SetCadenceOn(this: *mut core::ffi::c_void, cadenceon: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCustomTone_Impl::SetCadenceOn(this, core::mem::transmute_copy(&cadenceon)).into() } - unsafe extern "system" fn CadenceOff(this: *mut core::ffi::c_void, plcadenceoff: *mut i32) -> windows_core::HRESULT - where - Identity: ITCustomTone_Impl, - { + unsafe extern "system" fn CadenceOff(this: *mut core::ffi::c_void, plcadenceoff: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCustomTone_Impl::CadenceOff(this) { Ok(ok__) => { @@ -5360,17 +4169,11 @@ impl ITCustomTone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCadenceOff(this: *mut core::ffi::c_void, lcadenceoff: i32) -> windows_core::HRESULT - where - Identity: ITCustomTone_Impl, - { + unsafe extern "system" fn SetCadenceOff(this: *mut core::ffi::c_void, lcadenceoff: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCustomTone_Impl::SetCadenceOff(this, core::mem::transmute_copy(&lcadenceoff)).into() } - unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, plvolume: *mut i32) -> windows_core::HRESULT - where - Identity: ITCustomTone_Impl, - { + unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, plvolume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITCustomTone_Impl::Volume(this) { Ok(ok__) => { @@ -5380,10 +4183,7 @@ impl ITCustomTone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, lvolume: i32) -> windows_core::HRESULT - where - Identity: ITCustomTone_Impl, - { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, lvolume: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITCustomTone_Impl::SetVolume(this, core::mem::transmute_copy(&lvolume)).into() } @@ -5416,14 +4216,8 @@ pub trait ITDetectTone_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITDetectTone {} #[cfg(feature = "Win32_System_Com")] impl ITDetectTone_Vtbl { - pub const fn new() -> ITDetectTone_Vtbl - where - Identity: ITDetectTone_Impl, - { - unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT - where - Identity: ITDetectTone_Impl, - { + pub const fn new() -> ITDetectTone_Vtbl { + unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDetectTone_Impl::AppSpecific(this) { Ok(ok__) => { @@ -5433,17 +4227,11 @@ impl ITDetectTone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAppSpecific(this: *mut core::ffi::c_void, lappspecific: i32) -> windows_core::HRESULT - where - Identity: ITDetectTone_Impl, - { + unsafe extern "system" fn SetAppSpecific(this: *mut core::ffi::c_void, lappspecific: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDetectTone_Impl::SetAppSpecific(this, core::mem::transmute_copy(&lappspecific)).into() } - unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, plduration: *mut i32) -> windows_core::HRESULT - where - Identity: ITDetectTone_Impl, - { + unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, plduration: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDetectTone_Impl::Duration(this) { Ok(ok__) => { @@ -5453,17 +4241,11 @@ impl ITDetectTone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, lduration: i32) -> windows_core::HRESULT - where - Identity: ITDetectTone_Impl, - { + unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, lduration: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDetectTone_Impl::SetDuration(this, core::mem::transmute_copy(&lduration)).into() } - unsafe extern "system" fn get_Frequency(this: *mut core::ffi::c_void, index: i32, plfrequency: *mut i32) -> windows_core::HRESULT - where - Identity: ITDetectTone_Impl, - { + unsafe extern "system" fn get_Frequency(this: *mut core::ffi::c_void, index: i32, plfrequency: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDetectTone_Impl::get_Frequency(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5473,10 +4255,7 @@ impl ITDetectTone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Frequency(this: *mut core::ffi::c_void, index: i32, lfrequency: i32) -> windows_core::HRESULT - where - Identity: ITDetectTone_Impl, - { + unsafe extern "system" fn put_Frequency(this: *mut core::ffi::c_void, index: i32, lfrequency: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDetectTone_Impl::put_Frequency(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&lfrequency)).into() } @@ -5506,14 +4285,8 @@ pub trait ITDigitDetectionEvent_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ITDigitDetectionEvent {} #[cfg(feature = "Win32_System_Com")] impl ITDigitDetectionEvent_Vtbl { - pub const fn new() -> ITDigitDetectionEvent_Vtbl - where - Identity: ITDigitDetectionEvent_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDigitDetectionEvent_Impl, - { + pub const fn new() -> ITDigitDetectionEvent_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitDetectionEvent_Impl::Call(this) { Ok(ok__) => { @@ -5523,10 +4296,7 @@ impl ITDigitDetectionEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Digit(this: *mut core::ffi::c_void, pucdigit: *mut u8) -> windows_core::HRESULT - where - Identity: ITDigitDetectionEvent_Impl, - { + unsafe extern "system" fn Digit(this: *mut core::ffi::c_void, pucdigit: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitDetectionEvent_Impl::Digit(this) { Ok(ok__) => { @@ -5536,10 +4306,7 @@ impl ITDigitDetectionEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DigitMode(this: *mut core::ffi::c_void, pdigitmode: *mut i32) -> windows_core::HRESULT - where - Identity: ITDigitDetectionEvent_Impl, - { + unsafe extern "system" fn DigitMode(this: *mut core::ffi::c_void, pdigitmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitDetectionEvent_Impl::DigitMode(this) { Ok(ok__) => { @@ -5549,10 +4316,7 @@ impl ITDigitDetectionEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TickCount(this: *mut core::ffi::c_void, pltickcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITDigitDetectionEvent_Impl, - { + unsafe extern "system" fn TickCount(this: *mut core::ffi::c_void, pltickcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitDetectionEvent_Impl::TickCount(this) { Ok(ok__) => { @@ -5562,10 +4326,7 @@ impl ITDigitDetectionEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT - where - Identity: ITDigitDetectionEvent_Impl, - { + unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitDetectionEvent_Impl::CallbackInstance(this) { Ok(ok__) => { @@ -5599,14 +4360,8 @@ pub trait ITDigitGenerationEvent_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for ITDigitGenerationEvent {} #[cfg(feature = "Win32_System_Com")] impl ITDigitGenerationEvent_Vtbl { - pub const fn new() -> ITDigitGenerationEvent_Vtbl - where - Identity: ITDigitGenerationEvent_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDigitGenerationEvent_Impl, - { + pub const fn new() -> ITDigitGenerationEvent_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitGenerationEvent_Impl::Call(this) { Ok(ok__) => { @@ -5616,10 +4371,7 @@ impl ITDigitGenerationEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerationTermination(this: *mut core::ffi::c_void, plgenerationtermination: *mut i32) -> windows_core::HRESULT - where - Identity: ITDigitGenerationEvent_Impl, - { + unsafe extern "system" fn GenerationTermination(this: *mut core::ffi::c_void, plgenerationtermination: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitGenerationEvent_Impl::GenerationTermination(this) { Ok(ok__) => { @@ -5629,10 +4381,7 @@ impl ITDigitGenerationEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TickCount(this: *mut core::ffi::c_void, pltickcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITDigitGenerationEvent_Impl, - { + unsafe extern "system" fn TickCount(this: *mut core::ffi::c_void, pltickcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitGenerationEvent_Impl::TickCount(this) { Ok(ok__) => { @@ -5642,10 +4391,7 @@ impl ITDigitGenerationEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT - where - Identity: ITDigitGenerationEvent_Impl, - { + unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitGenerationEvent_Impl::CallbackInstance(this) { Ok(ok__) => { @@ -5679,14 +4425,8 @@ pub trait ITDigitsGatheredEvent_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ITDigitsGatheredEvent {} #[cfg(feature = "Win32_System_Com")] impl ITDigitsGatheredEvent_Vtbl { - pub const fn new() -> ITDigitsGatheredEvent_Vtbl - where - Identity: ITDigitsGatheredEvent_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDigitsGatheredEvent_Impl, - { + pub const fn new() -> ITDigitsGatheredEvent_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitsGatheredEvent_Impl::Call(this) { Ok(ok__) => { @@ -5696,10 +4436,7 @@ impl ITDigitsGatheredEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Digits(this: *mut core::ffi::c_void, ppdigits: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDigitsGatheredEvent_Impl, - { + unsafe extern "system" fn Digits(this: *mut core::ffi::c_void, ppdigits: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitsGatheredEvent_Impl::Digits(this) { Ok(ok__) => { @@ -5709,10 +4446,7 @@ impl ITDigitsGatheredEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GatherTermination(this: *mut core::ffi::c_void, pgathertermination: *mut TAPI_GATHERTERM) -> windows_core::HRESULT - where - Identity: ITDigitsGatheredEvent_Impl, - { + unsafe extern "system" fn GatherTermination(this: *mut core::ffi::c_void, pgathertermination: *mut TAPI_GATHERTERM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitsGatheredEvent_Impl::GatherTermination(this) { Ok(ok__) => { @@ -5722,10 +4456,7 @@ impl ITDigitsGatheredEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TickCount(this: *mut core::ffi::c_void, pltickcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITDigitsGatheredEvent_Impl, - { + unsafe extern "system" fn TickCount(this: *mut core::ffi::c_void, pltickcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitsGatheredEvent_Impl::TickCount(this) { Ok(ok__) => { @@ -5735,10 +4466,7 @@ impl ITDigitsGatheredEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT - where - Identity: ITDigitsGatheredEvent_Impl, - { + unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDigitsGatheredEvent_Impl::CallbackInstance(this) { Ok(ok__) => { @@ -5782,14 +4510,8 @@ pub trait ITDirectory_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITDirectory {} #[cfg(feature = "Win32_System_Com")] impl ITDirectory_Vtbl { - pub const fn new() -> ITDirectory_Vtbl - where - Identity: ITDirectory_Impl, - { - unsafe extern "system" fn DirectoryType(this: *mut core::ffi::c_void, pdirectorytype: *mut DIRECTORY_TYPE) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + pub const fn new() -> ITDirectory_Vtbl { + unsafe extern "system" fn DirectoryType(this: *mut core::ffi::c_void, pdirectorytype: *mut DIRECTORY_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectory_Impl::DirectoryType(this) { Ok(ok__) => { @@ -5799,10 +4521,7 @@ impl ITDirectory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectory_Impl::DisplayName(this) { Ok(ok__) => { @@ -5812,10 +4531,7 @@ impl ITDirectory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDynamic(this: *mut core::ffi::c_void, pfdynamic: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn IsDynamic(this: *mut core::ffi::c_void, pfdynamic: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectory_Impl::IsDynamic(this) { Ok(ok__) => { @@ -5825,10 +4541,7 @@ impl ITDirectory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultObjectTTL(this: *mut core::ffi::c_void, pttl: *mut i32) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn DefaultObjectTTL(this: *mut core::ffi::c_void, pttl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectory_Impl::DefaultObjectTTL(this) { Ok(ok__) => { @@ -5838,66 +4551,39 @@ impl ITDirectory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultObjectTTL(this: *mut core::ffi::c_void, ttl: i32) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn SetDefaultObjectTTL(this: *mut core::ffi::c_void, ttl: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectory_Impl::SetDefaultObjectTTL(this, core::mem::transmute_copy(&ttl)).into() } - unsafe extern "system" fn EnableAutoRefresh(this: *mut core::ffi::c_void, fenable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn EnableAutoRefresh(this: *mut core::ffi::c_void, fenable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectory_Impl::EnableAutoRefresh(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, fsecure: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, fsecure: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectory_Impl::Connect(this, core::mem::transmute_copy(&fsecure)).into() } - unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, pdomainname: core::mem::MaybeUninit, pusername: core::mem::MaybeUninit, ppassword: core::mem::MaybeUninit, lflags: i32) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, pdomainname: core::mem::MaybeUninit, pusername: core::mem::MaybeUninit, ppassword: core::mem::MaybeUninit, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectory_Impl::Bind(this, core::mem::transmute(&pdomainname), core::mem::transmute(&pusername), core::mem::transmute(&ppassword), core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn AddDirectoryObject(this: *mut core::ffi::c_void, pdirectoryobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn AddDirectoryObject(this: *mut core::ffi::c_void, pdirectoryobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectory_Impl::AddDirectoryObject(this, windows_core::from_raw_borrowed(&pdirectoryobject)).into() } - unsafe extern "system" fn ModifyDirectoryObject(this: *mut core::ffi::c_void, pdirectoryobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn ModifyDirectoryObject(this: *mut core::ffi::c_void, pdirectoryobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectory_Impl::ModifyDirectoryObject(this, windows_core::from_raw_borrowed(&pdirectoryobject)).into() } - unsafe extern "system" fn RefreshDirectoryObject(this: *mut core::ffi::c_void, pdirectoryobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn RefreshDirectoryObject(this: *mut core::ffi::c_void, pdirectoryobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectory_Impl::RefreshDirectoryObject(this, windows_core::from_raw_borrowed(&pdirectoryobject)).into() } - unsafe extern "system" fn DeleteDirectoryObject(this: *mut core::ffi::c_void, pdirectoryobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn DeleteDirectoryObject(this: *mut core::ffi::c_void, pdirectoryobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectory_Impl::DeleteDirectoryObject(this, windows_core::from_raw_borrowed(&pdirectoryobject)).into() } - unsafe extern "system" fn get_DirectoryObjects(this: *mut core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: core::mem::MaybeUninit, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn get_DirectoryObjects(this: *mut core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: core::mem::MaybeUninit, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectory_Impl::get_DirectoryObjects(this, core::mem::transmute_copy(&directoryobjecttype), core::mem::transmute(&pname)) { Ok(ok__) => { @@ -5907,10 +4593,7 @@ impl ITDirectory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateDirectoryObjects(this: *mut core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: core::mem::MaybeUninit, ppenumobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDirectory_Impl, - { + unsafe extern "system" fn EnumerateDirectoryObjects(this: *mut core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: core::mem::MaybeUninit, ppenumobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectory_Impl::EnumerateDirectoryObjects(this, core::mem::transmute_copy(&directoryobjecttype), core::mem::transmute(&pname)) { Ok(ok__) => { @@ -5956,14 +4639,8 @@ pub trait ITDirectoryObject_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ITDirectoryObject {} #[cfg(feature = "Win32_System_Com")] impl ITDirectoryObject_Vtbl { - pub const fn new() -> ITDirectoryObject_Vtbl - where - Identity: ITDirectoryObject_Impl, - { - unsafe extern "system" fn ObjectType(this: *mut core::ffi::c_void, pobjecttype: *mut DIRECTORY_OBJECT_TYPE) -> windows_core::HRESULT - where - Identity: ITDirectoryObject_Impl, - { + pub const fn new() -> ITDirectoryObject_Vtbl { + unsafe extern "system" fn ObjectType(this: *mut core::ffi::c_void, pobjecttype: *mut DIRECTORY_OBJECT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObject_Impl::ObjectType(this) { Ok(ok__) => { @@ -5973,10 +4650,7 @@ impl ITDirectoryObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObject_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObject_Impl::Name(this) { Ok(ok__) => { @@ -5986,17 +4660,11 @@ impl ITDirectoryObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObject_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectoryObject_Impl::SetName(this, core::mem::transmute(&pname)).into() } - unsafe extern "system" fn get_DialableAddrs(this: *mut core::ffi::c_void, dwaddresstype: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObject_Impl, - { + unsafe extern "system" fn get_DialableAddrs(this: *mut core::ffi::c_void, dwaddresstype: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObject_Impl::get_DialableAddrs(this, core::mem::transmute_copy(&dwaddresstype)) { Ok(ok__) => { @@ -6006,10 +4674,7 @@ impl ITDirectoryObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateDialableAddrs(this: *mut core::ffi::c_void, dwaddresstype: u32, ppenumdialableaddrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDirectoryObject_Impl, - { + unsafe extern "system" fn EnumerateDialableAddrs(this: *mut core::ffi::c_void, dwaddresstype: u32, ppenumdialableaddrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObject_Impl::EnumerateDialableAddrs(this, core::mem::transmute_copy(&dwaddresstype)) { Ok(ok__) => { @@ -6019,10 +4684,7 @@ impl ITDirectoryObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SecurityDescriptor(this: *mut core::ffi::c_void, ppsecdes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDirectoryObject_Impl, - { + unsafe extern "system" fn SecurityDescriptor(this: *mut core::ffi::c_void, ppsecdes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObject_Impl::SecurityDescriptor(this) { Ok(ok__) => { @@ -6032,10 +4694,7 @@ impl ITDirectoryObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, psecdes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDirectoryObject_Impl, - { + unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, psecdes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectoryObject_Impl::SetSecurityDescriptor(this, windows_core::from_raw_borrowed(&psecdes)).into() } @@ -6076,14 +4735,8 @@ pub trait ITDirectoryObjectConference_Impl: Sized + super::super::System::Com::I impl windows_core::RuntimeName for ITDirectoryObjectConference {} #[cfg(feature = "Win32_System_Com")] impl ITDirectoryObjectConference_Vtbl { - pub const fn new() -> ITDirectoryObjectConference_Vtbl - where - Identity: ITDirectoryObjectConference_Impl, - { - unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, ppprotocol: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + pub const fn new() -> ITDirectoryObjectConference_Vtbl { + unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, ppprotocol: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObjectConference_Impl::Protocol(this) { Ok(ok__) => { @@ -6093,10 +4746,7 @@ impl ITDirectoryObjectConference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Originator(this: *mut core::ffi::c_void, pporiginator: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn Originator(this: *mut core::ffi::c_void, pporiginator: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObjectConference_Impl::Originator(this) { Ok(ok__) => { @@ -6106,17 +4756,11 @@ impl ITDirectoryObjectConference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOriginator(this: *mut core::ffi::c_void, poriginator: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn SetOriginator(this: *mut core::ffi::c_void, poriginator: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectoryObjectConference_Impl::SetOriginator(this, core::mem::transmute(&poriginator)).into() } - unsafe extern "system" fn AdvertisingScope(this: *mut core::ffi::c_void, padvertisingscope: *mut RND_ADVERTISING_SCOPE) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn AdvertisingScope(this: *mut core::ffi::c_void, padvertisingscope: *mut RND_ADVERTISING_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObjectConference_Impl::AdvertisingScope(this) { Ok(ok__) => { @@ -6126,17 +4770,11 @@ impl ITDirectoryObjectConference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAdvertisingScope(this: *mut core::ffi::c_void, advertisingscope: RND_ADVERTISING_SCOPE) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn SetAdvertisingScope(this: *mut core::ffi::c_void, advertisingscope: RND_ADVERTISING_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectoryObjectConference_Impl::SetAdvertisingScope(this, core::mem::transmute_copy(&advertisingscope)).into() } - unsafe extern "system" fn Url(this: *mut core::ffi::c_void, ppurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn Url(this: *mut core::ffi::c_void, ppurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObjectConference_Impl::Url(this) { Ok(ok__) => { @@ -6146,17 +4784,11 @@ impl ITDirectoryObjectConference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUrl(this: *mut core::ffi::c_void, purl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn SetUrl(this: *mut core::ffi::c_void, purl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectoryObjectConference_Impl::SetUrl(this, core::mem::transmute(&purl)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, ppdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, ppdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObjectConference_Impl::Description(this) { Ok(ok__) => { @@ -6166,17 +4798,11 @@ impl ITDirectoryObjectConference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectoryObjectConference_Impl::SetDescription(this, core::mem::transmute(&pdescription)).into() } - unsafe extern "system" fn IsEncrypted(this: *mut core::ffi::c_void, pfencrypted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn IsEncrypted(this: *mut core::ffi::c_void, pfencrypted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObjectConference_Impl::IsEncrypted(this) { Ok(ok__) => { @@ -6186,17 +4812,11 @@ impl ITDirectoryObjectConference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsEncrypted(this: *mut core::ffi::c_void, fencrypted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn SetIsEncrypted(this: *mut core::ffi::c_void, fencrypted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectoryObjectConference_Impl::SetIsEncrypted(this, core::mem::transmute_copy(&fencrypted)).into() } - unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObjectConference_Impl::StartTime(this) { Ok(ok__) => { @@ -6206,17 +4826,11 @@ impl ITDirectoryObjectConference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, date: f64) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, date: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectoryObjectConference_Impl::SetStartTime(this, core::mem::transmute_copy(&date)).into() } - unsafe extern "system" fn StopTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn StopTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObjectConference_Impl::StopTime(this) { Ok(ok__) => { @@ -6226,10 +4840,7 @@ impl ITDirectoryObjectConference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStopTime(this: *mut core::ffi::c_void, date: f64) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectConference_Impl, - { + unsafe extern "system" fn SetStopTime(this: *mut core::ffi::c_void, date: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectoryObjectConference_Impl::SetStopTime(this, core::mem::transmute_copy(&date)).into() } @@ -6265,14 +4876,8 @@ pub trait ITDirectoryObjectUser_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ITDirectoryObjectUser {} #[cfg(feature = "Win32_System_Com")] impl ITDirectoryObjectUser_Vtbl { - pub const fn new() -> ITDirectoryObjectUser_Vtbl - where - Identity: ITDirectoryObjectUser_Impl, - { - unsafe extern "system" fn IPPhonePrimary(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectUser_Impl, - { + pub const fn new() -> ITDirectoryObjectUser_Vtbl { + unsafe extern "system" fn IPPhonePrimary(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDirectoryObjectUser_Impl::IPPhonePrimary(this) { Ok(ok__) => { @@ -6282,10 +4887,7 @@ impl ITDirectoryObjectUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIPPhonePrimary(this: *mut core::ffi::c_void, pname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITDirectoryObjectUser_Impl, - { + unsafe extern "system" fn SetIPPhonePrimary(this: *mut core::ffi::c_void, pname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITDirectoryObjectUser_Impl::SetIPPhonePrimary(this, core::mem::transmute(&pname)).into() } @@ -6307,14 +4909,8 @@ pub trait ITDispatchMapper_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ITDispatchMapper {} #[cfg(feature = "Win32_System_Com")] impl ITDispatchMapper_Vtbl { - pub const fn new() -> ITDispatchMapper_Vtbl - where - Identity: ITDispatchMapper_Impl, - { - unsafe extern "system" fn QueryDispatchInterface(this: *mut core::ffi::c_void, piid: core::mem::MaybeUninit, pinterfacetomap: *mut core::ffi::c_void, ppreturnedinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITDispatchMapper_Impl, - { + pub const fn new() -> ITDispatchMapper_Vtbl { + unsafe extern "system" fn QueryDispatchInterface(this: *mut core::ffi::c_void, piid: core::mem::MaybeUninit, pinterfacetomap: *mut core::ffi::c_void, ppreturnedinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITDispatchMapper_Impl::QueryDispatchInterface(this, core::mem::transmute(&piid), windows_core::from_raw_borrowed(&pinterfacetomap)) { Ok(ok__) => { @@ -6343,14 +4939,8 @@ pub trait ITFileTerminalEvent_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ITFileTerminalEvent {} #[cfg(feature = "Win32_System_Com")] impl ITFileTerminalEvent_Vtbl { - pub const fn new() -> ITFileTerminalEvent_Vtbl - where - Identity: ITFileTerminalEvent_Impl, - { - unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITFileTerminalEvent_Impl, - { + pub const fn new() -> ITFileTerminalEvent_Vtbl { + unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITFileTerminalEvent_Impl::Terminal(this) { Ok(ok__) => { @@ -6360,10 +4950,7 @@ impl ITFileTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Track(this: *mut core::ffi::c_void, pptrackterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITFileTerminalEvent_Impl, - { + unsafe extern "system" fn Track(this: *mut core::ffi::c_void, pptrackterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITFileTerminalEvent_Impl::Track(this) { Ok(ok__) => { @@ -6373,10 +4960,7 @@ impl ITFileTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITFileTerminalEvent_Impl, - { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITFileTerminalEvent_Impl::Call(this) { Ok(ok__) => { @@ -6386,10 +4970,7 @@ impl ITFileTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut TERMINAL_MEDIA_STATE) -> windows_core::HRESULT - where - Identity: ITFileTerminalEvent_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut TERMINAL_MEDIA_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITFileTerminalEvent_Impl::State(this) { Ok(ok__) => { @@ -6399,10 +4980,7 @@ impl ITFileTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cause(this: *mut core::ffi::c_void, pcause: *mut FT_STATE_EVENT_CAUSE) -> windows_core::HRESULT - where - Identity: ITFileTerminalEvent_Impl, - { + unsafe extern "system" fn Cause(this: *mut core::ffi::c_void, pcause: *mut FT_STATE_EVENT_CAUSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITFileTerminalEvent_Impl::Cause(this) { Ok(ok__) => { @@ -6412,10 +4990,7 @@ impl ITFileTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, phrerrorcode: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITFileTerminalEvent_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, phrerrorcode: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITFileTerminalEvent_Impl::Error(this) { Ok(ok__) => { @@ -6452,14 +5027,8 @@ pub trait ITFileTrack_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITFileTrack {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl ITFileTrack_Vtbl { - pub const fn new() -> ITFileTrack_Vtbl - where - Identity: ITFileTrack_Impl, - { - unsafe extern "system" fn Format(this: *mut core::ffi::c_void, ppmt: *mut *mut super::super::Media::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: ITFileTrack_Impl, - { + pub const fn new() -> ITFileTrack_Vtbl { + unsafe extern "system" fn Format(this: *mut core::ffi::c_void, ppmt: *mut *mut super::super::Media::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITFileTrack_Impl::Format(this) { Ok(ok__) => { @@ -6469,17 +5038,11 @@ impl ITFileTrack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pmt: *const super::super::Media::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: ITFileTrack_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pmt: *const super::super::Media::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITFileTrack_Impl::SetFormat(this, core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn ControllingTerminal(this: *mut core::ffi::c_void, ppcontrollingterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITFileTrack_Impl, - { + unsafe extern "system" fn ControllingTerminal(this: *mut core::ffi::c_void, ppcontrollingterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITFileTrack_Impl::ControllingTerminal(this) { Ok(ok__) => { @@ -6489,10 +5052,7 @@ impl ITFileTrack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioFormatForScripting(this: *mut core::ffi::c_void, ppaudioformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITFileTrack_Impl, - { + unsafe extern "system" fn AudioFormatForScripting(this: *mut core::ffi::c_void, ppaudioformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITFileTrack_Impl::AudioFormatForScripting(this) { Ok(ok__) => { @@ -6502,17 +5062,11 @@ impl ITFileTrack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAudioFormatForScripting(this: *mut core::ffi::c_void, paudioformat: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITFileTrack_Impl, - { + unsafe extern "system" fn SetAudioFormatForScripting(this: *mut core::ffi::c_void, paudioformat: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITFileTrack_Impl::SetAudioFormatForScripting(this, windows_core::from_raw_borrowed(&paudioformat)).into() } - unsafe extern "system" fn EmptyAudioFormatForScripting(this: *mut core::ffi::c_void, ppaudioformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITFileTrack_Impl, - { + unsafe extern "system" fn EmptyAudioFormatForScripting(this: *mut core::ffi::c_void, ppaudioformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITFileTrack_Impl::EmptyAudioFormatForScripting(this) { Ok(ok__) => { @@ -6550,21 +5104,12 @@ pub trait ITForwardInformation_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for ITForwardInformation {} #[cfg(feature = "Win32_System_Com")] impl ITForwardInformation_Vtbl { - pub const fn new() -> ITForwardInformation_Vtbl - where - Identity: ITForwardInformation_Impl, - { - unsafe extern "system" fn SetNumRingsNoAnswer(this: *mut core::ffi::c_void, lnumrings: i32) -> windows_core::HRESULT - where - Identity: ITForwardInformation_Impl, - { + pub const fn new() -> ITForwardInformation_Vtbl { + unsafe extern "system" fn SetNumRingsNoAnswer(this: *mut core::ffi::c_void, lnumrings: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITForwardInformation_Impl::SetNumRingsNoAnswer(this, core::mem::transmute_copy(&lnumrings)).into() } - unsafe extern "system" fn NumRingsNoAnswer(this: *mut core::ffi::c_void, plnumrings: *mut i32) -> windows_core::HRESULT - where - Identity: ITForwardInformation_Impl, - { + unsafe extern "system" fn NumRingsNoAnswer(this: *mut core::ffi::c_void, plnumrings: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITForwardInformation_Impl::NumRingsNoAnswer(this) { Ok(ok__) => { @@ -6574,17 +5119,11 @@ impl ITForwardInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetForwardType(this: *mut core::ffi::c_void, forwardtype: i32, pdestaddress: core::mem::MaybeUninit, pcalleraddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITForwardInformation_Impl, - { + unsafe extern "system" fn SetForwardType(this: *mut core::ffi::c_void, forwardtype: i32, pdestaddress: core::mem::MaybeUninit, pcalleraddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITForwardInformation_Impl::SetForwardType(this, core::mem::transmute_copy(&forwardtype), core::mem::transmute(&pdestaddress), core::mem::transmute(&pcalleraddress)).into() } - unsafe extern "system" fn get_ForwardTypeDestination(this: *mut core::ffi::c_void, forwardtype: i32, ppdestaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITForwardInformation_Impl, - { + unsafe extern "system" fn get_ForwardTypeDestination(this: *mut core::ffi::c_void, forwardtype: i32, ppdestaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITForwardInformation_Impl::get_ForwardTypeDestination(this, core::mem::transmute_copy(&forwardtype)) { Ok(ok__) => { @@ -6594,10 +5133,7 @@ impl ITForwardInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ForwardTypeCaller(this: *mut core::ffi::c_void, forwardtype: i32, ppcalleraddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITForwardInformation_Impl, - { + unsafe extern "system" fn get_ForwardTypeCaller(this: *mut core::ffi::c_void, forwardtype: i32, ppcalleraddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITForwardInformation_Impl::get_ForwardTypeCaller(this, core::mem::transmute_copy(&forwardtype)) { Ok(ok__) => { @@ -6607,17 +5143,11 @@ impl ITForwardInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetForwardType(this: *mut core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut core::mem::MaybeUninit, ppcalleraddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITForwardInformation_Impl, - { + unsafe extern "system" fn GetForwardType(this: *mut core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut core::mem::MaybeUninit, ppcalleraddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITForwardInformation_Impl::GetForwardType(this, core::mem::transmute_copy(&forwardtype), core::mem::transmute_copy(&ppdestinationaddress), core::mem::transmute_copy(&ppcalleraddress)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITForwardInformation_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITForwardInformation_Impl::Clear(this).into() } @@ -6647,28 +5177,16 @@ pub trait ITForwardInformation2_Impl: Sized + ITForwardInformation_Impl { impl windows_core::RuntimeName for ITForwardInformation2 {} #[cfg(feature = "Win32_System_Com")] impl ITForwardInformation2_Vtbl { - pub const fn new() -> ITForwardInformation2_Vtbl - where - Identity: ITForwardInformation2_Impl, - { - unsafe extern "system" fn SetForwardType2(this: *mut core::ffi::c_void, forwardtype: i32, pdestaddress: core::mem::MaybeUninit, destaddresstype: i32, pcalleraddress: core::mem::MaybeUninit, calleraddresstype: i32) -> windows_core::HRESULT - where - Identity: ITForwardInformation2_Impl, - { + pub const fn new() -> ITForwardInformation2_Vtbl { + unsafe extern "system" fn SetForwardType2(this: *mut core::ffi::c_void, forwardtype: i32, pdestaddress: core::mem::MaybeUninit, destaddresstype: i32, pcalleraddress: core::mem::MaybeUninit, calleraddresstype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITForwardInformation2_Impl::SetForwardType2(this, 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(this: *mut core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut core::mem::MaybeUninit, pdestaddresstype: *mut i32, ppcalleraddress: *mut core::mem::MaybeUninit, pcalleraddresstype: *mut i32) -> windows_core::HRESULT - where - Identity: ITForwardInformation2_Impl, - { + unsafe extern "system" fn GetForwardType2(this: *mut core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut core::mem::MaybeUninit, pdestaddresstype: *mut i32, ppcalleraddress: *mut core::mem::MaybeUninit, pcalleraddresstype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITForwardInformation2_Impl::GetForwardType2(this, 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() } - unsafe extern "system" fn get_ForwardTypeDestinationAddressType(this: *mut core::ffi::c_void, forwardtype: i32, pdestaddresstype: *mut i32) -> windows_core::HRESULT - where - Identity: ITForwardInformation2_Impl, - { + unsafe extern "system" fn get_ForwardTypeDestinationAddressType(this: *mut core::ffi::c_void, forwardtype: i32, pdestaddresstype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITForwardInformation2_Impl::get_ForwardTypeDestinationAddressType(this, core::mem::transmute_copy(&forwardtype)) { Ok(ok__) => { @@ -6678,10 +5196,7 @@ impl ITForwardInformation2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ForwardTypeCallerAddressType(this: *mut core::ffi::c_void, forwardtype: i32, pcalleraddresstype: *mut i32) -> windows_core::HRESULT - where - Identity: ITForwardInformation2_Impl, - { + unsafe extern "system" fn get_ForwardTypeCallerAddressType(this: *mut core::ffi::c_void, forwardtype: i32, pcalleraddresstype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITForwardInformation2_Impl::get_ForwardTypeCallerAddressType(this, core::mem::transmute_copy(&forwardtype)) { Ok(ok__) => { @@ -6712,14 +5227,8 @@ pub trait ITILSConfig_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITILSConfig {} #[cfg(feature = "Win32_System_Com")] impl ITILSConfig_Vtbl { - pub const fn new() -> ITILSConfig_Vtbl - where - Identity: ITILSConfig_Impl, - { - unsafe extern "system" fn Port(this: *mut core::ffi::c_void, pport: *mut i32) -> windows_core::HRESULT - where - Identity: ITILSConfig_Impl, - { + pub const fn new() -> ITILSConfig_Vtbl { + unsafe extern "system" fn Port(this: *mut core::ffi::c_void, pport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITILSConfig_Impl::Port(this) { Ok(ok__) => { @@ -6729,10 +5238,7 @@ impl ITILSConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPort(this: *mut core::ffi::c_void, port: i32) -> windows_core::HRESULT - where - Identity: ITILSConfig_Impl, - { + unsafe extern "system" fn SetPort(this: *mut core::ffi::c_void, port: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITILSConfig_Impl::SetPort(this, core::mem::transmute_copy(&port)).into() } @@ -6746,35 +5252,23 @@ impl ITILSConfig_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITLegacyAddressMediaControl_Impl: Sized { +pub trait ITLegacyAddressMediaControl_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for ITLegacyAddressMediaControl {} impl ITLegacyAddressMediaControl_Vtbl { - pub const fn new() -> ITLegacyAddressMediaControl_Vtbl - where - Identity: ITLegacyAddressMediaControl_Impl, - { - unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pdeviceclass: core::mem::MaybeUninit, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ITLegacyAddressMediaControl_Impl, - { + pub const fn new() -> ITLegacyAddressMediaControl_Vtbl { + unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pdeviceclass: core::mem::MaybeUninit, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyAddressMediaControl_Impl::GetID(this, core::mem::transmute(&pdeviceclass), core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&ppdeviceid)).into() } - unsafe extern "system" fn GetDevConfig(this: *mut core::ffi::c_void, pdeviceclass: core::mem::MaybeUninit, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ITLegacyAddressMediaControl_Impl, - { + unsafe extern "system" fn GetDevConfig(this: *mut core::ffi::c_void, pdeviceclass: core::mem::MaybeUninit, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyAddressMediaControl_Impl::GetDevConfig(this, core::mem::transmute(&pdeviceclass), core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&ppdeviceconfig)).into() } - unsafe extern "system" fn SetDevConfig(this: *mut core::ffi::c_void, pdeviceclass: core::mem::MaybeUninit, dwsize: u32, pdeviceconfig: *const u8) -> windows_core::HRESULT - where - Identity: ITLegacyAddressMediaControl_Impl, - { + unsafe extern "system" fn SetDevConfig(this: *mut core::ffi::c_void, pdeviceclass: core::mem::MaybeUninit, dwsize: u32, pdeviceconfig: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyAddressMediaControl_Impl::SetDevConfig(this, core::mem::transmute(&pdeviceclass), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdeviceconfig)).into() } @@ -6795,21 +5289,12 @@ pub trait ITLegacyAddressMediaControl2_Impl: Sized + ITLegacyAddressMediaControl } impl windows_core::RuntimeName for ITLegacyAddressMediaControl2 {} impl ITLegacyAddressMediaControl2_Vtbl { - pub const fn new() -> ITLegacyAddressMediaControl2_Vtbl - where - Identity: ITLegacyAddressMediaControl2_Impl, - { - unsafe extern "system" fn ConfigDialog(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITLegacyAddressMediaControl2_Impl, - { + pub const fn new() -> ITLegacyAddressMediaControl2_Vtbl { + unsafe extern "system" fn ConfigDialog(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyAddressMediaControl2_Impl::ConfigDialog(this, core::mem::transmute_copy(&hwndowner), core::mem::transmute(&pdeviceclass)).into() } - unsafe extern "system" fn ConfigDialogEdit(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: core::mem::MaybeUninit, dwsizein: u32, pdeviceconfigin: *const u8, pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ITLegacyAddressMediaControl2_Impl, - { + unsafe extern "system" fn ConfigDialogEdit(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: core::mem::MaybeUninit, dwsizein: u32, pdeviceconfigin: *const u8, pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyAddressMediaControl2_Impl::ConfigDialogEdit(this, 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() } @@ -6835,42 +5320,24 @@ pub trait ITLegacyCallMediaControl_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for ITLegacyCallMediaControl {} #[cfg(feature = "Win32_System_Com")] impl ITLegacyCallMediaControl_Vtbl { - pub const fn new() -> ITLegacyCallMediaControl_Vtbl - where - Identity: ITLegacyCallMediaControl_Impl, - { - unsafe extern "system" fn DetectDigits(this: *mut core::ffi::c_void, digitmode: i32) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl_Impl, - { + pub const fn new() -> ITLegacyCallMediaControl_Vtbl { + unsafe extern "system" fn DetectDigits(this: *mut core::ffi::c_void, digitmode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl_Impl::DetectDigits(this, core::mem::transmute_copy(&digitmode)).into() } - unsafe extern "system" fn GenerateDigits(this: *mut core::ffi::c_void, pdigits: core::mem::MaybeUninit, digitmode: i32) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl_Impl, - { + unsafe extern "system" fn GenerateDigits(this: *mut core::ffi::c_void, pdigits: core::mem::MaybeUninit, digitmode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl_Impl::GenerateDigits(this, core::mem::transmute(&pdigits), core::mem::transmute_copy(&digitmode)).into() } - unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pdeviceclass: core::mem::MaybeUninit, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl_Impl, - { + unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pdeviceclass: core::mem::MaybeUninit, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl_Impl::GetID(this, core::mem::transmute(&pdeviceclass), core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&ppdeviceid)).into() } - unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, lmediatype: i32) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl_Impl, - { + unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, lmediatype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl_Impl::SetMediaType(this, core::mem::transmute_copy(&lmediatype)).into() } - unsafe extern "system" fn MonitorMedia(this: *mut core::ffi::c_void, lmediatype: i32) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl_Impl, - { + unsafe extern "system" fn MonitorMedia(this: *mut core::ffi::c_void, lmediatype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl_Impl::MonitorMedia(this, core::mem::transmute_copy(&lmediatype)).into() } @@ -6904,63 +5371,36 @@ pub trait ITLegacyCallMediaControl2_Impl: Sized + ITLegacyCallMediaControl_Impl impl windows_core::RuntimeName for ITLegacyCallMediaControl2 {} #[cfg(feature = "Win32_System_Com")] impl ITLegacyCallMediaControl2_Vtbl { - pub const fn new() -> ITLegacyCallMediaControl2_Vtbl - where - Identity: ITLegacyCallMediaControl2_Impl, - { - unsafe extern "system" fn GenerateDigits2(this: *mut core::ffi::c_void, pdigits: core::mem::MaybeUninit, digitmode: i32, lduration: i32) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl2_Impl, - { + pub const fn new() -> ITLegacyCallMediaControl2_Vtbl { + unsafe extern "system" fn GenerateDigits2(this: *mut core::ffi::c_void, pdigits: core::mem::MaybeUninit, digitmode: i32, lduration: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl2_Impl::GenerateDigits2(this, core::mem::transmute(&pdigits), core::mem::transmute_copy(&digitmode), core::mem::transmute_copy(&lduration)).into() } - unsafe extern "system" fn GatherDigits(this: *mut core::ffi::c_void, digitmode: i32, lnumdigits: i32, pterminationdigits: core::mem::MaybeUninit, lfirstdigittimeout: i32, linterdigittimeout: i32) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl2_Impl, - { + unsafe extern "system" fn GatherDigits(this: *mut core::ffi::c_void, digitmode: i32, lnumdigits: i32, pterminationdigits: core::mem::MaybeUninit, lfirstdigittimeout: i32, linterdigittimeout: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl2_Impl::GatherDigits(this, 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() } - unsafe extern "system" fn DetectTones(this: *mut core::ffi::c_void, ptonelist: *const TAPI_DETECTTONE, lnumtones: i32) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl2_Impl, - { + unsafe extern "system" fn DetectTones(this: *mut core::ffi::c_void, ptonelist: *const TAPI_DETECTTONE, lnumtones: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl2_Impl::DetectTones(this, core::mem::transmute_copy(&ptonelist), core::mem::transmute_copy(&lnumtones)).into() } - unsafe extern "system" fn DetectTonesByCollection(this: *mut core::ffi::c_void, pdetecttonecollection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl2_Impl, - { + unsafe extern "system" fn DetectTonesByCollection(this: *mut core::ffi::c_void, pdetecttonecollection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl2_Impl::DetectTonesByCollection(this, windows_core::from_raw_borrowed(&pdetecttonecollection)).into() } - unsafe extern "system" fn GenerateTone(this: *mut core::ffi::c_void, tonemode: TAPI_TONEMODE, lduration: i32) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl2_Impl, - { + unsafe extern "system" fn GenerateTone(this: *mut core::ffi::c_void, tonemode: TAPI_TONEMODE, lduration: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl2_Impl::GenerateTone(this, core::mem::transmute_copy(&tonemode), core::mem::transmute_copy(&lduration)).into() } - unsafe extern "system" fn GenerateCustomTones(this: *mut core::ffi::c_void, ptonelist: *const TAPI_CUSTOMTONE, lnumtones: i32, lduration: i32) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl2_Impl, - { + unsafe extern "system" fn GenerateCustomTones(this: *mut core::ffi::c_void, ptonelist: *const TAPI_CUSTOMTONE, lnumtones: i32, lduration: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl2_Impl::GenerateCustomTones(this, core::mem::transmute_copy(&ptonelist), core::mem::transmute_copy(&lnumtones), core::mem::transmute_copy(&lduration)).into() } - unsafe extern "system" fn GenerateCustomTonesByCollection(this: *mut core::ffi::c_void, pcustomtonecollection: *mut core::ffi::c_void, lduration: i32) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl2_Impl, - { + unsafe extern "system" fn GenerateCustomTonesByCollection(this: *mut core::ffi::c_void, pcustomtonecollection: *mut core::ffi::c_void, lduration: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITLegacyCallMediaControl2_Impl::GenerateCustomTonesByCollection(this, windows_core::from_raw_borrowed(&pcustomtonecollection), core::mem::transmute_copy(&lduration)).into() } - unsafe extern "system" fn CreateDetectToneObject(this: *mut core::ffi::c_void, ppdetecttone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl2_Impl, - { + unsafe extern "system" fn CreateDetectToneObject(this: *mut core::ffi::c_void, ppdetecttone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLegacyCallMediaControl2_Impl::CreateDetectToneObject(this) { Ok(ok__) => { @@ -6970,10 +5410,7 @@ impl ITLegacyCallMediaControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCustomToneObject(this: *mut core::ffi::c_void, ppcustomtone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl2_Impl, - { + unsafe extern "system" fn CreateCustomToneObject(this: *mut core::ffi::c_void, ppcustomtone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLegacyCallMediaControl2_Impl::CreateCustomToneObject(this) { Ok(ok__) => { @@ -6983,10 +5420,7 @@ impl ITLegacyCallMediaControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIDAsVariant(this: *mut core::ffi::c_void, bstrdeviceclass: core::mem::MaybeUninit, pvardeviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITLegacyCallMediaControl2_Impl, - { + unsafe extern "system" fn GetIDAsVariant(this: *mut core::ffi::c_void, bstrdeviceclass: core::mem::MaybeUninit, pvardeviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLegacyCallMediaControl2_Impl::GetIDAsVariant(this, core::mem::transmute(&bstrdeviceclass)) { Ok(ok__) => { @@ -7022,14 +5456,8 @@ pub trait ITLegacyWaveSupport_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ITLegacyWaveSupport {} #[cfg(feature = "Win32_System_Com")] impl ITLegacyWaveSupport_Vtbl { - pub const fn new() -> ITLegacyWaveSupport_Vtbl - where - Identity: ITLegacyWaveSupport_Impl, - { - unsafe extern "system" fn IsFullDuplex(this: *mut core::ffi::c_void, psupport: *mut FULLDUPLEX_SUPPORT) -> windows_core::HRESULT - where - Identity: ITLegacyWaveSupport_Impl, - { + pub const fn new() -> ITLegacyWaveSupport_Vtbl { + unsafe extern "system" fn IsFullDuplex(this: *mut core::ffi::c_void, psupport: *mut FULLDUPLEX_SUPPORT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLegacyWaveSupport_Impl::IsFullDuplex(this) { Ok(ok__) => { @@ -7063,14 +5491,8 @@ pub trait ITLocationInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITLocationInfo {} #[cfg(feature = "Win32_System_Com")] impl ITLocationInfo_Vtbl { - pub const fn new() -> ITLocationInfo_Vtbl - where - Identity: ITLocationInfo_Impl, - { - unsafe extern "system" fn PermanentLocationID(this: *mut core::ffi::c_void, pllocationid: *mut i32) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + pub const fn new() -> ITLocationInfo_Vtbl { + unsafe extern "system" fn PermanentLocationID(this: *mut core::ffi::c_void, pllocationid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::PermanentLocationID(this) { Ok(ok__) => { @@ -7080,10 +5502,7 @@ impl ITLocationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, plcountrycode: *mut i32) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, plcountrycode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::CountryCode(this) { Ok(ok__) => { @@ -7093,10 +5512,7 @@ impl ITLocationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CountryID(this: *mut core::ffi::c_void, plcountryid: *mut i32) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + unsafe extern "system" fn CountryID(this: *mut core::ffi::c_void, plcountryid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::CountryID(this) { Ok(ok__) => { @@ -7106,10 +5522,7 @@ impl ITLocationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Options(this: *mut core::ffi::c_void, ploptions: *mut i32) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + unsafe extern "system" fn Options(this: *mut core::ffi::c_void, ploptions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::Options(this) { Ok(ok__) => { @@ -7119,10 +5532,7 @@ impl ITLocationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PreferredCardID(this: *mut core::ffi::c_void, plcardid: *mut i32) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + unsafe extern "system" fn PreferredCardID(this: *mut core::ffi::c_void, plcardid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::PreferredCardID(this) { Ok(ok__) => { @@ -7132,10 +5542,7 @@ impl ITLocationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocationName(this: *mut core::ffi::c_void, pplocationname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + unsafe extern "system" fn LocationName(this: *mut core::ffi::c_void, pplocationname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::LocationName(this) { Ok(ok__) => { @@ -7145,10 +5552,7 @@ impl ITLocationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CityCode(this: *mut core::ffi::c_void, ppcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + unsafe extern "system" fn CityCode(this: *mut core::ffi::c_void, ppcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::CityCode(this) { Ok(ok__) => { @@ -7158,10 +5562,7 @@ impl ITLocationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalAccessCode(this: *mut core::ffi::c_void, ppcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + unsafe extern "system" fn LocalAccessCode(this: *mut core::ffi::c_void, ppcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::LocalAccessCode(this) { Ok(ok__) => { @@ -7171,10 +5572,7 @@ impl ITLocationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LongDistanceAccessCode(this: *mut core::ffi::c_void, ppcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + unsafe extern "system" fn LongDistanceAccessCode(this: *mut core::ffi::c_void, ppcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::LongDistanceAccessCode(this) { Ok(ok__) => { @@ -7184,10 +5582,7 @@ impl ITLocationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TollPrefixList(this: *mut core::ffi::c_void, pptolllist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + unsafe extern "system" fn TollPrefixList(this: *mut core::ffi::c_void, pptolllist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::TollPrefixList(this) { Ok(ok__) => { @@ -7197,10 +5592,7 @@ impl ITLocationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CancelCallWaitingCode(this: *mut core::ffi::c_void, ppcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITLocationInfo_Impl, - { + unsafe extern "system" fn CancelCallWaitingCode(this: *mut core::ffi::c_void, ppcode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITLocationInfo_Impl::CancelCallWaitingCode(this) { Ok(ok__) => { @@ -7229,7 +5621,7 @@ impl ITLocationInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITMSPAddress_Impl: Sized { +pub trait ITMSPAddress_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hevent: *const i32) -> windows_core::Result<()>; fn Shutdown(&self) -> windows_core::Result<()>; fn CreateMSPCall(&self, hcall: *const i32, dwreserved: u32, dwmediatype: u32, pouterunknown: Option<&windows_core::IUnknown>) -> windows_core::Result; @@ -7239,28 +5631,16 @@ pub trait ITMSPAddress_Impl: Sized { } impl windows_core::RuntimeName for ITMSPAddress {} impl ITMSPAddress_Vtbl { - pub const fn new() -> ITMSPAddress_Vtbl - where - Identity: ITMSPAddress_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hevent: *const i32) -> windows_core::HRESULT - where - Identity: ITMSPAddress_Impl, - { + pub const fn new() -> ITMSPAddress_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hevent: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMSPAddress_Impl::Initialize(this, core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITMSPAddress_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMSPAddress_Impl::Shutdown(this).into() } - unsafe extern "system" fn CreateMSPCall(this: *mut core::ffi::c_void, hcall: *const i32, dwreserved: u32, dwmediatype: u32, pouterunknown: *mut core::ffi::c_void, ppstreamcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITMSPAddress_Impl, - { + unsafe extern "system" fn CreateMSPCall(this: *mut core::ffi::c_void, hcall: *const i32, dwreserved: u32, dwmediatype: u32, pouterunknown: *mut core::ffi::c_void, ppstreamcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMSPAddress_Impl::CreateMSPCall(this, core::mem::transmute_copy(&hcall), core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&dwmediatype), windows_core::from_raw_borrowed(&pouterunknown)) { Ok(ok__) => { @@ -7270,24 +5650,15 @@ impl ITMSPAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShutdownMSPCall(this: *mut core::ffi::c_void, pstreamcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITMSPAddress_Impl, - { + unsafe extern "system" fn ShutdownMSPCall(this: *mut core::ffi::c_void, pstreamcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMSPAddress_Impl::ShutdownMSPCall(this, windows_core::from_raw_borrowed(&pstreamcontrol)).into() } - unsafe extern "system" fn ReceiveTSPData(this: *mut core::ffi::c_void, pmspcall: *mut core::ffi::c_void, pbuffer: *const u8, dwsize: u32) -> windows_core::HRESULT - where - Identity: ITMSPAddress_Impl, - { + unsafe extern "system" fn ReceiveTSPData(this: *mut core::ffi::c_void, pmspcall: *mut core::ffi::c_void, pbuffer: *const u8, dwsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMSPAddress_Impl::ReceiveTSPData(this, windows_core::from_raw_borrowed(&pmspcall), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&dwsize)).into() } - unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, pdwsize: *mut u32, peventbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: ITMSPAddress_Impl, - { + unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, pdwsize: *mut u32, peventbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMSPAddress_Impl::GetEvent(this, core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&peventbuffer)).into() } @@ -7316,35 +5687,20 @@ pub trait ITMediaControl_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITMediaControl {} #[cfg(feature = "Win32_System_Com")] impl ITMediaControl_Vtbl { - pub const fn new() -> ITMediaControl_Vtbl - where - Identity: ITMediaControl_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITMediaControl_Impl, - { + pub const fn new() -> ITMediaControl_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMediaControl_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITMediaControl_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMediaControl_Impl::Stop(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITMediaControl_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMediaControl_Impl::Pause(this).into() } - unsafe extern "system" fn MediaState(this: *mut core::ffi::c_void, pterminalmediastate: *mut TERMINAL_MEDIA_STATE) -> windows_core::HRESULT - where - Identity: ITMediaControl_Impl, - { + unsafe extern "system" fn MediaState(this: *mut core::ffi::c_void, pterminalmediastate: *mut TERMINAL_MEDIA_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMediaControl_Impl::MediaState(this) { Ok(ok__) => { @@ -7375,21 +5731,12 @@ pub trait ITMediaPlayback_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for ITMediaPlayback {} #[cfg(feature = "Win32_System_Com")] impl ITMediaPlayback_Vtbl { - pub const fn new() -> ITMediaPlayback_Vtbl - where - Identity: ITMediaPlayback_Impl, - { - unsafe extern "system" fn SetPlayList(this: *mut core::ffi::c_void, playlistvariant: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITMediaPlayback_Impl, - { + pub const fn new() -> ITMediaPlayback_Vtbl { + unsafe extern "system" fn SetPlayList(this: *mut core::ffi::c_void, playlistvariant: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMediaPlayback_Impl::SetPlayList(this, core::mem::transmute(&playlistvariant)).into() } - unsafe extern "system" fn PlayList(this: *mut core::ffi::c_void, pplaylistvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITMediaPlayback_Impl, - { + unsafe extern "system" fn PlayList(this: *mut core::ffi::c_void, pplaylistvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMediaPlayback_Impl::PlayList(this) { Ok(ok__) => { @@ -7418,21 +5765,12 @@ pub trait ITMediaRecord_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITMediaRecord {} #[cfg(feature = "Win32_System_Com")] impl ITMediaRecord_Vtbl { - pub const fn new() -> ITMediaRecord_Vtbl - where - Identity: ITMediaRecord_Impl, - { - unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITMediaRecord_Impl, - { + pub const fn new() -> ITMediaRecord_Vtbl { + unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMediaRecord_Impl::SetFileName(this, core::mem::transmute(&bstrfilename)).into() } - unsafe extern "system" fn FileName(this: *mut core::ffi::c_void, pbstrfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITMediaRecord_Impl, - { + unsafe extern "system" fn FileName(this: *mut core::ffi::c_void, pbstrfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMediaRecord_Impl::FileName(this) { Ok(ok__) => { @@ -7461,14 +5799,8 @@ pub trait ITMediaSupport_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITMediaSupport {} #[cfg(feature = "Win32_System_Com")] impl ITMediaSupport_Vtbl { - pub const fn new() -> ITMediaSupport_Vtbl - where - Identity: ITMediaSupport_Impl, - { - unsafe extern "system" fn MediaTypes(this: *mut core::ffi::c_void, plmediatypes: *mut i32) -> windows_core::HRESULT - where - Identity: ITMediaSupport_Impl, - { + pub const fn new() -> ITMediaSupport_Vtbl { + unsafe extern "system" fn MediaTypes(this: *mut core::ffi::c_void, plmediatypes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMediaSupport_Impl::MediaTypes(this) { Ok(ok__) => { @@ -7478,10 +5810,7 @@ impl ITMediaSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryMediaType(this: *mut core::ffi::c_void, lmediatype: i32, pfsupport: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITMediaSupport_Impl, - { + unsafe extern "system" fn QueryMediaType(this: *mut core::ffi::c_void, lmediatype: i32, pfsupport: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMediaSupport_Impl::QueryMediaType(this, core::mem::transmute_copy(&lmediatype)) { Ok(ok__) => { @@ -7514,14 +5843,8 @@ pub trait ITMultiTrackTerminal_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for ITMultiTrackTerminal {} #[cfg(feature = "Win32_System_Com")] impl ITMultiTrackTerminal_Vtbl { - pub const fn new() -> ITMultiTrackTerminal_Vtbl - where - Identity: ITMultiTrackTerminal_Impl, - { - unsafe extern "system" fn TrackTerminals(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITMultiTrackTerminal_Impl, - { + pub const fn new() -> ITMultiTrackTerminal_Vtbl { + unsafe extern "system" fn TrackTerminals(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMultiTrackTerminal_Impl::TrackTerminals(this) { Ok(ok__) => { @@ -7531,10 +5854,7 @@ impl ITMultiTrackTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateTrackTerminals(this: *mut core::ffi::c_void, ppenumterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITMultiTrackTerminal_Impl, - { + unsafe extern "system" fn EnumerateTrackTerminals(this: *mut core::ffi::c_void, ppenumterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMultiTrackTerminal_Impl::EnumerateTrackTerminals(this) { Ok(ok__) => { @@ -7544,10 +5864,7 @@ impl ITMultiTrackTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTrackTerminal(this: *mut core::ffi::c_void, mediatype: i32, terminaldirection: TERMINAL_DIRECTION, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITMultiTrackTerminal_Impl, - { + unsafe extern "system" fn CreateTrackTerminal(this: *mut core::ffi::c_void, mediatype: i32, terminaldirection: TERMINAL_DIRECTION, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMultiTrackTerminal_Impl::CreateTrackTerminal(this, core::mem::transmute_copy(&mediatype), core::mem::transmute_copy(&terminaldirection)) { Ok(ok__) => { @@ -7557,10 +5874,7 @@ impl ITMultiTrackTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MediaTypesInUse(this: *mut core::ffi::c_void, plmediatypesinuse: *mut i32) -> windows_core::HRESULT - where - Identity: ITMultiTrackTerminal_Impl, - { + unsafe extern "system" fn MediaTypesInUse(this: *mut core::ffi::c_void, plmediatypesinuse: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMultiTrackTerminal_Impl::MediaTypesInUse(this) { Ok(ok__) => { @@ -7570,10 +5884,7 @@ impl ITMultiTrackTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DirectionsInUse(this: *mut core::ffi::c_void, pldirectionsinused: *mut TERMINAL_DIRECTION) -> windows_core::HRESULT - where - Identity: ITMultiTrackTerminal_Impl, - { + unsafe extern "system" fn DirectionsInUse(this: *mut core::ffi::c_void, pldirectionsinused: *mut TERMINAL_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITMultiTrackTerminal_Impl::DirectionsInUse(this) { Ok(ok__) => { @@ -7583,10 +5894,7 @@ impl ITMultiTrackTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveTrackTerminal(this: *mut core::ffi::c_void, ptrackterminaltoremove: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITMultiTrackTerminal_Impl, - { + unsafe extern "system" fn RemoveTrackTerminal(this: *mut core::ffi::c_void, ptrackterminaltoremove: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITMultiTrackTerminal_Impl::RemoveTrackTerminal(this, windows_core::from_raw_borrowed(&ptrackterminaltoremove)).into() } @@ -7644,28 +5952,16 @@ pub trait ITPhone_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITPhone {} #[cfg(feature = "Win32_System_Com")] impl ITPhone_Vtbl { - pub const fn new() -> ITPhone_Vtbl - where - Identity: ITPhone_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, privilege: PHONE_PRIVILEGE) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + pub const fn new() -> ITPhone_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, privilege: PHONE_PRIVILEGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::Open(this, core::mem::transmute_copy(&privilege)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::Close(this).into() } - unsafe extern "system" fn Addresses(this: *mut core::ffi::c_void, paddresses: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn Addresses(this: *mut core::ffi::c_void, paddresses: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::Addresses(this) { Ok(ok__) => { @@ -7675,10 +5971,7 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateAddresses(this: *mut core::ffi::c_void, ppenumaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn EnumerateAddresses(this: *mut core::ffi::c_void, ppenumaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::EnumerateAddresses(this) { Ok(ok__) => { @@ -7688,10 +5981,7 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_PhoneCapsLong(this: *mut core::ffi::c_void, pclcap: PHONECAPS_LONG, plcapability: *mut i32) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn get_PhoneCapsLong(this: *mut core::ffi::c_void, pclcap: PHONECAPS_LONG, plcapability: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::get_PhoneCapsLong(this, core::mem::transmute_copy(&pclcap)) { Ok(ok__) => { @@ -7701,10 +5991,7 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_PhoneCapsString(this: *mut core::ffi::c_void, pcscap: PHONECAPS_STRING, ppcapability: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn get_PhoneCapsString(this: *mut core::ffi::c_void, pcscap: PHONECAPS_STRING, ppcapability: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::get_PhoneCapsString(this, core::mem::transmute_copy(&pcscap)) { Ok(ok__) => { @@ -7714,10 +6001,7 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Terminals(this: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void, pterminals: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn get_Terminals(this: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void, pterminals: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::get_Terminals(this, windows_core::from_raw_borrowed(&paddress)) { Ok(ok__) => { @@ -7727,10 +6011,7 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateTerminals(this: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void, ppenumterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn EnumerateTerminals(this: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void, ppenumterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::EnumerateTerminals(this, windows_core::from_raw_borrowed(&paddress)) { Ok(ok__) => { @@ -7740,10 +6021,7 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ButtonMode(this: *mut core::ffi::c_void, lbuttonid: i32, pbuttonmode: *mut PHONE_BUTTON_MODE) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn get_ButtonMode(this: *mut core::ffi::c_void, lbuttonid: i32, pbuttonmode: *mut PHONE_BUTTON_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::get_ButtonMode(this, core::mem::transmute_copy(&lbuttonid)) { Ok(ok__) => { @@ -7753,17 +6031,11 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_ButtonMode(this: *mut core::ffi::c_void, lbuttonid: i32, buttonmode: PHONE_BUTTON_MODE) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn put_ButtonMode(this: *mut core::ffi::c_void, lbuttonid: i32, buttonmode: PHONE_BUTTON_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::put_ButtonMode(this, core::mem::transmute_copy(&lbuttonid), core::mem::transmute_copy(&buttonmode)).into() } - unsafe extern "system" fn get_ButtonFunction(this: *mut core::ffi::c_void, lbuttonid: i32, pbuttonfunction: *mut PHONE_BUTTON_FUNCTION) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn get_ButtonFunction(this: *mut core::ffi::c_void, lbuttonid: i32, pbuttonfunction: *mut PHONE_BUTTON_FUNCTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::get_ButtonFunction(this, core::mem::transmute_copy(&lbuttonid)) { Ok(ok__) => { @@ -7773,17 +6045,11 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_ButtonFunction(this: *mut core::ffi::c_void, lbuttonid: i32, buttonfunction: PHONE_BUTTON_FUNCTION) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn put_ButtonFunction(this: *mut core::ffi::c_void, lbuttonid: i32, buttonfunction: PHONE_BUTTON_FUNCTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::put_ButtonFunction(this, core::mem::transmute_copy(&lbuttonid), core::mem::transmute_copy(&buttonfunction)).into() } - unsafe extern "system" fn get_ButtonText(this: *mut core::ffi::c_void, lbuttonid: i32, ppbuttontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn get_ButtonText(this: *mut core::ffi::c_void, lbuttonid: i32, ppbuttontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::get_ButtonText(this, core::mem::transmute_copy(&lbuttonid)) { Ok(ok__) => { @@ -7793,17 +6059,11 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_ButtonText(this: *mut core::ffi::c_void, lbuttonid: i32, bstrbuttontext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn put_ButtonText(this: *mut core::ffi::c_void, lbuttonid: i32, bstrbuttontext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::put_ButtonText(this, core::mem::transmute_copy(&lbuttonid), core::mem::transmute(&bstrbuttontext)).into() } - unsafe extern "system" fn get_ButtonState(this: *mut core::ffi::c_void, lbuttonid: i32, pbuttonstate: *mut PHONE_BUTTON_STATE) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn get_ButtonState(this: *mut core::ffi::c_void, lbuttonid: i32, pbuttonstate: *mut PHONE_BUTTON_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::get_ButtonState(this, core::mem::transmute_copy(&lbuttonid)) { Ok(ok__) => { @@ -7813,10 +6073,7 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_HookSwitchState(this: *mut core::ffi::c_void, hookswitchdevice: PHONE_HOOK_SWITCH_DEVICE, phookswitchstate: *mut PHONE_HOOK_SWITCH_STATE) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn get_HookSwitchState(this: *mut core::ffi::c_void, hookswitchdevice: PHONE_HOOK_SWITCH_DEVICE, phookswitchstate: *mut PHONE_HOOK_SWITCH_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::get_HookSwitchState(this, core::mem::transmute_copy(&hookswitchdevice)) { Ok(ok__) => { @@ -7826,24 +6083,15 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_HookSwitchState(this: *mut core::ffi::c_void, hookswitchdevice: PHONE_HOOK_SWITCH_DEVICE, hookswitchstate: PHONE_HOOK_SWITCH_STATE) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn put_HookSwitchState(this: *mut core::ffi::c_void, hookswitchdevice: PHONE_HOOK_SWITCH_DEVICE, hookswitchstate: PHONE_HOOK_SWITCH_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::put_HookSwitchState(this, core::mem::transmute_copy(&hookswitchdevice), core::mem::transmute_copy(&hookswitchstate)).into() } - unsafe extern "system" fn SetRingMode(this: *mut core::ffi::c_void, lringmode: i32) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn SetRingMode(this: *mut core::ffi::c_void, lringmode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::SetRingMode(this, core::mem::transmute_copy(&lringmode)).into() } - unsafe extern "system" fn RingMode(this: *mut core::ffi::c_void, plringmode: *mut i32) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn RingMode(this: *mut core::ffi::c_void, plringmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::RingMode(this) { Ok(ok__) => { @@ -7853,17 +6101,11 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRingVolume(this: *mut core::ffi::c_void, lringvolume: i32) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn SetRingVolume(this: *mut core::ffi::c_void, lringvolume: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::SetRingVolume(this, core::mem::transmute_copy(&lringvolume)).into() } - unsafe extern "system" fn RingVolume(this: *mut core::ffi::c_void, plringvolume: *mut i32) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn RingVolume(this: *mut core::ffi::c_void, plringvolume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::RingVolume(this) { Ok(ok__) => { @@ -7873,10 +6115,7 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Privilege(this: *mut core::ffi::c_void, pprivilege: *mut PHONE_PRIVILEGE) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn Privilege(this: *mut core::ffi::c_void, pprivilege: *mut PHONE_PRIVILEGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::Privilege(this) { Ok(ok__) => { @@ -7886,17 +6125,11 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPhoneCapsBuffer(this: *mut core::ffi::c_void, pcbcaps: PHONECAPS_BUFFER, pdwsize: *mut u32, ppphonecapsbuffer: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn GetPhoneCapsBuffer(this: *mut core::ffi::c_void, pcbcaps: PHONECAPS_BUFFER, pdwsize: *mut u32, ppphonecapsbuffer: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::GetPhoneCapsBuffer(this, core::mem::transmute_copy(&pcbcaps), core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&ppphonecapsbuffer)).into() } - unsafe extern "system" fn get_PhoneCapsBuffer(this: *mut core::ffi::c_void, pcbcaps: PHONECAPS_BUFFER, pvarbuffer: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn get_PhoneCapsBuffer(this: *mut core::ffi::c_void, pcbcaps: PHONECAPS_BUFFER, pvarbuffer: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::get_PhoneCapsBuffer(this, core::mem::transmute_copy(&pcbcaps)) { Ok(ok__) => { @@ -7906,10 +6139,7 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_LampMode(this: *mut core::ffi::c_void, llampid: i32, plampmode: *mut PHONE_LAMP_MODE) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn get_LampMode(this: *mut core::ffi::c_void, llampid: i32, plampmode: *mut PHONE_LAMP_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::get_LampMode(this, core::mem::transmute_copy(&llampid)) { Ok(ok__) => { @@ -7919,17 +6149,11 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_LampMode(this: *mut core::ffi::c_void, llampid: i32, lampmode: PHONE_LAMP_MODE) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn put_LampMode(this: *mut core::ffi::c_void, llampid: i32, lampmode: PHONE_LAMP_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::put_LampMode(this, core::mem::transmute_copy(&llampid), core::mem::transmute_copy(&lampmode)).into() } - unsafe extern "system" fn Display(this: *mut core::ffi::c_void, pbstrdisplay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn Display(this: *mut core::ffi::c_void, pbstrdisplay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::Display(this) { Ok(ok__) => { @@ -7939,17 +6163,11 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplay(this: *mut core::ffi::c_void, lrow: i32, lcolumn: i32, bstrdisplay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn SetDisplay(this: *mut core::ffi::c_void, lrow: i32, lcolumn: i32, bstrdisplay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::SetDisplay(this, core::mem::transmute_copy(&lrow), core::mem::transmute_copy(&lcolumn), core::mem::transmute(&bstrdisplay)).into() } - unsafe extern "system" fn PreferredAddresses(this: *mut core::ffi::c_void, paddresses: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn PreferredAddresses(this: *mut core::ffi::c_void, paddresses: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::PreferredAddresses(this) { Ok(ok__) => { @@ -7959,10 +6177,7 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumeratePreferredAddresses(this: *mut core::ffi::c_void, ppenumaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn EnumeratePreferredAddresses(this: *mut core::ffi::c_void, ppenumaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::EnumeratePreferredAddresses(this) { Ok(ok__) => { @@ -7972,24 +6187,15 @@ impl ITPhone_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceSpecific(this: *mut core::ffi::c_void, pparams: *const u8, dwsize: u32) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn DeviceSpecific(this: *mut core::ffi::c_void, pparams: *const u8, dwsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::DeviceSpecific(this, core::mem::transmute_copy(&pparams), core::mem::transmute_copy(&dwsize)).into() } - unsafe extern "system" fn DeviceSpecificVariant(this: *mut core::ffi::c_void, vardevspecificbytearray: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn DeviceSpecificVariant(this: *mut core::ffi::c_void, vardevspecificbytearray: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPhone_Impl::DeviceSpecificVariant(this, core::mem::transmute(&vardevspecificbytearray)).into() } - unsafe extern "system" fn NegotiateExtVersion(this: *mut core::ffi::c_void, llowversion: i32, lhighversion: i32, plextversion: *mut i32) -> windows_core::HRESULT - where - Identity: ITPhone_Impl, - { + unsafe extern "system" fn NegotiateExtVersion(this: *mut core::ffi::c_void, llowversion: i32, lhighversion: i32, plextversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhone_Impl::NegotiateExtVersion(this, core::mem::transmute_copy(&llowversion), core::mem::transmute_copy(&lhighversion)) { Ok(ok__) => { @@ -8051,14 +6257,8 @@ pub trait ITPhoneDeviceSpecificEvent_Impl: Sized + super::super::System::Com::ID impl windows_core::RuntimeName for ITPhoneDeviceSpecificEvent {} #[cfg(feature = "Win32_System_Com")] impl ITPhoneDeviceSpecificEvent_Vtbl { - pub const fn new() -> ITPhoneDeviceSpecificEvent_Vtbl - where - Identity: ITPhoneDeviceSpecificEvent_Impl, - { - unsafe extern "system" fn Phone(this: *mut core::ffi::c_void, ppphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPhoneDeviceSpecificEvent_Impl, - { + pub const fn new() -> ITPhoneDeviceSpecificEvent_Vtbl { + unsafe extern "system" fn Phone(this: *mut core::ffi::c_void, ppphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneDeviceSpecificEvent_Impl::Phone(this) { Ok(ok__) => { @@ -8068,10 +6268,7 @@ impl ITPhoneDeviceSpecificEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn lParam1(this: *mut core::ffi::c_void, pparam1: *mut i32) -> windows_core::HRESULT - where - Identity: ITPhoneDeviceSpecificEvent_Impl, - { + unsafe extern "system" fn lParam1(this: *mut core::ffi::c_void, pparam1: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneDeviceSpecificEvent_Impl::lParam1(this) { Ok(ok__) => { @@ -8081,10 +6278,7 @@ impl ITPhoneDeviceSpecificEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn lParam2(this: *mut core::ffi::c_void, pparam2: *mut i32) -> windows_core::HRESULT - where - Identity: ITPhoneDeviceSpecificEvent_Impl, - { + unsafe extern "system" fn lParam2(this: *mut core::ffi::c_void, pparam2: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneDeviceSpecificEvent_Impl::lParam2(this) { Ok(ok__) => { @@ -8094,10 +6288,7 @@ impl ITPhoneDeviceSpecificEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn lParam3(this: *mut core::ffi::c_void, pparam3: *mut i32) -> windows_core::HRESULT - where - Identity: ITPhoneDeviceSpecificEvent_Impl, - { + unsafe extern "system" fn lParam3(this: *mut core::ffi::c_void, pparam3: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneDeviceSpecificEvent_Impl::lParam3(this) { Ok(ok__) => { @@ -8135,14 +6326,8 @@ pub trait ITPhoneEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITPhoneEvent {} #[cfg(feature = "Win32_System_Com")] impl ITPhoneEvent_Vtbl { - pub const fn new() -> ITPhoneEvent_Vtbl - where - Identity: ITPhoneEvent_Impl, - { - unsafe extern "system" fn Phone(this: *mut core::ffi::c_void, ppphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPhoneEvent_Impl, - { + pub const fn new() -> ITPhoneEvent_Vtbl { + unsafe extern "system" fn Phone(this: *mut core::ffi::c_void, ppphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneEvent_Impl::Phone(this) { Ok(ok__) => { @@ -8152,10 +6337,7 @@ impl ITPhoneEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut PHONE_EVENT) -> windows_core::HRESULT - where - Identity: ITPhoneEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut PHONE_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneEvent_Impl::Event(this) { Ok(ok__) => { @@ -8165,10 +6347,7 @@ impl ITPhoneEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ButtonState(this: *mut core::ffi::c_void, pstate: *mut PHONE_BUTTON_STATE) -> windows_core::HRESULT - where - Identity: ITPhoneEvent_Impl, - { + unsafe extern "system" fn ButtonState(this: *mut core::ffi::c_void, pstate: *mut PHONE_BUTTON_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneEvent_Impl::ButtonState(this) { Ok(ok__) => { @@ -8178,10 +6357,7 @@ impl ITPhoneEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HookSwitchState(this: *mut core::ffi::c_void, pstate: *mut PHONE_HOOK_SWITCH_STATE) -> windows_core::HRESULT - where - Identity: ITPhoneEvent_Impl, - { + unsafe extern "system" fn HookSwitchState(this: *mut core::ffi::c_void, pstate: *mut PHONE_HOOK_SWITCH_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneEvent_Impl::HookSwitchState(this) { Ok(ok__) => { @@ -8191,10 +6367,7 @@ impl ITPhoneEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HookSwitchDevice(this: *mut core::ffi::c_void, pdevice: *mut PHONE_HOOK_SWITCH_DEVICE) -> windows_core::HRESULT - where - Identity: ITPhoneEvent_Impl, - { + unsafe extern "system" fn HookSwitchDevice(this: *mut core::ffi::c_void, pdevice: *mut PHONE_HOOK_SWITCH_DEVICE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneEvent_Impl::HookSwitchDevice(this) { Ok(ok__) => { @@ -8204,10 +6377,7 @@ impl ITPhoneEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RingMode(this: *mut core::ffi::c_void, plringmode: *mut i32) -> windows_core::HRESULT - where - Identity: ITPhoneEvent_Impl, - { + unsafe extern "system" fn RingMode(this: *mut core::ffi::c_void, plringmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneEvent_Impl::RingMode(this) { Ok(ok__) => { @@ -8217,10 +6387,7 @@ impl ITPhoneEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ButtonLampId(this: *mut core::ffi::c_void, plbuttonlampid: *mut i32) -> windows_core::HRESULT - where - Identity: ITPhoneEvent_Impl, - { + unsafe extern "system" fn ButtonLampId(this: *mut core::ffi::c_void, plbuttonlampid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneEvent_Impl::ButtonLampId(this) { Ok(ok__) => { @@ -8230,10 +6397,7 @@ impl ITPhoneEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberGathered(this: *mut core::ffi::c_void, ppnumber: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPhoneEvent_Impl, - { + unsafe extern "system" fn NumberGathered(this: *mut core::ffi::c_void, ppnumber: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneEvent_Impl::NumberGathered(this) { Ok(ok__) => { @@ -8243,10 +6407,7 @@ impl ITPhoneEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPhoneEvent_Impl, - { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPhoneEvent_Impl::Call(this) { Ok(ok__) => { @@ -8287,14 +6448,8 @@ pub trait ITPluggableTerminalClassInfo_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for ITPluggableTerminalClassInfo {} #[cfg(feature = "Win32_System_Com")] impl ITPluggableTerminalClassInfo_Vtbl { - pub const fn new() -> ITPluggableTerminalClassInfo_Vtbl - where - Identity: ITPluggableTerminalClassInfo_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalClassInfo_Impl, - { + pub const fn new() -> ITPluggableTerminalClassInfo_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPluggableTerminalClassInfo_Impl::Name(this) { Ok(ok__) => { @@ -8304,10 +6459,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Company(this: *mut core::ffi::c_void, pcompany: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalClassInfo_Impl, - { + unsafe extern "system" fn Company(this: *mut core::ffi::c_void, pcompany: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPluggableTerminalClassInfo_Impl::Company(this) { Ok(ok__) => { @@ -8317,10 +6469,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalClassInfo_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPluggableTerminalClassInfo_Impl::Version(this) { Ok(ok__) => { @@ -8330,10 +6479,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TerminalClass(this: *mut core::ffi::c_void, pterminalclass: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalClassInfo_Impl, - { + unsafe extern "system" fn TerminalClass(this: *mut core::ffi::c_void, pterminalclass: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPluggableTerminalClassInfo_Impl::TerminalClass(this) { Ok(ok__) => { @@ -8343,10 +6489,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CLSID(this: *mut core::ffi::c_void, pclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalClassInfo_Impl, - { + unsafe extern "system" fn CLSID(this: *mut core::ffi::c_void, pclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPluggableTerminalClassInfo_Impl::CLSID(this) { Ok(ok__) => { @@ -8356,10 +6499,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, pdirection: *mut TERMINAL_DIRECTION) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalClassInfo_Impl, - { + unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, pdirection: *mut TERMINAL_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPluggableTerminalClassInfo_Impl::Direction(this) { Ok(ok__) => { @@ -8369,10 +6509,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MediaTypes(this: *mut core::ffi::c_void, pmediatypes: *mut i32) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalClassInfo_Impl, - { + unsafe extern "system" fn MediaTypes(this: *mut core::ffi::c_void, pmediatypes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPluggableTerminalClassInfo_Impl::MediaTypes(this) { Ok(ok__) => { @@ -8398,21 +6535,15 @@ impl ITPluggableTerminalClassInfo_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITPluggableTerminalEventSink_Impl: Sized { +pub trait ITPluggableTerminalEventSink_Impl: Sized + windows_core::IUnknownImpl { fn FireEvent(&self, pmspeventinfo: *const MSP_EVENT_INFO) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ITPluggableTerminalEventSink {} #[cfg(feature = "Win32_System_Com")] impl ITPluggableTerminalEventSink_Vtbl { - pub const fn new() -> ITPluggableTerminalEventSink_Vtbl - where - Identity: ITPluggableTerminalEventSink_Impl, - { - unsafe extern "system" fn FireEvent(this: *mut core::ffi::c_void, pmspeventinfo: *const MSP_EVENT_INFO) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalEventSink_Impl, - { + pub const fn new() -> ITPluggableTerminalEventSink_Vtbl { + unsafe extern "system" fn FireEvent(this: *mut core::ffi::c_void, pmspeventinfo: *const MSP_EVENT_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPluggableTerminalEventSink_Impl::FireEvent(this, core::mem::transmute_copy(&pmspeventinfo)).into() } @@ -8422,27 +6553,18 @@ impl ITPluggableTerminalEventSink_Vtbl { iid == &::IID } } -pub trait ITPluggableTerminalEventSinkRegistration_Impl: Sized { +pub trait ITPluggableTerminalEventSinkRegistration_Impl: Sized + windows_core::IUnknownImpl { fn RegisterSink(&self, peventsink: Option<&ITPluggableTerminalEventSink>) -> windows_core::Result<()>; fn UnregisterSink(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITPluggableTerminalEventSinkRegistration {} impl ITPluggableTerminalEventSinkRegistration_Vtbl { - pub const fn new() -> ITPluggableTerminalEventSinkRegistration_Vtbl - where - Identity: ITPluggableTerminalEventSinkRegistration_Impl, - { - unsafe extern "system" fn RegisterSink(this: *mut core::ffi::c_void, peventsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalEventSinkRegistration_Impl, - { + pub const fn new() -> ITPluggableTerminalEventSinkRegistration_Vtbl { + unsafe extern "system" fn RegisterSink(this: *mut core::ffi::c_void, peventsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPluggableTerminalEventSinkRegistration_Impl::RegisterSink(this, windows_core::from_raw_borrowed(&peventsink)).into() } - unsafe extern "system" fn UnregisterSink(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalEventSinkRegistration_Impl, - { + unsafe extern "system" fn UnregisterSink(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITPluggableTerminalEventSinkRegistration_Impl::UnregisterSink(this).into() } @@ -8465,14 +6587,8 @@ pub trait ITPluggableTerminalSuperclassInfo_Impl: Sized + super::super::System:: impl windows_core::RuntimeName for ITPluggableTerminalSuperclassInfo {} #[cfg(feature = "Win32_System_Com")] impl ITPluggableTerminalSuperclassInfo_Vtbl { - pub const fn new() -> ITPluggableTerminalSuperclassInfo_Vtbl - where - Identity: ITPluggableTerminalSuperclassInfo_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalSuperclassInfo_Impl, - { + pub const fn new() -> ITPluggableTerminalSuperclassInfo_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPluggableTerminalSuperclassInfo_Impl::Name(this) { Ok(ok__) => { @@ -8482,10 +6598,7 @@ impl ITPluggableTerminalSuperclassInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CLSID(this: *mut core::ffi::c_void, pclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITPluggableTerminalSuperclassInfo_Impl, - { + unsafe extern "system" fn CLSID(this: *mut core::ffi::c_void, pclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPluggableTerminalSuperclassInfo_Impl::CLSID(this) { Ok(ok__) => { @@ -8513,14 +6626,8 @@ pub trait ITPrivateEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITPrivateEvent {} #[cfg(feature = "Win32_System_Com")] impl ITPrivateEvent_Vtbl { - pub const fn new() -> ITPrivateEvent_Vtbl - where - Identity: ITPrivateEvent_Impl, - { - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPrivateEvent_Impl, - { + pub const fn new() -> ITPrivateEvent_Vtbl { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPrivateEvent_Impl::Address(this) { Ok(ok__) => { @@ -8530,10 +6637,7 @@ impl ITPrivateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPrivateEvent_Impl, - { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPrivateEvent_Impl::Call(this) { Ok(ok__) => { @@ -8543,10 +6647,7 @@ impl ITPrivateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallHub(this: *mut core::ffi::c_void, ppcallhub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPrivateEvent_Impl, - { + unsafe extern "system" fn CallHub(this: *mut core::ffi::c_void, ppcallhub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPrivateEvent_Impl::CallHub(this) { Ok(ok__) => { @@ -8556,10 +6657,7 @@ impl ITPrivateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventCode(this: *mut core::ffi::c_void, pleventcode: *mut i32) -> windows_core::HRESULT - where - Identity: ITPrivateEvent_Impl, - { + unsafe extern "system" fn EventCode(this: *mut core::ffi::c_void, pleventcode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPrivateEvent_Impl::EventCode(this) { Ok(ok__) => { @@ -8569,10 +6667,7 @@ impl ITPrivateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventInterface(this: *mut core::ffi::c_void, peventinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITPrivateEvent_Impl, - { + unsafe extern "system" fn EventInterface(this: *mut core::ffi::c_void, peventinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITPrivateEvent_Impl::EventInterface(this) { Ok(ok__) => { @@ -8605,14 +6700,8 @@ pub trait ITQOSEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITQOSEvent {} #[cfg(feature = "Win32_System_Com")] impl ITQOSEvent_Vtbl { - pub const fn new() -> ITQOSEvent_Vtbl - where - Identity: ITQOSEvent_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITQOSEvent_Impl, - { + pub const fn new() -> ITQOSEvent_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQOSEvent_Impl::Call(this) { Ok(ok__) => { @@ -8622,10 +6711,7 @@ impl ITQOSEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pqosevent: *mut QOS_EVENT) -> windows_core::HRESULT - where - Identity: ITQOSEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pqosevent: *mut QOS_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQOSEvent_Impl::Event(this) { Ok(ok__) => { @@ -8635,10 +6721,7 @@ impl ITQOSEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, plmediatype: *mut i32) -> windows_core::HRESULT - where - Identity: ITQOSEvent_Impl, - { + unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, plmediatype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQOSEvent_Impl::MediaType(this) { Ok(ok__) => { @@ -8678,21 +6761,12 @@ pub trait ITQueue_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITQueue {} #[cfg(feature = "Win32_System_Com")] impl ITQueue_Vtbl { - pub const fn new() -> ITQueue_Vtbl - where - Identity: ITQueue_Impl, - { - unsafe extern "system" fn SetMeasurementPeriod(this: *mut core::ffi::c_void, lperiod: i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + pub const fn new() -> ITQueue_Vtbl { + unsafe extern "system" fn SetMeasurementPeriod(this: *mut core::ffi::c_void, lperiod: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITQueue_Impl::SetMeasurementPeriod(this, core::mem::transmute_copy(&lperiod)).into() } - unsafe extern "system" fn MeasurementPeriod(this: *mut core::ffi::c_void, plperiod: *mut i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn MeasurementPeriod(this: *mut core::ffi::c_void, plperiod: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::MeasurementPeriod(this) { Ok(ok__) => { @@ -8702,10 +6776,7 @@ impl ITQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalCallsQueued(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn TotalCallsQueued(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::TotalCallsQueued(this) { Ok(ok__) => { @@ -8715,10 +6786,7 @@ impl ITQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentCallsQueued(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn CurrentCallsQueued(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::CurrentCallsQueued(this) { Ok(ok__) => { @@ -8728,10 +6796,7 @@ impl ITQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalCallsAbandoned(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn TotalCallsAbandoned(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::TotalCallsAbandoned(this) { Ok(ok__) => { @@ -8741,10 +6806,7 @@ impl ITQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalCallsFlowedIn(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn TotalCallsFlowedIn(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::TotalCallsFlowedIn(this) { Ok(ok__) => { @@ -8754,10 +6816,7 @@ impl ITQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalCallsFlowedOut(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn TotalCallsFlowedOut(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::TotalCallsFlowedOut(this) { Ok(ok__) => { @@ -8767,10 +6826,7 @@ impl ITQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LongestEverWaitTime(this: *mut core::ffi::c_void, plwaittime: *mut i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn LongestEverWaitTime(this: *mut core::ffi::c_void, plwaittime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::LongestEverWaitTime(this) { Ok(ok__) => { @@ -8780,10 +6836,7 @@ impl ITQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentLongestWaitTime(this: *mut core::ffi::c_void, plwaittime: *mut i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn CurrentLongestWaitTime(this: *mut core::ffi::c_void, plwaittime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::CurrentLongestWaitTime(this) { Ok(ok__) => { @@ -8793,10 +6846,7 @@ impl ITQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AverageWaitTime(this: *mut core::ffi::c_void, plwaittime: *mut i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn AverageWaitTime(this: *mut core::ffi::c_void, plwaittime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::AverageWaitTime(this) { Ok(ok__) => { @@ -8806,10 +6856,7 @@ impl ITQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FinalDisposition(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn FinalDisposition(this: *mut core::ffi::c_void, plcalls: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::FinalDisposition(this) { Ok(ok__) => { @@ -8819,10 +6866,7 @@ impl ITQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITQueue_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueue_Impl::Name(this) { Ok(ok__) => { @@ -8861,14 +6905,8 @@ pub trait ITQueueEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITQueueEvent {} #[cfg(feature = "Win32_System_Com")] impl ITQueueEvent_Vtbl { - pub const fn new() -> ITQueueEvent_Vtbl - where - Identity: ITQueueEvent_Impl, - { - unsafe extern "system" fn Queue(this: *mut core::ffi::c_void, ppqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITQueueEvent_Impl, - { + pub const fn new() -> ITQueueEvent_Vtbl { + unsafe extern "system" fn Queue(this: *mut core::ffi::c_void, ppqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueueEvent_Impl::Queue(this) { Ok(ok__) => { @@ -8878,10 +6916,7 @@ impl ITQueueEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut ACDQUEUE_EVENT) -> windows_core::HRESULT - where - Identity: ITQueueEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut ACDQUEUE_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITQueueEvent_Impl::Event(this) { Ok(ok__) => { @@ -8908,14 +6943,8 @@ pub trait ITRendezvous_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITRendezvous {} #[cfg(feature = "Win32_System_Com")] impl ITRendezvous_Vtbl { - pub const fn new() -> ITRendezvous_Vtbl - where - Identity: ITRendezvous_Impl, - { - unsafe extern "system" fn DefaultDirectories(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITRendezvous_Impl, - { + pub const fn new() -> ITRendezvous_Vtbl { + unsafe extern "system" fn DefaultDirectories(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITRendezvous_Impl::DefaultDirectories(this) { Ok(ok__) => { @@ -8925,10 +6954,7 @@ impl ITRendezvous_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateDefaultDirectories(this: *mut core::ffi::c_void, ppenumdirectory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITRendezvous_Impl, - { + unsafe extern "system" fn EnumerateDefaultDirectories(this: *mut core::ffi::c_void, ppenumdirectory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITRendezvous_Impl::EnumerateDefaultDirectories(this) { Ok(ok__) => { @@ -8938,10 +6964,7 @@ impl ITRendezvous_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDirectory(this: *mut core::ffi::c_void, directorytype: DIRECTORY_TYPE, pname: core::mem::MaybeUninit, ppdir: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITRendezvous_Impl, - { + unsafe extern "system" fn CreateDirectory(this: *mut core::ffi::c_void, directorytype: DIRECTORY_TYPE, pname: core::mem::MaybeUninit, ppdir: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITRendezvous_Impl::CreateDirectory(this, core::mem::transmute_copy(&directorytype), core::mem::transmute(&pname)) { Ok(ok__) => { @@ -8951,10 +6974,7 @@ impl ITRendezvous_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDirectoryObject(this: *mut core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: core::mem::MaybeUninit, ppdirectoryobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITRendezvous_Impl, - { + unsafe extern "system" fn CreateDirectoryObject(this: *mut core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: core::mem::MaybeUninit, ppdirectoryobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITRendezvous_Impl::CreateDirectoryObject(this, core::mem::transmute_copy(&directoryobjecttype), core::mem::transmute(&pname)) { Ok(ok__) => { @@ -8984,14 +7004,8 @@ pub trait ITRequest_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITRequest {} #[cfg(feature = "Win32_System_Com")] impl ITRequest_Vtbl { - pub const fn new() -> ITRequest_Vtbl - where - Identity: ITRequest_Impl, - { - unsafe extern "system" fn MakeCall(this: *mut core::ffi::c_void, pdestaddress: core::mem::MaybeUninit, pappname: core::mem::MaybeUninit, pcalledparty: core::mem::MaybeUninit, pcomment: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITRequest_Impl, - { + pub const fn new() -> ITRequest_Vtbl { + unsafe extern "system" fn MakeCall(this: *mut core::ffi::c_void, pdestaddress: core::mem::MaybeUninit, pappname: core::mem::MaybeUninit, pcalledparty: core::mem::MaybeUninit, pcomment: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITRequest_Impl::MakeCall(this, core::mem::transmute(&pdestaddress), core::mem::transmute(&pappname), core::mem::transmute(&pcalledparty), core::mem::transmute(&pcomment)).into() } @@ -9014,14 +7028,8 @@ pub trait ITRequestEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ITRequestEvent {} #[cfg(feature = "Win32_System_Com")] impl ITRequestEvent_Vtbl { - pub const fn new() -> ITRequestEvent_Vtbl - where - Identity: ITRequestEvent_Impl, - { - unsafe extern "system" fn RegistrationInstance(this: *mut core::ffi::c_void, plregistrationinstance: *mut i32) -> windows_core::HRESULT - where - Identity: ITRequestEvent_Impl, - { + pub const fn new() -> ITRequestEvent_Vtbl { + unsafe extern "system" fn RegistrationInstance(this: *mut core::ffi::c_void, plregistrationinstance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITRequestEvent_Impl::RegistrationInstance(this) { Ok(ok__) => { @@ -9031,10 +7039,7 @@ impl ITRequestEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestMode(this: *mut core::ffi::c_void, plrequestmode: *mut i32) -> windows_core::HRESULT - where - Identity: ITRequestEvent_Impl, - { + unsafe extern "system" fn RequestMode(this: *mut core::ffi::c_void, plrequestmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITRequestEvent_Impl::RequestMode(this) { Ok(ok__) => { @@ -9044,10 +7049,7 @@ impl ITRequestEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestAddress(this: *mut core::ffi::c_void, ppdestaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITRequestEvent_Impl, - { + unsafe extern "system" fn DestAddress(this: *mut core::ffi::c_void, ppdestaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITRequestEvent_Impl::DestAddress(this) { Ok(ok__) => { @@ -9057,10 +7059,7 @@ impl ITRequestEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppName(this: *mut core::ffi::c_void, ppappname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITRequestEvent_Impl, - { + unsafe extern "system" fn AppName(this: *mut core::ffi::c_void, ppappname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITRequestEvent_Impl::AppName(this) { Ok(ok__) => { @@ -9070,10 +7069,7 @@ impl ITRequestEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CalledParty(this: *mut core::ffi::c_void, ppcalledparty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITRequestEvent_Impl, - { + unsafe extern "system" fn CalledParty(this: *mut core::ffi::c_void, ppcalledparty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITRequestEvent_Impl::CalledParty(this) { Ok(ok__) => { @@ -9083,10 +7079,7 @@ impl ITRequestEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Comment(this: *mut core::ffi::c_void, ppcomment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITRequestEvent_Impl, - { + unsafe extern "system" fn Comment(this: *mut core::ffi::c_void, ppcomment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITRequestEvent_Impl::Comment(this) { Ok(ok__) => { @@ -9129,14 +7122,8 @@ pub trait ITScriptableAudioFormat_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for ITScriptableAudioFormat {} #[cfg(feature = "Win32_System_Com")] impl ITScriptableAudioFormat_Vtbl { - pub const fn new() -> ITScriptableAudioFormat_Vtbl - where - Identity: ITScriptableAudioFormat_Impl, - { - unsafe extern "system" fn Channels(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + pub const fn new() -> ITScriptableAudioFormat_Vtbl { + unsafe extern "system" fn Channels(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITScriptableAudioFormat_Impl::Channels(this) { Ok(ok__) => { @@ -9146,17 +7133,11 @@ impl ITScriptableAudioFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannels(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn SetChannels(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITScriptableAudioFormat_Impl::SetChannels(this, core::mem::transmute_copy(&nnewval)).into() } - unsafe extern "system" fn SamplesPerSec(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn SamplesPerSec(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITScriptableAudioFormat_Impl::SamplesPerSec(this) { Ok(ok__) => { @@ -9166,17 +7147,11 @@ impl ITScriptableAudioFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSamplesPerSec(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn SetSamplesPerSec(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITScriptableAudioFormat_Impl::SetSamplesPerSec(this, core::mem::transmute_copy(&nnewval)).into() } - unsafe extern "system" fn AvgBytesPerSec(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn AvgBytesPerSec(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITScriptableAudioFormat_Impl::AvgBytesPerSec(this) { Ok(ok__) => { @@ -9186,17 +7161,11 @@ impl ITScriptableAudioFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAvgBytesPerSec(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn SetAvgBytesPerSec(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITScriptableAudioFormat_Impl::SetAvgBytesPerSec(this, core::mem::transmute_copy(&nnewval)).into() } - unsafe extern "system" fn BlockAlign(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn BlockAlign(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITScriptableAudioFormat_Impl::BlockAlign(this) { Ok(ok__) => { @@ -9206,17 +7175,11 @@ impl ITScriptableAudioFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBlockAlign(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn SetBlockAlign(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITScriptableAudioFormat_Impl::SetBlockAlign(this, core::mem::transmute_copy(&nnewval)).into() } - unsafe extern "system" fn BitsPerSample(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn BitsPerSample(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITScriptableAudioFormat_Impl::BitsPerSample(this) { Ok(ok__) => { @@ -9226,17 +7189,11 @@ impl ITScriptableAudioFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBitsPerSample(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn SetBitsPerSample(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITScriptableAudioFormat_Impl::SetBitsPerSample(this, core::mem::transmute_copy(&nnewval)).into() } - unsafe extern "system" fn FormatTag(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn FormatTag(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITScriptableAudioFormat_Impl::FormatTag(this) { Ok(ok__) => { @@ -9246,10 +7203,7 @@ impl ITScriptableAudioFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatTag(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT - where - Identity: ITScriptableAudioFormat_Impl, - { + unsafe extern "system" fn SetFormatTag(this: *mut core::ffi::c_void, nnewval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITScriptableAudioFormat_Impl::SetFormatTag(this, core::mem::transmute_copy(&nnewval)).into() } @@ -9281,14 +7235,8 @@ pub trait ITStaticAudioTerminal_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ITStaticAudioTerminal {} #[cfg(feature = "Win32_System_Com")] impl ITStaticAudioTerminal_Vtbl { - pub const fn new() -> ITStaticAudioTerminal_Vtbl - where - Identity: ITStaticAudioTerminal_Impl, - { - unsafe extern "system" fn WaveId(this: *mut core::ffi::c_void, plwaveid: *mut i32) -> windows_core::HRESULT - where - Identity: ITStaticAudioTerminal_Impl, - { + pub const fn new() -> ITStaticAudioTerminal_Vtbl { + unsafe extern "system" fn WaveId(this: *mut core::ffi::c_void, plwaveid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITStaticAudioTerminal_Impl::WaveId(this) { Ok(ok__) => { @@ -9321,14 +7269,8 @@ pub trait ITStream_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITStream {} #[cfg(feature = "Win32_System_Com")] impl ITStream_Vtbl { - pub const fn new() -> ITStream_Vtbl - where - Identity: ITStream_Impl, - { - unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, plmediatype: *mut i32) -> windows_core::HRESULT - where - Identity: ITStream_Impl, - { + pub const fn new() -> ITStream_Vtbl { + unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, plmediatype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITStream_Impl::MediaType(this) { Ok(ok__) => { @@ -9338,10 +7280,7 @@ impl ITStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, ptd: *mut TERMINAL_DIRECTION) -> windows_core::HRESULT - where - Identity: ITStream_Impl, - { + unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, ptd: *mut TERMINAL_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITStream_Impl::Direction(this) { Ok(ok__) => { @@ -9351,10 +7290,7 @@ impl ITStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITStream_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITStream_Impl::Name(this) { Ok(ok__) => { @@ -9364,45 +7300,27 @@ impl ITStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITStream_Impl, - { + unsafe extern "system" fn StartStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITStream_Impl::StartStream(this).into() } - unsafe extern "system" fn PauseStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITStream_Impl, - { + unsafe extern "system" fn PauseStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITStream_Impl::PauseStream(this).into() } - unsafe extern "system" fn StopStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITStream_Impl, - { + unsafe extern "system" fn StopStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITStream_Impl::StopStream(this).into() } - unsafe extern "system" fn SelectTerminal(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITStream_Impl, - { + unsafe extern "system" fn SelectTerminal(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITStream_Impl::SelectTerminal(this, windows_core::from_raw_borrowed(&pterminal)).into() } - unsafe extern "system" fn UnselectTerminal(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITStream_Impl, - { + unsafe extern "system" fn UnselectTerminal(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITStream_Impl::UnselectTerminal(this, windows_core::from_raw_borrowed(&pterminal)).into() } - unsafe extern "system" fn EnumerateTerminals(this: *mut core::ffi::c_void, ppenumterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITStream_Impl, - { + unsafe extern "system" fn EnumerateTerminals(this: *mut core::ffi::c_void, ppenumterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITStream_Impl::EnumerateTerminals(this) { Ok(ok__) => { @@ -9412,10 +7330,7 @@ impl ITStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Terminals(this: *mut core::ffi::c_void, pterminals: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITStream_Impl, - { + unsafe extern "system" fn Terminals(this: *mut core::ffi::c_void, pterminals: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITStream_Impl::Terminals(this) { Ok(ok__) => { @@ -9454,14 +7369,8 @@ pub trait ITStreamControl_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for ITStreamControl {} #[cfg(feature = "Win32_System_Com")] impl ITStreamControl_Vtbl { - pub const fn new() -> ITStreamControl_Vtbl - where - Identity: ITStreamControl_Impl, - { - unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, lmediatype: i32, td: TERMINAL_DIRECTION, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITStreamControl_Impl, - { + pub const fn new() -> ITStreamControl_Vtbl { + unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, lmediatype: i32, td: TERMINAL_DIRECTION, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITStreamControl_Impl::CreateStream(this, core::mem::transmute_copy(&lmediatype), core::mem::transmute_copy(&td)) { Ok(ok__) => { @@ -9471,17 +7380,11 @@ impl ITStreamControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITStreamControl_Impl, - { + unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITStreamControl_Impl::RemoveStream(this, windows_core::from_raw_borrowed(&pstream)).into() } - unsafe extern "system" fn EnumerateStreams(this: *mut core::ffi::c_void, ppenumstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITStreamControl_Impl, - { + unsafe extern "system" fn EnumerateStreams(this: *mut core::ffi::c_void, ppenumstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITStreamControl_Impl::EnumerateStreams(this) { Ok(ok__) => { @@ -9491,10 +7394,7 @@ impl ITStreamControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Streams(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITStreamControl_Impl, - { + unsafe extern "system" fn Streams(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITStreamControl_Impl::Streams(this) { Ok(ok__) => { @@ -9531,49 +7431,28 @@ pub trait ITSubStream_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITSubStream {} #[cfg(feature = "Win32_System_Com")] impl ITSubStream_Vtbl { - pub const fn new() -> ITSubStream_Vtbl - where - Identity: ITSubStream_Impl, - { - unsafe extern "system" fn StartSubStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSubStream_Impl, - { + pub const fn new() -> ITSubStream_Vtbl { + unsafe extern "system" fn StartSubStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSubStream_Impl::StartSubStream(this).into() } - unsafe extern "system" fn PauseSubStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSubStream_Impl, - { + unsafe extern "system" fn PauseSubStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSubStream_Impl::PauseSubStream(this).into() } - unsafe extern "system" fn StopSubStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSubStream_Impl, - { + unsafe extern "system" fn StopSubStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSubStream_Impl::StopSubStream(this).into() } - unsafe extern "system" fn SelectTerminal(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSubStream_Impl, - { + unsafe extern "system" fn SelectTerminal(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSubStream_Impl::SelectTerminal(this, windows_core::from_raw_borrowed(&pterminal)).into() } - unsafe extern "system" fn UnselectTerminal(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSubStream_Impl, - { + unsafe extern "system" fn UnselectTerminal(this: *mut core::ffi::c_void, pterminal: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSubStream_Impl::UnselectTerminal(this, windows_core::from_raw_borrowed(&pterminal)).into() } - unsafe extern "system" fn EnumerateTerminals(this: *mut core::ffi::c_void, ppenumterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSubStream_Impl, - { + unsafe extern "system" fn EnumerateTerminals(this: *mut core::ffi::c_void, ppenumterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSubStream_Impl::EnumerateTerminals(this) { Ok(ok__) => { @@ -9583,10 +7462,7 @@ impl ITSubStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Terminals(this: *mut core::ffi::c_void, pterminals: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITSubStream_Impl, - { + unsafe extern "system" fn Terminals(this: *mut core::ffi::c_void, pterminals: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSubStream_Impl::Terminals(this) { Ok(ok__) => { @@ -9596,10 +7472,7 @@ impl ITSubStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, ppitstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSubStream_Impl, - { + unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, ppitstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSubStream_Impl::Stream(this) { Ok(ok__) => { @@ -9636,14 +7509,8 @@ pub trait ITSubStreamControl_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ITSubStreamControl {} #[cfg(feature = "Win32_System_Com")] impl ITSubStreamControl_Vtbl { - pub const fn new() -> ITSubStreamControl_Vtbl - where - Identity: ITSubStreamControl_Impl, - { - unsafe extern "system" fn CreateSubStream(this: *mut core::ffi::c_void, ppsubstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSubStreamControl_Impl, - { + pub const fn new() -> ITSubStreamControl_Vtbl { + unsafe extern "system" fn CreateSubStream(this: *mut core::ffi::c_void, ppsubstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSubStreamControl_Impl::CreateSubStream(this) { Ok(ok__) => { @@ -9653,17 +7520,11 @@ impl ITSubStreamControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveSubStream(this: *mut core::ffi::c_void, psubstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSubStreamControl_Impl, - { + unsafe extern "system" fn RemoveSubStream(this: *mut core::ffi::c_void, psubstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSubStreamControl_Impl::RemoveSubStream(this, windows_core::from_raw_borrowed(&psubstream)).into() } - unsafe extern "system" fn EnumerateSubStreams(this: *mut core::ffi::c_void, ppenumsubstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSubStreamControl_Impl, - { + unsafe extern "system" fn EnumerateSubStreams(this: *mut core::ffi::c_void, ppenumsubstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSubStreamControl_Impl::EnumerateSubStreams(this) { Ok(ok__) => { @@ -9673,10 +7534,7 @@ impl ITSubStreamControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubStreams(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITSubStreamControl_Impl, - { + unsafe extern "system" fn SubStreams(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSubStreamControl_Impl::SubStreams(this) { Ok(ok__) => { @@ -9721,28 +7579,16 @@ pub trait ITTAPI_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITTAPI {} #[cfg(feature = "Win32_System_Com")] impl ITTAPI_Vtbl { - pub const fn new() -> ITTAPI_Vtbl - where - Identity: ITTAPI_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + pub const fn new() -> ITTAPI_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITTAPI_Impl::Initialize(this).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITTAPI_Impl::Shutdown(this).into() } - unsafe extern "system" fn Addresses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn Addresses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI_Impl::Addresses(this) { Ok(ok__) => { @@ -9752,10 +7598,7 @@ impl ITTAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateAddresses(this: *mut core::ffi::c_void, ppenumaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn EnumerateAddresses(this: *mut core::ffi::c_void, ppenumaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI_Impl::EnumerateAddresses(this) { Ok(ok__) => { @@ -9765,10 +7608,7 @@ impl ITTAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterCallNotifications(this: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void, fmonitor: super::super::Foundation::VARIANT_BOOL, fowner: super::super::Foundation::VARIANT_BOOL, lmediatypes: i32, lcallbackinstance: i32, plregister: *mut i32) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn RegisterCallNotifications(this: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void, fmonitor: super::super::Foundation::VARIANT_BOOL, fowner: super::super::Foundation::VARIANT_BOOL, lmediatypes: i32, lcallbackinstance: i32, plregister: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI_Impl::RegisterCallNotifications(this, windows_core::from_raw_borrowed(&paddress), core::mem::transmute_copy(&fmonitor), core::mem::transmute_copy(&fowner), core::mem::transmute_copy(&lmediatypes), core::mem::transmute_copy(&lcallbackinstance)) { Ok(ok__) => { @@ -9778,17 +7618,11 @@ impl ITTAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterNotifications(this: *mut core::ffi::c_void, lregister: i32) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn UnregisterNotifications(this: *mut core::ffi::c_void, lregister: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITTAPI_Impl::UnregisterNotifications(this, core::mem::transmute_copy(&lregister)).into() } - unsafe extern "system" fn CallHubs(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn CallHubs(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI_Impl::CallHubs(this) { Ok(ok__) => { @@ -9798,10 +7632,7 @@ impl ITTAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateCallHubs(this: *mut core::ffi::c_void, ppenumcallhub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn EnumerateCallHubs(this: *mut core::ffi::c_void, ppenumcallhub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI_Impl::EnumerateCallHubs(this) { Ok(ok__) => { @@ -9811,17 +7642,11 @@ impl ITTAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCallHubTracking(this: *mut core::ffi::c_void, paddresses: core::mem::MaybeUninit, btracking: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn SetCallHubTracking(this: *mut core::ffi::c_void, paddresses: core::mem::MaybeUninit, btracking: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITTAPI_Impl::SetCallHubTracking(this, core::mem::transmute(&paddresses), core::mem::transmute_copy(&btracking)).into() } - unsafe extern "system" fn EnumeratePrivateTAPIObjects(this: *mut core::ffi::c_void, ppenumunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn EnumeratePrivateTAPIObjects(this: *mut core::ffi::c_void, ppenumunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI_Impl::EnumeratePrivateTAPIObjects(this) { Ok(ok__) => { @@ -9831,10 +7656,7 @@ impl ITTAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateTAPIObjects(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn PrivateTAPIObjects(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI_Impl::PrivateTAPIObjects(this) { Ok(ok__) => { @@ -9844,38 +7666,23 @@ impl ITTAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterRequestRecipient(this: *mut core::ffi::c_void, lregistrationinstance: i32, lrequestmode: i32, fenable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn RegisterRequestRecipient(this: *mut core::ffi::c_void, lregistrationinstance: i32, lrequestmode: i32, fenable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITTAPI_Impl::RegisterRequestRecipient(this, core::mem::transmute_copy(&lregistrationinstance), core::mem::transmute_copy(&lrequestmode), core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn SetAssistedTelephonyPriority(this: *mut core::ffi::c_void, pappfilename: core::mem::MaybeUninit, fpriority: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn SetAssistedTelephonyPriority(this: *mut core::ffi::c_void, pappfilename: core::mem::MaybeUninit, fpriority: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITTAPI_Impl::SetAssistedTelephonyPriority(this, core::mem::transmute(&pappfilename), core::mem::transmute_copy(&fpriority)).into() } - unsafe extern "system" fn SetApplicationPriority(this: *mut core::ffi::c_void, pappfilename: core::mem::MaybeUninit, lmediatype: i32, fpriority: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn SetApplicationPriority(this: *mut core::ffi::c_void, pappfilename: core::mem::MaybeUninit, lmediatype: i32, fpriority: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITTAPI_Impl::SetApplicationPriority(this, core::mem::transmute(&pappfilename), core::mem::transmute_copy(&lmediatype), core::mem::transmute_copy(&fpriority)).into() } - unsafe extern "system" fn SetEventFilter(this: *mut core::ffi::c_void, lfiltermask: i32) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn SetEventFilter(this: *mut core::ffi::c_void, lfiltermask: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITTAPI_Impl::SetEventFilter(this, core::mem::transmute_copy(&lfiltermask)).into() } - unsafe extern "system" fn EventFilter(this: *mut core::ffi::c_void, plfiltermask: *mut i32) -> windows_core::HRESULT - where - Identity: ITTAPI_Impl, - { + unsafe extern "system" fn EventFilter(this: *mut core::ffi::c_void, plfiltermask: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI_Impl::EventFilter(this) { Ok(ok__) => { @@ -9919,14 +7726,8 @@ pub trait ITTAPI2_Impl: Sized + ITTAPI_Impl { impl windows_core::RuntimeName for ITTAPI2 {} #[cfg(feature = "Win32_System_Com")] impl ITTAPI2_Vtbl { - pub const fn new() -> ITTAPI2_Vtbl - where - Identity: ITTAPI2_Impl, - { - unsafe extern "system" fn Phones(this: *mut core::ffi::c_void, pphones: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTAPI2_Impl, - { + pub const fn new() -> ITTAPI2_Vtbl { + unsafe extern "system" fn Phones(this: *mut core::ffi::c_void, pphones: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI2_Impl::Phones(this) { Ok(ok__) => { @@ -9936,10 +7737,7 @@ impl ITTAPI2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumeratePhones(this: *mut core::ffi::c_void, ppenumphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPI2_Impl, - { + unsafe extern "system" fn EnumeratePhones(this: *mut core::ffi::c_void, ppenumphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI2_Impl::EnumeratePhones(this) { Ok(ok__) => { @@ -9949,10 +7747,7 @@ impl ITTAPI2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEmptyCollectionObject(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPI2_Impl, - { + unsafe extern "system" fn CreateEmptyCollectionObject(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPI2_Impl::CreateEmptyCollectionObject(this) { Ok(ok__) => { @@ -9982,14 +7777,8 @@ pub trait ITTAPICallCenter_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ITTAPICallCenter {} #[cfg(feature = "Win32_System_Com")] impl ITTAPICallCenter_Vtbl { - pub const fn new() -> ITTAPICallCenter_Vtbl - where - Identity: ITTAPICallCenter_Impl, - { - unsafe extern "system" fn EnumerateAgentHandlers(this: *mut core::ffi::c_void, ppenumhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPICallCenter_Impl, - { + pub const fn new() -> ITTAPICallCenter_Vtbl { + unsafe extern "system" fn EnumerateAgentHandlers(this: *mut core::ffi::c_void, ppenumhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPICallCenter_Impl::EnumerateAgentHandlers(this) { Ok(ok__) => { @@ -9999,10 +7788,7 @@ impl ITTAPICallCenter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AgentHandlers(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTAPICallCenter_Impl, - { + unsafe extern "system" fn AgentHandlers(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPICallCenter_Impl::AgentHandlers(this) { Ok(ok__) => { @@ -10028,10 +7814,7 @@ pub trait ITTAPIDispatchEventNotification_Impl: Sized + super::super::System::Co impl windows_core::RuntimeName for ITTAPIDispatchEventNotification {} #[cfg(feature = "Win32_System_Com")] impl ITTAPIDispatchEventNotification_Vtbl { - pub const fn new() -> ITTAPIDispatchEventNotification_Vtbl - where - Identity: ITTAPIDispatchEventNotification_Impl, - { + pub const fn new() -> ITTAPIDispatchEventNotification_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -10039,21 +7822,15 @@ impl ITTAPIDispatchEventNotification_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITTAPIEventNotification_Impl: Sized { +pub trait ITTAPIEventNotification_Impl: Sized + windows_core::IUnknownImpl { fn Event(&self, tapievent: TAPI_EVENT, pevent: Option<&super::super::System::Com::IDispatch>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ITTAPIEventNotification {} #[cfg(feature = "Win32_System_Com")] impl ITTAPIEventNotification_Vtbl { - pub const fn new() -> ITTAPIEventNotification_Vtbl - where - Identity: ITTAPIEventNotification_Impl, - { - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, tapievent: TAPI_EVENT, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPIEventNotification_Impl, - { + pub const fn new() -> ITTAPIEventNotification_Vtbl { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, tapievent: TAPI_EVENT, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITTAPIEventNotification_Impl::Event(this, core::mem::transmute_copy(&tapievent), windows_core::from_raw_borrowed(&pevent)).into() } @@ -10074,14 +7851,8 @@ pub trait ITTAPIObjectEvent_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ITTAPIObjectEvent {} #[cfg(feature = "Win32_System_Com")] impl ITTAPIObjectEvent_Vtbl { - pub const fn new() -> ITTAPIObjectEvent_Vtbl - where - Identity: ITTAPIObjectEvent_Impl, - { - unsafe extern "system" fn TAPIObject(this: *mut core::ffi::c_void, pptapiobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPIObjectEvent_Impl, - { + pub const fn new() -> ITTAPIObjectEvent_Vtbl { + unsafe extern "system" fn TAPIObject(this: *mut core::ffi::c_void, pptapiobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPIObjectEvent_Impl::TAPIObject(this) { Ok(ok__) => { @@ -10091,10 +7862,7 @@ impl ITTAPIObjectEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut TAPIOBJECT_EVENT) -> windows_core::HRESULT - where - Identity: ITTAPIObjectEvent_Impl, - { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, pevent: *mut TAPIOBJECT_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPIObjectEvent_Impl::Event(this) { Ok(ok__) => { @@ -10104,10 +7872,7 @@ impl ITTAPIObjectEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPIObjectEvent_Impl, - { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPIObjectEvent_Impl::Address(this) { Ok(ok__) => { @@ -10117,10 +7882,7 @@ impl ITTAPIObjectEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT - where - Identity: ITTAPIObjectEvent_Impl, - { + unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPIObjectEvent_Impl::CallbackInstance(this) { Ok(ok__) => { @@ -10150,14 +7912,8 @@ pub trait ITTAPIObjectEvent2_Impl: Sized + ITTAPIObjectEvent_Impl { impl windows_core::RuntimeName for ITTAPIObjectEvent2 {} #[cfg(feature = "Win32_System_Com")] impl ITTAPIObjectEvent2_Vtbl { - pub const fn new() -> ITTAPIObjectEvent2_Vtbl - where - Identity: ITTAPIObjectEvent2_Impl, - { - unsafe extern "system" fn Phone(this: *mut core::ffi::c_void, ppphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTAPIObjectEvent2_Impl, - { + pub const fn new() -> ITTAPIObjectEvent2_Vtbl { + unsafe extern "system" fn Phone(this: *mut core::ffi::c_void, ppphone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTAPIObjectEvent2_Impl::Phone(this) { Ok(ok__) => { @@ -10183,14 +7939,8 @@ pub trait ITTTSTerminalEvent_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ITTTSTerminalEvent {} #[cfg(feature = "Win32_System_Com")] impl ITTTSTerminalEvent_Vtbl { - pub const fn new() -> ITTTSTerminalEvent_Vtbl - where - Identity: ITTTSTerminalEvent_Impl, - { - unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTTSTerminalEvent_Impl, - { + pub const fn new() -> ITTTSTerminalEvent_Vtbl { + unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTTSTerminalEvent_Impl::Terminal(this) { Ok(ok__) => { @@ -10200,10 +7950,7 @@ impl ITTTSTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTTSTerminalEvent_Impl, - { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTTSTerminalEvent_Impl::Call(this) { Ok(ok__) => { @@ -10213,10 +7960,7 @@ impl ITTTSTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, phrerrorcode: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITTTSTerminalEvent_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, phrerrorcode: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTTSTerminalEvent_Impl::Error(this) { Ok(ok__) => { @@ -10250,14 +7994,8 @@ pub trait ITTerminal_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITTerminal {} #[cfg(feature = "Win32_System_Com")] impl ITTerminal_Vtbl { - pub const fn new() -> ITTerminal_Vtbl - where - Identity: ITTerminal_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTerminal_Impl, - { + pub const fn new() -> ITTerminal_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminal_Impl::Name(this) { Ok(ok__) => { @@ -10267,10 +8005,7 @@ impl ITTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pterminalstate: *mut TERMINAL_STATE) -> windows_core::HRESULT - where - Identity: ITTerminal_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pterminalstate: *mut TERMINAL_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminal_Impl::State(this) { Ok(ok__) => { @@ -10280,10 +8015,7 @@ impl ITTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TerminalType(this: *mut core::ffi::c_void, ptype: *mut TERMINAL_TYPE) -> windows_core::HRESULT - where - Identity: ITTerminal_Impl, - { + unsafe extern "system" fn TerminalType(this: *mut core::ffi::c_void, ptype: *mut TERMINAL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminal_Impl::TerminalType(this) { Ok(ok__) => { @@ -10293,10 +8025,7 @@ impl ITTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TerminalClass(this: *mut core::ffi::c_void, ppterminalclass: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTerminal_Impl, - { + unsafe extern "system" fn TerminalClass(this: *mut core::ffi::c_void, ppterminalclass: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminal_Impl::TerminalClass(this) { Ok(ok__) => { @@ -10306,10 +8035,7 @@ impl ITTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, plmediatype: *mut i32) -> windows_core::HRESULT - where - Identity: ITTerminal_Impl, - { + unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, plmediatype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminal_Impl::MediaType(this) { Ok(ok__) => { @@ -10319,10 +8045,7 @@ impl ITTerminal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, pdirection: *mut TERMINAL_DIRECTION) -> windows_core::HRESULT - where - Identity: ITTerminal_Impl, - { + unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, pdirection: *mut TERMINAL_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminal_Impl::Direction(this) { Ok(ok__) => { @@ -10359,14 +8082,8 @@ pub trait ITTerminalSupport_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ITTerminalSupport {} #[cfg(feature = "Win32_System_Com")] impl ITTerminalSupport_Vtbl { - pub const fn new() -> ITTerminalSupport_Vtbl - where - Identity: ITTerminalSupport_Impl, - { - unsafe extern "system" fn StaticTerminals(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTerminalSupport_Impl, - { + pub const fn new() -> ITTerminalSupport_Vtbl { + unsafe extern "system" fn StaticTerminals(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminalSupport_Impl::StaticTerminals(this) { Ok(ok__) => { @@ -10376,10 +8093,7 @@ impl ITTerminalSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateStaticTerminals(this: *mut core::ffi::c_void, ppterminalenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTerminalSupport_Impl, - { + unsafe extern "system" fn EnumerateStaticTerminals(this: *mut core::ffi::c_void, ppterminalenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminalSupport_Impl::EnumerateStaticTerminals(this) { Ok(ok__) => { @@ -10389,10 +8103,7 @@ impl ITTerminalSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DynamicTerminalClasses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTerminalSupport_Impl, - { + unsafe extern "system" fn DynamicTerminalClasses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminalSupport_Impl::DynamicTerminalClasses(this) { Ok(ok__) => { @@ -10402,10 +8113,7 @@ impl ITTerminalSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateDynamicTerminalClasses(this: *mut core::ffi::c_void, ppterminalclassenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTerminalSupport_Impl, - { + unsafe extern "system" fn EnumerateDynamicTerminalClasses(this: *mut core::ffi::c_void, ppterminalclassenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminalSupport_Impl::EnumerateDynamicTerminalClasses(this) { Ok(ok__) => { @@ -10415,10 +8123,7 @@ impl ITTerminalSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTerminal(this: *mut core::ffi::c_void, pterminalclass: core::mem::MaybeUninit, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTerminalSupport_Impl, - { + unsafe extern "system" fn CreateTerminal(this: *mut core::ffi::c_void, pterminalclass: core::mem::MaybeUninit, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminalSupport_Impl::CreateTerminal(this, core::mem::transmute(&pterminalclass), core::mem::transmute_copy(&lmediatype), core::mem::transmute_copy(&direction)) { Ok(ok__) => { @@ -10428,10 +8133,7 @@ impl ITTerminalSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultStaticTerminal(this: *mut core::ffi::c_void, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTerminalSupport_Impl, - { + unsafe extern "system" fn GetDefaultStaticTerminal(this: *mut core::ffi::c_void, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminalSupport_Impl::GetDefaultStaticTerminal(this, core::mem::transmute_copy(&lmediatype), core::mem::transmute_copy(&direction)) { Ok(ok__) => { @@ -10466,14 +8168,8 @@ pub trait ITTerminalSupport2_Impl: Sized + ITTerminalSupport_Impl { impl windows_core::RuntimeName for ITTerminalSupport2 {} #[cfg(feature = "Win32_System_Com")] impl ITTerminalSupport2_Vtbl { - pub const fn new() -> ITTerminalSupport2_Vtbl - where - Identity: ITTerminalSupport2_Impl, - { - unsafe extern "system" fn PluggableSuperclasses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTerminalSupport2_Impl, - { + pub const fn new() -> ITTerminalSupport2_Vtbl { + unsafe extern "system" fn PluggableSuperclasses(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminalSupport2_Impl::PluggableSuperclasses(this) { Ok(ok__) => { @@ -10483,10 +8179,7 @@ impl ITTerminalSupport2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumeratePluggableSuperclasses(this: *mut core::ffi::c_void, ppsuperclassenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTerminalSupport2_Impl, - { + unsafe extern "system" fn EnumeratePluggableSuperclasses(this: *mut core::ffi::c_void, ppsuperclassenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminalSupport2_Impl::EnumeratePluggableSuperclasses(this) { Ok(ok__) => { @@ -10496,10 +8189,7 @@ impl ITTerminalSupport2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_PluggableTerminalClasses(this: *mut core::ffi::c_void, bstrterminalsuperclass: core::mem::MaybeUninit, lmediatype: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITTerminalSupport2_Impl, - { + unsafe extern "system" fn get_PluggableTerminalClasses(this: *mut core::ffi::c_void, bstrterminalsuperclass: core::mem::MaybeUninit, lmediatype: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminalSupport2_Impl::get_PluggableTerminalClasses(this, core::mem::transmute(&bstrterminalsuperclass), core::mem::transmute_copy(&lmediatype)) { Ok(ok__) => { @@ -10509,10 +8199,7 @@ impl ITTerminalSupport2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumeratePluggableTerminalClasses(this: *mut core::ffi::c_void, iidterminalsuperclass: windows_core::GUID, lmediatype: i32, ppclassenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITTerminalSupport2_Impl, - { + unsafe extern "system" fn EnumeratePluggableTerminalClasses(this: *mut core::ffi::c_void, iidterminalsuperclass: windows_core::GUID, lmediatype: i32, ppclassenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITTerminalSupport2_Impl::EnumeratePluggableTerminalClasses(this, core::mem::transmute(&iidterminalsuperclass), core::mem::transmute_copy(&lmediatype)) { Ok(ok__) => { @@ -10545,14 +8232,8 @@ pub trait ITToneDetectionEvent_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for ITToneDetectionEvent {} #[cfg(feature = "Win32_System_Com")] impl ITToneDetectionEvent_Vtbl { - pub const fn new() -> ITToneDetectionEvent_Vtbl - where - Identity: ITToneDetectionEvent_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITToneDetectionEvent_Impl, - { + pub const fn new() -> ITToneDetectionEvent_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcallinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITToneDetectionEvent_Impl::Call(this) { Ok(ok__) => { @@ -10562,10 +8243,7 @@ impl ITToneDetectionEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT - where - Identity: ITToneDetectionEvent_Impl, - { + unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITToneDetectionEvent_Impl::AppSpecific(this) { Ok(ok__) => { @@ -10575,10 +8253,7 @@ impl ITToneDetectionEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TickCount(this: *mut core::ffi::c_void, pltickcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITToneDetectionEvent_Impl, - { + unsafe extern "system" fn TickCount(this: *mut core::ffi::c_void, pltickcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITToneDetectionEvent_Impl::TickCount(this) { Ok(ok__) => { @@ -10588,10 +8263,7 @@ impl ITToneDetectionEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT - where - Identity: ITToneDetectionEvent_Impl, - { + unsafe extern "system" fn CallbackInstance(this: *mut core::ffi::c_void, plcallbackinstance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITToneDetectionEvent_Impl::CallbackInstance(this) { Ok(ok__) => { @@ -10623,14 +8295,8 @@ pub trait ITToneTerminalEvent_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ITToneTerminalEvent {} #[cfg(feature = "Win32_System_Com")] impl ITToneTerminalEvent_Vtbl { - pub const fn new() -> ITToneTerminalEvent_Vtbl - where - Identity: ITToneTerminalEvent_Impl, - { - unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITToneTerminalEvent_Impl, - { + pub const fn new() -> ITToneTerminalEvent_Vtbl { + unsafe extern "system" fn Terminal(this: *mut core::ffi::c_void, ppterminal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITToneTerminalEvent_Impl::Terminal(this) { Ok(ok__) => { @@ -10640,10 +8306,7 @@ impl ITToneTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITToneTerminalEvent_Impl, - { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, ppcall: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITToneTerminalEvent_Impl::Call(this) { Ok(ok__) => { @@ -10653,10 +8316,7 @@ impl ITToneTerminalEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, phrerrorcode: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITToneTerminalEvent_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, phrerrorcode: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITToneTerminalEvent_Impl::Error(this) { Ok(ok__) => { @@ -10678,7 +8338,7 @@ impl ITToneTerminalEvent_Vtbl { } } #[cfg(all(feature = "Win32_System_AddressBook", feature = "Win32_System_Com"))] -pub trait ITnef_Impl: Sized { +pub trait ITnef_Impl: Sized + windows_core::IUnknownImpl { fn AddProps(&self, ulflags: u32, ulelemid: u32, lpvdata: *mut core::ffi::c_void, lpproplist: *mut super::super::System::AddressBook::SPropTagArray) -> windows_core::Result<()>; fn ExtractProps(&self, ulflags: u32, lpproplist: *mut super::super::System::AddressBook::SPropTagArray, lpproblems: *mut *mut STnefProblemArray) -> windows_core::Result<()>; fn Finish(&self, ulflags: u32, lpkey: *mut u16, lpproblems: *mut *mut STnefProblemArray) -> windows_core::Result<()>; @@ -10691,35 +8351,20 @@ pub trait ITnef_Impl: Sized { impl windows_core::RuntimeName for ITnef {} #[cfg(all(feature = "Win32_System_AddressBook", feature = "Win32_System_Com"))] impl ITnef_Vtbl { - pub const fn new() -> ITnef_Vtbl - where - Identity: ITnef_Impl, - { - unsafe extern "system" fn AddProps(this: *mut core::ffi::c_void, ulflags: u32, ulelemid: u32, lpvdata: *mut core::ffi::c_void, lpproplist: *mut super::super::System::AddressBook::SPropTagArray) -> windows_core::HRESULT - where - Identity: ITnef_Impl, - { + pub const fn new() -> ITnef_Vtbl { + unsafe extern "system" fn AddProps(this: *mut core::ffi::c_void, ulflags: u32, ulelemid: u32, lpvdata: *mut core::ffi::c_void, lpproplist: *mut super::super::System::AddressBook::SPropTagArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITnef_Impl::AddProps(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&ulelemid), core::mem::transmute_copy(&lpvdata), core::mem::transmute_copy(&lpproplist)).into() } - unsafe extern "system" fn ExtractProps(this: *mut core::ffi::c_void, ulflags: u32, lpproplist: *mut super::super::System::AddressBook::SPropTagArray, lpproblems: *mut *mut STnefProblemArray) -> windows_core::HRESULT - where - Identity: ITnef_Impl, - { + unsafe extern "system" fn ExtractProps(this: *mut core::ffi::c_void, ulflags: u32, lpproplist: *mut super::super::System::AddressBook::SPropTagArray, lpproblems: *mut *mut STnefProblemArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITnef_Impl::ExtractProps(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpproplist), core::mem::transmute_copy(&lpproblems)).into() } - unsafe extern "system" fn Finish(this: *mut core::ffi::c_void, ulflags: u32, lpkey: *mut u16, lpproblems: *mut *mut STnefProblemArray) -> windows_core::HRESULT - where - Identity: ITnef_Impl, - { + unsafe extern "system" fn Finish(this: *mut core::ffi::c_void, ulflags: u32, lpkey: *mut u16, lpproblems: *mut *mut STnefProblemArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITnef_Impl::Finish(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpkey), core::mem::transmute_copy(&lpproblems)).into() } - unsafe extern "system" fn OpenTaggedBody(this: *mut core::ffi::c_void, lpmessage: *mut core::ffi::c_void, ulflags: u32, lppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITnef_Impl, - { + unsafe extern "system" fn OpenTaggedBody(this: *mut core::ffi::c_void, lpmessage: *mut core::ffi::c_void, ulflags: u32, lppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITnef_Impl::OpenTaggedBody(this, windows_core::from_raw_borrowed(&lpmessage), core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -10729,24 +8374,15 @@ impl ITnef_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProps(this: *mut core::ffi::c_void, ulflags: u32, ulelemid: u32, cvalues: u32, lpprops: *mut super::super::System::AddressBook::SPropValue) -> windows_core::HRESULT - where - Identity: ITnef_Impl, - { + unsafe extern "system" fn SetProps(this: *mut core::ffi::c_void, ulflags: u32, ulelemid: u32, cvalues: u32, lpprops: *mut super::super::System::AddressBook::SPropValue) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITnef_Impl::SetProps(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&ulelemid), core::mem::transmute_copy(&cvalues), core::mem::transmute_copy(&lpprops)).into() } - unsafe extern "system" fn EncodeRecips(this: *mut core::ffi::c_void, ulflags: u32, lprecipienttable: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITnef_Impl, - { + unsafe extern "system" fn EncodeRecips(this: *mut core::ffi::c_void, ulflags: u32, lprecipienttable: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITnef_Impl::EncodeRecips(this, core::mem::transmute_copy(&ulflags), windows_core::from_raw_borrowed(&lprecipienttable)).into() } - unsafe extern "system" fn FinishComponent(this: *mut core::ffi::c_void, ulflags: u32, ulcomponentid: u32, lpcustomproplist: *mut super::super::System::AddressBook::SPropTagArray, lpcustomprops: *mut super::super::System::AddressBook::SPropValue, lpproplist: *mut super::super::System::AddressBook::SPropTagArray, lpproblems: *mut *mut STnefProblemArray) -> windows_core::HRESULT - where - Identity: ITnef_Impl, - { + unsafe extern "system" fn FinishComponent(this: *mut core::ffi::c_void, ulflags: u32, ulcomponentid: u32, lpcustomproplist: *mut super::super::System::AddressBook::SPropTagArray, lpcustomprops: *mut super::super::System::AddressBook::SPropValue, lpproplist: *mut super::super::System::AddressBook::SPropTagArray, lpproblems: *mut *mut STnefProblemArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITnef_Impl::FinishComponent(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&ulcomponentid), core::mem::transmute_copy(&lpcustomproplist), core::mem::transmute_copy(&lpcustomprops), core::mem::transmute_copy(&lpproplist), core::mem::transmute_copy(&lpproblems)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs index 685477b577..922592f3b1 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs @@ -1,24 +1,15 @@ -pub trait IWSDAddress_Impl: Sized { +pub trait IWSDAddress_Impl: Sized + windows_core::IUnknownImpl { fn Serialize(&self, pszbuffer: windows_core::PWSTR, cchlength: u32, fsafe: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn Deserialize(&self, pszbuffer: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWSDAddress {} impl IWSDAddress_Vtbl { - pub const fn new() -> IWSDAddress_Vtbl - where - Identity: IWSDAddress_Impl, - { - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pszbuffer: windows_core::PWSTR, cchlength: u32, fsafe: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWSDAddress_Impl, - { + pub const fn new() -> IWSDAddress_Vtbl { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pszbuffer: windows_core::PWSTR, cchlength: u32, fsafe: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDAddress_Impl::Serialize(this, core::mem::transmute_copy(&pszbuffer), core::mem::transmute_copy(&cchlength), core::mem::transmute_copy(&fsafe)).into() } - unsafe extern "system" fn Deserialize(this: *mut core::ffi::c_void, pszbuffer: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDAddress_Impl, - { + unsafe extern "system" fn Deserialize(this: *mut core::ffi::c_void, pszbuffer: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDAddress_Impl::Deserialize(this, core::mem::transmute(&pszbuffer)).into() } @@ -32,19 +23,13 @@ impl IWSDAddress_Vtbl { iid == &::IID } } -pub trait IWSDAsyncCallback_Impl: Sized { +pub trait IWSDAsyncCallback_Impl: Sized + windows_core::IUnknownImpl { fn AsyncOperationComplete(&self, pasyncresult: Option<&IWSDAsyncResult>, pasyncstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWSDAsyncCallback {} impl IWSDAsyncCallback_Vtbl { - pub const fn new() -> IWSDAsyncCallback_Vtbl - where - Identity: IWSDAsyncCallback_Impl, - { - unsafe extern "system" fn AsyncOperationComplete(this: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void, pasyncstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDAsyncCallback_Impl, - { + pub const fn new() -> IWSDAsyncCallback_Vtbl { + unsafe extern "system" fn AsyncOperationComplete(this: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void, pasyncstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDAsyncCallback_Impl::AsyncOperationComplete(this, windows_core::from_raw_borrowed(&pasyncresult), windows_core::from_raw_borrowed(&pasyncstate)).into() } @@ -54,7 +39,7 @@ impl IWSDAsyncCallback_Vtbl { iid == &::IID } } -pub trait IWSDAsyncResult_Impl: Sized { +pub trait IWSDAsyncResult_Impl: Sized + windows_core::IUnknownImpl { fn SetCallback(&self, pcallback: Option<&IWSDAsyncCallback>, pasyncstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn SetWaitHandle(&self, hwaithandle: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn HasCompleted(&self) -> windows_core::Result<()>; @@ -65,35 +50,20 @@ pub trait IWSDAsyncResult_Impl: Sized { } impl windows_core::RuntimeName for IWSDAsyncResult {} impl IWSDAsyncResult_Vtbl { - pub const fn new() -> IWSDAsyncResult_Vtbl - where - Identity: IWSDAsyncResult_Impl, - { - unsafe extern "system" fn SetCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pasyncstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDAsyncResult_Impl, - { + pub const fn new() -> IWSDAsyncResult_Vtbl { + unsafe extern "system" fn SetCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pasyncstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDAsyncResult_Impl::SetCallback(this, windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pasyncstate)).into() } - unsafe extern "system" fn SetWaitHandle(this: *mut core::ffi::c_void, hwaithandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IWSDAsyncResult_Impl, - { + unsafe extern "system" fn SetWaitHandle(this: *mut core::ffi::c_void, hwaithandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDAsyncResult_Impl::SetWaitHandle(this, core::mem::transmute_copy(&hwaithandle)).into() } - unsafe extern "system" fn HasCompleted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDAsyncResult_Impl, - { + unsafe extern "system" fn HasCompleted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDAsyncResult_Impl::HasCompleted(this).into() } - unsafe extern "system" fn GetAsyncState(this: *mut core::ffi::c_void, ppasyncstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDAsyncResult_Impl, - { + unsafe extern "system" fn GetAsyncState(this: *mut core::ffi::c_void, ppasyncstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDAsyncResult_Impl::GetAsyncState(this) { Ok(ok__) => { @@ -103,24 +73,15 @@ impl IWSDAsyncResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDAsyncResult_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDAsyncResult_Impl::Abort(this).into() } - unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, pevent: *mut WSD_EVENT) -> windows_core::HRESULT - where - Identity: IWSDAsyncResult_Impl, - { + unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, pevent: *mut WSD_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDAsyncResult_Impl::GetEvent(this, core::mem::transmute_copy(&pevent)).into() } - unsafe extern "system" fn GetEndpointProxy(this: *mut core::ffi::c_void, ppendpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDAsyncResult_Impl, - { + unsafe extern "system" fn GetEndpointProxy(this: *mut core::ffi::c_void, ppendpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDAsyncResult_Impl::GetEndpointProxy(this) { Ok(ok__) => { @@ -145,20 +106,17 @@ impl IWSDAsyncResult_Vtbl { iid == &::IID } } -pub trait IWSDAttachment_Impl: Sized {} +pub trait IWSDAttachment_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IWSDAttachment {} impl IWSDAttachment_Vtbl { - pub const fn new() -> IWSDAttachment_Vtbl - where - Identity: IWSDAttachment_Impl, - { + pub const fn new() -> IWSDAttachment_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IWSDDeviceHost_Impl: Sized { +pub trait IWSDDeviceHost_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, pszlocalid: &windows_core::PCWSTR, pcontext: Option<&IWSDXMLContext>, pphostaddresses: *const Option, dwhostaddresscount: u32) -> windows_core::Result<()>; fn Start(&self, ullinstanceid: u64, pscopelist: *const WSD_URI_LIST, pnotificationsink: Option<&IWSDDeviceHostNotify>) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; @@ -174,91 +132,52 @@ pub trait IWSDDeviceHost_Impl: Sized { } impl windows_core::RuntimeName for IWSDDeviceHost {} impl IWSDDeviceHost_Vtbl { - pub const fn new() -> IWSDDeviceHost_Vtbl - where - Identity: IWSDDeviceHost_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pszlocalid: windows_core::PCWSTR, pcontext: *mut core::ffi::c_void, pphostaddresses: *const *mut core::ffi::c_void, dwhostaddresscount: u32) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + pub const fn new() -> IWSDDeviceHost_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pszlocalid: windows_core::PCWSTR, pcontext: *mut core::ffi::c_void, pphostaddresses: *const *mut core::ffi::c_void, dwhostaddresscount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::Init(this, core::mem::transmute(&pszlocalid), windows_core::from_raw_borrowed(&pcontext), core::mem::transmute_copy(&pphostaddresses), core::mem::transmute_copy(&dwhostaddresscount)).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, ullinstanceid: u64, pscopelist: *const WSD_URI_LIST, pnotificationsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, ullinstanceid: u64, pscopelist: *const WSD_URI_LIST, pnotificationsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::Start(this, core::mem::transmute_copy(&ullinstanceid), core::mem::transmute_copy(&pscopelist), windows_core::from_raw_borrowed(&pnotificationsink)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::Stop(this).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::Terminate(this).into() } - unsafe extern "system" fn RegisterPortType(this: *mut core::ffi::c_void, pporttype: *const WSD_PORT_TYPE) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn RegisterPortType(this: *mut core::ffi::c_void, pporttype: *const WSD_PORT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::RegisterPortType(this, core::mem::transmute_copy(&pporttype)).into() } - unsafe extern "system" fn SetMetadata(this: *mut core::ffi::c_void, pthismodelmetadata: *const WSD_THIS_MODEL_METADATA, pthisdevicemetadata: *const WSD_THIS_DEVICE_METADATA, phostmetadata: *const WSD_HOST_METADATA, pcustommetadata: *const WSD_METADATA_SECTION_LIST) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn SetMetadata(this: *mut core::ffi::c_void, pthismodelmetadata: *const WSD_THIS_MODEL_METADATA, pthisdevicemetadata: *const WSD_THIS_DEVICE_METADATA, phostmetadata: *const WSD_HOST_METADATA, pcustommetadata: *const WSD_METADATA_SECTION_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::SetMetadata(this, core::mem::transmute_copy(&pthismodelmetadata), core::mem::transmute_copy(&pthisdevicemetadata), core::mem::transmute_copy(&phostmetadata), core::mem::transmute_copy(&pcustommetadata)).into() } - unsafe extern "system" fn RegisterService(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, pservice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn RegisterService(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, pservice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::RegisterService(this, core::mem::transmute(&pszserviceid), windows_core::from_raw_borrowed(&pservice)).into() } - unsafe extern "system" fn RetireService(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn RetireService(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::RetireService(this, core::mem::transmute(&pszserviceid)).into() } - unsafe extern "system" fn AddDynamicService(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, pszendpointaddress: windows_core::PCWSTR, pporttype: *const WSD_PORT_TYPE, pportname: *const WSDXML_NAME, pany: *const WSDXML_ELEMENT, pservice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn AddDynamicService(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, pszendpointaddress: windows_core::PCWSTR, pporttype: *const WSD_PORT_TYPE, pportname: *const WSDXML_NAME, pany: *const WSDXML_ELEMENT, pservice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::AddDynamicService(this, core::mem::transmute(&pszserviceid), core::mem::transmute(&pszendpointaddress), core::mem::transmute_copy(&pporttype), core::mem::transmute_copy(&pportname), core::mem::transmute_copy(&pany), windows_core::from_raw_borrowed(&pservice)).into() } - unsafe extern "system" fn RemoveDynamicService(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn RemoveDynamicService(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::RemoveDynamicService(this, core::mem::transmute(&pszserviceid)).into() } - unsafe extern "system" fn SetServiceDiscoverable(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, fdiscoverable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn SetServiceDiscoverable(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, fdiscoverable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::SetServiceDiscoverable(this, core::mem::transmute(&pszserviceid), core::mem::transmute_copy(&fdiscoverable)).into() } - unsafe extern "system" fn SignalEvent(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION) -> windows_core::HRESULT - where - Identity: IWSDDeviceHost_Impl, - { + unsafe extern "system" fn SignalEvent(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::SignalEvent(this, core::mem::transmute(&pszserviceid), core::mem::transmute_copy(&pbody), core::mem::transmute_copy(&poperation)).into() } @@ -282,19 +201,13 @@ impl IWSDDeviceHost_Vtbl { iid == &::IID } } -pub trait IWSDDeviceHostNotify_Impl: Sized { +pub trait IWSDDeviceHostNotify_Impl: Sized + windows_core::IUnknownImpl { fn GetService(&self, pszserviceid: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IWSDDeviceHostNotify {} impl IWSDDeviceHostNotify_Vtbl { - pub const fn new() -> IWSDDeviceHostNotify_Vtbl - where - Identity: IWSDDeviceHostNotify_Impl, - { - unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceHostNotify_Impl, - { + pub const fn new() -> IWSDDeviceHostNotify_Vtbl { + unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDDeviceHostNotify_Impl::GetService(this, core::mem::transmute(&pszserviceid)) { Ok(ok__) => { @@ -310,7 +223,7 @@ impl IWSDDeviceHostNotify_Vtbl { iid == &::IID } } -pub trait IWSDDeviceProxy_Impl: Sized { +pub trait IWSDDeviceProxy_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, pszdeviceid: &windows_core::PCWSTR, pdeviceaddress: Option<&IWSDAddress>, pszlocalid: &windows_core::PCWSTR, pcontext: Option<&IWSDXMLContext>, psponsor: Option<&IWSDDeviceProxy>) -> windows_core::Result<()>; fn BeginGetMetadata(&self) -> windows_core::Result; fn EndGetMetadata(&self, presult: Option<&IWSDAsyncResult>) -> windows_core::Result<()>; @@ -324,21 +237,12 @@ pub trait IWSDDeviceProxy_Impl: Sized { } impl windows_core::RuntimeName for IWSDDeviceProxy {} impl IWSDDeviceProxy_Vtbl { - pub const fn new() -> IWSDDeviceProxy_Vtbl - where - Identity: IWSDDeviceProxy_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pszdeviceid: windows_core::PCWSTR, pdeviceaddress: *mut core::ffi::c_void, pszlocalid: windows_core::PCWSTR, pcontext: *mut core::ffi::c_void, psponsor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceProxy_Impl, - { + pub const fn new() -> IWSDDeviceProxy_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pszdeviceid: windows_core::PCWSTR, pdeviceaddress: *mut core::ffi::c_void, pszlocalid: windows_core::PCWSTR, pcontext: *mut core::ffi::c_void, psponsor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceProxy_Impl::Init(this, core::mem::transmute(&pszdeviceid), windows_core::from_raw_borrowed(&pdeviceaddress), core::mem::transmute(&pszlocalid), windows_core::from_raw_borrowed(&pcontext), windows_core::from_raw_borrowed(&psponsor)).into() } - unsafe extern "system" fn BeginGetMetadata(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceProxy_Impl, - { + unsafe extern "system" fn BeginGetMetadata(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDDeviceProxy_Impl::BeginGetMetadata(this) { Ok(ok__) => { @@ -348,17 +252,11 @@ impl IWSDDeviceProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndGetMetadata(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceProxy_Impl, - { + unsafe extern "system" fn EndGetMetadata(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceProxy_Impl::EndGetMetadata(this, windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn GetHostMetadata(this: *mut core::ffi::c_void, pphostmetadata: *mut *mut WSD_HOST_METADATA) -> windows_core::HRESULT - where - Identity: IWSDDeviceProxy_Impl, - { + unsafe extern "system" fn GetHostMetadata(this: *mut core::ffi::c_void, pphostmetadata: *mut *mut WSD_HOST_METADATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDDeviceProxy_Impl::GetHostMetadata(this) { Ok(ok__) => { @@ -368,10 +266,7 @@ impl IWSDDeviceProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThisModelMetadata(this: *mut core::ffi::c_void, ppmanufacturermetadata: *mut *mut WSD_THIS_MODEL_METADATA) -> windows_core::HRESULT - where - Identity: IWSDDeviceProxy_Impl, - { + unsafe extern "system" fn GetThisModelMetadata(this: *mut core::ffi::c_void, ppmanufacturermetadata: *mut *mut WSD_THIS_MODEL_METADATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDDeviceProxy_Impl::GetThisModelMetadata(this) { Ok(ok__) => { @@ -381,10 +276,7 @@ impl IWSDDeviceProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThisDeviceMetadata(this: *mut core::ffi::c_void, ppthisdevicemetadata: *mut *mut WSD_THIS_DEVICE_METADATA) -> windows_core::HRESULT - where - Identity: IWSDDeviceProxy_Impl, - { + unsafe extern "system" fn GetThisDeviceMetadata(this: *mut core::ffi::c_void, ppthisdevicemetadata: *mut *mut WSD_THIS_DEVICE_METADATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDDeviceProxy_Impl::GetThisDeviceMetadata(this) { Ok(ok__) => { @@ -394,10 +286,7 @@ impl IWSDDeviceProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllMetadata(this: *mut core::ffi::c_void, ppmetadata: *mut *mut WSD_METADATA_SECTION_LIST) -> windows_core::HRESULT - where - Identity: IWSDDeviceProxy_Impl, - { + unsafe extern "system" fn GetAllMetadata(this: *mut core::ffi::c_void, ppmetadata: *mut *mut WSD_METADATA_SECTION_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDDeviceProxy_Impl::GetAllMetadata(this) { Ok(ok__) => { @@ -407,10 +296,7 @@ impl IWSDDeviceProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceProxyById(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, ppserviceproxy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceProxy_Impl, - { + unsafe extern "system" fn GetServiceProxyById(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, ppserviceproxy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDDeviceProxy_Impl::GetServiceProxyById(this, core::mem::transmute(&pszserviceid)) { Ok(ok__) => { @@ -420,10 +306,7 @@ impl IWSDDeviceProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceProxyByType(this: *mut core::ffi::c_void, ptype: *const WSDXML_NAME, ppserviceproxy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceProxy_Impl, - { + unsafe extern "system" fn GetServiceProxyByType(this: *mut core::ffi::c_void, ptype: *const WSDXML_NAME, ppserviceproxy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDDeviceProxy_Impl::GetServiceProxyByType(this, core::mem::transmute_copy(&ptype)) { Ok(ok__) => { @@ -433,10 +316,7 @@ impl IWSDDeviceProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEndpointProxy(this: *mut core::ffi::c_void, ppproxy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDDeviceProxy_Impl, - { + unsafe extern "system" fn GetEndpointProxy(this: *mut core::ffi::c_void, ppproxy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDDeviceProxy_Impl::GetEndpointProxy(this) { Ok(ok__) => { @@ -464,7 +344,7 @@ impl IWSDDeviceProxy_Vtbl { iid == &::IID } } -pub trait IWSDEndpointProxy_Impl: Sized { +pub trait IWSDEndpointProxy_Impl: Sized + windows_core::IUnknownImpl { fn SendOneWayRequest(&self, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION) -> windows_core::Result<()>; fn SendTwoWayRequest(&self, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, presponsecontext: *const WSD_SYNCHRONOUS_RESPONSE_CONTEXT) -> windows_core::Result<()>; fn SendTwoWayRequestAsync(&self, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, pasyncstate: Option<&windows_core::IUnknown>, pcallback: Option<&IWSDAsyncCallback>) -> windows_core::Result; @@ -475,28 +355,16 @@ pub trait IWSDEndpointProxy_Impl: Sized { } impl windows_core::RuntimeName for IWSDEndpointProxy {} impl IWSDEndpointProxy_Vtbl { - pub const fn new() -> IWSDEndpointProxy_Vtbl - where - Identity: IWSDEndpointProxy_Impl, - { - unsafe extern "system" fn SendOneWayRequest(this: *mut core::ffi::c_void, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION) -> windows_core::HRESULT - where - Identity: IWSDEndpointProxy_Impl, - { + pub const fn new() -> IWSDEndpointProxy_Vtbl { + unsafe extern "system" fn SendOneWayRequest(this: *mut core::ffi::c_void, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDEndpointProxy_Impl::SendOneWayRequest(this, core::mem::transmute_copy(&pbody), core::mem::transmute_copy(&poperation)).into() } - unsafe extern "system" fn SendTwoWayRequest(this: *mut core::ffi::c_void, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, presponsecontext: *const WSD_SYNCHRONOUS_RESPONSE_CONTEXT) -> windows_core::HRESULT - where - Identity: IWSDEndpointProxy_Impl, - { + unsafe extern "system" fn SendTwoWayRequest(this: *mut core::ffi::c_void, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, presponsecontext: *const WSD_SYNCHRONOUS_RESPONSE_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDEndpointProxy_Impl::SendTwoWayRequest(this, core::mem::transmute_copy(&pbody), core::mem::transmute_copy(&poperation), core::mem::transmute_copy(&presponsecontext)).into() } - unsafe extern "system" fn SendTwoWayRequestAsync(this: *mut core::ffi::c_void, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, pasyncstate: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, presult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDEndpointProxy_Impl, - { + unsafe extern "system" fn SendTwoWayRequestAsync(this: *mut core::ffi::c_void, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, pasyncstate: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, presult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDEndpointProxy_Impl::SendTwoWayRequestAsync(this, core::mem::transmute_copy(&pbody), core::mem::transmute_copy(&poperation), windows_core::from_raw_borrowed(&pasyncstate), windows_core::from_raw_borrowed(&pcallback)) { Ok(ok__) => { @@ -506,24 +374,15 @@ impl IWSDEndpointProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AbortAsyncOperation(this: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDEndpointProxy_Impl, - { + unsafe extern "system" fn AbortAsyncOperation(this: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDEndpointProxy_Impl::AbortAsyncOperation(this, windows_core::from_raw_borrowed(&pasyncresult)).into() } - unsafe extern "system" fn ProcessFault(this: *mut core::ffi::c_void, pfault: *const WSD_SOAP_FAULT) -> windows_core::HRESULT - where - Identity: IWSDEndpointProxy_Impl, - { + unsafe extern "system" fn ProcessFault(this: *mut core::ffi::c_void, pfault: *const WSD_SOAP_FAULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDEndpointProxy_Impl::ProcessFault(this, core::mem::transmute_copy(&pfault)).into() } - unsafe extern "system" fn GetErrorInfo(this: *mut core::ffi::c_void, ppszerrorinfo: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDEndpointProxy_Impl, - { + unsafe extern "system" fn GetErrorInfo(this: *mut core::ffi::c_void, ppszerrorinfo: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDEndpointProxy_Impl::GetErrorInfo(this) { Ok(ok__) => { @@ -533,10 +392,7 @@ impl IWSDEndpointProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFaultInfo(this: *mut core::ffi::c_void, ppfault: *mut *mut WSD_SOAP_FAULT) -> windows_core::HRESULT - where - Identity: IWSDEndpointProxy_Impl, - { + unsafe extern "system" fn GetFaultInfo(this: *mut core::ffi::c_void, ppfault: *mut *mut WSD_SOAP_FAULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDEndpointProxy_Impl::GetFaultInfo(this) { Ok(ok__) => { @@ -561,35 +417,23 @@ impl IWSDEndpointProxy_Vtbl { iid == &::IID } } -pub trait IWSDEventingStatus_Impl: Sized { +pub trait IWSDEventingStatus_Impl: Sized + windows_core::IUnknownImpl { fn SubscriptionRenewed(&self, pszsubscriptionaction: &windows_core::PCWSTR); fn SubscriptionRenewalFailed(&self, pszsubscriptionaction: &windows_core::PCWSTR, hr: windows_core::HRESULT); fn SubscriptionEnded(&self, pszsubscriptionaction: &windows_core::PCWSTR); } impl windows_core::RuntimeName for IWSDEventingStatus {} impl IWSDEventingStatus_Vtbl { - pub const fn new() -> IWSDEventingStatus_Vtbl - where - Identity: IWSDEventingStatus_Impl, - { - unsafe extern "system" fn SubscriptionRenewed(this: *mut core::ffi::c_void, pszsubscriptionaction: windows_core::PCWSTR) - where - Identity: IWSDEventingStatus_Impl, - { + pub const fn new() -> IWSDEventingStatus_Vtbl { + unsafe extern "system" fn SubscriptionRenewed(this: *mut core::ffi::c_void, pszsubscriptionaction: windows_core::PCWSTR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDEventingStatus_Impl::SubscriptionRenewed(this, core::mem::transmute(&pszsubscriptionaction)) } - unsafe extern "system" fn SubscriptionRenewalFailed(this: *mut core::ffi::c_void, pszsubscriptionaction: windows_core::PCWSTR, hr: windows_core::HRESULT) - where - Identity: IWSDEventingStatus_Impl, - { + unsafe extern "system" fn SubscriptionRenewalFailed(this: *mut core::ffi::c_void, pszsubscriptionaction: windows_core::PCWSTR, hr: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDEventingStatus_Impl::SubscriptionRenewalFailed(this, core::mem::transmute(&pszsubscriptionaction), core::mem::transmute_copy(&hr)) } - unsafe extern "system" fn SubscriptionEnded(this: *mut core::ffi::c_void, pszsubscriptionaction: windows_core::PCWSTR) - where - Identity: IWSDEventingStatus_Impl, - { + unsafe extern "system" fn SubscriptionEnded(this: *mut core::ffi::c_void, pszsubscriptionaction: windows_core::PCWSTR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDEventingStatus_Impl::SubscriptionEnded(this, core::mem::transmute(&pszsubscriptionaction)) } @@ -612,28 +456,16 @@ pub trait IWSDHttpAddress_Impl: Sized + IWSDTransportAddress_Impl { } impl windows_core::RuntimeName for IWSDHttpAddress {} impl IWSDHttpAddress_Vtbl { - pub const fn new() -> IWSDHttpAddress_Vtbl - where - Identity: IWSDHttpAddress_Impl, - { - unsafe extern "system" fn GetSecure(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDHttpAddress_Impl, - { + pub const fn new() -> IWSDHttpAddress_Vtbl { + unsafe extern "system" fn GetSecure(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDHttpAddress_Impl::GetSecure(this).into() } - unsafe extern "system" fn SetSecure(this: *mut core::ffi::c_void, fsecure: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWSDHttpAddress_Impl, - { + unsafe extern "system" fn SetSecure(this: *mut core::ffi::c_void, fsecure: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDHttpAddress_Impl::SetSecure(this, core::mem::transmute_copy(&fsecure)).into() } - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDHttpAddress_Impl, - { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDHttpAddress_Impl::GetPath(this) { Ok(ok__) => { @@ -643,10 +475,7 @@ impl IWSDHttpAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDHttpAddress_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDHttpAddress_Impl::SetPath(this, core::mem::transmute(&pszpath)).into() } @@ -662,20 +491,14 @@ impl IWSDHttpAddress_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWSDHttpAuthParameters_Impl: Sized { +pub trait IWSDHttpAuthParameters_Impl: Sized + windows_core::IUnknownImpl { fn GetClientAccessToken(&self) -> windows_core::Result; fn GetAuthType(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWSDHttpAuthParameters {} impl IWSDHttpAuthParameters_Vtbl { - pub const fn new() -> IWSDHttpAuthParameters_Vtbl - where - Identity: IWSDHttpAuthParameters_Impl, - { - unsafe extern "system" fn GetClientAccessToken(this: *mut core::ffi::c_void, phtoken: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IWSDHttpAuthParameters_Impl, - { + pub const fn new() -> IWSDHttpAuthParameters_Vtbl { + unsafe extern "system" fn GetClientAccessToken(this: *mut core::ffi::c_void, phtoken: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDHttpAuthParameters_Impl::GetClientAccessToken(this) { Ok(ok__) => { @@ -685,10 +508,7 @@ impl IWSDHttpAuthParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAuthType(this: *mut core::ffi::c_void, pauthtype: *mut u32) -> windows_core::HRESULT - where - Identity: IWSDHttpAuthParameters_Impl, - { + unsafe extern "system" fn GetAuthType(this: *mut core::ffi::c_void, pauthtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDHttpAuthParameters_Impl::GetAuthType(this) { Ok(ok__) => { @@ -721,21 +541,12 @@ pub trait IWSDHttpMessageParameters_Impl: Sized + IWSDMessageParameters_Impl { } impl windows_core::RuntimeName for IWSDHttpMessageParameters {} impl IWSDHttpMessageParameters_Vtbl { - pub const fn new() -> IWSDHttpMessageParameters_Vtbl - where - Identity: IWSDHttpMessageParameters_Impl, - { - unsafe extern "system" fn SetInboundHttpHeaders(this: *mut core::ffi::c_void, pszheaders: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDHttpMessageParameters_Impl, - { + pub const fn new() -> IWSDHttpMessageParameters_Vtbl { + unsafe extern "system" fn SetInboundHttpHeaders(this: *mut core::ffi::c_void, pszheaders: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDHttpMessageParameters_Impl::SetInboundHttpHeaders(this, core::mem::transmute(&pszheaders)).into() } - unsafe extern "system" fn GetInboundHttpHeaders(this: *mut core::ffi::c_void, ppszheaders: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDHttpMessageParameters_Impl, - { + unsafe extern "system" fn GetInboundHttpHeaders(this: *mut core::ffi::c_void, ppszheaders: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDHttpMessageParameters_Impl::GetInboundHttpHeaders(this) { Ok(ok__) => { @@ -745,17 +556,11 @@ impl IWSDHttpMessageParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutboundHttpHeaders(this: *mut core::ffi::c_void, pszheaders: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDHttpMessageParameters_Impl, - { + unsafe extern "system" fn SetOutboundHttpHeaders(this: *mut core::ffi::c_void, pszheaders: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDHttpMessageParameters_Impl::SetOutboundHttpHeaders(this, core::mem::transmute(&pszheaders)).into() } - unsafe extern "system" fn GetOutboundHttpHeaders(this: *mut core::ffi::c_void, ppszheaders: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDHttpMessageParameters_Impl, - { + unsafe extern "system" fn GetOutboundHttpHeaders(this: *mut core::ffi::c_void, ppszheaders: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDHttpMessageParameters_Impl::GetOutboundHttpHeaders(this) { Ok(ok__) => { @@ -765,17 +570,11 @@ impl IWSDHttpMessageParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetID(this: *mut core::ffi::c_void, pszid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDHttpMessageParameters_Impl, - { + unsafe extern "system" fn SetID(this: *mut core::ffi::c_void, pszid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDHttpMessageParameters_Impl::SetID(this, core::mem::transmute(&pszid)).into() } - unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, ppszid: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDHttpMessageParameters_Impl, - { + unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, ppszid: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDHttpMessageParameters_Impl::GetID(this) { Ok(ok__) => { @@ -785,17 +584,11 @@ impl IWSDHttpMessageParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDHttpMessageParameters_Impl, - { + unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDHttpMessageParameters_Impl::SetContext(this, windows_core::from_raw_borrowed(&pcontext)).into() } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDHttpMessageParameters_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDHttpMessageParameters_Impl::GetContext(this) { Ok(ok__) => { @@ -805,10 +598,7 @@ impl IWSDHttpMessageParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDHttpMessageParameters_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDHttpMessageParameters_Impl::Clear(this).into() } @@ -835,21 +625,12 @@ pub trait IWSDInboundAttachment_Impl: Sized + IWSDAttachment_Impl { } impl windows_core::RuntimeName for IWSDInboundAttachment {} impl IWSDInboundAttachment_Vtbl { - pub const fn new() -> IWSDInboundAttachment_Vtbl - where - Identity: IWSDInboundAttachment_Impl, - { - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbuffer: *mut u8, dwbytestoread: u32, pdwnumberofbytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IWSDInboundAttachment_Impl, - { + pub const fn new() -> IWSDInboundAttachment_Vtbl { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbuffer: *mut u8, dwbytestoread: u32, pdwnumberofbytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDInboundAttachment_Impl::Read(this, core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&dwbytestoread), core::mem::transmute_copy(&pdwnumberofbytesread)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDInboundAttachment_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDInboundAttachment_Impl::Close(this).into() } @@ -859,7 +640,7 @@ impl IWSDInboundAttachment_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWSDMessageParameters_Impl: Sized { +pub trait IWSDMessageParameters_Impl: Sized + windows_core::IUnknownImpl { fn GetLocalAddress(&self) -> windows_core::Result; fn SetLocalAddress(&self, paddress: Option<&IWSDAddress>) -> windows_core::Result<()>; fn GetRemoteAddress(&self) -> windows_core::Result; @@ -868,14 +649,8 @@ pub trait IWSDMessageParameters_Impl: Sized { } impl windows_core::RuntimeName for IWSDMessageParameters {} impl IWSDMessageParameters_Vtbl { - pub const fn new() -> IWSDMessageParameters_Vtbl - where - Identity: IWSDMessageParameters_Impl, - { - unsafe extern "system" fn GetLocalAddress(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDMessageParameters_Impl, - { + pub const fn new() -> IWSDMessageParameters_Vtbl { + unsafe extern "system" fn GetLocalAddress(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDMessageParameters_Impl::GetLocalAddress(this) { Ok(ok__) => { @@ -885,17 +660,11 @@ impl IWSDMessageParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalAddress(this: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDMessageParameters_Impl, - { + unsafe extern "system" fn SetLocalAddress(this: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDMessageParameters_Impl::SetLocalAddress(this, windows_core::from_raw_borrowed(&paddress)).into() } - unsafe extern "system" fn GetRemoteAddress(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDMessageParameters_Impl, - { + unsafe extern "system" fn GetRemoteAddress(this: *mut core::ffi::c_void, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDMessageParameters_Impl::GetRemoteAddress(this) { Ok(ok__) => { @@ -905,17 +674,11 @@ impl IWSDMessageParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddress(this: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDMessageParameters_Impl, - { + unsafe extern "system" fn SetRemoteAddress(this: *mut core::ffi::c_void, paddress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDMessageParameters_Impl::SetRemoteAddress(this, windows_core::from_raw_borrowed(&paddress)).into() } - unsafe extern "system" fn GetLowerParameters(this: *mut core::ffi::c_void, pptxparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDMessageParameters_Impl, - { + unsafe extern "system" fn GetLowerParameters(this: *mut core::ffi::c_void, pptxparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDMessageParameters_Impl::GetLowerParameters(this) { Ok(ok__) => { @@ -938,19 +701,13 @@ impl IWSDMessageParameters_Vtbl { iid == &::IID } } -pub trait IWSDMetadataExchange_Impl: Sized { +pub trait IWSDMetadataExchange_Impl: Sized + windows_core::IUnknownImpl { fn GetMetadata(&self) -> windows_core::Result<*mut WSD_METADATA_SECTION_LIST>; } impl windows_core::RuntimeName for IWSDMetadataExchange {} impl IWSDMetadataExchange_Vtbl { - pub const fn new() -> IWSDMetadataExchange_Vtbl - where - Identity: IWSDMetadataExchange_Impl, - { - unsafe extern "system" fn GetMetadata(this: *mut core::ffi::c_void, metadataout: *mut *mut WSD_METADATA_SECTION_LIST) -> windows_core::HRESULT - where - Identity: IWSDMetadataExchange_Impl, - { + pub const fn new() -> IWSDMetadataExchange_Vtbl { + unsafe extern "system" fn GetMetadata(this: *mut core::ffi::c_void, metadataout: *mut *mut WSD_METADATA_SECTION_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDMetadataExchange_Impl::GetMetadata(this) { Ok(ok__) => { @@ -973,14 +730,8 @@ pub trait IWSDOutboundAttachment_Impl: Sized + IWSDAttachment_Impl { } impl windows_core::RuntimeName for IWSDOutboundAttachment {} impl IWSDOutboundAttachment_Vtbl { - pub const fn new() -> IWSDOutboundAttachment_Vtbl - where - Identity: IWSDOutboundAttachment_Impl, - { - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pbuffer: *const u8, dwbytestowrite: u32, pdwnumberofbyteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IWSDOutboundAttachment_Impl, - { + pub const fn new() -> IWSDOutboundAttachment_Vtbl { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pbuffer: *const u8, dwbytestowrite: u32, pdwnumberofbyteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDOutboundAttachment_Impl::Write(this, core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&dwbytestowrite)) { Ok(ok__) => { @@ -990,17 +741,11 @@ impl IWSDOutboundAttachment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDOutboundAttachment_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDOutboundAttachment_Impl::Close(this).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDOutboundAttachment_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDOutboundAttachment_Impl::Abort(this).into() } @@ -1016,7 +761,7 @@ impl IWSDOutboundAttachment_Vtbl { } } #[cfg(feature = "Win32_Security_Cryptography")] -pub trait IWSDSSLClientCertificate_Impl: Sized { +pub trait IWSDSSLClientCertificate_Impl: Sized + windows_core::IUnknownImpl { fn GetClientCertificate(&self) -> windows_core::Result<*mut super::super::Security::Cryptography::CERT_CONTEXT>; fn GetMappedAccessToken(&self) -> windows_core::Result; } @@ -1024,14 +769,8 @@ pub trait IWSDSSLClientCertificate_Impl: Sized { impl windows_core::RuntimeName for IWSDSSLClientCertificate {} #[cfg(feature = "Win32_Security_Cryptography")] impl IWSDSSLClientCertificate_Vtbl { - pub const fn new() -> IWSDSSLClientCertificate_Vtbl - where - Identity: IWSDSSLClientCertificate_Impl, - { - unsafe extern "system" fn GetClientCertificate(this: *mut core::ffi::c_void, ppcertcontext: *mut *mut super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::HRESULT - where - Identity: IWSDSSLClientCertificate_Impl, - { + pub const fn new() -> IWSDSSLClientCertificate_Vtbl { + unsafe extern "system" fn GetClientCertificate(this: *mut core::ffi::c_void, ppcertcontext: *mut *mut super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDSSLClientCertificate_Impl::GetClientCertificate(this) { Ok(ok__) => { @@ -1041,10 +780,7 @@ impl IWSDSSLClientCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMappedAccessToken(this: *mut core::ffi::c_void, phtoken: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IWSDSSLClientCertificate_Impl, - { + unsafe extern "system" fn GetMappedAccessToken(this: *mut core::ffi::c_void, phtoken: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDSSLClientCertificate_Impl::GetMappedAccessToken(this) { Ok(ok__) => { @@ -1064,20 +800,14 @@ impl IWSDSSLClientCertificate_Vtbl { iid == &::IID } } -pub trait IWSDScopeMatchingRule_Impl: Sized { +pub trait IWSDScopeMatchingRule_Impl: Sized + windows_core::IUnknownImpl { fn GetScopeRule(&self) -> windows_core::Result; fn MatchScopes(&self, pszscope1: &windows_core::PCWSTR, pszscope2: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IWSDScopeMatchingRule {} impl IWSDScopeMatchingRule_Vtbl { - pub const fn new() -> IWSDScopeMatchingRule_Vtbl - where - Identity: IWSDScopeMatchingRule_Impl, - { - unsafe extern "system" fn GetScopeRule(this: *mut core::ffi::c_void, ppszscopematchingrule: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDScopeMatchingRule_Impl, - { + pub const fn new() -> IWSDScopeMatchingRule_Vtbl { + unsafe extern "system" fn GetScopeRule(this: *mut core::ffi::c_void, ppszscopematchingrule: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDScopeMatchingRule_Impl::GetScopeRule(this) { Ok(ok__) => { @@ -1087,10 +817,7 @@ impl IWSDScopeMatchingRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MatchScopes(this: *mut core::ffi::c_void, pszscope1: windows_core::PCWSTR, pszscope2: windows_core::PCWSTR, pfmatch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWSDScopeMatchingRule_Impl, - { + unsafe extern "system" fn MatchScopes(this: *mut core::ffi::c_void, pszscope1: windows_core::PCWSTR, pszscope2: windows_core::PCWSTR, pfmatch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDScopeMatchingRule_Impl::MatchScopes(this, core::mem::transmute(&pszscope1), core::mem::transmute(&pszscope2)) { Ok(ok__) => { @@ -1110,27 +837,18 @@ impl IWSDScopeMatchingRule_Vtbl { iid == &::IID } } -pub trait IWSDServiceMessaging_Impl: Sized { +pub trait IWSDServiceMessaging_Impl: Sized + windows_core::IUnknownImpl { fn SendResponse(&self, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, pmessageparameters: Option<&IWSDMessageParameters>) -> windows_core::Result<()>; fn FaultRequest(&self, prequestheader: *const WSD_SOAP_HEADER, pmessageparameters: Option<&IWSDMessageParameters>, pfault: *const WSD_SOAP_FAULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWSDServiceMessaging {} impl IWSDServiceMessaging_Vtbl { - pub const fn new() -> IWSDServiceMessaging_Vtbl - where - Identity: IWSDServiceMessaging_Impl, - { - unsafe extern "system" fn SendResponse(this: *mut core::ffi::c_void, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, pmessageparameters: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDServiceMessaging_Impl, - { + pub const fn new() -> IWSDServiceMessaging_Vtbl { + unsafe extern "system" fn SendResponse(this: *mut core::ffi::c_void, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION, pmessageparameters: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceMessaging_Impl::SendResponse(this, core::mem::transmute_copy(&pbody), core::mem::transmute_copy(&poperation), windows_core::from_raw_borrowed(&pmessageparameters)).into() } - unsafe extern "system" fn FaultRequest(this: *mut core::ffi::c_void, prequestheader: *const WSD_SOAP_HEADER, pmessageparameters: *mut core::ffi::c_void, pfault: *const WSD_SOAP_FAULT) -> windows_core::HRESULT - where - Identity: IWSDServiceMessaging_Impl, - { + unsafe extern "system" fn FaultRequest(this: *mut core::ffi::c_void, prequestheader: *const WSD_SOAP_HEADER, pmessageparameters: *mut core::ffi::c_void, pfault: *const WSD_SOAP_FAULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceMessaging_Impl::FaultRequest(this, core::mem::transmute_copy(&prequestheader), windows_core::from_raw_borrowed(&pmessageparameters), core::mem::transmute_copy(&pfault)).into() } @@ -1155,14 +873,8 @@ pub trait IWSDServiceProxy_Impl: Sized + IWSDMetadataExchange_Impl { } impl windows_core::RuntimeName for IWSDServiceProxy {} impl IWSDServiceProxy_Vtbl { - pub const fn new() -> IWSDServiceProxy_Vtbl - where - Identity: IWSDServiceProxy_Impl, - { - unsafe extern "system" fn BeginGetMetadata(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDServiceProxy_Impl, - { + pub const fn new() -> IWSDServiceProxy_Vtbl { + unsafe extern "system" fn BeginGetMetadata(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDServiceProxy_Impl::BeginGetMetadata(this) { Ok(ok__) => { @@ -1172,10 +884,7 @@ impl IWSDServiceProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndGetMetadata(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppmetadata: *mut *mut WSD_METADATA_SECTION_LIST) -> windows_core::HRESULT - where - Identity: IWSDServiceProxy_Impl, - { + unsafe extern "system" fn EndGetMetadata(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppmetadata: *mut *mut WSD_METADATA_SECTION_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDServiceProxy_Impl::EndGetMetadata(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -1185,10 +894,7 @@ impl IWSDServiceProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceMetadata(this: *mut core::ffi::c_void, ppservicemetadata: *mut *mut WSD_SERVICE_METADATA) -> windows_core::HRESULT - where - Identity: IWSDServiceProxy_Impl, - { + unsafe extern "system" fn GetServiceMetadata(this: *mut core::ffi::c_void, ppservicemetadata: *mut *mut WSD_SERVICE_METADATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDServiceProxy_Impl::GetServiceMetadata(this) { Ok(ok__) => { @@ -1198,31 +904,19 @@ impl IWSDServiceProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubscribeToOperation(this: *mut core::ffi::c_void, poperation: *const WSD_OPERATION, punknown: *mut core::ffi::c_void, pany: *const WSDXML_ELEMENT, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDServiceProxy_Impl, - { + unsafe extern "system" fn SubscribeToOperation(this: *mut core::ffi::c_void, poperation: *const WSD_OPERATION, punknown: *mut core::ffi::c_void, pany: *const WSDXML_ELEMENT, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxy_Impl::SubscribeToOperation(this, core::mem::transmute_copy(&poperation), windows_core::from_raw_borrowed(&punknown), core::mem::transmute_copy(&pany), core::mem::transmute_copy(&ppany)).into() } - unsafe extern "system" fn UnsubscribeToOperation(this: *mut core::ffi::c_void, poperation: *const WSD_OPERATION) -> windows_core::HRESULT - where - Identity: IWSDServiceProxy_Impl, - { + unsafe extern "system" fn UnsubscribeToOperation(this: *mut core::ffi::c_void, poperation: *const WSD_OPERATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxy_Impl::UnsubscribeToOperation(this, core::mem::transmute_copy(&poperation)).into() } - unsafe extern "system" fn SetEventingStatusCallback(this: *mut core::ffi::c_void, pstatus: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDServiceProxy_Impl, - { + unsafe extern "system" fn SetEventingStatusCallback(this: *mut core::ffi::c_void, pstatus: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxy_Impl::SetEventingStatusCallback(this, windows_core::from_raw_borrowed(&pstatus)).into() } - unsafe extern "system" fn GetEndpointProxy(this: *mut core::ffi::c_void, ppproxy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDServiceProxy_Impl, - { + unsafe extern "system" fn GetEndpointProxy(this: *mut core::ffi::c_void, ppproxy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDServiceProxy_Impl::GetEndpointProxy(this) { Ok(ok__) => { @@ -1263,21 +957,12 @@ pub trait IWSDServiceProxyEventing_Impl: Sized + IWSDServiceProxy_Impl { } impl windows_core::RuntimeName for IWSDServiceProxyEventing {} impl IWSDServiceProxyEventing_Vtbl { - pub const fn new() -> IWSDServiceProxyEventing_Vtbl - where - Identity: IWSDServiceProxyEventing_Impl, - { - unsafe extern "system" fn SubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, punknown: *mut core::ffi::c_void, pexpires: *const WSD_EVENTING_EXPIRES, pany: *const WSDXML_ELEMENT, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + pub const fn new() -> IWSDServiceProxyEventing_Vtbl { + unsafe extern "system" fn SubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, punknown: *mut core::ffi::c_void, pexpires: *const WSD_EVENTING_EXPIRES, pany: *const WSDXML_ELEMENT, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxyEventing_Impl::SubscribeToMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), windows_core::from_raw_borrowed(&punknown), core::mem::transmute_copy(&pexpires), core::mem::transmute_copy(&pany), core::mem::transmute_copy(&ppexpires), core::mem::transmute_copy(&ppany)).into() } - unsafe extern "system" fn BeginSubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, punknown: *mut core::ffi::c_void, pexpires: *const WSD_EVENTING_EXPIRES, pany: *const WSDXML_ELEMENT, pasyncstate: *mut core::ffi::c_void, pasynccallback: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn BeginSubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, punknown: *mut core::ffi::c_void, pexpires: *const WSD_EVENTING_EXPIRES, pany: *const WSDXML_ELEMENT, pasyncstate: *mut core::ffi::c_void, pasynccallback: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDServiceProxyEventing_Impl::BeginSubscribeToMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), windows_core::from_raw_borrowed(&punknown), core::mem::transmute_copy(&pexpires), core::mem::transmute_copy(&pany), windows_core::from_raw_borrowed(&pasyncstate), windows_core::from_raw_borrowed(&pasynccallback)) { Ok(ok__) => { @@ -1287,24 +972,15 @@ impl IWSDServiceProxyEventing_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndSubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, presult: *mut core::ffi::c_void, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn EndSubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, presult: *mut core::ffi::c_void, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxyEventing_Impl::EndSubscribeToMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), windows_core::from_raw_borrowed(&presult), core::mem::transmute_copy(&ppexpires), core::mem::transmute_copy(&ppany)).into() } - unsafe extern "system" fn UnsubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pany: *const WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn UnsubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pany: *const WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxyEventing_Impl::UnsubscribeToMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), core::mem::transmute_copy(&pany)).into() } - unsafe extern "system" fn BeginUnsubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pany: *const WSDXML_ELEMENT, pasyncstate: *mut core::ffi::c_void, pasynccallback: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn BeginUnsubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pany: *const WSDXML_ELEMENT, pasyncstate: *mut core::ffi::c_void, pasynccallback: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDServiceProxyEventing_Impl::BeginUnsubscribeToMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), core::mem::transmute_copy(&pany), windows_core::from_raw_borrowed(&pasyncstate), windows_core::from_raw_borrowed(&pasynccallback)) { Ok(ok__) => { @@ -1314,24 +990,15 @@ impl IWSDServiceProxyEventing_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndUnsubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn EndUnsubscribeToMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxyEventing_Impl::EndUnsubscribeToMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn RenewMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pexpires: *const WSD_EVENTING_EXPIRES, pany: *const WSDXML_ELEMENT, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn RenewMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pexpires: *const WSD_EVENTING_EXPIRES, pany: *const WSDXML_ELEMENT, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxyEventing_Impl::RenewMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), core::mem::transmute_copy(&pexpires), core::mem::transmute_copy(&pany), core::mem::transmute_copy(&ppexpires), core::mem::transmute_copy(&ppany)).into() } - unsafe extern "system" fn BeginRenewMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pexpires: *const WSD_EVENTING_EXPIRES, pany: *const WSDXML_ELEMENT, pasyncstate: *mut core::ffi::c_void, pasynccallback: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn BeginRenewMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pexpires: *const WSD_EVENTING_EXPIRES, pany: *const WSDXML_ELEMENT, pasyncstate: *mut core::ffi::c_void, pasynccallback: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDServiceProxyEventing_Impl::BeginRenewMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), core::mem::transmute_copy(&pexpires), core::mem::transmute_copy(&pany), windows_core::from_raw_borrowed(&pasyncstate), windows_core::from_raw_borrowed(&pasynccallback)) { Ok(ok__) => { @@ -1341,24 +1008,15 @@ impl IWSDServiceProxyEventing_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndRenewMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, presult: *mut core::ffi::c_void, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn EndRenewMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, presult: *mut core::ffi::c_void, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxyEventing_Impl::EndRenewMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), windows_core::from_raw_borrowed(&presult), core::mem::transmute_copy(&ppexpires), core::mem::transmute_copy(&ppany)).into() } - unsafe extern "system" fn GetStatusForMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pany: *const WSDXML_ELEMENT, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn GetStatusForMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pany: *const WSDXML_ELEMENT, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxyEventing_Impl::GetStatusForMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), core::mem::transmute_copy(&pany), core::mem::transmute_copy(&ppexpires), core::mem::transmute_copy(&ppany)).into() } - unsafe extern "system" fn BeginGetStatusForMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pany: *const WSDXML_ELEMENT, pasyncstate: *mut core::ffi::c_void, pasynccallback: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn BeginGetStatusForMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pany: *const WSDXML_ELEMENT, pasyncstate: *mut core::ffi::c_void, pasynccallback: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDServiceProxyEventing_Impl::BeginGetStatusForMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), core::mem::transmute_copy(&pany), windows_core::from_raw_borrowed(&pasyncstate), windows_core::from_raw_borrowed(&pasynccallback)) { Ok(ok__) => { @@ -1368,10 +1026,7 @@ impl IWSDServiceProxyEventing_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndGetStatusForMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, presult: *mut core::ffi::c_void, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDServiceProxyEventing_Impl, - { + unsafe extern "system" fn EndGetStatusForMultipleOperations(this: *mut core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, presult: *mut core::ffi::c_void, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDServiceProxyEventing_Impl::EndGetStatusForMultipleOperations(this, core::mem::transmute_copy(&poperations), core::mem::transmute_copy(&dwoperationcount), windows_core::from_raw_borrowed(&presult), core::mem::transmute_copy(&ppexpires), core::mem::transmute_copy(&ppany)).into() } @@ -1395,7 +1050,7 @@ impl IWSDServiceProxyEventing_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWSDSignatureProperty_Impl: Sized { +pub trait IWSDSignatureProperty_Impl: Sized + windows_core::IUnknownImpl { fn IsMessageSigned(&self) -> windows_core::Result; fn IsMessageSignatureTrusted(&self) -> windows_core::Result; fn GetKeyInfo(&self, pbkeyinfo: *mut u8, pdwkeyinfosize: *mut u32) -> windows_core::Result<()>; @@ -1404,14 +1059,8 @@ pub trait IWSDSignatureProperty_Impl: Sized { } impl windows_core::RuntimeName for IWSDSignatureProperty {} impl IWSDSignatureProperty_Vtbl { - pub const fn new() -> IWSDSignatureProperty_Vtbl - where - Identity: IWSDSignatureProperty_Impl, - { - unsafe extern "system" fn IsMessageSigned(this: *mut core::ffi::c_void, pbsigned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWSDSignatureProperty_Impl, - { + pub const fn new() -> IWSDSignatureProperty_Vtbl { + unsafe extern "system" fn IsMessageSigned(this: *mut core::ffi::c_void, pbsigned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDSignatureProperty_Impl::IsMessageSigned(this) { Ok(ok__) => { @@ -1421,10 +1070,7 @@ impl IWSDSignatureProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsMessageSignatureTrusted(this: *mut core::ffi::c_void, pbsignaturetrusted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWSDSignatureProperty_Impl, - { + unsafe extern "system" fn IsMessageSignatureTrusted(this: *mut core::ffi::c_void, pbsignaturetrusted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDSignatureProperty_Impl::IsMessageSignatureTrusted(this) { Ok(ok__) => { @@ -1434,24 +1080,15 @@ impl IWSDSignatureProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyInfo(this: *mut core::ffi::c_void, pbkeyinfo: *mut u8, pdwkeyinfosize: *mut u32) -> windows_core::HRESULT - where - Identity: IWSDSignatureProperty_Impl, - { + unsafe extern "system" fn GetKeyInfo(this: *mut core::ffi::c_void, pbkeyinfo: *mut u8, pdwkeyinfosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDSignatureProperty_Impl::GetKeyInfo(this, core::mem::transmute_copy(&pbkeyinfo), core::mem::transmute_copy(&pdwkeyinfosize)).into() } - unsafe extern "system" fn GetSignature(this: *mut core::ffi::c_void, pbsignature: *mut u8, pdwsignaturesize: *mut u32) -> windows_core::HRESULT - where - Identity: IWSDSignatureProperty_Impl, - { + unsafe extern "system" fn GetSignature(this: *mut core::ffi::c_void, pbsignature: *mut u8, pdwsignaturesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDSignatureProperty_Impl::GetSignature(this, core::mem::transmute_copy(&pbsignature), core::mem::transmute_copy(&pdwsignaturesize)).into() } - unsafe extern "system" fn GetSignedInfoHash(this: *mut core::ffi::c_void, pbsignedinfohash: *mut u8, pdwhashsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWSDSignatureProperty_Impl, - { + unsafe extern "system" fn GetSignedInfoHash(this: *mut core::ffi::c_void, pbsignedinfohash: *mut u8, pdwhashsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDSignatureProperty_Impl::GetSignedInfoHash(this, core::mem::transmute_copy(&pbsignedinfohash), core::mem::transmute_copy(&pdwhashsize)).into() } @@ -1477,14 +1114,8 @@ pub trait IWSDTransportAddress_Impl: Sized + IWSDAddress_Impl { } impl windows_core::RuntimeName for IWSDTransportAddress {} impl IWSDTransportAddress_Vtbl { - pub const fn new() -> IWSDTransportAddress_Vtbl - where - Identity: IWSDTransportAddress_Impl, - { - unsafe extern "system" fn GetPort(this: *mut core::ffi::c_void, pwport: *mut u16) -> windows_core::HRESULT - where - Identity: IWSDTransportAddress_Impl, - { + pub const fn new() -> IWSDTransportAddress_Vtbl { + unsafe extern "system" fn GetPort(this: *mut core::ffi::c_void, pwport: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDTransportAddress_Impl::GetPort(this) { Ok(ok__) => { @@ -1494,17 +1125,11 @@ impl IWSDTransportAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPort(this: *mut core::ffi::c_void, wport: u16) -> windows_core::HRESULT - where - Identity: IWSDTransportAddress_Impl, - { + unsafe extern "system" fn SetPort(this: *mut core::ffi::c_void, wport: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDTransportAddress_Impl::SetPort(this, core::mem::transmute_copy(&wport)).into() } - unsafe extern "system" fn GetTransportAddress(this: *mut core::ffi::c_void, ppszaddress: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDTransportAddress_Impl, - { + unsafe extern "system" fn GetTransportAddress(this: *mut core::ffi::c_void, ppszaddress: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDTransportAddress_Impl::GetTransportAddress(this) { Ok(ok__) => { @@ -1514,10 +1139,7 @@ impl IWSDTransportAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransportAddressEx(this: *mut core::ffi::c_void, fsafe: super::super::Foundation::BOOL, ppszaddress: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDTransportAddress_Impl, - { + unsafe extern "system" fn GetTransportAddressEx(this: *mut core::ffi::c_void, fsafe: super::super::Foundation::BOOL, ppszaddress: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDTransportAddress_Impl::GetTransportAddressEx(this, core::mem::transmute_copy(&fsafe)) { Ok(ok__) => { @@ -1527,10 +1149,7 @@ impl IWSDTransportAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransportAddress(this: *mut core::ffi::c_void, pszaddress: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDTransportAddress_Impl, - { + unsafe extern "system" fn SetTransportAddress(this: *mut core::ffi::c_void, pszaddress: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDTransportAddress_Impl::SetTransportAddress(this, core::mem::transmute(&pszaddress)).into() } @@ -1564,49 +1183,28 @@ pub trait IWSDUdpAddress_Impl: Sized + IWSDTransportAddress_Impl { impl windows_core::RuntimeName for IWSDUdpAddress {} #[cfg(feature = "Win32_Networking_WinSock")] impl IWSDUdpAddress_Vtbl { - pub const fn new() -> IWSDUdpAddress_Vtbl - where - Identity: IWSDUdpAddress_Impl, - { - unsafe extern "system" fn SetSockaddr(this: *mut core::ffi::c_void, psockaddr: *const super::super::Networking::WinSock::SOCKADDR_STORAGE) -> windows_core::HRESULT - where - Identity: IWSDUdpAddress_Impl, - { + pub const fn new() -> IWSDUdpAddress_Vtbl { + unsafe extern "system" fn SetSockaddr(this: *mut core::ffi::c_void, psockaddr: *const super::super::Networking::WinSock::SOCKADDR_STORAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDUdpAddress_Impl::SetSockaddr(this, core::mem::transmute_copy(&psockaddr)).into() } - unsafe extern "system" fn GetSockaddr(this: *mut core::ffi::c_void, psockaddr: *mut super::super::Networking::WinSock::SOCKADDR_STORAGE) -> windows_core::HRESULT - where - Identity: IWSDUdpAddress_Impl, - { + unsafe extern "system" fn GetSockaddr(this: *mut core::ffi::c_void, psockaddr: *mut super::super::Networking::WinSock::SOCKADDR_STORAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDUdpAddress_Impl::GetSockaddr(this, core::mem::transmute_copy(&psockaddr)).into() } - unsafe extern "system" fn SetExclusive(this: *mut core::ffi::c_void, fexclusive: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWSDUdpAddress_Impl, - { + unsafe extern "system" fn SetExclusive(this: *mut core::ffi::c_void, fexclusive: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDUdpAddress_Impl::SetExclusive(this, core::mem::transmute_copy(&fexclusive)).into() } - unsafe extern "system" fn GetExclusive(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDUdpAddress_Impl, - { + unsafe extern "system" fn GetExclusive(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDUdpAddress_Impl::GetExclusive(this).into() } - unsafe extern "system" fn SetMessageType(this: *mut core::ffi::c_void, messagetype: WSDUdpMessageType) -> windows_core::HRESULT - where - Identity: IWSDUdpAddress_Impl, - { + unsafe extern "system" fn SetMessageType(this: *mut core::ffi::c_void, messagetype: WSDUdpMessageType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDUdpAddress_Impl::SetMessageType(this, core::mem::transmute_copy(&messagetype)).into() } - unsafe extern "system" fn GetMessageType(this: *mut core::ffi::c_void, pmessagetype: *mut WSDUdpMessageType) -> windows_core::HRESULT - where - Identity: IWSDUdpAddress_Impl, - { + unsafe extern "system" fn GetMessageType(this: *mut core::ffi::c_void, pmessagetype: *mut WSDUdpMessageType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDUdpAddress_Impl::GetMessageType(this) { Ok(ok__) => { @@ -1616,17 +1214,11 @@ impl IWSDUdpAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTTL(this: *mut core::ffi::c_void, dwttl: u32) -> windows_core::HRESULT - where - Identity: IWSDUdpAddress_Impl, - { + unsafe extern "system" fn SetTTL(this: *mut core::ffi::c_void, dwttl: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDUdpAddress_Impl::SetTTL(this, core::mem::transmute_copy(&dwttl)).into() } - unsafe extern "system" fn GetTTL(this: *mut core::ffi::c_void, pdwttl: *mut u32) -> windows_core::HRESULT - where - Identity: IWSDUdpAddress_Impl, - { + unsafe extern "system" fn GetTTL(this: *mut core::ffi::c_void, pdwttl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDUdpAddress_Impl::GetTTL(this) { Ok(ok__) => { @@ -1636,17 +1228,11 @@ impl IWSDUdpAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlias(this: *mut core::ffi::c_void, palias: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWSDUdpAddress_Impl, - { + unsafe extern "system" fn SetAlias(this: *mut core::ffi::c_void, palias: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDUdpAddress_Impl::SetAlias(this, core::mem::transmute_copy(&palias)).into() } - unsafe extern "system" fn GetAlias(this: *mut core::ffi::c_void, palias: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWSDUdpAddress_Impl, - { + unsafe extern "system" fn GetAlias(this: *mut core::ffi::c_void, palias: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDUdpAddress_Impl::GetAlias(this) { Ok(ok__) => { @@ -1680,21 +1266,12 @@ pub trait IWSDUdpMessageParameters_Impl: Sized + IWSDMessageParameters_Impl { } impl windows_core::RuntimeName for IWSDUdpMessageParameters {} impl IWSDUdpMessageParameters_Vtbl { - pub const fn new() -> IWSDUdpMessageParameters_Vtbl - where - Identity: IWSDUdpMessageParameters_Impl, - { - unsafe extern "system" fn SetRetransmitParams(this: *mut core::ffi::c_void, pparams: *const WSDUdpRetransmitParams) -> windows_core::HRESULT - where - Identity: IWSDUdpMessageParameters_Impl, - { + pub const fn new() -> IWSDUdpMessageParameters_Vtbl { + unsafe extern "system" fn SetRetransmitParams(this: *mut core::ffi::c_void, pparams: *const WSDUdpRetransmitParams) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDUdpMessageParameters_Impl::SetRetransmitParams(this, core::mem::transmute_copy(&pparams)).into() } - unsafe extern "system" fn GetRetransmitParams(this: *mut core::ffi::c_void, pparams: *mut WSDUdpRetransmitParams) -> windows_core::HRESULT - where - Identity: IWSDUdpMessageParameters_Impl, - { + unsafe extern "system" fn GetRetransmitParams(this: *mut core::ffi::c_void, pparams: *mut WSDUdpRetransmitParams) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDUdpMessageParameters_Impl::GetRetransmitParams(this, core::mem::transmute_copy(&pparams)).into() } @@ -1708,7 +1285,7 @@ impl IWSDUdpMessageParameters_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWSDXMLContext_Impl: Sized { +pub trait IWSDXMLContext_Impl: Sized + windows_core::IUnknownImpl { fn AddNamespace(&self, pszuri: &windows_core::PCWSTR, pszsuggestedprefix: &windows_core::PCWSTR, ppnamespace: *mut *mut WSDXML_NAMESPACE) -> windows_core::Result<()>; fn AddNameToNamespace(&self, pszuri: &windows_core::PCWSTR, pszname: &windows_core::PCWSTR, ppname: *mut *mut WSDXML_NAME) -> windows_core::Result<()>; fn SetNamespaces(&self, pnamespaces: *const *const WSDXML_NAMESPACE, wnamespacescount: u16, blayernumber: u8) -> windows_core::Result<()>; @@ -1716,35 +1293,20 @@ pub trait IWSDXMLContext_Impl: Sized { } impl windows_core::RuntimeName for IWSDXMLContext {} impl IWSDXMLContext_Vtbl { - pub const fn new() -> IWSDXMLContext_Vtbl - where - Identity: IWSDXMLContext_Impl, - { - unsafe extern "system" fn AddNamespace(this: *mut core::ffi::c_void, pszuri: windows_core::PCWSTR, pszsuggestedprefix: windows_core::PCWSTR, ppnamespace: *mut *mut WSDXML_NAMESPACE) -> windows_core::HRESULT - where - Identity: IWSDXMLContext_Impl, - { + pub const fn new() -> IWSDXMLContext_Vtbl { + unsafe extern "system" fn AddNamespace(this: *mut core::ffi::c_void, pszuri: windows_core::PCWSTR, pszsuggestedprefix: windows_core::PCWSTR, ppnamespace: *mut *mut WSDXML_NAMESPACE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDXMLContext_Impl::AddNamespace(this, core::mem::transmute(&pszuri), core::mem::transmute(&pszsuggestedprefix), core::mem::transmute_copy(&ppnamespace)).into() } - unsafe extern "system" fn AddNameToNamespace(this: *mut core::ffi::c_void, pszuri: windows_core::PCWSTR, pszname: windows_core::PCWSTR, ppname: *mut *mut WSDXML_NAME) -> windows_core::HRESULT - where - Identity: IWSDXMLContext_Impl, - { + unsafe extern "system" fn AddNameToNamespace(this: *mut core::ffi::c_void, pszuri: windows_core::PCWSTR, pszname: windows_core::PCWSTR, ppname: *mut *mut WSDXML_NAME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDXMLContext_Impl::AddNameToNamespace(this, core::mem::transmute(&pszuri), core::mem::transmute(&pszname), core::mem::transmute_copy(&ppname)).into() } - unsafe extern "system" fn SetNamespaces(this: *mut core::ffi::c_void, pnamespaces: *const *const WSDXML_NAMESPACE, wnamespacescount: u16, blayernumber: u8) -> windows_core::HRESULT - where - Identity: IWSDXMLContext_Impl, - { + unsafe extern "system" fn SetNamespaces(this: *mut core::ffi::c_void, pnamespaces: *const *const WSDXML_NAMESPACE, wnamespacescount: u16, blayernumber: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDXMLContext_Impl::SetNamespaces(this, core::mem::transmute_copy(&pnamespaces), core::mem::transmute_copy(&wnamespacescount), core::mem::transmute_copy(&blayernumber)).into() } - unsafe extern "system" fn SetTypes(this: *mut core::ffi::c_void, ptypes: *const *const WSDXML_TYPE, dwtypescount: u32, blayernumber: u8) -> windows_core::HRESULT - where - Identity: IWSDXMLContext_Impl, - { + unsafe extern "system" fn SetTypes(this: *mut core::ffi::c_void, ptypes: *const *const WSDXML_TYPE, dwtypescount: u32, blayernumber: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDXMLContext_Impl::SetTypes(this, core::mem::transmute_copy(&ptypes), core::mem::transmute_copy(&dwtypescount), core::mem::transmute_copy(&blayernumber)).into() } @@ -1760,7 +1322,7 @@ impl IWSDXMLContext_Vtbl { iid == &::IID } } -pub trait IWSDiscoveredService_Impl: Sized { +pub trait IWSDiscoveredService_Impl: Sized + windows_core::IUnknownImpl { fn GetEndpointReference(&self) -> windows_core::Result<*mut WSD_ENDPOINT_REFERENCE>; fn GetTypes(&self) -> windows_core::Result<*mut WSD_NAME_LIST>; fn GetScopes(&self) -> windows_core::Result<*mut WSD_URI_LIST>; @@ -1775,14 +1337,8 @@ pub trait IWSDiscoveredService_Impl: Sized { } impl windows_core::RuntimeName for IWSDiscoveredService {} impl IWSDiscoveredService_Vtbl { - pub const fn new() -> IWSDiscoveredService_Vtbl - where - Identity: IWSDiscoveredService_Impl, - { - unsafe extern "system" fn GetEndpointReference(this: *mut core::ffi::c_void, ppendpointreference: *mut *mut WSD_ENDPOINT_REFERENCE) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + pub const fn new() -> IWSDiscoveredService_Vtbl { + unsafe extern "system" fn GetEndpointReference(this: *mut core::ffi::c_void, ppendpointreference: *mut *mut WSD_ENDPOINT_REFERENCE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveredService_Impl::GetEndpointReference(this) { Ok(ok__) => { @@ -1792,10 +1348,7 @@ impl IWSDiscoveredService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypes(this: *mut core::ffi::c_void, pptypeslist: *mut *mut WSD_NAME_LIST) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + unsafe extern "system" fn GetTypes(this: *mut core::ffi::c_void, pptypeslist: *mut *mut WSD_NAME_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveredService_Impl::GetTypes(this) { Ok(ok__) => { @@ -1805,10 +1358,7 @@ impl IWSDiscoveredService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScopes(this: *mut core::ffi::c_void, ppscopeslist: *mut *mut WSD_URI_LIST) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + unsafe extern "system" fn GetScopes(this: *mut core::ffi::c_void, ppscopeslist: *mut *mut WSD_URI_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveredService_Impl::GetScopes(this) { Ok(ok__) => { @@ -1818,10 +1368,7 @@ impl IWSDiscoveredService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetXAddrs(this: *mut core::ffi::c_void, ppxaddrslist: *mut *mut WSD_URI_LIST) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + unsafe extern "system" fn GetXAddrs(this: *mut core::ffi::c_void, ppxaddrslist: *mut *mut WSD_URI_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveredService_Impl::GetXAddrs(this) { Ok(ok__) => { @@ -1831,10 +1378,7 @@ impl IWSDiscoveredService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMetadataVersion(this: *mut core::ffi::c_void, pullmetadataversion: *mut u64) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + unsafe extern "system" fn GetMetadataVersion(this: *mut core::ffi::c_void, pullmetadataversion: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveredService_Impl::GetMetadataVersion(this) { Ok(ok__) => { @@ -1844,17 +1388,11 @@ impl IWSDiscoveredService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExtendedDiscoXML(this: *mut core::ffi::c_void, ppheaderany: *mut *mut WSDXML_ELEMENT, ppbodyany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + unsafe extern "system" fn GetExtendedDiscoXML(this: *mut core::ffi::c_void, ppheaderany: *mut *mut WSDXML_ELEMENT, ppbodyany: *mut *mut WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveredService_Impl::GetExtendedDiscoXML(this, core::mem::transmute_copy(&ppheaderany), core::mem::transmute_copy(&ppbodyany)).into() } - unsafe extern "system" fn GetProbeResolveTag(this: *mut core::ffi::c_void, ppsztag: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + unsafe extern "system" fn GetProbeResolveTag(this: *mut core::ffi::c_void, ppsztag: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveredService_Impl::GetProbeResolveTag(this) { Ok(ok__) => { @@ -1864,10 +1402,7 @@ impl IWSDiscoveredService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteTransportAddress(this: *mut core::ffi::c_void, ppszremotetransportaddress: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + unsafe extern "system" fn GetRemoteTransportAddress(this: *mut core::ffi::c_void, ppszremotetransportaddress: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveredService_Impl::GetRemoteTransportAddress(this) { Ok(ok__) => { @@ -1877,10 +1412,7 @@ impl IWSDiscoveredService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalTransportAddress(this: *mut core::ffi::c_void, ppszlocaltransportaddress: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + unsafe extern "system" fn GetLocalTransportAddress(this: *mut core::ffi::c_void, ppszlocaltransportaddress: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveredService_Impl::GetLocalTransportAddress(this) { Ok(ok__) => { @@ -1890,10 +1422,7 @@ impl IWSDiscoveredService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalInterfaceGUID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + unsafe extern "system" fn GetLocalInterfaceGUID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveredService_Impl::GetLocalInterfaceGUID(this) { Ok(ok__) => { @@ -1903,10 +1432,7 @@ impl IWSDiscoveredService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInstanceId(this: *mut core::ffi::c_void, pullinstanceid: *mut u64) -> windows_core::HRESULT - where - Identity: IWSDiscoveredService_Impl, - { + unsafe extern "system" fn GetInstanceId(this: *mut core::ffi::c_void, pullinstanceid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveredService_Impl::GetInstanceId(this) { Ok(ok__) => { @@ -1935,7 +1461,7 @@ impl IWSDiscoveredService_Vtbl { iid == &::IID } } -pub trait IWSDiscoveryProvider_Impl: Sized { +pub trait IWSDiscoveryProvider_Impl: Sized + windows_core::IUnknownImpl { fn SetAddressFamily(&self, dwaddressfamily: u32) -> windows_core::Result<()>; fn Attach(&self, psink: Option<&IWSDiscoveryProviderNotify>) -> windows_core::Result<()>; fn Detach(&self) -> windows_core::Result<()>; @@ -1946,56 +1472,32 @@ pub trait IWSDiscoveryProvider_Impl: Sized { } impl windows_core::RuntimeName for IWSDiscoveryProvider {} impl IWSDiscoveryProvider_Vtbl { - pub const fn new() -> IWSDiscoveryProvider_Vtbl - where - Identity: IWSDiscoveryProvider_Impl, - { - unsafe extern "system" fn SetAddressFamily(this: *mut core::ffi::c_void, dwaddressfamily: u32) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProvider_Impl, - { + pub const fn new() -> IWSDiscoveryProvider_Vtbl { + unsafe extern "system" fn SetAddressFamily(this: *mut core::ffi::c_void, dwaddressfamily: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryProvider_Impl::SetAddressFamily(this, core::mem::transmute_copy(&dwaddressfamily)).into() } - unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProvider_Impl, - { + unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryProvider_Impl::Attach(this, windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn Detach(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProvider_Impl, - { + unsafe extern "system" fn Detach(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryProvider_Impl::Detach(this).into() } - unsafe extern "system" fn SearchById(this: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, psztag: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProvider_Impl, - { + unsafe extern "system" fn SearchById(this: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, psztag: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryProvider_Impl::SearchById(this, core::mem::transmute(&pszid), core::mem::transmute(&psztag)).into() } - unsafe extern "system" fn SearchByAddress(this: *mut core::ffi::c_void, pszaddress: windows_core::PCWSTR, psztag: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProvider_Impl, - { + unsafe extern "system" fn SearchByAddress(this: *mut core::ffi::c_void, pszaddress: windows_core::PCWSTR, psztag: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryProvider_Impl::SearchByAddress(this, core::mem::transmute(&pszaddress), core::mem::transmute(&psztag)).into() } - unsafe extern "system" fn SearchByType(this: *mut core::ffi::c_void, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pszmatchby: windows_core::PCWSTR, psztag: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProvider_Impl, - { + unsafe extern "system" fn SearchByType(this: *mut core::ffi::c_void, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pszmatchby: windows_core::PCWSTR, psztag: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryProvider_Impl::SearchByType(this, core::mem::transmute_copy(&ptypeslist), core::mem::transmute_copy(&pscopeslist), core::mem::transmute(&pszmatchby), core::mem::transmute(&psztag)).into() } - unsafe extern "system" fn GetXMLContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProvider_Impl, - { + unsafe extern "system" fn GetXMLContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveryProvider_Impl::GetXMLContext(this) { Ok(ok__) => { @@ -2020,7 +1522,7 @@ impl IWSDiscoveryProvider_Vtbl { iid == &::IID } } -pub trait IWSDiscoveryProviderNotify_Impl: Sized { +pub trait IWSDiscoveryProviderNotify_Impl: Sized + windows_core::IUnknownImpl { fn Add(&self, pservice: Option<&IWSDiscoveredService>) -> windows_core::Result<()>; fn Remove(&self, pservice: Option<&IWSDiscoveredService>) -> windows_core::Result<()>; fn SearchFailed(&self, hr: windows_core::HRESULT, psztag: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -2028,35 +1530,20 @@ pub trait IWSDiscoveryProviderNotify_Impl: Sized { } impl windows_core::RuntimeName for IWSDiscoveryProviderNotify {} impl IWSDiscoveryProviderNotify_Vtbl { - pub const fn new() -> IWSDiscoveryProviderNotify_Vtbl - where - Identity: IWSDiscoveryProviderNotify_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pservice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProviderNotify_Impl, - { + pub const fn new() -> IWSDiscoveryProviderNotify_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pservice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryProviderNotify_Impl::Add(this, windows_core::from_raw_borrowed(&pservice)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, pservice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProviderNotify_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, pservice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryProviderNotify_Impl::Remove(this, windows_core::from_raw_borrowed(&pservice)).into() } - unsafe extern "system" fn SearchFailed(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, psztag: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProviderNotify_Impl, - { + unsafe extern "system" fn SearchFailed(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, psztag: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryProviderNotify_Impl::SearchFailed(this, core::mem::transmute_copy(&hr), core::mem::transmute(&psztag)).into() } - unsafe extern "system" fn SearchComplete(this: *mut core::ffi::c_void, psztag: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWSDiscoveryProviderNotify_Impl, - { + unsafe extern "system" fn SearchComplete(this: *mut core::ffi::c_void, psztag: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryProviderNotify_Impl::SearchComplete(this, core::mem::transmute(&psztag)).into() } @@ -2072,7 +1559,7 @@ impl IWSDiscoveryProviderNotify_Vtbl { iid == &::IID } } -pub trait IWSDiscoveryPublisher_Impl: Sized { +pub trait IWSDiscoveryPublisher_Impl: Sized + windows_core::IUnknownImpl { fn SetAddressFamily(&self, dwaddressfamily: u32) -> windows_core::Result<()>; fn RegisterNotificationSink(&self, psink: Option<&IWSDiscoveryPublisherNotify>) -> windows_core::Result<()>; fn UnRegisterNotificationSink(&self, psink: Option<&IWSDiscoveryPublisherNotify>) -> windows_core::Result<()>; @@ -2089,63 +1576,36 @@ pub trait IWSDiscoveryPublisher_Impl: Sized { } impl windows_core::RuntimeName for IWSDiscoveryPublisher {} impl IWSDiscoveryPublisher_Vtbl { - pub const fn new() -> IWSDiscoveryPublisher_Vtbl - where - Identity: IWSDiscoveryPublisher_Impl, - { - unsafe extern "system" fn SetAddressFamily(this: *mut core::ffi::c_void, dwaddressfamily: u32) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + pub const fn new() -> IWSDiscoveryPublisher_Vtbl { + unsafe extern "system" fn SetAddressFamily(this: *mut core::ffi::c_void, dwaddressfamily: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::SetAddressFamily(this, core::mem::transmute_copy(&dwaddressfamily)).into() } - unsafe extern "system" fn RegisterNotificationSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn RegisterNotificationSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::RegisterNotificationSink(this, windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn UnRegisterNotificationSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn UnRegisterNotificationSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::UnRegisterNotificationSink(this, windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn Publish(this: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn Publish(this: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::Publish(this, core::mem::transmute(&pszid), core::mem::transmute_copy(&ullmetadataversion), core::mem::transmute_copy(&ullinstanceid), core::mem::transmute_copy(&ullmessagenumber), core::mem::transmute(&pszsessionid), core::mem::transmute_copy(&ptypeslist), core::mem::transmute_copy(&pscopeslist), core::mem::transmute_copy(&pxaddrslist)).into() } - unsafe extern "system" fn UnPublish(this: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, pany: *const WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn UnPublish(this: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, pany: *const WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::UnPublish(this, core::mem::transmute(&pszid), core::mem::transmute_copy(&ullinstanceid), core::mem::transmute_copy(&ullmessagenumber), core::mem::transmute(&pszsessionid), core::mem::transmute_copy(&pany)).into() } - unsafe extern "system" fn MatchProbe(this: *mut core::ffi::c_void, pprobemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn MatchProbe(this: *mut core::ffi::c_void, pprobemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::MatchProbe(this, core::mem::transmute_copy(&pprobemessage), windows_core::from_raw_borrowed(&pmessageparameters), core::mem::transmute(&pszid), core::mem::transmute_copy(&ullmetadataversion), core::mem::transmute_copy(&ullinstanceid), core::mem::transmute_copy(&ullmessagenumber), core::mem::transmute(&pszsessionid), core::mem::transmute_copy(&ptypeslist), core::mem::transmute_copy(&pscopeslist), core::mem::transmute_copy(&pxaddrslist)).into() } - unsafe extern "system" fn MatchResolve(this: *mut core::ffi::c_void, presolvemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn MatchResolve(this: *mut core::ffi::c_void, presolvemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::MatchResolve(this, core::mem::transmute_copy(&presolvemessage), windows_core::from_raw_borrowed(&pmessageparameters), core::mem::transmute(&pszid), core::mem::transmute_copy(&ullmetadataversion), core::mem::transmute_copy(&ullinstanceid), core::mem::transmute_copy(&ullmessagenumber), core::mem::transmute(&pszsessionid), core::mem::transmute_copy(&ptypeslist), core::mem::transmute_copy(&pscopeslist), core::mem::transmute_copy(&pxaddrslist)).into() } - unsafe extern "system" fn PublishEx(this: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST, pheaderany: *const WSDXML_ELEMENT, preferenceparameterany: *const WSDXML_ELEMENT, ppolicyany: *const WSDXML_ELEMENT, pendpointreferenceany: *const WSDXML_ELEMENT, pany: *const WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn PublishEx(this: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST, pheaderany: *const WSDXML_ELEMENT, preferenceparameterany: *const WSDXML_ELEMENT, ppolicyany: *const WSDXML_ELEMENT, pendpointreferenceany: *const WSDXML_ELEMENT, pany: *const WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::PublishEx( this, @@ -2165,10 +1625,7 @@ impl IWSDiscoveryPublisher_Vtbl { ) .into() } - unsafe extern "system" fn MatchProbeEx(this: *mut core::ffi::c_void, pprobemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST, pheaderany: *const WSDXML_ELEMENT, preferenceparameterany: *const WSDXML_ELEMENT, ppolicyany: *const WSDXML_ELEMENT, pendpointreferenceany: *const WSDXML_ELEMENT, pany: *const WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn MatchProbeEx(this: *mut core::ffi::c_void, pprobemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST, pheaderany: *const WSDXML_ELEMENT, preferenceparameterany: *const WSDXML_ELEMENT, ppolicyany: *const WSDXML_ELEMENT, pendpointreferenceany: *const WSDXML_ELEMENT, pany: *const WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::MatchProbeEx( this, @@ -2190,10 +1647,7 @@ impl IWSDiscoveryPublisher_Vtbl { ) .into() } - unsafe extern "system" fn MatchResolveEx(this: *mut core::ffi::c_void, presolvemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST, pheaderany: *const WSDXML_ELEMENT, preferenceparameterany: *const WSDXML_ELEMENT, ppolicyany: *const WSDXML_ELEMENT, pendpointreferenceany: *const WSDXML_ELEMENT, pany: *const WSDXML_ELEMENT) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn MatchResolveEx(this: *mut core::ffi::c_void, presolvemessage: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void, pszid: windows_core::PCWSTR, ullmetadataversion: u64, ullinstanceid: u64, ullmessagenumber: u64, pszsessionid: windows_core::PCWSTR, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pxaddrslist: *const WSD_URI_LIST, pheaderany: *const WSDXML_ELEMENT, preferenceparameterany: *const WSDXML_ELEMENT, ppolicyany: *const WSDXML_ELEMENT, pendpointreferenceany: *const WSDXML_ELEMENT, pany: *const WSDXML_ELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::MatchResolveEx( this, @@ -2215,24 +1669,15 @@ impl IWSDiscoveryPublisher_Vtbl { ) .into() } - unsafe extern "system" fn RegisterScopeMatchingRule(this: *mut core::ffi::c_void, pscopematchingrule: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn RegisterScopeMatchingRule(this: *mut core::ffi::c_void, pscopematchingrule: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::RegisterScopeMatchingRule(this, windows_core::from_raw_borrowed(&pscopematchingrule)).into() } - unsafe extern "system" fn UnRegisterScopeMatchingRule(this: *mut core::ffi::c_void, pscopematchingrule: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn UnRegisterScopeMatchingRule(this: *mut core::ffi::c_void, pscopematchingrule: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisher_Impl::UnRegisterScopeMatchingRule(this, windows_core::from_raw_borrowed(&pscopematchingrule)).into() } - unsafe extern "system" fn GetXMLContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisher_Impl, - { + unsafe extern "system" fn GetXMLContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDiscoveryPublisher_Impl::GetXMLContext(this) { Ok(ok__) => { @@ -2263,27 +1708,18 @@ impl IWSDiscoveryPublisher_Vtbl { iid == &::IID } } -pub trait IWSDiscoveryPublisherNotify_Impl: Sized { +pub trait IWSDiscoveryPublisherNotify_Impl: Sized + windows_core::IUnknownImpl { fn ProbeHandler(&self, psoap: *const WSD_SOAP_MESSAGE, pmessageparameters: Option<&IWSDMessageParameters>) -> windows_core::Result<()>; fn ResolveHandler(&self, psoap: *const WSD_SOAP_MESSAGE, pmessageparameters: Option<&IWSDMessageParameters>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWSDiscoveryPublisherNotify {} impl IWSDiscoveryPublisherNotify_Vtbl { - pub const fn new() -> IWSDiscoveryPublisherNotify_Vtbl - where - Identity: IWSDiscoveryPublisherNotify_Impl, - { - unsafe extern "system" fn ProbeHandler(this: *mut core::ffi::c_void, psoap: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisherNotify_Impl, - { + pub const fn new() -> IWSDiscoveryPublisherNotify_Vtbl { + unsafe extern "system" fn ProbeHandler(this: *mut core::ffi::c_void, psoap: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisherNotify_Impl::ProbeHandler(this, core::mem::transmute_copy(&psoap), windows_core::from_raw_borrowed(&pmessageparameters)).into() } - unsafe extern "system" fn ResolveHandler(this: *mut core::ffi::c_void, psoap: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSDiscoveryPublisherNotify_Impl, - { + unsafe extern "system" fn ResolveHandler(this: *mut core::ffi::c_void, psoap: *const WSD_SOAP_MESSAGE, pmessageparameters: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDiscoveryPublisherNotify_Impl::ResolveHandler(this, core::mem::transmute_copy(&psoap), windows_core::from_raw_borrowed(&pmessageparameters)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs b/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs index 45e082f314..00d73fdd78 100644 --- a/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs @@ -1,4 +1,4 @@ -pub trait IGameExplorer_Impl: Sized { +pub trait IGameExplorer_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -6,35 +6,20 @@ pub trait IGameExplorer_Impl: Sized { } impl windows_core::RuntimeName for IGameExplorer {} impl IGameExplorer_Vtbl { - pub const fn new() -> IGameExplorer_Vtbl - where - Identity: IGameExplorer_Impl, - { - unsafe extern "system" fn AddGame(this: *mut core::ffi::c_void, bstrgdfbinarypath: core::mem::MaybeUninit, bstrgameinstalldirectory: core::mem::MaybeUninit, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IGameExplorer_Impl, - { + pub const fn new() -> IGameExplorer_Vtbl { + unsafe extern "system" fn AddGame(this: *mut core::ffi::c_void, bstrgdfbinarypath: core::mem::MaybeUninit, bstrgameinstalldirectory: core::mem::MaybeUninit, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameExplorer_Impl::AddGame(this, core::mem::transmute(&bstrgdfbinarypath), core::mem::transmute(&bstrgameinstalldirectory), core::mem::transmute_copy(&installscope), core::mem::transmute_copy(&pguidinstanceid)).into() } - unsafe extern "system" fn RemoveGame(this: *mut core::ffi::c_void, guidinstanceid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IGameExplorer_Impl, - { + unsafe extern "system" fn RemoveGame(this: *mut core::ffi::c_void, guidinstanceid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameExplorer_Impl::RemoveGame(this, core::mem::transmute(&guidinstanceid)).into() } - unsafe extern "system" fn UpdateGame(this: *mut core::ffi::c_void, guidinstanceid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IGameExplorer_Impl, - { + unsafe extern "system" fn UpdateGame(this: *mut core::ffi::c_void, guidinstanceid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameExplorer_Impl::UpdateGame(this, core::mem::transmute(&guidinstanceid)).into() } - unsafe extern "system" fn VerifyAccess(this: *mut core::ffi::c_void, bstrgdfbinarypath: core::mem::MaybeUninit, pfhasaccess: *mut super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IGameExplorer_Impl, - { + unsafe extern "system" fn VerifyAccess(this: *mut core::ffi::c_void, bstrgdfbinarypath: core::mem::MaybeUninit, pfhasaccess: *mut super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameExplorer_Impl::VerifyAccess(this, core::mem::transmute(&bstrgdfbinarypath)) { Ok(ok__) => { @@ -56,35 +41,23 @@ impl IGameExplorer_Vtbl { iid == &::IID } } -pub trait IGameExplorer2_Impl: Sized { +pub trait IGameExplorer2_Impl: Sized + windows_core::IUnknownImpl { fn InstallGame(&self, binarygdfpath: &windows_core::PCWSTR, installdirectory: &windows_core::PCWSTR, installscope: GAME_INSTALL_SCOPE) -> windows_core::Result<()>; fn UninstallGame(&self, binarygdfpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn CheckAccess(&self, binarygdfpath: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IGameExplorer2 {} impl IGameExplorer2_Vtbl { - pub const fn new() -> IGameExplorer2_Vtbl - where - Identity: IGameExplorer2_Impl, - { - unsafe extern "system" fn InstallGame(this: *mut core::ffi::c_void, binarygdfpath: windows_core::PCWSTR, installdirectory: windows_core::PCWSTR, installscope: GAME_INSTALL_SCOPE) -> windows_core::HRESULT - where - Identity: IGameExplorer2_Impl, - { + pub const fn new() -> IGameExplorer2_Vtbl { + unsafe extern "system" fn InstallGame(this: *mut core::ffi::c_void, binarygdfpath: windows_core::PCWSTR, installdirectory: windows_core::PCWSTR, installscope: GAME_INSTALL_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameExplorer2_Impl::InstallGame(this, core::mem::transmute(&binarygdfpath), core::mem::transmute(&installdirectory), core::mem::transmute_copy(&installscope)).into() } - unsafe extern "system" fn UninstallGame(this: *mut core::ffi::c_void, binarygdfpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IGameExplorer2_Impl, - { + unsafe extern "system" fn UninstallGame(this: *mut core::ffi::c_void, binarygdfpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameExplorer2_Impl::UninstallGame(this, core::mem::transmute(&binarygdfpath)).into() } - unsafe extern "system" fn CheckAccess(this: *mut core::ffi::c_void, binarygdfpath: windows_core::PCWSTR, phasaccess: *mut super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IGameExplorer2_Impl, - { + unsafe extern "system" fn CheckAccess(this: *mut core::ffi::c_void, binarygdfpath: windows_core::PCWSTR, phasaccess: *mut super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameExplorer2_Impl::CheckAccess(this, core::mem::transmute(&binarygdfpath)) { Ok(ok__) => { @@ -105,7 +78,7 @@ impl IGameExplorer2_Vtbl { iid == &::IID } } -pub trait IGameStatistics_Impl: Sized { +pub trait IGameStatistics_Impl: Sized + windows_core::IUnknownImpl { fn GetMaxCategoryLength(&self) -> windows_core::Result; fn GetMaxNameLength(&self) -> windows_core::Result; fn GetMaxValueLength(&self) -> windows_core::Result; @@ -121,14 +94,8 @@ pub trait IGameStatistics_Impl: Sized { } impl windows_core::RuntimeName for IGameStatistics {} impl IGameStatistics_Vtbl { - pub const fn new() -> IGameStatistics_Vtbl - where - Identity: IGameStatistics_Impl, - { - unsafe extern "system" fn GetMaxCategoryLength(this: *mut core::ffi::c_void, cch: *mut u32) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + pub const fn new() -> IGameStatistics_Vtbl { + unsafe extern "system" fn GetMaxCategoryLength(this: *mut core::ffi::c_void, cch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameStatistics_Impl::GetMaxCategoryLength(this) { Ok(ok__) => { @@ -138,10 +105,7 @@ impl IGameStatistics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxNameLength(this: *mut core::ffi::c_void, cch: *mut u32) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn GetMaxNameLength(this: *mut core::ffi::c_void, cch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameStatistics_Impl::GetMaxNameLength(this) { Ok(ok__) => { @@ -151,10 +115,7 @@ impl IGameStatistics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxValueLength(this: *mut core::ffi::c_void, cch: *mut u32) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn GetMaxValueLength(this: *mut core::ffi::c_void, cch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameStatistics_Impl::GetMaxValueLength(this) { Ok(ok__) => { @@ -164,10 +125,7 @@ impl IGameStatistics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxCategories(this: *mut core::ffi::c_void, pmax: *mut u16) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn GetMaxCategories(this: *mut core::ffi::c_void, pmax: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameStatistics_Impl::GetMaxCategories(this) { Ok(ok__) => { @@ -177,10 +135,7 @@ impl IGameStatistics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxStatsPerCategory(this: *mut core::ffi::c_void, pmax: *mut u16) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn GetMaxStatsPerCategory(this: *mut core::ffi::c_void, pmax: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameStatistics_Impl::GetMaxStatsPerCategory(this) { Ok(ok__) => { @@ -190,17 +145,11 @@ impl IGameStatistics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCategoryTitle(this: *mut core::ffi::c_void, categoryindex: u16, title: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn SetCategoryTitle(this: *mut core::ffi::c_void, categoryindex: u16, title: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameStatistics_Impl::SetCategoryTitle(this, core::mem::transmute_copy(&categoryindex), core::mem::transmute(&title)).into() } - unsafe extern "system" fn GetCategoryTitle(this: *mut core::ffi::c_void, categoryindex: u16, ptitle: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn GetCategoryTitle(this: *mut core::ffi::c_void, categoryindex: u16, ptitle: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameStatistics_Impl::GetCategoryTitle(this, core::mem::transmute_copy(&categoryindex)) { Ok(ok__) => { @@ -210,38 +159,23 @@ impl IGameStatistics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatistic(this: *mut core::ffi::c_void, categoryindex: u16, statindex: u16, pname: *mut windows_core::PWSTR, pvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn GetStatistic(this: *mut core::ffi::c_void, categoryindex: u16, statindex: u16, pname: *mut windows_core::PWSTR, pvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameStatistics_Impl::GetStatistic(this, core::mem::transmute_copy(&categoryindex), core::mem::transmute_copy(&statindex), core::mem::transmute_copy(&pname), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn SetStatistic(this: *mut core::ffi::c_void, categoryindex: u16, statindex: u16, name: windows_core::PCWSTR, value: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn SetStatistic(this: *mut core::ffi::c_void, categoryindex: u16, statindex: u16, name: windows_core::PCWSTR, value: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameStatistics_Impl::SetStatistic(this, core::mem::transmute_copy(&categoryindex), core::mem::transmute_copy(&statindex), core::mem::transmute(&name), core::mem::transmute(&value)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, trackchanges: super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, trackchanges: super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameStatistics_Impl::Save(this, core::mem::transmute_copy(&trackchanges)).into() } - unsafe extern "system" fn SetLastPlayedCategory(this: *mut core::ffi::c_void, categoryindex: u32) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn SetLastPlayedCategory(this: *mut core::ffi::c_void, categoryindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameStatistics_Impl::SetLastPlayedCategory(this, core::mem::transmute_copy(&categoryindex)).into() } - unsafe extern "system" fn GetLastPlayedCategory(this: *mut core::ffi::c_void, pcategoryindex: *mut u32) -> windows_core::HRESULT - where - Identity: IGameStatistics_Impl, - { + unsafe extern "system" fn GetLastPlayedCategory(this: *mut core::ffi::c_void, pcategoryindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameStatistics_Impl::GetLastPlayedCategory(this) { Ok(ok__) => { @@ -271,27 +205,18 @@ impl IGameStatistics_Vtbl { iid == &::IID } } -pub trait IGameStatisticsMgr_Impl: Sized { +pub trait IGameStatisticsMgr_Impl: Sized + windows_core::IUnknownImpl { fn GetGameStatistics(&self, gdfbinarypath: &windows_core::PCWSTR, opentype: GAMESTATS_OPEN_TYPE, popenresult: *mut GAMESTATS_OPEN_RESULT, ppistats: *mut Option) -> windows_core::Result<()>; fn RemoveGameStatistics(&self, gdfbinarypath: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGameStatisticsMgr {} impl IGameStatisticsMgr_Vtbl { - pub const fn new() -> IGameStatisticsMgr_Vtbl - where - Identity: IGameStatisticsMgr_Impl, - { - unsafe extern "system" fn GetGameStatistics(this: *mut core::ffi::c_void, gdfbinarypath: windows_core::PCWSTR, opentype: GAMESTATS_OPEN_TYPE, popenresult: *mut GAMESTATS_OPEN_RESULT, ppistats: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGameStatisticsMgr_Impl, - { + pub const fn new() -> IGameStatisticsMgr_Vtbl { + unsafe extern "system" fn GetGameStatistics(this: *mut core::ffi::c_void, gdfbinarypath: windows_core::PCWSTR, opentype: GAMESTATS_OPEN_TYPE, popenresult: *mut GAMESTATS_OPEN_RESULT, ppistats: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameStatisticsMgr_Impl::GetGameStatistics(this, core::mem::transmute(&gdfbinarypath), core::mem::transmute_copy(&opentype), core::mem::transmute_copy(&popenresult), core::mem::transmute_copy(&ppistats)).into() } - unsafe extern "system" fn RemoveGameStatistics(this: *mut core::ffi::c_void, gdfbinarypath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IGameStatisticsMgr_Impl, - { + unsafe extern "system" fn RemoveGameStatistics(this: *mut core::ffi::c_void, gdfbinarypath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameStatisticsMgr_Impl::RemoveGameStatistics(this, core::mem::transmute(&gdfbinarypath)).into() } @@ -305,7 +230,7 @@ impl IGameStatisticsMgr_Vtbl { iid == &::IID } } -pub trait IXblIdpAuthManager_Impl: Sized { +pub trait IXblIdpAuthManager_Impl: Sized + windows_core::IUnknownImpl { fn SetGamerAccount(&self, msaaccountid: &windows_core::PCWSTR, xuid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetGamerAccount(&self, msaaccountid: *mut windows_core::PWSTR, xuid: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn SetAppViewInitialized(&self, appsid: &windows_core::PCWSTR, msaaccountid: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -315,35 +240,20 @@ pub trait IXblIdpAuthManager_Impl: Sized { } impl windows_core::RuntimeName for IXblIdpAuthManager {} impl IXblIdpAuthManager_Vtbl { - pub const fn new() -> IXblIdpAuthManager_Vtbl - where - Identity: IXblIdpAuthManager_Impl, - { - unsafe extern "system" fn SetGamerAccount(this: *mut core::ffi::c_void, msaaccountid: windows_core::PCWSTR, xuid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthManager_Impl, - { + pub const fn new() -> IXblIdpAuthManager_Vtbl { + unsafe extern "system" fn SetGamerAccount(this: *mut core::ffi::c_void, msaaccountid: windows_core::PCWSTR, xuid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXblIdpAuthManager_Impl::SetGamerAccount(this, core::mem::transmute(&msaaccountid), core::mem::transmute(&xuid)).into() } - unsafe extern "system" fn GetGamerAccount(this: *mut core::ffi::c_void, msaaccountid: *mut windows_core::PWSTR, xuid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthManager_Impl, - { + unsafe extern "system" fn GetGamerAccount(this: *mut core::ffi::c_void, msaaccountid: *mut windows_core::PWSTR, xuid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXblIdpAuthManager_Impl::GetGamerAccount(this, core::mem::transmute_copy(&msaaccountid), core::mem::transmute_copy(&xuid)).into() } - unsafe extern "system" fn SetAppViewInitialized(this: *mut core::ffi::c_void, appsid: windows_core::PCWSTR, msaaccountid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthManager_Impl, - { + unsafe extern "system" fn SetAppViewInitialized(this: *mut core::ffi::c_void, appsid: windows_core::PCWSTR, msaaccountid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXblIdpAuthManager_Impl::SetAppViewInitialized(this, core::mem::transmute(&appsid), core::mem::transmute(&msaaccountid)).into() } - unsafe extern "system" fn GetEnvironment(this: *mut core::ffi::c_void, environment: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthManager_Impl, - { + unsafe extern "system" fn GetEnvironment(this: *mut core::ffi::c_void, environment: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthManager_Impl::GetEnvironment(this) { Ok(ok__) => { @@ -353,10 +263,7 @@ impl IXblIdpAuthManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSandbox(this: *mut core::ffi::c_void, sandbox: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthManager_Impl, - { + unsafe extern "system" fn GetSandbox(this: *mut core::ffi::c_void, sandbox: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthManager_Impl::GetSandbox(this) { Ok(ok__) => { @@ -366,10 +273,7 @@ impl IXblIdpAuthManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTokenAndSignatureWithTokenResult(this: *mut core::ffi::c_void, msaaccountid: windows_core::PCWSTR, appsid: windows_core::PCWSTR, msatarget: windows_core::PCWSTR, msapolicy: windows_core::PCWSTR, httpmethod: windows_core::PCWSTR, uri: windows_core::PCWSTR, headers: windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXblIdpAuthManager_Impl, - { + unsafe extern "system" fn GetTokenAndSignatureWithTokenResult(this: *mut core::ffi::c_void, msaaccountid: windows_core::PCWSTR, appsid: windows_core::PCWSTR, msatarget: windows_core::PCWSTR, msapolicy: windows_core::PCWSTR, httpmethod: windows_core::PCWSTR, uri: windows_core::PCWSTR, headers: windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthManager_Impl::GetTokenAndSignatureWithTokenResult(this, core::mem::transmute(&msaaccountid), core::mem::transmute(&appsid), core::mem::transmute(&msatarget), core::mem::transmute(&msapolicy), core::mem::transmute(&httpmethod), core::mem::transmute(&uri), core::mem::transmute(&headers), core::mem::transmute_copy(&body), core::mem::transmute_copy(&bodysize), core::mem::transmute_copy(&forcerefresh)) { Ok(ok__) => { @@ -393,19 +297,13 @@ impl IXblIdpAuthManager_Vtbl { iid == &::IID } } -pub trait IXblIdpAuthManager2_Impl: Sized { +pub trait IXblIdpAuthManager2_Impl: Sized + windows_core::IUnknownImpl { fn GetUserlessTokenAndSignatureWithTokenResult(&self, appsid: &windows_core::PCWSTR, msatarget: &windows_core::PCWSTR, msapolicy: &windows_core::PCWSTR, httpmethod: &windows_core::PCWSTR, uri: &windows_core::PCWSTR, headers: &windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: super::Foundation::BOOL) -> windows_core::Result; } impl windows_core::RuntimeName for IXblIdpAuthManager2 {} impl IXblIdpAuthManager2_Vtbl { - pub const fn new() -> IXblIdpAuthManager2_Vtbl - where - Identity: IXblIdpAuthManager2_Impl, - { - unsafe extern "system" fn GetUserlessTokenAndSignatureWithTokenResult(this: *mut core::ffi::c_void, appsid: windows_core::PCWSTR, msatarget: windows_core::PCWSTR, msapolicy: windows_core::PCWSTR, httpmethod: windows_core::PCWSTR, uri: windows_core::PCWSTR, headers: windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXblIdpAuthManager2_Impl, - { + pub const fn new() -> IXblIdpAuthManager2_Vtbl { + unsafe extern "system" fn GetUserlessTokenAndSignatureWithTokenResult(this: *mut core::ffi::c_void, appsid: windows_core::PCWSTR, msatarget: windows_core::PCWSTR, msapolicy: windows_core::PCWSTR, httpmethod: windows_core::PCWSTR, uri: windows_core::PCWSTR, headers: windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthManager2_Impl::GetUserlessTokenAndSignatureWithTokenResult(this, core::mem::transmute(&appsid), core::mem::transmute(&msatarget), core::mem::transmute(&msapolicy), core::mem::transmute(&httpmethod), core::mem::transmute(&uri), core::mem::transmute(&headers), core::mem::transmute_copy(&body), core::mem::transmute_copy(&bodysize), core::mem::transmute_copy(&forcerefresh)) { Ok(ok__) => { @@ -424,7 +322,7 @@ impl IXblIdpAuthManager2_Vtbl { iid == &::IID } } -pub trait IXblIdpAuthTokenResult_Impl: Sized { +pub trait IXblIdpAuthTokenResult_Impl: Sized + windows_core::IUnknownImpl { fn GetStatus(&self) -> windows_core::Result; fn GetErrorCode(&self) -> windows_core::Result; fn GetToken(&self) -> windows_core::Result; @@ -448,14 +346,8 @@ pub trait IXblIdpAuthTokenResult_Impl: Sized { } impl windows_core::RuntimeName for IXblIdpAuthTokenResult {} impl IXblIdpAuthTokenResult_Vtbl { - pub const fn new() -> IXblIdpAuthTokenResult_Vtbl - where - Identity: IXblIdpAuthTokenResult_Impl, - { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut XBL_IDP_AUTH_TOKEN_STATUS) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + pub const fn new() -> IXblIdpAuthTokenResult_Vtbl { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut XBL_IDP_AUTH_TOKEN_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetStatus(this) { Ok(ok__) => { @@ -465,10 +357,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorCode(this: *mut core::ffi::c_void, errorcode: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetErrorCode(this: *mut core::ffi::c_void, errorcode: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetErrorCode(this) { Ok(ok__) => { @@ -478,10 +367,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetToken(this: *mut core::ffi::c_void, token: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetToken(this: *mut core::ffi::c_void, token: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetToken(this) { Ok(ok__) => { @@ -491,10 +377,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignature(this: *mut core::ffi::c_void, signature: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetSignature(this: *mut core::ffi::c_void, signature: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetSignature(this) { Ok(ok__) => { @@ -504,10 +387,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSandbox(this: *mut core::ffi::c_void, sandbox: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetSandbox(this: *mut core::ffi::c_void, sandbox: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetSandbox(this) { Ok(ok__) => { @@ -517,10 +397,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnvironment(this: *mut core::ffi::c_void, environment: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetEnvironment(this: *mut core::ffi::c_void, environment: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetEnvironment(this) { Ok(ok__) => { @@ -530,10 +407,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMsaAccountId(this: *mut core::ffi::c_void, msaaccountid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetMsaAccountId(this: *mut core::ffi::c_void, msaaccountid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetMsaAccountId(this) { Ok(ok__) => { @@ -543,10 +417,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetXuid(this: *mut core::ffi::c_void, xuid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetXuid(this: *mut core::ffi::c_void, xuid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetXuid(this) { Ok(ok__) => { @@ -556,10 +427,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGamertag(this: *mut core::ffi::c_void, gamertag: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetGamertag(this: *mut core::ffi::c_void, gamertag: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetGamertag(this) { Ok(ok__) => { @@ -569,10 +437,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAgeGroup(this: *mut core::ffi::c_void, agegroup: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetAgeGroup(this: *mut core::ffi::c_void, agegroup: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetAgeGroup(this) { Ok(ok__) => { @@ -582,10 +447,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrivileges(this: *mut core::ffi::c_void, privileges: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetPrivileges(this: *mut core::ffi::c_void, privileges: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetPrivileges(this) { Ok(ok__) => { @@ -595,10 +457,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMsaTarget(this: *mut core::ffi::c_void, msatarget: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetMsaTarget(this: *mut core::ffi::c_void, msatarget: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetMsaTarget(this) { Ok(ok__) => { @@ -608,10 +467,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMsaPolicy(this: *mut core::ffi::c_void, msapolicy: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetMsaPolicy(this: *mut core::ffi::c_void, msapolicy: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetMsaPolicy(this) { Ok(ok__) => { @@ -621,10 +477,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMsaAppId(this: *mut core::ffi::c_void, msaappid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetMsaAppId(this: *mut core::ffi::c_void, msaappid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetMsaAppId(this) { Ok(ok__) => { @@ -634,10 +487,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRedirect(this: *mut core::ffi::c_void, redirect: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetRedirect(this: *mut core::ffi::c_void, redirect: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetRedirect(this) { Ok(ok__) => { @@ -647,10 +497,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, message: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, message: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetMessage(this) { Ok(ok__) => { @@ -660,10 +507,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHelpId(this: *mut core::ffi::c_void, helpid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetHelpId(this: *mut core::ffi::c_void, helpid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetHelpId(this) { Ok(ok__) => { @@ -673,10 +517,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnforcementBans(this: *mut core::ffi::c_void, enforcementbans: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetEnforcementBans(this: *mut core::ffi::c_void, enforcementbans: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetEnforcementBans(this) { Ok(ok__) => { @@ -686,10 +527,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRestrictions(this: *mut core::ffi::c_void, restrictions: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetRestrictions(this: *mut core::ffi::c_void, restrictions: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetRestrictions(this) { Ok(ok__) => { @@ -699,10 +537,7 @@ impl IXblIdpAuthTokenResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTitleRestrictions(this: *mut core::ffi::c_void, titlerestrictions: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult_Impl, - { + unsafe extern "system" fn GetTitleRestrictions(this: *mut core::ffi::c_void, titlerestrictions: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult_Impl::GetTitleRestrictions(this) { Ok(ok__) => { @@ -740,21 +575,15 @@ impl IXblIdpAuthTokenResult_Vtbl { iid == &::IID } } -pub trait IXblIdpAuthTokenResult2_Impl: Sized { +pub trait IXblIdpAuthTokenResult2_Impl: Sized + windows_core::IUnknownImpl { fn GetModernGamertag(&self) -> windows_core::Result; fn GetModernGamertagSuffix(&self) -> windows_core::Result; fn GetUniqueModernGamertag(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IXblIdpAuthTokenResult2 {} impl IXblIdpAuthTokenResult2_Vtbl { - pub const fn new() -> IXblIdpAuthTokenResult2_Vtbl - where - Identity: IXblIdpAuthTokenResult2_Impl, - { - unsafe extern "system" fn GetModernGamertag(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult2_Impl, - { + pub const fn new() -> IXblIdpAuthTokenResult2_Vtbl { + unsafe extern "system" fn GetModernGamertag(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult2_Impl::GetModernGamertag(this) { Ok(ok__) => { @@ -764,10 +593,7 @@ impl IXblIdpAuthTokenResult2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModernGamertagSuffix(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult2_Impl, - { + unsafe extern "system" fn GetModernGamertagSuffix(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult2_Impl::GetModernGamertagSuffix(this) { Ok(ok__) => { @@ -777,10 +603,7 @@ impl IXblIdpAuthTokenResult2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUniqueModernGamertag(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXblIdpAuthTokenResult2_Impl, - { + unsafe extern "system" fn GetUniqueModernGamertag(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthTokenResult2_Impl::GetUniqueModernGamertag(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs b/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs index 7f289bf329..a14da38fac 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs @@ -1,16 +1,10 @@ -pub trait IComprehensiveSpellCheckProvider_Impl: Sized { +pub trait IComprehensiveSpellCheckProvider_Impl: Sized + windows_core::IUnknownImpl { fn ComprehensiveCheck(&self, text: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IComprehensiveSpellCheckProvider {} impl IComprehensiveSpellCheckProvider_Vtbl { - pub const fn new() -> IComprehensiveSpellCheckProvider_Vtbl - where - Identity: IComprehensiveSpellCheckProvider_Impl, - { - unsafe extern "system" fn ComprehensiveCheck(this: *mut core::ffi::c_void, text: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComprehensiveSpellCheckProvider_Impl, - { + pub const fn new() -> IComprehensiveSpellCheckProvider_Vtbl { + unsafe extern "system" fn ComprehensiveCheck(this: *mut core::ffi::c_void, text: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComprehensiveSpellCheckProvider_Impl::ComprehensiveCheck(this, core::mem::transmute(&text)) { Ok(ok__) => { @@ -26,7 +20,7 @@ impl IComprehensiveSpellCheckProvider_Vtbl { iid == &::IID } } -pub trait IEnumCodePage_Impl: Sized { +pub trait IEnumCodePage_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self, ppenum: *const Option) -> windows_core::Result<()>; fn Next(&self, celt: u32, rgelt: *mut MIMECPINFO, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -34,35 +28,20 @@ pub trait IEnumCodePage_Impl: Sized { } impl windows_core::RuntimeName for IEnumCodePage {} impl IEnumCodePage_Vtbl { - pub const fn new() -> IEnumCodePage_Vtbl - where - Identity: IEnumCodePage_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCodePage_Impl, - { + pub const fn new() -> IEnumCodePage_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCodePage_Impl::Clone(this, core::mem::transmute_copy(&ppenum)).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut MIMECPINFO, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumCodePage_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut MIMECPINFO, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCodePage_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCodePage_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCodePage_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumCodePage_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCodePage_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } @@ -78,7 +57,7 @@ impl IEnumCodePage_Vtbl { iid == &::IID } } -pub trait IEnumRfc1766_Impl: Sized { +pub trait IEnumRfc1766_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self, ppenum: *const Option) -> windows_core::Result<()>; fn Next(&self, celt: u32, rgelt: *mut RFC1766INFO, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -86,35 +65,20 @@ pub trait IEnumRfc1766_Impl: Sized { } impl windows_core::RuntimeName for IEnumRfc1766 {} impl IEnumRfc1766_Vtbl { - pub const fn new() -> IEnumRfc1766_Vtbl - where - Identity: IEnumRfc1766_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRfc1766_Impl, - { + pub const fn new() -> IEnumRfc1766_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRfc1766_Impl::Clone(this, core::mem::transmute_copy(&ppenum)).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut RFC1766INFO, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumRfc1766_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut RFC1766INFO, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRfc1766_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRfc1766_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRfc1766_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumRfc1766_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRfc1766_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } @@ -130,7 +94,7 @@ impl IEnumRfc1766_Vtbl { iid == &::IID } } -pub trait IEnumScript_Impl: Sized { +pub trait IEnumScript_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self, ppenum: *const Option) -> windows_core::Result<()>; fn Next(&self, celt: u32, rgelt: *mut SCRIPTINFO, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -138,35 +102,20 @@ pub trait IEnumScript_Impl: Sized { } impl windows_core::RuntimeName for IEnumScript {} impl IEnumScript_Vtbl { - pub const fn new() -> IEnumScript_Vtbl - where - Identity: IEnumScript_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumScript_Impl, - { + pub const fn new() -> IEnumScript_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumScript_Impl::Clone(this, core::mem::transmute_copy(&ppenum)).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut SCRIPTINFO, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumScript_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut SCRIPTINFO, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumScript_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumScript_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumScript_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumScript_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumScript_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } @@ -182,19 +131,13 @@ impl IEnumScript_Vtbl { iid == &::IID } } -pub trait IEnumSpellingError_Impl: Sized { +pub trait IEnumSpellingError_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, value: *mut Option) -> windows_core::HRESULT; } impl windows_core::RuntimeName for IEnumSpellingError {} impl IEnumSpellingError_Vtbl { - pub const fn new() -> IEnumSpellingError_Vtbl - where - Identity: IEnumSpellingError_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSpellingError_Impl, - { + pub const fn new() -> IEnumSpellingError_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSpellingError_Impl::Next(this, core::mem::transmute_copy(&value)) } @@ -204,7 +147,7 @@ impl IEnumSpellingError_Vtbl { iid == &::IID } } -pub trait IMLangCodePages_Impl: Sized { +pub trait IMLangCodePages_Impl: Sized + windows_core::IUnknownImpl { fn GetCharCodePages(&self, chsrc: u16) -> windows_core::Result; fn GetStrCodePages(&self, pszsrc: &windows_core::PCWSTR, cchsrc: i32, dwprioritycodepages: u32, pdwcodepages: *mut u32, pcchcodepages: *mut i32) -> windows_core::Result<()>; fn CodePageToCodePages(&self, ucodepage: u32) -> windows_core::Result; @@ -212,14 +155,8 @@ pub trait IMLangCodePages_Impl: Sized { } impl windows_core::RuntimeName for IMLangCodePages {} impl IMLangCodePages_Vtbl { - pub const fn new() -> IMLangCodePages_Vtbl - where - Identity: IMLangCodePages_Impl, - { - unsafe extern "system" fn GetCharCodePages(this: *mut core::ffi::c_void, chsrc: u16, pdwcodepages: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangCodePages_Impl, - { + pub const fn new() -> IMLangCodePages_Vtbl { + unsafe extern "system" fn GetCharCodePages(this: *mut core::ffi::c_void, chsrc: u16, pdwcodepages: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLangCodePages_Impl::GetCharCodePages(this, core::mem::transmute_copy(&chsrc)) { Ok(ok__) => { @@ -229,17 +166,11 @@ impl IMLangCodePages_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStrCodePages(this: *mut core::ffi::c_void, pszsrc: windows_core::PCWSTR, cchsrc: i32, dwprioritycodepages: u32, pdwcodepages: *mut u32, pcchcodepages: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangCodePages_Impl, - { + unsafe extern "system" fn GetStrCodePages(this: *mut core::ffi::c_void, pszsrc: windows_core::PCWSTR, cchsrc: i32, dwprioritycodepages: u32, pdwcodepages: *mut u32, pcchcodepages: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangCodePages_Impl::GetStrCodePages(this, core::mem::transmute(&pszsrc), core::mem::transmute_copy(&cchsrc), core::mem::transmute_copy(&dwprioritycodepages), core::mem::transmute_copy(&pdwcodepages), core::mem::transmute_copy(&pcchcodepages)).into() } - unsafe extern "system" fn CodePageToCodePages(this: *mut core::ffi::c_void, ucodepage: u32, pdwcodepages: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangCodePages_Impl, - { + unsafe extern "system" fn CodePageToCodePages(this: *mut core::ffi::c_void, ucodepage: u32, pdwcodepages: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLangCodePages_Impl::CodePageToCodePages(this, core::mem::transmute_copy(&ucodepage)) { Ok(ok__) => { @@ -249,10 +180,7 @@ impl IMLangCodePages_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CodePagesToCodePage(this: *mut core::ffi::c_void, dwcodepages: u32, udefaultcodepage: u32, pucodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangCodePages_Impl, - { + unsafe extern "system" fn CodePagesToCodePage(this: *mut core::ffi::c_void, dwcodepages: u32, udefaultcodepage: u32, pucodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLangCodePages_Impl::CodePagesToCodePage(this, core::mem::transmute_copy(&dwcodepages), core::mem::transmute_copy(&udefaultcodepage)) { Ok(ok__) => { @@ -274,7 +202,7 @@ impl IMLangCodePages_Vtbl { iid == &::IID } } -pub trait IMLangConvertCharset_Impl: Sized { +pub trait IMLangConvertCharset_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32) -> windows_core::Result<()>; fn GetSourceCodePage(&self) -> windows_core::Result; fn GetDestinationCodePage(&self) -> windows_core::Result; @@ -285,21 +213,12 @@ pub trait IMLangConvertCharset_Impl: Sized { } impl windows_core::RuntimeName for IMLangConvertCharset {} impl IMLangConvertCharset_Vtbl { - pub const fn new() -> IMLangConvertCharset_Vtbl - where - Identity: IMLangConvertCharset_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32) -> windows_core::HRESULT - where - Identity: IMLangConvertCharset_Impl, - { + pub const fn new() -> IMLangConvertCharset_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangConvertCharset_Impl::Initialize(this, core::mem::transmute_copy(&uisrccodepage), core::mem::transmute_copy(&uidstcodepage), core::mem::transmute_copy(&dwproperty)).into() } - unsafe extern "system" fn GetSourceCodePage(this: *mut core::ffi::c_void, puisrccodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangConvertCharset_Impl, - { + unsafe extern "system" fn GetSourceCodePage(this: *mut core::ffi::c_void, puisrccodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLangConvertCharset_Impl::GetSourceCodePage(this) { Ok(ok__) => { @@ -309,10 +228,7 @@ impl IMLangConvertCharset_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDestinationCodePage(this: *mut core::ffi::c_void, puidstcodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangConvertCharset_Impl, - { + unsafe extern "system" fn GetDestinationCodePage(this: *mut core::ffi::c_void, puidstcodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLangConvertCharset_Impl::GetDestinationCodePage(this) { Ok(ok__) => { @@ -322,10 +238,7 @@ impl IMLangConvertCharset_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pdwproperty: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangConvertCharset_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pdwproperty: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLangConvertCharset_Impl::GetProperty(this) { Ok(ok__) => { @@ -335,24 +248,15 @@ impl IMLangConvertCharset_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoConversion(this: *mut core::ffi::c_void, psrcstr: *const u8, pcsrcsize: *mut u32, pdststr: *mut u8, pcdstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangConvertCharset_Impl, - { + unsafe extern "system" fn DoConversion(this: *mut core::ffi::c_void, psrcstr: *const u8, pcsrcsize: *mut u32, pdststr: *mut u8, pcdstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangConvertCharset_Impl::DoConversion(this, core::mem::transmute_copy(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize)).into() } - unsafe extern "system" fn DoConversionToUnicode(this: *mut core::ffi::c_void, psrcstr: windows_core::PCSTR, pcsrcsize: *mut u32, pdststr: windows_core::PWSTR, pcdstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangConvertCharset_Impl, - { + unsafe extern "system" fn DoConversionToUnicode(this: *mut core::ffi::c_void, psrcstr: windows_core::PCSTR, pcsrcsize: *mut u32, pdststr: windows_core::PWSTR, pcdstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangConvertCharset_Impl::DoConversionToUnicode(this, core::mem::transmute(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize)).into() } - unsafe extern "system" fn DoConversionFromUnicode(this: *mut core::ffi::c_void, psrcstr: windows_core::PCWSTR, pcsrcsize: *mut u32, pdststr: windows_core::PSTR, pcdstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangConvertCharset_Impl, - { + unsafe extern "system" fn DoConversionFromUnicode(this: *mut core::ffi::c_void, psrcstr: windows_core::PCWSTR, pcsrcsize: *mut u32, pdststr: windows_core::PSTR, pcdstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangConvertCharset_Impl::DoConversionFromUnicode(this, core::mem::transmute(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize)).into() } @@ -382,35 +286,20 @@ pub trait IMLangFontLink_Impl: Sized + IMLangCodePages_Impl { impl windows_core::RuntimeName for IMLangFontLink {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IMLangFontLink_Vtbl { - pub const fn new() -> IMLangFontLink_Vtbl - where - Identity: IMLangFontLink_Impl, - { - unsafe extern "system" fn GetFontCodePages(this: *mut core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, hfont: super::Graphics::Gdi::HFONT, pdwcodepages: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangFontLink_Impl, - { + pub const fn new() -> IMLangFontLink_Vtbl { + unsafe extern "system" fn GetFontCodePages(this: *mut core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, hfont: super::Graphics::Gdi::HFONT, pdwcodepages: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangFontLink_Impl::GetFontCodePages(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&hfont), core::mem::transmute_copy(&pdwcodepages)).into() } - unsafe extern "system" fn MapFont(this: *mut core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, dwcodepages: u32, hsrcfont: super::Graphics::Gdi::HFONT, phdestfont: *mut super::Graphics::Gdi::HFONT) -> windows_core::HRESULT - where - Identity: IMLangFontLink_Impl, - { + unsafe extern "system" fn MapFont(this: *mut core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, dwcodepages: u32, hsrcfont: super::Graphics::Gdi::HFONT, phdestfont: *mut super::Graphics::Gdi::HFONT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangFontLink_Impl::MapFont(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&dwcodepages), core::mem::transmute_copy(&hsrcfont), core::mem::transmute_copy(&phdestfont)).into() } - unsafe extern "system" fn ReleaseFont(this: *mut core::ffi::c_void, hfont: super::Graphics::Gdi::HFONT) -> windows_core::HRESULT - where - Identity: IMLangFontLink_Impl, - { + unsafe extern "system" fn ReleaseFont(this: *mut core::ffi::c_void, hfont: super::Graphics::Gdi::HFONT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangFontLink_Impl::ReleaseFont(this, core::mem::transmute_copy(&hfont)).into() } - unsafe extern "system" fn ResetFontMapping(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLangFontLink_Impl, - { + unsafe extern "system" fn ResetFontMapping(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangFontLink_Impl::ResetFontMapping(this).into() } @@ -440,56 +329,32 @@ pub trait IMLangFontLink2_Impl: Sized + IMLangCodePages_Impl { impl windows_core::RuntimeName for IMLangFontLink2 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IMLangFontLink2_Vtbl { - pub const fn new() -> IMLangFontLink2_Vtbl - where - Identity: IMLangFontLink2_Impl, - { - unsafe extern "system" fn GetFontCodePages(this: *mut core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, hfont: super::Graphics::Gdi::HFONT, pdwcodepages: *mut u32) -> windows_core::HRESULT - where - Identity: IMLangFontLink2_Impl, - { + pub const fn new() -> IMLangFontLink2_Vtbl { + unsafe extern "system" fn GetFontCodePages(this: *mut core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, hfont: super::Graphics::Gdi::HFONT, pdwcodepages: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangFontLink2_Impl::GetFontCodePages(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&hfont), core::mem::transmute_copy(&pdwcodepages)).into() } - unsafe extern "system" fn ReleaseFont(this: *mut core::ffi::c_void, hfont: super::Graphics::Gdi::HFONT) -> windows_core::HRESULT - where - Identity: IMLangFontLink2_Impl, - { + unsafe extern "system" fn ReleaseFont(this: *mut core::ffi::c_void, hfont: super::Graphics::Gdi::HFONT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangFontLink2_Impl::ReleaseFont(this, core::mem::transmute_copy(&hfont)).into() } - unsafe extern "system" fn ResetFontMapping(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMLangFontLink2_Impl, - { + unsafe extern "system" fn ResetFontMapping(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangFontLink2_Impl::ResetFontMapping(this).into() } - unsafe extern "system" fn MapFont(this: *mut core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, dwcodepages: u32, chsrc: u16, pfont: *mut super::Graphics::Gdi::HFONT) -> windows_core::HRESULT - where - Identity: IMLangFontLink2_Impl, - { + unsafe extern "system" fn MapFont(this: *mut core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, dwcodepages: u32, chsrc: u16, pfont: *mut super::Graphics::Gdi::HFONT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangFontLink2_Impl::MapFont(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&dwcodepages), core::mem::transmute_copy(&chsrc), core::mem::transmute_copy(&pfont)).into() } - unsafe extern "system" fn GetFontUnicodeRanges(this: *mut core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, puiranges: *const u32, puranges: *mut UNICODERANGE) -> windows_core::HRESULT - where - Identity: IMLangFontLink2_Impl, - { + unsafe extern "system" fn GetFontUnicodeRanges(this: *mut core::ffi::c_void, hdc: super::Graphics::Gdi::HDC, puiranges: *const u32, puranges: *mut UNICODERANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangFontLink2_Impl::GetFontUnicodeRanges(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&puiranges), core::mem::transmute_copy(&puranges)).into() } - unsafe extern "system" fn GetScriptFontInfo(this: *mut core::ffi::c_void, sid: u8, dwflags: u32, puifonts: *mut u32, pscriptfont: *mut SCRIPTFONTINFO) -> windows_core::HRESULT - where - Identity: IMLangFontLink2_Impl, - { + unsafe extern "system" fn GetScriptFontInfo(this: *mut core::ffi::c_void, sid: u8, dwflags: u32, puifonts: *mut u32, pscriptfont: *mut SCRIPTFONTINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangFontLink2_Impl::GetScriptFontInfo(this, core::mem::transmute_copy(&sid), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&puifonts), core::mem::transmute_copy(&pscriptfont)).into() } - unsafe extern "system" fn CodePageToScriptID(this: *mut core::ffi::c_void, uicodepage: u32, psid: *mut u8) -> windows_core::HRESULT - where - Identity: IMLangFontLink2_Impl, - { + unsafe extern "system" fn CodePageToScriptID(this: *mut core::ffi::c_void, uicodepage: u32, psid: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMLangFontLink2_Impl::CodePageToScriptID(this, core::mem::transmute_copy(&uicodepage)) { Ok(ok__) => { @@ -514,35 +379,23 @@ impl IMLangFontLink2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMLangLineBreakConsole_Impl: Sized { +pub trait IMLangLineBreakConsole_Impl: Sized + windows_core::IUnknownImpl { fn BreakLineML(&self, psrcmlstr: Option<&IMLangString>, lsrcpos: i32, lsrclen: i32, cmincolumns: i32, cmaxcolumns: i32, pllinelen: *mut i32, plskiplen: *mut i32) -> windows_core::Result<()>; fn BreakLineW(&self, locale: u32, pszsrc: &windows_core::PCWSTR, cchsrc: i32, cmaxcolumns: i32, pcchline: *mut i32, pcchskip: *mut i32) -> windows_core::Result<()>; fn BreakLineA(&self, locale: u32, ucodepage: u32, pszsrc: &windows_core::PCSTR, cchsrc: i32, cmaxcolumns: i32, pcchline: *mut i32, pcchskip: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMLangLineBreakConsole {} impl IMLangLineBreakConsole_Vtbl { - pub const fn new() -> IMLangLineBreakConsole_Vtbl - where - Identity: IMLangLineBreakConsole_Impl, - { - unsafe extern "system" fn BreakLineML(this: *mut core::ffi::c_void, psrcmlstr: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, cmincolumns: i32, cmaxcolumns: i32, pllinelen: *mut i32, plskiplen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangLineBreakConsole_Impl, - { + pub const fn new() -> IMLangLineBreakConsole_Vtbl { + unsafe extern "system" fn BreakLineML(this: *mut core::ffi::c_void, psrcmlstr: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, cmincolumns: i32, cmaxcolumns: i32, pllinelen: *mut i32, plskiplen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangLineBreakConsole_Impl::BreakLineML(this, windows_core::from_raw_borrowed(&psrcmlstr), core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrclen), core::mem::transmute_copy(&cmincolumns), core::mem::transmute_copy(&cmaxcolumns), core::mem::transmute_copy(&pllinelen), core::mem::transmute_copy(&plskiplen)).into() } - unsafe extern "system" fn BreakLineW(this: *mut core::ffi::c_void, locale: u32, pszsrc: windows_core::PCWSTR, cchsrc: i32, cmaxcolumns: i32, pcchline: *mut i32, pcchskip: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangLineBreakConsole_Impl, - { + unsafe extern "system" fn BreakLineW(this: *mut core::ffi::c_void, locale: u32, pszsrc: windows_core::PCWSTR, cchsrc: i32, cmaxcolumns: i32, pcchline: *mut i32, pcchskip: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangLineBreakConsole_Impl::BreakLineW(this, core::mem::transmute_copy(&locale), core::mem::transmute(&pszsrc), core::mem::transmute_copy(&cchsrc), core::mem::transmute_copy(&cmaxcolumns), core::mem::transmute_copy(&pcchline), core::mem::transmute_copy(&pcchskip)).into() } - unsafe extern "system" fn BreakLineA(this: *mut core::ffi::c_void, locale: u32, ucodepage: u32, pszsrc: windows_core::PCSTR, cchsrc: i32, cmaxcolumns: i32, pcchline: *mut i32, pcchskip: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangLineBreakConsole_Impl, - { + unsafe extern "system" fn BreakLineA(this: *mut core::ffi::c_void, locale: u32, ucodepage: u32, pszsrc: windows_core::PCSTR, cchsrc: i32, cmaxcolumns: i32, pcchline: *mut i32, pcchskip: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangLineBreakConsole_Impl::BreakLineA(this, core::mem::transmute_copy(&locale), core::mem::transmute_copy(&ucodepage), core::mem::transmute(&pszsrc), core::mem::transmute_copy(&cchsrc), core::mem::transmute_copy(&cmaxcolumns), core::mem::transmute_copy(&pcchline), core::mem::transmute_copy(&pcchskip)).into() } @@ -557,7 +410,7 @@ impl IMLangLineBreakConsole_Vtbl { iid == &::IID } } -pub trait IMLangString_Impl: Sized { +pub trait IMLangString_Impl: Sized + windows_core::IUnknownImpl { fn Sync(&self, fnoaccess: super::Foundation::BOOL) -> windows_core::Result<()>; fn GetLength(&self, pllen: *mut i32) -> windows_core::Result<()>; fn SetMLStr(&self, ldestpos: i32, ldestlen: i32, psrcmlstr: Option<&windows_core::IUnknown>, lsrcpos: i32, lsrclen: i32) -> windows_core::Result<()>; @@ -565,35 +418,20 @@ pub trait IMLangString_Impl: Sized { } impl windows_core::RuntimeName for IMLangString {} impl IMLangString_Vtbl { - pub const fn new() -> IMLangString_Vtbl - where - Identity: IMLangString_Impl, - { - unsafe extern "system" fn Sync(this: *mut core::ffi::c_void, fnoaccess: super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMLangString_Impl, - { + pub const fn new() -> IMLangString_Vtbl { + unsafe extern "system" fn Sync(this: *mut core::ffi::c_void, fnoaccess: super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangString_Impl::Sync(this, core::mem::transmute_copy(&fnoaccess)).into() } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pllen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangString_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pllen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangString_Impl::GetLength(this, core::mem::transmute_copy(&pllen)).into() } - unsafe extern "system" fn SetMLStr(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, psrcmlstr: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32) -> windows_core::HRESULT - where - Identity: IMLangString_Impl, - { + unsafe extern "system" fn SetMLStr(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, psrcmlstr: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangString_Impl::SetMLStr(this, core::mem::transmute_copy(&ldestpos), core::mem::transmute_copy(&ldestlen), windows_core::from_raw_borrowed(&psrcmlstr), core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrclen)).into() } - unsafe extern "system" fn GetMLStr(this: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, punkouter: *mut core::ffi::c_void, dwclscontext: u32, piid: *const windows_core::GUID, ppdestmlstr: *mut *mut core::ffi::c_void, pldestpos: *mut i32, pldestlen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangString_Impl, - { + unsafe extern "system" fn GetMLStr(this: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, punkouter: *mut core::ffi::c_void, dwclscontext: u32, piid: *const windows_core::GUID, ppdestmlstr: *mut *mut core::ffi::c_void, pldestpos: *mut i32, pldestlen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangString_Impl::GetMLStr(this, core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrclen), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&dwclscontext), core::mem::transmute_copy(&piid), core::mem::transmute_copy(&ppdestmlstr), core::mem::transmute_copy(&pldestpos), core::mem::transmute_copy(&pldestlen)).into() } @@ -621,63 +459,36 @@ pub trait IMLangStringAStr_Impl: Sized + IMLangString_Impl { } impl windows_core::RuntimeName for IMLangStringAStr {} impl IMLangStringAStr_Vtbl { - pub const fn new() -> IMLangStringAStr_Vtbl - where - Identity: IMLangStringAStr_Impl, - { - unsafe extern "system" fn SetAStr(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, ucodepage: u32, pszsrc: windows_core::PCSTR, cchsrc: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringAStr_Impl, - { + pub const fn new() -> IMLangStringAStr_Vtbl { + unsafe extern "system" fn SetAStr(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, ucodepage: u32, pszsrc: windows_core::PCSTR, cchsrc: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringAStr_Impl::SetAStr(this, core::mem::transmute_copy(&ldestpos), core::mem::transmute_copy(&ldestlen), core::mem::transmute_copy(&ucodepage), core::mem::transmute(&pszsrc), core::mem::transmute_copy(&cchsrc), core::mem::transmute_copy(&pcchactual), core::mem::transmute_copy(&plactuallen)).into() } - unsafe extern "system" fn SetStrBufA(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, ucodepage: u32, psrcbuf: *mut core::ffi::c_void, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringAStr_Impl, - { + unsafe extern "system" fn SetStrBufA(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, ucodepage: u32, psrcbuf: *mut core::ffi::c_void, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringAStr_Impl::SetStrBufA(this, core::mem::transmute_copy(&ldestpos), core::mem::transmute_copy(&ldestlen), core::mem::transmute_copy(&ucodepage), windows_core::from_raw_borrowed(&psrcbuf), core::mem::transmute_copy(&pcchactual), core::mem::transmute_copy(&plactuallen)).into() } - unsafe extern "system" fn GetAStr(this: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, ucodepagein: u32, pucodepageout: *const u32, pszdest: windows_core::PSTR, cchdest: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringAStr_Impl, - { + unsafe extern "system" fn GetAStr(this: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, ucodepagein: u32, pucodepageout: *const u32, pszdest: windows_core::PSTR, cchdest: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringAStr_Impl::GetAStr(this, core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrclen), core::mem::transmute_copy(&ucodepagein), core::mem::transmute_copy(&pucodepageout), core::mem::transmute_copy(&pszdest), core::mem::transmute_copy(&cchdest), core::mem::transmute_copy(&pcchactual), core::mem::transmute_copy(&plactuallen)).into() } - unsafe extern "system" fn GetStrBufA(this: *mut core::ffi::c_void, lsrcpos: i32, lsrcmaxlen: i32, pudestcodepage: *mut u32, ppdestbuf: *mut *mut core::ffi::c_void, pldestlen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringAStr_Impl, - { + unsafe extern "system" fn GetStrBufA(this: *mut core::ffi::c_void, lsrcpos: i32, lsrcmaxlen: i32, pudestcodepage: *mut u32, ppdestbuf: *mut *mut core::ffi::c_void, pldestlen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringAStr_Impl::GetStrBufA(this, core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrcmaxlen), core::mem::transmute_copy(&pudestcodepage), core::mem::transmute_copy(&ppdestbuf), core::mem::transmute_copy(&pldestlen)).into() } - unsafe extern "system" fn LockAStr(this: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, lflags: i32, ucodepagein: u32, cchrequest: i32, pucodepageout: *mut u32, ppszdest: *mut windows_core::PSTR, pcchdest: *mut i32, pldestlen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringAStr_Impl, - { + unsafe extern "system" fn LockAStr(this: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, lflags: i32, ucodepagein: u32, cchrequest: i32, pucodepageout: *mut u32, ppszdest: *mut windows_core::PSTR, pcchdest: *mut i32, pldestlen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringAStr_Impl::LockAStr(this, core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrclen), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&ucodepagein), core::mem::transmute_copy(&cchrequest), core::mem::transmute_copy(&pucodepageout), core::mem::transmute_copy(&ppszdest), core::mem::transmute_copy(&pcchdest), core::mem::transmute_copy(&pldestlen)).into() } - unsafe extern "system" fn UnlockAStr(this: *mut core::ffi::c_void, pszsrc: windows_core::PCSTR, cchsrc: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringAStr_Impl, - { + unsafe extern "system" fn UnlockAStr(this: *mut core::ffi::c_void, pszsrc: windows_core::PCSTR, cchsrc: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringAStr_Impl::UnlockAStr(this, core::mem::transmute(&pszsrc), core::mem::transmute_copy(&cchsrc), core::mem::transmute_copy(&pcchactual), core::mem::transmute_copy(&plactuallen)).into() } - unsafe extern "system" fn SetLocale(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, locale: u32) -> windows_core::HRESULT - where - Identity: IMLangStringAStr_Impl, - { + unsafe extern "system" fn SetLocale(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, locale: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringAStr_Impl::SetLocale(this, core::mem::transmute_copy(&ldestpos), core::mem::transmute_copy(&ldestlen), core::mem::transmute_copy(&locale)).into() } - unsafe extern "system" fn GetLocale(this: *mut core::ffi::c_void, lsrcpos: i32, lsrcmaxlen: i32, plocale: *mut u32, pllocalepos: *mut i32, pllocalelen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringAStr_Impl, - { + unsafe extern "system" fn GetLocale(this: *mut core::ffi::c_void, lsrcpos: i32, lsrcmaxlen: i32, plocale: *mut u32, pllocalepos: *mut i32, pllocalelen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringAStr_Impl::GetLocale(this, core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrcmaxlen), core::mem::transmute_copy(&plocale), core::mem::transmute_copy(&pllocalepos), core::mem::transmute_copy(&pllocalelen)).into() } @@ -697,7 +508,7 @@ impl IMLangStringAStr_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMLangStringBufA_Impl: Sized { +pub trait IMLangStringBufA_Impl: Sized + windows_core::IUnknownImpl { fn GetStatus(&self, plflags: *mut i32, pcchbuf: *mut i32) -> windows_core::Result<()>; fn LockBuf(&self, cchoffset: i32, cchmaxlock: i32, ppszbuf: *mut *mut i8, pcchbuf: *mut i32) -> windows_core::Result<()>; fn UnlockBuf(&self, pszbuf: &windows_core::PCSTR, cchoffset: i32, cchwrite: i32) -> windows_core::Result<()>; @@ -706,42 +517,24 @@ pub trait IMLangStringBufA_Impl: Sized { } impl windows_core::RuntimeName for IMLangStringBufA {} impl IMLangStringBufA_Vtbl { - pub const fn new() -> IMLangStringBufA_Vtbl - where - Identity: IMLangStringBufA_Impl, - { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, plflags: *mut i32, pcchbuf: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringBufA_Impl, - { + pub const fn new() -> IMLangStringBufA_Vtbl { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, plflags: *mut i32, pcchbuf: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringBufA_Impl::GetStatus(this, core::mem::transmute_copy(&plflags), core::mem::transmute_copy(&pcchbuf)).into() } - unsafe extern "system" fn LockBuf(this: *mut core::ffi::c_void, cchoffset: i32, cchmaxlock: i32, ppszbuf: *mut *mut i8, pcchbuf: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringBufA_Impl, - { + unsafe extern "system" fn LockBuf(this: *mut core::ffi::c_void, cchoffset: i32, cchmaxlock: i32, ppszbuf: *mut *mut i8, pcchbuf: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringBufA_Impl::LockBuf(this, core::mem::transmute_copy(&cchoffset), core::mem::transmute_copy(&cchmaxlock), core::mem::transmute_copy(&ppszbuf), core::mem::transmute_copy(&pcchbuf)).into() } - unsafe extern "system" fn UnlockBuf(this: *mut core::ffi::c_void, pszbuf: windows_core::PCSTR, cchoffset: i32, cchwrite: i32) -> windows_core::HRESULT - where - Identity: IMLangStringBufA_Impl, - { + unsafe extern "system" fn UnlockBuf(this: *mut core::ffi::c_void, pszbuf: windows_core::PCSTR, cchoffset: i32, cchwrite: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringBufA_Impl::UnlockBuf(this, core::mem::transmute(&pszbuf), core::mem::transmute_copy(&cchoffset), core::mem::transmute_copy(&cchwrite)).into() } - unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, cchoffset: i32, cchmaxinsert: i32, pcchactual: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringBufA_Impl, - { + unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, cchoffset: i32, cchmaxinsert: i32, pcchactual: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringBufA_Impl::Insert(this, core::mem::transmute_copy(&cchoffset), core::mem::transmute_copy(&cchmaxinsert), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, cchoffset: i32, cchdelete: i32) -> windows_core::HRESULT - where - Identity: IMLangStringBufA_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, cchoffset: i32, cchdelete: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringBufA_Impl::Delete(this, core::mem::transmute_copy(&cchoffset), core::mem::transmute_copy(&cchdelete)).into() } @@ -758,7 +551,7 @@ impl IMLangStringBufA_Vtbl { iid == &::IID } } -pub trait IMLangStringBufW_Impl: Sized { +pub trait IMLangStringBufW_Impl: Sized + windows_core::IUnknownImpl { fn GetStatus(&self, plflags: *mut i32, pcchbuf: *mut i32) -> windows_core::Result<()>; fn LockBuf(&self, cchoffset: i32, cchmaxlock: i32, ppszbuf: *mut *mut u16, pcchbuf: *mut i32) -> windows_core::Result<()>; fn UnlockBuf(&self, pszbuf: &windows_core::PCWSTR, cchoffset: i32, cchwrite: i32) -> windows_core::Result<()>; @@ -767,42 +560,24 @@ pub trait IMLangStringBufW_Impl: Sized { } impl windows_core::RuntimeName for IMLangStringBufW {} impl IMLangStringBufW_Vtbl { - pub const fn new() -> IMLangStringBufW_Vtbl - where - Identity: IMLangStringBufW_Impl, - { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, plflags: *mut i32, pcchbuf: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringBufW_Impl, - { + pub const fn new() -> IMLangStringBufW_Vtbl { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, plflags: *mut i32, pcchbuf: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringBufW_Impl::GetStatus(this, core::mem::transmute_copy(&plflags), core::mem::transmute_copy(&pcchbuf)).into() } - unsafe extern "system" fn LockBuf(this: *mut core::ffi::c_void, cchoffset: i32, cchmaxlock: i32, ppszbuf: *mut *mut u16, pcchbuf: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringBufW_Impl, - { + unsafe extern "system" fn LockBuf(this: *mut core::ffi::c_void, cchoffset: i32, cchmaxlock: i32, ppszbuf: *mut *mut u16, pcchbuf: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringBufW_Impl::LockBuf(this, core::mem::transmute_copy(&cchoffset), core::mem::transmute_copy(&cchmaxlock), core::mem::transmute_copy(&ppszbuf), core::mem::transmute_copy(&pcchbuf)).into() } - unsafe extern "system" fn UnlockBuf(this: *mut core::ffi::c_void, pszbuf: windows_core::PCWSTR, cchoffset: i32, cchwrite: i32) -> windows_core::HRESULT - where - Identity: IMLangStringBufW_Impl, - { + unsafe extern "system" fn UnlockBuf(this: *mut core::ffi::c_void, pszbuf: windows_core::PCWSTR, cchoffset: i32, cchwrite: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringBufW_Impl::UnlockBuf(this, core::mem::transmute(&pszbuf), core::mem::transmute_copy(&cchoffset), core::mem::transmute_copy(&cchwrite)).into() } - unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, cchoffset: i32, cchmaxinsert: i32, pcchactual: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringBufW_Impl, - { + unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, cchoffset: i32, cchmaxinsert: i32, pcchactual: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringBufW_Impl::Insert(this, core::mem::transmute_copy(&cchoffset), core::mem::transmute_copy(&cchmaxinsert), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, cchoffset: i32, cchdelete: i32) -> windows_core::HRESULT - where - Identity: IMLangStringBufW_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, cchoffset: i32, cchdelete: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringBufW_Impl::Delete(this, core::mem::transmute_copy(&cchoffset), core::mem::transmute_copy(&cchdelete)).into() } @@ -831,63 +606,36 @@ pub trait IMLangStringWStr_Impl: Sized + IMLangString_Impl { } impl windows_core::RuntimeName for IMLangStringWStr {} impl IMLangStringWStr_Vtbl { - pub const fn new() -> IMLangStringWStr_Vtbl - where - Identity: IMLangStringWStr_Impl, - { - unsafe extern "system" fn SetWStr(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, pszsrc: windows_core::PCWSTR, cchsrc: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringWStr_Impl, - { + pub const fn new() -> IMLangStringWStr_Vtbl { + unsafe extern "system" fn SetWStr(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, pszsrc: windows_core::PCWSTR, cchsrc: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringWStr_Impl::SetWStr(this, core::mem::transmute_copy(&ldestpos), core::mem::transmute_copy(&ldestlen), core::mem::transmute(&pszsrc), core::mem::transmute_copy(&cchsrc), core::mem::transmute_copy(&pcchactual), core::mem::transmute_copy(&plactuallen)).into() } - unsafe extern "system" fn SetStrBufW(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, psrcbuf: *mut core::ffi::c_void, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringWStr_Impl, - { + unsafe extern "system" fn SetStrBufW(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, psrcbuf: *mut core::ffi::c_void, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringWStr_Impl::SetStrBufW(this, core::mem::transmute_copy(&ldestpos), core::mem::transmute_copy(&ldestlen), windows_core::from_raw_borrowed(&psrcbuf), core::mem::transmute_copy(&pcchactual), core::mem::transmute_copy(&plactuallen)).into() } - unsafe extern "system" fn GetWStr(this: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, pszdest: windows_core::PWSTR, cchdest: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringWStr_Impl, - { + unsafe extern "system" fn GetWStr(this: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, pszdest: windows_core::PWSTR, cchdest: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringWStr_Impl::GetWStr(this, core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrclen), core::mem::transmute_copy(&pszdest), core::mem::transmute_copy(&cchdest), core::mem::transmute_copy(&pcchactual), core::mem::transmute_copy(&plactuallen)).into() } - unsafe extern "system" fn GetStrBufW(this: *mut core::ffi::c_void, lsrcpos: i32, lsrcmaxlen: i32, ppdestbuf: *mut *mut core::ffi::c_void, pldestlen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringWStr_Impl, - { + unsafe extern "system" fn GetStrBufW(this: *mut core::ffi::c_void, lsrcpos: i32, lsrcmaxlen: i32, ppdestbuf: *mut *mut core::ffi::c_void, pldestlen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringWStr_Impl::GetStrBufW(this, core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrcmaxlen), core::mem::transmute_copy(&ppdestbuf), core::mem::transmute_copy(&pldestlen)).into() } - unsafe extern "system" fn LockWStr(this: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, lflags: i32, cchrequest: i32, ppszdest: *mut windows_core::PWSTR, pcchdest: *mut i32, pldestlen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringWStr_Impl, - { + unsafe extern "system" fn LockWStr(this: *mut core::ffi::c_void, lsrcpos: i32, lsrclen: i32, lflags: i32, cchrequest: i32, ppszdest: *mut windows_core::PWSTR, pcchdest: *mut i32, pldestlen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringWStr_Impl::LockWStr(this, core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrclen), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&cchrequest), core::mem::transmute_copy(&ppszdest), core::mem::transmute_copy(&pcchdest), core::mem::transmute_copy(&pldestlen)).into() } - unsafe extern "system" fn UnlockWStr(this: *mut core::ffi::c_void, pszsrc: windows_core::PCWSTR, cchsrc: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringWStr_Impl, - { + unsafe extern "system" fn UnlockWStr(this: *mut core::ffi::c_void, pszsrc: windows_core::PCWSTR, cchsrc: i32, pcchactual: *mut i32, plactuallen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringWStr_Impl::UnlockWStr(this, core::mem::transmute(&pszsrc), core::mem::transmute_copy(&cchsrc), core::mem::transmute_copy(&pcchactual), core::mem::transmute_copy(&plactuallen)).into() } - unsafe extern "system" fn SetLocale(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, locale: u32) -> windows_core::HRESULT - where - Identity: IMLangStringWStr_Impl, - { + unsafe extern "system" fn SetLocale(this: *mut core::ffi::c_void, ldestpos: i32, ldestlen: i32, locale: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringWStr_Impl::SetLocale(this, core::mem::transmute_copy(&ldestpos), core::mem::transmute_copy(&ldestlen), core::mem::transmute_copy(&locale)).into() } - unsafe extern "system" fn GetLocale(this: *mut core::ffi::c_void, lsrcpos: i32, lsrcmaxlen: i32, plocale: *mut u32, pllocalepos: *mut i32, pllocalelen: *mut i32) -> windows_core::HRESULT - where - Identity: IMLangStringWStr_Impl, - { + unsafe extern "system" fn GetLocale(this: *mut core::ffi::c_void, lsrcpos: i32, lsrcmaxlen: i32, plocale: *mut u32, pllocalepos: *mut i32, pllocalelen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangStringWStr_Impl::GetLocale(this, core::mem::transmute_copy(&lsrcpos), core::mem::transmute_copy(&lsrcmaxlen), core::mem::transmute_copy(&plocale), core::mem::transmute_copy(&pllocalepos), core::mem::transmute_copy(&pllocalelen)).into() } @@ -907,7 +655,7 @@ impl IMLangStringWStr_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMultiLanguage_Impl: Sized { +pub trait IMultiLanguage_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberOfCodePageInfo(&self) -> windows_core::Result; fn GetCodePageInfo(&self, uicodepage: u32, pcodepageinfo: *mut MIMECPINFO) -> windows_core::Result<()>; fn GetFamilyCodePage(&self, uicodepage: u32) -> windows_core::Result; @@ -926,14 +674,8 @@ pub trait IMultiLanguage_Impl: Sized { } impl windows_core::RuntimeName for IMultiLanguage {} impl IMultiLanguage_Vtbl { - pub const fn new() -> IMultiLanguage_Vtbl - where - Identity: IMultiLanguage_Impl, - { - unsafe extern "system" fn GetNumberOfCodePageInfo(this: *mut core::ffi::c_void, pccodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + pub const fn new() -> IMultiLanguage_Vtbl { + unsafe extern "system" fn GetNumberOfCodePageInfo(this: *mut core::ffi::c_void, pccodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage_Impl::GetNumberOfCodePageInfo(this) { Ok(ok__) => { @@ -943,17 +685,11 @@ impl IMultiLanguage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCodePageInfo(this: *mut core::ffi::c_void, uicodepage: u32, pcodepageinfo: *mut MIMECPINFO) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn GetCodePageInfo(this: *mut core::ffi::c_void, uicodepage: u32, pcodepageinfo: *mut MIMECPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage_Impl::GetCodePageInfo(this, core::mem::transmute_copy(&uicodepage), core::mem::transmute_copy(&pcodepageinfo)).into() } - unsafe extern "system" fn GetFamilyCodePage(this: *mut core::ffi::c_void, uicodepage: u32, puifamilycodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn GetFamilyCodePage(this: *mut core::ffi::c_void, uicodepage: u32, puifamilycodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage_Impl::GetFamilyCodePage(this, core::mem::transmute_copy(&uicodepage)) { Ok(ok__) => { @@ -963,10 +699,7 @@ impl IMultiLanguage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumCodePages(this: *mut core::ffi::c_void, grfflags: u32, ppenumcodepage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn EnumCodePages(this: *mut core::ffi::c_void, grfflags: u32, ppenumcodepage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage_Impl::EnumCodePages(this, core::mem::transmute_copy(&grfflags)) { Ok(ok__) => { @@ -976,52 +709,31 @@ impl IMultiLanguage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCharsetInfo(this: *mut core::ffi::c_void, charset: core::mem::MaybeUninit, pcharsetinfo: *mut MIMECSETINFO) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn GetCharsetInfo(this: *mut core::ffi::c_void, charset: core::mem::MaybeUninit, pcharsetinfo: *mut MIMECSETINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage_Impl::GetCharsetInfo(this, core::mem::transmute(&charset), core::mem::transmute_copy(&pcharsetinfo)).into() } - unsafe extern "system" fn IsConvertible(this: *mut core::ffi::c_void, dwsrcencoding: u32, dwdstencoding: u32) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn IsConvertible(this: *mut core::ffi::c_void, dwsrcencoding: u32, dwdstencoding: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage_Impl::IsConvertible(this, core::mem::transmute_copy(&dwsrcencoding), core::mem::transmute_copy(&dwdstencoding)).into() } - unsafe extern "system" fn ConvertString(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 - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn ConvertString(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage_Impl::ConvertString(this, core::mem::transmute_copy(&pdwmode), core::mem::transmute_copy(&dwsrcencoding), core::mem::transmute_copy(&dwdstencoding), core::mem::transmute_copy(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize)).into() } - unsafe extern "system" fn ConvertStringToUnicode(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 - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn ConvertStringToUnicode(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage_Impl::ConvertStringToUnicode(this, core::mem::transmute_copy(&pdwmode), core::mem::transmute_copy(&dwencoding), core::mem::transmute(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize)).into() } - unsafe extern "system" fn ConvertStringFromUnicode(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 - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn ConvertStringFromUnicode(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage_Impl::ConvertStringFromUnicode(this, core::mem::transmute_copy(&pdwmode), core::mem::transmute_copy(&dwencoding), core::mem::transmute(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize)).into() } - unsafe extern "system" fn ConvertStringReset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn ConvertStringReset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage_Impl::ConvertStringReset(this).into() } - unsafe extern "system" fn GetRfc1766FromLcid(this: *mut core::ffi::c_void, locale: u32, pbstrrfc1766: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn GetRfc1766FromLcid(this: *mut core::ffi::c_void, locale: u32, pbstrrfc1766: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage_Impl::GetRfc1766FromLcid(this, core::mem::transmute_copy(&locale)) { Ok(ok__) => { @@ -1031,17 +743,11 @@ impl IMultiLanguage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLcidFromRfc1766(this: *mut core::ffi::c_void, plocale: *mut u32, bstrrfc1766: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn GetLcidFromRfc1766(this: *mut core::ffi::c_void, plocale: *mut u32, bstrrfc1766: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage_Impl::GetLcidFromRfc1766(this, core::mem::transmute_copy(&plocale), core::mem::transmute(&bstrrfc1766)).into() } - unsafe extern "system" fn EnumRfc1766(this: *mut core::ffi::c_void, ppenumrfc1766: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn EnumRfc1766(this: *mut core::ffi::c_void, ppenumrfc1766: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage_Impl::EnumRfc1766(this) { Ok(ok__) => { @@ -1051,17 +757,11 @@ impl IMultiLanguage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRfc1766Info(this: *mut core::ffi::c_void, locale: u32, prfc1766info: *mut RFC1766INFO) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn GetRfc1766Info(this: *mut core::ffi::c_void, locale: u32, prfc1766info: *mut RFC1766INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage_Impl::GetRfc1766Info(this, core::mem::transmute_copy(&locale), core::mem::transmute_copy(&prfc1766info)).into() } - unsafe extern "system" fn CreateConvertCharset(this: *mut core::ffi::c_void, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32, ppmlangconvertcharset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiLanguage_Impl, - { + unsafe extern "system" fn CreateConvertCharset(this: *mut core::ffi::c_void, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32, ppmlangconvertcharset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage_Impl::CreateConvertCharset(this, core::mem::transmute_copy(&uisrccodepage), core::mem::transmute_copy(&uidstcodepage), core::mem::transmute_copy(&dwproperty)) { Ok(ok__) => { @@ -1095,7 +795,7 @@ impl IMultiLanguage_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMultiLanguage2_Impl: Sized { +pub trait IMultiLanguage2_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberOfCodePageInfo(&self) -> windows_core::Result; fn GetCodePageInfo(&self, uicodepage: u32, langid: u16, pcodepageinfo: *mut MIMECPINFO) -> windows_core::Result<()>; fn GetFamilyCodePage(&self, uicodepage: u32) -> windows_core::Result; @@ -1128,14 +828,8 @@ pub trait IMultiLanguage2_Impl: Sized { impl windows_core::RuntimeName for IMultiLanguage2 {} #[cfg(feature = "Win32_System_Com")] impl IMultiLanguage2_Vtbl { - pub const fn new() -> IMultiLanguage2_Vtbl - where - Identity: IMultiLanguage2_Impl, - { - unsafe extern "system" fn GetNumberOfCodePageInfo(this: *mut core::ffi::c_void, pccodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + pub const fn new() -> IMultiLanguage2_Vtbl { + unsafe extern "system" fn GetNumberOfCodePageInfo(this: *mut core::ffi::c_void, pccodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage2_Impl::GetNumberOfCodePageInfo(this) { Ok(ok__) => { @@ -1145,17 +839,11 @@ impl IMultiLanguage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCodePageInfo(this: *mut core::ffi::c_void, uicodepage: u32, langid: u16, pcodepageinfo: *mut MIMECPINFO) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn GetCodePageInfo(this: *mut core::ffi::c_void, uicodepage: u32, langid: u16, pcodepageinfo: *mut MIMECPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::GetCodePageInfo(this, core::mem::transmute_copy(&uicodepage), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&pcodepageinfo)).into() } - unsafe extern "system" fn GetFamilyCodePage(this: *mut core::ffi::c_void, uicodepage: u32, puifamilycodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn GetFamilyCodePage(this: *mut core::ffi::c_void, uicodepage: u32, puifamilycodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage2_Impl::GetFamilyCodePage(this, core::mem::transmute_copy(&uicodepage)) { Ok(ok__) => { @@ -1165,10 +853,7 @@ impl IMultiLanguage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumCodePages(this: *mut core::ffi::c_void, grfflags: u32, langid: u16, ppenumcodepage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn EnumCodePages(this: *mut core::ffi::c_void, grfflags: u32, langid: u16, ppenumcodepage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage2_Impl::EnumCodePages(this, core::mem::transmute_copy(&grfflags), core::mem::transmute_copy(&langid)) { Ok(ok__) => { @@ -1178,52 +863,31 @@ impl IMultiLanguage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCharsetInfo(this: *mut core::ffi::c_void, charset: core::mem::MaybeUninit, pcharsetinfo: *mut MIMECSETINFO) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn GetCharsetInfo(this: *mut core::ffi::c_void, charset: core::mem::MaybeUninit, pcharsetinfo: *mut MIMECSETINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::GetCharsetInfo(this, core::mem::transmute(&charset), core::mem::transmute_copy(&pcharsetinfo)).into() } - unsafe extern "system" fn IsConvertible(this: *mut core::ffi::c_void, dwsrcencoding: u32, dwdstencoding: u32) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn IsConvertible(this: *mut core::ffi::c_void, dwsrcencoding: u32, dwdstencoding: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::IsConvertible(this, core::mem::transmute_copy(&dwsrcencoding), core::mem::transmute_copy(&dwdstencoding)).into() } - unsafe extern "system" fn ConvertString(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 - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn ConvertString(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::ConvertString(this, core::mem::transmute_copy(&pdwmode), core::mem::transmute_copy(&dwsrcencoding), core::mem::transmute_copy(&dwdstencoding), core::mem::transmute_copy(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize)).into() } - unsafe extern "system" fn ConvertStringToUnicode(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 - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn ConvertStringToUnicode(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::ConvertStringToUnicode(this, core::mem::transmute_copy(&pdwmode), core::mem::transmute_copy(&dwencoding), core::mem::transmute(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize)).into() } - unsafe extern "system" fn ConvertStringFromUnicode(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 - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn ConvertStringFromUnicode(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::ConvertStringFromUnicode(this, core::mem::transmute_copy(&pdwmode), core::mem::transmute_copy(&dwencoding), core::mem::transmute(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize)).into() } - unsafe extern "system" fn ConvertStringReset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn ConvertStringReset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::ConvertStringReset(this).into() } - unsafe extern "system" fn GetRfc1766FromLcid(this: *mut core::ffi::c_void, locale: u32, pbstrrfc1766: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn GetRfc1766FromLcid(this: *mut core::ffi::c_void, locale: u32, pbstrrfc1766: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage2_Impl::GetRfc1766FromLcid(this, core::mem::transmute_copy(&locale)) { Ok(ok__) => { @@ -1233,17 +897,11 @@ impl IMultiLanguage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLcidFromRfc1766(this: *mut core::ffi::c_void, plocale: *mut u32, bstrrfc1766: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn GetLcidFromRfc1766(this: *mut core::ffi::c_void, plocale: *mut u32, bstrrfc1766: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::GetLcidFromRfc1766(this, core::mem::transmute_copy(&plocale), core::mem::transmute(&bstrrfc1766)).into() } - unsafe extern "system" fn EnumRfc1766(this: *mut core::ffi::c_void, langid: u16, ppenumrfc1766: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn EnumRfc1766(this: *mut core::ffi::c_void, langid: u16, ppenumrfc1766: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage2_Impl::EnumRfc1766(this, core::mem::transmute_copy(&langid)) { Ok(ok__) => { @@ -1253,17 +911,11 @@ impl IMultiLanguage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRfc1766Info(this: *mut core::ffi::c_void, locale: u32, langid: u16, prfc1766info: *mut RFC1766INFO) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn GetRfc1766Info(this: *mut core::ffi::c_void, locale: u32, langid: u16, prfc1766info: *mut RFC1766INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::GetRfc1766Info(this, core::mem::transmute_copy(&locale), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&prfc1766info)).into() } - unsafe extern "system" fn CreateConvertCharset(this: *mut core::ffi::c_void, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32, ppmlangconvertcharset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn CreateConvertCharset(this: *mut core::ffi::c_void, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32, ppmlangconvertcharset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage2_Impl::CreateConvertCharset(this, core::mem::transmute_copy(&uisrccodepage), core::mem::transmute_copy(&uidstcodepage), core::mem::transmute_copy(&dwproperty)) { Ok(ok__) => { @@ -1273,73 +925,43 @@ impl IMultiLanguage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertStringInIStream(this: *mut core::ffi::c_void, pdwmode: *mut u32, dwflag: u32, lpfallback: windows_core::PCWSTR, dwsrcencoding: u32, dwdstencoding: u32, pstmin: *mut core::ffi::c_void, pstmout: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn ConvertStringInIStream(this: *mut core::ffi::c_void, pdwmode: *mut u32, dwflag: u32, lpfallback: windows_core::PCWSTR, dwsrcencoding: u32, dwdstencoding: u32, pstmin: *mut core::ffi::c_void, pstmout: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::ConvertStringInIStream(this, core::mem::transmute_copy(&pdwmode), core::mem::transmute_copy(&dwflag), core::mem::transmute(&lpfallback), core::mem::transmute_copy(&dwsrcencoding), core::mem::transmute_copy(&dwdstencoding), windows_core::from_raw_borrowed(&pstmin), windows_core::from_raw_borrowed(&pstmout)).into() } - unsafe extern "system" fn ConvertStringToUnicodeEx(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, dwflag: u32, lpfallback: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn ConvertStringToUnicodeEx(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, dwflag: u32, lpfallback: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::ConvertStringToUnicodeEx(this, core::mem::transmute_copy(&pdwmode), core::mem::transmute_copy(&dwencoding), core::mem::transmute(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize), core::mem::transmute_copy(&dwflag), core::mem::transmute(&lpfallback)).into() } - unsafe extern "system" fn ConvertStringFromUnicodeEx(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, dwflag: u32, lpfallback: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn ConvertStringFromUnicodeEx(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, dwflag: u32, lpfallback: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::ConvertStringFromUnicodeEx(this, core::mem::transmute_copy(&pdwmode), core::mem::transmute_copy(&dwencoding), core::mem::transmute(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&pdststr), core::mem::transmute_copy(&pcdstsize), core::mem::transmute_copy(&dwflag), core::mem::transmute(&lpfallback)).into() } - unsafe extern "system" fn DetectCodepageInIStream(this: *mut core::ffi::c_void, dwflag: u32, dwprefwincodepage: u32, pstmin: *mut core::ffi::c_void, lpencoding: *mut DetectEncodingInfo, pnscores: *mut i32) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn DetectCodepageInIStream(this: *mut core::ffi::c_void, dwflag: u32, dwprefwincodepage: u32, pstmin: *mut core::ffi::c_void, lpencoding: *mut DetectEncodingInfo, pnscores: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::DetectCodepageInIStream(this, core::mem::transmute_copy(&dwflag), core::mem::transmute_copy(&dwprefwincodepage), windows_core::from_raw_borrowed(&pstmin), core::mem::transmute_copy(&lpencoding), core::mem::transmute_copy(&pnscores)).into() } - unsafe extern "system" fn DetectInputCodepage(this: *mut core::ffi::c_void, dwflag: u32, dwprefwincodepage: u32, psrcstr: windows_core::PCSTR, pcsrcsize: *mut i32, lpencoding: *mut DetectEncodingInfo, pnscores: *mut i32) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn DetectInputCodepage(this: *mut core::ffi::c_void, dwflag: u32, dwprefwincodepage: u32, psrcstr: windows_core::PCSTR, pcsrcsize: *mut i32, lpencoding: *mut DetectEncodingInfo, pnscores: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::DetectInputCodepage(this, core::mem::transmute_copy(&dwflag), core::mem::transmute_copy(&dwprefwincodepage), core::mem::transmute(&psrcstr), core::mem::transmute_copy(&pcsrcsize), core::mem::transmute_copy(&lpencoding), core::mem::transmute_copy(&pnscores)).into() } - unsafe extern "system" fn ValidateCodePage(this: *mut core::ffi::c_void, uicodepage: u32, hwnd: super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn ValidateCodePage(this: *mut core::ffi::c_void, uicodepage: u32, hwnd: super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::ValidateCodePage(this, core::mem::transmute_copy(&uicodepage), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn GetCodePageDescription(this: *mut core::ffi::c_void, uicodepage: u32, lcid: u32, lpwidecharstr: windows_core::PWSTR, cchwidechar: i32) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn GetCodePageDescription(this: *mut core::ffi::c_void, uicodepage: u32, lcid: u32, lpwidecharstr: windows_core::PWSTR, cchwidechar: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::GetCodePageDescription(this, core::mem::transmute_copy(&uicodepage), core::mem::transmute_copy(&lcid), core::mem::transmute_copy(&lpwidecharstr), core::mem::transmute_copy(&cchwidechar)).into() } - unsafe extern "system" fn IsCodePageInstallable(this: *mut core::ffi::c_void, uicodepage: u32) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn IsCodePageInstallable(this: *mut core::ffi::c_void, uicodepage: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::IsCodePageInstallable(this, core::mem::transmute_copy(&uicodepage)).into() } - unsafe extern "system" fn SetMimeDBSource(this: *mut core::ffi::c_void, dwsource: MIMECONTF) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn SetMimeDBSource(this: *mut core::ffi::c_void, dwsource: MIMECONTF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::SetMimeDBSource(this, core::mem::transmute_copy(&dwsource)).into() } - unsafe extern "system" fn GetNumberOfScripts(this: *mut core::ffi::c_void, pnscripts: *mut u32) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn GetNumberOfScripts(this: *mut core::ffi::c_void, pnscripts: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage2_Impl::GetNumberOfScripts(this) { Ok(ok__) => { @@ -1349,10 +971,7 @@ impl IMultiLanguage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumScripts(this: *mut core::ffi::c_void, dwflags: u32, langid: u16, ppenumscript: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn EnumScripts(this: *mut core::ffi::c_void, dwflags: u32, langid: u16, ppenumscript: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiLanguage2_Impl::EnumScripts(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&langid)) { Ok(ok__) => { @@ -1362,10 +981,7 @@ impl IMultiLanguage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ValidateCodePageEx(this: *mut core::ffi::c_void, uicodepage: u32, hwnd: super::Foundation::HWND, dwfiodcontrol: u32) -> windows_core::HRESULT - where - Identity: IMultiLanguage2_Impl, - { + unsafe extern "system" fn ValidateCodePageEx(this: *mut core::ffi::c_void, uicodepage: u32, hwnd: super::Foundation::HWND, dwfiodcontrol: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage2_Impl::ValidateCodePageEx(this, core::mem::transmute_copy(&uicodepage), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwfiodcontrol)).into() } @@ -1413,21 +1029,12 @@ pub trait IMultiLanguage3_Impl: Sized + IMultiLanguage2_Impl { impl windows_core::RuntimeName for IMultiLanguage3 {} #[cfg(feature = "Win32_System_Com")] impl IMultiLanguage3_Vtbl { - pub const fn new() -> IMultiLanguage3_Vtbl - where - Identity: IMultiLanguage3_Impl, - { - unsafe extern "system" fn DetectOutboundCodePage(this: *mut core::ffi::c_void, dwflags: u32, lpwidecharstr: windows_core::PCWSTR, cchwidechar: u32, puipreferredcodepages: *const u32, npreferredcodepages: u32, puidetectedcodepages: *mut u32, pndetectedcodepages: *mut u32, lpspecialchar: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMultiLanguage3_Impl, - { + pub const fn new() -> IMultiLanguage3_Vtbl { + unsafe extern "system" fn DetectOutboundCodePage(this: *mut core::ffi::c_void, dwflags: u32, lpwidecharstr: windows_core::PCWSTR, cchwidechar: u32, puipreferredcodepages: *const u32, npreferredcodepages: u32, puidetectedcodepages: *mut u32, pndetectedcodepages: *mut u32, lpspecialchar: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage3_Impl::DetectOutboundCodePage(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&lpwidecharstr), core::mem::transmute_copy(&cchwidechar), core::mem::transmute_copy(&puipreferredcodepages), core::mem::transmute_copy(&npreferredcodepages), core::mem::transmute_copy(&puidetectedcodepages), core::mem::transmute_copy(&pndetectedcodepages), core::mem::transmute(&lpspecialchar)).into() } - unsafe extern "system" fn DetectOutboundCodePageInIStream(this: *mut core::ffi::c_void, dwflags: u32, pstrin: *mut core::ffi::c_void, puipreferredcodepages: *const u32, npreferredcodepages: u32, puidetectedcodepages: *mut u32, pndetectedcodepages: *mut u32, lpspecialchar: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMultiLanguage3_Impl, - { + unsafe extern "system" fn DetectOutboundCodePageInIStream(this: *mut core::ffi::c_void, dwflags: u32, pstrin: *mut core::ffi::c_void, puipreferredcodepages: *const u32, npreferredcodepages: u32, puidetectedcodepages: *mut u32, pndetectedcodepages: *mut u32, lpspecialchar: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiLanguage3_Impl::DetectOutboundCodePageInIStream(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pstrin), core::mem::transmute_copy(&puipreferredcodepages), core::mem::transmute_copy(&npreferredcodepages), core::mem::transmute_copy(&puidetectedcodepages), core::mem::transmute_copy(&pndetectedcodepages), core::mem::transmute(&lpspecialchar)).into() } @@ -1442,7 +1049,7 @@ impl IMultiLanguage3_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOptionDescription_Impl: Sized { +pub trait IOptionDescription_Impl: Sized + windows_core::IUnknownImpl { fn Id(&self) -> windows_core::Result; fn Heading(&self) -> windows_core::Result; fn Description(&self) -> windows_core::Result; @@ -1452,14 +1059,8 @@ pub trait IOptionDescription_Impl: Sized { impl windows_core::RuntimeName for IOptionDescription {} #[cfg(feature = "Win32_System_Com")] impl IOptionDescription_Vtbl { - pub const fn new() -> IOptionDescription_Vtbl - where - Identity: IOptionDescription_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOptionDescription_Impl, - { + pub const fn new() -> IOptionDescription_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOptionDescription_Impl::Id(this) { Ok(ok__) => { @@ -1469,10 +1070,7 @@ impl IOptionDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Heading(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOptionDescription_Impl, - { + unsafe extern "system" fn Heading(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOptionDescription_Impl::Heading(this) { Ok(ok__) => { @@ -1482,10 +1080,7 @@ impl IOptionDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOptionDescription_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOptionDescription_Impl::Description(this) { Ok(ok__) => { @@ -1495,10 +1090,7 @@ impl IOptionDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Labels(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOptionDescription_Impl, - { + unsafe extern "system" fn Labels(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOptionDescription_Impl::Labels(this) { Ok(ok__) => { @@ -1521,7 +1113,7 @@ impl IOptionDescription_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISpellCheckProvider_Impl: Sized { +pub trait ISpellCheckProvider_Impl: Sized + windows_core::IUnknownImpl { fn LanguageTag(&self) -> windows_core::Result; fn Check(&self, text: &windows_core::PCWSTR) -> windows_core::Result; fn Suggest(&self, word: &windows_core::PCWSTR) -> windows_core::Result; @@ -1537,14 +1129,8 @@ pub trait ISpellCheckProvider_Impl: Sized { impl windows_core::RuntimeName for ISpellCheckProvider {} #[cfg(feature = "Win32_System_Com")] impl ISpellCheckProvider_Vtbl { - pub const fn new() -> ISpellCheckProvider_Vtbl - where - Identity: ISpellCheckProvider_Impl, - { - unsafe extern "system" fn LanguageTag(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpellCheckProvider_Impl, - { + pub const fn new() -> ISpellCheckProvider_Vtbl { + unsafe extern "system" fn LanguageTag(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProvider_Impl::LanguageTag(this) { Ok(ok__) => { @@ -1554,10 +1140,7 @@ impl ISpellCheckProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Check(this: *mut core::ffi::c_void, text: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellCheckProvider_Impl, - { + unsafe extern "system" fn Check(this: *mut core::ffi::c_void, text: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProvider_Impl::Check(this, core::mem::transmute(&text)) { Ok(ok__) => { @@ -1567,10 +1150,7 @@ impl ISpellCheckProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Suggest(this: *mut core::ffi::c_void, word: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellCheckProvider_Impl, - { + unsafe extern "system" fn Suggest(this: *mut core::ffi::c_void, word: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProvider_Impl::Suggest(this, core::mem::transmute(&word)) { Ok(ok__) => { @@ -1580,10 +1160,7 @@ impl ISpellCheckProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOptionValue(this: *mut core::ffi::c_void, optionid: windows_core::PCWSTR, value: *mut u8) -> windows_core::HRESULT - where - Identity: ISpellCheckProvider_Impl, - { + unsafe extern "system" fn GetOptionValue(this: *mut core::ffi::c_void, optionid: windows_core::PCWSTR, value: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProvider_Impl::GetOptionValue(this, core::mem::transmute(&optionid)) { Ok(ok__) => { @@ -1593,17 +1170,11 @@ impl ISpellCheckProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOptionValue(this: *mut core::ffi::c_void, optionid: windows_core::PCWSTR, value: u8) -> windows_core::HRESULT - where - Identity: ISpellCheckProvider_Impl, - { + unsafe extern "system" fn SetOptionValue(this: *mut core::ffi::c_void, optionid: windows_core::PCWSTR, value: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpellCheckProvider_Impl::SetOptionValue(this, core::mem::transmute(&optionid), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn OptionIds(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellCheckProvider_Impl, - { + unsafe extern "system" fn OptionIds(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProvider_Impl::OptionIds(this) { Ok(ok__) => { @@ -1613,10 +1184,7 @@ impl ISpellCheckProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpellCheckProvider_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProvider_Impl::Id(this) { Ok(ok__) => { @@ -1626,10 +1194,7 @@ impl ISpellCheckProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalizedName(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpellCheckProvider_Impl, - { + unsafe extern "system" fn LocalizedName(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProvider_Impl::LocalizedName(this) { Ok(ok__) => { @@ -1639,10 +1204,7 @@ impl ISpellCheckProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOptionDescription(this: *mut core::ffi::c_void, optionid: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellCheckProvider_Impl, - { + unsafe extern "system" fn GetOptionDescription(this: *mut core::ffi::c_void, optionid: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProvider_Impl::GetOptionDescription(this, core::mem::transmute(&optionid)) { Ok(ok__) => { @@ -1652,10 +1214,7 @@ impl ISpellCheckProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeWordlist(this: *mut core::ffi::c_void, wordlisttype: WORDLIST_TYPE, words: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellCheckProvider_Impl, - { + unsafe extern "system" fn InitializeWordlist(this: *mut core::ffi::c_void, wordlisttype: WORDLIST_TYPE, words: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpellCheckProvider_Impl::InitializeWordlist(this, core::mem::transmute_copy(&wordlisttype), windows_core::from_raw_borrowed(&words)).into() } @@ -1678,7 +1237,7 @@ impl ISpellCheckProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISpellCheckProviderFactory_Impl: Sized { +pub trait ISpellCheckProviderFactory_Impl: Sized + windows_core::IUnknownImpl { fn SupportedLanguages(&self) -> windows_core::Result; fn IsSupported(&self, languagetag: &windows_core::PCWSTR) -> windows_core::Result; fn CreateSpellCheckProvider(&self, languagetag: &windows_core::PCWSTR) -> windows_core::Result; @@ -1687,14 +1246,8 @@ pub trait ISpellCheckProviderFactory_Impl: Sized { impl windows_core::RuntimeName for ISpellCheckProviderFactory {} #[cfg(feature = "Win32_System_Com")] impl ISpellCheckProviderFactory_Vtbl { - pub const fn new() -> ISpellCheckProviderFactory_Vtbl - where - Identity: ISpellCheckProviderFactory_Impl, - { - unsafe extern "system" fn SupportedLanguages(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellCheckProviderFactory_Impl, - { + pub const fn new() -> ISpellCheckProviderFactory_Vtbl { + unsafe extern "system" fn SupportedLanguages(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProviderFactory_Impl::SupportedLanguages(this) { Ok(ok__) => { @@ -1704,10 +1257,7 @@ impl ISpellCheckProviderFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpellCheckProviderFactory_Impl, - { + unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProviderFactory_Impl::IsSupported(this, core::mem::transmute(&languagetag)) { Ok(ok__) => { @@ -1717,10 +1267,7 @@ impl ISpellCheckProviderFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSpellCheckProvider(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellCheckProviderFactory_Impl, - { + unsafe extern "system" fn CreateSpellCheckProvider(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProviderFactory_Impl::CreateSpellCheckProvider(this, core::mem::transmute(&languagetag)) { Ok(ok__) => { @@ -1742,7 +1289,7 @@ impl ISpellCheckProviderFactory_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISpellChecker_Impl: Sized { +pub trait ISpellChecker_Impl: Sized + windows_core::IUnknownImpl { fn LanguageTag(&self) -> windows_core::Result; fn Check(&self, text: &windows_core::PCWSTR) -> windows_core::Result; fn Suggest(&self, word: &windows_core::PCWSTR) -> windows_core::Result; @@ -1762,14 +1309,8 @@ pub trait ISpellChecker_Impl: Sized { impl windows_core::RuntimeName for ISpellChecker {} #[cfg(feature = "Win32_System_Com")] impl ISpellChecker_Vtbl { - pub const fn new() -> ISpellChecker_Vtbl - where - Identity: ISpellChecker_Impl, - { - unsafe extern "system" fn LanguageTag(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + pub const fn new() -> ISpellChecker_Vtbl { + unsafe extern "system" fn LanguageTag(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellChecker_Impl::LanguageTag(this) { Ok(ok__) => { @@ -1779,10 +1320,7 @@ impl ISpellChecker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Check(this: *mut core::ffi::c_void, text: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn Check(this: *mut core::ffi::c_void, text: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellChecker_Impl::Check(this, core::mem::transmute(&text)) { Ok(ok__) => { @@ -1792,10 +1330,7 @@ impl ISpellChecker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Suggest(this: *mut core::ffi::c_void, word: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn Suggest(this: *mut core::ffi::c_void, word: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellChecker_Impl::Suggest(this, core::mem::transmute(&word)) { Ok(ok__) => { @@ -1805,31 +1340,19 @@ impl ISpellChecker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, word: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, word: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpellChecker_Impl::Add(this, core::mem::transmute(&word)).into() } - unsafe extern "system" fn Ignore(this: *mut core::ffi::c_void, word: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn Ignore(this: *mut core::ffi::c_void, word: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpellChecker_Impl::Ignore(this, core::mem::transmute(&word)).into() } - unsafe extern "system" fn AutoCorrect(this: *mut core::ffi::c_void, from: windows_core::PCWSTR, to: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn AutoCorrect(this: *mut core::ffi::c_void, from: windows_core::PCWSTR, to: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpellChecker_Impl::AutoCorrect(this, core::mem::transmute(&from), core::mem::transmute(&to)).into() } - unsafe extern "system" fn GetOptionValue(this: *mut core::ffi::c_void, optionid: windows_core::PCWSTR, value: *mut u8) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn GetOptionValue(this: *mut core::ffi::c_void, optionid: windows_core::PCWSTR, value: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellChecker_Impl::GetOptionValue(this, core::mem::transmute(&optionid)) { Ok(ok__) => { @@ -1839,10 +1362,7 @@ impl ISpellChecker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OptionIds(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn OptionIds(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellChecker_Impl::OptionIds(this) { Ok(ok__) => { @@ -1852,10 +1372,7 @@ impl ISpellChecker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellChecker_Impl::Id(this) { Ok(ok__) => { @@ -1865,10 +1382,7 @@ impl ISpellChecker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalizedName(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn LocalizedName(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellChecker_Impl::LocalizedName(this) { Ok(ok__) => { @@ -1878,10 +1392,7 @@ impl ISpellChecker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn add_SpellCheckerChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, eventcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn add_SpellCheckerChanged(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, eventcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellChecker_Impl::add_SpellCheckerChanged(this, windows_core::from_raw_borrowed(&handler)) { Ok(ok__) => { @@ -1891,17 +1402,11 @@ impl ISpellChecker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn remove_SpellCheckerChanged(this: *mut core::ffi::c_void, eventcookie: u32) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn remove_SpellCheckerChanged(this: *mut core::ffi::c_void, eventcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpellChecker_Impl::remove_SpellCheckerChanged(this, core::mem::transmute_copy(&eventcookie)).into() } - unsafe extern "system" fn GetOptionDescription(this: *mut core::ffi::c_void, optionid: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn GetOptionDescription(this: *mut core::ffi::c_void, optionid: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellChecker_Impl::GetOptionDescription(this, core::mem::transmute(&optionid)) { Ok(ok__) => { @@ -1911,10 +1416,7 @@ impl ISpellChecker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComprehensiveCheck(this: *mut core::ffi::c_void, text: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellChecker_Impl, - { + unsafe extern "system" fn ComprehensiveCheck(this: *mut core::ffi::c_void, text: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellChecker_Impl::ComprehensiveCheck(this, core::mem::transmute(&text)) { Ok(ok__) => { @@ -1954,14 +1456,8 @@ pub trait ISpellChecker2_Impl: Sized + ISpellChecker_Impl { impl windows_core::RuntimeName for ISpellChecker2 {} #[cfg(feature = "Win32_System_Com")] impl ISpellChecker2_Vtbl { - pub const fn new() -> ISpellChecker2_Vtbl - where - Identity: ISpellChecker2_Impl, - { - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, word: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpellChecker2_Impl, - { + pub const fn new() -> ISpellChecker2_Vtbl { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, word: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpellChecker2_Impl::Remove(this, core::mem::transmute(&word)).into() } @@ -1971,19 +1467,13 @@ impl ISpellChecker2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpellCheckerChangedEventHandler_Impl: Sized { +pub trait ISpellCheckerChangedEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self, sender: Option<&ISpellChecker>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpellCheckerChangedEventHandler {} impl ISpellCheckerChangedEventHandler_Vtbl { - pub const fn new() -> ISpellCheckerChangedEventHandler_Vtbl - where - Identity: ISpellCheckerChangedEventHandler_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellCheckerChangedEventHandler_Impl, - { + pub const fn new() -> ISpellCheckerChangedEventHandler_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpellCheckerChangedEventHandler_Impl::Invoke(this, windows_core::from_raw_borrowed(&sender)).into() } @@ -1994,7 +1484,7 @@ impl ISpellCheckerChangedEventHandler_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISpellCheckerFactory_Impl: Sized { +pub trait ISpellCheckerFactory_Impl: Sized + windows_core::IUnknownImpl { fn SupportedLanguages(&self) -> windows_core::Result; fn IsSupported(&self, languagetag: &windows_core::PCWSTR) -> windows_core::Result; fn CreateSpellChecker(&self, languagetag: &windows_core::PCWSTR) -> windows_core::Result; @@ -2003,14 +1493,8 @@ pub trait ISpellCheckerFactory_Impl: Sized { impl windows_core::RuntimeName for ISpellCheckerFactory {} #[cfg(feature = "Win32_System_Com")] impl ISpellCheckerFactory_Vtbl { - pub const fn new() -> ISpellCheckerFactory_Vtbl - where - Identity: ISpellCheckerFactory_Impl, - { - unsafe extern "system" fn SupportedLanguages(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellCheckerFactory_Impl, - { + pub const fn new() -> ISpellCheckerFactory_Vtbl { + unsafe extern "system" fn SupportedLanguages(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckerFactory_Impl::SupportedLanguages(this) { Ok(ok__) => { @@ -2020,10 +1504,7 @@ impl ISpellCheckerFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpellCheckerFactory_Impl, - { + unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckerFactory_Impl::IsSupported(this, core::mem::transmute(&languagetag)) { Ok(ok__) => { @@ -2033,10 +1514,7 @@ impl ISpellCheckerFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSpellChecker(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpellCheckerFactory_Impl, - { + unsafe extern "system" fn CreateSpellChecker(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckerFactory_Impl::CreateSpellChecker(this, core::mem::transmute(&languagetag)) { Ok(ok__) => { @@ -2057,7 +1535,7 @@ impl ISpellCheckerFactory_Vtbl { iid == &::IID } } -pub trait ISpellingError_Impl: Sized { +pub trait ISpellingError_Impl: Sized + windows_core::IUnknownImpl { fn StartIndex(&self) -> windows_core::Result; fn Length(&self) -> windows_core::Result; fn CorrectiveAction(&self) -> windows_core::Result; @@ -2065,14 +1543,8 @@ pub trait ISpellingError_Impl: Sized { } impl windows_core::RuntimeName for ISpellingError {} impl ISpellingError_Vtbl { - pub const fn new() -> ISpellingError_Vtbl - where - Identity: ISpellingError_Impl, - { - unsafe extern "system" fn StartIndex(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT - where - Identity: ISpellingError_Impl, - { + pub const fn new() -> ISpellingError_Vtbl { + unsafe extern "system" fn StartIndex(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellingError_Impl::StartIndex(this) { Ok(ok__) => { @@ -2082,10 +1554,7 @@ impl ISpellingError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT - where - Identity: ISpellingError_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellingError_Impl::Length(this) { Ok(ok__) => { @@ -2095,10 +1564,7 @@ impl ISpellingError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorrectiveAction(this: *mut core::ffi::c_void, value: *mut CORRECTIVE_ACTION) -> windows_core::HRESULT - where - Identity: ISpellingError_Impl, - { + unsafe extern "system" fn CorrectiveAction(this: *mut core::ffi::c_void, value: *mut CORRECTIVE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellingError_Impl::CorrectiveAction(this) { Ok(ok__) => { @@ -2108,10 +1574,7 @@ impl ISpellingError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Replacement(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpellingError_Impl, - { + unsafe extern "system" fn Replacement(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellingError_Impl::Replacement(this) { Ok(ok__) => { @@ -2133,27 +1596,18 @@ impl ISpellingError_Vtbl { iid == &::IID } } -pub trait IUserDictionariesRegistrar_Impl: Sized { +pub trait IUserDictionariesRegistrar_Impl: Sized + windows_core::IUnknownImpl { fn RegisterUserDictionary(&self, dictionarypath: &windows_core::PCWSTR, languagetag: &windows_core::PCWSTR) -> windows_core::Result<()>; fn UnregisterUserDictionary(&self, dictionarypath: &windows_core::PCWSTR, languagetag: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUserDictionariesRegistrar {} impl IUserDictionariesRegistrar_Vtbl { - pub const fn new() -> IUserDictionariesRegistrar_Vtbl - where - Identity: IUserDictionariesRegistrar_Impl, - { - unsafe extern "system" fn RegisterUserDictionary(this: *mut core::ffi::c_void, dictionarypath: windows_core::PCWSTR, languagetag: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUserDictionariesRegistrar_Impl, - { + pub const fn new() -> IUserDictionariesRegistrar_Vtbl { + unsafe extern "system" fn RegisterUserDictionary(this: *mut core::ffi::c_void, dictionarypath: windows_core::PCWSTR, languagetag: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserDictionariesRegistrar_Impl::RegisterUserDictionary(this, core::mem::transmute(&dictionarypath), core::mem::transmute(&languagetag)).into() } - unsafe extern "system" fn UnregisterUserDictionary(this: *mut core::ffi::c_void, dictionarypath: windows_core::PCWSTR, languagetag: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUserDictionariesRegistrar_Impl, - { + unsafe extern "system" fn UnregisterUserDictionary(this: *mut core::ffi::c_void, dictionarypath: windows_core::PCWSTR, languagetag: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserDictionariesRegistrar_Impl::UnregisterUserDictionary(this, core::mem::transmute(&dictionarypath), core::mem::transmute(&languagetag)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/impl.rs index 476fe5a8b1..cc112fb8a4 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/impl.rs @@ -8,28 +8,16 @@ pub trait ICompositionFramePresentStatistics_Impl: Sized + IPresentStatistics_Im impl windows_core::RuntimeName for ICompositionFramePresentStatistics {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ICompositionFramePresentStatistics_Vtbl { - pub const fn new() -> ICompositionFramePresentStatistics_Vtbl - where - Identity: ICompositionFramePresentStatistics_Impl, - { - unsafe extern "system" fn GetContentTag(this: *mut core::ffi::c_void) -> usize - where - Identity: ICompositionFramePresentStatistics_Impl, - { + pub const fn new() -> ICompositionFramePresentStatistics_Vtbl { + unsafe extern "system" fn GetContentTag(this: *mut core::ffi::c_void) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionFramePresentStatistics_Impl::GetContentTag(this) } - unsafe extern "system" fn GetCompositionFrameId(this: *mut core::ffi::c_void) -> u64 - where - Identity: ICompositionFramePresentStatistics_Impl, - { + unsafe extern "system" fn GetCompositionFrameId(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionFramePresentStatistics_Impl::GetCompositionFrameId(this) } - unsafe extern "system" fn GetDisplayInstanceArray(this: *mut core::ffi::c_void, displayinstancearraycount: *mut u32, displayinstancearray: *mut *mut CompositionFrameDisplayInstance) - where - Identity: ICompositionFramePresentStatistics_Impl, - { + unsafe extern "system" fn GetDisplayInstanceArray(this: *mut core::ffi::c_void, displayinstancearraycount: *mut u32, displayinstancearray: *mut *mut CompositionFrameDisplayInstance) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionFramePresentStatistics_Impl::GetDisplayInstanceArray(this, core::mem::transmute_copy(&displayinstancearraycount), core::mem::transmute_copy(&displayinstancearray)) } @@ -53,42 +41,24 @@ pub trait IIndependentFlipFramePresentStatistics_Impl: Sized + IPresentStatistic } impl windows_core::RuntimeName for IIndependentFlipFramePresentStatistics {} impl IIndependentFlipFramePresentStatistics_Vtbl { - pub const fn new() -> IIndependentFlipFramePresentStatistics_Vtbl - where - Identity: IIndependentFlipFramePresentStatistics_Impl, - { - unsafe extern "system" fn GetOutputAdapterLUID(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::LUID) - where - Identity: IIndependentFlipFramePresentStatistics_Impl, - { + pub const fn new() -> IIndependentFlipFramePresentStatistics_Vtbl { + unsafe extern "system" fn GetOutputAdapterLUID(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::LUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = IIndependentFlipFramePresentStatistics_Impl::GetOutputAdapterLUID(this) } - unsafe extern "system" fn GetOutputVidPnSourceId(this: *mut core::ffi::c_void) -> u32 - where - Identity: IIndependentFlipFramePresentStatistics_Impl, - { + unsafe extern "system" fn GetOutputVidPnSourceId(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIndependentFlipFramePresentStatistics_Impl::GetOutputVidPnSourceId(this) } - unsafe extern "system" fn GetContentTag(this: *mut core::ffi::c_void) -> usize - where - Identity: IIndependentFlipFramePresentStatistics_Impl, - { + unsafe extern "system" fn GetContentTag(this: *mut core::ffi::c_void) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIndependentFlipFramePresentStatistics_Impl::GetContentTag(this) } - unsafe extern "system" fn GetDisplayedTime(this: *mut core::ffi::c_void, result__: *mut SystemInterruptTime) - where - Identity: IIndependentFlipFramePresentStatistics_Impl, - { + unsafe extern "system" fn GetDisplayedTime(this: *mut core::ffi::c_void, result__: *mut SystemInterruptTime) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = IIndependentFlipFramePresentStatistics_Impl::GetDisplayedTime(this) } - unsafe extern "system" fn GetPresentDuration(this: *mut core::ffi::c_void, result__: *mut SystemInterruptTime) - where - Identity: IIndependentFlipFramePresentStatistics_Impl, - { + unsafe extern "system" fn GetPresentDuration(this: *mut core::ffi::c_void, result__: *mut SystemInterruptTime) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = IIndependentFlipFramePresentStatistics_Impl::GetPresentDuration(this) } @@ -105,27 +75,18 @@ impl IIndependentFlipFramePresentStatistics_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPresentStatistics_Impl: Sized { +pub trait IPresentStatistics_Impl: Sized + windows_core::IUnknownImpl { fn GetPresentId(&self) -> u64; fn GetKind(&self) -> PresentStatisticsKind; } impl windows_core::RuntimeName for IPresentStatistics {} impl IPresentStatistics_Vtbl { - pub const fn new() -> IPresentStatistics_Vtbl - where - Identity: IPresentStatistics_Impl, - { - unsafe extern "system" fn GetPresentId(this: *mut core::ffi::c_void) -> u64 - where - Identity: IPresentStatistics_Impl, - { + pub const fn new() -> IPresentStatistics_Vtbl { + unsafe extern "system" fn GetPresentId(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentStatistics_Impl::GetPresentId(this) } - unsafe extern "system" fn GetKind(this: *mut core::ffi::c_void) -> PresentStatisticsKind - where - Identity: IPresentStatistics_Impl, - { + unsafe extern "system" fn GetKind(this: *mut core::ffi::c_void) -> PresentStatisticsKind { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentStatistics_Impl::GetKind(this) } @@ -145,21 +106,12 @@ pub trait IPresentStatusPresentStatistics_Impl: Sized + IPresentStatistics_Impl } impl windows_core::RuntimeName for IPresentStatusPresentStatistics {} impl IPresentStatusPresentStatistics_Vtbl { - pub const fn new() -> IPresentStatusPresentStatistics_Vtbl - where - Identity: IPresentStatusPresentStatistics_Impl, - { - unsafe extern "system" fn GetCompositionFrameId(this: *mut core::ffi::c_void) -> u64 - where - Identity: IPresentStatusPresentStatistics_Impl, - { + pub const fn new() -> IPresentStatusPresentStatistics_Vtbl { + unsafe extern "system" fn GetCompositionFrameId(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentStatusPresentStatistics_Impl::GetCompositionFrameId(this) } - unsafe extern "system" fn GetPresentStatus(this: *mut core::ffi::c_void) -> PresentStatus - where - Identity: IPresentStatusPresentStatistics_Impl, - { + unsafe extern "system" fn GetPresentStatus(this: *mut core::ffi::c_void) -> PresentStatus { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentStatusPresentStatistics_Impl::GetPresentStatus(this) } @@ -173,20 +125,14 @@ impl IPresentStatusPresentStatistics_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPresentationBuffer_Impl: Sized { +pub trait IPresentationBuffer_Impl: Sized + windows_core::IUnknownImpl { fn GetAvailableEvent(&self) -> windows_core::Result; fn IsAvailable(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPresentationBuffer {} impl IPresentationBuffer_Vtbl { - pub const fn new() -> IPresentationBuffer_Vtbl - where - Identity: IPresentationBuffer_Impl, - { - unsafe extern "system" fn GetAvailableEvent(this: *mut core::ffi::c_void, availableeventhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPresentationBuffer_Impl, - { + pub const fn new() -> IPresentationBuffer_Vtbl { + unsafe extern "system" fn GetAvailableEvent(this: *mut core::ffi::c_void, availableeventhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPresentationBuffer_Impl::GetAvailableEvent(this) { Ok(ok__) => { @@ -196,10 +142,7 @@ impl IPresentationBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsAvailable(this: *mut core::ffi::c_void, isavailable: *mut u8) -> windows_core::HRESULT - where - Identity: IPresentationBuffer_Impl, - { + unsafe extern "system" fn IsAvailable(this: *mut core::ffi::c_void, isavailable: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPresentationBuffer_Impl::IsAvailable(this) { Ok(ok__) => { @@ -219,19 +162,13 @@ impl IPresentationBuffer_Vtbl { iid == &::IID } } -pub trait IPresentationContent_Impl: Sized { +pub trait IPresentationContent_Impl: Sized + windows_core::IUnknownImpl { fn SetTag(&self, tag: usize); } impl windows_core::RuntimeName for IPresentationContent {} impl IPresentationContent_Vtbl { - pub const fn new() -> IPresentationContent_Vtbl - where - Identity: IPresentationContent_Impl, - { - unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, tag: usize) - where - Identity: IPresentationContent_Impl, - { + pub const fn new() -> IPresentationContent_Vtbl { + unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, tag: usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationContent_Impl::SetTag(this, core::mem::transmute_copy(&tag)) } @@ -241,35 +178,23 @@ impl IPresentationContent_Vtbl { iid == &::IID } } -pub trait IPresentationFactory_Impl: Sized { +pub trait IPresentationFactory_Impl: Sized + windows_core::IUnknownImpl { fn IsPresentationSupported(&self) -> u8; fn IsPresentationSupportedWithIndependentFlip(&self) -> u8; fn CreatePresentationManager(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPresentationFactory {} impl IPresentationFactory_Vtbl { - pub const fn new() -> IPresentationFactory_Vtbl - where - Identity: IPresentationFactory_Impl, - { - unsafe extern "system" fn IsPresentationSupported(this: *mut core::ffi::c_void) -> u8 - where - Identity: IPresentationFactory_Impl, - { + pub const fn new() -> IPresentationFactory_Vtbl { + unsafe extern "system" fn IsPresentationSupported(this: *mut core::ffi::c_void) -> u8 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationFactory_Impl::IsPresentationSupported(this) } - unsafe extern "system" fn IsPresentationSupportedWithIndependentFlip(this: *mut core::ffi::c_void) -> u8 - where - Identity: IPresentationFactory_Impl, - { + unsafe extern "system" fn IsPresentationSupportedWithIndependentFlip(this: *mut core::ffi::c_void) -> u8 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationFactory_Impl::IsPresentationSupportedWithIndependentFlip(this) } - unsafe extern "system" fn CreatePresentationManager(this: *mut core::ffi::c_void, pppresentationmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPresentationFactory_Impl, - { + unsafe extern "system" fn CreatePresentationManager(this: *mut core::ffi::c_void, pppresentationmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPresentationFactory_Impl::CreatePresentationManager(this) { Ok(ok__) => { @@ -290,7 +215,7 @@ impl IPresentationFactory_Vtbl { iid == &::IID } } -pub trait IPresentationManager_Impl: Sized { +pub trait IPresentationManager_Impl: Sized + windows_core::IUnknownImpl { fn AddBufferFromResource(&self, resource: Option<&windows_core::IUnknown>) -> windows_core::Result; fn CreatePresentationSurface(&self, compositionsurfacehandle: super::super::Foundation::HANDLE) -> windows_core::Result; fn GetNextPresentId(&self) -> u64; @@ -307,14 +232,8 @@ pub trait IPresentationManager_Impl: Sized { } impl windows_core::RuntimeName for IPresentationManager {} impl IPresentationManager_Vtbl { - pub const fn new() -> IPresentationManager_Vtbl - where - Identity: IPresentationManager_Impl, - { - unsafe extern "system" fn AddBufferFromResource(this: *mut core::ffi::c_void, resource: *mut core::ffi::c_void, presentationbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + pub const fn new() -> IPresentationManager_Vtbl { + unsafe extern "system" fn AddBufferFromResource(this: *mut core::ffi::c_void, resource: *mut core::ffi::c_void, presentationbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPresentationManager_Impl::AddBufferFromResource(this, windows_core::from_raw_borrowed(&resource)) { Ok(ok__) => { @@ -324,10 +243,7 @@ impl IPresentationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePresentationSurface(this: *mut core::ffi::c_void, compositionsurfacehandle: super::super::Foundation::HANDLE, presentationsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn CreatePresentationSurface(this: *mut core::ffi::c_void, compositionsurfacehandle: super::super::Foundation::HANDLE, presentationsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPresentationManager_Impl::CreatePresentationSurface(this, core::mem::transmute_copy(&compositionsurfacehandle)) { Ok(ok__) => { @@ -337,45 +253,27 @@ impl IPresentationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextPresentId(this: *mut core::ffi::c_void) -> u64 - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn GetNextPresentId(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationManager_Impl::GetNextPresentId(this) } - unsafe extern "system" fn SetTargetTime(this: *mut core::ffi::c_void, targettime: SystemInterruptTime) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn SetTargetTime(this: *mut core::ffi::c_void, targettime: SystemInterruptTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationManager_Impl::SetTargetTime(this, core::mem::transmute(&targettime)).into() } - unsafe extern "system" fn SetPreferredPresentDuration(this: *mut core::ffi::c_void, preferredduration: SystemInterruptTime, deviationtolerance: SystemInterruptTime) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn SetPreferredPresentDuration(this: *mut core::ffi::c_void, preferredduration: SystemInterruptTime, deviationtolerance: SystemInterruptTime) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationManager_Impl::SetPreferredPresentDuration(this, core::mem::transmute(&preferredduration), core::mem::transmute(&deviationtolerance)).into() } - unsafe extern "system" fn ForceVSyncInterrupt(this: *mut core::ffi::c_void, forcevsyncinterrupt: u8) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn ForceVSyncInterrupt(this: *mut core::ffi::c_void, forcevsyncinterrupt: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationManager_Impl::ForceVSyncInterrupt(this, core::mem::transmute_copy(&forcevsyncinterrupt)).into() } - unsafe extern "system" fn Present(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn Present(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationManager_Impl::Present(this).into() } - unsafe extern "system" fn GetPresentRetiringFence(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, fence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn GetPresentRetiringFence(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, fence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPresentationManager_Impl::GetPresentRetiringFence(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -385,17 +283,11 @@ impl IPresentationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CancelPresentsFrom(this: *mut core::ffi::c_void, presentidtocancelfrom: u64) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn CancelPresentsFrom(this: *mut core::ffi::c_void, presentidtocancelfrom: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationManager_Impl::CancelPresentsFrom(this, core::mem::transmute_copy(&presentidtocancelfrom)).into() } - unsafe extern "system" fn GetLostEvent(this: *mut core::ffi::c_void, losteventhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn GetLostEvent(this: *mut core::ffi::c_void, losteventhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPresentationManager_Impl::GetLostEvent(this) { Ok(ok__) => { @@ -405,10 +297,7 @@ impl IPresentationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPresentStatisticsAvailableEvent(this: *mut core::ffi::c_void, presentstatisticsavailableeventhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn GetPresentStatisticsAvailableEvent(this: *mut core::ffi::c_void, presentstatisticsavailableeventhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPresentationManager_Impl::GetPresentStatisticsAvailableEvent(this) { Ok(ok__) => { @@ -418,17 +307,11 @@ impl IPresentationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnablePresentStatisticsKind(this: *mut core::ffi::c_void, presentstatisticskind: PresentStatisticsKind, enabled: u8) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn EnablePresentStatisticsKind(this: *mut core::ffi::c_void, presentstatisticskind: PresentStatisticsKind, enabled: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationManager_Impl::EnablePresentStatisticsKind(this, core::mem::transmute_copy(&presentstatisticskind), core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn GetNextPresentStatistics(this: *mut core::ffi::c_void, nextpresentstatistics: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPresentationManager_Impl, - { + unsafe extern "system" fn GetNextPresentStatistics(this: *mut core::ffi::c_void, nextpresentstatistics: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPresentationManager_Impl::GetNextPresentStatistics(this) { Ok(ok__) => { @@ -474,63 +357,36 @@ pub trait IPresentationSurface_Impl: Sized + IPresentationContent_Impl { impl windows_core::RuntimeName for IPresentationSurface {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IPresentationSurface_Vtbl { - pub const fn new() -> IPresentationSurface_Vtbl - where - Identity: IPresentationSurface_Impl, - { - unsafe extern "system" fn SetBuffer(this: *mut core::ffi::c_void, presentationbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPresentationSurface_Impl, - { + pub const fn new() -> IPresentationSurface_Vtbl { + unsafe extern "system" fn SetBuffer(this: *mut core::ffi::c_void, presentationbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationSurface_Impl::SetBuffer(this, windows_core::from_raw_borrowed(&presentationbuffer)).into() } - unsafe extern "system" fn SetColorSpace(this: *mut core::ffi::c_void, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::HRESULT - where - Identity: IPresentationSurface_Impl, - { + unsafe extern "system" fn SetColorSpace(this: *mut core::ffi::c_void, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationSurface_Impl::SetColorSpace(this, core::mem::transmute_copy(&colorspace)).into() } - unsafe extern "system" fn SetAlphaMode(this: *mut core::ffi::c_void, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::HRESULT - where - Identity: IPresentationSurface_Impl, - { + unsafe extern "system" fn SetAlphaMode(this: *mut core::ffi::c_void, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationSurface_Impl::SetAlphaMode(this, core::mem::transmute_copy(&alphamode)).into() } - unsafe extern "system" fn SetSourceRect(this: *mut core::ffi::c_void, sourcerect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IPresentationSurface_Impl, - { + unsafe extern "system" fn SetSourceRect(this: *mut core::ffi::c_void, sourcerect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationSurface_Impl::SetSourceRect(this, core::mem::transmute_copy(&sourcerect)).into() } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const PresentationTransform) -> windows_core::HRESULT - where - Identity: IPresentationSurface_Impl, - { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const PresentationTransform) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationSurface_Impl::SetTransform(this, core::mem::transmute_copy(&transform)).into() } - unsafe extern "system" fn RestrictToOutput(this: *mut core::ffi::c_void, output: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPresentationSurface_Impl, - { + unsafe extern "system" fn RestrictToOutput(this: *mut core::ffi::c_void, output: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationSurface_Impl::RestrictToOutput(this, windows_core::from_raw_borrowed(&output)).into() } - unsafe extern "system" fn SetDisableReadback(this: *mut core::ffi::c_void, value: u8) -> windows_core::HRESULT - where - Identity: IPresentationSurface_Impl, - { + unsafe extern "system" fn SetDisableReadback(this: *mut core::ffi::c_void, value: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationSurface_Impl::SetDisableReadback(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetLetterboxingMargins(this: *mut core::ffi::c_void, leftletterboxsize: f32, topletterboxsize: f32, rightletterboxsize: f32, bottomletterboxsize: f32) -> windows_core::HRESULT - where - Identity: IPresentationSurface_Impl, - { + unsafe extern "system" fn SetLetterboxingMargins(this: *mut core::ffi::c_void, leftletterboxsize: f32, topletterboxsize: f32, rightletterboxsize: f32, bottomletterboxsize: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPresentationSurface_Impl::SetLetterboxingMargins(this, core::mem::transmute_copy(&leftletterboxsize), core::mem::transmute_copy(&topletterboxsize), core::mem::transmute_copy(&rightletterboxsize), core::mem::transmute_copy(&bottomletterboxsize)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/impl.rs index 0d1371b0de..ef6748a5d3 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/impl.rs @@ -1,4 +1,4 @@ -pub trait IDXCoreAdapter_Impl: Sized { +pub trait IDXCoreAdapter_Impl: Sized + windows_core::IUnknownImpl { fn IsValid(&self) -> bool; fn IsAttributeSupported(&self, attributeguid: *const windows_core::GUID) -> bool; fn IsPropertySupported(&self, property: DXCoreAdapterProperty) -> bool; @@ -12,42 +12,24 @@ pub trait IDXCoreAdapter_Impl: Sized { } impl windows_core::RuntimeName for IDXCoreAdapter {} impl IDXCoreAdapter_Vtbl { - pub const fn new() -> IDXCoreAdapter_Vtbl - where - Identity: IDXCoreAdapter_Impl, - { - unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> bool - where - Identity: IDXCoreAdapter_Impl, - { + pub const fn new() -> IDXCoreAdapter_Vtbl { + unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapter_Impl::IsValid(this) } - unsafe extern "system" fn IsAttributeSupported(this: *mut core::ffi::c_void, attributeguid: *const windows_core::GUID) -> bool - where - Identity: IDXCoreAdapter_Impl, - { + unsafe extern "system" fn IsAttributeSupported(this: *mut core::ffi::c_void, attributeguid: *const windows_core::GUID) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapter_Impl::IsAttributeSupported(this, core::mem::transmute_copy(&attributeguid)) } - unsafe extern "system" fn IsPropertySupported(this: *mut core::ffi::c_void, property: DXCoreAdapterProperty) -> bool - where - Identity: IDXCoreAdapter_Impl, - { + unsafe extern "system" fn IsPropertySupported(this: *mut core::ffi::c_void, property: DXCoreAdapterProperty) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapter_Impl::IsPropertySupported(this, core::mem::transmute_copy(&property)) } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, property: DXCoreAdapterProperty, buffersize: usize, propertydata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXCoreAdapter_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, property: DXCoreAdapterProperty, buffersize: usize, propertydata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapter_Impl::GetProperty(this, core::mem::transmute_copy(&property), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&propertydata)).into() } - unsafe extern "system" fn GetPropertySize(this: *mut core::ffi::c_void, property: DXCoreAdapterProperty, buffersize: *mut usize) -> windows_core::HRESULT - where - Identity: IDXCoreAdapter_Impl, - { + unsafe extern "system" fn GetPropertySize(this: *mut core::ffi::c_void, property: DXCoreAdapterProperty, buffersize: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXCoreAdapter_Impl::GetPropertySize(this, core::mem::transmute_copy(&property)) { Ok(ok__) => { @@ -57,38 +39,23 @@ impl IDXCoreAdapter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsQueryStateSupported(this: *mut core::ffi::c_void, property: DXCoreAdapterState) -> bool - where - Identity: IDXCoreAdapter_Impl, - { + unsafe extern "system" fn IsQueryStateSupported(this: *mut core::ffi::c_void, property: DXCoreAdapterState) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapter_Impl::IsQueryStateSupported(this, core::mem::transmute_copy(&property)) } - unsafe extern "system" fn QueryState(this: *mut core::ffi::c_void, state: DXCoreAdapterState, inputstatedetailssize: usize, inputstatedetails: *const core::ffi::c_void, outputbuffersize: usize, outputbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXCoreAdapter_Impl, - { + unsafe extern "system" fn QueryState(this: *mut core::ffi::c_void, state: DXCoreAdapterState, inputstatedetailssize: usize, inputstatedetails: *const core::ffi::c_void, outputbuffersize: usize, outputbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapter_Impl::QueryState(this, core::mem::transmute_copy(&state), core::mem::transmute_copy(&inputstatedetailssize), core::mem::transmute_copy(&inputstatedetails), core::mem::transmute_copy(&outputbuffersize), core::mem::transmute_copy(&outputbuffer)).into() } - unsafe extern "system" fn IsSetStateSupported(this: *mut core::ffi::c_void, property: DXCoreAdapterState) -> bool - where - Identity: IDXCoreAdapter_Impl, - { + unsafe extern "system" fn IsSetStateSupported(this: *mut core::ffi::c_void, property: DXCoreAdapterState) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapter_Impl::IsSetStateSupported(this, core::mem::transmute_copy(&property)) } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: DXCoreAdapterState, inputstatedetailssize: usize, inputstatedetails: *const core::ffi::c_void, inputdatasize: usize, inputdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXCoreAdapter_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: DXCoreAdapterState, inputstatedetailssize: usize, inputstatedetails: *const core::ffi::c_void, inputdatasize: usize, inputdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapter_Impl::SetState(this, core::mem::transmute_copy(&state), core::mem::transmute_copy(&inputstatedetailssize), core::mem::transmute_copy(&inputstatedetails), core::mem::transmute_copy(&inputdatasize), core::mem::transmute_copy(&inputdata)).into() } - unsafe extern "system" fn GetFactory(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXCoreAdapter_Impl, - { + unsafe extern "system" fn GetFactory(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapter_Impl::GetFactory(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvfactory)).into() } @@ -110,7 +77,7 @@ impl IDXCoreAdapter_Vtbl { iid == &::IID } } -pub trait IDXCoreAdapterFactory_Impl: Sized { +pub trait IDXCoreAdapterFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateAdapterList(&self, numattributes: u32, filterattributes: *const windows_core::GUID, riid: *const windows_core::GUID, ppvadapterlist: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetAdapterByLuid(&self, adapterluid: *const super::super::Foundation::LUID, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn IsNotificationTypeSupported(&self, notificationtype: DXCoreNotificationType) -> bool; @@ -119,35 +86,20 @@ pub trait IDXCoreAdapterFactory_Impl: Sized { } impl windows_core::RuntimeName for IDXCoreAdapterFactory {} impl IDXCoreAdapterFactory_Vtbl { - pub const fn new() -> IDXCoreAdapterFactory_Vtbl - where - Identity: IDXCoreAdapterFactory_Impl, - { - unsafe extern "system" fn CreateAdapterList(this: *mut core::ffi::c_void, numattributes: u32, filterattributes: *const windows_core::GUID, riid: *const windows_core::GUID, ppvadapterlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXCoreAdapterFactory_Impl, - { + pub const fn new() -> IDXCoreAdapterFactory_Vtbl { + unsafe extern "system" fn CreateAdapterList(this: *mut core::ffi::c_void, numattributes: u32, filterattributes: *const windows_core::GUID, riid: *const windows_core::GUID, ppvadapterlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapterFactory_Impl::CreateAdapterList(this, core::mem::transmute_copy(&numattributes), core::mem::transmute_copy(&filterattributes), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvadapterlist)).into() } - unsafe extern "system" fn GetAdapterByLuid(this: *mut core::ffi::c_void, adapterluid: *const super::super::Foundation::LUID, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXCoreAdapterFactory_Impl, - { + unsafe extern "system" fn GetAdapterByLuid(this: *mut core::ffi::c_void, adapterluid: *const super::super::Foundation::LUID, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapterFactory_Impl::GetAdapterByLuid(this, core::mem::transmute_copy(&adapterluid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvadapter)).into() } - unsafe extern "system" fn IsNotificationTypeSupported(this: *mut core::ffi::c_void, notificationtype: DXCoreNotificationType) -> bool - where - Identity: IDXCoreAdapterFactory_Impl, - { + unsafe extern "system" fn IsNotificationTypeSupported(this: *mut core::ffi::c_void, notificationtype: DXCoreNotificationType) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapterFactory_Impl::IsNotificationTypeSupported(this, core::mem::transmute_copy(¬ificationtype)) } - unsafe extern "system" fn RegisterEventNotification(this: *mut core::ffi::c_void, dxcoreobject: *mut core::ffi::c_void, notificationtype: DXCoreNotificationType, callbackfunction: PFN_DXCORE_NOTIFICATION_CALLBACK, callbackcontext: *const core::ffi::c_void, eventcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDXCoreAdapterFactory_Impl, - { + unsafe extern "system" fn RegisterEventNotification(this: *mut core::ffi::c_void, dxcoreobject: *mut core::ffi::c_void, notificationtype: DXCoreNotificationType, callbackfunction: PFN_DXCORE_NOTIFICATION_CALLBACK, callbackcontext: *const core::ffi::c_void, eventcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXCoreAdapterFactory_Impl::RegisterEventNotification(this, windows_core::from_raw_borrowed(&dxcoreobject), core::mem::transmute_copy(¬ificationtype), core::mem::transmute_copy(&callbackfunction), core::mem::transmute_copy(&callbackcontext)) { Ok(ok__) => { @@ -157,10 +109,7 @@ impl IDXCoreAdapterFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterEventNotification(this: *mut core::ffi::c_void, eventcookie: u32) -> windows_core::HRESULT - where - Identity: IDXCoreAdapterFactory_Impl, - { + unsafe extern "system" fn UnregisterEventNotification(this: *mut core::ffi::c_void, eventcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapterFactory_Impl::UnregisterEventNotification(this, core::mem::transmute_copy(&eventcookie)).into() } @@ -177,7 +126,7 @@ impl IDXCoreAdapterFactory_Vtbl { iid == &::IID } } -pub trait IDXCoreAdapterList_Impl: Sized { +pub trait IDXCoreAdapterList_Impl: Sized + windows_core::IUnknownImpl { fn GetAdapter(&self, index: u32, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetAdapterCount(&self) -> u32; fn IsStale(&self) -> bool; @@ -187,49 +136,28 @@ pub trait IDXCoreAdapterList_Impl: Sized { } impl windows_core::RuntimeName for IDXCoreAdapterList {} impl IDXCoreAdapterList_Vtbl { - pub const fn new() -> IDXCoreAdapterList_Vtbl - where - Identity: IDXCoreAdapterList_Impl, - { - unsafe extern "system" fn GetAdapter(this: *mut core::ffi::c_void, index: u32, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXCoreAdapterList_Impl, - { + pub const fn new() -> IDXCoreAdapterList_Vtbl { + unsafe extern "system" fn GetAdapter(this: *mut core::ffi::c_void, index: u32, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapterList_Impl::GetAdapter(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvadapter)).into() } - unsafe extern "system" fn GetAdapterCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDXCoreAdapterList_Impl, - { + unsafe extern "system" fn GetAdapterCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapterList_Impl::GetAdapterCount(this) } - unsafe extern "system" fn IsStale(this: *mut core::ffi::c_void) -> bool - where - Identity: IDXCoreAdapterList_Impl, - { + unsafe extern "system" fn IsStale(this: *mut core::ffi::c_void) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapterList_Impl::IsStale(this) } - unsafe extern "system" fn GetFactory(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXCoreAdapterList_Impl, - { + unsafe extern "system" fn GetFactory(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapterList_Impl::GetFactory(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvfactory)).into() } - unsafe extern "system" fn Sort(this: *mut core::ffi::c_void, numpreferences: u32, preferences: *const DXCoreAdapterPreference) -> windows_core::HRESULT - where - Identity: IDXCoreAdapterList_Impl, - { + unsafe extern "system" fn Sort(this: *mut core::ffi::c_void, numpreferences: u32, preferences: *const DXCoreAdapterPreference) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapterList_Impl::Sort(this, core::mem::transmute_copy(&numpreferences), core::mem::transmute_copy(&preferences)).into() } - unsafe extern "system" fn IsAdapterPreferenceSupported(this: *mut core::ffi::c_void, preference: DXCoreAdapterPreference) -> bool - where - Identity: IDXCoreAdapterList_Impl, - { + unsafe extern "system" fn IsAdapterPreferenceSupported(this: *mut core::ffi::c_void, preference: DXCoreAdapterPreference) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXCoreAdapterList_Impl::IsAdapterPreferenceSupported(this, core::mem::transmute_copy(&preference)) } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/impl.rs index cad91adb81..215d811f21 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/impl.rs @@ -1,4 +1,4 @@ -pub trait ID2D1SimplifiedGeometrySink_Impl: Sized { +pub trait ID2D1SimplifiedGeometrySink_Impl: Sized + windows_core::IUnknownImpl { fn SetFillMode(&self, fillmode: D2D1_FILL_MODE); fn SetSegmentFlags(&self, vertexflags: D2D1_PATH_SEGMENT); fn BeginFigure(&self, startpoint: &D2D_POINT_2F, figurebegin: D2D1_FIGURE_BEGIN); @@ -9,56 +9,32 @@ pub trait ID2D1SimplifiedGeometrySink_Impl: Sized { } impl windows_core::RuntimeName for ID2D1SimplifiedGeometrySink {} impl ID2D1SimplifiedGeometrySink_Vtbl { - pub const fn new() -> ID2D1SimplifiedGeometrySink_Vtbl - where - Identity: ID2D1SimplifiedGeometrySink_Impl, - { - unsafe extern "system" fn SetFillMode(this: *mut core::ffi::c_void, fillmode: D2D1_FILL_MODE) - where - Identity: ID2D1SimplifiedGeometrySink_Impl, - { + pub const fn new() -> ID2D1SimplifiedGeometrySink_Vtbl { + unsafe extern "system" fn SetFillMode(this: *mut core::ffi::c_void, fillmode: D2D1_FILL_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SimplifiedGeometrySink_Impl::SetFillMode(this, core::mem::transmute_copy(&fillmode)) } - unsafe extern "system" fn SetSegmentFlags(this: *mut core::ffi::c_void, vertexflags: D2D1_PATH_SEGMENT) - where - Identity: ID2D1SimplifiedGeometrySink_Impl, - { + unsafe extern "system" fn SetSegmentFlags(this: *mut core::ffi::c_void, vertexflags: D2D1_PATH_SEGMENT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SimplifiedGeometrySink_Impl::SetSegmentFlags(this, core::mem::transmute_copy(&vertexflags)) } - unsafe extern "system" fn BeginFigure(this: *mut core::ffi::c_void, startpoint: D2D_POINT_2F, figurebegin: D2D1_FIGURE_BEGIN) - where - Identity: ID2D1SimplifiedGeometrySink_Impl, - { + unsafe extern "system" fn BeginFigure(this: *mut core::ffi::c_void, startpoint: D2D_POINT_2F, figurebegin: D2D1_FIGURE_BEGIN) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SimplifiedGeometrySink_Impl::BeginFigure(this, core::mem::transmute(&startpoint), core::mem::transmute_copy(&figurebegin)) } - unsafe extern "system" fn AddLines(this: *mut core::ffi::c_void, points: *const D2D_POINT_2F, pointscount: u32) - where - Identity: ID2D1SimplifiedGeometrySink_Impl, - { + unsafe extern "system" fn AddLines(this: *mut core::ffi::c_void, points: *const D2D_POINT_2F, pointscount: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SimplifiedGeometrySink_Impl::AddLines(this, core::mem::transmute_copy(&points), core::mem::transmute_copy(&pointscount)) } - unsafe extern "system" fn AddBeziers(this: *mut core::ffi::c_void, beziers: *const D2D1_BEZIER_SEGMENT, bezierscount: u32) - where - Identity: ID2D1SimplifiedGeometrySink_Impl, - { + unsafe extern "system" fn AddBeziers(this: *mut core::ffi::c_void, beziers: *const D2D1_BEZIER_SEGMENT, bezierscount: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SimplifiedGeometrySink_Impl::AddBeziers(this, core::mem::transmute_copy(&beziers), core::mem::transmute_copy(&bezierscount)) } - unsafe extern "system" fn EndFigure(this: *mut core::ffi::c_void, figureend: D2D1_FIGURE_END) - where - Identity: ID2D1SimplifiedGeometrySink_Impl, - { + unsafe extern "system" fn EndFigure(this: *mut core::ffi::c_void, figureend: D2D1_FIGURE_END) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SimplifiedGeometrySink_Impl::EndFigure(this, core::mem::transmute_copy(&figureend)) } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SimplifiedGeometrySink_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SimplifiedGeometrySink_Impl::Close(this).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/impl.rs index 5c08e86996..fc9094f230 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/impl.rs @@ -1,16 +1,10 @@ -pub trait ID2D1AnalysisTransform_Impl: Sized { +pub trait ID2D1AnalysisTransform_Impl: Sized + windows_core::IUnknownImpl { fn ProcessAnalysisResults(&self, analysisdata: *const u8, analysisdatacount: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID2D1AnalysisTransform {} impl ID2D1AnalysisTransform_Vtbl { - pub const fn new() -> ID2D1AnalysisTransform_Vtbl - where - Identity: ID2D1AnalysisTransform_Impl, - { - unsafe extern "system" fn ProcessAnalysisResults(this: *mut core::ffi::c_void, analysisdata: *const u8, analysisdatacount: u32) -> windows_core::HRESULT - where - Identity: ID2D1AnalysisTransform_Impl, - { + pub const fn new() -> ID2D1AnalysisTransform_Vtbl { + unsafe extern "system" fn ProcessAnalysisResults(this: *mut core::ffi::c_void, analysisdata: *const u8, analysisdatacount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1AnalysisTransform_Impl::ProcessAnalysisResults(this, core::mem::transmute_copy(&analysisdata), core::mem::transmute_copy(&analysisdatacount)).into() } @@ -34,56 +28,32 @@ pub trait ID2D1Bitmap_Impl: Sized + ID2D1Image_Impl { impl windows_core::RuntimeName for ID2D1Bitmap {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] impl ID2D1Bitmap_Vtbl { - pub const fn new() -> ID2D1Bitmap_Vtbl - where - Identity: ID2D1Bitmap_Impl, - { - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_F) - where - Identity: ID2D1Bitmap_Impl, - { + pub const fn new() -> ID2D1Bitmap_Vtbl { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1Bitmap_Impl::GetSize(this) } - unsafe extern "system" fn GetPixelSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_U) - where - Identity: ID2D1Bitmap_Impl, - { + unsafe extern "system" fn GetPixelSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_U) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1Bitmap_Impl::GetPixelSize(this) } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, result__: *mut Common::D2D1_PIXEL_FORMAT) - where - Identity: ID2D1Bitmap_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, result__: *mut Common::D2D1_PIXEL_FORMAT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1Bitmap_Impl::GetPixelFormat(this) } - unsafe extern "system" fn GetDpi(this: *mut core::ffi::c_void, dpix: *mut f32, dpiy: *mut f32) - where - Identity: ID2D1Bitmap_Impl, - { + unsafe extern "system" fn GetDpi(this: *mut core::ffi::c_void, dpix: *mut f32, dpiy: *mut f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Bitmap_Impl::GetDpi(this, core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy)) } - unsafe extern "system" fn CopyFromBitmap(this: *mut core::ffi::c_void, destpoint: *const Common::D2D_POINT_2U, bitmap: *mut core::ffi::c_void, srcrect: *const Common::D2D_RECT_U) -> windows_core::HRESULT - where - Identity: ID2D1Bitmap_Impl, - { + unsafe extern "system" fn CopyFromBitmap(this: *mut core::ffi::c_void, destpoint: *const Common::D2D_POINT_2U, bitmap: *mut core::ffi::c_void, srcrect: *const Common::D2D_RECT_U) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Bitmap_Impl::CopyFromBitmap(this, core::mem::transmute_copy(&destpoint), windows_core::from_raw_borrowed(&bitmap), core::mem::transmute_copy(&srcrect)).into() } - unsafe extern "system" fn CopyFromRenderTarget(this: *mut core::ffi::c_void, destpoint: *const Common::D2D_POINT_2U, rendertarget: *mut core::ffi::c_void, srcrect: *const Common::D2D_RECT_U) -> windows_core::HRESULT - where - Identity: ID2D1Bitmap_Impl, - { + unsafe extern "system" fn CopyFromRenderTarget(this: *mut core::ffi::c_void, destpoint: *const Common::D2D_POINT_2U, rendertarget: *mut core::ffi::c_void, srcrect: *const Common::D2D_RECT_U) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Bitmap_Impl::CopyFromRenderTarget(this, core::mem::transmute_copy(&destpoint), windows_core::from_raw_borrowed(&rendertarget), core::mem::transmute_copy(&srcrect)).into() } - unsafe extern "system" fn CopyFromMemory(this: *mut core::ffi::c_void, dstrect: *const Common::D2D_RECT_U, srcdata: *const core::ffi::c_void, pitch: u32) -> windows_core::HRESULT - where - Identity: ID2D1Bitmap_Impl, - { + unsafe extern "system" fn CopyFromMemory(this: *mut core::ffi::c_void, dstrect: *const Common::D2D_RECT_U, srcdata: *const core::ffi::c_void, pitch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Bitmap_Impl::CopyFromMemory(this, core::mem::transmute_copy(&dstrect), core::mem::transmute_copy(&srcdata), core::mem::transmute_copy(&pitch)).into() } @@ -114,28 +84,16 @@ pub trait ID2D1Bitmap1_Impl: Sized + ID2D1Bitmap_Impl { impl windows_core::RuntimeName for ID2D1Bitmap1 {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] impl ID2D1Bitmap1_Vtbl { - pub const fn new() -> ID2D1Bitmap1_Vtbl - where - Identity: ID2D1Bitmap1_Impl, - { - unsafe extern "system" fn GetColorContext(this: *mut core::ffi::c_void, colorcontext: *mut *mut core::ffi::c_void) - where - Identity: ID2D1Bitmap1_Impl, - { + pub const fn new() -> ID2D1Bitmap1_Vtbl { + unsafe extern "system" fn GetColorContext(this: *mut core::ffi::c_void, colorcontext: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Bitmap1_Impl::GetColorContext(this, core::mem::transmute_copy(&colorcontext)) } - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void) -> D2D1_BITMAP_OPTIONS - where - Identity: ID2D1Bitmap1_Impl, - { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void) -> D2D1_BITMAP_OPTIONS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Bitmap1_Impl::GetOptions(this) } - unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, dxgisurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Bitmap1_Impl, - { + unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, dxgisurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Bitmap1_Impl::GetSurface(this) { Ok(ok__) => { @@ -145,10 +103,7 @@ impl ID2D1Bitmap1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Map(this: *mut core::ffi::c_void, options: D2D1_MAP_OPTIONS, mappedrect: *mut D2D1_MAPPED_RECT) -> windows_core::HRESULT - where - Identity: ID2D1Bitmap1_Impl, - { + unsafe extern "system" fn Map(this: *mut core::ffi::c_void, options: D2D1_MAP_OPTIONS, mappedrect: *mut D2D1_MAPPED_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Bitmap1_Impl::Map(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -158,10 +113,7 @@ impl ID2D1Bitmap1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Bitmap1_Impl, - { + unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Bitmap1_Impl::Unmap(this).into() } @@ -193,63 +145,36 @@ pub trait ID2D1BitmapBrush_Impl: Sized + ID2D1Brush_Impl { impl windows_core::RuntimeName for ID2D1BitmapBrush {} #[cfg(feature = "Foundation_Numerics")] impl ID2D1BitmapBrush_Vtbl { - pub const fn new() -> ID2D1BitmapBrush_Vtbl - where - Identity: ID2D1BitmapBrush_Impl, - { - unsafe extern "system" fn SetExtendModeX(this: *mut core::ffi::c_void, extendmodex: D2D1_EXTEND_MODE) - where - Identity: ID2D1BitmapBrush_Impl, - { + pub const fn new() -> ID2D1BitmapBrush_Vtbl { + unsafe extern "system" fn SetExtendModeX(this: *mut core::ffi::c_void, extendmodex: D2D1_EXTEND_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BitmapBrush_Impl::SetExtendModeX(this, core::mem::transmute_copy(&extendmodex)) } - unsafe extern "system" fn SetExtendModeY(this: *mut core::ffi::c_void, extendmodey: D2D1_EXTEND_MODE) - where - Identity: ID2D1BitmapBrush_Impl, - { + unsafe extern "system" fn SetExtendModeY(this: *mut core::ffi::c_void, extendmodey: D2D1_EXTEND_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BitmapBrush_Impl::SetExtendModeY(this, core::mem::transmute_copy(&extendmodey)) } - unsafe extern "system" fn SetInterpolationMode(this: *mut core::ffi::c_void, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE) - where - Identity: ID2D1BitmapBrush_Impl, - { + unsafe extern "system" fn SetInterpolationMode(this: *mut core::ffi::c_void, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BitmapBrush_Impl::SetInterpolationMode(this, core::mem::transmute_copy(&interpolationmode)) } - unsafe extern "system" fn SetBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void) - where - Identity: ID2D1BitmapBrush_Impl, - { + unsafe extern "system" fn SetBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BitmapBrush_Impl::SetBitmap(this, windows_core::from_raw_borrowed(&bitmap)) } - unsafe extern "system" fn GetExtendModeX(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE - where - Identity: ID2D1BitmapBrush_Impl, - { + unsafe extern "system" fn GetExtendModeX(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BitmapBrush_Impl::GetExtendModeX(this) } - unsafe extern "system" fn GetExtendModeY(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE - where - Identity: ID2D1BitmapBrush_Impl, - { + unsafe extern "system" fn GetExtendModeY(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BitmapBrush_Impl::GetExtendModeY(this) } - unsafe extern "system" fn GetInterpolationMode(this: *mut core::ffi::c_void) -> D2D1_BITMAP_INTERPOLATION_MODE - where - Identity: ID2D1BitmapBrush_Impl, - { + unsafe extern "system" fn GetInterpolationMode(this: *mut core::ffi::c_void) -> D2D1_BITMAP_INTERPOLATION_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BitmapBrush_Impl::GetInterpolationMode(this) } - unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, bitmap: *mut *mut core::ffi::c_void) - where - Identity: ID2D1BitmapBrush_Impl, - { + unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, bitmap: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BitmapBrush_Impl::GetBitmap(this, core::mem::transmute_copy(&bitmap)) } @@ -278,21 +203,12 @@ pub trait ID2D1BitmapBrush1_Impl: Sized + ID2D1BitmapBrush_Impl { impl windows_core::RuntimeName for ID2D1BitmapBrush1 {} #[cfg(feature = "Foundation_Numerics")] impl ID2D1BitmapBrush1_Vtbl { - pub const fn new() -> ID2D1BitmapBrush1_Vtbl - where - Identity: ID2D1BitmapBrush1_Impl, - { - unsafe extern "system" fn SetInterpolationMode1(this: *mut core::ffi::c_void, interpolationmode: D2D1_INTERPOLATION_MODE) - where - Identity: ID2D1BitmapBrush1_Impl, - { + pub const fn new() -> ID2D1BitmapBrush1_Vtbl { + unsafe extern "system" fn SetInterpolationMode1(this: *mut core::ffi::c_void, interpolationmode: D2D1_INTERPOLATION_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BitmapBrush1_Impl::SetInterpolationMode1(this, core::mem::transmute_copy(&interpolationmode)) } - unsafe extern "system" fn GetInterpolationMode1(this: *mut core::ffi::c_void) -> D2D1_INTERPOLATION_MODE - where - Identity: ID2D1BitmapBrush1_Impl, - { + unsafe extern "system" fn GetInterpolationMode1(this: *mut core::ffi::c_void) -> D2D1_INTERPOLATION_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BitmapBrush1_Impl::GetInterpolationMode1(this) } @@ -314,14 +230,8 @@ pub trait ID2D1BitmapRenderTarget_Impl: Sized + ID2D1RenderTarget_Impl { impl windows_core::RuntimeName for ID2D1BitmapRenderTarget {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1BitmapRenderTarget_Vtbl { - pub const fn new() -> ID2D1BitmapRenderTarget_Vtbl - where - Identity: ID2D1BitmapRenderTarget_Impl, - { - unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1BitmapRenderTarget_Impl, - { + pub const fn new() -> ID2D1BitmapRenderTarget_Vtbl { + unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1BitmapRenderTarget_Impl::GetBitmap(this) { Ok(ok__) => { @@ -343,21 +253,12 @@ pub trait ID2D1BlendTransform_Impl: Sized + ID2D1ConcreteTransform_Impl { } impl windows_core::RuntimeName for ID2D1BlendTransform {} impl ID2D1BlendTransform_Vtbl { - pub const fn new() -> ID2D1BlendTransform_Vtbl - where - Identity: ID2D1BlendTransform_Impl, - { - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: *const D2D1_BLEND_DESCRIPTION) - where - Identity: ID2D1BlendTransform_Impl, - { + pub const fn new() -> ID2D1BlendTransform_Vtbl { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: *const D2D1_BLEND_DESCRIPTION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BlendTransform_Impl::SetDescription(this, core::mem::transmute_copy(&description)) } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, description: *mut D2D1_BLEND_DESCRIPTION) - where - Identity: ID2D1BlendTransform_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, description: *mut D2D1_BLEND_DESCRIPTION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BlendTransform_Impl::GetDescription(this, core::mem::transmute_copy(&description)) } @@ -379,35 +280,20 @@ pub trait ID2D1BorderTransform_Impl: Sized + ID2D1ConcreteTransform_Impl { } impl windows_core::RuntimeName for ID2D1BorderTransform {} impl ID2D1BorderTransform_Vtbl { - pub const fn new() -> ID2D1BorderTransform_Vtbl - where - Identity: ID2D1BorderTransform_Impl, - { - unsafe extern "system" fn SetExtendModeX(this: *mut core::ffi::c_void, extendmode: D2D1_EXTEND_MODE) - where - Identity: ID2D1BorderTransform_Impl, - { + pub const fn new() -> ID2D1BorderTransform_Vtbl { + unsafe extern "system" fn SetExtendModeX(this: *mut core::ffi::c_void, extendmode: D2D1_EXTEND_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BorderTransform_Impl::SetExtendModeX(this, core::mem::transmute_copy(&extendmode)) } - unsafe extern "system" fn SetExtendModeY(this: *mut core::ffi::c_void, extendmode: D2D1_EXTEND_MODE) - where - Identity: ID2D1BorderTransform_Impl, - { + unsafe extern "system" fn SetExtendModeY(this: *mut core::ffi::c_void, extendmode: D2D1_EXTEND_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BorderTransform_Impl::SetExtendModeY(this, core::mem::transmute_copy(&extendmode)) } - unsafe extern "system" fn GetExtendModeX(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE - where - Identity: ID2D1BorderTransform_Impl, - { + unsafe extern "system" fn GetExtendModeX(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BorderTransform_Impl::GetExtendModeX(this) } - unsafe extern "system" fn GetExtendModeY(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE - where - Identity: ID2D1BorderTransform_Impl, - { + unsafe extern "system" fn GetExtendModeY(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BorderTransform_Impl::GetExtendModeY(this) } @@ -429,21 +315,12 @@ pub trait ID2D1BoundsAdjustmentTransform_Impl: Sized + ID2D1TransformNode_Impl { } impl windows_core::RuntimeName for ID2D1BoundsAdjustmentTransform {} impl ID2D1BoundsAdjustmentTransform_Vtbl { - pub const fn new() -> ID2D1BoundsAdjustmentTransform_Vtbl - where - Identity: ID2D1BoundsAdjustmentTransform_Impl, - { - unsafe extern "system" fn SetOutputBounds(this: *mut core::ffi::c_void, outputbounds: *const super::super::Foundation::RECT) - where - Identity: ID2D1BoundsAdjustmentTransform_Impl, - { + pub const fn new() -> ID2D1BoundsAdjustmentTransform_Vtbl { + unsafe extern "system" fn SetOutputBounds(this: *mut core::ffi::c_void, outputbounds: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BoundsAdjustmentTransform_Impl::SetOutputBounds(this, core::mem::transmute_copy(&outputbounds)) } - unsafe extern "system" fn GetOutputBounds(this: *mut core::ffi::c_void, outputbounds: *mut super::super::Foundation::RECT) - where - Identity: ID2D1BoundsAdjustmentTransform_Impl, - { + unsafe extern "system" fn GetOutputBounds(this: *mut core::ffi::c_void, outputbounds: *mut super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1BoundsAdjustmentTransform_Impl::GetOutputBounds(this, core::mem::transmute_copy(&outputbounds)) } @@ -468,35 +345,20 @@ pub trait ID2D1Brush_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1Brush {} #[cfg(feature = "Foundation_Numerics")] impl ID2D1Brush_Vtbl { - pub const fn new() -> ID2D1Brush_Vtbl - where - Identity: ID2D1Brush_Impl, - { - unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, opacity: f32) - where - Identity: ID2D1Brush_Impl, - { + pub const fn new() -> ID2D1Brush_Vtbl { + unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, opacity: f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Brush_Impl::SetOpacity(this, core::mem::transmute_copy(&opacity)) } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) - where - Identity: ID2D1Brush_Impl, - { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Brush_Impl::SetTransform(this, core::mem::transmute_copy(&transform)) } - unsafe extern "system" fn GetOpacity(this: *mut core::ffi::c_void) -> f32 - where - Identity: ID2D1Brush_Impl, - { + unsafe extern "system" fn GetOpacity(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Brush_Impl::GetOpacity(this) } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) - where - Identity: ID2D1Brush_Impl, - { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Brush_Impl::GetTransform(this, core::mem::transmute_copy(&transform)) } @@ -519,28 +381,16 @@ pub trait ID2D1ColorContext_Impl: Sized + ID2D1Resource_Impl { } impl windows_core::RuntimeName for ID2D1ColorContext {} impl ID2D1ColorContext_Vtbl { - pub const fn new() -> ID2D1ColorContext_Vtbl - where - Identity: ID2D1ColorContext_Impl, - { - unsafe extern "system" fn GetColorSpace(this: *mut core::ffi::c_void) -> D2D1_COLOR_SPACE - where - Identity: ID2D1ColorContext_Impl, - { + pub const fn new() -> ID2D1ColorContext_Vtbl { + unsafe extern "system" fn GetColorSpace(this: *mut core::ffi::c_void) -> D2D1_COLOR_SPACE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ColorContext_Impl::GetColorSpace(this) } - unsafe extern "system" fn GetProfileSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1ColorContext_Impl, - { + unsafe extern "system" fn GetProfileSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ColorContext_Impl::GetProfileSize(this) } - unsafe extern "system" fn GetProfile(this: *mut core::ffi::c_void, profile: *mut u8, profilesize: u32) -> windows_core::HRESULT - where - Identity: ID2D1ColorContext_Impl, - { + unsafe extern "system" fn GetProfile(this: *mut core::ffi::c_void, profile: *mut u8, profilesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ColorContext_Impl::GetProfile(this, core::mem::transmute_copy(&profile), core::mem::transmute_copy(&profilesize)).into() } @@ -565,28 +415,16 @@ pub trait ID2D1ColorContext1_Impl: Sized + ID2D1ColorContext_Impl { impl windows_core::RuntimeName for ID2D1ColorContext1 {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] impl ID2D1ColorContext1_Vtbl { - pub const fn new() -> ID2D1ColorContext1_Vtbl - where - Identity: ID2D1ColorContext1_Impl, - { - unsafe extern "system" fn GetColorContextType(this: *mut core::ffi::c_void) -> D2D1_COLOR_CONTEXT_TYPE - where - Identity: ID2D1ColorContext1_Impl, - { + pub const fn new() -> ID2D1ColorContext1_Vtbl { + unsafe extern "system" fn GetColorContextType(this: *mut core::ffi::c_void) -> D2D1_COLOR_CONTEXT_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ColorContext1_Impl::GetColorContextType(this) } - unsafe extern "system" fn GetDXGIColorSpace(this: *mut core::ffi::c_void) -> super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE - where - Identity: ID2D1ColorContext1_Impl, - { + unsafe extern "system" fn GetDXGIColorSpace(this: *mut core::ffi::c_void) -> super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ColorContext1_Impl::GetDXGIColorSpace(this) } - unsafe extern "system" fn GetSimpleColorProfile(this: *mut core::ffi::c_void, simpleprofile: *mut D2D1_SIMPLE_COLOR_PROFILE) -> windows_core::HRESULT - where - Identity: ID2D1ColorContext1_Impl, - { + unsafe extern "system" fn GetSimpleColorProfile(this: *mut core::ffi::c_void, simpleprofile: *mut D2D1_SIMPLE_COLOR_PROFILE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ColorContext1_Impl::GetSimpleColorProfile(this, core::mem::transmute_copy(&simpleprofile)).into() } @@ -607,21 +445,12 @@ pub trait ID2D1CommandList_Impl: Sized + ID2D1Image_Impl { } impl windows_core::RuntimeName for ID2D1CommandList {} impl ID2D1CommandList_Vtbl { - pub const fn new() -> ID2D1CommandList_Vtbl - where - Identity: ID2D1CommandList_Impl, - { - unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, sink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandList_Impl, - { + pub const fn new() -> ID2D1CommandList_Vtbl { + unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, sink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandList_Impl::Stream(this, windows_core::from_raw_borrowed(&sink)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandList_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandList_Impl::Close(this).into() } @@ -632,7 +461,7 @@ impl ID2D1CommandList_Vtbl { } } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] -pub trait ID2D1CommandSink_Impl: Sized { +pub trait ID2D1CommandSink_Impl: Sized + windows_core::IUnknownImpl { fn BeginDraw(&self) -> windows_core::Result<()>; fn EndDraw(&self) -> windows_core::Result<()>; fn SetAntialiasMode(&self, antialiasmode: D2D1_ANTIALIAS_MODE) -> windows_core::Result<()>; @@ -663,182 +492,104 @@ pub trait ID2D1CommandSink_Impl: Sized { impl windows_core::RuntimeName for ID2D1CommandSink {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink_Vtbl { - pub const fn new() -> ID2D1CommandSink_Vtbl - where - Identity: ID2D1CommandSink_Impl, - { - unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + pub const fn new() -> ID2D1CommandSink_Vtbl { + unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::BeginDraw(this).into() } - unsafe extern "system" fn EndDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn EndDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::EndDraw(this).into() } - unsafe extern "system" fn SetAntialiasMode(this: *mut core::ffi::c_void, antialiasmode: D2D1_ANTIALIAS_MODE) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn SetAntialiasMode(this: *mut core::ffi::c_void, antialiasmode: D2D1_ANTIALIAS_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::SetAntialiasMode(this, core::mem::transmute_copy(&antialiasmode)).into() } - unsafe extern "system" fn SetTags(this: *mut core::ffi::c_void, tag1: u64, tag2: u64) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn SetTags(this: *mut core::ffi::c_void, tag1: u64, tag2: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::SetTags(this, core::mem::transmute_copy(&tag1), core::mem::transmute_copy(&tag2)).into() } - unsafe extern "system" fn SetTextAntialiasMode(this: *mut core::ffi::c_void, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn SetTextAntialiasMode(this: *mut core::ffi::c_void, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::SetTextAntialiasMode(this, core::mem::transmute_copy(&textantialiasmode)).into() } - unsafe extern "system" fn SetTextRenderingParams(this: *mut core::ffi::c_void, textrenderingparams: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn SetTextRenderingParams(this: *mut core::ffi::c_void, textrenderingparams: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::SetTextRenderingParams(this, windows_core::from_raw_borrowed(&textrenderingparams)).into() } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::SetTransform(this, core::mem::transmute_copy(&transform)).into() } - unsafe extern "system" fn SetPrimitiveBlend(this: *mut core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn SetPrimitiveBlend(this: *mut core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::SetPrimitiveBlend(this, core::mem::transmute_copy(&primitiveblend)).into() } - unsafe extern "system" fn SetUnitMode(this: *mut core::ffi::c_void, unitmode: D2D1_UNIT_MODE) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn SetUnitMode(this: *mut core::ffi::c_void, unitmode: D2D1_UNIT_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::SetUnitMode(this, core::mem::transmute_copy(&unitmode)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void, color: *const Common::D2D1_COLOR_F) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void, color: *const Common::D2D1_COLOR_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::Clear(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: *const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION, foregroundbrush: *mut core::ffi::c_void, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: *const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION, foregroundbrush: *mut core::ffi::c_void, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::DrawGlyphRun(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&glyphrundescription), windows_core::from_raw_borrowed(&foregroundbrush), core::mem::transmute_copy(&measuringmode)).into() } - unsafe extern "system" fn DrawLine(this: *mut core::ffi::c_void, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn DrawLine(this: *mut core::ffi::c_void, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::DrawLine(this, core::mem::transmute(&point0), core::mem::transmute(&point1), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle)).into() } - unsafe extern "system" fn DrawGeometry(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn DrawGeometry(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::DrawGeometry(this, windows_core::from_raw_borrowed(&geometry), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle)).into() } - unsafe extern "system" fn DrawRectangle(this: *mut core::ffi::c_void, rect: *const Common::D2D_RECT_F, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn DrawRectangle(this: *mut core::ffi::c_void, rect: *const Common::D2D_RECT_F, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::DrawRectangle(this, core::mem::transmute_copy(&rect), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle)).into() } - unsafe extern "system" fn DrawBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, opacity: f32, interpolationmode: D2D1_INTERPOLATION_MODE, sourcerectangle: *const Common::D2D_RECT_F, perspectivetransform: *const Common::D2D_MATRIX_4X4_F) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn DrawBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, opacity: f32, interpolationmode: D2D1_INTERPOLATION_MODE, sourcerectangle: *const Common::D2D_RECT_F, perspectivetransform: *const Common::D2D_MATRIX_4X4_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::DrawBitmap(this, windows_core::from_raw_borrowed(&bitmap), core::mem::transmute_copy(&destinationrectangle), core::mem::transmute_copy(&opacity), core::mem::transmute_copy(&interpolationmode), core::mem::transmute_copy(&sourcerectangle), core::mem::transmute_copy(&perspectivetransform)).into() } - unsafe extern "system" fn DrawImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: Common::D2D1_COMPOSITE_MODE) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn DrawImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: Common::D2D1_COMPOSITE_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::DrawImage(this, windows_core::from_raw_borrowed(&image), core::mem::transmute_copy(&targetoffset), core::mem::transmute_copy(&imagerectangle), core::mem::transmute_copy(&interpolationmode), core::mem::transmute_copy(&compositemode)).into() } - unsafe extern "system" fn DrawGdiMetafile(this: *mut core::ffi::c_void, gdimetafile: *mut core::ffi::c_void, targetoffset: *const Common::D2D_POINT_2F) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn DrawGdiMetafile(this: *mut core::ffi::c_void, gdimetafile: *mut core::ffi::c_void, targetoffset: *const Common::D2D_POINT_2F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::DrawGdiMetafile(this, windows_core::from_raw_borrowed(&gdimetafile), core::mem::transmute_copy(&targetoffset)).into() } - unsafe extern "system" fn FillMesh(this: *mut core::ffi::c_void, mesh: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn FillMesh(this: *mut core::ffi::c_void, mesh: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::FillMesh(this, windows_core::from_raw_borrowed(&mesh), windows_core::from_raw_borrowed(&brush)).into() } - unsafe extern "system" fn FillOpacityMask(this: *mut core::ffi::c_void, opacitymask: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn FillOpacityMask(this: *mut core::ffi::c_void, opacitymask: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::FillOpacityMask(this, windows_core::from_raw_borrowed(&opacitymask), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&destinationrectangle), core::mem::transmute_copy(&sourcerectangle)).into() } - unsafe extern "system" fn FillGeometry(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, opacitybrush: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn FillGeometry(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, opacitybrush: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::FillGeometry(this, windows_core::from_raw_borrowed(&geometry), windows_core::from_raw_borrowed(&brush), windows_core::from_raw_borrowed(&opacitybrush)).into() } - unsafe extern "system" fn FillRectangle(this: *mut core::ffi::c_void, rect: *const Common::D2D_RECT_F, brush: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn FillRectangle(this: *mut core::ffi::c_void, rect: *const Common::D2D_RECT_F, brush: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::FillRectangle(this, core::mem::transmute_copy(&rect), windows_core::from_raw_borrowed(&brush)).into() } - unsafe extern "system" fn PushAxisAlignedClip(this: *mut core::ffi::c_void, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn PushAxisAlignedClip(this: *mut core::ffi::c_void, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::PushAxisAlignedClip(this, core::mem::transmute_copy(&cliprect), core::mem::transmute_copy(&antialiasmode)).into() } - unsafe extern "system" fn PushLayer(this: *mut core::ffi::c_void, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn PushLayer(this: *mut core::ffi::c_void, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::PushLayer(this, core::mem::transmute_copy(&layerparameters1), windows_core::from_raw_borrowed(&layer)).into() } - unsafe extern "system" fn PopAxisAlignedClip(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn PopAxisAlignedClip(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::PopAxisAlignedClip(this).into() } - unsafe extern "system" fn PopLayer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink_Impl, - { + unsafe extern "system" fn PopLayer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink_Impl::PopLayer(this).into() } @@ -883,14 +634,8 @@ pub trait ID2D1CommandSink1_Impl: Sized + ID2D1CommandSink_Impl { impl windows_core::RuntimeName for ID2D1CommandSink1 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink1_Vtbl { - pub const fn new() -> ID2D1CommandSink1_Vtbl - where - Identity: ID2D1CommandSink1_Impl, - { - unsafe extern "system" fn SetPrimitiveBlend1(this: *mut core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink1_Impl, - { + pub const fn new() -> ID2D1CommandSink1_Vtbl { + unsafe extern "system" fn SetPrimitiveBlend1(this: *mut core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink1_Impl::SetPrimitiveBlend1(this, core::mem::transmute_copy(&primitiveblend)).into() } @@ -910,28 +655,16 @@ pub trait ID2D1CommandSink2_Impl: Sized + ID2D1CommandSink1_Impl { impl windows_core::RuntimeName for ID2D1CommandSink2 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink2_Vtbl { - pub const fn new() -> ID2D1CommandSink2_Vtbl - where - Identity: ID2D1CommandSink2_Impl, - { - unsafe extern "system" fn DrawInk(this: *mut core::ffi::c_void, ink: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink2_Impl, - { + pub const fn new() -> ID2D1CommandSink2_Vtbl { + unsafe extern "system" fn DrawInk(this: *mut core::ffi::c_void, ink: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink2_Impl::DrawInk(this, windows_core::from_raw_borrowed(&ink), windows_core::from_raw_borrowed(&brush), windows_core::from_raw_borrowed(&inkstyle)).into() } - unsafe extern "system" fn DrawGradientMesh(this: *mut core::ffi::c_void, gradientmesh: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink2_Impl, - { + unsafe extern "system" fn DrawGradientMesh(this: *mut core::ffi::c_void, gradientmesh: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink2_Impl::DrawGradientMesh(this, windows_core::from_raw_borrowed(&gradientmesh)).into() } - unsafe extern "system" fn DrawGdiMetafile(this: *mut core::ffi::c_void, gdimetafile: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink2_Impl, - { + unsafe extern "system" fn DrawGdiMetafile(this: *mut core::ffi::c_void, gdimetafile: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink2_Impl::DrawGdiMetafile(this, windows_core::from_raw_borrowed(&gdimetafile), core::mem::transmute_copy(&destinationrectangle), core::mem::transmute_copy(&sourcerectangle)).into() } @@ -954,14 +687,8 @@ pub trait ID2D1CommandSink3_Impl: Sized + ID2D1CommandSink2_Impl { impl windows_core::RuntimeName for ID2D1CommandSink3 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink3_Vtbl { - pub const fn new() -> ID2D1CommandSink3_Vtbl - where - Identity: ID2D1CommandSink3_Impl, - { - unsafe extern "system" fn DrawSpriteBatch(this: *mut core::ffi::c_void, spritebatch: *mut core::ffi::c_void, startindex: u32, spritecount: u32, bitmap: *mut core::ffi::c_void, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink3_Impl, - { + pub const fn new() -> ID2D1CommandSink3_Vtbl { + unsafe extern "system" fn DrawSpriteBatch(this: *mut core::ffi::c_void, spritebatch: *mut core::ffi::c_void, startindex: u32, spritecount: u32, bitmap: *mut core::ffi::c_void, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink3_Impl::DrawSpriteBatch(this, windows_core::from_raw_borrowed(&spritebatch), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&spritecount), windows_core::from_raw_borrowed(&bitmap), core::mem::transmute_copy(&interpolationmode), core::mem::transmute_copy(&spriteoptions)).into() } @@ -979,14 +706,8 @@ pub trait ID2D1CommandSink4_Impl: Sized + ID2D1CommandSink3_Impl { impl windows_core::RuntimeName for ID2D1CommandSink4 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink4_Vtbl { - pub const fn new() -> ID2D1CommandSink4_Vtbl - where - Identity: ID2D1CommandSink4_Impl, - { - unsafe extern "system" fn SetPrimitiveBlend2(this: *mut core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink4_Impl, - { + pub const fn new() -> ID2D1CommandSink4_Vtbl { + unsafe extern "system" fn SetPrimitiveBlend2(this: *mut core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink4_Impl::SetPrimitiveBlend2(this, core::mem::transmute_copy(&primitiveblend)).into() } @@ -1004,14 +725,8 @@ pub trait ID2D1CommandSink5_Impl: Sized + ID2D1CommandSink4_Impl { impl windows_core::RuntimeName for ID2D1CommandSink5 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1CommandSink5_Vtbl { - pub const fn new() -> ID2D1CommandSink5_Vtbl - where - Identity: ID2D1CommandSink5_Impl, - { - unsafe extern "system" fn BlendImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, blendmode: Common::D2D1_BLEND_MODE, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE) -> windows_core::HRESULT - where - Identity: ID2D1CommandSink5_Impl, - { + pub const fn new() -> ID2D1CommandSink5_Vtbl { + unsafe extern "system" fn BlendImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, blendmode: Common::D2D1_BLEND_MODE, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1CommandSink5_Impl::BlendImage(this, windows_core::from_raw_borrowed(&image), core::mem::transmute_copy(&blendmode), core::mem::transmute_copy(&targetoffset), core::mem::transmute_copy(&imagerectangle), core::mem::transmute_copy(&interpolationmode)).into() } @@ -1028,28 +743,16 @@ pub trait ID2D1ComputeInfo_Impl: Sized + ID2D1RenderInfo_Impl { } impl windows_core::RuntimeName for ID2D1ComputeInfo {} impl ID2D1ComputeInfo_Vtbl { - pub const fn new() -> ID2D1ComputeInfo_Vtbl - where - Identity: ID2D1ComputeInfo_Impl, - { - unsafe extern "system" fn SetComputeShaderConstantBuffer(this: *mut core::ffi::c_void, buffer: *const u8, buffercount: u32) -> windows_core::HRESULT - where - Identity: ID2D1ComputeInfo_Impl, - { + pub const fn new() -> ID2D1ComputeInfo_Vtbl { + unsafe extern "system" fn SetComputeShaderConstantBuffer(this: *mut core::ffi::c_void, buffer: *const u8, buffercount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ComputeInfo_Impl::SetComputeShaderConstantBuffer(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffercount)).into() } - unsafe extern "system" fn SetComputeShader(this: *mut core::ffi::c_void, shaderid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ID2D1ComputeInfo_Impl, - { + unsafe extern "system" fn SetComputeShader(this: *mut core::ffi::c_void, shaderid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ComputeInfo_Impl::SetComputeShader(this, core::mem::transmute_copy(&shaderid)).into() } - unsafe extern "system" fn SetResourceTexture(this: *mut core::ffi::c_void, textureindex: u32, resourcetexture: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1ComputeInfo_Impl, - { + unsafe extern "system" fn SetResourceTexture(this: *mut core::ffi::c_void, textureindex: u32, resourcetexture: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ComputeInfo_Impl::SetResourceTexture(this, core::mem::transmute_copy(&textureindex), windows_core::from_raw_borrowed(&resourcetexture)).into() } @@ -1070,21 +773,12 @@ pub trait ID2D1ComputeTransform_Impl: Sized + ID2D1Transform_Impl { } impl windows_core::RuntimeName for ID2D1ComputeTransform {} impl ID2D1ComputeTransform_Vtbl { - pub const fn new() -> ID2D1ComputeTransform_Vtbl - where - Identity: ID2D1ComputeTransform_Impl, - { - unsafe extern "system" fn SetComputeInfo(this: *mut core::ffi::c_void, computeinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1ComputeTransform_Impl, - { + pub const fn new() -> ID2D1ComputeTransform_Vtbl { + unsafe extern "system" fn SetComputeInfo(this: *mut core::ffi::c_void, computeinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ComputeTransform_Impl::SetComputeInfo(this, windows_core::from_raw_borrowed(&computeinfo)).into() } - unsafe extern "system" fn CalculateThreadgroups(this: *mut core::ffi::c_void, outputrect: *const super::super::Foundation::RECT, dimensionx: *mut u32, dimensiony: *mut u32, dimensionz: *mut u32) -> windows_core::HRESULT - where - Identity: ID2D1ComputeTransform_Impl, - { + unsafe extern "system" fn CalculateThreadgroups(this: *mut core::ffi::c_void, outputrect: *const super::super::Foundation::RECT, dimensionx: *mut u32, dimensiony: *mut u32, dimensionz: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ComputeTransform_Impl::CalculateThreadgroups(this, core::mem::transmute_copy(&outputrect), core::mem::transmute_copy(&dimensionx), core::mem::transmute_copy(&dimensiony), core::mem::transmute_copy(&dimensionz)).into() } @@ -1104,21 +798,12 @@ pub trait ID2D1ConcreteTransform_Impl: Sized + ID2D1TransformNode_Impl { } impl windows_core::RuntimeName for ID2D1ConcreteTransform {} impl ID2D1ConcreteTransform_Vtbl { - pub const fn new() -> ID2D1ConcreteTransform_Vtbl - where - Identity: ID2D1ConcreteTransform_Impl, - { - unsafe extern "system" fn SetOutputBuffer(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION, channeldepth: D2D1_CHANNEL_DEPTH) -> windows_core::HRESULT - where - Identity: ID2D1ConcreteTransform_Impl, - { + pub const fn new() -> ID2D1ConcreteTransform_Vtbl { + unsafe extern "system" fn SetOutputBuffer(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION, channeldepth: D2D1_CHANNEL_DEPTH) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ConcreteTransform_Impl::SetOutputBuffer(this, core::mem::transmute_copy(&bufferprecision), core::mem::transmute_copy(&channeldepth)).into() } - unsafe extern "system" fn SetCached(this: *mut core::ffi::c_void, iscached: super::super::Foundation::BOOL) - where - Identity: ID2D1ConcreteTransform_Impl, - { + unsafe extern "system" fn SetCached(this: *mut core::ffi::c_void, iscached: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ConcreteTransform_Impl::SetCached(this, core::mem::transmute_copy(&iscached)) } @@ -1140,14 +825,8 @@ pub trait ID2D1DCRenderTarget_Impl: Sized + ID2D1RenderTarget_Impl { impl windows_core::RuntimeName for ID2D1DCRenderTarget {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi", feature = "Win32_Graphics_Imaging"))] impl ID2D1DCRenderTarget_Vtbl { - pub const fn new() -> ID2D1DCRenderTarget_Vtbl - where - Identity: ID2D1DCRenderTarget_Impl, - { - unsafe extern "system" fn BindDC(this: *mut core::ffi::c_void, hdc: super::Gdi::HDC, psubrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ID2D1DCRenderTarget_Impl, - { + pub const fn new() -> ID2D1DCRenderTarget_Vtbl { + unsafe extern "system" fn BindDC(this: *mut core::ffi::c_void, hdc: super::Gdi::HDC, psubrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DCRenderTarget_Impl::BindDC(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&psubrect)).into() } @@ -1169,14 +848,8 @@ pub trait ID2D1Device_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1Device {} #[cfg(all(feature = "Win32_Graphics_Imaging", feature = "Win32_Storage_Xps_Printing"))] impl ID2D1Device_Vtbl { - pub const fn new() -> ID2D1Device_Vtbl - where - Identity: ID2D1Device_Impl, - { - unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Device_Impl, - { + pub const fn new() -> ID2D1Device_Vtbl { + unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Device_Impl::CreateDeviceContext(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1186,10 +859,7 @@ impl ID2D1Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePrintControl(this: *mut core::ffi::c_void, wicfactory: *mut core::ffi::c_void, documenttarget: *mut core::ffi::c_void, printcontrolproperties: *const D2D1_PRINT_CONTROL_PROPERTIES, printcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Device_Impl, - { + unsafe extern "system" fn CreatePrintControl(this: *mut core::ffi::c_void, wicfactory: *mut core::ffi::c_void, documenttarget: *mut core::ffi::c_void, printcontrolproperties: *const D2D1_PRINT_CONTROL_PROPERTIES, printcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Device_Impl::CreatePrintControl(this, windows_core::from_raw_borrowed(&wicfactory), windows_core::from_raw_borrowed(&documenttarget), core::mem::transmute_copy(&printcontrolproperties)) { Ok(ok__) => { @@ -1199,24 +869,15 @@ impl ID2D1Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaximumTextureMemory(this: *mut core::ffi::c_void, maximuminbytes: u64) - where - Identity: ID2D1Device_Impl, - { + unsafe extern "system" fn SetMaximumTextureMemory(this: *mut core::ffi::c_void, maximuminbytes: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Device_Impl::SetMaximumTextureMemory(this, core::mem::transmute_copy(&maximuminbytes)) } - unsafe extern "system" fn GetMaximumTextureMemory(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID2D1Device_Impl, - { + unsafe extern "system" fn GetMaximumTextureMemory(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Device_Impl::GetMaximumTextureMemory(this) } - unsafe extern "system" fn ClearResources(this: *mut core::ffi::c_void, millisecondssinceuse: u32) - where - Identity: ID2D1Device_Impl, - { + unsafe extern "system" fn ClearResources(this: *mut core::ffi::c_void, millisecondssinceuse: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Device_Impl::ClearResources(this, core::mem::transmute_copy(&millisecondssinceuse)) } @@ -1243,28 +904,16 @@ pub trait ID2D1Device1_Impl: Sized + ID2D1Device_Impl { impl windows_core::RuntimeName for ID2D1Device1 {} #[cfg(all(feature = "Win32_Graphics_Imaging", feature = "Win32_Storage_Xps_Printing"))] impl ID2D1Device1_Vtbl { - pub const fn new() -> ID2D1Device1_Vtbl - where - Identity: ID2D1Device1_Impl, - { - unsafe extern "system" fn GetRenderingPriority(this: *mut core::ffi::c_void) -> D2D1_RENDERING_PRIORITY - where - Identity: ID2D1Device1_Impl, - { + pub const fn new() -> ID2D1Device1_Vtbl { + unsafe extern "system" fn GetRenderingPriority(this: *mut core::ffi::c_void) -> D2D1_RENDERING_PRIORITY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Device1_Impl::GetRenderingPriority(this) } - unsafe extern "system" fn SetRenderingPriority(this: *mut core::ffi::c_void, renderingpriority: D2D1_RENDERING_PRIORITY) - where - Identity: ID2D1Device1_Impl, - { + unsafe extern "system" fn SetRenderingPriority(this: *mut core::ffi::c_void, renderingpriority: D2D1_RENDERING_PRIORITY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Device1_Impl::SetRenderingPriority(this, core::mem::transmute_copy(&renderingpriority)) } - unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Device1_Impl, - { + unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Device1_Impl::CreateDeviceContext(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1295,14 +944,8 @@ pub trait ID2D1Device2_Impl: Sized + ID2D1Device1_Impl { impl windows_core::RuntimeName for ID2D1Device2 {} #[cfg(all(feature = "Win32_Graphics_Dxgi", feature = "Win32_Graphics_Imaging", feature = "Win32_Storage_Xps_Printing"))] impl ID2D1Device2_Vtbl { - pub const fn new() -> ID2D1Device2_Vtbl - where - Identity: ID2D1Device2_Impl, - { - unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Device2_Impl, - { + pub const fn new() -> ID2D1Device2_Vtbl { + unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Device2_Impl::CreateDeviceContext(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1312,17 +955,11 @@ impl ID2D1Device2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FlushDeviceContexts(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void) - where - Identity: ID2D1Device2_Impl, - { + unsafe extern "system" fn FlushDeviceContexts(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Device2_Impl::FlushDeviceContexts(this, windows_core::from_raw_borrowed(&bitmap)) } - unsafe extern "system" fn GetDxgiDevice(this: *mut core::ffi::c_void, dxgidevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Device2_Impl, - { + unsafe extern "system" fn GetDxgiDevice(this: *mut core::ffi::c_void, dxgidevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Device2_Impl::GetDxgiDevice(this) { Ok(ok__) => { @@ -1351,14 +988,8 @@ pub trait ID2D1Device3_Impl: Sized + ID2D1Device2_Impl { impl windows_core::RuntimeName for ID2D1Device3 {} #[cfg(all(feature = "Win32_Graphics_Dxgi", feature = "Win32_Graphics_Imaging", feature = "Win32_Storage_Xps_Printing"))] impl ID2D1Device3_Vtbl { - pub const fn new() -> ID2D1Device3_Vtbl - where - Identity: ID2D1Device3_Impl, - { - unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext3: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Device3_Impl, - { + pub const fn new() -> ID2D1Device3_Vtbl { + unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext3: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Device3_Impl::CreateDeviceContext(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1384,14 +1015,8 @@ pub trait ID2D1Device4_Impl: Sized + ID2D1Device3_Impl { impl windows_core::RuntimeName for ID2D1Device4 {} #[cfg(all(feature = "Win32_Graphics_Dxgi", feature = "Win32_Graphics_Imaging", feature = "Win32_Storage_Xps_Printing"))] impl ID2D1Device4_Vtbl { - pub const fn new() -> ID2D1Device4_Vtbl - where - Identity: ID2D1Device4_Impl, - { - unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext4: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Device4_Impl, - { + pub const fn new() -> ID2D1Device4_Vtbl { + unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext4: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Device4_Impl::CreateDeviceContext(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1401,17 +1026,11 @@ impl ID2D1Device4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaximumColorGlyphCacheMemory(this: *mut core::ffi::c_void, maximuminbytes: u64) - where - Identity: ID2D1Device4_Impl, - { + unsafe extern "system" fn SetMaximumColorGlyphCacheMemory(this: *mut core::ffi::c_void, maximuminbytes: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Device4_Impl::SetMaximumColorGlyphCacheMemory(this, core::mem::transmute_copy(&maximuminbytes)) } - unsafe extern "system" fn GetMaximumColorGlyphCacheMemory(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID2D1Device4_Impl, - { + unsafe extern "system" fn GetMaximumColorGlyphCacheMemory(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Device4_Impl::GetMaximumColorGlyphCacheMemory(this) } @@ -1434,14 +1053,8 @@ pub trait ID2D1Device5_Impl: Sized + ID2D1Device4_Impl { impl windows_core::RuntimeName for ID2D1Device5 {} #[cfg(all(feature = "Win32_Graphics_Dxgi", feature = "Win32_Graphics_Imaging", feature = "Win32_Storage_Xps_Printing"))] impl ID2D1Device5_Vtbl { - pub const fn new() -> ID2D1Device5_Vtbl - where - Identity: ID2D1Device5_Impl, - { - unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext5: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Device5_Impl, - { + pub const fn new() -> ID2D1Device5_Vtbl { + unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext5: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Device5_Impl::CreateDeviceContext(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1465,14 +1078,8 @@ pub trait ID2D1Device6_Impl: Sized + ID2D1Device5_Impl { impl windows_core::RuntimeName for ID2D1Device6 {} #[cfg(all(feature = "Win32_Graphics_Dxgi", feature = "Win32_Graphics_Imaging", feature = "Win32_Storage_Xps_Printing"))] impl ID2D1Device6_Vtbl { - pub const fn new() -> ID2D1Device6_Vtbl - where - Identity: ID2D1Device6_Impl, - { - unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext6: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Device6_Impl, - { + pub const fn new() -> ID2D1Device6_Vtbl { + unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext6: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Device6_Impl::CreateDeviceContext(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1496,14 +1103,8 @@ pub trait ID2D1Device7_Impl: Sized + ID2D1Device6_Impl { impl windows_core::RuntimeName for ID2D1Device7 {} #[cfg(all(feature = "Win32_Graphics_Dxgi", feature = "Win32_Graphics_Imaging", feature = "Win32_Storage_Xps_Printing"))] impl ID2D1Device7_Vtbl { - pub const fn new() -> ID2D1Device7_Vtbl - where - Identity: ID2D1Device7_Impl, - { - unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Device7_Impl, - { + pub const fn new() -> ID2D1Device7_Vtbl { + unsafe extern "system" fn CreateDeviceContext(this: *mut core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Device7_Impl::CreateDeviceContext(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1561,14 +1162,8 @@ pub trait ID2D1DeviceContext_Impl: Sized + ID2D1RenderTarget_Impl { impl windows_core::RuntimeName for ID2D1DeviceContext {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext_Vtbl { - pub const fn new() -> ID2D1DeviceContext_Vtbl - where - Identity: ID2D1DeviceContext_Impl, - { - unsafe extern "system" fn CreateBitmap(this: *mut core::ffi::c_void, size: Common::D2D_SIZE_U, sourcedata: *const core::ffi::c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + pub const fn new() -> ID2D1DeviceContext_Vtbl { + unsafe extern "system" fn CreateBitmap(this: *mut core::ffi::c_void, size: Common::D2D_SIZE_U, sourcedata: *const core::ffi::c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateBitmap(this, core::mem::transmute(&size), core::mem::transmute_copy(&sourcedata), core::mem::transmute_copy(&pitch), core::mem::transmute_copy(&bitmapproperties)) { Ok(ok__) => { @@ -1578,10 +1173,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapFromWicBitmap(this: *mut core::ffi::c_void, wicbitmapsource: *mut core::ffi::c_void, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn CreateBitmapFromWicBitmap(this: *mut core::ffi::c_void, wicbitmapsource: *mut core::ffi::c_void, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateBitmapFromWicBitmap(this, windows_core::from_raw_borrowed(&wicbitmapsource), core::mem::transmute_copy(&bitmapproperties)) { Ok(ok__) => { @@ -1591,10 +1183,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorContext(this: *mut core::ffi::c_void, space: D2D1_COLOR_SPACE, profile: *const u8, profilesize: u32, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn CreateColorContext(this: *mut core::ffi::c_void, space: D2D1_COLOR_SPACE, profile: *const u8, profilesize: u32, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateColorContext(this, core::mem::transmute_copy(&space), core::mem::transmute_copy(&profile), core::mem::transmute_copy(&profilesize)) { Ok(ok__) => { @@ -1604,10 +1193,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorContextFromFilename(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn CreateColorContextFromFilename(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateColorContextFromFilename(this, core::mem::transmute(&filename)) { Ok(ok__) => { @@ -1617,10 +1203,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorContextFromWicColorContext(this: *mut core::ffi::c_void, wiccolorcontext: *mut core::ffi::c_void, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn CreateColorContextFromWicColorContext(this: *mut core::ffi::c_void, wiccolorcontext: *mut core::ffi::c_void, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateColorContextFromWicColorContext(this, windows_core::from_raw_borrowed(&wiccolorcontext)) { Ok(ok__) => { @@ -1630,10 +1213,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapFromDxgiSurface(this: *mut core::ffi::c_void, surface: *mut core::ffi::c_void, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn CreateBitmapFromDxgiSurface(this: *mut core::ffi::c_void, surface: *mut core::ffi::c_void, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateBitmapFromDxgiSurface(this, windows_core::from_raw_borrowed(&surface), core::mem::transmute_copy(&bitmapproperties)) { Ok(ok__) => { @@ -1643,10 +1223,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, effectid: *const windows_core::GUID, effect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, effectid: *const windows_core::GUID, effect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateEffect(this, core::mem::transmute_copy(&effectid)) { Ok(ok__) => { @@ -1656,10 +1233,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGradientStopCollection(this: *mut core::ffi::c_void, straightalphagradientstops: *const Common::D2D1_GRADIENT_STOP, straightalphagradientstopscount: u32, preinterpolationspace: D2D1_COLOR_SPACE, postinterpolationspace: D2D1_COLOR_SPACE, bufferprecision: D2D1_BUFFER_PRECISION, extendmode: D2D1_EXTEND_MODE, colorinterpolationmode: D2D1_COLOR_INTERPOLATION_MODE, gradientstopcollection1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn CreateGradientStopCollection(this: *mut core::ffi::c_void, straightalphagradientstops: *const Common::D2D1_GRADIENT_STOP, straightalphagradientstopscount: u32, preinterpolationspace: D2D1_COLOR_SPACE, postinterpolationspace: D2D1_COLOR_SPACE, bufferprecision: D2D1_BUFFER_PRECISION, extendmode: D2D1_EXTEND_MODE, colorinterpolationmode: D2D1_COLOR_INTERPOLATION_MODE, gradientstopcollection1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateGradientStopCollection(this, core::mem::transmute_copy(&straightalphagradientstops), core::mem::transmute_copy(&straightalphagradientstopscount), core::mem::transmute_copy(&preinterpolationspace), core::mem::transmute_copy(&postinterpolationspace), core::mem::transmute_copy(&bufferprecision), core::mem::transmute_copy(&extendmode), core::mem::transmute_copy(&colorinterpolationmode)) { Ok(ok__) => { @@ -1669,10 +1243,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateImageBrush(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, imagebrushproperties: *const D2D1_IMAGE_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, imagebrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn CreateImageBrush(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, imagebrushproperties: *const D2D1_IMAGE_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, imagebrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateImageBrush(this, windows_core::from_raw_borrowed(&image), core::mem::transmute_copy(&imagebrushproperties), core::mem::transmute_copy(&brushproperties)) { Ok(ok__) => { @@ -1682,10 +1253,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapBrush(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES1, brushproperties: *const D2D1_BRUSH_PROPERTIES, bitmapbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn CreateBitmapBrush(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES1, brushproperties: *const D2D1_BRUSH_PROPERTIES, bitmapbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateBitmapBrush(this, windows_core::from_raw_borrowed(&bitmap), core::mem::transmute_copy(&bitmapbrushproperties), core::mem::transmute_copy(&brushproperties)) { Ok(ok__) => { @@ -1695,10 +1263,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCommandList(this: *mut core::ffi::c_void, commandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn CreateCommandList(this: *mut core::ffi::c_void, commandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::CreateCommandList(this) { Ok(ok__) => { @@ -1708,24 +1273,15 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDxgiFormatSupported(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT) -> super::super::Foundation::BOOL - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn IsDxgiFormatSupported(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::IsDxgiFormatSupported(this, core::mem::transmute_copy(&format)) } - unsafe extern "system" fn IsBufferPrecisionSupported(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn IsBufferPrecisionSupported(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::IsBufferPrecisionSupported(this, core::mem::transmute_copy(&bufferprecision)) } - unsafe extern "system" fn GetImageLocalBounds(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, localbounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetImageLocalBounds(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, localbounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::GetImageLocalBounds(this, windows_core::from_raw_borrowed(&image)) { Ok(ok__) => { @@ -1735,10 +1291,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImageWorldBounds(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, worldbounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetImageWorldBounds(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, worldbounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::GetImageWorldBounds(this, windows_core::from_raw_borrowed(&image)) { Ok(ok__) => { @@ -1748,10 +1301,7 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGlyphRunWorldBounds(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetGlyphRunWorldBounds(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::GetGlyphRunWorldBounds(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&measuringmode)) { Ok(ok__) => { @@ -1761,115 +1311,67 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, device: *mut *mut core::ffi::c_void) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, device: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::GetDevice(this, core::mem::transmute_copy(&device)) } - unsafe extern "system" fn SetTarget(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn SetTarget(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::SetTarget(this, windows_core::from_raw_borrowed(&image)) } - unsafe extern "system" fn GetTarget(this: *mut core::ffi::c_void, image: *mut *mut core::ffi::c_void) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetTarget(this: *mut core::ffi::c_void, image: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::GetTarget(this, core::mem::transmute_copy(&image)) } - unsafe extern "system" fn SetRenderingControls(this: *mut core::ffi::c_void, renderingcontrols: *const D2D1_RENDERING_CONTROLS) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn SetRenderingControls(this: *mut core::ffi::c_void, renderingcontrols: *const D2D1_RENDERING_CONTROLS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::SetRenderingControls(this, core::mem::transmute_copy(&renderingcontrols)) } - unsafe extern "system" fn GetRenderingControls(this: *mut core::ffi::c_void, renderingcontrols: *mut D2D1_RENDERING_CONTROLS) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetRenderingControls(this: *mut core::ffi::c_void, renderingcontrols: *mut D2D1_RENDERING_CONTROLS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::GetRenderingControls(this, core::mem::transmute_copy(&renderingcontrols)) } - unsafe extern "system" fn SetPrimitiveBlend(this: *mut core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn SetPrimitiveBlend(this: *mut core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::SetPrimitiveBlend(this, core::mem::transmute_copy(&primitiveblend)) } - unsafe extern "system" fn GetPrimitiveBlend(this: *mut core::ffi::c_void) -> D2D1_PRIMITIVE_BLEND - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetPrimitiveBlend(this: *mut core::ffi::c_void) -> D2D1_PRIMITIVE_BLEND { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::GetPrimitiveBlend(this) } - unsafe extern "system" fn SetUnitMode(this: *mut core::ffi::c_void, unitmode: D2D1_UNIT_MODE) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn SetUnitMode(this: *mut core::ffi::c_void, unitmode: D2D1_UNIT_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::SetUnitMode(this, core::mem::transmute_copy(&unitmode)) } - unsafe extern "system" fn GetUnitMode(this: *mut core::ffi::c_void) -> D2D1_UNIT_MODE - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetUnitMode(this: *mut core::ffi::c_void) -> D2D1_UNIT_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::GetUnitMode(this) } - unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: *const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION, foregroundbrush: *mut core::ffi::c_void, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: *const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION, foregroundbrush: *mut core::ffi::c_void, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::DrawGlyphRun(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&glyphrundescription), windows_core::from_raw_borrowed(&foregroundbrush), core::mem::transmute_copy(&measuringmode)) } - unsafe extern "system" fn DrawImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: Common::D2D1_COMPOSITE_MODE) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn DrawImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: Common::D2D1_COMPOSITE_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::DrawImage(this, windows_core::from_raw_borrowed(&image), core::mem::transmute_copy(&targetoffset), core::mem::transmute_copy(&imagerectangle), core::mem::transmute_copy(&interpolationmode), core::mem::transmute_copy(&compositemode)) } - unsafe extern "system" fn DrawGdiMetafile(this: *mut core::ffi::c_void, gdimetafile: *mut core::ffi::c_void, targetoffset: *const Common::D2D_POINT_2F) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn DrawGdiMetafile(this: *mut core::ffi::c_void, gdimetafile: *mut core::ffi::c_void, targetoffset: *const Common::D2D_POINT_2F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::DrawGdiMetafile(this, windows_core::from_raw_borrowed(&gdimetafile), core::mem::transmute_copy(&targetoffset)) } - unsafe extern "system" fn DrawBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, opacity: f32, interpolationmode: D2D1_INTERPOLATION_MODE, sourcerectangle: *const Common::D2D_RECT_F, perspectivetransform: *const Common::D2D_MATRIX_4X4_F) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn DrawBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, opacity: f32, interpolationmode: D2D1_INTERPOLATION_MODE, sourcerectangle: *const Common::D2D_RECT_F, perspectivetransform: *const Common::D2D_MATRIX_4X4_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::DrawBitmap(this, windows_core::from_raw_borrowed(&bitmap), core::mem::transmute_copy(&destinationrectangle), core::mem::transmute_copy(&opacity), core::mem::transmute_copy(&interpolationmode), core::mem::transmute_copy(&sourcerectangle), core::mem::transmute_copy(&perspectivetransform)) } - unsafe extern "system" fn PushLayer(this: *mut core::ffi::c_void, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: *mut core::ffi::c_void) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn PushLayer(this: *mut core::ffi::c_void, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::PushLayer(this, core::mem::transmute_copy(&layerparameters), windows_core::from_raw_borrowed(&layer)) } - unsafe extern "system" fn InvalidateEffectInputRectangle(this: *mut core::ffi::c_void, effect: *mut core::ffi::c_void, input: u32, inputrectangle: *const Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn InvalidateEffectInputRectangle(this: *mut core::ffi::c_void, effect: *mut core::ffi::c_void, input: u32, inputrectangle: *const Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::InvalidateEffectInputRectangle(this, windows_core::from_raw_borrowed(&effect), core::mem::transmute_copy(&input), core::mem::transmute_copy(&inputrectangle)).into() } - unsafe extern "system" fn GetEffectInvalidRectangleCount(this: *mut core::ffi::c_void, effect: *mut core::ffi::c_void, rectanglecount: *mut u32) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetEffectInvalidRectangleCount(this: *mut core::ffi::c_void, effect: *mut core::ffi::c_void, rectanglecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext_Impl::GetEffectInvalidRectangleCount(this, windows_core::from_raw_borrowed(&effect)) { Ok(ok__) => { @@ -1879,24 +1381,15 @@ impl ID2D1DeviceContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEffectInvalidRectangles(this: *mut core::ffi::c_void, effect: *mut core::ffi::c_void, rectangles: *mut Common::D2D_RECT_F, rectanglescount: u32) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetEffectInvalidRectangles(this: *mut core::ffi::c_void, effect: *mut core::ffi::c_void, rectangles: *mut Common::D2D_RECT_F, rectanglescount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::GetEffectInvalidRectangles(this, windows_core::from_raw_borrowed(&effect), core::mem::transmute_copy(&rectangles), core::mem::transmute_copy(&rectanglescount)).into() } - unsafe extern "system" fn GetEffectRequiredInputRectangles(this: *mut core::ffi::c_void, rendereffect: *mut core::ffi::c_void, renderimagerectangle: *const Common::D2D_RECT_F, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn GetEffectRequiredInputRectangles(this: *mut core::ffi::c_void, rendereffect: *mut core::ffi::c_void, renderimagerectangle: *const Common::D2D_RECT_F, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut Common::D2D_RECT_F, inputcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::GetEffectRequiredInputRectangles(this, windows_core::from_raw_borrowed(&rendereffect), core::mem::transmute_copy(&renderimagerectangle), core::mem::transmute_copy(&inputdescriptions), core::mem::transmute_copy(&requiredinputrects), core::mem::transmute_copy(&inputcount)).into() } - unsafe extern "system" fn FillOpacityMask(this: *mut core::ffi::c_void, opacitymask: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) - where - Identity: ID2D1DeviceContext_Impl, - { + unsafe extern "system" fn FillOpacityMask(this: *mut core::ffi::c_void, opacitymask: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::FillOpacityMask(this, windows_core::from_raw_borrowed(&opacitymask), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&destinationrectangle), core::mem::transmute_copy(&sourcerectangle)) } @@ -1953,14 +1446,8 @@ pub trait ID2D1DeviceContext1_Impl: Sized + ID2D1DeviceContext_Impl { impl windows_core::RuntimeName for ID2D1DeviceContext1 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext1_Vtbl { - pub const fn new() -> ID2D1DeviceContext1_Vtbl - where - Identity: ID2D1DeviceContext1_Impl, - { - unsafe extern "system" fn CreateFilledGeometryRealization(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, flatteningtolerance: f32, geometryrealization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext1_Impl, - { + pub const fn new() -> ID2D1DeviceContext1_Vtbl { + unsafe extern "system" fn CreateFilledGeometryRealization(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, flatteningtolerance: f32, geometryrealization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext1_Impl::CreateFilledGeometryRealization(this, windows_core::from_raw_borrowed(&geometry), core::mem::transmute_copy(&flatteningtolerance)) { Ok(ok__) => { @@ -1970,10 +1457,7 @@ impl ID2D1DeviceContext1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStrokedGeometryRealization(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, flatteningtolerance: f32, strokewidth: f32, strokestyle: *mut core::ffi::c_void, geometryrealization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext1_Impl, - { + unsafe extern "system" fn CreateStrokedGeometryRealization(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, flatteningtolerance: f32, strokewidth: f32, strokestyle: *mut core::ffi::c_void, geometryrealization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext1_Impl::CreateStrokedGeometryRealization(this, windows_core::from_raw_borrowed(&geometry), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle)) { Ok(ok__) => { @@ -1983,10 +1467,7 @@ impl ID2D1DeviceContext1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DrawGeometryRealization(this: *mut core::ffi::c_void, geometryrealization: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) - where - Identity: ID2D1DeviceContext1_Impl, - { + unsafe extern "system" fn DrawGeometryRealization(this: *mut core::ffi::c_void, geometryrealization: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext1_Impl::DrawGeometryRealization(this, windows_core::from_raw_borrowed(&geometryrealization), windows_core::from_raw_borrowed(&brush)) } @@ -2019,14 +1500,8 @@ pub trait ID2D1DeviceContext2_Impl: Sized + ID2D1DeviceContext1_Impl { impl windows_core::RuntimeName for ID2D1DeviceContext2 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext2_Vtbl { - pub const fn new() -> ID2D1DeviceContext2_Vtbl - where - Identity: ID2D1DeviceContext2_Impl, - { - unsafe extern "system" fn CreateInk(this: *mut core::ffi::c_void, startpoint: *const D2D1_INK_POINT, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext2_Impl, - { + pub const fn new() -> ID2D1DeviceContext2_Vtbl { + unsafe extern "system" fn CreateInk(this: *mut core::ffi::c_void, startpoint: *const D2D1_INK_POINT, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext2_Impl::CreateInk(this, core::mem::transmute_copy(&startpoint)) { Ok(ok__) => { @@ -2036,10 +1511,7 @@ impl ID2D1DeviceContext2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInkStyle(this: *mut core::ffi::c_void, inkstyleproperties: *const D2D1_INK_STYLE_PROPERTIES, inkstyle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext2_Impl, - { + unsafe extern "system" fn CreateInkStyle(this: *mut core::ffi::c_void, inkstyleproperties: *const D2D1_INK_STYLE_PROPERTIES, inkstyle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext2_Impl::CreateInkStyle(this, core::mem::transmute_copy(&inkstyleproperties)) { Ok(ok__) => { @@ -2049,10 +1521,7 @@ impl ID2D1DeviceContext2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGradientMesh(this: *mut core::ffi::c_void, patches: *const D2D1_GRADIENT_MESH_PATCH, patchescount: u32, gradientmesh: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext2_Impl, - { + unsafe extern "system" fn CreateGradientMesh(this: *mut core::ffi::c_void, patches: *const D2D1_GRADIENT_MESH_PATCH, patchescount: u32, gradientmesh: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext2_Impl::CreateGradientMesh(this, core::mem::transmute_copy(&patches), core::mem::transmute_copy(&patchescount)) { Ok(ok__) => { @@ -2062,10 +1531,7 @@ impl ID2D1DeviceContext2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateImageSourceFromWic(this: *mut core::ffi::c_void, wicbitmapsource: *mut core::ffi::c_void, loadingoptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS, alphamode: Common::D2D1_ALPHA_MODE, imagesource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext2_Impl, - { + unsafe extern "system" fn CreateImageSourceFromWic(this: *mut core::ffi::c_void, wicbitmapsource: *mut core::ffi::c_void, loadingoptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS, alphamode: Common::D2D1_ALPHA_MODE, imagesource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext2_Impl::CreateImageSourceFromWic(this, windows_core::from_raw_borrowed(&wicbitmapsource), core::mem::transmute_copy(&loadingoptions), core::mem::transmute_copy(&alphamode)) { Ok(ok__) => { @@ -2075,10 +1541,7 @@ impl ID2D1DeviceContext2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLookupTable3D(this: *mut core::ffi::c_void, precision: D2D1_BUFFER_PRECISION, extents: *const u32, data: *const u8, datacount: u32, strides: *const u32, lookuptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext2_Impl, - { + unsafe extern "system" fn CreateLookupTable3D(this: *mut core::ffi::c_void, precision: D2D1_BUFFER_PRECISION, extents: *const u32, data: *const u8, datacount: u32, strides: *const u32, lookuptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext2_Impl::CreateLookupTable3D(this, core::mem::transmute_copy(&precision), core::mem::transmute_copy(&extents), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datacount), core::mem::transmute_copy(&strides)) { Ok(ok__) => { @@ -2088,10 +1551,7 @@ impl ID2D1DeviceContext2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateImageSourceFromDxgi(this: *mut core::ffi::c_void, surfaces: *const *mut core::ffi::c_void, surfacecount: u32, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, options: D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS, imagesource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext2_Impl, - { + unsafe extern "system" fn CreateImageSourceFromDxgi(this: *mut core::ffi::c_void, surfaces: *const *mut core::ffi::c_void, surfacecount: u32, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, options: D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS, imagesource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext2_Impl::CreateImageSourceFromDxgi(this, core::mem::transmute_copy(&surfaces), core::mem::transmute_copy(&surfacecount), core::mem::transmute_copy(&colorspace), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -2101,10 +1561,7 @@ impl ID2D1DeviceContext2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGradientMeshWorldBounds(this: *mut core::ffi::c_void, gradientmesh: *mut core::ffi::c_void, pbounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext2_Impl, - { + unsafe extern "system" fn GetGradientMeshWorldBounds(this: *mut core::ffi::c_void, gradientmesh: *mut core::ffi::c_void, pbounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext2_Impl::GetGradientMeshWorldBounds(this, windows_core::from_raw_borrowed(&gradientmesh)) { Ok(ok__) => { @@ -2114,31 +1571,19 @@ impl ID2D1DeviceContext2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DrawInk(this: *mut core::ffi::c_void, ink: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void) - where - Identity: ID2D1DeviceContext2_Impl, - { + unsafe extern "system" fn DrawInk(this: *mut core::ffi::c_void, ink: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext2_Impl::DrawInk(this, windows_core::from_raw_borrowed(&ink), windows_core::from_raw_borrowed(&brush), windows_core::from_raw_borrowed(&inkstyle)) } - unsafe extern "system" fn DrawGradientMesh(this: *mut core::ffi::c_void, gradientmesh: *mut core::ffi::c_void) - where - Identity: ID2D1DeviceContext2_Impl, - { + unsafe extern "system" fn DrawGradientMesh(this: *mut core::ffi::c_void, gradientmesh: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext2_Impl::DrawGradientMesh(this, windows_core::from_raw_borrowed(&gradientmesh)) } - unsafe extern "system" fn DrawGdiMetafile(this: *mut core::ffi::c_void, gdimetafile: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) - where - Identity: ID2D1DeviceContext2_Impl, - { + unsafe extern "system" fn DrawGdiMetafile(this: *mut core::ffi::c_void, gdimetafile: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext2_Impl::DrawGdiMetafile(this, windows_core::from_raw_borrowed(&gdimetafile), core::mem::transmute_copy(&destinationrectangle), core::mem::transmute_copy(&sourcerectangle)) } - unsafe extern "system" fn CreateTransformedImageSource(this: *mut core::ffi::c_void, imagesource: *mut core::ffi::c_void, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES, transformedimagesource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext2_Impl, - { + unsafe extern "system" fn CreateTransformedImageSource(this: *mut core::ffi::c_void, imagesource: *mut core::ffi::c_void, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES, transformedimagesource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext2_Impl::CreateTransformedImageSource(this, windows_core::from_raw_borrowed(&imagesource), core::mem::transmute_copy(&properties)) { Ok(ok__) => { @@ -2176,14 +1621,8 @@ pub trait ID2D1DeviceContext3_Impl: Sized + ID2D1DeviceContext2_Impl { impl windows_core::RuntimeName for ID2D1DeviceContext3 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext3_Vtbl { - pub const fn new() -> ID2D1DeviceContext3_Vtbl - where - Identity: ID2D1DeviceContext3_Impl, - { - unsafe extern "system" fn CreateSpriteBatch(this: *mut core::ffi::c_void, spritebatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext3_Impl, - { + pub const fn new() -> ID2D1DeviceContext3_Vtbl { + unsafe extern "system" fn CreateSpriteBatch(this: *mut core::ffi::c_void, spritebatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext3_Impl::CreateSpriteBatch(this) { Ok(ok__) => { @@ -2193,10 +1632,7 @@ impl ID2D1DeviceContext3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DrawSpriteBatch(this: *mut core::ffi::c_void, spritebatch: *mut core::ffi::c_void, startindex: u32, spritecount: u32, bitmap: *mut core::ffi::c_void, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) - where - Identity: ID2D1DeviceContext3_Impl, - { + unsafe extern "system" fn DrawSpriteBatch(this: *mut core::ffi::c_void, spritebatch: *mut core::ffi::c_void, startindex: u32, spritecount: u32, bitmap: *mut core::ffi::c_void, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext3_Impl::DrawSpriteBatch(this, windows_core::from_raw_borrowed(&spritebatch), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&spritecount), windows_core::from_raw_borrowed(&bitmap), core::mem::transmute_copy(&interpolationmode), core::mem::transmute_copy(&spriteoptions)) } @@ -2224,14 +1660,8 @@ pub trait ID2D1DeviceContext4_Impl: Sized + ID2D1DeviceContext3_Impl { impl windows_core::RuntimeName for ID2D1DeviceContext4 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext4_Vtbl { - pub const fn new() -> ID2D1DeviceContext4_Vtbl - where - Identity: ID2D1DeviceContext4_Impl, - { - unsafe extern "system" fn CreateSvgGlyphStyle(this: *mut core::ffi::c_void, svgglyphstyle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext4_Impl, - { + pub const fn new() -> ID2D1DeviceContext4_Vtbl { + unsafe extern "system" fn CreateSvgGlyphStyle(this: *mut core::ffi::c_void, svgglyphstyle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext4_Impl::CreateSvgGlyphStyle(this) { Ok(ok__) => { @@ -2241,45 +1671,27 @@ impl ID2D1DeviceContext4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DrawText(this: *mut core::ffi::c_void, string: windows_core::PCWSTR, stringlength: u32, textformat: *mut core::ffi::c_void, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) - where - Identity: ID2D1DeviceContext4_Impl, - { + unsafe extern "system" fn DrawText(this: *mut core::ffi::c_void, string: windows_core::PCWSTR, stringlength: u32, textformat: *mut core::ffi::c_void, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext4_Impl::DrawText(this, core::mem::transmute(&string), core::mem::transmute_copy(&stringlength), windows_core::from_raw_borrowed(&textformat), core::mem::transmute_copy(&layoutrect), windows_core::from_raw_borrowed(&defaultfillbrush), windows_core::from_raw_borrowed(&svgglyphstyle), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&options), core::mem::transmute_copy(&measuringmode)) } - unsafe extern "system" fn DrawTextLayout(this: *mut core::ffi::c_void, origin: Common::D2D_POINT_2F, textlayout: *mut core::ffi::c_void, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS) - where - Identity: ID2D1DeviceContext4_Impl, - { + unsafe extern "system" fn DrawTextLayout(this: *mut core::ffi::c_void, origin: Common::D2D_POINT_2F, textlayout: *mut core::ffi::c_void, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext4_Impl::DrawTextLayout(this, core::mem::transmute(&origin), windows_core::from_raw_borrowed(&textlayout), windows_core::from_raw_borrowed(&defaultfillbrush), windows_core::from_raw_borrowed(&svgglyphstyle), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&options)) } - unsafe extern "system" fn DrawColorBitmapGlyphRun(this: *mut core::ffi::c_void, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION) - where - Identity: ID2D1DeviceContext4_Impl, - { + unsafe extern "system" fn DrawColorBitmapGlyphRun(this: *mut core::ffi::c_void, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext4_Impl::DrawColorBitmapGlyphRun(this, core::mem::transmute_copy(&glyphimageformat), core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&bitmapsnapoption)) } - unsafe extern "system" fn DrawSvgGlyphRun(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) - where - Identity: ID2D1DeviceContext4_Impl, - { + unsafe extern "system" fn DrawSvgGlyphRun(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext4_Impl::DrawSvgGlyphRun(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), windows_core::from_raw_borrowed(&defaultfillbrush), windows_core::from_raw_borrowed(&svgglyphstyle), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&measuringmode)) } - unsafe extern "system" fn GetColorBitmapGlyphImage(this: *mut core::ffi::c_void, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: super::super::Foundation::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext4_Impl, - { + unsafe extern "system" fn GetColorBitmapGlyphImage(this: *mut core::ffi::c_void, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: super::super::Foundation::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext4_Impl::GetColorBitmapGlyphImage(this, core::mem::transmute_copy(&glyphimageformat), core::mem::transmute(&glyphorigin), windows_core::from_raw_borrowed(&fontface), core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&glyphindex), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy), core::mem::transmute_copy(&glyphtransform), core::mem::transmute_copy(&glyphimage)).into() } - unsafe extern "system" fn GetSvgGlyphImage(this: *mut core::ffi::c_void, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: super::super::Foundation::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext4_Impl, - { + unsafe extern "system" fn GetSvgGlyphImage(this: *mut core::ffi::c_void, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: super::super::Foundation::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext4_Impl::GetSvgGlyphImage(this, core::mem::transmute(&glyphorigin), windows_core::from_raw_borrowed(&fontface), core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&glyphindex), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&worldtransform), windows_core::from_raw_borrowed(&defaultfillbrush), windows_core::from_raw_borrowed(&svgglyphstyle), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&glyphtransform), core::mem::transmute_copy(&glyphimage)).into() } @@ -2309,14 +1721,8 @@ pub trait ID2D1DeviceContext5_Impl: Sized + ID2D1DeviceContext4_Impl { impl windows_core::RuntimeName for ID2D1DeviceContext5 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1DeviceContext5_Vtbl { - pub const fn new() -> ID2D1DeviceContext5_Vtbl - where - Identity: ID2D1DeviceContext5_Impl, - { - unsafe extern "system" fn CreateSvgDocument(this: *mut core::ffi::c_void, inputxmlstream: *mut core::ffi::c_void, viewportsize: Common::D2D_SIZE_F, svgdocument: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext5_Impl, - { + pub const fn new() -> ID2D1DeviceContext5_Vtbl { + unsafe extern "system" fn CreateSvgDocument(this: *mut core::ffi::c_void, inputxmlstream: *mut core::ffi::c_void, viewportsize: Common::D2D_SIZE_F, svgdocument: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext5_Impl::CreateSvgDocument(this, windows_core::from_raw_borrowed(&inputxmlstream), core::mem::transmute(&viewportsize)) { Ok(ok__) => { @@ -2326,17 +1732,11 @@ impl ID2D1DeviceContext5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DrawSvgDocument(this: *mut core::ffi::c_void, svgdocument: *mut core::ffi::c_void) - where - Identity: ID2D1DeviceContext5_Impl, - { + unsafe extern "system" fn DrawSvgDocument(this: *mut core::ffi::c_void, svgdocument: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext5_Impl::DrawSvgDocument(this, windows_core::from_raw_borrowed(&svgdocument)) } - unsafe extern "system" fn CreateColorContextFromDxgiColorSpace(this: *mut core::ffi::c_void, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext5_Impl, - { + unsafe extern "system" fn CreateColorContextFromDxgiColorSpace(this: *mut core::ffi::c_void, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext5_Impl::CreateColorContextFromDxgiColorSpace(this, core::mem::transmute_copy(&colorspace)) { Ok(ok__) => { @@ -2346,10 +1746,7 @@ impl ID2D1DeviceContext5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorContextFromSimpleColorProfile(this: *mut core::ffi::c_void, simpleprofile: *const D2D1_SIMPLE_COLOR_PROFILE, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DeviceContext5_Impl, - { + unsafe extern "system" fn CreateColorContextFromSimpleColorProfile(this: *mut core::ffi::c_void, simpleprofile: *const D2D1_SIMPLE_COLOR_PROFILE, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1DeviceContext5_Impl::CreateColorContextFromSimpleColorProfile(this, core::mem::transmute_copy(&simpleprofile)) { Ok(ok__) => { @@ -2379,14 +1776,8 @@ pub trait ID2D1DeviceContext6_Impl: Sized + ID2D1DeviceContext5_Impl { impl windows_core::RuntimeName for ID2D1DeviceContext6 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1DeviceContext6_Vtbl { - pub const fn new() -> ID2D1DeviceContext6_Vtbl - where - Identity: ID2D1DeviceContext6_Impl, - { - unsafe extern "system" fn BlendImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, blendmode: Common::D2D1_BLEND_MODE, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE) - where - Identity: ID2D1DeviceContext6_Impl, - { + pub const fn new() -> ID2D1DeviceContext6_Vtbl { + unsafe extern "system" fn BlendImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, blendmode: Common::D2D1_BLEND_MODE, targetoffset: *const Common::D2D_POINT_2F, imagerectangle: *const Common::D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext6_Impl::BlendImage(this, windows_core::from_raw_borrowed(&image), core::mem::transmute_copy(&blendmode), core::mem::transmute_copy(&targetoffset), core::mem::transmute_copy(&imagerectangle), core::mem::transmute_copy(&interpolationmode)) } @@ -2406,28 +1797,16 @@ pub trait ID2D1DeviceContext7_Impl: Sized + ID2D1DeviceContext6_Impl { impl windows_core::RuntimeName for ID2D1DeviceContext7 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1DeviceContext7_Vtbl { - pub const fn new() -> ID2D1DeviceContext7_Vtbl - where - Identity: ID2D1DeviceContext7_Impl, - { - unsafe extern "system" fn GetPaintFeatureLevel(this: *mut core::ffi::c_void) -> super::DirectWrite::DWRITE_PAINT_FEATURE_LEVEL - where - Identity: ID2D1DeviceContext7_Impl, - { + pub const fn new() -> ID2D1DeviceContext7_Vtbl { + unsafe extern "system" fn GetPaintFeatureLevel(this: *mut core::ffi::c_void) -> super::DirectWrite::DWRITE_PAINT_FEATURE_LEVEL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext7_Impl::GetPaintFeatureLevel(this) } - unsafe extern "system" fn DrawPaintGlyphRun(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, defaultfillbrush: *mut core::ffi::c_void, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) - where - Identity: ID2D1DeviceContext7_Impl, - { + unsafe extern "system" fn DrawPaintGlyphRun(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, defaultfillbrush: *mut core::ffi::c_void, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext7_Impl::DrawPaintGlyphRun(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), windows_core::from_raw_borrowed(&defaultfillbrush), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&measuringmode)) } - unsafe extern "system" fn DrawGlyphRunWithColorSupport(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: *const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION, foregroundbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION) - where - Identity: ID2D1DeviceContext7_Impl, - { + unsafe extern "system" fn DrawGlyphRunWithColorSupport(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, glyphrundescription: *const super::DirectWrite::DWRITE_GLYPH_RUN_DESCRIPTION, foregroundbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext7_Impl::DrawGlyphRunWithColorSupport(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&glyphrundescription), windows_core::from_raw_borrowed(&foregroundbrush), windows_core::from_raw_borrowed(&svgglyphstyle), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&bitmapsnapoption)) } @@ -2451,42 +1830,24 @@ pub trait ID2D1DrawInfo_Impl: Sized + ID2D1RenderInfo_Impl { } impl windows_core::RuntimeName for ID2D1DrawInfo {} impl ID2D1DrawInfo_Vtbl { - pub const fn new() -> ID2D1DrawInfo_Vtbl - where - Identity: ID2D1DrawInfo_Impl, - { - unsafe extern "system" fn SetPixelShaderConstantBuffer(this: *mut core::ffi::c_void, buffer: *const u8, buffercount: u32) -> windows_core::HRESULT - where - Identity: ID2D1DrawInfo_Impl, - { + pub const fn new() -> ID2D1DrawInfo_Vtbl { + unsafe extern "system" fn SetPixelShaderConstantBuffer(this: *mut core::ffi::c_void, buffer: *const u8, buffercount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawInfo_Impl::SetPixelShaderConstantBuffer(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffercount)).into() } - unsafe extern "system" fn SetResourceTexture(this: *mut core::ffi::c_void, textureindex: u32, resourcetexture: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DrawInfo_Impl, - { + unsafe extern "system" fn SetResourceTexture(this: *mut core::ffi::c_void, textureindex: u32, resourcetexture: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawInfo_Impl::SetResourceTexture(this, core::mem::transmute_copy(&textureindex), windows_core::from_raw_borrowed(&resourcetexture)).into() } - unsafe extern "system" fn SetVertexShaderConstantBuffer(this: *mut core::ffi::c_void, buffer: *const u8, buffercount: u32) -> windows_core::HRESULT - where - Identity: ID2D1DrawInfo_Impl, - { + unsafe extern "system" fn SetVertexShaderConstantBuffer(this: *mut core::ffi::c_void, buffer: *const u8, buffercount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawInfo_Impl::SetVertexShaderConstantBuffer(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffercount)).into() } - unsafe extern "system" fn SetPixelShader(this: *mut core::ffi::c_void, shaderid: *const windows_core::GUID, pixeloptions: D2D1_PIXEL_OPTIONS) -> windows_core::HRESULT - where - Identity: ID2D1DrawInfo_Impl, - { + unsafe extern "system" fn SetPixelShader(this: *mut core::ffi::c_void, shaderid: *const windows_core::GUID, pixeloptions: D2D1_PIXEL_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawInfo_Impl::SetPixelShader(this, core::mem::transmute_copy(&shaderid), core::mem::transmute_copy(&pixeloptions)).into() } - unsafe extern "system" fn SetVertexProcessing(this: *mut core::ffi::c_void, vertexbuffer: *mut core::ffi::c_void, vertexoptions: D2D1_VERTEX_OPTIONS, blenddescription: *const D2D1_BLEND_DESCRIPTION, vertexrange: *const D2D1_VERTEX_RANGE, vertexshader: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ID2D1DrawInfo_Impl, - { + unsafe extern "system" fn SetVertexProcessing(this: *mut core::ffi::c_void, vertexbuffer: *mut core::ffi::c_void, vertexoptions: D2D1_VERTEX_OPTIONS, blenddescription: *const D2D1_BLEND_DESCRIPTION, vertexrange: *const D2D1_VERTEX_RANGE, vertexshader: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawInfo_Impl::SetVertexProcessing(this, windows_core::from_raw_borrowed(&vertexbuffer), core::mem::transmute_copy(&vertexoptions), core::mem::transmute_copy(&blenddescription), core::mem::transmute_copy(&vertexrange), core::mem::transmute_copy(&vertexshader)).into() } @@ -2508,14 +1869,8 @@ pub trait ID2D1DrawTransform_Impl: Sized + ID2D1Transform_Impl { } impl windows_core::RuntimeName for ID2D1DrawTransform {} impl ID2D1DrawTransform_Vtbl { - pub const fn new() -> ID2D1DrawTransform_Vtbl - where - Identity: ID2D1DrawTransform_Impl, - { - unsafe extern "system" fn SetDrawInfo(this: *mut core::ffi::c_void, drawinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1DrawTransform_Impl, - { + pub const fn new() -> ID2D1DrawTransform_Vtbl { + unsafe extern "system" fn SetDrawInfo(this: *mut core::ffi::c_void, drawinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawTransform_Impl::SetDrawInfo(this, windows_core::from_raw_borrowed(&drawinfo)).into() } @@ -2536,35 +1891,20 @@ pub trait ID2D1DrawingStateBlock_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1DrawingStateBlock {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1DrawingStateBlock_Vtbl { - pub const fn new() -> ID2D1DrawingStateBlock_Vtbl - where - Identity: ID2D1DrawingStateBlock_Impl, - { - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, statedescription: *mut D2D1_DRAWING_STATE_DESCRIPTION) - where - Identity: ID2D1DrawingStateBlock_Impl, - { + pub const fn new() -> ID2D1DrawingStateBlock_Vtbl { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, statedescription: *mut D2D1_DRAWING_STATE_DESCRIPTION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawingStateBlock_Impl::GetDescription(this, core::mem::transmute_copy(&statedescription)) } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, statedescription: *const D2D1_DRAWING_STATE_DESCRIPTION) - where - Identity: ID2D1DrawingStateBlock_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, statedescription: *const D2D1_DRAWING_STATE_DESCRIPTION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawingStateBlock_Impl::SetDescription(this, core::mem::transmute_copy(&statedescription)) } - unsafe extern "system" fn SetTextRenderingParams(this: *mut core::ffi::c_void, textrenderingparams: *mut core::ffi::c_void) - where - Identity: ID2D1DrawingStateBlock_Impl, - { + unsafe extern "system" fn SetTextRenderingParams(this: *mut core::ffi::c_void, textrenderingparams: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawingStateBlock_Impl::SetTextRenderingParams(this, windows_core::from_raw_borrowed(&textrenderingparams)) } - unsafe extern "system" fn GetTextRenderingParams(this: *mut core::ffi::c_void, textrenderingparams: *mut *mut core::ffi::c_void) - where - Identity: ID2D1DrawingStateBlock_Impl, - { + unsafe extern "system" fn GetTextRenderingParams(this: *mut core::ffi::c_void, textrenderingparams: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawingStateBlock_Impl::GetTextRenderingParams(this, core::mem::transmute_copy(&textrenderingparams)) } @@ -2589,21 +1929,12 @@ pub trait ID2D1DrawingStateBlock1_Impl: Sized + ID2D1DrawingStateBlock_Impl { impl windows_core::RuntimeName for ID2D1DrawingStateBlock1 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_DirectWrite"))] impl ID2D1DrawingStateBlock1_Vtbl { - pub const fn new() -> ID2D1DrawingStateBlock1_Vtbl - where - Identity: ID2D1DrawingStateBlock1_Impl, - { - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, statedescription: *mut D2D1_DRAWING_STATE_DESCRIPTION1) - where - Identity: ID2D1DrawingStateBlock1_Impl, - { + pub const fn new() -> ID2D1DrawingStateBlock1_Vtbl { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, statedescription: *mut D2D1_DRAWING_STATE_DESCRIPTION1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawingStateBlock1_Impl::GetDescription(this, core::mem::transmute_copy(&statedescription)) } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, statedescription: *const D2D1_DRAWING_STATE_DESCRIPTION1) - where - Identity: ID2D1DrawingStateBlock1_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, statedescription: *const D2D1_DRAWING_STATE_DESCRIPTION1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DrawingStateBlock1_Impl::SetDescription(this, core::mem::transmute_copy(&statedescription)) } @@ -2626,42 +1957,24 @@ pub trait ID2D1Effect_Impl: Sized + ID2D1Properties_Impl { } impl windows_core::RuntimeName for ID2D1Effect {} impl ID2D1Effect_Vtbl { - pub const fn new() -> ID2D1Effect_Vtbl - where - Identity: ID2D1Effect_Impl, - { - unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, index: u32, input: *mut core::ffi::c_void, invalidate: super::super::Foundation::BOOL) - where - Identity: ID2D1Effect_Impl, - { + pub const fn new() -> ID2D1Effect_Vtbl { + unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, index: u32, input: *mut core::ffi::c_void, invalidate: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Effect_Impl::SetInput(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&input), core::mem::transmute_copy(&invalidate)) } - unsafe extern "system" fn SetInputCount(this: *mut core::ffi::c_void, inputcount: u32) -> windows_core::HRESULT - where - Identity: ID2D1Effect_Impl, - { + unsafe extern "system" fn SetInputCount(this: *mut core::ffi::c_void, inputcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Effect_Impl::SetInputCount(this, core::mem::transmute_copy(&inputcount)).into() } - unsafe extern "system" fn GetInput(this: *mut core::ffi::c_void, index: u32, input: *mut *mut core::ffi::c_void) - where - Identity: ID2D1Effect_Impl, - { + unsafe extern "system" fn GetInput(this: *mut core::ffi::c_void, index: u32, input: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Effect_Impl::GetInput(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&input)) } - unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1Effect_Impl, - { + unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Effect_Impl::GetInputCount(this) } - unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, outputimage: *mut *mut core::ffi::c_void) - where - Identity: ID2D1Effect_Impl, - { + unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, outputimage: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Effect_Impl::GetOutput(this, core::mem::transmute_copy(&outputimage)) } @@ -2679,7 +1992,7 @@ impl ID2D1Effect_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] -pub trait ID2D1EffectContext_Impl: Sized { +pub trait ID2D1EffectContext_Impl: Sized + windows_core::IUnknownImpl { fn GetDpi(&self, dpix: *mut f32, dpiy: *mut f32); fn CreateEffect(&self, effectid: *const windows_core::GUID) -> windows_core::Result; fn GetMaximumSupportedFeatureLevel(&self, featurelevels: *const super::Direct3D::D3D_FEATURE_LEVEL, featurelevelscount: u32) -> windows_core::Result; @@ -2706,21 +2019,12 @@ pub trait ID2D1EffectContext_Impl: Sized { impl windows_core::RuntimeName for ID2D1EffectContext {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1EffectContext_Vtbl { - pub const fn new() -> ID2D1EffectContext_Vtbl - where - Identity: ID2D1EffectContext_Impl, - { - unsafe extern "system" fn GetDpi(this: *mut core::ffi::c_void, dpix: *mut f32, dpiy: *mut f32) - where - Identity: ID2D1EffectContext_Impl, - { + pub const fn new() -> ID2D1EffectContext_Vtbl { + unsafe extern "system" fn GetDpi(this: *mut core::ffi::c_void, dpix: *mut f32, dpiy: *mut f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectContext_Impl::GetDpi(this, core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy)) } - unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, effectid: *const windows_core::GUID, effect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, effectid: *const windows_core::GUID, effect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateEffect(this, core::mem::transmute_copy(&effectid)) { Ok(ok__) => { @@ -2730,10 +2034,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaximumSupportedFeatureLevel(this: *mut core::ffi::c_void, featurelevels: *const super::Direct3D::D3D_FEATURE_LEVEL, featurelevelscount: u32, maximumsupportedfeaturelevel: *mut super::Direct3D::D3D_FEATURE_LEVEL) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn GetMaximumSupportedFeatureLevel(this: *mut core::ffi::c_void, featurelevels: *const super::Direct3D::D3D_FEATURE_LEVEL, featurelevelscount: u32, maximumsupportedfeaturelevel: *mut super::Direct3D::D3D_FEATURE_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::GetMaximumSupportedFeatureLevel(this, core::mem::transmute_copy(&featurelevels), core::mem::transmute_copy(&featurelevelscount)) { Ok(ok__) => { @@ -2743,10 +2044,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTransformNodeFromEffect(this: *mut core::ffi::c_void, effect: *mut core::ffi::c_void, transformnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateTransformNodeFromEffect(this: *mut core::ffi::c_void, effect: *mut core::ffi::c_void, transformnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateTransformNodeFromEffect(this, windows_core::from_raw_borrowed(&effect)) { Ok(ok__) => { @@ -2756,10 +2054,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBlendTransform(this: *mut core::ffi::c_void, numinputs: u32, blenddescription: *const D2D1_BLEND_DESCRIPTION, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateBlendTransform(this: *mut core::ffi::c_void, numinputs: u32, blenddescription: *const D2D1_BLEND_DESCRIPTION, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateBlendTransform(this, core::mem::transmute_copy(&numinputs), core::mem::transmute_copy(&blenddescription)) { Ok(ok__) => { @@ -2769,10 +2064,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBorderTransform(this: *mut core::ffi::c_void, extendmodex: D2D1_EXTEND_MODE, extendmodey: D2D1_EXTEND_MODE, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateBorderTransform(this: *mut core::ffi::c_void, extendmodex: D2D1_EXTEND_MODE, extendmodey: D2D1_EXTEND_MODE, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateBorderTransform(this, core::mem::transmute_copy(&extendmodex), core::mem::transmute_copy(&extendmodey)) { Ok(ok__) => { @@ -2782,10 +2074,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateOffsetTransform(this: *mut core::ffi::c_void, offset: super::super::Foundation::POINT, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateOffsetTransform(this: *mut core::ffi::c_void, offset: super::super::Foundation::POINT, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateOffsetTransform(this, core::mem::transmute(&offset)) { Ok(ok__) => { @@ -2795,10 +2084,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBoundsAdjustmentTransform(this: *mut core::ffi::c_void, outputrectangle: *const super::super::Foundation::RECT, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateBoundsAdjustmentTransform(this: *mut core::ffi::c_void, outputrectangle: *const super::super::Foundation::RECT, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateBoundsAdjustmentTransform(this, core::mem::transmute_copy(&outputrectangle)) { Ok(ok__) => { @@ -2808,38 +2094,23 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadPixelShader(this: *mut core::ffi::c_void, shaderid: *const windows_core::GUID, shaderbuffer: *const u8, shaderbuffercount: u32) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn LoadPixelShader(this: *mut core::ffi::c_void, shaderid: *const windows_core::GUID, shaderbuffer: *const u8, shaderbuffercount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectContext_Impl::LoadPixelShader(this, core::mem::transmute_copy(&shaderid), core::mem::transmute_copy(&shaderbuffer), core::mem::transmute_copy(&shaderbuffercount)).into() } - unsafe extern "system" fn LoadVertexShader(this: *mut core::ffi::c_void, resourceid: *const windows_core::GUID, shaderbuffer: *const u8, shaderbuffercount: u32) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn LoadVertexShader(this: *mut core::ffi::c_void, resourceid: *const windows_core::GUID, shaderbuffer: *const u8, shaderbuffercount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectContext_Impl::LoadVertexShader(this, core::mem::transmute_copy(&resourceid), core::mem::transmute_copy(&shaderbuffer), core::mem::transmute_copy(&shaderbuffercount)).into() } - unsafe extern "system" fn LoadComputeShader(this: *mut core::ffi::c_void, resourceid: *const windows_core::GUID, shaderbuffer: *const u8, shaderbuffercount: u32) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn LoadComputeShader(this: *mut core::ffi::c_void, resourceid: *const windows_core::GUID, shaderbuffer: *const u8, shaderbuffercount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectContext_Impl::LoadComputeShader(this, core::mem::transmute_copy(&resourceid), core::mem::transmute_copy(&shaderbuffer), core::mem::transmute_copy(&shaderbuffercount)).into() } - unsafe extern "system" fn IsShaderLoaded(this: *mut core::ffi::c_void, shaderid: *const windows_core::GUID) -> super::super::Foundation::BOOL - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn IsShaderLoaded(this: *mut core::ffi::c_void, shaderid: *const windows_core::GUID) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectContext_Impl::IsShaderLoaded(this, core::mem::transmute_copy(&shaderid)) } - unsafe extern "system" fn CreateResourceTexture(this: *mut core::ffi::c_void, resourceid: *const windows_core::GUID, resourcetextureproperties: *const D2D1_RESOURCE_TEXTURE_PROPERTIES, data: *const u8, strides: *const u32, datasize: u32, resourcetexture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateResourceTexture(this: *mut core::ffi::c_void, resourceid: *const windows_core::GUID, resourcetextureproperties: *const D2D1_RESOURCE_TEXTURE_PROPERTIES, data: *const u8, strides: *const u32, datasize: u32, resourcetexture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateResourceTexture(this, core::mem::transmute_copy(&resourceid), core::mem::transmute_copy(&resourcetextureproperties), core::mem::transmute_copy(&data), core::mem::transmute_copy(&strides), core::mem::transmute_copy(&datasize)) { Ok(ok__) => { @@ -2849,10 +2120,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindResourceTexture(this: *mut core::ffi::c_void, resourceid: *const windows_core::GUID, resourcetexture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn FindResourceTexture(this: *mut core::ffi::c_void, resourceid: *const windows_core::GUID, resourcetexture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::FindResourceTexture(this, core::mem::transmute_copy(&resourceid)) { Ok(ok__) => { @@ -2862,10 +2130,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVertexBuffer(this: *mut core::ffi::c_void, vertexbufferproperties: *const D2D1_VERTEX_BUFFER_PROPERTIES, resourceid: *const windows_core::GUID, customvertexbufferproperties: *const D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES, buffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateVertexBuffer(this: *mut core::ffi::c_void, vertexbufferproperties: *const D2D1_VERTEX_BUFFER_PROPERTIES, resourceid: *const windows_core::GUID, customvertexbufferproperties: *const D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES, buffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateVertexBuffer(this, core::mem::transmute_copy(&vertexbufferproperties), core::mem::transmute_copy(&resourceid), core::mem::transmute_copy(&customvertexbufferproperties)) { Ok(ok__) => { @@ -2875,10 +2140,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindVertexBuffer(this: *mut core::ffi::c_void, resourceid: *const windows_core::GUID, buffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn FindVertexBuffer(this: *mut core::ffi::c_void, resourceid: *const windows_core::GUID, buffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::FindVertexBuffer(this, core::mem::transmute_copy(&resourceid)) { Ok(ok__) => { @@ -2888,10 +2150,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorContext(this: *mut core::ffi::c_void, space: D2D1_COLOR_SPACE, profile: *const u8, profilesize: u32, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateColorContext(this: *mut core::ffi::c_void, space: D2D1_COLOR_SPACE, profile: *const u8, profilesize: u32, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateColorContext(this, core::mem::transmute_copy(&space), core::mem::transmute_copy(&profile), core::mem::transmute_copy(&profilesize)) { Ok(ok__) => { @@ -2901,10 +2160,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorContextFromFilename(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateColorContextFromFilename(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateColorContextFromFilename(this, core::mem::transmute(&filename)) { Ok(ok__) => { @@ -2914,10 +2170,7 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorContextFromWicColorContext(this: *mut core::ffi::c_void, wiccolorcontext: *mut core::ffi::c_void, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CreateColorContextFromWicColorContext(this: *mut core::ffi::c_void, wiccolorcontext: *mut core::ffi::c_void, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext_Impl::CreateColorContextFromWicColorContext(this, windows_core::from_raw_borrowed(&wiccolorcontext)) { Ok(ok__) => { @@ -2927,17 +2180,11 @@ impl ID2D1EffectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: D2D1_FEATURE, featuresupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: D2D1_FEATURE, featuresupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectContext_Impl::CheckFeatureSupport(this, core::mem::transmute_copy(&feature), core::mem::transmute_copy(&featuresupportdata), core::mem::transmute_copy(&featuresupportdatasize)).into() } - unsafe extern "system" fn IsBufferPrecisionSupported(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL - where - Identity: ID2D1EffectContext_Impl, - { + unsafe extern "system" fn IsBufferPrecisionSupported(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectContext_Impl::IsBufferPrecisionSupported(this, core::mem::transmute_copy(&bufferprecision)) } @@ -2978,14 +2225,8 @@ pub trait ID2D1EffectContext1_Impl: Sized + ID2D1EffectContext_Impl { impl windows_core::RuntimeName for ID2D1EffectContext1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1EffectContext1_Vtbl { - pub const fn new() -> ID2D1EffectContext1_Vtbl - where - Identity: ID2D1EffectContext1_Impl, - { - unsafe extern "system" fn CreateLookupTable3D(this: *mut core::ffi::c_void, precision: D2D1_BUFFER_PRECISION, extents: *const u32, data: *const u8, datacount: u32, strides: *const u32, lookuptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext1_Impl, - { + pub const fn new() -> ID2D1EffectContext1_Vtbl { + unsafe extern "system" fn CreateLookupTable3D(this: *mut core::ffi::c_void, precision: D2D1_BUFFER_PRECISION, extents: *const u32, data: *const u8, datacount: u32, strides: *const u32, lookuptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext1_Impl::CreateLookupTable3D(this, core::mem::transmute_copy(&precision), core::mem::transmute_copy(&extents), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datacount), core::mem::transmute_copy(&strides)) { Ok(ok__) => { @@ -3010,14 +2251,8 @@ pub trait ID2D1EffectContext2_Impl: Sized + ID2D1EffectContext1_Impl { impl windows_core::RuntimeName for ID2D1EffectContext2 {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1EffectContext2_Vtbl { - pub const fn new() -> ID2D1EffectContext2_Vtbl - where - Identity: ID2D1EffectContext2_Impl, - { - unsafe extern "system" fn CreateColorContextFromDxgiColorSpace(this: *mut core::ffi::c_void, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext2_Impl, - { + pub const fn new() -> ID2D1EffectContext2_Vtbl { + unsafe extern "system" fn CreateColorContextFromDxgiColorSpace(this: *mut core::ffi::c_void, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext2_Impl::CreateColorContextFromDxgiColorSpace(this, core::mem::transmute_copy(&colorspace)) { Ok(ok__) => { @@ -3027,10 +2262,7 @@ impl ID2D1EffectContext2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorContextFromSimpleColorProfile(this: *mut core::ffi::c_void, simpleprofile: *const D2D1_SIMPLE_COLOR_PROFILE, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectContext2_Impl, - { + unsafe extern "system" fn CreateColorContextFromSimpleColorProfile(this: *mut core::ffi::c_void, simpleprofile: *const D2D1_SIMPLE_COLOR_PROFILE, colorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1EffectContext2_Impl::CreateColorContextFromSimpleColorProfile(this, core::mem::transmute_copy(&simpleprofile)) { Ok(ok__) => { @@ -3050,35 +2282,23 @@ impl ID2D1EffectContext2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID2D1EffectImpl_Impl: Sized { +pub trait ID2D1EffectImpl_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, effectcontext: Option<&ID2D1EffectContext>, transformgraph: Option<&ID2D1TransformGraph>) -> windows_core::Result<()>; fn PrepareForRender(&self, changetype: D2D1_CHANGE_TYPE) -> windows_core::Result<()>; fn SetGraph(&self, transformgraph: Option<&ID2D1TransformGraph>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID2D1EffectImpl {} impl ID2D1EffectImpl_Vtbl { - pub const fn new() -> ID2D1EffectImpl_Vtbl - where - Identity: ID2D1EffectImpl_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, effectcontext: *mut core::ffi::c_void, transformgraph: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectImpl_Impl, - { + pub const fn new() -> ID2D1EffectImpl_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, effectcontext: *mut core::ffi::c_void, transformgraph: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectImpl_Impl::Initialize(this, windows_core::from_raw_borrowed(&effectcontext), windows_core::from_raw_borrowed(&transformgraph)).into() } - unsafe extern "system" fn PrepareForRender(this: *mut core::ffi::c_void, changetype: D2D1_CHANGE_TYPE) -> windows_core::HRESULT - where - Identity: ID2D1EffectImpl_Impl, - { + unsafe extern "system" fn PrepareForRender(this: *mut core::ffi::c_void, changetype: D2D1_CHANGE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectImpl_Impl::PrepareForRender(this, core::mem::transmute_copy(&changetype)).into() } - unsafe extern "system" fn SetGraph(this: *mut core::ffi::c_void, transformgraph: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1EffectImpl_Impl, - { + unsafe extern "system" fn SetGraph(this: *mut core::ffi::c_void, transformgraph: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectImpl_Impl::SetGraph(this, windows_core::from_raw_borrowed(&transformgraph)).into() } @@ -3101,14 +2321,8 @@ pub trait ID2D1EllipseGeometry_Impl: Sized + ID2D1Geometry_Impl { impl windows_core::RuntimeName for ID2D1EllipseGeometry {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1EllipseGeometry_Vtbl { - pub const fn new() -> ID2D1EllipseGeometry_Vtbl - where - Identity: ID2D1EllipseGeometry_Impl, - { - unsafe extern "system" fn GetEllipse(this: *mut core::ffi::c_void, ellipse: *mut D2D1_ELLIPSE) - where - Identity: ID2D1EllipseGeometry_Impl, - { + pub const fn new() -> ID2D1EllipseGeometry_Vtbl { + unsafe extern "system" fn GetEllipse(this: *mut core::ffi::c_void, ellipse: *mut D2D1_ELLIPSE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EllipseGeometry_Impl::GetEllipse(this, core::mem::transmute_copy(&ellipse)) } @@ -3119,7 +2333,7 @@ impl ID2D1EllipseGeometry_Vtbl { } } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] -pub trait ID2D1Factory_Impl: Sized { +pub trait ID2D1Factory_Impl: Sized + windows_core::IUnknownImpl { fn ReloadSystemMetrics(&self) -> windows_core::Result<()>; fn GetDesktopDpi(&self, dpix: *mut f32, dpiy: *mut f32); fn CreateRectangleGeometry(&self, rectangle: *const Common::D2D_RECT_F) -> windows_core::Result; @@ -3139,28 +2353,16 @@ pub trait ID2D1Factory_Impl: Sized { impl windows_core::RuntimeName for ID2D1Factory {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1Factory_Vtbl { - pub const fn new() -> ID2D1Factory_Vtbl - where - Identity: ID2D1Factory_Impl, - { - unsafe extern "system" fn ReloadSystemMetrics(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + pub const fn new() -> ID2D1Factory_Vtbl { + unsafe extern "system" fn ReloadSystemMetrics(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Factory_Impl::ReloadSystemMetrics(this).into() } - unsafe extern "system" fn GetDesktopDpi(this: *mut core::ffi::c_void, dpix: *mut f32, dpiy: *mut f32) - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn GetDesktopDpi(this: *mut core::ffi::c_void, dpix: *mut f32, dpiy: *mut f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Factory_Impl::GetDesktopDpi(this, core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy)) } - unsafe extern "system" fn CreateRectangleGeometry(this: *mut core::ffi::c_void, rectangle: *const Common::D2D_RECT_F, rectanglegeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateRectangleGeometry(this: *mut core::ffi::c_void, rectangle: *const Common::D2D_RECT_F, rectanglegeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateRectangleGeometry(this, core::mem::transmute_copy(&rectangle)) { Ok(ok__) => { @@ -3170,10 +2372,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRoundedRectangleGeometry(this: *mut core::ffi::c_void, roundedrectangle: *const D2D1_ROUNDED_RECT, roundedrectanglegeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateRoundedRectangleGeometry(this: *mut core::ffi::c_void, roundedrectangle: *const D2D1_ROUNDED_RECT, roundedrectanglegeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateRoundedRectangleGeometry(this, core::mem::transmute_copy(&roundedrectangle)) { Ok(ok__) => { @@ -3183,10 +2382,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEllipseGeometry(this: *mut core::ffi::c_void, ellipse: *const D2D1_ELLIPSE, ellipsegeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateEllipseGeometry(this: *mut core::ffi::c_void, ellipse: *const D2D1_ELLIPSE, ellipsegeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateEllipseGeometry(this, core::mem::transmute_copy(&ellipse)) { Ok(ok__) => { @@ -3196,10 +2392,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGeometryGroup(this: *mut core::ffi::c_void, fillmode: Common::D2D1_FILL_MODE, geometries: *const *mut core::ffi::c_void, geometriescount: u32, geometrygroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateGeometryGroup(this: *mut core::ffi::c_void, fillmode: Common::D2D1_FILL_MODE, geometries: *const *mut core::ffi::c_void, geometriescount: u32, geometrygroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateGeometryGroup(this, core::mem::transmute_copy(&fillmode), core::mem::transmute_copy(&geometries), core::mem::transmute_copy(&geometriescount)) { Ok(ok__) => { @@ -3209,10 +2402,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTransformedGeometry(this: *mut core::ffi::c_void, sourcegeometry: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2, transformedgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateTransformedGeometry(this: *mut core::ffi::c_void, sourcegeometry: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2, transformedgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateTransformedGeometry(this, windows_core::from_raw_borrowed(&sourcegeometry), core::mem::transmute_copy(&transform)) { Ok(ok__) => { @@ -3222,10 +2412,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePathGeometry(this: *mut core::ffi::c_void, pathgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreatePathGeometry(this: *mut core::ffi::c_void, pathgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreatePathGeometry(this) { Ok(ok__) => { @@ -3235,10 +2422,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStrokeStyle(this: *mut core::ffi::c_void, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES, dashes: *const f32, dashescount: u32, strokestyle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateStrokeStyle(this: *mut core::ffi::c_void, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES, dashes: *const f32, dashescount: u32, strokestyle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateStrokeStyle(this, core::mem::transmute_copy(&strokestyleproperties), core::mem::transmute_copy(&dashes), core::mem::transmute_copy(&dashescount)) { Ok(ok__) => { @@ -3248,10 +2432,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDrawingStateBlock(this: *mut core::ffi::c_void, drawingstatedescription: *const D2D1_DRAWING_STATE_DESCRIPTION, textrenderingparams: *mut core::ffi::c_void, drawingstateblock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateDrawingStateBlock(this: *mut core::ffi::c_void, drawingstatedescription: *const D2D1_DRAWING_STATE_DESCRIPTION, textrenderingparams: *mut core::ffi::c_void, drawingstateblock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateDrawingStateBlock(this, core::mem::transmute_copy(&drawingstatedescription), windows_core::from_raw_borrowed(&textrenderingparams)) { Ok(ok__) => { @@ -3261,10 +2442,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateWicBitmapRenderTarget(this: *mut core::ffi::c_void, target: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, rendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateWicBitmapRenderTarget(this: *mut core::ffi::c_void, target: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, rendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateWicBitmapRenderTarget(this, windows_core::from_raw_borrowed(&target), core::mem::transmute_copy(&rendertargetproperties)) { Ok(ok__) => { @@ -3274,10 +2452,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateHwndRenderTarget(this: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, hwndrendertargetproperties: *const D2D1_HWND_RENDER_TARGET_PROPERTIES, hwndrendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateHwndRenderTarget(this: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, hwndrendertargetproperties: *const D2D1_HWND_RENDER_TARGET_PROPERTIES, hwndrendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateHwndRenderTarget(this, core::mem::transmute_copy(&rendertargetproperties), core::mem::transmute_copy(&hwndrendertargetproperties)) { Ok(ok__) => { @@ -3287,10 +2462,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDxgiSurfaceRenderTarget(this: *mut core::ffi::c_void, dxgisurface: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, rendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateDxgiSurfaceRenderTarget(this: *mut core::ffi::c_void, dxgisurface: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, rendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateDxgiSurfaceRenderTarget(this, windows_core::from_raw_borrowed(&dxgisurface), core::mem::transmute_copy(&rendertargetproperties)) { Ok(ok__) => { @@ -3300,10 +2472,7 @@ impl ID2D1Factory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDCRenderTarget(this: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, dcrendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory_Impl, - { + unsafe extern "system" fn CreateDCRenderTarget(this: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, dcrendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory_Impl::CreateDCRenderTarget(this, core::mem::transmute_copy(&rendertargetproperties)) { Ok(ok__) => { @@ -3352,14 +2521,8 @@ pub trait ID2D1Factory1_Impl: Sized + ID2D1Factory_Impl { impl windows_core::RuntimeName for ID2D1Factory1 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory1_Vtbl { - pub const fn new() -> ID2D1Factory1_Vtbl - where - Identity: ID2D1Factory1_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory1_Impl, - { + pub const fn new() -> ID2D1Factory1_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory1_Impl::CreateDevice(this, windows_core::from_raw_borrowed(&dxgidevice)) { Ok(ok__) => { @@ -3369,10 +2532,7 @@ impl ID2D1Factory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStrokeStyle(this: *mut core::ffi::c_void, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: *const f32, dashescount: u32, strokestyle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory1_Impl, - { + unsafe extern "system" fn CreateStrokeStyle(this: *mut core::ffi::c_void, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: *const f32, dashescount: u32, strokestyle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory1_Impl::CreateStrokeStyle(this, core::mem::transmute_copy(&strokestyleproperties), core::mem::transmute_copy(&dashes), core::mem::transmute_copy(&dashescount)) { Ok(ok__) => { @@ -3382,10 +2542,7 @@ impl ID2D1Factory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePathGeometry(this: *mut core::ffi::c_void, pathgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory1_Impl, - { + unsafe extern "system" fn CreatePathGeometry(this: *mut core::ffi::c_void, pathgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory1_Impl::CreatePathGeometry(this) { Ok(ok__) => { @@ -3395,10 +2552,7 @@ impl ID2D1Factory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDrawingStateBlock(this: *mut core::ffi::c_void, drawingstatedescription: *const D2D1_DRAWING_STATE_DESCRIPTION1, textrenderingparams: *mut core::ffi::c_void, drawingstateblock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory1_Impl, - { + unsafe extern "system" fn CreateDrawingStateBlock(this: *mut core::ffi::c_void, drawingstatedescription: *const D2D1_DRAWING_STATE_DESCRIPTION1, textrenderingparams: *mut core::ffi::c_void, drawingstateblock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory1_Impl::CreateDrawingStateBlock(this, core::mem::transmute_copy(&drawingstatedescription), windows_core::from_raw_borrowed(&textrenderingparams)) { Ok(ok__) => { @@ -3408,10 +2562,7 @@ impl ID2D1Factory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGdiMetafile(this: *mut core::ffi::c_void, metafilestream: *mut core::ffi::c_void, metafile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory1_Impl, - { + unsafe extern "system" fn CreateGdiMetafile(this: *mut core::ffi::c_void, metafilestream: *mut core::ffi::c_void, metafile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory1_Impl::CreateGdiMetafile(this, windows_core::from_raw_borrowed(&metafilestream)) { Ok(ok__) => { @@ -3421,38 +2572,23 @@ impl ID2D1Factory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterEffectFromStream(this: *mut core::ffi::c_void, classid: *const windows_core::GUID, propertyxml: *mut core::ffi::c_void, bindings: *const D2D1_PROPERTY_BINDING, bindingscount: u32, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::HRESULT - where - Identity: ID2D1Factory1_Impl, - { + unsafe extern "system" fn RegisterEffectFromStream(this: *mut core::ffi::c_void, classid: *const windows_core::GUID, propertyxml: *mut core::ffi::c_void, bindings: *const D2D1_PROPERTY_BINDING, bindingscount: u32, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Factory1_Impl::RegisterEffectFromStream(this, core::mem::transmute_copy(&classid), windows_core::from_raw_borrowed(&propertyxml), core::mem::transmute_copy(&bindings), core::mem::transmute_copy(&bindingscount), core::mem::transmute_copy(&effectfactory)).into() } - unsafe extern "system" fn RegisterEffectFromString(this: *mut core::ffi::c_void, classid: *const windows_core::GUID, propertyxml: windows_core::PCWSTR, bindings: *const D2D1_PROPERTY_BINDING, bindingscount: u32, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::HRESULT - where - Identity: ID2D1Factory1_Impl, - { + unsafe extern "system" fn RegisterEffectFromString(this: *mut core::ffi::c_void, classid: *const windows_core::GUID, propertyxml: windows_core::PCWSTR, bindings: *const D2D1_PROPERTY_BINDING, bindingscount: u32, effectfactory: PD2D1_EFFECT_FACTORY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Factory1_Impl::RegisterEffectFromString(this, core::mem::transmute_copy(&classid), core::mem::transmute(&propertyxml), core::mem::transmute_copy(&bindings), core::mem::transmute_copy(&bindingscount), core::mem::transmute_copy(&effectfactory)).into() } - unsafe extern "system" fn UnregisterEffect(this: *mut core::ffi::c_void, classid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ID2D1Factory1_Impl, - { + unsafe extern "system" fn UnregisterEffect(this: *mut core::ffi::c_void, classid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Factory1_Impl::UnregisterEffect(this, core::mem::transmute_copy(&classid)).into() } - unsafe extern "system" fn GetRegisteredEffects(this: *mut core::ffi::c_void, effects: *mut windows_core::GUID, effectscount: u32, effectsreturned: *mut u32, effectsregistered: *mut u32) -> windows_core::HRESULT - where - Identity: ID2D1Factory1_Impl, - { + unsafe extern "system" fn GetRegisteredEffects(this: *mut core::ffi::c_void, effects: *mut windows_core::GUID, effectscount: u32, effectsreturned: *mut u32, effectsregistered: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Factory1_Impl::GetRegisteredEffects(this, core::mem::transmute_copy(&effects), core::mem::transmute_copy(&effectscount), core::mem::transmute_copy(&effectsreturned), core::mem::transmute_copy(&effectsregistered)).into() } - unsafe extern "system" fn GetEffectProperties(this: *mut core::ffi::c_void, effectid: *const windows_core::GUID, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory1_Impl, - { + unsafe extern "system" fn GetEffectProperties(this: *mut core::ffi::c_void, effectid: *const windows_core::GUID, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory1_Impl::GetEffectProperties(this, core::mem::transmute_copy(&effectid)) { Ok(ok__) => { @@ -3488,14 +2624,8 @@ pub trait ID2D1Factory2_Impl: Sized + ID2D1Factory1_Impl { impl windows_core::RuntimeName for ID2D1Factory2 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory2_Vtbl { - pub const fn new() -> ID2D1Factory2_Vtbl - where - Identity: ID2D1Factory2_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory2_Impl, - { + pub const fn new() -> ID2D1Factory2_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory2_Impl::CreateDevice(this, windows_core::from_raw_borrowed(&dxgidevice)) { Ok(ok__) => { @@ -3519,14 +2649,8 @@ pub trait ID2D1Factory3_Impl: Sized + ID2D1Factory2_Impl { impl windows_core::RuntimeName for ID2D1Factory3 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory3_Vtbl { - pub const fn new() -> ID2D1Factory3_Vtbl - where - Identity: ID2D1Factory3_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory3_Impl, - { + pub const fn new() -> ID2D1Factory3_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory3_Impl::CreateDevice(this, windows_core::from_raw_borrowed(&dxgidevice)) { Ok(ok__) => { @@ -3550,14 +2674,8 @@ pub trait ID2D1Factory4_Impl: Sized + ID2D1Factory3_Impl { impl windows_core::RuntimeName for ID2D1Factory4 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory4_Vtbl { - pub const fn new() -> ID2D1Factory4_Vtbl - where - Identity: ID2D1Factory4_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice3: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory4_Impl, - { + pub const fn new() -> ID2D1Factory4_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice3: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory4_Impl::CreateDevice(this, windows_core::from_raw_borrowed(&dxgidevice)) { Ok(ok__) => { @@ -3581,14 +2699,8 @@ pub trait ID2D1Factory5_Impl: Sized + ID2D1Factory4_Impl { impl windows_core::RuntimeName for ID2D1Factory5 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory5_Vtbl { - pub const fn new() -> ID2D1Factory5_Vtbl - where - Identity: ID2D1Factory5_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice4: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory5_Impl, - { + pub const fn new() -> ID2D1Factory5_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice4: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory5_Impl::CreateDevice(this, windows_core::from_raw_borrowed(&dxgidevice)) { Ok(ok__) => { @@ -3612,14 +2724,8 @@ pub trait ID2D1Factory6_Impl: Sized + ID2D1Factory5_Impl { impl windows_core::RuntimeName for ID2D1Factory6 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory6_Vtbl { - pub const fn new() -> ID2D1Factory6_Vtbl - where - Identity: ID2D1Factory6_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice5: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory6_Impl, - { + pub const fn new() -> ID2D1Factory6_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice5: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory6_Impl::CreateDevice(this, windows_core::from_raw_borrowed(&dxgidevice)) { Ok(ok__) => { @@ -3643,14 +2749,8 @@ pub trait ID2D1Factory7_Impl: Sized + ID2D1Factory6_Impl { impl windows_core::RuntimeName for ID2D1Factory7 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory7_Vtbl { - pub const fn new() -> ID2D1Factory7_Vtbl - where - Identity: ID2D1Factory7_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice6: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory7_Impl, - { + pub const fn new() -> ID2D1Factory7_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice6: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory7_Impl::CreateDevice(this, windows_core::from_raw_borrowed(&dxgidevice)) { Ok(ok__) => { @@ -3674,14 +2774,8 @@ pub trait ID2D1Factory8_Impl: Sized + ID2D1Factory7_Impl { impl windows_core::RuntimeName for ID2D1Factory8 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging", feature = "Win32_System_Com"))] impl ID2D1Factory8_Vtbl { - pub const fn new() -> ID2D1Factory8_Vtbl - where - Identity: ID2D1Factory8_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice6: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Factory8_Impl, - { + pub const fn new() -> ID2D1Factory8_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, dxgidevice: *mut core::ffi::c_void, d2ddevice6: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Factory8_Impl::CreateDevice(this, windows_core::from_raw_borrowed(&dxgidevice)) { Ok(ok__) => { @@ -3698,7 +2792,7 @@ impl ID2D1Factory8_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait ID2D1GdiInteropRenderTarget_Impl: Sized { +pub trait ID2D1GdiInteropRenderTarget_Impl: Sized + windows_core::IUnknownImpl { fn GetDC(&self, mode: D2D1_DC_INITIALIZE_MODE) -> windows_core::Result; fn ReleaseDC(&self, update: *const super::super::Foundation::RECT) -> windows_core::Result<()>; } @@ -3706,14 +2800,8 @@ pub trait ID2D1GdiInteropRenderTarget_Impl: Sized { impl windows_core::RuntimeName for ID2D1GdiInteropRenderTarget {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ID2D1GdiInteropRenderTarget_Vtbl { - pub const fn new() -> ID2D1GdiInteropRenderTarget_Vtbl - where - Identity: ID2D1GdiInteropRenderTarget_Impl, - { - unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, mode: D2D1_DC_INITIALIZE_MODE, hdc: *mut super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: ID2D1GdiInteropRenderTarget_Impl, - { + pub const fn new() -> ID2D1GdiInteropRenderTarget_Vtbl { + unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, mode: D2D1_DC_INITIALIZE_MODE, hdc: *mut super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1GdiInteropRenderTarget_Impl::GetDC(this, core::mem::transmute_copy(&mode)) { Ok(ok__) => { @@ -3723,10 +2811,7 @@ impl ID2D1GdiInteropRenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, update: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ID2D1GdiInteropRenderTarget_Impl, - { + unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, update: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GdiInteropRenderTarget_Impl::ReleaseDC(this, core::mem::transmute_copy(&update)).into() } @@ -3745,21 +2830,12 @@ pub trait ID2D1GdiMetafile_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1GdiMetafile {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1GdiMetafile_Vtbl { - pub const fn new() -> ID2D1GdiMetafile_Vtbl - where - Identity: ID2D1GdiMetafile_Impl, - { - unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, sink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1GdiMetafile_Impl, - { + pub const fn new() -> ID2D1GdiMetafile_Vtbl { + unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, sink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GdiMetafile_Impl::Stream(this, windows_core::from_raw_borrowed(&sink)).into() } - unsafe extern "system" fn GetBounds(this: *mut core::ffi::c_void, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1GdiMetafile_Impl, - { + unsafe extern "system" fn GetBounds(this: *mut core::ffi::c_void, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1GdiMetafile_Impl::GetBounds(this) { Ok(ok__) => { @@ -3784,21 +2860,12 @@ pub trait ID2D1GdiMetafile1_Impl: Sized + ID2D1GdiMetafile_Impl { impl windows_core::RuntimeName for ID2D1GdiMetafile1 {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1GdiMetafile1_Vtbl { - pub const fn new() -> ID2D1GdiMetafile1_Vtbl - where - Identity: ID2D1GdiMetafile1_Impl, - { - unsafe extern "system" fn GetDpi(this: *mut core::ffi::c_void, dpix: *mut f32, dpiy: *mut f32) -> windows_core::HRESULT - where - Identity: ID2D1GdiMetafile1_Impl, - { + pub const fn new() -> ID2D1GdiMetafile1_Vtbl { + unsafe extern "system" fn GetDpi(this: *mut core::ffi::c_void, dpix: *mut f32, dpiy: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GdiMetafile1_Impl::GetDpi(this, core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy)).into() } - unsafe extern "system" fn GetSourceBounds(this: *mut core::ffi::c_void, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1GdiMetafile1_Impl, - { + unsafe extern "system" fn GetSourceBounds(this: *mut core::ffi::c_void, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1GdiMetafile1_Impl::GetSourceBounds(this) { Ok(ok__) => { @@ -3818,19 +2885,13 @@ impl ID2D1GdiMetafile1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID2D1GdiMetafileSink_Impl: Sized { +pub trait ID2D1GdiMetafileSink_Impl: Sized + windows_core::IUnknownImpl { fn ProcessRecord(&self, recordtype: u32, recorddata: *const core::ffi::c_void, recorddatasize: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID2D1GdiMetafileSink {} impl ID2D1GdiMetafileSink_Vtbl { - pub const fn new() -> ID2D1GdiMetafileSink_Vtbl - where - Identity: ID2D1GdiMetafileSink_Impl, - { - unsafe extern "system" fn ProcessRecord(this: *mut core::ffi::c_void, recordtype: u32, recorddata: *const core::ffi::c_void, recorddatasize: u32) -> windows_core::HRESULT - where - Identity: ID2D1GdiMetafileSink_Impl, - { + pub const fn new() -> ID2D1GdiMetafileSink_Vtbl { + unsafe extern "system" fn ProcessRecord(this: *mut core::ffi::c_void, recordtype: u32, recorddata: *const core::ffi::c_void, recorddatasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GdiMetafileSink_Impl::ProcessRecord(this, core::mem::transmute_copy(&recordtype), core::mem::transmute_copy(&recorddata), core::mem::transmute_copy(&recorddatasize)).into() } @@ -3845,14 +2906,8 @@ pub trait ID2D1GdiMetafileSink1_Impl: Sized + ID2D1GdiMetafileSink_Impl { } impl windows_core::RuntimeName for ID2D1GdiMetafileSink1 {} impl ID2D1GdiMetafileSink1_Vtbl { - pub const fn new() -> ID2D1GdiMetafileSink1_Vtbl - where - Identity: ID2D1GdiMetafileSink1_Impl, - { - unsafe extern "system" fn ProcessRecord(this: *mut core::ffi::c_void, recordtype: u32, recorddata: *const core::ffi::c_void, recorddatasize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: ID2D1GdiMetafileSink1_Impl, - { + pub const fn new() -> ID2D1GdiMetafileSink1_Vtbl { + unsafe extern "system" fn ProcessRecord(this: *mut core::ffi::c_void, recordtype: u32, recorddata: *const core::ffi::c_void, recorddatasize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GdiMetafileSink1_Impl::ProcessRecord(this, core::mem::transmute_copy(&recordtype), core::mem::transmute_copy(&recorddata), core::mem::transmute_copy(&recorddatasize), core::mem::transmute_copy(&flags)).into() } @@ -3882,14 +2937,8 @@ pub trait ID2D1Geometry_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1Geometry {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1Geometry_Vtbl { - pub const fn new() -> ID2D1Geometry_Vtbl - where - Identity: ID2D1Geometry_Impl, - { - unsafe extern "system" fn GetBounds(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + pub const fn new() -> ID2D1Geometry_Vtbl { + unsafe extern "system" fn GetBounds(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::GetBounds(this, core::mem::transmute_copy(&worldtransform)) { Ok(ok__) => { @@ -3899,10 +2948,7 @@ impl ID2D1Geometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWidenedBounds(this: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn GetWidenedBounds(this: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::GetWidenedBounds(this, core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { Ok(ok__) => { @@ -3912,10 +2958,7 @@ impl ID2D1Geometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StrokeContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn StrokeContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::StrokeContainsPoint(this, core::mem::transmute(&point), core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { Ok(ok__) => { @@ -3925,10 +2968,7 @@ impl ID2D1Geometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FillContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn FillContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::FillContainsPoint(this, core::mem::transmute(&point), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { Ok(ok__) => { @@ -3938,10 +2978,7 @@ impl ID2D1Geometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareWithGeometry(this: *mut core::ffi::c_void, inputgeometry: *mut core::ffi::c_void, inputgeometrytransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, relation: *mut D2D1_GEOMETRY_RELATION) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn CompareWithGeometry(this: *mut core::ffi::c_void, inputgeometry: *mut core::ffi::c_void, inputgeometrytransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, relation: *mut D2D1_GEOMETRY_RELATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::CompareWithGeometry(this, windows_core::from_raw_borrowed(&inputgeometry), core::mem::transmute_copy(&inputgeometrytransform), core::mem::transmute_copy(&flatteningtolerance)) { Ok(ok__) => { @@ -3951,38 +2988,23 @@ impl ID2D1Geometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Simplify(this: *mut core::ffi::c_void, simplificationoption: D2D1_GEOMETRY_SIMPLIFICATION_OPTION, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn Simplify(this: *mut core::ffi::c_void, simplificationoption: D2D1_GEOMETRY_SIMPLIFICATION_OPTION, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::Simplify(this, core::mem::transmute_copy(&simplificationoption), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), windows_core::from_raw_borrowed(&geometrysink)).into() } - unsafe extern "system" fn Tessellate(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, tessellationsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn Tessellate(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, tessellationsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::Tessellate(this, core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), windows_core::from_raw_borrowed(&tessellationsink)).into() } - unsafe extern "system" fn CombineWithGeometry(this: *mut core::ffi::c_void, inputgeometry: *mut core::ffi::c_void, combinemode: D2D1_COMBINE_MODE, inputgeometrytransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn CombineWithGeometry(this: *mut core::ffi::c_void, inputgeometry: *mut core::ffi::c_void, combinemode: D2D1_COMBINE_MODE, inputgeometrytransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::CombineWithGeometry(this, windows_core::from_raw_borrowed(&inputgeometry), core::mem::transmute_copy(&combinemode), core::mem::transmute_copy(&inputgeometrytransform), core::mem::transmute_copy(&flatteningtolerance), windows_core::from_raw_borrowed(&geometrysink)).into() } - unsafe extern "system" fn Outline(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn Outline(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::Outline(this, core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), windows_core::from_raw_borrowed(&geometrysink)).into() } - unsafe extern "system" fn ComputeArea(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, area: *mut f32) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn ComputeArea(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, area: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::ComputeArea(this, core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { Ok(ok__) => { @@ -3992,10 +3014,7 @@ impl ID2D1Geometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputeLength(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, length: *mut f32) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn ComputeLength(this: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, length: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::ComputeLength(this, core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { Ok(ok__) => { @@ -4005,17 +3024,11 @@ impl ID2D1Geometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputePointAtLength(this: *mut core::ffi::c_void, length: f32, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, point: *mut Common::D2D_POINT_2F, unittangentvector: *mut Common::D2D_POINT_2F) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn ComputePointAtLength(this: *mut core::ffi::c_void, length: f32, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, point: *mut Common::D2D_POINT_2F, unittangentvector: *mut Common::D2D_POINT_2F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::ComputePointAtLength(this, core::mem::transmute_copy(&length), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&point), core::mem::transmute_copy(&unittangentvector)).into() } - unsafe extern "system" fn Widen(this: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Geometry_Impl, - { + unsafe extern "system" fn Widen(this: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Geometry_Impl::Widen(this, core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), windows_core::from_raw_borrowed(&geometrysink)).into() } @@ -4050,28 +3063,16 @@ pub trait ID2D1GeometryGroup_Impl: Sized + ID2D1Geometry_Impl { impl windows_core::RuntimeName for ID2D1GeometryGroup {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1GeometryGroup_Vtbl { - pub const fn new() -> ID2D1GeometryGroup_Vtbl - where - Identity: ID2D1GeometryGroup_Impl, - { - unsafe extern "system" fn GetFillMode(this: *mut core::ffi::c_void) -> Common::D2D1_FILL_MODE - where - Identity: ID2D1GeometryGroup_Impl, - { + pub const fn new() -> ID2D1GeometryGroup_Vtbl { + unsafe extern "system" fn GetFillMode(this: *mut core::ffi::c_void) -> Common::D2D1_FILL_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GeometryGroup_Impl::GetFillMode(this) } - unsafe extern "system" fn GetSourceGeometryCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1GeometryGroup_Impl, - { + unsafe extern "system" fn GetSourceGeometryCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GeometryGroup_Impl::GetSourceGeometryCount(this) } - unsafe extern "system" fn GetSourceGeometries(this: *mut core::ffi::c_void, geometries: *mut *mut core::ffi::c_void, geometriescount: u32) - where - Identity: ID2D1GeometryGroup_Impl, - { + unsafe extern "system" fn GetSourceGeometries(this: *mut core::ffi::c_void, geometries: *mut *mut core::ffi::c_void, geometriescount: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GeometryGroup_Impl::GetSourceGeometries(this, core::mem::transmute_copy(&geometries), core::mem::transmute_copy(&geometriescount)) } @@ -4089,10 +3090,7 @@ impl ID2D1GeometryGroup_Vtbl { pub trait ID2D1GeometryRealization_Impl: Sized + ID2D1Resource_Impl {} impl windows_core::RuntimeName for ID2D1GeometryRealization {} impl ID2D1GeometryRealization_Vtbl { - pub const fn new() -> ID2D1GeometryRealization_Vtbl - where - Identity: ID2D1GeometryRealization_Impl, - { + pub const fn new() -> ID2D1GeometryRealization_Vtbl { Self { base__: ID2D1Resource_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -4111,42 +3109,24 @@ pub trait ID2D1GeometrySink_Impl: Sized + Common::ID2D1SimplifiedGeometrySink_Im impl windows_core::RuntimeName for ID2D1GeometrySink {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1GeometrySink_Vtbl { - pub const fn new() -> ID2D1GeometrySink_Vtbl - where - Identity: ID2D1GeometrySink_Impl, - { - unsafe extern "system" fn AddLine(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F) - where - Identity: ID2D1GeometrySink_Impl, - { + pub const fn new() -> ID2D1GeometrySink_Vtbl { + unsafe extern "system" fn AddLine(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GeometrySink_Impl::AddLine(this, core::mem::transmute(&point)) } - unsafe extern "system" fn AddBezier(this: *mut core::ffi::c_void, bezier: *const Common::D2D1_BEZIER_SEGMENT) - where - Identity: ID2D1GeometrySink_Impl, - { + unsafe extern "system" fn AddBezier(this: *mut core::ffi::c_void, bezier: *const Common::D2D1_BEZIER_SEGMENT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GeometrySink_Impl::AddBezier(this, core::mem::transmute_copy(&bezier)) } - unsafe extern "system" fn AddQuadraticBezier(this: *mut core::ffi::c_void, bezier: *const D2D1_QUADRATIC_BEZIER_SEGMENT) - where - Identity: ID2D1GeometrySink_Impl, - { + unsafe extern "system" fn AddQuadraticBezier(this: *mut core::ffi::c_void, bezier: *const D2D1_QUADRATIC_BEZIER_SEGMENT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GeometrySink_Impl::AddQuadraticBezier(this, core::mem::transmute_copy(&bezier)) } - unsafe extern "system" fn AddQuadraticBeziers(this: *mut core::ffi::c_void, beziers: *const D2D1_QUADRATIC_BEZIER_SEGMENT, bezierscount: u32) - where - Identity: ID2D1GeometrySink_Impl, - { + unsafe extern "system" fn AddQuadraticBeziers(this: *mut core::ffi::c_void, beziers: *const D2D1_QUADRATIC_BEZIER_SEGMENT, bezierscount: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GeometrySink_Impl::AddQuadraticBeziers(this, core::mem::transmute_copy(&beziers), core::mem::transmute_copy(&bezierscount)) } - unsafe extern "system" fn AddArc(this: *mut core::ffi::c_void, arc: *const D2D1_ARC_SEGMENT) - where - Identity: ID2D1GeometrySink_Impl, - { + unsafe extern "system" fn AddArc(this: *mut core::ffi::c_void, arc: *const D2D1_ARC_SEGMENT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GeometrySink_Impl::AddArc(this, core::mem::transmute_copy(&arc)) } @@ -4172,21 +3152,12 @@ pub trait ID2D1GradientMesh_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1GradientMesh {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1GradientMesh_Vtbl { - pub const fn new() -> ID2D1GradientMesh_Vtbl - where - Identity: ID2D1GradientMesh_Impl, - { - unsafe extern "system" fn GetPatchCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1GradientMesh_Impl, - { + pub const fn new() -> ID2D1GradientMesh_Vtbl { + unsafe extern "system" fn GetPatchCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientMesh_Impl::GetPatchCount(this) } - unsafe extern "system" fn GetPatches(this: *mut core::ffi::c_void, startindex: u32, patches: *mut D2D1_GRADIENT_MESH_PATCH, patchescount: u32) -> windows_core::HRESULT - where - Identity: ID2D1GradientMesh_Impl, - { + unsafe extern "system" fn GetPatches(this: *mut core::ffi::c_void, startindex: u32, patches: *mut D2D1_GRADIENT_MESH_PATCH, patchescount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientMesh_Impl::GetPatches(this, core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&patches), core::mem::transmute_copy(&patchescount)).into() } @@ -4211,35 +3182,20 @@ pub trait ID2D1GradientStopCollection_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1GradientStopCollection {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1GradientStopCollection_Vtbl { - pub const fn new() -> ID2D1GradientStopCollection_Vtbl - where - Identity: ID2D1GradientStopCollection_Impl, - { - unsafe extern "system" fn GetGradientStopCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1GradientStopCollection_Impl, - { + pub const fn new() -> ID2D1GradientStopCollection_Vtbl { + unsafe extern "system" fn GetGradientStopCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientStopCollection_Impl::GetGradientStopCount(this) } - unsafe extern "system" fn GetGradientStops(this: *mut core::ffi::c_void, gradientstops: *mut Common::D2D1_GRADIENT_STOP, gradientstopscount: u32) - where - Identity: ID2D1GradientStopCollection_Impl, - { + unsafe extern "system" fn GetGradientStops(this: *mut core::ffi::c_void, gradientstops: *mut Common::D2D1_GRADIENT_STOP, gradientstopscount: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientStopCollection_Impl::GetGradientStops(this, core::mem::transmute_copy(&gradientstops), core::mem::transmute_copy(&gradientstopscount)) } - unsafe extern "system" fn GetColorInterpolationGamma(this: *mut core::ffi::c_void) -> D2D1_GAMMA - where - Identity: ID2D1GradientStopCollection_Impl, - { + unsafe extern "system" fn GetColorInterpolationGamma(this: *mut core::ffi::c_void) -> D2D1_GAMMA { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientStopCollection_Impl::GetColorInterpolationGamma(this) } - unsafe extern "system" fn GetExtendMode(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE - where - Identity: ID2D1GradientStopCollection_Impl, - { + unsafe extern "system" fn GetExtendMode(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientStopCollection_Impl::GetExtendMode(this) } @@ -4267,42 +3223,24 @@ pub trait ID2D1GradientStopCollection1_Impl: Sized + ID2D1GradientStopCollection impl windows_core::RuntimeName for ID2D1GradientStopCollection1 {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1GradientStopCollection1_Vtbl { - pub const fn new() -> ID2D1GradientStopCollection1_Vtbl - where - Identity: ID2D1GradientStopCollection1_Impl, - { - unsafe extern "system" fn GetGradientStops1(this: *mut core::ffi::c_void, gradientstops: *mut Common::D2D1_GRADIENT_STOP, gradientstopscount: u32) - where - Identity: ID2D1GradientStopCollection1_Impl, - { + pub const fn new() -> ID2D1GradientStopCollection1_Vtbl { + unsafe extern "system" fn GetGradientStops1(this: *mut core::ffi::c_void, gradientstops: *mut Common::D2D1_GRADIENT_STOP, gradientstopscount: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientStopCollection1_Impl::GetGradientStops1(this, core::mem::transmute_copy(&gradientstops), core::mem::transmute_copy(&gradientstopscount)) } - unsafe extern "system" fn GetPreInterpolationSpace(this: *mut core::ffi::c_void) -> D2D1_COLOR_SPACE - where - Identity: ID2D1GradientStopCollection1_Impl, - { + unsafe extern "system" fn GetPreInterpolationSpace(this: *mut core::ffi::c_void) -> D2D1_COLOR_SPACE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientStopCollection1_Impl::GetPreInterpolationSpace(this) } - unsafe extern "system" fn GetPostInterpolationSpace(this: *mut core::ffi::c_void) -> D2D1_COLOR_SPACE - where - Identity: ID2D1GradientStopCollection1_Impl, - { + unsafe extern "system" fn GetPostInterpolationSpace(this: *mut core::ffi::c_void) -> D2D1_COLOR_SPACE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientStopCollection1_Impl::GetPostInterpolationSpace(this) } - unsafe extern "system" fn GetBufferPrecision(this: *mut core::ffi::c_void) -> D2D1_BUFFER_PRECISION - where - Identity: ID2D1GradientStopCollection1_Impl, - { + unsafe extern "system" fn GetBufferPrecision(this: *mut core::ffi::c_void) -> D2D1_BUFFER_PRECISION { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientStopCollection1_Impl::GetBufferPrecision(this) } - unsafe extern "system" fn GetColorInterpolationMode(this: *mut core::ffi::c_void) -> D2D1_COLOR_INTERPOLATION_MODE - where - Identity: ID2D1GradientStopCollection1_Impl, - { + unsafe extern "system" fn GetColorInterpolationMode(this: *mut core::ffi::c_void) -> D2D1_COLOR_INTERPOLATION_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1GradientStopCollection1_Impl::GetColorInterpolationMode(this) } @@ -4329,28 +3267,16 @@ pub trait ID2D1HwndRenderTarget_Impl: Sized + ID2D1RenderTarget_Impl { impl windows_core::RuntimeName for ID2D1HwndRenderTarget {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1HwndRenderTarget_Vtbl { - pub const fn new() -> ID2D1HwndRenderTarget_Vtbl - where - Identity: ID2D1HwndRenderTarget_Impl, - { - unsafe extern "system" fn CheckWindowState(this: *mut core::ffi::c_void) -> D2D1_WINDOW_STATE - where - Identity: ID2D1HwndRenderTarget_Impl, - { + pub const fn new() -> ID2D1HwndRenderTarget_Vtbl { + unsafe extern "system" fn CheckWindowState(this: *mut core::ffi::c_void) -> D2D1_WINDOW_STATE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1HwndRenderTarget_Impl::CheckWindowState(this) } - unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, pixelsize: *const Common::D2D_SIZE_U) -> windows_core::HRESULT - where - Identity: ID2D1HwndRenderTarget_Impl, - { + unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, pixelsize: *const Common::D2D_SIZE_U) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1HwndRenderTarget_Impl::Resize(this, core::mem::transmute_copy(&pixelsize)).into() } - unsafe extern "system" fn GetHwnd(this: *mut core::ffi::c_void) -> super::super::Foundation::HWND - where - Identity: ID2D1HwndRenderTarget_Impl, - { + unsafe extern "system" fn GetHwnd(this: *mut core::ffi::c_void) -> super::super::Foundation::HWND { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1HwndRenderTarget_Impl::GetHwnd(this) } @@ -4368,10 +3294,7 @@ impl ID2D1HwndRenderTarget_Vtbl { pub trait ID2D1Image_Impl: Sized + ID2D1Resource_Impl {} impl windows_core::RuntimeName for ID2D1Image {} impl ID2D1Image_Vtbl { - pub const fn new() -> ID2D1Image_Vtbl - where - Identity: ID2D1Image_Impl, - { + pub const fn new() -> ID2D1Image_Vtbl { Self { base__: ID2D1Resource_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -4395,77 +3318,44 @@ pub trait ID2D1ImageBrush_Impl: Sized + ID2D1Brush_Impl { impl windows_core::RuntimeName for ID2D1ImageBrush {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1ImageBrush_Vtbl { - pub const fn new() -> ID2D1ImageBrush_Vtbl - where - Identity: ID2D1ImageBrush_Impl, - { - unsafe extern "system" fn SetImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void) - where - Identity: ID2D1ImageBrush_Impl, - { + pub const fn new() -> ID2D1ImageBrush_Vtbl { + unsafe extern "system" fn SetImage(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageBrush_Impl::SetImage(this, windows_core::from_raw_borrowed(&image)) } - unsafe extern "system" fn SetExtendModeX(this: *mut core::ffi::c_void, extendmodex: D2D1_EXTEND_MODE) - where - Identity: ID2D1ImageBrush_Impl, - { + unsafe extern "system" fn SetExtendModeX(this: *mut core::ffi::c_void, extendmodex: D2D1_EXTEND_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageBrush_Impl::SetExtendModeX(this, core::mem::transmute_copy(&extendmodex)) } - unsafe extern "system" fn SetExtendModeY(this: *mut core::ffi::c_void, extendmodey: D2D1_EXTEND_MODE) - where - Identity: ID2D1ImageBrush_Impl, - { + unsafe extern "system" fn SetExtendModeY(this: *mut core::ffi::c_void, extendmodey: D2D1_EXTEND_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageBrush_Impl::SetExtendModeY(this, core::mem::transmute_copy(&extendmodey)) } - unsafe extern "system" fn SetInterpolationMode(this: *mut core::ffi::c_void, interpolationmode: D2D1_INTERPOLATION_MODE) - where - Identity: ID2D1ImageBrush_Impl, - { + unsafe extern "system" fn SetInterpolationMode(this: *mut core::ffi::c_void, interpolationmode: D2D1_INTERPOLATION_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageBrush_Impl::SetInterpolationMode(this, core::mem::transmute_copy(&interpolationmode)) } - unsafe extern "system" fn SetSourceRectangle(this: *mut core::ffi::c_void, sourcerectangle: *const Common::D2D_RECT_F) - where - Identity: ID2D1ImageBrush_Impl, - { + unsafe extern "system" fn SetSourceRectangle(this: *mut core::ffi::c_void, sourcerectangle: *const Common::D2D_RECT_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageBrush_Impl::SetSourceRectangle(this, core::mem::transmute_copy(&sourcerectangle)) } - unsafe extern "system" fn GetImage(this: *mut core::ffi::c_void, image: *mut *mut core::ffi::c_void) - where - Identity: ID2D1ImageBrush_Impl, - { + unsafe extern "system" fn GetImage(this: *mut core::ffi::c_void, image: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageBrush_Impl::GetImage(this, core::mem::transmute_copy(&image)) } - unsafe extern "system" fn GetExtendModeX(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE - where - Identity: ID2D1ImageBrush_Impl, - { + unsafe extern "system" fn GetExtendModeX(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageBrush_Impl::GetExtendModeX(this) } - unsafe extern "system" fn GetExtendModeY(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE - where - Identity: ID2D1ImageBrush_Impl, - { + unsafe extern "system" fn GetExtendModeY(this: *mut core::ffi::c_void) -> D2D1_EXTEND_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageBrush_Impl::GetExtendModeY(this) } - unsafe extern "system" fn GetInterpolationMode(this: *mut core::ffi::c_void) -> D2D1_INTERPOLATION_MODE - where - Identity: ID2D1ImageBrush_Impl, - { + unsafe extern "system" fn GetInterpolationMode(this: *mut core::ffi::c_void) -> D2D1_INTERPOLATION_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageBrush_Impl::GetInterpolationMode(this) } - unsafe extern "system" fn GetSourceRectangle(this: *mut core::ffi::c_void, sourcerectangle: *mut Common::D2D_RECT_F) - where - Identity: ID2D1ImageBrush_Impl, - { + unsafe extern "system" fn GetSourceRectangle(this: *mut core::ffi::c_void, sourcerectangle: *mut Common::D2D_RECT_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageBrush_Impl::GetSourceRectangle(this, core::mem::transmute_copy(&sourcerectangle)) } @@ -4493,21 +3383,12 @@ pub trait ID2D1ImageSource_Impl: Sized + ID2D1Image_Impl { } impl windows_core::RuntimeName for ID2D1ImageSource {} impl ID2D1ImageSource_Vtbl { - pub const fn new() -> ID2D1ImageSource_Vtbl - where - Identity: ID2D1ImageSource_Impl, - { - unsafe extern "system" fn OfferResources(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1ImageSource_Impl, - { + pub const fn new() -> ID2D1ImageSource_Vtbl { + unsafe extern "system" fn OfferResources(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageSource_Impl::OfferResources(this).into() } - unsafe extern "system" fn TryReclaimResources(this: *mut core::ffi::c_void, resourcesdiscarded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID2D1ImageSource_Impl, - { + unsafe extern "system" fn TryReclaimResources(this: *mut core::ffi::c_void, resourcesdiscarded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1ImageSource_Impl::TryReclaimResources(this) { Ok(ok__) => { @@ -4537,28 +3418,16 @@ pub trait ID2D1ImageSourceFromWic_Impl: Sized + ID2D1ImageSource_Impl { impl windows_core::RuntimeName for ID2D1ImageSourceFromWic {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1ImageSourceFromWic_Vtbl { - pub const fn new() -> ID2D1ImageSourceFromWic_Vtbl - where - Identity: ID2D1ImageSourceFromWic_Impl, - { - unsafe extern "system" fn EnsureCached(this: *mut core::ffi::c_void, rectangletofill: *const Common::D2D_RECT_U) -> windows_core::HRESULT - where - Identity: ID2D1ImageSourceFromWic_Impl, - { + pub const fn new() -> ID2D1ImageSourceFromWic_Vtbl { + unsafe extern "system" fn EnsureCached(this: *mut core::ffi::c_void, rectangletofill: *const Common::D2D_RECT_U) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageSourceFromWic_Impl::EnsureCached(this, core::mem::transmute_copy(&rectangletofill)).into() } - unsafe extern "system" fn TrimCache(this: *mut core::ffi::c_void, rectangletopreserve: *const Common::D2D_RECT_U) -> windows_core::HRESULT - where - Identity: ID2D1ImageSourceFromWic_Impl, - { + unsafe extern "system" fn TrimCache(this: *mut core::ffi::c_void, rectangletopreserve: *const Common::D2D_RECT_U) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageSourceFromWic_Impl::TrimCache(this, core::mem::transmute_copy(&rectangletopreserve)).into() } - unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, wicbitmapsource: *mut *mut core::ffi::c_void) - where - Identity: ID2D1ImageSourceFromWic_Impl, - { + unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, wicbitmapsource: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ImageSourceFromWic_Impl::GetSource(this, core::mem::transmute_copy(&wicbitmapsource)) } @@ -4590,77 +3459,44 @@ pub trait ID2D1Ink_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1Ink {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1Ink_Vtbl { - pub const fn new() -> ID2D1Ink_Vtbl - where - Identity: ID2D1Ink_Impl, - { - unsafe extern "system" fn SetStartPoint(this: *mut core::ffi::c_void, startpoint: *const D2D1_INK_POINT) - where - Identity: ID2D1Ink_Impl, - { + pub const fn new() -> ID2D1Ink_Vtbl { + unsafe extern "system" fn SetStartPoint(this: *mut core::ffi::c_void, startpoint: *const D2D1_INK_POINT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Ink_Impl::SetStartPoint(this, core::mem::transmute_copy(&startpoint)) } - unsafe extern "system" fn GetStartPoint(this: *mut core::ffi::c_void, result__: *mut D2D1_INK_POINT) - where - Identity: ID2D1Ink_Impl, - { + unsafe extern "system" fn GetStartPoint(this: *mut core::ffi::c_void, result__: *mut D2D1_INK_POINT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1Ink_Impl::GetStartPoint(this) } - unsafe extern "system" fn AddSegments(this: *mut core::ffi::c_void, segments: *const D2D1_INK_BEZIER_SEGMENT, segmentscount: u32) -> windows_core::HRESULT - where - Identity: ID2D1Ink_Impl, - { + unsafe extern "system" fn AddSegments(this: *mut core::ffi::c_void, segments: *const D2D1_INK_BEZIER_SEGMENT, segmentscount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Ink_Impl::AddSegments(this, core::mem::transmute_copy(&segments), core::mem::transmute_copy(&segmentscount)).into() } - unsafe extern "system" fn RemoveSegmentsAtEnd(this: *mut core::ffi::c_void, segmentscount: u32) -> windows_core::HRESULT - where - Identity: ID2D1Ink_Impl, - { + unsafe extern "system" fn RemoveSegmentsAtEnd(this: *mut core::ffi::c_void, segmentscount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Ink_Impl::RemoveSegmentsAtEnd(this, core::mem::transmute_copy(&segmentscount)).into() } - unsafe extern "system" fn SetSegments(this: *mut core::ffi::c_void, startsegment: u32, segments: *const D2D1_INK_BEZIER_SEGMENT, segmentscount: u32) -> windows_core::HRESULT - where - Identity: ID2D1Ink_Impl, - { + unsafe extern "system" fn SetSegments(this: *mut core::ffi::c_void, startsegment: u32, segments: *const D2D1_INK_BEZIER_SEGMENT, segmentscount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Ink_Impl::SetSegments(this, core::mem::transmute_copy(&startsegment), core::mem::transmute_copy(&segments), core::mem::transmute_copy(&segmentscount)).into() } - unsafe extern "system" fn SetSegmentAtEnd(this: *mut core::ffi::c_void, segment: *const D2D1_INK_BEZIER_SEGMENT) -> windows_core::HRESULT - where - Identity: ID2D1Ink_Impl, - { + unsafe extern "system" fn SetSegmentAtEnd(this: *mut core::ffi::c_void, segment: *const D2D1_INK_BEZIER_SEGMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Ink_Impl::SetSegmentAtEnd(this, core::mem::transmute_copy(&segment)).into() } - unsafe extern "system" fn GetSegmentCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1Ink_Impl, - { + unsafe extern "system" fn GetSegmentCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Ink_Impl::GetSegmentCount(this) } - unsafe extern "system" fn GetSegments(this: *mut core::ffi::c_void, startsegment: u32, segments: *mut D2D1_INK_BEZIER_SEGMENT, segmentscount: u32) -> windows_core::HRESULT - where - Identity: ID2D1Ink_Impl, - { + unsafe extern "system" fn GetSegments(this: *mut core::ffi::c_void, startsegment: u32, segments: *mut D2D1_INK_BEZIER_SEGMENT, segmentscount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Ink_Impl::GetSegments(this, core::mem::transmute_copy(&startsegment), core::mem::transmute_copy(&segments), core::mem::transmute_copy(&segmentscount)).into() } - unsafe extern "system" fn StreamAsGeometry(this: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Ink_Impl, - { + unsafe extern "system" fn StreamAsGeometry(this: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Ink_Impl::StreamAsGeometry(this, windows_core::from_raw_borrowed(&inkstyle), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), windows_core::from_raw_borrowed(&geometrysink)).into() } - unsafe extern "system" fn GetBounds(this: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: ID2D1Ink_Impl, - { + unsafe extern "system" fn GetBounds(this: *mut core::ffi::c_void, inkstyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, bounds: *mut Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Ink_Impl::GetBounds(this, windows_core::from_raw_borrowed(&inkstyle), core::mem::transmute_copy(&worldtransform)) { Ok(ok__) => { @@ -4699,35 +3535,20 @@ pub trait ID2D1InkStyle_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1InkStyle {} #[cfg(feature = "Foundation_Numerics")] impl ID2D1InkStyle_Vtbl { - pub const fn new() -> ID2D1InkStyle_Vtbl - where - Identity: ID2D1InkStyle_Impl, - { - unsafe extern "system" fn SetNibTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) - where - Identity: ID2D1InkStyle_Impl, - { + pub const fn new() -> ID2D1InkStyle_Vtbl { + unsafe extern "system" fn SetNibTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1InkStyle_Impl::SetNibTransform(this, core::mem::transmute_copy(&transform)) } - unsafe extern "system" fn GetNibTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) - where - Identity: ID2D1InkStyle_Impl, - { + unsafe extern "system" fn GetNibTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1InkStyle_Impl::GetNibTransform(this, core::mem::transmute_copy(&transform)) } - unsafe extern "system" fn SetNibShape(this: *mut core::ffi::c_void, nibshape: D2D1_INK_NIB_SHAPE) - where - Identity: ID2D1InkStyle_Impl, - { + unsafe extern "system" fn SetNibShape(this: *mut core::ffi::c_void, nibshape: D2D1_INK_NIB_SHAPE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1InkStyle_Impl::SetNibShape(this, core::mem::transmute_copy(&nibshape)) } - unsafe extern "system" fn GetNibShape(this: *mut core::ffi::c_void) -> D2D1_INK_NIB_SHAPE - where - Identity: ID2D1InkStyle_Impl, - { + unsafe extern "system" fn GetNibShape(this: *mut core::ffi::c_void) -> D2D1_INK_NIB_SHAPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1InkStyle_Impl::GetNibShape(this) } @@ -4751,14 +3572,8 @@ pub trait ID2D1Layer_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1Layer {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1Layer_Vtbl { - pub const fn new() -> ID2D1Layer_Vtbl - where - Identity: ID2D1Layer_Impl, - { - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_F) - where - Identity: ID2D1Layer_Impl, - { + pub const fn new() -> ID2D1Layer_Vtbl { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1Layer_Impl::GetSize(this) } @@ -4780,42 +3595,24 @@ pub trait ID2D1LinearGradientBrush_Impl: Sized + ID2D1Brush_Impl { impl windows_core::RuntimeName for ID2D1LinearGradientBrush {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1LinearGradientBrush_Vtbl { - pub const fn new() -> ID2D1LinearGradientBrush_Vtbl - where - Identity: ID2D1LinearGradientBrush_Impl, - { - unsafe extern "system" fn SetStartPoint(this: *mut core::ffi::c_void, startpoint: Common::D2D_POINT_2F) - where - Identity: ID2D1LinearGradientBrush_Impl, - { + pub const fn new() -> ID2D1LinearGradientBrush_Vtbl { + unsafe extern "system" fn SetStartPoint(this: *mut core::ffi::c_void, startpoint: Common::D2D_POINT_2F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1LinearGradientBrush_Impl::SetStartPoint(this, core::mem::transmute(&startpoint)) } - unsafe extern "system" fn SetEndPoint(this: *mut core::ffi::c_void, endpoint: Common::D2D_POINT_2F) - where - Identity: ID2D1LinearGradientBrush_Impl, - { + unsafe extern "system" fn SetEndPoint(this: *mut core::ffi::c_void, endpoint: Common::D2D_POINT_2F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1LinearGradientBrush_Impl::SetEndPoint(this, core::mem::transmute(&endpoint)) } - unsafe extern "system" fn GetStartPoint(this: *mut core::ffi::c_void, result__: *mut Common::D2D_POINT_2F) - where - Identity: ID2D1LinearGradientBrush_Impl, - { + unsafe extern "system" fn GetStartPoint(this: *mut core::ffi::c_void, result__: *mut Common::D2D_POINT_2F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1LinearGradientBrush_Impl::GetStartPoint(this) } - unsafe extern "system" fn GetEndPoint(this: *mut core::ffi::c_void, result__: *mut Common::D2D_POINT_2F) - where - Identity: ID2D1LinearGradientBrush_Impl, - { + unsafe extern "system" fn GetEndPoint(this: *mut core::ffi::c_void, result__: *mut Common::D2D_POINT_2F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1LinearGradientBrush_Impl::GetEndPoint(this) } - unsafe extern "system" fn GetGradientStopCollection(this: *mut core::ffi::c_void, gradientstopcollection: *mut *mut core::ffi::c_void) - where - Identity: ID2D1LinearGradientBrush_Impl, - { + unsafe extern "system" fn GetGradientStopCollection(this: *mut core::ffi::c_void, gradientstopcollection: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1LinearGradientBrush_Impl::GetGradientStopCollection(this, core::mem::transmute_copy(&gradientstopcollection)) } @@ -4835,10 +3632,7 @@ impl ID2D1LinearGradientBrush_Vtbl { pub trait ID2D1LookupTable3D_Impl: Sized + ID2D1Resource_Impl {} impl windows_core::RuntimeName for ID2D1LookupTable3D {} impl ID2D1LookupTable3D_Vtbl { - pub const fn new() -> ID2D1LookupTable3D_Vtbl - where - Identity: ID2D1LookupTable3D_Impl, - { + pub const fn new() -> ID2D1LookupTable3D_Vtbl { Self { base__: ID2D1Resource_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -4850,14 +3644,8 @@ pub trait ID2D1Mesh_Impl: Sized + ID2D1Resource_Impl { } impl windows_core::RuntimeName for ID2D1Mesh {} impl ID2D1Mesh_Vtbl { - pub const fn new() -> ID2D1Mesh_Vtbl - where - Identity: ID2D1Mesh_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, tessellationsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Mesh_Impl, - { + pub const fn new() -> ID2D1Mesh_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, tessellationsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Mesh_Impl::Open(this) { Ok(ok__) => { @@ -4873,35 +3661,23 @@ impl ID2D1Mesh_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ID2D1Multithread_Impl: Sized { +pub trait ID2D1Multithread_Impl: Sized + windows_core::IUnknownImpl { fn GetMultithreadProtected(&self) -> super::super::Foundation::BOOL; fn Enter(&self); fn Leave(&self); } impl windows_core::RuntimeName for ID2D1Multithread {} impl ID2D1Multithread_Vtbl { - pub const fn new() -> ID2D1Multithread_Vtbl - where - Identity: ID2D1Multithread_Impl, - { - unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID2D1Multithread_Impl, - { + pub const fn new() -> ID2D1Multithread_Vtbl { + unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Multithread_Impl::GetMultithreadProtected(this) } - unsafe extern "system" fn Enter(this: *mut core::ffi::c_void) - where - Identity: ID2D1Multithread_Impl, - { + unsafe extern "system" fn Enter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Multithread_Impl::Enter(this) } - unsafe extern "system" fn Leave(this: *mut core::ffi::c_void) - where - Identity: ID2D1Multithread_Impl, - { + unsafe extern "system" fn Leave(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Multithread_Impl::Leave(this) } @@ -4922,21 +3698,12 @@ pub trait ID2D1OffsetTransform_Impl: Sized + ID2D1TransformNode_Impl { } impl windows_core::RuntimeName for ID2D1OffsetTransform {} impl ID2D1OffsetTransform_Vtbl { - pub const fn new() -> ID2D1OffsetTransform_Vtbl - where - Identity: ID2D1OffsetTransform_Impl, - { - unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: super::super::Foundation::POINT) - where - Identity: ID2D1OffsetTransform_Impl, - { + pub const fn new() -> ID2D1OffsetTransform_Vtbl { + unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: super::super::Foundation::POINT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1OffsetTransform_Impl::SetOffset(this, core::mem::transmute(&offset)) } - unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::POINT) - where - Identity: ID2D1OffsetTransform_Impl, - { + unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::POINT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1OffsetTransform_Impl::GetOffset(this) } @@ -4957,14 +3724,8 @@ pub trait ID2D1PathGeometry_Impl: Sized + ID2D1Geometry_Impl { impl windows_core::RuntimeName for ID2D1PathGeometry {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1PathGeometry_Vtbl { - pub const fn new() -> ID2D1PathGeometry_Vtbl - where - Identity: ID2D1PathGeometry_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, geometrysink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1PathGeometry_Impl, - { + pub const fn new() -> ID2D1PathGeometry_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, geometrysink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1PathGeometry_Impl::Open(this) { Ok(ok__) => { @@ -4974,17 +3735,11 @@ impl ID2D1PathGeometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1PathGeometry_Impl, - { + unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1PathGeometry_Impl::Stream(this, windows_core::from_raw_borrowed(&geometrysink)).into() } - unsafe extern "system" fn GetSegmentCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: ID2D1PathGeometry_Impl, - { + unsafe extern "system" fn GetSegmentCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1PathGeometry_Impl::GetSegmentCount(this) { Ok(ok__) => { @@ -4994,10 +3749,7 @@ impl ID2D1PathGeometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFigureCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: ID2D1PathGeometry_Impl, - { + unsafe extern "system" fn GetFigureCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1PathGeometry_Impl::GetFigureCount(this) { Ok(ok__) => { @@ -5027,14 +3779,8 @@ pub trait ID2D1PathGeometry1_Impl: Sized + ID2D1PathGeometry_Impl { impl windows_core::RuntimeName for ID2D1PathGeometry1 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1PathGeometry1_Vtbl { - pub const fn new() -> ID2D1PathGeometry1_Vtbl - where - Identity: ID2D1PathGeometry1_Impl, - { - unsafe extern "system" fn ComputePointAndSegmentAtLength(this: *mut core::ffi::c_void, length: f32, startsegment: u32, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, pointdescription: *mut D2D1_POINT_DESCRIPTION) -> windows_core::HRESULT - where - Identity: ID2D1PathGeometry1_Impl, - { + pub const fn new() -> ID2D1PathGeometry1_Vtbl { + unsafe extern "system" fn ComputePointAndSegmentAtLength(this: *mut core::ffi::c_void, length: f32, startsegment: u32, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, pointdescription: *mut D2D1_POINT_DESCRIPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1PathGeometry1_Impl::ComputePointAndSegmentAtLength(this, core::mem::transmute_copy(&length), core::mem::transmute_copy(&startsegment), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance), core::mem::transmute_copy(&pointdescription)).into() } @@ -5045,7 +3791,7 @@ impl ID2D1PathGeometry1_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_System_Com"))] -pub trait ID2D1PrintControl_Impl: Sized { +pub trait ID2D1PrintControl_Impl: Sized + windows_core::IUnknownImpl { fn AddPage(&self, commandlist: Option<&ID2D1CommandList>, pagesize: &Common::D2D_SIZE_F, pageprintticketstream: Option<&super::super::System::Com::IStream>, tag1: *mut u64, tag2: *mut u64) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; } @@ -5053,21 +3799,12 @@ pub trait ID2D1PrintControl_Impl: Sized { impl windows_core::RuntimeName for ID2D1PrintControl {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_System_Com"))] impl ID2D1PrintControl_Vtbl { - pub const fn new() -> ID2D1PrintControl_Vtbl - where - Identity: ID2D1PrintControl_Impl, - { - unsafe extern "system" fn AddPage(this: *mut core::ffi::c_void, commandlist: *mut core::ffi::c_void, pagesize: Common::D2D_SIZE_F, pageprintticketstream: *mut core::ffi::c_void, tag1: *mut u64, tag2: *mut u64) -> windows_core::HRESULT - where - Identity: ID2D1PrintControl_Impl, - { + pub const fn new() -> ID2D1PrintControl_Vtbl { + unsafe extern "system" fn AddPage(this: *mut core::ffi::c_void, commandlist: *mut core::ffi::c_void, pagesize: Common::D2D_SIZE_F, pageprintticketstream: *mut core::ffi::c_void, tag1: *mut u64, tag2: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1PrintControl_Impl::AddPage(this, windows_core::from_raw_borrowed(&commandlist), core::mem::transmute(&pagesize), windows_core::from_raw_borrowed(&pageprintticketstream), core::mem::transmute_copy(&tag1), core::mem::transmute_copy(&tag2)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1PrintControl_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1PrintControl_Impl::Close(this).into() } @@ -5077,7 +3814,7 @@ impl ID2D1PrintControl_Vtbl { iid == &::IID } } -pub trait ID2D1Properties_Impl: Sized { +pub trait ID2D1Properties_Impl: Sized + windows_core::IUnknownImpl { fn GetPropertyCount(&self) -> u32; fn GetPropertyName(&self, index: u32, name: windows_core::PWSTR, namecount: u32) -> windows_core::Result<()>; fn GetPropertyNameLength(&self, index: u32) -> u32; @@ -5092,84 +3829,48 @@ pub trait ID2D1Properties_Impl: Sized { } impl windows_core::RuntimeName for ID2D1Properties {} impl ID2D1Properties_Vtbl { - pub const fn new() -> ID2D1Properties_Vtbl - where - Identity: ID2D1Properties_Impl, - { - unsafe extern "system" fn GetPropertyCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1Properties_Impl, - { + pub const fn new() -> ID2D1Properties_Vtbl { + unsafe extern "system" fn GetPropertyCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Properties_Impl::GetPropertyCount(this) } - unsafe extern "system" fn GetPropertyName(this: *mut core::ffi::c_void, index: u32, name: windows_core::PWSTR, namecount: u32) -> windows_core::HRESULT - where - Identity: ID2D1Properties_Impl, - { + unsafe extern "system" fn GetPropertyName(this: *mut core::ffi::c_void, index: u32, name: windows_core::PWSTR, namecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Properties_Impl::GetPropertyName(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&name), core::mem::transmute_copy(&namecount)).into() } - unsafe extern "system" fn GetPropertyNameLength(this: *mut core::ffi::c_void, index: u32) -> u32 - where - Identity: ID2D1Properties_Impl, - { + unsafe extern "system" fn GetPropertyNameLength(this: *mut core::ffi::c_void, index: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Properties_Impl::GetPropertyNameLength(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, index: u32) -> D2D1_PROPERTY_TYPE - where - Identity: ID2D1Properties_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, index: u32) -> D2D1_PROPERTY_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Properties_Impl::GetType(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetPropertyIndex(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> u32 - where - Identity: ID2D1Properties_Impl, - { + unsafe extern "system" fn GetPropertyIndex(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Properties_Impl::GetPropertyIndex(this, core::mem::transmute(&name)) } - unsafe extern "system" fn SetValueByName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_PROPERTY_TYPE, data: *const u8, datasize: u32) -> windows_core::HRESULT - where - Identity: ID2D1Properties_Impl, - { + unsafe extern "system" fn SetValueByName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_PROPERTY_TYPE, data: *const u8, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Properties_Impl::SetValueByName(this, core::mem::transmute(&name), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, index: u32, r#type: D2D1_PROPERTY_TYPE, data: *const u8, datasize: u32) -> windows_core::HRESULT - where - Identity: ID2D1Properties_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, index: u32, r#type: D2D1_PROPERTY_TYPE, data: *const u8, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Properties_Impl::SetValue(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn GetValueByName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_PROPERTY_TYPE, data: *mut u8, datasize: u32) -> windows_core::HRESULT - where - Identity: ID2D1Properties_Impl, - { + unsafe extern "system" fn GetValueByName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_PROPERTY_TYPE, data: *mut u8, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Properties_Impl::GetValueByName(this, core::mem::transmute(&name), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, index: u32, r#type: D2D1_PROPERTY_TYPE, data: *mut u8, datasize: u32) -> windows_core::HRESULT - where - Identity: ID2D1Properties_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, index: u32, r#type: D2D1_PROPERTY_TYPE, data: *mut u8, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Properties_Impl::GetValue(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn GetValueSize(this: *mut core::ffi::c_void, index: u32) -> u32 - where - Identity: ID2D1Properties_Impl, - { + unsafe extern "system" fn GetValueSize(this: *mut core::ffi::c_void, index: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Properties_Impl::GetValueSize(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetSubProperties(this: *mut core::ffi::c_void, index: u32, subproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1Properties_Impl, - { + unsafe extern "system" fn GetSubProperties(this: *mut core::ffi::c_void, index: u32, subproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Properties_Impl::GetSubProperties(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5214,70 +3915,40 @@ pub trait ID2D1RadialGradientBrush_Impl: Sized + ID2D1Brush_Impl { impl windows_core::RuntimeName for ID2D1RadialGradientBrush {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1RadialGradientBrush_Vtbl { - pub const fn new() -> ID2D1RadialGradientBrush_Vtbl - where - Identity: ID2D1RadialGradientBrush_Impl, - { - unsafe extern "system" fn SetCenter(this: *mut core::ffi::c_void, center: Common::D2D_POINT_2F) - where - Identity: ID2D1RadialGradientBrush_Impl, - { + pub const fn new() -> ID2D1RadialGradientBrush_Vtbl { + unsafe extern "system" fn SetCenter(this: *mut core::ffi::c_void, center: Common::D2D_POINT_2F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RadialGradientBrush_Impl::SetCenter(this, core::mem::transmute(¢er)) } - unsafe extern "system" fn SetGradientOriginOffset(this: *mut core::ffi::c_void, gradientoriginoffset: Common::D2D_POINT_2F) - where - Identity: ID2D1RadialGradientBrush_Impl, - { + unsafe extern "system" fn SetGradientOriginOffset(this: *mut core::ffi::c_void, gradientoriginoffset: Common::D2D_POINT_2F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RadialGradientBrush_Impl::SetGradientOriginOffset(this, core::mem::transmute(&gradientoriginoffset)) } - unsafe extern "system" fn SetRadiusX(this: *mut core::ffi::c_void, radiusx: f32) - where - Identity: ID2D1RadialGradientBrush_Impl, - { + unsafe extern "system" fn SetRadiusX(this: *mut core::ffi::c_void, radiusx: f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RadialGradientBrush_Impl::SetRadiusX(this, core::mem::transmute_copy(&radiusx)) } - unsafe extern "system" fn SetRadiusY(this: *mut core::ffi::c_void, radiusy: f32) - where - Identity: ID2D1RadialGradientBrush_Impl, - { + unsafe extern "system" fn SetRadiusY(this: *mut core::ffi::c_void, radiusy: f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RadialGradientBrush_Impl::SetRadiusY(this, core::mem::transmute_copy(&radiusy)) } - unsafe extern "system" fn GetCenter(this: *mut core::ffi::c_void, result__: *mut Common::D2D_POINT_2F) - where - Identity: ID2D1RadialGradientBrush_Impl, - { + unsafe extern "system" fn GetCenter(this: *mut core::ffi::c_void, result__: *mut Common::D2D_POINT_2F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1RadialGradientBrush_Impl::GetCenter(this) } - unsafe extern "system" fn GetGradientOriginOffset(this: *mut core::ffi::c_void, result__: *mut Common::D2D_POINT_2F) - where - Identity: ID2D1RadialGradientBrush_Impl, - { + unsafe extern "system" fn GetGradientOriginOffset(this: *mut core::ffi::c_void, result__: *mut Common::D2D_POINT_2F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1RadialGradientBrush_Impl::GetGradientOriginOffset(this) } - unsafe extern "system" fn GetRadiusX(this: *mut core::ffi::c_void) -> f32 - where - Identity: ID2D1RadialGradientBrush_Impl, - { + unsafe extern "system" fn GetRadiusX(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RadialGradientBrush_Impl::GetRadiusX(this) } - unsafe extern "system" fn GetRadiusY(this: *mut core::ffi::c_void) -> f32 - where - Identity: ID2D1RadialGradientBrush_Impl, - { + unsafe extern "system" fn GetRadiusY(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RadialGradientBrush_Impl::GetRadiusY(this) } - unsafe extern "system" fn GetGradientStopCollection(this: *mut core::ffi::c_void, gradientstopcollection: *mut *mut core::ffi::c_void) - where - Identity: ID2D1RadialGradientBrush_Impl, - { + unsafe extern "system" fn GetGradientStopCollection(this: *mut core::ffi::c_void, gradientstopcollection: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RadialGradientBrush_Impl::GetGradientStopCollection(this, core::mem::transmute_copy(&gradientstopcollection)) } @@ -5306,14 +3977,8 @@ pub trait ID2D1RectangleGeometry_Impl: Sized + ID2D1Geometry_Impl { impl windows_core::RuntimeName for ID2D1RectangleGeometry {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1RectangleGeometry_Vtbl { - pub const fn new() -> ID2D1RectangleGeometry_Vtbl - where - Identity: ID2D1RectangleGeometry_Impl, - { - unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, rect: *mut Common::D2D_RECT_F) - where - Identity: ID2D1RectangleGeometry_Impl, - { + pub const fn new() -> ID2D1RectangleGeometry_Vtbl { + unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, rect: *mut Common::D2D_RECT_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RectangleGeometry_Impl::GetRect(this, core::mem::transmute_copy(&rect)) } @@ -5323,7 +3988,7 @@ impl ID2D1RectangleGeometry_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID2D1RenderInfo_Impl: Sized { +pub trait ID2D1RenderInfo_Impl: Sized + windows_core::IUnknownImpl { fn SetInputDescription(&self, inputindex: u32, inputdescription: &D2D1_INPUT_DESCRIPTION) -> windows_core::Result<()>; fn SetOutputBuffer(&self, bufferprecision: D2D1_BUFFER_PRECISION, channeldepth: D2D1_CHANNEL_DEPTH) -> windows_core::Result<()>; fn SetCached(&self, iscached: super::super::Foundation::BOOL); @@ -5331,35 +3996,20 @@ pub trait ID2D1RenderInfo_Impl: Sized { } impl windows_core::RuntimeName for ID2D1RenderInfo {} impl ID2D1RenderInfo_Vtbl { - pub const fn new() -> ID2D1RenderInfo_Vtbl - where - Identity: ID2D1RenderInfo_Impl, - { - unsafe extern "system" fn SetInputDescription(this: *mut core::ffi::c_void, inputindex: u32, inputdescription: D2D1_INPUT_DESCRIPTION) -> windows_core::HRESULT - where - Identity: ID2D1RenderInfo_Impl, - { + pub const fn new() -> ID2D1RenderInfo_Vtbl { + unsafe extern "system" fn SetInputDescription(this: *mut core::ffi::c_void, inputindex: u32, inputdescription: D2D1_INPUT_DESCRIPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderInfo_Impl::SetInputDescription(this, core::mem::transmute_copy(&inputindex), core::mem::transmute(&inputdescription)).into() } - unsafe extern "system" fn SetOutputBuffer(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION, channeldepth: D2D1_CHANNEL_DEPTH) -> windows_core::HRESULT - where - Identity: ID2D1RenderInfo_Impl, - { + unsafe extern "system" fn SetOutputBuffer(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION, channeldepth: D2D1_CHANNEL_DEPTH) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderInfo_Impl::SetOutputBuffer(this, core::mem::transmute_copy(&bufferprecision), core::mem::transmute_copy(&channeldepth)).into() } - unsafe extern "system" fn SetCached(this: *mut core::ffi::c_void, iscached: super::super::Foundation::BOOL) - where - Identity: ID2D1RenderInfo_Impl, - { + unsafe extern "system" fn SetCached(this: *mut core::ffi::c_void, iscached: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderInfo_Impl::SetCached(this, core::mem::transmute_copy(&iscached)) } - unsafe extern "system" fn SetInstructionCountHint(this: *mut core::ffi::c_void, instructioncount: u32) - where - Identity: ID2D1RenderInfo_Impl, - { + unsafe extern "system" fn SetInstructionCountHint(this: *mut core::ffi::c_void, instructioncount: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderInfo_Impl::SetInstructionCountHint(this, core::mem::transmute_copy(&instructioncount)) } @@ -5435,14 +4085,8 @@ pub trait ID2D1RenderTarget_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1RenderTarget {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1RenderTarget_Vtbl { - pub const fn new() -> ID2D1RenderTarget_Vtbl - where - Identity: ID2D1RenderTarget_Impl, - { - unsafe extern "system" fn CreateBitmap(this: *mut core::ffi::c_void, size: Common::D2D_SIZE_U, srcdata: *const core::ffi::c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + pub const fn new() -> ID2D1RenderTarget_Vtbl { + unsafe extern "system" fn CreateBitmap(this: *mut core::ffi::c_void, size: Common::D2D_SIZE_U, srcdata: *const core::ffi::c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1RenderTarget_Impl::CreateBitmap(this, core::mem::transmute(&size), core::mem::transmute_copy(&srcdata), core::mem::transmute_copy(&pitch), core::mem::transmute_copy(&bitmapproperties)) { Ok(ok__) => { @@ -5452,10 +4096,7 @@ impl ID2D1RenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapFromWicBitmap(this: *mut core::ffi::c_void, wicbitmapsource: *mut core::ffi::c_void, bitmapproperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn CreateBitmapFromWicBitmap(this: *mut core::ffi::c_void, wicbitmapsource: *mut core::ffi::c_void, bitmapproperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1RenderTarget_Impl::CreateBitmapFromWicBitmap(this, windows_core::from_raw_borrowed(&wicbitmapsource), core::mem::transmute_copy(&bitmapproperties)) { Ok(ok__) => { @@ -5465,17 +4106,11 @@ impl ID2D1RenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSharedBitmap(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, data: *mut core::ffi::c_void, bitmapproperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn CreateSharedBitmap(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, data: *mut core::ffi::c_void, bitmapproperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::CreateSharedBitmap(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&data), core::mem::transmute_copy(&bitmapproperties), core::mem::transmute_copy(&bitmap)).into() } - unsafe extern "system" fn CreateBitmapBrush(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, bitmapbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn CreateBitmapBrush(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, bitmapbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1RenderTarget_Impl::CreateBitmapBrush(this, windows_core::from_raw_borrowed(&bitmap), core::mem::transmute_copy(&bitmapbrushproperties), core::mem::transmute_copy(&brushproperties)) { Ok(ok__) => { @@ -5485,10 +4120,7 @@ impl ID2D1RenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSolidColorBrush(this: *mut core::ffi::c_void, color: *const Common::D2D1_COLOR_F, brushproperties: *const D2D1_BRUSH_PROPERTIES, solidcolorbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn CreateSolidColorBrush(this: *mut core::ffi::c_void, color: *const Common::D2D1_COLOR_F, brushproperties: *const D2D1_BRUSH_PROPERTIES, solidcolorbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1RenderTarget_Impl::CreateSolidColorBrush(this, core::mem::transmute_copy(&color), core::mem::transmute_copy(&brushproperties)) { Ok(ok__) => { @@ -5498,10 +4130,7 @@ impl ID2D1RenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGradientStopCollection(this: *mut core::ffi::c_void, gradientstops: *const Common::D2D1_GRADIENT_STOP, gradientstopscount: u32, colorinterpolationgamma: D2D1_GAMMA, extendmode: D2D1_EXTEND_MODE, gradientstopcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn CreateGradientStopCollection(this: *mut core::ffi::c_void, gradientstops: *const Common::D2D1_GRADIENT_STOP, gradientstopscount: u32, colorinterpolationgamma: D2D1_GAMMA, extendmode: D2D1_EXTEND_MODE, gradientstopcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1RenderTarget_Impl::CreateGradientStopCollection(this, core::mem::transmute_copy(&gradientstops), core::mem::transmute_copy(&gradientstopscount), core::mem::transmute_copy(&colorinterpolationgamma), core::mem::transmute_copy(&extendmode)) { Ok(ok__) => { @@ -5511,10 +4140,7 @@ impl ID2D1RenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLinearGradientBrush(this: *mut core::ffi::c_void, lineargradientbrushproperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, gradientstopcollection: *mut core::ffi::c_void, lineargradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn CreateLinearGradientBrush(this: *mut core::ffi::c_void, lineargradientbrushproperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, gradientstopcollection: *mut core::ffi::c_void, lineargradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1RenderTarget_Impl::CreateLinearGradientBrush(this, core::mem::transmute_copy(&lineargradientbrushproperties), core::mem::transmute_copy(&brushproperties), windows_core::from_raw_borrowed(&gradientstopcollection)) { Ok(ok__) => { @@ -5524,10 +4150,7 @@ impl ID2D1RenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRadialGradientBrush(this: *mut core::ffi::c_void, radialgradientbrushproperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, gradientstopcollection: *mut core::ffi::c_void, radialgradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn CreateRadialGradientBrush(this: *mut core::ffi::c_void, radialgradientbrushproperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, gradientstopcollection: *mut core::ffi::c_void, radialgradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1RenderTarget_Impl::CreateRadialGradientBrush(this, core::mem::transmute_copy(&radialgradientbrushproperties), core::mem::transmute_copy(&brushproperties), windows_core::from_raw_borrowed(&gradientstopcollection)) { Ok(ok__) => { @@ -5537,10 +4160,7 @@ impl ID2D1RenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCompatibleRenderTarget(this: *mut core::ffi::c_void, desiredsize: *const Common::D2D_SIZE_F, desiredpixelsize: *const Common::D2D_SIZE_U, desiredformat: *const Common::D2D1_PIXEL_FORMAT, options: D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS, bitmaprendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn CreateCompatibleRenderTarget(this: *mut core::ffi::c_void, desiredsize: *const Common::D2D_SIZE_F, desiredpixelsize: *const Common::D2D_SIZE_U, desiredformat: *const Common::D2D1_PIXEL_FORMAT, options: D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS, bitmaprendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1RenderTarget_Impl::CreateCompatibleRenderTarget(this, core::mem::transmute_copy(&desiredsize), core::mem::transmute_copy(&desiredpixelsize), core::mem::transmute_copy(&desiredformat), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -5550,10 +4170,7 @@ impl ID2D1RenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLayer(this: *mut core::ffi::c_void, size: *const Common::D2D_SIZE_F, layer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn CreateLayer(this: *mut core::ffi::c_void, size: *const Common::D2D_SIZE_F, layer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1RenderTarget_Impl::CreateLayer(this, core::mem::transmute_copy(&size)) { Ok(ok__) => { @@ -5563,10 +4180,7 @@ impl ID2D1RenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMesh(this: *mut core::ffi::c_void, mesh: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn CreateMesh(this: *mut core::ffi::c_void, mesh: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1RenderTarget_Impl::CreateMesh(this) { Ok(ok__) => { @@ -5576,297 +4190,171 @@ impl ID2D1RenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DrawLine(this: *mut core::ffi::c_void, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn DrawLine(this: *mut core::ffi::c_void, point0: Common::D2D_POINT_2F, point1: Common::D2D_POINT_2F, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::DrawLine(this, core::mem::transmute(&point0), core::mem::transmute(&point1), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle)) } - unsafe extern "system" fn DrawRectangle(this: *mut core::ffi::c_void, rect: *const Common::D2D_RECT_F, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn DrawRectangle(this: *mut core::ffi::c_void, rect: *const Common::D2D_RECT_F, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::DrawRectangle(this, core::mem::transmute_copy(&rect), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle)) } - unsafe extern "system" fn FillRectangle(this: *mut core::ffi::c_void, rect: *const Common::D2D_RECT_F, brush: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn FillRectangle(this: *mut core::ffi::c_void, rect: *const Common::D2D_RECT_F, brush: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::FillRectangle(this, core::mem::transmute_copy(&rect), windows_core::from_raw_borrowed(&brush)) } - unsafe extern "system" fn DrawRoundedRectangle(this: *mut core::ffi::c_void, roundedrect: *const D2D1_ROUNDED_RECT, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn DrawRoundedRectangle(this: *mut core::ffi::c_void, roundedrect: *const D2D1_ROUNDED_RECT, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::DrawRoundedRectangle(this, core::mem::transmute_copy(&roundedrect), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle)) } - unsafe extern "system" fn FillRoundedRectangle(this: *mut core::ffi::c_void, roundedrect: *const D2D1_ROUNDED_RECT, brush: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn FillRoundedRectangle(this: *mut core::ffi::c_void, roundedrect: *const D2D1_ROUNDED_RECT, brush: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::FillRoundedRectangle(this, core::mem::transmute_copy(&roundedrect), windows_core::from_raw_borrowed(&brush)) } - unsafe extern "system" fn DrawEllipse(this: *mut core::ffi::c_void, ellipse: *const D2D1_ELLIPSE, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn DrawEllipse(this: *mut core::ffi::c_void, ellipse: *const D2D1_ELLIPSE, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::DrawEllipse(this, core::mem::transmute_copy(&ellipse), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle)) } - unsafe extern "system" fn FillEllipse(this: *mut core::ffi::c_void, ellipse: *const D2D1_ELLIPSE, brush: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn FillEllipse(this: *mut core::ffi::c_void, ellipse: *const D2D1_ELLIPSE, brush: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::FillEllipse(this, core::mem::transmute_copy(&ellipse), windows_core::from_raw_borrowed(&brush)) } - unsafe extern "system" fn DrawGeometry(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn DrawGeometry(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, strokewidth: f32, strokestyle: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::DrawGeometry(this, windows_core::from_raw_borrowed(&geometry), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&strokewidth), windows_core::from_raw_borrowed(&strokestyle)) } - unsafe extern "system" fn FillGeometry(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, opacitybrush: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn FillGeometry(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, opacitybrush: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::FillGeometry(this, windows_core::from_raw_borrowed(&geometry), windows_core::from_raw_borrowed(&brush), windows_core::from_raw_borrowed(&opacitybrush)) } - unsafe extern "system" fn FillMesh(this: *mut core::ffi::c_void, mesh: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn FillMesh(this: *mut core::ffi::c_void, mesh: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::FillMesh(this, windows_core::from_raw_borrowed(&mesh), windows_core::from_raw_borrowed(&brush)) } - unsafe extern "system" fn FillOpacityMask(this: *mut core::ffi::c_void, opacitymask: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn FillOpacityMask(this: *mut core::ffi::c_void, opacitymask: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: *const Common::D2D_RECT_F, sourcerectangle: *const Common::D2D_RECT_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::FillOpacityMask(this, windows_core::from_raw_borrowed(&opacitymask), windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&content), core::mem::transmute_copy(&destinationrectangle), core::mem::transmute_copy(&sourcerectangle)) } - unsafe extern "system" fn DrawBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, opacity: f32, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, sourcerectangle: *const Common::D2D_RECT_F) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn DrawBitmap(this: *mut core::ffi::c_void, bitmap: *mut core::ffi::c_void, destinationrectangle: *const Common::D2D_RECT_F, opacity: f32, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, sourcerectangle: *const Common::D2D_RECT_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::DrawBitmap(this, windows_core::from_raw_borrowed(&bitmap), core::mem::transmute_copy(&destinationrectangle), core::mem::transmute_copy(&opacity), core::mem::transmute_copy(&interpolationmode), core::mem::transmute_copy(&sourcerectangle)) } - unsafe extern "system" fn DrawText(this: *mut core::ffi::c_void, string: windows_core::PCWSTR, stringlength: u32, textformat: *mut core::ffi::c_void, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: *mut core::ffi::c_void, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn DrawText(this: *mut core::ffi::c_void, string: windows_core::PCWSTR, stringlength: u32, textformat: *mut core::ffi::c_void, layoutrect: *const Common::D2D_RECT_F, defaultfillbrush: *mut core::ffi::c_void, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::DrawText(this, core::mem::transmute(&string), core::mem::transmute_copy(&stringlength), windows_core::from_raw_borrowed(&textformat), core::mem::transmute_copy(&layoutrect), windows_core::from_raw_borrowed(&defaultfillbrush), core::mem::transmute_copy(&options), core::mem::transmute_copy(&measuringmode)) } - unsafe extern "system" fn DrawTextLayout(this: *mut core::ffi::c_void, origin: Common::D2D_POINT_2F, textlayout: *mut core::ffi::c_void, defaultfillbrush: *mut core::ffi::c_void, options: D2D1_DRAW_TEXT_OPTIONS) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn DrawTextLayout(this: *mut core::ffi::c_void, origin: Common::D2D_POINT_2F, textlayout: *mut core::ffi::c_void, defaultfillbrush: *mut core::ffi::c_void, options: D2D1_DRAW_TEXT_OPTIONS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::DrawTextLayout(this, core::mem::transmute(&origin), windows_core::from_raw_borrowed(&textlayout), windows_core::from_raw_borrowed(&defaultfillbrush), core::mem::transmute_copy(&options)) } - unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, foregroundbrush: *mut core::ffi::c_void, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, baselineorigin: Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, foregroundbrush: *mut core::ffi::c_void, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::DrawGlyphRun(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), windows_core::from_raw_borrowed(&foregroundbrush), core::mem::transmute_copy(&measuringmode)) } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *const super::super::super::Foundation::Numerics::Matrix3x2) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::SetTransform(this, core::mem::transmute_copy(&transform)) } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::GetTransform(this, core::mem::transmute_copy(&transform)) } - unsafe extern "system" fn SetAntialiasMode(this: *mut core::ffi::c_void, antialiasmode: D2D1_ANTIALIAS_MODE) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn SetAntialiasMode(this: *mut core::ffi::c_void, antialiasmode: D2D1_ANTIALIAS_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::SetAntialiasMode(this, core::mem::transmute_copy(&antialiasmode)) } - unsafe extern "system" fn GetAntialiasMode(this: *mut core::ffi::c_void) -> D2D1_ANTIALIAS_MODE - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn GetAntialiasMode(this: *mut core::ffi::c_void) -> D2D1_ANTIALIAS_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::GetAntialiasMode(this) } - unsafe extern "system" fn SetTextAntialiasMode(this: *mut core::ffi::c_void, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn SetTextAntialiasMode(this: *mut core::ffi::c_void, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::SetTextAntialiasMode(this, core::mem::transmute_copy(&textantialiasmode)) } - unsafe extern "system" fn GetTextAntialiasMode(this: *mut core::ffi::c_void) -> D2D1_TEXT_ANTIALIAS_MODE - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn GetTextAntialiasMode(this: *mut core::ffi::c_void) -> D2D1_TEXT_ANTIALIAS_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::GetTextAntialiasMode(this) } - unsafe extern "system" fn SetTextRenderingParams(this: *mut core::ffi::c_void, textrenderingparams: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn SetTextRenderingParams(this: *mut core::ffi::c_void, textrenderingparams: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::SetTextRenderingParams(this, windows_core::from_raw_borrowed(&textrenderingparams)) } - unsafe extern "system" fn GetTextRenderingParams(this: *mut core::ffi::c_void, textrenderingparams: *mut *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn GetTextRenderingParams(this: *mut core::ffi::c_void, textrenderingparams: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::GetTextRenderingParams(this, core::mem::transmute_copy(&textrenderingparams)) } - unsafe extern "system" fn SetTags(this: *mut core::ffi::c_void, tag1: u64, tag2: u64) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn SetTags(this: *mut core::ffi::c_void, tag1: u64, tag2: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::SetTags(this, core::mem::transmute_copy(&tag1), core::mem::transmute_copy(&tag2)) } - unsafe extern "system" fn GetTags(this: *mut core::ffi::c_void, tag1: *mut u64, tag2: *mut u64) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn GetTags(this: *mut core::ffi::c_void, tag1: *mut u64, tag2: *mut u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::GetTags(this, core::mem::transmute_copy(&tag1), core::mem::transmute_copy(&tag2)) } - unsafe extern "system" fn PushLayer(this: *mut core::ffi::c_void, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn PushLayer(this: *mut core::ffi::c_void, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::PushLayer(this, core::mem::transmute_copy(&layerparameters), windows_core::from_raw_borrowed(&layer)) } - unsafe extern "system" fn PopLayer(this: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn PopLayer(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::PopLayer(this) } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void, tag1: *mut u64, tag2: *mut u64) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void, tag1: *mut u64, tag2: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::Flush(this, core::mem::transmute_copy(&tag1), core::mem::transmute_copy(&tag2)).into() } - unsafe extern "system" fn SaveDrawingState(this: *mut core::ffi::c_void, drawingstateblock: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn SaveDrawingState(this: *mut core::ffi::c_void, drawingstateblock: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::SaveDrawingState(this, windows_core::from_raw_borrowed(&drawingstateblock)) } - unsafe extern "system" fn RestoreDrawingState(this: *mut core::ffi::c_void, drawingstateblock: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn RestoreDrawingState(this: *mut core::ffi::c_void, drawingstateblock: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::RestoreDrawingState(this, windows_core::from_raw_borrowed(&drawingstateblock)) } - unsafe extern "system" fn PushAxisAlignedClip(this: *mut core::ffi::c_void, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn PushAxisAlignedClip(this: *mut core::ffi::c_void, cliprect: *const Common::D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::PushAxisAlignedClip(this, core::mem::transmute_copy(&cliprect), core::mem::transmute_copy(&antialiasmode)) } - unsafe extern "system" fn PopAxisAlignedClip(this: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn PopAxisAlignedClip(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::PopAxisAlignedClip(this) } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void, clearcolor: *const Common::D2D1_COLOR_F) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void, clearcolor: *const Common::D2D1_COLOR_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::Clear(this, core::mem::transmute_copy(&clearcolor)) } - unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::BeginDraw(this) } - unsafe extern "system" fn EndDraw(this: *mut core::ffi::c_void, tag1: *mut u64, tag2: *mut u64) -> windows_core::HRESULT - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn EndDraw(this: *mut core::ffi::c_void, tag1: *mut u64, tag2: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::EndDraw(this, core::mem::transmute_copy(&tag1), core::mem::transmute_copy(&tag2)).into() } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, result__: *mut Common::D2D1_PIXEL_FORMAT) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, result__: *mut Common::D2D1_PIXEL_FORMAT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1RenderTarget_Impl::GetPixelFormat(this) } - unsafe extern "system" fn SetDpi(this: *mut core::ffi::c_void, dpix: f32, dpiy: f32) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn SetDpi(this: *mut core::ffi::c_void, dpix: f32, dpiy: f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::SetDpi(this, core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy)) } - unsafe extern "system" fn GetDpi(this: *mut core::ffi::c_void, dpix: *mut f32, dpiy: *mut f32) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn GetDpi(this: *mut core::ffi::c_void, dpix: *mut f32, dpiy: *mut f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::GetDpi(this, core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy)) } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_F) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1RenderTarget_Impl::GetSize(this) } - unsafe extern "system" fn GetPixelSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_U) - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn GetPixelSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_U) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1RenderTarget_Impl::GetPixelSize(this) } - unsafe extern "system" fn GetMaximumBitmapSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn GetMaximumBitmapSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::GetMaximumBitmapSize(this) } - unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> super::super::Foundation::BOOL - where - Identity: ID2D1RenderTarget_Impl, - { + unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::IsSupported(this, core::mem::transmute_copy(&rendertargetproperties)) } @@ -5931,19 +4419,13 @@ impl ID2D1RenderTarget_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ID2D1Resource_Impl: Sized { +pub trait ID2D1Resource_Impl: Sized + windows_core::IUnknownImpl { fn GetFactory(&self, factory: *mut Option); } impl windows_core::RuntimeName for ID2D1Resource {} impl ID2D1Resource_Vtbl { - pub const fn new() -> ID2D1Resource_Vtbl - where - Identity: ID2D1Resource_Impl, - { - unsafe extern "system" fn GetFactory(this: *mut core::ffi::c_void, factory: *mut *mut core::ffi::c_void) - where - Identity: ID2D1Resource_Impl, - { + pub const fn new() -> ID2D1Resource_Vtbl { + unsafe extern "system" fn GetFactory(this: *mut core::ffi::c_void, factory: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Resource_Impl::GetFactory(this, core::mem::transmute_copy(&factory)) } @@ -5953,19 +4435,13 @@ impl ID2D1Resource_Vtbl { iid == &::IID } } -pub trait ID2D1ResourceTexture_Impl: Sized { +pub trait ID2D1ResourceTexture_Impl: Sized + windows_core::IUnknownImpl { fn Update(&self, minimumextents: *const u32, maximimumextents: *const u32, strides: *const u32, dimensions: u32, data: *const u8, datacount: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID2D1ResourceTexture {} impl ID2D1ResourceTexture_Vtbl { - pub const fn new() -> ID2D1ResourceTexture_Vtbl - where - Identity: ID2D1ResourceTexture_Impl, - { - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, minimumextents: *const u32, maximimumextents: *const u32, strides: *const u32, dimensions: u32, data: *const u8, datacount: u32) -> windows_core::HRESULT - where - Identity: ID2D1ResourceTexture_Impl, - { + pub const fn new() -> ID2D1ResourceTexture_Vtbl { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, minimumextents: *const u32, maximimumextents: *const u32, strides: *const u32, dimensions: u32, data: *const u8, datacount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ResourceTexture_Impl::Update(this, core::mem::transmute_copy(&minimumextents), core::mem::transmute_copy(&maximimumextents), core::mem::transmute_copy(&strides), core::mem::transmute_copy(&dimensions), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datacount)).into() } @@ -5983,14 +4459,8 @@ pub trait ID2D1RoundedRectangleGeometry_Impl: Sized + ID2D1Geometry_Impl { impl windows_core::RuntimeName for ID2D1RoundedRectangleGeometry {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1RoundedRectangleGeometry_Vtbl { - pub const fn new() -> ID2D1RoundedRectangleGeometry_Vtbl - where - Identity: ID2D1RoundedRectangleGeometry_Impl, - { - unsafe extern "system" fn GetRoundedRect(this: *mut core::ffi::c_void, roundedrect: *mut D2D1_ROUNDED_RECT) - where - Identity: ID2D1RoundedRectangleGeometry_Impl, - { + pub const fn new() -> ID2D1RoundedRectangleGeometry_Vtbl { + unsafe extern "system" fn GetRoundedRect(this: *mut core::ffi::c_void, roundedrect: *mut D2D1_ROUNDED_RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RoundedRectangleGeometry_Impl::GetRoundedRect(this, core::mem::transmute_copy(&roundedrect)) } @@ -6009,21 +4479,12 @@ pub trait ID2D1SolidColorBrush_Impl: Sized + ID2D1Brush_Impl { impl windows_core::RuntimeName for ID2D1SolidColorBrush {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1SolidColorBrush_Vtbl { - pub const fn new() -> ID2D1SolidColorBrush_Vtbl - where - Identity: ID2D1SolidColorBrush_Impl, - { - unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const Common::D2D1_COLOR_F) - where - Identity: ID2D1SolidColorBrush_Impl, - { + pub const fn new() -> ID2D1SolidColorBrush_Vtbl { + unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const Common::D2D1_COLOR_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SolidColorBrush_Impl::SetColor(this, core::mem::transmute_copy(&color)) } - unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, result__: *mut Common::D2D1_COLOR_F) - where - Identity: ID2D1SolidColorBrush_Impl, - { + unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, result__: *mut Common::D2D1_COLOR_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1SolidColorBrush_Impl::GetColor(this) } @@ -6042,21 +4503,12 @@ pub trait ID2D1SourceTransform_Impl: Sized + ID2D1Transform_Impl { impl windows_core::RuntimeName for ID2D1SourceTransform {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1SourceTransform_Vtbl { - pub const fn new() -> ID2D1SourceTransform_Vtbl - where - Identity: ID2D1SourceTransform_Impl, - { - unsafe extern "system" fn SetRenderInfo(this: *mut core::ffi::c_void, renderinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SourceTransform_Impl, - { + pub const fn new() -> ID2D1SourceTransform_Vtbl { + unsafe extern "system" fn SetRenderInfo(this: *mut core::ffi::c_void, renderinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SourceTransform_Impl::SetRenderInfo(this, windows_core::from_raw_borrowed(&renderinfo)).into() } - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, target: *mut core::ffi::c_void, drawrect: *const super::super::Foundation::RECT, targetorigin: Common::D2D_POINT_2U) -> windows_core::HRESULT - where - Identity: ID2D1SourceTransform_Impl, - { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, target: *mut core::ffi::c_void, drawrect: *const super::super::Foundation::RECT, targetorigin: Common::D2D_POINT_2U) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SourceTransform_Impl::Draw(this, windows_core::from_raw_borrowed(&target), core::mem::transmute_copy(&drawrect), core::mem::transmute(&targetorigin)).into() } @@ -6078,42 +4530,24 @@ pub trait ID2D1SpriteBatch_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1SpriteBatch {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1SpriteBatch_Vtbl { - pub const fn new() -> ID2D1SpriteBatch_Vtbl - where - Identity: ID2D1SpriteBatch_Impl, - { - unsafe extern "system" fn AddSprites(this: *mut core::ffi::c_void, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const super::super::super::Foundation::Numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::HRESULT - where - Identity: ID2D1SpriteBatch_Impl, - { + pub const fn new() -> ID2D1SpriteBatch_Vtbl { + unsafe extern "system" fn AddSprites(this: *mut core::ffi::c_void, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const super::super::super::Foundation::Numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SpriteBatch_Impl::AddSprites(this, core::mem::transmute_copy(&spritecount), core::mem::transmute_copy(&destinationrectangles), core::mem::transmute_copy(&sourcerectangles), core::mem::transmute_copy(&colors), core::mem::transmute_copy(&transforms), core::mem::transmute_copy(&destinationrectanglesstride), core::mem::transmute_copy(&sourcerectanglesstride), core::mem::transmute_copy(&colorsstride), core::mem::transmute_copy(&transformsstride)).into() } - unsafe extern "system" fn SetSprites(this: *mut core::ffi::c_void, startindex: u32, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const super::super::super::Foundation::Numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::HRESULT - where - Identity: ID2D1SpriteBatch_Impl, - { + unsafe extern "system" fn SetSprites(this: *mut core::ffi::c_void, startindex: u32, spritecount: u32, destinationrectangles: *const Common::D2D_RECT_F, sourcerectangles: *const Common::D2D_RECT_U, colors: *const Common::D2D1_COLOR_F, transforms: *const super::super::super::Foundation::Numerics::Matrix3x2, destinationrectanglesstride: u32, sourcerectanglesstride: u32, colorsstride: u32, transformsstride: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SpriteBatch_Impl::SetSprites(this, core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&spritecount), core::mem::transmute_copy(&destinationrectangles), core::mem::transmute_copy(&sourcerectangles), core::mem::transmute_copy(&colors), core::mem::transmute_copy(&transforms), core::mem::transmute_copy(&destinationrectanglesstride), core::mem::transmute_copy(&sourcerectanglesstride), core::mem::transmute_copy(&colorsstride), core::mem::transmute_copy(&transformsstride)).into() } - unsafe extern "system" fn GetSprites(this: *mut core::ffi::c_void, startindex: u32, spritecount: u32, destinationrectangles: *mut Common::D2D_RECT_F, sourcerectangles: *mut Common::D2D_RECT_U, colors: *mut Common::D2D1_COLOR_F, transforms: *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT - where - Identity: ID2D1SpriteBatch_Impl, - { + unsafe extern "system" fn GetSprites(this: *mut core::ffi::c_void, startindex: u32, spritecount: u32, destinationrectangles: *mut Common::D2D_RECT_F, sourcerectangles: *mut Common::D2D_RECT_U, colors: *mut Common::D2D1_COLOR_F, transforms: *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SpriteBatch_Impl::GetSprites(this, core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&spritecount), core::mem::transmute_copy(&destinationrectangles), core::mem::transmute_copy(&sourcerectangles), core::mem::transmute_copy(&colors), core::mem::transmute_copy(&transforms)).into() } - unsafe extern "system" fn GetSpriteCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1SpriteBatch_Impl, - { + unsafe extern "system" fn GetSpriteCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SpriteBatch_Impl::GetSpriteCount(this) } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) - where - Identity: ID2D1SpriteBatch_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SpriteBatch_Impl::Clear(this) } @@ -6143,70 +4577,40 @@ pub trait ID2D1StrokeStyle_Impl: Sized + ID2D1Resource_Impl { } impl windows_core::RuntimeName for ID2D1StrokeStyle {} impl ID2D1StrokeStyle_Vtbl { - pub const fn new() -> ID2D1StrokeStyle_Vtbl - where - Identity: ID2D1StrokeStyle_Impl, - { - unsafe extern "system" fn GetStartCap(this: *mut core::ffi::c_void) -> D2D1_CAP_STYLE - where - Identity: ID2D1StrokeStyle_Impl, - { + pub const fn new() -> ID2D1StrokeStyle_Vtbl { + unsafe extern "system" fn GetStartCap(this: *mut core::ffi::c_void) -> D2D1_CAP_STYLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1StrokeStyle_Impl::GetStartCap(this) } - unsafe extern "system" fn GetEndCap(this: *mut core::ffi::c_void) -> D2D1_CAP_STYLE - where - Identity: ID2D1StrokeStyle_Impl, - { + unsafe extern "system" fn GetEndCap(this: *mut core::ffi::c_void) -> D2D1_CAP_STYLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1StrokeStyle_Impl::GetEndCap(this) } - unsafe extern "system" fn GetDashCap(this: *mut core::ffi::c_void) -> D2D1_CAP_STYLE - where - Identity: ID2D1StrokeStyle_Impl, - { + unsafe extern "system" fn GetDashCap(this: *mut core::ffi::c_void) -> D2D1_CAP_STYLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1StrokeStyle_Impl::GetDashCap(this) } - unsafe extern "system" fn GetMiterLimit(this: *mut core::ffi::c_void) -> f32 - where - Identity: ID2D1StrokeStyle_Impl, - { + unsafe extern "system" fn GetMiterLimit(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1StrokeStyle_Impl::GetMiterLimit(this) } - unsafe extern "system" fn GetLineJoin(this: *mut core::ffi::c_void) -> D2D1_LINE_JOIN - where - Identity: ID2D1StrokeStyle_Impl, - { + unsafe extern "system" fn GetLineJoin(this: *mut core::ffi::c_void) -> D2D1_LINE_JOIN { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1StrokeStyle_Impl::GetLineJoin(this) } - unsafe extern "system" fn GetDashOffset(this: *mut core::ffi::c_void) -> f32 - where - Identity: ID2D1StrokeStyle_Impl, - { + unsafe extern "system" fn GetDashOffset(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1StrokeStyle_Impl::GetDashOffset(this) } - unsafe extern "system" fn GetDashStyle(this: *mut core::ffi::c_void) -> D2D1_DASH_STYLE - where - Identity: ID2D1StrokeStyle_Impl, - { + unsafe extern "system" fn GetDashStyle(this: *mut core::ffi::c_void) -> D2D1_DASH_STYLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1StrokeStyle_Impl::GetDashStyle(this) } - unsafe extern "system" fn GetDashesCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1StrokeStyle_Impl, - { + unsafe extern "system" fn GetDashesCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1StrokeStyle_Impl::GetDashesCount(this) } - unsafe extern "system" fn GetDashes(this: *mut core::ffi::c_void, dashes: *mut f32, dashescount: u32) - where - Identity: ID2D1StrokeStyle_Impl, - { + unsafe extern "system" fn GetDashes(this: *mut core::ffi::c_void, dashes: *mut f32, dashescount: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1StrokeStyle_Impl::GetDashes(this, core::mem::transmute_copy(&dashes), core::mem::transmute_copy(&dashescount)) } @@ -6232,14 +4636,8 @@ pub trait ID2D1StrokeStyle1_Impl: Sized + ID2D1StrokeStyle_Impl { } impl windows_core::RuntimeName for ID2D1StrokeStyle1 {} impl ID2D1StrokeStyle1_Vtbl { - pub const fn new() -> ID2D1StrokeStyle1_Vtbl - where - Identity: ID2D1StrokeStyle1_Impl, - { - unsafe extern "system" fn GetStrokeTransformType(this: *mut core::ffi::c_void) -> D2D1_STROKE_TRANSFORM_TYPE - where - Identity: ID2D1StrokeStyle1_Impl, - { + pub const fn new() -> ID2D1StrokeStyle1_Vtbl { + unsafe extern "system" fn GetStrokeTransformType(this: *mut core::ffi::c_void) -> D2D1_STROKE_TRANSFORM_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1StrokeStyle1_Impl::GetStrokeTransformType(this) } @@ -6255,21 +4653,12 @@ pub trait ID2D1SvgAttribute_Impl: Sized + ID2D1Resource_Impl { } impl windows_core::RuntimeName for ID2D1SvgAttribute {} impl ID2D1SvgAttribute_Vtbl { - pub const fn new() -> ID2D1SvgAttribute_Vtbl - where - Identity: ID2D1SvgAttribute_Impl, - { - unsafe extern "system" fn GetElement(this: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) - where - Identity: ID2D1SvgAttribute_Impl, - { + pub const fn new() -> ID2D1SvgAttribute_Vtbl { + unsafe extern "system" fn GetElement(this: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgAttribute_Impl::GetElement(this, core::mem::transmute_copy(&element)) } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, attribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgAttribute_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, attribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgAttribute_Impl::Clone(this) { Ok(ok__) => { @@ -6303,42 +4692,24 @@ pub trait ID2D1SvgDocument_Impl: Sized + ID2D1Resource_Impl { impl windows_core::RuntimeName for ID2D1SvgDocument {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_System_Com"))] impl ID2D1SvgDocument_Vtbl { - pub const fn new() -> ID2D1SvgDocument_Vtbl - where - Identity: ID2D1SvgDocument_Impl, - { - unsafe extern "system" fn SetViewportSize(this: *mut core::ffi::c_void, viewportsize: Common::D2D_SIZE_F) -> windows_core::HRESULT - where - Identity: ID2D1SvgDocument_Impl, - { + pub const fn new() -> ID2D1SvgDocument_Vtbl { + unsafe extern "system" fn SetViewportSize(this: *mut core::ffi::c_void, viewportsize: Common::D2D_SIZE_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgDocument_Impl::SetViewportSize(this, core::mem::transmute(&viewportsize)).into() } - unsafe extern "system" fn GetViewportSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_F) - where - Identity: ID2D1SvgDocument_Impl, - { + unsafe extern "system" fn GetViewportSize(this: *mut core::ffi::c_void, result__: *mut Common::D2D_SIZE_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID2D1SvgDocument_Impl::GetViewportSize(this) } - unsafe extern "system" fn SetRoot(this: *mut core::ffi::c_void, root: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgDocument_Impl, - { + unsafe extern "system" fn SetRoot(this: *mut core::ffi::c_void, root: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgDocument_Impl::SetRoot(this, windows_core::from_raw_borrowed(&root)).into() } - unsafe extern "system" fn GetRoot(this: *mut core::ffi::c_void, root: *mut *mut core::ffi::c_void) - where - Identity: ID2D1SvgDocument_Impl, - { + unsafe extern "system" fn GetRoot(this: *mut core::ffi::c_void, root: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgDocument_Impl::GetRoot(this, core::mem::transmute_copy(&root)) } - unsafe extern "system" fn FindElementById(this: *mut core::ffi::c_void, id: windows_core::PCWSTR, svgelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgDocument_Impl, - { + unsafe extern "system" fn FindElementById(this: *mut core::ffi::c_void, id: windows_core::PCWSTR, svgelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgDocument_Impl::FindElementById(this, core::mem::transmute(&id)) { Ok(ok__) => { @@ -6348,17 +4719,11 @@ impl ID2D1SvgDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, outputxmlstream: *mut core::ffi::c_void, subtree: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgDocument_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, outputxmlstream: *mut core::ffi::c_void, subtree: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgDocument_Impl::Serialize(this, windows_core::from_raw_borrowed(&outputxmlstream), windows_core::from_raw_borrowed(&subtree)).into() } - unsafe extern "system" fn Deserialize(this: *mut core::ffi::c_void, inputxmlstream: *mut core::ffi::c_void, subtree: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgDocument_Impl, - { + unsafe extern "system" fn Deserialize(this: *mut core::ffi::c_void, inputxmlstream: *mut core::ffi::c_void, subtree: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgDocument_Impl::Deserialize(this, windows_core::from_raw_borrowed(&inputxmlstream)) { Ok(ok__) => { @@ -6368,10 +4733,7 @@ impl ID2D1SvgDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePaint(this: *mut core::ffi::c_void, painttype: D2D1_SVG_PAINT_TYPE, color: *const Common::D2D1_COLOR_F, id: windows_core::PCWSTR, paint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgDocument_Impl, - { + unsafe extern "system" fn CreatePaint(this: *mut core::ffi::c_void, painttype: D2D1_SVG_PAINT_TYPE, color: *const Common::D2D1_COLOR_F, id: windows_core::PCWSTR, paint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgDocument_Impl::CreatePaint(this, core::mem::transmute_copy(&painttype), core::mem::transmute_copy(&color), core::mem::transmute(&id)) { Ok(ok__) => { @@ -6381,10 +4743,7 @@ impl ID2D1SvgDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStrokeDashArray(this: *mut core::ffi::c_void, dashes: *const D2D1_SVG_LENGTH, dashescount: u32, strokedasharray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgDocument_Impl, - { + unsafe extern "system" fn CreateStrokeDashArray(this: *mut core::ffi::c_void, dashes: *const D2D1_SVG_LENGTH, dashescount: u32, strokedasharray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgDocument_Impl::CreateStrokeDashArray(this, core::mem::transmute_copy(&dashes), core::mem::transmute_copy(&dashescount)) { Ok(ok__) => { @@ -6394,10 +4753,7 @@ impl ID2D1SvgDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePointCollection(this: *mut core::ffi::c_void, points: *const Common::D2D_POINT_2F, pointscount: u32, pointcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgDocument_Impl, - { + unsafe extern "system" fn CreatePointCollection(this: *mut core::ffi::c_void, points: *const Common::D2D_POINT_2F, pointscount: u32, pointcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgDocument_Impl::CreatePointCollection(this, core::mem::transmute_copy(&points), core::mem::transmute_copy(&pointscount)) { Ok(ok__) => { @@ -6407,10 +4763,7 @@ impl ID2D1SvgDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePathData(this: *mut core::ffi::c_void, segmentdata: *const f32, segmentdatacount: u32, commands: *const D2D1_SVG_PATH_COMMAND, commandscount: u32, pathdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgDocument_Impl, - { + unsafe extern "system" fn CreatePathData(this: *mut core::ffi::c_void, segmentdata: *const f32, segmentdatacount: u32, commands: *const D2D1_SVG_PATH_COMMAND, commandscount: u32, pathdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgDocument_Impl::CreatePathData(this, core::mem::transmute_copy(&segmentdata), core::mem::transmute_copy(&segmentdatacount), core::mem::transmute_copy(&commands), core::mem::transmute_copy(&commandscount)) { Ok(ok__) => { @@ -6473,70 +4826,40 @@ pub trait ID2D1SvgElement_Impl: Sized + ID2D1Resource_Impl { } impl windows_core::RuntimeName for ID2D1SvgElement {} impl ID2D1SvgElement_Vtbl { - pub const fn new() -> ID2D1SvgElement_Vtbl - where - Identity: ID2D1SvgElement_Impl, - { - unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) - where - Identity: ID2D1SvgElement_Impl, - { + pub const fn new() -> ID2D1SvgElement_Vtbl { + unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetDocument(this, core::mem::transmute_copy(&document)) } - unsafe extern "system" fn GetTagName(this: *mut core::ffi::c_void, name: windows_core::PWSTR, namecount: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetTagName(this: *mut core::ffi::c_void, name: windows_core::PWSTR, namecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetTagName(this, core::mem::transmute_copy(&name), core::mem::transmute_copy(&namecount)).into() } - unsafe extern "system" fn GetTagNameLength(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetTagNameLength(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetTagNameLength(this) } - unsafe extern "system" fn IsTextContent(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn IsTextContent(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::IsTextContent(this) } - unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetParent(this, core::mem::transmute_copy(&parent)) } - unsafe extern "system" fn HasChildren(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn HasChildren(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::HasChildren(this) } - unsafe extern "system" fn GetFirstChild(this: *mut core::ffi::c_void, child: *mut *mut core::ffi::c_void) - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetFirstChild(this: *mut core::ffi::c_void, child: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetFirstChild(this, core::mem::transmute_copy(&child)) } - unsafe extern "system" fn GetLastChild(this: *mut core::ffi::c_void, child: *mut *mut core::ffi::c_void) - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetLastChild(this: *mut core::ffi::c_void, child: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetLastChild(this, core::mem::transmute_copy(&child)) } - unsafe extern "system" fn GetPreviousChild(this: *mut core::ffi::c_void, referencechild: *mut core::ffi::c_void, previouschild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetPreviousChild(this: *mut core::ffi::c_void, referencechild: *mut core::ffi::c_void, previouschild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgElement_Impl::GetPreviousChild(this, windows_core::from_raw_borrowed(&referencechild)) { Ok(ok__) => { @@ -6546,10 +4869,7 @@ impl ID2D1SvgElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextChild(this: *mut core::ffi::c_void, referencechild: *mut core::ffi::c_void, nextchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetNextChild(this: *mut core::ffi::c_void, referencechild: *mut core::ffi::c_void, nextchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgElement_Impl::GetNextChild(this, windows_core::from_raw_borrowed(&referencechild)) { Ok(ok__) => { @@ -6559,38 +4879,23 @@ impl ID2D1SvgElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertChildBefore(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, referencechild: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn InsertChildBefore(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, referencechild: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::InsertChildBefore(this, windows_core::from_raw_borrowed(&newchild), windows_core::from_raw_borrowed(&referencechild)).into() } - unsafe extern "system" fn AppendChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn AppendChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::AppendChild(this, windows_core::from_raw_borrowed(&newchild)).into() } - unsafe extern "system" fn ReplaceChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, oldchild: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn ReplaceChild(this: *mut core::ffi::c_void, newchild: *mut core::ffi::c_void, oldchild: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::ReplaceChild(this, windows_core::from_raw_borrowed(&newchild), windows_core::from_raw_borrowed(&oldchild)).into() } - unsafe extern "system" fn RemoveChild(this: *mut core::ffi::c_void, oldchild: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn RemoveChild(this: *mut core::ffi::c_void, oldchild: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::RemoveChild(this, windows_core::from_raw_borrowed(&oldchild)).into() } - unsafe extern "system" fn CreateChild(this: *mut core::ffi::c_void, tagname: windows_core::PCWSTR, newchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn CreateChild(this: *mut core::ffi::c_void, tagname: windows_core::PCWSTR, newchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgElement_Impl::CreateChild(this, core::mem::transmute(&tagname)) { Ok(ok__) => { @@ -6600,108 +4905,63 @@ impl ID2D1SvgElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsAttributeSpecified(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, inherited: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn IsAttributeSpecified(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, inherited: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::IsAttributeSpecified(this, core::mem::transmute(&name), core::mem::transmute_copy(&inherited)) } - unsafe extern "system" fn GetSpecifiedAttributeCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetSpecifiedAttributeCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetSpecifiedAttributeCount(this) } - unsafe extern "system" fn GetSpecifiedAttributeName(this: *mut core::ffi::c_void, index: u32, name: windows_core::PWSTR, namecount: u32, inherited: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetSpecifiedAttributeName(this: *mut core::ffi::c_void, index: u32, name: windows_core::PWSTR, namecount: u32, inherited: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetSpecifiedAttributeName(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&name), core::mem::transmute_copy(&namecount), core::mem::transmute_copy(&inherited)).into() } - unsafe extern "system" fn GetSpecifiedAttributeNameLength(this: *mut core::ffi::c_void, index: u32, namelength: *mut u32, inherited: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetSpecifiedAttributeNameLength(this: *mut core::ffi::c_void, index: u32, namelength: *mut u32, inherited: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetSpecifiedAttributeNameLength(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&namelength), core::mem::transmute_copy(&inherited)).into() } - unsafe extern "system" fn RemoveAttribute(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn RemoveAttribute(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::RemoveAttribute(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn SetTextValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, namecount: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn SetTextValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, namecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::SetTextValue(this, core::mem::transmute(&name), core::mem::transmute_copy(&namecount)).into() } - unsafe extern "system" fn GetTextValue(this: *mut core::ffi::c_void, name: windows_core::PWSTR, namecount: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetTextValue(this: *mut core::ffi::c_void, name: windows_core::PWSTR, namecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetTextValue(this, core::mem::transmute_copy(&name), core::mem::transmute_copy(&namecount)).into() } - unsafe extern "system" fn GetTextValueLength(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetTextValueLength(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetTextValueLength(this) } - unsafe extern "system" fn SetAttributeValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn SetAttributeValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::SetAttributeValue(this, core::mem::transmute(&name), windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn SetAttributeValue2(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_POD_TYPE, value: *const core::ffi::c_void, valuesizeinbytes: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn SetAttributeValue2(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_POD_TYPE, value: *const core::ffi::c_void, valuesizeinbytes: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::SetAttributeValue2(this, core::mem::transmute(&name), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value), core::mem::transmute_copy(&valuesizeinbytes)).into() } - unsafe extern "system" fn SetAttributeValue3(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE, value: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn SetAttributeValue3(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE, value: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::SetAttributeValue3(this, core::mem::transmute(&name), core::mem::transmute_copy(&r#type), core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetAttributeValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, riid: *const windows_core::GUID, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetAttributeValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, riid: *const windows_core::GUID, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetAttributeValue(this, core::mem::transmute(&name), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetAttributeValue2(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_POD_TYPE, value: *mut core::ffi::c_void, valuesizeinbytes: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetAttributeValue2(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_POD_TYPE, value: *mut core::ffi::c_void, valuesizeinbytes: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetAttributeValue2(this, core::mem::transmute(&name), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value), core::mem::transmute_copy(&valuesizeinbytes)).into() } - unsafe extern "system" fn GetAttributeValue3(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE, value: windows_core::PWSTR, valuecount: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetAttributeValue3(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE, value: windows_core::PWSTR, valuecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetAttributeValue3(this, core::mem::transmute(&name), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value), core::mem::transmute_copy(&valuecount)).into() } - unsafe extern "system" fn GetAttributeValueLength(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE, valuelength: *mut u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgElement_Impl, - { + unsafe extern "system" fn GetAttributeValueLength(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE, valuelength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgElement_Impl::GetAttributeValueLength(this, core::mem::transmute(&name), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -6758,42 +5018,24 @@ pub trait ID2D1SvgGlyphStyle_Impl: Sized + ID2D1Resource_Impl { } impl windows_core::RuntimeName for ID2D1SvgGlyphStyle {} impl ID2D1SvgGlyphStyle_Vtbl { - pub const fn new() -> ID2D1SvgGlyphStyle_Vtbl - where - Identity: ID2D1SvgGlyphStyle_Impl, - { - unsafe extern "system" fn SetFill(this: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgGlyphStyle_Impl, - { + pub const fn new() -> ID2D1SvgGlyphStyle_Vtbl { + unsafe extern "system" fn SetFill(this: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgGlyphStyle_Impl::SetFill(this, windows_core::from_raw_borrowed(&brush)).into() } - unsafe extern "system" fn GetFill(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void) - where - Identity: ID2D1SvgGlyphStyle_Impl, - { + unsafe extern "system" fn GetFill(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgGlyphStyle_Impl::GetFill(this, core::mem::transmute_copy(&brush)) } - unsafe extern "system" fn SetStroke(this: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, strokewidth: f32, dashes: *const f32, dashescount: u32, dashoffset: f32) -> windows_core::HRESULT - where - Identity: ID2D1SvgGlyphStyle_Impl, - { + unsafe extern "system" fn SetStroke(this: *mut core::ffi::c_void, brush: *mut core::ffi::c_void, strokewidth: f32, dashes: *const f32, dashescount: u32, dashoffset: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgGlyphStyle_Impl::SetStroke(this, windows_core::from_raw_borrowed(&brush), core::mem::transmute_copy(&strokewidth), core::mem::transmute_copy(&dashes), core::mem::transmute_copy(&dashescount), core::mem::transmute_copy(&dashoffset)).into() } - unsafe extern "system" fn GetStrokeDashesCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1SvgGlyphStyle_Impl, - { + unsafe extern "system" fn GetStrokeDashesCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgGlyphStyle_Impl::GetStrokeDashesCount(this) } - unsafe extern "system" fn GetStroke(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void, strokewidth: *mut f32, dashes: *mut f32, dashescount: u32, dashoffset: *mut f32) - where - Identity: ID2D1SvgGlyphStyle_Impl, - { + unsafe extern "system" fn GetStroke(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void, strokewidth: *mut f32, dashes: *mut f32, dashescount: u32, dashoffset: *mut f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgGlyphStyle_Impl::GetStroke(this, core::mem::transmute_copy(&brush), core::mem::transmute_copy(&strokewidth), core::mem::transmute_copy(&dashes), core::mem::transmute_copy(&dashescount), core::mem::transmute_copy(&dashoffset)) } @@ -6824,56 +5066,32 @@ pub trait ID2D1SvgPaint_Impl: Sized + ID2D1SvgAttribute_Impl { impl windows_core::RuntimeName for ID2D1SvgPaint {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1SvgPaint_Vtbl { - pub const fn new() -> ID2D1SvgPaint_Vtbl - where - Identity: ID2D1SvgPaint_Impl, - { - unsafe extern "system" fn SetPaintType(this: *mut core::ffi::c_void, painttype: D2D1_SVG_PAINT_TYPE) -> windows_core::HRESULT - where - Identity: ID2D1SvgPaint_Impl, - { + pub const fn new() -> ID2D1SvgPaint_Vtbl { + unsafe extern "system" fn SetPaintType(this: *mut core::ffi::c_void, painttype: D2D1_SVG_PAINT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPaint_Impl::SetPaintType(this, core::mem::transmute_copy(&painttype)).into() } - unsafe extern "system" fn GetPaintType(this: *mut core::ffi::c_void) -> D2D1_SVG_PAINT_TYPE - where - Identity: ID2D1SvgPaint_Impl, - { + unsafe extern "system" fn GetPaintType(this: *mut core::ffi::c_void) -> D2D1_SVG_PAINT_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPaint_Impl::GetPaintType(this) } - unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const Common::D2D1_COLOR_F) -> windows_core::HRESULT - where - Identity: ID2D1SvgPaint_Impl, - { + unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const Common::D2D1_COLOR_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPaint_Impl::SetColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, color: *mut Common::D2D1_COLOR_F) - where - Identity: ID2D1SvgPaint_Impl, - { + unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, color: *mut Common::D2D1_COLOR_F) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPaint_Impl::GetColor(this, core::mem::transmute_copy(&color)) } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ID2D1SvgPaint_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPaint_Impl::SetId(this, core::mem::transmute(&id)).into() } - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, id: windows_core::PWSTR, idcount: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgPaint_Impl, - { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, id: windows_core::PWSTR, idcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPaint_Impl::GetId(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&idcount)).into() } - unsafe extern "system" fn GetIdLength(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1SvgPaint_Impl, - { + unsafe extern "system" fn GetIdLength(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPaint_Impl::GetIdLength(this) } @@ -6908,70 +5126,40 @@ pub trait ID2D1SvgPathData_Impl: Sized + ID2D1SvgAttribute_Impl { impl windows_core::RuntimeName for ID2D1SvgPathData {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1SvgPathData_Vtbl { - pub const fn new() -> ID2D1SvgPathData_Vtbl - where - Identity: ID2D1SvgPathData_Impl, - { - unsafe extern "system" fn RemoveSegmentDataAtEnd(this: *mut core::ffi::c_void, datacount: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgPathData_Impl, - { + pub const fn new() -> ID2D1SvgPathData_Vtbl { + unsafe extern "system" fn RemoveSegmentDataAtEnd(this: *mut core::ffi::c_void, datacount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPathData_Impl::RemoveSegmentDataAtEnd(this, core::mem::transmute_copy(&datacount)).into() } - unsafe extern "system" fn UpdateSegmentData(this: *mut core::ffi::c_void, data: *const f32, datacount: u32, startindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgPathData_Impl, - { + unsafe extern "system" fn UpdateSegmentData(this: *mut core::ffi::c_void, data: *const f32, datacount: u32, startindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPathData_Impl::UpdateSegmentData(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&datacount), core::mem::transmute_copy(&startindex)).into() } - unsafe extern "system" fn GetSegmentData(this: *mut core::ffi::c_void, data: *mut f32, datacount: u32, startindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgPathData_Impl, - { + unsafe extern "system" fn GetSegmentData(this: *mut core::ffi::c_void, data: *mut f32, datacount: u32, startindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPathData_Impl::GetSegmentData(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&datacount), core::mem::transmute_copy(&startindex)).into() } - unsafe extern "system" fn GetSegmentDataCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1SvgPathData_Impl, - { + unsafe extern "system" fn GetSegmentDataCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPathData_Impl::GetSegmentDataCount(this) } - unsafe extern "system" fn RemoveCommandsAtEnd(this: *mut core::ffi::c_void, commandscount: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgPathData_Impl, - { + unsafe extern "system" fn RemoveCommandsAtEnd(this: *mut core::ffi::c_void, commandscount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPathData_Impl::RemoveCommandsAtEnd(this, core::mem::transmute_copy(&commandscount)).into() } - unsafe extern "system" fn UpdateCommands(this: *mut core::ffi::c_void, commands: *const D2D1_SVG_PATH_COMMAND, commandscount: u32, startindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgPathData_Impl, - { + unsafe extern "system" fn UpdateCommands(this: *mut core::ffi::c_void, commands: *const D2D1_SVG_PATH_COMMAND, commandscount: u32, startindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPathData_Impl::UpdateCommands(this, core::mem::transmute_copy(&commands), core::mem::transmute_copy(&commandscount), core::mem::transmute_copy(&startindex)).into() } - unsafe extern "system" fn GetCommands(this: *mut core::ffi::c_void, commands: *mut D2D1_SVG_PATH_COMMAND, commandscount: u32, startindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgPathData_Impl, - { + unsafe extern "system" fn GetCommands(this: *mut core::ffi::c_void, commands: *mut D2D1_SVG_PATH_COMMAND, commandscount: u32, startindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPathData_Impl::GetCommands(this, core::mem::transmute_copy(&commands), core::mem::transmute_copy(&commandscount), core::mem::transmute_copy(&startindex)).into() } - unsafe extern "system" fn GetCommandsCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1SvgPathData_Impl, - { + unsafe extern "system" fn GetCommandsCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPathData_Impl::GetCommandsCount(this) } - unsafe extern "system" fn CreatePathGeometry(this: *mut core::ffi::c_void, fillmode: Common::D2D1_FILL_MODE, pathgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1SvgPathData_Impl, - { + unsafe extern "system" fn CreatePathGeometry(this: *mut core::ffi::c_void, fillmode: Common::D2D1_FILL_MODE, pathgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1SvgPathData_Impl::CreatePathGeometry(this, core::mem::transmute_copy(&fillmode)) { Ok(ok__) => { @@ -7009,35 +5197,20 @@ pub trait ID2D1SvgPointCollection_Impl: Sized + ID2D1SvgAttribute_Impl { impl windows_core::RuntimeName for ID2D1SvgPointCollection {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1SvgPointCollection_Vtbl { - pub const fn new() -> ID2D1SvgPointCollection_Vtbl - where - Identity: ID2D1SvgPointCollection_Impl, - { - unsafe extern "system" fn RemovePointsAtEnd(this: *mut core::ffi::c_void, pointscount: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgPointCollection_Impl, - { + pub const fn new() -> ID2D1SvgPointCollection_Vtbl { + unsafe extern "system" fn RemovePointsAtEnd(this: *mut core::ffi::c_void, pointscount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPointCollection_Impl::RemovePointsAtEnd(this, core::mem::transmute_copy(&pointscount)).into() } - unsafe extern "system" fn UpdatePoints(this: *mut core::ffi::c_void, points: *const Common::D2D_POINT_2F, pointscount: u32, startindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgPointCollection_Impl, - { + unsafe extern "system" fn UpdatePoints(this: *mut core::ffi::c_void, points: *const Common::D2D_POINT_2F, pointscount: u32, startindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPointCollection_Impl::UpdatePoints(this, core::mem::transmute_copy(&points), core::mem::transmute_copy(&pointscount), core::mem::transmute_copy(&startindex)).into() } - unsafe extern "system" fn GetPoints(this: *mut core::ffi::c_void, points: *mut Common::D2D_POINT_2F, pointscount: u32, startindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgPointCollection_Impl, - { + unsafe extern "system" fn GetPoints(this: *mut core::ffi::c_void, points: *mut Common::D2D_POINT_2F, pointscount: u32, startindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPointCollection_Impl::GetPoints(this, core::mem::transmute_copy(&points), core::mem::transmute_copy(&pointscount), core::mem::transmute_copy(&startindex)).into() } - unsafe extern "system" fn GetPointsCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1SvgPointCollection_Impl, - { + unsafe extern "system" fn GetPointsCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgPointCollection_Impl::GetPointsCount(this) } @@ -7063,49 +5236,28 @@ pub trait ID2D1SvgStrokeDashArray_Impl: Sized + ID2D1SvgAttribute_Impl { } impl windows_core::RuntimeName for ID2D1SvgStrokeDashArray {} impl ID2D1SvgStrokeDashArray_Vtbl { - pub const fn new() -> ID2D1SvgStrokeDashArray_Vtbl - where - Identity: ID2D1SvgStrokeDashArray_Impl, - { - unsafe extern "system" fn RemoveDashesAtEnd(this: *mut core::ffi::c_void, dashescount: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgStrokeDashArray_Impl, - { + pub const fn new() -> ID2D1SvgStrokeDashArray_Vtbl { + unsafe extern "system" fn RemoveDashesAtEnd(this: *mut core::ffi::c_void, dashescount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgStrokeDashArray_Impl::RemoveDashesAtEnd(this, core::mem::transmute_copy(&dashescount)).into() } - unsafe extern "system" fn UpdateDashes(this: *mut core::ffi::c_void, dashes: *const D2D1_SVG_LENGTH, dashescount: u32, startindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgStrokeDashArray_Impl, - { + unsafe extern "system" fn UpdateDashes(this: *mut core::ffi::c_void, dashes: *const D2D1_SVG_LENGTH, dashescount: u32, startindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgStrokeDashArray_Impl::UpdateDashes(this, core::mem::transmute_copy(&dashes), core::mem::transmute_copy(&dashescount), core::mem::transmute_copy(&startindex)).into() } - unsafe extern "system" fn UpdateDashes2(this: *mut core::ffi::c_void, dashes: *const f32, dashescount: u32, startindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgStrokeDashArray_Impl, - { + unsafe extern "system" fn UpdateDashes2(this: *mut core::ffi::c_void, dashes: *const f32, dashescount: u32, startindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgStrokeDashArray_Impl::UpdateDashes2(this, core::mem::transmute_copy(&dashes), core::mem::transmute_copy(&dashescount), core::mem::transmute_copy(&startindex)).into() } - unsafe extern "system" fn GetDashes(this: *mut core::ffi::c_void, dashes: *mut D2D1_SVG_LENGTH, dashescount: u32, startindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgStrokeDashArray_Impl, - { + unsafe extern "system" fn GetDashes(this: *mut core::ffi::c_void, dashes: *mut D2D1_SVG_LENGTH, dashescount: u32, startindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgStrokeDashArray_Impl::GetDashes(this, core::mem::transmute_copy(&dashes), core::mem::transmute_copy(&dashescount), core::mem::transmute_copy(&startindex)).into() } - unsafe extern "system" fn GetDashes2(this: *mut core::ffi::c_void, dashes: *mut f32, dashescount: u32, startindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1SvgStrokeDashArray_Impl, - { + unsafe extern "system" fn GetDashes2(this: *mut core::ffi::c_void, dashes: *mut f32, dashescount: u32, startindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgStrokeDashArray_Impl::GetDashes2(this, core::mem::transmute_copy(&dashes), core::mem::transmute_copy(&dashescount), core::mem::transmute_copy(&startindex)).into() } - unsafe extern "system" fn GetDashesCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1SvgStrokeDashArray_Impl, - { + unsafe extern "system" fn GetDashesCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgStrokeDashArray_Impl::GetDashesCount(this) } @@ -7124,7 +5276,7 @@ impl ID2D1SvgStrokeDashArray_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] -pub trait ID2D1TessellationSink_Impl: Sized { +pub trait ID2D1TessellationSink_Impl: Sized + windows_core::IUnknownImpl { fn AddTriangles(&self, triangles: *const D2D1_TRIANGLE, trianglescount: u32); fn Close(&self) -> windows_core::Result<()>; } @@ -7132,21 +5284,12 @@ pub trait ID2D1TessellationSink_Impl: Sized { impl windows_core::RuntimeName for ID2D1TessellationSink {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1TessellationSink_Vtbl { - pub const fn new() -> ID2D1TessellationSink_Vtbl - where - Identity: ID2D1TessellationSink_Impl, - { - unsafe extern "system" fn AddTriangles(this: *mut core::ffi::c_void, triangles: *const D2D1_TRIANGLE, trianglescount: u32) - where - Identity: ID2D1TessellationSink_Impl, - { + pub const fn new() -> ID2D1TessellationSink_Vtbl { + unsafe extern "system" fn AddTriangles(this: *mut core::ffi::c_void, triangles: *const D2D1_TRIANGLE, trianglescount: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TessellationSink_Impl::AddTriangles(this, core::mem::transmute_copy(&triangles), core::mem::transmute_copy(&trianglescount)) } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1TessellationSink_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TessellationSink_Impl::Close(this).into() } @@ -7163,28 +5306,16 @@ pub trait ID2D1Transform_Impl: Sized + ID2D1TransformNode_Impl { } impl windows_core::RuntimeName for ID2D1Transform {} impl ID2D1Transform_Vtbl { - pub const fn new() -> ID2D1Transform_Vtbl - where - Identity: ID2D1Transform_Impl, - { - unsafe extern "system" fn MapOutputRectToInputRects(this: *mut core::ffi::c_void, outputrect: *const super::super::Foundation::RECT, inputrects: *mut super::super::Foundation::RECT, inputrectscount: u32) -> windows_core::HRESULT - where - Identity: ID2D1Transform_Impl, - { + pub const fn new() -> ID2D1Transform_Vtbl { + unsafe extern "system" fn MapOutputRectToInputRects(this: *mut core::ffi::c_void, outputrect: *const super::super::Foundation::RECT, inputrects: *mut super::super::Foundation::RECT, inputrectscount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Transform_Impl::MapOutputRectToInputRects(this, core::mem::transmute_copy(&outputrect), core::mem::transmute_copy(&inputrects), core::mem::transmute_copy(&inputrectscount)).into() } - unsafe extern "system" fn MapInputRectsToOutputRect(this: *mut core::ffi::c_void, inputrects: *const super::super::Foundation::RECT, inputopaquesubrects: *const super::super::Foundation::RECT, inputrectcount: u32, outputrect: *mut super::super::Foundation::RECT, outputopaquesubrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ID2D1Transform_Impl, - { + unsafe extern "system" fn MapInputRectsToOutputRect(this: *mut core::ffi::c_void, inputrects: *const super::super::Foundation::RECT, inputopaquesubrects: *const super::super::Foundation::RECT, inputrectcount: u32, outputrect: *mut super::super::Foundation::RECT, outputopaquesubrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Transform_Impl::MapInputRectsToOutputRect(this, core::mem::transmute_copy(&inputrects), core::mem::transmute_copy(&inputopaquesubrects), core::mem::transmute_copy(&inputrectcount), core::mem::transmute_copy(&outputrect), core::mem::transmute_copy(&outputopaquesubrect)).into() } - unsafe extern "system" fn MapInvalidRect(this: *mut core::ffi::c_void, inputindex: u32, invalidinputrect: super::super::Foundation::RECT, invalidoutputrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ID2D1Transform_Impl, - { + unsafe extern "system" fn MapInvalidRect(this: *mut core::ffi::c_void, inputindex: u32, invalidinputrect: super::super::Foundation::RECT, invalidoutputrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Transform_Impl::MapInvalidRect(this, core::mem::transmute_copy(&inputindex), core::mem::transmute(&invalidinputrect)) { Ok(ok__) => { @@ -7205,7 +5336,7 @@ impl ID2D1Transform_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ID2D1TransformGraph_Impl: Sized { +pub trait ID2D1TransformGraph_Impl: Sized + windows_core::IUnknownImpl { fn GetInputCount(&self) -> u32; fn SetSingleTransformNode(&self, node: Option<&ID2D1TransformNode>) -> windows_core::Result<()>; fn AddNode(&self, node: Option<&ID2D1TransformNode>) -> windows_core::Result<()>; @@ -7218,70 +5349,40 @@ pub trait ID2D1TransformGraph_Impl: Sized { } impl windows_core::RuntimeName for ID2D1TransformGraph {} impl ID2D1TransformGraph_Vtbl { - pub const fn new() -> ID2D1TransformGraph_Vtbl - where - Identity: ID2D1TransformGraph_Impl, - { - unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1TransformGraph_Impl, - { + pub const fn new() -> ID2D1TransformGraph_Vtbl { + unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformGraph_Impl::GetInputCount(this) } - unsafe extern "system" fn SetSingleTransformNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1TransformGraph_Impl, - { + unsafe extern "system" fn SetSingleTransformNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformGraph_Impl::SetSingleTransformNode(this, windows_core::from_raw_borrowed(&node)).into() } - unsafe extern "system" fn AddNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1TransformGraph_Impl, - { + unsafe extern "system" fn AddNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformGraph_Impl::AddNode(this, windows_core::from_raw_borrowed(&node)).into() } - unsafe extern "system" fn RemoveNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1TransformGraph_Impl, - { + unsafe extern "system" fn RemoveNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformGraph_Impl::RemoveNode(this, windows_core::from_raw_borrowed(&node)).into() } - unsafe extern "system" fn SetOutputNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1TransformGraph_Impl, - { + unsafe extern "system" fn SetOutputNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformGraph_Impl::SetOutputNode(this, windows_core::from_raw_borrowed(&node)).into() } - unsafe extern "system" fn ConnectNode(this: *mut core::ffi::c_void, fromnode: *mut core::ffi::c_void, tonode: *mut core::ffi::c_void, tonodeinputindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1TransformGraph_Impl, - { + unsafe extern "system" fn ConnectNode(this: *mut core::ffi::c_void, fromnode: *mut core::ffi::c_void, tonode: *mut core::ffi::c_void, tonodeinputindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformGraph_Impl::ConnectNode(this, windows_core::from_raw_borrowed(&fromnode), windows_core::from_raw_borrowed(&tonode), core::mem::transmute_copy(&tonodeinputindex)).into() } - unsafe extern "system" fn ConnectToEffectInput(this: *mut core::ffi::c_void, toeffectinputindex: u32, node: *mut core::ffi::c_void, tonodeinputindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1TransformGraph_Impl, - { + unsafe extern "system" fn ConnectToEffectInput(this: *mut core::ffi::c_void, toeffectinputindex: u32, node: *mut core::ffi::c_void, tonodeinputindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformGraph_Impl::ConnectToEffectInput(this, core::mem::transmute_copy(&toeffectinputindex), windows_core::from_raw_borrowed(&node), core::mem::transmute_copy(&tonodeinputindex)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) - where - Identity: ID2D1TransformGraph_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformGraph_Impl::Clear(this) } - unsafe extern "system" fn SetPassthroughGraph(this: *mut core::ffi::c_void, effectinputindex: u32) -> windows_core::HRESULT - where - Identity: ID2D1TransformGraph_Impl, - { + unsafe extern "system" fn SetPassthroughGraph(this: *mut core::ffi::c_void, effectinputindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformGraph_Impl::SetPassthroughGraph(this, core::mem::transmute_copy(&effectinputindex)).into() } @@ -7302,19 +5403,13 @@ impl ID2D1TransformGraph_Vtbl { iid == &::IID } } -pub trait ID2D1TransformNode_Impl: Sized { +pub trait ID2D1TransformNode_Impl: Sized + windows_core::IUnknownImpl { fn GetInputCount(&self) -> u32; } impl windows_core::RuntimeName for ID2D1TransformNode {} impl ID2D1TransformNode_Vtbl { - pub const fn new() -> ID2D1TransformNode_Vtbl - where - Identity: ID2D1TransformNode_Impl, - { - unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID2D1TransformNode_Impl, - { + pub const fn new() -> ID2D1TransformNode_Vtbl { + unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformNode_Impl::GetInputCount(this) } @@ -7333,21 +5428,12 @@ pub trait ID2D1TransformedGeometry_Impl: Sized + ID2D1Geometry_Impl { impl windows_core::RuntimeName for ID2D1TransformedGeometry {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl ID2D1TransformedGeometry_Vtbl { - pub const fn new() -> ID2D1TransformedGeometry_Vtbl - where - Identity: ID2D1TransformedGeometry_Impl, - { - unsafe extern "system" fn GetSourceGeometry(this: *mut core::ffi::c_void, sourcegeometry: *mut *mut core::ffi::c_void) - where - Identity: ID2D1TransformedGeometry_Impl, - { + pub const fn new() -> ID2D1TransformedGeometry_Vtbl { + unsafe extern "system" fn GetSourceGeometry(this: *mut core::ffi::c_void, sourcegeometry: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformedGeometry_Impl::GetSourceGeometry(this, core::mem::transmute_copy(&sourcegeometry)) } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) - where - Identity: ID2D1TransformedGeometry_Impl, - { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut super::super::super::Foundation::Numerics::Matrix3x2) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformedGeometry_Impl::GetTransform(this, core::mem::transmute_copy(&transform)) } @@ -7367,21 +5453,12 @@ pub trait ID2D1TransformedImageSource_Impl: Sized + ID2D1Image_Impl { } impl windows_core::RuntimeName for ID2D1TransformedImageSource {} impl ID2D1TransformedImageSource_Vtbl { - pub const fn new() -> ID2D1TransformedImageSource_Vtbl - where - Identity: ID2D1TransformedImageSource_Impl, - { - unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, imagesource: *mut *mut core::ffi::c_void) - where - Identity: ID2D1TransformedImageSource_Impl, - { + pub const fn new() -> ID2D1TransformedImageSource_Vtbl { + unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, imagesource: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformedImageSource_Impl::GetSource(this, core::mem::transmute_copy(&imagesource)) } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, properties: *mut D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES) - where - Identity: ID2D1TransformedImageSource_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, properties: *mut D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1TransformedImageSource_Impl::GetProperties(this, core::mem::transmute_copy(&properties)) } @@ -7391,27 +5468,18 @@ impl ID2D1TransformedImageSource_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID2D1VertexBuffer_Impl: Sized { +pub trait ID2D1VertexBuffer_Impl: Sized + windows_core::IUnknownImpl { fn Map(&self, data: *mut *mut u8, buffersize: u32) -> windows_core::Result<()>; fn Unmap(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID2D1VertexBuffer {} impl ID2D1VertexBuffer_Vtbl { - pub const fn new() -> ID2D1VertexBuffer_Vtbl - where - Identity: ID2D1VertexBuffer_Impl, - { - unsafe extern "system" fn Map(this: *mut core::ffi::c_void, data: *mut *mut u8, buffersize: u32) -> windows_core::HRESULT - where - Identity: ID2D1VertexBuffer_Impl, - { + pub const fn new() -> ID2D1VertexBuffer_Vtbl { + unsafe extern "system" fn Map(this: *mut core::ffi::c_void, data: *mut *mut u8, buffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1VertexBuffer_Impl::Map(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&buffersize)).into() } - unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID2D1VertexBuffer_Impl, - { + unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1VertexBuffer_Impl::Unmap(this).into() } 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 9bd5d971de..6b8c635460 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 @@ -1,16 +1,10 @@ -pub trait IDxcAssembler_Impl: Sized { +pub trait IDxcAssembler_Impl: Sized + windows_core::IUnknownImpl { fn AssembleToContainer(&self, pshader: Option<&IDxcBlob>) -> windows_core::Result; } impl windows_core::RuntimeName for IDxcAssembler {} impl IDxcAssembler_Vtbl { - pub const fn new() -> IDxcAssembler_Vtbl - where - Identity: IDxcAssembler_Impl, - { - unsafe extern "system" fn AssembleToContainer(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcAssembler_Impl, - { + pub const fn new() -> IDxcAssembler_Vtbl { + unsafe extern "system" fn AssembleToContainer(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcAssembler_Impl::AssembleToContainer(this, windows_core::from_raw_borrowed(&pshader)) { Ok(ok__) => { @@ -26,27 +20,18 @@ impl IDxcAssembler_Vtbl { iid == &::IID } } -pub trait IDxcBlob_Impl: Sized { +pub trait IDxcBlob_Impl: Sized + windows_core::IUnknownImpl { fn GetBufferPointer(&self) -> *mut core::ffi::c_void; fn GetBufferSize(&self) -> usize; } impl windows_core::RuntimeName for IDxcBlob {} impl IDxcBlob_Vtbl { - pub const fn new() -> IDxcBlob_Vtbl - where - Identity: IDxcBlob_Impl, - { - unsafe extern "system" fn GetBufferPointer(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void - where - Identity: IDxcBlob_Impl, - { + pub const fn new() -> IDxcBlob_Vtbl { + unsafe extern "system" fn GetBufferPointer(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcBlob_Impl::GetBufferPointer(this) } - unsafe extern "system" fn GetBufferSize(this: *mut core::ffi::c_void) -> usize - where - Identity: IDxcBlob_Impl, - { + unsafe extern "system" fn GetBufferSize(this: *mut core::ffi::c_void) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcBlob_Impl::GetBufferSize(this) } @@ -65,14 +50,8 @@ pub trait IDxcBlobEncoding_Impl: Sized + IDxcBlob_Impl { } impl windows_core::RuntimeName for IDxcBlobEncoding {} impl IDxcBlobEncoding_Vtbl { - pub const fn new() -> IDxcBlobEncoding_Vtbl - where - Identity: IDxcBlobEncoding_Impl, - { - unsafe extern "system" fn GetEncoding(this: *mut core::ffi::c_void, pknown: *mut super::super::super::Foundation::BOOL, pcodepage: *mut DXC_CP) -> windows_core::HRESULT - where - Identity: IDxcBlobEncoding_Impl, - { + pub const fn new() -> IDxcBlobEncoding_Vtbl { + unsafe extern "system" fn GetEncoding(this: *mut core::ffi::c_void, pknown: *mut super::super::super::Foundation::BOOL, pcodepage: *mut DXC_CP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcBlobEncoding_Impl::GetEncoding(this, core::mem::transmute_copy(&pknown), core::mem::transmute_copy(&pcodepage)).into() } @@ -88,21 +67,12 @@ pub trait IDxcBlobUtf16_Impl: Sized + IDxcBlobEncoding_Impl { } impl windows_core::RuntimeName for IDxcBlobUtf16 {} impl IDxcBlobUtf16_Vtbl { - pub const fn new() -> IDxcBlobUtf16_Vtbl - where - Identity: IDxcBlobUtf16_Impl, - { - unsafe extern "system" fn GetStringPointer(this: *mut core::ffi::c_void) -> windows_core::PCWSTR - where - Identity: IDxcBlobUtf16_Impl, - { + pub const fn new() -> IDxcBlobUtf16_Vtbl { + unsafe extern "system" fn GetStringPointer(this: *mut core::ffi::c_void) -> windows_core::PCWSTR { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcBlobUtf16_Impl::GetStringPointer(this) } - unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void) -> usize - where - Identity: IDxcBlobUtf16_Impl, - { + unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcBlobUtf16_Impl::GetStringLength(this) } @@ -122,21 +92,12 @@ pub trait IDxcBlobUtf8_Impl: Sized + IDxcBlobEncoding_Impl { } impl windows_core::RuntimeName for IDxcBlobUtf8 {} impl IDxcBlobUtf8_Vtbl { - pub const fn new() -> IDxcBlobUtf8_Vtbl - where - Identity: IDxcBlobUtf8_Impl, - { - unsafe extern "system" fn GetStringPointer(this: *mut core::ffi::c_void) -> windows_core::PCSTR - where - Identity: IDxcBlobUtf8_Impl, - { + pub const fn new() -> IDxcBlobUtf8_Vtbl { + unsafe extern "system" fn GetStringPointer(this: *mut core::ffi::c_void) -> windows_core::PCSTR { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcBlobUtf8_Impl::GetStringPointer(this) } - unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void) -> usize - where - Identity: IDxcBlobUtf8_Impl, - { + unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcBlobUtf8_Impl::GetStringLength(this) } @@ -150,21 +111,15 @@ impl IDxcBlobUtf8_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDxcCompiler_Impl: Sized { +pub trait IDxcCompiler_Impl: Sized + windows_core::IUnknownImpl { fn Compile(&self, psource: Option<&IDxcBlob>, psourcename: &windows_core::PCWSTR, pentrypoint: &windows_core::PCWSTR, ptargetprofile: &windows_core::PCWSTR, parguments: *const windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, pincludehandler: Option<&IDxcIncludeHandler>) -> windows_core::Result; fn Preprocess(&self, psource: Option<&IDxcBlob>, psourcename: &windows_core::PCWSTR, parguments: *const windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, pincludehandler: Option<&IDxcIncludeHandler>) -> windows_core::Result; fn Disassemble(&self, psource: Option<&IDxcBlob>) -> windows_core::Result; } impl windows_core::RuntimeName for IDxcCompiler {} impl IDxcCompiler_Vtbl { - pub const fn new() -> IDxcCompiler_Vtbl - where - Identity: IDxcCompiler_Impl, - { - unsafe extern "system" fn Compile(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, psourcename: windows_core::PCWSTR, pentrypoint: windows_core::PCWSTR, ptargetprofile: windows_core::PCWSTR, parguments: *const windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, pincludehandler: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcCompiler_Impl, - { + pub const fn new() -> IDxcCompiler_Vtbl { + unsafe extern "system" fn Compile(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, psourcename: windows_core::PCWSTR, pentrypoint: windows_core::PCWSTR, ptargetprofile: windows_core::PCWSTR, parguments: *const windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, pincludehandler: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcCompiler_Impl::Compile(this, windows_core::from_raw_borrowed(&psource), core::mem::transmute(&psourcename), core::mem::transmute(&pentrypoint), core::mem::transmute(&ptargetprofile), core::mem::transmute_copy(&parguments), core::mem::transmute_copy(&argcount), core::mem::transmute_copy(&pdefines), core::mem::transmute_copy(&definecount), windows_core::from_raw_borrowed(&pincludehandler)) { Ok(ok__) => { @@ -174,10 +129,7 @@ impl IDxcCompiler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Preprocess(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, psourcename: windows_core::PCWSTR, parguments: *const windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, pincludehandler: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcCompiler_Impl, - { + unsafe extern "system" fn Preprocess(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, psourcename: windows_core::PCWSTR, parguments: *const windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, pincludehandler: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcCompiler_Impl::Preprocess(this, windows_core::from_raw_borrowed(&psource), core::mem::transmute(&psourcename), core::mem::transmute_copy(&parguments), core::mem::transmute_copy(&argcount), core::mem::transmute_copy(&pdefines), core::mem::transmute_copy(&definecount), windows_core::from_raw_borrowed(&pincludehandler)) { Ok(ok__) => { @@ -187,10 +139,7 @@ impl IDxcCompiler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, ppdisassembly: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcCompiler_Impl, - { + unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, ppdisassembly: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcCompiler_Impl::Disassemble(this, windows_core::from_raw_borrowed(&psource)) { Ok(ok__) => { @@ -216,14 +165,8 @@ pub trait IDxcCompiler2_Impl: Sized + IDxcCompiler_Impl { } impl windows_core::RuntimeName for IDxcCompiler2 {} impl IDxcCompiler2_Vtbl { - pub const fn new() -> IDxcCompiler2_Vtbl - where - Identity: IDxcCompiler2_Impl, - { - unsafe extern "system" fn CompileWithDebug(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, psourcename: windows_core::PCWSTR, pentrypoint: windows_core::PCWSTR, ptargetprofile: windows_core::PCWSTR, parguments: *const windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, pincludehandler: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void, ppdebugblobname: *mut windows_core::PWSTR, ppdebugblob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcCompiler2_Impl, - { + pub const fn new() -> IDxcCompiler2_Vtbl { + unsafe extern "system" fn CompileWithDebug(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, psourcename: windows_core::PCWSTR, pentrypoint: windows_core::PCWSTR, ptargetprofile: windows_core::PCWSTR, parguments: *const windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, pincludehandler: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void, ppdebugblobname: *mut windows_core::PWSTR, ppdebugblob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcCompiler2_Impl::CompileWithDebug( this, @@ -248,27 +191,18 @@ impl IDxcCompiler2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDxcCompiler3_Impl: Sized { +pub trait IDxcCompiler3_Impl: Sized + windows_core::IUnknownImpl { fn Compile(&self, psource: *const DxcBuffer, parguments: *const windows_core::PCWSTR, argcount: u32, pincludehandler: Option<&IDxcIncludeHandler>, riid: *const windows_core::GUID, ppresult: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Disassemble(&self, pobject: *const DxcBuffer, riid: *const windows_core::GUID, ppresult: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDxcCompiler3 {} impl IDxcCompiler3_Vtbl { - pub const fn new() -> IDxcCompiler3_Vtbl - where - Identity: IDxcCompiler3_Impl, - { - unsafe extern "system" fn Compile(this: *mut core::ffi::c_void, psource: *const DxcBuffer, parguments: *const windows_core::PCWSTR, argcount: u32, pincludehandler: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcCompiler3_Impl, - { + pub const fn new() -> IDxcCompiler3_Vtbl { + unsafe extern "system" fn Compile(this: *mut core::ffi::c_void, psource: *const DxcBuffer, parguments: *const windows_core::PCWSTR, argcount: u32, pincludehandler: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcCompiler3_Impl::Compile(this, core::mem::transmute_copy(&psource), core::mem::transmute_copy(&parguments), core::mem::transmute_copy(&argcount), windows_core::from_raw_borrowed(&pincludehandler), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppresult)).into() } - unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, pobject: *const DxcBuffer, riid: *const windows_core::GUID, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcCompiler3_Impl, - { + unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, pobject: *const DxcBuffer, riid: *const windows_core::GUID, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcCompiler3_Impl::Disassemble(this, core::mem::transmute_copy(&pobject), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppresult)).into() } @@ -282,7 +216,7 @@ impl IDxcCompiler3_Vtbl { iid == &::IID } } -pub trait IDxcCompilerArgs_Impl: Sized { +pub trait IDxcCompilerArgs_Impl: Sized + windows_core::IUnknownImpl { fn GetArguments(&self) -> *mut windows_core::PCWSTR; fn GetCount(&self) -> u32; fn AddArguments(&self, parguments: *const windows_core::PCWSTR, argcount: u32) -> windows_core::Result<()>; @@ -291,42 +225,24 @@ pub trait IDxcCompilerArgs_Impl: Sized { } impl windows_core::RuntimeName for IDxcCompilerArgs {} impl IDxcCompilerArgs_Vtbl { - pub const fn new() -> IDxcCompilerArgs_Vtbl - where - Identity: IDxcCompilerArgs_Impl, - { - unsafe extern "system" fn GetArguments(this: *mut core::ffi::c_void) -> *mut windows_core::PCWSTR - where - Identity: IDxcCompilerArgs_Impl, - { + pub const fn new() -> IDxcCompilerArgs_Vtbl { + unsafe extern "system" fn GetArguments(this: *mut core::ffi::c_void) -> *mut windows_core::PCWSTR { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcCompilerArgs_Impl::GetArguments(this) } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDxcCompilerArgs_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcCompilerArgs_Impl::GetCount(this) } - unsafe extern "system" fn AddArguments(this: *mut core::ffi::c_void, parguments: *const windows_core::PCWSTR, argcount: u32) -> windows_core::HRESULT - where - Identity: IDxcCompilerArgs_Impl, - { + unsafe extern "system" fn AddArguments(this: *mut core::ffi::c_void, parguments: *const windows_core::PCWSTR, argcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcCompilerArgs_Impl::AddArguments(this, core::mem::transmute_copy(&parguments), core::mem::transmute_copy(&argcount)).into() } - unsafe extern "system" fn AddArgumentsUTF8(this: *mut core::ffi::c_void, parguments: *const windows_core::PCSTR, argcount: u32) -> windows_core::HRESULT - where - Identity: IDxcCompilerArgs_Impl, - { + unsafe extern "system" fn AddArgumentsUTF8(this: *mut core::ffi::c_void, parguments: *const windows_core::PCSTR, argcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcCompilerArgs_Impl::AddArgumentsUTF8(this, core::mem::transmute_copy(&parguments), core::mem::transmute_copy(&argcount)).into() } - unsafe extern "system" fn AddDefines(this: *mut core::ffi::c_void, pdefines: *const DxcDefine, definecount: u32) -> windows_core::HRESULT - where - Identity: IDxcCompilerArgs_Impl, - { + unsafe extern "system" fn AddDefines(this: *mut core::ffi::c_void, pdefines: *const DxcDefine, definecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcCompilerArgs_Impl::AddDefines(this, core::mem::transmute_copy(&pdefines), core::mem::transmute_copy(&definecount)).into() } @@ -343,7 +259,7 @@ impl IDxcCompilerArgs_Vtbl { iid == &::IID } } -pub trait IDxcContainerBuilder_Impl: Sized { +pub trait IDxcContainerBuilder_Impl: Sized + windows_core::IUnknownImpl { fn Load(&self, pdxilcontainerheader: Option<&IDxcBlob>) -> windows_core::Result<()>; fn AddPart(&self, fourcc: u32, psource: Option<&IDxcBlob>) -> windows_core::Result<()>; fn RemovePart(&self, fourcc: u32) -> windows_core::Result<()>; @@ -351,35 +267,20 @@ pub trait IDxcContainerBuilder_Impl: Sized { } impl windows_core::RuntimeName for IDxcContainerBuilder {} impl IDxcContainerBuilder_Vtbl { - pub const fn new() -> IDxcContainerBuilder_Vtbl - where - Identity: IDxcContainerBuilder_Impl, - { - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pdxilcontainerheader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcContainerBuilder_Impl, - { + pub const fn new() -> IDxcContainerBuilder_Vtbl { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pdxilcontainerheader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcContainerBuilder_Impl::Load(this, windows_core::from_raw_borrowed(&pdxilcontainerheader)).into() } - unsafe extern "system" fn AddPart(this: *mut core::ffi::c_void, fourcc: u32, psource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcContainerBuilder_Impl, - { + unsafe extern "system" fn AddPart(this: *mut core::ffi::c_void, fourcc: u32, psource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcContainerBuilder_Impl::AddPart(this, core::mem::transmute_copy(&fourcc), windows_core::from_raw_borrowed(&psource)).into() } - unsafe extern "system" fn RemovePart(this: *mut core::ffi::c_void, fourcc: u32) -> windows_core::HRESULT - where - Identity: IDxcContainerBuilder_Impl, - { + unsafe extern "system" fn RemovePart(this: *mut core::ffi::c_void, fourcc: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcContainerBuilder_Impl::RemovePart(this, core::mem::transmute_copy(&fourcc)).into() } - unsafe extern "system" fn SerializeContainer(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcContainerBuilder_Impl, - { + unsafe extern "system" fn SerializeContainer(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcContainerBuilder_Impl::SerializeContainer(this) { Ok(ok__) => { @@ -401,7 +302,7 @@ impl IDxcContainerBuilder_Vtbl { iid == &::IID } } -pub trait IDxcContainerReflection_Impl: Sized { +pub trait IDxcContainerReflection_Impl: Sized + windows_core::IUnknownImpl { fn Load(&self, pcontainer: Option<&IDxcBlob>) -> windows_core::Result<()>; fn GetPartCount(&self) -> windows_core::Result; fn GetPartKind(&self, idx: u32) -> windows_core::Result; @@ -411,21 +312,12 @@ pub trait IDxcContainerReflection_Impl: Sized { } impl windows_core::RuntimeName for IDxcContainerReflection {} impl IDxcContainerReflection_Vtbl { - pub const fn new() -> IDxcContainerReflection_Vtbl - where - Identity: IDxcContainerReflection_Impl, - { - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pcontainer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcContainerReflection_Impl, - { + pub const fn new() -> IDxcContainerReflection_Vtbl { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pcontainer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcContainerReflection_Impl::Load(this, windows_core::from_raw_borrowed(&pcontainer)).into() } - unsafe extern "system" fn GetPartCount(this: *mut core::ffi::c_void, presult: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcContainerReflection_Impl, - { + unsafe extern "system" fn GetPartCount(this: *mut core::ffi::c_void, presult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcContainerReflection_Impl::GetPartCount(this) { Ok(ok__) => { @@ -435,10 +327,7 @@ impl IDxcContainerReflection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPartKind(this: *mut core::ffi::c_void, idx: u32, presult: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcContainerReflection_Impl, - { + unsafe extern "system" fn GetPartKind(this: *mut core::ffi::c_void, idx: u32, presult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcContainerReflection_Impl::GetPartKind(this, core::mem::transmute_copy(&idx)) { Ok(ok__) => { @@ -448,10 +337,7 @@ impl IDxcContainerReflection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPartContent(this: *mut core::ffi::c_void, idx: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcContainerReflection_Impl, - { + unsafe extern "system" fn GetPartContent(this: *mut core::ffi::c_void, idx: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcContainerReflection_Impl::GetPartContent(this, core::mem::transmute_copy(&idx)) { Ok(ok__) => { @@ -461,10 +347,7 @@ impl IDxcContainerReflection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstPartKind(this: *mut core::ffi::c_void, kind: u32, presult: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcContainerReflection_Impl, - { + unsafe extern "system" fn FindFirstPartKind(this: *mut core::ffi::c_void, kind: u32, presult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcContainerReflection_Impl::FindFirstPartKind(this, core::mem::transmute_copy(&kind)) { Ok(ok__) => { @@ -474,10 +357,7 @@ impl IDxcContainerReflection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPartReflection(this: *mut core::ffi::c_void, idx: u32, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcContainerReflection_Impl, - { + unsafe extern "system" fn GetPartReflection(this: *mut core::ffi::c_void, idx: u32, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcContainerReflection_Impl::GetPartReflection(this, core::mem::transmute_copy(&idx), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppvobject)).into() } @@ -495,27 +375,18 @@ impl IDxcContainerReflection_Vtbl { iid == &::IID } } -pub trait IDxcExtraOutputs_Impl: Sized { +pub trait IDxcExtraOutputs_Impl: Sized + windows_core::IUnknownImpl { fn GetOutputCount(&self) -> u32; fn GetOutput(&self, uindex: u32, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void, ppoutputtype: *mut Option, ppoutputname: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDxcExtraOutputs {} impl IDxcExtraOutputs_Vtbl { - pub const fn new() -> IDxcExtraOutputs_Vtbl - where - Identity: IDxcExtraOutputs_Impl, - { - unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDxcExtraOutputs_Impl, - { + pub const fn new() -> IDxcExtraOutputs_Vtbl { + unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcExtraOutputs_Impl::GetOutputCount(this) } - unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, uindex: u32, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void, ppoutputtype: *mut *mut core::ffi::c_void, ppoutputname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcExtraOutputs_Impl, - { + unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, uindex: u32, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void, ppoutputtype: *mut *mut core::ffi::c_void, ppoutputname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcExtraOutputs_Impl::GetOutput(this, core::mem::transmute_copy(&uindex), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppvobject), core::mem::transmute_copy(&ppoutputtype), core::mem::transmute_copy(&ppoutputname)).into() } @@ -529,19 +400,13 @@ impl IDxcExtraOutputs_Vtbl { iid == &::IID } } -pub trait IDxcIncludeHandler_Impl: Sized { +pub trait IDxcIncludeHandler_Impl: Sized + windows_core::IUnknownImpl { fn LoadSource(&self, pfilename: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IDxcIncludeHandler {} impl IDxcIncludeHandler_Vtbl { - pub const fn new() -> IDxcIncludeHandler_Vtbl - where - Identity: IDxcIncludeHandler_Impl, - { - unsafe extern "system" fn LoadSource(this: *mut core::ffi::c_void, pfilename: windows_core::PCWSTR, ppincludesource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcIncludeHandler_Impl, - { + pub const fn new() -> IDxcIncludeHandler_Vtbl { + unsafe extern "system" fn LoadSource(this: *mut core::ffi::c_void, pfilename: windows_core::PCWSTR, ppincludesource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcIncludeHandler_Impl::LoadSource(this, core::mem::transmute(&pfilename)) { Ok(ok__) => { @@ -558,7 +423,7 @@ impl IDxcIncludeHandler_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDxcLibrary_Impl: Sized { +pub trait IDxcLibrary_Impl: Sized + windows_core::IUnknownImpl { fn SetMalloc(&self, pmalloc: Option<&super::super::super::System::Com::IMalloc>) -> windows_core::Result<()>; fn CreateBlobFromBlob(&self, pblob: Option<&IDxcBlob>, offset: u32, length: u32) -> windows_core::Result; fn CreateBlobFromFile(&self, pfilename: &windows_core::PCWSTR, codepage: *const DXC_CP) -> windows_core::Result; @@ -574,21 +439,12 @@ pub trait IDxcLibrary_Impl: Sized { impl windows_core::RuntimeName for IDxcLibrary {} #[cfg(feature = "Win32_System_Com")] impl IDxcLibrary_Vtbl { - pub const fn new() -> IDxcLibrary_Vtbl - where - Identity: IDxcLibrary_Impl, - { - unsafe extern "system" fn SetMalloc(this: *mut core::ffi::c_void, pmalloc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLibrary_Impl, - { + pub const fn new() -> IDxcLibrary_Vtbl { + unsafe extern "system" fn SetMalloc(this: *mut core::ffi::c_void, pmalloc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcLibrary_Impl::SetMalloc(this, windows_core::from_raw_borrowed(&pmalloc)).into() } - unsafe extern "system" fn CreateBlobFromBlob(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, offset: u32, length: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLibrary_Impl, - { + unsafe extern "system" fn CreateBlobFromBlob(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, offset: u32, length: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcLibrary_Impl::CreateBlobFromBlob(this, windows_core::from_raw_borrowed(&pblob), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&length)) { Ok(ok__) => { @@ -598,10 +454,7 @@ impl IDxcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBlobFromFile(this: *mut core::ffi::c_void, pfilename: windows_core::PCWSTR, codepage: *const DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLibrary_Impl, - { + unsafe extern "system" fn CreateBlobFromFile(this: *mut core::ffi::c_void, pfilename: windows_core::PCWSTR, codepage: *const DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcLibrary_Impl::CreateBlobFromFile(this, core::mem::transmute(&pfilename), core::mem::transmute_copy(&codepage)) { Ok(ok__) => { @@ -611,10 +464,7 @@ impl IDxcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBlobWithEncodingFromPinned(this: *mut core::ffi::c_void, ptext: *const core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLibrary_Impl, - { + unsafe extern "system" fn CreateBlobWithEncodingFromPinned(this: *mut core::ffi::c_void, ptext: *const core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcLibrary_Impl::CreateBlobWithEncodingFromPinned(this, core::mem::transmute_copy(&ptext), core::mem::transmute_copy(&size), core::mem::transmute_copy(&codepage)) { Ok(ok__) => { @@ -624,10 +474,7 @@ impl IDxcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBlobWithEncodingOnHeapCopy(this: *mut core::ffi::c_void, ptext: *const core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLibrary_Impl, - { + unsafe extern "system" fn CreateBlobWithEncodingOnHeapCopy(this: *mut core::ffi::c_void, ptext: *const core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcLibrary_Impl::CreateBlobWithEncodingOnHeapCopy(this, core::mem::transmute_copy(&ptext), core::mem::transmute_copy(&size), core::mem::transmute_copy(&codepage)) { Ok(ok__) => { @@ -637,10 +484,7 @@ impl IDxcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBlobWithEncodingOnMalloc(this: *mut core::ffi::c_void, ptext: *const core::ffi::c_void, pimalloc: *mut core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLibrary_Impl, - { + unsafe extern "system" fn CreateBlobWithEncodingOnMalloc(this: *mut core::ffi::c_void, ptext: *const core::ffi::c_void, pimalloc: *mut core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcLibrary_Impl::CreateBlobWithEncodingOnMalloc(this, core::mem::transmute_copy(&ptext), windows_core::from_raw_borrowed(&pimalloc), core::mem::transmute_copy(&size), core::mem::transmute_copy(&codepage)) { Ok(ok__) => { @@ -650,10 +494,7 @@ impl IDxcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateIncludeHandler(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLibrary_Impl, - { + unsafe extern "system" fn CreateIncludeHandler(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcLibrary_Impl::CreateIncludeHandler(this) { Ok(ok__) => { @@ -663,10 +504,7 @@ impl IDxcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStreamFromBlobReadOnly(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLibrary_Impl, - { + unsafe extern "system" fn CreateStreamFromBlobReadOnly(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcLibrary_Impl::CreateStreamFromBlobReadOnly(this, windows_core::from_raw_borrowed(&pblob)) { Ok(ok__) => { @@ -676,10 +514,7 @@ impl IDxcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBlobAsUtf8(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLibrary_Impl, - { + unsafe extern "system" fn GetBlobAsUtf8(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcLibrary_Impl::GetBlobAsUtf8(this, windows_core::from_raw_borrowed(&pblob)) { Ok(ok__) => { @@ -689,10 +524,7 @@ impl IDxcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBlobAsUtf16(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLibrary_Impl, - { + unsafe extern "system" fn GetBlobAsUtf16(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcLibrary_Impl::GetBlobAsUtf16(this, windows_core::from_raw_borrowed(&pblob)) { Ok(ok__) => { @@ -720,27 +552,18 @@ impl IDxcLibrary_Vtbl { iid == &::IID } } -pub trait IDxcLinker_Impl: Sized { +pub trait IDxcLinker_Impl: Sized + windows_core::IUnknownImpl { fn RegisterLibrary(&self, plibname: &windows_core::PCWSTR, plib: Option<&IDxcBlob>) -> windows_core::Result<()>; fn Link(&self, pentryname: &windows_core::PCWSTR, ptargetprofile: &windows_core::PCWSTR, plibnames: *const windows_core::PCWSTR, libcount: u32, parguments: *const windows_core::PCWSTR, argcount: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IDxcLinker {} impl IDxcLinker_Vtbl { - pub const fn new() -> IDxcLinker_Vtbl - where - Identity: IDxcLinker_Impl, - { - unsafe extern "system" fn RegisterLibrary(this: *mut core::ffi::c_void, plibname: windows_core::PCWSTR, plib: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLinker_Impl, - { + pub const fn new() -> IDxcLinker_Vtbl { + unsafe extern "system" fn RegisterLibrary(this: *mut core::ffi::c_void, plibname: windows_core::PCWSTR, plib: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcLinker_Impl::RegisterLibrary(this, core::mem::transmute(&plibname), windows_core::from_raw_borrowed(&plib)).into() } - unsafe extern "system" fn Link(this: *mut core::ffi::c_void, pentryname: windows_core::PCWSTR, ptargetprofile: windows_core::PCWSTR, plibnames: *const windows_core::PCWSTR, libcount: u32, parguments: *const windows_core::PCWSTR, argcount: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcLinker_Impl, - { + unsafe extern "system" fn Link(this: *mut core::ffi::c_void, pentryname: windows_core::PCWSTR, ptargetprofile: windows_core::PCWSTR, plibnames: *const windows_core::PCWSTR, libcount: u32, parguments: *const windows_core::PCWSTR, argcount: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcLinker_Impl::Link(this, core::mem::transmute(&pentryname), core::mem::transmute(&ptargetprofile), core::mem::transmute_copy(&plibnames), core::mem::transmute_copy(&libcount), core::mem::transmute_copy(&parguments), core::mem::transmute_copy(&argcount)) { Ok(ok__) => { @@ -760,21 +583,15 @@ impl IDxcLinker_Vtbl { iid == &::IID } } -pub trait IDxcOperationResult_Impl: Sized { +pub trait IDxcOperationResult_Impl: Sized + windows_core::IUnknownImpl { fn GetStatus(&self) -> windows_core::Result; fn GetResult(&self) -> windows_core::Result; fn GetErrorBuffer(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDxcOperationResult {} impl IDxcOperationResult_Vtbl { - pub const fn new() -> IDxcOperationResult_Vtbl - where - Identity: IDxcOperationResult_Impl, - { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IDxcOperationResult_Impl, - { + pub const fn new() -> IDxcOperationResult_Vtbl { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcOperationResult_Impl::GetStatus(this) { Ok(ok__) => { @@ -784,10 +601,7 @@ impl IDxcOperationResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcOperationResult_Impl, - { + unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcOperationResult_Impl::GetResult(this) { Ok(ok__) => { @@ -797,10 +611,7 @@ impl IDxcOperationResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorBuffer(this: *mut core::ffi::c_void, pperrors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcOperationResult_Impl, - { + unsafe extern "system" fn GetErrorBuffer(this: *mut core::ffi::c_void, pperrors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcOperationResult_Impl::GetErrorBuffer(this) { Ok(ok__) => { @@ -821,21 +632,15 @@ impl IDxcOperationResult_Vtbl { iid == &::IID } } -pub trait IDxcOptimizer_Impl: Sized { +pub trait IDxcOptimizer_Impl: Sized + windows_core::IUnknownImpl { fn GetAvailablePassCount(&self) -> windows_core::Result; fn GetAvailablePass(&self, index: u32) -> windows_core::Result; fn RunOptimizer(&self, pblob: Option<&IDxcBlob>, ppoptions: *const windows_core::PCWSTR, optioncount: u32, poutputmodule: *mut Option, ppoutputtext: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDxcOptimizer {} impl IDxcOptimizer_Vtbl { - pub const fn new() -> IDxcOptimizer_Vtbl - where - Identity: IDxcOptimizer_Impl, - { - unsafe extern "system" fn GetAvailablePassCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcOptimizer_Impl, - { + pub const fn new() -> IDxcOptimizer_Vtbl { + unsafe extern "system" fn GetAvailablePassCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcOptimizer_Impl::GetAvailablePassCount(this) { Ok(ok__) => { @@ -845,10 +650,7 @@ impl IDxcOptimizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAvailablePass(this: *mut core::ffi::c_void, index: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcOptimizer_Impl, - { + unsafe extern "system" fn GetAvailablePass(this: *mut core::ffi::c_void, index: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcOptimizer_Impl::GetAvailablePass(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -858,10 +660,7 @@ impl IDxcOptimizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RunOptimizer(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, ppoptions: *const windows_core::PCWSTR, optioncount: u32, poutputmodule: *mut *mut core::ffi::c_void, ppoutputtext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcOptimizer_Impl, - { + unsafe extern "system" fn RunOptimizer(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, ppoptions: *const windows_core::PCWSTR, optioncount: u32, poutputmodule: *mut *mut core::ffi::c_void, ppoutputtext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcOptimizer_Impl::RunOptimizer(this, windows_core::from_raw_borrowed(&pblob), core::mem::transmute_copy(&ppoptions), core::mem::transmute_copy(&optioncount), core::mem::transmute_copy(&poutputmodule), core::mem::transmute_copy(&ppoutputtext)).into() } @@ -876,7 +675,7 @@ impl IDxcOptimizer_Vtbl { iid == &::IID } } -pub trait IDxcOptimizerPass_Impl: Sized { +pub trait IDxcOptimizerPass_Impl: Sized + windows_core::IUnknownImpl { fn GetOptionName(&self) -> windows_core::Result; fn GetDescription(&self) -> windows_core::Result; fn GetOptionArgCount(&self) -> windows_core::Result; @@ -885,14 +684,8 @@ pub trait IDxcOptimizerPass_Impl: Sized { } impl windows_core::RuntimeName for IDxcOptimizerPass {} impl IDxcOptimizerPass_Vtbl { - pub const fn new() -> IDxcOptimizerPass_Vtbl - where - Identity: IDxcOptimizerPass_Impl, - { - unsafe extern "system" fn GetOptionName(this: *mut core::ffi::c_void, ppresult: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDxcOptimizerPass_Impl, - { + pub const fn new() -> IDxcOptimizerPass_Vtbl { + unsafe extern "system" fn GetOptionName(this: *mut core::ffi::c_void, ppresult: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcOptimizerPass_Impl::GetOptionName(this) { Ok(ok__) => { @@ -902,10 +695,7 @@ impl IDxcOptimizerPass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, ppresult: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDxcOptimizerPass_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, ppresult: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcOptimizerPass_Impl::GetDescription(this) { Ok(ok__) => { @@ -915,10 +705,7 @@ impl IDxcOptimizerPass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOptionArgCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcOptimizerPass_Impl, - { + unsafe extern "system" fn GetOptionArgCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcOptimizerPass_Impl::GetOptionArgCount(this) { Ok(ok__) => { @@ -928,10 +715,7 @@ impl IDxcOptimizerPass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOptionArgName(this: *mut core::ffi::c_void, argindex: u32, ppresult: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDxcOptimizerPass_Impl, - { + unsafe extern "system" fn GetOptionArgName(this: *mut core::ffi::c_void, argindex: u32, ppresult: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcOptimizerPass_Impl::GetOptionArgName(this, core::mem::transmute_copy(&argindex)) { Ok(ok__) => { @@ -941,10 +725,7 @@ impl IDxcOptimizerPass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOptionArgDescription(this: *mut core::ffi::c_void, argindex: u32, ppresult: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDxcOptimizerPass_Impl, - { + unsafe extern "system" fn GetOptionArgDescription(this: *mut core::ffi::c_void, argindex: u32, ppresult: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcOptimizerPass_Impl::GetOptionArgDescription(this, core::mem::transmute_copy(&argindex)) { Ok(ok__) => { @@ -967,7 +748,7 @@ impl IDxcOptimizerPass_Vtbl { iid == &::IID } } -pub trait IDxcPdbUtils_Impl: Sized { +pub trait IDxcPdbUtils_Impl: Sized + windows_core::IUnknownImpl { fn Load(&self, ppdbordxil: Option<&IDxcBlob>) -> windows_core::Result<()>; fn GetSourceCount(&self) -> windows_core::Result; fn GetSource(&self, uindex: u32) -> windows_core::Result; @@ -995,21 +776,12 @@ pub trait IDxcPdbUtils_Impl: Sized { } impl windows_core::RuntimeName for IDxcPdbUtils {} impl IDxcPdbUtils_Vtbl { - pub const fn new() -> IDxcPdbUtils_Vtbl - where - Identity: IDxcPdbUtils_Impl, - { - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ppdbordxil: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + pub const fn new() -> IDxcPdbUtils_Vtbl { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ppdbordxil: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcPdbUtils_Impl::Load(this, windows_core::from_raw_borrowed(&ppdbordxil)).into() } - unsafe extern "system" fn GetSourceCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetSourceCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetSourceCount(this) { Ok(ok__) => { @@ -1019,10 +791,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, uindex: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, uindex: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetSource(this, core::mem::transmute_copy(&uindex)) { Ok(ok__) => { @@ -1032,10 +801,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceName(this: *mut core::ffi::c_void, uindex: u32, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetSourceName(this: *mut core::ffi::c_void, uindex: u32, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetSourceName(this, core::mem::transmute_copy(&uindex)) { Ok(ok__) => { @@ -1045,10 +811,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlagCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetFlagCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetFlagCount(this) { Ok(ok__) => { @@ -1058,10 +821,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlag(this: *mut core::ffi::c_void, uindex: u32, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetFlag(this: *mut core::ffi::c_void, uindex: u32, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetFlag(this, core::mem::transmute_copy(&uindex)) { Ok(ok__) => { @@ -1071,10 +831,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetArgCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetArgCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetArgCount(this) { Ok(ok__) => { @@ -1084,10 +841,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetArg(this: *mut core::ffi::c_void, uindex: u32, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetArg(this: *mut core::ffi::c_void, uindex: u32, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetArg(this, core::mem::transmute_copy(&uindex)) { Ok(ok__) => { @@ -1097,10 +851,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetArgPairCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetArgPairCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetArgPairCount(this) { Ok(ok__) => { @@ -1110,17 +861,11 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetArgPair(this: *mut core::ffi::c_void, uindex: u32, pname: *mut core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetArgPair(this: *mut core::ffi::c_void, uindex: u32, pname: *mut core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcPdbUtils_Impl::GetArgPair(this, core::mem::transmute_copy(&uindex), core::mem::transmute_copy(&pname), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetDefineCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetDefineCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetDefineCount(this) { Ok(ok__) => { @@ -1130,10 +875,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefine(this: *mut core::ffi::c_void, uindex: u32, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetDefine(this: *mut core::ffi::c_void, uindex: u32, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetDefine(this, core::mem::transmute_copy(&uindex)) { Ok(ok__) => { @@ -1143,10 +885,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTargetProfile(this: *mut core::ffi::c_void, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetTargetProfile(this: *mut core::ffi::c_void, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetTargetProfile(this) { Ok(ok__) => { @@ -1156,10 +895,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEntryPoint(this: *mut core::ffi::c_void, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetEntryPoint(this: *mut core::ffi::c_void, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetEntryPoint(this) { Ok(ok__) => { @@ -1169,10 +905,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMainFileName(this: *mut core::ffi::c_void, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetMainFileName(this: *mut core::ffi::c_void, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetMainFileName(this) { Ok(ok__) => { @@ -1182,10 +915,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHash(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetHash(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetHash(this) { Ok(ok__) => { @@ -1195,10 +925,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetName(this) { Ok(ok__) => { @@ -1208,17 +935,11 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFullPDB(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn IsFullPDB(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcPdbUtils_Impl::IsFullPDB(this) } - unsafe extern "system" fn GetFullPDB(this: *mut core::ffi::c_void, ppfullpdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetFullPDB(this: *mut core::ffi::c_void, ppfullpdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetFullPDB(this) { Ok(ok__) => { @@ -1228,10 +949,7 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersionInfo(this: *mut core::ffi::c_void, ppversioninfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn GetVersionInfo(this: *mut core::ffi::c_void, ppversioninfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::GetVersionInfo(this) { Ok(ok__) => { @@ -1241,17 +959,11 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCompiler(this: *mut core::ffi::c_void, pcompiler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn SetCompiler(this: *mut core::ffi::c_void, pcompiler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcPdbUtils_Impl::SetCompiler(this, windows_core::from_raw_borrowed(&pcompiler)).into() } - unsafe extern "system" fn CompileForFullPDB(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn CompileForFullPDB(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcPdbUtils_Impl::CompileForFullPDB(this) { Ok(ok__) => { @@ -1261,17 +973,11 @@ impl IDxcPdbUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OverrideArgs(this: *mut core::ffi::c_void, pargpairs: *const DxcArgPair, unumargpairs: u32) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn OverrideArgs(this: *mut core::ffi::c_void, pargpairs: *const DxcArgPair, unumargpairs: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcPdbUtils_Impl::OverrideArgs(this, core::mem::transmute_copy(&pargpairs), core::mem::transmute_copy(&unumargpairs)).into() } - unsafe extern "system" fn OverrideRootSignature(this: *mut core::ffi::c_void, prootsignature: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDxcPdbUtils_Impl, - { + unsafe extern "system" fn OverrideRootSignature(this: *mut core::ffi::c_void, prootsignature: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcPdbUtils_Impl::OverrideRootSignature(this, core::mem::transmute(&prootsignature)).into() } @@ -1316,42 +1022,24 @@ pub trait IDxcResult_Impl: Sized + IDxcOperationResult_Impl { } impl windows_core::RuntimeName for IDxcResult {} impl IDxcResult_Vtbl { - pub const fn new() -> IDxcResult_Vtbl - where - Identity: IDxcResult_Impl, - { - unsafe extern "system" fn HasOutput(this: *mut core::ffi::c_void, dxcoutkind: DXC_OUT_KIND) -> super::super::super::Foundation::BOOL - where - Identity: IDxcResult_Impl, - { + pub const fn new() -> IDxcResult_Vtbl { + unsafe extern "system" fn HasOutput(this: *mut core::ffi::c_void, dxcoutkind: DXC_OUT_KIND) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcResult_Impl::HasOutput(this, core::mem::transmute_copy(&dxcoutkind)) } - unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, dxcoutkind: DXC_OUT_KIND, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void, ppoutputname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcResult_Impl, - { + unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, dxcoutkind: DXC_OUT_KIND, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void, ppoutputname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcResult_Impl::GetOutput(this, core::mem::transmute_copy(&dxcoutkind), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppvobject), core::mem::transmute_copy(&ppoutputname)).into() } - unsafe extern "system" fn GetNumOutputs(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDxcResult_Impl, - { + unsafe extern "system" fn GetNumOutputs(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcResult_Impl::GetNumOutputs(this) } - unsafe extern "system" fn GetOutputByIndex(this: *mut core::ffi::c_void, index: u32) -> DXC_OUT_KIND - where - Identity: IDxcResult_Impl, - { + unsafe extern "system" fn GetOutputByIndex(this: *mut core::ffi::c_void, index: u32) -> DXC_OUT_KIND { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcResult_Impl::GetOutputByIndex(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn PrimaryOutput(this: *mut core::ffi::c_void) -> DXC_OUT_KIND - where - Identity: IDxcResult_Impl, - { + unsafe extern "system" fn PrimaryOutput(this: *mut core::ffi::c_void) -> DXC_OUT_KIND { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcResult_Impl::PrimaryOutput(this) } @@ -1369,7 +1057,7 @@ impl IDxcResult_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDxcUtils_Impl: Sized { +pub trait IDxcUtils_Impl: Sized + windows_core::IUnknownImpl { fn CreateBlobFromBlob(&self, pblob: Option<&IDxcBlob>, offset: u32, length: u32) -> windows_core::Result; fn CreateBlobFromPinned(&self, pdata: *const core::ffi::c_void, size: u32, codepage: DXC_CP) -> windows_core::Result; fn MoveToBlob(&self, pdata: *const core::ffi::c_void, pimalloc: Option<&super::super::super::System::Com::IMalloc>, size: u32, codepage: DXC_CP) -> windows_core::Result; @@ -1388,14 +1076,8 @@ pub trait IDxcUtils_Impl: Sized { impl windows_core::RuntimeName for IDxcUtils {} #[cfg(feature = "Win32_System_Com")] impl IDxcUtils_Vtbl { - pub const fn new() -> IDxcUtils_Vtbl - where - Identity: IDxcUtils_Impl, - { - unsafe extern "system" fn CreateBlobFromBlob(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, offset: u32, length: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + pub const fn new() -> IDxcUtils_Vtbl { + unsafe extern "system" fn CreateBlobFromBlob(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, offset: u32, length: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcUtils_Impl::CreateBlobFromBlob(this, windows_core::from_raw_borrowed(&pblob), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&length)) { Ok(ok__) => { @@ -1405,10 +1087,7 @@ impl IDxcUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBlobFromPinned(this: *mut core::ffi::c_void, pdata: *const core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn CreateBlobFromPinned(this: *mut core::ffi::c_void, pdata: *const core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcUtils_Impl::CreateBlobFromPinned(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size), core::mem::transmute_copy(&codepage)) { Ok(ok__) => { @@ -1418,10 +1097,7 @@ impl IDxcUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveToBlob(this: *mut core::ffi::c_void, pdata: *const core::ffi::c_void, pimalloc: *mut core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn MoveToBlob(this: *mut core::ffi::c_void, pdata: *const core::ffi::c_void, pimalloc: *mut core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcUtils_Impl::MoveToBlob(this, core::mem::transmute_copy(&pdata), windows_core::from_raw_borrowed(&pimalloc), core::mem::transmute_copy(&size), core::mem::transmute_copy(&codepage)) { Ok(ok__) => { @@ -1431,10 +1107,7 @@ impl IDxcUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBlob(this: *mut core::ffi::c_void, pdata: *const core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn CreateBlob(this: *mut core::ffi::c_void, pdata: *const core::ffi::c_void, size: u32, codepage: DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcUtils_Impl::CreateBlob(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size), core::mem::transmute_copy(&codepage)) { Ok(ok__) => { @@ -1444,10 +1117,7 @@ impl IDxcUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadFile(this: *mut core::ffi::c_void, pfilename: windows_core::PCWSTR, pcodepage: *const DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn LoadFile(this: *mut core::ffi::c_void, pfilename: windows_core::PCWSTR, pcodepage: *const DXC_CP, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcUtils_Impl::LoadFile(this, core::mem::transmute(&pfilename), core::mem::transmute_copy(&pcodepage)) { Ok(ok__) => { @@ -1457,10 +1127,7 @@ impl IDxcUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateReadOnlyStreamFromBlob(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn CreateReadOnlyStreamFromBlob(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcUtils_Impl::CreateReadOnlyStreamFromBlob(this, windows_core::from_raw_borrowed(&pblob)) { Ok(ok__) => { @@ -1470,10 +1137,7 @@ impl IDxcUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDefaultIncludeHandler(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn CreateDefaultIncludeHandler(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcUtils_Impl::CreateDefaultIncludeHandler(this) { Ok(ok__) => { @@ -1483,10 +1147,7 @@ impl IDxcUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBlobAsUtf8(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn GetBlobAsUtf8(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcUtils_Impl::GetBlobAsUtf8(this, windows_core::from_raw_borrowed(&pblob)) { Ok(ok__) => { @@ -1496,10 +1157,7 @@ impl IDxcUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBlobAsUtf16(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn GetBlobAsUtf16(this: *mut core::ffi::c_void, pblob: *mut core::ffi::c_void, pblobencoding: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcUtils_Impl::GetBlobAsUtf16(this, windows_core::from_raw_borrowed(&pblob)) { Ok(ok__) => { @@ -1509,24 +1167,15 @@ impl IDxcUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDxilContainerPart(this: *mut core::ffi::c_void, pshader: *const DxcBuffer, dxcpart: u32, pppartdata: *mut *mut core::ffi::c_void, ppartsizeinbytes: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn GetDxilContainerPart(this: *mut core::ffi::c_void, pshader: *const DxcBuffer, dxcpart: u32, pppartdata: *mut *mut core::ffi::c_void, ppartsizeinbytes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcUtils_Impl::GetDxilContainerPart(this, core::mem::transmute_copy(&pshader), core::mem::transmute_copy(&dxcpart), core::mem::transmute_copy(&pppartdata), core::mem::transmute_copy(&ppartsizeinbytes)).into() } - unsafe extern "system" fn CreateReflection(this: *mut core::ffi::c_void, pdata: *const DxcBuffer, iid: *const windows_core::GUID, ppvreflection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn CreateReflection(this: *mut core::ffi::c_void, pdata: *const DxcBuffer, iid: *const windows_core::GUID, ppvreflection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcUtils_Impl::CreateReflection(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppvreflection)).into() } - unsafe extern "system" fn BuildArguments(this: *mut core::ffi::c_void, psourcename: windows_core::PCWSTR, pentrypoint: windows_core::PCWSTR, ptargetprofile: windows_core::PCWSTR, parguments: *const windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, ppargs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn BuildArguments(this: *mut core::ffi::c_void, psourcename: windows_core::PCWSTR, pentrypoint: windows_core::PCWSTR, ptargetprofile: windows_core::PCWSTR, parguments: *const windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, ppargs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcUtils_Impl::BuildArguments(this, core::mem::transmute(&psourcename), core::mem::transmute(&pentrypoint), core::mem::transmute(&ptargetprofile), core::mem::transmute_copy(&parguments), core::mem::transmute_copy(&argcount), core::mem::transmute_copy(&pdefines), core::mem::transmute_copy(&definecount)) { Ok(ok__) => { @@ -1536,10 +1185,7 @@ impl IDxcUtils_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPDBContents(this: *mut core::ffi::c_void, ppdbblob: *mut core::ffi::c_void, pphash: *mut *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcUtils_Impl, - { + unsafe extern "system" fn GetPDBContents(this: *mut core::ffi::c_void, ppdbblob: *mut core::ffi::c_void, pphash: *mut *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcUtils_Impl::GetPDBContents(this, windows_core::from_raw_borrowed(&ppdbblob), core::mem::transmute_copy(&pphash), core::mem::transmute_copy(&ppcontainer)).into() } @@ -1564,19 +1210,13 @@ impl IDxcUtils_Vtbl { iid == &::IID } } -pub trait IDxcValidator_Impl: Sized { +pub trait IDxcValidator_Impl: Sized + windows_core::IUnknownImpl { fn Validate(&self, pshader: Option<&IDxcBlob>, flags: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IDxcValidator {} impl IDxcValidator_Vtbl { - pub const fn new() -> IDxcValidator_Vtbl - where - Identity: IDxcValidator_Impl, - { - unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, flags: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcValidator_Impl, - { + pub const fn new() -> IDxcValidator_Vtbl { + unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, flags: u32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcValidator_Impl::Validate(this, windows_core::from_raw_borrowed(&pshader), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1597,14 +1237,8 @@ pub trait IDxcValidator2_Impl: Sized + IDxcValidator_Impl { } impl windows_core::RuntimeName for IDxcValidator2 {} impl IDxcValidator2_Vtbl { - pub const fn new() -> IDxcValidator2_Vtbl - where - Identity: IDxcValidator2_Impl, - { - unsafe extern "system" fn ValidateWithDebug(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, flags: u32, poptdebugbitcode: *const DxcBuffer, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDxcValidator2_Impl, - { + pub const fn new() -> IDxcValidator2_Vtbl { + unsafe extern "system" fn ValidateWithDebug(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, flags: u32, poptdebugbitcode: *const DxcBuffer, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcValidator2_Impl::ValidateWithDebug(this, windows_core::from_raw_borrowed(&pshader), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&poptdebugbitcode)) { Ok(ok__) => { @@ -1620,27 +1254,18 @@ impl IDxcValidator2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDxcVersionInfo_Impl: Sized { +pub trait IDxcVersionInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetVersion(&self, pmajor: *mut u32, pminor: *mut u32) -> windows_core::Result<()>; fn GetFlags(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDxcVersionInfo {} impl IDxcVersionInfo_Vtbl { - pub const fn new() -> IDxcVersionInfo_Vtbl - where - Identity: IDxcVersionInfo_Impl, - { - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pmajor: *mut u32, pminor: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcVersionInfo_Impl, - { + pub const fn new() -> IDxcVersionInfo_Vtbl { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pmajor: *mut u32, pminor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcVersionInfo_Impl::GetVersion(this, core::mem::transmute_copy(&pmajor), core::mem::transmute_copy(&pminor)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDxcVersionInfo_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcVersionInfo_Impl::GetFlags(this) { Ok(ok__) => { @@ -1665,14 +1290,8 @@ pub trait IDxcVersionInfo2_Impl: Sized + IDxcVersionInfo_Impl { } impl windows_core::RuntimeName for IDxcVersionInfo2 {} impl IDxcVersionInfo2_Vtbl { - pub const fn new() -> IDxcVersionInfo2_Vtbl - where - Identity: IDxcVersionInfo2_Impl, - { - unsafe extern "system" fn GetCommitInfo(this: *mut core::ffi::c_void, pcommitcount: *mut u32, pcommithash: *mut *mut i8) -> windows_core::HRESULT - where - Identity: IDxcVersionInfo2_Impl, - { + pub const fn new() -> IDxcVersionInfo2_Vtbl { + unsafe extern "system" fn GetCommitInfo(this: *mut core::ffi::c_void, pcommitcount: *mut u32, pcommithash: *mut *mut i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcVersionInfo2_Impl::GetCommitInfo(this, core::mem::transmute_copy(&pcommitcount), core::mem::transmute_copy(&pcommithash)).into() } @@ -1682,19 +1301,13 @@ impl IDxcVersionInfo2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDxcVersionInfo3_Impl: Sized { +pub trait IDxcVersionInfo3_Impl: Sized + windows_core::IUnknownImpl { fn GetCustomVersionString(&self) -> windows_core::Result<*mut i8>; } impl windows_core::RuntimeName for IDxcVersionInfo3 {} impl IDxcVersionInfo3_Vtbl { - pub const fn new() -> IDxcVersionInfo3_Vtbl - where - Identity: IDxcVersionInfo3_Impl, - { - unsafe extern "system" fn GetCustomVersionString(this: *mut core::ffi::c_void, pversionstring: *mut *mut i8) -> windows_core::HRESULT - where - Identity: IDxcVersionInfo3_Impl, - { + pub const fn new() -> IDxcVersionInfo3_Vtbl { + unsafe extern "system" fn GetCustomVersionString(this: *mut core::ffi::c_void, pversionstring: *mut *mut i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDxcVersionInfo3_Impl::GetCustomVersionString(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/impl.rs index 897a6778c1..1ff9392453 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/impl.rs @@ -1,24 +1,15 @@ -pub trait ID3DBlob_Impl: Sized { +pub trait ID3DBlob_Impl: Sized + windows_core::IUnknownImpl { fn GetBufferPointer(&self) -> *mut core::ffi::c_void; fn GetBufferSize(&self) -> usize; } impl windows_core::RuntimeName for ID3DBlob {} impl ID3DBlob_Vtbl { - pub const fn new() -> ID3DBlob_Vtbl - where - Identity: ID3DBlob_Impl, - { - unsafe extern "system" fn GetBufferPointer(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void - where - Identity: ID3DBlob_Impl, - { + pub const fn new() -> ID3DBlob_Vtbl { + unsafe extern "system" fn GetBufferPointer(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DBlob_Impl::GetBufferPointer(this) } - unsafe extern "system" fn GetBufferSize(this: *mut core::ffi::c_void) -> usize - where - Identity: ID3DBlob_Impl, - { + unsafe extern "system" fn GetBufferSize(this: *mut core::ffi::c_void) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DBlob_Impl::GetBufferSize(this) } @@ -32,20 +23,14 @@ impl ID3DBlob_Vtbl { iid == &::IID } } -pub trait ID3DDestructionNotifier_Impl: Sized { +pub trait ID3DDestructionNotifier_Impl: Sized + windows_core::IUnknownImpl { fn RegisterDestructionCallback(&self, callbackfn: PFN_DESTRUCTION_CALLBACK, pdata: *const core::ffi::c_void) -> windows_core::Result; fn UnregisterDestructionCallback(&self, callbackid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID3DDestructionNotifier {} impl ID3DDestructionNotifier_Vtbl { - pub const fn new() -> ID3DDestructionNotifier_Vtbl - where - Identity: ID3DDestructionNotifier_Impl, - { - unsafe extern "system" fn RegisterDestructionCallback(this: *mut core::ffi::c_void, callbackfn: PFN_DESTRUCTION_CALLBACK, pdata: *const core::ffi::c_void, pcallbackid: *mut u32) -> windows_core::HRESULT - where - Identity: ID3DDestructionNotifier_Impl, - { + pub const fn new() -> ID3DDestructionNotifier_Vtbl { + unsafe extern "system" fn RegisterDestructionCallback(this: *mut core::ffi::c_void, callbackfn: PFN_DESTRUCTION_CALLBACK, pdata: *const core::ffi::c_void, pcallbackid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3DDestructionNotifier_Impl::RegisterDestructionCallback(this, core::mem::transmute_copy(&callbackfn), core::mem::transmute_copy(&pdata)) { Ok(ok__) => { @@ -55,10 +40,7 @@ impl ID3DDestructionNotifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterDestructionCallback(this: *mut core::ffi::c_void, callbackid: u32) -> windows_core::HRESULT - where - Identity: ID3DDestructionNotifier_Impl, - { + unsafe extern "system" fn UnregisterDestructionCallback(this: *mut core::ffi::c_void, callbackid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DDestructionNotifier_Impl::UnregisterDestructionCallback(this, core::mem::transmute_copy(&callbackid)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs index 354b03ef7e..35328d75e6 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs @@ -6,35 +6,20 @@ pub trait ID3D10Asynchronous_Impl: Sized + ID3D10DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D10Asynchronous {} impl ID3D10Asynchronous_Vtbl { - pub const fn new() -> ID3D10Asynchronous_Vtbl - where - Identity: ID3D10Asynchronous_Impl, - { - unsafe extern "system" fn Begin(this: *mut core::ffi::c_void) - where - Identity: ID3D10Asynchronous_Impl, - { + pub const fn new() -> ID3D10Asynchronous_Vtbl { + unsafe extern "system" fn Begin(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Asynchronous_Impl::Begin(this) } - unsafe extern "system" fn End(this: *mut core::ffi::c_void) - where - Identity: ID3D10Asynchronous_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Asynchronous_Impl::End(this) } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void, datasize: u32, getdataflags: u32) -> windows_core::HRESULT - where - Identity: ID3D10Asynchronous_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void, datasize: u32, getdataflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Asynchronous_Impl::GetData(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&getdataflags)).into() } - unsafe extern "system" fn GetDataSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D10Asynchronous_Impl, - { + unsafe extern "system" fn GetDataSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Asynchronous_Impl::GetDataSize(this) } @@ -55,14 +40,8 @@ pub trait ID3D10BlendState_Impl: Sized + ID3D10DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D10BlendState {} impl ID3D10BlendState_Vtbl { - pub const fn new() -> ID3D10BlendState_Vtbl - where - Identity: ID3D10BlendState_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_BLEND_DESC) - where - Identity: ID3D10BlendState_Impl, - { + pub const fn new() -> ID3D10BlendState_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_BLEND_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10BlendState_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -77,14 +56,8 @@ pub trait ID3D10BlendState1_Impl: Sized + ID3D10BlendState_Impl { } impl windows_core::RuntimeName for ID3D10BlendState1 {} impl ID3D10BlendState1_Vtbl { - pub const fn new() -> ID3D10BlendState1_Vtbl - where - Identity: ID3D10BlendState1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D10_BLEND_DESC1) - where - Identity: ID3D10BlendState1_Impl, - { + pub const fn new() -> ID3D10BlendState1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D10_BLEND_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10BlendState1_Impl::GetDesc1(this, core::mem::transmute_copy(&pdesc)) } @@ -101,28 +74,16 @@ pub trait ID3D10Buffer_Impl: Sized + ID3D10Resource_Impl { } impl windows_core::RuntimeName for ID3D10Buffer {} impl ID3D10Buffer_Vtbl { - pub const fn new() -> ID3D10Buffer_Vtbl - where - Identity: ID3D10Buffer_Impl, - { - unsafe extern "system" fn Map(this: *mut core::ffi::c_void, maptype: D3D10_MAP, mapflags: u32, ppdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Buffer_Impl, - { + pub const fn new() -> ID3D10Buffer_Vtbl { + unsafe extern "system" fn Map(this: *mut core::ffi::c_void, maptype: D3D10_MAP, mapflags: u32, ppdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Buffer_Impl::Map(this, core::mem::transmute_copy(&maptype), core::mem::transmute_copy(&mapflags), core::mem::transmute_copy(&ppdata)).into() } - unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void) - where - Identity: ID3D10Buffer_Impl, - { + unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Buffer_Impl::Unmap(this) } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_BUFFER_DESC) - where - Identity: ID3D10Buffer_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_BUFFER_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Buffer_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -142,14 +103,8 @@ pub trait ID3D10Counter_Impl: Sized + ID3D10Asynchronous_Impl { } impl windows_core::RuntimeName for ID3D10Counter {} impl ID3D10Counter_Vtbl { - pub const fn new() -> ID3D10Counter_Vtbl - where - Identity: ID3D10Counter_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_COUNTER_DESC) - where - Identity: ID3D10Counter_Impl, - { + pub const fn new() -> ID3D10Counter_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_COUNTER_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Counter_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -160,7 +115,7 @@ impl ID3D10Counter_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi")] -pub trait ID3D10Debug_Impl: Sized { +pub trait ID3D10Debug_Impl: Sized + windows_core::IUnknownImpl { fn SetFeatureMask(&self, mask: u32) -> windows_core::Result<()>; fn GetFeatureMask(&self) -> u32; fn SetPresentPerRenderOpDelay(&self, milliseconds: u32) -> windows_core::Result<()>; @@ -173,49 +128,28 @@ pub trait ID3D10Debug_Impl: Sized { impl windows_core::RuntimeName for ID3D10Debug {} #[cfg(feature = "Win32_Graphics_Dxgi")] impl ID3D10Debug_Vtbl { - pub const fn new() -> ID3D10Debug_Vtbl - where - Identity: ID3D10Debug_Impl, - { - unsafe extern "system" fn SetFeatureMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: ID3D10Debug_Impl, - { + pub const fn new() -> ID3D10Debug_Vtbl { + unsafe extern "system" fn SetFeatureMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Debug_Impl::SetFeatureMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetFeatureMask(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D10Debug_Impl, - { + unsafe extern "system" fn GetFeatureMask(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Debug_Impl::GetFeatureMask(this) } - unsafe extern "system" fn SetPresentPerRenderOpDelay(this: *mut core::ffi::c_void, milliseconds: u32) -> windows_core::HRESULT - where - Identity: ID3D10Debug_Impl, - { + unsafe extern "system" fn SetPresentPerRenderOpDelay(this: *mut core::ffi::c_void, milliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Debug_Impl::SetPresentPerRenderOpDelay(this, core::mem::transmute_copy(&milliseconds)).into() } - unsafe extern "system" fn GetPresentPerRenderOpDelay(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D10Debug_Impl, - { + unsafe extern "system" fn GetPresentPerRenderOpDelay(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Debug_Impl::GetPresentPerRenderOpDelay(this) } - unsafe extern "system" fn SetSwapChain(this: *mut core::ffi::c_void, pswapchain: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Debug_Impl, - { + unsafe extern "system" fn SetSwapChain(this: *mut core::ffi::c_void, pswapchain: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Debug_Impl::SetSwapChain(this, windows_core::from_raw_borrowed(&pswapchain)).into() } - unsafe extern "system" fn GetSwapChain(this: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Debug_Impl, - { + unsafe extern "system" fn GetSwapChain(this: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10Debug_Impl::GetSwapChain(this) { Ok(ok__) => { @@ -225,10 +159,7 @@ impl ID3D10Debug_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Validate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Debug_Impl, - { + unsafe extern "system" fn Validate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Debug_Impl::Validate(this).into() } @@ -252,14 +183,8 @@ pub trait ID3D10DepthStencilState_Impl: Sized + ID3D10DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D10DepthStencilState {} impl ID3D10DepthStencilState_Vtbl { - pub const fn new() -> ID3D10DepthStencilState_Vtbl - where - Identity: ID3D10DepthStencilState_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_DEPTH_STENCIL_DESC) - where - Identity: ID3D10DepthStencilState_Impl, - { + pub const fn new() -> ID3D10DepthStencilState_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_DEPTH_STENCIL_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10DepthStencilState_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -277,14 +202,8 @@ pub trait ID3D10DepthStencilView_Impl: Sized + ID3D10View_Impl { impl windows_core::RuntimeName for ID3D10DepthStencilView {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D10DepthStencilView_Vtbl { - pub const fn new() -> ID3D10DepthStencilView_Vtbl - where - Identity: ID3D10DepthStencilView_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_DEPTH_STENCIL_VIEW_DESC) - where - Identity: ID3D10DepthStencilView_Impl, - { + pub const fn new() -> ID3D10DepthStencilView_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_DEPTH_STENCIL_VIEW_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10DepthStencilView_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -295,7 +214,7 @@ impl ID3D10DepthStencilView_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] -pub trait ID3D10Device_Impl: Sized { +pub trait ID3D10Device_Impl: Sized + windows_core::IUnknownImpl { fn VSSetConstantBuffers(&self, startslot: u32, numbuffers: u32, ppconstantbuffers: *const Option); fn PSSetShaderResources(&self, startslot: u32, numviews: u32, ppshaderresourceviews: *const Option); fn PSSetShader(&self, ppixelshader: Option<&ID3D10PixelShader>); @@ -396,497 +315,284 @@ pub trait ID3D10Device_Impl: Sized { impl windows_core::RuntimeName for ID3D10Device {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D10Device_Vtbl { - pub const fn new() -> ID3D10Device_Vtbl - where - Identity: ID3D10Device_Impl, - { - unsafe extern "system" fn VSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + pub const fn new() -> ID3D10Device_Vtbl { + unsafe extern "system" fn VSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::VSSetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn PSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn PSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::PSSetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn PSSetShader(this: *mut core::ffi::c_void, ppixelshader: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn PSSetShader(this: *mut core::ffi::c_void, ppixelshader: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::PSSetShader(this, windows_core::from_raw_borrowed(&ppixelshader)) } - unsafe extern "system" fn PSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn PSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::PSSetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn VSSetShader(this: *mut core::ffi::c_void, pvertexshader: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn VSSetShader(this: *mut core::ffi::c_void, pvertexshader: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::VSSetShader(this, windows_core::from_raw_borrowed(&pvertexshader)) } - unsafe extern "system" fn DrawIndexed(this: *mut core::ffi::c_void, indexcount: u32, startindexlocation: u32, basevertexlocation: i32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn DrawIndexed(this: *mut core::ffi::c_void, indexcount: u32, startindexlocation: u32, basevertexlocation: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::DrawIndexed(this, core::mem::transmute_copy(&indexcount), core::mem::transmute_copy(&startindexlocation), core::mem::transmute_copy(&basevertexlocation)) } - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, vertexcount: u32, startvertexlocation: u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, vertexcount: u32, startvertexlocation: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::Draw(this, core::mem::transmute_copy(&vertexcount), core::mem::transmute_copy(&startvertexlocation)) } - unsafe extern "system" fn PSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn PSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::PSSetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn IASetInputLayout(this: *mut core::ffi::c_void, pinputlayout: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn IASetInputLayout(this: *mut core::ffi::c_void, pinputlayout: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::IASetInputLayout(this, windows_core::from_raw_borrowed(&pinputlayout)) } - unsafe extern "system" fn IASetVertexBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppvertexbuffers: *const *mut core::ffi::c_void, pstrides: *const u32, poffsets: *const u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn IASetVertexBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppvertexbuffers: *const *mut core::ffi::c_void, pstrides: *const u32, poffsets: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::IASetVertexBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppvertexbuffers), core::mem::transmute_copy(&pstrides), core::mem::transmute_copy(&poffsets)) } - unsafe extern "system" fn IASetIndexBuffer(this: *mut core::ffi::c_void, pindexbuffer: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, offset: u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn IASetIndexBuffer(this: *mut core::ffi::c_void, pindexbuffer: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, offset: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::IASetIndexBuffer(this, windows_core::from_raw_borrowed(&pindexbuffer), core::mem::transmute_copy(&format), core::mem::transmute_copy(&offset)) } - unsafe extern "system" fn DrawIndexedInstanced(this: *mut core::ffi::c_void, indexcountperinstance: u32, instancecount: u32, startindexlocation: u32, basevertexlocation: i32, startinstancelocation: u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn DrawIndexedInstanced(this: *mut core::ffi::c_void, indexcountperinstance: u32, instancecount: u32, startindexlocation: u32, basevertexlocation: i32, startinstancelocation: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::DrawIndexedInstanced(this, core::mem::transmute_copy(&indexcountperinstance), core::mem::transmute_copy(&instancecount), core::mem::transmute_copy(&startindexlocation), core::mem::transmute_copy(&basevertexlocation), core::mem::transmute_copy(&startinstancelocation)) } - unsafe extern "system" fn DrawInstanced(this: *mut core::ffi::c_void, vertexcountperinstance: u32, instancecount: u32, startvertexlocation: u32, startinstancelocation: u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn DrawInstanced(this: *mut core::ffi::c_void, vertexcountperinstance: u32, instancecount: u32, startvertexlocation: u32, startinstancelocation: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::DrawInstanced(this, core::mem::transmute_copy(&vertexcountperinstance), core::mem::transmute_copy(&instancecount), core::mem::transmute_copy(&startvertexlocation), core::mem::transmute_copy(&startinstancelocation)) } - unsafe extern "system" fn GSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GSSetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn GSSetShader(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GSSetShader(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GSSetShader(this, windows_core::from_raw_borrowed(&pshader)) } - unsafe extern "system" fn IASetPrimitiveTopology(this: *mut core::ffi::c_void, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn IASetPrimitiveTopology(this: *mut core::ffi::c_void, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::IASetPrimitiveTopology(this, core::mem::transmute_copy(&topology)) } - unsafe extern "system" fn VSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn VSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::VSSetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn VSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn VSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::VSSetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, ppredicate: *mut core::ffi::c_void, predicatevalue: super::super::Foundation::BOOL) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, ppredicate: *mut core::ffi::c_void, predicatevalue: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::SetPredication(this, windows_core::from_raw_borrowed(&ppredicate), core::mem::transmute_copy(&predicatevalue)) } - unsafe extern "system" fn GSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GSSetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn GSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GSSetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn OMSetRenderTargets(this: *mut core::ffi::c_void, numviews: u32, pprendertargetviews: *const *mut core::ffi::c_void, pdepthstencilview: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn OMSetRenderTargets(this: *mut core::ffi::c_void, numviews: u32, pprendertargetviews: *const *mut core::ffi::c_void, pdepthstencilview: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::OMSetRenderTargets(this, core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&pprendertargetviews), windows_core::from_raw_borrowed(&pdepthstencilview)) } - unsafe extern "system" fn OMSetBlendState(this: *mut core::ffi::c_void, pblendstate: *mut core::ffi::c_void, blendfactor: *const f32, samplemask: u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn OMSetBlendState(this: *mut core::ffi::c_void, pblendstate: *mut core::ffi::c_void, blendfactor: *const f32, samplemask: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::OMSetBlendState(this, windows_core::from_raw_borrowed(&pblendstate), core::mem::transmute_copy(&blendfactor), core::mem::transmute_copy(&samplemask)) } - unsafe extern "system" fn OMSetDepthStencilState(this: *mut core::ffi::c_void, pdepthstencilstate: *mut core::ffi::c_void, stencilref: u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn OMSetDepthStencilState(this: *mut core::ffi::c_void, pdepthstencilstate: *mut core::ffi::c_void, stencilref: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::OMSetDepthStencilState(this, windows_core::from_raw_borrowed(&pdepthstencilstate), core::mem::transmute_copy(&stencilref)) } - unsafe extern "system" fn SOSetTargets(this: *mut core::ffi::c_void, numbuffers: u32, ppsotargets: *const *mut core::ffi::c_void, poffsets: *const u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn SOSetTargets(this: *mut core::ffi::c_void, numbuffers: u32, ppsotargets: *const *mut core::ffi::c_void, poffsets: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::SOSetTargets(this, core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppsotargets), core::mem::transmute_copy(&poffsets)) } - unsafe extern "system" fn DrawAuto(this: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn DrawAuto(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::DrawAuto(this) } - unsafe extern "system" fn RSSetState(this: *mut core::ffi::c_void, prasterizerstate: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn RSSetState(this: *mut core::ffi::c_void, prasterizerstate: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::RSSetState(this, windows_core::from_raw_borrowed(&prasterizerstate)) } - unsafe extern "system" fn RSSetViewports(this: *mut core::ffi::c_void, numviewports: u32, pviewports: *const D3D10_VIEWPORT) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn RSSetViewports(this: *mut core::ffi::c_void, numviewports: u32, pviewports: *const D3D10_VIEWPORT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::RSSetViewports(this, core::mem::transmute_copy(&numviewports), core::mem::transmute_copy(&pviewports)) } - unsafe extern "system" fn RSSetScissorRects(this: *mut core::ffi::c_void, numrects: u32, prects: *const super::super::Foundation::RECT) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn RSSetScissorRects(this: *mut core::ffi::c_void, numrects: u32, prects: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::RSSetScissorRects(this, core::mem::transmute_copy(&numrects), core::mem::transmute_copy(&prects)) } - unsafe extern "system" fn CopySubresourceRegion(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, psrcbox: *const D3D10_BOX) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CopySubresourceRegion(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, psrcbox: *const D3D10_BOX) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CopySubresourceRegion(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), core::mem::transmute_copy(&dstx), core::mem::transmute_copy(&dsty), core::mem::transmute_copy(&dstz), windows_core::from_raw_borrowed(&psrcresource), core::mem::transmute_copy(&srcsubresource), core::mem::transmute_copy(&psrcbox)) } - unsafe extern "system" fn CopyResource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, psrcresource: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CopyResource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, psrcresource: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CopyResource(this, windows_core::from_raw_borrowed(&pdstresource), windows_core::from_raw_borrowed(&psrcresource)) } - unsafe extern "system" fn UpdateSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D10_BOX, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn UpdateSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D10_BOX, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::UpdateSubresource(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), core::mem::transmute_copy(&pdstbox), core::mem::transmute_copy(&psrcdata), core::mem::transmute_copy(&srcrowpitch), core::mem::transmute_copy(&srcdepthpitch)) } - unsafe extern "system" fn ClearRenderTargetView(this: *mut core::ffi::c_void, prendertargetview: *mut core::ffi::c_void, colorrgba: *const f32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn ClearRenderTargetView(this: *mut core::ffi::c_void, prendertargetview: *mut core::ffi::c_void, colorrgba: *const f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::ClearRenderTargetView(this, windows_core::from_raw_borrowed(&prendertargetview), core::mem::transmute_copy(&colorrgba)) } - unsafe extern "system" fn ClearDepthStencilView(this: *mut core::ffi::c_void, pdepthstencilview: *mut core::ffi::c_void, clearflags: u32, depth: f32, stencil: u8) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn ClearDepthStencilView(this: *mut core::ffi::c_void, pdepthstencilview: *mut core::ffi::c_void, clearflags: u32, depth: f32, stencil: u8) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::ClearDepthStencilView(this, windows_core::from_raw_borrowed(&pdepthstencilview), core::mem::transmute_copy(&clearflags), core::mem::transmute_copy(&depth), core::mem::transmute_copy(&stencil)) } - unsafe extern "system" fn GenerateMips(this: *mut core::ffi::c_void, pshaderresourceview: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GenerateMips(this: *mut core::ffi::c_void, pshaderresourceview: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GenerateMips(this, windows_core::from_raw_borrowed(&pshaderresourceview)) } - unsafe extern "system" fn ResolveSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn ResolveSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::ResolveSubresource(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), windows_core::from_raw_borrowed(&psrcresource), core::mem::transmute_copy(&srcsubresource), core::mem::transmute_copy(&format)) } - unsafe extern "system" fn VSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn VSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::VSGetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn PSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn PSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::PSGetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn PSGetShader(this: *mut core::ffi::c_void, pppixelshader: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn PSGetShader(this: *mut core::ffi::c_void, pppixelshader: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::PSGetShader(this, core::mem::transmute_copy(&pppixelshader)) } - unsafe extern "system" fn PSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn PSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::PSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn VSGetShader(this: *mut core::ffi::c_void, ppvertexshader: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn VSGetShader(this: *mut core::ffi::c_void, ppvertexshader: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::VSGetShader(this, core::mem::transmute_copy(&ppvertexshader)) } - unsafe extern "system" fn PSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn PSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::PSGetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn IAGetInputLayout(this: *mut core::ffi::c_void, ppinputlayout: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn IAGetInputLayout(this: *mut core::ffi::c_void, ppinputlayout: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::IAGetInputLayout(this, core::mem::transmute_copy(&ppinputlayout)) } - unsafe extern "system" fn IAGetVertexBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppvertexbuffers: *mut *mut core::ffi::c_void, pstrides: *mut u32, poffsets: *mut u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn IAGetVertexBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppvertexbuffers: *mut *mut core::ffi::c_void, pstrides: *mut u32, poffsets: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::IAGetVertexBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppvertexbuffers), core::mem::transmute_copy(&pstrides), core::mem::transmute_copy(&poffsets)) } - unsafe extern "system" fn IAGetIndexBuffer(this: *mut core::ffi::c_void, pindexbuffer: *mut *mut core::ffi::c_void, format: *mut super::Dxgi::Common::DXGI_FORMAT, offset: *mut u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn IAGetIndexBuffer(this: *mut core::ffi::c_void, pindexbuffer: *mut *mut core::ffi::c_void, format: *mut super::Dxgi::Common::DXGI_FORMAT, offset: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::IAGetIndexBuffer(this, core::mem::transmute_copy(&pindexbuffer), core::mem::transmute_copy(&format), core::mem::transmute_copy(&offset)) } - unsafe extern "system" fn GSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GSGetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn GSGetShader(this: *mut core::ffi::c_void, ppgeometryshader: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GSGetShader(this: *mut core::ffi::c_void, ppgeometryshader: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GSGetShader(this, core::mem::transmute_copy(&ppgeometryshader)) } - unsafe extern "system" fn IAGetPrimitiveTopology(this: *mut core::ffi::c_void, ptopology: *mut super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn IAGetPrimitiveTopology(this: *mut core::ffi::c_void, ptopology: *mut super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::IAGetPrimitiveTopology(this, core::mem::transmute_copy(&ptopology)) } - unsafe extern "system" fn VSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn VSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::VSGetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn VSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn VSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::VSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn GetPredication(this: *mut core::ffi::c_void, pppredicate: *mut *mut core::ffi::c_void, ppredicatevalue: *mut super::super::Foundation::BOOL) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GetPredication(this: *mut core::ffi::c_void, pppredicate: *mut *mut core::ffi::c_void, ppredicatevalue: *mut super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GetPredication(this, core::mem::transmute_copy(&pppredicate), core::mem::transmute_copy(&ppredicatevalue)) } - unsafe extern "system" fn GSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GSGetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn GSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn OMGetRenderTargets(this: *mut core::ffi::c_void, numviews: u32, pprendertargetviews: *mut *mut core::ffi::c_void, ppdepthstencilview: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn OMGetRenderTargets(this: *mut core::ffi::c_void, numviews: u32, pprendertargetviews: *mut *mut core::ffi::c_void, ppdepthstencilview: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::OMGetRenderTargets(this, core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&pprendertargetviews), core::mem::transmute_copy(&ppdepthstencilview)) } - unsafe extern "system" fn OMGetBlendState(this: *mut core::ffi::c_void, ppblendstate: *mut *mut core::ffi::c_void, blendfactor: *mut f32, psamplemask: *mut u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn OMGetBlendState(this: *mut core::ffi::c_void, ppblendstate: *mut *mut core::ffi::c_void, blendfactor: *mut f32, psamplemask: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::OMGetBlendState(this, core::mem::transmute_copy(&ppblendstate), core::mem::transmute_copy(&blendfactor), core::mem::transmute_copy(&psamplemask)) } - unsafe extern "system" fn OMGetDepthStencilState(this: *mut core::ffi::c_void, ppdepthstencilstate: *mut *mut core::ffi::c_void, pstencilref: *mut u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn OMGetDepthStencilState(this: *mut core::ffi::c_void, ppdepthstencilstate: *mut *mut core::ffi::c_void, pstencilref: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::OMGetDepthStencilState(this, core::mem::transmute_copy(&ppdepthstencilstate), core::mem::transmute_copy(&pstencilref)) } - unsafe extern "system" fn SOGetTargets(this: *mut core::ffi::c_void, numbuffers: u32, ppsotargets: *mut *mut core::ffi::c_void, poffsets: *mut u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn SOGetTargets(this: *mut core::ffi::c_void, numbuffers: u32, ppsotargets: *mut *mut core::ffi::c_void, poffsets: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::SOGetTargets(this, core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppsotargets), core::mem::transmute_copy(&poffsets)) } - unsafe extern "system" fn RSGetState(this: *mut core::ffi::c_void, pprasterizerstate: *mut *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn RSGetState(this: *mut core::ffi::c_void, pprasterizerstate: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::RSGetState(this, core::mem::transmute_copy(&pprasterizerstate)) } - unsafe extern "system" fn RSGetViewports(this: *mut core::ffi::c_void, numviewports: *mut u32, pviewports: *mut D3D10_VIEWPORT) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn RSGetViewports(this: *mut core::ffi::c_void, numviewports: *mut u32, pviewports: *mut D3D10_VIEWPORT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::RSGetViewports(this, core::mem::transmute_copy(&numviewports), core::mem::transmute_copy(&pviewports)) } - unsafe extern "system" fn RSGetScissorRects(this: *mut core::ffi::c_void, numrects: *mut u32, prects: *mut super::super::Foundation::RECT) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn RSGetScissorRects(this: *mut core::ffi::c_void, numrects: *mut u32, prects: *mut super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::RSGetScissorRects(this, core::mem::transmute_copy(&numrects), core::mem::transmute_copy(&prects)) } - unsafe extern "system" fn GetDeviceRemovedReason(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GetDeviceRemovedReason(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GetDeviceRemovedReason(this).into() } - unsafe extern "system" fn SetExceptionMode(this: *mut core::ffi::c_void, raiseflags: u32) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn SetExceptionMode(this: *mut core::ffi::c_void, raiseflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::SetExceptionMode(this, core::mem::transmute_copy(&raiseflags)).into() } - unsafe extern "system" fn GetExceptionMode(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GetExceptionMode(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GetExceptionMode(this) } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pdatasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::SetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::SetPrivateDataInterface(this, core::mem::transmute_copy(&guid), windows_core::from_raw_borrowed(&pdata)).into() } - unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::ClearState(this) } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::Flush(this) } - unsafe extern "system" fn CreateBuffer(this: *mut core::ffi::c_void, pdesc: *const D3D10_BUFFER_DESC, pinitialdata: *const D3D10_SUBRESOURCE_DATA, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateBuffer(this: *mut core::ffi::c_void, pdesc: *const D3D10_BUFFER_DESC, pinitialdata: *const D3D10_SUBRESOURCE_DATA, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateBuffer(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pinitialdata), core::mem::transmute_copy(&ppbuffer)).into() } - unsafe extern "system" fn CreateTexture1D(this: *mut core::ffi::c_void, pdesc: *const D3D10_TEXTURE1D_DESC, pinitialdata: *const D3D10_SUBRESOURCE_DATA, pptexture1d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateTexture1D(this: *mut core::ffi::c_void, pdesc: *const D3D10_TEXTURE1D_DESC, pinitialdata: *const D3D10_SUBRESOURCE_DATA, pptexture1d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10Device_Impl::CreateTexture1D(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pinitialdata)) { Ok(ok__) => { @@ -896,10 +602,7 @@ impl ID3D10Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTexture2D(this: *mut core::ffi::c_void, pdesc: *const D3D10_TEXTURE2D_DESC, pinitialdata: *const D3D10_SUBRESOURCE_DATA, pptexture2d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateTexture2D(this: *mut core::ffi::c_void, pdesc: *const D3D10_TEXTURE2D_DESC, pinitialdata: *const D3D10_SUBRESOURCE_DATA, pptexture2d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10Device_Impl::CreateTexture2D(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pinitialdata)) { Ok(ok__) => { @@ -909,10 +612,7 @@ impl ID3D10Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTexture3D(this: *mut core::ffi::c_void, pdesc: *const D3D10_TEXTURE3D_DESC, pinitialdata: *const D3D10_SUBRESOURCE_DATA, pptexture3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateTexture3D(this: *mut core::ffi::c_void, pdesc: *const D3D10_TEXTURE3D_DESC, pinitialdata: *const D3D10_SUBRESOURCE_DATA, pptexture3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10Device_Impl::CreateTexture3D(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pinitialdata)) { Ok(ok__) => { @@ -922,115 +622,67 @@ impl ID3D10Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateShaderResourceView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D10_SHADER_RESOURCE_VIEW_DESC, ppsrview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateShaderResourceView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D10_SHADER_RESOURCE_VIEW_DESC, ppsrview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateShaderResourceView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppsrview)).into() } - unsafe extern "system" fn CreateRenderTargetView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D10_RENDER_TARGET_VIEW_DESC, pprtview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateRenderTargetView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D10_RENDER_TARGET_VIEW_DESC, pprtview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateRenderTargetView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pprtview)).into() } - unsafe extern "system" fn CreateDepthStencilView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D10_DEPTH_STENCIL_VIEW_DESC, ppdepthstencilview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateDepthStencilView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D10_DEPTH_STENCIL_VIEW_DESC, ppdepthstencilview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateDepthStencilView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppdepthstencilview)).into() } - unsafe extern "system" fn CreateInputLayout(this: *mut core::ffi::c_void, pinputelementdescs: *const D3D10_INPUT_ELEMENT_DESC, numelements: u32, pshaderbytecodewithinputsignature: *const core::ffi::c_void, bytecodelength: usize, ppinputlayout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateInputLayout(this: *mut core::ffi::c_void, pinputelementdescs: *const D3D10_INPUT_ELEMENT_DESC, numelements: u32, pshaderbytecodewithinputsignature: *const core::ffi::c_void, bytecodelength: usize, ppinputlayout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateInputLayout(this, core::mem::transmute_copy(&pinputelementdescs), core::mem::transmute_copy(&numelements), core::mem::transmute_copy(&pshaderbytecodewithinputsignature), core::mem::transmute_copy(&bytecodelength), core::mem::transmute_copy(&ppinputlayout)).into() } - unsafe extern "system" fn CreateVertexShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, ppvertexshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateVertexShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, ppvertexshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateVertexShader(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), core::mem::transmute_copy(&ppvertexshader)).into() } - unsafe extern "system" fn CreateGeometryShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, ppgeometryshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateGeometryShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, ppgeometryshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateGeometryShader(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), core::mem::transmute_copy(&ppgeometryshader)).into() } - unsafe extern "system" fn CreateGeometryShaderWithStreamOutput(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, psodeclaration: *const D3D10_SO_DECLARATION_ENTRY, numentries: u32, outputstreamstride: u32, ppgeometryshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateGeometryShaderWithStreamOutput(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, psodeclaration: *const D3D10_SO_DECLARATION_ENTRY, numentries: u32, outputstreamstride: u32, ppgeometryshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateGeometryShaderWithStreamOutput(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), core::mem::transmute_copy(&psodeclaration), core::mem::transmute_copy(&numentries), core::mem::transmute_copy(&outputstreamstride), core::mem::transmute_copy(&ppgeometryshader)).into() } - unsafe extern "system" fn CreatePixelShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pppixelshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreatePixelShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pppixelshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreatePixelShader(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), core::mem::transmute_copy(&pppixelshader)).into() } - unsafe extern "system" fn CreateBlendState(this: *mut core::ffi::c_void, pblendstatedesc: *const D3D10_BLEND_DESC, ppblendstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateBlendState(this: *mut core::ffi::c_void, pblendstatedesc: *const D3D10_BLEND_DESC, ppblendstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateBlendState(this, core::mem::transmute_copy(&pblendstatedesc), core::mem::transmute_copy(&ppblendstate)).into() } - unsafe extern "system" fn CreateDepthStencilState(this: *mut core::ffi::c_void, pdepthstencildesc: *const D3D10_DEPTH_STENCIL_DESC, ppdepthstencilstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateDepthStencilState(this: *mut core::ffi::c_void, pdepthstencildesc: *const D3D10_DEPTH_STENCIL_DESC, ppdepthstencilstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateDepthStencilState(this, core::mem::transmute_copy(&pdepthstencildesc), core::mem::transmute_copy(&ppdepthstencilstate)).into() } - unsafe extern "system" fn CreateRasterizerState(this: *mut core::ffi::c_void, prasterizerdesc: *const D3D10_RASTERIZER_DESC, pprasterizerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateRasterizerState(this: *mut core::ffi::c_void, prasterizerdesc: *const D3D10_RASTERIZER_DESC, pprasterizerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateRasterizerState(this, core::mem::transmute_copy(&prasterizerdesc), core::mem::transmute_copy(&pprasterizerstate)).into() } - unsafe extern "system" fn CreateSamplerState(this: *mut core::ffi::c_void, psamplerdesc: *const D3D10_SAMPLER_DESC, ppsamplerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateSamplerState(this: *mut core::ffi::c_void, psamplerdesc: *const D3D10_SAMPLER_DESC, ppsamplerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateSamplerState(this, core::mem::transmute_copy(&psamplerdesc), core::mem::transmute_copy(&ppsamplerstate)).into() } - unsafe extern "system" fn CreateQuery(this: *mut core::ffi::c_void, pquerydesc: *const D3D10_QUERY_DESC, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateQuery(this: *mut core::ffi::c_void, pquerydesc: *const D3D10_QUERY_DESC, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateQuery(this, core::mem::transmute_copy(&pquerydesc), core::mem::transmute_copy(&ppquery)).into() } - unsafe extern "system" fn CreatePredicate(this: *mut core::ffi::c_void, ppredicatedesc: *const D3D10_QUERY_DESC, pppredicate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreatePredicate(this: *mut core::ffi::c_void, ppredicatedesc: *const D3D10_QUERY_DESC, pppredicate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreatePredicate(this, core::mem::transmute_copy(&ppredicatedesc), core::mem::transmute_copy(&pppredicate)).into() } - unsafe extern "system" fn CreateCounter(this: *mut core::ffi::c_void, pcounterdesc: *const D3D10_COUNTER_DESC, ppcounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CreateCounter(this: *mut core::ffi::c_void, pcounterdesc: *const D3D10_COUNTER_DESC, ppcounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CreateCounter(this, core::mem::transmute_copy(&pcounterdesc), core::mem::transmute_copy(&ppcounter)).into() } - unsafe extern "system" fn CheckFormatSupport(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, pformatsupport: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CheckFormatSupport(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, pformatsupport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10Device_Impl::CheckFormatSupport(this, core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -1040,10 +692,7 @@ impl ID3D10Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckMultisampleQualityLevels(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, samplecount: u32, pnumqualitylevels: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CheckMultisampleQualityLevels(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, samplecount: u32, pnumqualitylevels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10Device_Impl::CheckMultisampleQualityLevels(this, core::mem::transmute_copy(&format), core::mem::transmute_copy(&samplecount)) { Ok(ok__) => { @@ -1053,45 +702,27 @@ impl ID3D10Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckCounterInfo(this: *mut core::ffi::c_void, pcounterinfo: *mut D3D10_COUNTER_INFO) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CheckCounterInfo(this: *mut core::ffi::c_void, pcounterinfo: *mut D3D10_COUNTER_INFO) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CheckCounterInfo(this, core::mem::transmute_copy(&pcounterinfo)) } - unsafe extern "system" fn CheckCounter(this: *mut core::ffi::c_void, pdesc: *const D3D10_COUNTER_DESC, ptype: *mut D3D10_COUNTER_TYPE, pactivecounters: *mut u32, szname: windows_core::PSTR, pnamelength: *mut u32, szunits: windows_core::PSTR, punitslength: *mut u32, szdescription: windows_core::PSTR, pdescriptionlength: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn CheckCounter(this: *mut core::ffi::c_void, pdesc: *const D3D10_COUNTER_DESC, ptype: *mut D3D10_COUNTER_TYPE, pactivecounters: *mut u32, szname: windows_core::PSTR, pnamelength: *mut u32, szunits: windows_core::PSTR, punitslength: *mut u32, szdescription: windows_core::PSTR, pdescriptionlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::CheckCounter(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pactivecounters), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&pnamelength), core::mem::transmute_copy(&szunits), core::mem::transmute_copy(&punitslength), core::mem::transmute_copy(&szdescription), core::mem::transmute_copy(&pdescriptionlength)).into() } - unsafe extern "system" fn GetCreationFlags(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GetCreationFlags(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GetCreationFlags(this) } - unsafe extern "system" fn OpenSharedResource(this: *mut core::ffi::c_void, hresource: super::super::Foundation::HANDLE, returnedinterface: *const windows_core::GUID, ppresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn OpenSharedResource(this: *mut core::ffi::c_void, hresource: super::super::Foundation::HANDLE, returnedinterface: *const windows_core::GUID, ppresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::OpenSharedResource(this, core::mem::transmute_copy(&hresource), core::mem::transmute_copy(&returnedinterface), core::mem::transmute_copy(&ppresource)).into() } - unsafe extern "system" fn SetTextFilterSize(this: *mut core::ffi::c_void, width: u32, height: u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn SetTextFilterSize(this: *mut core::ffi::c_void, width: u32, height: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::SetTextFilterSize(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)) } - unsafe extern "system" fn GetTextFilterSize(this: *mut core::ffi::c_void, pwidth: *mut u32, pheight: *mut u32) - where - Identity: ID3D10Device_Impl, - { + unsafe extern "system" fn GetTextFilterSize(this: *mut core::ffi::c_void, pwidth: *mut u32, pheight: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GetTextFilterSize(this, core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)) } @@ -1208,28 +839,16 @@ pub trait ID3D10Device1_Impl: Sized + ID3D10Device_Impl { impl windows_core::RuntimeName for ID3D10Device1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D10Device1_Vtbl { - pub const fn new() -> ID3D10Device1_Vtbl - where - Identity: ID3D10Device1_Impl, - { - unsafe extern "system" fn CreateShaderResourceView1(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D10_SHADER_RESOURCE_VIEW_DESC1, ppsrview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device1_Impl, - { + pub const fn new() -> ID3D10Device1_Vtbl { + unsafe extern "system" fn CreateShaderResourceView1(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D10_SHADER_RESOURCE_VIEW_DESC1, ppsrview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device1_Impl::CreateShaderResourceView1(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppsrview)).into() } - unsafe extern "system" fn CreateBlendState1(this: *mut core::ffi::c_void, pblendstatedesc: *const D3D10_BLEND_DESC1, ppblendstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Device1_Impl, - { + unsafe extern "system" fn CreateBlendState1(this: *mut core::ffi::c_void, pblendstatedesc: *const D3D10_BLEND_DESC1, ppblendstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device1_Impl::CreateBlendState1(this, core::mem::transmute_copy(&pblendstatedesc), core::mem::transmute_copy(&ppblendstate)).into() } - unsafe extern "system" fn GetFeatureLevel(this: *mut core::ffi::c_void) -> D3D10_FEATURE_LEVEL1 - where - Identity: ID3D10Device1_Impl, - { + unsafe extern "system" fn GetFeatureLevel(this: *mut core::ffi::c_void) -> D3D10_FEATURE_LEVEL1 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device1_Impl::GetFeatureLevel(this) } @@ -1244,7 +863,7 @@ impl ID3D10Device1_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ID3D10DeviceChild_Impl: Sized { +pub trait ID3D10DeviceChild_Impl: Sized + windows_core::IUnknownImpl { fn GetDevice(&self, ppdevice: *mut Option); fn GetPrivateData(&self, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::Result<()>; @@ -1252,35 +871,20 @@ pub trait ID3D10DeviceChild_Impl: Sized { } impl windows_core::RuntimeName for ID3D10DeviceChild {} impl ID3D10DeviceChild_Vtbl { - pub const fn new() -> ID3D10DeviceChild_Vtbl - where - Identity: ID3D10DeviceChild_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) - where - Identity: ID3D10DeviceChild_Impl, - { + pub const fn new() -> ID3D10DeviceChild_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10DeviceChild_Impl::GetDevice(this, core::mem::transmute_copy(&ppdevice)) } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10DeviceChild_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10DeviceChild_Impl::GetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pdatasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10DeviceChild_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10DeviceChild_Impl::SetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10DeviceChild_Impl, - { + unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10DeviceChild_Impl::SetPrivateDataInterface(this, core::mem::transmute_copy(&guid), windows_core::from_raw_borrowed(&pdata)).into() } @@ -1296,7 +900,7 @@ impl ID3D10DeviceChild_Vtbl { iid == &::IID } } -pub trait ID3D10Effect_Impl: Sized { +pub trait ID3D10Effect_Impl: Sized + windows_core::IUnknownImpl { fn IsValid(&self) -> super::super::Foundation::BOOL; fn IsPool(&self) -> super::super::Foundation::BOOL; fn GetDevice(&self) -> windows_core::Result; @@ -1313,28 +917,16 @@ pub trait ID3D10Effect_Impl: Sized { } impl windows_core::RuntimeName for ID3D10Effect {} impl ID3D10Effect_Vtbl { - pub const fn new() -> ID3D10Effect_Vtbl - where - Identity: ID3D10Effect_Impl, - { - unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D10Effect_Impl, - { + pub const fn new() -> ID3D10Effect_Vtbl { + unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::IsValid(this) } - unsafe extern "system" fn IsPool(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn IsPool(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::IsPool(this) } - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10Effect_Impl::GetDevice(this) { Ok(ok__) => { @@ -1344,73 +936,43 @@ impl ID3D10Effect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_EFFECT_DESC) -> windows_core::HRESULT - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_EFFECT_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetConstantBufferByIndex(this: *mut core::ffi::c_void, index: u32) -> Option - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn GetConstantBufferByIndex(this: *mut core::ffi::c_void, index: u32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::GetConstantBufferByIndex(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetConstantBufferByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn GetConstantBufferByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::GetConstantBufferByName(this, core::mem::transmute(&name)) } - unsafe extern "system" fn GetVariableByIndex(this: *mut core::ffi::c_void, index: u32) -> Option - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn GetVariableByIndex(this: *mut core::ffi::c_void, index: u32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::GetVariableByIndex(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetVariableByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn GetVariableByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::GetVariableByName(this, core::mem::transmute(&name)) } - unsafe extern "system" fn GetVariableBySemantic(this: *mut core::ffi::c_void, semantic: windows_core::PCSTR) -> Option - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn GetVariableBySemantic(this: *mut core::ffi::c_void, semantic: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::GetVariableBySemantic(this, core::mem::transmute(&semantic)) } - unsafe extern "system" fn GetTechniqueByIndex(this: *mut core::ffi::c_void, index: u32) -> Option - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn GetTechniqueByIndex(this: *mut core::ffi::c_void, index: u32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::GetTechniqueByIndex(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetTechniqueByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn GetTechniqueByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::GetTechniqueByName(this, core::mem::transmute(&name)) } - unsafe extern "system" fn Optimize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn Optimize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::Optimize(this).into() } - unsafe extern "system" fn IsOptimized(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D10Effect_Impl, - { + unsafe extern "system" fn IsOptimized(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::IsOptimized(this) } @@ -1785,19 +1347,13 @@ impl ID3D10EffectPass { unsafe { windows_core::ScopedInterface::new(core::mem::transmute(&this.vtable)) } } } -pub trait ID3D10EffectPool_Impl: Sized { +pub trait ID3D10EffectPool_Impl: Sized + windows_core::IUnknownImpl { fn AsEffect(&self) -> Option; } impl windows_core::RuntimeName for ID3D10EffectPool {} impl ID3D10EffectPool_Vtbl { - pub const fn new() -> ID3D10EffectPool_Vtbl - where - Identity: ID3D10EffectPool_Impl, - { - unsafe extern "system" fn AsEffect(this: *mut core::ffi::c_void) -> Option - where - Identity: ID3D10EffectPool_Impl, - { + pub const fn new() -> ID3D10EffectPool_Vtbl { + unsafe extern "system" fn AsEffect(this: *mut core::ffi::c_void) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10EffectPool_Impl::AsEffect(this) } @@ -2683,17 +2239,14 @@ impl ID3D10EffectVectorVariable { pub trait ID3D10GeometryShader_Impl: Sized + ID3D10DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D10GeometryShader {} impl ID3D10GeometryShader_Vtbl { - pub const fn new() -> ID3D10GeometryShader_Vtbl - where - Identity: ID3D10GeometryShader_Impl, - { + pub const fn new() -> ID3D10GeometryShader_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait ID3D10InfoQueue_Impl: Sized { +pub trait ID3D10InfoQueue_Impl: Sized + windows_core::IUnknownImpl { fn SetMessageCountLimit(&self, messagecountlimit: u64) -> windows_core::Result<()>; fn ClearStoredMessages(&self); fn GetMessage(&self, messageindex: u64, pmessage: *mut D3D10_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::Result<()>; @@ -2732,252 +2285,144 @@ pub trait ID3D10InfoQueue_Impl: Sized { } impl windows_core::RuntimeName for ID3D10InfoQueue {} impl ID3D10InfoQueue_Vtbl { - pub const fn new() -> ID3D10InfoQueue_Vtbl - where - Identity: ID3D10InfoQueue_Impl, - { - unsafe extern "system" fn SetMessageCountLimit(this: *mut core::ffi::c_void, messagecountlimit: u64) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + pub const fn new() -> ID3D10InfoQueue_Vtbl { + unsafe extern "system" fn SetMessageCountLimit(this: *mut core::ffi::c_void, messagecountlimit: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::SetMessageCountLimit(this, core::mem::transmute_copy(&messagecountlimit)).into() } - unsafe extern "system" fn ClearStoredMessages(this: *mut core::ffi::c_void) - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn ClearStoredMessages(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::ClearStoredMessages(this) } - unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, messageindex: u64, pmessage: *mut D3D10_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, messageindex: u64, pmessage: *mut D3D10_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetMessage(this, core::mem::transmute_copy(&messageindex), core::mem::transmute_copy(&pmessage), core::mem::transmute_copy(&pmessagebytelength)).into() } - unsafe extern "system" fn GetNumMessagesAllowedByStorageFilter(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesAllowedByStorageFilter(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetNumMessagesAllowedByStorageFilter(this) } - unsafe extern "system" fn GetNumMessagesDeniedByStorageFilter(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesDeniedByStorageFilter(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetNumMessagesDeniedByStorageFilter(this) } - unsafe extern "system" fn GetNumStoredMessages(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetNumStoredMessages(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetNumStoredMessages(this) } - unsafe extern "system" fn GetNumStoredMessagesAllowedByRetrievalFilter(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetNumStoredMessagesAllowedByRetrievalFilter(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetNumStoredMessagesAllowedByRetrievalFilter(this) } - unsafe extern "system" fn GetNumMessagesDiscardedByMessageCountLimit(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesDiscardedByMessageCountLimit(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetNumMessagesDiscardedByMessageCountLimit(this) } - unsafe extern "system" fn GetMessageCountLimit(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetMessageCountLimit(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetMessageCountLimit(this) } - unsafe extern "system" fn AddStorageFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn AddStorageFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::AddStorageFilterEntries(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn GetStorageFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D10_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetStorageFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D10_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetStorageFilter(this, core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&pfilterbytelength)).into() } - unsafe extern "system" fn ClearStorageFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn ClearStorageFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::ClearStorageFilter(this) } - unsafe extern "system" fn PushEmptyStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn PushEmptyStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::PushEmptyStorageFilter(this).into() } - unsafe extern "system" fn PushCopyOfStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn PushCopyOfStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::PushCopyOfStorageFilter(this).into() } - unsafe extern "system" fn PushStorageFilter(this: *mut core::ffi::c_void, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn PushStorageFilter(this: *mut core::ffi::c_void, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::PushStorageFilter(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn PopStorageFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn PopStorageFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::PopStorageFilter(this) } - unsafe extern "system" fn GetStorageFilterStackSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetStorageFilterStackSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetStorageFilterStackSize(this) } - unsafe extern "system" fn AddRetrievalFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn AddRetrievalFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::AddRetrievalFilterEntries(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn GetRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D10_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D10_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetRetrievalFilter(this, core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&pfilterbytelength)).into() } - unsafe extern "system" fn ClearRetrievalFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn ClearRetrievalFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::ClearRetrievalFilter(this) } - unsafe extern "system" fn PushEmptyRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn PushEmptyRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::PushEmptyRetrievalFilter(this).into() } - unsafe extern "system" fn PushCopyOfRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn PushCopyOfRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::PushCopyOfRetrievalFilter(this).into() } - unsafe extern "system" fn PushRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn PushRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *const D3D10_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::PushRetrievalFilter(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn PopRetrievalFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn PopRetrievalFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::PopRetrievalFilter(this) } - unsafe extern "system" fn GetRetrievalFilterStackSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetRetrievalFilterStackSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetRetrievalFilterStackSize(this) } - unsafe extern "system" fn AddMessage(this: *mut core::ffi::c_void, category: D3D10_MESSAGE_CATEGORY, severity: D3D10_MESSAGE_SEVERITY, id: D3D10_MESSAGE_ID, pdescription: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn AddMessage(this: *mut core::ffi::c_void, category: D3D10_MESSAGE_CATEGORY, severity: D3D10_MESSAGE_SEVERITY, id: D3D10_MESSAGE_ID, pdescription: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::AddMessage(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&severity), core::mem::transmute_copy(&id), core::mem::transmute(&pdescription)).into() } - unsafe extern "system" fn AddApplicationMessage(this: *mut core::ffi::c_void, severity: D3D10_MESSAGE_SEVERITY, pdescription: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn AddApplicationMessage(this: *mut core::ffi::c_void, severity: D3D10_MESSAGE_SEVERITY, pdescription: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::AddApplicationMessage(this, core::mem::transmute_copy(&severity), core::mem::transmute(&pdescription)).into() } - unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D10_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D10_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::SetBreakOnCategory(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D10_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D10_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::SetBreakOnSeverity(this, core::mem::transmute_copy(&severity), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D10_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D10_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::SetBreakOnID(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D10_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D10_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetBreakOnCategory(this, core::mem::transmute_copy(&category)) } - unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D10_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D10_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetBreakOnSeverity(this, core::mem::transmute_copy(&severity)) } - unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D10_MESSAGE_ID) -> super::super::Foundation::BOOL - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D10_MESSAGE_ID) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetBreakOnID(this, core::mem::transmute_copy(&id)) } - unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::SetMuteDebugOutput(this, core::mem::transmute_copy(&bmute)) } - unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D10InfoQueue_Impl, - { + unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetMuteDebugOutput(this) } @@ -3027,17 +2472,14 @@ impl ID3D10InfoQueue_Vtbl { pub trait ID3D10InputLayout_Impl: Sized + ID3D10DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D10InputLayout {} impl ID3D10InputLayout_Vtbl { - pub const fn new() -> ID3D10InputLayout_Vtbl - where - Identity: ID3D10InputLayout_Impl, - { + pub const fn new() -> ID3D10InputLayout_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait ID3D10Multithread_Impl: Sized { +pub trait ID3D10Multithread_Impl: Sized + windows_core::IUnknownImpl { fn Enter(&self); fn Leave(&self); fn SetMultithreadProtected(&self, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; @@ -3045,35 +2487,20 @@ pub trait ID3D10Multithread_Impl: Sized { } impl windows_core::RuntimeName for ID3D10Multithread {} impl ID3D10Multithread_Vtbl { - pub const fn new() -> ID3D10Multithread_Vtbl - where - Identity: ID3D10Multithread_Impl, - { - unsafe extern "system" fn Enter(this: *mut core::ffi::c_void) - where - Identity: ID3D10Multithread_Impl, - { + pub const fn new() -> ID3D10Multithread_Vtbl { + unsafe extern "system" fn Enter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Multithread_Impl::Enter(this) } - unsafe extern "system" fn Leave(this: *mut core::ffi::c_void) - where - Identity: ID3D10Multithread_Impl, - { + unsafe extern "system" fn Leave(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Multithread_Impl::Leave(this) } - unsafe extern "system" fn SetMultithreadProtected(this: *mut core::ffi::c_void, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL - where - Identity: ID3D10Multithread_Impl, - { + unsafe extern "system" fn SetMultithreadProtected(this: *mut core::ffi::c_void, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Multithread_Impl::SetMultithreadProtected(this, core::mem::transmute_copy(&bmtprotect)) } - unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D10Multithread_Impl, - { + unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Multithread_Impl::GetMultithreadProtected(this) } @@ -3092,10 +2519,7 @@ impl ID3D10Multithread_Vtbl { pub trait ID3D10PixelShader_Impl: Sized + ID3D10DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D10PixelShader {} impl ID3D10PixelShader_Vtbl { - pub const fn new() -> ID3D10PixelShader_Vtbl - where - Identity: ID3D10PixelShader_Impl, - { + pub const fn new() -> ID3D10PixelShader_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -3105,10 +2529,7 @@ impl ID3D10PixelShader_Vtbl { pub trait ID3D10Predicate_Impl: Sized + ID3D10Query_Impl {} impl windows_core::RuntimeName for ID3D10Predicate {} impl ID3D10Predicate_Vtbl { - pub const fn new() -> ID3D10Predicate_Vtbl - where - Identity: ID3D10Predicate_Impl, - { + pub const fn new() -> ID3D10Predicate_Vtbl { Self { base__: ID3D10Query_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -3120,14 +2541,8 @@ pub trait ID3D10Query_Impl: Sized + ID3D10Asynchronous_Impl { } impl windows_core::RuntimeName for ID3D10Query {} impl ID3D10Query_Vtbl { - pub const fn new() -> ID3D10Query_Vtbl - where - Identity: ID3D10Query_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_QUERY_DESC) - where - Identity: ID3D10Query_Impl, - { + pub const fn new() -> ID3D10Query_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_QUERY_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Query_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3142,14 +2557,8 @@ pub trait ID3D10RasterizerState_Impl: Sized + ID3D10DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D10RasterizerState {} impl ID3D10RasterizerState_Vtbl { - pub const fn new() -> ID3D10RasterizerState_Vtbl - where - Identity: ID3D10RasterizerState_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_RASTERIZER_DESC) - where - Identity: ID3D10RasterizerState_Impl, - { + pub const fn new() -> ID3D10RasterizerState_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_RASTERIZER_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10RasterizerState_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3167,14 +2576,8 @@ pub trait ID3D10RenderTargetView_Impl: Sized + ID3D10View_Impl { impl windows_core::RuntimeName for ID3D10RenderTargetView {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D10RenderTargetView_Vtbl { - pub const fn new() -> ID3D10RenderTargetView_Vtbl - where - Identity: ID3D10RenderTargetView_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_RENDER_TARGET_VIEW_DESC) - where - Identity: ID3D10RenderTargetView_Impl, - { + pub const fn new() -> ID3D10RenderTargetView_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_RENDER_TARGET_VIEW_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10RenderTargetView_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3191,28 +2594,16 @@ pub trait ID3D10Resource_Impl: Sized + ID3D10DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D10Resource {} impl ID3D10Resource_Vtbl { - pub const fn new() -> ID3D10Resource_Vtbl - where - Identity: ID3D10Resource_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, rtype: *mut D3D10_RESOURCE_DIMENSION) - where - Identity: ID3D10Resource_Impl, - { + pub const fn new() -> ID3D10Resource_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, rtype: *mut D3D10_RESOURCE_DIMENSION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Resource_Impl::GetType(this, core::mem::transmute_copy(&rtype)) } - unsafe extern "system" fn SetEvictionPriority(this: *mut core::ffi::c_void, evictionpriority: u32) - where - Identity: ID3D10Resource_Impl, - { + unsafe extern "system" fn SetEvictionPriority(this: *mut core::ffi::c_void, evictionpriority: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Resource_Impl::SetEvictionPriority(this, core::mem::transmute_copy(&evictionpriority)) } - unsafe extern "system" fn GetEvictionPriority(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D10Resource_Impl, - { + unsafe extern "system" fn GetEvictionPriority(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Resource_Impl::GetEvictionPriority(this) } @@ -3232,14 +2623,8 @@ pub trait ID3D10SamplerState_Impl: Sized + ID3D10DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D10SamplerState {} impl ID3D10SamplerState_Vtbl { - pub const fn new() -> ID3D10SamplerState_Vtbl - where - Identity: ID3D10SamplerState_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_SAMPLER_DESC) - where - Identity: ID3D10SamplerState_Impl, - { + pub const fn new() -> ID3D10SamplerState_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_SAMPLER_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10SamplerState_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3250,7 +2635,7 @@ impl ID3D10SamplerState_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D")] -pub trait ID3D10ShaderReflection_Impl: Sized { +pub trait ID3D10ShaderReflection_Impl: Sized + windows_core::IUnknownImpl { fn GetDesc(&self, pdesc: *mut D3D10_SHADER_DESC) -> windows_core::Result<()>; fn GetConstantBufferByIndex(&self, index: u32) -> Option; fn GetConstantBufferByName(&self, name: &windows_core::PCSTR) -> Option; @@ -3262,49 +2647,28 @@ pub trait ID3D10ShaderReflection_Impl: Sized { impl windows_core::RuntimeName for ID3D10ShaderReflection {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10ShaderReflection_Vtbl { - pub const fn new() -> ID3D10ShaderReflection_Vtbl - where - Identity: ID3D10ShaderReflection_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_SHADER_DESC) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection_Impl, - { + pub const fn new() -> ID3D10ShaderReflection_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_SHADER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetConstantBufferByIndex(this: *mut core::ffi::c_void, index: u32) -> Option - where - Identity: ID3D10ShaderReflection_Impl, - { + unsafe extern "system" fn GetConstantBufferByIndex(this: *mut core::ffi::c_void, index: u32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection_Impl::GetConstantBufferByIndex(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetConstantBufferByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option - where - Identity: ID3D10ShaderReflection_Impl, - { + unsafe extern "system" fn GetConstantBufferByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection_Impl::GetConstantBufferByName(this, core::mem::transmute(&name)) } - unsafe extern "system" fn GetResourceBindingDesc(this: *mut core::ffi::c_void, resourceindex: u32, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection_Impl, - { + unsafe extern "system" fn GetResourceBindingDesc(this: *mut core::ffi::c_void, resourceindex: u32, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection_Impl::GetResourceBindingDesc(this, core::mem::transmute_copy(&resourceindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetInputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection_Impl, - { + unsafe extern "system" fn GetInputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection_Impl::GetInputParameterDesc(this, core::mem::transmute_copy(¶meterindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetOutputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection_Impl, - { + unsafe extern "system" fn GetOutputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection_Impl::GetOutputParameterDesc(this, core::mem::transmute_copy(¶meterindex), core::mem::transmute_copy(&pdesc)).into() } @@ -3323,7 +2687,7 @@ impl ID3D10ShaderReflection_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D")] -pub trait ID3D10ShaderReflection1_Impl: Sized { +pub trait ID3D10ShaderReflection1_Impl: Sized + windows_core::IUnknownImpl { fn GetDesc(&self, pdesc: *mut D3D10_SHADER_DESC) -> windows_core::Result<()>; fn GetConstantBufferByIndex(&self, index: u32) -> Option; fn GetConstantBufferByName(&self, name: &windows_core::PCSTR) -> Option; @@ -3344,70 +2708,40 @@ pub trait ID3D10ShaderReflection1_Impl: Sized { impl windows_core::RuntimeName for ID3D10ShaderReflection1 {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10ShaderReflection1_Vtbl { - pub const fn new() -> ID3D10ShaderReflection1_Vtbl - where - Identity: ID3D10ShaderReflection1_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_SHADER_DESC) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + pub const fn new() -> ID3D10ShaderReflection1_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_SHADER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection1_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetConstantBufferByIndex(this: *mut core::ffi::c_void, index: u32) -> Option - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetConstantBufferByIndex(this: *mut core::ffi::c_void, index: u32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection1_Impl::GetConstantBufferByIndex(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetConstantBufferByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetConstantBufferByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection1_Impl::GetConstantBufferByName(this, core::mem::transmute(&name)) } - unsafe extern "system" fn GetResourceBindingDesc(this: *mut core::ffi::c_void, resourceindex: u32, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetResourceBindingDesc(this: *mut core::ffi::c_void, resourceindex: u32, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection1_Impl::GetResourceBindingDesc(this, core::mem::transmute_copy(&resourceindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetInputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetInputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection1_Impl::GetInputParameterDesc(this, core::mem::transmute_copy(¶meterindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetOutputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetOutputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D10_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection1_Impl::GetOutputParameterDesc(this, core::mem::transmute_copy(¶meterindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetVariableByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetVariableByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection1_Impl::GetVariableByName(this, core::mem::transmute(&name)) } - unsafe extern "system" fn GetResourceBindingDescByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetResourceBindingDescByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, pdesc: *mut D3D10_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderReflection1_Impl::GetResourceBindingDescByName(this, core::mem::transmute(&name), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetMovInstructionCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetMovInstructionCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10ShaderReflection1_Impl::GetMovInstructionCount(this) { Ok(ok__) => { @@ -3417,10 +2751,7 @@ impl ID3D10ShaderReflection1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMovcInstructionCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetMovcInstructionCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10ShaderReflection1_Impl::GetMovcInstructionCount(this) { Ok(ok__) => { @@ -3430,10 +2761,7 @@ impl ID3D10ShaderReflection1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConversionInstructionCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetConversionInstructionCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10ShaderReflection1_Impl::GetConversionInstructionCount(this) { Ok(ok__) => { @@ -3443,10 +2771,7 @@ impl ID3D10ShaderReflection1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBitwiseInstructionCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetBitwiseInstructionCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10ShaderReflection1_Impl::GetBitwiseInstructionCount(this) { Ok(ok__) => { @@ -3456,10 +2781,7 @@ impl ID3D10ShaderReflection1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGSInputPrimitive(this: *mut core::ffi::c_void, pprim: *mut super::Direct3D::D3D_PRIMITIVE) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn GetGSInputPrimitive(this: *mut core::ffi::c_void, pprim: *mut super::Direct3D::D3D_PRIMITIVE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10ShaderReflection1_Impl::GetGSInputPrimitive(this) { Ok(ok__) => { @@ -3469,10 +2791,7 @@ impl ID3D10ShaderReflection1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLevel9Shader(this: *mut core::ffi::c_void, pblevel9shader: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn IsLevel9Shader(this: *mut core::ffi::c_void, pblevel9shader: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10ShaderReflection1_Impl::IsLevel9Shader(this) { Ok(ok__) => { @@ -3482,10 +2801,7 @@ impl ID3D10ShaderReflection1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void, pbsamplefrequency: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D10ShaderReflection1_Impl, - { + unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void, pbsamplefrequency: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10ShaderReflection1_Impl::IsSampleFrequencyShader(this) { Ok(ok__) => { @@ -3652,14 +2968,8 @@ pub trait ID3D10ShaderResourceView_Impl: Sized + ID3D10View_Impl { impl windows_core::RuntimeName for ID3D10ShaderResourceView {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D10ShaderResourceView_Vtbl { - pub const fn new() -> ID3D10ShaderResourceView_Vtbl - where - Identity: ID3D10ShaderResourceView_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_SHADER_RESOURCE_VIEW_DESC) - where - Identity: ID3D10ShaderResourceView_Impl, - { + pub const fn new() -> ID3D10ShaderResourceView_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_SHADER_RESOURCE_VIEW_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderResourceView_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3677,14 +2987,8 @@ pub trait ID3D10ShaderResourceView1_Impl: Sized + ID3D10ShaderResourceView_Impl impl windows_core::RuntimeName for ID3D10ShaderResourceView1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D10ShaderResourceView1_Vtbl { - pub const fn new() -> ID3D10ShaderResourceView1_Vtbl - where - Identity: ID3D10ShaderResourceView1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D10_SHADER_RESOURCE_VIEW_DESC1) - where - Identity: ID3D10ShaderResourceView1_Impl, - { + pub const fn new() -> ID3D10ShaderResourceView1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D10_SHADER_RESOURCE_VIEW_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10ShaderResourceView1_Impl::GetDesc1(this, core::mem::transmute_copy(&pdesc)) } @@ -3694,7 +2998,7 @@ impl ID3D10ShaderResourceView1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D10StateBlock_Impl: Sized { +pub trait ID3D10StateBlock_Impl: Sized + windows_core::IUnknownImpl { fn Capture(&self) -> windows_core::Result<()>; fn Apply(&self) -> windows_core::Result<()>; fn ReleaseAllDeviceObjects(&self) -> windows_core::Result<()>; @@ -3702,35 +3006,20 @@ pub trait ID3D10StateBlock_Impl: Sized { } impl windows_core::RuntimeName for ID3D10StateBlock {} impl ID3D10StateBlock_Vtbl { - pub const fn new() -> ID3D10StateBlock_Vtbl - where - Identity: ID3D10StateBlock_Impl, - { - unsafe extern "system" fn Capture(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10StateBlock_Impl, - { + pub const fn new() -> ID3D10StateBlock_Vtbl { + unsafe extern "system" fn Capture(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10StateBlock_Impl::Capture(this).into() } - unsafe extern "system" fn Apply(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10StateBlock_Impl, - { + unsafe extern "system" fn Apply(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10StateBlock_Impl::Apply(this).into() } - unsafe extern "system" fn ReleaseAllDeviceObjects(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10StateBlock_Impl, - { + unsafe extern "system" fn ReleaseAllDeviceObjects(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10StateBlock_Impl::ReleaseAllDeviceObjects(this).into() } - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10StateBlock_Impl, - { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10StateBlock_Impl::GetDevice(this) { Ok(ok__) => { @@ -3752,27 +3041,18 @@ impl ID3D10StateBlock_Vtbl { iid == &::IID } } -pub trait ID3D10SwitchToRef_Impl: Sized { +pub trait ID3D10SwitchToRef_Impl: Sized + windows_core::IUnknownImpl { fn SetUseRef(&self, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; fn GetUseRef(&self) -> super::super::Foundation::BOOL; } impl windows_core::RuntimeName for ID3D10SwitchToRef {} impl ID3D10SwitchToRef_Vtbl { - pub const fn new() -> ID3D10SwitchToRef_Vtbl - where - Identity: ID3D10SwitchToRef_Impl, - { - unsafe extern "system" fn SetUseRef(this: *mut core::ffi::c_void, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL - where - Identity: ID3D10SwitchToRef_Impl, - { + pub const fn new() -> ID3D10SwitchToRef_Vtbl { + unsafe extern "system" fn SetUseRef(this: *mut core::ffi::c_void, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10SwitchToRef_Impl::SetUseRef(this, core::mem::transmute_copy(&useref)) } - unsafe extern "system" fn GetUseRef(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D10SwitchToRef_Impl, - { + unsafe extern "system" fn GetUseRef(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10SwitchToRef_Impl::GetUseRef(this) } @@ -3796,28 +3076,16 @@ pub trait ID3D10Texture1D_Impl: Sized + ID3D10Resource_Impl { impl windows_core::RuntimeName for ID3D10Texture1D {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D10Texture1D_Vtbl { - pub const fn new() -> ID3D10Texture1D_Vtbl - where - Identity: ID3D10Texture1D_Impl, - { - unsafe extern "system" fn Map(this: *mut core::ffi::c_void, subresource: u32, maptype: D3D10_MAP, mapflags: u32, ppdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D10Texture1D_Impl, - { + pub const fn new() -> ID3D10Texture1D_Vtbl { + unsafe extern "system" fn Map(this: *mut core::ffi::c_void, subresource: u32, maptype: D3D10_MAP, mapflags: u32, ppdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Texture1D_Impl::Map(this, core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&maptype), core::mem::transmute_copy(&mapflags), core::mem::transmute_copy(&ppdata)).into() } - unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void, subresource: u32) - where - Identity: ID3D10Texture1D_Impl, - { + unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void, subresource: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Texture1D_Impl::Unmap(this, core::mem::transmute_copy(&subresource)) } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_TEXTURE1D_DESC) - where - Identity: ID3D10Texture1D_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_TEXTURE1D_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Texture1D_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3842,14 +3110,8 @@ pub trait ID3D10Texture2D_Impl: Sized + ID3D10Resource_Impl { impl windows_core::RuntimeName for ID3D10Texture2D {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D10Texture2D_Vtbl { - pub const fn new() -> ID3D10Texture2D_Vtbl - where - Identity: ID3D10Texture2D_Impl, - { - unsafe extern "system" fn Map(this: *mut core::ffi::c_void, subresource: u32, maptype: D3D10_MAP, mapflags: u32, pmappedtex2d: *mut D3D10_MAPPED_TEXTURE2D) -> windows_core::HRESULT - where - Identity: ID3D10Texture2D_Impl, - { + pub const fn new() -> ID3D10Texture2D_Vtbl { + unsafe extern "system" fn Map(this: *mut core::ffi::c_void, subresource: u32, maptype: D3D10_MAP, mapflags: u32, pmappedtex2d: *mut D3D10_MAPPED_TEXTURE2D) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10Texture2D_Impl::Map(this, core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&maptype), core::mem::transmute_copy(&mapflags)) { Ok(ok__) => { @@ -3859,17 +3121,11 @@ impl ID3D10Texture2D_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void, subresource: u32) - where - Identity: ID3D10Texture2D_Impl, - { + unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void, subresource: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Texture2D_Impl::Unmap(this, core::mem::transmute_copy(&subresource)) } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_TEXTURE2D_DESC) - where - Identity: ID3D10Texture2D_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_TEXTURE2D_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Texture2D_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3894,14 +3150,8 @@ pub trait ID3D10Texture3D_Impl: Sized + ID3D10Resource_Impl { impl windows_core::RuntimeName for ID3D10Texture3D {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D10Texture3D_Vtbl { - pub const fn new() -> ID3D10Texture3D_Vtbl - where - Identity: ID3D10Texture3D_Impl, - { - unsafe extern "system" fn Map(this: *mut core::ffi::c_void, subresource: u32, maptype: D3D10_MAP, mapflags: u32, pmappedtex3d: *mut D3D10_MAPPED_TEXTURE3D) -> windows_core::HRESULT - where - Identity: ID3D10Texture3D_Impl, - { + pub const fn new() -> ID3D10Texture3D_Vtbl { + unsafe extern "system" fn Map(this: *mut core::ffi::c_void, subresource: u32, maptype: D3D10_MAP, mapflags: u32, pmappedtex3d: *mut D3D10_MAPPED_TEXTURE3D) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10Texture3D_Impl::Map(this, core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&maptype), core::mem::transmute_copy(&mapflags)) { Ok(ok__) => { @@ -3911,17 +3161,11 @@ impl ID3D10Texture3D_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void, subresource: u32) - where - Identity: ID3D10Texture3D_Impl, - { + unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void, subresource: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Texture3D_Impl::Unmap(this, core::mem::transmute_copy(&subresource)) } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_TEXTURE3D_DESC) - where - Identity: ID3D10Texture3D_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D10_TEXTURE3D_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Texture3D_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3939,10 +3183,7 @@ impl ID3D10Texture3D_Vtbl { pub trait ID3D10VertexShader_Impl: Sized + ID3D10DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D10VertexShader {} impl ID3D10VertexShader_Vtbl { - pub const fn new() -> ID3D10VertexShader_Vtbl - where - Identity: ID3D10VertexShader_Impl, - { + pub const fn new() -> ID3D10VertexShader_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -3954,14 +3195,8 @@ pub trait ID3D10View_Impl: Sized + ID3D10DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D10View {} impl ID3D10View_Vtbl { - pub const fn new() -> ID3D10View_Vtbl - where - Identity: ID3D10View_Impl, - { - unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, ppresource: *mut *mut core::ffi::c_void) - where - Identity: ID3D10View_Impl, - { + pub const fn new() -> ID3D10View_Vtbl { + unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, ppresource: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10View_Impl::GetResource(this, core::mem::transmute_copy(&ppresource)) } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs index bf3c619d8a..3e259c4390 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs @@ -3,14 +3,8 @@ pub trait ID3D11Asynchronous_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11Asynchronous {} impl ID3D11Asynchronous_Vtbl { - pub const fn new() -> ID3D11Asynchronous_Vtbl - where - Identity: ID3D11Asynchronous_Impl, - { - unsafe extern "system" fn GetDataSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11Asynchronous_Impl, - { + pub const fn new() -> ID3D11Asynchronous_Vtbl { + unsafe extern "system" fn GetDataSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Asynchronous_Impl::GetDataSize(this) } @@ -27,14 +21,8 @@ pub trait ID3D11AuthenticatedChannel_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11AuthenticatedChannel {} impl ID3D11AuthenticatedChannel_Vtbl { - pub const fn new() -> ID3D11AuthenticatedChannel_Vtbl - where - Identity: ID3D11AuthenticatedChannel_Impl, - { - unsafe extern "system" fn GetCertificateSize(this: *mut core::ffi::c_void, pcertificatesize: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11AuthenticatedChannel_Impl, - { + pub const fn new() -> ID3D11AuthenticatedChannel_Vtbl { + unsafe extern "system" fn GetCertificateSize(this: *mut core::ffi::c_void, pcertificatesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11AuthenticatedChannel_Impl::GetCertificateSize(this) { Ok(ok__) => { @@ -44,17 +32,11 @@ impl ID3D11AuthenticatedChannel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, certificatesize: u32, pcertificate: *mut u8) -> windows_core::HRESULT - where - Identity: ID3D11AuthenticatedChannel_Impl, - { + unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, certificatesize: u32, pcertificate: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11AuthenticatedChannel_Impl::GetCertificate(this, core::mem::transmute_copy(&certificatesize), core::mem::transmute_copy(&pcertificate)).into() } - unsafe extern "system" fn GetChannelHandle(this: *mut core::ffi::c_void, pchannelhandle: *mut super::super::Foundation::HANDLE) - where - Identity: ID3D11AuthenticatedChannel_Impl, - { + unsafe extern "system" fn GetChannelHandle(this: *mut core::ffi::c_void, pchannelhandle: *mut super::super::Foundation::HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11AuthenticatedChannel_Impl::GetChannelHandle(this, core::mem::transmute_copy(&pchannelhandle)) } @@ -74,14 +56,8 @@ pub trait ID3D11BlendState_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11BlendState {} impl ID3D11BlendState_Vtbl { - pub const fn new() -> ID3D11BlendState_Vtbl - where - Identity: ID3D11BlendState_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_BLEND_DESC) - where - Identity: ID3D11BlendState_Impl, - { + pub const fn new() -> ID3D11BlendState_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_BLEND_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11BlendState_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -96,14 +72,8 @@ pub trait ID3D11BlendState1_Impl: Sized + ID3D11BlendState_Impl { } impl windows_core::RuntimeName for ID3D11BlendState1 {} impl ID3D11BlendState1_Vtbl { - pub const fn new() -> ID3D11BlendState1_Vtbl - where - Identity: ID3D11BlendState1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D11_BLEND_DESC1) - where - Identity: ID3D11BlendState1_Impl, - { + pub const fn new() -> ID3D11BlendState1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D11_BLEND_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11BlendState1_Impl::GetDesc1(this, core::mem::transmute_copy(&pdesc)) } @@ -118,14 +88,8 @@ pub trait ID3D11Buffer_Impl: Sized + ID3D11Resource_Impl { } impl windows_core::RuntimeName for ID3D11Buffer {} impl ID3D11Buffer_Vtbl { - pub const fn new() -> ID3D11Buffer_Vtbl - where - Identity: ID3D11Buffer_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_BUFFER_DESC) - where - Identity: ID3D11Buffer_Impl, - { + pub const fn new() -> ID3D11Buffer_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_BUFFER_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Buffer_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -143,35 +107,20 @@ pub trait ID3D11ClassInstance_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11ClassInstance {} impl ID3D11ClassInstance_Vtbl { - pub const fn new() -> ID3D11ClassInstance_Vtbl - where - Identity: ID3D11ClassInstance_Impl, - { - unsafe extern "system" fn GetClassLinkage(this: *mut core::ffi::c_void, pplinkage: *mut *mut core::ffi::c_void) - where - Identity: ID3D11ClassInstance_Impl, - { + pub const fn new() -> ID3D11ClassInstance_Vtbl { + unsafe extern "system" fn GetClassLinkage(this: *mut core::ffi::c_void, pplinkage: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ClassInstance_Impl::GetClassLinkage(this, core::mem::transmute_copy(&pplinkage)) } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_CLASS_INSTANCE_DESC) - where - Identity: ID3D11ClassInstance_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_CLASS_INSTANCE_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ClassInstance_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } - unsafe extern "system" fn GetInstanceName(this: *mut core::ffi::c_void, pinstancename: windows_core::PSTR, pbufferlength: *mut usize) - where - Identity: ID3D11ClassInstance_Impl, - { + unsafe extern "system" fn GetInstanceName(this: *mut core::ffi::c_void, pinstancename: windows_core::PSTR, pbufferlength: *mut usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ClassInstance_Impl::GetInstanceName(this, core::mem::transmute_copy(&pinstancename), core::mem::transmute_copy(&pbufferlength)) } - unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, ptypename: windows_core::PSTR, pbufferlength: *mut usize) - where - Identity: ID3D11ClassInstance_Impl, - { + unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, ptypename: windows_core::PSTR, pbufferlength: *mut usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ClassInstance_Impl::GetTypeName(this, core::mem::transmute_copy(&ptypename), core::mem::transmute_copy(&pbufferlength)) } @@ -193,14 +142,8 @@ pub trait ID3D11ClassLinkage_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11ClassLinkage {} impl ID3D11ClassLinkage_Vtbl { - pub const fn new() -> ID3D11ClassLinkage_Vtbl - where - Identity: ID3D11ClassLinkage_Impl, - { - unsafe extern "system" fn GetClassInstance(this: *mut core::ffi::c_void, pclassinstancename: windows_core::PCSTR, instanceindex: u32, ppinstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11ClassLinkage_Impl, - { + pub const fn new() -> ID3D11ClassLinkage_Vtbl { + unsafe extern "system" fn GetClassInstance(this: *mut core::ffi::c_void, pclassinstancename: windows_core::PCSTR, instanceindex: u32, ppinstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11ClassLinkage_Impl::GetClassInstance(this, core::mem::transmute(&pclassinstancename), core::mem::transmute_copy(&instanceindex)) { Ok(ok__) => { @@ -210,10 +153,7 @@ impl ID3D11ClassLinkage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateClassInstance(this: *mut core::ffi::c_void, pclasstypename: windows_core::PCSTR, constantbufferoffset: u32, constantvectoroffset: u32, textureoffset: u32, sampleroffset: u32, ppinstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11ClassLinkage_Impl, - { + unsafe extern "system" fn CreateClassInstance(this: *mut core::ffi::c_void, pclasstypename: windows_core::PCSTR, constantbufferoffset: u32, constantvectoroffset: u32, textureoffset: u32, sampleroffset: u32, ppinstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11ClassLinkage_Impl::CreateClassInstance(this, core::mem::transmute(&pclasstypename), core::mem::transmute_copy(&constantbufferoffset), core::mem::transmute_copy(&constantvectoroffset), core::mem::transmute_copy(&textureoffset), core::mem::transmute_copy(&sampleroffset)) { Ok(ok__) => { @@ -238,14 +178,8 @@ pub trait ID3D11CommandList_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11CommandList {} impl ID3D11CommandList_Vtbl { - pub const fn new() -> ID3D11CommandList_Vtbl - where - Identity: ID3D11CommandList_Impl, - { - unsafe extern "system" fn GetContextFlags(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11CommandList_Impl, - { + pub const fn new() -> ID3D11CommandList_Vtbl { + unsafe extern "system" fn GetContextFlags(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11CommandList_Impl::GetContextFlags(this) } @@ -258,10 +192,7 @@ impl ID3D11CommandList_Vtbl { pub trait ID3D11ComputeShader_Impl: Sized + ID3D11DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D11ComputeShader {} impl ID3D11ComputeShader_Vtbl { - pub const fn new() -> ID3D11ComputeShader_Vtbl - where - Identity: ID3D11ComputeShader_Impl, - { + pub const fn new() -> ID3D11ComputeShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -273,14 +204,8 @@ pub trait ID3D11Counter_Impl: Sized + ID3D11Asynchronous_Impl { } impl windows_core::RuntimeName for ID3D11Counter {} impl ID3D11Counter_Vtbl { - pub const fn new() -> ID3D11Counter_Vtbl - where - Identity: ID3D11Counter_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_COUNTER_DESC) - where - Identity: ID3D11Counter_Impl, - { + pub const fn new() -> ID3D11Counter_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_COUNTER_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Counter_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -299,28 +224,16 @@ pub trait ID3D11CryptoSession_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11CryptoSession {} impl ID3D11CryptoSession_Vtbl { - pub const fn new() -> ID3D11CryptoSession_Vtbl - where - Identity: ID3D11CryptoSession_Impl, - { - unsafe extern "system" fn GetCryptoType(this: *mut core::ffi::c_void, pcryptotype: *mut windows_core::GUID) - where - Identity: ID3D11CryptoSession_Impl, - { + pub const fn new() -> ID3D11CryptoSession_Vtbl { + unsafe extern "system" fn GetCryptoType(this: *mut core::ffi::c_void, pcryptotype: *mut windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11CryptoSession_Impl::GetCryptoType(this, core::mem::transmute_copy(&pcryptotype)) } - unsafe extern "system" fn GetDecoderProfile(this: *mut core::ffi::c_void, pdecoderprofile: *mut windows_core::GUID) - where - Identity: ID3D11CryptoSession_Impl, - { + unsafe extern "system" fn GetDecoderProfile(this: *mut core::ffi::c_void, pdecoderprofile: *mut windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11CryptoSession_Impl::GetDecoderProfile(this, core::mem::transmute_copy(&pdecoderprofile)) } - unsafe extern "system" fn GetCertificateSize(this: *mut core::ffi::c_void, pcertificatesize: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11CryptoSession_Impl, - { + unsafe extern "system" fn GetCertificateSize(this: *mut core::ffi::c_void, pcertificatesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11CryptoSession_Impl::GetCertificateSize(this) { Ok(ok__) => { @@ -330,17 +243,11 @@ impl ID3D11CryptoSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, certificatesize: u32, pcertificate: *mut u8) -> windows_core::HRESULT - where - Identity: ID3D11CryptoSession_Impl, - { + unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, certificatesize: u32, pcertificate: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11CryptoSession_Impl::GetCertificate(this, core::mem::transmute_copy(&certificatesize), core::mem::transmute_copy(&pcertificate)).into() } - unsafe extern "system" fn GetCryptoSessionHandle(this: *mut core::ffi::c_void, pcryptosessionhandle: *mut super::super::Foundation::HANDLE) - where - Identity: ID3D11CryptoSession_Impl, - { + unsafe extern "system" fn GetCryptoSessionHandle(this: *mut core::ffi::c_void, pcryptosessionhandle: *mut super::super::Foundation::HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11CryptoSession_Impl::GetCryptoSessionHandle(this, core::mem::transmute_copy(&pcryptosessionhandle)) } @@ -358,7 +265,7 @@ impl ID3D11CryptoSession_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi")] -pub trait ID3D11Debug_Impl: Sized { +pub trait ID3D11Debug_Impl: Sized + windows_core::IUnknownImpl { fn SetFeatureMask(&self, mask: u32) -> windows_core::Result<()>; fn GetFeatureMask(&self) -> u32; fn SetPresentPerRenderOpDelay(&self, milliseconds: u32) -> windows_core::Result<()>; @@ -373,49 +280,28 @@ pub trait ID3D11Debug_Impl: Sized { impl windows_core::RuntimeName for ID3D11Debug {} #[cfg(feature = "Win32_Graphics_Dxgi")] impl ID3D11Debug_Vtbl { - pub const fn new() -> ID3D11Debug_Vtbl - where - Identity: ID3D11Debug_Impl, - { - unsafe extern "system" fn SetFeatureMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: ID3D11Debug_Impl, - { + pub const fn new() -> ID3D11Debug_Vtbl { + unsafe extern "system" fn SetFeatureMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Debug_Impl::SetFeatureMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetFeatureMask(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11Debug_Impl, - { + unsafe extern "system" fn GetFeatureMask(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Debug_Impl::GetFeatureMask(this) } - unsafe extern "system" fn SetPresentPerRenderOpDelay(this: *mut core::ffi::c_void, milliseconds: u32) -> windows_core::HRESULT - where - Identity: ID3D11Debug_Impl, - { + unsafe extern "system" fn SetPresentPerRenderOpDelay(this: *mut core::ffi::c_void, milliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Debug_Impl::SetPresentPerRenderOpDelay(this, core::mem::transmute_copy(&milliseconds)).into() } - unsafe extern "system" fn GetPresentPerRenderOpDelay(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11Debug_Impl, - { + unsafe extern "system" fn GetPresentPerRenderOpDelay(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Debug_Impl::GetPresentPerRenderOpDelay(this) } - unsafe extern "system" fn SetSwapChain(this: *mut core::ffi::c_void, pswapchain: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Debug_Impl, - { + unsafe extern "system" fn SetSwapChain(this: *mut core::ffi::c_void, pswapchain: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Debug_Impl::SetSwapChain(this, windows_core::from_raw_borrowed(&pswapchain)).into() } - unsafe extern "system" fn GetSwapChain(this: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Debug_Impl, - { + unsafe extern "system" fn GetSwapChain(this: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11Debug_Impl::GetSwapChain(this) { Ok(ok__) => { @@ -425,24 +311,15 @@ impl ID3D11Debug_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ValidateContext(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Debug_Impl, - { + unsafe extern "system" fn ValidateContext(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Debug_Impl::ValidateContext(this, windows_core::from_raw_borrowed(&pcontext)).into() } - unsafe extern "system" fn ReportLiveDeviceObjects(this: *mut core::ffi::c_void, flags: D3D11_RLDO_FLAGS) -> windows_core::HRESULT - where - Identity: ID3D11Debug_Impl, - { + unsafe extern "system" fn ReportLiveDeviceObjects(this: *mut core::ffi::c_void, flags: D3D11_RLDO_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Debug_Impl::ReportLiveDeviceObjects(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ValidateContextForDispatch(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Debug_Impl, - { + unsafe extern "system" fn ValidateContextForDispatch(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Debug_Impl::ValidateContextForDispatch(this, windows_core::from_raw_borrowed(&pcontext)).into() } @@ -468,14 +345,8 @@ pub trait ID3D11DepthStencilState_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11DepthStencilState {} impl ID3D11DepthStencilState_Vtbl { - pub const fn new() -> ID3D11DepthStencilState_Vtbl - where - Identity: ID3D11DepthStencilState_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_DEPTH_STENCIL_DESC) - where - Identity: ID3D11DepthStencilState_Impl, - { + pub const fn new() -> ID3D11DepthStencilState_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_DEPTH_STENCIL_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DepthStencilState_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -493,14 +364,8 @@ pub trait ID3D11DepthStencilView_Impl: Sized + ID3D11View_Impl { impl windows_core::RuntimeName for ID3D11DepthStencilView {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11DepthStencilView_Vtbl { - pub const fn new() -> ID3D11DepthStencilView_Vtbl - where - Identity: ID3D11DepthStencilView_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_DEPTH_STENCIL_VIEW_DESC) - where - Identity: ID3D11DepthStencilView_Impl, - { + pub const fn new() -> ID3D11DepthStencilView_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_DEPTH_STENCIL_VIEW_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DepthStencilView_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -511,7 +376,7 @@ impl ID3D11DepthStencilView_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] -pub trait ID3D11Device_Impl: Sized { +pub trait ID3D11Device_Impl: Sized + windows_core::IUnknownImpl { fn CreateBuffer(&self, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, ppbuffer: *mut Option) -> windows_core::Result<()>; fn CreateTexture1D(&self, pdesc: *const D3D11_TEXTURE1D_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture1d: *mut Option) -> windows_core::Result<()>; fn CreateTexture2D(&self, pdesc: *const D3D11_TEXTURE2D_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture2d: *mut Option) -> windows_core::Result<()>; @@ -557,126 +422,72 @@ pub trait ID3D11Device_Impl: Sized { impl windows_core::RuntimeName for ID3D11Device {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11Device_Vtbl { - pub const fn new() -> ID3D11Device_Vtbl - where - Identity: ID3D11Device_Impl, - { - unsafe extern "system" fn CreateBuffer(this: *mut core::ffi::c_void, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + pub const fn new() -> ID3D11Device_Vtbl { + unsafe extern "system" fn CreateBuffer(this: *mut core::ffi::c_void, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateBuffer(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pinitialdata), core::mem::transmute_copy(&ppbuffer)).into() } - unsafe extern "system" fn CreateTexture1D(this: *mut core::ffi::c_void, pdesc: *const D3D11_TEXTURE1D_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture1d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateTexture1D(this: *mut core::ffi::c_void, pdesc: *const D3D11_TEXTURE1D_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture1d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateTexture1D(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pinitialdata), core::mem::transmute_copy(&pptexture1d)).into() } - unsafe extern "system" fn CreateTexture2D(this: *mut core::ffi::c_void, pdesc: *const D3D11_TEXTURE2D_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture2d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateTexture2D(this: *mut core::ffi::c_void, pdesc: *const D3D11_TEXTURE2D_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture2d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateTexture2D(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pinitialdata), core::mem::transmute_copy(&pptexture2d)).into() } - unsafe extern "system" fn CreateTexture3D(this: *mut core::ffi::c_void, pdesc: *const D3D11_TEXTURE3D_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateTexture3D(this: *mut core::ffi::c_void, pdesc: *const D3D11_TEXTURE3D_DESC, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateTexture3D(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pinitialdata), core::mem::transmute_copy(&pptexture3d)).into() } - unsafe extern "system" fn CreateShaderResourceView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D11_SHADER_RESOURCE_VIEW_DESC, ppsrview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateShaderResourceView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D11_SHADER_RESOURCE_VIEW_DESC, ppsrview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateShaderResourceView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppsrview)).into() } - unsafe extern "system" fn CreateUnorderedAccessView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D11_UNORDERED_ACCESS_VIEW_DESC, ppuaview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateUnorderedAccessView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D11_UNORDERED_ACCESS_VIEW_DESC, ppuaview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateUnorderedAccessView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppuaview)).into() } - unsafe extern "system" fn CreateRenderTargetView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D11_RENDER_TARGET_VIEW_DESC, pprtview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateRenderTargetView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D11_RENDER_TARGET_VIEW_DESC, pprtview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateRenderTargetView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pprtview)).into() } - unsafe extern "system" fn CreateDepthStencilView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D11_DEPTH_STENCIL_VIEW_DESC, ppdepthstencilview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateDepthStencilView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D11_DEPTH_STENCIL_VIEW_DESC, ppdepthstencilview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateDepthStencilView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppdepthstencilview)).into() } - unsafe extern "system" fn CreateInputLayout(this: *mut core::ffi::c_void, pinputelementdescs: *const D3D11_INPUT_ELEMENT_DESC, numelements: u32, pshaderbytecodewithinputsignature: *const core::ffi::c_void, bytecodelength: usize, ppinputlayout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateInputLayout(this: *mut core::ffi::c_void, pinputelementdescs: *const D3D11_INPUT_ELEMENT_DESC, numelements: u32, pshaderbytecodewithinputsignature: *const core::ffi::c_void, bytecodelength: usize, ppinputlayout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateInputLayout(this, core::mem::transmute_copy(&pinputelementdescs), core::mem::transmute_copy(&numelements), core::mem::transmute_copy(&pshaderbytecodewithinputsignature), core::mem::transmute_copy(&bytecodelength), core::mem::transmute_copy(&ppinputlayout)).into() } - unsafe extern "system" fn CreateVertexShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, ppvertexshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateVertexShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, ppvertexshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateVertexShader(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), windows_core::from_raw_borrowed(&pclasslinkage), core::mem::transmute_copy(&ppvertexshader)).into() } - unsafe extern "system" fn CreateGeometryShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, ppgeometryshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateGeometryShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, ppgeometryshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateGeometryShader(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), windows_core::from_raw_borrowed(&pclasslinkage), core::mem::transmute_copy(&ppgeometryshader)).into() } - unsafe extern "system" fn CreateGeometryShaderWithStreamOutput(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, psodeclaration: *const D3D11_SO_DECLARATION_ENTRY, numentries: u32, pbufferstrides: *const u32, numstrides: u32, rasterizedstream: u32, pclasslinkage: *mut core::ffi::c_void, ppgeometryshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateGeometryShaderWithStreamOutput(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, psodeclaration: *const D3D11_SO_DECLARATION_ENTRY, numentries: u32, pbufferstrides: *const u32, numstrides: u32, rasterizedstream: u32, pclasslinkage: *mut core::ffi::c_void, ppgeometryshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateGeometryShaderWithStreamOutput(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), core::mem::transmute_copy(&psodeclaration), core::mem::transmute_copy(&numentries), core::mem::transmute_copy(&pbufferstrides), core::mem::transmute_copy(&numstrides), core::mem::transmute_copy(&rasterizedstream), windows_core::from_raw_borrowed(&pclasslinkage), core::mem::transmute_copy(&ppgeometryshader)).into() } - unsafe extern "system" fn CreatePixelShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, pppixelshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreatePixelShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, pppixelshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreatePixelShader(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), windows_core::from_raw_borrowed(&pclasslinkage), core::mem::transmute_copy(&pppixelshader)).into() } - unsafe extern "system" fn CreateHullShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, pphullshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateHullShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, pphullshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateHullShader(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), windows_core::from_raw_borrowed(&pclasslinkage), core::mem::transmute_copy(&pphullshader)).into() } - unsafe extern "system" fn CreateDomainShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, ppdomainshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateDomainShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, ppdomainshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateDomainShader(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), windows_core::from_raw_borrowed(&pclasslinkage), core::mem::transmute_copy(&ppdomainshader)).into() } - unsafe extern "system" fn CreateComputeShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, ppcomputeshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateComputeShader(this: *mut core::ffi::c_void, pshaderbytecode: *const core::ffi::c_void, bytecodelength: usize, pclasslinkage: *mut core::ffi::c_void, ppcomputeshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateComputeShader(this, core::mem::transmute_copy(&pshaderbytecode), core::mem::transmute_copy(&bytecodelength), windows_core::from_raw_borrowed(&pclasslinkage), core::mem::transmute_copy(&ppcomputeshader)).into() } - unsafe extern "system" fn CreateClassLinkage(this: *mut core::ffi::c_void, pplinkage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateClassLinkage(this: *mut core::ffi::c_void, pplinkage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11Device_Impl::CreateClassLinkage(this) { Ok(ok__) => { @@ -686,73 +497,43 @@ impl ID3D11Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBlendState(this: *mut core::ffi::c_void, pblendstatedesc: *const D3D11_BLEND_DESC, ppblendstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateBlendState(this: *mut core::ffi::c_void, pblendstatedesc: *const D3D11_BLEND_DESC, ppblendstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateBlendState(this, core::mem::transmute_copy(&pblendstatedesc), core::mem::transmute_copy(&ppblendstate)).into() } - unsafe extern "system" fn CreateDepthStencilState(this: *mut core::ffi::c_void, pdepthstencildesc: *const D3D11_DEPTH_STENCIL_DESC, ppdepthstencilstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateDepthStencilState(this: *mut core::ffi::c_void, pdepthstencildesc: *const D3D11_DEPTH_STENCIL_DESC, ppdepthstencilstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateDepthStencilState(this, core::mem::transmute_copy(&pdepthstencildesc), core::mem::transmute_copy(&ppdepthstencilstate)).into() } - unsafe extern "system" fn CreateRasterizerState(this: *mut core::ffi::c_void, prasterizerdesc: *const D3D11_RASTERIZER_DESC, pprasterizerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateRasterizerState(this: *mut core::ffi::c_void, prasterizerdesc: *const D3D11_RASTERIZER_DESC, pprasterizerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateRasterizerState(this, core::mem::transmute_copy(&prasterizerdesc), core::mem::transmute_copy(&pprasterizerstate)).into() } - unsafe extern "system" fn CreateSamplerState(this: *mut core::ffi::c_void, psamplerdesc: *const D3D11_SAMPLER_DESC, ppsamplerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateSamplerState(this: *mut core::ffi::c_void, psamplerdesc: *const D3D11_SAMPLER_DESC, ppsamplerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateSamplerState(this, core::mem::transmute_copy(&psamplerdesc), core::mem::transmute_copy(&ppsamplerstate)).into() } - unsafe extern "system" fn CreateQuery(this: *mut core::ffi::c_void, pquerydesc: *const D3D11_QUERY_DESC, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateQuery(this: *mut core::ffi::c_void, pquerydesc: *const D3D11_QUERY_DESC, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateQuery(this, core::mem::transmute_copy(&pquerydesc), core::mem::transmute_copy(&ppquery)).into() } - unsafe extern "system" fn CreatePredicate(this: *mut core::ffi::c_void, ppredicatedesc: *const D3D11_QUERY_DESC, pppredicate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreatePredicate(this: *mut core::ffi::c_void, ppredicatedesc: *const D3D11_QUERY_DESC, pppredicate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreatePredicate(this, core::mem::transmute_copy(&ppredicatedesc), core::mem::transmute_copy(&pppredicate)).into() } - unsafe extern "system" fn CreateCounter(this: *mut core::ffi::c_void, pcounterdesc: *const D3D11_COUNTER_DESC, ppcounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateCounter(this: *mut core::ffi::c_void, pcounterdesc: *const D3D11_COUNTER_DESC, ppcounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateCounter(this, core::mem::transmute_copy(&pcounterdesc), core::mem::transmute_copy(&ppcounter)).into() } - unsafe extern "system" fn CreateDeferredContext(this: *mut core::ffi::c_void, contextflags: u32, ppdeferredcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CreateDeferredContext(this: *mut core::ffi::c_void, contextflags: u32, ppdeferredcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CreateDeferredContext(this, core::mem::transmute_copy(&contextflags), core::mem::transmute_copy(&ppdeferredcontext)).into() } - unsafe extern "system" fn OpenSharedResource(this: *mut core::ffi::c_void, hresource: super::super::Foundation::HANDLE, returnedinterface: *const windows_core::GUID, ppresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn OpenSharedResource(this: *mut core::ffi::c_void, hresource: super::super::Foundation::HANDLE, returnedinterface: *const windows_core::GUID, ppresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::OpenSharedResource(this, core::mem::transmute_copy(&hresource), core::mem::transmute_copy(&returnedinterface), core::mem::transmute_copy(&ppresource)).into() } - unsafe extern "system" fn CheckFormatSupport(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, pformatsupport: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CheckFormatSupport(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, pformatsupport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11Device_Impl::CheckFormatSupport(this, core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -762,10 +543,7 @@ impl ID3D11Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckMultisampleQualityLevels(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, samplecount: u32, pnumqualitylevels: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CheckMultisampleQualityLevels(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, samplecount: u32, pnumqualitylevels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11Device_Impl::CheckMultisampleQualityLevels(this, core::mem::transmute_copy(&format), core::mem::transmute_copy(&samplecount)) { Ok(ok__) => { @@ -775,87 +553,51 @@ impl ID3D11Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckCounterInfo(this: *mut core::ffi::c_void, pcounterinfo: *mut D3D11_COUNTER_INFO) - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CheckCounterInfo(this: *mut core::ffi::c_void, pcounterinfo: *mut D3D11_COUNTER_INFO) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CheckCounterInfo(this, core::mem::transmute_copy(&pcounterinfo)) } - unsafe extern "system" fn CheckCounter(this: *mut core::ffi::c_void, pdesc: *const D3D11_COUNTER_DESC, ptype: *mut D3D11_COUNTER_TYPE, pactivecounters: *mut u32, szname: windows_core::PSTR, pnamelength: *mut u32, szunits: windows_core::PSTR, punitslength: *mut u32, szdescription: windows_core::PSTR, pdescriptionlength: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CheckCounter(this: *mut core::ffi::c_void, pdesc: *const D3D11_COUNTER_DESC, ptype: *mut D3D11_COUNTER_TYPE, pactivecounters: *mut u32, szname: windows_core::PSTR, pnamelength: *mut u32, szunits: windows_core::PSTR, punitslength: *mut u32, szdescription: windows_core::PSTR, pdescriptionlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CheckCounter(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pactivecounters), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&pnamelength), core::mem::transmute_copy(&szunits), core::mem::transmute_copy(&punitslength), core::mem::transmute_copy(&szdescription), core::mem::transmute_copy(&pdescriptionlength)).into() } - unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: D3D11_FEATURE, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: D3D11_FEATURE, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::CheckFeatureSupport(this, core::mem::transmute_copy(&feature), core::mem::transmute_copy(&pfeaturesupportdata), core::mem::transmute_copy(&featuresupportdatasize)).into() } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::GetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pdatasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::SetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::SetPrivateDataInterface(this, core::mem::transmute_copy(&guid), windows_core::from_raw_borrowed(&pdata)).into() } - unsafe extern "system" fn GetFeatureLevel(this: *mut core::ffi::c_void) -> super::Direct3D::D3D_FEATURE_LEVEL - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn GetFeatureLevel(this: *mut core::ffi::c_void) -> super::Direct3D::D3D_FEATURE_LEVEL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::GetFeatureLevel(this) } - unsafe extern "system" fn GetCreationFlags(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn GetCreationFlags(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::GetCreationFlags(this) } - unsafe extern "system" fn GetDeviceRemovedReason(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn GetDeviceRemovedReason(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::GetDeviceRemovedReason(this).into() } - unsafe extern "system" fn GetImmediateContext(this: *mut core::ffi::c_void, ppimmediatecontext: *mut *mut core::ffi::c_void) - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn GetImmediateContext(this: *mut core::ffi::c_void, ppimmediatecontext: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::GetImmediateContext(this, core::mem::transmute_copy(&ppimmediatecontext)) } - unsafe extern "system" fn SetExceptionMode(this: *mut core::ffi::c_void, raiseflags: u32) -> windows_core::HRESULT - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn SetExceptionMode(this: *mut core::ffi::c_void, raiseflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::SetExceptionMode(this, core::mem::transmute_copy(&raiseflags)).into() } - unsafe extern "system" fn GetExceptionMode(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11Device_Impl, - { + unsafe extern "system" fn GetExceptionMode(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device_Impl::GetExceptionMode(this) } @@ -921,56 +663,32 @@ pub trait ID3D11Device1_Impl: Sized + ID3D11Device_Impl { impl windows_core::RuntimeName for ID3D11Device1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11Device1_Vtbl { - pub const fn new() -> ID3D11Device1_Vtbl - where - Identity: ID3D11Device1_Impl, - { - unsafe extern "system" fn GetImmediateContext1(this: *mut core::ffi::c_void, ppimmediatecontext: *mut *mut core::ffi::c_void) - where - Identity: ID3D11Device1_Impl, - { + pub const fn new() -> ID3D11Device1_Vtbl { + unsafe extern "system" fn GetImmediateContext1(this: *mut core::ffi::c_void, ppimmediatecontext: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device1_Impl::GetImmediateContext1(this, core::mem::transmute_copy(&ppimmediatecontext)) } - unsafe extern "system" fn CreateDeferredContext1(this: *mut core::ffi::c_void, contextflags: u32, ppdeferredcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device1_Impl, - { + unsafe extern "system" fn CreateDeferredContext1(this: *mut core::ffi::c_void, contextflags: u32, ppdeferredcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device1_Impl::CreateDeferredContext1(this, core::mem::transmute_copy(&contextflags), core::mem::transmute_copy(&ppdeferredcontext)).into() } - unsafe extern "system" fn CreateBlendState1(this: *mut core::ffi::c_void, pblendstatedesc: *const D3D11_BLEND_DESC1, ppblendstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device1_Impl, - { + unsafe extern "system" fn CreateBlendState1(this: *mut core::ffi::c_void, pblendstatedesc: *const D3D11_BLEND_DESC1, ppblendstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device1_Impl::CreateBlendState1(this, core::mem::transmute_copy(&pblendstatedesc), core::mem::transmute_copy(&ppblendstate)).into() } - unsafe extern "system" fn CreateRasterizerState1(this: *mut core::ffi::c_void, prasterizerdesc: *const D3D11_RASTERIZER_DESC1, pprasterizerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device1_Impl, - { + unsafe extern "system" fn CreateRasterizerState1(this: *mut core::ffi::c_void, prasterizerdesc: *const D3D11_RASTERIZER_DESC1, pprasterizerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device1_Impl::CreateRasterizerState1(this, core::mem::transmute_copy(&prasterizerdesc), core::mem::transmute_copy(&pprasterizerstate)).into() } - unsafe extern "system" fn CreateDeviceContextState(this: *mut core::ffi::c_void, flags: u32, pfeaturelevels: *const super::Direct3D::D3D_FEATURE_LEVEL, featurelevels: u32, sdkversion: u32, emulatedinterface: *const windows_core::GUID, pchosenfeaturelevel: *mut super::Direct3D::D3D_FEATURE_LEVEL, ppcontextstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device1_Impl, - { + unsafe extern "system" fn CreateDeviceContextState(this: *mut core::ffi::c_void, flags: u32, pfeaturelevels: *const super::Direct3D::D3D_FEATURE_LEVEL, featurelevels: u32, sdkversion: u32, emulatedinterface: *const windows_core::GUID, pchosenfeaturelevel: *mut super::Direct3D::D3D_FEATURE_LEVEL, ppcontextstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device1_Impl::CreateDeviceContextState(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pfeaturelevels), core::mem::transmute_copy(&featurelevels), core::mem::transmute_copy(&sdkversion), core::mem::transmute_copy(&emulatedinterface), core::mem::transmute_copy(&pchosenfeaturelevel), core::mem::transmute_copy(&ppcontextstate)).into() } - unsafe extern "system" fn OpenSharedResource1(this: *mut core::ffi::c_void, hresource: super::super::Foundation::HANDLE, returnedinterface: *const windows_core::GUID, ppresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device1_Impl, - { + unsafe extern "system" fn OpenSharedResource1(this: *mut core::ffi::c_void, hresource: super::super::Foundation::HANDLE, returnedinterface: *const windows_core::GUID, ppresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device1_Impl::OpenSharedResource1(this, core::mem::transmute_copy(&hresource), core::mem::transmute_copy(&returnedinterface), core::mem::transmute_copy(&ppresource)).into() } - unsafe extern "system" fn OpenSharedResourceByName(this: *mut core::ffi::c_void, lpname: windows_core::PCWSTR, dwdesiredaccess: u32, returnedinterface: *const windows_core::GUID, ppresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device1_Impl, - { + unsafe extern "system" fn OpenSharedResourceByName(this: *mut core::ffi::c_void, lpname: windows_core::PCWSTR, dwdesiredaccess: u32, returnedinterface: *const windows_core::GUID, ppresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device1_Impl::OpenSharedResourceByName(this, core::mem::transmute(&lpname), core::mem::transmute_copy(&dwdesiredaccess), core::mem::transmute_copy(&returnedinterface), core::mem::transmute_copy(&ppresource)).into() } @@ -1000,35 +718,20 @@ pub trait ID3D11Device2_Impl: Sized + ID3D11Device1_Impl { impl windows_core::RuntimeName for ID3D11Device2 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11Device2_Vtbl { - pub const fn new() -> ID3D11Device2_Vtbl - where - Identity: ID3D11Device2_Impl, - { - unsafe extern "system" fn GetImmediateContext2(this: *mut core::ffi::c_void, ppimmediatecontext: *mut *mut core::ffi::c_void) - where - Identity: ID3D11Device2_Impl, - { + pub const fn new() -> ID3D11Device2_Vtbl { + unsafe extern "system" fn GetImmediateContext2(this: *mut core::ffi::c_void, ppimmediatecontext: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device2_Impl::GetImmediateContext2(this, core::mem::transmute_copy(&ppimmediatecontext)) } - unsafe extern "system" fn CreateDeferredContext2(this: *mut core::ffi::c_void, contextflags: u32, ppdeferredcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device2_Impl, - { + unsafe extern "system" fn CreateDeferredContext2(this: *mut core::ffi::c_void, contextflags: u32, ppdeferredcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device2_Impl::CreateDeferredContext2(this, core::mem::transmute_copy(&contextflags), core::mem::transmute_copy(&ppdeferredcontext)).into() } - unsafe extern "system" fn GetResourceTiling(this: *mut core::ffi::c_void, ptiledresource: *mut core::ffi::c_void, pnumtilesforentireresource: *mut u32, ppackedmipdesc: *mut D3D11_PACKED_MIP_DESC, pstandardtileshapefornonpackedmips: *mut D3D11_TILE_SHAPE, pnumsubresourcetilings: *mut u32, firstsubresourcetilingtoget: u32, psubresourcetilingsfornonpackedmips: *mut D3D11_SUBRESOURCE_TILING) - where - Identity: ID3D11Device2_Impl, - { + unsafe extern "system" fn GetResourceTiling(this: *mut core::ffi::c_void, ptiledresource: *mut core::ffi::c_void, pnumtilesforentireresource: *mut u32, ppackedmipdesc: *mut D3D11_PACKED_MIP_DESC, pstandardtileshapefornonpackedmips: *mut D3D11_TILE_SHAPE, pnumsubresourcetilings: *mut u32, firstsubresourcetilingtoget: u32, psubresourcetilingsfornonpackedmips: *mut D3D11_SUBRESOURCE_TILING) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device2_Impl::GetResourceTiling(this, windows_core::from_raw_borrowed(&ptiledresource), core::mem::transmute_copy(&pnumtilesforentireresource), core::mem::transmute_copy(&ppackedmipdesc), core::mem::transmute_copy(&pstandardtileshapefornonpackedmips), core::mem::transmute_copy(&pnumsubresourcetilings), core::mem::transmute_copy(&firstsubresourcetilingtoget), core::mem::transmute_copy(&psubresourcetilingsfornonpackedmips)) } - unsafe extern "system" fn CheckMultisampleQualityLevels1(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, samplecount: u32, flags: u32, pnumqualitylevels: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11Device2_Impl, - { + unsafe extern "system" fn CheckMultisampleQualityLevels1(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, samplecount: u32, flags: u32, pnumqualitylevels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11Device2_Impl::CheckMultisampleQualityLevels1(this, core::mem::transmute_copy(&format), core::mem::transmute_copy(&samplecount), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1068,84 +771,48 @@ pub trait ID3D11Device3_Impl: Sized + ID3D11Device2_Impl { impl windows_core::RuntimeName for ID3D11Device3 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11Device3_Vtbl { - pub const fn new() -> ID3D11Device3_Vtbl - where - Identity: ID3D11Device3_Impl, - { - unsafe extern "system" fn CreateTexture2D1(this: *mut core::ffi::c_void, pdesc1: *const D3D11_TEXTURE2D_DESC1, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture2d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device3_Impl, - { + pub const fn new() -> ID3D11Device3_Vtbl { + unsafe extern "system" fn CreateTexture2D1(this: *mut core::ffi::c_void, pdesc1: *const D3D11_TEXTURE2D_DESC1, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture2d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::CreateTexture2D1(this, core::mem::transmute_copy(&pdesc1), core::mem::transmute_copy(&pinitialdata), core::mem::transmute_copy(&pptexture2d)).into() } - unsafe extern "system" fn CreateTexture3D1(this: *mut core::ffi::c_void, pdesc1: *const D3D11_TEXTURE3D_DESC1, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device3_Impl, - { + unsafe extern "system" fn CreateTexture3D1(this: *mut core::ffi::c_void, pdesc1: *const D3D11_TEXTURE3D_DESC1, pinitialdata: *const D3D11_SUBRESOURCE_DATA, pptexture3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::CreateTexture3D1(this, core::mem::transmute_copy(&pdesc1), core::mem::transmute_copy(&pinitialdata), core::mem::transmute_copy(&pptexture3d)).into() } - unsafe extern "system" fn CreateRasterizerState2(this: *mut core::ffi::c_void, prasterizerdesc: *const D3D11_RASTERIZER_DESC2, pprasterizerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device3_Impl, - { + unsafe extern "system" fn CreateRasterizerState2(this: *mut core::ffi::c_void, prasterizerdesc: *const D3D11_RASTERIZER_DESC2, pprasterizerstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::CreateRasterizerState2(this, core::mem::transmute_copy(&prasterizerdesc), core::mem::transmute_copy(&pprasterizerstate)).into() } - unsafe extern "system" fn CreateShaderResourceView1(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc1: *const D3D11_SHADER_RESOURCE_VIEW_DESC1, ppsrview1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device3_Impl, - { + unsafe extern "system" fn CreateShaderResourceView1(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc1: *const D3D11_SHADER_RESOURCE_VIEW_DESC1, ppsrview1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::CreateShaderResourceView1(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc1), core::mem::transmute_copy(&ppsrview1)).into() } - unsafe extern "system" fn CreateUnorderedAccessView1(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc1: *const D3D11_UNORDERED_ACCESS_VIEW_DESC1, ppuaview1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device3_Impl, - { + unsafe extern "system" fn CreateUnorderedAccessView1(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc1: *const D3D11_UNORDERED_ACCESS_VIEW_DESC1, ppuaview1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::CreateUnorderedAccessView1(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc1), core::mem::transmute_copy(&ppuaview1)).into() } - unsafe extern "system" fn CreateRenderTargetView1(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc1: *const D3D11_RENDER_TARGET_VIEW_DESC1, pprtview1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device3_Impl, - { + unsafe extern "system" fn CreateRenderTargetView1(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc1: *const D3D11_RENDER_TARGET_VIEW_DESC1, pprtview1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::CreateRenderTargetView1(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc1), core::mem::transmute_copy(&pprtview1)).into() } - unsafe extern "system" fn CreateQuery1(this: *mut core::ffi::c_void, pquerydesc1: *const D3D11_QUERY_DESC1, ppquery1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device3_Impl, - { + unsafe extern "system" fn CreateQuery1(this: *mut core::ffi::c_void, pquerydesc1: *const D3D11_QUERY_DESC1, ppquery1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::CreateQuery1(this, core::mem::transmute_copy(&pquerydesc1), core::mem::transmute_copy(&ppquery1)).into() } - unsafe extern "system" fn GetImmediateContext3(this: *mut core::ffi::c_void, ppimmediatecontext: *mut *mut core::ffi::c_void) - where - Identity: ID3D11Device3_Impl, - { + unsafe extern "system" fn GetImmediateContext3(this: *mut core::ffi::c_void, ppimmediatecontext: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::GetImmediateContext3(this, core::mem::transmute_copy(&ppimmediatecontext)) } - unsafe extern "system" fn CreateDeferredContext3(this: *mut core::ffi::c_void, contextflags: u32, ppdeferredcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device3_Impl, - { + unsafe extern "system" fn CreateDeferredContext3(this: *mut core::ffi::c_void, contextflags: u32, ppdeferredcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::CreateDeferredContext3(this, core::mem::transmute_copy(&contextflags), core::mem::transmute_copy(&ppdeferredcontext)).into() } - unsafe extern "system" fn WriteToSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D11_BOX, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) - where - Identity: ID3D11Device3_Impl, - { + unsafe extern "system" fn WriteToSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D11_BOX, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::WriteToSubresource(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), core::mem::transmute_copy(&pdstbox), core::mem::transmute_copy(&psrcdata), core::mem::transmute_copy(&srcrowpitch), core::mem::transmute_copy(&srcdepthpitch)) } - unsafe extern "system" fn ReadFromSubresource(this: *mut core::ffi::c_void, pdstdata: *mut core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, psrcbox: *const D3D11_BOX) - where - Identity: ID3D11Device3_Impl, - { + unsafe extern "system" fn ReadFromSubresource(this: *mut core::ffi::c_void, pdstdata: *mut core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, psrcbox: *const D3D11_BOX) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device3_Impl::ReadFromSubresource(this, core::mem::transmute_copy(&pdstdata), core::mem::transmute_copy(&dstrowpitch), core::mem::transmute_copy(&dstdepthpitch), windows_core::from_raw_borrowed(&psrcresource), core::mem::transmute_copy(&srcsubresource), core::mem::transmute_copy(&psrcbox)) } @@ -1177,14 +844,8 @@ pub trait ID3D11Device4_Impl: Sized + ID3D11Device3_Impl { impl windows_core::RuntimeName for ID3D11Device4 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11Device4_Vtbl { - pub const fn new() -> ID3D11Device4_Vtbl - where - Identity: ID3D11Device4_Impl, - { - unsafe extern "system" fn RegisterDeviceRemovedEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11Device4_Impl, - { + pub const fn new() -> ID3D11Device4_Vtbl { + unsafe extern "system" fn RegisterDeviceRemovedEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11Device4_Impl::RegisterDeviceRemovedEvent(this, core::mem::transmute_copy(&hevent)) { Ok(ok__) => { @@ -1194,10 +855,7 @@ impl ID3D11Device4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterDeviceRemoved(this: *mut core::ffi::c_void, dwcookie: u32) - where - Identity: ID3D11Device4_Impl, - { + unsafe extern "system" fn UnregisterDeviceRemoved(this: *mut core::ffi::c_void, dwcookie: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device4_Impl::UnregisterDeviceRemoved(this, core::mem::transmute_copy(&dwcookie)) } @@ -1220,21 +878,12 @@ pub trait ID3D11Device5_Impl: Sized + ID3D11Device4_Impl { impl windows_core::RuntimeName for ID3D11Device5 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11Device5_Vtbl { - pub const fn new() -> ID3D11Device5_Vtbl - where - Identity: ID3D11Device5_Impl, - { - unsafe extern "system" fn OpenSharedFence(this: *mut core::ffi::c_void, hfence: super::super::Foundation::HANDLE, returnedinterface: *const windows_core::GUID, ppfence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device5_Impl, - { + pub const fn new() -> ID3D11Device5_Vtbl { + unsafe extern "system" fn OpenSharedFence(this: *mut core::ffi::c_void, hfence: super::super::Foundation::HANDLE, returnedinterface: *const windows_core::GUID, ppfence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device5_Impl::OpenSharedFence(this, core::mem::transmute_copy(&hfence), core::mem::transmute_copy(&returnedinterface), core::mem::transmute_copy(&ppfence)).into() } - unsafe extern "system" fn CreateFence(this: *mut core::ffi::c_void, initialvalue: u64, flags: D3D11_FENCE_FLAG, returnedinterface: *const windows_core::GUID, ppfence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Device5_Impl, - { + unsafe extern "system" fn CreateFence(this: *mut core::ffi::c_void, initialvalue: u64, flags: D3D11_FENCE_FLAG, returnedinterface: *const windows_core::GUID, ppfence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Device5_Impl::CreateFence(this, core::mem::transmute_copy(&initialvalue), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&returnedinterface), core::mem::transmute_copy(&ppfence)).into() } @@ -1248,7 +897,7 @@ impl ID3D11Device5_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D11DeviceChild_Impl: Sized { +pub trait ID3D11DeviceChild_Impl: Sized + windows_core::IUnknownImpl { fn GetDevice(&self, ppdevice: *mut Option); fn GetPrivateData(&self, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::Result<()>; @@ -1256,35 +905,20 @@ pub trait ID3D11DeviceChild_Impl: Sized { } impl windows_core::RuntimeName for ID3D11DeviceChild {} impl ID3D11DeviceChild_Vtbl { - pub const fn new() -> ID3D11DeviceChild_Vtbl - where - Identity: ID3D11DeviceChild_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceChild_Impl, - { + pub const fn new() -> ID3D11DeviceChild_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceChild_Impl::GetDevice(this, core::mem::transmute_copy(&ppdevice)) } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11DeviceChild_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceChild_Impl::GetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pdatasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11DeviceChild_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceChild_Impl::SetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11DeviceChild_Impl, - { + unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceChild_Impl::SetPrivateDataInterface(this, core::mem::transmute_copy(&guid), windows_core::from_raw_borrowed(&pdata)).into() } @@ -1415,763 +1049,436 @@ pub trait ID3D11DeviceContext_Impl: Sized + ID3D11DeviceChild_Impl { impl windows_core::RuntimeName for ID3D11DeviceContext {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11DeviceContext_Vtbl { - pub const fn new() -> ID3D11DeviceContext_Vtbl - where - Identity: ID3D11DeviceContext_Impl, - { - unsafe extern "system" fn VSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + pub const fn new() -> ID3D11DeviceContext_Vtbl { + unsafe extern "system" fn VSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::VSSetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn PSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn PSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::PSSetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn PSSetShader(this: *mut core::ffi::c_void, ppixelshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn PSSetShader(this: *mut core::ffi::c_void, ppixelshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::PSSetShader(this, windows_core::from_raw_borrowed(&ppixelshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&numclassinstances)) } - unsafe extern "system" fn PSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn PSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::PSSetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn VSSetShader(this: *mut core::ffi::c_void, pvertexshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn VSSetShader(this: *mut core::ffi::c_void, pvertexshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::VSSetShader(this, windows_core::from_raw_borrowed(&pvertexshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&numclassinstances)) } - unsafe extern "system" fn DrawIndexed(this: *mut core::ffi::c_void, indexcount: u32, startindexlocation: u32, basevertexlocation: i32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DrawIndexed(this: *mut core::ffi::c_void, indexcount: u32, startindexlocation: u32, basevertexlocation: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DrawIndexed(this, core::mem::transmute_copy(&indexcount), core::mem::transmute_copy(&startindexlocation), core::mem::transmute_copy(&basevertexlocation)) } - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, vertexcount: u32, startvertexlocation: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, vertexcount: u32, startvertexlocation: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::Draw(this, core::mem::transmute_copy(&vertexcount), core::mem::transmute_copy(&startvertexlocation)) } - unsafe extern "system" fn Map(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, maptype: D3D11_MAP, mapflags: u32, pmappedresource: *mut D3D11_MAPPED_SUBRESOURCE) -> windows_core::HRESULT - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn Map(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, maptype: D3D11_MAP, mapflags: u32, pmappedresource: *mut D3D11_MAPPED_SUBRESOURCE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::Map(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&maptype), core::mem::transmute_copy(&mapflags), core::mem::transmute_copy(&pmappedresource)).into() } - unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::Unmap(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource)) } - unsafe extern "system" fn PSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn PSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::PSSetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn IASetInputLayout(this: *mut core::ffi::c_void, pinputlayout: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn IASetInputLayout(this: *mut core::ffi::c_void, pinputlayout: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::IASetInputLayout(this, windows_core::from_raw_borrowed(&pinputlayout)) } - unsafe extern "system" fn IASetVertexBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppvertexbuffers: *const *mut core::ffi::c_void, pstrides: *const u32, poffsets: *const u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn IASetVertexBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppvertexbuffers: *const *mut core::ffi::c_void, pstrides: *const u32, poffsets: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::IASetVertexBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppvertexbuffers), core::mem::transmute_copy(&pstrides), core::mem::transmute_copy(&poffsets)) } - unsafe extern "system" fn IASetIndexBuffer(this: *mut core::ffi::c_void, pindexbuffer: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, offset: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn IASetIndexBuffer(this: *mut core::ffi::c_void, pindexbuffer: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, offset: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::IASetIndexBuffer(this, windows_core::from_raw_borrowed(&pindexbuffer), core::mem::transmute_copy(&format), core::mem::transmute_copy(&offset)) } - unsafe extern "system" fn DrawIndexedInstanced(this: *mut core::ffi::c_void, indexcountperinstance: u32, instancecount: u32, startindexlocation: u32, basevertexlocation: i32, startinstancelocation: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DrawIndexedInstanced(this: *mut core::ffi::c_void, indexcountperinstance: u32, instancecount: u32, startindexlocation: u32, basevertexlocation: i32, startinstancelocation: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DrawIndexedInstanced(this, core::mem::transmute_copy(&indexcountperinstance), core::mem::transmute_copy(&instancecount), core::mem::transmute_copy(&startindexlocation), core::mem::transmute_copy(&basevertexlocation), core::mem::transmute_copy(&startinstancelocation)) } - unsafe extern "system" fn DrawInstanced(this: *mut core::ffi::c_void, vertexcountperinstance: u32, instancecount: u32, startvertexlocation: u32, startinstancelocation: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DrawInstanced(this: *mut core::ffi::c_void, vertexcountperinstance: u32, instancecount: u32, startvertexlocation: u32, startinstancelocation: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DrawInstanced(this, core::mem::transmute_copy(&vertexcountperinstance), core::mem::transmute_copy(&instancecount), core::mem::transmute_copy(&startvertexlocation), core::mem::transmute_copy(&startinstancelocation)) } - unsafe extern "system" fn GSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GSSetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn GSSetShader(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GSSetShader(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GSSetShader(this, windows_core::from_raw_borrowed(&pshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&numclassinstances)) } - unsafe extern "system" fn IASetPrimitiveTopology(this: *mut core::ffi::c_void, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn IASetPrimitiveTopology(this: *mut core::ffi::c_void, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::IASetPrimitiveTopology(this, core::mem::transmute_copy(&topology)) } - unsafe extern "system" fn VSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn VSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::VSSetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn VSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn VSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::VSSetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, pasync: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, pasync: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::Begin(this, windows_core::from_raw_borrowed(&pasync)) } - unsafe extern "system" fn End(this: *mut core::ffi::c_void, pasync: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void, pasync: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::End(this, windows_core::from_raw_borrowed(&pasync)) } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pasync: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void, datasize: u32, getdataflags: u32) -> windows_core::HRESULT - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pasync: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void, datasize: u32, getdataflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GetData(this, windows_core::from_raw_borrowed(&pasync), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&getdataflags)).into() } - unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, ppredicate: *mut core::ffi::c_void, predicatevalue: super::super::Foundation::BOOL) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, ppredicate: *mut core::ffi::c_void, predicatevalue: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::SetPredication(this, windows_core::from_raw_borrowed(&ppredicate), core::mem::transmute_copy(&predicatevalue)) } - unsafe extern "system" fn GSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GSSetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn GSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GSSetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn OMSetRenderTargets(this: *mut core::ffi::c_void, numviews: u32, pprendertargetviews: *const *mut core::ffi::c_void, pdepthstencilview: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn OMSetRenderTargets(this: *mut core::ffi::c_void, numviews: u32, pprendertargetviews: *const *mut core::ffi::c_void, pdepthstencilview: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::OMSetRenderTargets(this, core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&pprendertargetviews), windows_core::from_raw_borrowed(&pdepthstencilview)) } - unsafe extern "system" fn OMSetRenderTargetsAndUnorderedAccessViews(this: *mut core::ffi::c_void, numrtvs: u32, pprendertargetviews: *const *mut core::ffi::c_void, pdepthstencilview: *mut core::ffi::c_void, uavstartslot: u32, numuavs: u32, ppunorderedaccessviews: *const *mut core::ffi::c_void, puavinitialcounts: *const u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn OMSetRenderTargetsAndUnorderedAccessViews(this: *mut core::ffi::c_void, numrtvs: u32, pprendertargetviews: *const *mut core::ffi::c_void, pdepthstencilview: *mut core::ffi::c_void, uavstartslot: u32, numuavs: u32, ppunorderedaccessviews: *const *mut core::ffi::c_void, puavinitialcounts: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::OMSetRenderTargetsAndUnorderedAccessViews(this, core::mem::transmute_copy(&numrtvs), core::mem::transmute_copy(&pprendertargetviews), windows_core::from_raw_borrowed(&pdepthstencilview), core::mem::transmute_copy(&uavstartslot), core::mem::transmute_copy(&numuavs), core::mem::transmute_copy(&ppunorderedaccessviews), core::mem::transmute_copy(&puavinitialcounts)) } - unsafe extern "system" fn OMSetBlendState(this: *mut core::ffi::c_void, pblendstate: *mut core::ffi::c_void, blendfactor: *const f32, samplemask: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn OMSetBlendState(this: *mut core::ffi::c_void, pblendstate: *mut core::ffi::c_void, blendfactor: *const f32, samplemask: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::OMSetBlendState(this, windows_core::from_raw_borrowed(&pblendstate), core::mem::transmute_copy(&blendfactor), core::mem::transmute_copy(&samplemask)) } - unsafe extern "system" fn OMSetDepthStencilState(this: *mut core::ffi::c_void, pdepthstencilstate: *mut core::ffi::c_void, stencilref: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn OMSetDepthStencilState(this: *mut core::ffi::c_void, pdepthstencilstate: *mut core::ffi::c_void, stencilref: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::OMSetDepthStencilState(this, windows_core::from_raw_borrowed(&pdepthstencilstate), core::mem::transmute_copy(&stencilref)) } - unsafe extern "system" fn SOSetTargets(this: *mut core::ffi::c_void, numbuffers: u32, ppsotargets: *const *mut core::ffi::c_void, poffsets: *const u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn SOSetTargets(this: *mut core::ffi::c_void, numbuffers: u32, ppsotargets: *const *mut core::ffi::c_void, poffsets: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::SOSetTargets(this, core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppsotargets), core::mem::transmute_copy(&poffsets)) } - unsafe extern "system" fn DrawAuto(this: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DrawAuto(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DrawAuto(this) } - unsafe extern "system" fn DrawIndexedInstancedIndirect(this: *mut core::ffi::c_void, pbufferforargs: *mut core::ffi::c_void, alignedbyteoffsetforargs: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DrawIndexedInstancedIndirect(this: *mut core::ffi::c_void, pbufferforargs: *mut core::ffi::c_void, alignedbyteoffsetforargs: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DrawIndexedInstancedIndirect(this, windows_core::from_raw_borrowed(&pbufferforargs), core::mem::transmute_copy(&alignedbyteoffsetforargs)) } - unsafe extern "system" fn DrawInstancedIndirect(this: *mut core::ffi::c_void, pbufferforargs: *mut core::ffi::c_void, alignedbyteoffsetforargs: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DrawInstancedIndirect(this: *mut core::ffi::c_void, pbufferforargs: *mut core::ffi::c_void, alignedbyteoffsetforargs: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DrawInstancedIndirect(this, windows_core::from_raw_borrowed(&pbufferforargs), core::mem::transmute_copy(&alignedbyteoffsetforargs)) } - unsafe extern "system" fn Dispatch(this: *mut core::ffi::c_void, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn Dispatch(this: *mut core::ffi::c_void, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::Dispatch(this, core::mem::transmute_copy(&threadgroupcountx), core::mem::transmute_copy(&threadgroupcounty), core::mem::transmute_copy(&threadgroupcountz)) } - unsafe extern "system" fn DispatchIndirect(this: *mut core::ffi::c_void, pbufferforargs: *mut core::ffi::c_void, alignedbyteoffsetforargs: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DispatchIndirect(this: *mut core::ffi::c_void, pbufferforargs: *mut core::ffi::c_void, alignedbyteoffsetforargs: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DispatchIndirect(this, windows_core::from_raw_borrowed(&pbufferforargs), core::mem::transmute_copy(&alignedbyteoffsetforargs)) } - unsafe extern "system" fn RSSetState(this: *mut core::ffi::c_void, prasterizerstate: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn RSSetState(this: *mut core::ffi::c_void, prasterizerstate: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::RSSetState(this, windows_core::from_raw_borrowed(&prasterizerstate)) } - unsafe extern "system" fn RSSetViewports(this: *mut core::ffi::c_void, numviewports: u32, pviewports: *const D3D11_VIEWPORT) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn RSSetViewports(this: *mut core::ffi::c_void, numviewports: u32, pviewports: *const D3D11_VIEWPORT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::RSSetViewports(this, core::mem::transmute_copy(&numviewports), core::mem::transmute_copy(&pviewports)) } - unsafe extern "system" fn RSSetScissorRects(this: *mut core::ffi::c_void, numrects: u32, prects: *const super::super::Foundation::RECT) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn RSSetScissorRects(this: *mut core::ffi::c_void, numrects: u32, prects: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::RSSetScissorRects(this, core::mem::transmute_copy(&numrects), core::mem::transmute_copy(&prects)) } - unsafe extern "system" fn CopySubresourceRegion(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, psrcbox: *const D3D11_BOX) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CopySubresourceRegion(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, psrcbox: *const D3D11_BOX) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CopySubresourceRegion(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), core::mem::transmute_copy(&dstx), core::mem::transmute_copy(&dsty), core::mem::transmute_copy(&dstz), windows_core::from_raw_borrowed(&psrcresource), core::mem::transmute_copy(&srcsubresource), core::mem::transmute_copy(&psrcbox)) } - unsafe extern "system" fn CopyResource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, psrcresource: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CopyResource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, psrcresource: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CopyResource(this, windows_core::from_raw_borrowed(&pdstresource), windows_core::from_raw_borrowed(&psrcresource)) } - unsafe extern "system" fn UpdateSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D11_BOX, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn UpdateSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D11_BOX, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::UpdateSubresource(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), core::mem::transmute_copy(&pdstbox), core::mem::transmute_copy(&psrcdata), core::mem::transmute_copy(&srcrowpitch), core::mem::transmute_copy(&srcdepthpitch)) } - unsafe extern "system" fn CopyStructureCount(this: *mut core::ffi::c_void, pdstbuffer: *mut core::ffi::c_void, dstalignedbyteoffset: u32, psrcview: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CopyStructureCount(this: *mut core::ffi::c_void, pdstbuffer: *mut core::ffi::c_void, dstalignedbyteoffset: u32, psrcview: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CopyStructureCount(this, windows_core::from_raw_borrowed(&pdstbuffer), core::mem::transmute_copy(&dstalignedbyteoffset), windows_core::from_raw_borrowed(&psrcview)) } - unsafe extern "system" fn ClearRenderTargetView(this: *mut core::ffi::c_void, prendertargetview: *mut core::ffi::c_void, colorrgba: *const f32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn ClearRenderTargetView(this: *mut core::ffi::c_void, prendertargetview: *mut core::ffi::c_void, colorrgba: *const f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::ClearRenderTargetView(this, windows_core::from_raw_borrowed(&prendertargetview), core::mem::transmute_copy(&colorrgba)) } - unsafe extern "system" fn ClearUnorderedAccessViewUint(this: *mut core::ffi::c_void, punorderedaccessview: *mut core::ffi::c_void, values: *const u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn ClearUnorderedAccessViewUint(this: *mut core::ffi::c_void, punorderedaccessview: *mut core::ffi::c_void, values: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::ClearUnorderedAccessViewUint(this, windows_core::from_raw_borrowed(&punorderedaccessview), core::mem::transmute_copy(&values)) } - unsafe extern "system" fn ClearUnorderedAccessViewFloat(this: *mut core::ffi::c_void, punorderedaccessview: *mut core::ffi::c_void, values: *const f32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn ClearUnorderedAccessViewFloat(this: *mut core::ffi::c_void, punorderedaccessview: *mut core::ffi::c_void, values: *const f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::ClearUnorderedAccessViewFloat(this, windows_core::from_raw_borrowed(&punorderedaccessview), core::mem::transmute_copy(&values)) } - unsafe extern "system" fn ClearDepthStencilView(this: *mut core::ffi::c_void, pdepthstencilview: *mut core::ffi::c_void, clearflags: u32, depth: f32, stencil: u8) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn ClearDepthStencilView(this: *mut core::ffi::c_void, pdepthstencilview: *mut core::ffi::c_void, clearflags: u32, depth: f32, stencil: u8) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::ClearDepthStencilView(this, windows_core::from_raw_borrowed(&pdepthstencilview), core::mem::transmute_copy(&clearflags), core::mem::transmute_copy(&depth), core::mem::transmute_copy(&stencil)) } - unsafe extern "system" fn GenerateMips(this: *mut core::ffi::c_void, pshaderresourceview: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GenerateMips(this: *mut core::ffi::c_void, pshaderresourceview: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GenerateMips(this, windows_core::from_raw_borrowed(&pshaderresourceview)) } - unsafe extern "system" fn SetResourceMinLOD(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, minlod: f32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn SetResourceMinLOD(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, minlod: f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::SetResourceMinLOD(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&minlod)) } - unsafe extern "system" fn GetResourceMinLOD(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void) -> f32 - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GetResourceMinLOD(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GetResourceMinLOD(this, windows_core::from_raw_borrowed(&presource)) } - unsafe extern "system" fn ResolveSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn ResolveSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::ResolveSubresource(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), windows_core::from_raw_borrowed(&psrcresource), core::mem::transmute_copy(&srcsubresource), core::mem::transmute_copy(&format)) } - unsafe extern "system" fn ExecuteCommandList(this: *mut core::ffi::c_void, pcommandlist: *mut core::ffi::c_void, restorecontextstate: super::super::Foundation::BOOL) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn ExecuteCommandList(this: *mut core::ffi::c_void, pcommandlist: *mut core::ffi::c_void, restorecontextstate: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::ExecuteCommandList(this, windows_core::from_raw_borrowed(&pcommandlist), core::mem::transmute_copy(&restorecontextstate)) } - unsafe extern "system" fn HSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn HSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::HSSetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn HSSetShader(this: *mut core::ffi::c_void, phullshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn HSSetShader(this: *mut core::ffi::c_void, phullshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::HSSetShader(this, windows_core::from_raw_borrowed(&phullshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&numclassinstances)) } - unsafe extern "system" fn HSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn HSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::HSSetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn HSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn HSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::HSSetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn DSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DSSetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn DSSetShader(this: *mut core::ffi::c_void, pdomainshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DSSetShader(this: *mut core::ffi::c_void, pdomainshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DSSetShader(this, windows_core::from_raw_borrowed(&pdomainshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&numclassinstances)) } - unsafe extern "system" fn DSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DSSetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn DSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DSSetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn CSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CSSetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CSSetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn CSSetUnorderedAccessViews(this: *mut core::ffi::c_void, startslot: u32, numuavs: u32, ppunorderedaccessviews: *const *mut core::ffi::c_void, puavinitialcounts: *const u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CSSetUnorderedAccessViews(this: *mut core::ffi::c_void, startslot: u32, numuavs: u32, ppunorderedaccessviews: *const *mut core::ffi::c_void, puavinitialcounts: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CSSetUnorderedAccessViews(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numuavs), core::mem::transmute_copy(&ppunorderedaccessviews), core::mem::transmute_copy(&puavinitialcounts)) } - unsafe extern "system" fn CSSetShader(this: *mut core::ffi::c_void, pcomputeshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CSSetShader(this: *mut core::ffi::c_void, pcomputeshader: *mut core::ffi::c_void, ppclassinstances: *const *mut core::ffi::c_void, numclassinstances: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CSSetShader(this, windows_core::from_raw_borrowed(&pcomputeshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&numclassinstances)) } - unsafe extern "system" fn CSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CSSetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CSSetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn CSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CSSetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CSSetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn VSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn VSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::VSGetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn PSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn PSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::PSGetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn PSGetShader(this: *mut core::ffi::c_void, pppixelshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn PSGetShader(this: *mut core::ffi::c_void, pppixelshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::PSGetShader(this, core::mem::transmute_copy(&pppixelshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&pnumclassinstances)) } - unsafe extern "system" fn PSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn PSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::PSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn VSGetShader(this: *mut core::ffi::c_void, ppvertexshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn VSGetShader(this: *mut core::ffi::c_void, ppvertexshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::VSGetShader(this, core::mem::transmute_copy(&ppvertexshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&pnumclassinstances)) } - unsafe extern "system" fn PSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn PSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::PSGetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn IAGetInputLayout(this: *mut core::ffi::c_void, ppinputlayout: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn IAGetInputLayout(this: *mut core::ffi::c_void, ppinputlayout: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::IAGetInputLayout(this, core::mem::transmute_copy(&ppinputlayout)) } - unsafe extern "system" fn IAGetVertexBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppvertexbuffers: *mut *mut core::ffi::c_void, pstrides: *mut u32, poffsets: *mut u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn IAGetVertexBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppvertexbuffers: *mut *mut core::ffi::c_void, pstrides: *mut u32, poffsets: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::IAGetVertexBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppvertexbuffers), core::mem::transmute_copy(&pstrides), core::mem::transmute_copy(&poffsets)) } - unsafe extern "system" fn IAGetIndexBuffer(this: *mut core::ffi::c_void, pindexbuffer: *mut *mut core::ffi::c_void, format: *mut super::Dxgi::Common::DXGI_FORMAT, offset: *mut u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn IAGetIndexBuffer(this: *mut core::ffi::c_void, pindexbuffer: *mut *mut core::ffi::c_void, format: *mut super::Dxgi::Common::DXGI_FORMAT, offset: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::IAGetIndexBuffer(this, core::mem::transmute_copy(&pindexbuffer), core::mem::transmute_copy(&format), core::mem::transmute_copy(&offset)) } - unsafe extern "system" fn GSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GSGetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn GSGetShader(this: *mut core::ffi::c_void, ppgeometryshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GSGetShader(this: *mut core::ffi::c_void, ppgeometryshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GSGetShader(this, core::mem::transmute_copy(&ppgeometryshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&pnumclassinstances)) } - unsafe extern "system" fn IAGetPrimitiveTopology(this: *mut core::ffi::c_void, ptopology: *mut super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn IAGetPrimitiveTopology(this: *mut core::ffi::c_void, ptopology: *mut super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::IAGetPrimitiveTopology(this, core::mem::transmute_copy(&ptopology)) } - unsafe extern "system" fn VSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn VSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::VSGetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn VSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn VSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::VSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn GetPredication(this: *mut core::ffi::c_void, pppredicate: *mut *mut core::ffi::c_void, ppredicatevalue: *mut super::super::Foundation::BOOL) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GetPredication(this: *mut core::ffi::c_void, pppredicate: *mut *mut core::ffi::c_void, ppredicatevalue: *mut super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GetPredication(this, core::mem::transmute_copy(&pppredicate), core::mem::transmute_copy(&ppredicatevalue)) } - unsafe extern "system" fn GSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GSGetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn GSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn OMGetRenderTargets(this: *mut core::ffi::c_void, numviews: u32, pprendertargetviews: *mut *mut core::ffi::c_void, ppdepthstencilview: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn OMGetRenderTargets(this: *mut core::ffi::c_void, numviews: u32, pprendertargetviews: *mut *mut core::ffi::c_void, ppdepthstencilview: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::OMGetRenderTargets(this, core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&pprendertargetviews), core::mem::transmute_copy(&ppdepthstencilview)) } - unsafe extern "system" fn OMGetRenderTargetsAndUnorderedAccessViews(this: *mut core::ffi::c_void, numrtvs: u32, pprendertargetviews: *mut *mut core::ffi::c_void, ppdepthstencilview: *mut *mut core::ffi::c_void, uavstartslot: u32, numuavs: u32, ppunorderedaccessviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn OMGetRenderTargetsAndUnorderedAccessViews(this: *mut core::ffi::c_void, numrtvs: u32, pprendertargetviews: *mut *mut core::ffi::c_void, ppdepthstencilview: *mut *mut core::ffi::c_void, uavstartslot: u32, numuavs: u32, ppunorderedaccessviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::OMGetRenderTargetsAndUnorderedAccessViews(this, core::mem::transmute_copy(&numrtvs), core::mem::transmute_copy(&pprendertargetviews), core::mem::transmute_copy(&ppdepthstencilview), core::mem::transmute_copy(&uavstartslot), core::mem::transmute_copy(&numuavs), core::mem::transmute_copy(&ppunorderedaccessviews)) } - unsafe extern "system" fn OMGetBlendState(this: *mut core::ffi::c_void, ppblendstate: *mut *mut core::ffi::c_void, blendfactor: *mut f32, psamplemask: *mut u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn OMGetBlendState(this: *mut core::ffi::c_void, ppblendstate: *mut *mut core::ffi::c_void, blendfactor: *mut f32, psamplemask: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::OMGetBlendState(this, core::mem::transmute_copy(&ppblendstate), core::mem::transmute_copy(&blendfactor), core::mem::transmute_copy(&psamplemask)) } - unsafe extern "system" fn OMGetDepthStencilState(this: *mut core::ffi::c_void, ppdepthstencilstate: *mut *mut core::ffi::c_void, pstencilref: *mut u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn OMGetDepthStencilState(this: *mut core::ffi::c_void, ppdepthstencilstate: *mut *mut core::ffi::c_void, pstencilref: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::OMGetDepthStencilState(this, core::mem::transmute_copy(&ppdepthstencilstate), core::mem::transmute_copy(&pstencilref)) } - unsafe extern "system" fn SOGetTargets(this: *mut core::ffi::c_void, numbuffers: u32, ppsotargets: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn SOGetTargets(this: *mut core::ffi::c_void, numbuffers: u32, ppsotargets: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::SOGetTargets(this, core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppsotargets)) } - unsafe extern "system" fn RSGetState(this: *mut core::ffi::c_void, pprasterizerstate: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn RSGetState(this: *mut core::ffi::c_void, pprasterizerstate: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::RSGetState(this, core::mem::transmute_copy(&pprasterizerstate)) } - unsafe extern "system" fn RSGetViewports(this: *mut core::ffi::c_void, pnumviewports: *mut u32, pviewports: *mut D3D11_VIEWPORT) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn RSGetViewports(this: *mut core::ffi::c_void, pnumviewports: *mut u32, pviewports: *mut D3D11_VIEWPORT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::RSGetViewports(this, core::mem::transmute_copy(&pnumviewports), core::mem::transmute_copy(&pviewports)) } - unsafe extern "system" fn RSGetScissorRects(this: *mut core::ffi::c_void, pnumrects: *mut u32, prects: *mut super::super::Foundation::RECT) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn RSGetScissorRects(this: *mut core::ffi::c_void, pnumrects: *mut u32, prects: *mut super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::RSGetScissorRects(this, core::mem::transmute_copy(&pnumrects), core::mem::transmute_copy(&prects)) } - unsafe extern "system" fn HSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn HSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::HSGetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn HSGetShader(this: *mut core::ffi::c_void, pphullshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn HSGetShader(this: *mut core::ffi::c_void, pphullshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::HSGetShader(this, core::mem::transmute_copy(&pphullshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&pnumclassinstances)) } - unsafe extern "system" fn HSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn HSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::HSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn HSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn HSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::HSGetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn DSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DSGetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn DSGetShader(this: *mut core::ffi::c_void, ppdomainshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DSGetShader(this: *mut core::ffi::c_void, ppdomainshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DSGetShader(this, core::mem::transmute_copy(&ppdomainshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&pnumclassinstances)) } - unsafe extern "system" fn DSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn DSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn DSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::DSGetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn CSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CSGetShaderResources(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, ppshaderresourceviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CSGetShaderResources(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&ppshaderresourceviews)) } - unsafe extern "system" fn CSGetUnorderedAccessViews(this: *mut core::ffi::c_void, startslot: u32, numuavs: u32, ppunorderedaccessviews: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CSGetUnorderedAccessViews(this: *mut core::ffi::c_void, startslot: u32, numuavs: u32, ppunorderedaccessviews: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CSGetUnorderedAccessViews(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numuavs), core::mem::transmute_copy(&ppunorderedaccessviews)) } - unsafe extern "system" fn CSGetShader(this: *mut core::ffi::c_void, ppcomputeshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CSGetShader(this: *mut core::ffi::c_void, ppcomputeshader: *mut *mut core::ffi::c_void, ppclassinstances: *mut *mut core::ffi::c_void, pnumclassinstances: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CSGetShader(this, core::mem::transmute_copy(&ppcomputeshader), core::mem::transmute_copy(&ppclassinstances), core::mem::transmute_copy(&pnumclassinstances)) } - unsafe extern "system" fn CSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CSGetSamplers(this: *mut core::ffi::c_void, startslot: u32, numsamplers: u32, ppsamplers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } - unsafe extern "system" fn CSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn CSGetConstantBuffers(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::CSGetConstantBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers)) } - unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::ClearState(this) } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::Flush(this) } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> D3D11_DEVICE_CONTEXT_TYPE - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> D3D11_DEVICE_CONTEXT_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GetType(this) } - unsafe extern "system" fn GetContextFlags(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn GetContextFlags(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GetContextFlags(this) } - unsafe extern "system" fn FinishCommandList(this: *mut core::ffi::c_void, restoredeferredcontextstate: super::super::Foundation::BOOL, ppcommandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11DeviceContext_Impl, - { + unsafe extern "system" fn FinishCommandList(this: *mut core::ffi::c_void, restoredeferredcontextstate: super::super::Foundation::BOOL, ppcommandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::FinishCommandList(this, core::mem::transmute_copy(&restoredeferredcontextstate), core::mem::transmute_copy(&ppcommandlist)).into() } @@ -2317,140 +1624,80 @@ pub trait ID3D11DeviceContext1_Impl: Sized + ID3D11DeviceContext_Impl { impl windows_core::RuntimeName for ID3D11DeviceContext1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11DeviceContext1_Vtbl { - pub const fn new() -> ID3D11DeviceContext1_Vtbl - where - Identity: ID3D11DeviceContext1_Impl, - { - unsafe extern "system" fn CopySubresourceRegion1(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, psrcbox: *const D3D11_BOX, copyflags: u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + pub const fn new() -> ID3D11DeviceContext1_Vtbl { + unsafe extern "system" fn CopySubresourceRegion1(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, dstx: u32, dsty: u32, dstz: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, psrcbox: *const D3D11_BOX, copyflags: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::CopySubresourceRegion1(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), core::mem::transmute_copy(&dstx), core::mem::transmute_copy(&dsty), core::mem::transmute_copy(&dstz), windows_core::from_raw_borrowed(&psrcresource), core::mem::transmute_copy(&srcsubresource), core::mem::transmute_copy(&psrcbox), core::mem::transmute_copy(©flags)) } - unsafe extern "system" fn UpdateSubresource1(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D11_BOX, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32, copyflags: u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn UpdateSubresource1(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D11_BOX, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32, copyflags: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::UpdateSubresource1(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), core::mem::transmute_copy(&pdstbox), core::mem::transmute_copy(&psrcdata), core::mem::transmute_copy(&srcrowpitch), core::mem::transmute_copy(&srcdepthpitch), core::mem::transmute_copy(©flags)) } - unsafe extern "system" fn DiscardResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn DiscardResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::DiscardResource(this, windows_core::from_raw_borrowed(&presource)) } - unsafe extern "system" fn DiscardView(this: *mut core::ffi::c_void, presourceview: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn DiscardView(this: *mut core::ffi::c_void, presourceview: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::DiscardView(this, windows_core::from_raw_borrowed(&presourceview)) } - unsafe extern "system" fn VSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn VSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::VSSetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn HSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn HSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::HSSetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn DSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn DSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::DSSetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn GSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn GSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::GSSetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn PSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn PSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::PSSetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn CSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn CSSetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *const *mut core::ffi::c_void, pfirstconstant: *const u32, pnumconstants: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::CSSetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn VSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn VSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::VSGetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn HSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn HSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::HSGetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn DSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn DSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::DSGetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn GSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn GSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::GSGetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn PSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn PSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::PSGetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn CSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn CSGetConstantBuffers1(this: *mut core::ffi::c_void, startslot: u32, numbuffers: u32, ppconstantbuffers: *mut *mut core::ffi::c_void, pfirstconstant: *mut u32, pnumconstants: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::CSGetConstantBuffers1(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&ppconstantbuffers), core::mem::transmute_copy(&pfirstconstant), core::mem::transmute_copy(&pnumconstants)) } - unsafe extern "system" fn SwapDeviceContextState(this: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void, pppreviousstate: *mut *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn SwapDeviceContextState(this: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void, pppreviousstate: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::SwapDeviceContextState(this, windows_core::from_raw_borrowed(&pstate), core::mem::transmute_copy(&pppreviousstate)) } - unsafe extern "system" fn ClearView(this: *mut core::ffi::c_void, pview: *mut core::ffi::c_void, color: *const f32, prect: *const super::super::Foundation::RECT, numrects: u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn ClearView(this: *mut core::ffi::c_void, pview: *mut core::ffi::c_void, color: *const f32, prect: *const super::super::Foundation::RECT, numrects: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::ClearView(this, windows_core::from_raw_borrowed(&pview), core::mem::transmute_copy(&color), core::mem::transmute_copy(&prect), core::mem::transmute_copy(&numrects)) } - unsafe extern "system" fn DiscardView1(this: *mut core::ffi::c_void, presourceview: *mut core::ffi::c_void, prects: *const super::super::Foundation::RECT, numrects: u32) - where - Identity: ID3D11DeviceContext1_Impl, - { + unsafe extern "system" fn DiscardView1(this: *mut core::ffi::c_void, presourceview: *mut core::ffi::c_void, prects: *const super::super::Foundation::RECT, numrects: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext1_Impl::DiscardView1(this, windows_core::from_raw_borrowed(&presourceview), core::mem::transmute_copy(&prects), core::mem::transmute_copy(&numrects)) } @@ -2498,14 +1745,8 @@ pub trait ID3D11DeviceContext2_Impl: Sized + ID3D11DeviceContext1_Impl { impl windows_core::RuntimeName for ID3D11DeviceContext2 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11DeviceContext2_Vtbl { - pub const fn new() -> ID3D11DeviceContext2_Vtbl - where - Identity: ID3D11DeviceContext2_Impl, - { - unsafe extern "system" fn UpdateTileMappings(this: *mut core::ffi::c_void, ptiledresource: *mut core::ffi::c_void, numtiledresourceregions: u32, ptiledresourceregionstartcoordinates: *const D3D11_TILED_RESOURCE_COORDINATE, ptiledresourceregionsizes: *const D3D11_TILE_REGION_SIZE, ptilepool: *mut core::ffi::c_void, numranges: u32, prangeflags: *const u32, ptilepoolstartoffsets: *const u32, prangetilecounts: *const u32, flags: u32) -> windows_core::HRESULT - where - Identity: ID3D11DeviceContext2_Impl, - { + pub const fn new() -> ID3D11DeviceContext2_Vtbl { + unsafe extern "system" fn UpdateTileMappings(this: *mut core::ffi::c_void, ptiledresource: *mut core::ffi::c_void, numtiledresourceregions: u32, ptiledresourceregionstartcoordinates: *const D3D11_TILED_RESOURCE_COORDINATE, ptiledresourceregionsizes: *const D3D11_TILE_REGION_SIZE, ptilepool: *mut core::ffi::c_void, numranges: u32, prangeflags: *const u32, ptilepoolstartoffsets: *const u32, prangetilecounts: *const u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::UpdateTileMappings( this, @@ -2522,66 +1763,39 @@ impl ID3D11DeviceContext2_Vtbl { ) .into() } - unsafe extern "system" fn CopyTileMappings(this: *mut core::ffi::c_void, pdesttiledresource: *mut core::ffi::c_void, pdestregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, psourcetiledresource: *mut core::ffi::c_void, psourceregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D11_TILE_REGION_SIZE, flags: u32) -> windows_core::HRESULT - where - Identity: ID3D11DeviceContext2_Impl, - { + unsafe extern "system" fn CopyTileMappings(this: *mut core::ffi::c_void, pdesttiledresource: *mut core::ffi::c_void, pdestregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, psourcetiledresource: *mut core::ffi::c_void, psourceregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D11_TILE_REGION_SIZE, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::CopyTileMappings(this, windows_core::from_raw_borrowed(&pdesttiledresource), core::mem::transmute_copy(&pdestregionstartcoordinate), windows_core::from_raw_borrowed(&psourcetiledresource), core::mem::transmute_copy(&psourceregionstartcoordinate), core::mem::transmute_copy(&ptileregionsize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn CopyTiles(this: *mut core::ffi::c_void, ptiledresource: *mut core::ffi::c_void, ptileregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D11_TILE_REGION_SIZE, pbuffer: *mut core::ffi::c_void, bufferstartoffsetinbytes: u64, flags: u32) - where - Identity: ID3D11DeviceContext2_Impl, - { + unsafe extern "system" fn CopyTiles(this: *mut core::ffi::c_void, ptiledresource: *mut core::ffi::c_void, ptileregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D11_TILE_REGION_SIZE, pbuffer: *mut core::ffi::c_void, bufferstartoffsetinbytes: u64, flags: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::CopyTiles(this, windows_core::from_raw_borrowed(&ptiledresource), core::mem::transmute_copy(&ptileregionstartcoordinate), core::mem::transmute_copy(&ptileregionsize), windows_core::from_raw_borrowed(&pbuffer), core::mem::transmute_copy(&bufferstartoffsetinbytes), core::mem::transmute_copy(&flags)) } - unsafe extern "system" fn UpdateTiles(this: *mut core::ffi::c_void, pdesttiledresource: *mut core::ffi::c_void, pdesttileregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, pdesttileregionsize: *const D3D11_TILE_REGION_SIZE, psourcetiledata: *const core::ffi::c_void, flags: u32) - where - Identity: ID3D11DeviceContext2_Impl, - { + unsafe extern "system" fn UpdateTiles(this: *mut core::ffi::c_void, pdesttiledresource: *mut core::ffi::c_void, pdesttileregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, pdesttileregionsize: *const D3D11_TILE_REGION_SIZE, psourcetiledata: *const core::ffi::c_void, flags: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::UpdateTiles(this, windows_core::from_raw_borrowed(&pdesttiledresource), core::mem::transmute_copy(&pdesttileregionstartcoordinate), core::mem::transmute_copy(&pdesttileregionsize), core::mem::transmute_copy(&psourcetiledata), core::mem::transmute_copy(&flags)) } - unsafe extern "system" fn ResizeTilePool(this: *mut core::ffi::c_void, ptilepool: *mut core::ffi::c_void, newsizeinbytes: u64) -> windows_core::HRESULT - where - Identity: ID3D11DeviceContext2_Impl, - { + unsafe extern "system" fn ResizeTilePool(this: *mut core::ffi::c_void, ptilepool: *mut core::ffi::c_void, newsizeinbytes: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::ResizeTilePool(this, windows_core::from_raw_borrowed(&ptilepool), core::mem::transmute_copy(&newsizeinbytes)).into() } - unsafe extern "system" fn TiledResourceBarrier(this: *mut core::ffi::c_void, ptiledresourceorviewaccessbeforebarrier: *mut core::ffi::c_void, ptiledresourceorviewaccessafterbarrier: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext2_Impl, - { + unsafe extern "system" fn TiledResourceBarrier(this: *mut core::ffi::c_void, ptiledresourceorviewaccessbeforebarrier: *mut core::ffi::c_void, ptiledresourceorviewaccessafterbarrier: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::TiledResourceBarrier(this, windows_core::from_raw_borrowed(&ptiledresourceorviewaccessbeforebarrier), windows_core::from_raw_borrowed(&ptiledresourceorviewaccessafterbarrier)) } - unsafe extern "system" fn IsAnnotationEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D11DeviceContext2_Impl, - { + unsafe extern "system" fn IsAnnotationEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::IsAnnotationEnabled(this) } - unsafe extern "system" fn SetMarkerInt(this: *mut core::ffi::c_void, plabel: windows_core::PCWSTR, data: i32) - where - Identity: ID3D11DeviceContext2_Impl, - { + unsafe extern "system" fn SetMarkerInt(this: *mut core::ffi::c_void, plabel: windows_core::PCWSTR, data: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::SetMarkerInt(this, core::mem::transmute(&plabel), core::mem::transmute_copy(&data)) } - unsafe extern "system" fn BeginEventInt(this: *mut core::ffi::c_void, plabel: windows_core::PCWSTR, data: i32) - where - Identity: ID3D11DeviceContext2_Impl, - { + unsafe extern "system" fn BeginEventInt(this: *mut core::ffi::c_void, plabel: windows_core::PCWSTR, data: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::BeginEventInt(this, core::mem::transmute(&plabel), core::mem::transmute_copy(&data)) } - unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) - where - Identity: ID3D11DeviceContext2_Impl, - { + unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::EndEvent(this) } @@ -2613,28 +1827,16 @@ pub trait ID3D11DeviceContext3_Impl: Sized + ID3D11DeviceContext2_Impl { impl windows_core::RuntimeName for ID3D11DeviceContext3 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11DeviceContext3_Vtbl { - pub const fn new() -> ID3D11DeviceContext3_Vtbl - where - Identity: ID3D11DeviceContext3_Impl, - { - unsafe extern "system" fn Flush1(this: *mut core::ffi::c_void, contexttype: D3D11_CONTEXT_TYPE, hevent: super::super::Foundation::HANDLE) - where - Identity: ID3D11DeviceContext3_Impl, - { + pub const fn new() -> ID3D11DeviceContext3_Vtbl { + unsafe extern "system" fn Flush1(this: *mut core::ffi::c_void, contexttype: D3D11_CONTEXT_TYPE, hevent: super::super::Foundation::HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext3_Impl::Flush1(this, core::mem::transmute_copy(&contexttype), core::mem::transmute_copy(&hevent)) } - unsafe extern "system" fn SetHardwareProtectionState(this: *mut core::ffi::c_void, hwprotectionenable: super::super::Foundation::BOOL) - where - Identity: ID3D11DeviceContext3_Impl, - { + unsafe extern "system" fn SetHardwareProtectionState(this: *mut core::ffi::c_void, hwprotectionenable: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext3_Impl::SetHardwareProtectionState(this, core::mem::transmute_copy(&hwprotectionenable)) } - unsafe extern "system" fn GetHardwareProtectionState(this: *mut core::ffi::c_void, phwprotectionenable: *mut super::super::Foundation::BOOL) - where - Identity: ID3D11DeviceContext3_Impl, - { + unsafe extern "system" fn GetHardwareProtectionState(this: *mut core::ffi::c_void, phwprotectionenable: *mut super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext3_Impl::GetHardwareProtectionState(this, core::mem::transmute_copy(&phwprotectionenable)) } @@ -2658,21 +1860,12 @@ pub trait ID3D11DeviceContext4_Impl: Sized + ID3D11DeviceContext3_Impl { impl windows_core::RuntimeName for ID3D11DeviceContext4 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11DeviceContext4_Vtbl { - pub const fn new() -> ID3D11DeviceContext4_Vtbl - where - Identity: ID3D11DeviceContext4_Impl, - { - unsafe extern "system" fn Signal(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT - where - Identity: ID3D11DeviceContext4_Impl, - { + pub const fn new() -> ID3D11DeviceContext4_Vtbl { + unsafe extern "system" fn Signal(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext4_Impl::Signal(this, windows_core::from_raw_borrowed(&pfence), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT - where - Identity: ID3D11DeviceContext4_Impl, - { + unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext4_Impl::Wait(this, windows_core::from_raw_borrowed(&pfence), core::mem::transmute_copy(&value)).into() } @@ -2685,10 +1878,7 @@ impl ID3D11DeviceContext4_Vtbl { pub trait ID3D11DomainShader_Impl: Sized + ID3D11DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D11DomainShader {} impl ID3D11DomainShader_Vtbl { - pub const fn new() -> ID3D11DomainShader_Vtbl - where - Identity: ID3D11DomainShader_Impl, - { + pub const fn new() -> ID3D11DomainShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -2705,14 +1895,8 @@ pub trait ID3D11Fence_Impl: Sized + ID3D11DeviceChild_Impl { impl windows_core::RuntimeName for ID3D11Fence {} #[cfg(feature = "Win32_Security")] impl ID3D11Fence_Vtbl { - pub const fn new() -> ID3D11Fence_Vtbl - where - Identity: ID3D11Fence_Impl, - { - unsafe extern "system" fn CreateSharedHandle(this: *mut core::ffi::c_void, pattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwaccess: u32, lpname: windows_core::PCWSTR, phandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ID3D11Fence_Impl, - { + pub const fn new() -> ID3D11Fence_Vtbl { + unsafe extern "system" fn CreateSharedHandle(this: *mut core::ffi::c_void, pattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwaccess: u32, lpname: windows_core::PCWSTR, phandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11Fence_Impl::CreateSharedHandle(this, core::mem::transmute_copy(&pattributes), core::mem::transmute_copy(&dwaccess), core::mem::transmute(&lpname)) { Ok(ok__) => { @@ -2722,17 +1906,11 @@ impl ID3D11Fence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCompletedValue(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D11Fence_Impl, - { + unsafe extern "system" fn GetCompletedValue(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Fence_Impl::GetCompletedValue(this) } - unsafe extern "system" fn SetEventOnCompletion(this: *mut core::ffi::c_void, value: u64, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ID3D11Fence_Impl, - { + unsafe extern "system" fn SetEventOnCompletion(this: *mut core::ffi::c_void, value: u64, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Fence_Impl::SetEventOnCompletion(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&hevent)).into() } @@ -2748,7 +1926,7 @@ impl ID3D11Fence_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D")] -pub trait ID3D11FunctionLinkingGraph_Impl: Sized { +pub trait ID3D11FunctionLinkingGraph_Impl: Sized + windows_core::IUnknownImpl { fn CreateModuleInstance(&self, ppmoduleinstance: *mut Option, pperrorbuffer: *mut Option) -> windows_core::Result<()>; fn SetInputSignature(&self, pinputparameters: *const D3D11_PARAMETER_DESC, cinputparameters: u32) -> windows_core::Result; fn SetOutputSignature(&self, poutputparameters: *const D3D11_PARAMETER_DESC, coutputparameters: u32) -> windows_core::Result; @@ -2762,21 +1940,12 @@ pub trait ID3D11FunctionLinkingGraph_Impl: Sized { impl windows_core::RuntimeName for ID3D11FunctionLinkingGraph {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11FunctionLinkingGraph_Vtbl { - pub const fn new() -> ID3D11FunctionLinkingGraph_Vtbl - where - Identity: ID3D11FunctionLinkingGraph_Impl, - { - unsafe extern "system" fn CreateModuleInstance(this: *mut core::ffi::c_void, ppmoduleinstance: *mut *mut core::ffi::c_void, pperrorbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11FunctionLinkingGraph_Impl, - { + pub const fn new() -> ID3D11FunctionLinkingGraph_Vtbl { + unsafe extern "system" fn CreateModuleInstance(this: *mut core::ffi::c_void, ppmoduleinstance: *mut *mut core::ffi::c_void, pperrorbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11FunctionLinkingGraph_Impl::CreateModuleInstance(this, core::mem::transmute_copy(&ppmoduleinstance), core::mem::transmute_copy(&pperrorbuffer)).into() } - unsafe extern "system" fn SetInputSignature(this: *mut core::ffi::c_void, pinputparameters: *const D3D11_PARAMETER_DESC, cinputparameters: u32, ppinputnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11FunctionLinkingGraph_Impl, - { + unsafe extern "system" fn SetInputSignature(this: *mut core::ffi::c_void, pinputparameters: *const D3D11_PARAMETER_DESC, cinputparameters: u32, ppinputnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11FunctionLinkingGraph_Impl::SetInputSignature(this, core::mem::transmute_copy(&pinputparameters), core::mem::transmute_copy(&cinputparameters)) { Ok(ok__) => { @@ -2786,10 +1955,7 @@ impl ID3D11FunctionLinkingGraph_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputSignature(this: *mut core::ffi::c_void, poutputparameters: *const D3D11_PARAMETER_DESC, coutputparameters: u32, ppoutputnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11FunctionLinkingGraph_Impl, - { + unsafe extern "system" fn SetOutputSignature(this: *mut core::ffi::c_void, poutputparameters: *const D3D11_PARAMETER_DESC, coutputparameters: u32, ppoutputnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11FunctionLinkingGraph_Impl::SetOutputSignature(this, core::mem::transmute_copy(&poutputparameters), core::mem::transmute_copy(&coutputparameters)) { Ok(ok__) => { @@ -2799,10 +1965,7 @@ impl ID3D11FunctionLinkingGraph_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallFunction(this: *mut core::ffi::c_void, pmoduleinstancenamespace: windows_core::PCSTR, pmodulewithfunctionprototype: *mut core::ffi::c_void, pfunctionname: windows_core::PCSTR, ppcallnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11FunctionLinkingGraph_Impl, - { + unsafe extern "system" fn CallFunction(this: *mut core::ffi::c_void, pmoduleinstancenamespace: windows_core::PCSTR, pmodulewithfunctionprototype: *mut core::ffi::c_void, pfunctionname: windows_core::PCSTR, ppcallnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11FunctionLinkingGraph_Impl::CallFunction(this, core::mem::transmute(&pmoduleinstancenamespace), windows_core::from_raw_borrowed(&pmodulewithfunctionprototype), core::mem::transmute(&pfunctionname)) { Ok(ok__) => { @@ -2812,31 +1975,19 @@ impl ID3D11FunctionLinkingGraph_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PassValue(this: *mut core::ffi::c_void, psrcnode: *mut core::ffi::c_void, srcparameterindex: i32, pdstnode: *mut core::ffi::c_void, dstparameterindex: i32) -> windows_core::HRESULT - where - Identity: ID3D11FunctionLinkingGraph_Impl, - { + unsafe extern "system" fn PassValue(this: *mut core::ffi::c_void, psrcnode: *mut core::ffi::c_void, srcparameterindex: i32, pdstnode: *mut core::ffi::c_void, dstparameterindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11FunctionLinkingGraph_Impl::PassValue(this, windows_core::from_raw_borrowed(&psrcnode), core::mem::transmute_copy(&srcparameterindex), windows_core::from_raw_borrowed(&pdstnode), core::mem::transmute_copy(&dstparameterindex)).into() } - unsafe extern "system" fn PassValueWithSwizzle(this: *mut core::ffi::c_void, psrcnode: *mut core::ffi::c_void, srcparameterindex: i32, psrcswizzle: windows_core::PCSTR, pdstnode: *mut core::ffi::c_void, dstparameterindex: i32, pdstswizzle: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: ID3D11FunctionLinkingGraph_Impl, - { + unsafe extern "system" fn PassValueWithSwizzle(this: *mut core::ffi::c_void, psrcnode: *mut core::ffi::c_void, srcparameterindex: i32, psrcswizzle: windows_core::PCSTR, pdstnode: *mut core::ffi::c_void, dstparameterindex: i32, pdstswizzle: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11FunctionLinkingGraph_Impl::PassValueWithSwizzle(this, windows_core::from_raw_borrowed(&psrcnode), core::mem::transmute_copy(&srcparameterindex), core::mem::transmute(&psrcswizzle), windows_core::from_raw_borrowed(&pdstnode), core::mem::transmute_copy(&dstparameterindex), core::mem::transmute(&pdstswizzle)).into() } - unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, pperrorbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11FunctionLinkingGraph_Impl, - { + unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, pperrorbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11FunctionLinkingGraph_Impl::GetLastError(this, core::mem::transmute_copy(&pperrorbuffer)).into() } - unsafe extern "system" fn GenerateHlsl(this: *mut core::ffi::c_void, uflags: u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11FunctionLinkingGraph_Impl, - { + unsafe extern "system" fn GenerateHlsl(this: *mut core::ffi::c_void, uflags: u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11FunctionLinkingGraph_Impl::GenerateHlsl(this, core::mem::transmute_copy(&uflags)) { Ok(ok__) => { @@ -2969,10 +2120,7 @@ impl ID3D11FunctionReflection { pub trait ID3D11GeometryShader_Impl: Sized + ID3D11DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D11GeometryShader {} impl ID3D11GeometryShader_Vtbl { - pub const fn new() -> ID3D11GeometryShader_Vtbl - where - Identity: ID3D11GeometryShader_Impl, - { + pub const fn new() -> ID3D11GeometryShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -2982,17 +2130,14 @@ impl ID3D11GeometryShader_Vtbl { pub trait ID3D11HullShader_Impl: Sized + ID3D11DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D11HullShader {} impl ID3D11HullShader_Vtbl { - pub const fn new() -> ID3D11HullShader_Vtbl - where - Identity: ID3D11HullShader_Impl, - { + pub const fn new() -> ID3D11HullShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait ID3D11InfoQueue_Impl: Sized { +pub trait ID3D11InfoQueue_Impl: Sized + windows_core::IUnknownImpl { fn SetMessageCountLimit(&self, messagecountlimit: u64) -> windows_core::Result<()>; fn ClearStoredMessages(&self); fn GetMessage(&self, messageindex: u64, pmessage: *mut D3D11_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::Result<()>; @@ -3031,252 +2176,144 @@ pub trait ID3D11InfoQueue_Impl: Sized { } impl windows_core::RuntimeName for ID3D11InfoQueue {} impl ID3D11InfoQueue_Vtbl { - pub const fn new() -> ID3D11InfoQueue_Vtbl - where - Identity: ID3D11InfoQueue_Impl, - { - unsafe extern "system" fn SetMessageCountLimit(this: *mut core::ffi::c_void, messagecountlimit: u64) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + pub const fn new() -> ID3D11InfoQueue_Vtbl { + unsafe extern "system" fn SetMessageCountLimit(this: *mut core::ffi::c_void, messagecountlimit: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::SetMessageCountLimit(this, core::mem::transmute_copy(&messagecountlimit)).into() } - unsafe extern "system" fn ClearStoredMessages(this: *mut core::ffi::c_void) - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn ClearStoredMessages(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::ClearStoredMessages(this) } - unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, messageindex: u64, pmessage: *mut D3D11_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, messageindex: u64, pmessage: *mut D3D11_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetMessage(this, core::mem::transmute_copy(&messageindex), core::mem::transmute_copy(&pmessage), core::mem::transmute_copy(&pmessagebytelength)).into() } - unsafe extern "system" fn GetNumMessagesAllowedByStorageFilter(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesAllowedByStorageFilter(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetNumMessagesAllowedByStorageFilter(this) } - unsafe extern "system" fn GetNumMessagesDeniedByStorageFilter(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesDeniedByStorageFilter(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetNumMessagesDeniedByStorageFilter(this) } - unsafe extern "system" fn GetNumStoredMessages(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetNumStoredMessages(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetNumStoredMessages(this) } - unsafe extern "system" fn GetNumStoredMessagesAllowedByRetrievalFilter(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetNumStoredMessagesAllowedByRetrievalFilter(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetNumStoredMessagesAllowedByRetrievalFilter(this) } - unsafe extern "system" fn GetNumMessagesDiscardedByMessageCountLimit(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesDiscardedByMessageCountLimit(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetNumMessagesDiscardedByMessageCountLimit(this) } - unsafe extern "system" fn GetMessageCountLimit(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetMessageCountLimit(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetMessageCountLimit(this) } - unsafe extern "system" fn AddStorageFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn AddStorageFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::AddStorageFilterEntries(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn GetStorageFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D11_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetStorageFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D11_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetStorageFilter(this, core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&pfilterbytelength)).into() } - unsafe extern "system" fn ClearStorageFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn ClearStorageFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::ClearStorageFilter(this) } - unsafe extern "system" fn PushEmptyStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn PushEmptyStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::PushEmptyStorageFilter(this).into() } - unsafe extern "system" fn PushCopyOfStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn PushCopyOfStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::PushCopyOfStorageFilter(this).into() } - unsafe extern "system" fn PushStorageFilter(this: *mut core::ffi::c_void, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn PushStorageFilter(this: *mut core::ffi::c_void, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::PushStorageFilter(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn PopStorageFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn PopStorageFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::PopStorageFilter(this) } - unsafe extern "system" fn GetStorageFilterStackSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetStorageFilterStackSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetStorageFilterStackSize(this) } - unsafe extern "system" fn AddRetrievalFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn AddRetrievalFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::AddRetrievalFilterEntries(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn GetRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D11_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D11_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetRetrievalFilter(this, core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&pfilterbytelength)).into() } - unsafe extern "system" fn ClearRetrievalFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn ClearRetrievalFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::ClearRetrievalFilter(this) } - unsafe extern "system" fn PushEmptyRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn PushEmptyRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::PushEmptyRetrievalFilter(this).into() } - unsafe extern "system" fn PushCopyOfRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn PushCopyOfRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::PushCopyOfRetrievalFilter(this).into() } - unsafe extern "system" fn PushRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn PushRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *const D3D11_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::PushRetrievalFilter(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn PopRetrievalFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn PopRetrievalFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::PopRetrievalFilter(this) } - unsafe extern "system" fn GetRetrievalFilterStackSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetRetrievalFilterStackSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetRetrievalFilterStackSize(this) } - unsafe extern "system" fn AddMessage(this: *mut core::ffi::c_void, category: D3D11_MESSAGE_CATEGORY, severity: D3D11_MESSAGE_SEVERITY, id: D3D11_MESSAGE_ID, pdescription: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn AddMessage(this: *mut core::ffi::c_void, category: D3D11_MESSAGE_CATEGORY, severity: D3D11_MESSAGE_SEVERITY, id: D3D11_MESSAGE_ID, pdescription: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::AddMessage(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&severity), core::mem::transmute_copy(&id), core::mem::transmute(&pdescription)).into() } - unsafe extern "system" fn AddApplicationMessage(this: *mut core::ffi::c_void, severity: D3D11_MESSAGE_SEVERITY, pdescription: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn AddApplicationMessage(this: *mut core::ffi::c_void, severity: D3D11_MESSAGE_SEVERITY, pdescription: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::AddApplicationMessage(this, core::mem::transmute_copy(&severity), core::mem::transmute(&pdescription)).into() } - unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D11_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D11_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::SetBreakOnCategory(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D11_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D11_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::SetBreakOnSeverity(this, core::mem::transmute_copy(&severity), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D11_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D11_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::SetBreakOnID(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D11_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D11_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetBreakOnCategory(this, core::mem::transmute_copy(&category)) } - unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D11_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D11_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetBreakOnSeverity(this, core::mem::transmute_copy(&severity)) } - unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D11_MESSAGE_ID) -> super::super::Foundation::BOOL - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D11_MESSAGE_ID) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetBreakOnID(this, core::mem::transmute_copy(&id)) } - unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::SetMuteDebugOutput(this, core::mem::transmute_copy(&bmute)) } - unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D11InfoQueue_Impl, - { + unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetMuteDebugOutput(this) } @@ -3326,30 +2363,21 @@ impl ID3D11InfoQueue_Vtbl { pub trait ID3D11InputLayout_Impl: Sized + ID3D11DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D11InputLayout {} impl ID3D11InputLayout_Vtbl { - pub const fn new() -> ID3D11InputLayout_Vtbl - where - Identity: ID3D11InputLayout_Impl, - { + pub const fn new() -> ID3D11InputLayout_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait ID3D11LibraryReflection_Impl: Sized { +pub trait ID3D11LibraryReflection_Impl: Sized + windows_core::IUnknownImpl { fn GetDesc(&self) -> windows_core::Result; fn GetFunctionByIndex(&self, functionindex: i32) -> Option; } impl windows_core::RuntimeName for ID3D11LibraryReflection {} impl ID3D11LibraryReflection_Vtbl { - pub const fn new() -> ID3D11LibraryReflection_Vtbl - where - Identity: ID3D11LibraryReflection_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_LIBRARY_DESC) -> windows_core::HRESULT - where - Identity: ID3D11LibraryReflection_Impl, - { + pub const fn new() -> ID3D11LibraryReflection_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_LIBRARY_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11LibraryReflection_Impl::GetDesc(this) { Ok(ok__) => { @@ -3359,10 +2387,7 @@ impl ID3D11LibraryReflection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionByIndex(this: *mut core::ffi::c_void, functionindex: i32) -> Option - where - Identity: ID3D11LibraryReflection_Impl, - { + unsafe extern "system" fn GetFunctionByIndex(this: *mut core::ffi::c_void, functionindex: i32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11LibraryReflection_Impl::GetFunctionByIndex(this, core::mem::transmute_copy(&functionindex)) } @@ -3377,7 +2402,7 @@ impl ID3D11LibraryReflection_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D")] -pub trait ID3D11Linker_Impl: Sized { +pub trait ID3D11Linker_Impl: Sized + windows_core::IUnknownImpl { fn Link(&self, pentry: Option<&ID3D11ModuleInstance>, pentryname: &windows_core::PCSTR, ptargetname: &windows_core::PCSTR, uflags: u32, ppshaderblob: *mut Option, pperrorbuffer: *mut Option) -> windows_core::Result<()>; fn UseLibrary(&self, plibrarymi: Option<&ID3D11ModuleInstance>) -> windows_core::Result<()>; fn AddClipPlaneFromCBuffer(&self, ucbufferslot: u32, ucbufferentry: u32) -> windows_core::Result<()>; @@ -3386,28 +2411,16 @@ pub trait ID3D11Linker_Impl: Sized { impl windows_core::RuntimeName for ID3D11Linker {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11Linker_Vtbl { - pub const fn new() -> ID3D11Linker_Vtbl - where - Identity: ID3D11Linker_Impl, - { - unsafe extern "system" fn Link(this: *mut core::ffi::c_void, pentry: *mut core::ffi::c_void, pentryname: windows_core::PCSTR, ptargetname: windows_core::PCSTR, uflags: u32, ppshaderblob: *mut *mut core::ffi::c_void, pperrorbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Linker_Impl, - { + pub const fn new() -> ID3D11Linker_Vtbl { + unsafe extern "system" fn Link(this: *mut core::ffi::c_void, pentry: *mut core::ffi::c_void, pentryname: windows_core::PCSTR, ptargetname: windows_core::PCSTR, uflags: u32, ppshaderblob: *mut *mut core::ffi::c_void, pperrorbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Linker_Impl::Link(this, windows_core::from_raw_borrowed(&pentry), core::mem::transmute(&pentryname), core::mem::transmute(&ptargetname), core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&ppshaderblob), core::mem::transmute_copy(&pperrorbuffer)).into() } - unsafe extern "system" fn UseLibrary(this: *mut core::ffi::c_void, plibrarymi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Linker_Impl, - { + unsafe extern "system" fn UseLibrary(this: *mut core::ffi::c_void, plibrarymi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Linker_Impl::UseLibrary(this, windows_core::from_raw_borrowed(&plibrarymi)).into() } - unsafe extern "system" fn AddClipPlaneFromCBuffer(this: *mut core::ffi::c_void, ucbufferslot: u32, ucbufferentry: u32) -> windows_core::HRESULT - where - Identity: ID3D11Linker_Impl, - { + unsafe extern "system" fn AddClipPlaneFromCBuffer(this: *mut core::ffi::c_void, ucbufferslot: u32, ucbufferentry: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Linker_Impl::AddClipPlaneFromCBuffer(this, core::mem::transmute_copy(&ucbufferslot), core::mem::transmute_copy(&ucbufferentry)).into() } @@ -3422,32 +2435,23 @@ impl ID3D11Linker_Vtbl { iid == &::IID } } -pub trait ID3D11LinkingNode_Impl: Sized {} +pub trait ID3D11LinkingNode_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for ID3D11LinkingNode {} impl ID3D11LinkingNode_Vtbl { - pub const fn new() -> ID3D11LinkingNode_Vtbl - where - Identity: ID3D11LinkingNode_Impl, - { + pub const fn new() -> ID3D11LinkingNode_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait ID3D11Module_Impl: Sized { +pub trait ID3D11Module_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, pnamespace: &windows_core::PCSTR) -> windows_core::Result; } impl windows_core::RuntimeName for ID3D11Module {} impl ID3D11Module_Vtbl { - pub const fn new() -> ID3D11Module_Vtbl - where - Identity: ID3D11Module_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, pnamespace: windows_core::PCSTR, ppmoduleinstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11Module_Impl, - { + pub const fn new() -> ID3D11Module_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, pnamespace: windows_core::PCSTR, ppmoduleinstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11Module_Impl::CreateInstance(this, core::mem::transmute(&pnamespace)) { Ok(ok__) => { @@ -3463,7 +2467,7 @@ impl ID3D11Module_Vtbl { iid == &::IID } } -pub trait ID3D11ModuleInstance_Impl: Sized { +pub trait ID3D11ModuleInstance_Impl: Sized + windows_core::IUnknownImpl { fn BindConstantBuffer(&self, usrcslot: u32, udstslot: u32, cbdstoffset: u32) -> windows_core::Result<()>; fn BindConstantBufferByName(&self, pname: &windows_core::PCSTR, udstslot: u32, cbdstoffset: u32) -> windows_core::Result<()>; fn BindResource(&self, usrcslot: u32, udstslot: u32, ucount: u32) -> windows_core::Result<()>; @@ -3477,77 +2481,44 @@ pub trait ID3D11ModuleInstance_Impl: Sized { } impl windows_core::RuntimeName for ID3D11ModuleInstance {} impl ID3D11ModuleInstance_Vtbl { - pub const fn new() -> ID3D11ModuleInstance_Vtbl - where - Identity: ID3D11ModuleInstance_Impl, - { - unsafe extern "system" fn BindConstantBuffer(this: *mut core::ffi::c_void, usrcslot: u32, udstslot: u32, cbdstoffset: u32) -> windows_core::HRESULT - where - Identity: ID3D11ModuleInstance_Impl, - { + pub const fn new() -> ID3D11ModuleInstance_Vtbl { + unsafe extern "system" fn BindConstantBuffer(this: *mut core::ffi::c_void, usrcslot: u32, udstslot: u32, cbdstoffset: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ModuleInstance_Impl::BindConstantBuffer(this, core::mem::transmute_copy(&usrcslot), core::mem::transmute_copy(&udstslot), core::mem::transmute_copy(&cbdstoffset)).into() } - unsafe extern "system" fn BindConstantBufferByName(this: *mut core::ffi::c_void, pname: windows_core::PCSTR, udstslot: u32, cbdstoffset: u32) -> windows_core::HRESULT - where - Identity: ID3D11ModuleInstance_Impl, - { + unsafe extern "system" fn BindConstantBufferByName(this: *mut core::ffi::c_void, pname: windows_core::PCSTR, udstslot: u32, cbdstoffset: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ModuleInstance_Impl::BindConstantBufferByName(this, core::mem::transmute(&pname), core::mem::transmute_copy(&udstslot), core::mem::transmute_copy(&cbdstoffset)).into() } - unsafe extern "system" fn BindResource(this: *mut core::ffi::c_void, usrcslot: u32, udstslot: u32, ucount: u32) -> windows_core::HRESULT - where - Identity: ID3D11ModuleInstance_Impl, - { + unsafe extern "system" fn BindResource(this: *mut core::ffi::c_void, usrcslot: u32, udstslot: u32, ucount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ModuleInstance_Impl::BindResource(this, core::mem::transmute_copy(&usrcslot), core::mem::transmute_copy(&udstslot), core::mem::transmute_copy(&ucount)).into() } - unsafe extern "system" fn BindResourceByName(this: *mut core::ffi::c_void, pname: windows_core::PCSTR, udstslot: u32, ucount: u32) -> windows_core::HRESULT - where - Identity: ID3D11ModuleInstance_Impl, - { + unsafe extern "system" fn BindResourceByName(this: *mut core::ffi::c_void, pname: windows_core::PCSTR, udstslot: u32, ucount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ModuleInstance_Impl::BindResourceByName(this, core::mem::transmute(&pname), core::mem::transmute_copy(&udstslot), core::mem::transmute_copy(&ucount)).into() } - unsafe extern "system" fn BindSampler(this: *mut core::ffi::c_void, usrcslot: u32, udstslot: u32, ucount: u32) -> windows_core::HRESULT - where - Identity: ID3D11ModuleInstance_Impl, - { + unsafe extern "system" fn BindSampler(this: *mut core::ffi::c_void, usrcslot: u32, udstslot: u32, ucount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ModuleInstance_Impl::BindSampler(this, core::mem::transmute_copy(&usrcslot), core::mem::transmute_copy(&udstslot), core::mem::transmute_copy(&ucount)).into() } - unsafe extern "system" fn BindSamplerByName(this: *mut core::ffi::c_void, pname: windows_core::PCSTR, udstslot: u32, ucount: u32) -> windows_core::HRESULT - where - Identity: ID3D11ModuleInstance_Impl, - { + unsafe extern "system" fn BindSamplerByName(this: *mut core::ffi::c_void, pname: windows_core::PCSTR, udstslot: u32, ucount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ModuleInstance_Impl::BindSamplerByName(this, core::mem::transmute(&pname), core::mem::transmute_copy(&udstslot), core::mem::transmute_copy(&ucount)).into() } - unsafe extern "system" fn BindUnorderedAccessView(this: *mut core::ffi::c_void, usrcslot: u32, udstslot: u32, ucount: u32) -> windows_core::HRESULT - where - Identity: ID3D11ModuleInstance_Impl, - { + unsafe extern "system" fn BindUnorderedAccessView(this: *mut core::ffi::c_void, usrcslot: u32, udstslot: u32, ucount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ModuleInstance_Impl::BindUnorderedAccessView(this, core::mem::transmute_copy(&usrcslot), core::mem::transmute_copy(&udstslot), core::mem::transmute_copy(&ucount)).into() } - unsafe extern "system" fn BindUnorderedAccessViewByName(this: *mut core::ffi::c_void, pname: windows_core::PCSTR, udstslot: u32, ucount: u32) -> windows_core::HRESULT - where - Identity: ID3D11ModuleInstance_Impl, - { + unsafe extern "system" fn BindUnorderedAccessViewByName(this: *mut core::ffi::c_void, pname: windows_core::PCSTR, udstslot: u32, ucount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ModuleInstance_Impl::BindUnorderedAccessViewByName(this, core::mem::transmute(&pname), core::mem::transmute_copy(&udstslot), core::mem::transmute_copy(&ucount)).into() } - unsafe extern "system" fn BindResourceAsUnorderedAccessView(this: *mut core::ffi::c_void, usrcsrvslot: u32, udstuavslot: u32, ucount: u32) -> windows_core::HRESULT - where - Identity: ID3D11ModuleInstance_Impl, - { + unsafe extern "system" fn BindResourceAsUnorderedAccessView(this: *mut core::ffi::c_void, usrcsrvslot: u32, udstuavslot: u32, ucount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ModuleInstance_Impl::BindResourceAsUnorderedAccessView(this, core::mem::transmute_copy(&usrcsrvslot), core::mem::transmute_copy(&udstuavslot), core::mem::transmute_copy(&ucount)).into() } - unsafe extern "system" fn BindResourceAsUnorderedAccessViewByName(this: *mut core::ffi::c_void, psrvname: windows_core::PCSTR, udstuavslot: u32, ucount: u32) -> windows_core::HRESULT - where - Identity: ID3D11ModuleInstance_Impl, - { + unsafe extern "system" fn BindResourceAsUnorderedAccessViewByName(this: *mut core::ffi::c_void, psrvname: windows_core::PCSTR, udstuavslot: u32, ucount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ModuleInstance_Impl::BindResourceAsUnorderedAccessViewByName(this, core::mem::transmute(&psrvname), core::mem::transmute_copy(&udstuavslot), core::mem::transmute_copy(&ucount)).into() } @@ -3569,7 +2540,7 @@ impl ID3D11ModuleInstance_Vtbl { iid == &::IID } } -pub trait ID3D11Multithread_Impl: Sized { +pub trait ID3D11Multithread_Impl: Sized + windows_core::IUnknownImpl { fn Enter(&self); fn Leave(&self); fn SetMultithreadProtected(&self, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; @@ -3577,35 +2548,20 @@ pub trait ID3D11Multithread_Impl: Sized { } impl windows_core::RuntimeName for ID3D11Multithread {} impl ID3D11Multithread_Vtbl { - pub const fn new() -> ID3D11Multithread_Vtbl - where - Identity: ID3D11Multithread_Impl, - { - unsafe extern "system" fn Enter(this: *mut core::ffi::c_void) - where - Identity: ID3D11Multithread_Impl, - { + pub const fn new() -> ID3D11Multithread_Vtbl { + unsafe extern "system" fn Enter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Multithread_Impl::Enter(this) } - unsafe extern "system" fn Leave(this: *mut core::ffi::c_void) - where - Identity: ID3D11Multithread_Impl, - { + unsafe extern "system" fn Leave(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Multithread_Impl::Leave(this) } - unsafe extern "system" fn SetMultithreadProtected(this: *mut core::ffi::c_void, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL - where - Identity: ID3D11Multithread_Impl, - { + unsafe extern "system" fn SetMultithreadProtected(this: *mut core::ffi::c_void, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Multithread_Impl::SetMultithreadProtected(this, core::mem::transmute_copy(&bmtprotect)) } - unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D11Multithread_Impl, - { + unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Multithread_Impl::GetMultithreadProtected(this) } @@ -3624,10 +2580,7 @@ impl ID3D11Multithread_Vtbl { pub trait ID3D11PixelShader_Impl: Sized + ID3D11DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D11PixelShader {} impl ID3D11PixelShader_Vtbl { - pub const fn new() -> ID3D11PixelShader_Vtbl - where - Identity: ID3D11PixelShader_Impl, - { + pub const fn new() -> ID3D11PixelShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -3637,10 +2590,7 @@ impl ID3D11PixelShader_Vtbl { pub trait ID3D11Predicate_Impl: Sized + ID3D11Query_Impl {} impl windows_core::RuntimeName for ID3D11Predicate {} impl ID3D11Predicate_Vtbl { - pub const fn new() -> ID3D11Predicate_Vtbl - where - Identity: ID3D11Predicate_Impl, - { + pub const fn new() -> ID3D11Predicate_Vtbl { Self { base__: ID3D11Query_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -3652,14 +2602,8 @@ pub trait ID3D11Query_Impl: Sized + ID3D11Asynchronous_Impl { } impl windows_core::RuntimeName for ID3D11Query {} impl ID3D11Query_Vtbl { - pub const fn new() -> ID3D11Query_Vtbl - where - Identity: ID3D11Query_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_QUERY_DESC) - where - Identity: ID3D11Query_Impl, - { + pub const fn new() -> ID3D11Query_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_QUERY_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Query_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3674,14 +2618,8 @@ pub trait ID3D11Query1_Impl: Sized + ID3D11Query_Impl { } impl windows_core::RuntimeName for ID3D11Query1 {} impl ID3D11Query1_Vtbl { - pub const fn new() -> ID3D11Query1_Vtbl - where - Identity: ID3D11Query1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc1: *mut D3D11_QUERY_DESC1) - where - Identity: ID3D11Query1_Impl, - { + pub const fn new() -> ID3D11Query1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc1: *mut D3D11_QUERY_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Query1_Impl::GetDesc1(this, core::mem::transmute_copy(&pdesc1)) } @@ -3696,14 +2634,8 @@ pub trait ID3D11RasterizerState_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11RasterizerState {} impl ID3D11RasterizerState_Vtbl { - pub const fn new() -> ID3D11RasterizerState_Vtbl - where - Identity: ID3D11RasterizerState_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_RASTERIZER_DESC) - where - Identity: ID3D11RasterizerState_Impl, - { + pub const fn new() -> ID3D11RasterizerState_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_RASTERIZER_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11RasterizerState_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3718,14 +2650,8 @@ pub trait ID3D11RasterizerState1_Impl: Sized + ID3D11RasterizerState_Impl { } impl windows_core::RuntimeName for ID3D11RasterizerState1 {} impl ID3D11RasterizerState1_Vtbl { - pub const fn new() -> ID3D11RasterizerState1_Vtbl - where - Identity: ID3D11RasterizerState1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D11_RASTERIZER_DESC1) - where - Identity: ID3D11RasterizerState1_Impl, - { + pub const fn new() -> ID3D11RasterizerState1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D11_RASTERIZER_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11RasterizerState1_Impl::GetDesc1(this, core::mem::transmute_copy(&pdesc)) } @@ -3740,14 +2666,8 @@ pub trait ID3D11RasterizerState2_Impl: Sized + ID3D11RasterizerState1_Impl { } impl windows_core::RuntimeName for ID3D11RasterizerState2 {} impl ID3D11RasterizerState2_Vtbl { - pub const fn new() -> ID3D11RasterizerState2_Vtbl - where - Identity: ID3D11RasterizerState2_Impl, - { - unsafe extern "system" fn GetDesc2(this: *mut core::ffi::c_void, pdesc: *mut D3D11_RASTERIZER_DESC2) - where - Identity: ID3D11RasterizerState2_Impl, - { + pub const fn new() -> ID3D11RasterizerState2_Vtbl { + unsafe extern "system" fn GetDesc2(this: *mut core::ffi::c_void, pdesc: *mut D3D11_RASTERIZER_DESC2) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11RasterizerState2_Impl::GetDesc2(this, core::mem::transmute_copy(&pdesc)) } @@ -3757,19 +2677,13 @@ impl ID3D11RasterizerState2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D11RefDefaultTrackingOptions_Impl: Sized { +pub trait ID3D11RefDefaultTrackingOptions_Impl: Sized + windows_core::IUnknownImpl { fn SetTrackingOptions(&self, resourcetypeflags: u32, options: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID3D11RefDefaultTrackingOptions {} impl ID3D11RefDefaultTrackingOptions_Vtbl { - pub const fn new() -> ID3D11RefDefaultTrackingOptions_Vtbl - where - Identity: ID3D11RefDefaultTrackingOptions_Impl, - { - unsafe extern "system" fn SetTrackingOptions(this: *mut core::ffi::c_void, resourcetypeflags: u32, options: u32) -> windows_core::HRESULT - where - Identity: ID3D11RefDefaultTrackingOptions_Impl, - { + pub const fn new() -> ID3D11RefDefaultTrackingOptions_Vtbl { + unsafe extern "system" fn SetTrackingOptions(this: *mut core::ffi::c_void, resourcetypeflags: u32, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11RefDefaultTrackingOptions_Impl::SetTrackingOptions(this, core::mem::transmute_copy(&resourcetypeflags), core::mem::transmute_copy(&options)).into() } @@ -3779,19 +2693,13 @@ impl ID3D11RefDefaultTrackingOptions_Vtbl { iid == &::IID } } -pub trait ID3D11RefTrackingOptions_Impl: Sized { +pub trait ID3D11RefTrackingOptions_Impl: Sized + windows_core::IUnknownImpl { fn SetTrackingOptions(&self, uoptions: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID3D11RefTrackingOptions {} impl ID3D11RefTrackingOptions_Vtbl { - pub const fn new() -> ID3D11RefTrackingOptions_Vtbl - where - Identity: ID3D11RefTrackingOptions_Impl, - { - unsafe extern "system" fn SetTrackingOptions(this: *mut core::ffi::c_void, uoptions: u32) -> windows_core::HRESULT - where - Identity: ID3D11RefTrackingOptions_Impl, - { + pub const fn new() -> ID3D11RefTrackingOptions_Vtbl { + unsafe extern "system" fn SetTrackingOptions(this: *mut core::ffi::c_void, uoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11RefTrackingOptions_Impl::SetTrackingOptions(this, core::mem::transmute_copy(&uoptions)).into() } @@ -3809,14 +2717,8 @@ pub trait ID3D11RenderTargetView_Impl: Sized + ID3D11View_Impl { impl windows_core::RuntimeName for ID3D11RenderTargetView {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11RenderTargetView_Vtbl { - pub const fn new() -> ID3D11RenderTargetView_Vtbl - where - Identity: ID3D11RenderTargetView_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_RENDER_TARGET_VIEW_DESC) - where - Identity: ID3D11RenderTargetView_Impl, - { + pub const fn new() -> ID3D11RenderTargetView_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_RENDER_TARGET_VIEW_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11RenderTargetView_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3834,14 +2736,8 @@ pub trait ID3D11RenderTargetView1_Impl: Sized + ID3D11RenderTargetView_Impl { impl windows_core::RuntimeName for ID3D11RenderTargetView1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11RenderTargetView1_Vtbl { - pub const fn new() -> ID3D11RenderTargetView1_Vtbl - where - Identity: ID3D11RenderTargetView1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc1: *mut D3D11_RENDER_TARGET_VIEW_DESC1) - where - Identity: ID3D11RenderTargetView1_Impl, - { + pub const fn new() -> ID3D11RenderTargetView1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc1: *mut D3D11_RENDER_TARGET_VIEW_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11RenderTargetView1_Impl::GetDesc1(this, core::mem::transmute_copy(&pdesc1)) } @@ -3858,28 +2754,16 @@ pub trait ID3D11Resource_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11Resource {} impl ID3D11Resource_Vtbl { - pub const fn new() -> ID3D11Resource_Vtbl - where - Identity: ID3D11Resource_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, presourcedimension: *mut D3D11_RESOURCE_DIMENSION) - where - Identity: ID3D11Resource_Impl, - { + pub const fn new() -> ID3D11Resource_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, presourcedimension: *mut D3D11_RESOURCE_DIMENSION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Resource_Impl::GetType(this, core::mem::transmute_copy(&presourcedimension)) } - unsafe extern "system" fn SetEvictionPriority(this: *mut core::ffi::c_void, evictionpriority: u32) - where - Identity: ID3D11Resource_Impl, - { + unsafe extern "system" fn SetEvictionPriority(this: *mut core::ffi::c_void, evictionpriority: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Resource_Impl::SetEvictionPriority(this, core::mem::transmute_copy(&evictionpriority)) } - unsafe extern "system" fn GetEvictionPriority(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11Resource_Impl, - { + unsafe extern "system" fn GetEvictionPriority(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Resource_Impl::GetEvictionPriority(this) } @@ -3899,14 +2783,8 @@ pub trait ID3D11SamplerState_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11SamplerState {} impl ID3D11SamplerState_Vtbl { - pub const fn new() -> ID3D11SamplerState_Vtbl - where - Identity: ID3D11SamplerState_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_SAMPLER_DESC) - where - Identity: ID3D11SamplerState_Impl, - { + pub const fn new() -> ID3D11SamplerState_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_SAMPLER_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11SamplerState_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -3917,7 +2795,7 @@ impl ID3D11SamplerState_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D")] -pub trait ID3D11ShaderReflection_Impl: Sized { +pub trait ID3D11ShaderReflection_Impl: Sized + windows_core::IUnknownImpl { fn GetDesc(&self, pdesc: *mut D3D11_SHADER_DESC) -> windows_core::Result<()>; fn GetConstantBufferByIndex(&self, index: u32) -> Option; fn GetConstantBufferByName(&self, name: &windows_core::PCSTR) -> Option; @@ -3942,126 +2820,72 @@ pub trait ID3D11ShaderReflection_Impl: Sized { impl windows_core::RuntimeName for ID3D11ShaderReflection {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11ShaderReflection_Vtbl { - pub const fn new() -> ID3D11ShaderReflection_Vtbl - where - Identity: ID3D11ShaderReflection_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_SHADER_DESC) -> windows_core::HRESULT - where - Identity: ID3D11ShaderReflection_Impl, - { + pub const fn new() -> ID3D11ShaderReflection_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_SHADER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetConstantBufferByIndex(this: *mut core::ffi::c_void, index: u32) -> Option - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetConstantBufferByIndex(this: *mut core::ffi::c_void, index: u32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetConstantBufferByIndex(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetConstantBufferByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetConstantBufferByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetConstantBufferByName(this, core::mem::transmute(&name)) } - unsafe extern "system" fn GetResourceBindingDesc(this: *mut core::ffi::c_void, resourceindex: u32, pdesc: *mut D3D11_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetResourceBindingDesc(this: *mut core::ffi::c_void, resourceindex: u32, pdesc: *mut D3D11_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetResourceBindingDesc(this, core::mem::transmute_copy(&resourceindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetInputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D11_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetInputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D11_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetInputParameterDesc(this, core::mem::transmute_copy(¶meterindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetOutputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D11_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetOutputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D11_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetOutputParameterDesc(this, core::mem::transmute_copy(¶meterindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetPatchConstantParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D11_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetPatchConstantParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D11_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetPatchConstantParameterDesc(this, core::mem::transmute_copy(¶meterindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetVariableByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetVariableByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetVariableByName(this, core::mem::transmute(&name)) } - unsafe extern "system" fn GetResourceBindingDescByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, pdesc: *mut D3D11_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetResourceBindingDescByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, pdesc: *mut D3D11_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetResourceBindingDescByName(this, core::mem::transmute(&name), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetMovInstructionCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetMovInstructionCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetMovInstructionCount(this) } - unsafe extern "system" fn GetMovcInstructionCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetMovcInstructionCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetMovcInstructionCount(this) } - unsafe extern "system" fn GetConversionInstructionCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetConversionInstructionCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetConversionInstructionCount(this) } - unsafe extern "system" fn GetBitwiseInstructionCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetBitwiseInstructionCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetBitwiseInstructionCount(this) } - unsafe extern "system" fn GetGSInputPrimitive(this: *mut core::ffi::c_void) -> super::Direct3D::D3D_PRIMITIVE - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetGSInputPrimitive(this: *mut core::ffi::c_void) -> super::Direct3D::D3D_PRIMITIVE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetGSInputPrimitive(this) } - unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::IsSampleFrequencyShader(this) } - unsafe extern "system" fn GetNumInterfaceSlots(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetNumInterfaceSlots(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetNumInterfaceSlots(this) } - unsafe extern "system" fn GetMinFeatureLevel(this: *mut core::ffi::c_void, plevel: *mut super::Direct3D::D3D_FEATURE_LEVEL) -> windows_core::HRESULT - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetMinFeatureLevel(this: *mut core::ffi::c_void, plevel: *mut super::Direct3D::D3D_FEATURE_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11ShaderReflection_Impl::GetMinFeatureLevel(this) { Ok(ok__) => { @@ -4071,17 +2895,11 @@ impl ID3D11ShaderReflection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadGroupSize(this: *mut core::ffi::c_void, psizex: *mut u32, psizey: *mut u32, psizez: *mut u32) -> u32 - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetThreadGroupSize(this: *mut core::ffi::c_void, psizex: *mut u32, psizey: *mut u32, psizez: *mut u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetThreadGroupSize(this, core::mem::transmute_copy(&psizex), core::mem::transmute_copy(&psizey), core::mem::transmute_copy(&psizez)) } - unsafe extern "system" fn GetRequiresFlags(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D11ShaderReflection_Impl, - { + unsafe extern "system" fn GetRequiresFlags(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::GetRequiresFlags(this) } @@ -4307,14 +3125,8 @@ pub trait ID3D11ShaderResourceView_Impl: Sized + ID3D11View_Impl { impl windows_core::RuntimeName for ID3D11ShaderResourceView {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11ShaderResourceView_Vtbl { - pub const fn new() -> ID3D11ShaderResourceView_Vtbl - where - Identity: ID3D11ShaderResourceView_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_SHADER_RESOURCE_VIEW_DESC) - where - Identity: ID3D11ShaderResourceView_Impl, - { + pub const fn new() -> ID3D11ShaderResourceView_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_SHADER_RESOURCE_VIEW_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderResourceView_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -4332,14 +3144,8 @@ pub trait ID3D11ShaderResourceView1_Impl: Sized + ID3D11ShaderResourceView_Impl impl windows_core::RuntimeName for ID3D11ShaderResourceView1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11ShaderResourceView1_Vtbl { - pub const fn new() -> ID3D11ShaderResourceView1_Vtbl - where - Identity: ID3D11ShaderResourceView1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc1: *mut D3D11_SHADER_RESOURCE_VIEW_DESC1) - where - Identity: ID3D11ShaderResourceView1_Impl, - { + pub const fn new() -> ID3D11ShaderResourceView1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc1: *mut D3D11_SHADER_RESOURCE_VIEW_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderResourceView1_Impl::GetDesc1(this, core::mem::transmute_copy(&pdesc1)) } @@ -4349,7 +3155,7 @@ impl ID3D11ShaderResourceView1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D11ShaderTrace_Impl: Sized { +pub trait ID3D11ShaderTrace_Impl: Sized + windows_core::IUnknownImpl { fn TraceReady(&self, ptestcount: *mut u64) -> windows_core::Result<()>; fn ResetTrace(&self); fn GetTraceStats(&self, ptracestats: *mut D3D11_TRACE_STATS) -> windows_core::Result<()>; @@ -4361,63 +3167,36 @@ pub trait ID3D11ShaderTrace_Impl: Sized { } impl windows_core::RuntimeName for ID3D11ShaderTrace {} impl ID3D11ShaderTrace_Vtbl { - pub const fn new() -> ID3D11ShaderTrace_Vtbl - where - Identity: ID3D11ShaderTrace_Impl, - { - unsafe extern "system" fn TraceReady(this: *mut core::ffi::c_void, ptestcount: *mut u64) -> windows_core::HRESULT - where - Identity: ID3D11ShaderTrace_Impl, - { + pub const fn new() -> ID3D11ShaderTrace_Vtbl { + unsafe extern "system" fn TraceReady(this: *mut core::ffi::c_void, ptestcount: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderTrace_Impl::TraceReady(this, core::mem::transmute_copy(&ptestcount)).into() } - unsafe extern "system" fn ResetTrace(this: *mut core::ffi::c_void) - where - Identity: ID3D11ShaderTrace_Impl, - { + unsafe extern "system" fn ResetTrace(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderTrace_Impl::ResetTrace(this) } - unsafe extern "system" fn GetTraceStats(this: *mut core::ffi::c_void, ptracestats: *mut D3D11_TRACE_STATS) -> windows_core::HRESULT - where - Identity: ID3D11ShaderTrace_Impl, - { + unsafe extern "system" fn GetTraceStats(this: *mut core::ffi::c_void, ptracestats: *mut D3D11_TRACE_STATS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderTrace_Impl::GetTraceStats(this, core::mem::transmute_copy(&ptracestats)).into() } - unsafe extern "system" fn PSSelectStamp(this: *mut core::ffi::c_void, stampindex: u32) -> windows_core::HRESULT - where - Identity: ID3D11ShaderTrace_Impl, - { + unsafe extern "system" fn PSSelectStamp(this: *mut core::ffi::c_void, stampindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderTrace_Impl::PSSelectStamp(this, core::mem::transmute_copy(&stampindex)).into() } - unsafe extern "system" fn GetInitialRegisterContents(this: *mut core::ffi::c_void, pregister: *const D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> windows_core::HRESULT - where - Identity: ID3D11ShaderTrace_Impl, - { + unsafe extern "system" fn GetInitialRegisterContents(this: *mut core::ffi::c_void, pregister: *const D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderTrace_Impl::GetInitialRegisterContents(this, core::mem::transmute_copy(&pregister), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetStep(this: *mut core::ffi::c_void, stepindex: u32, ptracestep: *mut D3D11_TRACE_STEP) -> windows_core::HRESULT - where - Identity: ID3D11ShaderTrace_Impl, - { + unsafe extern "system" fn GetStep(this: *mut core::ffi::c_void, stepindex: u32, ptracestep: *mut D3D11_TRACE_STEP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderTrace_Impl::GetStep(this, core::mem::transmute_copy(&stepindex), core::mem::transmute_copy(&ptracestep)).into() } - unsafe extern "system" fn GetWrittenRegister(this: *mut core::ffi::c_void, stepindex: u32, writtenregisterindex: u32, pregister: *mut D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> windows_core::HRESULT - where - Identity: ID3D11ShaderTrace_Impl, - { + unsafe extern "system" fn GetWrittenRegister(this: *mut core::ffi::c_void, stepindex: u32, writtenregisterindex: u32, pregister: *mut D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderTrace_Impl::GetWrittenRegister(this, core::mem::transmute_copy(&stepindex), core::mem::transmute_copy(&writtenregisterindex), core::mem::transmute_copy(&pregister), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetReadRegister(this: *mut core::ffi::c_void, stepindex: u32, readregisterindex: u32, pregister: *mut D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> windows_core::HRESULT - where - Identity: ID3D11ShaderTrace_Impl, - { + unsafe extern "system" fn GetReadRegister(this: *mut core::ffi::c_void, stepindex: u32, readregisterindex: u32, pregister: *mut D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderTrace_Impl::GetReadRegister(this, core::mem::transmute_copy(&stepindex), core::mem::transmute_copy(&readregisterindex), core::mem::transmute_copy(&pregister), core::mem::transmute_copy(&pvalue)).into() } @@ -4437,19 +3216,13 @@ impl ID3D11ShaderTrace_Vtbl { iid == &::IID } } -pub trait ID3D11ShaderTraceFactory_Impl: Sized { +pub trait ID3D11ShaderTraceFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateShaderTrace(&self, pshader: Option<&windows_core::IUnknown>, ptracedesc: *const D3D11_SHADER_TRACE_DESC) -> windows_core::Result; } impl windows_core::RuntimeName for ID3D11ShaderTraceFactory {} impl ID3D11ShaderTraceFactory_Vtbl { - pub const fn new() -> ID3D11ShaderTraceFactory_Vtbl - where - Identity: ID3D11ShaderTraceFactory_Impl, - { - unsafe extern "system" fn CreateShaderTrace(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, ptracedesc: *const D3D11_SHADER_TRACE_DESC, ppshadertrace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11ShaderTraceFactory_Impl, - { + pub const fn new() -> ID3D11ShaderTraceFactory_Vtbl { + unsafe extern "system" fn CreateShaderTrace(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, ptracedesc: *const D3D11_SHADER_TRACE_DESC, ppshadertrace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11ShaderTraceFactory_Impl::CreateShaderTrace(this, windows_core::from_raw_borrowed(&pshader), core::mem::transmute_copy(&ptracedesc)) { Ok(ok__) => { @@ -4465,27 +3238,18 @@ impl ID3D11ShaderTraceFactory_Vtbl { iid == &::IID } } -pub trait ID3D11SwitchToRef_Impl: Sized { +pub trait ID3D11SwitchToRef_Impl: Sized + windows_core::IUnknownImpl { fn SetUseRef(&self, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; fn GetUseRef(&self) -> super::super::Foundation::BOOL; } impl windows_core::RuntimeName for ID3D11SwitchToRef {} impl ID3D11SwitchToRef_Vtbl { - pub const fn new() -> ID3D11SwitchToRef_Vtbl - where - Identity: ID3D11SwitchToRef_Impl, - { - unsafe extern "system" fn SetUseRef(this: *mut core::ffi::c_void, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL - where - Identity: ID3D11SwitchToRef_Impl, - { + pub const fn new() -> ID3D11SwitchToRef_Vtbl { + unsafe extern "system" fn SetUseRef(this: *mut core::ffi::c_void, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11SwitchToRef_Impl::SetUseRef(this, core::mem::transmute_copy(&useref)) } - unsafe extern "system" fn GetUseRef(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D11SwitchToRef_Impl, - { + unsafe extern "system" fn GetUseRef(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11SwitchToRef_Impl::GetUseRef(this) } @@ -4507,14 +3271,8 @@ pub trait ID3D11Texture1D_Impl: Sized + ID3D11Resource_Impl { impl windows_core::RuntimeName for ID3D11Texture1D {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11Texture1D_Vtbl { - pub const fn new() -> ID3D11Texture1D_Vtbl - where - Identity: ID3D11Texture1D_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_TEXTURE1D_DESC) - where - Identity: ID3D11Texture1D_Impl, - { + pub const fn new() -> ID3D11Texture1D_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_TEXTURE1D_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Texture1D_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -4532,14 +3290,8 @@ pub trait ID3D11Texture2D_Impl: Sized + ID3D11Resource_Impl { impl windows_core::RuntimeName for ID3D11Texture2D {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11Texture2D_Vtbl { - pub const fn new() -> ID3D11Texture2D_Vtbl - where - Identity: ID3D11Texture2D_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_TEXTURE2D_DESC) - where - Identity: ID3D11Texture2D_Impl, - { + pub const fn new() -> ID3D11Texture2D_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_TEXTURE2D_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Texture2D_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -4557,14 +3309,8 @@ pub trait ID3D11Texture2D1_Impl: Sized + ID3D11Texture2D_Impl { impl windows_core::RuntimeName for ID3D11Texture2D1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11Texture2D1_Vtbl { - pub const fn new() -> ID3D11Texture2D1_Vtbl - where - Identity: ID3D11Texture2D1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D11_TEXTURE2D_DESC1) - where - Identity: ID3D11Texture2D1_Impl, - { + pub const fn new() -> ID3D11Texture2D1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D11_TEXTURE2D_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Texture2D1_Impl::GetDesc1(this, core::mem::transmute_copy(&pdesc)) } @@ -4582,14 +3328,8 @@ pub trait ID3D11Texture3D_Impl: Sized + ID3D11Resource_Impl { impl windows_core::RuntimeName for ID3D11Texture3D {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11Texture3D_Vtbl { - pub const fn new() -> ID3D11Texture3D_Vtbl - where - Identity: ID3D11Texture3D_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_TEXTURE3D_DESC) - where - Identity: ID3D11Texture3D_Impl, - { + pub const fn new() -> ID3D11Texture3D_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_TEXTURE3D_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Texture3D_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -4607,14 +3347,8 @@ pub trait ID3D11Texture3D1_Impl: Sized + ID3D11Texture3D_Impl { impl windows_core::RuntimeName for ID3D11Texture3D1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11Texture3D1_Vtbl { - pub const fn new() -> ID3D11Texture3D1_Vtbl - where - Identity: ID3D11Texture3D1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D11_TEXTURE3D_DESC1) - where - Identity: ID3D11Texture3D1_Impl, - { + pub const fn new() -> ID3D11Texture3D1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut D3D11_TEXTURE3D_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Texture3D1_Impl::GetDesc1(this, core::mem::transmute_copy(&pdesc)) } @@ -4624,27 +3358,18 @@ impl ID3D11Texture3D1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D11TracingDevice_Impl: Sized { +pub trait ID3D11TracingDevice_Impl: Sized + windows_core::IUnknownImpl { fn SetShaderTrackingOptionsByType(&self, resourcetypeflags: u32, options: u32) -> windows_core::Result<()>; fn SetShaderTrackingOptions(&self, pshader: Option<&windows_core::IUnknown>, options: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID3D11TracingDevice {} impl ID3D11TracingDevice_Vtbl { - pub const fn new() -> ID3D11TracingDevice_Vtbl - where - Identity: ID3D11TracingDevice_Impl, - { - unsafe extern "system" fn SetShaderTrackingOptionsByType(this: *mut core::ffi::c_void, resourcetypeflags: u32, options: u32) -> windows_core::HRESULT - where - Identity: ID3D11TracingDevice_Impl, - { + pub const fn new() -> ID3D11TracingDevice_Vtbl { + unsafe extern "system" fn SetShaderTrackingOptionsByType(this: *mut core::ffi::c_void, resourcetypeflags: u32, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11TracingDevice_Impl::SetShaderTrackingOptionsByType(this, core::mem::transmute_copy(&resourcetypeflags), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetShaderTrackingOptions(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: ID3D11TracingDevice_Impl, - { + unsafe extern "system" fn SetShaderTrackingOptions(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11TracingDevice_Impl::SetShaderTrackingOptions(this, windows_core::from_raw_borrowed(&pshader), core::mem::transmute_copy(&options)).into() } @@ -4666,14 +3391,8 @@ pub trait ID3D11UnorderedAccessView_Impl: Sized + ID3D11View_Impl { impl windows_core::RuntimeName for ID3D11UnorderedAccessView {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11UnorderedAccessView_Vtbl { - pub const fn new() -> ID3D11UnorderedAccessView_Vtbl - where - Identity: ID3D11UnorderedAccessView_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_UNORDERED_ACCESS_VIEW_DESC) - where - Identity: ID3D11UnorderedAccessView_Impl, - { + pub const fn new() -> ID3D11UnorderedAccessView_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_UNORDERED_ACCESS_VIEW_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11UnorderedAccessView_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -4691,14 +3410,8 @@ pub trait ID3D11UnorderedAccessView1_Impl: Sized + ID3D11UnorderedAccessView_Imp impl windows_core::RuntimeName for ID3D11UnorderedAccessView1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11UnorderedAccessView1_Vtbl { - pub const fn new() -> ID3D11UnorderedAccessView1_Vtbl - where - Identity: ID3D11UnorderedAccessView1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc1: *mut D3D11_UNORDERED_ACCESS_VIEW_DESC1) - where - Identity: ID3D11UnorderedAccessView1_Impl, - { + pub const fn new() -> ID3D11UnorderedAccessView1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc1: *mut D3D11_UNORDERED_ACCESS_VIEW_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11UnorderedAccessView1_Impl::GetDesc1(this, core::mem::transmute_copy(&pdesc1)) } @@ -4711,10 +3424,7 @@ impl ID3D11UnorderedAccessView1_Vtbl { pub trait ID3D11VertexShader_Impl: Sized + ID3D11DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D11VertexShader {} impl ID3D11VertexShader_Vtbl { - pub const fn new() -> ID3D11VertexShader_Vtbl - where - Identity: ID3D11VertexShader_Impl, - { + pub const fn new() -> ID3D11VertexShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -4786,413 +3496,236 @@ pub trait ID3D11VideoContext_Impl: Sized + ID3D11DeviceChild_Impl { impl windows_core::RuntimeName for ID3D11VideoContext {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoContext_Vtbl { - pub const fn new() -> ID3D11VideoContext_Vtbl - where - Identity: ID3D11VideoContext_Impl, - { - unsafe extern "system" fn GetDecoderBuffer(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE, pbuffersize: *mut u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + pub const fn new() -> ID3D11VideoContext_Vtbl { + unsafe extern "system" fn GetDecoderBuffer(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE, pbuffersize: *mut u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::GetDecoderBuffer(this, windows_core::from_raw_borrowed(&pdecoder), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pbuffersize), core::mem::transmute_copy(&ppbuffer)).into() } - unsafe extern "system" fn ReleaseDecoderBuffer(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn ReleaseDecoderBuffer(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, r#type: D3D11_VIDEO_DECODER_BUFFER_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::ReleaseDecoderBuffer(this, windows_core::from_raw_borrowed(&pdecoder), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn DecoderBeginFrame(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, pview: *mut core::ffi::c_void, contentkeysize: u32, pcontentkey: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn DecoderBeginFrame(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, pview: *mut core::ffi::c_void, contentkeysize: u32, pcontentkey: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::DecoderBeginFrame(this, windows_core::from_raw_borrowed(&pdecoder), windows_core::from_raw_borrowed(&pview), core::mem::transmute_copy(&contentkeysize), core::mem::transmute_copy(&pcontentkey)).into() } - unsafe extern "system" fn DecoderEndFrame(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn DecoderEndFrame(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::DecoderEndFrame(this, windows_core::from_raw_borrowed(&pdecoder)).into() } - unsafe extern "system" fn SubmitDecoderBuffers(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, numbuffers: u32, pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn SubmitDecoderBuffers(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, numbuffers: u32, pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::SubmitDecoderBuffers(this, windows_core::from_raw_borrowed(&pdecoder), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&pbufferdesc)).into() } - unsafe extern "system" fn DecoderExtension(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, pextensiondata: *const D3D11_VIDEO_DECODER_EXTENSION) -> i32 - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn DecoderExtension(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, pextensiondata: *const D3D11_VIDEO_DECODER_EXTENSION) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::DecoderExtension(this, windows_core::from_raw_borrowed(&pdecoder), core::mem::transmute_copy(&pextensiondata)) } - unsafe extern "system" fn VideoProcessorSetOutputTargetRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetOutputTargetRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputTargetRect(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&prect)) } - unsafe extern "system" fn VideoProcessorSetOutputBackgroundColor(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, ycbcr: super::super::Foundation::BOOL, pcolor: *const D3D11_VIDEO_COLOR) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetOutputBackgroundColor(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, ycbcr: super::super::Foundation::BOOL, pcolor: *const D3D11_VIDEO_COLOR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputBackgroundColor(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&ycbcr), core::mem::transmute_copy(&pcolor)) } - unsafe extern "system" fn VideoProcessorSetOutputColorSpace(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetOutputColorSpace(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputColorSpace(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&pcolorspace)) } - unsafe extern "system" fn VideoProcessorSetOutputAlphaFillMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, alphafillmode: D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, streamindex: u32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetOutputAlphaFillMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, alphafillmode: D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, streamindex: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputAlphaFillMode(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&alphafillmode), core::mem::transmute_copy(&streamindex)) } - unsafe extern "system" fn VideoProcessorSetOutputConstriction(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL, size: super::super::Foundation::SIZE) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetOutputConstriction(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL, size: super::super::Foundation::SIZE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputConstriction(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&enable), core::mem::transmute(&size)) } - unsafe extern "system" fn VideoProcessorSetOutputStereoMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetOutputStereoMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputStereoMode(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&enable)) } - unsafe extern "system" fn VideoProcessorSetOutputExtension(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32 - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetOutputExtension(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputExtension(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&pextensionguid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)) } - unsafe extern "system" fn VideoProcessorGetOutputTargetRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetOutputTargetRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputTargetRect(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&enabled), core::mem::transmute_copy(&prect)) } - unsafe extern "system" fn VideoProcessorGetOutputBackgroundColor(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pycbcr: *mut super::super::Foundation::BOOL, pcolor: *mut D3D11_VIDEO_COLOR) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetOutputBackgroundColor(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pycbcr: *mut super::super::Foundation::BOOL, pcolor: *mut D3D11_VIDEO_COLOR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputBackgroundColor(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&pycbcr), core::mem::transmute_copy(&pcolor)) } - unsafe extern "system" fn VideoProcessorGetOutputColorSpace(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pcolorspace: *mut D3D11_VIDEO_PROCESSOR_COLOR_SPACE) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetOutputColorSpace(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pcolorspace: *mut D3D11_VIDEO_PROCESSOR_COLOR_SPACE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputColorSpace(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&pcolorspace)) } - unsafe extern "system" fn VideoProcessorGetOutputAlphaFillMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, palphafillmode: *mut D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, pstreamindex: *mut u32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetOutputAlphaFillMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, palphafillmode: *mut D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, pstreamindex: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputAlphaFillMode(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&palphafillmode), core::mem::transmute_copy(&pstreamindex)) } - unsafe extern "system" fn VideoProcessorGetOutputConstriction(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::BOOL, psize: *mut super::super::Foundation::SIZE) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetOutputConstriction(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::BOOL, psize: *mut super::super::Foundation::SIZE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputConstriction(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&psize)) } - unsafe extern "system" fn VideoProcessorGetOutputStereoMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::BOOL) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetOutputStereoMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputStereoMode(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&penabled)) } - unsafe extern "system" fn VideoProcessorGetOutputExtension(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32 - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetOutputExtension(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputExtension(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&pextensionguid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)) } - unsafe extern "system" fn VideoProcessorSetStreamFrameFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, frameformat: D3D11_VIDEO_FRAME_FORMAT) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamFrameFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, frameformat: D3D11_VIDEO_FRAME_FORMAT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamFrameFormat(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&frameformat)) } - unsafe extern "system" fn VideoProcessorSetStreamColorSpace(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamColorSpace(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamColorSpace(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&pcolorspace)) } - unsafe extern "system" fn VideoProcessorSetStreamOutputRate(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, outputrate: D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, repeatframe: super::super::Foundation::BOOL, pcustomrate: *const super::Dxgi::Common::DXGI_RATIONAL) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamOutputRate(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, outputrate: D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, repeatframe: super::super::Foundation::BOOL, pcustomrate: *const super::Dxgi::Common::DXGI_RATIONAL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamOutputRate(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&outputrate), core::mem::transmute_copy(&repeatframe), core::mem::transmute_copy(&pcustomrate)) } - unsafe extern "system" fn VideoProcessorSetStreamSourceRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamSourceRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamSourceRect(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&prect)) } - unsafe extern "system" fn VideoProcessorSetStreamDestRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamDestRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamDestRect(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&prect)) } - unsafe extern "system" fn VideoProcessorSetStreamAlpha(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, alpha: f32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamAlpha(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, alpha: f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamAlpha(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&alpha)) } - unsafe extern "system" fn VideoProcessorSetStreamPalette(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, count: u32, pentries: *const u32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamPalette(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, count: u32, pentries: *const u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamPalette(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&count), core::mem::transmute_copy(&pentries)) } - unsafe extern "system" fn VideoProcessorSetStreamPixelAspectRatio(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, psourceaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamPixelAspectRatio(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, psourceaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamPixelAspectRatio(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&psourceaspectratio), core::mem::transmute_copy(&pdestinationaspectratio)) } - unsafe extern "system" fn VideoProcessorSetStreamLumaKey(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, lower: f32, upper: f32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamLumaKey(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, lower: f32, upper: f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamLumaKey(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&lower), core::mem::transmute_copy(&upper)) } - unsafe extern "system" fn VideoProcessorSetStreamStereoFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: super::super::Foundation::BOOL, baseviewframe0: super::super::Foundation::BOOL, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamStereoFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: super::super::Foundation::BOOL, baseviewframe0: super::super::Foundation::BOOL, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamStereoFormat(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&format), core::mem::transmute_copy(&leftviewframe0), core::mem::transmute_copy(&baseviewframe0), core::mem::transmute_copy(&flipmode), core::mem::transmute_copy(&monooffset)) } - unsafe extern "system" fn VideoProcessorSetStreamAutoProcessingMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamAutoProcessingMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamAutoProcessingMode(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable)) } - unsafe extern "system" fn VideoProcessorSetStreamFilter(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: super::super::Foundation::BOOL, level: i32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamFilter(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: super::super::Foundation::BOOL, level: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamFilter(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&filter), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&level)) } - unsafe extern "system" fn VideoProcessorSetStreamExtension(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32 - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamExtension(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamExtension(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&pextensionguid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)) } - unsafe extern "system" fn VideoProcessorGetStreamFrameFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pframeformat: *mut D3D11_VIDEO_FRAME_FORMAT) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamFrameFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pframeformat: *mut D3D11_VIDEO_FRAME_FORMAT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamFrameFormat(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&pframeformat)) } - unsafe extern "system" fn VideoProcessorGetStreamColorSpace(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pcolorspace: *mut D3D11_VIDEO_PROCESSOR_COLOR_SPACE) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamColorSpace(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pcolorspace: *mut D3D11_VIDEO_PROCESSOR_COLOR_SPACE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamColorSpace(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&pcolorspace)) } - unsafe extern "system" fn VideoProcessorGetStreamOutputRate(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut super::super::Foundation::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamOutputRate(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut super::super::Foundation::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamOutputRate(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&poutputrate), core::mem::transmute_copy(&prepeatframe), core::mem::transmute_copy(&pcustomrate)) } - unsafe extern "system" fn VideoProcessorGetStreamSourceRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamSourceRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamSourceRect(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&prect)) } - unsafe extern "system" fn VideoProcessorGetStreamDestRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamDestRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamDestRect(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&prect)) } - unsafe extern "system" fn VideoProcessorGetStreamAlpha(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, palpha: *mut f32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamAlpha(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, palpha: *mut f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamAlpha(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&palpha)) } - unsafe extern "system" fn VideoProcessorGetStreamPalette(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, count: u32, pentries: *mut u32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamPalette(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, count: u32, pentries: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamPalette(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&count), core::mem::transmute_copy(&pentries)) } - unsafe extern "system" fn VideoProcessorGetStreamPixelAspectRatio(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, psourceaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamPixelAspectRatio(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, psourceaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamPixelAspectRatio(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&psourceaspectratio), core::mem::transmute_copy(&pdestinationaspectratio)) } - unsafe extern "system" fn VideoProcessorGetStreamLumaKey(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, plower: *mut f32, pupper: *mut f32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamLumaKey(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, plower: *mut f32, pupper: *mut f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamLumaKey(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&plower), core::mem::transmute_copy(&pupper)) } - unsafe extern "system" fn VideoProcessorGetStreamStereoFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pformat: *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, pleftviewframe0: *mut super::super::Foundation::BOOL, pbaseviewframe0: *mut super::super::Foundation::BOOL, pflipmode: *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: *mut i32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamStereoFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pformat: *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, pleftviewframe0: *mut super::super::Foundation::BOOL, pbaseviewframe0: *mut super::super::Foundation::BOOL, pflipmode: *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: *mut i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamStereoFormat(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penable), core::mem::transmute_copy(&pformat), core::mem::transmute_copy(&pleftviewframe0), core::mem::transmute_copy(&pbaseviewframe0), core::mem::transmute_copy(&pflipmode), core::mem::transmute_copy(&monooffset)) } - unsafe extern "system" fn VideoProcessorGetStreamAutoProcessingMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamAutoProcessingMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamAutoProcessingMode(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled)) } - unsafe extern "system" fn VideoProcessorGetStreamFilter(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, penabled: *mut super::super::Foundation::BOOL, plevel: *mut i32) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamFilter(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, penabled: *mut super::super::Foundation::BOOL, plevel: *mut i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamFilter(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&filter), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&plevel)) } - unsafe extern "system" fn VideoProcessorGetStreamExtension(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32 - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamExtension(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamExtension(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&pextensionguid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)) } - unsafe extern "system" fn VideoProcessorBlt(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pview: *mut core::ffi::c_void, outputframe: u32, streamcount: u32, pstreams: *const D3D11_VIDEO_PROCESSOR_STREAM) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorBlt(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pview: *mut core::ffi::c_void, outputframe: u32, streamcount: u32, pstreams: *const D3D11_VIDEO_PROCESSOR_STREAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorBlt(this, windows_core::from_raw_borrowed(&pvideoprocessor), windows_core::from_raw_borrowed(&pview), core::mem::transmute_copy(&outputframe), core::mem::transmute_copy(&streamcount), core::mem::transmute_copy(&pstreams)).into() } - unsafe extern "system" fn NegotiateCryptoSessionKeyExchange(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn NegotiateCryptoSessionKeyExchange(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::NegotiateCryptoSessionKeyExchange(this, windows_core::from_raw_borrowed(&pcryptosession), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn EncryptionBlt(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, psrcsurface: *mut core::ffi::c_void, pdstsurface: *mut core::ffi::c_void, ivsize: u32, piv: *mut core::ffi::c_void) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn EncryptionBlt(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, psrcsurface: *mut core::ffi::c_void, pdstsurface: *mut core::ffi::c_void, ivsize: u32, piv: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::EncryptionBlt(this, windows_core::from_raw_borrowed(&pcryptosession), windows_core::from_raw_borrowed(&psrcsurface), windows_core::from_raw_borrowed(&pdstsurface), core::mem::transmute_copy(&ivsize), core::mem::transmute_copy(&piv)) } - unsafe extern "system" fn DecryptionBlt(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, psrcsurface: *mut core::ffi::c_void, pdstsurface: *mut core::ffi::c_void, pencryptedblockinfo: *const D3D11_ENCRYPTED_BLOCK_INFO, contentkeysize: u32, pcontentkey: *const core::ffi::c_void, ivsize: u32, piv: *mut core::ffi::c_void) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn DecryptionBlt(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, psrcsurface: *mut core::ffi::c_void, pdstsurface: *mut core::ffi::c_void, pencryptedblockinfo: *const D3D11_ENCRYPTED_BLOCK_INFO, contentkeysize: u32, pcontentkey: *const core::ffi::c_void, ivsize: u32, piv: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::DecryptionBlt(this, windows_core::from_raw_borrowed(&pcryptosession), windows_core::from_raw_borrowed(&psrcsurface), windows_core::from_raw_borrowed(&pdstsurface), core::mem::transmute_copy(&pencryptedblockinfo), core::mem::transmute_copy(&contentkeysize), core::mem::transmute_copy(&pcontentkey), core::mem::transmute_copy(&ivsize), core::mem::transmute_copy(&piv)) } - unsafe extern "system" fn StartSessionKeyRefresh(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, randomnumbersize: u32, prandomnumber: *mut core::ffi::c_void) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn StartSessionKeyRefresh(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, randomnumbersize: u32, prandomnumber: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::StartSessionKeyRefresh(this, windows_core::from_raw_borrowed(&pcryptosession), core::mem::transmute_copy(&randomnumbersize), core::mem::transmute_copy(&prandomnumber)) } - unsafe extern "system" fn FinishSessionKeyRefresh(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn FinishSessionKeyRefresh(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::FinishSessionKeyRefresh(this, windows_core::from_raw_borrowed(&pcryptosession)) } - unsafe extern "system" fn GetEncryptionBltKey(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, keysize: u32, preadbackkey: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn GetEncryptionBltKey(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, keysize: u32, preadbackkey: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::GetEncryptionBltKey(this, windows_core::from_raw_borrowed(&pcryptosession), core::mem::transmute_copy(&keysize), core::mem::transmute_copy(&preadbackkey)).into() } - unsafe extern "system" fn NegotiateAuthenticatedChannelKeyExchange(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn NegotiateAuthenticatedChannelKeyExchange(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::NegotiateAuthenticatedChannelKeyExchange(this, windows_core::from_raw_borrowed(&pchannel), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn QueryAuthenticatedChannel(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, inputsize: u32, pinput: *const core::ffi::c_void, outputsize: u32, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn QueryAuthenticatedChannel(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, inputsize: u32, pinput: *const core::ffi::c_void, outputsize: u32, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::QueryAuthenticatedChannel(this, windows_core::from_raw_borrowed(&pchannel), core::mem::transmute_copy(&inputsize), core::mem::transmute_copy(&pinput), core::mem::transmute_copy(&outputsize), core::mem::transmute_copy(&poutput)).into() } - unsafe extern "system" fn ConfigureAuthenticatedChannel(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, inputsize: u32, pinput: *const core::ffi::c_void, poutput: *mut D3D11_AUTHENTICATED_CONFIGURE_OUTPUT) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn ConfigureAuthenticatedChannel(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, inputsize: u32, pinput: *const core::ffi::c_void, poutput: *mut D3D11_AUTHENTICATED_CONFIGURE_OUTPUT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::ConfigureAuthenticatedChannel(this, windows_core::from_raw_borrowed(&pchannel), core::mem::transmute_copy(&inputsize), core::mem::transmute_copy(&pinput), core::mem::transmute_copy(&poutput)).into() } - unsafe extern "system" fn VideoProcessorSetStreamRotation(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, rotation: D3D11_VIDEO_PROCESSOR_ROTATION) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamRotation(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, rotation: D3D11_VIDEO_PROCESSOR_ROTATION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamRotation(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&rotation)) } - unsafe extern "system" fn VideoProcessorGetStreamRotation(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut super::super::Foundation::BOOL, protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION) - where - Identity: ID3D11VideoContext_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamRotation(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut super::super::Foundation::BOOL, protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamRotation(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penable), core::mem::transmute_copy(&protation)) } @@ -5283,21 +3816,12 @@ pub trait ID3D11VideoContext1_Impl: Sized + ID3D11VideoContext_Impl { impl windows_core::RuntimeName for ID3D11VideoContext1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoContext1_Vtbl { - pub const fn new() -> ID3D11VideoContext1_Vtbl - where - Identity: ID3D11VideoContext1_Impl, - { - unsafe extern "system" fn SubmitDecoderBuffers1(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, numbuffers: u32, pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC1) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext1_Impl, - { + pub const fn new() -> ID3D11VideoContext1_Vtbl { + unsafe extern "system" fn SubmitDecoderBuffers1(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, numbuffers: u32, pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC1) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::SubmitDecoderBuffers1(this, windows_core::from_raw_borrowed(&pdecoder), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&pbufferdesc)).into() } - unsafe extern "system" fn GetDataForNewHardwareKey(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, privateinputsize: u32, pprivatinputdata: *const core::ffi::c_void, pprivateoutputdata: *mut u64) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn GetDataForNewHardwareKey(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, privateinputsize: u32, pprivatinputdata: *const core::ffi::c_void, pprivateoutputdata: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoContext1_Impl::GetDataForNewHardwareKey(this, windows_core::from_raw_borrowed(&pcryptosession), core::mem::transmute_copy(&privateinputsize), core::mem::transmute_copy(&pprivatinputdata)) { Ok(ok__) => { @@ -5307,10 +3831,7 @@ impl ID3D11VideoContext1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckCryptoSessionStatus(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, pstatus: *mut D3D11_CRYPTO_SESSION_STATUS) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn CheckCryptoSessionStatus(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, pstatus: *mut D3D11_CRYPTO_SESSION_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoContext1_Impl::CheckCryptoSessionStatus(this, windows_core::from_raw_borrowed(&pcryptosession)) { Ok(ok__) => { @@ -5320,80 +3841,47 @@ impl ID3D11VideoContext1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DecoderEnableDownsampling(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, referenceframecount: u32) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn DecoderEnableDownsampling(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, referenceframecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::DecoderEnableDownsampling(this, windows_core::from_raw_borrowed(&pdecoder), core::mem::transmute_copy(&inputcolorspace), core::mem::transmute_copy(&poutputdesc), core::mem::transmute_copy(&referenceframecount)).into() } - unsafe extern "system" fn DecoderUpdateDownsampling(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn DecoderUpdateDownsampling(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::DecoderUpdateDownsampling(this, windows_core::from_raw_borrowed(&pdecoder), core::mem::transmute_copy(&poutputdesc)).into() } - unsafe extern "system" fn VideoProcessorSetOutputColorSpace1(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn VideoProcessorSetOutputColorSpace1(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorSetOutputColorSpace1(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&colorspace)) } - unsafe extern "system" fn VideoProcessorSetOutputShaderUsage(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, shaderusage: super::super::Foundation::BOOL) - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn VideoProcessorSetOutputShaderUsage(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, shaderusage: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorSetOutputShaderUsage(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&shaderusage)) } - unsafe extern "system" fn VideoProcessorGetOutputColorSpace1(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pcolorspace: *mut super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn VideoProcessorGetOutputColorSpace1(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pcolorspace: *mut super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorGetOutputColorSpace1(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&pcolorspace)) } - unsafe extern "system" fn VideoProcessorGetOutputShaderUsage(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pshaderusage: *mut super::super::Foundation::BOOL) - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn VideoProcessorGetOutputShaderUsage(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pshaderusage: *mut super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorGetOutputShaderUsage(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&pshaderusage)) } - unsafe extern "system" fn VideoProcessorSetStreamColorSpace1(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamColorSpace1(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorSetStreamColorSpace1(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&colorspace)) } - unsafe extern "system" fn VideoProcessorSetStreamMirror(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, fliphorizontal: super::super::Foundation::BOOL, flipvertical: super::super::Foundation::BOOL) - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamMirror(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, fliphorizontal: super::super::Foundation::BOOL, flipvertical: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorSetStreamMirror(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&fliphorizontal), core::mem::transmute_copy(&flipvertical)) } - unsafe extern "system" fn VideoProcessorGetStreamColorSpace1(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pcolorspace: *mut super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamColorSpace1(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, pcolorspace: *mut super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorGetStreamColorSpace1(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&pcolorspace)) } - unsafe extern "system" fn VideoProcessorGetStreamMirror(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pfliphorizontal: *mut super::super::Foundation::BOOL, pflipvertical: *mut super::super::Foundation::BOOL) - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamMirror(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pfliphorizontal: *mut super::super::Foundation::BOOL, pflipvertical: *mut super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorGetStreamMirror(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penable), core::mem::transmute_copy(&pfliphorizontal), core::mem::transmute_copy(&pflipvertical)) } - unsafe extern "system" fn VideoProcessorGetBehaviorHints(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, outputwidth: u32, outputheight: u32, outputformat: super::Dxgi::Common::DXGI_FORMAT, streamcount: u32, pstreams: *const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT, pbehaviorhints: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext1_Impl, - { + unsafe extern "system" fn VideoProcessorGetBehaviorHints(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, outputwidth: u32, outputheight: u32, outputformat: super::Dxgi::Common::DXGI_FORMAT, streamcount: u32, pstreams: *const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT, pbehaviorhints: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoContext1_Impl::VideoProcessorGetBehaviorHints(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&outputwidth), core::mem::transmute_copy(&outputheight), core::mem::transmute_copy(&outputformat), core::mem::transmute_copy(&streamcount), core::mem::transmute_copy(&pstreams)) { Ok(ok__) => { @@ -5436,35 +3924,20 @@ pub trait ID3D11VideoContext2_Impl: Sized + ID3D11VideoContext1_Impl { impl windows_core::RuntimeName for ID3D11VideoContext2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoContext2_Vtbl { - pub const fn new() -> ID3D11VideoContext2_Vtbl - where - Identity: ID3D11VideoContext2_Impl, - { - unsafe extern "system" fn VideoProcessorSetOutputHDRMetaData(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, r#type: super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, phdrmetadata: *const core::ffi::c_void) - where - Identity: ID3D11VideoContext2_Impl, - { + pub const fn new() -> ID3D11VideoContext2_Vtbl { + unsafe extern "system" fn VideoProcessorSetOutputHDRMetaData(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, r#type: super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, phdrmetadata: *const core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext2_Impl::VideoProcessorSetOutputHDRMetaData(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&size), core::mem::transmute_copy(&phdrmetadata)) } - unsafe extern "system" fn VideoProcessorGetOutputHDRMetaData(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, ptype: *mut super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, pmetadata: *mut core::ffi::c_void) - where - Identity: ID3D11VideoContext2_Impl, - { + unsafe extern "system" fn VideoProcessorGetOutputHDRMetaData(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, ptype: *mut super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, pmetadata: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext2_Impl::VideoProcessorGetOutputHDRMetaData(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&size), core::mem::transmute_copy(&pmetadata)) } - unsafe extern "system" fn VideoProcessorSetStreamHDRMetaData(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, r#type: super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, phdrmetadata: *const core::ffi::c_void) - where - Identity: ID3D11VideoContext2_Impl, - { + unsafe extern "system" fn VideoProcessorSetStreamHDRMetaData(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, r#type: super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, phdrmetadata: *const core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext2_Impl::VideoProcessorSetStreamHDRMetaData(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&size), core::mem::transmute_copy(&phdrmetadata)) } - unsafe extern "system" fn VideoProcessorGetStreamHDRMetaData(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, ptype: *mut super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, pmetadata: *mut core::ffi::c_void) - where - Identity: ID3D11VideoContext2_Impl, - { + unsafe extern "system" fn VideoProcessorGetStreamHDRMetaData(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, ptype: *mut super::Dxgi::DXGI_HDR_METADATA_TYPE, size: u32, pmetadata: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext2_Impl::VideoProcessorGetStreamHDRMetaData(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&size), core::mem::transmute_copy(&pmetadata)) } @@ -5489,21 +3962,12 @@ pub trait ID3D11VideoContext3_Impl: Sized + ID3D11VideoContext2_Impl { impl windows_core::RuntimeName for ID3D11VideoContext3 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoContext3_Vtbl { - pub const fn new() -> ID3D11VideoContext3_Vtbl - where - Identity: ID3D11VideoContext3_Impl, - { - unsafe extern "system" fn DecoderBeginFrame1(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, pview: *mut core::ffi::c_void, contentkeysize: u32, pcontentkey: *const core::ffi::c_void, numcomponenthistograms: u32, phistogramoffsets: *const u32, pphistogrambuffers: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext3_Impl, - { + pub const fn new() -> ID3D11VideoContext3_Vtbl { + unsafe extern "system" fn DecoderBeginFrame1(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, pview: *mut core::ffi::c_void, contentkeysize: u32, pcontentkey: *const core::ffi::c_void, numcomponenthistograms: u32, phistogramoffsets: *const u32, pphistogrambuffers: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext3_Impl::DecoderBeginFrame1(this, windows_core::from_raw_borrowed(&pdecoder), windows_core::from_raw_borrowed(&pview), core::mem::transmute_copy(&contentkeysize), core::mem::transmute_copy(&pcontentkey), core::mem::transmute_copy(&numcomponenthistograms), core::mem::transmute_copy(&phistogramoffsets), core::mem::transmute_copy(&pphistogrambuffers)).into() } - unsafe extern "system" fn SubmitDecoderBuffers2(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, numbuffers: u32, pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC2) -> windows_core::HRESULT - where - Identity: ID3D11VideoContext3_Impl, - { + unsafe extern "system" fn SubmitDecoderBuffers2(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, numbuffers: u32, pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext3_Impl::SubmitDecoderBuffers2(this, windows_core::from_raw_borrowed(&pdecoder), core::mem::transmute_copy(&numbuffers), core::mem::transmute_copy(&pbufferdesc)).into() } @@ -5526,21 +3990,12 @@ pub trait ID3D11VideoDecoder_Impl: Sized + ID3D11DeviceChild_Impl { impl windows_core::RuntimeName for ID3D11VideoDecoder {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoDecoder_Vtbl { - pub const fn new() -> ID3D11VideoDecoder_Vtbl - where - Identity: ID3D11VideoDecoder_Impl, - { - unsafe extern "system" fn GetCreationParameters(this: *mut core::ffi::c_void, pvideodesc: *mut D3D11_VIDEO_DECODER_DESC, pconfig: *mut D3D11_VIDEO_DECODER_CONFIG) -> windows_core::HRESULT - where - Identity: ID3D11VideoDecoder_Impl, - { + pub const fn new() -> ID3D11VideoDecoder_Vtbl { + unsafe extern "system" fn GetCreationParameters(this: *mut core::ffi::c_void, pvideodesc: *mut D3D11_VIDEO_DECODER_DESC, pconfig: *mut D3D11_VIDEO_DECODER_CONFIG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDecoder_Impl::GetCreationParameters(this, core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&pconfig)).into() } - unsafe extern "system" fn GetDriverHandle(this: *mut core::ffi::c_void, pdriverhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ID3D11VideoDecoder_Impl, - { + unsafe extern "system" fn GetDriverHandle(this: *mut core::ffi::c_void, pdriverhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDecoder_Impl::GetDriverHandle(this) { Ok(ok__) => { @@ -5565,14 +4020,8 @@ pub trait ID3D11VideoDecoderOutputView_Impl: Sized + ID3D11View_Impl { } impl windows_core::RuntimeName for ID3D11VideoDecoderOutputView {} impl ID3D11VideoDecoderOutputView_Vtbl { - pub const fn new() -> ID3D11VideoDecoderOutputView_Vtbl - where - Identity: ID3D11VideoDecoderOutputView_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC) - where - Identity: ID3D11VideoDecoderOutputView_Impl, - { + pub const fn new() -> ID3D11VideoDecoderOutputView_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDecoderOutputView_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -5583,7 +4032,7 @@ impl ID3D11VideoDecoderOutputView_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait ID3D11VideoDevice_Impl: Sized { +pub trait ID3D11VideoDevice_Impl: Sized + windows_core::IUnknownImpl { fn CreateVideoDecoder(&self, pvideodesc: *const D3D11_VIDEO_DECODER_DESC, pconfig: *const D3D11_VIDEO_DECODER_CONFIG) -> windows_core::Result; fn CreateVideoProcessor(&self, penum: Option<&ID3D11VideoProcessorEnumerator>, rateconversionindex: u32) -> windows_core::Result; fn CreateAuthenticatedChannel(&self, channeltype: D3D11_AUTHENTICATED_CHANNEL_TYPE) -> windows_core::Result; @@ -5606,14 +4055,8 @@ pub trait ID3D11VideoDevice_Impl: Sized { impl windows_core::RuntimeName for ID3D11VideoDevice {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoDevice_Vtbl { - pub const fn new() -> ID3D11VideoDevice_Vtbl - where - Identity: ID3D11VideoDevice_Impl, - { - unsafe extern "system" fn CreateVideoDecoder(this: *mut core::ffi::c_void, pvideodesc: *const D3D11_VIDEO_DECODER_DESC, pconfig: *const D3D11_VIDEO_DECODER_CONFIG, ppdecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + pub const fn new() -> ID3D11VideoDevice_Vtbl { + unsafe extern "system" fn CreateVideoDecoder(this: *mut core::ffi::c_void, pvideodesc: *const D3D11_VIDEO_DECODER_DESC, pconfig: *const D3D11_VIDEO_DECODER_CONFIG, ppdecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice_Impl::CreateVideoDecoder(this, core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&pconfig)) { Ok(ok__) => { @@ -5623,10 +4066,7 @@ impl ID3D11VideoDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVideoProcessor(this: *mut core::ffi::c_void, penum: *mut core::ffi::c_void, rateconversionindex: u32, ppvideoprocessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn CreateVideoProcessor(this: *mut core::ffi::c_void, penum: *mut core::ffi::c_void, rateconversionindex: u32, ppvideoprocessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice_Impl::CreateVideoProcessor(this, windows_core::from_raw_borrowed(&penum), core::mem::transmute_copy(&rateconversionindex)) { Ok(ok__) => { @@ -5636,10 +4076,7 @@ impl ID3D11VideoDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAuthenticatedChannel(this: *mut core::ffi::c_void, channeltype: D3D11_AUTHENTICATED_CHANNEL_TYPE, ppauthenticatedchannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn CreateAuthenticatedChannel(this: *mut core::ffi::c_void, channeltype: D3D11_AUTHENTICATED_CHANNEL_TYPE, ppauthenticatedchannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice_Impl::CreateAuthenticatedChannel(this, core::mem::transmute_copy(&channeltype)) { Ok(ok__) => { @@ -5649,10 +4086,7 @@ impl ID3D11VideoDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCryptoSession(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecoderprofile: *const windows_core::GUID, pkeyexchangetype: *const windows_core::GUID, ppcryptosession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn CreateCryptoSession(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecoderprofile: *const windows_core::GUID, pkeyexchangetype: *const windows_core::GUID, ppcryptosession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice_Impl::CreateCryptoSession(this, core::mem::transmute_copy(&pcryptotype), core::mem::transmute_copy(&pdecoderprofile), core::mem::transmute_copy(&pkeyexchangetype)) { Ok(ok__) => { @@ -5662,31 +4096,19 @@ impl ID3D11VideoDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVideoDecoderOutputView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC, ppvdovview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn CreateVideoDecoderOutputView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC, ppvdovview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice_Impl::CreateVideoDecoderOutputView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppvdovview)).into() } - unsafe extern "system" fn CreateVideoProcessorInputView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, penum: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC, ppvpiview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn CreateVideoProcessorInputView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, penum: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC, ppvpiview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice_Impl::CreateVideoProcessorInputView(this, windows_core::from_raw_borrowed(&presource), windows_core::from_raw_borrowed(&penum), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppvpiview)).into() } - unsafe extern "system" fn CreateVideoProcessorOutputView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, penum: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC, ppvpoview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn CreateVideoProcessorOutputView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, penum: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC, ppvpoview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice_Impl::CreateVideoProcessorOutputView(this, windows_core::from_raw_borrowed(&presource), windows_core::from_raw_borrowed(&penum), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppvpoview)).into() } - unsafe extern "system" fn CreateVideoProcessorEnumerator(this: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_PROCESSOR_CONTENT_DESC, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn CreateVideoProcessorEnumerator(this: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_PROCESSOR_CONTENT_DESC, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice_Impl::CreateVideoProcessorEnumerator(this, core::mem::transmute_copy(&pdesc)) { Ok(ok__) => { @@ -5696,17 +4118,11 @@ impl ID3D11VideoDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVideoDecoderProfileCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn GetVideoDecoderProfileCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice_Impl::GetVideoDecoderProfileCount(this) } - unsafe extern "system" fn GetVideoDecoderProfile(this: *mut core::ffi::c_void, index: u32, pdecoderprofile: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn GetVideoDecoderProfile(this: *mut core::ffi::c_void, index: u32, pdecoderprofile: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice_Impl::GetVideoDecoderProfile(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5716,10 +4132,7 @@ impl ID3D11VideoDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckVideoDecoderFormat(this: *mut core::ffi::c_void, pdecoderprofile: *const windows_core::GUID, format: super::Dxgi::Common::DXGI_FORMAT, psupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn CheckVideoDecoderFormat(this: *mut core::ffi::c_void, pdecoderprofile: *const windows_core::GUID, format: super::Dxgi::Common::DXGI_FORMAT, psupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice_Impl::CheckVideoDecoderFormat(this, core::mem::transmute_copy(&pdecoderprofile), core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -5729,10 +4142,7 @@ impl ID3D11VideoDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVideoDecoderConfigCount(this: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_DECODER_DESC, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn GetVideoDecoderConfigCount(this: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_DECODER_DESC, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice_Impl::GetVideoDecoderConfigCount(this, core::mem::transmute_copy(&pdesc)) { Ok(ok__) => { @@ -5742,24 +4152,15 @@ impl ID3D11VideoDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVideoDecoderConfig(this: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_DECODER_DESC, index: u32, pconfig: *mut D3D11_VIDEO_DECODER_CONFIG) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn GetVideoDecoderConfig(this: *mut core::ffi::c_void, pdesc: *const D3D11_VIDEO_DECODER_DESC, index: u32, pconfig: *mut D3D11_VIDEO_DECODER_CONFIG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice_Impl::GetVideoDecoderConfig(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&index), core::mem::transmute_copy(&pconfig)).into() } - unsafe extern "system" fn GetContentProtectionCaps(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecoderprofile: *const windows_core::GUID, pcaps: *mut D3D11_VIDEO_CONTENT_PROTECTION_CAPS) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn GetContentProtectionCaps(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecoderprofile: *const windows_core::GUID, pcaps: *mut D3D11_VIDEO_CONTENT_PROTECTION_CAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice_Impl::GetContentProtectionCaps(this, core::mem::transmute_copy(&pcryptotype), core::mem::transmute_copy(&pdecoderprofile), core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn CheckCryptoKeyExchange(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecoderprofile: *const windows_core::GUID, index: u32, pkeyexchangetype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn CheckCryptoKeyExchange(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecoderprofile: *const windows_core::GUID, index: u32, pkeyexchangetype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice_Impl::CheckCryptoKeyExchange(this, core::mem::transmute_copy(&pcryptotype), core::mem::transmute_copy(&pdecoderprofile), core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5769,17 +4170,11 @@ impl ID3D11VideoDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice_Impl::SetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice_Impl, - { + unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice_Impl::SetPrivateDataInterface(this, core::mem::transmute_copy(&guid), windows_core::from_raw_borrowed(&pdata)).into() } @@ -5819,21 +4214,12 @@ pub trait ID3D11VideoDevice1_Impl: Sized + ID3D11VideoDevice_Impl { impl windows_core::RuntimeName for ID3D11VideoDevice1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoDevice1_Vtbl { - pub const fn new() -> ID3D11VideoDevice1_Vtbl - where - Identity: ID3D11VideoDevice1_Impl, - { - unsafe extern "system" fn GetCryptoSessionPrivateDataSize(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecoderprofile: *const windows_core::GUID, pkeyexchangetype: *const windows_core::GUID, pprivateinputsize: *mut u32, pprivateoutputsize: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice1_Impl, - { + pub const fn new() -> ID3D11VideoDevice1_Vtbl { + unsafe extern "system" fn GetCryptoSessionPrivateDataSize(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecoderprofile: *const windows_core::GUID, pkeyexchangetype: *const windows_core::GUID, pprivateinputsize: *mut u32, pprivateoutputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice1_Impl::GetCryptoSessionPrivateDataSize(this, core::mem::transmute_copy(&pcryptotype), core::mem::transmute_copy(&pdecoderprofile), core::mem::transmute_copy(&pkeyexchangetype), core::mem::transmute_copy(&pprivateinputsize), core::mem::transmute_copy(&pprivateoutputsize)).into() } - unsafe extern "system" fn GetVideoDecoderCaps(this: *mut core::ffi::c_void, pdecoderprofile: *const windows_core::GUID, samplewidth: u32, sampleheight: u32, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, bitrate: u32, pcryptotype: *const windows_core::GUID, pdecodercaps: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice1_Impl, - { + unsafe extern "system" fn GetVideoDecoderCaps(this: *mut core::ffi::c_void, pdecoderprofile: *const windows_core::GUID, samplewidth: u32, sampleheight: u32, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, bitrate: u32, pcryptotype: *const windows_core::GUID, pdecodercaps: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice1_Impl::GetVideoDecoderCaps(this, core::mem::transmute_copy(&pdecoderprofile), core::mem::transmute_copy(&samplewidth), core::mem::transmute_copy(&sampleheight), core::mem::transmute_copy(&pframerate), core::mem::transmute_copy(&bitrate), core::mem::transmute_copy(&pcryptotype)) { Ok(ok__) => { @@ -5843,17 +4229,11 @@ impl ID3D11VideoDevice1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckVideoDecoderDownsampling(this: *mut core::ffi::c_void, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, psupported: *mut super::super::Foundation::BOOL, prealtimehint: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice1_Impl, - { + unsafe extern "system" fn CheckVideoDecoderDownsampling(this: *mut core::ffi::c_void, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, psupported: *mut super::super::Foundation::BOOL, prealtimehint: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice1_Impl::CheckVideoDecoderDownsampling(this, core::mem::transmute_copy(&pinputdesc), core::mem::transmute_copy(&inputcolorspace), core::mem::transmute_copy(&pinputconfig), core::mem::transmute_copy(&pframerate), core::mem::transmute_copy(&poutputdesc), core::mem::transmute_copy(&psupported), core::mem::transmute_copy(&prealtimehint)).into() } - unsafe extern "system" fn RecommendVideoDecoderDownsampleParameters(this: *mut core::ffi::c_void, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, precommendedoutputdesc: *mut D3D11_VIDEO_SAMPLE_DESC) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice1_Impl, - { + unsafe extern "system" fn RecommendVideoDecoderDownsampleParameters(this: *mut core::ffi::c_void, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, precommendedoutputdesc: *mut D3D11_VIDEO_SAMPLE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice1_Impl::RecommendVideoDecoderDownsampleParameters(this, core::mem::transmute_copy(&pinputdesc), core::mem::transmute_copy(&inputcolorspace), core::mem::transmute_copy(&pinputconfig), core::mem::transmute_copy(&pframerate)) { Ok(ok__) => { @@ -5884,21 +4264,12 @@ pub trait ID3D11VideoDevice2_Impl: Sized + ID3D11VideoDevice1_Impl { impl windows_core::RuntimeName for ID3D11VideoDevice2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoDevice2_Vtbl { - pub const fn new() -> ID3D11VideoDevice2_Vtbl - where - Identity: ID3D11VideoDevice2_Impl, - { - unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: D3D11_FEATURE_VIDEO, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice2_Impl, - { + pub const fn new() -> ID3D11VideoDevice2_Vtbl { + unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: D3D11_FEATURE_VIDEO, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice2_Impl::CheckFeatureSupport(this, core::mem::transmute_copy(&feature), core::mem::transmute_copy(&pfeaturesupportdata), core::mem::transmute_copy(&featuresupportdatasize)).into() } - unsafe extern "system" fn NegotiateCryptoSessionKeyExchangeMT(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, flags: D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11VideoDevice2_Impl, - { + unsafe extern "system" fn NegotiateCryptoSessionKeyExchangeMT(this: *mut core::ffi::c_void, pcryptosession: *mut core::ffi::c_void, flags: D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice2_Impl::NegotiateCryptoSessionKeyExchangeMT(this, windows_core::from_raw_borrowed(&pcryptosession), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } @@ -5921,21 +4292,12 @@ pub trait ID3D11VideoProcessor_Impl: Sized + ID3D11DeviceChild_Impl { impl windows_core::RuntimeName for ID3D11VideoProcessor {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoProcessor_Vtbl { - pub const fn new() -> ID3D11VideoProcessor_Vtbl - where - Identity: ID3D11VideoProcessor_Impl, - { - unsafe extern "system" fn GetContentDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_VIDEO_PROCESSOR_CONTENT_DESC) - where - Identity: ID3D11VideoProcessor_Impl, - { + pub const fn new() -> ID3D11VideoProcessor_Vtbl { + unsafe extern "system" fn GetContentDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_VIDEO_PROCESSOR_CONTENT_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoProcessor_Impl::GetContentDesc(this, core::mem::transmute_copy(&pdesc)) } - unsafe extern "system" fn GetRateConversionCaps(this: *mut core::ffi::c_void, pcaps: *mut D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS) - where - Identity: ID3D11VideoProcessor_Impl, - { + unsafe extern "system" fn GetRateConversionCaps(this: *mut core::ffi::c_void, pcaps: *mut D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoProcessor_Impl::GetRateConversionCaps(this, core::mem::transmute_copy(&pcaps)) } @@ -5962,21 +4324,12 @@ pub trait ID3D11VideoProcessorEnumerator_Impl: Sized + ID3D11DeviceChild_Impl { impl windows_core::RuntimeName for ID3D11VideoProcessorEnumerator {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoProcessorEnumerator_Vtbl { - pub const fn new() -> ID3D11VideoProcessorEnumerator_Vtbl - where - Identity: ID3D11VideoProcessorEnumerator_Impl, - { - unsafe extern "system" fn GetVideoProcessorContentDesc(this: *mut core::ffi::c_void, pcontentdesc: *mut D3D11_VIDEO_PROCESSOR_CONTENT_DESC) -> windows_core::HRESULT - where - Identity: ID3D11VideoProcessorEnumerator_Impl, - { + pub const fn new() -> ID3D11VideoProcessorEnumerator_Vtbl { + unsafe extern "system" fn GetVideoProcessorContentDesc(this: *mut core::ffi::c_void, pcontentdesc: *mut D3D11_VIDEO_PROCESSOR_CONTENT_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoProcessorEnumerator_Impl::GetVideoProcessorContentDesc(this, core::mem::transmute_copy(&pcontentdesc)).into() } - unsafe extern "system" fn CheckVideoProcessorFormat(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D11VideoProcessorEnumerator_Impl, - { + unsafe extern "system" fn CheckVideoProcessorFormat(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoProcessorEnumerator_Impl::CheckVideoProcessorFormat(this, core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -5986,31 +4339,19 @@ impl ID3D11VideoProcessorEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVideoProcessorCaps(this: *mut core::ffi::c_void, pcaps: *mut D3D11_VIDEO_PROCESSOR_CAPS) -> windows_core::HRESULT - where - Identity: ID3D11VideoProcessorEnumerator_Impl, - { + unsafe extern "system" fn GetVideoProcessorCaps(this: *mut core::ffi::c_void, pcaps: *mut D3D11_VIDEO_PROCESSOR_CAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoProcessorEnumerator_Impl::GetVideoProcessorCaps(this, core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetVideoProcessorRateConversionCaps(this: *mut core::ffi::c_void, typeindex: u32, pcaps: *mut D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS) -> windows_core::HRESULT - where - Identity: ID3D11VideoProcessorEnumerator_Impl, - { + unsafe extern "system" fn GetVideoProcessorRateConversionCaps(this: *mut core::ffi::c_void, typeindex: u32, pcaps: *mut D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoProcessorEnumerator_Impl::GetVideoProcessorRateConversionCaps(this, core::mem::transmute_copy(&typeindex), core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetVideoProcessorCustomRate(this: *mut core::ffi::c_void, typeindex: u32, customrateindex: u32, prate: *mut D3D11_VIDEO_PROCESSOR_CUSTOM_RATE) -> windows_core::HRESULT - where - Identity: ID3D11VideoProcessorEnumerator_Impl, - { + unsafe extern "system" fn GetVideoProcessorCustomRate(this: *mut core::ffi::c_void, typeindex: u32, customrateindex: u32, prate: *mut D3D11_VIDEO_PROCESSOR_CUSTOM_RATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoProcessorEnumerator_Impl::GetVideoProcessorCustomRate(this, core::mem::transmute_copy(&typeindex), core::mem::transmute_copy(&customrateindex), core::mem::transmute_copy(&prate)).into() } - unsafe extern "system" fn GetVideoProcessorFilterRange(this: *mut core::ffi::c_void, filter: D3D11_VIDEO_PROCESSOR_FILTER, prange: *mut D3D11_VIDEO_PROCESSOR_FILTER_RANGE) -> windows_core::HRESULT - where - Identity: ID3D11VideoProcessorEnumerator_Impl, - { + unsafe extern "system" fn GetVideoProcessorFilterRange(this: *mut core::ffi::c_void, filter: D3D11_VIDEO_PROCESSOR_FILTER, prange: *mut D3D11_VIDEO_PROCESSOR_FILTER_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoProcessorEnumerator_Impl::GetVideoProcessorFilterRange(this, core::mem::transmute_copy(&filter)) { Ok(ok__) => { @@ -6042,14 +4383,8 @@ pub trait ID3D11VideoProcessorEnumerator1_Impl: Sized + ID3D11VideoProcessorEnum impl windows_core::RuntimeName for ID3D11VideoProcessorEnumerator1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoProcessorEnumerator1_Vtbl { - pub const fn new() -> ID3D11VideoProcessorEnumerator1_Vtbl - where - Identity: ID3D11VideoProcessorEnumerator1_Impl, - { - unsafe extern "system" fn CheckVideoProcessorFormatConversion(this: *mut core::ffi::c_void, inputformat: super::Dxgi::Common::DXGI_FORMAT, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, outputformat: super::Dxgi::Common::DXGI_FORMAT, outputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, psupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D11VideoProcessorEnumerator1_Impl, - { + pub const fn new() -> ID3D11VideoProcessorEnumerator1_Vtbl { + unsafe extern "system" fn CheckVideoProcessorFormatConversion(this: *mut core::ffi::c_void, inputformat: super::Dxgi::Common::DXGI_FORMAT, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, outputformat: super::Dxgi::Common::DXGI_FORMAT, outputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, psupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoProcessorEnumerator1_Impl::CheckVideoProcessorFormatConversion(this, core::mem::transmute_copy(&inputformat), core::mem::transmute_copy(&inputcolorspace), core::mem::transmute_copy(&outputformat), core::mem::transmute_copy(&outputcolorspace)) { Ok(ok__) => { @@ -6073,14 +4408,8 @@ pub trait ID3D11VideoProcessorInputView_Impl: Sized + ID3D11View_Impl { } impl windows_core::RuntimeName for ID3D11VideoProcessorInputView {} impl ID3D11VideoProcessorInputView_Vtbl { - pub const fn new() -> ID3D11VideoProcessorInputView_Vtbl - where - Identity: ID3D11VideoProcessorInputView_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC) - where - Identity: ID3D11VideoProcessorInputView_Impl, - { + pub const fn new() -> ID3D11VideoProcessorInputView_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoProcessorInputView_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -6095,14 +4424,8 @@ pub trait ID3D11VideoProcessorOutputView_Impl: Sized + ID3D11View_Impl { } impl windows_core::RuntimeName for ID3D11VideoProcessorOutputView {} impl ID3D11VideoProcessorOutputView_Vtbl { - pub const fn new() -> ID3D11VideoProcessorOutputView_Vtbl - where - Identity: ID3D11VideoProcessorOutputView_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC) - where - Identity: ID3D11VideoProcessorOutputView_Impl, - { + pub const fn new() -> ID3D11VideoProcessorOutputView_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoProcessorOutputView_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } @@ -6117,14 +4440,8 @@ pub trait ID3D11View_Impl: Sized + ID3D11DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D11View {} impl ID3D11View_Vtbl { - pub const fn new() -> ID3D11View_Vtbl - where - Identity: ID3D11View_Impl, - { - unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, ppresource: *mut *mut core::ffi::c_void) - where - Identity: ID3D11View_Impl, - { + pub const fn new() -> ID3D11View_Vtbl { + unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, ppresource: *mut *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11View_Impl::GetResource(this, core::mem::transmute_copy(&ppresource)) } @@ -6137,17 +4454,14 @@ impl ID3D11View_Vtbl { pub trait ID3DDeviceContextState_Impl: Sized + ID3D11DeviceChild_Impl {} impl windows_core::RuntimeName for ID3DDeviceContextState {} impl ID3DDeviceContextState_Vtbl { - pub const fn new() -> ID3DDeviceContextState_Vtbl - where - Identity: ID3DDeviceContextState_Impl, - { + pub const fn new() -> ID3DDeviceContextState_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait ID3DUserDefinedAnnotation_Impl: Sized { +pub trait ID3DUserDefinedAnnotation_Impl: Sized + windows_core::IUnknownImpl { fn BeginEvent(&self, name: &windows_core::PCWSTR) -> i32; fn EndEvent(&self) -> i32; fn SetMarker(&self, name: &windows_core::PCWSTR); @@ -6155,35 +4469,20 @@ pub trait ID3DUserDefinedAnnotation_Impl: Sized { } impl windows_core::RuntimeName for ID3DUserDefinedAnnotation {} impl ID3DUserDefinedAnnotation_Vtbl { - pub const fn new() -> ID3DUserDefinedAnnotation_Vtbl - where - Identity: ID3DUserDefinedAnnotation_Impl, - { - unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> i32 - where - Identity: ID3DUserDefinedAnnotation_Impl, - { + pub const fn new() -> ID3DUserDefinedAnnotation_Vtbl { + unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DUserDefinedAnnotation_Impl::BeginEvent(this, core::mem::transmute(&name)) } - unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) -> i32 - where - Identity: ID3DUserDefinedAnnotation_Impl, - { + unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DUserDefinedAnnotation_Impl::EndEvent(this) } - unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) - where - Identity: ID3DUserDefinedAnnotation_Impl, - { + unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DUserDefinedAnnotation_Impl::SetMarker(this, core::mem::transmute(&name)) } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3DUserDefinedAnnotation_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DUserDefinedAnnotation_Impl::GetStatus(this) } @@ -6199,7 +4498,7 @@ impl ID3DUserDefinedAnnotation_Vtbl { iid == &::IID } } -pub trait ID3DX11FFT_Impl: Sized { +pub trait ID3DX11FFT_Impl: Sized + windows_core::IUnknownImpl { fn SetForwardScale(&self, forwardscale: f32) -> windows_core::Result<()>; fn GetForwardScale(&self) -> f32; fn SetInverseScale(&self, inversescale: f32) -> windows_core::Result<()>; @@ -6210,56 +4509,32 @@ pub trait ID3DX11FFT_Impl: Sized { } impl windows_core::RuntimeName for ID3DX11FFT {} impl ID3DX11FFT_Vtbl { - pub const fn new() -> ID3DX11FFT_Vtbl - where - Identity: ID3DX11FFT_Impl, - { - unsafe extern "system" fn SetForwardScale(this: *mut core::ffi::c_void, forwardscale: f32) -> windows_core::HRESULT - where - Identity: ID3DX11FFT_Impl, - { + pub const fn new() -> ID3DX11FFT_Vtbl { + unsafe extern "system" fn SetForwardScale(this: *mut core::ffi::c_void, forwardscale: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11FFT_Impl::SetForwardScale(this, core::mem::transmute_copy(&forwardscale)).into() } - unsafe extern "system" fn GetForwardScale(this: *mut core::ffi::c_void) -> f32 - where - Identity: ID3DX11FFT_Impl, - { + unsafe extern "system" fn GetForwardScale(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11FFT_Impl::GetForwardScale(this) } - unsafe extern "system" fn SetInverseScale(this: *mut core::ffi::c_void, inversescale: f32) -> windows_core::HRESULT - where - Identity: ID3DX11FFT_Impl, - { + unsafe extern "system" fn SetInverseScale(this: *mut core::ffi::c_void, inversescale: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11FFT_Impl::SetInverseScale(this, core::mem::transmute_copy(&inversescale)).into() } - unsafe extern "system" fn GetInverseScale(this: *mut core::ffi::c_void) -> f32 - where - Identity: ID3DX11FFT_Impl, - { + unsafe extern "system" fn GetInverseScale(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11FFT_Impl::GetInverseScale(this) } - unsafe extern "system" fn AttachBuffersAndPrecompute(this: *mut core::ffi::c_void, numtempbuffers: u32, pptempbuffers: *const *mut core::ffi::c_void, numprecomputebuffers: u32, ppprecomputebuffersizes: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3DX11FFT_Impl, - { + unsafe extern "system" fn AttachBuffersAndPrecompute(this: *mut core::ffi::c_void, numtempbuffers: u32, pptempbuffers: *const *mut core::ffi::c_void, numprecomputebuffers: u32, ppprecomputebuffersizes: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11FFT_Impl::AttachBuffersAndPrecompute(this, core::mem::transmute_copy(&numtempbuffers), core::mem::transmute_copy(&pptempbuffers), core::mem::transmute_copy(&numprecomputebuffers), core::mem::transmute_copy(&ppprecomputebuffersizes)).into() } - unsafe extern "system" fn ForwardTransform(this: *mut core::ffi::c_void, pinputbuffer: *mut core::ffi::c_void, ppoutputbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3DX11FFT_Impl, - { + unsafe extern "system" fn ForwardTransform(this: *mut core::ffi::c_void, pinputbuffer: *mut core::ffi::c_void, ppoutputbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11FFT_Impl::ForwardTransform(this, windows_core::from_raw_borrowed(&pinputbuffer), core::mem::transmute_copy(&ppoutputbuffer)).into() } - unsafe extern "system" fn InverseTransform(this: *mut core::ffi::c_void, pinputbuffer: *mut core::ffi::c_void, ppoutputbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3DX11FFT_Impl, - { + unsafe extern "system" fn InverseTransform(this: *mut core::ffi::c_void, pinputbuffer: *mut core::ffi::c_void, ppoutputbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11FFT_Impl::InverseTransform(this, windows_core::from_raw_borrowed(&pinputbuffer), core::mem::transmute_copy(&ppoutputbuffer)).into() } @@ -6278,35 +4553,23 @@ impl ID3DX11FFT_Vtbl { iid == &::IID } } -pub trait ID3DX11Scan_Impl: Sized { +pub trait ID3DX11Scan_Impl: Sized + windows_core::IUnknownImpl { fn SetScanDirection(&self, direction: D3DX11_SCAN_DIRECTION) -> windows_core::Result<()>; fn Scan(&self, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: Option<&ID3D11UnorderedAccessView>, pdst: Option<&ID3D11UnorderedAccessView>) -> windows_core::Result<()>; fn Multiscan(&self, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, elementscanpitch: u32, scancount: u32, psrc: Option<&ID3D11UnorderedAccessView>, pdst: Option<&ID3D11UnorderedAccessView>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID3DX11Scan {} impl ID3DX11Scan_Vtbl { - pub const fn new() -> ID3DX11Scan_Vtbl - where - Identity: ID3DX11Scan_Impl, - { - unsafe extern "system" fn SetScanDirection(this: *mut core::ffi::c_void, direction: D3DX11_SCAN_DIRECTION) -> windows_core::HRESULT - where - Identity: ID3DX11Scan_Impl, - { + pub const fn new() -> ID3DX11Scan_Vtbl { + unsafe extern "system" fn SetScanDirection(this: *mut core::ffi::c_void, direction: D3DX11_SCAN_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11Scan_Impl::SetScanDirection(this, core::mem::transmute_copy(&direction)).into() } - unsafe extern "system" fn Scan(this: *mut core::ffi::c_void, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: *mut core::ffi::c_void, pdst: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3DX11Scan_Impl, - { + unsafe extern "system" fn Scan(this: *mut core::ffi::c_void, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: *mut core::ffi::c_void, pdst: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11Scan_Impl::Scan(this, core::mem::transmute_copy(&elementtype), core::mem::transmute_copy(&opcode), core::mem::transmute_copy(&elementscansize), windows_core::from_raw_borrowed(&psrc), windows_core::from_raw_borrowed(&pdst)).into() } - unsafe extern "system" fn Multiscan(this: *mut core::ffi::c_void, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, elementscanpitch: u32, scancount: u32, psrc: *mut core::ffi::c_void, pdst: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3DX11Scan_Impl, - { + unsafe extern "system" fn Multiscan(this: *mut core::ffi::c_void, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, elementscanpitch: u32, scancount: u32, psrc: *mut core::ffi::c_void, pdst: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11Scan_Impl::Multiscan(this, core::mem::transmute_copy(&elementtype), core::mem::transmute_copy(&opcode), core::mem::transmute_copy(&elementscansize), core::mem::transmute_copy(&elementscanpitch), core::mem::transmute_copy(&scancount), windows_core::from_raw_borrowed(&psrc), windows_core::from_raw_borrowed(&pdst)).into() } @@ -6321,27 +4584,18 @@ impl ID3DX11Scan_Vtbl { iid == &::IID } } -pub trait ID3DX11SegmentedScan_Impl: Sized { +pub trait ID3DX11SegmentedScan_Impl: Sized + windows_core::IUnknownImpl { fn SetScanDirection(&self, direction: D3DX11_SCAN_DIRECTION) -> windows_core::Result<()>; fn SegScan(&self, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: Option<&ID3D11UnorderedAccessView>, psrcelementflags: Option<&ID3D11UnorderedAccessView>, pdst: Option<&ID3D11UnorderedAccessView>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID3DX11SegmentedScan {} impl ID3DX11SegmentedScan_Vtbl { - pub const fn new() -> ID3DX11SegmentedScan_Vtbl - where - Identity: ID3DX11SegmentedScan_Impl, - { - unsafe extern "system" fn SetScanDirection(this: *mut core::ffi::c_void, direction: D3DX11_SCAN_DIRECTION) -> windows_core::HRESULT - where - Identity: ID3DX11SegmentedScan_Impl, - { + pub const fn new() -> ID3DX11SegmentedScan_Vtbl { + unsafe extern "system" fn SetScanDirection(this: *mut core::ffi::c_void, direction: D3DX11_SCAN_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11SegmentedScan_Impl::SetScanDirection(this, core::mem::transmute_copy(&direction)).into() } - unsafe extern "system" fn SegScan(this: *mut core::ffi::c_void, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: *mut core::ffi::c_void, psrcelementflags: *mut core::ffi::c_void, pdst: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3DX11SegmentedScan_Impl, - { + unsafe extern "system" fn SegScan(this: *mut core::ffi::c_void, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: *mut core::ffi::c_void, psrcelementflags: *mut core::ffi::c_void, pdst: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DX11SegmentedScan_Impl::SegScan(this, core::mem::transmute_copy(&elementtype), core::mem::transmute_copy(&opcode), core::mem::transmute_copy(&elementscansize), windows_core::from_raw_borrowed(&psrc), windows_core::from_raw_borrowed(&psrcelementflags), windows_core::from_raw_borrowed(&pdst)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/impl.rs index e1f487d4a4..435e7e72de 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Win32_Graphics_Direct3D11", feature = "Win32_Graphics_Direct3D12"))] -pub trait ID3D11On12Device_Impl: Sized { +pub trait ID3D11On12Device_Impl: Sized + windows_core::IUnknownImpl { fn CreateWrappedResource(&self, presource12: Option<&windows_core::IUnknown>, pflags11: *const D3D11_RESOURCE_FLAGS, instate: super::Direct3D12::D3D12_RESOURCE_STATES, outstate: super::Direct3D12::D3D12_RESOURCE_STATES, riid: *const windows_core::GUID, ppresource11: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn ReleaseWrappedResources(&self, ppresources: *const Option, numresources: u32); fn AcquireWrappedResources(&self, ppresources: *const Option, numresources: u32); @@ -8,28 +8,16 @@ pub trait ID3D11On12Device_Impl: Sized { impl windows_core::RuntimeName for ID3D11On12Device {} #[cfg(all(feature = "Win32_Graphics_Direct3D11", feature = "Win32_Graphics_Direct3D12"))] impl ID3D11On12Device_Vtbl { - pub const fn new() -> ID3D11On12Device_Vtbl - where - Identity: ID3D11On12Device_Impl, - { - unsafe extern "system" fn CreateWrappedResource(this: *mut core::ffi::c_void, presource12: *mut core::ffi::c_void, pflags11: *const D3D11_RESOURCE_FLAGS, instate: super::Direct3D12::D3D12_RESOURCE_STATES, outstate: super::Direct3D12::D3D12_RESOURCE_STATES, riid: *const windows_core::GUID, ppresource11: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11On12Device_Impl, - { + pub const fn new() -> ID3D11On12Device_Vtbl { + unsafe extern "system" fn CreateWrappedResource(this: *mut core::ffi::c_void, presource12: *mut core::ffi::c_void, pflags11: *const D3D11_RESOURCE_FLAGS, instate: super::Direct3D12::D3D12_RESOURCE_STATES, outstate: super::Direct3D12::D3D12_RESOURCE_STATES, riid: *const windows_core::GUID, ppresource11: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11On12Device_Impl::CreateWrappedResource(this, windows_core::from_raw_borrowed(&presource12), core::mem::transmute_copy(&pflags11), core::mem::transmute_copy(&instate), core::mem::transmute_copy(&outstate), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppresource11)).into() } - unsafe extern "system" fn ReleaseWrappedResources(this: *mut core::ffi::c_void, ppresources: *const *mut core::ffi::c_void, numresources: u32) - where - Identity: ID3D11On12Device_Impl, - { + unsafe extern "system" fn ReleaseWrappedResources(this: *mut core::ffi::c_void, ppresources: *const *mut core::ffi::c_void, numresources: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11On12Device_Impl::ReleaseWrappedResources(this, core::mem::transmute_copy(&ppresources), core::mem::transmute_copy(&numresources)) } - unsafe extern "system" fn AcquireWrappedResources(this: *mut core::ffi::c_void, ppresources: *const *mut core::ffi::c_void, numresources: u32) - where - Identity: ID3D11On12Device_Impl, - { + unsafe extern "system" fn AcquireWrappedResources(this: *mut core::ffi::c_void, ppresources: *const *mut core::ffi::c_void, numresources: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11On12Device_Impl::AcquireWrappedResources(this, core::mem::transmute_copy(&ppresources), core::mem::transmute_copy(&numresources)) } @@ -52,14 +40,8 @@ pub trait ID3D11On12Device1_Impl: Sized + ID3D11On12Device_Impl { impl windows_core::RuntimeName for ID3D11On12Device1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D11", feature = "Win32_Graphics_Direct3D12"))] impl ID3D11On12Device1_Vtbl { - pub const fn new() -> ID3D11On12Device1_Vtbl - where - Identity: ID3D11On12Device1_Impl, - { - unsafe extern "system" fn GetD3D12Device(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11On12Device1_Impl, - { + pub const fn new() -> ID3D11On12Device1_Vtbl { + unsafe extern "system" fn GetD3D12Device(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11On12Device1_Impl::GetD3D12Device(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvdevice)).into() } @@ -78,21 +60,12 @@ pub trait ID3D11On12Device2_Impl: Sized + ID3D11On12Device1_Impl { impl windows_core::RuntimeName for ID3D11On12Device2 {} #[cfg(all(feature = "Win32_Graphics_Direct3D11", feature = "Win32_Graphics_Direct3D12"))] impl ID3D11On12Device2_Vtbl { - pub const fn new() -> ID3D11On12Device2_Vtbl - where - Identity: ID3D11On12Device2_Impl, - { - unsafe extern "system" fn UnwrapUnderlyingResource(this: *mut core::ffi::c_void, presource11: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvresource12: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11On12Device2_Impl, - { + pub const fn new() -> ID3D11On12Device2_Vtbl { + unsafe extern "system" fn UnwrapUnderlyingResource(this: *mut core::ffi::c_void, presource11: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvresource12: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11On12Device2_Impl::UnwrapUnderlyingResource(this, windows_core::from_raw_borrowed(&presource11), windows_core::from_raw_borrowed(&pcommandqueue), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvresource12)).into() } - unsafe extern "system" fn ReturnUnderlyingResource(this: *mut core::ffi::c_void, presource11: *mut core::ffi::c_void, numsync: u32, psignalvalues: *const u64, ppfences: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D11On12Device2_Impl, - { + unsafe extern "system" fn ReturnUnderlyingResource(this: *mut core::ffi::c_void, presource11: *mut core::ffi::c_void, numsync: u32, psignalvalues: *const u64, ppfences: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11On12Device2_Impl::ReturnUnderlyingResource(this, windows_core::from_raw_borrowed(&presource11), core::mem::transmute_copy(&numsync), core::mem::transmute_copy(&psignalvalues), core::mem::transmute_copy(&ppfences)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs index 9e58f8286c..94a942a946 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs @@ -3,14 +3,8 @@ pub trait ID3D12CommandAllocator_Impl: Sized + ID3D12Pageable_Impl { } impl windows_core::RuntimeName for ID3D12CommandAllocator {} impl ID3D12CommandAllocator_Vtbl { - pub const fn new() -> ID3D12CommandAllocator_Vtbl - where - Identity: ID3D12CommandAllocator_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12CommandAllocator_Impl, - { + pub const fn new() -> ID3D12CommandAllocator_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandAllocator_Impl::Reset(this).into() } @@ -25,14 +19,8 @@ pub trait ID3D12CommandList_Impl: Sized + ID3D12DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D12CommandList {} impl ID3D12CommandList_Vtbl { - pub const fn new() -> ID3D12CommandList_Vtbl - where - Identity: ID3D12CommandList_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> D3D12_COMMAND_LIST_TYPE - where - Identity: ID3D12CommandList_Impl, - { + pub const fn new() -> ID3D12CommandList_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> D3D12_COMMAND_LIST_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandList_Impl::GetType(this) } @@ -57,70 +45,40 @@ pub trait ID3D12CommandQueue_Impl: Sized + ID3D12Pageable_Impl { } impl windows_core::RuntimeName for ID3D12CommandQueue {} impl ID3D12CommandQueue_Vtbl { - pub const fn new() -> ID3D12CommandQueue_Vtbl - where - Identity: ID3D12CommandQueue_Impl, - { - unsafe extern "system" fn UpdateTileMappings(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, numresourceregions: u32, presourceregionstartcoordinates: *const D3D12_TILED_RESOURCE_COORDINATE, presourceregionsizes: *const D3D12_TILE_REGION_SIZE, pheap: *mut core::ffi::c_void, numranges: u32, prangeflags: *const D3D12_TILE_RANGE_FLAGS, pheaprangestartoffsets: *const u32, prangetilecounts: *const u32, flags: D3D12_TILE_MAPPING_FLAGS) - where - Identity: ID3D12CommandQueue_Impl, - { + pub const fn new() -> ID3D12CommandQueue_Vtbl { + unsafe extern "system" fn UpdateTileMappings(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, numresourceregions: u32, presourceregionstartcoordinates: *const D3D12_TILED_RESOURCE_COORDINATE, presourceregionsizes: *const D3D12_TILE_REGION_SIZE, pheap: *mut core::ffi::c_void, numranges: u32, prangeflags: *const D3D12_TILE_RANGE_FLAGS, pheaprangestartoffsets: *const u32, prangetilecounts: *const u32, flags: D3D12_TILE_MAPPING_FLAGS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandQueue_Impl::UpdateTileMappings(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&numresourceregions), core::mem::transmute_copy(&presourceregionstartcoordinates), core::mem::transmute_copy(&presourceregionsizes), windows_core::from_raw_borrowed(&pheap), core::mem::transmute_copy(&numranges), core::mem::transmute_copy(&prangeflags), core::mem::transmute_copy(&pheaprangestartoffsets), core::mem::transmute_copy(&prangetilecounts), core::mem::transmute_copy(&flags)) } - unsafe extern "system" fn CopyTileMappings(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, pdstregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, psrcresource: *mut core::ffi::c_void, psrcregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, pregionsize: *const D3D12_TILE_REGION_SIZE, flags: D3D12_TILE_MAPPING_FLAGS) - where - Identity: ID3D12CommandQueue_Impl, - { + unsafe extern "system" fn CopyTileMappings(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, pdstregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, psrcresource: *mut core::ffi::c_void, psrcregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, pregionsize: *const D3D12_TILE_REGION_SIZE, flags: D3D12_TILE_MAPPING_FLAGS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandQueue_Impl::CopyTileMappings(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&pdstregionstartcoordinate), windows_core::from_raw_borrowed(&psrcresource), core::mem::transmute_copy(&psrcregionstartcoordinate), core::mem::transmute_copy(&pregionsize), core::mem::transmute_copy(&flags)) } - unsafe extern "system" fn ExecuteCommandLists(this: *mut core::ffi::c_void, numcommandlists: u32, ppcommandlists: *const *mut core::ffi::c_void) - where - Identity: ID3D12CommandQueue_Impl, - { + unsafe extern "system" fn ExecuteCommandLists(this: *mut core::ffi::c_void, numcommandlists: u32, ppcommandlists: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandQueue_Impl::ExecuteCommandLists(this, core::mem::transmute_copy(&numcommandlists), core::mem::transmute_copy(&ppcommandlists)) } - unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) - where - Identity: ID3D12CommandQueue_Impl, - { + unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandQueue_Impl::SetMarker(this, core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) - where - Identity: ID3D12CommandQueue_Impl, - { + unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandQueue_Impl::BeginEvent(this, core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) - where - Identity: ID3D12CommandQueue_Impl, - { + unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandQueue_Impl::EndEvent(this) } - unsafe extern "system" fn Signal(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT - where - Identity: ID3D12CommandQueue_Impl, - { + unsafe extern "system" fn Signal(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandQueue_Impl::Signal(this, windows_core::from_raw_borrowed(&pfence), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT - where - Identity: ID3D12CommandQueue_Impl, - { + unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandQueue_Impl::Wait(this, windows_core::from_raw_borrowed(&pfence), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetTimestampFrequency(this: *mut core::ffi::c_void, pfrequency: *mut u64) -> windows_core::HRESULT - where - Identity: ID3D12CommandQueue_Impl, - { + unsafe extern "system" fn GetTimestampFrequency(this: *mut core::ffi::c_void, pfrequency: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12CommandQueue_Impl::GetTimestampFrequency(this) { Ok(ok__) => { @@ -130,17 +88,11 @@ impl ID3D12CommandQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClockCalibration(this: *mut core::ffi::c_void, pgputimestamp: *mut u64, pcputimestamp: *mut u64) -> windows_core::HRESULT - where - Identity: ID3D12CommandQueue_Impl, - { + unsafe extern "system" fn GetClockCalibration(this: *mut core::ffi::c_void, pgputimestamp: *mut u64, pcputimestamp: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12CommandQueue_Impl::GetClockCalibration(this, core::mem::transmute_copy(&pgputimestamp), core::mem::transmute_copy(&pcputimestamp)).into() } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_COMMAND_QUEUE_DESC) - where - Identity: ID3D12CommandQueue_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_COMMAND_QUEUE_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12CommandQueue_Impl::GetDesc(this) } @@ -166,29 +118,20 @@ impl ID3D12CommandQueue_Vtbl { pub trait ID3D12CommandSignature_Impl: Sized + ID3D12Pageable_Impl {} impl windows_core::RuntimeName for ID3D12CommandSignature {} impl ID3D12CommandSignature_Vtbl { - pub const fn new() -> ID3D12CommandSignature_Vtbl - where - Identity: ID3D12CommandSignature_Impl, - { + pub const fn new() -> ID3D12CommandSignature_Vtbl { Self { base__: ID3D12Pageable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D12Debug_Impl: Sized { +pub trait ID3D12Debug_Impl: Sized + windows_core::IUnknownImpl { fn EnableDebugLayer(&self); } impl windows_core::RuntimeName for ID3D12Debug {} impl ID3D12Debug_Vtbl { - pub const fn new() -> ID3D12Debug_Vtbl - where - Identity: ID3D12Debug_Impl, - { - unsafe extern "system" fn EnableDebugLayer(this: *mut core::ffi::c_void) - where - Identity: ID3D12Debug_Impl, - { + pub const fn new() -> ID3D12Debug_Vtbl { + unsafe extern "system" fn EnableDebugLayer(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug_Impl::EnableDebugLayer(this) } @@ -198,35 +141,23 @@ impl ID3D12Debug_Vtbl { iid == &::IID } } -pub trait ID3D12Debug1_Impl: Sized { +pub trait ID3D12Debug1_Impl: Sized + windows_core::IUnknownImpl { fn EnableDebugLayer(&self); fn SetEnableGPUBasedValidation(&self, enable: super::super::Foundation::BOOL); fn SetEnableSynchronizedCommandQueueValidation(&self, enable: super::super::Foundation::BOOL); } impl windows_core::RuntimeName for ID3D12Debug1 {} impl ID3D12Debug1_Vtbl { - pub const fn new() -> ID3D12Debug1_Vtbl - where - Identity: ID3D12Debug1_Impl, - { - unsafe extern "system" fn EnableDebugLayer(this: *mut core::ffi::c_void) - where - Identity: ID3D12Debug1_Impl, - { + pub const fn new() -> ID3D12Debug1_Vtbl { + unsafe extern "system" fn EnableDebugLayer(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug1_Impl::EnableDebugLayer(this) } - unsafe extern "system" fn SetEnableGPUBasedValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) - where - Identity: ID3D12Debug1_Impl, - { + unsafe extern "system" fn SetEnableGPUBasedValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug1_Impl::SetEnableGPUBasedValidation(this, core::mem::transmute_copy(&enable)) } - unsafe extern "system" fn SetEnableSynchronizedCommandQueueValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) - where - Identity: ID3D12Debug1_Impl, - { + unsafe extern "system" fn SetEnableSynchronizedCommandQueueValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug1_Impl::SetEnableSynchronizedCommandQueueValidation(this, core::mem::transmute_copy(&enable)) } @@ -241,19 +172,13 @@ impl ID3D12Debug1_Vtbl { iid == &::IID } } -pub trait ID3D12Debug2_Impl: Sized { +pub trait ID3D12Debug2_Impl: Sized + windows_core::IUnknownImpl { fn SetGPUBasedValidationFlags(&self, flags: D3D12_GPU_BASED_VALIDATION_FLAGS); } impl windows_core::RuntimeName for ID3D12Debug2 {} impl ID3D12Debug2_Vtbl { - pub const fn new() -> ID3D12Debug2_Vtbl - where - Identity: ID3D12Debug2_Impl, - { - unsafe extern "system" fn SetGPUBasedValidationFlags(this: *mut core::ffi::c_void, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) - where - Identity: ID3D12Debug2_Impl, - { + pub const fn new() -> ID3D12Debug2_Vtbl { + unsafe extern "system" fn SetGPUBasedValidationFlags(this: *mut core::ffi::c_void, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug2_Impl::SetGPUBasedValidationFlags(this, core::mem::transmute_copy(&flags)) } @@ -270,28 +195,16 @@ pub trait ID3D12Debug3_Impl: Sized + ID3D12Debug_Impl { } impl windows_core::RuntimeName for ID3D12Debug3 {} impl ID3D12Debug3_Vtbl { - pub const fn new() -> ID3D12Debug3_Vtbl - where - Identity: ID3D12Debug3_Impl, - { - unsafe extern "system" fn SetEnableGPUBasedValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) - where - Identity: ID3D12Debug3_Impl, - { + pub const fn new() -> ID3D12Debug3_Vtbl { + unsafe extern "system" fn SetEnableGPUBasedValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug3_Impl::SetEnableGPUBasedValidation(this, core::mem::transmute_copy(&enable)) } - unsafe extern "system" fn SetEnableSynchronizedCommandQueueValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) - where - Identity: ID3D12Debug3_Impl, - { + unsafe extern "system" fn SetEnableSynchronizedCommandQueueValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug3_Impl::SetEnableSynchronizedCommandQueueValidation(this, core::mem::transmute_copy(&enable)) } - unsafe extern "system" fn SetGPUBasedValidationFlags(this: *mut core::ffi::c_void, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) - where - Identity: ID3D12Debug3_Impl, - { + unsafe extern "system" fn SetGPUBasedValidationFlags(this: *mut core::ffi::c_void, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug3_Impl::SetGPUBasedValidationFlags(this, core::mem::transmute_copy(&flags)) } @@ -311,14 +224,8 @@ pub trait ID3D12Debug4_Impl: Sized + ID3D12Debug3_Impl { } impl windows_core::RuntimeName for ID3D12Debug4 {} impl ID3D12Debug4_Vtbl { - pub const fn new() -> ID3D12Debug4_Vtbl - where - Identity: ID3D12Debug4_Impl, - { - unsafe extern "system" fn DisableDebugLayer(this: *mut core::ffi::c_void) - where - Identity: ID3D12Debug4_Impl, - { + pub const fn new() -> ID3D12Debug4_Vtbl { + unsafe extern "system" fn DisableDebugLayer(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug4_Impl::DisableDebugLayer(this) } @@ -333,14 +240,8 @@ pub trait ID3D12Debug5_Impl: Sized + ID3D12Debug4_Impl { } impl windows_core::RuntimeName for ID3D12Debug5 {} impl ID3D12Debug5_Vtbl { - pub const fn new() -> ID3D12Debug5_Vtbl - where - Identity: ID3D12Debug5_Impl, - { - unsafe extern "system" fn SetEnableAutoName(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) - where - Identity: ID3D12Debug5_Impl, - { + pub const fn new() -> ID3D12Debug5_Vtbl { + unsafe extern "system" fn SetEnableAutoName(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug5_Impl::SetEnableAutoName(this, core::mem::transmute_copy(&enable)) } @@ -355,14 +256,8 @@ pub trait ID3D12Debug6_Impl: Sized + ID3D12Debug5_Impl { } impl windows_core::RuntimeName for ID3D12Debug6 {} impl ID3D12Debug6_Vtbl { - pub const fn new() -> ID3D12Debug6_Vtbl - where - Identity: ID3D12Debug6_Impl, - { - unsafe extern "system" fn SetForceLegacyBarrierValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) - where - Identity: ID3D12Debug6_Impl, - { + pub const fn new() -> ID3D12Debug6_Vtbl { + unsafe extern "system" fn SetForceLegacyBarrierValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug6_Impl::SetForceLegacyBarrierValidation(this, core::mem::transmute_copy(&enable)) } @@ -372,35 +267,23 @@ impl ID3D12Debug6_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D12DebugCommandList_Impl: Sized { +pub trait ID3D12DebugCommandList_Impl: Sized + windows_core::IUnknownImpl { fn AssertResourceState(&self, presource: Option<&ID3D12Resource>, subresource: u32, state: u32) -> super::super::Foundation::BOOL; fn SetFeatureMask(&self, mask: D3D12_DEBUG_FEATURE) -> windows_core::Result<()>; fn GetFeatureMask(&self) -> D3D12_DEBUG_FEATURE; } impl windows_core::RuntimeName for ID3D12DebugCommandList {} impl ID3D12DebugCommandList_Vtbl { - pub const fn new() -> ID3D12DebugCommandList_Vtbl - where - Identity: ID3D12DebugCommandList_Impl, - { - unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> super::super::Foundation::BOOL - where - Identity: ID3D12DebugCommandList_Impl, - { + pub const fn new() -> ID3D12DebugCommandList_Vtbl { + unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList_Impl::AssertResourceState(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&state)) } - unsafe extern "system" fn SetFeatureMask(this: *mut core::ffi::c_void, mask: D3D12_DEBUG_FEATURE) -> windows_core::HRESULT - where - Identity: ID3D12DebugCommandList_Impl, - { + unsafe extern "system" fn SetFeatureMask(this: *mut core::ffi::c_void, mask: D3D12_DEBUG_FEATURE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList_Impl::SetFeatureMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetFeatureMask(this: *mut core::ffi::c_void) -> D3D12_DEBUG_FEATURE - where - Identity: ID3D12DebugCommandList_Impl, - { + unsafe extern "system" fn GetFeatureMask(this: *mut core::ffi::c_void) -> D3D12_DEBUG_FEATURE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList_Impl::GetFeatureMask(this) } @@ -415,35 +298,23 @@ impl ID3D12DebugCommandList_Vtbl { iid == &::IID } } -pub trait ID3D12DebugCommandList1_Impl: Sized { +pub trait ID3D12DebugCommandList1_Impl: Sized + windows_core::IUnknownImpl { fn AssertResourceState(&self, presource: Option<&ID3D12Resource>, subresource: u32, state: u32) -> super::super::Foundation::BOOL; fn SetDebugParameter(&self, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::Result<()>; fn GetDebugParameter(&self, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID3D12DebugCommandList1 {} impl ID3D12DebugCommandList1_Vtbl { - pub const fn new() -> ID3D12DebugCommandList1_Vtbl - where - Identity: ID3D12DebugCommandList1_Impl, - { - unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> super::super::Foundation::BOOL - where - Identity: ID3D12DebugCommandList1_Impl, - { + pub const fn new() -> ID3D12DebugCommandList1_Vtbl { + unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList1_Impl::AssertResourceState(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&state)) } - unsafe extern "system" fn SetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12DebugCommandList1_Impl, - { + unsafe extern "system" fn SetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList1_Impl::SetDebugParameter(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn GetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12DebugCommandList1_Impl, - { + unsafe extern "system" fn GetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList1_Impl::GetDebugParameter(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize)).into() } @@ -464,21 +335,12 @@ pub trait ID3D12DebugCommandList2_Impl: Sized + ID3D12DebugCommandList_Impl { } impl windows_core::RuntimeName for ID3D12DebugCommandList2 {} impl ID3D12DebugCommandList2_Vtbl { - pub const fn new() -> ID3D12DebugCommandList2_Vtbl - where - Identity: ID3D12DebugCommandList2_Impl, - { - unsafe extern "system" fn SetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12DebugCommandList2_Impl, - { + pub const fn new() -> ID3D12DebugCommandList2_Vtbl { + unsafe extern "system" fn SetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList2_Impl::SetDebugParameter(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn GetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12DebugCommandList2_Impl, - { + unsafe extern "system" fn GetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList2_Impl::GetDebugParameter(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize)).into() } @@ -498,21 +360,12 @@ pub trait ID3D12DebugCommandList3_Impl: Sized + ID3D12DebugCommandList2_Impl { } impl windows_core::RuntimeName for ID3D12DebugCommandList3 {} impl ID3D12DebugCommandList3_Vtbl { - pub const fn new() -> ID3D12DebugCommandList3_Vtbl - where - Identity: ID3D12DebugCommandList3_Impl, - { - unsafe extern "system" fn AssertResourceAccess(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, access: D3D12_BARRIER_ACCESS) - where - Identity: ID3D12DebugCommandList3_Impl, - { + pub const fn new() -> ID3D12DebugCommandList3_Vtbl { + unsafe extern "system" fn AssertResourceAccess(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, access: D3D12_BARRIER_ACCESS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList3_Impl::AssertResourceAccess(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&access)) } - unsafe extern "system" fn AssertTextureLayout(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, layout: D3D12_BARRIER_LAYOUT) - where - Identity: ID3D12DebugCommandList3_Impl, - { + unsafe extern "system" fn AssertTextureLayout(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, layout: D3D12_BARRIER_LAYOUT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList3_Impl::AssertTextureLayout(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&layout)) } @@ -526,19 +379,13 @@ impl ID3D12DebugCommandList3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D12DebugCommandQueue_Impl: Sized { +pub trait ID3D12DebugCommandQueue_Impl: Sized + windows_core::IUnknownImpl { fn AssertResourceState(&self, presource: Option<&ID3D12Resource>, subresource: u32, state: u32) -> super::super::Foundation::BOOL; } impl windows_core::RuntimeName for ID3D12DebugCommandQueue {} impl ID3D12DebugCommandQueue_Vtbl { - pub const fn new() -> ID3D12DebugCommandQueue_Vtbl - where - Identity: ID3D12DebugCommandQueue_Impl, - { - unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> super::super::Foundation::BOOL - where - Identity: ID3D12DebugCommandQueue_Impl, - { + pub const fn new() -> ID3D12DebugCommandQueue_Vtbl { + unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandQueue_Impl::AssertResourceState(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&state)) } @@ -554,21 +401,12 @@ pub trait ID3D12DebugCommandQueue1_Impl: Sized + ID3D12DebugCommandQueue_Impl { } impl windows_core::RuntimeName for ID3D12DebugCommandQueue1 {} impl ID3D12DebugCommandQueue1_Vtbl { - pub const fn new() -> ID3D12DebugCommandQueue1_Vtbl - where - Identity: ID3D12DebugCommandQueue1_Impl, - { - unsafe extern "system" fn AssertResourceAccess(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, access: D3D12_BARRIER_ACCESS) - where - Identity: ID3D12DebugCommandQueue1_Impl, - { + pub const fn new() -> ID3D12DebugCommandQueue1_Vtbl { + unsafe extern "system" fn AssertResourceAccess(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, access: D3D12_BARRIER_ACCESS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandQueue1_Impl::AssertResourceAccess(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&access)) } - unsafe extern "system" fn AssertTextureLayout(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, layout: D3D12_BARRIER_LAYOUT) - where - Identity: ID3D12DebugCommandQueue1_Impl, - { + unsafe extern "system" fn AssertTextureLayout(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, layout: D3D12_BARRIER_LAYOUT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandQueue1_Impl::AssertTextureLayout(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&layout)) } @@ -582,35 +420,23 @@ impl ID3D12DebugCommandQueue1_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ID3D12DebugDevice_Impl: Sized { +pub trait ID3D12DebugDevice_Impl: Sized + windows_core::IUnknownImpl { fn SetFeatureMask(&self, mask: D3D12_DEBUG_FEATURE) -> windows_core::Result<()>; fn GetFeatureMask(&self) -> D3D12_DEBUG_FEATURE; fn ReportLiveDeviceObjects(&self, flags: D3D12_RLDO_FLAGS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID3D12DebugDevice {} impl ID3D12DebugDevice_Vtbl { - pub const fn new() -> ID3D12DebugDevice_Vtbl - where - Identity: ID3D12DebugDevice_Impl, - { - unsafe extern "system" fn SetFeatureMask(this: *mut core::ffi::c_void, mask: D3D12_DEBUG_FEATURE) -> windows_core::HRESULT - where - Identity: ID3D12DebugDevice_Impl, - { + pub const fn new() -> ID3D12DebugDevice_Vtbl { + unsafe extern "system" fn SetFeatureMask(this: *mut core::ffi::c_void, mask: D3D12_DEBUG_FEATURE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugDevice_Impl::SetFeatureMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetFeatureMask(this: *mut core::ffi::c_void) -> D3D12_DEBUG_FEATURE - where - Identity: ID3D12DebugDevice_Impl, - { + unsafe extern "system" fn GetFeatureMask(this: *mut core::ffi::c_void) -> D3D12_DEBUG_FEATURE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugDevice_Impl::GetFeatureMask(this) } - unsafe extern "system" fn ReportLiveDeviceObjects(this: *mut core::ffi::c_void, flags: D3D12_RLDO_FLAGS) -> windows_core::HRESULT - where - Identity: ID3D12DebugDevice_Impl, - { + unsafe extern "system" fn ReportLiveDeviceObjects(this: *mut core::ffi::c_void, flags: D3D12_RLDO_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugDevice_Impl::ReportLiveDeviceObjects(this, core::mem::transmute_copy(&flags)).into() } @@ -625,35 +451,23 @@ impl ID3D12DebugDevice_Vtbl { iid == &::IID } } -pub trait ID3D12DebugDevice1_Impl: Sized { +pub trait ID3D12DebugDevice1_Impl: Sized + windows_core::IUnknownImpl { fn SetDebugParameter(&self, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::Result<()>; fn GetDebugParameter(&self, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::Result<()>; fn ReportLiveDeviceObjects(&self, flags: D3D12_RLDO_FLAGS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID3D12DebugDevice1 {} impl ID3D12DebugDevice1_Vtbl { - pub const fn new() -> ID3D12DebugDevice1_Vtbl - where - Identity: ID3D12DebugDevice1_Impl, - { - unsafe extern "system" fn SetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12DebugDevice1_Impl, - { + pub const fn new() -> ID3D12DebugDevice1_Vtbl { + unsafe extern "system" fn SetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugDevice1_Impl::SetDebugParameter(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn GetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12DebugDevice1_Impl, - { + unsafe extern "system" fn GetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugDevice1_Impl::GetDebugParameter(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn ReportLiveDeviceObjects(this: *mut core::ffi::c_void, flags: D3D12_RLDO_FLAGS) -> windows_core::HRESULT - where - Identity: ID3D12DebugDevice1_Impl, - { + unsafe extern "system" fn ReportLiveDeviceObjects(this: *mut core::ffi::c_void, flags: D3D12_RLDO_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugDevice1_Impl::ReportLiveDeviceObjects(this, core::mem::transmute_copy(&flags)).into() } @@ -674,21 +488,12 @@ pub trait ID3D12DebugDevice2_Impl: Sized + ID3D12DebugDevice_Impl { } impl windows_core::RuntimeName for ID3D12DebugDevice2 {} impl ID3D12DebugDevice2_Vtbl { - pub const fn new() -> ID3D12DebugDevice2_Vtbl - where - Identity: ID3D12DebugDevice2_Impl, - { - unsafe extern "system" fn SetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12DebugDevice2_Impl, - { + pub const fn new() -> ID3D12DebugDevice2_Vtbl { + unsafe extern "system" fn SetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugDevice2_Impl::SetDebugParameter(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn GetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12DebugDevice2_Impl, - { + unsafe extern "system" fn GetDebugParameter(this: *mut core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugDevice2_Impl::GetDebugParameter(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize)).into() } @@ -709,28 +514,16 @@ pub trait ID3D12DescriptorHeap_Impl: Sized + ID3D12Pageable_Impl { } impl windows_core::RuntimeName for ID3D12DescriptorHeap {} impl ID3D12DescriptorHeap_Vtbl { - pub const fn new() -> ID3D12DescriptorHeap_Vtbl - where - Identity: ID3D12DescriptorHeap_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_DESCRIPTOR_HEAP_DESC) - where - Identity: ID3D12DescriptorHeap_Impl, - { + pub const fn new() -> ID3D12DescriptorHeap_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_DESCRIPTOR_HEAP_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12DescriptorHeap_Impl::GetDesc(this) } - unsafe extern "system" fn GetCPUDescriptorHandleForHeapStart(this: *mut core::ffi::c_void, result__: *mut D3D12_CPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12DescriptorHeap_Impl, - { + unsafe extern "system" fn GetCPUDescriptorHandleForHeapStart(this: *mut core::ffi::c_void, result__: *mut D3D12_CPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12DescriptorHeap_Impl::GetCPUDescriptorHandleForHeapStart(this) } - unsafe extern "system" fn GetGPUDescriptorHandleForHeapStart(this: *mut core::ffi::c_void, result__: *mut D3D12_GPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12DescriptorHeap_Impl, - { + unsafe extern "system" fn GetGPUDescriptorHandleForHeapStart(this: *mut core::ffi::c_void, result__: *mut D3D12_GPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12DescriptorHeap_Impl::GetGPUDescriptorHandleForHeapStart(this) } @@ -789,182 +582,104 @@ pub trait ID3D12Device_Impl: Sized + ID3D12Object_Impl { impl windows_core::RuntimeName for ID3D12Device {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device_Vtbl { - pub const fn new() -> ID3D12Device_Vtbl - where - Identity: ID3D12Device_Impl, - { - unsafe extern "system" fn GetNodeCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12Device_Impl, - { + pub const fn new() -> ID3D12Device_Vtbl { + unsafe extern "system" fn GetNodeCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::GetNodeCount(this) } - unsafe extern "system" fn CreateCommandQueue(this: *mut core::ffi::c_void, pdesc: *const D3D12_COMMAND_QUEUE_DESC, riid: *const windows_core::GUID, ppcommandqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateCommandQueue(this: *mut core::ffi::c_void, pdesc: *const D3D12_COMMAND_QUEUE_DESC, riid: *const windows_core::GUID, ppcommandqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateCommandQueue(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppcommandqueue)).into() } - unsafe extern "system" fn CreateCommandAllocator(this: *mut core::ffi::c_void, r#type: D3D12_COMMAND_LIST_TYPE, riid: *const windows_core::GUID, ppcommandallocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateCommandAllocator(this: *mut core::ffi::c_void, r#type: D3D12_COMMAND_LIST_TYPE, riid: *const windows_core::GUID, ppcommandallocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateCommandAllocator(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppcommandallocator)).into() } - unsafe extern "system" fn CreateGraphicsPipelineState(this: *mut core::ffi::c_void, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateGraphicsPipelineState(this: *mut core::ffi::c_void, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateGraphicsPipelineState(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pppipelinestate)).into() } - unsafe extern "system" fn CreateComputePipelineState(this: *mut core::ffi::c_void, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateComputePipelineState(this: *mut core::ffi::c_void, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateComputePipelineState(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pppipelinestate)).into() } - unsafe extern "system" fn CreateCommandList(this: *mut core::ffi::c_void, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: *mut core::ffi::c_void, pinitialstate: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppcommandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateCommandList(this: *mut core::ffi::c_void, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, pcommandallocator: *mut core::ffi::c_void, pinitialstate: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppcommandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateCommandList(this, core::mem::transmute_copy(&nodemask), core::mem::transmute_copy(&r#type), windows_core::from_raw_borrowed(&pcommandallocator), windows_core::from_raw_borrowed(&pinitialstate), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppcommandlist)).into() } - unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: D3D12_FEATURE, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: D3D12_FEATURE, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CheckFeatureSupport(this, core::mem::transmute_copy(&feature), core::mem::transmute_copy(&pfeaturesupportdata), core::mem::transmute_copy(&featuresupportdatasize)).into() } - unsafe extern "system" fn CreateDescriptorHeap(this: *mut core::ffi::c_void, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateDescriptorHeap(this: *mut core::ffi::c_void, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateDescriptorHeap(this, core::mem::transmute_copy(&pdescriptorheapdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvheap)).into() } - unsafe extern "system" fn GetDescriptorHandleIncrementSize(this: *mut core::ffi::c_void, descriptorheaptype: D3D12_DESCRIPTOR_HEAP_TYPE) -> u32 - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn GetDescriptorHandleIncrementSize(this: *mut core::ffi::c_void, descriptorheaptype: D3D12_DESCRIPTOR_HEAP_TYPE) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::GetDescriptorHandleIncrementSize(this, core::mem::transmute_copy(&descriptorheaptype)) } - unsafe extern "system" fn CreateRootSignature(this: *mut core::ffi::c_void, nodemask: u32, pblobwithrootsignature: *const core::ffi::c_void, bloblengthinbytes: usize, riid: *const windows_core::GUID, ppvrootsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateRootSignature(this: *mut core::ffi::c_void, nodemask: u32, pblobwithrootsignature: *const core::ffi::c_void, bloblengthinbytes: usize, riid: *const windows_core::GUID, ppvrootsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateRootSignature(this, core::mem::transmute_copy(&nodemask), core::mem::transmute_copy(&pblobwithrootsignature), core::mem::transmute_copy(&bloblengthinbytes), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvrootsignature)).into() } - unsafe extern "system" fn CreateConstantBufferView(this: *mut core::ffi::c_void, pdesc: *const D3D12_CONSTANT_BUFFER_VIEW_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateConstantBufferView(this: *mut core::ffi::c_void, pdesc: *const D3D12_CONSTANT_BUFFER_VIEW_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateConstantBufferView(this, core::mem::transmute_copy(&pdesc), core::mem::transmute(&destdescriptor)) } - unsafe extern "system" fn CreateShaderResourceView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D12_SHADER_RESOURCE_VIEW_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateShaderResourceView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D12_SHADER_RESOURCE_VIEW_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateShaderResourceView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute(&destdescriptor)) } - unsafe extern "system" fn CreateUnorderedAccessView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pcounterresource: *mut core::ffi::c_void, pdesc: *const D3D12_UNORDERED_ACCESS_VIEW_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateUnorderedAccessView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pcounterresource: *mut core::ffi::c_void, pdesc: *const D3D12_UNORDERED_ACCESS_VIEW_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateUnorderedAccessView(this, windows_core::from_raw_borrowed(&presource), windows_core::from_raw_borrowed(&pcounterresource), core::mem::transmute_copy(&pdesc), core::mem::transmute(&destdescriptor)) } - unsafe extern "system" fn CreateRenderTargetView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D12_RENDER_TARGET_VIEW_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateRenderTargetView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D12_RENDER_TARGET_VIEW_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateRenderTargetView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute(&destdescriptor)) } - unsafe extern "system" fn CreateDepthStencilView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D12_DEPTH_STENCIL_VIEW_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateDepthStencilView(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdesc: *const D3D12_DEPTH_STENCIL_VIEW_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateDepthStencilView(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdesc), core::mem::transmute(&destdescriptor)) } - unsafe extern "system" fn CreateSampler(this: *mut core::ffi::c_void, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateSampler(this: *mut core::ffi::c_void, pdesc: *const D3D12_SAMPLER_DESC, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateSampler(this, core::mem::transmute_copy(&pdesc), core::mem::transmute(&destdescriptor)) } - unsafe extern "system" fn CopyDescriptors(this: *mut core::ffi::c_void, numdestdescriptorranges: u32, pdestdescriptorrangestarts: *const D3D12_CPU_DESCRIPTOR_HANDLE, pdestdescriptorrangesizes: *const u32, numsrcdescriptorranges: u32, psrcdescriptorrangestarts: *const D3D12_CPU_DESCRIPTOR_HANDLE, psrcdescriptorrangesizes: *const u32, descriptorheapstype: D3D12_DESCRIPTOR_HEAP_TYPE) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CopyDescriptors(this: *mut core::ffi::c_void, numdestdescriptorranges: u32, pdestdescriptorrangestarts: *const D3D12_CPU_DESCRIPTOR_HANDLE, pdestdescriptorrangesizes: *const u32, numsrcdescriptorranges: u32, psrcdescriptorrangestarts: *const D3D12_CPU_DESCRIPTOR_HANDLE, psrcdescriptorrangesizes: *const u32, descriptorheapstype: D3D12_DESCRIPTOR_HEAP_TYPE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CopyDescriptors(this, core::mem::transmute_copy(&numdestdescriptorranges), core::mem::transmute_copy(&pdestdescriptorrangestarts), core::mem::transmute_copy(&pdestdescriptorrangesizes), core::mem::transmute_copy(&numsrcdescriptorranges), core::mem::transmute_copy(&psrcdescriptorrangestarts), core::mem::transmute_copy(&psrcdescriptorrangesizes), core::mem::transmute_copy(&descriptorheapstype)) } - unsafe extern "system" fn CopyDescriptorsSimple(this: *mut core::ffi::c_void, numdescriptors: u32, destdescriptorrangestart: D3D12_CPU_DESCRIPTOR_HANDLE, srcdescriptorrangestart: D3D12_CPU_DESCRIPTOR_HANDLE, descriptorheapstype: D3D12_DESCRIPTOR_HEAP_TYPE) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CopyDescriptorsSimple(this: *mut core::ffi::c_void, numdescriptors: u32, destdescriptorrangestart: D3D12_CPU_DESCRIPTOR_HANDLE, srcdescriptorrangestart: D3D12_CPU_DESCRIPTOR_HANDLE, descriptorheapstype: D3D12_DESCRIPTOR_HEAP_TYPE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CopyDescriptorsSimple(this, core::mem::transmute_copy(&numdescriptors), core::mem::transmute(&destdescriptorrangestart), core::mem::transmute(&srcdescriptorrangestart), core::mem::transmute_copy(&descriptorheapstype)) } - unsafe extern "system" fn GetResourceAllocationInfo(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_ALLOCATION_INFO, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn GetResourceAllocationInfo(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_ALLOCATION_INFO, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12Device_Impl::GetResourceAllocationInfo(this, core::mem::transmute_copy(&visiblemask), core::mem::transmute_copy(&numresourcedescs), core::mem::transmute_copy(&presourcedescs)) } - unsafe extern "system" fn GetCustomHeapProperties(this: *mut core::ffi::c_void, result__: *mut D3D12_HEAP_PROPERTIES, nodemask: u32, heaptype: D3D12_HEAP_TYPE) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn GetCustomHeapProperties(this: *mut core::ffi::c_void, result__: *mut D3D12_HEAP_PROPERTIES, nodemask: u32, heaptype: D3D12_HEAP_TYPE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12Device_Impl::GetCustomHeapProperties(this, core::mem::transmute_copy(&nodemask), core::mem::transmute_copy(&heaptype)) } - unsafe extern "system" fn CreateCommittedResource(this: *mut core::ffi::c_void, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateCommittedResource(this: *mut core::ffi::c_void, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateCommittedResource(this, core::mem::transmute_copy(&pheapproperties), core::mem::transmute_copy(&heapflags), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&initialresourcestate), core::mem::transmute_copy(&poptimizedclearvalue), core::mem::transmute_copy(&riidresource), core::mem::transmute_copy(&ppvresource)).into() } - unsafe extern "system" fn CreateHeap(this: *mut core::ffi::c_void, pdesc: *const D3D12_HEAP_DESC, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateHeap(this: *mut core::ffi::c_void, pdesc: *const D3D12_HEAP_DESC, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateHeap(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvheap)).into() } - unsafe extern "system" fn CreatePlacedResource(this: *mut core::ffi::c_void, pheap: *mut core::ffi::c_void, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreatePlacedResource(this: *mut core::ffi::c_void, pheap: *mut core::ffi::c_void, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreatePlacedResource(this, windows_core::from_raw_borrowed(&pheap), core::mem::transmute_copy(&heapoffset), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&initialstate), core::mem::transmute_copy(&poptimizedclearvalue), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvresource)).into() } - unsafe extern "system" fn CreateReservedResource(this: *mut core::ffi::c_void, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateReservedResource(this: *mut core::ffi::c_void, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateReservedResource(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&initialstate), core::mem::transmute_copy(&poptimizedclearvalue), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvresource)).into() } - unsafe extern "system" fn CreateSharedHandle(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, pattributes: *const super::super::Security::SECURITY_ATTRIBUTES, access: u32, name: windows_core::PCWSTR, phandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateSharedHandle(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, pattributes: *const super::super::Security::SECURITY_ATTRIBUTES, access: u32, name: windows_core::PCWSTR, phandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12Device_Impl::CreateSharedHandle(this, windows_core::from_raw_borrowed(&pobject), core::mem::transmute_copy(&pattributes), core::mem::transmute_copy(&access), core::mem::transmute(&name)) { Ok(ok__) => { @@ -974,17 +689,11 @@ impl ID3D12Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenSharedHandle(this: *mut core::ffi::c_void, nthandle: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn OpenSharedHandle(this: *mut core::ffi::c_void, nthandle: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::OpenSharedHandle(this, core::mem::transmute_copy(&nthandle), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobj)).into() } - unsafe extern "system" fn OpenSharedHandleByName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, access: u32, pnthandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn OpenSharedHandleByName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, access: u32, pnthandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12Device_Impl::OpenSharedHandleByName(this, core::mem::transmute(&name), core::mem::transmute_copy(&access)) { Ok(ok__) => { @@ -994,73 +703,43 @@ impl ID3D12Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MakeResident(this: *mut core::ffi::c_void, numobjects: u32, ppobjects: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn MakeResident(this: *mut core::ffi::c_void, numobjects: u32, ppobjects: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::MakeResident(this, core::mem::transmute_copy(&numobjects), core::mem::transmute_copy(&ppobjects)).into() } - unsafe extern "system" fn Evict(this: *mut core::ffi::c_void, numobjects: u32, ppobjects: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn Evict(this: *mut core::ffi::c_void, numobjects: u32, ppobjects: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::Evict(this, core::mem::transmute_copy(&numobjects), core::mem::transmute_copy(&ppobjects)).into() } - unsafe extern "system" fn CreateFence(this: *mut core::ffi::c_void, initialvalue: u64, flags: D3D12_FENCE_FLAGS, riid: *const windows_core::GUID, ppfence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateFence(this: *mut core::ffi::c_void, initialvalue: u64, flags: D3D12_FENCE_FLAGS, riid: *const windows_core::GUID, ppfence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateFence(this, core::mem::transmute_copy(&initialvalue), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppfence)).into() } - unsafe extern "system" fn GetDeviceRemovedReason(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn GetDeviceRemovedReason(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::GetDeviceRemovedReason(this).into() } - unsafe extern "system" fn GetCopyableFootprints(this: *mut core::ffi::c_void, presourcedesc: *const D3D12_RESOURCE_DESC, firstsubresource: u32, numsubresources: u32, baseoffset: u64, playouts: *mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT, pnumrows: *mut u32, prowsizeinbytes: *mut u64, ptotalbytes: *mut u64) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn GetCopyableFootprints(this: *mut core::ffi::c_void, presourcedesc: *const D3D12_RESOURCE_DESC, firstsubresource: u32, numsubresources: u32, baseoffset: u64, playouts: *mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT, pnumrows: *mut u32, prowsizeinbytes: *mut u64, ptotalbytes: *mut u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::GetCopyableFootprints(this, core::mem::transmute_copy(&presourcedesc), core::mem::transmute_copy(&firstsubresource), core::mem::transmute_copy(&numsubresources), core::mem::transmute_copy(&baseoffset), core::mem::transmute_copy(&playouts), core::mem::transmute_copy(&pnumrows), core::mem::transmute_copy(&prowsizeinbytes), core::mem::transmute_copy(&ptotalbytes)) } - unsafe extern "system" fn CreateQueryHeap(this: *mut core::ffi::c_void, pdesc: *const D3D12_QUERY_HEAP_DESC, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateQueryHeap(this: *mut core::ffi::c_void, pdesc: *const D3D12_QUERY_HEAP_DESC, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateQueryHeap(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvheap)).into() } - unsafe extern "system" fn SetStablePowerState(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn SetStablePowerState(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::SetStablePowerState(this, core::mem::transmute_copy(&enable)).into() } - unsafe extern "system" fn CreateCommandSignature(this: *mut core::ffi::c_void, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvcommandsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn CreateCommandSignature(this: *mut core::ffi::c_void, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvcommandsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::CreateCommandSignature(this, core::mem::transmute_copy(&pdesc), windows_core::from_raw_borrowed(&prootsignature), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvcommandsignature)).into() } - unsafe extern "system" fn GetResourceTiling(this: *mut core::ffi::c_void, ptiledresource: *mut core::ffi::c_void, pnumtilesforentireresource: *mut u32, ppackedmipdesc: *mut D3D12_PACKED_MIP_INFO, pstandardtileshapefornonpackedmips: *mut D3D12_TILE_SHAPE, pnumsubresourcetilings: *mut u32, firstsubresourcetilingtoget: u32, psubresourcetilingsfornonpackedmips: *mut D3D12_SUBRESOURCE_TILING) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn GetResourceTiling(this: *mut core::ffi::c_void, ptiledresource: *mut core::ffi::c_void, pnumtilesforentireresource: *mut u32, ppackedmipdesc: *mut D3D12_PACKED_MIP_INFO, pstandardtileshapefornonpackedmips: *mut D3D12_TILE_SHAPE, pnumsubresourcetilings: *mut u32, firstsubresourcetilingtoget: u32, psubresourcetilingsfornonpackedmips: *mut D3D12_SUBRESOURCE_TILING) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::GetResourceTiling(this, windows_core::from_raw_borrowed(&ptiledresource), core::mem::transmute_copy(&pnumtilesforentireresource), core::mem::transmute_copy(&ppackedmipdesc), core::mem::transmute_copy(&pstandardtileshapefornonpackedmips), core::mem::transmute_copy(&pnumsubresourcetilings), core::mem::transmute_copy(&firstsubresourcetilingtoget), core::mem::transmute_copy(&psubresourcetilingsfornonpackedmips)) } - unsafe extern "system" fn GetAdapterLuid(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::LUID) - where - Identity: ID3D12Device_Impl, - { + unsafe extern "system" fn GetAdapterLuid(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::LUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12Device_Impl::GetAdapterLuid(this) } @@ -1119,28 +798,16 @@ pub trait ID3D12Device1_Impl: Sized + ID3D12Device_Impl { impl windows_core::RuntimeName for ID3D12Device1 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device1_Vtbl { - pub const fn new() -> ID3D12Device1_Vtbl - where - Identity: ID3D12Device1_Impl, - { - unsafe extern "system" fn CreatePipelineLibrary(this: *mut core::ffi::c_void, plibraryblob: *const core::ffi::c_void, bloblength: usize, riid: *const windows_core::GUID, pppipelinelibrary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device1_Impl, - { + pub const fn new() -> ID3D12Device1_Vtbl { + unsafe extern "system" fn CreatePipelineLibrary(this: *mut core::ffi::c_void, plibraryblob: *const core::ffi::c_void, bloblength: usize, riid: *const windows_core::GUID, pppipelinelibrary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device1_Impl::CreatePipelineLibrary(this, core::mem::transmute_copy(&plibraryblob), core::mem::transmute_copy(&bloblength), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pppipelinelibrary)).into() } - unsafe extern "system" fn SetEventOnMultipleFenceCompletion(this: *mut core::ffi::c_void, ppfences: *const *mut core::ffi::c_void, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ID3D12Device1_Impl, - { + unsafe extern "system" fn SetEventOnMultipleFenceCompletion(this: *mut core::ffi::c_void, ppfences: *const *mut core::ffi::c_void, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device1_Impl::SetEventOnMultipleFenceCompletion(this, core::mem::transmute_copy(&ppfences), core::mem::transmute_copy(&pfencevalues), core::mem::transmute_copy(&numfences), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn SetResidencyPriority(this: *mut core::ffi::c_void, numobjects: u32, ppobjects: *const *mut core::ffi::c_void, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::HRESULT - where - Identity: ID3D12Device1_Impl, - { + unsafe extern "system" fn SetResidencyPriority(this: *mut core::ffi::c_void, numobjects: u32, ppobjects: *const *mut core::ffi::c_void, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device1_Impl::SetResidencyPriority(this, core::mem::transmute_copy(&numobjects), core::mem::transmute_copy(&ppobjects), core::mem::transmute_copy(&ppriorities)).into() } @@ -1165,28 +832,16 @@ pub trait ID3D12Device10_Impl: Sized + ID3D12Device9_Impl { impl windows_core::RuntimeName for ID3D12Device10 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device10_Vtbl { - pub const fn new() -> ID3D12Device10_Vtbl - where - Identity: ID3D12Device10_Impl, - { - unsafe extern "system" fn CreateCommittedResource3(this: *mut core::ffi::c_void, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, pprotectedsession: *mut core::ffi::c_void, numcastableformats: u32, pcastableformats: *const super::Dxgi::Common::DXGI_FORMAT, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device10_Impl, - { + pub const fn new() -> ID3D12Device10_Vtbl { + unsafe extern "system" fn CreateCommittedResource3(this: *mut core::ffi::c_void, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, pprotectedsession: *mut core::ffi::c_void, numcastableformats: u32, pcastableformats: *const super::Dxgi::Common::DXGI_FORMAT, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device10_Impl::CreateCommittedResource3(this, core::mem::transmute_copy(&pheapproperties), core::mem::transmute_copy(&heapflags), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&initiallayout), core::mem::transmute_copy(&poptimizedclearvalue), windows_core::from_raw_borrowed(&pprotectedsession), core::mem::transmute_copy(&numcastableformats), core::mem::transmute_copy(&pcastableformats), core::mem::transmute_copy(&riidresource), core::mem::transmute_copy(&ppvresource)).into() } - unsafe extern "system" fn CreatePlacedResource2(this: *mut core::ffi::c_void, pheap: *mut core::ffi::c_void, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, numcastableformats: u32, pcastableformats: *const super::Dxgi::Common::DXGI_FORMAT, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device10_Impl, - { + unsafe extern "system" fn CreatePlacedResource2(this: *mut core::ffi::c_void, pheap: *mut core::ffi::c_void, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, numcastableformats: u32, pcastableformats: *const super::Dxgi::Common::DXGI_FORMAT, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device10_Impl::CreatePlacedResource2(this, windows_core::from_raw_borrowed(&pheap), core::mem::transmute_copy(&heapoffset), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&initiallayout), core::mem::transmute_copy(&poptimizedclearvalue), core::mem::transmute_copy(&numcastableformats), core::mem::transmute_copy(&pcastableformats), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvresource)).into() } - unsafe extern "system" fn CreateReservedResource2(this: *mut core::ffi::c_void, pdesc: *const D3D12_RESOURCE_DESC, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, pprotectedsession: *mut core::ffi::c_void, numcastableformats: u32, pcastableformats: *const super::Dxgi::Common::DXGI_FORMAT, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device10_Impl, - { + unsafe extern "system" fn CreateReservedResource2(this: *mut core::ffi::c_void, pdesc: *const D3D12_RESOURCE_DESC, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, pprotectedsession: *mut core::ffi::c_void, numcastableformats: u32, pcastableformats: *const super::Dxgi::Common::DXGI_FORMAT, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device10_Impl::CreateReservedResource2(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&initiallayout), core::mem::transmute_copy(&poptimizedclearvalue), windows_core::from_raw_borrowed(&pprotectedsession), core::mem::transmute_copy(&numcastableformats), core::mem::transmute_copy(&pcastableformats), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvresource)).into() } @@ -1209,14 +864,8 @@ pub trait ID3D12Device11_Impl: Sized + ID3D12Device10_Impl { impl windows_core::RuntimeName for ID3D12Device11 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device11_Vtbl { - pub const fn new() -> ID3D12Device11_Vtbl - where - Identity: ID3D12Device11_Impl, - { - unsafe extern "system" fn CreateSampler2(this: *mut core::ffi::c_void, pdesc: *const D3D12_SAMPLER_DESC2, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12Device11_Impl, - { + pub const fn new() -> ID3D12Device11_Vtbl { + unsafe extern "system" fn CreateSampler2(this: *mut core::ffi::c_void, pdesc: *const D3D12_SAMPLER_DESC2, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device11_Impl::CreateSampler2(this, core::mem::transmute_copy(&pdesc), core::mem::transmute(&destdescriptor)) } @@ -1234,14 +883,8 @@ pub trait ID3D12Device12_Impl: Sized + ID3D12Device11_Impl { impl windows_core::RuntimeName for ID3D12Device12 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device12_Vtbl { - pub const fn new() -> ID3D12Device12_Vtbl - where - Identity: ID3D12Device12_Impl, - { - unsafe extern "system" fn GetResourceAllocationInfo3(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_ALLOCATION_INFO, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC1, pnumcastableformats: *const u32, ppcastableformats: *const *const super::Dxgi::Common::DXGI_FORMAT, presourceallocationinfo1: *mut D3D12_RESOURCE_ALLOCATION_INFO1) - where - Identity: ID3D12Device12_Impl, - { + pub const fn new() -> ID3D12Device12_Vtbl { + unsafe extern "system" fn GetResourceAllocationInfo3(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_ALLOCATION_INFO, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC1, pnumcastableformats: *const u32, ppcastableformats: *const *const super::Dxgi::Common::DXGI_FORMAT, presourceallocationinfo1: *mut D3D12_RESOURCE_ALLOCATION_INFO1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12Device12_Impl::GetResourceAllocationInfo3(this, core::mem::transmute_copy(&visiblemask), core::mem::transmute_copy(&numresourcedescs), core::mem::transmute_copy(&presourcedescs), core::mem::transmute_copy(&pnumcastableformats), core::mem::transmute_copy(&ppcastableformats), core::mem::transmute_copy(&presourceallocationinfo1)) } @@ -1272,14 +915,8 @@ pub trait ID3D12Device13_Impl: Sized + ID3D12Device12_Impl { impl windows_core::RuntimeName for ID3D12Device13 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device13_Vtbl { - pub const fn new() -> ID3D12Device13_Vtbl - where - Identity: ID3D12Device13_Impl, - { - unsafe extern "system" fn OpenExistingHeapFromAddress1(this: *mut core::ffi::c_void, paddress: *const core::ffi::c_void, size: usize, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device13_Impl, - { + pub const fn new() -> ID3D12Device13_Vtbl { + unsafe extern "system" fn OpenExistingHeapFromAddress1(this: *mut core::ffi::c_void, paddress: *const core::ffi::c_void, size: usize, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device13_Impl::OpenExistingHeapFromAddress1(this, core::mem::transmute_copy(&paddress), core::mem::transmute_copy(&size), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvheap)).into() } @@ -1311,14 +948,8 @@ pub trait ID3D12Device14_Impl: Sized + ID3D12Device13_Impl { impl windows_core::RuntimeName for ID3D12Device14 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device14_Vtbl { - pub const fn new() -> ID3D12Device14_Vtbl - where - Identity: ID3D12Device14_Impl, - { - unsafe extern "system" fn CreateRootSignatureFromSubobjectInLibrary(this: *mut core::ffi::c_void, nodemask: u32, plibraryblob: *const core::ffi::c_void, bloblengthinbytes: usize, subobjectname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppvrootsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device14_Impl, - { + pub const fn new() -> ID3D12Device14_Vtbl { + unsafe extern "system" fn CreateRootSignatureFromSubobjectInLibrary(this: *mut core::ffi::c_void, nodemask: u32, plibraryblob: *const core::ffi::c_void, bloblengthinbytes: usize, subobjectname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppvrootsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device14_Impl::CreateRootSignatureFromSubobjectInLibrary(this, core::mem::transmute_copy(&nodemask), core::mem::transmute_copy(&plibraryblob), core::mem::transmute_copy(&bloblengthinbytes), core::mem::transmute(&subobjectname), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvrootsignature)).into() } @@ -1354,14 +985,8 @@ pub trait ID3D12Device2_Impl: Sized + ID3D12Device1_Impl { impl windows_core::RuntimeName for ID3D12Device2 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device2_Vtbl { - pub const fn new() -> ID3D12Device2_Vtbl - where - Identity: ID3D12Device2_Impl, - { - unsafe extern "system" fn CreatePipelineState(this: *mut core::ffi::c_void, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device2_Impl, - { + pub const fn new() -> ID3D12Device2_Vtbl { + unsafe extern "system" fn CreatePipelineState(this: *mut core::ffi::c_void, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device2_Impl::CreatePipelineState(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pppipelinestate)).into() } @@ -1381,28 +1006,16 @@ pub trait ID3D12Device3_Impl: Sized + ID3D12Device2_Impl { impl windows_core::RuntimeName for ID3D12Device3 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device3_Vtbl { - pub const fn new() -> ID3D12Device3_Vtbl - where - Identity: ID3D12Device3_Impl, - { - unsafe extern "system" fn OpenExistingHeapFromAddress(this: *mut core::ffi::c_void, paddress: *const core::ffi::c_void, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device3_Impl, - { + pub const fn new() -> ID3D12Device3_Vtbl { + unsafe extern "system" fn OpenExistingHeapFromAddress(this: *mut core::ffi::c_void, paddress: *const core::ffi::c_void, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device3_Impl::OpenExistingHeapFromAddress(this, core::mem::transmute_copy(&paddress), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvheap)).into() } - unsafe extern "system" fn OpenExistingHeapFromFileMapping(this: *mut core::ffi::c_void, hfilemapping: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device3_Impl, - { + unsafe extern "system" fn OpenExistingHeapFromFileMapping(this: *mut core::ffi::c_void, hfilemapping: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device3_Impl::OpenExistingHeapFromFileMapping(this, core::mem::transmute_copy(&hfilemapping), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvheap)).into() } - unsafe extern "system" fn EnqueueMakeResident(this: *mut core::ffi::c_void, flags: D3D12_RESIDENCY_FLAGS, numobjects: u32, ppobjects: *const *mut core::ffi::c_void, pfencetosignal: *mut core::ffi::c_void, fencevaluetosignal: u64) -> windows_core::HRESULT - where - Identity: ID3D12Device3_Impl, - { + unsafe extern "system" fn EnqueueMakeResident(this: *mut core::ffi::c_void, flags: D3D12_RESIDENCY_FLAGS, numobjects: u32, ppobjects: *const *mut core::ffi::c_void, pfencetosignal: *mut core::ffi::c_void, fencevaluetosignal: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device3_Impl::EnqueueMakeResident(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&numobjects), core::mem::transmute_copy(&ppobjects), windows_core::from_raw_borrowed(&pfencetosignal), core::mem::transmute_copy(&fencevaluetosignal)).into() } @@ -1430,49 +1043,28 @@ pub trait ID3D12Device4_Impl: Sized + ID3D12Device3_Impl { impl windows_core::RuntimeName for ID3D12Device4 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device4_Vtbl { - pub const fn new() -> ID3D12Device4_Vtbl - where - Identity: ID3D12Device4_Impl, - { - unsafe extern "system" fn CreateCommandList1(this: *mut core::ffi::c_void, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS, riid: *const windows_core::GUID, ppcommandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device4_Impl, - { + pub const fn new() -> ID3D12Device4_Vtbl { + unsafe extern "system" fn CreateCommandList1(this: *mut core::ffi::c_void, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS, riid: *const windows_core::GUID, ppcommandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device4_Impl::CreateCommandList1(this, core::mem::transmute_copy(&nodemask), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppcommandlist)).into() } - unsafe extern "system" fn CreateProtectedResourceSession(this: *mut core::ffi::c_void, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC, riid: *const windows_core::GUID, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device4_Impl, - { + unsafe extern "system" fn CreateProtectedResourceSession(this: *mut core::ffi::c_void, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC, riid: *const windows_core::GUID, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device4_Impl::CreateProtectedResourceSession(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppsession)).into() } - unsafe extern "system" fn CreateCommittedResource1(this: *mut core::ffi::c_void, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, pprotectedsession: *mut core::ffi::c_void, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device4_Impl, - { + unsafe extern "system" fn CreateCommittedResource1(this: *mut core::ffi::c_void, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, pprotectedsession: *mut core::ffi::c_void, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device4_Impl::CreateCommittedResource1(this, core::mem::transmute_copy(&pheapproperties), core::mem::transmute_copy(&heapflags), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&initialresourcestate), core::mem::transmute_copy(&poptimizedclearvalue), windows_core::from_raw_borrowed(&pprotectedsession), core::mem::transmute_copy(&riidresource), core::mem::transmute_copy(&ppvresource)).into() } - unsafe extern "system" fn CreateHeap1(this: *mut core::ffi::c_void, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device4_Impl, - { + unsafe extern "system" fn CreateHeap1(this: *mut core::ffi::c_void, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device4_Impl::CreateHeap1(this, core::mem::transmute_copy(&pdesc), windows_core::from_raw_borrowed(&pprotectedsession), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvheap)).into() } - unsafe extern "system" fn CreateReservedResource1(this: *mut core::ffi::c_void, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, pprotectedsession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device4_Impl, - { + unsafe extern "system" fn CreateReservedResource1(this: *mut core::ffi::c_void, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, pprotectedsession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device4_Impl::CreateReservedResource1(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&initialstate), core::mem::transmute_copy(&poptimizedclearvalue), windows_core::from_raw_borrowed(&pprotectedsession), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvresource)).into() } - unsafe extern "system" fn GetResourceAllocationInfo1(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_ALLOCATION_INFO, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC, presourceallocationinfo1: *mut D3D12_RESOURCE_ALLOCATION_INFO1) - where - Identity: ID3D12Device4_Impl, - { + unsafe extern "system" fn GetResourceAllocationInfo1(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_ALLOCATION_INFO, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC, presourceallocationinfo1: *mut D3D12_RESOURCE_ALLOCATION_INFO1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12Device4_Impl::GetResourceAllocationInfo1(this, core::mem::transmute_copy(&visiblemask), core::mem::transmute_copy(&numresourcedescs), core::mem::transmute_copy(&presourcedescs), core::mem::transmute_copy(&presourceallocationinfo1)) } @@ -1505,63 +1097,36 @@ pub trait ID3D12Device5_Impl: Sized + ID3D12Device4_Impl { impl windows_core::RuntimeName for ID3D12Device5 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device5_Vtbl { - pub const fn new() -> ID3D12Device5_Vtbl - where - Identity: ID3D12Device5_Impl, - { - unsafe extern "system" fn CreateLifetimeTracker(this: *mut core::ffi::c_void, powner: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvtracker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device5_Impl, - { + pub const fn new() -> ID3D12Device5_Vtbl { + unsafe extern "system" fn CreateLifetimeTracker(this: *mut core::ffi::c_void, powner: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvtracker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device5_Impl::CreateLifetimeTracker(this, windows_core::from_raw_borrowed(&powner), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvtracker)).into() } - unsafe extern "system" fn RemoveDevice(this: *mut core::ffi::c_void) - where - Identity: ID3D12Device5_Impl, - { + unsafe extern "system" fn RemoveDevice(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device5_Impl::RemoveDevice(this) } - unsafe extern "system" fn EnumerateMetaCommands(this: *mut core::ffi::c_void, pnummetacommands: *mut u32, pdescs: *mut D3D12_META_COMMAND_DESC) -> windows_core::HRESULT - where - Identity: ID3D12Device5_Impl, - { + unsafe extern "system" fn EnumerateMetaCommands(this: *mut core::ffi::c_void, pnummetacommands: *mut u32, pdescs: *mut D3D12_META_COMMAND_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device5_Impl::EnumerateMetaCommands(this, core::mem::transmute_copy(&pnummetacommands), core::mem::transmute_copy(&pdescs)).into() } - unsafe extern "system" fn EnumerateMetaCommandParameters(this: *mut core::ffi::c_void, commandid: *const windows_core::GUID, stage: D3D12_META_COMMAND_PARAMETER_STAGE, ptotalstructuresizeinbytes: *mut u32, pparametercount: *mut u32, pparameterdescs: *mut D3D12_META_COMMAND_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D12Device5_Impl, - { + unsafe extern "system" fn EnumerateMetaCommandParameters(this: *mut core::ffi::c_void, commandid: *const windows_core::GUID, stage: D3D12_META_COMMAND_PARAMETER_STAGE, ptotalstructuresizeinbytes: *mut u32, pparametercount: *mut u32, pparameterdescs: *mut D3D12_META_COMMAND_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device5_Impl::EnumerateMetaCommandParameters(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&stage), core::mem::transmute_copy(&ptotalstructuresizeinbytes), core::mem::transmute_copy(&pparametercount), core::mem::transmute_copy(&pparameterdescs)).into() } - unsafe extern "system" fn CreateMetaCommand(this: *mut core::ffi::c_void, commandid: *const windows_core::GUID, nodemask: u32, pcreationparametersdata: *const core::ffi::c_void, creationparametersdatasizeinbytes: usize, riid: *const windows_core::GUID, ppmetacommand: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device5_Impl, - { + unsafe extern "system" fn CreateMetaCommand(this: *mut core::ffi::c_void, commandid: *const windows_core::GUID, nodemask: u32, pcreationparametersdata: *const core::ffi::c_void, creationparametersdatasizeinbytes: usize, riid: *const windows_core::GUID, ppmetacommand: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device5_Impl::CreateMetaCommand(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&nodemask), core::mem::transmute_copy(&pcreationparametersdata), core::mem::transmute_copy(&creationparametersdatasizeinbytes), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppmetacommand)).into() } - unsafe extern "system" fn CreateStateObject(this: *mut core::ffi::c_void, pdesc: *const D3D12_STATE_OBJECT_DESC, riid: *const windows_core::GUID, ppstateobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device5_Impl, - { + unsafe extern "system" fn CreateStateObject(this: *mut core::ffi::c_void, pdesc: *const D3D12_STATE_OBJECT_DESC, riid: *const windows_core::GUID, ppstateobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device5_Impl::CreateStateObject(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppstateobject)).into() } - unsafe extern "system" fn GetRaytracingAccelerationStructurePrebuildInfo(this: *mut core::ffi::c_void, pdesc: *const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS, pinfo: *mut D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO) - where - Identity: ID3D12Device5_Impl, - { + unsafe extern "system" fn GetRaytracingAccelerationStructurePrebuildInfo(this: *mut core::ffi::c_void, pdesc: *const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS, pinfo: *mut D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device5_Impl::GetRaytracingAccelerationStructurePrebuildInfo(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pinfo)) } - unsafe extern "system" fn CheckDriverMatchingIdentifier(this: *mut core::ffi::c_void, serializeddatatype: D3D12_SERIALIZED_DATA_TYPE, pidentifiertocheck: *const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER) -> D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS - where - Identity: ID3D12Device5_Impl, - { + unsafe extern "system" fn CheckDriverMatchingIdentifier(this: *mut core::ffi::c_void, serializeddatatype: D3D12_SERIALIZED_DATA_TYPE, pidentifiertocheck: *const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER) -> D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device5_Impl::CheckDriverMatchingIdentifier(this, core::mem::transmute_copy(&serializeddatatype), core::mem::transmute_copy(&pidentifiertocheck)) } @@ -1589,14 +1154,8 @@ pub trait ID3D12Device6_Impl: Sized + ID3D12Device5_Impl { impl windows_core::RuntimeName for ID3D12Device6 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device6_Vtbl { - pub const fn new() -> ID3D12Device6_Vtbl - where - Identity: ID3D12Device6_Impl, - { - unsafe extern "system" fn SetBackgroundProcessingMode(this: *mut core::ffi::c_void, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: super::super::Foundation::HANDLE, pbfurthermeasurementsdesired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D12Device6_Impl, - { + pub const fn new() -> ID3D12Device6_Vtbl { + unsafe extern "system" fn SetBackgroundProcessingMode(this: *mut core::ffi::c_void, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: super::super::Foundation::HANDLE, pbfurthermeasurementsdesired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device6_Impl::SetBackgroundProcessingMode(this, core::mem::transmute_copy(&mode), core::mem::transmute_copy(&measurementsaction), core::mem::transmute_copy(&heventtosignaluponcompletion), core::mem::transmute_copy(&pbfurthermeasurementsdesired)).into() } @@ -1615,21 +1174,12 @@ pub trait ID3D12Device7_Impl: Sized + ID3D12Device6_Impl { impl windows_core::RuntimeName for ID3D12Device7 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device7_Vtbl { - pub const fn new() -> ID3D12Device7_Vtbl - where - Identity: ID3D12Device7_Impl, - { - unsafe extern "system" fn AddToStateObject(this: *mut core::ffi::c_void, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppnewstateobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device7_Impl, - { + pub const fn new() -> ID3D12Device7_Vtbl { + unsafe extern "system" fn AddToStateObject(this: *mut core::ffi::c_void, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppnewstateobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device7_Impl::AddToStateObject(this, core::mem::transmute_copy(&paddition), windows_core::from_raw_borrowed(&pstateobjecttogrowfrom), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppnewstateobject)).into() } - unsafe extern "system" fn CreateProtectedResourceSession1(this: *mut core::ffi::c_void, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1, riid: *const windows_core::GUID, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device7_Impl, - { + unsafe extern "system" fn CreateProtectedResourceSession1(this: *mut core::ffi::c_void, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1, riid: *const windows_core::GUID, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device7_Impl::CreateProtectedResourceSession1(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppsession)).into() } @@ -1655,42 +1205,24 @@ pub trait ID3D12Device8_Impl: Sized + ID3D12Device7_Impl { impl windows_core::RuntimeName for ID3D12Device8 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device8_Vtbl { - pub const fn new() -> ID3D12Device8_Vtbl - where - Identity: ID3D12Device8_Impl, - { - unsafe extern "system" fn GetResourceAllocationInfo2(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_ALLOCATION_INFO, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC1, presourceallocationinfo1: *mut D3D12_RESOURCE_ALLOCATION_INFO1) - where - Identity: ID3D12Device8_Impl, - { + pub const fn new() -> ID3D12Device8_Vtbl { + unsafe extern "system" fn GetResourceAllocationInfo2(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_ALLOCATION_INFO, visiblemask: u32, numresourcedescs: u32, presourcedescs: *const D3D12_RESOURCE_DESC1, presourceallocationinfo1: *mut D3D12_RESOURCE_ALLOCATION_INFO1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12Device8_Impl::GetResourceAllocationInfo2(this, core::mem::transmute_copy(&visiblemask), core::mem::transmute_copy(&numresourcedescs), core::mem::transmute_copy(&presourcedescs), core::mem::transmute_copy(&presourceallocationinfo1)) } - unsafe extern "system" fn CreateCommittedResource2(this: *mut core::ffi::c_void, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, pprotectedsession: *mut core::ffi::c_void, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device8_Impl, - { + unsafe extern "system" fn CreateCommittedResource2(this: *mut core::ffi::c_void, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, pprotectedsession: *mut core::ffi::c_void, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device8_Impl::CreateCommittedResource2(this, core::mem::transmute_copy(&pheapproperties), core::mem::transmute_copy(&heapflags), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&initialresourcestate), core::mem::transmute_copy(&poptimizedclearvalue), windows_core::from_raw_borrowed(&pprotectedsession), core::mem::transmute_copy(&riidresource), core::mem::transmute_copy(&ppvresource)).into() } - unsafe extern "system" fn CreatePlacedResource1(this: *mut core::ffi::c_void, pheap: *mut core::ffi::c_void, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device8_Impl, - { + unsafe extern "system" fn CreatePlacedResource1(this: *mut core::ffi::c_void, pheap: *mut core::ffi::c_void, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: *const D3D12_CLEAR_VALUE, riid: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device8_Impl::CreatePlacedResource1(this, windows_core::from_raw_borrowed(&pheap), core::mem::transmute_copy(&heapoffset), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&initialstate), core::mem::transmute_copy(&poptimizedclearvalue), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvresource)).into() } - unsafe extern "system" fn CreateSamplerFeedbackUnorderedAccessView(this: *mut core::ffi::c_void, ptargetedresource: *mut core::ffi::c_void, pfeedbackresource: *mut core::ffi::c_void, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12Device8_Impl, - { + unsafe extern "system" fn CreateSamplerFeedbackUnorderedAccessView(this: *mut core::ffi::c_void, ptargetedresource: *mut core::ffi::c_void, pfeedbackresource: *mut core::ffi::c_void, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device8_Impl::CreateSamplerFeedbackUnorderedAccessView(this, windows_core::from_raw_borrowed(&ptargetedresource), windows_core::from_raw_borrowed(&pfeedbackresource), core::mem::transmute(&destdescriptor)) } - unsafe extern "system" fn GetCopyableFootprints1(this: *mut core::ffi::c_void, presourcedesc: *const D3D12_RESOURCE_DESC1, firstsubresource: u32, numsubresources: u32, baseoffset: u64, playouts: *mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT, pnumrows: *mut u32, prowsizeinbytes: *mut u64, ptotalbytes: *mut u64) - where - Identity: ID3D12Device8_Impl, - { + unsafe extern "system" fn GetCopyableFootprints1(this: *mut core::ffi::c_void, presourcedesc: *const D3D12_RESOURCE_DESC1, firstsubresource: u32, numsubresources: u32, baseoffset: u64, playouts: *mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT, pnumrows: *mut u32, prowsizeinbytes: *mut u64, ptotalbytes: *mut u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device8_Impl::GetCopyableFootprints1(this, core::mem::transmute_copy(&presourcedesc), core::mem::transmute_copy(&firstsubresource), core::mem::transmute_copy(&numsubresources), core::mem::transmute_copy(&baseoffset), core::mem::transmute_copy(&playouts), core::mem::transmute_copy(&pnumrows), core::mem::transmute_copy(&prowsizeinbytes), core::mem::transmute_copy(&ptotalbytes)) } @@ -1717,28 +1249,16 @@ pub trait ID3D12Device9_Impl: Sized + ID3D12Device8_Impl { impl windows_core::RuntimeName for ID3D12Device9 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device9_Vtbl { - pub const fn new() -> ID3D12Device9_Vtbl - where - Identity: ID3D12Device9_Impl, - { - unsafe extern "system" fn CreateShaderCacheSession(this: *mut core::ffi::c_void, pdesc: *const D3D12_SHADER_CACHE_SESSION_DESC, riid: *const windows_core::GUID, ppvsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device9_Impl, - { + pub const fn new() -> ID3D12Device9_Vtbl { + unsafe extern "system" fn CreateShaderCacheSession(this: *mut core::ffi::c_void, pdesc: *const D3D12_SHADER_CACHE_SESSION_DESC, riid: *const windows_core::GUID, ppvsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device9_Impl::CreateShaderCacheSession(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvsession)).into() } - unsafe extern "system" fn ShaderCacheControl(this: *mut core::ffi::c_void, kinds: D3D12_SHADER_CACHE_KIND_FLAGS, control: D3D12_SHADER_CACHE_CONTROL_FLAGS) -> windows_core::HRESULT - where - Identity: ID3D12Device9_Impl, - { + unsafe extern "system" fn ShaderCacheControl(this: *mut core::ffi::c_void, kinds: D3D12_SHADER_CACHE_KIND_FLAGS, control: D3D12_SHADER_CACHE_CONTROL_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device9_Impl::ShaderCacheControl(this, core::mem::transmute_copy(&kinds), core::mem::transmute_copy(&control)).into() } - unsafe extern "system" fn CreateCommandQueue1(this: *mut core::ffi::c_void, pdesc: *const D3D12_COMMAND_QUEUE_DESC, creatorid: *const windows_core::GUID, riid: *const windows_core::GUID, ppcommandqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Device9_Impl, - { + unsafe extern "system" fn CreateCommandQueue1(this: *mut core::ffi::c_void, pdesc: *const D3D12_COMMAND_QUEUE_DESC, creatorid: *const windows_core::GUID, riid: *const windows_core::GUID, ppcommandqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device9_Impl::CreateCommandQueue1(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&creatorid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppcommandqueue)).into() } @@ -1758,14 +1278,8 @@ pub trait ID3D12DeviceChild_Impl: Sized + ID3D12Object_Impl { } impl windows_core::RuntimeName for ID3D12DeviceChild {} impl ID3D12DeviceChild_Vtbl { - pub const fn new() -> ID3D12DeviceChild_Vtbl - where - Identity: ID3D12DeviceChild_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12DeviceChild_Impl, - { + pub const fn new() -> ID3D12DeviceChild_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceChild_Impl::GetDevice(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvdevice)).into() } @@ -1776,7 +1290,7 @@ impl ID3D12DeviceChild_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D")] -pub trait ID3D12DeviceConfiguration_Impl: Sized { +pub trait ID3D12DeviceConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn GetDesc(&self) -> D3D12_DEVICE_CONFIGURATION_DESC; fn GetEnabledExperimentalFeatures(&self, pguids: *mut windows_core::GUID, numguids: u32) -> windows_core::Result<()>; fn SerializeVersionedRootSignature(&self, pdesc: *const D3D12_VERSIONED_ROOT_SIGNATURE_DESC, ppresult: *mut Option, pperror: *mut Option) -> windows_core::Result<()>; @@ -1786,35 +1300,20 @@ pub trait ID3D12DeviceConfiguration_Impl: Sized { impl windows_core::RuntimeName for ID3D12DeviceConfiguration {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12DeviceConfiguration_Vtbl { - pub const fn new() -> ID3D12DeviceConfiguration_Vtbl - where - Identity: ID3D12DeviceConfiguration_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_DEVICE_CONFIGURATION_DESC) - where - Identity: ID3D12DeviceConfiguration_Impl, - { + pub const fn new() -> ID3D12DeviceConfiguration_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_DEVICE_CONFIGURATION_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12DeviceConfiguration_Impl::GetDesc(this) } - unsafe extern "system" fn GetEnabledExperimentalFeatures(this: *mut core::ffi::c_void, pguids: *mut windows_core::GUID, numguids: u32) -> windows_core::HRESULT - where - Identity: ID3D12DeviceConfiguration_Impl, - { + unsafe extern "system" fn GetEnabledExperimentalFeatures(this: *mut core::ffi::c_void, pguids: *mut windows_core::GUID, numguids: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceConfiguration_Impl::GetEnabledExperimentalFeatures(this, core::mem::transmute_copy(&pguids), core::mem::transmute_copy(&numguids)).into() } - unsafe extern "system" fn SerializeVersionedRootSignature(this: *mut core::ffi::c_void, pdesc: *const D3D12_VERSIONED_ROOT_SIGNATURE_DESC, ppresult: *mut *mut core::ffi::c_void, pperror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12DeviceConfiguration_Impl, - { + unsafe extern "system" fn SerializeVersionedRootSignature(this: *mut core::ffi::c_void, pdesc: *const D3D12_VERSIONED_ROOT_SIGNATURE_DESC, ppresult: *mut *mut core::ffi::c_void, pperror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceConfiguration_Impl::SerializeVersionedRootSignature(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppresult), core::mem::transmute_copy(&pperror)).into() } - unsafe extern "system" fn CreateVersionedRootSignatureDeserializer(this: *mut core::ffi::c_void, pblob: *const core::ffi::c_void, size: usize, riid: *const windows_core::GUID, ppvdeserializer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12DeviceConfiguration_Impl, - { + unsafe extern "system" fn CreateVersionedRootSignatureDeserializer(this: *mut core::ffi::c_void, pblob: *const core::ffi::c_void, size: usize, riid: *const windows_core::GUID, ppvdeserializer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceConfiguration_Impl::CreateVersionedRootSignatureDeserializer(this, core::mem::transmute_copy(&pblob), core::mem::transmute_copy(&size), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvdeserializer)).into() } @@ -1838,14 +1337,8 @@ pub trait ID3D12DeviceConfiguration1_Impl: Sized + ID3D12DeviceConfiguration_Imp impl windows_core::RuntimeName for ID3D12DeviceConfiguration1 {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12DeviceConfiguration1_Vtbl { - pub const fn new() -> ID3D12DeviceConfiguration1_Vtbl - where - Identity: ID3D12DeviceConfiguration1_Impl, - { - unsafe extern "system" fn CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(this: *mut core::ffi::c_void, plibraryblob: *const core::ffi::c_void, size: usize, rootsignaturesubobjectname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppvdeserializer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12DeviceConfiguration1_Impl, - { + pub const fn new() -> ID3D12DeviceConfiguration1_Vtbl { + unsafe extern "system" fn CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(this: *mut core::ffi::c_void, plibraryblob: *const core::ffi::c_void, size: usize, rootsignaturesubobjectname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppvdeserializer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceConfiguration1_Impl::CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(this, core::mem::transmute_copy(&plibraryblob), core::mem::transmute_copy(&size), core::mem::transmute(&rootsignaturesubobjectname), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvdeserializer)).into() } @@ -1859,7 +1352,7 @@ impl ID3D12DeviceConfiguration1_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D")] -pub trait ID3D12DeviceFactory_Impl: Sized { +pub trait ID3D12DeviceFactory_Impl: Sized + windows_core::IUnknownImpl { fn InitializeFromGlobalState(&self) -> windows_core::Result<()>; fn ApplyToGlobalState(&self) -> windows_core::Result<()>; fn SetFlags(&self, flags: D3D12_DEVICE_FACTORY_FLAGS) -> windows_core::Result<()>; @@ -1872,56 +1365,32 @@ pub trait ID3D12DeviceFactory_Impl: Sized { impl windows_core::RuntimeName for ID3D12DeviceFactory {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12DeviceFactory_Vtbl { - pub const fn new() -> ID3D12DeviceFactory_Vtbl - where - Identity: ID3D12DeviceFactory_Impl, - { - unsafe extern "system" fn InitializeFromGlobalState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12DeviceFactory_Impl, - { + pub const fn new() -> ID3D12DeviceFactory_Vtbl { + unsafe extern "system" fn InitializeFromGlobalState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceFactory_Impl::InitializeFromGlobalState(this).into() } - unsafe extern "system" fn ApplyToGlobalState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12DeviceFactory_Impl, - { + unsafe extern "system" fn ApplyToGlobalState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceFactory_Impl::ApplyToGlobalState(this).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: D3D12_DEVICE_FACTORY_FLAGS) -> windows_core::HRESULT - where - Identity: ID3D12DeviceFactory_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: D3D12_DEVICE_FACTORY_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceFactory_Impl::SetFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void) -> D3D12_DEVICE_FACTORY_FLAGS - where - Identity: ID3D12DeviceFactory_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void) -> D3D12_DEVICE_FACTORY_FLAGS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceFactory_Impl::GetFlags(this) } - unsafe extern "system" fn GetConfigurationInterface(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, iid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12DeviceFactory_Impl, - { + unsafe extern "system" fn GetConfigurationInterface(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, iid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceFactory_Impl::GetConfigurationInterface(this, core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn EnableExperimentalFeatures(this: *mut core::ffi::c_void, numfeatures: u32, piids: *const windows_core::GUID, pconfigurationstructs: *const core::ffi::c_void, pconfigurationstructsizes: *const u32) -> windows_core::HRESULT - where - Identity: ID3D12DeviceFactory_Impl, - { + unsafe extern "system" fn EnableExperimentalFeatures(this: *mut core::ffi::c_void, numfeatures: u32, piids: *const windows_core::GUID, pconfigurationstructs: *const core::ffi::c_void, pconfigurationstructsizes: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceFactory_Impl::EnableExperimentalFeatures(this, core::mem::transmute_copy(&numfeatures), core::mem::transmute_copy(&piids), core::mem::transmute_copy(&pconfigurationstructs), core::mem::transmute_copy(&pconfigurationstructsizes)).into() } - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, adapter: *mut core::ffi::c_void, featurelevel: super::Direct3D::D3D_FEATURE_LEVEL, riid: *const windows_core::GUID, ppvdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12DeviceFactory_Impl, - { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, adapter: *mut core::ffi::c_void, featurelevel: super::Direct3D::D3D_FEATURE_LEVEL, riid: *const windows_core::GUID, ppvdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceFactory_Impl::CreateDevice(this, windows_core::from_raw_borrowed(&adapter), core::mem::transmute_copy(&featurelevel), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvdevice)).into() } @@ -1940,20 +1409,14 @@ impl ID3D12DeviceFactory_Vtbl { iid == &::IID } } -pub trait ID3D12DeviceRemovedExtendedData_Impl: Sized { +pub trait ID3D12DeviceRemovedExtendedData_Impl: Sized + windows_core::IUnknownImpl { fn GetAutoBreadcrumbsOutput(&self) -> windows_core::Result; fn GetPageFaultAllocationOutput(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ID3D12DeviceRemovedExtendedData {} impl ID3D12DeviceRemovedExtendedData_Vtbl { - pub const fn new() -> ID3D12DeviceRemovedExtendedData_Vtbl - where - Identity: ID3D12DeviceRemovedExtendedData_Impl, - { - unsafe extern "system" fn GetAutoBreadcrumbsOutput(this: *mut core::ffi::c_void, poutput: *mut D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT) -> windows_core::HRESULT - where - Identity: ID3D12DeviceRemovedExtendedData_Impl, - { + pub const fn new() -> ID3D12DeviceRemovedExtendedData_Vtbl { + unsafe extern "system" fn GetAutoBreadcrumbsOutput(this: *mut core::ffi::c_void, poutput: *mut D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12DeviceRemovedExtendedData_Impl::GetAutoBreadcrumbsOutput(this) { Ok(ok__) => { @@ -1963,10 +1426,7 @@ impl ID3D12DeviceRemovedExtendedData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPageFaultAllocationOutput(this: *mut core::ffi::c_void, poutput: *mut D3D12_DRED_PAGE_FAULT_OUTPUT) -> windows_core::HRESULT - where - Identity: ID3D12DeviceRemovedExtendedData_Impl, - { + unsafe extern "system" fn GetPageFaultAllocationOutput(this: *mut core::ffi::c_void, poutput: *mut D3D12_DRED_PAGE_FAULT_OUTPUT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12DeviceRemovedExtendedData_Impl::GetPageFaultAllocationOutput(this) { Ok(ok__) => { @@ -1992,14 +1452,8 @@ pub trait ID3D12DeviceRemovedExtendedData1_Impl: Sized + ID3D12DeviceRemovedExte } impl windows_core::RuntimeName for ID3D12DeviceRemovedExtendedData1 {} impl ID3D12DeviceRemovedExtendedData1_Vtbl { - pub const fn new() -> ID3D12DeviceRemovedExtendedData1_Vtbl - where - Identity: ID3D12DeviceRemovedExtendedData1_Impl, - { - unsafe extern "system" fn GetAutoBreadcrumbsOutput1(this: *mut core::ffi::c_void, poutput: *mut D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1) -> windows_core::HRESULT - where - Identity: ID3D12DeviceRemovedExtendedData1_Impl, - { + pub const fn new() -> ID3D12DeviceRemovedExtendedData1_Vtbl { + unsafe extern "system" fn GetAutoBreadcrumbsOutput1(this: *mut core::ffi::c_void, poutput: *mut D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12DeviceRemovedExtendedData1_Impl::GetAutoBreadcrumbsOutput1(this) { Ok(ok__) => { @@ -2009,10 +1463,7 @@ impl ID3D12DeviceRemovedExtendedData1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPageFaultAllocationOutput1(this: *mut core::ffi::c_void, poutput: *mut D3D12_DRED_PAGE_FAULT_OUTPUT1) -> windows_core::HRESULT - where - Identity: ID3D12DeviceRemovedExtendedData1_Impl, - { + unsafe extern "system" fn GetPageFaultAllocationOutput1(this: *mut core::ffi::c_void, poutput: *mut D3D12_DRED_PAGE_FAULT_OUTPUT1) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12DeviceRemovedExtendedData1_Impl::GetPageFaultAllocationOutput1(this) { Ok(ok__) => { @@ -2038,21 +1489,12 @@ pub trait ID3D12DeviceRemovedExtendedData2_Impl: Sized + ID3D12DeviceRemovedExte } impl windows_core::RuntimeName for ID3D12DeviceRemovedExtendedData2 {} impl ID3D12DeviceRemovedExtendedData2_Vtbl { - pub const fn new() -> ID3D12DeviceRemovedExtendedData2_Vtbl - where - Identity: ID3D12DeviceRemovedExtendedData2_Impl, - { - unsafe extern "system" fn GetPageFaultAllocationOutput2(this: *mut core::ffi::c_void, poutput: *mut D3D12_DRED_PAGE_FAULT_OUTPUT2) -> windows_core::HRESULT - where - Identity: ID3D12DeviceRemovedExtendedData2_Impl, - { + pub const fn new() -> ID3D12DeviceRemovedExtendedData2_Vtbl { + unsafe extern "system" fn GetPageFaultAllocationOutput2(this: *mut core::ffi::c_void, poutput: *mut D3D12_DRED_PAGE_FAULT_OUTPUT2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceRemovedExtendedData2_Impl::GetPageFaultAllocationOutput2(this, core::mem::transmute_copy(&poutput)).into() } - unsafe extern "system" fn GetDeviceState(this: *mut core::ffi::c_void) -> D3D12_DRED_DEVICE_STATE - where - Identity: ID3D12DeviceRemovedExtendedData2_Impl, - { + unsafe extern "system" fn GetDeviceState(this: *mut core::ffi::c_void) -> D3D12_DRED_DEVICE_STATE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceRemovedExtendedData2_Impl::GetDeviceState(this) } @@ -2066,35 +1508,23 @@ impl ID3D12DeviceRemovedExtendedData2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D12DeviceRemovedExtendedDataSettings_Impl: Sized { +pub trait ID3D12DeviceRemovedExtendedDataSettings_Impl: Sized + windows_core::IUnknownImpl { fn SetAutoBreadcrumbsEnablement(&self, enablement: D3D12_DRED_ENABLEMENT); fn SetPageFaultEnablement(&self, enablement: D3D12_DRED_ENABLEMENT); fn SetWatsonDumpEnablement(&self, enablement: D3D12_DRED_ENABLEMENT); } impl windows_core::RuntimeName for ID3D12DeviceRemovedExtendedDataSettings {} impl ID3D12DeviceRemovedExtendedDataSettings_Vtbl { - pub const fn new() -> ID3D12DeviceRemovedExtendedDataSettings_Vtbl - where - Identity: ID3D12DeviceRemovedExtendedDataSettings_Impl, - { - unsafe extern "system" fn SetAutoBreadcrumbsEnablement(this: *mut core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT) - where - Identity: ID3D12DeviceRemovedExtendedDataSettings_Impl, - { + pub const fn new() -> ID3D12DeviceRemovedExtendedDataSettings_Vtbl { + unsafe extern "system" fn SetAutoBreadcrumbsEnablement(this: *mut core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceRemovedExtendedDataSettings_Impl::SetAutoBreadcrumbsEnablement(this, core::mem::transmute_copy(&enablement)) } - unsafe extern "system" fn SetPageFaultEnablement(this: *mut core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT) - where - Identity: ID3D12DeviceRemovedExtendedDataSettings_Impl, - { + unsafe extern "system" fn SetPageFaultEnablement(this: *mut core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceRemovedExtendedDataSettings_Impl::SetPageFaultEnablement(this, core::mem::transmute_copy(&enablement)) } - unsafe extern "system" fn SetWatsonDumpEnablement(this: *mut core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT) - where - Identity: ID3D12DeviceRemovedExtendedDataSettings_Impl, - { + unsafe extern "system" fn SetWatsonDumpEnablement(this: *mut core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceRemovedExtendedDataSettings_Impl::SetWatsonDumpEnablement(this, core::mem::transmute_copy(&enablement)) } @@ -2114,14 +1544,8 @@ pub trait ID3D12DeviceRemovedExtendedDataSettings1_Impl: Sized + ID3D12DeviceRem } impl windows_core::RuntimeName for ID3D12DeviceRemovedExtendedDataSettings1 {} impl ID3D12DeviceRemovedExtendedDataSettings1_Vtbl { - pub const fn new() -> ID3D12DeviceRemovedExtendedDataSettings1_Vtbl - where - Identity: ID3D12DeviceRemovedExtendedDataSettings1_Impl, - { - unsafe extern "system" fn SetBreadcrumbContextEnablement(this: *mut core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT) - where - Identity: ID3D12DeviceRemovedExtendedDataSettings1_Impl, - { + pub const fn new() -> ID3D12DeviceRemovedExtendedDataSettings1_Vtbl { + unsafe extern "system" fn SetBreadcrumbContextEnablement(this: *mut core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceRemovedExtendedDataSettings1_Impl::SetBreadcrumbContextEnablement(this, core::mem::transmute_copy(&enablement)) } @@ -2139,14 +1563,8 @@ pub trait ID3D12DeviceRemovedExtendedDataSettings2_Impl: Sized + ID3D12DeviceRem } impl windows_core::RuntimeName for ID3D12DeviceRemovedExtendedDataSettings2 {} impl ID3D12DeviceRemovedExtendedDataSettings2_Vtbl { - pub const fn new() -> ID3D12DeviceRemovedExtendedDataSettings2_Vtbl - where - Identity: ID3D12DeviceRemovedExtendedDataSettings2_Impl, - { - unsafe extern "system" fn UseMarkersOnlyAutoBreadcrumbs(this: *mut core::ffi::c_void, markersonly: super::super::Foundation::BOOL) - where - Identity: ID3D12DeviceRemovedExtendedDataSettings2_Impl, - { + pub const fn new() -> ID3D12DeviceRemovedExtendedDataSettings2_Vtbl { + unsafe extern "system" fn UseMarkersOnlyAutoBreadcrumbs(this: *mut core::ffi::c_void, markersonly: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceRemovedExtendedDataSettings2_Impl::UseMarkersOnlyAutoBreadcrumbs(this, core::mem::transmute_copy(&markersonly)) } @@ -2166,28 +1584,16 @@ pub trait ID3D12Fence_Impl: Sized + ID3D12Pageable_Impl { } impl windows_core::RuntimeName for ID3D12Fence {} impl ID3D12Fence_Vtbl { - pub const fn new() -> ID3D12Fence_Vtbl - where - Identity: ID3D12Fence_Impl, - { - unsafe extern "system" fn GetCompletedValue(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D12Fence_Impl, - { + pub const fn new() -> ID3D12Fence_Vtbl { + unsafe extern "system" fn GetCompletedValue(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Fence_Impl::GetCompletedValue(this) } - unsafe extern "system" fn SetEventOnCompletion(this: *mut core::ffi::c_void, value: u64, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ID3D12Fence_Impl, - { + unsafe extern "system" fn SetEventOnCompletion(this: *mut core::ffi::c_void, value: u64, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Fence_Impl::SetEventOnCompletion(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn Signal(this: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT - where - Identity: ID3D12Fence_Impl, - { + unsafe extern "system" fn Signal(this: *mut core::ffi::c_void, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Fence_Impl::Signal(this, core::mem::transmute_copy(&value)).into() } @@ -2207,14 +1613,8 @@ pub trait ID3D12Fence1_Impl: Sized + ID3D12Fence_Impl { } impl windows_core::RuntimeName for ID3D12Fence1 {} impl ID3D12Fence1_Vtbl { - pub const fn new() -> ID3D12Fence1_Vtbl - where - Identity: ID3D12Fence1_Impl, - { - unsafe extern "system" fn GetCreationFlags(this: *mut core::ffi::c_void) -> D3D12_FENCE_FLAGS - where - Identity: ID3D12Fence1_Impl, - { + pub const fn new() -> ID3D12Fence1_Vtbl { + unsafe extern "system" fn GetCreationFlags(this: *mut core::ffi::c_void) -> D3D12_FENCE_FLAGS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Fence1_Impl::GetCreationFlags(this) } @@ -2329,7 +1729,7 @@ impl ID3D12FunctionReflection { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait ID3D12GBVDiagnostics_Impl: Sized { +pub trait ID3D12GBVDiagnostics_Impl: Sized + windows_core::IUnknownImpl { fn GetGBVEntireSubresourceStatesData(&self, presource: Option<&ID3D12Resource>, pdata: *mut i32, datasize: u32) -> windows_core::Result<()>; fn GetGBVSubresourceState(&self, presource: Option<&ID3D12Resource>, subresource: u32) -> windows_core::Result; fn GetGBVResourceUniformState(&self, presource: Option<&ID3D12Resource>) -> windows_core::Result; @@ -2341,21 +1741,12 @@ pub trait ID3D12GBVDiagnostics_Impl: Sized { impl windows_core::RuntimeName for ID3D12GBVDiagnostics {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D12GBVDiagnostics_Vtbl { - pub const fn new() -> ID3D12GBVDiagnostics_Vtbl - where - Identity: ID3D12GBVDiagnostics_Impl, - { - unsafe extern "system" fn GetGBVEntireSubresourceStatesData(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdata: *mut i32, datasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12GBVDiagnostics_Impl, - { + pub const fn new() -> ID3D12GBVDiagnostics_Vtbl { + unsafe extern "system" fn GetGBVEntireSubresourceStatesData(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdata: *mut i32, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GBVDiagnostics_Impl::GetGBVEntireSubresourceStatesData(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn GetGBVSubresourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, pdata: *mut i32) -> windows_core::HRESULT - where - Identity: ID3D12GBVDiagnostics_Impl, - { + unsafe extern "system" fn GetGBVSubresourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, pdata: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12GBVDiagnostics_Impl::GetGBVSubresourceState(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource)) { Ok(ok__) => { @@ -2365,10 +1756,7 @@ impl ID3D12GBVDiagnostics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGBVResourceUniformState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdata: *mut i32) -> windows_core::HRESULT - where - Identity: ID3D12GBVDiagnostics_Impl, - { + unsafe extern "system" fn GetGBVResourceUniformState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pdata: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12GBVDiagnostics_Impl::GetGBVResourceUniformState(this, windows_core::from_raw_borrowed(&presource)) { Ok(ok__) => { @@ -2378,24 +1766,15 @@ impl ID3D12GBVDiagnostics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGBVResourceInfo(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, presourcedesc: *const D3D12_RESOURCE_DESC, presourcehash: *const u32, psubresourcestatesbyteoffset: *const u32) -> windows_core::HRESULT - where - Identity: ID3D12GBVDiagnostics_Impl, - { + unsafe extern "system" fn GetGBVResourceInfo(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, presourcedesc: *const D3D12_RESOURCE_DESC, presourcehash: *const u32, psubresourcestatesbyteoffset: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GBVDiagnostics_Impl::GetGBVResourceInfo(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&presourcedesc), core::mem::transmute_copy(&presourcehash), core::mem::transmute_copy(&psubresourcestatesbyteoffset)).into() } - unsafe extern "system" fn GBVReserved0(this: *mut core::ffi::c_void) - where - Identity: ID3D12GBVDiagnostics_Impl, - { + unsafe extern "system" fn GBVReserved0(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GBVDiagnostics_Impl::GBVReserved0(this) } - unsafe extern "system" fn GBVReserved1(this: *mut core::ffi::c_void) - where - Identity: ID3D12GBVDiagnostics_Impl, - { + unsafe extern "system" fn GBVReserved1(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GBVDiagnostics_Impl::GBVReserved1(this) } @@ -2471,364 +1850,208 @@ pub trait ID3D12GraphicsCommandList_Impl: Sized + ID3D12CommandList_Impl { impl windows_core::RuntimeName for ID3D12GraphicsCommandList {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList_Vtbl - where - Identity: ID3D12GraphicsCommandList_Impl, - { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12GraphicsCommandList_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList_Vtbl { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::Close(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void, pinitialstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void, pinitialstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::Reset(this, windows_core::from_raw_borrowed(&pallocator), windows_core::from_raw_borrowed(&pinitialstate)).into() } - unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void, ppipelinestate: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void, ppipelinestate: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::ClearState(this, windows_core::from_raw_borrowed(&ppipelinestate)) } - unsafe extern "system" fn DrawInstanced(this: *mut core::ffi::c_void, vertexcountperinstance: u32, instancecount: u32, startvertexlocation: u32, startinstancelocation: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn DrawInstanced(this: *mut core::ffi::c_void, vertexcountperinstance: u32, instancecount: u32, startvertexlocation: u32, startinstancelocation: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::DrawInstanced(this, core::mem::transmute_copy(&vertexcountperinstance), core::mem::transmute_copy(&instancecount), core::mem::transmute_copy(&startvertexlocation), core::mem::transmute_copy(&startinstancelocation)) } - unsafe extern "system" fn DrawIndexedInstanced(this: *mut core::ffi::c_void, indexcountperinstance: u32, instancecount: u32, startindexlocation: u32, basevertexlocation: i32, startinstancelocation: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn DrawIndexedInstanced(this: *mut core::ffi::c_void, indexcountperinstance: u32, instancecount: u32, startindexlocation: u32, basevertexlocation: i32, startinstancelocation: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::DrawIndexedInstanced(this, core::mem::transmute_copy(&indexcountperinstance), core::mem::transmute_copy(&instancecount), core::mem::transmute_copy(&startindexlocation), core::mem::transmute_copy(&basevertexlocation), core::mem::transmute_copy(&startinstancelocation)) } - unsafe extern "system" fn Dispatch(this: *mut core::ffi::c_void, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn Dispatch(this: *mut core::ffi::c_void, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::Dispatch(this, core::mem::transmute_copy(&threadgroupcountx), core::mem::transmute_copy(&threadgroupcounty), core::mem::transmute_copy(&threadgroupcountz)) } - unsafe extern "system" fn CopyBufferRegion(this: *mut core::ffi::c_void, pdstbuffer: *mut core::ffi::c_void, dstoffset: u64, psrcbuffer: *mut core::ffi::c_void, srcoffset: u64, numbytes: u64) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn CopyBufferRegion(this: *mut core::ffi::c_void, pdstbuffer: *mut core::ffi::c_void, dstoffset: u64, psrcbuffer: *mut core::ffi::c_void, srcoffset: u64, numbytes: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::CopyBufferRegion(this, windows_core::from_raw_borrowed(&pdstbuffer), core::mem::transmute_copy(&dstoffset), windows_core::from_raw_borrowed(&psrcbuffer), core::mem::transmute_copy(&srcoffset), core::mem::transmute_copy(&numbytes)) } - unsafe extern "system" fn CopyTextureRegion(this: *mut core::ffi::c_void, pdst: *const D3D12_TEXTURE_COPY_LOCATION, dstx: u32, dsty: u32, dstz: u32, psrc: *const D3D12_TEXTURE_COPY_LOCATION, psrcbox: *const D3D12_BOX) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn CopyTextureRegion(this: *mut core::ffi::c_void, pdst: *const D3D12_TEXTURE_COPY_LOCATION, dstx: u32, dsty: u32, dstz: u32, psrc: *const D3D12_TEXTURE_COPY_LOCATION, psrcbox: *const D3D12_BOX) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::CopyTextureRegion(this, core::mem::transmute_copy(&pdst), core::mem::transmute_copy(&dstx), core::mem::transmute_copy(&dsty), core::mem::transmute_copy(&dstz), core::mem::transmute_copy(&psrc), core::mem::transmute_copy(&psrcbox)) } - unsafe extern "system" fn CopyResource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, psrcresource: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn CopyResource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, psrcresource: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::CopyResource(this, windows_core::from_raw_borrowed(&pdstresource), windows_core::from_raw_borrowed(&psrcresource)) } - unsafe extern "system" fn CopyTiles(this: *mut core::ffi::c_void, ptiledresource: *mut core::ffi::c_void, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: *mut core::ffi::c_void, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn CopyTiles(this: *mut core::ffi::c_void, ptiledresource: *mut core::ffi::c_void, ptileregionstartcoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, ptileregionsize: *const D3D12_TILE_REGION_SIZE, pbuffer: *mut core::ffi::c_void, bufferstartoffsetinbytes: u64, flags: D3D12_TILE_COPY_FLAGS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::CopyTiles(this, windows_core::from_raw_borrowed(&ptiledresource), core::mem::transmute_copy(&ptileregionstartcoordinate), core::mem::transmute_copy(&ptileregionsize), windows_core::from_raw_borrowed(&pbuffer), core::mem::transmute_copy(&bufferstartoffsetinbytes), core::mem::transmute_copy(&flags)) } - unsafe extern "system" fn ResolveSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn ResolveSubresource(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::ResolveSubresource(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), windows_core::from_raw_borrowed(&psrcresource), core::mem::transmute_copy(&srcsubresource), core::mem::transmute_copy(&format)) } - unsafe extern "system" fn IASetPrimitiveTopology(this: *mut core::ffi::c_void, primitivetopology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn IASetPrimitiveTopology(this: *mut core::ffi::c_void, primitivetopology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::IASetPrimitiveTopology(this, core::mem::transmute_copy(&primitivetopology)) } - unsafe extern "system" fn RSSetViewports(this: *mut core::ffi::c_void, numviewports: u32, pviewports: *const D3D12_VIEWPORT) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn RSSetViewports(this: *mut core::ffi::c_void, numviewports: u32, pviewports: *const D3D12_VIEWPORT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::RSSetViewports(this, core::mem::transmute_copy(&numviewports), core::mem::transmute_copy(&pviewports)) } - unsafe extern "system" fn RSSetScissorRects(this: *mut core::ffi::c_void, numrects: u32, prects: *const super::super::Foundation::RECT) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn RSSetScissorRects(this: *mut core::ffi::c_void, numrects: u32, prects: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::RSSetScissorRects(this, core::mem::transmute_copy(&numrects), core::mem::transmute_copy(&prects)) } - unsafe extern "system" fn OMSetBlendFactor(this: *mut core::ffi::c_void, blendfactor: *const f32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn OMSetBlendFactor(this: *mut core::ffi::c_void, blendfactor: *const f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::OMSetBlendFactor(this, core::mem::transmute_copy(&blendfactor)) } - unsafe extern "system" fn OMSetStencilRef(this: *mut core::ffi::c_void, stencilref: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn OMSetStencilRef(this: *mut core::ffi::c_void, stencilref: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::OMSetStencilRef(this, core::mem::transmute_copy(&stencilref)) } - unsafe extern "system" fn SetPipelineState(this: *mut core::ffi::c_void, ppipelinestate: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetPipelineState(this: *mut core::ffi::c_void, ppipelinestate: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetPipelineState(this, windows_core::from_raw_borrowed(&ppipelinestate)) } - unsafe extern "system" fn ResourceBarrier(this: *mut core::ffi::c_void, numbarriers: u32, pbarriers: *const D3D12_RESOURCE_BARRIER) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn ResourceBarrier(this: *mut core::ffi::c_void, numbarriers: u32, pbarriers: *const D3D12_RESOURCE_BARRIER) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::ResourceBarrier(this, core::mem::transmute_copy(&numbarriers), core::mem::transmute_copy(&pbarriers)) } - unsafe extern "system" fn ExecuteBundle(this: *mut core::ffi::c_void, pcommandlist: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn ExecuteBundle(this: *mut core::ffi::c_void, pcommandlist: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::ExecuteBundle(this, windows_core::from_raw_borrowed(&pcommandlist)) } - unsafe extern "system" fn SetDescriptorHeaps(this: *mut core::ffi::c_void, numdescriptorheaps: u32, ppdescriptorheaps: *const *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetDescriptorHeaps(this: *mut core::ffi::c_void, numdescriptorheaps: u32, ppdescriptorheaps: *const *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetDescriptorHeaps(this, core::mem::transmute_copy(&numdescriptorheaps), core::mem::transmute_copy(&ppdescriptorheaps)) } - unsafe extern "system" fn SetComputeRootSignature(this: *mut core::ffi::c_void, prootsignature: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetComputeRootSignature(this: *mut core::ffi::c_void, prootsignature: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetComputeRootSignature(this, windows_core::from_raw_borrowed(&prootsignature)) } - unsafe extern "system" fn SetGraphicsRootSignature(this: *mut core::ffi::c_void, prootsignature: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetGraphicsRootSignature(this: *mut core::ffi::c_void, prootsignature: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetGraphicsRootSignature(this, windows_core::from_raw_borrowed(&prootsignature)) } - unsafe extern "system" fn SetComputeRootDescriptorTable(this: *mut core::ffi::c_void, rootparameterindex: u32, basedescriptor: D3D12_GPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetComputeRootDescriptorTable(this: *mut core::ffi::c_void, rootparameterindex: u32, basedescriptor: D3D12_GPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetComputeRootDescriptorTable(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute(&basedescriptor)) } - unsafe extern "system" fn SetGraphicsRootDescriptorTable(this: *mut core::ffi::c_void, rootparameterindex: u32, basedescriptor: D3D12_GPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetGraphicsRootDescriptorTable(this: *mut core::ffi::c_void, rootparameterindex: u32, basedescriptor: D3D12_GPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetGraphicsRootDescriptorTable(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute(&basedescriptor)) } - unsafe extern "system" fn SetComputeRoot32BitConstant(this: *mut core::ffi::c_void, rootparameterindex: u32, srcdata: u32, destoffsetin32bitvalues: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetComputeRoot32BitConstant(this: *mut core::ffi::c_void, rootparameterindex: u32, srcdata: u32, destoffsetin32bitvalues: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetComputeRoot32BitConstant(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute_copy(&srcdata), core::mem::transmute_copy(&destoffsetin32bitvalues)) } - unsafe extern "system" fn SetGraphicsRoot32BitConstant(this: *mut core::ffi::c_void, rootparameterindex: u32, srcdata: u32, destoffsetin32bitvalues: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetGraphicsRoot32BitConstant(this: *mut core::ffi::c_void, rootparameterindex: u32, srcdata: u32, destoffsetin32bitvalues: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetGraphicsRoot32BitConstant(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute_copy(&srcdata), core::mem::transmute_copy(&destoffsetin32bitvalues)) } - unsafe extern "system" fn SetComputeRoot32BitConstants(this: *mut core::ffi::c_void, rootparameterindex: u32, num32bitvaluestoset: u32, psrcdata: *const core::ffi::c_void, destoffsetin32bitvalues: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetComputeRoot32BitConstants(this: *mut core::ffi::c_void, rootparameterindex: u32, num32bitvaluestoset: u32, psrcdata: *const core::ffi::c_void, destoffsetin32bitvalues: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetComputeRoot32BitConstants(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute_copy(&num32bitvaluestoset), core::mem::transmute_copy(&psrcdata), core::mem::transmute_copy(&destoffsetin32bitvalues)) } - unsafe extern "system" fn SetGraphicsRoot32BitConstants(this: *mut core::ffi::c_void, rootparameterindex: u32, num32bitvaluestoset: u32, psrcdata: *const core::ffi::c_void, destoffsetin32bitvalues: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetGraphicsRoot32BitConstants(this: *mut core::ffi::c_void, rootparameterindex: u32, num32bitvaluestoset: u32, psrcdata: *const core::ffi::c_void, destoffsetin32bitvalues: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetGraphicsRoot32BitConstants(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute_copy(&num32bitvaluestoset), core::mem::transmute_copy(&psrcdata), core::mem::transmute_copy(&destoffsetin32bitvalues)) } - unsafe extern "system" fn SetComputeRootConstantBufferView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetComputeRootConstantBufferView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetComputeRootConstantBufferView(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute_copy(&bufferlocation)) } - unsafe extern "system" fn SetGraphicsRootConstantBufferView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetGraphicsRootConstantBufferView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetGraphicsRootConstantBufferView(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute_copy(&bufferlocation)) } - unsafe extern "system" fn SetComputeRootShaderResourceView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetComputeRootShaderResourceView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetComputeRootShaderResourceView(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute_copy(&bufferlocation)) } - unsafe extern "system" fn SetGraphicsRootShaderResourceView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetGraphicsRootShaderResourceView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetGraphicsRootShaderResourceView(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute_copy(&bufferlocation)) } - unsafe extern "system" fn SetComputeRootUnorderedAccessView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetComputeRootUnorderedAccessView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetComputeRootUnorderedAccessView(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute_copy(&bufferlocation)) } - unsafe extern "system" fn SetGraphicsRootUnorderedAccessView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetGraphicsRootUnorderedAccessView(this: *mut core::ffi::c_void, rootparameterindex: u32, bufferlocation: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetGraphicsRootUnorderedAccessView(this, core::mem::transmute_copy(&rootparameterindex), core::mem::transmute_copy(&bufferlocation)) } - unsafe extern "system" fn IASetIndexBuffer(this: *mut core::ffi::c_void, pview: *const D3D12_INDEX_BUFFER_VIEW) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn IASetIndexBuffer(this: *mut core::ffi::c_void, pview: *const D3D12_INDEX_BUFFER_VIEW) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::IASetIndexBuffer(this, core::mem::transmute_copy(&pview)) } - unsafe extern "system" fn IASetVertexBuffers(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, pviews: *const D3D12_VERTEX_BUFFER_VIEW) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn IASetVertexBuffers(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, pviews: *const D3D12_VERTEX_BUFFER_VIEW) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::IASetVertexBuffers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&pviews)) } - unsafe extern "system" fn SOSetTargets(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, pviews: *const D3D12_STREAM_OUTPUT_BUFFER_VIEW) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SOSetTargets(this: *mut core::ffi::c_void, startslot: u32, numviews: u32, pviews: *const D3D12_STREAM_OUTPUT_BUFFER_VIEW) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SOSetTargets(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&pviews)) } - unsafe extern "system" fn OMSetRenderTargets(this: *mut core::ffi::c_void, numrendertargetdescriptors: u32, prendertargetdescriptors: *const D3D12_CPU_DESCRIPTOR_HANDLE, rtssinglehandletodescriptorrange: super::super::Foundation::BOOL, pdepthstencildescriptor: *const D3D12_CPU_DESCRIPTOR_HANDLE) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn OMSetRenderTargets(this: *mut core::ffi::c_void, numrendertargetdescriptors: u32, prendertargetdescriptors: *const D3D12_CPU_DESCRIPTOR_HANDLE, rtssinglehandletodescriptorrange: super::super::Foundation::BOOL, pdepthstencildescriptor: *const D3D12_CPU_DESCRIPTOR_HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::OMSetRenderTargets(this, core::mem::transmute_copy(&numrendertargetdescriptors), core::mem::transmute_copy(&prendertargetdescriptors), core::mem::transmute_copy(&rtssinglehandletodescriptorrange), core::mem::transmute_copy(&pdepthstencildescriptor)) } - unsafe extern "system" fn ClearDepthStencilView(this: *mut core::ffi::c_void, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, numrects: u32, prects: *const super::super::Foundation::RECT) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn ClearDepthStencilView(this: *mut core::ffi::c_void, depthstencilview: D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, numrects: u32, prects: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::ClearDepthStencilView(this, core::mem::transmute(&depthstencilview), core::mem::transmute_copy(&clearflags), core::mem::transmute_copy(&depth), core::mem::transmute_copy(&stencil), core::mem::transmute_copy(&numrects), core::mem::transmute_copy(&prects)) } - unsafe extern "system" fn ClearRenderTargetView(this: *mut core::ffi::c_void, rendertargetview: D3D12_CPU_DESCRIPTOR_HANDLE, colorrgba: *const f32, numrects: u32, prects: *const super::super::Foundation::RECT) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn ClearRenderTargetView(this: *mut core::ffi::c_void, rendertargetview: D3D12_CPU_DESCRIPTOR_HANDLE, colorrgba: *const f32, numrects: u32, prects: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::ClearRenderTargetView(this, core::mem::transmute(&rendertargetview), core::mem::transmute_copy(&colorrgba), core::mem::transmute_copy(&numrects), core::mem::transmute_copy(&prects)) } - unsafe extern "system" fn ClearUnorderedAccessViewUint(this: *mut core::ffi::c_void, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: *mut core::ffi::c_void, values: *const u32, numrects: u32, prects: *const super::super::Foundation::RECT) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn ClearUnorderedAccessViewUint(this: *mut core::ffi::c_void, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: *mut core::ffi::c_void, values: *const u32, numrects: u32, prects: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::ClearUnorderedAccessViewUint(this, core::mem::transmute(&viewgpuhandleincurrentheap), core::mem::transmute(&viewcpuhandle), windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&values), core::mem::transmute_copy(&numrects), core::mem::transmute_copy(&prects)) } - unsafe extern "system" fn ClearUnorderedAccessViewFloat(this: *mut core::ffi::c_void, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: *mut core::ffi::c_void, values: *const f32, numrects: u32, prects: *const super::super::Foundation::RECT) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn ClearUnorderedAccessViewFloat(this: *mut core::ffi::c_void, viewgpuhandleincurrentheap: D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: D3D12_CPU_DESCRIPTOR_HANDLE, presource: *mut core::ffi::c_void, values: *const f32, numrects: u32, prects: *const super::super::Foundation::RECT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::ClearUnorderedAccessViewFloat(this, core::mem::transmute(&viewgpuhandleincurrentheap), core::mem::transmute(&viewcpuhandle), windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&values), core::mem::transmute_copy(&numrects), core::mem::transmute_copy(&prects)) } - unsafe extern "system" fn DiscardResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pregion: *const D3D12_DISCARD_REGION) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn DiscardResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pregion: *const D3D12_DISCARD_REGION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::DiscardResource(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pregion)) } - unsafe extern "system" fn BeginQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: D3D12_QUERY_TYPE, index: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn BeginQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: D3D12_QUERY_TYPE, index: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::BeginQuery(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&index)) } - unsafe extern "system" fn EndQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: D3D12_QUERY_TYPE, index: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn EndQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: D3D12_QUERY_TYPE, index: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::EndQuery(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&index)) } - unsafe extern "system" fn ResolveQueryData(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: *mut core::ffi::c_void, aligneddestinationbufferoffset: u64) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn ResolveQueryData(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: *mut core::ffi::c_void, aligneddestinationbufferoffset: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::ResolveQueryData(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&numqueries), windows_core::from_raw_borrowed(&pdestinationbuffer), core::mem::transmute_copy(&aligneddestinationbufferoffset)) } - unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void, alignedbufferoffset: u64, operation: D3D12_PREDICATION_OP) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void, alignedbufferoffset: u64, operation: D3D12_PREDICATION_OP) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetPredication(this, windows_core::from_raw_borrowed(&pbuffer), core::mem::transmute_copy(&alignedbufferoffset), core::mem::transmute_copy(&operation)) } - unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::SetMarker(this, core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::BeginEvent(this, core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::EndEvent(this) } - unsafe extern "system" fn ExecuteIndirect(this: *mut core::ffi::c_void, pcommandsignature: *mut core::ffi::c_void, maxcommandcount: u32, pargumentbuffer: *mut core::ffi::c_void, argumentbufferoffset: u64, pcountbuffer: *mut core::ffi::c_void, countbufferoffset: u64) - where - Identity: ID3D12GraphicsCommandList_Impl, - { + unsafe extern "system" fn ExecuteIndirect(this: *mut core::ffi::c_void, pcommandsignature: *mut core::ffi::c_void, maxcommandcount: u32, pargumentbuffer: *mut core::ffi::c_void, argumentbufferoffset: u64, pcountbuffer: *mut core::ffi::c_void, countbufferoffset: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::ExecuteIndirect(this, windows_core::from_raw_borrowed(&pcommandsignature), core::mem::transmute_copy(&maxcommandcount), windows_core::from_raw_borrowed(&pargumentbuffer), core::mem::transmute_copy(&argumentbufferoffset), windows_core::from_raw_borrowed(&pcountbuffer), core::mem::transmute_copy(&countbufferoffset)) } @@ -2904,49 +2127,28 @@ pub trait ID3D12GraphicsCommandList1_Impl: Sized + ID3D12GraphicsCommandList_Imp impl windows_core::RuntimeName for ID3D12GraphicsCommandList1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList1_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList1_Vtbl - where - Identity: ID3D12GraphicsCommandList1_Impl, - { - unsafe extern "system" fn AtomicCopyBufferUINT(this: *mut core::ffi::c_void, pdstbuffer: *mut core::ffi::c_void, dstoffset: u64, psrcbuffer: *mut core::ffi::c_void, srcoffset: u64, dependencies: u32, ppdependentresources: *const *mut core::ffi::c_void, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) - where - Identity: ID3D12GraphicsCommandList1_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList1_Vtbl { + unsafe extern "system" fn AtomicCopyBufferUINT(this: *mut core::ffi::c_void, pdstbuffer: *mut core::ffi::c_void, dstoffset: u64, psrcbuffer: *mut core::ffi::c_void, srcoffset: u64, dependencies: u32, ppdependentresources: *const *mut core::ffi::c_void, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList1_Impl::AtomicCopyBufferUINT(this, windows_core::from_raw_borrowed(&pdstbuffer), core::mem::transmute_copy(&dstoffset), windows_core::from_raw_borrowed(&psrcbuffer), core::mem::transmute_copy(&srcoffset), core::mem::transmute_copy(&dependencies), core::mem::transmute_copy(&ppdependentresources), core::mem::transmute_copy(&pdependentsubresourceranges)) } - unsafe extern "system" fn AtomicCopyBufferUINT64(this: *mut core::ffi::c_void, pdstbuffer: *mut core::ffi::c_void, dstoffset: u64, psrcbuffer: *mut core::ffi::c_void, srcoffset: u64, dependencies: u32, ppdependentresources: *const *mut core::ffi::c_void, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) - where - Identity: ID3D12GraphicsCommandList1_Impl, - { + unsafe extern "system" fn AtomicCopyBufferUINT64(this: *mut core::ffi::c_void, pdstbuffer: *mut core::ffi::c_void, dstoffset: u64, psrcbuffer: *mut core::ffi::c_void, srcoffset: u64, dependencies: u32, ppdependentresources: *const *mut core::ffi::c_void, pdependentsubresourceranges: *const D3D12_SUBRESOURCE_RANGE_UINT64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList1_Impl::AtomicCopyBufferUINT64(this, windows_core::from_raw_borrowed(&pdstbuffer), core::mem::transmute_copy(&dstoffset), windows_core::from_raw_borrowed(&psrcbuffer), core::mem::transmute_copy(&srcoffset), core::mem::transmute_copy(&dependencies), core::mem::transmute_copy(&ppdependentresources), core::mem::transmute_copy(&pdependentsubresourceranges)) } - unsafe extern "system" fn OMSetDepthBounds(this: *mut core::ffi::c_void, min: f32, max: f32) - where - Identity: ID3D12GraphicsCommandList1_Impl, - { + unsafe extern "system" fn OMSetDepthBounds(this: *mut core::ffi::c_void, min: f32, max: f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList1_Impl::OMSetDepthBounds(this, core::mem::transmute_copy(&min), core::mem::transmute_copy(&max)) } - unsafe extern "system" fn SetSamplePositions(this: *mut core::ffi::c_void, numsamplesperpixel: u32, numpixels: u32, psamplepositions: *const D3D12_SAMPLE_POSITION) - where - Identity: ID3D12GraphicsCommandList1_Impl, - { + unsafe extern "system" fn SetSamplePositions(this: *mut core::ffi::c_void, numsamplesperpixel: u32, numpixels: u32, psamplepositions: *const D3D12_SAMPLE_POSITION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList1_Impl::SetSamplePositions(this, core::mem::transmute_copy(&numsamplesperpixel), core::mem::transmute_copy(&numpixels), core::mem::transmute_copy(&psamplepositions)) } - unsafe extern "system" fn ResolveSubresourceRegion(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, psrcrect: *const super::super::Foundation::RECT, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) - where - Identity: ID3D12GraphicsCommandList1_Impl, - { + unsafe extern "system" fn ResolveSubresourceRegion(this: *mut core::ffi::c_void, pdstresource: *mut core::ffi::c_void, dstsubresource: u32, dstx: u32, dsty: u32, psrcresource: *mut core::ffi::c_void, srcsubresource: u32, psrcrect: *const super::super::Foundation::RECT, format: super::Dxgi::Common::DXGI_FORMAT, resolvemode: D3D12_RESOLVE_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList1_Impl::ResolveSubresourceRegion(this, windows_core::from_raw_borrowed(&pdstresource), core::mem::transmute_copy(&dstsubresource), core::mem::transmute_copy(&dstx), core::mem::transmute_copy(&dsty), windows_core::from_raw_borrowed(&psrcresource), core::mem::transmute_copy(&srcsubresource), core::mem::transmute_copy(&psrcrect), core::mem::transmute_copy(&format), core::mem::transmute_copy(&resolvemode)) } - unsafe extern "system" fn SetViewInstanceMask(this: *mut core::ffi::c_void, mask: u32) - where - Identity: ID3D12GraphicsCommandList1_Impl, - { + unsafe extern "system" fn SetViewInstanceMask(this: *mut core::ffi::c_void, mask: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList1_Impl::SetViewInstanceMask(this, core::mem::transmute_copy(&mask)) } @@ -2973,21 +2175,12 @@ pub trait ID3D12GraphicsCommandList10_Impl: Sized + ID3D12GraphicsCommandList9_I impl windows_core::RuntimeName for ID3D12GraphicsCommandList10 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList10_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList10_Vtbl - where - Identity: ID3D12GraphicsCommandList10_Impl, - { - unsafe extern "system" fn SetProgram(this: *mut core::ffi::c_void, pdesc: *const D3D12_SET_PROGRAM_DESC) - where - Identity: ID3D12GraphicsCommandList10_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList10_Vtbl { + unsafe extern "system" fn SetProgram(this: *mut core::ffi::c_void, pdesc: *const D3D12_SET_PROGRAM_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList10_Impl::SetProgram(this, core::mem::transmute_copy(&pdesc)) } - unsafe extern "system" fn DispatchGraph(this: *mut core::ffi::c_void, pdesc: *const D3D12_DISPATCH_GRAPH_DESC) - where - Identity: ID3D12GraphicsCommandList10_Impl, - { + unsafe extern "system" fn DispatchGraph(this: *mut core::ffi::c_void, pdesc: *const D3D12_DISPATCH_GRAPH_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList10_Impl::DispatchGraph(this, core::mem::transmute_copy(&pdesc)) } @@ -3022,14 +2215,8 @@ pub trait ID3D12GraphicsCommandList2_Impl: Sized + ID3D12GraphicsCommandList1_Im impl windows_core::RuntimeName for ID3D12GraphicsCommandList2 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList2_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList2_Vtbl - where - Identity: ID3D12GraphicsCommandList2_Impl, - { - unsafe extern "system" fn WriteBufferImmediate(this: *mut core::ffi::c_void, count: u32, pparams: *const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: *const D3D12_WRITEBUFFERIMMEDIATE_MODE) - where - Identity: ID3D12GraphicsCommandList2_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList2_Vtbl { + unsafe extern "system" fn WriteBufferImmediate(this: *mut core::ffi::c_void, count: u32, pparams: *const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: *const D3D12_WRITEBUFFERIMMEDIATE_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList2_Impl::WriteBufferImmediate(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&pparams), core::mem::transmute_copy(&pmodes)) } @@ -3047,14 +2234,8 @@ pub trait ID3D12GraphicsCommandList3_Impl: Sized + ID3D12GraphicsCommandList2_Im impl windows_core::RuntimeName for ID3D12GraphicsCommandList3 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList3_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList3_Vtbl - where - Identity: ID3D12GraphicsCommandList3_Impl, - { - unsafe extern "system" fn SetProtectedResourceSession(this: *mut core::ffi::c_void, pprotectedresourcesession: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList3_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList3_Vtbl { + unsafe extern "system" fn SetProtectedResourceSession(this: *mut core::ffi::c_void, pprotectedresourcesession: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList3_Impl::SetProtectedResourceSession(this, windows_core::from_raw_borrowed(&pprotectedresourcesession)) } @@ -3080,70 +2261,40 @@ pub trait ID3D12GraphicsCommandList4_Impl: Sized + ID3D12GraphicsCommandList3_Im impl windows_core::RuntimeName for ID3D12GraphicsCommandList4 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList4_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList4_Vtbl - where - Identity: ID3D12GraphicsCommandList4_Impl, - { - unsafe extern "system" fn BeginRenderPass(this: *mut core::ffi::c_void, numrendertargets: u32, prendertargets: *const D3D12_RENDER_PASS_RENDER_TARGET_DESC, pdepthstencil: *const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC, flags: D3D12_RENDER_PASS_FLAGS) - where - Identity: ID3D12GraphicsCommandList4_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList4_Vtbl { + unsafe extern "system" fn BeginRenderPass(this: *mut core::ffi::c_void, numrendertargets: u32, prendertargets: *const D3D12_RENDER_PASS_RENDER_TARGET_DESC, pdepthstencil: *const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC, flags: D3D12_RENDER_PASS_FLAGS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList4_Impl::BeginRenderPass(this, core::mem::transmute_copy(&numrendertargets), core::mem::transmute_copy(&prendertargets), core::mem::transmute_copy(&pdepthstencil), core::mem::transmute_copy(&flags)) } - unsafe extern "system" fn EndRenderPass(this: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList4_Impl, - { + unsafe extern "system" fn EndRenderPass(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList4_Impl::EndRenderPass(this) } - unsafe extern "system" fn InitializeMetaCommand(this: *mut core::ffi::c_void, pmetacommand: *mut core::ffi::c_void, pinitializationparametersdata: *const core::ffi::c_void, initializationparametersdatasizeinbytes: usize) - where - Identity: ID3D12GraphicsCommandList4_Impl, - { + unsafe extern "system" fn InitializeMetaCommand(this: *mut core::ffi::c_void, pmetacommand: *mut core::ffi::c_void, pinitializationparametersdata: *const core::ffi::c_void, initializationparametersdatasizeinbytes: usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList4_Impl::InitializeMetaCommand(this, windows_core::from_raw_borrowed(&pmetacommand), core::mem::transmute_copy(&pinitializationparametersdata), core::mem::transmute_copy(&initializationparametersdatasizeinbytes)) } - unsafe extern "system" fn ExecuteMetaCommand(this: *mut core::ffi::c_void, pmetacommand: *mut core::ffi::c_void, pexecutionparametersdata: *const core::ffi::c_void, executionparametersdatasizeinbytes: usize) - where - Identity: ID3D12GraphicsCommandList4_Impl, - { + unsafe extern "system" fn ExecuteMetaCommand(this: *mut core::ffi::c_void, pmetacommand: *mut core::ffi::c_void, pexecutionparametersdata: *const core::ffi::c_void, executionparametersdatasizeinbytes: usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList4_Impl::ExecuteMetaCommand(this, windows_core::from_raw_borrowed(&pmetacommand), core::mem::transmute_copy(&pexecutionparametersdata), core::mem::transmute_copy(&executionparametersdatasizeinbytes)) } - unsafe extern "system" fn BuildRaytracingAccelerationStructure(this: *mut core::ffi::c_void, pdesc: *const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC, numpostbuildinfodescs: u32, ppostbuildinfodescs: *const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC) - where - Identity: ID3D12GraphicsCommandList4_Impl, - { + unsafe extern "system" fn BuildRaytracingAccelerationStructure(this: *mut core::ffi::c_void, pdesc: *const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC, numpostbuildinfodescs: u32, ppostbuildinfodescs: *const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList4_Impl::BuildRaytracingAccelerationStructure(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&numpostbuildinfodescs), core::mem::transmute_copy(&ppostbuildinfodescs)) } - unsafe extern "system" fn EmitRaytracingAccelerationStructurePostbuildInfo(this: *mut core::ffi::c_void, pdesc: *const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC, numsourceaccelerationstructures: u32, psourceaccelerationstructuredata: *const u64) - where - Identity: ID3D12GraphicsCommandList4_Impl, - { + unsafe extern "system" fn EmitRaytracingAccelerationStructurePostbuildInfo(this: *mut core::ffi::c_void, pdesc: *const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC, numsourceaccelerationstructures: u32, psourceaccelerationstructuredata: *const u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList4_Impl::EmitRaytracingAccelerationStructurePostbuildInfo(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&numsourceaccelerationstructures), core::mem::transmute_copy(&psourceaccelerationstructuredata)) } - unsafe extern "system" fn CopyRaytracingAccelerationStructure(this: *mut core::ffi::c_void, destaccelerationstructuredata: u64, sourceaccelerationstructuredata: u64, mode: D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE) - where - Identity: ID3D12GraphicsCommandList4_Impl, - { + unsafe extern "system" fn CopyRaytracingAccelerationStructure(this: *mut core::ffi::c_void, destaccelerationstructuredata: u64, sourceaccelerationstructuredata: u64, mode: D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList4_Impl::CopyRaytracingAccelerationStructure(this, core::mem::transmute_copy(&destaccelerationstructuredata), core::mem::transmute_copy(&sourceaccelerationstructuredata), core::mem::transmute_copy(&mode)) } - unsafe extern "system" fn SetPipelineState1(this: *mut core::ffi::c_void, pstateobject: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList4_Impl, - { + unsafe extern "system" fn SetPipelineState1(this: *mut core::ffi::c_void, pstateobject: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList4_Impl::SetPipelineState1(this, windows_core::from_raw_borrowed(&pstateobject)) } - unsafe extern "system" fn DispatchRays(this: *mut core::ffi::c_void, pdesc: *const D3D12_DISPATCH_RAYS_DESC) - where - Identity: ID3D12GraphicsCommandList4_Impl, - { + unsafe extern "system" fn DispatchRays(this: *mut core::ffi::c_void, pdesc: *const D3D12_DISPATCH_RAYS_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList4_Impl::DispatchRays(this, core::mem::transmute_copy(&pdesc)) } @@ -3173,21 +2324,12 @@ pub trait ID3D12GraphicsCommandList5_Impl: Sized + ID3D12GraphicsCommandList4_Im impl windows_core::RuntimeName for ID3D12GraphicsCommandList5 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList5_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList5_Vtbl - where - Identity: ID3D12GraphicsCommandList5_Impl, - { - unsafe extern "system" fn RSSetShadingRate(this: *mut core::ffi::c_void, baseshadingrate: D3D12_SHADING_RATE, combiners: *const D3D12_SHADING_RATE_COMBINER) - where - Identity: ID3D12GraphicsCommandList5_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList5_Vtbl { + unsafe extern "system" fn RSSetShadingRate(this: *mut core::ffi::c_void, baseshadingrate: D3D12_SHADING_RATE, combiners: *const D3D12_SHADING_RATE_COMBINER) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList5_Impl::RSSetShadingRate(this, core::mem::transmute_copy(&baseshadingrate), core::mem::transmute_copy(&combiners)) } - unsafe extern "system" fn RSSetShadingRateImage(this: *mut core::ffi::c_void, shadingrateimage: *mut core::ffi::c_void) - where - Identity: ID3D12GraphicsCommandList5_Impl, - { + unsafe extern "system" fn RSSetShadingRateImage(this: *mut core::ffi::c_void, shadingrateimage: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList5_Impl::RSSetShadingRateImage(this, windows_core::from_raw_borrowed(&shadingrateimage)) } @@ -3209,14 +2351,8 @@ pub trait ID3D12GraphicsCommandList6_Impl: Sized + ID3D12GraphicsCommandList5_Im impl windows_core::RuntimeName for ID3D12GraphicsCommandList6 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList6_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList6_Vtbl - where - Identity: ID3D12GraphicsCommandList6_Impl, - { - unsafe extern "system" fn DispatchMesh(this: *mut core::ffi::c_void, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) - where - Identity: ID3D12GraphicsCommandList6_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList6_Vtbl { + unsafe extern "system" fn DispatchMesh(this: *mut core::ffi::c_void, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList6_Impl::DispatchMesh(this, core::mem::transmute_copy(&threadgroupcountx), core::mem::transmute_copy(&threadgroupcounty), core::mem::transmute_copy(&threadgroupcountz)) } @@ -3234,14 +2370,8 @@ pub trait ID3D12GraphicsCommandList7_Impl: Sized + ID3D12GraphicsCommandList6_Im impl windows_core::RuntimeName for ID3D12GraphicsCommandList7 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList7_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList7_Vtbl - where - Identity: ID3D12GraphicsCommandList7_Impl, - { - unsafe extern "system" fn Barrier(this: *mut core::ffi::c_void, numbarriergroups: u32, pbarriergroups: *const D3D12_BARRIER_GROUP) - where - Identity: ID3D12GraphicsCommandList7_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList7_Vtbl { + unsafe extern "system" fn Barrier(this: *mut core::ffi::c_void, numbarriergroups: u32, pbarriergroups: *const D3D12_BARRIER_GROUP) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList7_Impl::Barrier(this, core::mem::transmute_copy(&numbarriergroups), core::mem::transmute_copy(&pbarriergroups)) } @@ -3259,14 +2389,8 @@ pub trait ID3D12GraphicsCommandList8_Impl: Sized + ID3D12GraphicsCommandList7_Im impl windows_core::RuntimeName for ID3D12GraphicsCommandList8 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList8_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList8_Vtbl - where - Identity: ID3D12GraphicsCommandList8_Impl, - { - unsafe extern "system" fn OMSetFrontAndBackStencilRef(this: *mut core::ffi::c_void, frontstencilref: u32, backstencilref: u32) - where - Identity: ID3D12GraphicsCommandList8_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList8_Vtbl { + unsafe extern "system" fn OMSetFrontAndBackStencilRef(this: *mut core::ffi::c_void, frontstencilref: u32, backstencilref: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList8_Impl::OMSetFrontAndBackStencilRef(this, core::mem::transmute_copy(&frontstencilref), core::mem::transmute_copy(&backstencilref)) } @@ -3296,21 +2420,12 @@ pub trait ID3D12GraphicsCommandList9_Impl: Sized + ID3D12GraphicsCommandList8_Im impl windows_core::RuntimeName for ID3D12GraphicsCommandList9 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12GraphicsCommandList9_Vtbl { - pub const fn new() -> ID3D12GraphicsCommandList9_Vtbl - where - Identity: ID3D12GraphicsCommandList9_Impl, - { - unsafe extern "system" fn RSSetDepthBias(this: *mut core::ffi::c_void, depthbias: f32, depthbiasclamp: f32, slopescaleddepthbias: f32) - where - Identity: ID3D12GraphicsCommandList9_Impl, - { + pub const fn new() -> ID3D12GraphicsCommandList9_Vtbl { + unsafe extern "system" fn RSSetDepthBias(this: *mut core::ffi::c_void, depthbias: f32, depthbiasclamp: f32, slopescaleddepthbias: f32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList9_Impl::RSSetDepthBias(this, core::mem::transmute_copy(&depthbias), core::mem::transmute_copy(&depthbiasclamp), core::mem::transmute_copy(&slopescaleddepthbias)) } - unsafe extern "system" fn IASetIndexBufferStripCutValue(this: *mut core::ffi::c_void, ibstripcutvalue: D3D12_INDEX_BUFFER_STRIP_CUT_VALUE) - where - Identity: ID3D12GraphicsCommandList9_Impl, - { + unsafe extern "system" fn IASetIndexBufferStripCutValue(this: *mut core::ffi::c_void, ibstripcutvalue: D3D12_INDEX_BUFFER_STRIP_CUT_VALUE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList9_Impl::IASetIndexBufferStripCutValue(this, core::mem::transmute_copy(&ibstripcutvalue)) } @@ -3341,14 +2456,8 @@ pub trait ID3D12Heap_Impl: Sized + ID3D12Pageable_Impl { } impl windows_core::RuntimeName for ID3D12Heap {} impl ID3D12Heap_Vtbl { - pub const fn new() -> ID3D12Heap_Vtbl - where - Identity: ID3D12Heap_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_HEAP_DESC) - where - Identity: ID3D12Heap_Impl, - { + pub const fn new() -> ID3D12Heap_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_HEAP_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12Heap_Impl::GetDesc(this) } @@ -3363,14 +2472,8 @@ pub trait ID3D12Heap1_Impl: Sized + ID3D12Heap_Impl { } impl windows_core::RuntimeName for ID3D12Heap1 {} impl ID3D12Heap1_Vtbl { - pub const fn new() -> ID3D12Heap1_Vtbl - where - Identity: ID3D12Heap1_Impl, - { - unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Heap1_Impl, - { + pub const fn new() -> ID3D12Heap1_Vtbl { + unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Heap1_Impl::GetProtectedResourceSession(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppprotectedsession)).into() } @@ -3380,7 +2483,7 @@ impl ID3D12Heap1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D12InfoQueue_Impl: Sized { +pub trait ID3D12InfoQueue_Impl: Sized + windows_core::IUnknownImpl { fn SetMessageCountLimit(&self, messagecountlimit: u64) -> windows_core::Result<()>; fn ClearStoredMessages(&self); fn GetMessage(&self, messageindex: u64, pmessage: *mut D3D12_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::Result<()>; @@ -3419,252 +2522,144 @@ pub trait ID3D12InfoQueue_Impl: Sized { } impl windows_core::RuntimeName for ID3D12InfoQueue {} impl ID3D12InfoQueue_Vtbl { - pub const fn new() -> ID3D12InfoQueue_Vtbl - where - Identity: ID3D12InfoQueue_Impl, - { - unsafe extern "system" fn SetMessageCountLimit(this: *mut core::ffi::c_void, messagecountlimit: u64) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + pub const fn new() -> ID3D12InfoQueue_Vtbl { + unsafe extern "system" fn SetMessageCountLimit(this: *mut core::ffi::c_void, messagecountlimit: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::SetMessageCountLimit(this, core::mem::transmute_copy(&messagecountlimit)).into() } - unsafe extern "system" fn ClearStoredMessages(this: *mut core::ffi::c_void) - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn ClearStoredMessages(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::ClearStoredMessages(this) } - unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, messageindex: u64, pmessage: *mut D3D12_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, messageindex: u64, pmessage: *mut D3D12_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetMessage(this, core::mem::transmute_copy(&messageindex), core::mem::transmute_copy(&pmessage), core::mem::transmute_copy(&pmessagebytelength)).into() } - unsafe extern "system" fn GetNumMessagesAllowedByStorageFilter(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesAllowedByStorageFilter(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetNumMessagesAllowedByStorageFilter(this) } - unsafe extern "system" fn GetNumMessagesDeniedByStorageFilter(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesDeniedByStorageFilter(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetNumMessagesDeniedByStorageFilter(this) } - unsafe extern "system" fn GetNumStoredMessages(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetNumStoredMessages(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetNumStoredMessages(this) } - unsafe extern "system" fn GetNumStoredMessagesAllowedByRetrievalFilter(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetNumStoredMessagesAllowedByRetrievalFilter(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetNumStoredMessagesAllowedByRetrievalFilter(this) } - unsafe extern "system" fn GetNumMessagesDiscardedByMessageCountLimit(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesDiscardedByMessageCountLimit(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetNumMessagesDiscardedByMessageCountLimit(this) } - unsafe extern "system" fn GetMessageCountLimit(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetMessageCountLimit(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetMessageCountLimit(this) } - unsafe extern "system" fn AddStorageFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn AddStorageFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::AddStorageFilterEntries(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn GetStorageFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D12_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetStorageFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D12_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetStorageFilter(this, core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&pfilterbytelength)).into() } - unsafe extern "system" fn ClearStorageFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn ClearStorageFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::ClearStorageFilter(this) } - unsafe extern "system" fn PushEmptyStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn PushEmptyStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::PushEmptyStorageFilter(this).into() } - unsafe extern "system" fn PushCopyOfStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn PushCopyOfStorageFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::PushCopyOfStorageFilter(this).into() } - unsafe extern "system" fn PushStorageFilter(this: *mut core::ffi::c_void, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn PushStorageFilter(this: *mut core::ffi::c_void, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::PushStorageFilter(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn PopStorageFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn PopStorageFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::PopStorageFilter(this) } - unsafe extern "system" fn GetStorageFilterStackSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetStorageFilterStackSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetStorageFilterStackSize(this) } - unsafe extern "system" fn AddRetrievalFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn AddRetrievalFilterEntries(this: *mut core::ffi::c_void, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::AddRetrievalFilterEntries(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn GetRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D12_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *mut D3D12_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetRetrievalFilter(this, core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&pfilterbytelength)).into() } - unsafe extern "system" fn ClearRetrievalFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn ClearRetrievalFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::ClearRetrievalFilter(this) } - unsafe extern "system" fn PushEmptyRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn PushEmptyRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::PushEmptyRetrievalFilter(this).into() } - unsafe extern "system" fn PushCopyOfRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn PushCopyOfRetrievalFilter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::PushCopyOfRetrievalFilter(this).into() } - unsafe extern "system" fn PushRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn PushRetrievalFilter(this: *mut core::ffi::c_void, pfilter: *const D3D12_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::PushRetrievalFilter(this, core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn PopRetrievalFilter(this: *mut core::ffi::c_void) - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn PopRetrievalFilter(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::PopRetrievalFilter(this) } - unsafe extern "system" fn GetRetrievalFilterStackSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetRetrievalFilterStackSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetRetrievalFilterStackSize(this) } - unsafe extern "system" fn AddMessage(this: *mut core::ffi::c_void, category: D3D12_MESSAGE_CATEGORY, severity: D3D12_MESSAGE_SEVERITY, id: D3D12_MESSAGE_ID, pdescription: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn AddMessage(this: *mut core::ffi::c_void, category: D3D12_MESSAGE_CATEGORY, severity: D3D12_MESSAGE_SEVERITY, id: D3D12_MESSAGE_ID, pdescription: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::AddMessage(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&severity), core::mem::transmute_copy(&id), core::mem::transmute(&pdescription)).into() } - unsafe extern "system" fn AddApplicationMessage(this: *mut core::ffi::c_void, severity: D3D12_MESSAGE_SEVERITY, pdescription: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn AddApplicationMessage(this: *mut core::ffi::c_void, severity: D3D12_MESSAGE_SEVERITY, pdescription: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::AddApplicationMessage(this, core::mem::transmute_copy(&severity), core::mem::transmute(&pdescription)).into() } - unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D12_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D12_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::SetBreakOnCategory(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D12_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D12_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::SetBreakOnSeverity(this, core::mem::transmute_copy(&severity), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D12_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D12_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::SetBreakOnID(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D12_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D12_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetBreakOnCategory(this, core::mem::transmute_copy(&category)) } - unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D12_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D12_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetBreakOnSeverity(this, core::mem::transmute_copy(&severity)) } - unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D12_MESSAGE_ID) -> super::super::Foundation::BOOL - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D12_MESSAGE_ID) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetBreakOnID(this, core::mem::transmute_copy(&id)) } - unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::SetMuteDebugOutput(this, core::mem::transmute_copy(&bmute)) } - unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D12InfoQueue_Impl, - { + unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetMuteDebugOutput(this) } @@ -3717,21 +2712,12 @@ pub trait ID3D12InfoQueue1_Impl: Sized + ID3D12InfoQueue_Impl { } impl windows_core::RuntimeName for ID3D12InfoQueue1 {} impl ID3D12InfoQueue1_Vtbl { - pub const fn new() -> ID3D12InfoQueue1_Vtbl - where - Identity: ID3D12InfoQueue1_Impl, - { - unsafe extern "system" fn RegisterMessageCallback(this: *mut core::ffi::c_void, callbackfunc: D3D12MessageFunc, callbackfilterflags: D3D12_MESSAGE_CALLBACK_FLAGS, pcontext: *mut core::ffi::c_void, pcallbackcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue1_Impl, - { + pub const fn new() -> ID3D12InfoQueue1_Vtbl { + unsafe extern "system" fn RegisterMessageCallback(this: *mut core::ffi::c_void, callbackfunc: D3D12MessageFunc, callbackfilterflags: D3D12_MESSAGE_CALLBACK_FLAGS, pcontext: *mut core::ffi::c_void, pcallbackcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue1_Impl::RegisterMessageCallback(this, core::mem::transmute_copy(&callbackfunc), core::mem::transmute_copy(&callbackfilterflags), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&pcallbackcookie)).into() } - unsafe extern "system" fn UnregisterMessageCallback(this: *mut core::ffi::c_void, callbackcookie: u32) -> windows_core::HRESULT - where - Identity: ID3D12InfoQueue1_Impl, - { + unsafe extern "system" fn UnregisterMessageCallback(this: *mut core::ffi::c_void, callbackcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue1_Impl::UnregisterMessageCallback(this, core::mem::transmute_copy(&callbackcookie)).into() } @@ -3745,20 +2731,14 @@ impl ID3D12InfoQueue1_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ID3D12LibraryReflection_Impl: Sized { +pub trait ID3D12LibraryReflection_Impl: Sized + windows_core::IUnknownImpl { fn GetDesc(&self) -> windows_core::Result; fn GetFunctionByIndex(&self, functionindex: i32) -> Option; } impl windows_core::RuntimeName for ID3D12LibraryReflection {} impl ID3D12LibraryReflection_Vtbl { - pub const fn new() -> ID3D12LibraryReflection_Vtbl - where - Identity: ID3D12LibraryReflection_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D12_LIBRARY_DESC) -> windows_core::HRESULT - where - Identity: ID3D12LibraryReflection_Impl, - { + pub const fn new() -> ID3D12LibraryReflection_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D12_LIBRARY_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12LibraryReflection_Impl::GetDesc(this) { Ok(ok__) => { @@ -3768,10 +2748,7 @@ impl ID3D12LibraryReflection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionByIndex(this: *mut core::ffi::c_void, functionindex: i32) -> Option - where - Identity: ID3D12LibraryReflection_Impl, - { + unsafe extern "system" fn GetFunctionByIndex(this: *mut core::ffi::c_void, functionindex: i32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12LibraryReflection_Impl::GetFunctionByIndex(this, core::mem::transmute_copy(&functionindex)) } @@ -3785,19 +2762,13 @@ impl ID3D12LibraryReflection_Vtbl { iid == &::IID } } -pub trait ID3D12LifetimeOwner_Impl: Sized { +pub trait ID3D12LifetimeOwner_Impl: Sized + windows_core::IUnknownImpl { fn LifetimeStateUpdated(&self, newstate: D3D12_LIFETIME_STATE); } impl windows_core::RuntimeName for ID3D12LifetimeOwner {} impl ID3D12LifetimeOwner_Vtbl { - pub const fn new() -> ID3D12LifetimeOwner_Vtbl - where - Identity: ID3D12LifetimeOwner_Impl, - { - unsafe extern "system" fn LifetimeStateUpdated(this: *mut core::ffi::c_void, newstate: D3D12_LIFETIME_STATE) - where - Identity: ID3D12LifetimeOwner_Impl, - { + pub const fn new() -> ID3D12LifetimeOwner_Vtbl { + unsafe extern "system" fn LifetimeStateUpdated(this: *mut core::ffi::c_void, newstate: D3D12_LIFETIME_STATE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12LifetimeOwner_Impl::LifetimeStateUpdated(this, core::mem::transmute_copy(&newstate)) } @@ -3812,14 +2783,8 @@ pub trait ID3D12LifetimeTracker_Impl: Sized + ID3D12DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D12LifetimeTracker {} impl ID3D12LifetimeTracker_Vtbl { - pub const fn new() -> ID3D12LifetimeTracker_Vtbl - where - Identity: ID3D12LifetimeTracker_Impl, - { - unsafe extern "system" fn DestroyOwnedObject(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12LifetimeTracker_Impl, - { + pub const fn new() -> ID3D12LifetimeTracker_Vtbl { + unsafe extern "system" fn DestroyOwnedObject(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12LifetimeTracker_Impl::DestroyOwnedObject(this, windows_core::from_raw_borrowed(&pobject)).into() } @@ -3829,19 +2794,13 @@ impl ID3D12LifetimeTracker_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D12ManualWriteTrackingResource_Impl: Sized { +pub trait ID3D12ManualWriteTrackingResource_Impl: Sized + windows_core::IUnknownImpl { fn TrackWrite(&self, subresource: u32, pwrittenrange: *const D3D12_RANGE); } impl windows_core::RuntimeName for ID3D12ManualWriteTrackingResource {} impl ID3D12ManualWriteTrackingResource_Vtbl { - pub const fn new() -> ID3D12ManualWriteTrackingResource_Vtbl - where - Identity: ID3D12ManualWriteTrackingResource_Impl, - { - unsafe extern "system" fn TrackWrite(this: *mut core::ffi::c_void, subresource: u32, pwrittenrange: *const D3D12_RANGE) - where - Identity: ID3D12ManualWriteTrackingResource_Impl, - { + pub const fn new() -> ID3D12ManualWriteTrackingResource_Vtbl { + unsafe extern "system" fn TrackWrite(this: *mut core::ffi::c_void, subresource: u32, pwrittenrange: *const D3D12_RANGE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ManualWriteTrackingResource_Impl::TrackWrite(this, core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&pwrittenrange)) } @@ -3856,14 +2815,8 @@ pub trait ID3D12MetaCommand_Impl: Sized + ID3D12Pageable_Impl { } impl windows_core::RuntimeName for ID3D12MetaCommand {} impl ID3D12MetaCommand_Vtbl { - pub const fn new() -> ID3D12MetaCommand_Vtbl - where - Identity: ID3D12MetaCommand_Impl, - { - unsafe extern "system" fn GetRequiredParameterResourceSize(this: *mut core::ffi::c_void, stage: D3D12_META_COMMAND_PARAMETER_STAGE, parameterindex: u32) -> u64 - where - Identity: ID3D12MetaCommand_Impl, - { + pub const fn new() -> ID3D12MetaCommand_Vtbl { + unsafe extern "system" fn GetRequiredParameterResourceSize(this: *mut core::ffi::c_void, stage: D3D12_META_COMMAND_PARAMETER_STAGE, parameterindex: u32) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12MetaCommand_Impl::GetRequiredParameterResourceSize(this, core::mem::transmute_copy(&stage), core::mem::transmute_copy(¶meterindex)) } @@ -3873,7 +2826,7 @@ impl ID3D12MetaCommand_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D12Object_Impl: Sized { +pub trait ID3D12Object_Impl: Sized + windows_core::IUnknownImpl { fn GetPrivateData(&self, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetPrivateData(&self, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::Result<()>; fn SetPrivateDataInterface(&self, guid: *const windows_core::GUID, pdata: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -3881,35 +2834,20 @@ pub trait ID3D12Object_Impl: Sized { } impl windows_core::RuntimeName for ID3D12Object {} impl ID3D12Object_Vtbl { - pub const fn new() -> ID3D12Object_Vtbl - where - Identity: ID3D12Object_Impl, - { - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Object_Impl, - { + pub const fn new() -> ID3D12Object_Vtbl { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Object_Impl::GetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pdatasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Object_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Object_Impl::SetPrivateData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Object_Impl, - { + unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Object_Impl::SetPrivateDataInterface(this, core::mem::transmute_copy(&guid), windows_core::from_raw_borrowed(&pdata)).into() } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ID3D12Object_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Object_Impl::SetName(this, core::mem::transmute(&name)).into() } @@ -3928,10 +2866,7 @@ impl ID3D12Object_Vtbl { pub trait ID3D12Pageable_Impl: Sized + ID3D12DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D12Pageable {} impl ID3D12Pageable_Vtbl { - pub const fn new() -> ID3D12Pageable_Vtbl - where - Identity: ID3D12Pageable_Impl, - { + pub const fn new() -> ID3D12Pageable_Vtbl { Self { base__: ID3D12DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -3950,42 +2885,24 @@ pub trait ID3D12PipelineLibrary_Impl: Sized + ID3D12DeviceChild_Impl { impl windows_core::RuntimeName for ID3D12PipelineLibrary {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D12PipelineLibrary_Vtbl { - pub const fn new() -> ID3D12PipelineLibrary_Vtbl - where - Identity: ID3D12PipelineLibrary_Impl, - { - unsafe extern "system" fn StorePipeline(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, ppipeline: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12PipelineLibrary_Impl, - { + pub const fn new() -> ID3D12PipelineLibrary_Vtbl { + unsafe extern "system" fn StorePipeline(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, ppipeline: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12PipelineLibrary_Impl::StorePipeline(this, core::mem::transmute(&pname), windows_core::from_raw_borrowed(&ppipeline)).into() } - unsafe extern "system" fn LoadGraphicsPipeline(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12PipelineLibrary_Impl, - { + unsafe extern "system" fn LoadGraphicsPipeline(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12PipelineLibrary_Impl::LoadGraphicsPipeline(this, core::mem::transmute(&pname), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pppipelinestate)).into() } - unsafe extern "system" fn LoadComputePipeline(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12PipelineLibrary_Impl, - { + unsafe extern "system" fn LoadComputePipeline(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12PipelineLibrary_Impl::LoadComputePipeline(this, core::mem::transmute(&pname), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pppipelinestate)).into() } - unsafe extern "system" fn GetSerializedSize(this: *mut core::ffi::c_void) -> usize - where - Identity: ID3D12PipelineLibrary_Impl, - { + unsafe extern "system" fn GetSerializedSize(this: *mut core::ffi::c_void) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12PipelineLibrary_Impl::GetSerializedSize(this) } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void, datasizeinbytes: usize) -> windows_core::HRESULT - where - Identity: ID3D12PipelineLibrary_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void, datasizeinbytes: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12PipelineLibrary_Impl::Serialize(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasizeinbytes)).into() } @@ -4010,14 +2927,8 @@ pub trait ID3D12PipelineLibrary1_Impl: Sized + ID3D12PipelineLibrary_Impl { impl windows_core::RuntimeName for ID3D12PipelineLibrary1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D12PipelineLibrary1_Vtbl { - pub const fn new() -> ID3D12PipelineLibrary1_Vtbl - where - Identity: ID3D12PipelineLibrary1_Impl, - { - unsafe extern "system" fn LoadPipeline(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12PipelineLibrary1_Impl, - { + pub const fn new() -> ID3D12PipelineLibrary1_Vtbl { + unsafe extern "system" fn LoadPipeline(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC, riid: *const windows_core::GUID, pppipelinestate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12PipelineLibrary1_Impl::LoadPipeline(this, core::mem::transmute(&pname), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pppipelinestate)).into() } @@ -4035,14 +2946,8 @@ pub trait ID3D12PipelineState_Impl: Sized + ID3D12Pageable_Impl { impl windows_core::RuntimeName for ID3D12PipelineState {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12PipelineState_Vtbl { - pub const fn new() -> ID3D12PipelineState_Vtbl - where - Identity: ID3D12PipelineState_Impl, - { - unsafe extern "system" fn GetCachedBlob(this: *mut core::ffi::c_void, ppblob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12PipelineState_Impl, - { + pub const fn new() -> ID3D12PipelineState_Vtbl { + unsafe extern "system" fn GetCachedBlob(this: *mut core::ffi::c_void, ppblob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12PipelineState_Impl::GetCachedBlob(this) { Ok(ok__) => { @@ -4063,14 +2968,8 @@ pub trait ID3D12ProtectedResourceSession_Impl: Sized + ID3D12ProtectedSession_Im } impl windows_core::RuntimeName for ID3D12ProtectedResourceSession {} impl ID3D12ProtectedResourceSession_Vtbl { - pub const fn new() -> ID3D12ProtectedResourceSession_Vtbl - where - Identity: ID3D12ProtectedResourceSession_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_PROTECTED_RESOURCE_SESSION_DESC) - where - Identity: ID3D12ProtectedResourceSession_Impl, - { + pub const fn new() -> ID3D12ProtectedResourceSession_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_PROTECTED_RESOURCE_SESSION_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12ProtectedResourceSession_Impl::GetDesc(this) } @@ -4085,14 +2984,8 @@ pub trait ID3D12ProtectedResourceSession1_Impl: Sized + ID3D12ProtectedResourceS } impl windows_core::RuntimeName for ID3D12ProtectedResourceSession1 {} impl ID3D12ProtectedResourceSession1_Vtbl { - pub const fn new() -> ID3D12ProtectedResourceSession1_Vtbl - where - Identity: ID3D12ProtectedResourceSession1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, result__: *mut D3D12_PROTECTED_RESOURCE_SESSION_DESC1) - where - Identity: ID3D12ProtectedResourceSession1_Impl, - { + pub const fn new() -> ID3D12ProtectedResourceSession1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, result__: *mut D3D12_PROTECTED_RESOURCE_SESSION_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12ProtectedResourceSession1_Impl::GetDesc1(this) } @@ -4108,21 +3001,12 @@ pub trait ID3D12ProtectedSession_Impl: Sized + ID3D12DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D12ProtectedSession {} impl ID3D12ProtectedSession_Vtbl { - pub const fn new() -> ID3D12ProtectedSession_Vtbl - where - Identity: ID3D12ProtectedSession_Impl, - { - unsafe extern "system" fn GetStatusFence(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppfence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12ProtectedSession_Impl, - { + pub const fn new() -> ID3D12ProtectedSession_Vtbl { + unsafe extern "system" fn GetStatusFence(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppfence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ProtectedSession_Impl::GetStatusFence(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppfence)).into() } - unsafe extern "system" fn GetSessionStatus(this: *mut core::ffi::c_void) -> D3D12_PROTECTED_SESSION_STATUS - where - Identity: ID3D12ProtectedSession_Impl, - { + unsafe extern "system" fn GetSessionStatus(this: *mut core::ffi::c_void) -> D3D12_PROTECTED_SESSION_STATUS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ProtectedSession_Impl::GetSessionStatus(this) } @@ -4139,10 +3023,7 @@ impl ID3D12ProtectedSession_Vtbl { pub trait ID3D12QueryHeap_Impl: Sized + ID3D12Pageable_Impl {} impl windows_core::RuntimeName for ID3D12QueryHeap {} impl ID3D12QueryHeap_Vtbl { - pub const fn new() -> ID3D12QueryHeap_Vtbl - where - Identity: ID3D12QueryHeap_Impl, - { + pub const fn new() -> ID3D12QueryHeap_Vtbl { Self { base__: ID3D12Pageable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -4163,56 +3044,32 @@ pub trait ID3D12Resource_Impl: Sized + ID3D12Pageable_Impl { impl windows_core::RuntimeName for ID3D12Resource {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D12Resource_Vtbl { - pub const fn new() -> ID3D12Resource_Vtbl - where - Identity: ID3D12Resource_Impl, - { - unsafe extern "system" fn Map(this: *mut core::ffi::c_void, subresource: u32, preadrange: *const D3D12_RANGE, ppdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Resource_Impl, - { + pub const fn new() -> ID3D12Resource_Vtbl { + unsafe extern "system" fn Map(this: *mut core::ffi::c_void, subresource: u32, preadrange: *const D3D12_RANGE, ppdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Resource_Impl::Map(this, core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&preadrange), core::mem::transmute_copy(&ppdata)).into() } - unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void, subresource: u32, pwrittenrange: *const D3D12_RANGE) - where - Identity: ID3D12Resource_Impl, - { + unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void, subresource: u32, pwrittenrange: *const D3D12_RANGE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Resource_Impl::Unmap(this, core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&pwrittenrange)) } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_DESC) - where - Identity: ID3D12Resource_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12Resource_Impl::GetDesc(this) } - unsafe extern "system" fn GetGPUVirtualAddress(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D12Resource_Impl, - { + unsafe extern "system" fn GetGPUVirtualAddress(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Resource_Impl::GetGPUVirtualAddress(this) } - unsafe extern "system" fn WriteToSubresource(this: *mut core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D12_BOX, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) -> windows_core::HRESULT - where - Identity: ID3D12Resource_Impl, - { + unsafe extern "system" fn WriteToSubresource(this: *mut core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D12_BOX, psrcdata: *const core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Resource_Impl::WriteToSubresource(this, core::mem::transmute_copy(&dstsubresource), core::mem::transmute_copy(&pdstbox), core::mem::transmute_copy(&psrcdata), core::mem::transmute_copy(&srcrowpitch), core::mem::transmute_copy(&srcdepthpitch)).into() } - unsafe extern "system" fn ReadFromSubresource(this: *mut core::ffi::c_void, pdstdata: *mut core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, srcsubresource: u32, psrcbox: *const D3D12_BOX) -> windows_core::HRESULT - where - Identity: ID3D12Resource_Impl, - { + unsafe extern "system" fn ReadFromSubresource(this: *mut core::ffi::c_void, pdstdata: *mut core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, srcsubresource: u32, psrcbox: *const D3D12_BOX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Resource_Impl::ReadFromSubresource(this, core::mem::transmute_copy(&pdstdata), core::mem::transmute_copy(&dstrowpitch), core::mem::transmute_copy(&dstdepthpitch), core::mem::transmute_copy(&srcsubresource), core::mem::transmute_copy(&psrcbox)).into() } - unsafe extern "system" fn GetHeapProperties(this: *mut core::ffi::c_void, pheapproperties: *mut D3D12_HEAP_PROPERTIES, pheapflags: *mut D3D12_HEAP_FLAGS) -> windows_core::HRESULT - where - Identity: ID3D12Resource_Impl, - { + unsafe extern "system" fn GetHeapProperties(this: *mut core::ffi::c_void, pheapproperties: *mut D3D12_HEAP_PROPERTIES, pheapflags: *mut D3D12_HEAP_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Resource_Impl::GetHeapProperties(this, core::mem::transmute_copy(&pheapproperties), core::mem::transmute_copy(&pheapflags)).into() } @@ -4239,14 +3096,8 @@ pub trait ID3D12Resource1_Impl: Sized + ID3D12Resource_Impl { impl windows_core::RuntimeName for ID3D12Resource1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D12Resource1_Vtbl { - pub const fn new() -> ID3D12Resource1_Vtbl - where - Identity: ID3D12Resource1_Impl, - { - unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12Resource1_Impl, - { + pub const fn new() -> ID3D12Resource1_Vtbl { + unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Resource1_Impl::GetProtectedResourceSession(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppprotectedsession)).into() } @@ -4264,14 +3115,8 @@ pub trait ID3D12Resource2_Impl: Sized + ID3D12Resource1_Impl { impl windows_core::RuntimeName for ID3D12Resource2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D12Resource2_Vtbl { - pub const fn new() -> ID3D12Resource2_Vtbl - where - Identity: ID3D12Resource2_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_DESC1) - where - Identity: ID3D12Resource2_Impl, - { + pub const fn new() -> ID3D12Resource2_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, result__: *mut D3D12_RESOURCE_DESC1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12Resource2_Impl::GetDesc1(this) } @@ -4284,29 +3129,20 @@ impl ID3D12Resource2_Vtbl { pub trait ID3D12RootSignature_Impl: Sized + ID3D12DeviceChild_Impl {} impl windows_core::RuntimeName for ID3D12RootSignature {} impl ID3D12RootSignature_Vtbl { - pub const fn new() -> ID3D12RootSignature_Vtbl - where - Identity: ID3D12RootSignature_Impl, - { + pub const fn new() -> ID3D12RootSignature_Vtbl { Self { base__: ID3D12DeviceChild_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D12RootSignatureDeserializer_Impl: Sized { +pub trait ID3D12RootSignatureDeserializer_Impl: Sized + windows_core::IUnknownImpl { fn GetRootSignatureDesc(&self) -> *mut D3D12_ROOT_SIGNATURE_DESC; } impl windows_core::RuntimeName for ID3D12RootSignatureDeserializer {} impl ID3D12RootSignatureDeserializer_Vtbl { - pub const fn new() -> ID3D12RootSignatureDeserializer_Vtbl - where - Identity: ID3D12RootSignatureDeserializer_Impl, - { - unsafe extern "system" fn GetRootSignatureDesc(this: *mut core::ffi::c_void) -> *mut D3D12_ROOT_SIGNATURE_DESC - where - Identity: ID3D12RootSignatureDeserializer_Impl, - { + pub const fn new() -> ID3D12RootSignatureDeserializer_Vtbl { + unsafe extern "system" fn GetRootSignatureDesc(this: *mut core::ffi::c_void) -> *mut D3D12_ROOT_SIGNATURE_DESC { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12RootSignatureDeserializer_Impl::GetRootSignatureDesc(this) } @@ -4316,19 +3152,13 @@ impl ID3D12RootSignatureDeserializer_Vtbl { iid == &::IID } } -pub trait ID3D12SDKConfiguration_Impl: Sized { +pub trait ID3D12SDKConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn SetSDKVersion(&self, sdkversion: u32, sdkpath: &windows_core::PCSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ID3D12SDKConfiguration {} impl ID3D12SDKConfiguration_Vtbl { - pub const fn new() -> ID3D12SDKConfiguration_Vtbl - where - Identity: ID3D12SDKConfiguration_Impl, - { - unsafe extern "system" fn SetSDKVersion(this: *mut core::ffi::c_void, sdkversion: u32, sdkpath: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: ID3D12SDKConfiguration_Impl, - { + pub const fn new() -> ID3D12SDKConfiguration_Vtbl { + unsafe extern "system" fn SetSDKVersion(this: *mut core::ffi::c_void, sdkversion: u32, sdkpath: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12SDKConfiguration_Impl::SetSDKVersion(this, core::mem::transmute_copy(&sdkversion), core::mem::transmute(&sdkpath)).into() } @@ -4344,21 +3174,12 @@ pub trait ID3D12SDKConfiguration1_Impl: Sized + ID3D12SDKConfiguration_Impl { } impl windows_core::RuntimeName for ID3D12SDKConfiguration1 {} impl ID3D12SDKConfiguration1_Vtbl { - pub const fn new() -> ID3D12SDKConfiguration1_Vtbl - where - Identity: ID3D12SDKConfiguration1_Impl, - { - unsafe extern "system" fn CreateDeviceFactory(this: *mut core::ffi::c_void, sdkversion: u32, sdkpath: windows_core::PCSTR, riid: *const windows_core::GUID, ppvfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12SDKConfiguration1_Impl, - { + pub const fn new() -> ID3D12SDKConfiguration1_Vtbl { + unsafe extern "system" fn CreateDeviceFactory(this: *mut core::ffi::c_void, sdkversion: u32, sdkpath: windows_core::PCSTR, riid: *const windows_core::GUID, ppvfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12SDKConfiguration1_Impl::CreateDeviceFactory(this, core::mem::transmute_copy(&sdkversion), core::mem::transmute(&sdkpath), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvfactory)).into() } - unsafe extern "system" fn FreeUnusedSDKs(this: *mut core::ffi::c_void) - where - Identity: ID3D12SDKConfiguration1_Impl, - { + unsafe extern "system" fn FreeUnusedSDKs(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12SDKConfiguration1_Impl::FreeUnusedSDKs(this) } @@ -4380,35 +3201,20 @@ pub trait ID3D12ShaderCacheSession_Impl: Sized + ID3D12DeviceChild_Impl { } impl windows_core::RuntimeName for ID3D12ShaderCacheSession {} impl ID3D12ShaderCacheSession_Vtbl { - pub const fn new() -> ID3D12ShaderCacheSession_Vtbl - where - Identity: ID3D12ShaderCacheSession_Impl, - { - unsafe extern "system" fn FindValue(this: *mut core::ffi::c_void, pkey: *const core::ffi::c_void, keysize: u32, pvalue: *mut core::ffi::c_void, pvaluesize: *mut u32) -> windows_core::HRESULT - where - Identity: ID3D12ShaderCacheSession_Impl, - { + pub const fn new() -> ID3D12ShaderCacheSession_Vtbl { + unsafe extern "system" fn FindValue(this: *mut core::ffi::c_void, pkey: *const core::ffi::c_void, keysize: u32, pvalue: *mut core::ffi::c_void, pvaluesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderCacheSession_Impl::FindValue(this, core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&keysize), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pvaluesize)).into() } - unsafe extern "system" fn StoreValue(this: *mut core::ffi::c_void, pkey: *const core::ffi::c_void, keysize: u32, pvalue: *const core::ffi::c_void, valuesize: u32) -> windows_core::HRESULT - where - Identity: ID3D12ShaderCacheSession_Impl, - { + unsafe extern "system" fn StoreValue(this: *mut core::ffi::c_void, pkey: *const core::ffi::c_void, keysize: u32, pvalue: *const core::ffi::c_void, valuesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderCacheSession_Impl::StoreValue(this, core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&keysize), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&valuesize)).into() } - unsafe extern "system" fn SetDeleteOnDestroy(this: *mut core::ffi::c_void) - where - Identity: ID3D12ShaderCacheSession_Impl, - { + unsafe extern "system" fn SetDeleteOnDestroy(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderCacheSession_Impl::SetDeleteOnDestroy(this) } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_SHADER_CACHE_SESSION_DESC) - where - Identity: ID3D12ShaderCacheSession_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_SHADER_CACHE_SESSION_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12ShaderCacheSession_Impl::GetDesc(this) } @@ -4425,7 +3231,7 @@ impl ID3D12ShaderCacheSession_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D")] -pub trait ID3D12ShaderReflection_Impl: Sized { +pub trait ID3D12ShaderReflection_Impl: Sized + windows_core::IUnknownImpl { fn GetDesc(&self, pdesc: *mut D3D12_SHADER_DESC) -> windows_core::Result<()>; fn GetConstantBufferByIndex(&self, index: u32) -> Option; fn GetConstantBufferByName(&self, name: &windows_core::PCSTR) -> Option; @@ -4450,126 +3256,72 @@ pub trait ID3D12ShaderReflection_Impl: Sized { impl windows_core::RuntimeName for ID3D12ShaderReflection {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12ShaderReflection_Vtbl { - pub const fn new() -> ID3D12ShaderReflection_Vtbl - where - Identity: ID3D12ShaderReflection_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D12_SHADER_DESC) -> windows_core::HRESULT - where - Identity: ID3D12ShaderReflection_Impl, - { + pub const fn new() -> ID3D12ShaderReflection_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3D12_SHADER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetConstantBufferByIndex(this: *mut core::ffi::c_void, index: u32) -> Option - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetConstantBufferByIndex(this: *mut core::ffi::c_void, index: u32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetConstantBufferByIndex(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn GetConstantBufferByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetConstantBufferByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetConstantBufferByName(this, core::mem::transmute(&name)) } - unsafe extern "system" fn GetResourceBindingDesc(this: *mut core::ffi::c_void, resourceindex: u32, pdesc: *mut D3D12_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetResourceBindingDesc(this: *mut core::ffi::c_void, resourceindex: u32, pdesc: *mut D3D12_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetResourceBindingDesc(this, core::mem::transmute_copy(&resourceindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetInputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D12_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetInputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D12_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetInputParameterDesc(this, core::mem::transmute_copy(¶meterindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetOutputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D12_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetOutputParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D12_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetOutputParameterDesc(this, core::mem::transmute_copy(¶meterindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetPatchConstantParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D12_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetPatchConstantParameterDesc(this: *mut core::ffi::c_void, parameterindex: u32, pdesc: *mut D3D12_SIGNATURE_PARAMETER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetPatchConstantParameterDesc(this, core::mem::transmute_copy(¶meterindex), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetVariableByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetVariableByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetVariableByName(this, core::mem::transmute(&name)) } - unsafe extern "system" fn GetResourceBindingDescByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, pdesc: *mut D3D12_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetResourceBindingDescByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, pdesc: *mut D3D12_SHADER_INPUT_BIND_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetResourceBindingDescByName(this, core::mem::transmute(&name), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetMovInstructionCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetMovInstructionCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetMovInstructionCount(this) } - unsafe extern "system" fn GetMovcInstructionCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetMovcInstructionCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetMovcInstructionCount(this) } - unsafe extern "system" fn GetConversionInstructionCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetConversionInstructionCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetConversionInstructionCount(this) } - unsafe extern "system" fn GetBitwiseInstructionCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetBitwiseInstructionCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetBitwiseInstructionCount(this) } - unsafe extern "system" fn GetGSInputPrimitive(this: *mut core::ffi::c_void) -> super::Direct3D::D3D_PRIMITIVE - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetGSInputPrimitive(this: *mut core::ffi::c_void) -> super::Direct3D::D3D_PRIMITIVE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetGSInputPrimitive(this) } - unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::IsSampleFrequencyShader(this) } - unsafe extern "system" fn GetNumInterfaceSlots(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetNumInterfaceSlots(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetNumInterfaceSlots(this) } - unsafe extern "system" fn GetMinFeatureLevel(this: *mut core::ffi::c_void, plevel: *mut super::Direct3D::D3D_FEATURE_LEVEL) -> windows_core::HRESULT - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetMinFeatureLevel(this: *mut core::ffi::c_void, plevel: *mut super::Direct3D::D3D_FEATURE_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12ShaderReflection_Impl::GetMinFeatureLevel(this) { Ok(ok__) => { @@ -4579,17 +3331,11 @@ impl ID3D12ShaderReflection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadGroupSize(this: *mut core::ffi::c_void, psizex: *mut u32, psizey: *mut u32, psizez: *mut u32) -> u32 - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetThreadGroupSize(this: *mut core::ffi::c_void, psizex: *mut u32, psizey: *mut u32, psizez: *mut u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetThreadGroupSize(this, core::mem::transmute_copy(&psizex), core::mem::transmute_copy(&psizey), core::mem::transmute_copy(&psizez)) } - unsafe extern "system" fn GetRequiresFlags(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D12ShaderReflection_Impl, - { + unsafe extern "system" fn GetRequiresFlags(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::GetRequiresFlags(this) } @@ -4807,7 +3553,7 @@ impl ID3D12ShaderReflectionVariable { unsafe { windows_core::ScopedInterface::new(core::mem::transmute(&this.vtable)) } } } -pub trait ID3D12SharingContract_Impl: Sized { +pub trait ID3D12SharingContract_Impl: Sized + windows_core::IUnknownImpl { fn Present(&self, presource: Option<&ID3D12Resource>, subresource: u32, window: super::super::Foundation::HWND); fn SharedFenceSignal(&self, pfence: Option<&ID3D12Fence>, fencevalue: u64); fn BeginCapturableWork(&self, guid: *const windows_core::GUID); @@ -4815,35 +3561,20 @@ pub trait ID3D12SharingContract_Impl: Sized { } impl windows_core::RuntimeName for ID3D12SharingContract {} impl ID3D12SharingContract_Vtbl { - pub const fn new() -> ID3D12SharingContract_Vtbl - where - Identity: ID3D12SharingContract_Impl, - { - unsafe extern "system" fn Present(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, window: super::super::Foundation::HWND) - where - Identity: ID3D12SharingContract_Impl, - { + pub const fn new() -> ID3D12SharingContract_Vtbl { + unsafe extern "system" fn Present(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, window: super::super::Foundation::HWND) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12SharingContract_Impl::Present(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&window)) } - unsafe extern "system" fn SharedFenceSignal(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, fencevalue: u64) - where - Identity: ID3D12SharingContract_Impl, - { + unsafe extern "system" fn SharedFenceSignal(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, fencevalue: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12SharingContract_Impl::SharedFenceSignal(this, windows_core::from_raw_borrowed(&pfence), core::mem::transmute_copy(&fencevalue)) } - unsafe extern "system" fn BeginCapturableWork(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) - where - Identity: ID3D12SharingContract_Impl, - { + unsafe extern "system" fn BeginCapturableWork(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12SharingContract_Impl::BeginCapturableWork(this, core::mem::transmute_copy(&guid)) } - unsafe extern "system" fn EndCapturableWork(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) - where - Identity: ID3D12SharingContract_Impl, - { + unsafe extern "system" fn EndCapturableWork(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12SharingContract_Impl::EndCapturableWork(this, core::mem::transmute_copy(&guid)) } @@ -4862,17 +3593,14 @@ impl ID3D12SharingContract_Vtbl { pub trait ID3D12StateObject_Impl: Sized + ID3D12Pageable_Impl {} impl windows_core::RuntimeName for ID3D12StateObject {} impl ID3D12StateObject_Vtbl { - pub const fn new() -> ID3D12StateObject_Vtbl - where - Identity: ID3D12StateObject_Impl, - { + pub const fn new() -> ID3D12StateObject_Vtbl { Self { base__: ID3D12Pageable_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ID3D12StateObjectProperties_Impl: Sized { +pub trait ID3D12StateObjectProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetShaderIdentifier(&self, pexportname: &windows_core::PCWSTR) -> *mut core::ffi::c_void; fn GetShaderStackSize(&self, pexportname: &windows_core::PCWSTR) -> u64; fn GetPipelineStackSize(&self) -> u64; @@ -4880,35 +3608,20 @@ pub trait ID3D12StateObjectProperties_Impl: Sized { } impl windows_core::RuntimeName for ID3D12StateObjectProperties {} impl ID3D12StateObjectProperties_Vtbl { - pub const fn new() -> ID3D12StateObjectProperties_Vtbl - where - Identity: ID3D12StateObjectProperties_Impl, - { - unsafe extern "system" fn GetShaderIdentifier(this: *mut core::ffi::c_void, pexportname: windows_core::PCWSTR) -> *mut core::ffi::c_void - where - Identity: ID3D12StateObjectProperties_Impl, - { + pub const fn new() -> ID3D12StateObjectProperties_Vtbl { + unsafe extern "system" fn GetShaderIdentifier(this: *mut core::ffi::c_void, pexportname: windows_core::PCWSTR) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12StateObjectProperties_Impl::GetShaderIdentifier(this, core::mem::transmute(&pexportname)) } - unsafe extern "system" fn GetShaderStackSize(this: *mut core::ffi::c_void, pexportname: windows_core::PCWSTR) -> u64 - where - Identity: ID3D12StateObjectProperties_Impl, - { + unsafe extern "system" fn GetShaderStackSize(this: *mut core::ffi::c_void, pexportname: windows_core::PCWSTR) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12StateObjectProperties_Impl::GetShaderStackSize(this, core::mem::transmute(&pexportname)) } - unsafe extern "system" fn GetPipelineStackSize(this: *mut core::ffi::c_void) -> u64 - where - Identity: ID3D12StateObjectProperties_Impl, - { + unsafe extern "system" fn GetPipelineStackSize(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12StateObjectProperties_Impl::GetPipelineStackSize(this) } - unsafe extern "system" fn SetPipelineStackSize(this: *mut core::ffi::c_void, pipelinestacksizeinbytes: u64) - where - Identity: ID3D12StateObjectProperties_Impl, - { + unsafe extern "system" fn SetPipelineStackSize(this: *mut core::ffi::c_void, pipelinestacksizeinbytes: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12StateObjectProperties_Impl::SetPipelineStackSize(this, core::mem::transmute_copy(&pipelinestacksizeinbytes)) } @@ -4929,14 +3642,8 @@ pub trait ID3D12StateObjectProperties1_Impl: Sized + ID3D12StateObjectProperties } impl windows_core::RuntimeName for ID3D12StateObjectProperties1 {} impl ID3D12StateObjectProperties1_Vtbl { - pub const fn new() -> ID3D12StateObjectProperties1_Vtbl - where - Identity: ID3D12StateObjectProperties1_Impl, - { - unsafe extern "system" fn GetProgramIdentifier(this: *mut core::ffi::c_void, result__: *mut D3D12_PROGRAM_IDENTIFIER, pprogramname: windows_core::PCWSTR) - where - Identity: ID3D12StateObjectProperties1_Impl, - { + pub const fn new() -> ID3D12StateObjectProperties1_Vtbl { + unsafe extern "system" fn GetProgramIdentifier(this: *mut core::ffi::c_void, result__: *mut D3D12_PROGRAM_IDENTIFIER, pprogramname: windows_core::PCWSTR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12StateObjectProperties1_Impl::GetProgramIdentifier(this, core::mem::transmute(&pprogramname)) } @@ -4946,7 +3653,7 @@ impl ID3D12StateObjectProperties1_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ID3D12SwapChainAssistant_Impl: Sized { +pub trait ID3D12SwapChainAssistant_Impl: Sized + windows_core::IUnknownImpl { fn GetLUID(&self) -> super::super::Foundation::LUID; fn GetSwapChainObject(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetCurrentResourceAndCommandQueue(&self, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void, riidqueue: *const windows_core::GUID, ppvqueue: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -4954,35 +3661,20 @@ pub trait ID3D12SwapChainAssistant_Impl: Sized { } impl windows_core::RuntimeName for ID3D12SwapChainAssistant {} impl ID3D12SwapChainAssistant_Vtbl { - pub const fn new() -> ID3D12SwapChainAssistant_Vtbl - where - Identity: ID3D12SwapChainAssistant_Impl, - { - unsafe extern "system" fn GetLUID(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::LUID) - where - Identity: ID3D12SwapChainAssistant_Impl, - { + pub const fn new() -> ID3D12SwapChainAssistant_Vtbl { + unsafe extern "system" fn GetLUID(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::LUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12SwapChainAssistant_Impl::GetLUID(this) } - unsafe extern "system" fn GetSwapChainObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12SwapChainAssistant_Impl, - { + unsafe extern "system" fn GetSwapChainObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12SwapChainAssistant_Impl::GetSwapChainObject(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetCurrentResourceAndCommandQueue(this: *mut core::ffi::c_void, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void, riidqueue: *const windows_core::GUID, ppvqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12SwapChainAssistant_Impl, - { + unsafe extern "system" fn GetCurrentResourceAndCommandQueue(this: *mut core::ffi::c_void, riidresource: *const windows_core::GUID, ppvresource: *mut *mut core::ffi::c_void, riidqueue: *const windows_core::GUID, ppvqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12SwapChainAssistant_Impl::GetCurrentResourceAndCommandQueue(this, core::mem::transmute_copy(&riidresource), core::mem::transmute_copy(&ppvresource), core::mem::transmute_copy(&riidqueue), core::mem::transmute_copy(&ppvqueue)).into() } - unsafe extern "system" fn InsertImplicitSync(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12SwapChainAssistant_Impl, - { + unsafe extern "system" fn InsertImplicitSync(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12SwapChainAssistant_Impl::InsertImplicitSync(this).into() } @@ -4998,27 +3690,18 @@ impl ID3D12SwapChainAssistant_Vtbl { iid == &::IID } } -pub trait ID3D12Tools_Impl: Sized { +pub trait ID3D12Tools_Impl: Sized + windows_core::IUnknownImpl { fn EnableShaderInstrumentation(&self, benable: super::super::Foundation::BOOL); fn ShaderInstrumentationEnabled(&self) -> super::super::Foundation::BOOL; } impl windows_core::RuntimeName for ID3D12Tools {} impl ID3D12Tools_Vtbl { - pub const fn new() -> ID3D12Tools_Vtbl - where - Identity: ID3D12Tools_Impl, - { - unsafe extern "system" fn EnableShaderInstrumentation(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL) - where - Identity: ID3D12Tools_Impl, - { + pub const fn new() -> ID3D12Tools_Vtbl { + unsafe extern "system" fn EnableShaderInstrumentation(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Tools_Impl::EnableShaderInstrumentation(this, core::mem::transmute_copy(&benable)) } - unsafe extern "system" fn ShaderInstrumentationEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: ID3D12Tools_Impl, - { + unsafe extern "system" fn ShaderInstrumentationEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Tools_Impl::ShaderInstrumentationEnabled(this) } @@ -5032,20 +3715,14 @@ impl ID3D12Tools_Vtbl { iid == &::IID } } -pub trait ID3D12VersionedRootSignatureDeserializer_Impl: Sized { +pub trait ID3D12VersionedRootSignatureDeserializer_Impl: Sized + windows_core::IUnknownImpl { fn GetRootSignatureDescAtVersion(&self, converttoversion: D3D_ROOT_SIGNATURE_VERSION) -> windows_core::Result<*mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC>; fn GetUnconvertedRootSignatureDesc(&self) -> *mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC; } impl windows_core::RuntimeName for ID3D12VersionedRootSignatureDeserializer {} impl ID3D12VersionedRootSignatureDeserializer_Vtbl { - pub const fn new() -> ID3D12VersionedRootSignatureDeserializer_Vtbl - where - Identity: ID3D12VersionedRootSignatureDeserializer_Impl, - { - unsafe extern "system" fn GetRootSignatureDescAtVersion(this: *mut core::ffi::c_void, converttoversion: D3D_ROOT_SIGNATURE_VERSION, ppdesc: *mut *mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC) -> windows_core::HRESULT - where - Identity: ID3D12VersionedRootSignatureDeserializer_Impl, - { + pub const fn new() -> ID3D12VersionedRootSignatureDeserializer_Vtbl { + unsafe extern "system" fn GetRootSignatureDescAtVersion(this: *mut core::ffi::c_void, converttoversion: D3D_ROOT_SIGNATURE_VERSION, ppdesc: *mut *mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12VersionedRootSignatureDeserializer_Impl::GetRootSignatureDescAtVersion(this, core::mem::transmute_copy(&converttoversion)) { Ok(ok__) => { @@ -5055,10 +3732,7 @@ impl ID3D12VersionedRootSignatureDeserializer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUnconvertedRootSignatureDesc(this: *mut core::ffi::c_void) -> *mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC - where - Identity: ID3D12VersionedRootSignatureDeserializer_Impl, - { + unsafe extern "system" fn GetUnconvertedRootSignatureDesc(this: *mut core::ffi::c_void) -> *mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VersionedRootSignatureDeserializer_Impl::GetUnconvertedRootSignatureDesc(this) } @@ -5072,20 +3746,14 @@ impl ID3D12VersionedRootSignatureDeserializer_Vtbl { iid == &::IID } } -pub trait ID3D12VirtualizationGuestDevice_Impl: Sized { +pub trait ID3D12VirtualizationGuestDevice_Impl: Sized + windows_core::IUnknownImpl { fn ShareWithHost(&self, pobject: Option<&ID3D12DeviceChild>) -> windows_core::Result; fn CreateFenceFd(&self, pfence: Option<&ID3D12Fence>, fencevalue: u64) -> windows_core::Result; } impl windows_core::RuntimeName for ID3D12VirtualizationGuestDevice {} impl ID3D12VirtualizationGuestDevice_Vtbl { - pub const fn new() -> ID3D12VirtualizationGuestDevice_Vtbl - where - Identity: ID3D12VirtualizationGuestDevice_Impl, - { - unsafe extern "system" fn ShareWithHost(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, phandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ID3D12VirtualizationGuestDevice_Impl, - { + pub const fn new() -> ID3D12VirtualizationGuestDevice_Vtbl { + unsafe extern "system" fn ShareWithHost(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, phandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12VirtualizationGuestDevice_Impl::ShareWithHost(this, windows_core::from_raw_borrowed(&pobject)) { Ok(ok__) => { @@ -5095,10 +3763,7 @@ impl ID3D12VirtualizationGuestDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFenceFd(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, fencevalue: u64, pfencefd: *mut i32) -> windows_core::HRESULT - where - Identity: ID3D12VirtualizationGuestDevice_Impl, - { + unsafe extern "system" fn CreateFenceFd(this: *mut core::ffi::c_void, pfence: *mut core::ffi::c_void, fencevalue: u64, pfencefd: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D12VirtualizationGuestDevice_Impl::CreateFenceFd(this, windows_core::from_raw_borrowed(&pfence), core::mem::transmute_copy(&fencevalue)) { Ok(ok__) => { @@ -5118,7 +3783,7 @@ impl ID3D12VirtualizationGuestDevice_Vtbl { iid == &::IID } } -pub trait ID3D12WorkGraphProperties_Impl: Sized { +pub trait ID3D12WorkGraphProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetNumWorkGraphs(&self) -> u32; fn GetProgramName(&self, workgraphindex: u32) -> windows_core::PCWSTR; fn GetWorkGraphIndex(&self, pprogramname: &windows_core::PCWSTR) -> u32; @@ -5135,98 +3800,56 @@ pub trait ID3D12WorkGraphProperties_Impl: Sized { } impl windows_core::RuntimeName for ID3D12WorkGraphProperties {} impl ID3D12WorkGraphProperties_Vtbl { - pub const fn new() -> ID3D12WorkGraphProperties_Vtbl - where - Identity: ID3D12WorkGraphProperties_Impl, - { - unsafe extern "system" fn GetNumWorkGraphs(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12WorkGraphProperties_Impl, - { + pub const fn new() -> ID3D12WorkGraphProperties_Vtbl { + unsafe extern "system" fn GetNumWorkGraphs(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetNumWorkGraphs(this) } - unsafe extern "system" fn GetProgramName(this: *mut core::ffi::c_void, workgraphindex: u32) -> windows_core::PCWSTR - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetProgramName(this: *mut core::ffi::c_void, workgraphindex: u32) -> windows_core::PCWSTR { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetProgramName(this, core::mem::transmute_copy(&workgraphindex)) } - unsafe extern "system" fn GetWorkGraphIndex(this: *mut core::ffi::c_void, pprogramname: windows_core::PCWSTR) -> u32 - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetWorkGraphIndex(this: *mut core::ffi::c_void, pprogramname: windows_core::PCWSTR) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetWorkGraphIndex(this, core::mem::transmute(&pprogramname)) } - unsafe extern "system" fn GetNumNodes(this: *mut core::ffi::c_void, workgraphindex: u32) -> u32 - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetNumNodes(this: *mut core::ffi::c_void, workgraphindex: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetNumNodes(this, core::mem::transmute_copy(&workgraphindex)) } - unsafe extern "system" fn GetNodeID(this: *mut core::ffi::c_void, result__: *mut D3D12_NODE_ID, workgraphindex: u32, nodeindex: u32) - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetNodeID(this: *mut core::ffi::c_void, result__: *mut D3D12_NODE_ID, workgraphindex: u32, nodeindex: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12WorkGraphProperties_Impl::GetNodeID(this, core::mem::transmute_copy(&workgraphindex), core::mem::transmute_copy(&nodeindex)) } - unsafe extern "system" fn GetNodeIndex(this: *mut core::ffi::c_void, workgraphindex: u32, nodeid: D3D12_NODE_ID) -> u32 - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetNodeIndex(this: *mut core::ffi::c_void, workgraphindex: u32, nodeid: D3D12_NODE_ID) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetNodeIndex(this, core::mem::transmute_copy(&workgraphindex), core::mem::transmute(&nodeid)) } - unsafe extern "system" fn GetNodeLocalRootArgumentsTableIndex(this: *mut core::ffi::c_void, workgraphindex: u32, nodeindex: u32) -> u32 - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetNodeLocalRootArgumentsTableIndex(this: *mut core::ffi::c_void, workgraphindex: u32, nodeindex: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetNodeLocalRootArgumentsTableIndex(this, core::mem::transmute_copy(&workgraphindex), core::mem::transmute_copy(&nodeindex)) } - unsafe extern "system" fn GetNumEntrypoints(this: *mut core::ffi::c_void, workgraphindex: u32) -> u32 - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetNumEntrypoints(this: *mut core::ffi::c_void, workgraphindex: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetNumEntrypoints(this, core::mem::transmute_copy(&workgraphindex)) } - unsafe extern "system" fn GetEntrypointID(this: *mut core::ffi::c_void, result__: *mut D3D12_NODE_ID, workgraphindex: u32, entrypointindex: u32) - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetEntrypointID(this: *mut core::ffi::c_void, result__: *mut D3D12_NODE_ID, workgraphindex: u32, entrypointindex: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12WorkGraphProperties_Impl::GetEntrypointID(this, core::mem::transmute_copy(&workgraphindex), core::mem::transmute_copy(&entrypointindex)) } - unsafe extern "system" fn GetEntrypointIndex(this: *mut core::ffi::c_void, workgraphindex: u32, nodeid: D3D12_NODE_ID) -> u32 - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetEntrypointIndex(this: *mut core::ffi::c_void, workgraphindex: u32, nodeid: D3D12_NODE_ID) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetEntrypointIndex(this, core::mem::transmute_copy(&workgraphindex), core::mem::transmute(&nodeid)) } - unsafe extern "system" fn GetEntrypointRecordSizeInBytes(this: *mut core::ffi::c_void, workgraphindex: u32, entrypointindex: u32) -> u32 - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetEntrypointRecordSizeInBytes(this: *mut core::ffi::c_void, workgraphindex: u32, entrypointindex: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetEntrypointRecordSizeInBytes(this, core::mem::transmute_copy(&workgraphindex), core::mem::transmute_copy(&entrypointindex)) } - unsafe extern "system" fn GetWorkGraphMemoryRequirements(this: *mut core::ffi::c_void, workgraphindex: u32, pworkgraphmemoryrequirements: *mut D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS) - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetWorkGraphMemoryRequirements(this: *mut core::ffi::c_void, workgraphindex: u32, pworkgraphmemoryrequirements: *mut D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetWorkGraphMemoryRequirements(this, core::mem::transmute_copy(&workgraphindex), core::mem::transmute_copy(&pworkgraphmemoryrequirements)) } - unsafe extern "system" fn GetEntrypointRecordAlignmentInBytes(this: *mut core::ffi::c_void, workgraphindex: u32, entrypointindex: u32) -> u32 - where - Identity: ID3D12WorkGraphProperties_Impl, - { + unsafe extern "system" fn GetEntrypointRecordAlignmentInBytes(this: *mut core::ffi::c_void, workgraphindex: u32, entrypointindex: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12WorkGraphProperties_Impl::GetEntrypointRecordAlignmentInBytes(this, core::mem::transmute_copy(&workgraphindex), core::mem::transmute_copy(&entrypointindex)) } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/impl.rs index c3f5bb7cd1..85776593d3 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirect3D9_Impl: Sized { +pub trait IDirect3D9_Impl: Sized + windows_core::IUnknownImpl { fn RegisterSoftwareDevice(&self, pinitializefunction: *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetAdapterCount(&self) -> u32; fn GetAdapterIdentifier(&self, adapter: u32, flags: u32, pidentifier: *mut D3DADAPTER_IDENTIFIER9) -> windows_core::Result<()>; @@ -19,105 +19,60 @@ pub trait IDirect3D9_Impl: Sized { impl windows_core::RuntimeName for IDirect3D9 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirect3D9_Vtbl { - pub const fn new() -> IDirect3D9_Vtbl - where - Identity: IDirect3D9_Impl, - { - unsafe extern "system" fn RegisterSoftwareDevice(this: *mut core::ffi::c_void, pinitializefunction: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + pub const fn new() -> IDirect3D9_Vtbl { + unsafe extern "system" fn RegisterSoftwareDevice(this: *mut core::ffi::c_void, pinitializefunction: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::RegisterSoftwareDevice(this, core::mem::transmute_copy(&pinitializefunction)).into() } - unsafe extern "system" fn GetAdapterCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn GetAdapterCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::GetAdapterCount(this) } - unsafe extern "system" fn GetAdapterIdentifier(this: *mut core::ffi::c_void, adapter: u32, flags: u32, pidentifier: *mut D3DADAPTER_IDENTIFIER9) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn GetAdapterIdentifier(this: *mut core::ffi::c_void, adapter: u32, flags: u32, pidentifier: *mut D3DADAPTER_IDENTIFIER9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::GetAdapterIdentifier(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pidentifier)).into() } - unsafe extern "system" fn GetAdapterModeCount(this: *mut core::ffi::c_void, adapter: u32, format: D3DFORMAT) -> u32 - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn GetAdapterModeCount(this: *mut core::ffi::c_void, adapter: u32, format: D3DFORMAT) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::GetAdapterModeCount(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&format)) } - unsafe extern "system" fn EnumAdapterModes(this: *mut core::ffi::c_void, adapter: u32, format: D3DFORMAT, mode: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn EnumAdapterModes(this: *mut core::ffi::c_void, adapter: u32, format: D3DFORMAT, mode: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::EnumAdapterModes(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&format), core::mem::transmute_copy(&mode), core::mem::transmute_copy(&pmode)).into() } - unsafe extern "system" fn GetAdapterDisplayMode(this: *mut core::ffi::c_void, adapter: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn GetAdapterDisplayMode(this: *mut core::ffi::c_void, adapter: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::GetAdapterDisplayMode(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&pmode)).into() } - unsafe extern "system" fn CheckDeviceType(this: *mut core::ffi::c_void, adapter: u32, devtype: D3DDEVTYPE, adapterformat: D3DFORMAT, backbufferformat: D3DFORMAT, bwindowed: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn CheckDeviceType(this: *mut core::ffi::c_void, adapter: u32, devtype: D3DDEVTYPE, adapterformat: D3DFORMAT, backbufferformat: D3DFORMAT, bwindowed: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::CheckDeviceType(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devtype), core::mem::transmute_copy(&adapterformat), core::mem::transmute_copy(&backbufferformat), core::mem::transmute_copy(&bwindowed)).into() } - unsafe extern "system" fn CheckDeviceFormat(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, adapterformat: D3DFORMAT, usage: u32, rtype: D3DRESOURCETYPE, checkformat: D3DFORMAT) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn CheckDeviceFormat(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, adapterformat: D3DFORMAT, usage: u32, rtype: D3DRESOURCETYPE, checkformat: D3DFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::CheckDeviceFormat(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devicetype), core::mem::transmute_copy(&adapterformat), core::mem::transmute_copy(&usage), core::mem::transmute_copy(&rtype), core::mem::transmute_copy(&checkformat)).into() } - unsafe extern "system" fn CheckDeviceMultiSampleType(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, surfaceformat: D3DFORMAT, windowed: super::super::Foundation::BOOL, multisampletype: D3DMULTISAMPLE_TYPE, pqualitylevels: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn CheckDeviceMultiSampleType(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, surfaceformat: D3DFORMAT, windowed: super::super::Foundation::BOOL, multisampletype: D3DMULTISAMPLE_TYPE, pqualitylevels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::CheckDeviceMultiSampleType(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devicetype), core::mem::transmute_copy(&surfaceformat), core::mem::transmute_copy(&windowed), core::mem::transmute_copy(&multisampletype), core::mem::transmute_copy(&pqualitylevels)).into() } - unsafe extern "system" fn CheckDepthStencilMatch(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, adapterformat: D3DFORMAT, rendertargetformat: D3DFORMAT, depthstencilformat: D3DFORMAT) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn CheckDepthStencilMatch(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, adapterformat: D3DFORMAT, rendertargetformat: D3DFORMAT, depthstencilformat: D3DFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::CheckDepthStencilMatch(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devicetype), core::mem::transmute_copy(&adapterformat), core::mem::transmute_copy(&rendertargetformat), core::mem::transmute_copy(&depthstencilformat)).into() } - unsafe extern "system" fn CheckDeviceFormatConversion(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, sourceformat: D3DFORMAT, targetformat: D3DFORMAT) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn CheckDeviceFormatConversion(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, sourceformat: D3DFORMAT, targetformat: D3DFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::CheckDeviceFormatConversion(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devicetype), core::mem::transmute_copy(&sourceformat), core::mem::transmute_copy(&targetformat)).into() } - unsafe extern "system" fn GetDeviceCaps(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, pcaps: *mut D3DCAPS9) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn GetDeviceCaps(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, pcaps: *mut D3DCAPS9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::GetDeviceCaps(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devicetype), core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetAdapterMonitor(this: *mut core::ffi::c_void, adapter: u32) -> super::Gdi::HMONITOR - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn GetAdapterMonitor(this: *mut core::ffi::c_void, adapter: u32) -> super::Gdi::HMONITOR { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::GetAdapterMonitor(this, core::mem::transmute_copy(&adapter)) } - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: super::super::Foundation::HWND, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, ppreturneddeviceinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3D9_Impl, - { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: super::super::Foundation::HWND, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, ppreturneddeviceinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::CreateDevice(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devicetype), core::mem::transmute_copy(&hfocuswindow), core::mem::transmute_copy(&behaviorflags), core::mem::transmute_copy(&ppresentationparameters), core::mem::transmute_copy(&ppreturneddeviceinterface)).into() } @@ -155,42 +110,24 @@ pub trait IDirect3D9Ex_Impl: Sized + IDirect3D9_Impl { impl windows_core::RuntimeName for IDirect3D9Ex {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirect3D9Ex_Vtbl { - pub const fn new() -> IDirect3D9Ex_Vtbl - where - Identity: IDirect3D9Ex_Impl, - { - unsafe extern "system" fn GetAdapterModeCountEx(this: *mut core::ffi::c_void, adapter: u32, pfilter: *const D3DDISPLAYMODEFILTER) -> u32 - where - Identity: IDirect3D9Ex_Impl, - { + pub const fn new() -> IDirect3D9Ex_Vtbl { + unsafe extern "system" fn GetAdapterModeCountEx(this: *mut core::ffi::c_void, adapter: u32, pfilter: *const D3DDISPLAYMODEFILTER) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9Ex_Impl::GetAdapterModeCountEx(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&pfilter)) } - unsafe extern "system" fn EnumAdapterModesEx(this: *mut core::ffi::c_void, adapter: u32, pfilter: *const D3DDISPLAYMODEFILTER, mode: u32, pmode: *mut D3DDISPLAYMODEEX) -> windows_core::HRESULT - where - Identity: IDirect3D9Ex_Impl, - { + unsafe extern "system" fn EnumAdapterModesEx(this: *mut core::ffi::c_void, adapter: u32, pfilter: *const D3DDISPLAYMODEFILTER, mode: u32, pmode: *mut D3DDISPLAYMODEEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9Ex_Impl::EnumAdapterModesEx(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&mode), core::mem::transmute_copy(&pmode)).into() } - unsafe extern "system" fn GetAdapterDisplayModeEx(this: *mut core::ffi::c_void, adapter: u32, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> windows_core::HRESULT - where - Identity: IDirect3D9Ex_Impl, - { + unsafe extern "system" fn GetAdapterDisplayModeEx(this: *mut core::ffi::c_void, adapter: u32, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9Ex_Impl::GetAdapterDisplayModeEx(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&pmode), core::mem::transmute_copy(&protation)).into() } - unsafe extern "system" fn CreateDeviceEx(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: super::super::Foundation::HWND, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX, ppreturneddeviceinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3D9Ex_Impl, - { + unsafe extern "system" fn CreateDeviceEx(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: super::super::Foundation::HWND, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX, ppreturneddeviceinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9Ex_Impl::CreateDeviceEx(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devicetype), core::mem::transmute_copy(&hfocuswindow), core::mem::transmute_copy(&behaviorflags), core::mem::transmute_copy(&ppresentationparameters), core::mem::transmute_copy(&pfullscreendisplaymode), core::mem::transmute_copy(&ppreturneddeviceinterface)).into() } - unsafe extern "system" fn GetAdapterLUID(this: *mut core::ffi::c_void, adapter: u32, pluid: *mut super::super::Foundation::LUID) -> windows_core::HRESULT - where - Identity: IDirect3D9Ex_Impl, - { + unsafe extern "system" fn GetAdapterLUID(this: *mut core::ffi::c_void, adapter: u32, pluid: *mut super::super::Foundation::LUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9Ex_Impl::GetAdapterLUID(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&pluid)).into() } @@ -217,49 +154,28 @@ pub trait IDirect3DBaseTexture9_Impl: Sized + IDirect3DResource9_Impl { } impl windows_core::RuntimeName for IDirect3DBaseTexture9 {} impl IDirect3DBaseTexture9_Vtbl { - pub const fn new() -> IDirect3DBaseTexture9_Vtbl - where - Identity: IDirect3DBaseTexture9_Impl, - { - unsafe extern "system" fn SetLOD(this: *mut core::ffi::c_void, lodnew: u32) -> u32 - where - Identity: IDirect3DBaseTexture9_Impl, - { + pub const fn new() -> IDirect3DBaseTexture9_Vtbl { + unsafe extern "system" fn SetLOD(this: *mut core::ffi::c_void, lodnew: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DBaseTexture9_Impl::SetLOD(this, core::mem::transmute_copy(&lodnew)) } - unsafe extern "system" fn GetLOD(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDirect3DBaseTexture9_Impl, - { + unsafe extern "system" fn GetLOD(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DBaseTexture9_Impl::GetLOD(this) } - unsafe extern "system" fn GetLevelCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDirect3DBaseTexture9_Impl, - { + unsafe extern "system" fn GetLevelCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DBaseTexture9_Impl::GetLevelCount(this) } - unsafe extern "system" fn SetAutoGenFilterType(this: *mut core::ffi::c_void, filtertype: D3DTEXTUREFILTERTYPE) -> windows_core::HRESULT - where - Identity: IDirect3DBaseTexture9_Impl, - { + unsafe extern "system" fn SetAutoGenFilterType(this: *mut core::ffi::c_void, filtertype: D3DTEXTUREFILTERTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DBaseTexture9_Impl::SetAutoGenFilterType(this, core::mem::transmute_copy(&filtertype)).into() } - unsafe extern "system" fn GetAutoGenFilterType(this: *mut core::ffi::c_void) -> D3DTEXTUREFILTERTYPE - where - Identity: IDirect3DBaseTexture9_Impl, - { + unsafe extern "system" fn GetAutoGenFilterType(this: *mut core::ffi::c_void) -> D3DTEXTUREFILTERTYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DBaseTexture9_Impl::GetAutoGenFilterType(this) } - unsafe extern "system" fn GenerateMipSubLevels(this: *mut core::ffi::c_void) - where - Identity: IDirect3DBaseTexture9_Impl, - { + unsafe extern "system" fn GenerateMipSubLevels(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DBaseTexture9_Impl::GenerateMipSubLevels(this) } @@ -286,21 +202,12 @@ pub trait IDirect3DCubeTexture9_Impl: Sized + IDirect3DBaseTexture9_Impl { } impl windows_core::RuntimeName for IDirect3DCubeTexture9 {} impl IDirect3DCubeTexture9_Vtbl { - pub const fn new() -> IDirect3DCubeTexture9_Vtbl - where - Identity: IDirect3DCubeTexture9_Impl, - { - unsafe extern "system" fn GetLevelDesc(this: *mut core::ffi::c_void, level: u32, pdesc: *mut D3DSURFACE_DESC) -> windows_core::HRESULT - where - Identity: IDirect3DCubeTexture9_Impl, - { + pub const fn new() -> IDirect3DCubeTexture9_Vtbl { + unsafe extern "system" fn GetLevelDesc(this: *mut core::ffi::c_void, level: u32, pdesc: *mut D3DSURFACE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCubeTexture9_Impl::GetLevelDesc(this, core::mem::transmute_copy(&level), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetCubeMapSurface(this: *mut core::ffi::c_void, facetype: D3DCUBEMAP_FACES, level: u32, ppcubemapsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DCubeTexture9_Impl, - { + unsafe extern "system" fn GetCubeMapSurface(this: *mut core::ffi::c_void, facetype: D3DCUBEMAP_FACES, level: u32, ppcubemapsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DCubeTexture9_Impl::GetCubeMapSurface(this, core::mem::transmute_copy(&facetype), core::mem::transmute_copy(&level)) { Ok(ok__) => { @@ -310,24 +217,15 @@ impl IDirect3DCubeTexture9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LockRect(this: *mut core::ffi::c_void, facetype: D3DCUBEMAP_FACES, level: u32, plockedrect: *mut D3DLOCKED_RECT, prect: *const super::super::Foundation::RECT, flags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DCubeTexture9_Impl, - { + unsafe extern "system" fn LockRect(this: *mut core::ffi::c_void, facetype: D3DCUBEMAP_FACES, level: u32, plockedrect: *mut D3DLOCKED_RECT, prect: *const super::super::Foundation::RECT, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCubeTexture9_Impl::LockRect(this, core::mem::transmute_copy(&facetype), core::mem::transmute_copy(&level), core::mem::transmute_copy(&plockedrect), core::mem::transmute_copy(&prect), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn UnlockRect(this: *mut core::ffi::c_void, facetype: D3DCUBEMAP_FACES, level: u32) -> windows_core::HRESULT - where - Identity: IDirect3DCubeTexture9_Impl, - { + unsafe extern "system" fn UnlockRect(this: *mut core::ffi::c_void, facetype: D3DCUBEMAP_FACES, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCubeTexture9_Impl::UnlockRect(this, core::mem::transmute_copy(&facetype), core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn AddDirtyRect(this: *mut core::ffi::c_void, facetype: D3DCUBEMAP_FACES, pdirtyrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirect3DCubeTexture9_Impl, - { + unsafe extern "system" fn AddDirtyRect(this: *mut core::ffi::c_void, facetype: D3DCUBEMAP_FACES, pdirtyrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCubeTexture9_Impl::AddDirtyRect(this, core::mem::transmute_copy(&facetype), core::mem::transmute_copy(&pdirtyrect)).into() } @@ -345,7 +243,7 @@ impl IDirect3DCubeTexture9_Vtbl { } } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] -pub trait IDirect3DDevice9_Impl: Sized { +pub trait IDirect3DDevice9_Impl: Sized + windows_core::IUnknownImpl { fn TestCooperativeLevel(&self) -> windows_core::Result<()>; fn GetAvailableTextureMem(&self) -> u32; fn EvictManagedResources(&self) -> windows_core::Result<()>; @@ -467,35 +365,20 @@ pub trait IDirect3DDevice9_Impl: Sized { impl windows_core::RuntimeName for IDirect3DDevice9 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] impl IDirect3DDevice9_Vtbl { - pub const fn new() -> IDirect3DDevice9_Vtbl - where - Identity: IDirect3DDevice9_Impl, - { - unsafe extern "system" fn TestCooperativeLevel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + pub const fn new() -> IDirect3DDevice9_Vtbl { + unsafe extern "system" fn TestCooperativeLevel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::TestCooperativeLevel(this).into() } - unsafe extern "system" fn GetAvailableTextureMem(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetAvailableTextureMem(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetAvailableTextureMem(this) } - unsafe extern "system" fn EvictManagedResources(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn EvictManagedResources(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::EvictManagedResources(this).into() } - unsafe extern "system" fn GetDirect3D(this: *mut core::ffi::c_void, ppd3d9: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetDirect3D(this: *mut core::ffi::c_void, ppd3d9: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::GetDirect3D(this) { Ok(ok__) => { @@ -505,59 +388,35 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceCaps(this: *mut core::ffi::c_void, pcaps: *mut D3DCAPS9) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetDeviceCaps(this: *mut core::ffi::c_void, pcaps: *mut D3DCAPS9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetDeviceCaps(this, core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, iswapchain: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, iswapchain: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetDisplayMode(this, core::mem::transmute_copy(&iswapchain), core::mem::transmute_copy(&pmode)).into() } - unsafe extern "system" fn GetCreationParameters(this: *mut core::ffi::c_void, pparameters: *mut D3DDEVICE_CREATION_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetCreationParameters(this: *mut core::ffi::c_void, pparameters: *mut D3DDEVICE_CREATION_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetCreationParameters(this, core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn SetCursorProperties(this: *mut core::ffi::c_void, xhotspot: u32, yhotspot: u32, pcursorbitmap: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetCursorProperties(this: *mut core::ffi::c_void, xhotspot: u32, yhotspot: u32, pcursorbitmap: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetCursorProperties(this, core::mem::transmute_copy(&xhotspot), core::mem::transmute_copy(&yhotspot), windows_core::from_raw_borrowed(&pcursorbitmap)).into() } - unsafe extern "system" fn SetCursorPosition(this: *mut core::ffi::c_void, x: i32, y: i32, flags: u32) - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetCursorPosition(this: *mut core::ffi::c_void, x: i32, y: i32, flags: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetCursorPosition(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&flags)) } - unsafe extern "system" fn ShowCursor(this: *mut core::ffi::c_void, bshow: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn ShowCursor(this: *mut core::ffi::c_void, bshow: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::ShowCursor(this, core::mem::transmute_copy(&bshow)) } - unsafe extern "system" fn CreateAdditionalSwapChain(this: *mut core::ffi::c_void, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateAdditionalSwapChain(this: *mut core::ffi::c_void, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateAdditionalSwapChain(this, core::mem::transmute_copy(&ppresentationparameters), core::mem::transmute_copy(&pswapchain)).into() } - unsafe extern "system" fn GetSwapChain(this: *mut core::ffi::c_void, iswapchain: u32, pswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetSwapChain(this: *mut core::ffi::c_void, iswapchain: u32, pswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::GetSwapChain(this, core::mem::transmute_copy(&iswapchain)) { Ok(ok__) => { @@ -567,31 +426,19 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOfSwapChains(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetNumberOfSwapChains(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetNumberOfSwapChains(this) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, ppresentationparameters: *mut D3DPRESENT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, ppresentationparameters: *mut D3DPRESENT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::Reset(this, core::mem::transmute_copy(&ppresentationparameters)).into() } - unsafe extern "system" fn Present(this: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestrect: *const super::super::Foundation::RECT, hdestwindowoverride: super::super::Foundation::HWND, pdirtyregion: *const super::Gdi::RGNDATA) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn Present(this: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestrect: *const super::super::Foundation::RECT, hdestwindowoverride: super::super::Foundation::HWND, pdirtyregion: *const super::Gdi::RGNDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::Present(this, core::mem::transmute_copy(&psourcerect), core::mem::transmute_copy(&pdestrect), core::mem::transmute_copy(&hdestwindowoverride), core::mem::transmute_copy(&pdirtyregion)).into() } - unsafe extern "system" fn GetBackBuffer(this: *mut core::ffi::c_void, iswapchain: u32, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE, ppbackbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetBackBuffer(this: *mut core::ffi::c_void, iswapchain: u32, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE, ppbackbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::GetBackBuffer(this, core::mem::transmute_copy(&iswapchain), core::mem::transmute_copy(&ibackbuffer), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -601,143 +448,83 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRasterStatus(this: *mut core::ffi::c_void, iswapchain: u32, prasterstatus: *mut D3DRASTER_STATUS) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetRasterStatus(this: *mut core::ffi::c_void, iswapchain: u32, prasterstatus: *mut D3DRASTER_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetRasterStatus(this, core::mem::transmute_copy(&iswapchain), core::mem::transmute_copy(&prasterstatus)).into() } - unsafe extern "system" fn SetDialogBoxMode(this: *mut core::ffi::c_void, benabledialogs: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetDialogBoxMode(this: *mut core::ffi::c_void, benabledialogs: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetDialogBoxMode(this, core::mem::transmute_copy(&benabledialogs)).into() } - unsafe extern "system" fn SetGammaRamp(this: *mut core::ffi::c_void, iswapchain: u32, flags: u32, pramp: *const D3DGAMMARAMP) - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetGammaRamp(this: *mut core::ffi::c_void, iswapchain: u32, flags: u32, pramp: *const D3DGAMMARAMP) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetGammaRamp(this, core::mem::transmute_copy(&iswapchain), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pramp)) } - unsafe extern "system" fn GetGammaRamp(this: *mut core::ffi::c_void, iswapchain: u32, pramp: *mut D3DGAMMARAMP) - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetGammaRamp(this: *mut core::ffi::c_void, iswapchain: u32, pramp: *mut D3DGAMMARAMP) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetGammaRamp(this, core::mem::transmute_copy(&iswapchain), core::mem::transmute_copy(&pramp)) } - unsafe extern "system" fn CreateTexture(this: *mut core::ffi::c_void, width: u32, height: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, pptexture: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateTexture(this: *mut core::ffi::c_void, width: u32, height: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, pptexture: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateTexture(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&levels), core::mem::transmute_copy(&usage), core::mem::transmute_copy(&format), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&pptexture), core::mem::transmute_copy(&psharedhandle)).into() } - unsafe extern "system" fn CreateVolumeTexture(this: *mut core::ffi::c_void, width: u32, height: u32, depth: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppvolumetexture: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateVolumeTexture(this: *mut core::ffi::c_void, width: u32, height: u32, depth: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppvolumetexture: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateVolumeTexture(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&depth), core::mem::transmute_copy(&levels), core::mem::transmute_copy(&usage), core::mem::transmute_copy(&format), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&ppvolumetexture), core::mem::transmute_copy(&psharedhandle)).into() } - unsafe extern "system" fn CreateCubeTexture(this: *mut core::ffi::c_void, edgelength: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppcubetexture: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateCubeTexture(this: *mut core::ffi::c_void, edgelength: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppcubetexture: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateCubeTexture(this, core::mem::transmute_copy(&edgelength), core::mem::transmute_copy(&levels), core::mem::transmute_copy(&usage), core::mem::transmute_copy(&format), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&ppcubetexture), core::mem::transmute_copy(&psharedhandle)).into() } - unsafe extern "system" fn CreateVertexBuffer(this: *mut core::ffi::c_void, length: u32, usage: u32, fvf: u32, pool: D3DPOOL, ppvertexbuffer: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateVertexBuffer(this: *mut core::ffi::c_void, length: u32, usage: u32, fvf: u32, pool: D3DPOOL, ppvertexbuffer: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateVertexBuffer(this, core::mem::transmute_copy(&length), core::mem::transmute_copy(&usage), core::mem::transmute_copy(&fvf), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&ppvertexbuffer), core::mem::transmute_copy(&psharedhandle)).into() } - unsafe extern "system" fn CreateIndexBuffer(this: *mut core::ffi::c_void, length: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppindexbuffer: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateIndexBuffer(this: *mut core::ffi::c_void, length: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppindexbuffer: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateIndexBuffer(this, core::mem::transmute_copy(&length), core::mem::transmute_copy(&usage), core::mem::transmute_copy(&format), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&ppindexbuffer), core::mem::transmute_copy(&psharedhandle)).into() } - unsafe extern "system" fn CreateRenderTarget(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateRenderTarget(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateRenderTarget(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&multisample), core::mem::transmute_copy(&multisamplequality), core::mem::transmute_copy(&lockable), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle)).into() } - unsafe extern "system" fn CreateDepthStencilSurface(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateDepthStencilSurface(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateDepthStencilSurface(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&multisample), core::mem::transmute_copy(&multisamplequality), core::mem::transmute_copy(&discard), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle)).into() } - unsafe extern "system" fn UpdateSurface(this: *mut core::ffi::c_void, psourcesurface: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestinationsurface: *mut core::ffi::c_void, pdestpoint: *const super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn UpdateSurface(this: *mut core::ffi::c_void, psourcesurface: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestinationsurface: *mut core::ffi::c_void, pdestpoint: *const super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::UpdateSurface(this, windows_core::from_raw_borrowed(&psourcesurface), core::mem::transmute_copy(&psourcerect), windows_core::from_raw_borrowed(&pdestinationsurface), core::mem::transmute_copy(&pdestpoint)).into() } - unsafe extern "system" fn UpdateTexture(this: *mut core::ffi::c_void, psourcetexture: *mut core::ffi::c_void, pdestinationtexture: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn UpdateTexture(this: *mut core::ffi::c_void, psourcetexture: *mut core::ffi::c_void, pdestinationtexture: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::UpdateTexture(this, windows_core::from_raw_borrowed(&psourcetexture), windows_core::from_raw_borrowed(&pdestinationtexture)).into() } - unsafe extern "system" fn GetRenderTargetData(this: *mut core::ffi::c_void, prendertarget: *mut core::ffi::c_void, pdestsurface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetRenderTargetData(this: *mut core::ffi::c_void, prendertarget: *mut core::ffi::c_void, pdestsurface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetRenderTargetData(this, windows_core::from_raw_borrowed(&prendertarget), windows_core::from_raw_borrowed(&pdestsurface)).into() } - unsafe extern "system" fn GetFrontBufferData(this: *mut core::ffi::c_void, iswapchain: u32, pdestsurface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetFrontBufferData(this: *mut core::ffi::c_void, iswapchain: u32, pdestsurface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetFrontBufferData(this, core::mem::transmute_copy(&iswapchain), windows_core::from_raw_borrowed(&pdestsurface)).into() } - unsafe extern "system" fn StretchRect(this: *mut core::ffi::c_void, psourcesurface: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestsurface: *mut core::ffi::c_void, pdestrect: *const super::super::Foundation::RECT, filter: D3DTEXTUREFILTERTYPE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn StretchRect(this: *mut core::ffi::c_void, psourcesurface: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestsurface: *mut core::ffi::c_void, pdestrect: *const super::super::Foundation::RECT, filter: D3DTEXTUREFILTERTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::StretchRect(this, windows_core::from_raw_borrowed(&psourcesurface), core::mem::transmute_copy(&psourcerect), windows_core::from_raw_borrowed(&pdestsurface), core::mem::transmute_copy(&pdestrect), core::mem::transmute_copy(&filter)).into() } - unsafe extern "system" fn ColorFill(this: *mut core::ffi::c_void, psurface: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT, color: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn ColorFill(this: *mut core::ffi::c_void, psurface: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::ColorFill(this, windows_core::from_raw_borrowed(&psurface), core::mem::transmute_copy(&prect), core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn CreateOffscreenPlainSurface(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, pool: D3DPOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateOffscreenPlainSurface(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, pool: D3DPOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateOffscreenPlainSurface(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle)).into() } - unsafe extern "system" fn SetRenderTarget(this: *mut core::ffi::c_void, rendertargetindex: u32, prendertarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetRenderTarget(this: *mut core::ffi::c_void, rendertargetindex: u32, prendertarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetRenderTarget(this, core::mem::transmute_copy(&rendertargetindex), windows_core::from_raw_borrowed(&prendertarget)).into() } - unsafe extern "system" fn GetRenderTarget(this: *mut core::ffi::c_void, rendertargetindex: u32, pprendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetRenderTarget(this: *mut core::ffi::c_void, rendertargetindex: u32, pprendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::GetRenderTarget(this, core::mem::transmute_copy(&rendertargetindex)) { Ok(ok__) => { @@ -747,17 +534,11 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDepthStencilSurface(this: *mut core::ffi::c_void, pnewzstencil: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetDepthStencilSurface(this: *mut core::ffi::c_void, pnewzstencil: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetDepthStencilSurface(this, windows_core::from_raw_borrowed(&pnewzstencil)).into() } - unsafe extern "system" fn GetDepthStencilSurface(this: *mut core::ffi::c_void, ppzstencilsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetDepthStencilSurface(this: *mut core::ffi::c_void, ppzstencilsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::GetDepthStencilSurface(this) { Ok(ok__) => { @@ -767,136 +548,79 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginScene(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn BeginScene(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::BeginScene(this).into() } - unsafe extern "system" fn EndScene(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn EndScene(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::EndScene(this).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void, count: u32, prects: *const D3DRECT, flags: u32, color: u32, z: f32, stencil: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void, count: u32, prects: *const D3DRECT, flags: u32, color: u32, z: f32, stencil: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::Clear(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&prects), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&color), core::mem::transmute_copy(&z), core::mem::transmute_copy(&stencil)).into() } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, state: D3DTRANSFORMSTATETYPE, pmatrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, state: D3DTRANSFORMSTATETYPE, pmatrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetTransform(this, core::mem::transmute_copy(&state), core::mem::transmute_copy(&pmatrix)).into() } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetTransform(this, core::mem::transmute_copy(&state), core::mem::transmute_copy(&pmatrix)).into() } - unsafe extern "system" fn MultiplyTransform(this: *mut core::ffi::c_void, param0: D3DTRANSFORMSTATETYPE, param1: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn MultiplyTransform(this: *mut core::ffi::c_void, param0: D3DTRANSFORMSTATETYPE, param1: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::MultiplyTransform(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetViewport(this: *mut core::ffi::c_void, pviewport: *const D3DVIEWPORT9) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetViewport(this: *mut core::ffi::c_void, pviewport: *const D3DVIEWPORT9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetViewport(this, core::mem::transmute_copy(&pviewport)).into() } - unsafe extern "system" fn GetViewport(this: *mut core::ffi::c_void, pviewport: *mut D3DVIEWPORT9) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetViewport(this: *mut core::ffi::c_void, pviewport: *mut D3DVIEWPORT9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetViewport(this, core::mem::transmute_copy(&pviewport)).into() } - unsafe extern "system" fn SetMaterial(this: *mut core::ffi::c_void, pmaterial: *const D3DMATERIAL9) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetMaterial(this: *mut core::ffi::c_void, pmaterial: *const D3DMATERIAL9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetMaterial(this, core::mem::transmute_copy(&pmaterial)).into() } - unsafe extern "system" fn GetMaterial(this: *mut core::ffi::c_void, pmaterial: *mut D3DMATERIAL9) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetMaterial(this: *mut core::ffi::c_void, pmaterial: *mut D3DMATERIAL9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetMaterial(this, core::mem::transmute_copy(&pmaterial)).into() } - unsafe extern "system" fn SetLight(this: *mut core::ffi::c_void, index: u32, param1: *const D3DLIGHT9) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetLight(this: *mut core::ffi::c_void, index: u32, param1: *const D3DLIGHT9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetLight(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetLight(this: *mut core::ffi::c_void, index: u32, param1: *mut D3DLIGHT9) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetLight(this: *mut core::ffi::c_void, index: u32, param1: *mut D3DLIGHT9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetLight(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn LightEnable(this: *mut core::ffi::c_void, index: u32, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn LightEnable(this: *mut core::ffi::c_void, index: u32, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::LightEnable(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&enable)).into() } - unsafe extern "system" fn GetLightEnable(this: *mut core::ffi::c_void, index: u32, penable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetLightEnable(this: *mut core::ffi::c_void, index: u32, penable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetLightEnable(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&penable)).into() } - unsafe extern "system" fn SetClipPlane(this: *mut core::ffi::c_void, index: u32, pplane: *const f32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetClipPlane(this: *mut core::ffi::c_void, index: u32, pplane: *const f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetClipPlane(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pplane)).into() } - unsafe extern "system" fn GetClipPlane(this: *mut core::ffi::c_void, index: u32, pplane: *mut f32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetClipPlane(this: *mut core::ffi::c_void, index: u32, pplane: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetClipPlane(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pplane)).into() } - unsafe extern "system" fn SetRenderState(this: *mut core::ffi::c_void, state: D3DRENDERSTATETYPE, value: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetRenderState(this: *mut core::ffi::c_void, state: D3DRENDERSTATETYPE, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetRenderState(this, core::mem::transmute_copy(&state), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetRenderState(this: *mut core::ffi::c_void, state: D3DRENDERSTATETYPE, pvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetRenderState(this: *mut core::ffi::c_void, state: D3DRENDERSTATETYPE, pvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetRenderState(this, core::mem::transmute_copy(&state), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn CreateStateBlock(this: *mut core::ffi::c_void, r#type: D3DSTATEBLOCKTYPE, ppsb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateStateBlock(this: *mut core::ffi::c_void, r#type: D3DSTATEBLOCKTYPE, ppsb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::CreateStateBlock(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -906,17 +630,11 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginStateBlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn BeginStateBlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::BeginStateBlock(this).into() } - unsafe extern "system" fn EndStateBlock(this: *mut core::ffi::c_void, ppsb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn EndStateBlock(this: *mut core::ffi::c_void, ppsb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::EndStateBlock(this) { Ok(ok__) => { @@ -926,24 +644,15 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClipStatus(this: *mut core::ffi::c_void, pclipstatus: *const D3DCLIPSTATUS9) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetClipStatus(this: *mut core::ffi::c_void, pclipstatus: *const D3DCLIPSTATUS9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetClipStatus(this, core::mem::transmute_copy(&pclipstatus)).into() } - unsafe extern "system" fn GetClipStatus(this: *mut core::ffi::c_void, pclipstatus: *mut D3DCLIPSTATUS9) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetClipStatus(this: *mut core::ffi::c_void, pclipstatus: *mut D3DCLIPSTATUS9) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetClipStatus(this, core::mem::transmute_copy(&pclipstatus)).into() } - unsafe extern "system" fn GetTexture(this: *mut core::ffi::c_void, stage: u32, pptexture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetTexture(this: *mut core::ffi::c_void, stage: u32, pptexture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::GetTexture(this, core::mem::transmute_copy(&stage)) { Ok(ok__) => { @@ -953,157 +662,91 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTexture(this: *mut core::ffi::c_void, stage: u32, ptexture: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetTexture(this: *mut core::ffi::c_void, stage: u32, ptexture: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetTexture(this, core::mem::transmute_copy(&stage), windows_core::from_raw_borrowed(&ptexture)).into() } - unsafe extern "system" fn GetTextureStageState(this: *mut core::ffi::c_void, stage: u32, r#type: D3DTEXTURESTAGESTATETYPE, pvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetTextureStageState(this: *mut core::ffi::c_void, stage: u32, r#type: D3DTEXTURESTAGESTATETYPE, pvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetTextureStageState(this, core::mem::transmute_copy(&stage), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn SetTextureStageState(this: *mut core::ffi::c_void, stage: u32, r#type: D3DTEXTURESTAGESTATETYPE, value: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetTextureStageState(this: *mut core::ffi::c_void, stage: u32, r#type: D3DTEXTURESTAGESTATETYPE, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetTextureStageState(this, core::mem::transmute_copy(&stage), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSamplerState(this: *mut core::ffi::c_void, sampler: u32, r#type: D3DSAMPLERSTATETYPE, pvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetSamplerState(this: *mut core::ffi::c_void, sampler: u32, r#type: D3DSAMPLERSTATETYPE, pvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetSamplerState(this, core::mem::transmute_copy(&sampler), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn SetSamplerState(this: *mut core::ffi::c_void, sampler: u32, r#type: D3DSAMPLERSTATETYPE, value: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetSamplerState(this: *mut core::ffi::c_void, sampler: u32, r#type: D3DSAMPLERSTATETYPE, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetSamplerState(this, core::mem::transmute_copy(&sampler), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ValidateDevice(this: *mut core::ffi::c_void, pnumpasses: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn ValidateDevice(this: *mut core::ffi::c_void, pnumpasses: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::ValidateDevice(this, core::mem::transmute_copy(&pnumpasses)).into() } - unsafe extern "system" fn SetPaletteEntries(this: *mut core::ffi::c_void, palettenumber: u32, pentries: *const super::Gdi::PALETTEENTRY) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetPaletteEntries(this: *mut core::ffi::c_void, palettenumber: u32, pentries: *const super::Gdi::PALETTEENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetPaletteEntries(this, core::mem::transmute_copy(&palettenumber), core::mem::transmute_copy(&pentries)).into() } - unsafe extern "system" fn GetPaletteEntries(this: *mut core::ffi::c_void, palettenumber: u32, pentries: *mut super::Gdi::PALETTEENTRY) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetPaletteEntries(this: *mut core::ffi::c_void, palettenumber: u32, pentries: *mut super::Gdi::PALETTEENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetPaletteEntries(this, core::mem::transmute_copy(&palettenumber), core::mem::transmute_copy(&pentries)).into() } - unsafe extern "system" fn SetCurrentTexturePalette(this: *mut core::ffi::c_void, palettenumber: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetCurrentTexturePalette(this: *mut core::ffi::c_void, palettenumber: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetCurrentTexturePalette(this, core::mem::transmute_copy(&palettenumber)).into() } - unsafe extern "system" fn GetCurrentTexturePalette(this: *mut core::ffi::c_void, palettenumber: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetCurrentTexturePalette(this: *mut core::ffi::c_void, palettenumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetCurrentTexturePalette(this, core::mem::transmute_copy(&palettenumber)).into() } - unsafe extern "system" fn SetScissorRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetScissorRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetScissorRect(this, core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn GetScissorRect(this: *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetScissorRect(this: *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetScissorRect(this, core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn SetSoftwareVertexProcessing(this: *mut core::ffi::c_void, bsoftware: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetSoftwareVertexProcessing(this: *mut core::ffi::c_void, bsoftware: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetSoftwareVertexProcessing(this, core::mem::transmute_copy(&bsoftware)).into() } - unsafe extern "system" fn GetSoftwareVertexProcessing(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetSoftwareVertexProcessing(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetSoftwareVertexProcessing(this) } - unsafe extern "system" fn SetNPatchMode(this: *mut core::ffi::c_void, nsegments: f32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetNPatchMode(this: *mut core::ffi::c_void, nsegments: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetNPatchMode(this, core::mem::transmute_copy(&nsegments)).into() } - unsafe extern "system" fn GetNPatchMode(this: *mut core::ffi::c_void) -> f32 - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetNPatchMode(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetNPatchMode(this) } - unsafe extern "system" fn DrawPrimitive(this: *mut core::ffi::c_void, primitivetype: D3DPRIMITIVETYPE, startvertex: u32, primitivecount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn DrawPrimitive(this: *mut core::ffi::c_void, primitivetype: D3DPRIMITIVETYPE, startvertex: u32, primitivecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::DrawPrimitive(this, core::mem::transmute_copy(&primitivetype), core::mem::transmute_copy(&startvertex), core::mem::transmute_copy(&primitivecount)).into() } - unsafe extern "system" fn DrawIndexedPrimitive(this: *mut core::ffi::c_void, param0: D3DPRIMITIVETYPE, basevertexindex: i32, minvertexindex: u32, numvertices: u32, startindex: u32, primcount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn DrawIndexedPrimitive(this: *mut core::ffi::c_void, param0: D3DPRIMITIVETYPE, basevertexindex: i32, minvertexindex: u32, numvertices: u32, startindex: u32, primcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::DrawIndexedPrimitive(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(&basevertexindex), core::mem::transmute_copy(&minvertexindex), core::mem::transmute_copy(&numvertices), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&primcount)).into() } - unsafe extern "system" fn DrawPrimitiveUP(this: *mut core::ffi::c_void, primitivetype: D3DPRIMITIVETYPE, primitivecount: u32, pvertexstreamzerodata: *const core::ffi::c_void, vertexstreamzerostride: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn DrawPrimitiveUP(this: *mut core::ffi::c_void, primitivetype: D3DPRIMITIVETYPE, primitivecount: u32, pvertexstreamzerodata: *const core::ffi::c_void, vertexstreamzerostride: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::DrawPrimitiveUP(this, core::mem::transmute_copy(&primitivetype), core::mem::transmute_copy(&primitivecount), core::mem::transmute_copy(&pvertexstreamzerodata), core::mem::transmute_copy(&vertexstreamzerostride)).into() } - unsafe extern "system" fn DrawIndexedPrimitiveUP(this: *mut core::ffi::c_void, primitivetype: D3DPRIMITIVETYPE, minvertexindex: u32, numvertices: u32, primitivecount: u32, pindexdata: *const core::ffi::c_void, indexdataformat: D3DFORMAT, pvertexstreamzerodata: *const core::ffi::c_void, vertexstreamzerostride: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn DrawIndexedPrimitiveUP(this: *mut core::ffi::c_void, primitivetype: D3DPRIMITIVETYPE, minvertexindex: u32, numvertices: u32, primitivecount: u32, pindexdata: *const core::ffi::c_void, indexdataformat: D3DFORMAT, pvertexstreamzerodata: *const core::ffi::c_void, vertexstreamzerostride: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::DrawIndexedPrimitiveUP(this, core::mem::transmute_copy(&primitivetype), core::mem::transmute_copy(&minvertexindex), core::mem::transmute_copy(&numvertices), core::mem::transmute_copy(&primitivecount), core::mem::transmute_copy(&pindexdata), core::mem::transmute_copy(&indexdataformat), core::mem::transmute_copy(&pvertexstreamzerodata), core::mem::transmute_copy(&vertexstreamzerostride)).into() } - unsafe extern "system" fn ProcessVertices(this: *mut core::ffi::c_void, srcstartindex: u32, destindex: u32, vertexcount: u32, pdestbuffer: *mut core::ffi::c_void, pvertexdecl: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn ProcessVertices(this: *mut core::ffi::c_void, srcstartindex: u32, destindex: u32, vertexcount: u32, pdestbuffer: *mut core::ffi::c_void, pvertexdecl: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::ProcessVertices(this, core::mem::transmute_copy(&srcstartindex), core::mem::transmute_copy(&destindex), core::mem::transmute_copy(&vertexcount), windows_core::from_raw_borrowed(&pdestbuffer), windows_core::from_raw_borrowed(&pvertexdecl), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn CreateVertexDeclaration(this: *mut core::ffi::c_void, pvertexelements: *const D3DVERTEXELEMENT9, ppdecl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateVertexDeclaration(this: *mut core::ffi::c_void, pvertexelements: *const D3DVERTEXELEMENT9, ppdecl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::CreateVertexDeclaration(this, core::mem::transmute_copy(&pvertexelements)) { Ok(ok__) => { @@ -1113,17 +756,11 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVertexDeclaration(this: *mut core::ffi::c_void, pdecl: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetVertexDeclaration(this: *mut core::ffi::c_void, pdecl: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetVertexDeclaration(this, windows_core::from_raw_borrowed(&pdecl)).into() } - unsafe extern "system" fn GetVertexDeclaration(this: *mut core::ffi::c_void, ppdecl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetVertexDeclaration(this: *mut core::ffi::c_void, ppdecl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::GetVertexDeclaration(this) { Ok(ok__) => { @@ -1133,24 +770,15 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFVF(this: *mut core::ffi::c_void, fvf: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetFVF(this: *mut core::ffi::c_void, fvf: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetFVF(this, core::mem::transmute_copy(&fvf)).into() } - unsafe extern "system" fn GetFVF(this: *mut core::ffi::c_void, pfvf: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetFVF(this: *mut core::ffi::c_void, pfvf: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetFVF(this, core::mem::transmute_copy(&pfvf)).into() } - unsafe extern "system" fn CreateVertexShader(this: *mut core::ffi::c_void, pfunction: *const u32, ppshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateVertexShader(this: *mut core::ffi::c_void, pfunction: *const u32, ppshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::CreateVertexShader(this, core::mem::transmute_copy(&pfunction)) { Ok(ok__) => { @@ -1160,17 +788,11 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVertexShader(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetVertexShader(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetVertexShader(this, windows_core::from_raw_borrowed(&pshader)).into() } - unsafe extern "system" fn GetVertexShader(this: *mut core::ffi::c_void, ppshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetVertexShader(this: *mut core::ffi::c_void, ppshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::GetVertexShader(this) { Ok(ok__) => { @@ -1180,87 +802,51 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVertexShaderConstantF(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const f32, vector4fcount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetVertexShaderConstantF(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const f32, vector4fcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetVertexShaderConstantF(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&vector4fcount)).into() } - unsafe extern "system" fn GetVertexShaderConstantF(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetVertexShaderConstantF(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetVertexShaderConstantF(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&vector4fcount)).into() } - unsafe extern "system" fn SetVertexShaderConstantI(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const i32, vector4icount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetVertexShaderConstantI(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const i32, vector4icount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetVertexShaderConstantI(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&vector4icount)).into() } - unsafe extern "system" fn GetVertexShaderConstantI(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut i32, vector4icount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetVertexShaderConstantI(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut i32, vector4icount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetVertexShaderConstantI(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&vector4icount)).into() } - unsafe extern "system" fn SetVertexShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetVertexShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetVertexShaderConstantB(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&boolcount)).into() } - unsafe extern "system" fn GetVertexShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetVertexShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetVertexShaderConstantB(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&boolcount)).into() } - unsafe extern "system" fn SetStreamSource(this: *mut core::ffi::c_void, streamnumber: u32, pstreamdata: *mut core::ffi::c_void, offsetinbytes: u32, stride: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetStreamSource(this: *mut core::ffi::c_void, streamnumber: u32, pstreamdata: *mut core::ffi::c_void, offsetinbytes: u32, stride: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetStreamSource(this, core::mem::transmute_copy(&streamnumber), windows_core::from_raw_borrowed(&pstreamdata), core::mem::transmute_copy(&offsetinbytes), core::mem::transmute_copy(&stride)).into() } - unsafe extern "system" fn GetStreamSource(this: *mut core::ffi::c_void, streamnumber: u32, ppstreamdata: *mut *mut core::ffi::c_void, poffsetinbytes: *mut u32, pstride: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetStreamSource(this: *mut core::ffi::c_void, streamnumber: u32, ppstreamdata: *mut *mut core::ffi::c_void, poffsetinbytes: *mut u32, pstride: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetStreamSource(this, core::mem::transmute_copy(&streamnumber), core::mem::transmute_copy(&ppstreamdata), core::mem::transmute_copy(&poffsetinbytes), core::mem::transmute_copy(&pstride)).into() } - unsafe extern "system" fn SetStreamSourceFreq(this: *mut core::ffi::c_void, streamnumber: u32, setting: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetStreamSourceFreq(this: *mut core::ffi::c_void, streamnumber: u32, setting: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetStreamSourceFreq(this, core::mem::transmute_copy(&streamnumber), core::mem::transmute_copy(&setting)).into() } - unsafe extern "system" fn GetStreamSourceFreq(this: *mut core::ffi::c_void, streamnumber: u32, psetting: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetStreamSourceFreq(this: *mut core::ffi::c_void, streamnumber: u32, psetting: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetStreamSourceFreq(this, core::mem::transmute_copy(&streamnumber), core::mem::transmute_copy(&psetting)).into() } - unsafe extern "system" fn SetIndices(this: *mut core::ffi::c_void, pindexdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetIndices(this: *mut core::ffi::c_void, pindexdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetIndices(this, windows_core::from_raw_borrowed(&pindexdata)).into() } - unsafe extern "system" fn GetIndices(this: *mut core::ffi::c_void, ppindexdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetIndices(this: *mut core::ffi::c_void, ppindexdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::GetIndices(this) { Ok(ok__) => { @@ -1270,10 +856,7 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePixelShader(this: *mut core::ffi::c_void, pfunction: *const u32, ppshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreatePixelShader(this: *mut core::ffi::c_void, pfunction: *const u32, ppshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::CreatePixelShader(this, core::mem::transmute_copy(&pfunction)) { Ok(ok__) => { @@ -1283,17 +866,11 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPixelShader(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetPixelShader(this: *mut core::ffi::c_void, pshader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetPixelShader(this, windows_core::from_raw_borrowed(&pshader)).into() } - unsafe extern "system" fn GetPixelShader(this: *mut core::ffi::c_void, ppshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetPixelShader(this: *mut core::ffi::c_void, ppshader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::GetPixelShader(this) { Ok(ok__) => { @@ -1303,73 +880,43 @@ impl IDirect3DDevice9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPixelShaderConstantF(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const f32, vector4fcount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetPixelShaderConstantF(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const f32, vector4fcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetPixelShaderConstantF(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&vector4fcount)).into() } - unsafe extern "system" fn GetPixelShaderConstantF(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetPixelShaderConstantF(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetPixelShaderConstantF(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&vector4fcount)).into() } - unsafe extern "system" fn SetPixelShaderConstantI(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const i32, vector4icount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetPixelShaderConstantI(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const i32, vector4icount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetPixelShaderConstantI(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&vector4icount)).into() } - unsafe extern "system" fn GetPixelShaderConstantI(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut i32, vector4icount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetPixelShaderConstantI(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut i32, vector4icount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetPixelShaderConstantI(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&vector4icount)).into() } - unsafe extern "system" fn SetPixelShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn SetPixelShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetPixelShaderConstantB(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&boolcount)).into() } - unsafe extern "system" fn GetPixelShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn GetPixelShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetPixelShaderConstantB(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&boolcount)).into() } - unsafe extern "system" fn DrawRectPatch(this: *mut core::ffi::c_void, handle: u32, pnumsegs: *const f32, prectpatchinfo: *const D3DRECTPATCH_INFO) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn DrawRectPatch(this: *mut core::ffi::c_void, handle: u32, pnumsegs: *const f32, prectpatchinfo: *const D3DRECTPATCH_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::DrawRectPatch(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&pnumsegs), core::mem::transmute_copy(&prectpatchinfo)).into() } - unsafe extern "system" fn DrawTriPatch(this: *mut core::ffi::c_void, handle: u32, pnumsegs: *const f32, ptripatchinfo: *const D3DTRIPATCH_INFO) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn DrawTriPatch(this: *mut core::ffi::c_void, handle: u32, pnumsegs: *const f32, ptripatchinfo: *const D3DTRIPATCH_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::DrawTriPatch(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&pnumsegs), core::mem::transmute_copy(&ptripatchinfo)).into() } - unsafe extern "system" fn DeletePatch(this: *mut core::ffi::c_void, handle: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn DeletePatch(this: *mut core::ffi::c_void, handle: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::DeletePatch(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn CreateQuery(this: *mut core::ffi::c_void, r#type: D3DQUERYTYPE, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9_Impl, - { + unsafe extern "system" fn CreateQuery(this: *mut core::ffi::c_void, r#type: D3DQUERYTYPE, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDevice9_Impl::CreateQuery(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -1525,112 +1072,64 @@ pub trait IDirect3DDevice9Ex_Impl: Sized + IDirect3DDevice9_Impl { impl windows_core::RuntimeName for IDirect3DDevice9Ex {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Gdi"))] impl IDirect3DDevice9Ex_Vtbl { - pub const fn new() -> IDirect3DDevice9Ex_Vtbl - where - Identity: IDirect3DDevice9Ex_Impl, - { - unsafe extern "system" fn SetConvolutionMonoKernel(this: *mut core::ffi::c_void, width: u32, height: u32, rows: *mut f32, columns: *mut f32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + pub const fn new() -> IDirect3DDevice9Ex_Vtbl { + unsafe extern "system" fn SetConvolutionMonoKernel(this: *mut core::ffi::c_void, width: u32, height: u32, rows: *mut f32, columns: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::SetConvolutionMonoKernel(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&rows), core::mem::transmute_copy(&columns)).into() } - unsafe extern "system" fn ComposeRects(this: *mut core::ffi::c_void, psrc: *mut core::ffi::c_void, pdst: *mut core::ffi::c_void, psrcrectdescs: *mut core::ffi::c_void, numrects: u32, pdstrectdescs: *mut core::ffi::c_void, operation: D3DCOMPOSERECTSOP, xoffset: i32, yoffset: i32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn ComposeRects(this: *mut core::ffi::c_void, psrc: *mut core::ffi::c_void, pdst: *mut core::ffi::c_void, psrcrectdescs: *mut core::ffi::c_void, numrects: u32, pdstrectdescs: *mut core::ffi::c_void, operation: D3DCOMPOSERECTSOP, xoffset: i32, yoffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::ComposeRects(this, windows_core::from_raw_borrowed(&psrc), windows_core::from_raw_borrowed(&pdst), windows_core::from_raw_borrowed(&psrcrectdescs), core::mem::transmute_copy(&numrects), windows_core::from_raw_borrowed(&pdstrectdescs), core::mem::transmute_copy(&operation), core::mem::transmute_copy(&xoffset), core::mem::transmute_copy(&yoffset)).into() } - unsafe extern "system" fn PresentEx(this: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestrect: *const super::super::Foundation::RECT, hdestwindowoverride: super::super::Foundation::HWND, pdirtyregion: *const super::Gdi::RGNDATA, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn PresentEx(this: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestrect: *const super::super::Foundation::RECT, hdestwindowoverride: super::super::Foundation::HWND, pdirtyregion: *const super::Gdi::RGNDATA, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::PresentEx(this, core::mem::transmute_copy(&psourcerect), core::mem::transmute_copy(&pdestrect), core::mem::transmute_copy(&hdestwindowoverride), core::mem::transmute_copy(&pdirtyregion), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetGPUThreadPriority(this: *mut core::ffi::c_void, ppriority: *mut i32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn GetGPUThreadPriority(this: *mut core::ffi::c_void, ppriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::GetGPUThreadPriority(this, core::mem::transmute_copy(&ppriority)).into() } - unsafe extern "system" fn SetGPUThreadPriority(this: *mut core::ffi::c_void, priority: i32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn SetGPUThreadPriority(this: *mut core::ffi::c_void, priority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::SetGPUThreadPriority(this, core::mem::transmute_copy(&priority)).into() } - unsafe extern "system" fn WaitForVBlank(this: *mut core::ffi::c_void, iswapchain: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn WaitForVBlank(this: *mut core::ffi::c_void, iswapchain: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::WaitForVBlank(this, core::mem::transmute_copy(&iswapchain)).into() } - unsafe extern "system" fn CheckResourceResidency(this: *mut core::ffi::c_void, presourcearray: *mut *mut core::ffi::c_void, numresources: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn CheckResourceResidency(this: *mut core::ffi::c_void, presourcearray: *mut *mut core::ffi::c_void, numresources: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::CheckResourceResidency(this, core::mem::transmute_copy(&presourcearray), core::mem::transmute_copy(&numresources)).into() } - unsafe extern "system" fn SetMaximumFrameLatency(this: *mut core::ffi::c_void, maxlatency: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn SetMaximumFrameLatency(this: *mut core::ffi::c_void, maxlatency: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::SetMaximumFrameLatency(this, core::mem::transmute_copy(&maxlatency)).into() } - unsafe extern "system" fn GetMaximumFrameLatency(this: *mut core::ffi::c_void, pmaxlatency: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn GetMaximumFrameLatency(this: *mut core::ffi::c_void, pmaxlatency: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::GetMaximumFrameLatency(this, core::mem::transmute_copy(&pmaxlatency)).into() } - unsafe extern "system" fn CheckDeviceState(this: *mut core::ffi::c_void, hdestinationwindow: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn CheckDeviceState(this: *mut core::ffi::c_void, hdestinationwindow: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::CheckDeviceState(this, core::mem::transmute_copy(&hdestinationwindow)).into() } - unsafe extern "system" fn CreateRenderTargetEx(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn CreateRenderTargetEx(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::CreateRenderTargetEx(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&multisample), core::mem::transmute_copy(&multisamplequality), core::mem::transmute_copy(&lockable), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle), core::mem::transmute_copy(&usage)).into() } - unsafe extern "system" fn CreateOffscreenPlainSurfaceEx(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, pool: D3DPOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn CreateOffscreenPlainSurfaceEx(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, pool: D3DPOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::CreateOffscreenPlainSurfaceEx(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle), core::mem::transmute_copy(&usage)).into() } - unsafe extern "system" fn CreateDepthStencilSurfaceEx(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn CreateDepthStencilSurfaceEx(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::CreateDepthStencilSurfaceEx(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&multisample), core::mem::transmute_copy(&multisamplequality), core::mem::transmute_copy(&discard), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle), core::mem::transmute_copy(&usage)).into() } - unsafe extern "system" fn ResetEx(this: *mut core::ffi::c_void, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn ResetEx(this: *mut core::ffi::c_void, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::ResetEx(this, core::mem::transmute_copy(&ppresentationparameters), core::mem::transmute_copy(&pfullscreendisplaymode)).into() } - unsafe extern "system" fn GetDisplayModeEx(this: *mut core::ffi::c_void, iswapchain: u32, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Ex_Impl, - { + unsafe extern "system" fn GetDisplayModeEx(this: *mut core::ffi::c_void, iswapchain: u32, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::GetDisplayModeEx(this, core::mem::transmute_copy(&iswapchain), core::mem::transmute_copy(&pmode), core::mem::transmute_copy(&protation)).into() } @@ -1664,28 +1163,16 @@ pub trait IDirect3DIndexBuffer9_Impl: Sized + IDirect3DResource9_Impl { } impl windows_core::RuntimeName for IDirect3DIndexBuffer9 {} impl IDirect3DIndexBuffer9_Vtbl { - pub const fn new() -> IDirect3DIndexBuffer9_Vtbl - where - Identity: IDirect3DIndexBuffer9_Impl, - { - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, offsettolock: u32, sizetolock: u32, ppbdata: *mut *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DIndexBuffer9_Impl, - { + pub const fn new() -> IDirect3DIndexBuffer9_Vtbl { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, offsettolock: u32, sizetolock: u32, ppbdata: *mut *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DIndexBuffer9_Impl::Lock(this, core::mem::transmute_copy(&offsettolock), core::mem::transmute_copy(&sizetolock), core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DIndexBuffer9_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DIndexBuffer9_Impl::Unlock(this).into() } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3DINDEXBUFFER_DESC) -> windows_core::HRESULT - where - Identity: IDirect3DIndexBuffer9_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3DINDEXBUFFER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DIndexBuffer9_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)).into() } @@ -1700,20 +1187,14 @@ impl IDirect3DIndexBuffer9_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDirect3DPixelShader9_Impl: Sized { +pub trait IDirect3DPixelShader9_Impl: Sized + windows_core::IUnknownImpl { fn GetDevice(&self) -> windows_core::Result; fn GetFunction(&self, param0: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirect3DPixelShader9 {} impl IDirect3DPixelShader9_Vtbl { - pub const fn new() -> IDirect3DPixelShader9_Vtbl - where - Identity: IDirect3DPixelShader9_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DPixelShader9_Impl, - { + pub const fn new() -> IDirect3DPixelShader9_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DPixelShader9_Impl::GetDevice(this) { Ok(ok__) => { @@ -1723,10 +1204,7 @@ impl IDirect3DPixelShader9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunction(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DPixelShader9_Impl, - { + unsafe extern "system" fn GetFunction(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DPixelShader9_Impl::GetFunction(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(&psizeofdata)).into() } @@ -1740,7 +1218,7 @@ impl IDirect3DPixelShader9_Vtbl { iid == &::IID } } -pub trait IDirect3DQuery9_Impl: Sized { +pub trait IDirect3DQuery9_Impl: Sized + windows_core::IUnknownImpl { fn GetDevice(&self) -> windows_core::Result; fn GetType(&self) -> D3DQUERYTYPE; fn GetDataSize(&self) -> u32; @@ -1749,14 +1227,8 @@ pub trait IDirect3DQuery9_Impl: Sized { } impl windows_core::RuntimeName for IDirect3DQuery9 {} impl IDirect3DQuery9_Vtbl { - pub const fn new() -> IDirect3DQuery9_Vtbl - where - Identity: IDirect3DQuery9_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DQuery9_Impl, - { + pub const fn new() -> IDirect3DQuery9_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DQuery9_Impl::GetDevice(this) { Ok(ok__) => { @@ -1766,31 +1238,19 @@ impl IDirect3DQuery9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> D3DQUERYTYPE - where - Identity: IDirect3DQuery9_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> D3DQUERYTYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DQuery9_Impl::GetType(this) } - unsafe extern "system" fn GetDataSize(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDirect3DQuery9_Impl, - { + unsafe extern "system" fn GetDataSize(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DQuery9_Impl::GetDataSize(this) } - unsafe extern "system" fn Issue(this: *mut core::ffi::c_void, dwissueflags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DQuery9_Impl, - { + unsafe extern "system" fn Issue(this: *mut core::ffi::c_void, dwissueflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DQuery9_Impl::Issue(this, core::mem::transmute_copy(&dwissueflags)).into() } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void, dwsize: u32, dwgetdataflags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DQuery9_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void, dwsize: u32, dwgetdataflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DQuery9_Impl::GetData(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&dwgetdataflags)).into() } @@ -1807,7 +1267,7 @@ impl IDirect3DQuery9_Vtbl { iid == &::IID } } -pub trait IDirect3DResource9_Impl: Sized { +pub trait IDirect3DResource9_Impl: Sized + windows_core::IUnknownImpl { fn GetDevice(&self) -> windows_core::Result; fn SetPrivateData(&self, refguid: *const windows_core::GUID, pdata: *const core::ffi::c_void, sizeofdata: u32, flags: u32) -> windows_core::Result<()>; fn GetPrivateData(&self, refguid: *const windows_core::GUID, pdata: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::Result<()>; @@ -1819,14 +1279,8 @@ pub trait IDirect3DResource9_Impl: Sized { } impl windows_core::RuntimeName for IDirect3DResource9 {} impl IDirect3DResource9_Vtbl { - pub const fn new() -> IDirect3DResource9_Vtbl - where - Identity: IDirect3DResource9_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DResource9_Impl, - { + pub const fn new() -> IDirect3DResource9_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DResource9_Impl::GetDevice(this) { Ok(ok__) => { @@ -1836,52 +1290,31 @@ impl IDirect3DResource9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID, pdata: *const core::ffi::c_void, sizeofdata: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DResource9_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID, pdata: *const core::ffi::c_void, sizeofdata: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DResource9_Impl::SetPrivateData(this, core::mem::transmute_copy(&refguid), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&sizeofdata), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID, pdata: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DResource9_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID, pdata: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DResource9_Impl::GetPrivateData(this, core::mem::transmute_copy(&refguid), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&psizeofdata)).into() } - unsafe extern "system" fn FreePrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirect3DResource9_Impl, - { + unsafe extern "system" fn FreePrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DResource9_Impl::FreePrivateData(this, core::mem::transmute_copy(&refguid)).into() } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, prioritynew: u32) -> u32 - where - Identity: IDirect3DResource9_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, prioritynew: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DResource9_Impl::SetPriority(this, core::mem::transmute_copy(&prioritynew)) } - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDirect3DResource9_Impl, - { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DResource9_Impl::GetPriority(this) } - unsafe extern "system" fn PreLoad(this: *mut core::ffi::c_void) - where - Identity: IDirect3DResource9_Impl, - { + unsafe extern "system" fn PreLoad(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DResource9_Impl::PreLoad(this) } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> D3DRESOURCETYPE - where - Identity: IDirect3DResource9_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> D3DRESOURCETYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DResource9_Impl::GetType(this) } @@ -1901,21 +1334,15 @@ impl IDirect3DResource9_Vtbl { iid == &::IID } } -pub trait IDirect3DStateBlock9_Impl: Sized { +pub trait IDirect3DStateBlock9_Impl: Sized + windows_core::IUnknownImpl { fn GetDevice(&self) -> windows_core::Result; fn Capture(&self) -> windows_core::Result<()>; fn Apply(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirect3DStateBlock9 {} impl IDirect3DStateBlock9_Vtbl { - pub const fn new() -> IDirect3DStateBlock9_Vtbl - where - Identity: IDirect3DStateBlock9_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DStateBlock9_Impl, - { + pub const fn new() -> IDirect3DStateBlock9_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DStateBlock9_Impl::GetDevice(this) { Ok(ok__) => { @@ -1925,17 +1352,11 @@ impl IDirect3DStateBlock9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Capture(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DStateBlock9_Impl, - { + unsafe extern "system" fn Capture(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DStateBlock9_Impl::Capture(this).into() } - unsafe extern "system" fn Apply(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DStateBlock9_Impl, - { + unsafe extern "system" fn Apply(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DStateBlock9_Impl::Apply(this).into() } @@ -1963,49 +1384,28 @@ pub trait IDirect3DSurface9_Impl: Sized + IDirect3DResource9_Impl { impl windows_core::RuntimeName for IDirect3DSurface9 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirect3DSurface9_Vtbl { - pub const fn new() -> IDirect3DSurface9_Vtbl - where - Identity: IDirect3DSurface9_Impl, - { - unsafe extern "system" fn GetContainer(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DSurface9_Impl, - { + pub const fn new() -> IDirect3DSurface9_Vtbl { + unsafe extern "system" fn GetContainer(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSurface9_Impl::GetContainer(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppcontainer)).into() } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3DSURFACE_DESC) -> windows_core::HRESULT - where - Identity: IDirect3DSurface9_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3DSURFACE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSurface9_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn LockRect(this: *mut core::ffi::c_void, plockedrect: *mut D3DLOCKED_RECT, prect: *const super::super::Foundation::RECT, flags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DSurface9_Impl, - { + unsafe extern "system" fn LockRect(this: *mut core::ffi::c_void, plockedrect: *mut D3DLOCKED_RECT, prect: *const super::super::Foundation::RECT, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSurface9_Impl::LockRect(this, core::mem::transmute_copy(&plockedrect), core::mem::transmute_copy(&prect), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn UnlockRect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DSurface9_Impl, - { + unsafe extern "system" fn UnlockRect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSurface9_Impl::UnlockRect(this).into() } - unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, phdc: *mut super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirect3DSurface9_Impl, - { + unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, phdc: *mut super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSurface9_Impl::GetDC(this, core::mem::transmute_copy(&phdc)).into() } - unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, hdc: super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirect3DSurface9_Impl, - { + unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, hdc: super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSurface9_Impl::ReleaseDC(this, core::mem::transmute_copy(&hdc)).into() } @@ -2024,7 +1424,7 @@ impl IDirect3DSurface9_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirect3DSwapChain9_Impl: Sized { +pub trait IDirect3DSwapChain9_Impl: Sized + windows_core::IUnknownImpl { fn Present(&self, psourcerect: *const super::super::Foundation::RECT, pdestrect: *const super::super::Foundation::RECT, hdestwindowoverride: super::super::Foundation::HWND, pdirtyregion: *const super::Gdi::RGNDATA, dwflags: u32) -> windows_core::Result<()>; fn GetFrontBufferData(&self, pdestsurface: Option<&IDirect3DSurface9>) -> windows_core::Result<()>; fn GetBackBuffer(&self, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE) -> windows_core::Result; @@ -2037,28 +1437,16 @@ pub trait IDirect3DSwapChain9_Impl: Sized { impl windows_core::RuntimeName for IDirect3DSwapChain9 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirect3DSwapChain9_Vtbl { - pub const fn new() -> IDirect3DSwapChain9_Vtbl - where - Identity: IDirect3DSwapChain9_Impl, - { - unsafe extern "system" fn Present(this: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestrect: *const super::super::Foundation::RECT, hdestwindowoverride: super::super::Foundation::HWND, pdirtyregion: *const super::Gdi::RGNDATA, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DSwapChain9_Impl, - { + pub const fn new() -> IDirect3DSwapChain9_Vtbl { + unsafe extern "system" fn Present(this: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestrect: *const super::super::Foundation::RECT, hdestwindowoverride: super::super::Foundation::HWND, pdirtyregion: *const super::Gdi::RGNDATA, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSwapChain9_Impl::Present(this, core::mem::transmute_copy(&psourcerect), core::mem::transmute_copy(&pdestrect), core::mem::transmute_copy(&hdestwindowoverride), core::mem::transmute_copy(&pdirtyregion), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetFrontBufferData(this: *mut core::ffi::c_void, pdestsurface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DSwapChain9_Impl, - { + unsafe extern "system" fn GetFrontBufferData(this: *mut core::ffi::c_void, pdestsurface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSwapChain9_Impl::GetFrontBufferData(this, windows_core::from_raw_borrowed(&pdestsurface)).into() } - unsafe extern "system" fn GetBackBuffer(this: *mut core::ffi::c_void, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE, ppbackbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DSwapChain9_Impl, - { + unsafe extern "system" fn GetBackBuffer(this: *mut core::ffi::c_void, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE, ppbackbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DSwapChain9_Impl::GetBackBuffer(this, core::mem::transmute_copy(&ibackbuffer), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -2068,24 +1456,15 @@ impl IDirect3DSwapChain9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRasterStatus(this: *mut core::ffi::c_void, prasterstatus: *mut D3DRASTER_STATUS) -> windows_core::HRESULT - where - Identity: IDirect3DSwapChain9_Impl, - { + unsafe extern "system" fn GetRasterStatus(this: *mut core::ffi::c_void, prasterstatus: *mut D3DRASTER_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSwapChain9_Impl::GetRasterStatus(this, core::mem::transmute_copy(&prasterstatus)).into() } - unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, pmode: *mut D3DDISPLAYMODE) -> windows_core::HRESULT - where - Identity: IDirect3DSwapChain9_Impl, - { + unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, pmode: *mut D3DDISPLAYMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSwapChain9_Impl::GetDisplayMode(this, core::mem::transmute_copy(&pmode)).into() } - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DSwapChain9_Impl, - { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DSwapChain9_Impl::GetDevice(this) { Ok(ok__) => { @@ -2095,10 +1474,7 @@ impl IDirect3DSwapChain9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPresentParameters(this: *mut core::ffi::c_void, ppresentationparameters: *mut D3DPRESENT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDirect3DSwapChain9_Impl, - { + unsafe extern "system" fn GetPresentParameters(this: *mut core::ffi::c_void, ppresentationparameters: *mut D3DPRESENT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSwapChain9_Impl::GetPresentParameters(this, core::mem::transmute_copy(&ppresentationparameters)).into() } @@ -2127,28 +1503,16 @@ pub trait IDirect3DSwapChain9Ex_Impl: Sized + IDirect3DSwapChain9_Impl { impl windows_core::RuntimeName for IDirect3DSwapChain9Ex {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirect3DSwapChain9Ex_Vtbl { - pub const fn new() -> IDirect3DSwapChain9Ex_Vtbl - where - Identity: IDirect3DSwapChain9Ex_Impl, - { - unsafe extern "system" fn GetLastPresentCount(this: *mut core::ffi::c_void, plastpresentcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DSwapChain9Ex_Impl, - { + pub const fn new() -> IDirect3DSwapChain9Ex_Vtbl { + unsafe extern "system" fn GetLastPresentCount(this: *mut core::ffi::c_void, plastpresentcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSwapChain9Ex_Impl::GetLastPresentCount(this, core::mem::transmute_copy(&plastpresentcount)).into() } - unsafe extern "system" fn GetPresentStats(this: *mut core::ffi::c_void, ppresentationstatistics: *mut D3DPRESENTSTATS) -> windows_core::HRESULT - where - Identity: IDirect3DSwapChain9Ex_Impl, - { + unsafe extern "system" fn GetPresentStats(this: *mut core::ffi::c_void, ppresentationstatistics: *mut D3DPRESENTSTATS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSwapChain9Ex_Impl::GetPresentStats(this, core::mem::transmute_copy(&ppresentationstatistics)).into() } - unsafe extern "system" fn GetDisplayModeEx(this: *mut core::ffi::c_void, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> windows_core::HRESULT - where - Identity: IDirect3DSwapChain9Ex_Impl, - { + unsafe extern "system" fn GetDisplayModeEx(this: *mut core::ffi::c_void, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DSwapChain9Ex_Impl::GetDisplayModeEx(this, core::mem::transmute_copy(&pmode), core::mem::transmute_copy(&protation)).into() } @@ -2172,21 +1536,12 @@ pub trait IDirect3DTexture9_Impl: Sized + IDirect3DBaseTexture9_Impl { } impl windows_core::RuntimeName for IDirect3DTexture9 {} impl IDirect3DTexture9_Vtbl { - pub const fn new() -> IDirect3DTexture9_Vtbl - where - Identity: IDirect3DTexture9_Impl, - { - unsafe extern "system" fn GetLevelDesc(this: *mut core::ffi::c_void, level: u32, pdesc: *mut D3DSURFACE_DESC) -> windows_core::HRESULT - where - Identity: IDirect3DTexture9_Impl, - { + pub const fn new() -> IDirect3DTexture9_Vtbl { + unsafe extern "system" fn GetLevelDesc(this: *mut core::ffi::c_void, level: u32, pdesc: *mut D3DSURFACE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DTexture9_Impl::GetLevelDesc(this, core::mem::transmute_copy(&level), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetSurfaceLevel(this: *mut core::ffi::c_void, level: u32, ppsurfacelevel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DTexture9_Impl, - { + unsafe extern "system" fn GetSurfaceLevel(this: *mut core::ffi::c_void, level: u32, ppsurfacelevel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DTexture9_Impl::GetSurfaceLevel(this, core::mem::transmute_copy(&level)) { Ok(ok__) => { @@ -2196,24 +1551,15 @@ impl IDirect3DTexture9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LockRect(this: *mut core::ffi::c_void, level: u32, plockedrect: *mut D3DLOCKED_RECT, prect: *const super::super::Foundation::RECT, flags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DTexture9_Impl, - { + unsafe extern "system" fn LockRect(this: *mut core::ffi::c_void, level: u32, plockedrect: *mut D3DLOCKED_RECT, prect: *const super::super::Foundation::RECT, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DTexture9_Impl::LockRect(this, core::mem::transmute_copy(&level), core::mem::transmute_copy(&plockedrect), core::mem::transmute_copy(&prect), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn UnlockRect(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT - where - Identity: IDirect3DTexture9_Impl, - { + unsafe extern "system" fn UnlockRect(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DTexture9_Impl::UnlockRect(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn AddDirtyRect(this: *mut core::ffi::c_void, pdirtyrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirect3DTexture9_Impl, - { + unsafe extern "system" fn AddDirtyRect(this: *mut core::ffi::c_void, pdirtyrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DTexture9_Impl::AddDirtyRect(this, core::mem::transmute_copy(&pdirtyrect)).into() } @@ -2237,28 +1583,16 @@ pub trait IDirect3DVertexBuffer9_Impl: Sized + IDirect3DResource9_Impl { } impl windows_core::RuntimeName for IDirect3DVertexBuffer9 {} impl IDirect3DVertexBuffer9_Vtbl { - pub const fn new() -> IDirect3DVertexBuffer9_Vtbl - where - Identity: IDirect3DVertexBuffer9_Impl, - { - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, offsettolock: u32, sizetolock: u32, ppbdata: *mut *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DVertexBuffer9_Impl, - { + pub const fn new() -> IDirect3DVertexBuffer9_Vtbl { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, offsettolock: u32, sizetolock: u32, ppbdata: *mut *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVertexBuffer9_Impl::Lock(this, core::mem::transmute_copy(&offsettolock), core::mem::transmute_copy(&sizetolock), core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DVertexBuffer9_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVertexBuffer9_Impl::Unlock(this).into() } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3DVERTEXBUFFER_DESC) -> windows_core::HRESULT - where - Identity: IDirect3DVertexBuffer9_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3DVERTEXBUFFER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVertexBuffer9_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)).into() } @@ -2273,20 +1607,14 @@ impl IDirect3DVertexBuffer9_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDirect3DVertexDeclaration9_Impl: Sized { +pub trait IDirect3DVertexDeclaration9_Impl: Sized + windows_core::IUnknownImpl { fn GetDevice(&self) -> windows_core::Result; fn GetDeclaration(&self, pelement: *mut D3DVERTEXELEMENT9, pnumelements: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirect3DVertexDeclaration9 {} impl IDirect3DVertexDeclaration9_Vtbl { - pub const fn new() -> IDirect3DVertexDeclaration9_Vtbl - where - Identity: IDirect3DVertexDeclaration9_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DVertexDeclaration9_Impl, - { + pub const fn new() -> IDirect3DVertexDeclaration9_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DVertexDeclaration9_Impl::GetDevice(this) { Ok(ok__) => { @@ -2296,10 +1624,7 @@ impl IDirect3DVertexDeclaration9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeclaration(this: *mut core::ffi::c_void, pelement: *mut D3DVERTEXELEMENT9, pnumelements: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DVertexDeclaration9_Impl, - { + unsafe extern "system" fn GetDeclaration(this: *mut core::ffi::c_void, pelement: *mut D3DVERTEXELEMENT9, pnumelements: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVertexDeclaration9_Impl::GetDeclaration(this, core::mem::transmute_copy(&pelement), core::mem::transmute_copy(&pnumelements)).into() } @@ -2313,20 +1638,14 @@ impl IDirect3DVertexDeclaration9_Vtbl { iid == &::IID } } -pub trait IDirect3DVertexShader9_Impl: Sized { +pub trait IDirect3DVertexShader9_Impl: Sized + windows_core::IUnknownImpl { fn GetDevice(&self) -> windows_core::Result; fn GetFunction(&self, param0: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirect3DVertexShader9 {} impl IDirect3DVertexShader9_Vtbl { - pub const fn new() -> IDirect3DVertexShader9_Vtbl - where - Identity: IDirect3DVertexShader9_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DVertexShader9_Impl, - { + pub const fn new() -> IDirect3DVertexShader9_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DVertexShader9_Impl::GetDevice(this) { Ok(ok__) => { @@ -2336,10 +1655,7 @@ impl IDirect3DVertexShader9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunction(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DVertexShader9_Impl, - { + unsafe extern "system" fn GetFunction(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVertexShader9_Impl::GetFunction(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(&psizeofdata)).into() } @@ -2353,7 +1669,7 @@ impl IDirect3DVertexShader9_Vtbl { iid == &::IID } } -pub trait IDirect3DVolume9_Impl: Sized { +pub trait IDirect3DVolume9_Impl: Sized + windows_core::IUnknownImpl { fn GetDevice(&self) -> windows_core::Result; fn SetPrivateData(&self, refguid: *const windows_core::GUID, pdata: *const core::ffi::c_void, sizeofdata: u32, flags: u32) -> windows_core::Result<()>; fn GetPrivateData(&self, refguid: *const windows_core::GUID, pdata: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::Result<()>; @@ -2365,14 +1681,8 @@ pub trait IDirect3DVolume9_Impl: Sized { } impl windows_core::RuntimeName for IDirect3DVolume9 {} impl IDirect3DVolume9_Vtbl { - pub const fn new() -> IDirect3DVolume9_Vtbl - where - Identity: IDirect3DVolume9_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DVolume9_Impl, - { + pub const fn new() -> IDirect3DVolume9_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DVolume9_Impl::GetDevice(this) { Ok(ok__) => { @@ -2382,52 +1692,31 @@ impl IDirect3DVolume9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID, pdata: *const core::ffi::c_void, sizeofdata: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DVolume9_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID, pdata: *const core::ffi::c_void, sizeofdata: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolume9_Impl::SetPrivateData(this, core::mem::transmute_copy(&refguid), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&sizeofdata), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID, pdata: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DVolume9_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID, pdata: *mut core::ffi::c_void, psizeofdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolume9_Impl::GetPrivateData(this, core::mem::transmute_copy(&refguid), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&psizeofdata)).into() } - unsafe extern "system" fn FreePrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirect3DVolume9_Impl, - { + unsafe extern "system" fn FreePrivateData(this: *mut core::ffi::c_void, refguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolume9_Impl::FreePrivateData(this, core::mem::transmute_copy(&refguid)).into() } - unsafe extern "system" fn GetContainer(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DVolume9_Impl, - { + unsafe extern "system" fn GetContainer(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolume9_Impl::GetContainer(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppcontainer)).into() } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3DVOLUME_DESC) -> windows_core::HRESULT - where - Identity: IDirect3DVolume9_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut D3DVOLUME_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolume9_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn LockBox(this: *mut core::ffi::c_void, plockedvolume: *mut D3DLOCKED_BOX, pbox: *const D3DBOX, flags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DVolume9_Impl, - { + unsafe extern "system" fn LockBox(this: *mut core::ffi::c_void, plockedvolume: *mut D3DLOCKED_BOX, pbox: *const D3DBOX, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolume9_Impl::LockBox(this, core::mem::transmute_copy(&plockedvolume), core::mem::transmute_copy(&pbox), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn UnlockBox(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DVolume9_Impl, - { + unsafe extern "system" fn UnlockBox(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolume9_Impl::UnlockBox(this).into() } @@ -2456,21 +1745,12 @@ pub trait IDirect3DVolumeTexture9_Impl: Sized + IDirect3DBaseTexture9_Impl { } impl windows_core::RuntimeName for IDirect3DVolumeTexture9 {} impl IDirect3DVolumeTexture9_Vtbl { - pub const fn new() -> IDirect3DVolumeTexture9_Vtbl - where - Identity: IDirect3DVolumeTexture9_Impl, - { - unsafe extern "system" fn GetLevelDesc(this: *mut core::ffi::c_void, level: u32, pdesc: *mut D3DVOLUME_DESC) -> windows_core::HRESULT - where - Identity: IDirect3DVolumeTexture9_Impl, - { + pub const fn new() -> IDirect3DVolumeTexture9_Vtbl { + unsafe extern "system" fn GetLevelDesc(this: *mut core::ffi::c_void, level: u32, pdesc: *mut D3DVOLUME_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolumeTexture9_Impl::GetLevelDesc(this, core::mem::transmute_copy(&level), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn GetVolumeLevel(this: *mut core::ffi::c_void, level: u32, ppvolumelevel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DVolumeTexture9_Impl, - { + unsafe extern "system" fn GetVolumeLevel(this: *mut core::ffi::c_void, level: u32, ppvolumelevel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DVolumeTexture9_Impl::GetVolumeLevel(this, core::mem::transmute_copy(&level)) { Ok(ok__) => { @@ -2480,24 +1760,15 @@ impl IDirect3DVolumeTexture9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LockBox(this: *mut core::ffi::c_void, level: u32, plockedvolume: *mut D3DLOCKED_BOX, pbox: *const D3DBOX, flags: u32) -> windows_core::HRESULT - where - Identity: IDirect3DVolumeTexture9_Impl, - { + unsafe extern "system" fn LockBox(this: *mut core::ffi::c_void, level: u32, plockedvolume: *mut D3DLOCKED_BOX, pbox: *const D3DBOX, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolumeTexture9_Impl::LockBox(this, core::mem::transmute_copy(&level), core::mem::transmute_copy(&plockedvolume), core::mem::transmute_copy(&pbox), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn UnlockBox(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT - where - Identity: IDirect3DVolumeTexture9_Impl, - { + unsafe extern "system" fn UnlockBox(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolumeTexture9_Impl::UnlockBox(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn AddDirtyBox(this: *mut core::ffi::c_void, pdirtybox: *const D3DBOX) -> windows_core::HRESULT - where - Identity: IDirect3DVolumeTexture9_Impl, - { + unsafe extern "system" fn AddDirtyBox(this: *mut core::ffi::c_void, pdirtybox: *const D3DBOX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DVolumeTexture9_Impl::AddDirtyBox(this, core::mem::transmute_copy(&pdirtybox)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/impl.rs index 710e55359f..50d2fbe5c8 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Direct3D9"))] -pub trait IDirect3DDevice9On12_Impl: Sized { +pub trait IDirect3DDevice9On12_Impl: Sized + windows_core::IUnknownImpl { fn GetD3D12Device(&self, riid: *const windows_core::GUID, ppvdevice: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn UnwrapUnderlyingResource(&self, presource: Option<&super::Direct3D9::IDirect3DResource9>, pcommandqueue: Option<&super::Direct3D12::ID3D12CommandQueue>, riid: *const windows_core::GUID, ppvresource12: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn ReturnUnderlyingResource(&self, presource: Option<&super::Direct3D9::IDirect3DResource9>, numsync: u32, psignalvalues: *mut u64, ppfences: *mut Option) -> windows_core::Result<()>; @@ -8,28 +8,16 @@ pub trait IDirect3DDevice9On12_Impl: Sized { impl windows_core::RuntimeName for IDirect3DDevice9On12 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Direct3D9"))] impl IDirect3DDevice9On12_Vtbl { - pub const fn new() -> IDirect3DDevice9On12_Vtbl - where - Identity: IDirect3DDevice9On12_Impl, - { - unsafe extern "system" fn GetD3D12Device(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9On12_Impl, - { + pub const fn new() -> IDirect3DDevice9On12_Vtbl { + unsafe extern "system" fn GetD3D12Device(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9On12_Impl::GetD3D12Device(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvdevice)).into() } - unsafe extern "system" fn UnwrapUnderlyingResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvresource12: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9On12_Impl, - { + unsafe extern "system" fn UnwrapUnderlyingResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvresource12: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9On12_Impl::UnwrapUnderlyingResource(this, windows_core::from_raw_borrowed(&presource), windows_core::from_raw_borrowed(&pcommandqueue), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvresource12)).into() } - unsafe extern "system" fn ReturnUnderlyingResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, numsync: u32, psignalvalues: *mut u64, ppfences: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9On12_Impl, - { + unsafe extern "system" fn ReturnUnderlyingResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, numsync: u32, psignalvalues: *mut u64, ppfences: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9On12_Impl::ReturnUnderlyingResource(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&numsync), core::mem::transmute_copy(&psignalvalues), core::mem::transmute_copy(&ppfences)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/impl.rs index 38cbb0d69d..9774ea1613 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/impl.rs @@ -12,56 +12,32 @@ pub trait IDCompositionAffineTransform2DEffect_Impl: Sized + IDCompositionFilter impl windows_core::RuntimeName for IDCompositionAffineTransform2DEffect {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl IDCompositionAffineTransform2DEffect_Vtbl { - pub const fn new() -> IDCompositionAffineTransform2DEffect_Vtbl - where - Identity: IDCompositionAffineTransform2DEffect_Impl, - { - unsafe extern "system" fn SetInterpolationMode(this: *mut core::ffi::c_void, interpolationmode: super::Direct2D::Common::D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionAffineTransform2DEffect_Impl, - { + pub const fn new() -> IDCompositionAffineTransform2DEffect_Vtbl { + unsafe extern "system" fn SetInterpolationMode(this: *mut core::ffi::c_void, interpolationmode: super::Direct2D::Common::D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAffineTransform2DEffect_Impl::SetInterpolationMode(this, core::mem::transmute_copy(&interpolationmode)).into() } - unsafe extern "system" fn SetBorderMode(this: *mut core::ffi::c_void, bordermode: super::Direct2D::Common::D2D1_BORDER_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionAffineTransform2DEffect_Impl, - { + unsafe extern "system" fn SetBorderMode(this: *mut core::ffi::c_void, bordermode: super::Direct2D::Common::D2D1_BORDER_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAffineTransform2DEffect_Impl::SetBorderMode(this, core::mem::transmute_copy(&bordermode)).into() } - unsafe extern "system" fn SetTransformMatrix(this: *mut core::ffi::c_void, transformmatrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT - where - Identity: IDCompositionAffineTransform2DEffect_Impl, - { + unsafe extern "system" fn SetTransformMatrix(this: *mut core::ffi::c_void, transformmatrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAffineTransform2DEffect_Impl::SetTransformMatrix(this, core::mem::transmute_copy(&transformmatrix)).into() } - unsafe extern "system" fn SetTransformMatrixElement(this: *mut core::ffi::c_void, row: i32, column: i32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionAffineTransform2DEffect_Impl, - { + unsafe extern "system" fn SetTransformMatrixElement(this: *mut core::ffi::c_void, row: i32, column: i32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAffineTransform2DEffect_Impl::SetTransformMatrixElement(this, core::mem::transmute_copy(&row), core::mem::transmute_copy(&column), windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetTransformMatrixElement2(this: *mut core::ffi::c_void, row: i32, column: i32, value: f32) -> windows_core::HRESULT - where - Identity: IDCompositionAffineTransform2DEffect_Impl, - { + unsafe extern "system" fn SetTransformMatrixElement2(this: *mut core::ffi::c_void, row: i32, column: i32, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAffineTransform2DEffect_Impl::SetTransformMatrixElement2(this, core::mem::transmute_copy(&row), core::mem::transmute_copy(&column), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetSharpness(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionAffineTransform2DEffect_Impl, - { + unsafe extern "system" fn SetSharpness(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAffineTransform2DEffect_Impl::SetSharpness(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetSharpness2(this: *mut core::ffi::c_void, sharpness: f32) -> windows_core::HRESULT - where - Identity: IDCompositionAffineTransform2DEffect_Impl, - { + unsafe extern "system" fn SetSharpness2(this: *mut core::ffi::c_void, sharpness: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAffineTransform2DEffect_Impl::SetSharpness2(this, core::mem::transmute_copy(&sharpness)).into() } @@ -80,7 +56,7 @@ impl IDCompositionAffineTransform2DEffect_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDCompositionAnimation_Impl: Sized { +pub trait IDCompositionAnimation_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn SetAbsoluteBeginTime(&self, begintime: i64) -> windows_core::Result<()>; fn AddCubic(&self, beginoffset: f64, constantcoefficient: f32, linearcoefficient: f32, quadraticcoefficient: f32, cubiccoefficient: f32) -> windows_core::Result<()>; @@ -90,49 +66,28 @@ pub trait IDCompositionAnimation_Impl: Sized { } impl windows_core::RuntimeName for IDCompositionAnimation {} impl IDCompositionAnimation_Vtbl { - pub const fn new() -> IDCompositionAnimation_Vtbl - where - Identity: IDCompositionAnimation_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionAnimation_Impl, - { + pub const fn new() -> IDCompositionAnimation_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAnimation_Impl::Reset(this).into() } - unsafe extern "system" fn SetAbsoluteBeginTime(this: *mut core::ffi::c_void, begintime: i64) -> windows_core::HRESULT - where - Identity: IDCompositionAnimation_Impl, - { + unsafe extern "system" fn SetAbsoluteBeginTime(this: *mut core::ffi::c_void, begintime: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAnimation_Impl::SetAbsoluteBeginTime(this, core::mem::transmute_copy(&begintime)).into() } - unsafe extern "system" fn AddCubic(this: *mut core::ffi::c_void, beginoffset: f64, constantcoefficient: f32, linearcoefficient: f32, quadraticcoefficient: f32, cubiccoefficient: f32) -> windows_core::HRESULT - where - Identity: IDCompositionAnimation_Impl, - { + unsafe extern "system" fn AddCubic(this: *mut core::ffi::c_void, beginoffset: f64, constantcoefficient: f32, linearcoefficient: f32, quadraticcoefficient: f32, cubiccoefficient: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAnimation_Impl::AddCubic(this, core::mem::transmute_copy(&beginoffset), core::mem::transmute_copy(&constantcoefficient), core::mem::transmute_copy(&linearcoefficient), core::mem::transmute_copy(&quadraticcoefficient), core::mem::transmute_copy(&cubiccoefficient)).into() } - unsafe extern "system" fn AddSinusoidal(this: *mut core::ffi::c_void, beginoffset: f64, bias: f32, amplitude: f32, frequency: f32, phase: f32) -> windows_core::HRESULT - where - Identity: IDCompositionAnimation_Impl, - { + unsafe extern "system" fn AddSinusoidal(this: *mut core::ffi::c_void, beginoffset: f64, bias: f32, amplitude: f32, frequency: f32, phase: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAnimation_Impl::AddSinusoidal(this, core::mem::transmute_copy(&beginoffset), core::mem::transmute_copy(&bias), core::mem::transmute_copy(&litude), core::mem::transmute_copy(&frequency), core::mem::transmute_copy(&phase)).into() } - unsafe extern "system" fn AddRepeat(this: *mut core::ffi::c_void, beginoffset: f64, durationtorepeat: f64) -> windows_core::HRESULT - where - Identity: IDCompositionAnimation_Impl, - { + unsafe extern "system" fn AddRepeat(this: *mut core::ffi::c_void, beginoffset: f64, durationtorepeat: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAnimation_Impl::AddRepeat(this, core::mem::transmute_copy(&beginoffset), core::mem::transmute_copy(&durationtorepeat)).into() } - unsafe extern "system" fn End(this: *mut core::ffi::c_void, endoffset: f64, endvalue: f32) -> windows_core::HRESULT - where - Identity: IDCompositionAnimation_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void, endoffset: f64, endvalue: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionAnimation_Impl::End(this, core::mem::transmute_copy(&endoffset), core::mem::transmute_copy(&endvalue)).into() } @@ -167,77 +122,44 @@ pub trait IDCompositionArithmeticCompositeEffect_Impl: Sized + IDCompositionFilt impl windows_core::RuntimeName for IDCompositionArithmeticCompositeEffect {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionArithmeticCompositeEffect_Vtbl { - pub const fn new() -> IDCompositionArithmeticCompositeEffect_Vtbl - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { - unsafe extern "system" fn SetCoefficients(this: *mut core::ffi::c_void, coefficients: *const super::Direct2D::Common::D2D_VECTOR_4F) -> windows_core::HRESULT - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { + pub const fn new() -> IDCompositionArithmeticCompositeEffect_Vtbl { + unsafe extern "system" fn SetCoefficients(this: *mut core::ffi::c_void, coefficients: *const super::Direct2D::Common::D2D_VECTOR_4F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetCoefficients(this, core::mem::transmute_copy(&coefficients)).into() } - unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { + unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetClampOutput(this, core::mem::transmute_copy(&clampoutput)).into() } - unsafe extern "system" fn SetCoefficient1(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { + unsafe extern "system" fn SetCoefficient1(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetCoefficient1(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCoefficient12(this: *mut core::ffi::c_void, coeffcient1: f32) -> windows_core::HRESULT - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { + unsafe extern "system" fn SetCoefficient12(this: *mut core::ffi::c_void, coeffcient1: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetCoefficient12(this, core::mem::transmute_copy(&coeffcient1)).into() } - unsafe extern "system" fn SetCoefficient2(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { + unsafe extern "system" fn SetCoefficient2(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetCoefficient2(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCoefficient22(this: *mut core::ffi::c_void, coefficient2: f32) -> windows_core::HRESULT - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { + unsafe extern "system" fn SetCoefficient22(this: *mut core::ffi::c_void, coefficient2: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetCoefficient22(this, core::mem::transmute_copy(&coefficient2)).into() } - unsafe extern "system" fn SetCoefficient3(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { + unsafe extern "system" fn SetCoefficient3(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetCoefficient3(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCoefficient32(this: *mut core::ffi::c_void, coefficient3: f32) -> windows_core::HRESULT - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { + unsafe extern "system" fn SetCoefficient32(this: *mut core::ffi::c_void, coefficient3: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetCoefficient32(this, core::mem::transmute_copy(&coefficient3)).into() } - unsafe extern "system" fn SetCoefficient4(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { + unsafe extern "system" fn SetCoefficient4(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetCoefficient4(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCoefficient42(this: *mut core::ffi::c_void, coefficient4: f32) -> windows_core::HRESULT - where - Identity: IDCompositionArithmeticCompositeEffect_Impl, - { + unsafe extern "system" fn SetCoefficient42(this: *mut core::ffi::c_void, coefficient4: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetCoefficient42(this, core::mem::transmute_copy(&coefficient4)).into() } @@ -267,14 +189,8 @@ pub trait IDCompositionBlendEffect_Impl: Sized + IDCompositionFilterEffect_Impl impl windows_core::RuntimeName for IDCompositionBlendEffect {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionBlendEffect_Vtbl { - pub const fn new() -> IDCompositionBlendEffect_Vtbl - where - Identity: IDCompositionBlendEffect_Impl, - { - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: super::Direct2D::Common::D2D1_BLEND_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionBlendEffect_Impl, - { + pub const fn new() -> IDCompositionBlendEffect_Vtbl { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: super::Direct2D::Common::D2D1_BLEND_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBlendEffect_Impl::SetMode(this, core::mem::transmute_copy(&mode)).into() } @@ -301,77 +217,44 @@ pub trait IDCompositionBrightnessEffect_Impl: Sized + IDCompositionFilterEffect_ impl windows_core::RuntimeName for IDCompositionBrightnessEffect {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionBrightnessEffect_Vtbl { - pub const fn new() -> IDCompositionBrightnessEffect_Vtbl - where - Identity: IDCompositionBrightnessEffect_Impl, - { - unsafe extern "system" fn SetWhitePoint(this: *mut core::ffi::c_void, whitepoint: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::HRESULT - where - Identity: IDCompositionBrightnessEffect_Impl, - { + pub const fn new() -> IDCompositionBrightnessEffect_Vtbl { + unsafe extern "system" fn SetWhitePoint(this: *mut core::ffi::c_void, whitepoint: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBrightnessEffect_Impl::SetWhitePoint(this, core::mem::transmute_copy(&whitepoint)).into() } - unsafe extern "system" fn SetBlackPoint(this: *mut core::ffi::c_void, blackpoint: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::HRESULT - where - Identity: IDCompositionBrightnessEffect_Impl, - { + unsafe extern "system" fn SetBlackPoint(this: *mut core::ffi::c_void, blackpoint: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBrightnessEffect_Impl::SetBlackPoint(this, core::mem::transmute_copy(&blackpoint)).into() } - unsafe extern "system" fn SetWhitePointX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionBrightnessEffect_Impl, - { + unsafe extern "system" fn SetWhitePointX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBrightnessEffect_Impl::SetWhitePointX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetWhitePointX2(this: *mut core::ffi::c_void, whitepointx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionBrightnessEffect_Impl, - { + unsafe extern "system" fn SetWhitePointX2(this: *mut core::ffi::c_void, whitepointx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBrightnessEffect_Impl::SetWhitePointX2(this, core::mem::transmute_copy(&whitepointx)).into() } - unsafe extern "system" fn SetWhitePointY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionBrightnessEffect_Impl, - { + unsafe extern "system" fn SetWhitePointY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBrightnessEffect_Impl::SetWhitePointY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetWhitePointY2(this: *mut core::ffi::c_void, whitepointy: f32) -> windows_core::HRESULT - where - Identity: IDCompositionBrightnessEffect_Impl, - { + unsafe extern "system" fn SetWhitePointY2(this: *mut core::ffi::c_void, whitepointy: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBrightnessEffect_Impl::SetWhitePointY2(this, core::mem::transmute_copy(&whitepointy)).into() } - unsafe extern "system" fn SetBlackPointX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionBrightnessEffect_Impl, - { + unsafe extern "system" fn SetBlackPointX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBrightnessEffect_Impl::SetBlackPointX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBlackPointX2(this: *mut core::ffi::c_void, blackpointx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionBrightnessEffect_Impl, - { + unsafe extern "system" fn SetBlackPointX2(this: *mut core::ffi::c_void, blackpointx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBrightnessEffect_Impl::SetBlackPointX2(this, core::mem::transmute_copy(&blackpointx)).into() } - unsafe extern "system" fn SetBlackPointY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionBrightnessEffect_Impl, - { + unsafe extern "system" fn SetBlackPointY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBrightnessEffect_Impl::SetBlackPointY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBlackPointY2(this: *mut core::ffi::c_void, blackpointy: f32) -> windows_core::HRESULT - where - Identity: IDCompositionBrightnessEffect_Impl, - { + unsafe extern "system" fn SetBlackPointY2(this: *mut core::ffi::c_void, blackpointy: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionBrightnessEffect_Impl::SetBlackPointY2(this, core::mem::transmute_copy(&blackpointy)).into() } @@ -393,13 +276,10 @@ impl IDCompositionBrightnessEffect_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDCompositionClip_Impl: Sized {} +pub trait IDCompositionClip_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IDCompositionClip {} impl IDCompositionClip_Vtbl { - pub const fn new() -> IDCompositionClip_Vtbl - where - Identity: IDCompositionClip_Impl, - { + pub const fn new() -> IDCompositionClip_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -418,42 +298,24 @@ pub trait IDCompositionColorMatrixEffect_Impl: Sized + IDCompositionFilterEffect impl windows_core::RuntimeName for IDCompositionColorMatrixEffect {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionColorMatrixEffect_Vtbl { - pub const fn new() -> IDCompositionColorMatrixEffect_Vtbl - where - Identity: IDCompositionColorMatrixEffect_Impl, - { - unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const super::Direct2D::Common::D2D_MATRIX_5X4_F) -> windows_core::HRESULT - where - Identity: IDCompositionColorMatrixEffect_Impl, - { + pub const fn new() -> IDCompositionColorMatrixEffect_Vtbl { + unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const super::Direct2D::Common::D2D_MATRIX_5X4_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionColorMatrixEffect_Impl::SetMatrix(this, core::mem::transmute_copy(&matrix)).into() } - unsafe extern "system" fn SetMatrixElement(this: *mut core::ffi::c_void, row: i32, column: i32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionColorMatrixEffect_Impl, - { + unsafe extern "system" fn SetMatrixElement(this: *mut core::ffi::c_void, row: i32, column: i32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionColorMatrixEffect_Impl::SetMatrixElement(this, core::mem::transmute_copy(&row), core::mem::transmute_copy(&column), windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetMatrixElement2(this: *mut core::ffi::c_void, row: i32, column: i32, value: f32) -> windows_core::HRESULT - where - Identity: IDCompositionColorMatrixEffect_Impl, - { + unsafe extern "system" fn SetMatrixElement2(this: *mut core::ffi::c_void, row: i32, column: i32, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionColorMatrixEffect_Impl::SetMatrixElement2(this, core::mem::transmute_copy(&row), core::mem::transmute_copy(&column), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetAlphaMode(this: *mut core::ffi::c_void, mode: super::Direct2D::Common::D2D1_COLORMATRIX_ALPHA_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionColorMatrixEffect_Impl, - { + unsafe extern "system" fn SetAlphaMode(this: *mut core::ffi::c_void, mode: super::Direct2D::Common::D2D1_COLORMATRIX_ALPHA_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionColorMatrixEffect_Impl::SetAlphaMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clamp: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionColorMatrixEffect_Impl, - { + unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clamp: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionColorMatrixEffect_Impl::SetClampOutput(this, core::mem::transmute_copy(&clamp)).into() } @@ -478,14 +340,8 @@ pub trait IDCompositionCompositeEffect_Impl: Sized + IDCompositionFilterEffect_I impl windows_core::RuntimeName for IDCompositionCompositeEffect {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionCompositeEffect_Vtbl { - pub const fn new() -> IDCompositionCompositeEffect_Vtbl - where - Identity: IDCompositionCompositeEffect_Impl, - { - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: super::Direct2D::Common::D2D1_COMPOSITE_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionCompositeEffect_Impl, - { + pub const fn new() -> IDCompositionCompositeEffect_Vtbl { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: super::Direct2D::Common::D2D1_COMPOSITE_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionCompositeEffect_Impl::SetMode(this, core::mem::transmute_copy(&mode)).into() } @@ -496,7 +352,7 @@ impl IDCompositionCompositeEffect_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] -pub trait IDCompositionDelegatedInkTrail_Impl: Sized { +pub trait IDCompositionDelegatedInkTrail_Impl: Sized + windows_core::IUnknownImpl { fn AddTrailPoints(&self, inkpoints: *const DCompositionInkTrailPoint, inkpointscount: u32) -> windows_core::Result; fn AddTrailPointsWithPrediction(&self, inkpoints: *const DCompositionInkTrailPoint, inkpointscount: u32, predictedinkpoints: *const DCompositionInkTrailPoint, predictedinkpointscount: u32) -> windows_core::Result; fn RemoveTrailPoints(&self, generationid: u32) -> windows_core::Result<()>; @@ -506,14 +362,8 @@ pub trait IDCompositionDelegatedInkTrail_Impl: Sized { impl windows_core::RuntimeName for IDCompositionDelegatedInkTrail {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionDelegatedInkTrail_Vtbl { - pub const fn new() -> IDCompositionDelegatedInkTrail_Vtbl - where - Identity: IDCompositionDelegatedInkTrail_Impl, - { - unsafe extern "system" fn AddTrailPoints(this: *mut core::ffi::c_void, inkpoints: *const DCompositionInkTrailPoint, inkpointscount: u32, generationid: *mut u32) -> windows_core::HRESULT - where - Identity: IDCompositionDelegatedInkTrail_Impl, - { + pub const fn new() -> IDCompositionDelegatedInkTrail_Vtbl { + unsafe extern "system" fn AddTrailPoints(this: *mut core::ffi::c_void, inkpoints: *const DCompositionInkTrailPoint, inkpointscount: u32, generationid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDelegatedInkTrail_Impl::AddTrailPoints(this, core::mem::transmute_copy(&inkpoints), core::mem::transmute_copy(&inkpointscount)) { Ok(ok__) => { @@ -523,10 +373,7 @@ impl IDCompositionDelegatedInkTrail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTrailPointsWithPrediction(this: *mut core::ffi::c_void, inkpoints: *const DCompositionInkTrailPoint, inkpointscount: u32, predictedinkpoints: *const DCompositionInkTrailPoint, predictedinkpointscount: u32, generationid: *mut u32) -> windows_core::HRESULT - where - Identity: IDCompositionDelegatedInkTrail_Impl, - { + unsafe extern "system" fn AddTrailPointsWithPrediction(this: *mut core::ffi::c_void, inkpoints: *const DCompositionInkTrailPoint, inkpointscount: u32, predictedinkpoints: *const DCompositionInkTrailPoint, predictedinkpointscount: u32, generationid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDelegatedInkTrail_Impl::AddTrailPointsWithPrediction(this, core::mem::transmute_copy(&inkpoints), core::mem::transmute_copy(&inkpointscount), core::mem::transmute_copy(&predictedinkpoints), core::mem::transmute_copy(&predictedinkpointscount)) { Ok(ok__) => { @@ -536,17 +383,11 @@ impl IDCompositionDelegatedInkTrail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveTrailPoints(this: *mut core::ffi::c_void, generationid: u32) -> windows_core::HRESULT - where - Identity: IDCompositionDelegatedInkTrail_Impl, - { + unsafe extern "system" fn RemoveTrailPoints(this: *mut core::ffi::c_void, generationid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionDelegatedInkTrail_Impl::RemoveTrailPoints(this, core::mem::transmute_copy(&generationid)).into() } - unsafe extern "system" fn StartNewTrail(this: *mut core::ffi::c_void, color: *const super::Direct2D::Common::D2D1_COLOR_F) -> windows_core::HRESULT - where - Identity: IDCompositionDelegatedInkTrail_Impl, - { + unsafe extern "system" fn StartNewTrail(this: *mut core::ffi::c_void, color: *const super::Direct2D::Common::D2D1_COLOR_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionDelegatedInkTrail_Impl::StartNewTrail(this, core::mem::transmute_copy(&color)).into() } @@ -572,14 +413,8 @@ pub trait IDCompositionDesktopDevice_Impl: Sized + IDCompositionDevice2_Impl { impl windows_core::RuntimeName for IDCompositionDesktopDevice {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDCompositionDesktopDevice_Vtbl { - pub const fn new() -> IDCompositionDesktopDevice_Vtbl - where - Identity: IDCompositionDesktopDevice_Impl, - { - unsafe extern "system" fn CreateTargetForHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, topmost: super::super::Foundation::BOOL, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDesktopDevice_Impl, - { + pub const fn new() -> IDCompositionDesktopDevice_Vtbl { + unsafe extern "system" fn CreateTargetForHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, topmost: super::super::Foundation::BOOL, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDesktopDevice_Impl::CreateTargetForHwnd(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&topmost)) { Ok(ok__) => { @@ -589,10 +424,7 @@ impl IDCompositionDesktopDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSurfaceFromHandle(this: *mut core::ffi::c_void, handle: super::super::Foundation::HANDLE, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDesktopDevice_Impl, - { + unsafe extern "system" fn CreateSurfaceFromHandle(this: *mut core::ffi::c_void, handle: super::super::Foundation::HANDLE, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDesktopDevice_Impl::CreateSurfaceFromHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -602,10 +434,7 @@ impl IDCompositionDesktopDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSurfaceFromHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDesktopDevice_Impl, - { + unsafe extern "system" fn CreateSurfaceFromHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDesktopDevice_Impl::CreateSurfaceFromHwnd(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -627,7 +456,7 @@ impl IDCompositionDesktopDevice_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait IDCompositionDevice_Impl: Sized { +pub trait IDCompositionDevice_Impl: Sized + windows_core::IUnknownImpl { fn Commit(&self) -> windows_core::Result<()>; fn WaitForCommitCompletion(&self) -> windows_core::Result<()>; fn GetFrameStatistics(&self, statistics: *mut DCOMPOSITION_FRAME_STATISTICS) -> windows_core::Result<()>; @@ -657,35 +486,20 @@ pub trait IDCompositionDevice_Impl: Sized { impl windows_core::RuntimeName for IDCompositionDevice {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDCompositionDevice_Vtbl { - pub const fn new() -> IDCompositionDevice_Vtbl - where - Identity: IDCompositionDevice_Impl, - { - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + pub const fn new() -> IDCompositionDevice_Vtbl { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionDevice_Impl::Commit(this).into() } - unsafe extern "system" fn WaitForCommitCompletion(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn WaitForCommitCompletion(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionDevice_Impl::WaitForCommitCompletion(this).into() } - unsafe extern "system" fn GetFrameStatistics(this: *mut core::ffi::c_void, statistics: *mut DCOMPOSITION_FRAME_STATISTICS) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn GetFrameStatistics(this: *mut core::ffi::c_void, statistics: *mut DCOMPOSITION_FRAME_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionDevice_Impl::GetFrameStatistics(this, core::mem::transmute_copy(&statistics)).into() } - unsafe extern "system" fn CreateTargetForHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, topmost: super::super::Foundation::BOOL, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateTargetForHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, topmost: super::super::Foundation::BOOL, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateTargetForHwnd(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&topmost)) { Ok(ok__) => { @@ -695,10 +509,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVisual(this: *mut core::ffi::c_void, visual: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateVisual(this: *mut core::ffi::c_void, visual: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateVisual(this) { Ok(ok__) => { @@ -708,10 +519,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateSurface(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&pixelformat), core::mem::transmute_copy(&alphamode)) { Ok(ok__) => { @@ -721,10 +529,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVirtualSurface(this: *mut core::ffi::c_void, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, virtualsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateVirtualSurface(this: *mut core::ffi::c_void, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, virtualsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateVirtualSurface(this, core::mem::transmute_copy(&initialwidth), core::mem::transmute_copy(&initialheight), core::mem::transmute_copy(&pixelformat), core::mem::transmute_copy(&alphamode)) { Ok(ok__) => { @@ -734,10 +539,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSurfaceFromHandle(this: *mut core::ffi::c_void, handle: super::super::Foundation::HANDLE, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateSurfaceFromHandle(this: *mut core::ffi::c_void, handle: super::super::Foundation::HANDLE, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateSurfaceFromHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -747,10 +549,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSurfaceFromHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateSurfaceFromHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateSurfaceFromHwnd(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -760,10 +559,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTranslateTransform(this: *mut core::ffi::c_void, translatetransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateTranslateTransform(this: *mut core::ffi::c_void, translatetransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateTranslateTransform(this) { Ok(ok__) => { @@ -773,10 +569,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateScaleTransform(this: *mut core::ffi::c_void, scaletransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateScaleTransform(this: *mut core::ffi::c_void, scaletransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateScaleTransform(this) { Ok(ok__) => { @@ -786,10 +579,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRotateTransform(this: *mut core::ffi::c_void, rotatetransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateRotateTransform(this: *mut core::ffi::c_void, rotatetransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateRotateTransform(this) { Ok(ok__) => { @@ -799,10 +589,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSkewTransform(this: *mut core::ffi::c_void, skewtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateSkewTransform(this: *mut core::ffi::c_void, skewtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateSkewTransform(this) { Ok(ok__) => { @@ -812,10 +599,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMatrixTransform(this: *mut core::ffi::c_void, matrixtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateMatrixTransform(this: *mut core::ffi::c_void, matrixtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateMatrixTransform(this) { Ok(ok__) => { @@ -825,10 +609,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTransformGroup(this: *mut core::ffi::c_void, transforms: *const *mut core::ffi::c_void, elements: u32, transformgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateTransformGroup(this: *mut core::ffi::c_void, transforms: *const *mut core::ffi::c_void, elements: u32, transformgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateTransformGroup(this, core::mem::transmute_copy(&transforms), core::mem::transmute_copy(&elements)) { Ok(ok__) => { @@ -838,10 +619,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTranslateTransform3D(this: *mut core::ffi::c_void, translatetransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateTranslateTransform3D(this: *mut core::ffi::c_void, translatetransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateTranslateTransform3D(this) { Ok(ok__) => { @@ -851,10 +629,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateScaleTransform3D(this: *mut core::ffi::c_void, scaletransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateScaleTransform3D(this: *mut core::ffi::c_void, scaletransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateScaleTransform3D(this) { Ok(ok__) => { @@ -864,10 +639,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRotateTransform3D(this: *mut core::ffi::c_void, rotatetransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateRotateTransform3D(this: *mut core::ffi::c_void, rotatetransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateRotateTransform3D(this) { Ok(ok__) => { @@ -877,10 +649,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMatrixTransform3D(this: *mut core::ffi::c_void, matrixtransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateMatrixTransform3D(this: *mut core::ffi::c_void, matrixtransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateMatrixTransform3D(this) { Ok(ok__) => { @@ -890,10 +659,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTransform3DGroup(this: *mut core::ffi::c_void, transforms3d: *const *mut core::ffi::c_void, elements: u32, transform3dgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateTransform3DGroup(this: *mut core::ffi::c_void, transforms3d: *const *mut core::ffi::c_void, elements: u32, transform3dgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateTransform3DGroup(this, core::mem::transmute_copy(&transforms3d), core::mem::transmute_copy(&elements)) { Ok(ok__) => { @@ -903,10 +669,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEffectGroup(this: *mut core::ffi::c_void, effectgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateEffectGroup(this: *mut core::ffi::c_void, effectgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateEffectGroup(this) { Ok(ok__) => { @@ -916,10 +679,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRectangleClip(this: *mut core::ffi::c_void, clip: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateRectangleClip(this: *mut core::ffi::c_void, clip: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateRectangleClip(this) { Ok(ok__) => { @@ -929,10 +689,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAnimation(this: *mut core::ffi::c_void, animation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CreateAnimation(this: *mut core::ffi::c_void, animation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateAnimation(this) { Ok(ok__) => { @@ -942,10 +699,7 @@ impl IDCompositionDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckDeviceState(this: *mut core::ffi::c_void, pfvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionDevice_Impl, - { + unsafe extern "system" fn CheckDeviceState(this: *mut core::ffi::c_void, pfvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CheckDeviceState(this) { Ok(ok__) => { @@ -988,7 +742,7 @@ impl IDCompositionDevice_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait IDCompositionDevice2_Impl: Sized { +pub trait IDCompositionDevice2_Impl: Sized + windows_core::IUnknownImpl { fn Commit(&self) -> windows_core::Result<()>; fn WaitForCommitCompletion(&self) -> windows_core::Result<()>; fn GetFrameStatistics(&self, statistics: *mut DCOMPOSITION_FRAME_STATISTICS) -> windows_core::Result<()>; @@ -1015,35 +769,20 @@ pub trait IDCompositionDevice2_Impl: Sized { impl windows_core::RuntimeName for IDCompositionDevice2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDCompositionDevice2_Vtbl { - pub const fn new() -> IDCompositionDevice2_Vtbl - where - Identity: IDCompositionDevice2_Impl, - { - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + pub const fn new() -> IDCompositionDevice2_Vtbl { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionDevice2_Impl::Commit(this).into() } - unsafe extern "system" fn WaitForCommitCompletion(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn WaitForCommitCompletion(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionDevice2_Impl::WaitForCommitCompletion(this).into() } - unsafe extern "system" fn GetFrameStatistics(this: *mut core::ffi::c_void, statistics: *mut DCOMPOSITION_FRAME_STATISTICS) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn GetFrameStatistics(this: *mut core::ffi::c_void, statistics: *mut DCOMPOSITION_FRAME_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionDevice2_Impl::GetFrameStatistics(this, core::mem::transmute_copy(&statistics)).into() } - unsafe extern "system" fn CreateVisual(this: *mut core::ffi::c_void, visual: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateVisual(this: *mut core::ffi::c_void, visual: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateVisual(this) { Ok(ok__) => { @@ -1053,10 +792,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSurfaceFactory(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, surfacefactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateSurfaceFactory(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, surfacefactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateSurfaceFactory(this, windows_core::from_raw_borrowed(&renderingdevice)) { Ok(ok__) => { @@ -1066,10 +802,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateSurface(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&pixelformat), core::mem::transmute_copy(&alphamode)) { Ok(ok__) => { @@ -1079,10 +812,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVirtualSurface(this: *mut core::ffi::c_void, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, virtualsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateVirtualSurface(this: *mut core::ffi::c_void, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, virtualsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateVirtualSurface(this, core::mem::transmute_copy(&initialwidth), core::mem::transmute_copy(&initialheight), core::mem::transmute_copy(&pixelformat), core::mem::transmute_copy(&alphamode)) { Ok(ok__) => { @@ -1092,10 +822,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTranslateTransform(this: *mut core::ffi::c_void, translatetransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateTranslateTransform(this: *mut core::ffi::c_void, translatetransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateTranslateTransform(this) { Ok(ok__) => { @@ -1105,10 +832,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateScaleTransform(this: *mut core::ffi::c_void, scaletransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateScaleTransform(this: *mut core::ffi::c_void, scaletransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateScaleTransform(this) { Ok(ok__) => { @@ -1118,10 +842,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRotateTransform(this: *mut core::ffi::c_void, rotatetransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateRotateTransform(this: *mut core::ffi::c_void, rotatetransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateRotateTransform(this) { Ok(ok__) => { @@ -1131,10 +852,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSkewTransform(this: *mut core::ffi::c_void, skewtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateSkewTransform(this: *mut core::ffi::c_void, skewtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateSkewTransform(this) { Ok(ok__) => { @@ -1144,10 +862,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMatrixTransform(this: *mut core::ffi::c_void, matrixtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateMatrixTransform(this: *mut core::ffi::c_void, matrixtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateMatrixTransform(this) { Ok(ok__) => { @@ -1157,10 +872,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTransformGroup(this: *mut core::ffi::c_void, transforms: *const *mut core::ffi::c_void, elements: u32, transformgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateTransformGroup(this: *mut core::ffi::c_void, transforms: *const *mut core::ffi::c_void, elements: u32, transformgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateTransformGroup(this, core::mem::transmute_copy(&transforms), core::mem::transmute_copy(&elements)) { Ok(ok__) => { @@ -1170,10 +882,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTranslateTransform3D(this: *mut core::ffi::c_void, translatetransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateTranslateTransform3D(this: *mut core::ffi::c_void, translatetransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateTranslateTransform3D(this) { Ok(ok__) => { @@ -1183,10 +892,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateScaleTransform3D(this: *mut core::ffi::c_void, scaletransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateScaleTransform3D(this: *mut core::ffi::c_void, scaletransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateScaleTransform3D(this) { Ok(ok__) => { @@ -1196,10 +902,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRotateTransform3D(this: *mut core::ffi::c_void, rotatetransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateRotateTransform3D(this: *mut core::ffi::c_void, rotatetransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateRotateTransform3D(this) { Ok(ok__) => { @@ -1209,10 +912,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMatrixTransform3D(this: *mut core::ffi::c_void, matrixtransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateMatrixTransform3D(this: *mut core::ffi::c_void, matrixtransform3d: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateMatrixTransform3D(this) { Ok(ok__) => { @@ -1222,10 +922,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTransform3DGroup(this: *mut core::ffi::c_void, transforms3d: *const *mut core::ffi::c_void, elements: u32, transform3dgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateTransform3DGroup(this: *mut core::ffi::c_void, transforms3d: *const *mut core::ffi::c_void, elements: u32, transform3dgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateTransform3DGroup(this, core::mem::transmute_copy(&transforms3d), core::mem::transmute_copy(&elements)) { Ok(ok__) => { @@ -1235,10 +932,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEffectGroup(this: *mut core::ffi::c_void, effectgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateEffectGroup(this: *mut core::ffi::c_void, effectgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateEffectGroup(this) { Ok(ok__) => { @@ -1248,10 +942,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRectangleClip(this: *mut core::ffi::c_void, clip: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateRectangleClip(this: *mut core::ffi::c_void, clip: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateRectangleClip(this) { Ok(ok__) => { @@ -1261,10 +952,7 @@ impl IDCompositionDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAnimation(this: *mut core::ffi::c_void, animation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice2_Impl, - { + unsafe extern "system" fn CreateAnimation(this: *mut core::ffi::c_void, animation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice2_Impl::CreateAnimation(this) { Ok(ok__) => { @@ -1323,14 +1011,8 @@ pub trait IDCompositionDevice3_Impl: Sized + IDCompositionDevice2_Impl { impl windows_core::RuntimeName for IDCompositionDevice3 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDCompositionDevice3_Vtbl { - pub const fn new() -> IDCompositionDevice3_Vtbl - where - Identity: IDCompositionDevice3_Impl, - { - unsafe extern "system" fn CreateGaussianBlurEffect(this: *mut core::ffi::c_void, gaussianblureffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + pub const fn new() -> IDCompositionDevice3_Vtbl { + unsafe extern "system" fn CreateGaussianBlurEffect(this: *mut core::ffi::c_void, gaussianblureffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateGaussianBlurEffect(this) { Ok(ok__) => { @@ -1340,10 +1022,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBrightnessEffect(this: *mut core::ffi::c_void, brightnesseffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateBrightnessEffect(this: *mut core::ffi::c_void, brightnesseffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateBrightnessEffect(this) { Ok(ok__) => { @@ -1353,10 +1032,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorMatrixEffect(this: *mut core::ffi::c_void, colormatrixeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateColorMatrixEffect(this: *mut core::ffi::c_void, colormatrixeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateColorMatrixEffect(this) { Ok(ok__) => { @@ -1366,10 +1042,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateShadowEffect(this: *mut core::ffi::c_void, shadoweffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateShadowEffect(this: *mut core::ffi::c_void, shadoweffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateShadowEffect(this) { Ok(ok__) => { @@ -1379,10 +1052,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateHueRotationEffect(this: *mut core::ffi::c_void, huerotationeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateHueRotationEffect(this: *mut core::ffi::c_void, huerotationeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateHueRotationEffect(this) { Ok(ok__) => { @@ -1392,10 +1062,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSaturationEffect(this: *mut core::ffi::c_void, saturationeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateSaturationEffect(this: *mut core::ffi::c_void, saturationeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateSaturationEffect(this) { Ok(ok__) => { @@ -1405,10 +1072,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTurbulenceEffect(this: *mut core::ffi::c_void, turbulenceeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateTurbulenceEffect(this: *mut core::ffi::c_void, turbulenceeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateTurbulenceEffect(this) { Ok(ok__) => { @@ -1418,10 +1082,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLinearTransferEffect(this: *mut core::ffi::c_void, lineartransfereffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateLinearTransferEffect(this: *mut core::ffi::c_void, lineartransfereffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateLinearTransferEffect(this) { Ok(ok__) => { @@ -1431,10 +1092,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTableTransferEffect(this: *mut core::ffi::c_void, tabletransfereffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateTableTransferEffect(this: *mut core::ffi::c_void, tabletransfereffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateTableTransferEffect(this) { Ok(ok__) => { @@ -1444,10 +1102,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCompositeEffect(this: *mut core::ffi::c_void, compositeeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateCompositeEffect(this: *mut core::ffi::c_void, compositeeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateCompositeEffect(this) { Ok(ok__) => { @@ -1457,10 +1112,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBlendEffect(this: *mut core::ffi::c_void, blendeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateBlendEffect(this: *mut core::ffi::c_void, blendeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateBlendEffect(this) { Ok(ok__) => { @@ -1470,10 +1122,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateArithmeticCompositeEffect(this: *mut core::ffi::c_void, arithmeticcompositeeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateArithmeticCompositeEffect(this: *mut core::ffi::c_void, arithmeticcompositeeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateArithmeticCompositeEffect(this) { Ok(ok__) => { @@ -1483,10 +1132,7 @@ impl IDCompositionDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAffineTransform2DEffect(this: *mut core::ffi::c_void, affinetransform2deffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice3_Impl, - { + unsafe extern "system" fn CreateAffineTransform2DEffect(this: *mut core::ffi::c_void, affinetransform2deffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice3_Impl::CreateAffineTransform2DEffect(this) { Ok(ok__) => { @@ -1526,14 +1172,8 @@ pub trait IDCompositionDevice4_Impl: Sized + IDCompositionDevice3_Impl { impl windows_core::RuntimeName for IDCompositionDevice4 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDCompositionDevice4_Vtbl { - pub const fn new() -> IDCompositionDevice4_Vtbl - where - Identity: IDCompositionDevice4_Impl, - { - unsafe extern "system" fn CheckCompositionTextureSupport(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, supportscompositiontextures: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionDevice4_Impl, - { + pub const fn new() -> IDCompositionDevice4_Vtbl { + unsafe extern "system" fn CheckCompositionTextureSupport(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, supportscompositiontextures: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice4_Impl::CheckCompositionTextureSupport(this, windows_core::from_raw_borrowed(&renderingdevice)) { Ok(ok__) => { @@ -1543,10 +1183,7 @@ impl IDCompositionDevice4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCompositionTexture(this: *mut core::ffi::c_void, d3dtexture: *mut core::ffi::c_void, compositiontexture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDevice4_Impl, - { + unsafe extern "system" fn CreateCompositionTexture(this: *mut core::ffi::c_void, d3dtexture: *mut core::ffi::c_void, compositiontexture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice4_Impl::CreateCompositionTexture(this, windows_core::from_raw_borrowed(&d3dtexture)) { Ok(ok__) => { @@ -1566,27 +1203,18 @@ impl IDCompositionDevice4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDCompositionDeviceDebug_Impl: Sized { +pub trait IDCompositionDeviceDebug_Impl: Sized + windows_core::IUnknownImpl { fn EnableDebugCounters(&self) -> windows_core::Result<()>; fn DisableDebugCounters(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDCompositionDeviceDebug {} impl IDCompositionDeviceDebug_Vtbl { - pub const fn new() -> IDCompositionDeviceDebug_Vtbl - where - Identity: IDCompositionDeviceDebug_Impl, - { - unsafe extern "system" fn EnableDebugCounters(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDeviceDebug_Impl, - { + pub const fn new() -> IDCompositionDeviceDebug_Vtbl { + unsafe extern "system" fn EnableDebugCounters(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionDeviceDebug_Impl::EnableDebugCounters(this).into() } - unsafe extern "system" fn DisableDebugCounters(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionDeviceDebug_Impl, - { + unsafe extern "system" fn DisableDebugCounters(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionDeviceDebug_Impl::DisableDebugCounters(this).into() } @@ -1600,13 +1228,10 @@ impl IDCompositionDeviceDebug_Vtbl { iid == &::IID } } -pub trait IDCompositionEffect_Impl: Sized {} +pub trait IDCompositionEffect_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IDCompositionEffect {} impl IDCompositionEffect_Vtbl { - pub const fn new() -> IDCompositionEffect_Vtbl - where - Identity: IDCompositionEffect_Impl, - { + pub const fn new() -> IDCompositionEffect_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1620,28 +1245,16 @@ pub trait IDCompositionEffectGroup_Impl: Sized + IDCompositionEffect_Impl { } impl windows_core::RuntimeName for IDCompositionEffectGroup {} impl IDCompositionEffectGroup_Vtbl { - pub const fn new() -> IDCompositionEffectGroup_Vtbl - where - Identity: IDCompositionEffectGroup_Impl, - { - unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionEffectGroup_Impl, - { + pub const fn new() -> IDCompositionEffectGroup_Vtbl { + unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionEffectGroup_Impl::SetOpacity(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetOpacity2(this: *mut core::ffi::c_void, opacity: f32) -> windows_core::HRESULT - where - Identity: IDCompositionEffectGroup_Impl, - { + unsafe extern "system" fn SetOpacity2(this: *mut core::ffi::c_void, opacity: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionEffectGroup_Impl::SetOpacity2(this, core::mem::transmute_copy(&opacity)).into() } - unsafe extern "system" fn SetTransform3D(this: *mut core::ffi::c_void, transform3d: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionEffectGroup_Impl, - { + unsafe extern "system" fn SetTransform3D(this: *mut core::ffi::c_void, transform3d: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionEffectGroup_Impl::SetTransform3D(this, windows_core::from_raw_borrowed(&transform3d)).into() } @@ -1661,14 +1274,8 @@ pub trait IDCompositionFilterEffect_Impl: Sized + IDCompositionEffect_Impl { } impl windows_core::RuntimeName for IDCompositionFilterEffect {} impl IDCompositionFilterEffect_Vtbl { - pub const fn new() -> IDCompositionFilterEffect_Vtbl - where - Identity: IDCompositionFilterEffect_Impl, - { - unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, index: u32, input: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDCompositionFilterEffect_Impl, - { + pub const fn new() -> IDCompositionFilterEffect_Vtbl { + unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, index: u32, input: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionFilterEffect_Impl::SetInput(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&input), core::mem::transmute_copy(&flags)).into() } @@ -1688,28 +1295,16 @@ pub trait IDCompositionGaussianBlurEffect_Impl: Sized + IDCompositionFilterEffec impl windows_core::RuntimeName for IDCompositionGaussianBlurEffect {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionGaussianBlurEffect_Vtbl { - pub const fn new() -> IDCompositionGaussianBlurEffect_Vtbl - where - Identity: IDCompositionGaussianBlurEffect_Impl, - { - unsafe extern "system" fn SetStandardDeviation(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionGaussianBlurEffect_Impl, - { + pub const fn new() -> IDCompositionGaussianBlurEffect_Vtbl { + unsafe extern "system" fn SetStandardDeviation(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionGaussianBlurEffect_Impl::SetStandardDeviation(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetStandardDeviation2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT - where - Identity: IDCompositionGaussianBlurEffect_Impl, - { + unsafe extern "system" fn SetStandardDeviation2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionGaussianBlurEffect_Impl::SetStandardDeviation2(this, core::mem::transmute_copy(&amount)).into() } - unsafe extern "system" fn SetBorderMode(this: *mut core::ffi::c_void, mode: super::Direct2D::Common::D2D1_BORDER_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionGaussianBlurEffect_Impl, - { + unsafe extern "system" fn SetBorderMode(this: *mut core::ffi::c_void, mode: super::Direct2D::Common::D2D1_BORDER_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionGaussianBlurEffect_Impl::SetBorderMode(this, core::mem::transmute_copy(&mode)).into() } @@ -1730,21 +1325,12 @@ pub trait IDCompositionHueRotationEffect_Impl: Sized + IDCompositionFilterEffect } impl windows_core::RuntimeName for IDCompositionHueRotationEffect {} impl IDCompositionHueRotationEffect_Vtbl { - pub const fn new() -> IDCompositionHueRotationEffect_Vtbl - where - Identity: IDCompositionHueRotationEffect_Impl, - { - unsafe extern "system" fn SetAngle(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionHueRotationEffect_Impl, - { + pub const fn new() -> IDCompositionHueRotationEffect_Vtbl { + unsafe extern "system" fn SetAngle(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionHueRotationEffect_Impl::SetAngle(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAngle2(this: *mut core::ffi::c_void, amountdegrees: f32) -> windows_core::HRESULT - where - Identity: IDCompositionHueRotationEffect_Impl, - { + unsafe extern "system" fn SetAngle2(this: *mut core::ffi::c_void, amountdegrees: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionHueRotationEffect_Impl::SetAngle2(this, core::mem::transmute_copy(&amountdegrees)).into() } @@ -1758,20 +1344,14 @@ impl IDCompositionHueRotationEffect_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDCompositionInkTrailDevice_Impl: Sized { +pub trait IDCompositionInkTrailDevice_Impl: Sized + windows_core::IUnknownImpl { fn CreateDelegatedInkTrail(&self) -> windows_core::Result; fn CreateDelegatedInkTrailForSwapChain(&self, swapchain: Option<&windows_core::IUnknown>) -> windows_core::Result; } impl windows_core::RuntimeName for IDCompositionInkTrailDevice {} impl IDCompositionInkTrailDevice_Vtbl { - pub const fn new() -> IDCompositionInkTrailDevice_Vtbl - where - Identity: IDCompositionInkTrailDevice_Impl, - { - unsafe extern "system" fn CreateDelegatedInkTrail(this: *mut core::ffi::c_void, inktrail: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionInkTrailDevice_Impl, - { + pub const fn new() -> IDCompositionInkTrailDevice_Vtbl { + unsafe extern "system" fn CreateDelegatedInkTrail(this: *mut core::ffi::c_void, inktrail: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionInkTrailDevice_Impl::CreateDelegatedInkTrail(this) { Ok(ok__) => { @@ -1781,10 +1361,7 @@ impl IDCompositionInkTrailDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDelegatedInkTrailForSwapChain(this: *mut core::ffi::c_void, swapchain: *mut core::ffi::c_void, inktrail: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionInkTrailDevice_Impl, - { + unsafe extern "system" fn CreateDelegatedInkTrailForSwapChain(this: *mut core::ffi::c_void, swapchain: *mut core::ffi::c_void, inktrail: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionInkTrailDevice_Impl::CreateDelegatedInkTrailForSwapChain(this, windows_core::from_raw_borrowed(&swapchain)) { Ok(ok__) => { @@ -1829,154 +1406,88 @@ pub trait IDCompositionLinearTransferEffect_Impl: Sized + IDCompositionFilterEff } impl windows_core::RuntimeName for IDCompositionLinearTransferEffect {} impl IDCompositionLinearTransferEffect_Vtbl { - pub const fn new() -> IDCompositionLinearTransferEffect_Vtbl - where - Identity: IDCompositionLinearTransferEffect_Impl, - { - unsafe extern "system" fn SetRedYIntercept(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + pub const fn new() -> IDCompositionLinearTransferEffect_Vtbl { + unsafe extern "system" fn SetRedYIntercept(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetRedYIntercept(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetRedYIntercept2(this: *mut core::ffi::c_void, redyintercept: f32) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetRedYIntercept2(this: *mut core::ffi::c_void, redyintercept: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetRedYIntercept2(this, core::mem::transmute_copy(&redyintercept)).into() } - unsafe extern "system" fn SetRedSlope(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetRedSlope(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetRedSlope(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetRedSlope2(this: *mut core::ffi::c_void, redslope: f32) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetRedSlope2(this: *mut core::ffi::c_void, redslope: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetRedSlope2(this, core::mem::transmute_copy(&redslope)).into() } - unsafe extern "system" fn SetRedDisable(this: *mut core::ffi::c_void, reddisable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetRedDisable(this: *mut core::ffi::c_void, reddisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetRedDisable(this, core::mem::transmute_copy(&reddisable)).into() } - unsafe extern "system" fn SetGreenYIntercept(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetGreenYIntercept(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetGreenYIntercept(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetGreenYIntercept2(this: *mut core::ffi::c_void, greenyintercept: f32) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetGreenYIntercept2(this: *mut core::ffi::c_void, greenyintercept: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetGreenYIntercept2(this, core::mem::transmute_copy(&greenyintercept)).into() } - unsafe extern "system" fn SetGreenSlope(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetGreenSlope(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetGreenSlope(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetGreenSlope2(this: *mut core::ffi::c_void, greenslope: f32) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetGreenSlope2(this: *mut core::ffi::c_void, greenslope: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetGreenSlope2(this, core::mem::transmute_copy(&greenslope)).into() } - unsafe extern "system" fn SetGreenDisable(this: *mut core::ffi::c_void, greendisable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetGreenDisable(this: *mut core::ffi::c_void, greendisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetGreenDisable(this, core::mem::transmute_copy(&greendisable)).into() } - unsafe extern "system" fn SetBlueYIntercept(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetBlueYIntercept(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetBlueYIntercept(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBlueYIntercept2(this: *mut core::ffi::c_void, blueyintercept: f32) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetBlueYIntercept2(this: *mut core::ffi::c_void, blueyintercept: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetBlueYIntercept2(this, core::mem::transmute_copy(&blueyintercept)).into() } - unsafe extern "system" fn SetBlueSlope(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetBlueSlope(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetBlueSlope(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBlueSlope2(this: *mut core::ffi::c_void, blueslope: f32) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetBlueSlope2(this: *mut core::ffi::c_void, blueslope: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetBlueSlope2(this, core::mem::transmute_copy(&blueslope)).into() } - unsafe extern "system" fn SetBlueDisable(this: *mut core::ffi::c_void, bluedisable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetBlueDisable(this: *mut core::ffi::c_void, bluedisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetBlueDisable(this, core::mem::transmute_copy(&bluedisable)).into() } - unsafe extern "system" fn SetAlphaYIntercept(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetAlphaYIntercept(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetAlphaYIntercept(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAlphaYIntercept2(this: *mut core::ffi::c_void, alphayintercept: f32) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetAlphaYIntercept2(this: *mut core::ffi::c_void, alphayintercept: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetAlphaYIntercept2(this, core::mem::transmute_copy(&alphayintercept)).into() } - unsafe extern "system" fn SetAlphaSlope(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetAlphaSlope(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetAlphaSlope(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAlphaSlope2(this: *mut core::ffi::c_void, alphaslope: f32) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetAlphaSlope2(this: *mut core::ffi::c_void, alphaslope: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetAlphaSlope2(this, core::mem::transmute_copy(&alphaslope)).into() } - unsafe extern "system" fn SetAlphaDisable(this: *mut core::ffi::c_void, alphadisable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetAlphaDisable(this: *mut core::ffi::c_void, alphadisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetAlphaDisable(this, core::mem::transmute_copy(&alphadisable)).into() } - unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionLinearTransferEffect_Impl, - { + unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetClampOutput(this, core::mem::transmute_copy(&clampoutput)).into() } @@ -2019,28 +1530,16 @@ pub trait IDCompositionMatrixTransform_Impl: Sized + IDCompositionTransform_Impl impl windows_core::RuntimeName for IDCompositionMatrixTransform {} #[cfg(feature = "Foundation_Numerics")] impl IDCompositionMatrixTransform_Vtbl { - pub const fn new() -> IDCompositionMatrixTransform_Vtbl - where - Identity: IDCompositionMatrixTransform_Impl, - { - unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT - where - Identity: IDCompositionMatrixTransform_Impl, - { + pub const fn new() -> IDCompositionMatrixTransform_Vtbl { + unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionMatrixTransform_Impl::SetMatrix(this, core::mem::transmute_copy(&matrix)).into() } - unsafe extern "system" fn SetMatrixElement(this: *mut core::ffi::c_void, row: i32, column: i32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionMatrixTransform_Impl, - { + unsafe extern "system" fn SetMatrixElement(this: *mut core::ffi::c_void, row: i32, column: i32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionMatrixTransform_Impl::SetMatrixElement(this, core::mem::transmute_copy(&row), core::mem::transmute_copy(&column), windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetMatrixElement2(this: *mut core::ffi::c_void, row: i32, column: i32, value: f32) -> windows_core::HRESULT - where - Identity: IDCompositionMatrixTransform_Impl, - { + unsafe extern "system" fn SetMatrixElement2(this: *mut core::ffi::c_void, row: i32, column: i32, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionMatrixTransform_Impl::SetMatrixElement2(this, core::mem::transmute_copy(&row), core::mem::transmute_copy(&column), core::mem::transmute_copy(&value)).into() } @@ -2065,28 +1564,16 @@ pub trait IDCompositionMatrixTransform3D_Impl: Sized + IDCompositionTransform3D_ impl windows_core::RuntimeName for IDCompositionMatrixTransform3D {} #[cfg(feature = "Foundation_Numerics")] impl IDCompositionMatrixTransform3D_Vtbl { - pub const fn new() -> IDCompositionMatrixTransform3D_Vtbl - where - Identity: IDCompositionMatrixTransform3D_Impl, - { - unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT - where - Identity: IDCompositionMatrixTransform3D_Impl, - { + pub const fn new() -> IDCompositionMatrixTransform3D_Vtbl { + unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const super::super::super::Foundation::Numerics::Matrix4x4) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionMatrixTransform3D_Impl::SetMatrix(this, core::mem::transmute_copy(&matrix)).into() } - unsafe extern "system" fn SetMatrixElement(this: *mut core::ffi::c_void, row: i32, column: i32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionMatrixTransform3D_Impl, - { + unsafe extern "system" fn SetMatrixElement(this: *mut core::ffi::c_void, row: i32, column: i32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionMatrixTransform3D_Impl::SetMatrixElement(this, core::mem::transmute_copy(&row), core::mem::transmute_copy(&column), windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetMatrixElement2(this: *mut core::ffi::c_void, row: i32, column: i32, value: f32) -> windows_core::HRESULT - where - Identity: IDCompositionMatrixTransform3D_Impl, - { + unsafe extern "system" fn SetMatrixElement2(this: *mut core::ffi::c_void, row: i32, column: i32, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionMatrixTransform3D_Impl::SetMatrixElement2(this, core::mem::transmute_copy(&row), core::mem::transmute_copy(&column), core::mem::transmute_copy(&value)).into() } @@ -2129,175 +1616,100 @@ pub trait IDCompositionRectangleClip_Impl: Sized + IDCompositionClip_Impl { } impl windows_core::RuntimeName for IDCompositionRectangleClip {} impl IDCompositionRectangleClip_Vtbl { - pub const fn new() -> IDCompositionRectangleClip_Vtbl - where - Identity: IDCompositionRectangleClip_Impl, - { - unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + pub const fn new() -> IDCompositionRectangleClip_Vtbl { + unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetLeft(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetLeft2(this: *mut core::ffi::c_void, left: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetLeft2(this: *mut core::ffi::c_void, left: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetLeft2(this, core::mem::transmute_copy(&left)).into() } - unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetTop(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetTop2(this: *mut core::ffi::c_void, top: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetTop2(this: *mut core::ffi::c_void, top: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetTop2(this, core::mem::transmute_copy(&top)).into() } - unsafe extern "system" fn SetRight(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetRight(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetRight(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetRight2(this: *mut core::ffi::c_void, right: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetRight2(this: *mut core::ffi::c_void, right: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetRight2(this, core::mem::transmute_copy(&right)).into() } - unsafe extern "system" fn SetBottom(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetBottom(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetBottom(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBottom2(this: *mut core::ffi::c_void, bottom: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetBottom2(this: *mut core::ffi::c_void, bottom: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetBottom2(this, core::mem::transmute_copy(&bottom)).into() } - unsafe extern "system" fn SetTopLeftRadiusX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetTopLeftRadiusX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetTopLeftRadiusX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetTopLeftRadiusX2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetTopLeftRadiusX2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetTopLeftRadiusX2(this, core::mem::transmute_copy(&radius)).into() } - unsafe extern "system" fn SetTopLeftRadiusY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetTopLeftRadiusY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetTopLeftRadiusY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetTopLeftRadiusY2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetTopLeftRadiusY2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetTopLeftRadiusY2(this, core::mem::transmute_copy(&radius)).into() } - unsafe extern "system" fn SetTopRightRadiusX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetTopRightRadiusX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetTopRightRadiusX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetTopRightRadiusX2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetTopRightRadiusX2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetTopRightRadiusX2(this, core::mem::transmute_copy(&radius)).into() } - unsafe extern "system" fn SetTopRightRadiusY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetTopRightRadiusY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetTopRightRadiusY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetTopRightRadiusY2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetTopRightRadiusY2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetTopRightRadiusY2(this, core::mem::transmute_copy(&radius)).into() } - unsafe extern "system" fn SetBottomLeftRadiusX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetBottomLeftRadiusX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetBottomLeftRadiusX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBottomLeftRadiusX2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetBottomLeftRadiusX2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetBottomLeftRadiusX2(this, core::mem::transmute_copy(&radius)).into() } - unsafe extern "system" fn SetBottomLeftRadiusY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetBottomLeftRadiusY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetBottomLeftRadiusY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBottomLeftRadiusY2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetBottomLeftRadiusY2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetBottomLeftRadiusY2(this, core::mem::transmute_copy(&radius)).into() } - unsafe extern "system" fn SetBottomRightRadiusX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetBottomRightRadiusX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetBottomRightRadiusX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBottomRightRadiusX2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetBottomRightRadiusX2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetBottomRightRadiusX2(this, core::mem::transmute_copy(&radius)).into() } - unsafe extern "system" fn SetBottomRightRadiusY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetBottomRightRadiusY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetBottomRightRadiusY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBottomRightRadiusY2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRectangleClip_Impl, - { + unsafe extern "system" fn SetBottomRightRadiusY2(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRectangleClip_Impl::SetBottomRightRadiusY2(this, core::mem::transmute_copy(&radius)).into() } @@ -2343,49 +1755,28 @@ pub trait IDCompositionRotateTransform_Impl: Sized + IDCompositionTransform_Impl } impl windows_core::RuntimeName for IDCompositionRotateTransform {} impl IDCompositionRotateTransform_Vtbl { - pub const fn new() -> IDCompositionRotateTransform_Vtbl - where - Identity: IDCompositionRotateTransform_Impl, - { - unsafe extern "system" fn SetAngle(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform_Impl, - { + pub const fn new() -> IDCompositionRotateTransform_Vtbl { + unsafe extern "system" fn SetAngle(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform_Impl::SetAngle(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAngle2(this: *mut core::ffi::c_void, angle: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform_Impl, - { + unsafe extern "system" fn SetAngle2(this: *mut core::ffi::c_void, angle: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform_Impl::SetAngle2(this, core::mem::transmute_copy(&angle)).into() } - unsafe extern "system" fn SetCenterX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform_Impl, - { + unsafe extern "system" fn SetCenterX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform_Impl::SetCenterX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterX2(this: *mut core::ffi::c_void, centerx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform_Impl, - { + unsafe extern "system" fn SetCenterX2(this: *mut core::ffi::c_void, centerx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform_Impl::SetCenterX2(this, core::mem::transmute_copy(¢erx)).into() } - unsafe extern "system" fn SetCenterY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform_Impl, - { + unsafe extern "system" fn SetCenterY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform_Impl::SetCenterY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterY2(this: *mut core::ffi::c_void, centery: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform_Impl, - { + unsafe extern "system" fn SetCenterY2(this: *mut core::ffi::c_void, centery: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform_Impl::SetCenterY2(this, core::mem::transmute_copy(¢ery)).into() } @@ -2421,105 +1812,60 @@ pub trait IDCompositionRotateTransform3D_Impl: Sized + IDCompositionTransform3D_ } impl windows_core::RuntimeName for IDCompositionRotateTransform3D {} impl IDCompositionRotateTransform3D_Vtbl { - pub const fn new() -> IDCompositionRotateTransform3D_Vtbl - where - Identity: IDCompositionRotateTransform3D_Impl, - { - unsafe extern "system" fn SetAngle(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + pub const fn new() -> IDCompositionRotateTransform3D_Vtbl { + unsafe extern "system" fn SetAngle(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetAngle(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAngle2(this: *mut core::ffi::c_void, angle: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetAngle2(this: *mut core::ffi::c_void, angle: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetAngle2(this, core::mem::transmute_copy(&angle)).into() } - unsafe extern "system" fn SetAxisX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetAxisX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetAxisX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAxisX2(this: *mut core::ffi::c_void, axisx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetAxisX2(this: *mut core::ffi::c_void, axisx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetAxisX2(this, core::mem::transmute_copy(&axisx)).into() } - unsafe extern "system" fn SetAxisY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetAxisY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetAxisY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAxisY2(this: *mut core::ffi::c_void, axisy: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetAxisY2(this: *mut core::ffi::c_void, axisy: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetAxisY2(this, core::mem::transmute_copy(&axisy)).into() } - unsafe extern "system" fn SetAxisZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetAxisZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetAxisZ(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAxisZ2(this: *mut core::ffi::c_void, axisz: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetAxisZ2(this: *mut core::ffi::c_void, axisz: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetAxisZ2(this, core::mem::transmute_copy(&axisz)).into() } - unsafe extern "system" fn SetCenterX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetCenterX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetCenterX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterX2(this: *mut core::ffi::c_void, centerx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetCenterX2(this: *mut core::ffi::c_void, centerx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetCenterX2(this, core::mem::transmute_copy(¢erx)).into() } - unsafe extern "system" fn SetCenterY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetCenterY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetCenterY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterY2(this: *mut core::ffi::c_void, centery: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetCenterY2(this: *mut core::ffi::c_void, centery: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetCenterY2(this, core::mem::transmute_copy(¢ery)).into() } - unsafe extern "system" fn SetCenterZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetCenterZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetCenterZ(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterZ2(this: *mut core::ffi::c_void, centerz: f32) -> windows_core::HRESULT - where - Identity: IDCompositionRotateTransform3D_Impl, - { + unsafe extern "system" fn SetCenterZ2(this: *mut core::ffi::c_void, centerz: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionRotateTransform3D_Impl::SetCenterZ2(this, core::mem::transmute_copy(¢erz)).into() } @@ -2551,21 +1897,12 @@ pub trait IDCompositionSaturationEffect_Impl: Sized + IDCompositionFilterEffect_ } impl windows_core::RuntimeName for IDCompositionSaturationEffect {} impl IDCompositionSaturationEffect_Vtbl { - pub const fn new() -> IDCompositionSaturationEffect_Vtbl - where - Identity: IDCompositionSaturationEffect_Impl, - { - unsafe extern "system" fn SetSaturation(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionSaturationEffect_Impl, - { + pub const fn new() -> IDCompositionSaturationEffect_Vtbl { + unsafe extern "system" fn SetSaturation(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSaturationEffect_Impl::SetSaturation(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetSaturation2(this: *mut core::ffi::c_void, ratio: f32) -> windows_core::HRESULT - where - Identity: IDCompositionSaturationEffect_Impl, - { + unsafe extern "system" fn SetSaturation2(this: *mut core::ffi::c_void, ratio: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSaturationEffect_Impl::SetSaturation2(this, core::mem::transmute_copy(&ratio)).into() } @@ -2591,63 +1928,36 @@ pub trait IDCompositionScaleTransform_Impl: Sized + IDCompositionTransform_Impl } impl windows_core::RuntimeName for IDCompositionScaleTransform {} impl IDCompositionScaleTransform_Vtbl { - pub const fn new() -> IDCompositionScaleTransform_Vtbl - where - Identity: IDCompositionScaleTransform_Impl, - { - unsafe extern "system" fn SetScaleX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform_Impl, - { + pub const fn new() -> IDCompositionScaleTransform_Vtbl { + unsafe extern "system" fn SetScaleX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform_Impl::SetScaleX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetScaleX2(this: *mut core::ffi::c_void, scalex: f32) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform_Impl, - { + unsafe extern "system" fn SetScaleX2(this: *mut core::ffi::c_void, scalex: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform_Impl::SetScaleX2(this, core::mem::transmute_copy(&scalex)).into() } - unsafe extern "system" fn SetScaleY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform_Impl, - { + unsafe extern "system" fn SetScaleY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform_Impl::SetScaleY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetScaleY2(this: *mut core::ffi::c_void, scaley: f32) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform_Impl, - { + unsafe extern "system" fn SetScaleY2(this: *mut core::ffi::c_void, scaley: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform_Impl::SetScaleY2(this, core::mem::transmute_copy(&scaley)).into() } - unsafe extern "system" fn SetCenterX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform_Impl, - { + unsafe extern "system" fn SetCenterX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform_Impl::SetCenterX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterX2(this: *mut core::ffi::c_void, centerx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform_Impl, - { + unsafe extern "system" fn SetCenterX2(this: *mut core::ffi::c_void, centerx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform_Impl::SetCenterX2(this, core::mem::transmute_copy(¢erx)).into() } - unsafe extern "system" fn SetCenterY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform_Impl, - { + unsafe extern "system" fn SetCenterY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform_Impl::SetCenterY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterY2(this: *mut core::ffi::c_void, centery: f32) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform_Impl, - { + unsafe extern "system" fn SetCenterY2(this: *mut core::ffi::c_void, centery: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform_Impl::SetCenterY2(this, core::mem::transmute_copy(¢ery)).into() } @@ -2683,91 +1993,52 @@ pub trait IDCompositionScaleTransform3D_Impl: Sized + IDCompositionTransform3D_I } impl windows_core::RuntimeName for IDCompositionScaleTransform3D {} impl IDCompositionScaleTransform3D_Vtbl { - pub const fn new() -> IDCompositionScaleTransform3D_Vtbl - where - Identity: IDCompositionScaleTransform3D_Impl, - { - unsafe extern "system" fn SetScaleX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + pub const fn new() -> IDCompositionScaleTransform3D_Vtbl { + unsafe extern "system" fn SetScaleX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetScaleX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetScaleX2(this: *mut core::ffi::c_void, scalex: f32) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetScaleX2(this: *mut core::ffi::c_void, scalex: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetScaleX2(this, core::mem::transmute_copy(&scalex)).into() } - unsafe extern "system" fn SetScaleY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetScaleY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetScaleY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetScaleY2(this: *mut core::ffi::c_void, scaley: f32) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetScaleY2(this: *mut core::ffi::c_void, scaley: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetScaleY2(this, core::mem::transmute_copy(&scaley)).into() } - unsafe extern "system" fn SetScaleZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetScaleZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetScaleZ(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetScaleZ2(this: *mut core::ffi::c_void, scalez: f32) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetScaleZ2(this: *mut core::ffi::c_void, scalez: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetScaleZ2(this, core::mem::transmute_copy(&scalez)).into() } - unsafe extern "system" fn SetCenterX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetCenterX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetCenterX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterX2(this: *mut core::ffi::c_void, centerx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetCenterX2(this: *mut core::ffi::c_void, centerx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetCenterX2(this, core::mem::transmute_copy(¢erx)).into() } - unsafe extern "system" fn SetCenterY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetCenterY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetCenterY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterY2(this: *mut core::ffi::c_void, centery: f32) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetCenterY2(this: *mut core::ffi::c_void, centery: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetCenterY2(this, core::mem::transmute_copy(¢ery)).into() } - unsafe extern "system" fn SetCenterZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetCenterZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetCenterZ(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterZ2(this: *mut core::ffi::c_void, centerz: f32) -> windows_core::HRESULT - where - Identity: IDCompositionScaleTransform3D_Impl, - { + unsafe extern "system" fn SetCenterZ2(this: *mut core::ffi::c_void, centerz: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionScaleTransform3D_Impl::SetCenterZ2(this, core::mem::transmute_copy(¢erz)).into() } @@ -2809,84 +2080,48 @@ pub trait IDCompositionShadowEffect_Impl: Sized + IDCompositionFilterEffect_Impl impl windows_core::RuntimeName for IDCompositionShadowEffect {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionShadowEffect_Vtbl { - pub const fn new() -> IDCompositionShadowEffect_Vtbl - where - Identity: IDCompositionShadowEffect_Impl, - { - unsafe extern "system" fn SetStandardDeviation(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + pub const fn new() -> IDCompositionShadowEffect_Vtbl { + unsafe extern "system" fn SetStandardDeviation(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetStandardDeviation(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetStandardDeviation2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + unsafe extern "system" fn SetStandardDeviation2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetStandardDeviation2(this, core::mem::transmute_copy(&amount)).into() } - unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const super::Direct2D::Common::D2D_VECTOR_4F) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const super::Direct2D::Common::D2D_VECTOR_4F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn SetRed(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + unsafe extern "system" fn SetRed(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetRed(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetRed2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + unsafe extern "system" fn SetRed2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetRed2(this, core::mem::transmute_copy(&amount)).into() } - unsafe extern "system" fn SetGreen(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + unsafe extern "system" fn SetGreen(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetGreen(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetGreen2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + unsafe extern "system" fn SetGreen2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetGreen2(this, core::mem::transmute_copy(&amount)).into() } - unsafe extern "system" fn SetBlue(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + unsafe extern "system" fn SetBlue(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetBlue(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBlue2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + unsafe extern "system" fn SetBlue2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetBlue2(this, core::mem::transmute_copy(&amount)).into() } - unsafe extern "system" fn SetAlpha(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + unsafe extern "system" fn SetAlpha(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetAlpha(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAlpha2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT - where - Identity: IDCompositionShadowEffect_Impl, - { + unsafe extern "system" fn SetAlpha2(this: *mut core::ffi::c_void, amount: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionShadowEffect_Impl::SetAlpha2(this, core::mem::transmute_copy(&amount)).into() } @@ -2921,63 +2156,36 @@ pub trait IDCompositionSkewTransform_Impl: Sized + IDCompositionTransform_Impl { } impl windows_core::RuntimeName for IDCompositionSkewTransform {} impl IDCompositionSkewTransform_Vtbl { - pub const fn new() -> IDCompositionSkewTransform_Vtbl - where - Identity: IDCompositionSkewTransform_Impl, - { - unsafe extern "system" fn SetAngleX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionSkewTransform_Impl, - { + pub const fn new() -> IDCompositionSkewTransform_Vtbl { + unsafe extern "system" fn SetAngleX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSkewTransform_Impl::SetAngleX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAngleX2(this: *mut core::ffi::c_void, anglex: f32) -> windows_core::HRESULT - where - Identity: IDCompositionSkewTransform_Impl, - { + unsafe extern "system" fn SetAngleX2(this: *mut core::ffi::c_void, anglex: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSkewTransform_Impl::SetAngleX2(this, core::mem::transmute_copy(&anglex)).into() } - unsafe extern "system" fn SetAngleY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionSkewTransform_Impl, - { + unsafe extern "system" fn SetAngleY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSkewTransform_Impl::SetAngleY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAngleY2(this: *mut core::ffi::c_void, angley: f32) -> windows_core::HRESULT - where - Identity: IDCompositionSkewTransform_Impl, - { + unsafe extern "system" fn SetAngleY2(this: *mut core::ffi::c_void, angley: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSkewTransform_Impl::SetAngleY2(this, core::mem::transmute_copy(&angley)).into() } - unsafe extern "system" fn SetCenterX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionSkewTransform_Impl, - { + unsafe extern "system" fn SetCenterX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSkewTransform_Impl::SetCenterX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterX2(this: *mut core::ffi::c_void, centerx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionSkewTransform_Impl, - { + unsafe extern "system" fn SetCenterX2(this: *mut core::ffi::c_void, centerx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSkewTransform_Impl::SetCenterX2(this, core::mem::transmute_copy(¢erx)).into() } - unsafe extern "system" fn SetCenterY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionSkewTransform_Impl, - { + unsafe extern "system" fn SetCenterY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSkewTransform_Impl::SetCenterY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetCenterY2(this: *mut core::ffi::c_void, centery: f32) -> windows_core::HRESULT - where - Identity: IDCompositionSkewTransform_Impl, - { + unsafe extern "system" fn SetCenterY2(this: *mut core::ffi::c_void, centery: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSkewTransform_Impl::SetCenterY2(this, core::mem::transmute_copy(¢ery)).into() } @@ -2997,7 +2205,7 @@ impl IDCompositionSkewTransform_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDCompositionSurface_Impl: Sized { +pub trait IDCompositionSurface_Impl: Sized + windows_core::IUnknownImpl { fn BeginDraw(&self, updaterect: *const super::super::Foundation::RECT, iid: *const windows_core::GUID, updateobject: *mut *mut core::ffi::c_void, updateoffset: *mut super::super::Foundation::POINT) -> windows_core::Result<()>; fn EndDraw(&self) -> windows_core::Result<()>; fn SuspendDraw(&self) -> windows_core::Result<()>; @@ -3006,42 +2214,24 @@ pub trait IDCompositionSurface_Impl: Sized { } impl windows_core::RuntimeName for IDCompositionSurface {} impl IDCompositionSurface_Vtbl { - pub const fn new() -> IDCompositionSurface_Vtbl - where - Identity: IDCompositionSurface_Impl, - { - unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void, updaterect: *const super::super::Foundation::RECT, iid: *const windows_core::GUID, updateobject: *mut *mut core::ffi::c_void, updateoffset: *mut super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IDCompositionSurface_Impl, - { + pub const fn new() -> IDCompositionSurface_Vtbl { + unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void, updaterect: *const super::super::Foundation::RECT, iid: *const windows_core::GUID, updateobject: *mut *mut core::ffi::c_void, updateoffset: *mut super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSurface_Impl::BeginDraw(this, core::mem::transmute_copy(&updaterect), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&updateobject), core::mem::transmute_copy(&updateoffset)).into() } - unsafe extern "system" fn EndDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionSurface_Impl, - { + unsafe extern "system" fn EndDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSurface_Impl::EndDraw(this).into() } - unsafe extern "system" fn SuspendDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionSurface_Impl, - { + unsafe extern "system" fn SuspendDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSurface_Impl::SuspendDraw(this).into() } - unsafe extern "system" fn ResumeDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionSurface_Impl, - { + unsafe extern "system" fn ResumeDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSurface_Impl::ResumeDraw(this).into() } - unsafe extern "system" fn Scroll(this: *mut core::ffi::c_void, scrollrect: *const super::super::Foundation::RECT, cliprect: *const super::super::Foundation::RECT, offsetx: i32, offsety: i32) -> windows_core::HRESULT - where - Identity: IDCompositionSurface_Impl, - { + unsafe extern "system" fn Scroll(this: *mut core::ffi::c_void, scrollrect: *const super::super::Foundation::RECT, cliprect: *const super::super::Foundation::RECT, offsetx: i32, offsety: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionSurface_Impl::Scroll(this, core::mem::transmute_copy(&scrollrect), core::mem::transmute_copy(&cliprect), core::mem::transmute_copy(&offsetx), core::mem::transmute_copy(&offsety)).into() } @@ -3059,7 +2249,7 @@ impl IDCompositionSurface_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait IDCompositionSurfaceFactory_Impl: Sized { +pub trait IDCompositionSurfaceFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateSurface(&self, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result; fn CreateVirtualSurface(&self, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result; } @@ -3067,14 +2257,8 @@ pub trait IDCompositionSurfaceFactory_Impl: Sized { impl windows_core::RuntimeName for IDCompositionSurfaceFactory {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDCompositionSurfaceFactory_Vtbl { - pub const fn new() -> IDCompositionSurfaceFactory_Vtbl - where - Identity: IDCompositionSurfaceFactory_Impl, - { - unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionSurfaceFactory_Impl, - { + pub const fn new() -> IDCompositionSurfaceFactory_Vtbl { + unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, surface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionSurfaceFactory_Impl::CreateSurface(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&pixelformat), core::mem::transmute_copy(&alphamode)) { Ok(ok__) => { @@ -3084,10 +2268,7 @@ impl IDCompositionSurfaceFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVirtualSurface(this: *mut core::ffi::c_void, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, virtualsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionSurfaceFactory_Impl, - { + unsafe extern "system" fn CreateVirtualSurface(this: *mut core::ffi::c_void, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE, virtualsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionSurfaceFactory_Impl::CreateVirtualSurface(this, core::mem::transmute_copy(&initialwidth), core::mem::transmute_copy(&initialheight), core::mem::transmute_copy(&pixelformat), core::mem::transmute_copy(&alphamode)) { Ok(ok__) => { @@ -3128,126 +2309,72 @@ pub trait IDCompositionTableTransferEffect_Impl: Sized + IDCompositionFilterEffe } impl windows_core::RuntimeName for IDCompositionTableTransferEffect {} impl IDCompositionTableTransferEffect_Vtbl { - pub const fn new() -> IDCompositionTableTransferEffect_Vtbl - where - Identity: IDCompositionTableTransferEffect_Impl, - { - unsafe extern "system" fn SetRedTable(this: *mut core::ffi::c_void, tablevalues: *const f32, count: u32) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + pub const fn new() -> IDCompositionTableTransferEffect_Vtbl { + unsafe extern "system" fn SetRedTable(this: *mut core::ffi::c_void, tablevalues: *const f32, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetRedTable(this, core::mem::transmute_copy(&tablevalues), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn SetGreenTable(this: *mut core::ffi::c_void, tablevalues: *const f32, count: u32) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetGreenTable(this: *mut core::ffi::c_void, tablevalues: *const f32, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetGreenTable(this, core::mem::transmute_copy(&tablevalues), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn SetBlueTable(this: *mut core::ffi::c_void, tablevalues: *const f32, count: u32) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetBlueTable(this: *mut core::ffi::c_void, tablevalues: *const f32, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetBlueTable(this, core::mem::transmute_copy(&tablevalues), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn SetAlphaTable(this: *mut core::ffi::c_void, tablevalues: *const f32, count: u32) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetAlphaTable(this: *mut core::ffi::c_void, tablevalues: *const f32, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetAlphaTable(this, core::mem::transmute_copy(&tablevalues), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn SetRedDisable(this: *mut core::ffi::c_void, reddisable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetRedDisable(this: *mut core::ffi::c_void, reddisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetRedDisable(this, core::mem::transmute_copy(&reddisable)).into() } - unsafe extern "system" fn SetGreenDisable(this: *mut core::ffi::c_void, greendisable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetGreenDisable(this: *mut core::ffi::c_void, greendisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetGreenDisable(this, core::mem::transmute_copy(&greendisable)).into() } - unsafe extern "system" fn SetBlueDisable(this: *mut core::ffi::c_void, bluedisable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetBlueDisable(this: *mut core::ffi::c_void, bluedisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetBlueDisable(this, core::mem::transmute_copy(&bluedisable)).into() } - unsafe extern "system" fn SetAlphaDisable(this: *mut core::ffi::c_void, alphadisable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetAlphaDisable(this: *mut core::ffi::c_void, alphadisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetAlphaDisable(this, core::mem::transmute_copy(&alphadisable)).into() } - unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetClampOutput(this, core::mem::transmute_copy(&clampoutput)).into() } - unsafe extern "system" fn SetRedTableValue(this: *mut core::ffi::c_void, index: u32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetRedTableValue(this: *mut core::ffi::c_void, index: u32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetRedTableValue(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetRedTableValue2(this: *mut core::ffi::c_void, index: u32, value: f32) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetRedTableValue2(this: *mut core::ffi::c_void, index: u32, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetRedTableValue2(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetGreenTableValue(this: *mut core::ffi::c_void, index: u32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetGreenTableValue(this: *mut core::ffi::c_void, index: u32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetGreenTableValue(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetGreenTableValue2(this: *mut core::ffi::c_void, index: u32, value: f32) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetGreenTableValue2(this: *mut core::ffi::c_void, index: u32, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetGreenTableValue2(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetBlueTableValue(this: *mut core::ffi::c_void, index: u32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetBlueTableValue(this: *mut core::ffi::c_void, index: u32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetBlueTableValue(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetBlueTableValue2(this: *mut core::ffi::c_void, index: u32, value: f32) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetBlueTableValue2(this: *mut core::ffi::c_void, index: u32, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetBlueTableValue2(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetAlphaTableValue(this: *mut core::ffi::c_void, index: u32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetAlphaTableValue(this: *mut core::ffi::c_void, index: u32, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetAlphaTableValue(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetAlphaTableValue2(this: *mut core::ffi::c_void, index: u32, value: f32) -> windows_core::HRESULT - where - Identity: IDCompositionTableTransferEffect_Impl, - { + unsafe extern "system" fn SetAlphaTableValue2(this: *mut core::ffi::c_void, index: u32, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetAlphaTableValue2(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&value)).into() } @@ -3276,19 +2403,13 @@ impl IDCompositionTableTransferEffect_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDCompositionTarget_Impl: Sized { +pub trait IDCompositionTarget_Impl: Sized + windows_core::IUnknownImpl { fn SetRoot(&self, visual: Option<&IDCompositionVisual>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDCompositionTarget {} impl IDCompositionTarget_Vtbl { - pub const fn new() -> IDCompositionTarget_Vtbl - where - Identity: IDCompositionTarget_Impl, - { - unsafe extern "system" fn SetRoot(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTarget_Impl, - { + pub const fn new() -> IDCompositionTarget_Vtbl { + unsafe extern "system" fn SetRoot(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTarget_Impl::SetRoot(this, windows_core::from_raw_borrowed(&visual)).into() } @@ -3299,7 +2420,7 @@ impl IDCompositionTarget_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] -pub trait IDCompositionTexture_Impl: Sized { +pub trait IDCompositionTexture_Impl: Sized + windows_core::IUnknownImpl { fn SetSourceRect(&self, sourcerect: *const super::Direct2D::Common::D2D_RECT_U) -> windows_core::Result<()>; fn SetColorSpace(&self, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result<()>; fn SetAlphaMode(&self, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result<()>; @@ -3309,35 +2430,20 @@ pub trait IDCompositionTexture_Impl: Sized { impl windows_core::RuntimeName for IDCompositionTexture {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] impl IDCompositionTexture_Vtbl { - pub const fn new() -> IDCompositionTexture_Vtbl - where - Identity: IDCompositionTexture_Impl, - { - unsafe extern "system" fn SetSourceRect(this: *mut core::ffi::c_void, sourcerect: *const super::Direct2D::Common::D2D_RECT_U) -> windows_core::HRESULT - where - Identity: IDCompositionTexture_Impl, - { + pub const fn new() -> IDCompositionTexture_Vtbl { + unsafe extern "system" fn SetSourceRect(this: *mut core::ffi::c_void, sourcerect: *const super::Direct2D::Common::D2D_RECT_U) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTexture_Impl::SetSourceRect(this, core::mem::transmute_copy(&sourcerect)).into() } - unsafe extern "system" fn SetColorSpace(this: *mut core::ffi::c_void, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::HRESULT - where - Identity: IDCompositionTexture_Impl, - { + unsafe extern "system" fn SetColorSpace(this: *mut core::ffi::c_void, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTexture_Impl::SetColorSpace(this, core::mem::transmute_copy(&colorspace)).into() } - unsafe extern "system" fn SetAlphaMode(this: *mut core::ffi::c_void, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionTexture_Impl, - { + unsafe extern "system" fn SetAlphaMode(this: *mut core::ffi::c_void, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTexture_Impl::SetAlphaMode(this, core::mem::transmute_copy(&alphamode)).into() } - unsafe extern "system" fn GetAvailableFence(this: *mut core::ffi::c_void, fencevalue: *mut u64, iid: *const windows_core::GUID, availablefence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTexture_Impl, - { + unsafe extern "system" fn GetAvailableFence(this: *mut core::ffi::c_void, fencevalue: *mut u64, iid: *const windows_core::GUID, availablefence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTexture_Impl::GetAvailableFence(this, core::mem::transmute_copy(&fencevalue), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&availablefence)).into() } @@ -3356,10 +2462,7 @@ impl IDCompositionTexture_Vtbl { pub trait IDCompositionTransform_Impl: Sized + IDCompositionTransform3D_Impl {} impl windows_core::RuntimeName for IDCompositionTransform {} impl IDCompositionTransform_Vtbl { - pub const fn new() -> IDCompositionTransform_Vtbl - where - Identity: IDCompositionTransform_Impl, - { + pub const fn new() -> IDCompositionTransform_Vtbl { Self { base__: IDCompositionTransform3D_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -3369,10 +2472,7 @@ impl IDCompositionTransform_Vtbl { pub trait IDCompositionTransform3D_Impl: Sized + IDCompositionEffect_Impl {} impl windows_core::RuntimeName for IDCompositionTransform3D {} impl IDCompositionTransform3D_Vtbl { - pub const fn new() -> IDCompositionTransform3D_Vtbl - where - Identity: IDCompositionTransform3D_Impl, - { + pub const fn new() -> IDCompositionTransform3D_Vtbl { Self { base__: IDCompositionEffect_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -3387,35 +2487,20 @@ pub trait IDCompositionTranslateTransform_Impl: Sized + IDCompositionTransform_I } impl windows_core::RuntimeName for IDCompositionTranslateTransform {} impl IDCompositionTranslateTransform_Vtbl { - pub const fn new() -> IDCompositionTranslateTransform_Vtbl - where - Identity: IDCompositionTranslateTransform_Impl, - { - unsafe extern "system" fn SetOffsetX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTranslateTransform_Impl, - { + pub const fn new() -> IDCompositionTranslateTransform_Vtbl { + unsafe extern "system" fn SetOffsetX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTranslateTransform_Impl::SetOffsetX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetOffsetX2(this: *mut core::ffi::c_void, offsetx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionTranslateTransform_Impl, - { + unsafe extern "system" fn SetOffsetX2(this: *mut core::ffi::c_void, offsetx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTranslateTransform_Impl::SetOffsetX2(this, core::mem::transmute_copy(&offsetx)).into() } - unsafe extern "system" fn SetOffsetY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTranslateTransform_Impl, - { + unsafe extern "system" fn SetOffsetY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTranslateTransform_Impl::SetOffsetY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetOffsetY2(this: *mut core::ffi::c_void, offsety: f32) -> windows_core::HRESULT - where - Identity: IDCompositionTranslateTransform_Impl, - { + unsafe extern "system" fn SetOffsetY2(this: *mut core::ffi::c_void, offsety: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTranslateTransform_Impl::SetOffsetY2(this, core::mem::transmute_copy(&offsety)).into() } @@ -3441,49 +2526,28 @@ pub trait IDCompositionTranslateTransform3D_Impl: Sized + IDCompositionTransform } impl windows_core::RuntimeName for IDCompositionTranslateTransform3D {} impl IDCompositionTranslateTransform3D_Vtbl { - pub const fn new() -> IDCompositionTranslateTransform3D_Vtbl - where - Identity: IDCompositionTranslateTransform3D_Impl, - { - unsafe extern "system" fn SetOffsetX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTranslateTransform3D_Impl, - { + pub const fn new() -> IDCompositionTranslateTransform3D_Vtbl { + unsafe extern "system" fn SetOffsetX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTranslateTransform3D_Impl::SetOffsetX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetOffsetX2(this: *mut core::ffi::c_void, offsetx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionTranslateTransform3D_Impl, - { + unsafe extern "system" fn SetOffsetX2(this: *mut core::ffi::c_void, offsetx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTranslateTransform3D_Impl::SetOffsetX2(this, core::mem::transmute_copy(&offsetx)).into() } - unsafe extern "system" fn SetOffsetY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTranslateTransform3D_Impl, - { + unsafe extern "system" fn SetOffsetY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTranslateTransform3D_Impl::SetOffsetY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetOffsetY2(this: *mut core::ffi::c_void, offsety: f32) -> windows_core::HRESULT - where - Identity: IDCompositionTranslateTransform3D_Impl, - { + unsafe extern "system" fn SetOffsetY2(this: *mut core::ffi::c_void, offsety: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTranslateTransform3D_Impl::SetOffsetY2(this, core::mem::transmute_copy(&offsety)).into() } - unsafe extern "system" fn SetOffsetZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionTranslateTransform3D_Impl, - { + unsafe extern "system" fn SetOffsetZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTranslateTransform3D_Impl::SetOffsetZ(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetOffsetZ2(this: *mut core::ffi::c_void, offsetz: f32) -> windows_core::HRESULT - where - Identity: IDCompositionTranslateTransform3D_Impl, - { + unsafe extern "system" fn SetOffsetZ2(this: *mut core::ffi::c_void, offsetz: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTranslateTransform3D_Impl::SetOffsetZ2(this, core::mem::transmute_copy(&offsetz)).into() } @@ -3515,56 +2579,32 @@ pub trait IDCompositionTurbulenceEffect_Impl: Sized + IDCompositionFilterEffect_ impl windows_core::RuntimeName for IDCompositionTurbulenceEffect {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionTurbulenceEffect_Vtbl { - pub const fn new() -> IDCompositionTurbulenceEffect_Vtbl - where - Identity: IDCompositionTurbulenceEffect_Impl, - { - unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::HRESULT - where - Identity: IDCompositionTurbulenceEffect_Impl, - { + pub const fn new() -> IDCompositionTurbulenceEffect_Vtbl { + unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTurbulenceEffect_Impl::SetOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn SetBaseFrequency(this: *mut core::ffi::c_void, frequency: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::HRESULT - where - Identity: IDCompositionTurbulenceEffect_Impl, - { + unsafe extern "system" fn SetBaseFrequency(this: *mut core::ffi::c_void, frequency: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTurbulenceEffect_Impl::SetBaseFrequency(this, core::mem::transmute_copy(&frequency)).into() } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, size: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::HRESULT - where - Identity: IDCompositionTurbulenceEffect_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, size: *const super::Direct2D::Common::D2D_VECTOR_2F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTurbulenceEffect_Impl::SetSize(this, core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn SetNumOctaves(this: *mut core::ffi::c_void, numoctaves: u32) -> windows_core::HRESULT - where - Identity: IDCompositionTurbulenceEffect_Impl, - { + unsafe extern "system" fn SetNumOctaves(this: *mut core::ffi::c_void, numoctaves: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTurbulenceEffect_Impl::SetNumOctaves(this, core::mem::transmute_copy(&numoctaves)).into() } - unsafe extern "system" fn SetSeed(this: *mut core::ffi::c_void, seed: u32) -> windows_core::HRESULT - where - Identity: IDCompositionTurbulenceEffect_Impl, - { + unsafe extern "system" fn SetSeed(this: *mut core::ffi::c_void, seed: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTurbulenceEffect_Impl::SetSeed(this, core::mem::transmute_copy(&seed)).into() } - unsafe extern "system" fn SetNoise(this: *mut core::ffi::c_void, noise: super::Direct2D::Common::D2D1_TURBULENCE_NOISE) -> windows_core::HRESULT - where - Identity: IDCompositionTurbulenceEffect_Impl, - { + unsafe extern "system" fn SetNoise(this: *mut core::ffi::c_void, noise: super::Direct2D::Common::D2D1_TURBULENCE_NOISE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTurbulenceEffect_Impl::SetNoise(this, core::mem::transmute_copy(&noise)).into() } - unsafe extern "system" fn SetStitchable(this: *mut core::ffi::c_void, stitchable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionTurbulenceEffect_Impl, - { + unsafe extern "system" fn SetStitchable(this: *mut core::ffi::c_void, stitchable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTurbulenceEffect_Impl::SetStitchable(this, core::mem::transmute_copy(&stitchable)).into() } @@ -3589,21 +2629,12 @@ pub trait IDCompositionVirtualSurface_Impl: Sized + IDCompositionSurface_Impl { } impl windows_core::RuntimeName for IDCompositionVirtualSurface {} impl IDCompositionVirtualSurface_Vtbl { - pub const fn new() -> IDCompositionVirtualSurface_Vtbl - where - Identity: IDCompositionVirtualSurface_Impl, - { - unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT - where - Identity: IDCompositionVirtualSurface_Impl, - { + pub const fn new() -> IDCompositionVirtualSurface_Vtbl { + unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVirtualSurface_Impl::Resize(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn Trim(this: *mut core::ffi::c_void, rectangles: *const super::super::Foundation::RECT, count: u32) -> windows_core::HRESULT - where - Identity: IDCompositionVirtualSurface_Impl, - { + unsafe extern "system" fn Trim(this: *mut core::ffi::c_void, rectangles: *const super::super::Foundation::RECT, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVirtualSurface_Impl::Trim(this, core::mem::transmute_copy(&rectangles), core::mem::transmute_copy(&count)).into() } @@ -3614,7 +2645,7 @@ impl IDCompositionVirtualSurface_Vtbl { } } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] -pub trait IDCompositionVisual_Impl: Sized { +pub trait IDCompositionVisual_Impl: Sized + windows_core::IUnknownImpl { fn SetOffsetX(&self, animation: Option<&IDCompositionAnimation>) -> windows_core::Result<()>; fn SetOffsetX2(&self, offsetx: f32) -> windows_core::Result<()>; fn SetOffsetY(&self, animation: Option<&IDCompositionAnimation>) -> windows_core::Result<()>; @@ -3637,126 +2668,72 @@ pub trait IDCompositionVisual_Impl: Sized { impl windows_core::RuntimeName for IDCompositionVisual {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl IDCompositionVisual_Vtbl { - pub const fn new() -> IDCompositionVisual_Vtbl - where - Identity: IDCompositionVisual_Impl, - { - unsafe extern "system" fn SetOffsetX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + pub const fn new() -> IDCompositionVisual_Vtbl { + unsafe extern "system" fn SetOffsetX(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetOffsetX(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetOffsetX2(this: *mut core::ffi::c_void, offsetx: f32) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetOffsetX2(this: *mut core::ffi::c_void, offsetx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetOffsetX2(this, core::mem::transmute_copy(&offsetx)).into() } - unsafe extern "system" fn SetOffsetY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetOffsetY(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetOffsetY(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetOffsetY2(this: *mut core::ffi::c_void, offsety: f32) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetOffsetY2(this: *mut core::ffi::c_void, offsety: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetOffsetY2(this, core::mem::transmute_copy(&offsety)).into() } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetTransform(this, windows_core::from_raw_borrowed(&transform)).into() } - unsafe extern "system" fn SetTransform2(this: *mut core::ffi::c_void, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetTransform2(this: *mut core::ffi::c_void, matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetTransform2(this, core::mem::transmute_copy(&matrix)).into() } - unsafe extern "system" fn SetTransformParent(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetTransformParent(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetTransformParent(this, windows_core::from_raw_borrowed(&visual)).into() } - unsafe extern "system" fn SetEffect(this: *mut core::ffi::c_void, effect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetEffect(this: *mut core::ffi::c_void, effect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetEffect(this, windows_core::from_raw_borrowed(&effect)).into() } - unsafe extern "system" fn SetBitmapInterpolationMode(this: *mut core::ffi::c_void, interpolationmode: DCOMPOSITION_BITMAP_INTERPOLATION_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetBitmapInterpolationMode(this: *mut core::ffi::c_void, interpolationmode: DCOMPOSITION_BITMAP_INTERPOLATION_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetBitmapInterpolationMode(this, core::mem::transmute_copy(&interpolationmode)).into() } - unsafe extern "system" fn SetBorderMode(this: *mut core::ffi::c_void, bordermode: DCOMPOSITION_BORDER_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetBorderMode(this: *mut core::ffi::c_void, bordermode: DCOMPOSITION_BORDER_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetBorderMode(this, core::mem::transmute_copy(&bordermode)).into() } - unsafe extern "system" fn SetClip(this: *mut core::ffi::c_void, clip: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetClip(this: *mut core::ffi::c_void, clip: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetClip(this, windows_core::from_raw_borrowed(&clip)).into() } - unsafe extern "system" fn SetClip2(this: *mut core::ffi::c_void, rect: *const super::Direct2D::Common::D2D_RECT_F) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetClip2(this: *mut core::ffi::c_void, rect: *const super::Direct2D::Common::D2D_RECT_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetClip2(this, core::mem::transmute_copy(&rect)).into() } - unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetContent(this, windows_core::from_raw_borrowed(&content)).into() } - unsafe extern "system" fn AddVisual(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void, insertabove: super::super::Foundation::BOOL, referencevisual: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn AddVisual(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void, insertabove: super::super::Foundation::BOOL, referencevisual: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::AddVisual(this, windows_core::from_raw_borrowed(&visual), core::mem::transmute_copy(&insertabove), windows_core::from_raw_borrowed(&referencevisual)).into() } - unsafe extern "system" fn RemoveVisual(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn RemoveVisual(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::RemoveVisual(this, windows_core::from_raw_borrowed(&visual)).into() } - unsafe extern "system" fn RemoveAllVisuals(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn RemoveAllVisuals(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::RemoveAllVisuals(this).into() } - unsafe extern "system" fn SetCompositeMode(this: *mut core::ffi::c_void, compositemode: DCOMPOSITION_COMPOSITE_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionVisual_Impl, - { + unsafe extern "system" fn SetCompositeMode(this: *mut core::ffi::c_void, compositemode: DCOMPOSITION_COMPOSITE_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::SetCompositeMode(this, core::mem::transmute_copy(&compositemode)).into() } @@ -3794,21 +2771,12 @@ pub trait IDCompositionVisual2_Impl: Sized + IDCompositionVisual_Impl { impl windows_core::RuntimeName for IDCompositionVisual2 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl IDCompositionVisual2_Vtbl { - pub const fn new() -> IDCompositionVisual2_Vtbl - where - Identity: IDCompositionVisual2_Impl, - { - unsafe extern "system" fn SetOpacityMode(this: *mut core::ffi::c_void, mode: DCOMPOSITION_OPACITY_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionVisual2_Impl, - { + pub const fn new() -> IDCompositionVisual2_Vtbl { + unsafe extern "system" fn SetOpacityMode(this: *mut core::ffi::c_void, mode: DCOMPOSITION_OPACITY_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual2_Impl::SetOpacityMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn SetBackFaceVisibility(this: *mut core::ffi::c_void, visibility: DCOMPOSITION_BACKFACE_VISIBILITY) -> windows_core::HRESULT - where - Identity: IDCompositionVisual2_Impl, - { + unsafe extern "system" fn SetBackFaceVisibility(this: *mut core::ffi::c_void, visibility: DCOMPOSITION_BACKFACE_VISIBILITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual2_Impl::SetBackFaceVisibility(this, core::mem::transmute_copy(&visibility)).into() } @@ -3837,63 +2805,36 @@ pub trait IDCompositionVisual3_Impl: Sized + IDCompositionVisualDebug_Impl { impl windows_core::RuntimeName for IDCompositionVisual3 {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl IDCompositionVisual3_Vtbl { - pub const fn new() -> IDCompositionVisual3_Vtbl - where - Identity: IDCompositionVisual3_Impl, - { - unsafe extern "system" fn SetDepthMode(this: *mut core::ffi::c_void, mode: DCOMPOSITION_DEPTH_MODE) -> windows_core::HRESULT - where - Identity: IDCompositionVisual3_Impl, - { + pub const fn new() -> IDCompositionVisual3_Vtbl { + unsafe extern "system" fn SetDepthMode(this: *mut core::ffi::c_void, mode: DCOMPOSITION_DEPTH_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual3_Impl::SetDepthMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn SetOffsetZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual3_Impl, - { + unsafe extern "system" fn SetOffsetZ(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual3_Impl::SetOffsetZ(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetOffsetZ2(this: *mut core::ffi::c_void, offsetz: f32) -> windows_core::HRESULT - where - Identity: IDCompositionVisual3_Impl, - { + unsafe extern "system" fn SetOffsetZ2(this: *mut core::ffi::c_void, offsetz: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual3_Impl::SetOffsetZ2(this, core::mem::transmute_copy(&offsetz)).into() } - unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual3_Impl, - { + unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual3_Impl::SetOpacity(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn SetOpacity2(this: *mut core::ffi::c_void, opacity: f32) -> windows_core::HRESULT - where - Identity: IDCompositionVisual3_Impl, - { + unsafe extern "system" fn SetOpacity2(this: *mut core::ffi::c_void, opacity: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual3_Impl::SetOpacity2(this, core::mem::transmute_copy(&opacity)).into() } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisual3_Impl, - { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual3_Impl::SetTransform(this, windows_core::from_raw_borrowed(&transform)).into() } - unsafe extern "system" fn SetTransform2(this: *mut core::ffi::c_void, matrix: *const super::Direct2D::Common::D2D_MATRIX_4X4_F) -> windows_core::HRESULT - where - Identity: IDCompositionVisual3_Impl, - { + unsafe extern "system" fn SetTransform2(this: *mut core::ffi::c_void, matrix: *const super::Direct2D::Common::D2D_MATRIX_4X4_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual3_Impl::SetTransform2(this, core::mem::transmute_copy(&matrix)).into() } - unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDCompositionVisual3_Impl, - { + unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual3_Impl::SetVisible(this, core::mem::transmute_copy(&visible)).into() } @@ -3924,35 +2865,20 @@ pub trait IDCompositionVisualDebug_Impl: Sized + IDCompositionVisual2_Impl { impl windows_core::RuntimeName for IDCompositionVisualDebug {} #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl IDCompositionVisualDebug_Vtbl { - pub const fn new() -> IDCompositionVisualDebug_Vtbl - where - Identity: IDCompositionVisualDebug_Impl, - { - unsafe extern "system" fn EnableHeatMap(this: *mut core::ffi::c_void, color: *const super::Direct2D::Common::D2D1_COLOR_F) -> windows_core::HRESULT - where - Identity: IDCompositionVisualDebug_Impl, - { + pub const fn new() -> IDCompositionVisualDebug_Vtbl { + unsafe extern "system" fn EnableHeatMap(this: *mut core::ffi::c_void, color: *const super::Direct2D::Common::D2D1_COLOR_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisualDebug_Impl::EnableHeatMap(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn DisableHeatMap(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisualDebug_Impl, - { + unsafe extern "system" fn DisableHeatMap(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisualDebug_Impl::DisableHeatMap(this).into() } - unsafe extern "system" fn EnableRedrawRegions(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisualDebug_Impl, - { + unsafe extern "system" fn EnableRedrawRegions(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisualDebug_Impl::EnableRedrawRegions(this).into() } - unsafe extern "system" fn DisableRedrawRegions(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDCompositionVisualDebug_Impl, - { + unsafe extern "system" fn DisableRedrawRegions(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisualDebug_Impl::DisableRedrawRegions(this).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/impl.rs index d8434ab4f2..f255a08844 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/impl.rs @@ -1,4 +1,4 @@ -pub trait IDDVideoPortContainer_Impl: Sized { +pub trait IDDVideoPortContainer_Impl: Sized + windows_core::IUnknownImpl { fn CreateVideoPort(&self, param0: u32, param1: *mut DDVIDEOPORTDESC, param2: *mut Option, param3: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EnumVideoPorts(&self, param0: u32, param1: *mut DDVIDEOPORTCAPS, param2: *mut core::ffi::c_void, param3: LPDDENUMVIDEOCALLBACK) -> windows_core::Result<()>; fn GetVideoPortConnectInfo(&self, param0: u32, pcinfo: *mut u32, param2: *mut DDVIDEOPORTCONNECT) -> windows_core::Result<()>; @@ -6,35 +6,20 @@ pub trait IDDVideoPortContainer_Impl: Sized { } impl windows_core::RuntimeName for IDDVideoPortContainer {} impl IDDVideoPortContainer_Vtbl { - pub const fn new() -> IDDVideoPortContainer_Vtbl - where - Identity: IDDVideoPortContainer_Impl, - { - unsafe extern "system" fn CreateVideoPort(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDVIDEOPORTDESC, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDDVideoPortContainer_Impl, - { + pub const fn new() -> IDDVideoPortContainer_Vtbl { + unsafe extern "system" fn CreateVideoPort(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDVIDEOPORTDESC, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDVideoPortContainer_Impl::CreateVideoPort(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } - unsafe extern "system" fn EnumVideoPorts(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDVIDEOPORTCAPS, param2: *mut core::ffi::c_void, param3: LPDDENUMVIDEOCALLBACK) -> windows_core::HRESULT - where - Identity: IDDVideoPortContainer_Impl, - { + unsafe extern "system" fn EnumVideoPorts(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDVIDEOPORTCAPS, param2: *mut core::ffi::c_void, param3: LPDDENUMVIDEOCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDVideoPortContainer_Impl::EnumVideoPorts(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn GetVideoPortConnectInfo(this: *mut core::ffi::c_void, param0: u32, pcinfo: *mut u32, param2: *mut DDVIDEOPORTCONNECT) -> windows_core::HRESULT - where - Identity: IDDVideoPortContainer_Impl, - { + unsafe extern "system" fn GetVideoPortConnectInfo(this: *mut core::ffi::c_void, param0: u32, pcinfo: *mut u32, param2: *mut DDVIDEOPORTCONNECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDVideoPortContainer_Impl::GetVideoPortConnectInfo(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(&pcinfo), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn QueryVideoPortStatus(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDVIDEOPORTSTATUS) -> windows_core::HRESULT - where - Identity: IDDVideoPortContainer_Impl, - { + unsafe extern "system" fn QueryVideoPortStatus(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDVIDEOPORTSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDVideoPortContainer_Impl::QueryVideoPortStatus(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -51,7 +36,7 @@ impl IDDVideoPortContainer_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDraw_Impl: Sized { +pub trait IDirectDraw_Impl: Sized + windows_core::IUnknownImpl { fn Compact(&self) -> windows_core::Result<()>; fn CreateClipper(&self, param0: u32, param1: *mut Option, param2: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn CreatePalette(&self, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut Option, param3: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -77,42 +62,24 @@ pub trait IDirectDraw_Impl: Sized { impl windows_core::RuntimeName for IDirectDraw {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDraw_Vtbl { - pub const fn new() -> IDirectDraw_Vtbl - where - Identity: IDirectDraw_Impl, - { - unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + pub const fn new() -> IDirectDraw_Vtbl { + unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::Compact(this).into() } - unsafe extern "system" fn CreateClipper(this: *mut core::ffi::c_void, param0: u32, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn CreateClipper(this: *mut core::ffi::c_void, param0: u32, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::CreateClipper(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn CreatePalette(this: *mut core::ffi::c_void, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn CreatePalette(this: *mut core::ffi::c_void, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::CreatePalette(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } - unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::CreateSurface(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn DuplicateSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn DuplicateSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDraw_Impl::DuplicateSurface(this, windows_core::from_raw_borrowed(¶m0)) { Ok(ok__) => { @@ -122,52 +89,31 @@ impl IDirectDraw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDisplayModes(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn EnumDisplayModes(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::EnumDisplayModes(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn EnumSurfaces(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn EnumSurfaces(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::EnumSurfaces(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn FlipToGDISurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn FlipToGDISurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::FlipToGDISurface(this).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDCAPS_DX7, param1: *mut DDCAPS_DX7) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDCAPS_DX7, param1: *mut DDCAPS_DX7) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::GetCaps(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::GetDisplayMode(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetFourCCCodes(this: *mut core::ffi::c_void, param0: *mut u32, param1: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn GetFourCCCodes(this: *mut core::ffi::c_void, param0: *mut u32, param1: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::GetFourCCCodes(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetGDISurface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn GetGDISurface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDraw_Impl::GetGDISurface(this) { Ok(ok__) => { @@ -177,59 +123,35 @@ impl IDirectDraw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMonitorFrequency(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn GetMonitorFrequency(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::GetMonitorFrequency(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetScanLine(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn GetScanLine(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::GetScanLine(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::GetVerticalBlankStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::Initialize(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RestoreDisplayMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn RestoreDisplayMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::RestoreDisplayMode(this).into() } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetDisplayMode(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn SetDisplayMode(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::SetDisplayMode(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn WaitForVerticalBlank(this: *mut core::ffi::c_void, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectDraw_Impl, - { + unsafe extern "system" fn WaitForVerticalBlank(this: *mut core::ffi::c_void, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::WaitForVerticalBlank(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -262,7 +184,7 @@ impl IDirectDraw_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDraw2_Impl: Sized { +pub trait IDirectDraw2_Impl: Sized + windows_core::IUnknownImpl { fn Compact(&self) -> windows_core::Result<()>; fn CreateClipper(&self, param0: u32, param1: *mut Option, param2: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn CreatePalette(&self, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut Option, param3: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -289,42 +211,24 @@ pub trait IDirectDraw2_Impl: Sized { impl windows_core::RuntimeName for IDirectDraw2 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDraw2_Vtbl { - pub const fn new() -> IDirectDraw2_Vtbl - where - Identity: IDirectDraw2_Impl, - { - unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + pub const fn new() -> IDirectDraw2_Vtbl { + unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::Compact(this).into() } - unsafe extern "system" fn CreateClipper(this: *mut core::ffi::c_void, param0: u32, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn CreateClipper(this: *mut core::ffi::c_void, param0: u32, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::CreateClipper(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn CreatePalette(this: *mut core::ffi::c_void, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn CreatePalette(this: *mut core::ffi::c_void, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::CreatePalette(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } - unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::CreateSurface(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn DuplicateSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn DuplicateSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDraw2_Impl::DuplicateSurface(this, windows_core::from_raw_borrowed(¶m0)) { Ok(ok__) => { @@ -334,52 +238,31 @@ impl IDirectDraw2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDisplayModes(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn EnumDisplayModes(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::EnumDisplayModes(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn EnumSurfaces(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn EnumSurfaces(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::EnumSurfaces(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn FlipToGDISurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn FlipToGDISurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::FlipToGDISurface(this).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDCAPS_DX7, param1: *mut DDCAPS_DX7) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDCAPS_DX7, param1: *mut DDCAPS_DX7) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::GetCaps(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::GetDisplayMode(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetFourCCCodes(this: *mut core::ffi::c_void, param0: *mut u32, param1: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn GetFourCCCodes(this: *mut core::ffi::c_void, param0: *mut u32, param1: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::GetFourCCCodes(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetGDISurface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn GetGDISurface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDraw2_Impl::GetGDISurface(this) { Ok(ok__) => { @@ -389,66 +272,39 @@ impl IDirectDraw2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMonitorFrequency(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn GetMonitorFrequency(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::GetMonitorFrequency(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetScanLine(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn GetScanLine(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::GetScanLine(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::GetVerticalBlankStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::Initialize(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RestoreDisplayMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn RestoreDisplayMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::RestoreDisplayMode(this).into() } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetDisplayMode(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn SetDisplayMode(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::SetDisplayMode(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn WaitForVerticalBlank(this: *mut core::ffi::c_void, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn WaitForVerticalBlank(this: *mut core::ffi::c_void, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::WaitForVerticalBlank(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetAvailableVidMem(this: *mut core::ffi::c_void, param0: *mut DDSCAPS, param1: *mut u32, param2: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw2_Impl, - { + unsafe extern "system" fn GetAvailableVidMem(this: *mut core::ffi::c_void, param0: *mut DDSCAPS, param1: *mut u32, param2: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::GetAvailableVidMem(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } @@ -482,7 +338,7 @@ impl IDirectDraw2_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDraw4_Impl: Sized { +pub trait IDirectDraw4_Impl: Sized + windows_core::IUnknownImpl { fn Compact(&self) -> windows_core::Result<()>; fn CreateClipper(&self, param0: u32, param1: *mut Option, param2: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn CreatePalette(&self, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut Option, param3: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -513,42 +369,24 @@ pub trait IDirectDraw4_Impl: Sized { impl windows_core::RuntimeName for IDirectDraw4 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDraw4_Vtbl { - pub const fn new() -> IDirectDraw4_Vtbl - where - Identity: IDirectDraw4_Impl, - { - unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + pub const fn new() -> IDirectDraw4_Vtbl { + unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::Compact(this).into() } - unsafe extern "system" fn CreateClipper(this: *mut core::ffi::c_void, param0: u32, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn CreateClipper(this: *mut core::ffi::c_void, param0: u32, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::CreateClipper(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn CreatePalette(this: *mut core::ffi::c_void, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn CreatePalette(this: *mut core::ffi::c_void, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::CreatePalette(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } - unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::CreateSurface(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn DuplicateSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn DuplicateSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDraw4_Impl::DuplicateSurface(this, windows_core::from_raw_borrowed(¶m0)) { Ok(ok__) => { @@ -558,52 +396,31 @@ impl IDirectDraw4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDisplayModes(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK2) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn EnumDisplayModes(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::EnumDisplayModes(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn EnumSurfaces(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK2) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn EnumSurfaces(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::EnumSurfaces(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn FlipToGDISurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn FlipToGDISurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::FlipToGDISurface(this).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDCAPS_DX7, param1: *mut DDCAPS_DX7) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDCAPS_DX7, param1: *mut DDCAPS_DX7) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::GetCaps(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::GetDisplayMode(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetFourCCCodes(this: *mut core::ffi::c_void, param0: *mut u32, param1: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn GetFourCCCodes(this: *mut core::ffi::c_void, param0: *mut u32, param1: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::GetFourCCCodes(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetGDISurface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn GetGDISurface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDraw4_Impl::GetGDISurface(this) { Ok(ok__) => { @@ -613,73 +430,43 @@ impl IDirectDraw4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMonitorFrequency(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn GetMonitorFrequency(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::GetMonitorFrequency(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetScanLine(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn GetScanLine(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::GetScanLine(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::GetVerticalBlankStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::Initialize(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RestoreDisplayMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn RestoreDisplayMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::RestoreDisplayMode(this).into() } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetDisplayMode(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn SetDisplayMode(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::SetDisplayMode(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn WaitForVerticalBlank(this: *mut core::ffi::c_void, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn WaitForVerticalBlank(this: *mut core::ffi::c_void, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::WaitForVerticalBlank(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetAvailableVidMem(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2, param1: *mut u32, param2: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn GetAvailableVidMem(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2, param1: *mut u32, param2: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::GetAvailableVidMem(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetSurfaceFromDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn GetSurfaceFromDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDraw4_Impl::GetSurfaceFromDC(this, core::mem::transmute_copy(¶m0)) { Ok(ok__) => { @@ -689,24 +476,15 @@ impl IDirectDraw4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RestoreAllSurfaces(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn RestoreAllSurfaces(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::RestoreAllSurfaces(this).into() } - unsafe extern "system" fn TestCooperativeLevel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn TestCooperativeLevel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::TestCooperativeLevel(this).into() } - unsafe extern "system" fn GetDeviceIdentifier(this: *mut core::ffi::c_void, param0: *mut DDDEVICEIDENTIFIER, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw4_Impl, - { + unsafe extern "system" fn GetDeviceIdentifier(this: *mut core::ffi::c_void, param0: *mut DDDEVICEIDENTIFIER, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::GetDeviceIdentifier(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -744,7 +522,7 @@ impl IDirectDraw4_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDraw7_Impl: Sized { +pub trait IDirectDraw7_Impl: Sized + windows_core::IUnknownImpl { fn Compact(&self) -> windows_core::Result<()>; fn CreateClipper(&self, param0: u32, param1: *mut Option, param2: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn CreatePalette(&self, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut Option, param3: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -777,42 +555,24 @@ pub trait IDirectDraw7_Impl: Sized { impl windows_core::RuntimeName for IDirectDraw7 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDraw7_Vtbl { - pub const fn new() -> IDirectDraw7_Vtbl - where - Identity: IDirectDraw7_Impl, - { - unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + pub const fn new() -> IDirectDraw7_Vtbl { + unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::Compact(this).into() } - unsafe extern "system" fn CreateClipper(this: *mut core::ffi::c_void, param0: u32, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn CreateClipper(this: *mut core::ffi::c_void, param0: u32, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::CreateClipper(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn CreatePalette(this: *mut core::ffi::c_void, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn CreatePalette(this: *mut core::ffi::c_void, param0: u32, param1: *mut super::Gdi::PALETTEENTRY, param2: *mut *mut core::ffi::c_void, param3: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::CreatePalette(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)).into() } - unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2, param1: *mut *mut core::ffi::c_void, param2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::CreateSurface(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2)).into() } - unsafe extern "system" fn DuplicateSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn DuplicateSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDraw7_Impl::DuplicateSurface(this, windows_core::from_raw_borrowed(¶m0)) { Ok(ok__) => { @@ -822,52 +582,31 @@ impl IDirectDraw7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDisplayModes(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK2) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn EnumDisplayModes(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMMODESCALLBACK2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::EnumDisplayModes(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn EnumSurfaces(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK7) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn EnumSurfaces(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDSURFACEDESC2, param2: *mut core::ffi::c_void, param3: LPDDENUMSURFACESCALLBACK7) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::EnumSurfaces(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn FlipToGDISurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn FlipToGDISurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::FlipToGDISurface(this).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDCAPS_DX7, param1: *mut DDCAPS_DX7) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDCAPS_DX7, param1: *mut DDCAPS_DX7) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::GetCaps(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn GetDisplayMode(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::GetDisplayMode(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetFourCCCodes(this: *mut core::ffi::c_void, param0: *mut u32, param1: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn GetFourCCCodes(this: *mut core::ffi::c_void, param0: *mut u32, param1: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::GetFourCCCodes(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetGDISurface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn GetGDISurface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDraw7_Impl::GetGDISurface(this) { Ok(ok__) => { @@ -877,73 +616,43 @@ impl IDirectDraw7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMonitorFrequency(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn GetMonitorFrequency(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::GetMonitorFrequency(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetScanLine(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn GetScanLine(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::GetScanLine(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::GetVerticalBlankStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::Initialize(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn RestoreDisplayMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn RestoreDisplayMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::RestoreDisplayMode(this).into() } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetDisplayMode(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn SetDisplayMode(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::SetDisplayMode(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn WaitForVerticalBlank(this: *mut core::ffi::c_void, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn WaitForVerticalBlank(this: *mut core::ffi::c_void, param0: u32, param1: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::WaitForVerticalBlank(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetAvailableVidMem(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2, param1: *mut u32, param2: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn GetAvailableVidMem(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2, param1: *mut u32, param2: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::GetAvailableVidMem(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetSurfaceFromDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn GetSurfaceFromDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDraw7_Impl::GetSurfaceFromDC(this, core::mem::transmute_copy(¶m0)) { Ok(ok__) => { @@ -953,38 +662,23 @@ impl IDirectDraw7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RestoreAllSurfaces(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn RestoreAllSurfaces(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::RestoreAllSurfaces(this).into() } - unsafe extern "system" fn TestCooperativeLevel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn TestCooperativeLevel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::TestCooperativeLevel(this).into() } - unsafe extern "system" fn GetDeviceIdentifier(this: *mut core::ffi::c_void, param0: *mut DDDEVICEIDENTIFIER2, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn GetDeviceIdentifier(this: *mut core::ffi::c_void, param0: *mut DDDEVICEIDENTIFIER2, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::GetDeviceIdentifier(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn StartModeTest(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::SIZE, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn StartModeTest(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::SIZE, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::StartModeTest(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn EvaluateMode(this: *mut core::ffi::c_void, param0: u32, param1: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDraw7_Impl, - { + unsafe extern "system" fn EvaluateMode(this: *mut core::ffi::c_void, param0: u32, param1: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::EvaluateMode(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -1024,7 +718,7 @@ impl IDirectDraw7_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDrawClipper_Impl: Sized { +pub trait IDirectDrawClipper_Impl: Sized + windows_core::IUnknownImpl { fn GetClipList(&self, param0: *mut super::super::Foundation::RECT, param1: *mut super::Gdi::RGNDATA, param2: *mut u32) -> windows_core::Result<()>; fn GetHWnd(&self, param0: *mut super::super::Foundation::HWND) -> windows_core::Result<()>; fn Initialize(&self, param0: Option<&IDirectDraw>, param1: u32) -> windows_core::Result<()>; @@ -1036,49 +730,28 @@ pub trait IDirectDrawClipper_Impl: Sized { impl windows_core::RuntimeName for IDirectDrawClipper {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDrawClipper_Vtbl { - pub const fn new() -> IDirectDrawClipper_Vtbl - where - Identity: IDirectDrawClipper_Impl, - { - unsafe extern "system" fn GetClipList(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut super::Gdi::RGNDATA, param2: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawClipper_Impl, - { + pub const fn new() -> IDirectDrawClipper_Vtbl { + unsafe extern "system" fn GetClipList(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut super::Gdi::RGNDATA, param2: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawClipper_Impl::GetClipList(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetHWnd(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDirectDrawClipper_Impl, - { + unsafe extern "system" fn GetHWnd(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawClipper_Impl::GetHWnd(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawClipper_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawClipper_Impl::Initialize(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn IsClipListChanged(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectDrawClipper_Impl, - { + unsafe extern "system" fn IsClipListChanged(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawClipper_Impl::IsClipListChanged(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetClipList(this: *mut core::ffi::c_void, param0: *mut super::Gdi::RGNDATA, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawClipper_Impl, - { + unsafe extern "system" fn SetClipList(this: *mut core::ffi::c_void, param0: *mut super::Gdi::RGNDATA, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawClipper_Impl::SetClipList(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetHWnd(this: *mut core::ffi::c_void, param0: u32, param1: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDirectDrawClipper_Impl, - { + unsafe extern "system" fn SetHWnd(this: *mut core::ffi::c_void, param0: u32, param1: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawClipper_Impl::SetHWnd(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -1096,27 +769,18 @@ impl IDirectDrawClipper_Vtbl { iid == &::IID } } -pub trait IDirectDrawColorControl_Impl: Sized { +pub trait IDirectDrawColorControl_Impl: Sized + windows_core::IUnknownImpl { fn GetColorControls(&self, param0: *mut DDCOLORCONTROL) -> windows_core::Result<()>; fn SetColorControls(&self, param0: *mut DDCOLORCONTROL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectDrawColorControl {} impl IDirectDrawColorControl_Vtbl { - pub const fn new() -> IDirectDrawColorControl_Vtbl - where - Identity: IDirectDrawColorControl_Impl, - { - unsafe extern "system" fn GetColorControls(this: *mut core::ffi::c_void, param0: *mut DDCOLORCONTROL) -> windows_core::HRESULT - where - Identity: IDirectDrawColorControl_Impl, - { + pub const fn new() -> IDirectDrawColorControl_Vtbl { + unsafe extern "system" fn GetColorControls(this: *mut core::ffi::c_void, param0: *mut DDCOLORCONTROL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawColorControl_Impl::GetColorControls(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetColorControls(this: *mut core::ffi::c_void, param0: *mut DDCOLORCONTROL) -> windows_core::HRESULT - where - Identity: IDirectDrawColorControl_Impl, - { + unsafe extern "system" fn SetColorControls(this: *mut core::ffi::c_void, param0: *mut DDCOLORCONTROL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawColorControl_Impl::SetColorControls(this, core::mem::transmute_copy(¶m0)).into() } @@ -1130,27 +794,18 @@ impl IDirectDrawColorControl_Vtbl { iid == &::IID } } -pub trait IDirectDrawGammaControl_Impl: Sized { +pub trait IDirectDrawGammaControl_Impl: Sized + windows_core::IUnknownImpl { fn GetGammaRamp(&self, param0: u32, param1: *mut DDGAMMARAMP) -> windows_core::Result<()>; fn SetGammaRamp(&self, param0: u32, param1: *mut DDGAMMARAMP) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectDrawGammaControl {} impl IDirectDrawGammaControl_Vtbl { - pub const fn new() -> IDirectDrawGammaControl_Vtbl - where - Identity: IDirectDrawGammaControl_Impl, - { - unsafe extern "system" fn GetGammaRamp(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDGAMMARAMP) -> windows_core::HRESULT - where - Identity: IDirectDrawGammaControl_Impl, - { + pub const fn new() -> IDirectDrawGammaControl_Vtbl { + unsafe extern "system" fn GetGammaRamp(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDGAMMARAMP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawGammaControl_Impl::GetGammaRamp(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetGammaRamp(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDGAMMARAMP) -> windows_core::HRESULT - where - Identity: IDirectDrawGammaControl_Impl, - { + unsafe extern "system" fn SetGammaRamp(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDGAMMARAMP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawGammaControl_Impl::SetGammaRamp(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -1164,35 +819,23 @@ impl IDirectDrawGammaControl_Vtbl { iid == &::IID } } -pub trait IDirectDrawKernel_Impl: Sized { +pub trait IDirectDrawKernel_Impl: Sized + windows_core::IUnknownImpl { fn GetCaps(&self, param0: *mut DDKERNELCAPS) -> windows_core::Result<()>; fn GetKernelHandle(&self, param0: *mut usize) -> windows_core::Result<()>; fn ReleaseKernelHandle(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectDrawKernel {} impl IDirectDrawKernel_Vtbl { - pub const fn new() -> IDirectDrawKernel_Vtbl - where - Identity: IDirectDrawKernel_Impl, - { - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDKERNELCAPS) -> windows_core::HRESULT - where - Identity: IDirectDrawKernel_Impl, - { + pub const fn new() -> IDirectDrawKernel_Vtbl { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDKERNELCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawKernel_Impl::GetCaps(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetKernelHandle(this: *mut core::ffi::c_void, param0: *mut usize) -> windows_core::HRESULT - where - Identity: IDirectDrawKernel_Impl, - { + unsafe extern "system" fn GetKernelHandle(this: *mut core::ffi::c_void, param0: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawKernel_Impl::GetKernelHandle(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn ReleaseKernelHandle(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawKernel_Impl, - { + unsafe extern "system" fn ReleaseKernelHandle(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawKernel_Impl::ReleaseKernelHandle(this).into() } @@ -1208,7 +851,7 @@ impl IDirectDrawKernel_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDrawPalette_Impl: Sized { +pub trait IDirectDrawPalette_Impl: Sized + windows_core::IUnknownImpl { fn GetCaps(&self, param0: *mut u32) -> windows_core::Result<()>; fn GetEntries(&self, param0: u32, param1: u32, param2: u32, param3: *mut super::Gdi::PALETTEENTRY) -> windows_core::Result<()>; fn Initialize(&self, param0: Option<&IDirectDraw>, param1: u32, param2: *mut super::Gdi::PALETTEENTRY) -> windows_core::Result<()>; @@ -1218,35 +861,20 @@ pub trait IDirectDrawPalette_Impl: Sized { impl windows_core::RuntimeName for IDirectDrawPalette {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDrawPalette_Vtbl { - pub const fn new() -> IDirectDrawPalette_Vtbl - where - Identity: IDirectDrawPalette_Impl, - { - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawPalette_Impl, - { + pub const fn new() -> IDirectDrawPalette_Vtbl { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawPalette_Impl::GetCaps(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetEntries(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: *mut super::Gdi::PALETTEENTRY) -> windows_core::HRESULT - where - Identity: IDirectDrawPalette_Impl, - { + unsafe extern "system" fn GetEntries(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: *mut super::Gdi::PALETTEENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawPalette_Impl::GetEntries(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32, param2: *mut super::Gdi::PALETTEENTRY) -> windows_core::HRESULT - where - Identity: IDirectDrawPalette_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32, param2: *mut super::Gdi::PALETTEENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawPalette_Impl::Initialize(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn SetEntries(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: *mut super::Gdi::PALETTEENTRY) -> windows_core::HRESULT - where - Identity: IDirectDrawPalette_Impl, - { + unsafe extern "system" fn SetEntries(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32, param3: *mut super::Gdi::PALETTEENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawPalette_Impl::SetEntries(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } @@ -1263,7 +891,7 @@ impl IDirectDrawPalette_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDrawSurface_Impl: Sized { +pub trait IDirectDrawSurface_Impl: Sized + windows_core::IUnknownImpl { fn AddAttachedSurface(&self, param0: Option<&IDirectDrawSurface>) -> windows_core::Result<()>; fn AddOverlayDirtyRect(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; fn Blt(&self, param0: *mut super::super::Foundation::RECT, param1: Option<&IDirectDrawSurface>, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::Result<()>; @@ -1302,98 +930,56 @@ pub trait IDirectDrawSurface_Impl: Sized { impl windows_core::RuntimeName for IDirectDrawSurface {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDrawSurface_Vtbl { - pub const fn new() -> IDirectDrawSurface_Vtbl - where - Identity: IDirectDrawSurface_Impl, - { - unsafe extern "system" fn AddAttachedSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + pub const fn new() -> IDirectDrawSurface_Vtbl { + unsafe extern "system" fn AddAttachedSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::AddAttachedSurface(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn AddOverlayDirtyRect(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn AddOverlayDirtyRect(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::AddOverlayDirtyRect(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Blt(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn Blt(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::Blt(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn BltBatch(this: *mut core::ffi::c_void, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn BltBatch(this: *mut core::ffi::c_void, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::BltBatch(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn BltFast(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut core::ffi::c_void, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn BltFast(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut core::ffi::c_void, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::BltFast(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn DeleteAttachedSurface(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn DeleteAttachedSurface(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::DeleteAttachedSurface(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } - unsafe extern "system" fn EnumAttachedSurfaces(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn EnumAttachedSurfaces(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::EnumAttachedSurfaces(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn EnumOverlayZOrders(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn EnumOverlayZOrders(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::EnumOverlayZOrders(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::Flip(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetAttachedSurface(this: *mut core::ffi::c_void, param0: *mut DDSCAPS, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetAttachedSurface(this: *mut core::ffi::c_void, param0: *mut DDSCAPS, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::GetAttachedSurface(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetBltStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetBltStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::GetBltStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDSCAPS) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDSCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::GetCaps(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetClipper(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetClipper(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawSurface_Impl::GetClipper(this) { Ok(ok__) => { @@ -1403,38 +989,23 @@ impl IDirectDrawSurface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::GetColorKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, param0: *mut super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, param0: *mut super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::GetDC(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetFlipStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetFlipStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::GetFlipStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetOverlayPosition(this: *mut core::ffi::c_void, param0: *mut i32, param1: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetOverlayPosition(this: *mut core::ffi::c_void, param0: *mut i32, param1: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::GetOverlayPosition(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawSurface_Impl::GetPalette(this) { Ok(ok__) => { @@ -1444,108 +1015,63 @@ impl IDirectDrawSurface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::GetPixelFormat(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::GetSurfaceDesc(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut DDSURFACEDESC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut DDSURFACEDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::Initialize(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn IsLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn IsLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::IsLost(this).into() } - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::Lock(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::ReleaseDC(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::Restore(this).into() } - unsafe extern "system" fn SetClipper(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn SetClipper(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::SetClipper(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::SetColorKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetOverlayPosition(this: *mut core::ffi::c_void, param0: i32, param1: i32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn SetOverlayPosition(this: *mut core::ffi::c_void, param0: i32, param1: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::SetOverlayPosition(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::SetPalette(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::Unlock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn UpdateOverlay(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn UpdateOverlay(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::UpdateOverlay(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn UpdateOverlayDisplay(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn UpdateOverlayDisplay(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::UpdateOverlayDisplay(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn UpdateOverlayZOrder(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface_Impl, - { + unsafe extern "system" fn UpdateOverlayZOrder(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface_Impl::UpdateOverlayZOrder(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } @@ -1591,7 +1117,7 @@ impl IDirectDrawSurface_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDrawSurface2_Impl: Sized { +pub trait IDirectDrawSurface2_Impl: Sized + windows_core::IUnknownImpl { fn AddAttachedSurface(&self, param0: Option<&IDirectDrawSurface2>) -> windows_core::Result<()>; fn AddOverlayDirtyRect(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; fn Blt(&self, param0: *mut super::super::Foundation::RECT, param1: Option<&IDirectDrawSurface2>, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::Result<()>; @@ -1633,98 +1159,56 @@ pub trait IDirectDrawSurface2_Impl: Sized { impl windows_core::RuntimeName for IDirectDrawSurface2 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDrawSurface2_Vtbl { - pub const fn new() -> IDirectDrawSurface2_Vtbl - where - Identity: IDirectDrawSurface2_Impl, - { - unsafe extern "system" fn AddAttachedSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + pub const fn new() -> IDirectDrawSurface2_Vtbl { + unsafe extern "system" fn AddAttachedSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::AddAttachedSurface(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn AddOverlayDirtyRect(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn AddOverlayDirtyRect(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::AddOverlayDirtyRect(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Blt(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn Blt(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::Blt(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn BltBatch(this: *mut core::ffi::c_void, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn BltBatch(this: *mut core::ffi::c_void, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::BltBatch(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn BltFast(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut core::ffi::c_void, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn BltFast(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut core::ffi::c_void, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::BltFast(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn DeleteAttachedSurface(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn DeleteAttachedSurface(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::DeleteAttachedSurface(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } - unsafe extern "system" fn EnumAttachedSurfaces(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn EnumAttachedSurfaces(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::EnumAttachedSurfaces(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn EnumOverlayZOrders(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn EnumOverlayZOrders(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::EnumOverlayZOrders(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::Flip(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetAttachedSurface(this: *mut core::ffi::c_void, param0: *mut DDSCAPS, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetAttachedSurface(this: *mut core::ffi::c_void, param0: *mut DDSCAPS, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::GetAttachedSurface(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetBltStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetBltStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::GetBltStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDSCAPS) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDSCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::GetCaps(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetClipper(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetClipper(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawSurface2_Impl::GetClipper(this) { Ok(ok__) => { @@ -1734,38 +1218,23 @@ impl IDirectDrawSurface2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::GetColorKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, param0: *mut super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, param0: *mut super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::GetDC(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetFlipStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetFlipStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::GetFlipStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetOverlayPosition(this: *mut core::ffi::c_void, param0: *mut i32, param1: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetOverlayPosition(this: *mut core::ffi::c_void, param0: *mut i32, param1: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::GetOverlayPosition(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawSurface2_Impl::GetPalette(this) { Ok(ok__) => { @@ -1775,129 +1244,75 @@ impl IDirectDrawSurface2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::GetPixelFormat(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::GetSurfaceDesc(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut DDSURFACEDESC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut DDSURFACEDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::Initialize(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn IsLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn IsLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::IsLost(this).into() } - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::Lock(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::ReleaseDC(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::Restore(this).into() } - unsafe extern "system" fn SetClipper(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn SetClipper(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::SetClipper(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::SetColorKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetOverlayPosition(this: *mut core::ffi::c_void, param0: i32, param1: i32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn SetOverlayPosition(this: *mut core::ffi::c_void, param0: i32, param1: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::SetOverlayPosition(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::SetPalette(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::Unlock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn UpdateOverlay(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn UpdateOverlay(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::UpdateOverlay(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn UpdateOverlayDisplay(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn UpdateOverlayDisplay(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::UpdateOverlayDisplay(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn UpdateOverlayZOrder(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn UpdateOverlayZOrder(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::UpdateOverlayZOrder(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } - unsafe extern "system" fn GetDDInterface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn GetDDInterface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::GetDDInterface(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn PageLock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn PageLock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::PageLock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn PageUnlock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface2_Impl, - { + unsafe extern "system" fn PageUnlock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface2_Impl::PageUnlock(this, core::mem::transmute_copy(¶m0)).into() } @@ -1946,7 +1361,7 @@ impl IDirectDrawSurface2_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDrawSurface3_Impl: Sized { +pub trait IDirectDrawSurface3_Impl: Sized + windows_core::IUnknownImpl { fn AddAttachedSurface(&self, param0: Option<&IDirectDrawSurface3>) -> windows_core::Result<()>; fn AddOverlayDirtyRect(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; fn Blt(&self, param0: *mut super::super::Foundation::RECT, param1: Option<&IDirectDrawSurface3>, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::Result<()>; @@ -1989,98 +1404,56 @@ pub trait IDirectDrawSurface3_Impl: Sized { impl windows_core::RuntimeName for IDirectDrawSurface3 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDrawSurface3_Vtbl { - pub const fn new() -> IDirectDrawSurface3_Vtbl - where - Identity: IDirectDrawSurface3_Impl, - { - unsafe extern "system" fn AddAttachedSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + pub const fn new() -> IDirectDrawSurface3_Vtbl { + unsafe extern "system" fn AddAttachedSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::AddAttachedSurface(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn AddOverlayDirtyRect(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn AddOverlayDirtyRect(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::AddOverlayDirtyRect(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Blt(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn Blt(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::Blt(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn BltBatch(this: *mut core::ffi::c_void, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn BltBatch(this: *mut core::ffi::c_void, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::BltBatch(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn BltFast(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut core::ffi::c_void, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn BltFast(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut core::ffi::c_void, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::BltFast(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn DeleteAttachedSurface(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn DeleteAttachedSurface(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::DeleteAttachedSurface(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } - unsafe extern "system" fn EnumAttachedSurfaces(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn EnumAttachedSurfaces(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::EnumAttachedSurfaces(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn EnumOverlayZOrders(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn EnumOverlayZOrders(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::EnumOverlayZOrders(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::Flip(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetAttachedSurface(this: *mut core::ffi::c_void, param0: *mut DDSCAPS, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetAttachedSurface(this: *mut core::ffi::c_void, param0: *mut DDSCAPS, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::GetAttachedSurface(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetBltStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetBltStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::GetBltStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDSCAPS) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDSCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::GetCaps(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetClipper(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetClipper(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawSurface3_Impl::GetClipper(this) { Ok(ok__) => { @@ -2090,38 +1463,23 @@ impl IDirectDrawSurface3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::GetColorKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, param0: *mut super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, param0: *mut super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::GetDC(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetFlipStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetFlipStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::GetFlipStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetOverlayPosition(this: *mut core::ffi::c_void, param0: *mut i32, param1: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetOverlayPosition(this: *mut core::ffi::c_void, param0: *mut i32, param1: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::GetOverlayPosition(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawSurface3_Impl::GetPalette(this) { Ok(ok__) => { @@ -2131,136 +1489,79 @@ impl IDirectDrawSurface3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::GetPixelFormat(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::GetSurfaceDesc(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut DDSURFACEDESC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut DDSURFACEDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::Initialize(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn IsLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn IsLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::IsLost(this).into() } - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::Lock(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::ReleaseDC(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::Restore(this).into() } - unsafe extern "system" fn SetClipper(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn SetClipper(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::SetClipper(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::SetColorKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetOverlayPosition(this: *mut core::ffi::c_void, param0: i32, param1: i32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn SetOverlayPosition(this: *mut core::ffi::c_void, param0: i32, param1: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::SetOverlayPosition(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::SetPalette(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::Unlock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn UpdateOverlay(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn UpdateOverlay(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::UpdateOverlay(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn UpdateOverlayDisplay(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn UpdateOverlayDisplay(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::UpdateOverlayDisplay(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn UpdateOverlayZOrder(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn UpdateOverlayZOrder(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::UpdateOverlayZOrder(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } - unsafe extern "system" fn GetDDInterface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn GetDDInterface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::GetDDInterface(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn PageLock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn PageLock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::PageLock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn PageUnlock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn PageUnlock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::PageUnlock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface3_Impl, - { + unsafe extern "system" fn SetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface3_Impl::SetSurfaceDesc(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -2310,7 +1611,7 @@ impl IDirectDrawSurface3_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDrawSurface4_Impl: Sized { +pub trait IDirectDrawSurface4_Impl: Sized + windows_core::IUnknownImpl { fn AddAttachedSurface(&self, param0: Option<&IDirectDrawSurface4>) -> windows_core::Result<()>; fn AddOverlayDirtyRect(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; fn Blt(&self, param0: *mut super::super::Foundation::RECT, param1: Option<&IDirectDrawSurface4>, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::Result<()>; @@ -2358,98 +1659,56 @@ pub trait IDirectDrawSurface4_Impl: Sized { impl windows_core::RuntimeName for IDirectDrawSurface4 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDrawSurface4_Vtbl { - pub const fn new() -> IDirectDrawSurface4_Vtbl - where - Identity: IDirectDrawSurface4_Impl, - { - unsafe extern "system" fn AddAttachedSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + pub const fn new() -> IDirectDrawSurface4_Vtbl { + unsafe extern "system" fn AddAttachedSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::AddAttachedSurface(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn AddOverlayDirtyRect(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn AddOverlayDirtyRect(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::AddOverlayDirtyRect(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Blt(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn Blt(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::Blt(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn BltBatch(this: *mut core::ffi::c_void, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn BltBatch(this: *mut core::ffi::c_void, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::BltBatch(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn BltFast(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut core::ffi::c_void, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn BltFast(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut core::ffi::c_void, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::BltFast(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn DeleteAttachedSurface(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn DeleteAttachedSurface(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::DeleteAttachedSurface(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } - unsafe extern "system" fn EnumAttachedSurfaces(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK2) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn EnumAttachedSurfaces(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::EnumAttachedSurfaces(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn EnumOverlayZOrders(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK2) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn EnumOverlayZOrders(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::EnumOverlayZOrders(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::Flip(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetAttachedSurface(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetAttachedSurface(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetAttachedSurface(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetBltStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetBltStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetBltStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetCaps(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetClipper(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetClipper(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawSurface4_Impl::GetClipper(this) { Ok(ok__) => { @@ -2459,38 +1718,23 @@ impl IDirectDrawSurface4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetColorKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, param0: *mut super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, param0: *mut super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetDC(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetFlipStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetFlipStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetFlipStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetOverlayPosition(this: *mut core::ffi::c_void, param0: *mut i32, param1: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetOverlayPosition(this: *mut core::ffi::c_void, param0: *mut i32, param1: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetOverlayPosition(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawSurface4_Impl::GetPalette(this) { Ok(ok__) => { @@ -2500,171 +1744,99 @@ impl IDirectDrawSurface4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetPixelFormat(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetSurfaceDesc(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut DDSURFACEDESC2) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut DDSURFACEDESC2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::Initialize(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn IsLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn IsLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::IsLost(this).into() } - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC2, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC2, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::Lock(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::ReleaseDC(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::Restore(this).into() } - unsafe extern "system" fn SetClipper(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn SetClipper(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::SetClipper(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::SetColorKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetOverlayPosition(this: *mut core::ffi::c_void, param0: i32, param1: i32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn SetOverlayPosition(this: *mut core::ffi::c_void, param0: i32, param1: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::SetOverlayPosition(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::SetPalette(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::Unlock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn UpdateOverlay(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn UpdateOverlay(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::UpdateOverlay(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn UpdateOverlayDisplay(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn UpdateOverlayDisplay(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::UpdateOverlayDisplay(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn UpdateOverlayZOrder(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn UpdateOverlayZOrder(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::UpdateOverlayZOrder(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } - unsafe extern "system" fn GetDDInterface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetDDInterface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetDDInterface(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn PageLock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn PageLock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::PageLock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn PageUnlock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn PageUnlock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::PageUnlock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn SetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::SetSurfaceDesc(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::SetPrivateData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetPrivateData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn FreePrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn FreePrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::FreePrivateData(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetUniquenessValue(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn GetUniquenessValue(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::GetUniquenessValue(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn ChangeUniquenessValue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface4_Impl, - { + unsafe extern "system" fn ChangeUniquenessValue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface4_Impl::ChangeUniquenessValue(this).into() } @@ -2719,7 +1891,7 @@ impl IDirectDrawSurface4_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDirectDrawSurface7_Impl: Sized { +pub trait IDirectDrawSurface7_Impl: Sized + windows_core::IUnknownImpl { fn AddAttachedSurface(&self, param0: Option<&IDirectDrawSurface7>) -> windows_core::Result<()>; fn AddOverlayDirtyRect(&self, param0: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; fn Blt(&self, param0: *mut super::super::Foundation::RECT, param1: Option<&IDirectDrawSurface7>, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::Result<()>; @@ -2771,98 +1943,56 @@ pub trait IDirectDrawSurface7_Impl: Sized { impl windows_core::RuntimeName for IDirectDrawSurface7 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDirectDrawSurface7_Vtbl { - pub const fn new() -> IDirectDrawSurface7_Vtbl - where - Identity: IDirectDrawSurface7_Impl, - { - unsafe extern "system" fn AddAttachedSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + pub const fn new() -> IDirectDrawSurface7_Vtbl { + unsafe extern "system" fn AddAttachedSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::AddAttachedSurface(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn AddOverlayDirtyRect(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn AddOverlayDirtyRect(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::AddOverlayDirtyRect(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Blt(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn Blt(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDBLTFX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::Blt(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn BltBatch(this: *mut core::ffi::c_void, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn BltBatch(this: *mut core::ffi::c_void, param0: *mut DDBLTBATCH, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::BltBatch(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn BltFast(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut core::ffi::c_void, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn BltFast(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: *mut core::ffi::c_void, param3: *mut super::super::Foundation::RECT, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::BltFast(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), windows_core::from_raw_borrowed(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn DeleteAttachedSurface(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn DeleteAttachedSurface(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::DeleteAttachedSurface(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } - unsafe extern "system" fn EnumAttachedSurfaces(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK7) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn EnumAttachedSurfaces(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: LPDDENUMSURFACESCALLBACK7) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::EnumAttachedSurfaces(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn EnumOverlayZOrders(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK7) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn EnumOverlayZOrders(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void, param2: LPDDENUMSURFACESCALLBACK7) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::EnumOverlayZOrders(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::Flip(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetAttachedSurface(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetAttachedSurface(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2, param1: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetAttachedSurface(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetBltStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetBltStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetBltStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, param0: *mut DDSCAPS2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetCaps(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetClipper(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetClipper(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawSurface7_Impl::GetClipper(this) { Ok(ok__) => { @@ -2872,38 +2002,23 @@ impl IDirectDrawSurface7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetColorKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, param0: *mut super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, param0: *mut super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetDC(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetFlipStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetFlipStatus(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetFlipStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetOverlayPosition(this: *mut core::ffi::c_void, param0: *mut i32, param1: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetOverlayPosition(this: *mut core::ffi::c_void, param0: *mut i32, param1: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetOverlayPosition(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawSurface7_Impl::GetPalette(this) { Ok(ok__) => { @@ -2913,199 +2028,115 @@ impl IDirectDrawSurface7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetPixelFormat(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetSurfaceDesc(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut DDSURFACEDESC2) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut DDSURFACEDESC2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::Initialize(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn IsLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn IsLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::IsLost(this).into() } - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC2, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut DDSURFACEDESC2, param2: u32, param3: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::Lock(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, param0: super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::ReleaseDC(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::Restore(this).into() } - unsafe extern "system" fn SetClipper(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn SetClipper(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::SetClipper(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, param0: u32, param1: *mut DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::SetColorKey(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetOverlayPosition(this: *mut core::ffi::c_void, param0: i32, param1: i32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn SetOverlayPosition(this: *mut core::ffi::c_void, param0: i32, param1: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::SetOverlayPosition(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::SetPalette(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::Unlock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn UpdateOverlay(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn UpdateOverlay(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::RECT, param1: *mut core::ffi::c_void, param2: *mut super::super::Foundation::RECT, param3: u32, param4: *mut DDOVERLAYFX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::UpdateOverlay(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn UpdateOverlayDisplay(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn UpdateOverlayDisplay(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::UpdateOverlayDisplay(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn UpdateOverlayZOrder(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn UpdateOverlayZOrder(this: *mut core::ffi::c_void, param0: u32, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::UpdateOverlayZOrder(this, core::mem::transmute_copy(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } - unsafe extern "system" fn GetDDInterface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetDDInterface(this: *mut core::ffi::c_void, param0: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetDDInterface(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn PageLock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn PageLock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::PageLock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn PageUnlock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn PageUnlock(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::PageUnlock(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn SetSurfaceDesc(this: *mut core::ffi::c_void, param0: *mut DDSURFACEDESC2, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::SetSurfaceDesc(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: u32, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: u32, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::SetPrivateData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: *mut core::ffi::c_void, param2: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetPrivateData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn FreePrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn FreePrivateData(this: *mut core::ffi::c_void, param0: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::FreePrivateData(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetUniquenessValue(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetUniquenessValue(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetUniquenessValue(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn ChangeUniquenessValue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn ChangeUniquenessValue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::ChangeUniquenessValue(this).into() } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::SetPriority(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetPriority(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetLOD(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn SetLOD(this: *mut core::ffi::c_void, param0: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::SetLOD(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetLOD(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawSurface7_Impl, - { + unsafe extern "system" fn GetLOD(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurface7_Impl::GetLOD(this, core::mem::transmute_copy(¶m0)).into() } @@ -3163,27 +2194,18 @@ impl IDirectDrawSurface7_Vtbl { iid == &::IID } } -pub trait IDirectDrawSurfaceKernel_Impl: Sized { +pub trait IDirectDrawSurfaceKernel_Impl: Sized + windows_core::IUnknownImpl { fn GetKernelHandle(&self, param0: *mut usize) -> windows_core::Result<()>; fn ReleaseKernelHandle(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectDrawSurfaceKernel {} impl IDirectDrawSurfaceKernel_Vtbl { - pub const fn new() -> IDirectDrawSurfaceKernel_Vtbl - where - Identity: IDirectDrawSurfaceKernel_Impl, - { - unsafe extern "system" fn GetKernelHandle(this: *mut core::ffi::c_void, param0: *mut usize) -> windows_core::HRESULT - where - Identity: IDirectDrawSurfaceKernel_Impl, - { + pub const fn new() -> IDirectDrawSurfaceKernel_Vtbl { + unsafe extern "system" fn GetKernelHandle(this: *mut core::ffi::c_void, param0: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurfaceKernel_Impl::GetKernelHandle(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn ReleaseKernelHandle(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawSurfaceKernel_Impl, - { + unsafe extern "system" fn ReleaseKernelHandle(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawSurfaceKernel_Impl::ReleaseKernelHandle(this).into() } @@ -3197,7 +2219,7 @@ impl IDirectDrawSurfaceKernel_Vtbl { iid == &::IID } } -pub trait IDirectDrawVideoPort_Impl: Sized { +pub trait IDirectDrawVideoPort_Impl: Sized + windows_core::IUnknownImpl { fn Flip(&self, param0: Option<&IDirectDrawSurface>, param1: u32) -> windows_core::Result<()>; fn GetBandwidthInfo(&self, param0: *mut DDPIXELFORMAT, param1: u32, param2: u32, param3: u32, param4: *mut DDVIDEOPORTBANDWIDTH) -> windows_core::Result<()>; fn GetColorControls(&self, param0: *mut DDCOLORCONTROL) -> windows_core::Result<()>; @@ -3215,105 +2237,60 @@ pub trait IDirectDrawVideoPort_Impl: Sized { } impl windows_core::RuntimeName for IDirectDrawVideoPort {} impl IDirectDrawVideoPort_Vtbl { - pub const fn new() -> IDirectDrawVideoPort_Vtbl - where - Identity: IDirectDrawVideoPort_Impl, - { - unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + pub const fn new() -> IDirectDrawVideoPort_Vtbl { + unsafe extern "system" fn Flip(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::Flip(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetBandwidthInfo(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT, param1: u32, param2: u32, param3: u32, param4: *mut DDVIDEOPORTBANDWIDTH) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn GetBandwidthInfo(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT, param1: u32, param2: u32, param3: u32, param4: *mut DDVIDEOPORTBANDWIDTH) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::GetBandwidthInfo(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } - unsafe extern "system" fn GetColorControls(this: *mut core::ffi::c_void, param0: *mut DDCOLORCONTROL) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn GetColorControls(this: *mut core::ffi::c_void, param0: *mut DDCOLORCONTROL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::GetColorControls(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetInputFormats(this: *mut core::ffi::c_void, lpnumformats: *mut u32, param1: *mut DDPIXELFORMAT, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn GetInputFormats(this: *mut core::ffi::c_void, lpnumformats: *mut u32, param1: *mut DDPIXELFORMAT, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::GetInputFormats(this, core::mem::transmute_copy(&lpnumformats), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn GetOutputFormats(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT, lpnumformats: *mut u32, param2: *mut DDPIXELFORMAT, param3: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn GetOutputFormats(this: *mut core::ffi::c_void, param0: *mut DDPIXELFORMAT, lpnumformats: *mut u32, param2: *mut DDPIXELFORMAT, param3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::GetOutputFormats(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(&lpnumformats), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn GetFieldPolarity(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn GetFieldPolarity(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::GetFieldPolarity(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetVideoLine(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn GetVideoLine(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::GetVideoLine(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetVideoSignalStatus(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn GetVideoSignalStatus(this: *mut core::ffi::c_void, param0: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::GetVideoSignalStatus(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetColorControls(this: *mut core::ffi::c_void, param0: *mut DDCOLORCONTROL) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn SetColorControls(this: *mut core::ffi::c_void, param0: *mut DDCOLORCONTROL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::SetColorControls(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn SetTargetSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn SetTargetSurface(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::SetTargetSurface(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn StartVideo(this: *mut core::ffi::c_void, param0: *mut DDVIDEOPORTINFO) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn StartVideo(this: *mut core::ffi::c_void, param0: *mut DDVIDEOPORTINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::StartVideo(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn StopVideo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn StopVideo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::StopVideo(this).into() } - unsafe extern "system" fn UpdateVideo(this: *mut core::ffi::c_void, param0: *mut DDVIDEOPORTINFO) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn UpdateVideo(this: *mut core::ffi::c_void, param0: *mut DDVIDEOPORTINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::UpdateVideo(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn WaitForSync(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPort_Impl, - { + unsafe extern "system" fn WaitForSync(this: *mut core::ffi::c_void, param0: u32, param1: u32, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::WaitForSync(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } @@ -3339,27 +2316,18 @@ impl IDirectDrawVideoPort_Vtbl { iid == &::IID } } -pub trait IDirectDrawVideoPortNotify_Impl: Sized { +pub trait IDirectDrawVideoPortNotify_Impl: Sized + windows_core::IUnknownImpl { fn AcquireNotification(&self, param0: *mut super::super::Foundation::HANDLE, param1: *mut DDVIDEOPORTNOTIFY) -> windows_core::Result<()>; fn ReleaseNotification(&self, param0: super::super::Foundation::HANDLE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectDrawVideoPortNotify {} impl IDirectDrawVideoPortNotify_Vtbl { - pub const fn new() -> IDirectDrawVideoPortNotify_Vtbl - where - Identity: IDirectDrawVideoPortNotify_Impl, - { - unsafe extern "system" fn AcquireNotification(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::HANDLE, param1: *mut DDVIDEOPORTNOTIFY) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPortNotify_Impl, - { + pub const fn new() -> IDirectDrawVideoPortNotify_Vtbl { + unsafe extern "system" fn AcquireNotification(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::HANDLE, param1: *mut DDVIDEOPORTNOTIFY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPortNotify_Impl::AcquireNotification(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn ReleaseNotification(this: *mut core::ffi::c_void, param0: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectDrawVideoPortNotify_Impl, - { + unsafe extern "system" fn ReleaseNotification(this: *mut core::ffi::c_void, param0: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPortNotify_Impl::ReleaseNotification(this, core::mem::transmute_copy(¶m0)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/impl.rs index 79e2943f4e..11a665b4d7 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/impl.rs @@ -1,16 +1,10 @@ -pub trait IDirectManipulationAutoScrollBehavior_Impl: Sized { +pub trait IDirectManipulationAutoScrollBehavior_Impl: Sized + windows_core::IUnknownImpl { fn SetConfiguration(&self, motiontypes: DIRECTMANIPULATION_MOTION_TYPES, scrollmotion: DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectManipulationAutoScrollBehavior {} impl IDirectManipulationAutoScrollBehavior_Vtbl { - pub const fn new() -> IDirectManipulationAutoScrollBehavior_Vtbl - where - Identity: IDirectManipulationAutoScrollBehavior_Impl, - { - unsafe extern "system" fn SetConfiguration(this: *mut core::ffi::c_void, motiontypes: DIRECTMANIPULATION_MOTION_TYPES, scrollmotion: DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION) -> windows_core::HRESULT - where - Identity: IDirectManipulationAutoScrollBehavior_Impl, - { + pub const fn new() -> IDirectManipulationAutoScrollBehavior_Vtbl { + unsafe extern "system" fn SetConfiguration(this: *mut core::ffi::c_void, motiontypes: DIRECTMANIPULATION_MOTION_TYPES, scrollmotion: DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationAutoScrollBehavior_Impl::SetConfiguration(this, core::mem::transmute_copy(&motiontypes), core::mem::transmute_copy(&scrollmotion)).into() } @@ -20,7 +14,7 @@ impl IDirectManipulationAutoScrollBehavior_Vtbl { iid == &::IID } } -pub trait IDirectManipulationCompositor_Impl: Sized { +pub trait IDirectManipulationCompositor_Impl: Sized + windows_core::IUnknownImpl { fn AddContent(&self, content: Option<&IDirectManipulationContent>, device: Option<&windows_core::IUnknown>, parentvisual: Option<&windows_core::IUnknown>, childvisual: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn RemoveContent(&self, content: Option<&IDirectManipulationContent>) -> windows_core::Result<()>; fn SetUpdateManager(&self, updatemanager: Option<&IDirectManipulationUpdateManager>) -> windows_core::Result<()>; @@ -28,35 +22,20 @@ pub trait IDirectManipulationCompositor_Impl: Sized { } impl windows_core::RuntimeName for IDirectManipulationCompositor {} impl IDirectManipulationCompositor_Vtbl { - pub const fn new() -> IDirectManipulationCompositor_Vtbl - where - Identity: IDirectManipulationCompositor_Impl, - { - unsafe extern "system" fn AddContent(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void, device: *mut core::ffi::c_void, parentvisual: *mut core::ffi::c_void, childvisual: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationCompositor_Impl, - { + pub const fn new() -> IDirectManipulationCompositor_Vtbl { + unsafe extern "system" fn AddContent(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void, device: *mut core::ffi::c_void, parentvisual: *mut core::ffi::c_void, childvisual: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationCompositor_Impl::AddContent(this, windows_core::from_raw_borrowed(&content), windows_core::from_raw_borrowed(&device), windows_core::from_raw_borrowed(&parentvisual), windows_core::from_raw_borrowed(&childvisual)).into() } - unsafe extern "system" fn RemoveContent(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationCompositor_Impl, - { + unsafe extern "system" fn RemoveContent(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationCompositor_Impl::RemoveContent(this, windows_core::from_raw_borrowed(&content)).into() } - unsafe extern "system" fn SetUpdateManager(this: *mut core::ffi::c_void, updatemanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationCompositor_Impl, - { + unsafe extern "system" fn SetUpdateManager(this: *mut core::ffi::c_void, updatemanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationCompositor_Impl::SetUpdateManager(this, windows_core::from_raw_borrowed(&updatemanager)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationCompositor_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationCompositor_Impl::Flush(this).into() } @@ -77,14 +56,8 @@ pub trait IDirectManipulationCompositor2_Impl: Sized + IDirectManipulationCompos } impl windows_core::RuntimeName for IDirectManipulationCompositor2 {} impl IDirectManipulationCompositor2_Vtbl { - pub const fn new() -> IDirectManipulationCompositor2_Vtbl - where - Identity: IDirectManipulationCompositor2_Impl, - { - unsafe extern "system" fn AddContentWithCrossProcessChaining(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void, device: *mut core::ffi::c_void, parentvisual: *mut core::ffi::c_void, childvisual: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationCompositor2_Impl, - { + pub const fn new() -> IDirectManipulationCompositor2_Vtbl { + unsafe extern "system" fn AddContentWithCrossProcessChaining(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void, device: *mut core::ffi::c_void, parentvisual: *mut core::ffi::c_void, childvisual: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationCompositor2_Impl::AddContentWithCrossProcessChaining(this, windows_core::from_raw_borrowed(&content), windows_core::from_raw_borrowed(&device), windows_core::from_raw_borrowed(&parentvisual), windows_core::from_raw_borrowed(&childvisual)).into() } @@ -97,7 +70,7 @@ impl IDirectManipulationCompositor2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDirectManipulationContent_Impl: Sized { +pub trait IDirectManipulationContent_Impl: Sized + windows_core::IUnknownImpl { fn GetContentRect(&self) -> windows_core::Result; fn SetContentRect(&self, contentsize: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn GetViewport(&self, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -109,14 +82,8 @@ pub trait IDirectManipulationContent_Impl: Sized { } impl windows_core::RuntimeName for IDirectManipulationContent {} impl IDirectManipulationContent_Vtbl { - pub const fn new() -> IDirectManipulationContent_Vtbl - where - Identity: IDirectManipulationContent_Impl, - { - unsafe extern "system" fn GetContentRect(this: *mut core::ffi::c_void, contentsize: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectManipulationContent_Impl, - { + pub const fn new() -> IDirectManipulationContent_Vtbl { + unsafe extern "system" fn GetContentRect(this: *mut core::ffi::c_void, contentsize: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectManipulationContent_Impl::GetContentRect(this) { Ok(ok__) => { @@ -126,52 +93,31 @@ impl IDirectManipulationContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContentRect(this: *mut core::ffi::c_void, contentsize: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectManipulationContent_Impl, - { + unsafe extern "system" fn SetContentRect(this: *mut core::ffi::c_void, contentsize: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationContent_Impl::SetContentRect(this, core::mem::transmute_copy(&contentsize)).into() } - unsafe extern "system" fn GetViewport(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationContent_Impl, - { + unsafe extern "system" fn GetViewport(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationContent_Impl::GetViewport(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&object)).into() } - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationContent_Impl, - { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationContent_Impl::GetTag(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationContent_Impl, - { + unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationContent_Impl::SetTag(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetOutputTransform(this: *mut core::ffi::c_void, matrix: *mut f32, pointcount: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationContent_Impl, - { + unsafe extern "system" fn GetOutputTransform(this: *mut core::ffi::c_void, matrix: *mut f32, pointcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationContent_Impl::GetOutputTransform(this, core::mem::transmute_copy(&matrix), core::mem::transmute_copy(&pointcount)).into() } - unsafe extern "system" fn GetContentTransform(this: *mut core::ffi::c_void, matrix: *mut f32, pointcount: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationContent_Impl, - { + unsafe extern "system" fn GetContentTransform(this: *mut core::ffi::c_void, matrix: *mut f32, pointcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationContent_Impl::GetContentTransform(this, core::mem::transmute_copy(&matrix), core::mem::transmute_copy(&pointcount)).into() } - unsafe extern "system" fn SyncContentTransform(this: *mut core::ffi::c_void, matrix: *const f32, pointcount: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationContent_Impl, - { + unsafe extern "system" fn SyncContentTransform(this: *mut core::ffi::c_void, matrix: *const f32, pointcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationContent_Impl::SyncContentTransform(this, core::mem::transmute_copy(&matrix), core::mem::transmute_copy(&pointcount)).into() } @@ -191,35 +137,23 @@ impl IDirectManipulationContent_Vtbl { iid == &::IID } } -pub trait IDirectManipulationDeferContactService_Impl: Sized { +pub trait IDirectManipulationDeferContactService_Impl: Sized + windows_core::IUnknownImpl { fn DeferContact(&self, pointerid: u32, timeout: u32) -> windows_core::Result<()>; fn CancelContact(&self, pointerid: u32) -> windows_core::Result<()>; fn CancelDeferral(&self, pointerid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectManipulationDeferContactService {} impl IDirectManipulationDeferContactService_Vtbl { - pub const fn new() -> IDirectManipulationDeferContactService_Vtbl - where - Identity: IDirectManipulationDeferContactService_Impl, - { - unsafe extern "system" fn DeferContact(this: *mut core::ffi::c_void, pointerid: u32, timeout: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationDeferContactService_Impl, - { + pub const fn new() -> IDirectManipulationDeferContactService_Vtbl { + unsafe extern "system" fn DeferContact(this: *mut core::ffi::c_void, pointerid: u32, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationDeferContactService_Impl::DeferContact(this, core::mem::transmute_copy(&pointerid), core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn CancelContact(this: *mut core::ffi::c_void, pointerid: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationDeferContactService_Impl, - { + unsafe extern "system" fn CancelContact(this: *mut core::ffi::c_void, pointerid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationDeferContactService_Impl::CancelContact(this, core::mem::transmute_copy(&pointerid)).into() } - unsafe extern "system" fn CancelDeferral(this: *mut core::ffi::c_void, pointerid: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationDeferContactService_Impl, - { + unsafe extern "system" fn CancelDeferral(this: *mut core::ffi::c_void, pointerid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationDeferContactService_Impl::CancelDeferral(this, core::mem::transmute_copy(&pointerid)).into() } @@ -234,27 +168,18 @@ impl IDirectManipulationDeferContactService_Vtbl { iid == &::IID } } -pub trait IDirectManipulationDragDropBehavior_Impl: Sized { +pub trait IDirectManipulationDragDropBehavior_Impl: Sized + windows_core::IUnknownImpl { fn SetConfiguration(&self, configuration: DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION) -> windows_core::Result<()>; fn GetStatus(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDirectManipulationDragDropBehavior {} impl IDirectManipulationDragDropBehavior_Vtbl { - pub const fn new() -> IDirectManipulationDragDropBehavior_Vtbl - where - Identity: IDirectManipulationDragDropBehavior_Impl, - { - unsafe extern "system" fn SetConfiguration(this: *mut core::ffi::c_void, configuration: DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION) -> windows_core::HRESULT - where - Identity: IDirectManipulationDragDropBehavior_Impl, - { + pub const fn new() -> IDirectManipulationDragDropBehavior_Vtbl { + unsafe extern "system" fn SetConfiguration(this: *mut core::ffi::c_void, configuration: DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationDragDropBehavior_Impl::SetConfiguration(this, core::mem::transmute_copy(&configuration)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut DIRECTMANIPULATION_DRAG_DROP_STATUS) -> windows_core::HRESULT - where - Identity: IDirectManipulationDragDropBehavior_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut DIRECTMANIPULATION_DRAG_DROP_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectManipulationDragDropBehavior_Impl::GetStatus(this) { Ok(ok__) => { @@ -274,19 +199,13 @@ impl IDirectManipulationDragDropBehavior_Vtbl { iid == &::IID } } -pub trait IDirectManipulationDragDropEventHandler_Impl: Sized { +pub trait IDirectManipulationDragDropEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnDragDropStatusChange(&self, viewport: Option<&IDirectManipulationViewport2>, current: DIRECTMANIPULATION_DRAG_DROP_STATUS, previous: DIRECTMANIPULATION_DRAG_DROP_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectManipulationDragDropEventHandler {} impl IDirectManipulationDragDropEventHandler_Vtbl { - pub const fn new() -> IDirectManipulationDragDropEventHandler_Vtbl - where - Identity: IDirectManipulationDragDropEventHandler_Impl, - { - unsafe extern "system" fn OnDragDropStatusChange(this: *mut core::ffi::c_void, viewport: *mut core::ffi::c_void, current: DIRECTMANIPULATION_DRAG_DROP_STATUS, previous: DIRECTMANIPULATION_DRAG_DROP_STATUS) -> windows_core::HRESULT - where - Identity: IDirectManipulationDragDropEventHandler_Impl, - { + pub const fn new() -> IDirectManipulationDragDropEventHandler_Vtbl { + unsafe extern "system" fn OnDragDropStatusChange(this: *mut core::ffi::c_void, viewport: *mut core::ffi::c_void, current: DIRECTMANIPULATION_DRAG_DROP_STATUS, previous: DIRECTMANIPULATION_DRAG_DROP_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationDragDropEventHandler_Impl::OnDragDropStatusChange(this, windows_core::from_raw_borrowed(&viewport), core::mem::transmute_copy(¤t), core::mem::transmute_copy(&previous)).into() } @@ -296,19 +215,13 @@ impl IDirectManipulationDragDropEventHandler_Vtbl { iid == &::IID } } -pub trait IDirectManipulationFrameInfoProvider_Impl: Sized { +pub trait IDirectManipulationFrameInfoProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetNextFrameInfo(&self, time: *mut u64, processtime: *mut u64, compositiontime: *mut u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectManipulationFrameInfoProvider {} impl IDirectManipulationFrameInfoProvider_Vtbl { - pub const fn new() -> IDirectManipulationFrameInfoProvider_Vtbl - where - Identity: IDirectManipulationFrameInfoProvider_Impl, - { - unsafe extern "system" fn GetNextFrameInfo(this: *mut core::ffi::c_void, time: *mut u64, processtime: *mut u64, compositiontime: *mut u64) -> windows_core::HRESULT - where - Identity: IDirectManipulationFrameInfoProvider_Impl, - { + pub const fn new() -> IDirectManipulationFrameInfoProvider_Vtbl { + unsafe extern "system" fn GetNextFrameInfo(this: *mut core::ffi::c_void, time: *mut u64, processtime: *mut u64, compositiontime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationFrameInfoProvider_Impl::GetNextFrameInfo(this, core::mem::transmute_copy(&time), core::mem::transmute_copy(&processtime), core::mem::transmute_copy(&compositiontime)).into() } @@ -318,19 +231,13 @@ impl IDirectManipulationFrameInfoProvider_Vtbl { iid == &::IID } } -pub trait IDirectManipulationInteractionEventHandler_Impl: Sized { +pub trait IDirectManipulationInteractionEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnInteraction(&self, viewport: Option<&IDirectManipulationViewport2>, interaction: DIRECTMANIPULATION_INTERACTION_TYPE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectManipulationInteractionEventHandler {} impl IDirectManipulationInteractionEventHandler_Vtbl { - pub const fn new() -> IDirectManipulationInteractionEventHandler_Vtbl - where - Identity: IDirectManipulationInteractionEventHandler_Impl, - { - unsafe extern "system" fn OnInteraction(this: *mut core::ffi::c_void, viewport: *mut core::ffi::c_void, interaction: DIRECTMANIPULATION_INTERACTION_TYPE) -> windows_core::HRESULT - where - Identity: IDirectManipulationInteractionEventHandler_Impl, - { + pub const fn new() -> IDirectManipulationInteractionEventHandler_Vtbl { + unsafe extern "system" fn OnInteraction(this: *mut core::ffi::c_void, viewport: *mut core::ffi::c_void, interaction: DIRECTMANIPULATION_INTERACTION_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationInteractionEventHandler_Impl::OnInteraction(this, windows_core::from_raw_borrowed(&viewport), core::mem::transmute_copy(&interaction)).into() } @@ -341,7 +248,7 @@ impl IDirectManipulationInteractionEventHandler_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IDirectManipulationManager_Impl: Sized { +pub trait IDirectManipulationManager_Impl: Sized + windows_core::IUnknownImpl { fn Activate(&self, window: super::super::Foundation::HWND) -> windows_core::Result<()>; fn Deactivate(&self, window: super::super::Foundation::HWND) -> windows_core::Result<()>; fn RegisterHitTestTarget(&self, window: super::super::Foundation::HWND, hittestwindow: super::super::Foundation::HWND, r#type: DIRECTMANIPULATION_HITTEST_TYPE) -> windows_core::Result<()>; @@ -354,35 +261,20 @@ pub trait IDirectManipulationManager_Impl: Sized { impl windows_core::RuntimeName for IDirectManipulationManager {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IDirectManipulationManager_Vtbl { - pub const fn new() -> IDirectManipulationManager_Vtbl - where - Identity: IDirectManipulationManager_Impl, - { - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDirectManipulationManager_Impl, - { + pub const fn new() -> IDirectManipulationManager_Vtbl { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationManager_Impl::Activate(this, core::mem::transmute_copy(&window)).into() } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDirectManipulationManager_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationManager_Impl::Deactivate(this, core::mem::transmute_copy(&window)).into() } - unsafe extern "system" fn RegisterHitTestTarget(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, hittestwindow: super::super::Foundation::HWND, r#type: DIRECTMANIPULATION_HITTEST_TYPE) -> windows_core::HRESULT - where - Identity: IDirectManipulationManager_Impl, - { + unsafe extern "system" fn RegisterHitTestTarget(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, hittestwindow: super::super::Foundation::HWND, r#type: DIRECTMANIPULATION_HITTEST_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationManager_Impl::RegisterHitTestTarget(this, core::mem::transmute_copy(&window), core::mem::transmute_copy(&hittestwindow), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn ProcessInput(this: *mut core::ffi::c_void, message: *const super::super::UI::WindowsAndMessaging::MSG, handled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectManipulationManager_Impl, - { + unsafe extern "system" fn ProcessInput(this: *mut core::ffi::c_void, message: *const super::super::UI::WindowsAndMessaging::MSG, handled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectManipulationManager_Impl::ProcessInput(this, core::mem::transmute_copy(&message)) { Ok(ok__) => { @@ -392,24 +284,15 @@ impl IDirectManipulationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUpdateManager(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationManager_Impl, - { + unsafe extern "system" fn GetUpdateManager(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationManager_Impl::GetUpdateManager(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&object)).into() } - unsafe extern "system" fn CreateViewport(this: *mut core::ffi::c_void, frameinfo: *mut core::ffi::c_void, window: super::super::Foundation::HWND, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationManager_Impl, - { + unsafe extern "system" fn CreateViewport(this: *mut core::ffi::c_void, frameinfo: *mut core::ffi::c_void, window: super::super::Foundation::HWND, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationManager_Impl::CreateViewport(this, windows_core::from_raw_borrowed(&frameinfo), core::mem::transmute_copy(&window), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&object)).into() } - unsafe extern "system" fn CreateContent(this: *mut core::ffi::c_void, frameinfo: *mut core::ffi::c_void, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationManager_Impl, - { + unsafe extern "system" fn CreateContent(this: *mut core::ffi::c_void, frameinfo: *mut core::ffi::c_void, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationManager_Impl::CreateContent(this, windows_core::from_raw_borrowed(&frameinfo), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&object)).into() } @@ -436,14 +319,8 @@ pub trait IDirectManipulationManager2_Impl: Sized + IDirectManipulationManager_I impl windows_core::RuntimeName for IDirectManipulationManager2 {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IDirectManipulationManager2_Vtbl { - pub const fn new() -> IDirectManipulationManager2_Vtbl - where - Identity: IDirectManipulationManager2_Impl, - { - unsafe extern "system" fn CreateBehavior(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationManager2_Impl, - { + pub const fn new() -> IDirectManipulationManager2_Vtbl { + unsafe extern "system" fn CreateBehavior(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationManager2_Impl::CreateBehavior(this, core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&object)).into() } @@ -461,14 +338,8 @@ pub trait IDirectManipulationManager3_Impl: Sized + IDirectManipulationManager2_ impl windows_core::RuntimeName for IDirectManipulationManager3 {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IDirectManipulationManager3_Vtbl { - pub const fn new() -> IDirectManipulationManager3_Vtbl - where - Identity: IDirectManipulationManager3_Impl, - { - unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationManager3_Impl, - { + pub const fn new() -> IDirectManipulationManager3_Vtbl { + unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationManager3_Impl::GetService(this, core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&object)).into() } @@ -478,7 +349,7 @@ impl IDirectManipulationManager3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDirectManipulationPrimaryContent_Impl: Sized { +pub trait IDirectManipulationPrimaryContent_Impl: Sized + windows_core::IUnknownImpl { fn SetSnapInterval(&self, motion: DIRECTMANIPULATION_MOTION_TYPES, interval: f32, offset: f32) -> windows_core::Result<()>; fn SetSnapPoints(&self, motion: DIRECTMANIPULATION_MOTION_TYPES, points: *const f32, pointcount: u32) -> windows_core::Result<()>; fn SetSnapType(&self, motion: DIRECTMANIPULATION_MOTION_TYPES, r#type: DIRECTMANIPULATION_SNAPPOINT_TYPE) -> windows_core::Result<()>; @@ -491,70 +362,40 @@ pub trait IDirectManipulationPrimaryContent_Impl: Sized { } impl windows_core::RuntimeName for IDirectManipulationPrimaryContent {} impl IDirectManipulationPrimaryContent_Vtbl { - pub const fn new() -> IDirectManipulationPrimaryContent_Vtbl - where - Identity: IDirectManipulationPrimaryContent_Impl, - { - unsafe extern "system" fn SetSnapInterval(this: *mut core::ffi::c_void, motion: DIRECTMANIPULATION_MOTION_TYPES, interval: f32, offset: f32) -> windows_core::HRESULT - where - Identity: IDirectManipulationPrimaryContent_Impl, - { + pub const fn new() -> IDirectManipulationPrimaryContent_Vtbl { + unsafe extern "system" fn SetSnapInterval(this: *mut core::ffi::c_void, motion: DIRECTMANIPULATION_MOTION_TYPES, interval: f32, offset: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationPrimaryContent_Impl::SetSnapInterval(this, core::mem::transmute_copy(&motion), core::mem::transmute_copy(&interval), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn SetSnapPoints(this: *mut core::ffi::c_void, motion: DIRECTMANIPULATION_MOTION_TYPES, points: *const f32, pointcount: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationPrimaryContent_Impl, - { + unsafe extern "system" fn SetSnapPoints(this: *mut core::ffi::c_void, motion: DIRECTMANIPULATION_MOTION_TYPES, points: *const f32, pointcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationPrimaryContent_Impl::SetSnapPoints(this, core::mem::transmute_copy(&motion), core::mem::transmute_copy(&points), core::mem::transmute_copy(&pointcount)).into() } - unsafe extern "system" fn SetSnapType(this: *mut core::ffi::c_void, motion: DIRECTMANIPULATION_MOTION_TYPES, r#type: DIRECTMANIPULATION_SNAPPOINT_TYPE) -> windows_core::HRESULT - where - Identity: IDirectManipulationPrimaryContent_Impl, - { + unsafe extern "system" fn SetSnapType(this: *mut core::ffi::c_void, motion: DIRECTMANIPULATION_MOTION_TYPES, r#type: DIRECTMANIPULATION_SNAPPOINT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationPrimaryContent_Impl::SetSnapType(this, core::mem::transmute_copy(&motion), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn SetSnapCoordinate(this: *mut core::ffi::c_void, motion: DIRECTMANIPULATION_MOTION_TYPES, coordinate: DIRECTMANIPULATION_SNAPPOINT_COORDINATE, origin: f32) -> windows_core::HRESULT - where - Identity: IDirectManipulationPrimaryContent_Impl, - { + unsafe extern "system" fn SetSnapCoordinate(this: *mut core::ffi::c_void, motion: DIRECTMANIPULATION_MOTION_TYPES, coordinate: DIRECTMANIPULATION_SNAPPOINT_COORDINATE, origin: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationPrimaryContent_Impl::SetSnapCoordinate(this, core::mem::transmute_copy(&motion), core::mem::transmute_copy(&coordinate), core::mem::transmute_copy(&origin)).into() } - unsafe extern "system" fn SetZoomBoundaries(this: *mut core::ffi::c_void, zoomminimum: f32, zoommaximum: f32) -> windows_core::HRESULT - where - Identity: IDirectManipulationPrimaryContent_Impl, - { + unsafe extern "system" fn SetZoomBoundaries(this: *mut core::ffi::c_void, zoomminimum: f32, zoommaximum: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationPrimaryContent_Impl::SetZoomBoundaries(this, core::mem::transmute_copy(&zoomminimum), core::mem::transmute_copy(&zoommaximum)).into() } - unsafe extern "system" fn SetHorizontalAlignment(this: *mut core::ffi::c_void, alignment: DIRECTMANIPULATION_HORIZONTALALIGNMENT) -> windows_core::HRESULT - where - Identity: IDirectManipulationPrimaryContent_Impl, - { + unsafe extern "system" fn SetHorizontalAlignment(this: *mut core::ffi::c_void, alignment: DIRECTMANIPULATION_HORIZONTALALIGNMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationPrimaryContent_Impl::SetHorizontalAlignment(this, core::mem::transmute_copy(&alignment)).into() } - unsafe extern "system" fn SetVerticalAlignment(this: *mut core::ffi::c_void, alignment: DIRECTMANIPULATION_VERTICALALIGNMENT) -> windows_core::HRESULT - where - Identity: IDirectManipulationPrimaryContent_Impl, - { + unsafe extern "system" fn SetVerticalAlignment(this: *mut core::ffi::c_void, alignment: DIRECTMANIPULATION_VERTICALALIGNMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationPrimaryContent_Impl::SetVerticalAlignment(this, core::mem::transmute_copy(&alignment)).into() } - unsafe extern "system" fn GetInertiaEndTransform(this: *mut core::ffi::c_void, matrix: *mut f32, pointcount: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationPrimaryContent_Impl, - { + unsafe extern "system" fn GetInertiaEndTransform(this: *mut core::ffi::c_void, matrix: *mut f32, pointcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationPrimaryContent_Impl::GetInertiaEndTransform(this, core::mem::transmute_copy(&matrix), core::mem::transmute_copy(&pointcount)).into() } - unsafe extern "system" fn GetCenterPoint(this: *mut core::ffi::c_void, centerx: *mut f32, centery: *mut f32) -> windows_core::HRESULT - where - Identity: IDirectManipulationPrimaryContent_Impl, - { + unsafe extern "system" fn GetCenterPoint(this: *mut core::ffi::c_void, centerx: *mut f32, centery: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationPrimaryContent_Impl::GetCenterPoint(this, core::mem::transmute_copy(¢erx), core::mem::transmute_copy(¢ery)).into() } @@ -575,19 +416,13 @@ impl IDirectManipulationPrimaryContent_Vtbl { iid == &::IID } } -pub trait IDirectManipulationUpdateHandler_Impl: Sized { +pub trait IDirectManipulationUpdateHandler_Impl: Sized + windows_core::IUnknownImpl { fn Update(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectManipulationUpdateHandler {} impl IDirectManipulationUpdateHandler_Vtbl { - pub const fn new() -> IDirectManipulationUpdateHandler_Vtbl - where - Identity: IDirectManipulationUpdateHandler_Impl, - { - unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationUpdateHandler_Impl, - { + pub const fn new() -> IDirectManipulationUpdateHandler_Vtbl { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationUpdateHandler_Impl::Update(this).into() } @@ -597,21 +432,15 @@ impl IDirectManipulationUpdateHandler_Vtbl { iid == &::IID } } -pub trait IDirectManipulationUpdateManager_Impl: Sized { +pub trait IDirectManipulationUpdateManager_Impl: Sized + windows_core::IUnknownImpl { fn RegisterWaitHandleCallback(&self, handle: super::super::Foundation::HANDLE, eventhandler: Option<&IDirectManipulationUpdateHandler>) -> windows_core::Result; fn UnregisterWaitHandleCallback(&self, cookie: u32) -> windows_core::Result<()>; fn Update(&self, frameinfo: Option<&IDirectManipulationFrameInfoProvider>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectManipulationUpdateManager {} impl IDirectManipulationUpdateManager_Vtbl { - pub const fn new() -> IDirectManipulationUpdateManager_Vtbl - where - Identity: IDirectManipulationUpdateManager_Impl, - { - unsafe extern "system" fn RegisterWaitHandleCallback(this: *mut core::ffi::c_void, handle: super::super::Foundation::HANDLE, eventhandler: *mut core::ffi::c_void, cookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationUpdateManager_Impl, - { + pub const fn new() -> IDirectManipulationUpdateManager_Vtbl { + unsafe extern "system" fn RegisterWaitHandleCallback(this: *mut core::ffi::c_void, handle: super::super::Foundation::HANDLE, eventhandler: *mut core::ffi::c_void, cookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectManipulationUpdateManager_Impl::RegisterWaitHandleCallback(this, core::mem::transmute_copy(&handle), windows_core::from_raw_borrowed(&eventhandler)) { Ok(ok__) => { @@ -621,17 +450,11 @@ impl IDirectManipulationUpdateManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterWaitHandleCallback(this: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationUpdateManager_Impl, - { + unsafe extern "system" fn UnregisterWaitHandleCallback(this: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationUpdateManager_Impl::UnregisterWaitHandleCallback(this, core::mem::transmute_copy(&cookie)).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, frameinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationUpdateManager_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, frameinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationUpdateManager_Impl::Update(this, windows_core::from_raw_borrowed(&frameinfo)).into() } @@ -646,7 +469,7 @@ impl IDirectManipulationUpdateManager_Vtbl { iid == &::IID } } -pub trait IDirectManipulationViewport_Impl: Sized { +pub trait IDirectManipulationViewport_Impl: Sized + windows_core::IUnknownImpl { fn Enable(&self) -> windows_core::Result<()>; fn Disable(&self) -> windows_core::Result<()>; fn SetContact(&self, pointerid: u32) -> windows_core::Result<()>; @@ -678,49 +501,28 @@ pub trait IDirectManipulationViewport_Impl: Sized { } impl windows_core::RuntimeName for IDirectManipulationViewport {} impl IDirectManipulationViewport_Vtbl { - pub const fn new() -> IDirectManipulationViewport_Vtbl - where - Identity: IDirectManipulationViewport_Impl, - { - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + pub const fn new() -> IDirectManipulationViewport_Vtbl { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::Enable(this).into() } - unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::Disable(this).into() } - unsafe extern "system" fn SetContact(this: *mut core::ffi::c_void, pointerid: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn SetContact(this: *mut core::ffi::c_void, pointerid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::SetContact(this, core::mem::transmute_copy(&pointerid)).into() } - unsafe extern "system" fn ReleaseContact(this: *mut core::ffi::c_void, pointerid: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn ReleaseContact(this: *mut core::ffi::c_void, pointerid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::ReleaseContact(this, core::mem::transmute_copy(&pointerid)).into() } - unsafe extern "system" fn ReleaseAllContacts(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn ReleaseAllContacts(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::ReleaseAllContacts(this).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut DIRECTMANIPULATION_STATUS) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut DIRECTMANIPULATION_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectManipulationViewport_Impl::GetStatus(this) { Ok(ok__) => { @@ -730,24 +532,15 @@ impl IDirectManipulationViewport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::GetTag(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::SetTag(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetViewportRect(this: *mut core::ffi::c_void, viewport: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn GetViewportRect(this: *mut core::ffi::c_void, viewport: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectManipulationViewport_Impl::GetViewportRect(this) { Ok(ok__) => { @@ -757,101 +550,59 @@ impl IDirectManipulationViewport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetViewportRect(this: *mut core::ffi::c_void, viewport: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn SetViewportRect(this: *mut core::ffi::c_void, viewport: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::SetViewportRect(this, core::mem::transmute_copy(&viewport)).into() } - unsafe extern "system" fn ZoomToRect(this: *mut core::ffi::c_void, left: f32, top: f32, right: f32, bottom: f32, animate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn ZoomToRect(this: *mut core::ffi::c_void, left: f32, top: f32, right: f32, bottom: f32, animate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::ZoomToRect(this, core::mem::transmute_copy(&left), core::mem::transmute_copy(&top), core::mem::transmute_copy(&right), core::mem::transmute_copy(&bottom), core::mem::transmute_copy(&animate)).into() } - unsafe extern "system" fn SetViewportTransform(this: *mut core::ffi::c_void, matrix: *const f32, pointcount: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn SetViewportTransform(this: *mut core::ffi::c_void, matrix: *const f32, pointcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::SetViewportTransform(this, core::mem::transmute_copy(&matrix), core::mem::transmute_copy(&pointcount)).into() } - unsafe extern "system" fn SyncDisplayTransform(this: *mut core::ffi::c_void, matrix: *const f32, pointcount: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn SyncDisplayTransform(this: *mut core::ffi::c_void, matrix: *const f32, pointcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::SyncDisplayTransform(this, core::mem::transmute_copy(&matrix), core::mem::transmute_copy(&pointcount)).into() } - unsafe extern "system" fn GetPrimaryContent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn GetPrimaryContent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::GetPrimaryContent(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&object)).into() } - unsafe extern "system" fn AddContent(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn AddContent(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::AddContent(this, windows_core::from_raw_borrowed(&content)).into() } - unsafe extern "system" fn RemoveContent(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn RemoveContent(this: *mut core::ffi::c_void, content: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::RemoveContent(this, windows_core::from_raw_borrowed(&content)).into() } - unsafe extern "system" fn SetViewportOptions(this: *mut core::ffi::c_void, options: DIRECTMANIPULATION_VIEWPORT_OPTIONS) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn SetViewportOptions(this: *mut core::ffi::c_void, options: DIRECTMANIPULATION_VIEWPORT_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::SetViewportOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn AddConfiguration(this: *mut core::ffi::c_void, configuration: DIRECTMANIPULATION_CONFIGURATION) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn AddConfiguration(this: *mut core::ffi::c_void, configuration: DIRECTMANIPULATION_CONFIGURATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::AddConfiguration(this, core::mem::transmute_copy(&configuration)).into() } - unsafe extern "system" fn RemoveConfiguration(this: *mut core::ffi::c_void, configuration: DIRECTMANIPULATION_CONFIGURATION) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn RemoveConfiguration(this: *mut core::ffi::c_void, configuration: DIRECTMANIPULATION_CONFIGURATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::RemoveConfiguration(this, core::mem::transmute_copy(&configuration)).into() } - unsafe extern "system" fn ActivateConfiguration(this: *mut core::ffi::c_void, configuration: DIRECTMANIPULATION_CONFIGURATION) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn ActivateConfiguration(this: *mut core::ffi::c_void, configuration: DIRECTMANIPULATION_CONFIGURATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::ActivateConfiguration(this, core::mem::transmute_copy(&configuration)).into() } - unsafe extern "system" fn SetManualGesture(this: *mut core::ffi::c_void, configuration: DIRECTMANIPULATION_GESTURE_CONFIGURATION) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn SetManualGesture(this: *mut core::ffi::c_void, configuration: DIRECTMANIPULATION_GESTURE_CONFIGURATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::SetManualGesture(this, core::mem::transmute_copy(&configuration)).into() } - unsafe extern "system" fn SetChaining(this: *mut core::ffi::c_void, enabledtypes: DIRECTMANIPULATION_MOTION_TYPES) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn SetChaining(this: *mut core::ffi::c_void, enabledtypes: DIRECTMANIPULATION_MOTION_TYPES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::SetChaining(this, core::mem::transmute_copy(&enabledtypes)).into() } - unsafe extern "system" fn AddEventHandler(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, eventhandler: *mut core::ffi::c_void, cookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn AddEventHandler(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, eventhandler: *mut core::ffi::c_void, cookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectManipulationViewport_Impl::AddEventHandler(this, core::mem::transmute_copy(&window), windows_core::from_raw_borrowed(&eventhandler)) { Ok(ok__) => { @@ -861,38 +612,23 @@ impl IDirectManipulationViewport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveEventHandler(this: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn RemoveEventHandler(this: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::RemoveEventHandler(this, core::mem::transmute_copy(&cookie)).into() } - unsafe extern "system" fn SetInputMode(this: *mut core::ffi::c_void, mode: DIRECTMANIPULATION_INPUT_MODE) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn SetInputMode(this: *mut core::ffi::c_void, mode: DIRECTMANIPULATION_INPUT_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::SetInputMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn SetUpdateMode(this: *mut core::ffi::c_void, mode: DIRECTMANIPULATION_INPUT_MODE) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn SetUpdateMode(this: *mut core::ffi::c_void, mode: DIRECTMANIPULATION_INPUT_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::SetUpdateMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::Stop(this).into() } - unsafe extern "system" fn Abandon(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport_Impl, - { + unsafe extern "system" fn Abandon(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::Abandon(this).into() } @@ -939,14 +675,8 @@ pub trait IDirectManipulationViewport2_Impl: Sized + IDirectManipulationViewport } impl windows_core::RuntimeName for IDirectManipulationViewport2 {} impl IDirectManipulationViewport2_Vtbl { - pub const fn new() -> IDirectManipulationViewport2_Vtbl - where - Identity: IDirectManipulationViewport2_Impl, - { - unsafe extern "system" fn AddBehavior(this: *mut core::ffi::c_void, behavior: *mut core::ffi::c_void, cookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport2_Impl, - { + pub const fn new() -> IDirectManipulationViewport2_Vtbl { + unsafe extern "system" fn AddBehavior(this: *mut core::ffi::c_void, behavior: *mut core::ffi::c_void, cookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectManipulationViewport2_Impl::AddBehavior(this, windows_core::from_raw_borrowed(&behavior)) { Ok(ok__) => { @@ -956,17 +686,11 @@ impl IDirectManipulationViewport2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBehavior(this: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport2_Impl, - { + unsafe extern "system" fn RemoveBehavior(this: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport2_Impl::RemoveBehavior(this, core::mem::transmute_copy(&cookie)).into() } - unsafe extern "system" fn RemoveAllBehaviors(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewport2_Impl, - { + unsafe extern "system" fn RemoveAllBehaviors(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport2_Impl::RemoveAllBehaviors(this).into() } @@ -981,35 +705,23 @@ impl IDirectManipulationViewport2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDirectManipulationViewportEventHandler_Impl: Sized { +pub trait IDirectManipulationViewportEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnViewportStatusChanged(&self, viewport: Option<&IDirectManipulationViewport>, current: DIRECTMANIPULATION_STATUS, previous: DIRECTMANIPULATION_STATUS) -> windows_core::Result<()>; fn OnViewportUpdated(&self, viewport: Option<&IDirectManipulationViewport>) -> windows_core::Result<()>; fn OnContentUpdated(&self, viewport: Option<&IDirectManipulationViewport>, content: Option<&IDirectManipulationContent>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectManipulationViewportEventHandler {} impl IDirectManipulationViewportEventHandler_Vtbl { - pub const fn new() -> IDirectManipulationViewportEventHandler_Vtbl - where - Identity: IDirectManipulationViewportEventHandler_Impl, - { - unsafe extern "system" fn OnViewportStatusChanged(this: *mut core::ffi::c_void, viewport: *mut core::ffi::c_void, current: DIRECTMANIPULATION_STATUS, previous: DIRECTMANIPULATION_STATUS) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewportEventHandler_Impl, - { + pub const fn new() -> IDirectManipulationViewportEventHandler_Vtbl { + unsafe extern "system" fn OnViewportStatusChanged(this: *mut core::ffi::c_void, viewport: *mut core::ffi::c_void, current: DIRECTMANIPULATION_STATUS, previous: DIRECTMANIPULATION_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewportEventHandler_Impl::OnViewportStatusChanged(this, windows_core::from_raw_borrowed(&viewport), core::mem::transmute_copy(¤t), core::mem::transmute_copy(&previous)).into() } - unsafe extern "system" fn OnViewportUpdated(this: *mut core::ffi::c_void, viewport: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewportEventHandler_Impl, - { + unsafe extern "system" fn OnViewportUpdated(this: *mut core::ffi::c_void, viewport: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewportEventHandler_Impl::OnViewportUpdated(this, windows_core::from_raw_borrowed(&viewport)).into() } - unsafe extern "system" fn OnContentUpdated(this: *mut core::ffi::c_void, viewport: *mut core::ffi::c_void, content: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectManipulationViewportEventHandler_Impl, - { + unsafe extern "system" fn OnContentUpdated(this: *mut core::ffi::c_void, viewport: *mut core::ffi::c_void, content: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewportEventHandler_Impl::OnContentUpdated(this, windows_core::from_raw_borrowed(&viewport), windows_core::from_raw_borrowed(&content)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/impl.rs index f0b64ed079..28697e20d7 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/impl.rs @@ -1,24 +1,15 @@ -pub trait IDWriteAsyncResult_Impl: Sized { +pub trait IDWriteAsyncResult_Impl: Sized + windows_core::IUnknownImpl { fn GetWaitHandle(&self) -> super::super::Foundation::HANDLE; fn GetResult(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDWriteAsyncResult {} impl IDWriteAsyncResult_Vtbl { - pub const fn new() -> IDWriteAsyncResult_Vtbl - where - Identity: IDWriteAsyncResult_Impl, - { - unsafe extern "system" fn GetWaitHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: IDWriteAsyncResult_Impl, - { + pub const fn new() -> IDWriteAsyncResult_Vtbl { + unsafe extern "system" fn GetWaitHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteAsyncResult_Impl::GetWaitHandle(this) } - unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteAsyncResult_Impl, - { + unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteAsyncResult_Impl::GetResult(this).into() } @@ -33,7 +24,7 @@ impl IDWriteAsyncResult_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDWriteBitmapRenderTarget_Impl: Sized { +pub trait IDWriteBitmapRenderTarget_Impl: Sized + windows_core::IUnknownImpl { fn DrawGlyphRun(&self, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: Option<&IDWriteRenderingParams>, textcolor: super::super::Foundation::COLORREF, blackboxrect: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; fn GetMemoryDC(&self) -> super::Gdi::HDC; fn GetPixelsPerDip(&self) -> f32; @@ -47,56 +38,32 @@ pub trait IDWriteBitmapRenderTarget_Impl: Sized { impl windows_core::RuntimeName for IDWriteBitmapRenderTarget {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteBitmapRenderTarget_Vtbl { - pub const fn new() -> IDWriteBitmapRenderTarget_Vtbl - where - Identity: IDWriteBitmapRenderTarget_Impl, - { - unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: *mut core::ffi::c_void, textcolor: super::super::Foundation::COLORREF, blackboxrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDWriteBitmapRenderTarget_Impl, - { + pub const fn new() -> IDWriteBitmapRenderTarget_Vtbl { + unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: *mut core::ffi::c_void, textcolor: super::super::Foundation::COLORREF, blackboxrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget_Impl::DrawGlyphRun(this, core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&glyphrun), windows_core::from_raw_borrowed(&renderingparams), core::mem::transmute_copy(&textcolor), core::mem::transmute_copy(&blackboxrect)).into() } - unsafe extern "system" fn GetMemoryDC(this: *mut core::ffi::c_void) -> super::Gdi::HDC - where - Identity: IDWriteBitmapRenderTarget_Impl, - { + unsafe extern "system" fn GetMemoryDC(this: *mut core::ffi::c_void) -> super::Gdi::HDC { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget_Impl::GetMemoryDC(this) } - unsafe extern "system" fn GetPixelsPerDip(this: *mut core::ffi::c_void) -> f32 - where - Identity: IDWriteBitmapRenderTarget_Impl, - { + unsafe extern "system" fn GetPixelsPerDip(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget_Impl::GetPixelsPerDip(this) } - unsafe extern "system" fn SetPixelsPerDip(this: *mut core::ffi::c_void, pixelsperdip: f32) -> windows_core::HRESULT - where - Identity: IDWriteBitmapRenderTarget_Impl, - { + unsafe extern "system" fn SetPixelsPerDip(this: *mut core::ffi::c_void, pixelsperdip: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget_Impl::SetPixelsPerDip(this, core::mem::transmute_copy(&pixelsperdip)).into() } - unsafe extern "system" fn GetCurrentTransform(this: *mut core::ffi::c_void, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT - where - Identity: IDWriteBitmapRenderTarget_Impl, - { + unsafe extern "system" fn GetCurrentTransform(this: *mut core::ffi::c_void, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget_Impl::GetCurrentTransform(this, core::mem::transmute_copy(&transform)).into() } - unsafe extern "system" fn SetCurrentTransform(this: *mut core::ffi::c_void, transform: *const DWRITE_MATRIX) -> windows_core::HRESULT - where - Identity: IDWriteBitmapRenderTarget_Impl, - { + unsafe extern "system" fn SetCurrentTransform(this: *mut core::ffi::c_void, transform: *const DWRITE_MATRIX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget_Impl::SetCurrentTransform(this, core::mem::transmute_copy(&transform)).into() } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, size: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IDWriteBitmapRenderTarget_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, size: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteBitmapRenderTarget_Impl::GetSize(this) { Ok(ok__) => { @@ -106,10 +73,7 @@ impl IDWriteBitmapRenderTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT - where - Identity: IDWriteBitmapRenderTarget_Impl, - { + unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget_Impl::Resize(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } @@ -138,21 +102,12 @@ pub trait IDWriteBitmapRenderTarget1_Impl: Sized + IDWriteBitmapRenderTarget_Imp impl windows_core::RuntimeName for IDWriteBitmapRenderTarget1 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteBitmapRenderTarget1_Vtbl { - pub const fn new() -> IDWriteBitmapRenderTarget1_Vtbl - where - Identity: IDWriteBitmapRenderTarget1_Impl, - { - unsafe extern "system" fn GetTextAntialiasMode(this: *mut core::ffi::c_void) -> DWRITE_TEXT_ANTIALIAS_MODE - where - Identity: IDWriteBitmapRenderTarget1_Impl, - { + pub const fn new() -> IDWriteBitmapRenderTarget1_Vtbl { + unsafe extern "system" fn GetTextAntialiasMode(this: *mut core::ffi::c_void) -> DWRITE_TEXT_ANTIALIAS_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget1_Impl::GetTextAntialiasMode(this) } - unsafe extern "system" fn SetTextAntialiasMode(this: *mut core::ffi::c_void, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE) -> windows_core::HRESULT - where - Identity: IDWriteBitmapRenderTarget1_Impl, - { + unsafe extern "system" fn SetTextAntialiasMode(this: *mut core::ffi::c_void, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget1_Impl::SetTextAntialiasMode(this, core::mem::transmute_copy(&antialiasmode)).into() } @@ -174,14 +129,8 @@ pub trait IDWriteBitmapRenderTarget2_Impl: Sized + IDWriteBitmapRenderTarget1_Im impl windows_core::RuntimeName for IDWriteBitmapRenderTarget2 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteBitmapRenderTarget2_Vtbl { - pub const fn new() -> IDWriteBitmapRenderTarget2_Vtbl - where - Identity: IDWriteBitmapRenderTarget2_Impl, - { - unsafe extern "system" fn GetBitmapData(this: *mut core::ffi::c_void, bitmapdata: *mut DWRITE_BITMAP_DATA_BGRA32) -> windows_core::HRESULT - where - Identity: IDWriteBitmapRenderTarget2_Impl, - { + pub const fn new() -> IDWriteBitmapRenderTarget2_Vtbl { + unsafe extern "system" fn GetBitmapData(this: *mut core::ffi::c_void, bitmapdata: *mut DWRITE_BITMAP_DATA_BGRA32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteBitmapRenderTarget2_Impl::GetBitmapData(this) { Ok(ok__) => { @@ -207,28 +156,16 @@ pub trait IDWriteBitmapRenderTarget3_Impl: Sized + IDWriteBitmapRenderTarget2_Im impl windows_core::RuntimeName for IDWriteBitmapRenderTarget3 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteBitmapRenderTarget3_Vtbl { - pub const fn new() -> IDWriteBitmapRenderTarget3_Vtbl - where - Identity: IDWriteBitmapRenderTarget3_Impl, - { - unsafe extern "system" fn GetPaintFeatureLevel(this: *mut core::ffi::c_void) -> DWRITE_PAINT_FEATURE_LEVEL - where - Identity: IDWriteBitmapRenderTarget3_Impl, - { + pub const fn new() -> IDWriteBitmapRenderTarget3_Vtbl { + unsafe extern "system" fn GetPaintFeatureLevel(this: *mut core::ffi::c_void) -> DWRITE_PAINT_FEATURE_LEVEL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget3_Impl::GetPaintFeatureLevel(this) } - unsafe extern "system" fn DrawPaintGlyphRun(this: *mut core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, textcolor: super::super::Foundation::COLORREF, colorpaletteindex: u32, blackboxrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDWriteBitmapRenderTarget3_Impl, - { + unsafe extern "system" fn DrawPaintGlyphRun(this: *mut core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, textcolor: super::super::Foundation::COLORREF, colorpaletteindex: u32, blackboxrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget3_Impl::DrawPaintGlyphRun(this, core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&glyphimageformat), core::mem::transmute_copy(&textcolor), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&blackboxrect)).into() } - unsafe extern "system" fn DrawGlyphRunWithColorSupport(this: *mut core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: *mut core::ffi::c_void, textcolor: super::super::Foundation::COLORREF, colorpaletteindex: u32, blackboxrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDWriteBitmapRenderTarget3_Impl, - { + unsafe extern "system" fn DrawGlyphRunWithColorSupport(this: *mut core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, renderingparams: *mut core::ffi::c_void, textcolor: super::super::Foundation::COLORREF, colorpaletteindex: u32, blackboxrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteBitmapRenderTarget3_Impl::DrawGlyphRunWithColorSupport(this, core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&glyphrun), windows_core::from_raw_borrowed(&renderingparams), core::mem::transmute_copy(&textcolor), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&blackboxrect)).into() } @@ -243,20 +180,14 @@ impl IDWriteBitmapRenderTarget3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteColorGlyphRunEnumerator_Impl: Sized { +pub trait IDWriteColorGlyphRunEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn GetCurrentRun(&self) -> windows_core::Result<*mut DWRITE_COLOR_GLYPH_RUN>; } impl windows_core::RuntimeName for IDWriteColorGlyphRunEnumerator {} impl IDWriteColorGlyphRunEnumerator_Vtbl { - pub const fn new() -> IDWriteColorGlyphRunEnumerator_Vtbl - where - Identity: IDWriteColorGlyphRunEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasrun: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteColorGlyphRunEnumerator_Impl, - { + pub const fn new() -> IDWriteColorGlyphRunEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasrun: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteColorGlyphRunEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -266,10 +197,7 @@ impl IDWriteColorGlyphRunEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentRun(this: *mut core::ffi::c_void, colorglyphrun: *mut *mut DWRITE_COLOR_GLYPH_RUN) -> windows_core::HRESULT - where - Identity: IDWriteColorGlyphRunEnumerator_Impl, - { + unsafe extern "system" fn GetCurrentRun(this: *mut core::ffi::c_void, colorglyphrun: *mut *mut DWRITE_COLOR_GLYPH_RUN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteColorGlyphRunEnumerator_Impl::GetCurrentRun(this) { Ok(ok__) => { @@ -294,14 +222,8 @@ pub trait IDWriteColorGlyphRunEnumerator1_Impl: Sized + IDWriteColorGlyphRunEnum } impl windows_core::RuntimeName for IDWriteColorGlyphRunEnumerator1 {} impl IDWriteColorGlyphRunEnumerator1_Vtbl { - pub const fn new() -> IDWriteColorGlyphRunEnumerator1_Vtbl - where - Identity: IDWriteColorGlyphRunEnumerator1_Impl, - { - unsafe extern "system" fn GetCurrentRun(this: *mut core::ffi::c_void, colorglyphrun: *mut *mut DWRITE_COLOR_GLYPH_RUN1) -> windows_core::HRESULT - where - Identity: IDWriteColorGlyphRunEnumerator1_Impl, - { + pub const fn new() -> IDWriteColorGlyphRunEnumerator1_Vtbl { + unsafe extern "system" fn GetCurrentRun(this: *mut core::ffi::c_void, colorglyphrun: *mut *mut DWRITE_COLOR_GLYPH_RUN1) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteColorGlyphRunEnumerator1_Impl::GetCurrentRun(this) { Ok(ok__) => { @@ -318,7 +240,7 @@ impl IDWriteColorGlyphRunEnumerator1_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDWriteFactory_Impl: Sized { +pub trait IDWriteFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetSystemFontCollection(&self, fontcollection: *mut Option, checkforupdates: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn CreateCustomFontCollection(&self, collectionloader: Option<&IDWriteFontCollectionLoader>, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result; fn RegisterFontCollectionLoader(&self, fontcollectionloader: Option<&IDWriteFontCollectionLoader>) -> windows_core::Result<()>; @@ -345,21 +267,12 @@ pub trait IDWriteFactory_Impl: Sized { impl windows_core::RuntimeName for IDWriteFactory {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteFactory_Vtbl { - pub const fn new() -> IDWriteFactory_Vtbl - where - Identity: IDWriteFactory_Impl, - { - unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + pub const fn new() -> IDWriteFactory_Vtbl { + unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory_Impl::GetSystemFontCollection(this, core::mem::transmute_copy(&fontcollection), core::mem::transmute_copy(&checkforupdates)).into() } - unsafe extern "system" fn CreateCustomFontCollection(this: *mut core::ffi::c_void, collectionloader: *mut core::ffi::c_void, collectionkey: *const core::ffi::c_void, collectionkeysize: u32, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateCustomFontCollection(this: *mut core::ffi::c_void, collectionloader: *mut core::ffi::c_void, collectionkey: *const core::ffi::c_void, collectionkeysize: u32, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateCustomFontCollection(this, windows_core::from_raw_borrowed(&collectionloader), core::mem::transmute_copy(&collectionkey), core::mem::transmute_copy(&collectionkeysize)) { Ok(ok__) => { @@ -369,24 +282,15 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterFontCollectionLoader(this: *mut core::ffi::c_void, fontcollectionloader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn RegisterFontCollectionLoader(this: *mut core::ffi::c_void, fontcollectionloader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory_Impl::RegisterFontCollectionLoader(this, windows_core::from_raw_borrowed(&fontcollectionloader)).into() } - unsafe extern "system" fn UnregisterFontCollectionLoader(this: *mut core::ffi::c_void, fontcollectionloader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn UnregisterFontCollectionLoader(this: *mut core::ffi::c_void, fontcollectionloader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory_Impl::UnregisterFontCollectionLoader(this, windows_core::from_raw_borrowed(&fontcollectionloader)).into() } - unsafe extern "system" fn CreateFontFileReference(this: *mut core::ffi::c_void, filepath: windows_core::PCWSTR, lastwritetime: *const super::super::Foundation::FILETIME, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateFontFileReference(this: *mut core::ffi::c_void, filepath: windows_core::PCWSTR, lastwritetime: *const super::super::Foundation::FILETIME, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateFontFileReference(this, core::mem::transmute(&filepath), core::mem::transmute_copy(&lastwritetime)) { Ok(ok__) => { @@ -396,10 +300,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCustomFontFileReference(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: *mut core::ffi::c_void, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateCustomFontFileReference(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfileloader: *mut core::ffi::c_void, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateCustomFontFileReference(this, core::mem::transmute_copy(&fontfilereferencekey), core::mem::transmute_copy(&fontfilereferencekeysize), windows_core::from_raw_borrowed(&fontfileloader)) { Ok(ok__) => { @@ -409,10 +310,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontfacetype: DWRITE_FONT_FACE_TYPE, numberoffiles: u32, fontfiles: *const *mut core::ffi::c_void, faceindex: u32, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontfacetype: DWRITE_FONT_FACE_TYPE, numberoffiles: u32, fontfiles: *const *mut core::ffi::c_void, faceindex: u32, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateFontFace(this, core::mem::transmute_copy(&fontfacetype), core::mem::transmute_copy(&numberoffiles), core::mem::transmute_copy(&fontfiles), core::mem::transmute_copy(&faceindex), core::mem::transmute_copy(&fontfacesimulationflags)) { Ok(ok__) => { @@ -422,10 +320,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRenderingParams(this: *mut core::ffi::c_void, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateRenderingParams(this: *mut core::ffi::c_void, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateRenderingParams(this) { Ok(ok__) => { @@ -435,10 +330,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMonitorRenderingParams(this: *mut core::ffi::c_void, monitor: super::Gdi::HMONITOR, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateMonitorRenderingParams(this: *mut core::ffi::c_void, monitor: super::Gdi::HMONITOR, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateMonitorRenderingParams(this, core::mem::transmute_copy(&monitor)) { Ok(ok__) => { @@ -448,10 +340,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCustomRenderingParams(this: *mut core::ffi::c_void, gamma: f32, enhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateCustomRenderingParams(this: *mut core::ffi::c_void, gamma: f32, enhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateCustomRenderingParams(this, core::mem::transmute_copy(&gamma), core::mem::transmute_copy(&enhancedcontrast), core::mem::transmute_copy(&cleartypelevel), core::mem::transmute_copy(&pixelgeometry), core::mem::transmute_copy(&renderingmode)) { Ok(ok__) => { @@ -461,24 +350,15 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterFontFileLoader(this: *mut core::ffi::c_void, fontfileloader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn RegisterFontFileLoader(this: *mut core::ffi::c_void, fontfileloader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory_Impl::RegisterFontFileLoader(this, windows_core::from_raw_borrowed(&fontfileloader)).into() } - unsafe extern "system" fn UnregisterFontFileLoader(this: *mut core::ffi::c_void, fontfileloader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn UnregisterFontFileLoader(this: *mut core::ffi::c_void, fontfileloader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory_Impl::UnregisterFontFileLoader(this, windows_core::from_raw_borrowed(&fontfileloader)).into() } - unsafe extern "system" fn CreateTextFormat(this: *mut core::ffi::c_void, fontfamilyname: windows_core::PCWSTR, fontcollection: *mut core::ffi::c_void, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: windows_core::PCWSTR, textformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateTextFormat(this: *mut core::ffi::c_void, fontfamilyname: windows_core::PCWSTR, fontcollection: *mut core::ffi::c_void, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: windows_core::PCWSTR, textformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateTextFormat(this, core::mem::transmute(&fontfamilyname), windows_core::from_raw_borrowed(&fontcollection), core::mem::transmute_copy(&fontweight), core::mem::transmute_copy(&fontstyle), core::mem::transmute_copy(&fontstretch), core::mem::transmute_copy(&fontsize), core::mem::transmute(&localename)) { Ok(ok__) => { @@ -488,10 +368,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTypography(this: *mut core::ffi::c_void, typography: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateTypography(this: *mut core::ffi::c_void, typography: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateTypography(this) { Ok(ok__) => { @@ -501,10 +378,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGdiInterop(this: *mut core::ffi::c_void, gdiinterop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn GetGdiInterop(this: *mut core::ffi::c_void, gdiinterop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::GetGdiInterop(this) { Ok(ok__) => { @@ -514,10 +388,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTextLayout(this: *mut core::ffi::c_void, string: windows_core::PCWSTR, stringlength: u32, textformat: *mut core::ffi::c_void, maxwidth: f32, maxheight: f32, textlayout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateTextLayout(this: *mut core::ffi::c_void, string: windows_core::PCWSTR, stringlength: u32, textformat: *mut core::ffi::c_void, maxwidth: f32, maxheight: f32, textlayout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateTextLayout(this, core::mem::transmute(&string), core::mem::transmute_copy(&stringlength), windows_core::from_raw_borrowed(&textformat), core::mem::transmute_copy(&maxwidth), core::mem::transmute_copy(&maxheight)) { Ok(ok__) => { @@ -527,10 +398,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGdiCompatibleTextLayout(this: *mut core::ffi::c_void, string: windows_core::PCWSTR, stringlength: u32, textformat: *mut core::ffi::c_void, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, textlayout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateGdiCompatibleTextLayout(this: *mut core::ffi::c_void, string: windows_core::PCWSTR, stringlength: u32, textformat: *mut core::ffi::c_void, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, textlayout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateGdiCompatibleTextLayout(this, core::mem::transmute(&string), core::mem::transmute_copy(&stringlength), windows_core::from_raw_borrowed(&textformat), core::mem::transmute_copy(&layoutwidth), core::mem::transmute_copy(&layoutheight), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&usegdinatural)) { Ok(ok__) => { @@ -540,10 +408,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEllipsisTrimmingSign(this: *mut core::ffi::c_void, textformat: *mut core::ffi::c_void, trimmingsign: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateEllipsisTrimmingSign(this: *mut core::ffi::c_void, textformat: *mut core::ffi::c_void, trimmingsign: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateEllipsisTrimmingSign(this, windows_core::from_raw_borrowed(&textformat)) { Ok(ok__) => { @@ -553,10 +418,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTextAnalyzer(this: *mut core::ffi::c_void, textanalyzer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateTextAnalyzer(this: *mut core::ffi::c_void, textanalyzer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateTextAnalyzer(this) { Ok(ok__) => { @@ -566,10 +428,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateNumberSubstitution(this: *mut core::ffi::c_void, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: windows_core::PCWSTR, ignoreuseroverride: super::super::Foundation::BOOL, numbersubstitution: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateNumberSubstitution(this: *mut core::ffi::c_void, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: windows_core::PCWSTR, ignoreuseroverride: super::super::Foundation::BOOL, numbersubstitution: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateNumberSubstitution(this, core::mem::transmute_copy(&substitutionmethod), core::mem::transmute(&localename), core::mem::transmute_copy(&ignoreuseroverride)) { Ok(ok__) => { @@ -579,10 +438,7 @@ impl IDWriteFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGlyphRunAnalysis(this: *mut core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, pixelsperdip: f32, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, baselineoriginx: f32, baselineoriginy: f32, glyphrunanalysis: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory_Impl, - { + unsafe extern "system" fn CreateGlyphRunAnalysis(this: *mut core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, pixelsperdip: f32, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, baselineoriginx: f32, baselineoriginy: f32, glyphrunanalysis: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateGlyphRunAnalysis(this, core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&renderingmode), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy)) { Ok(ok__) => { @@ -630,21 +486,12 @@ pub trait IDWriteFactory1_Impl: Sized + IDWriteFactory_Impl { impl windows_core::RuntimeName for IDWriteFactory1 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteFactory1_Vtbl { - pub const fn new() -> IDWriteFactory1_Vtbl - where - Identity: IDWriteFactory1_Impl, - { - unsafe extern "system" fn GetEudcFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFactory1_Impl, - { + pub const fn new() -> IDWriteFactory1_Vtbl { + unsafe extern "system" fn GetEudcFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory1_Impl::GetEudcFontCollection(this, core::mem::transmute_copy(&fontcollection), core::mem::transmute_copy(&checkforupdates)).into() } - unsafe extern "system" fn CreateCustomRenderingParams(this: *mut core::ffi::c_void, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory1_Impl, - { + unsafe extern "system" fn CreateCustomRenderingParams(this: *mut core::ffi::c_void, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory1_Impl::CreateCustomRenderingParams(this, core::mem::transmute_copy(&gamma), core::mem::transmute_copy(&enhancedcontrast), core::mem::transmute_copy(&enhancedcontrastgrayscale), core::mem::transmute_copy(&cleartypelevel), core::mem::transmute_copy(&pixelgeometry), core::mem::transmute_copy(&renderingmode)) { Ok(ok__) => { @@ -676,14 +523,8 @@ pub trait IDWriteFactory2_Impl: Sized + IDWriteFactory1_Impl { impl windows_core::RuntimeName for IDWriteFactory2 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteFactory2_Vtbl { - pub const fn new() -> IDWriteFactory2_Vtbl - where - Identity: IDWriteFactory2_Impl, - { - unsafe extern "system" fn GetSystemFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory2_Impl, - { + pub const fn new() -> IDWriteFactory2_Vtbl { + unsafe extern "system" fn GetSystemFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory2_Impl::GetSystemFontFallback(this) { Ok(ok__) => { @@ -693,10 +534,7 @@ impl IDWriteFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontFallbackBuilder(this: *mut core::ffi::c_void, fontfallbackbuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory2_Impl, - { + unsafe extern "system" fn CreateFontFallbackBuilder(this: *mut core::ffi::c_void, fontfallbackbuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory2_Impl::CreateFontFallbackBuilder(this) { Ok(ok__) => { @@ -706,10 +544,7 @@ impl IDWriteFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TranslateColorGlyphRun(this: *mut core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, measuringmode: DWRITE_MEASURING_MODE, worldtodevicetransform: *const DWRITE_MATRIX, colorpaletteindex: u32, colorlayers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory2_Impl, - { + unsafe extern "system" fn TranslateColorGlyphRun(this: *mut core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, measuringmode: DWRITE_MEASURING_MODE, worldtodevicetransform: *const DWRITE_MATRIX, colorpaletteindex: u32, colorlayers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory2_Impl::TranslateColorGlyphRun(this, core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&glyphrundescription), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&worldtodevicetransform), core::mem::transmute_copy(&colorpaletteindex)) { Ok(ok__) => { @@ -719,10 +554,7 @@ impl IDWriteFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCustomRenderingParams(this: *mut core::ffi::c_void, gamma: f32, enhancedcontrast: f32, grayscaleenhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory2_Impl, - { + unsafe extern "system" fn CreateCustomRenderingParams(this: *mut core::ffi::c_void, gamma: f32, enhancedcontrast: f32, grayscaleenhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory2_Impl::CreateCustomRenderingParams(this, core::mem::transmute_copy(&gamma), core::mem::transmute_copy(&enhancedcontrast), core::mem::transmute_copy(&grayscaleenhancedcontrast), core::mem::transmute_copy(&cleartypelevel), core::mem::transmute_copy(&pixelgeometry), core::mem::transmute_copy(&renderingmode), core::mem::transmute_copy(&gridfitmode)) { Ok(ok__) => { @@ -732,10 +564,7 @@ impl IDWriteFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGlyphRunAnalysis(this: *mut core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE, baselineoriginx: f32, baselineoriginy: f32, glyphrunanalysis: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory2_Impl, - { + unsafe extern "system" fn CreateGlyphRunAnalysis(this: *mut core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE, baselineoriginx: f32, baselineoriginy: f32, glyphrunanalysis: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory2_Impl::CreateGlyphRunAnalysis(this, core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&renderingmode), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&gridfitmode), core::mem::transmute_copy(&antialiasmode), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy)) { Ok(ok__) => { @@ -774,14 +603,8 @@ pub trait IDWriteFactory3_Impl: Sized + IDWriteFactory2_Impl { impl windows_core::RuntimeName for IDWriteFactory3 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteFactory3_Vtbl { - pub const fn new() -> IDWriteFactory3_Vtbl - where - Identity: IDWriteFactory3_Impl, - { - unsafe extern "system" fn CreateGlyphRunAnalysis(this: *mut core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE1, measuringmode: DWRITE_MEASURING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE, baselineoriginx: f32, baselineoriginy: f32, glyphrunanalysis: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory3_Impl, - { + pub const fn new() -> IDWriteFactory3_Vtbl { + unsafe extern "system" fn CreateGlyphRunAnalysis(this: *mut core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE1, measuringmode: DWRITE_MEASURING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE, baselineoriginx: f32, baselineoriginy: f32, glyphrunanalysis: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory3_Impl::CreateGlyphRunAnalysis(this, core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&renderingmode), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&gridfitmode), core::mem::transmute_copy(&antialiasmode), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy)) { Ok(ok__) => { @@ -791,10 +614,7 @@ impl IDWriteFactory3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCustomRenderingParams(this: *mut core::ffi::c_void, gamma: f32, enhancedcontrast: f32, grayscaleenhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE1, gridfitmode: DWRITE_GRID_FIT_MODE, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory3_Impl, - { + unsafe extern "system" fn CreateCustomRenderingParams(this: *mut core::ffi::c_void, gamma: f32, enhancedcontrast: f32, grayscaleenhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE1, gridfitmode: DWRITE_GRID_FIT_MODE, renderingparams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory3_Impl::CreateCustomRenderingParams(this, core::mem::transmute_copy(&gamma), core::mem::transmute_copy(&enhancedcontrast), core::mem::transmute_copy(&grayscaleenhancedcontrast), core::mem::transmute_copy(&cleartypelevel), core::mem::transmute_copy(&pixelgeometry), core::mem::transmute_copy(&renderingmode), core::mem::transmute_copy(&gridfitmode)) { Ok(ok__) => { @@ -804,10 +624,7 @@ impl IDWriteFactory3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontFaceReference(this: *mut core::ffi::c_void, fontfile: *mut core::ffi::c_void, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory3_Impl, - { + unsafe extern "system" fn CreateFontFaceReference(this: *mut core::ffi::c_void, fontfile: *mut core::ffi::c_void, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory3_Impl::CreateFontFaceReference(this, windows_core::from_raw_borrowed(&fontfile), core::mem::transmute_copy(&faceindex), core::mem::transmute_copy(&fontsimulations)) { Ok(ok__) => { @@ -817,10 +634,7 @@ impl IDWriteFactory3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontFaceReference2(this: *mut core::ffi::c_void, filepath: windows_core::PCWSTR, lastwritetime: *const super::super::Foundation::FILETIME, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory3_Impl, - { + unsafe extern "system" fn CreateFontFaceReference2(this: *mut core::ffi::c_void, filepath: windows_core::PCWSTR, lastwritetime: *const super::super::Foundation::FILETIME, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory3_Impl::CreateFontFaceReference2(this, core::mem::transmute(&filepath), core::mem::transmute_copy(&lastwritetime), core::mem::transmute_copy(&faceindex), core::mem::transmute_copy(&fontsimulations)) { Ok(ok__) => { @@ -830,10 +644,7 @@ impl IDWriteFactory3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory3_Impl, - { + unsafe extern "system" fn GetSystemFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory3_Impl::GetSystemFontSet(this) { Ok(ok__) => { @@ -843,10 +654,7 @@ impl IDWriteFactory3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontSetBuilder(this: *mut core::ffi::c_void, fontsetbuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory3_Impl, - { + unsafe extern "system" fn CreateFontSetBuilder(this: *mut core::ffi::c_void, fontsetbuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory3_Impl::CreateFontSetBuilder(this) { Ok(ok__) => { @@ -856,10 +664,7 @@ impl IDWriteFactory3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontCollectionFromFontSet(this: *mut core::ffi::c_void, fontset: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory3_Impl, - { + unsafe extern "system" fn CreateFontCollectionFromFontSet(this: *mut core::ffi::c_void, fontset: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory3_Impl::CreateFontCollectionFromFontSet(this, windows_core::from_raw_borrowed(&fontset)) { Ok(ok__) => { @@ -869,17 +674,11 @@ impl IDWriteFactory3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFactory3_Impl, - { + unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory3_Impl::GetSystemFontCollection(this, core::mem::transmute_copy(&includedownloadablefonts), core::mem::transmute_copy(&fontcollection), core::mem::transmute_copy(&checkforupdates)).into() } - unsafe extern "system" fn GetFontDownloadQueue(this: *mut core::ffi::c_void, fontdownloadqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory3_Impl, - { + unsafe extern "system" fn GetFontDownloadQueue(this: *mut core::ffi::c_void, fontdownloadqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory3_Impl::GetFontDownloadQueue(this) { Ok(ok__) => { @@ -916,14 +715,8 @@ pub trait IDWriteFactory4_Impl: Sized + IDWriteFactory3_Impl { impl windows_core::RuntimeName for IDWriteFactory4 {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Gdi"))] impl IDWriteFactory4_Vtbl { - pub const fn new() -> IDWriteFactory4_Vtbl - where - Identity: IDWriteFactory4_Impl, - { - unsafe extern "system" fn TranslateColorGlyphRun(this: *mut core::ffi::c_void, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, desiredglyphimageformats: DWRITE_GLYPH_IMAGE_FORMATS, measuringmode: DWRITE_MEASURING_MODE, worldanddpitransform: *const DWRITE_MATRIX, colorpaletteindex: u32, colorlayers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory4_Impl, - { + pub const fn new() -> IDWriteFactory4_Vtbl { + unsafe extern "system" fn TranslateColorGlyphRun(this: *mut core::ffi::c_void, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, desiredglyphimageformats: DWRITE_GLYPH_IMAGE_FORMATS, measuringmode: DWRITE_MEASURING_MODE, worldanddpitransform: *const DWRITE_MATRIX, colorpaletteindex: u32, colorlayers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory4_Impl::TranslateColorGlyphRun(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&glyphrundescription), core::mem::transmute_copy(&desiredglyphimageformats), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&worldanddpitransform), core::mem::transmute_copy(&colorpaletteindex)) { Ok(ok__) => { @@ -933,10 +726,7 @@ impl IDWriteFactory4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputeGlyphOrigins(this: *mut core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, glyphorigins: *mut super::Direct2D::Common::D2D_POINT_2F) -> windows_core::HRESULT - where - Identity: IDWriteFactory4_Impl, - { + unsafe extern "system" fn ComputeGlyphOrigins(this: *mut core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, glyphorigins: *mut super::Direct2D::Common::D2D_POINT_2F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory4_Impl::ComputeGlyphOrigins(this, core::mem::transmute_copy(&glyphrun), core::mem::transmute(&baselineorigin)) { Ok(ok__) => { @@ -946,10 +736,7 @@ impl IDWriteFactory4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputeGlyphOrigins2(this: *mut core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, measuringmode: DWRITE_MEASURING_MODE, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, worldanddpitransform: *const DWRITE_MATRIX, glyphorigins: *mut super::Direct2D::Common::D2D_POINT_2F) -> windows_core::HRESULT - where - Identity: IDWriteFactory4_Impl, - { + unsafe extern "system" fn ComputeGlyphOrigins2(this: *mut core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, measuringmode: DWRITE_MEASURING_MODE, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, worldanddpitransform: *const DWRITE_MATRIX, glyphorigins: *mut super::Direct2D::Common::D2D_POINT_2F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory4_Impl::ComputeGlyphOrigins2(this, core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&measuringmode), core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&worldanddpitransform)) { Ok(ok__) => { @@ -982,14 +769,8 @@ pub trait IDWriteFactory5_Impl: Sized + IDWriteFactory4_Impl { impl windows_core::RuntimeName for IDWriteFactory5 {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Gdi"))] impl IDWriteFactory5_Vtbl { - pub const fn new() -> IDWriteFactory5_Vtbl - where - Identity: IDWriteFactory5_Impl, - { - unsafe extern "system" fn CreateFontSetBuilder(this: *mut core::ffi::c_void, fontsetbuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory5_Impl, - { + pub const fn new() -> IDWriteFactory5_Vtbl { + unsafe extern "system" fn CreateFontSetBuilder(this: *mut core::ffi::c_void, fontsetbuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory5_Impl::CreateFontSetBuilder(this) { Ok(ok__) => { @@ -999,10 +780,7 @@ impl IDWriteFactory5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInMemoryFontFileLoader(this: *mut core::ffi::c_void, newloader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory5_Impl, - { + unsafe extern "system" fn CreateInMemoryFontFileLoader(this: *mut core::ffi::c_void, newloader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory5_Impl::CreateInMemoryFontFileLoader(this) { Ok(ok__) => { @@ -1012,10 +790,7 @@ impl IDWriteFactory5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateHttpFontFileLoader(this: *mut core::ffi::c_void, referrerurl: windows_core::PCWSTR, extraheaders: windows_core::PCWSTR, newloader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory5_Impl, - { + unsafe extern "system" fn CreateHttpFontFileLoader(this: *mut core::ffi::c_void, referrerurl: windows_core::PCWSTR, extraheaders: windows_core::PCWSTR, newloader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory5_Impl::CreateHttpFontFileLoader(this, core::mem::transmute(&referrerurl), core::mem::transmute(&extraheaders)) { Ok(ok__) => { @@ -1025,17 +800,11 @@ impl IDWriteFactory5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AnalyzeContainerType(this: *mut core::ffi::c_void, filedata: *const core::ffi::c_void, filedatasize: u32) -> DWRITE_CONTAINER_TYPE - where - Identity: IDWriteFactory5_Impl, - { + unsafe extern "system" fn AnalyzeContainerType(this: *mut core::ffi::c_void, filedata: *const core::ffi::c_void, filedatasize: u32) -> DWRITE_CONTAINER_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory5_Impl::AnalyzeContainerType(this, core::mem::transmute_copy(&filedata), core::mem::transmute_copy(&filedatasize)) } - unsafe extern "system" fn UnpackFontFile(this: *mut core::ffi::c_void, containertype: DWRITE_CONTAINER_TYPE, filedata: *const core::ffi::c_void, filedatasize: u32, unpackedfontstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory5_Impl, - { + unsafe extern "system" fn UnpackFontFile(this: *mut core::ffi::c_void, containertype: DWRITE_CONTAINER_TYPE, filedata: *const core::ffi::c_void, filedatasize: u32, unpackedfontstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory5_Impl::UnpackFontFile(this, core::mem::transmute_copy(&containertype), core::mem::transmute_copy(&filedata), core::mem::transmute_copy(&filedatasize)) { Ok(ok__) => { @@ -1072,14 +841,8 @@ pub trait IDWriteFactory6_Impl: Sized + IDWriteFactory5_Impl { impl windows_core::RuntimeName for IDWriteFactory6 {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Gdi"))] impl IDWriteFactory6_Vtbl { - pub const fn new() -> IDWriteFactory6_Vtbl - where - Identity: IDWriteFactory6_Impl, - { - unsafe extern "system" fn CreateFontFaceReference(this: *mut core::ffi::c_void, fontfile: *mut core::ffi::c_void, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory6_Impl, - { + pub const fn new() -> IDWriteFactory6_Vtbl { + unsafe extern "system" fn CreateFontFaceReference(this: *mut core::ffi::c_void, fontfile: *mut core::ffi::c_void, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory6_Impl::CreateFontFaceReference(this, windows_core::from_raw_borrowed(&fontfile), core::mem::transmute_copy(&faceindex), core::mem::transmute_copy(&fontsimulations), core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)) { Ok(ok__) => { @@ -1089,10 +852,7 @@ impl IDWriteFactory6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontResource(this: *mut core::ffi::c_void, fontfile: *mut core::ffi::c_void, faceindex: u32, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory6_Impl, - { + unsafe extern "system" fn CreateFontResource(this: *mut core::ffi::c_void, fontfile: *mut core::ffi::c_void, faceindex: u32, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory6_Impl::CreateFontResource(this, windows_core::from_raw_borrowed(&fontfile), core::mem::transmute_copy(&faceindex)) { Ok(ok__) => { @@ -1102,10 +862,7 @@ impl IDWriteFactory6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemFontSet(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory6_Impl, - { + unsafe extern "system" fn GetSystemFontSet(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory6_Impl::GetSystemFontSet(this, core::mem::transmute_copy(&includedownloadablefonts)) { Ok(ok__) => { @@ -1115,10 +872,7 @@ impl IDWriteFactory6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory6_Impl, - { + unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory6_Impl::GetSystemFontCollection(this, core::mem::transmute_copy(&includedownloadablefonts), core::mem::transmute_copy(&fontfamilymodel)) { Ok(ok__) => { @@ -1128,10 +882,7 @@ impl IDWriteFactory6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontCollectionFromFontSet(this: *mut core::ffi::c_void, fontset: *mut core::ffi::c_void, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory6_Impl, - { + unsafe extern "system" fn CreateFontCollectionFromFontSet(this: *mut core::ffi::c_void, fontset: *mut core::ffi::c_void, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory6_Impl::CreateFontCollectionFromFontSet(this, windows_core::from_raw_borrowed(&fontset), core::mem::transmute_copy(&fontfamilymodel)) { Ok(ok__) => { @@ -1141,10 +892,7 @@ impl IDWriteFactory6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontSetBuilder(this: *mut core::ffi::c_void, fontsetbuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory6_Impl, - { + unsafe extern "system" fn CreateFontSetBuilder(this: *mut core::ffi::c_void, fontsetbuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory6_Impl::CreateFontSetBuilder(this) { Ok(ok__) => { @@ -1154,10 +902,7 @@ impl IDWriteFactory6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTextFormat(this: *mut core::ffi::c_void, fontfamilyname: windows_core::PCWSTR, fontcollection: *mut core::ffi::c_void, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontsize: f32, localename: windows_core::PCWSTR, textformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory6_Impl, - { + unsafe extern "system" fn CreateTextFormat(this: *mut core::ffi::c_void, fontfamilyname: windows_core::PCWSTR, fontcollection: *mut core::ffi::c_void, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontsize: f32, localename: windows_core::PCWSTR, textformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory6_Impl::CreateTextFormat(this, core::mem::transmute(&fontfamilyname), windows_core::from_raw_borrowed(&fontcollection), core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount), core::mem::transmute_copy(&fontsize), core::mem::transmute(&localename)) { Ok(ok__) => { @@ -1191,14 +936,8 @@ pub trait IDWriteFactory7_Impl: Sized + IDWriteFactory6_Impl { impl windows_core::RuntimeName for IDWriteFactory7 {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Gdi"))] impl IDWriteFactory7_Vtbl { - pub const fn new() -> IDWriteFactory7_Vtbl - where - Identity: IDWriteFactory7_Impl, - { - unsafe extern "system" fn GetSystemFontSet(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory7_Impl, - { + pub const fn new() -> IDWriteFactory7_Vtbl { + unsafe extern "system" fn GetSystemFontSet(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory7_Impl::GetSystemFontSet(this, core::mem::transmute_copy(&includedownloadablefonts)) { Ok(ok__) => { @@ -1208,10 +947,7 @@ impl IDWriteFactory7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory7_Impl, - { + unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory7_Impl::GetSystemFontCollection(this, core::mem::transmute_copy(&includedownloadablefonts), core::mem::transmute_copy(&fontfamilymodel)) { Ok(ok__) => { @@ -1239,14 +975,8 @@ pub trait IDWriteFactory8_Impl: Sized + IDWriteFactory7_Impl { impl windows_core::RuntimeName for IDWriteFactory8 {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Gdi"))] impl IDWriteFactory8_Vtbl { - pub const fn new() -> IDWriteFactory8_Vtbl - where - Identity: IDWriteFactory8_Impl, - { - unsafe extern "system" fn TranslateColorGlyphRun(this: *mut core::ffi::c_void, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, desiredglyphimageformats: DWRITE_GLYPH_IMAGE_FORMATS, paintfeaturelevel: DWRITE_PAINT_FEATURE_LEVEL, measuringmode: DWRITE_MEASURING_MODE, worldanddpitransform: *const DWRITE_MATRIX, colorpaletteindex: u32, colorenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFactory8_Impl, - { + pub const fn new() -> IDWriteFactory8_Vtbl { + unsafe extern "system" fn TranslateColorGlyphRun(this: *mut core::ffi::c_void, baselineorigin: super::Direct2D::Common::D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, desiredglyphimageformats: DWRITE_GLYPH_IMAGE_FORMATS, paintfeaturelevel: DWRITE_PAINT_FEATURE_LEVEL, measuringmode: DWRITE_MEASURING_MODE, worldanddpitransform: *const DWRITE_MATRIX, colorpaletteindex: u32, colorenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory8_Impl::TranslateColorGlyphRun(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&glyphrundescription), core::mem::transmute_copy(&desiredglyphimageformats), core::mem::transmute_copy(&paintfeaturelevel), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&worldanddpitransform), core::mem::transmute_copy(&colorpaletteindex)) { Ok(ok__) => { @@ -1262,7 +992,7 @@ impl IDWriteFactory8_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteFont_Impl: Sized { +pub trait IDWriteFont_Impl: Sized + windows_core::IUnknownImpl { fn GetFontFamily(&self) -> windows_core::Result; fn GetWeight(&self) -> DWRITE_FONT_WEIGHT; fn GetStretch(&self) -> DWRITE_FONT_STRETCH; @@ -1277,14 +1007,8 @@ pub trait IDWriteFont_Impl: Sized { } impl windows_core::RuntimeName for IDWriteFont {} impl IDWriteFont_Vtbl { - pub const fn new() -> IDWriteFont_Vtbl - where - Identity: IDWriteFont_Impl, - { - unsafe extern "system" fn GetFontFamily(this: *mut core::ffi::c_void, fontfamily: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFont_Impl, - { + pub const fn new() -> IDWriteFont_Vtbl { + unsafe extern "system" fn GetFontFamily(this: *mut core::ffi::c_void, fontfamily: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFont_Impl::GetFontFamily(this) { Ok(ok__) => { @@ -1294,38 +1018,23 @@ impl IDWriteFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWeight(this: *mut core::ffi::c_void) -> DWRITE_FONT_WEIGHT - where - Identity: IDWriteFont_Impl, - { + unsafe extern "system" fn GetWeight(this: *mut core::ffi::c_void) -> DWRITE_FONT_WEIGHT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont_Impl::GetWeight(this) } - unsafe extern "system" fn GetStretch(this: *mut core::ffi::c_void) -> DWRITE_FONT_STRETCH - where - Identity: IDWriteFont_Impl, - { + unsafe extern "system" fn GetStretch(this: *mut core::ffi::c_void) -> DWRITE_FONT_STRETCH { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont_Impl::GetStretch(this) } - unsafe extern "system" fn GetStyle(this: *mut core::ffi::c_void) -> DWRITE_FONT_STYLE - where - Identity: IDWriteFont_Impl, - { + unsafe extern "system" fn GetStyle(this: *mut core::ffi::c_void) -> DWRITE_FONT_STYLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont_Impl::GetStyle(this) } - unsafe extern "system" fn IsSymbolFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFont_Impl, - { + unsafe extern "system" fn IsSymbolFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont_Impl::IsSymbolFont(this) } - unsafe extern "system" fn GetFaceNames(this: *mut core::ffi::c_void, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFont_Impl, - { + unsafe extern "system" fn GetFaceNames(this: *mut core::ffi::c_void, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFont_Impl::GetFaceNames(this) { Ok(ok__) => { @@ -1335,31 +1044,19 @@ impl IDWriteFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInformationalStrings(this: *mut core::ffi::c_void, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFont_Impl, - { + unsafe extern "system" fn GetInformationalStrings(this: *mut core::ffi::c_void, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont_Impl::GetInformationalStrings(this, core::mem::transmute_copy(&informationalstringid), core::mem::transmute_copy(&informationalstrings), core::mem::transmute_copy(&exists)).into() } - unsafe extern "system" fn GetSimulations(this: *mut core::ffi::c_void) -> DWRITE_FONT_SIMULATIONS - where - Identity: IDWriteFont_Impl, - { + unsafe extern "system" fn GetSimulations(this: *mut core::ffi::c_void) -> DWRITE_FONT_SIMULATIONS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont_Impl::GetSimulations(this) } - unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, fontmetrics: *mut DWRITE_FONT_METRICS) - where - Identity: IDWriteFont_Impl, - { + unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, fontmetrics: *mut DWRITE_FONT_METRICS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont_Impl::GetMetrics(this, core::mem::transmute_copy(&fontmetrics)) } - unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFont_Impl, - { + unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFont_Impl::HasCharacter(this, core::mem::transmute_copy(&unicodevalue)) { Ok(ok__) => { @@ -1369,10 +1066,7 @@ impl IDWriteFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFont_Impl, - { + unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFont_Impl::CreateFontFace(this) { Ok(ok__) => { @@ -1409,35 +1103,20 @@ pub trait IDWriteFont1_Impl: Sized + IDWriteFont_Impl { } impl windows_core::RuntimeName for IDWriteFont1 {} impl IDWriteFont1_Vtbl { - pub const fn new() -> IDWriteFont1_Vtbl - where - Identity: IDWriteFont1_Impl, - { - unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, fontmetrics: *mut DWRITE_FONT_METRICS1) - where - Identity: IDWriteFont1_Impl, - { + pub const fn new() -> IDWriteFont1_Vtbl { + unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, fontmetrics: *mut DWRITE_FONT_METRICS1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont1_Impl::GetMetrics(this, core::mem::transmute_copy(&fontmetrics)) } - unsafe extern "system" fn GetPanose(this: *mut core::ffi::c_void, panose: *mut DWRITE_PANOSE) - where - Identity: IDWriteFont1_Impl, - { + unsafe extern "system" fn GetPanose(this: *mut core::ffi::c_void, panose: *mut DWRITE_PANOSE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont1_Impl::GetPanose(this, core::mem::transmute_copy(&panose)) } - unsafe extern "system" fn GetUnicodeRanges(this: *mut core::ffi::c_void, maxrangecount: u32, unicoderanges: *mut DWRITE_UNICODE_RANGE, actualrangecount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteFont1_Impl, - { + unsafe extern "system" fn GetUnicodeRanges(this: *mut core::ffi::c_void, maxrangecount: u32, unicoderanges: *mut DWRITE_UNICODE_RANGE, actualrangecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont1_Impl::GetUnicodeRanges(this, core::mem::transmute_copy(&maxrangecount), core::mem::transmute_copy(&unicoderanges), core::mem::transmute_copy(&actualrangecount)).into() } - unsafe extern "system" fn IsMonospacedFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFont1_Impl, - { + unsafe extern "system" fn IsMonospacedFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont1_Impl::IsMonospacedFont(this) } @@ -1458,14 +1137,8 @@ pub trait IDWriteFont2_Impl: Sized + IDWriteFont1_Impl { } impl windows_core::RuntimeName for IDWriteFont2 {} impl IDWriteFont2_Vtbl { - pub const fn new() -> IDWriteFont2_Vtbl - where - Identity: IDWriteFont2_Impl, - { - unsafe extern "system" fn IsColorFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFont2_Impl, - { + pub const fn new() -> IDWriteFont2_Vtbl { + unsafe extern "system" fn IsColorFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont2_Impl::IsColorFont(this) } @@ -1484,14 +1157,8 @@ pub trait IDWriteFont3_Impl: Sized + IDWriteFont2_Impl { } impl windows_core::RuntimeName for IDWriteFont3 {} impl IDWriteFont3_Vtbl { - pub const fn new() -> IDWriteFont3_Vtbl - where - Identity: IDWriteFont3_Impl, - { - unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFont3_Impl, - { + pub const fn new() -> IDWriteFont3_Vtbl { + unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFont3_Impl::CreateFontFace(this) { Ok(ok__) => { @@ -1501,17 +1168,11 @@ impl IDWriteFont3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFont3_Impl, - { + unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont3_Impl::Equals(this, windows_core::from_raw_borrowed(&font)) } - unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFont3_Impl, - { + unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFont3_Impl::GetFontFaceReference(this) { Ok(ok__) => { @@ -1521,17 +1182,11 @@ impl IDWriteFont3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32) -> super::super::Foundation::BOOL - where - Identity: IDWriteFont3_Impl, - { + unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont3_Impl::HasCharacter(this, core::mem::transmute_copy(&unicodevalue)) } - unsafe extern "system" fn GetLocality(this: *mut core::ffi::c_void) -> DWRITE_LOCALITY - where - Identity: IDWriteFont3_Impl, - { + unsafe extern "system" fn GetLocality(this: *mut core::ffi::c_void) -> DWRITE_LOCALITY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont3_Impl::GetLocality(this) } @@ -1548,7 +1203,7 @@ impl IDWriteFont3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteFontCollection_Impl: Sized { +pub trait IDWriteFontCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetFontFamilyCount(&self) -> u32; fn GetFontFamily(&self, index: u32) -> windows_core::Result; fn FindFamilyName(&self, familyname: &windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -1556,21 +1211,12 @@ pub trait IDWriteFontCollection_Impl: Sized { } impl windows_core::RuntimeName for IDWriteFontCollection {} impl IDWriteFontCollection_Vtbl { - pub const fn new() -> IDWriteFontCollection_Vtbl - where - Identity: IDWriteFontCollection_Impl, - { - unsafe extern "system" fn GetFontFamilyCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontCollection_Impl, - { + pub const fn new() -> IDWriteFontCollection_Vtbl { + unsafe extern "system" fn GetFontFamilyCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontCollection_Impl::GetFontFamilyCount(this) } - unsafe extern "system" fn GetFontFamily(this: *mut core::ffi::c_void, index: u32, fontfamily: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontCollection_Impl, - { + unsafe extern "system" fn GetFontFamily(this: *mut core::ffi::c_void, index: u32, fontfamily: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontCollection_Impl::GetFontFamily(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1580,17 +1226,11 @@ impl IDWriteFontCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFamilyName(this: *mut core::ffi::c_void, familyname: windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontCollection_Impl, - { + unsafe extern "system" fn FindFamilyName(this: *mut core::ffi::c_void, familyname: windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontCollection_Impl::FindFamilyName(this, core::mem::transmute(&familyname), core::mem::transmute_copy(&index), core::mem::transmute_copy(&exists)).into() } - unsafe extern "system" fn GetFontFromFontFace(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontCollection_Impl, - { + unsafe extern "system" fn GetFontFromFontFace(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontCollection_Impl::GetFontFromFontFace(this, windows_core::from_raw_borrowed(&fontface)) { Ok(ok__) => { @@ -1618,14 +1258,8 @@ pub trait IDWriteFontCollection1_Impl: Sized + IDWriteFontCollection_Impl { } impl windows_core::RuntimeName for IDWriteFontCollection1 {} impl IDWriteFontCollection1_Vtbl { - pub const fn new() -> IDWriteFontCollection1_Vtbl - where - Identity: IDWriteFontCollection1_Impl, - { - unsafe extern "system" fn GetFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontCollection1_Impl, - { + pub const fn new() -> IDWriteFontCollection1_Vtbl { + unsafe extern "system" fn GetFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontCollection1_Impl::GetFontSet(this) { Ok(ok__) => { @@ -1635,10 +1269,7 @@ impl IDWriteFontCollection1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontFamily(this: *mut core::ffi::c_void, index: u32, fontfamily: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontCollection1_Impl, - { + unsafe extern "system" fn GetFontFamily(this: *mut core::ffi::c_void, index: u32, fontfamily: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontCollection1_Impl::GetFontFamily(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1666,14 +1297,8 @@ pub trait IDWriteFontCollection2_Impl: Sized + IDWriteFontCollection1_Impl { } impl windows_core::RuntimeName for IDWriteFontCollection2 {} impl IDWriteFontCollection2_Vtbl { - pub const fn new() -> IDWriteFontCollection2_Vtbl - where - Identity: IDWriteFontCollection2_Impl, - { - unsafe extern "system" fn GetFontFamily(this: *mut core::ffi::c_void, index: u32, fontfamily: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontCollection2_Impl, - { + pub const fn new() -> IDWriteFontCollection2_Vtbl { + unsafe extern "system" fn GetFontFamily(this: *mut core::ffi::c_void, index: u32, fontfamily: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontCollection2_Impl::GetFontFamily(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1683,10 +1308,7 @@ impl IDWriteFontCollection2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, familyname: windows_core::PCWSTR, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontCollection2_Impl, - { + unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, familyname: windows_core::PCWSTR, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontCollection2_Impl::GetMatchingFonts(this, core::mem::transmute(&familyname), core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)) { Ok(ok__) => { @@ -1696,17 +1318,11 @@ impl IDWriteFontCollection2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontFamilyModel(this: *mut core::ffi::c_void) -> DWRITE_FONT_FAMILY_MODEL - where - Identity: IDWriteFontCollection2_Impl, - { + unsafe extern "system" fn GetFontFamilyModel(this: *mut core::ffi::c_void) -> DWRITE_FONT_FAMILY_MODEL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontCollection2_Impl::GetFontFamilyModel(this) } - unsafe extern "system" fn GetFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontCollection2_Impl, - { + unsafe extern "system" fn GetFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontCollection2_Impl::GetFontSet(this) { Ok(ok__) => { @@ -1733,14 +1349,8 @@ pub trait IDWriteFontCollection3_Impl: Sized + IDWriteFontCollection2_Impl { } impl windows_core::RuntimeName for IDWriteFontCollection3 {} impl IDWriteFontCollection3_Vtbl { - pub const fn new() -> IDWriteFontCollection3_Vtbl - where - Identity: IDWriteFontCollection3_Impl, - { - unsafe extern "system" fn GetExpirationEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: IDWriteFontCollection3_Impl, - { + pub const fn new() -> IDWriteFontCollection3_Vtbl { + unsafe extern "system" fn GetExpirationEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontCollection3_Impl::GetExpirationEvent(this) } @@ -1750,19 +1360,13 @@ impl IDWriteFontCollection3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteFontCollectionLoader_Impl: Sized { +pub trait IDWriteFontCollectionLoader_Impl: Sized + windows_core::IUnknownImpl { fn CreateEnumeratorFromKey(&self, factory: Option<&IDWriteFactory>, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IDWriteFontCollectionLoader {} impl IDWriteFontCollectionLoader_Vtbl { - pub const fn new() -> IDWriteFontCollectionLoader_Vtbl - where - Identity: IDWriteFontCollectionLoader_Impl, - { - unsafe extern "system" fn CreateEnumeratorFromKey(this: *mut core::ffi::c_void, factory: *mut core::ffi::c_void, collectionkey: *const core::ffi::c_void, collectionkeysize: u32, fontfileenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontCollectionLoader_Impl, - { + pub const fn new() -> IDWriteFontCollectionLoader_Vtbl { + unsafe extern "system" fn CreateEnumeratorFromKey(this: *mut core::ffi::c_void, factory: *mut core::ffi::c_void, collectionkey: *const core::ffi::c_void, collectionkeysize: u32, fontfileenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontCollectionLoader_Impl::CreateEnumeratorFromKey(this, windows_core::from_raw_borrowed(&factory), core::mem::transmute_copy(&collectionkey), core::mem::transmute_copy(&collectionkeysize)) { Ok(ok__) => { @@ -1778,19 +1382,13 @@ impl IDWriteFontCollectionLoader_Vtbl { iid == &::IID } } -pub trait IDWriteFontDownloadListener_Impl: Sized { +pub trait IDWriteFontDownloadListener_Impl: Sized + windows_core::IUnknownImpl { fn DownloadCompleted(&self, downloadqueue: Option<&IDWriteFontDownloadQueue>, context: Option<&windows_core::IUnknown>, downloadresult: windows_core::HRESULT); } impl windows_core::RuntimeName for IDWriteFontDownloadListener {} impl IDWriteFontDownloadListener_Vtbl { - pub const fn new() -> IDWriteFontDownloadListener_Vtbl - where - Identity: IDWriteFontDownloadListener_Impl, - { - unsafe extern "system" fn DownloadCompleted(this: *mut core::ffi::c_void, downloadqueue: *mut core::ffi::c_void, context: *mut core::ffi::c_void, downloadresult: windows_core::HRESULT) - where - Identity: IDWriteFontDownloadListener_Impl, - { + pub const fn new() -> IDWriteFontDownloadListener_Vtbl { + unsafe extern "system" fn DownloadCompleted(this: *mut core::ffi::c_void, downloadqueue: *mut core::ffi::c_void, context: *mut core::ffi::c_void, downloadresult: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontDownloadListener_Impl::DownloadCompleted(this, windows_core::from_raw_borrowed(&downloadqueue), windows_core::from_raw_borrowed(&context), core::mem::transmute_copy(&downloadresult)) } @@ -1800,7 +1398,7 @@ impl IDWriteFontDownloadListener_Vtbl { iid == &::IID } } -pub trait IDWriteFontDownloadQueue_Impl: Sized { +pub trait IDWriteFontDownloadQueue_Impl: Sized + windows_core::IUnknownImpl { fn AddListener(&self, listener: Option<&IDWriteFontDownloadListener>) -> windows_core::Result; fn RemoveListener(&self, token: u32) -> windows_core::Result<()>; fn IsEmpty(&self) -> super::super::Foundation::BOOL; @@ -1810,14 +1408,8 @@ pub trait IDWriteFontDownloadQueue_Impl: Sized { } impl windows_core::RuntimeName for IDWriteFontDownloadQueue {} impl IDWriteFontDownloadQueue_Vtbl { - pub const fn new() -> IDWriteFontDownloadQueue_Vtbl - where - Identity: IDWriteFontDownloadQueue_Impl, - { - unsafe extern "system" fn AddListener(this: *mut core::ffi::c_void, listener: *mut core::ffi::c_void, token: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteFontDownloadQueue_Impl, - { + pub const fn new() -> IDWriteFontDownloadQueue_Vtbl { + unsafe extern "system" fn AddListener(this: *mut core::ffi::c_void, listener: *mut core::ffi::c_void, token: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontDownloadQueue_Impl::AddListener(this, windows_core::from_raw_borrowed(&listener)) { Ok(ok__) => { @@ -1827,38 +1419,23 @@ impl IDWriteFontDownloadQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveListener(this: *mut core::ffi::c_void, token: u32) -> windows_core::HRESULT - where - Identity: IDWriteFontDownloadQueue_Impl, - { + unsafe extern "system" fn RemoveListener(this: *mut core::ffi::c_void, token: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontDownloadQueue_Impl::RemoveListener(this, core::mem::transmute_copy(&token)).into() } - unsafe extern "system" fn IsEmpty(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontDownloadQueue_Impl, - { + unsafe extern "system" fn IsEmpty(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontDownloadQueue_Impl::IsEmpty(this) } - unsafe extern "system" fn BeginDownload(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontDownloadQueue_Impl, - { + unsafe extern "system" fn BeginDownload(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontDownloadQueue_Impl::BeginDownload(this, windows_core::from_raw_borrowed(&context)).into() } - unsafe extern "system" fn CancelDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontDownloadQueue_Impl, - { + unsafe extern "system" fn CancelDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontDownloadQueue_Impl::CancelDownload(this).into() } - unsafe extern "system" fn GetGenerationCount(this: *mut core::ffi::c_void) -> u64 - where - Identity: IDWriteFontDownloadQueue_Impl, - { + unsafe extern "system" fn GetGenerationCount(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontDownloadQueue_Impl::GetGenerationCount(this) } @@ -1877,7 +1454,7 @@ impl IDWriteFontDownloadQueue_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] -pub trait IDWriteFontFace_Impl: Sized { +pub trait IDWriteFontFace_Impl: Sized + windows_core::IUnknownImpl { fn GetType(&self) -> DWRITE_FONT_FACE_TYPE; fn GetFiles(&self, numberoffiles: *mut u32, fontfiles: *mut Option) -> windows_core::Result<()>; fn GetIndex(&self) -> u32; @@ -1898,98 +1475,56 @@ pub trait IDWriteFontFace_Impl: Sized { impl windows_core::RuntimeName for IDWriteFontFace {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace_Vtbl { - pub const fn new() -> IDWriteFontFace_Vtbl - where - Identity: IDWriteFontFace_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> DWRITE_FONT_FACE_TYPE - where - Identity: IDWriteFontFace_Impl, - { + pub const fn new() -> IDWriteFontFace_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> DWRITE_FONT_FACE_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetType(this) } - unsafe extern "system" fn GetFiles(this: *mut core::ffi::c_void, numberoffiles: *mut u32, fontfiles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetFiles(this: *mut core::ffi::c_void, numberoffiles: *mut u32, fontfiles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetFiles(this, core::mem::transmute_copy(&numberoffiles), core::mem::transmute_copy(&fontfiles)).into() } - unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetIndex(this) } - unsafe extern "system" fn GetSimulations(this: *mut core::ffi::c_void) -> DWRITE_FONT_SIMULATIONS - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetSimulations(this: *mut core::ffi::c_void) -> DWRITE_FONT_SIMULATIONS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetSimulations(this) } - unsafe extern "system" fn IsSymbolFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn IsSymbolFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::IsSymbolFont(this) } - unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, fontfacemetrics: *mut DWRITE_FONT_METRICS) - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, fontfacemetrics: *mut DWRITE_FONT_METRICS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetMetrics(this, core::mem::transmute_copy(&fontfacemetrics)) } - unsafe extern "system" fn GetGlyphCount(this: *mut core::ffi::c_void) -> u16 - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetGlyphCount(this: *mut core::ffi::c_void) -> u16 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetGlyphCount(this) } - unsafe extern "system" fn GetDesignGlyphMetrics(this: *mut core::ffi::c_void, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetDesignGlyphMetrics(this: *mut core::ffi::c_void, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetDesignGlyphMetrics(this, core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphmetrics), core::mem::transmute_copy(&issideways)).into() } - unsafe extern "system" fn GetGlyphIndices(this: *mut core::ffi::c_void, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::HRESULT - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetGlyphIndices(this: *mut core::ffi::c_void, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetGlyphIndices(this, core::mem::transmute_copy(&codepoints), core::mem::transmute_copy(&codepointcount), core::mem::transmute_copy(&glyphindices)).into() } - unsafe extern "system" fn TryGetFontTable(this: *mut core::ffi::c_void, opentypetabletag: u32, tabledata: *mut *mut core::ffi::c_void, tablesize: *mut u32, tablecontext: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn TryGetFontTable(this: *mut core::ffi::c_void, opentypetabletag: u32, tabledata: *mut *mut core::ffi::c_void, tablesize: *mut u32, tablecontext: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::TryGetFontTable(this, core::mem::transmute_copy(&opentypetabletag), core::mem::transmute_copy(&tabledata), core::mem::transmute_copy(&tablesize), core::mem::transmute_copy(&tablecontext), core::mem::transmute_copy(&exists)).into() } - unsafe extern "system" fn ReleaseFontTable(this: *mut core::ffi::c_void, tablecontext: *const core::ffi::c_void) - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn ReleaseFontTable(this: *mut core::ffi::c_void, tablecontext: *const core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::ReleaseFontTable(this, core::mem::transmute_copy(&tablecontext)) } - unsafe extern "system" fn GetGlyphRunOutline(this: *mut core::ffi::c_void, emsize: f32, glyphindices: *const u16, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphcount: u32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetGlyphRunOutline(this: *mut core::ffi::c_void, emsize: f32, glyphindices: *const u16, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphcount: u32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetGlyphRunOutline(this, core::mem::transmute_copy(&emsize), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphadvances), core::mem::transmute_copy(&glyphoffsets), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&isrighttoleft), windows_core::from_raw_borrowed(&geometrysink)).into() } - unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: *mut core::ffi::c_void, renderingmode: *mut DWRITE_RENDERING_MODE) -> windows_core::HRESULT - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: *mut core::ffi::c_void, renderingmode: *mut DWRITE_RENDERING_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace_Impl::GetRecommendedRenderingMode(this, core::mem::transmute_copy(&emsize), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&measuringmode), windows_core::from_raw_borrowed(&renderingparams)) { Ok(ok__) => { @@ -1999,17 +1534,11 @@ impl IDWriteFontFace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGdiCompatibleMetrics(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, fontfacemetrics: *mut DWRITE_FONT_METRICS) -> windows_core::HRESULT - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetGdiCompatibleMetrics(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, fontfacemetrics: *mut DWRITE_FONT_METRICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetGdiCompatibleMetrics(this, core::mem::transmute_copy(&emsize), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&fontfacemetrics)).into() } - unsafe extern "system" fn GetGdiCompatibleGlyphMetrics(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontFace_Impl, - { + unsafe extern "system" fn GetGdiCompatibleGlyphMetrics(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetGdiCompatibleGlyphMetrics(this, core::mem::transmute_copy(&emsize), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&usegdinatural), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphmetrics), core::mem::transmute_copy(&issideways)).into() } @@ -2055,77 +1584,44 @@ pub trait IDWriteFontFace1_Impl: Sized + IDWriteFontFace_Impl { impl windows_core::RuntimeName for IDWriteFontFace1 {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace1_Vtbl { - pub const fn new() -> IDWriteFontFace1_Vtbl - where - Identity: IDWriteFontFace1_Impl, - { - unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, fontmetrics: *mut DWRITE_FONT_METRICS1) - where - Identity: IDWriteFontFace1_Impl, - { + pub const fn new() -> IDWriteFontFace1_Vtbl { + unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, fontmetrics: *mut DWRITE_FONT_METRICS1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::GetMetrics(this, core::mem::transmute_copy(&fontmetrics)) } - unsafe extern "system" fn GetGdiCompatibleMetrics(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, fontmetrics: *mut DWRITE_FONT_METRICS1) -> windows_core::HRESULT - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn GetGdiCompatibleMetrics(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, fontmetrics: *mut DWRITE_FONT_METRICS1) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::GetGdiCompatibleMetrics(this, core::mem::transmute_copy(&emsize), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&fontmetrics)).into() } - unsafe extern "system" fn GetCaretMetrics(this: *mut core::ffi::c_void, caretmetrics: *mut DWRITE_CARET_METRICS) - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn GetCaretMetrics(this: *mut core::ffi::c_void, caretmetrics: *mut DWRITE_CARET_METRICS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::GetCaretMetrics(this, core::mem::transmute_copy(&caretmetrics)) } - unsafe extern "system" fn GetUnicodeRanges(this: *mut core::ffi::c_void, maxrangecount: u32, unicoderanges: *mut DWRITE_UNICODE_RANGE, actualrangecount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn GetUnicodeRanges(this: *mut core::ffi::c_void, maxrangecount: u32, unicoderanges: *mut DWRITE_UNICODE_RANGE, actualrangecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::GetUnicodeRanges(this, core::mem::transmute_copy(&maxrangecount), core::mem::transmute_copy(&unicoderanges), core::mem::transmute_copy(&actualrangecount)).into() } - unsafe extern "system" fn IsMonospacedFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn IsMonospacedFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::IsMonospacedFont(this) } - unsafe extern "system" fn GetDesignGlyphAdvances(this: *mut core::ffi::c_void, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn GetDesignGlyphAdvances(this: *mut core::ffi::c_void, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::GetDesignGlyphAdvances(this, core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphadvances), core::mem::transmute_copy(&issideways)).into() } - unsafe extern "system" fn GetGdiCompatibleGlyphAdvances(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, issideways: super::super::Foundation::BOOL, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::HRESULT - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn GetGdiCompatibleGlyphAdvances(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, issideways: super::super::Foundation::BOOL, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::GetGdiCompatibleGlyphAdvances(this, core::mem::transmute_copy(&emsize), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&usegdinatural), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphadvances)).into() } - unsafe extern "system" fn GetKerningPairAdjustments(this: *mut core::ffi::c_void, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::HRESULT - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn GetKerningPairAdjustments(this: *mut core::ffi::c_void, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::GetKerningPairAdjustments(this, core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphadvanceadjustments)).into() } - unsafe extern "system" fn HasKerningPairs(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn HasKerningPairs(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::HasKerningPairs(this) } - unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingmode: *mut DWRITE_RENDERING_MODE) -> windows_core::HRESULT - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingmode: *mut DWRITE_RENDERING_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace1_Impl::GetRecommendedRenderingMode(this, core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&outlinethreshold), core::mem::transmute_copy(&measuringmode)) { Ok(ok__) => { @@ -2135,17 +1631,11 @@ impl IDWriteFontFace1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVerticalGlyphVariants(this: *mut core::ffi::c_void, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::HRESULT - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn GetVerticalGlyphVariants(this: *mut core::ffi::c_void, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::GetVerticalGlyphVariants(this, core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&nominalglyphindices), core::mem::transmute_copy(&verticalglyphindices)).into() } - unsafe extern "system" fn HasVerticalGlyphVariants(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFace1_Impl, - { + unsafe extern "system" fn HasVerticalGlyphVariants(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::HasVerticalGlyphVariants(this) } @@ -2181,42 +1671,24 @@ pub trait IDWriteFontFace2_Impl: Sized + IDWriteFontFace1_Impl { impl windows_core::RuntimeName for IDWriteFontFace2 {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace2_Vtbl { - pub const fn new() -> IDWriteFontFace2_Vtbl - where - Identity: IDWriteFontFace2_Impl, - { - unsafe extern "system" fn IsColorFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFace2_Impl, - { + pub const fn new() -> IDWriteFontFace2_Vtbl { + unsafe extern "system" fn IsColorFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace2_Impl::IsColorFont(this) } - unsafe extern "system" fn GetColorPaletteCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontFace2_Impl, - { + unsafe extern "system" fn GetColorPaletteCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace2_Impl::GetColorPaletteCount(this) } - unsafe extern "system" fn GetPaletteEntryCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontFace2_Impl, - { + unsafe extern "system" fn GetPaletteEntryCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace2_Impl::GetPaletteEntryCount(this) } - unsafe extern "system" fn GetPaletteEntries(this: *mut core::ffi::c_void, colorpaletteindex: u32, firstentryindex: u32, entrycount: u32, paletteentries: *mut DWRITE_COLOR_F) -> windows_core::HRESULT - where - Identity: IDWriteFontFace2_Impl, - { + unsafe extern "system" fn GetPaletteEntries(this: *mut core::ffi::c_void, colorpaletteindex: u32, firstentryindex: u32, entrycount: u32, paletteentries: *mut DWRITE_COLOR_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace2_Impl::GetPaletteEntries(this, core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&firstentryindex), core::mem::transmute_copy(&entrycount), core::mem::transmute_copy(&paletteentries)).into() } - unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: *mut core::ffi::c_void, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT - where - Identity: IDWriteFontFace2_Impl, - { + unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: *mut core::ffi::c_void, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace2_Impl::GetRecommendedRenderingMode(this, core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&outlinethreshold), core::mem::transmute_copy(&measuringmode), windows_core::from_raw_borrowed(&renderingparams), core::mem::transmute_copy(&renderingmode), core::mem::transmute_copy(&gridfitmode)).into() } @@ -2254,14 +1726,8 @@ pub trait IDWriteFontFace3_Impl: Sized + IDWriteFontFace2_Impl { impl windows_core::RuntimeName for IDWriteFontFace3 {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace3_Vtbl { - pub const fn new() -> IDWriteFontFace3_Vtbl - where - Identity: IDWriteFontFace3_Impl, - { - unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFace3_Impl, - { + pub const fn new() -> IDWriteFontFace3_Vtbl { + unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace3_Impl::GetFontFaceReference(this) { Ok(ok__) => { @@ -2271,38 +1737,23 @@ impl IDWriteFontFace3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPanose(this: *mut core::ffi::c_void, panose: *mut DWRITE_PANOSE) - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn GetPanose(this: *mut core::ffi::c_void, panose: *mut DWRITE_PANOSE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::GetPanose(this, core::mem::transmute_copy(&panose)) } - unsafe extern "system" fn GetWeight(this: *mut core::ffi::c_void) -> DWRITE_FONT_WEIGHT - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn GetWeight(this: *mut core::ffi::c_void) -> DWRITE_FONT_WEIGHT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::GetWeight(this) } - unsafe extern "system" fn GetStretch(this: *mut core::ffi::c_void) -> DWRITE_FONT_STRETCH - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn GetStretch(this: *mut core::ffi::c_void) -> DWRITE_FONT_STRETCH { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::GetStretch(this) } - unsafe extern "system" fn GetStyle(this: *mut core::ffi::c_void) -> DWRITE_FONT_STYLE - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn GetStyle(this: *mut core::ffi::c_void) -> DWRITE_FONT_STYLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::GetStyle(this) } - unsafe extern "system" fn GetFamilyNames(this: *mut core::ffi::c_void, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn GetFamilyNames(this: *mut core::ffi::c_void, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace3_Impl::GetFamilyNames(this) { Ok(ok__) => { @@ -2312,10 +1763,7 @@ impl IDWriteFontFace3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFaceNames(this: *mut core::ffi::c_void, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn GetFaceNames(this: *mut core::ffi::c_void, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace3_Impl::GetFaceNames(this) { Ok(ok__) => { @@ -2325,45 +1773,27 @@ impl IDWriteFontFace3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInformationalStrings(this: *mut core::ffi::c_void, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn GetInformationalStrings(this: *mut core::ffi::c_void, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::GetInformationalStrings(this, core::mem::transmute_copy(&informationalstringid), core::mem::transmute_copy(&informationalstrings), core::mem::transmute_copy(&exists)).into() } - unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::HasCharacter(this, core::mem::transmute_copy(&unicodevalue)) } - unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: *mut core::ffi::c_void, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: *mut core::ffi::c_void, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::GetRecommendedRenderingMode(this, core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&outlinethreshold), core::mem::transmute_copy(&measuringmode), windows_core::from_raw_borrowed(&renderingparams), core::mem::transmute_copy(&renderingmode), core::mem::transmute_copy(&gridfitmode)).into() } - unsafe extern "system" fn IsCharacterLocal(this: *mut core::ffi::c_void, unicodevalue: u32) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn IsCharacterLocal(this: *mut core::ffi::c_void, unicodevalue: u32) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::IsCharacterLocal(this, core::mem::transmute_copy(&unicodevalue)) } - unsafe extern "system" fn IsGlyphLocal(this: *mut core::ffi::c_void, glyphid: u16) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn IsGlyphLocal(this: *mut core::ffi::c_void, glyphid: u16) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::IsGlyphLocal(this, core::mem::transmute_copy(&glyphid)) } - unsafe extern "system" fn AreCharactersLocal(this: *mut core::ffi::c_void, characters: windows_core::PCWSTR, charactercount: u32, enqueueifnotlocal: super::super::Foundation::BOOL, islocal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn AreCharactersLocal(this: *mut core::ffi::c_void, characters: windows_core::PCWSTR, charactercount: u32, enqueueifnotlocal: super::super::Foundation::BOOL, islocal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace3_Impl::AreCharactersLocal(this, core::mem::transmute(&characters), core::mem::transmute_copy(&charactercount), core::mem::transmute_copy(&enqueueifnotlocal)) { Ok(ok__) => { @@ -2373,10 +1803,7 @@ impl IDWriteFontFace3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AreGlyphsLocal(this: *mut core::ffi::c_void, glyphindices: *const u16, glyphcount: u32, enqueueifnotlocal: super::super::Foundation::BOOL, islocal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontFace3_Impl, - { + unsafe extern "system" fn AreGlyphsLocal(this: *mut core::ffi::c_void, glyphindices: *const u16, glyphcount: u32, enqueueifnotlocal: super::super::Foundation::BOOL, islocal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace3_Impl::AreGlyphsLocal(this, core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&enqueueifnotlocal)) { Ok(ok__) => { @@ -2419,14 +1846,8 @@ pub trait IDWriteFontFace4_Impl: Sized + IDWriteFontFace3_Impl { impl windows_core::RuntimeName for IDWriteFontFace4 {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace4_Vtbl { - pub const fn new() -> IDWriteFontFace4_Vtbl - where - Identity: IDWriteFontFace4_Impl, - { - unsafe extern "system" fn GetGlyphImageFormats(this: *mut core::ffi::c_void, glyphid: u16, pixelsperemfirst: u32, pixelsperemlast: u32, glyphimageformats: *mut DWRITE_GLYPH_IMAGE_FORMATS) -> windows_core::HRESULT - where - Identity: IDWriteFontFace4_Impl, - { + pub const fn new() -> IDWriteFontFace4_Vtbl { + unsafe extern "system" fn GetGlyphImageFormats(this: *mut core::ffi::c_void, glyphid: u16, pixelsperemfirst: u32, pixelsperemlast: u32, glyphimageformats: *mut DWRITE_GLYPH_IMAGE_FORMATS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace4_Impl::GetGlyphImageFormats(this, core::mem::transmute_copy(&glyphid), core::mem::transmute_copy(&pixelsperemfirst), core::mem::transmute_copy(&pixelsperemlast)) { Ok(ok__) => { @@ -2436,24 +1857,15 @@ impl IDWriteFontFace4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGlyphImageFormats2(this: *mut core::ffi::c_void) -> DWRITE_GLYPH_IMAGE_FORMATS - where - Identity: IDWriteFontFace4_Impl, - { + unsafe extern "system" fn GetGlyphImageFormats2(this: *mut core::ffi::c_void) -> DWRITE_GLYPH_IMAGE_FORMATS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace4_Impl::GetGlyphImageFormats2(this) } - unsafe extern "system" fn GetGlyphImageData(this: *mut core::ffi::c_void, glyphid: u16, pixelsperem: u32, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, glyphdata: *mut DWRITE_GLYPH_IMAGE_DATA, glyphdatacontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFace4_Impl, - { + unsafe extern "system" fn GetGlyphImageData(this: *mut core::ffi::c_void, glyphid: u16, pixelsperem: u32, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, glyphdata: *mut DWRITE_GLYPH_IMAGE_DATA, glyphdatacontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace4_Impl::GetGlyphImageData(this, core::mem::transmute_copy(&glyphid), core::mem::transmute_copy(&pixelsperem), core::mem::transmute_copy(&glyphimageformat), core::mem::transmute_copy(&glyphdata), core::mem::transmute_copy(&glyphdatacontext)).into() } - unsafe extern "system" fn ReleaseGlyphImageData(this: *mut core::ffi::c_void, glyphdatacontext: *mut core::ffi::c_void) - where - Identity: IDWriteFontFace4_Impl, - { + unsafe extern "system" fn ReleaseGlyphImageData(this: *mut core::ffi::c_void, glyphdatacontext: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace4_Impl::ReleaseGlyphImageData(this, core::mem::transmute_copy(&glyphdatacontext)) } @@ -2481,35 +1893,20 @@ pub trait IDWriteFontFace5_Impl: Sized + IDWriteFontFace4_Impl { impl windows_core::RuntimeName for IDWriteFontFace5 {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace5_Vtbl { - pub const fn new() -> IDWriteFontFace5_Vtbl - where - Identity: IDWriteFontFace5_Impl, - { - unsafe extern "system" fn GetFontAxisValueCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontFace5_Impl, - { + pub const fn new() -> IDWriteFontFace5_Vtbl { + unsafe extern "system" fn GetFontAxisValueCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace5_Impl::GetFontAxisValueCount(this) } - unsafe extern "system" fn GetFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::HRESULT - where - Identity: IDWriteFontFace5_Impl, - { + unsafe extern "system" fn GetFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace5_Impl::GetFontAxisValues(this, core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)).into() } - unsafe extern "system" fn HasVariations(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFace5_Impl, - { + unsafe extern "system" fn HasVariations(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace5_Impl::HasVariations(this) } - unsafe extern "system" fn GetFontResource(this: *mut core::ffi::c_void, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFace5_Impl, - { + unsafe extern "system" fn GetFontResource(this: *mut core::ffi::c_void, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace5_Impl::GetFontResource(this) { Ok(ok__) => { @@ -2519,10 +1916,7 @@ impl IDWriteFontFace5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFace5_Impl, - { + unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace5_Impl::Equals(this, windows_core::from_raw_borrowed(&fontface)) } @@ -2548,14 +1942,8 @@ pub trait IDWriteFontFace6_Impl: Sized + IDWriteFontFace5_Impl { impl windows_core::RuntimeName for IDWriteFontFace6 {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace6_Vtbl { - pub const fn new() -> IDWriteFontFace6_Vtbl - where - Identity: IDWriteFontFace6_Impl, - { - unsafe extern "system" fn GetFamilyNames(this: *mut core::ffi::c_void, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFace6_Impl, - { + pub const fn new() -> IDWriteFontFace6_Vtbl { + unsafe extern "system" fn GetFamilyNames(this: *mut core::ffi::c_void, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace6_Impl::GetFamilyNames(this, core::mem::transmute_copy(&fontfamilymodel)) { Ok(ok__) => { @@ -2565,10 +1953,7 @@ impl IDWriteFontFace6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFaceNames(this: *mut core::ffi::c_void, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFace6_Impl, - { + unsafe extern "system" fn GetFaceNames(this: *mut core::ffi::c_void, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace6_Impl::GetFaceNames(this, core::mem::transmute_copy(&fontfamilymodel)) { Ok(ok__) => { @@ -2597,21 +1982,12 @@ pub trait IDWriteFontFace7_Impl: Sized + IDWriteFontFace6_Impl { impl windows_core::RuntimeName for IDWriteFontFace7 {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace7_Vtbl { - pub const fn new() -> IDWriteFontFace7_Vtbl - where - Identity: IDWriteFontFace7_Impl, - { - unsafe extern "system" fn GetPaintFeatureLevel(this: *mut core::ffi::c_void, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS) -> DWRITE_PAINT_FEATURE_LEVEL - where - Identity: IDWriteFontFace7_Impl, - { + pub const fn new() -> IDWriteFontFace7_Vtbl { + unsafe extern "system" fn GetPaintFeatureLevel(this: *mut core::ffi::c_void, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS) -> DWRITE_PAINT_FEATURE_LEVEL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace7_Impl::GetPaintFeatureLevel(this, core::mem::transmute_copy(&glyphimageformat)) } - unsafe extern "system" fn CreatePaintReader(this: *mut core::ffi::c_void, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, paintfeaturelevel: DWRITE_PAINT_FEATURE_LEVEL, paintreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFace7_Impl, - { + unsafe extern "system" fn CreatePaintReader(this: *mut core::ffi::c_void, glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS, paintfeaturelevel: DWRITE_PAINT_FEATURE_LEVEL, paintreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace7_Impl::CreatePaintReader(this, core::mem::transmute_copy(&glyphimageformat), core::mem::transmute_copy(&paintfeaturelevel)) { Ok(ok__) => { @@ -2631,7 +2007,7 @@ impl IDWriteFontFace7_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteFontFaceReference_Impl: Sized { +pub trait IDWriteFontFaceReference_Impl: Sized + windows_core::IUnknownImpl { fn CreateFontFace(&self) -> windows_core::Result; fn CreateFontFaceWithSimulations(&self, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS) -> windows_core::Result; fn Equals(&self, fontfacereference: Option<&IDWriteFontFaceReference>) -> super::super::Foundation::BOOL; @@ -2649,14 +2025,8 @@ pub trait IDWriteFontFaceReference_Impl: Sized { } impl windows_core::RuntimeName for IDWriteFontFaceReference {} impl IDWriteFontFaceReference_Vtbl { - pub const fn new() -> IDWriteFontFaceReference_Vtbl - where - Identity: IDWriteFontFaceReference_Impl, - { - unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFaceReference_Impl, - { + pub const fn new() -> IDWriteFontFaceReference_Vtbl { + unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFaceReference_Impl::CreateFontFace(this) { Ok(ok__) => { @@ -2666,10 +2036,7 @@ impl IDWriteFontFaceReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontFaceWithSimulations(this: *mut core::ffi::c_void, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn CreateFontFaceWithSimulations(this: *mut core::ffi::c_void, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFaceReference_Impl::CreateFontFaceWithSimulations(this, core::mem::transmute_copy(&fontfacesimulationflags)) { Ok(ok__) => { @@ -2679,31 +2046,19 @@ impl IDWriteFontFaceReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::Equals(this, windows_core::from_raw_borrowed(&fontfacereference)) } - unsafe extern "system" fn GetFontFaceIndex(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn GetFontFaceIndex(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::GetFontFaceIndex(this) } - unsafe extern "system" fn GetSimulations(this: *mut core::ffi::c_void) -> DWRITE_FONT_SIMULATIONS - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn GetSimulations(this: *mut core::ffi::c_void) -> DWRITE_FONT_SIMULATIONS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::GetSimulations(this) } - unsafe extern "system" fn GetFontFile(this: *mut core::ffi::c_void, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn GetFontFile(this: *mut core::ffi::c_void, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFaceReference_Impl::GetFontFile(this) { Ok(ok__) => { @@ -2713,24 +2068,15 @@ impl IDWriteFontFaceReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalFileSize(this: *mut core::ffi::c_void) -> u64 - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn GetLocalFileSize(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::GetLocalFileSize(this) } - unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void) -> u64 - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::GetFileSize(this) } - unsafe extern "system" fn GetFileTime(this: *mut core::ffi::c_void, lastwritetime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn GetFileTime(this: *mut core::ffi::c_void, lastwritetime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFaceReference_Impl::GetFileTime(this) { Ok(ok__) => { @@ -2740,38 +2086,23 @@ impl IDWriteFontFaceReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocality(this: *mut core::ffi::c_void) -> DWRITE_LOCALITY - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn GetLocality(this: *mut core::ffi::c_void) -> DWRITE_LOCALITY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::GetLocality(this) } - unsafe extern "system" fn EnqueueFontDownloadRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn EnqueueFontDownloadRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::EnqueueFontDownloadRequest(this).into() } - unsafe extern "system" fn EnqueueCharacterDownloadRequest(this: *mut core::ffi::c_void, characters: windows_core::PCWSTR, charactercount: u32) -> windows_core::HRESULT - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn EnqueueCharacterDownloadRequest(this: *mut core::ffi::c_void, characters: windows_core::PCWSTR, charactercount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::EnqueueCharacterDownloadRequest(this, core::mem::transmute(&characters), core::mem::transmute_copy(&charactercount)).into() } - unsafe extern "system" fn EnqueueGlyphDownloadRequest(this: *mut core::ffi::c_void, glyphindices: *const u16, glyphcount: u32) -> windows_core::HRESULT - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn EnqueueGlyphDownloadRequest(this: *mut core::ffi::c_void, glyphindices: *const u16, glyphcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::EnqueueGlyphDownloadRequest(this, core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphcount)).into() } - unsafe extern "system" fn EnqueueFileFragmentDownloadRequest(this: *mut core::ffi::c_void, fileoffset: u64, fragmentsize: u64) -> windows_core::HRESULT - where - Identity: IDWriteFontFaceReference_Impl, - { + unsafe extern "system" fn EnqueueFileFragmentDownloadRequest(this: *mut core::ffi::c_void, fileoffset: u64, fragmentsize: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::EnqueueFileFragmentDownloadRequest(this, core::mem::transmute_copy(&fileoffset), core::mem::transmute_copy(&fragmentsize)).into() } @@ -2804,14 +2135,8 @@ pub trait IDWriteFontFaceReference1_Impl: Sized + IDWriteFontFaceReference_Impl } impl windows_core::RuntimeName for IDWriteFontFaceReference1 {} impl IDWriteFontFaceReference1_Vtbl { - pub const fn new() -> IDWriteFontFaceReference1_Vtbl - where - Identity: IDWriteFontFaceReference1_Impl, - { - unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFaceReference1_Impl, - { + pub const fn new() -> IDWriteFontFaceReference1_Vtbl { + unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFaceReference1_Impl::CreateFontFace(this) { Ok(ok__) => { @@ -2821,17 +2146,11 @@ impl IDWriteFontFaceReference1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontAxisValueCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontFaceReference1_Impl, - { + unsafe extern "system" fn GetFontAxisValueCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference1_Impl::GetFontAxisValueCount(this) } - unsafe extern "system" fn GetFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::HRESULT - where - Identity: IDWriteFontFaceReference1_Impl, - { + unsafe extern "system" fn GetFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference1_Impl::GetFontAxisValues(this, core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)).into() } @@ -2846,19 +2165,13 @@ impl IDWriteFontFaceReference1_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDWriteFontFallback_Impl: Sized { +pub trait IDWriteFontFallback_Impl: Sized + windows_core::IUnknownImpl { fn MapCharacters(&self, analysissource: Option<&IDWriteTextAnalysisSource>, textposition: u32, textlength: u32, basefontcollection: Option<&IDWriteFontCollection>, basefamilyname: &windows_core::PCWSTR, baseweight: DWRITE_FONT_WEIGHT, basestyle: DWRITE_FONT_STYLE, basestretch: DWRITE_FONT_STRETCH, mappedlength: *mut u32, mappedfont: *mut Option, scale: *mut f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDWriteFontFallback {} impl IDWriteFontFallback_Vtbl { - pub const fn new() -> IDWriteFontFallback_Vtbl - where - Identity: IDWriteFontFallback_Impl, - { - unsafe extern "system" fn MapCharacters(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, basefontcollection: *mut core::ffi::c_void, basefamilyname: windows_core::PCWSTR, baseweight: DWRITE_FONT_WEIGHT, basestyle: DWRITE_FONT_STYLE, basestretch: DWRITE_FONT_STRETCH, mappedlength: *mut u32, mappedfont: *mut *mut core::ffi::c_void, scale: *mut f32) -> windows_core::HRESULT - where - Identity: IDWriteFontFallback_Impl, - { + pub const fn new() -> IDWriteFontFallback_Vtbl { + unsafe extern "system" fn MapCharacters(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, basefontcollection: *mut core::ffi::c_void, basefamilyname: windows_core::PCWSTR, baseweight: DWRITE_FONT_WEIGHT, basestyle: DWRITE_FONT_STYLE, basestretch: DWRITE_FONT_STRETCH, mappedlength: *mut u32, mappedfont: *mut *mut core::ffi::c_void, scale: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFallback_Impl::MapCharacters(this, windows_core::from_raw_borrowed(&analysissource), core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), windows_core::from_raw_borrowed(&basefontcollection), core::mem::transmute(&basefamilyname), core::mem::transmute_copy(&baseweight), core::mem::transmute_copy(&basestyle), core::mem::transmute_copy(&basestretch), core::mem::transmute_copy(&mappedlength), core::mem::transmute_copy(&mappedfont), core::mem::transmute_copy(&scale)).into() } @@ -2873,14 +2186,8 @@ pub trait IDWriteFontFallback1_Impl: Sized + IDWriteFontFallback_Impl { } impl windows_core::RuntimeName for IDWriteFontFallback1 {} impl IDWriteFontFallback1_Vtbl { - pub const fn new() -> IDWriteFontFallback1_Vtbl - where - Identity: IDWriteFontFallback1_Impl, - { - unsafe extern "system" fn MapCharacters(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, basefontcollection: *mut core::ffi::c_void, basefamilyname: windows_core::PCWSTR, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, mappedlength: *mut u32, scale: *mut f32, mappedfontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFallback1_Impl, - { + pub const fn new() -> IDWriteFontFallback1_Vtbl { + unsafe extern "system" fn MapCharacters(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, basefontcollection: *mut core::ffi::c_void, basefamilyname: windows_core::PCWSTR, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, mappedlength: *mut u32, scale: *mut f32, mappedfontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFallback1_Impl::MapCharacters(this, windows_core::from_raw_borrowed(&analysissource), core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), windows_core::from_raw_borrowed(&basefontcollection), core::mem::transmute(&basefamilyname), core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount), core::mem::transmute_copy(&mappedlength), core::mem::transmute_copy(&scale), core::mem::transmute_copy(&mappedfontface)).into() } @@ -2890,35 +2197,23 @@ impl IDWriteFontFallback1_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDWriteFontFallbackBuilder_Impl: Sized { +pub trait IDWriteFontFallbackBuilder_Impl: Sized + windows_core::IUnknownImpl { fn AddMapping(&self, ranges: *const DWRITE_UNICODE_RANGE, rangescount: u32, targetfamilynames: *const *const u16, targetfamilynamescount: u32, fontcollection: Option<&IDWriteFontCollection>, localename: &windows_core::PCWSTR, basefamilyname: &windows_core::PCWSTR, scale: f32) -> windows_core::Result<()>; fn AddMappings(&self, fontfallback: Option<&IDWriteFontFallback>) -> windows_core::Result<()>; fn CreateFontFallback(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDWriteFontFallbackBuilder {} impl IDWriteFontFallbackBuilder_Vtbl { - pub const fn new() -> IDWriteFontFallbackBuilder_Vtbl - where - Identity: IDWriteFontFallbackBuilder_Impl, - { - unsafe extern "system" fn AddMapping(this: *mut core::ffi::c_void, ranges: *const DWRITE_UNICODE_RANGE, rangescount: u32, targetfamilynames: *const *const u16, targetfamilynamescount: u32, fontcollection: *mut core::ffi::c_void, localename: windows_core::PCWSTR, basefamilyname: windows_core::PCWSTR, scale: f32) -> windows_core::HRESULT - where - Identity: IDWriteFontFallbackBuilder_Impl, - { + pub const fn new() -> IDWriteFontFallbackBuilder_Vtbl { + unsafe extern "system" fn AddMapping(this: *mut core::ffi::c_void, ranges: *const DWRITE_UNICODE_RANGE, rangescount: u32, targetfamilynames: *const *const u16, targetfamilynamescount: u32, fontcollection: *mut core::ffi::c_void, localename: windows_core::PCWSTR, basefamilyname: windows_core::PCWSTR, scale: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFallbackBuilder_Impl::AddMapping(this, core::mem::transmute_copy(&ranges), core::mem::transmute_copy(&rangescount), core::mem::transmute_copy(&targetfamilynames), core::mem::transmute_copy(&targetfamilynamescount), windows_core::from_raw_borrowed(&fontcollection), core::mem::transmute(&localename), core::mem::transmute(&basefamilyname), core::mem::transmute_copy(&scale)).into() } - unsafe extern "system" fn AddMappings(this: *mut core::ffi::c_void, fontfallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFallbackBuilder_Impl, - { + unsafe extern "system" fn AddMappings(this: *mut core::ffi::c_void, fontfallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFallbackBuilder_Impl::AddMappings(this, windows_core::from_raw_borrowed(&fontfallback)).into() } - unsafe extern "system" fn CreateFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFallbackBuilder_Impl, - { + unsafe extern "system" fn CreateFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFallbackBuilder_Impl::CreateFontFallback(this) { Ok(ok__) => { @@ -2946,14 +2241,8 @@ pub trait IDWriteFontFamily_Impl: Sized + IDWriteFontList_Impl { } impl windows_core::RuntimeName for IDWriteFontFamily {} impl IDWriteFontFamily_Vtbl { - pub const fn new() -> IDWriteFontFamily_Vtbl - where - Identity: IDWriteFontFamily_Impl, - { - unsafe extern "system" fn GetFamilyNames(this: *mut core::ffi::c_void, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFamily_Impl, - { + pub const fn new() -> IDWriteFontFamily_Vtbl { + unsafe extern "system" fn GetFamilyNames(this: *mut core::ffi::c_void, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFamily_Impl::GetFamilyNames(this) { Ok(ok__) => { @@ -2963,10 +2252,7 @@ impl IDWriteFontFamily_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFirstMatchingFont(this: *mut core::ffi::c_void, weight: DWRITE_FONT_WEIGHT, stretch: DWRITE_FONT_STRETCH, style: DWRITE_FONT_STYLE, matchingfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFamily_Impl, - { + unsafe extern "system" fn GetFirstMatchingFont(this: *mut core::ffi::c_void, weight: DWRITE_FONT_WEIGHT, stretch: DWRITE_FONT_STRETCH, style: DWRITE_FONT_STYLE, matchingfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFamily_Impl::GetFirstMatchingFont(this, core::mem::transmute_copy(&weight), core::mem::transmute_copy(&stretch), core::mem::transmute_copy(&style)) { Ok(ok__) => { @@ -2976,10 +2262,7 @@ impl IDWriteFontFamily_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, weight: DWRITE_FONT_WEIGHT, stretch: DWRITE_FONT_STRETCH, style: DWRITE_FONT_STYLE, matchingfonts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFamily_Impl, - { + unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, weight: DWRITE_FONT_WEIGHT, stretch: DWRITE_FONT_STRETCH, style: DWRITE_FONT_STYLE, matchingfonts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFamily_Impl::GetMatchingFonts(this, core::mem::transmute_copy(&weight), core::mem::transmute_copy(&stretch), core::mem::transmute_copy(&style)) { Ok(ok__) => { @@ -3007,21 +2290,12 @@ pub trait IDWriteFontFamily1_Impl: Sized + IDWriteFontFamily_Impl { } impl windows_core::RuntimeName for IDWriteFontFamily1 {} impl IDWriteFontFamily1_Vtbl { - pub const fn new() -> IDWriteFontFamily1_Vtbl - where - Identity: IDWriteFontFamily1_Impl, - { - unsafe extern "system" fn GetFontLocality(this: *mut core::ffi::c_void, listindex: u32) -> DWRITE_LOCALITY - where - Identity: IDWriteFontFamily1_Impl, - { + pub const fn new() -> IDWriteFontFamily1_Vtbl { + unsafe extern "system" fn GetFontLocality(this: *mut core::ffi::c_void, listindex: u32) -> DWRITE_LOCALITY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFamily1_Impl::GetFontLocality(this, core::mem::transmute_copy(&listindex)) } - unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void, listindex: u32, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFamily1_Impl, - { + unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void, listindex: u32, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFamily1_Impl::GetFont(this, core::mem::transmute_copy(&listindex)) { Ok(ok__) => { @@ -3031,10 +2305,7 @@ impl IDWriteFontFamily1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, listindex: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFamily1_Impl, - { + unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, listindex: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFamily1_Impl::GetFontFaceReference(this, core::mem::transmute_copy(&listindex)) { Ok(ok__) => { @@ -3061,14 +2332,8 @@ pub trait IDWriteFontFamily2_Impl: Sized + IDWriteFontFamily1_Impl { } impl windows_core::RuntimeName for IDWriteFontFamily2 {} impl IDWriteFontFamily2_Vtbl { - pub const fn new() -> IDWriteFontFamily2_Vtbl - where - Identity: IDWriteFontFamily2_Impl, - { - unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, matchingfonts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFamily2_Impl, - { + pub const fn new() -> IDWriteFontFamily2_Vtbl { + unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, matchingfonts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFamily2_Impl::GetMatchingFonts(this, core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)) { Ok(ok__) => { @@ -3078,10 +2343,7 @@ impl IDWriteFontFamily2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFamily2_Impl, - { + unsafe extern "system" fn GetFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFamily2_Impl::GetFontSet(this) { Ok(ok__) => { @@ -3101,28 +2363,19 @@ impl IDWriteFontFamily2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteFontFile_Impl: Sized { +pub trait IDWriteFontFile_Impl: Sized + windows_core::IUnknownImpl { fn GetReferenceKey(&self, fontfilereferencekey: *mut *mut core::ffi::c_void, fontfilereferencekeysize: *mut u32) -> windows_core::Result<()>; fn GetLoader(&self) -> windows_core::Result; fn Analyze(&self, issupportedfonttype: *mut super::super::Foundation::BOOL, fontfiletype: *mut DWRITE_FONT_FILE_TYPE, fontfacetype: *mut DWRITE_FONT_FACE_TYPE, numberoffaces: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDWriteFontFile {} impl IDWriteFontFile_Vtbl { - pub const fn new() -> IDWriteFontFile_Vtbl - where - Identity: IDWriteFontFile_Impl, - { - unsafe extern "system" fn GetReferenceKey(this: *mut core::ffi::c_void, fontfilereferencekey: *mut *mut core::ffi::c_void, fontfilereferencekeysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteFontFile_Impl, - { + pub const fn new() -> IDWriteFontFile_Vtbl { + unsafe extern "system" fn GetReferenceKey(this: *mut core::ffi::c_void, fontfilereferencekey: *mut *mut core::ffi::c_void, fontfilereferencekeysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFile_Impl::GetReferenceKey(this, core::mem::transmute_copy(&fontfilereferencekey), core::mem::transmute_copy(&fontfilereferencekeysize)).into() } - unsafe extern "system" fn GetLoader(this: *mut core::ffi::c_void, fontfileloader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFile_Impl, - { + unsafe extern "system" fn GetLoader(this: *mut core::ffi::c_void, fontfileloader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFile_Impl::GetLoader(this) { Ok(ok__) => { @@ -3132,10 +2385,7 @@ impl IDWriteFontFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Analyze(this: *mut core::ffi::c_void, issupportedfonttype: *mut super::super::Foundation::BOOL, fontfiletype: *mut DWRITE_FONT_FILE_TYPE, fontfacetype: *mut DWRITE_FONT_FACE_TYPE, numberoffaces: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteFontFile_Impl, - { + unsafe extern "system" fn Analyze(this: *mut core::ffi::c_void, issupportedfonttype: *mut super::super::Foundation::BOOL, fontfiletype: *mut DWRITE_FONT_FILE_TYPE, fontfacetype: *mut DWRITE_FONT_FACE_TYPE, numberoffaces: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFile_Impl::Analyze(this, core::mem::transmute_copy(&issupportedfonttype), core::mem::transmute_copy(&fontfiletype), core::mem::transmute_copy(&fontfacetype), core::mem::transmute_copy(&numberoffaces)).into() } @@ -3150,20 +2400,14 @@ impl IDWriteFontFile_Vtbl { iid == &::IID } } -pub trait IDWriteFontFileEnumerator_Impl: Sized { +pub trait IDWriteFontFileEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn GetCurrentFontFile(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDWriteFontFileEnumerator {} impl IDWriteFontFileEnumerator_Vtbl { - pub const fn new() -> IDWriteFontFileEnumerator_Vtbl - where - Identity: IDWriteFontFileEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hascurrentfile: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontFileEnumerator_Impl, - { + pub const fn new() -> IDWriteFontFileEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hascurrentfile: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFileEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -3173,10 +2417,7 @@ impl IDWriteFontFileEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentFontFile(this: *mut core::ffi::c_void, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFileEnumerator_Impl, - { + unsafe extern "system" fn GetCurrentFontFile(this: *mut core::ffi::c_void, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFileEnumerator_Impl::GetCurrentFontFile(this) { Ok(ok__) => { @@ -3196,19 +2437,13 @@ impl IDWriteFontFileEnumerator_Vtbl { iid == &::IID } } -pub trait IDWriteFontFileLoader_Impl: Sized { +pub trait IDWriteFontFileLoader_Impl: Sized + windows_core::IUnknownImpl { fn CreateStreamFromKey(&self, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IDWriteFontFileLoader {} impl IDWriteFontFileLoader_Vtbl { - pub const fn new() -> IDWriteFontFileLoader_Vtbl - where - Identity: IDWriteFontFileLoader_Impl, - { - unsafe extern "system" fn CreateStreamFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfilestream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFileLoader_Impl, - { + pub const fn new() -> IDWriteFontFileLoader_Vtbl { + unsafe extern "system" fn CreateStreamFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfilestream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFileLoader_Impl::CreateStreamFromKey(this, core::mem::transmute_copy(&fontfilereferencekey), core::mem::transmute_copy(&fontfilereferencekeysize)) { Ok(ok__) => { @@ -3224,7 +2459,7 @@ impl IDWriteFontFileLoader_Vtbl { iid == &::IID } } -pub trait IDWriteFontFileStream_Impl: Sized { +pub trait IDWriteFontFileStream_Impl: Sized + windows_core::IUnknownImpl { fn ReadFileFragment(&self, fragmentstart: *mut *mut core::ffi::c_void, fileoffset: u64, fragmentsize: u64, fragmentcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn ReleaseFileFragment(&self, fragmentcontext: *mut core::ffi::c_void); fn GetFileSize(&self) -> windows_core::Result; @@ -3232,28 +2467,16 @@ pub trait IDWriteFontFileStream_Impl: Sized { } impl windows_core::RuntimeName for IDWriteFontFileStream {} impl IDWriteFontFileStream_Vtbl { - pub const fn new() -> IDWriteFontFileStream_Vtbl - where - Identity: IDWriteFontFileStream_Impl, - { - unsafe extern "system" fn ReadFileFragment(this: *mut core::ffi::c_void, fragmentstart: *mut *mut core::ffi::c_void, fileoffset: u64, fragmentsize: u64, fragmentcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontFileStream_Impl, - { + pub const fn new() -> IDWriteFontFileStream_Vtbl { + unsafe extern "system" fn ReadFileFragment(this: *mut core::ffi::c_void, fragmentstart: *mut *mut core::ffi::c_void, fileoffset: u64, fragmentsize: u64, fragmentcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFileStream_Impl::ReadFileFragment(this, core::mem::transmute_copy(&fragmentstart), core::mem::transmute_copy(&fileoffset), core::mem::transmute_copy(&fragmentsize), core::mem::transmute_copy(&fragmentcontext)).into() } - unsafe extern "system" fn ReleaseFileFragment(this: *mut core::ffi::c_void, fragmentcontext: *mut core::ffi::c_void) - where - Identity: IDWriteFontFileStream_Impl, - { + unsafe extern "system" fn ReleaseFileFragment(this: *mut core::ffi::c_void, fragmentcontext: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFileStream_Impl::ReleaseFileFragment(this, core::mem::transmute_copy(&fragmentcontext)) } - unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, filesize: *mut u64) -> windows_core::HRESULT - where - Identity: IDWriteFontFileStream_Impl, - { + unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, filesize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFileStream_Impl::GetFileSize(this) { Ok(ok__) => { @@ -3263,10 +2486,7 @@ impl IDWriteFontFileStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastWriteTime(this: *mut core::ffi::c_void, lastwritetime: *mut u64) -> windows_core::HRESULT - where - Identity: IDWriteFontFileStream_Impl, - { + unsafe extern "system" fn GetLastWriteTime(this: *mut core::ffi::c_void, lastwritetime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFileStream_Impl::GetLastWriteTime(this) { Ok(ok__) => { @@ -3288,21 +2508,15 @@ impl IDWriteFontFileStream_Vtbl { iid == &::IID } } -pub trait IDWriteFontList_Impl: Sized { +pub trait IDWriteFontList_Impl: Sized + windows_core::IUnknownImpl { fn GetFontCollection(&self) -> windows_core::Result; fn GetFontCount(&self) -> u32; fn GetFont(&self, index: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IDWriteFontList {} impl IDWriteFontList_Vtbl { - pub const fn new() -> IDWriteFontList_Vtbl - where - Identity: IDWriteFontList_Impl, - { - unsafe extern "system" fn GetFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontList_Impl, - { + pub const fn new() -> IDWriteFontList_Vtbl { + unsafe extern "system" fn GetFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontList_Impl::GetFontCollection(this) { Ok(ok__) => { @@ -3312,17 +2526,11 @@ impl IDWriteFontList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontList_Impl, - { + unsafe extern "system" fn GetFontCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontList_Impl::GetFontCount(this) } - unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void, index: u32, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontList_Impl, - { + unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void, index: u32, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontList_Impl::GetFont(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3350,21 +2558,12 @@ pub trait IDWriteFontList1_Impl: Sized + IDWriteFontList_Impl { } impl windows_core::RuntimeName for IDWriteFontList1 {} impl IDWriteFontList1_Vtbl { - pub const fn new() -> IDWriteFontList1_Vtbl - where - Identity: IDWriteFontList1_Impl, - { - unsafe extern "system" fn GetFontLocality(this: *mut core::ffi::c_void, listindex: u32) -> DWRITE_LOCALITY - where - Identity: IDWriteFontList1_Impl, - { + pub const fn new() -> IDWriteFontList1_Vtbl { + unsafe extern "system" fn GetFontLocality(this: *mut core::ffi::c_void, listindex: u32) -> DWRITE_LOCALITY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontList1_Impl::GetFontLocality(this, core::mem::transmute_copy(&listindex)) } - unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void, listindex: u32, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontList1_Impl, - { + unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void, listindex: u32, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontList1_Impl::GetFont(this, core::mem::transmute_copy(&listindex)) { Ok(ok__) => { @@ -3374,10 +2573,7 @@ impl IDWriteFontList1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, listindex: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontList1_Impl, - { + unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, listindex: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontList1_Impl::GetFontFaceReference(this, core::mem::transmute_copy(&listindex)) { Ok(ok__) => { @@ -3403,14 +2599,8 @@ pub trait IDWriteFontList2_Impl: Sized + IDWriteFontList1_Impl { } impl windows_core::RuntimeName for IDWriteFontList2 {} impl IDWriteFontList2_Vtbl { - pub const fn new() -> IDWriteFontList2_Vtbl - where - Identity: IDWriteFontList2_Impl, - { - unsafe extern "system" fn GetFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontList2_Impl, - { + pub const fn new() -> IDWriteFontList2_Vtbl { + unsafe extern "system" fn GetFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontList2_Impl::GetFontSet(this) { Ok(ok__) => { @@ -3426,7 +2616,7 @@ impl IDWriteFontList2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteFontResource_Impl: Sized { +pub trait IDWriteFontResource_Impl: Sized + windows_core::IUnknownImpl { fn GetFontFile(&self) -> windows_core::Result; fn GetFontFaceIndex(&self) -> u32; fn GetFontAxisCount(&self) -> u32; @@ -3442,14 +2632,8 @@ pub trait IDWriteFontResource_Impl: Sized { } impl windows_core::RuntimeName for IDWriteFontResource {} impl IDWriteFontResource_Vtbl { - pub const fn new() -> IDWriteFontResource_Vtbl - where - Identity: IDWriteFontResource_Impl, - { - unsafe extern "system" fn GetFontFile(this: *mut core::ffi::c_void, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontResource_Impl, - { + pub const fn new() -> IDWriteFontResource_Vtbl { + unsafe extern "system" fn GetFontFile(this: *mut core::ffi::c_void, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontResource_Impl::GetFontFile(this) { Ok(ok__) => { @@ -3459,45 +2643,27 @@ impl IDWriteFontResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontFaceIndex(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn GetFontFaceIndex(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontResource_Impl::GetFontFaceIndex(this) } - unsafe extern "system" fn GetFontAxisCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn GetFontAxisCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontResource_Impl::GetFontAxisCount(this) } - unsafe extern "system" fn GetDefaultFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::HRESULT - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn GetDefaultFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontResource_Impl::GetDefaultFontAxisValues(this, core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)).into() } - unsafe extern "system" fn GetFontAxisRanges(this: *mut core::ffi::c_void, fontaxisranges: *mut DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32) -> windows_core::HRESULT - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn GetFontAxisRanges(this: *mut core::ffi::c_void, fontaxisranges: *mut DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontResource_Impl::GetFontAxisRanges(this, core::mem::transmute_copy(&fontaxisranges), core::mem::transmute_copy(&fontaxisrangecount)).into() } - unsafe extern "system" fn GetFontAxisAttributes(this: *mut core::ffi::c_void, axisindex: u32) -> DWRITE_FONT_AXIS_ATTRIBUTES - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn GetFontAxisAttributes(this: *mut core::ffi::c_void, axisindex: u32) -> DWRITE_FONT_AXIS_ATTRIBUTES { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontResource_Impl::GetFontAxisAttributes(this, core::mem::transmute_copy(&axisindex)) } - unsafe extern "system" fn GetAxisNames(this: *mut core::ffi::c_void, axisindex: u32, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn GetAxisNames(this: *mut core::ffi::c_void, axisindex: u32, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontResource_Impl::GetAxisNames(this, core::mem::transmute_copy(&axisindex)) { Ok(ok__) => { @@ -3507,31 +2673,19 @@ impl IDWriteFontResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAxisValueNameCount(this: *mut core::ffi::c_void, axisindex: u32) -> u32 - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn GetAxisValueNameCount(this: *mut core::ffi::c_void, axisindex: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontResource_Impl::GetAxisValueNameCount(this, core::mem::transmute_copy(&axisindex)) } - unsafe extern "system" fn GetAxisValueNames(this: *mut core::ffi::c_void, axisindex: u32, axisvalueindex: u32, fontaxisrange: *mut DWRITE_FONT_AXIS_RANGE, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn GetAxisValueNames(this: *mut core::ffi::c_void, axisindex: u32, axisvalueindex: u32, fontaxisrange: *mut DWRITE_FONT_AXIS_RANGE, names: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontResource_Impl::GetAxisValueNames(this, core::mem::transmute_copy(&axisindex), core::mem::transmute_copy(&axisvalueindex), core::mem::transmute_copy(&fontaxisrange), core::mem::transmute_copy(&names)).into() } - unsafe extern "system" fn HasVariations(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn HasVariations(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontResource_Impl::HasVariations(this) } - unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontResource_Impl::CreateFontFace(this, core::mem::transmute_copy(&fontsimulations), core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)) { Ok(ok__) => { @@ -3541,10 +2695,7 @@ impl IDWriteFontResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontFaceReference(this: *mut core::ffi::c_void, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontResource_Impl, - { + unsafe extern "system" fn CreateFontFaceReference(this: *mut core::ffi::c_void, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontResource_Impl::CreateFontFaceReference(this, core::mem::transmute_copy(&fontsimulations), core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)) { Ok(ok__) => { @@ -3574,7 +2725,7 @@ impl IDWriteFontResource_Vtbl { iid == &::IID } } -pub trait IDWriteFontSet_Impl: Sized { +pub trait IDWriteFontSet_Impl: Sized + windows_core::IUnknownImpl { fn GetFontCount(&self) -> u32; fn GetFontFaceReference(&self, listindex: u32) -> windows_core::Result; fn FindFontFaceReference(&self, fontfacereference: Option<&IDWriteFontFaceReference>, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -3588,21 +2739,12 @@ pub trait IDWriteFontSet_Impl: Sized { } impl windows_core::RuntimeName for IDWriteFontSet {} impl IDWriteFontSet_Vtbl { - pub const fn new() -> IDWriteFontSet_Vtbl - where - Identity: IDWriteFontSet_Impl, - { - unsafe extern "system" fn GetFontCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteFontSet_Impl, - { + pub const fn new() -> IDWriteFontSet_Vtbl { + unsafe extern "system" fn GetFontCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet_Impl::GetFontCount(this) } - unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, listindex: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet_Impl, - { + unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, listindex: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet_Impl::GetFontFaceReference(this, core::mem::transmute_copy(&listindex)) { Ok(ok__) => { @@ -3612,24 +2754,15 @@ impl IDWriteFontSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFontFaceReference(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontSet_Impl, - { + unsafe extern "system" fn FindFontFaceReference(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet_Impl::FindFontFaceReference(this, windows_core::from_raw_borrowed(&fontfacereference), core::mem::transmute_copy(&listindex), core::mem::transmute_copy(&exists)).into() } - unsafe extern "system" fn FindFontFace(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteFontSet_Impl, - { + unsafe extern "system" fn FindFontFace(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet_Impl::FindFontFace(this, windows_core::from_raw_borrowed(&fontface), core::mem::transmute_copy(&listindex), core::mem::transmute_copy(&exists)).into() } - unsafe extern "system" fn GetPropertyValues(this: *mut core::ffi::c_void, propertyid: DWRITE_FONT_PROPERTY_ID, values: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet_Impl, - { + unsafe extern "system" fn GetPropertyValues(this: *mut core::ffi::c_void, propertyid: DWRITE_FONT_PROPERTY_ID, values: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet_Impl::GetPropertyValues(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -3639,10 +2772,7 @@ impl IDWriteFontSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyValues2(this: *mut core::ffi::c_void, propertyid: DWRITE_FONT_PROPERTY_ID, preferredlocalenames: windows_core::PCWSTR, values: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet_Impl, - { + unsafe extern "system" fn GetPropertyValues2(this: *mut core::ffi::c_void, propertyid: DWRITE_FONT_PROPERTY_ID, preferredlocalenames: windows_core::PCWSTR, values: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet_Impl::GetPropertyValues2(this, core::mem::transmute_copy(&propertyid), core::mem::transmute(&preferredlocalenames)) { Ok(ok__) => { @@ -3652,17 +2782,11 @@ impl IDWriteFontSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyValues3(this: *mut core::ffi::c_void, listindex: u32, propertyid: DWRITE_FONT_PROPERTY_ID, exists: *mut super::super::Foundation::BOOL, values: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet_Impl, - { + unsafe extern "system" fn GetPropertyValues3(this: *mut core::ffi::c_void, listindex: u32, propertyid: DWRITE_FONT_PROPERTY_ID, exists: *mut super::super::Foundation::BOOL, values: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet_Impl::GetPropertyValues3(this, core::mem::transmute_copy(&listindex), core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&exists), core::mem::transmute_copy(&values)).into() } - unsafe extern "system" fn GetPropertyOccurrenceCount(this: *mut core::ffi::c_void, property: *const DWRITE_FONT_PROPERTY, propertyoccurrencecount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteFontSet_Impl, - { + unsafe extern "system" fn GetPropertyOccurrenceCount(this: *mut core::ffi::c_void, property: *const DWRITE_FONT_PROPERTY, propertyoccurrencecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet_Impl::GetPropertyOccurrenceCount(this, core::mem::transmute_copy(&property)) { Ok(ok__) => { @@ -3672,10 +2796,7 @@ impl IDWriteFontSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, familyname: windows_core::PCWSTR, fontweight: DWRITE_FONT_WEIGHT, fontstretch: DWRITE_FONT_STRETCH, fontstyle: DWRITE_FONT_STYLE, filteredset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet_Impl, - { + unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, familyname: windows_core::PCWSTR, fontweight: DWRITE_FONT_WEIGHT, fontstretch: DWRITE_FONT_STRETCH, fontstyle: DWRITE_FONT_STYLE, filteredset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet_Impl::GetMatchingFonts(this, core::mem::transmute(&familyname), core::mem::transmute_copy(&fontweight), core::mem::transmute_copy(&fontstretch), core::mem::transmute_copy(&fontstyle)) { Ok(ok__) => { @@ -3685,10 +2806,7 @@ impl IDWriteFontSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMatchingFonts2(this: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, filteredset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet_Impl, - { + unsafe extern "system" fn GetMatchingFonts2(this: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, filteredset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet_Impl::GetMatchingFonts2(this, core::mem::transmute_copy(&properties), core::mem::transmute_copy(&propertycount)) { Ok(ok__) => { @@ -3733,14 +2851,8 @@ pub trait IDWriteFontSet1_Impl: Sized + IDWriteFontSet_Impl { } impl windows_core::RuntimeName for IDWriteFontSet1 {} impl IDWriteFontSet1_Vtbl { - pub const fn new() -> IDWriteFontSet1_Vtbl - where - Identity: IDWriteFontSet1_Impl, - { - unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, fontproperty: *const DWRITE_FONT_PROPERTY, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, matchingfonts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + pub const fn new() -> IDWriteFontSet1_Vtbl { + unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, fontproperty: *const DWRITE_FONT_PROPERTY, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, matchingfonts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet1_Impl::GetMatchingFonts(this, core::mem::transmute_copy(&fontproperty), core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)) { Ok(ok__) => { @@ -3750,10 +2862,7 @@ impl IDWriteFontSet1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFirstFontResources(this: *mut core::ffi::c_void, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn GetFirstFontResources(this: *mut core::ffi::c_void, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet1_Impl::GetFirstFontResources(this) { Ok(ok__) => { @@ -3763,10 +2872,7 @@ impl IDWriteFontSet1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilteredFonts(this: *mut core::ffi::c_void, indices: *const u32, indexcount: u32, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn GetFilteredFonts(this: *mut core::ffi::c_void, indices: *const u32, indexcount: u32, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet1_Impl::GetFilteredFonts(this, core::mem::transmute_copy(&indices), core::mem::transmute_copy(&indexcount)) { Ok(ok__) => { @@ -3776,10 +2882,7 @@ impl IDWriteFontSet1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilteredFonts2(this: *mut core::ffi::c_void, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: super::super::Foundation::BOOL, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn GetFilteredFonts2(this: *mut core::ffi::c_void, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: super::super::Foundation::BOOL, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet1_Impl::GetFilteredFonts2(this, core::mem::transmute_copy(&fontaxisranges), core::mem::transmute_copy(&fontaxisrangecount), core::mem::transmute_copy(&selectanyrange)) { Ok(ok__) => { @@ -3789,10 +2892,7 @@ impl IDWriteFontSet1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilteredFonts3(this: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: super::super::Foundation::BOOL, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn GetFilteredFonts3(this: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: super::super::Foundation::BOOL, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet1_Impl::GetFilteredFonts3(this, core::mem::transmute_copy(&properties), core::mem::transmute_copy(&propertycount), core::mem::transmute_copy(&selectanyproperty)) { Ok(ok__) => { @@ -3802,38 +2902,23 @@ impl IDWriteFontSet1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilteredFontIndices(this: *mut core::ffi::c_void, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: super::super::Foundation::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn GetFilteredFontIndices(this: *mut core::ffi::c_void, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: super::super::Foundation::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet1_Impl::GetFilteredFontIndices(this, core::mem::transmute_copy(&fontaxisranges), core::mem::transmute_copy(&fontaxisrangecount), core::mem::transmute_copy(&selectanyrange), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&maxindexcount), core::mem::transmute_copy(&actualindexcount)).into() } - unsafe extern "system" fn GetFilteredFontIndices2(this: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: super::super::Foundation::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn GetFilteredFontIndices2(this: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: super::super::Foundation::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet1_Impl::GetFilteredFontIndices2(this, core::mem::transmute_copy(&properties), core::mem::transmute_copy(&propertycount), core::mem::transmute_copy(&selectanyproperty), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&maxindexcount), core::mem::transmute_copy(&actualindexcount)).into() } - unsafe extern "system" fn GetFontAxisRanges(this: *mut core::ffi::c_void, listindex: u32, fontaxisranges: *mut DWRITE_FONT_AXIS_RANGE, maxfontaxisrangecount: u32, actualfontaxisrangecount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn GetFontAxisRanges(this: *mut core::ffi::c_void, listindex: u32, fontaxisranges: *mut DWRITE_FONT_AXIS_RANGE, maxfontaxisrangecount: u32, actualfontaxisrangecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet1_Impl::GetFontAxisRanges(this, core::mem::transmute_copy(&listindex), core::mem::transmute_copy(&fontaxisranges), core::mem::transmute_copy(&maxfontaxisrangecount), core::mem::transmute_copy(&actualfontaxisrangecount)).into() } - unsafe extern "system" fn GetFontAxisRanges2(this: *mut core::ffi::c_void, fontaxisranges: *mut DWRITE_FONT_AXIS_RANGE, maxfontaxisrangecount: u32, actualfontaxisrangecount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn GetFontAxisRanges2(this: *mut core::ffi::c_void, fontaxisranges: *mut DWRITE_FONT_AXIS_RANGE, maxfontaxisrangecount: u32, actualfontaxisrangecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet1_Impl::GetFontAxisRanges2(this, core::mem::transmute_copy(&fontaxisranges), core::mem::transmute_copy(&maxfontaxisrangecount), core::mem::transmute_copy(&actualfontaxisrangecount)).into() } - unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, listindex: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn GetFontFaceReference(this: *mut core::ffi::c_void, listindex: u32, fontfacereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet1_Impl::GetFontFaceReference(this, core::mem::transmute_copy(&listindex)) { Ok(ok__) => { @@ -3843,10 +2928,7 @@ impl IDWriteFontSet1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontResource(this: *mut core::ffi::c_void, listindex: u32, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn CreateFontResource(this: *mut core::ffi::c_void, listindex: u32, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet1_Impl::CreateFontResource(this, core::mem::transmute_copy(&listindex)) { Ok(ok__) => { @@ -3856,10 +2938,7 @@ impl IDWriteFontSet1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, listindex: u32, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn CreateFontFace(this: *mut core::ffi::c_void, listindex: u32, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet1_Impl::CreateFontFace(this, core::mem::transmute_copy(&listindex)) { Ok(ok__) => { @@ -3869,10 +2948,7 @@ impl IDWriteFontSet1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontLocality(this: *mut core::ffi::c_void, listindex: u32) -> DWRITE_LOCALITY - where - Identity: IDWriteFontSet1_Impl, - { + unsafe extern "system" fn GetFontLocality(this: *mut core::ffi::c_void, listindex: u32) -> DWRITE_LOCALITY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet1_Impl::GetFontLocality(this, core::mem::transmute_copy(&listindex)) } @@ -3902,14 +2978,8 @@ pub trait IDWriteFontSet2_Impl: Sized + IDWriteFontSet1_Impl { } impl windows_core::RuntimeName for IDWriteFontSet2 {} impl IDWriteFontSet2_Vtbl { - pub const fn new() -> IDWriteFontSet2_Vtbl - where - Identity: IDWriteFontSet2_Impl, - { - unsafe extern "system" fn GetExpirationEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: IDWriteFontSet2_Impl, - { + pub const fn new() -> IDWriteFontSet2_Vtbl { + unsafe extern "system" fn GetExpirationEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet2_Impl::GetExpirationEvent(this) } @@ -3926,28 +2996,16 @@ pub trait IDWriteFontSet3_Impl: Sized + IDWriteFontSet2_Impl { } impl windows_core::RuntimeName for IDWriteFontSet3 {} impl IDWriteFontSet3_Vtbl { - pub const fn new() -> IDWriteFontSet3_Vtbl - where - Identity: IDWriteFontSet3_Impl, - { - unsafe extern "system" fn GetFontSourceType(this: *mut core::ffi::c_void, fontindex: u32) -> DWRITE_FONT_SOURCE_TYPE - where - Identity: IDWriteFontSet3_Impl, - { + pub const fn new() -> IDWriteFontSet3_Vtbl { + unsafe extern "system" fn GetFontSourceType(this: *mut core::ffi::c_void, fontindex: u32) -> DWRITE_FONT_SOURCE_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet3_Impl::GetFontSourceType(this, core::mem::transmute_copy(&fontindex)) } - unsafe extern "system" fn GetFontSourceNameLength(this: *mut core::ffi::c_void, listindex: u32) -> u32 - where - Identity: IDWriteFontSet3_Impl, - { + unsafe extern "system" fn GetFontSourceNameLength(this: *mut core::ffi::c_void, listindex: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet3_Impl::GetFontSourceNameLength(this, core::mem::transmute_copy(&listindex)) } - unsafe extern "system" fn GetFontSourceName(this: *mut core::ffi::c_void, listindex: u32, stringbuffer: windows_core::PWSTR, stringbuffersize: u32) -> windows_core::HRESULT - where - Identity: IDWriteFontSet3_Impl, - { + unsafe extern "system" fn GetFontSourceName(this: *mut core::ffi::c_void, listindex: u32, stringbuffer: windows_core::PWSTR, stringbuffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet3_Impl::GetFontSourceName(this, core::mem::transmute_copy(&listindex), core::mem::transmute_copy(&stringbuffer), core::mem::transmute_copy(&stringbuffersize)).into() } @@ -3968,21 +3026,12 @@ pub trait IDWriteFontSet4_Impl: Sized + IDWriteFontSet3_Impl { } impl windows_core::RuntimeName for IDWriteFontSet4 {} impl IDWriteFontSet4_Vtbl { - pub const fn new() -> IDWriteFontSet4_Vtbl - where - Identity: IDWriteFontSet4_Impl, - { - unsafe extern "system" fn ConvertWeightStretchStyleToFontAxisValues(this: *mut core::ffi::c_void, inputaxisvalues: *const DWRITE_FONT_AXIS_VALUE, inputaxiscount: u32, fontweight: DWRITE_FONT_WEIGHT, fontstretch: DWRITE_FONT_STRETCH, fontstyle: DWRITE_FONT_STYLE, fontsize: f32, outputaxisvalues: *mut DWRITE_FONT_AXIS_VALUE) -> u32 - where - Identity: IDWriteFontSet4_Impl, - { + pub const fn new() -> IDWriteFontSet4_Vtbl { + unsafe extern "system" fn ConvertWeightStretchStyleToFontAxisValues(this: *mut core::ffi::c_void, inputaxisvalues: *const DWRITE_FONT_AXIS_VALUE, inputaxiscount: u32, fontweight: DWRITE_FONT_WEIGHT, fontstretch: DWRITE_FONT_STRETCH, fontstyle: DWRITE_FONT_STYLE, fontsize: f32, outputaxisvalues: *mut DWRITE_FONT_AXIS_VALUE) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet4_Impl::ConvertWeightStretchStyleToFontAxisValues(this, core::mem::transmute_copy(&inputaxisvalues), core::mem::transmute_copy(&inputaxiscount), core::mem::transmute_copy(&fontweight), core::mem::transmute_copy(&fontstretch), core::mem::transmute_copy(&fontstyle), core::mem::transmute_copy(&fontsize), core::mem::transmute_copy(&outputaxisvalues)) } - unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, familyname: windows_core::PCWSTR, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, allowedsimulations: DWRITE_FONT_SIMULATIONS, matchingfonts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSet4_Impl, - { + unsafe extern "system" fn GetMatchingFonts(this: *mut core::ffi::c_void, familyname: windows_core::PCWSTR, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, allowedsimulations: DWRITE_FONT_SIMULATIONS, matchingfonts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet4_Impl::GetMatchingFonts(this, core::mem::transmute(&familyname), core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount), core::mem::transmute_copy(&allowedsimulations)) { Ok(ok__) => { @@ -4002,7 +3051,7 @@ impl IDWriteFontSet4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteFontSetBuilder_Impl: Sized { +pub trait IDWriteFontSetBuilder_Impl: Sized + windows_core::IUnknownImpl { fn AddFontFaceReference(&self, fontfacereference: Option<&IDWriteFontFaceReference>, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32) -> windows_core::Result<()>; fn AddFontFaceReference2(&self, fontfacereference: Option<&IDWriteFontFaceReference>) -> windows_core::Result<()>; fn AddFontSet(&self, fontset: Option<&IDWriteFontSet>) -> windows_core::Result<()>; @@ -4010,35 +3059,20 @@ pub trait IDWriteFontSetBuilder_Impl: Sized { } impl windows_core::RuntimeName for IDWriteFontSetBuilder {} impl IDWriteFontSetBuilder_Vtbl { - pub const fn new() -> IDWriteFontSetBuilder_Vtbl - where - Identity: IDWriteFontSetBuilder_Impl, - { - unsafe extern "system" fn AddFontFaceReference(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32) -> windows_core::HRESULT - where - Identity: IDWriteFontSetBuilder_Impl, - { + pub const fn new() -> IDWriteFontSetBuilder_Vtbl { + unsafe extern "system" fn AddFontFaceReference(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSetBuilder_Impl::AddFontFaceReference(this, windows_core::from_raw_borrowed(&fontfacereference), core::mem::transmute_copy(&properties), core::mem::transmute_copy(&propertycount)).into() } - unsafe extern "system" fn AddFontFaceReference2(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSetBuilder_Impl, - { + unsafe extern "system" fn AddFontFaceReference2(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSetBuilder_Impl::AddFontFaceReference2(this, windows_core::from_raw_borrowed(&fontfacereference)).into() } - unsafe extern "system" fn AddFontSet(this: *mut core::ffi::c_void, fontset: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSetBuilder_Impl, - { + unsafe extern "system" fn AddFontSet(this: *mut core::ffi::c_void, fontset: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSetBuilder_Impl::AddFontSet(this, windows_core::from_raw_borrowed(&fontset)).into() } - unsafe extern "system" fn CreateFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSetBuilder_Impl, - { + unsafe extern "system" fn CreateFontSet(this: *mut core::ffi::c_void, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSetBuilder_Impl::CreateFontSet(this) { Ok(ok__) => { @@ -4065,14 +3099,8 @@ pub trait IDWriteFontSetBuilder1_Impl: Sized + IDWriteFontSetBuilder_Impl { } impl windows_core::RuntimeName for IDWriteFontSetBuilder1 {} impl IDWriteFontSetBuilder1_Vtbl { - pub const fn new() -> IDWriteFontSetBuilder1_Vtbl - where - Identity: IDWriteFontSetBuilder1_Impl, - { - unsafe extern "system" fn AddFontFile(this: *mut core::ffi::c_void, fontfile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteFontSetBuilder1_Impl, - { + pub const fn new() -> IDWriteFontSetBuilder1_Vtbl { + unsafe extern "system" fn AddFontFile(this: *mut core::ffi::c_void, fontfile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSetBuilder1_Impl::AddFontFile(this, windows_core::from_raw_borrowed(&fontfile)).into() } @@ -4088,21 +3116,12 @@ pub trait IDWriteFontSetBuilder2_Impl: Sized + IDWriteFontSetBuilder1_Impl { } impl windows_core::RuntimeName for IDWriteFontSetBuilder2 {} impl IDWriteFontSetBuilder2_Vtbl { - pub const fn new() -> IDWriteFontSetBuilder2_Vtbl - where - Identity: IDWriteFontSetBuilder2_Impl, - { - unsafe extern "system" fn AddFont(this: *mut core::ffi::c_void, fontfile: *mut core::ffi::c_void, fontfaceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32) -> windows_core::HRESULT - where - Identity: IDWriteFontSetBuilder2_Impl, - { + pub const fn new() -> IDWriteFontSetBuilder2_Vtbl { + unsafe extern "system" fn AddFont(this: *mut core::ffi::c_void, fontfile: *mut core::ffi::c_void, fontfaceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSetBuilder2_Impl::AddFont(this, windows_core::from_raw_borrowed(&fontfile), core::mem::transmute_copy(&fontfaceindex), core::mem::transmute_copy(&fontsimulations), core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount), core::mem::transmute_copy(&fontaxisranges), core::mem::transmute_copy(&fontaxisrangecount), core::mem::transmute_copy(&properties), core::mem::transmute_copy(&propertycount)).into() } - unsafe extern "system" fn AddFontFile(this: *mut core::ffi::c_void, filepath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDWriteFontSetBuilder2_Impl, - { + unsafe extern "system" fn AddFontFile(this: *mut core::ffi::c_void, filepath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSetBuilder2_Impl::AddFontFile(this, core::mem::transmute(&filepath)).into() } @@ -4117,7 +3136,7 @@ impl IDWriteFontSetBuilder2_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDWriteGdiInterop_Impl: Sized { +pub trait IDWriteGdiInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateFontFromLOGFONT(&self, logfont: *const super::Gdi::LOGFONTW) -> windows_core::Result; fn ConvertFontToLOGFONT(&self, font: Option<&IDWriteFont>, logfont: *mut super::Gdi::LOGFONTW, issystemfont: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn ConvertFontFaceToLOGFONT(&self, font: Option<&IDWriteFontFace>, logfont: *mut super::Gdi::LOGFONTW) -> windows_core::Result<()>; @@ -4128,14 +3147,8 @@ pub trait IDWriteGdiInterop_Impl: Sized { impl windows_core::RuntimeName for IDWriteGdiInterop {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteGdiInterop_Vtbl { - pub const fn new() -> IDWriteGdiInterop_Vtbl - where - Identity: IDWriteGdiInterop_Impl, - { - unsafe extern "system" fn CreateFontFromLOGFONT(this: *mut core::ffi::c_void, logfont: *const super::Gdi::LOGFONTW, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteGdiInterop_Impl, - { + pub const fn new() -> IDWriteGdiInterop_Vtbl { + unsafe extern "system" fn CreateFontFromLOGFONT(this: *mut core::ffi::c_void, logfont: *const super::Gdi::LOGFONTW, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteGdiInterop_Impl::CreateFontFromLOGFONT(this, core::mem::transmute_copy(&logfont)) { Ok(ok__) => { @@ -4145,24 +3158,15 @@ impl IDWriteGdiInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertFontToLOGFONT(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void, logfont: *mut super::Gdi::LOGFONTW, issystemfont: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteGdiInterop_Impl, - { + unsafe extern "system" fn ConvertFontToLOGFONT(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void, logfont: *mut super::Gdi::LOGFONTW, issystemfont: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteGdiInterop_Impl::ConvertFontToLOGFONT(this, windows_core::from_raw_borrowed(&font), core::mem::transmute_copy(&logfont), core::mem::transmute_copy(&issystemfont)).into() } - unsafe extern "system" fn ConvertFontFaceToLOGFONT(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void, logfont: *mut super::Gdi::LOGFONTW) -> windows_core::HRESULT - where - Identity: IDWriteGdiInterop_Impl, - { + unsafe extern "system" fn ConvertFontFaceToLOGFONT(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void, logfont: *mut super::Gdi::LOGFONTW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteGdiInterop_Impl::ConvertFontFaceToLOGFONT(this, windows_core::from_raw_borrowed(&font), core::mem::transmute_copy(&logfont)).into() } - unsafe extern "system" fn CreateFontFaceFromHdc(this: *mut core::ffi::c_void, hdc: super::Gdi::HDC, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteGdiInterop_Impl, - { + unsafe extern "system" fn CreateFontFaceFromHdc(this: *mut core::ffi::c_void, hdc: super::Gdi::HDC, fontface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteGdiInterop_Impl::CreateFontFaceFromHdc(this, core::mem::transmute_copy(&hdc)) { Ok(ok__) => { @@ -4172,10 +3176,7 @@ impl IDWriteGdiInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapRenderTarget(this: *mut core::ffi::c_void, hdc: super::Gdi::HDC, width: u32, height: u32, rendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteGdiInterop_Impl, - { + unsafe extern "system" fn CreateBitmapRenderTarget(this: *mut core::ffi::c_void, hdc: super::Gdi::HDC, width: u32, height: u32, rendertarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteGdiInterop_Impl::CreateBitmapRenderTarget(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)) { Ok(ok__) => { @@ -4209,14 +3210,8 @@ pub trait IDWriteGdiInterop1_Impl: Sized + IDWriteGdiInterop_Impl { impl windows_core::RuntimeName for IDWriteGdiInterop1 {} #[cfg(all(feature = "Win32_Globalization", feature = "Win32_Graphics_Gdi"))] impl IDWriteGdiInterop1_Vtbl { - pub const fn new() -> IDWriteGdiInterop1_Vtbl - where - Identity: IDWriteGdiInterop1_Impl, - { - unsafe extern "system" fn CreateFontFromLOGFONT(this: *mut core::ffi::c_void, logfont: *const super::Gdi::LOGFONTW, fontcollection: *mut core::ffi::c_void, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteGdiInterop1_Impl, - { + pub const fn new() -> IDWriteGdiInterop1_Vtbl { + unsafe extern "system" fn CreateFontFromLOGFONT(this: *mut core::ffi::c_void, logfont: *const super::Gdi::LOGFONTW, fontcollection: *mut core::ffi::c_void, font: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteGdiInterop1_Impl::CreateFontFromLOGFONT(this, core::mem::transmute_copy(&logfont), windows_core::from_raw_borrowed(&fontcollection)) { Ok(ok__) => { @@ -4226,24 +3221,15 @@ impl IDWriteGdiInterop1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontSignature(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, fontsignature: *mut super::super::Globalization::FONTSIGNATURE) -> windows_core::HRESULT - where - Identity: IDWriteGdiInterop1_Impl, - { + unsafe extern "system" fn GetFontSignature(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, fontsignature: *mut super::super::Globalization::FONTSIGNATURE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteGdiInterop1_Impl::GetFontSignature(this, windows_core::from_raw_borrowed(&fontface), core::mem::transmute_copy(&fontsignature)).into() } - unsafe extern "system" fn GetFontSignature2(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void, fontsignature: *mut super::super::Globalization::FONTSIGNATURE) -> windows_core::HRESULT - where - Identity: IDWriteGdiInterop1_Impl, - { + unsafe extern "system" fn GetFontSignature2(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void, fontsignature: *mut super::super::Globalization::FONTSIGNATURE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteGdiInterop1_Impl::GetFontSignature2(this, windows_core::from_raw_borrowed(&font), core::mem::transmute_copy(&fontsignature)).into() } - unsafe extern "system" fn GetMatchingFontsByLOGFONT(this: *mut core::ffi::c_void, logfont: *const super::Gdi::LOGFONTA, fontset: *mut core::ffi::c_void, filteredset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteGdiInterop1_Impl, - { + unsafe extern "system" fn GetMatchingFontsByLOGFONT(this: *mut core::ffi::c_void, logfont: *const super::Gdi::LOGFONTA, fontset: *mut core::ffi::c_void, filteredset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteGdiInterop1_Impl::GetMatchingFontsByLOGFONT(this, core::mem::transmute_copy(&logfont), windows_core::from_raw_borrowed(&fontset)) { Ok(ok__) => { @@ -4265,21 +3251,15 @@ impl IDWriteGdiInterop1_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDWriteGlyphRunAnalysis_Impl: Sized { +pub trait IDWriteGlyphRunAnalysis_Impl: Sized + windows_core::IUnknownImpl { fn GetAlphaTextureBounds(&self, texturetype: DWRITE_TEXTURE_TYPE) -> windows_core::Result; fn CreateAlphaTexture(&self, texturetype: DWRITE_TEXTURE_TYPE, texturebounds: *const super::super::Foundation::RECT, alphavalues: *mut u8, buffersize: u32) -> windows_core::Result<()>; fn GetAlphaBlendParams(&self, renderingparams: Option<&IDWriteRenderingParams>, blendgamma: *mut f32, blendenhancedcontrast: *mut f32, blendcleartypelevel: *mut f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDWriteGlyphRunAnalysis {} impl IDWriteGlyphRunAnalysis_Vtbl { - pub const fn new() -> IDWriteGlyphRunAnalysis_Vtbl - where - Identity: IDWriteGlyphRunAnalysis_Impl, - { - unsafe extern "system" fn GetAlphaTextureBounds(this: *mut core::ffi::c_void, texturetype: DWRITE_TEXTURE_TYPE, texturebounds: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDWriteGlyphRunAnalysis_Impl, - { + pub const fn new() -> IDWriteGlyphRunAnalysis_Vtbl { + unsafe extern "system" fn GetAlphaTextureBounds(this: *mut core::ffi::c_void, texturetype: DWRITE_TEXTURE_TYPE, texturebounds: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteGlyphRunAnalysis_Impl::GetAlphaTextureBounds(this, core::mem::transmute_copy(&texturetype)) { Ok(ok__) => { @@ -4289,17 +3269,11 @@ impl IDWriteGlyphRunAnalysis_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAlphaTexture(this: *mut core::ffi::c_void, texturetype: DWRITE_TEXTURE_TYPE, texturebounds: *const super::super::Foundation::RECT, alphavalues: *mut u8, buffersize: u32) -> windows_core::HRESULT - where - Identity: IDWriteGlyphRunAnalysis_Impl, - { + unsafe extern "system" fn CreateAlphaTexture(this: *mut core::ffi::c_void, texturetype: DWRITE_TEXTURE_TYPE, texturebounds: *const super::super::Foundation::RECT, alphavalues: *mut u8, buffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteGlyphRunAnalysis_Impl::CreateAlphaTexture(this, core::mem::transmute_copy(&texturetype), core::mem::transmute_copy(&texturebounds), core::mem::transmute_copy(&alphavalues), core::mem::transmute_copy(&buffersize)).into() } - unsafe extern "system" fn GetAlphaBlendParams(this: *mut core::ffi::c_void, renderingparams: *mut core::ffi::c_void, blendgamma: *mut f32, blendenhancedcontrast: *mut f32, blendcleartypelevel: *mut f32) -> windows_core::HRESULT - where - Identity: IDWriteGlyphRunAnalysis_Impl, - { + unsafe extern "system" fn GetAlphaBlendParams(this: *mut core::ffi::c_void, renderingparams: *mut core::ffi::c_void, blendgamma: *mut f32, blendenhancedcontrast: *mut f32, blendcleartypelevel: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteGlyphRunAnalysis_Impl::GetAlphaBlendParams(this, windows_core::from_raw_borrowed(&renderingparams), core::mem::transmute_copy(&blendgamma), core::mem::transmute_copy(&blendenhancedcontrast), core::mem::transmute_copy(&blendcleartypelevel)).into() } @@ -4320,14 +3294,8 @@ pub trait IDWriteInMemoryFontFileLoader_Impl: Sized + IDWriteFontFileLoader_Impl } impl windows_core::RuntimeName for IDWriteInMemoryFontFileLoader {} impl IDWriteInMemoryFontFileLoader_Vtbl { - pub const fn new() -> IDWriteInMemoryFontFileLoader_Vtbl - where - Identity: IDWriteInMemoryFontFileLoader_Impl, - { - unsafe extern "system" fn CreateInMemoryFontFileReference(this: *mut core::ffi::c_void, factory: *mut core::ffi::c_void, fontdata: *const core::ffi::c_void, fontdatasize: u32, ownerobject: *mut core::ffi::c_void, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteInMemoryFontFileLoader_Impl, - { + pub const fn new() -> IDWriteInMemoryFontFileLoader_Vtbl { + unsafe extern "system" fn CreateInMemoryFontFileReference(this: *mut core::ffi::c_void, factory: *mut core::ffi::c_void, fontdata: *const core::ffi::c_void, fontdatasize: u32, ownerobject: *mut core::ffi::c_void, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteInMemoryFontFileLoader_Impl::CreateInMemoryFontFileReference(this, windows_core::from_raw_borrowed(&factory), core::mem::transmute_copy(&fontdata), core::mem::transmute_copy(&fontdatasize), windows_core::from_raw_borrowed(&ownerobject)) { Ok(ok__) => { @@ -4337,10 +3305,7 @@ impl IDWriteInMemoryFontFileLoader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteInMemoryFontFileLoader_Impl, - { + unsafe extern "system" fn GetFileCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteInMemoryFontFileLoader_Impl::GetFileCount(this) } @@ -4354,7 +3319,7 @@ impl IDWriteInMemoryFontFileLoader_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDWriteInlineObject_Impl: Sized { +pub trait IDWriteInlineObject_Impl: Sized + windows_core::IUnknownImpl { fn Draw(&self, clientdrawingcontext: *const core::ffi::c_void, renderer: Option<&IDWriteTextRenderer>, originx: f32, originy: f32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetMetrics(&self) -> windows_core::Result; fn GetOverhangMetrics(&self) -> windows_core::Result; @@ -4362,21 +3327,12 @@ pub trait IDWriteInlineObject_Impl: Sized { } impl windows_core::RuntimeName for IDWriteInlineObject {} impl IDWriteInlineObject_Vtbl { - pub const fn new() -> IDWriteInlineObject_Vtbl - where - Identity: IDWriteInlineObject_Impl, - { - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, renderer: *mut core::ffi::c_void, originx: f32, originy: f32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteInlineObject_Impl, - { + pub const fn new() -> IDWriteInlineObject_Vtbl { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, renderer: *mut core::ffi::c_void, originx: f32, originy: f32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteInlineObject_Impl::Draw(this, core::mem::transmute_copy(&clientdrawingcontext), windows_core::from_raw_borrowed(&renderer), core::mem::transmute_copy(&originx), core::mem::transmute_copy(&originy), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&isrighttoleft), windows_core::from_raw_borrowed(&clientdrawingeffect)).into() } - unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, metrics: *mut DWRITE_INLINE_OBJECT_METRICS) -> windows_core::HRESULT - where - Identity: IDWriteInlineObject_Impl, - { + unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, metrics: *mut DWRITE_INLINE_OBJECT_METRICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteInlineObject_Impl::GetMetrics(this) { Ok(ok__) => { @@ -4386,10 +3342,7 @@ impl IDWriteInlineObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOverhangMetrics(this: *mut core::ffi::c_void, overhangs: *mut DWRITE_OVERHANG_METRICS) -> windows_core::HRESULT - where - Identity: IDWriteInlineObject_Impl, - { + unsafe extern "system" fn GetOverhangMetrics(this: *mut core::ffi::c_void, overhangs: *mut DWRITE_OVERHANG_METRICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteInlineObject_Impl::GetOverhangMetrics(this) { Ok(ok__) => { @@ -4399,10 +3352,7 @@ impl IDWriteInlineObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakConditions(this: *mut core::ffi::c_void, breakconditionbefore: *mut DWRITE_BREAK_CONDITION, breakconditionafter: *mut DWRITE_BREAK_CONDITION) -> windows_core::HRESULT - where - Identity: IDWriteInlineObject_Impl, - { + unsafe extern "system" fn GetBreakConditions(this: *mut core::ffi::c_void, breakconditionbefore: *mut DWRITE_BREAK_CONDITION, breakconditionafter: *mut DWRITE_BREAK_CONDITION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteInlineObject_Impl::GetBreakConditions(this, core::mem::transmute_copy(&breakconditionbefore), core::mem::transmute_copy(&breakconditionafter)).into() } @@ -4425,14 +3375,8 @@ pub trait IDWriteLocalFontFileLoader_Impl: Sized + IDWriteFontFileLoader_Impl { } impl windows_core::RuntimeName for IDWriteLocalFontFileLoader {} impl IDWriteLocalFontFileLoader_Vtbl { - pub const fn new() -> IDWriteLocalFontFileLoader_Vtbl - where - Identity: IDWriteLocalFontFileLoader_Impl, - { - unsafe extern "system" fn GetFilePathLengthFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, filepathlength: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteLocalFontFileLoader_Impl, - { + pub const fn new() -> IDWriteLocalFontFileLoader_Vtbl { + unsafe extern "system" fn GetFilePathLengthFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, filepathlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteLocalFontFileLoader_Impl::GetFilePathLengthFromKey(this, core::mem::transmute_copy(&fontfilereferencekey), core::mem::transmute_copy(&fontfilereferencekeysize)) { Ok(ok__) => { @@ -4442,17 +3386,11 @@ impl IDWriteLocalFontFileLoader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilePathFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, filepath: windows_core::PWSTR, filepathsize: u32) -> windows_core::HRESULT - where - Identity: IDWriteLocalFontFileLoader_Impl, - { + unsafe extern "system" fn GetFilePathFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, filepath: windows_core::PWSTR, filepathsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteLocalFontFileLoader_Impl::GetFilePathFromKey(this, core::mem::transmute_copy(&fontfilereferencekey), core::mem::transmute_copy(&fontfilereferencekeysize), core::mem::transmute_copy(&filepath), core::mem::transmute_copy(&filepathsize)).into() } - unsafe extern "system" fn GetLastWriteTimeFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, lastwritetime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IDWriteLocalFontFileLoader_Impl, - { + unsafe extern "system" fn GetLastWriteTimeFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, lastwritetime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteLocalFontFileLoader_Impl::GetLastWriteTimeFromKey(this, core::mem::transmute_copy(&fontfilereferencekey), core::mem::transmute_copy(&fontfilereferencekeysize)) { Ok(ok__) => { @@ -4473,7 +3411,7 @@ impl IDWriteLocalFontFileLoader_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDWriteLocalizedStrings_Impl: Sized { +pub trait IDWriteLocalizedStrings_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> u32; fn FindLocaleName(&self, localename: &windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetLocaleNameLength(&self, index: u32) -> windows_core::Result; @@ -4483,28 +3421,16 @@ pub trait IDWriteLocalizedStrings_Impl: Sized { } impl windows_core::RuntimeName for IDWriteLocalizedStrings {} impl IDWriteLocalizedStrings_Vtbl { - pub const fn new() -> IDWriteLocalizedStrings_Vtbl - where - Identity: IDWriteLocalizedStrings_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteLocalizedStrings_Impl, - { + pub const fn new() -> IDWriteLocalizedStrings_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteLocalizedStrings_Impl::GetCount(this) } - unsafe extern "system" fn FindLocaleName(this: *mut core::ffi::c_void, localename: windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteLocalizedStrings_Impl, - { + unsafe extern "system" fn FindLocaleName(this: *mut core::ffi::c_void, localename: windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteLocalizedStrings_Impl::FindLocaleName(this, core::mem::transmute(&localename), core::mem::transmute_copy(&index), core::mem::transmute_copy(&exists)).into() } - unsafe extern "system" fn GetLocaleNameLength(this: *mut core::ffi::c_void, index: u32, length: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteLocalizedStrings_Impl, - { + unsafe extern "system" fn GetLocaleNameLength(this: *mut core::ffi::c_void, index: u32, length: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteLocalizedStrings_Impl::GetLocaleNameLength(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -4514,17 +3440,11 @@ impl IDWriteLocalizedStrings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocaleName(this: *mut core::ffi::c_void, index: u32, localename: windows_core::PWSTR, size: u32) -> windows_core::HRESULT - where - Identity: IDWriteLocalizedStrings_Impl, - { + unsafe extern "system" fn GetLocaleName(this: *mut core::ffi::c_void, index: u32, localename: windows_core::PWSTR, size: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteLocalizedStrings_Impl::GetLocaleName(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&localename), core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void, index: u32, length: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteLocalizedStrings_Impl, - { + unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void, index: u32, length: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteLocalizedStrings_Impl::GetStringLength(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -4534,10 +3454,7 @@ impl IDWriteLocalizedStrings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, index: u32, stringbuffer: windows_core::PWSTR, size: u32) -> windows_core::HRESULT - where - Identity: IDWriteLocalizedStrings_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, index: u32, stringbuffer: windows_core::PWSTR, size: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteLocalizedStrings_Impl::GetString(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&stringbuffer), core::mem::transmute_copy(&size)).into() } @@ -4555,13 +3472,10 @@ impl IDWriteLocalizedStrings_Vtbl { iid == &::IID } } -pub trait IDWriteNumberSubstitution_Impl: Sized {} +pub trait IDWriteNumberSubstitution_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IDWriteNumberSubstitution {} impl IDWriteNumberSubstitution_Vtbl { - pub const fn new() -> IDWriteNumberSubstitution_Vtbl - where - Identity: IDWriteNumberSubstitution_Impl, - { + pub const fn new() -> IDWriteNumberSubstitution_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -4569,7 +3483,7 @@ impl IDWriteNumberSubstitution_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] -pub trait IDWritePaintReader_Impl: Sized { +pub trait IDWritePaintReader_Impl: Sized + windows_core::IUnknownImpl { fn SetCurrentGlyph(&self, glyphindex: u32, paintelement: *mut DWRITE_PAINT_ELEMENT, structsize: u32, clipbox: *mut super::Direct2D::Common::D2D_RECT_F, glyphattributes: *mut DWRITE_PAINT_ATTRIBUTES) -> windows_core::Result<()>; fn SetTextColor(&self, textcolor: *const DWRITE_COLOR_F) -> windows_core::Result<()>; fn SetColorPaletteIndex(&self, colorpaletteindex: u32) -> windows_core::Result<()>; @@ -4584,70 +3498,40 @@ pub trait IDWritePaintReader_Impl: Sized { impl windows_core::RuntimeName for IDWritePaintReader {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWritePaintReader_Vtbl { - pub const fn new() -> IDWritePaintReader_Vtbl - where - Identity: IDWritePaintReader_Impl, - { - unsafe extern "system" fn SetCurrentGlyph(this: *mut core::ffi::c_void, glyphindex: u32, paintelement: *mut DWRITE_PAINT_ELEMENT, structsize: u32, clipbox: *mut super::Direct2D::Common::D2D_RECT_F, glyphattributes: *mut DWRITE_PAINT_ATTRIBUTES) -> windows_core::HRESULT - where - Identity: IDWritePaintReader_Impl, - { + pub const fn new() -> IDWritePaintReader_Vtbl { + unsafe extern "system" fn SetCurrentGlyph(this: *mut core::ffi::c_void, glyphindex: u32, paintelement: *mut DWRITE_PAINT_ELEMENT, structsize: u32, clipbox: *mut super::Direct2D::Common::D2D_RECT_F, glyphattributes: *mut DWRITE_PAINT_ATTRIBUTES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWritePaintReader_Impl::SetCurrentGlyph(this, core::mem::transmute_copy(&glyphindex), core::mem::transmute_copy(&paintelement), core::mem::transmute_copy(&structsize), core::mem::transmute_copy(&clipbox), core::mem::transmute_copy(&glyphattributes)).into() } - unsafe extern "system" fn SetTextColor(this: *mut core::ffi::c_void, textcolor: *const DWRITE_COLOR_F) -> windows_core::HRESULT - where - Identity: IDWritePaintReader_Impl, - { + unsafe extern "system" fn SetTextColor(this: *mut core::ffi::c_void, textcolor: *const DWRITE_COLOR_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWritePaintReader_Impl::SetTextColor(this, core::mem::transmute_copy(&textcolor)).into() } - unsafe extern "system" fn SetColorPaletteIndex(this: *mut core::ffi::c_void, colorpaletteindex: u32) -> windows_core::HRESULT - where - Identity: IDWritePaintReader_Impl, - { + unsafe extern "system" fn SetColorPaletteIndex(this: *mut core::ffi::c_void, colorpaletteindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWritePaintReader_Impl::SetColorPaletteIndex(this, core::mem::transmute_copy(&colorpaletteindex)).into() } - unsafe extern "system" fn SetCustomColorPalette(this: *mut core::ffi::c_void, paletteentries: *const DWRITE_COLOR_F, paletteentrycount: u32) -> windows_core::HRESULT - where - Identity: IDWritePaintReader_Impl, - { + unsafe extern "system" fn SetCustomColorPalette(this: *mut core::ffi::c_void, paletteentries: *const DWRITE_COLOR_F, paletteentrycount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWritePaintReader_Impl::SetCustomColorPalette(this, core::mem::transmute_copy(&paletteentries), core::mem::transmute_copy(&paletteentrycount)).into() } - unsafe extern "system" fn MoveToFirstChild(this: *mut core::ffi::c_void, paintelement: *mut DWRITE_PAINT_ELEMENT, structsize: u32) -> windows_core::HRESULT - where - Identity: IDWritePaintReader_Impl, - { + unsafe extern "system" fn MoveToFirstChild(this: *mut core::ffi::c_void, paintelement: *mut DWRITE_PAINT_ELEMENT, structsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWritePaintReader_Impl::MoveToFirstChild(this, core::mem::transmute_copy(&paintelement), core::mem::transmute_copy(&structsize)).into() } - unsafe extern "system" fn MoveToNextSibling(this: *mut core::ffi::c_void, paintelement: *mut DWRITE_PAINT_ELEMENT, structsize: u32) -> windows_core::HRESULT - where - Identity: IDWritePaintReader_Impl, - { + unsafe extern "system" fn MoveToNextSibling(this: *mut core::ffi::c_void, paintelement: *mut DWRITE_PAINT_ELEMENT, structsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWritePaintReader_Impl::MoveToNextSibling(this, core::mem::transmute_copy(&paintelement), core::mem::transmute_copy(&structsize)).into() } - unsafe extern "system" fn MoveToParent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWritePaintReader_Impl, - { + unsafe extern "system" fn MoveToParent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWritePaintReader_Impl::MoveToParent(this).into() } - unsafe extern "system" fn GetGradientStops(this: *mut core::ffi::c_void, firstgradientstopindex: u32, gradientstopcount: u32, gradientstops: *mut super::Direct2D::Common::D2D1_GRADIENT_STOP) -> windows_core::HRESULT - where - Identity: IDWritePaintReader_Impl, - { + unsafe extern "system" fn GetGradientStops(this: *mut core::ffi::c_void, firstgradientstopindex: u32, gradientstopcount: u32, gradientstops: *mut super::Direct2D::Common::D2D1_GRADIENT_STOP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWritePaintReader_Impl::GetGradientStops(this, core::mem::transmute_copy(&firstgradientstopindex), core::mem::transmute_copy(&gradientstopcount), core::mem::transmute_copy(&gradientstops)).into() } - unsafe extern "system" fn GetGradientStopColors(this: *mut core::ffi::c_void, firstgradientstopindex: u32, gradientstopcount: u32, gradientstopcolors: *mut DWRITE_PAINT_COLOR) -> windows_core::HRESULT - where - Identity: IDWritePaintReader_Impl, - { + unsafe extern "system" fn GetGradientStopColors(this: *mut core::ffi::c_void, firstgradientstopindex: u32, gradientstopcount: u32, gradientstopcolors: *mut DWRITE_PAINT_COLOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWritePaintReader_Impl::GetGradientStopColors(this, core::mem::transmute_copy(&firstgradientstopindex), core::mem::transmute_copy(&gradientstopcount), core::mem::transmute_copy(&gradientstopcolors)).into() } @@ -4668,21 +3552,15 @@ impl IDWritePaintReader_Vtbl { iid == &::IID } } -pub trait IDWritePixelSnapping_Impl: Sized { +pub trait IDWritePixelSnapping_Impl: Sized + windows_core::IUnknownImpl { fn IsPixelSnappingDisabled(&self, clientdrawingcontext: *const core::ffi::c_void) -> windows_core::Result; fn GetCurrentTransform(&self, clientdrawingcontext: *const core::ffi::c_void, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()>; fn GetPixelsPerDip(&self, clientdrawingcontext: *const core::ffi::c_void) -> windows_core::Result; } impl windows_core::RuntimeName for IDWritePixelSnapping {} impl IDWritePixelSnapping_Vtbl { - pub const fn new() -> IDWritePixelSnapping_Vtbl - where - Identity: IDWritePixelSnapping_Impl, - { - unsafe extern "system" fn IsPixelSnappingDisabled(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, isdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWritePixelSnapping_Impl, - { + pub const fn new() -> IDWritePixelSnapping_Vtbl { + unsafe extern "system" fn IsPixelSnappingDisabled(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, isdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWritePixelSnapping_Impl::IsPixelSnappingDisabled(this, core::mem::transmute_copy(&clientdrawingcontext)) { Ok(ok__) => { @@ -4692,17 +3570,11 @@ impl IDWritePixelSnapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentTransform(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT - where - Identity: IDWritePixelSnapping_Impl, - { + unsafe extern "system" fn GetCurrentTransform(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWritePixelSnapping_Impl::GetCurrentTransform(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&transform)).into() } - unsafe extern "system" fn GetPixelsPerDip(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, pixelsperdip: *mut f32) -> windows_core::HRESULT - where - Identity: IDWritePixelSnapping_Impl, - { + unsafe extern "system" fn GetPixelsPerDip(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, pixelsperdip: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWritePixelSnapping_Impl::GetPixelsPerDip(this, core::mem::transmute_copy(&clientdrawingcontext)) { Ok(ok__) => { @@ -4730,14 +3602,8 @@ pub trait IDWriteRemoteFontFileLoader_Impl: Sized + IDWriteFontFileLoader_Impl { } impl windows_core::RuntimeName for IDWriteRemoteFontFileLoader {} impl IDWriteRemoteFontFileLoader_Vtbl { - pub const fn new() -> IDWriteRemoteFontFileLoader_Vtbl - where - Identity: IDWriteRemoteFontFileLoader_Impl, - { - unsafe extern "system" fn CreateRemoteStreamFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfilestream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteRemoteFontFileLoader_Impl, - { + pub const fn new() -> IDWriteRemoteFontFileLoader_Vtbl { + unsafe extern "system" fn CreateRemoteStreamFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, fontfilestream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteRemoteFontFileLoader_Impl::CreateRemoteStreamFromKey(this, core::mem::transmute_copy(&fontfilereferencekey), core::mem::transmute_copy(&fontfilereferencekeysize)) { Ok(ok__) => { @@ -4747,10 +3613,7 @@ impl IDWriteRemoteFontFileLoader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalityFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, locality: *mut DWRITE_LOCALITY) -> windows_core::HRESULT - where - Identity: IDWriteRemoteFontFileLoader_Impl, - { + unsafe extern "system" fn GetLocalityFromKey(this: *mut core::ffi::c_void, fontfilereferencekey: *const core::ffi::c_void, fontfilereferencekeysize: u32, locality: *mut DWRITE_LOCALITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteRemoteFontFileLoader_Impl::GetLocalityFromKey(this, core::mem::transmute_copy(&fontfilereferencekey), core::mem::transmute_copy(&fontfilereferencekeysize)) { Ok(ok__) => { @@ -4760,10 +3623,7 @@ impl IDWriteRemoteFontFileLoader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontFileReferenceFromUrl(this: *mut core::ffi::c_void, factory: *mut core::ffi::c_void, baseurl: windows_core::PCWSTR, fontfileurl: windows_core::PCWSTR, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteRemoteFontFileLoader_Impl, - { + unsafe extern "system" fn CreateFontFileReferenceFromUrl(this: *mut core::ffi::c_void, factory: *mut core::ffi::c_void, baseurl: windows_core::PCWSTR, fontfileurl: windows_core::PCWSTR, fontfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteRemoteFontFileLoader_Impl::CreateFontFileReferenceFromUrl(this, windows_core::from_raw_borrowed(&factory), core::mem::transmute(&baseurl), core::mem::transmute(&fontfileurl)) { Ok(ok__) => { @@ -4792,14 +3652,8 @@ pub trait IDWriteRemoteFontFileStream_Impl: Sized + IDWriteFontFileStream_Impl { } impl windows_core::RuntimeName for IDWriteRemoteFontFileStream {} impl IDWriteRemoteFontFileStream_Vtbl { - pub const fn new() -> IDWriteRemoteFontFileStream_Vtbl - where - Identity: IDWriteRemoteFontFileStream_Impl, - { - unsafe extern "system" fn GetLocalFileSize(this: *mut core::ffi::c_void, localfilesize: *mut u64) -> windows_core::HRESULT - where - Identity: IDWriteRemoteFontFileStream_Impl, - { + pub const fn new() -> IDWriteRemoteFontFileStream_Vtbl { + unsafe extern "system" fn GetLocalFileSize(this: *mut core::ffi::c_void, localfilesize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteRemoteFontFileStream_Impl::GetLocalFileSize(this) { Ok(ok__) => { @@ -4809,24 +3663,15 @@ impl IDWriteRemoteFontFileStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileFragmentLocality(this: *mut core::ffi::c_void, fileoffset: u64, fragmentsize: u64, islocal: *mut super::super::Foundation::BOOL, partialsize: *mut u64) -> windows_core::HRESULT - where - Identity: IDWriteRemoteFontFileStream_Impl, - { + unsafe extern "system" fn GetFileFragmentLocality(this: *mut core::ffi::c_void, fileoffset: u64, fragmentsize: u64, islocal: *mut super::super::Foundation::BOOL, partialsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRemoteFontFileStream_Impl::GetFileFragmentLocality(this, core::mem::transmute_copy(&fileoffset), core::mem::transmute_copy(&fragmentsize), core::mem::transmute_copy(&islocal), core::mem::transmute_copy(&partialsize)).into() } - unsafe extern "system" fn GetLocality(this: *mut core::ffi::c_void) -> DWRITE_LOCALITY - where - Identity: IDWriteRemoteFontFileStream_Impl, - { + unsafe extern "system" fn GetLocality(this: *mut core::ffi::c_void) -> DWRITE_LOCALITY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRemoteFontFileStream_Impl::GetLocality(this) } - unsafe extern "system" fn BeginDownload(this: *mut core::ffi::c_void, downloadoperationid: *const windows_core::GUID, filefragments: *const DWRITE_FILE_FRAGMENT, fragmentcount: u32, asyncresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteRemoteFontFileStream_Impl, - { + unsafe extern "system" fn BeginDownload(this: *mut core::ffi::c_void, downloadoperationid: *const windows_core::GUID, filefragments: *const DWRITE_FILE_FRAGMENT, fragmentcount: u32, asyncresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteRemoteFontFileStream_Impl::BeginDownload(this, core::mem::transmute_copy(&downloadoperationid), core::mem::transmute_copy(&filefragments), core::mem::transmute_copy(&fragmentcount)) { Ok(ok__) => { @@ -4848,7 +3693,7 @@ impl IDWriteRemoteFontFileStream_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDWriteRenderingParams_Impl: Sized { +pub trait IDWriteRenderingParams_Impl: Sized + windows_core::IUnknownImpl { fn GetGamma(&self) -> f32; fn GetEnhancedContrast(&self) -> f32; fn GetClearTypeLevel(&self) -> f32; @@ -4857,42 +3702,24 @@ pub trait IDWriteRenderingParams_Impl: Sized { } impl windows_core::RuntimeName for IDWriteRenderingParams {} impl IDWriteRenderingParams_Vtbl { - pub const fn new() -> IDWriteRenderingParams_Vtbl - where - Identity: IDWriteRenderingParams_Impl, - { - unsafe extern "system" fn GetGamma(this: *mut core::ffi::c_void) -> f32 - where - Identity: IDWriteRenderingParams_Impl, - { + pub const fn new() -> IDWriteRenderingParams_Vtbl { + unsafe extern "system" fn GetGamma(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRenderingParams_Impl::GetGamma(this) } - unsafe extern "system" fn GetEnhancedContrast(this: *mut core::ffi::c_void) -> f32 - where - Identity: IDWriteRenderingParams_Impl, - { + unsafe extern "system" fn GetEnhancedContrast(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRenderingParams_Impl::GetEnhancedContrast(this) } - unsafe extern "system" fn GetClearTypeLevel(this: *mut core::ffi::c_void) -> f32 - where - Identity: IDWriteRenderingParams_Impl, - { + unsafe extern "system" fn GetClearTypeLevel(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRenderingParams_Impl::GetClearTypeLevel(this) } - unsafe extern "system" fn GetPixelGeometry(this: *mut core::ffi::c_void) -> DWRITE_PIXEL_GEOMETRY - where - Identity: IDWriteRenderingParams_Impl, - { + unsafe extern "system" fn GetPixelGeometry(this: *mut core::ffi::c_void) -> DWRITE_PIXEL_GEOMETRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRenderingParams_Impl::GetPixelGeometry(this) } - unsafe extern "system" fn GetRenderingMode(this: *mut core::ffi::c_void) -> DWRITE_RENDERING_MODE - where - Identity: IDWriteRenderingParams_Impl, - { + unsafe extern "system" fn GetRenderingMode(this: *mut core::ffi::c_void) -> DWRITE_RENDERING_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRenderingParams_Impl::GetRenderingMode(this) } @@ -4914,14 +3741,8 @@ pub trait IDWriteRenderingParams1_Impl: Sized + IDWriteRenderingParams_Impl { } impl windows_core::RuntimeName for IDWriteRenderingParams1 {} impl IDWriteRenderingParams1_Vtbl { - pub const fn new() -> IDWriteRenderingParams1_Vtbl - where - Identity: IDWriteRenderingParams1_Impl, - { - unsafe extern "system" fn GetGrayscaleEnhancedContrast(this: *mut core::ffi::c_void) -> f32 - where - Identity: IDWriteRenderingParams1_Impl, - { + pub const fn new() -> IDWriteRenderingParams1_Vtbl { + unsafe extern "system" fn GetGrayscaleEnhancedContrast(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRenderingParams1_Impl::GetGrayscaleEnhancedContrast(this) } @@ -4936,14 +3757,8 @@ pub trait IDWriteRenderingParams2_Impl: Sized + IDWriteRenderingParams1_Impl { } impl windows_core::RuntimeName for IDWriteRenderingParams2 {} impl IDWriteRenderingParams2_Vtbl { - pub const fn new() -> IDWriteRenderingParams2_Vtbl - where - Identity: IDWriteRenderingParams2_Impl, - { - unsafe extern "system" fn GetGridFitMode(this: *mut core::ffi::c_void) -> DWRITE_GRID_FIT_MODE - where - Identity: IDWriteRenderingParams2_Impl, - { + pub const fn new() -> IDWriteRenderingParams2_Vtbl { + unsafe extern "system" fn GetGridFitMode(this: *mut core::ffi::c_void) -> DWRITE_GRID_FIT_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRenderingParams2_Impl::GetGridFitMode(this) } @@ -4958,14 +3773,8 @@ pub trait IDWriteRenderingParams3_Impl: Sized + IDWriteRenderingParams2_Impl { } impl windows_core::RuntimeName for IDWriteRenderingParams3 {} impl IDWriteRenderingParams3_Vtbl { - pub const fn new() -> IDWriteRenderingParams3_Vtbl - where - Identity: IDWriteRenderingParams3_Impl, - { - unsafe extern "system" fn GetRenderingMode1(this: *mut core::ffi::c_void) -> DWRITE_RENDERING_MODE1 - where - Identity: IDWriteRenderingParams3_Impl, - { + pub const fn new() -> IDWriteRenderingParams3_Vtbl { + unsafe extern "system" fn GetRenderingMode1(this: *mut core::ffi::c_void) -> DWRITE_RENDERING_MODE1 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRenderingParams3_Impl::GetRenderingMode1(this) } @@ -4975,7 +3784,7 @@ impl IDWriteRenderingParams3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteStringList_Impl: Sized { +pub trait IDWriteStringList_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> u32; fn GetLocaleNameLength(&self, listindex: u32) -> windows_core::Result; fn GetLocaleName(&self, listindex: u32, localename: windows_core::PWSTR, size: u32) -> windows_core::Result<()>; @@ -4984,21 +3793,12 @@ pub trait IDWriteStringList_Impl: Sized { } impl windows_core::RuntimeName for IDWriteStringList {} impl IDWriteStringList_Vtbl { - pub const fn new() -> IDWriteStringList_Vtbl - where - Identity: IDWriteStringList_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteStringList_Impl, - { + pub const fn new() -> IDWriteStringList_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteStringList_Impl::GetCount(this) } - unsafe extern "system" fn GetLocaleNameLength(this: *mut core::ffi::c_void, listindex: u32, length: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteStringList_Impl, - { + unsafe extern "system" fn GetLocaleNameLength(this: *mut core::ffi::c_void, listindex: u32, length: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteStringList_Impl::GetLocaleNameLength(this, core::mem::transmute_copy(&listindex)) { Ok(ok__) => { @@ -5008,17 +3808,11 @@ impl IDWriteStringList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocaleName(this: *mut core::ffi::c_void, listindex: u32, localename: windows_core::PWSTR, size: u32) -> windows_core::HRESULT - where - Identity: IDWriteStringList_Impl, - { + unsafe extern "system" fn GetLocaleName(this: *mut core::ffi::c_void, listindex: u32, localename: windows_core::PWSTR, size: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteStringList_Impl::GetLocaleName(this, core::mem::transmute_copy(&listindex), core::mem::transmute_copy(&localename), core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void, listindex: u32, length: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteStringList_Impl, - { + unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void, listindex: u32, length: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteStringList_Impl::GetStringLength(this, core::mem::transmute_copy(&listindex)) { Ok(ok__) => { @@ -5028,10 +3822,7 @@ impl IDWriteStringList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, listindex: u32, stringbuffer: windows_core::PWSTR, stringbuffersize: u32) -> windows_core::HRESULT - where - Identity: IDWriteStringList_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, listindex: u32, stringbuffer: windows_core::PWSTR, stringbuffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteStringList_Impl::GetString(this, core::mem::transmute_copy(&listindex), core::mem::transmute_copy(&stringbuffer), core::mem::transmute_copy(&stringbuffersize)).into() } @@ -5048,7 +3839,7 @@ impl IDWriteStringList_Vtbl { iid == &::IID } } -pub trait IDWriteTextAnalysisSink_Impl: Sized { +pub trait IDWriteTextAnalysisSink_Impl: Sized + windows_core::IUnknownImpl { fn SetScriptAnalysis(&self, textposition: u32, textlength: u32, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS) -> windows_core::Result<()>; fn SetLineBreakpoints(&self, textposition: u32, textlength: u32, linebreakpoints: *const DWRITE_LINE_BREAKPOINT) -> windows_core::Result<()>; fn SetBidiLevel(&self, textposition: u32, textlength: u32, explicitlevel: u8, resolvedlevel: u8) -> windows_core::Result<()>; @@ -5056,35 +3847,20 @@ pub trait IDWriteTextAnalysisSink_Impl: Sized { } impl windows_core::RuntimeName for IDWriteTextAnalysisSink {} impl IDWriteTextAnalysisSink_Vtbl { - pub const fn new() -> IDWriteTextAnalysisSink_Vtbl - where - Identity: IDWriteTextAnalysisSink_Impl, - { - unsafe extern "system" fn SetScriptAnalysis(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalysisSink_Impl, - { + pub const fn new() -> IDWriteTextAnalysisSink_Vtbl { + unsafe extern "system" fn SetScriptAnalysis(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSink_Impl::SetScriptAnalysis(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&scriptanalysis)).into() } - unsafe extern "system" fn SetLineBreakpoints(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, linebreakpoints: *const DWRITE_LINE_BREAKPOINT) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalysisSink_Impl, - { + unsafe extern "system" fn SetLineBreakpoints(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, linebreakpoints: *const DWRITE_LINE_BREAKPOINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSink_Impl::SetLineBreakpoints(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&linebreakpoints)).into() } - unsafe extern "system" fn SetBidiLevel(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, explicitlevel: u8, resolvedlevel: u8) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalysisSink_Impl, - { + unsafe extern "system" fn SetBidiLevel(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, explicitlevel: u8, resolvedlevel: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSink_Impl::SetBidiLevel(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&explicitlevel), core::mem::transmute_copy(&resolvedlevel)).into() } - unsafe extern "system" fn SetNumberSubstitution(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, numbersubstitution: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalysisSink_Impl, - { + unsafe extern "system" fn SetNumberSubstitution(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, numbersubstitution: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSink_Impl::SetNumberSubstitution(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), windows_core::from_raw_borrowed(&numbersubstitution)).into() } @@ -5105,14 +3881,8 @@ pub trait IDWriteTextAnalysisSink1_Impl: Sized + IDWriteTextAnalysisSink_Impl { } impl windows_core::RuntimeName for IDWriteTextAnalysisSink1 {} impl IDWriteTextAnalysisSink1_Vtbl { - pub const fn new() -> IDWriteTextAnalysisSink1_Vtbl - where - Identity: IDWriteTextAnalysisSink1_Impl, - { - unsafe extern "system" fn SetGlyphOrientation(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, adjustedbidilevel: u8, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalysisSink1_Impl, - { + pub const fn new() -> IDWriteTextAnalysisSink1_Vtbl { + unsafe extern "system" fn SetGlyphOrientation(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, adjustedbidilevel: u8, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSink1_Impl::SetGlyphOrientation(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&glyphorientationangle), core::mem::transmute_copy(&adjustedbidilevel), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&isrighttoleft)).into() } @@ -5122,7 +3892,7 @@ impl IDWriteTextAnalysisSink1_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDWriteTextAnalysisSource_Impl: Sized { +pub trait IDWriteTextAnalysisSource_Impl: Sized + windows_core::IUnknownImpl { fn GetTextAtPosition(&self, textposition: u32, textstring: *mut *mut u16, textlength: *mut u32) -> windows_core::Result<()>; fn GetTextBeforePosition(&self, textposition: u32, textstring: *mut *mut u16, textlength: *mut u32) -> windows_core::Result<()>; fn GetParagraphReadingDirection(&self) -> DWRITE_READING_DIRECTION; @@ -5131,42 +3901,24 @@ pub trait IDWriteTextAnalysisSource_Impl: Sized { } impl windows_core::RuntimeName for IDWriteTextAnalysisSource {} impl IDWriteTextAnalysisSource_Vtbl { - pub const fn new() -> IDWriteTextAnalysisSource_Vtbl - where - Identity: IDWriteTextAnalysisSource_Impl, - { - unsafe extern "system" fn GetTextAtPosition(this: *mut core::ffi::c_void, textposition: u32, textstring: *mut *mut u16, textlength: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalysisSource_Impl, - { + pub const fn new() -> IDWriteTextAnalysisSource_Vtbl { + unsafe extern "system" fn GetTextAtPosition(this: *mut core::ffi::c_void, textposition: u32, textstring: *mut *mut u16, textlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSource_Impl::GetTextAtPosition(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textstring), core::mem::transmute_copy(&textlength)).into() } - unsafe extern "system" fn GetTextBeforePosition(this: *mut core::ffi::c_void, textposition: u32, textstring: *mut *mut u16, textlength: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalysisSource_Impl, - { + unsafe extern "system" fn GetTextBeforePosition(this: *mut core::ffi::c_void, textposition: u32, textstring: *mut *mut u16, textlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSource_Impl::GetTextBeforePosition(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textstring), core::mem::transmute_copy(&textlength)).into() } - unsafe extern "system" fn GetParagraphReadingDirection(this: *mut core::ffi::c_void) -> DWRITE_READING_DIRECTION - where - Identity: IDWriteTextAnalysisSource_Impl, - { + unsafe extern "system" fn GetParagraphReadingDirection(this: *mut core::ffi::c_void) -> DWRITE_READING_DIRECTION { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSource_Impl::GetParagraphReadingDirection(this) } - unsafe extern "system" fn GetLocaleName(this: *mut core::ffi::c_void, textposition: u32, textlength: *mut u32, localename: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalysisSource_Impl, - { + unsafe extern "system" fn GetLocaleName(this: *mut core::ffi::c_void, textposition: u32, textlength: *mut u32, localename: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSource_Impl::GetLocaleName(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&localename)).into() } - unsafe extern "system" fn GetNumberSubstitution(this: *mut core::ffi::c_void, textposition: u32, textlength: *mut u32, numbersubstitution: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalysisSource_Impl, - { + unsafe extern "system" fn GetNumberSubstitution(this: *mut core::ffi::c_void, textposition: u32, textlength: *mut u32, numbersubstitution: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSource_Impl::GetNumberSubstitution(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&numbersubstitution)).into() } @@ -5188,14 +3940,8 @@ pub trait IDWriteTextAnalysisSource1_Impl: Sized + IDWriteTextAnalysisSource_Imp } impl windows_core::RuntimeName for IDWriteTextAnalysisSource1 {} impl IDWriteTextAnalysisSource1_Vtbl { - pub const fn new() -> IDWriteTextAnalysisSource1_Vtbl - where - Identity: IDWriteTextAnalysisSource1_Impl, - { - unsafe extern "system" fn GetVerticalGlyphOrientation(this: *mut core::ffi::c_void, textposition: u32, textlength: *mut u32, glyphorientation: *mut DWRITE_VERTICAL_GLYPH_ORIENTATION, bidilevel: *mut u8) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalysisSource1_Impl, - { + pub const fn new() -> IDWriteTextAnalysisSource1_Vtbl { + unsafe extern "system" fn GetVerticalGlyphOrientation(this: *mut core::ffi::c_void, textposition: u32, textlength: *mut u32, glyphorientation: *mut DWRITE_VERTICAL_GLYPH_ORIENTATION, bidilevel: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSource1_Impl::GetVerticalGlyphOrientation(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&glyphorientation), core::mem::transmute_copy(&bidilevel)).into() } @@ -5205,7 +3951,7 @@ impl IDWriteTextAnalysisSource1_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDWriteTextAnalyzer_Impl: Sized { +pub trait IDWriteTextAnalyzer_Impl: Sized + windows_core::IUnknownImpl { fn AnalyzeScript(&self, analysissource: Option<&IDWriteTextAnalysisSource>, textposition: u32, textlength: u32, analysissink: Option<&IDWriteTextAnalysisSink>) -> windows_core::Result<()>; fn AnalyzeBidi(&self, analysissource: Option<&IDWriteTextAnalysisSource>, textposition: u32, textlength: u32, analysissink: Option<&IDWriteTextAnalysisSink>) -> windows_core::Result<()>; fn AnalyzeNumberSubstitution(&self, analysissource: Option<&IDWriteTextAnalysisSource>, textposition: u32, textlength: u32, analysissink: Option<&IDWriteTextAnalysisSink>) -> windows_core::Result<()>; @@ -5216,42 +3962,24 @@ pub trait IDWriteTextAnalyzer_Impl: Sized { } impl windows_core::RuntimeName for IDWriteTextAnalyzer {} impl IDWriteTextAnalyzer_Vtbl { - pub const fn new() -> IDWriteTextAnalyzer_Vtbl - where - Identity: IDWriteTextAnalyzer_Impl, - { - unsafe extern "system" fn AnalyzeScript(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, analysissink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer_Impl, - { + pub const fn new() -> IDWriteTextAnalyzer_Vtbl { + unsafe extern "system" fn AnalyzeScript(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, analysissink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer_Impl::AnalyzeScript(this, windows_core::from_raw_borrowed(&analysissource), core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), windows_core::from_raw_borrowed(&analysissink)).into() } - unsafe extern "system" fn AnalyzeBidi(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, analysissink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer_Impl, - { + unsafe extern "system" fn AnalyzeBidi(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, analysissink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer_Impl::AnalyzeBidi(this, windows_core::from_raw_borrowed(&analysissource), core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), windows_core::from_raw_borrowed(&analysissink)).into() } - unsafe extern "system" fn AnalyzeNumberSubstitution(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, analysissink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer_Impl, - { + unsafe extern "system" fn AnalyzeNumberSubstitution(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, analysissink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer_Impl::AnalyzeNumberSubstitution(this, windows_core::from_raw_borrowed(&analysissource), core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), windows_core::from_raw_borrowed(&analysissink)).into() } - unsafe extern "system" fn AnalyzeLineBreakpoints(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, analysissink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer_Impl, - { + unsafe extern "system" fn AnalyzeLineBreakpoints(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, analysissink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer_Impl::AnalyzeLineBreakpoints(this, windows_core::from_raw_borrowed(&analysissource), core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), windows_core::from_raw_borrowed(&analysissink)).into() } - unsafe extern "system" fn GetGlyphs(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, textlength: u32, fontface: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, numbersubstitution: *mut core::ffi::c_void, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, maxglyphcount: u32, clustermap: *mut u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, glyphindices: *mut u16, glyphprops: *mut DWRITE_SHAPING_GLYPH_PROPERTIES, actualglyphcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer_Impl, - { + unsafe extern "system" fn GetGlyphs(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, textlength: u32, fontface: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, numbersubstitution: *mut core::ffi::c_void, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, maxglyphcount: u32, clustermap: *mut u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, glyphindices: *mut u16, glyphprops: *mut DWRITE_SHAPING_GLYPH_PROPERTIES, actualglyphcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer_Impl::GetGlyphs( this, @@ -5275,10 +4003,7 @@ impl IDWriteTextAnalyzer_Vtbl { ) .into() } - unsafe extern "system" fn GetGlyphPlacements(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, clustermap: *const u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: *mut core::ffi::c_void, fontemsize: f32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer_Impl, - { + unsafe extern "system" fn GetGlyphPlacements(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, clustermap: *const u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: *mut core::ffi::c_void, fontemsize: f32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer_Impl::GetGlyphPlacements( this, @@ -5303,7 +4028,7 @@ impl IDWriteTextAnalyzer_Vtbl { ) .into() } - unsafe extern "system" fn GetGdiCompatibleGlyphPlacements( + unsafe extern "system" fn GetGdiCompatibleGlyphPlacements( this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, clustermap: *const u16, @@ -5326,10 +4051,7 @@ impl IDWriteTextAnalyzer_Vtbl { featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET, - ) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer_Impl::GetGdiCompatibleGlyphPlacements( this, @@ -5385,14 +4107,8 @@ pub trait IDWriteTextAnalyzer1_Impl: Sized + IDWriteTextAnalyzer_Impl { } impl windows_core::RuntimeName for IDWriteTextAnalyzer1 {} impl IDWriteTextAnalyzer1_Vtbl { - pub const fn new() -> IDWriteTextAnalyzer1_Vtbl - where - Identity: IDWriteTextAnalyzer1_Impl, - { - unsafe extern "system" fn ApplyCharacterSpacing(this: *mut core::ffi::c_void, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, textlength: u32, glyphcount: u32, clustermap: *const u16, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, modifiedglyphadvances: *mut f32, modifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer1_Impl, - { + pub const fn new() -> IDWriteTextAnalyzer1_Vtbl { + unsafe extern "system" fn ApplyCharacterSpacing(this: *mut core::ffi::c_void, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, textlength: u32, glyphcount: u32, clustermap: *const u16, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, modifiedglyphadvances: *mut f32, modifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::ApplyCharacterSpacing( this, @@ -5410,59 +4126,35 @@ impl IDWriteTextAnalyzer1_Vtbl { ) .into() } - unsafe extern "system" fn GetBaseline(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, baseline: DWRITE_BASELINE, isvertical: super::super::Foundation::BOOL, issimulationallowed: super::super::Foundation::BOOL, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, baselinecoordinate: *mut i32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer1_Impl, - { + unsafe extern "system" fn GetBaseline(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, baseline: DWRITE_BASELINE, isvertical: super::super::Foundation::BOOL, issimulationallowed: super::super::Foundation::BOOL, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, baselinecoordinate: *mut i32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::GetBaseline(this, windows_core::from_raw_borrowed(&fontface), core::mem::transmute_copy(&baseline), core::mem::transmute_copy(&isvertical), core::mem::transmute_copy(&issimulationallowed), core::mem::transmute(&scriptanalysis), core::mem::transmute(&localename), core::mem::transmute_copy(&baselinecoordinate), core::mem::transmute_copy(&exists)).into() } - unsafe extern "system" fn AnalyzeVerticalGlyphOrientation(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, analysissink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer1_Impl, - { + unsafe extern "system" fn AnalyzeVerticalGlyphOrientation(this: *mut core::ffi::c_void, analysissource: *mut core::ffi::c_void, textposition: u32, textlength: u32, analysissink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::AnalyzeVerticalGlyphOrientation(this, windows_core::from_raw_borrowed(&analysissource), core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), windows_core::from_raw_borrowed(&analysissink)).into() } - unsafe extern "system" fn GetGlyphOrientationTransform(this: *mut core::ffi::c_void, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: super::super::Foundation::BOOL, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer1_Impl, - { + unsafe extern "system" fn GetGlyphOrientationTransform(this: *mut core::ffi::c_void, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: super::super::Foundation::BOOL, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::GetGlyphOrientationTransform(this, core::mem::transmute_copy(&glyphorientationangle), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&transform)).into() } - unsafe extern "system" fn GetScriptProperties(this: *mut core::ffi::c_void, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, scriptproperties: *mut DWRITE_SCRIPT_PROPERTIES) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer1_Impl, - { + unsafe extern "system" fn GetScriptProperties(this: *mut core::ffi::c_void, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, scriptproperties: *mut DWRITE_SCRIPT_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::GetScriptProperties(this, core::mem::transmute(&scriptanalysis), core::mem::transmute_copy(&scriptproperties)).into() } - unsafe extern "system" fn GetTextComplexity(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, textlength: u32, fontface: *mut core::ffi::c_void, istextsimple: *mut super::super::Foundation::BOOL, textlengthread: *mut u32, glyphindices: *mut u16) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer1_Impl, - { + unsafe extern "system" fn GetTextComplexity(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, textlength: u32, fontface: *mut core::ffi::c_void, istextsimple: *mut super::super::Foundation::BOOL, textlengthread: *mut u32, glyphindices: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::GetTextComplexity(this, core::mem::transmute(&textstring), core::mem::transmute_copy(&textlength), windows_core::from_raw_borrowed(&fontface), core::mem::transmute_copy(&istextsimple), core::mem::transmute_copy(&textlengthread), core::mem::transmute_copy(&glyphindices)).into() } - unsafe extern "system" fn GetJustificationOpportunities(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, fontemsize: f32, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, textlength: u32, glyphcount: u32, textstring: windows_core::PCWSTR, clustermap: *const u16, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, justificationopportunities: *mut DWRITE_JUSTIFICATION_OPPORTUNITY) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer1_Impl, - { + unsafe extern "system" fn GetJustificationOpportunities(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, fontemsize: f32, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, textlength: u32, glyphcount: u32, textstring: windows_core::PCWSTR, clustermap: *const u16, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, justificationopportunities: *mut DWRITE_JUSTIFICATION_OPPORTUNITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::GetJustificationOpportunities(this, windows_core::from_raw_borrowed(&fontface), core::mem::transmute_copy(&fontemsize), core::mem::transmute(&scriptanalysis), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&glyphcount), core::mem::transmute(&textstring), core::mem::transmute_copy(&clustermap), core::mem::transmute_copy(&glyphproperties), core::mem::transmute_copy(&justificationopportunities)).into() } - unsafe extern "system" fn JustifyGlyphAdvances(this: *mut core::ffi::c_void, linewidth: f32, glyphcount: u32, justificationopportunities: *const DWRITE_JUSTIFICATION_OPPORTUNITY, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, justifiedglyphadvances: *mut f32, justifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer1_Impl, - { + unsafe extern "system" fn JustifyGlyphAdvances(this: *mut core::ffi::c_void, linewidth: f32, glyphcount: u32, justificationopportunities: *const DWRITE_JUSTIFICATION_OPPORTUNITY, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, justifiedglyphadvances: *mut f32, justifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::JustifyGlyphAdvances(this, core::mem::transmute_copy(&linewidth), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&justificationopportunities), core::mem::transmute_copy(&glyphadvances), core::mem::transmute_copy(&glyphoffsets), core::mem::transmute_copy(&justifiedglyphadvances), core::mem::transmute_copy(&justifiedglyphoffsets)).into() } - unsafe extern "system" fn GetJustifiedGlyphs(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, fontemsize: f32, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, textlength: u32, glyphcount: u32, maxglyphcount: u32, clustermap: *const u16, glyphindices: *const u16, glyphadvances: *const f32, justifiedglyphadvances: *const f32, justifiedglyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, actualglyphcount: *mut u32, modifiedclustermap: *mut u16, modifiedglyphindices: *mut u16, modifiedglyphadvances: *mut f32, modifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer1_Impl, - { + unsafe extern "system" fn GetJustifiedGlyphs(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, fontemsize: f32, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, textlength: u32, glyphcount: u32, maxglyphcount: u32, clustermap: *const u16, glyphindices: *const u16, glyphadvances: *const f32, justifiedglyphadvances: *const f32, justifiedglyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, actualglyphcount: *mut u32, modifiedclustermap: *mut u16, modifiedglyphindices: *mut u16, modifiedglyphadvances: *mut f32, modifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::GetJustifiedGlyphs( this, @@ -5510,28 +4202,16 @@ pub trait IDWriteTextAnalyzer2_Impl: Sized + IDWriteTextAnalyzer1_Impl { } impl windows_core::RuntimeName for IDWriteTextAnalyzer2 {} impl IDWriteTextAnalyzer2_Vtbl { - pub const fn new() -> IDWriteTextAnalyzer2_Vtbl - where - Identity: IDWriteTextAnalyzer2_Impl, - { - unsafe extern "system" fn GetGlyphOrientationTransform(this: *mut core::ffi::c_void, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: super::super::Foundation::BOOL, originx: f32, originy: f32, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer2_Impl, - { + pub const fn new() -> IDWriteTextAnalyzer2_Vtbl { + unsafe extern "system" fn GetGlyphOrientationTransform(this: *mut core::ffi::c_void, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: super::super::Foundation::BOOL, originx: f32, originy: f32, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer2_Impl::GetGlyphOrientationTransform(this, core::mem::transmute_copy(&glyphorientationangle), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&originx), core::mem::transmute_copy(&originy), core::mem::transmute_copy(&transform)).into() } - unsafe extern "system" fn GetTypographicFeatures(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, maxtagcount: u32, actualtagcount: *mut u32, tags: *mut DWRITE_FONT_FEATURE_TAG) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer2_Impl, - { + unsafe extern "system" fn GetTypographicFeatures(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, maxtagcount: u32, actualtagcount: *mut u32, tags: *mut DWRITE_FONT_FEATURE_TAG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer2_Impl::GetTypographicFeatures(this, windows_core::from_raw_borrowed(&fontface), core::mem::transmute(&scriptanalysis), core::mem::transmute(&localename), core::mem::transmute_copy(&maxtagcount), core::mem::transmute_copy(&actualtagcount), core::mem::transmute_copy(&tags)).into() } - unsafe extern "system" fn CheckTypographicFeature(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, featuretag: DWRITE_FONT_FEATURE_TAG, glyphcount: u32, glyphindices: *const u16, featureapplies: *mut u8) -> windows_core::HRESULT - where - Identity: IDWriteTextAnalyzer2_Impl, - { + unsafe extern "system" fn CheckTypographicFeature(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, featuretag: DWRITE_FONT_FEATURE_TAG, glyphcount: u32, glyphindices: *const u16, featureapplies: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer2_Impl::CheckTypographicFeature(this, windows_core::from_raw_borrowed(&fontface), core::mem::transmute(&scriptanalysis), core::mem::transmute(&localename), core::mem::transmute_copy(&featuretag), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&featureapplies)).into() } @@ -5546,7 +4226,7 @@ impl IDWriteTextAnalyzer2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteTextFormat_Impl: Sized { +pub trait IDWriteTextFormat_Impl: Sized + windows_core::IUnknownImpl { fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> windows_core::Result<()>; fn SetParagraphAlignment(&self, paragraphalignment: DWRITE_PARAGRAPH_ALIGNMENT) -> windows_core::Result<()>; fn SetWordWrapping(&self, wordwrapping: DWRITE_WORD_WRAPPING) -> windows_core::Result<()>; @@ -5575,126 +4255,72 @@ pub trait IDWriteTextFormat_Impl: Sized { } impl windows_core::RuntimeName for IDWriteTextFormat {} impl IDWriteTextFormat_Vtbl { - pub const fn new() -> IDWriteTextFormat_Vtbl - where - Identity: IDWriteTextFormat_Impl, - { - unsafe extern "system" fn SetTextAlignment(this: *mut core::ffi::c_void, textalignment: DWRITE_TEXT_ALIGNMENT) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + pub const fn new() -> IDWriteTextFormat_Vtbl { + unsafe extern "system" fn SetTextAlignment(this: *mut core::ffi::c_void, textalignment: DWRITE_TEXT_ALIGNMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::SetTextAlignment(this, core::mem::transmute_copy(&textalignment)).into() } - unsafe extern "system" fn SetParagraphAlignment(this: *mut core::ffi::c_void, paragraphalignment: DWRITE_PARAGRAPH_ALIGNMENT) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn SetParagraphAlignment(this: *mut core::ffi::c_void, paragraphalignment: DWRITE_PARAGRAPH_ALIGNMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::SetParagraphAlignment(this, core::mem::transmute_copy(¶graphalignment)).into() } - unsafe extern "system" fn SetWordWrapping(this: *mut core::ffi::c_void, wordwrapping: DWRITE_WORD_WRAPPING) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn SetWordWrapping(this: *mut core::ffi::c_void, wordwrapping: DWRITE_WORD_WRAPPING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::SetWordWrapping(this, core::mem::transmute_copy(&wordwrapping)).into() } - unsafe extern "system" fn SetReadingDirection(this: *mut core::ffi::c_void, readingdirection: DWRITE_READING_DIRECTION) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn SetReadingDirection(this: *mut core::ffi::c_void, readingdirection: DWRITE_READING_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::SetReadingDirection(this, core::mem::transmute_copy(&readingdirection)).into() } - unsafe extern "system" fn SetFlowDirection(this: *mut core::ffi::c_void, flowdirection: DWRITE_FLOW_DIRECTION) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn SetFlowDirection(this: *mut core::ffi::c_void, flowdirection: DWRITE_FLOW_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::SetFlowDirection(this, core::mem::transmute_copy(&flowdirection)).into() } - unsafe extern "system" fn SetIncrementalTabStop(this: *mut core::ffi::c_void, incrementaltabstop: f32) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn SetIncrementalTabStop(this: *mut core::ffi::c_void, incrementaltabstop: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::SetIncrementalTabStop(this, core::mem::transmute_copy(&incrementaltabstop)).into() } - unsafe extern "system" fn SetTrimming(this: *mut core::ffi::c_void, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn SetTrimming(this: *mut core::ffi::c_void, trimmingoptions: *const DWRITE_TRIMMING, trimmingsign: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::SetTrimming(this, core::mem::transmute_copy(&trimmingoptions), windows_core::from_raw_borrowed(&trimmingsign)).into() } - unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, linespacingmethod: DWRITE_LINE_SPACING_METHOD, linespacing: f32, baseline: f32) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, linespacingmethod: DWRITE_LINE_SPACING_METHOD, linespacing: f32, baseline: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::SetLineSpacing(this, core::mem::transmute_copy(&linespacingmethod), core::mem::transmute_copy(&linespacing), core::mem::transmute_copy(&baseline)).into() } - unsafe extern "system" fn GetTextAlignment(this: *mut core::ffi::c_void) -> DWRITE_TEXT_ALIGNMENT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetTextAlignment(this: *mut core::ffi::c_void) -> DWRITE_TEXT_ALIGNMENT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetTextAlignment(this) } - unsafe extern "system" fn GetParagraphAlignment(this: *mut core::ffi::c_void) -> DWRITE_PARAGRAPH_ALIGNMENT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetParagraphAlignment(this: *mut core::ffi::c_void) -> DWRITE_PARAGRAPH_ALIGNMENT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetParagraphAlignment(this) } - unsafe extern "system" fn GetWordWrapping(this: *mut core::ffi::c_void) -> DWRITE_WORD_WRAPPING - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetWordWrapping(this: *mut core::ffi::c_void) -> DWRITE_WORD_WRAPPING { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetWordWrapping(this) } - unsafe extern "system" fn GetReadingDirection(this: *mut core::ffi::c_void) -> DWRITE_READING_DIRECTION - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetReadingDirection(this: *mut core::ffi::c_void) -> DWRITE_READING_DIRECTION { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetReadingDirection(this) } - unsafe extern "system" fn GetFlowDirection(this: *mut core::ffi::c_void) -> DWRITE_FLOW_DIRECTION - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetFlowDirection(this: *mut core::ffi::c_void) -> DWRITE_FLOW_DIRECTION { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetFlowDirection(this) } - unsafe extern "system" fn GetIncrementalTabStop(this: *mut core::ffi::c_void) -> f32 - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetIncrementalTabStop(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetIncrementalTabStop(this) } - unsafe extern "system" fn GetTrimming(this: *mut core::ffi::c_void, trimmingoptions: *mut DWRITE_TRIMMING, trimmingsign: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetTrimming(this: *mut core::ffi::c_void, trimmingoptions: *mut DWRITE_TRIMMING, trimmingsign: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetTrimming(this, core::mem::transmute_copy(&trimmingoptions), core::mem::transmute_copy(&trimmingsign)).into() } - unsafe extern "system" fn GetLineSpacing(this: *mut core::ffi::c_void, linespacingmethod: *mut DWRITE_LINE_SPACING_METHOD, linespacing: *mut f32, baseline: *mut f32) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetLineSpacing(this: *mut core::ffi::c_void, linespacingmethod: *mut DWRITE_LINE_SPACING_METHOD, linespacing: *mut f32, baseline: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetLineSpacing(this, core::mem::transmute_copy(&linespacingmethod), core::mem::transmute_copy(&linespacing), core::mem::transmute_copy(&baseline)).into() } - unsafe extern "system" fn GetFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteTextFormat_Impl::GetFontCollection(this) { Ok(ok__) => { @@ -5704,59 +4330,35 @@ impl IDWriteTextFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontFamilyNameLength(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetFontFamilyNameLength(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetFontFamilyNameLength(this) } - unsafe extern "system" fn GetFontFamilyName(this: *mut core::ffi::c_void, fontfamilyname: windows_core::PWSTR, namesize: u32) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetFontFamilyName(this: *mut core::ffi::c_void, fontfamilyname: windows_core::PWSTR, namesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetFontFamilyName(this, core::mem::transmute_copy(&fontfamilyname), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetFontWeight(this: *mut core::ffi::c_void) -> DWRITE_FONT_WEIGHT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetFontWeight(this: *mut core::ffi::c_void) -> DWRITE_FONT_WEIGHT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetFontWeight(this) } - unsafe extern "system" fn GetFontStyle(this: *mut core::ffi::c_void) -> DWRITE_FONT_STYLE - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetFontStyle(this: *mut core::ffi::c_void) -> DWRITE_FONT_STYLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetFontStyle(this) } - unsafe extern "system" fn GetFontStretch(this: *mut core::ffi::c_void) -> DWRITE_FONT_STRETCH - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetFontStretch(this: *mut core::ffi::c_void) -> DWRITE_FONT_STRETCH { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetFontStretch(this) } - unsafe extern "system" fn GetFontSize(this: *mut core::ffi::c_void) -> f32 - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetFontSize(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetFontSize(this) } - unsafe extern "system" fn GetLocaleNameLength(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetLocaleNameLength(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetLocaleNameLength(this) } - unsafe extern "system" fn GetLocaleName(this: *mut core::ffi::c_void, localename: windows_core::PWSTR, namesize: u32) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat_Impl, - { + unsafe extern "system" fn GetLocaleName(this: *mut core::ffi::c_void, localename: windows_core::PWSTR, namesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat_Impl::GetLocaleName(this, core::mem::transmute_copy(&localename), core::mem::transmute_copy(&namesize)).into() } @@ -5805,63 +4407,36 @@ pub trait IDWriteTextFormat1_Impl: Sized + IDWriteTextFormat_Impl { } impl windows_core::RuntimeName for IDWriteTextFormat1 {} impl IDWriteTextFormat1_Vtbl { - pub const fn new() -> IDWriteTextFormat1_Vtbl - where - Identity: IDWriteTextFormat1_Impl, - { - unsafe extern "system" fn SetVerticalGlyphOrientation(this: *mut core::ffi::c_void, glyphorientation: DWRITE_VERTICAL_GLYPH_ORIENTATION) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat1_Impl, - { + pub const fn new() -> IDWriteTextFormat1_Vtbl { + unsafe extern "system" fn SetVerticalGlyphOrientation(this: *mut core::ffi::c_void, glyphorientation: DWRITE_VERTICAL_GLYPH_ORIENTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat1_Impl::SetVerticalGlyphOrientation(this, core::mem::transmute_copy(&glyphorientation)).into() } - unsafe extern "system" fn GetVerticalGlyphOrientation(this: *mut core::ffi::c_void) -> DWRITE_VERTICAL_GLYPH_ORIENTATION - where - Identity: IDWriteTextFormat1_Impl, - { + unsafe extern "system" fn GetVerticalGlyphOrientation(this: *mut core::ffi::c_void) -> DWRITE_VERTICAL_GLYPH_ORIENTATION { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat1_Impl::GetVerticalGlyphOrientation(this) } - unsafe extern "system" fn SetLastLineWrapping(this: *mut core::ffi::c_void, islastlinewrappingenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat1_Impl, - { + unsafe extern "system" fn SetLastLineWrapping(this: *mut core::ffi::c_void, islastlinewrappingenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat1_Impl::SetLastLineWrapping(this, core::mem::transmute_copy(&islastlinewrappingenabled)).into() } - unsafe extern "system" fn GetLastLineWrapping(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteTextFormat1_Impl, - { + unsafe extern "system" fn GetLastLineWrapping(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat1_Impl::GetLastLineWrapping(this) } - unsafe extern "system" fn SetOpticalAlignment(this: *mut core::ffi::c_void, opticalalignment: DWRITE_OPTICAL_ALIGNMENT) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat1_Impl, - { + unsafe extern "system" fn SetOpticalAlignment(this: *mut core::ffi::c_void, opticalalignment: DWRITE_OPTICAL_ALIGNMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat1_Impl::SetOpticalAlignment(this, core::mem::transmute_copy(&opticalalignment)).into() } - unsafe extern "system" fn GetOpticalAlignment(this: *mut core::ffi::c_void) -> DWRITE_OPTICAL_ALIGNMENT - where - Identity: IDWriteTextFormat1_Impl, - { + unsafe extern "system" fn GetOpticalAlignment(this: *mut core::ffi::c_void) -> DWRITE_OPTICAL_ALIGNMENT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat1_Impl::GetOpticalAlignment(this) } - unsafe extern "system" fn SetFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat1_Impl, - { + unsafe extern "system" fn SetFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat1_Impl::SetFontFallback(this, windows_core::from_raw_borrowed(&fontfallback)).into() } - unsafe extern "system" fn GetFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat1_Impl, - { + unsafe extern "system" fn GetFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteTextFormat1_Impl::GetFontFallback(this) { Ok(ok__) => { @@ -5893,21 +4468,12 @@ pub trait IDWriteTextFormat2_Impl: Sized + IDWriteTextFormat1_Impl { } impl windows_core::RuntimeName for IDWriteTextFormat2 {} impl IDWriteTextFormat2_Vtbl { - pub const fn new() -> IDWriteTextFormat2_Vtbl - where - Identity: IDWriteTextFormat2_Impl, - { - unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, linespacingoptions: *const DWRITE_LINE_SPACING) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat2_Impl, - { + pub const fn new() -> IDWriteTextFormat2_Vtbl { + unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, linespacingoptions: *const DWRITE_LINE_SPACING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat2_Impl::SetLineSpacing(this, core::mem::transmute_copy(&linespacingoptions)).into() } - unsafe extern "system" fn GetLineSpacing(this: *mut core::ffi::c_void, linespacingoptions: *mut DWRITE_LINE_SPACING) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat2_Impl, - { + unsafe extern "system" fn GetLineSpacing(this: *mut core::ffi::c_void, linespacingoptions: *mut DWRITE_LINE_SPACING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat2_Impl::GetLineSpacing(this, core::mem::transmute_copy(&linespacingoptions)).into() } @@ -5930,42 +4496,24 @@ pub trait IDWriteTextFormat3_Impl: Sized + IDWriteTextFormat2_Impl { } impl windows_core::RuntimeName for IDWriteTextFormat3 {} impl IDWriteTextFormat3_Vtbl { - pub const fn new() -> IDWriteTextFormat3_Vtbl - where - Identity: IDWriteTextFormat3_Impl, - { - unsafe extern "system" fn SetFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat3_Impl, - { + pub const fn new() -> IDWriteTextFormat3_Vtbl { + unsafe extern "system" fn SetFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat3_Impl::SetFontAxisValues(this, core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)).into() } - unsafe extern "system" fn GetFontAxisValueCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteTextFormat3_Impl, - { + unsafe extern "system" fn GetFontAxisValueCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat3_Impl::GetFontAxisValueCount(this) } - unsafe extern "system" fn GetFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat3_Impl, - { + unsafe extern "system" fn GetFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat3_Impl::GetFontAxisValues(this, core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)).into() } - unsafe extern "system" fn GetAutomaticFontAxes(this: *mut core::ffi::c_void) -> DWRITE_AUTOMATIC_FONT_AXES - where - Identity: IDWriteTextFormat3_Impl, - { + unsafe extern "system" fn GetAutomaticFontAxes(this: *mut core::ffi::c_void) -> DWRITE_AUTOMATIC_FONT_AXES { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat3_Impl::GetAutomaticFontAxes(this) } - unsafe extern "system" fn SetAutomaticFontAxes(this: *mut core::ffi::c_void, automaticfontaxes: DWRITE_AUTOMATIC_FONT_AXES) -> windows_core::HRESULT - where - Identity: IDWriteTextFormat3_Impl, - { + unsafe extern "system" fn SetAutomaticFontAxes(this: *mut core::ffi::c_void, automaticfontaxes: DWRITE_AUTOMATIC_FONT_AXES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat3_Impl::SetAutomaticFontAxes(this, core::mem::transmute_copy(&automaticfontaxes)).into() } @@ -6025,245 +4573,140 @@ pub trait IDWriteTextLayout_Impl: Sized + IDWriteTextFormat_Impl { } impl windows_core::RuntimeName for IDWriteTextLayout {} impl IDWriteTextLayout_Vtbl { - pub const fn new() -> IDWriteTextLayout_Vtbl - where - Identity: IDWriteTextLayout_Impl, - { - unsafe extern "system" fn SetMaxWidth(this: *mut core::ffi::c_void, maxwidth: f32) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + pub const fn new() -> IDWriteTextLayout_Vtbl { + unsafe extern "system" fn SetMaxWidth(this: *mut core::ffi::c_void, maxwidth: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetMaxWidth(this, core::mem::transmute_copy(&maxwidth)).into() } - unsafe extern "system" fn SetMaxHeight(this: *mut core::ffi::c_void, maxheight: f32) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetMaxHeight(this: *mut core::ffi::c_void, maxheight: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetMaxHeight(this, core::mem::transmute_copy(&maxheight)).into() } - unsafe extern "system" fn SetFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut core::ffi::c_void, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut core::ffi::c_void, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetFontCollection(this, windows_core::from_raw_borrowed(&fontcollection), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetFontFamilyName(this: *mut core::ffi::c_void, fontfamilyname: windows_core::PCWSTR, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetFontFamilyName(this: *mut core::ffi::c_void, fontfamilyname: windows_core::PCWSTR, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetFontFamilyName(this, core::mem::transmute(&fontfamilyname), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetFontWeight(this: *mut core::ffi::c_void, fontweight: DWRITE_FONT_WEIGHT, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetFontWeight(this: *mut core::ffi::c_void, fontweight: DWRITE_FONT_WEIGHT, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetFontWeight(this, core::mem::transmute_copy(&fontweight), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetFontStyle(this: *mut core::ffi::c_void, fontstyle: DWRITE_FONT_STYLE, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetFontStyle(this: *mut core::ffi::c_void, fontstyle: DWRITE_FONT_STYLE, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetFontStyle(this, core::mem::transmute_copy(&fontstyle), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetFontStretch(this: *mut core::ffi::c_void, fontstretch: DWRITE_FONT_STRETCH, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetFontStretch(this: *mut core::ffi::c_void, fontstretch: DWRITE_FONT_STRETCH, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetFontStretch(this, core::mem::transmute_copy(&fontstretch), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetFontSize(this: *mut core::ffi::c_void, fontsize: f32, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetFontSize(this: *mut core::ffi::c_void, fontsize: f32, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetFontSize(this, core::mem::transmute_copy(&fontsize), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, hasunderline: super::super::Foundation::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, hasunderline: super::super::Foundation::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetUnderline(this, core::mem::transmute_copy(&hasunderline), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetStrikethrough(this: *mut core::ffi::c_void, hasstrikethrough: super::super::Foundation::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetStrikethrough(this: *mut core::ffi::c_void, hasstrikethrough: super::super::Foundation::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetStrikethrough(this, core::mem::transmute_copy(&hasstrikethrough), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetDrawingEffect(this: *mut core::ffi::c_void, drawingeffect: *mut core::ffi::c_void, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetDrawingEffect(this: *mut core::ffi::c_void, drawingeffect: *mut core::ffi::c_void, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetDrawingEffect(this, windows_core::from_raw_borrowed(&drawingeffect), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetInlineObject(this: *mut core::ffi::c_void, inlineobject: *mut core::ffi::c_void, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetInlineObject(this: *mut core::ffi::c_void, inlineobject: *mut core::ffi::c_void, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetInlineObject(this, windows_core::from_raw_borrowed(&inlineobject), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetTypography(this: *mut core::ffi::c_void, typography: *mut core::ffi::c_void, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetTypography(this: *mut core::ffi::c_void, typography: *mut core::ffi::c_void, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetTypography(this, windows_core::from_raw_borrowed(&typography), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn SetLocaleName(this: *mut core::ffi::c_void, localename: windows_core::PCWSTR, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn SetLocaleName(this: *mut core::ffi::c_void, localename: windows_core::PCWSTR, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetLocaleName(this, core::mem::transmute(&localename), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn GetMaxWidth(this: *mut core::ffi::c_void) -> f32 - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetMaxWidth(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetMaxWidth(this) } - unsafe extern "system" fn GetMaxHeight(this: *mut core::ffi::c_void) -> f32 - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetMaxHeight(this: *mut core::ffi::c_void) -> f32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetMaxHeight(this) } - unsafe extern "system" fn GetFontCollection(this: *mut core::ffi::c_void, currentposition: u32, fontcollection: *mut *mut core::ffi::c_void, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetFontCollection(this: *mut core::ffi::c_void, currentposition: u32, fontcollection: *mut *mut core::ffi::c_void, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetFontCollection(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&fontcollection), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetFontFamilyNameLength(this: *mut core::ffi::c_void, currentposition: u32, namelength: *mut u32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetFontFamilyNameLength(this: *mut core::ffi::c_void, currentposition: u32, namelength: *mut u32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetFontFamilyNameLength(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&namelength), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetFontFamilyName(this: *mut core::ffi::c_void, currentposition: u32, fontfamilyname: windows_core::PWSTR, namesize: u32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetFontFamilyName(this: *mut core::ffi::c_void, currentposition: u32, fontfamilyname: windows_core::PWSTR, namesize: u32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetFontFamilyName(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&fontfamilyname), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetFontWeight(this: *mut core::ffi::c_void, currentposition: u32, fontweight: *mut DWRITE_FONT_WEIGHT, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetFontWeight(this: *mut core::ffi::c_void, currentposition: u32, fontweight: *mut DWRITE_FONT_WEIGHT, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetFontWeight(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&fontweight), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetFontStyle(this: *mut core::ffi::c_void, currentposition: u32, fontstyle: *mut DWRITE_FONT_STYLE, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetFontStyle(this: *mut core::ffi::c_void, currentposition: u32, fontstyle: *mut DWRITE_FONT_STYLE, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetFontStyle(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&fontstyle), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetFontStretch(this: *mut core::ffi::c_void, currentposition: u32, fontstretch: *mut DWRITE_FONT_STRETCH, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetFontStretch(this: *mut core::ffi::c_void, currentposition: u32, fontstretch: *mut DWRITE_FONT_STRETCH, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetFontStretch(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&fontstretch), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetFontSize(this: *mut core::ffi::c_void, currentposition: u32, fontsize: *mut f32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetFontSize(this: *mut core::ffi::c_void, currentposition: u32, fontsize: *mut f32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetFontSize(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&fontsize), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetUnderline(this: *mut core::ffi::c_void, currentposition: u32, hasunderline: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetUnderline(this: *mut core::ffi::c_void, currentposition: u32, hasunderline: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetUnderline(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&hasunderline), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetStrikethrough(this: *mut core::ffi::c_void, currentposition: u32, hasstrikethrough: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetStrikethrough(this: *mut core::ffi::c_void, currentposition: u32, hasstrikethrough: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetStrikethrough(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&hasstrikethrough), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetDrawingEffect(this: *mut core::ffi::c_void, currentposition: u32, drawingeffect: *mut *mut core::ffi::c_void, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetDrawingEffect(this: *mut core::ffi::c_void, currentposition: u32, drawingeffect: *mut *mut core::ffi::c_void, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetDrawingEffect(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&drawingeffect), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetInlineObject(this: *mut core::ffi::c_void, currentposition: u32, inlineobject: *mut *mut core::ffi::c_void, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetInlineObject(this: *mut core::ffi::c_void, currentposition: u32, inlineobject: *mut *mut core::ffi::c_void, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetInlineObject(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&inlineobject), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetTypography(this: *mut core::ffi::c_void, currentposition: u32, typography: *mut *mut core::ffi::c_void, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetTypography(this: *mut core::ffi::c_void, currentposition: u32, typography: *mut *mut core::ffi::c_void, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetTypography(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&typography), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetLocaleNameLength(this: *mut core::ffi::c_void, currentposition: u32, namelength: *mut u32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetLocaleNameLength(this: *mut core::ffi::c_void, currentposition: u32, namelength: *mut u32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetLocaleNameLength(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&namelength), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetLocaleName(this: *mut core::ffi::c_void, currentposition: u32, localename: windows_core::PWSTR, namesize: u32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetLocaleName(this: *mut core::ffi::c_void, currentposition: u32, localename: windows_core::PWSTR, namesize: u32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetLocaleName(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&localename), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, renderer: *mut core::ffi::c_void, originx: f32, originy: f32) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, renderer: *mut core::ffi::c_void, originx: f32, originy: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::Draw(this, core::mem::transmute_copy(&clientdrawingcontext), windows_core::from_raw_borrowed(&renderer), core::mem::transmute_copy(&originx), core::mem::transmute_copy(&originy)).into() } - unsafe extern "system" fn GetLineMetrics(this: *mut core::ffi::c_void, linemetrics: *mut DWRITE_LINE_METRICS, maxlinecount: u32, actuallinecount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetLineMetrics(this: *mut core::ffi::c_void, linemetrics: *mut DWRITE_LINE_METRICS, maxlinecount: u32, actuallinecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetLineMetrics(this, core::mem::transmute_copy(&linemetrics), core::mem::transmute_copy(&maxlinecount), core::mem::transmute_copy(&actuallinecount)).into() } - unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, textmetrics: *mut DWRITE_TEXT_METRICS) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, textmetrics: *mut DWRITE_TEXT_METRICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetMetrics(this, core::mem::transmute_copy(&textmetrics)).into() } - unsafe extern "system" fn GetOverhangMetrics(this: *mut core::ffi::c_void, overhangs: *mut DWRITE_OVERHANG_METRICS) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetOverhangMetrics(this: *mut core::ffi::c_void, overhangs: *mut DWRITE_OVERHANG_METRICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteTextLayout_Impl::GetOverhangMetrics(this) { Ok(ok__) => { @@ -6273,17 +4716,11 @@ impl IDWriteTextLayout_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClusterMetrics(this: *mut core::ffi::c_void, clustermetrics: *mut DWRITE_CLUSTER_METRICS, maxclustercount: u32, actualclustercount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn GetClusterMetrics(this: *mut core::ffi::c_void, clustermetrics: *mut DWRITE_CLUSTER_METRICS, maxclustercount: u32, actualclustercount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetClusterMetrics(this, core::mem::transmute_copy(&clustermetrics), core::mem::transmute_copy(&maxclustercount), core::mem::transmute_copy(&actualclustercount)).into() } - unsafe extern "system" fn DetermineMinWidth(this: *mut core::ffi::c_void, minwidth: *mut f32) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn DetermineMinWidth(this: *mut core::ffi::c_void, minwidth: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteTextLayout_Impl::DetermineMinWidth(this) { Ok(ok__) => { @@ -6293,24 +4730,15 @@ impl IDWriteTextLayout_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HitTestPoint(this: *mut core::ffi::c_void, pointx: f32, pointy: f32, istrailinghit: *mut super::super::Foundation::BOOL, isinside: *mut super::super::Foundation::BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn HitTestPoint(this: *mut core::ffi::c_void, pointx: f32, pointy: f32, istrailinghit: *mut super::super::Foundation::BOOL, isinside: *mut super::super::Foundation::BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::HitTestPoint(this, core::mem::transmute_copy(&pointx), core::mem::transmute_copy(&pointy), core::mem::transmute_copy(&istrailinghit), core::mem::transmute_copy(&isinside), core::mem::transmute_copy(&hittestmetrics)).into() } - unsafe extern "system" fn HitTestTextPosition(this: *mut core::ffi::c_void, textposition: u32, istrailinghit: super::super::Foundation::BOOL, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn HitTestTextPosition(this: *mut core::ffi::c_void, textposition: u32, istrailinghit: super::super::Foundation::BOOL, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::HitTestTextPosition(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&istrailinghit), core::mem::transmute_copy(&pointx), core::mem::transmute_copy(&pointy), core::mem::transmute_copy(&hittestmetrics)).into() } - unsafe extern "system" fn HitTestTextRange(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, originx: f32, originy: f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS, maxhittestmetricscount: u32, actualhittestmetricscount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout_Impl, - { + unsafe extern "system" fn HitTestTextRange(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, originx: f32, originy: f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS, maxhittestmetricscount: u32, actualhittestmetricscount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::HitTestTextRange(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&originx), core::mem::transmute_copy(&originy), core::mem::transmute_copy(&hittestmetrics), core::mem::transmute_copy(&maxhittestmetricscount), core::mem::transmute_copy(&actualhittestmetricscount)).into() } @@ -6369,35 +4797,20 @@ pub trait IDWriteTextLayout1_Impl: Sized + IDWriteTextLayout_Impl { } impl windows_core::RuntimeName for IDWriteTextLayout1 {} impl IDWriteTextLayout1_Vtbl { - pub const fn new() -> IDWriteTextLayout1_Vtbl - where - Identity: IDWriteTextLayout1_Impl, - { - unsafe extern "system" fn SetPairKerning(this: *mut core::ffi::c_void, ispairkerningenabled: super::super::Foundation::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout1_Impl, - { + pub const fn new() -> IDWriteTextLayout1_Vtbl { + unsafe extern "system" fn SetPairKerning(this: *mut core::ffi::c_void, ispairkerningenabled: super::super::Foundation::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout1_Impl::SetPairKerning(this, core::mem::transmute_copy(&ispairkerningenabled), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn GetPairKerning(this: *mut core::ffi::c_void, currentposition: u32, ispairkerningenabled: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout1_Impl, - { + unsafe extern "system" fn GetPairKerning(this: *mut core::ffi::c_void, currentposition: u32, ispairkerningenabled: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout1_Impl::GetPairKerning(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&ispairkerningenabled), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn SetCharacterSpacing(this: *mut core::ffi::c_void, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout1_Impl, - { + unsafe extern "system" fn SetCharacterSpacing(this: *mut core::ffi::c_void, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout1_Impl::SetCharacterSpacing(this, core::mem::transmute_copy(&leadingspacing), core::mem::transmute_copy(&trailingspacing), core::mem::transmute_copy(&minimumadvancewidth), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn GetCharacterSpacing(this: *mut core::ffi::c_void, currentposition: u32, leadingspacing: *mut f32, trailingspacing: *mut f32, minimumadvancewidth: *mut f32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout1_Impl, - { + unsafe extern "system" fn GetCharacterSpacing(this: *mut core::ffi::c_void, currentposition: u32, leadingspacing: *mut f32, trailingspacing: *mut f32, minimumadvancewidth: *mut f32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout1_Impl::GetCharacterSpacing(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&leadingspacing), core::mem::transmute_copy(&trailingspacing), core::mem::transmute_copy(&minimumadvancewidth), core::mem::transmute_copy(&textrange)).into() } @@ -6426,70 +4839,40 @@ pub trait IDWriteTextLayout2_Impl: Sized + IDWriteTextLayout1_Impl { } impl windows_core::RuntimeName for IDWriteTextLayout2 {} impl IDWriteTextLayout2_Vtbl { - pub const fn new() -> IDWriteTextLayout2_Vtbl - where - Identity: IDWriteTextLayout2_Impl, - { - unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, textmetrics: *mut DWRITE_TEXT_METRICS1) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout2_Impl, - { + pub const fn new() -> IDWriteTextLayout2_Vtbl { + unsafe extern "system" fn GetMetrics(this: *mut core::ffi::c_void, textmetrics: *mut DWRITE_TEXT_METRICS1) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout2_Impl::GetMetrics(this, core::mem::transmute_copy(&textmetrics)).into() } - unsafe extern "system" fn SetVerticalGlyphOrientation(this: *mut core::ffi::c_void, glyphorientation: DWRITE_VERTICAL_GLYPH_ORIENTATION) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout2_Impl, - { + unsafe extern "system" fn SetVerticalGlyphOrientation(this: *mut core::ffi::c_void, glyphorientation: DWRITE_VERTICAL_GLYPH_ORIENTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout2_Impl::SetVerticalGlyphOrientation(this, core::mem::transmute_copy(&glyphorientation)).into() } - unsafe extern "system" fn GetVerticalGlyphOrientation(this: *mut core::ffi::c_void) -> DWRITE_VERTICAL_GLYPH_ORIENTATION - where - Identity: IDWriteTextLayout2_Impl, - { + unsafe extern "system" fn GetVerticalGlyphOrientation(this: *mut core::ffi::c_void) -> DWRITE_VERTICAL_GLYPH_ORIENTATION { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout2_Impl::GetVerticalGlyphOrientation(this) } - unsafe extern "system" fn SetLastLineWrapping(this: *mut core::ffi::c_void, islastlinewrappingenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout2_Impl, - { + unsafe extern "system" fn SetLastLineWrapping(this: *mut core::ffi::c_void, islastlinewrappingenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout2_Impl::SetLastLineWrapping(this, core::mem::transmute_copy(&islastlinewrappingenabled)).into() } - unsafe extern "system" fn GetLastLineWrapping(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDWriteTextLayout2_Impl, - { + unsafe extern "system" fn GetLastLineWrapping(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout2_Impl::GetLastLineWrapping(this) } - unsafe extern "system" fn SetOpticalAlignment(this: *mut core::ffi::c_void, opticalalignment: DWRITE_OPTICAL_ALIGNMENT) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout2_Impl, - { + unsafe extern "system" fn SetOpticalAlignment(this: *mut core::ffi::c_void, opticalalignment: DWRITE_OPTICAL_ALIGNMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout2_Impl::SetOpticalAlignment(this, core::mem::transmute_copy(&opticalalignment)).into() } - unsafe extern "system" fn GetOpticalAlignment(this: *mut core::ffi::c_void) -> DWRITE_OPTICAL_ALIGNMENT - where - Identity: IDWriteTextLayout2_Impl, - { + unsafe extern "system" fn GetOpticalAlignment(this: *mut core::ffi::c_void) -> DWRITE_OPTICAL_ALIGNMENT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout2_Impl::GetOpticalAlignment(this) } - unsafe extern "system" fn SetFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout2_Impl, - { + unsafe extern "system" fn SetFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout2_Impl::SetFontFallback(this, windows_core::from_raw_borrowed(&fontfallback)).into() } - unsafe extern "system" fn GetFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout2_Impl, - { + unsafe extern "system" fn GetFontFallback(this: *mut core::ffi::c_void, fontfallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteTextLayout2_Impl::GetFontFallback(this) { Ok(ok__) => { @@ -6524,35 +4907,20 @@ pub trait IDWriteTextLayout3_Impl: Sized + IDWriteTextLayout2_Impl { } impl windows_core::RuntimeName for IDWriteTextLayout3 {} impl IDWriteTextLayout3_Vtbl { - pub const fn new() -> IDWriteTextLayout3_Vtbl - where - Identity: IDWriteTextLayout3_Impl, - { - unsafe extern "system" fn InvalidateLayout(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout3_Impl, - { + pub const fn new() -> IDWriteTextLayout3_Vtbl { + unsafe extern "system" fn InvalidateLayout(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout3_Impl::InvalidateLayout(this).into() } - unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, linespacingoptions: *const DWRITE_LINE_SPACING) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout3_Impl, - { + unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, linespacingoptions: *const DWRITE_LINE_SPACING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout3_Impl::SetLineSpacing(this, core::mem::transmute_copy(&linespacingoptions)).into() } - unsafe extern "system" fn GetLineSpacing(this: *mut core::ffi::c_void, linespacingoptions: *mut DWRITE_LINE_SPACING) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout3_Impl, - { + unsafe extern "system" fn GetLineSpacing(this: *mut core::ffi::c_void, linespacingoptions: *mut DWRITE_LINE_SPACING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout3_Impl::GetLineSpacing(this, core::mem::transmute_copy(&linespacingoptions)).into() } - unsafe extern "system" fn GetLineMetrics(this: *mut core::ffi::c_void, linemetrics: *mut DWRITE_LINE_METRICS1, maxlinecount: u32, actuallinecount: *mut u32) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout3_Impl, - { + unsafe extern "system" fn GetLineMetrics(this: *mut core::ffi::c_void, linemetrics: *mut DWRITE_LINE_METRICS1, maxlinecount: u32, actuallinecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout3_Impl::GetLineMetrics(this, core::mem::transmute_copy(&linemetrics), core::mem::transmute_copy(&maxlinecount), core::mem::transmute_copy(&actuallinecount)).into() } @@ -6577,42 +4945,24 @@ pub trait IDWriteTextLayout4_Impl: Sized + IDWriteTextLayout3_Impl { } impl windows_core::RuntimeName for IDWriteTextLayout4 {} impl IDWriteTextLayout4_Vtbl { - pub const fn new() -> IDWriteTextLayout4_Vtbl - where - Identity: IDWriteTextLayout4_Impl, - { - unsafe extern "system" fn SetFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout4_Impl, - { + pub const fn new() -> IDWriteTextLayout4_Vtbl { + unsafe extern "system" fn SetFontAxisValues(this: *mut core::ffi::c_void, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout4_Impl::SetFontAxisValues(this, core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount), core::mem::transmute(&textrange)).into() } - unsafe extern "system" fn GetFontAxisValueCount(this: *mut core::ffi::c_void, currentposition: u32) -> u32 - where - Identity: IDWriteTextLayout4_Impl, - { + unsafe extern "system" fn GetFontAxisValueCount(this: *mut core::ffi::c_void, currentposition: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout4_Impl::GetFontAxisValueCount(this, core::mem::transmute_copy(¤tposition)) } - unsafe extern "system" fn GetFontAxisValues(this: *mut core::ffi::c_void, currentposition: u32, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout4_Impl, - { + unsafe extern "system" fn GetFontAxisValues(this: *mut core::ffi::c_void, currentposition: u32, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout4_Impl::GetFontAxisValues(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount), core::mem::transmute_copy(&textrange)).into() } - unsafe extern "system" fn GetAutomaticFontAxes(this: *mut core::ffi::c_void) -> DWRITE_AUTOMATIC_FONT_AXES - where - Identity: IDWriteTextLayout4_Impl, - { + unsafe extern "system" fn GetAutomaticFontAxes(this: *mut core::ffi::c_void) -> DWRITE_AUTOMATIC_FONT_AXES { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout4_Impl::GetAutomaticFontAxes(this) } - unsafe extern "system" fn SetAutomaticFontAxes(this: *mut core::ffi::c_void, automaticfontaxes: DWRITE_AUTOMATIC_FONT_AXES) -> windows_core::HRESULT - where - Identity: IDWriteTextLayout4_Impl, - { + unsafe extern "system" fn SetAutomaticFontAxes(this: *mut core::ffi::c_void, automaticfontaxes: DWRITE_AUTOMATIC_FONT_AXES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout4_Impl::SetAutomaticFontAxes(this, core::mem::transmute_copy(&automaticfontaxes)).into() } @@ -6637,35 +4987,20 @@ pub trait IDWriteTextRenderer_Impl: Sized + IDWritePixelSnapping_Impl { } impl windows_core::RuntimeName for IDWriteTextRenderer {} impl IDWriteTextRenderer_Vtbl { - pub const fn new() -> IDWriteTextRenderer_Vtbl - where - Identity: IDWriteTextRenderer_Impl, - { - unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextRenderer_Impl, - { + pub const fn new() -> IDWriteTextRenderer_Vtbl { + unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextRenderer_Impl::DrawGlyphRun(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&glyphrundescription), windows_core::from_raw_borrowed(&clientdrawingeffect)).into() } - unsafe extern "system" fn DrawUnderline(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, underline: *const DWRITE_UNDERLINE, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextRenderer_Impl, - { + unsafe extern "system" fn DrawUnderline(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, underline: *const DWRITE_UNDERLINE, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextRenderer_Impl::DrawUnderline(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&underline), windows_core::from_raw_borrowed(&clientdrawingeffect)).into() } - unsafe extern "system" fn DrawStrikethrough(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextRenderer_Impl, - { + unsafe extern "system" fn DrawStrikethrough(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextRenderer_Impl::DrawStrikethrough(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&strikethrough), windows_core::from_raw_borrowed(&clientdrawingeffect)).into() } - unsafe extern "system" fn DrawInlineObject(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, inlineobject: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextRenderer_Impl, - { + unsafe extern "system" fn DrawInlineObject(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, inlineobject: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextRenderer_Impl::DrawInlineObject(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&originx), core::mem::transmute_copy(&originy), windows_core::from_raw_borrowed(&inlineobject), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&isrighttoleft), windows_core::from_raw_borrowed(&clientdrawingeffect)).into() } @@ -6689,35 +5024,20 @@ pub trait IDWriteTextRenderer1_Impl: Sized + IDWriteTextRenderer_Impl { } impl windows_core::RuntimeName for IDWriteTextRenderer1 {} impl IDWriteTextRenderer1_Vtbl { - pub const fn new() -> IDWriteTextRenderer1_Vtbl - where - Identity: IDWriteTextRenderer1_Impl, - { - unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextRenderer1_Impl, - { + pub const fn new() -> IDWriteTextRenderer1_Vtbl { + unsafe extern "system" fn DrawGlyphRun(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextRenderer1_Impl::DrawGlyphRun(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&orientationangle), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&glyphrundescription), windows_core::from_raw_borrowed(&clientdrawingeffect)).into() } - unsafe extern "system" fn DrawUnderline(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, underline: *const DWRITE_UNDERLINE, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextRenderer1_Impl, - { + unsafe extern "system" fn DrawUnderline(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, underline: *const DWRITE_UNDERLINE, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextRenderer1_Impl::DrawUnderline(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&orientationangle), core::mem::transmute_copy(&underline), windows_core::from_raw_borrowed(&clientdrawingeffect)).into() } - unsafe extern "system" fn DrawStrikethrough(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextRenderer1_Impl, - { + unsafe extern "system" fn DrawStrikethrough(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextRenderer1_Impl::DrawStrikethrough(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&orientationangle), core::mem::transmute_copy(&strikethrough), windows_core::from_raw_borrowed(&clientdrawingeffect)).into() } - unsafe extern "system" fn DrawInlineObject(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, inlineobject: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDWriteTextRenderer1_Impl, - { + unsafe extern "system" fn DrawInlineObject(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, inlineobject: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextRenderer1_Impl::DrawInlineObject(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&originx), core::mem::transmute_copy(&originy), core::mem::transmute_copy(&orientationangle), windows_core::from_raw_borrowed(&inlineobject), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&isrighttoleft), windows_core::from_raw_borrowed(&clientdrawingeffect)).into() } @@ -6733,35 +5053,23 @@ impl IDWriteTextRenderer1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDWriteTypography_Impl: Sized { +pub trait IDWriteTypography_Impl: Sized + windows_core::IUnknownImpl { fn AddFontFeature(&self, fontfeature: &DWRITE_FONT_FEATURE) -> windows_core::Result<()>; fn GetFontFeatureCount(&self) -> u32; fn GetFontFeature(&self, fontfeatureindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IDWriteTypography {} impl IDWriteTypography_Vtbl { - pub const fn new() -> IDWriteTypography_Vtbl - where - Identity: IDWriteTypography_Impl, - { - unsafe extern "system" fn AddFontFeature(this: *mut core::ffi::c_void, fontfeature: DWRITE_FONT_FEATURE) -> windows_core::HRESULT - where - Identity: IDWriteTypography_Impl, - { + pub const fn new() -> IDWriteTypography_Vtbl { + unsafe extern "system" fn AddFontFeature(this: *mut core::ffi::c_void, fontfeature: DWRITE_FONT_FEATURE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTypography_Impl::AddFontFeature(this, core::mem::transmute(&fontfeature)).into() } - unsafe extern "system" fn GetFontFeatureCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDWriteTypography_Impl, - { + unsafe extern "system" fn GetFontFeatureCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTypography_Impl::GetFontFeatureCount(this) } - unsafe extern "system" fn GetFontFeature(this: *mut core::ffi::c_void, fontfeatureindex: u32, fontfeature: *mut DWRITE_FONT_FEATURE) -> windows_core::HRESULT - where - Identity: IDWriteTypography_Impl, - { + unsafe extern "system" fn GetFontFeature(this: *mut core::ffi::c_void, fontfeatureindex: u32, fontfeature: *mut DWRITE_FONT_FEATURE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteTypography_Impl::GetFontFeature(this, core::mem::transmute_copy(&fontfeatureindex)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/impl.rs index 862db29583..d73a3e17f9 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/impl.rs @@ -5,14 +5,8 @@ pub trait IDXGIAdapter_Impl: Sized + IDXGIObject_Impl { } impl windows_core::RuntimeName for IDXGIAdapter {} impl IDXGIAdapter_Vtbl { - pub const fn new() -> IDXGIAdapter_Vtbl - where - Identity: IDXGIAdapter_Impl, - { - unsafe extern "system" fn EnumOutputs(this: *mut core::ffi::c_void, output: u32, ppoutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIAdapter_Impl, - { + pub const fn new() -> IDXGIAdapter_Vtbl { + unsafe extern "system" fn EnumOutputs(this: *mut core::ffi::c_void, output: u32, ppoutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIAdapter_Impl::EnumOutputs(this, core::mem::transmute_copy(&output)) { Ok(ok__) => { @@ -22,10 +16,7 @@ impl IDXGIAdapter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC) -> windows_core::HRESULT - where - Identity: IDXGIAdapter_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIAdapter_Impl::GetDesc(this) { Ok(ok__) => { @@ -35,10 +26,7 @@ impl IDXGIAdapter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckInterfaceSupport(this: *mut core::ffi::c_void, interfacename: *const windows_core::GUID, pumdversion: *mut i64) -> windows_core::HRESULT - where - Identity: IDXGIAdapter_Impl, - { + unsafe extern "system" fn CheckInterfaceSupport(this: *mut core::ffi::c_void, interfacename: *const windows_core::GUID, pumdversion: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIAdapter_Impl::CheckInterfaceSupport(this, core::mem::transmute_copy(&interfacename)) { Ok(ok__) => { @@ -64,14 +52,8 @@ pub trait IDXGIAdapter1_Impl: Sized + IDXGIAdapter_Impl { } impl windows_core::RuntimeName for IDXGIAdapter1 {} impl IDXGIAdapter1_Vtbl { - pub const fn new() -> IDXGIAdapter1_Vtbl - where - Identity: IDXGIAdapter1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC1) -> windows_core::HRESULT - where - Identity: IDXGIAdapter1_Impl, - { + pub const fn new() -> IDXGIAdapter1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC1) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIAdapter1_Impl::GetDesc1(this) { Ok(ok__) => { @@ -92,14 +74,8 @@ pub trait IDXGIAdapter2_Impl: Sized + IDXGIAdapter1_Impl { } impl windows_core::RuntimeName for IDXGIAdapter2 {} impl IDXGIAdapter2_Vtbl { - pub const fn new() -> IDXGIAdapter2_Vtbl - where - Identity: IDXGIAdapter2_Impl, - { - unsafe extern "system" fn GetDesc2(this: *mut core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC2) -> windows_core::HRESULT - where - Identity: IDXGIAdapter2_Impl, - { + pub const fn new() -> IDXGIAdapter2_Vtbl { + unsafe extern "system" fn GetDesc2(this: *mut core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIAdapter2_Impl::GetDesc2(this) { Ok(ok__) => { @@ -125,14 +101,8 @@ pub trait IDXGIAdapter3_Impl: Sized + IDXGIAdapter2_Impl { } impl windows_core::RuntimeName for IDXGIAdapter3 {} impl IDXGIAdapter3_Vtbl { - pub const fn new() -> IDXGIAdapter3_Vtbl - where - Identity: IDXGIAdapter3_Impl, - { - unsafe extern "system" fn RegisterHardwareContentProtectionTeardownStatusEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIAdapter3_Impl, - { + pub const fn new() -> IDXGIAdapter3_Vtbl { + unsafe extern "system" fn RegisterHardwareContentProtectionTeardownStatusEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIAdapter3_Impl::RegisterHardwareContentProtectionTeardownStatusEvent(this, core::mem::transmute_copy(&hevent)) { Ok(ok__) => { @@ -142,31 +112,19 @@ impl IDXGIAdapter3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterHardwareContentProtectionTeardownStatus(this: *mut core::ffi::c_void, dwcookie: u32) - where - Identity: IDXGIAdapter3_Impl, - { + unsafe extern "system" fn UnregisterHardwareContentProtectionTeardownStatus(this: *mut core::ffi::c_void, dwcookie: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIAdapter3_Impl::UnregisterHardwareContentProtectionTeardownStatus(this, core::mem::transmute_copy(&dwcookie)) } - unsafe extern "system" fn QueryVideoMemoryInfo(this: *mut core::ffi::c_void, nodeindex: u32, memorysegmentgroup: DXGI_MEMORY_SEGMENT_GROUP, pvideomemoryinfo: *mut DXGI_QUERY_VIDEO_MEMORY_INFO) -> windows_core::HRESULT - where - Identity: IDXGIAdapter3_Impl, - { + unsafe extern "system" fn QueryVideoMemoryInfo(this: *mut core::ffi::c_void, nodeindex: u32, memorysegmentgroup: DXGI_MEMORY_SEGMENT_GROUP, pvideomemoryinfo: *mut DXGI_QUERY_VIDEO_MEMORY_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIAdapter3_Impl::QueryVideoMemoryInfo(this, core::mem::transmute_copy(&nodeindex), core::mem::transmute_copy(&memorysegmentgroup), core::mem::transmute_copy(&pvideomemoryinfo)).into() } - unsafe extern "system" fn SetVideoMemoryReservation(this: *mut core::ffi::c_void, nodeindex: u32, memorysegmentgroup: DXGI_MEMORY_SEGMENT_GROUP, reservation: u64) -> windows_core::HRESULT - where - Identity: IDXGIAdapter3_Impl, - { + unsafe extern "system" fn SetVideoMemoryReservation(this: *mut core::ffi::c_void, nodeindex: u32, memorysegmentgroup: DXGI_MEMORY_SEGMENT_GROUP, reservation: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIAdapter3_Impl::SetVideoMemoryReservation(this, core::mem::transmute_copy(&nodeindex), core::mem::transmute_copy(&memorysegmentgroup), core::mem::transmute_copy(&reservation)).into() } - unsafe extern "system" fn RegisterVideoMemoryBudgetChangeNotificationEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIAdapter3_Impl, - { + unsafe extern "system" fn RegisterVideoMemoryBudgetChangeNotificationEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIAdapter3_Impl::RegisterVideoMemoryBudgetChangeNotificationEvent(this, core::mem::transmute_copy(&hevent)) { Ok(ok__) => { @@ -176,10 +134,7 @@ impl IDXGIAdapter3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterVideoMemoryBudgetChangeNotification(this: *mut core::ffi::c_void, dwcookie: u32) - where - Identity: IDXGIAdapter3_Impl, - { + unsafe extern "system" fn UnregisterVideoMemoryBudgetChangeNotification(this: *mut core::ffi::c_void, dwcookie: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIAdapter3_Impl::UnregisterVideoMemoryBudgetChangeNotification(this, core::mem::transmute_copy(&dwcookie)) } @@ -202,14 +157,8 @@ pub trait IDXGIAdapter4_Impl: Sized + IDXGIAdapter3_Impl { } impl windows_core::RuntimeName for IDXGIAdapter4 {} impl IDXGIAdapter4_Vtbl { - pub const fn new() -> IDXGIAdapter4_Vtbl - where - Identity: IDXGIAdapter4_Impl, - { - unsafe extern "system" fn GetDesc3(this: *mut core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC3) -> windows_core::HRESULT - where - Identity: IDXGIAdapter4_Impl, - { + pub const fn new() -> IDXGIAdapter4_Vtbl { + unsafe extern "system" fn GetDesc3(this: *mut core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC3) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIAdapter4_Impl::GetDesc3(this) { Ok(ok__) => { @@ -225,19 +174,13 @@ impl IDXGIAdapter4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDXGIDebug_Impl: Sized { +pub trait IDXGIDebug_Impl: Sized + windows_core::IUnknownImpl { fn ReportLiveObjects(&self, apiid: &windows_core::GUID, flags: DXGI_DEBUG_RLO_FLAGS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDXGIDebug {} impl IDXGIDebug_Vtbl { - pub const fn new() -> IDXGIDebug_Vtbl - where - Identity: IDXGIDebug_Impl, - { - unsafe extern "system" fn ReportLiveObjects(this: *mut core::ffi::c_void, apiid: windows_core::GUID, flags: DXGI_DEBUG_RLO_FLAGS) -> windows_core::HRESULT - where - Identity: IDXGIDebug_Impl, - { + pub const fn new() -> IDXGIDebug_Vtbl { + unsafe extern "system" fn ReportLiveObjects(this: *mut core::ffi::c_void, apiid: windows_core::GUID, flags: DXGI_DEBUG_RLO_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDebug_Impl::ReportLiveObjects(this, core::mem::transmute(&apiid), core::mem::transmute_copy(&flags)).into() } @@ -254,28 +197,16 @@ pub trait IDXGIDebug1_Impl: Sized + IDXGIDebug_Impl { } impl windows_core::RuntimeName for IDXGIDebug1 {} impl IDXGIDebug1_Vtbl { - pub const fn new() -> IDXGIDebug1_Vtbl - where - Identity: IDXGIDebug1_Impl, - { - unsafe extern "system" fn EnableLeakTrackingForThread(this: *mut core::ffi::c_void) - where - Identity: IDXGIDebug1_Impl, - { + pub const fn new() -> IDXGIDebug1_Vtbl { + unsafe extern "system" fn EnableLeakTrackingForThread(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDebug1_Impl::EnableLeakTrackingForThread(this) } - unsafe extern "system" fn DisableLeakTrackingForThread(this: *mut core::ffi::c_void) - where - Identity: IDXGIDebug1_Impl, - { + unsafe extern "system" fn DisableLeakTrackingForThread(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDebug1_Impl::DisableLeakTrackingForThread(this) } - unsafe extern "system" fn IsLeakTrackingEnabledForThread(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDXGIDebug1_Impl, - { + unsafe extern "system" fn IsLeakTrackingEnabledForThread(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDebug1_Impl::IsLeakTrackingEnabledForThread(this) } @@ -290,7 +221,7 @@ impl IDXGIDebug1_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDXGIDecodeSwapChain_Impl: Sized { +pub trait IDXGIDecodeSwapChain_Impl: Sized + windows_core::IUnknownImpl { fn PresentBuffer(&self, buffertopresent: u32, syncinterval: u32, flags: DXGI_PRESENT) -> windows_core::HRESULT; fn SetSourceRect(&self, prect: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn SetTargetRect(&self, prect: *const super::super::Foundation::RECT) -> windows_core::Result<()>; @@ -303,42 +234,24 @@ pub trait IDXGIDecodeSwapChain_Impl: Sized { } impl windows_core::RuntimeName for IDXGIDecodeSwapChain {} impl IDXGIDecodeSwapChain_Vtbl { - pub const fn new() -> IDXGIDecodeSwapChain_Vtbl - where - Identity: IDXGIDecodeSwapChain_Impl, - { - unsafe extern "system" fn PresentBuffer(this: *mut core::ffi::c_void, buffertopresent: u32, syncinterval: u32, flags: DXGI_PRESENT) -> windows_core::HRESULT - where - Identity: IDXGIDecodeSwapChain_Impl, - { + pub const fn new() -> IDXGIDecodeSwapChain_Vtbl { + unsafe extern "system" fn PresentBuffer(this: *mut core::ffi::c_void, buffertopresent: u32, syncinterval: u32, flags: DXGI_PRESENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDecodeSwapChain_Impl::PresentBuffer(this, core::mem::transmute_copy(&buffertopresent), core::mem::transmute_copy(&syncinterval), core::mem::transmute_copy(&flags)) } - unsafe extern "system" fn SetSourceRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDXGIDecodeSwapChain_Impl, - { + unsafe extern "system" fn SetSourceRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDecodeSwapChain_Impl::SetSourceRect(this, core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn SetTargetRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDXGIDecodeSwapChain_Impl, - { + unsafe extern "system" fn SetTargetRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDecodeSwapChain_Impl::SetTargetRect(this, core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn SetDestSize(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT - where - Identity: IDXGIDecodeSwapChain_Impl, - { + unsafe extern "system" fn SetDestSize(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDecodeSwapChain_Impl::SetDestSize(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn GetSourceRect(this: *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDXGIDecodeSwapChain_Impl, - { + unsafe extern "system" fn GetSourceRect(this: *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIDecodeSwapChain_Impl::GetSourceRect(this) { Ok(ok__) => { @@ -348,10 +261,7 @@ impl IDXGIDecodeSwapChain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTargetRect(this: *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDXGIDecodeSwapChain_Impl, - { + unsafe extern "system" fn GetTargetRect(this: *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIDecodeSwapChain_Impl::GetTargetRect(this) { Ok(ok__) => { @@ -361,24 +271,15 @@ impl IDXGIDecodeSwapChain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDestSize(this: *mut core::ffi::c_void, pwidth: *mut u32, pheight: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIDecodeSwapChain_Impl, - { + unsafe extern "system" fn GetDestSize(this: *mut core::ffi::c_void, pwidth: *mut u32, pheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDecodeSwapChain_Impl::GetDestSize(this, core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn SetColorSpace(this: *mut core::ffi::c_void, colorspace: DXGI_MULTIPLANE_OVERLAY_YCbCr_FLAGS) -> windows_core::HRESULT - where - Identity: IDXGIDecodeSwapChain_Impl, - { + unsafe extern "system" fn SetColorSpace(this: *mut core::ffi::c_void, colorspace: DXGI_MULTIPLANE_OVERLAY_YCbCr_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDecodeSwapChain_Impl::SetColorSpace(this, core::mem::transmute_copy(&colorspace)).into() } - unsafe extern "system" fn GetColorSpace(this: *mut core::ffi::c_void) -> DXGI_MULTIPLANE_OVERLAY_YCbCr_FLAGS - where - Identity: IDXGIDecodeSwapChain_Impl, - { + unsafe extern "system" fn GetColorSpace(this: *mut core::ffi::c_void) -> DXGI_MULTIPLANE_OVERLAY_YCbCr_FLAGS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDecodeSwapChain_Impl::GetColorSpace(this) } @@ -411,14 +312,8 @@ pub trait IDXGIDevice_Impl: Sized + IDXGIObject_Impl { impl windows_core::RuntimeName for IDXGIDevice {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIDevice_Vtbl { - pub const fn new() -> IDXGIDevice_Vtbl - where - Identity: IDXGIDevice_Impl, - { - unsafe extern "system" fn GetAdapter(this: *mut core::ffi::c_void, padapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIDevice_Impl, - { + pub const fn new() -> IDXGIDevice_Vtbl { + unsafe extern "system" fn GetAdapter(this: *mut core::ffi::c_void, padapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIDevice_Impl::GetAdapter(this) { Ok(ok__) => { @@ -428,31 +323,19 @@ impl IDXGIDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, pdesc: *const DXGI_SURFACE_DESC, numsurfaces: u32, usage: DXGI_USAGE, psharedresource: *const DXGI_SHARED_RESOURCE, ppsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIDevice_Impl, - { + unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, pdesc: *const DXGI_SURFACE_DESC, numsurfaces: u32, usage: DXGI_USAGE, psharedresource: *const DXGI_SHARED_RESOURCE, ppsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice_Impl::CreateSurface(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&numsurfaces), core::mem::transmute_copy(&usage), core::mem::transmute_copy(&psharedresource), core::mem::transmute_copy(&ppsurface)).into() } - unsafe extern "system" fn QueryResourceResidency(this: *mut core::ffi::c_void, ppresources: *const *mut core::ffi::c_void, presidencystatus: *mut DXGI_RESIDENCY, numresources: u32) -> windows_core::HRESULT - where - Identity: IDXGIDevice_Impl, - { + unsafe extern "system" fn QueryResourceResidency(this: *mut core::ffi::c_void, ppresources: *const *mut core::ffi::c_void, presidencystatus: *mut DXGI_RESIDENCY, numresources: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice_Impl::QueryResourceResidency(this, core::mem::transmute_copy(&ppresources), core::mem::transmute_copy(&presidencystatus), core::mem::transmute_copy(&numresources)).into() } - unsafe extern "system" fn SetGPUThreadPriority(this: *mut core::ffi::c_void, priority: i32) -> windows_core::HRESULT - where - Identity: IDXGIDevice_Impl, - { + unsafe extern "system" fn SetGPUThreadPriority(this: *mut core::ffi::c_void, priority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice_Impl::SetGPUThreadPriority(this, core::mem::transmute_copy(&priority)).into() } - unsafe extern "system" fn GetGPUThreadPriority(this: *mut core::ffi::c_void, ppriority: *mut i32) -> windows_core::HRESULT - where - Identity: IDXGIDevice_Impl, - { + unsafe extern "system" fn GetGPUThreadPriority(this: *mut core::ffi::c_void, ppriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIDevice_Impl::GetGPUThreadPriority(this) { Ok(ok__) => { @@ -484,21 +367,12 @@ pub trait IDXGIDevice1_Impl: Sized + IDXGIDevice_Impl { impl windows_core::RuntimeName for IDXGIDevice1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIDevice1_Vtbl { - pub const fn new() -> IDXGIDevice1_Vtbl - where - Identity: IDXGIDevice1_Impl, - { - unsafe extern "system" fn SetMaximumFrameLatency(this: *mut core::ffi::c_void, maxlatency: u32) -> windows_core::HRESULT - where - Identity: IDXGIDevice1_Impl, - { + pub const fn new() -> IDXGIDevice1_Vtbl { + unsafe extern "system" fn SetMaximumFrameLatency(this: *mut core::ffi::c_void, maxlatency: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice1_Impl::SetMaximumFrameLatency(this, core::mem::transmute_copy(&maxlatency)).into() } - unsafe extern "system" fn GetMaximumFrameLatency(this: *mut core::ffi::c_void, pmaxlatency: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIDevice1_Impl, - { + unsafe extern "system" fn GetMaximumFrameLatency(this: *mut core::ffi::c_void, pmaxlatency: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIDevice1_Impl::GetMaximumFrameLatency(this) { Ok(ok__) => { @@ -528,28 +402,16 @@ pub trait IDXGIDevice2_Impl: Sized + IDXGIDevice1_Impl { impl windows_core::RuntimeName for IDXGIDevice2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIDevice2_Vtbl { - pub const fn new() -> IDXGIDevice2_Vtbl - where - Identity: IDXGIDevice2_Impl, - { - unsafe extern "system" fn OfferResources(this: *mut core::ffi::c_void, numresources: u32, ppresources: *const *mut core::ffi::c_void, priority: DXGI_OFFER_RESOURCE_PRIORITY) -> windows_core::HRESULT - where - Identity: IDXGIDevice2_Impl, - { + pub const fn new() -> IDXGIDevice2_Vtbl { + unsafe extern "system" fn OfferResources(this: *mut core::ffi::c_void, numresources: u32, ppresources: *const *mut core::ffi::c_void, priority: DXGI_OFFER_RESOURCE_PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice2_Impl::OfferResources(this, core::mem::transmute_copy(&numresources), core::mem::transmute_copy(&ppresources), core::mem::transmute_copy(&priority)).into() } - unsafe extern "system" fn ReclaimResources(this: *mut core::ffi::c_void, numresources: u32, ppresources: *const *mut core::ffi::c_void, pdiscarded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDXGIDevice2_Impl, - { + unsafe extern "system" fn ReclaimResources(this: *mut core::ffi::c_void, numresources: u32, ppresources: *const *mut core::ffi::c_void, pdiscarded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice2_Impl::ReclaimResources(this, core::mem::transmute_copy(&numresources), core::mem::transmute_copy(&ppresources), core::mem::transmute_copy(&pdiscarded)).into() } - unsafe extern "system" fn EnqueueSetEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDXGIDevice2_Impl, - { + unsafe extern "system" fn EnqueueSetEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice2_Impl::EnqueueSetEvent(this, core::mem::transmute_copy(&hevent)).into() } @@ -572,14 +434,8 @@ pub trait IDXGIDevice3_Impl: Sized + IDXGIDevice2_Impl { impl windows_core::RuntimeName for IDXGIDevice3 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIDevice3_Vtbl { - pub const fn new() -> IDXGIDevice3_Vtbl - where - Identity: IDXGIDevice3_Impl, - { - unsafe extern "system" fn Trim(this: *mut core::ffi::c_void) - where - Identity: IDXGIDevice3_Impl, - { + pub const fn new() -> IDXGIDevice3_Vtbl { + unsafe extern "system" fn Trim(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice3_Impl::Trim(this) } @@ -598,21 +454,12 @@ pub trait IDXGIDevice4_Impl: Sized + IDXGIDevice3_Impl { impl windows_core::RuntimeName for IDXGIDevice4 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIDevice4_Vtbl { - pub const fn new() -> IDXGIDevice4_Vtbl - where - Identity: IDXGIDevice4_Impl, - { - unsafe extern "system" fn OfferResources1(this: *mut core::ffi::c_void, numresources: u32, ppresources: *const *mut core::ffi::c_void, priority: DXGI_OFFER_RESOURCE_PRIORITY, flags: u32) -> windows_core::HRESULT - where - Identity: IDXGIDevice4_Impl, - { + pub const fn new() -> IDXGIDevice4_Vtbl { + unsafe extern "system" fn OfferResources1(this: *mut core::ffi::c_void, numresources: u32, ppresources: *const *mut core::ffi::c_void, priority: DXGI_OFFER_RESOURCE_PRIORITY, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice4_Impl::OfferResources1(this, core::mem::transmute_copy(&numresources), core::mem::transmute_copy(&ppresources), core::mem::transmute_copy(&priority), core::mem::transmute(&flags)).into() } - unsafe extern "system" fn ReclaimResources1(this: *mut core::ffi::c_void, numresources: u32, ppresources: *const *mut core::ffi::c_void, presults: *mut DXGI_RECLAIM_RESOURCE_RESULTS) -> windows_core::HRESULT - where - Identity: IDXGIDevice4_Impl, - { + unsafe extern "system" fn ReclaimResources1(this: *mut core::ffi::c_void, numresources: u32, ppresources: *const *mut core::ffi::c_void, presults: *mut DXGI_RECLAIM_RESOURCE_RESULTS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice4_Impl::ReclaimResources1(this, core::mem::transmute_copy(&numresources), core::mem::transmute_copy(&ppresources), core::mem::transmute_copy(&presults)).into() } @@ -631,14 +478,8 @@ pub trait IDXGIDeviceSubObject_Impl: Sized + IDXGIObject_Impl { } impl windows_core::RuntimeName for IDXGIDeviceSubObject {} impl IDXGIDeviceSubObject_Vtbl { - pub const fn new() -> IDXGIDeviceSubObject_Vtbl - where - Identity: IDXGIDeviceSubObject_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIDeviceSubObject_Impl, - { + pub const fn new() -> IDXGIDeviceSubObject_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDeviceSubObject_Impl::GetDevice(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppdevice)).into() } @@ -648,27 +489,18 @@ impl IDXGIDeviceSubObject_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDXGIDisplayControl_Impl: Sized { +pub trait IDXGIDisplayControl_Impl: Sized + windows_core::IUnknownImpl { fn IsStereoEnabled(&self) -> super::super::Foundation::BOOL; fn SetStereoEnabled(&self, enabled: super::super::Foundation::BOOL); } impl windows_core::RuntimeName for IDXGIDisplayControl {} impl IDXGIDisplayControl_Vtbl { - pub const fn new() -> IDXGIDisplayControl_Vtbl - where - Identity: IDXGIDisplayControl_Impl, - { - unsafe extern "system" fn IsStereoEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDXGIDisplayControl_Impl, - { + pub const fn new() -> IDXGIDisplayControl_Vtbl { + unsafe extern "system" fn IsStereoEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDisplayControl_Impl::IsStereoEnabled(this) } - unsafe extern "system" fn SetStereoEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::BOOL) - where - Identity: IDXGIDisplayControl_Impl, - { + unsafe extern "system" fn SetStereoEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDisplayControl_Impl::SetStereoEnabled(this, core::mem::transmute_copy(&enabled)) } @@ -694,14 +526,8 @@ pub trait IDXGIFactory_Impl: Sized + IDXGIObject_Impl { impl windows_core::RuntimeName for IDXGIFactory {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactory_Vtbl { - pub const fn new() -> IDXGIFactory_Vtbl - where - Identity: IDXGIFactory_Impl, - { - unsafe extern "system" fn EnumAdapters(this: *mut core::ffi::c_void, adapter: u32, ppadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactory_Impl, - { + pub const fn new() -> IDXGIFactory_Vtbl { + unsafe extern "system" fn EnumAdapters(this: *mut core::ffi::c_void, adapter: u32, ppadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory_Impl::EnumAdapters(this, core::mem::transmute_copy(&adapter)) { Ok(ok__) => { @@ -711,17 +537,11 @@ impl IDXGIFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MakeWindowAssociation(this: *mut core::ffi::c_void, windowhandle: super::super::Foundation::HWND, flags: DXGI_MWA_FLAGS) -> windows_core::HRESULT - where - Identity: IDXGIFactory_Impl, - { + unsafe extern "system" fn MakeWindowAssociation(this: *mut core::ffi::c_void, windowhandle: super::super::Foundation::HWND, flags: DXGI_MWA_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory_Impl::MakeWindowAssociation(this, core::mem::transmute_copy(&windowhandle), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetWindowAssociation(this: *mut core::ffi::c_void, pwindowhandle: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDXGIFactory_Impl, - { + unsafe extern "system" fn GetWindowAssociation(this: *mut core::ffi::c_void, pwindowhandle: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory_Impl::GetWindowAssociation(this) { Ok(ok__) => { @@ -731,17 +551,11 @@ impl IDXGIFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSwapChain(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactory_Impl, - { + unsafe extern "system" fn CreateSwapChain(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory_Impl::CreateSwapChain(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&ppswapchain)) } - unsafe extern "system" fn CreateSoftwareAdapter(this: *mut core::ffi::c_void, module: super::super::Foundation::HMODULE, ppadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactory_Impl, - { + unsafe extern "system" fn CreateSoftwareAdapter(this: *mut core::ffi::c_void, module: super::super::Foundation::HMODULE, ppadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory_Impl::CreateSoftwareAdapter(this, core::mem::transmute_copy(&module)) { Ok(ok__) => { @@ -773,14 +587,8 @@ pub trait IDXGIFactory1_Impl: Sized + IDXGIFactory_Impl { impl windows_core::RuntimeName for IDXGIFactory1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactory1_Vtbl { - pub const fn new() -> IDXGIFactory1_Vtbl - where - Identity: IDXGIFactory1_Impl, - { - unsafe extern "system" fn EnumAdapters1(this: *mut core::ffi::c_void, adapter: u32, ppadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactory1_Impl, - { + pub const fn new() -> IDXGIFactory1_Vtbl { + unsafe extern "system" fn EnumAdapters1(this: *mut core::ffi::c_void, adapter: u32, ppadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory1_Impl::EnumAdapters1(this, core::mem::transmute_copy(&adapter)) { Ok(ok__) => { @@ -790,10 +598,7 @@ impl IDXGIFactory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCurrent(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDXGIFactory1_Impl, - { + unsafe extern "system" fn IsCurrent(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory1_Impl::IsCurrent(this) } @@ -821,21 +626,12 @@ pub trait IDXGIFactory2_Impl: Sized + IDXGIFactory1_Impl { impl windows_core::RuntimeName for IDXGIFactory2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactory2_Vtbl { - pub const fn new() -> IDXGIFactory2_Vtbl - where - Identity: IDXGIFactory2_Impl, - { - unsafe extern "system" fn IsWindowedStereoEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDXGIFactory2_Impl, - { + pub const fn new() -> IDXGIFactory2_Vtbl { + unsafe extern "system" fn IsWindowedStereoEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory2_Impl::IsWindowedStereoEnabled(this) } - unsafe extern "system" fn CreateSwapChainForHwnd(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pdesc: *const DXGI_SWAP_CHAIN_DESC1, pfullscreendesc: *const DXGI_SWAP_CHAIN_FULLSCREEN_DESC, prestricttooutput: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactory2_Impl, - { + unsafe extern "system" fn CreateSwapChainForHwnd(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pdesc: *const DXGI_SWAP_CHAIN_DESC1, pfullscreendesc: *const DXGI_SWAP_CHAIN_FULLSCREEN_DESC, prestricttooutput: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory2_Impl::CreateSwapChainForHwnd(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pfullscreendesc), windows_core::from_raw_borrowed(&prestricttooutput)) { Ok(ok__) => { @@ -845,10 +641,7 @@ impl IDXGIFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSwapChainForCoreWindow(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pwindow: *mut core::ffi::c_void, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactory2_Impl, - { + unsafe extern "system" fn CreateSwapChainForCoreWindow(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pwindow: *mut core::ffi::c_void, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory2_Impl::CreateSwapChainForCoreWindow(this, windows_core::from_raw_borrowed(&pdevice), windows_core::from_raw_borrowed(&pwindow), core::mem::transmute_copy(&pdesc), windows_core::from_raw_borrowed(&prestricttooutput)) { Ok(ok__) => { @@ -858,10 +651,7 @@ impl IDXGIFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSharedResourceAdapterLuid(this: *mut core::ffi::c_void, hresource: super::super::Foundation::HANDLE, pluid: *mut super::super::Foundation::LUID) -> windows_core::HRESULT - where - Identity: IDXGIFactory2_Impl, - { + unsafe extern "system" fn GetSharedResourceAdapterLuid(this: *mut core::ffi::c_void, hresource: super::super::Foundation::HANDLE, pluid: *mut super::super::Foundation::LUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory2_Impl::GetSharedResourceAdapterLuid(this, core::mem::transmute_copy(&hresource)) { Ok(ok__) => { @@ -871,10 +661,7 @@ impl IDXGIFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterStereoStatusWindow(this: *mut core::ffi::c_void, windowhandle: super::super::Foundation::HWND, wmsg: u32, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIFactory2_Impl, - { + unsafe extern "system" fn RegisterStereoStatusWindow(this: *mut core::ffi::c_void, windowhandle: super::super::Foundation::HWND, wmsg: u32, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory2_Impl::RegisterStereoStatusWindow(this, core::mem::transmute_copy(&windowhandle), core::mem::transmute_copy(&wmsg)) { Ok(ok__) => { @@ -884,10 +671,7 @@ impl IDXGIFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterStereoStatusEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIFactory2_Impl, - { + unsafe extern "system" fn RegisterStereoStatusEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory2_Impl::RegisterStereoStatusEvent(this, core::mem::transmute_copy(&hevent)) { Ok(ok__) => { @@ -897,17 +681,11 @@ impl IDXGIFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterStereoStatus(this: *mut core::ffi::c_void, dwcookie: u32) - where - Identity: IDXGIFactory2_Impl, - { + unsafe extern "system" fn UnregisterStereoStatus(this: *mut core::ffi::c_void, dwcookie: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory2_Impl::UnregisterStereoStatus(this, core::mem::transmute_copy(&dwcookie)) } - unsafe extern "system" fn RegisterOcclusionStatusWindow(this: *mut core::ffi::c_void, windowhandle: super::super::Foundation::HWND, wmsg: u32, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIFactory2_Impl, - { + unsafe extern "system" fn RegisterOcclusionStatusWindow(this: *mut core::ffi::c_void, windowhandle: super::super::Foundation::HWND, wmsg: u32, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory2_Impl::RegisterOcclusionStatusWindow(this, core::mem::transmute_copy(&windowhandle), core::mem::transmute_copy(&wmsg)) { Ok(ok__) => { @@ -917,10 +695,7 @@ impl IDXGIFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterOcclusionStatusEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIFactory2_Impl, - { + unsafe extern "system" fn RegisterOcclusionStatusEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory2_Impl::RegisterOcclusionStatusEvent(this, core::mem::transmute_copy(&hevent)) { Ok(ok__) => { @@ -930,17 +705,11 @@ impl IDXGIFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterOcclusionStatus(this: *mut core::ffi::c_void, dwcookie: u32) - where - Identity: IDXGIFactory2_Impl, - { + unsafe extern "system" fn UnregisterOcclusionStatus(this: *mut core::ffi::c_void, dwcookie: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory2_Impl::UnregisterOcclusionStatus(this, core::mem::transmute_copy(&dwcookie)) } - unsafe extern "system" fn CreateSwapChainForComposition(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactory2_Impl, - { + unsafe extern "system" fn CreateSwapChainForComposition(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory2_Impl::CreateSwapChainForComposition(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&pdesc), windows_core::from_raw_borrowed(&prestricttooutput)) { Ok(ok__) => { @@ -977,14 +746,8 @@ pub trait IDXGIFactory3_Impl: Sized + IDXGIFactory2_Impl { impl windows_core::RuntimeName for IDXGIFactory3 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactory3_Vtbl { - pub const fn new() -> IDXGIFactory3_Vtbl - where - Identity: IDXGIFactory3_Impl, - { - unsafe extern "system" fn GetCreationFlags(this: *mut core::ffi::c_void) -> DXGI_CREATE_FACTORY_FLAGS - where - Identity: IDXGIFactory3_Impl, - { + pub const fn new() -> IDXGIFactory3_Vtbl { + unsafe extern "system" fn GetCreationFlags(this: *mut core::ffi::c_void) -> DXGI_CREATE_FACTORY_FLAGS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory3_Impl::GetCreationFlags(this) } @@ -1003,21 +766,12 @@ pub trait IDXGIFactory4_Impl: Sized + IDXGIFactory3_Impl { impl windows_core::RuntimeName for IDXGIFactory4 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactory4_Vtbl { - pub const fn new() -> IDXGIFactory4_Vtbl - where - Identity: IDXGIFactory4_Impl, - { - unsafe extern "system" fn EnumAdapterByLuid(this: *mut core::ffi::c_void, adapterluid: super::super::Foundation::LUID, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactory4_Impl, - { + pub const fn new() -> IDXGIFactory4_Vtbl { + unsafe extern "system" fn EnumAdapterByLuid(this: *mut core::ffi::c_void, adapterluid: super::super::Foundation::LUID, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory4_Impl::EnumAdapterByLuid(this, core::mem::transmute(&adapterluid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvadapter)).into() } - unsafe extern "system" fn EnumWarpAdapter(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactory4_Impl, - { + unsafe extern "system" fn EnumWarpAdapter(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory4_Impl::EnumWarpAdapter(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvadapter)).into() } @@ -1039,14 +793,8 @@ pub trait IDXGIFactory5_Impl: Sized + IDXGIFactory4_Impl { impl windows_core::RuntimeName for IDXGIFactory5 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactory5_Vtbl { - pub const fn new() -> IDXGIFactory5_Vtbl - where - Identity: IDXGIFactory5_Impl, - { - unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: DXGI_FEATURE, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT - where - Identity: IDXGIFactory5_Impl, - { + pub const fn new() -> IDXGIFactory5_Vtbl { + unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, feature: DXGI_FEATURE, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory5_Impl::CheckFeatureSupport(this, core::mem::transmute_copy(&feature), core::mem::transmute_copy(&pfeaturesupportdata), core::mem::transmute_copy(&featuresupportdatasize)).into() } @@ -1064,14 +812,8 @@ pub trait IDXGIFactory6_Impl: Sized + IDXGIFactory5_Impl { impl windows_core::RuntimeName for IDXGIFactory6 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactory6_Vtbl { - pub const fn new() -> IDXGIFactory6_Vtbl - where - Identity: IDXGIFactory6_Impl, - { - unsafe extern "system" fn EnumAdapterByGpuPreference(this: *mut core::ffi::c_void, adapter: u32, gpupreference: DXGI_GPU_PREFERENCE, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactory6_Impl, - { + pub const fn new() -> IDXGIFactory6_Vtbl { + unsafe extern "system" fn EnumAdapterByGpuPreference(this: *mut core::ffi::c_void, adapter: u32, gpupreference: DXGI_GPU_PREFERENCE, riid: *const windows_core::GUID, ppvadapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory6_Impl::EnumAdapterByGpuPreference(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&gpupreference), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvadapter)).into() } @@ -1090,14 +832,8 @@ pub trait IDXGIFactory7_Impl: Sized + IDXGIFactory6_Impl { impl windows_core::RuntimeName for IDXGIFactory7 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactory7_Vtbl { - pub const fn new() -> IDXGIFactory7_Vtbl - where - Identity: IDXGIFactory7_Impl, - { - unsafe extern "system" fn RegisterAdaptersChangedEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIFactory7_Impl, - { + pub const fn new() -> IDXGIFactory7_Vtbl { + unsafe extern "system" fn RegisterAdaptersChangedEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactory7_Impl::RegisterAdaptersChangedEvent(this, core::mem::transmute_copy(&hevent)) { Ok(ok__) => { @@ -1107,10 +843,7 @@ impl IDXGIFactory7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterAdaptersChangedEvent(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IDXGIFactory7_Impl, - { + unsafe extern "system" fn UnregisterAdaptersChangedEvent(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory7_Impl::UnregisterAdaptersChangedEvent(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -1125,7 +858,7 @@ impl IDXGIFactory7_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait IDXGIFactoryMedia_Impl: Sized { +pub trait IDXGIFactoryMedia_Impl: Sized + windows_core::IUnknownImpl { fn CreateSwapChainForCompositionSurfaceHandle(&self, pdevice: Option<&windows_core::IUnknown>, hsurface: super::super::Foundation::HANDLE, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: Option<&IDXGIOutput>) -> windows_core::Result; fn CreateDecodeSwapChainForCompositionSurfaceHandle(&self, pdevice: Option<&windows_core::IUnknown>, hsurface: super::super::Foundation::HANDLE, pdesc: *const DXGI_DECODE_SWAP_CHAIN_DESC, pyuvdecodebuffers: Option<&IDXGIResource>, prestricttooutput: Option<&IDXGIOutput>) -> windows_core::Result; } @@ -1133,14 +866,8 @@ pub trait IDXGIFactoryMedia_Impl: Sized { impl windows_core::RuntimeName for IDXGIFactoryMedia {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactoryMedia_Vtbl { - pub const fn new() -> IDXGIFactoryMedia_Vtbl - where - Identity: IDXGIFactoryMedia_Impl, - { - unsafe extern "system" fn CreateSwapChainForCompositionSurfaceHandle(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, hsurface: super::super::Foundation::HANDLE, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactoryMedia_Impl, - { + pub const fn new() -> IDXGIFactoryMedia_Vtbl { + unsafe extern "system" fn CreateSwapChainForCompositionSurfaceHandle(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, hsurface: super::super::Foundation::HANDLE, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactoryMedia_Impl::CreateSwapChainForCompositionSurfaceHandle(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&hsurface), core::mem::transmute_copy(&pdesc), windows_core::from_raw_borrowed(&prestricttooutput)) { Ok(ok__) => { @@ -1150,10 +877,7 @@ impl IDXGIFactoryMedia_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDecodeSwapChainForCompositionSurfaceHandle(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, hsurface: super::super::Foundation::HANDLE, pdesc: *const DXGI_DECODE_SWAP_CHAIN_DESC, pyuvdecodebuffers: *mut core::ffi::c_void, prestricttooutput: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIFactoryMedia_Impl, - { + unsafe extern "system" fn CreateDecodeSwapChainForCompositionSurfaceHandle(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, hsurface: super::super::Foundation::HANDLE, pdesc: *const DXGI_DECODE_SWAP_CHAIN_DESC, pyuvdecodebuffers: *mut core::ffi::c_void, prestricttooutput: *mut core::ffi::c_void, ppswapchain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIFactoryMedia_Impl::CreateDecodeSwapChainForCompositionSurfaceHandle(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&hsurface), core::mem::transmute_copy(&pdesc), windows_core::from_raw_borrowed(&pyuvdecodebuffers), windows_core::from_raw_borrowed(&prestricttooutput)) { Ok(ok__) => { @@ -1173,7 +897,7 @@ impl IDXGIFactoryMedia_Vtbl { iid == &::IID } } -pub trait IDXGIInfoQueue_Impl: Sized { +pub trait IDXGIInfoQueue_Impl: Sized + windows_core::IUnknownImpl { fn SetMessageCountLimit(&self, producer: &windows_core::GUID, messagecountlimit: u64) -> windows_core::Result<()>; fn ClearStoredMessages(&self, producer: &windows_core::GUID); fn GetMessage(&self, producer: &windows_core::GUID, messageindex: u64, pmessage: *mut DXGI_INFO_QUEUE_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::Result<()>; @@ -1214,266 +938,152 @@ pub trait IDXGIInfoQueue_Impl: Sized { } impl windows_core::RuntimeName for IDXGIInfoQueue {} impl IDXGIInfoQueue_Vtbl { - pub const fn new() -> IDXGIInfoQueue_Vtbl - where - Identity: IDXGIInfoQueue_Impl, - { - unsafe extern "system" fn SetMessageCountLimit(this: *mut core::ffi::c_void, producer: windows_core::GUID, messagecountlimit: u64) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + pub const fn new() -> IDXGIInfoQueue_Vtbl { + unsafe extern "system" fn SetMessageCountLimit(this: *mut core::ffi::c_void, producer: windows_core::GUID, messagecountlimit: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::SetMessageCountLimit(this, core::mem::transmute(&producer), core::mem::transmute_copy(&messagecountlimit)).into() } - unsafe extern "system" fn ClearStoredMessages(this: *mut core::ffi::c_void, producer: windows_core::GUID) - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn ClearStoredMessages(this: *mut core::ffi::c_void, producer: windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::ClearStoredMessages(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, producer: windows_core::GUID, messageindex: u64, pmessage: *mut DXGI_INFO_QUEUE_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetMessage(this: *mut core::ffi::c_void, producer: windows_core::GUID, messageindex: u64, pmessage: *mut DXGI_INFO_QUEUE_MESSAGE, pmessagebytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetMessage(this, core::mem::transmute(&producer), core::mem::transmute_copy(&messageindex), core::mem::transmute_copy(&pmessage), core::mem::transmute_copy(&pmessagebytelength)).into() } - unsafe extern "system" fn GetNumStoredMessagesAllowedByRetrievalFilters(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetNumStoredMessagesAllowedByRetrievalFilters(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetNumStoredMessagesAllowedByRetrievalFilters(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn GetNumStoredMessages(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetNumStoredMessages(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetNumStoredMessages(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn GetNumMessagesDiscardedByMessageCountLimit(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesDiscardedByMessageCountLimit(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetNumMessagesDiscardedByMessageCountLimit(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn GetMessageCountLimit(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetMessageCountLimit(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetMessageCountLimit(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn GetNumMessagesAllowedByStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesAllowedByStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetNumMessagesAllowedByStorageFilter(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn GetNumMessagesDeniedByStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetNumMessagesDeniedByStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetNumMessagesDeniedByStorageFilter(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn AddStorageFilterEntries(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn AddStorageFilterEntries(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::AddStorageFilterEntries(this, core::mem::transmute(&producer), core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn GetStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *mut DXGI_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *mut DXGI_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetStorageFilter(this, core::mem::transmute(&producer), core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&pfilterbytelength)).into() } - unsafe extern "system" fn ClearStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn ClearStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::ClearStorageFilter(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn PushEmptyStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn PushEmptyStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::PushEmptyStorageFilter(this, core::mem::transmute(&producer)).into() } - unsafe extern "system" fn PushDenyAllStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn PushDenyAllStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::PushDenyAllStorageFilter(this, core::mem::transmute(&producer)).into() } - unsafe extern "system" fn PushCopyOfStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn PushCopyOfStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::PushCopyOfStorageFilter(this, core::mem::transmute(&producer)).into() } - unsafe extern "system" fn PushStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn PushStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::PushStorageFilter(this, core::mem::transmute(&producer), core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn PopStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn PopStorageFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::PopStorageFilter(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn GetStorageFilterStackSize(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u32 - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetStorageFilterStackSize(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetStorageFilterStackSize(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn AddRetrievalFilterEntries(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn AddRetrievalFilterEntries(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::AddRetrievalFilterEntries(this, core::mem::transmute(&producer), core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn GetRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *mut DXGI_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *mut DXGI_INFO_QUEUE_FILTER, pfilterbytelength: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetRetrievalFilter(this, core::mem::transmute(&producer), core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&pfilterbytelength)).into() } - unsafe extern "system" fn ClearRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn ClearRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::ClearRetrievalFilter(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn PushEmptyRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn PushEmptyRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::PushEmptyRetrievalFilter(this, core::mem::transmute(&producer)).into() } - unsafe extern "system" fn PushDenyAllRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn PushDenyAllRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::PushDenyAllRetrievalFilter(this, core::mem::transmute(&producer)).into() } - unsafe extern "system" fn PushCopyOfRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn PushCopyOfRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::PushCopyOfRetrievalFilter(this, core::mem::transmute(&producer)).into() } - unsafe extern "system" fn PushRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn PushRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID, pfilter: *const DXGI_INFO_QUEUE_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::PushRetrievalFilter(this, core::mem::transmute(&producer), core::mem::transmute_copy(&pfilter)).into() } - unsafe extern "system" fn PopRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn PopRetrievalFilter(this: *mut core::ffi::c_void, producer: windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::PopRetrievalFilter(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn GetRetrievalFilterStackSize(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u32 - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetRetrievalFilterStackSize(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetRetrievalFilterStackSize(this, core::mem::transmute(&producer)) } - unsafe extern "system" fn AddMessage(this: *mut core::ffi::c_void, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, id: i32, pdescription: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn AddMessage(this: *mut core::ffi::c_void, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, id: i32, pdescription: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::AddMessage(this, core::mem::transmute(&producer), core::mem::transmute_copy(&category), core::mem::transmute_copy(&severity), core::mem::transmute_copy(&id), core::mem::transmute(&pdescription)).into() } - unsafe extern "system" fn AddApplicationMessage(this: *mut core::ffi::c_void, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, pdescription: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn AddApplicationMessage(this: *mut core::ffi::c_void, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, pdescription: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::AddApplicationMessage(this, core::mem::transmute_copy(&severity), core::mem::transmute(&pdescription)).into() } - unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::SetBreakOnCategory(this, core::mem::transmute(&producer), core::mem::transmute_copy(&category), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::SetBreakOnSeverity(this, core::mem::transmute(&producer), core::mem::transmute_copy(&severity), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, producer: windows_core::GUID, id: i32, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, producer: windows_core::GUID, id: i32, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::SetBreakOnID(this, core::mem::transmute(&producer), core::mem::transmute_copy(&id), core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetBreakOnCategory(this, core::mem::transmute(&producer), core::mem::transmute_copy(&category)) } - unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetBreakOnSeverity(this, core::mem::transmute(&producer), core::mem::transmute_copy(&severity)) } - unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, producer: windows_core::GUID, id: i32) -> super::super::Foundation::BOOL - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, producer: windows_core::GUID, id: i32) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetBreakOnID(this, core::mem::transmute(&producer), core::mem::transmute_copy(&id)) } - unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, producer: windows_core::GUID, bmute: super::super::Foundation::BOOL) - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, producer: windows_core::GUID, bmute: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::SetMuteDebugOutput(this, core::mem::transmute(&producer), core::mem::transmute_copy(&bmute)) } - unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> super::super::Foundation::BOOL - where - Identity: IDXGIInfoQueue_Impl, - { + unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetMuteDebugOutput(this, core::mem::transmute(&producer)) } @@ -1528,21 +1138,12 @@ pub trait IDXGIKeyedMutex_Impl: Sized + IDXGIDeviceSubObject_Impl { } impl windows_core::RuntimeName for IDXGIKeyedMutex {} impl IDXGIKeyedMutex_Vtbl { - pub const fn new() -> IDXGIKeyedMutex_Vtbl - where - Identity: IDXGIKeyedMutex_Impl, - { - unsafe extern "system" fn AcquireSync(this: *mut core::ffi::c_void, key: u64, dwmilliseconds: u32) -> windows_core::HRESULT - where - Identity: IDXGIKeyedMutex_Impl, - { + pub const fn new() -> IDXGIKeyedMutex_Vtbl { + unsafe extern "system" fn AcquireSync(this: *mut core::ffi::c_void, key: u64, dwmilliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIKeyedMutex_Impl::AcquireSync(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&dwmilliseconds)).into() } - unsafe extern "system" fn ReleaseSync(this: *mut core::ffi::c_void, key: u64) -> windows_core::HRESULT - where - Identity: IDXGIKeyedMutex_Impl, - { + unsafe extern "system" fn ReleaseSync(this: *mut core::ffi::c_void, key: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIKeyedMutex_Impl::ReleaseSync(this, core::mem::transmute_copy(&key)).into() } @@ -1556,7 +1157,7 @@ impl IDXGIKeyedMutex_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDXGIObject_Impl: Sized { +pub trait IDXGIObject_Impl: Sized + windows_core::IUnknownImpl { fn SetPrivateData(&self, name: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::Result<()>; fn SetPrivateDataInterface(&self, name: *const windows_core::GUID, punknown: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetPrivateData(&self, name: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -1564,35 +1165,20 @@ pub trait IDXGIObject_Impl: Sized { } impl windows_core::RuntimeName for IDXGIObject {} impl IDXGIObject_Vtbl { - pub const fn new() -> IDXGIObject_Vtbl - where - Identity: IDXGIObject_Impl, - { - unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, name: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIObject_Impl, - { + pub const fn new() -> IDXGIObject_Vtbl { + unsafe extern "system" fn SetPrivateData(this: *mut core::ffi::c_void, name: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIObject_Impl::SetPrivateData(this, core::mem::transmute_copy(&name), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, name: *const windows_core::GUID, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIObject_Impl, - { + unsafe extern "system" fn SetPrivateDataInterface(this: *mut core::ffi::c_void, name: *const windows_core::GUID, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIObject_Impl::SetPrivateDataInterface(this, core::mem::transmute_copy(&name), windows_core::from_raw_borrowed(&punknown)).into() } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, name: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIObject_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, name: *const windows_core::GUID, pdatasize: *mut u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIObject_Impl::GetPrivateData(this, core::mem::transmute_copy(&name), core::mem::transmute_copy(&pdatasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIObject_Impl, - { + unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIObject_Impl::GetParent(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppparent)).into() } @@ -1627,14 +1213,8 @@ pub trait IDXGIOutput_Impl: Sized + IDXGIObject_Impl { impl windows_core::RuntimeName for IDXGIOutput {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGIOutput_Vtbl { - pub const fn new() -> IDXGIOutput_Vtbl - where - Identity: IDXGIOutput_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_OUTPUT_DESC) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + pub const fn new() -> IDXGIOutput_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_OUTPUT_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIOutput_Impl::GetDesc(this) { Ok(ok__) => { @@ -1644,80 +1224,47 @@ impl IDXGIOutput_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayModeList(this: *mut core::ffi::c_void, enumformat: Common::DXGI_FORMAT, flags: DXGI_ENUM_MODES, pnummodes: *mut u32, pdesc: *mut Common::DXGI_MODE_DESC) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn GetDisplayModeList(this: *mut core::ffi::c_void, enumformat: Common::DXGI_FORMAT, flags: DXGI_ENUM_MODES, pnummodes: *mut u32, pdesc: *mut Common::DXGI_MODE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::GetDisplayModeList(this, core::mem::transmute_copy(&enumformat), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pnummodes), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn FindClosestMatchingMode(this: *mut core::ffi::c_void, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn FindClosestMatchingMode(this: *mut core::ffi::c_void, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::FindClosestMatchingMode(this, core::mem::transmute_copy(&pmodetomatch), core::mem::transmute_copy(&pclosestmatch), windows_core::from_raw_borrowed(&pconcerneddevice)).into() } - unsafe extern "system" fn WaitForVBlank(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn WaitForVBlank(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::WaitForVBlank(this).into() } - unsafe extern "system" fn TakeOwnership(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, exclusive: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn TakeOwnership(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, exclusive: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::TakeOwnership(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&exclusive)).into() } - unsafe extern "system" fn ReleaseOwnership(this: *mut core::ffi::c_void) - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn ReleaseOwnership(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::ReleaseOwnership(this) } - unsafe extern "system" fn GetGammaControlCapabilities(this: *mut core::ffi::c_void, pgammacaps: *mut Common::DXGI_GAMMA_CONTROL_CAPABILITIES) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn GetGammaControlCapabilities(this: *mut core::ffi::c_void, pgammacaps: *mut Common::DXGI_GAMMA_CONTROL_CAPABILITIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::GetGammaControlCapabilities(this, core::mem::transmute_copy(&pgammacaps)).into() } - unsafe extern "system" fn SetGammaControl(this: *mut core::ffi::c_void, parray: *const Common::DXGI_GAMMA_CONTROL) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn SetGammaControl(this: *mut core::ffi::c_void, parray: *const Common::DXGI_GAMMA_CONTROL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::SetGammaControl(this, core::mem::transmute_copy(&parray)).into() } - unsafe extern "system" fn GetGammaControl(this: *mut core::ffi::c_void, parray: *mut Common::DXGI_GAMMA_CONTROL) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn GetGammaControl(this: *mut core::ffi::c_void, parray: *mut Common::DXGI_GAMMA_CONTROL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::GetGammaControl(this, core::mem::transmute_copy(&parray)).into() } - unsafe extern "system" fn SetDisplaySurface(this: *mut core::ffi::c_void, pscanoutsurface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn SetDisplaySurface(this: *mut core::ffi::c_void, pscanoutsurface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::SetDisplaySurface(this, windows_core::from_raw_borrowed(&pscanoutsurface)).into() } - unsafe extern "system" fn GetDisplaySurfaceData(this: *mut core::ffi::c_void, pdestination: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn GetDisplaySurfaceData(this: *mut core::ffi::c_void, pdestination: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::GetDisplaySurfaceData(this, windows_core::from_raw_borrowed(&pdestination)).into() } - unsafe extern "system" fn GetFrameStatistics(this: *mut core::ffi::c_void, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::HRESULT - where - Identity: IDXGIOutput_Impl, - { + unsafe extern "system" fn GetFrameStatistics(this: *mut core::ffi::c_void, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::GetFrameStatistics(this, core::mem::transmute_copy(&pstats)).into() } @@ -1752,35 +1299,20 @@ pub trait IDXGIOutput1_Impl: Sized + IDXGIOutput_Impl { impl windows_core::RuntimeName for IDXGIOutput1 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGIOutput1_Vtbl { - pub const fn new() -> IDXGIOutput1_Vtbl - where - Identity: IDXGIOutput1_Impl, - { - unsafe extern "system" fn GetDisplayModeList1(this: *mut core::ffi::c_void, enumformat: Common::DXGI_FORMAT, flags: DXGI_ENUM_MODES, pnummodes: *mut u32, pdesc: *mut DXGI_MODE_DESC1) -> windows_core::HRESULT - where - Identity: IDXGIOutput1_Impl, - { + pub const fn new() -> IDXGIOutput1_Vtbl { + unsafe extern "system" fn GetDisplayModeList1(this: *mut core::ffi::c_void, enumformat: Common::DXGI_FORMAT, flags: DXGI_ENUM_MODES, pnummodes: *mut u32, pdesc: *mut DXGI_MODE_DESC1) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput1_Impl::GetDisplayModeList1(this, core::mem::transmute_copy(&enumformat), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pnummodes), core::mem::transmute_copy(&pdesc)).into() } - unsafe extern "system" fn FindClosestMatchingMode1(this: *mut core::ffi::c_void, pmodetomatch: *const DXGI_MODE_DESC1, pclosestmatch: *mut DXGI_MODE_DESC1, pconcerneddevice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutput1_Impl, - { + unsafe extern "system" fn FindClosestMatchingMode1(this: *mut core::ffi::c_void, pmodetomatch: *const DXGI_MODE_DESC1, pclosestmatch: *mut DXGI_MODE_DESC1, pconcerneddevice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput1_Impl::FindClosestMatchingMode1(this, core::mem::transmute_copy(&pmodetomatch), core::mem::transmute_copy(&pclosestmatch), windows_core::from_raw_borrowed(&pconcerneddevice)).into() } - unsafe extern "system" fn GetDisplaySurfaceData1(this: *mut core::ffi::c_void, pdestination: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutput1_Impl, - { + unsafe extern "system" fn GetDisplaySurfaceData1(this: *mut core::ffi::c_void, pdestination: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput1_Impl::GetDisplaySurfaceData1(this, windows_core::from_raw_borrowed(&pdestination)).into() } - unsafe extern "system" fn DuplicateOutput(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, ppoutputduplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutput1_Impl, - { + unsafe extern "system" fn DuplicateOutput(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, ppoutputduplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIOutput1_Impl::DuplicateOutput(this, windows_core::from_raw_borrowed(&pdevice)) { Ok(ok__) => { @@ -1810,14 +1342,8 @@ pub trait IDXGIOutput2_Impl: Sized + IDXGIOutput1_Impl { impl windows_core::RuntimeName for IDXGIOutput2 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGIOutput2_Vtbl { - pub const fn new() -> IDXGIOutput2_Vtbl - where - Identity: IDXGIOutput2_Impl, - { - unsafe extern "system" fn SupportsOverlays(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDXGIOutput2_Impl, - { + pub const fn new() -> IDXGIOutput2_Vtbl { + unsafe extern "system" fn SupportsOverlays(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput2_Impl::SupportsOverlays(this) } @@ -1835,14 +1361,8 @@ pub trait IDXGIOutput3_Impl: Sized + IDXGIOutput2_Impl { impl windows_core::RuntimeName for IDXGIOutput3 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGIOutput3_Vtbl { - pub const fn new() -> IDXGIOutput3_Vtbl - where - Identity: IDXGIOutput3_Impl, - { - unsafe extern "system" fn CheckOverlaySupport(this: *mut core::ffi::c_void, enumformat: Common::DXGI_FORMAT, pconcerneddevice: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIOutput3_Impl, - { + pub const fn new() -> IDXGIOutput3_Vtbl { + unsafe extern "system" fn CheckOverlaySupport(this: *mut core::ffi::c_void, enumformat: Common::DXGI_FORMAT, pconcerneddevice: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIOutput3_Impl::CheckOverlaySupport(this, core::mem::transmute_copy(&enumformat), windows_core::from_raw_borrowed(&pconcerneddevice)) { Ok(ok__) => { @@ -1866,14 +1386,8 @@ pub trait IDXGIOutput4_Impl: Sized + IDXGIOutput3_Impl { impl windows_core::RuntimeName for IDXGIOutput4 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGIOutput4_Vtbl { - pub const fn new() -> IDXGIOutput4_Vtbl - where - Identity: IDXGIOutput4_Impl, - { - unsafe extern "system" fn CheckOverlayColorSpaceSupport(this: *mut core::ffi::c_void, format: Common::DXGI_FORMAT, colorspace: Common::DXGI_COLOR_SPACE_TYPE, pconcerneddevice: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIOutput4_Impl, - { + pub const fn new() -> IDXGIOutput4_Vtbl { + unsafe extern "system" fn CheckOverlayColorSpaceSupport(this: *mut core::ffi::c_void, format: Common::DXGI_FORMAT, colorspace: Common::DXGI_COLOR_SPACE_TYPE, pconcerneddevice: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIOutput4_Impl::CheckOverlayColorSpaceSupport(this, core::mem::transmute_copy(&format), core::mem::transmute_copy(&colorspace), windows_core::from_raw_borrowed(&pconcerneddevice)) { Ok(ok__) => { @@ -1897,14 +1411,8 @@ pub trait IDXGIOutput5_Impl: Sized + IDXGIOutput4_Impl { impl windows_core::RuntimeName for IDXGIOutput5 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGIOutput5_Vtbl { - pub const fn new() -> IDXGIOutput5_Vtbl - where - Identity: IDXGIOutput5_Impl, - { - unsafe extern "system" fn DuplicateOutput1(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, flags: u32, supportedformatscount: u32, psupportedformats: *const Common::DXGI_FORMAT, ppoutputduplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutput5_Impl, - { + pub const fn new() -> IDXGIOutput5_Vtbl { + unsafe extern "system" fn DuplicateOutput1(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, flags: u32, supportedformatscount: u32, psupportedformats: *const Common::DXGI_FORMAT, ppoutputduplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIOutput5_Impl::DuplicateOutput1(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&supportedformatscount), core::mem::transmute_copy(&psupportedformats)) { Ok(ok__) => { @@ -1929,14 +1437,8 @@ pub trait IDXGIOutput6_Impl: Sized + IDXGIOutput5_Impl { impl windows_core::RuntimeName for IDXGIOutput6 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGIOutput6_Vtbl { - pub const fn new() -> IDXGIOutput6_Vtbl - where - Identity: IDXGIOutput6_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut DXGI_OUTPUT_DESC1) -> windows_core::HRESULT - where - Identity: IDXGIOutput6_Impl, - { + pub const fn new() -> IDXGIOutput6_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut DXGI_OUTPUT_DESC1) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIOutput6_Impl::GetDesc1(this) { Ok(ok__) => { @@ -1946,10 +1448,7 @@ impl IDXGIOutput6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckHardwareCompositionSupport(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIOutput6_Impl, - { + unsafe extern "system" fn CheckHardwareCompositionSupport(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIOutput6_Impl::CheckHardwareCompositionSupport(this) { Ok(ok__) => { @@ -1984,49 +1483,28 @@ pub trait IDXGIOutputDuplication_Impl: Sized + IDXGIObject_Impl { impl windows_core::RuntimeName for IDXGIOutputDuplication {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIOutputDuplication_Vtbl { - pub const fn new() -> IDXGIOutputDuplication_Vtbl - where - Identity: IDXGIOutputDuplication_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_OUTDUPL_DESC) - where - Identity: IDXGIOutputDuplication_Impl, - { + pub const fn new() -> IDXGIOutputDuplication_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_OUTDUPL_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutputDuplication_Impl::GetDesc(this, core::mem::transmute_copy(&pdesc)) } - unsafe extern "system" fn AcquireNextFrame(this: *mut core::ffi::c_void, timeoutinmilliseconds: u32, pframeinfo: *mut DXGI_OUTDUPL_FRAME_INFO, ppdesktopresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutputDuplication_Impl, - { + unsafe extern "system" fn AcquireNextFrame(this: *mut core::ffi::c_void, timeoutinmilliseconds: u32, pframeinfo: *mut DXGI_OUTDUPL_FRAME_INFO, ppdesktopresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutputDuplication_Impl::AcquireNextFrame(this, core::mem::transmute_copy(&timeoutinmilliseconds), core::mem::transmute_copy(&pframeinfo), core::mem::transmute_copy(&ppdesktopresource)).into() } - unsafe extern "system" fn GetFrameDirtyRects(this: *mut core::ffi::c_void, dirtyrectsbuffersize: u32, pdirtyrectsbuffer: *mut super::super::Foundation::RECT, pdirtyrectsbuffersizerequired: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIOutputDuplication_Impl, - { + unsafe extern "system" fn GetFrameDirtyRects(this: *mut core::ffi::c_void, dirtyrectsbuffersize: u32, pdirtyrectsbuffer: *mut super::super::Foundation::RECT, pdirtyrectsbuffersizerequired: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutputDuplication_Impl::GetFrameDirtyRects(this, core::mem::transmute_copy(&dirtyrectsbuffersize), core::mem::transmute_copy(&pdirtyrectsbuffer), core::mem::transmute_copy(&pdirtyrectsbuffersizerequired)).into() } - unsafe extern "system" fn GetFrameMoveRects(this: *mut core::ffi::c_void, moverectsbuffersize: u32, pmoverectbuffer: *mut DXGI_OUTDUPL_MOVE_RECT, pmoverectsbuffersizerequired: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGIOutputDuplication_Impl, - { + unsafe extern "system" fn GetFrameMoveRects(this: *mut core::ffi::c_void, moverectsbuffersize: u32, pmoverectbuffer: *mut DXGI_OUTDUPL_MOVE_RECT, pmoverectsbuffersizerequired: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutputDuplication_Impl::GetFrameMoveRects(this, core::mem::transmute_copy(&moverectsbuffersize), core::mem::transmute_copy(&pmoverectbuffer), core::mem::transmute_copy(&pmoverectsbuffersizerequired)).into() } - unsafe extern "system" fn GetFramePointerShape(this: *mut core::ffi::c_void, pointershapebuffersize: u32, ppointershapebuffer: *mut core::ffi::c_void, ppointershapebuffersizerequired: *mut u32, ppointershapeinfo: *mut DXGI_OUTDUPL_POINTER_SHAPE_INFO) -> windows_core::HRESULT - where - Identity: IDXGIOutputDuplication_Impl, - { + unsafe extern "system" fn GetFramePointerShape(this: *mut core::ffi::c_void, pointershapebuffersize: u32, ppointershapebuffer: *mut core::ffi::c_void, ppointershapebuffersizerequired: *mut u32, ppointershapeinfo: *mut DXGI_OUTDUPL_POINTER_SHAPE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutputDuplication_Impl::GetFramePointerShape(this, core::mem::transmute_copy(&pointershapebuffersize), core::mem::transmute_copy(&ppointershapebuffer), core::mem::transmute_copy(&ppointershapebuffersizerequired), core::mem::transmute_copy(&ppointershapeinfo)).into() } - unsafe extern "system" fn MapDesktopSurface(this: *mut core::ffi::c_void, plockedrect: *mut DXGI_MAPPED_RECT) -> windows_core::HRESULT - where - Identity: IDXGIOutputDuplication_Impl, - { + unsafe extern "system" fn MapDesktopSurface(this: *mut core::ffi::c_void, plockedrect: *mut DXGI_MAPPED_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIOutputDuplication_Impl::MapDesktopSurface(this) { Ok(ok__) => { @@ -2036,17 +1514,11 @@ impl IDXGIOutputDuplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnMapDesktopSurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutputDuplication_Impl, - { + unsafe extern "system" fn UnMapDesktopSurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutputDuplication_Impl::UnMapDesktopSurface(this).into() } - unsafe extern "system" fn ReleaseFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIOutputDuplication_Impl, - { + unsafe extern "system" fn ReleaseFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutputDuplication_Impl::ReleaseFrame(this).into() } @@ -2074,14 +1546,8 @@ pub trait IDXGIResource_Impl: Sized + IDXGIDeviceSubObject_Impl { } impl windows_core::RuntimeName for IDXGIResource {} impl IDXGIResource_Vtbl { - pub const fn new() -> IDXGIResource_Vtbl - where - Identity: IDXGIResource_Impl, - { - unsafe extern "system" fn GetSharedHandle(this: *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDXGIResource_Impl, - { + pub const fn new() -> IDXGIResource_Vtbl { + unsafe extern "system" fn GetSharedHandle(this: *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIResource_Impl::GetSharedHandle(this) { Ok(ok__) => { @@ -2091,10 +1557,7 @@ impl IDXGIResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUsage(this: *mut core::ffi::c_void, pusage: *mut DXGI_USAGE) -> windows_core::HRESULT - where - Identity: IDXGIResource_Impl, - { + unsafe extern "system" fn GetUsage(this: *mut core::ffi::c_void, pusage: *mut DXGI_USAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIResource_Impl::GetUsage(this) { Ok(ok__) => { @@ -2104,17 +1567,11 @@ impl IDXGIResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEvictionPriority(this: *mut core::ffi::c_void, evictionpriority: DXGI_RESOURCE_PRIORITY) -> windows_core::HRESULT - where - Identity: IDXGIResource_Impl, - { + unsafe extern "system" fn SetEvictionPriority(this: *mut core::ffi::c_void, evictionpriority: DXGI_RESOURCE_PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIResource_Impl::SetEvictionPriority(this, core::mem::transmute_copy(&evictionpriority)).into() } - unsafe extern "system" fn GetEvictionPriority(this: *mut core::ffi::c_void, pevictionpriority: *mut DXGI_RESOURCE_PRIORITY) -> windows_core::HRESULT - where - Identity: IDXGIResource_Impl, - { + unsafe extern "system" fn GetEvictionPriority(this: *mut core::ffi::c_void, pevictionpriority: *mut DXGI_RESOURCE_PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIResource_Impl::GetEvictionPriority(this) { Ok(ok__) => { @@ -2145,14 +1602,8 @@ pub trait IDXGIResource1_Impl: Sized + IDXGIResource_Impl { impl windows_core::RuntimeName for IDXGIResource1 {} #[cfg(feature = "Win32_Security")] impl IDXGIResource1_Vtbl { - pub const fn new() -> IDXGIResource1_Vtbl - where - Identity: IDXGIResource1_Impl, - { - unsafe extern "system" fn CreateSubresourceSurface(this: *mut core::ffi::c_void, index: u32, ppsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGIResource1_Impl, - { + pub const fn new() -> IDXGIResource1_Vtbl { + unsafe extern "system" fn CreateSubresourceSurface(this: *mut core::ffi::c_void, index: u32, ppsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIResource1_Impl::CreateSubresourceSurface(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2162,10 +1613,7 @@ impl IDXGIResource1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSharedHandle(this: *mut core::ffi::c_void, pattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwaccess: u32, lpname: windows_core::PCWSTR, phandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDXGIResource1_Impl, - { + unsafe extern "system" fn CreateSharedHandle(this: *mut core::ffi::c_void, pattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwaccess: u32, lpname: windows_core::PCWSTR, phandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGIResource1_Impl::CreateSharedHandle(this, core::mem::transmute_copy(&pattributes), core::mem::transmute_copy(&dwaccess), core::mem::transmute(&lpname)) { Ok(ok__) => { @@ -2195,14 +1643,8 @@ pub trait IDXGISurface_Impl: Sized + IDXGIDeviceSubObject_Impl { impl windows_core::RuntimeName for IDXGISurface {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGISurface_Vtbl { - pub const fn new() -> IDXGISurface_Vtbl - where - Identity: IDXGISurface_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_SURFACE_DESC) -> windows_core::HRESULT - where - Identity: IDXGISurface_Impl, - { + pub const fn new() -> IDXGISurface_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_SURFACE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISurface_Impl::GetDesc(this) { Ok(ok__) => { @@ -2212,17 +1654,11 @@ impl IDXGISurface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Map(this: *mut core::ffi::c_void, plockedrect: *mut DXGI_MAPPED_RECT, mapflags: DXGI_MAP_FLAGS) -> windows_core::HRESULT - where - Identity: IDXGISurface_Impl, - { + unsafe extern "system" fn Map(this: *mut core::ffi::c_void, plockedrect: *mut DXGI_MAPPED_RECT, mapflags: DXGI_MAP_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISurface_Impl::Map(this, core::mem::transmute_copy(&plockedrect), core::mem::transmute_copy(&mapflags)).into() } - unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGISurface_Impl, - { + unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISurface_Impl::Unmap(this).into() } @@ -2246,14 +1682,8 @@ pub trait IDXGISurface1_Impl: Sized + IDXGISurface_Impl { impl windows_core::RuntimeName for IDXGISurface1 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGISurface1_Vtbl { - pub const fn new() -> IDXGISurface1_Vtbl - where - Identity: IDXGISurface1_Impl, - { - unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, discard: super::super::Foundation::BOOL, phdc: *mut super::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDXGISurface1_Impl, - { + pub const fn new() -> IDXGISurface1_Vtbl { + unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, discard: super::super::Foundation::BOOL, phdc: *mut super::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISurface1_Impl::GetDC(this, core::mem::transmute_copy(&discard)) { Ok(ok__) => { @@ -2263,10 +1693,7 @@ impl IDXGISurface1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, pdirtyrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDXGISurface1_Impl, - { + unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, pdirtyrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISurface1_Impl::ReleaseDC(this, core::mem::transmute_copy(&pdirtyrect)).into() } @@ -2284,14 +1711,8 @@ pub trait IDXGISurface2_Impl: Sized + IDXGISurface1_Impl { impl windows_core::RuntimeName for IDXGISurface2 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGISurface2_Vtbl { - pub const fn new() -> IDXGISurface2_Vtbl - where - Identity: IDXGISurface2_Impl, - { - unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppparentresource: *mut *mut core::ffi::c_void, psubresourceindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGISurface2_Impl, - { + pub const fn new() -> IDXGISurface2_Vtbl { + unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppparentresource: *mut *mut core::ffi::c_void, psubresourceindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISurface2_Impl::GetResource(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppparentresource), core::mem::transmute_copy(&psubresourceindex)).into() } @@ -2318,42 +1739,24 @@ pub trait IDXGISwapChain_Impl: Sized + IDXGIDeviceSubObject_Impl { impl windows_core::RuntimeName for IDXGISwapChain {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGISwapChain_Vtbl { - pub const fn new() -> IDXGISwapChain_Vtbl - where - Identity: IDXGISwapChain_Impl, - { - unsafe extern "system" fn Present(this: *mut core::ffi::c_void, syncinterval: u32, flags: DXGI_PRESENT) -> windows_core::HRESULT - where - Identity: IDXGISwapChain_Impl, - { + pub const fn new() -> IDXGISwapChain_Vtbl { + unsafe extern "system" fn Present(this: *mut core::ffi::c_void, syncinterval: u32, flags: DXGI_PRESENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain_Impl::Present(this, core::mem::transmute_copy(&syncinterval), core::mem::transmute_copy(&flags)) } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, buffer: u32, riid: *const windows_core::GUID, ppsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGISwapChain_Impl, - { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, buffer: u32, riid: *const windows_core::GUID, ppsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain_Impl::GetBuffer(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppsurface)).into() } - unsafe extern "system" fn SetFullscreenState(this: *mut core::ffi::c_void, fullscreen: super::super::Foundation::BOOL, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGISwapChain_Impl, - { + unsafe extern "system" fn SetFullscreenState(this: *mut core::ffi::c_void, fullscreen: super::super::Foundation::BOOL, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain_Impl::SetFullscreenState(this, core::mem::transmute_copy(&fullscreen), windows_core::from_raw_borrowed(&ptarget)).into() } - unsafe extern "system" fn GetFullscreenState(this: *mut core::ffi::c_void, pfullscreen: *mut super::super::Foundation::BOOL, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGISwapChain_Impl, - { + unsafe extern "system" fn GetFullscreenState(this: *mut core::ffi::c_void, pfullscreen: *mut super::super::Foundation::BOOL, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain_Impl::GetFullscreenState(this, core::mem::transmute_copy(&pfullscreen), core::mem::transmute_copy(&pptarget)).into() } - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_SWAP_CHAIN_DESC) -> windows_core::HRESULT - where - Identity: IDXGISwapChain_Impl, - { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_SWAP_CHAIN_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain_Impl::GetDesc(this) { Ok(ok__) => { @@ -2363,24 +1766,15 @@ impl IDXGISwapChain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResizeBuffers(this: *mut core::ffi::c_void, buffercount: u32, width: u32, height: u32, newformat: Common::DXGI_FORMAT, swapchainflags: u32) -> windows_core::HRESULT - where - Identity: IDXGISwapChain_Impl, - { + unsafe extern "system" fn ResizeBuffers(this: *mut core::ffi::c_void, buffercount: u32, width: u32, height: u32, newformat: Common::DXGI_FORMAT, swapchainflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain_Impl::ResizeBuffers(this, core::mem::transmute_copy(&buffercount), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&newformat), core::mem::transmute(&swapchainflags)).into() } - unsafe extern "system" fn ResizeTarget(this: *mut core::ffi::c_void, pnewtargetparameters: *const Common::DXGI_MODE_DESC) -> windows_core::HRESULT - where - Identity: IDXGISwapChain_Impl, - { + unsafe extern "system" fn ResizeTarget(this: *mut core::ffi::c_void, pnewtargetparameters: *const Common::DXGI_MODE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain_Impl::ResizeTarget(this, core::mem::transmute_copy(&pnewtargetparameters)).into() } - unsafe extern "system" fn GetContainingOutput(this: *mut core::ffi::c_void, ppoutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGISwapChain_Impl, - { + unsafe extern "system" fn GetContainingOutput(this: *mut core::ffi::c_void, ppoutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain_Impl::GetContainingOutput(this) { Ok(ok__) => { @@ -2390,17 +1784,11 @@ impl IDXGISwapChain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrameStatistics(this: *mut core::ffi::c_void, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::HRESULT - where - Identity: IDXGISwapChain_Impl, - { + unsafe extern "system" fn GetFrameStatistics(this: *mut core::ffi::c_void, pstats: *mut DXGI_FRAME_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain_Impl::GetFrameStatistics(this, core::mem::transmute_copy(&pstats)).into() } - unsafe extern "system" fn GetLastPresentCount(this: *mut core::ffi::c_void, plastpresentcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGISwapChain_Impl, - { + unsafe extern "system" fn GetLastPresentCount(this: *mut core::ffi::c_void, plastpresentcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain_Impl::GetLastPresentCount(this) { Ok(ok__) => { @@ -2446,14 +1834,8 @@ pub trait IDXGISwapChain1_Impl: Sized + IDXGISwapChain_Impl { impl windows_core::RuntimeName for IDXGISwapChain1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGISwapChain1_Vtbl { - pub const fn new() -> IDXGISwapChain1_Vtbl - where - Identity: IDXGISwapChain1_Impl, - { - unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut DXGI_SWAP_CHAIN_DESC1) -> windows_core::HRESULT - where - Identity: IDXGISwapChain1_Impl, - { + pub const fn new() -> IDXGISwapChain1_Vtbl { + unsafe extern "system" fn GetDesc1(this: *mut core::ffi::c_void, pdesc: *mut DXGI_SWAP_CHAIN_DESC1) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain1_Impl::GetDesc1(this) { Ok(ok__) => { @@ -2463,10 +1845,7 @@ impl IDXGISwapChain1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFullscreenDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_SWAP_CHAIN_FULLSCREEN_DESC) -> windows_core::HRESULT - where - Identity: IDXGISwapChain1_Impl, - { + unsafe extern "system" fn GetFullscreenDesc(this: *mut core::ffi::c_void, pdesc: *mut DXGI_SWAP_CHAIN_FULLSCREEN_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain1_Impl::GetFullscreenDesc(this) { Ok(ok__) => { @@ -2476,10 +1855,7 @@ impl IDXGISwapChain1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHwnd(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDXGISwapChain1_Impl, - { + unsafe extern "system" fn GetHwnd(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain1_Impl::GetHwnd(this) { Ok(ok__) => { @@ -2489,31 +1865,19 @@ impl IDXGISwapChain1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCoreWindow(this: *mut core::ffi::c_void, refiid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGISwapChain1_Impl, - { + unsafe extern "system" fn GetCoreWindow(this: *mut core::ffi::c_void, refiid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain1_Impl::GetCoreWindow(this, core::mem::transmute_copy(&refiid), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn Present1(this: *mut core::ffi::c_void, syncinterval: u32, presentflags: DXGI_PRESENT, ppresentparameters: *const DXGI_PRESENT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDXGISwapChain1_Impl, - { + unsafe extern "system" fn Present1(this: *mut core::ffi::c_void, syncinterval: u32, presentflags: DXGI_PRESENT, ppresentparameters: *const DXGI_PRESENT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain1_Impl::Present1(this, core::mem::transmute_copy(&syncinterval), core::mem::transmute_copy(&presentflags), core::mem::transmute_copy(&ppresentparameters)) } - unsafe extern "system" fn IsTemporaryMonoSupported(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDXGISwapChain1_Impl, - { + unsafe extern "system" fn IsTemporaryMonoSupported(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain1_Impl::IsTemporaryMonoSupported(this) } - unsafe extern "system" fn GetRestrictToOutput(this: *mut core::ffi::c_void, pprestricttooutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGISwapChain1_Impl, - { + unsafe extern "system" fn GetRestrictToOutput(this: *mut core::ffi::c_void, pprestricttooutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain1_Impl::GetRestrictToOutput(this) { Ok(ok__) => { @@ -2523,17 +1887,11 @@ impl IDXGISwapChain1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, pcolor: *const DXGI_RGBA) -> windows_core::HRESULT - where - Identity: IDXGISwapChain1_Impl, - { + unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, pcolor: *const DXGI_RGBA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain1_Impl::SetBackgroundColor(this, core::mem::transmute_copy(&pcolor)).into() } - unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, pcolor: *mut DXGI_RGBA) -> windows_core::HRESULT - where - Identity: IDXGISwapChain1_Impl, - { + unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, pcolor: *mut DXGI_RGBA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain1_Impl::GetBackgroundColor(this) { Ok(ok__) => { @@ -2543,17 +1901,11 @@ impl IDXGISwapChain1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, rotation: Common::DXGI_MODE_ROTATION) -> windows_core::HRESULT - where - Identity: IDXGISwapChain1_Impl, - { + unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, rotation: Common::DXGI_MODE_ROTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain1_Impl::SetRotation(this, core::mem::transmute_copy(&rotation)).into() } - unsafe extern "system" fn GetRotation(this: *mut core::ffi::c_void, protation: *mut Common::DXGI_MODE_ROTATION) -> windows_core::HRESULT - where - Identity: IDXGISwapChain1_Impl, - { + unsafe extern "system" fn GetRotation(this: *mut core::ffi::c_void, protation: *mut Common::DXGI_MODE_ROTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain1_Impl::GetRotation(this) { Ok(ok__) => { @@ -2596,35 +1948,20 @@ pub trait IDXGISwapChain2_Impl: Sized + IDXGISwapChain1_Impl { impl windows_core::RuntimeName for IDXGISwapChain2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGISwapChain2_Vtbl { - pub const fn new() -> IDXGISwapChain2_Vtbl - where - Identity: IDXGISwapChain2_Impl, - { - unsafe extern "system" fn SetSourceSize(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT - where - Identity: IDXGISwapChain2_Impl, - { + pub const fn new() -> IDXGISwapChain2_Vtbl { + unsafe extern "system" fn SetSourceSize(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain2_Impl::SetSourceSize(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn GetSourceSize(this: *mut core::ffi::c_void, pwidth: *mut u32, pheight: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGISwapChain2_Impl, - { + unsafe extern "system" fn GetSourceSize(this: *mut core::ffi::c_void, pwidth: *mut u32, pheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain2_Impl::GetSourceSize(this, core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn SetMaximumFrameLatency(this: *mut core::ffi::c_void, maxlatency: u32) -> windows_core::HRESULT - where - Identity: IDXGISwapChain2_Impl, - { + unsafe extern "system" fn SetMaximumFrameLatency(this: *mut core::ffi::c_void, maxlatency: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain2_Impl::SetMaximumFrameLatency(this, core::mem::transmute_copy(&maxlatency)).into() } - unsafe extern "system" fn GetMaximumFrameLatency(this: *mut core::ffi::c_void, pmaxlatency: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGISwapChain2_Impl, - { + unsafe extern "system" fn GetMaximumFrameLatency(this: *mut core::ffi::c_void, pmaxlatency: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain2_Impl::GetMaximumFrameLatency(this) { Ok(ok__) => { @@ -2634,24 +1971,15 @@ impl IDXGISwapChain2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrameLatencyWaitableObject(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: IDXGISwapChain2_Impl, - { + unsafe extern "system" fn GetFrameLatencyWaitableObject(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain2_Impl::GetFrameLatencyWaitableObject(this) } - unsafe extern "system" fn SetMatrixTransform(this: *mut core::ffi::c_void, pmatrix: *const DXGI_MATRIX_3X2_F) -> windows_core::HRESULT - where - Identity: IDXGISwapChain2_Impl, - { + unsafe extern "system" fn SetMatrixTransform(this: *mut core::ffi::c_void, pmatrix: *const DXGI_MATRIX_3X2_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain2_Impl::SetMatrixTransform(this, core::mem::transmute_copy(&pmatrix)).into() } - unsafe extern "system" fn GetMatrixTransform(this: *mut core::ffi::c_void, pmatrix: *mut DXGI_MATRIX_3X2_F) -> windows_core::HRESULT - where - Identity: IDXGISwapChain2_Impl, - { + unsafe extern "system" fn GetMatrixTransform(this: *mut core::ffi::c_void, pmatrix: *mut DXGI_MATRIX_3X2_F) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain2_Impl::GetMatrixTransform(this, core::mem::transmute_copy(&pmatrix)).into() } @@ -2681,21 +2009,12 @@ pub trait IDXGISwapChain3_Impl: Sized + IDXGISwapChain2_Impl { impl windows_core::RuntimeName for IDXGISwapChain3 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGISwapChain3_Vtbl { - pub const fn new() -> IDXGISwapChain3_Vtbl - where - Identity: IDXGISwapChain3_Impl, - { - unsafe extern "system" fn GetCurrentBackBufferIndex(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDXGISwapChain3_Impl, - { + pub const fn new() -> IDXGISwapChain3_Vtbl { + unsafe extern "system" fn GetCurrentBackBufferIndex(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain3_Impl::GetCurrentBackBufferIndex(this) } - unsafe extern "system" fn CheckColorSpaceSupport(this: *mut core::ffi::c_void, colorspace: Common::DXGI_COLOR_SPACE_TYPE, pcolorspacesupport: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGISwapChain3_Impl, - { + unsafe extern "system" fn CheckColorSpaceSupport(this: *mut core::ffi::c_void, colorspace: Common::DXGI_COLOR_SPACE_TYPE, pcolorspacesupport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISwapChain3_Impl::CheckColorSpaceSupport(this, core::mem::transmute_copy(&colorspace)) { Ok(ok__) => { @@ -2705,17 +2024,11 @@ impl IDXGISwapChain3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorSpace1(this: *mut core::ffi::c_void, colorspace: Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::HRESULT - where - Identity: IDXGISwapChain3_Impl, - { + unsafe extern "system" fn SetColorSpace1(this: *mut core::ffi::c_void, colorspace: Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain3_Impl::SetColorSpace1(this, core::mem::transmute_copy(&colorspace)).into() } - unsafe extern "system" fn ResizeBuffers1(this: *mut core::ffi::c_void, buffercount: u32, width: u32, height: u32, format: Common::DXGI_FORMAT, swapchainflags: u32, pcreationnodemask: *const u32, pppresentqueue: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGISwapChain3_Impl, - { + unsafe extern "system" fn ResizeBuffers1(this: *mut core::ffi::c_void, buffercount: u32, width: u32, height: u32, format: Common::DXGI_FORMAT, swapchainflags: u32, pcreationnodemask: *const u32, pppresentqueue: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain3_Impl::ResizeBuffers1(this, core::mem::transmute_copy(&buffercount), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute(&swapchainflags), core::mem::transmute_copy(&pcreationnodemask), core::mem::transmute_copy(&pppresentqueue)).into() } @@ -2739,14 +2052,8 @@ pub trait IDXGISwapChain4_Impl: Sized + IDXGISwapChain3_Impl { impl windows_core::RuntimeName for IDXGISwapChain4 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGISwapChain4_Vtbl { - pub const fn new() -> IDXGISwapChain4_Vtbl - where - Identity: IDXGISwapChain4_Impl, - { - unsafe extern "system" fn SetHDRMetaData(this: *mut core::ffi::c_void, r#type: DXGI_HDR_METADATA_TYPE, size: u32, pmetadata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXGISwapChain4_Impl, - { + pub const fn new() -> IDXGISwapChain4_Vtbl { + unsafe extern "system" fn SetHDRMetaData(this: *mut core::ffi::c_void, r#type: DXGI_HDR_METADATA_TYPE, size: u32, pmetadata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain4_Impl::SetHDRMetaData(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&size), core::mem::transmute_copy(&pmetadata)).into() } @@ -2756,35 +2063,23 @@ impl IDXGISwapChain4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDXGISwapChainMedia_Impl: Sized { +pub trait IDXGISwapChainMedia_Impl: Sized + windows_core::IUnknownImpl { fn GetFrameStatisticsMedia(&self, pstats: *mut DXGI_FRAME_STATISTICS_MEDIA) -> windows_core::Result<()>; fn SetPresentDuration(&self, duration: u32) -> windows_core::Result<()>; fn CheckPresentDurationSupport(&self, desiredpresentduration: u32, pclosestsmallerpresentduration: *mut u32, pclosestlargerpresentduration: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDXGISwapChainMedia {} impl IDXGISwapChainMedia_Vtbl { - pub const fn new() -> IDXGISwapChainMedia_Vtbl - where - Identity: IDXGISwapChainMedia_Impl, - { - unsafe extern "system" fn GetFrameStatisticsMedia(this: *mut core::ffi::c_void, pstats: *mut DXGI_FRAME_STATISTICS_MEDIA) -> windows_core::HRESULT - where - Identity: IDXGISwapChainMedia_Impl, - { + pub const fn new() -> IDXGISwapChainMedia_Vtbl { + unsafe extern "system" fn GetFrameStatisticsMedia(this: *mut core::ffi::c_void, pstats: *mut DXGI_FRAME_STATISTICS_MEDIA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChainMedia_Impl::GetFrameStatisticsMedia(this, core::mem::transmute_copy(&pstats)).into() } - unsafe extern "system" fn SetPresentDuration(this: *mut core::ffi::c_void, duration: u32) -> windows_core::HRESULT - where - Identity: IDXGISwapChainMedia_Impl, - { + unsafe extern "system" fn SetPresentDuration(this: *mut core::ffi::c_void, duration: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChainMedia_Impl::SetPresentDuration(this, core::mem::transmute_copy(&duration)).into() } - unsafe extern "system" fn CheckPresentDurationSupport(this: *mut core::ffi::c_void, desiredpresentduration: u32, pclosestsmallerpresentduration: *mut u32, pclosestlargerpresentduration: *mut u32) -> windows_core::HRESULT - where - Identity: IDXGISwapChainMedia_Impl, - { + unsafe extern "system" fn CheckPresentDurationSupport(this: *mut core::ffi::c_void, desiredpresentduration: u32, pclosestsmallerpresentduration: *mut u32, pclosestlargerpresentduration: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChainMedia_Impl::CheckPresentDurationSupport(this, core::mem::transmute_copy(&desiredpresentduration), core::mem::transmute_copy(&pclosestsmallerpresentduration), core::mem::transmute_copy(&pclosestlargerpresentduration)).into() } @@ -2799,27 +2094,18 @@ impl IDXGISwapChainMedia_Vtbl { iid == &::IID } } -pub trait IDXGraphicsAnalysis_Impl: Sized { +pub trait IDXGraphicsAnalysis_Impl: Sized + windows_core::IUnknownImpl { fn BeginCapture(&self); fn EndCapture(&self); } impl windows_core::RuntimeName for IDXGraphicsAnalysis {} impl IDXGraphicsAnalysis_Vtbl { - pub const fn new() -> IDXGraphicsAnalysis_Vtbl - where - Identity: IDXGraphicsAnalysis_Impl, - { - unsafe extern "system" fn BeginCapture(this: *mut core::ffi::c_void) - where - Identity: IDXGraphicsAnalysis_Impl, - { + pub const fn new() -> IDXGraphicsAnalysis_Vtbl { + unsafe extern "system" fn BeginCapture(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGraphicsAnalysis_Impl::BeginCapture(this) } - unsafe extern "system" fn EndCapture(this: *mut core::ffi::c_void) - where - Identity: IDXGraphicsAnalysis_Impl, - { + unsafe extern "system" fn EndCapture(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGraphicsAnalysis_Impl::EndCapture(this) } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/impl.rs index 75a509196c..f8ccf17868 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/impl.rs @@ -23,35 +23,23 @@ impl GdiplusAbort { unsafe { windows_core::ScopedInterface::new(core::mem::transmute(&this.vtable)) } } } -pub trait IImageBytes_Impl: Sized { +pub trait IImageBytes_Impl: Sized + windows_core::IUnknownImpl { fn CountBytes(&self, pcb: *mut u32) -> windows_core::Result<()>; fn LockBytes(&self, cb: u32, uloffset: u32, ppvbytes: *const *const core::ffi::c_void) -> windows_core::Result<()>; fn UnlockBytes(&self, pvbytes: *const core::ffi::c_void, cb: u32, uloffset: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IImageBytes {} impl IImageBytes_Vtbl { - pub const fn new() -> IImageBytes_Vtbl - where - Identity: IImageBytes_Impl, - { - unsafe extern "system" fn CountBytes(this: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT - where - Identity: IImageBytes_Impl, - { + pub const fn new() -> IImageBytes_Vtbl { + unsafe extern "system" fn CountBytes(this: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageBytes_Impl::CountBytes(this, core::mem::transmute_copy(&pcb)).into() } - unsafe extern "system" fn LockBytes(this: *mut core::ffi::c_void, cb: u32, uloffset: u32, ppvbytes: *const *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageBytes_Impl, - { + unsafe extern "system" fn LockBytes(this: *mut core::ffi::c_void, cb: u32, uloffset: u32, ppvbytes: *const *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageBytes_Impl::LockBytes(this, core::mem::transmute_copy(&cb), core::mem::transmute_copy(&uloffset), core::mem::transmute_copy(&ppvbytes)).into() } - unsafe extern "system" fn UnlockBytes(this: *mut core::ffi::c_void, pvbytes: *const core::ffi::c_void, cb: u32, uloffset: u32) -> windows_core::HRESULT - where - Identity: IImageBytes_Impl, - { + unsafe extern "system" fn UnlockBytes(this: *mut core::ffi::c_void, pvbytes: *const core::ffi::c_void, cb: u32, uloffset: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageBytes_Impl::UnlockBytes(this, core::mem::transmute_copy(&pvbytes), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&uloffset)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/impl.rs index e1ec70e923..b33f3af3d9 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] -pub trait IWICImageEncoder_Impl: Sized { +pub trait IWICImageEncoder_Impl: Sized + windows_core::IUnknownImpl { fn WriteFrame(&self, pimage: Option<&super::super::Direct2D::ID2D1Image>, pframeencode: Option<&super::IWICBitmapFrameEncode>, pimageparameters: *const super::WICImageParameters) -> windows_core::Result<()>; fn WriteFrameThumbnail(&self, pimage: Option<&super::super::Direct2D::ID2D1Image>, pframeencode: Option<&super::IWICBitmapFrameEncode>, pimageparameters: *const super::WICImageParameters) -> windows_core::Result<()>; fn WriteThumbnail(&self, pimage: Option<&super::super::Direct2D::ID2D1Image>, pencoder: Option<&super::IWICBitmapEncoder>, pimageparameters: *const super::WICImageParameters) -> windows_core::Result<()>; @@ -8,28 +8,16 @@ pub trait IWICImageEncoder_Impl: Sized { impl windows_core::RuntimeName for IWICImageEncoder {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] impl IWICImageEncoder_Vtbl { - pub const fn new() -> IWICImageEncoder_Vtbl - where - Identity: IWICImageEncoder_Impl, - { - unsafe extern "system" fn WriteFrame(this: *mut core::ffi::c_void, pimage: *mut core::ffi::c_void, pframeencode: *mut core::ffi::c_void, pimageparameters: *const super::WICImageParameters) -> windows_core::HRESULT - where - Identity: IWICImageEncoder_Impl, - { + pub const fn new() -> IWICImageEncoder_Vtbl { + unsafe extern "system" fn WriteFrame(this: *mut core::ffi::c_void, pimage: *mut core::ffi::c_void, pframeencode: *mut core::ffi::c_void, pimageparameters: *const super::WICImageParameters) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICImageEncoder_Impl::WriteFrame(this, windows_core::from_raw_borrowed(&pimage), windows_core::from_raw_borrowed(&pframeencode), core::mem::transmute_copy(&pimageparameters)).into() } - unsafe extern "system" fn WriteFrameThumbnail(this: *mut core::ffi::c_void, pimage: *mut core::ffi::c_void, pframeencode: *mut core::ffi::c_void, pimageparameters: *const super::WICImageParameters) -> windows_core::HRESULT - where - Identity: IWICImageEncoder_Impl, - { + unsafe extern "system" fn WriteFrameThumbnail(this: *mut core::ffi::c_void, pimage: *mut core::ffi::c_void, pframeencode: *mut core::ffi::c_void, pimageparameters: *const super::WICImageParameters) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICImageEncoder_Impl::WriteFrameThumbnail(this, windows_core::from_raw_borrowed(&pimage), windows_core::from_raw_borrowed(&pframeencode), core::mem::transmute_copy(&pimageparameters)).into() } - unsafe extern "system" fn WriteThumbnail(this: *mut core::ffi::c_void, pimage: *mut core::ffi::c_void, pencoder: *mut core::ffi::c_void, pimageparameters: *const super::WICImageParameters) -> windows_core::HRESULT - where - Identity: IWICImageEncoder_Impl, - { + unsafe extern "system" fn WriteThumbnail(this: *mut core::ffi::c_void, pimage: *mut core::ffi::c_void, pencoder: *mut core::ffi::c_void, pimageparameters: *const super::WICImageParameters) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICImageEncoder_Impl::WriteThumbnail(this, windows_core::from_raw_borrowed(&pimage), windows_core::from_raw_borrowed(&pencoder), core::mem::transmute_copy(&pimageparameters)).into() } @@ -52,14 +40,8 @@ pub trait IWICImagingFactory2_Impl: Sized + super::IWICImagingFactory_Impl { impl windows_core::RuntimeName for IWICImagingFactory2 {} #[cfg(all(feature = "Win32_Graphics_Direct2D", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] impl IWICImagingFactory2_Vtbl { - pub const fn new() -> IWICImagingFactory2_Vtbl - where - Identity: IWICImagingFactory2_Impl, - { - unsafe extern "system" fn CreateImageEncoder(this: *mut core::ffi::c_void, pd2ddevice: *mut core::ffi::c_void, ppwicimageencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory2_Impl, - { + pub const fn new() -> IWICImagingFactory2_Vtbl { + unsafe extern "system" fn CreateImageEncoder(this: *mut core::ffi::c_void, pd2ddevice: *mut core::ffi::c_void, ppwicimageencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory2_Impl::CreateImageEncoder(this, windows_core::from_raw_borrowed(&pd2ddevice)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/impl.rs index 6d789cf24d..2092a6c42f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/impl.rs @@ -5,14 +5,8 @@ pub trait IWICBitmap_Impl: Sized + IWICBitmapSource_Impl { } impl windows_core::RuntimeName for IWICBitmap {} impl IWICBitmap_Vtbl { - pub const fn new() -> IWICBitmap_Vtbl - where - Identity: IWICBitmap_Impl, - { - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, prclock: *const WICRect, flags: u32, ppilock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmap_Impl, - { + pub const fn new() -> IWICBitmap_Vtbl { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, prclock: *const WICRect, flags: u32, ppilock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmap_Impl::Lock(this, core::mem::transmute_copy(&prclock), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -22,17 +16,11 @@ impl IWICBitmap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmap_Impl, - { + unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmap_Impl::SetPalette(this, windows_core::from_raw_borrowed(&pipalette)).into() } - unsafe extern "system" fn SetResolution(this: *mut core::ffi::c_void, dpix: f64, dpiy: f64) -> windows_core::HRESULT - where - Identity: IWICBitmap_Impl, - { + unsafe extern "system" fn SetResolution(this: *mut core::ffi::c_void, dpix: f64, dpiy: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmap_Impl::SetResolution(this, core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy)).into() } @@ -52,14 +40,8 @@ pub trait IWICBitmapClipper_Impl: Sized + IWICBitmapSource_Impl { } impl windows_core::RuntimeName for IWICBitmapClipper {} impl IWICBitmapClipper_Vtbl { - pub const fn new() -> IWICBitmapClipper_Vtbl - where - Identity: IWICBitmapClipper_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pisource: *mut core::ffi::c_void, prc: *const WICRect) -> windows_core::HRESULT - where - Identity: IWICBitmapClipper_Impl, - { + pub const fn new() -> IWICBitmapClipper_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pisource: *mut core::ffi::c_void, prc: *const WICRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapClipper_Impl::Initialize(this, windows_core::from_raw_borrowed(&pisource), core::mem::transmute_copy(&prc)).into() } @@ -85,14 +67,8 @@ pub trait IWICBitmapCodecInfo_Impl: Sized + IWICComponentInfo_Impl { } impl windows_core::RuntimeName for IWICBitmapCodecInfo {} impl IWICBitmapCodecInfo_Vtbl { - pub const fn new() -> IWICBitmapCodecInfo_Vtbl - where - Identity: IWICBitmapCodecInfo_Impl, - { - unsafe extern "system" fn GetContainerFormat(this: *mut core::ffi::c_void, pguidcontainerformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + pub const fn new() -> IWICBitmapCodecInfo_Vtbl { + unsafe extern "system" fn GetContainerFormat(this: *mut core::ffi::c_void, pguidcontainerformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::GetContainerFormat(this) { Ok(ok__) => { @@ -102,52 +78,31 @@ impl IWICBitmapCodecInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPixelFormats(this: *mut core::ffi::c_void, cformats: u32, pguidpixelformats: *mut windows_core::GUID, pcactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn GetPixelFormats(this: *mut core::ffi::c_void, cformats: u32, pguidpixelformats: *mut windows_core::GUID, pcactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapCodecInfo_Impl::GetPixelFormats(this, core::mem::transmute_copy(&cformats), core::mem::transmute_copy(&pguidpixelformats), core::mem::transmute_copy(&pcactual)).into() } - unsafe extern "system" fn GetColorManagementVersion(this: *mut core::ffi::c_void, cchcolormanagementversion: u32, wzcolormanagementversion: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn GetColorManagementVersion(this: *mut core::ffi::c_void, cchcolormanagementversion: u32, wzcolormanagementversion: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapCodecInfo_Impl::GetColorManagementVersion(this, core::mem::transmute_copy(&cchcolormanagementversion), core::mem::transmute(&wzcolormanagementversion), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn GetDeviceManufacturer(this: *mut core::ffi::c_void, cchdevicemanufacturer: u32, wzdevicemanufacturer: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn GetDeviceManufacturer(this: *mut core::ffi::c_void, cchdevicemanufacturer: u32, wzdevicemanufacturer: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapCodecInfo_Impl::GetDeviceManufacturer(this, core::mem::transmute_copy(&cchdevicemanufacturer), core::mem::transmute(&wzdevicemanufacturer), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn GetDeviceModels(this: *mut core::ffi::c_void, cchdevicemodels: u32, wzdevicemodels: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn GetDeviceModels(this: *mut core::ffi::c_void, cchdevicemodels: u32, wzdevicemodels: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapCodecInfo_Impl::GetDeviceModels(this, core::mem::transmute_copy(&cchdevicemodels), core::mem::transmute(&wzdevicemodels), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn GetMimeTypes(this: *mut core::ffi::c_void, cchmimetypes: u32, wzmimetypes: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn GetMimeTypes(this: *mut core::ffi::c_void, cchmimetypes: u32, wzmimetypes: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapCodecInfo_Impl::GetMimeTypes(this, core::mem::transmute_copy(&cchmimetypes), core::mem::transmute(&wzmimetypes), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn GetFileExtensions(this: *mut core::ffi::c_void, cchfileextensions: u32, wzfileextensions: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn GetFileExtensions(this: *mut core::ffi::c_void, cchfileextensions: u32, wzfileextensions: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapCodecInfo_Impl::GetFileExtensions(this, core::mem::transmute_copy(&cchfileextensions), core::mem::transmute(&wzfileextensions), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn DoesSupportAnimation(this: *mut core::ffi::c_void, pfsupportanimation: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn DoesSupportAnimation(this: *mut core::ffi::c_void, pfsupportanimation: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::DoesSupportAnimation(this) { Ok(ok__) => { @@ -157,10 +112,7 @@ impl IWICBitmapCodecInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoesSupportChromakey(this: *mut core::ffi::c_void, pfsupportchromakey: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn DoesSupportChromakey(this: *mut core::ffi::c_void, pfsupportchromakey: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::DoesSupportChromakey(this) { Ok(ok__) => { @@ -170,10 +122,7 @@ impl IWICBitmapCodecInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoesSupportLossless(this: *mut core::ffi::c_void, pfsupportlossless: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn DoesSupportLossless(this: *mut core::ffi::c_void, pfsupportlossless: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::DoesSupportLossless(this) { Ok(ok__) => { @@ -183,10 +132,7 @@ impl IWICBitmapCodecInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoesSupportMultiframe(this: *mut core::ffi::c_void, pfsupportmultiframe: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn DoesSupportMultiframe(this: *mut core::ffi::c_void, pfsupportmultiframe: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::DoesSupportMultiframe(this) { Ok(ok__) => { @@ -196,10 +142,7 @@ impl IWICBitmapCodecInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MatchesMimeType(this: *mut core::ffi::c_void, wzmimetype: windows_core::PCWSTR, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecInfo_Impl, - { + unsafe extern "system" fn MatchesMimeType(this: *mut core::ffi::c_void, wzmimetype: windows_core::PCWSTR, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::MatchesMimeType(this, core::mem::transmute(&wzmimetype)) { Ok(ok__) => { @@ -229,19 +172,13 @@ impl IWICBitmapCodecInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWICBitmapCodecProgressNotification_Impl: Sized { +pub trait IWICBitmapCodecProgressNotification_Impl: Sized + windows_core::IUnknownImpl { fn RegisterProgressNotification(&self, pfnprogressnotification: PFNProgressNotification, pvdata: *const core::ffi::c_void, dwprogressflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWICBitmapCodecProgressNotification {} impl IWICBitmapCodecProgressNotification_Vtbl { - pub const fn new() -> IWICBitmapCodecProgressNotification_Vtbl - where - Identity: IWICBitmapCodecProgressNotification_Impl, - { - unsafe extern "system" fn RegisterProgressNotification(this: *mut core::ffi::c_void, pfnprogressnotification: PFNProgressNotification, pvdata: *const core::ffi::c_void, dwprogressflags: u32) -> windows_core::HRESULT - where - Identity: IWICBitmapCodecProgressNotification_Impl, - { + pub const fn new() -> IWICBitmapCodecProgressNotification_Vtbl { + unsafe extern "system" fn RegisterProgressNotification(this: *mut core::ffi::c_void, pfnprogressnotification: PFNProgressNotification, pvdata: *const core::ffi::c_void, dwprogressflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapCodecProgressNotification_Impl::RegisterProgressNotification(this, core::mem::transmute_copy(&pfnprogressnotification), core::mem::transmute_copy(&pvdata), core::mem::transmute_copy(&dwprogressflags)).into() } @@ -252,7 +189,7 @@ impl IWICBitmapCodecProgressNotification_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWICBitmapDecoder_Impl: Sized { +pub trait IWICBitmapDecoder_Impl: Sized + windows_core::IUnknownImpl { fn QueryCapability(&self, pistream: Option<&super::super::System::Com::IStream>) -> windows_core::Result; fn Initialize(&self, pistream: Option<&super::super::System::Com::IStream>, cacheoptions: WICDecodeOptions) -> windows_core::Result<()>; fn GetContainerFormat(&self) -> windows_core::Result; @@ -269,14 +206,8 @@ pub trait IWICBitmapDecoder_Impl: Sized { impl windows_core::RuntimeName for IWICBitmapDecoder {} #[cfg(feature = "Win32_System_Com")] impl IWICBitmapDecoder_Vtbl { - pub const fn new() -> IWICBitmapDecoder_Vtbl - where - Identity: IWICBitmapDecoder_Impl, - { - unsafe extern "system" fn QueryCapability(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pdwcapability: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + pub const fn new() -> IWICBitmapDecoder_Vtbl { + unsafe extern "system" fn QueryCapability(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pdwcapability: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoder_Impl::QueryCapability(this, windows_core::from_raw_borrowed(&pistream)) { Ok(ok__) => { @@ -286,17 +217,11 @@ impl IWICBitmapDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, cacheoptions: WICDecodeOptions) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, cacheoptions: WICDecodeOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapDecoder_Impl::Initialize(this, windows_core::from_raw_borrowed(&pistream), core::mem::transmute_copy(&cacheoptions)).into() } - unsafe extern "system" fn GetContainerFormat(this: *mut core::ffi::c_void, pguidcontainerformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + unsafe extern "system" fn GetContainerFormat(this: *mut core::ffi::c_void, pguidcontainerformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoder_Impl::GetContainerFormat(this) { Ok(ok__) => { @@ -306,10 +231,7 @@ impl IWICBitmapDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDecoderInfo(this: *mut core::ffi::c_void, ppidecoderinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + unsafe extern "system" fn GetDecoderInfo(this: *mut core::ffi::c_void, ppidecoderinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoder_Impl::GetDecoderInfo(this) { Ok(ok__) => { @@ -319,17 +241,11 @@ impl IWICBitmapDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + unsafe extern "system" fn CopyPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapDecoder_Impl::CopyPalette(this, windows_core::from_raw_borrowed(&pipalette)).into() } - unsafe extern "system" fn GetMetadataQueryReader(this: *mut core::ffi::c_void, ppimetadataqueryreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + unsafe extern "system" fn GetMetadataQueryReader(this: *mut core::ffi::c_void, ppimetadataqueryreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoder_Impl::GetMetadataQueryReader(this) { Ok(ok__) => { @@ -339,10 +255,7 @@ impl IWICBitmapDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreview(this: *mut core::ffi::c_void, ppibitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + unsafe extern "system" fn GetPreview(this: *mut core::ffi::c_void, ppibitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoder_Impl::GetPreview(this) { Ok(ok__) => { @@ -352,17 +265,11 @@ impl IWICBitmapDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorContexts(this: *mut core::ffi::c_void, ccount: u32, ppicolorcontexts: *mut *mut core::ffi::c_void, pcactualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + unsafe extern "system" fn GetColorContexts(this: *mut core::ffi::c_void, ccount: u32, ppicolorcontexts: *mut *mut core::ffi::c_void, pcactualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapDecoder_Impl::GetColorContexts(this, core::mem::transmute_copy(&ccount), core::mem::transmute_copy(&ppicolorcontexts), core::mem::transmute_copy(&pcactualcount)).into() } - unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, ppithumbnail: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, ppithumbnail: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoder_Impl::GetThumbnail(this) { Ok(ok__) => { @@ -372,10 +279,7 @@ impl IWICBitmapDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrameCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + unsafe extern "system" fn GetFrameCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoder_Impl::GetFrameCount(this) { Ok(ok__) => { @@ -385,10 +289,7 @@ impl IWICBitmapDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrame(this: *mut core::ffi::c_void, index: u32, ppibitmapframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoder_Impl, - { + unsafe extern "system" fn GetFrame(this: *mut core::ffi::c_void, index: u32, ppibitmapframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoder_Impl::GetFrame(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -427,21 +328,12 @@ pub trait IWICBitmapDecoderInfo_Impl: Sized + IWICBitmapCodecInfo_Impl { impl windows_core::RuntimeName for IWICBitmapDecoderInfo {} #[cfg(feature = "Win32_System_Com")] impl IWICBitmapDecoderInfo_Vtbl { - pub const fn new() -> IWICBitmapDecoderInfo_Vtbl - where - Identity: IWICBitmapDecoderInfo_Impl, - { - unsafe extern "system" fn GetPatterns(this: *mut core::ffi::c_void, cbsizepatterns: u32, ppatterns: *mut WICBitmapPattern, pcpatterns: *mut u32, pcbpatternsactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoderInfo_Impl, - { + pub const fn new() -> IWICBitmapDecoderInfo_Vtbl { + unsafe extern "system" fn GetPatterns(this: *mut core::ffi::c_void, cbsizepatterns: u32, ppatterns: *mut WICBitmapPattern, pcpatterns: *mut u32, pcbpatternsactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapDecoderInfo_Impl::GetPatterns(this, core::mem::transmute_copy(&cbsizepatterns), core::mem::transmute_copy(&ppatterns), core::mem::transmute_copy(&pcpatterns), core::mem::transmute_copy(&pcbpatternsactual)).into() } - unsafe extern "system" fn MatchesPattern(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoderInfo_Impl, - { + unsafe extern "system" fn MatchesPattern(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoderInfo_Impl::MatchesPattern(this, windows_core::from_raw_borrowed(&pistream)) { Ok(ok__) => { @@ -451,10 +343,7 @@ impl IWICBitmapDecoderInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ppibitmapdecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapDecoderInfo_Impl, - { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ppibitmapdecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoderInfo_Impl::CreateInstance(this) { Ok(ok__) => { @@ -476,7 +365,7 @@ impl IWICBitmapDecoderInfo_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IWICBitmapEncoder_Impl: Sized { +pub trait IWICBitmapEncoder_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pistream: Option<&super::super::System::Com::IStream>, cacheoption: WICBitmapEncoderCacheOption) -> windows_core::Result<()>; fn GetContainerFormat(&self) -> windows_core::Result; fn GetEncoderInfo(&self) -> windows_core::Result; @@ -492,21 +381,12 @@ pub trait IWICBitmapEncoder_Impl: Sized { impl windows_core::RuntimeName for IWICBitmapEncoder {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IWICBitmapEncoder_Vtbl { - pub const fn new() -> IWICBitmapEncoder_Vtbl - where - Identity: IWICBitmapEncoder_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, cacheoption: WICBitmapEncoderCacheOption) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoder_Impl, - { + pub const fn new() -> IWICBitmapEncoder_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, cacheoption: WICBitmapEncoderCacheOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapEncoder_Impl::Initialize(this, windows_core::from_raw_borrowed(&pistream), core::mem::transmute_copy(&cacheoption)).into() } - unsafe extern "system" fn GetContainerFormat(this: *mut core::ffi::c_void, pguidcontainerformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoder_Impl, - { + unsafe extern "system" fn GetContainerFormat(this: *mut core::ffi::c_void, pguidcontainerformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapEncoder_Impl::GetContainerFormat(this) { Ok(ok__) => { @@ -516,10 +396,7 @@ impl IWICBitmapEncoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEncoderInfo(this: *mut core::ffi::c_void, ppiencoderinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoder_Impl, - { + unsafe extern "system" fn GetEncoderInfo(this: *mut core::ffi::c_void, ppiencoderinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapEncoder_Impl::GetEncoderInfo(this) { Ok(ok__) => { @@ -529,52 +406,31 @@ impl IWICBitmapEncoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorContexts(this: *mut core::ffi::c_void, ccount: u32, ppicolorcontext: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoder_Impl, - { + unsafe extern "system" fn SetColorContexts(this: *mut core::ffi::c_void, ccount: u32, ppicolorcontext: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapEncoder_Impl::SetColorContexts(this, core::mem::transmute_copy(&ccount), core::mem::transmute_copy(&ppicolorcontext)).into() } - unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoder_Impl, - { + unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapEncoder_Impl::SetPalette(this, windows_core::from_raw_borrowed(&pipalette)).into() } - unsafe extern "system" fn SetThumbnail(this: *mut core::ffi::c_void, pithumbnail: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoder_Impl, - { + unsafe extern "system" fn SetThumbnail(this: *mut core::ffi::c_void, pithumbnail: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapEncoder_Impl::SetThumbnail(this, windows_core::from_raw_borrowed(&pithumbnail)).into() } - unsafe extern "system" fn SetPreview(this: *mut core::ffi::c_void, pipreview: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoder_Impl, - { + unsafe extern "system" fn SetPreview(this: *mut core::ffi::c_void, pipreview: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapEncoder_Impl::SetPreview(this, windows_core::from_raw_borrowed(&pipreview)).into() } - unsafe extern "system" fn CreateNewFrame(this: *mut core::ffi::c_void, ppiframeencode: *mut *mut core::ffi::c_void, ppiencoderoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoder_Impl, - { + unsafe extern "system" fn CreateNewFrame(this: *mut core::ffi::c_void, ppiframeencode: *mut *mut core::ffi::c_void, ppiencoderoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapEncoder_Impl::CreateNewFrame(this, core::mem::transmute_copy(&ppiframeencode), core::mem::transmute_copy(&ppiencoderoptions)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoder_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapEncoder_Impl::Commit(this).into() } - unsafe extern "system" fn GetMetadataQueryWriter(this: *mut core::ffi::c_void, ppimetadataquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoder_Impl, - { + unsafe extern "system" fn GetMetadataQueryWriter(this: *mut core::ffi::c_void, ppimetadataquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapEncoder_Impl::GetMetadataQueryWriter(this) { Ok(ok__) => { @@ -607,14 +463,8 @@ pub trait IWICBitmapEncoderInfo_Impl: Sized + IWICBitmapCodecInfo_Impl { } impl windows_core::RuntimeName for IWICBitmapEncoderInfo {} impl IWICBitmapEncoderInfo_Vtbl { - pub const fn new() -> IWICBitmapEncoderInfo_Vtbl - where - Identity: IWICBitmapEncoderInfo_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ppibitmapencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapEncoderInfo_Impl, - { + pub const fn new() -> IWICBitmapEncoderInfo_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ppibitmapencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapEncoderInfo_Impl::CreateInstance(this) { Ok(ok__) => { @@ -635,14 +485,8 @@ pub trait IWICBitmapFlipRotator_Impl: Sized + IWICBitmapSource_Impl { } impl windows_core::RuntimeName for IWICBitmapFlipRotator {} impl IWICBitmapFlipRotator_Vtbl { - pub const fn new() -> IWICBitmapFlipRotator_Vtbl - where - Identity: IWICBitmapFlipRotator_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pisource: *mut core::ffi::c_void, options: WICBitmapTransformOptions) -> windows_core::HRESULT - where - Identity: IWICBitmapFlipRotator_Impl, - { + pub const fn new() -> IWICBitmapFlipRotator_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pisource: *mut core::ffi::c_void, options: WICBitmapTransformOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFlipRotator_Impl::Initialize(this, windows_core::from_raw_borrowed(&pisource), core::mem::transmute_copy(&options)).into() } @@ -659,14 +503,8 @@ pub trait IWICBitmapFrameDecode_Impl: Sized + IWICBitmapSource_Impl { } impl windows_core::RuntimeName for IWICBitmapFrameDecode {} impl IWICBitmapFrameDecode_Vtbl { - pub const fn new() -> IWICBitmapFrameDecode_Vtbl - where - Identity: IWICBitmapFrameDecode_Impl, - { - unsafe extern "system" fn GetMetadataQueryReader(this: *mut core::ffi::c_void, ppimetadataqueryreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameDecode_Impl, - { + pub const fn new() -> IWICBitmapFrameDecode_Vtbl { + unsafe extern "system" fn GetMetadataQueryReader(this: *mut core::ffi::c_void, ppimetadataqueryreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapFrameDecode_Impl::GetMetadataQueryReader(this) { Ok(ok__) => { @@ -676,17 +514,11 @@ impl IWICBitmapFrameDecode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorContexts(this: *mut core::ffi::c_void, ccount: u32, ppicolorcontexts: *mut *mut core::ffi::c_void, pcactualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameDecode_Impl, - { + unsafe extern "system" fn GetColorContexts(this: *mut core::ffi::c_void, ccount: u32, ppicolorcontexts: *mut *mut core::ffi::c_void, pcactualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameDecode_Impl::GetColorContexts(this, core::mem::transmute_copy(&ccount), core::mem::transmute_copy(&ppicolorcontexts), core::mem::transmute_copy(&pcactualcount)).into() } - unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, ppithumbnail: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameDecode_Impl, - { + unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, ppithumbnail: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapFrameDecode_Impl::GetThumbnail(this) { Ok(ok__) => { @@ -708,7 +540,7 @@ impl IWICBitmapFrameDecode_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IWICBitmapFrameEncode_Impl: Sized { +pub trait IWICBitmapFrameEncode_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, piencoderoptions: Option<&super::super::System::Com::StructuredStorage::IPropertyBag2>) -> windows_core::Result<()>; fn SetSize(&self, uiwidth: u32, uiheight: u32) -> windows_core::Result<()>; fn SetResolution(&self, dpix: f64, dpiy: f64) -> windows_core::Result<()>; @@ -725,84 +557,48 @@ pub trait IWICBitmapFrameEncode_Impl: Sized { impl windows_core::RuntimeName for IWICBitmapFrameEncode {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IWICBitmapFrameEncode_Vtbl { - pub const fn new() -> IWICBitmapFrameEncode_Vtbl - where - Identity: IWICBitmapFrameEncode_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, piencoderoptions: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + pub const fn new() -> IWICBitmapFrameEncode_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, piencoderoptions: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameEncode_Impl::Initialize(this, windows_core::from_raw_borrowed(&piencoderoptions)).into() } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, uiwidth: u32, uiheight: u32) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, uiwidth: u32, uiheight: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameEncode_Impl::SetSize(this, core::mem::transmute_copy(&uiwidth), core::mem::transmute_copy(&uiheight)).into() } - unsafe extern "system" fn SetResolution(this: *mut core::ffi::c_void, dpix: f64, dpiy: f64) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + unsafe extern "system" fn SetResolution(this: *mut core::ffi::c_void, dpix: f64, dpiy: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameEncode_Impl::SetResolution(this, core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy)).into() } - unsafe extern "system" fn SetPixelFormat(this: *mut core::ffi::c_void, ppixelformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + unsafe extern "system" fn SetPixelFormat(this: *mut core::ffi::c_void, ppixelformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameEncode_Impl::SetPixelFormat(this, core::mem::transmute_copy(&ppixelformat)).into() } - unsafe extern "system" fn SetColorContexts(this: *mut core::ffi::c_void, ccount: u32, ppicolorcontext: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + unsafe extern "system" fn SetColorContexts(this: *mut core::ffi::c_void, ccount: u32, ppicolorcontext: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameEncode_Impl::SetColorContexts(this, core::mem::transmute_copy(&ccount), core::mem::transmute_copy(&ppicolorcontext)).into() } - unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameEncode_Impl::SetPalette(this, windows_core::from_raw_borrowed(&pipalette)).into() } - unsafe extern "system" fn SetThumbnail(this: *mut core::ffi::c_void, pithumbnail: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + unsafe extern "system" fn SetThumbnail(this: *mut core::ffi::c_void, pithumbnail: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameEncode_Impl::SetThumbnail(this, windows_core::from_raw_borrowed(&pithumbnail)).into() } - unsafe extern "system" fn WritePixels(this: *mut core::ffi::c_void, linecount: u32, cbstride: u32, cbbuffersize: u32, pbpixels: *const u8) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + unsafe extern "system" fn WritePixels(this: *mut core::ffi::c_void, linecount: u32, cbstride: u32, cbbuffersize: u32, pbpixels: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameEncode_Impl::WritePixels(this, core::mem::transmute_copy(&linecount), core::mem::transmute_copy(&cbstride), core::mem::transmute_copy(&cbbuffersize), core::mem::transmute_copy(&pbpixels)).into() } - unsafe extern "system" fn WriteSource(this: *mut core::ffi::c_void, pibitmapsource: *mut core::ffi::c_void, prc: *const WICRect) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + unsafe extern "system" fn WriteSource(this: *mut core::ffi::c_void, pibitmapsource: *mut core::ffi::c_void, prc: *const WICRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameEncode_Impl::WriteSource(this, windows_core::from_raw_borrowed(&pibitmapsource), core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapFrameEncode_Impl::Commit(this).into() } - unsafe extern "system" fn GetMetadataQueryWriter(this: *mut core::ffi::c_void, ppimetadataquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapFrameEncode_Impl, - { + unsafe extern "system" fn GetMetadataQueryWriter(this: *mut core::ffi::c_void, ppimetadataquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapFrameEncode_Impl::GetMetadataQueryWriter(this) { Ok(ok__) => { @@ -831,7 +627,7 @@ impl IWICBitmapFrameEncode_Vtbl { iid == &::IID } } -pub trait IWICBitmapLock_Impl: Sized { +pub trait IWICBitmapLock_Impl: Sized + windows_core::IUnknownImpl { fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::Result<()>; fn GetStride(&self) -> windows_core::Result; fn GetDataPointer(&self, pcbbuffersize: *mut u32, ppbdata: *mut *mut u8) -> windows_core::Result<()>; @@ -839,21 +635,12 @@ pub trait IWICBitmapLock_Impl: Sized { } impl windows_core::RuntimeName for IWICBitmapLock {} impl IWICBitmapLock_Vtbl { - pub const fn new() -> IWICBitmapLock_Vtbl - where - Identity: IWICBitmapLock_Impl, - { - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapLock_Impl, - { + pub const fn new() -> IWICBitmapLock_Vtbl { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapLock_Impl::GetSize(this, core::mem::transmute_copy(&puiwidth), core::mem::transmute_copy(&puiheight)).into() } - unsafe extern "system" fn GetStride(this: *mut core::ffi::c_void, pcbstride: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapLock_Impl, - { + unsafe extern "system" fn GetStride(this: *mut core::ffi::c_void, pcbstride: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapLock_Impl::GetStride(this) { Ok(ok__) => { @@ -863,17 +650,11 @@ impl IWICBitmapLock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataPointer(this: *mut core::ffi::c_void, pcbbuffersize: *mut u32, ppbdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IWICBitmapLock_Impl, - { + unsafe extern "system" fn GetDataPointer(this: *mut core::ffi::c_void, pcbbuffersize: *mut u32, ppbdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapLock_Impl::GetDataPointer(this, core::mem::transmute_copy(&pcbbuffersize), core::mem::transmute_copy(&ppbdata)).into() } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, ppixelformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICBitmapLock_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, ppixelformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapLock_Impl::GetPixelFormat(this) { Ok(ok__) => { @@ -900,14 +681,8 @@ pub trait IWICBitmapScaler_Impl: Sized + IWICBitmapSource_Impl { } impl windows_core::RuntimeName for IWICBitmapScaler {} impl IWICBitmapScaler_Vtbl { - pub const fn new() -> IWICBitmapScaler_Vtbl - where - Identity: IWICBitmapScaler_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pisource: *mut core::ffi::c_void, uiwidth: u32, uiheight: u32, mode: WICBitmapInterpolationMode) -> windows_core::HRESULT - where - Identity: IWICBitmapScaler_Impl, - { + pub const fn new() -> IWICBitmapScaler_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pisource: *mut core::ffi::c_void, uiwidth: u32, uiheight: u32, mode: WICBitmapInterpolationMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapScaler_Impl::Initialize(this, windows_core::from_raw_borrowed(&pisource), core::mem::transmute_copy(&uiwidth), core::mem::transmute_copy(&uiheight), core::mem::transmute_copy(&mode)).into() } @@ -917,7 +692,7 @@ impl IWICBitmapScaler_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWICBitmapSource_Impl: Sized { +pub trait IWICBitmapSource_Impl: Sized + windows_core::IUnknownImpl { fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::Result<()>; fn GetPixelFormat(&self) -> windows_core::Result; fn GetResolution(&self, pdpix: *mut f64, pdpiy: *mut f64) -> windows_core::Result<()>; @@ -926,21 +701,12 @@ pub trait IWICBitmapSource_Impl: Sized { } impl windows_core::RuntimeName for IWICBitmapSource {} impl IWICBitmapSource_Vtbl { - pub const fn new() -> IWICBitmapSource_Vtbl - where - Identity: IWICBitmapSource_Impl, - { - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapSource_Impl, - { + pub const fn new() -> IWICBitmapSource_Vtbl { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapSource_Impl::GetSize(this, core::mem::transmute_copy(&puiwidth), core::mem::transmute_copy(&puiheight)).into() } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, ppixelformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICBitmapSource_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, ppixelformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapSource_Impl::GetPixelFormat(this) { Ok(ok__) => { @@ -950,24 +716,15 @@ impl IWICBitmapSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResolution(this: *mut core::ffi::c_void, pdpix: *mut f64, pdpiy: *mut f64) -> windows_core::HRESULT - where - Identity: IWICBitmapSource_Impl, - { + unsafe extern "system" fn GetResolution(this: *mut core::ffi::c_void, pdpix: *mut f64, pdpiy: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapSource_Impl::GetResolution(this, core::mem::transmute_copy(&pdpix), core::mem::transmute_copy(&pdpiy)).into() } - unsafe extern "system" fn CopyPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICBitmapSource_Impl, - { + unsafe extern "system" fn CopyPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapSource_Impl::CopyPalette(this, windows_core::from_raw_borrowed(&pipalette)).into() } - unsafe extern "system" fn CopyPixels(this: *mut core::ffi::c_void, prc: *const WICRect, cbstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IWICBitmapSource_Impl, - { + unsafe extern "system" fn CopyPixels(this: *mut core::ffi::c_void, prc: *const WICRect, cbstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapSource_Impl::CopyPixels(this, core::mem::transmute_copy(&prc), core::mem::transmute_copy(&cbstride), core::mem::transmute_copy(&cbbuffersize), core::mem::transmute_copy(&pbbuffer)).into() } @@ -984,7 +741,7 @@ impl IWICBitmapSource_Vtbl { iid == &::IID } } -pub trait IWICBitmapSourceTransform_Impl: Sized { +pub trait IWICBitmapSourceTransform_Impl: Sized + windows_core::IUnknownImpl { fn CopyPixels(&self, prc: *const WICRect, uiwidth: u32, uiheight: u32, pguiddstformat: *const windows_core::GUID, dsttransform: WICBitmapTransformOptions, nstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> windows_core::Result<()>; fn GetClosestSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::Result<()>; fn GetClosestPixelFormat(&self, pguiddstformat: *mut windows_core::GUID) -> windows_core::Result<()>; @@ -992,35 +749,20 @@ pub trait IWICBitmapSourceTransform_Impl: Sized { } impl windows_core::RuntimeName for IWICBitmapSourceTransform {} impl IWICBitmapSourceTransform_Vtbl { - pub const fn new() -> IWICBitmapSourceTransform_Vtbl - where - Identity: IWICBitmapSourceTransform_Impl, - { - unsafe extern "system" fn CopyPixels(this: *mut core::ffi::c_void, prc: *const WICRect, uiwidth: u32, uiheight: u32, pguiddstformat: *const windows_core::GUID, dsttransform: WICBitmapTransformOptions, nstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IWICBitmapSourceTransform_Impl, - { + pub const fn new() -> IWICBitmapSourceTransform_Vtbl { + unsafe extern "system" fn CopyPixels(this: *mut core::ffi::c_void, prc: *const WICRect, uiwidth: u32, uiheight: u32, pguiddstformat: *const windows_core::GUID, dsttransform: WICBitmapTransformOptions, nstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapSourceTransform_Impl::CopyPixels(this, core::mem::transmute_copy(&prc), core::mem::transmute_copy(&uiwidth), core::mem::transmute_copy(&uiheight), core::mem::transmute_copy(&pguiddstformat), core::mem::transmute_copy(&dsttransform), core::mem::transmute_copy(&nstride), core::mem::transmute_copy(&cbbuffersize), core::mem::transmute_copy(&pbbuffer)).into() } - unsafe extern "system" fn GetClosestSize(this: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::HRESULT - where - Identity: IWICBitmapSourceTransform_Impl, - { + unsafe extern "system" fn GetClosestSize(this: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapSourceTransform_Impl::GetClosestSize(this, core::mem::transmute_copy(&puiwidth), core::mem::transmute_copy(&puiheight)).into() } - unsafe extern "system" fn GetClosestPixelFormat(this: *mut core::ffi::c_void, pguiddstformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICBitmapSourceTransform_Impl, - { + unsafe extern "system" fn GetClosestPixelFormat(this: *mut core::ffi::c_void, pguiddstformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICBitmapSourceTransform_Impl::GetClosestPixelFormat(this, core::mem::transmute_copy(&pguiddstformat)).into() } - unsafe extern "system" fn DoesSupportTransform(this: *mut core::ffi::c_void, dsttransform: WICBitmapTransformOptions, pfissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICBitmapSourceTransform_Impl, - { + unsafe extern "system" fn DoesSupportTransform(this: *mut core::ffi::c_void, dsttransform: WICBitmapTransformOptions, pfissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapSourceTransform_Impl::DoesSupportTransform(this, core::mem::transmute_copy(&dsttransform)) { Ok(ok__) => { @@ -1042,7 +784,7 @@ impl IWICBitmapSourceTransform_Vtbl { iid == &::IID } } -pub trait IWICColorContext_Impl: Sized { +pub trait IWICColorContext_Impl: Sized + windows_core::IUnknownImpl { fn InitializeFromFilename(&self, wzfilename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn InitializeFromMemory(&self, pbbuffer: *const u8, cbbuffersize: u32) -> windows_core::Result<()>; fn InitializeFromExifColorSpace(&self, value: u32) -> windows_core::Result<()>; @@ -1052,35 +794,20 @@ pub trait IWICColorContext_Impl: Sized { } impl windows_core::RuntimeName for IWICColorContext {} impl IWICColorContext_Vtbl { - pub const fn new() -> IWICColorContext_Vtbl - where - Identity: IWICColorContext_Impl, - { - unsafe extern "system" fn InitializeFromFilename(this: *mut core::ffi::c_void, wzfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWICColorContext_Impl, - { + pub const fn new() -> IWICColorContext_Vtbl { + unsafe extern "system" fn InitializeFromFilename(this: *mut core::ffi::c_void, wzfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICColorContext_Impl::InitializeFromFilename(this, core::mem::transmute(&wzfilename)).into() } - unsafe extern "system" fn InitializeFromMemory(this: *mut core::ffi::c_void, pbbuffer: *const u8, cbbuffersize: u32) -> windows_core::HRESULT - where - Identity: IWICColorContext_Impl, - { + unsafe extern "system" fn InitializeFromMemory(this: *mut core::ffi::c_void, pbbuffer: *const u8, cbbuffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICColorContext_Impl::InitializeFromMemory(this, core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&cbbuffersize)).into() } - unsafe extern "system" fn InitializeFromExifColorSpace(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: IWICColorContext_Impl, - { + unsafe extern "system" fn InitializeFromExifColorSpace(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICColorContext_Impl::InitializeFromExifColorSpace(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut WICColorContextType) -> windows_core::HRESULT - where - Identity: IWICColorContext_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut WICColorContextType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICColorContext_Impl::GetType(this) { Ok(ok__) => { @@ -1090,17 +817,11 @@ impl IWICColorContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProfileBytes(this: *mut core::ffi::c_void, cbbuffer: u32, pbbuffer: *mut u8, pcbactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICColorContext_Impl, - { + unsafe extern "system" fn GetProfileBytes(this: *mut core::ffi::c_void, cbbuffer: u32, pbbuffer: *mut u8, pcbactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICColorContext_Impl::GetProfileBytes(this, core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&pcbactual)).into() } - unsafe extern "system" fn GetExifColorSpace(this: *mut core::ffi::c_void, pvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IWICColorContext_Impl, - { + unsafe extern "system" fn GetExifColorSpace(this: *mut core::ffi::c_void, pvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICColorContext_Impl::GetExifColorSpace(this) { Ok(ok__) => { @@ -1129,14 +850,8 @@ pub trait IWICColorTransform_Impl: Sized + IWICBitmapSource_Impl { } impl windows_core::RuntimeName for IWICColorTransform {} impl IWICColorTransform_Vtbl { - pub const fn new() -> IWICColorTransform_Vtbl - where - Identity: IWICColorTransform_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pibitmapsource: *mut core::ffi::c_void, picontextsource: *mut core::ffi::c_void, picontextdest: *mut core::ffi::c_void, pixelfmtdest: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICColorTransform_Impl, - { + pub const fn new() -> IWICColorTransform_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pibitmapsource: *mut core::ffi::c_void, picontextsource: *mut core::ffi::c_void, picontextdest: *mut core::ffi::c_void, pixelfmtdest: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICColorTransform_Impl::Initialize(this, windows_core::from_raw_borrowed(&pibitmapsource), windows_core::from_raw_borrowed(&picontextsource), windows_core::from_raw_borrowed(&picontextdest), core::mem::transmute_copy(&pixelfmtdest)).into() } @@ -1160,14 +875,8 @@ pub trait IWICComponentFactory_Impl: Sized + IWICImagingFactory_Impl { impl windows_core::RuntimeName for IWICComponentFactory {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_WindowsAndMessaging"))] impl IWICComponentFactory_Vtbl { - pub const fn new() -> IWICComponentFactory_Vtbl - where - Identity: IWICComponentFactory_Impl, - { - unsafe extern "system" fn CreateMetadataReader(this: *mut core::ffi::c_void, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, dwoptions: u32, pistream: *mut core::ffi::c_void, ppireader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICComponentFactory_Impl, - { + pub const fn new() -> IWICComponentFactory_Vtbl { + unsafe extern "system" fn CreateMetadataReader(this: *mut core::ffi::c_void, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, dwoptions: u32, pistream: *mut core::ffi::c_void, ppireader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentFactory_Impl::CreateMetadataReader(this, core::mem::transmute_copy(&guidmetadataformat), core::mem::transmute_copy(&pguidvendor), core::mem::transmute_copy(&dwoptions), windows_core::from_raw_borrowed(&pistream)) { Ok(ok__) => { @@ -1177,10 +886,7 @@ impl IWICComponentFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMetadataReaderFromContainer(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, dwoptions: u32, pistream: *mut core::ffi::c_void, ppireader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICComponentFactory_Impl, - { + unsafe extern "system" fn CreateMetadataReaderFromContainer(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, dwoptions: u32, pistream: *mut core::ffi::c_void, ppireader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentFactory_Impl::CreateMetadataReaderFromContainer(this, core::mem::transmute_copy(&guidcontainerformat), core::mem::transmute_copy(&pguidvendor), core::mem::transmute_copy(&dwoptions), windows_core::from_raw_borrowed(&pistream)) { Ok(ok__) => { @@ -1190,10 +896,7 @@ impl IWICComponentFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMetadataWriter(this: *mut core::ffi::c_void, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, dwmetadataoptions: u32, ppiwriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICComponentFactory_Impl, - { + unsafe extern "system" fn CreateMetadataWriter(this: *mut core::ffi::c_void, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, dwmetadataoptions: u32, ppiwriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentFactory_Impl::CreateMetadataWriter(this, core::mem::transmute_copy(&guidmetadataformat), core::mem::transmute_copy(&pguidvendor), core::mem::transmute_copy(&dwmetadataoptions)) { Ok(ok__) => { @@ -1203,10 +906,7 @@ impl IWICComponentFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMetadataWriterFromReader(this: *mut core::ffi::c_void, pireader: *mut core::ffi::c_void, pguidvendor: *const windows_core::GUID, ppiwriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICComponentFactory_Impl, - { + unsafe extern "system" fn CreateMetadataWriterFromReader(this: *mut core::ffi::c_void, pireader: *mut core::ffi::c_void, pguidvendor: *const windows_core::GUID, ppiwriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentFactory_Impl::CreateMetadataWriterFromReader(this, windows_core::from_raw_borrowed(&pireader), core::mem::transmute_copy(&pguidvendor)) { Ok(ok__) => { @@ -1216,10 +916,7 @@ impl IWICComponentFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateQueryReaderFromBlockReader(this: *mut core::ffi::c_void, piblockreader: *mut core::ffi::c_void, ppiqueryreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICComponentFactory_Impl, - { + unsafe extern "system" fn CreateQueryReaderFromBlockReader(this: *mut core::ffi::c_void, piblockreader: *mut core::ffi::c_void, ppiqueryreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentFactory_Impl::CreateQueryReaderFromBlockReader(this, windows_core::from_raw_borrowed(&piblockreader)) { Ok(ok__) => { @@ -1229,10 +926,7 @@ impl IWICComponentFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateQueryWriterFromBlockWriter(this: *mut core::ffi::c_void, piblockwriter: *mut core::ffi::c_void, ppiquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICComponentFactory_Impl, - { + unsafe extern "system" fn CreateQueryWriterFromBlockWriter(this: *mut core::ffi::c_void, piblockwriter: *mut core::ffi::c_void, ppiquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentFactory_Impl::CreateQueryWriterFromBlockWriter(this, windows_core::from_raw_borrowed(&piblockwriter)) { Ok(ok__) => { @@ -1242,10 +936,7 @@ impl IWICComponentFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEncoderPropertyBag(this: *mut core::ffi::c_void, ppropoptions: *const super::super::System::Com::StructuredStorage::PROPBAG2, ccount: u32, ppipropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICComponentFactory_Impl, - { + unsafe extern "system" fn CreateEncoderPropertyBag(this: *mut core::ffi::c_void, ppropoptions: *const super::super::System::Com::StructuredStorage::PROPBAG2, ccount: u32, ppipropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentFactory_Impl::CreateEncoderPropertyBag(this, core::mem::transmute_copy(&ppropoptions), core::mem::transmute_copy(&ccount)) { Ok(ok__) => { @@ -1270,7 +961,7 @@ impl IWICComponentFactory_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWICComponentInfo_Impl: Sized { +pub trait IWICComponentInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetComponentType(&self) -> windows_core::Result; fn GetCLSID(&self) -> windows_core::Result; fn GetSigningStatus(&self) -> windows_core::Result; @@ -1282,14 +973,8 @@ pub trait IWICComponentInfo_Impl: Sized { } impl windows_core::RuntimeName for IWICComponentInfo {} impl IWICComponentInfo_Vtbl { - pub const fn new() -> IWICComponentInfo_Vtbl - where - Identity: IWICComponentInfo_Impl, - { - unsafe extern "system" fn GetComponentType(this: *mut core::ffi::c_void, ptype: *mut WICComponentType) -> windows_core::HRESULT - where - Identity: IWICComponentInfo_Impl, - { + pub const fn new() -> IWICComponentInfo_Vtbl { + unsafe extern "system" fn GetComponentType(this: *mut core::ffi::c_void, ptype: *mut WICComponentType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentInfo_Impl::GetComponentType(this) { Ok(ok__) => { @@ -1299,10 +984,7 @@ impl IWICComponentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCLSID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICComponentInfo_Impl, - { + unsafe extern "system" fn GetCLSID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentInfo_Impl::GetCLSID(this) { Ok(ok__) => { @@ -1312,10 +994,7 @@ impl IWICComponentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSigningStatus(this: *mut core::ffi::c_void, pstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IWICComponentInfo_Impl, - { + unsafe extern "system" fn GetSigningStatus(this: *mut core::ffi::c_void, pstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentInfo_Impl::GetSigningStatus(this) { Ok(ok__) => { @@ -1325,17 +1004,11 @@ impl IWICComponentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAuthor(this: *mut core::ffi::c_void, cchauthor: u32, wzauthor: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICComponentInfo_Impl, - { + unsafe extern "system" fn GetAuthor(this: *mut core::ffi::c_void, cchauthor: u32, wzauthor: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICComponentInfo_Impl::GetAuthor(this, core::mem::transmute_copy(&cchauthor), core::mem::transmute(&wzauthor), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn GetVendorGUID(this: *mut core::ffi::c_void, pguidvendor: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICComponentInfo_Impl, - { + unsafe extern "system" fn GetVendorGUID(this: *mut core::ffi::c_void, pguidvendor: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICComponentInfo_Impl::GetVendorGUID(this) { Ok(ok__) => { @@ -1345,24 +1018,15 @@ impl IWICComponentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, cchversion: u32, wzversion: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICComponentInfo_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, cchversion: u32, wzversion: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICComponentInfo_Impl::GetVersion(this, core::mem::transmute_copy(&cchversion), core::mem::transmute(&wzversion), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn GetSpecVersion(this: *mut core::ffi::c_void, cchspecversion: u32, wzspecversion: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICComponentInfo_Impl, - { + unsafe extern "system" fn GetSpecVersion(this: *mut core::ffi::c_void, cchspecversion: u32, wzspecversion: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICComponentInfo_Impl::GetSpecVersion(this, core::mem::transmute_copy(&cchspecversion), core::mem::transmute(&wzspecversion), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, cchfriendlyname: u32, wzfriendlyname: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICComponentInfo_Impl, - { + unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, cchfriendlyname: u32, wzfriendlyname: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICComponentInfo_Impl::GetFriendlyName(this, core::mem::transmute_copy(&cchfriendlyname), core::mem::transmute(&wzfriendlyname), core::mem::transmute_copy(&pcchactual)).into() } @@ -1383,7 +1047,7 @@ impl IWICComponentInfo_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait IWICDdsDecoder_Impl: Sized { +pub trait IWICDdsDecoder_Impl: Sized + windows_core::IUnknownImpl { fn GetParameters(&self, pparameters: *mut WICDdsParameters) -> windows_core::Result<()>; fn GetFrame(&self, arrayindex: u32, miplevel: u32, sliceindex: u32) -> windows_core::Result; } @@ -1391,21 +1055,12 @@ pub trait IWICDdsDecoder_Impl: Sized { impl windows_core::RuntimeName for IWICDdsDecoder {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IWICDdsDecoder_Vtbl { - pub const fn new() -> IWICDdsDecoder_Vtbl - where - Identity: IWICDdsDecoder_Impl, - { - unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, pparameters: *mut WICDdsParameters) -> windows_core::HRESULT - where - Identity: IWICDdsDecoder_Impl, - { + pub const fn new() -> IWICDdsDecoder_Vtbl { + unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, pparameters: *mut WICDdsParameters) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDdsDecoder_Impl::GetParameters(this, core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn GetFrame(this: *mut core::ffi::c_void, arrayindex: u32, miplevel: u32, sliceindex: u32, ppibitmapframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICDdsDecoder_Impl, - { + unsafe extern "system" fn GetFrame(this: *mut core::ffi::c_void, arrayindex: u32, miplevel: u32, sliceindex: u32, ppibitmapframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDdsDecoder_Impl::GetFrame(this, core::mem::transmute_copy(&arrayindex), core::mem::transmute_copy(&miplevel), core::mem::transmute_copy(&sliceindex)) { Ok(ok__) => { @@ -1426,7 +1081,7 @@ impl IWICDdsDecoder_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait IWICDdsEncoder_Impl: Sized { +pub trait IWICDdsEncoder_Impl: Sized + windows_core::IUnknownImpl { fn SetParameters(&self, pparameters: *const WICDdsParameters) -> windows_core::Result<()>; fn GetParameters(&self, pparameters: *mut WICDdsParameters) -> windows_core::Result<()>; fn CreateNewFrame(&self, ppiframeencode: *mut Option, parrayindex: *mut u32, pmiplevel: *mut u32, psliceindex: *mut u32) -> windows_core::Result<()>; @@ -1435,28 +1090,16 @@ pub trait IWICDdsEncoder_Impl: Sized { impl windows_core::RuntimeName for IWICDdsEncoder {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IWICDdsEncoder_Vtbl { - pub const fn new() -> IWICDdsEncoder_Vtbl - where - Identity: IWICDdsEncoder_Impl, - { - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, pparameters: *const WICDdsParameters) -> windows_core::HRESULT - where - Identity: IWICDdsEncoder_Impl, - { + pub const fn new() -> IWICDdsEncoder_Vtbl { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, pparameters: *const WICDdsParameters) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDdsEncoder_Impl::SetParameters(this, core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, pparameters: *mut WICDdsParameters) -> windows_core::HRESULT - where - Identity: IWICDdsEncoder_Impl, - { + unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, pparameters: *mut WICDdsParameters) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDdsEncoder_Impl::GetParameters(this, core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn CreateNewFrame(this: *mut core::ffi::c_void, ppiframeencode: *mut *mut core::ffi::c_void, parrayindex: *mut u32, pmiplevel: *mut u32, psliceindex: *mut u32) -> windows_core::HRESULT - where - Identity: IWICDdsEncoder_Impl, - { + unsafe extern "system" fn CreateNewFrame(this: *mut core::ffi::c_void, ppiframeencode: *mut *mut core::ffi::c_void, parrayindex: *mut u32, pmiplevel: *mut u32, psliceindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDdsEncoder_Impl::CreateNewFrame(this, core::mem::transmute_copy(&ppiframeencode), core::mem::transmute_copy(&parrayindex), core::mem::transmute_copy(&pmiplevel), core::mem::transmute_copy(&psliceindex)).into() } @@ -1472,7 +1115,7 @@ impl IWICDdsEncoder_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait IWICDdsFrameDecode_Impl: Sized { +pub trait IWICDdsFrameDecode_Impl: Sized + windows_core::IUnknownImpl { fn GetSizeInBlocks(&self, pwidthinblocks: *mut u32, pheightinblocks: *mut u32) -> windows_core::Result<()>; fn GetFormatInfo(&self) -> windows_core::Result; fn CopyBlocks(&self, prcboundsinblocks: *const WICRect, cbstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> windows_core::Result<()>; @@ -1481,21 +1124,12 @@ pub trait IWICDdsFrameDecode_Impl: Sized { impl windows_core::RuntimeName for IWICDdsFrameDecode {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IWICDdsFrameDecode_Vtbl { - pub const fn new() -> IWICDdsFrameDecode_Vtbl - where - Identity: IWICDdsFrameDecode_Impl, - { - unsafe extern "system" fn GetSizeInBlocks(this: *mut core::ffi::c_void, pwidthinblocks: *mut u32, pheightinblocks: *mut u32) -> windows_core::HRESULT - where - Identity: IWICDdsFrameDecode_Impl, - { + pub const fn new() -> IWICDdsFrameDecode_Vtbl { + unsafe extern "system" fn GetSizeInBlocks(this: *mut core::ffi::c_void, pwidthinblocks: *mut u32, pheightinblocks: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDdsFrameDecode_Impl::GetSizeInBlocks(this, core::mem::transmute_copy(&pwidthinblocks), core::mem::transmute_copy(&pheightinblocks)).into() } - unsafe extern "system" fn GetFormatInfo(this: *mut core::ffi::c_void, pformatinfo: *mut WICDdsFormatInfo) -> windows_core::HRESULT - where - Identity: IWICDdsFrameDecode_Impl, - { + unsafe extern "system" fn GetFormatInfo(this: *mut core::ffi::c_void, pformatinfo: *mut WICDdsFormatInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDdsFrameDecode_Impl::GetFormatInfo(this) { Ok(ok__) => { @@ -1505,10 +1139,7 @@ impl IWICDdsFrameDecode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyBlocks(this: *mut core::ffi::c_void, prcboundsinblocks: *const WICRect, cbstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IWICDdsFrameDecode_Impl, - { + unsafe extern "system" fn CopyBlocks(this: *mut core::ffi::c_void, prcboundsinblocks: *const WICRect, cbstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDdsFrameDecode_Impl::CopyBlocks(this, core::mem::transmute_copy(&prcboundsinblocks), core::mem::transmute_copy(&cbstride), core::mem::transmute_copy(&cbbuffersize), core::mem::transmute_copy(&pbbuffer)).into() } @@ -1562,28 +1193,16 @@ pub trait IWICDevelopRaw_Impl: Sized + IWICBitmapFrameDecode_Impl { impl windows_core::RuntimeName for IWICDevelopRaw {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IWICDevelopRaw_Vtbl { - pub const fn new() -> IWICDevelopRaw_Vtbl - where - Identity: IWICDevelopRaw_Impl, - { - unsafe extern "system" fn QueryRawCapabilitiesInfo(this: *mut core::ffi::c_void, pinfo: *mut WICRawCapabilitiesInfo) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + pub const fn new() -> IWICDevelopRaw_Vtbl { + unsafe extern "system" fn QueryRawCapabilitiesInfo(this: *mut core::ffi::c_void, pinfo: *mut WICRawCapabilitiesInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::QueryRawCapabilitiesInfo(this, core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn LoadParameterSet(this: *mut core::ffi::c_void, parameterset: WICRawParameterSet) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn LoadParameterSet(this: *mut core::ffi::c_void, parameterset: WICRawParameterSet) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::LoadParameterSet(this, core::mem::transmute_copy(¶meterset)).into() } - unsafe extern "system" fn GetCurrentParameterSet(this: *mut core::ffi::c_void, ppcurrentparameterset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetCurrentParameterSet(this: *mut core::ffi::c_void, ppcurrentparameterset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetCurrentParameterSet(this) { Ok(ok__) => { @@ -1593,17 +1212,11 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExposureCompensation(this: *mut core::ffi::c_void, ev: f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetExposureCompensation(this: *mut core::ffi::c_void, ev: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetExposureCompensation(this, core::mem::transmute_copy(&ev)).into() } - unsafe extern "system" fn GetExposureCompensation(this: *mut core::ffi::c_void, pev: *mut f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetExposureCompensation(this: *mut core::ffi::c_void, pev: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetExposureCompensation(this) { Ok(ok__) => { @@ -1613,31 +1226,19 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWhitePointRGB(this: *mut core::ffi::c_void, red: u32, green: u32, blue: u32) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetWhitePointRGB(this: *mut core::ffi::c_void, red: u32, green: u32, blue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetWhitePointRGB(this, core::mem::transmute_copy(&red), core::mem::transmute_copy(&green), core::mem::transmute_copy(&blue)).into() } - unsafe extern "system" fn GetWhitePointRGB(this: *mut core::ffi::c_void, pred: *mut u32, pgreen: *mut u32, pblue: *mut u32) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetWhitePointRGB(this: *mut core::ffi::c_void, pred: *mut u32, pgreen: *mut u32, pblue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::GetWhitePointRGB(this, core::mem::transmute_copy(&pred), core::mem::transmute_copy(&pgreen), core::mem::transmute_copy(&pblue)).into() } - unsafe extern "system" fn SetNamedWhitePoint(this: *mut core::ffi::c_void, whitepoint: WICNamedWhitePoint) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetNamedWhitePoint(this: *mut core::ffi::c_void, whitepoint: WICNamedWhitePoint) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetNamedWhitePoint(this, core::mem::transmute_copy(&whitepoint)).into() } - unsafe extern "system" fn GetNamedWhitePoint(this: *mut core::ffi::c_void, pwhitepoint: *mut WICNamedWhitePoint) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetNamedWhitePoint(this: *mut core::ffi::c_void, pwhitepoint: *mut WICNamedWhitePoint) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetNamedWhitePoint(this) { Ok(ok__) => { @@ -1647,17 +1248,11 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWhitePointKelvin(this: *mut core::ffi::c_void, whitepointkelvin: u32) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetWhitePointKelvin(this: *mut core::ffi::c_void, whitepointkelvin: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetWhitePointKelvin(this, core::mem::transmute_copy(&whitepointkelvin)).into() } - unsafe extern "system" fn GetWhitePointKelvin(this: *mut core::ffi::c_void, pwhitepointkelvin: *mut u32) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetWhitePointKelvin(this: *mut core::ffi::c_void, pwhitepointkelvin: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetWhitePointKelvin(this) { Ok(ok__) => { @@ -1667,24 +1262,15 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKelvinRangeInfo(this: *mut core::ffi::c_void, pminkelvintemp: *mut u32, pmaxkelvintemp: *mut u32, pkelvintempstepvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetKelvinRangeInfo(this: *mut core::ffi::c_void, pminkelvintemp: *mut u32, pmaxkelvintemp: *mut u32, pkelvintempstepvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::GetKelvinRangeInfo(this, core::mem::transmute_copy(&pminkelvintemp), core::mem::transmute_copy(&pmaxkelvintemp), core::mem::transmute_copy(&pkelvintempstepvalue)).into() } - unsafe extern "system" fn SetContrast(this: *mut core::ffi::c_void, contrast: f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetContrast(this: *mut core::ffi::c_void, contrast: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetContrast(this, core::mem::transmute_copy(&contrast)).into() } - unsafe extern "system" fn GetContrast(this: *mut core::ffi::c_void, pcontrast: *mut f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetContrast(this: *mut core::ffi::c_void, pcontrast: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetContrast(this) { Ok(ok__) => { @@ -1694,17 +1280,11 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGamma(this: *mut core::ffi::c_void, gamma: f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetGamma(this: *mut core::ffi::c_void, gamma: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetGamma(this, core::mem::transmute_copy(&gamma)).into() } - unsafe extern "system" fn GetGamma(this: *mut core::ffi::c_void, pgamma: *mut f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetGamma(this: *mut core::ffi::c_void, pgamma: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetGamma(this) { Ok(ok__) => { @@ -1714,17 +1294,11 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSharpness(this: *mut core::ffi::c_void, sharpness: f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetSharpness(this: *mut core::ffi::c_void, sharpness: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetSharpness(this, core::mem::transmute_copy(&sharpness)).into() } - unsafe extern "system" fn GetSharpness(this: *mut core::ffi::c_void, psharpness: *mut f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetSharpness(this: *mut core::ffi::c_void, psharpness: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetSharpness(this) { Ok(ok__) => { @@ -1734,17 +1308,11 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSaturation(this: *mut core::ffi::c_void, saturation: f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetSaturation(this: *mut core::ffi::c_void, saturation: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetSaturation(this, core::mem::transmute_copy(&saturation)).into() } - unsafe extern "system" fn GetSaturation(this: *mut core::ffi::c_void, psaturation: *mut f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetSaturation(this: *mut core::ffi::c_void, psaturation: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetSaturation(this) { Ok(ok__) => { @@ -1754,17 +1322,11 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTint(this: *mut core::ffi::c_void, tint: f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetTint(this: *mut core::ffi::c_void, tint: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetTint(this, core::mem::transmute_copy(&tint)).into() } - unsafe extern "system" fn GetTint(this: *mut core::ffi::c_void, ptint: *mut f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetTint(this: *mut core::ffi::c_void, ptint: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetTint(this) { Ok(ok__) => { @@ -1774,17 +1336,11 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNoiseReduction(this: *mut core::ffi::c_void, noisereduction: f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetNoiseReduction(this: *mut core::ffi::c_void, noisereduction: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetNoiseReduction(this, core::mem::transmute_copy(&noisereduction)).into() } - unsafe extern "system" fn GetNoiseReduction(this: *mut core::ffi::c_void, pnoisereduction: *mut f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetNoiseReduction(this: *mut core::ffi::c_void, pnoisereduction: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetNoiseReduction(this) { Ok(ok__) => { @@ -1794,38 +1350,23 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDestinationColorContext(this: *mut core::ffi::c_void, pcolorcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetDestinationColorContext(this: *mut core::ffi::c_void, pcolorcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetDestinationColorContext(this, windows_core::from_raw_borrowed(&pcolorcontext)).into() } - unsafe extern "system" fn SetToneCurve(this: *mut core::ffi::c_void, cbtonecurvesize: u32, ptonecurve: *const WICRawToneCurve) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetToneCurve(this: *mut core::ffi::c_void, cbtonecurvesize: u32, ptonecurve: *const WICRawToneCurve) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetToneCurve(this, core::mem::transmute_copy(&cbtonecurvesize), core::mem::transmute_copy(&ptonecurve)).into() } - unsafe extern "system" fn GetToneCurve(this: *mut core::ffi::c_void, cbtonecurvebuffersize: u32, ptonecurve: *mut WICRawToneCurve, pcbactualtonecurvebuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetToneCurve(this: *mut core::ffi::c_void, cbtonecurvebuffersize: u32, ptonecurve: *mut WICRawToneCurve, pcbactualtonecurvebuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::GetToneCurve(this, core::mem::transmute_copy(&cbtonecurvebuffersize), core::mem::transmute_copy(&ptonecurve), core::mem::transmute_copy(&pcbactualtonecurvebuffersize)).into() } - unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, rotation: f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, rotation: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetRotation(this, core::mem::transmute_copy(&rotation)).into() } - unsafe extern "system" fn GetRotation(this: *mut core::ffi::c_void, protation: *mut f64) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetRotation(this: *mut core::ffi::c_void, protation: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetRotation(this) { Ok(ok__) => { @@ -1835,17 +1376,11 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRenderMode(this: *mut core::ffi::c_void, rendermode: WICRawRenderMode) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetRenderMode(this: *mut core::ffi::c_void, rendermode: WICRawRenderMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetRenderMode(this, core::mem::transmute_copy(&rendermode)).into() } - unsafe extern "system" fn GetRenderMode(this: *mut core::ffi::c_void, prendermode: *mut WICRawRenderMode) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn GetRenderMode(this: *mut core::ffi::c_void, prendermode: *mut WICRawRenderMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICDevelopRaw_Impl::GetRenderMode(this) { Ok(ok__) => { @@ -1855,10 +1390,7 @@ impl IWICDevelopRaw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotificationCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICDevelopRaw_Impl, - { + unsafe extern "system" fn SetNotificationCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRaw_Impl::SetNotificationCallback(this, windows_core::from_raw_borrowed(&pcallback)).into() } @@ -1902,19 +1434,13 @@ impl IWICDevelopRaw_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWICDevelopRawNotificationCallback_Impl: Sized { +pub trait IWICDevelopRawNotificationCallback_Impl: Sized + windows_core::IUnknownImpl { fn Notify(&self, notificationmask: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWICDevelopRawNotificationCallback {} impl IWICDevelopRawNotificationCallback_Vtbl { - pub const fn new() -> IWICDevelopRawNotificationCallback_Vtbl - where - Identity: IWICDevelopRawNotificationCallback_Impl, - { - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, notificationmask: u32) -> windows_core::HRESULT - where - Identity: IWICDevelopRawNotificationCallback_Impl, - { + pub const fn new() -> IWICDevelopRawNotificationCallback_Vtbl { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, notificationmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICDevelopRawNotificationCallback_Impl::Notify(this, core::mem::transmute_copy(¬ificationmask)).into() } @@ -1924,7 +1450,7 @@ impl IWICDevelopRawNotificationCallback_Vtbl { iid == &::IID } } -pub trait IWICEnumMetadataItem_Impl: Sized { +pub trait IWICEnumMetadataItem_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgeltschema: *mut windows_core::PROPVARIANT, rgeltid: *mut windows_core::PROPVARIANT, rgeltvalue: *mut windows_core::PROPVARIANT, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1932,35 +1458,20 @@ pub trait IWICEnumMetadataItem_Impl: Sized { } impl windows_core::RuntimeName for IWICEnumMetadataItem {} impl IWICEnumMetadataItem_Vtbl { - pub const fn new() -> IWICEnumMetadataItem_Vtbl - where - Identity: IWICEnumMetadataItem_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgeltschema: *mut core::mem::MaybeUninit, rgeltid: *mut core::mem::MaybeUninit, rgeltvalue: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IWICEnumMetadataItem_Impl, - { + pub const fn new() -> IWICEnumMetadataItem_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgeltschema: *mut core::mem::MaybeUninit, rgeltid: *mut core::mem::MaybeUninit, rgeltvalue: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICEnumMetadataItem_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgeltschema), core::mem::transmute_copy(&rgeltid), core::mem::transmute_copy(&rgeltvalue), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IWICEnumMetadataItem_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICEnumMetadataItem_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICEnumMetadataItem_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICEnumMetadataItem_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienummetadataitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICEnumMetadataItem_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienummetadataitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICEnumMetadataItem_Impl::Clone(this) { Ok(ok__) => { @@ -1982,27 +1493,18 @@ impl IWICEnumMetadataItem_Vtbl { iid == &::IID } } -pub trait IWICFastMetadataEncoder_Impl: Sized { +pub trait IWICFastMetadataEncoder_Impl: Sized + windows_core::IUnknownImpl { fn Commit(&self) -> windows_core::Result<()>; fn GetMetadataQueryWriter(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWICFastMetadataEncoder {} impl IWICFastMetadataEncoder_Vtbl { - pub const fn new() -> IWICFastMetadataEncoder_Vtbl - where - Identity: IWICFastMetadataEncoder_Impl, - { - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICFastMetadataEncoder_Impl, - { + pub const fn new() -> IWICFastMetadataEncoder_Vtbl { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICFastMetadataEncoder_Impl::Commit(this).into() } - unsafe extern "system" fn GetMetadataQueryWriter(this: *mut core::ffi::c_void, ppimetadataquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICFastMetadataEncoder_Impl, - { + unsafe extern "system" fn GetMetadataQueryWriter(this: *mut core::ffi::c_void, ppimetadataquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICFastMetadataEncoder_Impl::GetMetadataQueryWriter(this) { Ok(ok__) => { @@ -2028,21 +1530,12 @@ pub trait IWICFormatConverter_Impl: Sized + IWICBitmapSource_Impl { } impl windows_core::RuntimeName for IWICFormatConverter {} impl IWICFormatConverter_Vtbl { - pub const fn new() -> IWICFormatConverter_Vtbl - where - Identity: IWICFormatConverter_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pisource: *mut core::ffi::c_void, dstformat: *const windows_core::GUID, dither: WICBitmapDitherType, pipalette: *mut core::ffi::c_void, alphathresholdpercent: f64, palettetranslate: WICBitmapPaletteType) -> windows_core::HRESULT - where - Identity: IWICFormatConverter_Impl, - { + pub const fn new() -> IWICFormatConverter_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pisource: *mut core::ffi::c_void, dstformat: *const windows_core::GUID, dither: WICBitmapDitherType, pipalette: *mut core::ffi::c_void, alphathresholdpercent: f64, palettetranslate: WICBitmapPaletteType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICFormatConverter_Impl::Initialize(this, windows_core::from_raw_borrowed(&pisource), core::mem::transmute_copy(&dstformat), core::mem::transmute_copy(&dither), windows_core::from_raw_borrowed(&pipalette), core::mem::transmute_copy(&alphathresholdpercent), core::mem::transmute_copy(&palettetranslate)).into() } - unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, srcpixelformat: *const windows_core::GUID, dstpixelformat: *const windows_core::GUID, pfcanconvert: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICFormatConverter_Impl, - { + unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, srcpixelformat: *const windows_core::GUID, dstpixelformat: *const windows_core::GUID, pfcanconvert: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICFormatConverter_Impl::CanConvert(this, core::mem::transmute_copy(&srcpixelformat), core::mem::transmute_copy(&dstpixelformat)) { Ok(ok__) => { @@ -2064,21 +1557,12 @@ pub trait IWICFormatConverterInfo_Impl: Sized + IWICComponentInfo_Impl { } impl windows_core::RuntimeName for IWICFormatConverterInfo {} impl IWICFormatConverterInfo_Vtbl { - pub const fn new() -> IWICFormatConverterInfo_Vtbl - where - Identity: IWICFormatConverterInfo_Impl, - { - unsafe extern "system" fn GetPixelFormats(this: *mut core::ffi::c_void, cformats: u32, ppixelformatguids: *mut windows_core::GUID, pcactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICFormatConverterInfo_Impl, - { + pub const fn new() -> IWICFormatConverterInfo_Vtbl { + unsafe extern "system" fn GetPixelFormats(this: *mut core::ffi::c_void, cformats: u32, ppixelformatguids: *mut windows_core::GUID, pcactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICFormatConverterInfo_Impl::GetPixelFormats(this, core::mem::transmute_copy(&cformats), core::mem::transmute_copy(&ppixelformatguids), core::mem::transmute_copy(&pcactual)).into() } - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ppiconverter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICFormatConverterInfo_Impl, - { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ppiconverter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICFormatConverterInfo_Impl::CreateInstance(this) { Ok(ok__) => { @@ -2099,7 +1583,7 @@ impl IWICFormatConverterInfo_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IWICImagingFactory_Impl: Sized { +pub trait IWICImagingFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateDecoderFromFilename(&self, wzfilename: &windows_core::PCWSTR, pguidvendor: *const windows_core::GUID, dwdesiredaccess: super::super::Foundation::GENERIC_ACCESS_RIGHTS, metadataoptions: WICDecodeOptions) -> windows_core::Result; fn CreateDecoderFromStream(&self, pistream: Option<&super::super::System::Com::IStream>, pguidvendor: *const windows_core::GUID, metadataoptions: WICDecodeOptions) -> windows_core::Result; fn CreateDecoderFromFileHandle(&self, hfile: usize, pguidvendor: *const windows_core::GUID, metadataoptions: WICDecodeOptions) -> windows_core::Result; @@ -2130,14 +1614,8 @@ pub trait IWICImagingFactory_Impl: Sized { impl windows_core::RuntimeName for IWICImagingFactory {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] impl IWICImagingFactory_Vtbl { - pub const fn new() -> IWICImagingFactory_Vtbl - where - Identity: IWICImagingFactory_Impl, - { - unsafe extern "system" fn CreateDecoderFromFilename(this: *mut core::ffi::c_void, wzfilename: windows_core::PCWSTR, pguidvendor: *const windows_core::GUID, dwdesiredaccess: super::super::Foundation::GENERIC_ACCESS_RIGHTS, metadataoptions: WICDecodeOptions, ppidecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + pub const fn new() -> IWICImagingFactory_Vtbl { + unsafe extern "system" fn CreateDecoderFromFilename(this: *mut core::ffi::c_void, wzfilename: windows_core::PCWSTR, pguidvendor: *const windows_core::GUID, dwdesiredaccess: super::super::Foundation::GENERIC_ACCESS_RIGHTS, metadataoptions: WICDecodeOptions, ppidecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateDecoderFromFilename(this, core::mem::transmute(&wzfilename), core::mem::transmute_copy(&pguidvendor), core::mem::transmute_copy(&dwdesiredaccess), core::mem::transmute_copy(&metadataoptions)) { Ok(ok__) => { @@ -2147,10 +1625,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDecoderFromStream(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pguidvendor: *const windows_core::GUID, metadataoptions: WICDecodeOptions, ppidecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateDecoderFromStream(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pguidvendor: *const windows_core::GUID, metadataoptions: WICDecodeOptions, ppidecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateDecoderFromStream(this, windows_core::from_raw_borrowed(&pistream), core::mem::transmute_copy(&pguidvendor), core::mem::transmute_copy(&metadataoptions)) { Ok(ok__) => { @@ -2160,10 +1635,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDecoderFromFileHandle(this: *mut core::ffi::c_void, hfile: usize, pguidvendor: *const windows_core::GUID, metadataoptions: WICDecodeOptions, ppidecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateDecoderFromFileHandle(this: *mut core::ffi::c_void, hfile: usize, pguidvendor: *const windows_core::GUID, metadataoptions: WICDecodeOptions, ppidecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateDecoderFromFileHandle(this, core::mem::transmute_copy(&hfile), core::mem::transmute_copy(&pguidvendor), core::mem::transmute_copy(&metadataoptions)) { Ok(ok__) => { @@ -2173,10 +1645,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateComponentInfo(this: *mut core::ffi::c_void, clsidcomponent: *const windows_core::GUID, ppiinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateComponentInfo(this: *mut core::ffi::c_void, clsidcomponent: *const windows_core::GUID, ppiinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateComponentInfo(this, core::mem::transmute_copy(&clsidcomponent)) { Ok(ok__) => { @@ -2186,10 +1655,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDecoder(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, ppidecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateDecoder(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, ppidecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateDecoder(this, core::mem::transmute_copy(&guidcontainerformat), core::mem::transmute_copy(&pguidvendor)) { Ok(ok__) => { @@ -2199,10 +1665,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEncoder(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, ppiencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateEncoder(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, ppiencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateEncoder(this, core::mem::transmute_copy(&guidcontainerformat), core::mem::transmute_copy(&pguidvendor)) { Ok(ok__) => { @@ -2212,10 +1675,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePalette(this: *mut core::ffi::c_void, ppipalette: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreatePalette(this: *mut core::ffi::c_void, ppipalette: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreatePalette(this) { Ok(ok__) => { @@ -2225,10 +1685,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFormatConverter(this: *mut core::ffi::c_void, ppiformatconverter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateFormatConverter(this: *mut core::ffi::c_void, ppiformatconverter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateFormatConverter(this) { Ok(ok__) => { @@ -2238,10 +1695,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapScaler(this: *mut core::ffi::c_void, ppibitmapscaler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateBitmapScaler(this: *mut core::ffi::c_void, ppibitmapscaler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateBitmapScaler(this) { Ok(ok__) => { @@ -2251,10 +1705,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapClipper(this: *mut core::ffi::c_void, ppibitmapclipper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateBitmapClipper(this: *mut core::ffi::c_void, ppibitmapclipper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateBitmapClipper(this) { Ok(ok__) => { @@ -2264,10 +1715,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapFlipRotator(this: *mut core::ffi::c_void, ppibitmapfliprotator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateBitmapFlipRotator(this: *mut core::ffi::c_void, ppibitmapfliprotator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateBitmapFlipRotator(this) { Ok(ok__) => { @@ -2277,10 +1725,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, ppiwicstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, ppiwicstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateStream(this) { Ok(ok__) => { @@ -2290,10 +1735,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorContext(this: *mut core::ffi::c_void, ppiwiccolorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateColorContext(this: *mut core::ffi::c_void, ppiwiccolorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateColorContext(this) { Ok(ok__) => { @@ -2303,10 +1745,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorTransformer(this: *mut core::ffi::c_void, ppiwiccolortransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateColorTransformer(this: *mut core::ffi::c_void, ppiwiccolortransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateColorTransformer(this) { Ok(ok__) => { @@ -2316,10 +1755,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmap(this: *mut core::ffi::c_void, uiwidth: u32, uiheight: u32, pixelformat: *const windows_core::GUID, option: WICBitmapCreateCacheOption, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateBitmap(this: *mut core::ffi::c_void, uiwidth: u32, uiheight: u32, pixelformat: *const windows_core::GUID, option: WICBitmapCreateCacheOption, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateBitmap(this, core::mem::transmute_copy(&uiwidth), core::mem::transmute_copy(&uiheight), core::mem::transmute_copy(&pixelformat), core::mem::transmute_copy(&option)) { Ok(ok__) => { @@ -2329,10 +1765,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapFromSource(this: *mut core::ffi::c_void, pibitmapsource: *mut core::ffi::c_void, option: WICBitmapCreateCacheOption, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateBitmapFromSource(this: *mut core::ffi::c_void, pibitmapsource: *mut core::ffi::c_void, option: WICBitmapCreateCacheOption, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateBitmapFromSource(this, windows_core::from_raw_borrowed(&pibitmapsource), core::mem::transmute_copy(&option)) { Ok(ok__) => { @@ -2342,10 +1775,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapFromSourceRect(this: *mut core::ffi::c_void, pibitmapsource: *mut core::ffi::c_void, x: u32, y: u32, width: u32, height: u32, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateBitmapFromSourceRect(this: *mut core::ffi::c_void, pibitmapsource: *mut core::ffi::c_void, x: u32, y: u32, width: u32, height: u32, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateBitmapFromSourceRect(this, windows_core::from_raw_borrowed(&pibitmapsource), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)) { Ok(ok__) => { @@ -2355,10 +1785,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapFromMemory(this: *mut core::ffi::c_void, uiwidth: u32, uiheight: u32, pixelformat: *const windows_core::GUID, cbstride: u32, cbbuffersize: u32, pbbuffer: *const u8, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateBitmapFromMemory(this: *mut core::ffi::c_void, uiwidth: u32, uiheight: u32, pixelformat: *const windows_core::GUID, cbstride: u32, cbbuffersize: u32, pbbuffer: *const u8, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateBitmapFromMemory(this, core::mem::transmute_copy(&uiwidth), core::mem::transmute_copy(&uiheight), core::mem::transmute_copy(&pixelformat), core::mem::transmute_copy(&cbstride), core::mem::transmute_copy(&cbbuffersize), core::mem::transmute_copy(&pbbuffer)) { Ok(ok__) => { @@ -2368,10 +1795,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapFromHBITMAP(this: *mut core::ffi::c_void, hbitmap: super::Gdi::HBITMAP, hpalette: super::Gdi::HPALETTE, options: WICBitmapAlphaChannelOption, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateBitmapFromHBITMAP(this: *mut core::ffi::c_void, hbitmap: super::Gdi::HBITMAP, hpalette: super::Gdi::HPALETTE, options: WICBitmapAlphaChannelOption, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateBitmapFromHBITMAP(this, core::mem::transmute_copy(&hbitmap), core::mem::transmute_copy(&hpalette), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -2381,10 +1805,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBitmapFromHICON(this: *mut core::ffi::c_void, hicon: super::super::UI::WindowsAndMessaging::HICON, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateBitmapFromHICON(this: *mut core::ffi::c_void, hicon: super::super::UI::WindowsAndMessaging::HICON, ppibitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateBitmapFromHICON(this, core::mem::transmute_copy(&hicon)) { Ok(ok__) => { @@ -2394,10 +1815,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateComponentEnumerator(this: *mut core::ffi::c_void, componenttypes: u32, options: u32, ppienumunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateComponentEnumerator(this: *mut core::ffi::c_void, componenttypes: u32, options: u32, ppienumunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateComponentEnumerator(this, core::mem::transmute_copy(&componenttypes), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -2407,10 +1825,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFastMetadataEncoderFromDecoder(this: *mut core::ffi::c_void, pidecoder: *mut core::ffi::c_void, ppifastencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateFastMetadataEncoderFromDecoder(this: *mut core::ffi::c_void, pidecoder: *mut core::ffi::c_void, ppifastencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateFastMetadataEncoderFromDecoder(this, windows_core::from_raw_borrowed(&pidecoder)) { Ok(ok__) => { @@ -2420,10 +1835,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFastMetadataEncoderFromFrameDecode(this: *mut core::ffi::c_void, piframedecoder: *mut core::ffi::c_void, ppifastencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateFastMetadataEncoderFromFrameDecode(this: *mut core::ffi::c_void, piframedecoder: *mut core::ffi::c_void, ppifastencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateFastMetadataEncoderFromFrameDecode(this, windows_core::from_raw_borrowed(&piframedecoder)) { Ok(ok__) => { @@ -2433,10 +1845,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateQueryWriter(this: *mut core::ffi::c_void, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, ppiquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateQueryWriter(this: *mut core::ffi::c_void, guidmetadataformat: *const windows_core::GUID, pguidvendor: *const windows_core::GUID, ppiquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateQueryWriter(this, core::mem::transmute_copy(&guidmetadataformat), core::mem::transmute_copy(&pguidvendor)) { Ok(ok__) => { @@ -2446,10 +1855,7 @@ impl IWICImagingFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateQueryWriterFromReader(this: *mut core::ffi::c_void, piqueryreader: *mut core::ffi::c_void, pguidvendor: *const windows_core::GUID, ppiquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICImagingFactory_Impl, - { + unsafe extern "system" fn CreateQueryWriterFromReader(this: *mut core::ffi::c_void, piqueryreader: *mut core::ffi::c_void, pguidvendor: *const windows_core::GUID, ppiquerywriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICImagingFactory_Impl::CreateQueryWriterFromReader(this, windows_core::from_raw_borrowed(&piqueryreader), core::mem::transmute_copy(&pguidvendor)) { Ok(ok__) => { @@ -2493,7 +1899,7 @@ impl IWICImagingFactory_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait IWICJpegFrameDecode_Impl: Sized { +pub trait IWICJpegFrameDecode_Impl: Sized + windows_core::IUnknownImpl { fn DoesSupportIndexing(&self) -> windows_core::Result; fn SetIndexing(&self, options: WICJpegIndexingOptions, horizontalintervalsize: u32) -> windows_core::Result<()>; fn ClearIndexing(&self) -> windows_core::Result<()>; @@ -2509,14 +1915,8 @@ pub trait IWICJpegFrameDecode_Impl: Sized { impl windows_core::RuntimeName for IWICJpegFrameDecode {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IWICJpegFrameDecode_Vtbl { - pub const fn new() -> IWICJpegFrameDecode_Vtbl - where - Identity: IWICJpegFrameDecode_Impl, - { - unsafe extern "system" fn DoesSupportIndexing(this: *mut core::ffi::c_void, pfindexingsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICJpegFrameDecode_Impl, - { + pub const fn new() -> IWICJpegFrameDecode_Vtbl { + unsafe extern "system" fn DoesSupportIndexing(this: *mut core::ffi::c_void, pfindexingsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICJpegFrameDecode_Impl::DoesSupportIndexing(this) { Ok(ok__) => { @@ -2526,66 +1926,39 @@ impl IWICJpegFrameDecode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIndexing(this: *mut core::ffi::c_void, options: WICJpegIndexingOptions, horizontalintervalsize: u32) -> windows_core::HRESULT - where - Identity: IWICJpegFrameDecode_Impl, - { + unsafe extern "system" fn SetIndexing(this: *mut core::ffi::c_void, options: WICJpegIndexingOptions, horizontalintervalsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameDecode_Impl::SetIndexing(this, core::mem::transmute_copy(&options), core::mem::transmute_copy(&horizontalintervalsize)).into() } - unsafe extern "system" fn ClearIndexing(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICJpegFrameDecode_Impl, - { + unsafe extern "system" fn ClearIndexing(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameDecode_Impl::ClearIndexing(this).into() } - unsafe extern "system" fn GetAcHuffmanTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pachuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_AC_HUFFMAN_TABLE) -> windows_core::HRESULT - where - Identity: IWICJpegFrameDecode_Impl, - { + unsafe extern "system" fn GetAcHuffmanTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pachuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_AC_HUFFMAN_TABLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameDecode_Impl::GetAcHuffmanTable(this, core::mem::transmute_copy(&scanindex), core::mem::transmute_copy(&tableindex), core::mem::transmute_copy(&pachuffmantable)).into() } - unsafe extern "system" fn GetDcHuffmanTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pdchuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_DC_HUFFMAN_TABLE) -> windows_core::HRESULT - where - Identity: IWICJpegFrameDecode_Impl, - { + unsafe extern "system" fn GetDcHuffmanTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pdchuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_DC_HUFFMAN_TABLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameDecode_Impl::GetDcHuffmanTable(this, core::mem::transmute_copy(&scanindex), core::mem::transmute_copy(&tableindex), core::mem::transmute_copy(&pdchuffmantable)).into() } - unsafe extern "system" fn GetQuantizationTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pquantizationtable: *mut super::Dxgi::Common::DXGI_JPEG_QUANTIZATION_TABLE) -> windows_core::HRESULT - where - Identity: IWICJpegFrameDecode_Impl, - { + unsafe extern "system" fn GetQuantizationTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pquantizationtable: *mut super::Dxgi::Common::DXGI_JPEG_QUANTIZATION_TABLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameDecode_Impl::GetQuantizationTable(this, core::mem::transmute_copy(&scanindex), core::mem::transmute_copy(&tableindex), core::mem::transmute_copy(&pquantizationtable)).into() } - unsafe extern "system" fn GetFrameHeader(this: *mut core::ffi::c_void, pframeheader: *mut WICJpegFrameHeader) -> windows_core::HRESULT - where - Identity: IWICJpegFrameDecode_Impl, - { + unsafe extern "system" fn GetFrameHeader(this: *mut core::ffi::c_void, pframeheader: *mut WICJpegFrameHeader) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameDecode_Impl::GetFrameHeader(this, core::mem::transmute_copy(&pframeheader)).into() } - unsafe extern "system" fn GetScanHeader(this: *mut core::ffi::c_void, scanindex: u32, pscanheader: *mut WICJpegScanHeader) -> windows_core::HRESULT - where - Identity: IWICJpegFrameDecode_Impl, - { + unsafe extern "system" fn GetScanHeader(this: *mut core::ffi::c_void, scanindex: u32, pscanheader: *mut WICJpegScanHeader) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameDecode_Impl::GetScanHeader(this, core::mem::transmute_copy(&scanindex), core::mem::transmute_copy(&pscanheader)).into() } - unsafe extern "system" fn CopyScan(this: *mut core::ffi::c_void, scanindex: u32, scanoffset: u32, cbscandata: u32, pbscandata: *mut u8, pcbscandataactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICJpegFrameDecode_Impl, - { + unsafe extern "system" fn CopyScan(this: *mut core::ffi::c_void, scanindex: u32, scanoffset: u32, cbscandata: u32, pbscandata: *mut u8, pcbscandataactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameDecode_Impl::CopyScan(this, core::mem::transmute_copy(&scanindex), core::mem::transmute_copy(&scanoffset), core::mem::transmute_copy(&cbscandata), core::mem::transmute_copy(&pbscandata), core::mem::transmute_copy(&pcbscandataactual)).into() } - unsafe extern "system" fn CopyMinimalStream(this: *mut core::ffi::c_void, streamoffset: u32, cbstreamdata: u32, pbstreamdata: *mut u8, pcbstreamdataactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICJpegFrameDecode_Impl, - { + unsafe extern "system" fn CopyMinimalStream(this: *mut core::ffi::c_void, streamoffset: u32, cbstreamdata: u32, pbstreamdata: *mut u8, pcbstreamdataactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameDecode_Impl::CopyMinimalStream(this, core::mem::transmute_copy(&streamoffset), core::mem::transmute_copy(&cbstreamdata), core::mem::transmute_copy(&pbstreamdata), core::mem::transmute_copy(&pcbstreamdataactual)).into() } @@ -2608,7 +1981,7 @@ impl IWICJpegFrameDecode_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait IWICJpegFrameEncode_Impl: Sized { +pub trait IWICJpegFrameEncode_Impl: Sized + windows_core::IUnknownImpl { fn GetAcHuffmanTable(&self, scanindex: u32, tableindex: u32, pachuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_AC_HUFFMAN_TABLE) -> windows_core::Result<()>; fn GetDcHuffmanTable(&self, scanindex: u32, tableindex: u32, pdchuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_DC_HUFFMAN_TABLE) -> windows_core::Result<()>; fn GetQuantizationTable(&self, scanindex: u32, tableindex: u32, pquantizationtable: *mut super::Dxgi::Common::DXGI_JPEG_QUANTIZATION_TABLE) -> windows_core::Result<()>; @@ -2618,35 +1991,20 @@ pub trait IWICJpegFrameEncode_Impl: Sized { impl windows_core::RuntimeName for IWICJpegFrameEncode {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IWICJpegFrameEncode_Vtbl { - pub const fn new() -> IWICJpegFrameEncode_Vtbl - where - Identity: IWICJpegFrameEncode_Impl, - { - unsafe extern "system" fn GetAcHuffmanTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pachuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_AC_HUFFMAN_TABLE) -> windows_core::HRESULT - where - Identity: IWICJpegFrameEncode_Impl, - { + pub const fn new() -> IWICJpegFrameEncode_Vtbl { + unsafe extern "system" fn GetAcHuffmanTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pachuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_AC_HUFFMAN_TABLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameEncode_Impl::GetAcHuffmanTable(this, core::mem::transmute_copy(&scanindex), core::mem::transmute_copy(&tableindex), core::mem::transmute_copy(&pachuffmantable)).into() } - unsafe extern "system" fn GetDcHuffmanTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pdchuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_DC_HUFFMAN_TABLE) -> windows_core::HRESULT - where - Identity: IWICJpegFrameEncode_Impl, - { + unsafe extern "system" fn GetDcHuffmanTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pdchuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_DC_HUFFMAN_TABLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameEncode_Impl::GetDcHuffmanTable(this, core::mem::transmute_copy(&scanindex), core::mem::transmute_copy(&tableindex), core::mem::transmute_copy(&pdchuffmantable)).into() } - unsafe extern "system" fn GetQuantizationTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pquantizationtable: *mut super::Dxgi::Common::DXGI_JPEG_QUANTIZATION_TABLE) -> windows_core::HRESULT - where - Identity: IWICJpegFrameEncode_Impl, - { + unsafe extern "system" fn GetQuantizationTable(this: *mut core::ffi::c_void, scanindex: u32, tableindex: u32, pquantizationtable: *mut super::Dxgi::Common::DXGI_JPEG_QUANTIZATION_TABLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameEncode_Impl::GetQuantizationTable(this, core::mem::transmute_copy(&scanindex), core::mem::transmute_copy(&tableindex), core::mem::transmute_copy(&pquantizationtable)).into() } - unsafe extern "system" fn WriteScan(this: *mut core::ffi::c_void, cbscandata: u32, pbscandata: *const u8) -> windows_core::HRESULT - where - Identity: IWICJpegFrameEncode_Impl, - { + unsafe extern "system" fn WriteScan(this: *mut core::ffi::c_void, cbscandata: u32, pbscandata: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICJpegFrameEncode_Impl::WriteScan(this, core::mem::transmute_copy(&cbscandata), core::mem::transmute_copy(&pbscandata)).into() } @@ -2663,7 +2021,7 @@ impl IWICJpegFrameEncode_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWICMetadataBlockReader_Impl: Sized { +pub trait IWICMetadataBlockReader_Impl: Sized + windows_core::IUnknownImpl { fn GetContainerFormat(&self) -> windows_core::Result; fn GetCount(&self) -> windows_core::Result; fn GetReaderByIndex(&self, nindex: u32) -> windows_core::Result; @@ -2673,14 +2031,8 @@ pub trait IWICMetadataBlockReader_Impl: Sized { impl windows_core::RuntimeName for IWICMetadataBlockReader {} #[cfg(feature = "Win32_System_Com")] impl IWICMetadataBlockReader_Vtbl { - pub const fn new() -> IWICMetadataBlockReader_Vtbl - where - Identity: IWICMetadataBlockReader_Impl, - { - unsafe extern "system" fn GetContainerFormat(this: *mut core::ffi::c_void, pguidcontainerformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICMetadataBlockReader_Impl, - { + pub const fn new() -> IWICMetadataBlockReader_Vtbl { + unsafe extern "system" fn GetContainerFormat(this: *mut core::ffi::c_void, pguidcontainerformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataBlockReader_Impl::GetContainerFormat(this) { Ok(ok__) => { @@ -2690,10 +2042,7 @@ impl IWICMetadataBlockReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pccount: *mut u32) -> windows_core::HRESULT - where - Identity: IWICMetadataBlockReader_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pccount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataBlockReader_Impl::GetCount(this) { Ok(ok__) => { @@ -2703,10 +2052,7 @@ impl IWICMetadataBlockReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReaderByIndex(this: *mut core::ffi::c_void, nindex: u32, ppimetadatareader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataBlockReader_Impl, - { + unsafe extern "system" fn GetReaderByIndex(this: *mut core::ffi::c_void, nindex: u32, ppimetadatareader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataBlockReader_Impl::GetReaderByIndex(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -2716,10 +2062,7 @@ impl IWICMetadataBlockReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, ppienummetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataBlockReader_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, ppienummetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataBlockReader_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -2753,21 +2096,12 @@ pub trait IWICMetadataBlockWriter_Impl: Sized + IWICMetadataBlockReader_Impl { impl windows_core::RuntimeName for IWICMetadataBlockWriter {} #[cfg(feature = "Win32_System_Com")] impl IWICMetadataBlockWriter_Vtbl { - pub const fn new() -> IWICMetadataBlockWriter_Vtbl - where - Identity: IWICMetadataBlockWriter_Impl, - { - unsafe extern "system" fn InitializeFromBlockReader(this: *mut core::ffi::c_void, pimdblockreader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataBlockWriter_Impl, - { + pub const fn new() -> IWICMetadataBlockWriter_Vtbl { + unsafe extern "system" fn InitializeFromBlockReader(this: *mut core::ffi::c_void, pimdblockreader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataBlockWriter_Impl::InitializeFromBlockReader(this, windows_core::from_raw_borrowed(&pimdblockreader)).into() } - unsafe extern "system" fn GetWriterByIndex(this: *mut core::ffi::c_void, nindex: u32, ppimetadatawriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataBlockWriter_Impl, - { + unsafe extern "system" fn GetWriterByIndex(this: *mut core::ffi::c_void, nindex: u32, ppimetadatawriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataBlockWriter_Impl::GetWriterByIndex(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -2777,24 +2111,15 @@ impl IWICMetadataBlockWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddWriter(this: *mut core::ffi::c_void, pimetadatawriter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataBlockWriter_Impl, - { + unsafe extern "system" fn AddWriter(this: *mut core::ffi::c_void, pimetadatawriter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataBlockWriter_Impl::AddWriter(this, windows_core::from_raw_borrowed(&pimetadatawriter)).into() } - unsafe extern "system" fn SetWriterByIndex(this: *mut core::ffi::c_void, nindex: u32, pimetadatawriter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataBlockWriter_Impl, - { + unsafe extern "system" fn SetWriterByIndex(this: *mut core::ffi::c_void, nindex: u32, pimetadatawriter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataBlockWriter_Impl::SetWriterByIndex(this, core::mem::transmute_copy(&nindex), windows_core::from_raw_borrowed(&pimetadatawriter)).into() } - unsafe extern "system" fn RemoveWriterByIndex(this: *mut core::ffi::c_void, nindex: u32) -> windows_core::HRESULT - where - Identity: IWICMetadataBlockWriter_Impl, - { + unsafe extern "system" fn RemoveWriterByIndex(this: *mut core::ffi::c_void, nindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataBlockWriter_Impl::RemoveWriterByIndex(this, core::mem::transmute_copy(&nindex)).into() } @@ -2822,14 +2147,8 @@ pub trait IWICMetadataHandlerInfo_Impl: Sized + IWICComponentInfo_Impl { } impl windows_core::RuntimeName for IWICMetadataHandlerInfo {} impl IWICMetadataHandlerInfo_Vtbl { - pub const fn new() -> IWICMetadataHandlerInfo_Vtbl - where - Identity: IWICMetadataHandlerInfo_Impl, - { - unsafe extern "system" fn GetMetadataFormat(this: *mut core::ffi::c_void, pguidmetadataformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICMetadataHandlerInfo_Impl, - { + pub const fn new() -> IWICMetadataHandlerInfo_Vtbl { + unsafe extern "system" fn GetMetadataFormat(this: *mut core::ffi::c_void, pguidmetadataformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataHandlerInfo_Impl::GetMetadataFormat(this) { Ok(ok__) => { @@ -2839,31 +2158,19 @@ impl IWICMetadataHandlerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContainerFormats(this: *mut core::ffi::c_void, ccontainerformats: u32, pguidcontainerformats: *mut windows_core::GUID, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICMetadataHandlerInfo_Impl, - { + unsafe extern "system" fn GetContainerFormats(this: *mut core::ffi::c_void, ccontainerformats: u32, pguidcontainerformats: *mut windows_core::GUID, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataHandlerInfo_Impl::GetContainerFormats(this, core::mem::transmute_copy(&ccontainerformats), core::mem::transmute_copy(&pguidcontainerformats), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn GetDeviceManufacturer(this: *mut core::ffi::c_void, cchdevicemanufacturer: u32, wzdevicemanufacturer: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICMetadataHandlerInfo_Impl, - { + unsafe extern "system" fn GetDeviceManufacturer(this: *mut core::ffi::c_void, cchdevicemanufacturer: u32, wzdevicemanufacturer: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataHandlerInfo_Impl::GetDeviceManufacturer(this, core::mem::transmute_copy(&cchdevicemanufacturer), core::mem::transmute(&wzdevicemanufacturer), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn GetDeviceModels(this: *mut core::ffi::c_void, cchdevicemodels: u32, wzdevicemodels: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICMetadataHandlerInfo_Impl, - { + unsafe extern "system" fn GetDeviceModels(this: *mut core::ffi::c_void, cchdevicemodels: u32, wzdevicemodels: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataHandlerInfo_Impl::GetDeviceModels(this, core::mem::transmute_copy(&cchdevicemodels), core::mem::transmute(&wzdevicemodels), core::mem::transmute_copy(&pcchactual)).into() } - unsafe extern "system" fn DoesRequireFullStream(this: *mut core::ffi::c_void, pfrequiresfullstream: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICMetadataHandlerInfo_Impl, - { + unsafe extern "system" fn DoesRequireFullStream(this: *mut core::ffi::c_void, pfrequiresfullstream: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataHandlerInfo_Impl::DoesRequireFullStream(this) { Ok(ok__) => { @@ -2873,10 +2180,7 @@ impl IWICMetadataHandlerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoesSupportPadding(this: *mut core::ffi::c_void, pfsupportspadding: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICMetadataHandlerInfo_Impl, - { + unsafe extern "system" fn DoesSupportPadding(this: *mut core::ffi::c_void, pfsupportspadding: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataHandlerInfo_Impl::DoesSupportPadding(this) { Ok(ok__) => { @@ -2886,10 +2190,7 @@ impl IWICMetadataHandlerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoesRequireFixedSize(this: *mut core::ffi::c_void, pffixedsize: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICMetadataHandlerInfo_Impl, - { + unsafe extern "system" fn DoesRequireFixedSize(this: *mut core::ffi::c_void, pffixedsize: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataHandlerInfo_Impl::DoesRequireFixedSize(this) { Ok(ok__) => { @@ -2915,7 +2216,7 @@ impl IWICMetadataHandlerInfo_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWICMetadataQueryReader_Impl: Sized { +pub trait IWICMetadataQueryReader_Impl: Sized + windows_core::IUnknownImpl { fn GetContainerFormat(&self) -> windows_core::Result; fn GetLocation(&self, cchmaxlength: u32, wznamespace: &windows_core::PWSTR, pcchactuallength: *mut u32) -> windows_core::Result<()>; fn GetMetadataByName(&self, wzname: &windows_core::PCWSTR, pvarvalue: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; @@ -2925,14 +2226,8 @@ pub trait IWICMetadataQueryReader_Impl: Sized { impl windows_core::RuntimeName for IWICMetadataQueryReader {} #[cfg(feature = "Win32_System_Com")] impl IWICMetadataQueryReader_Vtbl { - pub const fn new() -> IWICMetadataQueryReader_Vtbl - where - Identity: IWICMetadataQueryReader_Impl, - { - unsafe extern "system" fn GetContainerFormat(this: *mut core::ffi::c_void, pguidcontainerformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICMetadataQueryReader_Impl, - { + pub const fn new() -> IWICMetadataQueryReader_Vtbl { + unsafe extern "system" fn GetContainerFormat(this: *mut core::ffi::c_void, pguidcontainerformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataQueryReader_Impl::GetContainerFormat(this) { Ok(ok__) => { @@ -2942,24 +2237,15 @@ impl IWICMetadataQueryReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, cchmaxlength: u32, wznamespace: windows_core::PWSTR, pcchactuallength: *mut u32) -> windows_core::HRESULT - where - Identity: IWICMetadataQueryReader_Impl, - { + unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, cchmaxlength: u32, wznamespace: windows_core::PWSTR, pcchactuallength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataQueryReader_Impl::GetLocation(this, core::mem::transmute_copy(&cchmaxlength), core::mem::transmute(&wznamespace), core::mem::transmute_copy(&pcchactuallength)).into() } - unsafe extern "system" fn GetMetadataByName(this: *mut core::ffi::c_void, wzname: windows_core::PCWSTR, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWICMetadataQueryReader_Impl, - { + unsafe extern "system" fn GetMetadataByName(this: *mut core::ffi::c_void, wzname: windows_core::PCWSTR, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataQueryReader_Impl::GetMetadataByName(this, core::mem::transmute(&wzname), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, ppienumstring: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataQueryReader_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, ppienumstring: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataQueryReader_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -2990,21 +2276,12 @@ pub trait IWICMetadataQueryWriter_Impl: Sized + IWICMetadataQueryReader_Impl { impl windows_core::RuntimeName for IWICMetadataQueryWriter {} #[cfg(feature = "Win32_System_Com")] impl IWICMetadataQueryWriter_Vtbl { - pub const fn new() -> IWICMetadataQueryWriter_Vtbl - where - Identity: IWICMetadataQueryWriter_Impl, - { - unsafe extern "system" fn SetMetadataByName(this: *mut core::ffi::c_void, wzname: windows_core::PCWSTR, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWICMetadataQueryWriter_Impl, - { + pub const fn new() -> IWICMetadataQueryWriter_Vtbl { + unsafe extern "system" fn SetMetadataByName(this: *mut core::ffi::c_void, wzname: windows_core::PCWSTR, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataQueryWriter_Impl::SetMetadataByName(this, core::mem::transmute(&wzname), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn RemoveMetadataByName(this: *mut core::ffi::c_void, wzname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWICMetadataQueryWriter_Impl, - { + unsafe extern "system" fn RemoveMetadataByName(this: *mut core::ffi::c_void, wzname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataQueryWriter_Impl::RemoveMetadataByName(this, core::mem::transmute(&wzname)).into() } @@ -3018,7 +2295,7 @@ impl IWICMetadataQueryWriter_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWICMetadataReader_Impl: Sized { +pub trait IWICMetadataReader_Impl: Sized + windows_core::IUnknownImpl { fn GetMetadataFormat(&self) -> windows_core::Result; fn GetMetadataHandlerInfo(&self) -> windows_core::Result; fn GetCount(&self) -> windows_core::Result; @@ -3028,14 +2305,8 @@ pub trait IWICMetadataReader_Impl: Sized { } impl windows_core::RuntimeName for IWICMetadataReader {} impl IWICMetadataReader_Vtbl { - pub const fn new() -> IWICMetadataReader_Vtbl - where - Identity: IWICMetadataReader_Impl, - { - unsafe extern "system" fn GetMetadataFormat(this: *mut core::ffi::c_void, pguidmetadataformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICMetadataReader_Impl, - { + pub const fn new() -> IWICMetadataReader_Vtbl { + unsafe extern "system" fn GetMetadataFormat(this: *mut core::ffi::c_void, pguidmetadataformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataReader_Impl::GetMetadataFormat(this) { Ok(ok__) => { @@ -3045,10 +2316,7 @@ impl IWICMetadataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMetadataHandlerInfo(this: *mut core::ffi::c_void, ppihandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataReader_Impl, - { + unsafe extern "system" fn GetMetadataHandlerInfo(this: *mut core::ffi::c_void, ppihandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataReader_Impl::GetMetadataHandlerInfo(this) { Ok(ok__) => { @@ -3058,10 +2326,7 @@ impl IWICMetadataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pccount: *mut u32) -> windows_core::HRESULT - where - Identity: IWICMetadataReader_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pccount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataReader_Impl::GetCount(this) { Ok(ok__) => { @@ -3071,24 +2336,15 @@ impl IWICMetadataReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValueByIndex(this: *mut core::ffi::c_void, nindex: u32, pvarschema: *mut core::mem::MaybeUninit, pvarid: *mut core::mem::MaybeUninit, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWICMetadataReader_Impl, - { + unsafe extern "system" fn GetValueByIndex(this: *mut core::ffi::c_void, nindex: u32, pvarschema: *mut core::mem::MaybeUninit, pvarid: *mut core::mem::MaybeUninit, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataReader_Impl::GetValueByIndex(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&pvarschema), core::mem::transmute_copy(&pvarid), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvarschema: *const core::mem::MaybeUninit, pvarid: *const core::mem::MaybeUninit, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWICMetadataReader_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvarschema: *const core::mem::MaybeUninit, pvarid: *const core::mem::MaybeUninit, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataReader_Impl::GetValue(this, core::mem::transmute_copy(&pvarschema), core::mem::transmute_copy(&pvarid), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, ppienummetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataReader_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, ppienummetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataReader_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -3122,21 +2378,12 @@ pub trait IWICMetadataReaderInfo_Impl: Sized + IWICMetadataHandlerInfo_Impl { impl windows_core::RuntimeName for IWICMetadataReaderInfo {} #[cfg(feature = "Win32_System_Com")] impl IWICMetadataReaderInfo_Vtbl { - pub const fn new() -> IWICMetadataReaderInfo_Vtbl - where - Identity: IWICMetadataReaderInfo_Impl, - { - unsafe extern "system" fn GetPatterns(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, cbsize: u32, ppattern: *mut WICMetadataPattern, pccount: *mut u32, pcbactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICMetadataReaderInfo_Impl, - { + pub const fn new() -> IWICMetadataReaderInfo_Vtbl { + unsafe extern "system" fn GetPatterns(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, cbsize: u32, ppattern: *mut WICMetadataPattern, pccount: *mut u32, pcbactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataReaderInfo_Impl::GetPatterns(this, core::mem::transmute_copy(&guidcontainerformat), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&ppattern), core::mem::transmute_copy(&pccount), core::mem::transmute_copy(&pcbactual)).into() } - unsafe extern "system" fn MatchesPattern(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, pistream: *mut core::ffi::c_void, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICMetadataReaderInfo_Impl, - { + unsafe extern "system" fn MatchesPattern(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, pistream: *mut core::ffi::c_void, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataReaderInfo_Impl::MatchesPattern(this, core::mem::transmute_copy(&guidcontainerformat), windows_core::from_raw_borrowed(&pistream)) { Ok(ok__) => { @@ -3146,10 +2393,7 @@ impl IWICMetadataReaderInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ppireader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataReaderInfo_Impl, - { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ppireader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataReaderInfo_Impl::CreateInstance(this) { Ok(ok__) => { @@ -3178,35 +2422,20 @@ pub trait IWICMetadataWriter_Impl: Sized + IWICMetadataReader_Impl { } impl windows_core::RuntimeName for IWICMetadataWriter {} impl IWICMetadataWriter_Vtbl { - pub const fn new() -> IWICMetadataWriter_Vtbl - where - Identity: IWICMetadataWriter_Impl, - { - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, pvarschema: *const core::mem::MaybeUninit, pvarid: *const core::mem::MaybeUninit, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWICMetadataWriter_Impl, - { + pub const fn new() -> IWICMetadataWriter_Vtbl { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, pvarschema: *const core::mem::MaybeUninit, pvarid: *const core::mem::MaybeUninit, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataWriter_Impl::SetValue(this, core::mem::transmute_copy(&pvarschema), core::mem::transmute_copy(&pvarid), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn SetValueByIndex(this: *mut core::ffi::c_void, nindex: u32, pvarschema: *const core::mem::MaybeUninit, pvarid: *const core::mem::MaybeUninit, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWICMetadataWriter_Impl, - { + unsafe extern "system" fn SetValueByIndex(this: *mut core::ffi::c_void, nindex: u32, pvarschema: *const core::mem::MaybeUninit, pvarid: *const core::mem::MaybeUninit, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataWriter_Impl::SetValueByIndex(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&pvarschema), core::mem::transmute_copy(&pvarid), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn RemoveValue(this: *mut core::ffi::c_void, pvarschema: *const core::mem::MaybeUninit, pvarid: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWICMetadataWriter_Impl, - { + unsafe extern "system" fn RemoveValue(this: *mut core::ffi::c_void, pvarschema: *const core::mem::MaybeUninit, pvarid: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataWriter_Impl::RemoveValue(this, core::mem::transmute_copy(&pvarschema), core::mem::transmute_copy(&pvarid)).into() } - unsafe extern "system" fn RemoveValueByIndex(this: *mut core::ffi::c_void, nindex: u32) -> windows_core::HRESULT - where - Identity: IWICMetadataWriter_Impl, - { + unsafe extern "system" fn RemoveValueByIndex(this: *mut core::ffi::c_void, nindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataWriter_Impl::RemoveValueByIndex(this, core::mem::transmute_copy(&nindex)).into() } @@ -3228,21 +2457,12 @@ pub trait IWICMetadataWriterInfo_Impl: Sized + IWICMetadataHandlerInfo_Impl { } impl windows_core::RuntimeName for IWICMetadataWriterInfo {} impl IWICMetadataWriterInfo_Vtbl { - pub const fn new() -> IWICMetadataWriterInfo_Vtbl - where - Identity: IWICMetadataWriterInfo_Impl, - { - unsafe extern "system" fn GetHeader(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, cbsize: u32, pheader: *mut WICMetadataHeader, pcbactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICMetadataWriterInfo_Impl, - { + pub const fn new() -> IWICMetadataWriterInfo_Vtbl { + unsafe extern "system" fn GetHeader(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, cbsize: u32, pheader: *mut WICMetadataHeader, pcbactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICMetadataWriterInfo_Impl::GetHeader(this, core::mem::transmute_copy(&guidcontainerformat), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pheader), core::mem::transmute_copy(&pcbactual)).into() } - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ppiwriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICMetadataWriterInfo_Impl, - { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ppiwriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataWriterInfo_Impl::CreateInstance(this) { Ok(ok__) => { @@ -3262,7 +2482,7 @@ impl IWICMetadataWriterInfo_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWICPalette_Impl: Sized { +pub trait IWICPalette_Impl: Sized + windows_core::IUnknownImpl { fn InitializePredefined(&self, epalettetype: WICBitmapPaletteType, faddtransparentcolor: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn InitializeCustom(&self, pcolors: *const u32, ccount: u32) -> windows_core::Result<()>; fn InitializeFromBitmap(&self, pisurface: Option<&IWICBitmapSource>, ccount: u32, faddtransparentcolor: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -3276,42 +2496,24 @@ pub trait IWICPalette_Impl: Sized { } impl windows_core::RuntimeName for IWICPalette {} impl IWICPalette_Vtbl { - pub const fn new() -> IWICPalette_Vtbl - where - Identity: IWICPalette_Impl, - { - unsafe extern "system" fn InitializePredefined(this: *mut core::ffi::c_void, epalettetype: WICBitmapPaletteType, faddtransparentcolor: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICPalette_Impl, - { + pub const fn new() -> IWICPalette_Vtbl { + unsafe extern "system" fn InitializePredefined(this: *mut core::ffi::c_void, epalettetype: WICBitmapPaletteType, faddtransparentcolor: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPalette_Impl::InitializePredefined(this, core::mem::transmute_copy(&epalettetype), core::mem::transmute_copy(&faddtransparentcolor)).into() } - unsafe extern "system" fn InitializeCustom(this: *mut core::ffi::c_void, pcolors: *const u32, ccount: u32) -> windows_core::HRESULT - where - Identity: IWICPalette_Impl, - { + unsafe extern "system" fn InitializeCustom(this: *mut core::ffi::c_void, pcolors: *const u32, ccount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPalette_Impl::InitializeCustom(this, core::mem::transmute_copy(&pcolors), core::mem::transmute_copy(&ccount)).into() } - unsafe extern "system" fn InitializeFromBitmap(this: *mut core::ffi::c_void, pisurface: *mut core::ffi::c_void, ccount: u32, faddtransparentcolor: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICPalette_Impl, - { + unsafe extern "system" fn InitializeFromBitmap(this: *mut core::ffi::c_void, pisurface: *mut core::ffi::c_void, ccount: u32, faddtransparentcolor: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPalette_Impl::InitializeFromBitmap(this, windows_core::from_raw_borrowed(&pisurface), core::mem::transmute_copy(&ccount), core::mem::transmute_copy(&faddtransparentcolor)).into() } - unsafe extern "system" fn InitializeFromPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICPalette_Impl, - { + unsafe extern "system" fn InitializeFromPalette(this: *mut core::ffi::c_void, pipalette: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPalette_Impl::InitializeFromPalette(this, windows_core::from_raw_borrowed(&pipalette)).into() } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pepalettetype: *mut WICBitmapPaletteType) -> windows_core::HRESULT - where - Identity: IWICPalette_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pepalettetype: *mut WICBitmapPaletteType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPalette_Impl::GetType(this) { Ok(ok__) => { @@ -3321,10 +2523,7 @@ impl IWICPalette_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorCount(this: *mut core::ffi::c_void, pccount: *mut u32) -> windows_core::HRESULT - where - Identity: IWICPalette_Impl, - { + unsafe extern "system" fn GetColorCount(this: *mut core::ffi::c_void, pccount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPalette_Impl::GetColorCount(this) { Ok(ok__) => { @@ -3334,17 +2533,11 @@ impl IWICPalette_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColors(this: *mut core::ffi::c_void, ccount: u32, pcolors: *mut u32, pcactualcolors: *mut u32) -> windows_core::HRESULT - where - Identity: IWICPalette_Impl, - { + unsafe extern "system" fn GetColors(this: *mut core::ffi::c_void, ccount: u32, pcolors: *mut u32, pcactualcolors: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPalette_Impl::GetColors(this, core::mem::transmute_copy(&ccount), core::mem::transmute_copy(&pcolors), core::mem::transmute_copy(&pcactualcolors)).into() } - unsafe extern "system" fn IsBlackWhite(this: *mut core::ffi::c_void, pfisblackwhite: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICPalette_Impl, - { + unsafe extern "system" fn IsBlackWhite(this: *mut core::ffi::c_void, pfisblackwhite: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPalette_Impl::IsBlackWhite(this) { Ok(ok__) => { @@ -3354,10 +2547,7 @@ impl IWICPalette_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsGrayscale(this: *mut core::ffi::c_void, pfisgrayscale: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICPalette_Impl, - { + unsafe extern "system" fn IsGrayscale(this: *mut core::ffi::c_void, pfisgrayscale: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPalette_Impl::IsGrayscale(this) { Ok(ok__) => { @@ -3367,10 +2557,7 @@ impl IWICPalette_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasAlpha(this: *mut core::ffi::c_void, pfhasalpha: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICPalette_Impl, - { + unsafe extern "system" fn HasAlpha(this: *mut core::ffi::c_void, pfhasalpha: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPalette_Impl::HasAlpha(this) { Ok(ok__) => { @@ -3407,21 +2594,12 @@ pub trait IWICPersistStream_Impl: Sized + super::super::System::Com::IPersistStr impl windows_core::RuntimeName for IWICPersistStream {} #[cfg(feature = "Win32_System_Com")] impl IWICPersistStream_Vtbl { - pub const fn new() -> IWICPersistStream_Vtbl - where - Identity: IWICPersistStream_Impl, - { - unsafe extern "system" fn LoadEx(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pguidpreferredvendor: *const windows_core::GUID, dwpersistoptions: u32) -> windows_core::HRESULT - where - Identity: IWICPersistStream_Impl, - { + pub const fn new() -> IWICPersistStream_Vtbl { + unsafe extern "system" fn LoadEx(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pguidpreferredvendor: *const windows_core::GUID, dwpersistoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPersistStream_Impl::LoadEx(this, windows_core::from_raw_borrowed(&pistream), core::mem::transmute_copy(&pguidpreferredvendor), core::mem::transmute_copy(&dwpersistoptions)).into() } - unsafe extern "system" fn SaveEx(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, dwpersistoptions: u32, fcleardirty: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICPersistStream_Impl, - { + unsafe extern "system" fn SaveEx(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, dwpersistoptions: u32, fcleardirty: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPersistStream_Impl::SaveEx(this, windows_core::from_raw_borrowed(&pistream), core::mem::transmute_copy(&dwpersistoptions), core::mem::transmute_copy(&fcleardirty)).into() } @@ -3444,14 +2622,8 @@ pub trait IWICPixelFormatInfo_Impl: Sized + IWICComponentInfo_Impl { } impl windows_core::RuntimeName for IWICPixelFormatInfo {} impl IWICPixelFormatInfo_Vtbl { - pub const fn new() -> IWICPixelFormatInfo_Vtbl - where - Identity: IWICPixelFormatInfo_Impl, - { - unsafe extern "system" fn GetFormatGUID(this: *mut core::ffi::c_void, pformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICPixelFormatInfo_Impl, - { + pub const fn new() -> IWICPixelFormatInfo_Vtbl { + unsafe extern "system" fn GetFormatGUID(this: *mut core::ffi::c_void, pformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPixelFormatInfo_Impl::GetFormatGUID(this) { Ok(ok__) => { @@ -3461,10 +2633,7 @@ impl IWICPixelFormatInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorContext(this: *mut core::ffi::c_void, ppicolorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICPixelFormatInfo_Impl, - { + unsafe extern "system" fn GetColorContext(this: *mut core::ffi::c_void, ppicolorcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPixelFormatInfo_Impl::GetColorContext(this) { Ok(ok__) => { @@ -3474,10 +2643,7 @@ impl IWICPixelFormatInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBitsPerPixel(this: *mut core::ffi::c_void, puibitsperpixel: *mut u32) -> windows_core::HRESULT - where - Identity: IWICPixelFormatInfo_Impl, - { + unsafe extern "system" fn GetBitsPerPixel(this: *mut core::ffi::c_void, puibitsperpixel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPixelFormatInfo_Impl::GetBitsPerPixel(this) { Ok(ok__) => { @@ -3487,10 +2653,7 @@ impl IWICPixelFormatInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, puichannelcount: *mut u32) -> windows_core::HRESULT - where - Identity: IWICPixelFormatInfo_Impl, - { + unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, puichannelcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPixelFormatInfo_Impl::GetChannelCount(this) { Ok(ok__) => { @@ -3500,10 +2663,7 @@ impl IWICPixelFormatInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChannelMask(this: *mut core::ffi::c_void, uichannelindex: u32, cbmaskbuffer: u32, pbmaskbuffer: *mut u8, pcbactual: *mut u32) -> windows_core::HRESULT - where - Identity: IWICPixelFormatInfo_Impl, - { + unsafe extern "system" fn GetChannelMask(this: *mut core::ffi::c_void, uichannelindex: u32, cbmaskbuffer: u32, pbmaskbuffer: *mut u8, pcbactual: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPixelFormatInfo_Impl::GetChannelMask(this, core::mem::transmute_copy(&uichannelindex), core::mem::transmute_copy(&cbmaskbuffer), core::mem::transmute_copy(&pbmaskbuffer), core::mem::transmute_copy(&pcbactual)).into() } @@ -3526,14 +2686,8 @@ pub trait IWICPixelFormatInfo2_Impl: Sized + IWICPixelFormatInfo_Impl { } impl windows_core::RuntimeName for IWICPixelFormatInfo2 {} impl IWICPixelFormatInfo2_Vtbl { - pub const fn new() -> IWICPixelFormatInfo2_Vtbl - where - Identity: IWICPixelFormatInfo2_Impl, - { - unsafe extern "system" fn SupportsTransparency(this: *mut core::ffi::c_void, pfsupportstransparency: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICPixelFormatInfo2_Impl, - { + pub const fn new() -> IWICPixelFormatInfo2_Vtbl { + unsafe extern "system" fn SupportsTransparency(this: *mut core::ffi::c_void, pfsupportstransparency: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPixelFormatInfo2_Impl::SupportsTransparency(this) { Ok(ok__) => { @@ -3543,10 +2697,7 @@ impl IWICPixelFormatInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumericRepresentation(this: *mut core::ffi::c_void, pnumericrepresentation: *mut WICPixelFormatNumericRepresentation) -> windows_core::HRESULT - where - Identity: IWICPixelFormatInfo2_Impl, - { + unsafe extern "system" fn GetNumericRepresentation(this: *mut core::ffi::c_void, pnumericrepresentation: *mut WICPixelFormatNumericRepresentation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPixelFormatInfo2_Impl::GetNumericRepresentation(this) { Ok(ok__) => { @@ -3566,27 +2717,18 @@ impl IWICPixelFormatInfo2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWICPlanarBitmapFrameEncode_Impl: Sized { +pub trait IWICPlanarBitmapFrameEncode_Impl: Sized + windows_core::IUnknownImpl { fn WritePixels(&self, linecount: u32, pplanes: *const WICBitmapPlane, cplanes: u32) -> windows_core::Result<()>; fn WriteSource(&self, ppplanes: *const Option, cplanes: u32, prcsource: *const WICRect) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWICPlanarBitmapFrameEncode {} impl IWICPlanarBitmapFrameEncode_Vtbl { - pub const fn new() -> IWICPlanarBitmapFrameEncode_Vtbl - where - Identity: IWICPlanarBitmapFrameEncode_Impl, - { - unsafe extern "system" fn WritePixels(this: *mut core::ffi::c_void, linecount: u32, pplanes: *const WICBitmapPlane, cplanes: u32) -> windows_core::HRESULT - where - Identity: IWICPlanarBitmapFrameEncode_Impl, - { + pub const fn new() -> IWICPlanarBitmapFrameEncode_Vtbl { + unsafe extern "system" fn WritePixels(this: *mut core::ffi::c_void, linecount: u32, pplanes: *const WICBitmapPlane, cplanes: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPlanarBitmapFrameEncode_Impl::WritePixels(this, core::mem::transmute_copy(&linecount), core::mem::transmute_copy(&pplanes), core::mem::transmute_copy(&cplanes)).into() } - unsafe extern "system" fn WriteSource(this: *mut core::ffi::c_void, ppplanes: *const *mut core::ffi::c_void, cplanes: u32, prcsource: *const WICRect) -> windows_core::HRESULT - where - Identity: IWICPlanarBitmapFrameEncode_Impl, - { + unsafe extern "system" fn WriteSource(this: *mut core::ffi::c_void, ppplanes: *const *mut core::ffi::c_void, cplanes: u32, prcsource: *const WICRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPlanarBitmapFrameEncode_Impl::WriteSource(this, core::mem::transmute_copy(&ppplanes), core::mem::transmute_copy(&cplanes), core::mem::transmute_copy(&prcsource)).into() } @@ -3600,27 +2742,18 @@ impl IWICPlanarBitmapFrameEncode_Vtbl { iid == &::IID } } -pub trait IWICPlanarBitmapSourceTransform_Impl: Sized { +pub trait IWICPlanarBitmapSourceTransform_Impl: Sized + windows_core::IUnknownImpl { fn DoesSupportTransform(&self, puiwidth: *mut u32, puiheight: *mut u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pguiddstformats: *const windows_core::GUID, pplanedescriptions: *mut WICBitmapPlaneDescription, cplanes: u32, pfissupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn CopyPixels(&self, prcsource: *const WICRect, uiwidth: u32, uiheight: u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pdstplanes: *const WICBitmapPlane, cplanes: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWICPlanarBitmapSourceTransform {} impl IWICPlanarBitmapSourceTransform_Vtbl { - pub const fn new() -> IWICPlanarBitmapSourceTransform_Vtbl - where - Identity: IWICPlanarBitmapSourceTransform_Impl, - { - unsafe extern "system" fn DoesSupportTransform(this: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pguiddstformats: *const windows_core::GUID, pplanedescriptions: *mut WICBitmapPlaneDescription, cplanes: u32, pfissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICPlanarBitmapSourceTransform_Impl, - { + pub const fn new() -> IWICPlanarBitmapSourceTransform_Vtbl { + unsafe extern "system" fn DoesSupportTransform(this: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pguiddstformats: *const windows_core::GUID, pplanedescriptions: *mut WICBitmapPlaneDescription, cplanes: u32, pfissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPlanarBitmapSourceTransform_Impl::DoesSupportTransform(this, core::mem::transmute_copy(&puiwidth), core::mem::transmute_copy(&puiheight), core::mem::transmute_copy(&dsttransform), core::mem::transmute_copy(&dstplanaroptions), core::mem::transmute_copy(&pguiddstformats), core::mem::transmute_copy(&pplanedescriptions), core::mem::transmute_copy(&cplanes), core::mem::transmute_copy(&pfissupported)).into() } - unsafe extern "system" fn CopyPixels(this: *mut core::ffi::c_void, prcsource: *const WICRect, uiwidth: u32, uiheight: u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pdstplanes: *const WICBitmapPlane, cplanes: u32) -> windows_core::HRESULT - where - Identity: IWICPlanarBitmapSourceTransform_Impl, - { + unsafe extern "system" fn CopyPixels(this: *mut core::ffi::c_void, prcsource: *const WICRect, uiwidth: u32, uiheight: u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pdstplanes: *const WICBitmapPlane, cplanes: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPlanarBitmapSourceTransform_Impl::CopyPixels(this, core::mem::transmute_copy(&prcsource), core::mem::transmute_copy(&uiwidth), core::mem::transmute_copy(&uiheight), core::mem::transmute_copy(&dsttransform), core::mem::transmute_copy(&dstplanaroptions), core::mem::transmute_copy(&pdstplanes), core::mem::transmute_copy(&cplanes)).into() } @@ -3640,21 +2773,12 @@ pub trait IWICPlanarFormatConverter_Impl: Sized + IWICBitmapSource_Impl { } impl windows_core::RuntimeName for IWICPlanarFormatConverter {} impl IWICPlanarFormatConverter_Vtbl { - pub const fn new() -> IWICPlanarFormatConverter_Vtbl - where - Identity: IWICPlanarFormatConverter_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, ppplanes: *const *mut core::ffi::c_void, cplanes: u32, dstformat: *const windows_core::GUID, dither: WICBitmapDitherType, pipalette: *mut core::ffi::c_void, alphathresholdpercent: f64, palettetranslate: WICBitmapPaletteType) -> windows_core::HRESULT - where - Identity: IWICPlanarFormatConverter_Impl, - { + pub const fn new() -> IWICPlanarFormatConverter_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, ppplanes: *const *mut core::ffi::c_void, cplanes: u32, dstformat: *const windows_core::GUID, dither: WICBitmapDitherType, pipalette: *mut core::ffi::c_void, alphathresholdpercent: f64, palettetranslate: WICBitmapPaletteType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPlanarFormatConverter_Impl::Initialize(this, core::mem::transmute_copy(&ppplanes), core::mem::transmute_copy(&cplanes), core::mem::transmute_copy(&dstformat), core::mem::transmute_copy(&dither), windows_core::from_raw_borrowed(&pipalette), core::mem::transmute_copy(&alphathresholdpercent), core::mem::transmute_copy(&palettetranslate)).into() } - unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, psrcpixelformats: *const windows_core::GUID, csrcplanes: u32, dstpixelformat: *const windows_core::GUID, pfcanconvert: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWICPlanarFormatConverter_Impl, - { + unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, psrcpixelformats: *const windows_core::GUID, csrcplanes: u32, dstpixelformat: *const windows_core::GUID, pfcanconvert: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPlanarFormatConverter_Impl::CanConvert(this, core::mem::transmute_copy(&psrcpixelformats), core::mem::transmute_copy(&csrcplanes), core::mem::transmute_copy(&dstpixelformat)) { Ok(ok__) => { @@ -3670,19 +2794,13 @@ impl IWICPlanarFormatConverter_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWICProgressCallback_Impl: Sized { +pub trait IWICProgressCallback_Impl: Sized + windows_core::IUnknownImpl { fn Notify(&self, uframenum: u32, operation: WICProgressOperation, dblprogress: f64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWICProgressCallback {} impl IWICProgressCallback_Vtbl { - pub const fn new() -> IWICProgressCallback_Vtbl - where - Identity: IWICProgressCallback_Impl, - { - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, uframenum: u32, operation: WICProgressOperation, dblprogress: f64) -> windows_core::HRESULT - where - Identity: IWICProgressCallback_Impl, - { + pub const fn new() -> IWICProgressCallback_Vtbl { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, uframenum: u32, operation: WICProgressOperation, dblprogress: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICProgressCallback_Impl::Notify(this, core::mem::transmute_copy(&uframenum), core::mem::transmute_copy(&operation), core::mem::transmute_copy(&dblprogress)).into() } @@ -3692,21 +2810,15 @@ impl IWICProgressCallback_Vtbl { iid == &::IID } } -pub trait IWICProgressiveLevelControl_Impl: Sized { +pub trait IWICProgressiveLevelControl_Impl: Sized + windows_core::IUnknownImpl { fn GetLevelCount(&self) -> windows_core::Result; fn GetCurrentLevel(&self) -> windows_core::Result; fn SetCurrentLevel(&self, nlevel: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWICProgressiveLevelControl {} impl IWICProgressiveLevelControl_Vtbl { - pub const fn new() -> IWICProgressiveLevelControl_Vtbl - where - Identity: IWICProgressiveLevelControl_Impl, - { - unsafe extern "system" fn GetLevelCount(this: *mut core::ffi::c_void, pclevels: *mut u32) -> windows_core::HRESULT - where - Identity: IWICProgressiveLevelControl_Impl, - { + pub const fn new() -> IWICProgressiveLevelControl_Vtbl { + unsafe extern "system" fn GetLevelCount(this: *mut core::ffi::c_void, pclevels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICProgressiveLevelControl_Impl::GetLevelCount(this) { Ok(ok__) => { @@ -3716,10 +2828,7 @@ impl IWICProgressiveLevelControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentLevel(this: *mut core::ffi::c_void, pnlevel: *mut u32) -> windows_core::HRESULT - where - Identity: IWICProgressiveLevelControl_Impl, - { + unsafe extern "system" fn GetCurrentLevel(this: *mut core::ffi::c_void, pnlevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICProgressiveLevelControl_Impl::GetCurrentLevel(this) { Ok(ok__) => { @@ -3729,10 +2838,7 @@ impl IWICProgressiveLevelControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentLevel(this: *mut core::ffi::c_void, nlevel: u32) -> windows_core::HRESULT - where - Identity: IWICProgressiveLevelControl_Impl, - { + unsafe extern "system" fn SetCurrentLevel(this: *mut core::ffi::c_void, nlevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICProgressiveLevelControl_Impl::SetCurrentLevel(this, core::mem::transmute_copy(&nlevel)).into() } @@ -3758,35 +2864,20 @@ pub trait IWICStream_Impl: Sized + super::super::System::Com::IStream_Impl { impl windows_core::RuntimeName for IWICStream {} #[cfg(feature = "Win32_System_Com")] impl IWICStream_Vtbl { - pub const fn new() -> IWICStream_Vtbl - where - Identity: IWICStream_Impl, - { - unsafe extern "system" fn InitializeFromIStream(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICStream_Impl, - { + pub const fn new() -> IWICStream_Vtbl { + unsafe extern "system" fn InitializeFromIStream(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICStream_Impl::InitializeFromIStream(this, windows_core::from_raw_borrowed(&pistream)).into() } - unsafe extern "system" fn InitializeFromFilename(this: *mut core::ffi::c_void, wzfilename: windows_core::PCWSTR, dwdesiredaccess: u32) -> windows_core::HRESULT - where - Identity: IWICStream_Impl, - { + unsafe extern "system" fn InitializeFromFilename(this: *mut core::ffi::c_void, wzfilename: windows_core::PCWSTR, dwdesiredaccess: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICStream_Impl::InitializeFromFilename(this, core::mem::transmute(&wzfilename), core::mem::transmute_copy(&dwdesiredaccess)).into() } - unsafe extern "system" fn InitializeFromMemory(this: *mut core::ffi::c_void, pbbuffer: *const u8, cbbuffersize: u32) -> windows_core::HRESULT - where - Identity: IWICStream_Impl, - { + unsafe extern "system" fn InitializeFromMemory(this: *mut core::ffi::c_void, pbbuffer: *const u8, cbbuffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICStream_Impl::InitializeFromMemory(this, core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&cbbuffersize)).into() } - unsafe extern "system" fn InitializeFromIStreamRegion(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, uloffset: u64, ulmaxsize: u64) -> windows_core::HRESULT - where - Identity: IWICStream_Impl, - { + unsafe extern "system" fn InitializeFromIStreamRegion(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, uloffset: u64, ulmaxsize: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICStream_Impl::InitializeFromIStreamRegion(this, windows_core::from_raw_borrowed(&pistream), core::mem::transmute_copy(&uloffset), core::mem::transmute_copy(&ulmaxsize)).into() } @@ -3803,7 +2894,7 @@ impl IWICStream_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWICStreamProvider_Impl: Sized { +pub trait IWICStreamProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetStream(&self) -> windows_core::Result; fn GetPersistOptions(&self) -> windows_core::Result; fn GetPreferredVendorGUID(&self) -> windows_core::Result; @@ -3813,14 +2904,8 @@ pub trait IWICStreamProvider_Impl: Sized { impl windows_core::RuntimeName for IWICStreamProvider {} #[cfg(feature = "Win32_System_Com")] impl IWICStreamProvider_Vtbl { - pub const fn new() -> IWICStreamProvider_Vtbl - where - Identity: IWICStreamProvider_Impl, - { - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICStreamProvider_Impl, - { + pub const fn new() -> IWICStreamProvider_Vtbl { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICStreamProvider_Impl::GetStream(this) { Ok(ok__) => { @@ -3830,10 +2915,7 @@ impl IWICStreamProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPersistOptions(this: *mut core::ffi::c_void, pdwpersistoptions: *mut u32) -> windows_core::HRESULT - where - Identity: IWICStreamProvider_Impl, - { + unsafe extern "system" fn GetPersistOptions(this: *mut core::ffi::c_void, pdwpersistoptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICStreamProvider_Impl::GetPersistOptions(this) { Ok(ok__) => { @@ -3843,10 +2925,7 @@ impl IWICStreamProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreferredVendorGUID(this: *mut core::ffi::c_void, pguidpreferredvendor: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWICStreamProvider_Impl, - { + unsafe extern "system" fn GetPreferredVendorGUID(this: *mut core::ffi::c_void, pguidpreferredvendor: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICStreamProvider_Impl::GetPreferredVendorGUID(this) { Ok(ok__) => { @@ -3856,10 +2935,7 @@ impl IWICStreamProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RefreshStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWICStreamProvider_Impl, - { + unsafe extern "system" fn RefreshStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICStreamProvider_Impl::RefreshStream(this).into() } 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 095c9aa950..e53023d1c4 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs @@ -3,14 +3,8 @@ pub trait IAsyncGetSendNotificationCookie_Impl: Sized + IPrintAsyncCookie_Impl { } impl windows_core::RuntimeName for IAsyncGetSendNotificationCookie {} impl IAsyncGetSendNotificationCookie_Vtbl { - pub const fn new() -> IAsyncGetSendNotificationCookie_Vtbl - where - Identity: IAsyncGetSendNotificationCookie_Impl, - { - unsafe extern "system" fn FinishAsyncCallWithData(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAsyncGetSendNotificationCookie_Impl, - { + pub const fn new() -> IAsyncGetSendNotificationCookie_Vtbl { + unsafe extern "system" fn FinishAsyncCallWithData(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncGetSendNotificationCookie_Impl::FinishAsyncCallWithData(this, windows_core::from_raw_borrowed(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -20,35 +14,23 @@ impl IAsyncGetSendNotificationCookie_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAsyncGetSrvReferralCookie_Impl: Sized { +pub trait IAsyncGetSrvReferralCookie_Impl: Sized + windows_core::IUnknownImpl { fn FinishAsyncCall(&self, param0: windows_core::HRESULT) -> windows_core::Result<()>; fn CancelAsyncCall(&self, param0: windows_core::HRESULT) -> windows_core::Result<()>; fn FinishAsyncCallWithData(&self, param0: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAsyncGetSrvReferralCookie {} impl IAsyncGetSrvReferralCookie_Vtbl { - pub const fn new() -> IAsyncGetSrvReferralCookie_Vtbl - where - Identity: IAsyncGetSrvReferralCookie_Impl, - { - unsafe extern "system" fn FinishAsyncCall(this: *mut core::ffi::c_void, param0: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IAsyncGetSrvReferralCookie_Impl, - { + pub const fn new() -> IAsyncGetSrvReferralCookie_Vtbl { + unsafe extern "system" fn FinishAsyncCall(this: *mut core::ffi::c_void, param0: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncGetSrvReferralCookie_Impl::FinishAsyncCall(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn CancelAsyncCall(this: *mut core::ffi::c_void, param0: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IAsyncGetSrvReferralCookie_Impl, - { + unsafe extern "system" fn CancelAsyncCall(this: *mut core::ffi::c_void, param0: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncGetSrvReferralCookie_Impl::CancelAsyncCall(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn FinishAsyncCallWithData(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAsyncGetSrvReferralCookie_Impl, - { + unsafe extern "system" fn FinishAsyncCallWithData(this: *mut core::ffi::c_void, param0: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncGetSrvReferralCookie_Impl::FinishAsyncCallWithData(this, core::mem::transmute(¶m0)).into() } @@ -72,42 +54,24 @@ pub trait IBidiAsyncNotifyChannel_Impl: Sized + IPrintAsyncNotifyChannel_Impl { } impl windows_core::RuntimeName for IBidiAsyncNotifyChannel {} impl IBidiAsyncNotifyChannel_Vtbl { - pub const fn new() -> IBidiAsyncNotifyChannel_Vtbl - where - Identity: IBidiAsyncNotifyChannel_Impl, - { - unsafe extern "system" fn CreateNotificationChannel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiAsyncNotifyChannel_Impl, - { + pub const fn new() -> IBidiAsyncNotifyChannel_Vtbl { + unsafe extern "system" fn CreateNotificationChannel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiAsyncNotifyChannel_Impl::CreateNotificationChannel(this).into() } - unsafe extern "system" fn GetPrintName(this: *mut core::ffi::c_void, param0: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiAsyncNotifyChannel_Impl, - { + unsafe extern "system" fn GetPrintName(this: *mut core::ffi::c_void, param0: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiAsyncNotifyChannel_Impl::GetPrintName(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn GetChannelNotificationType(this: *mut core::ffi::c_void, param0: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiAsyncNotifyChannel_Impl, - { + unsafe extern "system" fn GetChannelNotificationType(this: *mut core::ffi::c_void, param0: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiAsyncNotifyChannel_Impl::GetChannelNotificationType(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn AsyncGetNotificationSendResponse(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiAsyncNotifyChannel_Impl, - { + unsafe extern "system" fn AsyncGetNotificationSendResponse(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiAsyncNotifyChannel_Impl::AsyncGetNotificationSendResponse(this, windows_core::from_raw_borrowed(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } - unsafe extern "system" fn AsyncCloseChannel(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiAsyncNotifyChannel_Impl, - { + unsafe extern "system" fn AsyncCloseChannel(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiAsyncNotifyChannel_Impl::AsyncCloseChannel(this, windows_core::from_raw_borrowed(¶m0), windows_core::from_raw_borrowed(¶m1)).into() } @@ -124,7 +88,7 @@ impl IBidiAsyncNotifyChannel_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IBidiRequest_Impl: Sized { +pub trait IBidiRequest_Impl: Sized + windows_core::IUnknownImpl { fn SetSchema(&self, pszschema: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetInputData(&self, dwtype: u32, pdata: *const u8, usize: u32) -> windows_core::Result<()>; fn GetResult(&self) -> windows_core::Result; @@ -133,28 +97,16 @@ pub trait IBidiRequest_Impl: Sized { } impl windows_core::RuntimeName for IBidiRequest {} impl IBidiRequest_Vtbl { - pub const fn new() -> IBidiRequest_Vtbl - where - Identity: IBidiRequest_Impl, - { - unsafe extern "system" fn SetSchema(this: *mut core::ffi::c_void, pszschema: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBidiRequest_Impl, - { + pub const fn new() -> IBidiRequest_Vtbl { + unsafe extern "system" fn SetSchema(this: *mut core::ffi::c_void, pszschema: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiRequest_Impl::SetSchema(this, core::mem::transmute(&pszschema)).into() } - unsafe extern "system" fn SetInputData(this: *mut core::ffi::c_void, dwtype: u32, pdata: *const u8, usize: u32) -> windows_core::HRESULT - where - Identity: IBidiRequest_Impl, - { + unsafe extern "system" fn SetInputData(this: *mut core::ffi::c_void, dwtype: u32, pdata: *const u8, usize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiRequest_Impl::SetInputData(this, core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&usize)).into() } - unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, phr: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IBidiRequest_Impl, - { + unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, phr: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBidiRequest_Impl::GetResult(this) { Ok(ok__) => { @@ -164,17 +116,11 @@ impl IBidiRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputData(this: *mut core::ffi::c_void, dwindex: u32, ppszschema: *mut windows_core::PWSTR, pdwtype: *mut u32, ppdata: *mut *mut u8, usize: *mut u32) -> windows_core::HRESULT - where - Identity: IBidiRequest_Impl, - { + unsafe extern "system" fn GetOutputData(this: *mut core::ffi::c_void, dwindex: u32, ppszschema: *mut windows_core::PWSTR, pdwtype: *mut u32, ppdata: *mut *mut u8, usize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiRequest_Impl::GetOutputData(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&ppszschema), core::mem::transmute_copy(&pdwtype), core::mem::transmute_copy(&ppdata), core::mem::transmute_copy(&usize)).into() } - unsafe extern "system" fn GetEnumCount(this: *mut core::ffi::c_void, pdwtotal: *mut u32) -> windows_core::HRESULT - where - Identity: IBidiRequest_Impl, - { + unsafe extern "system" fn GetEnumCount(this: *mut core::ffi::c_void, pdwtotal: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBidiRequest_Impl::GetEnumCount(this) { Ok(ok__) => { @@ -198,7 +144,7 @@ impl IBidiRequest_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IBidiRequestContainer_Impl: Sized { +pub trait IBidiRequestContainer_Impl: Sized + windows_core::IUnknownImpl { fn AddRequest(&self, prequest: Option<&IBidiRequest>) -> windows_core::Result<()>; fn GetEnumObject(&self) -> windows_core::Result; fn GetRequestCount(&self) -> windows_core::Result; @@ -207,21 +153,12 @@ pub trait IBidiRequestContainer_Impl: Sized { impl windows_core::RuntimeName for IBidiRequestContainer {} #[cfg(feature = "Win32_System_Com")] impl IBidiRequestContainer_Vtbl { - pub const fn new() -> IBidiRequestContainer_Vtbl - where - Identity: IBidiRequestContainer_Impl, - { - unsafe extern "system" fn AddRequest(this: *mut core::ffi::c_void, prequest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiRequestContainer_Impl, - { + pub const fn new() -> IBidiRequestContainer_Vtbl { + unsafe extern "system" fn AddRequest(this: *mut core::ffi::c_void, prequest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiRequestContainer_Impl::AddRequest(this, windows_core::from_raw_borrowed(&prequest)).into() } - unsafe extern "system" fn GetEnumObject(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiRequestContainer_Impl, - { + unsafe extern "system" fn GetEnumObject(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBidiRequestContainer_Impl::GetEnumObject(this) { Ok(ok__) => { @@ -231,10 +168,7 @@ impl IBidiRequestContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRequestCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IBidiRequestContainer_Impl, - { + unsafe extern "system" fn GetRequestCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBidiRequestContainer_Impl::GetRequestCount(this) { Ok(ok__) => { @@ -255,7 +189,7 @@ impl IBidiRequestContainer_Vtbl { iid == &::IID } } -pub trait IBidiSpl_Impl: Sized { +pub trait IBidiSpl_Impl: Sized + windows_core::IUnknownImpl { fn BindDevice(&self, pszdevicename: &windows_core::PCWSTR, dwaccess: u32) -> windows_core::Result<()>; fn UnbindDevice(&self) -> windows_core::Result<()>; fn SendRecv(&self, pszaction: &windows_core::PCWSTR, prequest: Option<&IBidiRequest>) -> windows_core::Result<()>; @@ -263,35 +197,20 @@ pub trait IBidiSpl_Impl: Sized { } impl windows_core::RuntimeName for IBidiSpl {} impl IBidiSpl_Vtbl { - pub const fn new() -> IBidiSpl_Vtbl - where - Identity: IBidiSpl_Impl, - { - unsafe extern "system" fn BindDevice(this: *mut core::ffi::c_void, pszdevicename: windows_core::PCWSTR, dwaccess: u32) -> windows_core::HRESULT - where - Identity: IBidiSpl_Impl, - { + pub const fn new() -> IBidiSpl_Vtbl { + unsafe extern "system" fn BindDevice(this: *mut core::ffi::c_void, pszdevicename: windows_core::PCWSTR, dwaccess: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiSpl_Impl::BindDevice(this, core::mem::transmute(&pszdevicename), core::mem::transmute_copy(&dwaccess)).into() } - unsafe extern "system" fn UnbindDevice(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiSpl_Impl, - { + unsafe extern "system" fn UnbindDevice(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiSpl_Impl::UnbindDevice(this).into() } - unsafe extern "system" fn SendRecv(this: *mut core::ffi::c_void, pszaction: windows_core::PCWSTR, prequest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiSpl_Impl, - { + unsafe extern "system" fn SendRecv(this: *mut core::ffi::c_void, pszaction: windows_core::PCWSTR, prequest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiSpl_Impl::SendRecv(this, core::mem::transmute(&pszaction), windows_core::from_raw_borrowed(&prequest)).into() } - unsafe extern "system" fn MultiSendRecv(this: *mut core::ffi::c_void, pszaction: windows_core::PCWSTR, prequestcontainer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiSpl_Impl, - { + unsafe extern "system" fn MultiSendRecv(this: *mut core::ffi::c_void, pszaction: windows_core::PCWSTR, prequestcontainer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiSpl_Impl::MultiSendRecv(this, core::mem::transmute(&pszaction), windows_core::from_raw_borrowed(&prequestcontainer)).into() } @@ -308,7 +227,7 @@ impl IBidiSpl_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IBidiSpl2_Impl: Sized { +pub trait IBidiSpl2_Impl: Sized + windows_core::IUnknownImpl { fn BindDevice(&self, pszdevicename: &windows_core::PCWSTR, dwaccess: u32) -> windows_core::Result<()>; fn UnbindDevice(&self) -> windows_core::Result<()>; fn SendRecvXMLString(&self, bstrrequest: &windows_core::BSTR) -> windows_core::Result; @@ -318,28 +237,16 @@ pub trait IBidiSpl2_Impl: Sized { impl windows_core::RuntimeName for IBidiSpl2 {} #[cfg(feature = "Win32_System_Com")] impl IBidiSpl2_Vtbl { - pub const fn new() -> IBidiSpl2_Vtbl - where - Identity: IBidiSpl2_Impl, - { - unsafe extern "system" fn BindDevice(this: *mut core::ffi::c_void, pszdevicename: windows_core::PCWSTR, dwaccess: u32) -> windows_core::HRESULT - where - Identity: IBidiSpl2_Impl, - { + pub const fn new() -> IBidiSpl2_Vtbl { + unsafe extern "system" fn BindDevice(this: *mut core::ffi::c_void, pszdevicename: windows_core::PCWSTR, dwaccess: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiSpl2_Impl::BindDevice(this, core::mem::transmute(&pszdevicename), core::mem::transmute_copy(&dwaccess)).into() } - unsafe extern "system" fn UnbindDevice(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiSpl2_Impl, - { + unsafe extern "system" fn UnbindDevice(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBidiSpl2_Impl::UnbindDevice(this).into() } - unsafe extern "system" fn SendRecvXMLString(this: *mut core::ffi::c_void, bstrrequest: core::mem::MaybeUninit, pbstrresponse: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBidiSpl2_Impl, - { + unsafe extern "system" fn SendRecvXMLString(this: *mut core::ffi::c_void, bstrrequest: core::mem::MaybeUninit, pbstrresponse: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBidiSpl2_Impl::SendRecvXMLString(this, core::mem::transmute(&bstrrequest)) { Ok(ok__) => { @@ -349,10 +256,7 @@ impl IBidiSpl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendRecvXMLStream(this: *mut core::ffi::c_void, psrequest: *mut core::ffi::c_void, ppsresponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBidiSpl2_Impl, - { + unsafe extern "system" fn SendRecvXMLStream(this: *mut core::ffi::c_void, psrequest: *mut core::ffi::c_void, ppsresponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBidiSpl2_Impl::SendRecvXMLStream(this, windows_core::from_raw_borrowed(&psrequest)) { Ok(ok__) => { @@ -374,21 +278,15 @@ impl IBidiSpl2_Vtbl { iid == &::IID } } -pub trait IFixedDocument_Impl: Sized { +pub trait IFixedDocument_Impl: Sized + windows_core::IUnknownImpl { fn GetUri(&self) -> windows_core::Result; fn GetPrintTicket(&self) -> windows_core::Result; fn SetPrintTicket(&self, pprintticket: Option<&IPartPrintTicket>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFixedDocument {} impl IFixedDocument_Vtbl { - pub const fn new() -> IFixedDocument_Vtbl - where - Identity: IFixedDocument_Impl, - { - unsafe extern "system" fn GetUri(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFixedDocument_Impl, - { + pub const fn new() -> IFixedDocument_Vtbl { + unsafe extern "system" fn GetUri(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFixedDocument_Impl::GetUri(this) { Ok(ok__) => { @@ -398,10 +296,7 @@ impl IFixedDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrintTicket(this: *mut core::ffi::c_void, ppprintticket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFixedDocument_Impl, - { + unsafe extern "system" fn GetPrintTicket(this: *mut core::ffi::c_void, ppprintticket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFixedDocument_Impl::GetPrintTicket(this) { Ok(ok__) => { @@ -411,10 +306,7 @@ impl IFixedDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintTicket(this: *mut core::ffi::c_void, pprintticket: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFixedDocument_Impl, - { + unsafe extern "system" fn SetPrintTicket(this: *mut core::ffi::c_void, pprintticket: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFixedDocument_Impl::SetPrintTicket(this, windows_core::from_raw_borrowed(&pprintticket)).into() } @@ -429,21 +321,15 @@ impl IFixedDocument_Vtbl { iid == &::IID } } -pub trait IFixedDocumentSequence_Impl: Sized { +pub trait IFixedDocumentSequence_Impl: Sized + windows_core::IUnknownImpl { fn GetUri(&self) -> windows_core::Result; fn GetPrintTicket(&self) -> windows_core::Result; fn SetPrintTicket(&self, pprintticket: Option<&IPartPrintTicket>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFixedDocumentSequence {} impl IFixedDocumentSequence_Vtbl { - pub const fn new() -> IFixedDocumentSequence_Vtbl - where - Identity: IFixedDocumentSequence_Impl, - { - unsafe extern "system" fn GetUri(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFixedDocumentSequence_Impl, - { + pub const fn new() -> IFixedDocumentSequence_Vtbl { + unsafe extern "system" fn GetUri(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFixedDocumentSequence_Impl::GetUri(this) { Ok(ok__) => { @@ -453,10 +339,7 @@ impl IFixedDocumentSequence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrintTicket(this: *mut core::ffi::c_void, ppprintticket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFixedDocumentSequence_Impl, - { + unsafe extern "system" fn GetPrintTicket(this: *mut core::ffi::c_void, ppprintticket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFixedDocumentSequence_Impl::GetPrintTicket(this) { Ok(ok__) => { @@ -466,10 +349,7 @@ impl IFixedDocumentSequence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintTicket(this: *mut core::ffi::c_void, pprintticket: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFixedDocumentSequence_Impl, - { + unsafe extern "system" fn SetPrintTicket(this: *mut core::ffi::c_void, pprintticket: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFixedDocumentSequence_Impl::SetPrintTicket(this, windows_core::from_raw_borrowed(&pprintticket)).into() } @@ -495,14 +375,8 @@ pub trait IFixedPage_Impl: Sized + IPartBase_Impl { } impl windows_core::RuntimeName for IFixedPage {} impl IFixedPage_Vtbl { - pub const fn new() -> IFixedPage_Vtbl - where - Identity: IFixedPage_Impl, - { - unsafe extern "system" fn GetPrintTicket(this: *mut core::ffi::c_void, ppprintticket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFixedPage_Impl, - { + pub const fn new() -> IFixedPage_Vtbl { + unsafe extern "system" fn GetPrintTicket(this: *mut core::ffi::c_void, ppprintticket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFixedPage_Impl::GetPrintTicket(this) { Ok(ok__) => { @@ -512,10 +386,7 @@ impl IFixedPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPagePart(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFixedPage_Impl, - { + unsafe extern "system" fn GetPagePart(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFixedPage_Impl::GetPagePart(this, core::mem::transmute(&uri)) { Ok(ok__) => { @@ -525,10 +396,7 @@ impl IFixedPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWriteStream(this: *mut core::ffi::c_void, ppwritestream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFixedPage_Impl, - { + unsafe extern "system" fn GetWriteStream(this: *mut core::ffi::c_void, ppwritestream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFixedPage_Impl::GetWriteStream(this) { Ok(ok__) => { @@ -538,31 +406,19 @@ impl IFixedPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintTicket(this: *mut core::ffi::c_void, ppprintticket: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFixedPage_Impl, - { + unsafe extern "system" fn SetPrintTicket(this: *mut core::ffi::c_void, ppprintticket: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFixedPage_Impl::SetPrintTicket(this, windows_core::from_raw_borrowed(&ppprintticket)).into() } - unsafe extern "system" fn SetPagePart(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFixedPage_Impl, - { + unsafe extern "system" fn SetPagePart(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFixedPage_Impl::SetPagePart(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn DeleteResource(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFixedPage_Impl, - { + unsafe extern "system" fn DeleteResource(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFixedPage_Impl::DeleteResource(this, core::mem::transmute(&uri)).into() } - unsafe extern "system" fn GetXpsPartIterator(this: *mut core::ffi::c_void, pxpspartit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFixedPage_Impl, - { + unsafe extern "system" fn GetXpsPartIterator(this: *mut core::ffi::c_void, pxpspartit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFixedPage_Impl::GetXpsPartIterator(this) { Ok(ok__) => { @@ -595,14 +451,8 @@ pub trait IImgCreateErrorInfo_Impl: Sized + super::super::System::Ole::ICreateEr impl windows_core::RuntimeName for IImgCreateErrorInfo {} #[cfg(feature = "Win32_System_Ole")] impl IImgCreateErrorInfo_Vtbl { - pub const fn new() -> IImgCreateErrorInfo_Vtbl - where - Identity: IImgCreateErrorInfo_Impl, - { - unsafe extern "system" fn AttachToErrorInfo(this: *mut core::ffi::c_void, perrorinfo: *mut ImgErrorInfo) -> windows_core::HRESULT - where - Identity: IImgCreateErrorInfo_Impl, - { + pub const fn new() -> IImgCreateErrorInfo_Vtbl { + unsafe extern "system" fn AttachToErrorInfo(this: *mut core::ffi::c_void, perrorinfo: *mut ImgErrorInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImgCreateErrorInfo_Impl::AttachToErrorInfo(this, core::mem::transmute_copy(&perrorinfo)).into() } @@ -626,14 +476,8 @@ pub trait IImgErrorInfo_Impl: Sized + super::super::System::Com::IErrorInfo_Impl impl windows_core::RuntimeName for IImgErrorInfo {} #[cfg(feature = "Win32_System_Com")] impl IImgErrorInfo_Vtbl { - pub const fn new() -> IImgErrorInfo_Vtbl - where - Identity: IImgErrorInfo_Impl, - { - unsafe extern "system" fn GetDeveloperDescription(this: *mut core::ffi::c_void, pbstrdevdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IImgErrorInfo_Impl, - { + pub const fn new() -> IImgErrorInfo_Vtbl { + unsafe extern "system" fn GetDeveloperDescription(this: *mut core::ffi::c_void, pbstrdevdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImgErrorInfo_Impl::GetDeveloperDescription(this) { Ok(ok__) => { @@ -643,10 +487,7 @@ impl IImgErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserErrorId(this: *mut core::ffi::c_void, perrorid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IImgErrorInfo_Impl, - { + unsafe extern "system" fn GetUserErrorId(this: *mut core::ffi::c_void, perrorid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImgErrorInfo_Impl::GetUserErrorId(this) { Ok(ok__) => { @@ -656,10 +497,7 @@ impl IImgErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserParameterCount(this: *mut core::ffi::c_void, pcuserparams: *mut u32) -> windows_core::HRESULT - where - Identity: IImgErrorInfo_Impl, - { + unsafe extern "system" fn GetUserParameterCount(this: *mut core::ffi::c_void, pcuserparams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImgErrorInfo_Impl::GetUserParameterCount(this) { Ok(ok__) => { @@ -669,10 +507,7 @@ impl IImgErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserParameter(this: *mut core::ffi::c_void, cparam: u32, pbstrparam: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IImgErrorInfo_Impl, - { + unsafe extern "system" fn GetUserParameter(this: *mut core::ffi::c_void, cparam: u32, pbstrparam: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImgErrorInfo_Impl::GetUserParameter(this, core::mem::transmute_copy(&cparam)) { Ok(ok__) => { @@ -682,10 +517,7 @@ impl IImgErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserFallback(this: *mut core::ffi::c_void, pbstrfallback: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IImgErrorInfo_Impl, - { + unsafe extern "system" fn GetUserFallback(this: *mut core::ffi::c_void, pbstrfallback: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImgErrorInfo_Impl::GetUserFallback(this) { Ok(ok__) => { @@ -695,10 +527,7 @@ impl IImgErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExceptionId(this: *mut core::ffi::c_void, pexceptionid: *mut u32) -> windows_core::HRESULT - where - Identity: IImgErrorInfo_Impl, - { + unsafe extern "system" fn GetExceptionId(this: *mut core::ffi::c_void, pexceptionid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImgErrorInfo_Impl::GetExceptionId(this) { Ok(ok__) => { @@ -708,10 +537,7 @@ impl IImgErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DetachErrorInfo(this: *mut core::ffi::c_void, perrorinfo: *mut ImgErrorInfo) -> windows_core::HRESULT - where - Identity: IImgErrorInfo_Impl, - { + unsafe extern "system" fn DetachErrorInfo(this: *mut core::ffi::c_void, perrorinfo: *mut ImgErrorInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImgErrorInfo_Impl::DetachErrorInfo(this, core::mem::transmute_copy(&perrorinfo)).into() } @@ -730,27 +556,18 @@ impl IImgErrorInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IInterFilterCommunicator_Impl: Sized { +pub trait IInterFilterCommunicator_Impl: Sized + windows_core::IUnknownImpl { fn RequestReader(&self, ppireader: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RequestWriter(&self, ppiwriter: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInterFilterCommunicator {} impl IInterFilterCommunicator_Vtbl { - pub const fn new() -> IInterFilterCommunicator_Vtbl - where - Identity: IInterFilterCommunicator_Impl, - { - unsafe extern "system" fn RequestReader(this: *mut core::ffi::c_void, ppireader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInterFilterCommunicator_Impl, - { + pub const fn new() -> IInterFilterCommunicator_Vtbl { + unsafe extern "system" fn RequestReader(this: *mut core::ffi::c_void, ppireader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInterFilterCommunicator_Impl::RequestReader(this, core::mem::transmute_copy(&ppireader)).into() } - unsafe extern "system" fn RequestWriter(this: *mut core::ffi::c_void, ppiwriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInterFilterCommunicator_Impl, - { + unsafe extern "system" fn RequestWriter(this: *mut core::ffi::c_void, ppiwriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInterFilterCommunicator_Impl::RequestWriter(this, core::mem::transmute_copy(&ppiwriter)).into() } @@ -764,7 +581,7 @@ impl IInterFilterCommunicator_Vtbl { iid == &::IID } } -pub trait IPartBase_Impl: Sized { +pub trait IPartBase_Impl: Sized + windows_core::IUnknownImpl { fn GetUri(&self) -> windows_core::Result; fn GetStream(&self) -> windows_core::Result; fn GetPartCompression(&self) -> windows_core::Result; @@ -772,14 +589,8 @@ pub trait IPartBase_Impl: Sized { } impl windows_core::RuntimeName for IPartBase {} impl IPartBase_Vtbl { - pub const fn new() -> IPartBase_Vtbl - where - Identity: IPartBase_Impl, - { - unsafe extern "system" fn GetUri(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPartBase_Impl, - { + pub const fn new() -> IPartBase_Vtbl { + unsafe extern "system" fn GetUri(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPartBase_Impl::GetUri(this) { Ok(ok__) => { @@ -789,10 +600,7 @@ impl IPartBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPartBase_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPartBase_Impl::GetStream(this) { Ok(ok__) => { @@ -802,10 +610,7 @@ impl IPartBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPartCompression(this: *mut core::ffi::c_void, pcompression: *mut EXpsCompressionOptions) -> windows_core::HRESULT - where - Identity: IPartBase_Impl, - { + unsafe extern "system" fn GetPartCompression(this: *mut core::ffi::c_void, pcompression: *mut EXpsCompressionOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPartBase_Impl::GetPartCompression(this) { Ok(ok__) => { @@ -815,10 +620,7 @@ impl IPartBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPartCompression(this: *mut core::ffi::c_void, compression: EXpsCompressionOptions) -> windows_core::HRESULT - where - Identity: IPartBase_Impl, - { + unsafe extern "system" fn SetPartCompression(this: *mut core::ffi::c_void, compression: EXpsCompressionOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPartBase_Impl::SetPartCompression(this, core::mem::transmute_copy(&compression)).into() } @@ -837,29 +639,20 @@ impl IPartBase_Vtbl { pub trait IPartColorProfile_Impl: Sized + IPartBase_Impl {} impl windows_core::RuntimeName for IPartColorProfile {} impl IPartColorProfile_Vtbl { - pub const fn new() -> IPartColorProfile_Vtbl - where - Identity: IPartColorProfile_Impl, - { + pub const fn new() -> IPartColorProfile_Vtbl { Self { base__: IPartBase_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IPartDiscardControl_Impl: Sized { +pub trait IPartDiscardControl_Impl: Sized + windows_core::IUnknownImpl { fn GetDiscardProperties(&self, urisentinelpage: *mut windows_core::BSTR, uriparttodiscard: *mut windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPartDiscardControl {} impl IPartDiscardControl_Vtbl { - pub const fn new() -> IPartDiscardControl_Vtbl - where - Identity: IPartDiscardControl_Impl, - { - unsafe extern "system" fn GetDiscardProperties(this: *mut core::ffi::c_void, urisentinelpage: *mut core::mem::MaybeUninit, uriparttodiscard: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPartDiscardControl_Impl, - { + pub const fn new() -> IPartDiscardControl_Vtbl { + unsafe extern "system" fn GetDiscardProperties(this: *mut core::ffi::c_void, urisentinelpage: *mut core::mem::MaybeUninit, uriparttodiscard: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPartDiscardControl_Impl::GetDiscardProperties(this, core::mem::transmute_copy(&urisentinelpage), core::mem::transmute_copy(&uriparttodiscard)).into() } @@ -876,28 +669,16 @@ pub trait IPartFont_Impl: Sized + IPartBase_Impl { } impl windows_core::RuntimeName for IPartFont {} impl IPartFont_Vtbl { - pub const fn new() -> IPartFont_Vtbl - where - Identity: IPartFont_Impl, - { - unsafe extern "system" fn GetFontProperties(this: *mut core::ffi::c_void, pcontenttype: *mut core::mem::MaybeUninit, pfontoptions: *mut EXpsFontOptions) -> windows_core::HRESULT - where - Identity: IPartFont_Impl, - { + pub const fn new() -> IPartFont_Vtbl { + unsafe extern "system" fn GetFontProperties(this: *mut core::ffi::c_void, pcontenttype: *mut core::mem::MaybeUninit, pfontoptions: *mut EXpsFontOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPartFont_Impl::GetFontProperties(this, core::mem::transmute_copy(&pcontenttype), core::mem::transmute_copy(&pfontoptions)).into() } - unsafe extern "system" fn SetFontContent(this: *mut core::ffi::c_void, pcontenttype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPartFont_Impl, - { + unsafe extern "system" fn SetFontContent(this: *mut core::ffi::c_void, pcontenttype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPartFont_Impl::SetFontContent(this, core::mem::transmute(&pcontenttype)).into() } - unsafe extern "system" fn SetFontOptions(this: *mut core::ffi::c_void, options: EXpsFontOptions) -> windows_core::HRESULT - where - Identity: IPartFont_Impl, - { + unsafe extern "system" fn SetFontOptions(this: *mut core::ffi::c_void, options: EXpsFontOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPartFont_Impl::SetFontOptions(this, core::mem::transmute_copy(&options)).into() } @@ -917,14 +698,8 @@ pub trait IPartFont2_Impl: Sized + IPartFont_Impl { } impl windows_core::RuntimeName for IPartFont2 {} impl IPartFont2_Vtbl { - pub const fn new() -> IPartFont2_Vtbl - where - Identity: IPartFont2_Impl, - { - unsafe extern "system" fn GetFontRestriction(this: *mut core::ffi::c_void, prestriction: *mut EXpsFontRestriction) -> windows_core::HRESULT - where - Identity: IPartFont2_Impl, - { + pub const fn new() -> IPartFont2_Vtbl { + unsafe extern "system" fn GetFontRestriction(this: *mut core::ffi::c_void, prestriction: *mut EXpsFontRestriction) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPartFont2_Impl::GetFontRestriction(this) { Ok(ok__) => { @@ -946,14 +721,8 @@ pub trait IPartImage_Impl: Sized + IPartBase_Impl { } impl windows_core::RuntimeName for IPartImage {} impl IPartImage_Vtbl { - pub const fn new() -> IPartImage_Vtbl - where - Identity: IPartImage_Impl, - { - unsafe extern "system" fn GetImageProperties(this: *mut core::ffi::c_void, pcontenttype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPartImage_Impl, - { + pub const fn new() -> IPartImage_Vtbl { + unsafe extern "system" fn GetImageProperties(this: *mut core::ffi::c_void, pcontenttype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPartImage_Impl::GetImageProperties(this) { Ok(ok__) => { @@ -963,10 +732,7 @@ impl IPartImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImageContent(this: *mut core::ffi::c_void, pcontenttype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPartImage_Impl, - { + unsafe extern "system" fn SetImageContent(this: *mut core::ffi::c_void, pcontenttype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPartImage_Impl::SetImageContent(this, core::mem::transmute(&pcontenttype)).into() } @@ -983,10 +749,7 @@ impl IPartImage_Vtbl { pub trait IPartPrintTicket_Impl: Sized + IPartBase_Impl {} impl windows_core::RuntimeName for IPartPrintTicket {} impl IPartPrintTicket_Vtbl { - pub const fn new() -> IPartPrintTicket_Vtbl - where - Identity: IPartPrintTicket_Impl, - { + pub const fn new() -> IPartPrintTicket_Vtbl { Self { base__: IPartBase_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -996,10 +759,7 @@ impl IPartPrintTicket_Vtbl { pub trait IPartResourceDictionary_Impl: Sized + IPartBase_Impl {} impl windows_core::RuntimeName for IPartResourceDictionary {} impl IPartResourceDictionary_Vtbl { - pub const fn new() -> IPartResourceDictionary_Vtbl - where - Identity: IPartResourceDictionary_Impl, - { + pub const fn new() -> IPartResourceDictionary_Vtbl { Self { base__: IPartBase_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1012,14 +772,8 @@ pub trait IPartThumbnail_Impl: Sized + IPartBase_Impl { } impl windows_core::RuntimeName for IPartThumbnail {} impl IPartThumbnail_Vtbl { - pub const fn new() -> IPartThumbnail_Vtbl - where - Identity: IPartThumbnail_Impl, - { - unsafe extern "system" fn GetThumbnailProperties(this: *mut core::ffi::c_void, pcontenttype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPartThumbnail_Impl, - { + pub const fn new() -> IPartThumbnail_Vtbl { + unsafe extern "system" fn GetThumbnailProperties(this: *mut core::ffi::c_void, pcontenttype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPartThumbnail_Impl::GetThumbnailProperties(this) { Ok(ok__) => { @@ -1029,10 +783,7 @@ impl IPartThumbnail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetThumbnailContent(this: *mut core::ffi::c_void, pcontenttype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPartThumbnail_Impl, - { + unsafe extern "system" fn SetThumbnailContent(this: *mut core::ffi::c_void, pcontenttype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPartThumbnail_Impl::SetThumbnailContent(this, core::mem::transmute(&pcontenttype)).into() } @@ -1046,27 +797,18 @@ impl IPartThumbnail_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPrintAsyncCookie_Impl: Sized { +pub trait IPrintAsyncCookie_Impl: Sized + windows_core::IUnknownImpl { fn FinishAsyncCall(&self, param0: windows_core::HRESULT) -> windows_core::Result<()>; fn CancelAsyncCall(&self, param0: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintAsyncCookie {} impl IPrintAsyncCookie_Vtbl { - pub const fn new() -> IPrintAsyncCookie_Vtbl - where - Identity: IPrintAsyncCookie_Impl, - { - unsafe extern "system" fn FinishAsyncCall(this: *mut core::ffi::c_void, param0: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPrintAsyncCookie_Impl, - { + pub const fn new() -> IPrintAsyncCookie_Vtbl { + unsafe extern "system" fn FinishAsyncCall(this: *mut core::ffi::c_void, param0: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncCookie_Impl::FinishAsyncCall(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn CancelAsyncCall(this: *mut core::ffi::c_void, param0: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPrintAsyncCookie_Impl, - { + unsafe extern "system" fn CancelAsyncCall(this: *mut core::ffi::c_void, param0: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncCookie_Impl::CancelAsyncCall(this, core::mem::transmute_copy(¶m0)).into() } @@ -1085,14 +827,8 @@ pub trait IPrintAsyncNewChannelCookie_Impl: Sized + IPrintAsyncCookie_Impl { } impl windows_core::RuntimeName for IPrintAsyncNewChannelCookie {} impl IPrintAsyncNewChannelCookie_Vtbl { - pub const fn new() -> IPrintAsyncNewChannelCookie_Vtbl - where - Identity: IPrintAsyncNewChannelCookie_Impl, - { - unsafe extern "system" fn FinishAsyncCallWithData(this: *mut core::ffi::c_void, param0: *const *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT - where - Identity: IPrintAsyncNewChannelCookie_Impl, - { + pub const fn new() -> IPrintAsyncNewChannelCookie_Vtbl { + unsafe extern "system" fn FinishAsyncCallWithData(this: *mut core::ffi::c_void, param0: *const *mut core::ffi::c_void, param1: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNewChannelCookie_Impl::FinishAsyncCallWithData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -1102,20 +838,14 @@ impl IPrintAsyncNewChannelCookie_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPrintAsyncNotify_Impl: Sized { +pub trait IPrintAsyncNotify_Impl: Sized + windows_core::IUnknownImpl { fn CreatePrintAsyncNotifyChannel(&self, param0: u32, param1: *const windows_core::GUID, param2: PrintAsyncNotifyUserFilter, param3: PrintAsyncNotifyConversationStyle, param4: Option<&IPrintAsyncNotifyCallback>) -> windows_core::Result; fn CreatePrintAsyncNotifyRegistration(&self, param0: *const windows_core::GUID, param1: PrintAsyncNotifyUserFilter, param2: PrintAsyncNotifyConversationStyle, param3: Option<&IPrintAsyncNotifyCallback>) -> windows_core::Result; } impl windows_core::RuntimeName for IPrintAsyncNotify {} impl IPrintAsyncNotify_Vtbl { - pub const fn new() -> IPrintAsyncNotify_Vtbl - where - Identity: IPrintAsyncNotify_Impl, - { - unsafe extern "system" fn CreatePrintAsyncNotifyChannel(this: *mut core::ffi::c_void, param0: u32, param1: *const windows_core::GUID, param2: PrintAsyncNotifyUserFilter, param3: PrintAsyncNotifyConversationStyle, param4: *mut core::ffi::c_void, param5: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotify_Impl, - { + pub const fn new() -> IPrintAsyncNotify_Vtbl { + unsafe extern "system" fn CreatePrintAsyncNotifyChannel(this: *mut core::ffi::c_void, param0: u32, param1: *const windows_core::GUID, param2: PrintAsyncNotifyUserFilter, param3: PrintAsyncNotifyConversationStyle, param4: *mut core::ffi::c_void, param5: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintAsyncNotify_Impl::CreatePrintAsyncNotifyChannel(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), windows_core::from_raw_borrowed(¶m4)) { Ok(ok__) => { @@ -1125,10 +855,7 @@ impl IPrintAsyncNotify_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePrintAsyncNotifyRegistration(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: PrintAsyncNotifyUserFilter, param2: PrintAsyncNotifyConversationStyle, param3: *mut core::ffi::c_void, param4: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotify_Impl, - { + unsafe extern "system" fn CreatePrintAsyncNotifyRegistration(this: *mut core::ffi::c_void, param0: *const windows_core::GUID, param1: PrintAsyncNotifyUserFilter, param2: PrintAsyncNotifyConversationStyle, param3: *mut core::ffi::c_void, param4: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintAsyncNotify_Impl::CreatePrintAsyncNotifyRegistration(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), windows_core::from_raw_borrowed(¶m3)) { Ok(ok__) => { @@ -1148,27 +875,18 @@ impl IPrintAsyncNotify_Vtbl { iid == &::IID } } -pub trait IPrintAsyncNotifyCallback_Impl: Sized { +pub trait IPrintAsyncNotifyCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnEventNotify(&self, pchannel: Option<&IPrintAsyncNotifyChannel>, pdata: Option<&IPrintAsyncNotifyDataObject>) -> windows_core::Result<()>; fn ChannelClosed(&self, pchannel: Option<&IPrintAsyncNotifyChannel>, pdata: Option<&IPrintAsyncNotifyDataObject>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintAsyncNotifyCallback {} impl IPrintAsyncNotifyCallback_Vtbl { - pub const fn new() -> IPrintAsyncNotifyCallback_Vtbl - where - Identity: IPrintAsyncNotifyCallback_Impl, - { - unsafe extern "system" fn OnEventNotify(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyCallback_Impl, - { + pub const fn new() -> IPrintAsyncNotifyCallback_Vtbl { + unsafe extern "system" fn OnEventNotify(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNotifyCallback_Impl::OnEventNotify(this, windows_core::from_raw_borrowed(&pchannel), windows_core::from_raw_borrowed(&pdata)).into() } - unsafe extern "system" fn ChannelClosed(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyCallback_Impl, - { + unsafe extern "system" fn ChannelClosed(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNotifyCallback_Impl::ChannelClosed(this, windows_core::from_raw_borrowed(&pchannel), windows_core::from_raw_borrowed(&pdata)).into() } @@ -1182,27 +900,18 @@ impl IPrintAsyncNotifyCallback_Vtbl { iid == &::IID } } -pub trait IPrintAsyncNotifyChannel_Impl: Sized { +pub trait IPrintAsyncNotifyChannel_Impl: Sized + windows_core::IUnknownImpl { fn SendNotification(&self, pdata: Option<&IPrintAsyncNotifyDataObject>) -> windows_core::Result<()>; fn CloseChannel(&self, pdata: Option<&IPrintAsyncNotifyDataObject>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintAsyncNotifyChannel {} impl IPrintAsyncNotifyChannel_Vtbl { - pub const fn new() -> IPrintAsyncNotifyChannel_Vtbl - where - Identity: IPrintAsyncNotifyChannel_Impl, - { - unsafe extern "system" fn SendNotification(this: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyChannel_Impl, - { + pub const fn new() -> IPrintAsyncNotifyChannel_Vtbl { + unsafe extern "system" fn SendNotification(this: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNotifyChannel_Impl::SendNotification(this, windows_core::from_raw_borrowed(&pdata)).into() } - unsafe extern "system" fn CloseChannel(this: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyChannel_Impl, - { + unsafe extern "system" fn CloseChannel(this: *mut core::ffi::c_void, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNotifyChannel_Impl::CloseChannel(this, windows_core::from_raw_borrowed(&pdata)).into() } @@ -1216,27 +925,18 @@ impl IPrintAsyncNotifyChannel_Vtbl { iid == &::IID } } -pub trait IPrintAsyncNotifyDataObject_Impl: Sized { +pub trait IPrintAsyncNotifyDataObject_Impl: Sized + windows_core::IUnknownImpl { fn AcquireData(&self, ppnotificationdata: *mut *mut u8, psize: *mut u32, ppschema: *mut *mut windows_core::GUID) -> windows_core::Result<()>; fn ReleaseData(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintAsyncNotifyDataObject {} impl IPrintAsyncNotifyDataObject_Vtbl { - pub const fn new() -> IPrintAsyncNotifyDataObject_Vtbl - where - Identity: IPrintAsyncNotifyDataObject_Impl, - { - unsafe extern "system" fn AcquireData(this: *mut core::ffi::c_void, ppnotificationdata: *mut *mut u8, psize: *mut u32, ppschema: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyDataObject_Impl, - { + pub const fn new() -> IPrintAsyncNotifyDataObject_Vtbl { + unsafe extern "system" fn AcquireData(this: *mut core::ffi::c_void, ppnotificationdata: *mut *mut u8, psize: *mut u32, ppschema: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNotifyDataObject_Impl::AcquireData(this, core::mem::transmute_copy(&ppnotificationdata), core::mem::transmute_copy(&psize), core::mem::transmute_copy(&ppschema)).into() } - unsafe extern "system" fn ReleaseData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyDataObject_Impl, - { + unsafe extern "system" fn ReleaseData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNotifyDataObject_Impl::ReleaseData(this).into() } @@ -1250,27 +950,18 @@ impl IPrintAsyncNotifyDataObject_Vtbl { iid == &::IID } } -pub trait IPrintAsyncNotifyRegistration_Impl: Sized { +pub trait IPrintAsyncNotifyRegistration_Impl: Sized + windows_core::IUnknownImpl { fn RegisterForNotifications(&self) -> windows_core::Result<()>; fn UnregisterForNotifications(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintAsyncNotifyRegistration {} impl IPrintAsyncNotifyRegistration_Vtbl { - pub const fn new() -> IPrintAsyncNotifyRegistration_Vtbl - where - Identity: IPrintAsyncNotifyRegistration_Impl, - { - unsafe extern "system" fn RegisterForNotifications(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyRegistration_Impl, - { + pub const fn new() -> IPrintAsyncNotifyRegistration_Vtbl { + unsafe extern "system" fn RegisterForNotifications(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNotifyRegistration_Impl::RegisterForNotifications(this).into() } - unsafe extern "system" fn UnregisterForNotifications(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyRegistration_Impl, - { + unsafe extern "system" fn UnregisterForNotifications(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNotifyRegistration_Impl::UnregisterForNotifications(this).into() } @@ -1284,21 +975,15 @@ impl IPrintAsyncNotifyRegistration_Vtbl { iid == &::IID } } -pub trait IPrintAsyncNotifyServerReferral_Impl: Sized { +pub trait IPrintAsyncNotifyServerReferral_Impl: Sized + windows_core::IUnknownImpl { fn GetServerReferral(&self) -> windows_core::Result; fn AsyncGetServerReferral(&self, param0: Option<&IAsyncGetSrvReferralCookie>) -> windows_core::Result<()>; fn SetServerReferral(&self, prmtserverreferral: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintAsyncNotifyServerReferral {} impl IPrintAsyncNotifyServerReferral_Vtbl { - pub const fn new() -> IPrintAsyncNotifyServerReferral_Vtbl - where - Identity: IPrintAsyncNotifyServerReferral_Impl, - { - unsafe extern "system" fn GetServerReferral(this: *mut core::ffi::c_void, param0: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyServerReferral_Impl, - { + pub const fn new() -> IPrintAsyncNotifyServerReferral_Vtbl { + unsafe extern "system" fn GetServerReferral(this: *mut core::ffi::c_void, param0: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintAsyncNotifyServerReferral_Impl::GetServerReferral(this) { Ok(ok__) => { @@ -1308,17 +993,11 @@ impl IPrintAsyncNotifyServerReferral_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AsyncGetServerReferral(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyServerReferral_Impl, - { + unsafe extern "system" fn AsyncGetServerReferral(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNotifyServerReferral_Impl::AsyncGetServerReferral(this, windows_core::from_raw_borrowed(¶m0)).into() } - unsafe extern "system" fn SetServerReferral(this: *mut core::ffi::c_void, prmtserverreferral: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPrintAsyncNotifyServerReferral_Impl, - { + unsafe extern "system" fn SetServerReferral(this: *mut core::ffi::c_void, prmtserverreferral: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintAsyncNotifyServerReferral_Impl::SetServerReferral(this, core::mem::transmute(&prmtserverreferral)).into() } @@ -1338,14 +1017,8 @@ pub trait IPrintBidiAsyncNotifyRegistration_Impl: Sized + IPrintAsyncNotifyRegis } impl windows_core::RuntimeName for IPrintBidiAsyncNotifyRegistration {} impl IPrintBidiAsyncNotifyRegistration_Vtbl { - pub const fn new() -> IPrintBidiAsyncNotifyRegistration_Vtbl - where - Identity: IPrintBidiAsyncNotifyRegistration_Impl, - { - unsafe extern "system" fn AsyncGetNewChannel(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintBidiAsyncNotifyRegistration_Impl, - { + pub const fn new() -> IPrintBidiAsyncNotifyRegistration_Vtbl { + unsafe extern "system" fn AsyncGetNewChannel(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintBidiAsyncNotifyRegistration_Impl::AsyncGetNewChannel(this, windows_core::from_raw_borrowed(¶m0)).into() } @@ -1355,19 +1028,13 @@ impl IPrintBidiAsyncNotifyRegistration_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPrintClassObjectFactory_Impl: Sized { +pub trait IPrintClassObjectFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetPrintClassObject(&self, pszprintername: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintClassObjectFactory {} impl IPrintClassObjectFactory_Vtbl { - pub const fn new() -> IPrintClassObjectFactory_Vtbl - where - Identity: IPrintClassObjectFactory_Impl, - { - unsafe extern "system" fn GetPrintClassObject(this: *mut core::ffi::c_void, pszprintername: windows_core::PCWSTR, riid: *const windows_core::GUID, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintClassObjectFactory_Impl, - { + pub const fn new() -> IPrintClassObjectFactory_Vtbl { + unsafe extern "system" fn GetPrintClassObject(this: *mut core::ffi::c_void, pszprintername: windows_core::PCWSTR, riid: *const windows_core::GUID, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintClassObjectFactory_Impl::GetPrintClassObject(this, core::mem::transmute(&pszprintername), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppnewobject)).into() } @@ -1378,7 +1045,7 @@ impl IPrintClassObjectFactory_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IPrintCoreHelper_Impl: Sized { +pub trait IPrintCoreHelper_Impl: Sized + windows_core::IUnknownImpl { fn GetOption(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturerequested: &windows_core::PCSTR) -> windows_core::Result; fn SetOptions(&self, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, bresolveconflicts: super::super::Foundation::BOOL, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::Result<()>; fn EnumConstrainedOptions(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: &windows_core::PCSTR, pconstrainedoptionlist: *const *const *const windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()>; @@ -1393,14 +1060,8 @@ pub trait IPrintCoreHelper_Impl: Sized { impl windows_core::RuntimeName for IPrintCoreHelper {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IPrintCoreHelper_Vtbl { - pub const fn new() -> IPrintCoreHelper_Vtbl - where - Identity: IPrintCoreHelper_Impl, - { - unsafe extern "system" fn GetOption(this: *mut core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturerequested: windows_core::PCSTR, ppszoption: *mut windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IPrintCoreHelper_Impl, - { + pub const fn new() -> IPrintCoreHelper_Vtbl { + unsafe extern "system" fn GetOption(this: *mut core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturerequested: windows_core::PCSTR, ppszoption: *mut windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintCoreHelper_Impl::GetOption(this, core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&cbsize), core::mem::transmute(&pszfeaturerequested)) { Ok(ok__) => { @@ -1410,59 +1071,35 @@ impl IPrintCoreHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, bresolveconflicts: super::super::Foundation::BOOL, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreHelper_Impl, - { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, bresolveconflicts: super::super::Foundation::BOOL, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelper_Impl::SetOptions(this, core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&bresolveconflicts), core::mem::transmute_copy(&pfopairs), core::mem::transmute_copy(&cpairs), core::mem::transmute_copy(&pcpairswritten), core::mem::transmute_copy(&pdwresult)).into() } - unsafe extern "system" fn EnumConstrainedOptions(this: *mut core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: windows_core::PCSTR, pconstrainedoptionlist: *const *const *const windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreHelper_Impl, - { + unsafe extern "system" fn EnumConstrainedOptions(this: *mut core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: windows_core::PCSTR, pconstrainedoptionlist: *const *const *const windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelper_Impl::EnumConstrainedOptions(this, core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&cbsize), core::mem::transmute(&pszfeaturekeyword), core::mem::transmute_copy(&pconstrainedoptionlist), core::mem::transmute_copy(&pdwnumoptions)).into() } - unsafe extern "system" fn WhyConstrained(this: *mut core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: windows_core::PCSTR, pszoptionkeyword: windows_core::PCSTR, ppfoconstraints: *mut *mut PRINT_FEATURE_OPTION, pdwnumoptions: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreHelper_Impl, - { + unsafe extern "system" fn WhyConstrained(this: *mut core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: windows_core::PCSTR, pszoptionkeyword: windows_core::PCSTR, ppfoconstraints: *mut *mut PRINT_FEATURE_OPTION, pdwnumoptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelper_Impl::WhyConstrained(this, core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&cbsize), core::mem::transmute(&pszfeaturekeyword), core::mem::transmute(&pszoptionkeyword), core::mem::transmute_copy(&ppfoconstraints), core::mem::transmute_copy(&pdwnumoptions)).into() } - unsafe extern "system" fn EnumFeatures(this: *mut core::ffi::c_void, pfeaturelist: *mut *mut *mut windows_core::PCSTR, pdwnumfeatures: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreHelper_Impl, - { + unsafe extern "system" fn EnumFeatures(this: *mut core::ffi::c_void, pfeaturelist: *mut *mut *mut windows_core::PCSTR, pdwnumfeatures: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelper_Impl::EnumFeatures(this, core::mem::transmute_copy(&pfeaturelist), core::mem::transmute_copy(&pdwnumfeatures)).into() } - unsafe extern "system" fn EnumOptions(this: *mut core::ffi::c_void, pszfeaturekeyword: windows_core::PCSTR, poptionlist: *mut *mut *mut windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreHelper_Impl, - { + unsafe extern "system" fn EnumOptions(this: *mut core::ffi::c_void, pszfeaturekeyword: windows_core::PCSTR, poptionlist: *mut *mut *mut windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelper_Impl::EnumOptions(this, core::mem::transmute(&pszfeaturekeyword), core::mem::transmute_copy(&poptionlist), core::mem::transmute_copy(&pdwnumoptions)).into() } - unsafe extern "system" fn GetFontSubstitution(this: *mut core::ffi::c_void, psztruetypefontname: windows_core::PCWSTR, ppszdevfontname: *const windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPrintCoreHelper_Impl, - { + unsafe extern "system" fn GetFontSubstitution(this: *mut core::ffi::c_void, psztruetypefontname: windows_core::PCWSTR, ppszdevfontname: *const windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelper_Impl::GetFontSubstitution(this, core::mem::transmute(&psztruetypefontname), core::mem::transmute_copy(&ppszdevfontname)).into() } - unsafe extern "system" fn SetFontSubstitution(this: *mut core::ffi::c_void, psztruetypefontname: windows_core::PCWSTR, pszdevfontname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPrintCoreHelper_Impl, - { + unsafe extern "system" fn SetFontSubstitution(this: *mut core::ffi::c_void, psztruetypefontname: windows_core::PCWSTR, pszdevfontname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelper_Impl::SetFontSubstitution(this, core::mem::transmute(&psztruetypefontname), core::mem::transmute(&pszdevfontname)).into() } - unsafe extern "system" fn CreateInstanceOfMSXMLObject(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, punkouter: *mut core::ffi::c_void, dwclscontext: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintCoreHelper_Impl, - { + unsafe extern "system" fn CreateInstanceOfMSXMLObject(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, punkouter: *mut core::ffi::c_void, dwclscontext: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelper_Impl::CreateInstanceOfMSXMLObject(this, core::mem::transmute_copy(&rclsid), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&dwclscontext), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -1493,28 +1130,16 @@ pub trait IPrintCoreHelperPS_Impl: Sized + IPrintCoreHelper_Impl { impl windows_core::RuntimeName for IPrintCoreHelperPS {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IPrintCoreHelperPS_Vtbl { - pub const fn new() -> IPrintCoreHelperPS_Vtbl - where - Identity: IPrintCoreHelperPS_Impl, - { - unsafe extern "system" fn GetGlobalAttribute(this: *mut core::ffi::c_void, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreHelperPS_Impl, - { + pub const fn new() -> IPrintCoreHelperPS_Vtbl { + unsafe extern "system" fn GetGlobalAttribute(this: *mut core::ffi::c_void, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelperPS_Impl::GetGlobalAttribute(this, core::mem::transmute(&pszattribute), core::mem::transmute_copy(&pdwdatatype), core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pcbsize)).into() } - unsafe extern "system" fn GetFeatureAttribute(this: *mut core::ffi::c_void, pszfeaturekeyword: windows_core::PCSTR, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreHelperPS_Impl, - { + unsafe extern "system" fn GetFeatureAttribute(this: *mut core::ffi::c_void, pszfeaturekeyword: windows_core::PCSTR, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelperPS_Impl::GetFeatureAttribute(this, core::mem::transmute(&pszfeaturekeyword), core::mem::transmute(&pszattribute), core::mem::transmute_copy(&pdwdatatype), core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pcbsize)).into() } - unsafe extern "system" fn GetOptionAttribute(this: *mut core::ffi::c_void, pszfeaturekeyword: windows_core::PCSTR, pszoptionkeyword: windows_core::PCSTR, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreHelperPS_Impl, - { + unsafe extern "system" fn GetOptionAttribute(this: *mut core::ffi::c_void, pszfeaturekeyword: windows_core::PCSTR, pszoptionkeyword: windows_core::PCSTR, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelperPS_Impl::GetOptionAttribute(this, core::mem::transmute(&pszfeaturekeyword), core::mem::transmute(&pszoptionkeyword), core::mem::transmute(&pszattribute), core::mem::transmute_copy(&pdwdatatype), core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pcbsize)).into() } @@ -1538,21 +1163,12 @@ pub trait IPrintCoreHelperUni_Impl: Sized + IPrintCoreHelper_Impl { impl windows_core::RuntimeName for IPrintCoreHelperUni {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IPrintCoreHelperUni_Vtbl { - pub const fn new() -> IPrintCoreHelperUni_Vtbl - where - Identity: IPrintCoreHelperUni_Impl, - { - unsafe extern "system" fn CreateGDLSnapshot(this: *mut core::ffi::c_void, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, dwflags: u32, ppsnapshotstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintCoreHelperUni_Impl, - { + pub const fn new() -> IPrintCoreHelperUni_Vtbl { + unsafe extern "system" fn CreateGDLSnapshot(this: *mut core::ffi::c_void, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, dwflags: u32, ppsnapshotstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelperUni_Impl::CreateGDLSnapshot(this, core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ppsnapshotstream)).into() } - unsafe extern "system" fn CreateDefaultGDLSnapshot(this: *mut core::ffi::c_void, dwflags: u32, ppsnapshotstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintCoreHelperUni_Impl, - { + unsafe extern "system" fn CreateDefaultGDLSnapshot(this: *mut core::ffi::c_void, dwflags: u32, ppsnapshotstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintCoreHelperUni_Impl::CreateDefaultGDLSnapshot(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -1580,14 +1196,8 @@ pub trait IPrintCoreHelperUni2_Impl: Sized + IPrintCoreHelperUni_Impl { impl windows_core::RuntimeName for IPrintCoreHelperUni2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IPrintCoreHelperUni2_Vtbl { - pub const fn new() -> IPrintCoreHelperUni2_Vtbl - where - Identity: IPrintCoreHelperUni2_Impl, - { - unsafe extern "system" fn GetNamedCommand(this: *mut core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszcommandname: windows_core::PCWSTR, ppcommandbytes: *mut *mut u8, pcbcommandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreHelperUni2_Impl, - { + pub const fn new() -> IPrintCoreHelperUni2_Vtbl { + unsafe extern "system" fn GetNamedCommand(this: *mut core::ffi::c_void, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszcommandname: windows_core::PCWSTR, ppcommandbytes: *mut *mut u8, pcbcommandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelperUni2_Impl::GetNamedCommand(this, core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&cbsize), core::mem::transmute(&pszcommandname), core::mem::transmute_copy(&ppcommandbytes), core::mem::transmute_copy(&pcbcommandsize)).into() } @@ -1611,21 +1221,12 @@ pub trait IPrintCoreUI2_Impl: Sized + IPrintOemDriverUI_Impl { } impl windows_core::RuntimeName for IPrintCoreUI2 {} impl IPrintCoreUI2_Vtbl { - pub const fn new() -> IPrintCoreUI2_Vtbl - where - Identity: IPrintCoreUI2_Impl, - { - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pmszfeaturesrequested: *const i8, cbin: u32, pmszfeatureoptionbuf: windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreUI2_Impl, - { + pub const fn new() -> IPrintCoreUI2_Vtbl { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pmszfeaturesrequested: *const i8, cbin: u32, pmszfeatureoptionbuf: windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreUI2_Impl::GetOptions(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pmszfeaturesrequested), core::mem::transmute_copy(&cbin), core::mem::transmute_copy(&pmszfeatureoptionbuf), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded)).into() } - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pmszfeatureoptionbuf: *const i8, cbin: u32, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreUI2_Impl, - { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pmszfeatureoptionbuf: *const i8, cbin: u32, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintCoreUI2_Impl::SetOptions(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pmszfeatureoptionbuf), core::mem::transmute_copy(&cbin)) { Ok(ok__) => { @@ -1635,59 +1236,35 @@ impl IPrintCoreUI2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumConstrainedOptions(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: windows_core::PCSTR, pmszconstrainedoptionlist: windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreUI2_Impl, - { + unsafe extern "system" fn EnumConstrainedOptions(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: windows_core::PCSTR, pmszconstrainedoptionlist: windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreUI2_Impl::EnumConstrainedOptions(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszfeaturekeyword), core::mem::transmute_copy(&pmszconstrainedoptionlist), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded)).into() } - unsafe extern "system" fn WhyConstrained(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: windows_core::PCSTR, pszoptionkeyword: windows_core::PCSTR, pmszreasonlist: windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreUI2_Impl, - { + unsafe extern "system" fn WhyConstrained(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: windows_core::PCSTR, pszoptionkeyword: windows_core::PCSTR, pmszreasonlist: windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreUI2_Impl::WhyConstrained(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszfeaturekeyword), core::mem::transmute(&pszoptionkeyword), core::mem::transmute_copy(&pmszreasonlist), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded)).into() } - unsafe extern "system" fn GetGlobalAttribute(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, pbdata: *mut u8, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreUI2_Impl, - { + unsafe extern "system" fn GetGlobalAttribute(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, pbdata: *mut u8, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreUI2_Impl::GetGlobalAttribute(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszattribute), core::mem::transmute_copy(&pdwdatatype), core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded)).into() } - unsafe extern "system" fn GetFeatureAttribute(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: windows_core::PCSTR, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, pbdata: *mut u8, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreUI2_Impl, - { + unsafe extern "system" fn GetFeatureAttribute(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: windows_core::PCSTR, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, pbdata: *mut u8, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreUI2_Impl::GetFeatureAttribute(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszfeaturekeyword), core::mem::transmute(&pszattribute), core::mem::transmute_copy(&pdwdatatype), core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded)).into() } - unsafe extern "system" fn GetOptionAttribute(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: windows_core::PCSTR, pszoptionkeyword: windows_core::PCSTR, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, pbdata: *mut u8, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreUI2_Impl, - { + unsafe extern "system" fn GetOptionAttribute(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: windows_core::PCSTR, pszoptionkeyword: windows_core::PCSTR, pszattribute: windows_core::PCSTR, pdwdatatype: *mut u32, pbdata: *mut u8, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreUI2_Impl::GetOptionAttribute(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszfeaturekeyword), core::mem::transmute(&pszoptionkeyword), core::mem::transmute(&pszattribute), core::mem::transmute_copy(&pdwdatatype), core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded)).into() } - unsafe extern "system" fn EnumFeatures(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pmszfeaturelist: windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreUI2_Impl, - { + unsafe extern "system" fn EnumFeatures(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pmszfeaturelist: windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreUI2_Impl::EnumFeatures(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pmszfeaturelist), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded)).into() } - unsafe extern "system" fn EnumOptions(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: windows_core::PCSTR, pmszoptionlist: windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreUI2_Impl, - { + unsafe extern "system" fn EnumOptions(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: windows_core::PCSTR, pmszoptionlist: windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreUI2_Impl::EnumOptions(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszfeaturekeyword), core::mem::transmute_copy(&pmszoptionlist), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded)).into() } - unsafe extern "system" fn QuerySimulationSupport(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, dwlevel: u32, pcaps: *mut u8, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintCoreUI2_Impl, - { + unsafe extern "system" fn QuerySimulationSupport(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, dwlevel: u32, pcaps: *mut u8, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreUI2_Impl::QuerySimulationSupport(this, core::mem::transmute_copy(&hprinter), core::mem::transmute_copy(&dwlevel), core::mem::transmute_copy(&pcaps), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded)).into() } @@ -1709,7 +1286,7 @@ impl IPrintCoreUI2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPrintJob_Impl: Sized { +pub trait IPrintJob_Impl: Sized + windows_core::IUnknownImpl { fn Name(&self) -> windows_core::Result; fn Id(&self) -> windows_core::Result; fn PrintedPages(&self) -> windows_core::Result; @@ -1720,14 +1297,8 @@ pub trait IPrintJob_Impl: Sized { } impl windows_core::RuntimeName for IPrintJob {} impl IPrintJob_Vtbl { - pub const fn new() -> IPrintJob_Vtbl - where - Identity: IPrintJob_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintJob_Impl, - { + pub const fn new() -> IPrintJob_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintJob_Impl::Name(this) { Ok(ok__) => { @@ -1737,10 +1308,7 @@ impl IPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintJob_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintJob_Impl::Id(this) { Ok(ok__) => { @@ -1750,10 +1318,7 @@ impl IPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrintedPages(this: *mut core::ffi::c_void, pulpages: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintJob_Impl, - { + unsafe extern "system" fn PrintedPages(this: *mut core::ffi::c_void, pulpages: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintJob_Impl::PrintedPages(this) { Ok(ok__) => { @@ -1763,10 +1328,7 @@ impl IPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalPages(this: *mut core::ffi::c_void, pulpages: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintJob_Impl, - { + unsafe extern "system" fn TotalPages(this: *mut core::ffi::c_void, pulpages: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintJob_Impl::TotalPages(this) { Ok(ok__) => { @@ -1776,10 +1338,7 @@ impl IPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut PrintJobStatus) -> windows_core::HRESULT - where - Identity: IPrintJob_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut PrintJobStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintJob_Impl::Status(this) { Ok(ok__) => { @@ -1789,10 +1348,7 @@ impl IPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubmissionTime(this: *mut core::ffi::c_void, psubmissiontime: *mut f64) -> windows_core::HRESULT - where - Identity: IPrintJob_Impl, - { + unsafe extern "system" fn SubmissionTime(this: *mut core::ffi::c_void, psubmissiontime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintJob_Impl::SubmissionTime(this) { Ok(ok__) => { @@ -1802,10 +1358,7 @@ impl IPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestCancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintJob_Impl, - { + unsafe extern "system" fn RequestCancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintJob_Impl::RequestCancel(this).into() } @@ -1834,14 +1387,8 @@ pub trait IPrintJobCollection_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IPrintJobCollection {} #[cfg(feature = "Win32_System_Com")] impl IPrintJobCollection_Vtbl { - pub const fn new() -> IPrintJobCollection_Vtbl - where - Identity: IPrintJobCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintJobCollection_Impl, - { + pub const fn new() -> IPrintJobCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintJobCollection_Impl::Count(this) { Ok(ok__) => { @@ -1851,10 +1398,7 @@ impl IPrintJobCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, ulindex: u32, ppjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintJobCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, ulindex: u32, ppjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintJobCollection_Impl::GetAt(this, core::mem::transmute_copy(&ulindex)) { Ok(ok__) => { @@ -1864,10 +1408,7 @@ impl IPrintJobCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintJobCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintJobCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1889,7 +1430,7 @@ impl IPrintJobCollection_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IPrintOemCommon_Impl: Sized { +pub trait IPrintOemCommon_Impl: Sized + windows_core::IUnknownImpl { fn GetInfo(&self, dwmode: u32, pbuffer: *mut core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32) -> windows_core::Result<()>; fn DevMode(&self, dwmode: u32, poemdmparam: *mut OEMDMPARAM) -> windows_core::Result<()>; } @@ -1897,21 +1438,12 @@ pub trait IPrintOemCommon_Impl: Sized { impl windows_core::RuntimeName for IPrintOemCommon {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IPrintOemCommon_Vtbl { - pub const fn new() -> IPrintOemCommon_Vtbl - where - Identity: IPrintOemCommon_Impl, - { - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, dwmode: u32, pbuffer: *mut core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintOemCommon_Impl, - { + pub const fn new() -> IPrintOemCommon_Vtbl { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, dwmode: u32, pbuffer: *mut core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemCommon_Impl::GetInfo(this, core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded)).into() } - unsafe extern "system" fn DevMode(this: *mut core::ffi::c_void, dwmode: u32, poemdmparam: *mut OEMDMPARAM) -> windows_core::HRESULT - where - Identity: IPrintOemCommon_Impl, - { + unsafe extern "system" fn DevMode(this: *mut core::ffi::c_void, dwmode: u32, poemdmparam: *mut OEMDMPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemCommon_Impl::DevMode(this, core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&poemdmparam)).into() } @@ -1921,35 +1453,23 @@ impl IPrintOemCommon_Vtbl { iid == &::IID } } -pub trait IPrintOemDriverUI_Impl: Sized { +pub trait IPrintOemDriverUI_Impl: Sized + windows_core::IUnknownImpl { fn DrvGetDriverSetting(&self, pci: *mut core::ffi::c_void, feature: &windows_core::PCSTR, poutput: *mut core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32, pdwoptionsreturned: *mut u32) -> windows_core::Result<()>; fn DrvUpgradeRegistrySetting(&self, hprinter: super::super::Foundation::HANDLE, pfeature: &windows_core::PCSTR, poption: &windows_core::PCSTR) -> windows_core::Result<()>; fn DrvUpdateUISetting(&self, pci: *mut core::ffi::c_void, poptitem: *mut core::ffi::c_void, dwpreviousselection: u32, dwmode: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintOemDriverUI {} impl IPrintOemDriverUI_Vtbl { - pub const fn new() -> IPrintOemDriverUI_Vtbl - where - Identity: IPrintOemDriverUI_Impl, - { - unsafe extern "system" fn DrvGetDriverSetting(this: *mut core::ffi::c_void, pci: *mut core::ffi::c_void, feature: windows_core::PCSTR, poutput: *mut core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32, pdwoptionsreturned: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintOemDriverUI_Impl, - { + pub const fn new() -> IPrintOemDriverUI_Vtbl { + unsafe extern "system" fn DrvGetDriverSetting(this: *mut core::ffi::c_void, pci: *mut core::ffi::c_void, feature: windows_core::PCSTR, poutput: *mut core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32, pdwoptionsreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemDriverUI_Impl::DrvGetDriverSetting(this, core::mem::transmute_copy(&pci), core::mem::transmute(&feature), core::mem::transmute_copy(&poutput), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pcbneeded), core::mem::transmute_copy(&pdwoptionsreturned)).into() } - unsafe extern "system" fn DrvUpgradeRegistrySetting(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, pfeature: windows_core::PCSTR, poption: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IPrintOemDriverUI_Impl, - { + unsafe extern "system" fn DrvUpgradeRegistrySetting(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, pfeature: windows_core::PCSTR, poption: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemDriverUI_Impl::DrvUpgradeRegistrySetting(this, core::mem::transmute_copy(&hprinter), core::mem::transmute(&pfeature), core::mem::transmute(&poption)).into() } - unsafe extern "system" fn DrvUpdateUISetting(this: *mut core::ffi::c_void, pci: *mut core::ffi::c_void, poptitem: *mut core::ffi::c_void, dwpreviousselection: u32, dwmode: u32) -> windows_core::HRESULT - where - Identity: IPrintOemDriverUI_Impl, - { + unsafe extern "system" fn DrvUpdateUISetting(this: *mut core::ffi::c_void, pci: *mut core::ffi::c_void, poptitem: *mut core::ffi::c_void, dwpreviousselection: u32, dwmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemDriverUI_Impl::DrvUpdateUISetting(this, core::mem::transmute_copy(&pci), core::mem::transmute_copy(&poptitem), core::mem::transmute_copy(&dwpreviousselection), core::mem::transmute_copy(&dwmode)).into() } @@ -1983,91 +1503,52 @@ pub trait IPrintOemUI_Impl: Sized + IPrintOemCommon_Impl { impl windows_core::RuntimeName for IPrintOemUI {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IPrintOemUI_Vtbl { - pub const fn new() -> IPrintOemUI_Vtbl - where - Identity: IPrintOemUI_Impl, - { - unsafe extern "system" fn PublishDriverInterface(this: *mut core::ffi::c_void, piunknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + pub const fn new() -> IPrintOemUI_Vtbl { + unsafe extern "system" fn PublishDriverInterface(this: *mut core::ffi::c_void, piunknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::PublishDriverInterface(this, windows_core::from_raw_borrowed(&piunknown)).into() } - unsafe extern "system" fn CommonUIProp(this: *mut core::ffi::c_void, dwmode: u32, poemcuipparam: *const OEMCUIPPARAM) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn CommonUIProp(this: *mut core::ffi::c_void, dwmode: u32, poemcuipparam: *const OEMCUIPPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::CommonUIProp(this, core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&poemcuipparam)).into() } - unsafe extern "system" fn DocumentPropertySheets(this: *mut core::ffi::c_void, ppsuiinfo: *mut PROPSHEETUI_INFO, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn DocumentPropertySheets(this: *mut core::ffi::c_void, ppsuiinfo: *mut PROPSHEETUI_INFO, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::DocumentPropertySheets(this, core::mem::transmute_copy(&ppsuiinfo), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn DevicePropertySheets(this: *mut core::ffi::c_void, ppsuiinfo: *const PROPSHEETUI_INFO, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn DevicePropertySheets(this: *mut core::ffi::c_void, ppsuiinfo: *const PROPSHEETUI_INFO, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::DevicePropertySheets(this, core::mem::transmute_copy(&ppsuiinfo), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn DevQueryPrintEx(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, pdqpinfo: *const DEVQUERYPRINT_INFO, ppublicdm: *const super::Gdi::DEVMODEA, poemdm: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn DevQueryPrintEx(this: *mut core::ffi::c_void, poemuiobj: *const OEMUIOBJ, pdqpinfo: *const DEVQUERYPRINT_INFO, ppublicdm: *const super::Gdi::DEVMODEA, poemdm: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::DevQueryPrintEx(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&pdqpinfo), core::mem::transmute_copy(&ppublicdm), core::mem::transmute_copy(&poemdm)).into() } - unsafe extern "system" fn DeviceCapabilitiesA(this: *mut core::ffi::c_void, poemuiobj: *mut OEMUIOBJ, hprinter: super::super::Foundation::HANDLE, pdevicename: windows_core::PCWSTR, wcapability: u16, poutput: *mut core::ffi::c_void, ppublicdm: *const super::Gdi::DEVMODEA, poemdm: *const core::ffi::c_void, dwold: u32, dwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn DeviceCapabilitiesA(this: *mut core::ffi::c_void, poemuiobj: *mut OEMUIOBJ, hprinter: super::super::Foundation::HANDLE, pdevicename: windows_core::PCWSTR, wcapability: u16, poutput: *mut core::ffi::c_void, ppublicdm: *const super::Gdi::DEVMODEA, poemdm: *const core::ffi::c_void, dwold: u32, dwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::DeviceCapabilitiesA(this, core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&hprinter), core::mem::transmute(&pdevicename), core::mem::transmute_copy(&wcapability), core::mem::transmute_copy(&poutput), core::mem::transmute_copy(&ppublicdm), core::mem::transmute_copy(&poemdm), core::mem::transmute_copy(&dwold), core::mem::transmute_copy(&dwresult)).into() } - unsafe extern "system" fn UpgradePrinter(this: *mut core::ffi::c_void, dwlevel: u32, pdriverupgradeinfo: *const u8) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn UpgradePrinter(this: *mut core::ffi::c_void, dwlevel: u32, pdriverupgradeinfo: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::UpgradePrinter(this, core::mem::transmute_copy(&dwlevel), core::mem::transmute_copy(&pdriverupgradeinfo)).into() } - unsafe extern "system" fn PrinterEvent(this: *mut core::ffi::c_void, pprintername: windows_core::PCWSTR, idriverevent: i32, dwflags: u32, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn PrinterEvent(this: *mut core::ffi::c_void, pprintername: windows_core::PCWSTR, idriverevent: i32, dwflags: u32, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::PrinterEvent(this, core::mem::transmute(&pprintername), core::mem::transmute_copy(&idriverevent), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn DriverEvent(this: *mut core::ffi::c_void, dwdriverevent: u32, dwlevel: u32, pdriverinfo: *const u8, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn DriverEvent(this: *mut core::ffi::c_void, dwdriverevent: u32, dwlevel: u32, pdriverinfo: *const u8, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::DriverEvent(this, core::mem::transmute_copy(&dwdriverevent), core::mem::transmute_copy(&dwlevel), core::mem::transmute_copy(&pdriverinfo), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn QueryColorProfile(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, poemuiobj: *const OEMUIOBJ, ppublicdm: *const super::Gdi::DEVMODEA, poemdm: *const core::ffi::c_void, ulquerymode: u32, pvprofiledata: *mut core::ffi::c_void, pcbprofiledata: *mut u32, pflprofiledata: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn QueryColorProfile(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, poemuiobj: *const OEMUIOBJ, ppublicdm: *const super::Gdi::DEVMODEA, poemdm: *const core::ffi::c_void, ulquerymode: u32, pvprofiledata: *mut core::ffi::c_void, pcbprofiledata: *mut u32, pflprofiledata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::QueryColorProfile(this, core::mem::transmute_copy(&hprinter), core::mem::transmute_copy(&poemuiobj), core::mem::transmute_copy(&ppublicdm), core::mem::transmute_copy(&poemdm), core::mem::transmute_copy(&ulquerymode), core::mem::transmute_copy(&pvprofiledata), core::mem::transmute_copy(&pcbprofiledata), core::mem::transmute_copy(&pflprofiledata)).into() } - unsafe extern "system" fn FontInstallerDlgProc(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, usmsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn FontInstallerDlgProc(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, usmsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::FontInstallerDlgProc(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&usmsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn UpdateExternalFonts(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, hheap: super::super::Foundation::HANDLE, pwstrcartridges: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPrintOemUI_Impl, - { + unsafe extern "system" fn UpdateExternalFonts(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, hheap: super::super::Foundation::HANDLE, pwstrcartridges: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI_Impl::UpdateExternalFonts(this, core::mem::transmute_copy(&hprinter), core::mem::transmute_copy(&hheap), core::mem::transmute(&pwstrcartridges)).into() } @@ -2101,28 +1582,16 @@ pub trait IPrintOemUI2_Impl: Sized + IPrintOemUI_Impl { impl windows_core::RuntimeName for IPrintOemUI2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IPrintOemUI2_Vtbl { - pub const fn new() -> IPrintOemUI2_Vtbl - where - Identity: IPrintOemUI2_Impl, - { - unsafe extern "system" fn QueryJobAttributes(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, pdevmode: *const super::Gdi::DEVMODEA, dwlevel: u32, lpattributeinfo: *const u8) -> windows_core::HRESULT - where - Identity: IPrintOemUI2_Impl, - { + pub const fn new() -> IPrintOemUI2_Vtbl { + unsafe extern "system" fn QueryJobAttributes(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, pdevmode: *const super::Gdi::DEVMODEA, dwlevel: u32, lpattributeinfo: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI2_Impl::QueryJobAttributes(this, core::mem::transmute_copy(&hprinter), core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&dwlevel), core::mem::transmute_copy(&lpattributeinfo)).into() } - unsafe extern "system" fn HideStandardUI(this: *mut core::ffi::c_void, dwmode: u32) -> windows_core::HRESULT - where - Identity: IPrintOemUI2_Impl, - { + unsafe extern "system" fn HideStandardUI(this: *mut core::ffi::c_void, dwmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI2_Impl::HideStandardUI(this, core::mem::transmute_copy(&dwmode)).into() } - unsafe extern "system" fn DocumentEvent(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, hdc: super::Gdi::HDC, iesc: i32, cbin: u32, pvin: *mut core::ffi::c_void, cbout: u32, pvout: *mut core::ffi::c_void, piresult: *mut i32) -> windows_core::HRESULT - where - Identity: IPrintOemUI2_Impl, - { + unsafe extern "system" fn DocumentEvent(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, hdc: super::Gdi::HDC, iesc: i32, cbin: u32, pvin: *mut core::ffi::c_void, cbout: u32, pvout: *mut core::ffi::c_void, piresult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUI2_Impl::DocumentEvent(this, core::mem::transmute_copy(&hprinter), core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&iesc), core::mem::transmute_copy(&cbin), core::mem::transmute_copy(&pvin), core::mem::transmute_copy(&cbout), core::mem::transmute_copy(&pvout), core::mem::transmute_copy(&piresult)).into() } @@ -2138,7 +1607,7 @@ impl IPrintOemUI2_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IPrintOemUIMXDC_Impl: Sized { +pub trait IPrintOemUIMXDC_Impl: Sized + windows_core::IUnknownImpl { fn AdjustImageableArea(&self, hprinter: super::super::Foundation::HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, prclimageablearea: *mut super::super::Foundation::RECTL) -> windows_core::Result<()>; fn AdjustImageCompression(&self, hprinter: super::super::Foundation::HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, pcompressionmode: *mut i32) -> windows_core::Result<()>; fn AdjustDPI(&self, hprinter: super::super::Foundation::HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, pdpi: *mut i32) -> windows_core::Result<()>; @@ -2147,28 +1616,16 @@ pub trait IPrintOemUIMXDC_Impl: Sized { impl windows_core::RuntimeName for IPrintOemUIMXDC {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IPrintOemUIMXDC_Vtbl { - pub const fn new() -> IPrintOemUIMXDC_Vtbl - where - Identity: IPrintOemUIMXDC_Impl, - { - unsafe extern "system" fn AdjustImageableArea(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, prclimageablearea: *mut super::super::Foundation::RECTL) -> windows_core::HRESULT - where - Identity: IPrintOemUIMXDC_Impl, - { + pub const fn new() -> IPrintOemUIMXDC_Vtbl { + unsafe extern "system" fn AdjustImageableArea(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, prclimageablearea: *mut super::super::Foundation::RECTL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUIMXDC_Impl::AdjustImageableArea(this, core::mem::transmute_copy(&hprinter), core::mem::transmute_copy(&cbdevmode), core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&cboemdm), core::mem::transmute_copy(&poemdm), core::mem::transmute_copy(&prclimageablearea)).into() } - unsafe extern "system" fn AdjustImageCompression(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, pcompressionmode: *mut i32) -> windows_core::HRESULT - where - Identity: IPrintOemUIMXDC_Impl, - { + unsafe extern "system" fn AdjustImageCompression(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, pcompressionmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUIMXDC_Impl::AdjustImageCompression(this, core::mem::transmute_copy(&hprinter), core::mem::transmute_copy(&cbdevmode), core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&cboemdm), core::mem::transmute_copy(&poemdm), core::mem::transmute_copy(&pcompressionmode)).into() } - unsafe extern "system" fn AdjustDPI(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, pdpi: *mut i32) -> windows_core::HRESULT - where - Identity: IPrintOemUIMXDC_Impl, - { + unsafe extern "system" fn AdjustDPI(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, cbdevmode: u32, pdevmode: *const super::Gdi::DEVMODEA, cboemdm: u32, poemdm: *const core::ffi::c_void, pdpi: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintOemUIMXDC_Impl::AdjustDPI(this, core::mem::transmute_copy(&hprinter), core::mem::transmute_copy(&cbdevmode), core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&cboemdm), core::mem::transmute_copy(&poemdm), core::mem::transmute_copy(&pdpi)).into() } @@ -2183,35 +1640,23 @@ impl IPrintOemUIMXDC_Vtbl { iid == &::IID } } -pub trait IPrintPipelineFilter_Impl: Sized { +pub trait IPrintPipelineFilter_Impl: Sized + windows_core::IUnknownImpl { fn InitializeFilter(&self, pinegotiation: Option<&IInterFilterCommunicator>, pipropertybag: Option<&IPrintPipelinePropertyBag>, pipipelinecontrol: Option<&IPrintPipelineManagerControl>) -> windows_core::Result<()>; fn ShutdownOperation(&self) -> windows_core::Result<()>; fn StartOperation(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintPipelineFilter {} impl IPrintPipelineFilter_Vtbl { - pub const fn new() -> IPrintPipelineFilter_Vtbl - where - Identity: IPrintPipelineFilter_Impl, - { - unsafe extern "system" fn InitializeFilter(this: *mut core::ffi::c_void, pinegotiation: *mut core::ffi::c_void, pipropertybag: *mut core::ffi::c_void, pipipelinecontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintPipelineFilter_Impl, - { + pub const fn new() -> IPrintPipelineFilter_Vtbl { + unsafe extern "system" fn InitializeFilter(this: *mut core::ffi::c_void, pinegotiation: *mut core::ffi::c_void, pipropertybag: *mut core::ffi::c_void, pipipelinecontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPipelineFilter_Impl::InitializeFilter(this, windows_core::from_raw_borrowed(&pinegotiation), windows_core::from_raw_borrowed(&pipropertybag), windows_core::from_raw_borrowed(&pipipelinecontrol)).into() } - unsafe extern "system" fn ShutdownOperation(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintPipelineFilter_Impl, - { + unsafe extern "system" fn ShutdownOperation(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPipelineFilter_Impl::ShutdownOperation(this).into() } - unsafe extern "system" fn StartOperation(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintPipelineFilter_Impl, - { + unsafe extern "system" fn StartOperation(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPipelineFilter_Impl::StartOperation(this).into() } @@ -2227,7 +1672,7 @@ impl IPrintPipelineFilter_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IPrintPipelineManagerControl_Impl: Sized { +pub trait IPrintPipelineManagerControl_Impl: Sized + windows_core::IUnknownImpl { fn RequestShutdown(&self, hrreason: windows_core::HRESULT, preason: Option<&IImgErrorInfo>) -> windows_core::Result<()>; fn FilterFinished(&self) -> windows_core::Result<()>; } @@ -2235,21 +1680,12 @@ pub trait IPrintPipelineManagerControl_Impl: Sized { impl windows_core::RuntimeName for IPrintPipelineManagerControl {} #[cfg(feature = "Win32_System_Com")] impl IPrintPipelineManagerControl_Vtbl { - pub const fn new() -> IPrintPipelineManagerControl_Vtbl - where - Identity: IPrintPipelineManagerControl_Impl, - { - unsafe extern "system" fn RequestShutdown(this: *mut core::ffi::c_void, hrreason: windows_core::HRESULT, preason: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintPipelineManagerControl_Impl, - { + pub const fn new() -> IPrintPipelineManagerControl_Vtbl { + unsafe extern "system" fn RequestShutdown(this: *mut core::ffi::c_void, hrreason: windows_core::HRESULT, preason: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPipelineManagerControl_Impl::RequestShutdown(this, core::mem::transmute_copy(&hrreason), windows_core::from_raw_borrowed(&preason)).into() } - unsafe extern "system" fn FilterFinished(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintPipelineManagerControl_Impl, - { + unsafe extern "system" fn FilterFinished(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPipelineManagerControl_Impl::FilterFinished(this).into() } @@ -2263,19 +1699,13 @@ impl IPrintPipelineManagerControl_Vtbl { iid == &::IID } } -pub trait IPrintPipelineProgressReport_Impl: Sized { +pub trait IPrintPipelineProgressReport_Impl: Sized + windows_core::IUnknownImpl { fn ReportProgress(&self, update: EXpsJobConsumption) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintPipelineProgressReport {} impl IPrintPipelineProgressReport_Vtbl { - pub const fn new() -> IPrintPipelineProgressReport_Vtbl - where - Identity: IPrintPipelineProgressReport_Impl, - { - unsafe extern "system" fn ReportProgress(this: *mut core::ffi::c_void, update: EXpsJobConsumption) -> windows_core::HRESULT - where - Identity: IPrintPipelineProgressReport_Impl, - { + pub const fn new() -> IPrintPipelineProgressReport_Vtbl { + unsafe extern "system" fn ReportProgress(this: *mut core::ffi::c_void, update: EXpsJobConsumption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPipelineProgressReport_Impl::ReportProgress(this, core::mem::transmute_copy(&update)).into() } @@ -2285,28 +1715,19 @@ impl IPrintPipelineProgressReport_Vtbl { iid == &::IID } } -pub trait IPrintPipelinePropertyBag_Impl: Sized { +pub trait IPrintPipelinePropertyBag_Impl: Sized + windows_core::IUnknownImpl { fn AddProperty(&self, pszname: &windows_core::PCWSTR, pvar: *const windows_core::VARIANT) -> windows_core::Result<()>; fn GetProperty(&self, pszname: &windows_core::PCWSTR) -> windows_core::Result; fn DeleteProperty(&self, pszname: &windows_core::PCWSTR) -> super::super::Foundation::BOOL; } impl windows_core::RuntimeName for IPrintPipelinePropertyBag {} impl IPrintPipelinePropertyBag_Vtbl { - pub const fn new() -> IPrintPipelinePropertyBag_Vtbl - where - Identity: IPrintPipelinePropertyBag_Impl, - { - unsafe extern "system" fn AddProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintPipelinePropertyBag_Impl, - { + pub const fn new() -> IPrintPipelinePropertyBag_Vtbl { + unsafe extern "system" fn AddProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPipelinePropertyBag_Impl::AddProperty(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&pvar)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintPipelinePropertyBag_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintPipelinePropertyBag_Impl::GetProperty(this, core::mem::transmute(&pszname)) { Ok(ok__) => { @@ -2316,10 +1737,7 @@ impl IPrintPipelinePropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> super::super::Foundation::BOOL - where - Identity: IPrintPipelinePropertyBag_Impl, - { + unsafe extern "system" fn DeleteProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPipelinePropertyBag_Impl::DeleteProperty(this, core::mem::transmute(&pszname)) } @@ -2335,7 +1753,7 @@ impl IPrintPipelinePropertyBag_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi")] -pub trait IPrintPreviewDxgiPackageTarget_Impl: Sized { +pub trait IPrintPreviewDxgiPackageTarget_Impl: Sized + windows_core::IUnknownImpl { fn SetJobPageCount(&self, counttype: PageCountType, count: u32) -> windows_core::Result<()>; fn DrawPage(&self, jobpagenumber: u32, pageimage: Option<&super::Dxgi::IDXGISurface>, dpix: f32, dpiy: f32) -> windows_core::Result<()>; fn InvalidatePreview(&self) -> windows_core::Result<()>; @@ -2344,28 +1762,16 @@ pub trait IPrintPreviewDxgiPackageTarget_Impl: Sized { impl windows_core::RuntimeName for IPrintPreviewDxgiPackageTarget {} #[cfg(feature = "Win32_Graphics_Dxgi")] impl IPrintPreviewDxgiPackageTarget_Vtbl { - pub const fn new() -> IPrintPreviewDxgiPackageTarget_Vtbl - where - Identity: IPrintPreviewDxgiPackageTarget_Impl, - { - unsafe extern "system" fn SetJobPageCount(this: *mut core::ffi::c_void, counttype: PageCountType, count: u32) -> windows_core::HRESULT - where - Identity: IPrintPreviewDxgiPackageTarget_Impl, - { + pub const fn new() -> IPrintPreviewDxgiPackageTarget_Vtbl { + unsafe extern "system" fn SetJobPageCount(this: *mut core::ffi::c_void, counttype: PageCountType, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPreviewDxgiPackageTarget_Impl::SetJobPageCount(this, core::mem::transmute_copy(&counttype), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn DrawPage(this: *mut core::ffi::c_void, jobpagenumber: u32, pageimage: *mut core::ffi::c_void, dpix: f32, dpiy: f32) -> windows_core::HRESULT - where - Identity: IPrintPreviewDxgiPackageTarget_Impl, - { + unsafe extern "system" fn DrawPage(this: *mut core::ffi::c_void, jobpagenumber: u32, pageimage: *mut core::ffi::c_void, dpix: f32, dpiy: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPreviewDxgiPackageTarget_Impl::DrawPage(this, core::mem::transmute_copy(&jobpagenumber), windows_core::from_raw_borrowed(&pageimage), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy)).into() } - unsafe extern "system" fn InvalidatePreview(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintPreviewDxgiPackageTarget_Impl, - { + unsafe extern "system" fn InvalidatePreview(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPreviewDxgiPackageTarget_Impl::InvalidatePreview(this).into() } @@ -2380,27 +1786,18 @@ impl IPrintPreviewDxgiPackageTarget_Vtbl { iid == &::IID } } -pub trait IPrintReadStream_Impl: Sized { +pub trait IPrintReadStream_Impl: Sized + windows_core::IUnknownImpl { fn Seek(&self, dlibmove: i64, dworigin: u32, plibnewposition: *mut u64) -> windows_core::Result<()>; fn ReadBytes(&self, pvbuffer: *mut core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintReadStream {} impl IPrintReadStream_Vtbl { - pub const fn new() -> IPrintReadStream_Vtbl - where - Identity: IPrintReadStream_Impl, - { - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, dlibmove: i64, dworigin: u32, plibnewposition: *mut u64) -> windows_core::HRESULT - where - Identity: IPrintReadStream_Impl, - { + pub const fn new() -> IPrintReadStream_Vtbl { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, dlibmove: i64, dworigin: u32, plibnewposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintReadStream_Impl::Seek(this, core::mem::transmute_copy(&dlibmove), core::mem::transmute_copy(&dworigin), core::mem::transmute_copy(&plibnewposition)).into() } - unsafe extern "system" fn ReadBytes(this: *mut core::ffi::c_void, pvbuffer: *mut core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPrintReadStream_Impl, - { + unsafe extern "system" fn ReadBytes(this: *mut core::ffi::c_void, pvbuffer: *mut core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintReadStream_Impl::ReadBytes(this, core::mem::transmute_copy(&pvbuffer), core::mem::transmute_copy(&cbrequested), core::mem::transmute_copy(&pcbread), core::mem::transmute_copy(&pbendoffile)).into() } @@ -2410,19 +1807,13 @@ impl IPrintReadStream_Vtbl { iid == &::IID } } -pub trait IPrintReadStreamFactory_Impl: Sized { +pub trait IPrintReadStreamFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetStream(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPrintReadStreamFactory {} impl IPrintReadStreamFactory_Vtbl { - pub const fn new() -> IPrintReadStreamFactory_Vtbl - where - Identity: IPrintReadStreamFactory_Impl, - { - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintReadStreamFactory_Impl, - { + pub const fn new() -> IPrintReadStreamFactory_Vtbl { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintReadStreamFactory_Impl::GetStream(this) { Ok(ok__) => { @@ -2447,21 +1838,12 @@ pub trait IPrintSchemaAsyncOperation_Impl: Sized + super::super::System::Com::ID impl windows_core::RuntimeName for IPrintSchemaAsyncOperation {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaAsyncOperation_Vtbl { - pub const fn new() -> IPrintSchemaAsyncOperation_Vtbl - where - Identity: IPrintSchemaAsyncOperation_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaAsyncOperation_Impl, - { + pub const fn new() -> IPrintSchemaAsyncOperation_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintSchemaAsyncOperation_Impl::Start(this).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaAsyncOperation_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintSchemaAsyncOperation_Impl::Cancel(this).into() } @@ -2483,14 +1865,8 @@ pub trait IPrintSchemaAsyncOperationEvent_Impl: Sized + super::super::System::Co impl windows_core::RuntimeName for IPrintSchemaAsyncOperationEvent {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaAsyncOperationEvent_Vtbl { - pub const fn new() -> IPrintSchemaAsyncOperationEvent_Vtbl - where - Identity: IPrintSchemaAsyncOperationEvent_Impl, - { - unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, pticket: *mut core::ffi::c_void, hroperation: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPrintSchemaAsyncOperationEvent_Impl, - { + pub const fn new() -> IPrintSchemaAsyncOperationEvent_Vtbl { + unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, pticket: *mut core::ffi::c_void, hroperation: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintSchemaAsyncOperationEvent_Impl::Completed(this, windows_core::from_raw_borrowed(&pticket), core::mem::transmute_copy(&hroperation)).into() } @@ -2514,14 +1890,8 @@ pub trait IPrintSchemaCapabilities_Impl: Sized + IPrintSchemaElement_Impl { impl windows_core::RuntimeName for IPrintSchemaCapabilities {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaCapabilities_Vtbl { - pub const fn new() -> IPrintSchemaCapabilities_Vtbl - where - Identity: IPrintSchemaCapabilities_Impl, - { - unsafe extern "system" fn GetFeatureByKeyName(this: *mut core::ffi::c_void, bstrkeyname: core::mem::MaybeUninit, ppfeature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaCapabilities_Impl, - { + pub const fn new() -> IPrintSchemaCapabilities_Vtbl { + unsafe extern "system" fn GetFeatureByKeyName(this: *mut core::ffi::c_void, bstrkeyname: core::mem::MaybeUninit, ppfeature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaCapabilities_Impl::GetFeatureByKeyName(this, core::mem::transmute(&bstrkeyname)) { Ok(ok__) => { @@ -2531,10 +1901,7 @@ impl IPrintSchemaCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFeature(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppfeature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaCapabilities_Impl, - { + unsafe extern "system" fn GetFeature(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppfeature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaCapabilities_Impl::GetFeature(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrnamespaceuri)) { Ok(ok__) => { @@ -2544,10 +1911,7 @@ impl IPrintSchemaCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PageImageableSize(this: *mut core::ffi::c_void, pppageimageablesize: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaCapabilities_Impl, - { + unsafe extern "system" fn PageImageableSize(this: *mut core::ffi::c_void, pppageimageablesize: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaCapabilities_Impl::PageImageableSize(this) { Ok(ok__) => { @@ -2557,10 +1921,7 @@ impl IPrintSchemaCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn JobCopiesAllDocumentsMinValue(this: *mut core::ffi::c_void, puljobcopiesalldocumentsminvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaCapabilities_Impl, - { + unsafe extern "system" fn JobCopiesAllDocumentsMinValue(this: *mut core::ffi::c_void, puljobcopiesalldocumentsminvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaCapabilities_Impl::JobCopiesAllDocumentsMinValue(this) { Ok(ok__) => { @@ -2570,10 +1931,7 @@ impl IPrintSchemaCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn JobCopiesAllDocumentsMaxValue(this: *mut core::ffi::c_void, puljobcopiesalldocumentsmaxvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaCapabilities_Impl, - { + unsafe extern "system" fn JobCopiesAllDocumentsMaxValue(this: *mut core::ffi::c_void, puljobcopiesalldocumentsmaxvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaCapabilities_Impl::JobCopiesAllDocumentsMaxValue(this) { Ok(ok__) => { @@ -2583,10 +1941,7 @@ impl IPrintSchemaCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectedOptionInPrintTicket(this: *mut core::ffi::c_void, pfeature: *mut core::ffi::c_void, ppoption: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaCapabilities_Impl, - { + unsafe extern "system" fn GetSelectedOptionInPrintTicket(this: *mut core::ffi::c_void, pfeature: *mut core::ffi::c_void, ppoption: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaCapabilities_Impl::GetSelectedOptionInPrintTicket(this, windows_core::from_raw_borrowed(&pfeature)) { Ok(ok__) => { @@ -2596,10 +1951,7 @@ impl IPrintSchemaCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, pfeature: *mut core::ffi::c_void, ppoptioncollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaCapabilities_Impl, - { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, pfeature: *mut core::ffi::c_void, ppoptioncollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaCapabilities_Impl::GetOptions(this, windows_core::from_raw_borrowed(&pfeature)) { Ok(ok__) => { @@ -2632,14 +1984,8 @@ pub trait IPrintSchemaCapabilities2_Impl: Sized + IPrintSchemaCapabilities_Impl impl windows_core::RuntimeName for IPrintSchemaCapabilities2 {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaCapabilities2_Vtbl { - pub const fn new() -> IPrintSchemaCapabilities2_Vtbl - where - Identity: IPrintSchemaCapabilities2_Impl, - { - unsafe extern "system" fn GetParameterDefinition(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppparameterdefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaCapabilities2_Impl, - { + pub const fn new() -> IPrintSchemaCapabilities2_Vtbl { + unsafe extern "system" fn GetParameterDefinition(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppparameterdefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaCapabilities2_Impl::GetParameterDefinition(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrnamespaceuri)) { Ok(ok__) => { @@ -2663,14 +2009,8 @@ pub trait IPrintSchemaDisplayableElement_Impl: Sized + IPrintSchemaElement_Impl impl windows_core::RuntimeName for IPrintSchemaDisplayableElement {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaDisplayableElement_Vtbl { - pub const fn new() -> IPrintSchemaDisplayableElement_Vtbl - where - Identity: IPrintSchemaDisplayableElement_Impl, - { - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pbstrdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintSchemaDisplayableElement_Impl, - { + pub const fn new() -> IPrintSchemaDisplayableElement_Vtbl { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pbstrdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaDisplayableElement_Impl::DisplayName(this) { Ok(ok__) => { @@ -2696,14 +2036,8 @@ pub trait IPrintSchemaElement_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IPrintSchemaElement {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaElement_Vtbl { - pub const fn new() -> IPrintSchemaElement_Vtbl - where - Identity: IPrintSchemaElement_Impl, - { - unsafe extern "system" fn XmlNode(this: *mut core::ffi::c_void, ppxmlnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaElement_Impl, - { + pub const fn new() -> IPrintSchemaElement_Vtbl { + unsafe extern "system" fn XmlNode(this: *mut core::ffi::c_void, ppxmlnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaElement_Impl::XmlNode(this) { Ok(ok__) => { @@ -2713,10 +2047,7 @@ impl IPrintSchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintSchemaElement_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaElement_Impl::Name(this) { Ok(ok__) => { @@ -2726,10 +2057,7 @@ impl IPrintSchemaElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NamespaceUri(this: *mut core::ffi::c_void, pbstrnamespaceuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintSchemaElement_Impl, - { + unsafe extern "system" fn NamespaceUri(this: *mut core::ffi::c_void, pbstrnamespaceuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaElement_Impl::NamespaceUri(this) { Ok(ok__) => { @@ -2762,14 +2090,8 @@ pub trait IPrintSchemaFeature_Impl: Sized + IPrintSchemaDisplayableElement_Impl impl windows_core::RuntimeName for IPrintSchemaFeature {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaFeature_Vtbl { - pub const fn new() -> IPrintSchemaFeature_Vtbl - where - Identity: IPrintSchemaFeature_Impl, - { - unsafe extern "system" fn SelectedOption(this: *mut core::ffi::c_void, ppoption: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaFeature_Impl, - { + pub const fn new() -> IPrintSchemaFeature_Vtbl { + unsafe extern "system" fn SelectedOption(this: *mut core::ffi::c_void, ppoption: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaFeature_Impl::SelectedOption(this) { Ok(ok__) => { @@ -2779,17 +2101,11 @@ impl IPrintSchemaFeature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelectedOption(this: *mut core::ffi::c_void, poption: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaFeature_Impl, - { + unsafe extern "system" fn SetSelectedOption(this: *mut core::ffi::c_void, poption: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintSchemaFeature_Impl::SetSelectedOption(this, windows_core::from_raw_borrowed(&poption)).into() } - unsafe extern "system" fn SelectionType(this: *mut core::ffi::c_void, pselectiontype: *mut PrintSchemaSelectionType) -> windows_core::HRESULT - where - Identity: IPrintSchemaFeature_Impl, - { + unsafe extern "system" fn SelectionType(this: *mut core::ffi::c_void, pselectiontype: *mut PrintSchemaSelectionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaFeature_Impl::SelectionType(this) { Ok(ok__) => { @@ -2799,10 +2115,7 @@ impl IPrintSchemaFeature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOption(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppoption: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaFeature_Impl, - { + unsafe extern "system" fn GetOption(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppoption: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaFeature_Impl::GetOption(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrnamespaceuri)) { Ok(ok__) => { @@ -2812,10 +2125,7 @@ impl IPrintSchemaFeature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPrintSchemaFeature_Impl, - { + unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaFeature_Impl::DisplayUI(this) { Ok(ok__) => { @@ -2846,14 +2156,8 @@ pub trait IPrintSchemaNUpOption_Impl: Sized + IPrintSchemaOption_Impl { impl windows_core::RuntimeName for IPrintSchemaNUpOption {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaNUpOption_Vtbl { - pub const fn new() -> IPrintSchemaNUpOption_Vtbl - where - Identity: IPrintSchemaNUpOption_Impl, - { - unsafe extern "system" fn PagesPerSheet(this: *mut core::ffi::c_void, pulpagespersheet: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaNUpOption_Impl, - { + pub const fn new() -> IPrintSchemaNUpOption_Vtbl { + unsafe extern "system" fn PagesPerSheet(this: *mut core::ffi::c_void, pulpagespersheet: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaNUpOption_Impl::PagesPerSheet(this) { Ok(ok__) => { @@ -2879,14 +2183,8 @@ pub trait IPrintSchemaOption_Impl: Sized + IPrintSchemaDisplayableElement_Impl { impl windows_core::RuntimeName for IPrintSchemaOption {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaOption_Vtbl { - pub const fn new() -> IPrintSchemaOption_Vtbl - where - Identity: IPrintSchemaOption_Impl, - { - unsafe extern "system" fn Selected(this: *mut core::ffi::c_void, pbisselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPrintSchemaOption_Impl, - { + pub const fn new() -> IPrintSchemaOption_Vtbl { + unsafe extern "system" fn Selected(this: *mut core::ffi::c_void, pbisselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaOption_Impl::Selected(this) { Ok(ok__) => { @@ -2896,10 +2194,7 @@ impl IPrintSchemaOption_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Constrained(this: *mut core::ffi::c_void, psetting: *mut PrintSchemaConstrainedSetting) -> windows_core::HRESULT - where - Identity: IPrintSchemaOption_Impl, - { + unsafe extern "system" fn Constrained(this: *mut core::ffi::c_void, psetting: *mut PrintSchemaConstrainedSetting) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaOption_Impl::Constrained(this) { Ok(ok__) => { @@ -2909,10 +2204,7 @@ impl IPrintSchemaOption_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyValue(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppxmlvaluenode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaOption_Impl, - { + unsafe extern "system" fn GetPropertyValue(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppxmlvaluenode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaOption_Impl::GetPropertyValue(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrnamespaceuri)) { Ok(ok__) => { @@ -2943,14 +2235,8 @@ pub trait IPrintSchemaOptionCollection_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for IPrintSchemaOptionCollection {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaOptionCollection_Vtbl { - pub const fn new() -> IPrintSchemaOptionCollection_Vtbl - where - Identity: IPrintSchemaOptionCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaOptionCollection_Impl, - { + pub const fn new() -> IPrintSchemaOptionCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaOptionCollection_Impl::Count(this) { Ok(ok__) => { @@ -2960,10 +2246,7 @@ impl IPrintSchemaOptionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, ulindex: u32, ppoption: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaOptionCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, ulindex: u32, ppoption: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaOptionCollection_Impl::GetAt(this, core::mem::transmute_copy(&ulindex)) { Ok(ok__) => { @@ -2973,10 +2256,7 @@ impl IPrintSchemaOptionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaOptionCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaOptionCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3010,14 +2290,8 @@ pub trait IPrintSchemaPageImageableSize_Impl: Sized + IPrintSchemaElement_Impl { impl windows_core::RuntimeName for IPrintSchemaPageImageableSize {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaPageImageableSize_Vtbl { - pub const fn new() -> IPrintSchemaPageImageableSize_Vtbl - where - Identity: IPrintSchemaPageImageableSize_Impl, - { - unsafe extern "system" fn ImageableSizeWidthInMicrons(this: *mut core::ffi::c_void, pulimageablesizewidth: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaPageImageableSize_Impl, - { + pub const fn new() -> IPrintSchemaPageImageableSize_Vtbl { + unsafe extern "system" fn ImageableSizeWidthInMicrons(this: *mut core::ffi::c_void, pulimageablesizewidth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaPageImageableSize_Impl::ImageableSizeWidthInMicrons(this) { Ok(ok__) => { @@ -3027,10 +2301,7 @@ impl IPrintSchemaPageImageableSize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImageableSizeHeightInMicrons(this: *mut core::ffi::c_void, pulimageablesizeheight: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaPageImageableSize_Impl, - { + unsafe extern "system" fn ImageableSizeHeightInMicrons(this: *mut core::ffi::c_void, pulimageablesizeheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaPageImageableSize_Impl::ImageableSizeHeightInMicrons(this) { Ok(ok__) => { @@ -3040,10 +2311,7 @@ impl IPrintSchemaPageImageableSize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OriginWidthInMicrons(this: *mut core::ffi::c_void, puloriginwidth: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaPageImageableSize_Impl, - { + unsafe extern "system" fn OriginWidthInMicrons(this: *mut core::ffi::c_void, puloriginwidth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaPageImageableSize_Impl::OriginWidthInMicrons(this) { Ok(ok__) => { @@ -3053,10 +2321,7 @@ impl IPrintSchemaPageImageableSize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OriginHeightInMicrons(this: *mut core::ffi::c_void, puloriginheight: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaPageImageableSize_Impl, - { + unsafe extern "system" fn OriginHeightInMicrons(this: *mut core::ffi::c_void, puloriginheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaPageImageableSize_Impl::OriginHeightInMicrons(this) { Ok(ok__) => { @@ -3066,10 +2331,7 @@ impl IPrintSchemaPageImageableSize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtentWidthInMicrons(this: *mut core::ffi::c_void, pulextentwidth: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaPageImageableSize_Impl, - { + unsafe extern "system" fn ExtentWidthInMicrons(this: *mut core::ffi::c_void, pulextentwidth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaPageImageableSize_Impl::ExtentWidthInMicrons(this) { Ok(ok__) => { @@ -3079,10 +2341,7 @@ impl IPrintSchemaPageImageableSize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtentHeightInMicrons(this: *mut core::ffi::c_void, pulextentheight: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaPageImageableSize_Impl, - { + unsafe extern "system" fn ExtentHeightInMicrons(this: *mut core::ffi::c_void, pulextentheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaPageImageableSize_Impl::ExtentHeightInMicrons(this) { Ok(ok__) => { @@ -3115,14 +2374,8 @@ pub trait IPrintSchemaPageMediaSizeOption_Impl: Sized + IPrintSchemaOption_Impl impl windows_core::RuntimeName for IPrintSchemaPageMediaSizeOption {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaPageMediaSizeOption_Vtbl { - pub const fn new() -> IPrintSchemaPageMediaSizeOption_Vtbl - where - Identity: IPrintSchemaPageMediaSizeOption_Impl, - { - unsafe extern "system" fn WidthInMicrons(this: *mut core::ffi::c_void, pulwidth: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaPageMediaSizeOption_Impl, - { + pub const fn new() -> IPrintSchemaPageMediaSizeOption_Vtbl { + unsafe extern "system" fn WidthInMicrons(this: *mut core::ffi::c_void, pulwidth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaPageMediaSizeOption_Impl::WidthInMicrons(this) { Ok(ok__) => { @@ -3132,10 +2385,7 @@ impl IPrintSchemaPageMediaSizeOption_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HeightInMicrons(this: *mut core::ffi::c_void, pulheight: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaPageMediaSizeOption_Impl, - { + unsafe extern "system" fn HeightInMicrons(this: *mut core::ffi::c_void, pulheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaPageMediaSizeOption_Impl::HeightInMicrons(this) { Ok(ok__) => { @@ -3167,14 +2417,8 @@ pub trait IPrintSchemaParameterDefinition_Impl: Sized + IPrintSchemaDisplayableE impl windows_core::RuntimeName for IPrintSchemaParameterDefinition {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaParameterDefinition_Vtbl { - pub const fn new() -> IPrintSchemaParameterDefinition_Vtbl - where - Identity: IPrintSchemaParameterDefinition_Impl, - { - unsafe extern "system" fn UserInputRequired(this: *mut core::ffi::c_void, pbisrequired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPrintSchemaParameterDefinition_Impl, - { + pub const fn new() -> IPrintSchemaParameterDefinition_Vtbl { + unsafe extern "system" fn UserInputRequired(this: *mut core::ffi::c_void, pbisrequired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaParameterDefinition_Impl::UserInputRequired(this) { Ok(ok__) => { @@ -3184,10 +2428,7 @@ impl IPrintSchemaParameterDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnitType(this: *mut core::ffi::c_void, pbstrunittype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintSchemaParameterDefinition_Impl, - { + unsafe extern "system" fn UnitType(this: *mut core::ffi::c_void, pbstrunittype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaParameterDefinition_Impl::UnitType(this) { Ok(ok__) => { @@ -3197,10 +2438,7 @@ impl IPrintSchemaParameterDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DataType(this: *mut core::ffi::c_void, pdatatype: *mut PrintSchemaParameterDataType) -> windows_core::HRESULT - where - Identity: IPrintSchemaParameterDefinition_Impl, - { + unsafe extern "system" fn DataType(this: *mut core::ffi::c_void, pdatatype: *mut PrintSchemaParameterDataType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaParameterDefinition_Impl::DataType(this) { Ok(ok__) => { @@ -3210,10 +2448,7 @@ impl IPrintSchemaParameterDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RangeMin(this: *mut core::ffi::c_void, prangemin: *mut i32) -> windows_core::HRESULT - where - Identity: IPrintSchemaParameterDefinition_Impl, - { + unsafe extern "system" fn RangeMin(this: *mut core::ffi::c_void, prangemin: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaParameterDefinition_Impl::RangeMin(this) { Ok(ok__) => { @@ -3223,10 +2458,7 @@ impl IPrintSchemaParameterDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RangeMax(this: *mut core::ffi::c_void, prangemax: *mut i32) -> windows_core::HRESULT - where - Identity: IPrintSchemaParameterDefinition_Impl, - { + unsafe extern "system" fn RangeMax(this: *mut core::ffi::c_void, prangemax: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaParameterDefinition_Impl::RangeMax(this) { Ok(ok__) => { @@ -3258,14 +2490,8 @@ pub trait IPrintSchemaParameterInitializer_Impl: Sized + IPrintSchemaElement_Imp impl windows_core::RuntimeName for IPrintSchemaParameterInitializer {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaParameterInitializer_Vtbl { - pub const fn new() -> IPrintSchemaParameterInitializer_Vtbl - where - Identity: IPrintSchemaParameterInitializer_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintSchemaParameterInitializer_Impl, - { + pub const fn new() -> IPrintSchemaParameterInitializer_Vtbl { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaParameterInitializer_Impl::Value(this) { Ok(ok__) => { @@ -3275,10 +2501,7 @@ impl IPrintSchemaParameterInitializer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintSchemaParameterInitializer_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintSchemaParameterInitializer_Impl::SetValue(this, core::mem::transmute_copy(&pvar)).into() } @@ -3303,14 +2526,8 @@ pub trait IPrintSchemaTicket_Impl: Sized + IPrintSchemaElement_Impl { impl windows_core::RuntimeName for IPrintSchemaTicket {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaTicket_Vtbl { - pub const fn new() -> IPrintSchemaTicket_Vtbl - where - Identity: IPrintSchemaTicket_Impl, - { - unsafe extern "system" fn GetFeatureByKeyName(this: *mut core::ffi::c_void, bstrkeyname: core::mem::MaybeUninit, ppfeature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaTicket_Impl, - { + pub const fn new() -> IPrintSchemaTicket_Vtbl { + unsafe extern "system" fn GetFeatureByKeyName(this: *mut core::ffi::c_void, bstrkeyname: core::mem::MaybeUninit, ppfeature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaTicket_Impl::GetFeatureByKeyName(this, core::mem::transmute(&bstrkeyname)) { Ok(ok__) => { @@ -3320,10 +2537,7 @@ impl IPrintSchemaTicket_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFeature(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppfeature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaTicket_Impl, - { + unsafe extern "system" fn GetFeature(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppfeature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaTicket_Impl::GetFeature(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrnamespaceuri)) { Ok(ok__) => { @@ -3333,10 +2547,7 @@ impl IPrintSchemaTicket_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ValidateAsync(this: *mut core::ffi::c_void, ppasyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaTicket_Impl, - { + unsafe extern "system" fn ValidateAsync(this: *mut core::ffi::c_void, ppasyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaTicket_Impl::ValidateAsync(this) { Ok(ok__) => { @@ -3346,10 +2557,7 @@ impl IPrintSchemaTicket_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommitAsync(this: *mut core::ffi::c_void, pprintticketcommit: *mut core::ffi::c_void, ppasyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaTicket_Impl, - { + unsafe extern "system" fn CommitAsync(this: *mut core::ffi::c_void, pprintticketcommit: *mut core::ffi::c_void, ppasyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaTicket_Impl::CommitAsync(this, windows_core::from_raw_borrowed(&pprintticketcommit)) { Ok(ok__) => { @@ -3359,17 +2567,11 @@ impl IPrintSchemaTicket_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyXmlChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaTicket_Impl, - { + unsafe extern "system" fn NotifyXmlChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintSchemaTicket_Impl::NotifyXmlChanged(this).into() } - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, ppcapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaTicket_Impl, - { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, ppcapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaTicket_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -3379,10 +2581,7 @@ impl IPrintSchemaTicket_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn JobCopiesAllDocuments(this: *mut core::ffi::c_void, puljobcopiesalldocuments: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaTicket_Impl, - { + unsafe extern "system" fn JobCopiesAllDocuments(this: *mut core::ffi::c_void, puljobcopiesalldocuments: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaTicket_Impl::JobCopiesAllDocuments(this) { Ok(ok__) => { @@ -3392,10 +2591,7 @@ impl IPrintSchemaTicket_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJobCopiesAllDocuments(this: *mut core::ffi::c_void, uljobcopiesalldocuments: u32) -> windows_core::HRESULT - where - Identity: IPrintSchemaTicket_Impl, - { + unsafe extern "system" fn SetJobCopiesAllDocuments(this: *mut core::ffi::c_void, uljobcopiesalldocuments: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintSchemaTicket_Impl::SetJobCopiesAllDocuments(this, core::mem::transmute_copy(&uljobcopiesalldocuments)).into() } @@ -3423,14 +2619,8 @@ pub trait IPrintSchemaTicket2_Impl: Sized + IPrintSchemaTicket_Impl { impl windows_core::RuntimeName for IPrintSchemaTicket2 {} #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaTicket2_Vtbl { - pub const fn new() -> IPrintSchemaTicket2_Vtbl - where - Identity: IPrintSchemaTicket2_Impl, - { - unsafe extern "system" fn GetParameterInitializer(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppparameterinitializer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintSchemaTicket2_Impl, - { + pub const fn new() -> IPrintSchemaTicket2_Vtbl { + unsafe extern "system" fn GetParameterInitializer(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrnamespaceuri: core::mem::MaybeUninit, ppparameterinitializer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaTicket2_Impl::GetParameterInitializer(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrnamespaceuri)) { Ok(ok__) => { @@ -3447,7 +2637,7 @@ impl IPrintSchemaTicket2_Vtbl { } } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] -pub trait IPrintTicketProvider_Impl: Sized { +pub trait IPrintTicketProvider_Impl: Sized + windows_core::IUnknownImpl { 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 windows_core::BSTR) -> windows_core::Result<()>; fn QueryDeviceNamespace(&self, pdefaultnamespace: *mut windows_core::BSTR) -> windows_core::Result<()>; @@ -3460,49 +2650,28 @@ pub trait IPrintTicketProvider_Impl: Sized { impl windows_core::RuntimeName for IPrintTicketProvider {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IPrintTicketProvider_Vtbl { - pub const fn new() -> IPrintTicketProvider_Vtbl - where - Identity: IPrintTicketProvider_Impl, - { - unsafe extern "system" fn GetSupportedVersions(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, ppversions: *mut *mut i32, cversions: *mut i32) -> windows_core::HRESULT - where - Identity: IPrintTicketProvider_Impl, - { + pub const fn new() -> IPrintTicketProvider_Vtbl { + unsafe extern "system" fn GetSupportedVersions(this: *mut core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, ppversions: *mut *mut i32, cversions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTicketProvider_Impl::GetSupportedVersions(this, core::mem::transmute_copy(&hprinter), core::mem::transmute_copy(&ppversions), core::mem::transmute_copy(&cversions)).into() } - unsafe extern "system" fn BindPrinter(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 windows_core::BSTR) -> windows_core::HRESULT - where - Identity: IPrintTicketProvider_Impl, - { + unsafe extern "system" fn BindPrinter(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 windows_core::BSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTicketProvider_Impl::BindPrinter(this, 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(this: *mut core::ffi::c_void, pdefaultnamespace: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrintTicketProvider_Impl, - { + unsafe extern "system" fn QueryDeviceNamespace(this: *mut core::ffi::c_void, pdefaultnamespace: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTicketProvider_Impl::QueryDeviceNamespace(this, core::mem::transmute_copy(&pdefaultnamespace)).into() } - unsafe extern "system" fn ConvertPrintTicketToDevMode(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 - where - Identity: IPrintTicketProvider_Impl, - { + unsafe extern "system" fn ConvertPrintTicketToDevMode(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTicketProvider_Impl::ConvertPrintTicketToDevMode(this, windows_core::from_raw_borrowed(&pprintticket), core::mem::transmute_copy(&cbdevmodein), core::mem::transmute_copy(&pdevmodein), core::mem::transmute_copy(&pcbdevmodeout), core::mem::transmute_copy(&ppdevmodeout)).into() } - unsafe extern "system" fn ConvertDevModeToPrintTicket(this: *mut core::ffi::c_void, cbdevmode: u32, pdevmode: *mut super::Gdi::DEVMODEA, pprintticket: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintTicketProvider_Impl, - { + unsafe extern "system" fn ConvertDevModeToPrintTicket(this: *mut core::ffi::c_void, cbdevmode: u32, pdevmode: *mut super::Gdi::DEVMODEA, pprintticket: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTicketProvider_Impl::ConvertDevModeToPrintTicket(this, core::mem::transmute_copy(&cbdevmode), core::mem::transmute_copy(&pdevmode), windows_core::from_raw_borrowed(&pprintticket)).into() } - unsafe extern "system" fn GetPrintCapabilities(this: *mut core::ffi::c_void, pprintticket: *mut core::ffi::c_void, ppcapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintTicketProvider_Impl, - { + unsafe extern "system" fn GetPrintCapabilities(this: *mut core::ffi::c_void, pprintticket: *mut core::ffi::c_void, ppcapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTicketProvider_Impl::GetPrintCapabilities(this, windows_core::from_raw_borrowed(&pprintticket)) { Ok(ok__) => { @@ -3512,10 +2681,7 @@ impl IPrintTicketProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ValidatePrintTicket(this: *mut core::ffi::c_void, pbaseticket: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintTicketProvider_Impl, - { + unsafe extern "system" fn ValidatePrintTicket(this: *mut core::ffi::c_void, pbaseticket: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTicketProvider_Impl::ValidatePrintTicket(this, windows_core::from_raw_borrowed(&pbaseticket)).into() } @@ -3543,14 +2709,8 @@ pub trait IPrintTicketProvider2_Impl: Sized + IPrintTicketProvider_Impl { impl windows_core::RuntimeName for IPrintTicketProvider2 {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IPrintTicketProvider2_Vtbl { - pub const fn new() -> IPrintTicketProvider2_Vtbl - where - Identity: IPrintTicketProvider2_Impl, - { - unsafe extern "system" fn GetPrintDeviceCapabilities(this: *mut core::ffi::c_void, pprintticket: *mut core::ffi::c_void, ppdevicecapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintTicketProvider2_Impl, - { + pub const fn new() -> IPrintTicketProvider2_Vtbl { + unsafe extern "system" fn GetPrintDeviceCapabilities(this: *mut core::ffi::c_void, pprintticket: *mut core::ffi::c_void, ppdevicecapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTicketProvider2_Impl::GetPrintDeviceCapabilities(this, windows_core::from_raw_borrowed(&pprintticket)) { Ok(ok__) => { @@ -3560,10 +2720,7 @@ impl IPrintTicketProvider2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrintDeviceResources(this: *mut core::ffi::c_void, pszlocalename: windows_core::PCWSTR, pprintticket: *mut core::ffi::c_void, ppdeviceresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintTicketProvider2_Impl, - { + unsafe extern "system" fn GetPrintDeviceResources(this: *mut core::ffi::c_void, pszlocalename: windows_core::PCWSTR, pprintticket: *mut core::ffi::c_void, ppdeviceresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintTicketProvider2_Impl::GetPrintDeviceResources(this, core::mem::transmute(&pszlocalename), windows_core::from_raw_borrowed(&pprintticket)) { Ok(ok__) => { @@ -3588,14 +2745,8 @@ pub trait IPrintUnidiAsyncNotifyRegistration_Impl: Sized + IPrintAsyncNotifyRegi } impl windows_core::RuntimeName for IPrintUnidiAsyncNotifyRegistration {} impl IPrintUnidiAsyncNotifyRegistration_Vtbl { - pub const fn new() -> IPrintUnidiAsyncNotifyRegistration_Vtbl - where - Identity: IPrintUnidiAsyncNotifyRegistration_Impl, - { - unsafe extern "system" fn AsyncGetNotification(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintUnidiAsyncNotifyRegistration_Impl, - { + pub const fn new() -> IPrintUnidiAsyncNotifyRegistration_Vtbl { + unsafe extern "system" fn AsyncGetNotification(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintUnidiAsyncNotifyRegistration_Impl::AsyncGetNotification(this, windows_core::from_raw_borrowed(¶m0)).into() } @@ -3605,20 +2756,14 @@ impl IPrintUnidiAsyncNotifyRegistration_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPrintWriteStream_Impl: Sized { +pub trait IPrintWriteStream_Impl: Sized + windows_core::IUnknownImpl { fn WriteBytes(&self, pvbuffer: *const core::ffi::c_void, cbbuffer: u32) -> windows_core::Result; fn Close(&self); } impl windows_core::RuntimeName for IPrintWriteStream {} impl IPrintWriteStream_Vtbl { - pub const fn new() -> IPrintWriteStream_Vtbl - where - Identity: IPrintWriteStream_Impl, - { - unsafe extern "system" fn WriteBytes(this: *mut core::ffi::c_void, pvbuffer: *const core::ffi::c_void, cbbuffer: u32, pcbwritten: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintWriteStream_Impl, - { + pub const fn new() -> IPrintWriteStream_Vtbl { + unsafe extern "system" fn WriteBytes(this: *mut core::ffi::c_void, pvbuffer: *const core::ffi::c_void, cbbuffer: u32, pcbwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintWriteStream_Impl::WriteBytes(this, core::mem::transmute_copy(&pvbuffer), core::mem::transmute_copy(&cbbuffer)) { Ok(ok__) => { @@ -3628,10 +2773,7 @@ impl IPrintWriteStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) - where - Identity: IPrintWriteStream_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintWriteStream_Impl::Close(this) } @@ -3641,19 +2783,13 @@ impl IPrintWriteStream_Vtbl { iid == &::IID } } -pub trait IPrintWriteStreamFlush_Impl: Sized { +pub trait IPrintWriteStreamFlush_Impl: Sized + windows_core::IUnknownImpl { fn FlushData(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintWriteStreamFlush {} impl IPrintWriteStreamFlush_Vtbl { - pub const fn new() -> IPrintWriteStreamFlush_Vtbl - where - Identity: IPrintWriteStreamFlush_Impl, - { - unsafe extern "system" fn FlushData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintWriteStreamFlush_Impl, - { + pub const fn new() -> IPrintWriteStreamFlush_Vtbl { + unsafe extern "system" fn FlushData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintWriteStreamFlush_Impl::FlushData(this).into() } @@ -3663,19 +2799,13 @@ impl IPrintWriteStreamFlush_Vtbl { iid == &::IID } } -pub trait IPrinterBidiSetRequestCallback_Impl: Sized { +pub trait IPrinterBidiSetRequestCallback_Impl: Sized + windows_core::IUnknownImpl { fn Completed(&self, bstrresponse: &windows_core::BSTR, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrinterBidiSetRequestCallback {} impl IPrinterBidiSetRequestCallback_Vtbl { - pub const fn new() -> IPrinterBidiSetRequestCallback_Vtbl - where - Identity: IPrinterBidiSetRequestCallback_Impl, - { - unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, bstrresponse: core::mem::MaybeUninit, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPrinterBidiSetRequestCallback_Impl, - { + pub const fn new() -> IPrinterBidiSetRequestCallback_Vtbl { + unsafe extern "system" fn Completed(this: *mut core::ffi::c_void, bstrresponse: core::mem::MaybeUninit, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterBidiSetRequestCallback_Impl::Completed(this, core::mem::transmute(&bstrresponse), core::mem::transmute_copy(&hrstatus)).into() } @@ -3685,19 +2815,13 @@ impl IPrinterBidiSetRequestCallback_Vtbl { iid == &::IID } } -pub trait IPrinterExtensionAsyncOperation_Impl: Sized { +pub trait IPrinterExtensionAsyncOperation_Impl: Sized + windows_core::IUnknownImpl { fn Cancel(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrinterExtensionAsyncOperation {} impl IPrinterExtensionAsyncOperation_Vtbl { - pub const fn new() -> IPrinterExtensionAsyncOperation_Vtbl - where - Identity: IPrinterExtensionAsyncOperation_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionAsyncOperation_Impl, - { + pub const fn new() -> IPrinterExtensionAsyncOperation_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterExtensionAsyncOperation_Impl::Cancel(this).into() } @@ -3718,14 +2842,8 @@ pub trait IPrinterExtensionContext_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for IPrinterExtensionContext {} #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionContext_Vtbl { - pub const fn new() -> IPrinterExtensionContext_Vtbl - where - Identity: IPrinterExtensionContext_Impl, - { - unsafe extern "system" fn PrinterQueue(this: *mut core::ffi::c_void, ppqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionContext_Impl, - { + pub const fn new() -> IPrinterExtensionContext_Vtbl { + unsafe extern "system" fn PrinterQueue(this: *mut core::ffi::c_void, ppqueue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionContext_Impl::PrinterQueue(this) { Ok(ok__) => { @@ -3735,10 +2853,7 @@ impl IPrinterExtensionContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrintSchemaTicket(this: *mut core::ffi::c_void, ppticket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionContext_Impl, - { + unsafe extern "system" fn PrintSchemaTicket(this: *mut core::ffi::c_void, ppticket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionContext_Impl::PrintSchemaTicket(this) { Ok(ok__) => { @@ -3748,10 +2863,7 @@ impl IPrinterExtensionContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionContext_Impl, - { + unsafe extern "system" fn DriverProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionContext_Impl::DriverProperties(this) { Ok(ok__) => { @@ -3761,10 +2873,7 @@ impl IPrinterExtensionContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionContext_Impl, - { + unsafe extern "system" fn UserProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionContext_Impl::UserProperties(this) { Ok(ok__) => { @@ -3796,14 +2905,8 @@ pub trait IPrinterExtensionContextCollection_Impl: Sized + super::super::System: impl windows_core::RuntimeName for IPrinterExtensionContextCollection {} #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionContextCollection_Vtbl { - pub const fn new() -> IPrinterExtensionContextCollection_Vtbl - where - Identity: IPrinterExtensionContextCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT - where - Identity: IPrinterExtensionContextCollection_Impl, - { + pub const fn new() -> IPrinterExtensionContextCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionContextCollection_Impl::Count(this) { Ok(ok__) => { @@ -3813,10 +2916,7 @@ impl IPrinterExtensionContextCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, ulindex: u32, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionContextCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, ulindex: u32, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionContextCollection_Impl::GetAt(this, core::mem::transmute_copy(&ulindex)) { Ok(ok__) => { @@ -3826,10 +2926,7 @@ impl IPrinterExtensionContextCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionContextCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionContextCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3859,21 +2956,12 @@ pub trait IPrinterExtensionEvent_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IPrinterExtensionEvent {} #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionEvent_Vtbl { - pub const fn new() -> IPrinterExtensionEvent_Vtbl - where - Identity: IPrinterExtensionEvent_Impl, - { - unsafe extern "system" fn OnDriverEvent(this: *mut core::ffi::c_void, peventargs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionEvent_Impl, - { + pub const fn new() -> IPrinterExtensionEvent_Vtbl { + unsafe extern "system" fn OnDriverEvent(this: *mut core::ffi::c_void, peventargs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterExtensionEvent_Impl::OnDriverEvent(this, windows_core::from_raw_borrowed(&peventargs)).into() } - unsafe extern "system" fn OnPrinterQueuesEnumerated(this: *mut core::ffi::c_void, pcontextcollection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionEvent_Impl, - { + unsafe extern "system" fn OnPrinterQueuesEnumerated(this: *mut core::ffi::c_void, pcontextcollection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterExtensionEvent_Impl::OnPrinterQueuesEnumerated(this, windows_core::from_raw_borrowed(&pcontextcollection)).into() } @@ -3901,14 +2989,8 @@ pub trait IPrinterExtensionEventArgs_Impl: Sized + IPrinterExtensionContext_Impl impl windows_core::RuntimeName for IPrinterExtensionEventArgs {} #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionEventArgs_Vtbl { - pub const fn new() -> IPrinterExtensionEventArgs_Vtbl - where - Identity: IPrinterExtensionEventArgs_Impl, - { - unsafe extern "system" fn BidiNotification(this: *mut core::ffi::c_void, pbstrbidinotification: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrinterExtensionEventArgs_Impl, - { + pub const fn new() -> IPrinterExtensionEventArgs_Vtbl { + unsafe extern "system" fn BidiNotification(this: *mut core::ffi::c_void, pbstrbidinotification: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionEventArgs_Impl::BidiNotification(this) { Ok(ok__) => { @@ -3918,10 +3000,7 @@ impl IPrinterExtensionEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReasonId(this: *mut core::ffi::c_void, preasonid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPrinterExtensionEventArgs_Impl, - { + unsafe extern "system" fn ReasonId(this: *mut core::ffi::c_void, preasonid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionEventArgs_Impl::ReasonId(this) { Ok(ok__) => { @@ -3931,10 +3010,7 @@ impl IPrinterExtensionEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Request(this: *mut core::ffi::c_void, pprequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionEventArgs_Impl, - { + unsafe extern "system" fn Request(this: *mut core::ffi::c_void, pprequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionEventArgs_Impl::Request(this) { Ok(ok__) => { @@ -3944,10 +3020,7 @@ impl IPrinterExtensionEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SourceApplication(this: *mut core::ffi::c_void, pbstrapplication: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrinterExtensionEventArgs_Impl, - { + unsafe extern "system" fn SourceApplication(this: *mut core::ffi::c_void, pbstrapplication: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionEventArgs_Impl::SourceApplication(this) { Ok(ok__) => { @@ -3957,10 +3030,7 @@ impl IPrinterExtensionEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DetailedReasonId(this: *mut core::ffi::c_void, pdetailedreasonid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPrinterExtensionEventArgs_Impl, - { + unsafe extern "system" fn DetailedReasonId(this: *mut core::ffi::c_void, pdetailedreasonid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionEventArgs_Impl::DetailedReasonId(this) { Ok(ok__) => { @@ -3970,10 +3040,7 @@ impl IPrinterExtensionEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WindowModal(this: *mut core::ffi::c_void, pbmodal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPrinterExtensionEventArgs_Impl, - { + unsafe extern "system" fn WindowModal(this: *mut core::ffi::c_void, pbmodal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionEventArgs_Impl::WindowModal(this) { Ok(ok__) => { @@ -3983,10 +3050,7 @@ impl IPrinterExtensionEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WindowParent(this: *mut core::ffi::c_void, phwndparent: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPrinterExtensionEventArgs_Impl, - { + unsafe extern "system" fn WindowParent(this: *mut core::ffi::c_void, phwndparent: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionEventArgs_Impl::WindowParent(this) { Ok(ok__) => { @@ -4011,27 +3075,18 @@ impl IPrinterExtensionEventArgs_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IPrinterExtensionManager_Impl: Sized { +pub trait IPrinterExtensionManager_Impl: Sized + windows_core::IUnknownImpl { fn EnableEvents(&self, printerdriverid: &windows_core::GUID) -> windows_core::Result<()>; fn DisableEvents(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrinterExtensionManager {} impl IPrinterExtensionManager_Vtbl { - pub const fn new() -> IPrinterExtensionManager_Vtbl - where - Identity: IPrinterExtensionManager_Impl, - { - unsafe extern "system" fn EnableEvents(this: *mut core::ffi::c_void, printerdriverid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPrinterExtensionManager_Impl, - { + pub const fn new() -> IPrinterExtensionManager_Vtbl { + unsafe extern "system" fn EnableEvents(this: *mut core::ffi::c_void, printerdriverid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterExtensionManager_Impl::EnableEvents(this, core::mem::transmute(&printerdriverid)).into() } - unsafe extern "system" fn DisableEvents(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionManager_Impl, - { + unsafe extern "system" fn DisableEvents(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterExtensionManager_Impl::DisableEvents(this).into() } @@ -4054,21 +3109,12 @@ pub trait IPrinterExtensionRequest_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for IPrinterExtensionRequest {} #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionRequest_Vtbl { - pub const fn new() -> IPrinterExtensionRequest_Vtbl - where - Identity: IPrinterExtensionRequest_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, bstrlogmessage: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrinterExtensionRequest_Impl, - { + pub const fn new() -> IPrinterExtensionRequest_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, bstrlogmessage: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterExtensionRequest_Impl::Cancel(this, core::mem::transmute_copy(&hrstatus), core::mem::transmute(&bstrlogmessage)).into() } - unsafe extern "system" fn Complete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterExtensionRequest_Impl, - { + unsafe extern "system" fn Complete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterExtensionRequest_Impl::Complete(this).into() } @@ -4099,14 +3145,8 @@ pub trait IPrinterPropertyBag_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IPrinterPropertyBag {} #[cfg(feature = "Win32_System_Com")] impl IPrinterPropertyBag_Vtbl { - pub const fn new() -> IPrinterPropertyBag_Vtbl - where - Identity: IPrinterPropertyBag_Impl, - { - unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPrinterPropertyBag_Impl, - { + pub const fn new() -> IPrinterPropertyBag_Vtbl { + unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterPropertyBag_Impl::GetBool(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4116,17 +3156,11 @@ impl IPrinterPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBool(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bvalue: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPrinterPropertyBag_Impl, - { + unsafe extern "system" fn SetBool(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bvalue: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterPropertyBag_Impl::SetBool(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&bvalue)).into() } - unsafe extern "system" fn GetInt32(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pnvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IPrinterPropertyBag_Impl, - { + unsafe extern "system" fn GetInt32(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pnvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterPropertyBag_Impl::GetInt32(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4136,17 +3170,11 @@ impl IPrinterPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInt32(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, nvalue: i32) -> windows_core::HRESULT - where - Identity: IPrinterPropertyBag_Impl, - { + unsafe extern "system" fn SetInt32(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, nvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterPropertyBag_Impl::SetInt32(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&nvalue)).into() } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrinterPropertyBag_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterPropertyBag_Impl::GetString(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4156,31 +3184,19 @@ impl IPrinterPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrinterPropertyBag_Impl, - { + unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterPropertyBag_Impl::SetString(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn GetBytes(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pcbvalue: *mut u32, ppvalue: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IPrinterPropertyBag_Impl, - { + unsafe extern "system" fn GetBytes(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pcbvalue: *mut u32, ppvalue: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterPropertyBag_Impl::GetBytes(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&pcbvalue), core::mem::transmute_copy(&ppvalue)).into() } - unsafe extern "system" fn SetBytes(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, cbvalue: u32, pvalue: *const u8) -> windows_core::HRESULT - where - Identity: IPrinterPropertyBag_Impl, - { + unsafe extern "system" fn SetBytes(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, cbvalue: u32, pvalue: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterPropertyBag_Impl::SetBytes(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&cbvalue), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetReadStream(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterPropertyBag_Impl, - { + unsafe extern "system" fn GetReadStream(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterPropertyBag_Impl::GetReadStream(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4190,10 +3206,7 @@ impl IPrinterPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWriteStream(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterPropertyBag_Impl, - { + unsafe extern "system" fn GetWriteStream(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterPropertyBag_Impl::GetWriteStream(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4232,14 +3245,8 @@ pub trait IPrinterQueue_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IPrinterQueue {} #[cfg(feature = "Win32_System_Com")] impl IPrinterQueue_Vtbl { - pub const fn new() -> IPrinterQueue_Vtbl - where - Identity: IPrinterQueue_Impl, - { - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phprinter: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPrinterQueue_Impl, - { + pub const fn new() -> IPrinterQueue_Vtbl { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phprinter: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterQueue_Impl::Handle(this) { Ok(ok__) => { @@ -4249,10 +3256,7 @@ impl IPrinterQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrinterQueue_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterQueue_Impl::Name(this) { Ok(ok__) => { @@ -4262,17 +3266,11 @@ impl IPrinterQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendBidiQuery(this: *mut core::ffi::c_void, bstrbidiquery: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrinterQueue_Impl, - { + unsafe extern "system" fn SendBidiQuery(this: *mut core::ffi::c_void, bstrbidiquery: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterQueue_Impl::SendBidiQuery(this, core::mem::transmute(&bstrbidiquery)).into() } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterQueue_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterQueue_Impl::GetProperties(this) { Ok(ok__) => { @@ -4303,14 +3301,8 @@ pub trait IPrinterQueue2_Impl: Sized + IPrinterQueue_Impl { impl windows_core::RuntimeName for IPrinterQueue2 {} #[cfg(feature = "Win32_System_Com")] impl IPrinterQueue2_Vtbl { - pub const fn new() -> IPrinterQueue2_Vtbl - where - Identity: IPrinterQueue2_Impl, - { - unsafe extern "system" fn SendBidiSetRequestAsync(this: *mut core::ffi::c_void, bstrbidirequest: core::mem::MaybeUninit, pcallback: *mut core::ffi::c_void, ppasyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterQueue2_Impl, - { + pub const fn new() -> IPrinterQueue2_Vtbl { + unsafe extern "system" fn SendBidiSetRequestAsync(this: *mut core::ffi::c_void, bstrbidirequest: core::mem::MaybeUninit, pcallback: *mut core::ffi::c_void, ppasyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterQueue2_Impl::SendBidiSetRequestAsync(this, core::mem::transmute(&bstrbidirequest), windows_core::from_raw_borrowed(&pcallback)) { Ok(ok__) => { @@ -4320,10 +3312,7 @@ impl IPrinterQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrinterQueueView(this: *mut core::ffi::c_void, ulviewoffset: u32, ulviewsize: u32, ppjobview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterQueue2_Impl, - { + unsafe extern "system" fn GetPrinterQueueView(this: *mut core::ffi::c_void, ulviewoffset: u32, ulviewsize: u32, ppjobview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterQueue2_Impl::GetPrinterQueueView(this, core::mem::transmute_copy(&ulviewoffset), core::mem::transmute_copy(&ulviewsize)) { Ok(ok__) => { @@ -4351,14 +3340,8 @@ pub trait IPrinterQueueEvent_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IPrinterQueueEvent {} #[cfg(feature = "Win32_System_Com")] impl IPrinterQueueEvent_Vtbl { - pub const fn new() -> IPrinterQueueEvent_Vtbl - where - Identity: IPrinterQueueEvent_Impl, - { - unsafe extern "system" fn OnBidiResponseReceived(this: *mut core::ffi::c_void, bstrresponse: core::mem::MaybeUninit, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPrinterQueueEvent_Impl, - { + pub const fn new() -> IPrinterQueueEvent_Vtbl { + unsafe extern "system" fn OnBidiResponseReceived(this: *mut core::ffi::c_void, bstrresponse: core::mem::MaybeUninit, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterQueueEvent_Impl::OnBidiResponseReceived(this, core::mem::transmute(&bstrresponse), core::mem::transmute_copy(&hrstatus)).into() } @@ -4376,14 +3359,8 @@ pub trait IPrinterQueueView_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IPrinterQueueView {} #[cfg(feature = "Win32_System_Com")] impl IPrinterQueueView_Vtbl { - pub const fn new() -> IPrinterQueueView_Vtbl - where - Identity: IPrinterQueueView_Impl, - { - unsafe extern "system" fn SetViewRange(this: *mut core::ffi::c_void, ulviewoffset: u32, ulviewsize: u32) -> windows_core::HRESULT - where - Identity: IPrinterQueueView_Impl, - { + pub const fn new() -> IPrinterQueueView_Vtbl { + unsafe extern "system" fn SetViewRange(this: *mut core::ffi::c_void, ulviewoffset: u32, ulviewsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterQueueView_Impl::SetViewRange(this, core::mem::transmute_copy(&ulviewoffset), core::mem::transmute_copy(&ulviewsize)).into() } @@ -4401,14 +3378,8 @@ pub trait IPrinterQueueViewEvent_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IPrinterQueueViewEvent {} #[cfg(feature = "Win32_System_Com")] impl IPrinterQueueViewEvent_Vtbl { - pub const fn new() -> IPrinterQueueViewEvent_Vtbl - where - Identity: IPrinterQueueViewEvent_Impl, - { - unsafe extern "system" fn OnChanged(this: *mut core::ffi::c_void, pcollection: *mut core::ffi::c_void, ulviewoffset: u32, ulviewsize: u32, ulcountjobsinprintqueue: u32) -> windows_core::HRESULT - where - Identity: IPrinterQueueViewEvent_Impl, - { + pub const fn new() -> IPrinterQueueViewEvent_Vtbl { + unsafe extern "system" fn OnChanged(this: *mut core::ffi::c_void, pcollection: *mut core::ffi::c_void, ulviewoffset: u32, ulviewsize: u32, ulcountjobsinprintqueue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterQueueViewEvent_Impl::OnChanged(this, windows_core::from_raw_borrowed(&pcollection), core::mem::transmute_copy(&ulviewoffset), core::mem::transmute_copy(&ulviewsize), core::mem::transmute_copy(&ulcountjobsinprintqueue)).into() } @@ -4428,14 +3399,8 @@ pub trait IPrinterScriptContext_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for IPrinterScriptContext {} #[cfg(feature = "Win32_System_Com")] impl IPrinterScriptContext_Vtbl { - pub const fn new() -> IPrinterScriptContext_Vtbl - where - Identity: IPrinterScriptContext_Impl, - { - unsafe extern "system" fn DriverProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterScriptContext_Impl, - { + pub const fn new() -> IPrinterScriptContext_Vtbl { + unsafe extern "system" fn DriverProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptContext_Impl::DriverProperties(this) { Ok(ok__) => { @@ -4445,10 +3410,7 @@ impl IPrinterScriptContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterScriptContext_Impl, - { + unsafe extern "system" fn QueueProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptContext_Impl::QueueProperties(this) { Ok(ok__) => { @@ -4458,10 +3420,7 @@ impl IPrinterScriptContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterScriptContext_Impl, - { + unsafe extern "system" fn UserProperties(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptContext_Impl::UserProperties(this) { Ok(ok__) => { @@ -4499,14 +3458,8 @@ pub trait IPrinterScriptablePropertyBag_Impl: Sized + super::super::System::Com: impl windows_core::RuntimeName for IPrinterScriptablePropertyBag {} #[cfg(feature = "Win32_System_Com")] impl IPrinterScriptablePropertyBag_Vtbl { - pub const fn new() -> IPrinterScriptablePropertyBag_Vtbl - where - Identity: IPrinterScriptablePropertyBag_Impl, - { - unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag_Impl, - { + pub const fn new() -> IPrinterScriptablePropertyBag_Vtbl { + unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptablePropertyBag_Impl::GetBool(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4516,17 +3469,11 @@ impl IPrinterScriptablePropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBool(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bvalue: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag_Impl, - { + unsafe extern "system" fn SetBool(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bvalue: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterScriptablePropertyBag_Impl::SetBool(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&bvalue)).into() } - unsafe extern "system" fn GetInt32(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pnvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag_Impl, - { + unsafe extern "system" fn GetInt32(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pnvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptablePropertyBag_Impl::GetInt32(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4536,17 +3483,11 @@ impl IPrinterScriptablePropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInt32(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, nvalue: i32) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag_Impl, - { + unsafe extern "system" fn SetInt32(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, nvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterScriptablePropertyBag_Impl::SetInt32(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&nvalue)).into() } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptablePropertyBag_Impl::GetString(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4556,17 +3497,11 @@ impl IPrinterScriptablePropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag_Impl, - { + unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterScriptablePropertyBag_Impl::SetString(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn GetBytes(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pparray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag_Impl, - { + unsafe extern "system" fn GetBytes(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pparray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptablePropertyBag_Impl::GetBytes(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4576,17 +3511,11 @@ impl IPrinterScriptablePropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBytes(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, parray: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag_Impl, - { + unsafe extern "system" fn SetBytes(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, parray: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterScriptablePropertyBag_Impl::SetBytes(this, core::mem::transmute(&bstrname), windows_core::from_raw_borrowed(&parray)).into() } - unsafe extern "system" fn GetReadStream(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag_Impl, - { + unsafe extern "system" fn GetReadStream(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptablePropertyBag_Impl::GetReadStream(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4596,10 +3525,7 @@ impl IPrinterScriptablePropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWriteStream(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag_Impl, - { + unsafe extern "system" fn GetWriteStream(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptablePropertyBag_Impl::GetWriteStream(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4635,14 +3561,8 @@ pub trait IPrinterScriptablePropertyBag2_Impl: Sized + IPrinterScriptablePropert impl windows_core::RuntimeName for IPrinterScriptablePropertyBag2 {} #[cfg(feature = "Win32_System_Com")] impl IPrinterScriptablePropertyBag2_Vtbl { - pub const fn new() -> IPrinterScriptablePropertyBag2_Vtbl - where - Identity: IPrinterScriptablePropertyBag2_Impl, - { - unsafe extern "system" fn GetReadStreamAsXML(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppxmlnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterScriptablePropertyBag2_Impl, - { + pub const fn new() -> IPrinterScriptablePropertyBag2_Vtbl { + unsafe extern "system" fn GetReadStreamAsXML(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppxmlnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptablePropertyBag2_Impl::GetReadStreamAsXML(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4667,14 +3587,8 @@ pub trait IPrinterScriptableSequentialStream_Impl: Sized + super::super::System: impl windows_core::RuntimeName for IPrinterScriptableSequentialStream {} #[cfg(feature = "Win32_System_Com")] impl IPrinterScriptableSequentialStream_Vtbl { - pub const fn new() -> IPrinterScriptableSequentialStream_Vtbl - where - Identity: IPrinterScriptableSequentialStream_Impl, - { - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, cbread: i32, pparray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterScriptableSequentialStream_Impl, - { + pub const fn new() -> IPrinterScriptableSequentialStream_Vtbl { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, cbread: i32, pparray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptableSequentialStream_Impl::Read(this, core::mem::transmute_copy(&cbread)) { Ok(ok__) => { @@ -4684,10 +3598,7 @@ impl IPrinterScriptableSequentialStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, parray: *mut core::ffi::c_void, pcbwritten: *mut i32) -> windows_core::HRESULT - where - Identity: IPrinterScriptableSequentialStream_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, parray: *mut core::ffi::c_void, pcbwritten: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptableSequentialStream_Impl::Write(this, windows_core::from_raw_borrowed(&parray)) { Ok(ok__) => { @@ -4713,21 +3624,12 @@ pub trait IPrinterScriptableStream_Impl: Sized + IPrinterScriptableSequentialStr impl windows_core::RuntimeName for IPrinterScriptableStream {} #[cfg(feature = "Win32_System_Com")] impl IPrinterScriptableStream_Vtbl { - pub const fn new() -> IPrinterScriptableStream_Vtbl - where - Identity: IPrinterScriptableStream_Impl, - { - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinterScriptableStream_Impl, - { + pub const fn new() -> IPrinterScriptableStream_Vtbl { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterScriptableStream_Impl::Commit(this).into() } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, loffset: i32, streamseek: super::super::System::Com::STREAM_SEEK, plposition: *mut i32) -> windows_core::HRESULT - where - Identity: IPrinterScriptableStream_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, loffset: i32, streamseek: super::super::System::Com::STREAM_SEEK, plposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptableStream_Impl::Seek(this, core::mem::transmute_copy(&loffset), core::mem::transmute_copy(&streamseek)) { Ok(ok__) => { @@ -4737,10 +3639,7 @@ impl IPrinterScriptableStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, lsize: i32) -> windows_core::HRESULT - where - Identity: IPrinterScriptableStream_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, lsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterScriptableStream_Impl::SetSize(this, core::mem::transmute_copy(&lsize)).into() } @@ -4755,20 +3654,14 @@ impl IPrinterScriptableStream_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IXpsDocument_Impl: Sized { +pub trait IXpsDocument_Impl: Sized + windows_core::IUnknownImpl { fn GetThumbnail(&self) -> windows_core::Result; fn SetThumbnail(&self, pthumbnail: Option<&IPartThumbnail>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXpsDocument {} impl IXpsDocument_Vtbl { - pub const fn new() -> IXpsDocument_Vtbl - where - Identity: IXpsDocument_Impl, - { - unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, ppthumbnail: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocument_Impl, - { + pub const fn new() -> IXpsDocument_Vtbl { + unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, ppthumbnail: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsDocument_Impl::GetThumbnail(this) { Ok(ok__) => { @@ -4778,10 +3671,7 @@ impl IXpsDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetThumbnail(this: *mut core::ffi::c_void, pthumbnail: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocument_Impl, - { + unsafe extern "system" fn SetThumbnail(this: *mut core::ffi::c_void, pthumbnail: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsDocument_Impl::SetThumbnail(this, windows_core::from_raw_borrowed(&pthumbnail)).into() } @@ -4795,7 +3685,7 @@ impl IXpsDocument_Vtbl { iid == &::IID } } -pub trait IXpsDocumentConsumer_Impl: Sized { +pub trait IXpsDocumentConsumer_Impl: Sized + windows_core::IUnknownImpl { fn SendXpsUnknown(&self, punknown: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn SendXpsDocument(&self, pixpsdocument: Option<&IXpsDocument>) -> windows_core::Result<()>; fn SendFixedDocumentSequence(&self, pifixeddocumentsequence: Option<&IFixedDocumentSequence>) -> windows_core::Result<()>; @@ -4806,56 +3696,32 @@ pub trait IXpsDocumentConsumer_Impl: Sized { } impl windows_core::RuntimeName for IXpsDocumentConsumer {} impl IXpsDocumentConsumer_Vtbl { - pub const fn new() -> IXpsDocumentConsumer_Vtbl - where - Identity: IXpsDocumentConsumer_Impl, - { - unsafe extern "system" fn SendXpsUnknown(this: *mut core::ffi::c_void, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentConsumer_Impl, - { + pub const fn new() -> IXpsDocumentConsumer_Vtbl { + unsafe extern "system" fn SendXpsUnknown(this: *mut core::ffi::c_void, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsDocumentConsumer_Impl::SendXpsUnknown(this, windows_core::from_raw_borrowed(&punknown)).into() } - unsafe extern "system" fn SendXpsDocument(this: *mut core::ffi::c_void, pixpsdocument: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentConsumer_Impl, - { + unsafe extern "system" fn SendXpsDocument(this: *mut core::ffi::c_void, pixpsdocument: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsDocumentConsumer_Impl::SendXpsDocument(this, windows_core::from_raw_borrowed(&pixpsdocument)).into() } - unsafe extern "system" fn SendFixedDocumentSequence(this: *mut core::ffi::c_void, pifixeddocumentsequence: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentConsumer_Impl, - { + unsafe extern "system" fn SendFixedDocumentSequence(this: *mut core::ffi::c_void, pifixeddocumentsequence: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsDocumentConsumer_Impl::SendFixedDocumentSequence(this, windows_core::from_raw_borrowed(&pifixeddocumentsequence)).into() } - unsafe extern "system" fn SendFixedDocument(this: *mut core::ffi::c_void, pifixeddocument: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentConsumer_Impl, - { + unsafe extern "system" fn SendFixedDocument(this: *mut core::ffi::c_void, pifixeddocument: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsDocumentConsumer_Impl::SendFixedDocument(this, windows_core::from_raw_borrowed(&pifixeddocument)).into() } - unsafe extern "system" fn SendFixedPage(this: *mut core::ffi::c_void, pifixedpage: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentConsumer_Impl, - { + unsafe extern "system" fn SendFixedPage(this: *mut core::ffi::c_void, pifixedpage: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsDocumentConsumer_Impl::SendFixedPage(this, windows_core::from_raw_borrowed(&pifixedpage)).into() } - unsafe extern "system" fn CloseSender(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentConsumer_Impl, - { + unsafe extern "system" fn CloseSender(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsDocumentConsumer_Impl::CloseSender(this).into() } - unsafe extern "system" fn GetNewEmptyPart(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, riid: *const windows_core::GUID, ppnewobject: *mut *mut core::ffi::c_void, ppwritestream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentConsumer_Impl, - { + unsafe extern "system" fn GetNewEmptyPart(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, riid: *const windows_core::GUID, ppnewobject: *mut *mut core::ffi::c_void, ppwritestream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsDocumentConsumer_Impl::GetNewEmptyPart(this, core::mem::transmute(&uri), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppnewobject), core::mem::transmute_copy(&ppwritestream)).into() } @@ -4874,19 +3740,13 @@ impl IXpsDocumentConsumer_Vtbl { iid == &::IID } } -pub trait IXpsDocumentProvider_Impl: Sized { +pub trait IXpsDocumentProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetXpsPart(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IXpsDocumentProvider {} impl IXpsDocumentProvider_Vtbl { - pub const fn new() -> IXpsDocumentProvider_Vtbl - where - Identity: IXpsDocumentProvider_Impl, - { - unsafe extern "system" fn GetXpsPart(this: *mut core::ffi::c_void, ppixpspart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentProvider_Impl, - { + pub const fn new() -> IXpsDocumentProvider_Vtbl { + unsafe extern "system" fn GetXpsPart(this: *mut core::ffi::c_void, ppixpspart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsDocumentProvider_Impl::GetXpsPart(this) { Ok(ok__) => { @@ -4902,7 +3762,7 @@ impl IXpsDocumentProvider_Vtbl { iid == &::IID } } -pub trait IXpsPartIterator_Impl: Sized { +pub trait IXpsPartIterator_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self); fn Current(&self, puri: *mut windows_core::BSTR, ppxpspart: *mut Option) -> windows_core::Result<()>; fn IsDone(&self) -> super::super::Foundation::BOOL; @@ -4910,35 +3770,20 @@ pub trait IXpsPartIterator_Impl: Sized { } impl windows_core::RuntimeName for IXpsPartIterator {} impl IXpsPartIterator_Vtbl { - pub const fn new() -> IXpsPartIterator_Vtbl - where - Identity: IXpsPartIterator_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) - where - Identity: IXpsPartIterator_Impl, - { + pub const fn new() -> IXpsPartIterator_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsPartIterator_Impl::Reset(this) } - unsafe extern "system" fn Current(this: *mut core::ffi::c_void, puri: *mut core::mem::MaybeUninit, ppxpspart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsPartIterator_Impl, - { + unsafe extern "system" fn Current(this: *mut core::ffi::c_void, puri: *mut core::mem::MaybeUninit, ppxpspart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsPartIterator_Impl::Current(this, core::mem::transmute_copy(&puri), core::mem::transmute_copy(&ppxpspart)).into() } - unsafe extern "system" fn IsDone(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IXpsPartIterator_Impl, - { + unsafe extern "system" fn IsDone(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsPartIterator_Impl::IsDone(this) } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void) - where - Identity: IXpsPartIterator_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsPartIterator_Impl::Next(this) } @@ -4955,21 +3800,15 @@ impl IXpsPartIterator_Vtbl { } } #[cfg(feature = "Win32_Storage_Xps")] -pub trait IXpsRasterizationFactory_Impl: Sized { +pub trait IXpsRasterizationFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateRasterizer(&self, xpspage: Option<&super::super::Storage::Xps::IXpsOMPage>, dpi: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE) -> windows_core::Result; } #[cfg(feature = "Win32_Storage_Xps")] impl windows_core::RuntimeName for IXpsRasterizationFactory {} #[cfg(feature = "Win32_Storage_Xps")] impl IXpsRasterizationFactory_Vtbl { - pub const fn new() -> IXpsRasterizationFactory_Vtbl - where - Identity: IXpsRasterizationFactory_Impl, - { - unsafe extern "system" fn CreateRasterizer(this: *mut core::ffi::c_void, xpspage: *mut core::ffi::c_void, dpi: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE, ppixpsrasterizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsRasterizationFactory_Impl, - { + pub const fn new() -> IXpsRasterizationFactory_Vtbl { + unsafe extern "system" fn CreateRasterizer(this: *mut core::ffi::c_void, xpspage: *mut core::ffi::c_void, dpi: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE, ppixpsrasterizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsRasterizationFactory_Impl::CreateRasterizer(this, windows_core::from_raw_borrowed(&xpspage), core::mem::transmute_copy(&dpi), core::mem::transmute_copy(&nontextrenderingmode), core::mem::transmute_copy(&textrenderingmode)) { Ok(ok__) => { @@ -4986,21 +3825,15 @@ impl IXpsRasterizationFactory_Vtbl { } } #[cfg(feature = "Win32_Storage_Xps")] -pub trait IXpsRasterizationFactory1_Impl: Sized { +pub trait IXpsRasterizationFactory1_Impl: Sized + windows_core::IUnknownImpl { fn CreateRasterizer(&self, xpspage: Option<&super::super::Storage::Xps::IXpsOMPage>, dpi: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE, pixelformat: XPSRAS_PIXEL_FORMAT) -> windows_core::Result; } #[cfg(feature = "Win32_Storage_Xps")] impl windows_core::RuntimeName for IXpsRasterizationFactory1 {} #[cfg(feature = "Win32_Storage_Xps")] impl IXpsRasterizationFactory1_Vtbl { - pub const fn new() -> IXpsRasterizationFactory1_Vtbl - where - Identity: IXpsRasterizationFactory1_Impl, - { - unsafe extern "system" fn CreateRasterizer(this: *mut core::ffi::c_void, xpspage: *mut core::ffi::c_void, dpi: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE, pixelformat: XPSRAS_PIXEL_FORMAT, ppixpsrasterizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsRasterizationFactory1_Impl, - { + pub const fn new() -> IXpsRasterizationFactory1_Vtbl { + unsafe extern "system" fn CreateRasterizer(this: *mut core::ffi::c_void, xpspage: *mut core::ffi::c_void, dpi: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE, pixelformat: XPSRAS_PIXEL_FORMAT, ppixpsrasterizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsRasterizationFactory1_Impl::CreateRasterizer(this, windows_core::from_raw_borrowed(&xpspage), core::mem::transmute_copy(&dpi), core::mem::transmute_copy(&nontextrenderingmode), core::mem::transmute_copy(&textrenderingmode), core::mem::transmute_copy(&pixelformat)) { Ok(ok__) => { @@ -5017,21 +3850,15 @@ impl IXpsRasterizationFactory1_Vtbl { } } #[cfg(feature = "Win32_Storage_Xps")] -pub trait IXpsRasterizationFactory2_Impl: Sized { +pub trait IXpsRasterizationFactory2_Impl: Sized + windows_core::IUnknownImpl { fn CreateRasterizer(&self, xpspage: Option<&super::super::Storage::Xps::IXpsOMPage>, dpix: f32, dpiy: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE, pixelformat: XPSRAS_PIXEL_FORMAT, backgroundcolor: XPSRAS_BACKGROUND_COLOR) -> windows_core::Result; } #[cfg(feature = "Win32_Storage_Xps")] impl windows_core::RuntimeName for IXpsRasterizationFactory2 {} #[cfg(feature = "Win32_Storage_Xps")] impl IXpsRasterizationFactory2_Vtbl { - pub const fn new() -> IXpsRasterizationFactory2_Vtbl - where - Identity: IXpsRasterizationFactory2_Impl, - { - unsafe extern "system" fn CreateRasterizer(this: *mut core::ffi::c_void, xpspage: *mut core::ffi::c_void, dpix: f32, dpiy: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE, pixelformat: XPSRAS_PIXEL_FORMAT, backgroundcolor: XPSRAS_BACKGROUND_COLOR, ppixpsrasterizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsRasterizationFactory2_Impl, - { + pub const fn new() -> IXpsRasterizationFactory2_Vtbl { + unsafe extern "system" fn CreateRasterizer(this: *mut core::ffi::c_void, xpspage: *mut core::ffi::c_void, dpix: f32, dpiy: f32, nontextrenderingmode: XPSRAS_RENDERING_MODE, textrenderingmode: XPSRAS_RENDERING_MODE, pixelformat: XPSRAS_PIXEL_FORMAT, backgroundcolor: XPSRAS_BACKGROUND_COLOR, ppixpsrasterizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsRasterizationFactory2_Impl::CreateRasterizer(this, windows_core::from_raw_borrowed(&xpspage), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy), core::mem::transmute_copy(&nontextrenderingmode), core::mem::transmute_copy(&textrenderingmode), core::mem::transmute_copy(&pixelformat), core::mem::transmute_copy(&backgroundcolor)) { Ok(ok__) => { @@ -5048,7 +3875,7 @@ impl IXpsRasterizationFactory2_Vtbl { } } #[cfg(feature = "Win32_Graphics_Imaging")] -pub trait IXpsRasterizer_Impl: Sized { +pub trait IXpsRasterizer_Impl: Sized + windows_core::IUnknownImpl { fn RasterizeRect(&self, x: i32, y: i32, width: i32, height: i32, notificationcallback: Option<&IXpsRasterizerNotificationCallback>) -> windows_core::Result; fn SetMinimalLineWidth(&self, width: i32) -> windows_core::Result<()>; } @@ -5056,14 +3883,8 @@ pub trait IXpsRasterizer_Impl: Sized { impl windows_core::RuntimeName for IXpsRasterizer {} #[cfg(feature = "Win32_Graphics_Imaging")] impl IXpsRasterizer_Vtbl { - pub const fn new() -> IXpsRasterizer_Vtbl - where - Identity: IXpsRasterizer_Impl, - { - unsafe extern "system" fn RasterizeRect(this: *mut core::ffi::c_void, x: i32, y: i32, width: i32, height: i32, notificationcallback: *mut core::ffi::c_void, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsRasterizer_Impl, - { + pub const fn new() -> IXpsRasterizer_Vtbl { + unsafe extern "system" fn RasterizeRect(this: *mut core::ffi::c_void, x: i32, y: i32, width: i32, height: i32, notificationcallback: *mut core::ffi::c_void, bitmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsRasterizer_Impl::RasterizeRect(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), windows_core::from_raw_borrowed(¬ificationcallback)) { Ok(ok__) => { @@ -5073,10 +3894,7 @@ impl IXpsRasterizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinimalLineWidth(this: *mut core::ffi::c_void, width: i32) -> windows_core::HRESULT - where - Identity: IXpsRasterizer_Impl, - { + unsafe extern "system" fn SetMinimalLineWidth(this: *mut core::ffi::c_void, width: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsRasterizer_Impl::SetMinimalLineWidth(this, core::mem::transmute_copy(&width)).into() } @@ -5090,19 +3908,13 @@ impl IXpsRasterizer_Vtbl { iid == &::IID } } -pub trait IXpsRasterizerNotificationCallback_Impl: Sized { +pub trait IXpsRasterizerNotificationCallback_Impl: Sized + windows_core::IUnknownImpl { fn Continue(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXpsRasterizerNotificationCallback {} impl IXpsRasterizerNotificationCallback_Vtbl { - pub const fn new() -> IXpsRasterizerNotificationCallback_Vtbl - where - Identity: IXpsRasterizerNotificationCallback_Impl, - { - unsafe extern "system" fn Continue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsRasterizerNotificationCallback_Impl, - { + pub const fn new() -> IXpsRasterizerNotificationCallback_Vtbl { + unsafe extern "system" fn Continue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsRasterizerNotificationCallback_Impl::Continue(this).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/impl.rs index d9d012fa4a..9bfdf61e16 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/impl.rs @@ -1,45 +1,30 @@ -pub trait IApoAcousticEchoCancellation_Impl: Sized {} +pub trait IApoAcousticEchoCancellation_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IApoAcousticEchoCancellation {} impl IApoAcousticEchoCancellation_Vtbl { - pub const fn new() -> IApoAcousticEchoCancellation_Vtbl - where - Identity: IApoAcousticEchoCancellation_Impl, - { + pub const fn new() -> IApoAcousticEchoCancellation_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IApoAuxiliaryInputConfiguration_Impl: Sized { +pub trait IApoAuxiliaryInputConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn AddAuxiliaryInput(&self, dwinputid: u32, cbdatasize: u32, pbydata: *const u8, pinputconnection: *const APO_CONNECTION_DESCRIPTOR) -> windows_core::Result<()>; fn RemoveAuxiliaryInput(&self, dwinputid: u32) -> windows_core::Result<()>; fn IsInputFormatSupported(&self, prequestedinputformat: Option<&IAudioMediaType>) -> windows_core::Result; } impl windows_core::RuntimeName for IApoAuxiliaryInputConfiguration {} impl IApoAuxiliaryInputConfiguration_Vtbl { - pub const fn new() -> IApoAuxiliaryInputConfiguration_Vtbl - where - Identity: IApoAuxiliaryInputConfiguration_Impl, - { - unsafe extern "system" fn AddAuxiliaryInput(this: *mut core::ffi::c_void, dwinputid: u32, cbdatasize: u32, pbydata: *const u8, pinputconnection: *const APO_CONNECTION_DESCRIPTOR) -> windows_core::HRESULT - where - Identity: IApoAuxiliaryInputConfiguration_Impl, - { + pub const fn new() -> IApoAuxiliaryInputConfiguration_Vtbl { + unsafe extern "system" fn AddAuxiliaryInput(this: *mut core::ffi::c_void, dwinputid: u32, cbdatasize: u32, pbydata: *const u8, pinputconnection: *const APO_CONNECTION_DESCRIPTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApoAuxiliaryInputConfiguration_Impl::AddAuxiliaryInput(this, core::mem::transmute_copy(&dwinputid), core::mem::transmute_copy(&cbdatasize), core::mem::transmute_copy(&pbydata), core::mem::transmute_copy(&pinputconnection)).into() } - unsafe extern "system" fn RemoveAuxiliaryInput(this: *mut core::ffi::c_void, dwinputid: u32) -> windows_core::HRESULT - where - Identity: IApoAuxiliaryInputConfiguration_Impl, - { + unsafe extern "system" fn RemoveAuxiliaryInput(this: *mut core::ffi::c_void, dwinputid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApoAuxiliaryInputConfiguration_Impl::RemoveAuxiliaryInput(this, core::mem::transmute_copy(&dwinputid)).into() } - unsafe extern "system" fn IsInputFormatSupported(this: *mut core::ffi::c_void, prequestedinputformat: *mut core::ffi::c_void, ppsupportedinputformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApoAuxiliaryInputConfiguration_Impl, - { + unsafe extern "system" fn IsInputFormatSupported(this: *mut core::ffi::c_void, prequestedinputformat: *mut core::ffi::c_void, ppsupportedinputformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApoAuxiliaryInputConfiguration_Impl::IsInputFormatSupported(this, windows_core::from_raw_borrowed(&prequestedinputformat)) { Ok(ok__) => { @@ -60,19 +45,13 @@ impl IApoAuxiliaryInputConfiguration_Vtbl { iid == &::IID } } -pub trait IApoAuxiliaryInputRT_Impl: Sized { +pub trait IApoAuxiliaryInputRT_Impl: Sized + windows_core::IUnknownImpl { fn AcceptInput(&self, dwinputid: u32, pinputconnection: *const APO_CONNECTION_PROPERTY); } impl windows_core::RuntimeName for IApoAuxiliaryInputRT {} impl IApoAuxiliaryInputRT_Vtbl { - pub const fn new() -> IApoAuxiliaryInputRT_Vtbl - where - Identity: IApoAuxiliaryInputRT_Impl, - { - unsafe extern "system" fn AcceptInput(this: *mut core::ffi::c_void, dwinputid: u32, pinputconnection: *const APO_CONNECTION_PROPERTY) - where - Identity: IApoAuxiliaryInputRT_Impl, - { + pub const fn new() -> IApoAuxiliaryInputRT_Vtbl { + unsafe extern "system" fn AcceptInput(this: *mut core::ffi::c_void, dwinputid: u32, pinputconnection: *const APO_CONNECTION_PROPERTY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApoAuxiliaryInputRT_Impl::AcceptInput(this, core::mem::transmute_copy(&dwinputid), core::mem::transmute_copy(&pinputconnection)) } @@ -82,19 +61,13 @@ impl IApoAuxiliaryInputRT_Vtbl { iid == &::IID } } -pub trait IAudioDeviceModulesClient_Impl: Sized { +pub trait IAudioDeviceModulesClient_Impl: Sized + windows_core::IUnknownImpl { fn SetAudioDeviceModulesManager(&self, paudiodevicemodulesmanager: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioDeviceModulesClient {} impl IAudioDeviceModulesClient_Vtbl { - pub const fn new() -> IAudioDeviceModulesClient_Vtbl - where - Identity: IAudioDeviceModulesClient_Impl, - { - unsafe extern "system" fn SetAudioDeviceModulesManager(this: *mut core::ffi::c_void, paudiodevicemodulesmanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioDeviceModulesClient_Impl, - { + pub const fn new() -> IAudioDeviceModulesClient_Vtbl { + unsafe extern "system" fn SetAudioDeviceModulesManager(this: *mut core::ffi::c_void, paudiodevicemodulesmanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioDeviceModulesClient_Impl::SetAudioDeviceModulesManager(this, windows_core::from_raw_borrowed(&paudiodevicemodulesmanager)).into() } @@ -104,7 +77,7 @@ impl IAudioDeviceModulesClient_Vtbl { iid == &::IID } } -pub trait IAudioMediaType_Impl: Sized { +pub trait IAudioMediaType_Impl: Sized + windows_core::IUnknownImpl { fn IsCompressedFormat(&self) -> windows_core::Result; fn IsEqual(&self, piaudiotype: Option<&IAudioMediaType>) -> windows_core::Result; fn GetAudioFormat(&self) -> *mut super::WAVEFORMATEX; @@ -112,14 +85,8 @@ pub trait IAudioMediaType_Impl: Sized { } impl windows_core::RuntimeName for IAudioMediaType {} impl IAudioMediaType_Vtbl { - pub const fn new() -> IAudioMediaType_Vtbl - where - Identity: IAudioMediaType_Impl, - { - unsafe extern "system" fn IsCompressedFormat(this: *mut core::ffi::c_void, pfcompressed: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioMediaType_Impl, - { + pub const fn new() -> IAudioMediaType_Vtbl { + unsafe extern "system" fn IsCompressedFormat(this: *mut core::ffi::c_void, pfcompressed: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioMediaType_Impl::IsCompressedFormat(this) { Ok(ok__) => { @@ -129,10 +96,7 @@ impl IAudioMediaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, piaudiotype: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioMediaType_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, piaudiotype: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioMediaType_Impl::IsEqual(this, windows_core::from_raw_borrowed(&piaudiotype)) { Ok(ok__) => { @@ -142,17 +106,11 @@ impl IAudioMediaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAudioFormat(this: *mut core::ffi::c_void) -> *mut super::WAVEFORMATEX - where - Identity: IAudioMediaType_Impl, - { + unsafe extern "system" fn GetAudioFormat(this: *mut core::ffi::c_void) -> *mut super::WAVEFORMATEX { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioMediaType_Impl::GetAudioFormat(this) } - unsafe extern "system" fn GetUncompressedAudioFormat(this: *mut core::ffi::c_void, puncompressedaudioformat: *mut UNCOMPRESSEDAUDIOFORMAT) -> windows_core::HRESULT - where - Identity: IAudioMediaType_Impl, - { + unsafe extern "system" fn GetUncompressedAudioFormat(this: *mut core::ffi::c_void, puncompressedaudioformat: *mut UNCOMPRESSEDAUDIOFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioMediaType_Impl::GetUncompressedAudioFormat(this, core::mem::transmute_copy(&puncompressedaudioformat)).into() } @@ -168,7 +126,7 @@ impl IAudioMediaType_Vtbl { iid == &::IID } } -pub trait IAudioProcessingObject_Impl: Sized { +pub trait IAudioProcessingObject_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn GetLatency(&self) -> windows_core::Result; fn GetRegistrationProperties(&self) -> windows_core::Result<*mut APO_REG_PROPERTIES>; @@ -179,21 +137,12 @@ pub trait IAudioProcessingObject_Impl: Sized { } impl windows_core::RuntimeName for IAudioProcessingObject {} impl IAudioProcessingObject_Vtbl { - pub const fn new() -> IAudioProcessingObject_Vtbl - where - Identity: IAudioProcessingObject_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioProcessingObject_Impl, - { + pub const fn new() -> IAudioProcessingObject_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObject_Impl::Reset(this).into() } - unsafe extern "system" fn GetLatency(this: *mut core::ffi::c_void, ptime: *mut i64) -> windows_core::HRESULT - where - Identity: IAudioProcessingObject_Impl, - { + unsafe extern "system" fn GetLatency(this: *mut core::ffi::c_void, ptime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioProcessingObject_Impl::GetLatency(this) { Ok(ok__) => { @@ -203,10 +152,7 @@ impl IAudioProcessingObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRegistrationProperties(this: *mut core::ffi::c_void, ppregprops: *mut *mut APO_REG_PROPERTIES) -> windows_core::HRESULT - where - Identity: IAudioProcessingObject_Impl, - { + unsafe extern "system" fn GetRegistrationProperties(this: *mut core::ffi::c_void, ppregprops: *mut *mut APO_REG_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioProcessingObject_Impl::GetRegistrationProperties(this) { Ok(ok__) => { @@ -216,17 +162,11 @@ impl IAudioProcessingObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, cbdatasize: u32, pbydata: *const u8) -> windows_core::HRESULT - where - Identity: IAudioProcessingObject_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, cbdatasize: u32, pbydata: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObject_Impl::Initialize(this, core::mem::transmute_copy(&cbdatasize), core::mem::transmute_copy(&pbydata)).into() } - unsafe extern "system" fn IsInputFormatSupported(this: *mut core::ffi::c_void, poppositeformat: *mut core::ffi::c_void, prequestedinputformat: *mut core::ffi::c_void, ppsupportedinputformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioProcessingObject_Impl, - { + unsafe extern "system" fn IsInputFormatSupported(this: *mut core::ffi::c_void, poppositeformat: *mut core::ffi::c_void, prequestedinputformat: *mut core::ffi::c_void, ppsupportedinputformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioProcessingObject_Impl::IsInputFormatSupported(this, windows_core::from_raw_borrowed(&poppositeformat), windows_core::from_raw_borrowed(&prequestedinputformat)) { Ok(ok__) => { @@ -236,10 +176,7 @@ impl IAudioProcessingObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOutputFormatSupported(this: *mut core::ffi::c_void, poppositeformat: *mut core::ffi::c_void, prequestedoutputformat: *mut core::ffi::c_void, ppsupportedoutputformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioProcessingObject_Impl, - { + unsafe extern "system" fn IsOutputFormatSupported(this: *mut core::ffi::c_void, poppositeformat: *mut core::ffi::c_void, prequestedoutputformat: *mut core::ffi::c_void, ppsupportedoutputformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioProcessingObject_Impl::IsOutputFormatSupported(this, windows_core::from_raw_borrowed(&poppositeformat), windows_core::from_raw_borrowed(&prequestedoutputformat)) { Ok(ok__) => { @@ -249,10 +186,7 @@ impl IAudioProcessingObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputChannelCount(this: *mut core::ffi::c_void, pu32channelcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioProcessingObject_Impl, - { + unsafe extern "system" fn GetInputChannelCount(this: *mut core::ffi::c_void, pu32channelcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioProcessingObject_Impl::GetInputChannelCount(this) { Ok(ok__) => { @@ -277,27 +211,18 @@ impl IAudioProcessingObject_Vtbl { iid == &::IID } } -pub trait IAudioProcessingObjectConfiguration_Impl: Sized { +pub trait IAudioProcessingObjectConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn LockForProcess(&self, u32numinputconnections: u32, ppinputconnections: *const *const APO_CONNECTION_DESCRIPTOR, u32numoutputconnections: u32, ppoutputconnections: *const *const APO_CONNECTION_DESCRIPTOR) -> windows_core::Result<()>; fn UnlockForProcess(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioProcessingObjectConfiguration {} impl IAudioProcessingObjectConfiguration_Vtbl { - pub const fn new() -> IAudioProcessingObjectConfiguration_Vtbl - where - Identity: IAudioProcessingObjectConfiguration_Impl, - { - unsafe extern "system" fn LockForProcess(this: *mut core::ffi::c_void, u32numinputconnections: u32, ppinputconnections: *const *const APO_CONNECTION_DESCRIPTOR, u32numoutputconnections: u32, ppoutputconnections: *const *const APO_CONNECTION_DESCRIPTOR) -> windows_core::HRESULT - where - Identity: IAudioProcessingObjectConfiguration_Impl, - { + pub const fn new() -> IAudioProcessingObjectConfiguration_Vtbl { + unsafe extern "system" fn LockForProcess(this: *mut core::ffi::c_void, u32numinputconnections: u32, ppinputconnections: *const *const APO_CONNECTION_DESCRIPTOR, u32numoutputconnections: u32, ppoutputconnections: *const *const APO_CONNECTION_DESCRIPTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObjectConfiguration_Impl::LockForProcess(this, core::mem::transmute_copy(&u32numinputconnections), core::mem::transmute_copy(&ppinputconnections), core::mem::transmute_copy(&u32numoutputconnections), core::mem::transmute_copy(&ppoutputconnections)).into() } - unsafe extern "system" fn UnlockForProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioProcessingObjectConfiguration_Impl, - { + unsafe extern "system" fn UnlockForProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObjectConfiguration_Impl::UnlockForProcess(this).into() } @@ -311,19 +236,13 @@ impl IAudioProcessingObjectConfiguration_Vtbl { iid == &::IID } } -pub trait IAudioProcessingObjectLoggingService_Impl: Sized { +pub trait IAudioProcessingObjectLoggingService_Impl: Sized + windows_core::IUnknownImpl { fn ApoLog(&self, level: APO_LOG_LEVEL, format: &windows_core::PCWSTR); } impl windows_core::RuntimeName for IAudioProcessingObjectLoggingService {} impl IAudioProcessingObjectLoggingService_Vtbl { - pub const fn new() -> IAudioProcessingObjectLoggingService_Vtbl - where - Identity: IAudioProcessingObjectLoggingService_Impl, - { - unsafe extern "system" fn ApoLog(this: *mut core::ffi::c_void, level: APO_LOG_LEVEL, format: windows_core::PCWSTR) - where - Identity: IAudioProcessingObjectLoggingService_Impl, - { + pub const fn new() -> IAudioProcessingObjectLoggingService_Vtbl { + unsafe extern "system" fn ApoLog(this: *mut core::ffi::c_void, level: APO_LOG_LEVEL, format: windows_core::PCWSTR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObjectLoggingService_Impl::ApoLog(this, core::mem::transmute_copy(&level), core::mem::transmute(&format)) } @@ -334,7 +253,7 @@ impl IAudioProcessingObjectLoggingService_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IAudioProcessingObjectNotifications_Impl: Sized { +pub trait IAudioProcessingObjectNotifications_Impl: Sized + windows_core::IUnknownImpl { fn GetApoNotificationRegistrationInfo(&self, aponotifications: *mut *mut APO_NOTIFICATION_DESCRIPTOR, count: *mut u32) -> windows_core::Result<()>; fn HandleNotification(&self, aponotification: *const APO_NOTIFICATION); } @@ -342,21 +261,12 @@ pub trait IAudioProcessingObjectNotifications_Impl: Sized { impl windows_core::RuntimeName for IAudioProcessingObjectNotifications {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IAudioProcessingObjectNotifications_Vtbl { - pub const fn new() -> IAudioProcessingObjectNotifications_Vtbl - where - Identity: IAudioProcessingObjectNotifications_Impl, - { - unsafe extern "system" fn GetApoNotificationRegistrationInfo(this: *mut core::ffi::c_void, aponotifications: *mut *mut APO_NOTIFICATION_DESCRIPTOR, count: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioProcessingObjectNotifications_Impl, - { + pub const fn new() -> IAudioProcessingObjectNotifications_Vtbl { + unsafe extern "system" fn GetApoNotificationRegistrationInfo(this: *mut core::ffi::c_void, aponotifications: *mut *mut APO_NOTIFICATION_DESCRIPTOR, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObjectNotifications_Impl::GetApoNotificationRegistrationInfo(this, core::mem::transmute_copy(&aponotifications), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn HandleNotification(this: *mut core::ffi::c_void, aponotification: *const APO_NOTIFICATION) - where - Identity: IAudioProcessingObjectNotifications_Impl, - { + unsafe extern "system" fn HandleNotification(this: *mut core::ffi::c_void, aponotification: *const APO_NOTIFICATION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObjectNotifications_Impl::HandleNotification(this, core::mem::transmute_copy(&aponotification)) } @@ -378,14 +288,8 @@ pub trait IAudioProcessingObjectNotifications2_Impl: Sized + IAudioProcessingObj impl windows_core::RuntimeName for IAudioProcessingObjectNotifications2 {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IAudioProcessingObjectNotifications2_Vtbl { - pub const fn new() -> IAudioProcessingObjectNotifications2_Vtbl - where - Identity: IAudioProcessingObjectNotifications2_Impl, - { - unsafe extern "system" fn GetApoNotificationRegistrationInfo2(this: *mut core::ffi::c_void, maxaponotificationtypesupported: APO_NOTIFICATION_TYPE, aponotifications: *mut *mut APO_NOTIFICATION_DESCRIPTOR, count: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioProcessingObjectNotifications2_Impl, - { + pub const fn new() -> IAudioProcessingObjectNotifications2_Vtbl { + unsafe extern "system" fn GetApoNotificationRegistrationInfo2(this: *mut core::ffi::c_void, maxaponotificationtypesupported: APO_NOTIFICATION_TYPE, aponotifications: *mut *mut APO_NOTIFICATION_DESCRIPTOR, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObjectNotifications2_Impl::GetApoNotificationRegistrationInfo2(this, core::mem::transmute_copy(&maxaponotificationtypesupported), core::mem::transmute_copy(&aponotifications), core::mem::transmute_copy(&count)).into() } @@ -398,35 +302,23 @@ impl IAudioProcessingObjectNotifications2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAudioProcessingObjectRT_Impl: Sized { +pub trait IAudioProcessingObjectRT_Impl: Sized + windows_core::IUnknownImpl { fn APOProcess(&self, u32numinputconnections: u32, ppinputconnections: *const *const APO_CONNECTION_PROPERTY, u32numoutputconnections: u32, ppoutputconnections: *mut *mut APO_CONNECTION_PROPERTY); fn CalcInputFrames(&self, u32outputframecount: u32) -> u32; fn CalcOutputFrames(&self, u32inputframecount: u32) -> u32; } impl windows_core::RuntimeName for IAudioProcessingObjectRT {} impl IAudioProcessingObjectRT_Vtbl { - pub const fn new() -> IAudioProcessingObjectRT_Vtbl - where - Identity: IAudioProcessingObjectRT_Impl, - { - unsafe extern "system" fn APOProcess(this: *mut core::ffi::c_void, u32numinputconnections: u32, ppinputconnections: *const *const APO_CONNECTION_PROPERTY, u32numoutputconnections: u32, ppoutputconnections: *mut *mut APO_CONNECTION_PROPERTY) - where - Identity: IAudioProcessingObjectRT_Impl, - { + pub const fn new() -> IAudioProcessingObjectRT_Vtbl { + unsafe extern "system" fn APOProcess(this: *mut core::ffi::c_void, u32numinputconnections: u32, ppinputconnections: *const *const APO_CONNECTION_PROPERTY, u32numoutputconnections: u32, ppoutputconnections: *mut *mut APO_CONNECTION_PROPERTY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObjectRT_Impl::APOProcess(this, core::mem::transmute_copy(&u32numinputconnections), core::mem::transmute_copy(&ppinputconnections), core::mem::transmute_copy(&u32numoutputconnections), core::mem::transmute_copy(&ppoutputconnections)) } - unsafe extern "system" fn CalcInputFrames(this: *mut core::ffi::c_void, u32outputframecount: u32) -> u32 - where - Identity: IAudioProcessingObjectRT_Impl, - { + unsafe extern "system" fn CalcInputFrames(this: *mut core::ffi::c_void, u32outputframecount: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObjectRT_Impl::CalcInputFrames(this, core::mem::transmute_copy(&u32outputframecount)) } - unsafe extern "system" fn CalcOutputFrames(this: *mut core::ffi::c_void, u32inputframecount: u32) -> u32 - where - Identity: IAudioProcessingObjectRT_Impl, - { + unsafe extern "system" fn CalcOutputFrames(this: *mut core::ffi::c_void, u32inputframecount: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioProcessingObjectRT_Impl::CalcOutputFrames(this, core::mem::transmute_copy(&u32inputframecount)) } @@ -441,19 +333,13 @@ impl IAudioProcessingObjectRT_Vtbl { iid == &::IID } } -pub trait IAudioProcessingObjectRTQueueService_Impl: Sized { +pub trait IAudioProcessingObjectRTQueueService_Impl: Sized + windows_core::IUnknownImpl { fn GetRealTimeWorkQueue(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioProcessingObjectRTQueueService {} impl IAudioProcessingObjectRTQueueService_Vtbl { - pub const fn new() -> IAudioProcessingObjectRTQueueService_Vtbl - where - Identity: IAudioProcessingObjectRTQueueService_Impl, - { - unsafe extern "system" fn GetRealTimeWorkQueue(this: *mut core::ffi::c_void, workqueueid: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioProcessingObjectRTQueueService_Impl, - { + pub const fn new() -> IAudioProcessingObjectRTQueueService_Vtbl { + unsafe extern "system" fn GetRealTimeWorkQueue(this: *mut core::ffi::c_void, workqueueid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioProcessingObjectRTQueueService_Impl::GetRealTimeWorkQueue(this) { Ok(ok__) => { @@ -469,20 +355,14 @@ impl IAudioProcessingObjectRTQueueService_Vtbl { iid == &::IID } } -pub trait IAudioProcessingObjectVBR_Impl: Sized { +pub trait IAudioProcessingObjectVBR_Impl: Sized + windows_core::IUnknownImpl { fn CalcMaxInputFrames(&self, u32maxoutputframecount: u32) -> windows_core::Result; fn CalcMaxOutputFrames(&self, u32maxinputframecount: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioProcessingObjectVBR {} impl IAudioProcessingObjectVBR_Vtbl { - pub const fn new() -> IAudioProcessingObjectVBR_Vtbl - where - Identity: IAudioProcessingObjectVBR_Impl, - { - unsafe extern "system" fn CalcMaxInputFrames(this: *mut core::ffi::c_void, u32maxoutputframecount: u32, pu32inputframecount: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioProcessingObjectVBR_Impl, - { + pub const fn new() -> IAudioProcessingObjectVBR_Vtbl { + unsafe extern "system" fn CalcMaxInputFrames(this: *mut core::ffi::c_void, u32maxoutputframecount: u32, pu32inputframecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioProcessingObjectVBR_Impl::CalcMaxInputFrames(this, core::mem::transmute_copy(&u32maxoutputframecount)) { Ok(ok__) => { @@ -492,10 +372,7 @@ impl IAudioProcessingObjectVBR_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CalcMaxOutputFrames(this: *mut core::ffi::c_void, u32maxinputframecount: u32, pu32outputframecount: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioProcessingObjectVBR_Impl, - { + unsafe extern "system" fn CalcMaxOutputFrames(this: *mut core::ffi::c_void, u32maxinputframecount: u32, pu32outputframecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioProcessingObjectVBR_Impl::CalcMaxOutputFrames(this, core::mem::transmute_copy(&u32maxinputframecount)) { Ok(ok__) => { @@ -515,13 +392,10 @@ impl IAudioProcessingObjectVBR_Vtbl { iid == &::IID } } -pub trait IAudioSystemEffects_Impl: Sized {} +pub trait IAudioSystemEffects_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IAudioSystemEffects {} impl IAudioSystemEffects_Vtbl { - pub const fn new() -> IAudioSystemEffects_Vtbl - where - Identity: IAudioSystemEffects_Impl, - { + pub const fn new() -> IAudioSystemEffects_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -533,14 +407,8 @@ pub trait IAudioSystemEffects2_Impl: Sized + IAudioSystemEffects_Impl { } impl windows_core::RuntimeName for IAudioSystemEffects2 {} impl IAudioSystemEffects2_Vtbl { - pub const fn new() -> IAudioSystemEffects2_Vtbl - where - Identity: IAudioSystemEffects2_Impl, - { - unsafe extern "system" fn GetEffectsList(this: *mut core::ffi::c_void, ppeffectsids: *mut *mut windows_core::GUID, pceffects: *mut u32, event: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IAudioSystemEffects2_Impl, - { + pub const fn new() -> IAudioSystemEffects2_Vtbl { + unsafe extern "system" fn GetEffectsList(this: *mut core::ffi::c_void, ppeffectsids: *mut *mut windows_core::GUID, pceffects: *mut u32, event: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSystemEffects2_Impl::GetEffectsList(this, core::mem::transmute_copy(&ppeffectsids), core::mem::transmute_copy(&pceffects), core::mem::transmute_copy(&event)).into() } @@ -556,21 +424,12 @@ pub trait IAudioSystemEffects3_Impl: Sized + IAudioSystemEffects2_Impl { } impl windows_core::RuntimeName for IAudioSystemEffects3 {} impl IAudioSystemEffects3_Vtbl { - pub const fn new() -> IAudioSystemEffects3_Vtbl - where - Identity: IAudioSystemEffects3_Impl, - { - unsafe extern "system" fn GetControllableSystemEffectsList(this: *mut core::ffi::c_void, effects: *mut *mut AUDIO_SYSTEMEFFECT, numeffects: *mut u32, event: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IAudioSystemEffects3_Impl, - { + pub const fn new() -> IAudioSystemEffects3_Vtbl { + unsafe extern "system" fn GetControllableSystemEffectsList(this: *mut core::ffi::c_void, effects: *mut *mut AUDIO_SYSTEMEFFECT, numeffects: *mut u32, event: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSystemEffects3_Impl::GetControllableSystemEffectsList(this, core::mem::transmute_copy(&effects), core::mem::transmute_copy(&numeffects), core::mem::transmute_copy(&event)).into() } - unsafe extern "system" fn SetAudioSystemEffectState(this: *mut core::ffi::c_void, effectid: windows_core::GUID, state: AUDIO_SYSTEMEFFECT_STATE) -> windows_core::HRESULT - where - Identity: IAudioSystemEffects3_Impl, - { + unsafe extern "system" fn SetAudioSystemEffectState(this: *mut core::ffi::c_void, effectid: windows_core::GUID, state: AUDIO_SYSTEMEFFECT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSystemEffects3_Impl::SetAudioSystemEffectState(this, core::mem::transmute(&effectid), core::mem::transmute_copy(&state)).into() } @@ -584,21 +443,15 @@ impl IAudioSystemEffects3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IAudioSystemEffectsCustomFormats_Impl: Sized { +pub trait IAudioSystemEffectsCustomFormats_Impl: Sized + windows_core::IUnknownImpl { fn GetFormatCount(&self) -> windows_core::Result; fn GetFormat(&self, nformat: u32) -> windows_core::Result; fn GetFormatRepresentation(&self, nformat: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioSystemEffectsCustomFormats {} impl IAudioSystemEffectsCustomFormats_Vtbl { - pub const fn new() -> IAudioSystemEffectsCustomFormats_Vtbl - where - Identity: IAudioSystemEffectsCustomFormats_Impl, - { - unsafe extern "system" fn GetFormatCount(this: *mut core::ffi::c_void, pcformats: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsCustomFormats_Impl, - { + pub const fn new() -> IAudioSystemEffectsCustomFormats_Vtbl { + unsafe extern "system" fn GetFormatCount(this: *mut core::ffi::c_void, pcformats: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSystemEffectsCustomFormats_Impl::GetFormatCount(this) { Ok(ok__) => { @@ -608,10 +461,7 @@ impl IAudioSystemEffectsCustomFormats_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, nformat: u32, ppformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsCustomFormats_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, nformat: u32, ppformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSystemEffectsCustomFormats_Impl::GetFormat(this, core::mem::transmute_copy(&nformat)) { Ok(ok__) => { @@ -621,10 +471,7 @@ impl IAudioSystemEffectsCustomFormats_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormatRepresentation(this: *mut core::ffi::c_void, nformat: u32, ppwstrformatrep: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsCustomFormats_Impl, - { + unsafe extern "system" fn GetFormatRepresentation(this: *mut core::ffi::c_void, nformat: u32, ppwstrformatrep: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSystemEffectsCustomFormats_Impl::GetFormatRepresentation(this, core::mem::transmute_copy(&nformat)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/impl.rs index b17a3a1d88..146af2f473 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_Media_Audio_DirectSound")] -pub trait IDirectMusic_Impl: Sized { +pub trait IDirectMusic_Impl: Sized + windows_core::IUnknownImpl { fn EnumPort(&self, dwindex: u32, pportcaps: *mut DMUS_PORTCAPS) -> windows_core::Result<()>; fn CreateMusicBuffer(&self, pbufferdesc: *mut DMUS_BUFFERDESC, ppbuffer: *mut Option, punkouter: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn CreatePort(&self, rclsidport: *const windows_core::GUID, pportparams: *mut DMUS_PORTPARAMS8, ppport: *mut Option, punkouter: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -14,70 +14,40 @@ pub trait IDirectMusic_Impl: Sized { impl windows_core::RuntimeName for IDirectMusic {} #[cfg(feature = "Win32_Media_Audio_DirectSound")] impl IDirectMusic_Vtbl { - pub const fn new() -> IDirectMusic_Vtbl - where - Identity: IDirectMusic_Impl, - { - unsafe extern "system" fn EnumPort(this: *mut core::ffi::c_void, dwindex: u32, pportcaps: *mut DMUS_PORTCAPS) -> windows_core::HRESULT - where - Identity: IDirectMusic_Impl, - { + pub const fn new() -> IDirectMusic_Vtbl { + unsafe extern "system" fn EnumPort(this: *mut core::ffi::c_void, dwindex: u32, pportcaps: *mut DMUS_PORTCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic_Impl::EnumPort(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pportcaps)).into() } - unsafe extern "system" fn CreateMusicBuffer(this: *mut core::ffi::c_void, pbufferdesc: *mut DMUS_BUFFERDESC, ppbuffer: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusic_Impl, - { + unsafe extern "system" fn CreateMusicBuffer(this: *mut core::ffi::c_void, pbufferdesc: *mut DMUS_BUFFERDESC, ppbuffer: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic_Impl::CreateMusicBuffer(this, core::mem::transmute_copy(&pbufferdesc), core::mem::transmute_copy(&ppbuffer), windows_core::from_raw_borrowed(&punkouter)).into() } - unsafe extern "system" fn CreatePort(this: *mut core::ffi::c_void, rclsidport: *const windows_core::GUID, pportparams: *mut DMUS_PORTPARAMS8, ppport: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusic_Impl, - { + unsafe extern "system" fn CreatePort(this: *mut core::ffi::c_void, rclsidport: *const windows_core::GUID, pportparams: *mut DMUS_PORTPARAMS8, ppport: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic_Impl::CreatePort(this, core::mem::transmute_copy(&rclsidport), core::mem::transmute_copy(&pportparams), core::mem::transmute_copy(&ppport), windows_core::from_raw_borrowed(&punkouter)).into() } - unsafe extern "system" fn EnumMasterClock(this: *mut core::ffi::c_void, dwindex: u32, lpclockinfo: *mut DMUS_CLOCKINFO8) -> windows_core::HRESULT - where - Identity: IDirectMusic_Impl, - { + unsafe extern "system" fn EnumMasterClock(this: *mut core::ffi::c_void, dwindex: u32, lpclockinfo: *mut DMUS_CLOCKINFO8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic_Impl::EnumMasterClock(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&lpclockinfo)).into() } - unsafe extern "system" fn GetMasterClock(this: *mut core::ffi::c_void, pguidclock: *mut windows_core::GUID, ppreferenceclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusic_Impl, - { + unsafe extern "system" fn GetMasterClock(this: *mut core::ffi::c_void, pguidclock: *mut windows_core::GUID, ppreferenceclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic_Impl::GetMasterClock(this, core::mem::transmute_copy(&pguidclock), core::mem::transmute_copy(&ppreferenceclock)).into() } - unsafe extern "system" fn SetMasterClock(this: *mut core::ffi::c_void, rguidclock: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectMusic_Impl, - { + unsafe extern "system" fn SetMasterClock(this: *mut core::ffi::c_void, rguidclock: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic_Impl::SetMasterClock(this, core::mem::transmute_copy(&rguidclock)).into() } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectMusic_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic_Impl::Activate(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn GetDefaultPort(this: *mut core::ffi::c_void, pguidport: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectMusic_Impl, - { + unsafe extern "system" fn GetDefaultPort(this: *mut core::ffi::c_void, pguidport: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic_Impl::GetDefaultPort(this, core::mem::transmute_copy(&pguidport)).into() } - unsafe extern "system" fn SetDirectSound(this: *mut core::ffi::c_void, pdirectsound: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDirectMusic_Impl, - { + unsafe extern "system" fn SetDirectSound(this: *mut core::ffi::c_void, pdirectsound: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic_Impl::SetDirectSound(this, windows_core::from_raw_borrowed(&pdirectsound), core::mem::transmute_copy(&hwnd)).into() } @@ -106,14 +76,8 @@ pub trait IDirectMusic8_Impl: Sized + IDirectMusic_Impl { impl windows_core::RuntimeName for IDirectMusic8 {} #[cfg(feature = "Win32_Media_Audio_DirectSound")] impl IDirectMusic8_Vtbl { - pub const fn new() -> IDirectMusic8_Vtbl - where - Identity: IDirectMusic8_Impl, - { - unsafe extern "system" fn SetExternalMasterClock(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusic8_Impl, - { + pub const fn new() -> IDirectMusic8_Vtbl { + unsafe extern "system" fn SetExternalMasterClock(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic8_Impl::SetExternalMasterClock(this, windows_core::from_raw_borrowed(&pclock)).into() } @@ -123,7 +87,7 @@ impl IDirectMusic8_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDirectMusicBuffer_Impl: Sized { +pub trait IDirectMusicBuffer_Impl: Sized + windows_core::IUnknownImpl { fn Flush(&self) -> windows_core::Result<()>; fn TotalTime(&self, prttime: *mut i64) -> windows_core::Result<()>; fn PackStructured(&self, rt: i64, dwchannelgroup: u32, dwchannelmessage: u32) -> windows_core::Result<()>; @@ -140,98 +104,56 @@ pub trait IDirectMusicBuffer_Impl: Sized { } impl windows_core::RuntimeName for IDirectMusicBuffer {} impl IDirectMusicBuffer_Vtbl { - pub const fn new() -> IDirectMusicBuffer_Vtbl - where - Identity: IDirectMusicBuffer_Impl, - { - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + pub const fn new() -> IDirectMusicBuffer_Vtbl { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::Flush(this).into() } - unsafe extern "system" fn TotalTime(this: *mut core::ffi::c_void, prttime: *mut i64) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn TotalTime(this: *mut core::ffi::c_void, prttime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::TotalTime(this, core::mem::transmute_copy(&prttime)).into() } - unsafe extern "system" fn PackStructured(this: *mut core::ffi::c_void, rt: i64, dwchannelgroup: u32, dwchannelmessage: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn PackStructured(this: *mut core::ffi::c_void, rt: i64, dwchannelgroup: u32, dwchannelmessage: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::PackStructured(this, core::mem::transmute_copy(&rt), core::mem::transmute_copy(&dwchannelgroup), core::mem::transmute_copy(&dwchannelmessage)).into() } - unsafe extern "system" fn PackUnstructured(this: *mut core::ffi::c_void, rt: i64, dwchannelgroup: u32, cb: u32, lpb: *mut u8) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn PackUnstructured(this: *mut core::ffi::c_void, rt: i64, dwchannelgroup: u32, cb: u32, lpb: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::PackUnstructured(this, core::mem::transmute_copy(&rt), core::mem::transmute_copy(&dwchannelgroup), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&lpb)).into() } - unsafe extern "system" fn ResetReadPtr(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn ResetReadPtr(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::ResetReadPtr(this).into() } - unsafe extern "system" fn GetNextEvent(this: *mut core::ffi::c_void, prt: *mut i64, pdwchannelgroup: *mut u32, pdwlength: *mut u32, ppdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn GetNextEvent(this: *mut core::ffi::c_void, prt: *mut i64, pdwchannelgroup: *mut u32, pdwlength: *mut u32, ppdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::GetNextEvent(this, core::mem::transmute_copy(&prt), core::mem::transmute_copy(&pdwchannelgroup), core::mem::transmute_copy(&pdwlength), core::mem::transmute_copy(&ppdata)).into() } - unsafe extern "system" fn GetRawBufferPtr(this: *mut core::ffi::c_void, ppdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn GetRawBufferPtr(this: *mut core::ffi::c_void, ppdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::GetRawBufferPtr(this, core::mem::transmute_copy(&ppdata)).into() } - unsafe extern "system" fn GetStartTime(this: *mut core::ffi::c_void, prt: *mut i64) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn GetStartTime(this: *mut core::ffi::c_void, prt: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::GetStartTime(this, core::mem::transmute_copy(&prt)).into() } - unsafe extern "system" fn GetUsedBytes(this: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn GetUsedBytes(this: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::GetUsedBytes(this, core::mem::transmute_copy(&pcb)).into() } - unsafe extern "system" fn GetMaxBytes(this: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn GetMaxBytes(this: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::GetMaxBytes(this, core::mem::transmute_copy(&pcb)).into() } - unsafe extern "system" fn GetBufferFormat(this: *mut core::ffi::c_void, pguidformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn GetBufferFormat(this: *mut core::ffi::c_void, pguidformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::GetBufferFormat(this, core::mem::transmute_copy(&pguidformat)).into() } - unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, rt: i64) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, rt: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::SetStartTime(this, core::mem::transmute_copy(&rt)).into() } - unsafe extern "system" fn SetUsedBytes(this: *mut core::ffi::c_void, cb: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicBuffer_Impl, - { + unsafe extern "system" fn SetUsedBytes(this: *mut core::ffi::c_void, cb: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicBuffer_Impl::SetUsedBytes(this, core::mem::transmute_copy(&cb)).into() } @@ -256,20 +178,14 @@ impl IDirectMusicBuffer_Vtbl { iid == &::IID } } -pub trait IDirectMusicCollection_Impl: Sized { +pub trait IDirectMusicCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetInstrument(&self, dwpatch: u32) -> windows_core::Result; fn EnumInstrument(&self, dwindex: u32, pdwpatch: *mut u32, pwszname: &windows_core::PCWSTR, dwnamelen: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectMusicCollection {} impl IDirectMusicCollection_Vtbl { - pub const fn new() -> IDirectMusicCollection_Vtbl - where - Identity: IDirectMusicCollection_Impl, - { - unsafe extern "system" fn GetInstrument(this: *mut core::ffi::c_void, dwpatch: u32, ppinstrument: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicCollection_Impl, - { + pub const fn new() -> IDirectMusicCollection_Vtbl { + unsafe extern "system" fn GetInstrument(this: *mut core::ffi::c_void, dwpatch: u32, ppinstrument: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectMusicCollection_Impl::GetInstrument(this, core::mem::transmute_copy(&dwpatch)) { Ok(ok__) => { @@ -279,10 +195,7 @@ impl IDirectMusicCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumInstrument(this: *mut core::ffi::c_void, dwindex: u32, pdwpatch: *mut u32, pwszname: windows_core::PCWSTR, dwnamelen: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicCollection_Impl, - { + unsafe extern "system" fn EnumInstrument(this: *mut core::ffi::c_void, dwindex: u32, pdwpatch: *mut u32, pwszname: windows_core::PCWSTR, dwnamelen: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicCollection_Impl::EnumInstrument(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pdwpatch), core::mem::transmute(&pwszname), core::mem::transmute_copy(&dwnamelen)).into() } @@ -296,19 +209,13 @@ impl IDirectMusicCollection_Vtbl { iid == &::IID } } -pub trait IDirectMusicDownload_Impl: Sized { +pub trait IDirectMusicDownload_Impl: Sized + windows_core::IUnknownImpl { fn GetBuffer(&self, ppvbuffer: *mut *mut core::ffi::c_void, pdwsize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectMusicDownload {} impl IDirectMusicDownload_Vtbl { - pub const fn new() -> IDirectMusicDownload_Vtbl - where - Identity: IDirectMusicDownload_Impl, - { - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, ppvbuffer: *mut *mut core::ffi::c_void, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicDownload_Impl, - { + pub const fn new() -> IDirectMusicDownload_Vtbl { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, ppvbuffer: *mut *mut core::ffi::c_void, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicDownload_Impl::GetBuffer(this, core::mem::transmute_copy(&ppvbuffer), core::mem::transmute_copy(&pdwsize)).into() } @@ -318,40 +225,28 @@ impl IDirectMusicDownload_Vtbl { iid == &::IID } } -pub trait IDirectMusicDownloadedInstrument_Impl: Sized {} +pub trait IDirectMusicDownloadedInstrument_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IDirectMusicDownloadedInstrument {} impl IDirectMusicDownloadedInstrument_Vtbl { - pub const fn new() -> IDirectMusicDownloadedInstrument_Vtbl - where - Identity: IDirectMusicDownloadedInstrument_Impl, - { + pub const fn new() -> IDirectMusicDownloadedInstrument_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IDirectMusicInstrument_Impl: Sized { +pub trait IDirectMusicInstrument_Impl: Sized + windows_core::IUnknownImpl { fn GetPatch(&self, pdwpatch: *mut u32) -> windows_core::Result<()>; fn SetPatch(&self, dwpatch: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectMusicInstrument {} impl IDirectMusicInstrument_Vtbl { - pub const fn new() -> IDirectMusicInstrument_Vtbl - where - Identity: IDirectMusicInstrument_Impl, - { - unsafe extern "system" fn GetPatch(this: *mut core::ffi::c_void, pdwpatch: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicInstrument_Impl, - { + pub const fn new() -> IDirectMusicInstrument_Vtbl { + unsafe extern "system" fn GetPatch(this: *mut core::ffi::c_void, pdwpatch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicInstrument_Impl::GetPatch(this, core::mem::transmute_copy(&pdwpatch)).into() } - unsafe extern "system" fn SetPatch(this: *mut core::ffi::c_void, dwpatch: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicInstrument_Impl, - { + unsafe extern "system" fn SetPatch(this: *mut core::ffi::c_void, dwpatch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicInstrument_Impl::SetPatch(this, core::mem::transmute_copy(&dwpatch)).into() } @@ -362,7 +257,7 @@ impl IDirectMusicInstrument_Vtbl { } } #[cfg(all(feature = "Win32_Media_Audio_DirectSound", feature = "Win32_System_IO"))] -pub trait IDirectMusicPort_Impl: Sized { +pub trait IDirectMusicPort_Impl: Sized + windows_core::IUnknownImpl { fn PlayBuffer(&self, pbuffer: Option<&IDirectMusicBuffer>) -> windows_core::Result<()>; fn SetReadNotificationHandle(&self, hevent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn Read(&self, pbuffer: Option<&IDirectMusicBuffer>) -> windows_core::Result<()>; @@ -385,49 +280,28 @@ pub trait IDirectMusicPort_Impl: Sized { impl windows_core::RuntimeName for IDirectMusicPort {} #[cfg(all(feature = "Win32_Media_Audio_DirectSound", feature = "Win32_System_IO"))] impl IDirectMusicPort_Vtbl { - pub const fn new() -> IDirectMusicPort_Vtbl - where - Identity: IDirectMusicPort_Impl, - { - unsafe extern "system" fn PlayBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + pub const fn new() -> IDirectMusicPort_Vtbl { + unsafe extern "system" fn PlayBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::PlayBuffer(this, windows_core::from_raw_borrowed(&pbuffer)).into() } - unsafe extern "system" fn SetReadNotificationHandle(this: *mut core::ffi::c_void, hevent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn SetReadNotificationHandle(this: *mut core::ffi::c_void, hevent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::SetReadNotificationHandle(this, core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::Read(this, windows_core::from_raw_borrowed(&pbuffer)).into() } - unsafe extern "system" fn DownloadInstrument(this: *mut core::ffi::c_void, pinstrument: *mut core::ffi::c_void, ppdownloadedinstrument: *mut *mut core::ffi::c_void, pnoteranges: *mut DMUS_NOTERANGE, dwnumnoteranges: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn DownloadInstrument(this: *mut core::ffi::c_void, pinstrument: *mut core::ffi::c_void, ppdownloadedinstrument: *mut *mut core::ffi::c_void, pnoteranges: *mut DMUS_NOTERANGE, dwnumnoteranges: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::DownloadInstrument(this, windows_core::from_raw_borrowed(&pinstrument), core::mem::transmute_copy(&ppdownloadedinstrument), core::mem::transmute_copy(&pnoteranges), core::mem::transmute_copy(&dwnumnoteranges)).into() } - unsafe extern "system" fn UnloadInstrument(this: *mut core::ffi::c_void, pdownloadedinstrument: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn UnloadInstrument(this: *mut core::ffi::c_void, pdownloadedinstrument: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::UnloadInstrument(this, windows_core::from_raw_borrowed(&pdownloadedinstrument)).into() } - unsafe extern "system" fn GetLatencyClock(this: *mut core::ffi::c_void, ppclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn GetLatencyClock(this: *mut core::ffi::c_void, ppclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectMusicPort_Impl::GetLatencyClock(this) { Ok(ok__) => { @@ -437,80 +311,47 @@ impl IDirectMusicPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningStats(this: *mut core::ffi::c_void, pstats: *mut DMUS_SYNTHSTATS) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn GetRunningStats(this: *mut core::ffi::c_void, pstats: *mut DMUS_SYNTHSTATS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::GetRunningStats(this, core::mem::transmute_copy(&pstats)).into() } - unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::Compact(this).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pportcaps: *mut DMUS_PORTCAPS) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pportcaps: *mut DMUS_PORTCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::GetCaps(this, core::mem::transmute_copy(&pportcaps)).into() } - unsafe extern "system" fn DeviceIoControl(this: *mut core::ffi::c_void, dwiocontrolcode: u32, lpinbuffer: *mut core::ffi::c_void, ninbuffersize: u32, lpoutbuffer: *mut core::ffi::c_void, noutbuffersize: u32, lpbytesreturned: *mut u32, lpoverlapped: *mut super::super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn DeviceIoControl(this: *mut core::ffi::c_void, dwiocontrolcode: u32, lpinbuffer: *mut core::ffi::c_void, ninbuffersize: u32, lpoutbuffer: *mut core::ffi::c_void, noutbuffersize: u32, lpbytesreturned: *mut u32, lpoverlapped: *mut super::super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::DeviceIoControl(this, core::mem::transmute_copy(&dwiocontrolcode), core::mem::transmute_copy(&lpinbuffer), core::mem::transmute_copy(&ninbuffersize), core::mem::transmute_copy(&lpoutbuffer), core::mem::transmute_copy(&noutbuffersize), core::mem::transmute_copy(&lpbytesreturned), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn SetNumChannelGroups(this: *mut core::ffi::c_void, dwchannelgroups: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn SetNumChannelGroups(this: *mut core::ffi::c_void, dwchannelgroups: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::SetNumChannelGroups(this, core::mem::transmute_copy(&dwchannelgroups)).into() } - unsafe extern "system" fn GetNumChannelGroups(this: *mut core::ffi::c_void, pdwchannelgroups: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn GetNumChannelGroups(this: *mut core::ffi::c_void, pdwchannelgroups: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::GetNumChannelGroups(this, core::mem::transmute_copy(&pdwchannelgroups)).into() } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, factive: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, factive: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::Activate(this, core::mem::transmute_copy(&factive)).into() } - unsafe extern "system" fn SetChannelPriority(this: *mut core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, dwpriority: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn SetChannelPriority(this: *mut core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, dwpriority: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::SetChannelPriority(this, core::mem::transmute_copy(&dwchannelgroup), core::mem::transmute_copy(&dwchannel), core::mem::transmute_copy(&dwpriority)).into() } - unsafe extern "system" fn GetChannelPriority(this: *mut core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, pdwpriority: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn GetChannelPriority(this: *mut core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, pdwpriority: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::GetChannelPriority(this, core::mem::transmute_copy(&dwchannelgroup), core::mem::transmute_copy(&dwchannel), core::mem::transmute_copy(&pdwpriority)).into() } - unsafe extern "system" fn SetDirectSound(this: *mut core::ffi::c_void, pdirectsound: *mut core::ffi::c_void, pdirectsoundbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn SetDirectSound(this: *mut core::ffi::c_void, pdirectsound: *mut core::ffi::c_void, pdirectsoundbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::SetDirectSound(this, windows_core::from_raw_borrowed(&pdirectsound), windows_core::from_raw_borrowed(&pdirectsoundbuffer)).into() } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwaveformatex: *mut super::WAVEFORMATEX, pdwwaveformatexsize: *mut u32, pdwbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicPort_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwaveformatex: *mut super::WAVEFORMATEX, pdwwaveformatexsize: *mut u32, pdwbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::GetFormat(this, core::mem::transmute_copy(&pwaveformatex), core::mem::transmute_copy(&pdwwaveformatexsize), core::mem::transmute_copy(&pdwbuffersize)).into() } @@ -539,7 +380,7 @@ impl IDirectMusicPort_Vtbl { iid == &::IID } } -pub trait IDirectMusicPortDownload_Impl: Sized { +pub trait IDirectMusicPortDownload_Impl: Sized + windows_core::IUnknownImpl { fn GetBuffer(&self, dwdlid: u32) -> windows_core::Result; fn AllocateBuffer(&self, dwsize: u32) -> windows_core::Result; fn GetDLId(&self, pdwstartdlid: *mut u32, dwcount: u32) -> windows_core::Result<()>; @@ -549,14 +390,8 @@ pub trait IDirectMusicPortDownload_Impl: Sized { } impl windows_core::RuntimeName for IDirectMusicPortDownload {} impl IDirectMusicPortDownload_Vtbl { - pub const fn new() -> IDirectMusicPortDownload_Vtbl - where - Identity: IDirectMusicPortDownload_Impl, - { - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, dwdlid: u32, ppidmdownload: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicPortDownload_Impl, - { + pub const fn new() -> IDirectMusicPortDownload_Vtbl { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, dwdlid: u32, ppidmdownload: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectMusicPortDownload_Impl::GetBuffer(this, core::mem::transmute_copy(&dwdlid)) { Ok(ok__) => { @@ -566,10 +401,7 @@ impl IDirectMusicPortDownload_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AllocateBuffer(this: *mut core::ffi::c_void, dwsize: u32, ppidmdownload: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicPortDownload_Impl, - { + unsafe extern "system" fn AllocateBuffer(this: *mut core::ffi::c_void, dwsize: u32, ppidmdownload: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectMusicPortDownload_Impl::AllocateBuffer(this, core::mem::transmute_copy(&dwsize)) { Ok(ok__) => { @@ -579,31 +411,19 @@ impl IDirectMusicPortDownload_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDLId(this: *mut core::ffi::c_void, pdwstartdlid: *mut u32, dwcount: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicPortDownload_Impl, - { + unsafe extern "system" fn GetDLId(this: *mut core::ffi::c_void, pdwstartdlid: *mut u32, dwcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPortDownload_Impl::GetDLId(this, core::mem::transmute_copy(&pdwstartdlid), core::mem::transmute_copy(&dwcount)).into() } - unsafe extern "system" fn GetAppend(this: *mut core::ffi::c_void, pdwappend: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicPortDownload_Impl, - { + unsafe extern "system" fn GetAppend(this: *mut core::ffi::c_void, pdwappend: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPortDownload_Impl::GetAppend(this, core::mem::transmute_copy(&pdwappend)).into() } - unsafe extern "system" fn Download(this: *mut core::ffi::c_void, pidmdownload: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicPortDownload_Impl, - { + unsafe extern "system" fn Download(this: *mut core::ffi::c_void, pidmdownload: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPortDownload_Impl::Download(this, windows_core::from_raw_borrowed(&pidmdownload)).into() } - unsafe extern "system" fn Unload(this: *mut core::ffi::c_void, pidmdownload: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicPortDownload_Impl, - { + unsafe extern "system" fn Unload(this: *mut core::ffi::c_void, pidmdownload: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPortDownload_Impl::Unload(this, windows_core::from_raw_borrowed(&pidmdownload)).into() } @@ -621,7 +441,7 @@ impl IDirectMusicPortDownload_Vtbl { iid == &::IID } } -pub trait IDirectMusicSynth_Impl: Sized { +pub trait IDirectMusicSynth_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, pportparams: *mut DMUS_PORTPARAMS8) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn SetNumChannelGroups(&self, dwgroups: u32) -> windows_core::Result<()>; @@ -642,77 +462,44 @@ pub trait IDirectMusicSynth_Impl: Sized { } impl windows_core::RuntimeName for IDirectMusicSynth {} impl IDirectMusicSynth_Vtbl { - pub const fn new() -> IDirectMusicSynth_Vtbl - where - Identity: IDirectMusicSynth_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pportparams: *mut DMUS_PORTPARAMS8) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + pub const fn new() -> IDirectMusicSynth_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pportparams: *mut DMUS_PORTPARAMS8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::Open(this, core::mem::transmute_copy(&pportparams)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::Close(this).into() } - unsafe extern "system" fn SetNumChannelGroups(this: *mut core::ffi::c_void, dwgroups: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn SetNumChannelGroups(this: *mut core::ffi::c_void, dwgroups: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::SetNumChannelGroups(this, core::mem::transmute_copy(&dwgroups)).into() } - unsafe extern "system" fn Download(this: *mut core::ffi::c_void, phdownload: *mut super::super::super::Foundation::HANDLE, pvdata: *mut core::ffi::c_void, pbfree: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn Download(this: *mut core::ffi::c_void, phdownload: *mut super::super::super::Foundation::HANDLE, pvdata: *mut core::ffi::c_void, pbfree: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::Download(this, core::mem::transmute_copy(&phdownload), core::mem::transmute_copy(&pvdata), core::mem::transmute_copy(&pbfree)).into() } - unsafe extern "system" fn Unload(this: *mut core::ffi::c_void, hdownload: super::super::super::Foundation::HANDLE, lpfreehandle: isize, huserdata: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn Unload(this: *mut core::ffi::c_void, hdownload: super::super::super::Foundation::HANDLE, lpfreehandle: isize, huserdata: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::Unload(this, core::mem::transmute_copy(&hdownload), core::mem::transmute_copy(&lpfreehandle), core::mem::transmute_copy(&huserdata)).into() } - unsafe extern "system" fn PlayBuffer(this: *mut core::ffi::c_void, rt: i64, pbbuffer: *mut u8, cbbuffer: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn PlayBuffer(this: *mut core::ffi::c_void, rt: i64, pbbuffer: *mut u8, cbbuffer: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::PlayBuffer(this, core::mem::transmute_copy(&rt), core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&cbbuffer)).into() } - unsafe extern "system" fn GetRunningStats(this: *mut core::ffi::c_void, pstats: *mut DMUS_SYNTHSTATS) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn GetRunningStats(this: *mut core::ffi::c_void, pstats: *mut DMUS_SYNTHSTATS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::GetRunningStats(this, core::mem::transmute_copy(&pstats)).into() } - unsafe extern "system" fn GetPortCaps(this: *mut core::ffi::c_void, pcaps: *mut DMUS_PORTCAPS) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn GetPortCaps(this: *mut core::ffi::c_void, pcaps: *mut DMUS_PORTCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::GetPortCaps(this, core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn SetMasterClock(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn SetMasterClock(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::SetMasterClock(this, windows_core::from_raw_borrowed(&pclock)).into() } - unsafe extern "system" fn GetLatencyClock(this: *mut core::ffi::c_void, ppclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn GetLatencyClock(this: *mut core::ffi::c_void, ppclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectMusicSynth_Impl::GetLatencyClock(this) { Ok(ok__) => { @@ -722,52 +509,31 @@ impl IDirectMusicSynth_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::Activate(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn SetSynthSink(this: *mut core::ffi::c_void, psynthsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn SetSynthSink(this: *mut core::ffi::c_void, psynthsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::SetSynthSink(this, windows_core::from_raw_borrowed(&psynthsink)).into() } - unsafe extern "system" fn Render(this: *mut core::ffi::c_void, pbuffer: *mut i16, dwlength: u32, llposition: i64) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn Render(this: *mut core::ffi::c_void, pbuffer: *mut i16, dwlength: u32, llposition: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::Render(this, core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&dwlength), core::mem::transmute_copy(&llposition)).into() } - unsafe extern "system" fn SetChannelPriority(this: *mut core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, dwpriority: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn SetChannelPriority(this: *mut core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, dwpriority: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::SetChannelPriority(this, core::mem::transmute_copy(&dwchannelgroup), core::mem::transmute_copy(&dwchannel), core::mem::transmute_copy(&dwpriority)).into() } - unsafe extern "system" fn GetChannelPriority(this: *mut core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, pdwpriority: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn GetChannelPriority(this: *mut core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, pdwpriority: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::GetChannelPriority(this, core::mem::transmute_copy(&dwchannelgroup), core::mem::transmute_copy(&dwchannel), core::mem::transmute_copy(&pdwpriority)).into() } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwaveformatex: *mut super::WAVEFORMATEX, pdwwaveformatexsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwaveformatex: *mut super::WAVEFORMATEX, pdwwaveformatexsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::GetFormat(this, core::mem::transmute_copy(&pwaveformatex), core::mem::transmute_copy(&pdwwaveformatexsize)).into() } - unsafe extern "system" fn GetAppend(this: *mut core::ffi::c_void, pdwappend: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth_Impl, - { + unsafe extern "system" fn GetAppend(this: *mut core::ffi::c_void, pdwappend: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::GetAppend(this, core::mem::transmute_copy(&pdwappend)).into() } @@ -805,42 +571,24 @@ pub trait IDirectMusicSynth8_Impl: Sized + IDirectMusicSynth_Impl { } impl windows_core::RuntimeName for IDirectMusicSynth8 {} impl IDirectMusicSynth8_Vtbl { - pub const fn new() -> IDirectMusicSynth8_Vtbl - where - Identity: IDirectMusicSynth8_Impl, - { - unsafe extern "system" fn PlayVoice(this: *mut core::ffi::c_void, rt: i64, dwvoiceid: u32, dwchannelgroup: u32, dwchannel: u32, dwdlid: u32, prpitch: i32, vrvolume: i32, stvoicestart: u64, stloopstart: u64, stloopend: u64) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth8_Impl, - { + pub const fn new() -> IDirectMusicSynth8_Vtbl { + unsafe extern "system" fn PlayVoice(this: *mut core::ffi::c_void, rt: i64, dwvoiceid: u32, dwchannelgroup: u32, dwchannel: u32, dwdlid: u32, prpitch: i32, vrvolume: i32, stvoicestart: u64, stloopstart: u64, stloopend: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth8_Impl::PlayVoice(this, core::mem::transmute_copy(&rt), core::mem::transmute_copy(&dwvoiceid), core::mem::transmute_copy(&dwchannelgroup), core::mem::transmute_copy(&dwchannel), core::mem::transmute_copy(&dwdlid), core::mem::transmute_copy(&prpitch), core::mem::transmute_copy(&vrvolume), core::mem::transmute_copy(&stvoicestart), core::mem::transmute_copy(&stloopstart), core::mem::transmute_copy(&stloopend)).into() } - unsafe extern "system" fn StopVoice(this: *mut core::ffi::c_void, rt: i64, dwvoiceid: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth8_Impl, - { + unsafe extern "system" fn StopVoice(this: *mut core::ffi::c_void, rt: i64, dwvoiceid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth8_Impl::StopVoice(this, core::mem::transmute_copy(&rt), core::mem::transmute_copy(&dwvoiceid)).into() } - unsafe extern "system" fn GetVoiceState(this: *mut core::ffi::c_void, dwvoice: *mut u32, cbvoice: u32, dwvoicestate: *mut DMUS_VOICE_STATE) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth8_Impl, - { + unsafe extern "system" fn GetVoiceState(this: *mut core::ffi::c_void, dwvoice: *mut u32, cbvoice: u32, dwvoicestate: *mut DMUS_VOICE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth8_Impl::GetVoiceState(this, core::mem::transmute_copy(&dwvoice), core::mem::transmute_copy(&cbvoice), core::mem::transmute_copy(&dwvoicestate)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void, dwdownloadid: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth8_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void, dwdownloadid: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth8_Impl::Refresh(this, core::mem::transmute_copy(&dwdownloadid), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn AssignChannelToBuses(this: *mut core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, pdwbuses: *mut u32, cbuses: u32) -> windows_core::HRESULT - where - Identity: IDirectMusicSynth8_Impl, - { + unsafe extern "system" fn AssignChannelToBuses(this: *mut core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, pdwbuses: *mut u32, cbuses: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth8_Impl::AssignChannelToBuses(this, core::mem::transmute_copy(&dwchannelgroup), core::mem::transmute_copy(&dwchannel), core::mem::transmute_copy(&pdwbuses), core::mem::transmute_copy(&cbuses)).into() } @@ -858,7 +606,7 @@ impl IDirectMusicSynth8_Vtbl { } } #[cfg(feature = "Win32_Media_Audio_DirectSound")] -pub trait IDirectMusicSynthSink_Impl: Sized { +pub trait IDirectMusicSynthSink_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, psynth: Option<&IDirectMusicSynth>) -> windows_core::Result<()>; fn SetMasterClock(&self, pclock: Option<&super::super::IReferenceClock>) -> windows_core::Result<()>; fn GetLatencyClock(&self) -> windows_core::Result; @@ -872,28 +620,16 @@ pub trait IDirectMusicSynthSink_Impl: Sized { impl windows_core::RuntimeName for IDirectMusicSynthSink {} #[cfg(feature = "Win32_Media_Audio_DirectSound")] impl IDirectMusicSynthSink_Vtbl { - pub const fn new() -> IDirectMusicSynthSink_Vtbl - where - Identity: IDirectMusicSynthSink_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, psynth: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicSynthSink_Impl, - { + pub const fn new() -> IDirectMusicSynthSink_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, psynth: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynthSink_Impl::Init(this, windows_core::from_raw_borrowed(&psynth)).into() } - unsafe extern "system" fn SetMasterClock(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicSynthSink_Impl, - { + unsafe extern "system" fn SetMasterClock(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynthSink_Impl::SetMasterClock(this, windows_core::from_raw_borrowed(&pclock)).into() } - unsafe extern "system" fn GetLatencyClock(this: *mut core::ffi::c_void, ppclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicSynthSink_Impl, - { + unsafe extern "system" fn GetLatencyClock(this: *mut core::ffi::c_void, ppclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectMusicSynthSink_Impl::GetLatencyClock(this) { Ok(ok__) => { @@ -903,38 +639,23 @@ impl IDirectMusicSynthSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirectMusicSynthSink_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynthSink_Impl::Activate(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn SampleToRefTime(this: *mut core::ffi::c_void, llsampletime: i64, prftime: *mut i64) -> windows_core::HRESULT - where - Identity: IDirectMusicSynthSink_Impl, - { + unsafe extern "system" fn SampleToRefTime(this: *mut core::ffi::c_void, llsampletime: i64, prftime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynthSink_Impl::SampleToRefTime(this, core::mem::transmute_copy(&llsampletime), core::mem::transmute_copy(&prftime)).into() } - unsafe extern "system" fn RefTimeToSample(this: *mut core::ffi::c_void, rftime: i64, pllsampletime: *mut i64) -> windows_core::HRESULT - where - Identity: IDirectMusicSynthSink_Impl, - { + unsafe extern "system" fn RefTimeToSample(this: *mut core::ffi::c_void, rftime: i64, pllsampletime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynthSink_Impl::RefTimeToSample(this, core::mem::transmute_copy(&rftime), core::mem::transmute_copy(&pllsampletime)).into() } - unsafe extern "system" fn SetDirectSound(this: *mut core::ffi::c_void, pdirectsound: *mut core::ffi::c_void, pdirectsoundbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicSynthSink_Impl, - { + unsafe extern "system" fn SetDirectSound(this: *mut core::ffi::c_void, pdirectsound: *mut core::ffi::c_void, pdirectsoundbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynthSink_Impl::SetDirectSound(this, windows_core::from_raw_borrowed(&pdirectsound), windows_core::from_raw_borrowed(&pdirectsoundbuffer)).into() } - unsafe extern "system" fn GetDesiredBufferSize(this: *mut core::ffi::c_void, pdwbuffersizeinsamples: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectMusicSynthSink_Impl, - { + unsafe extern "system" fn GetDesiredBufferSize(this: *mut core::ffi::c_void, pdwbuffersizeinsamples: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynthSink_Impl::GetDesiredBufferSize(this, core::mem::transmute_copy(&pdwbuffersizeinsamples)).into() } @@ -954,19 +675,13 @@ impl IDirectMusicSynthSink_Vtbl { iid == &::IID } } -pub trait IDirectMusicThru_Impl: Sized { +pub trait IDirectMusicThru_Impl: Sized + windows_core::IUnknownImpl { fn ThruChannel(&self, dwsourcechannelgroup: u32, dwsourcechannel: u32, dwdestinationchannelgroup: u32, dwdestinationchannel: u32, pdestinationport: Option<&IDirectMusicPort>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectMusicThru {} impl IDirectMusicThru_Vtbl { - pub const fn new() -> IDirectMusicThru_Vtbl - where - Identity: IDirectMusicThru_Impl, - { - unsafe extern "system" fn ThruChannel(this: *mut core::ffi::c_void, dwsourcechannelgroup: u32, dwsourcechannel: u32, dwdestinationchannelgroup: u32, dwdestinationchannel: u32, pdestinationport: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectMusicThru_Impl, - { + pub const fn new() -> IDirectMusicThru_Vtbl { + unsafe extern "system" fn ThruChannel(this: *mut core::ffi::c_void, dwsourcechannelgroup: u32, dwsourcechannel: u32, dwdestinationchannelgroup: u32, dwdestinationchannel: u32, pdestinationport: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicThru_Impl::ThruChannel(this, core::mem::transmute_copy(&dwsourcechannelgroup), core::mem::transmute_copy(&dwsourcechannel), core::mem::transmute_copy(&dwdestinationchannelgroup), core::mem::transmute_copy(&dwdestinationchannel), windows_core::from_raw_borrowed(&pdestinationport)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/impl.rs index 640b0bde39..7c2793089f 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/impl.rs @@ -1,4 +1,4 @@ -pub trait IDirectSound_Impl: Sized { +pub trait IDirectSound_Impl: Sized + windows_core::IUnknownImpl { fn CreateSoundBuffer(&self, pcdsbufferdesc: *const DSBUFFERDESC, ppdsbuffer: *mut Option, punkouter: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetCaps(&self, pdscaps: *mut DSCAPS) -> windows_core::Result<()>; fn DuplicateSoundBuffer(&self, pdsbufferoriginal: Option<&IDirectSoundBuffer>) -> windows_core::Result; @@ -10,28 +10,16 @@ pub trait IDirectSound_Impl: Sized { } impl windows_core::RuntimeName for IDirectSound {} impl IDirectSound_Vtbl { - pub const fn new() -> IDirectSound_Vtbl - where - Identity: IDirectSound_Impl, - { - unsafe extern "system" fn CreateSoundBuffer(this: *mut core::ffi::c_void, pcdsbufferdesc: *const DSBUFFERDESC, ppdsbuffer: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSound_Impl, - { + pub const fn new() -> IDirectSound_Vtbl { + unsafe extern "system" fn CreateSoundBuffer(this: *mut core::ffi::c_void, pcdsbufferdesc: *const DSBUFFERDESC, ppdsbuffer: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound_Impl::CreateSoundBuffer(this, core::mem::transmute_copy(&pcdsbufferdesc), core::mem::transmute_copy(&ppdsbuffer), windows_core::from_raw_borrowed(&punkouter)).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pdscaps: *mut DSCAPS) -> windows_core::HRESULT - where - Identity: IDirectSound_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pdscaps: *mut DSCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound_Impl::GetCaps(this, core::mem::transmute_copy(&pdscaps)).into() } - unsafe extern "system" fn DuplicateSoundBuffer(this: *mut core::ffi::c_void, pdsbufferoriginal: *mut core::ffi::c_void, ppdsbufferduplicate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSound_Impl, - { + unsafe extern "system" fn DuplicateSoundBuffer(this: *mut core::ffi::c_void, pdsbufferoriginal: *mut core::ffi::c_void, ppdsbufferduplicate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound_Impl::DuplicateSoundBuffer(this, windows_core::from_raw_borrowed(&pdsbufferoriginal)) { Ok(ok__) => { @@ -41,24 +29,15 @@ impl IDirectSound_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, dwlevel: u32) -> windows_core::HRESULT - where - Identity: IDirectSound_Impl, - { + unsafe extern "system" fn SetCooperativeLevel(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, dwlevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound_Impl::SetCooperativeLevel(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwlevel)).into() } - unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSound_Impl, - { + unsafe extern "system" fn Compact(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound_Impl::Compact(this).into() } - unsafe extern "system" fn GetSpeakerConfig(this: *mut core::ffi::c_void, pdwspeakerconfig: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSound_Impl, - { + unsafe extern "system" fn GetSpeakerConfig(this: *mut core::ffi::c_void, pdwspeakerconfig: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound_Impl::GetSpeakerConfig(this) { Ok(ok__) => { @@ -68,17 +47,11 @@ impl IDirectSound_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpeakerConfig(this: *mut core::ffi::c_void, dwspeakerconfig: u32) -> windows_core::HRESULT - where - Identity: IDirectSound_Impl, - { + unsafe extern "system" fn SetSpeakerConfig(this: *mut core::ffi::c_void, dwspeakerconfig: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound_Impl::SetSpeakerConfig(this, core::mem::transmute_copy(&dwspeakerconfig)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pcguiddevice: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectSound_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pcguiddevice: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound_Impl::Initialize(this, core::mem::transmute_copy(&pcguiddevice)).into() } @@ -99,7 +72,7 @@ impl IDirectSound_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D")] -pub trait IDirectSound3DBuffer_Impl: Sized { +pub trait IDirectSound3DBuffer_Impl: Sized + windows_core::IUnknownImpl { fn GetAllParameters(&self, pds3dbuffer: *mut DS3DBUFFER) -> windows_core::Result<()>; fn GetConeAngles(&self, pdwinsideconeangle: *mut u32, pdwoutsideconeangle: *mut u32) -> windows_core::Result<()>; fn GetConeOrientation(&self) -> windows_core::Result; @@ -123,28 +96,16 @@ pub trait IDirectSound3DBuffer_Impl: Sized { impl windows_core::RuntimeName for IDirectSound3DBuffer {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl IDirectSound3DBuffer_Vtbl { - pub const fn new() -> IDirectSound3DBuffer_Vtbl - where - Identity: IDirectSound3DBuffer_Impl, - { - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pds3dbuffer: *mut DS3DBUFFER) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + pub const fn new() -> IDirectSound3DBuffer_Vtbl { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pds3dbuffer: *mut DS3DBUFFER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::GetAllParameters(this, core::mem::transmute_copy(&pds3dbuffer)).into() } - unsafe extern "system" fn GetConeAngles(this: *mut core::ffi::c_void, pdwinsideconeangle: *mut u32, pdwoutsideconeangle: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn GetConeAngles(this: *mut core::ffi::c_void, pdwinsideconeangle: *mut u32, pdwoutsideconeangle: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::GetConeAngles(this, core::mem::transmute_copy(&pdwinsideconeangle), core::mem::transmute_copy(&pdwoutsideconeangle)).into() } - unsafe extern "system" fn GetConeOrientation(this: *mut core::ffi::c_void, pvorientation: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn GetConeOrientation(this: *mut core::ffi::c_void, pvorientation: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DBuffer_Impl::GetConeOrientation(this) { Ok(ok__) => { @@ -154,10 +115,7 @@ impl IDirectSound3DBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConeOutsideVolume(this: *mut core::ffi::c_void, plconeoutsidevolume: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn GetConeOutsideVolume(this: *mut core::ffi::c_void, plconeoutsidevolume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DBuffer_Impl::GetConeOutsideVolume(this) { Ok(ok__) => { @@ -167,10 +125,7 @@ impl IDirectSound3DBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxDistance(this: *mut core::ffi::c_void, pflmaxdistance: *mut f32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn GetMaxDistance(this: *mut core::ffi::c_void, pflmaxdistance: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DBuffer_Impl::GetMaxDistance(this) { Ok(ok__) => { @@ -180,10 +135,7 @@ impl IDirectSound3DBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMinDistance(this: *mut core::ffi::c_void, pflmindistance: *mut f32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn GetMinDistance(this: *mut core::ffi::c_void, pflmindistance: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DBuffer_Impl::GetMinDistance(this) { Ok(ok__) => { @@ -193,10 +145,7 @@ impl IDirectSound3DBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, pdwmode: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, pdwmode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DBuffer_Impl::GetMode(this) { Ok(ok__) => { @@ -206,10 +155,7 @@ impl IDirectSound3DBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, pvposition: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, pvposition: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DBuffer_Impl::GetPosition(this) { Ok(ok__) => { @@ -219,10 +165,7 @@ impl IDirectSound3DBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVelocity(this: *mut core::ffi::c_void, pvvelocity: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn GetVelocity(this: *mut core::ffi::c_void, pvvelocity: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DBuffer_Impl::GetVelocity(this) { Ok(ok__) => { @@ -232,66 +175,39 @@ impl IDirectSound3DBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcds3dbuffer: *const DS3DBUFFER, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcds3dbuffer: *const DS3DBUFFER, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcds3dbuffer), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetConeAngles(this: *mut core::ffi::c_void, dwinsideconeangle: u32, dwoutsideconeangle: u32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn SetConeAngles(this: *mut core::ffi::c_void, dwinsideconeangle: u32, dwoutsideconeangle: u32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::SetConeAngles(this, core::mem::transmute_copy(&dwinsideconeangle), core::mem::transmute_copy(&dwoutsideconeangle), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetConeOrientation(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn SetConeOrientation(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::SetConeOrientation(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&z), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetConeOutsideVolume(this: *mut core::ffi::c_void, lconeoutsidevolume: i32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn SetConeOutsideVolume(this: *mut core::ffi::c_void, lconeoutsidevolume: i32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::SetConeOutsideVolume(this, core::mem::transmute_copy(&lconeoutsidevolume), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetMaxDistance(this: *mut core::ffi::c_void, flmaxdistance: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn SetMaxDistance(this: *mut core::ffi::c_void, flmaxdistance: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::SetMaxDistance(this, core::mem::transmute_copy(&flmaxdistance), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetMinDistance(this: *mut core::ffi::c_void, flmindistance: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn SetMinDistance(this: *mut core::ffi::c_void, flmindistance: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::SetMinDistance(this, core::mem::transmute_copy(&flmindistance), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, dwmode: u32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, dwmode: u32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::SetMode(this, core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::SetPosition(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&z), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetVelocity(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DBuffer_Impl, - { + unsafe extern "system" fn SetVelocity(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DBuffer_Impl::SetVelocity(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&z), core::mem::transmute_copy(&dwapply)).into() } @@ -322,7 +238,7 @@ impl IDirectSound3DBuffer_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D")] -pub trait IDirectSound3DListener_Impl: Sized { +pub trait IDirectSound3DListener_Impl: Sized + windows_core::IUnknownImpl { fn GetAllParameters(&self, plistener: *mut DS3DLISTENER) -> windows_core::Result<()>; fn GetDistanceFactor(&self) -> windows_core::Result; fn GetDopplerFactor(&self) -> windows_core::Result; @@ -343,21 +259,12 @@ pub trait IDirectSound3DListener_Impl: Sized { impl windows_core::RuntimeName for IDirectSound3DListener {} #[cfg(feature = "Win32_Graphics_Direct3D")] impl IDirectSound3DListener_Vtbl { - pub const fn new() -> IDirectSound3DListener_Vtbl - where - Identity: IDirectSound3DListener_Impl, - { - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, plistener: *mut DS3DLISTENER) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + pub const fn new() -> IDirectSound3DListener_Vtbl { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, plistener: *mut DS3DLISTENER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DListener_Impl::GetAllParameters(this, core::mem::transmute_copy(&plistener)).into() } - unsafe extern "system" fn GetDistanceFactor(this: *mut core::ffi::c_void, pfldistancefactor: *mut f32) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn GetDistanceFactor(this: *mut core::ffi::c_void, pfldistancefactor: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DListener_Impl::GetDistanceFactor(this) { Ok(ok__) => { @@ -367,10 +274,7 @@ impl IDirectSound3DListener_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDopplerFactor(this: *mut core::ffi::c_void, pfldopplerfactor: *mut f32) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn GetDopplerFactor(this: *mut core::ffi::c_void, pfldopplerfactor: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DListener_Impl::GetDopplerFactor(this) { Ok(ok__) => { @@ -380,17 +284,11 @@ impl IDirectSound3DListener_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOrientation(this: *mut core::ffi::c_void, pvorientfront: *mut super::super::super::Graphics::Direct3D::D3DVECTOR, pvorienttop: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn GetOrientation(this: *mut core::ffi::c_void, pvorientfront: *mut super::super::super::Graphics::Direct3D::D3DVECTOR, pvorienttop: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DListener_Impl::GetOrientation(this, core::mem::transmute_copy(&pvorientfront), core::mem::transmute_copy(&pvorienttop)).into() } - unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, pvposition: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, pvposition: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DListener_Impl::GetPosition(this) { Ok(ok__) => { @@ -400,10 +298,7 @@ impl IDirectSound3DListener_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRolloffFactor(this: *mut core::ffi::c_void, pflrollofffactor: *mut f32) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn GetRolloffFactor(this: *mut core::ffi::c_void, pflrollofffactor: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DListener_Impl::GetRolloffFactor(this) { Ok(ok__) => { @@ -413,10 +308,7 @@ impl IDirectSound3DListener_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVelocity(this: *mut core::ffi::c_void, pvvelocity: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn GetVelocity(this: *mut core::ffi::c_void, pvvelocity: *mut super::super::super::Graphics::Direct3D::D3DVECTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound3DListener_Impl::GetVelocity(this) { Ok(ok__) => { @@ -426,59 +318,35 @@ impl IDirectSound3DListener_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pclistener: *const DS3DLISTENER, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pclistener: *const DS3DLISTENER, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DListener_Impl::SetAllParameters(this, core::mem::transmute_copy(&pclistener), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetDistanceFactor(this: *mut core::ffi::c_void, fldistancefactor: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn SetDistanceFactor(this: *mut core::ffi::c_void, fldistancefactor: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DListener_Impl::SetDistanceFactor(this, core::mem::transmute_copy(&fldistancefactor), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetDopplerFactor(this: *mut core::ffi::c_void, fldopplerfactor: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn SetDopplerFactor(this: *mut core::ffi::c_void, fldopplerfactor: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DListener_Impl::SetDopplerFactor(this, core::mem::transmute_copy(&fldopplerfactor), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetOrientation(this: *mut core::ffi::c_void, xfront: f32, yfront: f32, zfront: f32, xtop: f32, ytop: f32, ztop: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn SetOrientation(this: *mut core::ffi::c_void, xfront: f32, yfront: f32, zfront: f32, xtop: f32, ytop: f32, ztop: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DListener_Impl::SetOrientation(this, core::mem::transmute_copy(&xfront), core::mem::transmute_copy(&yfront), core::mem::transmute_copy(&zfront), core::mem::transmute_copy(&xtop), core::mem::transmute_copy(&ytop), core::mem::transmute_copy(&ztop), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DListener_Impl::SetPosition(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&z), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetRolloffFactor(this: *mut core::ffi::c_void, flrollofffactor: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn SetRolloffFactor(this: *mut core::ffi::c_void, flrollofffactor: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DListener_Impl::SetRolloffFactor(this, core::mem::transmute_copy(&flrollofffactor), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn SetVelocity(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn SetVelocity(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DListener_Impl::SetVelocity(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&z), core::mem::transmute_copy(&dwapply)).into() } - unsafe extern "system" fn CommitDeferredSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSound3DListener_Impl, - { + unsafe extern "system" fn CommitDeferredSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSound3DListener_Impl::CommitDeferredSettings(this).into() } @@ -510,14 +378,8 @@ pub trait IDirectSound8_Impl: Sized + IDirectSound_Impl { } impl windows_core::RuntimeName for IDirectSound8 {} impl IDirectSound8_Vtbl { - pub const fn new() -> IDirectSound8_Vtbl - where - Identity: IDirectSound8_Impl, - { - unsafe extern "system" fn VerifyCertification(this: *mut core::ffi::c_void, pdwcertified: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSound8_Impl, - { + pub const fn new() -> IDirectSound8_Vtbl { + unsafe extern "system" fn VerifyCertification(this: *mut core::ffi::c_void, pdwcertified: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSound8_Impl::VerifyCertification(this) { Ok(ok__) => { @@ -533,7 +395,7 @@ impl IDirectSound8_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDirectSoundBuffer_Impl: Sized { +pub trait IDirectSoundBuffer_Impl: Sized + windows_core::IUnknownImpl { fn GetCaps(&self, pdsbuffercaps: *mut DSBCAPS) -> windows_core::Result<()>; fn GetCurrentPosition(&self, pdwcurrentplaycursor: *mut u32, pdwcurrentwritecursor: *mut u32) -> windows_core::Result<()>; fn GetFormat(&self, pwfxformat: *mut super::WAVEFORMATEX, dwsizeallocated: u32, pdwsizewritten: *mut u32) -> windows_core::Result<()>; @@ -555,35 +417,20 @@ pub trait IDirectSoundBuffer_Impl: Sized { } impl windows_core::RuntimeName for IDirectSoundBuffer {} impl IDirectSoundBuffer_Vtbl { - pub const fn new() -> IDirectSoundBuffer_Vtbl - where - Identity: IDirectSoundBuffer_Impl, - { - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pdsbuffercaps: *mut DSBCAPS) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + pub const fn new() -> IDirectSoundBuffer_Vtbl { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pdsbuffercaps: *mut DSBCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::GetCaps(this, core::mem::transmute_copy(&pdsbuffercaps)).into() } - unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, pdwcurrentplaycursor: *mut u32, pdwcurrentwritecursor: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, pdwcurrentplaycursor: *mut u32, pdwcurrentwritecursor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::GetCurrentPosition(this, core::mem::transmute_copy(&pdwcurrentplaycursor), core::mem::transmute_copy(&pdwcurrentwritecursor)).into() } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwfxformat: *mut super::WAVEFORMATEX, dwsizeallocated: u32, pdwsizewritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwfxformat: *mut super::WAVEFORMATEX, dwsizeallocated: u32, pdwsizewritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::GetFormat(this, core::mem::transmute_copy(&pwfxformat), core::mem::transmute_copy(&dwsizeallocated), core::mem::transmute_copy(&pdwsizewritten)).into() } - unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void, plvolume: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void, plvolume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundBuffer_Impl::GetVolume(this) { Ok(ok__) => { @@ -593,10 +440,7 @@ impl IDirectSoundBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPan(this: *mut core::ffi::c_void, plpan: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn GetPan(this: *mut core::ffi::c_void, plpan: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundBuffer_Impl::GetPan(this) { Ok(ok__) => { @@ -606,10 +450,7 @@ impl IDirectSoundBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrequency(this: *mut core::ffi::c_void, pdwfrequency: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn GetFrequency(this: *mut core::ffi::c_void, pdwfrequency: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundBuffer_Impl::GetFrequency(this) { Ok(ok__) => { @@ -619,10 +460,7 @@ impl IDirectSoundBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundBuffer_Impl::GetStatus(this) { Ok(ok__) => { @@ -632,80 +470,47 @@ impl IDirectSoundBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pdirectsound: *mut core::ffi::c_void, pcdsbufferdesc: *const DSBUFFERDESC) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pdirectsound: *mut core::ffi::c_void, pcdsbufferdesc: *const DSBUFFERDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::Initialize(this, windows_core::from_raw_borrowed(&pdirectsound), core::mem::transmute_copy(&pcdsbufferdesc)).into() } - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, dwoffset: u32, dwbytes: u32, ppvaudioptr1: *mut *mut core::ffi::c_void, pdwaudiobytes1: *mut u32, ppvaudioptr2: *mut *mut core::ffi::c_void, pdwaudiobytes2: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, dwoffset: u32, dwbytes: u32, ppvaudioptr1: *mut *mut core::ffi::c_void, pdwaudiobytes1: *mut u32, ppvaudioptr2: *mut *mut core::ffi::c_void, pdwaudiobytes2: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::Lock(this, core::mem::transmute_copy(&dwoffset), core::mem::transmute_copy(&dwbytes), core::mem::transmute_copy(&ppvaudioptr1), core::mem::transmute_copy(&pdwaudiobytes1), core::mem::transmute_copy(&ppvaudioptr2), core::mem::transmute_copy(&pdwaudiobytes2), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Play(this: *mut core::ffi::c_void, dwreserved1: u32, dwpriority: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn Play(this: *mut core::ffi::c_void, dwreserved1: u32, dwpriority: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::Play(this, core::mem::transmute_copy(&dwreserved1), core::mem::transmute_copy(&dwpriority), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, dwnewposition: u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, dwnewposition: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::SetCurrentPosition(this, core::mem::transmute_copy(&dwnewposition)).into() } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pcfxformat: *const super::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pcfxformat: *const super::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::SetFormat(this, core::mem::transmute_copy(&pcfxformat)).into() } - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, lvolume: i32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, lvolume: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::SetVolume(this, core::mem::transmute_copy(&lvolume)).into() } - unsafe extern "system" fn SetPan(this: *mut core::ffi::c_void, lpan: i32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn SetPan(this: *mut core::ffi::c_void, lpan: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::SetPan(this, core::mem::transmute_copy(&lpan)).into() } - unsafe extern "system" fn SetFrequency(this: *mut core::ffi::c_void, dwfrequency: u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn SetFrequency(this: *mut core::ffi::c_void, dwfrequency: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::SetFrequency(this, core::mem::transmute_copy(&dwfrequency)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::Stop(this).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, pvaudioptr1: *const core::ffi::c_void, dwaudiobytes1: u32, pvaudioptr2: *const core::ffi::c_void, dwaudiobytes2: u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, pvaudioptr1: *const core::ffi::c_void, dwaudiobytes1: u32, pvaudioptr2: *const core::ffi::c_void, dwaudiobytes2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::Unlock(this, core::mem::transmute_copy(&pvaudioptr1), core::mem::transmute_copy(&dwaudiobytes1), core::mem::transmute_copy(&pvaudioptr2), core::mem::transmute_copy(&dwaudiobytes2)).into() } - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer_Impl, - { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer_Impl::Restore(this).into() } @@ -742,28 +547,16 @@ pub trait IDirectSoundBuffer8_Impl: Sized + IDirectSoundBuffer_Impl { } impl windows_core::RuntimeName for IDirectSoundBuffer8 {} impl IDirectSoundBuffer8_Vtbl { - pub const fn new() -> IDirectSoundBuffer8_Vtbl - where - Identity: IDirectSoundBuffer8_Impl, - { - unsafe extern "system" fn SetFX(this: *mut core::ffi::c_void, dweffectscount: u32, pdsfxdesc: *const DSEFFECTDESC, pdwresultcodes: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer8_Impl, - { + pub const fn new() -> IDirectSoundBuffer8_Vtbl { + unsafe extern "system" fn SetFX(this: *mut core::ffi::c_void, dweffectscount: u32, pdsfxdesc: *const DSEFFECTDESC, pdwresultcodes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer8_Impl::SetFX(this, core::mem::transmute_copy(&dweffectscount), core::mem::transmute_copy(&pdsfxdesc), core::mem::transmute_copy(&pdwresultcodes)).into() } - unsafe extern "system" fn AcquireResources(this: *mut core::ffi::c_void, dwflags: u32, dweffectscount: u32, pdwresultcodes: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer8_Impl, - { + unsafe extern "system" fn AcquireResources(this: *mut core::ffi::c_void, dwflags: u32, dweffectscount: u32, pdwresultcodes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer8_Impl::AcquireResources(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dweffectscount), core::mem::transmute_copy(&pdwresultcodes)).into() } - unsafe extern "system" fn GetObjectInPath(this: *mut core::ffi::c_void, rguidobject: *const windows_core::GUID, dwindex: u32, rguidinterface: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSoundBuffer8_Impl, - { + unsafe extern "system" fn GetObjectInPath(this: *mut core::ffi::c_void, rguidobject: *const windows_core::GUID, dwindex: u32, rguidinterface: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundBuffer8_Impl::GetObjectInPath(this, core::mem::transmute_copy(&rguidobject), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&rguidinterface), core::mem::transmute_copy(&ppobject)).into() } @@ -778,28 +571,19 @@ impl IDirectSoundBuffer8_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDirectSoundCapture_Impl: Sized { +pub trait IDirectSoundCapture_Impl: Sized + windows_core::IUnknownImpl { fn CreateCaptureBuffer(&self, pcdscbufferdesc: *const DSCBUFFERDESC, ppdscbuffer: *mut Option, punkouter: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetCaps(&self) -> windows_core::Result; fn Initialize(&self, pcguiddevice: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectSoundCapture {} impl IDirectSoundCapture_Vtbl { - pub const fn new() -> IDirectSoundCapture_Vtbl - where - Identity: IDirectSoundCapture_Impl, - { - unsafe extern "system" fn CreateCaptureBuffer(this: *mut core::ffi::c_void, pcdscbufferdesc: *const DSCBUFFERDESC, ppdscbuffer: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSoundCapture_Impl, - { + pub const fn new() -> IDirectSoundCapture_Vtbl { + unsafe extern "system" fn CreateCaptureBuffer(this: *mut core::ffi::c_void, pcdscbufferdesc: *const DSCBUFFERDESC, ppdscbuffer: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCapture_Impl::CreateCaptureBuffer(this, core::mem::transmute_copy(&pcdscbufferdesc), core::mem::transmute_copy(&ppdscbuffer), windows_core::from_raw_borrowed(&punkouter)).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pdsccaps: *mut DSCCAPS) -> windows_core::HRESULT - where - Identity: IDirectSoundCapture_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pdsccaps: *mut DSCCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundCapture_Impl::GetCaps(this) { Ok(ok__) => { @@ -809,10 +593,7 @@ impl IDirectSoundCapture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pcguiddevice: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectSoundCapture_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pcguiddevice: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCapture_Impl::Initialize(this, core::mem::transmute_copy(&pcguiddevice)).into() } @@ -827,7 +608,7 @@ impl IDirectSoundCapture_Vtbl { iid == &::IID } } -pub trait IDirectSoundCaptureBuffer_Impl: Sized { +pub trait IDirectSoundCaptureBuffer_Impl: Sized + windows_core::IUnknownImpl { fn GetCaps(&self) -> windows_core::Result; fn GetCurrentPosition(&self, pdwcaptureposition: *mut u32, pdwreadposition: *mut u32) -> windows_core::Result<()>; fn GetFormat(&self, pwfxformat: *mut super::WAVEFORMATEX, dwsizeallocated: u32, pdwsizewritten: *mut u32) -> windows_core::Result<()>; @@ -840,14 +621,8 @@ pub trait IDirectSoundCaptureBuffer_Impl: Sized { } impl windows_core::RuntimeName for IDirectSoundCaptureBuffer {} impl IDirectSoundCaptureBuffer_Vtbl { - pub const fn new() -> IDirectSoundCaptureBuffer_Vtbl - where - Identity: IDirectSoundCaptureBuffer_Impl, - { - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pdscbcaps: *mut DSCBCAPS) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer_Impl, - { + pub const fn new() -> IDirectSoundCaptureBuffer_Vtbl { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pdscbcaps: *mut DSCBCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundCaptureBuffer_Impl::GetCaps(this) { Ok(ok__) => { @@ -857,24 +632,15 @@ impl IDirectSoundCaptureBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, pdwcaptureposition: *mut u32, pdwreadposition: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer_Impl, - { + unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, pdwcaptureposition: *mut u32, pdwreadposition: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureBuffer_Impl::GetCurrentPosition(this, core::mem::transmute_copy(&pdwcaptureposition), core::mem::transmute_copy(&pdwreadposition)).into() } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwfxformat: *mut super::WAVEFORMATEX, dwsizeallocated: u32, pdwsizewritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwfxformat: *mut super::WAVEFORMATEX, dwsizeallocated: u32, pdwsizewritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureBuffer_Impl::GetFormat(this, core::mem::transmute_copy(&pwfxformat), core::mem::transmute_copy(&dwsizeallocated), core::mem::transmute_copy(&pdwsizewritten)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundCaptureBuffer_Impl::GetStatus(this) { Ok(ok__) => { @@ -884,38 +650,23 @@ impl IDirectSoundCaptureBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pdirectsoundcapture: *mut core::ffi::c_void, pcdscbufferdesc: *const DSCBUFFERDESC) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pdirectsoundcapture: *mut core::ffi::c_void, pcdscbufferdesc: *const DSCBUFFERDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureBuffer_Impl::Initialize(this, windows_core::from_raw_borrowed(&pdirectsoundcapture), core::mem::transmute_copy(&pcdscbufferdesc)).into() } - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, dwoffset: u32, dwbytes: u32, ppvaudioptr1: *mut *mut core::ffi::c_void, pdwaudiobytes1: *mut u32, ppvaudioptr2: *mut *mut core::ffi::c_void, pdwaudiobytes2: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer_Impl, - { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, dwoffset: u32, dwbytes: u32, ppvaudioptr1: *mut *mut core::ffi::c_void, pdwaudiobytes1: *mut u32, ppvaudioptr2: *mut *mut core::ffi::c_void, pdwaudiobytes2: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureBuffer_Impl::Lock(this, core::mem::transmute_copy(&dwoffset), core::mem::transmute_copy(&dwbytes), core::mem::transmute_copy(&ppvaudioptr1), core::mem::transmute_copy(&pdwaudiobytes1), core::mem::transmute_copy(&ppvaudioptr2), core::mem::transmute_copy(&pdwaudiobytes2), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureBuffer_Impl::Start(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureBuffer_Impl::Stop(this).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, pvaudioptr1: *const core::ffi::c_void, dwaudiobytes1: u32, pvaudioptr2: *const core::ffi::c_void, dwaudiobytes2: u32) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, pvaudioptr1: *const core::ffi::c_void, dwaudiobytes1: u32, pvaudioptr2: *const core::ffi::c_void, dwaudiobytes2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureBuffer_Impl::Unlock(this, core::mem::transmute_copy(&pvaudioptr1), core::mem::transmute_copy(&dwaudiobytes1), core::mem::transmute_copy(&pvaudioptr2), core::mem::transmute_copy(&dwaudiobytes2)).into() } @@ -942,21 +693,12 @@ pub trait IDirectSoundCaptureBuffer8_Impl: Sized + IDirectSoundCaptureBuffer_Imp } impl windows_core::RuntimeName for IDirectSoundCaptureBuffer8 {} impl IDirectSoundCaptureBuffer8_Vtbl { - pub const fn new() -> IDirectSoundCaptureBuffer8_Vtbl - where - Identity: IDirectSoundCaptureBuffer8_Impl, - { - unsafe extern "system" fn GetObjectInPath(this: *mut core::ffi::c_void, rguidobject: *const windows_core::GUID, dwindex: u32, rguidinterface: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer8_Impl, - { + pub const fn new() -> IDirectSoundCaptureBuffer8_Vtbl { + unsafe extern "system" fn GetObjectInPath(this: *mut core::ffi::c_void, rguidobject: *const windows_core::GUID, dwindex: u32, rguidinterface: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureBuffer8_Impl::GetObjectInPath(this, core::mem::transmute_copy(&rguidobject), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&rguidinterface), core::mem::transmute_copy(&ppobject)).into() } - unsafe extern "system" fn GetFXStatus(this: *mut core::ffi::c_void, dweffectscount: u32, pdwfxstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureBuffer8_Impl, - { + unsafe extern "system" fn GetFXStatus(this: *mut core::ffi::c_void, dweffectscount: u32, pdwfxstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureBuffer8_Impl::GetFXStatus(this, core::mem::transmute_copy(&dweffectscount), core::mem::transmute_copy(&pdwfxstatus)).into() } @@ -970,7 +712,7 @@ impl IDirectSoundCaptureBuffer8_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDirectSoundCaptureFXAec_Impl: Sized { +pub trait IDirectSoundCaptureFXAec_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pdscfxaec: *const DSCFXAec) -> windows_core::Result<()>; fn GetAllParameters(&self) -> windows_core::Result; fn GetStatus(&self) -> windows_core::Result; @@ -978,21 +720,12 @@ pub trait IDirectSoundCaptureFXAec_Impl: Sized { } impl windows_core::RuntimeName for IDirectSoundCaptureFXAec {} impl IDirectSoundCaptureFXAec_Vtbl { - pub const fn new() -> IDirectSoundCaptureFXAec_Vtbl - where - Identity: IDirectSoundCaptureFXAec_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pdscfxaec: *const DSCFXAec) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureFXAec_Impl, - { + pub const fn new() -> IDirectSoundCaptureFXAec_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pdscfxaec: *const DSCFXAec) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureFXAec_Impl::SetAllParameters(this, core::mem::transmute_copy(&pdscfxaec)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdscfxaec: *mut DSCFXAec) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureFXAec_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdscfxaec: *mut DSCFXAec) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundCaptureFXAec_Impl::GetAllParameters(this) { Ok(ok__) => { @@ -1002,10 +735,7 @@ impl IDirectSoundCaptureFXAec_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureFXAec_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundCaptureFXAec_Impl::GetStatus(this) { Ok(ok__) => { @@ -1015,10 +745,7 @@ impl IDirectSoundCaptureFXAec_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureFXAec_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureFXAec_Impl::Reset(this).into() } @@ -1034,28 +761,19 @@ impl IDirectSoundCaptureFXAec_Vtbl { iid == &::IID } } -pub trait IDirectSoundCaptureFXNoiseSuppress_Impl: Sized { +pub trait IDirectSoundCaptureFXNoiseSuppress_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pcdscfxnoisesuppress: *const DSCFXNoiseSuppress) -> windows_core::Result<()>; fn GetAllParameters(&self) -> windows_core::Result; fn Reset(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectSoundCaptureFXNoiseSuppress {} impl IDirectSoundCaptureFXNoiseSuppress_Vtbl { - pub const fn new() -> IDirectSoundCaptureFXNoiseSuppress_Vtbl - where - Identity: IDirectSoundCaptureFXNoiseSuppress_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdscfxnoisesuppress: *const DSCFXNoiseSuppress) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureFXNoiseSuppress_Impl, - { + pub const fn new() -> IDirectSoundCaptureFXNoiseSuppress_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdscfxnoisesuppress: *const DSCFXNoiseSuppress) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureFXNoiseSuppress_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcdscfxnoisesuppress)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdscfxnoisesuppress: *mut DSCFXNoiseSuppress) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureFXNoiseSuppress_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdscfxnoisesuppress: *mut DSCFXNoiseSuppress) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundCaptureFXNoiseSuppress_Impl::GetAllParameters(this) { Ok(ok__) => { @@ -1065,10 +783,7 @@ impl IDirectSoundCaptureFXNoiseSuppress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSoundCaptureFXNoiseSuppress_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundCaptureFXNoiseSuppress_Impl::Reset(this).into() } @@ -1083,27 +798,18 @@ impl IDirectSoundCaptureFXNoiseSuppress_Vtbl { iid == &::IID } } -pub trait IDirectSoundFXChorus_Impl: Sized { +pub trait IDirectSoundFXChorus_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pcdsfxchorus: *const DSFXChorus) -> windows_core::Result<()>; fn GetAllParameters(&self, pdsfxchorus: *mut DSFXChorus) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectSoundFXChorus {} impl IDirectSoundFXChorus_Vtbl { - pub const fn new() -> IDirectSoundFXChorus_Vtbl - where - Identity: IDirectSoundFXChorus_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxchorus: *const DSFXChorus) -> windows_core::HRESULT - where - Identity: IDirectSoundFXChorus_Impl, - { + pub const fn new() -> IDirectSoundFXChorus_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxchorus: *const DSFXChorus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXChorus_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcdsfxchorus)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxchorus: *mut DSFXChorus) -> windows_core::HRESULT - where - Identity: IDirectSoundFXChorus_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxchorus: *mut DSFXChorus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXChorus_Impl::GetAllParameters(this, core::mem::transmute_copy(&pdsfxchorus)).into() } @@ -1117,27 +823,18 @@ impl IDirectSoundFXChorus_Vtbl { iid == &::IID } } -pub trait IDirectSoundFXCompressor_Impl: Sized { +pub trait IDirectSoundFXCompressor_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pcdsfxcompressor: *const DSFXCompressor) -> windows_core::Result<()>; fn GetAllParameters(&self, pdsfxcompressor: *mut DSFXCompressor) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectSoundFXCompressor {} impl IDirectSoundFXCompressor_Vtbl { - pub const fn new() -> IDirectSoundFXCompressor_Vtbl - where - Identity: IDirectSoundFXCompressor_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxcompressor: *const DSFXCompressor) -> windows_core::HRESULT - where - Identity: IDirectSoundFXCompressor_Impl, - { + pub const fn new() -> IDirectSoundFXCompressor_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxcompressor: *const DSFXCompressor) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXCompressor_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcdsfxcompressor)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxcompressor: *mut DSFXCompressor) -> windows_core::HRESULT - where - Identity: IDirectSoundFXCompressor_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxcompressor: *mut DSFXCompressor) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXCompressor_Impl::GetAllParameters(this, core::mem::transmute_copy(&pdsfxcompressor)).into() } @@ -1151,27 +848,18 @@ impl IDirectSoundFXCompressor_Vtbl { iid == &::IID } } -pub trait IDirectSoundFXDistortion_Impl: Sized { +pub trait IDirectSoundFXDistortion_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pcdsfxdistortion: *const DSFXDistortion) -> windows_core::Result<()>; fn GetAllParameters(&self, pdsfxdistortion: *mut DSFXDistortion) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectSoundFXDistortion {} impl IDirectSoundFXDistortion_Vtbl { - pub const fn new() -> IDirectSoundFXDistortion_Vtbl - where - Identity: IDirectSoundFXDistortion_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxdistortion: *const DSFXDistortion) -> windows_core::HRESULT - where - Identity: IDirectSoundFXDistortion_Impl, - { + pub const fn new() -> IDirectSoundFXDistortion_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxdistortion: *const DSFXDistortion) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXDistortion_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcdsfxdistortion)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxdistortion: *mut DSFXDistortion) -> windows_core::HRESULT - where - Identity: IDirectSoundFXDistortion_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxdistortion: *mut DSFXDistortion) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXDistortion_Impl::GetAllParameters(this, core::mem::transmute_copy(&pdsfxdistortion)).into() } @@ -1185,27 +873,18 @@ impl IDirectSoundFXDistortion_Vtbl { iid == &::IID } } -pub trait IDirectSoundFXEcho_Impl: Sized { +pub trait IDirectSoundFXEcho_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pcdsfxecho: *const DSFXEcho) -> windows_core::Result<()>; fn GetAllParameters(&self, pdsfxecho: *mut DSFXEcho) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectSoundFXEcho {} impl IDirectSoundFXEcho_Vtbl { - pub const fn new() -> IDirectSoundFXEcho_Vtbl - where - Identity: IDirectSoundFXEcho_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxecho: *const DSFXEcho) -> windows_core::HRESULT - where - Identity: IDirectSoundFXEcho_Impl, - { + pub const fn new() -> IDirectSoundFXEcho_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxecho: *const DSFXEcho) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXEcho_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcdsfxecho)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxecho: *mut DSFXEcho) -> windows_core::HRESULT - where - Identity: IDirectSoundFXEcho_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxecho: *mut DSFXEcho) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXEcho_Impl::GetAllParameters(this, core::mem::transmute_copy(&pdsfxecho)).into() } @@ -1219,27 +898,18 @@ impl IDirectSoundFXEcho_Vtbl { iid == &::IID } } -pub trait IDirectSoundFXFlanger_Impl: Sized { +pub trait IDirectSoundFXFlanger_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pcdsfxflanger: *const DSFXFlanger) -> windows_core::Result<()>; fn GetAllParameters(&self, pdsfxflanger: *mut DSFXFlanger) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectSoundFXFlanger {} impl IDirectSoundFXFlanger_Vtbl { - pub const fn new() -> IDirectSoundFXFlanger_Vtbl - where - Identity: IDirectSoundFXFlanger_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxflanger: *const DSFXFlanger) -> windows_core::HRESULT - where - Identity: IDirectSoundFXFlanger_Impl, - { + pub const fn new() -> IDirectSoundFXFlanger_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxflanger: *const DSFXFlanger) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXFlanger_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcdsfxflanger)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxflanger: *mut DSFXFlanger) -> windows_core::HRESULT - where - Identity: IDirectSoundFXFlanger_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxflanger: *mut DSFXFlanger) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXFlanger_Impl::GetAllParameters(this, core::mem::transmute_copy(&pdsfxflanger)).into() } @@ -1253,27 +923,18 @@ impl IDirectSoundFXFlanger_Vtbl { iid == &::IID } } -pub trait IDirectSoundFXGargle_Impl: Sized { +pub trait IDirectSoundFXGargle_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pcdsfxgargle: *const DSFXGargle) -> windows_core::Result<()>; fn GetAllParameters(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDirectSoundFXGargle {} impl IDirectSoundFXGargle_Vtbl { - pub const fn new() -> IDirectSoundFXGargle_Vtbl - where - Identity: IDirectSoundFXGargle_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxgargle: *const DSFXGargle) -> windows_core::HRESULT - where - Identity: IDirectSoundFXGargle_Impl, - { + pub const fn new() -> IDirectSoundFXGargle_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxgargle: *const DSFXGargle) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXGargle_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcdsfxgargle)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxgargle: *mut DSFXGargle) -> windows_core::HRESULT - where - Identity: IDirectSoundFXGargle_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxgargle: *mut DSFXGargle) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundFXGargle_Impl::GetAllParameters(this) { Ok(ok__) => { @@ -1293,7 +954,7 @@ impl IDirectSoundFXGargle_Vtbl { iid == &::IID } } -pub trait IDirectSoundFXI3DL2Reverb_Impl: Sized { +pub trait IDirectSoundFXI3DL2Reverb_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pcdsfxi3dl2reverb: *const DSFXI3DL2Reverb) -> windows_core::Result<()>; fn GetAllParameters(&self, pdsfxi3dl2reverb: *mut DSFXI3DL2Reverb) -> windows_core::Result<()>; fn SetPreset(&self, dwpreset: u32) -> windows_core::Result<()>; @@ -1303,35 +964,20 @@ pub trait IDirectSoundFXI3DL2Reverb_Impl: Sized { } impl windows_core::RuntimeName for IDirectSoundFXI3DL2Reverb {} impl IDirectSoundFXI3DL2Reverb_Vtbl { - pub const fn new() -> IDirectSoundFXI3DL2Reverb_Vtbl - where - Identity: IDirectSoundFXI3DL2Reverb_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxi3dl2reverb: *const DSFXI3DL2Reverb) -> windows_core::HRESULT - where - Identity: IDirectSoundFXI3DL2Reverb_Impl, - { + pub const fn new() -> IDirectSoundFXI3DL2Reverb_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxi3dl2reverb: *const DSFXI3DL2Reverb) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXI3DL2Reverb_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcdsfxi3dl2reverb)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxi3dl2reverb: *mut DSFXI3DL2Reverb) -> windows_core::HRESULT - where - Identity: IDirectSoundFXI3DL2Reverb_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxi3dl2reverb: *mut DSFXI3DL2Reverb) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXI3DL2Reverb_Impl::GetAllParameters(this, core::mem::transmute_copy(&pdsfxi3dl2reverb)).into() } - unsafe extern "system" fn SetPreset(this: *mut core::ffi::c_void, dwpreset: u32) -> windows_core::HRESULT - where - Identity: IDirectSoundFXI3DL2Reverb_Impl, - { + unsafe extern "system" fn SetPreset(this: *mut core::ffi::c_void, dwpreset: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXI3DL2Reverb_Impl::SetPreset(this, core::mem::transmute_copy(&dwpreset)).into() } - unsafe extern "system" fn GetPreset(this: *mut core::ffi::c_void, pdwpreset: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectSoundFXI3DL2Reverb_Impl, - { + unsafe extern "system" fn GetPreset(this: *mut core::ffi::c_void, pdwpreset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundFXI3DL2Reverb_Impl::GetPreset(this) { Ok(ok__) => { @@ -1341,17 +987,11 @@ impl IDirectSoundFXI3DL2Reverb_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuality(this: *mut core::ffi::c_void, lquality: i32) -> windows_core::HRESULT - where - Identity: IDirectSoundFXI3DL2Reverb_Impl, - { + unsafe extern "system" fn SetQuality(this: *mut core::ffi::c_void, lquality: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXI3DL2Reverb_Impl::SetQuality(this, core::mem::transmute_copy(&lquality)).into() } - unsafe extern "system" fn GetQuality(this: *mut core::ffi::c_void, plquality: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectSoundFXI3DL2Reverb_Impl, - { + unsafe extern "system" fn GetQuality(this: *mut core::ffi::c_void, plquality: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundFXI3DL2Reverb_Impl::GetQuality(this) { Ok(ok__) => { @@ -1375,27 +1015,18 @@ impl IDirectSoundFXI3DL2Reverb_Vtbl { iid == &::IID } } -pub trait IDirectSoundFXParamEq_Impl: Sized { +pub trait IDirectSoundFXParamEq_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pcdsfxparameq: *const DSFXParamEq) -> windows_core::Result<()>; fn GetAllParameters(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDirectSoundFXParamEq {} impl IDirectSoundFXParamEq_Vtbl { - pub const fn new() -> IDirectSoundFXParamEq_Vtbl - where - Identity: IDirectSoundFXParamEq_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxparameq: *const DSFXParamEq) -> windows_core::HRESULT - where - Identity: IDirectSoundFXParamEq_Impl, - { + pub const fn new() -> IDirectSoundFXParamEq_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxparameq: *const DSFXParamEq) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXParamEq_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcdsfxparameq)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxparameq: *mut DSFXParamEq) -> windows_core::HRESULT - where - Identity: IDirectSoundFXParamEq_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxparameq: *mut DSFXParamEq) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundFXParamEq_Impl::GetAllParameters(this) { Ok(ok__) => { @@ -1415,27 +1046,18 @@ impl IDirectSoundFXParamEq_Vtbl { iid == &::IID } } -pub trait IDirectSoundFXWavesReverb_Impl: Sized { +pub trait IDirectSoundFXWavesReverb_Impl: Sized + windows_core::IUnknownImpl { fn SetAllParameters(&self, pcdsfxwavesreverb: *const DSFXWavesReverb) -> windows_core::Result<()>; fn GetAllParameters(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDirectSoundFXWavesReverb {} impl IDirectSoundFXWavesReverb_Vtbl { - pub const fn new() -> IDirectSoundFXWavesReverb_Vtbl - where - Identity: IDirectSoundFXWavesReverb_Impl, - { - unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxwavesreverb: *const DSFXWavesReverb) -> windows_core::HRESULT - where - Identity: IDirectSoundFXWavesReverb_Impl, - { + pub const fn new() -> IDirectSoundFXWavesReverb_Vtbl { + unsafe extern "system" fn SetAllParameters(this: *mut core::ffi::c_void, pcdsfxwavesreverb: *const DSFXWavesReverb) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFXWavesReverb_Impl::SetAllParameters(this, core::mem::transmute_copy(&pcdsfxwavesreverb)).into() } - unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxwavesreverb: *mut DSFXWavesReverb) -> windows_core::HRESULT - where - Identity: IDirectSoundFXWavesReverb_Impl, - { + unsafe extern "system" fn GetAllParameters(this: *mut core::ffi::c_void, pdsfxwavesreverb: *mut DSFXWavesReverb) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectSoundFXWavesReverb_Impl::GetAllParameters(this) { Ok(ok__) => { @@ -1455,19 +1077,13 @@ impl IDirectSoundFXWavesReverb_Vtbl { iid == &::IID } } -pub trait IDirectSoundFullDuplex_Impl: Sized { +pub trait IDirectSoundFullDuplex_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pcaptureguid: *const windows_core::GUID, prenderguid: *const windows_core::GUID, lpdscbufferdesc: *const DSCBUFFERDESC, lpdsbufferdesc: *const DSBUFFERDESC, hwnd: super::super::super::Foundation::HWND, dwlevel: u32, lplpdirectsoundcapturebuffer8: *mut Option, lplpdirectsoundbuffer8: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectSoundFullDuplex {} impl IDirectSoundFullDuplex_Vtbl { - pub const fn new() -> IDirectSoundFullDuplex_Vtbl - where - Identity: IDirectSoundFullDuplex_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pcaptureguid: *const windows_core::GUID, prenderguid: *const windows_core::GUID, lpdscbufferdesc: *const DSCBUFFERDESC, lpdsbufferdesc: *const DSBUFFERDESC, hwnd: super::super::super::Foundation::HWND, dwlevel: u32, lplpdirectsoundcapturebuffer8: *mut *mut core::ffi::c_void, lplpdirectsoundbuffer8: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectSoundFullDuplex_Impl, - { + pub const fn new() -> IDirectSoundFullDuplex_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pcaptureguid: *const windows_core::GUID, prenderguid: *const windows_core::GUID, lpdscbufferdesc: *const DSCBUFFERDESC, lpdsbufferdesc: *const DSBUFFERDESC, hwnd: super::super::super::Foundation::HWND, dwlevel: u32, lplpdirectsoundcapturebuffer8: *mut *mut core::ffi::c_void, lplpdirectsoundbuffer8: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundFullDuplex_Impl::Initialize(this, core::mem::transmute_copy(&pcaptureguid), core::mem::transmute_copy(&prenderguid), core::mem::transmute_copy(&lpdscbufferdesc), core::mem::transmute_copy(&lpdsbufferdesc), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwlevel), core::mem::transmute_copy(&lplpdirectsoundcapturebuffer8), core::mem::transmute_copy(&lplpdirectsoundbuffer8)).into() } @@ -1477,19 +1093,13 @@ impl IDirectSoundFullDuplex_Vtbl { iid == &::IID } } -pub trait IDirectSoundNotify_Impl: Sized { +pub trait IDirectSoundNotify_Impl: Sized + windows_core::IUnknownImpl { fn SetNotificationPositions(&self, dwpositionnotifies: u32, pcpositionnotifies: *const DSBPOSITIONNOTIFY) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectSoundNotify {} impl IDirectSoundNotify_Vtbl { - pub const fn new() -> IDirectSoundNotify_Vtbl - where - Identity: IDirectSoundNotify_Impl, - { - unsafe extern "system" fn SetNotificationPositions(this: *mut core::ffi::c_void, dwpositionnotifies: u32, pcpositionnotifies: *const DSBPOSITIONNOTIFY) -> windows_core::HRESULT - where - Identity: IDirectSoundNotify_Impl, - { + pub const fn new() -> IDirectSoundNotify_Vtbl { + unsafe extern "system" fn SetNotificationPositions(this: *mut core::ffi::c_void, dwpositionnotifies: u32, pcpositionnotifies: *const DSBPOSITIONNOTIFY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectSoundNotify_Impl::SetNotificationPositions(this, core::mem::transmute_copy(&dwpositionnotifies), core::mem::transmute_copy(&pcpositionnotifies)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/impl.rs index 2c7db9374b..eb571a3375 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/impl.rs @@ -1,16 +1,10 @@ -pub trait IAudioEndpointFormatControl_Impl: Sized { +pub trait IAudioEndpointFormatControl_Impl: Sized + windows_core::IUnknownImpl { fn ResetToDefault(&self, resetflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioEndpointFormatControl {} impl IAudioEndpointFormatControl_Vtbl { - pub const fn new() -> IAudioEndpointFormatControl_Vtbl - where - Identity: IAudioEndpointFormatControl_Impl, - { - unsafe extern "system" fn ResetToDefault(this: *mut core::ffi::c_void, resetflags: u32) -> windows_core::HRESULT - where - Identity: IAudioEndpointFormatControl_Impl, - { + pub const fn new() -> IAudioEndpointFormatControl_Vtbl { + unsafe extern "system" fn ResetToDefault(this: *mut core::ffi::c_void, resetflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointFormatControl_Impl::ResetToDefault(this, core::mem::transmute_copy(&resetflags)).into() } @@ -21,7 +15,7 @@ impl IAudioEndpointFormatControl_Vtbl { } } #[cfg(feature = "Win32_Media_Audio_Apo")] -pub trait IAudioEndpointLastBufferControl_Impl: Sized { +pub trait IAudioEndpointLastBufferControl_Impl: Sized + windows_core::IUnknownImpl { fn IsLastBufferControlSupported(&self) -> super::super::super::Foundation::BOOL; fn ReleaseOutputDataPointerForLastBuffer(&self, pconnectionproperty: *const super::Apo::APO_CONNECTION_PROPERTY); } @@ -29,21 +23,12 @@ pub trait IAudioEndpointLastBufferControl_Impl: Sized { impl windows_core::RuntimeName for IAudioEndpointLastBufferControl {} #[cfg(feature = "Win32_Media_Audio_Apo")] impl IAudioEndpointLastBufferControl_Vtbl { - pub const fn new() -> IAudioEndpointLastBufferControl_Vtbl - where - Identity: IAudioEndpointLastBufferControl_Impl, - { - unsafe extern "system" fn IsLastBufferControlSupported(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL - where - Identity: IAudioEndpointLastBufferControl_Impl, - { + pub const fn new() -> IAudioEndpointLastBufferControl_Vtbl { + unsafe extern "system" fn IsLastBufferControlSupported(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointLastBufferControl_Impl::IsLastBufferControlSupported(this) } - unsafe extern "system" fn ReleaseOutputDataPointerForLastBuffer(this: *mut core::ffi::c_void, pconnectionproperty: *const super::Apo::APO_CONNECTION_PROPERTY) - where - Identity: IAudioEndpointLastBufferControl_Impl, - { + unsafe extern "system" fn ReleaseOutputDataPointerForLastBuffer(this: *mut core::ffi::c_void, pconnectionproperty: *const super::Apo::APO_CONNECTION_PROPERTY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointLastBufferControl_Impl::ReleaseOutputDataPointerForLastBuffer(this, core::mem::transmute_copy(&pconnectionproperty)) } @@ -57,20 +42,14 @@ impl IAudioEndpointLastBufferControl_Vtbl { iid == &::IID } } -pub trait IAudioEndpointOffloadStreamMeter_Impl: Sized { +pub trait IAudioEndpointOffloadStreamMeter_Impl: Sized + windows_core::IUnknownImpl { fn GetMeterChannelCount(&self) -> windows_core::Result; fn GetMeteringData(&self, u32channelcount: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioEndpointOffloadStreamMeter {} impl IAudioEndpointOffloadStreamMeter_Vtbl { - pub const fn new() -> IAudioEndpointOffloadStreamMeter_Vtbl - where - Identity: IAudioEndpointOffloadStreamMeter_Impl, - { - unsafe extern "system" fn GetMeterChannelCount(this: *mut core::ffi::c_void, pu32channelcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioEndpointOffloadStreamMeter_Impl, - { + pub const fn new() -> IAudioEndpointOffloadStreamMeter_Vtbl { + unsafe extern "system" fn GetMeterChannelCount(this: *mut core::ffi::c_void, pu32channelcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointOffloadStreamMeter_Impl::GetMeterChannelCount(this) { Ok(ok__) => { @@ -80,10 +59,7 @@ impl IAudioEndpointOffloadStreamMeter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMeteringData(this: *mut core::ffi::c_void, u32channelcount: u32, pf32peakvalues: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioEndpointOffloadStreamMeter_Impl, - { + unsafe extern "system" fn GetMeteringData(this: *mut core::ffi::c_void, u32channelcount: u32, pf32peakvalues: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointOffloadStreamMeter_Impl::GetMeteringData(this, core::mem::transmute_copy(&u32channelcount)) { Ok(ok__) => { @@ -103,27 +79,18 @@ impl IAudioEndpointOffloadStreamMeter_Vtbl { iid == &::IID } } -pub trait IAudioEndpointOffloadStreamMute_Impl: Sized { +pub trait IAudioEndpointOffloadStreamMute_Impl: Sized + windows_core::IUnknownImpl { fn SetMute(&self, bmuted: u8) -> windows_core::Result<()>; fn GetMute(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioEndpointOffloadStreamMute {} impl IAudioEndpointOffloadStreamMute_Vtbl { - pub const fn new() -> IAudioEndpointOffloadStreamMute_Vtbl - where - Identity: IAudioEndpointOffloadStreamMute_Impl, - { - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmuted: u8) -> windows_core::HRESULT - where - Identity: IAudioEndpointOffloadStreamMute_Impl, - { + pub const fn new() -> IAudioEndpointOffloadStreamMute_Vtbl { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmuted: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointOffloadStreamMute_Impl::SetMute(this, core::mem::transmute_copy(&bmuted)).into() } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmuted: *mut u8) -> windows_core::HRESULT - where - Identity: IAudioEndpointOffloadStreamMute_Impl, - { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmuted: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointOffloadStreamMute_Impl::GetMute(this) { Ok(ok__) => { @@ -140,7 +107,7 @@ impl IAudioEndpointOffloadStreamMute_Vtbl { } } #[cfg(feature = "Win32_Media_KernelStreaming")] -pub trait IAudioEndpointOffloadStreamVolume_Impl: Sized { +pub trait IAudioEndpointOffloadStreamVolume_Impl: Sized + windows_core::IUnknownImpl { fn GetVolumeChannelCount(&self) -> windows_core::Result; fn SetChannelVolumes(&self, u32channelcount: u32, pf32volumes: *const f32, u32curvetype: super::super::KernelStreaming::AUDIO_CURVE_TYPE, pcurveduration: *const i64) -> windows_core::Result<()>; fn GetChannelVolumes(&self, u32channelcount: u32) -> windows_core::Result; @@ -149,14 +116,8 @@ pub trait IAudioEndpointOffloadStreamVolume_Impl: Sized { impl windows_core::RuntimeName for IAudioEndpointOffloadStreamVolume {} #[cfg(feature = "Win32_Media_KernelStreaming")] impl IAudioEndpointOffloadStreamVolume_Vtbl { - pub const fn new() -> IAudioEndpointOffloadStreamVolume_Vtbl - where - Identity: IAudioEndpointOffloadStreamVolume_Impl, - { - unsafe extern "system" fn GetVolumeChannelCount(this: *mut core::ffi::c_void, pu32channelcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioEndpointOffloadStreamVolume_Impl, - { + pub const fn new() -> IAudioEndpointOffloadStreamVolume_Vtbl { + unsafe extern "system" fn GetVolumeChannelCount(this: *mut core::ffi::c_void, pu32channelcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointOffloadStreamVolume_Impl::GetVolumeChannelCount(this) { Ok(ok__) => { @@ -166,17 +127,11 @@ impl IAudioEndpointOffloadStreamVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannelVolumes(this: *mut core::ffi::c_void, u32channelcount: u32, pf32volumes: *const f32, u32curvetype: super::super::KernelStreaming::AUDIO_CURVE_TYPE, pcurveduration: *const i64) -> windows_core::HRESULT - where - Identity: IAudioEndpointOffloadStreamVolume_Impl, - { + unsafe extern "system" fn SetChannelVolumes(this: *mut core::ffi::c_void, u32channelcount: u32, pf32volumes: *const f32, u32curvetype: super::super::KernelStreaming::AUDIO_CURVE_TYPE, pcurveduration: *const i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointOffloadStreamVolume_Impl::SetChannelVolumes(this, core::mem::transmute_copy(&u32channelcount), core::mem::transmute_copy(&pf32volumes), core::mem::transmute_copy(&u32curvetype), core::mem::transmute_copy(&pcurveduration)).into() } - unsafe extern "system" fn GetChannelVolumes(this: *mut core::ffi::c_void, u32channelcount: u32, pf32volumes: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioEndpointOffloadStreamVolume_Impl, - { + unsafe extern "system" fn GetChannelVolumes(this: *mut core::ffi::c_void, u32channelcount: u32, pf32volumes: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointOffloadStreamVolume_Impl::GetChannelVolumes(this, core::mem::transmute_copy(&u32channelcount)) { Ok(ok__) => { @@ -197,7 +152,7 @@ impl IAudioEndpointOffloadStreamVolume_Vtbl { iid == &::IID } } -pub trait IAudioEndpointVolume_Impl: Sized { +pub trait IAudioEndpointVolume_Impl: Sized + windows_core::IUnknownImpl { fn RegisterControlChangeNotify(&self, pnotify: Option<&IAudioEndpointVolumeCallback>) -> windows_core::Result<()>; fn UnregisterControlChangeNotify(&self, pnotify: Option<&IAudioEndpointVolumeCallback>) -> windows_core::Result<()>; fn GetChannelCount(&self) -> windows_core::Result; @@ -219,28 +174,16 @@ pub trait IAudioEndpointVolume_Impl: Sized { } impl windows_core::RuntimeName for IAudioEndpointVolume {} impl IAudioEndpointVolume_Vtbl { - pub const fn new() -> IAudioEndpointVolume_Vtbl - where - Identity: IAudioEndpointVolume_Impl, - { - unsafe extern "system" fn RegisterControlChangeNotify(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + pub const fn new() -> IAudioEndpointVolume_Vtbl { + unsafe extern "system" fn RegisterControlChangeNotify(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::RegisterControlChangeNotify(this, windows_core::from_raw_borrowed(&pnotify)).into() } - unsafe extern "system" fn UnregisterControlChangeNotify(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn UnregisterControlChangeNotify(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::UnregisterControlChangeNotify(this, windows_core::from_raw_borrowed(&pnotify)).into() } - unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pnchannelcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pnchannelcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointVolume_Impl::GetChannelCount(this) { Ok(ok__) => { @@ -250,24 +193,15 @@ impl IAudioEndpointVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMasterVolumeLevel(this: *mut core::ffi::c_void, fleveldb: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn SetMasterVolumeLevel(this: *mut core::ffi::c_void, fleveldb: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::SetMasterVolumeLevel(this, core::mem::transmute_copy(&fleveldb), core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn SetMasterVolumeLevelScalar(this: *mut core::ffi::c_void, flevel: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn SetMasterVolumeLevelScalar(this: *mut core::ffi::c_void, flevel: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::SetMasterVolumeLevelScalar(this, core::mem::transmute_copy(&flevel), core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn GetMasterVolumeLevel(this: *mut core::ffi::c_void, pfleveldb: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn GetMasterVolumeLevel(this: *mut core::ffi::c_void, pfleveldb: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointVolume_Impl::GetMasterVolumeLevel(this) { Ok(ok__) => { @@ -277,10 +211,7 @@ impl IAudioEndpointVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMasterVolumeLevelScalar(this: *mut core::ffi::c_void, pflevel: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn GetMasterVolumeLevelScalar(this: *mut core::ffi::c_void, pflevel: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointVolume_Impl::GetMasterVolumeLevelScalar(this) { Ok(ok__) => { @@ -290,24 +221,15 @@ impl IAudioEndpointVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannelVolumeLevel(this: *mut core::ffi::c_void, nchannel: u32, fleveldb: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn SetChannelVolumeLevel(this: *mut core::ffi::c_void, nchannel: u32, fleveldb: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::SetChannelVolumeLevel(this, core::mem::transmute_copy(&nchannel), core::mem::transmute_copy(&fleveldb), core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn SetChannelVolumeLevelScalar(this: *mut core::ffi::c_void, nchannel: u32, flevel: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn SetChannelVolumeLevelScalar(this: *mut core::ffi::c_void, nchannel: u32, flevel: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::SetChannelVolumeLevelScalar(this, core::mem::transmute_copy(&nchannel), core::mem::transmute_copy(&flevel), core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn GetChannelVolumeLevel(this: *mut core::ffi::c_void, nchannel: u32, pfleveldb: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn GetChannelVolumeLevel(this: *mut core::ffi::c_void, nchannel: u32, pfleveldb: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointVolume_Impl::GetChannelVolumeLevel(this, core::mem::transmute_copy(&nchannel)) { Ok(ok__) => { @@ -317,10 +239,7 @@ impl IAudioEndpointVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChannelVolumeLevelScalar(this: *mut core::ffi::c_void, nchannel: u32, pflevel: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn GetChannelVolumeLevelScalar(this: *mut core::ffi::c_void, nchannel: u32, pflevel: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointVolume_Impl::GetChannelVolumeLevelScalar(this, core::mem::transmute_copy(&nchannel)) { Ok(ok__) => { @@ -330,17 +249,11 @@ impl IAudioEndpointVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: super::super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: super::super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::SetMute(this, core::mem::transmute_copy(&bmute), core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointVolume_Impl::GetMute(this) { Ok(ok__) => { @@ -350,31 +263,19 @@ impl IAudioEndpointVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVolumeStepInfo(this: *mut core::ffi::c_void, pnstep: *mut u32, pnstepcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn GetVolumeStepInfo(this: *mut core::ffi::c_void, pnstep: *mut u32, pnstepcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::GetVolumeStepInfo(this, core::mem::transmute_copy(&pnstep), core::mem::transmute_copy(&pnstepcount)).into() } - unsafe extern "system" fn VolumeStepUp(this: *mut core::ffi::c_void, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn VolumeStepUp(this: *mut core::ffi::c_void, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::VolumeStepUp(this, core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn VolumeStepDown(this: *mut core::ffi::c_void, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn VolumeStepDown(this: *mut core::ffi::c_void, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::VolumeStepDown(this, core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn QueryHardwareSupport(this: *mut core::ffi::c_void, pdwhardwaresupportmask: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn QueryHardwareSupport(this: *mut core::ffi::c_void, pdwhardwaresupportmask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointVolume_Impl::QueryHardwareSupport(this) { Ok(ok__) => { @@ -384,10 +285,7 @@ impl IAudioEndpointVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVolumeRange(this: *mut core::ffi::c_void, pflvolumemindb: *mut f32, pflvolumemaxdb: *mut f32, pflvolumeincrementdb: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolume_Impl, - { + unsafe extern "system" fn GetVolumeRange(this: *mut core::ffi::c_void, pflvolumemindb: *mut f32, pflvolumemaxdb: *mut f32, pflvolumeincrementdb: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::GetVolumeRange(this, core::mem::transmute_copy(&pflvolumemindb), core::mem::transmute_copy(&pflvolumemaxdb), core::mem::transmute_copy(&pflvolumeincrementdb)).into() } @@ -417,19 +315,13 @@ impl IAudioEndpointVolume_Vtbl { iid == &::IID } } -pub trait IAudioEndpointVolumeCallback_Impl: Sized { +pub trait IAudioEndpointVolumeCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnNotify(&self, pnotify: *mut super::AUDIO_VOLUME_NOTIFICATION_DATA) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioEndpointVolumeCallback {} impl IAudioEndpointVolumeCallback_Vtbl { - pub const fn new() -> IAudioEndpointVolumeCallback_Vtbl - where - Identity: IAudioEndpointVolumeCallback_Impl, - { - unsafe extern "system" fn OnNotify(this: *mut core::ffi::c_void, pnotify: *mut super::AUDIO_VOLUME_NOTIFICATION_DATA) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolumeCallback_Impl, - { + pub const fn new() -> IAudioEndpointVolumeCallback_Vtbl { + unsafe extern "system" fn OnNotify(this: *mut core::ffi::c_void, pnotify: *mut super::AUDIO_VOLUME_NOTIFICATION_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolumeCallback_Impl::OnNotify(this, core::mem::transmute_copy(&pnotify)).into() } @@ -444,14 +336,8 @@ pub trait IAudioEndpointVolumeEx_Impl: Sized + IAudioEndpointVolume_Impl { } impl windows_core::RuntimeName for IAudioEndpointVolumeEx {} impl IAudioEndpointVolumeEx_Vtbl { - pub const fn new() -> IAudioEndpointVolumeEx_Vtbl - where - Identity: IAudioEndpointVolumeEx_Impl, - { - unsafe extern "system" fn GetVolumeRangeChannel(this: *mut core::ffi::c_void, ichannel: u32, pflvolumemindb: *mut f32, pflvolumemaxdb: *mut f32, pflvolumeincrementdb: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioEndpointVolumeEx_Impl, - { + pub const fn new() -> IAudioEndpointVolumeEx_Vtbl { + unsafe extern "system" fn GetVolumeRangeChannel(this: *mut core::ffi::c_void, ichannel: u32, pflvolumemindb: *mut f32, pflvolumemaxdb: *mut f32, pflvolumeincrementdb: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolumeEx_Impl::GetVolumeRangeChannel(this, core::mem::transmute_copy(&ichannel), core::mem::transmute_copy(&pflvolumemindb), core::mem::transmute_copy(&pflvolumemaxdb), core::mem::transmute_copy(&pflvolumeincrementdb)).into() } @@ -461,27 +347,18 @@ impl IAudioEndpointVolumeEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAudioLfxControl_Impl: Sized { +pub trait IAudioLfxControl_Impl: Sized + windows_core::IUnknownImpl { fn SetLocalEffectsState(&self, benabled: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetLocalEffectsState(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioLfxControl {} impl IAudioLfxControl_Vtbl { - pub const fn new() -> IAudioLfxControl_Vtbl - where - Identity: IAudioLfxControl_Impl, - { - unsafe extern "system" fn SetLocalEffectsState(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioLfxControl_Impl, - { + pub const fn new() -> IAudioLfxControl_Vtbl { + unsafe extern "system" fn SetLocalEffectsState(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioLfxControl_Impl::SetLocalEffectsState(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn GetLocalEffectsState(this: *mut core::ffi::c_void, pbenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioLfxControl_Impl, - { + unsafe extern "system" fn GetLocalEffectsState(this: *mut core::ffi::c_void, pbenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioLfxControl_Impl::GetLocalEffectsState(this) { Ok(ok__) => { @@ -501,7 +378,7 @@ impl IAudioLfxControl_Vtbl { iid == &::IID } } -pub trait IAudioMeterInformation_Impl: Sized { +pub trait IAudioMeterInformation_Impl: Sized + windows_core::IUnknownImpl { fn GetPeakValue(&self) -> windows_core::Result; fn GetMeteringChannelCount(&self) -> windows_core::Result; fn GetChannelsPeakValues(&self, u32channelcount: u32, afpeakvalues: *mut f32) -> windows_core::Result<()>; @@ -509,14 +386,8 @@ pub trait IAudioMeterInformation_Impl: Sized { } impl windows_core::RuntimeName for IAudioMeterInformation {} impl IAudioMeterInformation_Vtbl { - pub const fn new() -> IAudioMeterInformation_Vtbl - where - Identity: IAudioMeterInformation_Impl, - { - unsafe extern "system" fn GetPeakValue(this: *mut core::ffi::c_void, pfpeak: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioMeterInformation_Impl, - { + pub const fn new() -> IAudioMeterInformation_Vtbl { + unsafe extern "system" fn GetPeakValue(this: *mut core::ffi::c_void, pfpeak: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioMeterInformation_Impl::GetPeakValue(this) { Ok(ok__) => { @@ -526,10 +397,7 @@ impl IAudioMeterInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMeteringChannelCount(this: *mut core::ffi::c_void, pnchannelcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioMeterInformation_Impl, - { + unsafe extern "system" fn GetMeteringChannelCount(this: *mut core::ffi::c_void, pnchannelcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioMeterInformation_Impl::GetMeteringChannelCount(this) { Ok(ok__) => { @@ -539,17 +407,11 @@ impl IAudioMeterInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChannelsPeakValues(this: *mut core::ffi::c_void, u32channelcount: u32, afpeakvalues: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioMeterInformation_Impl, - { + unsafe extern "system" fn GetChannelsPeakValues(this: *mut core::ffi::c_void, u32channelcount: u32, afpeakvalues: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioMeterInformation_Impl::GetChannelsPeakValues(this, core::mem::transmute_copy(&u32channelcount), core::mem::transmute_copy(&afpeakvalues)).into() } - unsafe extern "system" fn QueryHardwareSupport(this: *mut core::ffi::c_void, pdwhardwaresupportmask: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioMeterInformation_Impl, - { + unsafe extern "system" fn QueryHardwareSupport(this: *mut core::ffi::c_void, pdwhardwaresupportmask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioMeterInformation_Impl::QueryHardwareSupport(this) { Ok(ok__) => { @@ -571,7 +433,7 @@ impl IAudioMeterInformation_Vtbl { iid == &::IID } } -pub trait IHardwareAudioEngineBase_Impl: Sized { +pub trait IHardwareAudioEngineBase_Impl: Sized + windows_core::IUnknownImpl { fn GetAvailableOffloadConnectorCount(&self, _pwstrdeviceid: &windows_core::PCWSTR, _uconnectorid: u32) -> windows_core::Result; fn GetEngineFormat(&self, pdevice: Option<&super::IMMDevice>, _brequestdeviceformat: super::super::super::Foundation::BOOL, _ppwfxformat: *mut *mut super::WAVEFORMATEX) -> windows_core::Result<()>; fn SetEngineDeviceFormat(&self, pdevice: Option<&super::IMMDevice>, _pwfxformat: *mut super::WAVEFORMATEX) -> windows_core::Result<()>; @@ -580,14 +442,8 @@ pub trait IHardwareAudioEngineBase_Impl: Sized { } impl windows_core::RuntimeName for IHardwareAudioEngineBase {} impl IHardwareAudioEngineBase_Vtbl { - pub const fn new() -> IHardwareAudioEngineBase_Vtbl - where - Identity: IHardwareAudioEngineBase_Impl, - { - unsafe extern "system" fn GetAvailableOffloadConnectorCount(this: *mut core::ffi::c_void, _pwstrdeviceid: windows_core::PCWSTR, _uconnectorid: u32, _pavailableconnectorinstancecount: *mut u32) -> windows_core::HRESULT - where - Identity: IHardwareAudioEngineBase_Impl, - { + pub const fn new() -> IHardwareAudioEngineBase_Vtbl { + unsafe extern "system" fn GetAvailableOffloadConnectorCount(this: *mut core::ffi::c_void, _pwstrdeviceid: windows_core::PCWSTR, _uconnectorid: u32, _pavailableconnectorinstancecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHardwareAudioEngineBase_Impl::GetAvailableOffloadConnectorCount(this, core::mem::transmute(&_pwstrdeviceid), core::mem::transmute_copy(&_uconnectorid)) { Ok(ok__) => { @@ -597,31 +453,19 @@ impl IHardwareAudioEngineBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEngineFormat(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _brequestdeviceformat: super::super::super::Foundation::BOOL, _ppwfxformat: *mut *mut super::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IHardwareAudioEngineBase_Impl, - { + unsafe extern "system" fn GetEngineFormat(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _brequestdeviceformat: super::super::super::Foundation::BOOL, _ppwfxformat: *mut *mut super::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHardwareAudioEngineBase_Impl::GetEngineFormat(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&_brequestdeviceformat), core::mem::transmute_copy(&_ppwfxformat)).into() } - unsafe extern "system" fn SetEngineDeviceFormat(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _pwfxformat: *mut super::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IHardwareAudioEngineBase_Impl, - { + unsafe extern "system" fn SetEngineDeviceFormat(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _pwfxformat: *mut super::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHardwareAudioEngineBase_Impl::SetEngineDeviceFormat(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&_pwfxformat)).into() } - unsafe extern "system" fn SetGfxState(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _benable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IHardwareAudioEngineBase_Impl, - { + unsafe extern "system" fn SetGfxState(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _benable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHardwareAudioEngineBase_Impl::SetGfxState(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&_benable)).into() } - unsafe extern "system" fn GetGfxState(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _pbenable: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IHardwareAudioEngineBase_Impl, - { + unsafe extern "system" fn GetGfxState(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _pbenable: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHardwareAudioEngineBase_Impl::GetGfxState(this, windows_core::from_raw_borrowed(&pdevice)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/impl.rs index 8503b15c01..6745562c60 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/impl.rs @@ -1,4 +1,4 @@ -pub trait IXAPO_Impl: Sized { +pub trait IXAPO_Impl: Sized + windows_core::IUnknownImpl { fn GetRegistrationProperties(&self) -> windows_core::Result<*mut XAPO_REGISTRATION_PROPERTIES>; fn IsInputFormatSupported(&self, poutputformat: *const super::WAVEFORMATEX, prequestedinputformat: *const super::WAVEFORMATEX, ppsupportedinputformat: *mut *mut super::WAVEFORMATEX) -> windows_core::Result<()>; fn IsOutputFormatSupported(&self, pinputformat: *const super::WAVEFORMATEX, prequestedoutputformat: *const super::WAVEFORMATEX, ppsupportedoutputformat: *mut *mut super::WAVEFORMATEX) -> windows_core::Result<()>; @@ -12,14 +12,8 @@ pub trait IXAPO_Impl: Sized { } impl windows_core::RuntimeName for IXAPO {} impl IXAPO_Vtbl { - pub const fn new() -> IXAPO_Vtbl - where - Identity: IXAPO_Impl, - { - unsafe extern "system" fn GetRegistrationProperties(this: *mut core::ffi::c_void, ppregistrationproperties: *mut *mut XAPO_REGISTRATION_PROPERTIES) -> windows_core::HRESULT - where - Identity: IXAPO_Impl, - { + pub const fn new() -> IXAPO_Vtbl { + unsafe extern "system" fn GetRegistrationProperties(this: *mut core::ffi::c_void, ppregistrationproperties: *mut *mut XAPO_REGISTRATION_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXAPO_Impl::GetRegistrationProperties(this) { Ok(ok__) => { @@ -29,66 +23,39 @@ impl IXAPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsInputFormatSupported(this: *mut core::ffi::c_void, poutputformat: *const super::WAVEFORMATEX, prequestedinputformat: *const super::WAVEFORMATEX, ppsupportedinputformat: *mut *mut super::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IXAPO_Impl, - { + unsafe extern "system" fn IsInputFormatSupported(this: *mut core::ffi::c_void, poutputformat: *const super::WAVEFORMATEX, prequestedinputformat: *const super::WAVEFORMATEX, ppsupportedinputformat: *mut *mut super::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPO_Impl::IsInputFormatSupported(this, core::mem::transmute_copy(&poutputformat), core::mem::transmute_copy(&prequestedinputformat), core::mem::transmute_copy(&ppsupportedinputformat)).into() } - unsafe extern "system" fn IsOutputFormatSupported(this: *mut core::ffi::c_void, pinputformat: *const super::WAVEFORMATEX, prequestedoutputformat: *const super::WAVEFORMATEX, ppsupportedoutputformat: *mut *mut super::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IXAPO_Impl, - { + unsafe extern "system" fn IsOutputFormatSupported(this: *mut core::ffi::c_void, pinputformat: *const super::WAVEFORMATEX, prequestedoutputformat: *const super::WAVEFORMATEX, ppsupportedoutputformat: *mut *mut super::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPO_Impl::IsOutputFormatSupported(this, core::mem::transmute_copy(&pinputformat), core::mem::transmute_copy(&prequestedoutputformat), core::mem::transmute_copy(&ppsupportedoutputformat)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pdata: *const core::ffi::c_void, databytesize: u32) -> windows_core::HRESULT - where - Identity: IXAPO_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pdata: *const core::ffi::c_void, databytesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPO_Impl::Initialize(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&databytesize)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) - where - Identity: IXAPO_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPO_Impl::Reset(this) } - unsafe extern "system" fn LockForProcess(this: *mut core::ffi::c_void, inputlockedparametercount: u32, pinputlockedparameters: *const XAPO_LOCKFORPROCESS_PARAMETERS, outputlockedparametercount: u32, poutputlockedparameters: *const XAPO_LOCKFORPROCESS_PARAMETERS) -> windows_core::HRESULT - where - Identity: IXAPO_Impl, - { + unsafe extern "system" fn LockForProcess(this: *mut core::ffi::c_void, inputlockedparametercount: u32, pinputlockedparameters: *const XAPO_LOCKFORPROCESS_PARAMETERS, outputlockedparametercount: u32, poutputlockedparameters: *const XAPO_LOCKFORPROCESS_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPO_Impl::LockForProcess(this, core::mem::transmute_copy(&inputlockedparametercount), core::mem::transmute_copy(&pinputlockedparameters), core::mem::transmute_copy(&outputlockedparametercount), core::mem::transmute_copy(&poutputlockedparameters)).into() } - unsafe extern "system" fn UnlockForProcess(this: *mut core::ffi::c_void) - where - Identity: IXAPO_Impl, - { + unsafe extern "system" fn UnlockForProcess(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPO_Impl::UnlockForProcess(this) } - unsafe extern "system" fn Process(this: *mut core::ffi::c_void, inputprocessparametercount: u32, pinputprocessparameters: *const XAPO_PROCESS_BUFFER_PARAMETERS, outputprocessparametercount: u32, poutputprocessparameters: *mut XAPO_PROCESS_BUFFER_PARAMETERS, isenabled: super::super::super::Foundation::BOOL) - where - Identity: IXAPO_Impl, - { + unsafe extern "system" fn Process(this: *mut core::ffi::c_void, inputprocessparametercount: u32, pinputprocessparameters: *const XAPO_PROCESS_BUFFER_PARAMETERS, outputprocessparametercount: u32, poutputprocessparameters: *mut XAPO_PROCESS_BUFFER_PARAMETERS, isenabled: super::super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPO_Impl::Process(this, core::mem::transmute_copy(&inputprocessparametercount), core::mem::transmute_copy(&pinputprocessparameters), core::mem::transmute_copy(&outputprocessparametercount), core::mem::transmute_copy(&poutputprocessparameters), core::mem::transmute_copy(&isenabled)) } - unsafe extern "system" fn CalcInputFrames(this: *mut core::ffi::c_void, outputframecount: u32) -> u32 - where - Identity: IXAPO_Impl, - { + unsafe extern "system" fn CalcInputFrames(this: *mut core::ffi::c_void, outputframecount: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPO_Impl::CalcInputFrames(this, core::mem::transmute_copy(&outputframecount)) } - unsafe extern "system" fn CalcOutputFrames(this: *mut core::ffi::c_void, inputframecount: u32) -> u32 - where - Identity: IXAPO_Impl, - { + unsafe extern "system" fn CalcOutputFrames(this: *mut core::ffi::c_void, inputframecount: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPO_Impl::CalcOutputFrames(this, core::mem::transmute_copy(&inputframecount)) } @@ -110,7 +77,7 @@ impl IXAPO_Vtbl { iid == &::IID } } -pub trait IXAPOHrtfParameters_Impl: Sized { +pub trait IXAPOHrtfParameters_Impl: Sized + windows_core::IUnknownImpl { fn SetSourcePosition(&self, position: *const HrtfPosition) -> windows_core::Result<()>; fn SetSourceOrientation(&self, orientation: *const HrtfOrientation) -> windows_core::Result<()>; fn SetSourceGain(&self, gain: f32) -> windows_core::Result<()>; @@ -118,35 +85,20 @@ pub trait IXAPOHrtfParameters_Impl: Sized { } impl windows_core::RuntimeName for IXAPOHrtfParameters {} impl IXAPOHrtfParameters_Vtbl { - pub const fn new() -> IXAPOHrtfParameters_Vtbl - where - Identity: IXAPOHrtfParameters_Impl, - { - unsafe extern "system" fn SetSourcePosition(this: *mut core::ffi::c_void, position: *const HrtfPosition) -> windows_core::HRESULT - where - Identity: IXAPOHrtfParameters_Impl, - { + pub const fn new() -> IXAPOHrtfParameters_Vtbl { + unsafe extern "system" fn SetSourcePosition(this: *mut core::ffi::c_void, position: *const HrtfPosition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPOHrtfParameters_Impl::SetSourcePosition(this, core::mem::transmute_copy(&position)).into() } - unsafe extern "system" fn SetSourceOrientation(this: *mut core::ffi::c_void, orientation: *const HrtfOrientation) -> windows_core::HRESULT - where - Identity: IXAPOHrtfParameters_Impl, - { + unsafe extern "system" fn SetSourceOrientation(this: *mut core::ffi::c_void, orientation: *const HrtfOrientation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPOHrtfParameters_Impl::SetSourceOrientation(this, core::mem::transmute_copy(&orientation)).into() } - unsafe extern "system" fn SetSourceGain(this: *mut core::ffi::c_void, gain: f32) -> windows_core::HRESULT - where - Identity: IXAPOHrtfParameters_Impl, - { + unsafe extern "system" fn SetSourceGain(this: *mut core::ffi::c_void, gain: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPOHrtfParameters_Impl::SetSourceGain(this, core::mem::transmute_copy(&gain)).into() } - unsafe extern "system" fn SetEnvironment(this: *mut core::ffi::c_void, environment: HrtfEnvironment) -> windows_core::HRESULT - where - Identity: IXAPOHrtfParameters_Impl, - { + unsafe extern "system" fn SetEnvironment(this: *mut core::ffi::c_void, environment: HrtfEnvironment) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPOHrtfParameters_Impl::SetEnvironment(this, core::mem::transmute_copy(&environment)).into() } @@ -162,27 +114,18 @@ impl IXAPOHrtfParameters_Vtbl { iid == &::IID } } -pub trait IXAPOParameters_Impl: Sized { +pub trait IXAPOParameters_Impl: Sized + windows_core::IUnknownImpl { fn SetParameters(&self, pparameters: *const core::ffi::c_void, parameterbytesize: u32); fn GetParameters(&self, pparameters: *mut core::ffi::c_void, parameterbytesize: u32); } impl windows_core::RuntimeName for IXAPOParameters {} impl IXAPOParameters_Vtbl { - pub const fn new() -> IXAPOParameters_Vtbl - where - Identity: IXAPOParameters_Impl, - { - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, pparameters: *const core::ffi::c_void, parameterbytesize: u32) - where - Identity: IXAPOParameters_Impl, - { + pub const fn new() -> IXAPOParameters_Vtbl { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, pparameters: *const core::ffi::c_void, parameterbytesize: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPOParameters_Impl::SetParameters(this, core::mem::transmute_copy(&pparameters), core::mem::transmute_copy(¶meterbytesize)) } - unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, pparameters: *mut core::ffi::c_void, parameterbytesize: u32) - where - Identity: IXAPOParameters_Impl, - { + unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, pparameters: *mut core::ffi::c_void, parameterbytesize: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPOParameters_Impl::GetParameters(this, core::mem::transmute_copy(&pparameters), core::mem::transmute_copy(¶meterbytesize)) } @@ -196,7 +139,7 @@ impl IXAPOParameters_Vtbl { iid == &::IID } } -pub trait IXAudio2_Impl: Sized { +pub trait IXAudio2_Impl: Sized + windows_core::IUnknownImpl { fn RegisterForCallbacks(&self, pcallback: Option<&IXAudio2EngineCallback>) -> windows_core::Result<()>; fn UnregisterForCallbacks(&self, pcallback: Option<&IXAudio2EngineCallback>); fn CreateSourceVoice(&self, ppsourcevoice: *mut Option, psourceformat: *const super::WAVEFORMATEX, flags: u32, maxfrequencyratio: f32, pcallback: Option<&IXAudio2VoiceCallback>, psendlist: *const XAUDIO2_VOICE_SENDS, peffectchain: *const XAUDIO2_EFFECT_CHAIN) -> windows_core::Result<()>; @@ -210,77 +153,44 @@ pub trait IXAudio2_Impl: Sized { } impl windows_core::RuntimeName for IXAudio2 {} impl IXAudio2_Vtbl { - pub const fn new() -> IXAudio2_Vtbl - where - Identity: IXAudio2_Impl, - { - unsafe extern "system" fn RegisterForCallbacks(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXAudio2_Impl, - { + pub const fn new() -> IXAudio2_Vtbl { + unsafe extern "system" fn RegisterForCallbacks(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2_Impl::RegisterForCallbacks(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn UnregisterForCallbacks(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) - where - Identity: IXAudio2_Impl, - { + unsafe extern "system" fn UnregisterForCallbacks(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2_Impl::UnregisterForCallbacks(this, windows_core::from_raw_borrowed(&pcallback)) } - unsafe extern "system" fn CreateSourceVoice(this: *mut core::ffi::c_void, ppsourcevoice: *mut *mut core::ffi::c_void, psourceformat: *const super::WAVEFORMATEX, flags: u32, maxfrequencyratio: f32, pcallback: *mut core::ffi::c_void, psendlist: *const XAUDIO2_VOICE_SENDS, peffectchain: *const XAUDIO2_EFFECT_CHAIN) -> windows_core::HRESULT - where - Identity: IXAudio2_Impl, - { + unsafe extern "system" fn CreateSourceVoice(this: *mut core::ffi::c_void, ppsourcevoice: *mut *mut core::ffi::c_void, psourceformat: *const super::WAVEFORMATEX, flags: u32, maxfrequencyratio: f32, pcallback: *mut core::ffi::c_void, psendlist: *const XAUDIO2_VOICE_SENDS, peffectchain: *const XAUDIO2_EFFECT_CHAIN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2_Impl::CreateSourceVoice(this, core::mem::transmute_copy(&ppsourcevoice), core::mem::transmute_copy(&psourceformat), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&maxfrequencyratio), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&psendlist), core::mem::transmute_copy(&peffectchain)).into() } - unsafe extern "system" fn CreateSubmixVoice(this: *mut core::ffi::c_void, ppsubmixvoice: *mut *mut core::ffi::c_void, inputchannels: u32, inputsamplerate: u32, flags: u32, processingstage: u32, psendlist: *const XAUDIO2_VOICE_SENDS, peffectchain: *const XAUDIO2_EFFECT_CHAIN) -> windows_core::HRESULT - where - Identity: IXAudio2_Impl, - { + unsafe extern "system" fn CreateSubmixVoice(this: *mut core::ffi::c_void, ppsubmixvoice: *mut *mut core::ffi::c_void, inputchannels: u32, inputsamplerate: u32, flags: u32, processingstage: u32, psendlist: *const XAUDIO2_VOICE_SENDS, peffectchain: *const XAUDIO2_EFFECT_CHAIN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2_Impl::CreateSubmixVoice(this, core::mem::transmute_copy(&ppsubmixvoice), core::mem::transmute_copy(&inputchannels), core::mem::transmute_copy(&inputsamplerate), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&processingstage), core::mem::transmute_copy(&psendlist), core::mem::transmute_copy(&peffectchain)).into() } - unsafe extern "system" fn CreateMasteringVoice(this: *mut core::ffi::c_void, ppmasteringvoice: *mut *mut core::ffi::c_void, inputchannels: u32, inputsamplerate: u32, flags: u32, szdeviceid: windows_core::PCWSTR, peffectchain: *const XAUDIO2_EFFECT_CHAIN, streamcategory: super::AUDIO_STREAM_CATEGORY) -> windows_core::HRESULT - where - Identity: IXAudio2_Impl, - { + unsafe extern "system" fn CreateMasteringVoice(this: *mut core::ffi::c_void, ppmasteringvoice: *mut *mut core::ffi::c_void, inputchannels: u32, inputsamplerate: u32, flags: u32, szdeviceid: windows_core::PCWSTR, peffectchain: *const XAUDIO2_EFFECT_CHAIN, streamcategory: super::AUDIO_STREAM_CATEGORY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2_Impl::CreateMasteringVoice(this, core::mem::transmute_copy(&ppmasteringvoice), core::mem::transmute_copy(&inputchannels), core::mem::transmute_copy(&inputsamplerate), core::mem::transmute_copy(&flags), core::mem::transmute(&szdeviceid), core::mem::transmute_copy(&peffectchain), core::mem::transmute_copy(&streamcategory)).into() } - unsafe extern "system" fn StartEngine(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXAudio2_Impl, - { + unsafe extern "system" fn StartEngine(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2_Impl::StartEngine(this).into() } - unsafe extern "system" fn StopEngine(this: *mut core::ffi::c_void) - where - Identity: IXAudio2_Impl, - { + unsafe extern "system" fn StopEngine(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2_Impl::StopEngine(this) } - unsafe extern "system" fn CommitChanges(this: *mut core::ffi::c_void, operationset: u32) -> windows_core::HRESULT - where - Identity: IXAudio2_Impl, - { + unsafe extern "system" fn CommitChanges(this: *mut core::ffi::c_void, operationset: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2_Impl::CommitChanges(this, core::mem::transmute_copy(&operationset)).into() } - unsafe extern "system" fn GetPerformanceData(this: *mut core::ffi::c_void, pperfdata: *mut XAUDIO2_PERFORMANCE_DATA) - where - Identity: IXAudio2_Impl, - { + unsafe extern "system" fn GetPerformanceData(this: *mut core::ffi::c_void, pperfdata: *mut XAUDIO2_PERFORMANCE_DATA) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2_Impl::GetPerformanceData(this, core::mem::transmute_copy(&pperfdata)) } - unsafe extern "system" fn SetDebugConfiguration(this: *mut core::ffi::c_void, pdebugconfiguration: *const XAUDIO2_DEBUG_CONFIGURATION, preserved: *const core::ffi::c_void) - where - Identity: IXAudio2_Impl, - { + unsafe extern "system" fn SetDebugConfiguration(this: *mut core::ffi::c_void, pdebugconfiguration: *const XAUDIO2_DEBUG_CONFIGURATION, preserved: *const core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2_Impl::SetDebugConfiguration(this, core::mem::transmute_copy(&pdebugconfiguration), core::mem::transmute_copy(&preserved)) } @@ -339,27 +249,18 @@ impl IXAudio2EngineCallback { unsafe { windows_core::ScopedInterface::new(core::mem::transmute(&this.vtable)) } } } -pub trait IXAudio2Extension_Impl: Sized { +pub trait IXAudio2Extension_Impl: Sized + windows_core::IUnknownImpl { fn GetProcessingQuantum(&self, quantumnumerator: *mut u32, quantumdenominator: *mut u32); fn GetProcessor(&self, processor: *mut u32); } impl windows_core::RuntimeName for IXAudio2Extension {} impl IXAudio2Extension_Vtbl { - pub const fn new() -> IXAudio2Extension_Vtbl - where - Identity: IXAudio2Extension_Impl, - { - unsafe extern "system" fn GetProcessingQuantum(this: *mut core::ffi::c_void, quantumnumerator: *mut u32, quantumdenominator: *mut u32) - where - Identity: IXAudio2Extension_Impl, - { + pub const fn new() -> IXAudio2Extension_Vtbl { + unsafe extern "system" fn GetProcessingQuantum(this: *mut core::ffi::c_void, quantumnumerator: *mut u32, quantumdenominator: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2Extension_Impl::GetProcessingQuantum(this, core::mem::transmute_copy(&quantumnumerator), core::mem::transmute_copy(&quantumdenominator)) } - unsafe extern "system" fn GetProcessor(this: *mut core::ffi::c_void, processor: *mut u32) - where - Identity: IXAudio2Extension_Impl, - { + unsafe extern "system" fn GetProcessor(this: *mut core::ffi::c_void, processor: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAudio2Extension_Impl::GetProcessor(this, core::mem::transmute_copy(&processor)) } diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs index f29ad1ba0d..d530ee08ec 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs @@ -1,16 +1,10 @@ -pub trait IAcousticEchoCancellationControl_Impl: Sized { +pub trait IAcousticEchoCancellationControl_Impl: Sized + windows_core::IUnknownImpl { fn SetEchoCancellationRenderEndpoint(&self, endpointid: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAcousticEchoCancellationControl {} impl IAcousticEchoCancellationControl_Vtbl { - pub const fn new() -> IAcousticEchoCancellationControl_Vtbl - where - Identity: IAcousticEchoCancellationControl_Impl, - { - unsafe extern "system" fn SetEchoCancellationRenderEndpoint(this: *mut core::ffi::c_void, endpointid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAcousticEchoCancellationControl_Impl, - { + pub const fn new() -> IAcousticEchoCancellationControl_Vtbl { + unsafe extern "system" fn SetEchoCancellationRenderEndpoint(this: *mut core::ffi::c_void, endpointid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAcousticEchoCancellationControl_Impl::SetEchoCancellationRenderEndpoint(this, core::mem::transmute(&endpointid)).into() } @@ -23,19 +17,13 @@ impl IAcousticEchoCancellationControl_Vtbl { iid == &::IID } } -pub trait IActivateAudioInterfaceAsyncOperation_Impl: Sized { +pub trait IActivateAudioInterfaceAsyncOperation_Impl: Sized + windows_core::IUnknownImpl { fn GetActivateResult(&self, activateresult: *mut windows_core::HRESULT, activatedinterface: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActivateAudioInterfaceAsyncOperation {} impl IActivateAudioInterfaceAsyncOperation_Vtbl { - pub const fn new() -> IActivateAudioInterfaceAsyncOperation_Vtbl - where - Identity: IActivateAudioInterfaceAsyncOperation_Impl, - { - unsafe extern "system" fn GetActivateResult(this: *mut core::ffi::c_void, activateresult: *mut windows_core::HRESULT, activatedinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActivateAudioInterfaceAsyncOperation_Impl, - { + pub const fn new() -> IActivateAudioInterfaceAsyncOperation_Vtbl { + unsafe extern "system" fn GetActivateResult(this: *mut core::ffi::c_void, activateresult: *mut windows_core::HRESULT, activatedinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActivateAudioInterfaceAsyncOperation_Impl::GetActivateResult(this, core::mem::transmute_copy(&activateresult), core::mem::transmute_copy(&activatedinterface)).into() } @@ -45,19 +33,13 @@ impl IActivateAudioInterfaceAsyncOperation_Vtbl { iid == &::IID } } -pub trait IActivateAudioInterfaceCompletionHandler_Impl: Sized { +pub trait IActivateAudioInterfaceCompletionHandler_Impl: Sized + windows_core::IUnknownImpl { fn ActivateCompleted(&self, activateoperation: Option<&IActivateAudioInterfaceAsyncOperation>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActivateAudioInterfaceCompletionHandler {} impl IActivateAudioInterfaceCompletionHandler_Vtbl { - pub const fn new() -> IActivateAudioInterfaceCompletionHandler_Vtbl - where - Identity: IActivateAudioInterfaceCompletionHandler_Impl, - { - unsafe extern "system" fn ActivateCompleted(this: *mut core::ffi::c_void, activateoperation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActivateAudioInterfaceCompletionHandler_Impl, - { + pub const fn new() -> IActivateAudioInterfaceCompletionHandler_Vtbl { + unsafe extern "system" fn ActivateCompleted(this: *mut core::ffi::c_void, activateoperation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActivateAudioInterfaceCompletionHandler_Impl::ActivateCompleted(this, windows_core::from_raw_borrowed(&activateoperation)).into() } @@ -67,7 +49,7 @@ impl IActivateAudioInterfaceCompletionHandler_Vtbl { iid == &::IID } } -pub trait IAudioAmbisonicsControl_Impl: Sized { +pub trait IAudioAmbisonicsControl_Impl: Sized + windows_core::IUnknownImpl { fn SetData(&self, pambisonicsparams: *const AMBISONICS_PARAMS, cbambisonicsparams: u32) -> windows_core::Result<()>; fn SetHeadTracking(&self, benableheadtracking: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetHeadTracking(&self) -> windows_core::Result; @@ -75,28 +57,16 @@ pub trait IAudioAmbisonicsControl_Impl: Sized { } impl windows_core::RuntimeName for IAudioAmbisonicsControl {} impl IAudioAmbisonicsControl_Vtbl { - pub const fn new() -> IAudioAmbisonicsControl_Vtbl - where - Identity: IAudioAmbisonicsControl_Impl, - { - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pambisonicsparams: *const AMBISONICS_PARAMS, cbambisonicsparams: u32) -> windows_core::HRESULT - where - Identity: IAudioAmbisonicsControl_Impl, - { + pub const fn new() -> IAudioAmbisonicsControl_Vtbl { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pambisonicsparams: *const AMBISONICS_PARAMS, cbambisonicsparams: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioAmbisonicsControl_Impl::SetData(this, core::mem::transmute_copy(&pambisonicsparams), core::mem::transmute_copy(&cbambisonicsparams)).into() } - unsafe extern "system" fn SetHeadTracking(this: *mut core::ffi::c_void, benableheadtracking: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioAmbisonicsControl_Impl, - { + unsafe extern "system" fn SetHeadTracking(this: *mut core::ffi::c_void, benableheadtracking: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioAmbisonicsControl_Impl::SetHeadTracking(this, core::mem::transmute_copy(&benableheadtracking)).into() } - unsafe extern "system" fn GetHeadTracking(this: *mut core::ffi::c_void, pbenableheadtracking: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioAmbisonicsControl_Impl, - { + unsafe extern "system" fn GetHeadTracking(this: *mut core::ffi::c_void, pbenableheadtracking: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioAmbisonicsControl_Impl::GetHeadTracking(this) { Ok(ok__) => { @@ -106,10 +76,7 @@ impl IAudioAmbisonicsControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, w: f32) -> windows_core::HRESULT - where - Identity: IAudioAmbisonicsControl_Impl, - { + unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, w: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioAmbisonicsControl_Impl::SetRotation(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&z), core::mem::transmute_copy(&w)).into() } @@ -125,20 +92,14 @@ impl IAudioAmbisonicsControl_Vtbl { iid == &::IID } } -pub trait IAudioAutoGainControl_Impl: Sized { +pub trait IAudioAutoGainControl_Impl: Sized + windows_core::IUnknownImpl { fn GetEnabled(&self) -> windows_core::Result; fn SetEnabled(&self, benable: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioAutoGainControl {} impl IAudioAutoGainControl_Vtbl { - pub const fn new() -> IAudioAutoGainControl_Vtbl - where - Identity: IAudioAutoGainControl_Impl, - { - unsafe extern "system" fn GetEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioAutoGainControl_Impl, - { + pub const fn new() -> IAudioAutoGainControl_Vtbl { + unsafe extern "system" fn GetEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioAutoGainControl_Impl::GetEnabled(this) { Ok(ok__) => { @@ -148,10 +109,7 @@ impl IAudioAutoGainControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioAutoGainControl_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioAutoGainControl_Impl::SetEnabled(this, core::mem::transmute_copy(&benable), core::mem::transmute_copy(&pguideventcontext)).into() } @@ -168,45 +126,30 @@ impl IAudioAutoGainControl_Vtbl { pub trait IAudioBass_Impl: Sized + IPerChannelDbLevel_Impl {} impl windows_core::RuntimeName for IAudioBass {} impl IAudioBass_Vtbl { - pub const fn new() -> IAudioBass_Vtbl - where - Identity: IAudioBass_Impl, - { + pub const fn new() -> IAudioBass_Vtbl { Self { base__: IPerChannelDbLevel_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IAudioCaptureClient_Impl: Sized { +pub trait IAudioCaptureClient_Impl: Sized + windows_core::IUnknownImpl { fn GetBuffer(&self, ppdata: *mut *mut u8, pnumframestoread: *mut u32, pdwflags: *mut u32, pu64deviceposition: *mut u64, pu64qpcposition: *mut u64) -> windows_core::Result<()>; fn ReleaseBuffer(&self, numframesread: u32) -> windows_core::Result<()>; fn GetNextPacketSize(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioCaptureClient {} impl IAudioCaptureClient_Vtbl { - pub const fn new() -> IAudioCaptureClient_Vtbl - where - Identity: IAudioCaptureClient_Impl, - { - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, ppdata: *mut *mut u8, pnumframestoread: *mut u32, pdwflags: *mut u32, pu64deviceposition: *mut u64, pu64qpcposition: *mut u64) -> windows_core::HRESULT - where - Identity: IAudioCaptureClient_Impl, - { + pub const fn new() -> IAudioCaptureClient_Vtbl { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, ppdata: *mut *mut u8, pnumframestoread: *mut u32, pdwflags: *mut u32, pu64deviceposition: *mut u64, pu64qpcposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioCaptureClient_Impl::GetBuffer(this, core::mem::transmute_copy(&ppdata), core::mem::transmute_copy(&pnumframestoread), core::mem::transmute_copy(&pdwflags), core::mem::transmute_copy(&pu64deviceposition), core::mem::transmute_copy(&pu64qpcposition)).into() } - unsafe extern "system" fn ReleaseBuffer(this: *mut core::ffi::c_void, numframesread: u32) -> windows_core::HRESULT - where - Identity: IAudioCaptureClient_Impl, - { + unsafe extern "system" fn ReleaseBuffer(this: *mut core::ffi::c_void, numframesread: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioCaptureClient_Impl::ReleaseBuffer(this, core::mem::transmute_copy(&numframesread)).into() } - unsafe extern "system" fn GetNextPacketSize(this: *mut core::ffi::c_void, pnumframesinnextpacket: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioCaptureClient_Impl, - { + unsafe extern "system" fn GetNextPacketSize(this: *mut core::ffi::c_void, pnumframesinnextpacket: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioCaptureClient_Impl::GetNextPacketSize(this) { Ok(ok__) => { @@ -227,27 +170,18 @@ impl IAudioCaptureClient_Vtbl { iid == &::IID } } -pub trait IAudioChannelConfig_Impl: Sized { +pub trait IAudioChannelConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetChannelConfig(&self, dwconfig: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn GetChannelConfig(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioChannelConfig {} impl IAudioChannelConfig_Vtbl { - pub const fn new() -> IAudioChannelConfig_Vtbl - where - Identity: IAudioChannelConfig_Impl, - { - unsafe extern "system" fn SetChannelConfig(this: *mut core::ffi::c_void, dwconfig: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioChannelConfig_Impl, - { + pub const fn new() -> IAudioChannelConfig_Vtbl { + unsafe extern "system" fn SetChannelConfig(this: *mut core::ffi::c_void, dwconfig: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioChannelConfig_Impl::SetChannelConfig(this, core::mem::transmute_copy(&dwconfig), core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn GetChannelConfig(this: *mut core::ffi::c_void, pdwconfig: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioChannelConfig_Impl, - { + unsafe extern "system" fn GetChannelConfig(this: *mut core::ffi::c_void, pdwconfig: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioChannelConfig_Impl::GetChannelConfig(this) { Ok(ok__) => { @@ -267,7 +201,7 @@ impl IAudioChannelConfig_Vtbl { iid == &::IID } } -pub trait IAudioClient_Impl: Sized { +pub trait IAudioClient_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, sharemode: AUDCLNT_SHAREMODE, streamflags: u32, hnsbufferduration: i64, hnsperiodicity: i64, pformat: *const WAVEFORMATEX, audiosessionguid: *const windows_core::GUID) -> windows_core::Result<()>; fn GetBufferSize(&self) -> windows_core::Result; fn GetStreamLatency(&self) -> windows_core::Result; @@ -283,21 +217,12 @@ pub trait IAudioClient_Impl: Sized { } impl windows_core::RuntimeName for IAudioClient {} impl IAudioClient_Vtbl { - pub const fn new() -> IAudioClient_Vtbl - where - Identity: IAudioClient_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, sharemode: AUDCLNT_SHAREMODE, streamflags: u32, hnsbufferduration: i64, hnsperiodicity: i64, pformat: *const WAVEFORMATEX, audiosessionguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + pub const fn new() -> IAudioClient_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, sharemode: AUDCLNT_SHAREMODE, streamflags: u32, hnsbufferduration: i64, hnsperiodicity: i64, pformat: *const WAVEFORMATEX, audiosessionguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient_Impl::Initialize(this, core::mem::transmute_copy(&sharemode), core::mem::transmute_copy(&streamflags), core::mem::transmute_copy(&hnsbufferduration), core::mem::transmute_copy(&hnsperiodicity), core::mem::transmute_copy(&pformat), core::mem::transmute_copy(&audiosessionguid)).into() } - unsafe extern "system" fn GetBufferSize(this: *mut core::ffi::c_void, pnumbufferframes: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn GetBufferSize(this: *mut core::ffi::c_void, pnumbufferframes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioClient_Impl::GetBufferSize(this) { Ok(ok__) => { @@ -307,10 +232,7 @@ impl IAudioClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamLatency(this: *mut core::ffi::c_void, phnslatency: *mut i64) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn GetStreamLatency(this: *mut core::ffi::c_void, phnslatency: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioClient_Impl::GetStreamLatency(this) { Ok(ok__) => { @@ -320,10 +242,7 @@ impl IAudioClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentPadding(this: *mut core::ffi::c_void, pnumpaddingframes: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn GetCurrentPadding(this: *mut core::ffi::c_void, pnumpaddingframes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioClient_Impl::GetCurrentPadding(this) { Ok(ok__) => { @@ -333,17 +252,11 @@ impl IAudioClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFormatSupported(this: *mut core::ffi::c_void, sharemode: AUDCLNT_SHAREMODE, pformat: *const WAVEFORMATEX, ppclosestmatch: *mut *mut WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn IsFormatSupported(this: *mut core::ffi::c_void, sharemode: AUDCLNT_SHAREMODE, pformat: *const WAVEFORMATEX, ppclosestmatch: *mut *mut WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient_Impl::IsFormatSupported(this, core::mem::transmute_copy(&sharemode), core::mem::transmute_copy(&pformat), core::mem::transmute_copy(&ppclosestmatch)) } - unsafe extern "system" fn GetMixFormat(this: *mut core::ffi::c_void, ppdeviceformat: *mut *mut WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn GetMixFormat(this: *mut core::ffi::c_void, ppdeviceformat: *mut *mut WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioClient_Impl::GetMixFormat(this) { Ok(ok__) => { @@ -353,45 +266,27 @@ impl IAudioClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDevicePeriod(this: *mut core::ffi::c_void, phnsdefaultdeviceperiod: *mut i64, phnsminimumdeviceperiod: *mut i64) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn GetDevicePeriod(this: *mut core::ffi::c_void, phnsdefaultdeviceperiod: *mut i64, phnsminimumdeviceperiod: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient_Impl::GetDevicePeriod(this, core::mem::transmute_copy(&phnsdefaultdeviceperiod), core::mem::transmute_copy(&phnsminimumdeviceperiod)).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient_Impl::Stop(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient_Impl::Reset(this).into() } - unsafe extern "system" fn SetEventHandle(this: *mut core::ffi::c_void, eventhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn SetEventHandle(this: *mut core::ffi::c_void, eventhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient_Impl::SetEventHandle(this, core::mem::transmute_copy(&eventhandle)).into() } - unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioClient_Impl, - { + unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient_Impl::GetService(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -422,14 +317,8 @@ pub trait IAudioClient2_Impl: Sized + IAudioClient_Impl { } impl windows_core::RuntimeName for IAudioClient2 {} impl IAudioClient2_Vtbl { - pub const fn new() -> IAudioClient2_Vtbl - where - Identity: IAudioClient2_Impl, - { - unsafe extern "system" fn IsOffloadCapable(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, pboffloadcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioClient2_Impl, - { + pub const fn new() -> IAudioClient2_Vtbl { + unsafe extern "system" fn IsOffloadCapable(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, pboffloadcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioClient2_Impl::IsOffloadCapable(this, core::mem::transmute_copy(&category)) { Ok(ok__) => { @@ -439,17 +328,11 @@ impl IAudioClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientProperties(this: *mut core::ffi::c_void, pproperties: *const AudioClientProperties) -> windows_core::HRESULT - where - Identity: IAudioClient2_Impl, - { + unsafe extern "system" fn SetClientProperties(this: *mut core::ffi::c_void, pproperties: *const AudioClientProperties) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient2_Impl::SetClientProperties(this, core::mem::transmute_copy(&pproperties)).into() } - unsafe extern "system" fn GetBufferSizeLimits(this: *mut core::ffi::c_void, pformat: *const WAVEFORMATEX, beventdriven: super::super::Foundation::BOOL, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64) -> windows_core::HRESULT - where - Identity: IAudioClient2_Impl, - { + unsafe extern "system" fn GetBufferSizeLimits(this: *mut core::ffi::c_void, pformat: *const WAVEFORMATEX, beventdriven: super::super::Foundation::BOOL, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient2_Impl::GetBufferSizeLimits(this, core::mem::transmute_copy(&pformat), core::mem::transmute_copy(&beventdriven), core::mem::transmute_copy(&phnsminbufferduration), core::mem::transmute_copy(&phnsmaxbufferduration)).into() } @@ -471,28 +354,16 @@ pub trait IAudioClient3_Impl: Sized + IAudioClient2_Impl { } impl windows_core::RuntimeName for IAudioClient3 {} impl IAudioClient3_Vtbl { - pub const fn new() -> IAudioClient3_Vtbl - where - Identity: IAudioClient3_Impl, - { - unsafe extern "system" fn GetSharedModeEnginePeriod(this: *mut core::ffi::c_void, pformat: *const WAVEFORMATEX, pdefaultperiodinframes: *mut u32, pfundamentalperiodinframes: *mut u32, pminperiodinframes: *mut u32, pmaxperiodinframes: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioClient3_Impl, - { + pub const fn new() -> IAudioClient3_Vtbl { + unsafe extern "system" fn GetSharedModeEnginePeriod(this: *mut core::ffi::c_void, pformat: *const WAVEFORMATEX, pdefaultperiodinframes: *mut u32, pfundamentalperiodinframes: *mut u32, pminperiodinframes: *mut u32, pmaxperiodinframes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient3_Impl::GetSharedModeEnginePeriod(this, core::mem::transmute_copy(&pformat), core::mem::transmute_copy(&pdefaultperiodinframes), core::mem::transmute_copy(&pfundamentalperiodinframes), core::mem::transmute_copy(&pminperiodinframes), core::mem::transmute_copy(&pmaxperiodinframes)).into() } - unsafe extern "system" fn GetCurrentSharedModeEnginePeriod(this: *mut core::ffi::c_void, ppformat: *mut *mut WAVEFORMATEX, pcurrentperiodinframes: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioClient3_Impl, - { + unsafe extern "system" fn GetCurrentSharedModeEnginePeriod(this: *mut core::ffi::c_void, ppformat: *mut *mut WAVEFORMATEX, pcurrentperiodinframes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient3_Impl::GetCurrentSharedModeEnginePeriod(this, core::mem::transmute_copy(&ppformat), core::mem::transmute_copy(&pcurrentperiodinframes)).into() } - unsafe extern "system" fn InitializeSharedAudioStream(this: *mut core::ffi::c_void, streamflags: u32, periodinframes: u32, pformat: *const WAVEFORMATEX, audiosessionguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioClient3_Impl, - { + unsafe extern "system" fn InitializeSharedAudioStream(this: *mut core::ffi::c_void, streamflags: u32, periodinframes: u32, pformat: *const WAVEFORMATEX, audiosessionguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient3_Impl::InitializeSharedAudioStream(this, core::mem::transmute_copy(&streamflags), core::mem::transmute_copy(&periodinframes), core::mem::transmute_copy(&pformat), core::mem::transmute_copy(&audiosessionguid)).into() } @@ -507,19 +378,13 @@ impl IAudioClient3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IAudioClientDuckingControl_Impl: Sized { +pub trait IAudioClientDuckingControl_Impl: Sized + windows_core::IUnknownImpl { fn SetDuckingOptionsForCurrentStream(&self, options: AUDIO_DUCKING_OPTIONS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioClientDuckingControl {} impl IAudioClientDuckingControl_Vtbl { - pub const fn new() -> IAudioClientDuckingControl_Vtbl - where - Identity: IAudioClientDuckingControl_Impl, - { - unsafe extern "system" fn SetDuckingOptionsForCurrentStream(this: *mut core::ffi::c_void, options: AUDIO_DUCKING_OPTIONS) -> windows_core::HRESULT - where - Identity: IAudioClientDuckingControl_Impl, - { + pub const fn new() -> IAudioClientDuckingControl_Vtbl { + unsafe extern "system" fn SetDuckingOptionsForCurrentStream(this: *mut core::ffi::c_void, options: AUDIO_DUCKING_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClientDuckingControl_Impl::SetDuckingOptionsForCurrentStream(this, core::mem::transmute_copy(&options)).into() } @@ -532,21 +397,15 @@ impl IAudioClientDuckingControl_Vtbl { iid == &::IID } } -pub trait IAudioClock_Impl: Sized { +pub trait IAudioClock_Impl: Sized + windows_core::IUnknownImpl { fn GetFrequency(&self) -> windows_core::Result; fn GetPosition(&self, pu64position: *mut u64, pu64qpcposition: *mut u64) -> windows_core::Result<()>; fn GetCharacteristics(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioClock {} impl IAudioClock_Vtbl { - pub const fn new() -> IAudioClock_Vtbl - where - Identity: IAudioClock_Impl, - { - unsafe extern "system" fn GetFrequency(this: *mut core::ffi::c_void, pu64frequency: *mut u64) -> windows_core::HRESULT - where - Identity: IAudioClock_Impl, - { + pub const fn new() -> IAudioClock_Vtbl { + unsafe extern "system" fn GetFrequency(this: *mut core::ffi::c_void, pu64frequency: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioClock_Impl::GetFrequency(this) { Ok(ok__) => { @@ -556,17 +415,11 @@ impl IAudioClock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, pu64position: *mut u64, pu64qpcposition: *mut u64) -> windows_core::HRESULT - where - Identity: IAudioClock_Impl, - { + unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, pu64position: *mut u64, pu64qpcposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClock_Impl::GetPosition(this, core::mem::transmute_copy(&pu64position), core::mem::transmute_copy(&pu64qpcposition)).into() } - unsafe extern "system" fn GetCharacteristics(this: *mut core::ffi::c_void, pdwcharacteristics: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioClock_Impl, - { + unsafe extern "system" fn GetCharacteristics(this: *mut core::ffi::c_void, pdwcharacteristics: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioClock_Impl::GetCharacteristics(this) { Ok(ok__) => { @@ -587,19 +440,13 @@ impl IAudioClock_Vtbl { iid == &::IID } } -pub trait IAudioClock2_Impl: Sized { +pub trait IAudioClock2_Impl: Sized + windows_core::IUnknownImpl { fn GetDevicePosition(&self, deviceposition: *mut u64, qpcposition: *mut u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioClock2 {} impl IAudioClock2_Vtbl { - pub const fn new() -> IAudioClock2_Vtbl - where - Identity: IAudioClock2_Impl, - { - unsafe extern "system" fn GetDevicePosition(this: *mut core::ffi::c_void, deviceposition: *mut u64, qpcposition: *mut u64) -> windows_core::HRESULT - where - Identity: IAudioClock2_Impl, - { + pub const fn new() -> IAudioClock2_Vtbl { + unsafe extern "system" fn GetDevicePosition(this: *mut core::ffi::c_void, deviceposition: *mut u64, qpcposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClock2_Impl::GetDevicePosition(this, core::mem::transmute_copy(&deviceposition), core::mem::transmute_copy(&qpcposition)).into() } @@ -609,19 +456,13 @@ impl IAudioClock2_Vtbl { iid == &::IID } } -pub trait IAudioClockAdjustment_Impl: Sized { +pub trait IAudioClockAdjustment_Impl: Sized + windows_core::IUnknownImpl { fn SetSampleRate(&self, flsamplerate: f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioClockAdjustment {} impl IAudioClockAdjustment_Vtbl { - pub const fn new() -> IAudioClockAdjustment_Vtbl - where - Identity: IAudioClockAdjustment_Impl, - { - unsafe extern "system" fn SetSampleRate(this: *mut core::ffi::c_void, flsamplerate: f32) -> windows_core::HRESULT - where - Identity: IAudioClockAdjustment_Impl, - { + pub const fn new() -> IAudioClockAdjustment_Vtbl { + unsafe extern "system" fn SetSampleRate(this: *mut core::ffi::c_void, flsamplerate: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClockAdjustment_Impl::SetSampleRate(this, core::mem::transmute_copy(&flsamplerate)).into() } @@ -631,19 +472,13 @@ impl IAudioClockAdjustment_Vtbl { iid == &::IID } } -pub trait IAudioEffectsChangedNotificationClient_Impl: Sized { +pub trait IAudioEffectsChangedNotificationClient_Impl: Sized + windows_core::IUnknownImpl { fn OnAudioEffectsChanged(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioEffectsChangedNotificationClient {} impl IAudioEffectsChangedNotificationClient_Vtbl { - pub const fn new() -> IAudioEffectsChangedNotificationClient_Vtbl - where - Identity: IAudioEffectsChangedNotificationClient_Impl, - { - unsafe extern "system" fn OnAudioEffectsChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEffectsChangedNotificationClient_Impl, - { + pub const fn new() -> IAudioEffectsChangedNotificationClient_Vtbl { + unsafe extern "system" fn OnAudioEffectsChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEffectsChangedNotificationClient_Impl::OnAudioEffectsChanged(this).into() } @@ -653,7 +488,7 @@ impl IAudioEffectsChangedNotificationClient_Vtbl { iid == &::IID } } -pub trait IAudioEffectsManager_Impl: Sized { +pub trait IAudioEffectsManager_Impl: Sized + windows_core::IUnknownImpl { fn RegisterAudioEffectsChangedNotificationCallback(&self, client: Option<&IAudioEffectsChangedNotificationClient>) -> windows_core::Result<()>; fn UnregisterAudioEffectsChangedNotificationCallback(&self, client: Option<&IAudioEffectsChangedNotificationClient>) -> windows_core::Result<()>; fn GetAudioEffects(&self, effects: *mut *mut AUDIO_EFFECT, numeffects: *mut u32) -> windows_core::Result<()>; @@ -661,35 +496,20 @@ pub trait IAudioEffectsManager_Impl: Sized { } impl windows_core::RuntimeName for IAudioEffectsManager {} impl IAudioEffectsManager_Vtbl { - pub const fn new() -> IAudioEffectsManager_Vtbl - where - Identity: IAudioEffectsManager_Impl, - { - unsafe extern "system" fn RegisterAudioEffectsChangedNotificationCallback(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEffectsManager_Impl, - { + pub const fn new() -> IAudioEffectsManager_Vtbl { + unsafe extern "system" fn RegisterAudioEffectsChangedNotificationCallback(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEffectsManager_Impl::RegisterAudioEffectsChangedNotificationCallback(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn UnregisterAudioEffectsChangedNotificationCallback(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEffectsManager_Impl, - { + unsafe extern "system" fn UnregisterAudioEffectsChangedNotificationCallback(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEffectsManager_Impl::UnregisterAudioEffectsChangedNotificationCallback(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn GetAudioEffects(this: *mut core::ffi::c_void, effects: *mut *mut AUDIO_EFFECT, numeffects: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioEffectsManager_Impl, - { + unsafe extern "system" fn GetAudioEffects(this: *mut core::ffi::c_void, effects: *mut *mut AUDIO_EFFECT, numeffects: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEffectsManager_Impl::GetAudioEffects(this, core::mem::transmute_copy(&effects), core::mem::transmute_copy(&numeffects)).into() } - unsafe extern "system" fn SetAudioEffectState(this: *mut core::ffi::c_void, effectid: windows_core::GUID, state: AUDIO_EFFECT_STATE) -> windows_core::HRESULT - where - Identity: IAudioEffectsManager_Impl, - { + unsafe extern "system" fn SetAudioEffectState(this: *mut core::ffi::c_void, effectid: windows_core::GUID, state: AUDIO_EFFECT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEffectsManager_Impl::SetAudioEffectState(this, core::mem::transmute(&effectid), core::mem::transmute_copy(&state)).into() } @@ -705,20 +525,14 @@ impl IAudioEffectsManager_Vtbl { iid == &::IID } } -pub trait IAudioFormatEnumerator_Impl: Sized { +pub trait IAudioFormatEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetFormat(&self, index: u32) -> windows_core::Result<*mut WAVEFORMATEX>; } impl windows_core::RuntimeName for IAudioFormatEnumerator {} impl IAudioFormatEnumerator_Vtbl { - pub const fn new() -> IAudioFormatEnumerator_Vtbl - where - Identity: IAudioFormatEnumerator_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioFormatEnumerator_Impl, - { + pub const fn new() -> IAudioFormatEnumerator_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioFormatEnumerator_Impl::GetCount(this) { Ok(ok__) => { @@ -728,10 +542,7 @@ impl IAudioFormatEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, index: u32, format: *mut *mut WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IAudioFormatEnumerator_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, index: u32, format: *mut *mut WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioFormatEnumerator_Impl::GetFormat(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -747,20 +558,14 @@ impl IAudioFormatEnumerator_Vtbl { iid == &::IID } } -pub trait IAudioInputSelector_Impl: Sized { +pub trait IAudioInputSelector_Impl: Sized + windows_core::IUnknownImpl { fn GetSelection(&self) -> windows_core::Result; fn SetSelection(&self, nidselect: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioInputSelector {} impl IAudioInputSelector_Vtbl { - pub const fn new() -> IAudioInputSelector_Vtbl - where - Identity: IAudioInputSelector_Impl, - { - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, pnidselected: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioInputSelector_Impl, - { + pub const fn new() -> IAudioInputSelector_Vtbl { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, pnidselected: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioInputSelector_Impl::GetSelection(this) { Ok(ok__) => { @@ -770,10 +575,7 @@ impl IAudioInputSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, nidselect: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioInputSelector_Impl, - { + unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, nidselect: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioInputSelector_Impl::SetSelection(this, core::mem::transmute_copy(&nidselect), core::mem::transmute_copy(&pguideventcontext)).into() } @@ -787,20 +589,14 @@ impl IAudioInputSelector_Vtbl { iid == &::IID } } -pub trait IAudioLoudness_Impl: Sized { +pub trait IAudioLoudness_Impl: Sized + windows_core::IUnknownImpl { fn GetEnabled(&self) -> windows_core::Result; fn SetEnabled(&self, benable: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioLoudness {} impl IAudioLoudness_Vtbl { - pub const fn new() -> IAudioLoudness_Vtbl - where - Identity: IAudioLoudness_Impl, - { - unsafe extern "system" fn GetEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioLoudness_Impl, - { + pub const fn new() -> IAudioLoudness_Vtbl { + unsafe extern "system" fn GetEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioLoudness_Impl::GetEnabled(this) { Ok(ok__) => { @@ -810,10 +606,7 @@ impl IAudioLoudness_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioLoudness_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioLoudness_Impl::SetEnabled(this, core::mem::transmute_copy(&benable), core::mem::transmute_copy(&pguideventcontext)).into() } @@ -830,37 +623,25 @@ impl IAudioLoudness_Vtbl { pub trait IAudioMidrange_Impl: Sized + IPerChannelDbLevel_Impl {} impl windows_core::RuntimeName for IAudioMidrange {} impl IAudioMidrange_Vtbl { - pub const fn new() -> IAudioMidrange_Vtbl - where - Identity: IAudioMidrange_Impl, - { + pub const fn new() -> IAudioMidrange_Vtbl { Self { base__: IPerChannelDbLevel_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IAudioMute_Impl: Sized { +pub trait IAudioMute_Impl: Sized + windows_core::IUnknownImpl { fn SetMute(&self, bmuted: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn GetMute(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioMute {} impl IAudioMute_Vtbl { - pub const fn new() -> IAudioMute_Vtbl - where - Identity: IAudioMute_Impl, - { - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmuted: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioMute_Impl, - { + pub const fn new() -> IAudioMute_Vtbl { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmuted: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioMute_Impl::SetMute(this, core::mem::transmute_copy(&bmuted), core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmuted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioMute_Impl, - { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmuted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioMute_Impl::GetMute(this) { Ok(ok__) => { @@ -876,20 +657,14 @@ impl IAudioMute_Vtbl { iid == &::IID } } -pub trait IAudioOutputSelector_Impl: Sized { +pub trait IAudioOutputSelector_Impl: Sized + windows_core::IUnknownImpl { fn GetSelection(&self) -> windows_core::Result; fn SetSelection(&self, nidselect: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioOutputSelector {} impl IAudioOutputSelector_Vtbl { - pub const fn new() -> IAudioOutputSelector_Vtbl - where - Identity: IAudioOutputSelector_Impl, - { - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, pnidselected: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioOutputSelector_Impl, - { + pub const fn new() -> IAudioOutputSelector_Vtbl { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, pnidselected: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioOutputSelector_Impl::GetSelection(this) { Ok(ok__) => { @@ -899,10 +674,7 @@ impl IAudioOutputSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, nidselect: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioOutputSelector_Impl, - { + unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, nidselect: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioOutputSelector_Impl::SetSelection(this, core::mem::transmute_copy(&nidselect), core::mem::transmute_copy(&pguideventcontext)).into() } @@ -916,20 +688,14 @@ impl IAudioOutputSelector_Vtbl { iid == &::IID } } -pub trait IAudioPeakMeter_Impl: Sized { +pub trait IAudioPeakMeter_Impl: Sized + windows_core::IUnknownImpl { fn GetChannelCount(&self) -> windows_core::Result; fn GetLevel(&self, nchannel: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioPeakMeter {} impl IAudioPeakMeter_Vtbl { - pub const fn new() -> IAudioPeakMeter_Vtbl - where - Identity: IAudioPeakMeter_Impl, - { - unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pcchannels: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioPeakMeter_Impl, - { + pub const fn new() -> IAudioPeakMeter_Vtbl { + unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pcchannels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioPeakMeter_Impl::GetChannelCount(this) { Ok(ok__) => { @@ -939,10 +705,7 @@ impl IAudioPeakMeter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLevel(this: *mut core::ffi::c_void, nchannel: u32, pflevel: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioPeakMeter_Impl, - { + unsafe extern "system" fn GetLevel(this: *mut core::ffi::c_void, nchannel: u32, pflevel: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioPeakMeter_Impl::GetLevel(this, core::mem::transmute_copy(&nchannel)) { Ok(ok__) => { @@ -962,20 +725,14 @@ impl IAudioPeakMeter_Vtbl { iid == &::IID } } -pub trait IAudioRenderClient_Impl: Sized { +pub trait IAudioRenderClient_Impl: Sized + windows_core::IUnknownImpl { fn GetBuffer(&self, numframesrequested: u32) -> windows_core::Result<*mut u8>; fn ReleaseBuffer(&self, numframeswritten: u32, dwflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioRenderClient {} impl IAudioRenderClient_Vtbl { - pub const fn new() -> IAudioRenderClient_Vtbl - where - Identity: IAudioRenderClient_Impl, - { - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, numframesrequested: u32, ppdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IAudioRenderClient_Impl, - { + pub const fn new() -> IAudioRenderClient_Vtbl { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, numframesrequested: u32, ppdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioRenderClient_Impl::GetBuffer(this, core::mem::transmute_copy(&numframesrequested)) { Ok(ok__) => { @@ -985,10 +742,7 @@ impl IAudioRenderClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseBuffer(this: *mut core::ffi::c_void, numframeswritten: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IAudioRenderClient_Impl, - { + unsafe extern "system" fn ReleaseBuffer(this: *mut core::ffi::c_void, numframeswritten: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioRenderClient_Impl::ReleaseBuffer(this, core::mem::transmute_copy(&numframeswritten), core::mem::transmute_copy(&dwflags)).into() } @@ -1002,7 +756,7 @@ impl IAudioRenderClient_Vtbl { iid == &::IID } } -pub trait IAudioSessionControl_Impl: Sized { +pub trait IAudioSessionControl_Impl: Sized + windows_core::IUnknownImpl { fn GetState(&self) -> windows_core::Result; fn GetDisplayName(&self) -> windows_core::Result; fn SetDisplayName(&self, value: &windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; @@ -1015,14 +769,8 @@ pub trait IAudioSessionControl_Impl: Sized { } impl windows_core::RuntimeName for IAudioSessionControl {} impl IAudioSessionControl_Vtbl { - pub const fn new() -> IAudioSessionControl_Vtbl - where - Identity: IAudioSessionControl_Impl, - { - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pretval: *mut AudioSessionState) -> windows_core::HRESULT - where - Identity: IAudioSessionControl_Impl, - { + pub const fn new() -> IAudioSessionControl_Vtbl { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pretval: *mut AudioSessionState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionControl_Impl::GetState(this) { Ok(ok__) => { @@ -1032,10 +780,7 @@ impl IAudioSessionControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pretval: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAudioSessionControl_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pretval: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionControl_Impl::GetDisplayName(this) { Ok(ok__) => { @@ -1045,17 +790,11 @@ impl IAudioSessionControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, value: windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioSessionControl_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, value: windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionControl_Impl::SetDisplayName(this, core::mem::transmute(&value), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn GetIconPath(this: *mut core::ffi::c_void, pretval: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAudioSessionControl_Impl, - { + unsafe extern "system" fn GetIconPath(this: *mut core::ffi::c_void, pretval: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionControl_Impl::GetIconPath(this) { Ok(ok__) => { @@ -1065,17 +804,11 @@ impl IAudioSessionControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIconPath(this: *mut core::ffi::c_void, value: windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioSessionControl_Impl, - { + unsafe extern "system" fn SetIconPath(this: *mut core::ffi::c_void, value: windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionControl_Impl::SetIconPath(this, core::mem::transmute(&value), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn GetGroupingParam(this: *mut core::ffi::c_void, pretval: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioSessionControl_Impl, - { + unsafe extern "system" fn GetGroupingParam(this: *mut core::ffi::c_void, pretval: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionControl_Impl::GetGroupingParam(this) { Ok(ok__) => { @@ -1085,24 +818,15 @@ impl IAudioSessionControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGroupingParam(this: *mut core::ffi::c_void, r#override: *const windows_core::GUID, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioSessionControl_Impl, - { + unsafe extern "system" fn SetGroupingParam(this: *mut core::ffi::c_void, r#override: *const windows_core::GUID, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionControl_Impl::SetGroupingParam(this, core::mem::transmute_copy(&r#override), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn RegisterAudioSessionNotification(this: *mut core::ffi::c_void, newnotifications: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionControl_Impl, - { + unsafe extern "system" fn RegisterAudioSessionNotification(this: *mut core::ffi::c_void, newnotifications: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionControl_Impl::RegisterAudioSessionNotification(this, windows_core::from_raw_borrowed(&newnotifications)).into() } - unsafe extern "system" fn UnregisterAudioSessionNotification(this: *mut core::ffi::c_void, newnotifications: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionControl_Impl, - { + unsafe extern "system" fn UnregisterAudioSessionNotification(this: *mut core::ffi::c_void, newnotifications: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionControl_Impl::UnregisterAudioSessionNotification(this, windows_core::from_raw_borrowed(&newnotifications)).into() } @@ -1132,14 +856,8 @@ pub trait IAudioSessionControl2_Impl: Sized + IAudioSessionControl_Impl { } impl windows_core::RuntimeName for IAudioSessionControl2 {} impl IAudioSessionControl2_Vtbl { - pub const fn new() -> IAudioSessionControl2_Vtbl - where - Identity: IAudioSessionControl2_Impl, - { - unsafe extern "system" fn GetSessionIdentifier(this: *mut core::ffi::c_void, pretval: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAudioSessionControl2_Impl, - { + pub const fn new() -> IAudioSessionControl2_Vtbl { + unsafe extern "system" fn GetSessionIdentifier(this: *mut core::ffi::c_void, pretval: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionControl2_Impl::GetSessionIdentifier(this) { Ok(ok__) => { @@ -1149,10 +867,7 @@ impl IAudioSessionControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSessionInstanceIdentifier(this: *mut core::ffi::c_void, pretval: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAudioSessionControl2_Impl, - { + unsafe extern "system" fn GetSessionInstanceIdentifier(this: *mut core::ffi::c_void, pretval: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionControl2_Impl::GetSessionInstanceIdentifier(this) { Ok(ok__) => { @@ -1162,10 +877,7 @@ impl IAudioSessionControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessId(this: *mut core::ffi::c_void, pretval: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioSessionControl2_Impl, - { + unsafe extern "system" fn GetProcessId(this: *mut core::ffi::c_void, pretval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionControl2_Impl::GetProcessId(this) { Ok(ok__) => { @@ -1175,17 +887,11 @@ impl IAudioSessionControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSystemSoundsSession(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionControl2_Impl, - { + unsafe extern "system" fn IsSystemSoundsSession(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionControl2_Impl::IsSystemSoundsSession(this) } - unsafe extern "system" fn SetDuckingPreference(this: *mut core::ffi::c_void, optout: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioSessionControl2_Impl, - { + unsafe extern "system" fn SetDuckingPreference(this: *mut core::ffi::c_void, optout: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionControl2_Impl::SetDuckingPreference(this, core::mem::transmute_copy(&optout)).into() } @@ -1202,20 +908,14 @@ impl IAudioSessionControl2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAudioSessionEnumerator_Impl: Sized { +pub trait IAudioSessionEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetSession(&self, sessioncount: i32) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioSessionEnumerator {} impl IAudioSessionEnumerator_Vtbl { - pub const fn new() -> IAudioSessionEnumerator_Vtbl - where - Identity: IAudioSessionEnumerator_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, sessioncount: *mut i32) -> windows_core::HRESULT - where - Identity: IAudioSessionEnumerator_Impl, - { + pub const fn new() -> IAudioSessionEnumerator_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, sessioncount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionEnumerator_Impl::GetCount(this) { Ok(ok__) => { @@ -1225,10 +925,7 @@ impl IAudioSessionEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSession(this: *mut core::ffi::c_void, sessioncount: i32, session: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionEnumerator_Impl, - { + unsafe extern "system" fn GetSession(this: *mut core::ffi::c_void, sessioncount: i32, session: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionEnumerator_Impl::GetSession(this, core::mem::transmute_copy(&sessioncount)) { Ok(ok__) => { @@ -1248,7 +945,7 @@ impl IAudioSessionEnumerator_Vtbl { iid == &::IID } } -pub trait IAudioSessionEvents_Impl: Sized { +pub trait IAudioSessionEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnDisplayNameChanged(&self, newdisplayname: &windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn OnIconPathChanged(&self, newiconpath: &windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn OnSimpleVolumeChanged(&self, newvolume: f32, newmute: super::super::Foundation::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; @@ -1259,56 +956,32 @@ pub trait IAudioSessionEvents_Impl: Sized { } impl windows_core::RuntimeName for IAudioSessionEvents {} impl IAudioSessionEvents_Vtbl { - pub const fn new() -> IAudioSessionEvents_Vtbl - where - Identity: IAudioSessionEvents_Impl, - { - unsafe extern "system" fn OnDisplayNameChanged(this: *mut core::ffi::c_void, newdisplayname: windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioSessionEvents_Impl, - { + pub const fn new() -> IAudioSessionEvents_Vtbl { + unsafe extern "system" fn OnDisplayNameChanged(this: *mut core::ffi::c_void, newdisplayname: windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionEvents_Impl::OnDisplayNameChanged(this, core::mem::transmute(&newdisplayname), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn OnIconPathChanged(this: *mut core::ffi::c_void, newiconpath: windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioSessionEvents_Impl, - { + unsafe extern "system" fn OnIconPathChanged(this: *mut core::ffi::c_void, newiconpath: windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionEvents_Impl::OnIconPathChanged(this, core::mem::transmute(&newiconpath), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn OnSimpleVolumeChanged(this: *mut core::ffi::c_void, newvolume: f32, newmute: super::super::Foundation::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioSessionEvents_Impl, - { + unsafe extern "system" fn OnSimpleVolumeChanged(this: *mut core::ffi::c_void, newvolume: f32, newmute: super::super::Foundation::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionEvents_Impl::OnSimpleVolumeChanged(this, core::mem::transmute_copy(&newvolume), core::mem::transmute_copy(&newmute), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn OnChannelVolumeChanged(this: *mut core::ffi::c_void, channelcount: u32, newchannelvolumearray: *const f32, changedchannel: u32, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioSessionEvents_Impl, - { + unsafe extern "system" fn OnChannelVolumeChanged(this: *mut core::ffi::c_void, channelcount: u32, newchannelvolumearray: *const f32, changedchannel: u32, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionEvents_Impl::OnChannelVolumeChanged(this, core::mem::transmute_copy(&channelcount), core::mem::transmute_copy(&newchannelvolumearray), core::mem::transmute_copy(&changedchannel), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn OnGroupingParamChanged(this: *mut core::ffi::c_void, newgroupingparam: *const windows_core::GUID, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioSessionEvents_Impl, - { + unsafe extern "system" fn OnGroupingParamChanged(this: *mut core::ffi::c_void, newgroupingparam: *const windows_core::GUID, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionEvents_Impl::OnGroupingParamChanged(this, core::mem::transmute_copy(&newgroupingparam), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn OnStateChanged(this: *mut core::ffi::c_void, newstate: AudioSessionState) -> windows_core::HRESULT - where - Identity: IAudioSessionEvents_Impl, - { + unsafe extern "system" fn OnStateChanged(this: *mut core::ffi::c_void, newstate: AudioSessionState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionEvents_Impl::OnStateChanged(this, core::mem::transmute_copy(&newstate)).into() } - unsafe extern "system" fn OnSessionDisconnected(this: *mut core::ffi::c_void, disconnectreason: AudioSessionDisconnectReason) -> windows_core::HRESULT - where - Identity: IAudioSessionEvents_Impl, - { + unsafe extern "system" fn OnSessionDisconnected(this: *mut core::ffi::c_void, disconnectreason: AudioSessionDisconnectReason) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionEvents_Impl::OnSessionDisconnected(this, core::mem::transmute_copy(&disconnectreason)).into() } @@ -1327,20 +1000,14 @@ impl IAudioSessionEvents_Vtbl { iid == &::IID } } -pub trait IAudioSessionManager_Impl: Sized { +pub trait IAudioSessionManager_Impl: Sized + windows_core::IUnknownImpl { fn GetAudioSessionControl(&self, audiosessionguid: *const windows_core::GUID, streamflags: u32) -> windows_core::Result; fn GetSimpleAudioVolume(&self, audiosessionguid: *const windows_core::GUID, streamflags: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IAudioSessionManager {} impl IAudioSessionManager_Vtbl { - pub const fn new() -> IAudioSessionManager_Vtbl - where - Identity: IAudioSessionManager_Impl, - { - unsafe extern "system" fn GetAudioSessionControl(this: *mut core::ffi::c_void, audiosessionguid: *const windows_core::GUID, streamflags: u32, sessioncontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionManager_Impl, - { + pub const fn new() -> IAudioSessionManager_Vtbl { + unsafe extern "system" fn GetAudioSessionControl(this: *mut core::ffi::c_void, audiosessionguid: *const windows_core::GUID, streamflags: u32, sessioncontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionManager_Impl::GetAudioSessionControl(this, core::mem::transmute_copy(&audiosessionguid), core::mem::transmute_copy(&streamflags)) { Ok(ok__) => { @@ -1350,10 +1017,7 @@ impl IAudioSessionManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSimpleAudioVolume(this: *mut core::ffi::c_void, audiosessionguid: *const windows_core::GUID, streamflags: u32, audiovolume: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionManager_Impl, - { + unsafe extern "system" fn GetSimpleAudioVolume(this: *mut core::ffi::c_void, audiosessionguid: *const windows_core::GUID, streamflags: u32, audiovolume: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionManager_Impl::GetSimpleAudioVolume(this, core::mem::transmute_copy(&audiosessionguid), core::mem::transmute_copy(&streamflags)) { Ok(ok__) => { @@ -1382,14 +1046,8 @@ pub trait IAudioSessionManager2_Impl: Sized + IAudioSessionManager_Impl { } impl windows_core::RuntimeName for IAudioSessionManager2 {} impl IAudioSessionManager2_Vtbl { - pub const fn new() -> IAudioSessionManager2_Vtbl - where - Identity: IAudioSessionManager2_Impl, - { - unsafe extern "system" fn GetSessionEnumerator(this: *mut core::ffi::c_void, sessionenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionManager2_Impl, - { + pub const fn new() -> IAudioSessionManager2_Vtbl { + unsafe extern "system" fn GetSessionEnumerator(this: *mut core::ffi::c_void, sessionenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionManager2_Impl::GetSessionEnumerator(this) { Ok(ok__) => { @@ -1399,31 +1057,19 @@ impl IAudioSessionManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterSessionNotification(this: *mut core::ffi::c_void, sessionnotification: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionManager2_Impl, - { + unsafe extern "system" fn RegisterSessionNotification(this: *mut core::ffi::c_void, sessionnotification: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionManager2_Impl::RegisterSessionNotification(this, windows_core::from_raw_borrowed(&sessionnotification)).into() } - unsafe extern "system" fn UnregisterSessionNotification(this: *mut core::ffi::c_void, sessionnotification: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionManager2_Impl, - { + unsafe extern "system" fn UnregisterSessionNotification(this: *mut core::ffi::c_void, sessionnotification: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionManager2_Impl::UnregisterSessionNotification(this, windows_core::from_raw_borrowed(&sessionnotification)).into() } - unsafe extern "system" fn RegisterDuckNotification(this: *mut core::ffi::c_void, sessionid: windows_core::PCWSTR, ducknotification: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionManager2_Impl, - { + unsafe extern "system" fn RegisterDuckNotification(this: *mut core::ffi::c_void, sessionid: windows_core::PCWSTR, ducknotification: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionManager2_Impl::RegisterDuckNotification(this, core::mem::transmute(&sessionid), windows_core::from_raw_borrowed(&ducknotification)).into() } - unsafe extern "system" fn UnregisterDuckNotification(this: *mut core::ffi::c_void, ducknotification: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionManager2_Impl, - { + unsafe extern "system" fn UnregisterDuckNotification(this: *mut core::ffi::c_void, ducknotification: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionManager2_Impl::UnregisterDuckNotification(this, windows_core::from_raw_borrowed(&ducknotification)).into() } @@ -1440,19 +1086,13 @@ impl IAudioSessionManager2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAudioSessionNotification_Impl: Sized { +pub trait IAudioSessionNotification_Impl: Sized + windows_core::IUnknownImpl { fn OnSessionCreated(&self, newsession: Option<&IAudioSessionControl>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioSessionNotification {} impl IAudioSessionNotification_Vtbl { - pub const fn new() -> IAudioSessionNotification_Vtbl - where - Identity: IAudioSessionNotification_Impl, - { - unsafe extern "system" fn OnSessionCreated(this: *mut core::ffi::c_void, newsession: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSessionNotification_Impl, - { + pub const fn new() -> IAudioSessionNotification_Vtbl { + unsafe extern "system" fn OnSessionCreated(this: *mut core::ffi::c_void, newsession: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionNotification_Impl::OnSessionCreated(this, windows_core::from_raw_borrowed(&newsession)).into() } @@ -1462,21 +1102,15 @@ impl IAudioSessionNotification_Vtbl { iid == &::IID } } -pub trait IAudioStateMonitor_Impl: Sized { +pub trait IAudioStateMonitor_Impl: Sized + windows_core::IUnknownImpl { fn RegisterCallback(&self, callback: PAudioStateMonitorCallback, context: *const core::ffi::c_void) -> windows_core::Result; fn UnregisterCallback(&self, registration: i64); fn GetSoundLevel(&self) -> AudioStateMonitorSoundLevel; } impl windows_core::RuntimeName for IAudioStateMonitor {} impl IAudioStateMonitor_Vtbl { - pub const fn new() -> IAudioStateMonitor_Vtbl - where - Identity: IAudioStateMonitor_Impl, - { - unsafe extern "system" fn RegisterCallback(this: *mut core::ffi::c_void, callback: PAudioStateMonitorCallback, context: *const core::ffi::c_void, registration: *mut i64) -> windows_core::HRESULT - where - Identity: IAudioStateMonitor_Impl, - { + pub const fn new() -> IAudioStateMonitor_Vtbl { + unsafe extern "system" fn RegisterCallback(this: *mut core::ffi::c_void, callback: PAudioStateMonitorCallback, context: *const core::ffi::c_void, registration: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioStateMonitor_Impl::RegisterCallback(this, core::mem::transmute_copy(&callback), core::mem::transmute_copy(&context)) { Ok(ok__) => { @@ -1486,17 +1120,11 @@ impl IAudioStateMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterCallback(this: *mut core::ffi::c_void, registration: i64) - where - Identity: IAudioStateMonitor_Impl, - { + unsafe extern "system" fn UnregisterCallback(this: *mut core::ffi::c_void, registration: i64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioStateMonitor_Impl::UnregisterCallback(this, core::mem::transmute_copy(®istration)) } - unsafe extern "system" fn GetSoundLevel(this: *mut core::ffi::c_void) -> AudioStateMonitorSoundLevel - where - Identity: IAudioStateMonitor_Impl, - { + unsafe extern "system" fn GetSoundLevel(this: *mut core::ffi::c_void) -> AudioStateMonitorSoundLevel { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioStateMonitor_Impl::GetSoundLevel(this) } @@ -1511,7 +1139,7 @@ impl IAudioStateMonitor_Vtbl { iid == &::IID } } -pub trait IAudioStreamVolume_Impl: Sized { +pub trait IAudioStreamVolume_Impl: Sized + windows_core::IUnknownImpl { fn GetChannelCount(&self) -> windows_core::Result; fn SetChannelVolume(&self, dwindex: u32, flevel: f32) -> windows_core::Result<()>; fn GetChannelVolume(&self, dwindex: u32) -> windows_core::Result; @@ -1520,14 +1148,8 @@ pub trait IAudioStreamVolume_Impl: Sized { } impl windows_core::RuntimeName for IAudioStreamVolume {} impl IAudioStreamVolume_Vtbl { - pub const fn new() -> IAudioStreamVolume_Vtbl - where - Identity: IAudioStreamVolume_Impl, - { - unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioStreamVolume_Impl, - { + pub const fn new() -> IAudioStreamVolume_Vtbl { + unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioStreamVolume_Impl::GetChannelCount(this) { Ok(ok__) => { @@ -1537,17 +1159,11 @@ impl IAudioStreamVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, flevel: f32) -> windows_core::HRESULT - where - Identity: IAudioStreamVolume_Impl, - { + unsafe extern "system" fn SetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, flevel: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioStreamVolume_Impl::SetChannelVolume(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&flevel)).into() } - unsafe extern "system" fn GetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, pflevel: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioStreamVolume_Impl, - { + unsafe extern "system" fn GetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, pflevel: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioStreamVolume_Impl::GetChannelVolume(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -1557,17 +1173,11 @@ impl IAudioStreamVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *const f32) -> windows_core::HRESULT - where - Identity: IAudioStreamVolume_Impl, - { + unsafe extern "system" fn SetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *const f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioStreamVolume_Impl::SetAllVolumes(this, core::mem::transmute_copy(&dwcount), core::mem::transmute_copy(&pfvolumes)).into() } - unsafe extern "system" fn GetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioStreamVolume_Impl, - { + unsafe extern "system" fn GetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioStreamVolume_Impl::GetAllVolumes(this, core::mem::transmute_copy(&dwcount), core::mem::transmute_copy(&pfvolumes)).into() } @@ -1585,21 +1195,15 @@ impl IAudioStreamVolume_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IAudioSystemEffectsPropertyChangeNotificationClient_Impl: Sized { +pub trait IAudioSystemEffectsPropertyChangeNotificationClient_Impl: Sized + windows_core::IUnknownImpl { fn OnPropertyChanged(&self, r#type: AUDIO_SYSTEMEFFECTS_PROPERTYSTORE_TYPE, key: &super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl windows_core::RuntimeName for IAudioSystemEffectsPropertyChangeNotificationClient {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IAudioSystemEffectsPropertyChangeNotificationClient_Vtbl { - pub const fn new() -> IAudioSystemEffectsPropertyChangeNotificationClient_Vtbl - where - Identity: IAudioSystemEffectsPropertyChangeNotificationClient_Impl, - { - unsafe extern "system" fn OnPropertyChanged(this: *mut core::ffi::c_void, r#type: AUDIO_SYSTEMEFFECTS_PROPERTYSTORE_TYPE, key: super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsPropertyChangeNotificationClient_Impl, - { + pub const fn new() -> IAudioSystemEffectsPropertyChangeNotificationClient_Vtbl { + unsafe extern "system" fn OnPropertyChanged(this: *mut core::ffi::c_void, r#type: AUDIO_SYSTEMEFFECTS_PROPERTYSTORE_TYPE, key: super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSystemEffectsPropertyChangeNotificationClient_Impl::OnPropertyChanged(this, core::mem::transmute_copy(&r#type), core::mem::transmute(&key)).into() } @@ -1610,7 +1214,7 @@ impl IAudioSystemEffectsPropertyChangeNotificationClient_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IAudioSystemEffectsPropertyStore_Impl: Sized { +pub trait IAudioSystemEffectsPropertyStore_Impl: Sized + windows_core::IUnknownImpl { fn OpenDefaultPropertyStore(&self, stgmaccess: u32) -> windows_core::Result; fn OpenUserPropertyStore(&self, stgmaccess: u32) -> windows_core::Result; fn OpenVolatilePropertyStore(&self, stgmaccess: u32) -> windows_core::Result; @@ -1623,14 +1227,8 @@ pub trait IAudioSystemEffectsPropertyStore_Impl: Sized { impl windows_core::RuntimeName for IAudioSystemEffectsPropertyStore {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IAudioSystemEffectsPropertyStore_Vtbl { - pub const fn new() -> IAudioSystemEffectsPropertyStore_Vtbl - where - Identity: IAudioSystemEffectsPropertyStore_Impl, - { - unsafe extern "system" fn OpenDefaultPropertyStore(this: *mut core::ffi::c_void, stgmaccess: u32, propstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsPropertyStore_Impl, - { + pub const fn new() -> IAudioSystemEffectsPropertyStore_Vtbl { + unsafe extern "system" fn OpenDefaultPropertyStore(this: *mut core::ffi::c_void, stgmaccess: u32, propstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSystemEffectsPropertyStore_Impl::OpenDefaultPropertyStore(this, core::mem::transmute_copy(&stgmaccess)) { Ok(ok__) => { @@ -1640,10 +1238,7 @@ impl IAudioSystemEffectsPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenUserPropertyStore(this: *mut core::ffi::c_void, stgmaccess: u32, propstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsPropertyStore_Impl, - { + unsafe extern "system" fn OpenUserPropertyStore(this: *mut core::ffi::c_void, stgmaccess: u32, propstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSystemEffectsPropertyStore_Impl::OpenUserPropertyStore(this, core::mem::transmute_copy(&stgmaccess)) { Ok(ok__) => { @@ -1653,10 +1248,7 @@ impl IAudioSystemEffectsPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenVolatilePropertyStore(this: *mut core::ffi::c_void, stgmaccess: u32, propstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsPropertyStore_Impl, - { + unsafe extern "system" fn OpenVolatilePropertyStore(this: *mut core::ffi::c_void, stgmaccess: u32, propstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSystemEffectsPropertyStore_Impl::OpenVolatilePropertyStore(this, core::mem::transmute_copy(&stgmaccess)) { Ok(ok__) => { @@ -1666,31 +1258,19 @@ impl IAudioSystemEffectsPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResetUserPropertyStore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsPropertyStore_Impl, - { + unsafe extern "system" fn ResetUserPropertyStore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSystemEffectsPropertyStore_Impl::ResetUserPropertyStore(this).into() } - unsafe extern "system" fn ResetVolatilePropertyStore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsPropertyStore_Impl, - { + unsafe extern "system" fn ResetVolatilePropertyStore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSystemEffectsPropertyStore_Impl::ResetVolatilePropertyStore(this).into() } - unsafe extern "system" fn RegisterPropertyChangeNotification(this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsPropertyStore_Impl, - { + unsafe extern "system" fn RegisterPropertyChangeNotification(this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSystemEffectsPropertyStore_Impl::RegisterPropertyChangeNotification(this, windows_core::from_raw_borrowed(&callback)).into() } - unsafe extern "system" fn UnregisterPropertyChangeNotification(this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioSystemEffectsPropertyStore_Impl, - { + unsafe extern "system" fn UnregisterPropertyChangeNotification(this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSystemEffectsPropertyStore_Impl::UnregisterPropertyChangeNotification(this, windows_core::from_raw_borrowed(&callback)).into() } @@ -1712,29 +1292,20 @@ impl IAudioSystemEffectsPropertyStore_Vtbl { pub trait IAudioTreble_Impl: Sized + IPerChannelDbLevel_Impl {} impl windows_core::RuntimeName for IAudioTreble {} impl IAudioTreble_Vtbl { - pub const fn new() -> IAudioTreble_Vtbl - where - Identity: IAudioTreble_Impl, - { + pub const fn new() -> IAudioTreble_Vtbl { Self { base__: IPerChannelDbLevel_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IAudioViewManagerService_Impl: Sized { +pub trait IAudioViewManagerService_Impl: Sized + windows_core::IUnknownImpl { fn SetAudioStreamWindow(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioViewManagerService {} impl IAudioViewManagerService_Vtbl { - pub const fn new() -> IAudioViewManagerService_Vtbl - where - Identity: IAudioViewManagerService_Impl, - { - unsafe extern "system" fn SetAudioStreamWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IAudioViewManagerService_Impl, - { + pub const fn new() -> IAudioViewManagerService_Vtbl { + unsafe extern "system" fn SetAudioStreamWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioViewManagerService_Impl::SetAudioStreamWindow(this, core::mem::transmute_copy(&hwnd)).into() } @@ -1744,27 +1315,18 @@ impl IAudioViewManagerService_Vtbl { iid == &::IID } } -pub trait IAudioVolumeDuckNotification_Impl: Sized { +pub trait IAudioVolumeDuckNotification_Impl: Sized + windows_core::IUnknownImpl { fn OnVolumeDuckNotification(&self, sessionid: &windows_core::PCWSTR, countcommunicationsessions: u32) -> windows_core::Result<()>; fn OnVolumeUnduckNotification(&self, sessionid: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioVolumeDuckNotification {} impl IAudioVolumeDuckNotification_Vtbl { - pub const fn new() -> IAudioVolumeDuckNotification_Vtbl - where - Identity: IAudioVolumeDuckNotification_Impl, - { - unsafe extern "system" fn OnVolumeDuckNotification(this: *mut core::ffi::c_void, sessionid: windows_core::PCWSTR, countcommunicationsessions: u32) -> windows_core::HRESULT - where - Identity: IAudioVolumeDuckNotification_Impl, - { + pub const fn new() -> IAudioVolumeDuckNotification_Vtbl { + unsafe extern "system" fn OnVolumeDuckNotification(this: *mut core::ffi::c_void, sessionid: windows_core::PCWSTR, countcommunicationsessions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioVolumeDuckNotification_Impl::OnVolumeDuckNotification(this, core::mem::transmute(&sessionid), core::mem::transmute_copy(&countcommunicationsessions)).into() } - unsafe extern "system" fn OnVolumeUnduckNotification(this: *mut core::ffi::c_void, sessionid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAudioVolumeDuckNotification_Impl, - { + unsafe extern "system" fn OnVolumeUnduckNotification(this: *mut core::ffi::c_void, sessionid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioVolumeDuckNotification_Impl::OnVolumeUnduckNotification(this, core::mem::transmute(&sessionid)).into() } @@ -1781,17 +1343,14 @@ impl IAudioVolumeDuckNotification_Vtbl { pub trait IAudioVolumeLevel_Impl: Sized + IPerChannelDbLevel_Impl {} impl windows_core::RuntimeName for IAudioVolumeLevel {} impl IAudioVolumeLevel_Vtbl { - pub const fn new() -> IAudioVolumeLevel_Vtbl - where - Identity: IAudioVolumeLevel_Impl, - { + pub const fn new() -> IAudioVolumeLevel_Vtbl { Self { base__: IPerChannelDbLevel_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IChannelAudioVolume_Impl: Sized { +pub trait IChannelAudioVolume_Impl: Sized + windows_core::IUnknownImpl { fn GetChannelCount(&self) -> windows_core::Result; fn SetChannelVolume(&self, dwindex: u32, flevel: f32, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn GetChannelVolume(&self, dwindex: u32) -> windows_core::Result; @@ -1800,14 +1359,8 @@ pub trait IChannelAudioVolume_Impl: Sized { } impl windows_core::RuntimeName for IChannelAudioVolume {} impl IChannelAudioVolume_Vtbl { - pub const fn new() -> IChannelAudioVolume_Vtbl - where - Identity: IChannelAudioVolume_Impl, - { - unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IChannelAudioVolume_Impl, - { + pub const fn new() -> IChannelAudioVolume_Vtbl { + unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IChannelAudioVolume_Impl::GetChannelCount(this) { Ok(ok__) => { @@ -1817,17 +1370,11 @@ impl IChannelAudioVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, flevel: f32, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IChannelAudioVolume_Impl, - { + unsafe extern "system" fn SetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, flevel: f32, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelAudioVolume_Impl::SetChannelVolume(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&flevel), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn GetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, pflevel: *mut f32) -> windows_core::HRESULT - where - Identity: IChannelAudioVolume_Impl, - { + unsafe extern "system" fn GetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, pflevel: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IChannelAudioVolume_Impl::GetChannelVolume(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -1837,17 +1384,11 @@ impl IChannelAudioVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *const f32, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IChannelAudioVolume_Impl, - { + unsafe extern "system" fn SetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *const f32, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelAudioVolume_Impl::SetAllVolumes(this, core::mem::transmute_copy(&dwcount), core::mem::transmute_copy(&pfvolumes), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn GetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *mut f32) -> windows_core::HRESULT - where - Identity: IChannelAudioVolume_Impl, - { + unsafe extern "system" fn GetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelAudioVolume_Impl::GetAllVolumes(this, core::mem::transmute_copy(&dwcount), core::mem::transmute_copy(&pfvolumes)).into() } @@ -1864,7 +1405,7 @@ impl IChannelAudioVolume_Vtbl { iid == &::IID } } -pub trait IConnector_Impl: Sized { +pub trait IConnector_Impl: Sized + windows_core::IUnknownImpl { fn GetType(&self) -> windows_core::Result; fn GetDataFlow(&self) -> windows_core::Result; fn ConnectTo(&self, pconnectto: Option<&IConnector>) -> windows_core::Result<()>; @@ -1876,14 +1417,8 @@ pub trait IConnector_Impl: Sized { } impl windows_core::RuntimeName for IConnector {} impl IConnector_Vtbl { - pub const fn new() -> IConnector_Vtbl - where - Identity: IConnector_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut ConnectorType) -> windows_core::HRESULT - where - Identity: IConnector_Impl, - { + pub const fn new() -> IConnector_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut ConnectorType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnector_Impl::GetType(this) { Ok(ok__) => { @@ -1893,10 +1428,7 @@ impl IConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataFlow(this: *mut core::ffi::c_void, pflow: *mut DataFlow) -> windows_core::HRESULT - where - Identity: IConnector_Impl, - { + unsafe extern "system" fn GetDataFlow(this: *mut core::ffi::c_void, pflow: *mut DataFlow) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnector_Impl::GetDataFlow(this) { Ok(ok__) => { @@ -1906,24 +1438,15 @@ impl IConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectTo(this: *mut core::ffi::c_void, pconnectto: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConnector_Impl, - { + unsafe extern "system" fn ConnectTo(this: *mut core::ffi::c_void, pconnectto: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConnector_Impl::ConnectTo(this, windows_core::from_raw_borrowed(&pconnectto)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConnector_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConnector_Impl::Disconnect(this).into() } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pbconnected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IConnector_Impl, - { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pbconnected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnector_Impl::IsConnected(this) { Ok(ok__) => { @@ -1933,10 +1456,7 @@ impl IConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectedTo(this: *mut core::ffi::c_void, ppconto: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConnector_Impl, - { + unsafe extern "system" fn GetConnectedTo(this: *mut core::ffi::c_void, ppconto: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnector_Impl::GetConnectedTo(this) { Ok(ok__) => { @@ -1946,10 +1466,7 @@ impl IConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectorIdConnectedTo(this: *mut core::ffi::c_void, ppwstrconnectorid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IConnector_Impl, - { + unsafe extern "system" fn GetConnectorIdConnectedTo(this: *mut core::ffi::c_void, ppwstrconnectorid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnector_Impl::GetConnectorIdConnectedTo(this) { Ok(ok__) => { @@ -1959,10 +1476,7 @@ impl IConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceIdConnectedTo(this: *mut core::ffi::c_void, ppwstrdeviceid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IConnector_Impl, - { + unsafe extern "system" fn GetDeviceIdConnectedTo(this: *mut core::ffi::c_void, ppwstrdeviceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnector_Impl::GetDeviceIdConnectedTo(this) { Ok(ok__) => { @@ -1988,19 +1502,13 @@ impl IConnector_Vtbl { iid == &::IID } } -pub trait IControlChangeNotify_Impl: Sized { +pub trait IControlChangeNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnNotify(&self, dwsenderprocessid: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IControlChangeNotify {} impl IControlChangeNotify_Vtbl { - pub const fn new() -> IControlChangeNotify_Vtbl - where - Identity: IControlChangeNotify_Impl, - { - unsafe extern "system" fn OnNotify(this: *mut core::ffi::c_void, dwsenderprocessid: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IControlChangeNotify_Impl, - { + pub const fn new() -> IControlChangeNotify_Vtbl { + unsafe extern "system" fn OnNotify(this: *mut core::ffi::c_void, dwsenderprocessid: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IControlChangeNotify_Impl::OnNotify(this, core::mem::transmute_copy(&dwsenderprocessid), core::mem::transmute_copy(&pguideventcontext)).into() } @@ -2010,20 +1518,14 @@ impl IControlChangeNotify_Vtbl { iid == &::IID } } -pub trait IControlInterface_Impl: Sized { +pub trait IControlInterface_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetIID(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IControlInterface {} impl IControlInterface_Vtbl { - pub const fn new() -> IControlInterface_Vtbl - where - Identity: IControlInterface_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppwstrname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IControlInterface_Impl, - { + pub const fn new() -> IControlInterface_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppwstrname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IControlInterface_Impl::GetName(this) { Ok(ok__) => { @@ -2033,10 +1535,7 @@ impl IControlInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIID(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IControlInterface_Impl, - { + unsafe extern "system" fn GetIID(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IControlInterface_Impl::GetIID(this) { Ok(ok__) => { @@ -2052,7 +1551,7 @@ impl IControlInterface_Vtbl { iid == &::IID } } -pub trait IDeviceSpecificProperty_Impl: Sized { +pub trait IDeviceSpecificProperty_Impl: Sized + windows_core::IUnknownImpl { fn GetType(&self) -> windows_core::Result; fn GetValue(&self, pvvalue: *mut core::ffi::c_void, pcbvalue: *mut u32) -> windows_core::Result<()>; fn SetValue(&self, pvvalue: *const core::ffi::c_void, cbvalue: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; @@ -2060,14 +1559,8 @@ pub trait IDeviceSpecificProperty_Impl: Sized { } impl windows_core::RuntimeName for IDeviceSpecificProperty {} impl IDeviceSpecificProperty_Vtbl { - pub const fn new() -> IDeviceSpecificProperty_Vtbl - where - Identity: IDeviceSpecificProperty_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pvtype: *mut u16) -> windows_core::HRESULT - where - Identity: IDeviceSpecificProperty_Impl, - { + pub const fn new() -> IDeviceSpecificProperty_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pvtype: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceSpecificProperty_Impl::GetType(this) { Ok(ok__) => { @@ -2077,24 +1570,15 @@ impl IDeviceSpecificProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvvalue: *mut core::ffi::c_void, pcbvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IDeviceSpecificProperty_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvvalue: *mut core::ffi::c_void, pcbvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceSpecificProperty_Impl::GetValue(this, core::mem::transmute_copy(&pvvalue), core::mem::transmute_copy(&pcbvalue)).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, pvvalue: *const core::ffi::c_void, cbvalue: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDeviceSpecificProperty_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, pvvalue: *const core::ffi::c_void, cbvalue: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceSpecificProperty_Impl::SetValue(this, core::mem::transmute_copy(&pvvalue), core::mem::transmute_copy(&cbvalue), core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn Get4BRange(this: *mut core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plstepping: *mut i32) -> windows_core::HRESULT - where - Identity: IDeviceSpecificProperty_Impl, - { + unsafe extern "system" fn Get4BRange(this: *mut core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plstepping: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceSpecificProperty_Impl::Get4BRange(this, core::mem::transmute_copy(&plmin), core::mem::transmute_copy(&plmax), core::mem::transmute_copy(&plstepping)).into() } @@ -2110,7 +1594,7 @@ impl IDeviceSpecificProperty_Vtbl { iid == &::IID } } -pub trait IDeviceTopology_Impl: Sized { +pub trait IDeviceTopology_Impl: Sized + windows_core::IUnknownImpl { fn GetConnectorCount(&self) -> windows_core::Result; fn GetConnector(&self, nindex: u32) -> windows_core::Result; fn GetSubunitCount(&self) -> windows_core::Result; @@ -2121,14 +1605,8 @@ pub trait IDeviceTopology_Impl: Sized { } impl windows_core::RuntimeName for IDeviceTopology {} impl IDeviceTopology_Vtbl { - pub const fn new() -> IDeviceTopology_Vtbl - where - Identity: IDeviceTopology_Impl, - { - unsafe extern "system" fn GetConnectorCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDeviceTopology_Impl, - { + pub const fn new() -> IDeviceTopology_Vtbl { + unsafe extern "system" fn GetConnectorCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceTopology_Impl::GetConnectorCount(this) { Ok(ok__) => { @@ -2138,10 +1616,7 @@ impl IDeviceTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnector(this: *mut core::ffi::c_void, nindex: u32, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDeviceTopology_Impl, - { + unsafe extern "system" fn GetConnector(this: *mut core::ffi::c_void, nindex: u32, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceTopology_Impl::GetConnector(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -2151,10 +1626,7 @@ impl IDeviceTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubunitCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDeviceTopology_Impl, - { + unsafe extern "system" fn GetSubunitCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceTopology_Impl::GetSubunitCount(this) { Ok(ok__) => { @@ -2164,10 +1636,7 @@ impl IDeviceTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubunit(this: *mut core::ffi::c_void, nindex: u32, ppsubunit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDeviceTopology_Impl, - { + unsafe extern "system" fn GetSubunit(this: *mut core::ffi::c_void, nindex: u32, ppsubunit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceTopology_Impl::GetSubunit(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -2177,10 +1646,7 @@ impl IDeviceTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPartById(this: *mut core::ffi::c_void, nid: u32, pppart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDeviceTopology_Impl, - { + unsafe extern "system" fn GetPartById(this: *mut core::ffi::c_void, nid: u32, pppart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceTopology_Impl::GetPartById(this, core::mem::transmute_copy(&nid)) { Ok(ok__) => { @@ -2190,10 +1656,7 @@ impl IDeviceTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceId(this: *mut core::ffi::c_void, ppwstrdeviceid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDeviceTopology_Impl, - { + unsafe extern "system" fn GetDeviceId(this: *mut core::ffi::c_void, ppwstrdeviceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceTopology_Impl::GetDeviceId(this) { Ok(ok__) => { @@ -2203,10 +1666,7 @@ impl IDeviceTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignalPath(this: *mut core::ffi::c_void, pipartfrom: *mut core::ffi::c_void, pipartto: *mut core::ffi::c_void, brejectmixedpaths: super::super::Foundation::BOOL, ppparts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDeviceTopology_Impl, - { + unsafe extern "system" fn GetSignalPath(this: *mut core::ffi::c_void, pipartfrom: *mut core::ffi::c_void, pipartto: *mut core::ffi::c_void, brejectmixedpaths: super::super::Foundation::BOOL, ppparts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceTopology_Impl::GetSignalPath(this, windows_core::from_raw_borrowed(&pipartfrom), windows_core::from_raw_borrowed(&pipartto), core::mem::transmute_copy(&brejectmixedpaths)) { Ok(ok__) => { @@ -2232,7 +1692,7 @@ impl IDeviceTopology_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IMMDevice_Impl: Sized { +pub trait IMMDevice_Impl: Sized + windows_core::IUnknownImpl { fn Activate(&self, iid: *const windows_core::GUID, dwclsctx: super::super::System::Com::CLSCTX, pactivationparams: *const windows_core::PROPVARIANT, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn OpenPropertyStore(&self, stgmaccess: super::super::System::Com::STGM) -> windows_core::Result; fn GetId(&self) -> windows_core::Result; @@ -2242,21 +1702,12 @@ pub trait IMMDevice_Impl: Sized { impl windows_core::RuntimeName for IMMDevice {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IMMDevice_Vtbl { - pub const fn new() -> IMMDevice_Vtbl - where - Identity: IMMDevice_Impl, - { - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, dwclsctx: super::super::System::Com::CLSCTX, pactivationparams: *const core::mem::MaybeUninit, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMMDevice_Impl, - { + pub const fn new() -> IMMDevice_Vtbl { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, dwclsctx: super::super::System::Com::CLSCTX, pactivationparams: *const core::mem::MaybeUninit, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMMDevice_Impl::Activate(this, core::mem::transmute_copy(&iid), core::mem::transmute_copy(&dwclsctx), core::mem::transmute_copy(&pactivationparams), core::mem::transmute_copy(&ppinterface)).into() } - unsafe extern "system" fn OpenPropertyStore(this: *mut core::ffi::c_void, stgmaccess: super::super::System::Com::STGM, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMMDevice_Impl, - { + unsafe extern "system" fn OpenPropertyStore(this: *mut core::ffi::c_void, stgmaccess: super::super::System::Com::STGM, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMMDevice_Impl::OpenPropertyStore(this, core::mem::transmute_copy(&stgmaccess)) { Ok(ok__) => { @@ -2266,10 +1717,7 @@ impl IMMDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, ppstrid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMMDevice_Impl, - { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, ppstrid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMMDevice_Impl::GetId(this) { Ok(ok__) => { @@ -2279,10 +1727,7 @@ impl IMMDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pdwstate: *mut DEVICE_STATE) -> windows_core::HRESULT - where - Identity: IMMDevice_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pdwstate: *mut DEVICE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMMDevice_Impl::GetState(this) { Ok(ok__) => { @@ -2304,19 +1749,13 @@ impl IMMDevice_Vtbl { iid == &::IID } } -pub trait IMMDeviceActivator_Impl: Sized { +pub trait IMMDeviceActivator_Impl: Sized + windows_core::IUnknownImpl { fn Activate(&self, iid: *const windows_core::GUID, pdevice: Option<&IMMDevice>, pactivationparams: *const windows_core::PROPVARIANT, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMMDeviceActivator {} impl IMMDeviceActivator_Vtbl { - pub const fn new() -> IMMDeviceActivator_Vtbl - where - Identity: IMMDeviceActivator_Impl, - { - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, pdevice: *mut core::ffi::c_void, pactivationparams: *const core::mem::MaybeUninit, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMMDeviceActivator_Impl, - { + pub const fn new() -> IMMDeviceActivator_Vtbl { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, pdevice: *mut core::ffi::c_void, pactivationparams: *const core::mem::MaybeUninit, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMMDeviceActivator_Impl::Activate(this, core::mem::transmute_copy(&iid), windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&pactivationparams), core::mem::transmute_copy(&ppinterface)).into() } @@ -2326,20 +1765,14 @@ impl IMMDeviceActivator_Vtbl { iid == &::IID } } -pub trait IMMDeviceCollection_Impl: Sized { +pub trait IMMDeviceCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn Item(&self, ndevice: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IMMDeviceCollection {} impl IMMDeviceCollection_Vtbl { - pub const fn new() -> IMMDeviceCollection_Vtbl - where - Identity: IMMDeviceCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcdevices: *mut u32) -> windows_core::HRESULT - where - Identity: IMMDeviceCollection_Impl, - { + pub const fn new() -> IMMDeviceCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcdevices: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMMDeviceCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -2349,10 +1782,7 @@ impl IMMDeviceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, ndevice: u32, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMMDeviceCollection_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, ndevice: u32, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMMDeviceCollection_Impl::Item(this, core::mem::transmute_copy(&ndevice)) { Ok(ok__) => { @@ -2368,7 +1798,7 @@ impl IMMDeviceCollection_Vtbl { iid == &::IID } } -pub trait IMMDeviceEnumerator_Impl: Sized { +pub trait IMMDeviceEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn EnumAudioEndpoints(&self, dataflow: EDataFlow, dwstatemask: DEVICE_STATE) -> windows_core::Result; fn GetDefaultAudioEndpoint(&self, dataflow: EDataFlow, role: ERole) -> windows_core::Result; fn GetDevice(&self, pwstrid: &windows_core::PCWSTR) -> windows_core::Result; @@ -2377,14 +1807,8 @@ pub trait IMMDeviceEnumerator_Impl: Sized { } impl windows_core::RuntimeName for IMMDeviceEnumerator {} impl IMMDeviceEnumerator_Vtbl { - pub const fn new() -> IMMDeviceEnumerator_Vtbl - where - Identity: IMMDeviceEnumerator_Impl, - { - unsafe extern "system" fn EnumAudioEndpoints(this: *mut core::ffi::c_void, dataflow: EDataFlow, dwstatemask: DEVICE_STATE, ppdevices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMMDeviceEnumerator_Impl, - { + pub const fn new() -> IMMDeviceEnumerator_Vtbl { + unsafe extern "system" fn EnumAudioEndpoints(this: *mut core::ffi::c_void, dataflow: EDataFlow, dwstatemask: DEVICE_STATE, ppdevices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMMDeviceEnumerator_Impl::EnumAudioEndpoints(this, core::mem::transmute_copy(&dataflow), core::mem::transmute_copy(&dwstatemask)) { Ok(ok__) => { @@ -2394,10 +1818,7 @@ impl IMMDeviceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultAudioEndpoint(this: *mut core::ffi::c_void, dataflow: EDataFlow, role: ERole, ppendpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMMDeviceEnumerator_Impl, - { + unsafe extern "system" fn GetDefaultAudioEndpoint(this: *mut core::ffi::c_void, dataflow: EDataFlow, role: ERole, ppendpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMMDeviceEnumerator_Impl::GetDefaultAudioEndpoint(this, core::mem::transmute_copy(&dataflow), core::mem::transmute_copy(&role)) { Ok(ok__) => { @@ -2407,10 +1828,7 @@ impl IMMDeviceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, pwstrid: windows_core::PCWSTR, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMMDeviceEnumerator_Impl, - { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, pwstrid: windows_core::PCWSTR, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMMDeviceEnumerator_Impl::GetDevice(this, core::mem::transmute(&pwstrid)) { Ok(ok__) => { @@ -2420,17 +1838,11 @@ impl IMMDeviceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterEndpointNotificationCallback(this: *mut core::ffi::c_void, pclient: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMMDeviceEnumerator_Impl, - { + unsafe extern "system" fn RegisterEndpointNotificationCallback(this: *mut core::ffi::c_void, pclient: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMMDeviceEnumerator_Impl::RegisterEndpointNotificationCallback(this, windows_core::from_raw_borrowed(&pclient)).into() } - unsafe extern "system" fn UnregisterEndpointNotificationCallback(this: *mut core::ffi::c_void, pclient: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMMDeviceEnumerator_Impl, - { + unsafe extern "system" fn UnregisterEndpointNotificationCallback(this: *mut core::ffi::c_void, pclient: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMMDeviceEnumerator_Impl::UnregisterEndpointNotificationCallback(this, windows_core::from_raw_borrowed(&pclient)).into() } @@ -2447,19 +1859,13 @@ impl IMMDeviceEnumerator_Vtbl { iid == &::IID } } -pub trait IMMEndpoint_Impl: Sized { +pub trait IMMEndpoint_Impl: Sized + windows_core::IUnknownImpl { fn GetDataFlow(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMMEndpoint {} impl IMMEndpoint_Vtbl { - pub const fn new() -> IMMEndpoint_Vtbl - where - Identity: IMMEndpoint_Impl, - { - unsafe extern "system" fn GetDataFlow(this: *mut core::ffi::c_void, pdataflow: *mut EDataFlow) -> windows_core::HRESULT - where - Identity: IMMEndpoint_Impl, - { + pub const fn new() -> IMMEndpoint_Vtbl { + unsafe extern "system" fn GetDataFlow(this: *mut core::ffi::c_void, pdataflow: *mut EDataFlow) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMMEndpoint_Impl::GetDataFlow(this) { Ok(ok__) => { @@ -2476,7 +1882,7 @@ impl IMMEndpoint_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMMNotificationClient_Impl: Sized { +pub trait IMMNotificationClient_Impl: Sized + windows_core::IUnknownImpl { fn OnDeviceStateChanged(&self, pwstrdeviceid: &windows_core::PCWSTR, dwnewstate: DEVICE_STATE) -> windows_core::Result<()>; fn OnDeviceAdded(&self, pwstrdeviceid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OnDeviceRemoved(&self, pwstrdeviceid: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -2487,42 +1893,24 @@ pub trait IMMNotificationClient_Impl: Sized { impl windows_core::RuntimeName for IMMNotificationClient {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMMNotificationClient_Vtbl { - pub const fn new() -> IMMNotificationClient_Vtbl - where - Identity: IMMNotificationClient_Impl, - { - unsafe extern "system" fn OnDeviceStateChanged(this: *mut core::ffi::c_void, pwstrdeviceid: windows_core::PCWSTR, dwnewstate: DEVICE_STATE) -> windows_core::HRESULT - where - Identity: IMMNotificationClient_Impl, - { + pub const fn new() -> IMMNotificationClient_Vtbl { + unsafe extern "system" fn OnDeviceStateChanged(this: *mut core::ffi::c_void, pwstrdeviceid: windows_core::PCWSTR, dwnewstate: DEVICE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMMNotificationClient_Impl::OnDeviceStateChanged(this, core::mem::transmute(&pwstrdeviceid), core::mem::transmute_copy(&dwnewstate)).into() } - unsafe extern "system" fn OnDeviceAdded(this: *mut core::ffi::c_void, pwstrdeviceid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMMNotificationClient_Impl, - { + unsafe extern "system" fn OnDeviceAdded(this: *mut core::ffi::c_void, pwstrdeviceid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMMNotificationClient_Impl::OnDeviceAdded(this, core::mem::transmute(&pwstrdeviceid)).into() } - unsafe extern "system" fn OnDeviceRemoved(this: *mut core::ffi::c_void, pwstrdeviceid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMMNotificationClient_Impl, - { + unsafe extern "system" fn OnDeviceRemoved(this: *mut core::ffi::c_void, pwstrdeviceid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMMNotificationClient_Impl::OnDeviceRemoved(this, core::mem::transmute(&pwstrdeviceid)).into() } - unsafe extern "system" fn OnDefaultDeviceChanged(this: *mut core::ffi::c_void, flow: EDataFlow, role: ERole, pwstrdefaultdeviceid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMMNotificationClient_Impl, - { + unsafe extern "system" fn OnDefaultDeviceChanged(this: *mut core::ffi::c_void, flow: EDataFlow, role: ERole, pwstrdefaultdeviceid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMMNotificationClient_Impl::OnDefaultDeviceChanged(this, core::mem::transmute_copy(&flow), core::mem::transmute_copy(&role), core::mem::transmute(&pwstrdefaultdeviceid)).into() } - unsafe extern "system" fn OnPropertyValueChanged(this: *mut core::ffi::c_void, pwstrdeviceid: windows_core::PCWSTR, key: super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IMMNotificationClient_Impl, - { + unsafe extern "system" fn OnPropertyValueChanged(this: *mut core::ffi::c_void, pwstrdeviceid: windows_core::PCWSTR, key: super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMMNotificationClient_Impl::OnPropertyValueChanged(this, core::mem::transmute(&pwstrdeviceid), core::mem::transmute(&key)).into() } @@ -2540,7 +1928,7 @@ impl IMMNotificationClient_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMessageFilter_Impl: Sized { +pub trait IMessageFilter_Impl: Sized + windows_core::IUnknownImpl { fn HandleInComingCall(&self, dwcalltype: u32, htaskcaller: super::HTASK, dwtickcount: u32, lpinterfaceinfo: *const super::super::System::Com::INTERFACEINFO) -> u32; fn RetryRejectedCall(&self, htaskcallee: super::HTASK, dwtickcount: u32, dwrejecttype: u32) -> u32; fn MessagePending(&self, htaskcallee: super::HTASK, dwtickcount: u32, dwpendingtype: u32) -> u32; @@ -2549,28 +1937,16 @@ pub trait IMessageFilter_Impl: Sized { impl windows_core::RuntimeName for IMessageFilter {} #[cfg(feature = "Win32_System_Com")] impl IMessageFilter_Vtbl { - pub const fn new() -> IMessageFilter_Vtbl - where - Identity: IMessageFilter_Impl, - { - unsafe extern "system" fn HandleInComingCall(this: *mut core::ffi::c_void, dwcalltype: u32, htaskcaller: super::HTASK, dwtickcount: u32, lpinterfaceinfo: *const super::super::System::Com::INTERFACEINFO) -> u32 - where - Identity: IMessageFilter_Impl, - { + pub const fn new() -> IMessageFilter_Vtbl { + unsafe extern "system" fn HandleInComingCall(this: *mut core::ffi::c_void, dwcalltype: u32, htaskcaller: super::HTASK, dwtickcount: u32, lpinterfaceinfo: *const super::super::System::Com::INTERFACEINFO) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageFilter_Impl::HandleInComingCall(this, core::mem::transmute_copy(&dwcalltype), core::mem::transmute_copy(&htaskcaller), core::mem::transmute_copy(&dwtickcount), core::mem::transmute_copy(&lpinterfaceinfo)) } - unsafe extern "system" fn RetryRejectedCall(this: *mut core::ffi::c_void, htaskcallee: super::HTASK, dwtickcount: u32, dwrejecttype: u32) -> u32 - where - Identity: IMessageFilter_Impl, - { + unsafe extern "system" fn RetryRejectedCall(this: *mut core::ffi::c_void, htaskcallee: super::HTASK, dwtickcount: u32, dwrejecttype: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageFilter_Impl::RetryRejectedCall(this, core::mem::transmute_copy(&htaskcallee), core::mem::transmute_copy(&dwtickcount), core::mem::transmute_copy(&dwrejecttype)) } - unsafe extern "system" fn MessagePending(this: *mut core::ffi::c_void, htaskcallee: super::HTASK, dwtickcount: u32, dwpendingtype: u32) -> u32 - where - Identity: IMessageFilter_Impl, - { + unsafe extern "system" fn MessagePending(this: *mut core::ffi::c_void, htaskcallee: super::HTASK, dwtickcount: u32, dwpendingtype: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageFilter_Impl::MessagePending(this, core::mem::transmute_copy(&htaskcallee), core::mem::transmute_copy(&dwtickcount), core::mem::transmute_copy(&dwpendingtype)) } @@ -2585,7 +1961,7 @@ impl IMessageFilter_Vtbl { iid == &::IID } } -pub trait IPart_Impl: Sized { +pub trait IPart_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetLocalId(&self) -> windows_core::Result; fn GetGlobalId(&self) -> windows_core::Result; @@ -2602,14 +1978,8 @@ pub trait IPart_Impl: Sized { } impl windows_core::RuntimeName for IPart {} impl IPart_Vtbl { - pub const fn new() -> IPart_Vtbl - where - Identity: IPart_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppwstrname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + pub const fn new() -> IPart_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppwstrname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPart_Impl::GetName(this) { Ok(ok__) => { @@ -2619,10 +1989,7 @@ impl IPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalId(this: *mut core::ffi::c_void, pnid: *mut u32) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn GetLocalId(this: *mut core::ffi::c_void, pnid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPart_Impl::GetLocalId(this) { Ok(ok__) => { @@ -2632,10 +1999,7 @@ impl IPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGlobalId(this: *mut core::ffi::c_void, ppwstrglobalid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn GetGlobalId(this: *mut core::ffi::c_void, ppwstrglobalid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPart_Impl::GetGlobalId(this) { Ok(ok__) => { @@ -2645,10 +2009,7 @@ impl IPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPartType(this: *mut core::ffi::c_void, pparttype: *mut PartType) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn GetPartType(this: *mut core::ffi::c_void, pparttype: *mut PartType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPart_Impl::GetPartType(this) { Ok(ok__) => { @@ -2658,10 +2019,7 @@ impl IPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubType(this: *mut core::ffi::c_void, psubtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn GetSubType(this: *mut core::ffi::c_void, psubtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPart_Impl::GetSubType(this) { Ok(ok__) => { @@ -2671,10 +2029,7 @@ impl IPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetControlInterfaceCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn GetControlInterfaceCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPart_Impl::GetControlInterfaceCount(this) { Ok(ok__) => { @@ -2684,10 +2039,7 @@ impl IPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetControlInterface(this: *mut core::ffi::c_void, nindex: u32, ppinterfacedesc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn GetControlInterface(this: *mut core::ffi::c_void, nindex: u32, ppinterfacedesc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPart_Impl::GetControlInterface(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -2697,10 +2049,7 @@ impl IPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumPartsIncoming(this: *mut core::ffi::c_void, ppparts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn EnumPartsIncoming(this: *mut core::ffi::c_void, ppparts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPart_Impl::EnumPartsIncoming(this) { Ok(ok__) => { @@ -2710,10 +2059,7 @@ impl IPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumPartsOutgoing(this: *mut core::ffi::c_void, ppparts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn EnumPartsOutgoing(this: *mut core::ffi::c_void, ppparts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPart_Impl::EnumPartsOutgoing(this) { Ok(ok__) => { @@ -2723,10 +2069,7 @@ impl IPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTopologyObject(this: *mut core::ffi::c_void, pptopology: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn GetTopologyObject(this: *mut core::ffi::c_void, pptopology: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPart_Impl::GetTopologyObject(this) { Ok(ok__) => { @@ -2736,24 +2079,15 @@ impl IPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, dwclscontext: u32, refiid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, dwclscontext: u32, refiid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPart_Impl::Activate(this, core::mem::transmute_copy(&dwclscontext), core::mem::transmute_copy(&refiid), core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn RegisterControlChangeCallback(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn RegisterControlChangeCallback(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPart_Impl::RegisterControlChangeCallback(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&pnotify)).into() } - unsafe extern "system" fn UnregisterControlChangeCallback(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPart_Impl, - { + unsafe extern "system" fn UnregisterControlChangeCallback(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPart_Impl::UnregisterControlChangeCallback(this, windows_core::from_raw_borrowed(&pnotify)).into() } @@ -2778,20 +2112,14 @@ impl IPart_Vtbl { iid == &::IID } } -pub trait IPartsList_Impl: Sized { +pub trait IPartsList_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetPart(&self, nindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IPartsList {} impl IPartsList_Vtbl { - pub const fn new() -> IPartsList_Vtbl - where - Identity: IPartsList_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IPartsList_Impl, - { + pub const fn new() -> IPartsList_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPartsList_Impl::GetCount(this) { Ok(ok__) => { @@ -2801,10 +2129,7 @@ impl IPartsList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPart(this: *mut core::ffi::c_void, nindex: u32, pppart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPartsList_Impl, - { + unsafe extern "system" fn GetPart(this: *mut core::ffi::c_void, nindex: u32, pppart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPartsList_Impl::GetPart(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -2820,7 +2145,7 @@ impl IPartsList_Vtbl { iid == &::IID } } -pub trait IPerChannelDbLevel_Impl: Sized { +pub trait IPerChannelDbLevel_Impl: Sized + windows_core::IUnknownImpl { fn GetChannelCount(&self) -> windows_core::Result; fn GetLevelRange(&self, nchannel: u32, pfminleveldb: *mut f32, pfmaxleveldb: *mut f32, pfstepping: *mut f32) -> windows_core::Result<()>; fn GetLevel(&self, nchannel: u32) -> windows_core::Result; @@ -2830,14 +2155,8 @@ pub trait IPerChannelDbLevel_Impl: Sized { } impl windows_core::RuntimeName for IPerChannelDbLevel {} impl IPerChannelDbLevel_Vtbl { - pub const fn new() -> IPerChannelDbLevel_Vtbl - where - Identity: IPerChannelDbLevel_Impl, - { - unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pcchannels: *mut u32) -> windows_core::HRESULT - where - Identity: IPerChannelDbLevel_Impl, - { + pub const fn new() -> IPerChannelDbLevel_Vtbl { + unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pcchannels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerChannelDbLevel_Impl::GetChannelCount(this) { Ok(ok__) => { @@ -2847,17 +2166,11 @@ impl IPerChannelDbLevel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLevelRange(this: *mut core::ffi::c_void, nchannel: u32, pfminleveldb: *mut f32, pfmaxleveldb: *mut f32, pfstepping: *mut f32) -> windows_core::HRESULT - where - Identity: IPerChannelDbLevel_Impl, - { + unsafe extern "system" fn GetLevelRange(this: *mut core::ffi::c_void, nchannel: u32, pfminleveldb: *mut f32, pfmaxleveldb: *mut f32, pfstepping: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerChannelDbLevel_Impl::GetLevelRange(this, core::mem::transmute_copy(&nchannel), core::mem::transmute_copy(&pfminleveldb), core::mem::transmute_copy(&pfmaxleveldb), core::mem::transmute_copy(&pfstepping)).into() } - unsafe extern "system" fn GetLevel(this: *mut core::ffi::c_void, nchannel: u32, pfleveldb: *mut f32) -> windows_core::HRESULT - where - Identity: IPerChannelDbLevel_Impl, - { + unsafe extern "system" fn GetLevel(this: *mut core::ffi::c_void, nchannel: u32, pfleveldb: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerChannelDbLevel_Impl::GetLevel(this, core::mem::transmute_copy(&nchannel)) { Ok(ok__) => { @@ -2867,24 +2180,15 @@ impl IPerChannelDbLevel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLevel(this: *mut core::ffi::c_void, nchannel: u32, fleveldb: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPerChannelDbLevel_Impl, - { + unsafe extern "system" fn SetLevel(this: *mut core::ffi::c_void, nchannel: u32, fleveldb: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerChannelDbLevel_Impl::SetLevel(this, core::mem::transmute_copy(&nchannel), core::mem::transmute_copy(&fleveldb), core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn SetLevelUniform(this: *mut core::ffi::c_void, fleveldb: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPerChannelDbLevel_Impl, - { + unsafe extern "system" fn SetLevelUniform(this: *mut core::ffi::c_void, fleveldb: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerChannelDbLevel_Impl::SetLevelUniform(this, core::mem::transmute_copy(&fleveldb), core::mem::transmute_copy(&pguideventcontext)).into() } - unsafe extern "system" fn SetLevelAllChannels(this: *mut core::ffi::c_void, alevelsdb: *const f32, cchannels: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPerChannelDbLevel_Impl, - { + unsafe extern "system" fn SetLevelAllChannels(this: *mut core::ffi::c_void, alevelsdb: *const f32, cchannels: u32, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerChannelDbLevel_Impl::SetLevelAllChannels(this, core::mem::transmute_copy(&alevelsdb), core::mem::transmute_copy(&cchannels), core::mem::transmute_copy(&pguideventcontext)).into() } @@ -2902,7 +2206,7 @@ impl IPerChannelDbLevel_Vtbl { iid == &::IID } } -pub trait ISimpleAudioVolume_Impl: Sized { +pub trait ISimpleAudioVolume_Impl: Sized + windows_core::IUnknownImpl { fn SetMasterVolume(&self, flevel: f32, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn GetMasterVolume(&self) -> windows_core::Result; fn SetMute(&self, bmute: super::super::Foundation::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; @@ -2910,21 +2214,12 @@ pub trait ISimpleAudioVolume_Impl: Sized { } impl windows_core::RuntimeName for ISimpleAudioVolume {} impl ISimpleAudioVolume_Vtbl { - pub const fn new() -> ISimpleAudioVolume_Vtbl - where - Identity: ISimpleAudioVolume_Impl, - { - unsafe extern "system" fn SetMasterVolume(this: *mut core::ffi::c_void, flevel: f32, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISimpleAudioVolume_Impl, - { + pub const fn new() -> ISimpleAudioVolume_Vtbl { + unsafe extern "system" fn SetMasterVolume(this: *mut core::ffi::c_void, flevel: f32, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimpleAudioVolume_Impl::SetMasterVolume(this, core::mem::transmute_copy(&flevel), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn GetMasterVolume(this: *mut core::ffi::c_void, pflevel: *mut f32) -> windows_core::HRESULT - where - Identity: ISimpleAudioVolume_Impl, - { + unsafe extern "system" fn GetMasterVolume(this: *mut core::ffi::c_void, pflevel: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimpleAudioVolume_Impl::GetMasterVolume(this) { Ok(ok__) => { @@ -2934,17 +2229,11 @@ impl ISimpleAudioVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISimpleAudioVolume_Impl, - { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimpleAudioVolume_Impl::SetMute(this, core::mem::transmute_copy(&bmute), core::mem::transmute_copy(&eventcontext)).into() } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISimpleAudioVolume_Impl, - { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimpleAudioVolume_Impl::GetMute(this) { Ok(ok__) => { @@ -2966,7 +2255,7 @@ impl ISimpleAudioVolume_Vtbl { iid == &::IID } } -pub trait ISpatialAudioClient_Impl: Sized { +pub trait ISpatialAudioClient_Impl: Sized + windows_core::IUnknownImpl { fn GetStaticObjectPosition(&self, r#type: AudioObjectType, x: *mut f32, y: *mut f32, z: *mut f32) -> windows_core::Result<()>; fn GetNativeStaticObjectTypeMask(&self) -> windows_core::Result; fn GetMaxDynamicObjectCount(&self) -> windows_core::Result; @@ -2978,21 +2267,12 @@ pub trait ISpatialAudioClient_Impl: Sized { } impl windows_core::RuntimeName for ISpatialAudioClient {} impl ISpatialAudioClient_Vtbl { - pub const fn new() -> ISpatialAudioClient_Vtbl - where - Identity: ISpatialAudioClient_Impl, - { - unsafe extern "system" fn GetStaticObjectPosition(this: *mut core::ffi::c_void, r#type: AudioObjectType, x: *mut f32, y: *mut f32, z: *mut f32) -> windows_core::HRESULT - where - Identity: ISpatialAudioClient_Impl, - { + pub const fn new() -> ISpatialAudioClient_Vtbl { + unsafe extern "system" fn GetStaticObjectPosition(this: *mut core::ffi::c_void, r#type: AudioObjectType, x: *mut f32, y: *mut f32, z: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioClient_Impl::GetStaticObjectPosition(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&z)).into() } - unsafe extern "system" fn GetNativeStaticObjectTypeMask(this: *mut core::ffi::c_void, mask: *mut AudioObjectType) -> windows_core::HRESULT - where - Identity: ISpatialAudioClient_Impl, - { + unsafe extern "system" fn GetNativeStaticObjectTypeMask(this: *mut core::ffi::c_void, mask: *mut AudioObjectType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioClient_Impl::GetNativeStaticObjectTypeMask(this) { Ok(ok__) => { @@ -3002,10 +2282,7 @@ impl ISpatialAudioClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxDynamicObjectCount(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioClient_Impl, - { + unsafe extern "system" fn GetMaxDynamicObjectCount(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioClient_Impl::GetMaxDynamicObjectCount(this) { Ok(ok__) => { @@ -3015,10 +2292,7 @@ impl ISpatialAudioClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedAudioObjectFormatEnumerator(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioClient_Impl, - { + unsafe extern "system" fn GetSupportedAudioObjectFormatEnumerator(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioClient_Impl::GetSupportedAudioObjectFormatEnumerator(this) { Ok(ok__) => { @@ -3028,10 +2302,7 @@ impl ISpatialAudioClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxFrameCount(this: *mut core::ffi::c_void, objectformat: *const WAVEFORMATEX, framecountperbuffer: *mut u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioClient_Impl, - { + unsafe extern "system" fn GetMaxFrameCount(this: *mut core::ffi::c_void, objectformat: *const WAVEFORMATEX, framecountperbuffer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioClient_Impl::GetMaxFrameCount(this, core::mem::transmute_copy(&objectformat)) { Ok(ok__) => { @@ -3041,24 +2312,15 @@ impl ISpatialAudioClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsAudioObjectFormatSupported(this: *mut core::ffi::c_void, objectformat: *const WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpatialAudioClient_Impl, - { + unsafe extern "system" fn IsAudioObjectFormatSupported(this: *mut core::ffi::c_void, objectformat: *const WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioClient_Impl::IsAudioObjectFormatSupported(this, core::mem::transmute_copy(&objectformat)).into() } - unsafe extern "system" fn IsSpatialAudioStreamAvailable(this: *mut core::ffi::c_void, streamuuid: *const windows_core::GUID, auxiliaryinfo: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpatialAudioClient_Impl, - { + unsafe extern "system" fn IsSpatialAudioStreamAvailable(this: *mut core::ffi::c_void, streamuuid: *const windows_core::GUID, auxiliaryinfo: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioClient_Impl::IsSpatialAudioStreamAvailable(this, core::mem::transmute_copy(&streamuuid), core::mem::transmute_copy(&auxiliaryinfo)).into() } - unsafe extern "system" fn ActivateSpatialAudioStream(this: *mut core::ffi::c_void, activationparams: *const core::mem::MaybeUninit, riid: *const windows_core::GUID, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioClient_Impl, - { + unsafe extern "system" fn ActivateSpatialAudioStream(this: *mut core::ffi::c_void, activationparams: *const core::mem::MaybeUninit, riid: *const windows_core::GUID, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioClient_Impl::ActivateSpatialAudioStream(this, core::mem::transmute_copy(&activationparams), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&stream)).into() } @@ -3084,14 +2346,8 @@ pub trait ISpatialAudioClient2_Impl: Sized + ISpatialAudioClient_Impl { } impl windows_core::RuntimeName for ISpatialAudioClient2 {} impl ISpatialAudioClient2_Vtbl { - pub const fn new() -> ISpatialAudioClient2_Vtbl - where - Identity: ISpatialAudioClient2_Impl, - { - unsafe extern "system" fn IsOffloadCapable(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, isoffloadcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpatialAudioClient2_Impl, - { + pub const fn new() -> ISpatialAudioClient2_Vtbl { + unsafe extern "system" fn IsOffloadCapable(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, isoffloadcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioClient2_Impl::IsOffloadCapable(this, core::mem::transmute_copy(&category)) { Ok(ok__) => { @@ -3101,10 +2357,7 @@ impl ISpatialAudioClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxFrameCountForCategory(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, offloadenabled: super::super::Foundation::BOOL, objectformat: *const WAVEFORMATEX, framecountperbuffer: *mut u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioClient2_Impl, - { + unsafe extern "system" fn GetMaxFrameCountForCategory(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, offloadenabled: super::super::Foundation::BOOL, objectformat: *const WAVEFORMATEX, framecountperbuffer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioClient2_Impl::GetMaxFrameCountForCategory(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&offloadenabled), core::mem::transmute_copy(&objectformat)) { Ok(ok__) => { @@ -3124,7 +2377,7 @@ impl ISpatialAudioClient2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpatialAudioMetadataClient_Impl: Sized { +pub trait ISpatialAudioMetadataClient_Impl: Sized + windows_core::IUnknownImpl { fn ActivateSpatialAudioMetadataItems(&self, maxitemcount: u16, framecount: u16, metadataitemsbuffer: *mut Option, metadataitems: *mut Option) -> windows_core::Result<()>; fn GetSpatialAudioMetadataItemsBufferLength(&self, maxitemcount: u16) -> windows_core::Result; fn ActivateSpatialAudioMetadataWriter(&self, overflowmode: SpatialAudioMetadataWriterOverflowMode) -> windows_core::Result; @@ -3133,21 +2386,12 @@ pub trait ISpatialAudioMetadataClient_Impl: Sized { } impl windows_core::RuntimeName for ISpatialAudioMetadataClient {} impl ISpatialAudioMetadataClient_Vtbl { - pub const fn new() -> ISpatialAudioMetadataClient_Vtbl - where - Identity: ISpatialAudioMetadataClient_Impl, - { - unsafe extern "system" fn ActivateSpatialAudioMetadataItems(this: *mut core::ffi::c_void, maxitemcount: u16, framecount: u16, metadataitemsbuffer: *mut *mut core::ffi::c_void, metadataitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataClient_Impl, - { + pub const fn new() -> ISpatialAudioMetadataClient_Vtbl { + unsafe extern "system" fn ActivateSpatialAudioMetadataItems(this: *mut core::ffi::c_void, maxitemcount: u16, framecount: u16, metadataitemsbuffer: *mut *mut core::ffi::c_void, metadataitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataClient_Impl::ActivateSpatialAudioMetadataItems(this, core::mem::transmute_copy(&maxitemcount), core::mem::transmute_copy(&framecount), core::mem::transmute_copy(&metadataitemsbuffer), core::mem::transmute_copy(&metadataitems)).into() } - unsafe extern "system" fn GetSpatialAudioMetadataItemsBufferLength(this: *mut core::ffi::c_void, maxitemcount: u16, bufferlength: *mut u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataClient_Impl, - { + unsafe extern "system" fn GetSpatialAudioMetadataItemsBufferLength(this: *mut core::ffi::c_void, maxitemcount: u16, bufferlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioMetadataClient_Impl::GetSpatialAudioMetadataItemsBufferLength(this, core::mem::transmute_copy(&maxitemcount)) { Ok(ok__) => { @@ -3157,10 +2401,7 @@ impl ISpatialAudioMetadataClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivateSpatialAudioMetadataWriter(this: *mut core::ffi::c_void, overflowmode: SpatialAudioMetadataWriterOverflowMode, metadatawriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataClient_Impl, - { + unsafe extern "system" fn ActivateSpatialAudioMetadataWriter(this: *mut core::ffi::c_void, overflowmode: SpatialAudioMetadataWriterOverflowMode, metadatawriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioMetadataClient_Impl::ActivateSpatialAudioMetadataWriter(this, core::mem::transmute_copy(&overflowmode)) { Ok(ok__) => { @@ -3170,10 +2411,7 @@ impl ISpatialAudioMetadataClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivateSpatialAudioMetadataCopier(this: *mut core::ffi::c_void, metadatacopier: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataClient_Impl, - { + unsafe extern "system" fn ActivateSpatialAudioMetadataCopier(this: *mut core::ffi::c_void, metadatacopier: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioMetadataClient_Impl::ActivateSpatialAudioMetadataCopier(this) { Ok(ok__) => { @@ -3183,10 +2421,7 @@ impl ISpatialAudioMetadataClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivateSpatialAudioMetadataReader(this: *mut core::ffi::c_void, metadatareader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataClient_Impl, - { + unsafe extern "system" fn ActivateSpatialAudioMetadataReader(this: *mut core::ffi::c_void, metadatareader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioMetadataClient_Impl::ActivateSpatialAudioMetadataReader(this) { Ok(ok__) => { @@ -3209,28 +2444,19 @@ impl ISpatialAudioMetadataClient_Vtbl { iid == &::IID } } -pub trait ISpatialAudioMetadataCopier_Impl: Sized { +pub trait ISpatialAudioMetadataCopier_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, metadataitems: Option<&ISpatialAudioMetadataItems>) -> windows_core::Result<()>; fn CopyMetadataForFrames(&self, copyframecount: u16, copymode: SpatialAudioMetadataCopyMode, dstmetadataitems: Option<&ISpatialAudioMetadataItems>) -> windows_core::Result; fn Close(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpatialAudioMetadataCopier {} impl ISpatialAudioMetadataCopier_Vtbl { - pub const fn new() -> ISpatialAudioMetadataCopier_Vtbl - where - Identity: ISpatialAudioMetadataCopier_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, metadataitems: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataCopier_Impl, - { + pub const fn new() -> ISpatialAudioMetadataCopier_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, metadataitems: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataCopier_Impl::Open(this, windows_core::from_raw_borrowed(&metadataitems)).into() } - unsafe extern "system" fn CopyMetadataForFrames(this: *mut core::ffi::c_void, copyframecount: u16, copymode: SpatialAudioMetadataCopyMode, dstmetadataitems: *mut core::ffi::c_void, itemscopied: *mut u16) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataCopier_Impl, - { + unsafe extern "system" fn CopyMetadataForFrames(this: *mut core::ffi::c_void, copyframecount: u16, copymode: SpatialAudioMetadataCopyMode, dstmetadataitems: *mut core::ffi::c_void, itemscopied: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioMetadataCopier_Impl::CopyMetadataForFrames(this, core::mem::transmute_copy(©framecount), core::mem::transmute_copy(©mode), windows_core::from_raw_borrowed(&dstmetadataitems)) { Ok(ok__) => { @@ -3240,10 +2466,7 @@ impl ISpatialAudioMetadataCopier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataCopier_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataCopier_Impl::Close(this).into() } @@ -3258,7 +2481,7 @@ impl ISpatialAudioMetadataCopier_Vtbl { iid == &::IID } } -pub trait ISpatialAudioMetadataItems_Impl: Sized { +pub trait ISpatialAudioMetadataItems_Impl: Sized + windows_core::IUnknownImpl { fn GetFrameCount(&self) -> windows_core::Result; fn GetItemCount(&self) -> windows_core::Result; fn GetMaxItemCount(&self) -> windows_core::Result; @@ -3267,14 +2490,8 @@ pub trait ISpatialAudioMetadataItems_Impl: Sized { } impl windows_core::RuntimeName for ISpatialAudioMetadataItems {} impl ISpatialAudioMetadataItems_Vtbl { - pub const fn new() -> ISpatialAudioMetadataItems_Vtbl - where - Identity: ISpatialAudioMetadataItems_Impl, - { - unsafe extern "system" fn GetFrameCount(this: *mut core::ffi::c_void, framecount: *mut u16) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataItems_Impl, - { + pub const fn new() -> ISpatialAudioMetadataItems_Vtbl { + unsafe extern "system" fn GetFrameCount(this: *mut core::ffi::c_void, framecount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioMetadataItems_Impl::GetFrameCount(this) { Ok(ok__) => { @@ -3284,10 +2501,7 @@ impl ISpatialAudioMetadataItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemCount(this: *mut core::ffi::c_void, itemcount: *mut u16) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataItems_Impl, - { + unsafe extern "system" fn GetItemCount(this: *mut core::ffi::c_void, itemcount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioMetadataItems_Impl::GetItemCount(this) { Ok(ok__) => { @@ -3297,10 +2511,7 @@ impl ISpatialAudioMetadataItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxItemCount(this: *mut core::ffi::c_void, maxitemcount: *mut u16) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataItems_Impl, - { + unsafe extern "system" fn GetMaxItemCount(this: *mut core::ffi::c_void, maxitemcount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioMetadataItems_Impl::GetMaxItemCount(this) { Ok(ok__) => { @@ -3310,10 +2521,7 @@ impl ISpatialAudioMetadataItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxValueBufferLength(this: *mut core::ffi::c_void, maxvaluebufferlength: *mut u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataItems_Impl, - { + unsafe extern "system" fn GetMaxValueBufferLength(this: *mut core::ffi::c_void, maxvaluebufferlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioMetadataItems_Impl::GetMaxValueBufferLength(this) { Ok(ok__) => { @@ -3323,10 +2531,7 @@ impl ISpatialAudioMetadataItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, info: *mut SpatialAudioMetadataItemsInfo) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataItems_Impl, - { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, info: *mut SpatialAudioMetadataItemsInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioMetadataItems_Impl::GetInfo(this) { Ok(ok__) => { @@ -3349,35 +2554,23 @@ impl ISpatialAudioMetadataItems_Vtbl { iid == &::IID } } -pub trait ISpatialAudioMetadataItemsBuffer_Impl: Sized { +pub trait ISpatialAudioMetadataItemsBuffer_Impl: Sized + windows_core::IUnknownImpl { fn AttachToBuffer(&self, buffer: *mut u8, bufferlength: u32) -> windows_core::Result<()>; fn AttachToPopulatedBuffer(&self, buffer: *mut u8, bufferlength: u32) -> windows_core::Result<()>; fn DetachBuffer(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpatialAudioMetadataItemsBuffer {} impl ISpatialAudioMetadataItemsBuffer_Vtbl { - pub const fn new() -> ISpatialAudioMetadataItemsBuffer_Vtbl - where - Identity: ISpatialAudioMetadataItemsBuffer_Impl, - { - unsafe extern "system" fn AttachToBuffer(this: *mut core::ffi::c_void, buffer: *mut u8, bufferlength: u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataItemsBuffer_Impl, - { + pub const fn new() -> ISpatialAudioMetadataItemsBuffer_Vtbl { + unsafe extern "system" fn AttachToBuffer(this: *mut core::ffi::c_void, buffer: *mut u8, bufferlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataItemsBuffer_Impl::AttachToBuffer(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlength)).into() } - unsafe extern "system" fn AttachToPopulatedBuffer(this: *mut core::ffi::c_void, buffer: *mut u8, bufferlength: u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataItemsBuffer_Impl, - { + unsafe extern "system" fn AttachToPopulatedBuffer(this: *mut core::ffi::c_void, buffer: *mut u8, bufferlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataItemsBuffer_Impl::AttachToPopulatedBuffer(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlength)).into() } - unsafe extern "system" fn DetachBuffer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataItemsBuffer_Impl, - { + unsafe extern "system" fn DetachBuffer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataItemsBuffer_Impl::DetachBuffer(this).into() } @@ -3392,7 +2585,7 @@ impl ISpatialAudioMetadataItemsBuffer_Vtbl { iid == &::IID } } -pub trait ISpatialAudioMetadataReader_Impl: Sized { +pub trait ISpatialAudioMetadataReader_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, metadataitems: Option<&ISpatialAudioMetadataItems>) -> windows_core::Result<()>; fn ReadNextItem(&self, commandcount: *mut u8, frameoffset: *mut u16) -> windows_core::Result<()>; fn ReadNextItemCommand(&self, commandid: *mut u8, valuebuffer: *mut core::ffi::c_void, maxvaluebufferlength: u32, valuebufferlength: *mut u32) -> windows_core::Result<()>; @@ -3400,35 +2593,20 @@ pub trait ISpatialAudioMetadataReader_Impl: Sized { } impl windows_core::RuntimeName for ISpatialAudioMetadataReader {} impl ISpatialAudioMetadataReader_Vtbl { - pub const fn new() -> ISpatialAudioMetadataReader_Vtbl - where - Identity: ISpatialAudioMetadataReader_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, metadataitems: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataReader_Impl, - { + pub const fn new() -> ISpatialAudioMetadataReader_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, metadataitems: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataReader_Impl::Open(this, windows_core::from_raw_borrowed(&metadataitems)).into() } - unsafe extern "system" fn ReadNextItem(this: *mut core::ffi::c_void, commandcount: *mut u8, frameoffset: *mut u16) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataReader_Impl, - { + unsafe extern "system" fn ReadNextItem(this: *mut core::ffi::c_void, commandcount: *mut u8, frameoffset: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataReader_Impl::ReadNextItem(this, core::mem::transmute_copy(&commandcount), core::mem::transmute_copy(&frameoffset)).into() } - unsafe extern "system" fn ReadNextItemCommand(this: *mut core::ffi::c_void, commandid: *mut u8, valuebuffer: *mut core::ffi::c_void, maxvaluebufferlength: u32, valuebufferlength: *mut u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataReader_Impl, - { + unsafe extern "system" fn ReadNextItemCommand(this: *mut core::ffi::c_void, commandid: *mut u8, valuebuffer: *mut core::ffi::c_void, maxvaluebufferlength: u32, valuebufferlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataReader_Impl::ReadNextItemCommand(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&valuebuffer), core::mem::transmute_copy(&maxvaluebufferlength), core::mem::transmute_copy(&valuebufferlength)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataReader_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataReader_Impl::Close(this).into() } @@ -3444,7 +2622,7 @@ impl ISpatialAudioMetadataReader_Vtbl { iid == &::IID } } -pub trait ISpatialAudioMetadataWriter_Impl: Sized { +pub trait ISpatialAudioMetadataWriter_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, metadataitems: Option<&ISpatialAudioMetadataItems>) -> windows_core::Result<()>; fn WriteNextItem(&self, frameoffset: u16) -> windows_core::Result<()>; fn WriteNextItemCommand(&self, commandid: u8, valuebuffer: *const core::ffi::c_void, valuebufferlength: u32) -> windows_core::Result<()>; @@ -3452,35 +2630,20 @@ pub trait ISpatialAudioMetadataWriter_Impl: Sized { } impl windows_core::RuntimeName for ISpatialAudioMetadataWriter {} impl ISpatialAudioMetadataWriter_Vtbl { - pub const fn new() -> ISpatialAudioMetadataWriter_Vtbl - where - Identity: ISpatialAudioMetadataWriter_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, metadataitems: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataWriter_Impl, - { + pub const fn new() -> ISpatialAudioMetadataWriter_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, metadataitems: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataWriter_Impl::Open(this, windows_core::from_raw_borrowed(&metadataitems)).into() } - unsafe extern "system" fn WriteNextItem(this: *mut core::ffi::c_void, frameoffset: u16) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataWriter_Impl, - { + unsafe extern "system" fn WriteNextItem(this: *mut core::ffi::c_void, frameoffset: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataWriter_Impl::WriteNextItem(this, core::mem::transmute_copy(&frameoffset)).into() } - unsafe extern "system" fn WriteNextItemCommand(this: *mut core::ffi::c_void, commandid: u8, valuebuffer: *const core::ffi::c_void, valuebufferlength: u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataWriter_Impl, - { + unsafe extern "system" fn WriteNextItemCommand(this: *mut core::ffi::c_void, commandid: u8, valuebuffer: *const core::ffi::c_void, valuebufferlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataWriter_Impl::WriteNextItemCommand(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&valuebuffer), core::mem::transmute_copy(&valuebufferlength)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioMetadataWriter_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioMetadataWriter_Impl::Close(this).into() } @@ -3502,21 +2665,12 @@ pub trait ISpatialAudioObject_Impl: Sized + ISpatialAudioObjectBase_Impl { } impl windows_core::RuntimeName for ISpatialAudioObject {} impl ISpatialAudioObject_Vtbl { - pub const fn new() -> ISpatialAudioObject_Vtbl - where - Identity: ISpatialAudioObject_Impl, - { - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObject_Impl, - { + pub const fn new() -> ISpatialAudioObject_Vtbl { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObject_Impl::SetPosition(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&z)).into() } - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, volume: f32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObject_Impl, - { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, volume: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObject_Impl::SetVolume(this, core::mem::transmute_copy(&volume)).into() } @@ -3530,7 +2684,7 @@ impl ISpatialAudioObject_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpatialAudioObjectBase_Impl: Sized { +pub trait ISpatialAudioObjectBase_Impl: Sized + windows_core::IUnknownImpl { fn GetBuffer(&self, buffer: *mut *mut u8, bufferlength: *mut u32) -> windows_core::Result<()>; fn SetEndOfStream(&self, framecount: u32) -> windows_core::Result<()>; fn IsActive(&self) -> windows_core::Result; @@ -3538,28 +2692,16 @@ pub trait ISpatialAudioObjectBase_Impl: Sized { } impl windows_core::RuntimeName for ISpatialAudioObjectBase {} impl ISpatialAudioObjectBase_Vtbl { - pub const fn new() -> ISpatialAudioObjectBase_Vtbl - where - Identity: ISpatialAudioObjectBase_Impl, - { - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, buffer: *mut *mut u8, bufferlength: *mut u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectBase_Impl, - { + pub const fn new() -> ISpatialAudioObjectBase_Vtbl { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, buffer: *mut *mut u8, bufferlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectBase_Impl::GetBuffer(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlength)).into() } - unsafe extern "system" fn SetEndOfStream(this: *mut core::ffi::c_void, framecount: u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectBase_Impl, - { + unsafe extern "system" fn SetEndOfStream(this: *mut core::ffi::c_void, framecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectBase_Impl::SetEndOfStream(this, core::mem::transmute_copy(&framecount)).into() } - unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectBase_Impl, - { + unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioObjectBase_Impl::IsActive(this) { Ok(ok__) => { @@ -3569,10 +2711,7 @@ impl ISpatialAudioObjectBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAudioObjectType(this: *mut core::ffi::c_void, audioobjecttype: *mut AudioObjectType) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectBase_Impl, - { + unsafe extern "system" fn GetAudioObjectType(this: *mut core::ffi::c_void, audioobjecttype: *mut AudioObjectType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioObjectBase_Impl::GetAudioObjectType(this) { Ok(ok__) => { @@ -3604,49 +2743,28 @@ pub trait ISpatialAudioObjectForHrtf_Impl: Sized + ISpatialAudioObjectBase_Impl } impl windows_core::RuntimeName for ISpatialAudioObjectForHrtf {} impl ISpatialAudioObjectForHrtf_Vtbl { - pub const fn new() -> ISpatialAudioObjectForHrtf_Vtbl - where - Identity: ISpatialAudioObjectForHrtf_Impl, - { - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectForHrtf_Impl, - { + pub const fn new() -> ISpatialAudioObjectForHrtf_Vtbl { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectForHrtf_Impl::SetPosition(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&z)).into() } - unsafe extern "system" fn SetGain(this: *mut core::ffi::c_void, gain: f32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectForHrtf_Impl, - { + unsafe extern "system" fn SetGain(this: *mut core::ffi::c_void, gain: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectForHrtf_Impl::SetGain(this, core::mem::transmute_copy(&gain)).into() } - unsafe extern "system" fn SetOrientation(this: *mut core::ffi::c_void, orientation: *const *const f32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectForHrtf_Impl, - { + unsafe extern "system" fn SetOrientation(this: *mut core::ffi::c_void, orientation: *const *const f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectForHrtf_Impl::SetOrientation(this, core::mem::transmute_copy(&orientation)).into() } - unsafe extern "system" fn SetEnvironment(this: *mut core::ffi::c_void, environment: SpatialAudioHrtfEnvironmentType) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectForHrtf_Impl, - { + unsafe extern "system" fn SetEnvironment(this: *mut core::ffi::c_void, environment: SpatialAudioHrtfEnvironmentType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectForHrtf_Impl::SetEnvironment(this, core::mem::transmute_copy(&environment)).into() } - unsafe extern "system" fn SetDistanceDecay(this: *mut core::ffi::c_void, distancedecay: *const SpatialAudioHrtfDistanceDecay) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectForHrtf_Impl, - { + unsafe extern "system" fn SetDistanceDecay(this: *mut core::ffi::c_void, distancedecay: *const SpatialAudioHrtfDistanceDecay) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectForHrtf_Impl::SetDistanceDecay(this, core::mem::transmute_copy(&distancedecay)).into() } - unsafe extern "system" fn SetDirectivity(this: *mut core::ffi::c_void, directivity: *const SpatialAudioHrtfDirectivityUnion) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectForHrtf_Impl, - { + unsafe extern "system" fn SetDirectivity(this: *mut core::ffi::c_void, directivity: *const SpatialAudioHrtfDirectivityUnion) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectForHrtf_Impl::SetDirectivity(this, core::mem::transmute_copy(&directivity)).into() } @@ -3669,14 +2787,8 @@ pub trait ISpatialAudioObjectForMetadataCommands_Impl: Sized + ISpatialAudioObje } impl windows_core::RuntimeName for ISpatialAudioObjectForMetadataCommands {} impl ISpatialAudioObjectForMetadataCommands_Vtbl { - pub const fn new() -> ISpatialAudioObjectForMetadataCommands_Vtbl - where - Identity: ISpatialAudioObjectForMetadataCommands_Impl, - { - unsafe extern "system" fn WriteNextMetadataCommand(this: *mut core::ffi::c_void, commandid: u8, valuebuffer: *const core::ffi::c_void, valuebufferlength: u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectForMetadataCommands_Impl, - { + pub const fn new() -> ISpatialAudioObjectForMetadataCommands_Vtbl { + unsafe extern "system" fn WriteNextMetadataCommand(this: *mut core::ffi::c_void, commandid: u8, valuebuffer: *const core::ffi::c_void, valuebufferlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectForMetadataCommands_Impl::WriteNextMetadataCommand(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&valuebuffer), core::mem::transmute_copy(&valuebufferlength)).into() } @@ -3691,14 +2803,8 @@ pub trait ISpatialAudioObjectForMetadataItems_Impl: Sized + ISpatialAudioObjectB } impl windows_core::RuntimeName for ISpatialAudioObjectForMetadataItems {} impl ISpatialAudioObjectForMetadataItems_Vtbl { - pub const fn new() -> ISpatialAudioObjectForMetadataItems_Vtbl - where - Identity: ISpatialAudioObjectForMetadataItems_Impl, - { - unsafe extern "system" fn GetSpatialAudioMetadataItems(this: *mut core::ffi::c_void, metadataitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectForMetadataItems_Impl, - { + pub const fn new() -> ISpatialAudioObjectForMetadataItems_Vtbl { + unsafe extern "system" fn GetSpatialAudioMetadataItems(this: *mut core::ffi::c_void, metadataitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioObjectForMetadataItems_Impl::GetSpatialAudioMetadataItems(this) { Ok(ok__) => { @@ -3719,14 +2825,8 @@ pub trait ISpatialAudioObjectRenderStream_Impl: Sized + ISpatialAudioObjectRende } impl windows_core::RuntimeName for ISpatialAudioObjectRenderStream {} impl ISpatialAudioObjectRenderStream_Vtbl { - pub const fn new() -> ISpatialAudioObjectRenderStream_Vtbl - where - Identity: ISpatialAudioObjectRenderStream_Impl, - { - unsafe extern "system" fn ActivateSpatialAudioObject(this: *mut core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStream_Impl, - { + pub const fn new() -> ISpatialAudioObjectRenderStream_Vtbl { + unsafe extern "system" fn ActivateSpatialAudioObject(this: *mut core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioObjectRenderStream_Impl::ActivateSpatialAudioObject(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -3745,7 +2845,7 @@ impl ISpatialAudioObjectRenderStream_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpatialAudioObjectRenderStreamBase_Impl: Sized { +pub trait ISpatialAudioObjectRenderStreamBase_Impl: Sized + windows_core::IUnknownImpl { fn GetAvailableDynamicObjectCount(&self) -> windows_core::Result; fn GetService(&self, riid: *const windows_core::GUID, service: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Start(&self) -> windows_core::Result<()>; @@ -3756,14 +2856,8 @@ pub trait ISpatialAudioObjectRenderStreamBase_Impl: Sized { } impl windows_core::RuntimeName for ISpatialAudioObjectRenderStreamBase {} impl ISpatialAudioObjectRenderStreamBase_Vtbl { - pub const fn new() -> ISpatialAudioObjectRenderStreamBase_Vtbl - where - Identity: ISpatialAudioObjectRenderStreamBase_Impl, - { - unsafe extern "system" fn GetAvailableDynamicObjectCount(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamBase_Impl, - { + pub const fn new() -> ISpatialAudioObjectRenderStreamBase_Vtbl { + unsafe extern "system" fn GetAvailableDynamicObjectCount(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioObjectRenderStreamBase_Impl::GetAvailableDynamicObjectCount(this) { Ok(ok__) => { @@ -3773,45 +2867,27 @@ impl ISpatialAudioObjectRenderStreamBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, service: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamBase_Impl, - { + unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, service: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectRenderStreamBase_Impl::GetService(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&service)).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamBase_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectRenderStreamBase_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamBase_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectRenderStreamBase_Impl::Stop(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamBase_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectRenderStreamBase_Impl::Reset(this).into() } - unsafe extern "system" fn BeginUpdatingAudioObjects(this: *mut core::ffi::c_void, availabledynamicobjectcount: *mut u32, framecountperbuffer: *mut u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamBase_Impl, - { + unsafe extern "system" fn BeginUpdatingAudioObjects(this: *mut core::ffi::c_void, availabledynamicobjectcount: *mut u32, framecountperbuffer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectRenderStreamBase_Impl::BeginUpdatingAudioObjects(this, core::mem::transmute_copy(&availabledynamicobjectcount), core::mem::transmute_copy(&framecountperbuffer)).into() } - unsafe extern "system" fn EndUpdatingAudioObjects(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamBase_Impl, - { + unsafe extern "system" fn EndUpdatingAudioObjects(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectRenderStreamBase_Impl::EndUpdatingAudioObjects(this).into() } @@ -3835,14 +2911,8 @@ pub trait ISpatialAudioObjectRenderStreamForHrtf_Impl: Sized + ISpatialAudioObje } impl windows_core::RuntimeName for ISpatialAudioObjectRenderStreamForHrtf {} impl ISpatialAudioObjectRenderStreamForHrtf_Vtbl { - pub const fn new() -> ISpatialAudioObjectRenderStreamForHrtf_Vtbl - where - Identity: ISpatialAudioObjectRenderStreamForHrtf_Impl, - { - unsafe extern "system" fn ActivateSpatialAudioObjectForHrtf(this: *mut core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamForHrtf_Impl, - { + pub const fn new() -> ISpatialAudioObjectRenderStreamForHrtf_Vtbl { + unsafe extern "system" fn ActivateSpatialAudioObjectForHrtf(this: *mut core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioObjectRenderStreamForHrtf_Impl::ActivateSpatialAudioObjectForHrtf(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -3867,14 +2937,8 @@ pub trait ISpatialAudioObjectRenderStreamForMetadata_Impl: Sized + ISpatialAudio } impl windows_core::RuntimeName for ISpatialAudioObjectRenderStreamForMetadata {} impl ISpatialAudioObjectRenderStreamForMetadata_Vtbl { - pub const fn new() -> ISpatialAudioObjectRenderStreamForMetadata_Vtbl - where - Identity: ISpatialAudioObjectRenderStreamForMetadata_Impl, - { - unsafe extern "system" fn ActivateSpatialAudioObjectForMetadataCommands(this: *mut core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamForMetadata_Impl, - { + pub const fn new() -> ISpatialAudioObjectRenderStreamForMetadata_Vtbl { + unsafe extern "system" fn ActivateSpatialAudioObjectForMetadataCommands(this: *mut core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioObjectRenderStreamForMetadata_Impl::ActivateSpatialAudioObjectForMetadataCommands(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -3884,10 +2948,7 @@ impl ISpatialAudioObjectRenderStreamForMetadata_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivateSpatialAudioObjectForMetadataItems(this: *mut core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamForMetadata_Impl, - { + unsafe extern "system" fn ActivateSpatialAudioObjectForMetadataItems(this: *mut core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioObjectRenderStreamForMetadata_Impl::ActivateSpatialAudioObjectForMetadataItems(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -3907,19 +2968,13 @@ impl ISpatialAudioObjectRenderStreamForMetadata_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpatialAudioObjectRenderStreamNotify_Impl: Sized { +pub trait ISpatialAudioObjectRenderStreamNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnAvailableDynamicObjectCountChange(&self, sender: Option<&ISpatialAudioObjectRenderStreamBase>, hnscompliancedeadlinetime: i64, availabledynamicobjectcountchange: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpatialAudioObjectRenderStreamNotify {} impl ISpatialAudioObjectRenderStreamNotify_Vtbl { - pub const fn new() -> ISpatialAudioObjectRenderStreamNotify_Vtbl - where - Identity: ISpatialAudioObjectRenderStreamNotify_Impl, - { - unsafe extern "system" fn OnAvailableDynamicObjectCountChange(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, hnscompliancedeadlinetime: i64, availabledynamicobjectcountchange: u32) -> windows_core::HRESULT - where - Identity: ISpatialAudioObjectRenderStreamNotify_Impl, - { + pub const fn new() -> ISpatialAudioObjectRenderStreamNotify_Vtbl { + unsafe extern "system" fn OnAvailableDynamicObjectCountChange(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, hnscompliancedeadlinetime: i64, availabledynamicobjectcountchange: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialAudioObjectRenderStreamNotify_Impl::OnAvailableDynamicObjectCountChange(this, windows_core::from_raw_borrowed(&sender), core::mem::transmute_copy(&hnscompliancedeadlinetime), core::mem::transmute_copy(&availabledynamicobjectcountchange)).into() } @@ -3932,13 +2987,10 @@ impl ISpatialAudioObjectRenderStreamNotify_Vtbl { iid == &::IID } } -pub trait ISubunit_Impl: Sized {} +pub trait ISubunit_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for ISubunit {} impl ISubunit_Vtbl { - pub const fn new() -> ISubunit_Vtbl - where - Identity: ISubunit_Impl, - { + pub const fn new() -> ISubunit_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/impl.rs index 3300cea95f..daf522ca53 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/impl.rs @@ -1,24 +1,15 @@ -pub trait IComponentAuthenticate_Impl: Sized { +pub trait IComponentAuthenticate_Impl: Sized + windows_core::IUnknownImpl { fn SACAuth(&self, dwprotocolid: u32, dwpass: u32, pbdatain: *const u8, dwdatainlen: u32, ppbdataout: *mut *mut u8, pdwdataoutlen: *mut u32) -> windows_core::Result<()>; fn SACGetProtocols(&self, ppdwprotocols: *mut *mut u32, pdwprotocolcount: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComponentAuthenticate {} impl IComponentAuthenticate_Vtbl { - pub const fn new() -> IComponentAuthenticate_Vtbl - where - Identity: IComponentAuthenticate_Impl, - { - unsafe extern "system" fn SACAuth(this: *mut core::ffi::c_void, dwprotocolid: u32, dwpass: u32, pbdatain: *const u8, dwdatainlen: u32, ppbdataout: *mut *mut u8, pdwdataoutlen: *mut u32) -> windows_core::HRESULT - where - Identity: IComponentAuthenticate_Impl, - { + pub const fn new() -> IComponentAuthenticate_Vtbl { + unsafe extern "system" fn SACAuth(this: *mut core::ffi::c_void, dwprotocolid: u32, dwpass: u32, pbdatain: *const u8, dwdatainlen: u32, ppbdataout: *mut *mut u8, pdwdataoutlen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentAuthenticate_Impl::SACAuth(this, core::mem::transmute_copy(&dwprotocolid), core::mem::transmute_copy(&dwpass), core::mem::transmute_copy(&pbdatain), core::mem::transmute_copy(&dwdatainlen), core::mem::transmute_copy(&ppbdataout), core::mem::transmute_copy(&pdwdataoutlen)).into() } - unsafe extern "system" fn SACGetProtocols(this: *mut core::ffi::c_void, ppdwprotocols: *mut *mut u32, pdwprotocolcount: *mut u32) -> windows_core::HRESULT - where - Identity: IComponentAuthenticate_Impl, - { + unsafe extern "system" fn SACGetProtocols(this: *mut core::ffi::c_void, ppdwprotocols: *mut *mut u32, pdwprotocolcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentAuthenticate_Impl::SACGetProtocols(this, core::mem::transmute_copy(&ppdwprotocols), core::mem::transmute_copy(&pdwprotocolcount)).into() } @@ -33,7 +24,7 @@ impl IComponentAuthenticate_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait IMDSPDevice_Impl: Sized { +pub trait IMDSPDevice_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::Result<()>; fn GetManufacturer(&self, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::Result<()>; fn GetVersion(&self) -> windows_core::Result; @@ -50,28 +41,16 @@ pub trait IMDSPDevice_Impl: Sized { impl windows_core::RuntimeName for IMDSPDevice {} #[cfg(feature = "Win32_Media_Audio")] impl IMDSPDevice_Vtbl { - pub const fn new() -> IMDSPDevice_Vtbl - where - Identity: IMDSPDevice_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + pub const fn new() -> IMDSPDevice_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice_Impl::GetName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&nmaxchars)).into() } - unsafe extern "system" fn GetManufacturer(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + unsafe extern "system" fn GetManufacturer(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice_Impl::GetManufacturer(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&nmaxchars)).into() } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDevice_Impl::GetVersion(this) { Ok(ok__) => { @@ -81,10 +60,7 @@ impl IMDSPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pdwtype: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pdwtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDevice_Impl::GetType(this) { Ok(ok__) => { @@ -94,24 +70,15 @@ impl IMDSPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSerialNumber(this: *mut core::ffi::c_void, pserialnumber: *mut WMDMID, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + unsafe extern "system" fn GetSerialNumber(this: *mut core::ffi::c_void, pserialnumber: *mut WMDMID, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice_Impl::GetSerialNumber(this, core::mem::transmute_copy(&pserialnumber), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn GetPowerSource(this: *mut core::ffi::c_void, pdwpowersource: *mut u32, pdwpercentremaining: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + unsafe extern "system" fn GetPowerSource(this: *mut core::ffi::c_void, pdwpowersource: *mut u32, pdwpercentremaining: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice_Impl::GetPowerSource(this, core::mem::transmute_copy(&pdwpowersource), core::mem::transmute_copy(&pdwpercentremaining)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDevice_Impl::GetStatus(this) { Ok(ok__) => { @@ -121,10 +88,7 @@ impl IMDSPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceIcon(this: *mut core::ffi::c_void, hicon: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + unsafe extern "system" fn GetDeviceIcon(this: *mut core::ffi::c_void, hicon: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDevice_Impl::GetDeviceIcon(this) { Ok(ok__) => { @@ -134,10 +98,7 @@ impl IMDSPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumStorage(this: *mut core::ffi::c_void, ppenumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + unsafe extern "system" fn EnumStorage(this: *mut core::ffi::c_void, ppenumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDevice_Impl::EnumStorage(this) { Ok(ok__) => { @@ -147,17 +108,11 @@ impl IMDSPDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormatSupport(this: *mut core::ffi::c_void, pformatex: *mut *mut super::Audio::WAVEFORMATEX, pnformatcount: *mut u32, pppwszmimetype: *mut *mut windows_core::PWSTR, pnmimetypecount: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + unsafe extern "system" fn GetFormatSupport(this: *mut core::ffi::c_void, pformatex: *mut *mut super::Audio::WAVEFORMATEX, pnformatcount: *mut u32, pppwszmimetype: *mut *mut windows_core::PWSTR, pnmimetypecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice_Impl::GetFormatSupport(this, core::mem::transmute_copy(&pformatex), core::mem::transmute_copy(&pnformatcount), core::mem::transmute_copy(&pppwszmimetype), core::mem::transmute_copy(&pnmimetypecount)).into() } - unsafe extern "system" fn SendOpaqueCommand(this: *mut core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> windows_core::HRESULT - where - Identity: IMDSPDevice_Impl, - { + unsafe extern "system" fn SendOpaqueCommand(this: *mut core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice_Impl::SendOpaqueCommand(this, core::mem::transmute_copy(&pcommand)).into() } @@ -191,14 +146,8 @@ pub trait IMDSPDevice2_Impl: Sized + IMDSPDevice_Impl { impl windows_core::RuntimeName for IMDSPDevice2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Ole"))] impl IMDSPDevice2_Vtbl { - pub const fn new() -> IMDSPDevice2_Vtbl - where - Identity: IMDSPDevice2_Impl, - { - unsafe extern "system" fn GetStorage(this: *mut core::ffi::c_void, pszstoragename: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPDevice2_Impl, - { + pub const fn new() -> IMDSPDevice2_Vtbl { + unsafe extern "system" fn GetStorage(this: *mut core::ffi::c_void, pszstoragename: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDevice2_Impl::GetStorage(this, core::mem::transmute(&pszstoragename)) { Ok(ok__) => { @@ -208,24 +157,15 @@ impl IMDSPDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormatSupport2(this: *mut core::ffi::c_void, dwflags: u32, ppaudioformatex: *mut *mut super::Audio::WAVEFORMATEX, pnaudioformatcount: *mut u32, ppvideoformatex: *mut *mut super::MediaFoundation::VIDEOINFOHEADER, pnvideoformatcount: *mut u32, ppfiletype: *mut *mut WMFILECAPABILITIES, pnfiletypecount: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice2_Impl, - { + unsafe extern "system" fn GetFormatSupport2(this: *mut core::ffi::c_void, dwflags: u32, ppaudioformatex: *mut *mut super::Audio::WAVEFORMATEX, pnaudioformatcount: *mut u32, ppvideoformatex: *mut *mut super::MediaFoundation::VIDEOINFOHEADER, pnvideoformatcount: *mut u32, ppfiletype: *mut *mut WMFILECAPABILITIES, pnfiletypecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice2_Impl::GetFormatSupport2(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ppaudioformatex), core::mem::transmute_copy(&pnaudioformatcount), core::mem::transmute_copy(&ppvideoformatex), core::mem::transmute_copy(&pnvideoformatcount), core::mem::transmute_copy(&ppfiletype), core::mem::transmute_copy(&pnfiletypecount)).into() } - unsafe extern "system" fn GetSpecifyPropertyPages(this: *mut core::ffi::c_void, ppspecifyproppages: *mut *mut core::ffi::c_void, pppunknowns: *mut *mut Option, pcunks: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice2_Impl, - { + unsafe extern "system" fn GetSpecifyPropertyPages(this: *mut core::ffi::c_void, ppspecifyproppages: *mut *mut core::ffi::c_void, pppunknowns: *mut *mut Option, pcunks: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice2_Impl::GetSpecifyPropertyPages(this, core::mem::transmute_copy(&ppspecifyproppages), core::mem::transmute_copy(&pppunknowns), core::mem::transmute_copy(&pcunks)).into() } - unsafe extern "system" fn GetCanonicalName(this: *mut core::ffi::c_void, pwszpnpname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice2_Impl, - { + unsafe extern "system" fn GetCanonicalName(this: *mut core::ffi::c_void, pwszpnpname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice2_Impl::GetCanonicalName(this, core::mem::transmute_copy(&pwszpnpname), core::mem::transmute_copy(&nmaxchars)).into() } @@ -253,14 +193,8 @@ pub trait IMDSPDevice3_Impl: Sized + IMDSPDevice2_Impl { impl windows_core::RuntimeName for IMDSPDevice3 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Ole"))] impl IMDSPDevice3_Vtbl { - pub const fn new() -> IMDSPDevice3_Vtbl - where - Identity: IMDSPDevice3_Impl, - { - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pwszpropname: windows_core::PCWSTR, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMDSPDevice3_Impl, - { + pub const fn new() -> IMDSPDevice3_Vtbl { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pwszpropname: windows_core::PCWSTR, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDevice3_Impl::GetProperty(this, core::mem::transmute(&pwszpropname)) { Ok(ok__) => { @@ -270,17 +204,11 @@ impl IMDSPDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pwszpropname: windows_core::PCWSTR, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMDSPDevice3_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pwszpropname: windows_core::PCWSTR, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice3_Impl::SetProperty(this, core::mem::transmute(&pwszpropname), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetFormatCapability(this: *mut core::ffi::c_void, format: WMDM_FORMATCODE, pformatsupport: *mut WMDM_FORMAT_CAPABILITY) -> windows_core::HRESULT - where - Identity: IMDSPDevice3_Impl, - { + unsafe extern "system" fn GetFormatCapability(this: *mut core::ffi::c_void, format: WMDM_FORMATCODE, pformatsupport: *mut WMDM_FORMAT_CAPABILITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDevice3_Impl::GetFormatCapability(this, core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -290,17 +218,11 @@ impl IMDSPDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceIoControl(this: *mut core::ffi::c_void, dwiocontrolcode: u32, lpinbuffer: *const u8, ninbuffersize: u32, lpoutbuffer: *mut u8, pnoutbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDevice3_Impl, - { + unsafe extern "system" fn DeviceIoControl(this: *mut core::ffi::c_void, dwiocontrolcode: u32, lpinbuffer: *const u8, ninbuffersize: u32, lpoutbuffer: *mut u8, pnoutbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDevice3_Impl::DeviceIoControl(this, core::mem::transmute_copy(&dwiocontrolcode), core::mem::transmute_copy(&lpinbuffer), core::mem::transmute_copy(&ninbuffersize), core::mem::transmute_copy(&lpoutbuffer), core::mem::transmute_copy(&pnoutbuffersize)).into() } - unsafe extern "system" fn FindStorage(this: *mut core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPDevice3_Impl, - { + unsafe extern "system" fn FindStorage(this: *mut core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDevice3_Impl::FindStorage(this, core::mem::transmute_copy(&findscope), core::mem::transmute(&pwszuniqueid)) { Ok(ok__) => { @@ -324,7 +246,7 @@ impl IMDSPDevice3_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait IMDSPDeviceControl_Impl: Sized { +pub trait IMDSPDeviceControl_Impl: Sized + windows_core::IUnknownImpl { fn GetDCStatus(&self) -> windows_core::Result; fn GetCapabilities(&self) -> windows_core::Result; fn Play(&self) -> windows_core::Result<()>; @@ -338,14 +260,8 @@ pub trait IMDSPDeviceControl_Impl: Sized { impl windows_core::RuntimeName for IMDSPDeviceControl {} #[cfg(feature = "Win32_Media_Audio")] impl IMDSPDeviceControl_Vtbl { - pub const fn new() -> IMDSPDeviceControl_Vtbl - where - Identity: IMDSPDeviceControl_Impl, - { - unsafe extern "system" fn GetDCStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDeviceControl_Impl, - { + pub const fn new() -> IMDSPDeviceControl_Vtbl { + unsafe extern "system" fn GetDCStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDeviceControl_Impl::GetDCStatus(this) { Ok(ok__) => { @@ -355,10 +271,7 @@ impl IMDSPDeviceControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilitiesmask: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPDeviceControl_Impl, - { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilitiesmask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDeviceControl_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -368,45 +281,27 @@ impl IMDSPDeviceControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Play(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPDeviceControl_Impl, - { + unsafe extern "system" fn Play(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDeviceControl_Impl::Play(this).into() } - unsafe extern "system" fn Record(this: *mut core::ffi::c_void, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IMDSPDeviceControl_Impl, - { + unsafe extern "system" fn Record(this: *mut core::ffi::c_void, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDeviceControl_Impl::Record(this, core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPDeviceControl_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDeviceControl_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPDeviceControl_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDeviceControl_Impl::Resume(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPDeviceControl_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDeviceControl_Impl::Stop(this).into() } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, fumode: u32, noffset: i32) -> windows_core::HRESULT - where - Identity: IMDSPDeviceControl_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, fumode: u32, noffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPDeviceControl_Impl::Seek(this, core::mem::transmute_copy(&fumode), core::mem::transmute_copy(&noffset)).into() } @@ -426,19 +321,13 @@ impl IMDSPDeviceControl_Vtbl { iid == &::IID } } -pub trait IMDSPDirectTransfer_Impl: Sized { +pub trait IMDSPDirectTransfer_Impl: Sized + windows_core::IUnknownImpl { fn TransferToDevice(&self, pwszsourcefilepath: &windows_core::PCWSTR, psourceoperation: Option<&IWMDMOperation>, fuflags: u32, pwszdestinationname: &windows_core::PCWSTR, psourcemetadata: Option<&IWMDMMetaData>, ptransferprogress: Option<&IWMDMProgress>) -> windows_core::Result; } impl windows_core::RuntimeName for IMDSPDirectTransfer {} impl IMDSPDirectTransfer_Vtbl { - pub const fn new() -> IMDSPDirectTransfer_Vtbl - where - Identity: IMDSPDirectTransfer_Impl, - { - unsafe extern "system" fn TransferToDevice(this: *mut core::ffi::c_void, pwszsourcefilepath: windows_core::PCWSTR, psourceoperation: *mut core::ffi::c_void, fuflags: u32, pwszdestinationname: windows_core::PCWSTR, psourcemetadata: *mut core::ffi::c_void, ptransferprogress: *mut core::ffi::c_void, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPDirectTransfer_Impl, - { + pub const fn new() -> IMDSPDirectTransfer_Vtbl { + unsafe extern "system" fn TransferToDevice(this: *mut core::ffi::c_void, pwszsourcefilepath: windows_core::PCWSTR, psourceoperation: *mut core::ffi::c_void, fuflags: u32, pwszdestinationname: windows_core::PCWSTR, psourcemetadata: *mut core::ffi::c_void, ptransferprogress: *mut core::ffi::c_void, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPDirectTransfer_Impl::TransferToDevice(this, core::mem::transmute(&pwszsourcefilepath), windows_core::from_raw_borrowed(&psourceoperation), core::mem::transmute_copy(&fuflags), core::mem::transmute(&pwszdestinationname), windows_core::from_raw_borrowed(&psourcemetadata), windows_core::from_raw_borrowed(&ptransferprogress)) { Ok(ok__) => { @@ -454,7 +343,7 @@ impl IMDSPDirectTransfer_Vtbl { iid == &::IID } } -pub trait IMDSPEnumDevice_Impl: Sized { +pub trait IMDSPEnumDevice_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppdevice: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result; fn Reset(&self) -> windows_core::Result<()>; @@ -462,21 +351,12 @@ pub trait IMDSPEnumDevice_Impl: Sized { } impl windows_core::RuntimeName for IMDSPEnumDevice {} impl IMDSPEnumDevice_Vtbl { - pub const fn new() -> IMDSPEnumDevice_Vtbl - where - Identity: IMDSPEnumDevice_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppdevice: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPEnumDevice_Impl, - { + pub const fn new() -> IMDSPEnumDevice_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppdevice: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPEnumDevice_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppdevice), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPEnumDevice_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPEnumDevice_Impl::Skip(this, core::mem::transmute_copy(&celt)) { Ok(ok__) => { @@ -486,17 +366,11 @@ impl IMDSPEnumDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPEnumDevice_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPEnumDevice_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPEnumDevice_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPEnumDevice_Impl::Clone(this) { Ok(ok__) => { @@ -518,7 +392,7 @@ impl IMDSPEnumDevice_Vtbl { iid == &::IID } } -pub trait IMDSPEnumStorage_Impl: Sized { +pub trait IMDSPEnumStorage_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppstorage: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result; fn Reset(&self) -> windows_core::Result<()>; @@ -526,21 +400,12 @@ pub trait IMDSPEnumStorage_Impl: Sized { } impl windows_core::RuntimeName for IMDSPEnumStorage {} impl IMDSPEnumStorage_Vtbl { - pub const fn new() -> IMDSPEnumStorage_Vtbl - where - Identity: IMDSPEnumStorage_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppstorage: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPEnumStorage_Impl, - { + pub const fn new() -> IMDSPEnumStorage_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppstorage: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPEnumStorage_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppstorage), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPEnumStorage_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPEnumStorage_Impl::Skip(this, core::mem::transmute_copy(&celt)) { Ok(ok__) => { @@ -550,17 +415,11 @@ impl IMDSPEnumStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPEnumStorage_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPEnumStorage_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPEnumStorage_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPEnumStorage_Impl::Clone(this) { Ok(ok__) => { @@ -582,7 +441,7 @@ impl IMDSPEnumStorage_Vtbl { iid == &::IID } } -pub trait IMDSPObject_Impl: Sized { +pub trait IMDSPObject_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, fumode: u32) -> windows_core::Result<()>; fn Read(&self, pdata: *mut u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::Result<()>; fn Write(&self, pdata: *const u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::Result<()>; @@ -594,63 +453,36 @@ pub trait IMDSPObject_Impl: Sized { } impl windows_core::RuntimeName for IMDSPObject {} impl IMDSPObject_Vtbl { - pub const fn new() -> IMDSPObject_Vtbl - where - Identity: IMDSPObject_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, fumode: u32) -> windows_core::HRESULT - where - Identity: IMDSPObject_Impl, - { + pub const fn new() -> IMDSPObject_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, fumode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObject_Impl::Open(this, core::mem::transmute_copy(&fumode)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: IMDSPObject_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObject_Impl::Read(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pdata: *const u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: IMDSPObject_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pdata: *const u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObject_Impl::Write(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, fumode: u32, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPObject_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, fumode: u32, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObject_Impl::Delete(this, core::mem::transmute_copy(&fumode), windows_core::from_raw_borrowed(&pprogress)).into() } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, fuflags: u32, dwoffset: u32) -> windows_core::HRESULT - where - Identity: IMDSPObject_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, fuflags: u32, dwoffset: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObject_Impl::Seek(this, core::mem::transmute_copy(&fuflags), core::mem::transmute_copy(&dwoffset)).into() } - unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, pwsznewname: windows_core::PCWSTR, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPObject_Impl, - { + unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, pwsznewname: windows_core::PCWSTR, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObject_Impl::Rename(this, core::mem::transmute(&pwsznewname), windows_core::from_raw_borrowed(&pprogress)).into() } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, fumode: u32, pprogress: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPObject_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, fumode: u32, pprogress: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObject_Impl::Move(this, core::mem::transmute_copy(&fumode), windows_core::from_raw_borrowed(&pprogress), windows_core::from_raw_borrowed(&ptarget)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPObject_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObject_Impl::Close(this).into() } @@ -676,21 +508,12 @@ pub trait IMDSPObject2_Impl: Sized + IMDSPObject_Impl { } impl windows_core::RuntimeName for IMDSPObject2 {} impl IMDSPObject2_Vtbl { - pub const fn new() -> IMDSPObject2_Vtbl - where - Identity: IMDSPObject2_Impl, - { - unsafe extern "system" fn ReadOnClearChannel(this: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPObject2_Impl, - { + pub const fn new() -> IMDSPObject2_Vtbl { + unsafe extern "system" fn ReadOnClearChannel(this: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObject2_Impl::ReadOnClearChannel(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&pdwsize)).into() } - unsafe extern "system" fn WriteOnClearChannel(this: *mut core::ffi::c_void, pdata: *const u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPObject2_Impl, - { + unsafe extern "system" fn WriteOnClearChannel(this: *mut core::ffi::c_void, pdata: *const u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObject2_Impl::WriteOnClearChannel(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&pdwsize)).into() } @@ -704,7 +527,7 @@ impl IMDSPObject2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMDSPObjectInfo_Impl: Sized { +pub trait IMDSPObjectInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetPlayLength(&self) -> windows_core::Result; fn SetPlayLength(&self, dwlength: u32) -> windows_core::Result<()>; fn GetPlayOffset(&self) -> windows_core::Result; @@ -715,14 +538,8 @@ pub trait IMDSPObjectInfo_Impl: Sized { } impl windows_core::RuntimeName for IMDSPObjectInfo {} impl IMDSPObjectInfo_Vtbl { - pub const fn new() -> IMDSPObjectInfo_Vtbl - where - Identity: IMDSPObjectInfo_Impl, - { - unsafe extern "system" fn GetPlayLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPObjectInfo_Impl, - { + pub const fn new() -> IMDSPObjectInfo_Vtbl { + unsafe extern "system" fn GetPlayLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPObjectInfo_Impl::GetPlayLength(this) { Ok(ok__) => { @@ -732,17 +549,11 @@ impl IMDSPObjectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlayLength(this: *mut core::ffi::c_void, dwlength: u32) -> windows_core::HRESULT - where - Identity: IMDSPObjectInfo_Impl, - { + unsafe extern "system" fn SetPlayLength(this: *mut core::ffi::c_void, dwlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObjectInfo_Impl::SetPlayLength(this, core::mem::transmute_copy(&dwlength)).into() } - unsafe extern "system" fn GetPlayOffset(this: *mut core::ffi::c_void, pdwoffset: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPObjectInfo_Impl, - { + unsafe extern "system" fn GetPlayOffset(this: *mut core::ffi::c_void, pdwoffset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPObjectInfo_Impl::GetPlayOffset(this) { Ok(ok__) => { @@ -752,17 +563,11 @@ impl IMDSPObjectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlayOffset(this: *mut core::ffi::c_void, dwoffset: u32) -> windows_core::HRESULT - where - Identity: IMDSPObjectInfo_Impl, - { + unsafe extern "system" fn SetPlayOffset(this: *mut core::ffi::c_void, dwoffset: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPObjectInfo_Impl::SetPlayOffset(this, core::mem::transmute_copy(&dwoffset)).into() } - unsafe extern "system" fn GetTotalLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPObjectInfo_Impl, - { + unsafe extern "system" fn GetTotalLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPObjectInfo_Impl::GetTotalLength(this) { Ok(ok__) => { @@ -772,10 +577,7 @@ impl IMDSPObjectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastPlayPosition(this: *mut core::ffi::c_void, pdwlastpos: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPObjectInfo_Impl, - { + unsafe extern "system" fn GetLastPlayPosition(this: *mut core::ffi::c_void, pdwlastpos: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPObjectInfo_Impl::GetLastPlayPosition(this) { Ok(ok__) => { @@ -785,10 +587,7 @@ impl IMDSPObjectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLongestPlayPosition(this: *mut core::ffi::c_void, pdwlongestpos: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPObjectInfo_Impl, - { + unsafe extern "system" fn GetLongestPlayPosition(this: *mut core::ffi::c_void, pdwlongestpos: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPObjectInfo_Impl::GetLongestPlayPosition(this) { Ok(ok__) => { @@ -813,19 +612,13 @@ impl IMDSPObjectInfo_Vtbl { iid == &::IID } } -pub trait IMDSPRevoked_Impl: Sized { +pub trait IMDSPRevoked_Impl: Sized + windows_core::IUnknownImpl { fn GetRevocationURL(&self, ppwszrevocationurl: *mut windows_core::PWSTR, pdwbufferlen: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMDSPRevoked {} impl IMDSPRevoked_Vtbl { - pub const fn new() -> IMDSPRevoked_Vtbl - where - Identity: IMDSPRevoked_Impl, - { - unsafe extern "system" fn GetRevocationURL(this: *mut core::ffi::c_void, ppwszrevocationurl: *mut windows_core::PWSTR, pdwbufferlen: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPRevoked_Impl, - { + pub const fn new() -> IMDSPRevoked_Vtbl { + unsafe extern "system" fn GetRevocationURL(this: *mut core::ffi::c_void, ppwszrevocationurl: *mut windows_core::PWSTR, pdwbufferlen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPRevoked_Impl::GetRevocationURL(this, core::mem::transmute_copy(&ppwszrevocationurl), core::mem::transmute_copy(&pdwbufferlen)).into() } @@ -836,7 +629,7 @@ impl IMDSPRevoked_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait IMDSPStorage_Impl: Sized { +pub trait IMDSPStorage_Impl: Sized + windows_core::IUnknownImpl { fn SetAttributes(&self, dwattributes: u32, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()>; fn GetStorageGlobals(&self) -> windows_core::Result; fn GetAttributes(&self, pdwattributes: *mut u32, pformat: *mut super::Audio::WAVEFORMATEX) -> windows_core::Result<()>; @@ -852,21 +645,12 @@ pub trait IMDSPStorage_Impl: Sized { impl windows_core::RuntimeName for IMDSPStorage {} #[cfg(feature = "Win32_Media_Audio")] impl IMDSPStorage_Vtbl { - pub const fn new() -> IMDSPStorage_Vtbl - where - Identity: IMDSPStorage_Impl, - { - unsafe extern "system" fn SetAttributes(this: *mut core::ffi::c_void, dwattributes: u32, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IMDSPStorage_Impl, - { + pub const fn new() -> IMDSPStorage_Vtbl { + unsafe extern "system" fn SetAttributes(this: *mut core::ffi::c_void, dwattributes: u32, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage_Impl::SetAttributes(this, core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn GetStorageGlobals(this: *mut core::ffi::c_void, ppstorageglobals: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage_Impl, - { + unsafe extern "system" fn GetStorageGlobals(this: *mut core::ffi::c_void, ppstorageglobals: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorage_Impl::GetStorageGlobals(this) { Ok(ok__) => { @@ -876,24 +660,15 @@ impl IMDSPStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pformat: *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IMDSPStorage_Impl, - { + unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pformat: *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage_Impl::GetAttributes(this, core::mem::transmute_copy(&pdwattributes), core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IMDSPStorage_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage_Impl::GetName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&nmaxchars)).into() } - unsafe extern "system" fn GetDate(this: *mut core::ffi::c_void, pdatetimeutc: *mut WMDMDATETIME) -> windows_core::HRESULT - where - Identity: IMDSPStorage_Impl, - { + unsafe extern "system" fn GetDate(this: *mut core::ffi::c_void, pdatetimeutc: *mut WMDMDATETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorage_Impl::GetDate(this) { Ok(ok__) => { @@ -903,24 +678,15 @@ impl IMDSPStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pdwsizelow: *mut u32, pdwsizehigh: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPStorage_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pdwsizelow: *mut u32, pdwsizehigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage_Impl::GetSize(this, core::mem::transmute_copy(&pdwsizelow), core::mem::transmute_copy(&pdwsizehigh)).into() } - unsafe extern "system" fn GetRights(this: *mut core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: IMDSPStorage_Impl, - { + unsafe extern "system" fn GetRights(this: *mut core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage_Impl::GetRights(this, core::mem::transmute_copy(&pprights), core::mem::transmute_copy(&pnrightscount), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn CreateStorage(this: *mut core::ffi::c_void, dwattributes: u32, pformat: *const super::Audio::WAVEFORMATEX, pwszname: windows_core::PCWSTR, ppnewstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage_Impl, - { + unsafe extern "system" fn CreateStorage(this: *mut core::ffi::c_void, dwattributes: u32, pformat: *const super::Audio::WAVEFORMATEX, pwszname: windows_core::PCWSTR, ppnewstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorage_Impl::CreateStorage(this, core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&pformat), core::mem::transmute(&pwszname)) { Ok(ok__) => { @@ -930,10 +696,7 @@ impl IMDSPStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumStorage(this: *mut core::ffi::c_void, ppenumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage_Impl, - { + unsafe extern "system" fn EnumStorage(this: *mut core::ffi::c_void, ppenumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorage_Impl::EnumStorage(this) { Ok(ok__) => { @@ -943,10 +706,7 @@ impl IMDSPStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendOpaqueCommand(this: *mut core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> windows_core::HRESULT - where - Identity: IMDSPStorage_Impl, - { + unsafe extern "system" fn SendOpaqueCommand(this: *mut core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage_Impl::SendOpaqueCommand(this, core::mem::transmute_copy(&pcommand)).into() } @@ -979,14 +739,8 @@ pub trait IMDSPStorage2_Impl: Sized + IMDSPStorage_Impl { impl windows_core::RuntimeName for IMDSPStorage2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] impl IMDSPStorage2_Vtbl { - pub const fn new() -> IMDSPStorage2_Vtbl - where - Identity: IMDSPStorage2_Impl, - { - unsafe extern "system" fn GetStorage(this: *mut core::ffi::c_void, pszstoragename: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage2_Impl, - { + pub const fn new() -> IMDSPStorage2_Vtbl { + unsafe extern "system" fn GetStorage(this: *mut core::ffi::c_void, pszstoragename: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorage2_Impl::GetStorage(this, core::mem::transmute(&pszstoragename)) { Ok(ok__) => { @@ -996,10 +750,7 @@ impl IMDSPStorage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStorage2(this: *mut core::ffi::c_void, dwattributes: u32, dwattributesex: u32, paudioformat: *const super::Audio::WAVEFORMATEX, pvideoformat: *const super::MediaFoundation::VIDEOINFOHEADER, pwszname: windows_core::PCWSTR, qwfilesize: u64, ppnewstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage2_Impl, - { + unsafe extern "system" fn CreateStorage2(this: *mut core::ffi::c_void, dwattributes: u32, dwattributesex: u32, paudioformat: *const super::Audio::WAVEFORMATEX, pvideoformat: *const super::MediaFoundation::VIDEOINFOHEADER, pwszname: windows_core::PCWSTR, qwfilesize: u64, ppnewstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorage2_Impl::CreateStorage2(this, core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&dwattributesex), core::mem::transmute_copy(&paudioformat), core::mem::transmute_copy(&pvideoformat), core::mem::transmute(&pwszname), core::mem::transmute_copy(&qwfilesize)) { Ok(ok__) => { @@ -1009,17 +760,11 @@ impl IMDSPStorage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttributes2(this: *mut core::ffi::c_void, dwattributes: u32, dwattributesex: u32, paudioformat: *const super::Audio::WAVEFORMATEX, pvideoformat: *const super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT - where - Identity: IMDSPStorage2_Impl, - { + unsafe extern "system" fn SetAttributes2(this: *mut core::ffi::c_void, dwattributes: u32, dwattributesex: u32, paudioformat: *const super::Audio::WAVEFORMATEX, pvideoformat: *const super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage2_Impl::SetAttributes2(this, core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&dwattributesex), core::mem::transmute_copy(&paudioformat), core::mem::transmute_copy(&pvideoformat)).into() } - unsafe extern "system" fn GetAttributes2(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pdwattributesex: *mut u32, paudioformat: *mut super::Audio::WAVEFORMATEX, pvideoformat: *mut super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT - where - Identity: IMDSPStorage2_Impl, - { + unsafe extern "system" fn GetAttributes2(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pdwattributesex: *mut u32, paudioformat: *mut super::Audio::WAVEFORMATEX, pvideoformat: *mut super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage2_Impl::GetAttributes2(this, core::mem::transmute_copy(&pdwattributes), core::mem::transmute_copy(&pdwattributesex), core::mem::transmute_copy(&paudioformat), core::mem::transmute_copy(&pvideoformat)).into() } @@ -1044,21 +789,12 @@ pub trait IMDSPStorage3_Impl: Sized + IMDSPStorage2_Impl { impl windows_core::RuntimeName for IMDSPStorage3 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] impl IMDSPStorage3_Vtbl { - pub const fn new() -> IMDSPStorage3_Vtbl - where - Identity: IMDSPStorage3_Impl, - { - unsafe extern "system" fn GetMetadata(this: *mut core::ffi::c_void, pmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage3_Impl, - { + pub const fn new() -> IMDSPStorage3_Vtbl { + unsafe extern "system" fn GetMetadata(this: *mut core::ffi::c_void, pmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage3_Impl::GetMetadata(this, windows_core::from_raw_borrowed(&pmetadata)).into() } - unsafe extern "system" fn SetMetadata(this: *mut core::ffi::c_void, pmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage3_Impl, - { + unsafe extern "system" fn SetMetadata(this: *mut core::ffi::c_void, pmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage3_Impl::SetMetadata(this, windows_core::from_raw_borrowed(&pmetadata)).into() } @@ -1085,28 +821,16 @@ pub trait IMDSPStorage4_Impl: Sized + IMDSPStorage3_Impl { impl windows_core::RuntimeName for IMDSPStorage4 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] impl IMDSPStorage4_Vtbl { - pub const fn new() -> IMDSPStorage4_Vtbl - where - Identity: IMDSPStorage4_Impl, - { - unsafe extern "system" fn SetReferences(this: *mut core::ffi::c_void, dwrefs: u32, ppispstorage: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage4_Impl, - { + pub const fn new() -> IMDSPStorage4_Vtbl { + unsafe extern "system" fn SetReferences(this: *mut core::ffi::c_void, dwrefs: u32, ppispstorage: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage4_Impl::SetReferences(this, core::mem::transmute_copy(&dwrefs), core::mem::transmute_copy(&ppispstorage)).into() } - unsafe extern "system" fn GetReferences(this: *mut core::ffi::c_void, pdwrefs: *mut u32, pppispstorage: *mut *mut Option) -> windows_core::HRESULT - where - Identity: IMDSPStorage4_Impl, - { + unsafe extern "system" fn GetReferences(this: *mut core::ffi::c_void, pdwrefs: *mut u32, pppispstorage: *mut *mut Option) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage4_Impl::GetReferences(this, core::mem::transmute_copy(&pdwrefs), core::mem::transmute_copy(&pppispstorage)).into() } - unsafe extern "system" fn CreateStorageWithMetadata(this: *mut core::ffi::c_void, dwattributes: u32, pwszname: windows_core::PCWSTR, pmetadata: *mut core::ffi::c_void, qwfilesize: u64, ppnewstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage4_Impl, - { + unsafe extern "system" fn CreateStorageWithMetadata(this: *mut core::ffi::c_void, dwattributes: u32, pwszname: windows_core::PCWSTR, pmetadata: *mut core::ffi::c_void, qwfilesize: u64, ppnewstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorage4_Impl::CreateStorageWithMetadata(this, core::mem::transmute_copy(&dwattributes), core::mem::transmute(&pwszname), windows_core::from_raw_borrowed(&pmetadata), core::mem::transmute_copy(&qwfilesize)) { Ok(ok__) => { @@ -1116,17 +840,11 @@ impl IMDSPStorage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSpecifiedMetadata(this: *mut core::ffi::c_void, cproperties: u32, ppwszpropnames: *const windows_core::PCWSTR, pmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage4_Impl, - { + unsafe extern "system" fn GetSpecifiedMetadata(this: *mut core::ffi::c_void, cproperties: u32, ppwszpropnames: *const windows_core::PCWSTR, pmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorage4_Impl::GetSpecifiedMetadata(this, core::mem::transmute_copy(&cproperties), core::mem::transmute_copy(&ppwszpropnames), windows_core::from_raw_borrowed(&pmetadata)).into() } - unsafe extern "system" fn FindStorage(this: *mut core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage4_Impl, - { + unsafe extern "system" fn FindStorage(this: *mut core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorage4_Impl::FindStorage(this, core::mem::transmute_copy(&findscope), core::mem::transmute(&pwszuniqueid)) { Ok(ok__) => { @@ -1136,10 +854,7 @@ impl IMDSPStorage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorage4_Impl, - { + unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorage4_Impl::GetParent(this) { Ok(ok__) => { @@ -1163,7 +878,7 @@ impl IMDSPStorage4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMDSPStorageGlobals_Impl: Sized { +pub trait IMDSPStorageGlobals_Impl: Sized + windows_core::IUnknownImpl { fn GetCapabilities(&self) -> windows_core::Result; fn GetSerialNumber(&self, pserialnum: *mut WMDMID, abmac: *mut u8) -> windows_core::Result<()>; fn GetTotalSize(&self, pdwtotalsizelow: *mut u32, pdwtotalsizehigh: *mut u32) -> windows_core::Result<()>; @@ -1176,14 +891,8 @@ pub trait IMDSPStorageGlobals_Impl: Sized { } impl windows_core::RuntimeName for IMDSPStorageGlobals {} impl IMDSPStorageGlobals_Vtbl { - pub const fn new() -> IMDSPStorageGlobals_Vtbl - where - Identity: IMDSPStorageGlobals_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPStorageGlobals_Impl, - { + pub const fn new() -> IMDSPStorageGlobals_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorageGlobals_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -1193,38 +902,23 @@ impl IMDSPStorageGlobals_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSerialNumber(this: *mut core::ffi::c_void, pserialnum: *mut WMDMID, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: IMDSPStorageGlobals_Impl, - { + unsafe extern "system" fn GetSerialNumber(this: *mut core::ffi::c_void, pserialnum: *mut WMDMID, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorageGlobals_Impl::GetSerialNumber(this, core::mem::transmute_copy(&pserialnum), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn GetTotalSize(this: *mut core::ffi::c_void, pdwtotalsizelow: *mut u32, pdwtotalsizehigh: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPStorageGlobals_Impl, - { + unsafe extern "system" fn GetTotalSize(this: *mut core::ffi::c_void, pdwtotalsizelow: *mut u32, pdwtotalsizehigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorageGlobals_Impl::GetTotalSize(this, core::mem::transmute_copy(&pdwtotalsizelow), core::mem::transmute_copy(&pdwtotalsizehigh)).into() } - unsafe extern "system" fn GetTotalFree(this: *mut core::ffi::c_void, pdwfreelow: *mut u32, pdwfreehigh: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPStorageGlobals_Impl, - { + unsafe extern "system" fn GetTotalFree(this: *mut core::ffi::c_void, pdwfreelow: *mut u32, pdwfreehigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorageGlobals_Impl::GetTotalFree(this, core::mem::transmute_copy(&pdwfreelow), core::mem::transmute_copy(&pdwfreehigh)).into() } - unsafe extern "system" fn GetTotalBad(this: *mut core::ffi::c_void, pdwbadlow: *mut u32, pdwbadhigh: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPStorageGlobals_Impl, - { + unsafe extern "system" fn GetTotalBad(this: *mut core::ffi::c_void, pdwbadlow: *mut u32, pdwbadhigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorageGlobals_Impl::GetTotalBad(this, core::mem::transmute_copy(&pdwbadlow), core::mem::transmute_copy(&pdwbadhigh)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IMDSPStorageGlobals_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorageGlobals_Impl::GetStatus(this) { Ok(ok__) => { @@ -1234,17 +928,11 @@ impl IMDSPStorageGlobals_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, fumode: u32, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorageGlobals_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, fumode: u32, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDSPStorageGlobals_Impl::Initialize(this, core::mem::transmute_copy(&fumode), windows_core::from_raw_borrowed(&pprogress)).into() } - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorageGlobals_Impl, - { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorageGlobals_Impl::GetDevice(this) { Ok(ok__) => { @@ -1254,10 +942,7 @@ impl IMDSPStorageGlobals_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRootStorage(this: *mut core::ffi::c_void, pproot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDSPStorageGlobals_Impl, - { + unsafe extern "system" fn GetRootStorage(this: *mut core::ffi::c_void, pproot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDSPStorageGlobals_Impl::GetRootStorage(this) { Ok(ok__) => { @@ -1284,20 +969,14 @@ impl IMDSPStorageGlobals_Vtbl { iid == &::IID } } -pub trait IMDServiceProvider_Impl: Sized { +pub trait IMDServiceProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceCount(&self) -> windows_core::Result; fn EnumDevices(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMDServiceProvider {} impl IMDServiceProvider_Vtbl { - pub const fn new() -> IMDServiceProvider_Vtbl - where - Identity: IMDServiceProvider_Impl, - { - unsafe extern "system" fn GetDeviceCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMDServiceProvider_Impl, - { + pub const fn new() -> IMDServiceProvider_Vtbl { + unsafe extern "system" fn GetDeviceCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDServiceProvider_Impl::GetDeviceCount(this) { Ok(ok__) => { @@ -1307,10 +986,7 @@ impl IMDServiceProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, ppenumdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDServiceProvider_Impl, - { + unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, ppenumdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDServiceProvider_Impl::EnumDevices(this) { Ok(ok__) => { @@ -1335,14 +1011,8 @@ pub trait IMDServiceProvider2_Impl: Sized + IMDServiceProvider_Impl { } impl windows_core::RuntimeName for IMDServiceProvider2 {} impl IMDServiceProvider2_Vtbl { - pub const fn new() -> IMDServiceProvider2_Vtbl - where - Identity: IMDServiceProvider2_Impl, - { - unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, pwszdevicepath: windows_core::PCWSTR, pdwcount: *mut u32, pppdevicearray: *mut *mut Option) -> windows_core::HRESULT - where - Identity: IMDServiceProvider2_Impl, - { + pub const fn new() -> IMDServiceProvider2_Vtbl { + unsafe extern "system" fn CreateDevice(this: *mut core::ffi::c_void, pwszdevicepath: windows_core::PCWSTR, pdwcount: *mut u32, pppdevicearray: *mut *mut Option) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDServiceProvider2_Impl::CreateDevice(this, core::mem::transmute(&pwszdevicepath), core::mem::transmute_copy(&pdwcount), core::mem::transmute_copy(&pppdevicearray)).into() } @@ -1357,14 +1027,8 @@ pub trait IMDServiceProvider3_Impl: Sized + IMDServiceProvider2_Impl { } impl windows_core::RuntimeName for IMDServiceProvider3 {} impl IMDServiceProvider3_Vtbl { - pub const fn new() -> IMDServiceProvider3_Vtbl - where - Identity: IMDServiceProvider3_Impl, - { - unsafe extern "system" fn SetDeviceEnumPreference(this: *mut core::ffi::c_void, dwenumpref: u32) -> windows_core::HRESULT - where - Identity: IMDServiceProvider3_Impl, - { + pub const fn new() -> IMDServiceProvider3_Vtbl { + unsafe extern "system" fn SetDeviceEnumPreference(this: *mut core::ffi::c_void, dwenumpref: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDServiceProvider3_Impl::SetDeviceEnumPreference(this, core::mem::transmute_copy(&dwenumpref)).into() } @@ -1374,19 +1038,13 @@ impl IMDServiceProvider3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ISCPSecureAuthenticate_Impl: Sized { +pub trait ISCPSecureAuthenticate_Impl: Sized + windows_core::IUnknownImpl { fn GetSecureQuery(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISCPSecureAuthenticate {} impl ISCPSecureAuthenticate_Vtbl { - pub const fn new() -> ISCPSecureAuthenticate_Vtbl - where - Identity: ISCPSecureAuthenticate_Impl, - { - unsafe extern "system" fn GetSecureQuery(this: *mut core::ffi::c_void, ppsecurequery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCPSecureAuthenticate_Impl, - { + pub const fn new() -> ISCPSecureAuthenticate_Vtbl { + unsafe extern "system" fn GetSecureQuery(this: *mut core::ffi::c_void, ppsecurequery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCPSecureAuthenticate_Impl::GetSecureQuery(this) { Ok(ok__) => { @@ -1407,14 +1065,8 @@ pub trait ISCPSecureAuthenticate2_Impl: Sized + ISCPSecureAuthenticate_Impl { } impl windows_core::RuntimeName for ISCPSecureAuthenticate2 {} impl ISCPSecureAuthenticate2_Vtbl { - pub const fn new() -> ISCPSecureAuthenticate2_Vtbl - where - Identity: ISCPSecureAuthenticate2_Impl, - { - unsafe extern "system" fn GetSCPSession(this: *mut core::ffi::c_void, ppscpsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCPSecureAuthenticate2_Impl, - { + pub const fn new() -> ISCPSecureAuthenticate2_Vtbl { + unsafe extern "system" fn GetSCPSession(this: *mut core::ffi::c_void, ppscpsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCPSecureAuthenticate2_Impl::GetSCPSession(this) { Ok(ok__) => { @@ -1430,35 +1082,23 @@ impl ISCPSecureAuthenticate2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISCPSecureExchange_Impl: Sized { +pub trait ISCPSecureExchange_Impl: Sized + windows_core::IUnknownImpl { fn TransferContainerData(&self, pdata: *const u8, dwsize: u32, pfureadyflags: *mut u32, abmac: *mut u8) -> windows_core::Result<()>; fn ObjectData(&self, pdata: *mut u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::Result<()>; fn TransferComplete(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISCPSecureExchange {} impl ISCPSecureExchange_Vtbl { - pub const fn new() -> ISCPSecureExchange_Vtbl - where - Identity: ISCPSecureExchange_Impl, - { - unsafe extern "system" fn TransferContainerData(this: *mut core::ffi::c_void, pdata: *const u8, dwsize: u32, pfureadyflags: *mut u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: ISCPSecureExchange_Impl, - { + pub const fn new() -> ISCPSecureExchange_Vtbl { + unsafe extern "system" fn TransferContainerData(this: *mut core::ffi::c_void, pdata: *const u8, dwsize: u32, pfureadyflags: *mut u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureExchange_Impl::TransferContainerData(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pfureadyflags), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn ObjectData(this: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: ISCPSecureExchange_Impl, - { + unsafe extern "system" fn ObjectData(this: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureExchange_Impl::ObjectData(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn TransferComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCPSecureExchange_Impl, - { + unsafe extern "system" fn TransferComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureExchange_Impl::TransferComplete(this).into() } @@ -1478,14 +1118,8 @@ pub trait ISCPSecureExchange2_Impl: Sized + ISCPSecureExchange_Impl { } impl windows_core::RuntimeName for ISCPSecureExchange2 {} impl ISCPSecureExchange2_Vtbl { - pub const fn new() -> ISCPSecureExchange2_Vtbl - where - Identity: ISCPSecureExchange2_Impl, - { - unsafe extern "system" fn TransferContainerData2(this: *mut core::ffi::c_void, pdata: *const u8, dwsize: u32, pprogresscallback: *mut core::ffi::c_void, pfureadyflags: *mut u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: ISCPSecureExchange2_Impl, - { + pub const fn new() -> ISCPSecureExchange2_Vtbl { + unsafe extern "system" fn TransferContainerData2(this: *mut core::ffi::c_void, pdata: *const u8, dwsize: u32, pprogresscallback: *mut core::ffi::c_void, pfureadyflags: *mut u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureExchange2_Impl::TransferContainerData2(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&dwsize), windows_core::from_raw_borrowed(&pprogresscallback), core::mem::transmute_copy(&pfureadyflags), core::mem::transmute_copy(&abmac)).into() } @@ -1502,14 +1136,8 @@ pub trait ISCPSecureExchange3_Impl: Sized + ISCPSecureExchange2_Impl { } impl windows_core::RuntimeName for ISCPSecureExchange3 {} impl ISCPSecureExchange3_Vtbl { - pub const fn new() -> ISCPSecureExchange3_Vtbl - where - Identity: ISCPSecureExchange3_Impl, - { - unsafe extern "system" fn TransferContainerDataOnClearChannel(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pdata: *const u8, dwsize: u32, pprogresscallback: *mut core::ffi::c_void, pfureadyflags: *mut u32) -> windows_core::HRESULT - where - Identity: ISCPSecureExchange3_Impl, - { + pub const fn new() -> ISCPSecureExchange3_Vtbl { + unsafe extern "system" fn TransferContainerDataOnClearChannel(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pdata: *const u8, dwsize: u32, pprogresscallback: *mut core::ffi::c_void, pfureadyflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCPSecureExchange3_Impl::TransferContainerDataOnClearChannel(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&dwsize), windows_core::from_raw_borrowed(&pprogresscallback)) { Ok(ok__) => { @@ -1519,17 +1147,11 @@ impl ISCPSecureExchange3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectDataOnClearChannel(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISCPSecureExchange3_Impl, - { + unsafe extern "system" fn GetObjectDataOnClearChannel(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureExchange3_Impl::GetObjectDataOnClearChannel(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&pdwsize)).into() } - unsafe extern "system" fn TransferCompleteForDevice(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCPSecureExchange3_Impl, - { + unsafe extern "system" fn TransferCompleteForDevice(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureExchange3_Impl::TransferCompleteForDevice(this, windows_core::from_raw_borrowed(&pdevice)).into() } @@ -1544,7 +1166,7 @@ impl ISCPSecureExchange3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ISCPSecureQuery_Impl: Sized { +pub trait ISCPSecureQuery_Impl: Sized + windows_core::IUnknownImpl { fn GetDataDemands(&self, pfuflags: *mut u32, pdwminrightsdata: *mut u32, pdwminexaminedata: *mut u32, pdwmindecidedata: *mut u32, abmac: *mut u8) -> windows_core::Result<()>; fn ExamineData(&self, fuflags: u32, pwszextension: &windows_core::PCWSTR, pdata: *const u8, dwsize: u32, abmac: *mut u8) -> windows_core::Result<()>; fn MakeDecision(&self, fuflags: u32, pdata: *const u8, dwsize: u32, dwappsec: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstorageglobals: Option<&IMDSPStorageGlobals>, ppexchange: *mut Option, abmac: *mut u8) -> windows_core::Result<()>; @@ -1552,35 +1174,20 @@ pub trait ISCPSecureQuery_Impl: Sized { } impl windows_core::RuntimeName for ISCPSecureQuery {} impl ISCPSecureQuery_Vtbl { - pub const fn new() -> ISCPSecureQuery_Vtbl - where - Identity: ISCPSecureQuery_Impl, - { - unsafe extern "system" fn GetDataDemands(this: *mut core::ffi::c_void, pfuflags: *mut u32, pdwminrightsdata: *mut u32, pdwminexaminedata: *mut u32, pdwmindecidedata: *mut u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: ISCPSecureQuery_Impl, - { + pub const fn new() -> ISCPSecureQuery_Vtbl { + unsafe extern "system" fn GetDataDemands(this: *mut core::ffi::c_void, pfuflags: *mut u32, pdwminrightsdata: *mut u32, pdwminexaminedata: *mut u32, pdwmindecidedata: *mut u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureQuery_Impl::GetDataDemands(this, core::mem::transmute_copy(&pfuflags), core::mem::transmute_copy(&pdwminrightsdata), core::mem::transmute_copy(&pdwminexaminedata), core::mem::transmute_copy(&pdwmindecidedata), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn ExamineData(this: *mut core::ffi::c_void, fuflags: u32, pwszextension: windows_core::PCWSTR, pdata: *const u8, dwsize: u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: ISCPSecureQuery_Impl, - { + unsafe extern "system" fn ExamineData(this: *mut core::ffi::c_void, fuflags: u32, pwszextension: windows_core::PCWSTR, pdata: *const u8, dwsize: u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureQuery_Impl::ExamineData(this, core::mem::transmute_copy(&fuflags), core::mem::transmute(&pwszextension), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn MakeDecision(this: *mut core::ffi::c_void, fuflags: u32, pdata: *const u8, dwsize: u32, dwappsec: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstorageglobals: *mut core::ffi::c_void, ppexchange: *mut *mut core::ffi::c_void, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: ISCPSecureQuery_Impl, - { + unsafe extern "system" fn MakeDecision(this: *mut core::ffi::c_void, fuflags: u32, pdata: *const u8, dwsize: u32, dwappsec: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstorageglobals: *mut core::ffi::c_void, ppexchange: *mut *mut core::ffi::c_void, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureQuery_Impl::MakeDecision(this, core::mem::transmute_copy(&fuflags), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&dwappsec), core::mem::transmute_copy(&pbspsessionkey), core::mem::transmute_copy(&dwsessionkeylen), windows_core::from_raw_borrowed(&pstorageglobals), core::mem::transmute_copy(&ppexchange), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn GetRights(this: *mut core::ffi::c_void, pdata: *const u8, dwsize: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstgglobals: *mut core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: ISCPSecureQuery_Impl, - { + unsafe extern "system" fn GetRights(this: *mut core::ffi::c_void, pdata: *const u8, dwsize: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstgglobals: *mut core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureQuery_Impl::GetRights(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pbspsessionkey), core::mem::transmute_copy(&dwsessionkeylen), windows_core::from_raw_borrowed(&pstgglobals), core::mem::transmute_copy(&pprights), core::mem::transmute_copy(&pnrightscount), core::mem::transmute_copy(&abmac)).into() } @@ -1601,14 +1208,8 @@ pub trait ISCPSecureQuery2_Impl: Sized + ISCPSecureQuery_Impl { } impl windows_core::RuntimeName for ISCPSecureQuery2 {} impl ISCPSecureQuery2_Vtbl { - pub const fn new() -> ISCPSecureQuery2_Vtbl - where - Identity: ISCPSecureQuery2_Impl, - { - unsafe extern "system" fn MakeDecision2(this: *mut core::ffi::c_void, fuflags: u32, pdata: *const u8, dwsize: u32, dwappsec: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstorageglobals: *mut core::ffi::c_void, pappcertapp: *const u8, dwappcertapplen: u32, pappcertsp: *const u8, dwappcertsplen: u32, pszrevocationurl: *mut windows_core::PWSTR, pdwrevocationurllen: *mut u32, pdwrevocationbitflag: *mut u32, pqwfilesize: *mut u64, punknown: *mut core::ffi::c_void, ppexchange: *mut *mut core::ffi::c_void, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: ISCPSecureQuery2_Impl, - { + pub const fn new() -> ISCPSecureQuery2_Vtbl { + unsafe extern "system" fn MakeDecision2(this: *mut core::ffi::c_void, fuflags: u32, pdata: *const u8, dwsize: u32, dwappsec: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstorageglobals: *mut core::ffi::c_void, pappcertapp: *const u8, dwappcertapplen: u32, pappcertsp: *const u8, dwappcertsplen: u32, pszrevocationurl: *mut windows_core::PWSTR, pdwrevocationurllen: *mut u32, pdwrevocationbitflag: *mut u32, pqwfilesize: *mut u64, punknown: *mut core::ffi::c_void, ppexchange: *mut *mut core::ffi::c_void, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureQuery2_Impl::MakeDecision2( this, @@ -1645,21 +1246,12 @@ pub trait ISCPSecureQuery3_Impl: Sized + ISCPSecureQuery2_Impl { } impl windows_core::RuntimeName for ISCPSecureQuery3 {} impl ISCPSecureQuery3_Vtbl { - pub const fn new() -> ISCPSecureQuery3_Vtbl - where - Identity: ISCPSecureQuery3_Impl, - { - unsafe extern "system" fn GetRightsOnClearChannel(this: *mut core::ffi::c_void, pdata: *const u8, dwsize: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstgglobals: *mut core::ffi::c_void, pprogresscallback: *mut core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32) -> windows_core::HRESULT - where - Identity: ISCPSecureQuery3_Impl, - { + pub const fn new() -> ISCPSecureQuery3_Vtbl { + unsafe extern "system" fn GetRightsOnClearChannel(this: *mut core::ffi::c_void, pdata: *const u8, dwsize: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstgglobals: *mut core::ffi::c_void, pprogresscallback: *mut core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureQuery3_Impl::GetRightsOnClearChannel(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pbspsessionkey), core::mem::transmute_copy(&dwsessionkeylen), windows_core::from_raw_borrowed(&pstgglobals), windows_core::from_raw_borrowed(&pprogresscallback), core::mem::transmute_copy(&pprights), core::mem::transmute_copy(&pnrightscount)).into() } - unsafe extern "system" fn MakeDecisionOnClearChannel(this: *mut core::ffi::c_void, fuflags: u32, pdata: *const u8, dwsize: u32, dwappsec: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstorageglobals: *mut core::ffi::c_void, pprogresscallback: *mut core::ffi::c_void, pappcertapp: *const u8, dwappcertapplen: u32, pappcertsp: *const u8, dwappcertsplen: u32, pszrevocationurl: *mut windows_core::PWSTR, pdwrevocationurllen: *mut u32, pdwrevocationbitflag: *mut u32, pqwfilesize: *mut u64, punknown: *mut core::ffi::c_void, ppexchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCPSecureQuery3_Impl, - { + unsafe extern "system" fn MakeDecisionOnClearChannel(this: *mut core::ffi::c_void, fuflags: u32, pdata: *const u8, dwsize: u32, dwappsec: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstorageglobals: *mut core::ffi::c_void, pprogresscallback: *mut core::ffi::c_void, pappcertapp: *const u8, dwappcertapplen: u32, pappcertsp: *const u8, dwappcertsplen: u32, pszrevocationurl: *mut windows_core::PWSTR, pdwrevocationurllen: *mut u32, pdwrevocationbitflag: *mut u32, pqwfilesize: *mut u64, punknown: *mut core::ffi::c_void, ppexchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSecureQuery3_Impl::MakeDecisionOnClearChannel( this, @@ -1694,35 +1286,23 @@ impl ISCPSecureQuery3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ISCPSession_Impl: Sized { +pub trait ISCPSession_Impl: Sized + windows_core::IUnknownImpl { fn BeginSession(&self, pidevice: Option<&IMDSPDevice>, pctx: *const u8, dwsizectx: u32) -> windows_core::Result<()>; fn EndSession(&self, pctx: *const u8, dwsizectx: u32) -> windows_core::Result<()>; fn GetSecureQuery(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISCPSession {} impl ISCPSession_Vtbl { - pub const fn new() -> ISCPSession_Vtbl - where - Identity: ISCPSession_Impl, - { - unsafe extern "system" fn BeginSession(this: *mut core::ffi::c_void, pidevice: *mut core::ffi::c_void, pctx: *const u8, dwsizectx: u32) -> windows_core::HRESULT - where - Identity: ISCPSession_Impl, - { + pub const fn new() -> ISCPSession_Vtbl { + unsafe extern "system" fn BeginSession(this: *mut core::ffi::c_void, pidevice: *mut core::ffi::c_void, pctx: *const u8, dwsizectx: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSession_Impl::BeginSession(this, windows_core::from_raw_borrowed(&pidevice), core::mem::transmute_copy(&pctx), core::mem::transmute_copy(&dwsizectx)).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, pctx: *const u8, dwsizectx: u32) -> windows_core::HRESULT - where - Identity: ISCPSession_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, pctx: *const u8, dwsizectx: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCPSession_Impl::EndSession(this, core::mem::transmute_copy(&pctx), core::mem::transmute_copy(&dwsizectx)).into() } - unsafe extern "system" fn GetSecureQuery(this: *mut core::ffi::c_void, ppsecurequery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCPSession_Impl, - { + unsafe extern "system" fn GetSecureQuery(this: *mut core::ffi::c_void, ppsecurequery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCPSession_Impl::GetSecureQuery(this) { Ok(ok__) => { @@ -1744,7 +1324,7 @@ impl ISCPSession_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait IWMDMDevice_Impl: Sized { +pub trait IWMDMDevice_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::Result<()>; fn GetManufacturer(&self, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::Result<()>; fn GetVersion(&self) -> windows_core::Result; @@ -1761,28 +1341,16 @@ pub trait IWMDMDevice_Impl: Sized { impl windows_core::RuntimeName for IWMDMDevice {} #[cfg(feature = "Win32_Media_Audio")] impl IWMDMDevice_Vtbl { - pub const fn new() -> IWMDMDevice_Vtbl - where - Identity: IWMDMDevice_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + pub const fn new() -> IWMDMDevice_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice_Impl::GetName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&nmaxchars)).into() } - unsafe extern "system" fn GetManufacturer(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + unsafe extern "system" fn GetManufacturer(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice_Impl::GetManufacturer(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&nmaxchars)).into() } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDevice_Impl::GetVersion(this) { Ok(ok__) => { @@ -1792,10 +1360,7 @@ impl IWMDMDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pdwtype: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pdwtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDevice_Impl::GetType(this) { Ok(ok__) => { @@ -1805,24 +1370,15 @@ impl IWMDMDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSerialNumber(this: *mut core::ffi::c_void, pserialnumber: *mut WMDMID, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + unsafe extern "system" fn GetSerialNumber(this: *mut core::ffi::c_void, pserialnumber: *mut WMDMID, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice_Impl::GetSerialNumber(this, core::mem::transmute_copy(&pserialnumber), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn GetPowerSource(this: *mut core::ffi::c_void, pdwpowersource: *mut u32, pdwpercentremaining: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + unsafe extern "system" fn GetPowerSource(this: *mut core::ffi::c_void, pdwpowersource: *mut u32, pdwpercentremaining: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice_Impl::GetPowerSource(this, core::mem::transmute_copy(&pdwpowersource), core::mem::transmute_copy(&pdwpercentremaining)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDevice_Impl::GetStatus(this) { Ok(ok__) => { @@ -1832,10 +1388,7 @@ impl IWMDMDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceIcon(this: *mut core::ffi::c_void, hicon: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + unsafe extern "system" fn GetDeviceIcon(this: *mut core::ffi::c_void, hicon: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDevice_Impl::GetDeviceIcon(this) { Ok(ok__) => { @@ -1845,10 +1398,7 @@ impl IWMDMDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumStorage(this: *mut core::ffi::c_void, ppenumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + unsafe extern "system" fn EnumStorage(this: *mut core::ffi::c_void, ppenumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDevice_Impl::EnumStorage(this) { Ok(ok__) => { @@ -1858,17 +1408,11 @@ impl IWMDMDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormatSupport(this: *mut core::ffi::c_void, ppformatex: *mut *mut super::Audio::WAVEFORMATEX, pnformatcount: *mut u32, pppwszmimetype: *mut *mut windows_core::PWSTR, pnmimetypecount: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + unsafe extern "system" fn GetFormatSupport(this: *mut core::ffi::c_void, ppformatex: *mut *mut super::Audio::WAVEFORMATEX, pnformatcount: *mut u32, pppwszmimetype: *mut *mut windows_core::PWSTR, pnmimetypecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice_Impl::GetFormatSupport(this, core::mem::transmute_copy(&ppformatex), core::mem::transmute_copy(&pnformatcount), core::mem::transmute_copy(&pppwszmimetype), core::mem::transmute_copy(&pnmimetypecount)).into() } - unsafe extern "system" fn SendOpaqueCommand(this: *mut core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> windows_core::HRESULT - where - Identity: IWMDMDevice_Impl, - { + unsafe extern "system" fn SendOpaqueCommand(this: *mut core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice_Impl::SendOpaqueCommand(this, core::mem::transmute_copy(&pcommand)).into() } @@ -1902,14 +1446,8 @@ pub trait IWMDMDevice2_Impl: Sized + IWMDMDevice_Impl { impl windows_core::RuntimeName for IWMDMDevice2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Ole"))] impl IWMDMDevice2_Vtbl { - pub const fn new() -> IWMDMDevice2_Vtbl - where - Identity: IWMDMDevice2_Impl, - { - unsafe extern "system" fn GetStorage(this: *mut core::ffi::c_void, pszstoragename: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMDevice2_Impl, - { + pub const fn new() -> IWMDMDevice2_Vtbl { + unsafe extern "system" fn GetStorage(this: *mut core::ffi::c_void, pszstoragename: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDevice2_Impl::GetStorage(this, core::mem::transmute(&pszstoragename)) { Ok(ok__) => { @@ -1919,24 +1457,15 @@ impl IWMDMDevice2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormatSupport2(this: *mut core::ffi::c_void, dwflags: u32, ppaudioformatex: *mut *mut super::Audio::WAVEFORMATEX, pnaudioformatcount: *mut u32, ppvideoformatex: *mut *mut super::MediaFoundation::VIDEOINFOHEADER, pnvideoformatcount: *mut u32, ppfiletype: *mut *mut WMFILECAPABILITIES, pnfiletypecount: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice2_Impl, - { + unsafe extern "system" fn GetFormatSupport2(this: *mut core::ffi::c_void, dwflags: u32, ppaudioformatex: *mut *mut super::Audio::WAVEFORMATEX, pnaudioformatcount: *mut u32, ppvideoformatex: *mut *mut super::MediaFoundation::VIDEOINFOHEADER, pnvideoformatcount: *mut u32, ppfiletype: *mut *mut WMFILECAPABILITIES, pnfiletypecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice2_Impl::GetFormatSupport2(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ppaudioformatex), core::mem::transmute_copy(&pnaudioformatcount), core::mem::transmute_copy(&ppvideoformatex), core::mem::transmute_copy(&pnvideoformatcount), core::mem::transmute_copy(&ppfiletype), core::mem::transmute_copy(&pnfiletypecount)).into() } - unsafe extern "system" fn GetSpecifyPropertyPages(this: *mut core::ffi::c_void, ppspecifyproppages: *mut *mut core::ffi::c_void, pppunknowns: *mut *mut Option, pcunks: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice2_Impl, - { + unsafe extern "system" fn GetSpecifyPropertyPages(this: *mut core::ffi::c_void, ppspecifyproppages: *mut *mut core::ffi::c_void, pppunknowns: *mut *mut Option, pcunks: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice2_Impl::GetSpecifyPropertyPages(this, core::mem::transmute_copy(&ppspecifyproppages), core::mem::transmute_copy(&pppunknowns), core::mem::transmute_copy(&pcunks)).into() } - unsafe extern "system" fn GetCanonicalName(this: *mut core::ffi::c_void, pwszpnpname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice2_Impl, - { + unsafe extern "system" fn GetCanonicalName(this: *mut core::ffi::c_void, pwszpnpname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice2_Impl::GetCanonicalName(this, core::mem::transmute_copy(&pwszpnpname), core::mem::transmute_copy(&nmaxchars)).into() } @@ -1964,14 +1493,8 @@ pub trait IWMDMDevice3_Impl: Sized + IWMDMDevice2_Impl { impl windows_core::RuntimeName for IWMDMDevice3 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Ole"))] impl IWMDMDevice3_Vtbl { - pub const fn new() -> IWMDMDevice3_Vtbl - where - Identity: IWMDMDevice3_Impl, - { - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pwszpropname: windows_core::PCWSTR, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMDMDevice3_Impl, - { + pub const fn new() -> IWMDMDevice3_Vtbl { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pwszpropname: windows_core::PCWSTR, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDevice3_Impl::GetProperty(this, core::mem::transmute(&pwszpropname)) { Ok(ok__) => { @@ -1981,17 +1504,11 @@ impl IWMDMDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pwszpropname: windows_core::PCWSTR, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMDMDevice3_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pwszpropname: windows_core::PCWSTR, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice3_Impl::SetProperty(this, core::mem::transmute(&pwszpropname), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetFormatCapability(this: *mut core::ffi::c_void, format: WMDM_FORMATCODE, pformatsupport: *mut WMDM_FORMAT_CAPABILITY) -> windows_core::HRESULT - where - Identity: IWMDMDevice3_Impl, - { + unsafe extern "system" fn GetFormatCapability(this: *mut core::ffi::c_void, format: WMDM_FORMATCODE, pformatsupport: *mut WMDM_FORMAT_CAPABILITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDevice3_Impl::GetFormatCapability(this, core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -2001,17 +1518,11 @@ impl IWMDMDevice3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceIoControl(this: *mut core::ffi::c_void, dwiocontrolcode: u32, lpinbuffer: *const u8, ninbuffersize: u32, lpoutbuffer: *mut u8, pnoutbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDevice3_Impl, - { + unsafe extern "system" fn DeviceIoControl(this: *mut core::ffi::c_void, dwiocontrolcode: u32, lpinbuffer: *const u8, ninbuffersize: u32, lpoutbuffer: *mut u8, pnoutbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDevice3_Impl::DeviceIoControl(this, core::mem::transmute_copy(&dwiocontrolcode), core::mem::transmute_copy(&lpinbuffer), core::mem::transmute_copy(&ninbuffersize), core::mem::transmute_copy(&lpoutbuffer), core::mem::transmute_copy(&pnoutbuffersize)).into() } - unsafe extern "system" fn FindStorage(this: *mut core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMDevice3_Impl, - { + unsafe extern "system" fn FindStorage(this: *mut core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDevice3_Impl::FindStorage(this, core::mem::transmute_copy(&findscope), core::mem::transmute(&pwszuniqueid)) { Ok(ok__) => { @@ -2035,7 +1546,7 @@ impl IWMDMDevice3_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait IWMDMDeviceControl_Impl: Sized { +pub trait IWMDMDeviceControl_Impl: Sized + windows_core::IUnknownImpl { fn GetStatus(&self) -> windows_core::Result; fn GetCapabilities(&self) -> windows_core::Result; fn Play(&self) -> windows_core::Result<()>; @@ -2049,14 +1560,8 @@ pub trait IWMDMDeviceControl_Impl: Sized { impl windows_core::RuntimeName for IWMDMDeviceControl {} #[cfg(feature = "Win32_Media_Audio")] impl IWMDMDeviceControl_Vtbl { - pub const fn new() -> IWMDMDeviceControl_Vtbl - where - Identity: IWMDMDeviceControl_Impl, - { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDeviceControl_Impl, - { + pub const fn new() -> IWMDMDeviceControl_Vtbl { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDeviceControl_Impl::GetStatus(this) { Ok(ok__) => { @@ -2066,10 +1571,7 @@ impl IWMDMDeviceControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilitiesmask: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMDeviceControl_Impl, - { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilitiesmask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMDeviceControl_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -2079,45 +1581,27 @@ impl IWMDMDeviceControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Play(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMDeviceControl_Impl, - { + unsafe extern "system" fn Play(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDeviceControl_Impl::Play(this).into() } - unsafe extern "system" fn Record(this: *mut core::ffi::c_void, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IWMDMDeviceControl_Impl, - { + unsafe extern "system" fn Record(this: *mut core::ffi::c_void, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDeviceControl_Impl::Record(this, core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMDeviceControl_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDeviceControl_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMDeviceControl_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDeviceControl_Impl::Resume(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMDeviceControl_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDeviceControl_Impl::Stop(this).into() } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, fumode: u32, noffset: i32) -> windows_core::HRESULT - where - Identity: IWMDMDeviceControl_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, fumode: u32, noffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDeviceControl_Impl::Seek(this, core::mem::transmute_copy(&fumode), core::mem::transmute_copy(&noffset)).into() } @@ -2137,27 +1621,18 @@ impl IWMDMDeviceControl_Vtbl { iid == &::IID } } -pub trait IWMDMDeviceSession_Impl: Sized { +pub trait IWMDMDeviceSession_Impl: Sized + windows_core::IUnknownImpl { fn BeginSession(&self, r#type: WMDM_SESSION_TYPE, pctx: *const u8, dwsizectx: u32) -> windows_core::Result<()>; fn EndSession(&self, r#type: WMDM_SESSION_TYPE, pctx: *const u8, dwsizectx: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMDMDeviceSession {} impl IWMDMDeviceSession_Vtbl { - pub const fn new() -> IWMDMDeviceSession_Vtbl - where - Identity: IWMDMDeviceSession_Impl, - { - unsafe extern "system" fn BeginSession(this: *mut core::ffi::c_void, r#type: WMDM_SESSION_TYPE, pctx: *const u8, dwsizectx: u32) -> windows_core::HRESULT - where - Identity: IWMDMDeviceSession_Impl, - { + pub const fn new() -> IWMDMDeviceSession_Vtbl { + unsafe extern "system" fn BeginSession(this: *mut core::ffi::c_void, r#type: WMDM_SESSION_TYPE, pctx: *const u8, dwsizectx: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDeviceSession_Impl::BeginSession(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pctx), core::mem::transmute_copy(&dwsizectx)).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, r#type: WMDM_SESSION_TYPE, pctx: *const u8, dwsizectx: u32) -> windows_core::HRESULT - where - Identity: IWMDMDeviceSession_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, r#type: WMDM_SESSION_TYPE, pctx: *const u8, dwsizectx: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMDeviceSession_Impl::EndSession(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pctx), core::mem::transmute_copy(&dwsizectx)).into() } @@ -2171,7 +1646,7 @@ impl IWMDMDeviceSession_Vtbl { iid == &::IID } } -pub trait IWMDMEnumDevice_Impl: Sized { +pub trait IWMDMEnumDevice_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppdevice: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result; fn Reset(&self) -> windows_core::Result<()>; @@ -2179,21 +1654,12 @@ pub trait IWMDMEnumDevice_Impl: Sized { } impl windows_core::RuntimeName for IWMDMEnumDevice {} impl IWMDMEnumDevice_Vtbl { - pub const fn new() -> IWMDMEnumDevice_Vtbl - where - Identity: IWMDMEnumDevice_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppdevice: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMEnumDevice_Impl, - { + pub const fn new() -> IWMDMEnumDevice_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppdevice: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMEnumDevice_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppdevice), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMEnumDevice_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMEnumDevice_Impl::Skip(this, core::mem::transmute_copy(&celt)) { Ok(ok__) => { @@ -2203,17 +1669,11 @@ impl IWMDMEnumDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMEnumDevice_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMEnumDevice_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMEnumDevice_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMEnumDevice_Impl::Clone(this) { Ok(ok__) => { @@ -2235,7 +1695,7 @@ impl IWMDMEnumDevice_Vtbl { iid == &::IID } } -pub trait IWMDMEnumStorage_Impl: Sized { +pub trait IWMDMEnumStorage_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppstorage: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result; fn Reset(&self) -> windows_core::Result<()>; @@ -2243,21 +1703,12 @@ pub trait IWMDMEnumStorage_Impl: Sized { } impl windows_core::RuntimeName for IWMDMEnumStorage {} impl IWMDMEnumStorage_Vtbl { - pub const fn new() -> IWMDMEnumStorage_Vtbl - where - Identity: IWMDMEnumStorage_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppstorage: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMEnumStorage_Impl, - { + pub const fn new() -> IWMDMEnumStorage_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppstorage: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMEnumStorage_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppstorage), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMEnumStorage_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMEnumStorage_Impl::Skip(this, core::mem::transmute_copy(&celt)) { Ok(ok__) => { @@ -2267,17 +1718,11 @@ impl IWMDMEnumStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMEnumStorage_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMEnumStorage_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMEnumStorage_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMEnumStorage_Impl::Clone(this) { Ok(ok__) => { @@ -2299,7 +1744,7 @@ impl IWMDMEnumStorage_Vtbl { iid == &::IID } } -pub trait IWMDMLogger_Impl: Sized { +pub trait IWMDMLogger_Impl: Sized + windows_core::IUnknownImpl { fn IsEnabled(&self) -> windows_core::Result; fn Enable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetLogFileName(&self, pszfilename: windows_core::PSTR, nmaxchars: u32) -> windows_core::Result<()>; @@ -2312,14 +1757,8 @@ pub trait IWMDMLogger_Impl: Sized { } impl windows_core::RuntimeName for IWMDMLogger {} impl IWMDMLogger_Vtbl { - pub const fn new() -> IWMDMLogger_Vtbl - where - Identity: IWMDMLogger_Impl, - { - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMDMLogger_Impl, - { + pub const fn new() -> IWMDMLogger_Vtbl { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMLogger_Impl::IsEnabled(this) { Ok(ok__) => { @@ -2329,59 +1768,35 @@ impl IWMDMLogger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMDMLogger_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMLogger_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn GetLogFileName(this: *mut core::ffi::c_void, pszfilename: windows_core::PSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IWMDMLogger_Impl, - { + unsafe extern "system" fn GetLogFileName(this: *mut core::ffi::c_void, pszfilename: windows_core::PSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMLogger_Impl::GetLogFileName(this, core::mem::transmute_copy(&pszfilename), core::mem::transmute_copy(&nmaxchars)).into() } - unsafe extern "system" fn SetLogFileName(this: *mut core::ffi::c_void, pszfilename: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IWMDMLogger_Impl, - { + unsafe extern "system" fn SetLogFileName(this: *mut core::ffi::c_void, pszfilename: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMLogger_Impl::SetLogFileName(this, core::mem::transmute(&pszfilename)).into() } - unsafe extern "system" fn LogString(this: *mut core::ffi::c_void, dwflags: u32, pszsrcname: windows_core::PCSTR, pszlog: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IWMDMLogger_Impl, - { + unsafe extern "system" fn LogString(this: *mut core::ffi::c_void, dwflags: u32, pszsrcname: windows_core::PCSTR, pszlog: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMLogger_Impl::LogString(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszsrcname), core::mem::transmute(&pszlog)).into() } - unsafe extern "system" fn LogDword(this: *mut core::ffi::c_void, dwflags: u32, pszsrcname: windows_core::PCSTR, pszlogformat: windows_core::PCSTR, dwlog: u32) -> windows_core::HRESULT - where - Identity: IWMDMLogger_Impl, - { + unsafe extern "system" fn LogDword(this: *mut core::ffi::c_void, dwflags: u32, pszsrcname: windows_core::PCSTR, pszlogformat: windows_core::PCSTR, dwlog: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMLogger_Impl::LogDword(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszsrcname), core::mem::transmute(&pszlogformat), core::mem::transmute_copy(&dwlog)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMLogger_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMLogger_Impl::Reset(this).into() } - unsafe extern "system" fn GetSizeParams(this: *mut core::ffi::c_void, pdwmaxsize: *mut u32, pdwshrinktosize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMLogger_Impl, - { + unsafe extern "system" fn GetSizeParams(this: *mut core::ffi::c_void, pdwmaxsize: *mut u32, pdwshrinktosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMLogger_Impl::GetSizeParams(this, core::mem::transmute_copy(&pdwmaxsize), core::mem::transmute_copy(&pdwshrinktosize)).into() } - unsafe extern "system" fn SetSizeParams(this: *mut core::ffi::c_void, dwmaxsize: u32, dwshrinktosize: u32) -> windows_core::HRESULT - where - Identity: IWMDMLogger_Impl, - { + unsafe extern "system" fn SetSizeParams(this: *mut core::ffi::c_void, dwmaxsize: u32, dwshrinktosize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMLogger_Impl::SetSizeParams(this, core::mem::transmute_copy(&dwmaxsize), core::mem::transmute_copy(&dwshrinktosize)).into() } @@ -2402,7 +1817,7 @@ impl IWMDMLogger_Vtbl { iid == &::IID } } -pub trait IWMDMMetaData_Impl: Sized { +pub trait IWMDMMetaData_Impl: Sized + windows_core::IUnknownImpl { fn AddItem(&self, r#type: WMDM_TAG_DATATYPE, pwsztagname: &windows_core::PCWSTR, pvalue: *const u8, ilength: u32) -> windows_core::Result<()>; fn QueryByName(&self, pwsztagname: &windows_core::PCWSTR, ptype: *mut WMDM_TAG_DATATYPE, pvalue: *mut *mut u8, pcblength: *mut u32) -> windows_core::Result<()>; fn QueryByIndex(&self, iindex: u32, ppwszname: *mut *mut u16, ptype: *mut WMDM_TAG_DATATYPE, ppvalue: *mut *mut u8, pcblength: *mut u32) -> windows_core::Result<()>; @@ -2410,35 +1825,20 @@ pub trait IWMDMMetaData_Impl: Sized { } impl windows_core::RuntimeName for IWMDMMetaData {} impl IWMDMMetaData_Vtbl { - pub const fn new() -> IWMDMMetaData_Vtbl - where - Identity: IWMDMMetaData_Impl, - { - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, r#type: WMDM_TAG_DATATYPE, pwsztagname: windows_core::PCWSTR, pvalue: *const u8, ilength: u32) -> windows_core::HRESULT - where - Identity: IWMDMMetaData_Impl, - { + pub const fn new() -> IWMDMMetaData_Vtbl { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, r#type: WMDM_TAG_DATATYPE, pwsztagname: windows_core::PCWSTR, pvalue: *const u8, ilength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMMetaData_Impl::AddItem(this, core::mem::transmute_copy(&r#type), core::mem::transmute(&pwsztagname), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&ilength)).into() } - unsafe extern "system" fn QueryByName(this: *mut core::ffi::c_void, pwsztagname: windows_core::PCWSTR, ptype: *mut WMDM_TAG_DATATYPE, pvalue: *mut *mut u8, pcblength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMMetaData_Impl, - { + unsafe extern "system" fn QueryByName(this: *mut core::ffi::c_void, pwsztagname: windows_core::PCWSTR, ptype: *mut WMDM_TAG_DATATYPE, pvalue: *mut *mut u8, pcblength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMMetaData_Impl::QueryByName(this, core::mem::transmute(&pwsztagname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn QueryByIndex(this: *mut core::ffi::c_void, iindex: u32, ppwszname: *mut *mut u16, ptype: *mut WMDM_TAG_DATATYPE, ppvalue: *mut *mut u8, pcblength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMMetaData_Impl, - { + unsafe extern "system" fn QueryByIndex(this: *mut core::ffi::c_void, iindex: u32, ppwszname: *mut *mut u16, ptype: *mut WMDM_TAG_DATATYPE, ppvalue: *mut *mut u8, pcblength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMMetaData_Impl::QueryByIndex(this, core::mem::transmute_copy(&iindex), core::mem::transmute_copy(&ppwszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&ppvalue), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn GetItemCount(this: *mut core::ffi::c_void, icount: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMMetaData_Impl, - { + unsafe extern "system" fn GetItemCount(this: *mut core::ffi::c_void, icount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMMetaData_Impl::GetItemCount(this) { Ok(ok__) => { @@ -2460,19 +1860,13 @@ impl IWMDMMetaData_Vtbl { iid == &::IID } } -pub trait IWMDMNotification_Impl: Sized { +pub trait IWMDMNotification_Impl: Sized + windows_core::IUnknownImpl { fn WMDMMessage(&self, dwmessagetype: u32, pwszcanonicalname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMDMNotification {} impl IWMDMNotification_Vtbl { - pub const fn new() -> IWMDMNotification_Vtbl - where - Identity: IWMDMNotification_Impl, - { - unsafe extern "system" fn WMDMMessage(this: *mut core::ffi::c_void, dwmessagetype: u32, pwszcanonicalname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMDMNotification_Impl, - { + pub const fn new() -> IWMDMNotification_Vtbl { + unsafe extern "system" fn WMDMMessage(this: *mut core::ffi::c_void, dwmessagetype: u32, pwszcanonicalname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMNotification_Impl::WMDMMessage(this, core::mem::transmute_copy(&dwmessagetype), core::mem::transmute(&pwszcanonicalname)).into() } @@ -2482,7 +1876,7 @@ impl IWMDMNotification_Vtbl { iid == &::IID } } -pub trait IWMDMObjectInfo_Impl: Sized { +pub trait IWMDMObjectInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetPlayLength(&self) -> windows_core::Result; fn SetPlayLength(&self, dwlength: u32) -> windows_core::Result<()>; fn GetPlayOffset(&self) -> windows_core::Result; @@ -2493,14 +1887,8 @@ pub trait IWMDMObjectInfo_Impl: Sized { } impl windows_core::RuntimeName for IWMDMObjectInfo {} impl IWMDMObjectInfo_Vtbl { - pub const fn new() -> IWMDMObjectInfo_Vtbl - where - Identity: IWMDMObjectInfo_Impl, - { - unsafe extern "system" fn GetPlayLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMObjectInfo_Impl, - { + pub const fn new() -> IWMDMObjectInfo_Vtbl { + unsafe extern "system" fn GetPlayLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMObjectInfo_Impl::GetPlayLength(this) { Ok(ok__) => { @@ -2510,17 +1898,11 @@ impl IWMDMObjectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlayLength(this: *mut core::ffi::c_void, dwlength: u32) -> windows_core::HRESULT - where - Identity: IWMDMObjectInfo_Impl, - { + unsafe extern "system" fn SetPlayLength(this: *mut core::ffi::c_void, dwlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMObjectInfo_Impl::SetPlayLength(this, core::mem::transmute_copy(&dwlength)).into() } - unsafe extern "system" fn GetPlayOffset(this: *mut core::ffi::c_void, pdwoffset: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMObjectInfo_Impl, - { + unsafe extern "system" fn GetPlayOffset(this: *mut core::ffi::c_void, pdwoffset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMObjectInfo_Impl::GetPlayOffset(this) { Ok(ok__) => { @@ -2530,17 +1912,11 @@ impl IWMDMObjectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlayOffset(this: *mut core::ffi::c_void, dwoffset: u32) -> windows_core::HRESULT - where - Identity: IWMDMObjectInfo_Impl, - { + unsafe extern "system" fn SetPlayOffset(this: *mut core::ffi::c_void, dwoffset: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMObjectInfo_Impl::SetPlayOffset(this, core::mem::transmute_copy(&dwoffset)).into() } - unsafe extern "system" fn GetTotalLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMObjectInfo_Impl, - { + unsafe extern "system" fn GetTotalLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMObjectInfo_Impl::GetTotalLength(this) { Ok(ok__) => { @@ -2550,10 +1926,7 @@ impl IWMDMObjectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastPlayPosition(this: *mut core::ffi::c_void, pdwlastpos: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMObjectInfo_Impl, - { + unsafe extern "system" fn GetLastPlayPosition(this: *mut core::ffi::c_void, pdwlastpos: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMObjectInfo_Impl::GetLastPlayPosition(this) { Ok(ok__) => { @@ -2563,10 +1936,7 @@ impl IWMDMObjectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLongestPlayPosition(this: *mut core::ffi::c_void, pdwlongestpos: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMObjectInfo_Impl, - { + unsafe extern "system" fn GetLongestPlayPosition(this: *mut core::ffi::c_void, pdwlongestpos: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMObjectInfo_Impl::GetLongestPlayPosition(this) { Ok(ok__) => { @@ -2592,7 +1962,7 @@ impl IWMDMObjectInfo_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait IWMDMOperation_Impl: Sized { +pub trait IWMDMOperation_Impl: Sized + windows_core::IUnknownImpl { fn BeginRead(&self) -> windows_core::Result<()>; fn BeginWrite(&self) -> windows_core::Result<()>; fn GetObjectName(&self, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::Result<()>; @@ -2608,77 +1978,44 @@ pub trait IWMDMOperation_Impl: Sized { impl windows_core::RuntimeName for IWMDMOperation {} #[cfg(feature = "Win32_Media_Audio")] impl IWMDMOperation_Vtbl { - pub const fn new() -> IWMDMOperation_Vtbl - where - Identity: IWMDMOperation_Impl, - { - unsafe extern "system" fn BeginRead(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMOperation_Impl, - { + pub const fn new() -> IWMDMOperation_Vtbl { + unsafe extern "system" fn BeginRead(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation_Impl::BeginRead(this).into() } - unsafe extern "system" fn BeginWrite(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMOperation_Impl, - { + unsafe extern "system" fn BeginWrite(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation_Impl::BeginWrite(this).into() } - unsafe extern "system" fn GetObjectName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IWMDMOperation_Impl, - { + unsafe extern "system" fn GetObjectName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation_Impl::GetObjectName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&nmaxchars)).into() } - unsafe extern "system" fn SetObjectName(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IWMDMOperation_Impl, - { + unsafe extern "system" fn SetObjectName(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation_Impl::SetObjectName(this, core::mem::transmute(&pwszname), core::mem::transmute_copy(&nmaxchars)).into() } - unsafe extern "system" fn GetObjectAttributes(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pformat: *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IWMDMOperation_Impl, - { + unsafe extern "system" fn GetObjectAttributes(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pformat: *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation_Impl::GetObjectAttributes(this, core::mem::transmute_copy(&pdwattributes), core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn SetObjectAttributes(this: *mut core::ffi::c_void, dwattributes: u32, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IWMDMOperation_Impl, - { + unsafe extern "system" fn SetObjectAttributes(this: *mut core::ffi::c_void, dwattributes: u32, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation_Impl::SetObjectAttributes(this, core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn GetObjectTotalSize(this: *mut core::ffi::c_void, pdwsize: *mut u32, pdwsizehigh: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMOperation_Impl, - { + unsafe extern "system" fn GetObjectTotalSize(this: *mut core::ffi::c_void, pdwsize: *mut u32, pdwsizehigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation_Impl::GetObjectTotalSize(this, core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&pdwsizehigh)).into() } - unsafe extern "system" fn SetObjectTotalSize(this: *mut core::ffi::c_void, dwsize: u32, dwsizehigh: u32) -> windows_core::HRESULT - where - Identity: IWMDMOperation_Impl, - { + unsafe extern "system" fn SetObjectTotalSize(this: *mut core::ffi::c_void, dwsize: u32, dwsizehigh: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation_Impl::SetObjectTotalSize(this, core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&dwsizehigh)).into() } - unsafe extern "system" fn TransferObjectData(this: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: IWMDMOperation_Impl, - { + unsafe extern "system" fn TransferObjectData(this: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation_Impl::TransferObjectData(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&pdwsize), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn End(this: *mut core::ffi::c_void, phcompletioncode: *const windows_core::HRESULT, pnewobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMOperation_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void, phcompletioncode: *const windows_core::HRESULT, pnewobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation_Impl::End(this, core::mem::transmute_copy(&phcompletioncode), windows_core::from_raw_borrowed(&pnewobject)).into() } @@ -2709,21 +2046,12 @@ pub trait IWMDMOperation2_Impl: Sized + IWMDMOperation_Impl { impl windows_core::RuntimeName for IWMDMOperation2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] impl IWMDMOperation2_Vtbl { - pub const fn new() -> IWMDMOperation2_Vtbl - where - Identity: IWMDMOperation2_Impl, - { - unsafe extern "system" fn SetObjectAttributes2(this: *mut core::ffi::c_void, dwattributes: u32, dwattributesex: u32, pformat: *const super::Audio::WAVEFORMATEX, pvideoformat: *const super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT - where - Identity: IWMDMOperation2_Impl, - { + pub const fn new() -> IWMDMOperation2_Vtbl { + unsafe extern "system" fn SetObjectAttributes2(this: *mut core::ffi::c_void, dwattributes: u32, dwattributesex: u32, pformat: *const super::Audio::WAVEFORMATEX, pvideoformat: *const super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation2_Impl::SetObjectAttributes2(this, core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&dwattributesex), core::mem::transmute_copy(&pformat), core::mem::transmute_copy(&pvideoformat)).into() } - unsafe extern "system" fn GetObjectAttributes2(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pdwattributesex: *mut u32, paudioformat: *mut super::Audio::WAVEFORMATEX, pvideoformat: *mut super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT - where - Identity: IWMDMOperation2_Impl, - { + unsafe extern "system" fn GetObjectAttributes2(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pdwattributesex: *mut u32, paudioformat: *mut super::Audio::WAVEFORMATEX, pvideoformat: *mut super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation2_Impl::GetObjectAttributes2(this, core::mem::transmute_copy(&pdwattributes), core::mem::transmute_copy(&pdwattributesex), core::mem::transmute_copy(&paudioformat), core::mem::transmute_copy(&pvideoformat)).into() } @@ -2745,14 +2073,8 @@ pub trait IWMDMOperation3_Impl: Sized + IWMDMOperation_Impl { impl windows_core::RuntimeName for IWMDMOperation3 {} #[cfg(feature = "Win32_Media_Audio")] impl IWMDMOperation3_Vtbl { - pub const fn new() -> IWMDMOperation3_Vtbl - where - Identity: IWMDMOperation3_Impl, - { - unsafe extern "system" fn TransferObjectDataOnClearChannel(this: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMOperation3_Impl, - { + pub const fn new() -> IWMDMOperation3_Vtbl { + unsafe extern "system" fn TransferObjectDataOnClearChannel(this: *mut core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMOperation3_Impl::TransferObjectDataOnClearChannel(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&pdwsize)).into() } @@ -2762,35 +2084,23 @@ impl IWMDMOperation3_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMDMProgress_Impl: Sized { +pub trait IWMDMProgress_Impl: Sized + windows_core::IUnknownImpl { fn Begin(&self, dwestimatedticks: u32) -> windows_core::Result<()>; fn Progress(&self, dwtranspiredticks: u32) -> windows_core::Result<()>; fn End(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMDMProgress {} impl IWMDMProgress_Vtbl { - pub const fn new() -> IWMDMProgress_Vtbl - where - Identity: IWMDMProgress_Impl, - { - unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, dwestimatedticks: u32) -> windows_core::HRESULT - where - Identity: IWMDMProgress_Impl, - { + pub const fn new() -> IWMDMProgress_Vtbl { + unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, dwestimatedticks: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMProgress_Impl::Begin(this, core::mem::transmute_copy(&dwestimatedticks)).into() } - unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, dwtranspiredticks: u32) -> windows_core::HRESULT - where - Identity: IWMDMProgress_Impl, - { + unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, dwtranspiredticks: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMProgress_Impl::Progress(this, core::mem::transmute_copy(&dwtranspiredticks)).into() } - unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMProgress_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMProgress_Impl::End(this).into() } @@ -2810,14 +2120,8 @@ pub trait IWMDMProgress2_Impl: Sized + IWMDMProgress_Impl { } impl windows_core::RuntimeName for IWMDMProgress2 {} impl IWMDMProgress2_Vtbl { - pub const fn new() -> IWMDMProgress2_Vtbl - where - Identity: IWMDMProgress2_Impl, - { - unsafe extern "system" fn End2(this: *mut core::ffi::c_void, hrcompletioncode: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWMDMProgress2_Impl, - { + pub const fn new() -> IWMDMProgress2_Vtbl { + unsafe extern "system" fn End2(this: *mut core::ffi::c_void, hrcompletioncode: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMProgress2_Impl::End2(this, core::mem::transmute_copy(&hrcompletioncode)).into() } @@ -2834,28 +2138,16 @@ pub trait IWMDMProgress3_Impl: Sized + IWMDMProgress2_Impl { } impl windows_core::RuntimeName for IWMDMProgress3 {} impl IWMDMProgress3_Vtbl { - pub const fn new() -> IWMDMProgress3_Vtbl - where - Identity: IWMDMProgress3_Impl, - { - unsafe extern "system" fn Begin3(this: *mut core::ffi::c_void, eventid: windows_core::GUID, dwestimatedticks: u32, pcontext: *mut OPAQUECOMMAND) -> windows_core::HRESULT - where - Identity: IWMDMProgress3_Impl, - { + pub const fn new() -> IWMDMProgress3_Vtbl { + unsafe extern "system" fn Begin3(this: *mut core::ffi::c_void, eventid: windows_core::GUID, dwestimatedticks: u32, pcontext: *mut OPAQUECOMMAND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMProgress3_Impl::Begin3(this, core::mem::transmute(&eventid), core::mem::transmute_copy(&dwestimatedticks), core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn Progress3(this: *mut core::ffi::c_void, eventid: windows_core::GUID, dwtranspiredticks: u32, pcontext: *mut OPAQUECOMMAND) -> windows_core::HRESULT - where - Identity: IWMDMProgress3_Impl, - { + unsafe extern "system" fn Progress3(this: *mut core::ffi::c_void, eventid: windows_core::GUID, dwtranspiredticks: u32, pcontext: *mut OPAQUECOMMAND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMProgress3_Impl::Progress3(this, core::mem::transmute(&eventid), core::mem::transmute_copy(&dwtranspiredticks), core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn End3(this: *mut core::ffi::c_void, eventid: windows_core::GUID, hrcompletioncode: windows_core::HRESULT, pcontext: *mut OPAQUECOMMAND) -> windows_core::HRESULT - where - Identity: IWMDMProgress3_Impl, - { + unsafe extern "system" fn End3(this: *mut core::ffi::c_void, eventid: windows_core::GUID, hrcompletioncode: windows_core::HRESULT, pcontext: *mut OPAQUECOMMAND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMProgress3_Impl::End3(this, core::mem::transmute(&eventid), core::mem::transmute_copy(&hrcompletioncode), core::mem::transmute_copy(&pcontext)).into() } @@ -2870,19 +2162,13 @@ impl IWMDMProgress3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMDMRevoked_Impl: Sized { +pub trait IWMDMRevoked_Impl: Sized + windows_core::IUnknownImpl { fn GetRevocationURL(&self, ppwszrevocationurl: *mut windows_core::PWSTR, pdwbufferlen: *mut u32, pdwrevokedbitflag: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMDMRevoked {} impl IWMDMRevoked_Vtbl { - pub const fn new() -> IWMDMRevoked_Vtbl - where - Identity: IWMDMRevoked_Impl, - { - unsafe extern "system" fn GetRevocationURL(this: *mut core::ffi::c_void, ppwszrevocationurl: *mut windows_core::PWSTR, pdwbufferlen: *mut u32, pdwrevokedbitflag: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMRevoked_Impl, - { + pub const fn new() -> IWMDMRevoked_Vtbl { + unsafe extern "system" fn GetRevocationURL(this: *mut core::ffi::c_void, ppwszrevocationurl: *mut windows_core::PWSTR, pdwbufferlen: *mut u32, pdwrevokedbitflag: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMRevoked_Impl::GetRevocationURL(this, core::mem::transmute_copy(&ppwszrevocationurl), core::mem::transmute_copy(&pdwbufferlen), core::mem::transmute_copy(&pdwrevokedbitflag)).into() } @@ -2893,7 +2179,7 @@ impl IWMDMRevoked_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait IWMDMStorage_Impl: Sized { +pub trait IWMDMStorage_Impl: Sized + windows_core::IUnknownImpl { fn SetAttributes(&self, dwattributes: u32, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()>; fn GetStorageGlobals(&self) -> windows_core::Result; fn GetAttributes(&self, pdwattributes: *mut u32, pformat: *mut super::Audio::WAVEFORMATEX) -> windows_core::Result<()>; @@ -2908,21 +2194,12 @@ pub trait IWMDMStorage_Impl: Sized { impl windows_core::RuntimeName for IWMDMStorage {} #[cfg(feature = "Win32_Media_Audio")] impl IWMDMStorage_Vtbl { - pub const fn new() -> IWMDMStorage_Vtbl - where - Identity: IWMDMStorage_Impl, - { - unsafe extern "system" fn SetAttributes(this: *mut core::ffi::c_void, dwattributes: u32, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IWMDMStorage_Impl, - { + pub const fn new() -> IWMDMStorage_Vtbl { + unsafe extern "system" fn SetAttributes(this: *mut core::ffi::c_void, dwattributes: u32, pformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage_Impl::SetAttributes(this, core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn GetStorageGlobals(this: *mut core::ffi::c_void, ppstorageglobals: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorage_Impl, - { + unsafe extern "system" fn GetStorageGlobals(this: *mut core::ffi::c_void, ppstorageglobals: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorage_Impl::GetStorageGlobals(this) { Ok(ok__) => { @@ -2932,24 +2209,15 @@ impl IWMDMStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pformat: *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IWMDMStorage_Impl, - { + unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pformat: *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage_Impl::GetAttributes(this, core::mem::transmute_copy(&pdwattributes), core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT - where - Identity: IWMDMStorage_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, nmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage_Impl::GetName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&nmaxchars)).into() } - unsafe extern "system" fn GetDate(this: *mut core::ffi::c_void, pdatetimeutc: *mut WMDMDATETIME) -> windows_core::HRESULT - where - Identity: IWMDMStorage_Impl, - { + unsafe extern "system" fn GetDate(this: *mut core::ffi::c_void, pdatetimeutc: *mut WMDMDATETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorage_Impl::GetDate(this) { Ok(ok__) => { @@ -2959,24 +2227,15 @@ impl IWMDMStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pdwsizelow: *mut u32, pdwsizehigh: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMStorage_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pdwsizelow: *mut u32, pdwsizehigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage_Impl::GetSize(this, core::mem::transmute_copy(&pdwsizelow), core::mem::transmute_copy(&pdwsizehigh)).into() } - unsafe extern "system" fn GetRights(this: *mut core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: IWMDMStorage_Impl, - { + unsafe extern "system" fn GetRights(this: *mut core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage_Impl::GetRights(this, core::mem::transmute_copy(&pprights), core::mem::transmute_copy(&pnrightscount), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn EnumStorage(this: *mut core::ffi::c_void, penumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorage_Impl, - { + unsafe extern "system" fn EnumStorage(this: *mut core::ffi::c_void, penumstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorage_Impl::EnumStorage(this) { Ok(ok__) => { @@ -2986,10 +2245,7 @@ impl IWMDMStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendOpaqueCommand(this: *mut core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> windows_core::HRESULT - where - Identity: IWMDMStorage_Impl, - { + unsafe extern "system" fn SendOpaqueCommand(this: *mut core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage_Impl::SendOpaqueCommand(this, core::mem::transmute_copy(&pcommand)).into() } @@ -3020,14 +2276,8 @@ pub trait IWMDMStorage2_Impl: Sized + IWMDMStorage_Impl { impl windows_core::RuntimeName for IWMDMStorage2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] impl IWMDMStorage2_Vtbl { - pub const fn new() -> IWMDMStorage2_Vtbl - where - Identity: IWMDMStorage2_Impl, - { - unsafe extern "system" fn GetStorage(this: *mut core::ffi::c_void, pszstoragename: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorage2_Impl, - { + pub const fn new() -> IWMDMStorage2_Vtbl { + unsafe extern "system" fn GetStorage(this: *mut core::ffi::c_void, pszstoragename: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorage2_Impl::GetStorage(this, core::mem::transmute(&pszstoragename)) { Ok(ok__) => { @@ -3037,17 +2287,11 @@ impl IWMDMStorage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttributes2(this: *mut core::ffi::c_void, dwattributes: u32, dwattributesex: u32, pformat: *const super::Audio::WAVEFORMATEX, pvideoformat: *const super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT - where - Identity: IWMDMStorage2_Impl, - { + unsafe extern "system" fn SetAttributes2(this: *mut core::ffi::c_void, dwattributes: u32, dwattributesex: u32, pformat: *const super::Audio::WAVEFORMATEX, pvideoformat: *const super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage2_Impl::SetAttributes2(this, core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&dwattributesex), core::mem::transmute_copy(&pformat), core::mem::transmute_copy(&pvideoformat)).into() } - unsafe extern "system" fn GetAttributes2(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pdwattributesex: *mut u32, paudioformat: *mut super::Audio::WAVEFORMATEX, pvideoformat: *mut super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT - where - Identity: IWMDMStorage2_Impl, - { + unsafe extern "system" fn GetAttributes2(this: *mut core::ffi::c_void, pdwattributes: *mut u32, pdwattributesex: *mut u32, paudioformat: *mut super::Audio::WAVEFORMATEX, pvideoformat: *mut super::MediaFoundation::VIDEOINFOHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage2_Impl::GetAttributes2(this, core::mem::transmute_copy(&pdwattributes), core::mem::transmute_copy(&pdwattributesex), core::mem::transmute_copy(&paudioformat), core::mem::transmute_copy(&pvideoformat)).into() } @@ -3073,14 +2317,8 @@ pub trait IWMDMStorage3_Impl: Sized + IWMDMStorage2_Impl { impl windows_core::RuntimeName for IWMDMStorage3 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] impl IWMDMStorage3_Vtbl { - pub const fn new() -> IWMDMStorage3_Vtbl - where - Identity: IWMDMStorage3_Impl, - { - unsafe extern "system" fn GetMetadata(this: *mut core::ffi::c_void, ppmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorage3_Impl, - { + pub const fn new() -> IWMDMStorage3_Vtbl { + unsafe extern "system" fn GetMetadata(this: *mut core::ffi::c_void, ppmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorage3_Impl::GetMetadata(this) { Ok(ok__) => { @@ -3090,17 +2328,11 @@ impl IWMDMStorage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMetadata(this: *mut core::ffi::c_void, pmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorage3_Impl, - { + unsafe extern "system" fn SetMetadata(this: *mut core::ffi::c_void, pmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage3_Impl::SetMetadata(this, windows_core::from_raw_borrowed(&pmetadata)).into() } - unsafe extern "system" fn CreateEmptyMetadataObject(this: *mut core::ffi::c_void, ppmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorage3_Impl, - { + unsafe extern "system" fn CreateEmptyMetadataObject(this: *mut core::ffi::c_void, ppmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorage3_Impl::CreateEmptyMetadataObject(this) { Ok(ok__) => { @@ -3110,10 +2342,7 @@ impl IWMDMStorage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnumPreference(this: *mut core::ffi::c_void, pmode: *mut WMDM_STORAGE_ENUM_MODE, nviews: u32, pviews: *const WMDMMetadataView) -> windows_core::HRESULT - where - Identity: IWMDMStorage3_Impl, - { + unsafe extern "system" fn SetEnumPreference(this: *mut core::ffi::c_void, pmode: *mut WMDM_STORAGE_ENUM_MODE, nviews: u32, pviews: *const WMDMMetadataView) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage3_Impl::SetEnumPreference(this, core::mem::transmute_copy(&pmode), core::mem::transmute_copy(&nviews), core::mem::transmute_copy(&pviews)).into() } @@ -3142,35 +2371,20 @@ pub trait IWMDMStorage4_Impl: Sized + IWMDMStorage3_Impl { impl windows_core::RuntimeName for IWMDMStorage4 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation"))] impl IWMDMStorage4_Vtbl { - pub const fn new() -> IWMDMStorage4_Vtbl - where - Identity: IWMDMStorage4_Impl, - { - unsafe extern "system" fn SetReferences(this: *mut core::ffi::c_void, dwrefs: u32, ppiwmdmstorage: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorage4_Impl, - { + pub const fn new() -> IWMDMStorage4_Vtbl { + unsafe extern "system" fn SetReferences(this: *mut core::ffi::c_void, dwrefs: u32, ppiwmdmstorage: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage4_Impl::SetReferences(this, core::mem::transmute_copy(&dwrefs), core::mem::transmute_copy(&ppiwmdmstorage)).into() } - unsafe extern "system" fn GetReferences(this: *mut core::ffi::c_void, pdwrefs: *mut u32, pppiwmdmstorage: *mut *mut Option) -> windows_core::HRESULT - where - Identity: IWMDMStorage4_Impl, - { + unsafe extern "system" fn GetReferences(this: *mut core::ffi::c_void, pdwrefs: *mut u32, pppiwmdmstorage: *mut *mut Option) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage4_Impl::GetReferences(this, core::mem::transmute_copy(&pdwrefs), core::mem::transmute_copy(&pppiwmdmstorage)).into() } - unsafe extern "system" fn GetRightsWithProgress(this: *mut core::ffi::c_void, piprogresscallback: *mut core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMStorage4_Impl, - { + unsafe extern "system" fn GetRightsWithProgress(this: *mut core::ffi::c_void, piprogresscallback: *mut core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorage4_Impl::GetRightsWithProgress(this, windows_core::from_raw_borrowed(&piprogresscallback), core::mem::transmute_copy(&pprights), core::mem::transmute_copy(&pnrightscount)).into() } - unsafe extern "system" fn GetSpecifiedMetadata(this: *mut core::ffi::c_void, cproperties: u32, ppwszpropnames: *const windows_core::PCWSTR, ppmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorage4_Impl, - { + unsafe extern "system" fn GetSpecifiedMetadata(this: *mut core::ffi::c_void, cproperties: u32, ppwszpropnames: *const windows_core::PCWSTR, ppmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorage4_Impl::GetSpecifiedMetadata(this, core::mem::transmute_copy(&cproperties), core::mem::transmute_copy(&ppwszpropnames)) { Ok(ok__) => { @@ -3180,10 +2394,7 @@ impl IWMDMStorage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindStorage(this: *mut core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorage4_Impl, - { + unsafe extern "system" fn FindStorage(this: *mut core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: windows_core::PCWSTR, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorage4_Impl::FindStorage(this, core::mem::transmute_copy(&findscope), core::mem::transmute(&pwszuniqueid)) { Ok(ok__) => { @@ -3193,10 +2404,7 @@ impl IWMDMStorage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorage4_Impl, - { + unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, ppstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorage4_Impl::GetParent(this) { Ok(ok__) => { @@ -3220,7 +2428,7 @@ impl IWMDMStorage4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMDMStorageControl_Impl: Sized { +pub trait IWMDMStorageControl_Impl: Sized + windows_core::IUnknownImpl { fn Insert(&self, fumode: u32, pwszfile: &windows_core::PCWSTR, poperation: Option<&IWMDMOperation>, pprogress: Option<&IWMDMProgress>) -> windows_core::Result; fn Delete(&self, fumode: u32, pprogress: Option<&IWMDMProgress>) -> windows_core::Result<()>; fn Rename(&self, fumode: u32, pwsznewname: &windows_core::PCWSTR, pprogress: Option<&IWMDMProgress>) -> windows_core::Result<()>; @@ -3229,14 +2437,8 @@ pub trait IWMDMStorageControl_Impl: Sized { } impl windows_core::RuntimeName for IWMDMStorageControl {} impl IWMDMStorageControl_Vtbl { - pub const fn new() -> IWMDMStorageControl_Vtbl - where - Identity: IWMDMStorageControl_Impl, - { - unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, fumode: u32, pwszfile: windows_core::PCWSTR, poperation: *mut core::ffi::c_void, pprogress: *mut core::ffi::c_void, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorageControl_Impl, - { + pub const fn new() -> IWMDMStorageControl_Vtbl { + unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, fumode: u32, pwszfile: windows_core::PCWSTR, poperation: *mut core::ffi::c_void, pprogress: *mut core::ffi::c_void, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorageControl_Impl::Insert(this, core::mem::transmute_copy(&fumode), core::mem::transmute(&pwszfile), windows_core::from_raw_borrowed(&poperation), windows_core::from_raw_borrowed(&pprogress)) { Ok(ok__) => { @@ -3246,31 +2448,19 @@ impl IWMDMStorageControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, fumode: u32, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorageControl_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, fumode: u32, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageControl_Impl::Delete(this, core::mem::transmute_copy(&fumode), windows_core::from_raw_borrowed(&pprogress)).into() } - unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, fumode: u32, pwsznewname: windows_core::PCWSTR, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorageControl_Impl, - { + unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, fumode: u32, pwsznewname: windows_core::PCWSTR, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageControl_Impl::Rename(this, core::mem::transmute_copy(&fumode), core::mem::transmute(&pwsznewname), windows_core::from_raw_borrowed(&pprogress)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, fumode: u32, pwszfile: windows_core::PCWSTR, pprogress: *mut core::ffi::c_void, poperation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorageControl_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, fumode: u32, pwszfile: windows_core::PCWSTR, pprogress: *mut core::ffi::c_void, poperation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageControl_Impl::Read(this, core::mem::transmute_copy(&fumode), core::mem::transmute(&pwszfile), windows_core::from_raw_borrowed(&pprogress), windows_core::from_raw_borrowed(&poperation)).into() } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, fumode: u32, ptargetobject: *mut core::ffi::c_void, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorageControl_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, fumode: u32, ptargetobject: *mut core::ffi::c_void, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageControl_Impl::Move(this, core::mem::transmute_copy(&fumode), windows_core::from_raw_borrowed(&ptargetobject), windows_core::from_raw_borrowed(&pprogress)).into() } @@ -3292,14 +2482,8 @@ pub trait IWMDMStorageControl2_Impl: Sized + IWMDMStorageControl_Impl { } impl windows_core::RuntimeName for IWMDMStorageControl2 {} impl IWMDMStorageControl2_Vtbl { - pub const fn new() -> IWMDMStorageControl2_Vtbl - where - Identity: IWMDMStorageControl2_Impl, - { - unsafe extern "system" fn Insert2(this: *mut core::ffi::c_void, fumode: u32, pwszfilesource: windows_core::PCWSTR, pwszfiledest: windows_core::PCWSTR, poperation: *mut core::ffi::c_void, pprogress: *mut core::ffi::c_void, punknown: *mut core::ffi::c_void, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorageControl2_Impl, - { + pub const fn new() -> IWMDMStorageControl2_Vtbl { + unsafe extern "system" fn Insert2(this: *mut core::ffi::c_void, fumode: u32, pwszfilesource: windows_core::PCWSTR, pwszfiledest: windows_core::PCWSTR, poperation: *mut core::ffi::c_void, pprogress: *mut core::ffi::c_void, punknown: *mut core::ffi::c_void, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageControl2_Impl::Insert2(this, core::mem::transmute_copy(&fumode), core::mem::transmute(&pwszfilesource), core::mem::transmute(&pwszfiledest), windows_core::from_raw_borrowed(&poperation), windows_core::from_raw_borrowed(&pprogress), windows_core::from_raw_borrowed(&punknown), core::mem::transmute_copy(&ppnewobject)).into() } @@ -3314,14 +2498,8 @@ pub trait IWMDMStorageControl3_Impl: Sized + IWMDMStorageControl2_Impl { } impl windows_core::RuntimeName for IWMDMStorageControl3 {} impl IWMDMStorageControl3_Vtbl { - pub const fn new() -> IWMDMStorageControl3_Vtbl - where - Identity: IWMDMStorageControl3_Impl, - { - unsafe extern "system" fn Insert3(this: *mut core::ffi::c_void, fumode: u32, futype: u32, pwszfilesource: windows_core::PCWSTR, pwszfiledest: windows_core::PCWSTR, poperation: *mut core::ffi::c_void, pprogress: *mut core::ffi::c_void, pmetadata: *mut core::ffi::c_void, punknown: *mut core::ffi::c_void, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorageControl3_Impl, - { + pub const fn new() -> IWMDMStorageControl3_Vtbl { + unsafe extern "system" fn Insert3(this: *mut core::ffi::c_void, fumode: u32, futype: u32, pwszfilesource: windows_core::PCWSTR, pwszfiledest: windows_core::PCWSTR, poperation: *mut core::ffi::c_void, pprogress: *mut core::ffi::c_void, pmetadata: *mut core::ffi::c_void, punknown: *mut core::ffi::c_void, ppnewobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageControl3_Impl::Insert3(this, core::mem::transmute_copy(&fumode), core::mem::transmute_copy(&futype), core::mem::transmute(&pwszfilesource), core::mem::transmute(&pwszfiledest), windows_core::from_raw_borrowed(&poperation), windows_core::from_raw_borrowed(&pprogress), windows_core::from_raw_borrowed(&pmetadata), windows_core::from_raw_borrowed(&punknown), core::mem::transmute_copy(&ppnewobject)).into() } @@ -3331,7 +2509,7 @@ impl IWMDMStorageControl3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMDMStorageGlobals_Impl: Sized { +pub trait IWMDMStorageGlobals_Impl: Sized + windows_core::IUnknownImpl { fn GetCapabilities(&self) -> windows_core::Result; fn GetSerialNumber(&self, pserialnum: *mut WMDMID, abmac: *mut u8) -> windows_core::Result<()>; fn GetTotalSize(&self, pdwtotalsizelow: *mut u32, pdwtotalsizehigh: *mut u32) -> windows_core::Result<()>; @@ -3342,14 +2520,8 @@ pub trait IWMDMStorageGlobals_Impl: Sized { } impl windows_core::RuntimeName for IWMDMStorageGlobals {} impl IWMDMStorageGlobals_Vtbl { - pub const fn new() -> IWMDMStorageGlobals_Vtbl - where - Identity: IWMDMStorageGlobals_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMStorageGlobals_Impl, - { + pub const fn new() -> IWMDMStorageGlobals_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorageGlobals_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -3359,38 +2531,23 @@ impl IWMDMStorageGlobals_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSerialNumber(this: *mut core::ffi::c_void, pserialnum: *mut WMDMID, abmac: *mut u8) -> windows_core::HRESULT - where - Identity: IWMDMStorageGlobals_Impl, - { + unsafe extern "system" fn GetSerialNumber(this: *mut core::ffi::c_void, pserialnum: *mut WMDMID, abmac: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageGlobals_Impl::GetSerialNumber(this, core::mem::transmute_copy(&pserialnum), core::mem::transmute_copy(&abmac)).into() } - unsafe extern "system" fn GetTotalSize(this: *mut core::ffi::c_void, pdwtotalsizelow: *mut u32, pdwtotalsizehigh: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMStorageGlobals_Impl, - { + unsafe extern "system" fn GetTotalSize(this: *mut core::ffi::c_void, pdwtotalsizelow: *mut u32, pdwtotalsizehigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageGlobals_Impl::GetTotalSize(this, core::mem::transmute_copy(&pdwtotalsizelow), core::mem::transmute_copy(&pdwtotalsizehigh)).into() } - unsafe extern "system" fn GetTotalFree(this: *mut core::ffi::c_void, pdwfreelow: *mut u32, pdwfreehigh: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMStorageGlobals_Impl, - { + unsafe extern "system" fn GetTotalFree(this: *mut core::ffi::c_void, pdwfreelow: *mut u32, pdwfreehigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageGlobals_Impl::GetTotalFree(this, core::mem::transmute_copy(&pdwfreelow), core::mem::transmute_copy(&pdwfreehigh)).into() } - unsafe extern "system" fn GetTotalBad(this: *mut core::ffi::c_void, pdwbadlow: *mut u32, pdwbadhigh: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMStorageGlobals_Impl, - { + unsafe extern "system" fn GetTotalBad(this: *mut core::ffi::c_void, pdwbadlow: *mut u32, pdwbadhigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageGlobals_Impl::GetTotalBad(this, core::mem::transmute_copy(&pdwbadlow), core::mem::transmute_copy(&pdwbadhigh)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDMStorageGlobals_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMStorageGlobals_Impl::GetStatus(this) { Ok(ok__) => { @@ -3400,10 +2557,7 @@ impl IWMDMStorageGlobals_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, fumode: u32, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDMStorageGlobals_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, fumode: u32, pprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMStorageGlobals_Impl::Initialize(this, core::mem::transmute_copy(&fumode), windows_core::from_raw_borrowed(&pprogress)).into() } @@ -3422,21 +2576,15 @@ impl IWMDMStorageGlobals_Vtbl { iid == &::IID } } -pub trait IWMDeviceManager_Impl: Sized { +pub trait IWMDeviceManager_Impl: Sized + windows_core::IUnknownImpl { fn GetRevision(&self) -> windows_core::Result; fn GetDeviceCount(&self) -> windows_core::Result; fn EnumDevices(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWMDeviceManager {} impl IWMDeviceManager_Vtbl { - pub const fn new() -> IWMDeviceManager_Vtbl - where - Identity: IWMDeviceManager_Impl, - { - unsafe extern "system" fn GetRevision(this: *mut core::ffi::c_void, pdwrevision: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDeviceManager_Impl, - { + pub const fn new() -> IWMDeviceManager_Vtbl { + unsafe extern "system" fn GetRevision(this: *mut core::ffi::c_void, pdwrevision: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDeviceManager_Impl::GetRevision(this) { Ok(ok__) => { @@ -3446,10 +2594,7 @@ impl IWMDeviceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDeviceManager_Impl, - { + unsafe extern "system" fn GetDeviceCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDeviceManager_Impl::GetDeviceCount(this) { Ok(ok__) => { @@ -3459,10 +2604,7 @@ impl IWMDeviceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, ppenumdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDeviceManager_Impl, - { + unsafe extern "system" fn EnumDevices(this: *mut core::ffi::c_void, ppenumdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDeviceManager_Impl::EnumDevices(this) { Ok(ok__) => { @@ -3490,14 +2632,8 @@ pub trait IWMDeviceManager2_Impl: Sized + IWMDeviceManager_Impl { } impl windows_core::RuntimeName for IWMDeviceManager2 {} impl IWMDeviceManager2_Vtbl { - pub const fn new() -> IWMDeviceManager2_Vtbl - where - Identity: IWMDeviceManager2_Impl, - { - unsafe extern "system" fn GetDeviceFromCanonicalName(this: *mut core::ffi::c_void, pwszcanonicalname: windows_core::PCWSTR, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDeviceManager2_Impl, - { + pub const fn new() -> IWMDeviceManager2_Vtbl { + unsafe extern "system" fn GetDeviceFromCanonicalName(this: *mut core::ffi::c_void, pwszcanonicalname: windows_core::PCWSTR, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDeviceManager2_Impl::GetDeviceFromCanonicalName(this, core::mem::transmute(&pwszcanonicalname)) { Ok(ok__) => { @@ -3507,10 +2643,7 @@ impl IWMDeviceManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDevices2(this: *mut core::ffi::c_void, ppenumdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDeviceManager2_Impl, - { + unsafe extern "system" fn EnumDevices2(this: *mut core::ffi::c_void, ppenumdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDeviceManager2_Impl::EnumDevices2(this) { Ok(ok__) => { @@ -3520,10 +2653,7 @@ impl IWMDeviceManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reinitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDeviceManager2_Impl, - { + unsafe extern "system" fn Reinitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDeviceManager2_Impl::Reinitialize(this).into() } @@ -3543,14 +2673,8 @@ pub trait IWMDeviceManager3_Impl: Sized + IWMDeviceManager2_Impl { } impl windows_core::RuntimeName for IWMDeviceManager3 {} impl IWMDeviceManager3_Vtbl { - pub const fn new() -> IWMDeviceManager3_Vtbl - where - Identity: IWMDeviceManager3_Impl, - { - unsafe extern "system" fn SetDeviceEnumPreference(this: *mut core::ffi::c_void, dwenumpref: u32) -> windows_core::HRESULT - where - Identity: IWMDeviceManager3_Impl, - { + pub const fn new() -> IWMDeviceManager3_Vtbl { + unsafe extern "system" fn SetDeviceEnumPreference(this: *mut core::ffi::c_void, dwenumpref: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDeviceManager3_Impl::SetDeviceEnumPreference(this, core::mem::transmute_copy(&dwenumpref)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/impl.rs index 46623f86c5..ad2ba5bfa1 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/impl.rs @@ -7,14 +7,8 @@ pub trait IATSCChannelTuneRequest_Impl: Sized + IChannelTuneRequest_Impl { impl windows_core::RuntimeName for IATSCChannelTuneRequest {} #[cfg(feature = "Win32_System_Com")] impl IATSCChannelTuneRequest_Vtbl { - pub const fn new() -> IATSCChannelTuneRequest_Vtbl - where - Identity: IATSCChannelTuneRequest_Impl, - { - unsafe extern "system" fn MinorChannel(this: *mut core::ffi::c_void, minorchannel: *mut i32) -> windows_core::HRESULT - where - Identity: IATSCChannelTuneRequest_Impl, - { + pub const fn new() -> IATSCChannelTuneRequest_Vtbl { + unsafe extern "system" fn MinorChannel(this: *mut core::ffi::c_void, minorchannel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSCChannelTuneRequest_Impl::MinorChannel(this) { Ok(ok__) => { @@ -24,10 +18,7 @@ impl IATSCChannelTuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinorChannel(this: *mut core::ffi::c_void, minorchannel: i32) -> windows_core::HRESULT - where - Identity: IATSCChannelTuneRequest_Impl, - { + unsafe extern "system" fn SetMinorChannel(this: *mut core::ffi::c_void, minorchannel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSCChannelTuneRequest_Impl::SetMinorChannel(this, core::mem::transmute_copy(&minorchannel)).into() } @@ -50,14 +41,8 @@ pub trait IATSCComponentType_Impl: Sized + IMPEG2ComponentType_Impl { impl windows_core::RuntimeName for IATSCComponentType {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl IATSCComponentType_Vtbl { - pub const fn new() -> IATSCComponentType_Vtbl - where - Identity: IATSCComponentType_Impl, - { - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IATSCComponentType_Impl, - { + pub const fn new() -> IATSCComponentType_Vtbl { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSCComponentType_Impl::Flags(this) { Ok(ok__) => { @@ -67,10 +52,7 @@ impl IATSCComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: IATSCComponentType_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSCComponentType_Impl::SetFlags(this, core::mem::transmute_copy(&flags)).into() } @@ -91,14 +73,8 @@ pub trait IATSCLocator_Impl: Sized + IDigitalLocator_Impl { impl windows_core::RuntimeName for IATSCLocator {} #[cfg(feature = "Win32_System_Com")] impl IATSCLocator_Vtbl { - pub const fn new() -> IATSCLocator_Vtbl - where - Identity: IATSCLocator_Impl, - { - unsafe extern "system" fn PhysicalChannel(this: *mut core::ffi::c_void, physicalchannel: *mut i32) -> windows_core::HRESULT - where - Identity: IATSCLocator_Impl, - { + pub const fn new() -> IATSCLocator_Vtbl { + unsafe extern "system" fn PhysicalChannel(this: *mut core::ffi::c_void, physicalchannel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSCLocator_Impl::PhysicalChannel(this) { Ok(ok__) => { @@ -108,17 +84,11 @@ impl IATSCLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPhysicalChannel(this: *mut core::ffi::c_void, physicalchannel: i32) -> windows_core::HRESULT - where - Identity: IATSCLocator_Impl, - { + unsafe extern "system" fn SetPhysicalChannel(this: *mut core::ffi::c_void, physicalchannel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSCLocator_Impl::SetPhysicalChannel(this, core::mem::transmute_copy(&physicalchannel)).into() } - unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, tsid: *mut i32) -> windows_core::HRESULT - where - Identity: IATSCLocator_Impl, - { + unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, tsid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSCLocator_Impl::TSID(this) { Ok(ok__) => { @@ -128,10 +98,7 @@ impl IATSCLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, tsid: i32) -> windows_core::HRESULT - where - Identity: IATSCLocator_Impl, - { + unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, tsid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSCLocator_Impl::SetTSID(this, core::mem::transmute_copy(&tsid)).into() } @@ -156,14 +123,8 @@ pub trait IATSCLocator2_Impl: Sized + IATSCLocator_Impl { impl windows_core::RuntimeName for IATSCLocator2 {} #[cfg(feature = "Win32_System_Com")] impl IATSCLocator2_Vtbl { - pub const fn new() -> IATSCLocator2_Vtbl - where - Identity: IATSCLocator2_Impl, - { - unsafe extern "system" fn ProgramNumber(this: *mut core::ffi::c_void, programnumber: *mut i32) -> windows_core::HRESULT - where - Identity: IATSCLocator2_Impl, - { + pub const fn new() -> IATSCLocator2_Vtbl { + unsafe extern "system" fn ProgramNumber(this: *mut core::ffi::c_void, programnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSCLocator2_Impl::ProgramNumber(this) { Ok(ok__) => { @@ -173,10 +134,7 @@ impl IATSCLocator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProgramNumber(this: *mut core::ffi::c_void, programnumber: i32) -> windows_core::HRESULT - where - Identity: IATSCLocator2_Impl, - { + unsafe extern "system" fn SetProgramNumber(this: *mut core::ffi::c_void, programnumber: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSCLocator2_Impl::SetProgramNumber(this, core::mem::transmute_copy(&programnumber)).into() } @@ -205,14 +163,8 @@ pub trait IATSCTuningSpace_Impl: Sized + IAnalogTVTuningSpace_Impl { impl windows_core::RuntimeName for IATSCTuningSpace {} #[cfg(feature = "Win32_System_Com")] impl IATSCTuningSpace_Vtbl { - pub const fn new() -> IATSCTuningSpace_Vtbl - where - Identity: IATSCTuningSpace_Impl, - { - unsafe extern "system" fn MinMinorChannel(this: *mut core::ffi::c_void, minminorchannelval: *mut i32) -> windows_core::HRESULT - where - Identity: IATSCTuningSpace_Impl, - { + pub const fn new() -> IATSCTuningSpace_Vtbl { + unsafe extern "system" fn MinMinorChannel(this: *mut core::ffi::c_void, minminorchannelval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSCTuningSpace_Impl::MinMinorChannel(this) { Ok(ok__) => { @@ -222,17 +174,11 @@ impl IATSCTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinMinorChannel(this: *mut core::ffi::c_void, newminminorchannelval: i32) -> windows_core::HRESULT - where - Identity: IATSCTuningSpace_Impl, - { + unsafe extern "system" fn SetMinMinorChannel(this: *mut core::ffi::c_void, newminminorchannelval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSCTuningSpace_Impl::SetMinMinorChannel(this, core::mem::transmute_copy(&newminminorchannelval)).into() } - unsafe extern "system" fn MaxMinorChannel(this: *mut core::ffi::c_void, maxminorchannelval: *mut i32) -> windows_core::HRESULT - where - Identity: IATSCTuningSpace_Impl, - { + unsafe extern "system" fn MaxMinorChannel(this: *mut core::ffi::c_void, maxminorchannelval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSCTuningSpace_Impl::MaxMinorChannel(this) { Ok(ok__) => { @@ -242,17 +188,11 @@ impl IATSCTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxMinorChannel(this: *mut core::ffi::c_void, newmaxminorchannelval: i32) -> windows_core::HRESULT - where - Identity: IATSCTuningSpace_Impl, - { + unsafe extern "system" fn SetMaxMinorChannel(this: *mut core::ffi::c_void, newmaxminorchannelval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSCTuningSpace_Impl::SetMaxMinorChannel(this, core::mem::transmute_copy(&newmaxminorchannelval)).into() } - unsafe extern "system" fn MinPhysicalChannel(this: *mut core::ffi::c_void, minphysicalchannelval: *mut i32) -> windows_core::HRESULT - where - Identity: IATSCTuningSpace_Impl, - { + unsafe extern "system" fn MinPhysicalChannel(this: *mut core::ffi::c_void, minphysicalchannelval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSCTuningSpace_Impl::MinPhysicalChannel(this) { Ok(ok__) => { @@ -262,17 +202,11 @@ impl IATSCTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinPhysicalChannel(this: *mut core::ffi::c_void, newminphysicalchannelval: i32) -> windows_core::HRESULT - where - Identity: IATSCTuningSpace_Impl, - { + unsafe extern "system" fn SetMinPhysicalChannel(this: *mut core::ffi::c_void, newminphysicalchannelval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSCTuningSpace_Impl::SetMinPhysicalChannel(this, core::mem::transmute_copy(&newminphysicalchannelval)).into() } - unsafe extern "system" fn MaxPhysicalChannel(this: *mut core::ffi::c_void, maxphysicalchannelval: *mut i32) -> windows_core::HRESULT - where - Identity: IATSCTuningSpace_Impl, - { + unsafe extern "system" fn MaxPhysicalChannel(this: *mut core::ffi::c_void, maxphysicalchannelval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSCTuningSpace_Impl::MaxPhysicalChannel(this) { Ok(ok__) => { @@ -282,10 +216,7 @@ impl IATSCTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxPhysicalChannel(this: *mut core::ffi::c_void, newmaxphysicalchannelval: i32) -> windows_core::HRESULT - where - Identity: IATSCTuningSpace_Impl, - { + unsafe extern "system" fn SetMaxPhysicalChannel(this: *mut core::ffi::c_void, newmaxphysicalchannelval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSCTuningSpace_Impl::SetMaxPhysicalChannel(this, core::mem::transmute_copy(&newmaxphysicalchannelval)).into() } @@ -305,7 +236,7 @@ impl IATSCTuningSpace_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IATSC_EIT_Impl: Sized { +pub trait IATSC_EIT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetSourceId(&self) -> windows_core::Result; @@ -322,21 +253,12 @@ pub trait IATSC_EIT_Impl: Sized { } impl windows_core::RuntimeName for IATSC_EIT {} impl IATSC_EIT_Vtbl { - pub const fn new() -> IATSC_EIT_Vtbl - where - Identity: IATSC_EIT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + pub const fn new() -> IATSC_EIT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_EIT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_EIT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -346,10 +268,7 @@ impl IATSC_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetSourceId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_EIT_Impl::GetSourceId(this) { Ok(ok__) => { @@ -359,10 +278,7 @@ impl IATSC_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_EIT_Impl::GetProtocolVersion(this) { Ok(ok__) => { @@ -372,10 +288,7 @@ impl IATSC_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_EIT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -385,10 +298,7 @@ impl IATSC_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordEventId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetRecordEventId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_EIT_Impl::GetRecordEventId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -398,10 +308,7 @@ impl IATSC_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordStartTime(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetRecordStartTime(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_EIT_Impl::GetRecordStartTime(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -411,10 +318,7 @@ impl IATSC_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordEtmLocation(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetRecordEtmLocation(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_EIT_Impl::GetRecordEtmLocation(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -424,10 +328,7 @@ impl IATSC_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDuration(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdval: *mut MPEG_TIME) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetRecordDuration(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdval: *mut MPEG_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_EIT_Impl::GetRecordDuration(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -437,17 +338,11 @@ impl IATSC_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTitleText(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwlength: *mut u32, pptext: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetRecordTitleText(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwlength: *mut u32, pptext: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_EIT_Impl::GetRecordTitleText(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&pdwlength), core::mem::transmute_copy(&pptext)).into() } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_EIT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -457,10 +352,7 @@ impl IATSC_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_EIT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -470,10 +362,7 @@ impl IATSC_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_EIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_EIT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } @@ -498,7 +387,7 @@ impl IATSC_EIT_Vtbl { iid == &::IID } } -pub trait IATSC_ETT_Impl: Sized { +pub trait IATSC_ETT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetProtocolVersion(&self) -> windows_core::Result; @@ -507,21 +396,12 @@ pub trait IATSC_ETT_Impl: Sized { } impl windows_core::RuntimeName for IATSC_ETT {} impl IATSC_ETT_Vtbl { - pub const fn new() -> IATSC_ETT_Vtbl - where - Identity: IATSC_ETT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_ETT_Impl, - { + pub const fn new() -> IATSC_ETT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_ETT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_ETT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_ETT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -531,10 +411,7 @@ impl IATSC_ETT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_ETT_Impl, - { + unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_ETT_Impl::GetProtocolVersion(this) { Ok(ok__) => { @@ -544,10 +421,7 @@ impl IATSC_ETT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEtmId(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IATSC_ETT_Impl, - { + unsafe extern "system" fn GetEtmId(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_ETT_Impl::GetEtmId(this) { Ok(ok__) => { @@ -557,10 +431,7 @@ impl IATSC_ETT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExtendedMessageText(this: *mut core::ffi::c_void, pdwlength: *mut u32, pptext: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_ETT_Impl, - { + unsafe extern "system" fn GetExtendedMessageText(this: *mut core::ffi::c_void, pdwlength: *mut u32, pptext: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_ETT_Impl::GetExtendedMessageText(this, core::mem::transmute_copy(&pdwlength), core::mem::transmute_copy(&pptext)).into() } @@ -577,7 +448,7 @@ impl IATSC_ETT_Vtbl { iid == &::IID } } -pub trait IATSC_MGT_Impl: Sized { +pub trait IATSC_MGT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetProtocolVersion(&self) -> windows_core::Result; @@ -594,21 +465,12 @@ pub trait IATSC_MGT_Impl: Sized { } impl windows_core::RuntimeName for IATSC_MGT {} impl IATSC_MGT_Vtbl { - pub const fn new() -> IATSC_MGT_Vtbl - where - Identity: IATSC_MGT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + pub const fn new() -> IATSC_MGT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_MGT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_MGT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -618,10 +480,7 @@ impl IATSC_MGT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_MGT_Impl::GetProtocolVersion(this) { Ok(ok__) => { @@ -631,10 +490,7 @@ impl IATSC_MGT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_MGT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -644,10 +500,7 @@ impl IATSC_MGT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordType(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetRecordType(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_MGT_Impl::GetRecordType(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -657,10 +510,7 @@ impl IATSC_MGT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTypePid(this: *mut core::ffi::c_void, dwrecordindex: u32, ppidval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetRecordTypePid(this: *mut core::ffi::c_void, dwrecordindex: u32, ppidval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_MGT_Impl::GetRecordTypePid(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -670,10 +520,7 @@ impl IATSC_MGT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordVersionNumber(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetRecordVersionNumber(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_MGT_Impl::GetRecordVersionNumber(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -683,10 +530,7 @@ impl IATSC_MGT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_MGT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -696,10 +540,7 @@ impl IATSC_MGT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_MGT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -709,24 +550,15 @@ impl IATSC_MGT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_MGT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *const u32) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_MGT_Impl::GetCountOfTableDescriptors(this, core::mem::transmute_copy(&pdwval)).into() } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_MGT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -736,10 +568,7 @@ impl IATSC_MGT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_MGT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_MGT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } @@ -764,7 +593,7 @@ impl IATSC_MGT_Vtbl { iid == &::IID } } -pub trait IATSC_STT_Impl: Sized { +pub trait IATSC_STT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetProtocolVersion(&self) -> windows_core::Result; fn GetSystemTime(&self) -> windows_core::Result; @@ -776,21 +605,12 @@ pub trait IATSC_STT_Impl: Sized { } impl windows_core::RuntimeName for IATSC_STT {} impl IATSC_STT_Vtbl { - pub const fn new() -> IATSC_STT_Vtbl - where - Identity: IATSC_STT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_STT_Impl, - { + pub const fn new() -> IATSC_STT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_STT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_STT_Impl, - { + unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_STT_Impl::GetProtocolVersion(this) { Ok(ok__) => { @@ -800,10 +620,7 @@ impl IATSC_STT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemTime(this: *mut core::ffi::c_void, pmdtsystemtime: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT - where - Identity: IATSC_STT_Impl, - { + unsafe extern "system" fn GetSystemTime(this: *mut core::ffi::c_void, pmdtsystemtime: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_STT_Impl::GetSystemTime(this) { Ok(ok__) => { @@ -813,10 +630,7 @@ impl IATSC_STT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGpsUtcOffset(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_STT_Impl, - { + unsafe extern "system" fn GetGpsUtcOffset(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_STT_Impl::GetGpsUtcOffset(this) { Ok(ok__) => { @@ -826,10 +640,7 @@ impl IATSC_STT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDaylightSavings(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_STT_Impl, - { + unsafe extern "system" fn GetDaylightSavings(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_STT_Impl::GetDaylightSavings(this) { Ok(ok__) => { @@ -839,10 +650,7 @@ impl IATSC_STT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IATSC_STT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_STT_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -852,10 +660,7 @@ impl IATSC_STT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_STT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_STT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -865,10 +670,7 @@ impl IATSC_STT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_STT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_STT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } @@ -888,7 +690,7 @@ impl IATSC_STT_Vtbl { iid == &::IID } } -pub trait IATSC_VCT_Impl: Sized { +pub trait IATSC_VCT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetTransportStreamId(&self) -> windows_core::Result; @@ -918,21 +720,12 @@ pub trait IATSC_VCT_Impl: Sized { } impl windows_core::RuntimeName for IATSC_VCT {} impl IATSC_VCT_Vtbl { - pub const fn new() -> IATSC_VCT_Vtbl - where - Identity: IATSC_VCT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + pub const fn new() -> IATSC_VCT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_VCT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -942,10 +735,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetTransportStreamId(this) { Ok(ok__) => { @@ -955,10 +745,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetProtocolVersion(this) { Ok(ok__) => { @@ -968,10 +755,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -981,10 +765,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordName(this: *mut core::ffi::c_void, dwrecordindex: u32, pwsname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordName(this: *mut core::ffi::c_void, dwrecordindex: u32, pwsname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordName(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -994,10 +775,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordMajorChannelNumber(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordMajorChannelNumber(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordMajorChannelNumber(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1007,10 +785,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordMinorChannelNumber(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordMinorChannelNumber(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordMinorChannelNumber(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1020,10 +795,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordModulationMode(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordModulationMode(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordModulationMode(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1033,10 +805,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCarrierFrequency(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordCarrierFrequency(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordCarrierFrequency(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1046,10 +815,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTransportStreamId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordTransportStreamId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordTransportStreamId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1059,10 +825,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordProgramNumber(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordProgramNumber(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordProgramNumber(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1072,10 +835,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordEtmLocation(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordEtmLocation(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordEtmLocation(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1085,10 +845,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordIsAccessControlledBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordIsAccessControlledBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordIsAccessControlledBitSet(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1098,10 +855,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordIsHiddenBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordIsHiddenBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordIsHiddenBitSet(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1111,10 +865,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordIsPathSelectBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordIsPathSelectBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordIsPathSelectBitSet(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1124,10 +875,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordIsOutOfBandBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordIsOutOfBandBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordIsOutOfBandBitSet(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1137,10 +885,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordIsHideGuideBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordIsHideGuideBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordIsHideGuideBitSet(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1150,10 +895,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceType(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordServiceType(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordServiceType(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1163,10 +905,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordSourceId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordSourceId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordSourceId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1176,10 +915,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -1189,10 +925,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -1202,24 +935,15 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_VCT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *const u32) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_VCT_Impl::GetCountOfTableDescriptors(this, core::mem::transmute_copy(&pdwval)).into() } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -1229,10 +953,7 @@ impl IATSC_VCT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IATSC_VCT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IATSC_VCT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } @@ -1279,14 +1000,8 @@ pub trait IAnalogAudioComponentType_Impl: Sized + IComponentType_Impl { impl windows_core::RuntimeName for IAnalogAudioComponentType {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl IAnalogAudioComponentType_Vtbl { - pub const fn new() -> IAnalogAudioComponentType_Vtbl - where - Identity: IAnalogAudioComponentType_Impl, - { - unsafe extern "system" fn AnalogAudioMode(this: *mut core::ffi::c_void, mode: *mut super::TVAudioMode) -> windows_core::HRESULT - where - Identity: IAnalogAudioComponentType_Impl, - { + pub const fn new() -> IAnalogAudioComponentType_Vtbl { + unsafe extern "system" fn AnalogAudioMode(this: *mut core::ffi::c_void, mode: *mut super::TVAudioMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnalogAudioComponentType_Impl::AnalogAudioMode(this) { Ok(ok__) => { @@ -1296,10 +1011,7 @@ impl IAnalogAudioComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAnalogAudioMode(this: *mut core::ffi::c_void, mode: super::TVAudioMode) -> windows_core::HRESULT - where - Identity: IAnalogAudioComponentType_Impl, - { + unsafe extern "system" fn SetAnalogAudioMode(this: *mut core::ffi::c_void, mode: super::TVAudioMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnalogAudioComponentType_Impl::SetAnalogAudioMode(this, core::mem::transmute_copy(&mode)).into() } @@ -1322,14 +1034,8 @@ pub trait IAnalogLocator_Impl: Sized + ILocator_Impl { impl windows_core::RuntimeName for IAnalogLocator {} #[cfg(feature = "Win32_System_Com")] impl IAnalogLocator_Vtbl { - pub const fn new() -> IAnalogLocator_Vtbl - where - Identity: IAnalogLocator_Impl, - { - unsafe extern "system" fn VideoStandard(this: *mut core::ffi::c_void, avs: *mut super::AnalogVideoStandard) -> windows_core::HRESULT - where - Identity: IAnalogLocator_Impl, - { + pub const fn new() -> IAnalogLocator_Vtbl { + unsafe extern "system" fn VideoStandard(this: *mut core::ffi::c_void, avs: *mut super::AnalogVideoStandard) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnalogLocator_Impl::VideoStandard(this) { Ok(ok__) => { @@ -1339,10 +1045,7 @@ impl IAnalogLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVideoStandard(this: *mut core::ffi::c_void, avs: super::AnalogVideoStandard) -> windows_core::HRESULT - where - Identity: IAnalogLocator_Impl, - { + unsafe extern "system" fn SetVideoStandard(this: *mut core::ffi::c_void, avs: super::AnalogVideoStandard) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnalogLocator_Impl::SetVideoStandard(this, core::mem::transmute_copy(&avs)).into() } @@ -1369,14 +1072,8 @@ pub trait IAnalogRadioTuningSpace_Impl: Sized + ITuningSpace_Impl { impl windows_core::RuntimeName for IAnalogRadioTuningSpace {} #[cfg(feature = "Win32_System_Com")] impl IAnalogRadioTuningSpace_Vtbl { - pub const fn new() -> IAnalogRadioTuningSpace_Vtbl - where - Identity: IAnalogRadioTuningSpace_Impl, - { - unsafe extern "system" fn MinFrequency(this: *mut core::ffi::c_void, minfrequencyval: *mut i32) -> windows_core::HRESULT - where - Identity: IAnalogRadioTuningSpace_Impl, - { + pub const fn new() -> IAnalogRadioTuningSpace_Vtbl { + unsafe extern "system" fn MinFrequency(this: *mut core::ffi::c_void, minfrequencyval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnalogRadioTuningSpace_Impl::MinFrequency(this) { Ok(ok__) => { @@ -1386,17 +1083,11 @@ impl IAnalogRadioTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinFrequency(this: *mut core::ffi::c_void, newminfrequencyval: i32) -> windows_core::HRESULT - where - Identity: IAnalogRadioTuningSpace_Impl, - { + unsafe extern "system" fn SetMinFrequency(this: *mut core::ffi::c_void, newminfrequencyval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnalogRadioTuningSpace_Impl::SetMinFrequency(this, core::mem::transmute_copy(&newminfrequencyval)).into() } - unsafe extern "system" fn MaxFrequency(this: *mut core::ffi::c_void, maxfrequencyval: *mut i32) -> windows_core::HRESULT - where - Identity: IAnalogRadioTuningSpace_Impl, - { + unsafe extern "system" fn MaxFrequency(this: *mut core::ffi::c_void, maxfrequencyval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnalogRadioTuningSpace_Impl::MaxFrequency(this) { Ok(ok__) => { @@ -1406,17 +1097,11 @@ impl IAnalogRadioTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxFrequency(this: *mut core::ffi::c_void, newmaxfrequencyval: i32) -> windows_core::HRESULT - where - Identity: IAnalogRadioTuningSpace_Impl, - { + unsafe extern "system" fn SetMaxFrequency(this: *mut core::ffi::c_void, newmaxfrequencyval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnalogRadioTuningSpace_Impl::SetMaxFrequency(this, core::mem::transmute_copy(&newmaxfrequencyval)).into() } - unsafe extern "system" fn Step(this: *mut core::ffi::c_void, stepval: *mut i32) -> windows_core::HRESULT - where - Identity: IAnalogRadioTuningSpace_Impl, - { + unsafe extern "system" fn Step(this: *mut core::ffi::c_void, stepval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnalogRadioTuningSpace_Impl::Step(this) { Ok(ok__) => { @@ -1426,10 +1111,7 @@ impl IAnalogRadioTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStep(this: *mut core::ffi::c_void, newstepval: i32) -> windows_core::HRESULT - where - Identity: IAnalogRadioTuningSpace_Impl, - { + unsafe extern "system" fn SetStep(this: *mut core::ffi::c_void, newstepval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnalogRadioTuningSpace_Impl::SetStep(this, core::mem::transmute_copy(&newstepval)).into() } @@ -1456,14 +1138,8 @@ pub trait IAnalogRadioTuningSpace2_Impl: Sized + IAnalogRadioTuningSpace_Impl { impl windows_core::RuntimeName for IAnalogRadioTuningSpace2 {} #[cfg(feature = "Win32_System_Com")] impl IAnalogRadioTuningSpace2_Vtbl { - pub const fn new() -> IAnalogRadioTuningSpace2_Vtbl - where - Identity: IAnalogRadioTuningSpace2_Impl, - { - unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, countrycodeval: *mut i32) -> windows_core::HRESULT - where - Identity: IAnalogRadioTuningSpace2_Impl, - { + pub const fn new() -> IAnalogRadioTuningSpace2_Vtbl { + unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, countrycodeval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnalogRadioTuningSpace2_Impl::CountryCode(this) { Ok(ok__) => { @@ -1473,10 +1149,7 @@ impl IAnalogRadioTuningSpace2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, newcountrycodeval: i32) -> windows_core::HRESULT - where - Identity: IAnalogRadioTuningSpace2_Impl, - { + unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, newcountrycodeval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnalogRadioTuningSpace2_Impl::SetCountryCode(this, core::mem::transmute_copy(&newcountrycodeval)).into() } @@ -1505,14 +1178,8 @@ pub trait IAnalogTVTuningSpace_Impl: Sized + ITuningSpace_Impl { impl windows_core::RuntimeName for IAnalogTVTuningSpace {} #[cfg(feature = "Win32_System_Com")] impl IAnalogTVTuningSpace_Vtbl { - pub const fn new() -> IAnalogTVTuningSpace_Vtbl - where - Identity: IAnalogTVTuningSpace_Impl, - { - unsafe extern "system" fn MinChannel(this: *mut core::ffi::c_void, minchannelval: *mut i32) -> windows_core::HRESULT - where - Identity: IAnalogTVTuningSpace_Impl, - { + pub const fn new() -> IAnalogTVTuningSpace_Vtbl { + unsafe extern "system" fn MinChannel(this: *mut core::ffi::c_void, minchannelval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnalogTVTuningSpace_Impl::MinChannel(this) { Ok(ok__) => { @@ -1522,17 +1189,11 @@ impl IAnalogTVTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinChannel(this: *mut core::ffi::c_void, newminchannelval: i32) -> windows_core::HRESULT - where - Identity: IAnalogTVTuningSpace_Impl, - { + unsafe extern "system" fn SetMinChannel(this: *mut core::ffi::c_void, newminchannelval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnalogTVTuningSpace_Impl::SetMinChannel(this, core::mem::transmute_copy(&newminchannelval)).into() } - unsafe extern "system" fn MaxChannel(this: *mut core::ffi::c_void, maxchannelval: *mut i32) -> windows_core::HRESULT - where - Identity: IAnalogTVTuningSpace_Impl, - { + unsafe extern "system" fn MaxChannel(this: *mut core::ffi::c_void, maxchannelval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnalogTVTuningSpace_Impl::MaxChannel(this) { Ok(ok__) => { @@ -1542,17 +1203,11 @@ impl IAnalogTVTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxChannel(this: *mut core::ffi::c_void, newmaxchannelval: i32) -> windows_core::HRESULT - where - Identity: IAnalogTVTuningSpace_Impl, - { + unsafe extern "system" fn SetMaxChannel(this: *mut core::ffi::c_void, newmaxchannelval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnalogTVTuningSpace_Impl::SetMaxChannel(this, core::mem::transmute_copy(&newmaxchannelval)).into() } - unsafe extern "system" fn InputType(this: *mut core::ffi::c_void, inputtypeval: *mut super::TunerInputType) -> windows_core::HRESULT - where - Identity: IAnalogTVTuningSpace_Impl, - { + unsafe extern "system" fn InputType(this: *mut core::ffi::c_void, inputtypeval: *mut super::TunerInputType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnalogTVTuningSpace_Impl::InputType(this) { Ok(ok__) => { @@ -1562,17 +1217,11 @@ impl IAnalogTVTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputType(this: *mut core::ffi::c_void, newinputtypeval: super::TunerInputType) -> windows_core::HRESULT - where - Identity: IAnalogTVTuningSpace_Impl, - { + unsafe extern "system" fn SetInputType(this: *mut core::ffi::c_void, newinputtypeval: super::TunerInputType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnalogTVTuningSpace_Impl::SetInputType(this, core::mem::transmute_copy(&newinputtypeval)).into() } - unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, countrycodeval: *mut i32) -> windows_core::HRESULT - where - Identity: IAnalogTVTuningSpace_Impl, - { + unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, countrycodeval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnalogTVTuningSpace_Impl::CountryCode(this) { Ok(ok__) => { @@ -1582,10 +1231,7 @@ impl IAnalogTVTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, newcountrycodeval: i32) -> windows_core::HRESULT - where - Identity: IAnalogTVTuningSpace_Impl, - { + unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, newcountrycodeval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnalogTVTuningSpace_Impl::SetCountryCode(this, core::mem::transmute_copy(&newcountrycodeval)).into() } @@ -1605,7 +1251,7 @@ impl IAnalogTVTuningSpace_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IAtscContentAdvisoryDescriptor_Impl: Sized { +pub trait IAtscContentAdvisoryDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetRatingRegionCount(&self) -> windows_core::Result; @@ -1617,14 +1263,8 @@ pub trait IAtscContentAdvisoryDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IAtscContentAdvisoryDescriptor {} impl IAtscContentAdvisoryDescriptor_Vtbl { - pub const fn new() -> IAtscContentAdvisoryDescriptor_Vtbl - where - Identity: IAtscContentAdvisoryDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IAtscContentAdvisoryDescriptor_Impl, - { + pub const fn new() -> IAtscContentAdvisoryDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscContentAdvisoryDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -1634,10 +1274,7 @@ impl IAtscContentAdvisoryDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IAtscContentAdvisoryDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscContentAdvisoryDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -1647,10 +1284,7 @@ impl IAtscContentAdvisoryDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRatingRegionCount(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IAtscContentAdvisoryDescriptor_Impl, - { + unsafe extern "system" fn GetRatingRegionCount(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscContentAdvisoryDescriptor_Impl::GetRatingRegionCount(this) { Ok(ok__) => { @@ -1660,10 +1294,7 @@ impl IAtscContentAdvisoryDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordRatingRegion(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IAtscContentAdvisoryDescriptor_Impl, - { + unsafe extern "system" fn GetRecordRatingRegion(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscContentAdvisoryDescriptor_Impl::GetRecordRatingRegion(this, core::mem::transmute_copy(&bindex)) { Ok(ok__) => { @@ -1673,10 +1304,7 @@ impl IAtscContentAdvisoryDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordRatedDimensions(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IAtscContentAdvisoryDescriptor_Impl, - { + unsafe extern "system" fn GetRecordRatedDimensions(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscContentAdvisoryDescriptor_Impl::GetRecordRatedDimensions(this, core::mem::transmute_copy(&bindex)) { Ok(ok__) => { @@ -1686,10 +1314,7 @@ impl IAtscContentAdvisoryDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordRatingDimension(this: *mut core::ffi::c_void, bindexouter: u8, bindexinner: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IAtscContentAdvisoryDescriptor_Impl, - { + unsafe extern "system" fn GetRecordRatingDimension(this: *mut core::ffi::c_void, bindexouter: u8, bindexinner: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscContentAdvisoryDescriptor_Impl::GetRecordRatingDimension(this, core::mem::transmute_copy(&bindexouter), core::mem::transmute_copy(&bindexinner)) { Ok(ok__) => { @@ -1699,10 +1324,7 @@ impl IAtscContentAdvisoryDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordRatingValue(this: *mut core::ffi::c_void, bindexouter: u8, bindexinner: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IAtscContentAdvisoryDescriptor_Impl, - { + unsafe extern "system" fn GetRecordRatingValue(this: *mut core::ffi::c_void, bindexouter: u8, bindexinner: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscContentAdvisoryDescriptor_Impl::GetRecordRatingValue(this, core::mem::transmute_copy(&bindexouter), core::mem::transmute_copy(&bindexinner)) { Ok(ok__) => { @@ -1712,10 +1334,7 @@ impl IAtscContentAdvisoryDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordRatingDescriptionText(this: *mut core::ffi::c_void, bindex: u8, pblength: *mut u8, pptext: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IAtscContentAdvisoryDescriptor_Impl, - { + unsafe extern "system" fn GetRecordRatingDescriptionText(this: *mut core::ffi::c_void, bindex: u8, pblength: *mut u8, pptext: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAtscContentAdvisoryDescriptor_Impl::GetRecordRatingDescriptionText(this, core::mem::transmute_copy(&bindex), core::mem::transmute_copy(&pblength), core::mem::transmute_copy(&pptext)).into() } @@ -1735,7 +1354,7 @@ impl IAtscContentAdvisoryDescriptor_Vtbl { iid == &::IID } } -pub trait IAtscPsipParser_Impl: Sized { +pub trait IAtscPsipParser_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, punkmpeg2data: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetPAT(&self) -> windows_core::Result; fn GetCAT(&self, dwtimeout: u32) -> windows_core::Result; @@ -1750,21 +1369,12 @@ pub trait IAtscPsipParser_Impl: Sized { } impl windows_core::RuntimeName for IAtscPsipParser {} impl IAtscPsipParser_Vtbl { - pub const fn new() -> IAtscPsipParser_Vtbl - where - Identity: IAtscPsipParser_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, punkmpeg2data: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + pub const fn new() -> IAtscPsipParser_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, punkmpeg2data: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAtscPsipParser_Impl::Initialize(this, windows_core::from_raw_borrowed(&punkmpeg2data)).into() } - unsafe extern "system" fn GetPAT(this: *mut core::ffi::c_void, pppat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + unsafe extern "system" fn GetPAT(this: *mut core::ffi::c_void, pppat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetPAT(this) { Ok(ok__) => { @@ -1774,10 +1384,7 @@ impl IAtscPsipParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAT(this: *mut core::ffi::c_void, dwtimeout: u32, ppcat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + unsafe extern "system" fn GetCAT(this: *mut core::ffi::c_void, dwtimeout: u32, ppcat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetCAT(this, core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -1787,10 +1394,7 @@ impl IAtscPsipParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPMT(this: *mut core::ffi::c_void, pid: u16, pwprogramnumber: *const u16, pppmt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + unsafe extern "system" fn GetPMT(this: *mut core::ffi::c_void, pid: u16, pwprogramnumber: *const u16, pppmt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetPMT(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&pwprogramnumber)) { Ok(ok__) => { @@ -1800,10 +1404,7 @@ impl IAtscPsipParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTSDT(this: *mut core::ffi::c_void, pptsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + unsafe extern "system" fn GetTSDT(this: *mut core::ffi::c_void, pptsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetTSDT(this) { Ok(ok__) => { @@ -1813,10 +1414,7 @@ impl IAtscPsipParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMGT(this: *mut core::ffi::c_void, ppmgt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + unsafe extern "system" fn GetMGT(this: *mut core::ffi::c_void, ppmgt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetMGT(this) { Ok(ok__) => { @@ -1826,10 +1424,7 @@ impl IAtscPsipParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVCT(this: *mut core::ffi::c_void, tableid: u8, fgetnexttable: super::super::super::Foundation::BOOL, ppvct: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + unsafe extern "system" fn GetVCT(this: *mut core::ffi::c_void, tableid: u8, fgetnexttable: super::super::super::Foundation::BOOL, ppvct: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetVCT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&fgetnexttable)) { Ok(ok__) => { @@ -1839,10 +1434,7 @@ impl IAtscPsipParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEIT(this: *mut core::ffi::c_void, pid: u16, pwsourceid: *const u16, dwtimeout: u32, ppeit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + unsafe extern "system" fn GetEIT(this: *mut core::ffi::c_void, pid: u16, pwsourceid: *const u16, dwtimeout: u32, ppeit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetEIT(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&pwsourceid), core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -1852,10 +1444,7 @@ impl IAtscPsipParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetETT(this: *mut core::ffi::c_void, pid: u16, wsourceid: *const u16, pweventid: *const u16, ppett: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + unsafe extern "system" fn GetETT(this: *mut core::ffi::c_void, pid: u16, wsourceid: *const u16, pweventid: *const u16, ppett: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetETT(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&wsourceid), core::mem::transmute_copy(&pweventid)) { Ok(ok__) => { @@ -1865,10 +1454,7 @@ impl IAtscPsipParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSTT(this: *mut core::ffi::c_void, ppstt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + unsafe extern "system" fn GetSTT(this: *mut core::ffi::c_void, ppstt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetSTT(this) { Ok(ok__) => { @@ -1878,10 +1464,7 @@ impl IAtscPsipParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEAS(this: *mut core::ffi::c_void, pid: u16, ppeas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAtscPsipParser_Impl, - { + unsafe extern "system" fn GetEAS(this: *mut core::ffi::c_void, pid: u16, ppeas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetEAS(this, core::mem::transmute_copy(&pid)) { Ok(ok__) => { @@ -1910,21 +1493,15 @@ impl IAtscPsipParser_Vtbl { iid == &::IID } } -pub trait IAttributeGet_Impl: Sized { +pub trait IAttributeGet_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAttribIndexed(&self, lindex: i32, pguidattribute: *mut windows_core::GUID, pbattribute: *mut u8, pdwattributelength: *mut u32) -> windows_core::Result<()>; fn GetAttrib(&self, guidattribute: &windows_core::GUID, pbattribute: *mut u8, pdwattributelength: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAttributeGet {} impl IAttributeGet_Vtbl { - pub const fn new() -> IAttributeGet_Vtbl - where - Identity: IAttributeGet_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAttributeGet_Impl, - { + pub const fn new() -> IAttributeGet_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAttributeGet_Impl::GetCount(this) { Ok(ok__) => { @@ -1934,17 +1511,11 @@ impl IAttributeGet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttribIndexed(this: *mut core::ffi::c_void, lindex: i32, pguidattribute: *mut windows_core::GUID, pbattribute: *mut u8, pdwattributelength: *mut u32) -> windows_core::HRESULT - where - Identity: IAttributeGet_Impl, - { + unsafe extern "system" fn GetAttribIndexed(this: *mut core::ffi::c_void, lindex: i32, pguidattribute: *mut windows_core::GUID, pbattribute: *mut u8, pdwattributelength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttributeGet_Impl::GetAttribIndexed(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pguidattribute), core::mem::transmute_copy(&pbattribute), core::mem::transmute_copy(&pdwattributelength)).into() } - unsafe extern "system" fn GetAttrib(this: *mut core::ffi::c_void, guidattribute: windows_core::GUID, pbattribute: *mut u8, pdwattributelength: *mut u32) -> windows_core::HRESULT - where - Identity: IAttributeGet_Impl, - { + unsafe extern "system" fn GetAttrib(this: *mut core::ffi::c_void, guidattribute: windows_core::GUID, pbattribute: *mut u8, pdwattributelength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttributeGet_Impl::GetAttrib(this, core::mem::transmute(&guidattribute), core::mem::transmute_copy(&pbattribute), core::mem::transmute_copy(&pdwattributelength)).into() } @@ -1959,19 +1530,13 @@ impl IAttributeGet_Vtbl { iid == &::IID } } -pub trait IAttributeSet_Impl: Sized { +pub trait IAttributeSet_Impl: Sized + windows_core::IUnknownImpl { fn SetAttrib(&self, guidattribute: &windows_core::GUID, pbattribute: *const u8, dwattributelength: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAttributeSet {} impl IAttributeSet_Vtbl { - pub const fn new() -> IAttributeSet_Vtbl - where - Identity: IAttributeSet_Impl, - { - unsafe extern "system" fn SetAttrib(this: *mut core::ffi::c_void, guidattribute: windows_core::GUID, pbattribute: *const u8, dwattributelength: u32) -> windows_core::HRESULT - where - Identity: IAttributeSet_Impl, - { + pub const fn new() -> IAttributeSet_Vtbl { + unsafe extern "system" fn SetAttrib(this: *mut core::ffi::c_void, guidattribute: windows_core::GUID, pbattribute: *const u8, dwattributelength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttributeSet_Impl::SetAttrib(this, core::mem::transmute(&guidattribute), core::mem::transmute_copy(&pbattribute), core::mem::transmute_copy(&dwattributelength)).into() } @@ -1987,10 +1552,7 @@ pub trait IAuxInTuningSpace_Impl: Sized + ITuningSpace_Impl {} impl windows_core::RuntimeName for IAuxInTuningSpace {} #[cfg(feature = "Win32_System_Com")] impl IAuxInTuningSpace_Vtbl { - pub const fn new() -> IAuxInTuningSpace_Vtbl - where - Identity: IAuxInTuningSpace_Impl, - { + pub const fn new() -> IAuxInTuningSpace_Vtbl { Self { base__: ITuningSpace_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -2006,14 +1568,8 @@ pub trait IAuxInTuningSpace2_Impl: Sized + IAuxInTuningSpace_Impl { impl windows_core::RuntimeName for IAuxInTuningSpace2 {} #[cfg(feature = "Win32_System_Com")] impl IAuxInTuningSpace2_Vtbl { - pub const fn new() -> IAuxInTuningSpace2_Vtbl - where - Identity: IAuxInTuningSpace2_Impl, - { - unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, countrycodeval: *mut i32) -> windows_core::HRESULT - where - Identity: IAuxInTuningSpace2_Impl, - { + pub const fn new() -> IAuxInTuningSpace2_Vtbl { + unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, countrycodeval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAuxInTuningSpace2_Impl::CountryCode(this) { Ok(ok__) => { @@ -2023,10 +1579,7 @@ impl IAuxInTuningSpace2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, newcountrycodeval: i32) -> windows_core::HRESULT - where - Identity: IAuxInTuningSpace2_Impl, - { + unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, newcountrycodeval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAuxInTuningSpace2_Impl::SetCountryCode(this, core::mem::transmute_copy(&newcountrycodeval)).into() } @@ -2041,7 +1594,7 @@ impl IAuxInTuningSpace2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IBDAComparable_Impl: Sized { +pub trait IBDAComparable_Impl: Sized + windows_core::IUnknownImpl { fn CompareExact(&self, compareto: Option<&super::super::super::System::Com::IDispatch>) -> windows_core::Result; fn CompareEquivalent(&self, compareto: Option<&super::super::super::System::Com::IDispatch>, dwflags: u32) -> windows_core::Result; fn HashExact(&self) -> windows_core::Result; @@ -2053,14 +1606,8 @@ pub trait IBDAComparable_Impl: Sized { impl windows_core::RuntimeName for IBDAComparable {} #[cfg(feature = "Win32_System_Com")] impl IBDAComparable_Vtbl { - pub const fn new() -> IBDAComparable_Vtbl - where - Identity: IBDAComparable_Impl, - { - unsafe extern "system" fn CompareExact(this: *mut core::ffi::c_void, compareto: *mut core::ffi::c_void, result: *mut i32) -> windows_core::HRESULT - where - Identity: IBDAComparable_Impl, - { + pub const fn new() -> IBDAComparable_Vtbl { + unsafe extern "system" fn CompareExact(this: *mut core::ffi::c_void, compareto: *mut core::ffi::c_void, result: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDAComparable_Impl::CompareExact(this, windows_core::from_raw_borrowed(&compareto)) { Ok(ok__) => { @@ -2070,10 +1617,7 @@ impl IBDAComparable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareEquivalent(this: *mut core::ffi::c_void, compareto: *mut core::ffi::c_void, dwflags: u32, result: *mut i32) -> windows_core::HRESULT - where - Identity: IBDAComparable_Impl, - { + unsafe extern "system" fn CompareEquivalent(this: *mut core::ffi::c_void, compareto: *mut core::ffi::c_void, dwflags: u32, result: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDAComparable_Impl::CompareEquivalent(this, windows_core::from_raw_borrowed(&compareto), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -2083,10 +1627,7 @@ impl IBDAComparable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HashExact(this: *mut core::ffi::c_void, result: *mut i64) -> windows_core::HRESULT - where - Identity: IBDAComparable_Impl, - { + unsafe extern "system" fn HashExact(this: *mut core::ffi::c_void, result: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDAComparable_Impl::HashExact(this) { Ok(ok__) => { @@ -2096,10 +1637,7 @@ impl IBDAComparable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HashExactIncremental(this: *mut core::ffi::c_void, partialresult: i64, result: *mut i64) -> windows_core::HRESULT - where - Identity: IBDAComparable_Impl, - { + unsafe extern "system" fn HashExactIncremental(this: *mut core::ffi::c_void, partialresult: i64, result: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDAComparable_Impl::HashExactIncremental(this, core::mem::transmute_copy(&partialresult)) { Ok(ok__) => { @@ -2109,10 +1647,7 @@ impl IBDAComparable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HashEquivalent(this: *mut core::ffi::c_void, dwflags: u32, result: *mut i64) -> windows_core::HRESULT - where - Identity: IBDAComparable_Impl, - { + unsafe extern "system" fn HashEquivalent(this: *mut core::ffi::c_void, dwflags: u32, result: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDAComparable_Impl::HashEquivalent(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -2122,10 +1657,7 @@ impl IBDAComparable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HashEquivalentIncremental(this: *mut core::ffi::c_void, partialresult: i64, dwflags: u32, result: *mut i64) -> windows_core::HRESULT - where - Identity: IBDAComparable_Impl, - { + unsafe extern "system" fn HashEquivalentIncremental(this: *mut core::ffi::c_void, partialresult: i64, dwflags: u32, result: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDAComparable_Impl::HashEquivalentIncremental(this, core::mem::transmute_copy(&partialresult), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -2150,21 +1682,15 @@ impl IBDAComparable_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IBDACreateTuneRequestEx_Impl: Sized { +pub trait IBDACreateTuneRequestEx_Impl: Sized + windows_core::IUnknownImpl { fn CreateTuneRequestEx(&self, tunerequestiid: *const windows_core::GUID) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IBDACreateTuneRequestEx {} #[cfg(feature = "Win32_System_Com")] impl IBDACreateTuneRequestEx_Vtbl { - pub const fn new() -> IBDACreateTuneRequestEx_Vtbl - where - Identity: IBDACreateTuneRequestEx_Impl, - { - unsafe extern "system" fn CreateTuneRequestEx(this: *mut core::ffi::c_void, tunerequestiid: *const windows_core::GUID, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDACreateTuneRequestEx_Impl, - { + pub const fn new() -> IBDACreateTuneRequestEx_Vtbl { + unsafe extern "system" fn CreateTuneRequestEx(this: *mut core::ffi::c_void, tunerequestiid: *const windows_core::GUID, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDACreateTuneRequestEx_Impl::CreateTuneRequestEx(this, core::mem::transmute_copy(&tunerequestiid)) { Ok(ok__) => { @@ -2180,27 +1706,18 @@ impl IBDACreateTuneRequestEx_Vtbl { iid == &::IID } } -pub trait IBDA_TIF_REGISTRATION_Impl: Sized { +pub trait IBDA_TIF_REGISTRATION_Impl: Sized + windows_core::IUnknownImpl { fn RegisterTIFEx(&self, ptifinputpin: Option<&super::IPin>, ppvregistrationcontext: *mut u32, ppmpeg2datacontrol: *mut Option) -> windows_core::Result<()>; fn UnregisterTIF(&self, pvregistrationcontext: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_TIF_REGISTRATION {} impl IBDA_TIF_REGISTRATION_Vtbl { - pub const fn new() -> IBDA_TIF_REGISTRATION_Vtbl - where - Identity: IBDA_TIF_REGISTRATION_Impl, - { - unsafe extern "system" fn RegisterTIFEx(this: *mut core::ffi::c_void, ptifinputpin: *mut core::ffi::c_void, ppvregistrationcontext: *mut u32, ppmpeg2datacontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_TIF_REGISTRATION_Impl, - { + pub const fn new() -> IBDA_TIF_REGISTRATION_Vtbl { + unsafe extern "system" fn RegisterTIFEx(this: *mut core::ffi::c_void, ptifinputpin: *mut core::ffi::c_void, ppvregistrationcontext: *mut u32, ppmpeg2datacontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_TIF_REGISTRATION_Impl::RegisterTIFEx(this, windows_core::from_raw_borrowed(&ptifinputpin), core::mem::transmute_copy(&ppvregistrationcontext), core::mem::transmute_copy(&ppmpeg2datacontrol)).into() } - unsafe extern "system" fn UnregisterTIF(this: *mut core::ffi::c_void, pvregistrationcontext: u32) -> windows_core::HRESULT - where - Identity: IBDA_TIF_REGISTRATION_Impl, - { + unsafe extern "system" fn UnregisterTIF(this: *mut core::ffi::c_void, pvregistrationcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_TIF_REGISTRATION_Impl::UnregisterTIF(this, core::mem::transmute_copy(&pvregistrationcontext)).into() } @@ -2214,7 +1731,7 @@ impl IBDA_TIF_REGISTRATION_Vtbl { iid == &::IID } } -pub trait ICAT_Impl: Sized { +pub trait ICAT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetCountOfTableDescriptors(&self) -> windows_core::Result; @@ -2227,21 +1744,12 @@ pub trait ICAT_Impl: Sized { } impl windows_core::RuntimeName for ICAT {} impl ICAT_Vtbl { - pub const fn new() -> ICAT_Vtbl - where - Identity: ICAT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICAT_Impl, - { + pub const fn new() -> ICAT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICAT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ICAT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICAT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -2251,10 +1759,7 @@ impl ICAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: ICAT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICAT_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -2264,10 +1769,7 @@ impl ICAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICAT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICAT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -2277,24 +1779,15 @@ impl ICAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICAT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICAT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ICAT_Impl, - { + unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICAT_Impl::RegisterForNextTable(this, core::mem::transmute_copy(&hnexttableavailable)).into() } - unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, dwtimeout: u32, ppcat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICAT_Impl, - { + unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, dwtimeout: u32, ppcat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICAT_Impl::GetNextTable(this, core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -2304,17 +1797,11 @@ impl ICAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ICAT_Impl, - { + unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICAT_Impl::RegisterForWhenCurrent(this, core::mem::transmute_copy(&hnexttableiscurrent)).into() } - unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICAT_Impl, - { + unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICAT_Impl::ConvertNextToCurrent(this).into() } @@ -2335,7 +1822,7 @@ impl ICAT_Vtbl { iid == &::IID } } -pub trait ICaptionServiceDescriptor_Impl: Sized { +pub trait ICaptionServiceDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberOfServices(&self) -> windows_core::Result; fn GetLanguageCode(&self, bindex: u8, langcode: *mut u8) -> windows_core::Result<()>; fn GetCaptionServiceNumber(&self, bindex: u8) -> windows_core::Result; @@ -2345,14 +1832,8 @@ pub trait ICaptionServiceDescriptor_Impl: Sized { } impl windows_core::RuntimeName for ICaptionServiceDescriptor {} impl ICaptionServiceDescriptor_Vtbl { - pub const fn new() -> ICaptionServiceDescriptor_Vtbl - where - Identity: ICaptionServiceDescriptor_Impl, - { - unsafe extern "system" fn GetNumberOfServices(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ICaptionServiceDescriptor_Impl, - { + pub const fn new() -> ICaptionServiceDescriptor_Vtbl { + unsafe extern "system" fn GetNumberOfServices(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICaptionServiceDescriptor_Impl::GetNumberOfServices(this) { Ok(ok__) => { @@ -2362,17 +1843,11 @@ impl ICaptionServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, bindex: u8, langcode: *mut u8) -> windows_core::HRESULT - where - Identity: ICaptionServiceDescriptor_Impl, - { + unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, bindex: u8, langcode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptionServiceDescriptor_Impl::GetLanguageCode(this, core::mem::transmute_copy(&bindex), core::mem::transmute_copy(&langcode)).into() } - unsafe extern "system" fn GetCaptionServiceNumber(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ICaptionServiceDescriptor_Impl, - { + unsafe extern "system" fn GetCaptionServiceNumber(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICaptionServiceDescriptor_Impl::GetCaptionServiceNumber(this, core::mem::transmute_copy(&bindex)) { Ok(ok__) => { @@ -2382,10 +1857,7 @@ impl ICaptionServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCCType(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ICaptionServiceDescriptor_Impl, - { + unsafe extern "system" fn GetCCType(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICaptionServiceDescriptor_Impl::GetCCType(this, core::mem::transmute_copy(&bindex)) { Ok(ok__) => { @@ -2395,10 +1867,7 @@ impl ICaptionServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEasyReader(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ICaptionServiceDescriptor_Impl, - { + unsafe extern "system" fn GetEasyReader(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICaptionServiceDescriptor_Impl::GetEasyReader(this, core::mem::transmute_copy(&bindex)) { Ok(ok__) => { @@ -2408,10 +1877,7 @@ impl ICaptionServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWideAspectRatio(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ICaptionServiceDescriptor_Impl, - { + unsafe extern "system" fn GetWideAspectRatio(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICaptionServiceDescriptor_Impl::GetWideAspectRatio(this, core::mem::transmute_copy(&bindex)) { Ok(ok__) => { @@ -2444,14 +1910,8 @@ pub trait IChannelIDTuneRequest_Impl: Sized + ITuneRequest_Impl { impl windows_core::RuntimeName for IChannelIDTuneRequest {} #[cfg(feature = "Win32_System_Com")] impl IChannelIDTuneRequest_Vtbl { - pub const fn new() -> IChannelIDTuneRequest_Vtbl - where - Identity: IChannelIDTuneRequest_Impl, - { - unsafe extern "system" fn ChannelID(this: *mut core::ffi::c_void, channelid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelIDTuneRequest_Impl, - { + pub const fn new() -> IChannelIDTuneRequest_Vtbl { + unsafe extern "system" fn ChannelID(this: *mut core::ffi::c_void, channelid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IChannelIDTuneRequest_Impl::ChannelID(this) { Ok(ok__) => { @@ -2461,10 +1921,7 @@ impl IChannelIDTuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannelID(this: *mut core::ffi::c_void, channelid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelIDTuneRequest_Impl, - { + unsafe extern "system" fn SetChannelID(this: *mut core::ffi::c_void, channelid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelIDTuneRequest_Impl::SetChannelID(this, core::mem::transmute(&channelid)).into() } @@ -2483,14 +1940,8 @@ pub trait IChannelTuneRequest_Impl: Sized + ITuneRequest_Impl { impl windows_core::RuntimeName for IChannelTuneRequest {} #[cfg(feature = "Win32_System_Com")] impl IChannelTuneRequest_Vtbl { - pub const fn new() -> IChannelTuneRequest_Vtbl - where - Identity: IChannelTuneRequest_Impl, - { - unsafe extern "system" fn Channel(this: *mut core::ffi::c_void, channel: *mut i32) -> windows_core::HRESULT - where - Identity: IChannelTuneRequest_Impl, - { + pub const fn new() -> IChannelTuneRequest_Vtbl { + unsafe extern "system" fn Channel(this: *mut core::ffi::c_void, channel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IChannelTuneRequest_Impl::Channel(this) { Ok(ok__) => { @@ -2500,10 +1951,7 @@ impl IChannelTuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannel(this: *mut core::ffi::c_void, channel: i32) -> windows_core::HRESULT - where - Identity: IChannelTuneRequest_Impl, - { + unsafe extern "system" fn SetChannel(this: *mut core::ffi::c_void, channel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelTuneRequest_Impl::SetChannel(this, core::mem::transmute_copy(&channel)).into() } @@ -2529,14 +1977,8 @@ pub trait IComponent_Impl: Sized + super::super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IComponent {} #[cfg(feature = "Win32_System_Com")] impl IComponent_Vtbl { - pub const fn new() -> IComponent_Vtbl - where - Identity: IComponent_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ct: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + pub const fn new() -> IComponent_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ct: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponent_Impl::Type(this) { Ok(ok__) => { @@ -2546,17 +1988,11 @@ impl IComponent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, ct: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, ct: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent_Impl::SetType(this, windows_core::from_raw_borrowed(&ct)).into() } - unsafe extern "system" fn DescLangID(this: *mut core::ffi::c_void, langid: *mut i32) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn DescLangID(this: *mut core::ffi::c_void, langid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponent_Impl::DescLangID(this) { Ok(ok__) => { @@ -2566,17 +2002,11 @@ impl IComponent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescLangID(this: *mut core::ffi::c_void, langid: i32) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn SetDescLangID(this: *mut core::ffi::c_void, langid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent_Impl::SetDescLangID(this, core::mem::transmute_copy(&langid)).into() } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut super::ComponentStatus) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut super::ComponentStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponent_Impl::Status(this) { Ok(ok__) => { @@ -2586,17 +2016,11 @@ impl IComponent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: super::ComponentStatus) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: super::ComponentStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent_Impl::SetStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponent_Impl::Description(this) { Ok(ok__) => { @@ -2606,17 +2030,11 @@ impl IComponent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent_Impl::SetDescription(this, core::mem::transmute(&description)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponent_Impl::Clone(this) { Ok(ok__) => { @@ -2667,14 +2085,8 @@ pub trait IComponentType_Impl: Sized + super::super::super::System::Com::IDispat impl windows_core::RuntimeName for IComponentType {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl IComponentType_Vtbl { - pub const fn new() -> IComponentType_Vtbl - where - Identity: IComponentType_Impl, - { - unsafe extern "system" fn Category(this: *mut core::ffi::c_void, category: *mut super::ComponentCategory) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + pub const fn new() -> IComponentType_Vtbl { + unsafe extern "system" fn Category(this: *mut core::ffi::c_void, category: *mut super::ComponentCategory) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentType_Impl::Category(this) { Ok(ok__) => { @@ -2684,17 +2096,11 @@ impl IComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCategory(this: *mut core::ffi::c_void, category: super::ComponentCategory) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn SetCategory(this: *mut core::ffi::c_void, category: super::ComponentCategory) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentType_Impl::SetCategory(this, core::mem::transmute_copy(&category)).into() } - unsafe extern "system" fn MediaMajorType(this: *mut core::ffi::c_void, mediamajortype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn MediaMajorType(this: *mut core::ffi::c_void, mediamajortype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentType_Impl::MediaMajorType(this) { Ok(ok__) => { @@ -2704,17 +2110,11 @@ impl IComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaMajorType(this: *mut core::ffi::c_void, mediamajortype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn SetMediaMajorType(this: *mut core::ffi::c_void, mediamajortype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentType_Impl::SetMediaMajorType(this, core::mem::transmute(&mediamajortype)).into() } - unsafe extern "system" fn _MediaMajorType(this: *mut core::ffi::c_void, mediamajortypeguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn _MediaMajorType(this: *mut core::ffi::c_void, mediamajortypeguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentType_Impl::_MediaMajorType(this) { Ok(ok__) => { @@ -2724,17 +2124,11 @@ impl IComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Set_MediaMajorType(this: *mut core::ffi::c_void, mediamajortypeguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn Set_MediaMajorType(this: *mut core::ffi::c_void, mediamajortypeguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentType_Impl::Set_MediaMajorType(this, core::mem::transmute_copy(&mediamajortypeguid)).into() } - unsafe extern "system" fn MediaSubType(this: *mut core::ffi::c_void, mediasubtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn MediaSubType(this: *mut core::ffi::c_void, mediasubtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentType_Impl::MediaSubType(this) { Ok(ok__) => { @@ -2744,17 +2138,11 @@ impl IComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaSubType(this: *mut core::ffi::c_void, mediasubtype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn SetMediaSubType(this: *mut core::ffi::c_void, mediasubtype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentType_Impl::SetMediaSubType(this, core::mem::transmute(&mediasubtype)).into() } - unsafe extern "system" fn _MediaSubType(this: *mut core::ffi::c_void, mediasubtypeguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn _MediaSubType(this: *mut core::ffi::c_void, mediasubtypeguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentType_Impl::_MediaSubType(this) { Ok(ok__) => { @@ -2764,17 +2152,11 @@ impl IComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Set_MediaSubType(this: *mut core::ffi::c_void, mediasubtypeguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn Set_MediaSubType(this: *mut core::ffi::c_void, mediasubtypeguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentType_Impl::Set_MediaSubType(this, core::mem::transmute_copy(&mediasubtypeguid)).into() } - unsafe extern "system" fn MediaFormatType(this: *mut core::ffi::c_void, mediaformattype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn MediaFormatType(this: *mut core::ffi::c_void, mediaformattype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentType_Impl::MediaFormatType(this) { Ok(ok__) => { @@ -2784,17 +2166,11 @@ impl IComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaFormatType(this: *mut core::ffi::c_void, mediaformattype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn SetMediaFormatType(this: *mut core::ffi::c_void, mediaformattype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentType_Impl::SetMediaFormatType(this, core::mem::transmute(&mediaformattype)).into() } - unsafe extern "system" fn _MediaFormatType(this: *mut core::ffi::c_void, mediaformattypeguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn _MediaFormatType(this: *mut core::ffi::c_void, mediaformattypeguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentType_Impl::_MediaFormatType(this) { Ok(ok__) => { @@ -2804,17 +2180,11 @@ impl IComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Set_MediaFormatType(this: *mut core::ffi::c_void, mediaformattypeguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn Set_MediaFormatType(this: *mut core::ffi::c_void, mediaformattypeguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentType_Impl::Set_MediaFormatType(this, core::mem::transmute_copy(&mediaformattypeguid)).into() } - unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, mediatype: *mut super::super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, mediatype: *mut super::super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentType_Impl::MediaType(this) { Ok(ok__) => { @@ -2824,17 +2194,11 @@ impl IComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, mediatype: *const super::super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, mediatype: *const super::super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentType_Impl::SetMediaType(this, core::mem::transmute_copy(&mediatype)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newct: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentType_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newct: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentType_Impl::Clone(this) { Ok(ok__) => { @@ -2884,14 +2248,8 @@ pub trait IComponentTypes_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IComponentTypes {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IComponentTypes_Vtbl { - pub const fn new() -> IComponentTypes_Vtbl - where - Identity: IComponentTypes_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IComponentTypes_Impl, - { + pub const fn new() -> IComponentTypes_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentTypes_Impl::Count(this) { Ok(ok__) => { @@ -2901,10 +2259,7 @@ impl IComponentTypes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentTypes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentTypes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2914,10 +2269,7 @@ impl IComponentTypes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumComponentTypes(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentTypes_Impl, - { + unsafe extern "system" fn EnumComponentTypes(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentTypes_Impl::EnumComponentTypes(this) { Ok(ok__) => { @@ -2927,10 +2279,7 @@ impl IComponentTypes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, componenttype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentTypes_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, componenttype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentTypes_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -2940,17 +2289,11 @@ impl IComponentTypes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, componenttype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentTypes_Impl, - { + unsafe extern "system" fn put_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, componenttype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentTypes_Impl::put_Item(this, core::mem::transmute(&index), windows_core::from_raw_borrowed(&componenttype)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, componenttype: *mut core::ffi::c_void, newindex: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentTypes_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, componenttype: *mut core::ffi::c_void, newindex: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentTypes_Impl::Add(this, windows_core::from_raw_borrowed(&componenttype)) { Ok(ok__) => { @@ -2960,17 +2303,11 @@ impl IComponentTypes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentTypes_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentTypes_Impl::Remove(this, core::mem::transmute(&index)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentTypes_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentTypes_Impl::Clone(this) { Ok(ok__) => { @@ -3011,14 +2348,8 @@ pub trait IComponents_Impl: Sized + super::super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IComponents {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IComponents_Vtbl { - pub const fn new() -> IComponents_Vtbl - where - Identity: IComponents_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IComponents_Impl, - { + pub const fn new() -> IComponents_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponents_Impl::Count(this) { Ok(ok__) => { @@ -3028,10 +2359,7 @@ impl IComponents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponents_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponents_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3041,10 +2369,7 @@ impl IComponents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumComponents(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponents_Impl, - { + unsafe extern "system" fn EnumComponents(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponents_Impl::EnumComponents(this) { Ok(ok__) => { @@ -3054,10 +2379,7 @@ impl IComponents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponents_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponents_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3067,10 +2389,7 @@ impl IComponents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, component: *mut core::ffi::c_void, newindex: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponents_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, component: *mut core::ffi::c_void, newindex: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponents_Impl::Add(this, windows_core::from_raw_borrowed(&component)) { Ok(ok__) => { @@ -3080,17 +2399,11 @@ impl IComponents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponents_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponents_Impl::Remove(this, core::mem::transmute(&index)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponents_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponents_Impl::Clone(this) { Ok(ok__) => { @@ -3100,10 +2413,7 @@ impl IComponents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppcomponent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponents_Impl, - { + unsafe extern "system" fn put_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppcomponent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponents_Impl::put_Item(this, core::mem::transmute(&index), windows_core::from_raw_borrowed(&ppcomponent)).into() } @@ -3137,14 +2447,8 @@ pub trait IComponentsOld_Impl: Sized + super::super::super::System::Com::IDispat impl windows_core::RuntimeName for IComponentsOld {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IComponentsOld_Vtbl { - pub const fn new() -> IComponentsOld_Vtbl - where - Identity: IComponentsOld_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IComponentsOld_Impl, - { + pub const fn new() -> IComponentsOld_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentsOld_Impl::Count(this) { Ok(ok__) => { @@ -3154,10 +2458,7 @@ impl IComponentsOld_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentsOld_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentsOld_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3167,10 +2468,7 @@ impl IComponentsOld_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumComponents(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentsOld_Impl, - { + unsafe extern "system" fn EnumComponents(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentsOld_Impl::EnumComponents(this) { Ok(ok__) => { @@ -3180,10 +2478,7 @@ impl IComponentsOld_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentsOld_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentsOld_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3193,10 +2488,7 @@ impl IComponentsOld_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, component: *mut core::ffi::c_void, newindex: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentsOld_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, component: *mut core::ffi::c_void, newindex: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentsOld_Impl::Add(this, windows_core::from_raw_borrowed(&component)) { Ok(ok__) => { @@ -3206,17 +2498,11 @@ impl IComponentsOld_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentsOld_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentsOld_Impl::Remove(this, core::mem::transmute(&index)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentsOld_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentsOld_Impl::Clone(this) { Ok(ok__) => { @@ -3242,21 +2528,15 @@ impl IComponentsOld_Vtbl { } } #[cfg(feature = "Win32_System_Registry")] -pub trait ICreatePropBagOnRegKey_Impl: Sized { +pub trait ICreatePropBagOnRegKey_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, hkey: super::super::super::System::Registry::HKEY, subkey: &windows_core::PCWSTR, uloptions: u32, samdesired: u32, iid: *const windows_core::GUID, ppbag: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Registry")] impl windows_core::RuntimeName for ICreatePropBagOnRegKey {} #[cfg(feature = "Win32_System_Registry")] impl ICreatePropBagOnRegKey_Vtbl { - pub const fn new() -> ICreatePropBagOnRegKey_Vtbl - where - Identity: ICreatePropBagOnRegKey_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, hkey: super::super::super::System::Registry::HKEY, subkey: windows_core::PCWSTR, uloptions: u32, samdesired: u32, iid: *const windows_core::GUID, ppbag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreatePropBagOnRegKey_Impl, - { + pub const fn new() -> ICreatePropBagOnRegKey_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, hkey: super::super::super::System::Registry::HKEY, subkey: windows_core::PCWSTR, uloptions: u32, samdesired: u32, iid: *const windows_core::GUID, ppbag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreatePropBagOnRegKey_Impl::Create(this, core::mem::transmute_copy(&hkey), core::mem::transmute(&subkey), core::mem::transmute_copy(&uloptions), core::mem::transmute_copy(&samdesired), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppbag)).into() } @@ -3266,7 +2546,7 @@ impl ICreatePropBagOnRegKey_Vtbl { iid == &::IID } } -pub trait IDTFilter_Impl: Sized { +pub trait IDTFilter_Impl: Sized + windows_core::IUnknownImpl { fn EvalRatObjOK(&self) -> windows_core::Result; fn GetCurrRating(&self, pensystem: *mut EnTvRat_System, penrating: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::Result<()>; fn get_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel) -> windows_core::Result; @@ -3278,14 +2558,8 @@ pub trait IDTFilter_Impl: Sized { } impl windows_core::RuntimeName for IDTFilter {} impl IDTFilter_Vtbl { - pub const fn new() -> IDTFilter_Vtbl - where - Identity: IDTFilter_Impl, - { - unsafe extern "system" fn EvalRatObjOK(this: *mut core::ffi::c_void, phrcocreateretval: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IDTFilter_Impl, - { + pub const fn new() -> IDTFilter_Vtbl { + unsafe extern "system" fn EvalRatObjOK(this: *mut core::ffi::c_void, phrcocreateretval: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilter_Impl::EvalRatObjOK(this) { Ok(ok__) => { @@ -3295,17 +2569,11 @@ impl IDTFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrRating(this: *mut core::ffi::c_void, pensystem: *mut EnTvRat_System, penrating: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::HRESULT - where - Identity: IDTFilter_Impl, - { + unsafe extern "system" fn GetCurrRating(this: *mut core::ffi::c_void, pensystem: *mut EnTvRat_System, penrating: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDTFilter_Impl::GetCurrRating(this, core::mem::transmute_copy(&pensystem), core::mem::transmute_copy(&penrating), core::mem::transmute_copy(&plbfenattr)).into() } - unsafe extern "system" fn get_BlockedRatingAttributes(this: *mut core::ffi::c_void, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::HRESULT - where - Identity: IDTFilter_Impl, - { + unsafe extern "system" fn get_BlockedRatingAttributes(this: *mut core::ffi::c_void, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilter_Impl::get_BlockedRatingAttributes(this, core::mem::transmute_copy(&ensystem), core::mem::transmute_copy(&enlevel)) { Ok(ok__) => { @@ -3315,17 +2583,11 @@ impl IDTFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_BlockedRatingAttributes(this: *mut core::ffi::c_void, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, lbfattrs: i32) -> windows_core::HRESULT - where - Identity: IDTFilter_Impl, - { + unsafe extern "system" fn put_BlockedRatingAttributes(this: *mut core::ffi::c_void, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, lbfattrs: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDTFilter_Impl::put_BlockedRatingAttributes(this, core::mem::transmute_copy(&ensystem), core::mem::transmute_copy(&enlevel), core::mem::transmute_copy(&lbfattrs)).into() } - unsafe extern "system" fn BlockUnRated(this: *mut core::ffi::c_void, pfblockunratedshows: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDTFilter_Impl, - { + unsafe extern "system" fn BlockUnRated(this: *mut core::ffi::c_void, pfblockunratedshows: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilter_Impl::BlockUnRated(this) { Ok(ok__) => { @@ -3335,17 +2597,11 @@ impl IDTFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBlockUnRated(this: *mut core::ffi::c_void, fblockunratedshows: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDTFilter_Impl, - { + unsafe extern "system" fn SetBlockUnRated(this: *mut core::ffi::c_void, fblockunratedshows: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDTFilter_Impl::SetBlockUnRated(this, core::mem::transmute_copy(&fblockunratedshows)).into() } - unsafe extern "system" fn BlockUnRatedDelay(this: *mut core::ffi::c_void, pmsecsdelaybeforeblock: *mut i32) -> windows_core::HRESULT - where - Identity: IDTFilter_Impl, - { + unsafe extern "system" fn BlockUnRatedDelay(this: *mut core::ffi::c_void, pmsecsdelaybeforeblock: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilter_Impl::BlockUnRatedDelay(this) { Ok(ok__) => { @@ -3355,10 +2611,7 @@ impl IDTFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBlockUnRatedDelay(this: *mut core::ffi::c_void, msecsdelaybeforeblock: i32) -> windows_core::HRESULT - where - Identity: IDTFilter_Impl, - { + unsafe extern "system" fn SetBlockUnRatedDelay(this: *mut core::ffi::c_void, msecsdelaybeforeblock: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDTFilter_Impl::SetBlockUnRatedDelay(this, core::mem::transmute_copy(&msecsdelaybeforeblock)).into() } @@ -3385,14 +2638,8 @@ pub trait IDTFilter2_Impl: Sized + IDTFilter_Impl { } impl windows_core::RuntimeName for IDTFilter2 {} impl IDTFilter2_Vtbl { - pub const fn new() -> IDTFilter2_Vtbl - where - Identity: IDTFilter2_Impl, - { - unsafe extern "system" fn ChallengeUrl(this: *mut core::ffi::c_void, pbstrchallengeurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDTFilter2_Impl, - { + pub const fn new() -> IDTFilter2_Vtbl { + unsafe extern "system" fn ChallengeUrl(this: *mut core::ffi::c_void, pbstrchallengeurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilter2_Impl::ChallengeUrl(this) { Ok(ok__) => { @@ -3402,10 +2649,7 @@ impl IDTFilter2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrLicenseExpDate(this: *mut core::ffi::c_void, prottype: *const ProtType, lpdatetime: *mut i32) -> windows_core::HRESULT - where - Identity: IDTFilter2_Impl, - { + unsafe extern "system" fn GetCurrLicenseExpDate(this: *mut core::ffi::c_void, prottype: *const ProtType, lpdatetime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilter2_Impl::GetCurrLicenseExpDate(this, core::mem::transmute_copy(&prottype)) { Ok(ok__) => { @@ -3415,10 +2659,7 @@ impl IDTFilter2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDTFilter2_Impl, - { + unsafe extern "system" fn GetLastErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDTFilter2_Impl::GetLastErrorCode(this).into() } @@ -3440,14 +2681,8 @@ pub trait IDTFilter3_Impl: Sized + IDTFilter2_Impl { } impl windows_core::RuntimeName for IDTFilter3 {} impl IDTFilter3_Vtbl { - pub const fn new() -> IDTFilter3_Vtbl - where - Identity: IDTFilter3_Impl, - { - unsafe extern "system" fn GetProtectionType(this: *mut core::ffi::c_void, pprotectiontype: *mut ProtType) -> windows_core::HRESULT - where - Identity: IDTFilter3_Impl, - { + pub const fn new() -> IDTFilter3_Vtbl { + unsafe extern "system" fn GetProtectionType(this: *mut core::ffi::c_void, pprotectiontype: *mut ProtType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilter3_Impl::GetProtectionType(this) { Ok(ok__) => { @@ -3457,10 +2692,7 @@ impl IDTFilter3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LicenseHasExpirationDate(this: *mut core::ffi::c_void, pflicensehasexpirationdate: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDTFilter3_Impl, - { + unsafe extern "system" fn LicenseHasExpirationDate(this: *mut core::ffi::c_void, pflicensehasexpirationdate: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilter3_Impl::LicenseHasExpirationDate(this) { Ok(ok__) => { @@ -3470,10 +2702,7 @@ impl IDTFilter3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRights(this: *mut core::ffi::c_void, bstrrights: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDTFilter3_Impl, - { + unsafe extern "system" fn SetRights(this: *mut core::ffi::c_void, bstrrights: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDTFilter3_Impl::SetRights(this, core::mem::transmute(&bstrrights)).into() } @@ -3488,19 +2717,13 @@ impl IDTFilter3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDTFilterConfig_Impl: Sized { +pub trait IDTFilterConfig_Impl: Sized + windows_core::IUnknownImpl { fn GetSecureChannelObject(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDTFilterConfig {} impl IDTFilterConfig_Vtbl { - pub const fn new() -> IDTFilterConfig_Vtbl - where - Identity: IDTFilterConfig_Impl, - { - unsafe extern "system" fn GetSecureChannelObject(this: *mut core::ffi::c_void, ppunkdrmsecurechannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDTFilterConfig_Impl, - { + pub const fn new() -> IDTFilterConfig_Vtbl { + unsafe extern "system" fn GetSecureChannelObject(this: *mut core::ffi::c_void, ppunkdrmsecurechannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilterConfig_Impl::GetSecureChannelObject(this) { Ok(ok__) => { @@ -3522,29 +2745,20 @@ pub trait IDTFilterEvents_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IDTFilterEvents {} #[cfg(feature = "Win32_System_Com")] impl IDTFilterEvents_Vtbl { - pub const fn new() -> IDTFilterEvents_Vtbl - where - Identity: IDTFilterEvents_Impl, - { + pub const fn new() -> IDTFilterEvents_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IDTFilterLicenseRenewal_Impl: Sized { +pub trait IDTFilterLicenseRenewal_Impl: Sized + windows_core::IUnknownImpl { fn GetLicenseRenewalData(&self, ppwszfilename: *mut windows_core::PWSTR, ppwszexpiredkid: *mut windows_core::PWSTR, ppwsztunerid: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDTFilterLicenseRenewal {} impl IDTFilterLicenseRenewal_Vtbl { - pub const fn new() -> IDTFilterLicenseRenewal_Vtbl - where - Identity: IDTFilterLicenseRenewal_Impl, - { - unsafe extern "system" fn GetLicenseRenewalData(this: *mut core::ffi::c_void, ppwszfilename: *mut windows_core::PWSTR, ppwszexpiredkid: *mut windows_core::PWSTR, ppwsztunerid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDTFilterLicenseRenewal_Impl, - { + pub const fn new() -> IDTFilterLicenseRenewal_Vtbl { + unsafe extern "system" fn GetLicenseRenewalData(this: *mut core::ffi::c_void, ppwszfilename: *mut windows_core::PWSTR, ppwszexpiredkid: *mut windows_core::PWSTR, ppwsztunerid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDTFilterLicenseRenewal_Impl::GetLicenseRenewalData(this, core::mem::transmute_copy(&ppwszfilename), core::mem::transmute_copy(&ppwszexpiredkid), core::mem::transmute_copy(&ppwsztunerid)).into() } @@ -3560,10 +2774,7 @@ pub trait IDVBCLocator_Impl: Sized + IDigitalLocator_Impl {} impl windows_core::RuntimeName for IDVBCLocator {} #[cfg(feature = "Win32_System_Com")] impl IDVBCLocator_Vtbl { - pub const fn new() -> IDVBCLocator_Vtbl - where - Identity: IDVBCLocator_Impl, - { + pub const fn new() -> IDVBCLocator_Vtbl { Self { base__: IDigitalLocator_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -3587,14 +2798,8 @@ pub trait IDVBSLocator_Impl: Sized + IDigitalLocator_Impl { impl windows_core::RuntimeName for IDVBSLocator {} #[cfg(feature = "Win32_System_Com")] impl IDVBSLocator_Vtbl { - pub const fn new() -> IDVBSLocator_Vtbl - where - Identity: IDVBSLocator_Impl, - { - unsafe extern "system" fn SignalPolarisation(this: *mut core::ffi::c_void, polarisationval: *mut super::Polarisation) -> windows_core::HRESULT - where - Identity: IDVBSLocator_Impl, - { + pub const fn new() -> IDVBSLocator_Vtbl { + unsafe extern "system" fn SignalPolarisation(this: *mut core::ffi::c_void, polarisationval: *mut super::Polarisation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator_Impl::SignalPolarisation(this) { Ok(ok__) => { @@ -3604,17 +2809,11 @@ impl IDVBSLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignalPolarisation(this: *mut core::ffi::c_void, polarisationval: super::Polarisation) -> windows_core::HRESULT - where - Identity: IDVBSLocator_Impl, - { + unsafe extern "system" fn SetSignalPolarisation(this: *mut core::ffi::c_void, polarisationval: super::Polarisation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator_Impl::SetSignalPolarisation(this, core::mem::transmute_copy(&polarisationval)).into() } - unsafe extern "system" fn WestPosition(this: *mut core::ffi::c_void, westlongitude: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDVBSLocator_Impl, - { + unsafe extern "system" fn WestPosition(this: *mut core::ffi::c_void, westlongitude: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator_Impl::WestPosition(this) { Ok(ok__) => { @@ -3624,17 +2823,11 @@ impl IDVBSLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWestPosition(this: *mut core::ffi::c_void, westlongitude: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDVBSLocator_Impl, - { + unsafe extern "system" fn SetWestPosition(this: *mut core::ffi::c_void, westlongitude: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator_Impl::SetWestPosition(this, core::mem::transmute_copy(&westlongitude)).into() } - unsafe extern "system" fn OrbitalPosition(this: *mut core::ffi::c_void, longitude: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator_Impl, - { + unsafe extern "system" fn OrbitalPosition(this: *mut core::ffi::c_void, longitude: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator_Impl::OrbitalPosition(this) { Ok(ok__) => { @@ -3644,17 +2837,11 @@ impl IDVBSLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOrbitalPosition(this: *mut core::ffi::c_void, longitude: i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator_Impl, - { + unsafe extern "system" fn SetOrbitalPosition(this: *mut core::ffi::c_void, longitude: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator_Impl::SetOrbitalPosition(this, core::mem::transmute_copy(&longitude)).into() } - unsafe extern "system" fn Azimuth(this: *mut core::ffi::c_void, azimuth: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator_Impl, - { + unsafe extern "system" fn Azimuth(this: *mut core::ffi::c_void, azimuth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator_Impl::Azimuth(this) { Ok(ok__) => { @@ -3664,17 +2851,11 @@ impl IDVBSLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAzimuth(this: *mut core::ffi::c_void, azimuth: i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator_Impl, - { + unsafe extern "system" fn SetAzimuth(this: *mut core::ffi::c_void, azimuth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator_Impl::SetAzimuth(this, core::mem::transmute_copy(&azimuth)).into() } - unsafe extern "system" fn Elevation(this: *mut core::ffi::c_void, elevation: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator_Impl, - { + unsafe extern "system" fn Elevation(this: *mut core::ffi::c_void, elevation: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator_Impl::Elevation(this) { Ok(ok__) => { @@ -3684,10 +2865,7 @@ impl IDVBSLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetElevation(this: *mut core::ffi::c_void, elevation: i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator_Impl, - { + unsafe extern "system" fn SetElevation(this: *mut core::ffi::c_void, elevation: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator_Impl::SetElevation(this, core::mem::transmute_copy(&elevation)).into() } @@ -3730,14 +2908,8 @@ pub trait IDVBSLocator2_Impl: Sized + IDVBSLocator_Impl { impl windows_core::RuntimeName for IDVBSLocator2 {} #[cfg(feature = "Win32_System_Com")] impl IDVBSLocator2_Vtbl { - pub const fn new() -> IDVBSLocator2_Vtbl - where - Identity: IDVBSLocator2_Impl, - { - unsafe extern "system" fn DiseqLNBSource(this: *mut core::ffi::c_void, diseqlnbsourceval: *mut super::LNB_Source) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + pub const fn new() -> IDVBSLocator2_Vtbl { + unsafe extern "system" fn DiseqLNBSource(this: *mut core::ffi::c_void, diseqlnbsourceval: *mut super::LNB_Source) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator2_Impl::DiseqLNBSource(this) { Ok(ok__) => { @@ -3747,17 +2919,11 @@ impl IDVBSLocator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDiseqLNBSource(this: *mut core::ffi::c_void, diseqlnbsourceval: super::LNB_Source) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn SetDiseqLNBSource(this: *mut core::ffi::c_void, diseqlnbsourceval: super::LNB_Source) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator2_Impl::SetDiseqLNBSource(this, core::mem::transmute_copy(&diseqlnbsourceval)).into() } - unsafe extern "system" fn LocalOscillatorOverrideLow(this: *mut core::ffi::c_void, localoscillatoroverridelowval: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn LocalOscillatorOverrideLow(this: *mut core::ffi::c_void, localoscillatoroverridelowval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator2_Impl::LocalOscillatorOverrideLow(this) { Ok(ok__) => { @@ -3767,17 +2933,11 @@ impl IDVBSLocator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalOscillatorOverrideLow(this: *mut core::ffi::c_void, localoscillatoroverridelowval: i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn SetLocalOscillatorOverrideLow(this: *mut core::ffi::c_void, localoscillatoroverridelowval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator2_Impl::SetLocalOscillatorOverrideLow(this, core::mem::transmute_copy(&localoscillatoroverridelowval)).into() } - unsafe extern "system" fn LocalOscillatorOverrideHigh(this: *mut core::ffi::c_void, localoscillatoroverridehighval: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn LocalOscillatorOverrideHigh(this: *mut core::ffi::c_void, localoscillatoroverridehighval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator2_Impl::LocalOscillatorOverrideHigh(this) { Ok(ok__) => { @@ -3787,17 +2947,11 @@ impl IDVBSLocator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalOscillatorOverrideHigh(this: *mut core::ffi::c_void, localoscillatoroverridehighval: i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn SetLocalOscillatorOverrideHigh(this: *mut core::ffi::c_void, localoscillatoroverridehighval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator2_Impl::SetLocalOscillatorOverrideHigh(this, core::mem::transmute_copy(&localoscillatoroverridehighval)).into() } - unsafe extern "system" fn LocalLNBSwitchOverride(this: *mut core::ffi::c_void, locallnbswitchoverrideval: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn LocalLNBSwitchOverride(this: *mut core::ffi::c_void, locallnbswitchoverrideval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator2_Impl::LocalLNBSwitchOverride(this) { Ok(ok__) => { @@ -3807,17 +2961,11 @@ impl IDVBSLocator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalLNBSwitchOverride(this: *mut core::ffi::c_void, locallnbswitchoverrideval: i32) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn SetLocalLNBSwitchOverride(this: *mut core::ffi::c_void, locallnbswitchoverrideval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator2_Impl::SetLocalLNBSwitchOverride(this, core::mem::transmute_copy(&locallnbswitchoverrideval)).into() } - unsafe extern "system" fn LocalSpectralInversionOverride(this: *mut core::ffi::c_void, localspectralinversionoverrideval: *mut super::SpectralInversion) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn LocalSpectralInversionOverride(this: *mut core::ffi::c_void, localspectralinversionoverrideval: *mut super::SpectralInversion) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator2_Impl::LocalSpectralInversionOverride(this) { Ok(ok__) => { @@ -3827,17 +2975,11 @@ impl IDVBSLocator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalSpectralInversionOverride(this: *mut core::ffi::c_void, localspectralinversionoverrideval: super::SpectralInversion) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn SetLocalSpectralInversionOverride(this: *mut core::ffi::c_void, localspectralinversionoverrideval: super::SpectralInversion) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator2_Impl::SetLocalSpectralInversionOverride(this, core::mem::transmute_copy(&localspectralinversionoverrideval)).into() } - unsafe extern "system" fn SignalRollOff(this: *mut core::ffi::c_void, rolloffval: *mut super::RollOff) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn SignalRollOff(this: *mut core::ffi::c_void, rolloffval: *mut super::RollOff) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator2_Impl::SignalRollOff(this) { Ok(ok__) => { @@ -3847,17 +2989,11 @@ impl IDVBSLocator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignalRollOff(this: *mut core::ffi::c_void, rolloffval: super::RollOff) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn SetSignalRollOff(this: *mut core::ffi::c_void, rolloffval: super::RollOff) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator2_Impl::SetSignalRollOff(this, core::mem::transmute_copy(&rolloffval)).into() } - unsafe extern "system" fn SignalPilot(this: *mut core::ffi::c_void, pilotval: *mut super::Pilot) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn SignalPilot(this: *mut core::ffi::c_void, pilotval: *mut super::Pilot) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSLocator2_Impl::SignalPilot(this) { Ok(ok__) => { @@ -3867,10 +3003,7 @@ impl IDVBSLocator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignalPilot(this: *mut core::ffi::c_void, pilotval: super::Pilot) -> windows_core::HRESULT - where - Identity: IDVBSLocator2_Impl, - { + unsafe extern "system" fn SetSignalPilot(this: *mut core::ffi::c_void, pilotval: super::Pilot) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSLocator2_Impl::SetSignalPilot(this, core::mem::transmute_copy(&pilotval)).into() } @@ -3913,14 +3046,8 @@ pub trait IDVBSTuningSpace_Impl: Sized + IDVBTuningSpace2_Impl { impl windows_core::RuntimeName for IDVBSTuningSpace {} #[cfg(feature = "Win32_System_Com")] impl IDVBSTuningSpace_Vtbl { - pub const fn new() -> IDVBSTuningSpace_Vtbl - where - Identity: IDVBSTuningSpace_Impl, - { - unsafe extern "system" fn LowOscillator(this: *mut core::ffi::c_void, lowoscillator: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBSTuningSpace_Impl, - { + pub const fn new() -> IDVBSTuningSpace_Vtbl { + unsafe extern "system" fn LowOscillator(this: *mut core::ffi::c_void, lowoscillator: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSTuningSpace_Impl::LowOscillator(this) { Ok(ok__) => { @@ -3930,17 +3057,11 @@ impl IDVBSTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLowOscillator(this: *mut core::ffi::c_void, lowoscillator: i32) -> windows_core::HRESULT - where - Identity: IDVBSTuningSpace_Impl, - { + unsafe extern "system" fn SetLowOscillator(this: *mut core::ffi::c_void, lowoscillator: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSTuningSpace_Impl::SetLowOscillator(this, core::mem::transmute_copy(&lowoscillator)).into() } - unsafe extern "system" fn HighOscillator(this: *mut core::ffi::c_void, highoscillator: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBSTuningSpace_Impl, - { + unsafe extern "system" fn HighOscillator(this: *mut core::ffi::c_void, highoscillator: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSTuningSpace_Impl::HighOscillator(this) { Ok(ok__) => { @@ -3950,17 +3071,11 @@ impl IDVBSTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHighOscillator(this: *mut core::ffi::c_void, highoscillator: i32) -> windows_core::HRESULT - where - Identity: IDVBSTuningSpace_Impl, - { + unsafe extern "system" fn SetHighOscillator(this: *mut core::ffi::c_void, highoscillator: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSTuningSpace_Impl::SetHighOscillator(this, core::mem::transmute_copy(&highoscillator)).into() } - unsafe extern "system" fn LNBSwitch(this: *mut core::ffi::c_void, lnbswitch: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBSTuningSpace_Impl, - { + unsafe extern "system" fn LNBSwitch(this: *mut core::ffi::c_void, lnbswitch: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSTuningSpace_Impl::LNBSwitch(this) { Ok(ok__) => { @@ -3970,17 +3085,11 @@ impl IDVBSTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLNBSwitch(this: *mut core::ffi::c_void, lnbswitch: i32) -> windows_core::HRESULT - where - Identity: IDVBSTuningSpace_Impl, - { + unsafe extern "system" fn SetLNBSwitch(this: *mut core::ffi::c_void, lnbswitch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSTuningSpace_Impl::SetLNBSwitch(this, core::mem::transmute_copy(&lnbswitch)).into() } - unsafe extern "system" fn InputRange(this: *mut core::ffi::c_void, inputrange: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDVBSTuningSpace_Impl, - { + unsafe extern "system" fn InputRange(this: *mut core::ffi::c_void, inputrange: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSTuningSpace_Impl::InputRange(this) { Ok(ok__) => { @@ -3990,17 +3099,11 @@ impl IDVBSTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputRange(this: *mut core::ffi::c_void, inputrange: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDVBSTuningSpace_Impl, - { + unsafe extern "system" fn SetInputRange(this: *mut core::ffi::c_void, inputrange: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSTuningSpace_Impl::SetInputRange(this, core::mem::transmute(&inputrange)).into() } - unsafe extern "system" fn SpectralInversion(this: *mut core::ffi::c_void, spectralinversionval: *mut super::SpectralInversion) -> windows_core::HRESULT - where - Identity: IDVBSTuningSpace_Impl, - { + unsafe extern "system" fn SpectralInversion(this: *mut core::ffi::c_void, spectralinversionval: *mut super::SpectralInversion) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBSTuningSpace_Impl::SpectralInversion(this) { Ok(ok__) => { @@ -4010,10 +3113,7 @@ impl IDVBSTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpectralInversion(this: *mut core::ffi::c_void, spectralinversionval: super::SpectralInversion) -> windows_core::HRESULT - where - Identity: IDVBSTuningSpace_Impl, - { + unsafe extern "system" fn SetSpectralInversion(this: *mut core::ffi::c_void, spectralinversionval: super::SpectralInversion) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBSTuningSpace_Impl::SetSpectralInversion(this, core::mem::transmute_copy(&spectralinversionval)).into() } @@ -4056,14 +3156,8 @@ pub trait IDVBTLocator_Impl: Sized + IDigitalLocator_Impl { impl windows_core::RuntimeName for IDVBTLocator {} #[cfg(feature = "Win32_System_Com")] impl IDVBTLocator_Vtbl { - pub const fn new() -> IDVBTLocator_Vtbl - where - Identity: IDVBTLocator_Impl, - { - unsafe extern "system" fn Bandwidth(this: *mut core::ffi::c_void, bandwidthval: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + pub const fn new() -> IDVBTLocator_Vtbl { + unsafe extern "system" fn Bandwidth(this: *mut core::ffi::c_void, bandwidthval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTLocator_Impl::Bandwidth(this) { Ok(ok__) => { @@ -4073,17 +3167,11 @@ impl IDVBTLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBandwidth(this: *mut core::ffi::c_void, bandwidthval: i32) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn SetBandwidth(this: *mut core::ffi::c_void, bandwidthval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTLocator_Impl::SetBandwidth(this, core::mem::transmute_copy(&bandwidthval)).into() } - unsafe extern "system" fn LPInnerFEC(this: *mut core::ffi::c_void, fec: *mut super::FECMethod) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn LPInnerFEC(this: *mut core::ffi::c_void, fec: *mut super::FECMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTLocator_Impl::LPInnerFEC(this) { Ok(ok__) => { @@ -4093,17 +3181,11 @@ impl IDVBTLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLPInnerFEC(this: *mut core::ffi::c_void, fec: super::FECMethod) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn SetLPInnerFEC(this: *mut core::ffi::c_void, fec: super::FECMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTLocator_Impl::SetLPInnerFEC(this, core::mem::transmute_copy(&fec)).into() } - unsafe extern "system" fn LPInnerFECRate(this: *mut core::ffi::c_void, fec: *mut super::BinaryConvolutionCodeRate) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn LPInnerFECRate(this: *mut core::ffi::c_void, fec: *mut super::BinaryConvolutionCodeRate) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTLocator_Impl::LPInnerFECRate(this) { Ok(ok__) => { @@ -4113,17 +3195,11 @@ impl IDVBTLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLPInnerFECRate(this: *mut core::ffi::c_void, fec: super::BinaryConvolutionCodeRate) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn SetLPInnerFECRate(this: *mut core::ffi::c_void, fec: super::BinaryConvolutionCodeRate) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTLocator_Impl::SetLPInnerFECRate(this, core::mem::transmute_copy(&fec)).into() } - unsafe extern "system" fn HAlpha(this: *mut core::ffi::c_void, alpha: *mut super::HierarchyAlpha) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn HAlpha(this: *mut core::ffi::c_void, alpha: *mut super::HierarchyAlpha) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTLocator_Impl::HAlpha(this) { Ok(ok__) => { @@ -4133,17 +3209,11 @@ impl IDVBTLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHAlpha(this: *mut core::ffi::c_void, alpha: super::HierarchyAlpha) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn SetHAlpha(this: *mut core::ffi::c_void, alpha: super::HierarchyAlpha) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTLocator_Impl::SetHAlpha(this, core::mem::transmute_copy(&alpha)).into() } - unsafe extern "system" fn Guard(this: *mut core::ffi::c_void, gi: *mut super::GuardInterval) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn Guard(this: *mut core::ffi::c_void, gi: *mut super::GuardInterval) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTLocator_Impl::Guard(this) { Ok(ok__) => { @@ -4153,17 +3223,11 @@ impl IDVBTLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGuard(this: *mut core::ffi::c_void, gi: super::GuardInterval) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn SetGuard(this: *mut core::ffi::c_void, gi: super::GuardInterval) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTLocator_Impl::SetGuard(this, core::mem::transmute_copy(&gi)).into() } - unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, mode: *mut super::TransmissionMode) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, mode: *mut super::TransmissionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTLocator_Impl::Mode(this) { Ok(ok__) => { @@ -4173,17 +3237,11 @@ impl IDVBTLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: super::TransmissionMode) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: super::TransmissionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTLocator_Impl::SetMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn OtherFrequencyInUse(this: *mut core::ffi::c_void, otherfrequencyinuseval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn OtherFrequencyInUse(this: *mut core::ffi::c_void, otherfrequencyinuseval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTLocator_Impl::OtherFrequencyInUse(this) { Ok(ok__) => { @@ -4193,10 +3251,7 @@ impl IDVBTLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherFrequencyInUse(this: *mut core::ffi::c_void, otherfrequencyinuseval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDVBTLocator_Impl, - { + unsafe extern "system" fn SetOtherFrequencyInUse(this: *mut core::ffi::c_void, otherfrequencyinuseval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTLocator_Impl::SetOtherFrequencyInUse(this, core::mem::transmute_copy(&otherfrequencyinuseval)).into() } @@ -4231,14 +3286,8 @@ pub trait IDVBTLocator2_Impl: Sized + IDVBTLocator_Impl { impl windows_core::RuntimeName for IDVBTLocator2 {} #[cfg(feature = "Win32_System_Com")] impl IDVBTLocator2_Vtbl { - pub const fn new() -> IDVBTLocator2_Vtbl - where - Identity: IDVBTLocator2_Impl, - { - unsafe extern "system" fn PhysicalLayerPipeId(this: *mut core::ffi::c_void, physicallayerpipeidval: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBTLocator2_Impl, - { + pub const fn new() -> IDVBTLocator2_Vtbl { + unsafe extern "system" fn PhysicalLayerPipeId(this: *mut core::ffi::c_void, physicallayerpipeidval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTLocator2_Impl::PhysicalLayerPipeId(this) { Ok(ok__) => { @@ -4248,10 +3297,7 @@ impl IDVBTLocator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPhysicalLayerPipeId(this: *mut core::ffi::c_void, physicallayerpipeidval: i32) -> windows_core::HRESULT - where - Identity: IDVBTLocator2_Impl, - { + unsafe extern "system" fn SetPhysicalLayerPipeId(this: *mut core::ffi::c_void, physicallayerpipeidval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTLocator2_Impl::SetPhysicalLayerPipeId(this, core::mem::transmute_copy(&physicallayerpipeidval)).into() } @@ -4278,14 +3324,8 @@ pub trait IDVBTuneRequest_Impl: Sized + ITuneRequest_Impl { impl windows_core::RuntimeName for IDVBTuneRequest {} #[cfg(feature = "Win32_System_Com")] impl IDVBTuneRequest_Vtbl { - pub const fn new() -> IDVBTuneRequest_Vtbl - where - Identity: IDVBTuneRequest_Impl, - { - unsafe extern "system" fn ONID(this: *mut core::ffi::c_void, onid: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBTuneRequest_Impl, - { + pub const fn new() -> IDVBTuneRequest_Vtbl { + unsafe extern "system" fn ONID(this: *mut core::ffi::c_void, onid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTuneRequest_Impl::ONID(this) { Ok(ok__) => { @@ -4295,17 +3335,11 @@ impl IDVBTuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetONID(this: *mut core::ffi::c_void, onid: i32) -> windows_core::HRESULT - where - Identity: IDVBTuneRequest_Impl, - { + unsafe extern "system" fn SetONID(this: *mut core::ffi::c_void, onid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTuneRequest_Impl::SetONID(this, core::mem::transmute_copy(&onid)).into() } - unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, tsid: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBTuneRequest_Impl, - { + unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, tsid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTuneRequest_Impl::TSID(this) { Ok(ok__) => { @@ -4315,17 +3349,11 @@ impl IDVBTuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, tsid: i32) -> windows_core::HRESULT - where - Identity: IDVBTuneRequest_Impl, - { + unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, tsid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTuneRequest_Impl::SetTSID(this, core::mem::transmute_copy(&tsid)).into() } - unsafe extern "system" fn SID(this: *mut core::ffi::c_void, sid: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBTuneRequest_Impl, - { + unsafe extern "system" fn SID(this: *mut core::ffi::c_void, sid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTuneRequest_Impl::SID(this) { Ok(ok__) => { @@ -4335,10 +3363,7 @@ impl IDVBTuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSID(this: *mut core::ffi::c_void, sid: i32) -> windows_core::HRESULT - where - Identity: IDVBTuneRequest_Impl, - { + unsafe extern "system" fn SetSID(this: *mut core::ffi::c_void, sid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTuneRequest_Impl::SetSID(this, core::mem::transmute_copy(&sid)).into() } @@ -4365,14 +3390,8 @@ pub trait IDVBTuningSpace_Impl: Sized + ITuningSpace_Impl { impl windows_core::RuntimeName for IDVBTuningSpace {} #[cfg(feature = "Win32_System_Com")] impl IDVBTuningSpace_Vtbl { - pub const fn new() -> IDVBTuningSpace_Vtbl - where - Identity: IDVBTuningSpace_Impl, - { - unsafe extern "system" fn SystemType(this: *mut core::ffi::c_void, systype: *mut super::DVBSystemType) -> windows_core::HRESULT - where - Identity: IDVBTuningSpace_Impl, - { + pub const fn new() -> IDVBTuningSpace_Vtbl { + unsafe extern "system" fn SystemType(this: *mut core::ffi::c_void, systype: *mut super::DVBSystemType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTuningSpace_Impl::SystemType(this) { Ok(ok__) => { @@ -4382,10 +3401,7 @@ impl IDVBTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSystemType(this: *mut core::ffi::c_void, systype: super::DVBSystemType) -> windows_core::HRESULT - where - Identity: IDVBTuningSpace_Impl, - { + unsafe extern "system" fn SetSystemType(this: *mut core::ffi::c_void, systype: super::DVBSystemType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTuningSpace_Impl::SetSystemType(this, core::mem::transmute_copy(&systype)).into() } @@ -4408,14 +3424,8 @@ pub trait IDVBTuningSpace2_Impl: Sized + IDVBTuningSpace_Impl { impl windows_core::RuntimeName for IDVBTuningSpace2 {} #[cfg(feature = "Win32_System_Com")] impl IDVBTuningSpace2_Vtbl { - pub const fn new() -> IDVBTuningSpace2_Vtbl - where - Identity: IDVBTuningSpace2_Impl, - { - unsafe extern "system" fn NetworkID(this: *mut core::ffi::c_void, networkid: *mut i32) -> windows_core::HRESULT - where - Identity: IDVBTuningSpace2_Impl, - { + pub const fn new() -> IDVBTuningSpace2_Vtbl { + unsafe extern "system" fn NetworkID(this: *mut core::ffi::c_void, networkid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVBTuningSpace2_Impl::NetworkID(this) { Ok(ok__) => { @@ -4425,10 +3435,7 @@ impl IDVBTuningSpace2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkID(this: *mut core::ffi::c_void, networkid: i32) -> windows_core::HRESULT - where - Identity: IDVBTuningSpace2_Impl, - { + unsafe extern "system" fn SetNetworkID(this: *mut core::ffi::c_void, networkid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVBTuningSpace2_Impl::SetNetworkID(this, core::mem::transmute_copy(&networkid)).into() } @@ -4442,7 +3449,7 @@ impl IDVBTuningSpace2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDVB_BAT_Impl: Sized { +pub trait IDVB_BAT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetBouquetId(&self) -> windows_core::Result; @@ -4462,21 +3469,12 @@ pub trait IDVB_BAT_Impl: Sized { } impl windows_core::RuntimeName for IDVB_BAT {} impl IDVB_BAT_Vtbl { - pub const fn new() -> IDVB_BAT_Vtbl - where - Identity: IDVB_BAT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + pub const fn new() -> IDVB_BAT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_BAT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_BAT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -4486,10 +3484,7 @@ impl IDVB_BAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBouquetId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetBouquetId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_BAT_Impl::GetBouquetId(this) { Ok(ok__) => { @@ -4499,10 +3494,7 @@ impl IDVB_BAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_BAT_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -4512,24 +3504,15 @@ impl IDVB_BAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_BAT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_BAT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_BAT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -4539,10 +3522,7 @@ impl IDVB_BAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTransportStreamId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetRecordTransportStreamId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_BAT_Impl::GetRecordTransportStreamId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -4552,10 +3532,7 @@ impl IDVB_BAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordOriginalNetworkId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetRecordOriginalNetworkId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_BAT_Impl::GetRecordOriginalNetworkId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -4565,10 +3542,7 @@ impl IDVB_BAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_BAT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -4578,10 +3552,7 @@ impl IDVB_BAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_BAT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -4591,24 +3562,15 @@ impl IDVB_BAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_BAT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_BAT_Impl::RegisterForNextTable(this, core::mem::transmute_copy(&hnexttableavailable)).into() } - unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, ppbat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, ppbat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_BAT_Impl::GetNextTable(this) { Ok(ok__) => { @@ -4618,17 +3580,11 @@ impl IDVB_BAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_BAT_Impl::RegisterForWhenCurrent(this, core::mem::transmute_copy(&hnexttableiscurrent)).into() } - unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_BAT_Impl, - { + unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_BAT_Impl::ConvertNextToCurrent(this).into() } @@ -4656,27 +3612,18 @@ impl IDVB_BAT_Vtbl { iid == &::IID } } -pub trait IDVB_DIT_Impl: Sized { +pub trait IDVB_DIT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>) -> windows_core::Result<()>; fn GetTransitionFlag(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDVB_DIT {} impl IDVB_DIT_Vtbl { - pub const fn new() -> IDVB_DIT_Vtbl - where - Identity: IDVB_DIT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_DIT_Impl, - { + pub const fn new() -> IDVB_DIT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_DIT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist)).into() } - unsafe extern "system" fn GetTransitionFlag(this: *mut core::ffi::c_void, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDVB_DIT_Impl, - { + unsafe extern "system" fn GetTransitionFlag(this: *mut core::ffi::c_void, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_DIT_Impl::GetTransitionFlag(this) { Ok(ok__) => { @@ -4696,7 +3643,7 @@ impl IDVB_DIT_Vtbl { iid == &::IID } } -pub trait IDVB_EIT_Impl: Sized { +pub trait IDVB_EIT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetServiceId(&self) -> windows_core::Result; @@ -4721,21 +3668,12 @@ pub trait IDVB_EIT_Impl: Sized { } impl windows_core::RuntimeName for IDVB_EIT {} impl IDVB_EIT_Vtbl { - pub const fn new() -> IDVB_EIT_Vtbl - where - Identity: IDVB_EIT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + pub const fn new() -> IDVB_EIT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_EIT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -4745,10 +3683,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetServiceId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetServiceId(this) { Ok(ok__) => { @@ -4758,10 +3693,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetTransportStreamId(this) { Ok(ok__) => { @@ -4771,10 +3703,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetOriginalNetworkId(this) { Ok(ok__) => { @@ -4784,10 +3713,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSegmentLastSectionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetSegmentLastSectionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetSegmentLastSectionNumber(this) { Ok(ok__) => { @@ -4797,10 +3723,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastTableId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetLastTableId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetLastTableId(this) { Ok(ok__) => { @@ -4810,10 +3733,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -4823,10 +3743,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordEventId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetRecordEventId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetRecordEventId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -4836,10 +3753,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordStartTime(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetRecordStartTime(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetRecordStartTime(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -4849,10 +3763,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDuration(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdval: *mut MPEG_TIME) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetRecordDuration(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdval: *mut MPEG_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetRecordDuration(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -4862,10 +3773,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordRunningStatus(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetRecordRunningStatus(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetRecordRunningStatus(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -4875,10 +3783,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordFreeCAMode(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetRecordFreeCAMode(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetRecordFreeCAMode(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -4888,10 +3793,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -4901,10 +3803,7 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -4914,24 +3813,15 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_EIT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_EIT_Impl::RegisterForNextTable(this, core::mem::transmute_copy(&hnexttableavailable)).into() } - unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, ppeit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, ppeit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetNextTable(this) { Ok(ok__) => { @@ -4941,24 +3831,15 @@ impl IDVB_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_EIT_Impl::RegisterForWhenCurrent(this, core::mem::transmute_copy(&hnexttableiscurrent)).into() } - unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_EIT_Impl::ConvertNextToCurrent(this).into() } - unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_EIT_Impl, - { + unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetVersionHash(this) { Ok(ok__) => { @@ -5003,21 +3884,12 @@ pub trait IDVB_EIT2_Impl: Sized + IDVB_EIT_Impl { } impl windows_core::RuntimeName for IDVB_EIT2 {} impl IDVB_EIT2_Vtbl { - pub const fn new() -> IDVB_EIT2_Vtbl - where - Identity: IDVB_EIT2_Impl, - { - unsafe extern "system" fn GetSegmentInfo(this: *mut core::ffi::c_void, pbtid: *mut u8, pbsegment: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_EIT2_Impl, - { + pub const fn new() -> IDVB_EIT2_Vtbl { + unsafe extern "system" fn GetSegmentInfo(this: *mut core::ffi::c_void, pbtid: *mut u8, pbsegment: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_EIT2_Impl::GetSegmentInfo(this, core::mem::transmute_copy(&pbtid), core::mem::transmute_copy(&pbsegment)).into() } - unsafe extern "system" fn GetRecordSection(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_EIT2_Impl, - { + unsafe extern "system" fn GetRecordSection(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT2_Impl::GetRecordSection(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5037,7 +3909,7 @@ impl IDVB_EIT2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDVB_NIT_Impl: Sized { +pub trait IDVB_NIT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetNetworkId(&self) -> windows_core::Result; @@ -5058,21 +3930,12 @@ pub trait IDVB_NIT_Impl: Sized { } impl windows_core::RuntimeName for IDVB_NIT {} impl IDVB_NIT_Vtbl { - pub const fn new() -> IDVB_NIT_Vtbl - where - Identity: IDVB_NIT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + pub const fn new() -> IDVB_NIT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_NIT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -5082,10 +3945,7 @@ impl IDVB_NIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetNetworkId(this) { Ok(ok__) => { @@ -5095,10 +3955,7 @@ impl IDVB_NIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -5108,10 +3965,7 @@ impl IDVB_NIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -5121,17 +3975,11 @@ impl IDVB_NIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_NIT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -5141,10 +3989,7 @@ impl IDVB_NIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTransportStreamId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetRecordTransportStreamId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetRecordTransportStreamId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5154,10 +3999,7 @@ impl IDVB_NIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordOriginalNetworkId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetRecordOriginalNetworkId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetRecordOriginalNetworkId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5167,10 +4009,7 @@ impl IDVB_NIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5180,10 +4019,7 @@ impl IDVB_NIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -5193,24 +4029,15 @@ impl IDVB_NIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_NIT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_NIT_Impl::RegisterForNextTable(this, core::mem::transmute_copy(&hnexttableavailable)).into() } - unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, ppnit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, ppnit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetNextTable(this) { Ok(ok__) => { @@ -5220,24 +4047,15 @@ impl IDVB_NIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_NIT_Impl::RegisterForWhenCurrent(this, core::mem::transmute_copy(&hnexttableiscurrent)).into() } - unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_NIT_Impl::ConvertNextToCurrent(this).into() } - unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_NIT_Impl, - { + unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_NIT_Impl::GetVersionHash(this) { Ok(ok__) => { @@ -5272,7 +4090,7 @@ impl IDVB_NIT_Vtbl { iid == &::IID } } -pub trait IDVB_RST_Impl: Sized { +pub trait IDVB_RST_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>) -> windows_core::Result<()>; fn GetCountOfRecords(&self) -> windows_core::Result; fn GetRecordTransportStreamId(&self, dwrecordindex: u32) -> windows_core::Result; @@ -5283,21 +4101,12 @@ pub trait IDVB_RST_Impl: Sized { } impl windows_core::RuntimeName for IDVB_RST {} impl IDVB_RST_Vtbl { - pub const fn new() -> IDVB_RST_Vtbl - where - Identity: IDVB_RST_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_RST_Impl, - { + pub const fn new() -> IDVB_RST_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_RST_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist)).into() } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_RST_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_RST_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -5307,10 +4116,7 @@ impl IDVB_RST_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTransportStreamId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_RST_Impl, - { + unsafe extern "system" fn GetRecordTransportStreamId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_RST_Impl::GetRecordTransportStreamId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5320,10 +4126,7 @@ impl IDVB_RST_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordOriginalNetworkId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_RST_Impl, - { + unsafe extern "system" fn GetRecordOriginalNetworkId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_RST_Impl::GetRecordOriginalNetworkId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5333,10 +4136,7 @@ impl IDVB_RST_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_RST_Impl, - { + unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_RST_Impl::GetRecordServiceId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5346,10 +4146,7 @@ impl IDVB_RST_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordEventId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_RST_Impl, - { + unsafe extern "system" fn GetRecordEventId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_RST_Impl::GetRecordEventId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5359,10 +4156,7 @@ impl IDVB_RST_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordRunningStatus(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_RST_Impl, - { + unsafe extern "system" fn GetRecordRunningStatus(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_RST_Impl::GetRecordRunningStatus(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5387,7 +4181,7 @@ impl IDVB_RST_Vtbl { iid == &::IID } } -pub trait IDVB_SDT_Impl: Sized { +pub trait IDVB_SDT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetTransportStreamId(&self) -> windows_core::Result; @@ -5409,21 +4203,12 @@ pub trait IDVB_SDT_Impl: Sized { } impl windows_core::RuntimeName for IDVB_SDT {} impl IDVB_SDT_Vtbl { - pub const fn new() -> IDVB_SDT_Vtbl - where - Identity: IDVB_SDT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + pub const fn new() -> IDVB_SDT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SDT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -5433,10 +4218,7 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetTransportStreamId(this) { Ok(ok__) => { @@ -5446,10 +4228,7 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetOriginalNetworkId(this) { Ok(ok__) => { @@ -5459,10 +4238,7 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -5472,10 +4248,7 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetRecordServiceId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5485,10 +4258,7 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordEITScheduleFlag(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetRecordEITScheduleFlag(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetRecordEITScheduleFlag(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5498,10 +4268,7 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordEITPresentFollowingFlag(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetRecordEITPresentFollowingFlag(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetRecordEITPresentFollowingFlag(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5511,10 +4278,7 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordRunningStatus(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetRecordRunningStatus(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetRecordRunningStatus(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5524,10 +4288,7 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordFreeCAMode(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetRecordFreeCAMode(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetRecordFreeCAMode(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5537,10 +4298,7 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5550,10 +4308,7 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -5563,24 +4318,15 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SDT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SDT_Impl::RegisterForNextTable(this, core::mem::transmute_copy(&hnexttableavailable)).into() } - unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, ppsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, ppsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetNextTable(this) { Ok(ok__) => { @@ -5590,24 +4336,15 @@ impl IDVB_SDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SDT_Impl::RegisterForWhenCurrent(this, core::mem::transmute_copy(&hnexttableiscurrent)).into() } - unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SDT_Impl::ConvertNextToCurrent(this).into() } - unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_SDT_Impl, - { + unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetVersionHash(this) { Ok(ok__) => { @@ -5643,7 +4380,7 @@ impl IDVB_SDT_Vtbl { iid == &::IID } } -pub trait IDVB_SIT_Impl: Sized { +pub trait IDVB_SIT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetCountOfTableDescriptors(&self) -> windows_core::Result; @@ -5662,21 +4399,12 @@ pub trait IDVB_SIT_Impl: Sized { } impl windows_core::RuntimeName for IDVB_SIT {} impl IDVB_SIT_Vtbl { - pub const fn new() -> IDVB_SIT_Vtbl - where - Identity: IDVB_SIT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + pub const fn new() -> IDVB_SIT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SIT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SIT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -5686,10 +4414,7 @@ impl IDVB_SIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SIT_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -5699,10 +4424,7 @@ impl IDVB_SIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SIT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -5712,17 +4434,11 @@ impl IDVB_SIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SIT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SIT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -5732,10 +4448,7 @@ impl IDVB_SIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SIT_Impl::GetRecordServiceId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5745,10 +4458,7 @@ impl IDVB_SIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordRunningStatus(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetRecordRunningStatus(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SIT_Impl::GetRecordRunningStatus(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5758,10 +4468,7 @@ impl IDVB_SIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SIT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -5771,10 +4478,7 @@ impl IDVB_SIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SIT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -5784,24 +4488,15 @@ impl IDVB_SIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SIT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SIT_Impl::RegisterForNextTable(this, core::mem::transmute_copy(&hnexttableavailable)).into() } - unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, dwtimeout: u32, ppsit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, dwtimeout: u32, ppsit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SIT_Impl::GetNextTable(this, core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -5811,17 +4506,11 @@ impl IDVB_SIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SIT_Impl::RegisterForWhenCurrent(this, core::mem::transmute_copy(&hnexttableiscurrent)).into() } - unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_SIT_Impl, - { + unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_SIT_Impl::ConvertNextToCurrent(this).into() } @@ -5848,28 +4537,19 @@ impl IDVB_SIT_Vtbl { iid == &::IID } } -pub trait IDVB_ST_Impl: Sized { +pub trait IDVB_ST_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>) -> windows_core::Result<()>; fn GetDataLength(&self) -> windows_core::Result; fn GetData(&self) -> windows_core::Result<*mut u8>; } impl windows_core::RuntimeName for IDVB_ST {} impl IDVB_ST_Vtbl { - pub const fn new() -> IDVB_ST_Vtbl - where - Identity: IDVB_ST_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_ST_Impl, - { + pub const fn new() -> IDVB_ST_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_ST_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist)).into() } - unsafe extern "system" fn GetDataLength(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDVB_ST_Impl, - { + unsafe extern "system" fn GetDataLength(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_ST_Impl::GetDataLength(this) { Ok(ok__) => { @@ -5879,10 +4559,7 @@ impl IDVB_ST_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, ppdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDVB_ST_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, ppdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_ST_Impl::GetData(this) { Ok(ok__) => { @@ -5903,27 +4580,18 @@ impl IDVB_ST_Vtbl { iid == &::IID } } -pub trait IDVB_TDT_Impl: Sized { +pub trait IDVB_TDT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>) -> windows_core::Result<()>; fn GetUTCTime(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDVB_TDT {} impl IDVB_TDT_Vtbl { - pub const fn new() -> IDVB_TDT_Vtbl - where - Identity: IDVB_TDT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_TDT_Impl, - { + pub const fn new() -> IDVB_TDT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_TDT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist)).into() } - unsafe extern "system" fn GetUTCTime(this: *mut core::ffi::c_void, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT - where - Identity: IDVB_TDT_Impl, - { + unsafe extern "system" fn GetUTCTime(this: *mut core::ffi::c_void, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_TDT_Impl::GetUTCTime(this) { Ok(ok__) => { @@ -5943,7 +4611,7 @@ impl IDVB_TDT_Vtbl { iid == &::IID } } -pub trait IDVB_TOT_Impl: Sized { +pub trait IDVB_TOT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>) -> windows_core::Result<()>; fn GetUTCTime(&self) -> windows_core::Result; fn GetCountOfTableDescriptors(&self) -> windows_core::Result; @@ -5952,21 +4620,12 @@ pub trait IDVB_TOT_Impl: Sized { } impl windows_core::RuntimeName for IDVB_TOT {} impl IDVB_TOT_Vtbl { - pub const fn new() -> IDVB_TOT_Vtbl - where - Identity: IDVB_TOT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_TOT_Impl, - { + pub const fn new() -> IDVB_TOT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_TOT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist)).into() } - unsafe extern "system" fn GetUTCTime(this: *mut core::ffi::c_void, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT - where - Identity: IDVB_TOT_Impl, - { + unsafe extern "system" fn GetUTCTime(this: *mut core::ffi::c_void, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_TOT_Impl::GetUTCTime(this) { Ok(ok__) => { @@ -5976,10 +4635,7 @@ impl IDVB_TOT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDVB_TOT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_TOT_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -5989,10 +4645,7 @@ impl IDVB_TOT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_TOT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_TOT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -6002,10 +4655,7 @@ impl IDVB_TOT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDVB_TOT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVB_TOT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } @@ -6028,10 +4678,7 @@ pub trait IDigitalCableLocator_Impl: Sized + IATSCLocator2_Impl {} impl windows_core::RuntimeName for IDigitalCableLocator {} #[cfg(feature = "Win32_System_Com")] impl IDigitalCableLocator_Vtbl { - pub const fn new() -> IDigitalCableLocator_Vtbl - where - Identity: IDigitalCableLocator_Impl, - { + pub const fn new() -> IDigitalCableLocator_Vtbl { Self { base__: IATSCLocator2_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -6049,14 +4696,8 @@ pub trait IDigitalCableTuneRequest_Impl: Sized + IATSCChannelTuneRequest_Impl { impl windows_core::RuntimeName for IDigitalCableTuneRequest {} #[cfg(feature = "Win32_System_Com")] impl IDigitalCableTuneRequest_Vtbl { - pub const fn new() -> IDigitalCableTuneRequest_Vtbl - where - Identity: IDigitalCableTuneRequest_Impl, - { - unsafe extern "system" fn MajorChannel(this: *mut core::ffi::c_void, pmajorchannel: *mut i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuneRequest_Impl, - { + pub const fn new() -> IDigitalCableTuneRequest_Vtbl { + unsafe extern "system" fn MajorChannel(this: *mut core::ffi::c_void, pmajorchannel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDigitalCableTuneRequest_Impl::MajorChannel(this) { Ok(ok__) => { @@ -6066,17 +4707,11 @@ impl IDigitalCableTuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMajorChannel(this: *mut core::ffi::c_void, majorchannel: i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuneRequest_Impl, - { + unsafe extern "system" fn SetMajorChannel(this: *mut core::ffi::c_void, majorchannel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDigitalCableTuneRequest_Impl::SetMajorChannel(this, core::mem::transmute_copy(&majorchannel)).into() } - unsafe extern "system" fn SourceID(this: *mut core::ffi::c_void, psourceid: *mut i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuneRequest_Impl, - { + unsafe extern "system" fn SourceID(this: *mut core::ffi::c_void, psourceid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDigitalCableTuneRequest_Impl::SourceID(this) { Ok(ok__) => { @@ -6086,10 +4721,7 @@ impl IDigitalCableTuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourceID(this: *mut core::ffi::c_void, sourceid: i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuneRequest_Impl, - { + unsafe extern "system" fn SetSourceID(this: *mut core::ffi::c_void, sourceid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDigitalCableTuneRequest_Impl::SetSourceID(this, core::mem::transmute_copy(&sourceid)).into() } @@ -6120,14 +4752,8 @@ pub trait IDigitalCableTuningSpace_Impl: Sized + IATSCTuningSpace_Impl { impl windows_core::RuntimeName for IDigitalCableTuningSpace {} #[cfg(feature = "Win32_System_Com")] impl IDigitalCableTuningSpace_Vtbl { - pub const fn new() -> IDigitalCableTuningSpace_Vtbl - where - Identity: IDigitalCableTuningSpace_Impl, - { - unsafe extern "system" fn MinMajorChannel(this: *mut core::ffi::c_void, minmajorchannelval: *mut i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuningSpace_Impl, - { + pub const fn new() -> IDigitalCableTuningSpace_Vtbl { + unsafe extern "system" fn MinMajorChannel(this: *mut core::ffi::c_void, minmajorchannelval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDigitalCableTuningSpace_Impl::MinMajorChannel(this) { Ok(ok__) => { @@ -6137,17 +4763,11 @@ impl IDigitalCableTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinMajorChannel(this: *mut core::ffi::c_void, newminmajorchannelval: i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuningSpace_Impl, - { + unsafe extern "system" fn SetMinMajorChannel(this: *mut core::ffi::c_void, newminmajorchannelval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDigitalCableTuningSpace_Impl::SetMinMajorChannel(this, core::mem::transmute_copy(&newminmajorchannelval)).into() } - unsafe extern "system" fn MaxMajorChannel(this: *mut core::ffi::c_void, maxmajorchannelval: *mut i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuningSpace_Impl, - { + unsafe extern "system" fn MaxMajorChannel(this: *mut core::ffi::c_void, maxmajorchannelval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDigitalCableTuningSpace_Impl::MaxMajorChannel(this) { Ok(ok__) => { @@ -6157,17 +4777,11 @@ impl IDigitalCableTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxMajorChannel(this: *mut core::ffi::c_void, newmaxmajorchannelval: i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuningSpace_Impl, - { + unsafe extern "system" fn SetMaxMajorChannel(this: *mut core::ffi::c_void, newmaxmajorchannelval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDigitalCableTuningSpace_Impl::SetMaxMajorChannel(this, core::mem::transmute_copy(&newmaxmajorchannelval)).into() } - unsafe extern "system" fn MinSourceID(this: *mut core::ffi::c_void, minsourceidval: *mut i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuningSpace_Impl, - { + unsafe extern "system" fn MinSourceID(this: *mut core::ffi::c_void, minsourceidval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDigitalCableTuningSpace_Impl::MinSourceID(this) { Ok(ok__) => { @@ -6177,17 +4791,11 @@ impl IDigitalCableTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinSourceID(this: *mut core::ffi::c_void, newminsourceidval: i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuningSpace_Impl, - { + unsafe extern "system" fn SetMinSourceID(this: *mut core::ffi::c_void, newminsourceidval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDigitalCableTuningSpace_Impl::SetMinSourceID(this, core::mem::transmute_copy(&newminsourceidval)).into() } - unsafe extern "system" fn MaxSourceID(this: *mut core::ffi::c_void, maxsourceidval: *mut i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuningSpace_Impl, - { + unsafe extern "system" fn MaxSourceID(this: *mut core::ffi::c_void, maxsourceidval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDigitalCableTuningSpace_Impl::MaxSourceID(this) { Ok(ok__) => { @@ -6197,10 +4805,7 @@ impl IDigitalCableTuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxSourceID(this: *mut core::ffi::c_void, newmaxsourceidval: i32) -> windows_core::HRESULT - where - Identity: IDigitalCableTuningSpace_Impl, - { + unsafe extern "system" fn SetMaxSourceID(this: *mut core::ffi::c_void, newmaxsourceidval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDigitalCableTuningSpace_Impl::SetMaxSourceID(this, core::mem::transmute_copy(&newmaxsourceidval)).into() } @@ -6226,17 +4831,14 @@ pub trait IDigitalLocator_Impl: Sized + ILocator_Impl {} impl windows_core::RuntimeName for IDigitalLocator {} #[cfg(feature = "Win32_System_Com")] impl IDigitalLocator_Vtbl { - pub const fn new() -> IDigitalLocator_Vtbl - where - Identity: IDigitalLocator_Impl, - { + pub const fn new() -> IDigitalLocator_Vtbl { Self { base__: ILocator_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDvbCableDeliverySystemDescriptor_Impl: Sized { +pub trait IDvbCableDeliverySystemDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetFrequency(&self) -> windows_core::Result; @@ -6247,14 +4849,8 @@ pub trait IDvbCableDeliverySystemDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbCableDeliverySystemDescriptor {} impl IDvbCableDeliverySystemDescriptor_Vtbl { - pub const fn new() -> IDvbCableDeliverySystemDescriptor_Vtbl - where - Identity: IDvbCableDeliverySystemDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbCableDeliverySystemDescriptor_Impl, - { + pub const fn new() -> IDvbCableDeliverySystemDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbCableDeliverySystemDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -6264,10 +4860,7 @@ impl IDvbCableDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbCableDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbCableDeliverySystemDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -6277,10 +4870,7 @@ impl IDvbCableDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrequency(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbCableDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetFrequency(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbCableDeliverySystemDescriptor_Impl::GetFrequency(this) { Ok(ok__) => { @@ -6290,10 +4880,7 @@ impl IDvbCableDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFECOuter(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbCableDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetFECOuter(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbCableDeliverySystemDescriptor_Impl::GetFECOuter(this) { Ok(ok__) => { @@ -6303,10 +4890,7 @@ impl IDvbCableDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModulation(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbCableDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetModulation(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbCableDeliverySystemDescriptor_Impl::GetModulation(this) { Ok(ok__) => { @@ -6316,10 +4900,7 @@ impl IDvbCableDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolRate(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbCableDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetSymbolRate(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbCableDeliverySystemDescriptor_Impl::GetSymbolRate(this) { Ok(ok__) => { @@ -6329,10 +4910,7 @@ impl IDvbCableDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFECInner(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbCableDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetFECInner(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbCableDeliverySystemDescriptor_Impl::GetFECInner(this) { Ok(ok__) => { @@ -6357,7 +4935,7 @@ impl IDvbCableDeliverySystemDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbComponentDescriptor_Impl: Sized { +pub trait IDvbComponentDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetStreamContent(&self) -> windows_core::Result; @@ -6368,14 +4946,8 @@ pub trait IDvbComponentDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbComponentDescriptor {} impl IDvbComponentDescriptor_Vtbl { - pub const fn new() -> IDvbComponentDescriptor_Vtbl - where - Identity: IDvbComponentDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbComponentDescriptor_Impl, - { + pub const fn new() -> IDvbComponentDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbComponentDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -6385,10 +4957,7 @@ impl IDvbComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbComponentDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbComponentDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -6398,10 +4967,7 @@ impl IDvbComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamContent(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbComponentDescriptor_Impl, - { + unsafe extern "system" fn GetStreamContent(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbComponentDescriptor_Impl::GetStreamContent(this) { Ok(ok__) => { @@ -6411,10 +4977,7 @@ impl IDvbComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComponentType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbComponentDescriptor_Impl, - { + unsafe extern "system" fn GetComponentType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbComponentDescriptor_Impl::GetComponentType(this) { Ok(ok__) => { @@ -6424,10 +4987,7 @@ impl IDvbComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComponentTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbComponentDescriptor_Impl, - { + unsafe extern "system" fn GetComponentTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbComponentDescriptor_Impl::GetComponentTag(this) { Ok(ok__) => { @@ -6437,17 +4997,11 @@ impl IDvbComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbComponentDescriptor_Impl, - { + unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbComponentDescriptor_Impl::GetLanguageCode(this, core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbComponentDescriptor_Impl, - { + unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbComponentDescriptor_Impl::GetTextW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -6472,7 +5026,7 @@ impl IDvbComponentDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbContentDescriptor_Impl: Sized { +pub trait IDvbContentDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; @@ -6481,14 +5035,8 @@ pub trait IDvbContentDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbContentDescriptor {} impl IDvbContentDescriptor_Vtbl { - pub const fn new() -> IDvbContentDescriptor_Vtbl - where - Identity: IDvbContentDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbContentDescriptor_Impl, - { + pub const fn new() -> IDvbContentDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbContentDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -6498,10 +5046,7 @@ impl IDvbContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbContentDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbContentDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -6511,10 +5056,7 @@ impl IDvbContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbContentDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbContentDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -6524,17 +5066,11 @@ impl IDvbContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordContentNibbles(this: *mut core::ffi::c_void, brecordindex: u8, pbvallevel1: *mut u8, pbvallevel2: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbContentDescriptor_Impl, - { + unsafe extern "system" fn GetRecordContentNibbles(this: *mut core::ffi::c_void, brecordindex: u8, pbvallevel1: *mut u8, pbvallevel2: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbContentDescriptor_Impl::GetRecordContentNibbles(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&pbvallevel1), core::mem::transmute_copy(&pbvallevel2)).into() } - unsafe extern "system" fn GetRecordUserNibbles(this: *mut core::ffi::c_void, brecordindex: u8, pbval1: *mut u8, pbval2: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbContentDescriptor_Impl, - { + unsafe extern "system" fn GetRecordUserNibbles(this: *mut core::ffi::c_void, brecordindex: u8, pbval1: *mut u8, pbval2: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbContentDescriptor_Impl::GetRecordUserNibbles(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&pbval1), core::mem::transmute_copy(&pbval2)).into() } @@ -6551,7 +5087,7 @@ impl IDvbContentDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbContentIdentifierDescriptor_Impl: Sized { +pub trait IDvbContentIdentifierDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; @@ -6559,14 +5095,8 @@ pub trait IDvbContentIdentifierDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbContentIdentifierDescriptor {} impl IDvbContentIdentifierDescriptor_Vtbl { - pub const fn new() -> IDvbContentIdentifierDescriptor_Vtbl - where - Identity: IDvbContentIdentifierDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbContentIdentifierDescriptor_Impl, - { + pub const fn new() -> IDvbContentIdentifierDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbContentIdentifierDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -6576,10 +5106,7 @@ impl IDvbContentIdentifierDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbContentIdentifierDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbContentIdentifierDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -6589,10 +5116,7 @@ impl IDvbContentIdentifierDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbContentIdentifierDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbContentIdentifierDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -6602,10 +5126,7 @@ impl IDvbContentIdentifierDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCrid(this: *mut core::ffi::c_void, brecordindex: u8, pbtype: *mut u8, pblocation: *mut u8, pblength: *mut u8, ppbbytes: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDvbContentIdentifierDescriptor_Impl, - { + unsafe extern "system" fn GetRecordCrid(this: *mut core::ffi::c_void, brecordindex: u8, pbtype: *mut u8, pblocation: *mut u8, pblength: *mut u8, ppbbytes: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbContentIdentifierDescriptor_Impl::GetRecordCrid(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&pbtype), core::mem::transmute_copy(&pblocation), core::mem::transmute_copy(&pblength), core::mem::transmute_copy(&ppbbytes)).into() } @@ -6621,7 +5142,7 @@ impl IDvbContentIdentifierDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbDataBroadcastDescriptor_Impl: Sized { +pub trait IDvbDataBroadcastDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetDataBroadcastID(&self) -> windows_core::Result; @@ -6634,14 +5155,8 @@ pub trait IDvbDataBroadcastDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbDataBroadcastDescriptor {} impl IDvbDataBroadcastDescriptor_Vtbl { - pub const fn new() -> IDvbDataBroadcastDescriptor_Vtbl - where - Identity: IDvbDataBroadcastDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastDescriptor_Impl, - { + pub const fn new() -> IDvbDataBroadcastDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDataBroadcastDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -6651,10 +5166,7 @@ impl IDvbDataBroadcastDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDataBroadcastDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -6664,10 +5176,7 @@ impl IDvbDataBroadcastDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataBroadcastID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastDescriptor_Impl, - { + unsafe extern "system" fn GetDataBroadcastID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDataBroadcastDescriptor_Impl::GetDataBroadcastID(this) { Ok(ok__) => { @@ -6677,10 +5186,7 @@ impl IDvbDataBroadcastDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComponentTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastDescriptor_Impl, - { + unsafe extern "system" fn GetComponentTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDataBroadcastDescriptor_Impl::GetComponentTag(this) { Ok(ok__) => { @@ -6690,10 +5196,7 @@ impl IDvbDataBroadcastDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectorLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastDescriptor_Impl, - { + unsafe extern "system" fn GetSelectorLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDataBroadcastDescriptor_Impl::GetSelectorLength(this) { Ok(ok__) => { @@ -6703,17 +5206,11 @@ impl IDvbDataBroadcastDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectorBytes(this: *mut core::ffi::c_void, pblen: *mut u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastDescriptor_Impl, - { + unsafe extern "system" fn GetSelectorBytes(this: *mut core::ffi::c_void, pblen: *mut u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbDataBroadcastDescriptor_Impl::GetSelectorBytes(this, core::mem::transmute_copy(&pblen), core::mem::transmute_copy(&pbval)).into() } - unsafe extern "system" fn GetLangID(this: *mut core::ffi::c_void, pulval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastDescriptor_Impl, - { + unsafe extern "system" fn GetLangID(this: *mut core::ffi::c_void, pulval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDataBroadcastDescriptor_Impl::GetLangID(this) { Ok(ok__) => { @@ -6723,10 +5220,7 @@ impl IDvbDataBroadcastDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastDescriptor_Impl, - { + unsafe extern "system" fn GetTextLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDataBroadcastDescriptor_Impl::GetTextLength(this) { Ok(ok__) => { @@ -6736,10 +5230,7 @@ impl IDvbDataBroadcastDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pblen: *mut u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastDescriptor_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pblen: *mut u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbDataBroadcastDescriptor_Impl::GetText(this, core::mem::transmute_copy(&pblen), core::mem::transmute_copy(&pbval)).into() } @@ -6760,7 +5251,7 @@ impl IDvbDataBroadcastDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbDataBroadcastIDDescriptor_Impl: Sized { +pub trait IDvbDataBroadcastIDDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetDataBroadcastID(&self) -> windows_core::Result; @@ -6768,14 +5259,8 @@ pub trait IDvbDataBroadcastIDDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbDataBroadcastIDDescriptor {} impl IDvbDataBroadcastIDDescriptor_Vtbl { - pub const fn new() -> IDvbDataBroadcastIDDescriptor_Vtbl - where - Identity: IDvbDataBroadcastIDDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastIDDescriptor_Impl, - { + pub const fn new() -> IDvbDataBroadcastIDDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDataBroadcastIDDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -6785,10 +5270,7 @@ impl IDvbDataBroadcastIDDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastIDDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDataBroadcastIDDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -6798,10 +5280,7 @@ impl IDvbDataBroadcastIDDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataBroadcastID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastIDDescriptor_Impl, - { + unsafe extern "system" fn GetDataBroadcastID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDataBroadcastIDDescriptor_Impl::GetDataBroadcastID(this) { Ok(ok__) => { @@ -6811,10 +5290,7 @@ impl IDvbDataBroadcastIDDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIDSelectorBytes(this: *mut core::ffi::c_void, pblen: *mut u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDataBroadcastIDDescriptor_Impl, - { + unsafe extern "system" fn GetIDSelectorBytes(this: *mut core::ffi::c_void, pblen: *mut u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbDataBroadcastIDDescriptor_Impl::GetIDSelectorBytes(this, core::mem::transmute_copy(&pblen), core::mem::transmute_copy(&pbval)).into() } @@ -6830,21 +5306,15 @@ impl IDvbDataBroadcastIDDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbDefaultAuthorityDescriptor_Impl: Sized { +pub trait IDvbDefaultAuthorityDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetDefaultAuthority(&self, pblength: *mut u8, ppbbytes: *mut *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDvbDefaultAuthorityDescriptor {} impl IDvbDefaultAuthorityDescriptor_Vtbl { - pub const fn new() -> IDvbDefaultAuthorityDescriptor_Vtbl - where - Identity: IDvbDefaultAuthorityDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDefaultAuthorityDescriptor_Impl, - { + pub const fn new() -> IDvbDefaultAuthorityDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDefaultAuthorityDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -6854,10 +5324,7 @@ impl IDvbDefaultAuthorityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDefaultAuthorityDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbDefaultAuthorityDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -6867,10 +5334,7 @@ impl IDvbDefaultAuthorityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultAuthority(this: *mut core::ffi::c_void, pblength: *mut u8, ppbbytes: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDvbDefaultAuthorityDescriptor_Impl, - { + unsafe extern "system" fn GetDefaultAuthority(this: *mut core::ffi::c_void, pblength: *mut u8, ppbbytes: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbDefaultAuthorityDescriptor_Impl::GetDefaultAuthority(this, core::mem::transmute_copy(&pblength), core::mem::transmute_copy(&ppbbytes)).into() } @@ -6885,7 +5349,7 @@ impl IDvbDefaultAuthorityDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbExtendedEventDescriptor_Impl: Sized { +pub trait IDvbExtendedEventDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetDescriptorNumber(&self) -> windows_core::Result; @@ -6900,14 +5364,8 @@ pub trait IDvbExtendedEventDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbExtendedEventDescriptor {} impl IDvbExtendedEventDescriptor_Vtbl { - pub const fn new() -> IDvbExtendedEventDescriptor_Vtbl - where - Identity: IDvbExtendedEventDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + pub const fn new() -> IDvbExtendedEventDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbExtendedEventDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -6917,10 +5375,7 @@ impl IDvbExtendedEventDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbExtendedEventDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -6930,10 +5385,7 @@ impl IDvbExtendedEventDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescriptorNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + unsafe extern "system" fn GetDescriptorNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbExtendedEventDescriptor_Impl::GetDescriptorNumber(this) { Ok(ok__) => { @@ -6943,10 +5395,7 @@ impl IDvbExtendedEventDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastDescriptorNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + unsafe extern "system" fn GetLastDescriptorNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbExtendedEventDescriptor_Impl::GetLastDescriptorNumber(this) { Ok(ok__) => { @@ -6956,17 +5405,11 @@ impl IDvbExtendedEventDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbExtendedEventDescriptor_Impl::GetLanguageCode(this, core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbExtendedEventDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -6976,24 +5419,15 @@ impl IDvbExtendedEventDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordItemW(this: *mut core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut core::mem::MaybeUninit, pbstritem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + unsafe extern "system" fn GetRecordItemW(this: *mut core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut core::mem::MaybeUninit, pbstritem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbExtendedEventDescriptor_Impl::GetRecordItemW(this, 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(this: *mut core::ffi::c_void, pfollowingdescriptor: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut core::mem::MaybeUninit, pbstritem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + unsafe extern "system" fn GetConcatenatedItemW(this: *mut core::ffi::c_void, pfollowingdescriptor: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut core::mem::MaybeUninit, pbstritem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbExtendedEventDescriptor_Impl::GetConcatenatedItemW(this, windows_core::from_raw_borrowed(&pfollowingdescriptor), core::mem::transmute_copy(&convmode), core::mem::transmute_copy(&pbstrdesc), core::mem::transmute_copy(&pbstritem)).into() } - unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbExtendedEventDescriptor_Impl::GetTextW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -7003,10 +5437,7 @@ impl IDvbExtendedEventDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConcatenatedTextW(this: *mut core::ffi::c_void, followingdescriptor: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + unsafe extern "system" fn GetConcatenatedTextW(this: *mut core::ffi::c_void, followingdescriptor: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbExtendedEventDescriptor_Impl::GetConcatenatedTextW(this, windows_core::from_raw_borrowed(&followingdescriptor), core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -7016,10 +5447,7 @@ impl IDvbExtendedEventDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordItemRawBytes(this: *mut core::ffi::c_void, brecordindex: u8, ppbrawitem: *mut *mut u8, pbitemlength: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbExtendedEventDescriptor_Impl, - { + unsafe extern "system" fn GetRecordItemRawBytes(this: *mut core::ffi::c_void, brecordindex: u8, ppbrawitem: *mut *mut u8, pbitemlength: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbExtendedEventDescriptor_Impl::GetRecordItemRawBytes(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&ppbrawitem), core::mem::transmute_copy(&pbitemlength)).into() } @@ -7042,7 +5470,7 @@ impl IDvbExtendedEventDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbFrequencyListDescriptor_Impl: Sized { +pub trait IDvbFrequencyListDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCodingType(&self) -> windows_core::Result; @@ -7051,14 +5479,8 @@ pub trait IDvbFrequencyListDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbFrequencyListDescriptor {} impl IDvbFrequencyListDescriptor_Vtbl { - pub const fn new() -> IDvbFrequencyListDescriptor_Vtbl - where - Identity: IDvbFrequencyListDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbFrequencyListDescriptor_Impl, - { + pub const fn new() -> IDvbFrequencyListDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbFrequencyListDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -7068,10 +5490,7 @@ impl IDvbFrequencyListDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbFrequencyListDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbFrequencyListDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -7081,10 +5500,7 @@ impl IDvbFrequencyListDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCodingType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbFrequencyListDescriptor_Impl, - { + unsafe extern "system" fn GetCodingType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbFrequencyListDescriptor_Impl::GetCodingType(this) { Ok(ok__) => { @@ -7094,10 +5510,7 @@ impl IDvbFrequencyListDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbFrequencyListDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbFrequencyListDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -7107,10 +5520,7 @@ impl IDvbFrequencyListDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCentreFrequency(this: *mut core::ffi::c_void, brecordindex: u8, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbFrequencyListDescriptor_Impl, - { + unsafe extern "system" fn GetRecordCentreFrequency(this: *mut core::ffi::c_void, brecordindex: u8, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbFrequencyListDescriptor_Impl::GetRecordCentreFrequency(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -7136,17 +5546,14 @@ impl IDvbFrequencyListDescriptor_Vtbl { pub trait IDvbHDSimulcastLogicalChannelDescriptor_Impl: Sized + IDvbLogicalChannelDescriptor2_Impl {} impl windows_core::RuntimeName for IDvbHDSimulcastLogicalChannelDescriptor {} impl IDvbHDSimulcastLogicalChannelDescriptor_Vtbl { - pub const fn new() -> IDvbHDSimulcastLogicalChannelDescriptor_Vtbl - where - Identity: IDvbHDSimulcastLogicalChannelDescriptor_Impl, - { + pub const fn new() -> IDvbHDSimulcastLogicalChannelDescriptor_Vtbl { Self { base__: IDvbLogicalChannelDescriptor2_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDvbLinkageDescriptor_Impl: Sized { +pub trait IDvbLinkageDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetTSId(&self) -> windows_core::Result; @@ -7158,14 +5565,8 @@ pub trait IDvbLinkageDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbLinkageDescriptor {} impl IDvbLinkageDescriptor_Vtbl { - pub const fn new() -> IDvbLinkageDescriptor_Vtbl - where - Identity: IDvbLinkageDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLinkageDescriptor_Impl, - { + pub const fn new() -> IDvbLinkageDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLinkageDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -7175,10 +5576,7 @@ impl IDvbLinkageDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLinkageDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLinkageDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -7188,10 +5586,7 @@ impl IDvbLinkageDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTSId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbLinkageDescriptor_Impl, - { + unsafe extern "system" fn GetTSId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLinkageDescriptor_Impl::GetTSId(this) { Ok(ok__) => { @@ -7201,10 +5596,7 @@ impl IDvbLinkageDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetONId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbLinkageDescriptor_Impl, - { + unsafe extern "system" fn GetONId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLinkageDescriptor_Impl::GetONId(this) { Ok(ok__) => { @@ -7214,10 +5606,7 @@ impl IDvbLinkageDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbLinkageDescriptor_Impl, - { + unsafe extern "system" fn GetServiceId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLinkageDescriptor_Impl::GetServiceId(this) { Ok(ok__) => { @@ -7227,10 +5616,7 @@ impl IDvbLinkageDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLinkageType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLinkageDescriptor_Impl, - { + unsafe extern "system" fn GetLinkageType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLinkageDescriptor_Impl::GetLinkageType(this) { Ok(ok__) => { @@ -7240,10 +5626,7 @@ impl IDvbLinkageDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrivateDataLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLinkageDescriptor_Impl, - { + unsafe extern "system" fn GetPrivateDataLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLinkageDescriptor_Impl::GetPrivateDataLength(this) { Ok(ok__) => { @@ -7253,10 +5636,7 @@ impl IDvbLinkageDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, pblen: *mut u8, pbdata: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLinkageDescriptor_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, pblen: *mut u8, pbdata: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbLinkageDescriptor_Impl::GetPrivateData(this, core::mem::transmute_copy(&pblen), core::mem::transmute_copy(&pbdata)).into() } @@ -7288,14 +5668,8 @@ pub trait IDvbLogicalChannel2Descriptor_Impl: Sized + IDvbLogicalChannelDescript } impl windows_core::RuntimeName for IDvbLogicalChannel2Descriptor {} impl IDvbLogicalChannel2Descriptor_Vtbl { - pub const fn new() -> IDvbLogicalChannel2Descriptor_Vtbl - where - Identity: IDvbLogicalChannel2Descriptor_Impl, - { - unsafe extern "system" fn GetCountOfLists(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannel2Descriptor_Impl, - { + pub const fn new() -> IDvbLogicalChannel2Descriptor_Vtbl { + unsafe extern "system" fn GetCountOfLists(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannel2Descriptor_Impl::GetCountOfLists(this) { Ok(ok__) => { @@ -7305,10 +5679,7 @@ impl IDvbLogicalChannel2Descriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetListId(this: *mut core::ffi::c_void, blistindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannel2Descriptor_Impl, - { + unsafe extern "system" fn GetListId(this: *mut core::ffi::c_void, blistindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannel2Descriptor_Impl::GetListId(this, core::mem::transmute_copy(&blistindex)) { Ok(ok__) => { @@ -7318,10 +5689,7 @@ impl IDvbLogicalChannel2Descriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetListNameW(this: *mut core::ffi::c_void, blistindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannel2Descriptor_Impl, - { + unsafe extern "system" fn GetListNameW(this: *mut core::ffi::c_void, blistindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannel2Descriptor_Impl::GetListNameW(this, core::mem::transmute_copy(&blistindex), core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -7331,17 +5699,11 @@ impl IDvbLogicalChannel2Descriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetListCountryCode(this: *mut core::ffi::c_void, blistindex: u8, pszcode: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannel2Descriptor_Impl, - { + unsafe extern "system" fn GetListCountryCode(this: *mut core::ffi::c_void, blistindex: u8, pszcode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbLogicalChannel2Descriptor_Impl::GetListCountryCode(this, core::mem::transmute_copy(&blistindex), core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetListCountOfRecords(this: *mut core::ffi::c_void, bchannellistindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannel2Descriptor_Impl, - { + unsafe extern "system" fn GetListCountOfRecords(this: *mut core::ffi::c_void, bchannellistindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannel2Descriptor_Impl::GetListCountOfRecords(this, core::mem::transmute_copy(&bchannellistindex)) { Ok(ok__) => { @@ -7351,10 +5713,7 @@ impl IDvbLogicalChannel2Descriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetListRecordServiceId(this: *mut core::ffi::c_void, blistindex: u8, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannel2Descriptor_Impl, - { + unsafe extern "system" fn GetListRecordServiceId(this: *mut core::ffi::c_void, blistindex: u8, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannel2Descriptor_Impl::GetListRecordServiceId(this, core::mem::transmute_copy(&blistindex), core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -7364,10 +5723,7 @@ impl IDvbLogicalChannel2Descriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetListRecordLogicalChannelNumber(this: *mut core::ffi::c_void, blistindex: u8, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannel2Descriptor_Impl, - { + unsafe extern "system" fn GetListRecordLogicalChannelNumber(this: *mut core::ffi::c_void, blistindex: u8, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannel2Descriptor_Impl::GetListRecordLogicalChannelNumber(this, core::mem::transmute_copy(&blistindex), core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -7377,10 +5733,7 @@ impl IDvbLogicalChannel2Descriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetListRecordLogicalChannelAndVisibility(this: *mut core::ffi::c_void, blistindex: u8, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannel2Descriptor_Impl, - { + unsafe extern "system" fn GetListRecordLogicalChannelAndVisibility(this: *mut core::ffi::c_void, blistindex: u8, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannel2Descriptor_Impl::GetListRecordLogicalChannelAndVisibility(this, core::mem::transmute_copy(&blistindex), core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -7406,7 +5759,7 @@ impl IDvbLogicalChannel2Descriptor_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDvbLogicalChannelDescriptor_Impl: Sized { +pub trait IDvbLogicalChannelDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; @@ -7415,14 +5768,8 @@ pub trait IDvbLogicalChannelDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbLogicalChannelDescriptor {} impl IDvbLogicalChannelDescriptor_Vtbl { - pub const fn new() -> IDvbLogicalChannelDescriptor_Vtbl - where - Identity: IDvbLogicalChannelDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannelDescriptor_Impl, - { + pub const fn new() -> IDvbLogicalChannelDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannelDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -7432,10 +5779,7 @@ impl IDvbLogicalChannelDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannelDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannelDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -7445,10 +5789,7 @@ impl IDvbLogicalChannelDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannelDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannelDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -7458,10 +5799,7 @@ impl IDvbLogicalChannelDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannelDescriptor_Impl, - { + unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannelDescriptor_Impl::GetRecordServiceId(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -7471,10 +5809,7 @@ impl IDvbLogicalChannelDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordLogicalChannelNumber(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannelDescriptor_Impl, - { + unsafe extern "system" fn GetRecordLogicalChannelNumber(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannelDescriptor_Impl::GetRecordLogicalChannelNumber(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -7502,14 +5837,8 @@ pub trait IDvbLogicalChannelDescriptor2_Impl: Sized + IDvbLogicalChannelDescript } impl windows_core::RuntimeName for IDvbLogicalChannelDescriptor2 {} impl IDvbLogicalChannelDescriptor2_Vtbl { - pub const fn new() -> IDvbLogicalChannelDescriptor2_Vtbl - where - Identity: IDvbLogicalChannelDescriptor2_Impl, - { - unsafe extern "system" fn GetRecordLogicalChannelAndVisibility(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbLogicalChannelDescriptor2_Impl, - { + pub const fn new() -> IDvbLogicalChannelDescriptor2_Vtbl { + unsafe extern "system" fn GetRecordLogicalChannelAndVisibility(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbLogicalChannelDescriptor2_Impl::GetRecordLogicalChannelAndVisibility(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -7528,7 +5857,7 @@ impl IDvbLogicalChannelDescriptor2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDvbMultilingualServiceNameDescriptor_Impl: Sized { +pub trait IDvbMultilingualServiceNameDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; @@ -7538,14 +5867,8 @@ pub trait IDvbMultilingualServiceNameDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbMultilingualServiceNameDescriptor {} impl IDvbMultilingualServiceNameDescriptor_Vtbl { - pub const fn new() -> IDvbMultilingualServiceNameDescriptor_Vtbl - where - Identity: IDvbMultilingualServiceNameDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbMultilingualServiceNameDescriptor_Impl, - { + pub const fn new() -> IDvbMultilingualServiceNameDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbMultilingualServiceNameDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -7555,10 +5878,7 @@ impl IDvbMultilingualServiceNameDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbMultilingualServiceNameDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbMultilingualServiceNameDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -7568,10 +5888,7 @@ impl IDvbMultilingualServiceNameDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbMultilingualServiceNameDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbMultilingualServiceNameDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -7581,10 +5898,7 @@ impl IDvbMultilingualServiceNameDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordLangId(this: *mut core::ffi::c_void, brecordindex: u8, ulval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbMultilingualServiceNameDescriptor_Impl, - { + unsafe extern "system" fn GetRecordLangId(this: *mut core::ffi::c_void, brecordindex: u8, ulval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbMultilingualServiceNameDescriptor_Impl::GetRecordLangId(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -7594,10 +5908,7 @@ impl IDvbMultilingualServiceNameDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceProviderNameW(this: *mut core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbMultilingualServiceNameDescriptor_Impl, - { + unsafe extern "system" fn GetRecordServiceProviderNameW(this: *mut core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbMultilingualServiceNameDescriptor_Impl::GetRecordServiceProviderNameW(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -7607,10 +5918,7 @@ impl IDvbMultilingualServiceNameDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceNameW(this: *mut core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbMultilingualServiceNameDescriptor_Impl, - { + unsafe extern "system" fn GetRecordServiceNameW(this: *mut core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbMultilingualServiceNameDescriptor_Impl::GetRecordServiceNameW(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -7634,7 +5942,7 @@ impl IDvbMultilingualServiceNameDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbNetworkNameDescriptor_Impl: Sized { +pub trait IDvbNetworkNameDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetNetworkName(&self) -> windows_core::Result<*mut u8>; @@ -7642,14 +5950,8 @@ pub trait IDvbNetworkNameDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbNetworkNameDescriptor {} impl IDvbNetworkNameDescriptor_Vtbl { - pub const fn new() -> IDvbNetworkNameDescriptor_Vtbl - where - Identity: IDvbNetworkNameDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbNetworkNameDescriptor_Impl, - { + pub const fn new() -> IDvbNetworkNameDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbNetworkNameDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -7659,10 +5961,7 @@ impl IDvbNetworkNameDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbNetworkNameDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbNetworkNameDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -7672,10 +5971,7 @@ impl IDvbNetworkNameDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetworkName(this: *mut core::ffi::c_void, pszname: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDvbNetworkNameDescriptor_Impl, - { + unsafe extern "system" fn GetNetworkName(this: *mut core::ffi::c_void, pszname: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbNetworkNameDescriptor_Impl::GetNetworkName(this) { Ok(ok__) => { @@ -7685,10 +5981,7 @@ impl IDvbNetworkNameDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetworkNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbNetworkNameDescriptor_Impl, - { + unsafe extern "system" fn GetNetworkNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbNetworkNameDescriptor_Impl::GetNetworkNameW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -7710,7 +6003,7 @@ impl IDvbNetworkNameDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbParentalRatingDescriptor_Impl: Sized { +pub trait IDvbParentalRatingDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; @@ -7718,14 +6011,8 @@ pub trait IDvbParentalRatingDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbParentalRatingDescriptor {} impl IDvbParentalRatingDescriptor_Vtbl { - pub const fn new() -> IDvbParentalRatingDescriptor_Vtbl - where - Identity: IDvbParentalRatingDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbParentalRatingDescriptor_Impl, - { + pub const fn new() -> IDvbParentalRatingDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbParentalRatingDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -7735,10 +6022,7 @@ impl IDvbParentalRatingDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbParentalRatingDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbParentalRatingDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -7748,10 +6032,7 @@ impl IDvbParentalRatingDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbParentalRatingDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbParentalRatingDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -7761,10 +6042,7 @@ impl IDvbParentalRatingDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordRating(this: *mut core::ffi::c_void, brecordindex: u8, pszcountrycode: *mut u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbParentalRatingDescriptor_Impl, - { + unsafe extern "system" fn GetRecordRating(this: *mut core::ffi::c_void, brecordindex: u8, pszcountrycode: *mut u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbParentalRatingDescriptor_Impl::GetRecordRating(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&pszcountrycode), core::mem::transmute_copy(&pbval)).into() } @@ -7780,21 +6058,15 @@ impl IDvbParentalRatingDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbPrivateDataSpecifierDescriptor_Impl: Sized { +pub trait IDvbPrivateDataSpecifierDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetPrivateDataSpecifier(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDvbPrivateDataSpecifierDescriptor {} impl IDvbPrivateDataSpecifierDescriptor_Vtbl { - pub const fn new() -> IDvbPrivateDataSpecifierDescriptor_Vtbl - where - Identity: IDvbPrivateDataSpecifierDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbPrivateDataSpecifierDescriptor_Impl, - { + pub const fn new() -> IDvbPrivateDataSpecifierDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbPrivateDataSpecifierDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -7804,10 +6076,7 @@ impl IDvbPrivateDataSpecifierDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbPrivateDataSpecifierDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbPrivateDataSpecifierDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -7817,10 +6086,7 @@ impl IDvbPrivateDataSpecifierDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrivateDataSpecifier(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbPrivateDataSpecifierDescriptor_Impl, - { + unsafe extern "system" fn GetPrivateDataSpecifier(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbPrivateDataSpecifierDescriptor_Impl::GetPrivateDataSpecifier(this) { Ok(ok__) => { @@ -7841,7 +6107,7 @@ impl IDvbPrivateDataSpecifierDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbSatelliteDeliverySystemDescriptor_Impl: Sized { +pub trait IDvbSatelliteDeliverySystemDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetFrequency(&self) -> windows_core::Result; @@ -7854,14 +6120,8 @@ pub trait IDvbSatelliteDeliverySystemDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbSatelliteDeliverySystemDescriptor {} impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { - pub const fn new() -> IDvbSatelliteDeliverySystemDescriptor_Vtbl - where - Identity: IDvbSatelliteDeliverySystemDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbSatelliteDeliverySystemDescriptor_Impl, - { + pub const fn new() -> IDvbSatelliteDeliverySystemDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSatelliteDeliverySystemDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -7871,10 +6131,7 @@ impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbSatelliteDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSatelliteDeliverySystemDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -7884,10 +6141,7 @@ impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrequency(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbSatelliteDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetFrequency(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSatelliteDeliverySystemDescriptor_Impl::GetFrequency(this) { Ok(ok__) => { @@ -7897,10 +6151,7 @@ impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOrbitalPosition(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbSatelliteDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetOrbitalPosition(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSatelliteDeliverySystemDescriptor_Impl::GetOrbitalPosition(this) { Ok(ok__) => { @@ -7910,10 +6161,7 @@ impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWestEastFlag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbSatelliteDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetWestEastFlag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSatelliteDeliverySystemDescriptor_Impl::GetWestEastFlag(this) { Ok(ok__) => { @@ -7923,10 +6171,7 @@ impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPolarization(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbSatelliteDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetPolarization(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSatelliteDeliverySystemDescriptor_Impl::GetPolarization(this) { Ok(ok__) => { @@ -7936,10 +6181,7 @@ impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModulation(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbSatelliteDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetModulation(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSatelliteDeliverySystemDescriptor_Impl::GetModulation(this) { Ok(ok__) => { @@ -7949,10 +6191,7 @@ impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolRate(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbSatelliteDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetSymbolRate(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSatelliteDeliverySystemDescriptor_Impl::GetSymbolRate(this) { Ok(ok__) => { @@ -7962,10 +6201,7 @@ impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFECInner(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbSatelliteDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetFECInner(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSatelliteDeliverySystemDescriptor_Impl::GetFECInner(this) { Ok(ok__) => { @@ -7992,7 +6228,7 @@ impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbServiceAttributeDescriptor_Impl: Sized { +pub trait IDvbServiceAttributeDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; @@ -8002,14 +6238,8 @@ pub trait IDvbServiceAttributeDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbServiceAttributeDescriptor {} impl IDvbServiceAttributeDescriptor_Vtbl { - pub const fn new() -> IDvbServiceAttributeDescriptor_Vtbl - where - Identity: IDvbServiceAttributeDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceAttributeDescriptor_Impl, - { + pub const fn new() -> IDvbServiceAttributeDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceAttributeDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -8019,10 +6249,7 @@ impl IDvbServiceAttributeDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceAttributeDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceAttributeDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -8032,10 +6259,7 @@ impl IDvbServiceAttributeDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceAttributeDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceAttributeDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -8045,10 +6269,7 @@ impl IDvbServiceAttributeDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbServiceAttributeDescriptor_Impl, - { + unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceAttributeDescriptor_Impl::GetRecordServiceId(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8058,10 +6279,7 @@ impl IDvbServiceAttributeDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordNumericSelectionFlag(this: *mut core::ffi::c_void, brecordindex: u8, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDvbServiceAttributeDescriptor_Impl, - { + unsafe extern "system" fn GetRecordNumericSelectionFlag(this: *mut core::ffi::c_void, brecordindex: u8, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceAttributeDescriptor_Impl::GetRecordNumericSelectionFlag(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8071,10 +6289,7 @@ impl IDvbServiceAttributeDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordVisibleServiceFlag(this: *mut core::ffi::c_void, brecordindex: u8, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDvbServiceAttributeDescriptor_Impl, - { + unsafe extern "system" fn GetRecordVisibleServiceFlag(this: *mut core::ffi::c_void, brecordindex: u8, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceAttributeDescriptor_Impl::GetRecordVisibleServiceFlag(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8098,7 +6313,7 @@ impl IDvbServiceAttributeDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbServiceDescriptor_Impl: Sized { +pub trait IDvbServiceDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetServiceType(&self) -> windows_core::Result; @@ -8110,14 +6325,8 @@ pub trait IDvbServiceDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbServiceDescriptor {} impl IDvbServiceDescriptor_Vtbl { - pub const fn new() -> IDvbServiceDescriptor_Vtbl - where - Identity: IDvbServiceDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceDescriptor_Impl, - { + pub const fn new() -> IDvbServiceDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -8127,10 +6336,7 @@ impl IDvbServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -8140,10 +6346,7 @@ impl IDvbServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceDescriptor_Impl, - { + unsafe extern "system" fn GetServiceType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceDescriptor_Impl::GetServiceType(this) { Ok(ok__) => { @@ -8153,10 +6356,7 @@ impl IDvbServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceProviderName(this: *mut core::ffi::c_void, pszname: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceDescriptor_Impl, - { + unsafe extern "system" fn GetServiceProviderName(this: *mut core::ffi::c_void, pszname: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceDescriptor_Impl::GetServiceProviderName(this) { Ok(ok__) => { @@ -8166,10 +6366,7 @@ impl IDvbServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceProviderNameW(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbServiceDescriptor_Impl, - { + unsafe extern "system" fn GetServiceProviderNameW(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceDescriptor_Impl::GetServiceProviderNameW(this) { Ok(ok__) => { @@ -8179,10 +6376,7 @@ impl IDvbServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceName(this: *mut core::ffi::c_void, pszname: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceDescriptor_Impl, - { + unsafe extern "system" fn GetServiceName(this: *mut core::ffi::c_void, pszname: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceDescriptor_Impl::GetServiceName(this) { Ok(ok__) => { @@ -8192,10 +6386,7 @@ impl IDvbServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessedServiceName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbServiceDescriptor_Impl, - { + unsafe extern "system" fn GetProcessedServiceName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceDescriptor_Impl::GetProcessedServiceName(this) { Ok(ok__) => { @@ -8205,10 +6396,7 @@ impl IDvbServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceNameEmphasized(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbServiceDescriptor_Impl, - { + unsafe extern "system" fn GetServiceNameEmphasized(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceDescriptor_Impl::GetServiceNameEmphasized(this) { Ok(ok__) => { @@ -8240,14 +6428,8 @@ pub trait IDvbServiceDescriptor2_Impl: Sized + IDvbServiceDescriptor_Impl { } impl windows_core::RuntimeName for IDvbServiceDescriptor2 {} impl IDvbServiceDescriptor2_Vtbl { - pub const fn new() -> IDvbServiceDescriptor2_Vtbl - where - Identity: IDvbServiceDescriptor2_Impl, - { - unsafe extern "system" fn GetServiceProviderNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbServiceDescriptor2_Impl, - { + pub const fn new() -> IDvbServiceDescriptor2_Vtbl { + unsafe extern "system" fn GetServiceProviderNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceDescriptor2_Impl::GetServiceProviderNameW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -8257,10 +6439,7 @@ impl IDvbServiceDescriptor2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbServiceDescriptor2_Impl, - { + unsafe extern "system" fn GetServiceNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceDescriptor2_Impl::GetServiceNameW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -8280,7 +6459,7 @@ impl IDvbServiceDescriptor2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDvbServiceListDescriptor_Impl: Sized { +pub trait IDvbServiceListDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; @@ -8289,14 +6468,8 @@ pub trait IDvbServiceListDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbServiceListDescriptor {} impl IDvbServiceListDescriptor_Vtbl { - pub const fn new() -> IDvbServiceListDescriptor_Vtbl - where - Identity: IDvbServiceListDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceListDescriptor_Impl, - { + pub const fn new() -> IDvbServiceListDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceListDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -8306,10 +6479,7 @@ impl IDvbServiceListDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceListDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceListDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -8319,10 +6489,7 @@ impl IDvbServiceListDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceListDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceListDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -8332,10 +6499,7 @@ impl IDvbServiceListDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbServiceListDescriptor_Impl, - { + unsafe extern "system" fn GetRecordServiceId(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceListDescriptor_Impl::GetRecordServiceId(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8345,10 +6509,7 @@ impl IDvbServiceListDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceType(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbServiceListDescriptor_Impl, - { + unsafe extern "system" fn GetRecordServiceType(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceListDescriptor_Impl::GetRecordServiceType(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8371,7 +6532,7 @@ impl IDvbServiceListDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbShortEventDescriptor_Impl: Sized { +pub trait IDvbShortEventDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetLanguageCode(&self, pszcode: *mut u8) -> windows_core::Result<()>; @@ -8380,14 +6541,8 @@ pub trait IDvbShortEventDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbShortEventDescriptor {} impl IDvbShortEventDescriptor_Vtbl { - pub const fn new() -> IDvbShortEventDescriptor_Vtbl - where - Identity: IDvbShortEventDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbShortEventDescriptor_Impl, - { + pub const fn new() -> IDvbShortEventDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbShortEventDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -8397,10 +6552,7 @@ impl IDvbShortEventDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbShortEventDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbShortEventDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -8410,17 +6562,11 @@ impl IDvbShortEventDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbShortEventDescriptor_Impl, - { + unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbShortEventDescriptor_Impl::GetLanguageCode(this, core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetEventNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbShortEventDescriptor_Impl, - { + unsafe extern "system" fn GetEventNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbShortEventDescriptor_Impl::GetEventNameW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -8430,10 +6576,7 @@ impl IDvbShortEventDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDvbShortEventDescriptor_Impl, - { + unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbShortEventDescriptor_Impl::GetTextW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -8456,7 +6599,7 @@ impl IDvbShortEventDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbSiParser_Impl: Sized { +pub trait IDvbSiParser_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, punkmpeg2data: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetPAT(&self) -> windows_core::Result; fn GetCAT(&self, dwtimeout: u32) -> windows_core::Result; @@ -8475,21 +6618,12 @@ pub trait IDvbSiParser_Impl: Sized { } impl windows_core::RuntimeName for IDvbSiParser {} impl IDvbSiParser_Vtbl { - pub const fn new() -> IDvbSiParser_Vtbl - where - Identity: IDvbSiParser_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, punkmpeg2data: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + pub const fn new() -> IDvbSiParser_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, punkmpeg2data: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvbSiParser_Impl::Initialize(this, windows_core::from_raw_borrowed(&punkmpeg2data)).into() } - unsafe extern "system" fn GetPAT(this: *mut core::ffi::c_void, pppat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetPAT(this: *mut core::ffi::c_void, pppat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetPAT(this) { Ok(ok__) => { @@ -8499,10 +6633,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAT(this: *mut core::ffi::c_void, dwtimeout: u32, ppcat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetCAT(this: *mut core::ffi::c_void, dwtimeout: u32, ppcat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetCAT(this, core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -8512,10 +6643,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPMT(this: *mut core::ffi::c_void, pid: u16, pwprogramnumber: *const u16, pppmt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetPMT(this: *mut core::ffi::c_void, pid: u16, pwprogramnumber: *const u16, pppmt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetPMT(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&pwprogramnumber)) { Ok(ok__) => { @@ -8525,10 +6653,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTSDT(this: *mut core::ffi::c_void, pptsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetTSDT(this: *mut core::ffi::c_void, pptsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetTSDT(this) { Ok(ok__) => { @@ -8538,10 +6663,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNIT(this: *mut core::ffi::c_void, tableid: u8, pwnetworkid: *const u16, ppnit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetNIT(this: *mut core::ffi::c_void, tableid: u8, pwnetworkid: *const u16, ppnit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetNIT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&pwnetworkid)) { Ok(ok__) => { @@ -8551,10 +6673,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSDT(this: *mut core::ffi::c_void, tableid: u8, pwtransportstreamid: *const u16, ppsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetSDT(this: *mut core::ffi::c_void, tableid: u8, pwtransportstreamid: *const u16, ppsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetSDT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&pwtransportstreamid)) { Ok(ok__) => { @@ -8564,10 +6683,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEIT(this: *mut core::ffi::c_void, tableid: u8, pwserviceid: *const u16, ppeit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetEIT(this: *mut core::ffi::c_void, tableid: u8, pwserviceid: *const u16, ppeit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetEIT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&pwserviceid)) { Ok(ok__) => { @@ -8577,10 +6693,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBAT(this: *mut core::ffi::c_void, pwbouquetid: *const u16, ppbat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetBAT(this: *mut core::ffi::c_void, pwbouquetid: *const u16, ppbat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetBAT(this, core::mem::transmute_copy(&pwbouquetid)) { Ok(ok__) => { @@ -8590,10 +6703,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRST(this: *mut core::ffi::c_void, dwtimeout: u32, pprst: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetRST(this: *mut core::ffi::c_void, dwtimeout: u32, pprst: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetRST(this, core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -8603,10 +6713,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetST(this: *mut core::ffi::c_void, pid: u16, dwtimeout: u32, ppst: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetST(this: *mut core::ffi::c_void, pid: u16, dwtimeout: u32, ppst: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetST(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -8616,10 +6723,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTDT(this: *mut core::ffi::c_void, pptdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetTDT(this: *mut core::ffi::c_void, pptdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetTDT(this) { Ok(ok__) => { @@ -8629,10 +6733,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTOT(this: *mut core::ffi::c_void, pptot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetTOT(this: *mut core::ffi::c_void, pptot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetTOT(this) { Ok(ok__) => { @@ -8642,10 +6743,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDIT(this: *mut core::ffi::c_void, dwtimeout: u32, ppdit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetDIT(this: *mut core::ffi::c_void, dwtimeout: u32, ppdit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetDIT(this, core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -8655,10 +6753,7 @@ impl IDvbSiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSIT(this: *mut core::ffi::c_void, dwtimeout: u32, ppsit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser_Impl, - { + unsafe extern "system" fn GetSIT(this: *mut core::ffi::c_void, dwtimeout: u32, ppsit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser_Impl::GetSIT(this, core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -8696,14 +6791,8 @@ pub trait IDvbSiParser2_Impl: Sized + IDvbSiParser_Impl { } impl windows_core::RuntimeName for IDvbSiParser2 {} impl IDvbSiParser2_Vtbl { - pub const fn new() -> IDvbSiParser2_Vtbl - where - Identity: IDvbSiParser2_Impl, - { - unsafe extern "system" fn GetEIT2(this: *mut core::ffi::c_void, tableid: u8, pwserviceid: *const u16, pbsegment: *const u8, ppeit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvbSiParser2_Impl, - { + pub const fn new() -> IDvbSiParser2_Vtbl { + unsafe extern "system" fn GetEIT2(this: *mut core::ffi::c_void, tableid: u8, pwserviceid: *const u16, pbsegment: *const u8, ppeit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSiParser2_Impl::GetEIT2(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&pwserviceid), core::mem::transmute_copy(&pbsegment)) { Ok(ok__) => { @@ -8719,7 +6808,7 @@ impl IDvbSiParser2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDvbSubtitlingDescriptor_Impl: Sized { +pub trait IDvbSubtitlingDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; @@ -8730,14 +6819,8 @@ pub trait IDvbSubtitlingDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbSubtitlingDescriptor {} impl IDvbSubtitlingDescriptor_Vtbl { - pub const fn new() -> IDvbSubtitlingDescriptor_Vtbl - where - Identity: IDvbSubtitlingDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbSubtitlingDescriptor_Impl, - { + pub const fn new() -> IDvbSubtitlingDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSubtitlingDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -8747,10 +6830,7 @@ impl IDvbSubtitlingDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbSubtitlingDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSubtitlingDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -8760,10 +6840,7 @@ impl IDvbSubtitlingDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbSubtitlingDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSubtitlingDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -8773,10 +6850,7 @@ impl IDvbSubtitlingDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordLangId(this: *mut core::ffi::c_void, brecordindex: u8, pulval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbSubtitlingDescriptor_Impl, - { + unsafe extern "system" fn GetRecordLangId(this: *mut core::ffi::c_void, brecordindex: u8, pulval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSubtitlingDescriptor_Impl::GetRecordLangId(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8786,10 +6860,7 @@ impl IDvbSubtitlingDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordSubtitlingType(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbSubtitlingDescriptor_Impl, - { + unsafe extern "system" fn GetRecordSubtitlingType(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSubtitlingDescriptor_Impl::GetRecordSubtitlingType(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8799,10 +6870,7 @@ impl IDvbSubtitlingDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCompositionPageID(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbSubtitlingDescriptor_Impl, - { + unsafe extern "system" fn GetRecordCompositionPageID(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSubtitlingDescriptor_Impl::GetRecordCompositionPageID(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8812,10 +6880,7 @@ impl IDvbSubtitlingDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordAncillaryPageID(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbSubtitlingDescriptor_Impl, - { + unsafe extern "system" fn GetRecordAncillaryPageID(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbSubtitlingDescriptor_Impl::GetRecordAncillaryPageID(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8840,7 +6905,7 @@ impl IDvbSubtitlingDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbTeletextDescriptor_Impl: Sized { +pub trait IDvbTeletextDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; @@ -8851,14 +6916,8 @@ pub trait IDvbTeletextDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbTeletextDescriptor {} impl IDvbTeletextDescriptor_Vtbl { - pub const fn new() -> IDvbTeletextDescriptor_Vtbl - where - Identity: IDvbTeletextDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTeletextDescriptor_Impl, - { + pub const fn new() -> IDvbTeletextDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTeletextDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -8868,10 +6927,7 @@ impl IDvbTeletextDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTeletextDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTeletextDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -8881,10 +6937,7 @@ impl IDvbTeletextDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTeletextDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTeletextDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -8894,10 +6947,7 @@ impl IDvbTeletextDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordLangId(this: *mut core::ffi::c_void, brecordindex: u8, pulval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbTeletextDescriptor_Impl, - { + unsafe extern "system" fn GetRecordLangId(this: *mut core::ffi::c_void, brecordindex: u8, pulval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTeletextDescriptor_Impl::GetRecordLangId(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8907,10 +6957,7 @@ impl IDvbTeletextDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTeletextType(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTeletextDescriptor_Impl, - { + unsafe extern "system" fn GetRecordTeletextType(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTeletextDescriptor_Impl::GetRecordTeletextType(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8920,10 +6967,7 @@ impl IDvbTeletextDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordMagazineNumber(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTeletextDescriptor_Impl, - { + unsafe extern "system" fn GetRecordMagazineNumber(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTeletextDescriptor_Impl::GetRecordMagazineNumber(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8933,10 +6977,7 @@ impl IDvbTeletextDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordPageNumber(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTeletextDescriptor_Impl, - { + unsafe extern "system" fn GetRecordPageNumber(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTeletextDescriptor_Impl::GetRecordPageNumber(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -8961,7 +7002,7 @@ impl IDvbTeletextDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbTerrestrial2DeliverySystemDescriptor_Impl: Sized { +pub trait IDvbTerrestrial2DeliverySystemDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetTagExtension(&self) -> windows_core::Result; @@ -8978,14 +7019,8 @@ pub trait IDvbTerrestrial2DeliverySystemDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbTerrestrial2DeliverySystemDescriptor {} impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { - pub const fn new() -> IDvbTerrestrial2DeliverySystemDescriptor_Vtbl - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + pub const fn new() -> IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -8995,10 +7030,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -9008,10 +7040,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTagExtension(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetTagExtension(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetTagExtension(this) { Ok(ok__) => { @@ -9021,10 +7050,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCentreFrequency(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetCentreFrequency(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetCentreFrequency(this) { Ok(ok__) => { @@ -9034,10 +7060,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPLPId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetPLPId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetPLPId(this) { Ok(ok__) => { @@ -9047,10 +7070,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetT2SystemId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetT2SystemId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetT2SystemId(this) { Ok(ok__) => { @@ -9060,10 +7080,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMultipleInputMode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetMultipleInputMode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetMultipleInputMode(this) { Ok(ok__) => { @@ -9073,10 +7090,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBandwidth(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetBandwidth(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetBandwidth(this) { Ok(ok__) => { @@ -9086,10 +7100,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGuardInterval(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetGuardInterval(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetGuardInterval(this) { Ok(ok__) => { @@ -9099,10 +7110,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransmissionMode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetTransmissionMode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetTransmissionMode(this) { Ok(ok__) => { @@ -9112,10 +7120,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCellId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetCellId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetCellId(this) { Ok(ok__) => { @@ -9125,10 +7130,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOtherFrequencyFlag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetOtherFrequencyFlag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetOtherFrequencyFlag(this) { Ok(ok__) => { @@ -9138,10 +7140,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTFSFlag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrial2DeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetTFSFlag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrial2DeliverySystemDescriptor_Impl::GetTFSFlag(this) { Ok(ok__) => { @@ -9172,7 +7171,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { iid == &::IID } } -pub trait IDvbTerrestrialDeliverySystemDescriptor_Impl: Sized { +pub trait IDvbTerrestrialDeliverySystemDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCentreFrequency(&self) -> windows_core::Result; @@ -9187,14 +7186,8 @@ pub trait IDvbTerrestrialDeliverySystemDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IDvbTerrestrialDeliverySystemDescriptor {} impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { - pub const fn new() -> IDvbTerrestrialDeliverySystemDescriptor_Vtbl - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + pub const fn new() -> IDvbTerrestrialDeliverySystemDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -9204,10 +7197,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -9217,10 +7207,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCentreFrequency(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetCentreFrequency(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetCentreFrequency(this) { Ok(ok__) => { @@ -9230,10 +7217,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBandwidth(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetBandwidth(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetBandwidth(this) { Ok(ok__) => { @@ -9243,10 +7227,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConstellation(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetConstellation(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetConstellation(this) { Ok(ok__) => { @@ -9256,10 +7237,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHierarchyInformation(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetHierarchyInformation(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetHierarchyInformation(this) { Ok(ok__) => { @@ -9269,10 +7247,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCodeRateHPStream(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetCodeRateHPStream(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetCodeRateHPStream(this) { Ok(ok__) => { @@ -9282,10 +7257,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCodeRateLPStream(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetCodeRateLPStream(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetCodeRateLPStream(this) { Ok(ok__) => { @@ -9295,10 +7267,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGuardInterval(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetGuardInterval(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetGuardInterval(this) { Ok(ok__) => { @@ -9308,10 +7277,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransmissionMode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetTransmissionMode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetTransmissionMode(this) { Ok(ok__) => { @@ -9321,10 +7287,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOtherFrequencyFlag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IDvbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetOtherFrequencyFlag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbTerrestrialDeliverySystemDescriptor_Impl::GetOtherFrequencyFlag(this) { Ok(ok__) => { @@ -9361,14 +7324,8 @@ pub trait IESCloseMmiEvent_Impl: Sized + super::IESEvent_Impl { impl windows_core::RuntimeName for IESCloseMmiEvent {} #[cfg(feature = "Win32_System_Com")] impl IESCloseMmiEvent_Vtbl { - pub const fn new() -> IESCloseMmiEvent_Vtbl - where - Identity: IESCloseMmiEvent_Impl, - { - unsafe extern "system" fn GetDialogNumber(this: *mut core::ffi::c_void, pdialognumber: *mut u32) -> windows_core::HRESULT - where - Identity: IESCloseMmiEvent_Impl, - { + pub const fn new() -> IESCloseMmiEvent_Vtbl { + unsafe extern "system" fn GetDialogNumber(this: *mut core::ffi::c_void, pdialognumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESCloseMmiEvent_Impl::GetDialogNumber(this) { Ok(ok__) => { @@ -9384,19 +7341,13 @@ impl IESCloseMmiEvent_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IESEventFactory_Impl: Sized { +pub trait IESEventFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateESEvent(&self, pserviceprovider: Option<&windows_core::IUnknown>, dweventid: u32, guideventtype: &windows_core::GUID, dweventdatalength: u32, peventdata: *const u8, bstrbaseurl: &windows_core::BSTR, pinitcontext: Option<&windows_core::IUnknown>) -> windows_core::Result; } impl windows_core::RuntimeName for IESEventFactory {} impl IESEventFactory_Vtbl { - pub const fn new() -> IESEventFactory_Vtbl - where - Identity: IESEventFactory_Impl, - { - unsafe extern "system" fn CreateESEvent(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::MaybeUninit, pinitcontext: *mut core::ffi::c_void, ppesevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IESEventFactory_Impl, - { + pub const fn new() -> IESEventFactory_Vtbl { + unsafe extern "system" fn CreateESEvent(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::MaybeUninit, pinitcontext: *mut core::ffi::c_void, ppesevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESEventFactory_Impl::CreateESEvent(this, windows_core::from_raw_borrowed(&pserviceprovider), core::mem::transmute_copy(&dweventid), core::mem::transmute(&guideventtype), core::mem::transmute_copy(&dweventdatalength), core::mem::transmute_copy(&peventdata), core::mem::transmute(&bstrbaseurl), windows_core::from_raw_borrowed(&pinitcontext)) { Ok(ok__) => { @@ -9412,19 +7363,13 @@ impl IESEventFactory_Vtbl { iid == &::IID } } -pub trait IESEventService_Impl: Sized { +pub trait IESEventService_Impl: Sized + windows_core::IUnknownImpl { fn FireESEvent(&self, pesevent: Option<&super::IESEvent>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IESEventService {} impl IESEventService_Vtbl { - pub const fn new() -> IESEventService_Vtbl - where - Identity: IESEventService_Impl, - { - unsafe extern "system" fn FireESEvent(this: *mut core::ffi::c_void, pesevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IESEventService_Impl, - { + pub const fn new() -> IESEventService_Vtbl { + unsafe extern "system" fn FireESEvent(this: *mut core::ffi::c_void, pesevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IESEventService_Impl::FireESEvent(this, windows_core::from_raw_borrowed(&pesevent)).into() } @@ -9434,7 +7379,7 @@ impl IESEventService_Vtbl { iid == &::IID } } -pub trait IESEventServiceConfiguration_Impl: Sized { +pub trait IESEventServiceConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn SetParent(&self, peventservice: Option<&IESEventService>) -> windows_core::Result<()>; fn RemoveParent(&self) -> windows_core::Result<()>; fn SetOwner(&self, pesevents: Option<&super::IESEvents>) -> windows_core::Result<()>; @@ -9444,49 +7389,28 @@ pub trait IESEventServiceConfiguration_Impl: Sized { } impl windows_core::RuntimeName for IESEventServiceConfiguration {} impl IESEventServiceConfiguration_Vtbl { - pub const fn new() -> IESEventServiceConfiguration_Vtbl - where - Identity: IESEventServiceConfiguration_Impl, - { - unsafe extern "system" fn SetParent(this: *mut core::ffi::c_void, peventservice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IESEventServiceConfiguration_Impl, - { + pub const fn new() -> IESEventServiceConfiguration_Vtbl { + unsafe extern "system" fn SetParent(this: *mut core::ffi::c_void, peventservice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IESEventServiceConfiguration_Impl::SetParent(this, windows_core::from_raw_borrowed(&peventservice)).into() } - unsafe extern "system" fn RemoveParent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IESEventServiceConfiguration_Impl, - { + unsafe extern "system" fn RemoveParent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IESEventServiceConfiguration_Impl::RemoveParent(this).into() } - unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, pesevents: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IESEventServiceConfiguration_Impl, - { + unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, pesevents: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IESEventServiceConfiguration_Impl::SetOwner(this, windows_core::from_raw_borrowed(&pesevents)).into() } - unsafe extern "system" fn RemoveOwner(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IESEventServiceConfiguration_Impl, - { + unsafe extern "system" fn RemoveOwner(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IESEventServiceConfiguration_Impl::RemoveOwner(this).into() } - unsafe extern "system" fn SetGraph(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IESEventServiceConfiguration_Impl, - { + unsafe extern "system" fn SetGraph(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IESEventServiceConfiguration_Impl::SetGraph(this, windows_core::from_raw_borrowed(&pgraph)).into() } - unsafe extern "system" fn RemoveGraph(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IESEventServiceConfiguration_Impl, - { + unsafe extern "system" fn RemoveGraph(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IESEventServiceConfiguration_Impl::RemoveGraph(this, windows_core::from_raw_borrowed(&pgraph)).into() } @@ -9517,14 +7441,8 @@ pub trait IESFileExpiryDateEvent_Impl: Sized + super::IESEvent_Impl { impl windows_core::RuntimeName for IESFileExpiryDateEvent {} #[cfg(feature = "Win32_System_Com")] impl IESFileExpiryDateEvent_Vtbl { - pub const fn new() -> IESFileExpiryDateEvent_Vtbl - where - Identity: IESFileExpiryDateEvent_Impl, - { - unsafe extern "system" fn GetTunerId(this: *mut core::ffi::c_void, pguidtunerid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IESFileExpiryDateEvent_Impl, - { + pub const fn new() -> IESFileExpiryDateEvent_Vtbl { + unsafe extern "system" fn GetTunerId(this: *mut core::ffi::c_void, pguidtunerid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESFileExpiryDateEvent_Impl::GetTunerId(this) { Ok(ok__) => { @@ -9534,10 +7452,7 @@ impl IESFileExpiryDateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpiryDate(this: *mut core::ffi::c_void, pqwexpirydate: *mut u64) -> windows_core::HRESULT - where - Identity: IESFileExpiryDateEvent_Impl, - { + unsafe extern "system" fn GetExpiryDate(this: *mut core::ffi::c_void, pqwexpirydate: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESFileExpiryDateEvent_Impl::GetExpiryDate(this) { Ok(ok__) => { @@ -9547,10 +7462,7 @@ impl IESFileExpiryDateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFinalExpiryDate(this: *mut core::ffi::c_void, pqwexpirydate: *mut u64) -> windows_core::HRESULT - where - Identity: IESFileExpiryDateEvent_Impl, - { + unsafe extern "system" fn GetFinalExpiryDate(this: *mut core::ffi::c_void, pqwexpirydate: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESFileExpiryDateEvent_Impl::GetFinalExpiryDate(this) { Ok(ok__) => { @@ -9560,10 +7472,7 @@ impl IESFileExpiryDateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxRenewalCount(this: *mut core::ffi::c_void, dwmaxrenewalcount: *mut u32) -> windows_core::HRESULT - where - Identity: IESFileExpiryDateEvent_Impl, - { + unsafe extern "system" fn GetMaxRenewalCount(this: *mut core::ffi::c_void, dwmaxrenewalcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESFileExpiryDateEvent_Impl::GetMaxRenewalCount(this) { Ok(ok__) => { @@ -9573,10 +7482,7 @@ impl IESFileExpiryDateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEntitlementTokenPresent(this: *mut core::ffi::c_void, pfenttokenpresent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IESFileExpiryDateEvent_Impl, - { + unsafe extern "system" fn IsEntitlementTokenPresent(this: *mut core::ffi::c_void, pfenttokenpresent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESFileExpiryDateEvent_Impl::IsEntitlementTokenPresent(this) { Ok(ok__) => { @@ -9586,10 +7492,7 @@ impl IESFileExpiryDateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoesExpireAfterFirstUse(this: *mut core::ffi::c_void, pfexpireafterfirstuse: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IESFileExpiryDateEvent_Impl, - { + unsafe extern "system" fn DoesExpireAfterFirstUse(this: *mut core::ffi::c_void, pfexpireafterfirstuse: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESFileExpiryDateEvent_Impl::DoesExpireAfterFirstUse(this) { Ok(ok__) => { @@ -9624,14 +7527,8 @@ pub trait IESIsdbCasResponseEvent_Impl: Sized + super::IESEvent_Impl { impl windows_core::RuntimeName for IESIsdbCasResponseEvent {} #[cfg(feature = "Win32_System_Com")] impl IESIsdbCasResponseEvent_Vtbl { - pub const fn new() -> IESIsdbCasResponseEvent_Vtbl - where - Identity: IESIsdbCasResponseEvent_Impl, - { - unsafe extern "system" fn GetRequestId(this: *mut core::ffi::c_void, prequestid: *mut u32) -> windows_core::HRESULT - where - Identity: IESIsdbCasResponseEvent_Impl, - { + pub const fn new() -> IESIsdbCasResponseEvent_Vtbl { + unsafe extern "system" fn GetRequestId(this: *mut core::ffi::c_void, prequestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESIsdbCasResponseEvent_Impl::GetRequestId(this) { Ok(ok__) => { @@ -9641,10 +7538,7 @@ impl IESIsdbCasResponseEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IESIsdbCasResponseEvent_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESIsdbCasResponseEvent_Impl::GetStatus(this) { Ok(ok__) => { @@ -9654,10 +7548,7 @@ impl IESIsdbCasResponseEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataLength(this: *mut core::ffi::c_void, prequestlength: *mut u32) -> windows_core::HRESULT - where - Identity: IESIsdbCasResponseEvent_Impl, - { + unsafe extern "system" fn GetDataLength(this: *mut core::ffi::c_void, prequestlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESIsdbCasResponseEvent_Impl::GetDataLength(this) { Ok(ok__) => { @@ -9667,10 +7558,7 @@ impl IESIsdbCasResponseEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResponseData(this: *mut core::ffi::c_void, pbdata: *mut *mut super::super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IESIsdbCasResponseEvent_Impl, - { + unsafe extern "system" fn GetResponseData(this: *mut core::ffi::c_void, pbdata: *mut *mut super::super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESIsdbCasResponseEvent_Impl::GetResponseData(this) { Ok(ok__) => { @@ -9710,14 +7598,8 @@ pub trait IESLicenseRenewalResultEvent_Impl: Sized + super::IESEvent_Impl { impl windows_core::RuntimeName for IESLicenseRenewalResultEvent {} #[cfg(feature = "Win32_System_Com")] impl IESLicenseRenewalResultEvent_Vtbl { - pub const fn new() -> IESLicenseRenewalResultEvent_Vtbl - where - Identity: IESLicenseRenewalResultEvent_Impl, - { - unsafe extern "system" fn GetCallersId(this: *mut core::ffi::c_void, pdwcallersid: *mut u32) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + pub const fn new() -> IESLicenseRenewalResultEvent_Vtbl { + unsafe extern "system" fn GetCallersId(this: *mut core::ffi::c_void, pdwcallersid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::GetCallersId(this) { Ok(ok__) => { @@ -9727,10 +7609,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, pbstrfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, pbstrfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::GetFileName(this) { Ok(ok__) => { @@ -9740,10 +7619,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRenewalSuccessful(this: *mut core::ffi::c_void, pfrenewalsuccessful: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + unsafe extern "system" fn IsRenewalSuccessful(this: *mut core::ffi::c_void, pfrenewalsuccessful: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::IsRenewalSuccessful(this) { Ok(ok__) => { @@ -9753,10 +7629,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCheckEntitlementCallRequired(this: *mut core::ffi::c_void, pfcheckenttokencallneeded: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + unsafe extern "system" fn IsCheckEntitlementCallRequired(this: *mut core::ffi::c_void, pfcheckenttokencallneeded: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::IsCheckEntitlementCallRequired(this) { Ok(ok__) => { @@ -9766,10 +7639,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescrambledStatus(this: *mut core::ffi::c_void, pdescrambledstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + unsafe extern "system" fn GetDescrambledStatus(this: *mut core::ffi::c_void, pdescrambledstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::GetDescrambledStatus(this) { Ok(ok__) => { @@ -9779,10 +7649,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRenewalResultCode(this: *mut core::ffi::c_void, pdwrenewalresultcode: *mut u32) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + unsafe extern "system" fn GetRenewalResultCode(this: *mut core::ffi::c_void, pdwrenewalresultcode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::GetRenewalResultCode(this) { Ok(ok__) => { @@ -9792,10 +7659,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCASFailureCode(this: *mut core::ffi::c_void, pdwcasfailurecode: *mut u32) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + unsafe extern "system" fn GetCASFailureCode(this: *mut core::ffi::c_void, pdwcasfailurecode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::GetCASFailureCode(this) { Ok(ok__) => { @@ -9805,10 +7669,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRenewalHResult(this: *mut core::ffi::c_void, phr: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + unsafe extern "system" fn GetRenewalHResult(this: *mut core::ffi::c_void, phr: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::GetRenewalHResult(this) { Ok(ok__) => { @@ -9818,10 +7679,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEntitlementTokenLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + unsafe extern "system" fn GetEntitlementTokenLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::GetEntitlementTokenLength(this) { Ok(ok__) => { @@ -9831,10 +7689,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEntitlementToken(this: *mut core::ffi::c_void, pbdata: *mut *mut super::super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + unsafe extern "system" fn GetEntitlementToken(this: *mut core::ffi::c_void, pbdata: *mut *mut super::super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::GetEntitlementToken(this) { Ok(ok__) => { @@ -9844,10 +7699,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpiryDate(this: *mut core::ffi::c_void, pqwexpirydate: *mut u64) -> windows_core::HRESULT - where - Identity: IESLicenseRenewalResultEvent_Impl, - { + unsafe extern "system" fn GetExpiryDate(this: *mut core::ffi::c_void, pqwexpirydate: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::GetExpiryDate(this) { Ok(ok__) => { @@ -9887,14 +7739,8 @@ pub trait IESOpenMmiEvent_Impl: Sized + super::IESEvent_Impl { impl windows_core::RuntimeName for IESOpenMmiEvent {} #[cfg(feature = "Win32_System_Com")] impl IESOpenMmiEvent_Vtbl { - pub const fn new() -> IESOpenMmiEvent_Vtbl - where - Identity: IESOpenMmiEvent_Impl, - { - unsafe extern "system" fn GetDialogNumber(this: *mut core::ffi::c_void, pdialogrequest: *mut u32, pdialognumber: *mut u32) -> windows_core::HRESULT - where - Identity: IESOpenMmiEvent_Impl, - { + pub const fn new() -> IESOpenMmiEvent_Vtbl { + unsafe extern "system" fn GetDialogNumber(this: *mut core::ffi::c_void, pdialogrequest: *mut u32, pdialognumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESOpenMmiEvent_Impl::GetDialogNumber(this, core::mem::transmute_copy(&pdialogrequest)) { Ok(ok__) => { @@ -9904,10 +7750,7 @@ impl IESOpenMmiEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDialogType(this: *mut core::ffi::c_void, guiddialogtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IESOpenMmiEvent_Impl, - { + unsafe extern "system" fn GetDialogType(this: *mut core::ffi::c_void, guiddialogtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESOpenMmiEvent_Impl::GetDialogType(this) { Ok(ok__) => { @@ -9917,10 +7760,7 @@ impl IESOpenMmiEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDialogData(this: *mut core::ffi::c_void, pbdata: *mut *mut super::super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IESOpenMmiEvent_Impl, - { + unsafe extern "system" fn GetDialogData(this: *mut core::ffi::c_void, pbdata: *mut *mut super::super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESOpenMmiEvent_Impl::GetDialogData(this) { Ok(ok__) => { @@ -9930,10 +7770,7 @@ impl IESOpenMmiEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDialogStringData(this: *mut core::ffi::c_void, pbstrbaseurl: *mut core::mem::MaybeUninit, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IESOpenMmiEvent_Impl, - { + unsafe extern "system" fn GetDialogStringData(this: *mut core::ffi::c_void, pbstrbaseurl: *mut core::mem::MaybeUninit, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESOpenMmiEvent_Impl::GetDialogStringData(this, core::mem::transmute_copy(&pbstrbaseurl)) { Ok(ok__) => { @@ -9966,14 +7803,8 @@ pub trait IESRequestTunerEvent_Impl: Sized + super::IESEvent_Impl { impl windows_core::RuntimeName for IESRequestTunerEvent {} #[cfg(feature = "Win32_System_Com")] impl IESRequestTunerEvent_Vtbl { - pub const fn new() -> IESRequestTunerEvent_Vtbl - where - Identity: IESRequestTunerEvent_Impl, - { - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pbypriority: *mut u8) -> windows_core::HRESULT - where - Identity: IESRequestTunerEvent_Impl, - { + pub const fn new() -> IESRequestTunerEvent_Vtbl { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pbypriority: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESRequestTunerEvent_Impl::GetPriority(this) { Ok(ok__) => { @@ -9983,10 +7814,7 @@ impl IESRequestTunerEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReason(this: *mut core::ffi::c_void, pbyreason: *mut u8) -> windows_core::HRESULT - where - Identity: IESRequestTunerEvent_Impl, - { + unsafe extern "system" fn GetReason(this: *mut core::ffi::c_void, pbyreason: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESRequestTunerEvent_Impl::GetReason(this) { Ok(ok__) => { @@ -9996,10 +7824,7 @@ impl IESRequestTunerEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConsequences(this: *mut core::ffi::c_void, pbyconsequences: *mut u8) -> windows_core::HRESULT - where - Identity: IESRequestTunerEvent_Impl, - { + unsafe extern "system" fn GetConsequences(this: *mut core::ffi::c_void, pbyconsequences: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESRequestTunerEvent_Impl::GetConsequences(this) { Ok(ok__) => { @@ -10009,10 +7834,7 @@ impl IESRequestTunerEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEstimatedTime(this: *mut core::ffi::c_void, pdwestimatedtime: *mut u32) -> windows_core::HRESULT - where - Identity: IESRequestTunerEvent_Impl, - { + unsafe extern "system" fn GetEstimatedTime(this: *mut core::ffi::c_void, pdwestimatedtime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESRequestTunerEvent_Impl::GetEstimatedTime(this) { Ok(ok__) => { @@ -10042,14 +7864,8 @@ pub trait IESValueUpdatedEvent_Impl: Sized + super::IESEvent_Impl { impl windows_core::RuntimeName for IESValueUpdatedEvent {} #[cfg(feature = "Win32_System_Com")] impl IESValueUpdatedEvent_Vtbl { - pub const fn new() -> IESValueUpdatedEvent_Vtbl - where - Identity: IESValueUpdatedEvent_Impl, - { - unsafe extern "system" fn GetValueNames(this: *mut core::ffi::c_void, pbstrnames: *mut *mut super::super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IESValueUpdatedEvent_Impl, - { + pub const fn new() -> IESValueUpdatedEvent_Vtbl { + unsafe extern "system" fn GetValueNames(this: *mut core::ffi::c_void, pbstrnames: *mut *mut super::super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESValueUpdatedEvent_Impl::GetValueNames(this) { Ok(ok__) => { @@ -10065,7 +7881,7 @@ impl IESValueUpdatedEvent_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IETFilter_Impl: Sized { +pub trait IETFilter_Impl: Sized + windows_core::IUnknownImpl { fn EvalRatObjOK(&self) -> windows_core::Result; fn GetCurrRating(&self, pensystem: *mut EnTvRat_System, penrating: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::Result<()>; fn GetCurrLicenseExpDate(&self, prottype: *const ProtType) -> windows_core::Result; @@ -10074,14 +7890,8 @@ pub trait IETFilter_Impl: Sized { } impl windows_core::RuntimeName for IETFilter {} impl IETFilter_Vtbl { - pub const fn new() -> IETFilter_Vtbl - where - Identity: IETFilter_Impl, - { - unsafe extern "system" fn EvalRatObjOK(this: *mut core::ffi::c_void, phrcocreateretval: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IETFilter_Impl, - { + pub const fn new() -> IETFilter_Vtbl { + unsafe extern "system" fn EvalRatObjOK(this: *mut core::ffi::c_void, phrcocreateretval: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IETFilter_Impl::EvalRatObjOK(this) { Ok(ok__) => { @@ -10091,17 +7901,11 @@ impl IETFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrRating(this: *mut core::ffi::c_void, pensystem: *mut EnTvRat_System, penrating: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::HRESULT - where - Identity: IETFilter_Impl, - { + unsafe extern "system" fn GetCurrRating(this: *mut core::ffi::c_void, pensystem: *mut EnTvRat_System, penrating: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IETFilter_Impl::GetCurrRating(this, core::mem::transmute_copy(&pensystem), core::mem::transmute_copy(&penrating), core::mem::transmute_copy(&plbfenattr)).into() } - unsafe extern "system" fn GetCurrLicenseExpDate(this: *mut core::ffi::c_void, prottype: *const ProtType, lpdatetime: *mut i32) -> windows_core::HRESULT - where - Identity: IETFilter_Impl, - { + unsafe extern "system" fn GetCurrLicenseExpDate(this: *mut core::ffi::c_void, prottype: *const ProtType, lpdatetime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IETFilter_Impl::GetCurrLicenseExpDate(this, core::mem::transmute_copy(&prottype)) { Ok(ok__) => { @@ -10111,17 +7915,11 @@ impl IETFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IETFilter_Impl, - { + unsafe extern "system" fn GetLastErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IETFilter_Impl::GetLastErrorCode(this).into() } - unsafe extern "system" fn SetRecordingOn(this: *mut core::ffi::c_void, frecstate: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IETFilter_Impl, - { + unsafe extern "system" fn SetRecordingOn(this: *mut core::ffi::c_void, frecstate: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IETFilter_Impl::SetRecordingOn(this, core::mem::transmute_copy(&frecstate)).into() } @@ -10138,27 +7936,18 @@ impl IETFilter_Vtbl { iid == &::IID } } -pub trait IETFilterConfig_Impl: Sized { +pub trait IETFilterConfig_Impl: Sized + windows_core::IUnknownImpl { fn InitLicense(&self, licenseid: i32) -> windows_core::Result<()>; fn GetSecureChannelObject(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IETFilterConfig {} impl IETFilterConfig_Vtbl { - pub const fn new() -> IETFilterConfig_Vtbl - where - Identity: IETFilterConfig_Impl, - { - unsafe extern "system" fn InitLicense(this: *mut core::ffi::c_void, licenseid: i32) -> windows_core::HRESULT - where - Identity: IETFilterConfig_Impl, - { + pub const fn new() -> IETFilterConfig_Vtbl { + unsafe extern "system" fn InitLicense(this: *mut core::ffi::c_void, licenseid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IETFilterConfig_Impl::InitLicense(this, core::mem::transmute_copy(&licenseid)).into() } - unsafe extern "system" fn GetSecureChannelObject(this: *mut core::ffi::c_void, ppunkdrmsecurechannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IETFilterConfig_Impl, - { + unsafe extern "system" fn GetSecureChannelObject(this: *mut core::ffi::c_void, ppunkdrmsecurechannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IETFilterConfig_Impl::GetSecureChannelObject(this) { Ok(ok__) => { @@ -10184,10 +7973,7 @@ pub trait IETFilterEvents_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IETFilterEvents {} #[cfg(feature = "Win32_System_Com")] impl IETFilterEvents_Vtbl { - pub const fn new() -> IETFilterEvents_Vtbl - where - Identity: IETFilterEvents_Impl, - { + pub const fn new() -> IETFilterEvents_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -10195,7 +7981,7 @@ impl IETFilterEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumComponentTypes_Impl: Sized { +pub trait IEnumComponentTypes_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -10205,35 +7991,20 @@ pub trait IEnumComponentTypes_Impl: Sized { impl windows_core::RuntimeName for IEnumComponentTypes {} #[cfg(feature = "Win32_System_Com")] impl IEnumComponentTypes_Vtbl { - pub const fn new() -> IEnumComponentTypes_Vtbl - where - Identity: IEnumComponentTypes_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumComponentTypes_Impl, - { + pub const fn new() -> IEnumComponentTypes_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumComponentTypes_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumComponentTypes_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumComponentTypes_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumComponentTypes_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumComponentTypes_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumComponentTypes_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumComponentTypes_Impl::Clone(this) { Ok(ok__) => { @@ -10256,7 +8027,7 @@ impl IEnumComponentTypes_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumComponents_Impl: Sized { +pub trait IEnumComponents_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -10266,35 +8037,20 @@ pub trait IEnumComponents_Impl: Sized { impl windows_core::RuntimeName for IEnumComponents {} #[cfg(feature = "Win32_System_Com")] impl IEnumComponents_Vtbl { - pub const fn new() -> IEnumComponents_Vtbl - where - Identity: IEnumComponents_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumComponents_Impl, - { + pub const fn new() -> IEnumComponents_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumComponents_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumComponents_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumComponents_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumComponents_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumComponents_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumComponents_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumComponents_Impl::Clone(this) { Ok(ok__) => { @@ -10316,7 +8072,7 @@ impl IEnumComponents_Vtbl { iid == &::IID } } -pub trait IEnumGuideDataProperties_Impl: Sized { +pub trait IEnumGuideDataProperties_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppprop: *mut Option, pcelt: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -10324,35 +8080,20 @@ pub trait IEnumGuideDataProperties_Impl: Sized { } impl windows_core::RuntimeName for IEnumGuideDataProperties {} impl IEnumGuideDataProperties_Vtbl { - pub const fn new() -> IEnumGuideDataProperties_Vtbl - where - Identity: IEnumGuideDataProperties_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppprop: *mut *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumGuideDataProperties_Impl, - { + pub const fn new() -> IEnumGuideDataProperties_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppprop: *mut *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumGuideDataProperties_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppprop), core::mem::transmute_copy(&pcelt)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumGuideDataProperties_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumGuideDataProperties_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumGuideDataProperties_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumGuideDataProperties_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumGuideDataProperties_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumGuideDataProperties_Impl::Clone(this) { Ok(ok__) => { @@ -10375,7 +8116,7 @@ impl IEnumGuideDataProperties_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumMSVidGraphSegment_Impl: Sized { +pub trait IEnumMSVidGraphSegment_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -10385,35 +8126,20 @@ pub trait IEnumMSVidGraphSegment_Impl: Sized { impl windows_core::RuntimeName for IEnumMSVidGraphSegment {} #[cfg(feature = "Win32_System_Com")] impl IEnumMSVidGraphSegment_Vtbl { - pub const fn new() -> IEnumMSVidGraphSegment_Vtbl - where - Identity: IEnumMSVidGraphSegment_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumMSVidGraphSegment_Impl, - { + pub const fn new() -> IEnumMSVidGraphSegment_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMSVidGraphSegment_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumMSVidGraphSegment_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMSVidGraphSegment_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMSVidGraphSegment_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMSVidGraphSegment_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMSVidGraphSegment_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumMSVidGraphSegment_Impl::Clone(this) { Ok(ok__) => { @@ -10435,7 +8161,7 @@ impl IEnumMSVidGraphSegment_Vtbl { iid == &::IID } } -pub trait IEnumStreamBufferRecordingAttrib_Impl: Sized { +pub trait IEnumStreamBufferRecordingAttrib_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, crequest: u32, pstreambufferattribute: *mut STREAMBUFFER_ATTRIBUTE, pcreceived: *mut u32) -> windows_core::Result<()>; fn Skip(&self, crecords: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -10443,35 +8169,20 @@ pub trait IEnumStreamBufferRecordingAttrib_Impl: Sized { } impl windows_core::RuntimeName for IEnumStreamBufferRecordingAttrib {} impl IEnumStreamBufferRecordingAttrib_Vtbl { - pub const fn new() -> IEnumStreamBufferRecordingAttrib_Vtbl - where - Identity: IEnumStreamBufferRecordingAttrib_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crequest: u32, pstreambufferattribute: *mut STREAMBUFFER_ATTRIBUTE, pcreceived: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumStreamBufferRecordingAttrib_Impl, - { + pub const fn new() -> IEnumStreamBufferRecordingAttrib_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crequest: u32, pstreambufferattribute: *mut STREAMBUFFER_ATTRIBUTE, pcreceived: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumStreamBufferRecordingAttrib_Impl::Next(this, core::mem::transmute_copy(&crequest), core::mem::transmute_copy(&pstreambufferattribute), core::mem::transmute_copy(&pcreceived)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, crecords: u32) -> windows_core::HRESULT - where - Identity: IEnumStreamBufferRecordingAttrib_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, crecords: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumStreamBufferRecordingAttrib_Impl::Skip(this, core::mem::transmute_copy(&crecords)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumStreamBufferRecordingAttrib_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumStreamBufferRecordingAttrib_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienumstreambufferattrib: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumStreamBufferRecordingAttrib_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienumstreambufferattrib: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumStreamBufferRecordingAttrib_Impl::Clone(this) { Ok(ok__) => { @@ -10494,7 +8205,7 @@ impl IEnumStreamBufferRecordingAttrib_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumTuneRequests_Impl: Sized { +pub trait IEnumTuneRequests_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppprop: *mut Option, pcelt: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -10504,35 +8215,20 @@ pub trait IEnumTuneRequests_Impl: Sized { impl windows_core::RuntimeName for IEnumTuneRequests {} #[cfg(feature = "Win32_System_Com")] impl IEnumTuneRequests_Vtbl { - pub const fn new() -> IEnumTuneRequests_Vtbl - where - Identity: IEnumTuneRequests_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppprop: *mut *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTuneRequests_Impl, - { + pub const fn new() -> IEnumTuneRequests_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppprop: *mut *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTuneRequests_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppprop), core::mem::transmute_copy(&pcelt)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumTuneRequests_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTuneRequests_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTuneRequests_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTuneRequests_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTuneRequests_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTuneRequests_Impl::Clone(this) { Ok(ok__) => { @@ -10555,7 +8251,7 @@ impl IEnumTuneRequests_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumTuningSpaces_Impl: Sized { +pub trait IEnumTuningSpaces_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -10565,35 +8261,20 @@ pub trait IEnumTuningSpaces_Impl: Sized { impl windows_core::RuntimeName for IEnumTuningSpaces {} #[cfg(feature = "Win32_System_Com")] impl IEnumTuningSpaces_Vtbl { - pub const fn new() -> IEnumTuningSpaces_Vtbl - where - Identity: IEnumTuningSpaces_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTuningSpaces_Impl, - { + pub const fn new() -> IEnumTuningSpaces_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTuningSpaces_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumTuningSpaces_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTuningSpaces_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTuningSpaces_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTuningSpaces_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTuningSpaces_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTuningSpaces_Impl::Clone(this) { Ok(ok__) => { @@ -10628,14 +8309,8 @@ pub trait IEvalRat_Impl: Sized + super::super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IEvalRat {} #[cfg(feature = "Win32_System_Com")] impl IEvalRat_Vtbl { - pub const fn new() -> IEvalRat_Vtbl - where - Identity: IEvalRat_Impl, - { - unsafe extern "system" fn get_BlockedRatingAttributes(this: *mut core::ffi::c_void, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, plbfattrs: *mut i32) -> windows_core::HRESULT - where - Identity: IEvalRat_Impl, - { + pub const fn new() -> IEvalRat_Vtbl { + unsafe extern "system" fn get_BlockedRatingAttributes(this: *mut core::ffi::c_void, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, plbfattrs: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEvalRat_Impl::get_BlockedRatingAttributes(this, core::mem::transmute_copy(&ensystem), core::mem::transmute_copy(&enlevel)) { Ok(ok__) => { @@ -10645,17 +8320,11 @@ impl IEvalRat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_BlockedRatingAttributes(this: *mut core::ffi::c_void, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, lbfattrs: i32) -> windows_core::HRESULT - where - Identity: IEvalRat_Impl, - { + unsafe extern "system" fn put_BlockedRatingAttributes(this: *mut core::ffi::c_void, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, lbfattrs: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEvalRat_Impl::put_BlockedRatingAttributes(this, core::mem::transmute_copy(&ensystem), core::mem::transmute_copy(&enlevel), core::mem::transmute_copy(&lbfattrs)).into() } - unsafe extern "system" fn BlockUnRated(this: *mut core::ffi::c_void, pfblockunratedshows: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEvalRat_Impl, - { + unsafe extern "system" fn BlockUnRated(this: *mut core::ffi::c_void, pfblockunratedshows: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEvalRat_Impl::BlockUnRated(this) { Ok(ok__) => { @@ -10665,24 +8334,15 @@ impl IEvalRat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBlockUnRated(this: *mut core::ffi::c_void, fblockunratedshows: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEvalRat_Impl, - { + unsafe extern "system" fn SetBlockUnRated(this: *mut core::ffi::c_void, fblockunratedshows: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEvalRat_Impl::SetBlockUnRated(this, core::mem::transmute_copy(&fblockunratedshows)).into() } - unsafe extern "system" fn MostRestrictiveRating(this: *mut core::ffi::c_void, ensystem1: EnTvRat_System, enenlevel1: EnTvRat_GenericLevel, lbfenattr1: i32, ensystem2: EnTvRat_System, enenlevel2: EnTvRat_GenericLevel, lbfenattr2: i32, pensystem: *mut EnTvRat_System, penenlevel: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::HRESULT - where - Identity: IEvalRat_Impl, - { + unsafe extern "system" fn MostRestrictiveRating(this: *mut core::ffi::c_void, ensystem1: EnTvRat_System, enenlevel1: EnTvRat_GenericLevel, lbfenattr1: i32, ensystem2: EnTvRat_System, enenlevel2: EnTvRat_GenericLevel, lbfenattr2: i32, pensystem: *mut EnTvRat_System, penenlevel: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEvalRat_Impl::MostRestrictiveRating(this, core::mem::transmute_copy(&ensystem1), core::mem::transmute_copy(&enenlevel1), core::mem::transmute_copy(&lbfenattr1), core::mem::transmute_copy(&ensystem2), core::mem::transmute_copy(&enenlevel2), core::mem::transmute_copy(&lbfenattr2), core::mem::transmute_copy(&pensystem), core::mem::transmute_copy(&penenlevel), core::mem::transmute_copy(&plbfenattr)).into() } - unsafe extern "system" fn TestRating(this: *mut core::ffi::c_void, enshowsystem: EnTvRat_System, enshowlevel: EnTvRat_GenericLevel, lbfenshowattributes: i32) -> windows_core::HRESULT - where - Identity: IEvalRat_Impl, - { + unsafe extern "system" fn TestRating(this: *mut core::ffi::c_void, enshowsystem: EnTvRat_System, enshowlevel: EnTvRat_GenericLevel, lbfenshowattributes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEvalRat_Impl::TestRating(this, core::mem::transmute_copy(&enshowsystem), core::mem::transmute_copy(&enshowlevel), core::mem::transmute_copy(&lbfenshowattributes)).into() } @@ -10700,7 +8360,7 @@ impl IEvalRat_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IGenericDescriptor_Impl: Sized { +pub trait IGenericDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pbdesc: *const u8, bcount: i32) -> windows_core::Result<()>; fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; @@ -10708,21 +8368,12 @@ pub trait IGenericDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IGenericDescriptor {} impl IGenericDescriptor_Vtbl { - pub const fn new() -> IGenericDescriptor_Vtbl - where - Identity: IGenericDescriptor_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pbdesc: *const u8, bcount: i32) -> windows_core::HRESULT - where - Identity: IGenericDescriptor_Impl, - { + pub const fn new() -> IGenericDescriptor_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pbdesc: *const u8, bcount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGenericDescriptor_Impl::Initialize(this, core::mem::transmute_copy(&pbdesc), core::mem::transmute_copy(&bcount)).into() } - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IGenericDescriptor_Impl, - { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGenericDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -10732,10 +8383,7 @@ impl IGenericDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IGenericDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGenericDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -10745,10 +8393,7 @@ impl IGenericDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBody(this: *mut core::ffi::c_void, ppbval: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IGenericDescriptor_Impl, - { + unsafe extern "system" fn GetBody(this: *mut core::ffi::c_void, ppbval: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGenericDescriptor_Impl::GetBody(this) { Ok(ok__) => { @@ -10776,21 +8421,12 @@ pub trait IGenericDescriptor2_Impl: Sized + IGenericDescriptor_Impl { } impl windows_core::RuntimeName for IGenericDescriptor2 {} impl IGenericDescriptor2_Vtbl { - pub const fn new() -> IGenericDescriptor2_Vtbl - where - Identity: IGenericDescriptor2_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pbdesc: *const u8, wcount: u16) -> windows_core::HRESULT - where - Identity: IGenericDescriptor2_Impl, - { + pub const fn new() -> IGenericDescriptor2_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pbdesc: *const u8, wcount: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGenericDescriptor2_Impl::Initialize(this, core::mem::transmute_copy(&pbdesc), core::mem::transmute_copy(&wcount)).into() } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IGenericDescriptor2_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGenericDescriptor2_Impl::GetLength(this) { Ok(ok__) => { @@ -10806,19 +8442,13 @@ impl IGenericDescriptor2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IGpnvsCommonBase_Impl: Sized { +pub trait IGpnvsCommonBase_Impl: Sized + windows_core::IUnknownImpl { fn GetValueUpdateName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IGpnvsCommonBase {} impl IGpnvsCommonBase_Vtbl { - pub const fn new() -> IGpnvsCommonBase_Vtbl - where - Identity: IGpnvsCommonBase_Impl, - { - unsafe extern "system" fn GetValueUpdateName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGpnvsCommonBase_Impl, - { + pub const fn new() -> IGpnvsCommonBase_Vtbl { + unsafe extern "system" fn GetValueUpdateName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGpnvsCommonBase_Impl::GetValueUpdateName(this) { Ok(ok__) => { @@ -10835,7 +8465,7 @@ impl IGpnvsCommonBase_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] -pub trait IGuideData_Impl: Sized { +pub trait IGuideData_Impl: Sized + windows_core::IUnknownImpl { fn GetServices(&self) -> windows_core::Result; fn GetServiceProperties(&self, ptunerequest: Option<&ITuneRequest>) -> windows_core::Result; fn GetGuideProgramIDs(&self) -> windows_core::Result; @@ -10847,14 +8477,8 @@ pub trait IGuideData_Impl: Sized { impl windows_core::RuntimeName for IGuideData {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGuideData_Vtbl { - pub const fn new() -> IGuideData_Vtbl - where - Identity: IGuideData_Impl, - { - unsafe extern "system" fn GetServices(this: *mut core::ffi::c_void, ppenumtunerequests: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGuideData_Impl, - { + pub const fn new() -> IGuideData_Vtbl { + unsafe extern "system" fn GetServices(this: *mut core::ffi::c_void, ppenumtunerequests: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGuideData_Impl::GetServices(this) { Ok(ok__) => { @@ -10864,10 +8488,7 @@ impl IGuideData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceProperties(this: *mut core::ffi::c_void, ptunerequest: *mut core::ffi::c_void, ppenumproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGuideData_Impl, - { + unsafe extern "system" fn GetServiceProperties(this: *mut core::ffi::c_void, ptunerequest: *mut core::ffi::c_void, ppenumproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGuideData_Impl::GetServiceProperties(this, windows_core::from_raw_borrowed(&ptunerequest)) { Ok(ok__) => { @@ -10877,10 +8498,7 @@ impl IGuideData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGuideProgramIDs(this: *mut core::ffi::c_void, penumprograms: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGuideData_Impl, - { + unsafe extern "system" fn GetGuideProgramIDs(this: *mut core::ffi::c_void, penumprograms: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGuideData_Impl::GetGuideProgramIDs(this) { Ok(ok__) => { @@ -10890,10 +8508,7 @@ impl IGuideData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProgramProperties(this: *mut core::ffi::c_void, varprogramdescriptionid: core::mem::MaybeUninit, ppenumproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGuideData_Impl, - { + unsafe extern "system" fn GetProgramProperties(this: *mut core::ffi::c_void, varprogramdescriptionid: core::mem::MaybeUninit, ppenumproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGuideData_Impl::GetProgramProperties(this, core::mem::transmute(&varprogramdescriptionid)) { Ok(ok__) => { @@ -10903,10 +8518,7 @@ impl IGuideData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScheduleEntryIDs(this: *mut core::ffi::c_void, penumscheduleentries: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGuideData_Impl, - { + unsafe extern "system" fn GetScheduleEntryIDs(this: *mut core::ffi::c_void, penumscheduleentries: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGuideData_Impl::GetScheduleEntryIDs(this) { Ok(ok__) => { @@ -10916,10 +8528,7 @@ impl IGuideData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScheduleEntryProperties(this: *mut core::ffi::c_void, varscheduleentrydescriptionid: core::mem::MaybeUninit, ppenumproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGuideData_Impl, - { + unsafe extern "system" fn GetScheduleEntryProperties(this: *mut core::ffi::c_void, varscheduleentrydescriptionid: core::mem::MaybeUninit, ppenumproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGuideData_Impl::GetScheduleEntryProperties(this, core::mem::transmute(&varscheduleentrydescriptionid)) { Ok(ok__) => { @@ -10943,7 +8552,7 @@ impl IGuideData_Vtbl { iid == &::IID } } -pub trait IGuideDataEvent_Impl: Sized { +pub trait IGuideDataEvent_Impl: Sized + windows_core::IUnknownImpl { fn GuideDataAcquired(&self) -> windows_core::Result<()>; fn ProgramChanged(&self, varprogramdescriptionid: &windows_core::VARIANT) -> windows_core::Result<()>; fn ServiceChanged(&self, varservicedescriptionid: &windows_core::VARIANT) -> windows_core::Result<()>; @@ -10954,56 +8563,32 @@ pub trait IGuideDataEvent_Impl: Sized { } impl windows_core::RuntimeName for IGuideDataEvent {} impl IGuideDataEvent_Vtbl { - pub const fn new() -> IGuideDataEvent_Vtbl - where - Identity: IGuideDataEvent_Impl, - { - unsafe extern "system" fn GuideDataAcquired(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGuideDataEvent_Impl, - { + pub const fn new() -> IGuideDataEvent_Vtbl { + unsafe extern "system" fn GuideDataAcquired(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGuideDataEvent_Impl::GuideDataAcquired(this).into() } - unsafe extern "system" fn ProgramChanged(this: *mut core::ffi::c_void, varprogramdescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGuideDataEvent_Impl, - { + unsafe extern "system" fn ProgramChanged(this: *mut core::ffi::c_void, varprogramdescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGuideDataEvent_Impl::ProgramChanged(this, core::mem::transmute(&varprogramdescriptionid)).into() } - unsafe extern "system" fn ServiceChanged(this: *mut core::ffi::c_void, varservicedescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGuideDataEvent_Impl, - { + unsafe extern "system" fn ServiceChanged(this: *mut core::ffi::c_void, varservicedescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGuideDataEvent_Impl::ServiceChanged(this, core::mem::transmute(&varservicedescriptionid)).into() } - unsafe extern "system" fn ScheduleEntryChanged(this: *mut core::ffi::c_void, varscheduleentrydescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGuideDataEvent_Impl, - { + unsafe extern "system" fn ScheduleEntryChanged(this: *mut core::ffi::c_void, varscheduleentrydescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGuideDataEvent_Impl::ScheduleEntryChanged(this, core::mem::transmute(&varscheduleentrydescriptionid)).into() } - unsafe extern "system" fn ProgramDeleted(this: *mut core::ffi::c_void, varprogramdescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGuideDataEvent_Impl, - { + unsafe extern "system" fn ProgramDeleted(this: *mut core::ffi::c_void, varprogramdescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGuideDataEvent_Impl::ProgramDeleted(this, core::mem::transmute(&varprogramdescriptionid)).into() } - unsafe extern "system" fn ServiceDeleted(this: *mut core::ffi::c_void, varservicedescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGuideDataEvent_Impl, - { + unsafe extern "system" fn ServiceDeleted(this: *mut core::ffi::c_void, varservicedescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGuideDataEvent_Impl::ServiceDeleted(this, core::mem::transmute(&varservicedescriptionid)).into() } - unsafe extern "system" fn ScheduleDeleted(this: *mut core::ffi::c_void, varscheduleentrydescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGuideDataEvent_Impl, - { + unsafe extern "system" fn ScheduleDeleted(this: *mut core::ffi::c_void, varscheduleentrydescriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGuideDataEvent_Impl::ScheduleDeleted(this, core::mem::transmute(&varscheduleentrydescriptionid)).into() } @@ -11022,27 +8607,18 @@ impl IGuideDataEvent_Vtbl { iid == &::IID } } -pub trait IGuideDataLoader_Impl: Sized { +pub trait IGuideDataLoader_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, pguidestore: Option<&IGuideData>) -> windows_core::Result<()>; fn Terminate(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGuideDataLoader {} impl IGuideDataLoader_Vtbl { - pub const fn new() -> IGuideDataLoader_Vtbl - where - Identity: IGuideDataLoader_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pguidestore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGuideDataLoader_Impl, - { + pub const fn new() -> IGuideDataLoader_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pguidestore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGuideDataLoader_Impl::Init(this, windows_core::from_raw_borrowed(&pguidestore)).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGuideDataLoader_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGuideDataLoader_Impl::Terminate(this).into() } @@ -11052,21 +8628,15 @@ impl IGuideDataLoader_Vtbl { iid == &::IID } } -pub trait IGuideDataProperty_Impl: Sized { +pub trait IGuideDataProperty_Impl: Sized + windows_core::IUnknownImpl { fn Name(&self) -> windows_core::Result; fn Language(&self) -> windows_core::Result; fn Value(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IGuideDataProperty {} impl IGuideDataProperty_Vtbl { - pub const fn new() -> IGuideDataProperty_Vtbl - where - Identity: IGuideDataProperty_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGuideDataProperty_Impl, - { + pub const fn new() -> IGuideDataProperty_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGuideDataProperty_Impl::Name(this) { Ok(ok__) => { @@ -11076,10 +8646,7 @@ impl IGuideDataProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Language(this: *mut core::ffi::c_void, idlang: *mut i32) -> windows_core::HRESULT - where - Identity: IGuideDataProperty_Impl, - { + unsafe extern "system" fn Language(this: *mut core::ffi::c_void, idlang: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGuideDataProperty_Impl::Language(this) { Ok(ok__) => { @@ -11089,10 +8656,7 @@ impl IGuideDataProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGuideDataProperty_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGuideDataProperty_Impl::Value(this) { Ok(ok__) => { @@ -11119,17 +8683,14 @@ pub trait IISDBSLocator_Impl: Sized + IDVBSLocator_Impl {} impl windows_core::RuntimeName for IISDBSLocator {} #[cfg(feature = "Win32_System_Com")] impl IISDBSLocator_Vtbl { - pub const fn new() -> IISDBSLocator_Vtbl - where - Identity: IISDBSLocator_Impl, - { + pub const fn new() -> IISDBSLocator_Vtbl { Self { base__: IDVBSLocator_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IISDB_BIT_Impl: Sized { +pub trait IISDB_BIT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetOriginalNetworkId(&self) -> windows_core::Result; @@ -11146,21 +8707,12 @@ pub trait IISDB_BIT_Impl: Sized { } impl windows_core::RuntimeName for IISDB_BIT {} impl IISDB_BIT_Vtbl { - pub const fn new() -> IISDB_BIT_Vtbl - where - Identity: IISDB_BIT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + pub const fn new() -> IISDB_BIT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_BIT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_BIT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -11170,10 +8722,7 @@ impl IISDB_BIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_BIT_Impl::GetOriginalNetworkId(this) { Ok(ok__) => { @@ -11183,10 +8732,7 @@ impl IISDB_BIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBroadcastViewPropriety(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetBroadcastViewPropriety(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_BIT_Impl::GetBroadcastViewPropriety(this) { Ok(ok__) => { @@ -11196,10 +8742,7 @@ impl IISDB_BIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_BIT_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -11209,10 +8752,7 @@ impl IISDB_BIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_BIT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -11222,17 +8762,11 @@ impl IISDB_BIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_BIT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_BIT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -11242,10 +8776,7 @@ impl IISDB_BIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordBroadcasterId(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetRecordBroadcasterId(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_BIT_Impl::GetRecordBroadcasterId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11255,10 +8786,7 @@ impl IISDB_BIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_BIT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11268,10 +8796,7 @@ impl IISDB_BIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_BIT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -11281,17 +8806,11 @@ impl IISDB_BIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_BIT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_BIT_Impl, - { + unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_BIT_Impl::GetVersionHash(this) { Ok(ok__) => { @@ -11322,7 +8841,7 @@ impl IISDB_BIT_Vtbl { iid == &::IID } } -pub trait IISDB_CDT_Impl: Sized { +pub trait IISDB_CDT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>, bsectionnumber: u8) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetDownloadDataId(&self) -> windows_core::Result; @@ -11338,21 +8857,12 @@ pub trait IISDB_CDT_Impl: Sized { } impl windows_core::RuntimeName for IISDB_CDT {} impl IISDB_CDT_Vtbl { - pub const fn new() -> IISDB_CDT_Vtbl - where - Identity: IISDB_CDT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void, bsectionnumber: u8) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + pub const fn new() -> IISDB_CDT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void, bsectionnumber: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_CDT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata), core::mem::transmute_copy(&bsectionnumber)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_CDT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -11362,10 +8872,7 @@ impl IISDB_CDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDownloadDataId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetDownloadDataId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_CDT_Impl::GetDownloadDataId(this) { Ok(ok__) => { @@ -11375,10 +8882,7 @@ impl IISDB_CDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSectionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetSectionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_CDT_Impl::GetSectionNumber(this) { Ok(ok__) => { @@ -11388,10 +8892,7 @@ impl IISDB_CDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_CDT_Impl::GetOriginalNetworkId(this) { Ok(ok__) => { @@ -11401,10 +8902,7 @@ impl IISDB_CDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetDataType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_CDT_Impl::GetDataType(this) { Ok(ok__) => { @@ -11414,10 +8912,7 @@ impl IISDB_CDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_CDT_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -11427,10 +8922,7 @@ impl IISDB_CDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_CDT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -11440,17 +8932,11 @@ impl IISDB_CDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_CDT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetSizeOfDataModule(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetSizeOfDataModule(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_CDT_Impl::GetSizeOfDataModule(this) { Ok(ok__) => { @@ -11460,10 +8946,7 @@ impl IISDB_CDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataModule(this: *mut core::ffi::c_void, pbdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetDataModule(this: *mut core::ffi::c_void, pbdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_CDT_Impl::GetDataModule(this) { Ok(ok__) => { @@ -11473,10 +8956,7 @@ impl IISDB_CDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_CDT_Impl, - { + unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_CDT_Impl::GetVersionHash(this) { Ok(ok__) => { @@ -11506,7 +8986,7 @@ impl IISDB_CDT_Vtbl { iid == &::IID } } -pub trait IISDB_EMM_Impl: Sized { +pub trait IISDB_EMM_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetTableIdExtension(&self) -> windows_core::Result; @@ -11517,21 +8997,12 @@ pub trait IISDB_EMM_Impl: Sized { } impl windows_core::RuntimeName for IISDB_EMM {} impl IISDB_EMM_Vtbl { - pub const fn new() -> IISDB_EMM_Vtbl - where - Identity: IISDB_EMM_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_EMM_Impl, - { + pub const fn new() -> IISDB_EMM_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_EMM_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_EMM_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_EMM_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -11541,10 +9012,7 @@ impl IISDB_EMM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableIdExtension(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_EMM_Impl, - { + unsafe extern "system" fn GetTableIdExtension(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_EMM_Impl::GetTableIdExtension(this) { Ok(ok__) => { @@ -11554,31 +9022,19 @@ impl IISDB_EMM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataBytes(this: *mut core::ffi::c_void, pwbufferlength: *mut u16, pbbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_EMM_Impl, - { + unsafe extern "system" fn GetDataBytes(this: *mut core::ffi::c_void, pwbufferlength: *mut u16, pbbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_EMM_Impl::GetDataBytes(this, core::mem::transmute_copy(&pwbufferlength), core::mem::transmute_copy(&pbbuffer)).into() } - unsafe extern "system" fn GetSharedEmmMessage(this: *mut core::ffi::c_void, pwlength: *mut u16, ppbmessage: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_EMM_Impl, - { + unsafe extern "system" fn GetSharedEmmMessage(this: *mut core::ffi::c_void, pwlength: *mut u16, ppbmessage: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_EMM_Impl::GetSharedEmmMessage(this, core::mem::transmute_copy(&pwlength), core::mem::transmute_copy(&ppbmessage)).into() } - unsafe extern "system" fn GetIndividualEmmMessage(this: *mut core::ffi::c_void, punknown: *mut core::ffi::c_void, pwlength: *mut u16, ppbmessage: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_EMM_Impl, - { + unsafe extern "system" fn GetIndividualEmmMessage(this: *mut core::ffi::c_void, punknown: *mut core::ffi::c_void, pwlength: *mut u16, ppbmessage: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_EMM_Impl::GetIndividualEmmMessage(this, windows_core::from_raw_borrowed(&punknown), core::mem::transmute_copy(&pwlength), core::mem::transmute_copy(&ppbmessage)).into() } - unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_EMM_Impl, - { + unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_EMM_Impl::GetVersionHash(this) { Ok(ok__) => { @@ -11603,7 +9059,7 @@ impl IISDB_EMM_Vtbl { iid == &::IID } } -pub trait IISDB_LDT_Impl: Sized { +pub trait IISDB_LDT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetOriginalServiceId(&self) -> windows_core::Result; @@ -11618,21 +9074,12 @@ pub trait IISDB_LDT_Impl: Sized { } impl windows_core::RuntimeName for IISDB_LDT {} impl IISDB_LDT_Vtbl { - pub const fn new() -> IISDB_LDT_Vtbl - where - Identity: IISDB_LDT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + pub const fn new() -> IISDB_LDT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_LDT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_LDT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -11642,10 +9089,7 @@ impl IISDB_LDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalServiceId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + unsafe extern "system" fn GetOriginalServiceId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_LDT_Impl::GetOriginalServiceId(this) { Ok(ok__) => { @@ -11655,10 +9099,7 @@ impl IISDB_LDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_LDT_Impl::GetTransportStreamId(this) { Ok(ok__) => { @@ -11668,10 +9109,7 @@ impl IISDB_LDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_LDT_Impl::GetOriginalNetworkId(this) { Ok(ok__) => { @@ -11681,10 +9119,7 @@ impl IISDB_LDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_LDT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -11694,10 +9129,7 @@ impl IISDB_LDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptionId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + unsafe extern "system" fn GetRecordDescriptionId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_LDT_Impl::GetRecordDescriptionId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11707,10 +9139,7 @@ impl IISDB_LDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_LDT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11720,10 +9149,7 @@ impl IISDB_LDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_LDT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -11733,17 +9159,11 @@ impl IISDB_LDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_LDT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_LDT_Impl, - { + unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_LDT_Impl::GetVersionHash(this) { Ok(ok__) => { @@ -11772,7 +9192,7 @@ impl IISDB_LDT_Vtbl { iid == &::IID } } -pub trait IISDB_NBIT_Impl: Sized { +pub trait IISDB_NBIT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetOriginalNetworkId(&self) -> windows_core::Result; @@ -11791,21 +9211,12 @@ pub trait IISDB_NBIT_Impl: Sized { } impl windows_core::RuntimeName for IISDB_NBIT {} impl IISDB_NBIT_Vtbl { - pub const fn new() -> IISDB_NBIT_Vtbl - where - Identity: IISDB_NBIT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + pub const fn new() -> IISDB_NBIT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_NBIT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -11815,10 +9226,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetOriginalNetworkId(this) { Ok(ok__) => { @@ -11828,10 +9236,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -11841,10 +9246,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordInformationId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetRecordInformationId(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetRecordInformationId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11854,10 +9256,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordInformationType(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetRecordInformationType(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetRecordInformationType(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11867,10 +9266,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptionBodyLocation(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptionBodyLocation(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetRecordDescriptionBodyLocation(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11880,10 +9276,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordMessageSectionNumber(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetRecordMessageSectionNumber(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetRecordMessageSectionNumber(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11893,10 +9286,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordUserDefined(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetRecordUserDefined(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetRecordUserDefined(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11906,10 +9296,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordNumberOfKeys(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetRecordNumberOfKeys(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetRecordNumberOfKeys(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11919,10 +9306,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordKeys(this: *mut core::ffi::c_void, dwrecordindex: u32, pbkeys: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetRecordKeys(this: *mut core::ffi::c_void, dwrecordindex: u32, pbkeys: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetRecordKeys(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11932,10 +9316,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -11945,10 +9326,7 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -11958,17 +9336,11 @@ impl IISDB_NBIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_NBIT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_NBIT_Impl, - { + unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_NBIT_Impl::GetVersionHash(this) { Ok(ok__) => { @@ -12006,14 +9378,8 @@ pub trait IISDB_SDT_Impl: Sized + IDVB_SDT_Impl { } impl windows_core::RuntimeName for IISDB_SDT {} impl IISDB_SDT_Vtbl { - pub const fn new() -> IISDB_SDT_Vtbl - where - Identity: IISDB_SDT_Impl, - { - unsafe extern "system" fn GetRecordEITUserDefinedFlags(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_SDT_Impl, - { + pub const fn new() -> IISDB_SDT_Vtbl { + unsafe extern "system" fn GetRecordEITUserDefinedFlags(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDT_Impl::GetRecordEITUserDefinedFlags(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -12029,7 +9395,7 @@ impl IISDB_SDT_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IISDB_SDTT_Impl: Sized { +pub trait IISDB_SDTT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetTableIdExt(&self) -> windows_core::Result; @@ -12053,21 +9419,12 @@ pub trait IISDB_SDTT_Impl: Sized { } impl windows_core::RuntimeName for IISDB_SDTT {} impl IISDB_SDTT_Vtbl { - pub const fn new() -> IISDB_SDTT_Vtbl - where - Identity: IISDB_SDTT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + pub const fn new() -> IISDB_SDTT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_SDTT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -12077,10 +9434,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableIdExt(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetTableIdExt(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetTableIdExt(this) { Ok(ok__) => { @@ -12090,10 +9444,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetTransportStreamId(this) { Ok(ok__) => { @@ -12103,10 +9454,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetOriginalNetworkId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetOriginalNetworkId(this) { Ok(ok__) => { @@ -12116,10 +9464,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetServiceId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetServiceId(this) { Ok(ok__) => { @@ -12129,10 +9474,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -12142,10 +9484,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordGroup(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordGroup(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordGroup(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -12155,10 +9494,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTargetVersion(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordTargetVersion(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordTargetVersion(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -12168,10 +9504,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordNewVersion(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordNewVersion(this: *mut core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordNewVersion(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -12181,10 +9514,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDownloadLevel(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordDownloadLevel(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordDownloadLevel(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -12194,10 +9524,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordVersionIndicator(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordVersionIndicator(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordVersionIndicator(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -12207,10 +9534,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordScheduleTimeShiftInformation(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordScheduleTimeShiftInformation(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordScheduleTimeShiftInformation(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -12220,10 +9544,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfSchedules(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordCountOfSchedules(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordCountOfSchedules(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -12233,10 +9554,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordStartTimeByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordStartTimeByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordStartTimeByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -12246,10 +9564,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDurationByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, pmdval: *mut MPEG_TIME) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordDurationByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, pmdval: *mut MPEG_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordDurationByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -12259,10 +9574,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -12272,10 +9584,7 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -12285,17 +9594,11 @@ impl IISDB_SDTT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IISDB_SDTT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT - where - Identity: IISDB_SDTT_Impl, - { + unsafe extern "system" fn GetVersionHash(this: *mut core::ffi::c_void, pdwversionhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IISDB_SDTT_Impl::GetVersionHash(this) { Ok(ok__) => { @@ -12333,7 +9636,7 @@ impl IISDB_SDTT_Vtbl { iid == &::IID } } -pub trait IIsdbAudioComponentDescriptor_Impl: Sized { +pub trait IIsdbAudioComponentDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetStreamContent(&self) -> windows_core::Result; @@ -12351,14 +9654,8 @@ pub trait IIsdbAudioComponentDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbAudioComponentDescriptor {} impl IIsdbAudioComponentDescriptor_Vtbl { - pub const fn new() -> IIsdbAudioComponentDescriptor_Vtbl - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + pub const fn new() -> IIsdbAudioComponentDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -12368,10 +9665,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -12381,10 +9675,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamContent(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetStreamContent(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetStreamContent(this) { Ok(ok__) => { @@ -12394,10 +9685,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComponentType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetComponentType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetComponentType(this) { Ok(ok__) => { @@ -12407,10 +9695,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComponentTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetComponentTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetComponentTag(this) { Ok(ok__) => { @@ -12420,10 +9705,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetStreamType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetStreamType(this) { Ok(ok__) => { @@ -12433,10 +9715,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSimulcastGroupTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetSimulcastGroupTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetSimulcastGroupTag(this) { Ok(ok__) => { @@ -12446,10 +9725,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetESMultiLingualFlag(this: *mut core::ffi::c_void, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetESMultiLingualFlag(this: *mut core::ffi::c_void, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetESMultiLingualFlag(this) { Ok(ok__) => { @@ -12459,10 +9735,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMainComponentFlag(this: *mut core::ffi::c_void, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetMainComponentFlag(this: *mut core::ffi::c_void, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetMainComponentFlag(this) { Ok(ok__) => { @@ -12472,10 +9745,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQualityIndicator(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetQualityIndicator(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetQualityIndicator(this) { Ok(ok__) => { @@ -12485,10 +9755,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSamplingRate(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetSamplingRate(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetSamplingRate(this) { Ok(ok__) => { @@ -12498,24 +9765,15 @@ impl IIsdbAudioComponentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbAudioComponentDescriptor_Impl::GetLanguageCode(this, core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetLanguageCode2(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetLanguageCode2(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbAudioComponentDescriptor_Impl::GetLanguageCode2(this, core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIsdbAudioComponentDescriptor_Impl, - { + unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetTextW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -12547,7 +9805,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbCAContractInformationDescriptor_Impl: Sized { +pub trait IIsdbCAContractInformationDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCASystemId(&self) -> windows_core::Result; @@ -12560,14 +9818,8 @@ pub trait IIsdbCAContractInformationDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbCAContractInformationDescriptor {} impl IIsdbCAContractInformationDescriptor_Vtbl { - pub const fn new() -> IIsdbCAContractInformationDescriptor_Vtbl - where - Identity: IIsdbCAContractInformationDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAContractInformationDescriptor_Impl, - { + pub const fn new() -> IIsdbCAContractInformationDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAContractInformationDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -12577,10 +9829,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAContractInformationDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAContractInformationDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -12590,10 +9839,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCASystemId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbCAContractInformationDescriptor_Impl, - { + unsafe extern "system" fn GetCASystemId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAContractInformationDescriptor_Impl::GetCASystemId(this) { Ok(ok__) => { @@ -12603,10 +9849,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAUnitId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAContractInformationDescriptor_Impl, - { + unsafe extern "system" fn GetCAUnitId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAContractInformationDescriptor_Impl::GetCAUnitId(this) { Ok(ok__) => { @@ -12616,10 +9859,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAContractInformationDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAContractInformationDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -12629,10 +9869,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordComponentTag(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAContractInformationDescriptor_Impl, - { + unsafe extern "system" fn GetRecordComponentTag(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAContractInformationDescriptor_Impl::GetRecordComponentTag(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -12642,10 +9879,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContractVerificationInfoLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAContractInformationDescriptor_Impl, - { + unsafe extern "system" fn GetContractVerificationInfoLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAContractInformationDescriptor_Impl::GetContractVerificationInfoLength(this) { Ok(ok__) => { @@ -12655,10 +9889,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContractVerificationInfo(this: *mut core::ffi::c_void, bbuflength: u8, pbbuf: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAContractInformationDescriptor_Impl, - { + unsafe extern "system" fn GetContractVerificationInfo(this: *mut core::ffi::c_void, bbuflength: u8, pbbuf: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAContractInformationDescriptor_Impl::GetContractVerificationInfo(this, core::mem::transmute_copy(&bbuflength)) { Ok(ok__) => { @@ -12668,10 +9899,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFeeNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIsdbCAContractInformationDescriptor_Impl, - { + unsafe extern "system" fn GetFeeNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAContractInformationDescriptor_Impl::GetFeeNameW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -12698,7 +9926,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbCADescriptor_Impl: Sized { +pub trait IIsdbCADescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCASystemId(&self) -> windows_core::Result; @@ -12708,14 +9936,8 @@ pub trait IIsdbCADescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbCADescriptor {} impl IIsdbCADescriptor_Vtbl { - pub const fn new() -> IIsdbCADescriptor_Vtbl - where - Identity: IIsdbCADescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCADescriptor_Impl, - { + pub const fn new() -> IIsdbCADescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCADescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -12725,10 +9947,7 @@ impl IIsdbCADescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCADescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCADescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -12738,10 +9957,7 @@ impl IIsdbCADescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCASystemId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbCADescriptor_Impl, - { + unsafe extern "system" fn GetCASystemId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCADescriptor_Impl::GetCASystemId(this) { Ok(ok__) => { @@ -12751,10 +9967,7 @@ impl IIsdbCADescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReservedBits(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCADescriptor_Impl, - { + unsafe extern "system" fn GetReservedBits(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCADescriptor_Impl::GetReservedBits(this) { Ok(ok__) => { @@ -12764,10 +9977,7 @@ impl IIsdbCADescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAPID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbCADescriptor_Impl, - { + unsafe extern "system" fn GetCAPID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCADescriptor_Impl::GetCAPID(this) { Ok(ok__) => { @@ -12777,10 +9987,7 @@ impl IIsdbCADescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrivateDataBytes(this: *mut core::ffi::c_void, pbbufferlength: *mut u8, pbbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCADescriptor_Impl, - { + unsafe extern "system" fn GetPrivateDataBytes(this: *mut core::ffi::c_void, pbbufferlength: *mut u8, pbbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbCADescriptor_Impl::GetPrivateDataBytes(this, core::mem::transmute_copy(&pbbufferlength), core::mem::transmute_copy(&pbbuffer)).into() } @@ -12798,7 +10005,7 @@ impl IIsdbCADescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbCAServiceDescriptor_Impl: Sized { +pub trait IIsdbCAServiceDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCASystemId(&self) -> windows_core::Result; @@ -12808,14 +10015,8 @@ pub trait IIsdbCAServiceDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbCAServiceDescriptor {} impl IIsdbCAServiceDescriptor_Vtbl { - pub const fn new() -> IIsdbCAServiceDescriptor_Vtbl - where - Identity: IIsdbCAServiceDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAServiceDescriptor_Impl, - { + pub const fn new() -> IIsdbCAServiceDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAServiceDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -12825,10 +10026,7 @@ impl IIsdbCAServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAServiceDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAServiceDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -12838,10 +10036,7 @@ impl IIsdbCAServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCASystemId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbCAServiceDescriptor_Impl, - { + unsafe extern "system" fn GetCASystemId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAServiceDescriptor_Impl::GetCASystemId(this) { Ok(ok__) => { @@ -12851,10 +10046,7 @@ impl IIsdbCAServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCABroadcasterGroupId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAServiceDescriptor_Impl, - { + unsafe extern "system" fn GetCABroadcasterGroupId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAServiceDescriptor_Impl::GetCABroadcasterGroupId(this) { Ok(ok__) => { @@ -12864,10 +10056,7 @@ impl IIsdbCAServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMessageControl(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbCAServiceDescriptor_Impl, - { + unsafe extern "system" fn GetMessageControl(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbCAServiceDescriptor_Impl::GetMessageControl(this) { Ok(ok__) => { @@ -12877,10 +10066,7 @@ impl IIsdbCAServiceDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceIds(this: *mut core::ffi::c_void, pbnumserviceids: *mut u8, pwserviceids: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbCAServiceDescriptor_Impl, - { + unsafe extern "system" fn GetServiceIds(this: *mut core::ffi::c_void, pbnumserviceids: *mut u8, pwserviceids: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbCAServiceDescriptor_Impl::GetServiceIds(this, core::mem::transmute_copy(&pbnumserviceids), core::mem::transmute_copy(&pwserviceids)).into() } @@ -12898,7 +10084,7 @@ impl IIsdbCAServiceDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbComponentGroupDescriptor_Impl: Sized { +pub trait IIsdbComponentGroupDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetComponentGroupType(&self) -> windows_core::Result; @@ -12913,14 +10099,8 @@ pub trait IIsdbComponentGroupDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbComponentGroupDescriptor {} impl IIsdbComponentGroupDescriptor_Vtbl { - pub const fn new() -> IIsdbComponentGroupDescriptor_Vtbl - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + pub const fn new() -> IIsdbComponentGroupDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -12930,10 +10110,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -12943,10 +10120,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComponentGroupType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + unsafe extern "system" fn GetComponentGroupType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetComponentGroupType(this) { Ok(ok__) => { @@ -12956,10 +10130,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -12969,10 +10140,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordGroupId(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + unsafe extern "system" fn GetRecordGroupId(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetRecordGroupId(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -12982,10 +10150,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordNumberOfCAUnit(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + unsafe extern "system" fn GetRecordNumberOfCAUnit(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetRecordNumberOfCAUnit(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -12995,10 +10160,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCAUnitCAUnitId(this: *mut core::ffi::c_void, brecordindex: u8, bcaunitindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + unsafe extern "system" fn GetRecordCAUnitCAUnitId(this: *mut core::ffi::c_void, brecordindex: u8, bcaunitindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetRecordCAUnitCAUnitId(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&bcaunitindex)) { Ok(ok__) => { @@ -13008,10 +10170,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCAUnitNumberOfComponents(this: *mut core::ffi::c_void, brecordindex: u8, bcaunitindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + unsafe extern "system" fn GetRecordCAUnitNumberOfComponents(this: *mut core::ffi::c_void, brecordindex: u8, bcaunitindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetRecordCAUnitNumberOfComponents(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&bcaunitindex)) { Ok(ok__) => { @@ -13021,10 +10180,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCAUnitComponentTag(this: *mut core::ffi::c_void, brecordindex: u8, bcaunitindex: u8, bcomponentindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + unsafe extern "system" fn GetRecordCAUnitComponentTag(this: *mut core::ffi::c_void, brecordindex: u8, bcaunitindex: u8, bcomponentindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetRecordCAUnitComponentTag(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&bcaunitindex), core::mem::transmute_copy(&bcomponentindex)) { Ok(ok__) => { @@ -13034,10 +10190,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTotalBitRate(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + unsafe extern "system" fn GetRecordTotalBitRate(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetRecordTotalBitRate(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -13047,10 +10200,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTextW(this: *mut core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIsdbComponentGroupDescriptor_Impl, - { + unsafe extern "system" fn GetRecordTextW(this: *mut core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbComponentGroupDescriptor_Impl::GetRecordTextW(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -13079,7 +10229,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbDataContentDescriptor_Impl: Sized { +pub trait IIsdbDataContentDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetDataComponentId(&self) -> windows_core::Result; @@ -13093,14 +10243,8 @@ pub trait IIsdbDataContentDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbDataContentDescriptor {} impl IIsdbDataContentDescriptor_Vtbl { - pub const fn new() -> IIsdbDataContentDescriptor_Vtbl - where - Identity: IIsdbDataContentDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDataContentDescriptor_Impl, - { + pub const fn new() -> IIsdbDataContentDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDataContentDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -13110,10 +10254,7 @@ impl IIsdbDataContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDataContentDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDataContentDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -13123,10 +10264,7 @@ impl IIsdbDataContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataComponentId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbDataContentDescriptor_Impl, - { + unsafe extern "system" fn GetDataComponentId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDataContentDescriptor_Impl::GetDataComponentId(this) { Ok(ok__) => { @@ -13136,10 +10274,7 @@ impl IIsdbDataContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEntryComponent(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDataContentDescriptor_Impl, - { + unsafe extern "system" fn GetEntryComponent(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDataContentDescriptor_Impl::GetEntryComponent(this) { Ok(ok__) => { @@ -13149,10 +10284,7 @@ impl IIsdbDataContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectorLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDataContentDescriptor_Impl, - { + unsafe extern "system" fn GetSelectorLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDataContentDescriptor_Impl::GetSelectorLength(this) { Ok(ok__) => { @@ -13162,10 +10294,7 @@ impl IIsdbDataContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectorBytes(this: *mut core::ffi::c_void, bbuflength: u8, pbbuf: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDataContentDescriptor_Impl, - { + unsafe extern "system" fn GetSelectorBytes(this: *mut core::ffi::c_void, bbuflength: u8, pbbuf: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDataContentDescriptor_Impl::GetSelectorBytes(this, core::mem::transmute_copy(&bbuflength)) { Ok(ok__) => { @@ -13175,10 +10304,7 @@ impl IIsdbDataContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDataContentDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDataContentDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -13188,10 +10314,7 @@ impl IIsdbDataContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordComponentRef(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDataContentDescriptor_Impl, - { + unsafe extern "system" fn GetRecordComponentRef(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDataContentDescriptor_Impl::GetRecordComponentRef(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -13201,17 +10324,11 @@ impl IIsdbDataContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDataContentDescriptor_Impl, - { + unsafe extern "system" fn GetLanguageCode(this: *mut core::ffi::c_void, pszcode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbDataContentDescriptor_Impl::GetLanguageCode(this, core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIsdbDataContentDescriptor_Impl, - { + unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDataContentDescriptor_Impl::GetTextW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -13239,7 +10356,7 @@ impl IIsdbDataContentDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbDigitalCopyControlDescriptor_Impl: Sized { +pub trait IIsdbDigitalCopyControlDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCopyControl(&self, pbdigitalrecordingcontroldata: *mut u8, pbcopycontroltype: *mut u8, pbapscontroldata: *mut u8, pbmaximumbitrate: *mut u8) -> windows_core::Result<()>; @@ -13248,14 +10365,8 @@ pub trait IIsdbDigitalCopyControlDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbDigitalCopyControlDescriptor {} impl IIsdbDigitalCopyControlDescriptor_Vtbl { - pub const fn new() -> IIsdbDigitalCopyControlDescriptor_Vtbl - where - Identity: IIsdbDigitalCopyControlDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDigitalCopyControlDescriptor_Impl, - { + pub const fn new() -> IIsdbDigitalCopyControlDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDigitalCopyControlDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -13265,10 +10376,7 @@ impl IIsdbDigitalCopyControlDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDigitalCopyControlDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDigitalCopyControlDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -13278,17 +10386,11 @@ impl IIsdbDigitalCopyControlDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCopyControl(this: *mut core::ffi::c_void, pbdigitalrecordingcontroldata: *mut u8, pbcopycontroltype: *mut u8, pbapscontroldata: *mut u8, pbmaximumbitrate: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDigitalCopyControlDescriptor_Impl, - { + unsafe extern "system" fn GetCopyControl(this: *mut core::ffi::c_void, pbdigitalrecordingcontroldata: *mut u8, pbcopycontroltype: *mut u8, pbapscontroldata: *mut u8, pbmaximumbitrate: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbDigitalCopyControlDescriptor_Impl::GetCopyControl(this, core::mem::transmute_copy(&pbdigitalrecordingcontroldata), core::mem::transmute_copy(&pbcopycontroltype), core::mem::transmute_copy(&pbapscontroldata), core::mem::transmute_copy(&pbmaximumbitrate)).into() } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDigitalCopyControlDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDigitalCopyControlDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -13298,10 +10400,7 @@ impl IIsdbDigitalCopyControlDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCopyControl(this: *mut core::ffi::c_void, brecordindex: u8, pbcomponenttag: *mut u8, pbdigitalrecordingcontroldata: *mut u8, pbcopycontroltype: *mut u8, pbapscontroldata: *mut u8, pbmaximumbitrate: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDigitalCopyControlDescriptor_Impl, - { + unsafe extern "system" fn GetRecordCopyControl(this: *mut core::ffi::c_void, brecordindex: u8, pbcomponenttag: *mut u8, pbdigitalrecordingcontroldata: *mut u8, pbcopycontroltype: *mut u8, pbapscontroldata: *mut u8, pbmaximumbitrate: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbDigitalCopyControlDescriptor_Impl::GetRecordCopyControl(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&pbcomponenttag), core::mem::transmute_copy(&pbdigitalrecordingcontroldata), core::mem::transmute_copy(&pbcopycontroltype), core::mem::transmute_copy(&pbapscontroldata), core::mem::transmute_copy(&pbmaximumbitrate)).into() } @@ -13318,7 +10417,7 @@ impl IIsdbDigitalCopyControlDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbDownloadContentDescriptor_Impl: Sized { +pub trait IIsdbDownloadContentDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetFlags(&self, pfreboot: *mut super::super::super::Foundation::BOOL, pfaddon: *mut super::super::super::Foundation::BOOL, pfcompatibility: *mut super::super::super::Foundation::BOOL, pfmoduleinfo: *mut super::super::super::Foundation::BOOL, pftextinfo: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -13339,14 +10438,8 @@ pub trait IIsdbDownloadContentDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbDownloadContentDescriptor {} impl IIsdbDownloadContentDescriptor_Vtbl { - pub const fn new() -> IIsdbDownloadContentDescriptor_Vtbl - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + pub const fn new() -> IIsdbDownloadContentDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -13356,10 +10449,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -13369,17 +10459,11 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pfreboot: *mut super::super::super::Foundation::BOOL, pfaddon: *mut super::super::super::Foundation::BOOL, pfcompatibility: *mut super::super::super::Foundation::BOOL, pfmoduleinfo: *mut super::super::super::Foundation::BOOL, pftextinfo: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pfreboot: *mut super::super::super::Foundation::BOOL, pfaddon: *mut super::super::super::Foundation::BOOL, pfcompatibility: *mut super::super::super::Foundation::BOOL, pfmoduleinfo: *mut super::super::super::Foundation::BOOL, pftextinfo: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbDownloadContentDescriptor_Impl::GetFlags(this, core::mem::transmute_copy(&pfreboot), core::mem::transmute_copy(&pfaddon), core::mem::transmute_copy(&pfcompatibility), core::mem::transmute_copy(&pfmoduleinfo), core::mem::transmute_copy(&pftextinfo)).into() } - unsafe extern "system" fn GetComponentSize(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetComponentSize(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetComponentSize(this) { Ok(ok__) => { @@ -13389,10 +10473,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDownloadId(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetDownloadId(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetDownloadId(this) { Ok(ok__) => { @@ -13402,10 +10483,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimeOutValueDII(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetTimeOutValueDII(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetTimeOutValueDII(this) { Ok(ok__) => { @@ -13415,10 +10493,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLeakRate(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetLeakRate(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetLeakRate(this) { Ok(ok__) => { @@ -13428,10 +10503,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComponentTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetComponentTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetComponentTag(this) { Ok(ok__) => { @@ -13441,10 +10513,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCompatiblityDescriptorLength(this: *mut core::ffi::c_void, pwlength: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetCompatiblityDescriptorLength(this: *mut core::ffi::c_void, pwlength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetCompatiblityDescriptorLength(this) { Ok(ok__) => { @@ -13454,10 +10523,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCompatiblityDescriptor(this: *mut core::ffi::c_void, ppbdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetCompatiblityDescriptor(this: *mut core::ffi::c_void, ppbdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetCompatiblityDescriptor(this) { Ok(ok__) => { @@ -13467,10 +10533,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -13480,10 +10543,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordModuleId(this: *mut core::ffi::c_void, wrecordindex: u16, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetRecordModuleId(this: *mut core::ffi::c_void, wrecordindex: u16, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetRecordModuleId(this, core::mem::transmute_copy(&wrecordindex)) { Ok(ok__) => { @@ -13493,10 +10553,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordModuleSize(this: *mut core::ffi::c_void, wrecordindex: u16, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetRecordModuleSize(this: *mut core::ffi::c_void, wrecordindex: u16, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetRecordModuleSize(this, core::mem::transmute_copy(&wrecordindex)) { Ok(ok__) => { @@ -13506,10 +10563,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordModuleInfoLength(this: *mut core::ffi::c_void, wrecordindex: u16, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetRecordModuleInfoLength(this: *mut core::ffi::c_void, wrecordindex: u16, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetRecordModuleInfoLength(this, core::mem::transmute_copy(&wrecordindex)) { Ok(ok__) => { @@ -13519,10 +10573,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordModuleInfo(this: *mut core::ffi::c_void, wrecordindex: u16, ppbdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetRecordModuleInfo(this: *mut core::ffi::c_void, wrecordindex: u16, ppbdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetRecordModuleInfo(this, core::mem::transmute_copy(&wrecordindex)) { Ok(ok__) => { @@ -13532,17 +10583,11 @@ impl IIsdbDownloadContentDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextLanguageCode(this: *mut core::ffi::c_void, szcode: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetTextLanguageCode(this: *mut core::ffi::c_void, szcode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbDownloadContentDescriptor_Impl::GetTextLanguageCode(this, core::mem::transmute_copy(&szcode)).into() } - unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIsdbDownloadContentDescriptor_Impl, - { + unsafe extern "system" fn GetTextW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbDownloadContentDescriptor_Impl::GetTextW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -13577,7 +10622,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbEmergencyInformationDescriptor_Impl: Sized { +pub trait IIsdbEmergencyInformationDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; @@ -13588,14 +10633,8 @@ pub trait IIsdbEmergencyInformationDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbEmergencyInformationDescriptor {} impl IIsdbEmergencyInformationDescriptor_Vtbl { - pub const fn new() -> IIsdbEmergencyInformationDescriptor_Vtbl - where - Identity: IIsdbEmergencyInformationDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEmergencyInformationDescriptor_Impl, - { + pub const fn new() -> IIsdbEmergencyInformationDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEmergencyInformationDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -13605,10 +10644,7 @@ impl IIsdbEmergencyInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEmergencyInformationDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEmergencyInformationDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -13618,10 +10654,7 @@ impl IIsdbEmergencyInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEmergencyInformationDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEmergencyInformationDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -13631,10 +10664,7 @@ impl IIsdbEmergencyInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceId(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbEmergencyInformationDescriptor_Impl, - { + unsafe extern "system" fn GetServiceId(this: *mut core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEmergencyInformationDescriptor_Impl::GetServiceId(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -13644,10 +10674,7 @@ impl IIsdbEmergencyInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStartEndFlag(this: *mut core::ffi::c_void, brecordindex: u8, pval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEmergencyInformationDescriptor_Impl, - { + unsafe extern "system" fn GetStartEndFlag(this: *mut core::ffi::c_void, brecordindex: u8, pval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEmergencyInformationDescriptor_Impl::GetStartEndFlag(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -13657,10 +10684,7 @@ impl IIsdbEmergencyInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignalLevel(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEmergencyInformationDescriptor_Impl, - { + unsafe extern "system" fn GetSignalLevel(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEmergencyInformationDescriptor_Impl::GetSignalLevel(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -13670,10 +10694,7 @@ impl IIsdbEmergencyInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAreaCode(this: *mut core::ffi::c_void, brecordindex: u8, ppwval: *mut *mut u16, pbnumareacodes: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEmergencyInformationDescriptor_Impl, - { + unsafe extern "system" fn GetAreaCode(this: *mut core::ffi::c_void, brecordindex: u8, ppwval: *mut *mut u16, pbnumareacodes: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbEmergencyInformationDescriptor_Impl::GetAreaCode(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&ppwval), core::mem::transmute_copy(&pbnumareacodes)).into() } @@ -13692,7 +10713,7 @@ impl IIsdbEmergencyInformationDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbEventGroupDescriptor_Impl: Sized { +pub trait IIsdbEventGroupDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetGroupType(&self) -> windows_core::Result; @@ -13703,14 +10724,8 @@ pub trait IIsdbEventGroupDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbEventGroupDescriptor {} impl IIsdbEventGroupDescriptor_Vtbl { - pub const fn new() -> IIsdbEventGroupDescriptor_Vtbl - where - Identity: IIsdbEventGroupDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEventGroupDescriptor_Impl, - { + pub const fn new() -> IIsdbEventGroupDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEventGroupDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -13720,10 +10735,7 @@ impl IIsdbEventGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEventGroupDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEventGroupDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -13733,10 +10745,7 @@ impl IIsdbEventGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGroupType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEventGroupDescriptor_Impl, - { + unsafe extern "system" fn GetGroupType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEventGroupDescriptor_Impl::GetGroupType(this) { Ok(ok__) => { @@ -13746,10 +10755,7 @@ impl IIsdbEventGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEventGroupDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEventGroupDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -13759,17 +10765,11 @@ impl IIsdbEventGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordEvent(this: *mut core::ffi::c_void, brecordindex: u8, pwserviceid: *mut u16, pweventid: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbEventGroupDescriptor_Impl, - { + unsafe extern "system" fn GetRecordEvent(this: *mut core::ffi::c_void, brecordindex: u8, pwserviceid: *mut u16, pweventid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbEventGroupDescriptor_Impl::GetRecordEvent(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&pwserviceid), core::mem::transmute_copy(&pweventid)).into() } - unsafe extern "system" fn GetCountOfRefRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbEventGroupDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRefRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbEventGroupDescriptor_Impl::GetCountOfRefRecords(this) { Ok(ok__) => { @@ -13779,10 +10779,7 @@ impl IIsdbEventGroupDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRefRecordEvent(this: *mut core::ffi::c_void, brecordindex: u8, pworiginalnetworkid: *mut u16, pwtransportstreamid: *mut u16, pwserviceid: *mut u16, pweventid: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbEventGroupDescriptor_Impl, - { + unsafe extern "system" fn GetRefRecordEvent(this: *mut core::ffi::c_void, brecordindex: u8, pworiginalnetworkid: *mut u16, pwtransportstreamid: *mut u16, pwserviceid: *mut u16, pweventid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbEventGroupDescriptor_Impl::GetRefRecordEvent(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&pworiginalnetworkid), core::mem::transmute_copy(&pwtransportstreamid), core::mem::transmute_copy(&pwserviceid), core::mem::transmute_copy(&pweventid)).into() } @@ -13801,7 +10798,7 @@ impl IIsdbEventGroupDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbHierarchicalTransmissionDescriptor_Impl: Sized { +pub trait IIsdbHierarchicalTransmissionDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetFutureUse1(&self) -> windows_core::Result; @@ -13811,14 +10808,8 @@ pub trait IIsdbHierarchicalTransmissionDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbHierarchicalTransmissionDescriptor {} impl IIsdbHierarchicalTransmissionDescriptor_Vtbl { - pub const fn new() -> IIsdbHierarchicalTransmissionDescriptor_Vtbl - where - Identity: IIsdbHierarchicalTransmissionDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbHierarchicalTransmissionDescriptor_Impl, - { + pub const fn new() -> IIsdbHierarchicalTransmissionDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbHierarchicalTransmissionDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -13828,10 +10819,7 @@ impl IIsdbHierarchicalTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbHierarchicalTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbHierarchicalTransmissionDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -13841,10 +10829,7 @@ impl IIsdbHierarchicalTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFutureUse1(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbHierarchicalTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetFutureUse1(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbHierarchicalTransmissionDescriptor_Impl::GetFutureUse1(this) { Ok(ok__) => { @@ -13854,10 +10839,7 @@ impl IIsdbHierarchicalTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQualityLevel(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbHierarchicalTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetQualityLevel(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbHierarchicalTransmissionDescriptor_Impl::GetQualityLevel(this) { Ok(ok__) => { @@ -13867,10 +10849,7 @@ impl IIsdbHierarchicalTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFutureUse2(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbHierarchicalTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetFutureUse2(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbHierarchicalTransmissionDescriptor_Impl::GetFutureUse2(this) { Ok(ok__) => { @@ -13880,10 +10859,7 @@ impl IIsdbHierarchicalTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReferencePid(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbHierarchicalTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetReferencePid(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbHierarchicalTransmissionDescriptor_Impl::GetReferencePid(this) { Ok(ok__) => { @@ -13907,7 +10883,7 @@ impl IIsdbHierarchicalTransmissionDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbLogoTransmissionDescriptor_Impl: Sized { +pub trait IIsdbLogoTransmissionDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetLogoTransmissionType(&self) -> windows_core::Result; @@ -13918,14 +10894,8 @@ pub trait IIsdbLogoTransmissionDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbLogoTransmissionDescriptor {} impl IIsdbLogoTransmissionDescriptor_Vtbl { - pub const fn new() -> IIsdbLogoTransmissionDescriptor_Vtbl - where - Identity: IIsdbLogoTransmissionDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbLogoTransmissionDescriptor_Impl, - { + pub const fn new() -> IIsdbLogoTransmissionDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbLogoTransmissionDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -13935,10 +10905,7 @@ impl IIsdbLogoTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbLogoTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbLogoTransmissionDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -13948,10 +10915,7 @@ impl IIsdbLogoTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLogoTransmissionType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbLogoTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetLogoTransmissionType(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbLogoTransmissionDescriptor_Impl::GetLogoTransmissionType(this) { Ok(ok__) => { @@ -13961,10 +10925,7 @@ impl IIsdbLogoTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLogoId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbLogoTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetLogoId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbLogoTransmissionDescriptor_Impl::GetLogoId(this) { Ok(ok__) => { @@ -13974,10 +10935,7 @@ impl IIsdbLogoTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLogoVersion(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbLogoTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetLogoVersion(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbLogoTransmissionDescriptor_Impl::GetLogoVersion(this) { Ok(ok__) => { @@ -13987,10 +10945,7 @@ impl IIsdbLogoTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDownloadDataId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbLogoTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetDownloadDataId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbLogoTransmissionDescriptor_Impl::GetDownloadDataId(this) { Ok(ok__) => { @@ -14000,10 +10955,7 @@ impl IIsdbLogoTransmissionDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLogoCharW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrchar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIsdbLogoTransmissionDescriptor_Impl, - { + unsafe extern "system" fn GetLogoCharW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrchar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbLogoTransmissionDescriptor_Impl::GetLogoCharW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -14028,7 +10980,7 @@ impl IIsdbLogoTransmissionDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbSIParameterDescriptor_Impl: Sized { +pub trait IIsdbSIParameterDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetParameterVersion(&self) -> windows_core::Result; @@ -14040,14 +10992,8 @@ pub trait IIsdbSIParameterDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbSIParameterDescriptor {} impl IIsdbSIParameterDescriptor_Vtbl { - pub const fn new() -> IIsdbSIParameterDescriptor_Vtbl - where - Identity: IIsdbSIParameterDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSIParameterDescriptor_Impl, - { + pub const fn new() -> IIsdbSIParameterDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSIParameterDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -14057,10 +11003,7 @@ impl IIsdbSIParameterDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSIParameterDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSIParameterDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -14070,10 +11013,7 @@ impl IIsdbSIParameterDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParameterVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSIParameterDescriptor_Impl, - { + unsafe extern "system" fn GetParameterVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSIParameterDescriptor_Impl::GetParameterVersion(this) { Ok(ok__) => { @@ -14083,10 +11023,7 @@ impl IIsdbSIParameterDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUpdateTime(this: *mut core::ffi::c_void, pval: *mut MPEG_DATE) -> windows_core::HRESULT - where - Identity: IIsdbSIParameterDescriptor_Impl, - { + unsafe extern "system" fn GetUpdateTime(this: *mut core::ffi::c_void, pval: *mut MPEG_DATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSIParameterDescriptor_Impl::GetUpdateTime(this) { Ok(ok__) => { @@ -14096,10 +11033,7 @@ impl IIsdbSIParameterDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordNumberOfTable(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSIParameterDescriptor_Impl, - { + unsafe extern "system" fn GetRecordNumberOfTable(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSIParameterDescriptor_Impl::GetRecordNumberOfTable(this) { Ok(ok__) => { @@ -14109,10 +11043,7 @@ impl IIsdbSIParameterDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableId(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSIParameterDescriptor_Impl, - { + unsafe extern "system" fn GetTableId(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSIParameterDescriptor_Impl::GetTableId(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -14122,10 +11053,7 @@ impl IIsdbSIParameterDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptionLength(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSIParameterDescriptor_Impl, - { + unsafe extern "system" fn GetTableDescriptionLength(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSIParameterDescriptor_Impl::GetTableDescriptionLength(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -14135,10 +11063,7 @@ impl IIsdbSIParameterDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptionBytes(this: *mut core::ffi::c_void, brecordindex: u8, pbbufferlength: *mut u8, pbbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSIParameterDescriptor_Impl, - { + unsafe extern "system" fn GetTableDescriptionBytes(this: *mut core::ffi::c_void, brecordindex: u8, pbbufferlength: *mut u8, pbbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbSIParameterDescriptor_Impl::GetTableDescriptionBytes(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&pbbufferlength), core::mem::transmute_copy(&pbbuffer)).into() } @@ -14158,7 +11083,7 @@ impl IIsdbSIParameterDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbSeriesDescriptor_Impl: Sized { +pub trait IIsdbSeriesDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetSeriesId(&self) -> windows_core::Result; @@ -14171,14 +11096,8 @@ pub trait IIsdbSeriesDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbSeriesDescriptor {} impl IIsdbSeriesDescriptor_Vtbl { - pub const fn new() -> IIsdbSeriesDescriptor_Vtbl - where - Identity: IIsdbSeriesDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSeriesDescriptor_Impl, - { + pub const fn new() -> IIsdbSeriesDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSeriesDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -14188,10 +11107,7 @@ impl IIsdbSeriesDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSeriesDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSeriesDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -14201,10 +11117,7 @@ impl IIsdbSeriesDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSeriesId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbSeriesDescriptor_Impl, - { + unsafe extern "system" fn GetSeriesId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSeriesDescriptor_Impl::GetSeriesId(this) { Ok(ok__) => { @@ -14214,10 +11127,7 @@ impl IIsdbSeriesDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRepeatLabel(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSeriesDescriptor_Impl, - { + unsafe extern "system" fn GetRepeatLabel(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSeriesDescriptor_Impl::GetRepeatLabel(this) { Ok(ok__) => { @@ -14227,10 +11137,7 @@ impl IIsdbSeriesDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProgramPattern(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbSeriesDescriptor_Impl, - { + unsafe extern "system" fn GetProgramPattern(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSeriesDescriptor_Impl::GetProgramPattern(this) { Ok(ok__) => { @@ -14240,17 +11147,11 @@ impl IIsdbSeriesDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpireDate(this: *mut core::ffi::c_void, pfvalid: *mut super::super::super::Foundation::BOOL, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT - where - Identity: IIsdbSeriesDescriptor_Impl, - { + unsafe extern "system" fn GetExpireDate(this: *mut core::ffi::c_void, pfvalid: *mut super::super::super::Foundation::BOOL, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbSeriesDescriptor_Impl::GetExpireDate(this, core::mem::transmute_copy(&pfvalid), core::mem::transmute_copy(&pmdtval)).into() } - unsafe extern "system" fn GetEpisodeNumber(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbSeriesDescriptor_Impl, - { + unsafe extern "system" fn GetEpisodeNumber(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSeriesDescriptor_Impl::GetEpisodeNumber(this) { Ok(ok__) => { @@ -14260,10 +11161,7 @@ impl IIsdbSeriesDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastEpisodeNumber(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbSeriesDescriptor_Impl, - { + unsafe extern "system" fn GetLastEpisodeNumber(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSeriesDescriptor_Impl::GetLastEpisodeNumber(this) { Ok(ok__) => { @@ -14273,10 +11171,7 @@ impl IIsdbSeriesDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSeriesNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIsdbSeriesDescriptor_Impl, - { + unsafe extern "system" fn GetSeriesNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSeriesDescriptor_Impl::GetSeriesNameW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -14314,14 +11209,8 @@ pub trait IIsdbSiParser2_Impl: Sized + IDvbSiParser2_Impl { } impl windows_core::RuntimeName for IIsdbSiParser2 {} impl IIsdbSiParser2_Vtbl { - pub const fn new() -> IIsdbSiParser2_Vtbl - where - Identity: IIsdbSiParser2_Impl, - { - unsafe extern "system" fn GetSDT(this: *mut core::ffi::c_void, tableid: u8, pwtransportstreamid: *const u16, ppsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIsdbSiParser2_Impl, - { + pub const fn new() -> IIsdbSiParser2_Vtbl { + unsafe extern "system" fn GetSDT(this: *mut core::ffi::c_void, tableid: u8, pwtransportstreamid: *const u16, ppsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSiParser2_Impl::GetSDT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&pwtransportstreamid)) { Ok(ok__) => { @@ -14331,10 +11220,7 @@ impl IIsdbSiParser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBIT(this: *mut core::ffi::c_void, tableid: u8, pworiginalnetworkid: *const u16, ppbit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIsdbSiParser2_Impl, - { + unsafe extern "system" fn GetBIT(this: *mut core::ffi::c_void, tableid: u8, pworiginalnetworkid: *const u16, ppbit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSiParser2_Impl::GetBIT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&pworiginalnetworkid)) { Ok(ok__) => { @@ -14344,10 +11230,7 @@ impl IIsdbSiParser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNBIT(this: *mut core::ffi::c_void, tableid: u8, pworiginalnetworkid: *const u16, ppnbit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIsdbSiParser2_Impl, - { + unsafe extern "system" fn GetNBIT(this: *mut core::ffi::c_void, tableid: u8, pworiginalnetworkid: *const u16, ppnbit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSiParser2_Impl::GetNBIT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&pworiginalnetworkid)) { Ok(ok__) => { @@ -14357,10 +11240,7 @@ impl IIsdbSiParser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLDT(this: *mut core::ffi::c_void, tableid: u8, pworiginalserviceid: *const u16, ppldt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIsdbSiParser2_Impl, - { + unsafe extern "system" fn GetLDT(this: *mut core::ffi::c_void, tableid: u8, pworiginalserviceid: *const u16, ppldt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSiParser2_Impl::GetLDT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&pworiginalserviceid)) { Ok(ok__) => { @@ -14370,10 +11250,7 @@ impl IIsdbSiParser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSDTT(this: *mut core::ffi::c_void, tableid: u8, pwtableidext: *const u16, ppsdtt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIsdbSiParser2_Impl, - { + unsafe extern "system" fn GetSDTT(this: *mut core::ffi::c_void, tableid: u8, pwtableidext: *const u16, ppsdtt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSiParser2_Impl::GetSDTT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&pwtableidext)) { Ok(ok__) => { @@ -14383,10 +11260,7 @@ impl IIsdbSiParser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCDT(this: *mut core::ffi::c_void, tableid: u8, bsectionnumber: u8, pwdownloaddataid: *const u16, ppcdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIsdbSiParser2_Impl, - { + unsafe extern "system" fn GetCDT(this: *mut core::ffi::c_void, tableid: u8, bsectionnumber: u8, pwdownloaddataid: *const u16, ppcdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSiParser2_Impl::GetCDT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&bsectionnumber), core::mem::transmute_copy(&pwdownloaddataid)) { Ok(ok__) => { @@ -14396,10 +11270,7 @@ impl IIsdbSiParser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEMM(this: *mut core::ffi::c_void, pid: u16, wtableidext: u16, ppemm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIsdbSiParser2_Impl, - { + unsafe extern "system" fn GetEMM(this: *mut core::ffi::c_void, pid: u16, wtableidext: u16, ppemm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbSiParser2_Impl::GetEMM(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&wtableidext)) { Ok(ok__) => { @@ -14424,7 +11295,7 @@ impl IIsdbSiParser2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IIsdbTSInformationDescriptor_Impl: Sized { +pub trait IIsdbTSInformationDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetRemoteControlKeyId(&self) -> windows_core::Result; @@ -14436,14 +11307,8 @@ pub trait IIsdbTSInformationDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbTSInformationDescriptor {} impl IIsdbTSInformationDescriptor_Vtbl { - pub const fn new() -> IIsdbTSInformationDescriptor_Vtbl - where - Identity: IIsdbTSInformationDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTSInformationDescriptor_Impl, - { + pub const fn new() -> IIsdbTSInformationDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTSInformationDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -14453,10 +11318,7 @@ impl IIsdbTSInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTSInformationDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTSInformationDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -14466,10 +11328,7 @@ impl IIsdbTSInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteControlKeyId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTSInformationDescriptor_Impl, - { + unsafe extern "system" fn GetRemoteControlKeyId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTSInformationDescriptor_Impl::GetRemoteControlKeyId(this) { Ok(ok__) => { @@ -14479,10 +11338,7 @@ impl IIsdbTSInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTSNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIsdbTSInformationDescriptor_Impl, - { + unsafe extern "system" fn GetTSNameW(this: *mut core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTSInformationDescriptor_Impl::GetTSNameW(this, core::mem::transmute_copy(&convmode)) { Ok(ok__) => { @@ -14492,10 +11348,7 @@ impl IIsdbTSInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTSInformationDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTSInformationDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -14505,10 +11358,7 @@ impl IIsdbTSInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTransmissionTypeInfo(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTSInformationDescriptor_Impl, - { + unsafe extern "system" fn GetRecordTransmissionTypeInfo(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTSInformationDescriptor_Impl::GetRecordTransmissionTypeInfo(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -14518,10 +11368,7 @@ impl IIsdbTSInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordNumberOfServices(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTSInformationDescriptor_Impl, - { + unsafe extern "system" fn GetRecordNumberOfServices(this: *mut core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTSInformationDescriptor_Impl::GetRecordNumberOfServices(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -14531,10 +11378,7 @@ impl IIsdbTSInformationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceIdByIndex(this: *mut core::ffi::c_void, brecordindex: u8, bserviceindex: u8, pdwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbTSInformationDescriptor_Impl, - { + unsafe extern "system" fn GetRecordServiceIdByIndex(this: *mut core::ffi::c_void, brecordindex: u8, bserviceindex: u8, pdwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTSInformationDescriptor_Impl::GetRecordServiceIdByIndex(this, core::mem::transmute_copy(&brecordindex), core::mem::transmute_copy(&bserviceindex)) { Ok(ok__) => { @@ -14560,7 +11404,7 @@ impl IIsdbTSInformationDescriptor_Vtbl { iid == &::IID } } -pub trait IIsdbTerrestrialDeliverySystemDescriptor_Impl: Sized { +pub trait IIsdbTerrestrialDeliverySystemDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetAreaCode(&self) -> windows_core::Result; @@ -14571,14 +11415,8 @@ pub trait IIsdbTerrestrialDeliverySystemDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IIsdbTerrestrialDeliverySystemDescriptor {} impl IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { - pub const fn new() -> IIsdbTerrestrialDeliverySystemDescriptor_Vtbl - where - Identity: IIsdbTerrestrialDeliverySystemDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTerrestrialDeliverySystemDescriptor_Impl, - { + pub const fn new() -> IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTerrestrialDeliverySystemDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -14588,10 +11426,7 @@ impl IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTerrestrialDeliverySystemDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -14601,10 +11436,7 @@ impl IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAreaCode(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IIsdbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetAreaCode(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTerrestrialDeliverySystemDescriptor_Impl::GetAreaCode(this) { Ok(ok__) => { @@ -14614,10 +11446,7 @@ impl IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGuardInterval(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetGuardInterval(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTerrestrialDeliverySystemDescriptor_Impl::GetGuardInterval(this) { Ok(ok__) => { @@ -14627,10 +11456,7 @@ impl IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransmissionMode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetTransmissionMode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTerrestrialDeliverySystemDescriptor_Impl::GetTransmissionMode(this) { Ok(ok__) => { @@ -14640,10 +11466,7 @@ impl IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IIsdbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTerrestrialDeliverySystemDescriptor_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -14653,10 +11476,7 @@ impl IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordFrequency(this: *mut core::ffi::c_void, brecordindex: u8, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IIsdbTerrestrialDeliverySystemDescriptor_Impl, - { + unsafe extern "system" fn GetRecordFrequency(this: *mut core::ffi::c_void, brecordindex: u8, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbTerrestrialDeliverySystemDescriptor_Impl::GetRecordFrequency(this, core::mem::transmute_copy(&brecordindex)) { Ok(ok__) => { @@ -14690,14 +11510,8 @@ pub trait ILanguageComponentType_Impl: Sized + IComponentType_Impl { impl windows_core::RuntimeName for ILanguageComponentType {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl ILanguageComponentType_Vtbl { - pub const fn new() -> ILanguageComponentType_Vtbl - where - Identity: ILanguageComponentType_Impl, - { - unsafe extern "system" fn LangID(this: *mut core::ffi::c_void, langid: *mut i32) -> windows_core::HRESULT - where - Identity: ILanguageComponentType_Impl, - { + pub const fn new() -> ILanguageComponentType_Vtbl { + unsafe extern "system" fn LangID(this: *mut core::ffi::c_void, langid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILanguageComponentType_Impl::LangID(this) { Ok(ok__) => { @@ -14707,10 +11521,7 @@ impl ILanguageComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLangID(this: *mut core::ffi::c_void, langid: i32) -> windows_core::HRESULT - where - Identity: ILanguageComponentType_Impl, - { + unsafe extern "system" fn SetLangID(this: *mut core::ffi::c_void, langid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILanguageComponentType_Impl::SetLangID(this, core::mem::transmute_copy(&langid)).into() } @@ -14742,14 +11553,8 @@ pub trait ILocator_Impl: Sized + super::super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for ILocator {} #[cfg(feature = "Win32_System_Com")] impl ILocator_Vtbl { - pub const fn new() -> ILocator_Vtbl - where - Identity: ILocator_Impl, - { - unsafe extern "system" fn CarrierFrequency(this: *mut core::ffi::c_void, frequency: *mut i32) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + pub const fn new() -> ILocator_Vtbl { + unsafe extern "system" fn CarrierFrequency(this: *mut core::ffi::c_void, frequency: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocator_Impl::CarrierFrequency(this) { Ok(ok__) => { @@ -14759,17 +11564,11 @@ impl ILocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCarrierFrequency(this: *mut core::ffi::c_void, frequency: i32) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn SetCarrierFrequency(this: *mut core::ffi::c_void, frequency: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocator_Impl::SetCarrierFrequency(this, core::mem::transmute_copy(&frequency)).into() } - unsafe extern "system" fn InnerFEC(this: *mut core::ffi::c_void, fec: *mut super::FECMethod) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn InnerFEC(this: *mut core::ffi::c_void, fec: *mut super::FECMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocator_Impl::InnerFEC(this) { Ok(ok__) => { @@ -14779,17 +11578,11 @@ impl ILocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInnerFEC(this: *mut core::ffi::c_void, fec: super::FECMethod) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn SetInnerFEC(this: *mut core::ffi::c_void, fec: super::FECMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocator_Impl::SetInnerFEC(this, core::mem::transmute_copy(&fec)).into() } - unsafe extern "system" fn InnerFECRate(this: *mut core::ffi::c_void, fec: *mut super::BinaryConvolutionCodeRate) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn InnerFECRate(this: *mut core::ffi::c_void, fec: *mut super::BinaryConvolutionCodeRate) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocator_Impl::InnerFECRate(this) { Ok(ok__) => { @@ -14799,17 +11592,11 @@ impl ILocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInnerFECRate(this: *mut core::ffi::c_void, fec: super::BinaryConvolutionCodeRate) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn SetInnerFECRate(this: *mut core::ffi::c_void, fec: super::BinaryConvolutionCodeRate) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocator_Impl::SetInnerFECRate(this, core::mem::transmute_copy(&fec)).into() } - unsafe extern "system" fn OuterFEC(this: *mut core::ffi::c_void, fec: *mut super::FECMethod) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn OuterFEC(this: *mut core::ffi::c_void, fec: *mut super::FECMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocator_Impl::OuterFEC(this) { Ok(ok__) => { @@ -14819,17 +11606,11 @@ impl ILocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOuterFEC(this: *mut core::ffi::c_void, fec: super::FECMethod) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn SetOuterFEC(this: *mut core::ffi::c_void, fec: super::FECMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocator_Impl::SetOuterFEC(this, core::mem::transmute_copy(&fec)).into() } - unsafe extern "system" fn OuterFECRate(this: *mut core::ffi::c_void, fec: *mut super::BinaryConvolutionCodeRate) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn OuterFECRate(this: *mut core::ffi::c_void, fec: *mut super::BinaryConvolutionCodeRate) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocator_Impl::OuterFECRate(this) { Ok(ok__) => { @@ -14839,17 +11620,11 @@ impl ILocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOuterFECRate(this: *mut core::ffi::c_void, fec: super::BinaryConvolutionCodeRate) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn SetOuterFECRate(this: *mut core::ffi::c_void, fec: super::BinaryConvolutionCodeRate) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocator_Impl::SetOuterFECRate(this, core::mem::transmute_copy(&fec)).into() } - unsafe extern "system" fn Modulation(this: *mut core::ffi::c_void, modulation: *mut super::ModulationType) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn Modulation(this: *mut core::ffi::c_void, modulation: *mut super::ModulationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocator_Impl::Modulation(this) { Ok(ok__) => { @@ -14859,17 +11634,11 @@ impl ILocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetModulation(this: *mut core::ffi::c_void, modulation: super::ModulationType) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn SetModulation(this: *mut core::ffi::c_void, modulation: super::ModulationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocator_Impl::SetModulation(this, core::mem::transmute_copy(&modulation)).into() } - unsafe extern "system" fn SymbolRate(this: *mut core::ffi::c_void, rate: *mut i32) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn SymbolRate(this: *mut core::ffi::c_void, rate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocator_Impl::SymbolRate(this) { Ok(ok__) => { @@ -14879,17 +11648,11 @@ impl ILocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSymbolRate(this: *mut core::ffi::c_void, rate: i32) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn SetSymbolRate(this: *mut core::ffi::c_void, rate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocator_Impl::SetSymbolRate(this, core::mem::transmute_copy(&rate)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newlocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILocator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newlocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocator_Impl::Clone(this) { Ok(ok__) => { @@ -14935,14 +11698,8 @@ pub trait IMPEG2Component_Impl: Sized + IComponent_Impl { impl windows_core::RuntimeName for IMPEG2Component {} #[cfg(feature = "Win32_System_Com")] impl IMPEG2Component_Vtbl { - pub const fn new() -> IMPEG2Component_Vtbl - where - Identity: IMPEG2Component_Impl, - { - unsafe extern "system" fn PID(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT - where - Identity: IMPEG2Component_Impl, - { + pub const fn new() -> IMPEG2Component_Vtbl { + unsafe extern "system" fn PID(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMPEG2Component_Impl::PID(this) { Ok(ok__) => { @@ -14952,17 +11709,11 @@ impl IMPEG2Component_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPID(this: *mut core::ffi::c_void, pid: i32) -> windows_core::HRESULT - where - Identity: IMPEG2Component_Impl, - { + unsafe extern "system" fn SetPID(this: *mut core::ffi::c_void, pid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2Component_Impl::SetPID(this, core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn PCRPID(this: *mut core::ffi::c_void, pcrpid: *mut i32) -> windows_core::HRESULT - where - Identity: IMPEG2Component_Impl, - { + unsafe extern "system" fn PCRPID(this: *mut core::ffi::c_void, pcrpid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMPEG2Component_Impl::PCRPID(this) { Ok(ok__) => { @@ -14972,17 +11723,11 @@ impl IMPEG2Component_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPCRPID(this: *mut core::ffi::c_void, pcrpid: i32) -> windows_core::HRESULT - where - Identity: IMPEG2Component_Impl, - { + unsafe extern "system" fn SetPCRPID(this: *mut core::ffi::c_void, pcrpid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2Component_Impl::SetPCRPID(this, core::mem::transmute_copy(&pcrpid)).into() } - unsafe extern "system" fn ProgramNumber(this: *mut core::ffi::c_void, programnumber: *mut i32) -> windows_core::HRESULT - where - Identity: IMPEG2Component_Impl, - { + unsafe extern "system" fn ProgramNumber(this: *mut core::ffi::c_void, programnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMPEG2Component_Impl::ProgramNumber(this) { Ok(ok__) => { @@ -14992,10 +11737,7 @@ impl IMPEG2Component_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProgramNumber(this: *mut core::ffi::c_void, programnumber: i32) -> windows_core::HRESULT - where - Identity: IMPEG2Component_Impl, - { + unsafe extern "system" fn SetProgramNumber(this: *mut core::ffi::c_void, programnumber: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2Component_Impl::SetProgramNumber(this, core::mem::transmute_copy(&programnumber)).into() } @@ -15022,14 +11764,8 @@ pub trait IMPEG2ComponentType_Impl: Sized + ILanguageComponentType_Impl { impl windows_core::RuntimeName for IMPEG2ComponentType {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl IMPEG2ComponentType_Vtbl { - pub const fn new() -> IMPEG2ComponentType_Vtbl - where - Identity: IMPEG2ComponentType_Impl, - { - unsafe extern "system" fn StreamType(this: *mut core::ffi::c_void, mp2streamtype: *mut super::MPEG2StreamType) -> windows_core::HRESULT - where - Identity: IMPEG2ComponentType_Impl, - { + pub const fn new() -> IMPEG2ComponentType_Vtbl { + unsafe extern "system" fn StreamType(this: *mut core::ffi::c_void, mp2streamtype: *mut super::MPEG2StreamType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMPEG2ComponentType_Impl::StreamType(this) { Ok(ok__) => { @@ -15039,10 +11775,7 @@ impl IMPEG2ComponentType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamType(this: *mut core::ffi::c_void, mp2streamtype: super::MPEG2StreamType) -> windows_core::HRESULT - where - Identity: IMPEG2ComponentType_Impl, - { + unsafe extern "system" fn SetStreamType(this: *mut core::ffi::c_void, mp2streamtype: super::MPEG2StreamType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2ComponentType_Impl::SetStreamType(this, core::mem::transmute_copy(&mp2streamtype)).into() } @@ -15067,14 +11800,8 @@ pub trait IMPEG2TuneRequest_Impl: Sized + ITuneRequest_Impl { impl windows_core::RuntimeName for IMPEG2TuneRequest {} #[cfg(feature = "Win32_System_Com")] impl IMPEG2TuneRequest_Vtbl { - pub const fn new() -> IMPEG2TuneRequest_Vtbl - where - Identity: IMPEG2TuneRequest_Impl, - { - unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, tsid: *mut i32) -> windows_core::HRESULT - where - Identity: IMPEG2TuneRequest_Impl, - { + pub const fn new() -> IMPEG2TuneRequest_Vtbl { + unsafe extern "system" fn TSID(this: *mut core::ffi::c_void, tsid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMPEG2TuneRequest_Impl::TSID(this) { Ok(ok__) => { @@ -15084,17 +11811,11 @@ impl IMPEG2TuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, tsid: i32) -> windows_core::HRESULT - where - Identity: IMPEG2TuneRequest_Impl, - { + unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, tsid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2TuneRequest_Impl::SetTSID(this, core::mem::transmute_copy(&tsid)).into() } - unsafe extern "system" fn ProgNo(this: *mut core::ffi::c_void, progno: *mut i32) -> windows_core::HRESULT - where - Identity: IMPEG2TuneRequest_Impl, - { + unsafe extern "system" fn ProgNo(this: *mut core::ffi::c_void, progno: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMPEG2TuneRequest_Impl::ProgNo(this) { Ok(ok__) => { @@ -15104,10 +11825,7 @@ impl IMPEG2TuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProgNo(this: *mut core::ffi::c_void, progno: i32) -> windows_core::HRESULT - where - Identity: IMPEG2TuneRequest_Impl, - { + unsafe extern "system" fn SetProgNo(this: *mut core::ffi::c_void, progno: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2TuneRequest_Impl::SetProgNo(this, core::mem::transmute_copy(&progno)).into() } @@ -15131,14 +11849,8 @@ pub trait IMPEG2TuneRequestFactory_Impl: Sized + super::super::super::System::Co impl windows_core::RuntimeName for IMPEG2TuneRequestFactory {} #[cfg(feature = "Win32_System_Com")] impl IMPEG2TuneRequestFactory_Vtbl { - pub const fn new() -> IMPEG2TuneRequestFactory_Vtbl - where - Identity: IMPEG2TuneRequestFactory_Impl, - { - unsafe extern "system" fn CreateTuneRequest(this: *mut core::ffi::c_void, tuningspace: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMPEG2TuneRequestFactory_Impl, - { + pub const fn new() -> IMPEG2TuneRequestFactory_Vtbl { + unsafe extern "system" fn CreateTuneRequest(this: *mut core::ffi::c_void, tuningspace: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMPEG2TuneRequestFactory_Impl::CreateTuneRequest(this, windows_core::from_raw_borrowed(&tuningspace)) { Ok(ok__) => { @@ -15154,20 +11866,17 @@ impl IMPEG2TuneRequestFactory_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMPEG2TuneRequestSupport_Impl: Sized {} +pub trait IMPEG2TuneRequestSupport_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IMPEG2TuneRequestSupport {} impl IMPEG2TuneRequestSupport_Vtbl { - pub const fn new() -> IMPEG2TuneRequestSupport_Vtbl - where - Identity: IMPEG2TuneRequestSupport_Impl, - { + pub const fn new() -> IMPEG2TuneRequestSupport_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IMPEG2_TIF_CONTROL_Impl: Sized { +pub trait IMPEG2_TIF_CONTROL_Impl: Sized + windows_core::IUnknownImpl { fn RegisterTIF(&self, punktif: Option<&windows_core::IUnknown>, ppvregistrationcontext: *mut u32) -> windows_core::Result<()>; fn UnregisterTIF(&self, pvregistrationcontext: u32) -> windows_core::Result<()>; fn AddPIDs(&self, ulcpids: u32, pulpids: *const u32) -> windows_core::Result<()>; @@ -15177,42 +11886,24 @@ pub trait IMPEG2_TIF_CONTROL_Impl: Sized { } impl windows_core::RuntimeName for IMPEG2_TIF_CONTROL {} impl IMPEG2_TIF_CONTROL_Vtbl { - pub const fn new() -> IMPEG2_TIF_CONTROL_Vtbl - where - Identity: IMPEG2_TIF_CONTROL_Impl, - { - unsafe extern "system" fn RegisterTIF(this: *mut core::ffi::c_void, punktif: *mut core::ffi::c_void, ppvregistrationcontext: *mut u32) -> windows_core::HRESULT - where - Identity: IMPEG2_TIF_CONTROL_Impl, - { + pub const fn new() -> IMPEG2_TIF_CONTROL_Vtbl { + unsafe extern "system" fn RegisterTIF(this: *mut core::ffi::c_void, punktif: *mut core::ffi::c_void, ppvregistrationcontext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2_TIF_CONTROL_Impl::RegisterTIF(this, windows_core::from_raw_borrowed(&punktif), core::mem::transmute_copy(&ppvregistrationcontext)).into() } - unsafe extern "system" fn UnregisterTIF(this: *mut core::ffi::c_void, pvregistrationcontext: u32) -> windows_core::HRESULT - where - Identity: IMPEG2_TIF_CONTROL_Impl, - { + unsafe extern "system" fn UnregisterTIF(this: *mut core::ffi::c_void, pvregistrationcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2_TIF_CONTROL_Impl::UnregisterTIF(this, core::mem::transmute_copy(&pvregistrationcontext)).into() } - unsafe extern "system" fn AddPIDs(this: *mut core::ffi::c_void, ulcpids: u32, pulpids: *const u32) -> windows_core::HRESULT - where - Identity: IMPEG2_TIF_CONTROL_Impl, - { + unsafe extern "system" fn AddPIDs(this: *mut core::ffi::c_void, ulcpids: u32, pulpids: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2_TIF_CONTROL_Impl::AddPIDs(this, core::mem::transmute_copy(&ulcpids), core::mem::transmute_copy(&pulpids)).into() } - unsafe extern "system" fn DeletePIDs(this: *mut core::ffi::c_void, ulcpids: u32, pulpids: *const u32) -> windows_core::HRESULT - where - Identity: IMPEG2_TIF_CONTROL_Impl, - { + unsafe extern "system" fn DeletePIDs(this: *mut core::ffi::c_void, ulcpids: u32, pulpids: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2_TIF_CONTROL_Impl::DeletePIDs(this, core::mem::transmute_copy(&ulcpids), core::mem::transmute_copy(&pulpids)).into() } - unsafe extern "system" fn GetPIDCount(this: *mut core::ffi::c_void, pulcpids: *mut u32) -> windows_core::HRESULT - where - Identity: IMPEG2_TIF_CONTROL_Impl, - { + unsafe extern "system" fn GetPIDCount(this: *mut core::ffi::c_void, pulcpids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMPEG2_TIF_CONTROL_Impl::GetPIDCount(this) { Ok(ok__) => { @@ -15222,10 +11913,7 @@ impl IMPEG2_TIF_CONTROL_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPIDs(this: *mut core::ffi::c_void, pulcpids: *mut u32, pulpids: *mut u32) -> windows_core::HRESULT - where - Identity: IMPEG2_TIF_CONTROL_Impl, - { + unsafe extern "system" fn GetPIDs(this: *mut core::ffi::c_void, pulcpids: *mut u32, pulpids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2_TIF_CONTROL_Impl::GetPIDs(this, core::mem::transmute_copy(&pulcpids), core::mem::transmute_copy(&pulpids)).into() } @@ -15252,14 +11940,8 @@ pub trait IMSEventBinder_Impl: Sized + super::super::super::System::Com::IDispat impl windows_core::RuntimeName for IMSEventBinder {} #[cfg(feature = "Win32_System_Com")] impl IMSEventBinder_Vtbl { - pub const fn new() -> IMSEventBinder_Vtbl - where - Identity: IMSEventBinder_Impl, - { - unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, peventobject: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, eventhandler: core::mem::MaybeUninit, cancelid: *mut i32) -> windows_core::HRESULT - where - Identity: IMSEventBinder_Impl, - { + pub const fn new() -> IMSEventBinder_Vtbl { + unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, peventobject: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, eventhandler: core::mem::MaybeUninit, cancelid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSEventBinder_Impl::Bind(this, windows_core::from_raw_borrowed(&peventobject), core::mem::transmute(&eventname), core::mem::transmute(&eventhandler)) { Ok(ok__) => { @@ -15269,10 +11951,7 @@ impl IMSEventBinder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unbind(this: *mut core::ffi::c_void, cancelcookie: u32) -> windows_core::HRESULT - where - Identity: IMSEventBinder_Impl, - { + unsafe extern "system" fn Unbind(this: *mut core::ffi::c_void, cancelcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSEventBinder_Impl::Unbind(this, core::mem::transmute_copy(&cancelcookie)).into() } @@ -15302,14 +11981,8 @@ pub trait IMSVidAnalogTuner_Impl: Sized + IMSVidTuner_Impl { impl windows_core::RuntimeName for IMSVidAnalogTuner {} #[cfg(feature = "Win32_System_Com")] impl IMSVidAnalogTuner_Vtbl { - pub const fn new() -> IMSVidAnalogTuner_Vtbl - where - Identity: IMSVidAnalogTuner_Impl, - { - unsafe extern "system" fn Channel(this: *mut core::ffi::c_void, channel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner_Impl, - { + pub const fn new() -> IMSVidAnalogTuner_Vtbl { + unsafe extern "system" fn Channel(this: *mut core::ffi::c_void, channel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAnalogTuner_Impl::Channel(this) { Ok(ok__) => { @@ -15319,17 +11992,11 @@ impl IMSVidAnalogTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannel(this: *mut core::ffi::c_void, channel: i32) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner_Impl, - { + unsafe extern "system" fn SetChannel(this: *mut core::ffi::c_void, channel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAnalogTuner_Impl::SetChannel(this, core::mem::transmute_copy(&channel)).into() } - unsafe extern "system" fn VideoFrequency(this: *mut core::ffi::c_void, lcc: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner_Impl, - { + unsafe extern "system" fn VideoFrequency(this: *mut core::ffi::c_void, lcc: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAnalogTuner_Impl::VideoFrequency(this) { Ok(ok__) => { @@ -15339,10 +12006,7 @@ impl IMSVidAnalogTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioFrequency(this: *mut core::ffi::c_void, lcc: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner_Impl, - { + unsafe extern "system" fn AudioFrequency(this: *mut core::ffi::c_void, lcc: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAnalogTuner_Impl::AudioFrequency(this) { Ok(ok__) => { @@ -15352,10 +12016,7 @@ impl IMSVidAnalogTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, lcc: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner_Impl, - { + unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, lcc: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAnalogTuner_Impl::CountryCode(this) { Ok(ok__) => { @@ -15365,17 +12026,11 @@ impl IMSVidAnalogTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, lcc: i32) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner_Impl, - { + unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, lcc: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAnalogTuner_Impl::SetCountryCode(this, core::mem::transmute_copy(&lcc)).into() } - unsafe extern "system" fn SAP(this: *mut core::ffi::c_void, pfsapon: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner_Impl, - { + unsafe extern "system" fn SAP(this: *mut core::ffi::c_void, pfsapon: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAnalogTuner_Impl::SAP(this) { Ok(ok__) => { @@ -15385,17 +12040,11 @@ impl IMSVidAnalogTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSAP(this: *mut core::ffi::c_void, fsapon: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner_Impl, - { + unsafe extern "system" fn SetSAP(this: *mut core::ffi::c_void, fsapon: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAnalogTuner_Impl::SetSAP(this, core::mem::transmute_copy(&fsapon)).into() } - unsafe extern "system" fn ChannelAvailable(this: *mut core::ffi::c_void, nchannel: i32, signalstrength: *mut i32, fsignalpresent: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner_Impl, - { + unsafe extern "system" fn ChannelAvailable(this: *mut core::ffi::c_void, nchannel: i32, signalstrength: *mut i32, fsignalpresent: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAnalogTuner_Impl::ChannelAvailable(this, core::mem::transmute_copy(&nchannel), core::mem::transmute_copy(&signalstrength)) { Ok(ok__) => { @@ -15432,14 +12081,8 @@ pub trait IMSVidAnalogTuner2_Impl: Sized + IMSVidAnalogTuner_Impl { impl windows_core::RuntimeName for IMSVidAnalogTuner2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidAnalogTuner2_Vtbl { - pub const fn new() -> IMSVidAnalogTuner2_Vtbl - where - Identity: IMSVidAnalogTuner2_Impl, - { - unsafe extern "system" fn TVFormats(this: *mut core::ffi::c_void, formats: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner2_Impl, - { + pub const fn new() -> IMSVidAnalogTuner2_Vtbl { + unsafe extern "system" fn TVFormats(this: *mut core::ffi::c_void, formats: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAnalogTuner2_Impl::TVFormats(this) { Ok(ok__) => { @@ -15449,10 +12092,7 @@ impl IMSVidAnalogTuner2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TunerModes(this: *mut core::ffi::c_void, modes: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner2_Impl, - { + unsafe extern "system" fn TunerModes(this: *mut core::ffi::c_void, modes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAnalogTuner2_Impl::TunerModes(this) { Ok(ok__) => { @@ -15462,10 +12102,7 @@ impl IMSVidAnalogTuner2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumAuxInputs(this: *mut core::ffi::c_void, inputs: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidAnalogTuner2_Impl, - { + unsafe extern "system" fn NumAuxInputs(this: *mut core::ffi::c_void, inputs: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAnalogTuner2_Impl::NumAuxInputs(this) { Ok(ok__) => { @@ -15492,10 +12129,7 @@ pub trait IMSVidAnalogTunerEvent_Impl: Sized + IMSVidTunerEvent_Impl {} impl windows_core::RuntimeName for IMSVidAnalogTunerEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidAnalogTunerEvent_Vtbl { - pub const fn new() -> IMSVidAnalogTunerEvent_Vtbl - where - Identity: IMSVidAnalogTunerEvent_Impl, - { + pub const fn new() -> IMSVidAnalogTunerEvent_Vtbl { Self { base__: IMSVidTunerEvent_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -15513,21 +12147,12 @@ pub trait IMSVidAudioRenderer_Impl: Sized + IMSVidOutputDevice_Impl { impl windows_core::RuntimeName for IMSVidAudioRenderer {} #[cfg(feature = "Win32_System_Com")] impl IMSVidAudioRenderer_Vtbl { - pub const fn new() -> IMSVidAudioRenderer_Vtbl - where - Identity: IMSVidAudioRenderer_Impl, - { - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, lvol: i32) -> windows_core::HRESULT - where - Identity: IMSVidAudioRenderer_Impl, - { + pub const fn new() -> IMSVidAudioRenderer_Vtbl { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, lvol: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRenderer_Impl::SetVolume(this, core::mem::transmute_copy(&lvol)).into() } - unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, lvol: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidAudioRenderer_Impl, - { + unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, lvol: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAudioRenderer_Impl::Volume(this) { Ok(ok__) => { @@ -15537,17 +12162,11 @@ impl IMSVidAudioRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBalance(this: *mut core::ffi::c_void, lbal: i32) -> windows_core::HRESULT - where - Identity: IMSVidAudioRenderer_Impl, - { + unsafe extern "system" fn SetBalance(this: *mut core::ffi::c_void, lbal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRenderer_Impl::SetBalance(this, core::mem::transmute_copy(&lbal)).into() } - unsafe extern "system" fn Balance(this: *mut core::ffi::c_void, lbal: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidAudioRenderer_Impl, - { + unsafe extern "system" fn Balance(this: *mut core::ffi::c_void, lbal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAudioRenderer_Impl::Balance(this) { Ok(ok__) => { @@ -15581,14 +12200,8 @@ pub trait IMSVidAudioRendererDevices_Impl: Sized + super::super::super::System:: impl windows_core::RuntimeName for IMSVidAudioRendererDevices {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidAudioRendererDevices_Vtbl { - pub const fn new() -> IMSVidAudioRendererDevices_Vtbl - where - Identity: IMSVidAudioRendererDevices_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererDevices_Impl, - { + pub const fn new() -> IMSVidAudioRendererDevices_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAudioRendererDevices_Impl::Count(this) { Ok(ok__) => { @@ -15598,10 +12211,7 @@ impl IMSVidAudioRendererDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererDevices_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAudioRendererDevices_Impl::_NewEnum(this) { Ok(ok__) => { @@ -15611,10 +12221,7 @@ impl IMSVidAudioRendererDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit, pdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererDevices_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit, pdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidAudioRendererDevices_Impl::get_Item(this, core::mem::transmute(&v)) { Ok(ok__) => { @@ -15624,17 +12231,11 @@ impl IMSVidAudioRendererDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pdb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererDevices_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pdb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRendererDevices_Impl::Add(this, windows_core::from_raw_borrowed(&pdb)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererDevices_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRendererDevices_Impl::Remove(this, core::mem::transmute(&v)).into() } @@ -15657,10 +12258,7 @@ pub trait IMSVidAudioRendererEvent_Impl: Sized + IMSVidOutputDeviceEvent_Impl {} impl windows_core::RuntimeName for IMSVidAudioRendererEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidAudioRendererEvent_Vtbl { - pub const fn new() -> IMSVidAudioRendererEvent_Vtbl - where - Identity: IMSVidAudioRendererEvent_Impl, - { + pub const fn new() -> IMSVidAudioRendererEvent_Vtbl { Self { base__: IMSVidOutputDeviceEvent_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -15682,63 +12280,36 @@ pub trait IMSVidAudioRendererEvent2_Impl: Sized + IMSVidAudioRendererEvent_Impl impl windows_core::RuntimeName for IMSVidAudioRendererEvent2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidAudioRendererEvent2_Vtbl { - pub const fn new() -> IMSVidAudioRendererEvent2_Vtbl - where - Identity: IMSVidAudioRendererEvent2_Impl, - { - unsafe extern "system" fn AVDecAudioDualMono(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererEvent2_Impl, - { + pub const fn new() -> IMSVidAudioRendererEvent2_Vtbl { + unsafe extern "system" fn AVDecAudioDualMono(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRendererEvent2_Impl::AVDecAudioDualMono(this).into() } - unsafe extern "system" fn AVAudioSampleRate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererEvent2_Impl, - { + unsafe extern "system" fn AVAudioSampleRate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRendererEvent2_Impl::AVAudioSampleRate(this).into() } - unsafe extern "system" fn AVAudioChannelConfig(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererEvent2_Impl, - { + unsafe extern "system" fn AVAudioChannelConfig(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRendererEvent2_Impl::AVAudioChannelConfig(this).into() } - unsafe extern "system" fn AVAudioChannelCount(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererEvent2_Impl, - { + unsafe extern "system" fn AVAudioChannelCount(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRendererEvent2_Impl::AVAudioChannelCount(this).into() } - unsafe extern "system" fn AVDecCommonMeanBitRate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererEvent2_Impl, - { + unsafe extern "system" fn AVDecCommonMeanBitRate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRendererEvent2_Impl::AVDecCommonMeanBitRate(this).into() } - unsafe extern "system" fn AVDDSurroundMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererEvent2_Impl, - { + unsafe extern "system" fn AVDDSurroundMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRendererEvent2_Impl::AVDDSurroundMode(this).into() } - unsafe extern "system" fn AVDecCommonInputFormat(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererEvent2_Impl, - { + unsafe extern "system" fn AVDecCommonInputFormat(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRendererEvent2_Impl::AVDecCommonInputFormat(this).into() } - unsafe extern "system" fn AVDecCommonOutputFormat(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidAudioRendererEvent2_Impl, - { + unsafe extern "system" fn AVDecCommonOutputFormat(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidAudioRendererEvent2_Impl::AVDecCommonOutputFormat(this).into() } @@ -15767,14 +12338,8 @@ pub trait IMSVidClosedCaptioning_Impl: Sized + IMSVidFeature_Impl { impl windows_core::RuntimeName for IMSVidClosedCaptioning {} #[cfg(feature = "Win32_System_Com")] impl IMSVidClosedCaptioning_Vtbl { - pub const fn new() -> IMSVidClosedCaptioning_Vtbl - where - Identity: IMSVidClosedCaptioning_Impl, - { - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, on: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidClosedCaptioning_Impl, - { + pub const fn new() -> IMSVidClosedCaptioning_Vtbl { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, on: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidClosedCaptioning_Impl::Enable(this) { Ok(ok__) => { @@ -15784,10 +12349,7 @@ impl IMSVidClosedCaptioning_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnable(this: *mut core::ffi::c_void, on: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidClosedCaptioning_Impl, - { + unsafe extern "system" fn SetEnable(this: *mut core::ffi::c_void, on: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidClosedCaptioning_Impl::SetEnable(this, core::mem::transmute_copy(&on)).into() } @@ -15806,14 +12368,8 @@ pub trait IMSVidClosedCaptioning2_Impl: Sized + IMSVidClosedCaptioning_Impl { impl windows_core::RuntimeName for IMSVidClosedCaptioning2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidClosedCaptioning2_Vtbl { - pub const fn new() -> IMSVidClosedCaptioning2_Vtbl - where - Identity: IMSVidClosedCaptioning2_Impl, - { - unsafe extern "system" fn Service(this: *mut core::ffi::c_void, on: *mut MSVidCCService) -> windows_core::HRESULT - where - Identity: IMSVidClosedCaptioning2_Impl, - { + pub const fn new() -> IMSVidClosedCaptioning2_Vtbl { + unsafe extern "system" fn Service(this: *mut core::ffi::c_void, on: *mut MSVidCCService) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidClosedCaptioning2_Impl::Service(this) { Ok(ok__) => { @@ -15823,10 +12379,7 @@ impl IMSVidClosedCaptioning2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetService(this: *mut core::ffi::c_void, on: MSVidCCService) -> windows_core::HRESULT - where - Identity: IMSVidClosedCaptioning2_Impl, - { + unsafe extern "system" fn SetService(this: *mut core::ffi::c_void, on: MSVidCCService) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidClosedCaptioning2_Impl::SetService(this, core::mem::transmute_copy(&on)).into() } @@ -15844,14 +12397,8 @@ pub trait IMSVidClosedCaptioning3_Impl: Sized + IMSVidClosedCaptioning2_Impl { impl windows_core::RuntimeName for IMSVidClosedCaptioning3 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidClosedCaptioning3_Vtbl { - pub const fn new() -> IMSVidClosedCaptioning3_Vtbl - where - Identity: IMSVidClosedCaptioning3_Impl, - { - unsafe extern "system" fn TeleTextFilter(this: *mut core::ffi::c_void, punkttfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidClosedCaptioning3_Impl, - { + pub const fn new() -> IMSVidClosedCaptioning3_Vtbl { + unsafe extern "system" fn TeleTextFilter(this: *mut core::ffi::c_void, punkttfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidClosedCaptioning3_Impl::TeleTextFilter(this) { Ok(ok__) => { @@ -15877,21 +12424,12 @@ pub trait IMSVidCompositionSegment_Impl: Sized + IMSVidGraphSegment_Impl { impl windows_core::RuntimeName for IMSVidCompositionSegment {} #[cfg(feature = "Win32_System_Com")] impl IMSVidCompositionSegment_Vtbl { - pub const fn new() -> IMSVidCompositionSegment_Vtbl - where - Identity: IMSVidCompositionSegment_Impl, - { - unsafe extern "system" fn Compose(this: *mut core::ffi::c_void, upstream: *mut core::ffi::c_void, downstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCompositionSegment_Impl, - { + pub const fn new() -> IMSVidCompositionSegment_Vtbl { + unsafe extern "system" fn Compose(this: *mut core::ffi::c_void, upstream: *mut core::ffi::c_void, downstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCompositionSegment_Impl::Compose(this, windows_core::from_raw_borrowed(&upstream), windows_core::from_raw_borrowed(&downstream)).into() } - unsafe extern "system" fn Up(this: *mut core::ffi::c_void, upstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCompositionSegment_Impl, - { + unsafe extern "system" fn Up(this: *mut core::ffi::c_void, upstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCompositionSegment_Impl::Up(this) { Ok(ok__) => { @@ -15901,10 +12439,7 @@ impl IMSVidCompositionSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Down(this: *mut core::ffi::c_void, downstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCompositionSegment_Impl, - { + unsafe extern "system" fn Down(this: *mut core::ffi::c_void, downstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCompositionSegment_Impl::Down(this) { Ok(ok__) => { @@ -15975,14 +12510,8 @@ pub trait IMSVidCtl_Impl: Sized + super::super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IMSVidCtl {} #[cfg(feature = "Win32_System_Com")] impl IMSVidCtl_Vtbl { - pub const fn new() -> IMSVidCtl_Vtbl - where - Identity: IMSVidCtl_Impl, - { - unsafe extern "system" fn AutoSize(this: *mut core::ffi::c_void, pbool: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + pub const fn new() -> IMSVidCtl_Vtbl { + unsafe extern "system" fn AutoSize(this: *mut core::ffi::c_void, pbool: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::AutoSize(this) { Ok(ok__) => { @@ -15992,17 +12521,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoSize(this: *mut core::ffi::c_void, vbool: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetAutoSize(this: *mut core::ffi::c_void, vbool: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetAutoSize(this, core::mem::transmute_copy(&vbool)).into() } - unsafe extern "system" fn BackColor(this: *mut core::ffi::c_void, backcolor: *mut u32) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn BackColor(this: *mut core::ffi::c_void, backcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::BackColor(this) { Ok(ok__) => { @@ -16012,17 +12535,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, backcolor: u32) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, backcolor: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetBackColor(this, core::mem::transmute_copy(&backcolor)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pbool: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pbool: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::Enabled(this) { Ok(ok__) => { @@ -16032,17 +12549,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, vbool: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, vbool: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetEnabled(this, core::mem::transmute_copy(&vbool)).into() } - unsafe extern "system" fn TabStop(this: *mut core::ffi::c_void, pbool: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn TabStop(this: *mut core::ffi::c_void, pbool: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::TabStop(this) { Ok(ok__) => { @@ -16052,17 +12563,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTabStop(this: *mut core::ffi::c_void, vbool: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetTabStop(this: *mut core::ffi::c_void, vbool: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetTabStop(this, core::mem::transmute_copy(&vbool)).into() } - unsafe extern "system" fn Window(this: *mut core::ffi::c_void, phwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn Window(this: *mut core::ffi::c_void, phwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::Window(this) { Ok(ok__) => { @@ -16072,17 +12577,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::Refresh(this).into() } - unsafe extern "system" fn DisplaySize(this: *mut core::ffi::c_void, currentvalue: *mut DisplaySizeList) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn DisplaySize(this: *mut core::ffi::c_void, currentvalue: *mut DisplaySizeList) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::DisplaySize(this) { Ok(ok__) => { @@ -16092,17 +12591,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplaySize(this: *mut core::ffi::c_void, newvalue: DisplaySizeList) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetDisplaySize(this: *mut core::ffi::c_void, newvalue: DisplaySizeList) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetDisplaySize(this, core::mem::transmute_copy(&newvalue)).into() } - unsafe extern "system" fn MaintainAspectRatio(this: *mut core::ffi::c_void, currentvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn MaintainAspectRatio(this: *mut core::ffi::c_void, currentvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::MaintainAspectRatio(this) { Ok(ok__) => { @@ -16112,17 +12605,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaintainAspectRatio(this: *mut core::ffi::c_void, newvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetMaintainAspectRatio(this: *mut core::ffi::c_void, newvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetMaintainAspectRatio(this, core::mem::transmute_copy(&newvalue)).into() } - unsafe extern "system" fn ColorKey(this: *mut core::ffi::c_void, currentvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn ColorKey(this: *mut core::ffi::c_void, currentvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::ColorKey(this) { Ok(ok__) => { @@ -16132,17 +12619,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, newvalue: u32) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, newvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetColorKey(this, core::mem::transmute_copy(&newvalue)).into() } - unsafe extern "system" fn get_InputsAvailable(this: *mut core::ffi::c_void, categoryguid: core::mem::MaybeUninit, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn get_InputsAvailable(this: *mut core::ffi::c_void, categoryguid: core::mem::MaybeUninit, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::get_InputsAvailable(this, core::mem::transmute(&categoryguid)) { Ok(ok__) => { @@ -16152,10 +12633,7 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_OutputsAvailable(this: *mut core::ffi::c_void, categoryguid: core::mem::MaybeUninit, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn get_OutputsAvailable(this: *mut core::ffi::c_void, categoryguid: core::mem::MaybeUninit, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::get_OutputsAvailable(this, core::mem::transmute(&categoryguid)) { Ok(ok__) => { @@ -16165,10 +12643,7 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get__InputsAvailable(this: *mut core::ffi::c_void, categoryguid: *const windows_core::GUID, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn get__InputsAvailable(this: *mut core::ffi::c_void, categoryguid: *const windows_core::GUID, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::get__InputsAvailable(this, core::mem::transmute_copy(&categoryguid)) { Ok(ok__) => { @@ -16178,10 +12653,7 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get__OutputsAvailable(this: *mut core::ffi::c_void, categoryguid: *const windows_core::GUID, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn get__OutputsAvailable(this: *mut core::ffi::c_void, categoryguid: *const windows_core::GUID, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::get__OutputsAvailable(this, core::mem::transmute_copy(&categoryguid)) { Ok(ok__) => { @@ -16191,10 +12663,7 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VideoRenderersAvailable(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn VideoRenderersAvailable(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::VideoRenderersAvailable(this) { Ok(ok__) => { @@ -16204,10 +12673,7 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioRenderersAvailable(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn AudioRenderersAvailable(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::AudioRenderersAvailable(this) { Ok(ok__) => { @@ -16217,10 +12683,7 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FeaturesAvailable(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn FeaturesAvailable(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::FeaturesAvailable(this) { Ok(ok__) => { @@ -16230,10 +12693,7 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InputActive(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn InputActive(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::InputActive(this) { Ok(ok__) => { @@ -16243,17 +12703,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputActive(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetInputActive(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetInputActive(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn OutputsActive(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn OutputsActive(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::OutputsActive(this) { Ok(ok__) => { @@ -16263,17 +12717,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputsActive(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetOutputsActive(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetOutputsActive(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn VideoRendererActive(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn VideoRendererActive(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::VideoRendererActive(this) { Ok(ok__) => { @@ -16283,17 +12731,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVideoRendererActive(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetVideoRendererActive(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetVideoRendererActive(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn AudioRendererActive(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn AudioRendererActive(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::AudioRendererActive(this) { Ok(ok__) => { @@ -16303,17 +12745,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAudioRendererActive(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetAudioRendererActive(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetAudioRendererActive(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn FeaturesActive(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn FeaturesActive(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::FeaturesActive(this) { Ok(ok__) => { @@ -16323,17 +12759,11 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFeaturesActive(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn SetFeaturesActive(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::SetFeaturesActive(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, lstate: *mut MSVidCtlStateList) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, lstate: *mut MSVidCtlStateList) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidCtl_Impl::State(this) { Ok(ok__) => { @@ -16343,66 +12773,39 @@ impl IMSVidCtl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn View(this: *mut core::ffi::c_void, v: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn View(this: *mut core::ffi::c_void, v: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::View(this, core::mem::transmute_copy(&v)).into() } - unsafe extern "system" fn Build(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn Build(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::Build(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::Pause(this).into() } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::Run(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::Stop(this).into() } - unsafe extern "system" fn Decompose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn Decompose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::Decompose(this).into() } - unsafe extern "system" fn DisableVideo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn DisableVideo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::DisableVideo(this).into() } - unsafe extern "system" fn DisableAudio(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn DisableAudio(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::DisableAudio(this).into() } - unsafe extern "system" fn ViewNext(this: *mut core::ffi::c_void, v: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidCtl_Impl, - { + unsafe extern "system" fn ViewNext(this: *mut core::ffi::c_void, v: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidCtl_Impl::ViewNext(this, core::mem::transmute_copy(&v)).into() } @@ -16463,10 +12866,7 @@ pub trait IMSVidDataServices_Impl: Sized + IMSVidFeature_Impl {} impl windows_core::RuntimeName for IMSVidDataServices {} #[cfg(feature = "Win32_System_Com")] impl IMSVidDataServices_Vtbl { - pub const fn new() -> IMSVidDataServices_Vtbl - where - Identity: IMSVidDataServices_Impl, - { + pub const fn new() -> IMSVidDataServices_Vtbl { Self { base__: IMSVidFeature_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -16479,10 +12879,7 @@ pub trait IMSVidDataServicesEvent_Impl: Sized + IMSVidDeviceEvent_Impl {} impl windows_core::RuntimeName for IMSVidDataServicesEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidDataServicesEvent_Vtbl { - pub const fn new() -> IMSVidDataServicesEvent_Vtbl - where - Identity: IMSVidDataServicesEvent_Impl, - { + pub const fn new() -> IMSVidDataServicesEvent_Vtbl { Self { base__: IMSVidDeviceEvent_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -16505,14 +12902,8 @@ pub trait IMSVidDevice_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for IMSVidDevice {} #[cfg(feature = "Win32_System_Com")] impl IMSVidDevice_Vtbl { - pub const fn new() -> IMSVidDevice_Vtbl - where - Identity: IMSVidDevice_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidDevice_Impl, - { + pub const fn new() -> IMSVidDevice_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidDevice_Impl::Name(this) { Ok(ok__) => { @@ -16522,10 +12913,7 @@ impl IMSVidDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidDevice_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidDevice_Impl::Status(this) { Ok(ok__) => { @@ -16535,17 +12923,11 @@ impl IMSVidDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPower(this: *mut core::ffi::c_void, power: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidDevice_Impl, - { + unsafe extern "system" fn SetPower(this: *mut core::ffi::c_void, power: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidDevice_Impl::SetPower(this, core::mem::transmute_copy(&power)).into() } - unsafe extern "system" fn Power(this: *mut core::ffi::c_void, power: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidDevice_Impl, - { + unsafe extern "system" fn Power(this: *mut core::ffi::c_void, power: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidDevice_Impl::Power(this) { Ok(ok__) => { @@ -16555,10 +12937,7 @@ impl IMSVidDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Category(this: *mut core::ffi::c_void, guid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidDevice_Impl, - { + unsafe extern "system" fn Category(this: *mut core::ffi::c_void, guid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidDevice_Impl::Category(this) { Ok(ok__) => { @@ -16568,10 +12947,7 @@ impl IMSVidDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClassID(this: *mut core::ffi::c_void, clsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidDevice_Impl, - { + unsafe extern "system" fn ClassID(this: *mut core::ffi::c_void, clsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidDevice_Impl::ClassID(this) { Ok(ok__) => { @@ -16581,10 +12957,7 @@ impl IMSVidDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _Category(this: *mut core::ffi::c_void, guid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidDevice_Impl, - { + unsafe extern "system" fn _Category(this: *mut core::ffi::c_void, guid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidDevice_Impl::_Category(this) { Ok(ok__) => { @@ -16594,10 +12967,7 @@ impl IMSVidDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _ClassID(this: *mut core::ffi::c_void, clsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidDevice_Impl, - { + unsafe extern "system" fn _ClassID(this: *mut core::ffi::c_void, clsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidDevice_Impl::_ClassID(this) { Ok(ok__) => { @@ -16607,10 +12977,7 @@ impl IMSVidDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqualDevice(this: *mut core::ffi::c_void, device: *mut core::ffi::c_void, isequal: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidDevice_Impl, - { + unsafe extern "system" fn IsEqualDevice(this: *mut core::ffi::c_void, device: *mut core::ffi::c_void, isequal: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidDevice_Impl::IsEqualDevice(this, windows_core::from_raw_borrowed(&device)) { Ok(ok__) => { @@ -16637,19 +13004,13 @@ impl IMSVidDevice_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMSVidDevice2_Impl: Sized { +pub trait IMSVidDevice2_Impl: Sized + windows_core::IUnknownImpl { fn DevicePath(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMSVidDevice2 {} impl IMSVidDevice2_Vtbl { - pub const fn new() -> IMSVidDevice2_Vtbl - where - Identity: IMSVidDevice2_Impl, - { - unsafe extern "system" fn DevicePath(this: *mut core::ffi::c_void, devpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidDevice2_Impl, - { + pub const fn new() -> IMSVidDevice2_Vtbl { + unsafe extern "system" fn DevicePath(this: *mut core::ffi::c_void, devpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidDevice2_Impl::DevicePath(this) { Ok(ok__) => { @@ -16673,14 +13034,8 @@ pub trait IMSVidDeviceEvent_Impl: Sized + super::super::super::System::Com::IDis impl windows_core::RuntimeName for IMSVidDeviceEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidDeviceEvent_Vtbl { - pub const fn new() -> IMSVidDeviceEvent_Vtbl - where - Identity: IMSVidDeviceEvent_Impl, - { - unsafe extern "system" fn StateChange(this: *mut core::ffi::c_void, lpd: *mut core::ffi::c_void, oldstate: i32, newstate: i32) -> windows_core::HRESULT - where - Identity: IMSVidDeviceEvent_Impl, - { + pub const fn new() -> IMSVidDeviceEvent_Vtbl { + unsafe extern "system" fn StateChange(this: *mut core::ffi::c_void, lpd: *mut core::ffi::c_void, oldstate: i32, newstate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidDeviceEvent_Impl::StateChange(this, windows_core::from_raw_borrowed(&lpd), core::mem::transmute_copy(&oldstate), core::mem::transmute_copy(&newstate)).into() } @@ -16701,14 +13056,8 @@ pub trait IMSVidEVR_Impl: Sized + IMSVidVideoRenderer_Impl { impl windows_core::RuntimeName for IMSVidEVR {} #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi", feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidEVR_Vtbl { - pub const fn new() -> IMSVidEVR_Vtbl - where - Identity: IMSVidEVR_Impl, - { - unsafe extern "system" fn Presenter(this: *mut core::ffi::c_void, ppallocpresent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidEVR_Impl, - { + pub const fn new() -> IMSVidEVR_Vtbl { + unsafe extern "system" fn Presenter(this: *mut core::ffi::c_void, ppallocpresent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidEVR_Impl::Presenter(this) { Ok(ok__) => { @@ -16718,24 +13067,15 @@ impl IMSVidEVR_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPresenter(this: *mut core::ffi::c_void, pallocpresent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidEVR_Impl, - { + unsafe extern "system" fn SetPresenter(this: *mut core::ffi::c_void, pallocpresent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidEVR_Impl::SetPresenter(this, windows_core::from_raw_borrowed(&pallocpresent)).into() } - unsafe extern "system" fn SetSuppressEffects(this: *mut core::ffi::c_void, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidEVR_Impl, - { + unsafe extern "system" fn SetSuppressEffects(this: *mut core::ffi::c_void, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidEVR_Impl::SetSuppressEffects(this, core::mem::transmute_copy(&bsuppress)).into() } - unsafe extern "system" fn SuppressEffects(this: *mut core::ffi::c_void, bsuppress: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidEVR_Impl, - { + unsafe extern "system" fn SuppressEffects(this: *mut core::ffi::c_void, bsuppress: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidEVR_Impl::SuppressEffects(this) { Ok(ok__) => { @@ -16765,14 +13105,8 @@ pub trait IMSVidEVREvent_Impl: Sized + IMSVidOutputDeviceEvent_Impl { impl windows_core::RuntimeName for IMSVidEVREvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidEVREvent_Vtbl { - pub const fn new() -> IMSVidEVREvent_Vtbl - where - Identity: IMSVidEVREvent_Impl, - { - unsafe extern "system" fn OnUserEvent(this: *mut core::ffi::c_void, leventcode: i32) -> windows_core::HRESULT - where - Identity: IMSVidEVREvent_Impl, - { + pub const fn new() -> IMSVidEVREvent_Vtbl { + unsafe extern "system" fn OnUserEvent(this: *mut core::ffi::c_void, leventcode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidEVREvent_Impl::OnUserEvent(this, core::mem::transmute_copy(&leventcode)).into() } @@ -16791,14 +13125,8 @@ pub trait IMSVidEncoder_Impl: Sized + IMSVidFeature_Impl { impl windows_core::RuntimeName for IMSVidEncoder {} #[cfg(feature = "Win32_System_Com")] impl IMSVidEncoder_Vtbl { - pub const fn new() -> IMSVidEncoder_Vtbl - where - Identity: IMSVidEncoder_Impl, - { - unsafe extern "system" fn VideoEncoderInterface(this: *mut core::ffi::c_void, ppencint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidEncoder_Impl, - { + pub const fn new() -> IMSVidEncoder_Vtbl { + unsafe extern "system" fn VideoEncoderInterface(this: *mut core::ffi::c_void, ppencint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidEncoder_Impl::VideoEncoderInterface(this) { Ok(ok__) => { @@ -16808,10 +13136,7 @@ impl IMSVidEncoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioEncoderInterface(this: *mut core::ffi::c_void, ppencint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidEncoder_Impl, - { + unsafe extern "system" fn AudioEncoderInterface(this: *mut core::ffi::c_void, ppencint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidEncoder_Impl::AudioEncoderInterface(this) { Ok(ok__) => { @@ -16837,10 +13162,7 @@ pub trait IMSVidFeature_Impl: Sized + IMSVidDevice_Impl {} impl windows_core::RuntimeName for IMSVidFeature {} #[cfg(feature = "Win32_System_Com")] impl IMSVidFeature_Vtbl { - pub const fn new() -> IMSVidFeature_Vtbl - where - Identity: IMSVidFeature_Impl, - { + pub const fn new() -> IMSVidFeature_Vtbl { Self { base__: IMSVidDevice_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -16853,10 +13175,7 @@ pub trait IMSVidFeatureEvent_Impl: Sized + IMSVidDeviceEvent_Impl {} impl windows_core::RuntimeName for IMSVidFeatureEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidFeatureEvent_Vtbl { - pub const fn new() -> IMSVidFeatureEvent_Vtbl - where - Identity: IMSVidFeatureEvent_Impl, - { + pub const fn new() -> IMSVidFeatureEvent_Vtbl { Self { base__: IMSVidDeviceEvent_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -16875,14 +13194,8 @@ pub trait IMSVidFeatures_Impl: Sized + super::super::super::System::Com::IDispat impl windows_core::RuntimeName for IMSVidFeatures {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidFeatures_Vtbl { - pub const fn new() -> IMSVidFeatures_Vtbl - where - Identity: IMSVidFeatures_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidFeatures_Impl, - { + pub const fn new() -> IMSVidFeatures_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidFeatures_Impl::Count(this) { Ok(ok__) => { @@ -16892,10 +13205,7 @@ impl IMSVidFeatures_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidFeatures_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidFeatures_Impl::_NewEnum(this) { Ok(ok__) => { @@ -16905,10 +13215,7 @@ impl IMSVidFeatures_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit, pdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidFeatures_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit, pdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidFeatures_Impl::get_Item(this, core::mem::transmute(&v)) { Ok(ok__) => { @@ -16918,17 +13225,11 @@ impl IMSVidFeatures_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pdb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidFeatures_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pdb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidFeatures_Impl::Add(this, windows_core::from_raw_borrowed(&pdb)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidFeatures_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidFeatures_Impl::Remove(this, core::mem::transmute(&v)).into() } @@ -16954,14 +13255,8 @@ pub trait IMSVidFilePlayback_Impl: Sized + IMSVidPlayback_Impl { impl windows_core::RuntimeName for IMSVidFilePlayback {} #[cfg(feature = "Win32_System_Com")] impl IMSVidFilePlayback_Vtbl { - pub const fn new() -> IMSVidFilePlayback_Vtbl - where - Identity: IMSVidFilePlayback_Impl, - { - unsafe extern "system" fn FileName(this: *mut core::ffi::c_void, filename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidFilePlayback_Impl, - { + pub const fn new() -> IMSVidFilePlayback_Vtbl { + unsafe extern "system" fn FileName(this: *mut core::ffi::c_void, filename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidFilePlayback_Impl::FileName(this) { Ok(ok__) => { @@ -16971,10 +13266,7 @@ impl IMSVidFilePlayback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidFilePlayback_Impl, - { + unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidFilePlayback_Impl::SetFileName(this, core::mem::transmute(&filename)).into() } @@ -16993,21 +13285,12 @@ pub trait IMSVidFilePlayback2_Impl: Sized + IMSVidFilePlayback_Impl { impl windows_core::RuntimeName for IMSVidFilePlayback2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidFilePlayback2_Vtbl { - pub const fn new() -> IMSVidFilePlayback2_Vtbl - where - Identity: IMSVidFilePlayback2_Impl, - { - unsafe extern "system" fn Set_SourceFilter(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidFilePlayback2_Impl, - { + pub const fn new() -> IMSVidFilePlayback2_Vtbl { + unsafe extern "system" fn Set_SourceFilter(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidFilePlayback2_Impl::Set_SourceFilter(this, core::mem::transmute(&filename)).into() } - unsafe extern "system" fn Set__SourceFilter(this: *mut core::ffi::c_void, filename: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidFilePlayback2_Impl, - { + unsafe extern "system" fn Set__SourceFilter(this: *mut core::ffi::c_void, filename: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidFilePlayback2_Impl::Set__SourceFilter(this, core::mem::transmute(&filename)).into() } @@ -17027,10 +13310,7 @@ pub trait IMSVidFilePlaybackEvent_Impl: Sized + IMSVidPlaybackEvent_Impl {} impl windows_core::RuntimeName for IMSVidFilePlaybackEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidFilePlaybackEvent_Vtbl { - pub const fn new() -> IMSVidFilePlaybackEvent_Vtbl - where - Identity: IMSVidFilePlaybackEvent_Impl, - { + pub const fn new() -> IMSVidFilePlaybackEvent_Vtbl { Self { base__: IMSVidPlaybackEvent_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -17047,21 +13327,12 @@ pub trait IMSVidGenericSink_Impl: Sized + IMSVidOutputDevice_Impl { impl windows_core::RuntimeName for IMSVidGenericSink {} #[cfg(feature = "Win32_System_Com")] impl IMSVidGenericSink_Vtbl { - pub const fn new() -> IMSVidGenericSink_Vtbl - where - Identity: IMSVidGenericSink_Impl, - { - unsafe extern "system" fn SetSinkFilter(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidGenericSink_Impl, - { + pub const fn new() -> IMSVidGenericSink_Vtbl { + unsafe extern "system" fn SetSinkFilter(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGenericSink_Impl::SetSinkFilter(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn SinkStreams(this: *mut core::ffi::c_void, pstreams: *mut MSVidSinkStreams) -> windows_core::HRESULT - where - Identity: IMSVidGenericSink_Impl, - { + unsafe extern "system" fn SinkStreams(this: *mut core::ffi::c_void, pstreams: *mut MSVidSinkStreams) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGenericSink_Impl::SinkStreams(this) { Ok(ok__) => { @@ -17071,10 +13342,7 @@ impl IMSVidGenericSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSinkStreams(this: *mut core::ffi::c_void, streams: MSVidSinkStreams) -> windows_core::HRESULT - where - Identity: IMSVidGenericSink_Impl, - { + unsafe extern "system" fn SetSinkStreams(this: *mut core::ffi::c_void, streams: MSVidSinkStreams) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGenericSink_Impl::SetSinkStreams(this, core::mem::transmute_copy(&streams)).into() } @@ -17098,21 +13366,12 @@ pub trait IMSVidGenericSink2_Impl: Sized + IMSVidGenericSink_Impl { impl windows_core::RuntimeName for IMSVidGenericSink2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidGenericSink2_Vtbl { - pub const fn new() -> IMSVidGenericSink2_Vtbl - where - Identity: IMSVidGenericSink2_Impl, - { - unsafe extern "system" fn AddFilter(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidGenericSink2_Impl, - { + pub const fn new() -> IMSVidGenericSink2_Vtbl { + unsafe extern "system" fn AddFilter(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGenericSink2_Impl::AddFilter(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn ResetFilterList(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGenericSink2_Impl, - { + unsafe extern "system" fn ResetFilterList(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGenericSink2_Impl::ResetFilterList(this).into() } @@ -17148,14 +13407,8 @@ pub trait IMSVidGraphSegment_Impl: Sized + super::super::super::System::Com::IPe impl windows_core::RuntimeName for IMSVidGraphSegment {} #[cfg(feature = "Win32_System_Com")] impl IMSVidGraphSegment_Vtbl { - pub const fn new() -> IMSVidGraphSegment_Vtbl - where - Identity: IMSVidGraphSegment_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pinit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + pub const fn new() -> IMSVidGraphSegment_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pinit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegment_Impl::Init(this) { Ok(ok__) => { @@ -17165,17 +13418,11 @@ impl IMSVidGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInit(this: *mut core::ffi::c_void, pinit: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn SetInit(this: *mut core::ffi::c_void, pinit: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegment_Impl::SetInit(this, windows_core::from_raw_borrowed(&pinit)).into() } - unsafe extern "system" fn EnumFilters(this: *mut core::ffi::c_void, pnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn EnumFilters(this: *mut core::ffi::c_void, pnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegment_Impl::EnumFilters(this) { Ok(ok__) => { @@ -17185,10 +13432,7 @@ impl IMSVidGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Container(this: *mut core::ffi::c_void, ppctl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn Container(this: *mut core::ffi::c_void, ppctl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegment_Impl::Container(this) { Ok(ok__) => { @@ -17198,17 +13442,11 @@ impl IMSVidGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContainer(this: *mut core::ffi::c_void, pctl: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn SetContainer(this: *mut core::ffi::c_void, pctl: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegment_Impl::SetContainer(this, windows_core::from_raw_borrowed(&pctl)).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut MSVidSegmentType) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut MSVidSegmentType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegment_Impl::Type(this) { Ok(ok__) => { @@ -17218,10 +13456,7 @@ impl IMSVidGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Category(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn Category(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegment_Impl::Category(this) { Ok(ok__) => { @@ -17231,59 +13466,35 @@ impl IMSVidGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Build(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn Build(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegment_Impl::Build(this).into() } - unsafe extern "system" fn PostBuild(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn PostBuild(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegment_Impl::PostBuild(this).into() } - unsafe extern "system" fn PreRun(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn PreRun(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegment_Impl::PreRun(this).into() } - unsafe extern "system" fn PostRun(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn PostRun(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegment_Impl::PostRun(this).into() } - unsafe extern "system" fn PreStop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn PreStop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegment_Impl::PreStop(this).into() } - unsafe extern "system" fn PostStop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn PostStop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegment_Impl::PostStop(this).into() } - unsafe extern "system" fn OnEventNotify(this: *mut core::ffi::c_void, leventcode: i32, leventparm1: isize, leventparm2: isize) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn OnEventNotify(this: *mut core::ffi::c_void, leventcode: i32, leventparm1: isize, leventparm2: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegment_Impl::OnEventNotify(this, core::mem::transmute_copy(&leventcode), core::mem::transmute_copy(&leventparm1), core::mem::transmute_copy(&leventparm2)).into() } - unsafe extern "system" fn Decompose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegment_Impl, - { + unsafe extern "system" fn Decompose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegment_Impl::Decompose(this).into() } @@ -17311,7 +13522,7 @@ impl IMSVidGraphSegment_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMSVidGraphSegmentContainer_Impl: Sized { +pub trait IMSVidGraphSegmentContainer_Impl: Sized + windows_core::IUnknownImpl { fn Graph(&self) -> windows_core::Result; fn Input(&self) -> windows_core::Result; fn Outputs(&self) -> windows_core::Result; @@ -17328,14 +13539,8 @@ pub trait IMSVidGraphSegmentContainer_Impl: Sized { impl windows_core::RuntimeName for IMSVidGraphSegmentContainer {} #[cfg(feature = "Win32_System_Com")] impl IMSVidGraphSegmentContainer_Vtbl { - pub const fn new() -> IMSVidGraphSegmentContainer_Vtbl - where - Identity: IMSVidGraphSegmentContainer_Impl, - { - unsafe extern "system" fn Graph(this: *mut core::ffi::c_void, ppgraph: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + pub const fn new() -> IMSVidGraphSegmentContainer_Vtbl { + unsafe extern "system" fn Graph(this: *mut core::ffi::c_void, ppgraph: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegmentContainer_Impl::Graph(this) { Ok(ok__) => { @@ -17345,10 +13550,7 @@ impl IMSVidGraphSegmentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Input(this: *mut core::ffi::c_void, ppinput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + unsafe extern "system" fn Input(this: *mut core::ffi::c_void, ppinput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegmentContainer_Impl::Input(this) { Ok(ok__) => { @@ -17358,10 +13560,7 @@ impl IMSVidGraphSegmentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Outputs(this: *mut core::ffi::c_void, ppoutputs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + unsafe extern "system" fn Outputs(this: *mut core::ffi::c_void, ppoutputs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegmentContainer_Impl::Outputs(this) { Ok(ok__) => { @@ -17371,10 +13570,7 @@ impl IMSVidGraphSegmentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VideoRenderer(this: *mut core::ffi::c_void, ppvr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + unsafe extern "system" fn VideoRenderer(this: *mut core::ffi::c_void, ppvr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegmentContainer_Impl::VideoRenderer(this) { Ok(ok__) => { @@ -17384,10 +13580,7 @@ impl IMSVidGraphSegmentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioRenderer(this: *mut core::ffi::c_void, ppar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + unsafe extern "system" fn AudioRenderer(this: *mut core::ffi::c_void, ppar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegmentContainer_Impl::AudioRenderer(this) { Ok(ok__) => { @@ -17397,10 +13590,7 @@ impl IMSVidGraphSegmentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Features(this: *mut core::ffi::c_void, ppfeatures: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + unsafe extern "system" fn Features(this: *mut core::ffi::c_void, ppfeatures: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegmentContainer_Impl::Features(this) { Ok(ok__) => { @@ -17410,10 +13600,7 @@ impl IMSVidGraphSegmentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Composites(this: *mut core::ffi::c_void, ppcomposites: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + unsafe extern "system" fn Composites(this: *mut core::ffi::c_void, ppcomposites: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegmentContainer_Impl::Composites(this) { Ok(ok__) => { @@ -17423,10 +13610,7 @@ impl IMSVidGraphSegmentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParentContainer(this: *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + unsafe extern "system" fn ParentContainer(this: *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidGraphSegmentContainer_Impl::ParentContainer(this) { Ok(ok__) => { @@ -17436,24 +13620,15 @@ impl IMSVidGraphSegmentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Decompose(this: *mut core::ffi::c_void, psegment: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + unsafe extern "system" fn Decompose(this: *mut core::ffi::c_void, psegment: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentContainer_Impl::Decompose(this, windows_core::from_raw_borrowed(&psegment)).into() } - unsafe extern "system" fn IsWindowless(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + unsafe extern "system" fn IsWindowless(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentContainer_Impl::IsWindowless(this).into() } - unsafe extern "system" fn GetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentContainer_Impl, - { + unsafe extern "system" fn GetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentContainer_Impl::GetFocus(this).into() } @@ -17476,7 +13651,7 @@ impl IMSVidGraphSegmentContainer_Vtbl { iid == &::IID } } -pub trait IMSVidGraphSegmentUserInput_Impl: Sized { +pub trait IMSVidGraphSegmentUserInput_Impl: Sized + windows_core::IUnknownImpl { fn Click(&self) -> windows_core::Result<()>; fn DblClick(&self) -> windows_core::Result<()>; fn KeyDown(&self, keycode: *const i16, shiftstate: i16) -> windows_core::Result<()>; @@ -17488,63 +13663,36 @@ pub trait IMSVidGraphSegmentUserInput_Impl: Sized { } impl windows_core::RuntimeName for IMSVidGraphSegmentUserInput {} impl IMSVidGraphSegmentUserInput_Vtbl { - pub const fn new() -> IMSVidGraphSegmentUserInput_Vtbl - where - Identity: IMSVidGraphSegmentUserInput_Impl, - { - unsafe extern "system" fn Click(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentUserInput_Impl, - { + pub const fn new() -> IMSVidGraphSegmentUserInput_Vtbl { + unsafe extern "system" fn Click(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentUserInput_Impl::Click(this).into() } - unsafe extern "system" fn DblClick(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentUserInput_Impl, - { + unsafe extern "system" fn DblClick(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentUserInput_Impl::DblClick(this).into() } - unsafe extern "system" fn KeyDown(this: *mut core::ffi::c_void, keycode: *const i16, shiftstate: i16) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentUserInput_Impl, - { + unsafe extern "system" fn KeyDown(this: *mut core::ffi::c_void, keycode: *const i16, shiftstate: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentUserInput_Impl::KeyDown(this, core::mem::transmute_copy(&keycode), core::mem::transmute_copy(&shiftstate)).into() } - unsafe extern "system" fn KeyPress(this: *mut core::ffi::c_void, keyascii: *const i16) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentUserInput_Impl, - { + unsafe extern "system" fn KeyPress(this: *mut core::ffi::c_void, keyascii: *const i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentUserInput_Impl::KeyPress(this, core::mem::transmute_copy(&keyascii)).into() } - unsafe extern "system" fn KeyUp(this: *mut core::ffi::c_void, keycode: *const i16, shiftstate: i16) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentUserInput_Impl, - { + unsafe extern "system" fn KeyUp(this: *mut core::ffi::c_void, keycode: *const i16, shiftstate: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentUserInput_Impl::KeyUp(this, core::mem::transmute_copy(&keycode), core::mem::transmute_copy(&shiftstate)).into() } - unsafe extern "system" fn MouseDown(this: *mut core::ffi::c_void, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentUserInput_Impl, - { + unsafe extern "system" fn MouseDown(this: *mut core::ffi::c_void, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentUserInput_Impl::MouseDown(this, core::mem::transmute_copy(&buttonstate), core::mem::transmute_copy(&shiftstate), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn MouseMove(this: *mut core::ffi::c_void, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentUserInput_Impl, - { + unsafe extern "system" fn MouseMove(this: *mut core::ffi::c_void, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentUserInput_Impl::MouseMove(this, core::mem::transmute_copy(&buttonstate), core::mem::transmute_copy(&shiftstate), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn MouseUp(this: *mut core::ffi::c_void, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> windows_core::HRESULT - where - Identity: IMSVidGraphSegmentUserInput_Impl, - { + unsafe extern "system" fn MouseUp(this: *mut core::ffi::c_void, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidGraphSegmentUserInput_Impl::MouseUp(this, core::mem::transmute_copy(&buttonstate), core::mem::transmute_copy(&shiftstate), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } @@ -17573,14 +13721,8 @@ pub trait IMSVidInputDevice_Impl: Sized + IMSVidDevice_Impl { impl windows_core::RuntimeName for IMSVidInputDevice {} #[cfg(feature = "Win32_System_Com")] impl IMSVidInputDevice_Vtbl { - pub const fn new() -> IMSVidInputDevice_Vtbl - where - Identity: IMSVidInputDevice_Impl, - { - unsafe extern "system" fn IsViewable(this: *mut core::ffi::c_void, v: *const core::mem::MaybeUninit, pfviewable: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidInputDevice_Impl, - { + pub const fn new() -> IMSVidInputDevice_Vtbl { + unsafe extern "system" fn IsViewable(this: *mut core::ffi::c_void, v: *const core::mem::MaybeUninit, pfviewable: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidInputDevice_Impl::IsViewable(this, core::mem::transmute_copy(&v)) { Ok(ok__) => { @@ -17590,10 +13732,7 @@ impl IMSVidInputDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn View(this: *mut core::ffi::c_void, v: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidInputDevice_Impl, - { + unsafe extern "system" fn View(this: *mut core::ffi::c_void, v: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidInputDevice_Impl::View(this, core::mem::transmute_copy(&v)).into() } @@ -17609,10 +13748,7 @@ pub trait IMSVidInputDeviceEvent_Impl: Sized + super::super::super::System::Com: impl windows_core::RuntimeName for IMSVidInputDeviceEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidInputDeviceEvent_Vtbl { - pub const fn new() -> IMSVidInputDeviceEvent_Vtbl - where - Identity: IMSVidInputDeviceEvent_Impl, - { + pub const fn new() -> IMSVidInputDeviceEvent_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -17631,14 +13767,8 @@ pub trait IMSVidInputDevices_Impl: Sized + super::super::super::System::Com::IDi impl windows_core::RuntimeName for IMSVidInputDevices {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidInputDevices_Vtbl { - pub const fn new() -> IMSVidInputDevices_Vtbl - where - Identity: IMSVidInputDevices_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidInputDevices_Impl, - { + pub const fn new() -> IMSVidInputDevices_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidInputDevices_Impl::Count(this) { Ok(ok__) => { @@ -17648,10 +13778,7 @@ impl IMSVidInputDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidInputDevices_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidInputDevices_Impl::_NewEnum(this) { Ok(ok__) => { @@ -17661,10 +13788,7 @@ impl IMSVidInputDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit, pdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidInputDevices_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit, pdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidInputDevices_Impl::get_Item(this, core::mem::transmute(&v)) { Ok(ok__) => { @@ -17674,17 +13798,11 @@ impl IMSVidInputDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pdb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidInputDevices_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pdb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidInputDevices_Impl::Add(this, windows_core::from_raw_borrowed(&pdb)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidInputDevices_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidInputDevices_Impl::Remove(this, core::mem::transmute(&v)).into() } @@ -17707,10 +13825,7 @@ pub trait IMSVidOutputDevice_Impl: Sized + IMSVidDevice_Impl {} impl windows_core::RuntimeName for IMSVidOutputDevice {} #[cfg(feature = "Win32_System_Com")] impl IMSVidOutputDevice_Vtbl { - pub const fn new() -> IMSVidOutputDevice_Vtbl - where - Identity: IMSVidOutputDevice_Impl, - { + pub const fn new() -> IMSVidOutputDevice_Vtbl { Self { base__: IMSVidDevice_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -17723,10 +13838,7 @@ pub trait IMSVidOutputDeviceEvent_Impl: Sized + IMSVidDeviceEvent_Impl {} impl windows_core::RuntimeName for IMSVidOutputDeviceEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidOutputDeviceEvent_Vtbl { - pub const fn new() -> IMSVidOutputDeviceEvent_Vtbl - where - Identity: IMSVidOutputDeviceEvent_Impl, - { + pub const fn new() -> IMSVidOutputDeviceEvent_Vtbl { Self { base__: IMSVidDeviceEvent_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -17745,14 +13857,8 @@ pub trait IMSVidOutputDevices_Impl: Sized + super::super::super::System::Com::ID impl windows_core::RuntimeName for IMSVidOutputDevices {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidOutputDevices_Vtbl { - pub const fn new() -> IMSVidOutputDevices_Vtbl - where - Identity: IMSVidOutputDevices_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidOutputDevices_Impl, - { + pub const fn new() -> IMSVidOutputDevices_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidOutputDevices_Impl::Count(this) { Ok(ok__) => { @@ -17762,10 +13868,7 @@ impl IMSVidOutputDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidOutputDevices_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidOutputDevices_Impl::_NewEnum(this) { Ok(ok__) => { @@ -17775,10 +13878,7 @@ impl IMSVidOutputDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit, pdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidOutputDevices_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit, pdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidOutputDevices_Impl::get_Item(this, core::mem::transmute(&v)) { Ok(ok__) => { @@ -17788,17 +13888,11 @@ impl IMSVidOutputDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pdb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidOutputDevices_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pdb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidOutputDevices_Impl::Add(this, windows_core::from_raw_borrowed(&pdb)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidOutputDevices_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidOutputDevices_Impl::Remove(this, core::mem::transmute(&v)).into() } @@ -17836,14 +13930,8 @@ pub trait IMSVidPlayback_Impl: Sized + IMSVidInputDevice_Impl { impl windows_core::RuntimeName for IMSVidPlayback {} #[cfg(feature = "Win32_System_Com")] impl IMSVidPlayback_Vtbl { - pub const fn new() -> IMSVidPlayback_Vtbl - where - Identity: IMSVidPlayback_Impl, - { - unsafe extern "system" fn EnableResetOnStop(this: *mut core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + pub const fn new() -> IMSVidPlayback_Vtbl { + unsafe extern "system" fn EnableResetOnStop(this: *mut core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidPlayback_Impl::EnableResetOnStop(this) { Ok(ok__) => { @@ -17853,38 +13941,23 @@ impl IMSVidPlayback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableResetOnStop(this: *mut core::ffi::c_void, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn SetEnableResetOnStop(this: *mut core::ffi::c_void, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidPlayback_Impl::SetEnableResetOnStop(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidPlayback_Impl::Run(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidPlayback_Impl::Pause(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidPlayback_Impl::Stop(this).into() } - unsafe extern "system" fn get_CanStep(this: *mut core::ffi::c_void, fbackwards: super::super::super::Foundation::VARIANT_BOOL, pfcan: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn get_CanStep(this: *mut core::ffi::c_void, fbackwards: super::super::super::Foundation::VARIANT_BOOL, pfcan: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidPlayback_Impl::get_CanStep(this, core::mem::transmute_copy(&fbackwards)) { Ok(ok__) => { @@ -17894,24 +13967,15 @@ impl IMSVidPlayback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Step(this: *mut core::ffi::c_void, lstep: i32) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn Step(this: *mut core::ffi::c_void, lstep: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidPlayback_Impl::Step(this, core::mem::transmute_copy(&lstep)).into() } - unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, plrate: f64) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, plrate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidPlayback_Impl::SetRate(this, core::mem::transmute_copy(&plrate)).into() } - unsafe extern "system" fn Rate(this: *mut core::ffi::c_void, plrate: *mut f64) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn Rate(this: *mut core::ffi::c_void, plrate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidPlayback_Impl::Rate(this) { Ok(ok__) => { @@ -17921,17 +13985,11 @@ impl IMSVidPlayback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, lposition: i32) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, lposition: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidPlayback_Impl::SetCurrentPosition(this, core::mem::transmute_copy(&lposition)).into() } - unsafe extern "system" fn CurrentPosition(this: *mut core::ffi::c_void, lposition: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn CurrentPosition(this: *mut core::ffi::c_void, lposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidPlayback_Impl::CurrentPosition(this) { Ok(ok__) => { @@ -17941,17 +13999,11 @@ impl IMSVidPlayback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPositionMode(this: *mut core::ffi::c_void, lpositionmode: PositionModeList) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn SetPositionMode(this: *mut core::ffi::c_void, lpositionmode: PositionModeList) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidPlayback_Impl::SetPositionMode(this, core::mem::transmute_copy(&lpositionmode)).into() } - unsafe extern "system" fn PositionMode(this: *mut core::ffi::c_void, lpositionmode: *mut PositionModeList) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn PositionMode(this: *mut core::ffi::c_void, lpositionmode: *mut PositionModeList) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidPlayback_Impl::PositionMode(this) { Ok(ok__) => { @@ -17961,10 +14013,7 @@ impl IMSVidPlayback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, llength: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidPlayback_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, llength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidPlayback_Impl::Length(this) { Ok(ok__) => { @@ -18004,14 +14053,8 @@ pub trait IMSVidPlaybackEvent_Impl: Sized + IMSVidInputDeviceEvent_Impl { impl windows_core::RuntimeName for IMSVidPlaybackEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidPlaybackEvent_Vtbl { - pub const fn new() -> IMSVidPlaybackEvent_Vtbl - where - Identity: IMSVidPlaybackEvent_Impl, - { - unsafe extern "system" fn EndOfMedia(this: *mut core::ffi::c_void, lpd: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidPlaybackEvent_Impl, - { + pub const fn new() -> IMSVidPlaybackEvent_Vtbl { + unsafe extern "system" fn EndOfMedia(this: *mut core::ffi::c_void, lpd: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidPlaybackEvent_Impl::EndOfMedia(this, windows_core::from_raw_borrowed(&lpd)).into() } @@ -18039,14 +14082,8 @@ pub trait IMSVidRect_Impl: Sized + super::super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IMSVidRect {} #[cfg(feature = "Win32_System_Com")] impl IMSVidRect_Vtbl { - pub const fn new() -> IMSVidRect_Vtbl - where - Identity: IMSVidRect_Impl, - { - unsafe extern "system" fn Top(this: *mut core::ffi::c_void, topval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + pub const fn new() -> IMSVidRect_Vtbl { + unsafe extern "system" fn Top(this: *mut core::ffi::c_void, topval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidRect_Impl::Top(this) { Ok(ok__) => { @@ -18056,17 +14093,11 @@ impl IMSVidRect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, topval: i32) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, topval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidRect_Impl::SetTop(this, core::mem::transmute_copy(&topval)).into() } - unsafe extern "system" fn Left(this: *mut core::ffi::c_void, leftval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + unsafe extern "system" fn Left(this: *mut core::ffi::c_void, leftval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidRect_Impl::Left(this) { Ok(ok__) => { @@ -18076,17 +14107,11 @@ impl IMSVidRect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, leftval: i32) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, leftval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidRect_Impl::SetLeft(this, core::mem::transmute_copy(&leftval)).into() } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, widthval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, widthval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidRect_Impl::Width(this) { Ok(ok__) => { @@ -18096,17 +14121,11 @@ impl IMSVidRect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, widthval: i32) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, widthval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidRect_Impl::SetWidth(this, core::mem::transmute_copy(&widthval)).into() } - unsafe extern "system" fn Height(this: *mut core::ffi::c_void, heightval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + unsafe extern "system" fn Height(this: *mut core::ffi::c_void, heightval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidRect_Impl::Height(this) { Ok(ok__) => { @@ -18116,17 +14135,11 @@ impl IMSVidRect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHeight(this: *mut core::ffi::c_void, heightval: i32) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + unsafe extern "system" fn SetHeight(this: *mut core::ffi::c_void, heightval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidRect_Impl::SetHeight(this, core::mem::transmute_copy(&heightval)).into() } - unsafe extern "system" fn HWnd(this: *mut core::ffi::c_void, hwndval: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + unsafe extern "system" fn HWnd(this: *mut core::ffi::c_void, hwndval: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidRect_Impl::HWnd(this) { Ok(ok__) => { @@ -18136,17 +14149,11 @@ impl IMSVidRect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHWnd(this: *mut core::ffi::c_void, hwndval: super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + unsafe extern "system" fn SetHWnd(this: *mut core::ffi::c_void, hwndval: super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidRect_Impl::SetHWnd(this, core::mem::transmute_copy(&hwndval)).into() } - unsafe extern "system" fn SetRect(this: *mut core::ffi::c_void, rectval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidRect_Impl, - { + unsafe extern "system" fn SetRect(this: *mut core::ffi::c_void, rectval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidRect_Impl::SetRect(this, windows_core::from_raw_borrowed(&rectval)).into() } @@ -18184,14 +14191,8 @@ pub trait IMSVidStreamBufferRecordingControl_Impl: Sized + super::super::super:: impl windows_core::RuntimeName for IMSVidStreamBufferRecordingControl {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferRecordingControl_Vtbl { - pub const fn new() -> IMSVidStreamBufferRecordingControl_Vtbl - where - Identity: IMSVidStreamBufferRecordingControl_Impl, - { - unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, rtstart: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferRecordingControl_Impl, - { + pub const fn new() -> IMSVidStreamBufferRecordingControl_Vtbl { + unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, rtstart: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferRecordingControl_Impl::StartTime(this) { Ok(ok__) => { @@ -18201,17 +14202,11 @@ impl IMSVidStreamBufferRecordingControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, rtstart: i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferRecordingControl_Impl, - { + unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, rtstart: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferRecordingControl_Impl::SetStartTime(this, core::mem::transmute_copy(&rtstart)).into() } - unsafe extern "system" fn StopTime(this: *mut core::ffi::c_void, rtstop: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferRecordingControl_Impl, - { + unsafe extern "system" fn StopTime(this: *mut core::ffi::c_void, rtstop: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferRecordingControl_Impl::StopTime(this) { Ok(ok__) => { @@ -18221,17 +14216,11 @@ impl IMSVidStreamBufferRecordingControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStopTime(this: *mut core::ffi::c_void, rtstop: i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferRecordingControl_Impl, - { + unsafe extern "system" fn SetStopTime(this: *mut core::ffi::c_void, rtstop: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferRecordingControl_Impl::SetStopTime(this, core::mem::transmute_copy(&rtstop)).into() } - unsafe extern "system" fn RecordingStopped(this: *mut core::ffi::c_void, phresult: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferRecordingControl_Impl, - { + unsafe extern "system" fn RecordingStopped(this: *mut core::ffi::c_void, phresult: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferRecordingControl_Impl::RecordingStopped(this) { Ok(ok__) => { @@ -18241,10 +14230,7 @@ impl IMSVidStreamBufferRecordingControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecordingStarted(this: *mut core::ffi::c_void, phresult: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferRecordingControl_Impl, - { + unsafe extern "system" fn RecordingStarted(this: *mut core::ffi::c_void, phresult: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferRecordingControl_Impl::RecordingStarted(this) { Ok(ok__) => { @@ -18254,10 +14240,7 @@ impl IMSVidStreamBufferRecordingControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecordingType(this: *mut core::ffi::c_void, dwtype: *mut RecordingType) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferRecordingControl_Impl, - { + unsafe extern "system" fn RecordingType(this: *mut core::ffi::c_void, dwtype: *mut RecordingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferRecordingControl_Impl::RecordingType(this) { Ok(ok__) => { @@ -18267,10 +14250,7 @@ impl IMSVidStreamBufferRecordingControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecordingAttribute(this: *mut core::ffi::c_void, precordingattribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferRecordingControl_Impl, - { + unsafe extern "system" fn RecordingAttribute(this: *mut core::ffi::c_void, precordingattribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferRecordingControl_Impl::RecordingAttribute(this) { Ok(ok__) => { @@ -18309,14 +14289,8 @@ pub trait IMSVidStreamBufferSink_Impl: Sized + IMSVidOutputDevice_Impl { impl windows_core::RuntimeName for IMSVidStreamBufferSink {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSink_Vtbl { - pub const fn new() -> IMSVidStreamBufferSink_Vtbl - where - Identity: IMSVidStreamBufferSink_Impl, - { - unsafe extern "system" fn get_ContentRecorder(this: *mut core::ffi::c_void, pszfilename: core::mem::MaybeUninit, precordingiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink_Impl, - { + pub const fn new() -> IMSVidStreamBufferSink_Vtbl { + unsafe extern "system" fn get_ContentRecorder(this: *mut core::ffi::c_void, pszfilename: core::mem::MaybeUninit, precordingiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink_Impl::get_ContentRecorder(this, core::mem::transmute(&pszfilename)) { Ok(ok__) => { @@ -18326,10 +14300,7 @@ impl IMSVidStreamBufferSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ReferenceRecorder(this: *mut core::ffi::c_void, pszfilename: core::mem::MaybeUninit, precordingiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink_Impl, - { + unsafe extern "system" fn get_ReferenceRecorder(this: *mut core::ffi::c_void, pszfilename: core::mem::MaybeUninit, precordingiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink_Impl::get_ReferenceRecorder(this, core::mem::transmute(&pszfilename)) { Ok(ok__) => { @@ -18339,10 +14310,7 @@ impl IMSVidStreamBufferSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SinkName(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink_Impl, - { + unsafe extern "system" fn SinkName(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink_Impl::SinkName(this) { Ok(ok__) => { @@ -18352,24 +14320,15 @@ impl IMSVidStreamBufferSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSinkName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink_Impl, - { + unsafe extern "system" fn SetSinkName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSink_Impl::SetSinkName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn NameSetLock(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink_Impl, - { + unsafe extern "system" fn NameSetLock(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSink_Impl::NameSetLock(this).into() } - unsafe extern "system" fn SBESink(this: *mut core::ffi::c_void, sbeconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink_Impl, - { + unsafe extern "system" fn SBESink(this: *mut core::ffi::c_void, sbeconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink_Impl::SBESink(this) { Ok(ok__) => { @@ -18401,14 +14360,8 @@ pub trait IMSVidStreamBufferSink2_Impl: Sized + IMSVidStreamBufferSink_Impl { impl windows_core::RuntimeName for IMSVidStreamBufferSink2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSink2_Vtbl { - pub const fn new() -> IMSVidStreamBufferSink2_Vtbl - where - Identity: IMSVidStreamBufferSink2_Impl, - { - unsafe extern "system" fn UnlockProfile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink2_Impl, - { + pub const fn new() -> IMSVidStreamBufferSink2_Vtbl { + unsafe extern "system" fn UnlockProfile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSink2_Impl::UnlockProfile(this).into() } @@ -18443,14 +14396,8 @@ pub trait IMSVidStreamBufferSink3_Impl: Sized + IMSVidStreamBufferSink2_Impl { impl windows_core::RuntimeName for IMSVidStreamBufferSink3 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSink3_Vtbl { - pub const fn new() -> IMSVidStreamBufferSink3_Vtbl - where - Identity: IMSVidStreamBufferSink3_Impl, - { - unsafe extern "system" fn SetMinSeek(this: *mut core::ffi::c_void, pdwmin: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + pub const fn new() -> IMSVidStreamBufferSink3_Vtbl { + unsafe extern "system" fn SetMinSeek(this: *mut core::ffi::c_void, pdwmin: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::SetMinSeek(this) { Ok(ok__) => { @@ -18460,10 +14407,7 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn AudioCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::AudioCounter(this) { Ok(ok__) => { @@ -18473,10 +14417,7 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VideoCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn VideoCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::VideoCounter(this) { Ok(ok__) => { @@ -18486,10 +14427,7 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CCCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn CCCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::CCCounter(this) { Ok(ok__) => { @@ -18499,10 +14437,7 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WSTCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn WSTCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::WSTCounter(this) { Ok(ok__) => { @@ -18512,17 +14447,11 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAudioAnalysisFilter(this: *mut core::ffi::c_void, szclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn SetAudioAnalysisFilter(this: *mut core::ffi::c_void, szclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSink3_Impl::SetAudioAnalysisFilter(this, core::mem::transmute(&szclsid)).into() } - unsafe extern "system" fn AudioAnalysisFilter(this: *mut core::ffi::c_void, pszclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn AudioAnalysisFilter(this: *mut core::ffi::c_void, pszclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::AudioAnalysisFilter(this) { Ok(ok__) => { @@ -18532,17 +14461,11 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Set_AudioAnalysisFilter(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn Set_AudioAnalysisFilter(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSink3_Impl::Set_AudioAnalysisFilter(this, core::mem::transmute(&guid)).into() } - unsafe extern "system" fn _AudioAnalysisFilter(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn _AudioAnalysisFilter(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::_AudioAnalysisFilter(this) { Ok(ok__) => { @@ -18552,17 +14475,11 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVideoAnalysisFilter(this: *mut core::ffi::c_void, szclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn SetVideoAnalysisFilter(this: *mut core::ffi::c_void, szclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSink3_Impl::SetVideoAnalysisFilter(this, core::mem::transmute(&szclsid)).into() } - unsafe extern "system" fn VideoAnalysisFilter(this: *mut core::ffi::c_void, pszclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn VideoAnalysisFilter(this: *mut core::ffi::c_void, pszclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::VideoAnalysisFilter(this) { Ok(ok__) => { @@ -18572,17 +14489,11 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Set_VideoAnalysisFilter(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn Set_VideoAnalysisFilter(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSink3_Impl::Set_VideoAnalysisFilter(this, core::mem::transmute(&guid)).into() } - unsafe extern "system" fn _VideoAnalysisFilter(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn _VideoAnalysisFilter(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::_VideoAnalysisFilter(this) { Ok(ok__) => { @@ -18592,17 +14503,11 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDataAnalysisFilter(this: *mut core::ffi::c_void, szclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn SetDataAnalysisFilter(this: *mut core::ffi::c_void, szclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSink3_Impl::SetDataAnalysisFilter(this, core::mem::transmute(&szclsid)).into() } - unsafe extern "system" fn DataAnalysisFilter(this: *mut core::ffi::c_void, pszclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn DataAnalysisFilter(this: *mut core::ffi::c_void, pszclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::DataAnalysisFilter(this) { Ok(ok__) => { @@ -18612,17 +14517,11 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Set_DataAnalysisFilter(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn Set_DataAnalysisFilter(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSink3_Impl::Set_DataAnalysisFilter(this, core::mem::transmute(&guid)).into() } - unsafe extern "system" fn _DataAnalysisFilter(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn _DataAnalysisFilter(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::_DataAnalysisFilter(this) { Ok(ok__) => { @@ -18632,10 +14531,7 @@ impl IMSVidStreamBufferSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LicenseErrorCode(this: *mut core::ffi::c_void, hres: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSink3_Impl, - { + unsafe extern "system" fn LicenseErrorCode(this: *mut core::ffi::c_void, hres: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSink3_Impl::LicenseErrorCode(this) { Ok(ok__) => { @@ -18681,28 +14577,16 @@ pub trait IMSVidStreamBufferSinkEvent_Impl: Sized + IMSVidOutputDeviceEvent_Impl impl windows_core::RuntimeName for IMSVidStreamBufferSinkEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSinkEvent_Vtbl { - pub const fn new() -> IMSVidStreamBufferSinkEvent_Vtbl - where - Identity: IMSVidStreamBufferSinkEvent_Impl, - { - unsafe extern "system" fn CertificateFailure(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSinkEvent_Impl, - { + pub const fn new() -> IMSVidStreamBufferSinkEvent_Vtbl { + unsafe extern "system" fn CertificateFailure(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSinkEvent_Impl::CertificateFailure(this).into() } - unsafe extern "system" fn CertificateSuccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSinkEvent_Impl, - { + unsafe extern "system" fn CertificateSuccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSinkEvent_Impl::CertificateSuccess(this).into() } - unsafe extern "system" fn WriteFailure(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSinkEvent_Impl, - { + unsafe extern "system" fn WriteFailure(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSinkEvent_Impl::WriteFailure(this).into() } @@ -18726,21 +14610,12 @@ pub trait IMSVidStreamBufferSinkEvent2_Impl: Sized + IMSVidStreamBufferSinkEvent impl windows_core::RuntimeName for IMSVidStreamBufferSinkEvent2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSinkEvent2_Vtbl { - pub const fn new() -> IMSVidStreamBufferSinkEvent2_Vtbl - where - Identity: IMSVidStreamBufferSinkEvent2_Impl, - { - unsafe extern "system" fn EncryptionOn(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSinkEvent2_Impl, - { + pub const fn new() -> IMSVidStreamBufferSinkEvent2_Vtbl { + unsafe extern "system" fn EncryptionOn(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSinkEvent2_Impl::EncryptionOn(this).into() } - unsafe extern "system" fn EncryptionOff(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSinkEvent2_Impl, - { + unsafe extern "system" fn EncryptionOff(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSinkEvent2_Impl::EncryptionOff(this).into() } @@ -18762,14 +14637,8 @@ pub trait IMSVidStreamBufferSinkEvent3_Impl: Sized + IMSVidStreamBufferSinkEvent impl windows_core::RuntimeName for IMSVidStreamBufferSinkEvent3 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSinkEvent3_Vtbl { - pub const fn new() -> IMSVidStreamBufferSinkEvent3_Vtbl - where - Identity: IMSVidStreamBufferSinkEvent3_Impl, - { - unsafe extern "system" fn LicenseChange(this: *mut core::ffi::c_void, dwprot: i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSinkEvent3_Impl, - { + pub const fn new() -> IMSVidStreamBufferSinkEvent3_Vtbl { + unsafe extern "system" fn LicenseChange(this: *mut core::ffi::c_void, dwprot: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSinkEvent3_Impl::LicenseChange(this, core::mem::transmute_copy(&dwprot)).into() } @@ -18787,14 +14656,8 @@ pub trait IMSVidStreamBufferSinkEvent4_Impl: Sized + IMSVidStreamBufferSinkEvent impl windows_core::RuntimeName for IMSVidStreamBufferSinkEvent4 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSinkEvent4_Vtbl { - pub const fn new() -> IMSVidStreamBufferSinkEvent4_Vtbl - where - Identity: IMSVidStreamBufferSinkEvent4_Impl, - { - unsafe extern "system" fn WriteFailureClear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSinkEvent4_Impl, - { + pub const fn new() -> IMSVidStreamBufferSinkEvent4_Vtbl { + unsafe extern "system" fn WriteFailureClear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSinkEvent4_Impl::WriteFailureClear(this).into() } @@ -18818,14 +14681,8 @@ pub trait IMSVidStreamBufferSource_Impl: Sized + IMSVidFilePlayback_Impl { impl windows_core::RuntimeName for IMSVidStreamBufferSource {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSource_Vtbl { - pub const fn new() -> IMSVidStreamBufferSource_Vtbl - where - Identity: IMSVidStreamBufferSource_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, lstart: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource_Impl, - { + pub const fn new() -> IMSVidStreamBufferSource_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, lstart: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSource_Impl::Start(this) { Ok(ok__) => { @@ -18835,10 +14692,7 @@ impl IMSVidStreamBufferSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecordingAttribute(this: *mut core::ffi::c_void, precordingattribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource_Impl, - { + unsafe extern "system" fn RecordingAttribute(this: *mut core::ffi::c_void, precordingattribute: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSource_Impl::RecordingAttribute(this) { Ok(ok__) => { @@ -18848,38 +14702,23 @@ impl IMSVidStreamBufferSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentRatings(this: *mut core::ffi::c_void, pensystem: *mut EnTvRat_System, penrating: *mut EnTvRat_GenericLevel, pbfenattr: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource_Impl, - { + unsafe extern "system" fn CurrentRatings(this: *mut core::ffi::c_void, pensystem: *mut EnTvRat_System, penrating: *mut EnTvRat_GenericLevel, pbfenattr: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSource_Impl::CurrentRatings(this, core::mem::transmute_copy(&pensystem), core::mem::transmute_copy(&penrating), core::mem::transmute_copy(&pbfenattr)).into() } - unsafe extern "system" fn MaxRatingsLevel(this: *mut core::ffi::c_void, ensystem: EnTvRat_System, enrating: EnTvRat_GenericLevel, lbfenattr: i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource_Impl, - { + unsafe extern "system" fn MaxRatingsLevel(this: *mut core::ffi::c_void, ensystem: EnTvRat_System, enrating: EnTvRat_GenericLevel, lbfenattr: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSource_Impl::MaxRatingsLevel(this, core::mem::transmute_copy(&ensystem), core::mem::transmute_copy(&enrating), core::mem::transmute_copy(&lbfenattr)).into() } - unsafe extern "system" fn SetBlockUnrated(this: *mut core::ffi::c_void, bblock: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource_Impl, - { + unsafe extern "system" fn SetBlockUnrated(this: *mut core::ffi::c_void, bblock: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSource_Impl::SetBlockUnrated(this, core::mem::transmute_copy(&bblock)).into() } - unsafe extern "system" fn SetUnratedDelay(this: *mut core::ffi::c_void, dwdelay: i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource_Impl, - { + unsafe extern "system" fn SetUnratedDelay(this: *mut core::ffi::c_void, dwdelay: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSource_Impl::SetUnratedDelay(this, core::mem::transmute_copy(&dwdelay)).into() } - unsafe extern "system" fn SBESource(this: *mut core::ffi::c_void, sbefilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource_Impl, - { + unsafe extern "system" fn SBESource(this: *mut core::ffi::c_void, sbefilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSource_Impl::SBESource(this) { Ok(ok__) => { @@ -18916,21 +14755,12 @@ pub trait IMSVidStreamBufferSource2_Impl: Sized + IMSVidStreamBufferSource_Impl impl windows_core::RuntimeName for IMSVidStreamBufferSource2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSource2_Vtbl { - pub const fn new() -> IMSVidStreamBufferSource2_Vtbl - where - Identity: IMSVidStreamBufferSource2_Impl, - { - unsafe extern "system" fn put_RateEx(this: *mut core::ffi::c_void, dwrate: f64, dwframespersecond: u32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource2_Impl, - { + pub const fn new() -> IMSVidStreamBufferSource2_Vtbl { + unsafe extern "system" fn put_RateEx(this: *mut core::ffi::c_void, dwrate: f64, dwframespersecond: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSource2_Impl::put_RateEx(this, core::mem::transmute_copy(&dwrate), core::mem::transmute_copy(&dwframespersecond)).into() } - unsafe extern "system" fn AudioCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource2_Impl, - { + unsafe extern "system" fn AudioCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSource2_Impl::AudioCounter(this) { Ok(ok__) => { @@ -18940,10 +14770,7 @@ impl IMSVidStreamBufferSource2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VideoCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource2_Impl, - { + unsafe extern "system" fn VideoCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSource2_Impl::VideoCounter(this) { Ok(ok__) => { @@ -18953,10 +14780,7 @@ impl IMSVidStreamBufferSource2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CCCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource2_Impl, - { + unsafe extern "system" fn CCCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSource2_Impl::CCCounter(this) { Ok(ok__) => { @@ -18966,10 +14790,7 @@ impl IMSVidStreamBufferSource2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WSTCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSource2_Impl, - { + unsafe extern "system" fn WSTCounter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidStreamBufferSource2_Impl::WSTCounter(this) { Ok(ok__) => { @@ -19008,70 +14829,40 @@ pub trait IMSVidStreamBufferSourceEvent_Impl: Sized + IMSVidFilePlaybackEvent_Im impl windows_core::RuntimeName for IMSVidStreamBufferSourceEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSourceEvent_Vtbl { - pub const fn new() -> IMSVidStreamBufferSourceEvent_Vtbl - where - Identity: IMSVidStreamBufferSourceEvent_Impl, - { - unsafe extern "system" fn CertificateFailure(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent_Impl, - { + pub const fn new() -> IMSVidStreamBufferSourceEvent_Vtbl { + unsafe extern "system" fn CertificateFailure(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent_Impl::CertificateFailure(this).into() } - unsafe extern "system" fn CertificateSuccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent_Impl, - { + unsafe extern "system" fn CertificateSuccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent_Impl::CertificateSuccess(this).into() } - unsafe extern "system" fn RatingsBlocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent_Impl, - { + unsafe extern "system" fn RatingsBlocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent_Impl::RatingsBlocked(this).into() } - unsafe extern "system" fn RatingsUnblocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent_Impl, - { + unsafe extern "system" fn RatingsUnblocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent_Impl::RatingsUnblocked(this).into() } - unsafe extern "system" fn RatingsChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent_Impl, - { + unsafe extern "system" fn RatingsChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent_Impl::RatingsChanged(this).into() } - unsafe extern "system" fn TimeHole(this: *mut core::ffi::c_void, streamoffsetms: i32, sizems: i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent_Impl, - { + unsafe extern "system" fn TimeHole(this: *mut core::ffi::c_void, streamoffsetms: i32, sizems: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent_Impl::TimeHole(this, core::mem::transmute_copy(&streamoffsetms), core::mem::transmute_copy(&sizems)).into() } - unsafe extern "system" fn StaleDataRead(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent_Impl, - { + unsafe extern "system" fn StaleDataRead(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent_Impl::StaleDataRead(this).into() } - unsafe extern "system" fn ContentBecomingStale(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent_Impl, - { + unsafe extern "system" fn ContentBecomingStale(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent_Impl::ContentBecomingStale(this).into() } - unsafe extern "system" fn StaleFileDeleted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent_Impl, - { + unsafe extern "system" fn StaleFileDeleted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent_Impl::StaleFileDeleted(this).into() } @@ -19100,14 +14891,8 @@ pub trait IMSVidStreamBufferSourceEvent2_Impl: Sized + IMSVidStreamBufferSourceE impl windows_core::RuntimeName for IMSVidStreamBufferSourceEvent2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSourceEvent2_Vtbl { - pub const fn new() -> IMSVidStreamBufferSourceEvent2_Vtbl - where - Identity: IMSVidStreamBufferSourceEvent2_Impl, - { - unsafe extern "system" fn RateChange(this: *mut core::ffi::c_void, qwnewrate: f64, qwoldrate: f64) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent2_Impl, - { + pub const fn new() -> IMSVidStreamBufferSourceEvent2_Vtbl { + unsafe extern "system" fn RateChange(this: *mut core::ffi::c_void, qwnewrate: f64, qwoldrate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent2_Impl::RateChange(this, core::mem::transmute_copy(&qwnewrate), core::mem::transmute_copy(&qwoldrate)).into() } @@ -19129,42 +14914,24 @@ pub trait IMSVidStreamBufferSourceEvent3_Impl: Sized + IMSVidStreamBufferSourceE impl windows_core::RuntimeName for IMSVidStreamBufferSourceEvent3 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSourceEvent3_Vtbl { - pub const fn new() -> IMSVidStreamBufferSourceEvent3_Vtbl - where - Identity: IMSVidStreamBufferSourceEvent3_Impl, - { - unsafe extern "system" fn BroadcastEvent(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent3_Impl, - { + pub const fn new() -> IMSVidStreamBufferSourceEvent3_Vtbl { + unsafe extern "system" fn BroadcastEvent(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent3_Impl::BroadcastEvent(this, core::mem::transmute(&guid)).into() } - unsafe extern "system" fn BroadcastEventEx(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent3_Impl, - { + unsafe extern "system" fn BroadcastEventEx(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent3_Impl::BroadcastEventEx(this, 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() } - unsafe extern "system" fn COPPBlocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent3_Impl, - { + unsafe extern "system" fn COPPBlocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent3_Impl::COPPBlocked(this).into() } - unsafe extern "system" fn COPPUnblocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent3_Impl, - { + unsafe extern "system" fn COPPUnblocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent3_Impl::COPPUnblocked(this).into() } - unsafe extern "system" fn ContentPrimarilyAudio(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferSourceEvent3_Impl, - { + unsafe extern "system" fn ContentPrimarilyAudio(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferSourceEvent3_Impl::ContentPrimarilyAudio(this).into() } @@ -19197,70 +14964,40 @@ pub trait IMSVidStreamBufferV2SourceEvent_Impl: Sized + IMSVidFilePlaybackEvent_ impl windows_core::RuntimeName for IMSVidStreamBufferV2SourceEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferV2SourceEvent_Vtbl { - pub const fn new() -> IMSVidStreamBufferV2SourceEvent_Vtbl - where - Identity: IMSVidStreamBufferV2SourceEvent_Impl, - { - unsafe extern "system" fn RatingsChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferV2SourceEvent_Impl, - { + pub const fn new() -> IMSVidStreamBufferV2SourceEvent_Vtbl { + unsafe extern "system" fn RatingsChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferV2SourceEvent_Impl::RatingsChanged(this).into() } - unsafe extern "system" fn TimeHole(this: *mut core::ffi::c_void, streamoffsetms: i32, sizems: i32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferV2SourceEvent_Impl, - { + unsafe extern "system" fn TimeHole(this: *mut core::ffi::c_void, streamoffsetms: i32, sizems: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferV2SourceEvent_Impl::TimeHole(this, core::mem::transmute_copy(&streamoffsetms), core::mem::transmute_copy(&sizems)).into() } - unsafe extern "system" fn StaleDataRead(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferV2SourceEvent_Impl, - { + unsafe extern "system" fn StaleDataRead(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferV2SourceEvent_Impl::StaleDataRead(this).into() } - unsafe extern "system" fn ContentBecomingStale(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferV2SourceEvent_Impl, - { + unsafe extern "system" fn ContentBecomingStale(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferV2SourceEvent_Impl::ContentBecomingStale(this).into() } - unsafe extern "system" fn StaleFileDeleted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferV2SourceEvent_Impl, - { + unsafe extern "system" fn StaleFileDeleted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferV2SourceEvent_Impl::StaleFileDeleted(this).into() } - unsafe extern "system" fn RateChange(this: *mut core::ffi::c_void, qwnewrate: f64, qwoldrate: f64) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferV2SourceEvent_Impl, - { + unsafe extern "system" fn RateChange(this: *mut core::ffi::c_void, qwnewrate: f64, qwoldrate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferV2SourceEvent_Impl::RateChange(this, core::mem::transmute_copy(&qwnewrate), core::mem::transmute_copy(&qwoldrate)).into() } - unsafe extern "system" fn BroadcastEvent(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferV2SourceEvent_Impl, - { + unsafe extern "system" fn BroadcastEvent(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferV2SourceEvent_Impl::BroadcastEvent(this, core::mem::transmute(&guid)).into() } - unsafe extern "system" fn BroadcastEventEx(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferV2SourceEvent_Impl, - { + unsafe extern "system" fn BroadcastEventEx(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferV2SourceEvent_Impl::BroadcastEventEx(this, 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() } - unsafe extern "system" fn ContentPrimarilyAudio(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidStreamBufferV2SourceEvent_Impl, - { + unsafe extern "system" fn ContentPrimarilyAudio(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidStreamBufferV2SourceEvent_Impl::ContentPrimarilyAudio(this).into() } @@ -19292,14 +15029,8 @@ pub trait IMSVidTuner_Impl: Sized + IMSVidVideoInputDevice_Impl { impl windows_core::RuntimeName for IMSVidTuner {} #[cfg(feature = "Win32_System_Com")] impl IMSVidTuner_Vtbl { - pub const fn new() -> IMSVidTuner_Vtbl - where - Identity: IMSVidTuner_Impl, - { - unsafe extern "system" fn Tune(this: *mut core::ffi::c_void, pptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidTuner_Impl, - { + pub const fn new() -> IMSVidTuner_Vtbl { + unsafe extern "system" fn Tune(this: *mut core::ffi::c_void, pptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidTuner_Impl::Tune(this) { Ok(ok__) => { @@ -19309,17 +15040,11 @@ impl IMSVidTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTune(this: *mut core::ffi::c_void, ptr: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidTuner_Impl, - { + unsafe extern "system" fn SetTune(this: *mut core::ffi::c_void, ptr: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidTuner_Impl::SetTune(this, windows_core::from_raw_borrowed(&ptr)).into() } - unsafe extern "system" fn TuningSpace(this: *mut core::ffi::c_void, plts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidTuner_Impl, - { + unsafe extern "system" fn TuningSpace(this: *mut core::ffi::c_void, plts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidTuner_Impl::TuningSpace(this) { Ok(ok__) => { @@ -19329,10 +15054,7 @@ impl IMSVidTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTuningSpace(this: *mut core::ffi::c_void, plts: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidTuner_Impl, - { + unsafe extern "system" fn SetTuningSpace(this: *mut core::ffi::c_void, plts: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidTuner_Impl::SetTuningSpace(this, windows_core::from_raw_borrowed(&plts)).into() } @@ -19356,14 +15078,8 @@ pub trait IMSVidTunerEvent_Impl: Sized + IMSVidInputDeviceEvent_Impl { impl windows_core::RuntimeName for IMSVidTunerEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidTunerEvent_Vtbl { - pub const fn new() -> IMSVidTunerEvent_Vtbl - where - Identity: IMSVidTunerEvent_Impl, - { - unsafe extern "system" fn TuneChanged(this: *mut core::ffi::c_void, lpd: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidTunerEvent_Impl, - { + pub const fn new() -> IMSVidTunerEvent_Vtbl { + unsafe extern "system" fn TuneChanged(this: *mut core::ffi::c_void, lpd: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidTunerEvent_Impl::TuneChanged(this, windows_core::from_raw_borrowed(&lpd)).into() } @@ -19385,14 +15101,8 @@ pub trait IMSVidVMR9_Impl: Sized + IMSVidVideoRenderer_Impl { impl windows_core::RuntimeName for IMSVidVMR9 {} #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidVMR9_Vtbl { - pub const fn new() -> IMSVidVMR9_Vtbl - where - Identity: IMSVidVMR9_Impl, - { - unsafe extern "system" fn Allocator_ID(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidVMR9_Impl, - { + pub const fn new() -> IMSVidVMR9_Vtbl { + unsafe extern "system" fn Allocator_ID(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVMR9_Impl::Allocator_ID(this) { Ok(ok__) => { @@ -19402,24 +15112,15 @@ impl IMSVidVMR9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllocator(this: *mut core::ffi::c_void, allocpresent: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT - where - Identity: IMSVidVMR9_Impl, - { + unsafe extern "system" fn SetAllocator(this: *mut core::ffi::c_void, allocpresent: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVMR9_Impl::SetAllocator(this, windows_core::from_raw_borrowed(&allocpresent), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn SetSuppressEffects(this: *mut core::ffi::c_void, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVMR9_Impl, - { + unsafe extern "system" fn SetSuppressEffects(this: *mut core::ffi::c_void, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVMR9_Impl::SetSuppressEffects(this, core::mem::transmute_copy(&bsuppress)).into() } - unsafe extern "system" fn SuppressEffects(this: *mut core::ffi::c_void, bsuppress: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVMR9_Impl, - { + unsafe extern "system" fn SuppressEffects(this: *mut core::ffi::c_void, bsuppress: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVMR9_Impl::SuppressEffects(this) { Ok(ok__) => { @@ -19429,10 +15130,7 @@ impl IMSVidVMR9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Allocator(this: *mut core::ffi::c_void, allocpresent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVMR9_Impl, - { + unsafe extern "system" fn Allocator(this: *mut core::ffi::c_void, allocpresent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVMR9_Impl::Allocator(this) { Ok(ok__) => { @@ -19483,28 +15181,16 @@ pub trait IMSVidVRGraphSegment_Impl: Sized + IMSVidGraphSegment_Impl { impl windows_core::RuntimeName for IMSVidVRGraphSegment {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IMSVidVRGraphSegment_Vtbl { - pub const fn new() -> IMSVidVRGraphSegment_Vtbl - where - Identity: IMSVidVRGraphSegment_Impl, - { - unsafe extern "system" fn Set_VMRendererMode(this: *mut core::ffi::c_void, dwmode: i32) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + pub const fn new() -> IMSVidVRGraphSegment_Vtbl { + unsafe extern "system" fn Set_VMRendererMode(this: *mut core::ffi::c_void, dwmode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::Set_VMRendererMode(this, core::mem::transmute_copy(&dwmode)).into() } - unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, window: super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, window: super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::SetOwner(this, core::mem::transmute_copy(&window)).into() } - unsafe extern "system" fn Owner(this: *mut core::ffi::c_void, window: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn Owner(this: *mut core::ffi::c_void, window: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVRGraphSegment_Impl::Owner(this) { Ok(ok__) => { @@ -19514,10 +15200,7 @@ impl IMSVidVRGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UseOverlay(this: *mut core::ffi::c_void, useoverlayval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn UseOverlay(this: *mut core::ffi::c_void, useoverlayval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVRGraphSegment_Impl::UseOverlay(this) { Ok(ok__) => { @@ -19527,17 +15210,11 @@ impl IMSVidVRGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseOverlay(this: *mut core::ffi::c_void, useoverlayval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn SetUseOverlay(this: *mut core::ffi::c_void, useoverlayval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::SetUseOverlay(this, core::mem::transmute_copy(&useoverlayval)).into() } - unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, visible: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, visible: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVRGraphSegment_Impl::Visible(this) { Ok(ok__) => { @@ -19547,17 +15224,11 @@ impl IMSVidVRGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, visible: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, visible: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::SetVisible(this, core::mem::transmute_copy(&visible)).into() } - unsafe extern "system" fn ColorKey(this: *mut core::ffi::c_void, colorkey: *mut u32) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn ColorKey(this: *mut core::ffi::c_void, colorkey: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVRGraphSegment_Impl::ColorKey(this) { Ok(ok__) => { @@ -19567,17 +15238,11 @@ impl IMSVidVRGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, colorkey: u32) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, colorkey: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::SetColorKey(this, core::mem::transmute_copy(&colorkey)).into() } - unsafe extern "system" fn Source(this: *mut core::ffi::c_void, r: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn Source(this: *mut core::ffi::c_void, r: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVRGraphSegment_Impl::Source(this) { Ok(ok__) => { @@ -19587,17 +15252,11 @@ impl IMSVidVRGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, r: super::super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, r: super::super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::SetSource(this, core::mem::transmute(&r)).into() } - unsafe extern "system" fn Destination(this: *mut core::ffi::c_void, r: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn Destination(this: *mut core::ffi::c_void, r: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVRGraphSegment_Impl::Destination(this) { Ok(ok__) => { @@ -19607,24 +15266,15 @@ impl IMSVidVRGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDestination(this: *mut core::ffi::c_void, r: super::super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn SetDestination(this: *mut core::ffi::c_void, r: super::super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::SetDestination(this, core::mem::transmute(&r)).into() } - unsafe extern "system" fn get_NativeSize(this: *mut core::ffi::c_void, sizeval: *mut super::super::super::Foundation::SIZE, aspectratio: *mut super::super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn get_NativeSize(this: *mut core::ffi::c_void, sizeval: *mut super::super::super::Foundation::SIZE, aspectratio: *mut super::super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::get_NativeSize(this, core::mem::transmute_copy(&sizeval), core::mem::transmute_copy(&aspectratio)).into() } - unsafe extern "system" fn BorderColor(this: *mut core::ffi::c_void, color: *mut u32) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn BorderColor(this: *mut core::ffi::c_void, color: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVRGraphSegment_Impl::BorderColor(this) { Ok(ok__) => { @@ -19634,17 +15284,11 @@ impl IMSVidVRGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::SetBorderColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn MaintainAspectRatio(this: *mut core::ffi::c_void, fmaintain: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn MaintainAspectRatio(this: *mut core::ffi::c_void, fmaintain: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVRGraphSegment_Impl::MaintainAspectRatio(this) { Ok(ok__) => { @@ -19654,31 +15298,19 @@ impl IMSVidVRGraphSegment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaintainAspectRatio(this: *mut core::ffi::c_void, fmaintain: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn SetMaintainAspectRatio(this: *mut core::ffi::c_void, fmaintain: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::SetMaintainAspectRatio(this, core::mem::transmute_copy(&fmaintain)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::Refresh(this).into() } - unsafe extern "system" fn DisplayChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn DisplayChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::DisplayChange(this).into() } - unsafe extern "system" fn RePaint(this: *mut core::ffi::c_void, hdc: super::super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IMSVidVRGraphSegment_Impl, - { + unsafe extern "system" fn RePaint(this: *mut core::ffi::c_void, hdc: super::super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVRGraphSegment_Impl::RePaint(this, core::mem::transmute_copy(&hdc)).into() } @@ -19717,10 +15349,7 @@ pub trait IMSVidVideoInputDevice_Impl: Sized + IMSVidInputDevice_Impl {} impl windows_core::RuntimeName for IMSVidVideoInputDevice {} #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoInputDevice_Vtbl { - pub const fn new() -> IMSVidVideoInputDevice_Vtbl - where - Identity: IMSVidVideoInputDevice_Impl, - { + pub const fn new() -> IMSVidVideoInputDevice_Vtbl { Self { base__: IMSVidInputDevice_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -19764,14 +15393,8 @@ pub trait IMSVidVideoRenderer_Impl: Sized + IMSVidOutputDevice_Impl { impl windows_core::RuntimeName for IMSVidVideoRenderer {} #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidVideoRenderer_Vtbl { - pub const fn new() -> IMSVidVideoRenderer_Vtbl - where - Identity: IMSVidVideoRenderer_Impl, - { - unsafe extern "system" fn CustomCompositorClass(this: *mut core::ffi::c_void, compositorclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + pub const fn new() -> IMSVidVideoRenderer_Vtbl { + unsafe extern "system" fn CustomCompositorClass(this: *mut core::ffi::c_void, compositorclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::CustomCompositorClass(this) { Ok(ok__) => { @@ -19781,17 +15404,11 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCustomCompositorClass(this: *mut core::ffi::c_void, compositorclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SetCustomCompositorClass(this: *mut core::ffi::c_void, compositorclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::SetCustomCompositorClass(this, core::mem::transmute(&compositorclsid)).into() } - unsafe extern "system" fn _CustomCompositorClass(this: *mut core::ffi::c_void, compositorclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn _CustomCompositorClass(this: *mut core::ffi::c_void, compositorclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::_CustomCompositorClass(this) { Ok(ok__) => { @@ -19801,17 +15418,11 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Set_CustomCompositorClass(this: *mut core::ffi::c_void, compositorclsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn Set_CustomCompositorClass(this: *mut core::ffi::c_void, compositorclsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::Set_CustomCompositorClass(this, core::mem::transmute_copy(&compositorclsid)).into() } - unsafe extern "system" fn _CustomCompositor(this: *mut core::ffi::c_void, compositor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn _CustomCompositor(this: *mut core::ffi::c_void, compositor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::_CustomCompositor(this) { Ok(ok__) => { @@ -19821,17 +15432,11 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Set_CustomCompositor(this: *mut core::ffi::c_void, compositor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn Set_CustomCompositor(this: *mut core::ffi::c_void, compositor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::Set_CustomCompositor(this, windows_core::from_raw_borrowed(&compositor)).into() } - unsafe extern "system" fn MixerBitmap(this: *mut core::ffi::c_void, mixerpicturedisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn MixerBitmap(this: *mut core::ffi::c_void, mixerpicturedisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::MixerBitmap(this) { Ok(ok__) => { @@ -19841,10 +15446,7 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _MixerBitmap(this: *mut core::ffi::c_void, mixerpicture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn _MixerBitmap(this: *mut core::ffi::c_void, mixerpicture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::_MixerBitmap(this) { Ok(ok__) => { @@ -19854,24 +15456,15 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMixerBitmap(this: *mut core::ffi::c_void, mixerpicturedisp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SetMixerBitmap(this: *mut core::ffi::c_void, mixerpicturedisp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::SetMixerBitmap(this, windows_core::from_raw_borrowed(&mixerpicturedisp)).into() } - unsafe extern "system" fn Set_MixerBitmap(this: *mut core::ffi::c_void, mixerpicture: *const super::VMRALPHABITMAP) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn Set_MixerBitmap(this: *mut core::ffi::c_void, mixerpicture: *const super::VMRALPHABITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::Set_MixerBitmap(this, core::mem::transmute_copy(&mixerpicture)).into() } - unsafe extern "system" fn MixerBitmapPositionRect(this: *mut core::ffi::c_void, rdest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn MixerBitmapPositionRect(this: *mut core::ffi::c_void, rdest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::MixerBitmapPositionRect(this) { Ok(ok__) => { @@ -19881,17 +15474,11 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMixerBitmapPositionRect(this: *mut core::ffi::c_void, rdest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SetMixerBitmapPositionRect(this: *mut core::ffi::c_void, rdest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::SetMixerBitmapPositionRect(this, windows_core::from_raw_borrowed(&rdest)).into() } - unsafe extern "system" fn MixerBitmapOpacity(this: *mut core::ffi::c_void, opacity: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn MixerBitmapOpacity(this: *mut core::ffi::c_void, opacity: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::MixerBitmapOpacity(this) { Ok(ok__) => { @@ -19901,24 +15488,15 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMixerBitmapOpacity(this: *mut core::ffi::c_void, opacity: i32) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SetMixerBitmapOpacity(this: *mut core::ffi::c_void, opacity: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::SetMixerBitmapOpacity(this, core::mem::transmute_copy(&opacity)).into() } - unsafe extern "system" fn SetupMixerBitmap(this: *mut core::ffi::c_void, mixerpicturedisp: *mut core::ffi::c_void, opacity: i32, rdest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SetupMixerBitmap(this: *mut core::ffi::c_void, mixerpicturedisp: *mut core::ffi::c_void, opacity: i32, rdest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::SetupMixerBitmap(this, windows_core::from_raw_borrowed(&mixerpicturedisp), core::mem::transmute_copy(&opacity), windows_core::from_raw_borrowed(&rdest)).into() } - unsafe extern "system" fn SourceSize(this: *mut core::ffi::c_void, currentsize: *mut SourceSizeList) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SourceSize(this: *mut core::ffi::c_void, currentsize: *mut SourceSizeList) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::SourceSize(this) { Ok(ok__) => { @@ -19928,17 +15506,11 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourceSize(this: *mut core::ffi::c_void, newsize: SourceSizeList) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SetSourceSize(this: *mut core::ffi::c_void, newsize: SourceSizeList) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::SetSourceSize(this, core::mem::transmute_copy(&newsize)).into() } - unsafe extern "system" fn OverScan(this: *mut core::ffi::c_void, plpercent: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn OverScan(this: *mut core::ffi::c_void, plpercent: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::OverScan(this) { Ok(ok__) => { @@ -19948,17 +15520,11 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOverScan(this: *mut core::ffi::c_void, lpercent: i32) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SetOverScan(this: *mut core::ffi::c_void, lpercent: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::SetOverScan(this, core::mem::transmute_copy(&lpercent)).into() } - unsafe extern "system" fn AvailableSourceRect(this: *mut core::ffi::c_void, prect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn AvailableSourceRect(this: *mut core::ffi::c_void, prect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::AvailableSourceRect(this) { Ok(ok__) => { @@ -19968,10 +15534,7 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxVidRect(this: *mut core::ffi::c_void, ppvidrect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn MaxVidRect(this: *mut core::ffi::c_void, ppvidrect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::MaxVidRect(this) { Ok(ok__) => { @@ -19981,10 +15544,7 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinVidRect(this: *mut core::ffi::c_void, ppvidrect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn MinVidRect(this: *mut core::ffi::c_void, ppvidrect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::MinVidRect(this) { Ok(ok__) => { @@ -19994,10 +15554,7 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClippedSourceRect(this: *mut core::ffi::c_void, prect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn ClippedSourceRect(this: *mut core::ffi::c_void, prect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::ClippedSourceRect(this) { Ok(ok__) => { @@ -20007,17 +15564,11 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClippedSourceRect(this: *mut core::ffi::c_void, prect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SetClippedSourceRect(this: *mut core::ffi::c_void, prect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::SetClippedSourceRect(this, windows_core::from_raw_borrowed(&prect)).into() } - unsafe extern "system" fn UsingOverlay(this: *mut core::ffi::c_void, useoverlayval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn UsingOverlay(this: *mut core::ffi::c_void, useoverlayval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::UsingOverlay(this) { Ok(ok__) => { @@ -20027,17 +15578,11 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUsingOverlay(this: *mut core::ffi::c_void, useoverlayval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SetUsingOverlay(this: *mut core::ffi::c_void, useoverlayval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::SetUsingOverlay(this, core::mem::transmute_copy(&useoverlayval)).into() } - unsafe extern "system" fn Capture(this: *mut core::ffi::c_void, currentimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn Capture(this: *mut core::ffi::c_void, currentimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::Capture(this) { Ok(ok__) => { @@ -20047,10 +15592,7 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FramesPerSecond(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn FramesPerSecond(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::FramesPerSecond(this) { Ok(ok__) => { @@ -20060,10 +15602,7 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DecimateInput(this: *mut core::ffi::c_void, pdeci: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn DecimateInput(this: *mut core::ffi::c_void, pdeci: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer_Impl::DecimateInput(this) { Ok(ok__) => { @@ -20073,10 +15612,7 @@ impl IMSVidVideoRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDecimateInput(this: *mut core::ffi::c_void, pdeci: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer_Impl, - { + unsafe extern "system" fn SetDecimateInput(this: *mut core::ffi::c_void, pdeci: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer_Impl::SetDecimateInput(this, core::mem::transmute_copy(&pdeci)).into() } @@ -20132,14 +15668,8 @@ pub trait IMSVidVideoRenderer2_Impl: Sized + IMSVidVideoRenderer_Impl { impl windows_core::RuntimeName for IMSVidVideoRenderer2 {} #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidVideoRenderer2_Vtbl { - pub const fn new() -> IMSVidVideoRenderer2_Vtbl - where - Identity: IMSVidVideoRenderer2_Impl, - { - unsafe extern "system" fn Allocator(this: *mut core::ffi::c_void, allocpresent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer2_Impl, - { + pub const fn new() -> IMSVidVideoRenderer2_Vtbl { + unsafe extern "system" fn Allocator(this: *mut core::ffi::c_void, allocpresent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer2_Impl::Allocator(this) { Ok(ok__) => { @@ -20149,10 +15679,7 @@ impl IMSVidVideoRenderer2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _Allocator(this: *mut core::ffi::c_void, allocpresent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer2_Impl, - { + unsafe extern "system" fn _Allocator(this: *mut core::ffi::c_void, allocpresent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer2_Impl::_Allocator(this) { Ok(ok__) => { @@ -20162,10 +15689,7 @@ impl IMSVidVideoRenderer2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Allocator_ID(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer2_Impl, - { + unsafe extern "system" fn Allocator_ID(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer2_Impl::Allocator_ID(this) { Ok(ok__) => { @@ -20175,31 +15699,19 @@ impl IMSVidVideoRenderer2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllocator(this: *mut core::ffi::c_void, allocpresent: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer2_Impl, - { + unsafe extern "system" fn SetAllocator(this: *mut core::ffi::c_void, allocpresent: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer2_Impl::SetAllocator(this, windows_core::from_raw_borrowed(&allocpresent), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn _SetAllocator2(this: *mut core::ffi::c_void, allocpresent: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer2_Impl, - { + unsafe extern "system" fn _SetAllocator2(this: *mut core::ffi::c_void, allocpresent: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer2_Impl::_SetAllocator2(this, windows_core::from_raw_borrowed(&allocpresent), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn SetSuppressEffects(this: *mut core::ffi::c_void, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer2_Impl, - { + unsafe extern "system" fn SetSuppressEffects(this: *mut core::ffi::c_void, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRenderer2_Impl::SetSuppressEffects(this, core::mem::transmute_copy(&bsuppress)).into() } - unsafe extern "system" fn SuppressEffects(this: *mut core::ffi::c_void, bsuppress: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidVideoRenderer2_Impl, - { + unsafe extern "system" fn SuppressEffects(this: *mut core::ffi::c_void, bsuppress: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRenderer2_Impl::SuppressEffects(this) { Ok(ok__) => { @@ -20236,14 +15748,8 @@ pub trait IMSVidVideoRendererDevices_Impl: Sized + super::super::super::System:: impl windows_core::RuntimeName for IMSVidVideoRendererDevices {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidVideoRendererDevices_Vtbl { - pub const fn new() -> IMSVidVideoRendererDevices_Vtbl - where - Identity: IMSVidVideoRendererDevices_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidVideoRendererDevices_Impl, - { + pub const fn new() -> IMSVidVideoRendererDevices_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRendererDevices_Impl::Count(this) { Ok(ok__) => { @@ -20253,10 +15759,7 @@ impl IMSVidVideoRendererDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRendererDevices_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRendererDevices_Impl::_NewEnum(this) { Ok(ok__) => { @@ -20266,10 +15769,7 @@ impl IMSVidVideoRendererDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit, pdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRendererDevices_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit, pdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidVideoRendererDevices_Impl::get_Item(this, core::mem::transmute(&v)) { Ok(ok__) => { @@ -20279,17 +15779,11 @@ impl IMSVidVideoRendererDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pdb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRendererDevices_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pdb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRendererDevices_Impl::Add(this, windows_core::from_raw_borrowed(&pdb)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidVideoRendererDevices_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRendererDevices_Impl::Remove(this, core::mem::transmute(&v)).into() } @@ -20314,14 +15808,8 @@ pub trait IMSVidVideoRendererEvent_Impl: Sized + IMSVidOutputDeviceEvent_Impl { impl windows_core::RuntimeName for IMSVidVideoRendererEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoRendererEvent_Vtbl { - pub const fn new() -> IMSVidVideoRendererEvent_Vtbl - where - Identity: IMSVidVideoRendererEvent_Impl, - { - unsafe extern "system" fn OverlayUnavailable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRendererEvent_Impl, - { + pub const fn new() -> IMSVidVideoRendererEvent_Vtbl { + unsafe extern "system" fn OverlayUnavailable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRendererEvent_Impl::OverlayUnavailable(this).into() } @@ -20339,14 +15827,8 @@ pub trait IMSVidVideoRendererEvent2_Impl: Sized + IMSVidOutputDeviceEvent_Impl { impl windows_core::RuntimeName for IMSVidVideoRendererEvent2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoRendererEvent2_Vtbl { - pub const fn new() -> IMSVidVideoRendererEvent2_Vtbl - where - Identity: IMSVidVideoRendererEvent2_Impl, - { - unsafe extern "system" fn OverlayUnavailable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidVideoRendererEvent2_Impl, - { + pub const fn new() -> IMSVidVideoRendererEvent2_Vtbl { + unsafe extern "system" fn OverlayUnavailable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidVideoRendererEvent2_Impl::OverlayUnavailable(this).into() } @@ -20458,98 +15940,56 @@ pub trait IMSVidWebDVD_Impl: Sized + IMSVidPlayback_Impl { impl windows_core::RuntimeName for IMSVidWebDVD {} #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVD_Vtbl { - pub const fn new() -> IMSVidWebDVD_Vtbl - where - Identity: IMSVidWebDVD_Impl, - { - unsafe extern "system" fn OnDVDEvent(this: *mut core::ffi::c_void, levent: i32, lparam1: isize, lparam2: isize) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + pub const fn new() -> IMSVidWebDVD_Vtbl { + unsafe extern "system" fn OnDVDEvent(this: *mut core::ffi::c_void, levent: i32, lparam1: isize, lparam2: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::OnDVDEvent(this, core::mem::transmute_copy(&levent), core::mem::transmute_copy(&lparam1), core::mem::transmute_copy(&lparam2)).into() } - unsafe extern "system" fn PlayTitle(this: *mut core::ffi::c_void, ltitle: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayTitle(this: *mut core::ffi::c_void, ltitle: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::PlayTitle(this, core::mem::transmute_copy(<itle)).into() } - unsafe extern "system" fn PlayChapterInTitle(this: *mut core::ffi::c_void, ltitle: i32, lchapter: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayChapterInTitle(this: *mut core::ffi::c_void, ltitle: i32, lchapter: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::PlayChapterInTitle(this, core::mem::transmute_copy(<itle), core::mem::transmute_copy(&lchapter)).into() } - unsafe extern "system" fn PlayChapter(this: *mut core::ffi::c_void, lchapter: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayChapter(this: *mut core::ffi::c_void, lchapter: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::PlayChapter(this, core::mem::transmute_copy(&lchapter)).into() } - unsafe extern "system" fn PlayChaptersAutoStop(this: *mut core::ffi::c_void, ltitle: i32, lstrchapter: i32, lchaptercount: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayChaptersAutoStop(this: *mut core::ffi::c_void, ltitle: i32, lstrchapter: i32, lchaptercount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::PlayChaptersAutoStop(this, core::mem::transmute_copy(<itle), core::mem::transmute_copy(&lstrchapter), core::mem::transmute_copy(&lchaptercount)).into() } - unsafe extern "system" fn PlayAtTime(this: *mut core::ffi::c_void, strtime: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayAtTime(this: *mut core::ffi::c_void, strtime: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::PlayAtTime(this, core::mem::transmute(&strtime)).into() } - unsafe extern "system" fn PlayAtTimeInTitle(this: *mut core::ffi::c_void, ltitle: i32, strtime: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayAtTimeInTitle(this: *mut core::ffi::c_void, ltitle: i32, strtime: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::PlayAtTimeInTitle(this, core::mem::transmute_copy(<itle), core::mem::transmute(&strtime)).into() } - unsafe extern "system" fn PlayPeriodInTitleAutoStop(this: *mut core::ffi::c_void, ltitle: i32, strstarttime: core::mem::MaybeUninit, strendtime: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayPeriodInTitleAutoStop(this: *mut core::ffi::c_void, ltitle: i32, strstarttime: core::mem::MaybeUninit, strendtime: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::PlayPeriodInTitleAutoStop(this, core::mem::transmute_copy(<itle), core::mem::transmute(&strstarttime), core::mem::transmute(&strendtime)).into() } - unsafe extern "system" fn ReplayChapter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn ReplayChapter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::ReplayChapter(this).into() } - unsafe extern "system" fn PlayPrevChapter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayPrevChapter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::PlayPrevChapter(this).into() } - unsafe extern "system" fn PlayNextChapter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayNextChapter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::PlayNextChapter(this).into() } - unsafe extern "system" fn StillOff(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn StillOff(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::StillOff(this).into() } - unsafe extern "system" fn get_AudioLanguage(this: *mut core::ffi::c_void, lstream: i32, fformat: super::super::super::Foundation::VARIANT_BOOL, straudiolang: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_AudioLanguage(this: *mut core::ffi::c_void, lstream: i32, fformat: super::super::super::Foundation::VARIANT_BOOL, straudiolang: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_AudioLanguage(this, core::mem::transmute_copy(&lstream), core::mem::transmute_copy(&fformat)) { Ok(ok__) => { @@ -20559,31 +15999,19 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShowMenu(this: *mut core::ffi::c_void, menuid: DVDMenuIDConstants) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn ShowMenu(this: *mut core::ffi::c_void, menuid: DVDMenuIDConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::ShowMenu(this, core::mem::transmute_copy(&menuid)).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::Resume(this).into() } - unsafe extern "system" fn ReturnFromSubmenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn ReturnFromSubmenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::ReturnFromSubmenu(this).into() } - unsafe extern "system" fn ButtonsAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn ButtonsAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::ButtonsAvailable(this) { Ok(ok__) => { @@ -20593,10 +16021,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentButton(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn CurrentButton(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::CurrentButton(this) { Ok(ok__) => { @@ -20606,66 +16031,39 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectAndActivateButton(this: *mut core::ffi::c_void, lbutton: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SelectAndActivateButton(this: *mut core::ffi::c_void, lbutton: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SelectAndActivateButton(this, core::mem::transmute_copy(&lbutton)).into() } - unsafe extern "system" fn ActivateButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn ActivateButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::ActivateButton(this).into() } - unsafe extern "system" fn SelectRightButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SelectRightButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SelectRightButton(this).into() } - unsafe extern "system" fn SelectLeftButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SelectLeftButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SelectLeftButton(this).into() } - unsafe extern "system" fn SelectLowerButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SelectLowerButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SelectLowerButton(this).into() } - unsafe extern "system" fn SelectUpperButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SelectUpperButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SelectUpperButton(this).into() } - unsafe extern "system" fn ActivateAtPosition(this: *mut core::ffi::c_void, xpos: i32, ypos: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn ActivateAtPosition(this: *mut core::ffi::c_void, xpos: i32, ypos: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::ActivateAtPosition(this, core::mem::transmute_copy(&xpos), core::mem::transmute_copy(&ypos)).into() } - unsafe extern "system" fn SelectAtPosition(this: *mut core::ffi::c_void, xpos: i32, ypos: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SelectAtPosition(this: *mut core::ffi::c_void, xpos: i32, ypos: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SelectAtPosition(this, core::mem::transmute_copy(&xpos), core::mem::transmute_copy(&ypos)).into() } - unsafe extern "system" fn get_ButtonAtPosition(this: *mut core::ffi::c_void, xpos: i32, ypos: i32, plbutton: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_ButtonAtPosition(this: *mut core::ffi::c_void, xpos: i32, ypos: i32, plbutton: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_ButtonAtPosition(this, core::mem::transmute_copy(&xpos), core::mem::transmute_copy(&ypos)) { Ok(ok__) => { @@ -20675,10 +16073,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_NumberOfChapters(this: *mut core::ffi::c_void, ltitle: i32, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_NumberOfChapters(this: *mut core::ffi::c_void, ltitle: i32, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_NumberOfChapters(this, core::mem::transmute_copy(<itle)) { Ok(ok__) => { @@ -20688,10 +16083,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalTitleTime(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn TotalTitleTime(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::TotalTitleTime(this) { Ok(ok__) => { @@ -20701,10 +16093,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TitlesAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn TitlesAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::TitlesAvailable(this) { Ok(ok__) => { @@ -20714,10 +16103,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumesAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn VolumesAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::VolumesAvailable(this) { Ok(ok__) => { @@ -20727,10 +16113,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentVolume(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn CurrentVolume(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::CurrentVolume(this) { Ok(ok__) => { @@ -20740,10 +16123,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDiscSide(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn CurrentDiscSide(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::CurrentDiscSide(this) { Ok(ok__) => { @@ -20753,10 +16133,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDomain(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn CurrentDomain(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::CurrentDomain(this) { Ok(ok__) => { @@ -20766,10 +16143,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentChapter(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn CurrentChapter(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::CurrentChapter(this) { Ok(ok__) => { @@ -20779,10 +16153,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentTitle(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn CurrentTitle(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::CurrentTitle(this) { Ok(ok__) => { @@ -20792,10 +16163,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentTime(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn CurrentTime(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::CurrentTime(this) { Ok(ok__) => { @@ -20805,10 +16173,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DVDTimeCode2bstr(this: *mut core::ffi::c_void, timecode: i32, ptimestr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DVDTimeCode2bstr(this: *mut core::ffi::c_void, timecode: i32, ptimestr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DVDTimeCode2bstr(this, core::mem::transmute_copy(&timecode)) { Ok(ok__) => { @@ -20818,10 +16183,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DVDDirectory(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DVDDirectory(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DVDDirectory(this) { Ok(ok__) => { @@ -20831,17 +16193,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDVDDirectory(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SetDVDDirectory(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SetDVDDirectory(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn IsSubpictureStreamEnabled(this: *mut core::ffi::c_void, lstream: i32, fenabled: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn IsSubpictureStreamEnabled(this: *mut core::ffi::c_void, lstream: i32, fenabled: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::IsSubpictureStreamEnabled(this, core::mem::transmute_copy(&lstream)) { Ok(ok__) => { @@ -20851,10 +16207,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsAudioStreamEnabled(this: *mut core::ffi::c_void, lstream: i32, fenabled: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn IsAudioStreamEnabled(this: *mut core::ffi::c_void, lstream: i32, fenabled: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::IsAudioStreamEnabled(this, core::mem::transmute_copy(&lstream)) { Ok(ok__) => { @@ -20864,10 +16217,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentSubpictureStream(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn CurrentSubpictureStream(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::CurrentSubpictureStream(this) { Ok(ok__) => { @@ -20877,17 +16227,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentSubpictureStream(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SetCurrentSubpictureStream(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SetCurrentSubpictureStream(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn get_SubpictureLanguage(this: *mut core::ffi::c_void, lstream: i32, strlanguage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_SubpictureLanguage(this: *mut core::ffi::c_void, lstream: i32, strlanguage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_SubpictureLanguage(this, core::mem::transmute_copy(&lstream)) { Ok(ok__) => { @@ -20897,10 +16241,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAudioStream(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn CurrentAudioStream(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::CurrentAudioStream(this) { Ok(ok__) => { @@ -20910,17 +16251,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentAudioStream(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SetCurrentAudioStream(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SetCurrentAudioStream(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn AudioStreamsAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn AudioStreamsAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::AudioStreamsAvailable(this) { Ok(ok__) => { @@ -20930,10 +16265,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AnglesAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn AnglesAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::AnglesAvailable(this) { Ok(ok__) => { @@ -20943,10 +16275,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAngle(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn CurrentAngle(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::CurrentAngle(this) { Ok(ok__) => { @@ -20956,17 +16285,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentAngle(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SetCurrentAngle(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SetCurrentAngle(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn SubpictureStreamsAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SubpictureStreamsAvailable(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::SubpictureStreamsAvailable(this) { Ok(ok__) => { @@ -20976,10 +16299,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubpictureOn(this: *mut core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SubpictureOn(this: *mut core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::SubpictureOn(this) { Ok(ok__) => { @@ -20989,17 +16309,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubpictureOn(this: *mut core::ffi::c_void, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SetSubpictureOn(this: *mut core::ffi::c_void, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SetSubpictureOn(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn DVDUniqueID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DVDUniqueID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DVDUniqueID(this) { Ok(ok__) => { @@ -21009,38 +16323,23 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AcceptParentalLevelChange(this: *mut core::ffi::c_void, faccept: super::super::super::Foundation::VARIANT_BOOL, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn AcceptParentalLevelChange(this: *mut core::ffi::c_void, faccept: super::super::super::Foundation::VARIANT_BOOL, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::AcceptParentalLevelChange(this, core::mem::transmute_copy(&faccept), core::mem::transmute(&strusername), core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn NotifyParentalLevelChange(this: *mut core::ffi::c_void, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn NotifyParentalLevelChange(this: *mut core::ffi::c_void, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::NotifyParentalLevelChange(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn SelectParentalCountry(this: *mut core::ffi::c_void, lcountry: i32, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SelectParentalCountry(this: *mut core::ffi::c_void, lcountry: i32, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SelectParentalCountry(this, core::mem::transmute_copy(&lcountry), core::mem::transmute(&strusername), core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn SelectParentalLevel(this: *mut core::ffi::c_void, lparentallevel: i32, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SelectParentalLevel(this: *mut core::ffi::c_void, lparentallevel: i32, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SelectParentalLevel(this, core::mem::transmute_copy(&lparentallevel), core::mem::transmute(&strusername), core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn get_TitleParentalLevels(this: *mut core::ffi::c_void, ltitle: i32, plparentallevels: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_TitleParentalLevels(this: *mut core::ffi::c_void, ltitle: i32, plparentallevels: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_TitleParentalLevels(this, core::mem::transmute_copy(<itle)) { Ok(ok__) => { @@ -21050,10 +16349,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayerParentalCountry(this: *mut core::ffi::c_void, plcountrycode: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayerParentalCountry(this: *mut core::ffi::c_void, plcountrycode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::PlayerParentalCountry(this) { Ok(ok__) => { @@ -21063,10 +16359,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayerParentalLevel(this: *mut core::ffi::c_void, plparentallevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PlayerParentalLevel(this: *mut core::ffi::c_void, plparentallevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::PlayerParentalLevel(this) { Ok(ok__) => { @@ -21076,17 +16369,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Eject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn Eject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::Eject(this).into() } - unsafe extern "system" fn UOPValid(this: *mut core::ffi::c_void, luop: i32, pfvalid: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn UOPValid(this: *mut core::ffi::c_void, luop: i32, pfvalid: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::UOPValid(this, core::mem::transmute_copy(&luop)) { Ok(ok__) => { @@ -21096,10 +16383,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_SPRM(this: *mut core::ffi::c_void, lindex: i32, pssprm: *mut i16) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_SPRM(this: *mut core::ffi::c_void, lindex: i32, pssprm: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_SPRM(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -21109,10 +16393,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_GPRM(this: *mut core::ffi::c_void, lindex: i32, pssprm: *mut i16) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_GPRM(this: *mut core::ffi::c_void, lindex: i32, pssprm: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_GPRM(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -21122,17 +16403,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_GPRM(this: *mut core::ffi::c_void, lindex: i32, svalue: i16) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn put_GPRM(this: *mut core::ffi::c_void, lindex: i32, svalue: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::put_GPRM(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&svalue)).into() } - unsafe extern "system" fn get_DVDTextStringType(this: *mut core::ffi::c_void, llangindex: i32, lstringindex: i32, ptype: *mut DVDTextStringType) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_DVDTextStringType(this: *mut core::ffi::c_void, llangindex: i32, lstringindex: i32, ptype: *mut DVDTextStringType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_DVDTextStringType(this, core::mem::transmute_copy(&llangindex), core::mem::transmute_copy(&lstringindex)) { Ok(ok__) => { @@ -21142,10 +16417,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_DVDTextString(this: *mut core::ffi::c_void, llangindex: i32, lstringindex: i32, pstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_DVDTextString(this: *mut core::ffi::c_void, llangindex: i32, lstringindex: i32, pstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_DVDTextString(this, core::mem::transmute_copy(&llangindex), core::mem::transmute_copy(&lstringindex)) { Ok(ok__) => { @@ -21155,10 +16427,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_DVDTextNumberOfStrings(this: *mut core::ffi::c_void, llangindex: i32, plnumofstrings: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_DVDTextNumberOfStrings(this: *mut core::ffi::c_void, llangindex: i32, plnumofstrings: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_DVDTextNumberOfStrings(this, core::mem::transmute_copy(&llangindex)) { Ok(ok__) => { @@ -21168,10 +16437,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DVDTextNumberOfLanguages(this: *mut core::ffi::c_void, plnumoflangs: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DVDTextNumberOfLanguages(this: *mut core::ffi::c_void, plnumoflangs: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DVDTextNumberOfLanguages(this) { Ok(ok__) => { @@ -21181,10 +16447,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_DVDTextLanguageLCID(this: *mut core::ffi::c_void, llangindex: i32, lcid: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_DVDTextLanguageLCID(this: *mut core::ffi::c_void, llangindex: i32, lcid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_DVDTextLanguageLCID(this, core::mem::transmute_copy(&llangindex)) { Ok(ok__) => { @@ -21194,17 +16457,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegionChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn RegionChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::RegionChange(this).into() } - unsafe extern "system" fn DVDAdm(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DVDAdm(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DVDAdm(this) { Ok(ok__) => { @@ -21214,45 +16471,27 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteBookmark(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DeleteBookmark(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::DeleteBookmark(this).into() } - unsafe extern "system" fn RestoreBookmark(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn RestoreBookmark(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::RestoreBookmark(this).into() } - unsafe extern "system" fn SaveBookmark(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SaveBookmark(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SaveBookmark(this).into() } - unsafe extern "system" fn SelectDefaultAudioLanguage(this: *mut core::ffi::c_void, lang: i32, ext: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SelectDefaultAudioLanguage(this: *mut core::ffi::c_void, lang: i32, ext: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SelectDefaultAudioLanguage(this, core::mem::transmute_copy(&lang), core::mem::transmute_copy(&ext)).into() } - unsafe extern "system" fn SelectDefaultSubpictureLanguage(this: *mut core::ffi::c_void, lang: i32, ext: DVDSPExt) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SelectDefaultSubpictureLanguage(this: *mut core::ffi::c_void, lang: i32, ext: DVDSPExt) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SelectDefaultSubpictureLanguage(this, core::mem::transmute_copy(&lang), core::mem::transmute_copy(&ext)).into() } - unsafe extern "system" fn PreferredSubpictureStream(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn PreferredSubpictureStream(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::PreferredSubpictureStream(this) { Ok(ok__) => { @@ -21262,10 +16501,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultMenuLanguage(this: *mut core::ffi::c_void, lang: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DefaultMenuLanguage(this: *mut core::ffi::c_void, lang: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DefaultMenuLanguage(this) { Ok(ok__) => { @@ -21275,17 +16511,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultMenuLanguage(this: *mut core::ffi::c_void, lang: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SetDefaultMenuLanguage(this: *mut core::ffi::c_void, lang: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SetDefaultMenuLanguage(this, core::mem::transmute_copy(&lang)).into() } - unsafe extern "system" fn DefaultSubpictureLanguage(this: *mut core::ffi::c_void, lang: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DefaultSubpictureLanguage(this: *mut core::ffi::c_void, lang: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DefaultSubpictureLanguage(this) { Ok(ok__) => { @@ -21295,10 +16525,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultAudioLanguage(this: *mut core::ffi::c_void, lang: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DefaultAudioLanguage(this: *mut core::ffi::c_void, lang: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DefaultAudioLanguage(this) { Ok(ok__) => { @@ -21308,10 +16535,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultSubpictureLanguageExt(this: *mut core::ffi::c_void, ext: *mut DVDSPExt) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DefaultSubpictureLanguageExt(this: *mut core::ffi::c_void, ext: *mut DVDSPExt) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DefaultSubpictureLanguageExt(this) { Ok(ok__) => { @@ -21321,10 +16545,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultAudioLanguageExt(this: *mut core::ffi::c_void, ext: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DefaultAudioLanguageExt(this: *mut core::ffi::c_void, ext: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DefaultAudioLanguageExt(this) { Ok(ok__) => { @@ -21334,10 +16555,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_LanguageFromLCID(this: *mut core::ffi::c_void, lcid: i32, lang: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_LanguageFromLCID(this: *mut core::ffi::c_void, lcid: i32, lang: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_LanguageFromLCID(this, core::mem::transmute_copy(&lcid)) { Ok(ok__) => { @@ -21347,10 +16565,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KaraokeAudioPresentationMode(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn KaraokeAudioPresentationMode(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::KaraokeAudioPresentationMode(this) { Ok(ok__) => { @@ -21360,17 +16575,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKaraokeAudioPresentationMode(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SetKaraokeAudioPresentationMode(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SetKaraokeAudioPresentationMode(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn get_KaraokeChannelContent(this: *mut core::ffi::c_void, lstream: i32, lchan: i32, lcontent: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_KaraokeChannelContent(this: *mut core::ffi::c_void, lstream: i32, lchan: i32, lcontent: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_KaraokeChannelContent(this, core::mem::transmute_copy(&lstream), core::mem::transmute_copy(&lchan)) { Ok(ok__) => { @@ -21380,10 +16589,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_KaraokeChannelAssignment(this: *mut core::ffi::c_void, lstream: i32, lchannelassignment: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_KaraokeChannelAssignment(this: *mut core::ffi::c_void, lstream: i32, lchannelassignment: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_KaraokeChannelAssignment(this, core::mem::transmute_copy(&lstream)) { Ok(ok__) => { @@ -21393,17 +16599,11 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RestorePreferredSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn RestorePreferredSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::RestorePreferredSettings(this).into() } - unsafe extern "system" fn get_ButtonRect(this: *mut core::ffi::c_void, lbutton: i32, prect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn get_ButtonRect(this: *mut core::ffi::c_void, lbutton: i32, prect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::get_ButtonRect(this, core::mem::transmute_copy(&lbutton)) { Ok(ok__) => { @@ -21413,10 +16613,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DVDScreenInMouseCoordinates(this: *mut core::ffi::c_void, pprect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn DVDScreenInMouseCoordinates(this: *mut core::ffi::c_void, pprect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVD_Impl::DVDScreenInMouseCoordinates(this) { Ok(ok__) => { @@ -21426,10 +16623,7 @@ impl IMSVidWebDVD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDVDScreenInMouseCoordinates(this: *mut core::ffi::c_void, prect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD_Impl, - { + unsafe extern "system" fn SetDVDScreenInMouseCoordinates(this: *mut core::ffi::c_void, prect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD_Impl::SetDVDScreenInMouseCoordinates(this, windows_core::from_raw_borrowed(&prect)).into() } @@ -21545,21 +16739,12 @@ pub trait IMSVidWebDVD2_Impl: Sized + IMSVidWebDVD_Impl { impl windows_core::RuntimeName for IMSVidWebDVD2 {} #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVD2_Vtbl { - pub const fn new() -> IMSVidWebDVD2_Vtbl - where - Identity: IMSVidWebDVD2_Impl, - { - unsafe extern "system" fn get_Bookmark(this: *mut core::ffi::c_void, ppdata: *mut *mut u8, pdatalength: *mut u32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD2_Impl, - { + pub const fn new() -> IMSVidWebDVD2_Vtbl { + unsafe extern "system" fn get_Bookmark(this: *mut core::ffi::c_void, ppdata: *mut *mut u8, pdatalength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD2_Impl::get_Bookmark(this, core::mem::transmute_copy(&ppdata), core::mem::transmute_copy(&pdatalength)).into() } - unsafe extern "system" fn put_Bookmark(this: *mut core::ffi::c_void, pdata: *const u8, dwdatalength: u32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVD2_Impl, - { + unsafe extern "system" fn put_Bookmark(this: *mut core::ffi::c_void, pdata: *const u8, dwdatalength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVD2_Impl::put_Bookmark(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&dwdatalength)).into() } @@ -21594,35 +16779,20 @@ pub trait IMSVidWebDVDAdm_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IMSVidWebDVDAdm {} #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVDAdm_Vtbl { - pub const fn new() -> IMSVidWebDVDAdm_Vtbl - where - Identity: IMSVidWebDVDAdm_Impl, - { - unsafe extern "system" fn ChangePassword(this: *mut core::ffi::c_void, strusername: core::mem::MaybeUninit, strold: core::mem::MaybeUninit, strnew: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + pub const fn new() -> IMSVidWebDVDAdm_Vtbl { + unsafe extern "system" fn ChangePassword(this: *mut core::ffi::c_void, strusername: core::mem::MaybeUninit, strold: core::mem::MaybeUninit, strnew: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDAdm_Impl::ChangePassword(this, core::mem::transmute(&strusername), core::mem::transmute(&strold), core::mem::transmute(&strnew)).into() } - unsafe extern "system" fn SaveParentalLevel(this: *mut core::ffi::c_void, level: i32, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn SaveParentalLevel(this: *mut core::ffi::c_void, level: i32, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDAdm_Impl::SaveParentalLevel(this, core::mem::transmute_copy(&level), core::mem::transmute(&strusername), core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn SaveParentalCountry(this: *mut core::ffi::c_void, country: i32, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn SaveParentalCountry(this: *mut core::ffi::c_void, country: i32, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDAdm_Impl::SaveParentalCountry(this, core::mem::transmute_copy(&country), core::mem::transmute(&strusername), core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn ConfirmPassword(this: *mut core::ffi::c_void, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn ConfirmPassword(this: *mut core::ffi::c_void, strusername: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVDAdm_Impl::ConfirmPassword(this, core::mem::transmute(&strusername), core::mem::transmute(&strpassword)) { Ok(ok__) => { @@ -21632,10 +16802,7 @@ impl IMSVidWebDVDAdm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentalLevel(this: *mut core::ffi::c_void, llevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn GetParentalLevel(this: *mut core::ffi::c_void, llevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVDAdm_Impl::GetParentalLevel(this) { Ok(ok__) => { @@ -21645,10 +16812,7 @@ impl IMSVidWebDVDAdm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentalCountry(this: *mut core::ffi::c_void, lcountry: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn GetParentalCountry(this: *mut core::ffi::c_void, lcountry: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVDAdm_Impl::GetParentalCountry(this) { Ok(ok__) => { @@ -21658,10 +16822,7 @@ impl IMSVidWebDVDAdm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultAudioLCID(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn DefaultAudioLCID(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVDAdm_Impl::DefaultAudioLCID(this) { Ok(ok__) => { @@ -21671,17 +16832,11 @@ impl IMSVidWebDVDAdm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultAudioLCID(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn SetDefaultAudioLCID(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDAdm_Impl::SetDefaultAudioLCID(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn DefaultSubpictureLCID(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn DefaultSubpictureLCID(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVDAdm_Impl::DefaultSubpictureLCID(this) { Ok(ok__) => { @@ -21691,17 +16846,11 @@ impl IMSVidWebDVDAdm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultSubpictureLCID(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn SetDefaultSubpictureLCID(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDAdm_Impl::SetDefaultSubpictureLCID(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn DefaultMenuLCID(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn DefaultMenuLCID(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVDAdm_Impl::DefaultMenuLCID(this) { Ok(ok__) => { @@ -21711,17 +16860,11 @@ impl IMSVidWebDVDAdm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultMenuLCID(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn SetDefaultMenuLCID(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDAdm_Impl::SetDefaultMenuLCID(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn BookmarkOnStop(this: *mut core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn BookmarkOnStop(this: *mut core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidWebDVDAdm_Impl::BookmarkOnStop(this) { Ok(ok__) => { @@ -21731,10 +16874,7 @@ impl IMSVidWebDVDAdm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBookmarkOnStop(this: *mut core::ffi::c_void, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDAdm_Impl, - { + unsafe extern "system" fn SetBookmarkOnStop(this: *mut core::ffi::c_void, newval: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDAdm_Impl::SetBookmarkOnStop(this, core::mem::transmute_copy(&newval)).into() } @@ -21790,168 +16930,96 @@ pub trait IMSVidWebDVDEvent_Impl: Sized + IMSVidPlaybackEvent_Impl { impl windows_core::RuntimeName for IMSVidWebDVDEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVDEvent_Vtbl { - pub const fn new() -> IMSVidWebDVDEvent_Vtbl - where - Identity: IMSVidWebDVDEvent_Impl, - { - unsafe extern "system" fn DVDNotify(this: *mut core::ffi::c_void, leventcode: i32, lparam1: core::mem::MaybeUninit, lparam2: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + pub const fn new() -> IMSVidWebDVDEvent_Vtbl { + unsafe extern "system" fn DVDNotify(this: *mut core::ffi::c_void, leventcode: i32, lparam1: core::mem::MaybeUninit, lparam2: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::DVDNotify(this, core::mem::transmute_copy(&leventcode), core::mem::transmute(&lparam1), core::mem::transmute(&lparam2)).into() } - unsafe extern "system" fn PlayForwards(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn PlayForwards(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::PlayForwards(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn PlayBackwards(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn PlayBackwards(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::PlayBackwards(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn ShowMenu(this: *mut core::ffi::c_void, menuid: DVDMenuIDConstants, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn ShowMenu(this: *mut core::ffi::c_void, menuid: DVDMenuIDConstants, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::ShowMenu(this, core::mem::transmute_copy(&menuid), core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::Resume(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn SelectOrActivateButton(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn SelectOrActivateButton(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::SelectOrActivateButton(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn StillOff(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn StillOff(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::StillOff(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn PauseOn(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn PauseOn(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::PauseOn(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn ChangeCurrentAudioStream(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn ChangeCurrentAudioStream(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::ChangeCurrentAudioStream(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn ChangeCurrentSubpictureStream(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn ChangeCurrentSubpictureStream(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::ChangeCurrentSubpictureStream(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn ChangeCurrentAngle(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn ChangeCurrentAngle(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::ChangeCurrentAngle(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn PlayAtTimeInTitle(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn PlayAtTimeInTitle(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::PlayAtTimeInTitle(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn PlayAtTime(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn PlayAtTime(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::PlayAtTime(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn PlayChapterInTitle(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn PlayChapterInTitle(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::PlayChapterInTitle(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn PlayChapter(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn PlayChapter(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::PlayChapter(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn ReplayChapter(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn ReplayChapter(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::ReplayChapter(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn PlayNextChapter(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn PlayNextChapter(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::PlayNextChapter(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::Stop(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn ReturnFromSubmenu(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn ReturnFromSubmenu(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::ReturnFromSubmenu(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn PlayTitle(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn PlayTitle(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::PlayTitle(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn PlayPrevChapter(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn PlayPrevChapter(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::PlayPrevChapter(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn ChangeKaraokePresMode(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn ChangeKaraokePresMode(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::ChangeKaraokePresMode(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn ChangeVideoPresMode(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSVidWebDVDEvent_Impl, - { + unsafe extern "system" fn ChangeVideoPresMode(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidWebDVDEvent_Impl::ChangeVideoPresMode(this, core::mem::transmute_copy(&benabled)).into() } @@ -21994,14 +17062,8 @@ pub trait IMSVidXDS_Impl: Sized + IMSVidFeature_Impl { impl windows_core::RuntimeName for IMSVidXDS {} #[cfg(feature = "Win32_System_Com")] impl IMSVidXDS_Vtbl { - pub const fn new() -> IMSVidXDS_Vtbl - where - Identity: IMSVidXDS_Impl, - { - unsafe extern "system" fn ChannelChangeInterface(this: *mut core::ffi::c_void, punkcc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSVidXDS_Impl, - { + pub const fn new() -> IMSVidXDS_Vtbl { + unsafe extern "system" fn ChannelChangeInterface(this: *mut core::ffi::c_void, punkcc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSVidXDS_Impl::ChannelChangeInterface(this) { Ok(ok__) => { @@ -22025,14 +17087,8 @@ pub trait IMSVidXDSEvent_Impl: Sized + IMSVidFeatureEvent_Impl { impl windows_core::RuntimeName for IMSVidXDSEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSVidXDSEvent_Vtbl { - pub const fn new() -> IMSVidXDSEvent_Vtbl - where - Identity: IMSVidXDSEvent_Impl, - { - unsafe extern "system" fn RatingChange(this: *mut core::ffi::c_void, prevratingsystem: EnTvRat_System, prevlevel: EnTvRat_GenericLevel, prevattributes: BfEnTvRat_GenericAttributes, newratingsystem: EnTvRat_System, newlevel: EnTvRat_GenericLevel, newattributes: BfEnTvRat_GenericAttributes) -> windows_core::HRESULT - where - Identity: IMSVidXDSEvent_Impl, - { + pub const fn new() -> IMSVidXDSEvent_Vtbl { + unsafe extern "system" fn RatingChange(this: *mut core::ffi::c_void, prevratingsystem: EnTvRat_System, prevlevel: EnTvRat_GenericLevel, prevattributes: BfEnTvRat_GenericAttributes, newratingsystem: EnTvRat_System, newlevel: EnTvRat_GenericLevel, newattributes: BfEnTvRat_GenericAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSVidXDSEvent_Impl::RatingChange(this, core::mem::transmute_copy(&prevratingsystem), core::mem::transmute_copy(&prevlevel), core::mem::transmute_copy(&prevattributes), core::mem::transmute_copy(&newratingsystem), core::mem::transmute_copy(&newlevel), core::mem::transmute_copy(&newattributes)).into() } @@ -22042,19 +17098,13 @@ impl IMSVidXDSEvent_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMceBurnerControl_Impl: Sized { +pub trait IMceBurnerControl_Impl: Sized + windows_core::IUnknownImpl { fn GetBurnerNoDecryption(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMceBurnerControl {} impl IMceBurnerControl_Vtbl { - pub const fn new() -> IMceBurnerControl_Vtbl - where - Identity: IMceBurnerControl_Impl, - { - unsafe extern "system" fn GetBurnerNoDecryption(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMceBurnerControl_Impl, - { + pub const fn new() -> IMceBurnerControl_Vtbl { + unsafe extern "system" fn GetBurnerNoDecryption(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMceBurnerControl_Impl::GetBurnerNoDecryption(this).into() } @@ -22064,21 +17114,15 @@ impl IMceBurnerControl_Vtbl { iid == &::IID } } -pub trait IMpeg2Data_Impl: Sized { +pub trait IMpeg2Data_Impl: Sized + windows_core::IUnknownImpl { fn GetSection(&self, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, dwtimeout: u32) -> windows_core::Result; fn GetTable(&self, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, dwtimeout: u32) -> windows_core::Result; fn GetStreamOfSections(&self, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: super::super::super::Foundation::HANDLE) -> windows_core::Result; } impl windows_core::RuntimeName for IMpeg2Data {} impl IMpeg2Data_Vtbl { - pub const fn new() -> IMpeg2Data_Vtbl - where - Identity: IMpeg2Data_Impl, - { - unsafe extern "system" fn GetSection(this: *mut core::ffi::c_void, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, dwtimeout: u32, ppsectionlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMpeg2Data_Impl, - { + pub const fn new() -> IMpeg2Data_Vtbl { + unsafe extern "system" fn GetSection(this: *mut core::ffi::c_void, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, dwtimeout: u32, ppsectionlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMpeg2Data_Impl::GetSection(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&tid), core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -22088,10 +17132,7 @@ impl IMpeg2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTable(this: *mut core::ffi::c_void, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, dwtimeout: u32, ppsectionlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMpeg2Data_Impl, - { + unsafe extern "system" fn GetTable(this: *mut core::ffi::c_void, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, dwtimeout: u32, ppsectionlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMpeg2Data_Impl::GetTable(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&tid), core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -22101,10 +17142,7 @@ impl IMpeg2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamOfSections(this: *mut core::ffi::c_void, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: super::super::super::Foundation::HANDLE, ppmpegstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMpeg2Data_Impl, - { + unsafe extern "system" fn GetStreamOfSections(this: *mut core::ffi::c_void, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: super::super::super::Foundation::HANDLE, ppmpegstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMpeg2Data_Impl::GetStreamOfSections(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&tid), core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&hdatareadyevent)) { Ok(ok__) => { @@ -22125,27 +17163,18 @@ impl IMpeg2Data_Vtbl { iid == &::IID } } -pub trait IMpeg2Stream_Impl: Sized { +pub trait IMpeg2Stream_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, requesttype: MPEG_REQUEST_TYPE, pmpeg2data: Option<&IMpeg2Data>, pcontext: *const MPEG_CONTEXT, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn SupplyDataBuffer(&self, pstreambuffer: *const MPEG_STREAM_BUFFER) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMpeg2Stream {} impl IMpeg2Stream_Vtbl { - pub const fn new() -> IMpeg2Stream_Vtbl - where - Identity: IMpeg2Stream_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, requesttype: MPEG_REQUEST_TYPE, pmpeg2data: *mut core::ffi::c_void, pcontext: *const MPEG_CONTEXT, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IMpeg2Stream_Impl, - { + pub const fn new() -> IMpeg2Stream_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, requesttype: MPEG_REQUEST_TYPE, pmpeg2data: *mut core::ffi::c_void, pcontext: *const MPEG_CONTEXT, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpeg2Stream_Impl::Initialize(this, core::mem::transmute_copy(&requesttype), windows_core::from_raw_borrowed(&pmpeg2data), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&pid), core::mem::transmute_copy(&tid), core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&hdatareadyevent)).into() } - unsafe extern "system" fn SupplyDataBuffer(this: *mut core::ffi::c_void, pstreambuffer: *const MPEG_STREAM_BUFFER) -> windows_core::HRESULT - where - Identity: IMpeg2Stream_Impl, - { + unsafe extern "system" fn SupplyDataBuffer(this: *mut core::ffi::c_void, pstreambuffer: *const MPEG_STREAM_BUFFER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpeg2Stream_Impl::SupplyDataBuffer(this, core::mem::transmute_copy(&pstreambuffer)).into() } @@ -22159,7 +17188,7 @@ impl IMpeg2Stream_Vtbl { iid == &::IID } } -pub trait IMpeg2TableFilter_Impl: Sized { +pub trait IMpeg2TableFilter_Impl: Sized + windows_core::IUnknownImpl { fn AddPID(&self, p: u16) -> windows_core::Result<()>; fn AddTable(&self, p: u16, t: u8) -> windows_core::Result<()>; fn AddExtension(&self, p: u16, t: u8, e: u16) -> windows_core::Result<()>; @@ -22169,49 +17198,28 @@ pub trait IMpeg2TableFilter_Impl: Sized { } impl windows_core::RuntimeName for IMpeg2TableFilter {} impl IMpeg2TableFilter_Vtbl { - pub const fn new() -> IMpeg2TableFilter_Vtbl - where - Identity: IMpeg2TableFilter_Impl, - { - unsafe extern "system" fn AddPID(this: *mut core::ffi::c_void, p: u16) -> windows_core::HRESULT - where - Identity: IMpeg2TableFilter_Impl, - { + pub const fn new() -> IMpeg2TableFilter_Vtbl { + unsafe extern "system" fn AddPID(this: *mut core::ffi::c_void, p: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpeg2TableFilter_Impl::AddPID(this, core::mem::transmute_copy(&p)).into() } - unsafe extern "system" fn AddTable(this: *mut core::ffi::c_void, p: u16, t: u8) -> windows_core::HRESULT - where - Identity: IMpeg2TableFilter_Impl, - { + unsafe extern "system" fn AddTable(this: *mut core::ffi::c_void, p: u16, t: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpeg2TableFilter_Impl::AddTable(this, core::mem::transmute_copy(&p), core::mem::transmute_copy(&t)).into() } - unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, p: u16, t: u8, e: u16) -> windows_core::HRESULT - where - Identity: IMpeg2TableFilter_Impl, - { + unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, p: u16, t: u8, e: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpeg2TableFilter_Impl::AddExtension(this, core::mem::transmute_copy(&p), core::mem::transmute_copy(&t), core::mem::transmute_copy(&e)).into() } - unsafe extern "system" fn RemovePID(this: *mut core::ffi::c_void, p: u16) -> windows_core::HRESULT - where - Identity: IMpeg2TableFilter_Impl, - { + unsafe extern "system" fn RemovePID(this: *mut core::ffi::c_void, p: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpeg2TableFilter_Impl::RemovePID(this, core::mem::transmute_copy(&p)).into() } - unsafe extern "system" fn RemoveTable(this: *mut core::ffi::c_void, p: u16, t: u8) -> windows_core::HRESULT - where - Identity: IMpeg2TableFilter_Impl, - { + unsafe extern "system" fn RemoveTable(this: *mut core::ffi::c_void, p: u16, t: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpeg2TableFilter_Impl::RemoveTable(this, core::mem::transmute_copy(&p), core::mem::transmute_copy(&t)).into() } - unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, p: u16, t: u8, e: u16) -> windows_core::HRESULT - where - Identity: IMpeg2TableFilter_Impl, - { + unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, p: u16, t: u8, e: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpeg2TableFilter_Impl::RemoveExtension(this, core::mem::transmute_copy(&p), core::mem::transmute_copy(&t), core::mem::transmute_copy(&e)).into() } @@ -22229,7 +17237,7 @@ impl IMpeg2TableFilter_Vtbl { iid == &::IID } } -pub trait IPAT_Impl: Sized { +pub trait IPAT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetTransportStreamId(&self) -> windows_core::Result; fn GetVersionNumber(&self) -> windows_core::Result; @@ -22244,21 +17252,12 @@ pub trait IPAT_Impl: Sized { } impl windows_core::RuntimeName for IPAT {} impl IPAT_Vtbl { - pub const fn new() -> IPAT_Vtbl - where - Identity: IPAT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + pub const fn new() -> IPAT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPAT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + unsafe extern "system" fn GetTransportStreamId(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPAT_Impl::GetTransportStreamId(this) { Ok(ok__) => { @@ -22268,10 +17267,7 @@ impl IPAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPAT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -22281,10 +17277,7 @@ impl IPAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPAT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -22294,10 +17287,7 @@ impl IPAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordProgramNumber(this: *mut core::ffi::c_void, dwindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + unsafe extern "system" fn GetRecordProgramNumber(this: *mut core::ffi::c_void, dwindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPAT_Impl::GetRecordProgramNumber(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -22307,10 +17297,7 @@ impl IPAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordProgramMapPid(this: *mut core::ffi::c_void, dwindex: u32, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + unsafe extern "system" fn GetRecordProgramMapPid(this: *mut core::ffi::c_void, dwindex: u32, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPAT_Impl::GetRecordProgramMapPid(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -22320,10 +17307,7 @@ impl IPAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindRecordProgramMapPid(this: *mut core::ffi::c_void, wprogramnumber: u16, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + unsafe extern "system" fn FindRecordProgramMapPid(this: *mut core::ffi::c_void, wprogramnumber: u16, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPAT_Impl::FindRecordProgramMapPid(this, core::mem::transmute_copy(&wprogramnumber)) { Ok(ok__) => { @@ -22333,17 +17317,11 @@ impl IPAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPAT_Impl::RegisterForNextTable(this, core::mem::transmute_copy(&hnexttableavailable)).into() } - unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, pppat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, pppat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPAT_Impl::GetNextTable(this) { Ok(ok__) => { @@ -22353,17 +17331,11 @@ impl IPAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPAT_Impl::RegisterForWhenCurrent(this, core::mem::transmute_copy(&hnexttableiscurrent)).into() } - unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPAT_Impl, - { + unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPAT_Impl::ConvertNextToCurrent(this).into() } @@ -22386,21 +17358,15 @@ impl IPAT_Vtbl { iid == &::IID } } -pub trait IPBDAAttributesDescriptor_Impl: Sized { +pub trait IPBDAAttributesDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetAttributePayload(&self, ppbattributebuffer: *mut *mut u8, pdwattributelength: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPBDAAttributesDescriptor {} impl IPBDAAttributesDescriptor_Vtbl { - pub const fn new() -> IPBDAAttributesDescriptor_Vtbl - where - Identity: IPBDAAttributesDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IPBDAAttributesDescriptor_Impl, - { + pub const fn new() -> IPBDAAttributesDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDAAttributesDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -22410,10 +17376,7 @@ impl IPBDAAttributesDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IPBDAAttributesDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDAAttributesDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -22423,10 +17386,7 @@ impl IPBDAAttributesDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributePayload(this: *mut core::ffi::c_void, ppbattributebuffer: *mut *mut u8, pdwattributelength: *mut u32) -> windows_core::HRESULT - where - Identity: IPBDAAttributesDescriptor_Impl, - { + unsafe extern "system" fn GetAttributePayload(this: *mut core::ffi::c_void, ppbattributebuffer: *mut *mut u8, pdwattributelength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPBDAAttributesDescriptor_Impl::GetAttributePayload(this, core::mem::transmute_copy(&ppbattributebuffer), core::mem::transmute_copy(&pdwattributelength)).into() } @@ -22441,21 +17401,15 @@ impl IPBDAAttributesDescriptor_Vtbl { iid == &::IID } } -pub trait IPBDAEntitlementDescriptor_Impl: Sized { +pub trait IPBDAEntitlementDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetToken(&self, ppbtokenbuffer: *mut *mut u8, pdwtokenlength: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPBDAEntitlementDescriptor {} impl IPBDAEntitlementDescriptor_Vtbl { - pub const fn new() -> IPBDAEntitlementDescriptor_Vtbl - where - Identity: IPBDAEntitlementDescriptor_Impl, - { - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IPBDAEntitlementDescriptor_Impl, - { + pub const fn new() -> IPBDAEntitlementDescriptor_Vtbl { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDAEntitlementDescriptor_Impl::GetTag(this) { Ok(ok__) => { @@ -22465,10 +17419,7 @@ impl IPBDAEntitlementDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IPBDAEntitlementDescriptor_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDAEntitlementDescriptor_Impl::GetLength(this) { Ok(ok__) => { @@ -22478,10 +17429,7 @@ impl IPBDAEntitlementDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetToken(this: *mut core::ffi::c_void, ppbtokenbuffer: *mut *mut u8, pdwtokenlength: *mut u32) -> windows_core::HRESULT - where - Identity: IPBDAEntitlementDescriptor_Impl, - { + unsafe extern "system" fn GetToken(this: *mut core::ffi::c_void, ppbtokenbuffer: *mut *mut u8, pdwtokenlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPBDAEntitlementDescriptor_Impl::GetToken(this, core::mem::transmute_copy(&ppbtokenbuffer), core::mem::transmute_copy(&pdwtokenlength)).into() } @@ -22496,28 +17444,19 @@ impl IPBDAEntitlementDescriptor_Vtbl { iid == &::IID } } -pub trait IPBDASiParser_Impl: Sized { +pub trait IPBDASiParser_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetEIT(&self, dwsize: u32, pbuffer: *const u8) -> windows_core::Result; fn GetServices(&self, dwsize: u32, pbuffer: *const u8) -> windows_core::Result; } impl windows_core::RuntimeName for IPBDASiParser {} impl IPBDASiParser_Vtbl { - pub const fn new() -> IPBDASiParser_Vtbl - where - Identity: IPBDASiParser_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPBDASiParser_Impl, - { + pub const fn new() -> IPBDASiParser_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPBDASiParser_Impl::Initialize(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn GetEIT(this: *mut core::ffi::c_void, dwsize: u32, pbuffer: *const u8, ppeit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPBDASiParser_Impl, - { + unsafe extern "system" fn GetEIT(this: *mut core::ffi::c_void, dwsize: u32, pbuffer: *const u8, ppeit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDASiParser_Impl::GetEIT(this, core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pbuffer)) { Ok(ok__) => { @@ -22527,10 +17466,7 @@ impl IPBDASiParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServices(this: *mut core::ffi::c_void, dwsize: u32, pbuffer: *const u8, ppservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPBDASiParser_Impl, - { + unsafe extern "system" fn GetServices(this: *mut core::ffi::c_void, dwsize: u32, pbuffer: *const u8, ppservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDASiParser_Impl::GetServices(this, core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pbuffer)) { Ok(ok__) => { @@ -22551,7 +17487,7 @@ impl IPBDASiParser_Vtbl { iid == &::IID } } -pub trait IPBDA_EIT_Impl: Sized { +pub trait IPBDA_EIT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, size: u32, pbuffer: *const u8) -> windows_core::Result<()>; fn GetTableId(&self) -> windows_core::Result; fn GetVersionNumber(&self) -> windows_core::Result; @@ -22566,21 +17502,12 @@ pub trait IPBDA_EIT_Impl: Sized { } impl windows_core::RuntimeName for IPBDA_EIT {} impl IPBDA_EIT_Vtbl { - pub const fn new() -> IPBDA_EIT_Vtbl - where - Identity: IPBDA_EIT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, size: u32, pbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + pub const fn new() -> IPBDA_EIT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, size: u32, pbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPBDA_EIT_Impl::Initialize(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(&pbuffer)).into() } - unsafe extern "system" fn GetTableId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + unsafe extern "system" fn GetTableId(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_EIT_Impl::GetTableId(this) { Ok(ok__) => { @@ -22590,10 +17517,7 @@ impl IPBDA_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_EIT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -22603,10 +17527,7 @@ impl IPBDA_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceIdx(this: *mut core::ffi::c_void, plwval: *mut u64) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + unsafe extern "system" fn GetServiceIdx(this: *mut core::ffi::c_void, plwval: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_EIT_Impl::GetServiceIdx(this) { Ok(ok__) => { @@ -22616,10 +17537,7 @@ impl IPBDA_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_EIT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -22629,10 +17547,7 @@ impl IPBDA_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordEventId(this: *mut core::ffi::c_void, dwrecordindex: u32, plwval: *mut u64) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + unsafe extern "system" fn GetRecordEventId(this: *mut core::ffi::c_void, dwrecordindex: u32, plwval: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_EIT_Impl::GetRecordEventId(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -22642,10 +17557,7 @@ impl IPBDA_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordStartTime(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + unsafe extern "system" fn GetRecordStartTime(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_EIT_Impl::GetRecordStartTime(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -22655,10 +17567,7 @@ impl IPBDA_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDuration(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdval: *mut MPEG_TIME) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + unsafe extern "system" fn GetRecordDuration(this: *mut core::ffi::c_void, dwrecordindex: u32, pmdval: *mut MPEG_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_EIT_Impl::GetRecordDuration(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -22668,10 +17577,7 @@ impl IPBDA_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_EIT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -22681,10 +17587,7 @@ impl IPBDA_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_EIT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -22694,10 +17597,7 @@ impl IPBDA_EIT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPBDA_EIT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPBDA_EIT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } @@ -22720,28 +17620,19 @@ impl IPBDA_EIT_Vtbl { iid == &::IID } } -pub trait IPBDA_Services_Impl: Sized { +pub trait IPBDA_Services_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, size: u32, pbuffer: *const u8) -> windows_core::Result<()>; fn GetCountOfRecords(&self) -> windows_core::Result; fn GetRecordByIndex(&self, dwrecordindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IPBDA_Services {} impl IPBDA_Services_Vtbl { - pub const fn new() -> IPBDA_Services_Vtbl - where - Identity: IPBDA_Services_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, size: u32, pbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IPBDA_Services_Impl, - { + pub const fn new() -> IPBDA_Services_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, size: u32, pbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPBDA_Services_Impl::Initialize(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(&pbuffer)).into() } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IPBDA_Services_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_Services_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -22751,10 +17642,7 @@ impl IPBDA_Services_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, pul64serviceidx: *mut u64) -> windows_core::HRESULT - where - Identity: IPBDA_Services_Impl, - { + unsafe extern "system" fn GetRecordByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, pul64serviceidx: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPBDA_Services_Impl::GetRecordByIndex(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -22775,7 +17663,7 @@ impl IPBDA_Services_Vtbl { iid == &::IID } } -pub trait IPMT_Impl: Sized { +pub trait IPMT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetProgramNumber(&self) -> windows_core::Result; fn GetVersionNumber(&self) -> windows_core::Result; @@ -22798,21 +17686,12 @@ pub trait IPMT_Impl: Sized { } impl windows_core::RuntimeName for IPMT {} impl IPMT_Vtbl { - pub const fn new() -> IPMT_Vtbl - where - Identity: IPMT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + pub const fn new() -> IPMT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetProgramNumber(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetProgramNumber(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetProgramNumber(this) { Ok(ok__) => { @@ -22822,10 +17701,7 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -22835,10 +17711,7 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPcrPid(this: *mut core::ffi::c_void, ppidval: *mut u16) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetPcrPid(this: *mut core::ffi::c_void, ppidval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetPcrPid(this) { Ok(ok__) => { @@ -22848,10 +17721,7 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -22861,10 +17731,7 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -22874,17 +17741,11 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetCountOfRecords(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetCountOfRecords(this) { Ok(ok__) => { @@ -22894,10 +17755,7 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordStreamType(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetRecordStreamType(this: *mut core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetRecordStreamType(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -22907,10 +17765,7 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordElementaryPid(this: *mut core::ffi::c_void, dwrecordindex: u32, ppidval: *mut u16) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetRecordElementaryPid(this: *mut core::ffi::c_void, dwrecordindex: u32, ppidval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetRecordElementaryPid(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -22920,10 +17775,7 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetRecordCountOfDescriptors(this: *mut core::ffi::c_void, dwrecordindex: u32, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetRecordCountOfDescriptors(this, core::mem::transmute_copy(&dwrecordindex)) { Ok(ok__) => { @@ -22933,10 +17785,7 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwdescindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByIndex(this: *mut core::ffi::c_void, dwrecordindex: u32, dwdescindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetRecordDescriptorByIndex(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&dwdescindex)) { Ok(ok__) => { @@ -22946,38 +17795,23 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetRecordDescriptorByTag(this: *mut core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMT_Impl::GetRecordDescriptorByTag(this, core::mem::transmute_copy(&dwrecordindex), core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn QueryServiceGatewayInfo(this: *mut core::ffi::c_void, ppdsmcclist: *mut *mut DSMCC_ELEMENT, puicount: *mut u32) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn QueryServiceGatewayInfo(this: *mut core::ffi::c_void, ppdsmcclist: *mut *mut DSMCC_ELEMENT, puicount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMT_Impl::QueryServiceGatewayInfo(this, core::mem::transmute_copy(&ppdsmcclist), core::mem::transmute_copy(&puicount)).into() } - unsafe extern "system" fn QueryMPEInfo(this: *mut core::ffi::c_void, ppmpelist: *mut *mut MPE_ELEMENT, puicount: *mut u32) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn QueryMPEInfo(this: *mut core::ffi::c_void, ppmpelist: *mut *mut MPE_ELEMENT, puicount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMT_Impl::QueryMPEInfo(this, core::mem::transmute_copy(&ppmpelist), core::mem::transmute_copy(&puicount)).into() } - unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMT_Impl::RegisterForNextTable(this, core::mem::transmute_copy(&hnexttableavailable)).into() } - unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, pppmt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, pppmt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMT_Impl::GetNextTable(this) { Ok(ok__) => { @@ -22987,17 +17821,11 @@ impl IPMT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMT_Impl::RegisterForWhenCurrent(this, core::mem::transmute_copy(&hnexttableiscurrent)).into() } - unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMT_Impl, - { + unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMT_Impl::ConvertNextToCurrent(this).into() } @@ -23028,19 +17856,13 @@ impl IPMT_Vtbl { iid == &::IID } } -pub trait IPSITables_Impl: Sized { +pub trait IPSITables_Impl: Sized + windows_core::IUnknownImpl { fn GetTable(&self, dwtsid: u32, dwtid_pid: u32, dwhashedver: u32, dwpara4: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IPSITables {} impl IPSITables_Vtbl { - pub const fn new() -> IPSITables_Vtbl - where - Identity: IPSITables_Impl, - { - unsafe extern "system" fn GetTable(this: *mut core::ffi::c_void, dwtsid: u32, dwtid_pid: u32, dwhashedver: u32, dwpara4: u32, ppiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPSITables_Impl, - { + pub const fn new() -> IPSITables_Vtbl { + unsafe extern "system" fn GetTable(this: *mut core::ffi::c_void, dwtsid: u32, dwtid_pid: u32, dwhashedver: u32, dwpara4: u32, ppiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPSITables_Impl::GetTable(this, core::mem::transmute_copy(&dwtsid), core::mem::transmute_copy(&dwtid_pid), core::mem::transmute_copy(&dwhashedver), core::mem::transmute_copy(&dwpara4)) { Ok(ok__) => { @@ -23056,27 +17878,18 @@ impl IPSITables_Vtbl { iid == &::IID } } -pub trait IPTFilterLicenseRenewal_Impl: Sized { +pub trait IPTFilterLicenseRenewal_Impl: Sized + windows_core::IUnknownImpl { fn RenewLicenses(&self, wszfilename: &windows_core::PCWSTR, wszexpiredkid: &windows_core::PCWSTR, dwcallersid: u32, bhighpriority: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; fn CancelLicenseRenewal(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPTFilterLicenseRenewal {} impl IPTFilterLicenseRenewal_Vtbl { - pub const fn new() -> IPTFilterLicenseRenewal_Vtbl - where - Identity: IPTFilterLicenseRenewal_Impl, - { - unsafe extern "system" fn RenewLicenses(this: *mut core::ffi::c_void, wszfilename: windows_core::PCWSTR, wszexpiredkid: windows_core::PCWSTR, dwcallersid: u32, bhighpriority: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPTFilterLicenseRenewal_Impl, - { + pub const fn new() -> IPTFilterLicenseRenewal_Vtbl { + unsafe extern "system" fn RenewLicenses(this: *mut core::ffi::c_void, wszfilename: windows_core::PCWSTR, wszexpiredkid: windows_core::PCWSTR, dwcallersid: u32, bhighpriority: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPTFilterLicenseRenewal_Impl::RenewLicenses(this, core::mem::transmute(&wszfilename), core::mem::transmute(&wszexpiredkid), core::mem::transmute_copy(&dwcallersid), core::mem::transmute_copy(&bhighpriority)).into() } - unsafe extern "system" fn CancelLicenseRenewal(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPTFilterLicenseRenewal_Impl, - { + unsafe extern "system" fn CancelLicenseRenewal(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPTFilterLicenseRenewal_Impl::CancelLicenseRenewal(this).into() } @@ -23100,28 +17913,16 @@ pub trait IPersistTuneXml_Impl: Sized + super::super::super::System::Com::IPersi impl windows_core::RuntimeName for IPersistTuneXml {} #[cfg(feature = "Win32_System_Com")] impl IPersistTuneXml_Vtbl { - pub const fn new() -> IPersistTuneXml_Vtbl - where - Identity: IPersistTuneXml_Impl, - { - unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistTuneXml_Impl, - { + pub const fn new() -> IPersistTuneXml_Vtbl { + unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistTuneXml_Impl::InitNew(this).into() } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPersistTuneXml_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistTuneXml_Impl::Load(this, core::mem::transmute(&varvalue)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pvarfragment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPersistTuneXml_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pvarfragment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistTuneXml_Impl::Save(this) { Ok(ok__) => { @@ -23142,19 +17943,13 @@ impl IPersistTuneXml_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPersistTuneXmlUtility_Impl: Sized { +pub trait IPersistTuneXmlUtility_Impl: Sized + windows_core::IUnknownImpl { fn Deserialize(&self, varvalue: &windows_core::VARIANT) -> windows_core::Result; } impl windows_core::RuntimeName for IPersistTuneXmlUtility {} impl IPersistTuneXmlUtility_Vtbl { - pub const fn new() -> IPersistTuneXmlUtility_Vtbl - where - Identity: IPersistTuneXmlUtility_Impl, - { - unsafe extern "system" fn Deserialize(this: *mut core::ffi::c_void, varvalue: core::mem::MaybeUninit, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistTuneXmlUtility_Impl, - { + pub const fn new() -> IPersistTuneXmlUtility_Vtbl { + unsafe extern "system" fn Deserialize(this: *mut core::ffi::c_void, varvalue: core::mem::MaybeUninit, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistTuneXmlUtility_Impl::Deserialize(this, core::mem::transmute(&varvalue)) { Ok(ok__) => { @@ -23178,14 +17973,8 @@ pub trait IPersistTuneXmlUtility2_Impl: Sized + IPersistTuneXmlUtility_Impl { impl windows_core::RuntimeName for IPersistTuneXmlUtility2 {} #[cfg(feature = "Win32_System_Com")] impl IPersistTuneXmlUtility2_Vtbl { - pub const fn new() -> IPersistTuneXmlUtility2_Vtbl - where - Identity: IPersistTuneXmlUtility2_Impl, - { - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pitunerequest: *mut core::ffi::c_void, pstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPersistTuneXmlUtility2_Impl, - { + pub const fn new() -> IPersistTuneXmlUtility2_Vtbl { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pitunerequest: *mut core::ffi::c_void, pstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistTuneXmlUtility2_Impl::Serialize(this, windows_core::from_raw_borrowed(&pitunerequest)) { Ok(ok__) => { @@ -23201,27 +17990,18 @@ impl IPersistTuneXmlUtility2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRegisterTuner_Impl: Sized { +pub trait IRegisterTuner_Impl: Sized + windows_core::IUnknownImpl { fn Register(&self, ptuner: Option<&ITuner>, pgraph: Option<&super::IGraphBuilder>) -> windows_core::Result<()>; fn Unregister(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRegisterTuner {} impl IRegisterTuner_Vtbl { - pub const fn new() -> IRegisterTuner_Vtbl - where - Identity: IRegisterTuner_Impl, - { - unsafe extern "system" fn Register(this: *mut core::ffi::c_void, ptuner: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisterTuner_Impl, - { + pub const fn new() -> IRegisterTuner_Vtbl { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void, ptuner: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisterTuner_Impl::Register(this, windows_core::from_raw_borrowed(&ptuner), windows_core::from_raw_borrowed(&pgraph)).into() } - unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisterTuner_Impl, - { + unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisterTuner_Impl::Unregister(this).into() } @@ -23235,7 +18015,7 @@ impl IRegisterTuner_Vtbl { iid == &::IID } } -pub trait ISBE2Crossbar_Impl: Sized { +pub trait ISBE2Crossbar_Impl: Sized + windows_core::IUnknownImpl { fn EnableDefaultMode(&self, defaultflags: u32) -> windows_core::Result<()>; fn GetInitialProfile(&self) -> windows_core::Result; fn SetOutputProfile(&self, pprofile: Option<&ISBE2MediaTypeProfile>, pcoutputpins: *mut u32, ppoutputpins: *mut Option) -> windows_core::Result<()>; @@ -23243,21 +18023,12 @@ pub trait ISBE2Crossbar_Impl: Sized { } impl windows_core::RuntimeName for ISBE2Crossbar {} impl ISBE2Crossbar_Vtbl { - pub const fn new() -> ISBE2Crossbar_Vtbl - where - Identity: ISBE2Crossbar_Impl, - { - unsafe extern "system" fn EnableDefaultMode(this: *mut core::ffi::c_void, defaultflags: u32) -> windows_core::HRESULT - where - Identity: ISBE2Crossbar_Impl, - { + pub const fn new() -> ISBE2Crossbar_Vtbl { + unsafe extern "system" fn EnableDefaultMode(this: *mut core::ffi::c_void, defaultflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2Crossbar_Impl::EnableDefaultMode(this, core::mem::transmute_copy(&defaultflags)).into() } - unsafe extern "system" fn GetInitialProfile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISBE2Crossbar_Impl, - { + unsafe extern "system" fn GetInitialProfile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISBE2Crossbar_Impl::GetInitialProfile(this) { Ok(ok__) => { @@ -23267,17 +18038,11 @@ impl ISBE2Crossbar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void, pcoutputpins: *mut u32, ppoutputpins: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISBE2Crossbar_Impl, - { + unsafe extern "system" fn SetOutputProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void, pcoutputpins: *mut u32, ppoutputpins: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2Crossbar_Impl::SetOutputProfile(this, windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&pcoutputpins), core::mem::transmute_copy(&ppoutputpins)).into() } - unsafe extern "system" fn EnumStreams(this: *mut core::ffi::c_void, ppstreams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISBE2Crossbar_Impl, - { + unsafe extern "system" fn EnumStreams(this: *mut core::ffi::c_void, ppstreams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISBE2Crossbar_Impl::EnumStreams(this) { Ok(ok__) => { @@ -23299,7 +18064,7 @@ impl ISBE2Crossbar_Vtbl { iid == &::IID } } -pub trait ISBE2EnumStream_Impl: Sized { +pub trait ISBE2EnumStream_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, crequest: u32, pstreamdesc: *mut SBE2_STREAM_DESC, pcreceived: *mut u32) -> windows_core::Result<()>; fn Skip(&self, crecords: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -23307,35 +18072,20 @@ pub trait ISBE2EnumStream_Impl: Sized { } impl windows_core::RuntimeName for ISBE2EnumStream {} impl ISBE2EnumStream_Vtbl { - pub const fn new() -> ISBE2EnumStream_Vtbl - where - Identity: ISBE2EnumStream_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crequest: u32, pstreamdesc: *mut SBE2_STREAM_DESC, pcreceived: *mut u32) -> windows_core::HRESULT - where - Identity: ISBE2EnumStream_Impl, - { + pub const fn new() -> ISBE2EnumStream_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crequest: u32, pstreamdesc: *mut SBE2_STREAM_DESC, pcreceived: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2EnumStream_Impl::Next(this, core::mem::transmute_copy(&crequest), core::mem::transmute_copy(&pstreamdesc), core::mem::transmute_copy(&pcreceived)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, crecords: u32) -> windows_core::HRESULT - where - Identity: ISBE2EnumStream_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, crecords: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2EnumStream_Impl::Skip(this, core::mem::transmute_copy(&crecords)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISBE2EnumStream_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2EnumStream_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienumstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISBE2EnumStream_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienumstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISBE2EnumStream_Impl::Clone(this) { Ok(ok__) => { @@ -23357,19 +18107,13 @@ impl ISBE2EnumStream_Vtbl { iid == &::IID } } -pub trait ISBE2FileScan_Impl: Sized { +pub trait ISBE2FileScan_Impl: Sized + windows_core::IUnknownImpl { fn RepairFile(&self, filename: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISBE2FileScan {} impl ISBE2FileScan_Vtbl { - pub const fn new() -> ISBE2FileScan_Vtbl - where - Identity: ISBE2FileScan_Impl, - { - unsafe extern "system" fn RepairFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISBE2FileScan_Impl, - { + pub const fn new() -> ISBE2FileScan_Vtbl { + unsafe extern "system" fn RepairFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2FileScan_Impl::RepairFile(this, core::mem::transmute(&filename)).into() } @@ -23379,19 +18123,13 @@ impl ISBE2FileScan_Vtbl { iid == &::IID } } -pub trait ISBE2GlobalEvent_Impl: Sized { +pub trait ISBE2GlobalEvent_Impl: Sized + windows_core::IUnknownImpl { fn GetEvent(&self, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISBE2GlobalEvent {} impl ISBE2GlobalEvent_Vtbl { - pub const fn new() -> ISBE2GlobalEvent_Vtbl - where - Identity: ISBE2GlobalEvent_Impl, - { - unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8) -> windows_core::HRESULT - where - Identity: ISBE2GlobalEvent_Impl, - { + pub const fn new() -> ISBE2GlobalEvent_Vtbl { + unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2GlobalEvent_Impl::GetEvent(this, core::mem::transmute_copy(&idevt), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4), core::mem::transmute_copy(&pspanning), core::mem::transmute_copy(&pcb), core::mem::transmute_copy(&pb)).into() } @@ -23406,14 +18144,8 @@ pub trait ISBE2GlobalEvent2_Impl: Sized + ISBE2GlobalEvent_Impl { } impl windows_core::RuntimeName for ISBE2GlobalEvent2 {} impl ISBE2GlobalEvent2_Vtbl { - pub const fn new() -> ISBE2GlobalEvent2_Vtbl - where - Identity: ISBE2GlobalEvent2_Impl, - { - unsafe extern "system" fn GetEventEx(this: *mut core::ffi::c_void, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8, pstreamtime: *mut i64) -> windows_core::HRESULT - where - Identity: ISBE2GlobalEvent2_Impl, - { + pub const fn new() -> ISBE2GlobalEvent2_Vtbl { + unsafe extern "system" fn GetEventEx(this: *mut core::ffi::c_void, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8, pstreamtime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2GlobalEvent2_Impl::GetEventEx(this, core::mem::transmute_copy(&idevt), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4), core::mem::transmute_copy(&pspanning), core::mem::transmute_copy(&pcb), core::mem::transmute_copy(&pb), core::mem::transmute_copy(&pstreamtime)).into() } @@ -23424,7 +18156,7 @@ impl ISBE2GlobalEvent2_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait ISBE2MediaTypeProfile_Impl: Sized { +pub trait ISBE2MediaTypeProfile_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamCount(&self) -> windows_core::Result; fn GetStream(&self, index: u32) -> windows_core::Result<*mut super::super::MediaFoundation::AM_MEDIA_TYPE>; fn AddStream(&self, pmediatype: *const super::super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; @@ -23434,14 +18166,8 @@ pub trait ISBE2MediaTypeProfile_Impl: Sized { impl windows_core::RuntimeName for ISBE2MediaTypeProfile {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl ISBE2MediaTypeProfile_Vtbl { - pub const fn new() -> ISBE2MediaTypeProfile_Vtbl - where - Identity: ISBE2MediaTypeProfile_Impl, - { - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ISBE2MediaTypeProfile_Impl, - { + pub const fn new() -> ISBE2MediaTypeProfile_Vtbl { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISBE2MediaTypeProfile_Impl::GetStreamCount(this) { Ok(ok__) => { @@ -23451,10 +18177,7 @@ impl ISBE2MediaTypeProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, index: u32, ppmediatype: *mut *mut super::super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: ISBE2MediaTypeProfile_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, index: u32, ppmediatype: *mut *mut super::super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISBE2MediaTypeProfile_Impl::GetStream(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -23464,17 +18187,11 @@ impl ISBE2MediaTypeProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, pmediatype: *const super::super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: ISBE2MediaTypeProfile_Impl, - { + unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, pmediatype: *const super::super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2MediaTypeProfile_Impl::AddStream(this, core::mem::transmute_copy(&pmediatype)).into() } - unsafe extern "system" fn DeleteStream(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: ISBE2MediaTypeProfile_Impl, - { + unsafe extern "system" fn DeleteStream(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2MediaTypeProfile_Impl::DeleteStream(this, core::mem::transmute_copy(&index)).into() } @@ -23490,19 +18207,13 @@ impl ISBE2MediaTypeProfile_Vtbl { iid == &::IID } } -pub trait ISBE2SpanningEvent_Impl: Sized { +pub trait ISBE2SpanningEvent_Impl: Sized + windows_core::IUnknownImpl { fn GetEvent(&self, idevt: *const windows_core::GUID, streamid: u32, pcb: *mut u32, pb: *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISBE2SpanningEvent {} impl ISBE2SpanningEvent_Vtbl { - pub const fn new() -> ISBE2SpanningEvent_Vtbl - where - Identity: ISBE2SpanningEvent_Impl, - { - unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, idevt: *const windows_core::GUID, streamid: u32, pcb: *mut u32, pb: *mut u8) -> windows_core::HRESULT - where - Identity: ISBE2SpanningEvent_Impl, - { + pub const fn new() -> ISBE2SpanningEvent_Vtbl { + unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, idevt: *const windows_core::GUID, streamid: u32, pcb: *mut u32, pb: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2SpanningEvent_Impl::GetEvent(this, core::mem::transmute_copy(&idevt), core::mem::transmute_copy(&streamid), core::mem::transmute_copy(&pcb), core::mem::transmute_copy(&pb)).into() } @@ -23512,35 +18223,23 @@ impl ISBE2SpanningEvent_Vtbl { iid == &::IID } } -pub trait ISBE2StreamMap_Impl: Sized { +pub trait ISBE2StreamMap_Impl: Sized + windows_core::IUnknownImpl { fn MapStream(&self, stream: u32) -> windows_core::Result<()>; fn UnmapStream(&self, stream: u32) -> windows_core::Result<()>; fn EnumMappedStreams(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISBE2StreamMap {} impl ISBE2StreamMap_Vtbl { - pub const fn new() -> ISBE2StreamMap_Vtbl - where - Identity: ISBE2StreamMap_Impl, - { - unsafe extern "system" fn MapStream(this: *mut core::ffi::c_void, stream: u32) -> windows_core::HRESULT - where - Identity: ISBE2StreamMap_Impl, - { + pub const fn new() -> ISBE2StreamMap_Vtbl { + unsafe extern "system" fn MapStream(this: *mut core::ffi::c_void, stream: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2StreamMap_Impl::MapStream(this, core::mem::transmute_copy(&stream)).into() } - unsafe extern "system" fn UnmapStream(this: *mut core::ffi::c_void, stream: u32) -> windows_core::HRESULT - where - Identity: ISBE2StreamMap_Impl, - { + unsafe extern "system" fn UnmapStream(this: *mut core::ffi::c_void, stream: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2StreamMap_Impl::UnmapStream(this, core::mem::transmute_copy(&stream)).into() } - unsafe extern "system" fn EnumMappedStreams(this: *mut core::ffi::c_void, ppstreams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISBE2StreamMap_Impl, - { + unsafe extern "system" fn EnumMappedStreams(this: *mut core::ffi::c_void, ppstreams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISBE2StreamMap_Impl::EnumMappedStreams(this) { Ok(ok__) => { @@ -23561,7 +18260,7 @@ impl ISBE2StreamMap_Vtbl { iid == &::IID } } -pub trait ISCTE_EAS_Impl: Sized { +pub trait ISCTE_EAS_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetSequencyNumber(&self) -> windows_core::Result; @@ -23594,21 +18293,12 @@ pub trait ISCTE_EAS_Impl: Sized { } impl windows_core::RuntimeName for ISCTE_EAS {} impl ISCTE_EAS_Vtbl { - pub const fn new() -> ISCTE_EAS_Vtbl - where - Identity: ISCTE_EAS_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + pub const fn new() -> ISCTE_EAS_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCTE_EAS_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -23618,10 +18308,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSequencyNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetSequencyNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetSequencyNumber(this) { Ok(ok__) => { @@ -23631,10 +18318,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetProtocolVersion(this) { Ok(ok__) => { @@ -23644,10 +18328,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEASEventID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetEASEventID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetEASEventID(this) { Ok(ok__) => { @@ -23657,10 +18338,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginatorCode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetOriginatorCode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetOriginatorCode(this) { Ok(ok__) => { @@ -23670,10 +18348,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEASEventCodeLen(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetEASEventCodeLen(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetEASEventCodeLen(this) { Ok(ok__) => { @@ -23683,10 +18358,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEASEventCode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetEASEventCode(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetEASEventCode(this) { Ok(ok__) => { @@ -23696,10 +18368,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRawNatureOfActivationTextLen(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetRawNatureOfActivationTextLen(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetRawNatureOfActivationTextLen(this) { Ok(ok__) => { @@ -23709,10 +18378,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRawNatureOfActivationText(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetRawNatureOfActivationText(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetRawNatureOfActivationText(this) { Ok(ok__) => { @@ -23722,10 +18388,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNatureOfActivationText(this: *mut core::ffi::c_void, bstris0639code: core::mem::MaybeUninit, pbstrstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetNatureOfActivationText(this: *mut core::ffi::c_void, bstris0639code: core::mem::MaybeUninit, pbstrstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetNatureOfActivationText(this, core::mem::transmute(&bstris0639code)) { Ok(ok__) => { @@ -23735,10 +18398,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimeRemaining(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetTimeRemaining(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetTimeRemaining(this) { Ok(ok__) => { @@ -23748,10 +18408,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStartTime(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetStartTime(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetStartTime(this) { Ok(ok__) => { @@ -23761,10 +18418,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetDuration(this) { Ok(ok__) => { @@ -23774,10 +18428,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAlertPriority(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetAlertPriority(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetAlertPriority(this) { Ok(ok__) => { @@ -23787,10 +18438,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDetailsOOBSourceID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetDetailsOOBSourceID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetDetailsOOBSourceID(this) { Ok(ok__) => { @@ -23800,10 +18448,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDetailsMajor(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetDetailsMajor(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetDetailsMajor(this) { Ok(ok__) => { @@ -23813,10 +18458,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDetailsMinor(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetDetailsMinor(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetDetailsMinor(this) { Ok(ok__) => { @@ -23826,10 +18468,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDetailsAudioOOBSourceID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetDetailsAudioOOBSourceID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetDetailsAudioOOBSourceID(this) { Ok(ok__) => { @@ -23839,10 +18478,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAlertText(this: *mut core::ffi::c_void, bstris0639code: core::mem::MaybeUninit, pbstrstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetAlertText(this: *mut core::ffi::c_void, bstris0639code: core::mem::MaybeUninit, pbstrstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetAlertText(this, core::mem::transmute(&bstris0639code)) { Ok(ok__) => { @@ -23852,10 +18488,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRawAlertTextLen(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetRawAlertTextLen(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetRawAlertTextLen(this) { Ok(ok__) => { @@ -23865,10 +18498,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRawAlertText(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetRawAlertText(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetRawAlertText(this) { Ok(ok__) => { @@ -23878,10 +18508,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocationCount(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetLocationCount(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetLocationCount(this) { Ok(ok__) => { @@ -23891,17 +18518,11 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocationCodes(this: *mut core::ffi::c_void, bindex: u8, pbstate: *mut u8, pbcountysubdivision: *mut u8, pwcounty: *mut u16) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetLocationCodes(this: *mut core::ffi::c_void, bindex: u8, pbstate: *mut u8, pbcountysubdivision: *mut u8, pwcounty: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCTE_EAS_Impl::GetLocationCodes(this, core::mem::transmute_copy(&bindex), core::mem::transmute_copy(&pbstate), core::mem::transmute_copy(&pbcountysubdivision), core::mem::transmute_copy(&pwcounty)).into() } - unsafe extern "system" fn GetExceptionCount(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetExceptionCount(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetExceptionCount(this) { Ok(ok__) => { @@ -23911,17 +18532,11 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExceptionService(this: *mut core::ffi::c_void, bindex: u8, pbibref: *mut u8, pwfirst: *mut u16, pwsecond: *mut u16) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetExceptionService(this: *mut core::ffi::c_void, bindex: u8, pbibref: *mut u8, pwfirst: *mut u16, pwsecond: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCTE_EAS_Impl::GetExceptionService(this, core::mem::transmute_copy(&bindex), core::mem::transmute_copy(&pbibref), core::mem::transmute_copy(&pwfirst), core::mem::transmute_copy(&pwsecond)).into() } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -23931,10 +18546,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCTE_EAS_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -23944,10 +18556,7 @@ impl ISCTE_EAS_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCTE_EAS_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCTE_EAS_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } @@ -23988,35 +18597,23 @@ impl ISCTE_EAS_Vtbl { iid == &::IID } } -pub trait ISIInbandEPG_Impl: Sized { +pub trait ISIInbandEPG_Impl: Sized + windows_core::IUnknownImpl { fn StartSIEPGScan(&self) -> windows_core::Result<()>; fn StopSIEPGScan(&self) -> windows_core::Result<()>; fn IsSIEPGScanRunning(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISIInbandEPG {} impl ISIInbandEPG_Vtbl { - pub const fn new() -> ISIInbandEPG_Vtbl - where - Identity: ISIInbandEPG_Impl, - { - unsafe extern "system" fn StartSIEPGScan(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISIInbandEPG_Impl, - { + pub const fn new() -> ISIInbandEPG_Vtbl { + unsafe extern "system" fn StartSIEPGScan(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISIInbandEPG_Impl::StartSIEPGScan(this).into() } - unsafe extern "system" fn StopSIEPGScan(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISIInbandEPG_Impl, - { + unsafe extern "system" fn StopSIEPGScan(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISIInbandEPG_Impl::StopSIEPGScan(this).into() } - unsafe extern "system" fn IsSIEPGScanRunning(this: *mut core::ffi::c_void, brunning: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISIInbandEPG_Impl, - { + unsafe extern "system" fn IsSIEPGScanRunning(this: *mut core::ffi::c_void, brunning: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISIInbandEPG_Impl::IsSIEPGScanRunning(this) { Ok(ok__) => { @@ -24037,19 +18634,13 @@ impl ISIInbandEPG_Vtbl { iid == &::IID } } -pub trait ISIInbandEPGEvent_Impl: Sized { +pub trait ISIInbandEPGEvent_Impl: Sized + windows_core::IUnknownImpl { fn SIObjectEvent(&self, pidvb_eit: Option<&IDVB_EIT2>, dwtable_id: u32, dwservice_id: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISIInbandEPGEvent {} impl ISIInbandEPGEvent_Vtbl { - pub const fn new() -> ISIInbandEPGEvent_Vtbl - where - Identity: ISIInbandEPGEvent_Impl, - { - unsafe extern "system" fn SIObjectEvent(this: *mut core::ffi::c_void, pidvb_eit: *mut core::ffi::c_void, dwtable_id: u32, dwservice_id: u32) -> windows_core::HRESULT - where - Identity: ISIInbandEPGEvent_Impl, - { + pub const fn new() -> ISIInbandEPGEvent_Vtbl { + unsafe extern "system" fn SIObjectEvent(this: *mut core::ffi::c_void, pidvb_eit: *mut core::ffi::c_void, dwtable_id: u32, dwservice_id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISIInbandEPGEvent_Impl::SIObjectEvent(this, windows_core::from_raw_borrowed(&pidvb_eit), core::mem::transmute_copy(&dwtable_id), core::mem::transmute_copy(&dwservice_id)).into() } @@ -24071,42 +18662,24 @@ pub trait IScanningTuner_Impl: Sized + ITuner_Impl { impl windows_core::RuntimeName for IScanningTuner {} #[cfg(feature = "Win32_System_Com")] impl IScanningTuner_Vtbl { - pub const fn new() -> IScanningTuner_Vtbl - where - Identity: IScanningTuner_Impl, - { - unsafe extern "system" fn SeekUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScanningTuner_Impl, - { + pub const fn new() -> IScanningTuner_Vtbl { + unsafe extern "system" fn SeekUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTuner_Impl::SeekUp(this).into() } - unsafe extern "system" fn SeekDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScanningTuner_Impl, - { + unsafe extern "system" fn SeekDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTuner_Impl::SeekDown(this).into() } - unsafe extern "system" fn ScanUp(this: *mut core::ffi::c_void, millisecondspause: i32) -> windows_core::HRESULT - where - Identity: IScanningTuner_Impl, - { + unsafe extern "system" fn ScanUp(this: *mut core::ffi::c_void, millisecondspause: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTuner_Impl::ScanUp(this, core::mem::transmute_copy(&millisecondspause)).into() } - unsafe extern "system" fn ScanDown(this: *mut core::ffi::c_void, millisecondspause: i32) -> windows_core::HRESULT - where - Identity: IScanningTuner_Impl, - { + unsafe extern "system" fn ScanDown(this: *mut core::ffi::c_void, millisecondspause: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTuner_Impl::ScanDown(this, core::mem::transmute_copy(&millisecondspause)).into() } - unsafe extern "system" fn AutoProgram(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScanningTuner_Impl, - { + unsafe extern "system" fn AutoProgram(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTuner_Impl::AutoProgram(this).into() } @@ -24138,28 +18711,16 @@ pub trait IScanningTunerEx_Impl: Sized + IScanningTuner_Impl { impl windows_core::RuntimeName for IScanningTunerEx {} #[cfg(feature = "Win32_System_Com")] impl IScanningTunerEx_Vtbl { - pub const fn new() -> IScanningTunerEx_Vtbl - where - Identity: IScanningTunerEx_Impl, - { - unsafe extern "system" fn GetCurrentLocator(this: *mut core::ffi::c_void, pilocator: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScanningTunerEx_Impl, - { + pub const fn new() -> IScanningTunerEx_Vtbl { + unsafe extern "system" fn GetCurrentLocator(this: *mut core::ffi::c_void, pilocator: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTunerEx_Impl::GetCurrentLocator(this, core::mem::transmute_copy(&pilocator)).into() } - unsafe extern "system" fn PerformExhaustiveScan(this: *mut core::ffi::c_void, dwlowerfreq: i32, dwhigherfreq: i32, bfinetune: super::super::super::Foundation::VARIANT_BOOL, hevent: usize) -> windows_core::HRESULT - where - Identity: IScanningTunerEx_Impl, - { + unsafe extern "system" fn PerformExhaustiveScan(this: *mut core::ffi::c_void, dwlowerfreq: i32, dwhigherfreq: i32, bfinetune: super::super::super::Foundation::VARIANT_BOOL, hevent: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTunerEx_Impl::PerformExhaustiveScan(this, core::mem::transmute_copy(&dwlowerfreq), core::mem::transmute_copy(&dwhigherfreq), core::mem::transmute_copy(&bfinetune), core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn TerminateCurrentScan(this: *mut core::ffi::c_void, pcurrentfreq: *mut i32) -> windows_core::HRESULT - where - Identity: IScanningTunerEx_Impl, - { + unsafe extern "system" fn TerminateCurrentScan(this: *mut core::ffi::c_void, pcurrentfreq: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScanningTunerEx_Impl::TerminateCurrentScan(this) { Ok(ok__) => { @@ -24169,38 +18730,23 @@ impl IScanningTunerEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResumeCurrentScan(this: *mut core::ffi::c_void, hevent: usize) -> windows_core::HRESULT - where - Identity: IScanningTunerEx_Impl, - { + unsafe extern "system" fn ResumeCurrentScan(this: *mut core::ffi::c_void, hevent: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTunerEx_Impl::ResumeCurrentScan(this, core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn GetTunerScanningCapability(this: *mut core::ffi::c_void, hardwareassistedscanning: *mut i32, numstandardssupported: *mut i32, broadcaststandards: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IScanningTunerEx_Impl, - { + unsafe extern "system" fn GetTunerScanningCapability(this: *mut core::ffi::c_void, hardwareassistedscanning: *mut i32, numstandardssupported: *mut i32, broadcaststandards: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTunerEx_Impl::GetTunerScanningCapability(this, core::mem::transmute_copy(&hardwareassistedscanning), core::mem::transmute_copy(&numstandardssupported), core::mem::transmute_copy(&broadcaststandards)).into() } - unsafe extern "system" fn GetTunerStatus(this: *mut core::ffi::c_void, secondsleft: *mut i32, currentlocktype: *mut i32, autodetect: *mut i32, currentfreq: *mut i32) -> windows_core::HRESULT - where - Identity: IScanningTunerEx_Impl, - { + unsafe extern "system" fn GetTunerStatus(this: *mut core::ffi::c_void, secondsleft: *mut i32, currentlocktype: *mut i32, autodetect: *mut i32, currentfreq: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTunerEx_Impl::GetTunerStatus(this, core::mem::transmute_copy(&secondsleft), core::mem::transmute_copy(¤tlocktype), core::mem::transmute_copy(&autodetect), core::mem::transmute_copy(¤tfreq)).into() } - unsafe extern "system" fn GetCurrentTunerStandardCapability(this: *mut core::ffi::c_void, currentbroadcaststandard: windows_core::GUID, settlingtime: *mut i32, tvstandardssupported: *mut i32) -> windows_core::HRESULT - where - Identity: IScanningTunerEx_Impl, - { + unsafe extern "system" fn GetCurrentTunerStandardCapability(this: *mut core::ffi::c_void, currentbroadcaststandard: windows_core::GUID, settlingtime: *mut i32, tvstandardssupported: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTunerEx_Impl::GetCurrentTunerStandardCapability(this, core::mem::transmute(¤tbroadcaststandard), core::mem::transmute_copy(&settlingtime), core::mem::transmute_copy(&tvstandardssupported)).into() } - unsafe extern "system" fn SetScanSignalTypeFilter(this: *mut core::ffi::c_void, scanmodulationtypes: i32, analogvideostandard: i32) -> windows_core::HRESULT - where - Identity: IScanningTunerEx_Impl, - { + unsafe extern "system" fn SetScanSignalTypeFilter(this: *mut core::ffi::c_void, scanmodulationtypes: i32, analogvideostandard: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScanningTunerEx_Impl::SetScanSignalTypeFilter(this, core::mem::transmute_copy(&scanmodulationtypes), core::mem::transmute_copy(&analogvideostandard)).into() } @@ -24220,7 +18766,7 @@ impl IScanningTunerEx_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ISectionList_Impl: Sized { +pub trait ISectionList_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, requesttype: MPEG_REQUEST_TYPE, pmpeg2data: Option<&IMpeg2Data>, pcontext: *const MPEG_CONTEXT, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, timeout: u32, hdoneevent: super::super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn InitializeWithRawSections(&self, pmplsections: *const MPEG_PACKET_LIST) -> windows_core::Result<()>; fn CancelPendingRequest(&self) -> windows_core::Result<()>; @@ -24231,35 +18777,20 @@ pub trait ISectionList_Impl: Sized { } impl windows_core::RuntimeName for ISectionList {} impl ISectionList_Vtbl { - pub const fn new() -> ISectionList_Vtbl - where - Identity: ISectionList_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, requesttype: MPEG_REQUEST_TYPE, pmpeg2data: *mut core::ffi::c_void, pcontext: *const MPEG_CONTEXT, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, timeout: u32, hdoneevent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ISectionList_Impl, - { + pub const fn new() -> ISectionList_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, requesttype: MPEG_REQUEST_TYPE, pmpeg2data: *mut core::ffi::c_void, pcontext: *const MPEG_CONTEXT, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, timeout: u32, hdoneevent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISectionList_Impl::Initialize(this, core::mem::transmute_copy(&requesttype), windows_core::from_raw_borrowed(&pmpeg2data), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&pid), core::mem::transmute_copy(&tid), core::mem::transmute_copy(&pfilter), core::mem::transmute_copy(&timeout), core::mem::transmute_copy(&hdoneevent)).into() } - unsafe extern "system" fn InitializeWithRawSections(this: *mut core::ffi::c_void, pmplsections: *const MPEG_PACKET_LIST) -> windows_core::HRESULT - where - Identity: ISectionList_Impl, - { + unsafe extern "system" fn InitializeWithRawSections(this: *mut core::ffi::c_void, pmplsections: *const MPEG_PACKET_LIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISectionList_Impl::InitializeWithRawSections(this, core::mem::transmute_copy(&pmplsections)).into() } - unsafe extern "system" fn CancelPendingRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISectionList_Impl, - { + unsafe extern "system" fn CancelPendingRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISectionList_Impl::CancelPendingRequest(this).into() } - unsafe extern "system" fn GetNumberOfSections(this: *mut core::ffi::c_void, pcount: *mut u16) -> windows_core::HRESULT - where - Identity: ISectionList_Impl, - { + unsafe extern "system" fn GetNumberOfSections(this: *mut core::ffi::c_void, pcount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISectionList_Impl::GetNumberOfSections(this) { Ok(ok__) => { @@ -24269,24 +18800,15 @@ impl ISectionList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSectionData(this: *mut core::ffi::c_void, sectionnumber: u16, pdwrawpacketlength: *mut u32, ppsection: *mut *mut SECTION) -> windows_core::HRESULT - where - Identity: ISectionList_Impl, - { + unsafe extern "system" fn GetSectionData(this: *mut core::ffi::c_void, sectionnumber: u16, pdwrawpacketlength: *mut u32, ppsection: *mut *mut SECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISectionList_Impl::GetSectionData(this, core::mem::transmute_copy(§ionnumber), core::mem::transmute_copy(&pdwrawpacketlength), core::mem::transmute_copy(&ppsection)).into() } - unsafe extern "system" fn GetProgramIdentifier(this: *mut core::ffi::c_void, ppid: *const u16) -> windows_core::HRESULT - where - Identity: ISectionList_Impl, - { + unsafe extern "system" fn GetProgramIdentifier(this: *mut core::ffi::c_void, ppid: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISectionList_Impl::GetProgramIdentifier(this, core::mem::transmute_copy(&ppid)).into() } - unsafe extern "system" fn GetTableIdentifier(this: *mut core::ffi::c_void, ptableid: *const u8) -> windows_core::HRESULT - where - Identity: ISectionList_Impl, - { + unsafe extern "system" fn GetTableIdentifier(this: *mut core::ffi::c_void, ptableid: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISectionList_Impl::GetTableIdentifier(this, core::mem::transmute_copy(&ptableid)).into() } @@ -24305,7 +18827,7 @@ impl ISectionList_Vtbl { iid == &::IID } } -pub trait IServiceLocationDescriptor_Impl: Sized { +pub trait IServiceLocationDescriptor_Impl: Sized + windows_core::IUnknownImpl { fn GetPCR_PID(&self) -> windows_core::Result; fn GetNumberOfElements(&self) -> windows_core::Result; fn GetElementStreamType(&self, bindex: u8) -> windows_core::Result; @@ -24314,14 +18836,8 @@ pub trait IServiceLocationDescriptor_Impl: Sized { } impl windows_core::RuntimeName for IServiceLocationDescriptor {} impl IServiceLocationDescriptor_Vtbl { - pub const fn new() -> IServiceLocationDescriptor_Vtbl - where - Identity: IServiceLocationDescriptor_Impl, - { - unsafe extern "system" fn GetPCR_PID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IServiceLocationDescriptor_Impl, - { + pub const fn new() -> IServiceLocationDescriptor_Vtbl { + unsafe extern "system" fn GetPCR_PID(this: *mut core::ffi::c_void, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IServiceLocationDescriptor_Impl::GetPCR_PID(this) { Ok(ok__) => { @@ -24331,10 +18847,7 @@ impl IServiceLocationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOfElements(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IServiceLocationDescriptor_Impl, - { + unsafe extern "system" fn GetNumberOfElements(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IServiceLocationDescriptor_Impl::GetNumberOfElements(this) { Ok(ok__) => { @@ -24344,10 +18857,7 @@ impl IServiceLocationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetElementStreamType(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: IServiceLocationDescriptor_Impl, - { + unsafe extern "system" fn GetElementStreamType(this: *mut core::ffi::c_void, bindex: u8, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IServiceLocationDescriptor_Impl::GetElementStreamType(this, core::mem::transmute_copy(&bindex)) { Ok(ok__) => { @@ -24357,10 +18867,7 @@ impl IServiceLocationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetElementPID(this: *mut core::ffi::c_void, bindex: u8, pwval: *mut u16) -> windows_core::HRESULT - where - Identity: IServiceLocationDescriptor_Impl, - { + unsafe extern "system" fn GetElementPID(this: *mut core::ffi::c_void, bindex: u8, pwval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IServiceLocationDescriptor_Impl::GetElementPID(this, core::mem::transmute_copy(&bindex)) { Ok(ok__) => { @@ -24370,10 +18877,7 @@ impl IServiceLocationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetElementLanguageCode(this: *mut core::ffi::c_void, bindex: u8, langcode: *mut u8) -> windows_core::HRESULT - where - Identity: IServiceLocationDescriptor_Impl, - { + unsafe extern "system" fn GetElementLanguageCode(this: *mut core::ffi::c_void, bindex: u8, langcode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceLocationDescriptor_Impl::GetElementLanguageCode(this, core::mem::transmute_copy(&bindex), core::mem::transmute_copy(&langcode)).into() } @@ -24390,7 +18894,7 @@ impl IServiceLocationDescriptor_Vtbl { iid == &::IID } } -pub trait IStreamBufferConfigure_Impl: Sized { +pub trait IStreamBufferConfigure_Impl: Sized + windows_core::IUnknownImpl { fn SetDirectory(&self, pszdirectoryname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetDirectory(&self) -> windows_core::Result; fn SetBackingFileCount(&self, dwmin: u32, dwmax: u32) -> windows_core::Result<()>; @@ -24400,21 +18904,12 @@ pub trait IStreamBufferConfigure_Impl: Sized { } impl windows_core::RuntimeName for IStreamBufferConfigure {} impl IStreamBufferConfigure_Vtbl { - pub const fn new() -> IStreamBufferConfigure_Vtbl - where - Identity: IStreamBufferConfigure_Impl, - { - unsafe extern "system" fn SetDirectory(this: *mut core::ffi::c_void, pszdirectoryname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure_Impl, - { + pub const fn new() -> IStreamBufferConfigure_Vtbl { + unsafe extern "system" fn SetDirectory(this: *mut core::ffi::c_void, pszdirectoryname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferConfigure_Impl::SetDirectory(this, core::mem::transmute(&pszdirectoryname)).into() } - unsafe extern "system" fn GetDirectory(this: *mut core::ffi::c_void, ppszdirectoryname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure_Impl, - { + unsafe extern "system" fn GetDirectory(this: *mut core::ffi::c_void, ppszdirectoryname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamBufferConfigure_Impl::GetDirectory(this) { Ok(ok__) => { @@ -24424,31 +18919,19 @@ impl IStreamBufferConfigure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackingFileCount(this: *mut core::ffi::c_void, dwmin: u32, dwmax: u32) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure_Impl, - { + unsafe extern "system" fn SetBackingFileCount(this: *mut core::ffi::c_void, dwmin: u32, dwmax: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferConfigure_Impl::SetBackingFileCount(this, core::mem::transmute_copy(&dwmin), core::mem::transmute_copy(&dwmax)).into() } - unsafe extern "system" fn GetBackingFileCount(this: *mut core::ffi::c_void, pdwmin: *mut u32, pdwmax: *mut u32) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure_Impl, - { + unsafe extern "system" fn GetBackingFileCount(this: *mut core::ffi::c_void, pdwmin: *mut u32, pdwmax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferConfigure_Impl::GetBackingFileCount(this, core::mem::transmute_copy(&pdwmin), core::mem::transmute_copy(&pdwmax)).into() } - unsafe extern "system" fn SetBackingFileDuration(this: *mut core::ffi::c_void, dwseconds: u32) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure_Impl, - { + unsafe extern "system" fn SetBackingFileDuration(this: *mut core::ffi::c_void, dwseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferConfigure_Impl::SetBackingFileDuration(this, core::mem::transmute_copy(&dwseconds)).into() } - unsafe extern "system" fn GetBackingFileDuration(this: *mut core::ffi::c_void, pdwseconds: *mut u32) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure_Impl, - { + unsafe extern "system" fn GetBackingFileDuration(this: *mut core::ffi::c_void, pdwseconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamBufferConfigure_Impl::GetBackingFileDuration(this) { Ok(ok__) => { @@ -24480,21 +18963,12 @@ pub trait IStreamBufferConfigure2_Impl: Sized + IStreamBufferConfigure_Impl { } impl windows_core::RuntimeName for IStreamBufferConfigure2 {} impl IStreamBufferConfigure2_Vtbl { - pub const fn new() -> IStreamBufferConfigure2_Vtbl - where - Identity: IStreamBufferConfigure2_Impl, - { - unsafe extern "system" fn SetMultiplexedPacketSize(this: *mut core::ffi::c_void, cbbytesperpacket: u32) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure2_Impl, - { + pub const fn new() -> IStreamBufferConfigure2_Vtbl { + unsafe extern "system" fn SetMultiplexedPacketSize(this: *mut core::ffi::c_void, cbbytesperpacket: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferConfigure2_Impl::SetMultiplexedPacketSize(this, core::mem::transmute_copy(&cbbytesperpacket)).into() } - unsafe extern "system" fn GetMultiplexedPacketSize(this: *mut core::ffi::c_void, pcbbytesperpacket: *mut u32) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure2_Impl, - { + unsafe extern "system" fn GetMultiplexedPacketSize(this: *mut core::ffi::c_void, pcbbytesperpacket: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamBufferConfigure2_Impl::GetMultiplexedPacketSize(this) { Ok(ok__) => { @@ -24504,17 +18978,11 @@ impl IStreamBufferConfigure2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFFTransitionRates(this: *mut core::ffi::c_void, dwmaxfullframerate: u32, dwmaxnonskippingrate: u32) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure2_Impl, - { + unsafe extern "system" fn SetFFTransitionRates(this: *mut core::ffi::c_void, dwmaxfullframerate: u32, dwmaxnonskippingrate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferConfigure2_Impl::SetFFTransitionRates(this, core::mem::transmute_copy(&dwmaxfullframerate), core::mem::transmute_copy(&dwmaxnonskippingrate)).into() } - unsafe extern "system" fn GetFFTransitionRates(this: *mut core::ffi::c_void, pdwmaxfullframerate: *mut u32, pdwmaxnonskippingrate: *mut u32) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure2_Impl, - { + unsafe extern "system" fn GetFFTransitionRates(this: *mut core::ffi::c_void, pdwmaxfullframerate: *mut u32, pdwmaxnonskippingrate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferConfigure2_Impl::GetFFTransitionRates(this, core::mem::transmute_copy(&pdwmaxfullframerate), core::mem::transmute_copy(&pdwmaxnonskippingrate)).into() } @@ -24538,21 +19006,12 @@ pub trait IStreamBufferConfigure3_Impl: Sized + IStreamBufferConfigure2_Impl { } impl windows_core::RuntimeName for IStreamBufferConfigure3 {} impl IStreamBufferConfigure3_Vtbl { - pub const fn new() -> IStreamBufferConfigure3_Vtbl - where - Identity: IStreamBufferConfigure3_Impl, - { - unsafe extern "system" fn SetStartRecConfig(this: *mut core::ffi::c_void, fstartstopscur: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure3_Impl, - { + pub const fn new() -> IStreamBufferConfigure3_Vtbl { + unsafe extern "system" fn SetStartRecConfig(this: *mut core::ffi::c_void, fstartstopscur: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferConfigure3_Impl::SetStartRecConfig(this, core::mem::transmute_copy(&fstartstopscur)).into() } - unsafe extern "system" fn GetStartRecConfig(this: *mut core::ffi::c_void, pfstartstopscur: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure3_Impl, - { + unsafe extern "system" fn GetStartRecConfig(this: *mut core::ffi::c_void, pfstartstopscur: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamBufferConfigure3_Impl::GetStartRecConfig(this) { Ok(ok__) => { @@ -24562,17 +19021,11 @@ impl IStreamBufferConfigure3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNamespace(this: *mut core::ffi::c_void, psznamespace: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure3_Impl, - { + unsafe extern "system" fn SetNamespace(this: *mut core::ffi::c_void, psznamespace: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferConfigure3_Impl::SetNamespace(this, core::mem::transmute(&psznamespace)).into() } - unsafe extern "system" fn GetNamespace(this: *mut core::ffi::c_void, ppsznamespace: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IStreamBufferConfigure3_Impl, - { + unsafe extern "system" fn GetNamespace(this: *mut core::ffi::c_void, ppsznamespace: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamBufferConfigure3_Impl::GetNamespace(this) { Ok(ok__) => { @@ -24594,27 +19047,18 @@ impl IStreamBufferConfigure3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IStreamBufferDataCounters_Impl: Sized { +pub trait IStreamBufferDataCounters_Impl: Sized + windows_core::IUnknownImpl { fn GetData(&self, ppindata: *mut SBE_PIN_DATA) -> windows_core::Result<()>; fn ResetData(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IStreamBufferDataCounters {} impl IStreamBufferDataCounters_Vtbl { - pub const fn new() -> IStreamBufferDataCounters_Vtbl - where - Identity: IStreamBufferDataCounters_Impl, - { - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, ppindata: *mut SBE_PIN_DATA) -> windows_core::HRESULT - where - Identity: IStreamBufferDataCounters_Impl, - { + pub const fn new() -> IStreamBufferDataCounters_Vtbl { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, ppindata: *mut SBE_PIN_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferDataCounters_Impl::GetData(this, core::mem::transmute_copy(&ppindata)).into() } - unsafe extern "system" fn ResetData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamBufferDataCounters_Impl, - { + unsafe extern "system" fn ResetData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferDataCounters_Impl::ResetData(this).into() } @@ -24625,7 +19069,7 @@ impl IStreamBufferDataCounters_Vtbl { } } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] -pub trait IStreamBufferInitialize_Impl: Sized { +pub trait IStreamBufferInitialize_Impl: Sized + windows_core::IUnknownImpl { fn SetHKEY(&self, hkeyroot: super::super::super::System::Registry::HKEY) -> windows_core::Result<()>; fn SetSIDs(&self, csids: u32, ppsid: *mut super::super::super::Security::PSID) -> windows_core::Result<()>; } @@ -24633,21 +19077,12 @@ pub trait IStreamBufferInitialize_Impl: Sized { impl windows_core::RuntimeName for IStreamBufferInitialize {} #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] impl IStreamBufferInitialize_Vtbl { - pub const fn new() -> IStreamBufferInitialize_Vtbl - where - Identity: IStreamBufferInitialize_Impl, - { - unsafe extern "system" fn SetHKEY(this: *mut core::ffi::c_void, hkeyroot: super::super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IStreamBufferInitialize_Impl, - { + pub const fn new() -> IStreamBufferInitialize_Vtbl { + unsafe extern "system" fn SetHKEY(this: *mut core::ffi::c_void, hkeyroot: super::super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferInitialize_Impl::SetHKEY(this, core::mem::transmute_copy(&hkeyroot)).into() } - unsafe extern "system" fn SetSIDs(this: *mut core::ffi::c_void, csids: u32, ppsid: *mut super::super::super::Security::PSID) -> windows_core::HRESULT - where - Identity: IStreamBufferInitialize_Impl, - { + unsafe extern "system" fn SetSIDs(this: *mut core::ffi::c_void, csids: u32, ppsid: *mut super::super::super::Security::PSID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferInitialize_Impl::SetSIDs(this, core::mem::transmute_copy(&csids), core::mem::transmute_copy(&ppsid)).into() } @@ -24660,10 +19095,7 @@ impl IStreamBufferInitialize_Vtbl { pub trait IStreamBufferMediaSeeking_Impl: Sized + super::IMediaSeeking_Impl {} impl windows_core::RuntimeName for IStreamBufferMediaSeeking {} impl IStreamBufferMediaSeeking_Vtbl { - pub const fn new() -> IStreamBufferMediaSeeking_Vtbl - where - Identity: IStreamBufferMediaSeeking_Impl, - { + pub const fn new() -> IStreamBufferMediaSeeking_Vtbl { Self { base__: super::IMediaSeeking_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -24675,14 +19107,8 @@ pub trait IStreamBufferMediaSeeking2_Impl: Sized + IStreamBufferMediaSeeking_Imp } impl windows_core::RuntimeName for IStreamBufferMediaSeeking2 {} impl IStreamBufferMediaSeeking2_Vtbl { - pub const fn new() -> IStreamBufferMediaSeeking2_Vtbl - where - Identity: IStreamBufferMediaSeeking2_Impl, - { - unsafe extern "system" fn SetRateEx(this: *mut core::ffi::c_void, drate: f64, dwframespersec: u32) -> windows_core::HRESULT - where - Identity: IStreamBufferMediaSeeking2_Impl, - { + pub const fn new() -> IStreamBufferMediaSeeking2_Vtbl { + unsafe extern "system" fn SetRateEx(this: *mut core::ffi::c_void, drate: f64, dwframespersec: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferMediaSeeking2_Impl::SetRateEx(this, core::mem::transmute_copy(&drate), core::mem::transmute_copy(&dwframespersec)).into() } @@ -24692,7 +19118,7 @@ impl IStreamBufferMediaSeeking2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IStreamBufferRecComp_Impl: Sized { +pub trait IStreamBufferRecComp_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psztargetfilename: &windows_core::PCWSTR, pszsbrecprofileref: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Append(&self, pszsbrecording: &windows_core::PCWSTR) -> windows_core::Result<()>; fn AppendEx(&self, pszsbrecording: &windows_core::PCWSTR, rtstart: i64, rtstop: i64) -> windows_core::Result<()>; @@ -24702,35 +19128,20 @@ pub trait IStreamBufferRecComp_Impl: Sized { } impl windows_core::RuntimeName for IStreamBufferRecComp {} impl IStreamBufferRecComp_Vtbl { - pub const fn new() -> IStreamBufferRecComp_Vtbl - where - Identity: IStreamBufferRecComp_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psztargetfilename: windows_core::PCWSTR, pszsbrecprofileref: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStreamBufferRecComp_Impl, - { + pub const fn new() -> IStreamBufferRecComp_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psztargetfilename: windows_core::PCWSTR, pszsbrecprofileref: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecComp_Impl::Initialize(this, core::mem::transmute(&psztargetfilename), core::mem::transmute(&pszsbrecprofileref)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, pszsbrecording: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStreamBufferRecComp_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, pszsbrecording: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecComp_Impl::Append(this, core::mem::transmute(&pszsbrecording)).into() } - unsafe extern "system" fn AppendEx(this: *mut core::ffi::c_void, pszsbrecording: windows_core::PCWSTR, rtstart: i64, rtstop: i64) -> windows_core::HRESULT - where - Identity: IStreamBufferRecComp_Impl, - { + unsafe extern "system" fn AppendEx(this: *mut core::ffi::c_void, pszsbrecording: windows_core::PCWSTR, rtstart: i64, rtstop: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecComp_Impl::AppendEx(this, core::mem::transmute(&pszsbrecording), core::mem::transmute_copy(&rtstart), core::mem::transmute_copy(&rtstop)).into() } - unsafe extern "system" fn GetCurrentLength(this: *mut core::ffi::c_void, pcseconds: *mut u32) -> windows_core::HRESULT - where - Identity: IStreamBufferRecComp_Impl, - { + unsafe extern "system" fn GetCurrentLength(this: *mut core::ffi::c_void, pcseconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamBufferRecComp_Impl::GetCurrentLength(this) { Ok(ok__) => { @@ -24740,17 +19151,11 @@ impl IStreamBufferRecComp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamBufferRecComp_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecComp_Impl::Close(this).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamBufferRecComp_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecComp_Impl::Cancel(this).into() } @@ -24768,35 +19173,23 @@ impl IStreamBufferRecComp_Vtbl { iid == &::IID } } -pub trait IStreamBufferRecordControl_Impl: Sized { +pub trait IStreamBufferRecordControl_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self, prtstart: *mut i64) -> windows_core::Result<()>; fn Stop(&self, rtstop: i64) -> windows_core::Result<()>; fn GetRecordingStatus(&self, phresult: *mut windows_core::HRESULT, pbstarted: *mut super::super::super::Foundation::BOOL, pbstopped: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IStreamBufferRecordControl {} impl IStreamBufferRecordControl_Vtbl { - pub const fn new() -> IStreamBufferRecordControl_Vtbl - where - Identity: IStreamBufferRecordControl_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, prtstart: *mut i64) -> windows_core::HRESULT - where - Identity: IStreamBufferRecordControl_Impl, - { + pub const fn new() -> IStreamBufferRecordControl_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, prtstart: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecordControl_Impl::Start(this, core::mem::transmute_copy(&prtstart)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, rtstop: i64) -> windows_core::HRESULT - where - Identity: IStreamBufferRecordControl_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, rtstop: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecordControl_Impl::Stop(this, core::mem::transmute_copy(&rtstop)).into() } - unsafe extern "system" fn GetRecordingStatus(this: *mut core::ffi::c_void, phresult: *mut windows_core::HRESULT, pbstarted: *mut super::super::super::Foundation::BOOL, pbstopped: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IStreamBufferRecordControl_Impl, - { + unsafe extern "system" fn GetRecordingStatus(this: *mut core::ffi::c_void, phresult: *mut windows_core::HRESULT, pbstarted: *mut super::super::super::Foundation::BOOL, pbstopped: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecordControl_Impl::GetRecordingStatus(this, core::mem::transmute_copy(&phresult), core::mem::transmute_copy(&pbstarted), core::mem::transmute_copy(&pbstopped)).into() } @@ -24811,7 +19204,7 @@ impl IStreamBufferRecordControl_Vtbl { iid == &::IID } } -pub trait IStreamBufferRecordingAttribute_Impl: Sized { +pub trait IStreamBufferRecordingAttribute_Impl: Sized + windows_core::IUnknownImpl { fn SetAttribute(&self, ulreserved: u32, pszattributename: &windows_core::PCWSTR, streambufferattributetype: STREAMBUFFER_ATTR_DATATYPE, pbattribute: *const u8, cbattributelength: u16) -> windows_core::Result<()>; fn GetAttributeCount(&self, ulreserved: u32) -> windows_core::Result; fn GetAttributeByName(&self, pszattributename: &windows_core::PCWSTR, pulreserved: *const u32, pstreambufferattributetype: *mut STREAMBUFFER_ATTR_DATATYPE, pbattribute: *mut u8, pcblength: *mut u16) -> windows_core::Result<()>; @@ -24820,21 +19213,12 @@ pub trait IStreamBufferRecordingAttribute_Impl: Sized { } impl windows_core::RuntimeName for IStreamBufferRecordingAttribute {} impl IStreamBufferRecordingAttribute_Vtbl { - pub const fn new() -> IStreamBufferRecordingAttribute_Vtbl - where - Identity: IStreamBufferRecordingAttribute_Impl, - { - unsafe extern "system" fn SetAttribute(this: *mut core::ffi::c_void, ulreserved: u32, pszattributename: windows_core::PCWSTR, streambufferattributetype: STREAMBUFFER_ATTR_DATATYPE, pbattribute: *const u8, cbattributelength: u16) -> windows_core::HRESULT - where - Identity: IStreamBufferRecordingAttribute_Impl, - { + pub const fn new() -> IStreamBufferRecordingAttribute_Vtbl { + unsafe extern "system" fn SetAttribute(this: *mut core::ffi::c_void, ulreserved: u32, pszattributename: windows_core::PCWSTR, streambufferattributetype: STREAMBUFFER_ATTR_DATATYPE, pbattribute: *const u8, cbattributelength: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecordingAttribute_Impl::SetAttribute(this, core::mem::transmute_copy(&ulreserved), core::mem::transmute(&pszattributename), core::mem::transmute_copy(&streambufferattributetype), core::mem::transmute_copy(&pbattribute), core::mem::transmute_copy(&cbattributelength)).into() } - unsafe extern "system" fn GetAttributeCount(this: *mut core::ffi::c_void, ulreserved: u32, pcattributes: *mut u16) -> windows_core::HRESULT - where - Identity: IStreamBufferRecordingAttribute_Impl, - { + unsafe extern "system" fn GetAttributeCount(this: *mut core::ffi::c_void, ulreserved: u32, pcattributes: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamBufferRecordingAttribute_Impl::GetAttributeCount(this, core::mem::transmute_copy(&ulreserved)) { Ok(ok__) => { @@ -24844,24 +19228,15 @@ impl IStreamBufferRecordingAttribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeByName(this: *mut core::ffi::c_void, pszattributename: windows_core::PCWSTR, pulreserved: *const u32, pstreambufferattributetype: *mut STREAMBUFFER_ATTR_DATATYPE, pbattribute: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IStreamBufferRecordingAttribute_Impl, - { + unsafe extern "system" fn GetAttributeByName(this: *mut core::ffi::c_void, pszattributename: windows_core::PCWSTR, pulreserved: *const u32, pstreambufferattributetype: *mut STREAMBUFFER_ATTR_DATATYPE, pbattribute: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecordingAttribute_Impl::GetAttributeByName(this, core::mem::transmute(&pszattributename), core::mem::transmute_copy(&pulreserved), core::mem::transmute_copy(&pstreambufferattributetype), core::mem::transmute_copy(&pbattribute), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn GetAttributeByIndex(this: *mut core::ffi::c_void, windex: u16, pulreserved: *const u32, pszattributename: windows_core::PWSTR, pcchnamelength: *mut u16, pstreambufferattributetype: *mut STREAMBUFFER_ATTR_DATATYPE, pbattribute: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IStreamBufferRecordingAttribute_Impl, - { + unsafe extern "system" fn GetAttributeByIndex(this: *mut core::ffi::c_void, windex: u16, pulreserved: *const u32, pszattributename: windows_core::PWSTR, pcchnamelength: *mut u16, pstreambufferattributetype: *mut STREAMBUFFER_ATTR_DATATYPE, pbattribute: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecordingAttribute_Impl::GetAttributeByIndex(this, core::mem::transmute_copy(&windex), core::mem::transmute_copy(&pulreserved), core::mem::transmute_copy(&pszattributename), core::mem::transmute_copy(&pcchnamelength), core::mem::transmute_copy(&pstreambufferattributetype), core::mem::transmute_copy(&pbattribute), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn EnumAttributes(this: *mut core::ffi::c_void, ppienumstreambufferattrib: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamBufferRecordingAttribute_Impl, - { + unsafe extern "system" fn EnumAttributes(this: *mut core::ffi::c_void, ppienumstreambufferattrib: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamBufferRecordingAttribute_Impl::EnumAttributes(this) { Ok(ok__) => { @@ -24884,28 +19259,19 @@ impl IStreamBufferRecordingAttribute_Vtbl { iid == &::IID } } -pub trait IStreamBufferSink_Impl: Sized { +pub trait IStreamBufferSink_Impl: Sized + windows_core::IUnknownImpl { fn LockProfile(&self, pszstreambufferfilename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn CreateRecorder(&self, pszfilename: &windows_core::PCWSTR, dwrecordtype: u32) -> windows_core::Result; fn IsProfileLocked(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IStreamBufferSink {} impl IStreamBufferSink_Vtbl { - pub const fn new() -> IStreamBufferSink_Vtbl - where - Identity: IStreamBufferSink_Impl, - { - unsafe extern "system" fn LockProfile(this: *mut core::ffi::c_void, pszstreambufferfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStreamBufferSink_Impl, - { + pub const fn new() -> IStreamBufferSink_Vtbl { + unsafe extern "system" fn LockProfile(this: *mut core::ffi::c_void, pszstreambufferfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferSink_Impl::LockProfile(this, core::mem::transmute(&pszstreambufferfilename)).into() } - unsafe extern "system" fn CreateRecorder(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, dwrecordtype: u32, precordingiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamBufferSink_Impl, - { + unsafe extern "system" fn CreateRecorder(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, dwrecordtype: u32, precordingiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamBufferSink_Impl::CreateRecorder(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&dwrecordtype)) { Ok(ok__) => { @@ -24915,10 +19281,7 @@ impl IStreamBufferSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsProfileLocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamBufferSink_Impl, - { + unsafe extern "system" fn IsProfileLocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferSink_Impl::IsProfileLocked(this).into() } @@ -24938,14 +19301,8 @@ pub trait IStreamBufferSink2_Impl: Sized + IStreamBufferSink_Impl { } impl windows_core::RuntimeName for IStreamBufferSink2 {} impl IStreamBufferSink2_Vtbl { - pub const fn new() -> IStreamBufferSink2_Vtbl - where - Identity: IStreamBufferSink2_Impl, - { - unsafe extern "system" fn UnlockProfile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamBufferSink2_Impl, - { + pub const fn new() -> IStreamBufferSink2_Vtbl { + unsafe extern "system" fn UnlockProfile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferSink2_Impl::UnlockProfile(this).into() } @@ -24960,14 +19317,8 @@ pub trait IStreamBufferSink3_Impl: Sized + IStreamBufferSink2_Impl { } impl windows_core::RuntimeName for IStreamBufferSink3 {} impl IStreamBufferSink3_Vtbl { - pub const fn new() -> IStreamBufferSink3_Vtbl - where - Identity: IStreamBufferSink3_Impl, - { - unsafe extern "system" fn SetAvailableFilter(this: *mut core::ffi::c_void, prtmin: *mut i64) -> windows_core::HRESULT - where - Identity: IStreamBufferSink3_Impl, - { + pub const fn new() -> IStreamBufferSink3_Vtbl { + unsafe extern "system" fn SetAvailableFilter(this: *mut core::ffi::c_void, prtmin: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferSink3_Impl::SetAvailableFilter(this, core::mem::transmute_copy(&prtmin)).into() } @@ -24977,19 +19328,13 @@ impl IStreamBufferSink3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IStreamBufferSource_Impl: Sized { +pub trait IStreamBufferSource_Impl: Sized + windows_core::IUnknownImpl { fn SetStreamSink(&self, pistreambuffersink: Option<&IStreamBufferSink>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IStreamBufferSource {} impl IStreamBufferSource_Vtbl { - pub const fn new() -> IStreamBufferSource_Vtbl - where - Identity: IStreamBufferSource_Impl, - { - unsafe extern "system" fn SetStreamSink(this: *mut core::ffi::c_void, pistreambuffersink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamBufferSource_Impl, - { + pub const fn new() -> IStreamBufferSource_Vtbl { + unsafe extern "system" fn SetStreamSink(this: *mut core::ffi::c_void, pistreambuffersink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferSource_Impl::SetStreamSink(this, windows_core::from_raw_borrowed(&pistreambuffersink)).into() } @@ -24999,7 +19344,7 @@ impl IStreamBufferSource_Vtbl { iid == &::IID } } -pub trait ITSDT_Impl: Sized { +pub trait ITSDT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: Option<&ISectionList>, pmpegdata: Option<&IMpeg2Data>) -> windows_core::Result<()>; fn GetVersionNumber(&self) -> windows_core::Result; fn GetCountOfTableDescriptors(&self) -> windows_core::Result; @@ -25012,21 +19357,12 @@ pub trait ITSDT_Impl: Sized { } impl windows_core::RuntimeName for ITSDT {} impl ITSDT_Vtbl { - pub const fn new() -> ITSDT_Vtbl - where - Identity: ITSDT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSDT_Impl, - { + pub const fn new() -> ITSDT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psectionlist: *mut core::ffi::c_void, pmpegdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSDT_Impl::Initialize(this, windows_core::from_raw_borrowed(&psectionlist), windows_core::from_raw_borrowed(&pmpegdata)).into() } - unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT - where - Identity: ITSDT_Impl, - { + unsafe extern "system" fn GetVersionNumber(this: *mut core::ffi::c_void, pbval: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSDT_Impl::GetVersionNumber(this) { Ok(ok__) => { @@ -25036,10 +19372,7 @@ impl ITSDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: ITSDT_Impl, - { + unsafe extern "system" fn GetCountOfTableDescriptors(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSDT_Impl::GetCountOfTableDescriptors(this) { Ok(ok__) => { @@ -25049,10 +19382,7 @@ impl ITSDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSDT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSDT_Impl::GetTableDescriptorByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -25062,24 +19392,15 @@ impl ITSDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSDT_Impl, - { + unsafe extern "system" fn GetTableDescriptorByTag(this: *mut core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSDT_Impl::GetTableDescriptorByTag(this, core::mem::transmute_copy(&btag), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ITSDT_Impl, - { + unsafe extern "system" fn RegisterForNextTable(this: *mut core::ffi::c_void, hnexttableavailable: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSDT_Impl::RegisterForNextTable(this, core::mem::transmute_copy(&hnexttableavailable)).into() } - unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, pptsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSDT_Impl, - { + unsafe extern "system" fn GetNextTable(this: *mut core::ffi::c_void, pptsdt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSDT_Impl::GetNextTable(this) { Ok(ok__) => { @@ -25089,17 +19410,11 @@ impl ITSDT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ITSDT_Impl, - { + unsafe extern "system" fn RegisterForWhenCurrent(this: *mut core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSDT_Impl::RegisterForWhenCurrent(this, core::mem::transmute_copy(&hnexttableiscurrent)).into() } - unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSDT_Impl, - { + unsafe extern "system" fn ConvertNextToCurrent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSDT_Impl::ConvertNextToCurrent(this).into() } @@ -25132,14 +19447,8 @@ pub trait ITuneRequest_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for ITuneRequest {} #[cfg(feature = "Win32_System_Com")] impl ITuneRequest_Vtbl { - pub const fn new() -> ITuneRequest_Vtbl - where - Identity: ITuneRequest_Impl, - { - unsafe extern "system" fn TuningSpace(this: *mut core::ffi::c_void, tuningspace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequest_Impl, - { + pub const fn new() -> ITuneRequest_Vtbl { + unsafe extern "system" fn TuningSpace(this: *mut core::ffi::c_void, tuningspace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuneRequest_Impl::TuningSpace(this) { Ok(ok__) => { @@ -25149,10 +19458,7 @@ impl ITuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Components(this: *mut core::ffi::c_void, components: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequest_Impl, - { + unsafe extern "system" fn Components(this: *mut core::ffi::c_void, components: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuneRequest_Impl::Components(this) { Ok(ok__) => { @@ -25162,10 +19468,7 @@ impl ITuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newtunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequest_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newtunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuneRequest_Impl::Clone(this) { Ok(ok__) => { @@ -25175,10 +19478,7 @@ impl ITuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Locator(this: *mut core::ffi::c_void, locator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequest_Impl, - { + unsafe extern "system" fn Locator(this: *mut core::ffi::c_void, locator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuneRequest_Impl::Locator(this) { Ok(ok__) => { @@ -25188,10 +19488,7 @@ impl ITuneRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocator(this: *mut core::ffi::c_void, locator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequest_Impl, - { + unsafe extern "system" fn SetLocator(this: *mut core::ffi::c_void, locator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuneRequest_Impl::SetLocator(this, windows_core::from_raw_borrowed(&locator)).into() } @@ -25209,7 +19506,7 @@ impl ITuneRequest_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITuneRequestInfo_Impl: Sized { +pub trait ITuneRequestInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetLocatorData(&self, request: Option<&ITuneRequest>) -> windows_core::Result<()>; fn GetComponentData(&self, currentrequest: Option<&ITuneRequest>) -> windows_core::Result<()>; fn CreateComponentList(&self, currentrequest: Option<&ITuneRequest>) -> windows_core::Result<()>; @@ -25222,35 +19519,20 @@ pub trait ITuneRequestInfo_Impl: Sized { impl windows_core::RuntimeName for ITuneRequestInfo {} #[cfg(feature = "Win32_System_Com")] impl ITuneRequestInfo_Vtbl { - pub const fn new() -> ITuneRequestInfo_Vtbl - where - Identity: ITuneRequestInfo_Impl, - { - unsafe extern "system" fn GetLocatorData(this: *mut core::ffi::c_void, request: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequestInfo_Impl, - { + pub const fn new() -> ITuneRequestInfo_Vtbl { + unsafe extern "system" fn GetLocatorData(this: *mut core::ffi::c_void, request: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuneRequestInfo_Impl::GetLocatorData(this, windows_core::from_raw_borrowed(&request)).into() } - unsafe extern "system" fn GetComponentData(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequestInfo_Impl, - { + unsafe extern "system" fn GetComponentData(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuneRequestInfo_Impl::GetComponentData(this, windows_core::from_raw_borrowed(¤trequest)).into() } - unsafe extern "system" fn CreateComponentList(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequestInfo_Impl, - { + unsafe extern "system" fn CreateComponentList(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuneRequestInfo_Impl::CreateComponentList(this, windows_core::from_raw_borrowed(¤trequest)).into() } - unsafe extern "system" fn GetNextProgram(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequestInfo_Impl, - { + unsafe extern "system" fn GetNextProgram(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuneRequestInfo_Impl::GetNextProgram(this, windows_core::from_raw_borrowed(¤trequest)) { Ok(ok__) => { @@ -25260,10 +19542,7 @@ impl ITuneRequestInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreviousProgram(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequestInfo_Impl, - { + unsafe extern "system" fn GetPreviousProgram(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuneRequestInfo_Impl::GetPreviousProgram(this, windows_core::from_raw_borrowed(¤trequest)) { Ok(ok__) => { @@ -25273,10 +19552,7 @@ impl ITuneRequestInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextLocator(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequestInfo_Impl, - { + unsafe extern "system" fn GetNextLocator(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuneRequestInfo_Impl::GetNextLocator(this, windows_core::from_raw_borrowed(¤trequest)) { Ok(ok__) => { @@ -25286,10 +19562,7 @@ impl ITuneRequestInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreviousLocator(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequestInfo_Impl, - { + unsafe extern "system" fn GetPreviousLocator(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuneRequestInfo_Impl::GetPreviousLocator(this, windows_core::from_raw_borrowed(¤trequest)) { Ok(ok__) => { @@ -25322,14 +19595,8 @@ pub trait ITuneRequestInfoEx_Impl: Sized + ITuneRequestInfo_Impl { impl windows_core::RuntimeName for ITuneRequestInfoEx {} #[cfg(feature = "Win32_System_Com")] impl ITuneRequestInfoEx_Vtbl { - pub const fn new() -> ITuneRequestInfoEx_Vtbl - where - Identity: ITuneRequestInfoEx_Impl, - { - unsafe extern "system" fn CreateComponentListEx(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void, ppcurpmt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuneRequestInfoEx_Impl, - { + pub const fn new() -> ITuneRequestInfoEx_Vtbl { + unsafe extern "system" fn CreateComponentListEx(this: *mut core::ffi::c_void, currentrequest: *mut core::ffi::c_void, ppcurpmt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuneRequestInfoEx_Impl::CreateComponentListEx(this, windows_core::from_raw_borrowed(¤trequest)) { Ok(ok__) => { @@ -25346,7 +19613,7 @@ impl ITuneRequestInfoEx_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITuner_Impl: Sized { +pub trait ITuner_Impl: Sized + windows_core::IUnknownImpl { fn TuningSpace(&self) -> windows_core::Result; fn SetTuningSpace(&self, tuningspace: Option<&ITuningSpace>) -> windows_core::Result<()>; fn EnumTuningSpaces(&self) -> windows_core::Result; @@ -25362,14 +19629,8 @@ pub trait ITuner_Impl: Sized { impl windows_core::RuntimeName for ITuner {} #[cfg(feature = "Win32_System_Com")] impl ITuner_Vtbl { - pub const fn new() -> ITuner_Vtbl - where - Identity: ITuner_Impl, - { - unsafe extern "system" fn TuningSpace(this: *mut core::ffi::c_void, tuningspace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuner_Impl, - { + pub const fn new() -> ITuner_Vtbl { + unsafe extern "system" fn TuningSpace(this: *mut core::ffi::c_void, tuningspace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuner_Impl::TuningSpace(this) { Ok(ok__) => { @@ -25379,17 +19640,11 @@ impl ITuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTuningSpace(this: *mut core::ffi::c_void, tuningspace: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuner_Impl, - { + unsafe extern "system" fn SetTuningSpace(this: *mut core::ffi::c_void, tuningspace: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuner_Impl::SetTuningSpace(this, windows_core::from_raw_borrowed(&tuningspace)).into() } - unsafe extern "system" fn EnumTuningSpaces(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuner_Impl, - { + unsafe extern "system" fn EnumTuningSpaces(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuner_Impl::EnumTuningSpaces(this) { Ok(ok__) => { @@ -25399,10 +19654,7 @@ impl ITuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TuneRequest(this: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuner_Impl, - { + unsafe extern "system" fn TuneRequest(this: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuner_Impl::TuneRequest(this) { Ok(ok__) => { @@ -25412,24 +19664,15 @@ impl ITuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTuneRequest(this: *mut core::ffi::c_void, tunerequest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuner_Impl, - { + unsafe extern "system" fn SetTuneRequest(this: *mut core::ffi::c_void, tunerequest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuner_Impl::SetTuneRequest(this, windows_core::from_raw_borrowed(&tunerequest)).into() } - unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, tunerequest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuner_Impl, - { + unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, tunerequest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuner_Impl::Validate(this, windows_core::from_raw_borrowed(&tunerequest)).into() } - unsafe extern "system" fn PreferredComponentTypes(this: *mut core::ffi::c_void, componenttypes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuner_Impl, - { + unsafe extern "system" fn PreferredComponentTypes(this: *mut core::ffi::c_void, componenttypes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuner_Impl::PreferredComponentTypes(this) { Ok(ok__) => { @@ -25439,17 +19682,11 @@ impl ITuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPreferredComponentTypes(this: *mut core::ffi::c_void, componenttypes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuner_Impl, - { + unsafe extern "system" fn SetPreferredComponentTypes(this: *mut core::ffi::c_void, componenttypes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuner_Impl::SetPreferredComponentTypes(this, windows_core::from_raw_borrowed(&componenttypes)).into() } - unsafe extern "system" fn SignalStrength(this: *mut core::ffi::c_void, strength: *mut i32) -> windows_core::HRESULT - where - Identity: ITuner_Impl, - { + unsafe extern "system" fn SignalStrength(this: *mut core::ffi::c_void, strength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuner_Impl::SignalStrength(this) { Ok(ok__) => { @@ -25459,10 +19696,7 @@ impl ITuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TriggerSignalEvents(this: *mut core::ffi::c_void, interval: i32) -> windows_core::HRESULT - where - Identity: ITuner_Impl, - { + unsafe extern "system" fn TriggerSignalEvents(this: *mut core::ffi::c_void, interval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuner_Impl::TriggerSignalEvents(this, core::mem::transmute_copy(&interval)).into() } @@ -25484,35 +19718,23 @@ impl ITuner_Vtbl { iid == &::IID } } -pub trait ITunerCap_Impl: Sized { +pub trait ITunerCap_Impl: Sized + windows_core::IUnknownImpl { fn get_SupportedNetworkTypes(&self, ulcnetworktypesmax: u32, pulcnetworktypes: *mut u32, pguidnetworktypes: *mut windows_core::GUID) -> windows_core::Result<()>; fn get_SupportedVideoFormats(&self, pulamtunermodetype: *mut u32, pulanalogvideostandard: *mut u32) -> windows_core::Result<()>; fn get_AuxInputCount(&self, pulcompositecount: *mut u32, pulsvideocount: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITunerCap {} impl ITunerCap_Vtbl { - pub const fn new() -> ITunerCap_Vtbl - where - Identity: ITunerCap_Impl, - { - unsafe extern "system" fn get_SupportedNetworkTypes(this: *mut core::ffi::c_void, ulcnetworktypesmax: u32, pulcnetworktypes: *mut u32, pguidnetworktypes: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITunerCap_Impl, - { + pub const fn new() -> ITunerCap_Vtbl { + unsafe extern "system" fn get_SupportedNetworkTypes(this: *mut core::ffi::c_void, ulcnetworktypesmax: u32, pulcnetworktypes: *mut u32, pguidnetworktypes: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITunerCap_Impl::get_SupportedNetworkTypes(this, core::mem::transmute_copy(&ulcnetworktypesmax), core::mem::transmute_copy(&pulcnetworktypes), core::mem::transmute_copy(&pguidnetworktypes)).into() } - unsafe extern "system" fn get_SupportedVideoFormats(this: *mut core::ffi::c_void, pulamtunermodetype: *mut u32, pulanalogvideostandard: *mut u32) -> windows_core::HRESULT - where - Identity: ITunerCap_Impl, - { + unsafe extern "system" fn get_SupportedVideoFormats(this: *mut core::ffi::c_void, pulamtunermodetype: *mut u32, pulanalogvideostandard: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITunerCap_Impl::get_SupportedVideoFormats(this, core::mem::transmute_copy(&pulamtunermodetype), core::mem::transmute_copy(&pulanalogvideostandard)).into() } - unsafe extern "system" fn get_AuxInputCount(this: *mut core::ffi::c_void, pulcompositecount: *mut u32, pulsvideocount: *mut u32) -> windows_core::HRESULT - where - Identity: ITunerCap_Impl, - { + unsafe extern "system" fn get_AuxInputCount(this: *mut core::ffi::c_void, pulcompositecount: *mut u32, pulsvideocount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITunerCap_Impl::get_AuxInputCount(this, core::mem::transmute_copy(&pulcompositecount), core::mem::transmute_copy(&pulsvideocount)).into() } @@ -25527,19 +19749,13 @@ impl ITunerCap_Vtbl { iid == &::IID } } -pub trait ITunerCapEx_Impl: Sized { +pub trait ITunerCapEx_Impl: Sized + windows_core::IUnknownImpl { fn Has608_708Caption(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITunerCapEx {} impl ITunerCapEx_Vtbl { - pub const fn new() -> ITunerCapEx_Vtbl - where - Identity: ITunerCapEx_Impl, - { - unsafe extern "system" fn Has608_708Caption(this: *mut core::ffi::c_void, pbhascaption: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITunerCapEx_Impl, - { + pub const fn new() -> ITunerCapEx_Vtbl { + unsafe extern "system" fn Has608_708Caption(this: *mut core::ffi::c_void, pbhascaption: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITunerCapEx_Impl::Has608_708Caption(this) { Ok(ok__) => { @@ -25581,14 +19797,8 @@ pub trait ITuningSpace_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for ITuningSpace {} #[cfg(feature = "Win32_System_Com")] impl ITuningSpace_Vtbl { - pub const fn new() -> ITuningSpace_Vtbl - where - Identity: ITuningSpace_Impl, - { - unsafe extern "system" fn UniqueName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + pub const fn new() -> ITuningSpace_Vtbl { + unsafe extern "system" fn UniqueName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::UniqueName(this) { Ok(ok__) => { @@ -25598,17 +19808,11 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUniqueName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn SetUniqueName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuningSpace_Impl::SetUniqueName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::FriendlyName(this) { Ok(ok__) => { @@ -25618,17 +19822,11 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuningSpace_Impl::SetFriendlyName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn CLSID(this: *mut core::ffi::c_void, spaceclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn CLSID(this: *mut core::ffi::c_void, spaceclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::CLSID(this) { Ok(ok__) => { @@ -25638,10 +19836,7 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NetworkType(this: *mut core::ffi::c_void, networktypeguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn NetworkType(this: *mut core::ffi::c_void, networktypeguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::NetworkType(this) { Ok(ok__) => { @@ -25651,17 +19846,11 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkType(this: *mut core::ffi::c_void, networktypeguid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn SetNetworkType(this: *mut core::ffi::c_void, networktypeguid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuningSpace_Impl::SetNetworkType(this, core::mem::transmute(&networktypeguid)).into() } - unsafe extern "system" fn _NetworkType(this: *mut core::ffi::c_void, networktypeguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn _NetworkType(this: *mut core::ffi::c_void, networktypeguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::_NetworkType(this) { Ok(ok__) => { @@ -25671,17 +19860,11 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Set_NetworkType(this: *mut core::ffi::c_void, networktypeguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn Set_NetworkType(this: *mut core::ffi::c_void, networktypeguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuningSpace_Impl::Set_NetworkType(this, core::mem::transmute_copy(&networktypeguid)).into() } - unsafe extern "system" fn CreateTuneRequest(this: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn CreateTuneRequest(this: *mut core::ffi::c_void, tunerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::CreateTuneRequest(this) { Ok(ok__) => { @@ -25691,10 +19874,7 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumCategoryGUIDs(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn EnumCategoryGUIDs(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::EnumCategoryGUIDs(this) { Ok(ok__) => { @@ -25704,10 +19884,7 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDeviceMonikers(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn EnumDeviceMonikers(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::EnumDeviceMonikers(this) { Ok(ok__) => { @@ -25717,10 +19894,7 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultPreferredComponentTypes(this: *mut core::ffi::c_void, componenttypes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn DefaultPreferredComponentTypes(this: *mut core::ffi::c_void, componenttypes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::DefaultPreferredComponentTypes(this) { Ok(ok__) => { @@ -25730,17 +19904,11 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultPreferredComponentTypes(this: *mut core::ffi::c_void, newcomponenttypes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn SetDefaultPreferredComponentTypes(this: *mut core::ffi::c_void, newcomponenttypes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuningSpace_Impl::SetDefaultPreferredComponentTypes(this, windows_core::from_raw_borrowed(&newcomponenttypes)).into() } - unsafe extern "system" fn FrequencyMapping(this: *mut core::ffi::c_void, pmapping: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn FrequencyMapping(this: *mut core::ffi::c_void, pmapping: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::FrequencyMapping(this) { Ok(ok__) => { @@ -25750,17 +19918,11 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrequencyMapping(this: *mut core::ffi::c_void, mapping: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn SetFrequencyMapping(this: *mut core::ffi::c_void, mapping: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuningSpace_Impl::SetFrequencyMapping(this, core::mem::transmute(&mapping)).into() } - unsafe extern "system" fn DefaultLocator(this: *mut core::ffi::c_void, locatorval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn DefaultLocator(this: *mut core::ffi::c_void, locatorval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::DefaultLocator(this) { Ok(ok__) => { @@ -25770,17 +19932,11 @@ impl ITuningSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultLocator(this: *mut core::ffi::c_void, locatorval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn SetDefaultLocator(this: *mut core::ffi::c_void, locatorval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuningSpace_Impl::SetDefaultLocator(this, windows_core::from_raw_borrowed(&locatorval)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpace_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpace_Impl::Clone(this) { Ok(ok__) => { @@ -25837,14 +19993,8 @@ pub trait ITuningSpaceContainer_Impl: Sized + super::super::super::System::Com:: impl windows_core::RuntimeName for ITuningSpaceContainer {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITuningSpaceContainer_Vtbl { - pub const fn new() -> ITuningSpaceContainer_Vtbl - where - Identity: ITuningSpaceContainer_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + pub const fn new() -> ITuningSpaceContainer_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaceContainer_Impl::Count(this) { Ok(ok__) => { @@ -25854,10 +20004,7 @@ impl ITuningSpaceContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaceContainer_Impl::_NewEnum(this) { Ok(ok__) => { @@ -25867,10 +20014,7 @@ impl ITuningSpaceContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, tuningspace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, tuningspace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaceContainer_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -25880,17 +20024,11 @@ impl ITuningSpaceContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, tuningspace: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn put_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, tuningspace: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuningSpaceContainer_Impl::put_Item(this, core::mem::transmute(&varindex), windows_core::from_raw_borrowed(&tuningspace)).into() } - unsafe extern "system" fn TuningSpacesForCLSID(this: *mut core::ffi::c_void, spaceclsid: core::mem::MaybeUninit, newcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn TuningSpacesForCLSID(this: *mut core::ffi::c_void, spaceclsid: core::mem::MaybeUninit, newcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaceContainer_Impl::TuningSpacesForCLSID(this, core::mem::transmute(&spaceclsid)) { Ok(ok__) => { @@ -25900,10 +20038,7 @@ impl ITuningSpaceContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _TuningSpacesForCLSID2(this: *mut core::ffi::c_void, spaceclsid: *const windows_core::GUID, newcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn _TuningSpacesForCLSID2(this: *mut core::ffi::c_void, spaceclsid: *const windows_core::GUID, newcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaceContainer_Impl::_TuningSpacesForCLSID2(this, core::mem::transmute_copy(&spaceclsid)) { Ok(ok__) => { @@ -25913,10 +20048,7 @@ impl ITuningSpaceContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TuningSpacesForName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, newcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn TuningSpacesForName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, newcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaceContainer_Impl::TuningSpacesForName(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -25926,10 +20058,7 @@ impl ITuningSpaceContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindID(this: *mut core::ffi::c_void, tuningspace: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn FindID(this: *mut core::ffi::c_void, tuningspace: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaceContainer_Impl::FindID(this, windows_core::from_raw_borrowed(&tuningspace)) { Ok(ok__) => { @@ -25939,10 +20068,7 @@ impl ITuningSpaceContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, tuningspace: *mut core::ffi::c_void, newindex: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, tuningspace: *mut core::ffi::c_void, newindex: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaceContainer_Impl::Add(this, windows_core::from_raw_borrowed(&tuningspace)) { Ok(ok__) => { @@ -25952,10 +20078,7 @@ impl ITuningSpaceContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumTuningSpaces(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn EnumTuningSpaces(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaceContainer_Impl::EnumTuningSpaces(this) { Ok(ok__) => { @@ -25965,17 +20088,11 @@ impl ITuningSpaceContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuningSpaceContainer_Impl::Remove(this, core::mem::transmute(&index)).into() } - unsafe extern "system" fn MaxCount(this: *mut core::ffi::c_void, maxcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn MaxCount(this: *mut core::ffi::c_void, maxcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaceContainer_Impl::MaxCount(this) { Ok(ok__) => { @@ -25985,10 +20102,7 @@ impl ITuningSpaceContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxCount(this: *mut core::ffi::c_void, maxcount: i32) -> windows_core::HRESULT - where - Identity: ITuningSpaceContainer_Impl, - { + unsafe extern "system" fn SetMaxCount(this: *mut core::ffi::c_void, maxcount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITuningSpaceContainer_Impl::SetMaxCount(this, core::mem::transmute_copy(&maxcount)).into() } @@ -26024,14 +20138,8 @@ pub trait ITuningSpaces_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for ITuningSpaces {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITuningSpaces_Vtbl { - pub const fn new() -> ITuningSpaces_Vtbl - where - Identity: ITuningSpaces_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ITuningSpaces_Impl, - { + pub const fn new() -> ITuningSpaces_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaces_Impl::Count(this) { Ok(ok__) => { @@ -26041,10 +20149,7 @@ impl ITuningSpaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpaces_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaces_Impl::_NewEnum(this) { Ok(ok__) => { @@ -26054,10 +20159,7 @@ impl ITuningSpaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, tuningspace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpaces_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, tuningspace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaces_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -26067,10 +20169,7 @@ impl ITuningSpaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumTuningSpaces(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITuningSpaces_Impl, - { + unsafe extern "system" fn EnumTuningSpaces(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITuningSpaces_Impl::EnumTuningSpaces(this) { Ok(ok__) => { @@ -26092,7 +20191,7 @@ impl ITuningSpaces_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IXDSCodec_Impl: Sized { +pub trait IXDSCodec_Impl: Sized + windows_core::IUnknownImpl { fn XDSToRatObjOK(&self) -> windows_core::Result; fn SetCCSubstreamService(&self, substreammask: i32) -> windows_core::Result<()>; fn CCSubstreamService(&self) -> windows_core::Result; @@ -26103,14 +20202,8 @@ pub trait IXDSCodec_Impl: Sized { } impl windows_core::RuntimeName for IXDSCodec {} impl IXDSCodec_Vtbl { - pub const fn new() -> IXDSCodec_Vtbl - where - Identity: IXDSCodec_Impl, - { - unsafe extern "system" fn XDSToRatObjOK(this: *mut core::ffi::c_void, phrcocreateretval: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IXDSCodec_Impl, - { + pub const fn new() -> IXDSCodec_Vtbl { + unsafe extern "system" fn XDSToRatObjOK(this: *mut core::ffi::c_void, phrcocreateretval: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXDSCodec_Impl::XDSToRatObjOK(this) { Ok(ok__) => { @@ -26120,17 +20213,11 @@ impl IXDSCodec_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCCSubstreamService(this: *mut core::ffi::c_void, substreammask: i32) -> windows_core::HRESULT - where - Identity: IXDSCodec_Impl, - { + unsafe extern "system" fn SetCCSubstreamService(this: *mut core::ffi::c_void, substreammask: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXDSCodec_Impl::SetCCSubstreamService(this, core::mem::transmute_copy(&substreammask)).into() } - unsafe extern "system" fn CCSubstreamService(this: *mut core::ffi::c_void, psubstreammask: *mut i32) -> windows_core::HRESULT - where - Identity: IXDSCodec_Impl, - { + unsafe extern "system" fn CCSubstreamService(this: *mut core::ffi::c_void, psubstreammask: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXDSCodec_Impl::CCSubstreamService(this) { Ok(ok__) => { @@ -26140,24 +20227,15 @@ impl IXDSCodec_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContentAdvisoryRating(this: *mut core::ffi::c_void, prat: *mut i32, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT - where - Identity: IXDSCodec_Impl, - { + unsafe extern "system" fn GetContentAdvisoryRating(this: *mut core::ffi::c_void, prat: *mut i32, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXDSCodec_Impl::GetContentAdvisoryRating(this, 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(this: *mut core::ffi::c_void, pxdsclasspkt: *mut i32, pxdstypepkt: *mut i32, pbstrxdspkt: *mut core::mem::MaybeUninit, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT - where - Identity: IXDSCodec_Impl, - { + unsafe extern "system" fn GetXDSPacket(this: *mut core::ffi::c_void, pxdsclasspkt: *mut i32, pxdstypepkt: *mut i32, pbstrxdspkt: *mut core::mem::MaybeUninit, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXDSCodec_Impl::GetXDSPacket(this, 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() } - unsafe extern "system" fn GetCurrLicenseExpDate(this: *mut core::ffi::c_void, prottype: *const ProtType, lpdatetime: *mut i32) -> windows_core::HRESULT - where - Identity: IXDSCodec_Impl, - { + unsafe extern "system" fn GetCurrLicenseExpDate(this: *mut core::ffi::c_void, prottype: *const ProtType, lpdatetime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXDSCodec_Impl::GetCurrLicenseExpDate(this, core::mem::transmute_copy(&prottype)) { Ok(ok__) => { @@ -26167,10 +20245,7 @@ impl IXDSCodec_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXDSCodec_Impl, - { + unsafe extern "system" fn GetLastErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXDSCodec_Impl::GetLastErrorCode(this).into() } @@ -26189,20 +20264,14 @@ impl IXDSCodec_Vtbl { iid == &::IID } } -pub trait IXDSCodecConfig_Impl: Sized { +pub trait IXDSCodecConfig_Impl: Sized + windows_core::IUnknownImpl { fn GetSecureChannelObject(&self) -> windows_core::Result; fn SetPauseBufferTime(&self, dwpausebuffertime: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXDSCodecConfig {} impl IXDSCodecConfig_Vtbl { - pub const fn new() -> IXDSCodecConfig_Vtbl - where - Identity: IXDSCodecConfig_Impl, - { - unsafe extern "system" fn GetSecureChannelObject(this: *mut core::ffi::c_void, ppunkdrmsecurechannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXDSCodecConfig_Impl, - { + pub const fn new() -> IXDSCodecConfig_Vtbl { + unsafe extern "system" fn GetSecureChannelObject(this: *mut core::ffi::c_void, ppunkdrmsecurechannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXDSCodecConfig_Impl::GetSecureChannelObject(this) { Ok(ok__) => { @@ -26212,10 +20281,7 @@ impl IXDSCodecConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPauseBufferTime(this: *mut core::ffi::c_void, dwpausebuffertime: u32) -> windows_core::HRESULT - where - Identity: IXDSCodecConfig_Impl, - { + unsafe extern "system" fn SetPauseBufferTime(this: *mut core::ffi::c_void, dwpausebuffertime: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXDSCodecConfig_Impl::SetPauseBufferTime(this, core::mem::transmute_copy(&dwpausebuffertime)).into() } @@ -26235,10 +20301,7 @@ pub trait IXDSCodecEvents_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IXDSCodecEvents {} #[cfg(feature = "Win32_System_Com")] impl IXDSCodecEvents_Vtbl { - pub const fn new() -> IXDSCodecEvents_Vtbl - where - Identity: IXDSCodecEvents_Impl, - { + pub const fn new() -> IXDSCodecEvents_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26254,21 +20317,12 @@ pub trait IXDSToRat_Impl: Sized + super::super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IXDSToRat {} #[cfg(feature = "Win32_System_Com")] impl IXDSToRat_Vtbl { - pub const fn new() -> IXDSToRat_Vtbl - where - Identity: IXDSToRat_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXDSToRat_Impl, - { + pub const fn new() -> IXDSToRat_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXDSToRat_Impl::Init(this).into() } - unsafe extern "system" fn ParseXDSBytePair(this: *mut core::ffi::c_void, byte1: u8, byte2: u8, pensystem: *mut EnTvRat_System, penlevel: *mut EnTvRat_GenericLevel, plbfenattributes: *mut i32) -> windows_core::HRESULT - where - Identity: IXDSToRat_Impl, - { + unsafe extern "system" fn ParseXDSBytePair(this: *mut core::ffi::c_void, byte1: u8, byte2: u8, pensystem: *mut EnTvRat_System, penlevel: *mut EnTvRat_GenericLevel, plbfenattributes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXDSToRat_Impl::ParseXDSBytePair(this, core::mem::transmute_copy(&byte1), core::mem::transmute_copy(&byte2), core::mem::transmute_copy(&pensystem), core::mem::transmute_copy(&penlevel), core::mem::transmute_copy(&plbfenattributes)).into() } @@ -26288,10 +20342,7 @@ pub trait _IMSVidCtlEvents_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for _IMSVidCtlEvents {} #[cfg(feature = "Win32_System_Com")] impl _IMSVidCtlEvents_Vtbl { - pub const fn new() -> _IMSVidCtlEvents_Vtbl - where - Identity: _IMSVidCtlEvents_Impl, - { + pub const fn new() -> _IMSVidCtlEvents_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { 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 4617398f3d..9e15f73bab 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,5 +1,5 @@ #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] -pub trait IXMLGraphBuilder_Impl: Sized { +pub trait IXMLGraphBuilder_Impl: Sized + windows_core::IUnknownImpl { fn BuildFromXML(&self, pgraph: Option<&super::IGraphBuilder>, pxml: Option<&super::super::super::Data::Xml::MsXml::IXMLElement>) -> windows_core::Result<()>; fn SaveToXML(&self, pgraph: Option<&super::IGraphBuilder>, pbstrxml: *mut windows_core::BSTR) -> windows_core::Result<()>; fn BuildFromXMLFile(&self, pgraph: Option<&super::IGraphBuilder>, wszfilename: &windows_core::PCWSTR, wszbaseurl: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -8,28 +8,16 @@ pub trait IXMLGraphBuilder_Impl: Sized { impl windows_core::RuntimeName for IXMLGraphBuilder {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IXMLGraphBuilder_Vtbl { - pub const fn new() -> IXMLGraphBuilder_Vtbl - where - Identity: IXMLGraphBuilder_Impl, - { - unsafe extern "system" fn BuildFromXML(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void, pxml: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXMLGraphBuilder_Impl, - { + pub const fn new() -> IXMLGraphBuilder_Vtbl { + unsafe extern "system" fn BuildFromXML(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void, pxml: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLGraphBuilder_Impl::BuildFromXML(this, windows_core::from_raw_borrowed(&pgraph), windows_core::from_raw_borrowed(&pxml)).into() } - unsafe extern "system" fn SaveToXML(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void, pbstrxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IXMLGraphBuilder_Impl, - { + unsafe extern "system" fn SaveToXML(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void, pbstrxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLGraphBuilder_Impl::SaveToXML(this, windows_core::from_raw_borrowed(&pgraph), core::mem::transmute_copy(&pbstrxml)).into() } - unsafe extern "system" fn BuildFromXMLFile(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void, wszfilename: windows_core::PCWSTR, wszbaseurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXMLGraphBuilder_Impl, - { + unsafe extern "system" fn BuildFromXMLFile(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void, wszfilename: windows_core::PCWSTR, wszbaseurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLGraphBuilder_Impl::BuildFromXMLFile(this, windows_core::from_raw_borrowed(&pgraph), core::mem::transmute(&wszfilename), core::mem::transmute(&wszbaseurl)).into() } 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 73a326a763..88d6843468 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/impl.rs @@ -1,4 +1,4 @@ -pub trait IAMAnalogVideoDecoder_Impl: Sized { +pub trait IAMAnalogVideoDecoder_Impl: Sized + windows_core::IUnknownImpl { fn AvailableTVFormats(&self) -> windows_core::Result; fn SetTVFormat(&self, lanalogvideostandard: i32) -> windows_core::Result<()>; fn TVFormat(&self) -> windows_core::Result; @@ -11,14 +11,8 @@ pub trait IAMAnalogVideoDecoder_Impl: Sized { } impl windows_core::RuntimeName for IAMAnalogVideoDecoder {} impl IAMAnalogVideoDecoder_Vtbl { - pub const fn new() -> IAMAnalogVideoDecoder_Vtbl - where - Identity: IAMAnalogVideoDecoder_Impl, - { - unsafe extern "system" fn AvailableTVFormats(this: *mut core::ffi::c_void, lanalogvideostandard: *mut i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoDecoder_Impl, - { + pub const fn new() -> IAMAnalogVideoDecoder_Vtbl { + unsafe extern "system" fn AvailableTVFormats(this: *mut core::ffi::c_void, lanalogvideostandard: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAnalogVideoDecoder_Impl::AvailableTVFormats(this) { Ok(ok__) => { @@ -28,17 +22,11 @@ impl IAMAnalogVideoDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTVFormat(this: *mut core::ffi::c_void, lanalogvideostandard: i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoDecoder_Impl, - { + unsafe extern "system" fn SetTVFormat(this: *mut core::ffi::c_void, lanalogvideostandard: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAnalogVideoDecoder_Impl::SetTVFormat(this, core::mem::transmute_copy(&lanalogvideostandard)).into() } - unsafe extern "system" fn TVFormat(this: *mut core::ffi::c_void, planalogvideostandard: *mut i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoDecoder_Impl, - { + unsafe extern "system" fn TVFormat(this: *mut core::ffi::c_void, planalogvideostandard: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAnalogVideoDecoder_Impl::TVFormat(this) { Ok(ok__) => { @@ -48,10 +36,7 @@ impl IAMAnalogVideoDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HorizontalLocked(this: *mut core::ffi::c_void, pllocked: *mut i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoDecoder_Impl, - { + unsafe extern "system" fn HorizontalLocked(this: *mut core::ffi::c_void, pllocked: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAnalogVideoDecoder_Impl::HorizontalLocked(this) { Ok(ok__) => { @@ -61,17 +46,11 @@ impl IAMAnalogVideoDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVCRHorizontalLocking(this: *mut core::ffi::c_void, lvcrhorizontallocking: i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoDecoder_Impl, - { + unsafe extern "system" fn SetVCRHorizontalLocking(this: *mut core::ffi::c_void, lvcrhorizontallocking: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAnalogVideoDecoder_Impl::SetVCRHorizontalLocking(this, core::mem::transmute_copy(&lvcrhorizontallocking)).into() } - unsafe extern "system" fn VCRHorizontalLocking(this: *mut core::ffi::c_void, plvcrhorizontallocking: *mut i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoDecoder_Impl, - { + unsafe extern "system" fn VCRHorizontalLocking(this: *mut core::ffi::c_void, plvcrhorizontallocking: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAnalogVideoDecoder_Impl::VCRHorizontalLocking(this) { Ok(ok__) => { @@ -81,10 +60,7 @@ impl IAMAnalogVideoDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfLines(this: *mut core::ffi::c_void, plnumberoflines: *mut i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoDecoder_Impl, - { + unsafe extern "system" fn NumberOfLines(this: *mut core::ffi::c_void, plnumberoflines: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAnalogVideoDecoder_Impl::NumberOfLines(this) { Ok(ok__) => { @@ -94,17 +70,11 @@ impl IAMAnalogVideoDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputEnable(this: *mut core::ffi::c_void, loutputenable: i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoDecoder_Impl, - { + unsafe extern "system" fn SetOutputEnable(this: *mut core::ffi::c_void, loutputenable: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAnalogVideoDecoder_Impl::SetOutputEnable(this, core::mem::transmute_copy(&loutputenable)).into() } - unsafe extern "system" fn OutputEnable(this: *mut core::ffi::c_void, ploutputenable: *mut i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoDecoder_Impl, - { + unsafe extern "system" fn OutputEnable(this: *mut core::ffi::c_void, ploutputenable: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAnalogVideoDecoder_Impl::OutputEnable(this) { Ok(ok__) => { @@ -131,7 +101,7 @@ impl IAMAnalogVideoDecoder_Vtbl { iid == &::IID } } -pub trait IAMAnalogVideoEncoder_Impl: Sized { +pub trait IAMAnalogVideoEncoder_Impl: Sized + windows_core::IUnknownImpl { fn AvailableTVFormats(&self) -> windows_core::Result; fn SetTVFormat(&self, lanalogvideostandard: i32) -> windows_core::Result<()>; fn TVFormat(&self) -> windows_core::Result; @@ -142,14 +112,8 @@ pub trait IAMAnalogVideoEncoder_Impl: Sized { } impl windows_core::RuntimeName for IAMAnalogVideoEncoder {} impl IAMAnalogVideoEncoder_Vtbl { - pub const fn new() -> IAMAnalogVideoEncoder_Vtbl - where - Identity: IAMAnalogVideoEncoder_Impl, - { - unsafe extern "system" fn AvailableTVFormats(this: *mut core::ffi::c_void, lanalogvideostandard: *mut i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoEncoder_Impl, - { + pub const fn new() -> IAMAnalogVideoEncoder_Vtbl { + unsafe extern "system" fn AvailableTVFormats(this: *mut core::ffi::c_void, lanalogvideostandard: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAnalogVideoEncoder_Impl::AvailableTVFormats(this) { Ok(ok__) => { @@ -159,17 +123,11 @@ impl IAMAnalogVideoEncoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTVFormat(this: *mut core::ffi::c_void, lanalogvideostandard: i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoEncoder_Impl, - { + unsafe extern "system" fn SetTVFormat(this: *mut core::ffi::c_void, lanalogvideostandard: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAnalogVideoEncoder_Impl::SetTVFormat(this, core::mem::transmute_copy(&lanalogvideostandard)).into() } - unsafe extern "system" fn TVFormat(this: *mut core::ffi::c_void, planalogvideostandard: *mut i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoEncoder_Impl, - { + unsafe extern "system" fn TVFormat(this: *mut core::ffi::c_void, planalogvideostandard: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAnalogVideoEncoder_Impl::TVFormat(this) { Ok(ok__) => { @@ -179,17 +137,11 @@ impl IAMAnalogVideoEncoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCopyProtection(this: *mut core::ffi::c_void, lvideocopyprotection: i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoEncoder_Impl, - { + unsafe extern "system" fn SetCopyProtection(this: *mut core::ffi::c_void, lvideocopyprotection: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAnalogVideoEncoder_Impl::SetCopyProtection(this, core::mem::transmute_copy(&lvideocopyprotection)).into() } - unsafe extern "system" fn CopyProtection(this: *mut core::ffi::c_void, lvideocopyprotection: *mut i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoEncoder_Impl, - { + unsafe extern "system" fn CopyProtection(this: *mut core::ffi::c_void, lvideocopyprotection: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAnalogVideoEncoder_Impl::CopyProtection(this) { Ok(ok__) => { @@ -199,17 +151,11 @@ impl IAMAnalogVideoEncoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCCEnable(this: *mut core::ffi::c_void, lccenable: i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoEncoder_Impl, - { + unsafe extern "system" fn SetCCEnable(this: *mut core::ffi::c_void, lccenable: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAnalogVideoEncoder_Impl::SetCCEnable(this, core::mem::transmute_copy(&lccenable)).into() } - unsafe extern "system" fn CCEnable(this: *mut core::ffi::c_void, lccenable: *mut i32) -> windows_core::HRESULT - where - Identity: IAMAnalogVideoEncoder_Impl, - { + unsafe extern "system" fn CCEnable(this: *mut core::ffi::c_void, lccenable: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAnalogVideoEncoder_Impl::CCEnable(this) { Ok(ok__) => { @@ -234,20 +180,14 @@ impl IAMAnalogVideoEncoder_Vtbl { iid == &::IID } } -pub trait IAMAsyncReaderTimestampScaling_Impl: Sized { +pub trait IAMAsyncReaderTimestampScaling_Impl: Sized + windows_core::IUnknownImpl { fn GetTimestampMode(&self) -> windows_core::Result; fn SetTimestampMode(&self, fraw: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMAsyncReaderTimestampScaling {} impl IAMAsyncReaderTimestampScaling_Vtbl { - pub const fn new() -> IAMAsyncReaderTimestampScaling_Vtbl - where - Identity: IAMAsyncReaderTimestampScaling_Impl, - { - unsafe extern "system" fn GetTimestampMode(this: *mut core::ffi::c_void, pfraw: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMAsyncReaderTimestampScaling_Impl, - { + pub const fn new() -> IAMAsyncReaderTimestampScaling_Vtbl { + unsafe extern "system" fn GetTimestampMode(this: *mut core::ffi::c_void, pfraw: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAsyncReaderTimestampScaling_Impl::GetTimestampMode(this) { Ok(ok__) => { @@ -257,10 +197,7 @@ impl IAMAsyncReaderTimestampScaling_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTimestampMode(this: *mut core::ffi::c_void, fraw: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMAsyncReaderTimestampScaling_Impl, - { + unsafe extern "system" fn SetTimestampMode(this: *mut core::ffi::c_void, fraw: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAsyncReaderTimestampScaling_Impl::SetTimestampMode(this, core::mem::transmute_copy(&fraw)).into() } @@ -274,7 +211,7 @@ impl IAMAsyncReaderTimestampScaling_Vtbl { iid == &::IID } } -pub trait IAMAudioInputMixer_Impl: Sized { +pub trait IAMAudioInputMixer_Impl: Sized + windows_core::IUnknownImpl { fn SetEnable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn Enable(&self) -> windows_core::Result; fn SetMono(&self, fmono: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -294,21 +231,12 @@ pub trait IAMAudioInputMixer_Impl: Sized { } impl windows_core::RuntimeName for IAMAudioInputMixer {} impl IAMAudioInputMixer_Vtbl { - pub const fn new() -> IAMAudioInputMixer_Vtbl - where - Identity: IAMAudioInputMixer_Impl, - { - unsafe extern "system" fn SetEnable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + pub const fn new() -> IAMAudioInputMixer_Vtbl { + unsafe extern "system" fn SetEnable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioInputMixer_Impl::SetEnable(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::Enable(this) { Ok(ok__) => { @@ -318,17 +246,11 @@ impl IAMAudioInputMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMono(this: *mut core::ffi::c_void, fmono: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn SetMono(this: *mut core::ffi::c_void, fmono: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioInputMixer_Impl::SetMono(this, core::mem::transmute_copy(&fmono)).into() } - unsafe extern "system" fn Mono(this: *mut core::ffi::c_void, pfmono: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn Mono(this: *mut core::ffi::c_void, pfmono: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::Mono(this) { Ok(ok__) => { @@ -338,17 +260,11 @@ impl IAMAudioInputMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMixLevel(this: *mut core::ffi::c_void, level: f64) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn SetMixLevel(this: *mut core::ffi::c_void, level: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioInputMixer_Impl::SetMixLevel(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn MixLevel(this: *mut core::ffi::c_void, plevel: *mut f64) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn MixLevel(this: *mut core::ffi::c_void, plevel: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::MixLevel(this) { Ok(ok__) => { @@ -358,17 +274,11 @@ impl IAMAudioInputMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPan(this: *mut core::ffi::c_void, pan: f64) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn SetPan(this: *mut core::ffi::c_void, pan: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioInputMixer_Impl::SetPan(this, core::mem::transmute_copy(&pan)).into() } - unsafe extern "system" fn Pan(this: *mut core::ffi::c_void, ppan: *mut f64) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn Pan(this: *mut core::ffi::c_void, ppan: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::Pan(this) { Ok(ok__) => { @@ -378,17 +288,11 @@ impl IAMAudioInputMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLoudness(this: *mut core::ffi::c_void, floudness: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn SetLoudness(this: *mut core::ffi::c_void, floudness: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioInputMixer_Impl::SetLoudness(this, core::mem::transmute_copy(&floudness)).into() } - unsafe extern "system" fn Loudness(this: *mut core::ffi::c_void, pfloudness: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn Loudness(this: *mut core::ffi::c_void, pfloudness: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::Loudness(this) { Ok(ok__) => { @@ -398,17 +302,11 @@ impl IAMAudioInputMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTreble(this: *mut core::ffi::c_void, treble: f64) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn SetTreble(this: *mut core::ffi::c_void, treble: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioInputMixer_Impl::SetTreble(this, core::mem::transmute_copy(&treble)).into() } - unsafe extern "system" fn Treble(this: *mut core::ffi::c_void, ptreble: *mut f64) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn Treble(this: *mut core::ffi::c_void, ptreble: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::Treble(this) { Ok(ok__) => { @@ -418,10 +316,7 @@ impl IAMAudioInputMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TrebleRange(this: *mut core::ffi::c_void, prange: *mut f64) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn TrebleRange(this: *mut core::ffi::c_void, prange: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::TrebleRange(this) { Ok(ok__) => { @@ -431,17 +326,11 @@ impl IAMAudioInputMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBass(this: *mut core::ffi::c_void, bass: f64) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn SetBass(this: *mut core::ffi::c_void, bass: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioInputMixer_Impl::SetBass(this, core::mem::transmute_copy(&bass)).into() } - unsafe extern "system" fn Bass(this: *mut core::ffi::c_void, pbass: *mut f64) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn Bass(this: *mut core::ffi::c_void, pbass: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::Bass(this) { Ok(ok__) => { @@ -451,10 +340,7 @@ impl IAMAudioInputMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BassRange(this: *mut core::ffi::c_void, prange: *mut f64) -> windows_core::HRESULT - where - Identity: IAMAudioInputMixer_Impl, - { + unsafe extern "system" fn BassRange(this: *mut core::ffi::c_void, prange: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::BassRange(this) { Ok(ok__) => { @@ -488,19 +374,13 @@ impl IAMAudioInputMixer_Vtbl { iid == &::IID } } -pub trait IAMAudioRendererStats_Impl: Sized { +pub trait IAMAudioRendererStats_Impl: Sized + windows_core::IUnknownImpl { fn GetStatParam(&self, dwparam: u32, pdwparam1: *mut u32, pdwparam2: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMAudioRendererStats {} impl IAMAudioRendererStats_Vtbl { - pub const fn new() -> IAMAudioRendererStats_Vtbl - where - Identity: IAMAudioRendererStats_Impl, - { - unsafe extern "system" fn GetStatParam(this: *mut core::ffi::c_void, dwparam: u32, pdwparam1: *mut u32, pdwparam2: *mut u32) -> windows_core::HRESULT - where - Identity: IAMAudioRendererStats_Impl, - { + pub const fn new() -> IAMAudioRendererStats_Vtbl { + unsafe extern "system" fn GetStatParam(this: *mut core::ffi::c_void, dwparam: u32, pdwparam1: *mut u32, pdwparam2: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioRendererStats_Impl::GetStatParam(this, core::mem::transmute_copy(&dwparam), core::mem::transmute_copy(&pdwparam1), core::mem::transmute_copy(&pdwparam2)).into() } @@ -510,27 +390,18 @@ impl IAMAudioRendererStats_Vtbl { iid == &::IID } } -pub trait IAMBufferNegotiation_Impl: Sized { +pub trait IAMBufferNegotiation_Impl: Sized + windows_core::IUnknownImpl { fn SuggestAllocatorProperties(&self, pprop: *const ALLOCATOR_PROPERTIES) -> windows_core::Result<()>; fn GetAllocatorProperties(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAMBufferNegotiation {} impl IAMBufferNegotiation_Vtbl { - pub const fn new() -> IAMBufferNegotiation_Vtbl - where - Identity: IAMBufferNegotiation_Impl, - { - unsafe extern "system" fn SuggestAllocatorProperties(this: *mut core::ffi::c_void, pprop: *const ALLOCATOR_PROPERTIES) -> windows_core::HRESULT - where - Identity: IAMBufferNegotiation_Impl, - { + pub const fn new() -> IAMBufferNegotiation_Vtbl { + unsafe extern "system" fn SuggestAllocatorProperties(this: *mut core::ffi::c_void, pprop: *const ALLOCATOR_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMBufferNegotiation_Impl::SuggestAllocatorProperties(this, core::mem::transmute_copy(&pprop)).into() } - unsafe extern "system" fn GetAllocatorProperties(this: *mut core::ffi::c_void, pprop: *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT - where - Identity: IAMBufferNegotiation_Impl, - { + unsafe extern "system" fn GetAllocatorProperties(this: *mut core::ffi::c_void, pprop: *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMBufferNegotiation_Impl::GetAllocatorProperties(this) { Ok(ok__) => { @@ -550,35 +421,23 @@ impl IAMBufferNegotiation_Vtbl { iid == &::IID } } -pub trait IAMCameraControl_Impl: Sized { +pub trait IAMCameraControl_Impl: Sized + windows_core::IUnknownImpl { fn GetRange(&self, property: i32, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflags: *mut i32) -> windows_core::Result<()>; fn Set(&self, property: i32, lvalue: i32, flags: i32) -> windows_core::Result<()>; fn Get(&self, property: i32, lvalue: *mut i32, flags: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMCameraControl {} impl IAMCameraControl_Vtbl { - pub const fn new() -> IAMCameraControl_Vtbl - where - Identity: IAMCameraControl_Impl, - { - unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, property: i32, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflags: *mut i32) -> windows_core::HRESULT - where - Identity: IAMCameraControl_Impl, - { + pub const fn new() -> IAMCameraControl_Vtbl { + unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, property: i32, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCameraControl_Impl::GetRange(this, core::mem::transmute_copy(&property), core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflags)).into() } - unsafe extern "system" fn Set(this: *mut core::ffi::c_void, property: i32, lvalue: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IAMCameraControl_Impl, - { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, property: i32, lvalue: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCameraControl_Impl::Set(this, core::mem::transmute_copy(&property), core::mem::transmute_copy(&lvalue), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, property: i32, lvalue: *mut i32, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IAMCameraControl_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, property: i32, lvalue: *mut i32, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCameraControl_Impl::Get(this, core::mem::transmute_copy(&property), core::mem::transmute_copy(&lvalue), core::mem::transmute_copy(&flags)).into() } @@ -593,7 +452,7 @@ impl IAMCameraControl_Vtbl { iid == &::IID } } -pub trait IAMCertifiedOutputProtection_Impl: Sized { +pub trait IAMCertifiedOutputProtection_Impl: Sized + windows_core::IUnknownImpl { fn KeyExchange(&self, prandom: *mut windows_core::GUID, varlencertgh: *mut *mut u8, pdwlengthcertgh: *mut u32) -> windows_core::Result<()>; fn SessionSequenceStart(&self, psig: *const AMCOPPSignature) -> windows_core::Result<()>; fn ProtectionCommand(&self, cmd: *const AMCOPPCommand) -> windows_core::Result<()>; @@ -601,35 +460,20 @@ pub trait IAMCertifiedOutputProtection_Impl: Sized { } impl windows_core::RuntimeName for IAMCertifiedOutputProtection {} impl IAMCertifiedOutputProtection_Vtbl { - pub const fn new() -> IAMCertifiedOutputProtection_Vtbl - where - Identity: IAMCertifiedOutputProtection_Impl, - { - unsafe extern "system" fn KeyExchange(this: *mut core::ffi::c_void, prandom: *mut windows_core::GUID, varlencertgh: *mut *mut u8, pdwlengthcertgh: *mut u32) -> windows_core::HRESULT - where - Identity: IAMCertifiedOutputProtection_Impl, - { + pub const fn new() -> IAMCertifiedOutputProtection_Vtbl { + unsafe extern "system" fn KeyExchange(this: *mut core::ffi::c_void, prandom: *mut windows_core::GUID, varlencertgh: *mut *mut u8, pdwlengthcertgh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCertifiedOutputProtection_Impl::KeyExchange(this, core::mem::transmute_copy(&prandom), core::mem::transmute_copy(&varlencertgh), core::mem::transmute_copy(&pdwlengthcertgh)).into() } - unsafe extern "system" fn SessionSequenceStart(this: *mut core::ffi::c_void, psig: *const AMCOPPSignature) -> windows_core::HRESULT - where - Identity: IAMCertifiedOutputProtection_Impl, - { + unsafe extern "system" fn SessionSequenceStart(this: *mut core::ffi::c_void, psig: *const AMCOPPSignature) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCertifiedOutputProtection_Impl::SessionSequenceStart(this, core::mem::transmute_copy(&psig)).into() } - unsafe extern "system" fn ProtectionCommand(this: *mut core::ffi::c_void, cmd: *const AMCOPPCommand) -> windows_core::HRESULT - where - Identity: IAMCertifiedOutputProtection_Impl, - { + unsafe extern "system" fn ProtectionCommand(this: *mut core::ffi::c_void, cmd: *const AMCOPPCommand) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCertifiedOutputProtection_Impl::ProtectionCommand(this, core::mem::transmute_copy(&cmd)).into() } - unsafe extern "system" fn ProtectionStatus(this: *mut core::ffi::c_void, pstatusinput: *const AMCOPPStatusInput, pstatusoutput: *mut AMCOPPStatusOutput) -> windows_core::HRESULT - where - Identity: IAMCertifiedOutputProtection_Impl, - { + unsafe extern "system" fn ProtectionStatus(this: *mut core::ffi::c_void, pstatusinput: *const AMCOPPStatusInput, pstatusoutput: *mut AMCOPPStatusOutput) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCertifiedOutputProtection_Impl::ProtectionStatus(this, core::mem::transmute_copy(&pstatusinput), core::mem::transmute_copy(&pstatusoutput)).into() } @@ -658,49 +502,28 @@ pub trait IAMChannelInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IAMChannelInfo {} #[cfg(feature = "Win32_System_Com")] impl IAMChannelInfo_Vtbl { - pub const fn new() -> IAMChannelInfo_Vtbl - where - Identity: IAMChannelInfo_Impl, - { - unsafe extern "system" fn ChannelName(this: *mut core::ffi::c_void, pbstrchannelname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMChannelInfo_Impl, - { + pub const fn new() -> IAMChannelInfo_Vtbl { + unsafe extern "system" fn ChannelName(this: *mut core::ffi::c_void, pbstrchannelname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMChannelInfo_Impl::ChannelName(this, core::mem::transmute_copy(&pbstrchannelname)).into() } - unsafe extern "system" fn ChannelDescription(this: *mut core::ffi::c_void, pbstrchanneldescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMChannelInfo_Impl, - { + unsafe extern "system" fn ChannelDescription(this: *mut core::ffi::c_void, pbstrchanneldescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMChannelInfo_Impl::ChannelDescription(this, core::mem::transmute_copy(&pbstrchanneldescription)).into() } - unsafe extern "system" fn ChannelURL(this: *mut core::ffi::c_void, pbstrchannelurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMChannelInfo_Impl, - { + unsafe extern "system" fn ChannelURL(this: *mut core::ffi::c_void, pbstrchannelurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMChannelInfo_Impl::ChannelURL(this, core::mem::transmute_copy(&pbstrchannelurl)).into() } - unsafe extern "system" fn ContactAddress(this: *mut core::ffi::c_void, pbstrcontactaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMChannelInfo_Impl, - { + unsafe extern "system" fn ContactAddress(this: *mut core::ffi::c_void, pbstrcontactaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMChannelInfo_Impl::ContactAddress(this, core::mem::transmute_copy(&pbstrcontactaddress)).into() } - unsafe extern "system" fn ContactPhone(this: *mut core::ffi::c_void, pbstrcontactphone: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMChannelInfo_Impl, - { + unsafe extern "system" fn ContactPhone(this: *mut core::ffi::c_void, pbstrcontactphone: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMChannelInfo_Impl::ContactPhone(this, core::mem::transmute_copy(&pbstrcontactphone)).into() } - unsafe extern "system" fn ContactEmail(this: *mut core::ffi::c_void, pbstrcontactemail: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMChannelInfo_Impl, - { + unsafe extern "system" fn ContactEmail(this: *mut core::ffi::c_void, pbstrcontactemail: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMChannelInfo_Impl::ContactEmail(this, core::mem::transmute_copy(&pbstrcontactemail)).into() } @@ -718,19 +541,13 @@ impl IAMChannelInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAMClockAdjust_Impl: Sized { +pub trait IAMClockAdjust_Impl: Sized + windows_core::IUnknownImpl { fn SetClockDelta(&self, rtdelta: i64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMClockAdjust {} impl IAMClockAdjust_Vtbl { - pub const fn new() -> IAMClockAdjust_Vtbl - where - Identity: IAMClockAdjust_Impl, - { - unsafe extern "system" fn SetClockDelta(this: *mut core::ffi::c_void, rtdelta: i64) -> windows_core::HRESULT - where - Identity: IAMClockAdjust_Impl, - { + pub const fn new() -> IAMClockAdjust_Vtbl { + unsafe extern "system" fn SetClockDelta(this: *mut core::ffi::c_void, rtdelta: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMClockAdjust_Impl::SetClockDelta(this, core::mem::transmute_copy(&rtdelta)).into() } @@ -740,27 +557,18 @@ impl IAMClockAdjust_Vtbl { iid == &::IID } } -pub trait IAMClockSlave_Impl: Sized { +pub trait IAMClockSlave_Impl: Sized + windows_core::IUnknownImpl { fn SetErrorTolerance(&self, dwtolerance: u32) -> windows_core::Result<()>; fn GetErrorTolerance(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAMClockSlave {} impl IAMClockSlave_Vtbl { - pub const fn new() -> IAMClockSlave_Vtbl - where - Identity: IAMClockSlave_Impl, - { - unsafe extern "system" fn SetErrorTolerance(this: *mut core::ffi::c_void, dwtolerance: u32) -> windows_core::HRESULT - where - Identity: IAMClockSlave_Impl, - { + pub const fn new() -> IAMClockSlave_Vtbl { + unsafe extern "system" fn SetErrorTolerance(this: *mut core::ffi::c_void, dwtolerance: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMClockSlave_Impl::SetErrorTolerance(this, core::mem::transmute_copy(&dwtolerance)).into() } - unsafe extern "system" fn GetErrorTolerance(this: *mut core::ffi::c_void, pdwtolerance: *mut u32) -> windows_core::HRESULT - where - Identity: IAMClockSlave_Impl, - { + unsafe extern "system" fn GetErrorTolerance(this: *mut core::ffi::c_void, pdwtolerance: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMClockSlave_Impl::GetErrorTolerance(this) { Ok(ok__) => { @@ -790,14 +598,8 @@ pub trait IAMCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IAMCollection {} #[cfg(feature = "Win32_System_Com")] impl IAMCollection_Vtbl { - pub const fn new() -> IAMCollection_Vtbl - where - Identity: IAMCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAMCollection_Impl, - { + pub const fn new() -> IAMCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMCollection_Impl::Count(this) { Ok(ok__) => { @@ -807,10 +609,7 @@ impl IAMCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, litem: i32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMCollection_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, litem: i32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMCollection_Impl::Item(this, core::mem::transmute_copy(&litem)) { Ok(ok__) => { @@ -820,10 +619,7 @@ impl IAMCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -844,19 +640,13 @@ impl IAMCollection_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAMCopyCaptureFileProgress_Impl: Sized { +pub trait IAMCopyCaptureFileProgress_Impl: Sized + windows_core::IUnknownImpl { fn Progress(&self, iprogress: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMCopyCaptureFileProgress {} impl IAMCopyCaptureFileProgress_Vtbl { - pub const fn new() -> IAMCopyCaptureFileProgress_Vtbl - where - Identity: IAMCopyCaptureFileProgress_Impl, - { - unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, iprogress: i32) -> windows_core::HRESULT - where - Identity: IAMCopyCaptureFileProgress_Impl, - { + pub const fn new() -> IAMCopyCaptureFileProgress_Vtbl { + unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, iprogress: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCopyCaptureFileProgress_Impl::Progress(this, core::mem::transmute_copy(&iprogress)).into() } @@ -866,7 +656,7 @@ impl IAMCopyCaptureFileProgress_Vtbl { iid == &::IID } } -pub trait IAMCrossbar_Impl: Sized { +pub trait IAMCrossbar_Impl: Sized + windows_core::IUnknownImpl { fn get_PinCounts(&self, outputpincount: *mut i32, inputpincount: *mut i32) -> windows_core::Result<()>; fn CanRoute(&self, outputpinindex: i32, inputpinindex: i32) -> windows_core::Result<()>; fn Route(&self, outputpinindex: i32, inputpinindex: i32) -> windows_core::Result<()>; @@ -875,35 +665,20 @@ pub trait IAMCrossbar_Impl: Sized { } impl windows_core::RuntimeName for IAMCrossbar {} impl IAMCrossbar_Vtbl { - pub const fn new() -> IAMCrossbar_Vtbl - where - Identity: IAMCrossbar_Impl, - { - unsafe extern "system" fn get_PinCounts(this: *mut core::ffi::c_void, outputpincount: *mut i32, inputpincount: *mut i32) -> windows_core::HRESULT - where - Identity: IAMCrossbar_Impl, - { + pub const fn new() -> IAMCrossbar_Vtbl { + unsafe extern "system" fn get_PinCounts(this: *mut core::ffi::c_void, outputpincount: *mut i32, inputpincount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCrossbar_Impl::get_PinCounts(this, core::mem::transmute_copy(&outputpincount), core::mem::transmute_copy(&inputpincount)).into() } - unsafe extern "system" fn CanRoute(this: *mut core::ffi::c_void, outputpinindex: i32, inputpinindex: i32) -> windows_core::HRESULT - where - Identity: IAMCrossbar_Impl, - { + unsafe extern "system" fn CanRoute(this: *mut core::ffi::c_void, outputpinindex: i32, inputpinindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCrossbar_Impl::CanRoute(this, core::mem::transmute_copy(&outputpinindex), core::mem::transmute_copy(&inputpinindex)).into() } - unsafe extern "system" fn Route(this: *mut core::ffi::c_void, outputpinindex: i32, inputpinindex: i32) -> windows_core::HRESULT - where - Identity: IAMCrossbar_Impl, - { + unsafe extern "system" fn Route(this: *mut core::ffi::c_void, outputpinindex: i32, inputpinindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCrossbar_Impl::Route(this, core::mem::transmute_copy(&outputpinindex), core::mem::transmute_copy(&inputpinindex)).into() } - unsafe extern "system" fn get_IsRoutedTo(this: *mut core::ffi::c_void, outputpinindex: i32, inputpinindex: *mut i32) -> windows_core::HRESULT - where - Identity: IAMCrossbar_Impl, - { + unsafe extern "system" fn get_IsRoutedTo(this: *mut core::ffi::c_void, outputpinindex: i32, inputpinindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMCrossbar_Impl::get_IsRoutedTo(this, core::mem::transmute_copy(&outputpinindex)) { Ok(ok__) => { @@ -913,10 +688,7 @@ impl IAMCrossbar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_CrossbarPinInfo(this: *mut core::ffi::c_void, isinputpin: super::super::Foundation::BOOL, pinindex: i32, pinindexrelated: *mut i32, physicaltype: *mut i32) -> windows_core::HRESULT - where - Identity: IAMCrossbar_Impl, - { + unsafe extern "system" fn get_CrossbarPinInfo(this: *mut core::ffi::c_void, isinputpin: super::super::Foundation::BOOL, pinindex: i32, pinindexrelated: *mut i32, physicaltype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCrossbar_Impl::get_CrossbarPinInfo(this, core::mem::transmute_copy(&isinputpin), core::mem::transmute_copy(&pinindex), core::mem::transmute_copy(&pinindexrelated), core::mem::transmute_copy(&physicaltype)).into() } @@ -933,19 +705,13 @@ impl IAMCrossbar_Vtbl { iid == &::IID } } -pub trait IAMDecoderCaps_Impl: Sized { +pub trait IAMDecoderCaps_Impl: Sized + windows_core::IUnknownImpl { fn GetDecoderCaps(&self, dwcapindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IAMDecoderCaps {} impl IAMDecoderCaps_Vtbl { - pub const fn new() -> IAMDecoderCaps_Vtbl - where - Identity: IAMDecoderCaps_Impl, - { - unsafe extern "system" fn GetDecoderCaps(this: *mut core::ffi::c_void, dwcapindex: u32, lpdwcap: *mut u32) -> windows_core::HRESULT - where - Identity: IAMDecoderCaps_Impl, - { + pub const fn new() -> IAMDecoderCaps_Vtbl { + unsafe extern "system" fn GetDecoderCaps(this: *mut core::ffi::c_void, dwcapindex: u32, lpdwcap: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMDecoderCaps_Impl::GetDecoderCaps(this, core::mem::transmute_copy(&dwcapindex)) { Ok(ok__) => { @@ -961,7 +727,7 @@ impl IAMDecoderCaps_Vtbl { iid == &::IID } } -pub trait IAMDevMemoryAllocator_Impl: Sized { +pub trait IAMDevMemoryAllocator_Impl: Sized + windows_core::IUnknownImpl { fn GetInfo(&self, pdwcbtotalfree: *mut u32, pdwcblargestfree: *mut u32, pdwcbtotalmemory: *mut u32, pdwcbminimumchunk: *mut u32) -> windows_core::Result<()>; fn CheckMemory(&self, pbuffer: *const u8) -> windows_core::Result<()>; fn Alloc(&self, ppbuffer: *mut *mut u8, pdwcbbuffer: *mut u32) -> windows_core::Result<()>; @@ -970,42 +736,24 @@ pub trait IAMDevMemoryAllocator_Impl: Sized { } impl windows_core::RuntimeName for IAMDevMemoryAllocator {} impl IAMDevMemoryAllocator_Vtbl { - pub const fn new() -> IAMDevMemoryAllocator_Vtbl - where - Identity: IAMDevMemoryAllocator_Impl, - { - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pdwcbtotalfree: *mut u32, pdwcblargestfree: *mut u32, pdwcbtotalmemory: *mut u32, pdwcbminimumchunk: *mut u32) -> windows_core::HRESULT - where - Identity: IAMDevMemoryAllocator_Impl, - { + pub const fn new() -> IAMDevMemoryAllocator_Vtbl { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pdwcbtotalfree: *mut u32, pdwcblargestfree: *mut u32, pdwcbtotalmemory: *mut u32, pdwcbminimumchunk: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDevMemoryAllocator_Impl::GetInfo(this, core::mem::transmute_copy(&pdwcbtotalfree), core::mem::transmute_copy(&pdwcblargestfree), core::mem::transmute_copy(&pdwcbtotalmemory), core::mem::transmute_copy(&pdwcbminimumchunk)).into() } - unsafe extern "system" fn CheckMemory(this: *mut core::ffi::c_void, pbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IAMDevMemoryAllocator_Impl, - { + unsafe extern "system" fn CheckMemory(this: *mut core::ffi::c_void, pbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDevMemoryAllocator_Impl::CheckMemory(this, core::mem::transmute_copy(&pbuffer)).into() } - unsafe extern "system" fn Alloc(this: *mut core::ffi::c_void, ppbuffer: *mut *mut u8, pdwcbbuffer: *mut u32) -> windows_core::HRESULT - where - Identity: IAMDevMemoryAllocator_Impl, - { + unsafe extern "system" fn Alloc(this: *mut core::ffi::c_void, ppbuffer: *mut *mut u8, pdwcbbuffer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDevMemoryAllocator_Impl::Alloc(this, core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&pdwcbbuffer)).into() } - unsafe extern "system" fn Free(this: *mut core::ffi::c_void, pbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IAMDevMemoryAllocator_Impl, - { + unsafe extern "system" fn Free(this: *mut core::ffi::c_void, pbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDevMemoryAllocator_Impl::Free(this, core::mem::transmute_copy(&pbuffer)).into() } - unsafe extern "system" fn GetDevMemoryObject(this: *mut core::ffi::c_void, ppunkinnner: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDevMemoryAllocator_Impl, - { + unsafe extern "system" fn GetDevMemoryObject(this: *mut core::ffi::c_void, ppunkinnner: *mut *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDevMemoryAllocator_Impl::GetDevMemoryObject(this, core::mem::transmute_copy(&ppunkinnner), windows_core::from_raw_borrowed(&punkouter)).into() } @@ -1022,35 +770,23 @@ impl IAMDevMemoryAllocator_Vtbl { iid == &::IID } } -pub trait IAMDevMemoryControl_Impl: Sized { +pub trait IAMDevMemoryControl_Impl: Sized + windows_core::IUnknownImpl { fn QueryWriteSync(&self) -> windows_core::Result<()>; fn WriteSync(&self) -> windows_core::Result<()>; fn GetDevId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAMDevMemoryControl {} impl IAMDevMemoryControl_Vtbl { - pub const fn new() -> IAMDevMemoryControl_Vtbl - where - Identity: IAMDevMemoryControl_Impl, - { - unsafe extern "system" fn QueryWriteSync(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDevMemoryControl_Impl, - { + pub const fn new() -> IAMDevMemoryControl_Vtbl { + unsafe extern "system" fn QueryWriteSync(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDevMemoryControl_Impl::QueryWriteSync(this).into() } - unsafe extern "system" fn WriteSync(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDevMemoryControl_Impl, - { + unsafe extern "system" fn WriteSync(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDevMemoryControl_Impl::WriteSync(this).into() } - unsafe extern "system" fn GetDevId(this: *mut core::ffi::c_void, pdwdevid: *mut u32) -> windows_core::HRESULT - where - Identity: IAMDevMemoryControl_Impl, - { + unsafe extern "system" fn GetDevId(this: *mut core::ffi::c_void, pdwdevid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMDevMemoryControl_Impl::GetDevId(this) { Ok(ok__) => { @@ -1071,35 +807,23 @@ impl IAMDevMemoryControl_Vtbl { iid == &::IID } } -pub trait IAMDeviceRemoval_Impl: Sized { +pub trait IAMDeviceRemoval_Impl: Sized + windows_core::IUnknownImpl { fn DeviceInfo(&self, pclsidinterfaceclass: *mut windows_core::GUID, pwszsymboliclink: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn Reassociate(&self) -> windows_core::Result<()>; fn Disassociate(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMDeviceRemoval {} impl IAMDeviceRemoval_Vtbl { - pub const fn new() -> IAMDeviceRemoval_Vtbl - where - Identity: IAMDeviceRemoval_Impl, - { - unsafe extern "system" fn DeviceInfo(this: *mut core::ffi::c_void, pclsidinterfaceclass: *mut windows_core::GUID, pwszsymboliclink: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAMDeviceRemoval_Impl, - { + pub const fn new() -> IAMDeviceRemoval_Vtbl { + unsafe extern "system" fn DeviceInfo(this: *mut core::ffi::c_void, pclsidinterfaceclass: *mut windows_core::GUID, pwszsymboliclink: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDeviceRemoval_Impl::DeviceInfo(this, core::mem::transmute_copy(&pclsidinterfaceclass), core::mem::transmute_copy(&pwszsymboliclink)).into() } - unsafe extern "system" fn Reassociate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDeviceRemoval_Impl, - { + unsafe extern "system" fn Reassociate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDeviceRemoval_Impl::Reassociate(this).into() } - unsafe extern "system" fn Disassociate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDeviceRemoval_Impl, - { + unsafe extern "system" fn Disassociate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDeviceRemoval_Impl::Disassociate(this).into() } @@ -1115,7 +839,7 @@ impl IAMDeviceRemoval_Vtbl { } } #[cfg(feature = "Win32_Media_Audio_DirectSound")] -pub trait IAMDirectSound_Impl: Sized { +pub trait IAMDirectSound_Impl: Sized + windows_core::IUnknownImpl { fn GetDirectSoundInterface(&self) -> windows_core::Result; fn GetPrimaryBufferInterface(&self) -> windows_core::Result; fn GetSecondaryBufferInterface(&self) -> windows_core::Result; @@ -1129,14 +853,8 @@ pub trait IAMDirectSound_Impl: Sized { impl windows_core::RuntimeName for IAMDirectSound {} #[cfg(feature = "Win32_Media_Audio_DirectSound")] impl IAMDirectSound_Vtbl { - pub const fn new() -> IAMDirectSound_Vtbl - where - Identity: IAMDirectSound_Impl, - { - unsafe extern "system" fn GetDirectSoundInterface(this: *mut core::ffi::c_void, lplpds: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDirectSound_Impl, - { + pub const fn new() -> IAMDirectSound_Vtbl { + unsafe extern "system" fn GetDirectSoundInterface(this: *mut core::ffi::c_void, lplpds: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMDirectSound_Impl::GetDirectSoundInterface(this) { Ok(ok__) => { @@ -1146,10 +864,7 @@ impl IAMDirectSound_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrimaryBufferInterface(this: *mut core::ffi::c_void, lplpdsb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDirectSound_Impl, - { + unsafe extern "system" fn GetPrimaryBufferInterface(this: *mut core::ffi::c_void, lplpdsb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMDirectSound_Impl::GetPrimaryBufferInterface(this) { Ok(ok__) => { @@ -1159,10 +874,7 @@ impl IAMDirectSound_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSecondaryBufferInterface(this: *mut core::ffi::c_void, lplpdsb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDirectSound_Impl, - { + unsafe extern "system" fn GetSecondaryBufferInterface(this: *mut core::ffi::c_void, lplpdsb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMDirectSound_Impl::GetSecondaryBufferInterface(this) { Ok(ok__) => { @@ -1172,38 +884,23 @@ impl IAMDirectSound_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseDirectSoundInterface(this: *mut core::ffi::c_void, lpds: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDirectSound_Impl, - { + unsafe extern "system" fn ReleaseDirectSoundInterface(this: *mut core::ffi::c_void, lpds: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDirectSound_Impl::ReleaseDirectSoundInterface(this, windows_core::from_raw_borrowed(&lpds)).into() } - unsafe extern "system" fn ReleasePrimaryBufferInterface(this: *mut core::ffi::c_void, lpdsb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDirectSound_Impl, - { + unsafe extern "system" fn ReleasePrimaryBufferInterface(this: *mut core::ffi::c_void, lpdsb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDirectSound_Impl::ReleasePrimaryBufferInterface(this, windows_core::from_raw_borrowed(&lpdsb)).into() } - unsafe extern "system" fn ReleaseSecondaryBufferInterface(this: *mut core::ffi::c_void, lpdsb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMDirectSound_Impl, - { + unsafe extern "system" fn ReleaseSecondaryBufferInterface(this: *mut core::ffi::c_void, lpdsb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDirectSound_Impl::ReleaseSecondaryBufferInterface(this, windows_core::from_raw_borrowed(&lpdsb)).into() } - unsafe extern "system" fn SetFocusWindow(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMDirectSound_Impl, - { + unsafe extern "system" fn SetFocusWindow(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDirectSound_Impl::SetFocusWindow(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } - unsafe extern "system" fn GetFocusWindow(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::HWND, param1: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMDirectSound_Impl, - { + unsafe extern "system" fn GetFocusWindow(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::HWND, param1: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDirectSound_Impl::GetFocusWindow(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } @@ -1223,7 +920,7 @@ impl IAMDirectSound_Vtbl { iid == &::IID } } -pub trait IAMDroppedFrames_Impl: Sized { +pub trait IAMDroppedFrames_Impl: Sized + windows_core::IUnknownImpl { fn GetNumDropped(&self) -> windows_core::Result; fn GetNumNotDropped(&self) -> windows_core::Result; fn GetDroppedInfo(&self, lsize: i32, plarray: *mut i32, plnumcopied: *mut i32) -> windows_core::Result<()>; @@ -1231,14 +928,8 @@ pub trait IAMDroppedFrames_Impl: Sized { } impl windows_core::RuntimeName for IAMDroppedFrames {} impl IAMDroppedFrames_Vtbl { - pub const fn new() -> IAMDroppedFrames_Vtbl - where - Identity: IAMDroppedFrames_Impl, - { - unsafe extern "system" fn GetNumDropped(this: *mut core::ffi::c_void, pldropped: *mut i32) -> windows_core::HRESULT - where - Identity: IAMDroppedFrames_Impl, - { + pub const fn new() -> IAMDroppedFrames_Vtbl { + unsafe extern "system" fn GetNumDropped(this: *mut core::ffi::c_void, pldropped: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMDroppedFrames_Impl::GetNumDropped(this) { Ok(ok__) => { @@ -1248,10 +939,7 @@ impl IAMDroppedFrames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumNotDropped(this: *mut core::ffi::c_void, plnotdropped: *mut i32) -> windows_core::HRESULT - where - Identity: IAMDroppedFrames_Impl, - { + unsafe extern "system" fn GetNumNotDropped(this: *mut core::ffi::c_void, plnotdropped: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMDroppedFrames_Impl::GetNumNotDropped(this) { Ok(ok__) => { @@ -1261,17 +949,11 @@ impl IAMDroppedFrames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDroppedInfo(this: *mut core::ffi::c_void, lsize: i32, plarray: *mut i32, plnumcopied: *mut i32) -> windows_core::HRESULT - where - Identity: IAMDroppedFrames_Impl, - { + unsafe extern "system" fn GetDroppedInfo(this: *mut core::ffi::c_void, lsize: i32, plarray: *mut i32, plnumcopied: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDroppedFrames_Impl::GetDroppedInfo(this, core::mem::transmute_copy(&lsize), core::mem::transmute_copy(&plarray), core::mem::transmute_copy(&plnumcopied)).into() } - unsafe extern "system" fn GetAverageFrameSize(this: *mut core::ffi::c_void, plaveragesize: *mut i32) -> windows_core::HRESULT - where - Identity: IAMDroppedFrames_Impl, - { + unsafe extern "system" fn GetAverageFrameSize(this: *mut core::ffi::c_void, plaveragesize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMDroppedFrames_Impl::GetAverageFrameSize(this) { Ok(ok__) => { @@ -1293,7 +975,7 @@ impl IAMDroppedFrames_Vtbl { iid == &::IID } } -pub trait IAMExtDevice_Impl: Sized { +pub trait IAMExtDevice_Impl: Sized + windows_core::IUnknownImpl { fn GetCapability(&self, capability: i32, pvalue: *mut i32, pdblvalue: *mut f64) -> windows_core::Result<()>; fn ExternalDeviceID(&self) -> windows_core::Result; fn ExternalDeviceVersion(&self) -> windows_core::Result; @@ -1305,21 +987,12 @@ pub trait IAMExtDevice_Impl: Sized { } impl windows_core::RuntimeName for IAMExtDevice {} impl IAMExtDevice_Vtbl { - pub const fn new() -> IAMExtDevice_Vtbl - where - Identity: IAMExtDevice_Impl, - { - unsafe extern "system" fn GetCapability(this: *mut core::ffi::c_void, capability: i32, pvalue: *mut i32, pdblvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IAMExtDevice_Impl, - { + pub const fn new() -> IAMExtDevice_Vtbl { + unsafe extern "system" fn GetCapability(this: *mut core::ffi::c_void, capability: i32, pvalue: *mut i32, pdblvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtDevice_Impl::GetCapability(this, core::mem::transmute_copy(&capability), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdblvalue)).into() } - unsafe extern "system" fn ExternalDeviceID(this: *mut core::ffi::c_void, ppszdata: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAMExtDevice_Impl, - { + unsafe extern "system" fn ExternalDeviceID(this: *mut core::ffi::c_void, ppszdata: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtDevice_Impl::ExternalDeviceID(this) { Ok(ok__) => { @@ -1329,10 +1002,7 @@ impl IAMExtDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExternalDeviceVersion(this: *mut core::ffi::c_void, ppszdata: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAMExtDevice_Impl, - { + unsafe extern "system" fn ExternalDeviceVersion(this: *mut core::ffi::c_void, ppszdata: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtDevice_Impl::ExternalDeviceVersion(this) { Ok(ok__) => { @@ -1342,17 +1012,11 @@ impl IAMExtDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDevicePower(this: *mut core::ffi::c_void, powermode: i32) -> windows_core::HRESULT - where - Identity: IAMExtDevice_Impl, - { + unsafe extern "system" fn SetDevicePower(this: *mut core::ffi::c_void, powermode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtDevice_Impl::SetDevicePower(this, core::mem::transmute_copy(&powermode)).into() } - unsafe extern "system" fn DevicePower(this: *mut core::ffi::c_void, ppowermode: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtDevice_Impl, - { + unsafe extern "system" fn DevicePower(this: *mut core::ffi::c_void, ppowermode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtDevice_Impl::DevicePower(this) { Ok(ok__) => { @@ -1362,10 +1026,7 @@ impl IAMExtDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Calibrate(this: *mut core::ffi::c_void, hevent: usize, mode: i32, pstatus: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtDevice_Impl, - { + unsafe extern "system" fn Calibrate(this: *mut core::ffi::c_void, hevent: usize, mode: i32, pstatus: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtDevice_Impl::Calibrate(this, core::mem::transmute_copy(&hevent), core::mem::transmute_copy(&mode)) { Ok(ok__) => { @@ -1375,17 +1036,11 @@ impl IAMExtDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDevicePort(this: *mut core::ffi::c_void, deviceport: i32) -> windows_core::HRESULT - where - Identity: IAMExtDevice_Impl, - { + unsafe extern "system" fn SetDevicePort(this: *mut core::ffi::c_void, deviceport: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtDevice_Impl::SetDevicePort(this, core::mem::transmute_copy(&deviceport)).into() } - unsafe extern "system" fn DevicePort(this: *mut core::ffi::c_void, pdeviceport: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtDevice_Impl, - { + unsafe extern "system" fn DevicePort(this: *mut core::ffi::c_void, pdeviceport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtDevice_Impl::DevicePort(this) { Ok(ok__) => { @@ -1411,7 +1066,7 @@ impl IAMExtDevice_Vtbl { iid == &::IID } } -pub trait IAMExtTransport_Impl: Sized { +pub trait IAMExtTransport_Impl: Sized + windows_core::IUnknownImpl { fn GetCapability(&self, capability: i32, pvalue: *mut i32, pdblvalue: *mut f64) -> windows_core::Result<()>; fn SetMediaState(&self, state: i32) -> windows_core::Result<()>; fn MediaState(&self) -> windows_core::Result; @@ -1443,28 +1098,16 @@ pub trait IAMExtTransport_Impl: Sized { } impl windows_core::RuntimeName for IAMExtTransport {} impl IAMExtTransport_Vtbl { - pub const fn new() -> IAMExtTransport_Vtbl - where - Identity: IAMExtTransport_Impl, - { - unsafe extern "system" fn GetCapability(this: *mut core::ffi::c_void, capability: i32, pvalue: *mut i32, pdblvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + pub const fn new() -> IAMExtTransport_Vtbl { + unsafe extern "system" fn GetCapability(this: *mut core::ffi::c_void, capability: i32, pvalue: *mut i32, pdblvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::GetCapability(this, core::mem::transmute_copy(&capability), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdblvalue)).into() } - unsafe extern "system" fn SetMediaState(this: *mut core::ffi::c_void, state: i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetMediaState(this: *mut core::ffi::c_void, state: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetMediaState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn MediaState(this: *mut core::ffi::c_void, pstate: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn MediaState(this: *mut core::ffi::c_void, pstate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::MediaState(this) { Ok(ok__) => { @@ -1474,17 +1117,11 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalControl(this: *mut core::ffi::c_void, state: i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetLocalControl(this: *mut core::ffi::c_void, state: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetLocalControl(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn LocalControl(this: *mut core::ffi::c_void, pstate: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn LocalControl(this: *mut core::ffi::c_void, pstate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::LocalControl(this) { Ok(ok__) => { @@ -1494,10 +1131,7 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, statusitem: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, statusitem: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::GetStatus(this, core::mem::transmute_copy(&statusitem)) { Ok(ok__) => { @@ -1507,24 +1141,15 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransportBasicParameters(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32, ppszdata: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn GetTransportBasicParameters(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32, ppszdata: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::GetTransportBasicParameters(this, core::mem::transmute_copy(¶m), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&ppszdata)).into() } - unsafe extern "system" fn SetTransportBasicParameters(this: *mut core::ffi::c_void, param: i32, value: i32, pszdata: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetTransportBasicParameters(this: *mut core::ffi::c_void, param: i32, value: i32, pszdata: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetTransportBasicParameters(this, core::mem::transmute_copy(¶m), core::mem::transmute_copy(&value), core::mem::transmute(&pszdata)).into() } - unsafe extern "system" fn GetTransportVideoParameters(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn GetTransportVideoParameters(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::GetTransportVideoParameters(this, core::mem::transmute_copy(¶m)) { Ok(ok__) => { @@ -1534,17 +1159,11 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransportVideoParameters(this: *mut core::ffi::c_void, param: i32, value: i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetTransportVideoParameters(this: *mut core::ffi::c_void, param: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetTransportVideoParameters(this, core::mem::transmute_copy(¶m), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetTransportAudioParameters(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn GetTransportAudioParameters(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::GetTransportAudioParameters(this, core::mem::transmute_copy(¶m)) { Ok(ok__) => { @@ -1554,24 +1173,15 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransportAudioParameters(this: *mut core::ffi::c_void, param: i32, value: i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetTransportAudioParameters(this: *mut core::ffi::c_void, param: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetTransportAudioParameters(this, core::mem::transmute_copy(¶m), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, pmode: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, pmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::Mode(this) { Ok(ok__) => { @@ -1581,17 +1191,11 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, dblrate: f64) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, dblrate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetRate(this, core::mem::transmute_copy(&dblrate)).into() } - unsafe extern "system" fn Rate(this: *mut core::ffi::c_void, pdblrate: *mut f64) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn Rate(this: *mut core::ffi::c_void, pdblrate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::Rate(this) { Ok(ok__) => { @@ -1601,38 +1205,23 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChase(this: *mut core::ffi::c_void, penabled: *mut i32, poffset: *mut i32, phevent: *mut usize) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn GetChase(this: *mut core::ffi::c_void, penabled: *mut i32, poffset: *mut i32, phevent: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::GetChase(this, core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&poffset), core::mem::transmute_copy(&phevent)).into() } - unsafe extern "system" fn SetChase(this: *mut core::ffi::c_void, enable: i32, offset: i32, hevent: usize) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetChase(this: *mut core::ffi::c_void, enable: i32, offset: i32, hevent: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetChase(this, core::mem::transmute_copy(&enable), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn GetBump(this: *mut core::ffi::c_void, pspeed: *mut i32, pduration: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn GetBump(this: *mut core::ffi::c_void, pspeed: *mut i32, pduration: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::GetBump(this, core::mem::transmute_copy(&pspeed), core::mem::transmute_copy(&pduration)).into() } - unsafe extern "system" fn SetBump(this: *mut core::ffi::c_void, speed: i32, duration: i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetBump(this: *mut core::ffi::c_void, speed: i32, duration: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetBump(this, core::mem::transmute_copy(&speed), core::mem::transmute_copy(&duration)).into() } - unsafe extern "system" fn AntiClogControl(this: *mut core::ffi::c_void, penabled: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn AntiClogControl(this: *mut core::ffi::c_void, penabled: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::AntiClogControl(this) { Ok(ok__) => { @@ -1642,17 +1231,11 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAntiClogControl(this: *mut core::ffi::c_void, enable: i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetAntiClogControl(this: *mut core::ffi::c_void, enable: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetAntiClogControl(this, core::mem::transmute_copy(&enable)).into() } - unsafe extern "system" fn GetEditPropertySet(this: *mut core::ffi::c_void, editid: i32, pstate: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn GetEditPropertySet(this: *mut core::ffi::c_void, editid: i32, pstate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::GetEditPropertySet(this, core::mem::transmute_copy(&editid)) { Ok(ok__) => { @@ -1662,17 +1245,11 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEditPropertySet(this: *mut core::ffi::c_void, peditid: *mut i32, state: i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetEditPropertySet(this: *mut core::ffi::c_void, peditid: *mut i32, state: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetEditPropertySet(this, core::mem::transmute_copy(&peditid), core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn GetEditProperty(this: *mut core::ffi::c_void, editid: i32, param: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn GetEditProperty(this: *mut core::ffi::c_void, editid: i32, param: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::GetEditProperty(this, core::mem::transmute_copy(&editid), core::mem::transmute_copy(¶m)) { Ok(ok__) => { @@ -1682,17 +1259,11 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEditProperty(this: *mut core::ffi::c_void, editid: i32, param: i32, value: i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetEditProperty(this: *mut core::ffi::c_void, editid: i32, param: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetEditProperty(this, core::mem::transmute_copy(&editid), core::mem::transmute_copy(¶m), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn EditStart(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn EditStart(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMExtTransport_Impl::EditStart(this) { Ok(ok__) => { @@ -1702,10 +1273,7 @@ impl IAMExtTransport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEditStart(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IAMExtTransport_Impl, - { + unsafe extern "system" fn SetEditStart(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtTransport_Impl::SetEditStart(this, core::mem::transmute_copy(&value)).into() } @@ -1755,28 +1323,16 @@ pub trait IAMExtendedErrorInfo_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for IAMExtendedErrorInfo {} #[cfg(feature = "Win32_System_Com")] impl IAMExtendedErrorInfo_Vtbl { - pub const fn new() -> IAMExtendedErrorInfo_Vtbl - where - Identity: IAMExtendedErrorInfo_Impl, - { - unsafe extern "system" fn HasError(this: *mut core::ffi::c_void, phaserror: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMExtendedErrorInfo_Impl, - { + pub const fn new() -> IAMExtendedErrorInfo_Vtbl { + unsafe extern "system" fn HasError(this: *mut core::ffi::c_void, phaserror: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtendedErrorInfo_Impl::HasError(this, core::mem::transmute_copy(&phaserror)).into() } - unsafe extern "system" fn ErrorDescription(this: *mut core::ffi::c_void, pbstrerrordescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMExtendedErrorInfo_Impl, - { + unsafe extern "system" fn ErrorDescription(this: *mut core::ffi::c_void, pbstrerrordescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtendedErrorInfo_Impl::ErrorDescription(this, core::mem::transmute_copy(&pbstrerrordescription)).into() } - unsafe extern "system" fn ErrorCode(this: *mut core::ffi::c_void, perrorcode: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtendedErrorInfo_Impl, - { + unsafe extern "system" fn ErrorCode(this: *mut core::ffi::c_void, perrorcode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtendedErrorInfo_Impl::ErrorCode(this, core::mem::transmute_copy(&perrorcode)).into() } @@ -1805,56 +1361,32 @@ pub trait IAMExtendedSeeking_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IAMExtendedSeeking {} #[cfg(feature = "Win32_System_Com")] impl IAMExtendedSeeking_Vtbl { - pub const fn new() -> IAMExtendedSeeking_Vtbl - where - Identity: IAMExtendedSeeking_Impl, - { - unsafe extern "system" fn ExSeekCapabilities(this: *mut core::ffi::c_void, pexcapabilities: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtendedSeeking_Impl, - { + pub const fn new() -> IAMExtendedSeeking_Vtbl { + unsafe extern "system" fn ExSeekCapabilities(this: *mut core::ffi::c_void, pexcapabilities: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtendedSeeking_Impl::ExSeekCapabilities(this, core::mem::transmute_copy(&pexcapabilities)).into() } - unsafe extern "system" fn MarkerCount(this: *mut core::ffi::c_void, pmarkercount: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtendedSeeking_Impl, - { + unsafe extern "system" fn MarkerCount(this: *mut core::ffi::c_void, pmarkercount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtendedSeeking_Impl::MarkerCount(this, core::mem::transmute_copy(&pmarkercount)).into() } - unsafe extern "system" fn CurrentMarker(this: *mut core::ffi::c_void, pcurrentmarker: *mut i32) -> windows_core::HRESULT - where - Identity: IAMExtendedSeeking_Impl, - { + unsafe extern "system" fn CurrentMarker(this: *mut core::ffi::c_void, pcurrentmarker: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtendedSeeking_Impl::CurrentMarker(this, core::mem::transmute_copy(&pcurrentmarker)).into() } - unsafe extern "system" fn GetMarkerTime(this: *mut core::ffi::c_void, markernum: i32, pmarkertime: *mut f64) -> windows_core::HRESULT - where - Identity: IAMExtendedSeeking_Impl, - { + unsafe extern "system" fn GetMarkerTime(this: *mut core::ffi::c_void, markernum: i32, pmarkertime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtendedSeeking_Impl::GetMarkerTime(this, core::mem::transmute_copy(&markernum), core::mem::transmute_copy(&pmarkertime)).into() } - unsafe extern "system" fn GetMarkerName(this: *mut core::ffi::c_void, markernum: i32, pbstrmarkername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMExtendedSeeking_Impl, - { + unsafe extern "system" fn GetMarkerName(this: *mut core::ffi::c_void, markernum: i32, pbstrmarkername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtendedSeeking_Impl::GetMarkerName(this, core::mem::transmute_copy(&markernum), core::mem::transmute_copy(&pbstrmarkername)).into() } - unsafe extern "system" fn SetPlaybackSpeed(this: *mut core::ffi::c_void, speed: f64) -> windows_core::HRESULT - where - Identity: IAMExtendedSeeking_Impl, - { + unsafe extern "system" fn SetPlaybackSpeed(this: *mut core::ffi::c_void, speed: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtendedSeeking_Impl::SetPlaybackSpeed(this, core::mem::transmute_copy(&speed)).into() } - unsafe extern "system" fn PlaybackSpeed(this: *mut core::ffi::c_void, pspeed: *mut f64) -> windows_core::HRESULT - where - Identity: IAMExtendedSeeking_Impl, - { + unsafe extern "system" fn PlaybackSpeed(this: *mut core::ffi::c_void, pspeed: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMExtendedSeeking_Impl::PlaybackSpeed(this, core::mem::transmute_copy(&pspeed)).into() } @@ -1873,19 +1405,13 @@ impl IAMExtendedSeeking_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAMFilterGraphCallback_Impl: Sized { +pub trait IAMFilterGraphCallback_Impl: Sized + windows_core::IUnknownImpl { fn UnableToRender(&self, ppin: Option<&IPin>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMFilterGraphCallback {} impl IAMFilterGraphCallback_Vtbl { - pub const fn new() -> IAMFilterGraphCallback_Vtbl - where - Identity: IAMFilterGraphCallback_Impl, - { - unsafe extern "system" fn UnableToRender(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMFilterGraphCallback_Impl, - { + pub const fn new() -> IAMFilterGraphCallback_Vtbl { + unsafe extern "system" fn UnableToRender(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMFilterGraphCallback_Impl::UnableToRender(this, windows_core::from_raw_borrowed(&ppin)).into() } @@ -1895,19 +1421,13 @@ impl IAMFilterGraphCallback_Vtbl { iid == &::IID } } -pub trait IAMFilterMiscFlags_Impl: Sized { +pub trait IAMFilterMiscFlags_Impl: Sized + windows_core::IUnknownImpl { fn GetMiscFlags(&self) -> u32; } impl windows_core::RuntimeName for IAMFilterMiscFlags {} impl IAMFilterMiscFlags_Vtbl { - pub const fn new() -> IAMFilterMiscFlags_Vtbl - where - Identity: IAMFilterMiscFlags_Impl, - { - unsafe extern "system" fn GetMiscFlags(this: *mut core::ffi::c_void) -> u32 - where - Identity: IAMFilterMiscFlags_Impl, - { + pub const fn new() -> IAMFilterMiscFlags_Vtbl { + unsafe extern "system" fn GetMiscFlags(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMFilterMiscFlags_Impl::GetMiscFlags(this) } @@ -1918,7 +1438,7 @@ impl IAMFilterMiscFlags_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAMGraphBuilderCallback_Impl: Sized { +pub trait IAMGraphBuilderCallback_Impl: Sized + windows_core::IUnknownImpl { fn SelectedFilter(&self, pmon: Option<&super::super::System::Com::IMoniker>) -> windows_core::Result<()>; fn CreatedFilter(&self, pfil: Option<&IBaseFilter>) -> windows_core::Result<()>; } @@ -1926,21 +1446,12 @@ pub trait IAMGraphBuilderCallback_Impl: Sized { impl windows_core::RuntimeName for IAMGraphBuilderCallback {} #[cfg(feature = "Win32_System_Com")] impl IAMGraphBuilderCallback_Vtbl { - pub const fn new() -> IAMGraphBuilderCallback_Vtbl - where - Identity: IAMGraphBuilderCallback_Impl, - { - unsafe extern "system" fn SelectedFilter(this: *mut core::ffi::c_void, pmon: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMGraphBuilderCallback_Impl, - { + pub const fn new() -> IAMGraphBuilderCallback_Vtbl { + unsafe extern "system" fn SelectedFilter(this: *mut core::ffi::c_void, pmon: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMGraphBuilderCallback_Impl::SelectedFilter(this, windows_core::from_raw_borrowed(&pmon)).into() } - unsafe extern "system" fn CreatedFilter(this: *mut core::ffi::c_void, pfil: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMGraphBuilderCallback_Impl, - { + unsafe extern "system" fn CreatedFilter(this: *mut core::ffi::c_void, pfil: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMGraphBuilderCallback_Impl::CreatedFilter(this, windows_core::from_raw_borrowed(&pfil)).into() } @@ -1954,35 +1465,23 @@ impl IAMGraphBuilderCallback_Vtbl { iid == &::IID } } -pub trait IAMGraphStreams_Impl: Sized { +pub trait IAMGraphStreams_Impl: Sized + windows_core::IUnknownImpl { fn FindUpstreamInterface(&self, ppin: Option<&IPin>, riid: *const windows_core::GUID, ppvinterface: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()>; fn SyncUsingStreamOffset(&self, busestreamoffset: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn SetMaxGraphLatency(&self, rtmaxgraphlatency: i64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMGraphStreams {} impl IAMGraphStreams_Vtbl { - pub const fn new() -> IAMGraphStreams_Vtbl - where - Identity: IAMGraphStreams_Impl, - { - unsafe extern "system" fn FindUpstreamInterface(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvinterface: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IAMGraphStreams_Impl, - { + pub const fn new() -> IAMGraphStreams_Vtbl { + unsafe extern "system" fn FindUpstreamInterface(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvinterface: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMGraphStreams_Impl::FindUpstreamInterface(this, windows_core::from_raw_borrowed(&ppin), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvinterface), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SyncUsingStreamOffset(this: *mut core::ffi::c_void, busestreamoffset: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMGraphStreams_Impl, - { + unsafe extern "system" fn SyncUsingStreamOffset(this: *mut core::ffi::c_void, busestreamoffset: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMGraphStreams_Impl::SyncUsingStreamOffset(this, core::mem::transmute_copy(&busestreamoffset)).into() } - unsafe extern "system" fn SetMaxGraphLatency(this: *mut core::ffi::c_void, rtmaxgraphlatency: i64) -> windows_core::HRESULT - where - Identity: IAMGraphStreams_Impl, - { + unsafe extern "system" fn SetMaxGraphLatency(this: *mut core::ffi::c_void, rtmaxgraphlatency: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMGraphStreams_Impl::SetMaxGraphLatency(this, core::mem::transmute_copy(&rtmaxgraphlatency)).into() } @@ -1997,19 +1496,13 @@ impl IAMGraphStreams_Vtbl { iid == &::IID } } -pub trait IAMLatency_Impl: Sized { +pub trait IAMLatency_Impl: Sized + windows_core::IUnknownImpl { fn GetLatency(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAMLatency {} impl IAMLatency_Vtbl { - pub const fn new() -> IAMLatency_Vtbl - where - Identity: IAMLatency_Impl, - { - unsafe extern "system" fn GetLatency(this: *mut core::ffi::c_void, prtlatency: *mut i64) -> windows_core::HRESULT - where - Identity: IAMLatency_Impl, - { + pub const fn new() -> IAMLatency_Vtbl { + unsafe extern "system" fn GetLatency(this: *mut core::ffi::c_void, prtlatency: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMLatency_Impl::GetLatency(this) { Ok(ok__) => { @@ -2026,7 +1519,7 @@ impl IAMLatency_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IAMLine21Decoder_Impl: Sized { +pub trait IAMLine21Decoder_Impl: Sized + windows_core::IUnknownImpl { fn GetDecoderLevel(&self, lplevel: *mut AM_LINE21_CCLEVEL) -> windows_core::Result<()>; fn GetCurrentService(&self, lpservice: *mut AM_LINE21_CCSERVICE) -> windows_core::Result<()>; fn SetCurrentService(&self, service: AM_LINE21_CCSERVICE) -> windows_core::Result<()>; @@ -2045,98 +1538,56 @@ pub trait IAMLine21Decoder_Impl: Sized { impl windows_core::RuntimeName for IAMLine21Decoder {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IAMLine21Decoder_Vtbl { - pub const fn new() -> IAMLine21Decoder_Vtbl - where - Identity: IAMLine21Decoder_Impl, - { - unsafe extern "system" fn GetDecoderLevel(this: *mut core::ffi::c_void, lplevel: *mut AM_LINE21_CCLEVEL) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + pub const fn new() -> IAMLine21Decoder_Vtbl { + unsafe extern "system" fn GetDecoderLevel(this: *mut core::ffi::c_void, lplevel: *mut AM_LINE21_CCLEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::GetDecoderLevel(this, core::mem::transmute_copy(&lplevel)).into() } - unsafe extern "system" fn GetCurrentService(this: *mut core::ffi::c_void, lpservice: *mut AM_LINE21_CCSERVICE) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn GetCurrentService(this: *mut core::ffi::c_void, lpservice: *mut AM_LINE21_CCSERVICE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::GetCurrentService(this, core::mem::transmute_copy(&lpservice)).into() } - unsafe extern "system" fn SetCurrentService(this: *mut core::ffi::c_void, service: AM_LINE21_CCSERVICE) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn SetCurrentService(this: *mut core::ffi::c_void, service: AM_LINE21_CCSERVICE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::SetCurrentService(this, core::mem::transmute_copy(&service)).into() } - unsafe extern "system" fn GetServiceState(this: *mut core::ffi::c_void, lpstate: *mut AM_LINE21_CCSTATE) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn GetServiceState(this: *mut core::ffi::c_void, lpstate: *mut AM_LINE21_CCSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::GetServiceState(this, core::mem::transmute_copy(&lpstate)).into() } - unsafe extern "system" fn SetServiceState(this: *mut core::ffi::c_void, state: AM_LINE21_CCSTATE) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn SetServiceState(this: *mut core::ffi::c_void, state: AM_LINE21_CCSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::SetServiceState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn GetOutputFormat(this: *mut core::ffi::c_void, lpbmih: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn GetOutputFormat(this: *mut core::ffi::c_void, lpbmih: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::GetOutputFormat(this, core::mem::transmute_copy(&lpbmih)).into() } - unsafe extern "system" fn SetOutputFormat(this: *mut core::ffi::c_void, lpbmi: *mut super::super::Graphics::Gdi::BITMAPINFO) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn SetOutputFormat(this: *mut core::ffi::c_void, lpbmi: *mut super::super::Graphics::Gdi::BITMAPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::SetOutputFormat(this, core::mem::transmute_copy(&lpbmi)).into() } - unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, pdwphyscolor: *mut u32) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, pdwphyscolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::GetBackgroundColor(this, core::mem::transmute_copy(&pdwphyscolor)).into() } - unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, dwphyscolor: u32) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, dwphyscolor: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::SetBackgroundColor(this, core::mem::transmute_copy(&dwphyscolor)).into() } - unsafe extern "system" fn GetRedrawAlways(this: *mut core::ffi::c_void, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn GetRedrawAlways(this: *mut core::ffi::c_void, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::GetRedrawAlways(this, core::mem::transmute_copy(&lpboption)).into() } - unsafe extern "system" fn SetRedrawAlways(this: *mut core::ffi::c_void, boption: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn SetRedrawAlways(this: *mut core::ffi::c_void, boption: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::SetRedrawAlways(this, core::mem::transmute_copy(&boption)).into() } - unsafe extern "system" fn GetDrawBackgroundMode(this: *mut core::ffi::c_void, lpmode: *mut AM_LINE21_DRAWBGMODE) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn GetDrawBackgroundMode(this: *mut core::ffi::c_void, lpmode: *mut AM_LINE21_DRAWBGMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::GetDrawBackgroundMode(this, core::mem::transmute_copy(&lpmode)).into() } - unsafe extern "system" fn SetDrawBackgroundMode(this: *mut core::ffi::c_void, mode: AM_LINE21_DRAWBGMODE) -> windows_core::HRESULT - where - Identity: IAMLine21Decoder_Impl, - { + unsafe extern "system" fn SetDrawBackgroundMode(this: *mut core::ffi::c_void, mode: AM_LINE21_DRAWBGMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::SetDrawBackgroundMode(this, core::mem::transmute_copy(&mode)).into() } @@ -2181,98 +1632,56 @@ pub trait IAMMediaContent_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IAMMediaContent {} #[cfg(feature = "Win32_System_Com")] impl IAMMediaContent_Vtbl { - pub const fn new() -> IAMMediaContent_Vtbl - where - Identity: IAMMediaContent_Impl, - { - unsafe extern "system" fn AuthorName(this: *mut core::ffi::c_void, pbstrauthorname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + pub const fn new() -> IAMMediaContent_Vtbl { + unsafe extern "system" fn AuthorName(this: *mut core::ffi::c_void, pbstrauthorname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::AuthorName(this, core::mem::transmute_copy(&pbstrauthorname)).into() } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, pbstrtitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, pbstrtitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::Title(this, core::mem::transmute_copy(&pbstrtitle)).into() } - unsafe extern "system" fn Rating(this: *mut core::ffi::c_void, pbstrrating: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn Rating(this: *mut core::ffi::c_void, pbstrrating: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::Rating(this, core::mem::transmute_copy(&pbstrrating)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::Description(this, core::mem::transmute_copy(&pbstrdescription)).into() } - unsafe extern "system" fn Copyright(this: *mut core::ffi::c_void, pbstrcopyright: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn Copyright(this: *mut core::ffi::c_void, pbstrcopyright: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::Copyright(this, core::mem::transmute_copy(&pbstrcopyright)).into() } - unsafe extern "system" fn BaseURL(this: *mut core::ffi::c_void, pbstrbaseurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn BaseURL(this: *mut core::ffi::c_void, pbstrbaseurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::BaseURL(this, core::mem::transmute_copy(&pbstrbaseurl)).into() } - unsafe extern "system" fn LogoURL(this: *mut core::ffi::c_void, pbstrlogourl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn LogoURL(this: *mut core::ffi::c_void, pbstrlogourl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::LogoURL(this, core::mem::transmute_copy(&pbstrlogourl)).into() } - unsafe extern "system" fn LogoIconURL(this: *mut core::ffi::c_void, pbstrlogourl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn LogoIconURL(this: *mut core::ffi::c_void, pbstrlogourl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::LogoIconURL(this, core::mem::transmute_copy(&pbstrlogourl)).into() } - unsafe extern "system" fn WatermarkURL(this: *mut core::ffi::c_void, pbstrwatermarkurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn WatermarkURL(this: *mut core::ffi::c_void, pbstrwatermarkurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::WatermarkURL(this, core::mem::transmute_copy(&pbstrwatermarkurl)).into() } - unsafe extern "system" fn MoreInfoURL(this: *mut core::ffi::c_void, pbstrmoreinfourl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn MoreInfoURL(this: *mut core::ffi::c_void, pbstrmoreinfourl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::MoreInfoURL(this, core::mem::transmute_copy(&pbstrmoreinfourl)).into() } - unsafe extern "system" fn MoreInfoBannerImage(this: *mut core::ffi::c_void, pbstrmoreinfobannerimage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn MoreInfoBannerImage(this: *mut core::ffi::c_void, pbstrmoreinfobannerimage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::MoreInfoBannerImage(this, core::mem::transmute_copy(&pbstrmoreinfobannerimage)).into() } - unsafe extern "system" fn MoreInfoBannerURL(this: *mut core::ffi::c_void, pbstrmoreinfobannerurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn MoreInfoBannerURL(this: *mut core::ffi::c_void, pbstrmoreinfobannerurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::MoreInfoBannerURL(this, core::mem::transmute_copy(&pbstrmoreinfobannerurl)).into() } - unsafe extern "system" fn MoreInfoText(this: *mut core::ffi::c_void, pbstrmoreinfotext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent_Impl, - { + unsafe extern "system" fn MoreInfoText(this: *mut core::ffi::c_void, pbstrmoreinfotext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent_Impl::MoreInfoText(this, core::mem::transmute_copy(&pbstrmoreinfotext)).into() } @@ -2307,28 +1716,16 @@ pub trait IAMMediaContent2_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IAMMediaContent2 {} #[cfg(feature = "Win32_System_Com")] impl IAMMediaContent2_Vtbl { - pub const fn new() -> IAMMediaContent2_Vtbl - where - Identity: IAMMediaContent2_Impl, - { - unsafe extern "system" fn get_MediaParameter(this: *mut core::ffi::c_void, entrynum: i32, bstrname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent2_Impl, - { + pub const fn new() -> IAMMediaContent2_Vtbl { + unsafe extern "system" fn get_MediaParameter(this: *mut core::ffi::c_void, entrynum: i32, bstrname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent2_Impl::get_MediaParameter(this, core::mem::transmute_copy(&entrynum), core::mem::transmute(&bstrname), core::mem::transmute_copy(&pbstrvalue)).into() } - unsafe extern "system" fn get_MediaParameterName(this: *mut core::ffi::c_void, entrynum: i32, index: i32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMMediaContent2_Impl, - { + unsafe extern "system" fn get_MediaParameterName(this: *mut core::ffi::c_void, entrynum: i32, index: i32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent2_Impl::get_MediaParameterName(this, core::mem::transmute_copy(&entrynum), core::mem::transmute_copy(&index), core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn PlaylistCount(this: *mut core::ffi::c_void, pnumberentries: *mut i32) -> windows_core::HRESULT - where - Identity: IAMMediaContent2_Impl, - { + unsafe extern "system" fn PlaylistCount(this: *mut core::ffi::c_void, pnumberentries: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaContent2_Impl::PlaylistCount(this, core::mem::transmute_copy(&pnumberentries)).into() } @@ -2355,42 +1752,24 @@ pub trait IAMMediaStream_Impl: Sized + IMediaStream_Impl { impl windows_core::RuntimeName for IAMMediaStream {} #[cfg(feature = "Win32_System_Com")] impl IAMMediaStream_Vtbl { - pub const fn new() -> IAMMediaStream_Vtbl - where - Identity: IAMMediaStream_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psourceobject: *mut core::ffi::c_void, dwflags: u32, purposeid: *const windows_core::GUID, streamtype: STREAM_TYPE) -> windows_core::HRESULT - where - Identity: IAMMediaStream_Impl, - { + pub const fn new() -> IAMMediaStream_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psourceobject: *mut core::ffi::c_void, dwflags: u32, purposeid: *const windows_core::GUID, streamtype: STREAM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaStream_Impl::Initialize(this, windows_core::from_raw_borrowed(&psourceobject), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&purposeid), core::mem::transmute_copy(&streamtype)).into() } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: FILTER_STATE) -> windows_core::HRESULT - where - Identity: IAMMediaStream_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: FILTER_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaStream_Impl::SetState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn JoinAMMultiMediaStream(this: *mut core::ffi::c_void, pammultimediastream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMediaStream_Impl, - { + unsafe extern "system" fn JoinAMMultiMediaStream(this: *mut core::ffi::c_void, pammultimediastream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaStream_Impl::JoinAMMultiMediaStream(this, windows_core::from_raw_borrowed(&pammultimediastream)).into() } - unsafe extern "system" fn JoinFilter(this: *mut core::ffi::c_void, pmediastreamfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMediaStream_Impl, - { + unsafe extern "system" fn JoinFilter(this: *mut core::ffi::c_void, pmediastreamfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaStream_Impl::JoinFilter(this, windows_core::from_raw_borrowed(&pmediastreamfilter)).into() } - unsafe extern "system" fn JoinFilterGraph(this: *mut core::ffi::c_void, pfiltergraph: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMediaStream_Impl, - { + unsafe extern "system" fn JoinFilterGraph(this: *mut core::ffi::c_void, pfiltergraph: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaStream_Impl::JoinFilterGraph(this, windows_core::from_raw_borrowed(&pfiltergraph)).into() } @@ -2431,21 +1810,12 @@ pub trait IAMMediaTypeSample_Impl: Sized + IStreamSample_Impl { impl windows_core::RuntimeName for IAMMediaTypeSample {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IAMMediaTypeSample_Vtbl { - pub const fn new() -> IAMMediaTypeSample_Vtbl - where - Identity: IAMMediaTypeSample_Impl, - { - unsafe extern "system" fn SetPointer(this: *mut core::ffi::c_void, pbuffer: *const u8, lsize: i32) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + pub const fn new() -> IAMMediaTypeSample_Vtbl { + unsafe extern "system" fn SetPointer(this: *mut core::ffi::c_void, pbuffer: *const u8, lsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetPointer(this, core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&lsize)).into() } - unsafe extern "system" fn GetPointer(this: *mut core::ffi::c_void, ppbuffer: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn GetPointer(this: *mut core::ffi::c_void, ppbuffer: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMMediaTypeSample_Impl::GetPointer(this) { Ok(ok__) => { @@ -2455,73 +1825,43 @@ impl IAMMediaTypeSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void) -> i32 - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::GetSize(this) } - unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::GetTime(this, core::mem::transmute_copy(&ptimestart), core::mem::transmute_copy(&ptimeend)).into() } - unsafe extern "system" fn SetTime(this: *mut core::ffi::c_void, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn SetTime(this: *mut core::ffi::c_void, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetTime(this, core::mem::transmute_copy(&ptimestart), core::mem::transmute_copy(&ptimeend)).into() } - unsafe extern "system" fn IsSyncPoint(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn IsSyncPoint(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::IsSyncPoint(this).into() } - unsafe extern "system" fn SetSyncPoint(this: *mut core::ffi::c_void, bissyncpoint: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn SetSyncPoint(this: *mut core::ffi::c_void, bissyncpoint: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetSyncPoint(this, core::mem::transmute_copy(&bissyncpoint)).into() } - unsafe extern "system" fn IsPreroll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn IsPreroll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::IsPreroll(this).into() } - unsafe extern "system" fn SetPreroll(this: *mut core::ffi::c_void, bispreroll: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn SetPreroll(this: *mut core::ffi::c_void, bispreroll: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetPreroll(this, core::mem::transmute_copy(&bispreroll)).into() } - unsafe extern "system" fn GetActualDataLength(this: *mut core::ffi::c_void) -> i32 - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn GetActualDataLength(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::GetActualDataLength(this) } - unsafe extern "system" fn SetActualDataLength(this: *mut core::ffi::c_void, __midl__iammediatypesample0000: i32) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn SetActualDataLength(this: *mut core::ffi::c_void, __midl__iammediatypesample0000: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetActualDataLength(this, core::mem::transmute_copy(&__midl__iammediatypesample0000)).into() } - unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, ppmediatype: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, ppmediatype: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMMediaTypeSample_Impl::GetMediaType(this) { Ok(ok__) => { @@ -2531,38 +1871,23 @@ impl IAMMediaTypeSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetMediaType(this, core::mem::transmute_copy(&pmediatype)).into() } - unsafe extern "system" fn IsDiscontinuity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn IsDiscontinuity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::IsDiscontinuity(this).into() } - unsafe extern "system" fn SetDiscontinuity(this: *mut core::ffi::c_void, bdiscontinuity: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn SetDiscontinuity(this: *mut core::ffi::c_void, bdiscontinuity: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetDiscontinuity(this, core::mem::transmute_copy(&bdiscontinuity)).into() } - unsafe extern "system" fn GetMediaTime(this: *mut core::ffi::c_void, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn GetMediaTime(this: *mut core::ffi::c_void, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::GetMediaTime(this, core::mem::transmute_copy(&ptimestart), core::mem::transmute_copy(&ptimeend)).into() } - unsafe extern "system" fn SetMediaTime(this: *mut core::ffi::c_void, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::HRESULT - where - Identity: IAMMediaTypeSample_Impl, - { + unsafe extern "system" fn SetMediaTime(this: *mut core::ffi::c_void, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetMediaTime(this, core::mem::transmute_copy(&ptimestart), core::mem::transmute_copy(&ptimeend)).into() } @@ -2603,28 +1928,16 @@ pub trait IAMMediaTypeStream_Impl: Sized + IMediaStream_Impl { impl windows_core::RuntimeName for IAMMediaTypeStream {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IAMMediaTypeStream_Vtbl { - pub const fn new() -> IAMMediaTypeStream_Vtbl - where - Identity: IAMMediaTypeStream_Impl, - { - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pmediatype: *mut super::MediaFoundation::AM_MEDIA_TYPE, dwflags: u32) -> windows_core::HRESULT - where - Identity: IAMMediaTypeStream_Impl, - { + pub const fn new() -> IAMMediaTypeStream_Vtbl { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pmediatype: *mut super::MediaFoundation::AM_MEDIA_TYPE, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeStream_Impl::GetFormat(this, core::mem::transmute_copy(&pmediatype), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE, dwflags: u32) -> windows_core::HRESULT - where - Identity: IAMMediaTypeStream_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeStream_Impl::SetFormat(this, core::mem::transmute_copy(&pmediatype), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn CreateSample(this: *mut core::ffi::c_void, lsamplesize: i32, pbbuffer: *const u8, dwflags: u32, punkouter: *mut core::ffi::c_void, ppammediatypesample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMediaTypeStream_Impl, - { + unsafe extern "system" fn CreateSample(this: *mut core::ffi::c_void, lsamplesize: i32, pbbuffer: *const u8, dwflags: u32, punkouter: *mut core::ffi::c_void, ppammediatypesample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMMediaTypeStream_Impl::CreateSample(this, core::mem::transmute_copy(&lsamplesize), core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&punkouter)) { Ok(ok__) => { @@ -2634,10 +1947,7 @@ impl IAMMediaTypeStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamAllocatorRequirements(this: *mut core::ffi::c_void, pprops: *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT - where - Identity: IAMMediaTypeStream_Impl, - { + unsafe extern "system" fn GetStreamAllocatorRequirements(this: *mut core::ffi::c_void, pprops: *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMMediaTypeStream_Impl::GetStreamAllocatorRequirements(this) { Ok(ok__) => { @@ -2647,10 +1957,7 @@ impl IAMMediaTypeStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamAllocatorRequirements(this: *mut core::ffi::c_void, pprops: *const ALLOCATOR_PROPERTIES) -> windows_core::HRESULT - where - Identity: IAMMediaTypeStream_Impl, - { + unsafe extern "system" fn SetStreamAllocatorRequirements(this: *mut core::ffi::c_void, pprops: *const ALLOCATOR_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeStream_Impl::SetStreamAllocatorRequirements(this, core::mem::transmute_copy(&pprops)).into() } @@ -2681,21 +1988,12 @@ pub trait IAMMultiMediaStream_Impl: Sized + IMultiMediaStream_Impl { impl windows_core::RuntimeName for IAMMultiMediaStream {} #[cfg(feature = "Win32_System_Com")] impl IAMMultiMediaStream_Vtbl { - pub const fn new() -> IAMMultiMediaStream_Vtbl - where - Identity: IAMMultiMediaStream_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, streamtype: STREAM_TYPE, dwflags: u32, pfiltergraph: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMultiMediaStream_Impl, - { + pub const fn new() -> IAMMultiMediaStream_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, streamtype: STREAM_TYPE, dwflags: u32, pfiltergraph: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMultiMediaStream_Impl::Initialize(this, core::mem::transmute_copy(&streamtype), core::mem::transmute(&dwflags), windows_core::from_raw_borrowed(&pfiltergraph)).into() } - unsafe extern "system" fn GetFilterGraph(this: *mut core::ffi::c_void, ppgraphbuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMultiMediaStream_Impl, - { + unsafe extern "system" fn GetFilterGraph(this: *mut core::ffi::c_void, ppgraphbuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMMultiMediaStream_Impl::GetFilterGraph(this) { Ok(ok__) => { @@ -2705,10 +2003,7 @@ impl IAMMultiMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilter(this: *mut core::ffi::c_void, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMultiMediaStream_Impl, - { + unsafe extern "system" fn GetFilter(this: *mut core::ffi::c_void, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMMultiMediaStream_Impl::GetFilter(this) { Ok(ok__) => { @@ -2718,10 +2013,7 @@ impl IAMMultiMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddMediaStream(this: *mut core::ffi::c_void, pstreamobject: *mut core::ffi::c_void, purposeid: *const windows_core::GUID, dwflags: u32, ppnewstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMMultiMediaStream_Impl, - { + unsafe extern "system" fn AddMediaStream(this: *mut core::ffi::c_void, pstreamobject: *mut core::ffi::c_void, purposeid: *const windows_core::GUID, dwflags: u32, ppnewstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMMultiMediaStream_Impl::AddMediaStream(this, windows_core::from_raw_borrowed(&pstreamobject), core::mem::transmute_copy(&purposeid), core::mem::transmute(&dwflags)) { Ok(ok__) => { @@ -2731,24 +2023,15 @@ impl IAMMultiMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenFile(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IAMMultiMediaStream_Impl, - { + unsafe extern "system" fn OpenFile(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMultiMediaStream_Impl::OpenFile(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn OpenMoniker(this: *mut core::ffi::c_void, pctx: *mut core::ffi::c_void, pmoniker: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IAMMultiMediaStream_Impl, - { + unsafe extern "system" fn OpenMoniker(this: *mut core::ffi::c_void, pctx: *mut core::ffi::c_void, pmoniker: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMultiMediaStream_Impl::OpenMoniker(this, windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&pmoniker), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Render(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IAMMultiMediaStream_Impl, - { + unsafe extern "system" fn Render(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMultiMediaStream_Impl::Render(this, core::mem::transmute_copy(&dwflags)).into() } @@ -2796,161 +2079,92 @@ pub trait IAMNetShowConfig_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IAMNetShowConfig {} #[cfg(feature = "Win32_System_Com")] impl IAMNetShowConfig_Vtbl { - pub const fn new() -> IAMNetShowConfig_Vtbl - where - Identity: IAMNetShowConfig_Impl, - { - unsafe extern "system" fn BufferingTime(this: *mut core::ffi::c_void, pbufferingtime: *mut f64) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + pub const fn new() -> IAMNetShowConfig_Vtbl { + unsafe extern "system" fn BufferingTime(this: *mut core::ffi::c_void, pbufferingtime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::BufferingTime(this, core::mem::transmute_copy(&pbufferingtime)).into() } - unsafe extern "system" fn SetBufferingTime(this: *mut core::ffi::c_void, bufferingtime: f64) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetBufferingTime(this: *mut core::ffi::c_void, bufferingtime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetBufferingTime(this, core::mem::transmute_copy(&bufferingtime)).into() } - unsafe extern "system" fn UseFixedUDPPort(this: *mut core::ffi::c_void, pusefixedudpport: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn UseFixedUDPPort(this: *mut core::ffi::c_void, pusefixedudpport: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::UseFixedUDPPort(this, core::mem::transmute_copy(&pusefixedudpport)).into() } - unsafe extern "system" fn SetUseFixedUDPPort(this: *mut core::ffi::c_void, usefixedudpport: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetUseFixedUDPPort(this: *mut core::ffi::c_void, usefixedudpport: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetUseFixedUDPPort(this, core::mem::transmute_copy(&usefixedudpport)).into() } - unsafe extern "system" fn FixedUDPPort(this: *mut core::ffi::c_void, pfixedudpport: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn FixedUDPPort(this: *mut core::ffi::c_void, pfixedudpport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::FixedUDPPort(this, core::mem::transmute_copy(&pfixedudpport)).into() } - unsafe extern "system" fn SetFixedUDPPort(this: *mut core::ffi::c_void, fixedudpport: i32) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetFixedUDPPort(this: *mut core::ffi::c_void, fixedudpport: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetFixedUDPPort(this, core::mem::transmute_copy(&fixedudpport)).into() } - unsafe extern "system" fn UseHTTPProxy(this: *mut core::ffi::c_void, pusehttpproxy: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn UseHTTPProxy(this: *mut core::ffi::c_void, pusehttpproxy: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::UseHTTPProxy(this, core::mem::transmute_copy(&pusehttpproxy)).into() } - unsafe extern "system" fn SetUseHTTPProxy(this: *mut core::ffi::c_void, usehttpproxy: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetUseHTTPProxy(this: *mut core::ffi::c_void, usehttpproxy: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetUseHTTPProxy(this, core::mem::transmute_copy(&usehttpproxy)).into() } - unsafe extern "system" fn EnableAutoProxy(this: *mut core::ffi::c_void, penableautoproxy: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn EnableAutoProxy(this: *mut core::ffi::c_void, penableautoproxy: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::EnableAutoProxy(this, core::mem::transmute_copy(&penableautoproxy)).into() } - unsafe extern "system" fn SetEnableAutoProxy(this: *mut core::ffi::c_void, enableautoproxy: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetEnableAutoProxy(this: *mut core::ffi::c_void, enableautoproxy: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetEnableAutoProxy(this, core::mem::transmute_copy(&enableautoproxy)).into() } - unsafe extern "system" fn HTTPProxyHost(this: *mut core::ffi::c_void, pbstrhttpproxyhost: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn HTTPProxyHost(this: *mut core::ffi::c_void, pbstrhttpproxyhost: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::HTTPProxyHost(this, core::mem::transmute_copy(&pbstrhttpproxyhost)).into() } - unsafe extern "system" fn SetHTTPProxyHost(this: *mut core::ffi::c_void, bstrhttpproxyhost: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetHTTPProxyHost(this: *mut core::ffi::c_void, bstrhttpproxyhost: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetHTTPProxyHost(this, core::mem::transmute(&bstrhttpproxyhost)).into() } - unsafe extern "system" fn HTTPProxyPort(this: *mut core::ffi::c_void, phttpproxyport: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn HTTPProxyPort(this: *mut core::ffi::c_void, phttpproxyport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::HTTPProxyPort(this, core::mem::transmute_copy(&phttpproxyport)).into() } - unsafe extern "system" fn SetHTTPProxyPort(this: *mut core::ffi::c_void, httpproxyport: i32) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetHTTPProxyPort(this: *mut core::ffi::c_void, httpproxyport: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetHTTPProxyPort(this, core::mem::transmute_copy(&httpproxyport)).into() } - unsafe extern "system" fn EnableMulticast(this: *mut core::ffi::c_void, penablemulticast: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn EnableMulticast(this: *mut core::ffi::c_void, penablemulticast: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::EnableMulticast(this, core::mem::transmute_copy(&penablemulticast)).into() } - unsafe extern "system" fn SetEnableMulticast(this: *mut core::ffi::c_void, enablemulticast: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetEnableMulticast(this: *mut core::ffi::c_void, enablemulticast: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetEnableMulticast(this, core::mem::transmute_copy(&enablemulticast)).into() } - unsafe extern "system" fn EnableUDP(this: *mut core::ffi::c_void, penableudp: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn EnableUDP(this: *mut core::ffi::c_void, penableudp: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::EnableUDP(this, core::mem::transmute_copy(&penableudp)).into() } - unsafe extern "system" fn SetEnableUDP(this: *mut core::ffi::c_void, enableudp: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetEnableUDP(this: *mut core::ffi::c_void, enableudp: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetEnableUDP(this, core::mem::transmute_copy(&enableudp)).into() } - unsafe extern "system" fn EnableTCP(this: *mut core::ffi::c_void, penabletcp: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn EnableTCP(this: *mut core::ffi::c_void, penabletcp: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::EnableTCP(this, core::mem::transmute_copy(&penabletcp)).into() } - unsafe extern "system" fn SetEnableTCP(this: *mut core::ffi::c_void, enabletcp: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetEnableTCP(this: *mut core::ffi::c_void, enabletcp: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetEnableTCP(this, core::mem::transmute_copy(&enabletcp)).into() } - unsafe extern "system" fn EnableHTTP(this: *mut core::ffi::c_void, penablehttp: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn EnableHTTP(this: *mut core::ffi::c_void, penablehttp: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::EnableHTTP(this, core::mem::transmute_copy(&penablehttp)).into() } - unsafe extern "system" fn SetEnableHTTP(this: *mut core::ffi::c_void, enablehttp: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowConfig_Impl, - { + unsafe extern "system" fn SetEnableHTTP(this: *mut core::ffi::c_void, enablehttp: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowConfig_Impl::SetEnableHTTP(this, core::mem::transmute_copy(&enablehttp)).into() } @@ -3000,70 +2214,40 @@ pub trait IAMNetShowExProps_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IAMNetShowExProps {} #[cfg(feature = "Win32_System_Com")] impl IAMNetShowExProps_Vtbl { - pub const fn new() -> IAMNetShowExProps_Vtbl - where - Identity: IAMNetShowExProps_Impl, - { - unsafe extern "system" fn SourceProtocol(this: *mut core::ffi::c_void, psourceprotocol: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetShowExProps_Impl, - { + pub const fn new() -> IAMNetShowExProps_Vtbl { + unsafe extern "system" fn SourceProtocol(this: *mut core::ffi::c_void, psourceprotocol: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowExProps_Impl::SourceProtocol(this, core::mem::transmute_copy(&psourceprotocol)).into() } - unsafe extern "system" fn Bandwidth(this: *mut core::ffi::c_void, pbandwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetShowExProps_Impl, - { + unsafe extern "system" fn Bandwidth(this: *mut core::ffi::c_void, pbandwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowExProps_Impl::Bandwidth(this, core::mem::transmute_copy(&pbandwidth)).into() } - unsafe extern "system" fn ErrorCorrection(this: *mut core::ffi::c_void, pbstrerrorcorrection: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMNetShowExProps_Impl, - { + unsafe extern "system" fn ErrorCorrection(this: *mut core::ffi::c_void, pbstrerrorcorrection: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowExProps_Impl::ErrorCorrection(this, core::mem::transmute_copy(&pbstrerrorcorrection)).into() } - unsafe extern "system" fn CodecCount(this: *mut core::ffi::c_void, pcodeccount: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetShowExProps_Impl, - { + unsafe extern "system" fn CodecCount(this: *mut core::ffi::c_void, pcodeccount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowExProps_Impl::CodecCount(this, core::mem::transmute_copy(&pcodeccount)).into() } - unsafe extern "system" fn GetCodecInstalled(this: *mut core::ffi::c_void, codecnum: i32, pcodecinstalled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowExProps_Impl, - { + unsafe extern "system" fn GetCodecInstalled(this: *mut core::ffi::c_void, codecnum: i32, pcodecinstalled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowExProps_Impl::GetCodecInstalled(this, core::mem::transmute_copy(&codecnum), core::mem::transmute_copy(&pcodecinstalled)).into() } - unsafe extern "system" fn GetCodecDescription(this: *mut core::ffi::c_void, codecnum: i32, pbstrcodecdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMNetShowExProps_Impl, - { + unsafe extern "system" fn GetCodecDescription(this: *mut core::ffi::c_void, codecnum: i32, pbstrcodecdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowExProps_Impl::GetCodecDescription(this, core::mem::transmute_copy(&codecnum), core::mem::transmute_copy(&pbstrcodecdescription)).into() } - unsafe extern "system" fn GetCodecURL(this: *mut core::ffi::c_void, codecnum: i32, pbstrcodecurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMNetShowExProps_Impl, - { + unsafe extern "system" fn GetCodecURL(this: *mut core::ffi::c_void, codecnum: i32, pbstrcodecurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowExProps_Impl::GetCodecURL(this, core::mem::transmute_copy(&codecnum), core::mem::transmute_copy(&pbstrcodecurl)).into() } - unsafe extern "system" fn CreationDate(this: *mut core::ffi::c_void, pcreationdate: *mut f64) -> windows_core::HRESULT - where - Identity: IAMNetShowExProps_Impl, - { + unsafe extern "system" fn CreationDate(this: *mut core::ffi::c_void, pcreationdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowExProps_Impl::CreationDate(this, core::mem::transmute_copy(&pcreationdate)).into() } - unsafe extern "system" fn SourceLink(this: *mut core::ffi::c_void, pbstrsourcelink: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMNetShowExProps_Impl, - { + unsafe extern "system" fn SourceLink(this: *mut core::ffi::c_void, pbstrsourcelink: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowExProps_Impl::SourceLink(this, core::mem::transmute_copy(&pbstrsourcelink)).into() } @@ -3093,21 +2277,12 @@ pub trait IAMNetShowPreroll_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IAMNetShowPreroll {} #[cfg(feature = "Win32_System_Com")] impl IAMNetShowPreroll_Vtbl { - pub const fn new() -> IAMNetShowPreroll_Vtbl - where - Identity: IAMNetShowPreroll_Impl, - { - unsafe extern "system" fn SetPreroll(this: *mut core::ffi::c_void, fpreroll: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowPreroll_Impl, - { + pub const fn new() -> IAMNetShowPreroll_Vtbl { + unsafe extern "system" fn SetPreroll(this: *mut core::ffi::c_void, fpreroll: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowPreroll_Impl::SetPreroll(this, core::mem::transmute_copy(&fpreroll)).into() } - unsafe extern "system" fn Preroll(this: *mut core::ffi::c_void, pfpreroll: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetShowPreroll_Impl, - { + unsafe extern "system" fn Preroll(this: *mut core::ffi::c_void, pfpreroll: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetShowPreroll_Impl::Preroll(this, core::mem::transmute_copy(&pfpreroll)).into() } @@ -3135,56 +2310,32 @@ pub trait IAMNetworkStatus_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IAMNetworkStatus {} #[cfg(feature = "Win32_System_Com")] impl IAMNetworkStatus_Vtbl { - pub const fn new() -> IAMNetworkStatus_Vtbl - where - Identity: IAMNetworkStatus_Impl, - { - unsafe extern "system" fn ReceivedPackets(this: *mut core::ffi::c_void, preceivedpackets: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetworkStatus_Impl, - { + pub const fn new() -> IAMNetworkStatus_Vtbl { + unsafe extern "system" fn ReceivedPackets(this: *mut core::ffi::c_void, preceivedpackets: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetworkStatus_Impl::ReceivedPackets(this, core::mem::transmute_copy(&preceivedpackets)).into() } - unsafe extern "system" fn RecoveredPackets(this: *mut core::ffi::c_void, precoveredpackets: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetworkStatus_Impl, - { + unsafe extern "system" fn RecoveredPackets(this: *mut core::ffi::c_void, precoveredpackets: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetworkStatus_Impl::RecoveredPackets(this, core::mem::transmute_copy(&precoveredpackets)).into() } - unsafe extern "system" fn LostPackets(this: *mut core::ffi::c_void, plostpackets: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetworkStatus_Impl, - { + unsafe extern "system" fn LostPackets(this: *mut core::ffi::c_void, plostpackets: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetworkStatus_Impl::LostPackets(this, core::mem::transmute_copy(&plostpackets)).into() } - unsafe extern "system" fn ReceptionQuality(this: *mut core::ffi::c_void, preceptionquality: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetworkStatus_Impl, - { + unsafe extern "system" fn ReceptionQuality(this: *mut core::ffi::c_void, preceptionquality: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetworkStatus_Impl::ReceptionQuality(this, core::mem::transmute_copy(&preceptionquality)).into() } - unsafe extern "system" fn BufferingCount(this: *mut core::ffi::c_void, pbufferingcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetworkStatus_Impl, - { + unsafe extern "system" fn BufferingCount(this: *mut core::ffi::c_void, pbufferingcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetworkStatus_Impl::BufferingCount(this, core::mem::transmute_copy(&pbufferingcount)).into() } - unsafe extern "system" fn IsBroadcast(this: *mut core::ffi::c_void, pisbroadcast: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAMNetworkStatus_Impl, - { + unsafe extern "system" fn IsBroadcast(this: *mut core::ffi::c_void, pisbroadcast: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetworkStatus_Impl::IsBroadcast(this, core::mem::transmute_copy(&pisbroadcast)).into() } - unsafe extern "system" fn BufferingProgress(this: *mut core::ffi::c_void, pbufferingprogress: *mut i32) -> windows_core::HRESULT - where - Identity: IAMNetworkStatus_Impl, - { + unsafe extern "system" fn BufferingProgress(this: *mut core::ffi::c_void, pbufferingprogress: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMNetworkStatus_Impl::BufferingProgress(this, core::mem::transmute_copy(&pbufferingprogress)).into() } @@ -3203,27 +2354,18 @@ impl IAMNetworkStatus_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAMOpenProgress_Impl: Sized { +pub trait IAMOpenProgress_Impl: Sized + windows_core::IUnknownImpl { fn QueryProgress(&self, plltotal: *mut i64, pllcurrent: *mut i64) -> windows_core::Result<()>; fn AbortOperation(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMOpenProgress {} impl IAMOpenProgress_Vtbl { - pub const fn new() -> IAMOpenProgress_Vtbl - where - Identity: IAMOpenProgress_Impl, - { - unsafe extern "system" fn QueryProgress(this: *mut core::ffi::c_void, plltotal: *mut i64, pllcurrent: *mut i64) -> windows_core::HRESULT - where - Identity: IAMOpenProgress_Impl, - { + pub const fn new() -> IAMOpenProgress_Vtbl { + unsafe extern "system" fn QueryProgress(this: *mut core::ffi::c_void, plltotal: *mut i64, pllcurrent: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMOpenProgress_Impl::QueryProgress(this, core::mem::transmute_copy(&plltotal), core::mem::transmute_copy(&pllcurrent)).into() } - unsafe extern "system" fn AbortOperation(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMOpenProgress_Impl, - { + unsafe extern "system" fn AbortOperation(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMOpenProgress_Impl::AbortOperation(this).into() } @@ -3237,21 +2379,15 @@ impl IAMOpenProgress_Vtbl { iid == &::IID } } -pub trait IAMOverlayFX_Impl: Sized { +pub trait IAMOverlayFX_Impl: Sized + windows_core::IUnknownImpl { fn QueryOverlayFXCaps(&self) -> windows_core::Result; fn SetOverlayFX(&self, dwoverlayfx: u32) -> windows_core::Result<()>; fn GetOverlayFX(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAMOverlayFX {} impl IAMOverlayFX_Vtbl { - pub const fn new() -> IAMOverlayFX_Vtbl - where - Identity: IAMOverlayFX_Impl, - { - unsafe extern "system" fn QueryOverlayFXCaps(this: *mut core::ffi::c_void, lpdwoverlayfxcaps: *mut u32) -> windows_core::HRESULT - where - Identity: IAMOverlayFX_Impl, - { + pub const fn new() -> IAMOverlayFX_Vtbl { + unsafe extern "system" fn QueryOverlayFXCaps(this: *mut core::ffi::c_void, lpdwoverlayfxcaps: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMOverlayFX_Impl::QueryOverlayFXCaps(this) { Ok(ok__) => { @@ -3261,17 +2397,11 @@ impl IAMOverlayFX_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOverlayFX(this: *mut core::ffi::c_void, dwoverlayfx: u32) -> windows_core::HRESULT - where - Identity: IAMOverlayFX_Impl, - { + unsafe extern "system" fn SetOverlayFX(this: *mut core::ffi::c_void, dwoverlayfx: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMOverlayFX_Impl::SetOverlayFX(this, core::mem::transmute_copy(&dwoverlayfx)).into() } - unsafe extern "system" fn GetOverlayFX(this: *mut core::ffi::c_void, lpdwoverlayfx: *mut u32) -> windows_core::HRESULT - where - Identity: IAMOverlayFX_Impl, - { + unsafe extern "system" fn GetOverlayFX(this: *mut core::ffi::c_void, lpdwoverlayfx: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMOverlayFX_Impl::GetOverlayFX(this) { Ok(ok__) => { @@ -3292,21 +2422,15 @@ impl IAMOverlayFX_Vtbl { iid == &::IID } } -pub trait IAMParse_Impl: Sized { +pub trait IAMParse_Impl: Sized + windows_core::IUnknownImpl { fn GetParseTime(&self) -> windows_core::Result; fn SetParseTime(&self, rtcurrent: i64) -> windows_core::Result<()>; fn Flush(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMParse {} impl IAMParse_Vtbl { - pub const fn new() -> IAMParse_Vtbl - where - Identity: IAMParse_Impl, - { - unsafe extern "system" fn GetParseTime(this: *mut core::ffi::c_void, prtcurrent: *mut i64) -> windows_core::HRESULT - where - Identity: IAMParse_Impl, - { + pub const fn new() -> IAMParse_Vtbl { + unsafe extern "system" fn GetParseTime(this: *mut core::ffi::c_void, prtcurrent: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMParse_Impl::GetParseTime(this) { Ok(ok__) => { @@ -3316,17 +2440,11 @@ impl IAMParse_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParseTime(this: *mut core::ffi::c_void, rtcurrent: i64) -> windows_core::HRESULT - where - Identity: IAMParse_Impl, - { + unsafe extern "system" fn SetParseTime(this: *mut core::ffi::c_void, rtcurrent: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMParse_Impl::SetParseTime(this, core::mem::transmute_copy(&rtcurrent)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMParse_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMParse_Impl::Flush(this).into() } @@ -3341,19 +2459,13 @@ impl IAMParse_Vtbl { iid == &::IID } } -pub trait IAMPhysicalPinInfo_Impl: Sized { +pub trait IAMPhysicalPinInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetPhysicalType(&self, ptype: *mut i32, ppsztype: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMPhysicalPinInfo {} impl IAMPhysicalPinInfo_Vtbl { - pub const fn new() -> IAMPhysicalPinInfo_Vtbl - where - Identity: IAMPhysicalPinInfo_Impl, - { - unsafe extern "system" fn GetPhysicalType(this: *mut core::ffi::c_void, ptype: *mut i32, ppsztype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAMPhysicalPinInfo_Impl, - { + pub const fn new() -> IAMPhysicalPinInfo_Vtbl { + unsafe extern "system" fn GetPhysicalType(this: *mut core::ffi::c_void, ptype: *mut i32, ppsztype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPhysicalPinInfo_Impl::GetPhysicalType(this, core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&ppsztype)).into() } @@ -3363,7 +2475,7 @@ impl IAMPhysicalPinInfo_Vtbl { iid == &::IID } } -pub trait IAMPlayList_Impl: Sized { +pub trait IAMPlayList_Impl: Sized + windows_core::IUnknownImpl { fn GetFlags(&self) -> windows_core::Result; fn GetItemCount(&self) -> windows_core::Result; fn GetItem(&self, dwitemindex: u32) -> windows_core::Result; @@ -3372,14 +2484,8 @@ pub trait IAMPlayList_Impl: Sized { } impl windows_core::RuntimeName for IAMPlayList {} impl IAMPlayList_Vtbl { - pub const fn new() -> IAMPlayList_Vtbl - where - Identity: IAMPlayList_Impl, - { - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IAMPlayList_Impl, - { + pub const fn new() -> IAMPlayList_Vtbl { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayList_Impl::GetFlags(this) { Ok(ok__) => { @@ -3389,10 +2495,7 @@ impl IAMPlayList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemCount(this: *mut core::ffi::c_void, pdwitems: *mut u32) -> windows_core::HRESULT - where - Identity: IAMPlayList_Impl, - { + unsafe extern "system" fn GetItemCount(this: *mut core::ffi::c_void, pdwitems: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayList_Impl::GetItemCount(this) { Ok(ok__) => { @@ -3402,10 +2505,7 @@ impl IAMPlayList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, dwitemindex: u32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMPlayList_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, dwitemindex: u32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayList_Impl::GetItem(this, core::mem::transmute_copy(&dwitemindex)) { Ok(ok__) => { @@ -3415,17 +2515,11 @@ impl IAMPlayList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNamedEvent(this: *mut core::ffi::c_void, pwszeventname: windows_core::PCWSTR, dwitemindex: u32, ppitem: *mut *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IAMPlayList_Impl, - { + unsafe extern "system" fn GetNamedEvent(this: *mut core::ffi::c_void, pwszeventname: windows_core::PCWSTR, dwitemindex: u32, ppitem: *mut *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPlayList_Impl::GetNamedEvent(this, core::mem::transmute(&pwszeventname), core::mem::transmute_copy(&dwitemindex), core::mem::transmute_copy(&ppitem), core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn GetRepeatInfo(this: *mut core::ffi::c_void, pdwrepeatcount: *mut u32, pdwrepeatstart: *mut u32, pdwrepeatend: *mut u32) -> windows_core::HRESULT - where - Identity: IAMPlayList_Impl, - { + unsafe extern "system" fn GetRepeatInfo(this: *mut core::ffi::c_void, pdwrepeatcount: *mut u32, pdwrepeatstart: *mut u32, pdwrepeatend: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPlayList_Impl::GetRepeatInfo(this, core::mem::transmute_copy(&pdwrepeatcount), core::mem::transmute_copy(&pdwrepeatstart), core::mem::transmute_copy(&pdwrepeatend)).into() } @@ -3442,7 +2536,7 @@ impl IAMPlayList_Vtbl { iid == &::IID } } -pub trait IAMPlayListItem_Impl: Sized { +pub trait IAMPlayListItem_Impl: Sized + windows_core::IUnknownImpl { fn GetFlags(&self) -> windows_core::Result; fn GetSourceCount(&self) -> windows_core::Result; fn GetSourceURL(&self, dwsourceindex: u32) -> windows_core::Result; @@ -3457,14 +2551,8 @@ pub trait IAMPlayListItem_Impl: Sized { } impl windows_core::RuntimeName for IAMPlayListItem {} impl IAMPlayListItem_Vtbl { - pub const fn new() -> IAMPlayListItem_Vtbl - where - Identity: IAMPlayListItem_Impl, - { - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + pub const fn new() -> IAMPlayListItem_Vtbl { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetFlags(this) { Ok(ok__) => { @@ -3474,10 +2562,7 @@ impl IAMPlayListItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceCount(this: *mut core::ffi::c_void, pdwsources: *mut u32) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + unsafe extern "system" fn GetSourceCount(this: *mut core::ffi::c_void, pdwsources: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetSourceCount(this) { Ok(ok__) => { @@ -3487,10 +2572,7 @@ impl IAMPlayListItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceURL(this: *mut core::ffi::c_void, dwsourceindex: u32, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + unsafe extern "system" fn GetSourceURL(this: *mut core::ffi::c_void, dwsourceindex: u32, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetSourceURL(this, core::mem::transmute_copy(&dwsourceindex)) { Ok(ok__) => { @@ -3500,10 +2582,7 @@ impl IAMPlayListItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceStart(this: *mut core::ffi::c_void, dwsourceindex: u32, prtstart: *mut i64) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + unsafe extern "system" fn GetSourceStart(this: *mut core::ffi::c_void, dwsourceindex: u32, prtstart: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetSourceStart(this, core::mem::transmute_copy(&dwsourceindex)) { Ok(ok__) => { @@ -3513,10 +2592,7 @@ impl IAMPlayListItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceDuration(this: *mut core::ffi::c_void, dwsourceindex: u32, prtduration: *mut i64) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + unsafe extern "system" fn GetSourceDuration(this: *mut core::ffi::c_void, dwsourceindex: u32, prtduration: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetSourceDuration(this, core::mem::transmute_copy(&dwsourceindex)) { Ok(ok__) => { @@ -3526,10 +2602,7 @@ impl IAMPlayListItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceStartMarker(this: *mut core::ffi::c_void, dwsourceindex: u32, pdwmarker: *mut u32) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + unsafe extern "system" fn GetSourceStartMarker(this: *mut core::ffi::c_void, dwsourceindex: u32, pdwmarker: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetSourceStartMarker(this, core::mem::transmute_copy(&dwsourceindex)) { Ok(ok__) => { @@ -3539,10 +2612,7 @@ impl IAMPlayListItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceEndMarker(this: *mut core::ffi::c_void, dwsourceindex: u32, pdwmarker: *mut u32) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + unsafe extern "system" fn GetSourceEndMarker(this: *mut core::ffi::c_void, dwsourceindex: u32, pdwmarker: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetSourceEndMarker(this, core::mem::transmute_copy(&dwsourceindex)) { Ok(ok__) => { @@ -3552,10 +2622,7 @@ impl IAMPlayListItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceStartMarkerName(this: *mut core::ffi::c_void, dwsourceindex: u32, pbstrstartmarker: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + unsafe extern "system" fn GetSourceStartMarkerName(this: *mut core::ffi::c_void, dwsourceindex: u32, pbstrstartmarker: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetSourceStartMarkerName(this, core::mem::transmute_copy(&dwsourceindex)) { Ok(ok__) => { @@ -3565,10 +2632,7 @@ impl IAMPlayListItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceEndMarkerName(this: *mut core::ffi::c_void, dwsourceindex: u32, pbstrendmarker: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + unsafe extern "system" fn GetSourceEndMarkerName(this: *mut core::ffi::c_void, dwsourceindex: u32, pbstrendmarker: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetSourceEndMarkerName(this, core::mem::transmute_copy(&dwsourceindex)) { Ok(ok__) => { @@ -3578,10 +2642,7 @@ impl IAMPlayListItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLinkURL(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + unsafe extern "system" fn GetLinkURL(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetLinkURL(this) { Ok(ok__) => { @@ -3591,10 +2652,7 @@ impl IAMPlayListItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScanDuration(this: *mut core::ffi::c_void, dwsourceindex: u32, prtscanduration: *mut i64) -> windows_core::HRESULT - where - Identity: IAMPlayListItem_Impl, - { + unsafe extern "system" fn GetScanDuration(this: *mut core::ffi::c_void, dwsourceindex: u32, prtscanduration: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPlayListItem_Impl::GetScanDuration(this, core::mem::transmute_copy(&dwsourceindex)) { Ok(ok__) => { @@ -3623,7 +2681,7 @@ impl IAMPlayListItem_Vtbl { iid == &::IID } } -pub trait IAMPluginControl_Impl: Sized { +pub trait IAMPluginControl_Impl: Sized + windows_core::IUnknownImpl { fn GetPreferredClsid(&self, subtype: *const windows_core::GUID) -> windows_core::Result; fn GetPreferredClsidByIndex(&self, index: u32, subtype: *mut windows_core::GUID, clsid: *mut windows_core::GUID) -> windows_core::Result<()>; fn SetPreferredClsid(&self, subtype: *const windows_core::GUID, clsid: *const windows_core::GUID) -> windows_core::Result<()>; @@ -3634,14 +2692,8 @@ pub trait IAMPluginControl_Impl: Sized { } impl windows_core::RuntimeName for IAMPluginControl {} impl IAMPluginControl_Vtbl { - pub const fn new() -> IAMPluginControl_Vtbl - where - Identity: IAMPluginControl_Impl, - { - unsafe extern "system" fn GetPreferredClsid(this: *mut core::ffi::c_void, subtype: *const windows_core::GUID, clsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAMPluginControl_Impl, - { + pub const fn new() -> IAMPluginControl_Vtbl { + unsafe extern "system" fn GetPreferredClsid(this: *mut core::ffi::c_void, subtype: *const windows_core::GUID, clsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPluginControl_Impl::GetPreferredClsid(this, core::mem::transmute_copy(&subtype)) { Ok(ok__) => { @@ -3651,31 +2703,19 @@ impl IAMPluginControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreferredClsidByIndex(this: *mut core::ffi::c_void, index: u32, subtype: *mut windows_core::GUID, clsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAMPluginControl_Impl, - { + unsafe extern "system" fn GetPreferredClsidByIndex(this: *mut core::ffi::c_void, index: u32, subtype: *mut windows_core::GUID, clsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPluginControl_Impl::GetPreferredClsidByIndex(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&subtype), core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn SetPreferredClsid(this: *mut core::ffi::c_void, subtype: *const windows_core::GUID, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAMPluginControl_Impl, - { + unsafe extern "system" fn SetPreferredClsid(this: *mut core::ffi::c_void, subtype: *const windows_core::GUID, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPluginControl_Impl::SetPreferredClsid(this, core::mem::transmute_copy(&subtype), core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn IsDisabled(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAMPluginControl_Impl, - { + unsafe extern "system" fn IsDisabled(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPluginControl_Impl::IsDisabled(this, core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn GetDisabledByIndex(this: *mut core::ffi::c_void, index: u32, clsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAMPluginControl_Impl, - { + unsafe extern "system" fn GetDisabledByIndex(this: *mut core::ffi::c_void, index: u32, clsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPluginControl_Impl::GetDisabledByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3685,17 +2725,11 @@ impl IAMPluginControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisabled(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, disabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMPluginControl_Impl, - { + unsafe extern "system" fn SetDisabled(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, disabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPluginControl_Impl::SetDisabled(this, core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&disabled)).into() } - unsafe extern "system" fn IsLegacyDisabled(this: *mut core::ffi::c_void, dllname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAMPluginControl_Impl, - { + unsafe extern "system" fn IsLegacyDisabled(this: *mut core::ffi::c_void, dllname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPluginControl_Impl::IsLegacyDisabled(this, core::mem::transmute(&dllname)).into() } @@ -3724,14 +2758,8 @@ pub trait IAMPushSource_Impl: Sized + IAMLatency_Impl { } impl windows_core::RuntimeName for IAMPushSource {} impl IAMPushSource_Vtbl { - pub const fn new() -> IAMPushSource_Vtbl - where - Identity: IAMPushSource_Impl, - { - unsafe extern "system" fn GetPushSourceFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: IAMPushSource_Impl, - { + pub const fn new() -> IAMPushSource_Vtbl { + unsafe extern "system" fn GetPushSourceFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPushSource_Impl::GetPushSourceFlags(this) { Ok(ok__) => { @@ -3741,24 +2769,15 @@ impl IAMPushSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPushSourceFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IAMPushSource_Impl, - { + unsafe extern "system" fn SetPushSourceFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPushSource_Impl::SetPushSourceFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetStreamOffset(this: *mut core::ffi::c_void, rtoffset: i64) -> windows_core::HRESULT - where - Identity: IAMPushSource_Impl, - { + unsafe extern "system" fn SetStreamOffset(this: *mut core::ffi::c_void, rtoffset: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPushSource_Impl::SetStreamOffset(this, core::mem::transmute_copy(&rtoffset)).into() } - unsafe extern "system" fn GetStreamOffset(this: *mut core::ffi::c_void, prtoffset: *mut i64) -> windows_core::HRESULT - where - Identity: IAMPushSource_Impl, - { + unsafe extern "system" fn GetStreamOffset(this: *mut core::ffi::c_void, prtoffset: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPushSource_Impl::GetStreamOffset(this) { Ok(ok__) => { @@ -3768,10 +2787,7 @@ impl IAMPushSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxStreamOffset(this: *mut core::ffi::c_void, prtmaxoffset: *mut i64) -> windows_core::HRESULT - where - Identity: IAMPushSource_Impl, - { + unsafe extern "system" fn GetMaxStreamOffset(this: *mut core::ffi::c_void, prtmaxoffset: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMPushSource_Impl::GetMaxStreamOffset(this) { Ok(ok__) => { @@ -3781,10 +2797,7 @@ impl IAMPushSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxStreamOffset(this: *mut core::ffi::c_void, rtmaxoffset: i64) -> windows_core::HRESULT - where - Identity: IAMPushSource_Impl, - { + unsafe extern "system" fn SetMaxStreamOffset(this: *mut core::ffi::c_void, rtmaxoffset: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPushSource_Impl::SetMaxStreamOffset(this, core::mem::transmute_copy(&rtmaxoffset)).into() } @@ -3802,19 +2815,13 @@ impl IAMPushSource_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAMRebuild_Impl: Sized { +pub trait IAMRebuild_Impl: Sized + windows_core::IUnknownImpl { fn RebuildNow(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMRebuild {} impl IAMRebuild_Vtbl { - pub const fn new() -> IAMRebuild_Vtbl - where - Identity: IAMRebuild_Impl, - { - unsafe extern "system" fn RebuildNow(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMRebuild_Impl, - { + pub const fn new() -> IAMRebuild_Vtbl { + unsafe extern "system" fn RebuildNow(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMRebuild_Impl::RebuildNow(this).into() } @@ -3824,19 +2831,13 @@ impl IAMRebuild_Vtbl { iid == &::IID } } -pub trait IAMResourceControl_Impl: Sized { +pub trait IAMResourceControl_Impl: Sized + windows_core::IUnknownImpl { fn Reserve(&self, dwflags: u32, pvreserved: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMResourceControl {} impl IAMResourceControl_Vtbl { - pub const fn new() -> IAMResourceControl_Vtbl - where - Identity: IAMResourceControl_Impl, - { - unsafe extern "system" fn Reserve(this: *mut core::ffi::c_void, dwflags: u32, pvreserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMResourceControl_Impl, - { + pub const fn new() -> IAMResourceControl_Vtbl { + unsafe extern "system" fn Reserve(this: *mut core::ffi::c_void, dwflags: u32, pvreserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMResourceControl_Impl::Reserve(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pvreserved)).into() } @@ -3859,21 +2860,12 @@ pub trait IAMStats_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAMStats {} #[cfg(feature = "Win32_System_Com")] impl IAMStats_Vtbl { - pub const fn new() -> IAMStats_Vtbl - where - Identity: IAMStats_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMStats_Impl, - { + pub const fn new() -> IAMStats_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStats_Impl::Reset(this).into() } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAMStats_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMStats_Impl::Count(this) { Ok(ok__) => { @@ -3883,24 +2875,15 @@ impl IAMStats_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValueByIndex(this: *mut core::ffi::c_void, lindex: i32, szname: *mut core::mem::MaybeUninit, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> windows_core::HRESULT - where - Identity: IAMStats_Impl, - { + unsafe extern "system" fn GetValueByIndex(this: *mut core::ffi::c_void, lindex: i32, szname: *mut core::mem::MaybeUninit, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStats_Impl::GetValueByIndex(this, 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(this: *mut core::ffi::c_void, szname: core::mem::MaybeUninit, lindex: *mut i32, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> windows_core::HRESULT - where - Identity: IAMStats_Impl, - { + unsafe extern "system" fn GetValueByName(this: *mut core::ffi::c_void, szname: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStats_Impl::GetValueByName(this, 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(this: *mut core::ffi::c_void, szname: core::mem::MaybeUninit, lcreate: i32, plindex: *mut i32) -> windows_core::HRESULT - where - Identity: IAMStats_Impl, - { + unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, szname: core::mem::MaybeUninit, lcreate: i32, plindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMStats_Impl::GetIndex(this, core::mem::transmute(&szname), core::mem::transmute_copy(&lcreate)) { Ok(ok__) => { @@ -3910,10 +2893,7 @@ impl IAMStats_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddValue(this: *mut core::ffi::c_void, lindex: i32, dvalue: f64) -> windows_core::HRESULT - where - Identity: IAMStats_Impl, - { + unsafe extern "system" fn AddValue(this: *mut core::ffi::c_void, lindex: i32, dvalue: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStats_Impl::AddValue(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&dvalue)).into() } @@ -3932,7 +2912,7 @@ impl IAMStats_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IAMStreamConfig_Impl: Sized { +pub trait IAMStreamConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetFormat(&self, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn GetFormat(&self) -> windows_core::Result<*mut super::MediaFoundation::AM_MEDIA_TYPE>; fn GetNumberOfCapabilities(&self, picount: *mut i32, pisize: *mut i32) -> windows_core::Result<()>; @@ -3942,21 +2922,12 @@ pub trait IAMStreamConfig_Impl: Sized { impl windows_core::RuntimeName for IAMStreamConfig {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IAMStreamConfig_Vtbl { - pub const fn new() -> IAMStreamConfig_Vtbl - where - Identity: IAMStreamConfig_Impl, - { - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IAMStreamConfig_Impl, - { + pub const fn new() -> IAMStreamConfig_Vtbl { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStreamConfig_Impl::SetFormat(this, core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, ppmt: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IAMStreamConfig_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, ppmt: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMStreamConfig_Impl::GetFormat(this) { Ok(ok__) => { @@ -3966,17 +2937,11 @@ impl IAMStreamConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOfCapabilities(this: *mut core::ffi::c_void, picount: *mut i32, pisize: *mut i32) -> windows_core::HRESULT - where - Identity: IAMStreamConfig_Impl, - { + unsafe extern "system" fn GetNumberOfCapabilities(this: *mut core::ffi::c_void, picount: *mut i32, pisize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStreamConfig_Impl::GetNumberOfCapabilities(this, core::mem::transmute_copy(&picount), core::mem::transmute_copy(&pisize)).into() } - unsafe extern "system" fn GetStreamCaps(this: *mut core::ffi::c_void, iindex: i32, ppmt: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE, pscc: *mut u8) -> windows_core::HRESULT - where - Identity: IAMStreamConfig_Impl, - { + unsafe extern "system" fn GetStreamCaps(this: *mut core::ffi::c_void, iindex: i32, ppmt: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE, pscc: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStreamConfig_Impl::GetStreamCaps(this, core::mem::transmute_copy(&iindex), core::mem::transmute_copy(&ppmt), core::mem::transmute_copy(&pscc)).into() } @@ -3992,35 +2957,23 @@ impl IAMStreamConfig_Vtbl { iid == &::IID } } -pub trait IAMStreamControl_Impl: Sized { +pub trait IAMStreamControl_Impl: Sized + windows_core::IUnknownImpl { fn StartAt(&self, ptstart: *const i64, dwcookie: u32) -> windows_core::Result<()>; fn StopAt(&self, ptstop: *const i64, bsendextra: super::super::Foundation::BOOL, dwcookie: u32) -> windows_core::Result<()>; fn GetInfo(&self, pinfo: *mut AM_STREAM_INFO) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMStreamControl {} impl IAMStreamControl_Vtbl { - pub const fn new() -> IAMStreamControl_Vtbl - where - Identity: IAMStreamControl_Impl, - { - unsafe extern "system" fn StartAt(this: *mut core::ffi::c_void, ptstart: *const i64, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IAMStreamControl_Impl, - { + pub const fn new() -> IAMStreamControl_Vtbl { + unsafe extern "system" fn StartAt(this: *mut core::ffi::c_void, ptstart: *const i64, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStreamControl_Impl::StartAt(this, core::mem::transmute_copy(&ptstart), core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn StopAt(this: *mut core::ffi::c_void, ptstop: *const i64, bsendextra: super::super::Foundation::BOOL, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IAMStreamControl_Impl, - { + unsafe extern "system" fn StopAt(this: *mut core::ffi::c_void, ptstop: *const i64, bsendextra: super::super::Foundation::BOOL, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStreamControl_Impl::StopAt(this, core::mem::transmute_copy(&ptstop), core::mem::transmute_copy(&bsendextra), core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pinfo: *mut AM_STREAM_INFO) -> windows_core::HRESULT - where - Identity: IAMStreamControl_Impl, - { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pinfo: *mut AM_STREAM_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStreamControl_Impl::GetInfo(this, core::mem::transmute_copy(&pinfo)).into() } @@ -4036,7 +2989,7 @@ impl IAMStreamControl_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IAMStreamSelect_Impl: Sized { +pub trait IAMStreamSelect_Impl: Sized + windows_core::IUnknownImpl { fn Count(&self) -> windows_core::Result; fn Info(&self, lindex: i32, ppmt: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE, pdwflags: *mut u32, plcid: *mut u32, pdwgroup: *mut u32, ppszname: *mut windows_core::PWSTR, ppobject: *mut Option, ppunk: *mut Option) -> windows_core::Result<()>; fn Enable(&self, lindex: i32, dwflags: u32) -> windows_core::Result<()>; @@ -4045,14 +2998,8 @@ pub trait IAMStreamSelect_Impl: Sized { impl windows_core::RuntimeName for IAMStreamSelect {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IAMStreamSelect_Vtbl { - pub const fn new() -> IAMStreamSelect_Vtbl - where - Identity: IAMStreamSelect_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IAMStreamSelect_Impl, - { + pub const fn new() -> IAMStreamSelect_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMStreamSelect_Impl::Count(this) { Ok(ok__) => { @@ -4062,17 +3009,11 @@ impl IAMStreamSelect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Info(this: *mut core::ffi::c_void, lindex: i32, ppmt: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE, pdwflags: *mut u32, plcid: *mut u32, pdwgroup: *mut u32, ppszname: *mut windows_core::PWSTR, ppobject: *mut *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMStreamSelect_Impl, - { + unsafe extern "system" fn Info(this: *mut core::ffi::c_void, lindex: i32, ppmt: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE, pdwflags: *mut u32, plcid: *mut u32, pdwgroup: *mut u32, ppszname: *mut windows_core::PWSTR, ppobject: *mut *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStreamSelect_Impl::Info(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&ppmt), core::mem::transmute_copy(&pdwflags), core::mem::transmute_copy(&plcid), core::mem::transmute_copy(&pdwgroup), core::mem::transmute_copy(&ppszname), core::mem::transmute_copy(&ppobject), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, lindex: i32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IAMStreamSelect_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, lindex: i32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStreamSelect_Impl::Enable(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&dwflags)).into() } @@ -4087,7 +3028,7 @@ impl IAMStreamSelect_Vtbl { iid == &::IID } } -pub trait IAMTVAudio_Impl: Sized { +pub trait IAMTVAudio_Impl: Sized + windows_core::IUnknownImpl { fn GetHardwareSupportedTVAudioModes(&self) -> windows_core::Result; fn GetAvailableTVAudioModes(&self) -> windows_core::Result; fn TVAudioMode(&self) -> windows_core::Result; @@ -4097,14 +3038,8 @@ pub trait IAMTVAudio_Impl: Sized { } impl windows_core::RuntimeName for IAMTVAudio {} impl IAMTVAudio_Vtbl { - pub const fn new() -> IAMTVAudio_Vtbl - where - Identity: IAMTVAudio_Impl, - { - unsafe extern "system" fn GetHardwareSupportedTVAudioModes(this: *mut core::ffi::c_void, plmodes: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTVAudio_Impl, - { + pub const fn new() -> IAMTVAudio_Vtbl { + unsafe extern "system" fn GetHardwareSupportedTVAudioModes(this: *mut core::ffi::c_void, plmodes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVAudio_Impl::GetHardwareSupportedTVAudioModes(this) { Ok(ok__) => { @@ -4114,10 +3049,7 @@ impl IAMTVAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAvailableTVAudioModes(this: *mut core::ffi::c_void, plmodes: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTVAudio_Impl, - { + unsafe extern "system" fn GetAvailableTVAudioModes(this: *mut core::ffi::c_void, plmodes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVAudio_Impl::GetAvailableTVAudioModes(this) { Ok(ok__) => { @@ -4127,10 +3059,7 @@ impl IAMTVAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TVAudioMode(this: *mut core::ffi::c_void, plmode: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTVAudio_Impl, - { + unsafe extern "system" fn TVAudioMode(this: *mut core::ffi::c_void, plmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVAudio_Impl::TVAudioMode(this) { Ok(ok__) => { @@ -4140,24 +3069,15 @@ impl IAMTVAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTVAudioMode(this: *mut core::ffi::c_void, lmode: i32) -> windows_core::HRESULT - where - Identity: IAMTVAudio_Impl, - { + unsafe extern "system" fn SetTVAudioMode(this: *mut core::ffi::c_void, lmode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTVAudio_Impl::SetTVAudioMode(this, core::mem::transmute_copy(&lmode)).into() } - unsafe extern "system" fn RegisterNotificationCallBack(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void, levents: i32) -> windows_core::HRESULT - where - Identity: IAMTVAudio_Impl, - { + unsafe extern "system" fn RegisterNotificationCallBack(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void, levents: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTVAudio_Impl::RegisterNotificationCallBack(this, windows_core::from_raw_borrowed(&pnotify), core::mem::transmute_copy(&levents)).into() } - unsafe extern "system" fn UnRegisterNotificationCallBack(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMTVAudio_Impl, - { + unsafe extern "system" fn UnRegisterNotificationCallBack(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTVAudio_Impl::UnRegisterNotificationCallBack(this, windows_core::from_raw_borrowed(&pnotify)).into() } @@ -4175,19 +3095,13 @@ impl IAMTVAudio_Vtbl { iid == &::IID } } -pub trait IAMTVAudioNotification_Impl: Sized { +pub trait IAMTVAudioNotification_Impl: Sized + windows_core::IUnknownImpl { fn OnEvent(&self, event: AMTVAudioEventType) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMTVAudioNotification {} impl IAMTVAudioNotification_Vtbl { - pub const fn new() -> IAMTVAudioNotification_Vtbl - where - Identity: IAMTVAudioNotification_Impl, - { - unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, event: AMTVAudioEventType) -> windows_core::HRESULT - where - Identity: IAMTVAudioNotification_Impl, - { + pub const fn new() -> IAMTVAudioNotification_Vtbl { + unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, event: AMTVAudioEventType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTVAudioNotification_Impl::OnEvent(this, core::mem::transmute_copy(&event)).into() } @@ -4212,14 +3126,8 @@ pub trait IAMTVTuner_Impl: Sized + IAMTuner_Impl { } impl windows_core::RuntimeName for IAMTVTuner {} impl IAMTVTuner_Vtbl { - pub const fn new() -> IAMTVTuner_Vtbl - where - Identity: IAMTVTuner_Impl, - { - unsafe extern "system" fn AvailableTVFormats(this: *mut core::ffi::c_void, lanalogvideostandard: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + pub const fn new() -> IAMTVTuner_Vtbl { + unsafe extern "system" fn AvailableTVFormats(this: *mut core::ffi::c_void, lanalogvideostandard: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVTuner_Impl::AvailableTVFormats(this) { Ok(ok__) => { @@ -4229,10 +3137,7 @@ impl IAMTVTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TVFormat(this: *mut core::ffi::c_void, planalogvideostandard: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + unsafe extern "system" fn TVFormat(this: *mut core::ffi::c_void, planalogvideostandard: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVTuner_Impl::TVFormat(this) { Ok(ok__) => { @@ -4242,10 +3147,7 @@ impl IAMTVTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AutoTune(this: *mut core::ffi::c_void, lchannel: i32, plfoundsignal: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + unsafe extern "system" fn AutoTune(this: *mut core::ffi::c_void, lchannel: i32, plfoundsignal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVTuner_Impl::AutoTune(this, core::mem::transmute_copy(&lchannel)) { Ok(ok__) => { @@ -4255,17 +3157,11 @@ impl IAMTVTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StoreAutoTune(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + unsafe extern "system" fn StoreAutoTune(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTVTuner_Impl::StoreAutoTune(this).into() } - unsafe extern "system" fn NumInputConnections(this: *mut core::ffi::c_void, plnuminputconnections: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + unsafe extern "system" fn NumInputConnections(this: *mut core::ffi::c_void, plnuminputconnections: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVTuner_Impl::NumInputConnections(this) { Ok(ok__) => { @@ -4275,17 +3171,11 @@ impl IAMTVTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_InputType(this: *mut core::ffi::c_void, lindex: i32, inputtype: TunerInputType) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + unsafe extern "system" fn put_InputType(this: *mut core::ffi::c_void, lindex: i32, inputtype: TunerInputType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTVTuner_Impl::put_InputType(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&inputtype)).into() } - unsafe extern "system" fn get_InputType(this: *mut core::ffi::c_void, lindex: i32, pinputtype: *mut TunerInputType) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + unsafe extern "system" fn get_InputType(this: *mut core::ffi::c_void, lindex: i32, pinputtype: *mut TunerInputType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVTuner_Impl::get_InputType(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -4295,17 +3185,11 @@ impl IAMTVTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectInput(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + unsafe extern "system" fn SetConnectInput(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTVTuner_Impl::SetConnectInput(this, core::mem::transmute_copy(&lindex)).into() } - unsafe extern "system" fn ConnectInput(this: *mut core::ffi::c_void, plindex: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + unsafe extern "system" fn ConnectInput(this: *mut core::ffi::c_void, plindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVTuner_Impl::ConnectInput(this) { Ok(ok__) => { @@ -4315,10 +3199,7 @@ impl IAMTVTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VideoFrequency(this: *mut core::ffi::c_void, lfreq: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + unsafe extern "system" fn VideoFrequency(this: *mut core::ffi::c_void, lfreq: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVTuner_Impl::VideoFrequency(this) { Ok(ok__) => { @@ -4328,10 +3209,7 @@ impl IAMTVTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioFrequency(this: *mut core::ffi::c_void, lfreq: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTVTuner_Impl, - { + unsafe extern "system" fn AudioFrequency(this: *mut core::ffi::c_void, lfreq: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTVTuner_Impl::AudioFrequency(this) { Ok(ok__) => { @@ -4360,7 +3238,7 @@ impl IAMTVTuner_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAMTimecodeDisplay_Impl: Sized { +pub trait IAMTimecodeDisplay_Impl: Sized + windows_core::IUnknownImpl { fn GetTCDisplayEnable(&self) -> windows_core::Result; fn SetTCDisplayEnable(&self, state: i32) -> windows_core::Result<()>; fn GetTCDisplay(&self, param: i32) -> windows_core::Result; @@ -4368,14 +3246,8 @@ pub trait IAMTimecodeDisplay_Impl: Sized { } impl windows_core::RuntimeName for IAMTimecodeDisplay {} impl IAMTimecodeDisplay_Vtbl { - pub const fn new() -> IAMTimecodeDisplay_Vtbl - where - Identity: IAMTimecodeDisplay_Impl, - { - unsafe extern "system" fn GetTCDisplayEnable(this: *mut core::ffi::c_void, pstate: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeDisplay_Impl, - { + pub const fn new() -> IAMTimecodeDisplay_Vtbl { + unsafe extern "system" fn GetTCDisplayEnable(this: *mut core::ffi::c_void, pstate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTimecodeDisplay_Impl::GetTCDisplayEnable(this) { Ok(ok__) => { @@ -4385,17 +3257,11 @@ impl IAMTimecodeDisplay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTCDisplayEnable(this: *mut core::ffi::c_void, state: i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeDisplay_Impl, - { + unsafe extern "system" fn SetTCDisplayEnable(this: *mut core::ffi::c_void, state: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTimecodeDisplay_Impl::SetTCDisplayEnable(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn GetTCDisplay(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeDisplay_Impl, - { + unsafe extern "system" fn GetTCDisplay(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTimecodeDisplay_Impl::GetTCDisplay(this, core::mem::transmute_copy(¶m)) { Ok(ok__) => { @@ -4405,10 +3271,7 @@ impl IAMTimecodeDisplay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTCDisplay(this: *mut core::ffi::c_void, param: i32, value: i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeDisplay_Impl, - { + unsafe extern "system" fn SetTCDisplay(this: *mut core::ffi::c_void, param: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTimecodeDisplay_Impl::SetTCDisplay(this, core::mem::transmute_copy(¶m), core::mem::transmute_copy(&value)).into() } @@ -4424,7 +3287,7 @@ impl IAMTimecodeDisplay_Vtbl { iid == &::IID } } -pub trait IAMTimecodeGenerator_Impl: Sized { +pub trait IAMTimecodeGenerator_Impl: Sized + windows_core::IUnknownImpl { fn GetTCGMode(&self, param: i32) -> windows_core::Result; fn SetTCGMode(&self, param: i32, value: i32) -> windows_core::Result<()>; fn SetVITCLine(&self, line: i32) -> windows_core::Result<()>; @@ -4434,14 +3297,8 @@ pub trait IAMTimecodeGenerator_Impl: Sized { } impl windows_core::RuntimeName for IAMTimecodeGenerator {} impl IAMTimecodeGenerator_Vtbl { - pub const fn new() -> IAMTimecodeGenerator_Vtbl - where - Identity: IAMTimecodeGenerator_Impl, - { - unsafe extern "system" fn GetTCGMode(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeGenerator_Impl, - { + pub const fn new() -> IAMTimecodeGenerator_Vtbl { + unsafe extern "system" fn GetTCGMode(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTimecodeGenerator_Impl::GetTCGMode(this, core::mem::transmute_copy(¶m)) { Ok(ok__) => { @@ -4451,24 +3308,15 @@ impl IAMTimecodeGenerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTCGMode(this: *mut core::ffi::c_void, param: i32, value: i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeGenerator_Impl, - { + unsafe extern "system" fn SetTCGMode(this: *mut core::ffi::c_void, param: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTimecodeGenerator_Impl::SetTCGMode(this, core::mem::transmute_copy(¶m), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetVITCLine(this: *mut core::ffi::c_void, line: i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeGenerator_Impl, - { + unsafe extern "system" fn SetVITCLine(this: *mut core::ffi::c_void, line: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTimecodeGenerator_Impl::SetVITCLine(this, core::mem::transmute_copy(&line)).into() } - unsafe extern "system" fn VITCLine(this: *mut core::ffi::c_void, pline: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeGenerator_Impl, - { + unsafe extern "system" fn VITCLine(this: *mut core::ffi::c_void, pline: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTimecodeGenerator_Impl::VITCLine(this) { Ok(ok__) => { @@ -4478,17 +3326,11 @@ impl IAMTimecodeGenerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTimecode(this: *mut core::ffi::c_void, ptimecodesample: *const super::TIMECODE_SAMPLE) -> windows_core::HRESULT - where - Identity: IAMTimecodeGenerator_Impl, - { + unsafe extern "system" fn SetTimecode(this: *mut core::ffi::c_void, ptimecodesample: *const super::TIMECODE_SAMPLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTimecodeGenerator_Impl::SetTimecode(this, core::mem::transmute_copy(&ptimecodesample)).into() } - unsafe extern "system" fn GetTimecode(this: *mut core::ffi::c_void, ptimecodesample: *mut super::TIMECODE_SAMPLE) -> windows_core::HRESULT - where - Identity: IAMTimecodeGenerator_Impl, - { + unsafe extern "system" fn GetTimecode(this: *mut core::ffi::c_void, ptimecodesample: *mut super::TIMECODE_SAMPLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTimecodeGenerator_Impl::GetTimecode(this, core::mem::transmute_copy(&ptimecodesample)).into() } @@ -4506,7 +3348,7 @@ impl IAMTimecodeGenerator_Vtbl { iid == &::IID } } -pub trait IAMTimecodeReader_Impl: Sized { +pub trait IAMTimecodeReader_Impl: Sized + windows_core::IUnknownImpl { fn GetTCRMode(&self, param: i32) -> windows_core::Result; fn SetTCRMode(&self, param: i32, value: i32) -> windows_core::Result<()>; fn SetVITCLine(&self, line: i32) -> windows_core::Result<()>; @@ -4515,14 +3357,8 @@ pub trait IAMTimecodeReader_Impl: Sized { } impl windows_core::RuntimeName for IAMTimecodeReader {} impl IAMTimecodeReader_Vtbl { - pub const fn new() -> IAMTimecodeReader_Vtbl - where - Identity: IAMTimecodeReader_Impl, - { - unsafe extern "system" fn GetTCRMode(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeReader_Impl, - { + pub const fn new() -> IAMTimecodeReader_Vtbl { + unsafe extern "system" fn GetTCRMode(this: *mut core::ffi::c_void, param: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTimecodeReader_Impl::GetTCRMode(this, core::mem::transmute_copy(¶m)) { Ok(ok__) => { @@ -4532,24 +3368,15 @@ impl IAMTimecodeReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTCRMode(this: *mut core::ffi::c_void, param: i32, value: i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeReader_Impl, - { + unsafe extern "system" fn SetTCRMode(this: *mut core::ffi::c_void, param: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTimecodeReader_Impl::SetTCRMode(this, core::mem::transmute_copy(¶m), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetVITCLine(this: *mut core::ffi::c_void, line: i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeReader_Impl, - { + unsafe extern "system" fn SetVITCLine(this: *mut core::ffi::c_void, line: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTimecodeReader_Impl::SetVITCLine(this, core::mem::transmute_copy(&line)).into() } - unsafe extern "system" fn VITCLine(this: *mut core::ffi::c_void, pline: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTimecodeReader_Impl, - { + unsafe extern "system" fn VITCLine(this: *mut core::ffi::c_void, pline: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTimecodeReader_Impl::VITCLine(this) { Ok(ok__) => { @@ -4559,10 +3386,7 @@ impl IAMTimecodeReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimecode(this: *mut core::ffi::c_void, ptimecodesample: *mut super::TIMECODE_SAMPLE) -> windows_core::HRESULT - where - Identity: IAMTimecodeReader_Impl, - { + unsafe extern "system" fn GetTimecode(this: *mut core::ffi::c_void, ptimecodesample: *mut super::TIMECODE_SAMPLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTimecodeReader_Impl::GetTimecode(this, core::mem::transmute_copy(&ptimecodesample)).into() } @@ -4579,7 +3403,7 @@ impl IAMTimecodeReader_Vtbl { iid == &::IID } } -pub trait IAMTuner_Impl: Sized { +pub trait IAMTuner_Impl: Sized + windows_core::IUnknownImpl { fn put_Channel(&self, lchannel: i32, lvideosubchannel: i32, laudiosubchannel: i32) -> windows_core::Result<()>; fn get_Channel(&self, plchannel: *mut i32, plvideosubchannel: *mut i32, plaudiosubchannel: *mut i32) -> windows_core::Result<()>; fn ChannelMinMax(&self, lchannelmin: *mut i32, lchannelmax: *mut i32) -> windows_core::Result<()>; @@ -4598,42 +3422,24 @@ pub trait IAMTuner_Impl: Sized { } impl windows_core::RuntimeName for IAMTuner {} impl IAMTuner_Vtbl { - pub const fn new() -> IAMTuner_Vtbl - where - Identity: IAMTuner_Impl, - { - unsafe extern "system" fn put_Channel(this: *mut core::ffi::c_void, lchannel: i32, lvideosubchannel: i32, laudiosubchannel: i32) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + pub const fn new() -> IAMTuner_Vtbl { + unsafe extern "system" fn put_Channel(this: *mut core::ffi::c_void, lchannel: i32, lvideosubchannel: i32, laudiosubchannel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTuner_Impl::put_Channel(this, core::mem::transmute_copy(&lchannel), core::mem::transmute_copy(&lvideosubchannel), core::mem::transmute_copy(&laudiosubchannel)).into() } - unsafe extern "system" fn get_Channel(this: *mut core::ffi::c_void, plchannel: *mut i32, plvideosubchannel: *mut i32, plaudiosubchannel: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn get_Channel(this: *mut core::ffi::c_void, plchannel: *mut i32, plvideosubchannel: *mut i32, plaudiosubchannel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTuner_Impl::get_Channel(this, core::mem::transmute_copy(&plchannel), core::mem::transmute_copy(&plvideosubchannel), core::mem::transmute_copy(&plaudiosubchannel)).into() } - unsafe extern "system" fn ChannelMinMax(this: *mut core::ffi::c_void, lchannelmin: *mut i32, lchannelmax: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn ChannelMinMax(this: *mut core::ffi::c_void, lchannelmin: *mut i32, lchannelmax: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTuner_Impl::ChannelMinMax(this, core::mem::transmute_copy(&lchannelmin), core::mem::transmute_copy(&lchannelmax)).into() } - unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, lcountrycode: i32) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, lcountrycode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTuner_Impl::SetCountryCode(this, core::mem::transmute_copy(&lcountrycode)).into() } - unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, plcountrycode: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, plcountrycode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTuner_Impl::CountryCode(this) { Ok(ok__) => { @@ -4643,17 +3449,11 @@ impl IAMTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTuningSpace(this: *mut core::ffi::c_void, ltuningspace: i32) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn SetTuningSpace(this: *mut core::ffi::c_void, ltuningspace: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTuner_Impl::SetTuningSpace(this, core::mem::transmute_copy(<uningspace)).into() } - unsafe extern "system" fn TuningSpace(this: *mut core::ffi::c_void, pltuningspace: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn TuningSpace(this: *mut core::ffi::c_void, pltuningspace: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTuner_Impl::TuningSpace(this) { Ok(ok__) => { @@ -4663,24 +3463,15 @@ impl IAMTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Logon(this: *mut core::ffi::c_void, hcurrentuser: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn Logon(this: *mut core::ffi::c_void, hcurrentuser: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTuner_Impl::Logon(this, core::mem::transmute_copy(&hcurrentuser)).into() } - unsafe extern "system" fn Logout(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn Logout(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTuner_Impl::Logout(this).into() } - unsafe extern "system" fn SignalPresent(this: *mut core::ffi::c_void, plsignalstrength: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn SignalPresent(this: *mut core::ffi::c_void, plsignalstrength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTuner_Impl::SignalPresent(this) { Ok(ok__) => { @@ -4690,17 +3481,11 @@ impl IAMTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, lmode: AMTunerModeType) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, lmode: AMTunerModeType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTuner_Impl::SetMode(this, core::mem::transmute_copy(&lmode)).into() } - unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, plmode: *mut AMTunerModeType) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, plmode: *mut AMTunerModeType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTuner_Impl::Mode(this) { Ok(ok__) => { @@ -4710,10 +3495,7 @@ impl IAMTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAvailableModes(this: *mut core::ffi::c_void, plmodes: *mut i32) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn GetAvailableModes(this: *mut core::ffi::c_void, plmodes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMTuner_Impl::GetAvailableModes(this) { Ok(ok__) => { @@ -4723,17 +3505,11 @@ impl IAMTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterNotificationCallBack(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void, levents: i32) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn RegisterNotificationCallBack(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void, levents: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTuner_Impl::RegisterNotificationCallBack(this, windows_core::from_raw_borrowed(&pnotify), core::mem::transmute_copy(&levents)).into() } - unsafe extern "system" fn UnRegisterNotificationCallBack(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMTuner_Impl, - { + unsafe extern "system" fn UnRegisterNotificationCallBack(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTuner_Impl::UnRegisterNotificationCallBack(this, windows_core::from_raw_borrowed(&pnotify)).into() } @@ -4760,19 +3536,13 @@ impl IAMTuner_Vtbl { iid == &::IID } } -pub trait IAMTunerNotification_Impl: Sized { +pub trait IAMTunerNotification_Impl: Sized + windows_core::IUnknownImpl { fn OnEvent(&self, event: AMTunerEventType) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMTunerNotification {} impl IAMTunerNotification_Vtbl { - pub const fn new() -> IAMTunerNotification_Vtbl - where - Identity: IAMTunerNotification_Impl, - { - unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, event: AMTunerEventType) -> windows_core::HRESULT - where - Identity: IAMTunerNotification_Impl, - { + pub const fn new() -> IAMTunerNotification_Vtbl { + unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, event: AMTunerEventType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMTunerNotification_Impl::OnEvent(this, core::mem::transmute_copy(&event)).into() } @@ -4782,35 +3552,23 @@ impl IAMTunerNotification_Vtbl { iid == &::IID } } -pub trait IAMVfwCaptureDialogs_Impl: Sized { +pub trait IAMVfwCaptureDialogs_Impl: Sized + windows_core::IUnknownImpl { fn HasDialog(&self, idialog: i32) -> windows_core::Result<()>; fn ShowDialog(&self, idialog: i32, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn SendDriverMessage(&self, idialog: i32, umsg: i32, dw1: i32, dw2: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMVfwCaptureDialogs {} impl IAMVfwCaptureDialogs_Vtbl { - pub const fn new() -> IAMVfwCaptureDialogs_Vtbl - where - Identity: IAMVfwCaptureDialogs_Impl, - { - unsafe extern "system" fn HasDialog(this: *mut core::ffi::c_void, idialog: i32) -> windows_core::HRESULT - where - Identity: IAMVfwCaptureDialogs_Impl, - { + pub const fn new() -> IAMVfwCaptureDialogs_Vtbl { + unsafe extern "system" fn HasDialog(this: *mut core::ffi::c_void, idialog: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVfwCaptureDialogs_Impl::HasDialog(this, core::mem::transmute_copy(&idialog)).into() } - unsafe extern "system" fn ShowDialog(this: *mut core::ffi::c_void, idialog: i32, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IAMVfwCaptureDialogs_Impl, - { + unsafe extern "system" fn ShowDialog(this: *mut core::ffi::c_void, idialog: i32, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVfwCaptureDialogs_Impl::ShowDialog(this, core::mem::transmute_copy(&idialog), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn SendDriverMessage(this: *mut core::ffi::c_void, idialog: i32, umsg: i32, dw1: i32, dw2: i32) -> windows_core::HRESULT - where - Identity: IAMVfwCaptureDialogs_Impl, - { + unsafe extern "system" fn SendDriverMessage(this: *mut core::ffi::c_void, idialog: i32, umsg: i32, dw1: i32, dw2: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVfwCaptureDialogs_Impl::SendDriverMessage(this, core::mem::transmute_copy(&idialog), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&dw1), core::mem::transmute_copy(&dw2)).into() } @@ -4825,7 +3583,7 @@ impl IAMVfwCaptureDialogs_Vtbl { iid == &::IID } } -pub trait IAMVfwCompressDialogs_Impl: Sized { +pub trait IAMVfwCompressDialogs_Impl: Sized + windows_core::IUnknownImpl { fn ShowDialog(&self, idialog: i32, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn GetState(&self, pstate: *mut core::ffi::c_void, pcbstate: *mut i32) -> windows_core::Result<()>; fn SetState(&self, pstate: *const core::ffi::c_void, cbstate: i32) -> windows_core::Result<()>; @@ -4833,35 +3591,20 @@ pub trait IAMVfwCompressDialogs_Impl: Sized { } impl windows_core::RuntimeName for IAMVfwCompressDialogs {} impl IAMVfwCompressDialogs_Vtbl { - pub const fn new() -> IAMVfwCompressDialogs_Vtbl - where - Identity: IAMVfwCompressDialogs_Impl, - { - unsafe extern "system" fn ShowDialog(this: *mut core::ffi::c_void, idialog: i32, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IAMVfwCompressDialogs_Impl, - { + pub const fn new() -> IAMVfwCompressDialogs_Vtbl { + unsafe extern "system" fn ShowDialog(this: *mut core::ffi::c_void, idialog: i32, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVfwCompressDialogs_Impl::ShowDialog(this, core::mem::transmute_copy(&idialog), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void, pcbstate: *mut i32) -> windows_core::HRESULT - where - Identity: IAMVfwCompressDialogs_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void, pcbstate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVfwCompressDialogs_Impl::GetState(this, core::mem::transmute_copy(&pstate), core::mem::transmute_copy(&pcbstate)).into() } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, pstate: *const core::ffi::c_void, cbstate: i32) -> windows_core::HRESULT - where - Identity: IAMVfwCompressDialogs_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, pstate: *const core::ffi::c_void, cbstate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVfwCompressDialogs_Impl::SetState(this, core::mem::transmute_copy(&pstate), core::mem::transmute_copy(&cbstate)).into() } - unsafe extern "system" fn SendDriverMessage(this: *mut core::ffi::c_void, umsg: i32, dw1: i32, dw2: i32) -> windows_core::HRESULT - where - Identity: IAMVfwCompressDialogs_Impl, - { + unsafe extern "system" fn SendDriverMessage(this: *mut core::ffi::c_void, umsg: i32, dw1: i32, dw2: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVfwCompressDialogs_Impl::SendDriverMessage(this, core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&dw1), core::mem::transmute_copy(&dw2)).into() } @@ -4878,7 +3621,7 @@ impl IAMVfwCompressDialogs_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub trait IAMVideoAccelerator_Impl: Sized { +pub trait IAMVideoAccelerator_Impl: Sized + windows_core::IUnknownImpl { fn GetVideoAcceleratorGUIDs(&self, pdwnumguidssupported: *mut u32, pguidssupported: *mut windows_core::GUID) -> windows_core::Result<()>; fn GetUncompFormatsSupported(&self, pguid: *const windows_core::GUID, pdwnumformatssupported: *mut u32, pformatssupported: *mut super::super::Graphics::DirectDraw::DDPIXELFORMAT) -> windows_core::Result<()>; fn GetInternalMemInfo(&self, pguid: *const windows_core::GUID, pamvauncompdatainfo: *const AMVAUncompDataInfo, pamvainternalmeminfo: *mut AMVAInternalMemInfo) -> windows_core::Result<()>; @@ -4896,91 +3639,52 @@ pub trait IAMVideoAccelerator_Impl: Sized { impl windows_core::RuntimeName for IAMVideoAccelerator {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IAMVideoAccelerator_Vtbl { - pub const fn new() -> IAMVideoAccelerator_Vtbl - where - Identity: IAMVideoAccelerator_Impl, - { - unsafe extern "system" fn GetVideoAcceleratorGUIDs(this: *mut core::ffi::c_void, pdwnumguidssupported: *mut u32, pguidssupported: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + pub const fn new() -> IAMVideoAccelerator_Vtbl { + unsafe extern "system" fn GetVideoAcceleratorGUIDs(this: *mut core::ffi::c_void, pdwnumguidssupported: *mut u32, pguidssupported: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::GetVideoAcceleratorGUIDs(this, core::mem::transmute_copy(&pdwnumguidssupported), core::mem::transmute_copy(&pguidssupported)).into() } - unsafe extern "system" fn GetUncompFormatsSupported(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, pdwnumformatssupported: *mut u32, pformatssupported: *mut super::super::Graphics::DirectDraw::DDPIXELFORMAT) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn GetUncompFormatsSupported(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, pdwnumformatssupported: *mut u32, pformatssupported: *mut super::super::Graphics::DirectDraw::DDPIXELFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::GetUncompFormatsSupported(this, core::mem::transmute_copy(&pguid), core::mem::transmute_copy(&pdwnumformatssupported), core::mem::transmute_copy(&pformatssupported)).into() } - unsafe extern "system" fn GetInternalMemInfo(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, pamvauncompdatainfo: *const AMVAUncompDataInfo, pamvainternalmeminfo: *mut AMVAInternalMemInfo) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn GetInternalMemInfo(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, pamvauncompdatainfo: *const AMVAUncompDataInfo, pamvainternalmeminfo: *mut AMVAInternalMemInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::GetInternalMemInfo(this, core::mem::transmute_copy(&pguid), core::mem::transmute_copy(&pamvauncompdatainfo), core::mem::transmute_copy(&pamvainternalmeminfo)).into() } - unsafe extern "system" fn GetCompBufferInfo(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, pamvauncompdatainfo: *const AMVAUncompDataInfo, pdwnumtypescompbuffers: *mut u32, pamvacompbufferinfo: *mut AMVACompBufferInfo) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn GetCompBufferInfo(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, pamvauncompdatainfo: *const AMVAUncompDataInfo, pdwnumtypescompbuffers: *mut u32, pamvacompbufferinfo: *mut AMVACompBufferInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::GetCompBufferInfo(this, core::mem::transmute_copy(&pguid), core::mem::transmute_copy(&pamvauncompdatainfo), core::mem::transmute_copy(&pdwnumtypescompbuffers), core::mem::transmute_copy(&pamvacompbufferinfo)).into() } - unsafe extern "system" fn GetInternalCompBufferInfo(this: *mut core::ffi::c_void, pdwnumtypescompbuffers: *mut u32, pamvacompbufferinfo: *mut AMVACompBufferInfo) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn GetInternalCompBufferInfo(this: *mut core::ffi::c_void, pdwnumtypescompbuffers: *mut u32, pamvacompbufferinfo: *mut AMVACompBufferInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::GetInternalCompBufferInfo(this, core::mem::transmute_copy(&pdwnumtypescompbuffers), core::mem::transmute_copy(&pamvacompbufferinfo)).into() } - unsafe extern "system" fn BeginFrame(this: *mut core::ffi::c_void, amvabeginframeinfo: *const AMVABeginFrameInfo) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn BeginFrame(this: *mut core::ffi::c_void, amvabeginframeinfo: *const AMVABeginFrameInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::BeginFrame(this, core::mem::transmute_copy(&amvabeginframeinfo)).into() } - unsafe extern "system" fn EndFrame(this: *mut core::ffi::c_void, pendframeinfo: *const AMVAEndFrameInfo) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn EndFrame(this: *mut core::ffi::c_void, pendframeinfo: *const AMVAEndFrameInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::EndFrame(this, core::mem::transmute_copy(&pendframeinfo)).into() } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, dwtypeindex: u32, dwbufferindex: u32, breadonly: super::super::Foundation::BOOL, ppbuffer: *mut *mut core::ffi::c_void, lpstride: *mut i32) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, dwtypeindex: u32, dwbufferindex: u32, breadonly: super::super::Foundation::BOOL, ppbuffer: *mut *mut core::ffi::c_void, lpstride: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::GetBuffer(this, core::mem::transmute_copy(&dwtypeindex), core::mem::transmute_copy(&dwbufferindex), core::mem::transmute_copy(&breadonly), core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&lpstride)).into() } - unsafe extern "system" fn ReleaseBuffer(this: *mut core::ffi::c_void, dwtypeindex: u32, dwbufferindex: u32) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn ReleaseBuffer(this: *mut core::ffi::c_void, dwtypeindex: u32, dwbufferindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::ReleaseBuffer(this, core::mem::transmute_copy(&dwtypeindex), core::mem::transmute_copy(&dwbufferindex)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, dwfunction: u32, lpprivateinputdata: *const core::ffi::c_void, cbprivateinputdata: u32, lpprivateoutputdat: *const core::ffi::c_void, cbprivateoutputdata: u32, dwnumbuffers: u32, pamvabufferinfo: *const AMVABUFFERINFO) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, dwfunction: u32, lpprivateinputdata: *const core::ffi::c_void, cbprivateinputdata: u32, lpprivateoutputdat: *const core::ffi::c_void, cbprivateoutputdata: u32, dwnumbuffers: u32, pamvabufferinfo: *const AMVABUFFERINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::Execute(this, core::mem::transmute_copy(&dwfunction), core::mem::transmute_copy(&lpprivateinputdata), core::mem::transmute_copy(&cbprivateinputdata), core::mem::transmute_copy(&lpprivateoutputdat), core::mem::transmute_copy(&cbprivateoutputdata), core::mem::transmute_copy(&dwnumbuffers), core::mem::transmute_copy(&pamvabufferinfo)).into() } - unsafe extern "system" fn QueryRenderStatus(this: *mut core::ffi::c_void, dwtypeindex: u32, dwbufferindex: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn QueryRenderStatus(this: *mut core::ffi::c_void, dwtypeindex: u32, dwbufferindex: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::QueryRenderStatus(this, core::mem::transmute_copy(&dwtypeindex), core::mem::transmute_copy(&dwbufferindex), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn DisplayFrame(this: *mut core::ffi::c_void, dwfliptoindex: u32, pmediasample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMVideoAccelerator_Impl, - { + unsafe extern "system" fn DisplayFrame(this: *mut core::ffi::c_void, dwfliptoindex: u32, pmediasample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::DisplayFrame(this, core::mem::transmute_copy(&dwfliptoindex), windows_core::from_raw_borrowed(&pmediasample)).into() } @@ -5005,7 +3709,7 @@ impl IAMVideoAccelerator_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub trait IAMVideoAcceleratorNotify_Impl: Sized { +pub trait IAMVideoAcceleratorNotify_Impl: Sized + windows_core::IUnknownImpl { fn GetUncompSurfacesInfo(&self, pguid: *const windows_core::GUID, puncompbufferinfo: *mut AMVAUncompBufferInfo) -> windows_core::Result<()>; fn SetUncompSurfacesInfo(&self, dwactualuncompsurfacesallocated: u32) -> windows_core::Result<()>; fn GetCreateVideoAcceleratorData(&self, pguid: *const windows_core::GUID, pdwsizemiscdata: *mut u32, ppmiscdata: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -5014,28 +3718,16 @@ pub trait IAMVideoAcceleratorNotify_Impl: Sized { impl windows_core::RuntimeName for IAMVideoAcceleratorNotify {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IAMVideoAcceleratorNotify_Vtbl { - pub const fn new() -> IAMVideoAcceleratorNotify_Vtbl - where - Identity: IAMVideoAcceleratorNotify_Impl, - { - unsafe extern "system" fn GetUncompSurfacesInfo(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, puncompbufferinfo: *mut AMVAUncompBufferInfo) -> windows_core::HRESULT - where - Identity: IAMVideoAcceleratorNotify_Impl, - { + pub const fn new() -> IAMVideoAcceleratorNotify_Vtbl { + unsafe extern "system" fn GetUncompSurfacesInfo(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, puncompbufferinfo: *mut AMVAUncompBufferInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAcceleratorNotify_Impl::GetUncompSurfacesInfo(this, core::mem::transmute_copy(&pguid), core::mem::transmute_copy(&puncompbufferinfo)).into() } - unsafe extern "system" fn SetUncompSurfacesInfo(this: *mut core::ffi::c_void, dwactualuncompsurfacesallocated: u32) -> windows_core::HRESULT - where - Identity: IAMVideoAcceleratorNotify_Impl, - { + unsafe extern "system" fn SetUncompSurfacesInfo(this: *mut core::ffi::c_void, dwactualuncompsurfacesallocated: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAcceleratorNotify_Impl::SetUncompSurfacesInfo(this, core::mem::transmute_copy(&dwactualuncompsurfacesallocated)).into() } - unsafe extern "system" fn GetCreateVideoAcceleratorData(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, pdwsizemiscdata: *mut u32, ppmiscdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMVideoAcceleratorNotify_Impl, - { + unsafe extern "system" fn GetCreateVideoAcceleratorData(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, pdwsizemiscdata: *mut u32, ppmiscdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAcceleratorNotify_Impl::GetCreateVideoAcceleratorData(this, core::mem::transmute_copy(&pguid), core::mem::transmute_copy(&pdwsizemiscdata), core::mem::transmute_copy(&ppmiscdata)).into() } @@ -5050,7 +3742,7 @@ impl IAMVideoAcceleratorNotify_Vtbl { iid == &::IID } } -pub trait IAMVideoCompression_Impl: Sized { +pub trait IAMVideoCompression_Impl: Sized + windows_core::IUnknownImpl { fn SetKeyFrameRate(&self, keyframerate: i32) -> windows_core::Result<()>; fn KeyFrameRate(&self) -> windows_core::Result; fn SetPFramesPerKeyFrame(&self, pframesperkeyframe: i32) -> windows_core::Result<()>; @@ -5065,21 +3757,12 @@ pub trait IAMVideoCompression_Impl: Sized { } impl windows_core::RuntimeName for IAMVideoCompression {} impl IAMVideoCompression_Vtbl { - pub const fn new() -> IAMVideoCompression_Vtbl - where - Identity: IAMVideoCompression_Impl, - { - unsafe extern "system" fn SetKeyFrameRate(this: *mut core::ffi::c_void, keyframerate: i32) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + pub const fn new() -> IAMVideoCompression_Vtbl { + unsafe extern "system" fn SetKeyFrameRate(this: *mut core::ffi::c_void, keyframerate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoCompression_Impl::SetKeyFrameRate(this, core::mem::transmute_copy(&keyframerate)).into() } - unsafe extern "system" fn KeyFrameRate(this: *mut core::ffi::c_void, pkeyframerate: *mut i32) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + unsafe extern "system" fn KeyFrameRate(this: *mut core::ffi::c_void, pkeyframerate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMVideoCompression_Impl::KeyFrameRate(this) { Ok(ok__) => { @@ -5089,17 +3772,11 @@ impl IAMVideoCompression_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPFramesPerKeyFrame(this: *mut core::ffi::c_void, pframesperkeyframe: i32) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + unsafe extern "system" fn SetPFramesPerKeyFrame(this: *mut core::ffi::c_void, pframesperkeyframe: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoCompression_Impl::SetPFramesPerKeyFrame(this, core::mem::transmute_copy(&pframesperkeyframe)).into() } - unsafe extern "system" fn PFramesPerKeyFrame(this: *mut core::ffi::c_void, ppframesperkeyframe: *mut i32) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + unsafe extern "system" fn PFramesPerKeyFrame(this: *mut core::ffi::c_void, ppframesperkeyframe: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMVideoCompression_Impl::PFramesPerKeyFrame(this) { Ok(ok__) => { @@ -5109,17 +3786,11 @@ impl IAMVideoCompression_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuality(this: *mut core::ffi::c_void, quality: f64) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + unsafe extern "system" fn SetQuality(this: *mut core::ffi::c_void, quality: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoCompression_Impl::SetQuality(this, core::mem::transmute_copy(&quality)).into() } - unsafe extern "system" fn Quality(this: *mut core::ffi::c_void, pquality: *mut f64) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + unsafe extern "system" fn Quality(this: *mut core::ffi::c_void, pquality: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMVideoCompression_Impl::Quality(this) { Ok(ok__) => { @@ -5129,17 +3800,11 @@ impl IAMVideoCompression_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWindowSize(this: *mut core::ffi::c_void, windowsize: u64) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + unsafe extern "system" fn SetWindowSize(this: *mut core::ffi::c_void, windowsize: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoCompression_Impl::SetWindowSize(this, core::mem::transmute_copy(&windowsize)).into() } - unsafe extern "system" fn WindowSize(this: *mut core::ffi::c_void, pwindowsize: *mut u64) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + unsafe extern "system" fn WindowSize(this: *mut core::ffi::c_void, pwindowsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMVideoCompression_Impl::WindowSize(this) { Ok(ok__) => { @@ -5149,24 +3814,15 @@ impl IAMVideoCompression_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pszversion: windows_core::PWSTR, pcbversion: *mut i32, pszdescription: windows_core::PWSTR, pcbdescription: *mut i32, pdefaultkeyframerate: *mut i32, pdefaultpframesperkey: *mut i32, pdefaultquality: *mut f64, pcapabilities: *mut i32) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pszversion: windows_core::PWSTR, pcbversion: *mut i32, pszdescription: windows_core::PWSTR, pcbdescription: *mut i32, pdefaultkeyframerate: *mut i32, pdefaultpframesperkey: *mut i32, pdefaultquality: *mut f64, pcapabilities: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoCompression_Impl::GetInfo(this, core::mem::transmute_copy(&pszversion), core::mem::transmute_copy(&pcbversion), core::mem::transmute_copy(&pszdescription), core::mem::transmute_copy(&pcbdescription), core::mem::transmute_copy(&pdefaultkeyframerate), core::mem::transmute_copy(&pdefaultpframesperkey), core::mem::transmute_copy(&pdefaultquality), core::mem::transmute_copy(&pcapabilities)).into() } - unsafe extern "system" fn OverrideKeyFrame(this: *mut core::ffi::c_void, framenumber: i32) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + unsafe extern "system" fn OverrideKeyFrame(this: *mut core::ffi::c_void, framenumber: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoCompression_Impl::OverrideKeyFrame(this, core::mem::transmute_copy(&framenumber)).into() } - unsafe extern "system" fn OverrideFrameSize(this: *mut core::ffi::c_void, framenumber: i32, size: i32) -> windows_core::HRESULT - where - Identity: IAMVideoCompression_Impl, - { + unsafe extern "system" fn OverrideFrameSize(this: *mut core::ffi::c_void, framenumber: i32, size: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoCompression_Impl::OverrideFrameSize(this, core::mem::transmute_copy(&framenumber), core::mem::transmute_copy(&size)).into() } @@ -5189,7 +3845,7 @@ impl IAMVideoCompression_Vtbl { iid == &::IID } } -pub trait IAMVideoControl_Impl: Sized { +pub trait IAMVideoControl_Impl: Sized + windows_core::IUnknownImpl { fn GetCaps(&self, ppin: Option<&IPin>) -> windows_core::Result; fn SetMode(&self, ppin: Option<&IPin>, mode: i32) -> windows_core::Result<()>; fn GetMode(&self, ppin: Option<&IPin>) -> windows_core::Result; @@ -5199,14 +3855,8 @@ pub trait IAMVideoControl_Impl: Sized { } impl windows_core::RuntimeName for IAMVideoControl {} impl IAMVideoControl_Vtbl { - pub const fn new() -> IAMVideoControl_Vtbl - where - Identity: IAMVideoControl_Impl, - { - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, pcapsflags: *mut i32) -> windows_core::HRESULT - where - Identity: IAMVideoControl_Impl, - { + pub const fn new() -> IAMVideoControl_Vtbl { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, pcapsflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMVideoControl_Impl::GetCaps(this, windows_core::from_raw_borrowed(&ppin)) { Ok(ok__) => { @@ -5216,17 +3866,11 @@ impl IAMVideoControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT - where - Identity: IAMVideoControl_Impl, - { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoControl_Impl::SetMode(this, windows_core::from_raw_borrowed(&ppin), core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, mode: *mut i32) -> windows_core::HRESULT - where - Identity: IAMVideoControl_Impl, - { + unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, mode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMVideoControl_Impl::GetMode(this, windows_core::from_raw_borrowed(&ppin)) { Ok(ok__) => { @@ -5236,10 +3880,7 @@ impl IAMVideoControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentActualFrameRate(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, actualframerate: *mut i64) -> windows_core::HRESULT - where - Identity: IAMVideoControl_Impl, - { + unsafe extern "system" fn GetCurrentActualFrameRate(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, actualframerate: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMVideoControl_Impl::GetCurrentActualFrameRate(this, windows_core::from_raw_borrowed(&ppin)) { Ok(ok__) => { @@ -5249,10 +3890,7 @@ impl IAMVideoControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxAvailableFrameRate(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, iindex: i32, dimensions: super::super::Foundation::SIZE, maxavailableframerate: *mut i64) -> windows_core::HRESULT - where - Identity: IAMVideoControl_Impl, - { + unsafe extern "system" fn GetMaxAvailableFrameRate(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, iindex: i32, dimensions: super::super::Foundation::SIZE, maxavailableframerate: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMVideoControl_Impl::GetMaxAvailableFrameRate(this, windows_core::from_raw_borrowed(&ppin), core::mem::transmute_copy(&iindex), core::mem::transmute(&dimensions)) { Ok(ok__) => { @@ -5262,10 +3900,7 @@ impl IAMVideoControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrameRateList(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, iindex: i32, dimensions: super::super::Foundation::SIZE, listsize: *mut i32, framerates: *mut *mut i64) -> windows_core::HRESULT - where - Identity: IAMVideoControl_Impl, - { + unsafe extern "system" fn GetFrameRateList(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, iindex: i32, dimensions: super::super::Foundation::SIZE, listsize: *mut i32, framerates: *mut *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoControl_Impl::GetFrameRateList(this, windows_core::from_raw_borrowed(&ppin), core::mem::transmute_copy(&iindex), core::mem::transmute(&dimensions), core::mem::transmute_copy(&listsize), core::mem::transmute_copy(&framerates)).into() } @@ -5283,20 +3918,14 @@ impl IAMVideoControl_Vtbl { iid == &::IID } } -pub trait IAMVideoDecimationProperties_Impl: Sized { +pub trait IAMVideoDecimationProperties_Impl: Sized + windows_core::IUnknownImpl { fn QueryDecimationUsage(&self) -> windows_core::Result; fn SetDecimationUsage(&self, usage: DECIMATION_USAGE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMVideoDecimationProperties {} impl IAMVideoDecimationProperties_Vtbl { - pub const fn new() -> IAMVideoDecimationProperties_Vtbl - where - Identity: IAMVideoDecimationProperties_Impl, - { - unsafe extern "system" fn QueryDecimationUsage(this: *mut core::ffi::c_void, lpusage: *mut DECIMATION_USAGE) -> windows_core::HRESULT - where - Identity: IAMVideoDecimationProperties_Impl, - { + pub const fn new() -> IAMVideoDecimationProperties_Vtbl { + unsafe extern "system" fn QueryDecimationUsage(this: *mut core::ffi::c_void, lpusage: *mut DECIMATION_USAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMVideoDecimationProperties_Impl::QueryDecimationUsage(this) { Ok(ok__) => { @@ -5306,10 +3935,7 @@ impl IAMVideoDecimationProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDecimationUsage(this: *mut core::ffi::c_void, usage: DECIMATION_USAGE) -> windows_core::HRESULT - where - Identity: IAMVideoDecimationProperties_Impl, - { + unsafe extern "system" fn SetDecimationUsage(this: *mut core::ffi::c_void, usage: DECIMATION_USAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoDecimationProperties_Impl::SetDecimationUsage(this, core::mem::transmute_copy(&usage)).into() } @@ -5323,35 +3949,23 @@ impl IAMVideoDecimationProperties_Vtbl { iid == &::IID } } -pub trait IAMVideoProcAmp_Impl: Sized { +pub trait IAMVideoProcAmp_Impl: Sized + windows_core::IUnknownImpl { fn GetRange(&self, property: i32, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflags: *mut i32) -> windows_core::Result<()>; fn Set(&self, property: i32, lvalue: i32, flags: i32) -> windows_core::Result<()>; fn Get(&self, property: i32, lvalue: *mut i32, flags: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMVideoProcAmp {} impl IAMVideoProcAmp_Vtbl { - pub const fn new() -> IAMVideoProcAmp_Vtbl - where - Identity: IAMVideoProcAmp_Impl, - { - unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, property: i32, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflags: *mut i32) -> windows_core::HRESULT - where - Identity: IAMVideoProcAmp_Impl, - { + pub const fn new() -> IAMVideoProcAmp_Vtbl { + unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, property: i32, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoProcAmp_Impl::GetRange(this, core::mem::transmute_copy(&property), core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflags)).into() } - unsafe extern "system" fn Set(this: *mut core::ffi::c_void, property: i32, lvalue: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IAMVideoProcAmp_Impl, - { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, property: i32, lvalue: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoProcAmp_Impl::Set(this, core::mem::transmute_copy(&property), core::mem::transmute_copy(&lvalue), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, property: i32, lvalue: *mut i32, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IAMVideoProcAmp_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, property: i32, lvalue: *mut i32, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoProcAmp_Impl::Get(this, core::mem::transmute_copy(&property), core::mem::transmute_copy(&lvalue), core::mem::transmute_copy(&flags)).into() } @@ -5366,19 +3980,13 @@ impl IAMVideoProcAmp_Vtbl { iid == &::IID } } -pub trait IAMWMBufferPass_Impl: Sized { +pub trait IAMWMBufferPass_Impl: Sized + windows_core::IUnknownImpl { fn SetNotify(&self, pcallback: Option<&IAMWMBufferPassCallback>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMWMBufferPass {} impl IAMWMBufferPass_Vtbl { - pub const fn new() -> IAMWMBufferPass_Vtbl - where - Identity: IAMWMBufferPass_Impl, - { - unsafe extern "system" fn SetNotify(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMWMBufferPass_Impl, - { + pub const fn new() -> IAMWMBufferPass_Vtbl { + unsafe extern "system" fn SetNotify(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWMBufferPass_Impl::SetNotify(this, windows_core::from_raw_borrowed(&pcallback)).into() } @@ -5389,21 +3997,15 @@ impl IAMWMBufferPass_Vtbl { } } #[cfg(feature = "Win32_Media_WindowsMediaFormat")] -pub trait IAMWMBufferPassCallback_Impl: Sized { +pub trait IAMWMBufferPassCallback_Impl: Sized + windows_core::IUnknownImpl { fn Notify(&self, pnssbuffer3: Option<&super::WindowsMediaFormat::INSSBuffer3>, ppin: Option<&IPin>, prtstart: *const i64, prtend: *const i64) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Media_WindowsMediaFormat")] impl windows_core::RuntimeName for IAMWMBufferPassCallback {} #[cfg(feature = "Win32_Media_WindowsMediaFormat")] impl IAMWMBufferPassCallback_Vtbl { - pub const fn new() -> IAMWMBufferPassCallback_Vtbl - where - Identity: IAMWMBufferPassCallback_Impl, - { - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, pnssbuffer3: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, prtstart: *const i64, prtend: *const i64) -> windows_core::HRESULT - where - Identity: IAMWMBufferPassCallback_Impl, - { + pub const fn new() -> IAMWMBufferPassCallback_Vtbl { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, pnssbuffer3: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, prtstart: *const i64, prtend: *const i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWMBufferPassCallback_Impl::Notify(this, windows_core::from_raw_borrowed(&pnssbuffer3), windows_core::from_raw_borrowed(&ppin), core::mem::transmute_copy(&prtstart), core::mem::transmute_copy(&prtend)).into() } @@ -5414,7 +4016,7 @@ impl IAMWMBufferPassCallback_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IAMWstDecoder_Impl: Sized { +pub trait IAMWstDecoder_Impl: Sized + windows_core::IUnknownImpl { fn GetDecoderLevel(&self, lplevel: *mut AM_WST_LEVEL) -> windows_core::Result<()>; fn GetCurrentService(&self, lpservice: *mut AM_WST_SERVICE) -> windows_core::Result<()>; fn GetServiceState(&self, lpstate: *mut AM_WST_STATE) -> windows_core::Result<()>; @@ -5438,133 +4040,76 @@ pub trait IAMWstDecoder_Impl: Sized { impl windows_core::RuntimeName for IAMWstDecoder {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IAMWstDecoder_Vtbl { - pub const fn new() -> IAMWstDecoder_Vtbl - where - Identity: IAMWstDecoder_Impl, - { - unsafe extern "system" fn GetDecoderLevel(this: *mut core::ffi::c_void, lplevel: *mut AM_WST_LEVEL) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + pub const fn new() -> IAMWstDecoder_Vtbl { + unsafe extern "system" fn GetDecoderLevel(this: *mut core::ffi::c_void, lplevel: *mut AM_WST_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetDecoderLevel(this, core::mem::transmute_copy(&lplevel)).into() } - unsafe extern "system" fn GetCurrentService(this: *mut core::ffi::c_void, lpservice: *mut AM_WST_SERVICE) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn GetCurrentService(this: *mut core::ffi::c_void, lpservice: *mut AM_WST_SERVICE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetCurrentService(this, core::mem::transmute_copy(&lpservice)).into() } - unsafe extern "system" fn GetServiceState(this: *mut core::ffi::c_void, lpstate: *mut AM_WST_STATE) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn GetServiceState(this: *mut core::ffi::c_void, lpstate: *mut AM_WST_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetServiceState(this, core::mem::transmute_copy(&lpstate)).into() } - unsafe extern "system" fn SetServiceState(this: *mut core::ffi::c_void, state: AM_WST_STATE) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn SetServiceState(this: *mut core::ffi::c_void, state: AM_WST_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetServiceState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn GetOutputFormat(this: *mut core::ffi::c_void, lpbmih: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn GetOutputFormat(this: *mut core::ffi::c_void, lpbmih: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetOutputFormat(this, core::mem::transmute_copy(&lpbmih)).into() } - unsafe extern "system" fn SetOutputFormat(this: *mut core::ffi::c_void, lpbmi: *mut super::super::Graphics::Gdi::BITMAPINFO) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn SetOutputFormat(this: *mut core::ffi::c_void, lpbmi: *mut super::super::Graphics::Gdi::BITMAPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetOutputFormat(this, core::mem::transmute_copy(&lpbmi)).into() } - unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, pdwphyscolor: *mut u32) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, pdwphyscolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetBackgroundColor(this, core::mem::transmute_copy(&pdwphyscolor)).into() } - unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, dwphyscolor: u32) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, dwphyscolor: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetBackgroundColor(this, core::mem::transmute_copy(&dwphyscolor)).into() } - unsafe extern "system" fn GetRedrawAlways(this: *mut core::ffi::c_void, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn GetRedrawAlways(this: *mut core::ffi::c_void, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetRedrawAlways(this, core::mem::transmute_copy(&lpboption)).into() } - unsafe extern "system" fn SetRedrawAlways(this: *mut core::ffi::c_void, boption: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn SetRedrawAlways(this: *mut core::ffi::c_void, boption: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetRedrawAlways(this, core::mem::transmute_copy(&boption)).into() } - unsafe extern "system" fn GetDrawBackgroundMode(this: *mut core::ffi::c_void, lpmode: *mut AM_WST_DRAWBGMODE) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn GetDrawBackgroundMode(this: *mut core::ffi::c_void, lpmode: *mut AM_WST_DRAWBGMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetDrawBackgroundMode(this, core::mem::transmute_copy(&lpmode)).into() } - unsafe extern "system" fn SetDrawBackgroundMode(this: *mut core::ffi::c_void, mode: AM_WST_DRAWBGMODE) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn SetDrawBackgroundMode(this: *mut core::ffi::c_void, mode: AM_WST_DRAWBGMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetDrawBackgroundMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn SetAnswerMode(this: *mut core::ffi::c_void, banswer: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn SetAnswerMode(this: *mut core::ffi::c_void, banswer: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetAnswerMode(this, core::mem::transmute_copy(&banswer)).into() } - unsafe extern "system" fn GetAnswerMode(this: *mut core::ffi::c_void, pbanswer: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn GetAnswerMode(this: *mut core::ffi::c_void, pbanswer: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetAnswerMode(this, core::mem::transmute_copy(&pbanswer)).into() } - unsafe extern "system" fn SetHoldPage(this: *mut core::ffi::c_void, bholdpage: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn SetHoldPage(this: *mut core::ffi::c_void, bholdpage: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetHoldPage(this, core::mem::transmute_copy(&bholdpage)).into() } - unsafe extern "system" fn GetHoldPage(this: *mut core::ffi::c_void, pbholdpage: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn GetHoldPage(this: *mut core::ffi::c_void, pbholdpage: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetHoldPage(this, core::mem::transmute_copy(&pbholdpage)).into() } - unsafe extern "system" fn GetCurrentPage(this: *mut core::ffi::c_void, pwstpage: *mut AM_WST_PAGE) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn GetCurrentPage(this: *mut core::ffi::c_void, pwstpage: *mut AM_WST_PAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetCurrentPage(this, core::mem::transmute_copy(&pwstpage)).into() } - unsafe extern "system" fn SetCurrentPage(this: *mut core::ffi::c_void, wstpage: AM_WST_PAGE) -> windows_core::HRESULT - where - Identity: IAMWstDecoder_Impl, - { + unsafe extern "system" fn SetCurrentPage(this: *mut core::ffi::c_void, wstpage: AM_WST_PAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetCurrentPage(this, core::mem::transmute(&wstpage)).into() } @@ -5594,27 +4139,18 @@ impl IAMWstDecoder_Vtbl { iid == &::IID } } -pub trait IAMovieSetup_Impl: Sized { +pub trait IAMovieSetup_Impl: Sized + windows_core::IUnknownImpl { fn Register(&self) -> windows_core::Result<()>; fn Unregister(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAMovieSetup {} impl IAMovieSetup_Vtbl { - pub const fn new() -> IAMovieSetup_Vtbl - where - Identity: IAMovieSetup_Impl, - { - unsafe extern "system" fn Register(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMovieSetup_Impl, - { + pub const fn new() -> IAMovieSetup_Vtbl { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMovieSetup_Impl::Register(this).into() } - unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAMovieSetup_Impl, - { + unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMovieSetup_Impl::Unregister(this).into() } @@ -5628,7 +4164,7 @@ impl IAMovieSetup_Vtbl { iid == &::IID } } -pub trait IAsyncReader_Impl: Sized { +pub trait IAsyncReader_Impl: Sized + windows_core::IUnknownImpl { fn RequestAllocator(&self, ppreferred: Option<&IMemAllocator>, pprops: *const ALLOCATOR_PROPERTIES) -> windows_core::Result; fn Request(&self, psample: Option<&IMediaSample>, dwuser: usize) -> windows_core::Result<()>; fn WaitForNext(&self, dwtimeout: u32, ppsample: *mut Option, pdwuser: *mut usize) -> windows_core::Result<()>; @@ -5640,14 +4176,8 @@ pub trait IAsyncReader_Impl: Sized { } impl windows_core::RuntimeName for IAsyncReader {} impl IAsyncReader_Vtbl { - pub const fn new() -> IAsyncReader_Vtbl - where - Identity: IAsyncReader_Impl, - { - unsafe extern "system" fn RequestAllocator(this: *mut core::ffi::c_void, ppreferred: *mut core::ffi::c_void, pprops: *const ALLOCATOR_PROPERTIES, ppactual: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncReader_Impl, - { + pub const fn new() -> IAsyncReader_Vtbl { + unsafe extern "system" fn RequestAllocator(this: *mut core::ffi::c_void, ppreferred: *mut core::ffi::c_void, pprops: *const ALLOCATOR_PROPERTIES, ppactual: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncReader_Impl::RequestAllocator(this, windows_core::from_raw_borrowed(&ppreferred), core::mem::transmute_copy(&pprops)) { Ok(ok__) => { @@ -5657,52 +4187,31 @@ impl IAsyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Request(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void, dwuser: usize) -> windows_core::HRESULT - where - Identity: IAsyncReader_Impl, - { + unsafe extern "system" fn Request(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void, dwuser: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncReader_Impl::Request(this, windows_core::from_raw_borrowed(&psample), core::mem::transmute_copy(&dwuser)).into() } - unsafe extern "system" fn WaitForNext(this: *mut core::ffi::c_void, dwtimeout: u32, ppsample: *mut *mut core::ffi::c_void, pdwuser: *mut usize) -> windows_core::HRESULT - where - Identity: IAsyncReader_Impl, - { + unsafe extern "system" fn WaitForNext(this: *mut core::ffi::c_void, dwtimeout: u32, ppsample: *mut *mut core::ffi::c_void, pdwuser: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncReader_Impl::WaitForNext(this, core::mem::transmute_copy(&dwtimeout), core::mem::transmute_copy(&ppsample), core::mem::transmute_copy(&pdwuser)).into() } - unsafe extern "system" fn SyncReadAligned(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncReader_Impl, - { + unsafe extern "system" fn SyncReadAligned(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncReader_Impl::SyncReadAligned(this, windows_core::from_raw_borrowed(&psample)).into() } - unsafe extern "system" fn SyncRead(this: *mut core::ffi::c_void, llposition: i64, llength: i32, pbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IAsyncReader_Impl, - { + unsafe extern "system" fn SyncRead(this: *mut core::ffi::c_void, llposition: i64, llength: i32, pbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncReader_Impl::SyncRead(this, core::mem::transmute_copy(&llposition), core::mem::transmute_copy(&llength), core::mem::transmute_copy(&pbuffer)).into() } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, ptotal: *mut i64, pavailable: *mut i64) -> windows_core::HRESULT - where - Identity: IAsyncReader_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, ptotal: *mut i64, pavailable: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncReader_Impl::Length(this, core::mem::transmute_copy(&ptotal), core::mem::transmute_copy(&pavailable)).into() } - unsafe extern "system" fn BeginFlush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncReader_Impl, - { + unsafe extern "system" fn BeginFlush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncReader_Impl::BeginFlush(this).into() } - unsafe extern "system" fn EndFlush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncReader_Impl, - { + unsafe extern "system" fn EndFlush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncReader_Impl::EndFlush(this).into() } @@ -5731,21 +4240,12 @@ pub trait IAudioData_Impl: Sized + IMemoryData_Impl { impl windows_core::RuntimeName for IAudioData {} #[cfg(feature = "Win32_Media_Audio")] impl IAudioData_Vtbl { - pub const fn new() -> IAudioData_Vtbl - where - Identity: IAudioData_Impl, - { - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwaveformatcurrent: *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IAudioData_Impl, - { + pub const fn new() -> IAudioData_Vtbl { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwaveformatcurrent: *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioData_Impl::GetFormat(this, core::mem::transmute_copy(&pwaveformatcurrent)).into() } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, lpwaveformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IAudioData_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, lpwaveformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioData_Impl::SetFormat(this, core::mem::transmute_copy(&lpwaveformat)).into() } @@ -5765,28 +4265,16 @@ pub trait IAudioMediaStream_Impl: Sized + IMediaStream_Impl { impl windows_core::RuntimeName for IAudioMediaStream {} #[cfg(feature = "Win32_Media_Audio")] impl IAudioMediaStream_Vtbl { - pub const fn new() -> IAudioMediaStream_Vtbl - where - Identity: IAudioMediaStream_Impl, - { - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwaveformatcurrent: *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IAudioMediaStream_Impl, - { + pub const fn new() -> IAudioMediaStream_Vtbl { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pwaveformatcurrent: *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioMediaStream_Impl::GetFormat(this, core::mem::transmute_copy(&pwaveformatcurrent)).into() } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, lpwaveformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IAudioMediaStream_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, lpwaveformat: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioMediaStream_Impl::SetFormat(this, core::mem::transmute_copy(&lpwaveformat)).into() } - unsafe extern "system" fn CreateSample(this: *mut core::ffi::c_void, paudiodata: *mut core::ffi::c_void, dwflags: u32, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioMediaStream_Impl, - { + unsafe extern "system" fn CreateSample(this: *mut core::ffi::c_void, paudiodata: *mut core::ffi::c_void, dwflags: u32, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioMediaStream_Impl::CreateSample(this, windows_core::from_raw_borrowed(&paudiodata), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -5812,14 +4300,8 @@ pub trait IAudioStreamSample_Impl: Sized + IStreamSample_Impl { } impl windows_core::RuntimeName for IAudioStreamSample {} impl IAudioStreamSample_Vtbl { - pub const fn new() -> IAudioStreamSample_Vtbl - where - Identity: IAudioStreamSample_Impl, - { - unsafe extern "system" fn GetAudioData(this: *mut core::ffi::c_void, ppaudio: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioStreamSample_Impl, - { + pub const fn new() -> IAudioStreamSample_Vtbl { + unsafe extern "system" fn GetAudioData(this: *mut core::ffi::c_void, ppaudio: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioStreamSample_Impl::GetAudioData(this) { Ok(ok__) => { @@ -5835,20 +4317,14 @@ impl IAudioStreamSample_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IBDA_AUX_Impl: Sized { +pub trait IBDA_AUX_Impl: Sized + windows_core::IUnknownImpl { fn QueryCapabilities(&self) -> windows_core::Result; fn EnumCapability(&self, dwindex: u32, dwinputid: *mut u32, pconnectortype: *mut windows_core::GUID, conntypenum: *mut u32, numvideostds: *mut u32, analogstds: *mut u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_AUX {} impl IBDA_AUX_Vtbl { - pub const fn new() -> IBDA_AUX_Vtbl - where - Identity: IBDA_AUX_Impl, - { - unsafe extern "system" fn QueryCapabilities(this: *mut core::ffi::c_void, pdwnumauxinputsbstr: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_AUX_Impl, - { + pub const fn new() -> IBDA_AUX_Vtbl { + unsafe extern "system" fn QueryCapabilities(this: *mut core::ffi::c_void, pdwnumauxinputsbstr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_AUX_Impl::QueryCapabilities(this) { Ok(ok__) => { @@ -5858,10 +4334,7 @@ impl IBDA_AUX_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumCapability(this: *mut core::ffi::c_void, dwindex: u32, dwinputid: *mut u32, pconnectortype: *mut windows_core::GUID, conntypenum: *mut u32, numvideostds: *mut u32, analogstds: *mut u64) -> windows_core::HRESULT - where - Identity: IBDA_AUX_Impl, - { + unsafe extern "system" fn EnumCapability(this: *mut core::ffi::c_void, dwindex: u32, dwinputid: *mut u32, pconnectortype: *mut windows_core::GUID, conntypenum: *mut u32, numvideostds: *mut u32, analogstds: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_AUX_Impl::EnumCapability(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwinputid), core::mem::transmute_copy(&pconnectortype), core::mem::transmute_copy(&conntypenum), core::mem::transmute_copy(&numvideostds), core::mem::transmute_copy(&analogstds)).into() } @@ -5875,19 +4348,13 @@ impl IBDA_AUX_Vtbl { iid == &::IID } } -pub trait IBDA_AutoDemodulate_Impl: Sized { +pub trait IBDA_AutoDemodulate_Impl: Sized + windows_core::IUnknownImpl { fn put_AutoDemodulate(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_AutoDemodulate {} impl IBDA_AutoDemodulate_Vtbl { - pub const fn new() -> IBDA_AutoDemodulate_Vtbl - where - Identity: IBDA_AutoDemodulate_Impl, - { - unsafe extern "system" fn put_AutoDemodulate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_AutoDemodulate_Impl, - { + pub const fn new() -> IBDA_AutoDemodulate_Vtbl { + unsafe extern "system" fn put_AutoDemodulate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_AutoDemodulate_Impl::put_AutoDemodulate(this).into() } @@ -5904,28 +4371,16 @@ pub trait IBDA_AutoDemodulateEx_Impl: Sized + IBDA_AutoDemodulate_Impl { } impl windows_core::RuntimeName for IBDA_AutoDemodulateEx {} impl IBDA_AutoDemodulateEx_Vtbl { - pub const fn new() -> IBDA_AutoDemodulateEx_Vtbl - where - Identity: IBDA_AutoDemodulateEx_Impl, - { - unsafe extern "system" fn get_SupportedDeviceNodeTypes(this: *mut core::ffi::c_void, ulcdevicenodetypesmax: u32, pulcdevicenodetypes: *mut u32, pguiddevicenodetypes: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_AutoDemodulateEx_Impl, - { + pub const fn new() -> IBDA_AutoDemodulateEx_Vtbl { + unsafe extern "system" fn get_SupportedDeviceNodeTypes(this: *mut core::ffi::c_void, ulcdevicenodetypesmax: u32, pulcdevicenodetypes: *mut u32, pguiddevicenodetypes: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_AutoDemodulateEx_Impl::get_SupportedDeviceNodeTypes(this, core::mem::transmute_copy(&ulcdevicenodetypesmax), core::mem::transmute_copy(&pulcdevicenodetypes), core::mem::transmute_copy(&pguiddevicenodetypes)).into() } - unsafe extern "system" fn get_SupportedVideoFormats(this: *mut core::ffi::c_void, pulamtunermodetype: *mut u32, pulanalogvideostandard: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_AutoDemodulateEx_Impl, - { + unsafe extern "system" fn get_SupportedVideoFormats(this: *mut core::ffi::c_void, pulamtunermodetype: *mut u32, pulanalogvideostandard: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_AutoDemodulateEx_Impl::get_SupportedVideoFormats(this, core::mem::transmute_copy(&pulamtunermodetype), core::mem::transmute_copy(&pulanalogvideostandard)).into() } - unsafe extern "system" fn get_AuxInputCount(this: *mut core::ffi::c_void, pulcompositecount: *mut u32, pulsvideocount: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_AutoDemodulateEx_Impl, - { + unsafe extern "system" fn get_AuxInputCount(this: *mut core::ffi::c_void, pulcompositecount: *mut u32, pulsvideocount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_AutoDemodulateEx_Impl::get_AuxInputCount(this, core::mem::transmute_copy(&pulcompositecount), core::mem::transmute_copy(&pulsvideocount)).into() } @@ -5940,7 +4395,7 @@ impl IBDA_AutoDemodulateEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IBDA_ConditionalAccess_Impl: Sized { +pub trait IBDA_ConditionalAccess_Impl: Sized + windows_core::IUnknownImpl { fn get_SmartCardStatus(&self, pcardstatus: *mut SmartCardStatusType, pcardassociation: *mut SmartCardAssociationType, pbstrcarderror: *mut windows_core::BSTR, pfooblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; fn get_SmartCardInfo(&self, pbstrcardname: *mut windows_core::BSTR, pbstrcardmanufacturer: *mut windows_core::BSTR, pfdaylightsavings: *mut super::super::Foundation::VARIANT_BOOL, 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<()>; @@ -5954,35 +4409,20 @@ pub trait IBDA_ConditionalAccess_Impl: Sized { } impl windows_core::RuntimeName for IBDA_ConditionalAccess {} impl IBDA_ConditionalAccess_Vtbl { - pub const fn new() -> IBDA_ConditionalAccess_Vtbl - where - Identity: IBDA_ConditionalAccess_Impl, - { - unsafe extern "system" fn get_SmartCardStatus(this: *mut core::ffi::c_void, pcardstatus: *mut SmartCardStatusType, pcardassociation: *mut SmartCardAssociationType, pbstrcarderror: *mut core::mem::MaybeUninit, pfooblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccess_Impl, - { + pub const fn new() -> IBDA_ConditionalAccess_Vtbl { + unsafe extern "system" fn get_SmartCardStatus(this: *mut core::ffi::c_void, pcardstatus: *mut SmartCardStatusType, pcardassociation: *mut SmartCardAssociationType, pbstrcarderror: *mut core::mem::MaybeUninit, pfooblocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ConditionalAccess_Impl::get_SmartCardStatus(this, 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(this: *mut core::ffi::c_void, pbstrcardname: *mut core::mem::MaybeUninit, pbstrcardmanufacturer: *mut core::mem::MaybeUninit, pfdaylightsavings: *mut super::super::Foundation::VARIANT_BOOL, pbyratingregion: *mut u8, pltimezoneoffsetminutes: *mut i32, pbstrlanguage: *mut core::mem::MaybeUninit, pealocationcode: *mut EALocationCodeType) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccess_Impl, - { + unsafe extern "system" fn get_SmartCardInfo(this: *mut core::ffi::c_void, pbstrcardname: *mut core::mem::MaybeUninit, pbstrcardmanufacturer: *mut core::mem::MaybeUninit, pfdaylightsavings: *mut super::super::Foundation::VARIANT_BOOL, pbyratingregion: *mut u8, pltimezoneoffsetminutes: *mut i32, pbstrlanguage: *mut core::mem::MaybeUninit, pealocationcode: *mut EALocationCodeType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ConditionalAccess_Impl::get_SmartCardInfo(this, 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() } - unsafe extern "system" fn get_SmartCardApplications(this: *mut core::ffi::c_void, pulcapplications: *mut u32, ulcapplicationsmax: u32, rgapplications: *mut SmartCardApplication) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccess_Impl, - { + unsafe extern "system" fn get_SmartCardApplications(this: *mut core::ffi::c_void, pulcapplications: *mut u32, ulcapplicationsmax: u32, rgapplications: *mut SmartCardApplication) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ConditionalAccess_Impl::get_SmartCardApplications(this, core::mem::transmute_copy(&pulcapplications), core::mem::transmute_copy(&ulcapplicationsmax), core::mem::transmute_copy(&rgapplications)).into() } - unsafe extern "system" fn get_Entitlement(this: *mut core::ffi::c_void, usvirtualchannel: u16, pentitlement: *mut EntitlementType) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccess_Impl, - { + unsafe extern "system" fn get_Entitlement(this: *mut core::ffi::c_void, usvirtualchannel: u16, pentitlement: *mut EntitlementType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_ConditionalAccess_Impl::get_Entitlement(this, core::mem::transmute_copy(&usvirtualchannel)) { Ok(ok__) => { @@ -5992,38 +4432,23 @@ impl IBDA_ConditionalAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TuneByChannel(this: *mut core::ffi::c_void, usvirtualchannel: u16) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccess_Impl, - { + unsafe extern "system" fn TuneByChannel(this: *mut core::ffi::c_void, usvirtualchannel: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ConditionalAccess_Impl::TuneByChannel(this, core::mem::transmute_copy(&usvirtualchannel)).into() } - unsafe extern "system" fn SetProgram(this: *mut core::ffi::c_void, usprogramnumber: u16) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccess_Impl, - { + unsafe extern "system" fn SetProgram(this: *mut core::ffi::c_void, usprogramnumber: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ConditionalAccess_Impl::SetProgram(this, core::mem::transmute_copy(&usprogramnumber)).into() } - unsafe extern "system" fn AddProgram(this: *mut core::ffi::c_void, usprogramnumber: u16) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccess_Impl, - { + unsafe extern "system" fn AddProgram(this: *mut core::ffi::c_void, usprogramnumber: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ConditionalAccess_Impl::AddProgram(this, core::mem::transmute_copy(&usprogramnumber)).into() } - unsafe extern "system" fn RemoveProgram(this: *mut core::ffi::c_void, usprogramnumber: u16) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccess_Impl, - { + unsafe extern "system" fn RemoveProgram(this: *mut core::ffi::c_void, usprogramnumber: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ConditionalAccess_Impl::RemoveProgram(this, core::mem::transmute_copy(&usprogramnumber)).into() } - unsafe extern "system" fn GetModuleUI(this: *mut core::ffi::c_void, bydialognumber: u8, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccess_Impl, - { + unsafe extern "system" fn GetModuleUI(this: *mut core::ffi::c_void, bydialognumber: u8, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_ConditionalAccess_Impl::GetModuleUI(this, core::mem::transmute_copy(&bydialognumber)) { Ok(ok__) => { @@ -6033,10 +4458,7 @@ impl IBDA_ConditionalAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InformUIClosed(this: *mut core::ffi::c_void, bydialognumber: u8, closereason: UICloseReasonType) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccess_Impl, - { + unsafe extern "system" fn InformUIClosed(this: *mut core::ffi::c_void, bydialognumber: u8, closereason: UICloseReasonType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ConditionalAccess_Impl::InformUIClosed(this, core::mem::transmute_copy(&bydialognumber), core::mem::transmute_copy(&closereason)).into() } @@ -6058,7 +4480,7 @@ impl IBDA_ConditionalAccess_Vtbl { iid == &::IID } } -pub trait IBDA_ConditionalAccessEx_Impl: Sized { +pub trait IBDA_ConditionalAccessEx_Impl: Sized + windows_core::IUnknownImpl { 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: &windows_core::BSTR, eventid: u32) -> windows_core::Result<()>; @@ -6067,14 +4489,8 @@ pub trait IBDA_ConditionalAccessEx_Impl: Sized { } impl windows_core::RuntimeName for IBDA_ConditionalAccessEx {} impl IBDA_ConditionalAccessEx_Vtbl { - pub const fn new() -> IBDA_ConditionalAccessEx_Vtbl - where - Identity: IBDA_ConditionalAccessEx_Impl, - { - unsafe extern "system" fn CheckEntitlementToken(this: *mut core::ffi::c_void, uldialogrequest: u32, bstrlanguage: core::mem::MaybeUninit, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, ulcbentitlementtokenlen: u32, pbentitlementtoken: *const u8, puldescramblestatus: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccessEx_Impl, - { + pub const fn new() -> IBDA_ConditionalAccessEx_Vtbl { + unsafe extern "system" fn CheckEntitlementToken(this: *mut core::ffi::c_void, uldialogrequest: u32, bstrlanguage: core::mem::MaybeUninit, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, ulcbentitlementtokenlen: u32, pbentitlementtoken: *const u8, puldescramblestatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_ConditionalAccessEx_Impl::CheckEntitlementToken(this, core::mem::transmute_copy(&uldialogrequest), core::mem::transmute(&bstrlanguage), core::mem::transmute_copy(&requesttype), core::mem::transmute_copy(&ulcbentitlementtokenlen), core::mem::transmute_copy(&pbentitlementtoken)) { Ok(ok__) => { @@ -6084,24 +4500,15 @@ impl IBDA_ConditionalAccessEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCaptureToken(this: *mut core::ffi::c_void, ulcbcapturetokenlen: u32, pbcapturetoken: *const u8) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccessEx_Impl, - { + unsafe extern "system" fn SetCaptureToken(this: *mut core::ffi::c_void, ulcbcapturetokenlen: u32, pbcapturetoken: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ConditionalAccessEx_Impl::SetCaptureToken(this, core::mem::transmute_copy(&ulcbcapturetokenlen), core::mem::transmute_copy(&pbcapturetoken)).into() } - unsafe extern "system" fn OpenBroadcastMmi(this: *mut core::ffi::c_void, uldialogrequest: u32, bstrlanguage: core::mem::MaybeUninit, eventid: u32) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccessEx_Impl, - { + unsafe extern "system" fn OpenBroadcastMmi(this: *mut core::ffi::c_void, uldialogrequest: u32, bstrlanguage: core::mem::MaybeUninit, eventid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ConditionalAccessEx_Impl::OpenBroadcastMmi(this, core::mem::transmute_copy(&uldialogrequest), core::mem::transmute(&bstrlanguage), core::mem::transmute_copy(&eventid)).into() } - unsafe extern "system" fn CloseMmiDialog(this: *mut core::ffi::c_void, uldialogrequest: u32, bstrlanguage: core::mem::MaybeUninit, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON, pulsessionresult: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccessEx_Impl, - { + unsafe extern "system" fn CloseMmiDialog(this: *mut core::ffi::c_void, uldialogrequest: u32, bstrlanguage: core::mem::MaybeUninit, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON, pulsessionresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_ConditionalAccessEx_Impl::CloseMmiDialog(this, core::mem::transmute_copy(&uldialogrequest), core::mem::transmute(&bstrlanguage), core::mem::transmute_copy(&uldialognumber), core::mem::transmute_copy(&reasoncode)) { Ok(ok__) => { @@ -6111,10 +4518,7 @@ impl IBDA_ConditionalAccessEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDialogRequestNumber(this: *mut core::ffi::c_void, puldialogrequestnumber: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_ConditionalAccessEx_Impl, - { + unsafe extern "system" fn CreateDialogRequestNumber(this: *mut core::ffi::c_void, puldialogrequestnumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_ConditionalAccessEx_Impl::CreateDialogRequestNumber(this) { Ok(ok__) => { @@ -6137,35 +4541,23 @@ impl IBDA_ConditionalAccessEx_Vtbl { iid == &::IID } } -pub trait IBDA_DRIDRMService_Impl: Sized { +pub trait IBDA_DRIDRMService_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IBDA_DRIDRMService {} impl IBDA_DRIDRMService_Vtbl { - pub const fn new() -> IBDA_DRIDRMService_Vtbl - where - Identity: IBDA_DRIDRMService_Impl, - { - unsafe extern "system" fn SetDRM(this: *mut core::ffi::c_void, bstrnewdrm: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_DRIDRMService_Impl, - { + pub const fn new() -> IBDA_DRIDRMService_Vtbl { + unsafe extern "system" fn SetDRM(this: *mut core::ffi::c_void, bstrnewdrm: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRIDRMService_Impl::SetDRM(this, core::mem::transmute(&bstrnewdrm)).into() } - unsafe extern "system" fn GetDRMStatus(this: *mut core::ffi::c_void, pbstrdrmuuidlist: *mut core::mem::MaybeUninit, drmuuid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_DRIDRMService_Impl, - { + unsafe extern "system" fn GetDRMStatus(this: *mut core::ffi::c_void, pbstrdrmuuidlist: *mut core::mem::MaybeUninit, drmuuid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRIDRMService_Impl::GetDRMStatus(this, core::mem::transmute_copy(&pbstrdrmuuidlist), core::mem::transmute_copy(&drmuuid)).into() } - unsafe extern "system" fn GetPairingStatus(this: *mut core::ffi::c_void, penumpairingstatus: *mut BDA_DrmPairingError) -> windows_core::HRESULT - where - Identity: IBDA_DRIDRMService_Impl, - { + unsafe extern "system" fn GetPairingStatus(this: *mut core::ffi::c_void, penumpairingstatus: *mut BDA_DrmPairingError) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRIDRMService_Impl::GetPairingStatus(this, core::mem::transmute_copy(&penumpairingstatus)).into() } @@ -6180,7 +4572,7 @@ impl IBDA_DRIDRMService_Vtbl { iid == &::IID } } -pub trait IBDA_DRIWMDRMSession_Impl: Sized { +pub trait IBDA_DRIWMDRMSession_Impl: Sized + windows_core::IUnknownImpl { fn AcknowledgeLicense(&self, hrlicenseack: windows_core::HRESULT) -> windows_core::Result<()>; fn ProcessLicenseChallenge(&self, dwcblicensemessage: u32, pblicensemessage: *const u8, pdwcblicenseresponse: *mut u32, ppblicenseresponse: *mut *mut u8) -> windows_core::Result<()>; fn ProcessRegistrationChallenge(&self, dwcbregistrationmessage: u32, pbregistrationmessage: *const u8, pdwcbregistrationresponse: *mut u32, ppbregistrationresponse: *mut *mut u8) -> windows_core::Result<()>; @@ -6191,56 +4583,32 @@ pub trait IBDA_DRIWMDRMSession_Impl: Sized { } impl windows_core::RuntimeName for IBDA_DRIWMDRMSession {} impl IBDA_DRIWMDRMSession_Vtbl { - pub const fn new() -> IBDA_DRIWMDRMSession_Vtbl - where - Identity: IBDA_DRIWMDRMSession_Impl, - { - unsafe extern "system" fn AcknowledgeLicense(this: *mut core::ffi::c_void, hrlicenseack: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IBDA_DRIWMDRMSession_Impl, - { + pub const fn new() -> IBDA_DRIWMDRMSession_Vtbl { + unsafe extern "system" fn AcknowledgeLicense(this: *mut core::ffi::c_void, hrlicenseack: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRIWMDRMSession_Impl::AcknowledgeLicense(this, core::mem::transmute_copy(&hrlicenseack)).into() } - unsafe extern "system" fn ProcessLicenseChallenge(this: *mut core::ffi::c_void, dwcblicensemessage: u32, pblicensemessage: *const u8, pdwcblicenseresponse: *mut u32, ppblicenseresponse: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_DRIWMDRMSession_Impl, - { + unsafe extern "system" fn ProcessLicenseChallenge(this: *mut core::ffi::c_void, dwcblicensemessage: u32, pblicensemessage: *const u8, pdwcblicenseresponse: *mut u32, ppblicenseresponse: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRIWMDRMSession_Impl::ProcessLicenseChallenge(this, core::mem::transmute_copy(&dwcblicensemessage), core::mem::transmute_copy(&pblicensemessage), core::mem::transmute_copy(&pdwcblicenseresponse), core::mem::transmute_copy(&ppblicenseresponse)).into() } - unsafe extern "system" fn ProcessRegistrationChallenge(this: *mut core::ffi::c_void, dwcbregistrationmessage: u32, pbregistrationmessage: *const u8, pdwcbregistrationresponse: *mut u32, ppbregistrationresponse: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_DRIWMDRMSession_Impl, - { + unsafe extern "system" fn ProcessRegistrationChallenge(this: *mut core::ffi::c_void, dwcbregistrationmessage: u32, pbregistrationmessage: *const u8, pdwcbregistrationresponse: *mut u32, ppbregistrationresponse: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRIWMDRMSession_Impl::ProcessRegistrationChallenge(this, core::mem::transmute_copy(&dwcbregistrationmessage), core::mem::transmute_copy(&pbregistrationmessage), core::mem::transmute_copy(&pdwcbregistrationresponse), core::mem::transmute_copy(&ppbregistrationresponse)).into() } - unsafe extern "system" fn SetRevInfo(this: *mut core::ffi::c_void, dwrevinfolen: u32, pbrevinfo: *const u8, pdwresponse: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_DRIWMDRMSession_Impl, - { + unsafe extern "system" fn SetRevInfo(this: *mut core::ffi::c_void, dwrevinfolen: u32, pbrevinfo: *const u8, pdwresponse: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRIWMDRMSession_Impl::SetRevInfo(this, core::mem::transmute_copy(&dwrevinfolen), core::mem::transmute_copy(&pbrevinfo), core::mem::transmute_copy(&pdwresponse)).into() } - unsafe extern "system" fn SetCrl(this: *mut core::ffi::c_void, dwcrllen: u32, pbcrllen: *const u8, pdwresponse: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_DRIWMDRMSession_Impl, - { + unsafe extern "system" fn SetCrl(this: *mut core::ffi::c_void, dwcrllen: u32, pbcrllen: *const u8, pdwresponse: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRIWMDRMSession_Impl::SetCrl(this, core::mem::transmute_copy(&dwcrllen), core::mem::transmute_copy(&pbcrllen), core::mem::transmute_copy(&pdwresponse)).into() } - unsafe extern "system" fn GetHMSAssociationData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_DRIWMDRMSession_Impl, - { + unsafe extern "system" fn GetHMSAssociationData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRIWMDRMSession_Impl::GetHMSAssociationData(this).into() } - unsafe extern "system" fn GetLastCardeaError(this: *mut core::ffi::c_void, pdwerror: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_DRIWMDRMSession_Impl, - { + unsafe extern "system" fn GetLastCardeaError(this: *mut core::ffi::c_void, pdwerror: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRIWMDRMSession_Impl::GetLastCardeaError(this, core::mem::transmute_copy(&pdwerror)).into() } @@ -6259,27 +4627,18 @@ impl IBDA_DRIWMDRMSession_Vtbl { iid == &::IID } } -pub trait IBDA_DRM_Impl: Sized { +pub trait IBDA_DRM_Impl: Sized + windows_core::IUnknownImpl { fn GetDRMPairingStatus(&self, pdwstatus: *mut u32, pherror: *mut windows_core::HRESULT) -> windows_core::Result<()>; fn PerformDRMPairing(&self, fsync: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_DRM {} impl IBDA_DRM_Vtbl { - pub const fn new() -> IBDA_DRM_Vtbl - where - Identity: IBDA_DRM_Impl, - { - unsafe extern "system" fn GetDRMPairingStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32, pherror: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IBDA_DRM_Impl, - { + pub const fn new() -> IBDA_DRM_Vtbl { + unsafe extern "system" fn GetDRMPairingStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32, pherror: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRM_Impl::GetDRMPairingStatus(this, core::mem::transmute_copy(&pdwstatus), core::mem::transmute_copy(&pherror)).into() } - unsafe extern "system" fn PerformDRMPairing(this: *mut core::ffi::c_void, fsync: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBDA_DRM_Impl, - { + unsafe extern "system" fn PerformDRMPairing(this: *mut core::ffi::c_void, fsync: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRM_Impl::PerformDRMPairing(this, core::mem::transmute_copy(&fsync)).into() } @@ -6293,27 +4652,18 @@ impl IBDA_DRM_Vtbl { iid == &::IID } } -pub trait IBDA_DRMService_Impl: Sized { +pub trait IBDA_DRMService_Impl: Sized + windows_core::IUnknownImpl { fn SetDRM(&self, puuidnewdrm: *const windows_core::GUID) -> windows_core::Result<()>; fn GetDRMStatus(&self, pbstrdrmuuidlist: *mut windows_core::BSTR, drmuuid: *mut windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_DRMService {} impl IBDA_DRMService_Vtbl { - pub const fn new() -> IBDA_DRMService_Vtbl - where - Identity: IBDA_DRMService_Impl, - { - unsafe extern "system" fn SetDRM(this: *mut core::ffi::c_void, puuidnewdrm: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_DRMService_Impl, - { + pub const fn new() -> IBDA_DRMService_Vtbl { + unsafe extern "system" fn SetDRM(this: *mut core::ffi::c_void, puuidnewdrm: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRMService_Impl::SetDRM(this, core::mem::transmute_copy(&puuidnewdrm)).into() } - unsafe extern "system" fn GetDRMStatus(this: *mut core::ffi::c_void, pbstrdrmuuidlist: *mut core::mem::MaybeUninit, drmuuid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_DRMService_Impl, - { + unsafe extern "system" fn GetDRMStatus(this: *mut core::ffi::c_void, pbstrdrmuuidlist: *mut core::mem::MaybeUninit, drmuuid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRMService_Impl::GetDRMStatus(this, core::mem::transmute_copy(&pbstrdrmuuidlist), core::mem::transmute_copy(&drmuuid)).into() } @@ -6327,7 +4677,7 @@ impl IBDA_DRMService_Vtbl { iid == &::IID } } -pub trait IBDA_DeviceControl_Impl: Sized { +pub trait IBDA_DeviceControl_Impl: Sized + windows_core::IUnknownImpl { fn StartChanges(&self) -> windows_core::Result<()>; fn CheckChanges(&self) -> windows_core::Result<()>; fn CommitChanges(&self) -> windows_core::Result<()>; @@ -6335,35 +4685,20 @@ pub trait IBDA_DeviceControl_Impl: Sized { } impl windows_core::RuntimeName for IBDA_DeviceControl {} impl IBDA_DeviceControl_Vtbl { - pub const fn new() -> IBDA_DeviceControl_Vtbl - where - Identity: IBDA_DeviceControl_Impl, - { - unsafe extern "system" fn StartChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_DeviceControl_Impl, - { + pub const fn new() -> IBDA_DeviceControl_Vtbl { + unsafe extern "system" fn StartChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DeviceControl_Impl::StartChanges(this).into() } - unsafe extern "system" fn CheckChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_DeviceControl_Impl, - { + unsafe extern "system" fn CheckChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DeviceControl_Impl::CheckChanges(this).into() } - unsafe extern "system" fn CommitChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_DeviceControl_Impl, - { + unsafe extern "system" fn CommitChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DeviceControl_Impl::CommitChanges(this).into() } - unsafe extern "system" fn GetChangeState(this: *mut core::ffi::c_void, pstate: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_DeviceControl_Impl, - { + unsafe extern "system" fn GetChangeState(this: *mut core::ffi::c_void, pstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DeviceControl_Impl::GetChangeState(this, core::mem::transmute_copy(&pstate)).into() } @@ -6385,17 +4720,14 @@ pub trait IBDA_DiagnosticProperties_Impl: Sized + super::super::System::Com::Str impl windows_core::RuntimeName for IBDA_DiagnosticProperties {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IBDA_DiagnosticProperties_Vtbl { - pub const fn new() -> IBDA_DiagnosticProperties_Vtbl - where - Identity: IBDA_DiagnosticProperties_Impl, - { + pub const fn new() -> IBDA_DiagnosticProperties_Vtbl { Self { base__: super::super::System::Com::StructuredStorage::IPropertyBag_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IBDA_DigitalDemodulator_Impl: Sized { +pub trait IBDA_DigitalDemodulator_Impl: Sized + windows_core::IUnknownImpl { fn SetModulationType(&self, pmodulationtype: *const ModulationType) -> windows_core::Result<()>; fn ModulationType(&self, pmodulationtype: *mut ModulationType) -> windows_core::Result<()>; fn SetInnerFECMethod(&self, pfecmethod: *const FECMethod) -> windows_core::Result<()>; @@ -6413,105 +4745,60 @@ pub trait IBDA_DigitalDemodulator_Impl: Sized { } impl windows_core::RuntimeName for IBDA_DigitalDemodulator {} impl IBDA_DigitalDemodulator_Vtbl { - pub const fn new() -> IBDA_DigitalDemodulator_Vtbl - where - Identity: IBDA_DigitalDemodulator_Impl, - { - unsafe extern "system" fn SetModulationType(this: *mut core::ffi::c_void, pmodulationtype: *const ModulationType) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + pub const fn new() -> IBDA_DigitalDemodulator_Vtbl { + unsafe extern "system" fn SetModulationType(this: *mut core::ffi::c_void, pmodulationtype: *const ModulationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::SetModulationType(this, core::mem::transmute_copy(&pmodulationtype)).into() } - unsafe extern "system" fn ModulationType(this: *mut core::ffi::c_void, pmodulationtype: *mut ModulationType) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn ModulationType(this: *mut core::ffi::c_void, pmodulationtype: *mut ModulationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::ModulationType(this, core::mem::transmute_copy(&pmodulationtype)).into() } - unsafe extern "system" fn SetInnerFECMethod(this: *mut core::ffi::c_void, pfecmethod: *const FECMethod) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn SetInnerFECMethod(this: *mut core::ffi::c_void, pfecmethod: *const FECMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::SetInnerFECMethod(this, core::mem::transmute_copy(&pfecmethod)).into() } - unsafe extern "system" fn InnerFECMethod(this: *mut core::ffi::c_void, pfecmethod: *mut FECMethod) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn InnerFECMethod(this: *mut core::ffi::c_void, pfecmethod: *mut FECMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::InnerFECMethod(this, core::mem::transmute_copy(&pfecmethod)).into() } - unsafe extern "system" fn SetInnerFECRate(this: *mut core::ffi::c_void, pfecrate: *const BinaryConvolutionCodeRate) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn SetInnerFECRate(this: *mut core::ffi::c_void, pfecrate: *const BinaryConvolutionCodeRate) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::SetInnerFECRate(this, core::mem::transmute_copy(&pfecrate)).into() } - unsafe extern "system" fn InnerFECRate(this: *mut core::ffi::c_void, pfecrate: *mut BinaryConvolutionCodeRate) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn InnerFECRate(this: *mut core::ffi::c_void, pfecrate: *mut BinaryConvolutionCodeRate) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::InnerFECRate(this, core::mem::transmute_copy(&pfecrate)).into() } - unsafe extern "system" fn SetOuterFECMethod(this: *mut core::ffi::c_void, pfecmethod: *const FECMethod) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn SetOuterFECMethod(this: *mut core::ffi::c_void, pfecmethod: *const FECMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::SetOuterFECMethod(this, core::mem::transmute_copy(&pfecmethod)).into() } - unsafe extern "system" fn OuterFECMethod(this: *mut core::ffi::c_void, pfecmethod: *mut FECMethod) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn OuterFECMethod(this: *mut core::ffi::c_void, pfecmethod: *mut FECMethod) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::OuterFECMethod(this, core::mem::transmute_copy(&pfecmethod)).into() } - unsafe extern "system" fn SetOuterFECRate(this: *mut core::ffi::c_void, pfecrate: *const BinaryConvolutionCodeRate) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn SetOuterFECRate(this: *mut core::ffi::c_void, pfecrate: *const BinaryConvolutionCodeRate) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::SetOuterFECRate(this, core::mem::transmute_copy(&pfecrate)).into() } - unsafe extern "system" fn OuterFECRate(this: *mut core::ffi::c_void, pfecrate: *mut BinaryConvolutionCodeRate) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn OuterFECRate(this: *mut core::ffi::c_void, pfecrate: *mut BinaryConvolutionCodeRate) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::OuterFECRate(this, core::mem::transmute_copy(&pfecrate)).into() } - unsafe extern "system" fn SetSymbolRate(this: *mut core::ffi::c_void, psymbolrate: *const u32) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn SetSymbolRate(this: *mut core::ffi::c_void, psymbolrate: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::SetSymbolRate(this, core::mem::transmute_copy(&psymbolrate)).into() } - unsafe extern "system" fn SymbolRate(this: *mut core::ffi::c_void, psymbolrate: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn SymbolRate(this: *mut core::ffi::c_void, psymbolrate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::SymbolRate(this, core::mem::transmute_copy(&psymbolrate)).into() } - unsafe extern "system" fn SetSpectralInversion(this: *mut core::ffi::c_void, pspectralinversion: *const SpectralInversion) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn SetSpectralInversion(this: *mut core::ffi::c_void, pspectralinversion: *const SpectralInversion) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::SetSpectralInversion(this, core::mem::transmute_copy(&pspectralinversion)).into() } - unsafe extern "system" fn SpectralInversion(this: *mut core::ffi::c_void, pspectralinversion: *mut SpectralInversion) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator_Impl, - { + unsafe extern "system" fn SpectralInversion(this: *mut core::ffi::c_void, pspectralinversion: *mut SpectralInversion) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator_Impl::SpectralInversion(this, core::mem::transmute_copy(&pspectralinversion)).into() } @@ -6549,63 +4836,36 @@ pub trait IBDA_DigitalDemodulator2_Impl: Sized + IBDA_DigitalDemodulator_Impl { } impl windows_core::RuntimeName for IBDA_DigitalDemodulator2 {} impl IBDA_DigitalDemodulator2_Vtbl { - pub const fn new() -> IBDA_DigitalDemodulator2_Vtbl - where - Identity: IBDA_DigitalDemodulator2_Impl, - { - unsafe extern "system" fn SetGuardInterval(this: *mut core::ffi::c_void, pguardinterval: *const GuardInterval) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator2_Impl, - { + pub const fn new() -> IBDA_DigitalDemodulator2_Vtbl { + unsafe extern "system" fn SetGuardInterval(this: *mut core::ffi::c_void, pguardinterval: *const GuardInterval) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator2_Impl::SetGuardInterval(this, core::mem::transmute_copy(&pguardinterval)).into() } - unsafe extern "system" fn GuardInterval(this: *mut core::ffi::c_void, pguardinterval: *mut GuardInterval) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator2_Impl, - { + unsafe extern "system" fn GuardInterval(this: *mut core::ffi::c_void, pguardinterval: *mut GuardInterval) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator2_Impl::GuardInterval(this, core::mem::transmute_copy(&pguardinterval)).into() } - unsafe extern "system" fn SetTransmissionMode(this: *mut core::ffi::c_void, ptransmissionmode: *const TransmissionMode) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator2_Impl, - { + unsafe extern "system" fn SetTransmissionMode(this: *mut core::ffi::c_void, ptransmissionmode: *const TransmissionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator2_Impl::SetTransmissionMode(this, core::mem::transmute_copy(&ptransmissionmode)).into() } - unsafe extern "system" fn TransmissionMode(this: *mut core::ffi::c_void, ptransmissionmode: *mut TransmissionMode) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator2_Impl, - { + unsafe extern "system" fn TransmissionMode(this: *mut core::ffi::c_void, ptransmissionmode: *mut TransmissionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator2_Impl::TransmissionMode(this, core::mem::transmute_copy(&ptransmissionmode)).into() } - unsafe extern "system" fn SetRollOff(this: *mut core::ffi::c_void, prolloff: *const RollOff) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator2_Impl, - { + unsafe extern "system" fn SetRollOff(this: *mut core::ffi::c_void, prolloff: *const RollOff) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator2_Impl::SetRollOff(this, core::mem::transmute_copy(&prolloff)).into() } - unsafe extern "system" fn RollOff(this: *mut core::ffi::c_void, prolloff: *mut RollOff) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator2_Impl, - { + unsafe extern "system" fn RollOff(this: *mut core::ffi::c_void, prolloff: *mut RollOff) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator2_Impl::RollOff(this, core::mem::transmute_copy(&prolloff)).into() } - unsafe extern "system" fn SetPilot(this: *mut core::ffi::c_void, ppilot: *const Pilot) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator2_Impl, - { + unsafe extern "system" fn SetPilot(this: *mut core::ffi::c_void, ppilot: *const Pilot) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator2_Impl::SetPilot(this, core::mem::transmute_copy(&ppilot)).into() } - unsafe extern "system" fn Pilot(this: *mut core::ffi::c_void, ppilot: *mut Pilot) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator2_Impl, - { + unsafe extern "system" fn Pilot(this: *mut core::ffi::c_void, ppilot: *mut Pilot) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator2_Impl::Pilot(this, core::mem::transmute_copy(&ppilot)).into() } @@ -6633,35 +4893,20 @@ pub trait IBDA_DigitalDemodulator3_Impl: Sized + IBDA_DigitalDemodulator2_Impl { } impl windows_core::RuntimeName for IBDA_DigitalDemodulator3 {} impl IBDA_DigitalDemodulator3_Vtbl { - pub const fn new() -> IBDA_DigitalDemodulator3_Vtbl - where - Identity: IBDA_DigitalDemodulator3_Impl, - { - unsafe extern "system" fn SetSignalTimeouts(this: *mut core::ffi::c_void, psignaltimeouts: *const BDA_SIGNAL_TIMEOUTS) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator3_Impl, - { + pub const fn new() -> IBDA_DigitalDemodulator3_Vtbl { + unsafe extern "system" fn SetSignalTimeouts(this: *mut core::ffi::c_void, psignaltimeouts: *const BDA_SIGNAL_TIMEOUTS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator3_Impl::SetSignalTimeouts(this, core::mem::transmute_copy(&psignaltimeouts)).into() } - unsafe extern "system" fn SignalTimeouts(this: *mut core::ffi::c_void, psignaltimeouts: *mut BDA_SIGNAL_TIMEOUTS) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator3_Impl, - { + unsafe extern "system" fn SignalTimeouts(this: *mut core::ffi::c_void, psignaltimeouts: *mut BDA_SIGNAL_TIMEOUTS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator3_Impl::SignalTimeouts(this, core::mem::transmute_copy(&psignaltimeouts)).into() } - unsafe extern "system" fn SetPLPNumber(this: *mut core::ffi::c_void, pplpnumber: *const u32) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator3_Impl, - { + unsafe extern "system" fn SetPLPNumber(this: *mut core::ffi::c_void, pplpnumber: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator3_Impl::SetPLPNumber(this, core::mem::transmute_copy(&pplpnumber)).into() } - unsafe extern "system" fn PLPNumber(this: *mut core::ffi::c_void, pplpnumber: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_DigitalDemodulator3_Impl, - { + unsafe extern "system" fn PLPNumber(this: *mut core::ffi::c_void, pplpnumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DigitalDemodulator3_Impl::PLPNumber(this, core::mem::transmute_copy(&pplpnumber)).into() } @@ -6677,7 +4922,7 @@ impl IBDA_DigitalDemodulator3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IBDA_DiseqCommand_Impl: Sized { +pub trait IBDA_DiseqCommand_Impl: Sized + windows_core::IUnknownImpl { fn SetEnableDiseqCommands(&self, benable: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; fn SetDiseqLNBSource(&self, ullnbsource: u32) -> windows_core::Result<()>; fn SetDiseqUseToneBurst(&self, busetoneburst: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; @@ -6687,49 +4932,28 @@ pub trait IBDA_DiseqCommand_Impl: Sized { } impl windows_core::RuntimeName for IBDA_DiseqCommand {} impl IBDA_DiseqCommand_Vtbl { - pub const fn new() -> IBDA_DiseqCommand_Vtbl - where - Identity: IBDA_DiseqCommand_Impl, - { - unsafe extern "system" fn SetEnableDiseqCommands(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT - where - Identity: IBDA_DiseqCommand_Impl, - { + pub const fn new() -> IBDA_DiseqCommand_Vtbl { + unsafe extern "system" fn SetEnableDiseqCommands(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DiseqCommand_Impl::SetEnableDiseqCommands(this, core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn SetDiseqLNBSource(this: *mut core::ffi::c_void, ullnbsource: u32) -> windows_core::HRESULT - where - Identity: IBDA_DiseqCommand_Impl, - { + unsafe extern "system" fn SetDiseqLNBSource(this: *mut core::ffi::c_void, ullnbsource: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DiseqCommand_Impl::SetDiseqLNBSource(this, core::mem::transmute_copy(&ullnbsource)).into() } - unsafe extern "system" fn SetDiseqUseToneBurst(this: *mut core::ffi::c_void, busetoneburst: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT - where - Identity: IBDA_DiseqCommand_Impl, - { + unsafe extern "system" fn SetDiseqUseToneBurst(this: *mut core::ffi::c_void, busetoneburst: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DiseqCommand_Impl::SetDiseqUseToneBurst(this, core::mem::transmute_copy(&busetoneburst)).into() } - unsafe extern "system" fn SetDiseqRepeats(this: *mut core::ffi::c_void, ulrepeats: u32) -> windows_core::HRESULT - where - Identity: IBDA_DiseqCommand_Impl, - { + unsafe extern "system" fn SetDiseqRepeats(this: *mut core::ffi::c_void, ulrepeats: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DiseqCommand_Impl::SetDiseqRepeats(this, core::mem::transmute_copy(&ulrepeats)).into() } - unsafe extern "system" fn put_DiseqSendCommand(this: *mut core::ffi::c_void, ulrequestid: u32, ulcbcommandlen: u32, pbcommand: *const u8) -> windows_core::HRESULT - where - Identity: IBDA_DiseqCommand_Impl, - { + unsafe extern "system" fn put_DiseqSendCommand(this: *mut core::ffi::c_void, ulrequestid: u32, ulcbcommandlen: u32, pbcommand: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DiseqCommand_Impl::put_DiseqSendCommand(this, core::mem::transmute_copy(&ulrequestid), core::mem::transmute_copy(&ulcbcommandlen), core::mem::transmute_copy(&pbcommand)).into() } - unsafe extern "system" fn get_DiseqResponse(this: *mut core::ffi::c_void, ulrequestid: u32, pulcbresponselen: *mut u32, pbresponse: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_DiseqCommand_Impl, - { + unsafe extern "system" fn get_DiseqResponse(this: *mut core::ffi::c_void, ulrequestid: u32, pulcbresponselen: *mut u32, pbresponse: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DiseqCommand_Impl::get_DiseqResponse(this, core::mem::transmute_copy(&ulrequestid), core::mem::transmute_copy(&pulcbresponselen), core::mem::transmute_copy(&pbresponse)).into() } @@ -6747,19 +4971,13 @@ impl IBDA_DiseqCommand_Vtbl { iid == &::IID } } -pub trait IBDA_EasMessage_Impl: Sized { +pub trait IBDA_EasMessage_Impl: Sized + windows_core::IUnknownImpl { fn get_EasMessage(&self, uleventid: u32, ppeasobject: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_EasMessage {} impl IBDA_EasMessage_Vtbl { - pub const fn new() -> IBDA_EasMessage_Vtbl - where - Identity: IBDA_EasMessage_Impl, - { - unsafe extern "system" fn get_EasMessage(this: *mut core::ffi::c_void, uleventid: u32, ppeasobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_EasMessage_Impl, - { + pub const fn new() -> IBDA_EasMessage_Vtbl { + unsafe extern "system" fn get_EasMessage(this: *mut core::ffi::c_void, uleventid: u32, ppeasobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_EasMessage_Impl::get_EasMessage(this, core::mem::transmute_copy(&uleventid), core::mem::transmute_copy(&ppeasobject)).into() } @@ -6769,7 +4987,7 @@ impl IBDA_EasMessage_Vtbl { iid == &::IID } } -pub trait IBDA_Encoder_Impl: Sized { +pub trait IBDA_Encoder_Impl: Sized + windows_core::IUnknownImpl { fn QueryCapabilities(&self, numaudiofmts: *mut u32, numvideofmts: *mut u32) -> windows_core::Result<()>; fn EnumAudioCapability(&self, fmtindex: u32, methodid: *mut u32, algorithmtype: *mut u32, samplingrate: *mut u32, bitdepth: *mut u32, numchannels: *mut u32) -> windows_core::Result<()>; fn EnumVideoCapability(&self, fmtindex: u32, methodid: *mut u32, algorithmtype: *mut u32, verticalsize: *mut u32, horizontalsize: *mut u32, aspectratio: *mut u32, frameratecode: *mut u32, progressivesequence: *mut u32) -> windows_core::Result<()>; @@ -6778,42 +4996,24 @@ pub trait IBDA_Encoder_Impl: Sized { } impl windows_core::RuntimeName for IBDA_Encoder {} impl IBDA_Encoder_Vtbl { - pub const fn new() -> IBDA_Encoder_Vtbl - where - Identity: IBDA_Encoder_Impl, - { - unsafe extern "system" fn QueryCapabilities(this: *mut core::ffi::c_void, numaudiofmts: *mut u32, numvideofmts: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_Encoder_Impl, - { + pub const fn new() -> IBDA_Encoder_Vtbl { + unsafe extern "system" fn QueryCapabilities(this: *mut core::ffi::c_void, numaudiofmts: *mut u32, numvideofmts: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Encoder_Impl::QueryCapabilities(this, core::mem::transmute_copy(&numaudiofmts), core::mem::transmute_copy(&numvideofmts)).into() } - unsafe extern "system" fn EnumAudioCapability(this: *mut core::ffi::c_void, fmtindex: u32, methodid: *mut u32, algorithmtype: *mut u32, samplingrate: *mut u32, bitdepth: *mut u32, numchannels: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_Encoder_Impl, - { + unsafe extern "system" fn EnumAudioCapability(this: *mut core::ffi::c_void, fmtindex: u32, methodid: *mut u32, algorithmtype: *mut u32, samplingrate: *mut u32, bitdepth: *mut u32, numchannels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Encoder_Impl::EnumAudioCapability(this, core::mem::transmute_copy(&fmtindex), core::mem::transmute_copy(&methodid), core::mem::transmute_copy(&algorithmtype), core::mem::transmute_copy(&samplingrate), core::mem::transmute_copy(&bitdepth), core::mem::transmute_copy(&numchannels)).into() } - unsafe extern "system" fn EnumVideoCapability(this: *mut core::ffi::c_void, fmtindex: u32, methodid: *mut u32, algorithmtype: *mut u32, verticalsize: *mut u32, horizontalsize: *mut u32, aspectratio: *mut u32, frameratecode: *mut u32, progressivesequence: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_Encoder_Impl, - { + unsafe extern "system" fn EnumVideoCapability(this: *mut core::ffi::c_void, fmtindex: u32, methodid: *mut u32, algorithmtype: *mut u32, verticalsize: *mut u32, horizontalsize: *mut u32, aspectratio: *mut u32, frameratecode: *mut u32, progressivesequence: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Encoder_Impl::EnumVideoCapability(this, core::mem::transmute_copy(&fmtindex), core::mem::transmute_copy(&methodid), core::mem::transmute_copy(&algorithmtype), core::mem::transmute_copy(&verticalsize), core::mem::transmute_copy(&horizontalsize), core::mem::transmute_copy(&aspectratio), core::mem::transmute_copy(&frameratecode), core::mem::transmute_copy(&progressivesequence)).into() } - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, audiobitratemode: u32, audiobitrate: u32, audiomethodid: u32, audioprogram: u32, videobitratemode: u32, videobitrate: u32, videomethodid: u32) -> windows_core::HRESULT - where - Identity: IBDA_Encoder_Impl, - { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, audiobitratemode: u32, audiobitrate: u32, audiomethodid: u32, audioprogram: u32, videobitratemode: u32, videobitrate: u32, videomethodid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Encoder_Impl::SetParameters(this, core::mem::transmute_copy(&audiobitratemode), core::mem::transmute_copy(&audiobitrate), core::mem::transmute_copy(&audiomethodid), core::mem::transmute_copy(&audioprogram), core::mem::transmute_copy(&videobitratemode), core::mem::transmute_copy(&videobitrate), core::mem::transmute_copy(&videomethodid)).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, audiobitratemax: *mut u32, audiobitratemin: *mut u32, audiobitratemode: *mut u32, audiobitratestepping: *mut u32, audiobitrate: *mut u32, audiomethodid: *mut u32, availableaudioprograms: *mut u32, audioprogram: *mut u32, videobitratemax: *mut u32, videobitratemin: *mut u32, videobitratemode: *mut u32, videobitrate: *mut u32, videobitratestepping: *mut u32, videomethodid: *mut u32, signalsourceid: *mut u32, signalformat: *mut u64, signallock: *mut super::super::Foundation::BOOL, signallevel: *mut i32, signaltonoiseratio: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_Encoder_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, audiobitratemax: *mut u32, audiobitratemin: *mut u32, audiobitratemode: *mut u32, audiobitratestepping: *mut u32, audiobitrate: *mut u32, audiomethodid: *mut u32, availableaudioprograms: *mut u32, audioprogram: *mut u32, videobitratemax: *mut u32, videobitratemin: *mut u32, videobitratemode: *mut u32, videobitrate: *mut u32, videobitratestepping: *mut u32, videomethodid: *mut u32, signalsourceid: *mut u32, signalformat: *mut u64, signallock: *mut super::super::Foundation::BOOL, signallevel: *mut i32, signaltonoiseratio: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Encoder_Impl::GetState( this, @@ -6852,7 +5052,7 @@ impl IBDA_Encoder_Vtbl { iid == &::IID } } -pub trait IBDA_EthernetFilter_Impl: Sized { +pub trait IBDA_EthernetFilter_Impl: Sized + windows_core::IUnknownImpl { fn GetMulticastListSize(&self, pulcbaddresses: *mut u32) -> windows_core::Result<()>; fn PutMulticastList(&self, ulcbaddresses: u32, paddresslist: *const u8) -> windows_core::Result<()>; fn GetMulticastList(&self, pulcbaddresses: *mut u32, paddresslist: *mut u8) -> windows_core::Result<()>; @@ -6861,42 +5061,24 @@ pub trait IBDA_EthernetFilter_Impl: Sized { } impl windows_core::RuntimeName for IBDA_EthernetFilter {} impl IBDA_EthernetFilter_Vtbl { - pub const fn new() -> IBDA_EthernetFilter_Vtbl - where - Identity: IBDA_EthernetFilter_Impl, - { - unsafe extern "system" fn GetMulticastListSize(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_EthernetFilter_Impl, - { + pub const fn new() -> IBDA_EthernetFilter_Vtbl { + unsafe extern "system" fn GetMulticastListSize(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_EthernetFilter_Impl::GetMulticastListSize(this, core::mem::transmute_copy(&pulcbaddresses)).into() } - unsafe extern "system" fn PutMulticastList(this: *mut core::ffi::c_void, ulcbaddresses: u32, paddresslist: *const u8) -> windows_core::HRESULT - where - Identity: IBDA_EthernetFilter_Impl, - { + unsafe extern "system" fn PutMulticastList(this: *mut core::ffi::c_void, ulcbaddresses: u32, paddresslist: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_EthernetFilter_Impl::PutMulticastList(this, core::mem::transmute_copy(&ulcbaddresses), core::mem::transmute_copy(&paddresslist)).into() } - unsafe extern "system" fn GetMulticastList(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32, paddresslist: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_EthernetFilter_Impl, - { + unsafe extern "system" fn GetMulticastList(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32, paddresslist: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_EthernetFilter_Impl::GetMulticastList(this, core::mem::transmute_copy(&pulcbaddresses), core::mem::transmute_copy(&paddresslist)).into() } - unsafe extern "system" fn PutMulticastMode(this: *mut core::ffi::c_void, ulmodemask: u32) -> windows_core::HRESULT - where - Identity: IBDA_EthernetFilter_Impl, - { + unsafe extern "system" fn PutMulticastMode(this: *mut core::ffi::c_void, ulmodemask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_EthernetFilter_Impl::PutMulticastMode(this, core::mem::transmute_copy(&ulmodemask)).into() } - unsafe extern "system" fn GetMulticastMode(this: *mut core::ffi::c_void, pulmodemask: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_EthernetFilter_Impl, - { + unsafe extern "system" fn GetMulticastMode(this: *mut core::ffi::c_void, pulmodemask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_EthernetFilter_Impl::GetMulticastMode(this) { Ok(ok__) => { @@ -6919,19 +5101,13 @@ impl IBDA_EthernetFilter_Vtbl { iid == &::IID } } -pub trait IBDA_EventingService_Impl: Sized { +pub trait IBDA_EventingService_Impl: Sized + windows_core::IUnknownImpl { fn CompleteEvent(&self, uleventid: u32, uleventresult: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_EventingService {} impl IBDA_EventingService_Vtbl { - pub const fn new() -> IBDA_EventingService_Vtbl - where - Identity: IBDA_EventingService_Impl, - { - unsafe extern "system" fn CompleteEvent(this: *mut core::ffi::c_void, uleventid: u32, uleventresult: u32) -> windows_core::HRESULT - where - Identity: IBDA_EventingService_Impl, - { + pub const fn new() -> IBDA_EventingService_Vtbl { + unsafe extern "system" fn CompleteEvent(this: *mut core::ffi::c_void, uleventid: u32, uleventresult: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_EventingService_Impl::CompleteEvent(this, core::mem::transmute_copy(&uleventid), core::mem::transmute_copy(&uleventresult)).into() } @@ -6941,7 +5117,7 @@ impl IBDA_EventingService_Vtbl { iid == &::IID } } -pub trait IBDA_FDC_Impl: Sized { +pub trait IBDA_FDC_Impl: Sized + windows_core::IUnknownImpl { 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; @@ -6952,28 +5128,16 @@ pub trait IBDA_FDC_Impl: Sized { } impl windows_core::RuntimeName for IBDA_FDC {} impl IBDA_FDC_Vtbl { - pub const fn new() -> IBDA_FDC_Vtbl - where - Identity: IBDA_FDC_Impl, - { - unsafe extern "system" fn GetStatus(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::MaybeUninit, currenttidlist: *mut core::mem::MaybeUninit, overflow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBDA_FDC_Impl, - { + pub const fn new() -> IBDA_FDC_Vtbl { + unsafe extern "system" fn GetStatus(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::MaybeUninit, currenttidlist: *mut core::mem::MaybeUninit, overflow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FDC_Impl::GetStatus(this, 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(this: *mut core::ffi::c_void, tableids: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_FDC_Impl, - { + unsafe extern "system" fn RequestTables(this: *mut core::ffi::c_void, tableids: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FDC_Impl::RequestTables(this, core::mem::transmute(&tableids)).into() } - unsafe extern "system" fn AddPid(this: *mut core::ffi::c_void, pidstoadd: core::mem::MaybeUninit, remainingfilterentries: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_FDC_Impl, - { + unsafe extern "system" fn AddPid(this: *mut core::ffi::c_void, pidstoadd: core::mem::MaybeUninit, remainingfilterentries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_FDC_Impl::AddPid(this, core::mem::transmute(&pidstoadd)) { Ok(ok__) => { @@ -6983,17 +5147,11 @@ impl IBDA_FDC_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePid(this: *mut core::ffi::c_void, pidstoremove: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_FDC_Impl, - { + unsafe extern "system" fn RemovePid(this: *mut core::ffi::c_void, pidstoremove: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FDC_Impl::RemovePid(this, core::mem::transmute(&pidstoremove)).into() } - unsafe extern "system" fn AddTid(this: *mut core::ffi::c_void, tidstoadd: core::mem::MaybeUninit, currenttidlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_FDC_Impl, - { + unsafe extern "system" fn AddTid(this: *mut core::ffi::c_void, tidstoadd: core::mem::MaybeUninit, currenttidlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_FDC_Impl::AddTid(this, core::mem::transmute(&tidstoadd)) { Ok(ok__) => { @@ -7003,17 +5161,11 @@ impl IBDA_FDC_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveTid(this: *mut core::ffi::c_void, tidstoremove: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_FDC_Impl, - { + unsafe extern "system" fn RemoveTid(this: *mut core::ffi::c_void, tidstoremove: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FDC_Impl::RemoveTid(this, core::mem::transmute(&tidstoremove)).into() } - unsafe extern "system" fn GetTableSection(this: *mut core::ffi::c_void, pid: *mut u32, maxbuffersize: u32, actualsize: *mut u32, secbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_FDC_Impl, - { + unsafe extern "system" fn GetTableSection(this: *mut core::ffi::c_void, pid: *mut u32, maxbuffersize: u32, actualsize: *mut u32, secbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FDC_Impl::GetTableSection(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&maxbuffersize), core::mem::transmute_copy(&actualsize), core::mem::transmute_copy(&secbuffer)).into() } @@ -7032,7 +5184,7 @@ impl IBDA_FDC_Vtbl { iid == &::IID } } -pub trait IBDA_FrequencyFilter_Impl: Sized { +pub trait IBDA_FrequencyFilter_Impl: Sized + windows_core::IUnknownImpl { fn SetAutotune(&self, ultransponder: u32) -> windows_core::Result<()>; fn Autotune(&self, pultransponder: *mut u32) -> windows_core::Result<()>; fn SetFrequency(&self, ulfrequency: u32) -> windows_core::Result<()>; @@ -7048,91 +5200,52 @@ pub trait IBDA_FrequencyFilter_Impl: Sized { } impl windows_core::RuntimeName for IBDA_FrequencyFilter {} impl IBDA_FrequencyFilter_Vtbl { - pub const fn new() -> IBDA_FrequencyFilter_Vtbl - where - Identity: IBDA_FrequencyFilter_Impl, - { - unsafe extern "system" fn SetAutotune(this: *mut core::ffi::c_void, ultransponder: u32) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + pub const fn new() -> IBDA_FrequencyFilter_Vtbl { + unsafe extern "system" fn SetAutotune(this: *mut core::ffi::c_void, ultransponder: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::SetAutotune(this, core::mem::transmute_copy(&ultransponder)).into() } - unsafe extern "system" fn Autotune(this: *mut core::ffi::c_void, pultransponder: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn Autotune(this: *mut core::ffi::c_void, pultransponder: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::Autotune(this, core::mem::transmute_copy(&pultransponder)).into() } - unsafe extern "system" fn SetFrequency(this: *mut core::ffi::c_void, ulfrequency: u32) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn SetFrequency(this: *mut core::ffi::c_void, ulfrequency: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::SetFrequency(this, core::mem::transmute_copy(&ulfrequency)).into() } - unsafe extern "system" fn Frequency(this: *mut core::ffi::c_void, pulfrequency: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn Frequency(this: *mut core::ffi::c_void, pulfrequency: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::Frequency(this, core::mem::transmute_copy(&pulfrequency)).into() } - unsafe extern "system" fn SetPolarity(this: *mut core::ffi::c_void, polarity: Polarisation) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn SetPolarity(this: *mut core::ffi::c_void, polarity: Polarisation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::SetPolarity(this, core::mem::transmute_copy(&polarity)).into() } - unsafe extern "system" fn Polarity(this: *mut core::ffi::c_void, ppolarity: *mut Polarisation) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn Polarity(this: *mut core::ffi::c_void, ppolarity: *mut Polarisation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::Polarity(this, core::mem::transmute_copy(&ppolarity)).into() } - unsafe extern "system" fn SetRange(this: *mut core::ffi::c_void, ulrange: u32) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn SetRange(this: *mut core::ffi::c_void, ulrange: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::SetRange(this, core::mem::transmute_copy(&ulrange)).into() } - unsafe extern "system" fn Range(this: *mut core::ffi::c_void, pulrange: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn Range(this: *mut core::ffi::c_void, pulrange: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::Range(this, core::mem::transmute_copy(&pulrange)).into() } - unsafe extern "system" fn SetBandwidth(this: *mut core::ffi::c_void, ulbandwidth: u32) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn SetBandwidth(this: *mut core::ffi::c_void, ulbandwidth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::SetBandwidth(this, core::mem::transmute_copy(&ulbandwidth)).into() } - unsafe extern "system" fn Bandwidth(this: *mut core::ffi::c_void, pulbandwidth: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn Bandwidth(this: *mut core::ffi::c_void, pulbandwidth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::Bandwidth(this, core::mem::transmute_copy(&pulbandwidth)).into() } - unsafe extern "system" fn SetFrequencyMultiplier(this: *mut core::ffi::c_void, ulmultiplier: u32) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn SetFrequencyMultiplier(this: *mut core::ffi::c_void, ulmultiplier: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::SetFrequencyMultiplier(this, core::mem::transmute_copy(&ulmultiplier)).into() } - unsafe extern "system" fn FrequencyMultiplier(this: *mut core::ffi::c_void, pulmultiplier: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_FrequencyFilter_Impl, - { + unsafe extern "system" fn FrequencyMultiplier(this: *mut core::ffi::c_void, pulmultiplier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FrequencyFilter_Impl::FrequencyMultiplier(this, core::mem::transmute_copy(&pulmultiplier)).into() } @@ -7156,7 +5269,7 @@ impl IBDA_FrequencyFilter_Vtbl { iid == &::IID } } -pub trait IBDA_GuideDataDeliveryService_Impl: Sized { +pub trait IBDA_GuideDataDeliveryService_Impl: Sized + windows_core::IUnknownImpl { fn GetGuideDataType(&self) -> windows_core::Result; fn GetGuideData(&self, pulcbbufferlen: *mut u32, pbbuffer: *mut u8, pulguidedatapercentageprogress: *mut u32) -> windows_core::Result<()>; fn RequestGuideDataUpdate(&self) -> windows_core::Result<()>; @@ -7166,14 +5279,8 @@ pub trait IBDA_GuideDataDeliveryService_Impl: Sized { } impl windows_core::RuntimeName for IBDA_GuideDataDeliveryService {} impl IBDA_GuideDataDeliveryService_Vtbl { - pub const fn new() -> IBDA_GuideDataDeliveryService_Vtbl - where - Identity: IBDA_GuideDataDeliveryService_Impl, - { - unsafe extern "system" fn GetGuideDataType(this: *mut core::ffi::c_void, pguiddatatype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_GuideDataDeliveryService_Impl, - { + pub const fn new() -> IBDA_GuideDataDeliveryService_Vtbl { + unsafe extern "system" fn GetGuideDataType(this: *mut core::ffi::c_void, pguiddatatype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_GuideDataDeliveryService_Impl::GetGuideDataType(this) { Ok(ok__) => { @@ -7183,24 +5290,15 @@ impl IBDA_GuideDataDeliveryService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGuideData(this: *mut core::ffi::c_void, pulcbbufferlen: *mut u32, pbbuffer: *mut u8, pulguidedatapercentageprogress: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_GuideDataDeliveryService_Impl, - { + unsafe extern "system" fn GetGuideData(this: *mut core::ffi::c_void, pulcbbufferlen: *mut u32, pbbuffer: *mut u8, pulguidedatapercentageprogress: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_GuideDataDeliveryService_Impl::GetGuideData(this, core::mem::transmute_copy(&pulcbbufferlen), core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&pulguidedatapercentageprogress)).into() } - unsafe extern "system" fn RequestGuideDataUpdate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_GuideDataDeliveryService_Impl, - { + unsafe extern "system" fn RequestGuideDataUpdate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_GuideDataDeliveryService_Impl::RequestGuideDataUpdate(this).into() } - unsafe extern "system" fn GetTuneXmlFromServiceIdx(this: *mut core::ffi::c_void, ul64serviceidx: u64, pbstrtunexml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_GuideDataDeliveryService_Impl, - { + unsafe extern "system" fn GetTuneXmlFromServiceIdx(this: *mut core::ffi::c_void, ul64serviceidx: u64, pbstrtunexml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_GuideDataDeliveryService_Impl::GetTuneXmlFromServiceIdx(this, core::mem::transmute_copy(&ul64serviceidx)) { Ok(ok__) => { @@ -7210,17 +5308,11 @@ impl IBDA_GuideDataDeliveryService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServices(this: *mut core::ffi::c_void, pulcbbufferlen: *mut u32, pbbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_GuideDataDeliveryService_Impl, - { + unsafe extern "system" fn GetServices(this: *mut core::ffi::c_void, pulcbbufferlen: *mut u32, pbbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_GuideDataDeliveryService_Impl::GetServices(this, core::mem::transmute_copy(&pulcbbufferlen), core::mem::transmute_copy(&pbbuffer)).into() } - unsafe extern "system" fn GetServiceInfoFromTuneXml(this: *mut core::ffi::c_void, bstrtunexml: core::mem::MaybeUninit, pbstrservicedescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_GuideDataDeliveryService_Impl, - { + unsafe extern "system" fn GetServiceInfoFromTuneXml(this: *mut core::ffi::c_void, bstrtunexml: core::mem::MaybeUninit, pbstrservicedescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_GuideDataDeliveryService_Impl::GetServiceInfoFromTuneXml(this, core::mem::transmute(&bstrtunexml)) { Ok(ok__) => { @@ -7244,27 +5336,18 @@ impl IBDA_GuideDataDeliveryService_Vtbl { iid == &::IID } } -pub trait IBDA_IPSinkControl_Impl: Sized { +pub trait IBDA_IPSinkControl_Impl: Sized + windows_core::IUnknownImpl { fn GetMulticastList(&self, pulcbsize: *mut u32, pbbuffer: *mut *mut u8) -> windows_core::Result<()>; fn GetAdapterIPAddress(&self, pulcbsize: *mut u32, pbbuffer: *mut *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_IPSinkControl {} impl IBDA_IPSinkControl_Vtbl { - pub const fn new() -> IBDA_IPSinkControl_Vtbl - where - Identity: IBDA_IPSinkControl_Impl, - { - unsafe extern "system" fn GetMulticastList(this: *mut core::ffi::c_void, pulcbsize: *mut u32, pbbuffer: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_IPSinkControl_Impl, - { + pub const fn new() -> IBDA_IPSinkControl_Vtbl { + unsafe extern "system" fn GetMulticastList(this: *mut core::ffi::c_void, pulcbsize: *mut u32, pbbuffer: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPSinkControl_Impl::GetMulticastList(this, core::mem::transmute_copy(&pulcbsize), core::mem::transmute_copy(&pbbuffer)).into() } - unsafe extern "system" fn GetAdapterIPAddress(this: *mut core::ffi::c_void, pulcbsize: *mut u32, pbbuffer: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_IPSinkControl_Impl, - { + unsafe extern "system" fn GetAdapterIPAddress(this: *mut core::ffi::c_void, pulcbsize: *mut u32, pbbuffer: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPSinkControl_Impl::GetAdapterIPAddress(this, core::mem::transmute_copy(&pulcbsize), core::mem::transmute_copy(&pbbuffer)).into() } @@ -7278,28 +5361,19 @@ impl IBDA_IPSinkControl_Vtbl { iid == &::IID } } -pub trait IBDA_IPSinkInfo_Impl: Sized { +pub trait IBDA_IPSinkInfo_Impl: Sized + windows_core::IUnknownImpl { 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; } impl windows_core::RuntimeName for IBDA_IPSinkInfo {} impl IBDA_IPSinkInfo_Vtbl { - pub const fn new() -> IBDA_IPSinkInfo_Vtbl - where - Identity: IBDA_IPSinkInfo_Impl, - { - unsafe extern "system" fn get_MulticastList(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32, ppbaddresslist: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_IPSinkInfo_Impl, - { + pub const fn new() -> IBDA_IPSinkInfo_Vtbl { + unsafe extern "system" fn get_MulticastList(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32, ppbaddresslist: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPSinkInfo_Impl::get_MulticastList(this, core::mem::transmute_copy(&pulcbaddresses), core::mem::transmute_copy(&ppbaddresslist)).into() } - unsafe extern "system" fn AdapterIPAddress(this: *mut core::ffi::c_void, pbstrbuffer: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_IPSinkInfo_Impl, - { + unsafe extern "system" fn AdapterIPAddress(this: *mut core::ffi::c_void, pbstrbuffer: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_IPSinkInfo_Impl::AdapterIPAddress(this) { Ok(ok__) => { @@ -7309,10 +5383,7 @@ impl IBDA_IPSinkInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AdapterDescription(this: *mut core::ffi::c_void, pbstrbuffer: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_IPSinkInfo_Impl, - { + unsafe extern "system" fn AdapterDescription(this: *mut core::ffi::c_void, pbstrbuffer: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_IPSinkInfo_Impl::AdapterDescription(this) { Ok(ok__) => { @@ -7333,7 +5404,7 @@ impl IBDA_IPSinkInfo_Vtbl { iid == &::IID } } -pub trait IBDA_IPV4Filter_Impl: Sized { +pub trait IBDA_IPV4Filter_Impl: Sized + windows_core::IUnknownImpl { fn GetMulticastListSize(&self, pulcbaddresses: *mut u32) -> windows_core::Result<()>; fn PutMulticastList(&self, ulcbaddresses: u32, paddresslist: *const u8) -> windows_core::Result<()>; fn GetMulticastList(&self, pulcbaddresses: *mut u32, paddresslist: *mut u8) -> windows_core::Result<()>; @@ -7342,42 +5413,24 @@ pub trait IBDA_IPV4Filter_Impl: Sized { } impl windows_core::RuntimeName for IBDA_IPV4Filter {} impl IBDA_IPV4Filter_Vtbl { - pub const fn new() -> IBDA_IPV4Filter_Vtbl - where - Identity: IBDA_IPV4Filter_Impl, - { - unsafe extern "system" fn GetMulticastListSize(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_IPV4Filter_Impl, - { + pub const fn new() -> IBDA_IPV4Filter_Vtbl { + unsafe extern "system" fn GetMulticastListSize(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPV4Filter_Impl::GetMulticastListSize(this, core::mem::transmute_copy(&pulcbaddresses)).into() } - unsafe extern "system" fn PutMulticastList(this: *mut core::ffi::c_void, ulcbaddresses: u32, paddresslist: *const u8) -> windows_core::HRESULT - where - Identity: IBDA_IPV4Filter_Impl, - { + unsafe extern "system" fn PutMulticastList(this: *mut core::ffi::c_void, ulcbaddresses: u32, paddresslist: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPV4Filter_Impl::PutMulticastList(this, core::mem::transmute_copy(&ulcbaddresses), core::mem::transmute_copy(&paddresslist)).into() } - unsafe extern "system" fn GetMulticastList(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32, paddresslist: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_IPV4Filter_Impl, - { + unsafe extern "system" fn GetMulticastList(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32, paddresslist: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPV4Filter_Impl::GetMulticastList(this, core::mem::transmute_copy(&pulcbaddresses), core::mem::transmute_copy(&paddresslist)).into() } - unsafe extern "system" fn PutMulticastMode(this: *mut core::ffi::c_void, ulmodemask: u32) -> windows_core::HRESULT - where - Identity: IBDA_IPV4Filter_Impl, - { + unsafe extern "system" fn PutMulticastMode(this: *mut core::ffi::c_void, ulmodemask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPV4Filter_Impl::PutMulticastMode(this, core::mem::transmute_copy(&ulmodemask)).into() } - unsafe extern "system" fn GetMulticastMode(this: *mut core::ffi::c_void, pulmodemask: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_IPV4Filter_Impl, - { + unsafe extern "system" fn GetMulticastMode(this: *mut core::ffi::c_void, pulmodemask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_IPV4Filter_Impl::GetMulticastMode(this) { Ok(ok__) => { @@ -7400,7 +5453,7 @@ impl IBDA_IPV4Filter_Vtbl { iid == &::IID } } -pub trait IBDA_IPV6Filter_Impl: Sized { +pub trait IBDA_IPV6Filter_Impl: Sized + windows_core::IUnknownImpl { fn GetMulticastListSize(&self, pulcbaddresses: *mut u32) -> windows_core::Result<()>; fn PutMulticastList(&self, ulcbaddresses: u32, paddresslist: *const u8) -> windows_core::Result<()>; fn GetMulticastList(&self, pulcbaddresses: *mut u32, paddresslist: *mut u8) -> windows_core::Result<()>; @@ -7409,42 +5462,24 @@ pub trait IBDA_IPV6Filter_Impl: Sized { } impl windows_core::RuntimeName for IBDA_IPV6Filter {} impl IBDA_IPV6Filter_Vtbl { - pub const fn new() -> IBDA_IPV6Filter_Vtbl - where - Identity: IBDA_IPV6Filter_Impl, - { - unsafe extern "system" fn GetMulticastListSize(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_IPV6Filter_Impl, - { + pub const fn new() -> IBDA_IPV6Filter_Vtbl { + unsafe extern "system" fn GetMulticastListSize(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPV6Filter_Impl::GetMulticastListSize(this, core::mem::transmute_copy(&pulcbaddresses)).into() } - unsafe extern "system" fn PutMulticastList(this: *mut core::ffi::c_void, ulcbaddresses: u32, paddresslist: *const u8) -> windows_core::HRESULT - where - Identity: IBDA_IPV6Filter_Impl, - { + unsafe extern "system" fn PutMulticastList(this: *mut core::ffi::c_void, ulcbaddresses: u32, paddresslist: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPV6Filter_Impl::PutMulticastList(this, core::mem::transmute_copy(&ulcbaddresses), core::mem::transmute_copy(&paddresslist)).into() } - unsafe extern "system" fn GetMulticastList(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32, paddresslist: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_IPV6Filter_Impl, - { + unsafe extern "system" fn GetMulticastList(this: *mut core::ffi::c_void, pulcbaddresses: *mut u32, paddresslist: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPV6Filter_Impl::GetMulticastList(this, core::mem::transmute_copy(&pulcbaddresses), core::mem::transmute_copy(&paddresslist)).into() } - unsafe extern "system" fn PutMulticastMode(this: *mut core::ffi::c_void, ulmodemask: u32) -> windows_core::HRESULT - where - Identity: IBDA_IPV6Filter_Impl, - { + unsafe extern "system" fn PutMulticastMode(this: *mut core::ffi::c_void, ulmodemask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_IPV6Filter_Impl::PutMulticastMode(this, core::mem::transmute_copy(&ulmodemask)).into() } - unsafe extern "system" fn GetMulticastMode(this: *mut core::ffi::c_void, pulmodemask: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_IPV6Filter_Impl, - { + unsafe extern "system" fn GetMulticastMode(this: *mut core::ffi::c_void, pulmodemask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_IPV6Filter_Impl::GetMulticastMode(this) { Ok(ok__) => { @@ -7467,19 +5502,13 @@ impl IBDA_IPV6Filter_Vtbl { iid == &::IID } } -pub trait IBDA_ISDBConditionalAccess_Impl: Sized { +pub trait IBDA_ISDBConditionalAccess_Impl: Sized + windows_core::IUnknownImpl { fn SetIsdbCasRequest(&self, ulrequestid: u32, ulcbrequestbufferlen: u32, pbrequestbuffer: *const u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_ISDBConditionalAccess {} impl IBDA_ISDBConditionalAccess_Vtbl { - pub const fn new() -> IBDA_ISDBConditionalAccess_Vtbl - where - Identity: IBDA_ISDBConditionalAccess_Impl, - { - unsafe extern "system" fn SetIsdbCasRequest(this: *mut core::ffi::c_void, ulrequestid: u32, ulcbrequestbufferlen: u32, pbrequestbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IBDA_ISDBConditionalAccess_Impl, - { + pub const fn new() -> IBDA_ISDBConditionalAccess_Vtbl { + unsafe extern "system" fn SetIsdbCasRequest(this: *mut core::ffi::c_void, ulrequestid: u32, ulcbrequestbufferlen: u32, pbrequestbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_ISDBConditionalAccess_Impl::SetIsdbCasRequest(this, core::mem::transmute_copy(&ulrequestid), core::mem::transmute_copy(&ulcbrequestbufferlen), core::mem::transmute_copy(&pbrequestbuffer)).into() } @@ -7489,7 +5518,7 @@ impl IBDA_ISDBConditionalAccess_Vtbl { iid == &::IID } } -pub trait IBDA_LNBInfo_Impl: Sized { +pub trait IBDA_LNBInfo_Impl: Sized + windows_core::IUnknownImpl { fn SetLocalOscilatorFrequencyLowBand(&self, ulloflow: u32) -> windows_core::Result<()>; fn LocalOscilatorFrequencyLowBand(&self, pulloflow: *mut u32) -> windows_core::Result<()>; fn SetLocalOscilatorFrequencyHighBand(&self, ullofhigh: u32) -> windows_core::Result<()>; @@ -7499,49 +5528,28 @@ pub trait IBDA_LNBInfo_Impl: Sized { } impl windows_core::RuntimeName for IBDA_LNBInfo {} impl IBDA_LNBInfo_Vtbl { - pub const fn new() -> IBDA_LNBInfo_Vtbl - where - Identity: IBDA_LNBInfo_Impl, - { - unsafe extern "system" fn SetLocalOscilatorFrequencyLowBand(this: *mut core::ffi::c_void, ulloflow: u32) -> windows_core::HRESULT - where - Identity: IBDA_LNBInfo_Impl, - { + pub const fn new() -> IBDA_LNBInfo_Vtbl { + unsafe extern "system" fn SetLocalOscilatorFrequencyLowBand(this: *mut core::ffi::c_void, ulloflow: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_LNBInfo_Impl::SetLocalOscilatorFrequencyLowBand(this, core::mem::transmute_copy(&ulloflow)).into() } - unsafe extern "system" fn LocalOscilatorFrequencyLowBand(this: *mut core::ffi::c_void, pulloflow: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_LNBInfo_Impl, - { + unsafe extern "system" fn LocalOscilatorFrequencyLowBand(this: *mut core::ffi::c_void, pulloflow: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_LNBInfo_Impl::LocalOscilatorFrequencyLowBand(this, core::mem::transmute_copy(&pulloflow)).into() } - unsafe extern "system" fn SetLocalOscilatorFrequencyHighBand(this: *mut core::ffi::c_void, ullofhigh: u32) -> windows_core::HRESULT - where - Identity: IBDA_LNBInfo_Impl, - { + unsafe extern "system" fn SetLocalOscilatorFrequencyHighBand(this: *mut core::ffi::c_void, ullofhigh: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_LNBInfo_Impl::SetLocalOscilatorFrequencyHighBand(this, core::mem::transmute_copy(&ullofhigh)).into() } - unsafe extern "system" fn LocalOscilatorFrequencyHighBand(this: *mut core::ffi::c_void, pullofhigh: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_LNBInfo_Impl, - { + unsafe extern "system" fn LocalOscilatorFrequencyHighBand(this: *mut core::ffi::c_void, pullofhigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_LNBInfo_Impl::LocalOscilatorFrequencyHighBand(this, core::mem::transmute_copy(&pullofhigh)).into() } - unsafe extern "system" fn SetHighLowSwitchFrequency(this: *mut core::ffi::c_void, ulswitchfrequency: u32) -> windows_core::HRESULT - where - Identity: IBDA_LNBInfo_Impl, - { + unsafe extern "system" fn SetHighLowSwitchFrequency(this: *mut core::ffi::c_void, ulswitchfrequency: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_LNBInfo_Impl::SetHighLowSwitchFrequency(this, core::mem::transmute_copy(&ulswitchfrequency)).into() } - unsafe extern "system" fn HighLowSwitchFrequency(this: *mut core::ffi::c_void, pulswitchfrequency: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_LNBInfo_Impl, - { + unsafe extern "system" fn HighLowSwitchFrequency(this: *mut core::ffi::c_void, pulswitchfrequency: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_LNBInfo_Impl::HighLowSwitchFrequency(this, core::mem::transmute_copy(&pulswitchfrequency)).into() } @@ -7559,27 +5567,18 @@ impl IBDA_LNBInfo_Vtbl { iid == &::IID } } -pub trait IBDA_MUX_Impl: Sized { +pub trait IBDA_MUX_Impl: Sized + windows_core::IUnknownImpl { fn SetPidList(&self, ulpidlistcount: u32, pbpidlistbuffer: *const BDA_MUX_PIDLISTITEM) -> windows_core::Result<()>; fn GetPidList(&self, pulpidlistcount: *mut u32, pbpidlistbuffer: *mut BDA_MUX_PIDLISTITEM) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_MUX {} impl IBDA_MUX_Vtbl { - pub const fn new() -> IBDA_MUX_Vtbl - where - Identity: IBDA_MUX_Impl, - { - unsafe extern "system" fn SetPidList(this: *mut core::ffi::c_void, ulpidlistcount: u32, pbpidlistbuffer: *const BDA_MUX_PIDLISTITEM) -> windows_core::HRESULT - where - Identity: IBDA_MUX_Impl, - { + pub const fn new() -> IBDA_MUX_Vtbl { + unsafe extern "system" fn SetPidList(this: *mut core::ffi::c_void, ulpidlistcount: u32, pbpidlistbuffer: *const BDA_MUX_PIDLISTITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_MUX_Impl::SetPidList(this, core::mem::transmute_copy(&ulpidlistcount), core::mem::transmute_copy(&pbpidlistbuffer)).into() } - unsafe extern "system" fn GetPidList(this: *mut core::ffi::c_void, pulpidlistcount: *mut u32, pbpidlistbuffer: *mut BDA_MUX_PIDLISTITEM) -> windows_core::HRESULT - where - Identity: IBDA_MUX_Impl, - { + unsafe extern "system" fn GetPidList(this: *mut core::ffi::c_void, pulpidlistcount: *mut u32, pbpidlistbuffer: *mut BDA_MUX_PIDLISTITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_MUX_Impl::GetPidList(this, core::mem::transmute_copy(&pulpidlistcount), core::mem::transmute_copy(&pbpidlistbuffer)).into() } @@ -7593,21 +5592,15 @@ impl IBDA_MUX_Vtbl { iid == &::IID } } -pub trait IBDA_NameValueService_Impl: Sized { +pub trait IBDA_NameValueService_Impl: Sized + windows_core::IUnknownImpl { fn GetValueNameByIndex(&self, ulindex: u32) -> windows_core::Result; fn GetValue(&self, bstrname: &windows_core::BSTR, bstrlanguage: &windows_core::BSTR) -> windows_core::Result; fn SetValue(&self, uldialogrequest: u32, bstrlanguage: &windows_core::BSTR, bstrname: &windows_core::BSTR, bstrvalue: &windows_core::BSTR, ulreserved: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_NameValueService {} impl IBDA_NameValueService_Vtbl { - pub const fn new() -> IBDA_NameValueService_Vtbl - where - Identity: IBDA_NameValueService_Impl, - { - unsafe extern "system" fn GetValueNameByIndex(this: *mut core::ffi::c_void, ulindex: u32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_NameValueService_Impl, - { + pub const fn new() -> IBDA_NameValueService_Vtbl { + unsafe extern "system" fn GetValueNameByIndex(this: *mut core::ffi::c_void, ulindex: u32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_NameValueService_Impl::GetValueNameByIndex(this, core::mem::transmute_copy(&ulindex)) { Ok(ok__) => { @@ -7617,10 +5610,7 @@ impl IBDA_NameValueService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrlanguage: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBDA_NameValueService_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrlanguage: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_NameValueService_Impl::GetValue(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrlanguage)) { Ok(ok__) => { @@ -7630,10 +5620,7 @@ impl IBDA_NameValueService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, uldialogrequest: u32, bstrlanguage: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit, ulreserved: u32) -> windows_core::HRESULT - where - Identity: IBDA_NameValueService_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, uldialogrequest: u32, bstrlanguage: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit, ulreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_NameValueService_Impl::SetValue(this, core::mem::transmute_copy(&uldialogrequest), core::mem::transmute(&bstrlanguage), core::mem::transmute(&bstrname), core::mem::transmute(&bstrvalue), core::mem::transmute_copy(&ulreserved)).into() } @@ -7648,7 +5635,7 @@ impl IBDA_NameValueService_Vtbl { iid == &::IID } } -pub trait IBDA_NetworkProvider_Impl: Sized { +pub trait IBDA_NetworkProvider_Impl: Sized + windows_core::IUnknownImpl { fn PutSignalSource(&self, ulsignalsource: u32) -> windows_core::Result<()>; fn GetSignalSource(&self, pulsignalsource: *mut u32) -> windows_core::Result<()>; fn GetNetworkType(&self, pguidnetworktype: *mut windows_core::GUID) -> windows_core::Result<()>; @@ -7659,56 +5646,32 @@ pub trait IBDA_NetworkProvider_Impl: Sized { } impl windows_core::RuntimeName for IBDA_NetworkProvider {} impl IBDA_NetworkProvider_Vtbl { - pub const fn new() -> IBDA_NetworkProvider_Vtbl - where - Identity: IBDA_NetworkProvider_Impl, - { - unsafe extern "system" fn PutSignalSource(this: *mut core::ffi::c_void, ulsignalsource: u32) -> windows_core::HRESULT - where - Identity: IBDA_NetworkProvider_Impl, - { + pub const fn new() -> IBDA_NetworkProvider_Vtbl { + unsafe extern "system" fn PutSignalSource(this: *mut core::ffi::c_void, ulsignalsource: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_NetworkProvider_Impl::PutSignalSource(this, core::mem::transmute_copy(&ulsignalsource)).into() } - unsafe extern "system" fn GetSignalSource(this: *mut core::ffi::c_void, pulsignalsource: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_NetworkProvider_Impl, - { + unsafe extern "system" fn GetSignalSource(this: *mut core::ffi::c_void, pulsignalsource: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_NetworkProvider_Impl::GetSignalSource(this, core::mem::transmute_copy(&pulsignalsource)).into() } - unsafe extern "system" fn GetNetworkType(this: *mut core::ffi::c_void, pguidnetworktype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_NetworkProvider_Impl, - { + unsafe extern "system" fn GetNetworkType(this: *mut core::ffi::c_void, pguidnetworktype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_NetworkProvider_Impl::GetNetworkType(this, core::mem::transmute_copy(&pguidnetworktype)).into() } - unsafe extern "system" fn PutTuningSpace(this: *mut core::ffi::c_void, guidtuningspace: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_NetworkProvider_Impl, - { + unsafe extern "system" fn PutTuningSpace(this: *mut core::ffi::c_void, guidtuningspace: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_NetworkProvider_Impl::PutTuningSpace(this, core::mem::transmute_copy(&guidtuningspace)).into() } - unsafe extern "system" fn GetTuningSpace(this: *mut core::ffi::c_void, pguidtuingspace: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_NetworkProvider_Impl, - { + unsafe extern "system" fn GetTuningSpace(this: *mut core::ffi::c_void, pguidtuingspace: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_NetworkProvider_Impl::GetTuningSpace(this, core::mem::transmute_copy(&pguidtuingspace)).into() } - unsafe extern "system" fn RegisterDeviceFilter(this: *mut core::ffi::c_void, punkfiltercontrol: *mut core::ffi::c_void, ppvregisitrationcontext: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_NetworkProvider_Impl, - { + unsafe extern "system" fn RegisterDeviceFilter(this: *mut core::ffi::c_void, punkfiltercontrol: *mut core::ffi::c_void, ppvregisitrationcontext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_NetworkProvider_Impl::RegisterDeviceFilter(this, windows_core::from_raw_borrowed(&punkfiltercontrol), core::mem::transmute_copy(&ppvregisitrationcontext)).into() } - unsafe extern "system" fn UnRegisterDeviceFilter(this: *mut core::ffi::c_void, pvregistrationcontext: u32) -> windows_core::HRESULT - where - Identity: IBDA_NetworkProvider_Impl, - { + unsafe extern "system" fn UnRegisterDeviceFilter(this: *mut core::ffi::c_void, pvregistrationcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_NetworkProvider_Impl::UnRegisterDeviceFilter(this, core::mem::transmute_copy(&pvregistrationcontext)).into() } @@ -7727,27 +5690,18 @@ impl IBDA_NetworkProvider_Vtbl { iid == &::IID } } -pub trait IBDA_NullTransform_Impl: Sized { +pub trait IBDA_NullTransform_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_NullTransform {} impl IBDA_NullTransform_Vtbl { - pub const fn new() -> IBDA_NullTransform_Vtbl - where - Identity: IBDA_NullTransform_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_NullTransform_Impl, - { + pub const fn new() -> IBDA_NullTransform_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_NullTransform_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_NullTransform_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_NullTransform_Impl::Stop(this).into() } @@ -7757,35 +5711,23 @@ impl IBDA_NullTransform_Vtbl { iid == &::IID } } -pub trait IBDA_PinControl_Impl: Sized { +pub trait IBDA_PinControl_Impl: Sized + windows_core::IUnknownImpl { fn GetPinID(&self, pulpinid: *mut u32) -> windows_core::Result<()>; fn GetPinType(&self, pulpintype: *mut u32) -> windows_core::Result<()>; fn RegistrationContext(&self, pulregistrationctx: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_PinControl {} impl IBDA_PinControl_Vtbl { - pub const fn new() -> IBDA_PinControl_Vtbl - where - Identity: IBDA_PinControl_Impl, - { - unsafe extern "system" fn GetPinID(this: *mut core::ffi::c_void, pulpinid: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_PinControl_Impl, - { + pub const fn new() -> IBDA_PinControl_Vtbl { + unsafe extern "system" fn GetPinID(this: *mut core::ffi::c_void, pulpinid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_PinControl_Impl::GetPinID(this, core::mem::transmute_copy(&pulpinid)).into() } - unsafe extern "system" fn GetPinType(this: *mut core::ffi::c_void, pulpintype: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_PinControl_Impl, - { + unsafe extern "system" fn GetPinType(this: *mut core::ffi::c_void, pulpintype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_PinControl_Impl::GetPinType(this, core::mem::transmute_copy(&pulpintype)).into() } - unsafe extern "system" fn RegistrationContext(this: *mut core::ffi::c_void, pulregistrationctx: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_PinControl_Impl, - { + unsafe extern "system" fn RegistrationContext(this: *mut core::ffi::c_void, pulregistrationctx: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_PinControl_Impl::RegistrationContext(this, core::mem::transmute_copy(&pulregistrationctx)).into() } @@ -7800,7 +5742,7 @@ impl IBDA_PinControl_Vtbl { iid == &::IID } } -pub trait IBDA_SignalProperties_Impl: Sized { +pub trait IBDA_SignalProperties_Impl: Sized + windows_core::IUnknownImpl { fn PutNetworkType(&self, guidnetworktype: *const windows_core::GUID) -> windows_core::Result<()>; fn GetNetworkType(&self, pguidnetworktype: *mut windows_core::GUID) -> windows_core::Result<()>; fn PutSignalSource(&self, ulsignalsource: u32) -> windows_core::Result<()>; @@ -7810,49 +5752,28 @@ pub trait IBDA_SignalProperties_Impl: Sized { } impl windows_core::RuntimeName for IBDA_SignalProperties {} impl IBDA_SignalProperties_Vtbl { - pub const fn new() -> IBDA_SignalProperties_Vtbl - where - Identity: IBDA_SignalProperties_Impl, - { - unsafe extern "system" fn PutNetworkType(this: *mut core::ffi::c_void, guidnetworktype: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_SignalProperties_Impl, - { + pub const fn new() -> IBDA_SignalProperties_Vtbl { + unsafe extern "system" fn PutNetworkType(this: *mut core::ffi::c_void, guidnetworktype: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalProperties_Impl::PutNetworkType(this, core::mem::transmute_copy(&guidnetworktype)).into() } - unsafe extern "system" fn GetNetworkType(this: *mut core::ffi::c_void, pguidnetworktype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_SignalProperties_Impl, - { + unsafe extern "system" fn GetNetworkType(this: *mut core::ffi::c_void, pguidnetworktype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalProperties_Impl::GetNetworkType(this, core::mem::transmute_copy(&pguidnetworktype)).into() } - unsafe extern "system" fn PutSignalSource(this: *mut core::ffi::c_void, ulsignalsource: u32) -> windows_core::HRESULT - where - Identity: IBDA_SignalProperties_Impl, - { + unsafe extern "system" fn PutSignalSource(this: *mut core::ffi::c_void, ulsignalsource: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalProperties_Impl::PutSignalSource(this, core::mem::transmute_copy(&ulsignalsource)).into() } - unsafe extern "system" fn GetSignalSource(this: *mut core::ffi::c_void, pulsignalsource: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_SignalProperties_Impl, - { + unsafe extern "system" fn GetSignalSource(this: *mut core::ffi::c_void, pulsignalsource: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalProperties_Impl::GetSignalSource(this, core::mem::transmute_copy(&pulsignalsource)).into() } - unsafe extern "system" fn PutTuningSpace(this: *mut core::ffi::c_void, guidtuningspace: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_SignalProperties_Impl, - { + unsafe extern "system" fn PutTuningSpace(this: *mut core::ffi::c_void, guidtuningspace: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalProperties_Impl::PutTuningSpace(this, core::mem::transmute_copy(&guidtuningspace)).into() } - unsafe extern "system" fn GetTuningSpace(this: *mut core::ffi::c_void, pguidtuingspace: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_SignalProperties_Impl, - { + unsafe extern "system" fn GetTuningSpace(this: *mut core::ffi::c_void, pguidtuingspace: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalProperties_Impl::GetTuningSpace(this, core::mem::transmute_copy(&pguidtuingspace)).into() } @@ -7870,7 +5791,7 @@ impl IBDA_SignalProperties_Vtbl { iid == &::IID } } -pub trait IBDA_SignalStatistics_Impl: Sized { +pub trait IBDA_SignalStatistics_Impl: Sized + windows_core::IUnknownImpl { fn SetSignalStrength(&self, ldbstrength: i32) -> windows_core::Result<()>; fn SignalStrength(&self, pldbstrength: *mut i32) -> windows_core::Result<()>; fn SetSignalQuality(&self, lpercentquality: i32) -> windows_core::Result<()>; @@ -7884,77 +5805,44 @@ pub trait IBDA_SignalStatistics_Impl: Sized { } impl windows_core::RuntimeName for IBDA_SignalStatistics {} impl IBDA_SignalStatistics_Vtbl { - pub const fn new() -> IBDA_SignalStatistics_Vtbl - where - Identity: IBDA_SignalStatistics_Impl, - { - unsafe extern "system" fn SetSignalStrength(this: *mut core::ffi::c_void, ldbstrength: i32) -> windows_core::HRESULT - where - Identity: IBDA_SignalStatistics_Impl, - { + pub const fn new() -> IBDA_SignalStatistics_Vtbl { + unsafe extern "system" fn SetSignalStrength(this: *mut core::ffi::c_void, ldbstrength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SetSignalStrength(this, core::mem::transmute_copy(&ldbstrength)).into() } - unsafe extern "system" fn SignalStrength(this: *mut core::ffi::c_void, pldbstrength: *mut i32) -> windows_core::HRESULT - where - Identity: IBDA_SignalStatistics_Impl, - { + unsafe extern "system" fn SignalStrength(this: *mut core::ffi::c_void, pldbstrength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SignalStrength(this, core::mem::transmute_copy(&pldbstrength)).into() } - unsafe extern "system" fn SetSignalQuality(this: *mut core::ffi::c_void, lpercentquality: i32) -> windows_core::HRESULT - where - Identity: IBDA_SignalStatistics_Impl, - { + unsafe extern "system" fn SetSignalQuality(this: *mut core::ffi::c_void, lpercentquality: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SetSignalQuality(this, core::mem::transmute_copy(&lpercentquality)).into() } - unsafe extern "system" fn SignalQuality(this: *mut core::ffi::c_void, plpercentquality: *mut i32) -> windows_core::HRESULT - where - Identity: IBDA_SignalStatistics_Impl, - { + unsafe extern "system" fn SignalQuality(this: *mut core::ffi::c_void, plpercentquality: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SignalQuality(this, core::mem::transmute_copy(&plpercentquality)).into() } - unsafe extern "system" fn SetSignalPresent(this: *mut core::ffi::c_void, fpresent: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT - where - Identity: IBDA_SignalStatistics_Impl, - { + unsafe extern "system" fn SetSignalPresent(this: *mut core::ffi::c_void, fpresent: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SetSignalPresent(this, core::mem::transmute_copy(&fpresent)).into() } - unsafe extern "system" fn SignalPresent(this: *mut core::ffi::c_void, pfpresent: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_SignalStatistics_Impl, - { + unsafe extern "system" fn SignalPresent(this: *mut core::ffi::c_void, pfpresent: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SignalPresent(this, core::mem::transmute_copy(&pfpresent)).into() } - unsafe extern "system" fn SetSignalLocked(this: *mut core::ffi::c_void, flocked: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT - where - Identity: IBDA_SignalStatistics_Impl, - { + unsafe extern "system" fn SetSignalLocked(this: *mut core::ffi::c_void, flocked: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SetSignalLocked(this, core::mem::transmute_copy(&flocked)).into() } - unsafe extern "system" fn SignalLocked(this: *mut core::ffi::c_void, pflocked: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_SignalStatistics_Impl, - { + unsafe extern "system" fn SignalLocked(this: *mut core::ffi::c_void, pflocked: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SignalLocked(this, core::mem::transmute_copy(&pflocked)).into() } - unsafe extern "system" fn SetSampleTime(this: *mut core::ffi::c_void, lmssampletime: i32) -> windows_core::HRESULT - where - Identity: IBDA_SignalStatistics_Impl, - { + unsafe extern "system" fn SetSampleTime(this: *mut core::ffi::c_void, lmssampletime: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SetSampleTime(this, core::mem::transmute_copy(&lmssampletime)).into() } - unsafe extern "system" fn SampleTime(this: *mut core::ffi::c_void, plmssampletime: *mut i32) -> windows_core::HRESULT - where - Identity: IBDA_SignalStatistics_Impl, - { + unsafe extern "system" fn SampleTime(this: *mut core::ffi::c_void, plmssampletime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_SignalStatistics_Impl::SampleTime(this, core::mem::transmute_copy(&plmssampletime)).into() } @@ -7977,7 +5865,7 @@ impl IBDA_SignalStatistics_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IBDA_Topology_Impl: Sized { +pub trait IBDA_Topology_Impl: Sized + windows_core::IUnknownImpl { fn GetNodeTypes(&self, pulcnodetypes: *mut u32, ulcnodetypesmax: u32, rgulnodetypes: *mut u32) -> windows_core::Result<()>; fn GetNodeDescriptors(&self, ulcnodedescriptors: *mut u32, ulcnodedescriptorsmax: u32, rgnodedescriptors: *mut BDANODE_DESCRIPTOR) -> windows_core::Result<()>; fn GetNodeInterfaces(&self, ulnodetype: u32, pulcinterfaces: *mut u32, ulcinterfacesmax: u32, rgguidinterfaces: *mut windows_core::GUID) -> windows_core::Result<()>; @@ -7994,84 +5882,48 @@ pub trait IBDA_Topology_Impl: Sized { impl windows_core::RuntimeName for IBDA_Topology {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IBDA_Topology_Vtbl { - pub const fn new() -> IBDA_Topology_Vtbl - where - Identity: IBDA_Topology_Impl, - { - unsafe extern "system" fn GetNodeTypes(this: *mut core::ffi::c_void, pulcnodetypes: *mut u32, ulcnodetypesmax: u32, rgulnodetypes: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + pub const fn new() -> IBDA_Topology_Vtbl { + unsafe extern "system" fn GetNodeTypes(this: *mut core::ffi::c_void, pulcnodetypes: *mut u32, ulcnodetypesmax: u32, rgulnodetypes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::GetNodeTypes(this, core::mem::transmute_copy(&pulcnodetypes), core::mem::transmute_copy(&ulcnodetypesmax), core::mem::transmute_copy(&rgulnodetypes)).into() } - unsafe extern "system" fn GetNodeDescriptors(this: *mut core::ffi::c_void, ulcnodedescriptors: *mut u32, ulcnodedescriptorsmax: u32, rgnodedescriptors: *mut BDANODE_DESCRIPTOR) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + unsafe extern "system" fn GetNodeDescriptors(this: *mut core::ffi::c_void, ulcnodedescriptors: *mut u32, ulcnodedescriptorsmax: u32, rgnodedescriptors: *mut BDANODE_DESCRIPTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::GetNodeDescriptors(this, core::mem::transmute_copy(&ulcnodedescriptors), core::mem::transmute_copy(&ulcnodedescriptorsmax), core::mem::transmute_copy(&rgnodedescriptors)).into() } - unsafe extern "system" fn GetNodeInterfaces(this: *mut core::ffi::c_void, ulnodetype: u32, pulcinterfaces: *mut u32, ulcinterfacesmax: u32, rgguidinterfaces: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + unsafe extern "system" fn GetNodeInterfaces(this: *mut core::ffi::c_void, ulnodetype: u32, pulcinterfaces: *mut u32, ulcinterfacesmax: u32, rgguidinterfaces: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::GetNodeInterfaces(this, core::mem::transmute_copy(&ulnodetype), core::mem::transmute_copy(&pulcinterfaces), core::mem::transmute_copy(&ulcinterfacesmax), core::mem::transmute_copy(&rgguidinterfaces)).into() } - unsafe extern "system" fn GetPinTypes(this: *mut core::ffi::c_void, pulcpintypes: *mut u32, ulcpintypesmax: u32, rgulpintypes: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + unsafe extern "system" fn GetPinTypes(this: *mut core::ffi::c_void, pulcpintypes: *mut u32, ulcpintypesmax: u32, rgulpintypes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::GetPinTypes(this, core::mem::transmute_copy(&pulcpintypes), core::mem::transmute_copy(&ulcpintypesmax), core::mem::transmute_copy(&rgulpintypes)).into() } - unsafe extern "system" fn GetTemplateConnections(this: *mut core::ffi::c_void, pulcconnections: *mut u32, ulcconnectionsmax: u32, rgconnections: *mut BDA_TEMPLATE_CONNECTION) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + unsafe extern "system" fn GetTemplateConnections(this: *mut core::ffi::c_void, pulcconnections: *mut u32, ulcconnectionsmax: u32, rgconnections: *mut BDA_TEMPLATE_CONNECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::GetTemplateConnections(this, core::mem::transmute_copy(&pulcconnections), core::mem::transmute_copy(&ulcconnectionsmax), core::mem::transmute_copy(&rgconnections)).into() } - unsafe extern "system" fn CreatePin(this: *mut core::ffi::c_void, ulpintype: u32, pulpinid: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + unsafe extern "system" fn CreatePin(this: *mut core::ffi::c_void, ulpintype: u32, pulpinid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::CreatePin(this, core::mem::transmute_copy(&ulpintype), core::mem::transmute_copy(&pulpinid)).into() } - unsafe extern "system" fn DeletePin(this: *mut core::ffi::c_void, ulpinid: u32) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + unsafe extern "system" fn DeletePin(this: *mut core::ffi::c_void, ulpinid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::DeletePin(this, core::mem::transmute_copy(&ulpinid)).into() } - unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, ulpinid: u32, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, ulpinid: u32, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::SetMediaType(this, core::mem::transmute_copy(&ulpinid), core::mem::transmute_copy(&pmediatype)).into() } - unsafe extern "system" fn SetMedium(this: *mut core::ffi::c_void, ulpinid: u32, pmedium: *const REGPINMEDIUM) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + unsafe extern "system" fn SetMedium(this: *mut core::ffi::c_void, ulpinid: u32, pmedium: *const REGPINMEDIUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::SetMedium(this, core::mem::transmute_copy(&ulpinid), core::mem::transmute_copy(&pmedium)).into() } - unsafe extern "system" fn CreateTopology(this: *mut core::ffi::c_void, ulinputpinid: u32, uloutputpinid: u32) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + unsafe extern "system" fn CreateTopology(this: *mut core::ffi::c_void, ulinputpinid: u32, uloutputpinid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::CreateTopology(this, core::mem::transmute_copy(&ulinputpinid), core::mem::transmute_copy(&uloutputpinid)).into() } - unsafe extern "system" fn GetControlNode(this: *mut core::ffi::c_void, ulinputpinid: u32, uloutputpinid: u32, ulnodetype: u32, ppcontrolnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_Topology_Impl, - { + unsafe extern "system" fn GetControlNode(this: *mut core::ffi::c_void, ulinputpinid: u32, uloutputpinid: u32, ulnodetype: u32, ppcontrolnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Topology_Impl::GetControlNode(this, core::mem::transmute_copy(&ulinputpinid), core::mem::transmute_copy(&uloutputpinid), core::mem::transmute_copy(&ulnodetype), core::mem::transmute_copy(&ppcontrolnode)).into() } @@ -8094,19 +5946,13 @@ impl IBDA_Topology_Vtbl { iid == &::IID } } -pub trait IBDA_TransportStreamInfo_Impl: Sized { +pub trait IBDA_TransportStreamInfo_Impl: Sized + windows_core::IUnknownImpl { fn PatTableTickCount(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IBDA_TransportStreamInfo {} impl IBDA_TransportStreamInfo_Vtbl { - pub const fn new() -> IBDA_TransportStreamInfo_Vtbl - where - Identity: IBDA_TransportStreamInfo_Impl, - { - unsafe extern "system" fn PatTableTickCount(this: *mut core::ffi::c_void, ppattickcount: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_TransportStreamInfo_Impl, - { + pub const fn new() -> IBDA_TransportStreamInfo_Vtbl { + unsafe extern "system" fn PatTableTickCount(this: *mut core::ffi::c_void, ppattickcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_TransportStreamInfo_Impl::PatTableTickCount(this) { Ok(ok__) => { @@ -8122,27 +5968,18 @@ impl IBDA_TransportStreamInfo_Vtbl { iid == &::IID } } -pub trait IBDA_TransportStreamSelector_Impl: Sized { +pub trait IBDA_TransportStreamSelector_Impl: Sized + windows_core::IUnknownImpl { fn SetTSID(&self, ustsid: u16) -> windows_core::Result<()>; fn GetTSInformation(&self, pultsinformationbufferlen: *mut u32, pbtsinformationbuffer: *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_TransportStreamSelector {} impl IBDA_TransportStreamSelector_Vtbl { - pub const fn new() -> IBDA_TransportStreamSelector_Vtbl - where - Identity: IBDA_TransportStreamSelector_Impl, - { - unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, ustsid: u16) -> windows_core::HRESULT - where - Identity: IBDA_TransportStreamSelector_Impl, - { + pub const fn new() -> IBDA_TransportStreamSelector_Vtbl { + unsafe extern "system" fn SetTSID(this: *mut core::ffi::c_void, ustsid: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_TransportStreamSelector_Impl::SetTSID(this, core::mem::transmute_copy(&ustsid)).into() } - unsafe extern "system" fn GetTSInformation(this: *mut core::ffi::c_void, pultsinformationbufferlen: *mut u32, pbtsinformationbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_TransportStreamSelector_Impl, - { + unsafe extern "system" fn GetTSInformation(this: *mut core::ffi::c_void, pultsinformationbufferlen: *mut u32, pbtsinformationbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_TransportStreamSelector_Impl::GetTSInformation(this, core::mem::transmute_copy(&pultsinformationbufferlen), core::mem::transmute_copy(&pbtsinformationbuffer)).into() } @@ -8156,28 +5993,19 @@ impl IBDA_TransportStreamSelector_Vtbl { iid == &::IID } } -pub trait IBDA_UserActivityService_Impl: Sized { +pub trait IBDA_UserActivityService_Impl: Sized + windows_core::IUnknownImpl { fn SetCurrentTunerUseReason(&self, dwusereason: u32) -> windows_core::Result<()>; fn GetUserActivityInterval(&self) -> windows_core::Result; fn UserActivityDetected(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_UserActivityService {} impl IBDA_UserActivityService_Vtbl { - pub const fn new() -> IBDA_UserActivityService_Vtbl - where - Identity: IBDA_UserActivityService_Impl, - { - unsafe extern "system" fn SetCurrentTunerUseReason(this: *mut core::ffi::c_void, dwusereason: u32) -> windows_core::HRESULT - where - Identity: IBDA_UserActivityService_Impl, - { + pub const fn new() -> IBDA_UserActivityService_Vtbl { + unsafe extern "system" fn SetCurrentTunerUseReason(this: *mut core::ffi::c_void, dwusereason: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_UserActivityService_Impl::SetCurrentTunerUseReason(this, core::mem::transmute_copy(&dwusereason)).into() } - unsafe extern "system" fn GetUserActivityInterval(this: *mut core::ffi::c_void, pdwactivityinterval: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_UserActivityService_Impl, - { + unsafe extern "system" fn GetUserActivityInterval(this: *mut core::ffi::c_void, pdwactivityinterval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_UserActivityService_Impl::GetUserActivityInterval(this) { Ok(ok__) => { @@ -8187,10 +6015,7 @@ impl IBDA_UserActivityService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserActivityDetected(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_UserActivityService_Impl, - { + unsafe extern "system" fn UserActivityDetected(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_UserActivityService_Impl::UserActivityDetected(this).into() } @@ -8205,27 +6030,18 @@ impl IBDA_UserActivityService_Vtbl { iid == &::IID } } -pub trait IBDA_VoidTransform_Impl: Sized { +pub trait IBDA_VoidTransform_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBDA_VoidTransform {} impl IBDA_VoidTransform_Vtbl { - pub const fn new() -> IBDA_VoidTransform_Vtbl - where - Identity: IBDA_VoidTransform_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_VoidTransform_Impl, - { + pub const fn new() -> IBDA_VoidTransform_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_VoidTransform_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBDA_VoidTransform_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_VoidTransform_Impl::Stop(this).into() } @@ -8235,7 +6051,7 @@ impl IBDA_VoidTransform_Vtbl { iid == &::IID } } -pub trait IBDA_WMDRMSession_Impl: Sized { +pub trait IBDA_WMDRMSession_Impl: Sized + windows_core::IUnknownImpl { fn GetStatus(&self, maxcapturetoken: *mut u32, maxstreamingpid: *mut u32, maxlicense: *mut u32, minsecuritylevel: *mut u32, revinfosequencenumber: *mut u32, revinfoissuedtime: *mut u64, revinfottl: *mut u32, revlistversion: *mut u32, ulstate: *mut u32) -> windows_core::Result<()>; fn SetRevInfo(&self, ulrevinfolen: u32, pbrevinfo: *const u8) -> windows_core::Result<()>; fn SetCrl(&self, ulcrllen: u32, pbcrllen: *const u8) -> windows_core::Result<()>; @@ -8247,63 +6063,36 @@ pub trait IBDA_WMDRMSession_Impl: Sized { } impl windows_core::RuntimeName for IBDA_WMDRMSession {} impl IBDA_WMDRMSession_Vtbl { - pub const fn new() -> IBDA_WMDRMSession_Vtbl - where - Identity: IBDA_WMDRMSession_Impl, - { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, maxcapturetoken: *mut u32, maxstreamingpid: *mut u32, maxlicense: *mut u32, minsecuritylevel: *mut u32, revinfosequencenumber: *mut u32, revinfoissuedtime: *mut u64, revinfottl: *mut u32, revlistversion: *mut u32, ulstate: *mut u32) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMSession_Impl, - { + pub const fn new() -> IBDA_WMDRMSession_Vtbl { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, maxcapturetoken: *mut u32, maxstreamingpid: *mut u32, maxlicense: *mut u32, minsecuritylevel: *mut u32, revinfosequencenumber: *mut u32, revinfoissuedtime: *mut u64, revinfottl: *mut u32, revlistversion: *mut u32, ulstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMSession_Impl::GetStatus(this, core::mem::transmute_copy(&maxcapturetoken), core::mem::transmute_copy(&maxstreamingpid), core::mem::transmute_copy(&maxlicense), core::mem::transmute_copy(&minsecuritylevel), core::mem::transmute_copy(&revinfosequencenumber), core::mem::transmute_copy(&revinfoissuedtime), core::mem::transmute_copy(&revinfottl), core::mem::transmute_copy(&revlistversion), core::mem::transmute_copy(&ulstate)).into() } - unsafe extern "system" fn SetRevInfo(this: *mut core::ffi::c_void, ulrevinfolen: u32, pbrevinfo: *const u8) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMSession_Impl, - { + unsafe extern "system" fn SetRevInfo(this: *mut core::ffi::c_void, ulrevinfolen: u32, pbrevinfo: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMSession_Impl::SetRevInfo(this, core::mem::transmute_copy(&ulrevinfolen), core::mem::transmute_copy(&pbrevinfo)).into() } - unsafe extern "system" fn SetCrl(this: *mut core::ffi::c_void, ulcrllen: u32, pbcrllen: *const u8) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMSession_Impl, - { + unsafe extern "system" fn SetCrl(this: *mut core::ffi::c_void, ulcrllen: u32, pbcrllen: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMSession_Impl::SetCrl(this, core::mem::transmute_copy(&ulcrllen), core::mem::transmute_copy(&pbcrllen)).into() } - unsafe extern "system" fn TransactMessage(this: *mut core::ffi::c_void, ulcbrequest: u32, pbrequest: *const u8, pulcbresponse: *mut u32, pbresponse: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMSession_Impl, - { + unsafe extern "system" fn TransactMessage(this: *mut core::ffi::c_void, ulcbrequest: u32, pbrequest: *const u8, pulcbresponse: *mut u32, pbresponse: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMSession_Impl::TransactMessage(this, core::mem::transmute_copy(&ulcbrequest), core::mem::transmute_copy(&pbrequest), core::mem::transmute_copy(&pulcbresponse), core::mem::transmute_copy(&pbresponse)).into() } - unsafe extern "system" fn GetLicense(this: *mut core::ffi::c_void, uuidkey: *const windows_core::GUID, pulpackagelen: *mut u32, pbpackage: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMSession_Impl, - { + unsafe extern "system" fn GetLicense(this: *mut core::ffi::c_void, uuidkey: *const windows_core::GUID, pulpackagelen: *mut u32, pbpackage: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMSession_Impl::GetLicense(this, core::mem::transmute_copy(&uuidkey), core::mem::transmute_copy(&pulpackagelen), core::mem::transmute_copy(&pbpackage)).into() } - unsafe extern "system" fn ReissueLicense(this: *mut core::ffi::c_void, uuidkey: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMSession_Impl, - { + unsafe extern "system" fn ReissueLicense(this: *mut core::ffi::c_void, uuidkey: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMSession_Impl::ReissueLicense(this, core::mem::transmute_copy(&uuidkey)).into() } - unsafe extern "system" fn RenewLicense(this: *mut core::ffi::c_void, ulinxmrlicenselen: u32, pbinxmrlicense: *const u8, ulentitlementtokenlen: u32, pbentitlementtoken: *const u8, puldescramblestatus: *mut u32, puloutxmrlicenselen: *mut u32, pboutxmrlicense: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMSession_Impl, - { + unsafe extern "system" fn RenewLicense(this: *mut core::ffi::c_void, ulinxmrlicenselen: u32, pbinxmrlicense: *const u8, ulentitlementtokenlen: u32, pbentitlementtoken: *const u8, puldescramblestatus: *mut u32, puloutxmrlicenselen: *mut u32, pboutxmrlicense: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMSession_Impl::RenewLicense(this, core::mem::transmute_copy(&ulinxmrlicenselen), core::mem::transmute_copy(&pbinxmrlicense), core::mem::transmute_copy(&ulentitlementtokenlen), core::mem::transmute_copy(&pbentitlementtoken), core::mem::transmute_copy(&puldescramblestatus), core::mem::transmute_copy(&puloutxmrlicenselen), core::mem::transmute_copy(&pboutxmrlicense)).into() } - unsafe extern "system" fn GetKeyInfo(this: *mut core::ffi::c_void, pulkeyinfolen: *mut u32, pbkeyinfo: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMSession_Impl, - { + unsafe extern "system" fn GetKeyInfo(this: *mut core::ffi::c_void, pulkeyinfolen: *mut u32, pbkeyinfo: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMSession_Impl::GetKeyInfo(this, core::mem::transmute_copy(&pulkeyinfolen), core::mem::transmute_copy(&pbkeyinfo)).into() } @@ -8323,7 +6112,7 @@ impl IBDA_WMDRMSession_Vtbl { iid == &::IID } } -pub trait IBDA_WMDRMTuner_Impl: Sized { +pub trait IBDA_WMDRMTuner_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -8333,35 +6122,20 @@ pub trait IBDA_WMDRMTuner_Impl: Sized { } impl windows_core::RuntimeName for IBDA_WMDRMTuner {} impl IBDA_WMDRMTuner_Vtbl { - pub const fn new() -> IBDA_WMDRMTuner_Vtbl - where - Identity: IBDA_WMDRMTuner_Impl, - { - unsafe extern "system" fn PurchaseEntitlement(this: *mut core::ffi::c_void, uldialogrequest: u32, bstrlanguage: core::mem::MaybeUninit, ulpurchasetokenlen: u32, pbpurchasetoken: *const u8, puldescramblestatus: *mut u32, pulcapturetokenlen: *mut u32, pbcapturetoken: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMTuner_Impl, - { + pub const fn new() -> IBDA_WMDRMTuner_Vtbl { + unsafe extern "system" fn PurchaseEntitlement(this: *mut core::ffi::c_void, uldialogrequest: u32, bstrlanguage: core::mem::MaybeUninit, ulpurchasetokenlen: u32, pbpurchasetoken: *const u8, puldescramblestatus: *mut u32, pulcapturetokenlen: *mut u32, pbcapturetoken: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMTuner_Impl::PurchaseEntitlement(this, 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() } - unsafe extern "system" fn CancelCaptureToken(this: *mut core::ffi::c_void, ulcapturetokenlen: u32, pbcapturetoken: *const u8) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMTuner_Impl, - { + unsafe extern "system" fn CancelCaptureToken(this: *mut core::ffi::c_void, ulcapturetokenlen: u32, pbcapturetoken: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMTuner_Impl::CancelCaptureToken(this, core::mem::transmute_copy(&ulcapturetokenlen), core::mem::transmute_copy(&pbcapturetoken)).into() } - unsafe extern "system" fn SetPidProtection(this: *mut core::ffi::c_void, ulpid: u32, uuidkey: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMTuner_Impl, - { + unsafe extern "system" fn SetPidProtection(this: *mut core::ffi::c_void, ulpid: u32, uuidkey: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMTuner_Impl::SetPidProtection(this, core::mem::transmute_copy(&ulpid), core::mem::transmute_copy(&uuidkey)).into() } - unsafe extern "system" fn GetPidProtection(this: *mut core::ffi::c_void, pulpid: u32, uuidkey: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMTuner_Impl, - { + unsafe extern "system" fn GetPidProtection(this: *mut core::ffi::c_void, pulpid: u32, uuidkey: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBDA_WMDRMTuner_Impl::GetPidProtection(this, core::mem::transmute_copy(&pulpid)) { Ok(ok__) => { @@ -8371,17 +6145,11 @@ impl IBDA_WMDRMTuner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSyncValue(this: *mut core::ffi::c_void, ulsyncvalue: u32) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMTuner_Impl, - { + unsafe extern "system" fn SetSyncValue(this: *mut core::ffi::c_void, ulsyncvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMTuner_Impl::SetSyncValue(this, core::mem::transmute_copy(&ulsyncvalue)).into() } - unsafe extern "system" fn GetStartCodeProfile(this: *mut core::ffi::c_void, pulstartcodeprofilelen: *mut u32, pbstartcodeprofile: *mut u8) -> windows_core::HRESULT - where - Identity: IBDA_WMDRMTuner_Impl, - { + unsafe extern "system" fn GetStartCodeProfile(this: *mut core::ffi::c_void, pulstartcodeprofilelen: *mut u32, pbstartcodeprofile: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_WMDRMTuner_Impl::GetStartCodeProfile(this, core::mem::transmute_copy(&pulstartcodeprofilelen), core::mem::transmute_copy(&pbstartcodeprofile)).into() } @@ -8406,28 +6174,16 @@ pub trait IBPCSatelliteTuner_Impl: Sized + IAMTuner_Impl { } impl windows_core::RuntimeName for IBPCSatelliteTuner {} impl IBPCSatelliteTuner_Vtbl { - pub const fn new() -> IBPCSatelliteTuner_Vtbl - where - Identity: IBPCSatelliteTuner_Impl, - { - unsafe extern "system" fn get_DefaultSubChannelTypes(this: *mut core::ffi::c_void, pldefaultvideotype: *mut i32, pldefaultaudiotype: *mut i32) -> windows_core::HRESULT - where - Identity: IBPCSatelliteTuner_Impl, - { + pub const fn new() -> IBPCSatelliteTuner_Vtbl { + unsafe extern "system" fn get_DefaultSubChannelTypes(this: *mut core::ffi::c_void, pldefaultvideotype: *mut i32, pldefaultaudiotype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBPCSatelliteTuner_Impl::get_DefaultSubChannelTypes(this, core::mem::transmute_copy(&pldefaultvideotype), core::mem::transmute_copy(&pldefaultaudiotype)).into() } - unsafe extern "system" fn put_DefaultSubChannelTypes(this: *mut core::ffi::c_void, ldefaultvideotype: i32, ldefaultaudiotype: i32) -> windows_core::HRESULT - where - Identity: IBPCSatelliteTuner_Impl, - { + unsafe extern "system" fn put_DefaultSubChannelTypes(this: *mut core::ffi::c_void, ldefaultvideotype: i32, ldefaultaudiotype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBPCSatelliteTuner_Impl::put_DefaultSubChannelTypes(this, core::mem::transmute_copy(&ldefaultvideotype), core::mem::transmute_copy(&ldefaultaudiotype)).into() } - unsafe extern "system" fn IsTapingPermitted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBPCSatelliteTuner_Impl, - { + unsafe extern "system" fn IsTapingPermitted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBPCSatelliteTuner_Impl::IsTapingPermitted(this).into() } @@ -8454,14 +6210,8 @@ pub trait IBaseFilter_Impl: Sized + IMediaFilter_Impl { impl windows_core::RuntimeName for IBaseFilter {} #[cfg(feature = "Win32_System_Com")] impl IBaseFilter_Vtbl { - pub const fn new() -> IBaseFilter_Vtbl - where - Identity: IBaseFilter_Impl, - { - unsafe extern "system" fn EnumPins(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBaseFilter_Impl, - { + pub const fn new() -> IBaseFilter_Vtbl { + unsafe extern "system" fn EnumPins(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBaseFilter_Impl::EnumPins(this) { Ok(ok__) => { @@ -8471,10 +6221,7 @@ impl IBaseFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindPin(this: *mut core::ffi::c_void, id: windows_core::PCWSTR, pppin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBaseFilter_Impl, - { + unsafe extern "system" fn FindPin(this: *mut core::ffi::c_void, id: windows_core::PCWSTR, pppin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBaseFilter_Impl::FindPin(this, core::mem::transmute(&id)) { Ok(ok__) => { @@ -8484,24 +6231,15 @@ impl IBaseFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryFilterInfo(this: *mut core::ffi::c_void, pinfo: *mut FILTER_INFO) -> windows_core::HRESULT - where - Identity: IBaseFilter_Impl, - { + unsafe extern "system" fn QueryFilterInfo(this: *mut core::ffi::c_void, pinfo: *mut FILTER_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBaseFilter_Impl::QueryFilterInfo(this, core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn JoinFilterGraph(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void, pname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBaseFilter_Impl, - { + unsafe extern "system" fn JoinFilterGraph(this: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void, pname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBaseFilter_Impl::JoinFilterGraph(this, windows_core::from_raw_borrowed(&pgraph), core::mem::transmute(&pname)).into() } - unsafe extern "system" fn QueryVendorInfo(this: *mut core::ffi::c_void, pvendorinfo: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBaseFilter_Impl, - { + unsafe extern "system" fn QueryVendorInfo(this: *mut core::ffi::c_void, pvendorinfo: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBaseFilter_Impl::QueryVendorInfo(this) { Ok(ok__) => { @@ -8524,7 +6262,7 @@ impl IBaseFilter_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IBaseVideoMixer_Impl: Sized { +pub trait IBaseVideoMixer_Impl: Sized + windows_core::IUnknownImpl { fn SetLeadPin(&self, ipin: i32) -> windows_core::Result<()>; fn GetLeadPin(&self) -> windows_core::Result; fn GetInputPinCount(&self) -> windows_core::Result; @@ -8535,21 +6273,12 @@ pub trait IBaseVideoMixer_Impl: Sized { } impl windows_core::RuntimeName for IBaseVideoMixer {} impl IBaseVideoMixer_Vtbl { - pub const fn new() -> IBaseVideoMixer_Vtbl - where - Identity: IBaseVideoMixer_Impl, - { - unsafe extern "system" fn SetLeadPin(this: *mut core::ffi::c_void, ipin: i32) -> windows_core::HRESULT - where - Identity: IBaseVideoMixer_Impl, - { + pub const fn new() -> IBaseVideoMixer_Vtbl { + unsafe extern "system" fn SetLeadPin(this: *mut core::ffi::c_void, ipin: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBaseVideoMixer_Impl::SetLeadPin(this, core::mem::transmute_copy(&ipin)).into() } - unsafe extern "system" fn GetLeadPin(this: *mut core::ffi::c_void, pipin: *mut i32) -> windows_core::HRESULT - where - Identity: IBaseVideoMixer_Impl, - { + unsafe extern "system" fn GetLeadPin(this: *mut core::ffi::c_void, pipin: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBaseVideoMixer_Impl::GetLeadPin(this) { Ok(ok__) => { @@ -8559,10 +6288,7 @@ impl IBaseVideoMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputPinCount(this: *mut core::ffi::c_void, pipincount: *mut i32) -> windows_core::HRESULT - where - Identity: IBaseVideoMixer_Impl, - { + unsafe extern "system" fn GetInputPinCount(this: *mut core::ffi::c_void, pipincount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBaseVideoMixer_Impl::GetInputPinCount(this) { Ok(ok__) => { @@ -8572,10 +6298,7 @@ impl IBaseVideoMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsUsingClock(this: *mut core::ffi::c_void, pbvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IBaseVideoMixer_Impl, - { + unsafe extern "system" fn IsUsingClock(this: *mut core::ffi::c_void, pbvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBaseVideoMixer_Impl::IsUsingClock(this) { Ok(ok__) => { @@ -8585,17 +6308,11 @@ impl IBaseVideoMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUsingClock(this: *mut core::ffi::c_void, bvalue: i32) -> windows_core::HRESULT - where - Identity: IBaseVideoMixer_Impl, - { + unsafe extern "system" fn SetUsingClock(this: *mut core::ffi::c_void, bvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBaseVideoMixer_Impl::SetUsingClock(this, core::mem::transmute_copy(&bvalue)).into() } - unsafe extern "system" fn GetClockPeriod(this: *mut core::ffi::c_void, pbvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IBaseVideoMixer_Impl, - { + unsafe extern "system" fn GetClockPeriod(this: *mut core::ffi::c_void, pbvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBaseVideoMixer_Impl::GetClockPeriod(this) { Ok(ok__) => { @@ -8605,10 +6322,7 @@ impl IBaseVideoMixer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClockPeriod(this: *mut core::ffi::c_void, bvalue: i32) -> windows_core::HRESULT - where - Identity: IBaseVideoMixer_Impl, - { + unsafe extern "system" fn SetClockPeriod(this: *mut core::ffi::c_void, bvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBaseVideoMixer_Impl::SetClockPeriod(this, core::mem::transmute_copy(&bvalue)).into() } @@ -8638,21 +6352,12 @@ pub trait IBasicAudio_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IBasicAudio {} #[cfg(feature = "Win32_System_Com")] impl IBasicAudio_Vtbl { - pub const fn new() -> IBasicAudio_Vtbl - where - Identity: IBasicAudio_Impl, - { - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, lvolume: i32) -> windows_core::HRESULT - where - Identity: IBasicAudio_Impl, - { + pub const fn new() -> IBasicAudio_Vtbl { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, lvolume: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicAudio_Impl::SetVolume(this, core::mem::transmute_copy(&lvolume)).into() } - unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, plvolume: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicAudio_Impl, - { + unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, plvolume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicAudio_Impl::Volume(this) { Ok(ok__) => { @@ -8662,17 +6367,11 @@ impl IBasicAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBalance(this: *mut core::ffi::c_void, lbalance: i32) -> windows_core::HRESULT - where - Identity: IBasicAudio_Impl, - { + unsafe extern "system" fn SetBalance(this: *mut core::ffi::c_void, lbalance: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicAudio_Impl::SetBalance(this, core::mem::transmute_copy(&lbalance)).into() } - unsafe extern "system" fn Balance(this: *mut core::ffi::c_void, plbalance: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicAudio_Impl, - { + unsafe extern "system" fn Balance(this: *mut core::ffi::c_void, plbalance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicAudio_Impl::Balance(this) { Ok(ok__) => { @@ -8733,14 +6432,8 @@ pub trait IBasicVideo_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IBasicVideo {} #[cfg(feature = "Win32_System_Com")] impl IBasicVideo_Vtbl { - pub const fn new() -> IBasicVideo_Vtbl - where - Identity: IBasicVideo_Impl, - { - unsafe extern "system" fn AvgTimePerFrame(this: *mut core::ffi::c_void, pavgtimeperframe: *mut f64) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + pub const fn new() -> IBasicVideo_Vtbl { + unsafe extern "system" fn AvgTimePerFrame(this: *mut core::ffi::c_void, pavgtimeperframe: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::AvgTimePerFrame(this) { Ok(ok__) => { @@ -8750,10 +6443,7 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BitRate(this: *mut core::ffi::c_void, pbitrate: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn BitRate(this: *mut core::ffi::c_void, pbitrate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::BitRate(this) { Ok(ok__) => { @@ -8763,10 +6453,7 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BitErrorRate(this: *mut core::ffi::c_void, pbiterrorrate: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn BitErrorRate(this: *mut core::ffi::c_void, pbiterrorrate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::BitErrorRate(this) { Ok(ok__) => { @@ -8776,10 +6463,7 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VideoWidth(this: *mut core::ffi::c_void, pvideowidth: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn VideoWidth(this: *mut core::ffi::c_void, pvideowidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::VideoWidth(this) { Ok(ok__) => { @@ -8789,10 +6473,7 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VideoHeight(this: *mut core::ffi::c_void, pvideoheight: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn VideoHeight(this: *mut core::ffi::c_void, pvideoheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::VideoHeight(this) { Ok(ok__) => { @@ -8802,17 +6483,11 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourceLeft(this: *mut core::ffi::c_void, sourceleft: i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetSourceLeft(this: *mut core::ffi::c_void, sourceleft: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetSourceLeft(this, core::mem::transmute_copy(&sourceleft)).into() } - unsafe extern "system" fn SourceLeft(this: *mut core::ffi::c_void, psourceleft: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SourceLeft(this: *mut core::ffi::c_void, psourceleft: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::SourceLeft(this) { Ok(ok__) => { @@ -8822,17 +6497,11 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourceWidth(this: *mut core::ffi::c_void, sourcewidth: i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetSourceWidth(this: *mut core::ffi::c_void, sourcewidth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetSourceWidth(this, core::mem::transmute_copy(&sourcewidth)).into() } - unsafe extern "system" fn SourceWidth(this: *mut core::ffi::c_void, psourcewidth: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SourceWidth(this: *mut core::ffi::c_void, psourcewidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::SourceWidth(this) { Ok(ok__) => { @@ -8842,17 +6511,11 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourceTop(this: *mut core::ffi::c_void, sourcetop: i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetSourceTop(this: *mut core::ffi::c_void, sourcetop: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetSourceTop(this, core::mem::transmute_copy(&sourcetop)).into() } - unsafe extern "system" fn SourceTop(this: *mut core::ffi::c_void, psourcetop: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SourceTop(this: *mut core::ffi::c_void, psourcetop: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::SourceTop(this) { Ok(ok__) => { @@ -8862,17 +6525,11 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourceHeight(this: *mut core::ffi::c_void, sourceheight: i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetSourceHeight(this: *mut core::ffi::c_void, sourceheight: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetSourceHeight(this, core::mem::transmute_copy(&sourceheight)).into() } - unsafe extern "system" fn SourceHeight(this: *mut core::ffi::c_void, psourceheight: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SourceHeight(this: *mut core::ffi::c_void, psourceheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::SourceHeight(this) { Ok(ok__) => { @@ -8882,17 +6539,11 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDestinationLeft(this: *mut core::ffi::c_void, destinationleft: i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetDestinationLeft(this: *mut core::ffi::c_void, destinationleft: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetDestinationLeft(this, core::mem::transmute_copy(&destinationleft)).into() } - unsafe extern "system" fn DestinationLeft(this: *mut core::ffi::c_void, pdestinationleft: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn DestinationLeft(this: *mut core::ffi::c_void, pdestinationleft: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::DestinationLeft(this) { Ok(ok__) => { @@ -8902,17 +6553,11 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDestinationWidth(this: *mut core::ffi::c_void, destinationwidth: i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetDestinationWidth(this: *mut core::ffi::c_void, destinationwidth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetDestinationWidth(this, core::mem::transmute_copy(&destinationwidth)).into() } - unsafe extern "system" fn DestinationWidth(this: *mut core::ffi::c_void, pdestinationwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn DestinationWidth(this: *mut core::ffi::c_void, pdestinationwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::DestinationWidth(this) { Ok(ok__) => { @@ -8922,17 +6567,11 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDestinationTop(this: *mut core::ffi::c_void, destinationtop: i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetDestinationTop(this: *mut core::ffi::c_void, destinationtop: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetDestinationTop(this, core::mem::transmute_copy(&destinationtop)).into() } - unsafe extern "system" fn DestinationTop(this: *mut core::ffi::c_void, pdestinationtop: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn DestinationTop(this: *mut core::ffi::c_void, pdestinationtop: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::DestinationTop(this) { Ok(ok__) => { @@ -8942,17 +6581,11 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDestinationHeight(this: *mut core::ffi::c_void, destinationheight: i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetDestinationHeight(this: *mut core::ffi::c_void, destinationheight: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetDestinationHeight(this, core::mem::transmute_copy(&destinationheight)).into() } - unsafe extern "system" fn DestinationHeight(this: *mut core::ffi::c_void, pdestinationheight: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn DestinationHeight(this: *mut core::ffi::c_void, pdestinationheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBasicVideo_Impl::DestinationHeight(this) { Ok(ok__) => { @@ -8962,80 +6595,47 @@ impl IBasicVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourcePosition(this: *mut core::ffi::c_void, left: i32, top: i32, width: i32, height: i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetSourcePosition(this: *mut core::ffi::c_void, left: i32, top: i32, width: i32, height: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetSourcePosition(this, 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 GetSourcePosition(this: *mut core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn GetSourcePosition(this: *mut core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::GetSourcePosition(this, core::mem::transmute_copy(&pleft), core::mem::transmute_copy(&ptop), core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn SetDefaultSourcePosition(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetDefaultSourcePosition(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetDefaultSourcePosition(this).into() } - unsafe extern "system" fn SetDestinationPosition(this: *mut core::ffi::c_void, left: i32, top: i32, width: i32, height: i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetDestinationPosition(this: *mut core::ffi::c_void, left: i32, top: i32, width: i32, height: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetDestinationPosition(this, 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 GetDestinationPosition(this: *mut core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn GetDestinationPosition(this: *mut core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::GetDestinationPosition(this, core::mem::transmute_copy(&pleft), core::mem::transmute_copy(&ptop), core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn SetDefaultDestinationPosition(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn SetDefaultDestinationPosition(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::SetDefaultDestinationPosition(this).into() } - unsafe extern "system" fn GetVideoSize(this: *mut core::ffi::c_void, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn GetVideoSize(this: *mut core::ffi::c_void, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::GetVideoSize(this, core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn GetVideoPaletteEntries(this: *mut core::ffi::c_void, startindex: i32, entries: i32, pretrieved: *mut i32, ppalette: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn GetVideoPaletteEntries(this: *mut core::ffi::c_void, startindex: i32, entries: i32, pretrieved: *mut i32, ppalette: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::GetVideoPaletteEntries(this, core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&entries), core::mem::transmute_copy(&pretrieved), core::mem::transmute_copy(&ppalette)).into() } - unsafe extern "system" fn GetCurrentImage(this: *mut core::ffi::c_void, pbuffersize: *mut i32, pdibimage: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn GetCurrentImage(this: *mut core::ffi::c_void, pbuffersize: *mut i32, pdibimage: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::GetCurrentImage(this, core::mem::transmute_copy(&pbuffersize), core::mem::transmute_copy(&pdibimage)).into() } - unsafe extern "system" fn IsUsingDefaultSource(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn IsUsingDefaultSource(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::IsUsingDefaultSource(this).into() } - unsafe extern "system" fn IsUsingDefaultDestination(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBasicVideo_Impl, - { + unsafe extern "system" fn IsUsingDefaultDestination(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo_Impl::IsUsingDefaultDestination(this).into() } @@ -9087,14 +6687,8 @@ pub trait IBasicVideo2_Impl: Sized + IBasicVideo_Impl { impl windows_core::RuntimeName for IBasicVideo2 {} #[cfg(feature = "Win32_System_Com")] impl IBasicVideo2_Vtbl { - pub const fn new() -> IBasicVideo2_Vtbl - where - Identity: IBasicVideo2_Impl, - { - unsafe extern "system" fn GetPreferredAspectRatio(this: *mut core::ffi::c_void, plaspectx: *mut i32, plaspecty: *mut i32) -> windows_core::HRESULT - where - Identity: IBasicVideo2_Impl, - { + pub const fn new() -> IBasicVideo2_Vtbl { + unsafe extern "system" fn GetPreferredAspectRatio(this: *mut core::ffi::c_void, plaspectx: *mut i32, plaspecty: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBasicVideo2_Impl::GetPreferredAspectRatio(this, core::mem::transmute_copy(&plaspectx), core::mem::transmute_copy(&plaspecty)).into() } @@ -9104,19 +6698,13 @@ impl IBasicVideo2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IBroadcastEvent_Impl: Sized { +pub trait IBroadcastEvent_Impl: Sized + windows_core::IUnknownImpl { fn Fire(&self, eventid: &windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBroadcastEvent {} impl IBroadcastEvent_Vtbl { - pub const fn new() -> IBroadcastEvent_Vtbl - where - Identity: IBroadcastEvent_Impl, - { - unsafe extern "system" fn Fire(this: *mut core::ffi::c_void, eventid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBroadcastEvent_Impl, - { + pub const fn new() -> IBroadcastEvent_Vtbl { + unsafe extern "system" fn Fire(this: *mut core::ffi::c_void, eventid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBroadcastEvent_Impl::Fire(this, core::mem::transmute(&eventid)).into() } @@ -9131,14 +6719,8 @@ pub trait IBroadcastEventEx_Impl: Sized + IBroadcastEvent_Impl { } impl windows_core::RuntimeName for IBroadcastEventEx {} impl IBroadcastEventEx_Vtbl { - pub const fn new() -> IBroadcastEventEx_Vtbl - where - Identity: IBroadcastEventEx_Impl, - { - unsafe extern "system" fn FireEx(this: *mut core::ffi::c_void, eventid: windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT - where - Identity: IBroadcastEventEx_Impl, - { + pub const fn new() -> IBroadcastEventEx_Vtbl { + unsafe extern "system" fn FireEx(this: *mut core::ffi::c_void, eventid: windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBroadcastEventEx_Impl::FireEx(this, core::mem::transmute(&eventid), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4)).into() } @@ -9148,27 +6730,18 @@ impl IBroadcastEventEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IBufferingTime_Impl: Sized { +pub trait IBufferingTime_Impl: Sized + windows_core::IUnknownImpl { fn GetBufferingTime(&self, pdwmilliseconds: *mut u32) -> windows_core::Result<()>; fn SetBufferingTime(&self, dwmilliseconds: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBufferingTime {} impl IBufferingTime_Vtbl { - pub const fn new() -> IBufferingTime_Vtbl - where - Identity: IBufferingTime_Impl, - { - unsafe extern "system" fn GetBufferingTime(this: *mut core::ffi::c_void, pdwmilliseconds: *mut u32) -> windows_core::HRESULT - where - Identity: IBufferingTime_Impl, - { + pub const fn new() -> IBufferingTime_Vtbl { + unsafe extern "system" fn GetBufferingTime(this: *mut core::ffi::c_void, pdwmilliseconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBufferingTime_Impl::GetBufferingTime(this, core::mem::transmute_copy(&pdwmilliseconds)).into() } - unsafe extern "system" fn SetBufferingTime(this: *mut core::ffi::c_void, dwmilliseconds: u32) -> windows_core::HRESULT - where - Identity: IBufferingTime_Impl, - { + unsafe extern "system" fn SetBufferingTime(this: *mut core::ffi::c_void, dwmilliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBufferingTime_Impl::SetBufferingTime(this, core::mem::transmute_copy(&dwmilliseconds)).into() } @@ -9182,20 +6755,14 @@ impl IBufferingTime_Vtbl { iid == &::IID } } -pub trait ICCSubStreamFiltering_Impl: Sized { +pub trait ICCSubStreamFiltering_Impl: Sized + windows_core::IUnknownImpl { fn SubstreamTypes(&self) -> windows_core::Result; fn SetSubstreamTypes(&self, types: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICCSubStreamFiltering {} impl ICCSubStreamFiltering_Vtbl { - pub const fn new() -> ICCSubStreamFiltering_Vtbl - where - Identity: ICCSubStreamFiltering_Impl, - { - unsafe extern "system" fn SubstreamTypes(this: *mut core::ffi::c_void, ptypes: *mut i32) -> windows_core::HRESULT - where - Identity: ICCSubStreamFiltering_Impl, - { + pub const fn new() -> ICCSubStreamFiltering_Vtbl { + unsafe extern "system" fn SubstreamTypes(this: *mut core::ffi::c_void, ptypes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICCSubStreamFiltering_Impl::SubstreamTypes(this) { Ok(ok__) => { @@ -9205,10 +6772,7 @@ impl ICCSubStreamFiltering_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubstreamTypes(this: *mut core::ffi::c_void, types: i32) -> windows_core::HRESULT - where - Identity: ICCSubStreamFiltering_Impl, - { + unsafe extern "system" fn SetSubstreamTypes(this: *mut core::ffi::c_void, types: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICCSubStreamFiltering_Impl::SetSubstreamTypes(this, core::mem::transmute_copy(&types)).into() } @@ -9222,7 +6786,7 @@ impl ICCSubStreamFiltering_Vtbl { iid == &::IID } } -pub trait ICameraControl_Impl: Sized { +pub trait ICameraControl_Impl: Sized + windows_core::IUnknownImpl { fn get_Exposure(&self, pvalue: *mut i32, pflags: *mut i32) -> windows_core::Result<()>; fn put_Exposure(&self, value: i32, flags: i32) -> windows_core::Result<()>; fn getRange_Exposure(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()>; @@ -9277,364 +6841,208 @@ pub trait ICameraControl_Impl: Sized { } impl windows_core::RuntimeName for ICameraControl {} impl ICameraControl_Vtbl { - pub const fn new() -> ICameraControl_Vtbl - where - Identity: ICameraControl_Impl, - { - unsafe extern "system" fn get_Exposure(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + pub const fn new() -> ICameraControl_Vtbl { + unsafe extern "system" fn get_Exposure(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_Exposure(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Exposure(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_Exposure(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_Exposure(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Exposure(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_Exposure(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_Exposure(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Focus(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_Focus(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_Focus(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Focus(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_Focus(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_Focus(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Focus(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_Focus(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_Focus(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Iris(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_Iris(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_Iris(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Iris(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_Iris(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_Iris(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Iris(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_Iris(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_Iris(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Zoom(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_Zoom(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_Zoom(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Zoom(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_Zoom(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_Zoom(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Zoom(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_Zoom(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_Zoom(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_FocalLengths(this: *mut core::ffi::c_void, plocularfocallength: *mut i32, plobjectivefocallengthmin: *mut i32, plobjectivefocallengthmax: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_FocalLengths(this: *mut core::ffi::c_void, plocularfocallength: *mut i32, plobjectivefocallengthmin: *mut i32, plobjectivefocallengthmax: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_FocalLengths(this, core::mem::transmute_copy(&plocularfocallength), core::mem::transmute_copy(&plobjectivefocallengthmin), core::mem::transmute_copy(&plobjectivefocallengthmax)).into() } - unsafe extern "system" fn get_Pan(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_Pan(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_Pan(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Pan(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_Pan(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_Pan(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Pan(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_Pan(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_Pan(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Tilt(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_Tilt(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_Tilt(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Tilt(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_Tilt(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_Tilt(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Tilt(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_Tilt(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_Tilt(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_PanTilt(this: *mut core::ffi::c_void, ppanvalue: *mut i32, ptiltvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_PanTilt(this: *mut core::ffi::c_void, ppanvalue: *mut i32, ptiltvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_PanTilt(this, core::mem::transmute_copy(&ppanvalue), core::mem::transmute_copy(&ptiltvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_PanTilt(this: *mut core::ffi::c_void, panvalue: i32, tiltvalue: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_PanTilt(this: *mut core::ffi::c_void, panvalue: i32, tiltvalue: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_PanTilt(this, core::mem::transmute_copy(&panvalue), core::mem::transmute_copy(&tiltvalue), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn get_Roll(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_Roll(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_Roll(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Roll(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_Roll(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_Roll(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Roll(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_Roll(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_Roll(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_ExposureRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_ExposureRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_ExposureRelative(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_ExposureRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_ExposureRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_ExposureRelative(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_ExposureRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_ExposureRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_ExposureRelative(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_FocusRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_FocusRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_FocusRelative(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_FocusRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_FocusRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_FocusRelative(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_FocusRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_FocusRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_FocusRelative(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_IrisRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_IrisRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_IrisRelative(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_IrisRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_IrisRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_IrisRelative(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_IrisRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_IrisRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_IrisRelative(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_ZoomRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_ZoomRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_ZoomRelative(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_ZoomRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_ZoomRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_ZoomRelative(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_ZoomRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_ZoomRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_ZoomRelative(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_PanRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_PanRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_PanRelative(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_PanRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_PanRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_PanRelative(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn get_TiltRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_TiltRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_TiltRelative(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_TiltRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_TiltRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_TiltRelative(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_TiltRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_TiltRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_TiltRelative(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_PanTiltRelative(this: *mut core::ffi::c_void, ppanvalue: *mut i32, ptiltvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_PanTiltRelative(this: *mut core::ffi::c_void, ppanvalue: *mut i32, ptiltvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_PanTiltRelative(this, core::mem::transmute_copy(&ppanvalue), core::mem::transmute_copy(&ptiltvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_PanTiltRelative(this: *mut core::ffi::c_void, panvalue: i32, tiltvalue: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_PanTiltRelative(this: *mut core::ffi::c_void, panvalue: i32, tiltvalue: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_PanTiltRelative(this, core::mem::transmute_copy(&panvalue), core::mem::transmute_copy(&tiltvalue), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_PanRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_PanRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_PanRelative(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_RollRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_RollRelative(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_RollRelative(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_RollRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_RollRelative(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_RollRelative(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_RollRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn getRange_RollRelative(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::getRange_RollRelative(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_ScanMode(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_ScanMode(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_ScanMode(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_ScanMode(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_ScanMode(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_ScanMode(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn get_PrivacyMode(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn get_PrivacyMode(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::get_PrivacyMode(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_PrivacyMode(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: ICameraControl_Impl, - { + unsafe extern "system" fn put_PrivacyMode(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraControl_Impl::put_PrivacyMode(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } @@ -9698,7 +7106,7 @@ impl ICameraControl_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICaptureGraphBuilder_Impl: Sized { +pub trait ICaptureGraphBuilder_Impl: Sized + windows_core::IUnknownImpl { fn SetFiltergraph(&self, pfg: Option<&IGraphBuilder>) -> windows_core::Result<()>; fn GetFiltergraph(&self) -> windows_core::Result; fn SetOutputFileName(&self, ptype: *const windows_core::GUID, lpstrfile: &windows_core::PCWSTR, ppf: *mut Option, ppsink: *mut Option) -> windows_core::Result<()>; @@ -9712,21 +7120,12 @@ pub trait ICaptureGraphBuilder_Impl: Sized { impl windows_core::RuntimeName for ICaptureGraphBuilder {} #[cfg(feature = "Win32_System_Com")] impl ICaptureGraphBuilder_Vtbl { - pub const fn new() -> ICaptureGraphBuilder_Vtbl - where - Identity: ICaptureGraphBuilder_Impl, - { - unsafe extern "system" fn SetFiltergraph(this: *mut core::ffi::c_void, pfg: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder_Impl, - { + pub const fn new() -> ICaptureGraphBuilder_Vtbl { + unsafe extern "system" fn SetFiltergraph(this: *mut core::ffi::c_void, pfg: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder_Impl::SetFiltergraph(this, windows_core::from_raw_borrowed(&pfg)).into() } - unsafe extern "system" fn GetFiltergraph(this: *mut core::ffi::c_void, ppfg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder_Impl, - { + unsafe extern "system" fn GetFiltergraph(this: *mut core::ffi::c_void, ppfg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICaptureGraphBuilder_Impl::GetFiltergraph(this) { Ok(ok__) => { @@ -9736,45 +7135,27 @@ impl ICaptureGraphBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputFileName(this: *mut core::ffi::c_void, ptype: *const windows_core::GUID, lpstrfile: windows_core::PCWSTR, ppf: *mut *mut core::ffi::c_void, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder_Impl, - { + unsafe extern "system" fn SetOutputFileName(this: *mut core::ffi::c_void, ptype: *const windows_core::GUID, lpstrfile: windows_core::PCWSTR, ppf: *mut *mut core::ffi::c_void, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder_Impl::SetOutputFileName(this, core::mem::transmute_copy(&ptype), core::mem::transmute(&lpstrfile), core::mem::transmute_copy(&ppf), core::mem::transmute_copy(&ppsink)).into() } - unsafe extern "system" fn FindInterface(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, pf: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder_Impl, - { + unsafe extern "system" fn FindInterface(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, pf: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder_Impl::FindInterface(this, core::mem::transmute_copy(&pcategory), windows_core::from_raw_borrowed(&pf), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppint)).into() } - unsafe extern "system" fn RenderStream(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, psource: *mut core::ffi::c_void, pfcompressor: *mut core::ffi::c_void, pfrenderer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder_Impl, - { + unsafe extern "system" fn RenderStream(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, psource: *mut core::ffi::c_void, pfcompressor: *mut core::ffi::c_void, pfrenderer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder_Impl::RenderStream(this, core::mem::transmute_copy(&pcategory), windows_core::from_raw_borrowed(&psource), windows_core::from_raw_borrowed(&pfcompressor), windows_core::from_raw_borrowed(&pfrenderer)).into() } - unsafe extern "system" fn ControlStream(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, pfilter: *mut core::ffi::c_void, pstart: *const i64, pstop: *const i64, wstartcookie: u16, wstopcookie: u16) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder_Impl, - { + unsafe extern "system" fn ControlStream(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, pfilter: *mut core::ffi::c_void, pstart: *const i64, pstop: *const i64, wstartcookie: u16, wstopcookie: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder_Impl::ControlStream(this, core::mem::transmute_copy(&pcategory), windows_core::from_raw_borrowed(&pfilter), core::mem::transmute_copy(&pstart), core::mem::transmute_copy(&pstop), core::mem::transmute_copy(&wstartcookie), core::mem::transmute_copy(&wstopcookie)).into() } - unsafe extern "system" fn AllocCapFile(this: *mut core::ffi::c_void, lpstr: windows_core::PCWSTR, dwlsize: u64) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder_Impl, - { + unsafe extern "system" fn AllocCapFile(this: *mut core::ffi::c_void, lpstr: windows_core::PCWSTR, dwlsize: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder_Impl::AllocCapFile(this, core::mem::transmute(&lpstr), core::mem::transmute_copy(&dwlsize)).into() } - unsafe extern "system" fn CopyCaptureFile(this: *mut core::ffi::c_void, lpwstrold: windows_core::PCWSTR, lpwstrnew: windows_core::PCWSTR, fallowescabort: i32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder_Impl, - { + unsafe extern "system" fn CopyCaptureFile(this: *mut core::ffi::c_void, lpwstrold: windows_core::PCWSTR, lpwstrnew: windows_core::PCWSTR, fallowescabort: i32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder_Impl::CopyCaptureFile(this, core::mem::transmute(&lpwstrold), core::mem::transmute(&lpwstrnew), core::mem::transmute_copy(&fallowescabort), windows_core::from_raw_borrowed(&pcallback)).into() } @@ -9795,7 +7176,7 @@ impl ICaptureGraphBuilder_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICaptureGraphBuilder2_Impl: Sized { +pub trait ICaptureGraphBuilder2_Impl: Sized + windows_core::IUnknownImpl { fn SetFiltergraph(&self, pfg: Option<&IGraphBuilder>) -> windows_core::Result<()>; fn GetFiltergraph(&self) -> windows_core::Result; fn SetOutputFileName(&self, ptype: *const windows_core::GUID, lpstrfile: &windows_core::PCWSTR, ppf: *mut Option, ppsink: *mut Option) -> windows_core::Result<()>; @@ -9810,21 +7191,12 @@ pub trait ICaptureGraphBuilder2_Impl: Sized { impl windows_core::RuntimeName for ICaptureGraphBuilder2 {} #[cfg(feature = "Win32_System_Com")] impl ICaptureGraphBuilder2_Vtbl { - pub const fn new() -> ICaptureGraphBuilder2_Vtbl - where - Identity: ICaptureGraphBuilder2_Impl, - { - unsafe extern "system" fn SetFiltergraph(this: *mut core::ffi::c_void, pfg: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder2_Impl, - { + pub const fn new() -> ICaptureGraphBuilder2_Vtbl { + unsafe extern "system" fn SetFiltergraph(this: *mut core::ffi::c_void, pfg: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder2_Impl::SetFiltergraph(this, windows_core::from_raw_borrowed(&pfg)).into() } - unsafe extern "system" fn GetFiltergraph(this: *mut core::ffi::c_void, ppfg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder2_Impl, - { + unsafe extern "system" fn GetFiltergraph(this: *mut core::ffi::c_void, ppfg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICaptureGraphBuilder2_Impl::GetFiltergraph(this) { Ok(ok__) => { @@ -9834,52 +7206,31 @@ impl ICaptureGraphBuilder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputFileName(this: *mut core::ffi::c_void, ptype: *const windows_core::GUID, lpstrfile: windows_core::PCWSTR, ppf: *mut *mut core::ffi::c_void, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder2_Impl, - { + unsafe extern "system" fn SetOutputFileName(this: *mut core::ffi::c_void, ptype: *const windows_core::GUID, lpstrfile: windows_core::PCWSTR, ppf: *mut *mut core::ffi::c_void, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder2_Impl::SetOutputFileName(this, core::mem::transmute_copy(&ptype), core::mem::transmute(&lpstrfile), core::mem::transmute_copy(&ppf), core::mem::transmute_copy(&ppsink)).into() } - unsafe extern "system" fn FindInterface(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, pf: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder2_Impl, - { + unsafe extern "system" fn FindInterface(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, pf: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder2_Impl::FindInterface(this, core::mem::transmute_copy(&pcategory), core::mem::transmute_copy(&ptype), windows_core::from_raw_borrowed(&pf), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppint)).into() } - unsafe extern "system" fn RenderStream(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, psource: *mut core::ffi::c_void, pfcompressor: *mut core::ffi::c_void, pfrenderer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder2_Impl, - { + unsafe extern "system" fn RenderStream(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, psource: *mut core::ffi::c_void, pfcompressor: *mut core::ffi::c_void, pfrenderer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder2_Impl::RenderStream(this, core::mem::transmute_copy(&pcategory), core::mem::transmute_copy(&ptype), windows_core::from_raw_borrowed(&psource), windows_core::from_raw_borrowed(&pfcompressor), windows_core::from_raw_borrowed(&pfrenderer)).into() } - unsafe extern "system" fn ControlStream(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, pfilter: *mut core::ffi::c_void, pstart: *const i64, pstop: *const i64, wstartcookie: u16, wstopcookie: u16) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder2_Impl, - { + unsafe extern "system" fn ControlStream(this: *mut core::ffi::c_void, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, pfilter: *mut core::ffi::c_void, pstart: *const i64, pstop: *const i64, wstartcookie: u16, wstopcookie: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder2_Impl::ControlStream(this, core::mem::transmute_copy(&pcategory), core::mem::transmute_copy(&ptype), windows_core::from_raw_borrowed(&pfilter), core::mem::transmute_copy(&pstart), core::mem::transmute_copy(&pstop), core::mem::transmute_copy(&wstartcookie), core::mem::transmute_copy(&wstopcookie)).into() } - unsafe extern "system" fn AllocCapFile(this: *mut core::ffi::c_void, lpstr: windows_core::PCWSTR, dwlsize: u64) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder2_Impl, - { + unsafe extern "system" fn AllocCapFile(this: *mut core::ffi::c_void, lpstr: windows_core::PCWSTR, dwlsize: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder2_Impl::AllocCapFile(this, core::mem::transmute(&lpstr), core::mem::transmute_copy(&dwlsize)).into() } - unsafe extern "system" fn CopyCaptureFile(this: *mut core::ffi::c_void, lpwstrold: windows_core::PCWSTR, lpwstrnew: windows_core::PCWSTR, fallowescabort: i32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder2_Impl, - { + unsafe extern "system" fn CopyCaptureFile(this: *mut core::ffi::c_void, lpwstrold: windows_core::PCWSTR, lpwstrnew: windows_core::PCWSTR, fallowescabort: i32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaptureGraphBuilder2_Impl::CopyCaptureFile(this, core::mem::transmute(&lpwstrold), core::mem::transmute(&lpwstrnew), core::mem::transmute_copy(&fallowescabort), windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn FindPin(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, pindir: PIN_DIRECTION, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, funconnected: super::super::Foundation::BOOL, num: i32, pppin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICaptureGraphBuilder2_Impl, - { + unsafe extern "system" fn FindPin(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, pindir: PIN_DIRECTION, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, funconnected: super::super::Foundation::BOOL, num: i32, pppin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICaptureGraphBuilder2_Impl::FindPin(this, windows_core::from_raw_borrowed(&psource), core::mem::transmute_copy(&pindir), core::mem::transmute_copy(&pcategory), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&funconnected), core::mem::transmute_copy(&num)) { Ok(ok__) => { @@ -9907,7 +7258,7 @@ impl ICaptureGraphBuilder2_Vtbl { } } #[cfg(feature = "Win32_Media_WindowsMediaFormat")] -pub trait IConfigAsfWriter_Impl: Sized { +pub trait IConfigAsfWriter_Impl: Sized + windows_core::IUnknownImpl { fn ConfigureFilterUsingProfileId(&self, dwprofileid: u32) -> windows_core::Result<()>; fn GetCurrentProfileId(&self) -> windows_core::Result; fn ConfigureFilterUsingProfileGuid(&self, guidprofile: *const windows_core::GUID) -> windows_core::Result<()>; @@ -9921,21 +7272,12 @@ pub trait IConfigAsfWriter_Impl: Sized { impl windows_core::RuntimeName for IConfigAsfWriter {} #[cfg(feature = "Win32_Media_WindowsMediaFormat")] impl IConfigAsfWriter_Vtbl { - pub const fn new() -> IConfigAsfWriter_Vtbl - where - Identity: IConfigAsfWriter_Impl, - { - unsafe extern "system" fn ConfigureFilterUsingProfileId(this: *mut core::ffi::c_void, dwprofileid: u32) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter_Impl, - { + pub const fn new() -> IConfigAsfWriter_Vtbl { + unsafe extern "system" fn ConfigureFilterUsingProfileId(this: *mut core::ffi::c_void, dwprofileid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAsfWriter_Impl::ConfigureFilterUsingProfileId(this, core::mem::transmute_copy(&dwprofileid)).into() } - unsafe extern "system" fn GetCurrentProfileId(this: *mut core::ffi::c_void, pdwprofileid: *mut u32) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter_Impl, - { + unsafe extern "system" fn GetCurrentProfileId(this: *mut core::ffi::c_void, pdwprofileid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigAsfWriter_Impl::GetCurrentProfileId(this) { Ok(ok__) => { @@ -9945,17 +7287,11 @@ impl IConfigAsfWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConfigureFilterUsingProfileGuid(this: *mut core::ffi::c_void, guidprofile: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter_Impl, - { + unsafe extern "system" fn ConfigureFilterUsingProfileGuid(this: *mut core::ffi::c_void, guidprofile: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAsfWriter_Impl::ConfigureFilterUsingProfileGuid(this, core::mem::transmute_copy(&guidprofile)).into() } - unsafe extern "system" fn GetCurrentProfileGuid(this: *mut core::ffi::c_void, pprofileguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter_Impl, - { + unsafe extern "system" fn GetCurrentProfileGuid(this: *mut core::ffi::c_void, pprofileguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigAsfWriter_Impl::GetCurrentProfileGuid(this) { Ok(ok__) => { @@ -9965,17 +7301,11 @@ impl IConfigAsfWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConfigureFilterUsingProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter_Impl, - { + unsafe extern "system" fn ConfigureFilterUsingProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAsfWriter_Impl::ConfigureFilterUsingProfile(this, windows_core::from_raw_borrowed(&pprofile)).into() } - unsafe extern "system" fn GetCurrentProfile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter_Impl, - { + unsafe extern "system" fn GetCurrentProfile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigAsfWriter_Impl::GetCurrentProfile(this) { Ok(ok__) => { @@ -9985,17 +7315,11 @@ impl IConfigAsfWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIndexMode(this: *mut core::ffi::c_void, bindexfile: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter_Impl, - { + unsafe extern "system" fn SetIndexMode(this: *mut core::ffi::c_void, bindexfile: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAsfWriter_Impl::SetIndexMode(this, core::mem::transmute_copy(&bindexfile)).into() } - unsafe extern "system" fn GetIndexMode(this: *mut core::ffi::c_void, pbindexfile: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter_Impl, - { + unsafe extern "system" fn GetIndexMode(this: *mut core::ffi::c_void, pbindexfile: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigAsfWriter_Impl::GetIndexMode(this) { Ok(ok__) => { @@ -10032,14 +7356,8 @@ pub trait IConfigAsfWriter2_Impl: Sized + IConfigAsfWriter_Impl { impl windows_core::RuntimeName for IConfigAsfWriter2 {} #[cfg(feature = "Win32_Media_WindowsMediaFormat")] impl IConfigAsfWriter2_Vtbl { - pub const fn new() -> IConfigAsfWriter2_Vtbl - where - Identity: IConfigAsfWriter2_Impl, - { - unsafe extern "system" fn StreamNumFromPin(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, pwstreamnum: *mut u16) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter2_Impl, - { + pub const fn new() -> IConfigAsfWriter2_Vtbl { + unsafe extern "system" fn StreamNumFromPin(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, pwstreamnum: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigAsfWriter2_Impl::StreamNumFromPin(this, windows_core::from_raw_borrowed(&ppin)) { Ok(ok__) => { @@ -10049,24 +7367,15 @@ impl IConfigAsfWriter2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParam(this: *mut core::ffi::c_void, dwparam: u32, dwparam1: u32, dwparam2: u32) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter2_Impl, - { + unsafe extern "system" fn SetParam(this: *mut core::ffi::c_void, dwparam: u32, dwparam1: u32, dwparam2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAsfWriter2_Impl::SetParam(this, core::mem::transmute_copy(&dwparam), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2)).into() } - unsafe extern "system" fn GetParam(this: *mut core::ffi::c_void, dwparam: u32, pdwparam1: *mut u32, pdwparam2: *mut u32) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter2_Impl, - { + unsafe extern "system" fn GetParam(this: *mut core::ffi::c_void, dwparam: u32, pdwparam1: *mut u32, pdwparam2: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAsfWriter2_Impl::GetParam(this, core::mem::transmute_copy(&dwparam), core::mem::transmute_copy(&pdwparam1), core::mem::transmute_copy(&pdwparam2)).into() } - unsafe extern "system" fn ResetMultiPassState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConfigAsfWriter2_Impl, - { + unsafe extern "system" fn ResetMultiPassState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAsfWriter2_Impl::ResetMultiPassState(this).into() } @@ -10082,7 +7391,7 @@ impl IConfigAsfWriter2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IConfigAviMux_Impl: Sized { +pub trait IConfigAviMux_Impl: Sized + windows_core::IUnknownImpl { fn SetMasterStream(&self, istream: i32) -> windows_core::Result<()>; fn GetMasterStream(&self) -> windows_core::Result; fn SetOutputCompatibilityIndex(&self, foldindex: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -10090,21 +7399,12 @@ pub trait IConfigAviMux_Impl: Sized { } impl windows_core::RuntimeName for IConfigAviMux {} impl IConfigAviMux_Vtbl { - pub const fn new() -> IConfigAviMux_Vtbl - where - Identity: IConfigAviMux_Impl, - { - unsafe extern "system" fn SetMasterStream(this: *mut core::ffi::c_void, istream: i32) -> windows_core::HRESULT - where - Identity: IConfigAviMux_Impl, - { + pub const fn new() -> IConfigAviMux_Vtbl { + unsafe extern "system" fn SetMasterStream(this: *mut core::ffi::c_void, istream: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAviMux_Impl::SetMasterStream(this, core::mem::transmute_copy(&istream)).into() } - unsafe extern "system" fn GetMasterStream(this: *mut core::ffi::c_void, pstream: *mut i32) -> windows_core::HRESULT - where - Identity: IConfigAviMux_Impl, - { + unsafe extern "system" fn GetMasterStream(this: *mut core::ffi::c_void, pstream: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigAviMux_Impl::GetMasterStream(this) { Ok(ok__) => { @@ -10114,17 +7414,11 @@ impl IConfigAviMux_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCompatibilityIndex(this: *mut core::ffi::c_void, foldindex: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IConfigAviMux_Impl, - { + unsafe extern "system" fn SetOutputCompatibilityIndex(this: *mut core::ffi::c_void, foldindex: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAviMux_Impl::SetOutputCompatibilityIndex(this, core::mem::transmute_copy(&foldindex)).into() } - unsafe extern "system" fn GetOutputCompatibilityIndex(this: *mut core::ffi::c_void, pfoldindex: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IConfigAviMux_Impl, - { + unsafe extern "system" fn GetOutputCompatibilityIndex(this: *mut core::ffi::c_void, pfoldindex: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigAviMux_Impl::GetOutputCompatibilityIndex(this) { Ok(ok__) => { @@ -10146,7 +7440,7 @@ impl IConfigAviMux_Vtbl { iid == &::IID } } -pub trait IConfigInterleaving_Impl: Sized { +pub trait IConfigInterleaving_Impl: Sized + windows_core::IUnknownImpl { fn SetMode(&self, mode: InterleavingMode) -> windows_core::Result<()>; fn Mode(&self) -> windows_core::Result; fn put_Interleaving(&self, prtinterleave: *const i64, prtpreroll: *const i64) -> windows_core::Result<()>; @@ -10154,21 +7448,12 @@ pub trait IConfigInterleaving_Impl: Sized { } impl windows_core::RuntimeName for IConfigInterleaving {} impl IConfigInterleaving_Vtbl { - pub const fn new() -> IConfigInterleaving_Vtbl - where - Identity: IConfigInterleaving_Impl, - { - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: InterleavingMode) -> windows_core::HRESULT - where - Identity: IConfigInterleaving_Impl, - { + pub const fn new() -> IConfigInterleaving_Vtbl { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: InterleavingMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigInterleaving_Impl::SetMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, pmode: *mut InterleavingMode) -> windows_core::HRESULT - where - Identity: IConfigInterleaving_Impl, - { + unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, pmode: *mut InterleavingMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigInterleaving_Impl::Mode(this) { Ok(ok__) => { @@ -10178,17 +7463,11 @@ impl IConfigInterleaving_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Interleaving(this: *mut core::ffi::c_void, prtinterleave: *const i64, prtpreroll: *const i64) -> windows_core::HRESULT - where - Identity: IConfigInterleaving_Impl, - { + unsafe extern "system" fn put_Interleaving(this: *mut core::ffi::c_void, prtinterleave: *const i64, prtpreroll: *const i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigInterleaving_Impl::put_Interleaving(this, core::mem::transmute_copy(&prtinterleave), core::mem::transmute_copy(&prtpreroll)).into() } - unsafe extern "system" fn get_Interleaving(this: *mut core::ffi::c_void, prtinterleave: *mut i64, prtpreroll: *mut i64) -> windows_core::HRESULT - where - Identity: IConfigInterleaving_Impl, - { + unsafe extern "system" fn get_Interleaving(this: *mut core::ffi::c_void, prtinterleave: *mut i64, prtpreroll: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigInterleaving_Impl::get_Interleaving(this, core::mem::transmute_copy(&prtinterleave), core::mem::transmute_copy(&prtpreroll)).into() } @@ -10205,21 +7484,15 @@ impl IConfigInterleaving_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICreateDevEnum_Impl: Sized { +pub trait ICreateDevEnum_Impl: Sized + windows_core::IUnknownImpl { fn CreateClassEnumerator(&self, clsiddeviceclass: *const windows_core::GUID, ppenummoniker: *mut Option, dwflags: u32) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ICreateDevEnum {} #[cfg(feature = "Win32_System_Com")] impl ICreateDevEnum_Vtbl { - pub const fn new() -> ICreateDevEnum_Vtbl - where - Identity: ICreateDevEnum_Impl, - { - unsafe extern "system" fn CreateClassEnumerator(this: *mut core::ffi::c_void, clsiddeviceclass: *const windows_core::GUID, ppenummoniker: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ICreateDevEnum_Impl, - { + pub const fn new() -> ICreateDevEnum_Vtbl { + unsafe extern "system" fn CreateClassEnumerator(this: *mut core::ffi::c_void, clsiddeviceclass: *const windows_core::GUID, ppenummoniker: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateDevEnum_Impl::CreateClassEnumerator(this, core::mem::transmute_copy(&clsiddeviceclass), core::mem::transmute_copy(&ppenummoniker), core::mem::transmute_copy(&dwflags)).into() } @@ -10230,7 +7503,7 @@ impl ICreateDevEnum_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub trait IDDrawExclModeVideo_Impl: Sized { +pub trait IDDrawExclModeVideo_Impl: Sized + windows_core::IUnknownImpl { fn SetDDrawObject(&self, pddrawobject: Option<&super::super::Graphics::DirectDraw::IDirectDraw>) -> windows_core::Result<()>; fn GetDDrawObject(&self, ppddrawobject: *mut Option, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn SetDDrawSurface(&self, pddrawsurface: Option<&super::super::Graphics::DirectDraw::IDirectDrawSurface>) -> windows_core::Result<()>; @@ -10243,56 +7516,32 @@ pub trait IDDrawExclModeVideo_Impl: Sized { impl windows_core::RuntimeName for IDDrawExclModeVideo {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IDDrawExclModeVideo_Vtbl { - pub const fn new() -> IDDrawExclModeVideo_Vtbl - where - Identity: IDDrawExclModeVideo_Impl, - { - unsafe extern "system" fn SetDDrawObject(this: *mut core::ffi::c_void, pddrawobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDDrawExclModeVideo_Impl, - { + pub const fn new() -> IDDrawExclModeVideo_Vtbl { + unsafe extern "system" fn SetDDrawObject(this: *mut core::ffi::c_void, pddrawobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideo_Impl::SetDDrawObject(this, windows_core::from_raw_borrowed(&pddrawobject)).into() } - unsafe extern "system" fn GetDDrawObject(this: *mut core::ffi::c_void, ppddrawobject: *mut *mut core::ffi::c_void, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDDrawExclModeVideo_Impl, - { + unsafe extern "system" fn GetDDrawObject(this: *mut core::ffi::c_void, ppddrawobject: *mut *mut core::ffi::c_void, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideo_Impl::GetDDrawObject(this, core::mem::transmute_copy(&ppddrawobject), core::mem::transmute_copy(&pbusingexternal)).into() } - unsafe extern "system" fn SetDDrawSurface(this: *mut core::ffi::c_void, pddrawsurface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDDrawExclModeVideo_Impl, - { + unsafe extern "system" fn SetDDrawSurface(this: *mut core::ffi::c_void, pddrawsurface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideo_Impl::SetDDrawSurface(this, windows_core::from_raw_borrowed(&pddrawsurface)).into() } - unsafe extern "system" fn GetDDrawSurface(this: *mut core::ffi::c_void, ppddrawsurface: *mut *mut core::ffi::c_void, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDDrawExclModeVideo_Impl, - { + unsafe extern "system" fn GetDDrawSurface(this: *mut core::ffi::c_void, ppddrawsurface: *mut *mut core::ffi::c_void, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideo_Impl::GetDDrawSurface(this, core::mem::transmute_copy(&ppddrawsurface), core::mem::transmute_copy(&pbusingexternal)).into() } - unsafe extern "system" fn SetDrawParameters(this: *mut core::ffi::c_void, prcsource: *const super::super::Foundation::RECT, prctarget: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDDrawExclModeVideo_Impl, - { + unsafe extern "system" fn SetDrawParameters(this: *mut core::ffi::c_void, prcsource: *const super::super::Foundation::RECT, prctarget: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideo_Impl::SetDrawParameters(this, core::mem::transmute_copy(&prcsource), core::mem::transmute_copy(&prctarget)).into() } - unsafe extern "system" fn GetNativeVideoProps(this: *mut core::ffi::c_void, pdwvideowidth: *mut u32, pdwvideoheight: *mut u32, pdwpictaspectratiox: *mut u32, pdwpictaspectratioy: *mut u32) -> windows_core::HRESULT - where - Identity: IDDrawExclModeVideo_Impl, - { + unsafe extern "system" fn GetNativeVideoProps(this: *mut core::ffi::c_void, pdwvideowidth: *mut u32, pdwvideoheight: *mut u32, pdwpictaspectratiox: *mut u32, pdwpictaspectratioy: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideo_Impl::GetNativeVideoProps(this, core::mem::transmute_copy(&pdwvideowidth), core::mem::transmute_copy(&pdwvideoheight), core::mem::transmute_copy(&pdwpictaspectratiox), core::mem::transmute_copy(&pdwpictaspectratioy)).into() } - unsafe extern "system" fn SetCallbackInterface(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDDrawExclModeVideo_Impl, - { + unsafe extern "system" fn SetCallbackInterface(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideo_Impl::SetCallbackInterface(this, windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&dwflags)).into() } @@ -10311,35 +7560,23 @@ impl IDDrawExclModeVideo_Vtbl { iid == &::IID } } -pub trait IDDrawExclModeVideoCallback_Impl: Sized { +pub trait IDDrawExclModeVideoCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnUpdateOverlay(&self, bbefore: super::super::Foundation::BOOL, dwflags: u32, boldvisible: super::super::Foundation::BOOL, prcoldsrc: *const super::super::Foundation::RECT, prcolddest: *const super::super::Foundation::RECT, bnewvisible: super::super::Foundation::BOOL, prcnewsrc: *const super::super::Foundation::RECT, prcnewdest: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn OnUpdateColorKey(&self, pkey: *const COLORKEY, dwcolor: u32) -> windows_core::Result<()>; fn OnUpdateSize(&self, dwwidth: u32, dwheight: u32, dwarwidth: u32, dwarheight: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDDrawExclModeVideoCallback {} impl IDDrawExclModeVideoCallback_Vtbl { - pub const fn new() -> IDDrawExclModeVideoCallback_Vtbl - where - Identity: IDDrawExclModeVideoCallback_Impl, - { - unsafe extern "system" fn OnUpdateOverlay(this: *mut core::ffi::c_void, bbefore: super::super::Foundation::BOOL, dwflags: u32, boldvisible: super::super::Foundation::BOOL, prcoldsrc: *const super::super::Foundation::RECT, prcolddest: *const super::super::Foundation::RECT, bnewvisible: super::super::Foundation::BOOL, prcnewsrc: *const super::super::Foundation::RECT, prcnewdest: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDDrawExclModeVideoCallback_Impl, - { + pub const fn new() -> IDDrawExclModeVideoCallback_Vtbl { + unsafe extern "system" fn OnUpdateOverlay(this: *mut core::ffi::c_void, bbefore: super::super::Foundation::BOOL, dwflags: u32, boldvisible: super::super::Foundation::BOOL, prcoldsrc: *const super::super::Foundation::RECT, prcolddest: *const super::super::Foundation::RECT, bnewvisible: super::super::Foundation::BOOL, prcnewsrc: *const super::super::Foundation::RECT, prcnewdest: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideoCallback_Impl::OnUpdateOverlay(this, core::mem::transmute_copy(&bbefore), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&boldvisible), core::mem::transmute_copy(&prcoldsrc), core::mem::transmute_copy(&prcolddest), core::mem::transmute_copy(&bnewvisible), core::mem::transmute_copy(&prcnewsrc), core::mem::transmute_copy(&prcnewdest)).into() } - unsafe extern "system" fn OnUpdateColorKey(this: *mut core::ffi::c_void, pkey: *const COLORKEY, dwcolor: u32) -> windows_core::HRESULT - where - Identity: IDDrawExclModeVideoCallback_Impl, - { + unsafe extern "system" fn OnUpdateColorKey(this: *mut core::ffi::c_void, pkey: *const COLORKEY, dwcolor: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideoCallback_Impl::OnUpdateColorKey(this, core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&dwcolor)).into() } - unsafe extern "system" fn OnUpdateSize(this: *mut core::ffi::c_void, dwwidth: u32, dwheight: u32, dwarwidth: u32, dwarheight: u32) -> windows_core::HRESULT - where - Identity: IDDrawExclModeVideoCallback_Impl, - { + unsafe extern "system" fn OnUpdateSize(this: *mut core::ffi::c_void, dwwidth: u32, dwheight: u32, dwarwidth: u32, dwarheight: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideoCallback_Impl::OnUpdateSize(this, core::mem::transmute_copy(&dwwidth), core::mem::transmute_copy(&dwheight), core::mem::transmute_copy(&dwarwidth), core::mem::transmute_copy(&dwarheight)).into() } @@ -10354,19 +7591,13 @@ impl IDDrawExclModeVideoCallback_Vtbl { iid == &::IID } } -pub trait IDMOWrapperFilter_Impl: Sized { +pub trait IDMOWrapperFilter_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, clsiddmo: *const windows_core::GUID, catdmo: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDMOWrapperFilter {} impl IDMOWrapperFilter_Vtbl { - pub const fn new() -> IDMOWrapperFilter_Vtbl - where - Identity: IDMOWrapperFilter_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, clsiddmo: *const windows_core::GUID, catdmo: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDMOWrapperFilter_Impl, - { + pub const fn new() -> IDMOWrapperFilter_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, clsiddmo: *const windows_core::GUID, catdmo: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMOWrapperFilter_Impl::Init(this, core::mem::transmute_copy(&clsiddmo), core::mem::transmute_copy(&catdmo)).into() } @@ -10376,27 +7607,18 @@ impl IDMOWrapperFilter_Vtbl { iid == &::IID } } -pub trait IDShowPlugin_Impl: Sized { +pub trait IDShowPlugin_Impl: Sized + windows_core::IUnknownImpl { fn URL(&self, purl: *mut windows_core::BSTR) -> windows_core::Result<()>; fn UserAgent(&self, puseragent: *mut windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDShowPlugin {} impl IDShowPlugin_Vtbl { - pub const fn new() -> IDShowPlugin_Vtbl - where - Identity: IDShowPlugin_Impl, - { - unsafe extern "system" fn URL(this: *mut core::ffi::c_void, purl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDShowPlugin_Impl, - { + pub const fn new() -> IDShowPlugin_Vtbl { + unsafe extern "system" fn URL(this: *mut core::ffi::c_void, purl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDShowPlugin_Impl::URL(this, core::mem::transmute_copy(&purl)).into() } - unsafe extern "system" fn UserAgent(this: *mut core::ffi::c_void, puseragent: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDShowPlugin_Impl, - { + unsafe extern "system" fn UserAgent(this: *mut core::ffi::c_void, puseragent: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDShowPlugin_Impl::UserAgent(this, core::mem::transmute_copy(&puseragent)).into() } @@ -10406,27 +7628,18 @@ impl IDShowPlugin_Vtbl { iid == &::IID } } -pub trait IDVEnc_Impl: Sized { +pub trait IDVEnc_Impl: Sized + windows_core::IUnknownImpl { fn get_IFormatResolution(&self, videoformat: *mut i32, dvformat: *mut i32, resolution: *mut i32, fdvinfo: u8, sdvinfo: *mut DVINFO) -> windows_core::Result<()>; fn put_IFormatResolution(&self, videoformat: i32, dvformat: i32, resolution: i32, fdvinfo: u8, sdvinfo: *const DVINFO) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDVEnc {} impl IDVEnc_Vtbl { - pub const fn new() -> IDVEnc_Vtbl - where - Identity: IDVEnc_Impl, - { - unsafe extern "system" fn get_IFormatResolution(this: *mut core::ffi::c_void, videoformat: *mut i32, dvformat: *mut i32, resolution: *mut i32, fdvinfo: u8, sdvinfo: *mut DVINFO) -> windows_core::HRESULT - where - Identity: IDVEnc_Impl, - { + pub const fn new() -> IDVEnc_Vtbl { + unsafe extern "system" fn get_IFormatResolution(this: *mut core::ffi::c_void, videoformat: *mut i32, dvformat: *mut i32, resolution: *mut i32, fdvinfo: u8, sdvinfo: *mut DVINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVEnc_Impl::get_IFormatResolution(this, core::mem::transmute_copy(&videoformat), core::mem::transmute_copy(&dvformat), core::mem::transmute_copy(&resolution), core::mem::transmute_copy(&fdvinfo), core::mem::transmute_copy(&sdvinfo)).into() } - unsafe extern "system" fn put_IFormatResolution(this: *mut core::ffi::c_void, videoformat: i32, dvformat: i32, resolution: i32, fdvinfo: u8, sdvinfo: *const DVINFO) -> windows_core::HRESULT - where - Identity: IDVEnc_Impl, - { + unsafe extern "system" fn put_IFormatResolution(this: *mut core::ffi::c_void, videoformat: i32, dvformat: i32, resolution: i32, fdvinfo: u8, sdvinfo: *const DVINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVEnc_Impl::put_IFormatResolution(this, core::mem::transmute_copy(&videoformat), core::mem::transmute_copy(&dvformat), core::mem::transmute_copy(&resolution), core::mem::transmute_copy(&fdvinfo), core::mem::transmute_copy(&sdvinfo)).into() } @@ -10440,19 +7653,13 @@ impl IDVEnc_Vtbl { iid == &::IID } } -pub trait IDVRGB219_Impl: Sized { +pub trait IDVRGB219_Impl: Sized + windows_core::IUnknownImpl { fn SetRGB219(&self, bstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDVRGB219 {} impl IDVRGB219_Vtbl { - pub const fn new() -> IDVRGB219_Vtbl - where - Identity: IDVRGB219_Impl, - { - unsafe extern "system" fn SetRGB219(this: *mut core::ffi::c_void, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDVRGB219_Impl, - { + pub const fn new() -> IDVRGB219_Vtbl { + unsafe extern "system" fn SetRGB219(this: *mut core::ffi::c_void, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVRGB219_Impl::SetRGB219(this, core::mem::transmute_copy(&bstate)).into() } @@ -10462,19 +7669,13 @@ impl IDVRGB219_Vtbl { iid == &::IID } } -pub trait IDVSplitter_Impl: Sized { +pub trait IDVSplitter_Impl: Sized + windows_core::IUnknownImpl { fn DiscardAlternateVideoFrames(&self, ndiscard: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDVSplitter {} impl IDVSplitter_Vtbl { - pub const fn new() -> IDVSplitter_Vtbl - where - Identity: IDVSplitter_Impl, - { - unsafe extern "system" fn DiscardAlternateVideoFrames(this: *mut core::ffi::c_void, ndiscard: i32) -> windows_core::HRESULT - where - Identity: IDVSplitter_Impl, - { + pub const fn new() -> IDVSplitter_Vtbl { + unsafe extern "system" fn DiscardAlternateVideoFrames(this: *mut core::ffi::c_void, ndiscard: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVSplitter_Impl::DiscardAlternateVideoFrames(this, core::mem::transmute_copy(&ndiscard)).into() } @@ -10484,27 +7685,18 @@ impl IDVSplitter_Vtbl { iid == &::IID } } -pub trait IDecimateVideoImage_Impl: Sized { +pub trait IDecimateVideoImage_Impl: Sized + windows_core::IUnknownImpl { fn SetDecimationImageSize(&self, lwidth: i32, lheight: i32) -> windows_core::Result<()>; fn ResetDecimationImageSize(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDecimateVideoImage {} impl IDecimateVideoImage_Vtbl { - pub const fn new() -> IDecimateVideoImage_Vtbl - where - Identity: IDecimateVideoImage_Impl, - { - unsafe extern "system" fn SetDecimationImageSize(this: *mut core::ffi::c_void, lwidth: i32, lheight: i32) -> windows_core::HRESULT - where - Identity: IDecimateVideoImage_Impl, - { + pub const fn new() -> IDecimateVideoImage_Vtbl { + unsafe extern "system" fn SetDecimationImageSize(this: *mut core::ffi::c_void, lwidth: i32, lheight: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDecimateVideoImage_Impl::SetDecimationImageSize(this, core::mem::transmute_copy(&lwidth), core::mem::transmute_copy(&lheight)).into() } - unsafe extern "system" fn ResetDecimationImageSize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDecimateVideoImage_Impl, - { + unsafe extern "system" fn ResetDecimationImageSize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDecimateVideoImage_Impl::ResetDecimationImageSize(this).into() } @@ -10518,7 +7710,7 @@ impl IDecimateVideoImage_Vtbl { iid == &::IID } } -pub trait IDeferredCommand_Impl: Sized { +pub trait IDeferredCommand_Impl: Sized + windows_core::IUnknownImpl { fn Cancel(&self) -> windows_core::Result<()>; fn Confidence(&self) -> windows_core::Result; fn Postpone(&self, newtime: f64) -> windows_core::Result<()>; @@ -10526,21 +7718,12 @@ pub trait IDeferredCommand_Impl: Sized { } impl windows_core::RuntimeName for IDeferredCommand {} impl IDeferredCommand_Vtbl { - pub const fn new() -> IDeferredCommand_Vtbl - where - Identity: IDeferredCommand_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDeferredCommand_Impl, - { + pub const fn new() -> IDeferredCommand_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeferredCommand_Impl::Cancel(this).into() } - unsafe extern "system" fn Confidence(this: *mut core::ffi::c_void, pconfidence: *mut i32) -> windows_core::HRESULT - where - Identity: IDeferredCommand_Impl, - { + unsafe extern "system" fn Confidence(this: *mut core::ffi::c_void, pconfidence: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeferredCommand_Impl::Confidence(this) { Ok(ok__) => { @@ -10550,17 +7733,11 @@ impl IDeferredCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Postpone(this: *mut core::ffi::c_void, newtime: f64) -> windows_core::HRESULT - where - Identity: IDeferredCommand_Impl, - { + unsafe extern "system" fn Postpone(this: *mut core::ffi::c_void, newtime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeferredCommand_Impl::Postpone(this, core::mem::transmute_copy(&newtime)).into() } - unsafe extern "system" fn GetHResult(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IDeferredCommand_Impl, - { + unsafe extern "system" fn GetHResult(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeferredCommand_Impl::GetHResult(this) { Ok(ok__) => { @@ -10583,7 +7760,7 @@ impl IDeferredCommand_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub trait IDirectDrawMediaSample_Impl: Sized { +pub trait IDirectDrawMediaSample_Impl: Sized + windows_core::IUnknownImpl { fn GetSurfaceAndReleaseLock(&self, ppdirectdrawsurface: *mut Option, prect: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; fn LockMediaSamplePointer(&self) -> windows_core::Result<()>; } @@ -10591,21 +7768,12 @@ pub trait IDirectDrawMediaSample_Impl: Sized { impl windows_core::RuntimeName for IDirectDrawMediaSample {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IDirectDrawMediaSample_Vtbl { - pub const fn new() -> IDirectDrawMediaSample_Vtbl - where - Identity: IDirectDrawMediaSample_Impl, - { - unsafe extern "system" fn GetSurfaceAndReleaseLock(this: *mut core::ffi::c_void, ppdirectdrawsurface: *mut *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectDrawMediaSample_Impl, - { + pub const fn new() -> IDirectDrawMediaSample_Vtbl { + unsafe extern "system" fn GetSurfaceAndReleaseLock(this: *mut core::ffi::c_void, ppdirectdrawsurface: *mut *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawMediaSample_Impl::GetSurfaceAndReleaseLock(this, core::mem::transmute_copy(&ppdirectdrawsurface), core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn LockMediaSamplePointer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawMediaSample_Impl, - { + unsafe extern "system" fn LockMediaSamplePointer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawMediaSample_Impl::LockMediaSamplePointer(this).into() } @@ -10620,21 +7788,15 @@ impl IDirectDrawMediaSample_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub trait IDirectDrawMediaSampleAllocator_Impl: Sized { +pub trait IDirectDrawMediaSampleAllocator_Impl: Sized + windows_core::IUnknownImpl { fn GetDirectDraw(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_DirectDraw")] impl windows_core::RuntimeName for IDirectDrawMediaSampleAllocator {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IDirectDrawMediaSampleAllocator_Vtbl { - pub const fn new() -> IDirectDrawMediaSampleAllocator_Vtbl - where - Identity: IDirectDrawMediaSampleAllocator_Impl, - { - unsafe extern "system" fn GetDirectDraw(this: *mut core::ffi::c_void, ppdirectdraw: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawMediaSampleAllocator_Impl, - { + pub const fn new() -> IDirectDrawMediaSampleAllocator_Vtbl { + unsafe extern "system" fn GetDirectDraw(this: *mut core::ffi::c_void, ppdirectdraw: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawMediaSampleAllocator_Impl::GetDirectDraw(this) { Ok(ok__) => { @@ -10663,28 +7825,16 @@ pub trait IDirectDrawMediaStream_Impl: Sized + IMediaStream_Impl { impl windows_core::RuntimeName for IDirectDrawMediaStream {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IDirectDrawMediaStream_Vtbl { - pub const fn new() -> IDirectDrawMediaStream_Vtbl - where - Identity: IDirectDrawMediaStream_Impl, - { - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pddsdcurrent: *mut super::super::Graphics::DirectDraw::DDSURFACEDESC, ppdirectdrawpalette: *mut *mut core::ffi::c_void, pddsddesired: *mut super::super::Graphics::DirectDraw::DDSURFACEDESC, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawMediaStream_Impl, - { + pub const fn new() -> IDirectDrawMediaStream_Vtbl { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pddsdcurrent: *mut super::super::Graphics::DirectDraw::DDSURFACEDESC, ppdirectdrawpalette: *mut *mut core::ffi::c_void, pddsddesired: *mut super::super::Graphics::DirectDraw::DDSURFACEDESC, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawMediaStream_Impl::GetFormat(this, core::mem::transmute_copy(&pddsdcurrent), core::mem::transmute_copy(&ppdirectdrawpalette), core::mem::transmute_copy(&pddsddesired), core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pddsurfacedesc: *const super::super::Graphics::DirectDraw::DDSURFACEDESC, pdirectdrawpalette: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawMediaStream_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pddsurfacedesc: *const super::super::Graphics::DirectDraw::DDSURFACEDESC, pdirectdrawpalette: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawMediaStream_Impl::SetFormat(this, core::mem::transmute_copy(&pddsurfacedesc), windows_core::from_raw_borrowed(&pdirectdrawpalette)).into() } - unsafe extern "system" fn GetDirectDraw(this: *mut core::ffi::c_void, ppdirectdraw: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawMediaStream_Impl, - { + unsafe extern "system" fn GetDirectDraw(this: *mut core::ffi::c_void, ppdirectdraw: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawMediaStream_Impl::GetDirectDraw(this) { Ok(ok__) => { @@ -10694,17 +7844,11 @@ impl IDirectDrawMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDirectDraw(this: *mut core::ffi::c_void, pdirectdraw: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawMediaStream_Impl, - { + unsafe extern "system" fn SetDirectDraw(this: *mut core::ffi::c_void, pdirectdraw: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawMediaStream_Impl::SetDirectDraw(this, windows_core::from_raw_borrowed(&pdirectdraw)).into() } - unsafe extern "system" fn CreateSample(this: *mut core::ffi::c_void, psurface: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT, dwflags: u32, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawMediaStream_Impl, - { + unsafe extern "system" fn CreateSample(this: *mut core::ffi::c_void, psurface: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT, dwflags: u32, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawMediaStream_Impl::CreateSample(this, windows_core::from_raw_borrowed(&psurface), core::mem::transmute_copy(&prect), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -10714,10 +7858,7 @@ impl IDirectDrawMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimePerFrame(this: *mut core::ffi::c_void, pframetime: *mut i64) -> windows_core::HRESULT - where - Identity: IDirectDrawMediaStream_Impl, - { + unsafe extern "system" fn GetTimePerFrame(this: *mut core::ffi::c_void, pframetime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawMediaStream_Impl::GetTimePerFrame(this) { Ok(ok__) => { @@ -10750,21 +7891,12 @@ pub trait IDirectDrawStreamSample_Impl: Sized + IStreamSample_Impl { impl windows_core::RuntimeName for IDirectDrawStreamSample {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IDirectDrawStreamSample_Vtbl { - pub const fn new() -> IDirectDrawStreamSample_Vtbl - where - Identity: IDirectDrawStreamSample_Impl, - { - unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, ppdirectdrawsurface: *mut *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectDrawStreamSample_Impl, - { + pub const fn new() -> IDirectDrawStreamSample_Vtbl { + unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, ppdirectdrawsurface: *mut *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawStreamSample_Impl::GetSurface(this, core::mem::transmute_copy(&ppdirectdrawsurface), core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn SetRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDirectDrawStreamSample_Impl, - { + unsafe extern "system" fn SetRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawStreamSample_Impl::SetRect(this, core::mem::transmute_copy(&prect)).into() } @@ -10775,7 +7907,7 @@ impl IDirectDrawStreamSample_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub trait IDirectDrawVideo_Impl: Sized { +pub trait IDirectDrawVideo_Impl: Sized + windows_core::IUnknownImpl { fn GetSwitches(&self) -> windows_core::Result; fn SetSwitches(&self, switches: u32) -> windows_core::Result<()>; fn GetCaps(&self, pcaps: *mut super::super::Graphics::DirectDraw::DDCAPS_DX7) -> windows_core::Result<()>; @@ -10797,14 +7929,8 @@ pub trait IDirectDrawVideo_Impl: Sized { impl windows_core::RuntimeName for IDirectDrawVideo {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IDirectDrawVideo_Vtbl { - pub const fn new() -> IDirectDrawVideo_Vtbl - where - Identity: IDirectDrawVideo_Impl, - { - unsafe extern "system" fn GetSwitches(this: *mut core::ffi::c_void, pswitches: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + pub const fn new() -> IDirectDrawVideo_Vtbl { + unsafe extern "system" fn GetSwitches(this: *mut core::ffi::c_void, pswitches: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawVideo_Impl::GetSwitches(this) { Ok(ok__) => { @@ -10814,52 +7940,31 @@ impl IDirectDrawVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSwitches(this: *mut core::ffi::c_void, switches: u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn SetSwitches(this: *mut core::ffi::c_void, switches: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideo_Impl::SetSwitches(this, core::mem::transmute_copy(&switches)).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pcaps: *mut super::super::Graphics::DirectDraw::DDCAPS_DX7) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pcaps: *mut super::super::Graphics::DirectDraw::DDCAPS_DX7) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideo_Impl::GetCaps(this, core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetEmulatedCaps(this: *mut core::ffi::c_void, pcaps: *mut super::super::Graphics::DirectDraw::DDCAPS_DX7) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn GetEmulatedCaps(this: *mut core::ffi::c_void, pcaps: *mut super::super::Graphics::DirectDraw::DDCAPS_DX7) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideo_Impl::GetEmulatedCaps(this, core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, psurfacedesc: *mut super::super::Graphics::DirectDraw::DDSURFACEDESC) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn GetSurfaceDesc(this: *mut core::ffi::c_void, psurfacedesc: *mut super::super::Graphics::DirectDraw::DDSURFACEDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideo_Impl::GetSurfaceDesc(this, core::mem::transmute_copy(&psurfacedesc)).into() } - unsafe extern "system" fn GetFourCCCodes(this: *mut core::ffi::c_void, pcount: *mut u32, pcodes: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn GetFourCCCodes(this: *mut core::ffi::c_void, pcount: *mut u32, pcodes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideo_Impl::GetFourCCCodes(this, core::mem::transmute_copy(&pcount), core::mem::transmute_copy(&pcodes)).into() } - unsafe extern "system" fn SetDirectDraw(this: *mut core::ffi::c_void, pdirectdraw: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn SetDirectDraw(this: *mut core::ffi::c_void, pdirectdraw: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideo_Impl::SetDirectDraw(this, windows_core::from_raw_borrowed(&pdirectdraw)).into() } - unsafe extern "system" fn GetDirectDraw(this: *mut core::ffi::c_void, ppdirectdraw: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn GetDirectDraw(this: *mut core::ffi::c_void, ppdirectdraw: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawVideo_Impl::GetDirectDraw(this) { Ok(ok__) => { @@ -10869,10 +7974,7 @@ impl IDirectDrawVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSurfaceType(this: *mut core::ffi::c_void, psurfacetype: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn GetSurfaceType(this: *mut core::ffi::c_void, psurfacetype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawVideo_Impl::GetSurfaceType(this) { Ok(ok__) => { @@ -10882,24 +7984,15 @@ impl IDirectDrawVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideo_Impl::SetDefault(this).into() } - unsafe extern "system" fn UseScanLine(this: *mut core::ffi::c_void, usescanline: i32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn UseScanLine(this: *mut core::ffi::c_void, usescanline: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideo_Impl::UseScanLine(this, core::mem::transmute_copy(&usescanline)).into() } - unsafe extern "system" fn CanUseScanLine(this: *mut core::ffi::c_void, usescanline: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn CanUseScanLine(this: *mut core::ffi::c_void, usescanline: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawVideo_Impl::CanUseScanLine(this) { Ok(ok__) => { @@ -10909,17 +8002,11 @@ impl IDirectDrawVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UseOverlayStretch(this: *mut core::ffi::c_void, useoverlaystretch: i32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn UseOverlayStretch(this: *mut core::ffi::c_void, useoverlaystretch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideo_Impl::UseOverlayStretch(this, core::mem::transmute_copy(&useoverlaystretch)).into() } - unsafe extern "system" fn CanUseOverlayStretch(this: *mut core::ffi::c_void, useoverlaystretch: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn CanUseOverlayStretch(this: *mut core::ffi::c_void, useoverlaystretch: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawVideo_Impl::CanUseOverlayStretch(this) { Ok(ok__) => { @@ -10929,17 +8016,11 @@ impl IDirectDrawVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UseWhenFullScreen(this: *mut core::ffi::c_void, usewhenfullscreen: i32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn UseWhenFullScreen(this: *mut core::ffi::c_void, usewhenfullscreen: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideo_Impl::UseWhenFullScreen(this, core::mem::transmute_copy(&usewhenfullscreen)).into() } - unsafe extern "system" fn WillUseFullScreen(this: *mut core::ffi::c_void, usewhenfullscreen: *mut i32) -> windows_core::HRESULT - where - Identity: IDirectDrawVideo_Impl, - { + unsafe extern "system" fn WillUseFullScreen(this: *mut core::ffi::c_void, usewhenfullscreen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectDrawVideo_Impl::WillUseFullScreen(this) { Ok(ok__) => { @@ -10973,7 +8054,7 @@ impl IDirectDrawVideo_Vtbl { iid == &::IID } } -pub trait IDistributorNotify_Impl: Sized { +pub trait IDistributorNotify_Impl: Sized + windows_core::IUnknownImpl { fn Stop(&self) -> windows_core::Result<()>; fn Pause(&self) -> windows_core::Result<()>; fn Run(&self, tstart: i64) -> windows_core::Result<()>; @@ -10982,42 +8063,24 @@ pub trait IDistributorNotify_Impl: Sized { } impl windows_core::RuntimeName for IDistributorNotify {} impl IDistributorNotify_Vtbl { - pub const fn new() -> IDistributorNotify_Vtbl - where - Identity: IDistributorNotify_Impl, - { - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDistributorNotify_Impl, - { + pub const fn new() -> IDistributorNotify_Vtbl { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDistributorNotify_Impl::Stop(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDistributorNotify_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDistributorNotify_Impl::Pause(this).into() } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void, tstart: i64) -> windows_core::HRESULT - where - Identity: IDistributorNotify_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void, tstart: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDistributorNotify_Impl::Run(this, core::mem::transmute_copy(&tstart)).into() } - unsafe extern "system" fn SetSyncSource(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDistributorNotify_Impl, - { + unsafe extern "system" fn SetSyncSource(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDistributorNotify_Impl::SetSyncSource(this, windows_core::from_raw_borrowed(&pclock)).into() } - unsafe extern "system" fn NotifyGraphChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDistributorNotify_Impl, - { + unsafe extern "system" fn NotifyGraphChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDistributorNotify_Impl::NotifyGraphChange(this).into() } @@ -11035,7 +8098,7 @@ impl IDistributorNotify_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDrawVideoImage_Impl: Sized { +pub trait IDrawVideoImage_Impl: Sized + windows_core::IUnknownImpl { fn DrawVideoImageBegin(&self) -> windows_core::Result<()>; fn DrawVideoImageEnd(&self) -> windows_core::Result<()>; fn DrawVideoImageDraw(&self, hdc: super::super::Graphics::Gdi::HDC, lprcsrc: *const super::super::Foundation::RECT, lprcdst: *const super::super::Foundation::RECT) -> windows_core::Result<()>; @@ -11044,28 +8107,16 @@ pub trait IDrawVideoImage_Impl: Sized { impl windows_core::RuntimeName for IDrawVideoImage {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDrawVideoImage_Vtbl { - pub const fn new() -> IDrawVideoImage_Vtbl - where - Identity: IDrawVideoImage_Impl, - { - unsafe extern "system" fn DrawVideoImageBegin(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDrawVideoImage_Impl, - { + pub const fn new() -> IDrawVideoImage_Vtbl { + unsafe extern "system" fn DrawVideoImageBegin(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDrawVideoImage_Impl::DrawVideoImageBegin(this).into() } - unsafe extern "system" fn DrawVideoImageEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDrawVideoImage_Impl, - { + unsafe extern "system" fn DrawVideoImageEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDrawVideoImage_Impl::DrawVideoImageEnd(this).into() } - unsafe extern "system" fn DrawVideoImageDraw(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, lprcsrc: *const super::super::Foundation::RECT, lprcdst: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDrawVideoImage_Impl, - { + unsafe extern "system" fn DrawVideoImageDraw(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, lprcsrc: *const super::super::Foundation::RECT, lprcdst: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDrawVideoImage_Impl::DrawVideoImageDraw(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&lprcsrc), core::mem::transmute_copy(&lprcdst)).into() } @@ -11080,27 +8131,18 @@ impl IDrawVideoImage_Vtbl { iid == &::IID } } -pub trait IDvdCmd_Impl: Sized { +pub trait IDvdCmd_Impl: Sized + windows_core::IUnknownImpl { fn WaitForStart(&self) -> windows_core::Result<()>; fn WaitForEnd(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDvdCmd {} impl IDvdCmd_Vtbl { - pub const fn new() -> IDvdCmd_Vtbl - where - Identity: IDvdCmd_Impl, - { - unsafe extern "system" fn WaitForStart(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdCmd_Impl, - { + pub const fn new() -> IDvdCmd_Vtbl { + unsafe extern "system" fn WaitForStart(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdCmd_Impl::WaitForStart(this).into() } - unsafe extern "system" fn WaitForEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdCmd_Impl, - { + unsafe extern "system" fn WaitForEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdCmd_Impl::WaitForEnd(this).into() } @@ -11114,7 +8156,7 @@ impl IDvdCmd_Vtbl { iid == &::IID } } -pub trait IDvdControl_Impl: Sized { +pub trait IDvdControl_Impl: Sized + windows_core::IUnknownImpl { fn TitlePlay(&self, ultitle: u32) -> windows_core::Result<()>; fn ChapterPlay(&self, ultitle: u32, ulchapter: u32) -> windows_core::Result<()>; fn TimePlay(&self, ultitle: u32, bcdtime: u32) -> windows_core::Result<()>; @@ -11153,252 +8195,144 @@ pub trait IDvdControl_Impl: Sized { } impl windows_core::RuntimeName for IDvdControl {} impl IDvdControl_Vtbl { - pub const fn new() -> IDvdControl_Vtbl - where - Identity: IDvdControl_Impl, - { - unsafe extern "system" fn TitlePlay(this: *mut core::ffi::c_void, ultitle: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + pub const fn new() -> IDvdControl_Vtbl { + unsafe extern "system" fn TitlePlay(this: *mut core::ffi::c_void, ultitle: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::TitlePlay(this, core::mem::transmute_copy(&ultitle)).into() } - unsafe extern "system" fn ChapterPlay(this: *mut core::ffi::c_void, ultitle: u32, ulchapter: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn ChapterPlay(this: *mut core::ffi::c_void, ultitle: u32, ulchapter: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::ChapterPlay(this, core::mem::transmute_copy(&ultitle), core::mem::transmute_copy(&ulchapter)).into() } - unsafe extern "system" fn TimePlay(this: *mut core::ffi::c_void, ultitle: u32, bcdtime: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn TimePlay(this: *mut core::ffi::c_void, ultitle: u32, bcdtime: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::TimePlay(this, core::mem::transmute_copy(&ultitle), core::mem::transmute_copy(&bcdtime)).into() } - unsafe extern "system" fn StopForResume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn StopForResume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::StopForResume(this).into() } - unsafe extern "system" fn GoUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn GoUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::GoUp(this).into() } - unsafe extern "system" fn TimeSearch(this: *mut core::ffi::c_void, bcdtime: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn TimeSearch(this: *mut core::ffi::c_void, bcdtime: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::TimeSearch(this, core::mem::transmute_copy(&bcdtime)).into() } - unsafe extern "system" fn ChapterSearch(this: *mut core::ffi::c_void, ulchapter: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn ChapterSearch(this: *mut core::ffi::c_void, ulchapter: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::ChapterSearch(this, core::mem::transmute_copy(&ulchapter)).into() } - unsafe extern "system" fn PrevPGSearch(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn PrevPGSearch(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::PrevPGSearch(this).into() } - unsafe extern "system" fn TopPGSearch(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn TopPGSearch(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::TopPGSearch(this).into() } - unsafe extern "system" fn NextPGSearch(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn NextPGSearch(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::NextPGSearch(this).into() } - unsafe extern "system" fn ForwardScan(this: *mut core::ffi::c_void, dwspeed: f64) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn ForwardScan(this: *mut core::ffi::c_void, dwspeed: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::ForwardScan(this, core::mem::transmute_copy(&dwspeed)).into() } - unsafe extern "system" fn BackwardScan(this: *mut core::ffi::c_void, dwspeed: f64) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn BackwardScan(this: *mut core::ffi::c_void, dwspeed: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::BackwardScan(this, core::mem::transmute_copy(&dwspeed)).into() } - unsafe extern "system" fn MenuCall(this: *mut core::ffi::c_void, menuid: DVD_MENU_ID) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn MenuCall(this: *mut core::ffi::c_void, menuid: DVD_MENU_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::MenuCall(this, core::mem::transmute_copy(&menuid)).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::Resume(this).into() } - unsafe extern "system" fn UpperButtonSelect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn UpperButtonSelect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::UpperButtonSelect(this).into() } - unsafe extern "system" fn LowerButtonSelect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn LowerButtonSelect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::LowerButtonSelect(this).into() } - unsafe extern "system" fn LeftButtonSelect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn LeftButtonSelect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::LeftButtonSelect(this).into() } - unsafe extern "system" fn RightButtonSelect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn RightButtonSelect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::RightButtonSelect(this).into() } - unsafe extern "system" fn ButtonActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn ButtonActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::ButtonActivate(this).into() } - unsafe extern "system" fn ButtonSelectAndActivate(this: *mut core::ffi::c_void, ulbutton: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn ButtonSelectAndActivate(this: *mut core::ffi::c_void, ulbutton: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::ButtonSelectAndActivate(this, core::mem::transmute_copy(&ulbutton)).into() } - unsafe extern "system" fn StillOff(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn StillOff(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::StillOff(this).into() } - unsafe extern "system" fn PauseOn(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn PauseOn(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::PauseOn(this).into() } - unsafe extern "system" fn PauseOff(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn PauseOff(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::PauseOff(this).into() } - unsafe extern "system" fn MenuLanguageSelect(this: *mut core::ffi::c_void, language: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn MenuLanguageSelect(this: *mut core::ffi::c_void, language: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::MenuLanguageSelect(this, core::mem::transmute_copy(&language)).into() } - unsafe extern "system" fn AudioStreamChange(this: *mut core::ffi::c_void, ulaudio: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn AudioStreamChange(this: *mut core::ffi::c_void, ulaudio: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::AudioStreamChange(this, core::mem::transmute_copy(&ulaudio)).into() } - unsafe extern "system" fn SubpictureStreamChange(this: *mut core::ffi::c_void, ulsubpicture: u32, bdisplay: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn SubpictureStreamChange(this: *mut core::ffi::c_void, ulsubpicture: u32, bdisplay: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::SubpictureStreamChange(this, core::mem::transmute_copy(&ulsubpicture), core::mem::transmute_copy(&bdisplay)).into() } - unsafe extern "system" fn AngleChange(this: *mut core::ffi::c_void, ulangle: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn AngleChange(this: *mut core::ffi::c_void, ulangle: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::AngleChange(this, core::mem::transmute_copy(&ulangle)).into() } - unsafe extern "system" fn ParentalLevelSelect(this: *mut core::ffi::c_void, ulparentallevel: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn ParentalLevelSelect(this: *mut core::ffi::c_void, ulparentallevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::ParentalLevelSelect(this, core::mem::transmute_copy(&ulparentallevel)).into() } - unsafe extern "system" fn ParentalCountrySelect(this: *mut core::ffi::c_void, wcountry: u16) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn ParentalCountrySelect(this: *mut core::ffi::c_void, wcountry: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::ParentalCountrySelect(this, core::mem::transmute_copy(&wcountry)).into() } - unsafe extern "system" fn KaraokeAudioPresentationModeChange(this: *mut core::ffi::c_void, ulmode: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn KaraokeAudioPresentationModeChange(this: *mut core::ffi::c_void, ulmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::KaraokeAudioPresentationModeChange(this, core::mem::transmute_copy(&ulmode)).into() } - unsafe extern "system" fn VideoModePreferrence(this: *mut core::ffi::c_void, ulpreferreddisplaymode: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn VideoModePreferrence(this: *mut core::ffi::c_void, ulpreferreddisplaymode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::VideoModePreferrence(this, core::mem::transmute_copy(&ulpreferreddisplaymode)).into() } - unsafe extern "system" fn SetRoot(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn SetRoot(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::SetRoot(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn MouseActivate(this: *mut core::ffi::c_void, point: super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn MouseActivate(this: *mut core::ffi::c_void, point: super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::MouseActivate(this, core::mem::transmute(&point)).into() } - unsafe extern "system" fn MouseSelect(this: *mut core::ffi::c_void, point: super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn MouseSelect(this: *mut core::ffi::c_void, point: super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::MouseSelect(this, core::mem::transmute(&point)).into() } - unsafe extern "system" fn ChapterPlayAutoStop(this: *mut core::ffi::c_void, ultitle: u32, ulchapter: u32, ulchapterstoplay: u32) -> windows_core::HRESULT - where - Identity: IDvdControl_Impl, - { + unsafe extern "system" fn ChapterPlayAutoStop(this: *mut core::ffi::c_void, ultitle: u32, ulchapter: u32, ulchapterstoplay: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::ChapterPlayAutoStop(this, core::mem::transmute_copy(&ultitle), core::mem::transmute_copy(&ulchapter), core::mem::transmute_copy(&ulchapterstoplay)).into() } @@ -11445,7 +8379,7 @@ impl IDvdControl_Vtbl { iid == &::IID } } -pub trait IDvdControl2_Impl: Sized { +pub trait IDvdControl2_Impl: Sized + windows_core::IUnknownImpl { fn PlayTitle(&self, ultitle: u32, dwflags: u32) -> windows_core::Result; fn PlayChapterInTitle(&self, ultitle: u32, ulchapter: u32, dwflags: u32) -> windows_core::Result; fn PlayAtTimeInTitle(&self, ultitle: u32, pstarttime: *const DVD_HMSF_TIMECODE, dwflags: u32) -> windows_core::Result; @@ -11489,14 +8423,8 @@ pub trait IDvdControl2_Impl: Sized { } impl windows_core::RuntimeName for IDvdControl2 {} impl IDvdControl2_Vtbl { - pub const fn new() -> IDvdControl2_Vtbl - where - Identity: IDvdControl2_Impl, - { - unsafe extern "system" fn PlayTitle(this: *mut core::ffi::c_void, ultitle: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + pub const fn new() -> IDvdControl2_Vtbl { + unsafe extern "system" fn PlayTitle(this: *mut core::ffi::c_void, ultitle: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayTitle(this, core::mem::transmute_copy(&ultitle), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11506,10 +8434,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayChapterInTitle(this: *mut core::ffi::c_void, ultitle: u32, ulchapter: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn PlayChapterInTitle(this: *mut core::ffi::c_void, ultitle: u32, ulchapter: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayChapterInTitle(this, core::mem::transmute_copy(&ultitle), core::mem::transmute_copy(&ulchapter), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11519,10 +8444,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayAtTimeInTitle(this: *mut core::ffi::c_void, ultitle: u32, pstarttime: *const DVD_HMSF_TIMECODE, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn PlayAtTimeInTitle(this: *mut core::ffi::c_void, ultitle: u32, pstarttime: *const DVD_HMSF_TIMECODE, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayAtTimeInTitle(this, core::mem::transmute_copy(&ultitle), core::mem::transmute_copy(&pstarttime), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11532,17 +8454,11 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::Stop(this).into() } - unsafe extern "system" fn ReturnFromSubmenu(this: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn ReturnFromSubmenu(this: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::ReturnFromSubmenu(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11552,10 +8468,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayAtTime(this: *mut core::ffi::c_void, ptime: *const DVD_HMSF_TIMECODE, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn PlayAtTime(this: *mut core::ffi::c_void, ptime: *const DVD_HMSF_TIMECODE, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayAtTime(this, core::mem::transmute_copy(&ptime), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11565,10 +8478,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayChapter(this: *mut core::ffi::c_void, ulchapter: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn PlayChapter(this: *mut core::ffi::c_void, ulchapter: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayChapter(this, core::mem::transmute_copy(&ulchapter), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11578,10 +8488,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayPrevChapter(this: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn PlayPrevChapter(this: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayPrevChapter(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11591,10 +8498,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReplayChapter(this: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn ReplayChapter(this: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::ReplayChapter(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11604,10 +8508,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayNextChapter(this: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn PlayNextChapter(this: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayNextChapter(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11617,10 +8518,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayForwards(this: *mut core::ffi::c_void, dspeed: f64, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn PlayForwards(this: *mut core::ffi::c_void, dspeed: f64, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayForwards(this, core::mem::transmute_copy(&dspeed), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11630,10 +8528,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayBackwards(this: *mut core::ffi::c_void, dspeed: f64, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn PlayBackwards(this: *mut core::ffi::c_void, dspeed: f64, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayBackwards(this, core::mem::transmute_copy(&dspeed), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11643,10 +8538,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShowMenu(this: *mut core::ffi::c_void, menuid: DVD_MENU_ID, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn ShowMenu(this: *mut core::ffi::c_void, menuid: DVD_MENU_ID, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::ShowMenu(this, core::mem::transmute_copy(&menuid), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11656,10 +8548,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::Resume(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11669,52 +8558,31 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectRelativeButton(this: *mut core::ffi::c_void, buttondir: DVD_RELATIVE_BUTTON) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectRelativeButton(this: *mut core::ffi::c_void, buttondir: DVD_RELATIVE_BUTTON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectRelativeButton(this, core::mem::transmute_copy(&buttondir)).into() } - unsafe extern "system" fn ActivateButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn ActivateButton(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::ActivateButton(this).into() } - unsafe extern "system" fn SelectButton(this: *mut core::ffi::c_void, ulbutton: u32) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectButton(this: *mut core::ffi::c_void, ulbutton: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectButton(this, core::mem::transmute_copy(&ulbutton)).into() } - unsafe extern "system" fn SelectAndActivateButton(this: *mut core::ffi::c_void, ulbutton: u32) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectAndActivateButton(this: *mut core::ffi::c_void, ulbutton: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectAndActivateButton(this, core::mem::transmute_copy(&ulbutton)).into() } - unsafe extern "system" fn StillOff(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn StillOff(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::StillOff(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::Pause(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn SelectAudioStream(this: *mut core::ffi::c_void, ulaudio: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectAudioStream(this: *mut core::ffi::c_void, ulaudio: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::SelectAudioStream(this, core::mem::transmute_copy(&ulaudio), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11724,10 +8592,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectSubpictureStream(this: *mut core::ffi::c_void, ulsubpicture: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectSubpictureStream(this: *mut core::ffi::c_void, ulsubpicture: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::SelectSubpictureStream(this, core::mem::transmute_copy(&ulsubpicture), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11737,10 +8602,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubpictureState(this: *mut core::ffi::c_void, bstate: super::super::Foundation::BOOL, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SetSubpictureState(this: *mut core::ffi::c_void, bstate: super::super::Foundation::BOOL, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::SetSubpictureState(this, core::mem::transmute_copy(&bstate), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11750,10 +8612,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectAngle(this: *mut core::ffi::c_void, ulangle: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectAngle(this: *mut core::ffi::c_void, ulangle: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::SelectAngle(this, core::mem::transmute_copy(&ulangle), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11763,59 +8622,35 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectParentalLevel(this: *mut core::ffi::c_void, ulparentallevel: u32) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectParentalLevel(this: *mut core::ffi::c_void, ulparentallevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectParentalLevel(this, core::mem::transmute_copy(&ulparentallevel)).into() } - unsafe extern "system" fn SelectParentalCountry(this: *mut core::ffi::c_void, bcountry: *const u8) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectParentalCountry(this: *mut core::ffi::c_void, bcountry: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectParentalCountry(this, core::mem::transmute_copy(&bcountry)).into() } - unsafe extern "system" fn SelectKaraokeAudioPresentationMode(this: *mut core::ffi::c_void, ulmode: u32) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectKaraokeAudioPresentationMode(this: *mut core::ffi::c_void, ulmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectKaraokeAudioPresentationMode(this, core::mem::transmute_copy(&ulmode)).into() } - unsafe extern "system" fn SelectVideoModePreference(this: *mut core::ffi::c_void, ulpreferreddisplaymode: u32) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectVideoModePreference(this: *mut core::ffi::c_void, ulpreferreddisplaymode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectVideoModePreference(this, core::mem::transmute_copy(&ulpreferreddisplaymode)).into() } - unsafe extern "system" fn SetDVDDirectory(this: *mut core::ffi::c_void, pszwpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SetDVDDirectory(this: *mut core::ffi::c_void, pszwpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SetDVDDirectory(this, core::mem::transmute(&pszwpath)).into() } - unsafe extern "system" fn ActivateAtPosition(this: *mut core::ffi::c_void, point: super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn ActivateAtPosition(this: *mut core::ffi::c_void, point: super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::ActivateAtPosition(this, core::mem::transmute(&point)).into() } - unsafe extern "system" fn SelectAtPosition(this: *mut core::ffi::c_void, point: super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectAtPosition(this: *mut core::ffi::c_void, point: super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectAtPosition(this, core::mem::transmute(&point)).into() } - unsafe extern "system" fn PlayChaptersAutoStop(this: *mut core::ffi::c_void, ultitle: u32, ulchapter: u32, ulchapterstoplay: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn PlayChaptersAutoStop(this: *mut core::ffi::c_void, ultitle: u32, ulchapter: u32, ulchapterstoplay: u32, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayChaptersAutoStop(this, core::mem::transmute_copy(&ultitle), core::mem::transmute_copy(&ulchapter), core::mem::transmute_copy(&ulchapterstoplay), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11825,24 +8660,15 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AcceptParentalLevelChange(this: *mut core::ffi::c_void, baccept: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn AcceptParentalLevelChange(this: *mut core::ffi::c_void, baccept: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::AcceptParentalLevelChange(this, core::mem::transmute_copy(&baccept)).into() } - unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, flag: DVD_OPTION_FLAG, fstate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, flag: DVD_OPTION_FLAG, fstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SetOption(this, core::mem::transmute_copy(&flag), core::mem::transmute_copy(&fstate)).into() } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::SetState(this, windows_core::from_raw_borrowed(&pstate), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11852,10 +8678,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlayPeriodInTitleAutoStop(this: *mut core::ffi::c_void, ultitle: u32, pstarttime: *const DVD_HMSF_TIMECODE, pendtime: *const DVD_HMSF_TIMECODE, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn PlayPeriodInTitleAutoStop(this: *mut core::ffi::c_void, ultitle: u32, pstarttime: *const DVD_HMSF_TIMECODE, pendtime: *const DVD_HMSF_TIMECODE, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::PlayPeriodInTitleAutoStop(this, core::mem::transmute_copy(&ultitle), core::mem::transmute_copy(&pstarttime), core::mem::transmute_copy(&pendtime), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11865,10 +8688,7 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGPRM(this: *mut core::ffi::c_void, ulindex: u32, wvalue: u16, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SetGPRM(this: *mut core::ffi::c_void, ulindex: u32, wvalue: u16, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::SetGPRM(this, core::mem::transmute_copy(&ulindex), core::mem::transmute_copy(&wvalue), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -11878,24 +8698,15 @@ impl IDvdControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectDefaultMenuLanguage(this: *mut core::ffi::c_void, language: u32) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectDefaultMenuLanguage(this: *mut core::ffi::c_void, language: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectDefaultMenuLanguage(this, core::mem::transmute_copy(&language)).into() } - unsafe extern "system" fn SelectDefaultAudioLanguage(this: *mut core::ffi::c_void, language: u32, audioextension: DVD_AUDIO_LANG_EXT) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectDefaultAudioLanguage(this: *mut core::ffi::c_void, language: u32, audioextension: DVD_AUDIO_LANG_EXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectDefaultAudioLanguage(this, core::mem::transmute_copy(&language), core::mem::transmute_copy(&audioextension)).into() } - unsafe extern "system" fn SelectDefaultSubpictureLanguage(this: *mut core::ffi::c_void, language: u32, subpictureextension: DVD_SUBPICTURE_LANG_EXT) -> windows_core::HRESULT - where - Identity: IDvdControl2_Impl, - { + unsafe extern "system" fn SelectDefaultSubpictureLanguage(this: *mut core::ffi::c_void, language: u32, subpictureextension: DVD_SUBPICTURE_LANG_EXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SelectDefaultSubpictureLanguage(this, core::mem::transmute_copy(&language), core::mem::transmute_copy(&subpictureextension)).into() } @@ -11947,21 +8758,15 @@ impl IDvdControl2_Vtbl { iid == &::IID } } -pub trait IDvdGraphBuilder_Impl: Sized { +pub trait IDvdGraphBuilder_Impl: Sized + windows_core::IUnknownImpl { fn GetFiltergraph(&self) -> windows_core::Result; fn GetDvdInterface(&self, riid: *const windows_core::GUID, ppvif: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RenderDvdVideoVolume(&self, lpcwszpathname: &windows_core::PCWSTR, dwflags: u32, pstatus: *mut AM_DVD_RENDERSTATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDvdGraphBuilder {} impl IDvdGraphBuilder_Vtbl { - pub const fn new() -> IDvdGraphBuilder_Vtbl - where - Identity: IDvdGraphBuilder_Impl, - { - unsafe extern "system" fn GetFiltergraph(this: *mut core::ffi::c_void, ppgb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdGraphBuilder_Impl, - { + pub const fn new() -> IDvdGraphBuilder_Vtbl { + unsafe extern "system" fn GetFiltergraph(this: *mut core::ffi::c_void, ppgb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdGraphBuilder_Impl::GetFiltergraph(this) { Ok(ok__) => { @@ -11971,17 +8776,11 @@ impl IDvdGraphBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDvdInterface(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvif: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdGraphBuilder_Impl, - { + unsafe extern "system" fn GetDvdInterface(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvif: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdGraphBuilder_Impl::GetDvdInterface(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvif)).into() } - unsafe extern "system" fn RenderDvdVideoVolume(this: *mut core::ffi::c_void, lpcwszpathname: windows_core::PCWSTR, dwflags: u32, pstatus: *mut AM_DVD_RENDERSTATUS) -> windows_core::HRESULT - where - Identity: IDvdGraphBuilder_Impl, - { + unsafe extern "system" fn RenderDvdVideoVolume(this: *mut core::ffi::c_void, lpcwszpathname: windows_core::PCWSTR, dwflags: u32, pstatus: *mut AM_DVD_RENDERSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdGraphBuilder_Impl::RenderDvdVideoVolume(this, core::mem::transmute(&lpcwszpathname), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pstatus)).into() } @@ -11996,7 +8795,7 @@ impl IDvdGraphBuilder_Vtbl { iid == &::IID } } -pub trait IDvdInfo_Impl: Sized { +pub trait IDvdInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentDomain(&self) -> windows_core::Result; fn GetCurrentLocation(&self) -> windows_core::Result; fn GetTotalTitleTime(&self) -> windows_core::Result; @@ -12023,14 +8822,8 @@ pub trait IDvdInfo_Impl: Sized { } impl windows_core::RuntimeName for IDvdInfo {} impl IDvdInfo_Vtbl { - pub const fn new() -> IDvdInfo_Vtbl - where - Identity: IDvdInfo_Impl, - { - unsafe extern "system" fn GetCurrentDomain(this: *mut core::ffi::c_void, pdomain: *mut DVD_DOMAIN) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + pub const fn new() -> IDvdInfo_Vtbl { + unsafe extern "system" fn GetCurrentDomain(this: *mut core::ffi::c_void, pdomain: *mut DVD_DOMAIN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetCurrentDomain(this) { Ok(ok__) => { @@ -12040,10 +8833,7 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentLocation(this: *mut core::ffi::c_void, plocation: *mut DVD_PLAYBACK_LOCATION) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetCurrentLocation(this: *mut core::ffi::c_void, plocation: *mut DVD_PLAYBACK_LOCATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetCurrentLocation(this) { Ok(ok__) => { @@ -12053,10 +8843,7 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTotalTitleTime(this: *mut core::ffi::c_void, pultotaltime: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetTotalTitleTime(this: *mut core::ffi::c_void, pultotaltime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetTotalTitleTime(this) { Ok(ok__) => { @@ -12066,38 +8853,23 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentButton(this: *mut core::ffi::c_void, pulbuttonsavailable: *mut u32, pulcurrentbutton: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetCurrentButton(this: *mut core::ffi::c_void, pulbuttonsavailable: *mut u32, pulcurrentbutton: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetCurrentButton(this, core::mem::transmute_copy(&pulbuttonsavailable), core::mem::transmute_copy(&pulcurrentbutton)).into() } - unsafe extern "system" fn GetCurrentAngle(this: *mut core::ffi::c_void, pulanglesavailable: *mut u32, pulcurrentangle: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetCurrentAngle(this: *mut core::ffi::c_void, pulanglesavailable: *mut u32, pulcurrentangle: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetCurrentAngle(this, core::mem::transmute_copy(&pulanglesavailable), core::mem::transmute_copy(&pulcurrentangle)).into() } - unsafe extern "system" fn GetCurrentAudio(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetCurrentAudio(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetCurrentAudio(this, core::mem::transmute_copy(&pulstreamsavailable), core::mem::transmute_copy(&pulcurrentstream)).into() } - unsafe extern "system" fn GetCurrentSubpicture(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pisdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetCurrentSubpicture(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pisdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetCurrentSubpicture(this, core::mem::transmute_copy(&pulstreamsavailable), core::mem::transmute_copy(&pulcurrentstream), core::mem::transmute_copy(&pisdisabled)).into() } - unsafe extern "system" fn GetCurrentUOPS(this: *mut core::ffi::c_void, puop: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetCurrentUOPS(this: *mut core::ffi::c_void, puop: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetCurrentUOPS(this) { Ok(ok__) => { @@ -12107,10 +8879,7 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllSPRMs(this: *mut core::ffi::c_void, pregisterarray: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetAllSPRMs(this: *mut core::ffi::c_void, pregisterarray: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetAllSPRMs(this) { Ok(ok__) => { @@ -12120,10 +8889,7 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllGPRMs(this: *mut core::ffi::c_void, pregisterarray: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetAllGPRMs(this: *mut core::ffi::c_void, pregisterarray: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetAllGPRMs(this) { Ok(ok__) => { @@ -12133,10 +8899,7 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAudioLanguage(this: *mut core::ffi::c_void, ulstream: u32, planguage: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetAudioLanguage(this: *mut core::ffi::c_void, ulstream: u32, planguage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetAudioLanguage(this, core::mem::transmute_copy(&ulstream)) { Ok(ok__) => { @@ -12146,10 +8909,7 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubpictureLanguage(this: *mut core::ffi::c_void, ulstream: u32, planguage: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetSubpictureLanguage(this: *mut core::ffi::c_void, ulstream: u32, planguage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetSubpictureLanguage(this, core::mem::transmute_copy(&ulstream)) { Ok(ok__) => { @@ -12159,24 +8919,15 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTitleAttributes(this: *mut core::ffi::c_void, ultitle: u32, patr: *mut DVD_ATR) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetTitleAttributes(this: *mut core::ffi::c_void, ultitle: u32, patr: *mut DVD_ATR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetTitleAttributes(this, core::mem::transmute_copy(&ultitle), core::mem::transmute_copy(&patr)).into() } - unsafe extern "system" fn GetVMGAttributes(this: *mut core::ffi::c_void, patr: *mut DVD_ATR) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetVMGAttributes(this: *mut core::ffi::c_void, patr: *mut DVD_ATR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetVMGAttributes(this, core::mem::transmute_copy(&patr)).into() } - unsafe extern "system" fn GetCurrentVideoAttributes(this: *mut core::ffi::c_void, patr: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetCurrentVideoAttributes(this: *mut core::ffi::c_void, patr: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetCurrentVideoAttributes(this) { Ok(ok__) => { @@ -12186,10 +8937,7 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentAudioAttributes(this: *mut core::ffi::c_void, patr: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetCurrentAudioAttributes(this: *mut core::ffi::c_void, patr: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetCurrentAudioAttributes(this) { Ok(ok__) => { @@ -12199,10 +8947,7 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSubpictureAttributes(this: *mut core::ffi::c_void, patr: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetCurrentSubpictureAttributes(this: *mut core::ffi::c_void, patr: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetCurrentSubpictureAttributes(this) { Ok(ok__) => { @@ -12212,31 +8957,19 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentVolumeInfo(this: *mut core::ffi::c_void, pulnumofvol: *mut u32, pulthisvolnum: *mut u32, pside: *mut DVD_DISC_SIDE, pulnumoftitles: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetCurrentVolumeInfo(this: *mut core::ffi::c_void, pulnumofvol: *mut u32, pulthisvolnum: *mut u32, pside: *mut DVD_DISC_SIDE, pulnumoftitles: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetCurrentVolumeInfo(this, core::mem::transmute_copy(&pulnumofvol), core::mem::transmute_copy(&pulthisvolnum), core::mem::transmute_copy(&pside), core::mem::transmute_copy(&pulnumoftitles)).into() } - unsafe extern "system" fn GetDVDTextInfo(this: *mut core::ffi::c_void, ptextmanager: *mut u8, ulbufsize: u32, pulactualsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetDVDTextInfo(this: *mut core::ffi::c_void, ptextmanager: *mut u8, ulbufsize: u32, pulactualsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetDVDTextInfo(this, core::mem::transmute_copy(&ptextmanager), core::mem::transmute_copy(&ulbufsize), core::mem::transmute_copy(&pulactualsize)).into() } - unsafe extern "system" fn GetPlayerParentalLevel(this: *mut core::ffi::c_void, pulparentallevel: *mut u32, pulcountrycode: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetPlayerParentalLevel(this: *mut core::ffi::c_void, pulparentallevel: *mut u32, pulcountrycode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetPlayerParentalLevel(this, core::mem::transmute_copy(&pulparentallevel), core::mem::transmute_copy(&pulcountrycode)).into() } - unsafe extern "system" fn GetNumberOfChapters(this: *mut core::ffi::c_void, ultitle: u32, pulnumberofchapters: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetNumberOfChapters(this: *mut core::ffi::c_void, ultitle: u32, pulnumberofchapters: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetNumberOfChapters(this, core::mem::transmute_copy(&ultitle)) { Ok(ok__) => { @@ -12246,10 +8979,7 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTitleParentalLevels(this: *mut core::ffi::c_void, ultitle: u32, pulparentallevels: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetTitleParentalLevels(this: *mut core::ffi::c_void, ultitle: u32, pulparentallevels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo_Impl::GetTitleParentalLevels(this, core::mem::transmute_copy(&ultitle)) { Ok(ok__) => { @@ -12259,10 +8989,7 @@ impl IDvdInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRoot(this: *mut core::ffi::c_void, proot: windows_core::PSTR, ulbufsize: u32, pulactualsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo_Impl, - { + unsafe extern "system" fn GetRoot(this: *mut core::ffi::c_void, proot: windows_core::PSTR, ulbufsize: u32, pulactualsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetRoot(this, core::mem::transmute_copy(&proot), core::mem::transmute_copy(&ulbufsize), core::mem::transmute_copy(&pulactualsize)).into() } @@ -12297,7 +9024,7 @@ impl IDvdInfo_Vtbl { iid == &::IID } } -pub trait IDvdInfo2_Impl: Sized { +pub trait IDvdInfo2_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentDomain(&self) -> windows_core::Result; fn GetCurrentLocation(&self) -> windows_core::Result; fn GetTotalTitleTime(&self, ptotaltime: *mut DVD_HMSF_TIMECODE, ultimecodeflags: *mut u32) -> windows_core::Result<()>; @@ -12340,14 +9067,8 @@ pub trait IDvdInfo2_Impl: Sized { } impl windows_core::RuntimeName for IDvdInfo2 {} impl IDvdInfo2_Vtbl { - pub const fn new() -> IDvdInfo2_Vtbl - where - Identity: IDvdInfo2_Impl, - { - unsafe extern "system" fn GetCurrentDomain(this: *mut core::ffi::c_void, pdomain: *mut DVD_DOMAIN) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + pub const fn new() -> IDvdInfo2_Vtbl { + unsafe extern "system" fn GetCurrentDomain(this: *mut core::ffi::c_void, pdomain: *mut DVD_DOMAIN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetCurrentDomain(this) { Ok(ok__) => { @@ -12357,10 +9078,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentLocation(this: *mut core::ffi::c_void, plocation: *mut DVD_PLAYBACK_LOCATION2) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetCurrentLocation(this: *mut core::ffi::c_void, plocation: *mut DVD_PLAYBACK_LOCATION2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetCurrentLocation(this) { Ok(ok__) => { @@ -12370,45 +9088,27 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTotalTitleTime(this: *mut core::ffi::c_void, ptotaltime: *mut DVD_HMSF_TIMECODE, ultimecodeflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetTotalTitleTime(this: *mut core::ffi::c_void, ptotaltime: *mut DVD_HMSF_TIMECODE, ultimecodeflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetTotalTitleTime(this, core::mem::transmute_copy(&ptotaltime), core::mem::transmute_copy(&ultimecodeflags)).into() } - unsafe extern "system" fn GetCurrentButton(this: *mut core::ffi::c_void, pulbuttonsavailable: *mut u32, pulcurrentbutton: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetCurrentButton(this: *mut core::ffi::c_void, pulbuttonsavailable: *mut u32, pulcurrentbutton: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetCurrentButton(this, core::mem::transmute_copy(&pulbuttonsavailable), core::mem::transmute_copy(&pulcurrentbutton)).into() } - unsafe extern "system" fn GetCurrentAngle(this: *mut core::ffi::c_void, pulanglesavailable: *mut u32, pulcurrentangle: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetCurrentAngle(this: *mut core::ffi::c_void, pulanglesavailable: *mut u32, pulcurrentangle: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetCurrentAngle(this, core::mem::transmute_copy(&pulanglesavailable), core::mem::transmute_copy(&pulcurrentangle)).into() } - unsafe extern "system" fn GetCurrentAudio(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetCurrentAudio(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetCurrentAudio(this, core::mem::transmute_copy(&pulstreamsavailable), core::mem::transmute_copy(&pulcurrentstream)).into() } - unsafe extern "system" fn GetCurrentSubpicture(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pbisdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetCurrentSubpicture(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pbisdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetCurrentSubpicture(this, core::mem::transmute_copy(&pulstreamsavailable), core::mem::transmute_copy(&pulcurrentstream), core::mem::transmute_copy(&pbisdisabled)).into() } - unsafe extern "system" fn GetCurrentUOPS(this: *mut core::ffi::c_void, puluops: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetCurrentUOPS(this: *mut core::ffi::c_void, puluops: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetCurrentUOPS(this) { Ok(ok__) => { @@ -12418,10 +9118,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllSPRMs(this: *mut core::ffi::c_void, pregisterarray: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetAllSPRMs(this: *mut core::ffi::c_void, pregisterarray: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetAllSPRMs(this) { Ok(ok__) => { @@ -12431,10 +9128,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllGPRMs(this: *mut core::ffi::c_void, pregisterarray: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetAllGPRMs(this: *mut core::ffi::c_void, pregisterarray: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetAllGPRMs(this) { Ok(ok__) => { @@ -12444,10 +9138,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAudioLanguage(this: *mut core::ffi::c_void, ulstream: u32, planguage: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetAudioLanguage(this: *mut core::ffi::c_void, ulstream: u32, planguage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetAudioLanguage(this, core::mem::transmute_copy(&ulstream)) { Ok(ok__) => { @@ -12457,10 +9148,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubpictureLanguage(this: *mut core::ffi::c_void, ulstream: u32, planguage: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetSubpictureLanguage(this: *mut core::ffi::c_void, ulstream: u32, planguage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetSubpictureLanguage(this, core::mem::transmute_copy(&ulstream)) { Ok(ok__) => { @@ -12470,45 +9158,27 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTitleAttributes(this: *mut core::ffi::c_void, ultitle: u32, pmenu: *mut DVD_MenuAttributes, ptitle: *mut DVD_TitleAttributes) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetTitleAttributes(this: *mut core::ffi::c_void, ultitle: u32, pmenu: *mut DVD_MenuAttributes, ptitle: *mut DVD_TitleAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetTitleAttributes(this, core::mem::transmute_copy(&ultitle), core::mem::transmute_copy(&pmenu), core::mem::transmute_copy(&ptitle)).into() } - unsafe extern "system" fn GetVMGAttributes(this: *mut core::ffi::c_void, patr: *mut DVD_MenuAttributes) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetVMGAttributes(this: *mut core::ffi::c_void, patr: *mut DVD_MenuAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetVMGAttributes(this, core::mem::transmute_copy(&patr)).into() } - unsafe extern "system" fn GetCurrentVideoAttributes(this: *mut core::ffi::c_void, patr: *mut DVD_VideoAttributes) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetCurrentVideoAttributes(this: *mut core::ffi::c_void, patr: *mut DVD_VideoAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetCurrentVideoAttributes(this, core::mem::transmute_copy(&patr)).into() } - unsafe extern "system" fn GetAudioAttributes(this: *mut core::ffi::c_void, ulstream: u32, patr: *mut DVD_AudioAttributes) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetAudioAttributes(this: *mut core::ffi::c_void, ulstream: u32, patr: *mut DVD_AudioAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetAudioAttributes(this, core::mem::transmute_copy(&ulstream), core::mem::transmute_copy(&patr)).into() } - unsafe extern "system" fn GetKaraokeAttributes(this: *mut core::ffi::c_void, ulstream: u32, pattributes: *mut DVD_KaraokeAttributes) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetKaraokeAttributes(this: *mut core::ffi::c_void, ulstream: u32, pattributes: *mut DVD_KaraokeAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetKaraokeAttributes(this, core::mem::transmute_copy(&ulstream), core::mem::transmute_copy(&pattributes)).into() } - unsafe extern "system" fn GetSubpictureAttributes(this: *mut core::ffi::c_void, ulstream: u32, patr: *mut DVD_SubpictureAttributes) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetSubpictureAttributes(this: *mut core::ffi::c_void, ulstream: u32, patr: *mut DVD_SubpictureAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetSubpictureAttributes(this, core::mem::transmute_copy(&ulstream)) { Ok(ok__) => { @@ -12518,17 +9188,11 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDVDVolumeInfo(this: *mut core::ffi::c_void, pulnumofvolumes: *mut u32, pulvolume: *mut u32, pside: *mut DVD_DISC_SIDE, pulnumoftitles: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDVDVolumeInfo(this: *mut core::ffi::c_void, pulnumofvolumes: *mut u32, pulvolume: *mut u32, pside: *mut DVD_DISC_SIDE, pulnumoftitles: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetDVDVolumeInfo(this, core::mem::transmute_copy(&pulnumofvolumes), core::mem::transmute_copy(&pulvolume), core::mem::transmute_copy(&pside), core::mem::transmute_copy(&pulnumoftitles)).into() } - unsafe extern "system" fn GetDVDTextNumberOfLanguages(this: *mut core::ffi::c_void, pulnumoflangs: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDVDTextNumberOfLanguages(this: *mut core::ffi::c_void, pulnumoflangs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetDVDTextNumberOfLanguages(this) { Ok(ok__) => { @@ -12538,38 +9202,23 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDVDTextLanguageInfo(this: *mut core::ffi::c_void, ullangindex: u32, pulnumofstrings: *mut u32, plangcode: *mut u32, pbcharacterset: *mut DVD_TextCharSet) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDVDTextLanguageInfo(this: *mut core::ffi::c_void, ullangindex: u32, pulnumofstrings: *mut u32, plangcode: *mut u32, pbcharacterset: *mut DVD_TextCharSet) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetDVDTextLanguageInfo(this, core::mem::transmute_copy(&ullangindex), core::mem::transmute_copy(&pulnumofstrings), core::mem::transmute_copy(&plangcode), core::mem::transmute_copy(&pbcharacterset)).into() } - unsafe extern "system" fn GetDVDTextStringAsNative(this: *mut core::ffi::c_void, ullangindex: u32, ulstringindex: u32, pbbuffer: *mut u8, ulmaxbuffersize: u32, pulactualsize: *mut u32, ptype: *mut DVD_TextStringType) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDVDTextStringAsNative(this: *mut core::ffi::c_void, ullangindex: u32, ulstringindex: u32, pbbuffer: *mut u8, ulmaxbuffersize: u32, pulactualsize: *mut u32, ptype: *mut DVD_TextStringType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetDVDTextStringAsNative(this, core::mem::transmute_copy(&ullangindex), core::mem::transmute_copy(&ulstringindex), core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&ulmaxbuffersize), core::mem::transmute_copy(&pulactualsize), core::mem::transmute_copy(&ptype)).into() } - unsafe extern "system" fn GetDVDTextStringAsUnicode(this: *mut core::ffi::c_void, ullangindex: u32, ulstringindex: u32, pchwbuffer: windows_core::PWSTR, ulmaxbuffersize: u32, pulactualsize: *mut u32, ptype: *mut DVD_TextStringType) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDVDTextStringAsUnicode(this: *mut core::ffi::c_void, ullangindex: u32, ulstringindex: u32, pchwbuffer: windows_core::PWSTR, ulmaxbuffersize: u32, pulactualsize: *mut u32, ptype: *mut DVD_TextStringType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetDVDTextStringAsUnicode(this, core::mem::transmute_copy(&ullangindex), core::mem::transmute_copy(&ulstringindex), core::mem::transmute_copy(&pchwbuffer), core::mem::transmute_copy(&ulmaxbuffersize), core::mem::transmute_copy(&pulactualsize), core::mem::transmute_copy(&ptype)).into() } - unsafe extern "system" fn GetPlayerParentalLevel(this: *mut core::ffi::c_void, pulparentallevel: *mut u32, pbcountrycode: *mut u8) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetPlayerParentalLevel(this: *mut core::ffi::c_void, pulparentallevel: *mut u32, pbcountrycode: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetPlayerParentalLevel(this, core::mem::transmute_copy(&pulparentallevel), core::mem::transmute_copy(&pbcountrycode)).into() } - unsafe extern "system" fn GetNumberOfChapters(this: *mut core::ffi::c_void, ultitle: u32, pulnumofchapters: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetNumberOfChapters(this: *mut core::ffi::c_void, ultitle: u32, pulnumofchapters: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetNumberOfChapters(this, core::mem::transmute_copy(&ultitle)) { Ok(ok__) => { @@ -12579,10 +9228,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTitleParentalLevels(this: *mut core::ffi::c_void, ultitle: u32, pulparentallevels: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetTitleParentalLevels(this: *mut core::ffi::c_void, ultitle: u32, pulparentallevels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetTitleParentalLevels(this, core::mem::transmute_copy(&ultitle)) { Ok(ok__) => { @@ -12592,17 +9238,11 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDVDDirectory(this: *mut core::ffi::c_void, pszwpath: windows_core::PWSTR, ulmaxsize: u32, pulactualsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDVDDirectory(this: *mut core::ffi::c_void, pszwpath: windows_core::PWSTR, ulmaxsize: u32, pulactualsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetDVDDirectory(this, core::mem::transmute_copy(&pszwpath), core::mem::transmute_copy(&ulmaxsize), core::mem::transmute_copy(&pulactualsize)).into() } - unsafe extern "system" fn IsAudioStreamEnabled(this: *mut core::ffi::c_void, ulstreamnum: u32, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn IsAudioStreamEnabled(this: *mut core::ffi::c_void, ulstreamnum: u32, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::IsAudioStreamEnabled(this, core::mem::transmute_copy(&ulstreamnum)) { Ok(ok__) => { @@ -12612,10 +9252,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDiscID(this: *mut core::ffi::c_void, pszwpath: windows_core::PCWSTR, pulldiscid: *mut u64) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDiscID(this: *mut core::ffi::c_void, pszwpath: windows_core::PCWSTR, pulldiscid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetDiscID(this, core::mem::transmute(&pszwpath)) { Ok(ok__) => { @@ -12625,10 +9262,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pstatedata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pstatedata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetState(this) { Ok(ok__) => { @@ -12638,17 +9272,11 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMenuLanguages(this: *mut core::ffi::c_void, planguages: *mut u32, ulmaxlanguages: u32, pulactuallanguages: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetMenuLanguages(this: *mut core::ffi::c_void, planguages: *mut u32, ulmaxlanguages: u32, pulactuallanguages: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetMenuLanguages(this, core::mem::transmute_copy(&planguages), core::mem::transmute_copy(&ulmaxlanguages), core::mem::transmute_copy(&pulactuallanguages)).into() } - unsafe extern "system" fn GetButtonAtPosition(this: *mut core::ffi::c_void, point: super::super::Foundation::POINT, pulbuttonindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetButtonAtPosition(this: *mut core::ffi::c_void, point: super::super::Foundation::POINT, pulbuttonindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetButtonAtPosition(this, core::mem::transmute(&point)) { Ok(ok__) => { @@ -12658,10 +9286,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCmdFromEvent(this: *mut core::ffi::c_void, lparam1: isize, pcmdobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetCmdFromEvent(this: *mut core::ffi::c_void, lparam1: isize, pcmdobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetCmdFromEvent(this, core::mem::transmute_copy(&lparam1)) { Ok(ok__) => { @@ -12671,10 +9296,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultMenuLanguage(this: *mut core::ffi::c_void, planguage: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDefaultMenuLanguage(this: *mut core::ffi::c_void, planguage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetDefaultMenuLanguage(this) { Ok(ok__) => { @@ -12684,31 +9306,19 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultAudioLanguage(this: *mut core::ffi::c_void, planguage: *mut u32, paudioextension: *mut DVD_AUDIO_LANG_EXT) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDefaultAudioLanguage(this: *mut core::ffi::c_void, planguage: *mut u32, paudioextension: *mut DVD_AUDIO_LANG_EXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetDefaultAudioLanguage(this, core::mem::transmute_copy(&planguage), core::mem::transmute_copy(&paudioextension)).into() } - unsafe extern "system" fn GetDefaultSubpictureLanguage(this: *mut core::ffi::c_void, planguage: *mut u32, psubpictureextension: *mut DVD_SUBPICTURE_LANG_EXT) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDefaultSubpictureLanguage(this: *mut core::ffi::c_void, planguage: *mut u32, psubpictureextension: *mut DVD_SUBPICTURE_LANG_EXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetDefaultSubpictureLanguage(this, core::mem::transmute_copy(&planguage), core::mem::transmute_copy(&psubpictureextension)).into() } - unsafe extern "system" fn GetDecoderCaps(this: *mut core::ffi::c_void, pcaps: *mut DVD_DECODER_CAPS) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetDecoderCaps(this: *mut core::ffi::c_void, pcaps: *mut DVD_DECODER_CAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetDecoderCaps(this, core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetButtonRect(this: *mut core::ffi::c_void, ulbutton: u32, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn GetButtonRect(this: *mut core::ffi::c_void, ulbutton: u32, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::GetButtonRect(this, core::mem::transmute_copy(&ulbutton)) { Ok(ok__) => { @@ -12718,10 +9328,7 @@ impl IDvdInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSubpictureStreamEnabled(this: *mut core::ffi::c_void, ulstreamnum: u32, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDvdInfo2_Impl, - { + unsafe extern "system" fn IsSubpictureStreamEnabled(this: *mut core::ffi::c_void, ulstreamnum: u32, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::IsSubpictureStreamEnabled(this, core::mem::transmute_copy(&ulstreamnum)) { Ok(ok__) => { @@ -12778,20 +9385,14 @@ impl IDvdInfo2_Vtbl { iid == &::IID } } -pub trait IDvdState_Impl: Sized { +pub trait IDvdState_Impl: Sized + windows_core::IUnknownImpl { fn GetDiscID(&self) -> windows_core::Result; fn GetParentalLevel(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDvdState {} impl IDvdState_Vtbl { - pub const fn new() -> IDvdState_Vtbl - where - Identity: IDvdState_Impl, - { - unsafe extern "system" fn GetDiscID(this: *mut core::ffi::c_void, pulluniqueid: *mut u64) -> windows_core::HRESULT - where - Identity: IDvdState_Impl, - { + pub const fn new() -> IDvdState_Vtbl { + unsafe extern "system" fn GetDiscID(this: *mut core::ffi::c_void, pulluniqueid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdState_Impl::GetDiscID(this) { Ok(ok__) => { @@ -12801,10 +9402,7 @@ impl IDvdState_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentalLevel(this: *mut core::ffi::c_void, pulparentallevel: *mut u32) -> windows_core::HRESULT - where - Identity: IDvdState_Impl, - { + unsafe extern "system" fn GetParentalLevel(this: *mut core::ffi::c_void, pulparentallevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdState_Impl::GetParentalLevel(this) { Ok(ok__) => { @@ -12825,7 +9423,7 @@ impl IDvdState_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IESEvent_Impl: Sized { +pub trait IESEvent_Impl: Sized + windows_core::IUnknownImpl { fn GetEventId(&self) -> windows_core::Result; fn GetEventType(&self) -> windows_core::Result; fn SetCompletionStatus(&self, dwresult: u32) -> windows_core::Result<()>; @@ -12836,14 +9434,8 @@ pub trait IESEvent_Impl: Sized { impl windows_core::RuntimeName for IESEvent {} #[cfg(feature = "Win32_System_Com")] impl IESEvent_Vtbl { - pub const fn new() -> IESEvent_Vtbl - where - Identity: IESEvent_Impl, - { - unsafe extern "system" fn GetEventId(this: *mut core::ffi::c_void, pdweventid: *mut u32) -> windows_core::HRESULT - where - Identity: IESEvent_Impl, - { + pub const fn new() -> IESEvent_Vtbl { + unsafe extern "system" fn GetEventId(this: *mut core::ffi::c_void, pdweventid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESEvent_Impl::GetEventId(this) { Ok(ok__) => { @@ -12853,10 +9445,7 @@ impl IESEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventType(this: *mut core::ffi::c_void, pguideventtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IESEvent_Impl, - { + unsafe extern "system" fn GetEventType(this: *mut core::ffi::c_void, pguideventtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESEvent_Impl::GetEventType(this) { Ok(ok__) => { @@ -12866,17 +9455,11 @@ impl IESEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCompletionStatus(this: *mut core::ffi::c_void, dwresult: u32) -> windows_core::HRESULT - where - Identity: IESEvent_Impl, - { + unsafe extern "system" fn SetCompletionStatus(this: *mut core::ffi::c_void, dwresult: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IESEvent_Impl::SetCompletionStatus(this, core::mem::transmute_copy(&dwresult)).into() } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pbdata: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IESEvent_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pbdata: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESEvent_Impl::GetData(this) { Ok(ok__) => { @@ -12886,10 +9469,7 @@ impl IESEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStringData(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IESEvent_Impl, - { + unsafe extern "system" fn GetStringData(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESEvent_Impl::GetStringData(this) { Ok(ok__) => { @@ -12912,19 +9492,13 @@ impl IESEvent_Vtbl { iid == &::IID } } -pub trait IESEvents_Impl: Sized { +pub trait IESEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnESEventReceived(&self, guideventtype: &windows_core::GUID, pesevent: Option<&IESEvent>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IESEvents {} impl IESEvents_Vtbl { - pub const fn new() -> IESEvents_Vtbl - where - Identity: IESEvents_Impl, - { - unsafe extern "system" fn OnESEventReceived(this: *mut core::ffi::c_void, guideventtype: windows_core::GUID, pesevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IESEvents_Impl, - { + pub const fn new() -> IESEvents_Vtbl { + unsafe extern "system" fn OnESEventReceived(this: *mut core::ffi::c_void, guideventtype: windows_core::GUID, pesevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IESEvents_Impl::OnESEventReceived(this, core::mem::transmute(&guideventtype), windows_core::from_raw_borrowed(&pesevent)).into() } @@ -12934,7 +9508,7 @@ impl IESEvents_Vtbl { iid == &::IID } } -pub trait IEncoderAPI_Impl: Sized { +pub trait IEncoderAPI_Impl: Sized + windows_core::IUnknownImpl { fn IsSupported(&self, api: *const windows_core::GUID) -> windows_core::Result<()>; fn IsAvailable(&self, api: *const windows_core::GUID) -> windows_core::Result<()>; fn GetParameterRange(&self, api: *const windows_core::GUID, valuemin: *mut windows_core::VARIANT, valuemax: *mut windows_core::VARIANT, steppingdelta: *mut windows_core::VARIANT) -> windows_core::Result<()>; @@ -12945,42 +9519,24 @@ pub trait IEncoderAPI_Impl: Sized { } impl windows_core::RuntimeName for IEncoderAPI {} impl IEncoderAPI_Vtbl { - pub const fn new() -> IEncoderAPI_Vtbl - where - Identity: IEncoderAPI_Impl, - { - unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, api: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IEncoderAPI_Impl, - { + pub const fn new() -> IEncoderAPI_Vtbl { + unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, api: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEncoderAPI_Impl::IsSupported(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn IsAvailable(this: *mut core::ffi::c_void, api: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IEncoderAPI_Impl, - { + unsafe extern "system" fn IsAvailable(this: *mut core::ffi::c_void, api: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEncoderAPI_Impl::IsAvailable(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetParameterRange(this: *mut core::ffi::c_void, api: *const windows_core::GUID, valuemin: *mut core::mem::MaybeUninit, valuemax: *mut core::mem::MaybeUninit, steppingdelta: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEncoderAPI_Impl, - { + unsafe extern "system" fn GetParameterRange(this: *mut core::ffi::c_void, api: *const windows_core::GUID, valuemin: *mut core::mem::MaybeUninit, valuemax: *mut core::mem::MaybeUninit, steppingdelta: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEncoderAPI_Impl::GetParameterRange(this, core::mem::transmute_copy(&api), core::mem::transmute_copy(&valuemin), core::mem::transmute_copy(&valuemax), core::mem::transmute_copy(&steppingdelta)).into() } - unsafe extern "system" fn GetParameterValues(this: *mut core::ffi::c_void, api: *const windows_core::GUID, values: *mut *mut windows_core::VARIANT, valuescount: *mut u32) -> windows_core::HRESULT - where - Identity: IEncoderAPI_Impl, - { + unsafe extern "system" fn GetParameterValues(this: *mut core::ffi::c_void, api: *const windows_core::GUID, values: *mut *mut windows_core::VARIANT, valuescount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEncoderAPI_Impl::GetParameterValues(this, core::mem::transmute_copy(&api), core::mem::transmute_copy(&values), core::mem::transmute_copy(&valuescount)).into() } - unsafe extern "system" fn GetDefaultValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEncoderAPI_Impl, - { + unsafe extern "system" fn GetDefaultValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEncoderAPI_Impl::GetDefaultValue(this, core::mem::transmute_copy(&api)) { Ok(ok__) => { @@ -12990,10 +9546,7 @@ impl IEncoderAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEncoderAPI_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEncoderAPI_Impl::GetValue(this, core::mem::transmute_copy(&api)) { Ok(ok__) => { @@ -13003,10 +9556,7 @@ impl IEncoderAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEncoderAPI_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEncoderAPI_Impl::SetValue(this, core::mem::transmute_copy(&api), core::mem::transmute_copy(&value)).into() } @@ -13026,7 +9576,7 @@ impl IEncoderAPI_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumFilters_Impl: Sized { +pub trait IEnumFilters_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cfilters: u32, ppfilter: *mut Option, pcfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, cfilters: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -13036,35 +9586,20 @@ pub trait IEnumFilters_Impl: Sized { impl windows_core::RuntimeName for IEnumFilters {} #[cfg(feature = "Win32_System_Com")] impl IEnumFilters_Vtbl { - pub const fn new() -> IEnumFilters_Vtbl - where - Identity: IEnumFilters_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfilters: u32, ppfilter: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumFilters_Impl, - { + pub const fn new() -> IEnumFilters_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfilters: u32, ppfilter: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFilters_Impl::Next(this, core::mem::transmute_copy(&cfilters), core::mem::transmute_copy(&ppfilter), core::mem::transmute_copy(&pcfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cfilters: u32) -> windows_core::HRESULT - where - Identity: IEnumFilters_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cfilters: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFilters_Impl::Skip(this, core::mem::transmute_copy(&cfilters)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumFilters_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFilters_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumFilters_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumFilters_Impl::Clone(this) { Ok(ok__) => { @@ -13087,7 +9622,7 @@ impl IEnumFilters_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IEnumMediaTypes_Impl: Sized { +pub trait IEnumMediaTypes_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cmediatypes: u32, ppmediatypes: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE, pcfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, cmediatypes: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -13097,35 +9632,20 @@ pub trait IEnumMediaTypes_Impl: Sized { impl windows_core::RuntimeName for IEnumMediaTypes {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IEnumMediaTypes_Vtbl { - pub const fn new() -> IEnumMediaTypes_Vtbl - where - Identity: IEnumMediaTypes_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cmediatypes: u32, ppmediatypes: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumMediaTypes_Impl, - { + pub const fn new() -> IEnumMediaTypes_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cmediatypes: u32, ppmediatypes: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMediaTypes_Impl::Next(this, core::mem::transmute_copy(&cmediatypes), core::mem::transmute_copy(&ppmediatypes), core::mem::transmute_copy(&pcfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cmediatypes: u32) -> windows_core::HRESULT - where - Identity: IEnumMediaTypes_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cmediatypes: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMediaTypes_Impl::Skip(this, core::mem::transmute_copy(&cmediatypes)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMediaTypes_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMediaTypes_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMediaTypes_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumMediaTypes_Impl::Clone(this) { Ok(ok__) => { @@ -13147,7 +9667,7 @@ impl IEnumMediaTypes_Vtbl { iid == &::IID } } -pub trait IEnumPIDMap_Impl: Sized { +pub trait IEnumPIDMap_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, crequest: u32, ppidmap: *mut PID_MAP, pcreceived: *mut u32) -> windows_core::HRESULT; fn Skip(&self, crecords: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -13155,35 +9675,20 @@ pub trait IEnumPIDMap_Impl: Sized { } impl windows_core::RuntimeName for IEnumPIDMap {} impl IEnumPIDMap_Vtbl { - pub const fn new() -> IEnumPIDMap_Vtbl - where - Identity: IEnumPIDMap_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crequest: u32, ppidmap: *mut PID_MAP, pcreceived: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumPIDMap_Impl, - { + pub const fn new() -> IEnumPIDMap_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crequest: u32, ppidmap: *mut PID_MAP, pcreceived: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPIDMap_Impl::Next(this, core::mem::transmute_copy(&crequest), core::mem::transmute_copy(&ppidmap), core::mem::transmute_copy(&pcreceived)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, crecords: u32) -> windows_core::HRESULT - where - Identity: IEnumPIDMap_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, crecords: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPIDMap_Impl::Skip(this, core::mem::transmute_copy(&crecords)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPIDMap_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPIDMap_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienumpidmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPIDMap_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienumpidmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumPIDMap_Impl::Clone(this) { Ok(ok__) => { @@ -13205,7 +9710,7 @@ impl IEnumPIDMap_Vtbl { iid == &::IID } } -pub trait IEnumPins_Impl: Sized { +pub trait IEnumPins_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cpins: u32, pppins: *mut Option, pcfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, cpins: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -13213,35 +9718,20 @@ pub trait IEnumPins_Impl: Sized { } impl windows_core::RuntimeName for IEnumPins {} impl IEnumPins_Vtbl { - pub const fn new() -> IEnumPins_Vtbl - where - Identity: IEnumPins_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cpins: u32, pppins: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumPins_Impl, - { + pub const fn new() -> IEnumPins_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cpins: u32, pppins: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPins_Impl::Next(this, core::mem::transmute_copy(&cpins), core::mem::transmute_copy(&pppins), core::mem::transmute_copy(&pcfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cpins: u32) -> windows_core::HRESULT - where - Identity: IEnumPins_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cpins: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPins_Impl::Skip(this, core::mem::transmute_copy(&cpins)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPins_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPins_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPins_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumPins_Impl::Clone(this) { Ok(ok__) => { @@ -13263,7 +9753,7 @@ impl IEnumPins_Vtbl { iid == &::IID } } -pub trait IEnumRegFilters_Impl: Sized { +pub trait IEnumRegFilters_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cfilters: u32, apregfilter: *mut *mut REGFILTER, pcfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, cfilters: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -13271,35 +9761,20 @@ pub trait IEnumRegFilters_Impl: Sized { } impl windows_core::RuntimeName for IEnumRegFilters {} impl IEnumRegFilters_Vtbl { - pub const fn new() -> IEnumRegFilters_Vtbl - where - Identity: IEnumRegFilters_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfilters: u32, apregfilter: *mut *mut REGFILTER, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumRegFilters_Impl, - { + pub const fn new() -> IEnumRegFilters_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfilters: u32, apregfilter: *mut *mut REGFILTER, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRegFilters_Impl::Next(this, core::mem::transmute_copy(&cfilters), core::mem::transmute_copy(&apregfilter), core::mem::transmute_copy(&pcfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cfilters: u32) -> windows_core::HRESULT - where - Identity: IEnumRegFilters_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cfilters: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRegFilters_Impl::Skip(this, core::mem::transmute_copy(&cfilters)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRegFilters_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRegFilters_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRegFilters_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumRegFilters_Impl::Clone(this) { Ok(ok__) => { @@ -13321,7 +9796,7 @@ impl IEnumRegFilters_Vtbl { iid == &::IID } } -pub trait IEnumStreamIdMap_Impl: Sized { +pub trait IEnumStreamIdMap_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, crequest: u32, pstreamidmap: *mut STREAM_ID_MAP, pcreceived: *mut u32) -> windows_core::Result<()>; fn Skip(&self, crecords: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -13329,35 +9804,20 @@ pub trait IEnumStreamIdMap_Impl: Sized { } impl windows_core::RuntimeName for IEnumStreamIdMap {} impl IEnumStreamIdMap_Vtbl { - pub const fn new() -> IEnumStreamIdMap_Vtbl - where - Identity: IEnumStreamIdMap_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crequest: u32, pstreamidmap: *mut STREAM_ID_MAP, pcreceived: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumStreamIdMap_Impl, - { + pub const fn new() -> IEnumStreamIdMap_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crequest: u32, pstreamidmap: *mut STREAM_ID_MAP, pcreceived: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumStreamIdMap_Impl::Next(this, core::mem::transmute_copy(&crequest), core::mem::transmute_copy(&pstreamidmap), core::mem::transmute_copy(&pcreceived)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, crecords: u32) -> windows_core::HRESULT - where - Identity: IEnumStreamIdMap_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, crecords: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumStreamIdMap_Impl::Skip(this, core::mem::transmute_copy(&crecords)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumStreamIdMap_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumStreamIdMap_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienumstreamidmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumStreamIdMap_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienumstreamidmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumStreamIdMap_Impl::Clone(this) { Ok(ok__) => { @@ -13380,7 +9840,7 @@ impl IEnumStreamIdMap_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IFileSinkFilter_Impl: Sized { +pub trait IFileSinkFilter_Impl: Sized + windows_core::IUnknownImpl { fn SetFileName(&self, pszfilename: &windows_core::PCWSTR, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn GetCurFile(&self, ppszfilename: *mut windows_core::PWSTR, pmt: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; } @@ -13388,21 +9848,12 @@ pub trait IFileSinkFilter_Impl: Sized { impl windows_core::RuntimeName for IFileSinkFilter {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IFileSinkFilter_Vtbl { - pub const fn new() -> IFileSinkFilter_Vtbl - where - Identity: IFileSinkFilter_Impl, - { - unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IFileSinkFilter_Impl, - { + pub const fn new() -> IFileSinkFilter_Vtbl { + unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSinkFilter_Impl::SetFileName(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn GetCurFile(this: *mut core::ffi::c_void, ppszfilename: *mut windows_core::PWSTR, pmt: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IFileSinkFilter_Impl, - { + unsafe extern "system" fn GetCurFile(this: *mut core::ffi::c_void, ppszfilename: *mut windows_core::PWSTR, pmt: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSinkFilter_Impl::GetCurFile(this, core::mem::transmute_copy(&ppszfilename), core::mem::transmute_copy(&pmt)).into() } @@ -13425,21 +9876,12 @@ pub trait IFileSinkFilter2_Impl: Sized + IFileSinkFilter_Impl { impl windows_core::RuntimeName for IFileSinkFilter2 {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IFileSinkFilter2_Vtbl { - pub const fn new() -> IFileSinkFilter2_Vtbl - where - Identity: IFileSinkFilter2_Impl, - { - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IFileSinkFilter2_Impl, - { + pub const fn new() -> IFileSinkFilter2_Vtbl { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSinkFilter2_Impl::SetMode(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IFileSinkFilter2_Impl, - { + unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSinkFilter2_Impl::GetMode(this) { Ok(ok__) => { @@ -13456,7 +9898,7 @@ impl IFileSinkFilter2_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IFileSourceFilter_Impl: Sized { +pub trait IFileSourceFilter_Impl: Sized + windows_core::IUnknownImpl { fn Load(&self, pszfilename: &windows_core::PCWSTR, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn GetCurFile(&self, ppszfilename: *mut windows_core::PWSTR, pmt: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; } @@ -13464,21 +9906,12 @@ pub trait IFileSourceFilter_Impl: Sized { impl windows_core::RuntimeName for IFileSourceFilter {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IFileSourceFilter_Vtbl { - pub const fn new() -> IFileSourceFilter_Vtbl - where - Identity: IFileSourceFilter_Impl, - { - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IFileSourceFilter_Impl, - { + pub const fn new() -> IFileSourceFilter_Vtbl { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSourceFilter_Impl::Load(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn GetCurFile(this: *mut core::ffi::c_void, ppszfilename: *mut windows_core::PWSTR, pmt: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IFileSourceFilter_Impl, - { + unsafe extern "system" fn GetCurFile(this: *mut core::ffi::c_void, ppszfilename: *mut windows_core::PWSTR, pmt: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSourceFilter_Impl::GetCurFile(this, core::mem::transmute_copy(&ppszfilename), core::mem::transmute_copy(&pmt)).into() } @@ -13489,7 +9922,7 @@ impl IFileSourceFilter_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IFilterChain_Impl: Sized { +pub trait IFilterChain_Impl: Sized + windows_core::IUnknownImpl { fn StartChain(&self, pstartfilter: Option<&IBaseFilter>, pendfilter: Option<&IBaseFilter>) -> windows_core::Result<()>; fn PauseChain(&self, pstartfilter: Option<&IBaseFilter>, pendfilter: Option<&IBaseFilter>) -> windows_core::Result<()>; fn StopChain(&self, pstartfilter: Option<&IBaseFilter>, pendfilter: Option<&IBaseFilter>) -> windows_core::Result<()>; @@ -13499,35 +9932,20 @@ pub trait IFilterChain_Impl: Sized { impl windows_core::RuntimeName for IFilterChain {} #[cfg(feature = "Win32_System_Com")] impl IFilterChain_Vtbl { - pub const fn new() -> IFilterChain_Vtbl - where - Identity: IFilterChain_Impl, - { - unsafe extern "system" fn StartChain(this: *mut core::ffi::c_void, pstartfilter: *mut core::ffi::c_void, pendfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterChain_Impl, - { + pub const fn new() -> IFilterChain_Vtbl { + unsafe extern "system" fn StartChain(this: *mut core::ffi::c_void, pstartfilter: *mut core::ffi::c_void, pendfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterChain_Impl::StartChain(this, windows_core::from_raw_borrowed(&pstartfilter), windows_core::from_raw_borrowed(&pendfilter)).into() } - unsafe extern "system" fn PauseChain(this: *mut core::ffi::c_void, pstartfilter: *mut core::ffi::c_void, pendfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterChain_Impl, - { + unsafe extern "system" fn PauseChain(this: *mut core::ffi::c_void, pstartfilter: *mut core::ffi::c_void, pendfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterChain_Impl::PauseChain(this, windows_core::from_raw_borrowed(&pstartfilter), windows_core::from_raw_borrowed(&pendfilter)).into() } - unsafe extern "system" fn StopChain(this: *mut core::ffi::c_void, pstartfilter: *mut core::ffi::c_void, pendfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterChain_Impl, - { + unsafe extern "system" fn StopChain(this: *mut core::ffi::c_void, pstartfilter: *mut core::ffi::c_void, pendfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterChain_Impl::StopChain(this, windows_core::from_raw_borrowed(&pstartfilter), windows_core::from_raw_borrowed(&pendfilter)).into() } - unsafe extern "system" fn RemoveChain(this: *mut core::ffi::c_void, pstartfilter: *mut core::ffi::c_void, pendfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterChain_Impl, - { + unsafe extern "system" fn RemoveChain(this: *mut core::ffi::c_void, pstartfilter: *mut core::ffi::c_void, pendfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterChain_Impl::RemoveChain(this, windows_core::from_raw_borrowed(&pstartfilter), windows_core::from_raw_borrowed(&pendfilter)).into() } @@ -13544,7 +9962,7 @@ impl IFilterChain_Vtbl { } } #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] -pub trait IFilterGraph_Impl: Sized { +pub trait IFilterGraph_Impl: Sized + windows_core::IUnknownImpl { fn AddFilter(&self, pfilter: Option<&IBaseFilter>, pname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn RemoveFilter(&self, pfilter: Option<&IBaseFilter>) -> windows_core::Result<()>; fn EnumFilters(&self) -> windows_core::Result; @@ -13558,28 +9976,16 @@ pub trait IFilterGraph_Impl: Sized { impl windows_core::RuntimeName for IFilterGraph {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl IFilterGraph_Vtbl { - pub const fn new() -> IFilterGraph_Vtbl - where - Identity: IFilterGraph_Impl, - { - unsafe extern "system" fn AddFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, pname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFilterGraph_Impl, - { + pub const fn new() -> IFilterGraph_Vtbl { + unsafe extern "system" fn AddFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, pname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterGraph_Impl::AddFilter(this, windows_core::from_raw_borrowed(&pfilter), core::mem::transmute(&pname)).into() } - unsafe extern "system" fn RemoveFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterGraph_Impl, - { + unsafe extern "system" fn RemoveFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterGraph_Impl::RemoveFilter(this, windows_core::from_raw_borrowed(&pfilter)).into() } - unsafe extern "system" fn EnumFilters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterGraph_Impl, - { + unsafe extern "system" fn EnumFilters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterGraph_Impl::EnumFilters(this) { Ok(ok__) => { @@ -13589,10 +9995,7 @@ impl IFilterGraph_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFilterByName(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterGraph_Impl, - { + unsafe extern "system" fn FindFilterByName(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterGraph_Impl::FindFilterByName(this, core::mem::transmute(&pname)) { Ok(ok__) => { @@ -13602,31 +10005,19 @@ impl IFilterGraph_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectDirect(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void, ppinin: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IFilterGraph_Impl, - { + unsafe extern "system" fn ConnectDirect(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void, ppinin: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterGraph_Impl::ConnectDirect(this, windows_core::from_raw_borrowed(&ppinout), windows_core::from_raw_borrowed(&ppinin), core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn Reconnect(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterGraph_Impl, - { + unsafe extern "system" fn Reconnect(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterGraph_Impl::Reconnect(this, windows_core::from_raw_borrowed(&ppin)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterGraph_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterGraph_Impl::Disconnect(this, windows_core::from_raw_borrowed(&ppin)).into() } - unsafe extern "system" fn SetDefaultSyncSource(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterGraph_Impl, - { + unsafe extern "system" fn SetDefaultSyncSource(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterGraph_Impl::SetDefaultSyncSource(this).into() } @@ -13656,14 +10047,8 @@ pub trait IFilterGraph2_Impl: Sized + IGraphBuilder_Impl { impl windows_core::RuntimeName for IFilterGraph2 {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl IFilterGraph2_Vtbl { - pub const fn new() -> IFilterGraph2_Vtbl - where - Identity: IFilterGraph2_Impl, - { - unsafe extern "system" fn AddSourceFilterForMoniker(this: *mut core::ffi::c_void, pmoniker: *mut core::ffi::c_void, pctx: *mut core::ffi::c_void, lpcwstrfiltername: windows_core::PCWSTR, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterGraph2_Impl, - { + pub const fn new() -> IFilterGraph2_Vtbl { + unsafe extern "system" fn AddSourceFilterForMoniker(this: *mut core::ffi::c_void, pmoniker: *mut core::ffi::c_void, pctx: *mut core::ffi::c_void, lpcwstrfiltername: windows_core::PCWSTR, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterGraph2_Impl::AddSourceFilterForMoniker(this, windows_core::from_raw_borrowed(&pmoniker), windows_core::from_raw_borrowed(&pctx), core::mem::transmute(&lpcwstrfiltername)) { Ok(ok__) => { @@ -13673,17 +10058,11 @@ impl IFilterGraph2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReconnectEx(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IFilterGraph2_Impl, - { + unsafe extern "system" fn ReconnectEx(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterGraph2_Impl::ReconnectEx(this, windows_core::from_raw_borrowed(&ppin), core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn RenderEx(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void, dwflags: u32, pvcontext: *const u32) -> windows_core::HRESULT - where - Identity: IFilterGraph2_Impl, - { + unsafe extern "system" fn RenderEx(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void, dwflags: u32, pvcontext: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterGraph2_Impl::RenderEx(this, windows_core::from_raw_borrowed(&ppinout), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pvcontext)).into() } @@ -13706,14 +10085,8 @@ pub trait IFilterGraph3_Impl: Sized + IFilterGraph2_Impl { impl windows_core::RuntimeName for IFilterGraph3 {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl IFilterGraph3_Vtbl { - pub const fn new() -> IFilterGraph3_Vtbl - where - Identity: IFilterGraph3_Impl, - { - unsafe extern "system" fn SetSyncSourceEx(this: *mut core::ffi::c_void, pclockformostoffiltergraph: *mut core::ffi::c_void, pclockforfilter: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterGraph3_Impl, - { + pub const fn new() -> IFilterGraph3_Vtbl { + unsafe extern "system" fn SetSyncSourceEx(this: *mut core::ffi::c_void, pclockformostoffiltergraph: *mut core::ffi::c_void, pclockforfilter: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterGraph3_Impl::SetSyncSourceEx(this, windows_core::from_raw_borrowed(&pclockformostoffiltergraph), windows_core::from_raw_borrowed(&pclockforfilter), windows_core::from_raw_borrowed(&pfilter)).into() } @@ -13738,14 +10111,8 @@ pub trait IFilterInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFilterInfo {} #[cfg(feature = "Win32_System_Com")] impl IFilterInfo_Vtbl { - pub const fn new() -> IFilterInfo_Vtbl - where - Identity: IFilterInfo_Impl, - { - unsafe extern "system" fn FindPin(this: *mut core::ffi::c_void, strpinid: core::mem::MaybeUninit, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterInfo_Impl, - { + pub const fn new() -> IFilterInfo_Vtbl { + unsafe extern "system" fn FindPin(this: *mut core::ffi::c_void, strpinid: core::mem::MaybeUninit, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterInfo_Impl::FindPin(this, core::mem::transmute(&strpinid)) { Ok(ok__) => { @@ -13755,10 +10122,7 @@ impl IFilterInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFilterInfo_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterInfo_Impl::Name(this) { Ok(ok__) => { @@ -13768,10 +10132,7 @@ impl IFilterInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VendorInfo(this: *mut core::ffi::c_void, strvendorinfo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFilterInfo_Impl, - { + unsafe extern "system" fn VendorInfo(this: *mut core::ffi::c_void, strvendorinfo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterInfo_Impl::VendorInfo(this) { Ok(ok__) => { @@ -13781,10 +10142,7 @@ impl IFilterInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterInfo_Impl, - { + unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterInfo_Impl::Filter(this) { Ok(ok__) => { @@ -13794,10 +10152,7 @@ impl IFilterInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pins(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterInfo_Impl, - { + unsafe extern "system" fn Pins(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterInfo_Impl::Pins(this) { Ok(ok__) => { @@ -13807,10 +10162,7 @@ impl IFilterInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFileSource(this: *mut core::ffi::c_void, pbissource: *mut i32) -> windows_core::HRESULT - where - Identity: IFilterInfo_Impl, - { + unsafe extern "system" fn IsFileSource(this: *mut core::ffi::c_void, pbissource: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterInfo_Impl::IsFileSource(this) { Ok(ok__) => { @@ -13820,10 +10172,7 @@ impl IFilterInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Filename(this: *mut core::ffi::c_void, pstrfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFilterInfo_Impl, - { + unsafe extern "system" fn Filename(this: *mut core::ffi::c_void, pstrfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterInfo_Impl::Filename(this) { Ok(ok__) => { @@ -13833,10 +10182,7 @@ impl IFilterInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFilename(this: *mut core::ffi::c_void, strfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFilterInfo_Impl, - { + unsafe extern "system" fn SetFilename(this: *mut core::ffi::c_void, strfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterInfo_Impl::SetFilename(this, core::mem::transmute(&strfilename)).into() } @@ -13856,7 +10202,7 @@ impl IFilterInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IFilterMapper_Impl: Sized { +pub trait IFilterMapper_Impl: Sized + windows_core::IUnknownImpl { fn RegisterFilter(&self, clsid: &windows_core::GUID, name: &windows_core::PCWSTR, dwmerit: u32) -> windows_core::Result<()>; fn RegisterFilterInstance(&self, clsid: &windows_core::GUID, name: &windows_core::PCWSTR) -> windows_core::Result; fn RegisterPin(&self, filter: &windows_core::GUID, name: &windows_core::PCWSTR, brendered: super::super::Foundation::BOOL, boutput: super::super::Foundation::BOOL, bzero: super::super::Foundation::BOOL, bmany: super::super::Foundation::BOOL, connectstofilter: &windows_core::GUID, connectstopin: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -13868,21 +10214,12 @@ pub trait IFilterMapper_Impl: Sized { } impl windows_core::RuntimeName for IFilterMapper {} impl IFilterMapper_Vtbl { - pub const fn new() -> IFilterMapper_Vtbl - where - Identity: IFilterMapper_Impl, - { - unsafe extern "system" fn RegisterFilter(this: *mut core::ffi::c_void, clsid: windows_core::GUID, name: windows_core::PCWSTR, dwmerit: u32) -> windows_core::HRESULT - where - Identity: IFilterMapper_Impl, - { + pub const fn new() -> IFilterMapper_Vtbl { + unsafe extern "system" fn RegisterFilter(this: *mut core::ffi::c_void, clsid: windows_core::GUID, name: windows_core::PCWSTR, dwmerit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper_Impl::RegisterFilter(this, core::mem::transmute(&clsid), core::mem::transmute(&name), core::mem::transmute_copy(&dwmerit)).into() } - unsafe extern "system" fn RegisterFilterInstance(this: *mut core::ffi::c_void, clsid: windows_core::GUID, name: windows_core::PCWSTR, mrid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFilterMapper_Impl, - { + unsafe extern "system" fn RegisterFilterInstance(this: *mut core::ffi::c_void, clsid: windows_core::GUID, name: windows_core::PCWSTR, mrid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterMapper_Impl::RegisterFilterInstance(this, core::mem::transmute(&clsid), core::mem::transmute(&name)) { Ok(ok__) => { @@ -13892,45 +10229,27 @@ impl IFilterMapper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterPin(this: *mut core::ffi::c_void, filter: windows_core::GUID, name: windows_core::PCWSTR, brendered: super::super::Foundation::BOOL, boutput: super::super::Foundation::BOOL, bzero: super::super::Foundation::BOOL, bmany: super::super::Foundation::BOOL, connectstofilter: windows_core::GUID, connectstopin: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFilterMapper_Impl, - { + unsafe extern "system" fn RegisterPin(this: *mut core::ffi::c_void, filter: windows_core::GUID, name: windows_core::PCWSTR, brendered: super::super::Foundation::BOOL, boutput: super::super::Foundation::BOOL, bzero: super::super::Foundation::BOOL, bmany: super::super::Foundation::BOOL, connectstofilter: windows_core::GUID, connectstopin: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper_Impl::RegisterPin(this, core::mem::transmute(&filter), core::mem::transmute(&name), core::mem::transmute_copy(&brendered), core::mem::transmute_copy(&boutput), core::mem::transmute_copy(&bzero), core::mem::transmute_copy(&bmany), core::mem::transmute(&connectstofilter), core::mem::transmute(&connectstopin)).into() } - unsafe extern "system" fn RegisterPinType(this: *mut core::ffi::c_void, clsfilter: windows_core::GUID, strname: windows_core::PCWSTR, clsmajortype: windows_core::GUID, clssubtype: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFilterMapper_Impl, - { + unsafe extern "system" fn RegisterPinType(this: *mut core::ffi::c_void, clsfilter: windows_core::GUID, strname: windows_core::PCWSTR, clsmajortype: windows_core::GUID, clssubtype: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper_Impl::RegisterPinType(this, core::mem::transmute(&clsfilter), core::mem::transmute(&strname), core::mem::transmute(&clsmajortype), core::mem::transmute(&clssubtype)).into() } - unsafe extern "system" fn UnregisterFilter(this: *mut core::ffi::c_void, filter: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFilterMapper_Impl, - { + unsafe extern "system" fn UnregisterFilter(this: *mut core::ffi::c_void, filter: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper_Impl::UnregisterFilter(this, core::mem::transmute(&filter)).into() } - unsafe extern "system" fn UnregisterFilterInstance(this: *mut core::ffi::c_void, mrid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFilterMapper_Impl, - { + unsafe extern "system" fn UnregisterFilterInstance(this: *mut core::ffi::c_void, mrid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper_Impl::UnregisterFilterInstance(this, core::mem::transmute(&mrid)).into() } - unsafe extern "system" fn UnregisterPin(this: *mut core::ffi::c_void, filter: windows_core::GUID, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFilterMapper_Impl, - { + unsafe extern "system" fn UnregisterPin(this: *mut core::ffi::c_void, filter: windows_core::GUID, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper_Impl::UnregisterPin(this, core::mem::transmute(&filter), core::mem::transmute(&name)).into() } - unsafe extern "system" fn EnumMatchingFilters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, dwmerit: u32, binputneeded: super::super::Foundation::BOOL, clsinmaj: windows_core::GUID, clsinsub: windows_core::GUID, brender: super::super::Foundation::BOOL, boututneeded: super::super::Foundation::BOOL, clsoutmaj: windows_core::GUID, clsoutsub: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFilterMapper_Impl, - { + unsafe extern "system" fn EnumMatchingFilters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, dwmerit: u32, binputneeded: super::super::Foundation::BOOL, clsinmaj: windows_core::GUID, clsinsub: windows_core::GUID, brender: super::super::Foundation::BOOL, boututneeded: super::super::Foundation::BOOL, clsoutmaj: windows_core::GUID, clsoutsub: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper_Impl::EnumMatchingFilters(this, core::mem::transmute_copy(&ppenum), core::mem::transmute_copy(&dwmerit), core::mem::transmute_copy(&binputneeded), core::mem::transmute(&clsinmaj), core::mem::transmute(&clsinsub), core::mem::transmute_copy(&brender), core::mem::transmute_copy(&boututneeded), core::mem::transmute(&clsoutmaj), core::mem::transmute(&clsoutsub)).into() } @@ -13951,7 +10270,7 @@ impl IFilterMapper_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IFilterMapper2_Impl: Sized { +pub trait IFilterMapper2_Impl: Sized + windows_core::IUnknownImpl { fn CreateCategory(&self, clsidcategory: *const windows_core::GUID, dwcategorymerit: u32, description: &windows_core::PCWSTR) -> windows_core::Result<()>; fn UnregisterFilter(&self, pclsidcategory: *const windows_core::GUID, szinstance: &windows_core::PCWSTR, filter: *const windows_core::GUID) -> windows_core::Result<()>; fn RegisterFilter(&self, clsidfilter: *const windows_core::GUID, name: &windows_core::PCWSTR, ppmoniker: *mut Option, pclsidcategory: *const windows_core::GUID, szinstance: &windows_core::PCWSTR, prf2: *const REGFILTER2) -> windows_core::Result<()>; @@ -13961,35 +10280,20 @@ pub trait IFilterMapper2_Impl: Sized { impl windows_core::RuntimeName for IFilterMapper2 {} #[cfg(feature = "Win32_System_Com")] impl IFilterMapper2_Vtbl { - pub const fn new() -> IFilterMapper2_Vtbl - where - Identity: IFilterMapper2_Impl, - { - unsafe extern "system" fn CreateCategory(this: *mut core::ffi::c_void, clsidcategory: *const windows_core::GUID, dwcategorymerit: u32, description: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFilterMapper2_Impl, - { + pub const fn new() -> IFilterMapper2_Vtbl { + unsafe extern "system" fn CreateCategory(this: *mut core::ffi::c_void, clsidcategory: *const windows_core::GUID, dwcategorymerit: u32, description: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper2_Impl::CreateCategory(this, core::mem::transmute_copy(&clsidcategory), core::mem::transmute_copy(&dwcategorymerit), core::mem::transmute(&description)).into() } - unsafe extern "system" fn UnregisterFilter(this: *mut core::ffi::c_void, pclsidcategory: *const windows_core::GUID, szinstance: windows_core::PCWSTR, filter: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFilterMapper2_Impl, - { + unsafe extern "system" fn UnregisterFilter(this: *mut core::ffi::c_void, pclsidcategory: *const windows_core::GUID, szinstance: windows_core::PCWSTR, filter: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper2_Impl::UnregisterFilter(this, core::mem::transmute_copy(&pclsidcategory), core::mem::transmute(&szinstance), core::mem::transmute_copy(&filter)).into() } - unsafe extern "system" fn RegisterFilter(this: *mut core::ffi::c_void, clsidfilter: *const windows_core::GUID, name: windows_core::PCWSTR, ppmoniker: *mut *mut core::ffi::c_void, pclsidcategory: *const windows_core::GUID, szinstance: windows_core::PCWSTR, prf2: *const REGFILTER2) -> windows_core::HRESULT - where - Identity: IFilterMapper2_Impl, - { + unsafe extern "system" fn RegisterFilter(this: *mut core::ffi::c_void, clsidfilter: *const windows_core::GUID, name: windows_core::PCWSTR, ppmoniker: *mut *mut core::ffi::c_void, pclsidcategory: *const windows_core::GUID, szinstance: windows_core::PCWSTR, prf2: *const REGFILTER2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper2_Impl::RegisterFilter(this, core::mem::transmute_copy(&clsidfilter), core::mem::transmute(&name), core::mem::transmute_copy(&ppmoniker), core::mem::transmute_copy(&pclsidcategory), core::mem::transmute(&szinstance), core::mem::transmute_copy(&prf2)).into() } - unsafe extern "system" fn EnumMatchingFilters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, dwflags: u32, bexactmatch: super::super::Foundation::BOOL, dwmerit: u32, binputneeded: super::super::Foundation::BOOL, cinputtypes: u32, pinputtypes: *const windows_core::GUID, pmedin: *const REGPINMEDIUM, ppincategoryin: *const windows_core::GUID, brender: super::super::Foundation::BOOL, boutputneeded: super::super::Foundation::BOOL, coutputtypes: u32, poutputtypes: *const windows_core::GUID, pmedout: *const REGPINMEDIUM, ppincategoryout: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFilterMapper2_Impl, - { + unsafe extern "system" fn EnumMatchingFilters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, dwflags: u32, bexactmatch: super::super::Foundation::BOOL, dwmerit: u32, binputneeded: super::super::Foundation::BOOL, cinputtypes: u32, pinputtypes: *const windows_core::GUID, pmedin: *const REGPINMEDIUM, ppincategoryin: *const windows_core::GUID, brender: super::super::Foundation::BOOL, boutputneeded: super::super::Foundation::BOOL, coutputtypes: u32, poutputtypes: *const windows_core::GUID, pmedout: *const REGPINMEDIUM, ppincategoryout: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper2_Impl::EnumMatchingFilters( this, @@ -14031,14 +10335,8 @@ pub trait IFilterMapper3_Impl: Sized + IFilterMapper2_Impl { impl windows_core::RuntimeName for IFilterMapper3 {} #[cfg(feature = "Win32_System_Com")] impl IFilterMapper3_Vtbl { - pub const fn new() -> IFilterMapper3_Vtbl - where - Identity: IFilterMapper3_Impl, - { - unsafe extern "system" fn GetICreateDevEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterMapper3_Impl, - { + pub const fn new() -> IFilterMapper3_Vtbl { + unsafe extern "system" fn GetICreateDevEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterMapper3_Impl::GetICreateDevEnum(this) { Ok(ok__) => { @@ -14054,7 +10352,7 @@ impl IFilterMapper3_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IFrequencyMap_Impl: Sized { +pub trait IFrequencyMap_Impl: Sized + windows_core::IUnknownImpl { fn get_FrequencyMapping(&self, ulcount: *mut u32, ppullist: *mut *mut u32) -> windows_core::Result<()>; fn put_FrequencyMapping(&self, ulcount: u32, plist: *const u32) -> windows_core::Result<()>; fn CountryCode(&self) -> windows_core::Result; @@ -14064,28 +10362,16 @@ pub trait IFrequencyMap_Impl: Sized { } impl windows_core::RuntimeName for IFrequencyMap {} impl IFrequencyMap_Vtbl { - pub const fn new() -> IFrequencyMap_Vtbl - where - Identity: IFrequencyMap_Impl, - { - unsafe extern "system" fn get_FrequencyMapping(this: *mut core::ffi::c_void, ulcount: *mut u32, ppullist: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IFrequencyMap_Impl, - { + pub const fn new() -> IFrequencyMap_Vtbl { + unsafe extern "system" fn get_FrequencyMapping(this: *mut core::ffi::c_void, ulcount: *mut u32, ppullist: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrequencyMap_Impl::get_FrequencyMapping(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&ppullist)).into() } - unsafe extern "system" fn put_FrequencyMapping(this: *mut core::ffi::c_void, ulcount: u32, plist: *const u32) -> windows_core::HRESULT - where - Identity: IFrequencyMap_Impl, - { + unsafe extern "system" fn put_FrequencyMapping(this: *mut core::ffi::c_void, ulcount: u32, plist: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrequencyMap_Impl::put_FrequencyMapping(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&plist)).into() } - unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, pulcountrycode: *mut u32) -> windows_core::HRESULT - where - Identity: IFrequencyMap_Impl, - { + unsafe extern "system" fn CountryCode(this: *mut core::ffi::c_void, pulcountrycode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFrequencyMap_Impl::CountryCode(this) { Ok(ok__) => { @@ -14095,24 +10381,15 @@ impl IFrequencyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, ulcountrycode: u32) -> windows_core::HRESULT - where - Identity: IFrequencyMap_Impl, - { + unsafe extern "system" fn SetCountryCode(this: *mut core::ffi::c_void, ulcountrycode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrequencyMap_Impl::SetCountryCode(this, core::mem::transmute_copy(&ulcountrycode)).into() } - unsafe extern "system" fn get_DefaultFrequencyMapping(this: *mut core::ffi::c_void, ulcountrycode: u32, pulcount: *mut u32, ppullist: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IFrequencyMap_Impl, - { + unsafe extern "system" fn get_DefaultFrequencyMapping(this: *mut core::ffi::c_void, ulcountrycode: u32, pulcount: *mut u32, ppullist: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrequencyMap_Impl::get_DefaultFrequencyMapping(this, core::mem::transmute_copy(&ulcountrycode), core::mem::transmute_copy(&pulcount), core::mem::transmute_copy(&ppullist)).into() } - unsafe extern "system" fn get_CountryCodeList(this: *mut core::ffi::c_void, pulcount: *mut u32, ppullist: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IFrequencyMap_Impl, - { + unsafe extern "system" fn get_CountryCodeList(this: *mut core::ffi::c_void, pulcount: *mut u32, ppullist: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrequencyMap_Impl::get_CountryCodeList(this, core::mem::transmute_copy(&pulcount), core::mem::transmute_copy(&ppullist)).into() } @@ -14130,7 +10407,7 @@ impl IFrequencyMap_Vtbl { iid == &::IID } } -pub trait IFullScreenVideo_Impl: Sized { +pub trait IFullScreenVideo_Impl: Sized + windows_core::IUnknownImpl { fn CountModes(&self) -> windows_core::Result; fn GetModeInfo(&self, mode: i32, pwidth: *mut i32, pheight: *mut i32, pdepth: *mut i32) -> windows_core::Result<()>; fn GetCurrentMode(&self) -> windows_core::Result; @@ -14151,14 +10428,8 @@ pub trait IFullScreenVideo_Impl: Sized { } impl windows_core::RuntimeName for IFullScreenVideo {} impl IFullScreenVideo_Vtbl { - pub const fn new() -> IFullScreenVideo_Vtbl - where - Identity: IFullScreenVideo_Impl, - { - unsafe extern "system" fn CountModes(this: *mut core::ffi::c_void, pmodes: *mut i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + pub const fn new() -> IFullScreenVideo_Vtbl { + unsafe extern "system" fn CountModes(this: *mut core::ffi::c_void, pmodes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFullScreenVideo_Impl::CountModes(this) { Ok(ok__) => { @@ -14168,17 +10439,11 @@ impl IFullScreenVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModeInfo(this: *mut core::ffi::c_void, mode: i32, pwidth: *mut i32, pheight: *mut i32, pdepth: *mut i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn GetModeInfo(this: *mut core::ffi::c_void, mode: i32, pwidth: *mut i32, pheight: *mut i32, pdepth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::GetModeInfo(this, core::mem::transmute_copy(&mode), core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight), core::mem::transmute_copy(&pdepth)).into() } - unsafe extern "system" fn GetCurrentMode(this: *mut core::ffi::c_void, pmode: *mut i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn GetCurrentMode(this: *mut core::ffi::c_void, pmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFullScreenVideo_Impl::GetCurrentMode(this) { Ok(ok__) => { @@ -14188,31 +10453,19 @@ impl IFullScreenVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsModeAvailable(this: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn IsModeAvailable(this: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::IsModeAvailable(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn IsModeEnabled(this: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn IsModeEnabled(this: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::IsModeEnabled(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, mode: i32, benabled: i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, mode: i32, benabled: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::SetEnabled(this, core::mem::transmute_copy(&mode), core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn GetClipFactor(this: *mut core::ffi::c_void, pclipfactor: *mut i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn GetClipFactor(this: *mut core::ffi::c_void, pclipfactor: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFullScreenVideo_Impl::GetClipFactor(this) { Ok(ok__) => { @@ -14222,24 +10475,15 @@ impl IFullScreenVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClipFactor(this: *mut core::ffi::c_void, clipfactor: i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn SetClipFactor(this: *mut core::ffi::c_void, clipfactor: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::SetClipFactor(this, core::mem::transmute_copy(&clipfactor)).into() } - unsafe extern "system" fn SetMessageDrain(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn SetMessageDrain(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::SetMessageDrain(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn GetMessageDrain(this: *mut core::ffi::c_void, hwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn GetMessageDrain(this: *mut core::ffi::c_void, hwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFullScreenVideo_Impl::GetMessageDrain(this) { Ok(ok__) => { @@ -14249,17 +10493,11 @@ impl IFullScreenVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMonitor(this: *mut core::ffi::c_void, monitor: i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn SetMonitor(this: *mut core::ffi::c_void, monitor: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::SetMonitor(this, core::mem::transmute_copy(&monitor)).into() } - unsafe extern "system" fn GetMonitor(this: *mut core::ffi::c_void, monitor: *mut i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn GetMonitor(this: *mut core::ffi::c_void, monitor: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFullScreenVideo_Impl::GetMonitor(this) { Ok(ok__) => { @@ -14269,31 +10507,19 @@ impl IFullScreenVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HideOnDeactivate(this: *mut core::ffi::c_void, hide: i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn HideOnDeactivate(this: *mut core::ffi::c_void, hide: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::HideOnDeactivate(this, core::mem::transmute_copy(&hide)).into() } - unsafe extern "system" fn IsHideOnDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn IsHideOnDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::IsHideOnDeactivate(this).into() } - unsafe extern "system" fn SetCaption(this: *mut core::ffi::c_void, strcaption: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn SetCaption(this: *mut core::ffi::c_void, strcaption: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::SetCaption(this, core::mem::transmute(&strcaption)).into() } - unsafe extern "system" fn GetCaption(this: *mut core::ffi::c_void, pstrcaption: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn GetCaption(this: *mut core::ffi::c_void, pstrcaption: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFullScreenVideo_Impl::GetCaption(this) { Ok(ok__) => { @@ -14303,10 +10529,7 @@ impl IFullScreenVideo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFullScreenVideo_Impl, - { + unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideo_Impl::SetDefault(this).into() } @@ -14346,35 +10569,20 @@ pub trait IFullScreenVideoEx_Impl: Sized + IFullScreenVideo_Impl { impl windows_core::RuntimeName for IFullScreenVideoEx {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IFullScreenVideoEx_Vtbl { - pub const fn new() -> IFullScreenVideoEx_Vtbl - where - Identity: IFullScreenVideoEx_Impl, - { - unsafe extern "system" fn SetAcceleratorTable(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, haccel: super::super::UI::WindowsAndMessaging::HACCEL) -> windows_core::HRESULT - where - Identity: IFullScreenVideoEx_Impl, - { + pub const fn new() -> IFullScreenVideoEx_Vtbl { + unsafe extern "system" fn SetAcceleratorTable(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, haccel: super::super::UI::WindowsAndMessaging::HACCEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideoEx_Impl::SetAcceleratorTable(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&haccel)).into() } - unsafe extern "system" fn GetAcceleratorTable(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND, phaccel: *mut super::super::UI::WindowsAndMessaging::HACCEL) -> windows_core::HRESULT - where - Identity: IFullScreenVideoEx_Impl, - { + unsafe extern "system" fn GetAcceleratorTable(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND, phaccel: *mut super::super::UI::WindowsAndMessaging::HACCEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideoEx_Impl::GetAcceleratorTable(this, core::mem::transmute_copy(&phwnd), core::mem::transmute_copy(&phaccel)).into() } - unsafe extern "system" fn KeepPixelAspectRatio(this: *mut core::ffi::c_void, keepaspect: i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideoEx_Impl, - { + unsafe extern "system" fn KeepPixelAspectRatio(this: *mut core::ffi::c_void, keepaspect: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFullScreenVideoEx_Impl::KeepPixelAspectRatio(this, core::mem::transmute_copy(&keepaspect)).into() } - unsafe extern "system" fn IsKeepPixelAspectRatio(this: *mut core::ffi::c_void, pkeepaspect: *mut i32) -> windows_core::HRESULT - where - Identity: IFullScreenVideoEx_Impl, - { + unsafe extern "system" fn IsKeepPixelAspectRatio(this: *mut core::ffi::c_void, pkeepaspect: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFullScreenVideoEx_Impl::IsKeepPixelAspectRatio(this) { Ok(ok__) => { @@ -14397,21 +10605,15 @@ impl IFullScreenVideoEx_Vtbl { } } #[cfg(feature = "Win32_System_Registry")] -pub trait IGetCapabilitiesKey_Impl: Sized { +pub trait IGetCapabilitiesKey_Impl: Sized + windows_core::IUnknownImpl { fn GetCapabilitiesKey(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Registry")] impl windows_core::RuntimeName for IGetCapabilitiesKey {} #[cfg(feature = "Win32_System_Registry")] impl IGetCapabilitiesKey_Vtbl { - pub const fn new() -> IGetCapabilitiesKey_Vtbl - where - Identity: IGetCapabilitiesKey_Impl, - { - unsafe extern "system" fn GetCapabilitiesKey(this: *mut core::ffi::c_void, phkey: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IGetCapabilitiesKey_Impl, - { + pub const fn new() -> IGetCapabilitiesKey_Vtbl { + unsafe extern "system" fn GetCapabilitiesKey(this: *mut core::ffi::c_void, phkey: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetCapabilitiesKey_Impl::GetCapabilitiesKey(this) { Ok(ok__) => { @@ -14441,35 +10643,20 @@ pub trait IGraphBuilder_Impl: Sized + IFilterGraph_Impl { impl windows_core::RuntimeName for IGraphBuilder {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl IGraphBuilder_Vtbl { - pub const fn new() -> IGraphBuilder_Vtbl - where - Identity: IGraphBuilder_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void, ppinin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphBuilder_Impl, - { + pub const fn new() -> IGraphBuilder_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void, ppinin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphBuilder_Impl::Connect(this, windows_core::from_raw_borrowed(&ppinout), windows_core::from_raw_borrowed(&ppinin)).into() } - unsafe extern "system" fn Render(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphBuilder_Impl, - { + unsafe extern "system" fn Render(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphBuilder_Impl::Render(this, windows_core::from_raw_borrowed(&ppinout)).into() } - unsafe extern "system" fn RenderFile(this: *mut core::ffi::c_void, lpcwstrfile: windows_core::PCWSTR, lpcwstrplaylist: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IGraphBuilder_Impl, - { + unsafe extern "system" fn RenderFile(this: *mut core::ffi::c_void, lpcwstrfile: windows_core::PCWSTR, lpcwstrplaylist: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphBuilder_Impl::RenderFile(this, core::mem::transmute(&lpcwstrfile), core::mem::transmute(&lpcwstrplaylist)).into() } - unsafe extern "system" fn AddSourceFilter(this: *mut core::ffi::c_void, lpcwstrfilename: windows_core::PCWSTR, lpcwstrfiltername: windows_core::PCWSTR, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphBuilder_Impl, - { + unsafe extern "system" fn AddSourceFilter(this: *mut core::ffi::c_void, lpcwstrfilename: windows_core::PCWSTR, lpcwstrfiltername: windows_core::PCWSTR, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphBuilder_Impl::AddSourceFilter(this, core::mem::transmute(&lpcwstrfilename), core::mem::transmute(&lpcwstrfiltername)) { Ok(ok__) => { @@ -14479,24 +10666,15 @@ impl IGraphBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogFile(this: *mut core::ffi::c_void, hfile: usize) -> windows_core::HRESULT - where - Identity: IGraphBuilder_Impl, - { + unsafe extern "system" fn SetLogFile(this: *mut core::ffi::c_void, hfile: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphBuilder_Impl::SetLogFile(this, core::mem::transmute_copy(&hfile)).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphBuilder_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphBuilder_Impl::Abort(this).into() } - unsafe extern "system" fn ShouldOperationContinue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphBuilder_Impl, - { + unsafe extern "system" fn ShouldOperationContinue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphBuilder_Impl::ShouldOperationContinue(this).into() } @@ -14516,7 +10694,7 @@ impl IGraphBuilder_Vtbl { } } #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] -pub trait IGraphConfig_Impl: Sized { +pub trait IGraphConfig_Impl: Sized + windows_core::IUnknownImpl { fn Reconnect(&self, poutputpin: Option<&IPin>, pinputpin: Option<&IPin>, pmtfirstconnection: *const super::MediaFoundation::AM_MEDIA_TYPE, pusingfilter: Option<&IBaseFilter>, habortevent: super::super::Foundation::HANDLE, dwflags: u32) -> windows_core::Result<()>; fn Reconfigure(&self, pcallback: Option<&IGraphConfigCallback>, pvcontext: *const core::ffi::c_void, dwflags: u32, habortevent: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn AddFilterToCache(&self, pfilter: Option<&IBaseFilter>) -> windows_core::Result<()>; @@ -14532,35 +10710,20 @@ pub trait IGraphConfig_Impl: Sized { impl windows_core::RuntimeName for IGraphConfig {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl IGraphConfig_Vtbl { - pub const fn new() -> IGraphConfig_Vtbl - where - Identity: IGraphConfig_Impl, - { - unsafe extern "system" fn Reconnect(this: *mut core::ffi::c_void, poutputpin: *mut core::ffi::c_void, pinputpin: *mut core::ffi::c_void, pmtfirstconnection: *const super::MediaFoundation::AM_MEDIA_TYPE, pusingfilter: *mut core::ffi::c_void, habortevent: super::super::Foundation::HANDLE, dwflags: u32) -> windows_core::HRESULT - where - Identity: IGraphConfig_Impl, - { + pub const fn new() -> IGraphConfig_Vtbl { + unsafe extern "system" fn Reconnect(this: *mut core::ffi::c_void, poutputpin: *mut core::ffi::c_void, pinputpin: *mut core::ffi::c_void, pmtfirstconnection: *const super::MediaFoundation::AM_MEDIA_TYPE, pusingfilter: *mut core::ffi::c_void, habortevent: super::super::Foundation::HANDLE, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphConfig_Impl::Reconnect(this, windows_core::from_raw_borrowed(&poutputpin), windows_core::from_raw_borrowed(&pinputpin), core::mem::transmute_copy(&pmtfirstconnection), windows_core::from_raw_borrowed(&pusingfilter), core::mem::transmute_copy(&habortevent), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Reconfigure(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void, dwflags: u32, habortevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IGraphConfig_Impl, - { + unsafe extern "system" fn Reconfigure(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void, dwflags: u32, habortevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphConfig_Impl::Reconfigure(this, windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&pvcontext), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&habortevent)).into() } - unsafe extern "system" fn AddFilterToCache(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphConfig_Impl, - { + unsafe extern "system" fn AddFilterToCache(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphConfig_Impl::AddFilterToCache(this, windows_core::from_raw_borrowed(&pfilter)).into() } - unsafe extern "system" fn EnumCacheFilter(this: *mut core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphConfig_Impl, - { + unsafe extern "system" fn EnumCacheFilter(this: *mut core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphConfig_Impl::EnumCacheFilter(this) { Ok(ok__) => { @@ -14570,17 +10733,11 @@ impl IGraphConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFilterFromCache(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphConfig_Impl, - { + unsafe extern "system" fn RemoveFilterFromCache(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphConfig_Impl::RemoveFilterFromCache(this, windows_core::from_raw_borrowed(&pfilter)).into() } - unsafe extern "system" fn GetStartTime(this: *mut core::ffi::c_void, prtstart: *mut i64) -> windows_core::HRESULT - where - Identity: IGraphConfig_Impl, - { + unsafe extern "system" fn GetStartTime(this: *mut core::ffi::c_void, prtstart: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphConfig_Impl::GetStartTime(this) { Ok(ok__) => { @@ -14590,24 +10747,15 @@ impl IGraphConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PushThroughData(this: *mut core::ffi::c_void, poutputpin: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, heventabort: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IGraphConfig_Impl, - { + unsafe extern "system" fn PushThroughData(this: *mut core::ffi::c_void, poutputpin: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, heventabort: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphConfig_Impl::PushThroughData(this, windows_core::from_raw_borrowed(&poutputpin), windows_core::from_raw_borrowed(&pconnection), core::mem::transmute_copy(&heventabort)).into() } - unsafe extern "system" fn SetFilterFlags(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IGraphConfig_Impl, - { + unsafe extern "system" fn SetFilterFlags(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphConfig_Impl::SetFilterFlags(this, windows_core::from_raw_borrowed(&pfilter), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetFilterFlags(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IGraphConfig_Impl, - { + unsafe extern "system" fn GetFilterFlags(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphConfig_Impl::GetFilterFlags(this, windows_core::from_raw_borrowed(&pfilter)) { Ok(ok__) => { @@ -14617,10 +10765,7 @@ impl IGraphConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFilterEx(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IGraphConfig_Impl, - { + unsafe extern "system" fn RemoveFilterEx(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphConfig_Impl::RemoveFilterEx(this, windows_core::from_raw_borrowed(&pfilter), core::mem::transmute_copy(&flags)).into() } @@ -14642,19 +10787,13 @@ impl IGraphConfig_Vtbl { iid == &::IID } } -pub trait IGraphConfigCallback_Impl: Sized { +pub trait IGraphConfigCallback_Impl: Sized + windows_core::IUnknownImpl { fn Reconfigure(&self, pvcontext: *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGraphConfigCallback {} impl IGraphConfigCallback_Vtbl { - pub const fn new() -> IGraphConfigCallback_Vtbl - where - Identity: IGraphConfigCallback_Impl, - { - unsafe extern "system" fn Reconfigure(this: *mut core::ffi::c_void, pvcontext: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IGraphConfigCallback_Impl, - { + pub const fn new() -> IGraphConfigCallback_Vtbl { + unsafe extern "system" fn Reconfigure(this: *mut core::ffi::c_void, pvcontext: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphConfigCallback_Impl::Reconfigure(this, core::mem::transmute_copy(&pvcontext), core::mem::transmute_copy(&dwflags)).into() } @@ -14664,19 +10803,13 @@ impl IGraphConfigCallback_Vtbl { iid == &::IID } } -pub trait IGraphVersion_Impl: Sized { +pub trait IGraphVersion_Impl: Sized + windows_core::IUnknownImpl { fn QueryVersion(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IGraphVersion {} impl IGraphVersion_Vtbl { - pub const fn new() -> IGraphVersion_Vtbl - where - Identity: IGraphVersion_Impl, - { - unsafe extern "system" fn QueryVersion(this: *mut core::ffi::c_void, pversion: *mut i32) -> windows_core::HRESULT - where - Identity: IGraphVersion_Impl, - { + pub const fn new() -> IGraphVersion_Vtbl { + unsafe extern "system" fn QueryVersion(this: *mut core::ffi::c_void, pversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphVersion_Impl::QueryVersion(this) { Ok(ok__) => { @@ -14692,20 +10825,14 @@ impl IGraphVersion_Vtbl { iid == &::IID } } -pub trait IIPDVDec_Impl: Sized { +pub trait IIPDVDec_Impl: Sized + windows_core::IUnknownImpl { fn IPDisplay(&self) -> windows_core::Result; fn SetIPDisplay(&self, displaypix: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IIPDVDec {} impl IIPDVDec_Vtbl { - pub const fn new() -> IIPDVDec_Vtbl - where - Identity: IIPDVDec_Impl, - { - unsafe extern "system" fn IPDisplay(this: *mut core::ffi::c_void, displaypix: *mut i32) -> windows_core::HRESULT - where - Identity: IIPDVDec_Impl, - { + pub const fn new() -> IIPDVDec_Vtbl { + unsafe extern "system" fn IPDisplay(this: *mut core::ffi::c_void, displaypix: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIPDVDec_Impl::IPDisplay(this) { Ok(ok__) => { @@ -14715,10 +10842,7 @@ impl IIPDVDec_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIPDisplay(this: *mut core::ffi::c_void, displaypix: i32) -> windows_core::HRESULT - where - Identity: IIPDVDec_Impl, - { + unsafe extern "system" fn SetIPDisplay(this: *mut core::ffi::c_void, displaypix: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIPDVDec_Impl::SetIPDisplay(this, core::mem::transmute_copy(&displaypix)).into() } @@ -14732,35 +10856,23 @@ impl IIPDVDec_Vtbl { iid == &::IID } } -pub trait IMPEG2PIDMap_Impl: Sized { +pub trait IMPEG2PIDMap_Impl: Sized + windows_core::IUnknownImpl { fn MapPID(&self, culpid: u32, pulpid: *const u32, mediasamplecontent: MEDIA_SAMPLE_CONTENT) -> windows_core::Result<()>; fn UnmapPID(&self, culpid: u32, pulpid: *const u32) -> windows_core::Result<()>; fn EnumPIDMap(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMPEG2PIDMap {} impl IMPEG2PIDMap_Vtbl { - pub const fn new() -> IMPEG2PIDMap_Vtbl - where - Identity: IMPEG2PIDMap_Impl, - { - unsafe extern "system" fn MapPID(this: *mut core::ffi::c_void, culpid: u32, pulpid: *const u32, mediasamplecontent: MEDIA_SAMPLE_CONTENT) -> windows_core::HRESULT - where - Identity: IMPEG2PIDMap_Impl, - { + pub const fn new() -> IMPEG2PIDMap_Vtbl { + unsafe extern "system" fn MapPID(this: *mut core::ffi::c_void, culpid: u32, pulpid: *const u32, mediasamplecontent: MEDIA_SAMPLE_CONTENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2PIDMap_Impl::MapPID(this, core::mem::transmute_copy(&culpid), core::mem::transmute_copy(&pulpid), core::mem::transmute_copy(&mediasamplecontent)).into() } - unsafe extern "system" fn UnmapPID(this: *mut core::ffi::c_void, culpid: u32, pulpid: *const u32) -> windows_core::HRESULT - where - Identity: IMPEG2PIDMap_Impl, - { + unsafe extern "system" fn UnmapPID(this: *mut core::ffi::c_void, culpid: u32, pulpid: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2PIDMap_Impl::UnmapPID(this, core::mem::transmute_copy(&culpid), core::mem::transmute_copy(&pulpid)).into() } - unsafe extern "system" fn EnumPIDMap(this: *mut core::ffi::c_void, pienumpidmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMPEG2PIDMap_Impl, - { + unsafe extern "system" fn EnumPIDMap(this: *mut core::ffi::c_void, pienumpidmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMPEG2PIDMap_Impl::EnumPIDMap(this) { Ok(ok__) => { @@ -14781,35 +10893,23 @@ impl IMPEG2PIDMap_Vtbl { iid == &::IID } } -pub trait IMPEG2StreamIdMap_Impl: Sized { +pub trait IMPEG2StreamIdMap_Impl: Sized + windows_core::IUnknownImpl { fn MapStreamId(&self, ulstreamid: u32, mediasamplecontent: u32, ulsubstreamfiltervalue: u32, idataoffset: i32) -> windows_core::Result<()>; fn UnmapStreamId(&self, culstreamid: u32, pulstreamid: *const u32) -> windows_core::Result<()>; fn EnumStreamIdMap(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMPEG2StreamIdMap {} impl IMPEG2StreamIdMap_Vtbl { - pub const fn new() -> IMPEG2StreamIdMap_Vtbl - where - Identity: IMPEG2StreamIdMap_Impl, - { - unsafe extern "system" fn MapStreamId(this: *mut core::ffi::c_void, ulstreamid: u32, mediasamplecontent: u32, ulsubstreamfiltervalue: u32, idataoffset: i32) -> windows_core::HRESULT - where - Identity: IMPEG2StreamIdMap_Impl, - { + pub const fn new() -> IMPEG2StreamIdMap_Vtbl { + unsafe extern "system" fn MapStreamId(this: *mut core::ffi::c_void, ulstreamid: u32, mediasamplecontent: u32, ulsubstreamfiltervalue: u32, idataoffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2StreamIdMap_Impl::MapStreamId(this, core::mem::transmute_copy(&ulstreamid), core::mem::transmute_copy(&mediasamplecontent), core::mem::transmute_copy(&ulsubstreamfiltervalue), core::mem::transmute_copy(&idataoffset)).into() } - unsafe extern "system" fn UnmapStreamId(this: *mut core::ffi::c_void, culstreamid: u32, pulstreamid: *const u32) -> windows_core::HRESULT - where - Identity: IMPEG2StreamIdMap_Impl, - { + unsafe extern "system" fn UnmapStreamId(this: *mut core::ffi::c_void, culstreamid: u32, pulstreamid: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMPEG2StreamIdMap_Impl::UnmapStreamId(this, core::mem::transmute_copy(&culstreamid), core::mem::transmute_copy(&pulstreamid)).into() } - unsafe extern "system" fn EnumStreamIdMap(this: *mut core::ffi::c_void, ppienumstreamidmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMPEG2StreamIdMap_Impl, - { + unsafe extern "system" fn EnumStreamIdMap(this: *mut core::ffi::c_void, ppienumstreamidmap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMPEG2StreamIdMap_Impl::EnumStreamIdMap(this) { Ok(ok__) => { @@ -14846,35 +10946,20 @@ pub trait IMediaControl_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IMediaControl {} #[cfg(feature = "Win32_System_Com")] impl IMediaControl_Vtbl { - pub const fn new() -> IMediaControl_Vtbl - where - Identity: IMediaControl_Impl, - { - unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaControl_Impl, - { + pub const fn new() -> IMediaControl_Vtbl { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaControl_Impl::Run(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaControl_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaControl_Impl::Pause(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaControl_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaControl_Impl::Stop(this).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, mstimeout: i32, pfs: *mut i32) -> windows_core::HRESULT - where - Identity: IMediaControl_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, mstimeout: i32, pfs: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaControl_Impl::GetState(this, core::mem::transmute_copy(&mstimeout)) { Ok(ok__) => { @@ -14884,17 +10969,11 @@ impl IMediaControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RenderFile(this: *mut core::ffi::c_void, strfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaControl_Impl, - { + unsafe extern "system" fn RenderFile(this: *mut core::ffi::c_void, strfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaControl_Impl::RenderFile(this, core::mem::transmute(&strfilename)).into() } - unsafe extern "system" fn AddSourceFilter(this: *mut core::ffi::c_void, strfilename: core::mem::MaybeUninit, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaControl_Impl, - { + unsafe extern "system" fn AddSourceFilter(this: *mut core::ffi::c_void, strfilename: core::mem::MaybeUninit, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaControl_Impl::AddSourceFilter(this, core::mem::transmute(&strfilename)) { Ok(ok__) => { @@ -14904,10 +10983,7 @@ impl IMediaControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FilterCollection(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaControl_Impl, - { + unsafe extern "system" fn FilterCollection(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaControl_Impl::FilterCollection(this) { Ok(ok__) => { @@ -14917,10 +10993,7 @@ impl IMediaControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegFilterCollection(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaControl_Impl, - { + unsafe extern "system" fn RegFilterCollection(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaControl_Impl::RegFilterCollection(this) { Ok(ok__) => { @@ -14930,10 +11003,7 @@ impl IMediaControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StopWhenReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaControl_Impl, - { + unsafe extern "system" fn StopWhenReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaControl_Impl::StopWhenReady(this).into() } @@ -14967,14 +11037,8 @@ pub trait IMediaEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMediaEvent {} #[cfg(feature = "Win32_System_Com")] impl IMediaEvent_Vtbl { - pub const fn new() -> IMediaEvent_Vtbl - where - Identity: IMediaEvent_Impl, - { - unsafe extern "system" fn GetEventHandle(this: *mut core::ffi::c_void, hevent: *mut isize) -> windows_core::HRESULT - where - Identity: IMediaEvent_Impl, - { + pub const fn new() -> IMediaEvent_Vtbl { + unsafe extern "system" fn GetEventHandle(this: *mut core::ffi::c_void, hevent: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaEvent_Impl::GetEventHandle(this) { Ok(ok__) => { @@ -14984,17 +11048,11 @@ impl IMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, leventcode: *mut i32, lparam1: *mut isize, lparam2: *mut isize, mstimeout: i32) -> windows_core::HRESULT - where - Identity: IMediaEvent_Impl, - { + unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, leventcode: *mut i32, lparam1: *mut isize, lparam2: *mut isize, mstimeout: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaEvent_Impl::GetEvent(this, core::mem::transmute_copy(&leventcode), core::mem::transmute_copy(&lparam1), core::mem::transmute_copy(&lparam2), core::mem::transmute_copy(&mstimeout)).into() } - unsafe extern "system" fn WaitForCompletion(this: *mut core::ffi::c_void, mstimeout: i32, pevcode: *mut i32) -> windows_core::HRESULT - where - Identity: IMediaEvent_Impl, - { + unsafe extern "system" fn WaitForCompletion(this: *mut core::ffi::c_void, mstimeout: i32, pevcode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaEvent_Impl::WaitForCompletion(this, core::mem::transmute_copy(&mstimeout)) { Ok(ok__) => { @@ -15004,24 +11062,15 @@ impl IMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CancelDefaultHandling(this: *mut core::ffi::c_void, levcode: i32) -> windows_core::HRESULT - where - Identity: IMediaEvent_Impl, - { + unsafe extern "system" fn CancelDefaultHandling(this: *mut core::ffi::c_void, levcode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaEvent_Impl::CancelDefaultHandling(this, core::mem::transmute_copy(&levcode)).into() } - unsafe extern "system" fn RestoreDefaultHandling(this: *mut core::ffi::c_void, levcode: i32) -> windows_core::HRESULT - where - Identity: IMediaEvent_Impl, - { + unsafe extern "system" fn RestoreDefaultHandling(this: *mut core::ffi::c_void, levcode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaEvent_Impl::RestoreDefaultHandling(this, core::mem::transmute_copy(&levcode)).into() } - unsafe extern "system" fn FreeEventParams(this: *mut core::ffi::c_void, levcode: i32, lparam1: isize, lparam2: isize) -> windows_core::HRESULT - where - Identity: IMediaEvent_Impl, - { + unsafe extern "system" fn FreeEventParams(this: *mut core::ffi::c_void, levcode: i32, lparam1: isize, lparam2: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaEvent_Impl::FreeEventParams(this, core::mem::transmute_copy(&levcode), core::mem::transmute_copy(&lparam1), core::mem::transmute_copy(&lparam2)).into() } @@ -15049,28 +11098,16 @@ pub trait IMediaEventEx_Impl: Sized + IMediaEvent_Impl { impl windows_core::RuntimeName for IMediaEventEx {} #[cfg(feature = "Win32_System_Com")] impl IMediaEventEx_Vtbl { - pub const fn new() -> IMediaEventEx_Vtbl - where - Identity: IMediaEventEx_Impl, - { - unsafe extern "system" fn SetNotifyWindow(this: *mut core::ffi::c_void, hwnd: isize, lmsg: i32, linstancedata: isize) -> windows_core::HRESULT - where - Identity: IMediaEventEx_Impl, - { + pub const fn new() -> IMediaEventEx_Vtbl { + unsafe extern "system" fn SetNotifyWindow(this: *mut core::ffi::c_void, hwnd: isize, lmsg: i32, linstancedata: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaEventEx_Impl::SetNotifyWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&lmsg), core::mem::transmute_copy(&linstancedata)).into() } - unsafe extern "system" fn SetNotifyFlags(this: *mut core::ffi::c_void, lnonotifyflags: i32) -> windows_core::HRESULT - where - Identity: IMediaEventEx_Impl, - { + unsafe extern "system" fn SetNotifyFlags(this: *mut core::ffi::c_void, lnonotifyflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaEventEx_Impl::SetNotifyFlags(this, core::mem::transmute_copy(&lnonotifyflags)).into() } - unsafe extern "system" fn GetNotifyFlags(this: *mut core::ffi::c_void, lplnonotifyflags: *mut i32) -> windows_core::HRESULT - where - Identity: IMediaEventEx_Impl, - { + unsafe extern "system" fn GetNotifyFlags(this: *mut core::ffi::c_void, lplnonotifyflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaEventEx_Impl::GetNotifyFlags(this) { Ok(ok__) => { @@ -15091,19 +11128,13 @@ impl IMediaEventEx_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMediaEventSink_Impl: Sized { +pub trait IMediaEventSink_Impl: Sized + windows_core::IUnknownImpl { fn Notify(&self, eventcode: i32, eventparam1: isize, eventparam2: isize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMediaEventSink {} impl IMediaEventSink_Vtbl { - pub const fn new() -> IMediaEventSink_Vtbl - where - Identity: IMediaEventSink_Impl, - { - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, eventcode: i32, eventparam1: isize, eventparam2: isize) -> windows_core::HRESULT - where - Identity: IMediaEventSink_Impl, - { + pub const fn new() -> IMediaEventSink_Vtbl { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, eventcode: i32, eventparam1: isize, eventparam2: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaEventSink_Impl::Notify(this, core::mem::transmute_copy(&eventcode), core::mem::transmute_copy(&eventparam1), core::mem::transmute_copy(&eventparam2)).into() } @@ -15126,35 +11157,20 @@ pub trait IMediaFilter_Impl: Sized + super::super::System::Com::IPersist_Impl { impl windows_core::RuntimeName for IMediaFilter {} #[cfg(feature = "Win32_System_Com")] impl IMediaFilter_Vtbl { - pub const fn new() -> IMediaFilter_Vtbl - where - Identity: IMediaFilter_Impl, - { - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFilter_Impl, - { + pub const fn new() -> IMediaFilter_Vtbl { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaFilter_Impl::Stop(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFilter_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaFilter_Impl::Pause(this).into() } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void, tstart: i64) -> windows_core::HRESULT - where - Identity: IMediaFilter_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void, tstart: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaFilter_Impl::Run(this, core::mem::transmute_copy(&tstart)).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, dwmillisecstimeout: u32, state: *mut FILTER_STATE) -> windows_core::HRESULT - where - Identity: IMediaFilter_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, dwmillisecstimeout: u32, state: *mut FILTER_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaFilter_Impl::GetState(this, core::mem::transmute_copy(&dwmillisecstimeout)) { Ok(ok__) => { @@ -15164,17 +11180,11 @@ impl IMediaFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSyncSource(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFilter_Impl, - { + unsafe extern "system" fn SetSyncSource(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaFilter_Impl::SetSyncSource(this, windows_core::from_raw_borrowed(&pclock)).into() } - unsafe extern "system" fn GetSyncSource(this: *mut core::ffi::c_void, pclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaFilter_Impl, - { + unsafe extern "system" fn GetSyncSource(this: *mut core::ffi::c_void, pclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaFilter_Impl::GetSyncSource(this) { Ok(ok__) => { @@ -15198,7 +11208,7 @@ impl IMediaFilter_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMediaParamInfo_Impl: Sized { +pub trait IMediaParamInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetParamCount(&self) -> windows_core::Result; fn GetParamInfo(&self, dwparamindex: u32, pinfo: *mut MP_PARAMINFO) -> windows_core::Result<()>; fn GetParamText(&self, dwparamindex: u32) -> windows_core::Result<*mut u16>; @@ -15208,14 +11218,8 @@ pub trait IMediaParamInfo_Impl: Sized { } impl windows_core::RuntimeName for IMediaParamInfo {} impl IMediaParamInfo_Vtbl { - pub const fn new() -> IMediaParamInfo_Vtbl - where - Identity: IMediaParamInfo_Impl, - { - unsafe extern "system" fn GetParamCount(this: *mut core::ffi::c_void, pdwparams: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaParamInfo_Impl, - { + pub const fn new() -> IMediaParamInfo_Vtbl { + unsafe extern "system" fn GetParamCount(this: *mut core::ffi::c_void, pdwparams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaParamInfo_Impl::GetParamCount(this) { Ok(ok__) => { @@ -15225,17 +11229,11 @@ impl IMediaParamInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParamInfo(this: *mut core::ffi::c_void, dwparamindex: u32, pinfo: *mut MP_PARAMINFO) -> windows_core::HRESULT - where - Identity: IMediaParamInfo_Impl, - { + unsafe extern "system" fn GetParamInfo(this: *mut core::ffi::c_void, dwparamindex: u32, pinfo: *mut MP_PARAMINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaParamInfo_Impl::GetParamInfo(this, core::mem::transmute_copy(&dwparamindex), core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn GetParamText(this: *mut core::ffi::c_void, dwparamindex: u32, ppwchtext: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IMediaParamInfo_Impl, - { + unsafe extern "system" fn GetParamText(this: *mut core::ffi::c_void, dwparamindex: u32, ppwchtext: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaParamInfo_Impl::GetParamText(this, core::mem::transmute_copy(&dwparamindex)) { Ok(ok__) => { @@ -15245,10 +11243,7 @@ impl IMediaParamInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumTimeFormats(this: *mut core::ffi::c_void, pdwnumtimeformats: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaParamInfo_Impl, - { + unsafe extern "system" fn GetNumTimeFormats(this: *mut core::ffi::c_void, pdwnumtimeformats: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaParamInfo_Impl::GetNumTimeFormats(this) { Ok(ok__) => { @@ -15258,10 +11253,7 @@ impl IMediaParamInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedTimeFormat(this: *mut core::ffi::c_void, dwformatindex: u32, pguidtimeformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMediaParamInfo_Impl, - { + unsafe extern "system" fn GetSupportedTimeFormat(this: *mut core::ffi::c_void, dwformatindex: u32, pguidtimeformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaParamInfo_Impl::GetSupportedTimeFormat(this, core::mem::transmute_copy(&dwformatindex)) { Ok(ok__) => { @@ -15271,10 +11263,7 @@ impl IMediaParamInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentTimeFormat(this: *mut core::ffi::c_void, pguidtimeformat: *mut windows_core::GUID, ptimedata: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaParamInfo_Impl, - { + unsafe extern "system" fn GetCurrentTimeFormat(this: *mut core::ffi::c_void, pguidtimeformat: *mut windows_core::GUID, ptimedata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaParamInfo_Impl::GetCurrentTimeFormat(this, core::mem::transmute_copy(&pguidtimeformat), core::mem::transmute_copy(&ptimedata)).into() } @@ -15292,7 +11281,7 @@ impl IMediaParamInfo_Vtbl { iid == &::IID } } -pub trait IMediaParams_Impl: Sized { +pub trait IMediaParams_Impl: Sized + windows_core::IUnknownImpl { fn GetParam(&self, dwparamindex: u32) -> windows_core::Result; fn SetParam(&self, dwparamindex: u32, value: f32) -> windows_core::Result<()>; fn AddEnvelope(&self, dwparamindex: u32, csegments: u32, penvelopesegments: *const MP_ENVELOPE_SEGMENT) -> windows_core::Result<()>; @@ -15301,14 +11290,8 @@ pub trait IMediaParams_Impl: Sized { } impl windows_core::RuntimeName for IMediaParams {} impl IMediaParams_Vtbl { - pub const fn new() -> IMediaParams_Vtbl - where - Identity: IMediaParams_Impl, - { - unsafe extern "system" fn GetParam(this: *mut core::ffi::c_void, dwparamindex: u32, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: IMediaParams_Impl, - { + pub const fn new() -> IMediaParams_Vtbl { + unsafe extern "system" fn GetParam(this: *mut core::ffi::c_void, dwparamindex: u32, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaParams_Impl::GetParam(this, core::mem::transmute_copy(&dwparamindex)) { Ok(ok__) => { @@ -15318,31 +11301,19 @@ impl IMediaParams_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParam(this: *mut core::ffi::c_void, dwparamindex: u32, value: f32) -> windows_core::HRESULT - where - Identity: IMediaParams_Impl, - { + unsafe extern "system" fn SetParam(this: *mut core::ffi::c_void, dwparamindex: u32, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaParams_Impl::SetParam(this, core::mem::transmute_copy(&dwparamindex), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn AddEnvelope(this: *mut core::ffi::c_void, dwparamindex: u32, csegments: u32, penvelopesegments: *const MP_ENVELOPE_SEGMENT) -> windows_core::HRESULT - where - Identity: IMediaParams_Impl, - { + unsafe extern "system" fn AddEnvelope(this: *mut core::ffi::c_void, dwparamindex: u32, csegments: u32, penvelopesegments: *const MP_ENVELOPE_SEGMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaParams_Impl::AddEnvelope(this, core::mem::transmute_copy(&dwparamindex), core::mem::transmute_copy(&csegments), core::mem::transmute_copy(&penvelopesegments)).into() } - unsafe extern "system" fn FlushEnvelope(this: *mut core::ffi::c_void, dwparamindex: u32, reftimestart: i64, reftimeend: i64) -> windows_core::HRESULT - where - Identity: IMediaParams_Impl, - { + unsafe extern "system" fn FlushEnvelope(this: *mut core::ffi::c_void, dwparamindex: u32, reftimestart: i64, reftimeend: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaParams_Impl::FlushEnvelope(this, core::mem::transmute_copy(&dwparamindex), core::mem::transmute_copy(&reftimestart), core::mem::transmute_copy(&reftimeend)).into() } - unsafe extern "system" fn SetTimeFormat(this: *mut core::ffi::c_void, guidtimeformat: windows_core::GUID, mptimedata: u32) -> windows_core::HRESULT - where - Identity: IMediaParams_Impl, - { + unsafe extern "system" fn SetTimeFormat(this: *mut core::ffi::c_void, guidtimeformat: windows_core::GUID, mptimedata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaParams_Impl::SetTimeFormat(this, core::mem::transmute(&guidtimeformat), core::mem::transmute_copy(&mptimedata)).into() } @@ -15377,14 +11348,8 @@ pub trait IMediaPosition_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IMediaPosition {} #[cfg(feature = "Win32_System_Com")] impl IMediaPosition_Vtbl { - pub const fn new() -> IMediaPosition_Vtbl - where - Identity: IMediaPosition_Impl, - { - unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, plength: *mut f64) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + pub const fn new() -> IMediaPosition_Vtbl { + unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, plength: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaPosition_Impl::Duration(this) { Ok(ok__) => { @@ -15394,17 +11359,11 @@ impl IMediaPosition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, lltime: f64) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, lltime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaPosition_Impl::SetCurrentPosition(this, core::mem::transmute_copy(&lltime)).into() } - unsafe extern "system" fn CurrentPosition(this: *mut core::ffi::c_void, plltime: *mut f64) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + unsafe extern "system" fn CurrentPosition(this: *mut core::ffi::c_void, plltime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaPosition_Impl::CurrentPosition(this) { Ok(ok__) => { @@ -15414,10 +11373,7 @@ impl IMediaPosition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StopTime(this: *mut core::ffi::c_void, plltime: *mut f64) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + unsafe extern "system" fn StopTime(this: *mut core::ffi::c_void, plltime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaPosition_Impl::StopTime(this) { Ok(ok__) => { @@ -15427,17 +11383,11 @@ impl IMediaPosition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStopTime(this: *mut core::ffi::c_void, lltime: f64) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + unsafe extern "system" fn SetStopTime(this: *mut core::ffi::c_void, lltime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaPosition_Impl::SetStopTime(this, core::mem::transmute_copy(&lltime)).into() } - unsafe extern "system" fn PrerollTime(this: *mut core::ffi::c_void, plltime: *mut f64) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + unsafe extern "system" fn PrerollTime(this: *mut core::ffi::c_void, plltime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaPosition_Impl::PrerollTime(this) { Ok(ok__) => { @@ -15447,24 +11397,15 @@ impl IMediaPosition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrerollTime(this: *mut core::ffi::c_void, lltime: f64) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + unsafe extern "system" fn SetPrerollTime(this: *mut core::ffi::c_void, lltime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaPosition_Impl::SetPrerollTime(this, core::mem::transmute_copy(&lltime)).into() } - unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, drate: f64) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, drate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaPosition_Impl::SetRate(this, core::mem::transmute_copy(&drate)).into() } - unsafe extern "system" fn Rate(this: *mut core::ffi::c_void, pdrate: *mut f64) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + unsafe extern "system" fn Rate(this: *mut core::ffi::c_void, pdrate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaPosition_Impl::Rate(this) { Ok(ok__) => { @@ -15474,10 +11415,7 @@ impl IMediaPosition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanSeekForward(this: *mut core::ffi::c_void, pcanseekforward: *mut i32) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + unsafe extern "system" fn CanSeekForward(this: *mut core::ffi::c_void, pcanseekforward: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaPosition_Impl::CanSeekForward(this) { Ok(ok__) => { @@ -15487,10 +11425,7 @@ impl IMediaPosition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanSeekBackward(this: *mut core::ffi::c_void, pcanseekbackward: *mut i32) -> windows_core::HRESULT - where - Identity: IMediaPosition_Impl, - { + unsafe extern "system" fn CanSeekBackward(this: *mut core::ffi::c_void, pcanseekbackward: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaPosition_Impl::CanSeekBackward(this) { Ok(ok__) => { @@ -15527,14 +11462,8 @@ pub trait IMediaPropertyBag_Impl: Sized + super::super::System::Com::StructuredS impl windows_core::RuntimeName for IMediaPropertyBag {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IMediaPropertyBag_Vtbl { - pub const fn new() -> IMediaPropertyBag_Vtbl - where - Identity: IMediaPropertyBag_Impl, - { - unsafe extern "system" fn EnumProperty(this: *mut core::ffi::c_void, iproperty: u32, pvarpropertyname: *mut core::mem::MaybeUninit, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaPropertyBag_Impl, - { + pub const fn new() -> IMediaPropertyBag_Vtbl { + unsafe extern "system" fn EnumProperty(this: *mut core::ffi::c_void, iproperty: u32, pvarpropertyname: *mut core::mem::MaybeUninit, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaPropertyBag_Impl::EnumProperty(this, core::mem::transmute_copy(&iproperty), core::mem::transmute_copy(&pvarpropertyname), core::mem::transmute_copy(&pvarpropertyvalue)).into() } @@ -15548,7 +11477,7 @@ impl IMediaPropertyBag_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IMediaSample_Impl: Sized { +pub trait IMediaSample_Impl: Sized + windows_core::IUnknownImpl { fn GetPointer(&self) -> windows_core::Result<*mut u8>; fn GetSize(&self) -> i32; fn GetTime(&self, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::Result<()>; @@ -15570,14 +11499,8 @@ pub trait IMediaSample_Impl: Sized { impl windows_core::RuntimeName for IMediaSample {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IMediaSample_Vtbl { - pub const fn new() -> IMediaSample_Vtbl - where - Identity: IMediaSample_Impl, - { - unsafe extern "system" fn GetPointer(this: *mut core::ffi::c_void, ppbuffer: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + pub const fn new() -> IMediaSample_Vtbl { + unsafe extern "system" fn GetPointer(this: *mut core::ffi::c_void, ppbuffer: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSample_Impl::GetPointer(this) { Ok(ok__) => { @@ -15587,73 +11510,43 @@ impl IMediaSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void) -> i32 - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::GetSize(this) } - unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::GetTime(this, core::mem::transmute_copy(&ptimestart), core::mem::transmute_copy(&ptimeend)).into() } - unsafe extern "system" fn SetTime(this: *mut core::ffi::c_void, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn SetTime(this: *mut core::ffi::c_void, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::SetTime(this, core::mem::transmute_copy(&ptimestart), core::mem::transmute_copy(&ptimeend)).into() } - unsafe extern "system" fn IsSyncPoint(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn IsSyncPoint(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::IsSyncPoint(this) } - unsafe extern "system" fn SetSyncPoint(this: *mut core::ffi::c_void, bissyncpoint: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn SetSyncPoint(this: *mut core::ffi::c_void, bissyncpoint: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::SetSyncPoint(this, core::mem::transmute_copy(&bissyncpoint)).into() } - unsafe extern "system" fn IsPreroll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn IsPreroll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::IsPreroll(this) } - unsafe extern "system" fn SetPreroll(this: *mut core::ffi::c_void, bispreroll: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn SetPreroll(this: *mut core::ffi::c_void, bispreroll: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::SetPreroll(this, core::mem::transmute_copy(&bispreroll)).into() } - unsafe extern "system" fn GetActualDataLength(this: *mut core::ffi::c_void) -> i32 - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn GetActualDataLength(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::GetActualDataLength(this) } - unsafe extern "system" fn SetActualDataLength(this: *mut core::ffi::c_void, __midl__imediasample0000: i32) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn SetActualDataLength(this: *mut core::ffi::c_void, __midl__imediasample0000: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::SetActualDataLength(this, core::mem::transmute_copy(&__midl__imediasample0000)).into() } - unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, ppmediatype: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, ppmediatype: *mut *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSample_Impl::GetMediaType(this) { Ok(ok__) => { @@ -15663,38 +11556,23 @@ impl IMediaSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::SetMediaType(this, core::mem::transmute_copy(&pmediatype)).into() } - unsafe extern "system" fn IsDiscontinuity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn IsDiscontinuity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::IsDiscontinuity(this) } - unsafe extern "system" fn SetDiscontinuity(this: *mut core::ffi::c_void, bdiscontinuity: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn SetDiscontinuity(this: *mut core::ffi::c_void, bdiscontinuity: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::SetDiscontinuity(this, core::mem::transmute_copy(&bdiscontinuity)).into() } - unsafe extern "system" fn GetMediaTime(this: *mut core::ffi::c_void, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn GetMediaTime(this: *mut core::ffi::c_void, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::GetMediaTime(this, core::mem::transmute_copy(&ptimestart), core::mem::transmute_copy(&ptimeend)).into() } - unsafe extern "system" fn SetMediaTime(this: *mut core::ffi::c_void, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::HRESULT - where - Identity: IMediaSample_Impl, - { + unsafe extern "system" fn SetMediaTime(this: *mut core::ffi::c_void, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::SetMediaTime(this, core::mem::transmute_copy(&ptimestart), core::mem::transmute_copy(&ptimeend)).into() } @@ -15731,21 +11609,12 @@ pub trait IMediaSample2_Impl: Sized + IMediaSample_Impl { impl windows_core::RuntimeName for IMediaSample2 {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IMediaSample2_Vtbl { - pub const fn new() -> IMediaSample2_Vtbl - where - Identity: IMediaSample2_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, cbproperties: u32, pbproperties: *mut u8) -> windows_core::HRESULT - where - Identity: IMediaSample2_Impl, - { + pub const fn new() -> IMediaSample2_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, cbproperties: u32, pbproperties: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample2_Impl::GetProperties(this, core::mem::transmute_copy(&cbproperties), core::mem::transmute_copy(&pbproperties)).into() } - unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, cbproperties: u32, pbproperties: *const u8) -> windows_core::HRESULT - where - Identity: IMediaSample2_Impl, - { + unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, cbproperties: u32, pbproperties: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample2_Impl::SetProperties(this, core::mem::transmute_copy(&cbproperties), core::mem::transmute_copy(&pbproperties)).into() } @@ -15759,19 +11628,13 @@ impl IMediaSample2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMediaSample2Config_Impl: Sized { +pub trait IMediaSample2Config_Impl: Sized + windows_core::IUnknownImpl { fn GetSurface(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMediaSample2Config {} impl IMediaSample2Config_Vtbl { - pub const fn new() -> IMediaSample2Config_Vtbl - where - Identity: IMediaSample2Config_Impl, - { - unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, ppdirect3dsurface9: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaSample2Config_Impl, - { + pub const fn new() -> IMediaSample2Config_Vtbl { + unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, ppdirect3dsurface9: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSample2Config_Impl::GetSurface(this) { Ok(ok__) => { @@ -15787,7 +11650,7 @@ impl IMediaSample2Config_Vtbl { iid == &::IID } } -pub trait IMediaSeeking_Impl: Sized { +pub trait IMediaSeeking_Impl: Sized + windows_core::IUnknownImpl { fn GetCapabilities(&self) -> windows_core::Result; fn CheckCapabilities(&self, pcapabilities: *mut u32) -> windows_core::Result<()>; fn IsFormatSupported(&self, pformat: *const windows_core::GUID) -> windows_core::Result<()>; @@ -15808,14 +11671,8 @@ pub trait IMediaSeeking_Impl: Sized { } impl windows_core::RuntimeName for IMediaSeeking {} impl IMediaSeeking_Vtbl { - pub const fn new() -> IMediaSeeking_Vtbl - where - Identity: IMediaSeeking_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pcapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + pub const fn new() -> IMediaSeeking_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pcapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSeeking_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -15825,24 +11682,15 @@ impl IMediaSeeking_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckCapabilities(this: *mut core::ffi::c_void, pcapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn CheckCapabilities(this: *mut core::ffi::c_void, pcapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSeeking_Impl::CheckCapabilities(this, core::mem::transmute_copy(&pcapabilities)).into() } - unsafe extern "system" fn IsFormatSupported(this: *mut core::ffi::c_void, pformat: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn IsFormatSupported(this: *mut core::ffi::c_void, pformat: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSeeking_Impl::IsFormatSupported(this, core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn QueryPreferredFormat(this: *mut core::ffi::c_void, pformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn QueryPreferredFormat(this: *mut core::ffi::c_void, pformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSeeking_Impl::QueryPreferredFormat(this) { Ok(ok__) => { @@ -15852,10 +11700,7 @@ impl IMediaSeeking_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimeFormat(this: *mut core::ffi::c_void, pformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn GetTimeFormat(this: *mut core::ffi::c_void, pformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSeeking_Impl::GetTimeFormat(this) { Ok(ok__) => { @@ -15865,24 +11710,15 @@ impl IMediaSeeking_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsUsingTimeFormat(this: *mut core::ffi::c_void, pformat: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn IsUsingTimeFormat(this: *mut core::ffi::c_void, pformat: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSeeking_Impl::IsUsingTimeFormat(this, core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn SetTimeFormat(this: *mut core::ffi::c_void, pformat: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn SetTimeFormat(this: *mut core::ffi::c_void, pformat: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSeeking_Impl::SetTimeFormat(this, core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, pduration: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, pduration: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSeeking_Impl::GetDuration(this) { Ok(ok__) => { @@ -15892,10 +11728,7 @@ impl IMediaSeeking_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStopPosition(this: *mut core::ffi::c_void, pstop: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn GetStopPosition(this: *mut core::ffi::c_void, pstop: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSeeking_Impl::GetStopPosition(this) { Ok(ok__) => { @@ -15905,10 +11738,7 @@ impl IMediaSeeking_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, pcurrent: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, pcurrent: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSeeking_Impl::GetCurrentPosition(this) { Ok(ok__) => { @@ -15918,45 +11748,27 @@ impl IMediaSeeking_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertTimeFormat(this: *mut core::ffi::c_void, ptarget: *mut i64, ptargetformat: *const windows_core::GUID, source: i64, psourceformat: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn ConvertTimeFormat(this: *mut core::ffi::c_void, ptarget: *mut i64, ptargetformat: *const windows_core::GUID, source: i64, psourceformat: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSeeking_Impl::ConvertTimeFormat(this, core::mem::transmute_copy(&ptarget), core::mem::transmute_copy(&ptargetformat), core::mem::transmute_copy(&source), core::mem::transmute_copy(&psourceformat)).into() } - unsafe extern "system" fn SetPositions(this: *mut core::ffi::c_void, pcurrent: *mut i64, dwcurrentflags: u32, pstop: *mut i64, dwstopflags: u32) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn SetPositions(this: *mut core::ffi::c_void, pcurrent: *mut i64, dwcurrentflags: u32, pstop: *mut i64, dwstopflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSeeking_Impl::SetPositions(this, core::mem::transmute_copy(&pcurrent), core::mem::transmute_copy(&dwcurrentflags), core::mem::transmute_copy(&pstop), core::mem::transmute_copy(&dwstopflags)).into() } - unsafe extern "system" fn GetPositions(this: *mut core::ffi::c_void, pcurrent: *mut i64, pstop: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn GetPositions(this: *mut core::ffi::c_void, pcurrent: *mut i64, pstop: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSeeking_Impl::GetPositions(this, core::mem::transmute_copy(&pcurrent), core::mem::transmute_copy(&pstop)).into() } - unsafe extern "system" fn GetAvailable(this: *mut core::ffi::c_void, pearliest: *mut i64, platest: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn GetAvailable(this: *mut core::ffi::c_void, pearliest: *mut i64, platest: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSeeking_Impl::GetAvailable(this, core::mem::transmute_copy(&pearliest), core::mem::transmute_copy(&platest)).into() } - unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, drate: f64) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, drate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSeeking_Impl::SetRate(this, core::mem::transmute_copy(&drate)).into() } - unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, pdrate: *mut f64) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, pdrate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSeeking_Impl::GetRate(this) { Ok(ok__) => { @@ -15966,10 +11778,7 @@ impl IMediaSeeking_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreroll(this: *mut core::ffi::c_void, pllpreroll: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaSeeking_Impl, - { + unsafe extern "system" fn GetPreroll(this: *mut core::ffi::c_void, pllpreroll: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaSeeking_Impl::GetPreroll(this) { Ok(ok__) => { @@ -16004,7 +11813,7 @@ impl IMediaSeeking_Vtbl { iid == &::IID } } -pub trait IMediaStream_Impl: Sized { +pub trait IMediaStream_Impl: Sized + windows_core::IUnknownImpl { fn GetMultiMediaStream(&self) -> windows_core::Result; fn GetInformation(&self, ppurposeid: *mut windows_core::GUID, ptype: *mut STREAM_TYPE) -> windows_core::Result<()>; fn SetSameFormat(&self, pstreamthathasdesiredformat: Option<&IMediaStream>, dwflags: u32) -> windows_core::Result<()>; @@ -16014,14 +11823,8 @@ pub trait IMediaStream_Impl: Sized { } impl windows_core::RuntimeName for IMediaStream {} impl IMediaStream_Vtbl { - pub const fn new() -> IMediaStream_Vtbl - where - Identity: IMediaStream_Impl, - { - unsafe extern "system" fn GetMultiMediaStream(this: *mut core::ffi::c_void, ppmultimediastream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaStream_Impl, - { + pub const fn new() -> IMediaStream_Vtbl { + unsafe extern "system" fn GetMultiMediaStream(this: *mut core::ffi::c_void, ppmultimediastream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaStream_Impl::GetMultiMediaStream(this) { Ok(ok__) => { @@ -16031,24 +11834,15 @@ impl IMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInformation(this: *mut core::ffi::c_void, ppurposeid: *mut windows_core::GUID, ptype: *mut STREAM_TYPE) -> windows_core::HRESULT - where - Identity: IMediaStream_Impl, - { + unsafe extern "system" fn GetInformation(this: *mut core::ffi::c_void, ppurposeid: *mut windows_core::GUID, ptype: *mut STREAM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStream_Impl::GetInformation(this, core::mem::transmute_copy(&ppurposeid), core::mem::transmute_copy(&ptype)).into() } - unsafe extern "system" fn SetSameFormat(this: *mut core::ffi::c_void, pstreamthathasdesiredformat: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMediaStream_Impl, - { + unsafe extern "system" fn SetSameFormat(this: *mut core::ffi::c_void, pstreamthathasdesiredformat: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStream_Impl::SetSameFormat(this, windows_core::from_raw_borrowed(&pstreamthathasdesiredformat), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn AllocateSample(this: *mut core::ffi::c_void, dwflags: u32, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaStream_Impl, - { + unsafe extern "system" fn AllocateSample(this: *mut core::ffi::c_void, dwflags: u32, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaStream_Impl::AllocateSample(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -16058,10 +11852,7 @@ impl IMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSharedSample(this: *mut core::ffi::c_void, pexistingsample: *mut core::ffi::c_void, dwflags: u32, ppnewsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaStream_Impl, - { + unsafe extern "system" fn CreateSharedSample(this: *mut core::ffi::c_void, pexistingsample: *mut core::ffi::c_void, dwflags: u32, ppnewsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaStream_Impl::CreateSharedSample(this, windows_core::from_raw_borrowed(&pexistingsample), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -16071,10 +11862,7 @@ impl IMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendEndOfStream(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMediaStream_Impl, - { + unsafe extern "system" fn SendEndOfStream(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStream_Impl::SendEndOfStream(this, core::mem::transmute_copy(&dwflags)).into() } @@ -16108,21 +11896,12 @@ pub trait IMediaStreamFilter_Impl: Sized + IBaseFilter_Impl { impl windows_core::RuntimeName for IMediaStreamFilter {} #[cfg(feature = "Win32_System_Com")] impl IMediaStreamFilter_Vtbl { - pub const fn new() -> IMediaStreamFilter_Vtbl - where - Identity: IMediaStreamFilter_Impl, - { - unsafe extern "system" fn AddMediaStream(this: *mut core::ffi::c_void, pammediastream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaStreamFilter_Impl, - { + pub const fn new() -> IMediaStreamFilter_Vtbl { + unsafe extern "system" fn AddMediaStream(this: *mut core::ffi::c_void, pammediastream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamFilter_Impl::AddMediaStream(this, windows_core::from_raw_borrowed(&pammediastream)).into() } - unsafe extern "system" fn GetMediaStream(this: *mut core::ffi::c_void, idpurpose: *const windows_core::GUID, ppmediastream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaStreamFilter_Impl, - { + unsafe extern "system" fn GetMediaStream(this: *mut core::ffi::c_void, idpurpose: *const windows_core::GUID, ppmediastream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaStreamFilter_Impl::GetMediaStream(this, core::mem::transmute_copy(&idpurpose)) { Ok(ok__) => { @@ -16132,10 +11911,7 @@ impl IMediaStreamFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumMediaStreams(this: *mut core::ffi::c_void, index: i32, ppmediastream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaStreamFilter_Impl, - { + unsafe extern "system" fn EnumMediaStreams(this: *mut core::ffi::c_void, index: i32, ppmediastream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaStreamFilter_Impl::EnumMediaStreams(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -16145,24 +11921,15 @@ impl IMediaStreamFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportSeeking(this: *mut core::ffi::c_void, brenderer: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMediaStreamFilter_Impl, - { + unsafe extern "system" fn SupportSeeking(this: *mut core::ffi::c_void, brenderer: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamFilter_Impl::SupportSeeking(this, core::mem::transmute_copy(&brenderer)).into() } - unsafe extern "system" fn ReferenceTimeToStreamTime(this: *mut core::ffi::c_void, ptime: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaStreamFilter_Impl, - { + unsafe extern "system" fn ReferenceTimeToStreamTime(this: *mut core::ffi::c_void, ptime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamFilter_Impl::ReferenceTimeToStreamTime(this, core::mem::transmute_copy(&ptime)).into() } - unsafe extern "system" fn GetCurrentStreamTime(this: *mut core::ffi::c_void, pcurrentstreamtime: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaStreamFilter_Impl, - { + unsafe extern "system" fn GetCurrentStreamTime(this: *mut core::ffi::c_void, pcurrentstreamtime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaStreamFilter_Impl::GetCurrentStreamTime(this) { Ok(ok__) => { @@ -16172,24 +11939,15 @@ impl IMediaStreamFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WaitUntil(this: *mut core::ffi::c_void, waitstreamtime: i64) -> windows_core::HRESULT - where - Identity: IMediaStreamFilter_Impl, - { + unsafe extern "system" fn WaitUntil(this: *mut core::ffi::c_void, waitstreamtime: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamFilter_Impl::WaitUntil(this, core::mem::transmute_copy(&waitstreamtime)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void, bcanceleos: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMediaStreamFilter_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void, bcanceleos: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamFilter_Impl::Flush(this, core::mem::transmute_copy(&bcanceleos)).into() } - unsafe extern "system" fn EndOfStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaStreamFilter_Impl, - { + unsafe extern "system" fn EndOfStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamFilter_Impl::EndOfStream(this).into() } @@ -16219,14 +11977,8 @@ pub trait IMediaTypeInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IMediaTypeInfo {} #[cfg(feature = "Win32_System_Com")] impl IMediaTypeInfo_Vtbl { - pub const fn new() -> IMediaTypeInfo_Vtbl - where - Identity: IMediaTypeInfo_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, strtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaTypeInfo_Impl, - { + pub const fn new() -> IMediaTypeInfo_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, strtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaTypeInfo_Impl::Type(this) { Ok(ok__) => { @@ -16236,10 +11988,7 @@ impl IMediaTypeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Subtype(this: *mut core::ffi::c_void, strtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMediaTypeInfo_Impl, - { + unsafe extern "system" fn Subtype(this: *mut core::ffi::c_void, strtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaTypeInfo_Impl::Subtype(this) { Ok(ok__) => { @@ -16259,7 +12008,7 @@ impl IMediaTypeInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMemAllocator_Impl: Sized { +pub trait IMemAllocator_Impl: Sized + windows_core::IUnknownImpl { fn SetProperties(&self, prequest: *const ALLOCATOR_PROPERTIES) -> windows_core::Result; fn GetProperties(&self) -> windows_core::Result; fn Commit(&self) -> windows_core::Result<()>; @@ -16269,14 +12018,8 @@ pub trait IMemAllocator_Impl: Sized { } impl windows_core::RuntimeName for IMemAllocator {} impl IMemAllocator_Vtbl { - pub const fn new() -> IMemAllocator_Vtbl - where - Identity: IMemAllocator_Impl, - { - unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, prequest: *const ALLOCATOR_PROPERTIES, pactual: *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT - where - Identity: IMemAllocator_Impl, - { + pub const fn new() -> IMemAllocator_Vtbl { + unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, prequest: *const ALLOCATOR_PROPERTIES, pactual: *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMemAllocator_Impl::SetProperties(this, core::mem::transmute_copy(&prequest)) { Ok(ok__) => { @@ -16286,10 +12029,7 @@ impl IMemAllocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pprops: *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT - where - Identity: IMemAllocator_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pprops: *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMemAllocator_Impl::GetProperties(this) { Ok(ok__) => { @@ -16299,31 +12039,19 @@ impl IMemAllocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMemAllocator_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemAllocator_Impl::Commit(this).into() } - unsafe extern "system" fn Decommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMemAllocator_Impl, - { + unsafe extern "system" fn Decommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemAllocator_Impl::Decommit(this).into() } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, ppbuffer: *mut *mut core::ffi::c_void, pstarttime: *const i64, pendtime: *const i64, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMemAllocator_Impl, - { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, ppbuffer: *mut *mut core::ffi::c_void, pstarttime: *const i64, pendtime: *const i64, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemAllocator_Impl::GetBuffer(this, core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&pstarttime), core::mem::transmute_copy(&pendtime), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn ReleaseBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMemAllocator_Impl, - { + unsafe extern "system" fn ReleaseBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemAllocator_Impl::ReleaseBuffer(this, windows_core::from_raw_borrowed(&pbuffer)).into() } @@ -16347,21 +12075,12 @@ pub trait IMemAllocatorCallbackTemp_Impl: Sized + IMemAllocator_Impl { } impl windows_core::RuntimeName for IMemAllocatorCallbackTemp {} impl IMemAllocatorCallbackTemp_Vtbl { - pub const fn new() -> IMemAllocatorCallbackTemp_Vtbl - where - Identity: IMemAllocatorCallbackTemp_Impl, - { - unsafe extern "system" fn SetNotify(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMemAllocatorCallbackTemp_Impl, - { + pub const fn new() -> IMemAllocatorCallbackTemp_Vtbl { + unsafe extern "system" fn SetNotify(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemAllocatorCallbackTemp_Impl::SetNotify(this, windows_core::from_raw_borrowed(&pnotify)).into() } - unsafe extern "system" fn GetFreeCount(this: *mut core::ffi::c_void, plbuffersfree: *mut i32) -> windows_core::HRESULT - where - Identity: IMemAllocatorCallbackTemp_Impl, - { + unsafe extern "system" fn GetFreeCount(this: *mut core::ffi::c_void, plbuffersfree: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMemAllocatorCallbackTemp_Impl::GetFreeCount(this) { Ok(ok__) => { @@ -16377,19 +12096,13 @@ impl IMemAllocatorCallbackTemp_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMemAllocatorNotifyCallbackTemp_Impl: Sized { +pub trait IMemAllocatorNotifyCallbackTemp_Impl: Sized + windows_core::IUnknownImpl { fn NotifyRelease(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMemAllocatorNotifyCallbackTemp {} impl IMemAllocatorNotifyCallbackTemp_Vtbl { - pub const fn new() -> IMemAllocatorNotifyCallbackTemp_Vtbl - where - Identity: IMemAllocatorNotifyCallbackTemp_Impl, - { - unsafe extern "system" fn NotifyRelease(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMemAllocatorNotifyCallbackTemp_Impl, - { + pub const fn new() -> IMemAllocatorNotifyCallbackTemp_Vtbl { + unsafe extern "system" fn NotifyRelease(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemAllocatorNotifyCallbackTemp_Impl::NotifyRelease(this).into() } @@ -16399,7 +12112,7 @@ impl IMemAllocatorNotifyCallbackTemp_Vtbl { iid == &::IID } } -pub trait IMemInputPin_Impl: Sized { +pub trait IMemInputPin_Impl: Sized + windows_core::IUnknownImpl { fn GetAllocator(&self) -> windows_core::Result; fn NotifyAllocator(&self, pallocator: Option<&IMemAllocator>, breadonly: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetAllocatorRequirements(&self) -> windows_core::Result; @@ -16409,14 +12122,8 @@ pub trait IMemInputPin_Impl: Sized { } impl windows_core::RuntimeName for IMemInputPin {} impl IMemInputPin_Vtbl { - pub const fn new() -> IMemInputPin_Vtbl - where - Identity: IMemInputPin_Impl, - { - unsafe extern "system" fn GetAllocator(this: *mut core::ffi::c_void, ppallocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMemInputPin_Impl, - { + pub const fn new() -> IMemInputPin_Vtbl { + unsafe extern "system" fn GetAllocator(this: *mut core::ffi::c_void, ppallocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMemInputPin_Impl::GetAllocator(this) { Ok(ok__) => { @@ -16426,17 +12133,11 @@ impl IMemInputPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyAllocator(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void, breadonly: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMemInputPin_Impl, - { + unsafe extern "system" fn NotifyAllocator(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void, breadonly: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemInputPin_Impl::NotifyAllocator(this, windows_core::from_raw_borrowed(&pallocator), core::mem::transmute_copy(&breadonly)).into() } - unsafe extern "system" fn GetAllocatorRequirements(this: *mut core::ffi::c_void, pprops: *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT - where - Identity: IMemInputPin_Impl, - { + unsafe extern "system" fn GetAllocatorRequirements(this: *mut core::ffi::c_void, pprops: *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMemInputPin_Impl::GetAllocatorRequirements(this) { Ok(ok__) => { @@ -16446,17 +12147,11 @@ impl IMemInputPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMemInputPin_Impl, - { + unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemInputPin_Impl::Receive(this, windows_core::from_raw_borrowed(&psample)).into() } - unsafe extern "system" fn ReceiveMultiple(this: *mut core::ffi::c_void, psamples: *const *mut core::ffi::c_void, nsamples: i32, nsamplesprocessed: *mut i32) -> windows_core::HRESULT - where - Identity: IMemInputPin_Impl, - { + unsafe extern "system" fn ReceiveMultiple(this: *mut core::ffi::c_void, psamples: *const *mut core::ffi::c_void, nsamples: i32, nsamplesprocessed: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMemInputPin_Impl::ReceiveMultiple(this, core::mem::transmute_copy(&psamples), core::mem::transmute_copy(&nsamples)) { Ok(ok__) => { @@ -16466,10 +12161,7 @@ impl IMemInputPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveCanBlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMemInputPin_Impl, - { + unsafe extern "system" fn ReceiveCanBlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemInputPin_Impl::ReceiveCanBlock(this).into() } @@ -16487,35 +12179,23 @@ impl IMemInputPin_Vtbl { iid == &::IID } } -pub trait IMemoryData_Impl: Sized { +pub trait IMemoryData_Impl: Sized + windows_core::IUnknownImpl { fn SetBuffer(&self, cbsize: u32, pbdata: *const u8, dwflags: u32) -> windows_core::Result<()>; fn GetInfo(&self, pdwlength: *mut u32, ppbdata: *mut *mut u8, pcbactualdata: *mut u32) -> windows_core::Result<()>; fn SetActual(&self, cbdatavalid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMemoryData {} impl IMemoryData_Vtbl { - pub const fn new() -> IMemoryData_Vtbl - where - Identity: IMemoryData_Impl, - { - unsafe extern "system" fn SetBuffer(this: *mut core::ffi::c_void, cbsize: u32, pbdata: *const u8, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMemoryData_Impl, - { + pub const fn new() -> IMemoryData_Vtbl { + unsafe extern "system" fn SetBuffer(this: *mut core::ffi::c_void, cbsize: u32, pbdata: *const u8, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemoryData_Impl::SetBuffer(this, core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pdwlength: *mut u32, ppbdata: *mut *mut u8, pcbactualdata: *mut u32) -> windows_core::HRESULT - where - Identity: IMemoryData_Impl, - { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pdwlength: *mut u32, ppbdata: *mut *mut u8, pcbactualdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemoryData_Impl::GetInfo(this, core::mem::transmute_copy(&pdwlength), core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pcbactualdata)).into() } - unsafe extern "system" fn SetActual(this: *mut core::ffi::c_void, cbdatavalid: u32) -> windows_core::HRESULT - where - Identity: IMemoryData_Impl, - { + unsafe extern "system" fn SetActual(this: *mut core::ffi::c_void, cbdatavalid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemoryData_Impl::SetActual(this, core::mem::transmute_copy(&cbdatavalid)).into() } @@ -16531,7 +12211,7 @@ impl IMemoryData_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IMixerOCX_Impl: Sized { +pub trait IMixerOCX_Impl: Sized + windows_core::IUnknownImpl { fn OnDisplayChange(&self, ulbitsperpixel: u32, ulscreenwidth: u32, ulscreenheight: u32) -> windows_core::Result<()>; fn GetAspectRatio(&self, pdwpictaspectratiox: *mut u32, pdwpictaspectratioy: *mut u32) -> windows_core::Result<()>; fn GetVideoSize(&self, pdwvideowidth: *mut u32, pdwvideoheight: *mut u32) -> windows_core::Result<()>; @@ -16545,35 +12225,20 @@ pub trait IMixerOCX_Impl: Sized { impl windows_core::RuntimeName for IMixerOCX {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IMixerOCX_Vtbl { - pub const fn new() -> IMixerOCX_Vtbl - where - Identity: IMixerOCX_Impl, - { - unsafe extern "system" fn OnDisplayChange(this: *mut core::ffi::c_void, ulbitsperpixel: u32, ulscreenwidth: u32, ulscreenheight: u32) -> windows_core::HRESULT - where - Identity: IMixerOCX_Impl, - { + pub const fn new() -> IMixerOCX_Vtbl { + unsafe extern "system" fn OnDisplayChange(this: *mut core::ffi::c_void, ulbitsperpixel: u32, ulscreenwidth: u32, ulscreenheight: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerOCX_Impl::OnDisplayChange(this, core::mem::transmute_copy(&ulbitsperpixel), core::mem::transmute_copy(&ulscreenwidth), core::mem::transmute_copy(&ulscreenheight)).into() } - unsafe extern "system" fn GetAspectRatio(this: *mut core::ffi::c_void, pdwpictaspectratiox: *mut u32, pdwpictaspectratioy: *mut u32) -> windows_core::HRESULT - where - Identity: IMixerOCX_Impl, - { + unsafe extern "system" fn GetAspectRatio(this: *mut core::ffi::c_void, pdwpictaspectratiox: *mut u32, pdwpictaspectratioy: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerOCX_Impl::GetAspectRatio(this, core::mem::transmute_copy(&pdwpictaspectratiox), core::mem::transmute_copy(&pdwpictaspectratioy)).into() } - unsafe extern "system" fn GetVideoSize(this: *mut core::ffi::c_void, pdwvideowidth: *mut u32, pdwvideoheight: *mut u32) -> windows_core::HRESULT - where - Identity: IMixerOCX_Impl, - { + unsafe extern "system" fn GetVideoSize(this: *mut core::ffi::c_void, pdwvideowidth: *mut u32, pdwvideoheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerOCX_Impl::GetVideoSize(this, core::mem::transmute_copy(&pdwvideowidth), core::mem::transmute_copy(&pdwvideoheight)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IMixerOCX_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMixerOCX_Impl::GetStatus(this) { Ok(ok__) => { @@ -16583,31 +12248,19 @@ impl IMixerOCX_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnDraw(this: *mut core::ffi::c_void, hdcdraw: super::super::Graphics::Gdi::HDC, prcdraw: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMixerOCX_Impl, - { + unsafe extern "system" fn OnDraw(this: *mut core::ffi::c_void, hdcdraw: super::super::Graphics::Gdi::HDC, prcdraw: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerOCX_Impl::OnDraw(this, core::mem::transmute_copy(&hdcdraw), core::mem::transmute_copy(&prcdraw)).into() } - unsafe extern "system" fn SetDrawRegion(this: *mut core::ffi::c_void, lppttopleftsc: *const super::super::Foundation::POINT, prcdrawcc: *const super::super::Foundation::RECT, lprcclip: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMixerOCX_Impl, - { + unsafe extern "system" fn SetDrawRegion(this: *mut core::ffi::c_void, lppttopleftsc: *const super::super::Foundation::POINT, prcdrawcc: *const super::super::Foundation::RECT, lprcclip: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerOCX_Impl::SetDrawRegion(this, core::mem::transmute_copy(&lppttopleftsc), core::mem::transmute_copy(&prcdrawcc), core::mem::transmute_copy(&lprcclip)).into() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pmdns: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMixerOCX_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pmdns: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerOCX_Impl::Advise(this, windows_core::from_raw_borrowed(&pmdns)).into() } - unsafe extern "system" fn UnAdvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMixerOCX_Impl, - { + unsafe extern "system" fn UnAdvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerOCX_Impl::UnAdvise(this).into() } @@ -16627,35 +12280,23 @@ impl IMixerOCX_Vtbl { iid == &::IID } } -pub trait IMixerOCXNotify_Impl: Sized { +pub trait IMixerOCXNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnInvalidateRect(&self, lpcrect: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn OnStatusChange(&self, ulstatusflags: u32) -> windows_core::Result<()>; fn OnDataChange(&self, uldataflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMixerOCXNotify {} impl IMixerOCXNotify_Vtbl { - pub const fn new() -> IMixerOCXNotify_Vtbl - where - Identity: IMixerOCXNotify_Impl, - { - unsafe extern "system" fn OnInvalidateRect(this: *mut core::ffi::c_void, lpcrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMixerOCXNotify_Impl, - { + pub const fn new() -> IMixerOCXNotify_Vtbl { + unsafe extern "system" fn OnInvalidateRect(this: *mut core::ffi::c_void, lpcrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerOCXNotify_Impl::OnInvalidateRect(this, core::mem::transmute_copy(&lpcrect)).into() } - unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, ulstatusflags: u32) -> windows_core::HRESULT - where - Identity: IMixerOCXNotify_Impl, - { + unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, ulstatusflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerOCXNotify_Impl::OnStatusChange(this, core::mem::transmute_copy(&ulstatusflags)).into() } - unsafe extern "system" fn OnDataChange(this: *mut core::ffi::c_void, uldataflags: u32) -> windows_core::HRESULT - where - Identity: IMixerOCXNotify_Impl, - { + unsafe extern "system" fn OnDataChange(this: *mut core::ffi::c_void, uldataflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerOCXNotify_Impl::OnDataChange(this, core::mem::transmute_copy(&uldataflags)).into() } @@ -16670,7 +12311,7 @@ impl IMixerOCXNotify_Vtbl { iid == &::IID } } -pub trait IMixerPinConfig_Impl: Sized { +pub trait IMixerPinConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetRelativePosition(&self, dwleft: u32, dwtop: u32, dwright: u32, dwbottom: u32) -> windows_core::Result<()>; fn GetRelativePosition(&self, pdwleft: *mut u32, pdwtop: *mut u32, pdwright: *mut u32, pdwbottom: *mut u32) -> windows_core::Result<()>; fn SetZOrder(&self, dwzorder: u32) -> windows_core::Result<()>; @@ -16686,91 +12327,52 @@ pub trait IMixerPinConfig_Impl: Sized { } impl windows_core::RuntimeName for IMixerPinConfig {} impl IMixerPinConfig_Vtbl { - pub const fn new() -> IMixerPinConfig_Vtbl - where - Identity: IMixerPinConfig_Impl, - { - unsafe extern "system" fn SetRelativePosition(this: *mut core::ffi::c_void, dwleft: u32, dwtop: u32, dwright: u32, dwbottom: u32) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + pub const fn new() -> IMixerPinConfig_Vtbl { + unsafe extern "system" fn SetRelativePosition(this: *mut core::ffi::c_void, dwleft: u32, dwtop: u32, dwright: u32, dwbottom: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::SetRelativePosition(this, core::mem::transmute_copy(&dwleft), core::mem::transmute_copy(&dwtop), core::mem::transmute_copy(&dwright), core::mem::transmute_copy(&dwbottom)).into() } - unsafe extern "system" fn GetRelativePosition(this: *mut core::ffi::c_void, pdwleft: *mut u32, pdwtop: *mut u32, pdwright: *mut u32, pdwbottom: *mut u32) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn GetRelativePosition(this: *mut core::ffi::c_void, pdwleft: *mut u32, pdwtop: *mut u32, pdwright: *mut u32, pdwbottom: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::GetRelativePosition(this, core::mem::transmute_copy(&pdwleft), core::mem::transmute_copy(&pdwtop), core::mem::transmute_copy(&pdwright), core::mem::transmute_copy(&pdwbottom)).into() } - unsafe extern "system" fn SetZOrder(this: *mut core::ffi::c_void, dwzorder: u32) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn SetZOrder(this: *mut core::ffi::c_void, dwzorder: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::SetZOrder(this, core::mem::transmute_copy(&dwzorder)).into() } - unsafe extern "system" fn GetZOrder(this: *mut core::ffi::c_void, pdwzorder: *mut u32) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn GetZOrder(this: *mut core::ffi::c_void, pdwzorder: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::GetZOrder(this, core::mem::transmute_copy(&pdwzorder)).into() } - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, pcolorkey: *mut COLORKEY) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, pcolorkey: *mut COLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::SetColorKey(this, core::mem::transmute_copy(&pcolorkey)).into() } - unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, pcolorkey: *mut COLORKEY, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, pcolorkey: *mut COLORKEY, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::GetColorKey(this, core::mem::transmute_copy(&pcolorkey), core::mem::transmute_copy(&pcolor)).into() } - unsafe extern "system" fn SetBlendingParameter(this: *mut core::ffi::c_void, dwblendingparameter: u32) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn SetBlendingParameter(this: *mut core::ffi::c_void, dwblendingparameter: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::SetBlendingParameter(this, core::mem::transmute_copy(&dwblendingparameter)).into() } - unsafe extern "system" fn GetBlendingParameter(this: *mut core::ffi::c_void, pdwblendingparameter: *mut u32) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn GetBlendingParameter(this: *mut core::ffi::c_void, pdwblendingparameter: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::GetBlendingParameter(this, core::mem::transmute_copy(&pdwblendingparameter)).into() } - unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, amaspectratiomode: AM_ASPECT_RATIO_MODE) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, amaspectratiomode: AM_ASPECT_RATIO_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::SetAspectRatioMode(this, core::mem::transmute_copy(&amaspectratiomode)).into() } - unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, pamaspectratiomode: *mut AM_ASPECT_RATIO_MODE) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, pamaspectratiomode: *mut AM_ASPECT_RATIO_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::GetAspectRatioMode(this, core::mem::transmute_copy(&pamaspectratiomode)).into() } - unsafe extern "system" fn SetStreamTransparent(this: *mut core::ffi::c_void, bstreamtransparent: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn SetStreamTransparent(this: *mut core::ffi::c_void, bstreamtransparent: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::SetStreamTransparent(this, core::mem::transmute_copy(&bstreamtransparent)).into() } - unsafe extern "system" fn GetStreamTransparent(this: *mut core::ffi::c_void, pbstreamtransparent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMixerPinConfig_Impl, - { + unsafe extern "system" fn GetStreamTransparent(this: *mut core::ffi::c_void, pbstreamtransparent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::GetStreamTransparent(this, core::mem::transmute_copy(&pbstreamtransparent)).into() } @@ -16803,21 +12405,12 @@ pub trait IMixerPinConfig2_Impl: Sized + IMixerPinConfig_Impl { impl windows_core::RuntimeName for IMixerPinConfig2 {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IMixerPinConfig2_Vtbl { - pub const fn new() -> IMixerPinConfig2_Vtbl - where - Identity: IMixerPinConfig2_Impl, - { - unsafe extern "system" fn SetOverlaySurfaceColorControls(this: *mut core::ffi::c_void, pcolorcontrol: *mut super::super::Graphics::DirectDraw::DDCOLORCONTROL) -> windows_core::HRESULT - where - Identity: IMixerPinConfig2_Impl, - { + pub const fn new() -> IMixerPinConfig2_Vtbl { + unsafe extern "system" fn SetOverlaySurfaceColorControls(this: *mut core::ffi::c_void, pcolorcontrol: *mut super::super::Graphics::DirectDraw::DDCOLORCONTROL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig2_Impl::SetOverlaySurfaceColorControls(this, core::mem::transmute_copy(&pcolorcontrol)).into() } - unsafe extern "system" fn GetOverlaySurfaceColorControls(this: *mut core::ffi::c_void, pcolorcontrol: *mut super::super::Graphics::DirectDraw::DDCOLORCONTROL) -> windows_core::HRESULT - where - Identity: IMixerPinConfig2_Impl, - { + unsafe extern "system" fn GetOverlaySurfaceColorControls(this: *mut core::ffi::c_void, pcolorcontrol: *mut super::super::Graphics::DirectDraw::DDCOLORCONTROL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig2_Impl::GetOverlaySurfaceColorControls(this, core::mem::transmute_copy(&pcolorcontrol)).into() } @@ -16832,7 +12425,7 @@ impl IMixerPinConfig2_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IMpeg2Demultiplexer_Impl: Sized { +pub trait IMpeg2Demultiplexer_Impl: Sized + windows_core::IUnknownImpl { fn CreateOutputPin(&self, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE, pszpinname: &windows_core::PCWSTR) -> windows_core::Result; fn SetOutputPinMediaType(&self, pszpinname: &windows_core::PCWSTR, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn DeleteOutputPin(&self, pszpinname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -16841,14 +12434,8 @@ pub trait IMpeg2Demultiplexer_Impl: Sized { impl windows_core::RuntimeName for IMpeg2Demultiplexer {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IMpeg2Demultiplexer_Vtbl { - pub const fn new() -> IMpeg2Demultiplexer_Vtbl - where - Identity: IMpeg2Demultiplexer_Impl, - { - unsafe extern "system" fn CreateOutputPin(this: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE, pszpinname: windows_core::PCWSTR, ppipin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMpeg2Demultiplexer_Impl, - { + pub const fn new() -> IMpeg2Demultiplexer_Vtbl { + unsafe extern "system" fn CreateOutputPin(this: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE, pszpinname: windows_core::PCWSTR, ppipin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMpeg2Demultiplexer_Impl::CreateOutputPin(this, core::mem::transmute_copy(&pmediatype), core::mem::transmute(&pszpinname)) { Ok(ok__) => { @@ -16858,17 +12445,11 @@ impl IMpeg2Demultiplexer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputPinMediaType(this: *mut core::ffi::c_void, pszpinname: windows_core::PCWSTR, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IMpeg2Demultiplexer_Impl, - { + unsafe extern "system" fn SetOutputPinMediaType(this: *mut core::ffi::c_void, pszpinname: windows_core::PCWSTR, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpeg2Demultiplexer_Impl::SetOutputPinMediaType(this, core::mem::transmute(&pszpinname), core::mem::transmute_copy(&pmediatype)).into() } - unsafe extern "system" fn DeleteOutputPin(this: *mut core::ffi::c_void, pszpinname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMpeg2Demultiplexer_Impl, - { + unsafe extern "system" fn DeleteOutputPin(this: *mut core::ffi::c_void, pszpinname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpeg2Demultiplexer_Impl::DeleteOutputPin(this, core::mem::transmute(&pszpinname)).into() } @@ -16884,7 +12465,7 @@ impl IMpeg2Demultiplexer_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait IMpegAudioDecoder_Impl: Sized { +pub trait IMpegAudioDecoder_Impl: Sized + windows_core::IUnknownImpl { fn FrequencyDivider(&self) -> windows_core::Result; fn SetFrequencyDivider(&self, divider: u32) -> windows_core::Result<()>; fn DecoderAccuracy(&self) -> windows_core::Result; @@ -16903,14 +12484,8 @@ pub trait IMpegAudioDecoder_Impl: Sized { impl windows_core::RuntimeName for IMpegAudioDecoder {} #[cfg(feature = "Win32_Media_Audio")] impl IMpegAudioDecoder_Vtbl { - pub const fn new() -> IMpegAudioDecoder_Vtbl - where - Identity: IMpegAudioDecoder_Impl, - { - unsafe extern "system" fn FrequencyDivider(this: *mut core::ffi::c_void, pdivider: *mut u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + pub const fn new() -> IMpegAudioDecoder_Vtbl { + unsafe extern "system" fn FrequencyDivider(this: *mut core::ffi::c_void, pdivider: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMpegAudioDecoder_Impl::FrequencyDivider(this) { Ok(ok__) => { @@ -16920,17 +12495,11 @@ impl IMpegAudioDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrequencyDivider(this: *mut core::ffi::c_void, divider: u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn SetFrequencyDivider(this: *mut core::ffi::c_void, divider: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpegAudioDecoder_Impl::SetFrequencyDivider(this, core::mem::transmute_copy(÷r)).into() } - unsafe extern "system" fn DecoderAccuracy(this: *mut core::ffi::c_void, paccuracy: *mut u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn DecoderAccuracy(this: *mut core::ffi::c_void, paccuracy: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMpegAudioDecoder_Impl::DecoderAccuracy(this) { Ok(ok__) => { @@ -16940,17 +12509,11 @@ impl IMpegAudioDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDecoderAccuracy(this: *mut core::ffi::c_void, accuracy: u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn SetDecoderAccuracy(this: *mut core::ffi::c_void, accuracy: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpegAudioDecoder_Impl::SetDecoderAccuracy(this, core::mem::transmute_copy(&accuracy)).into() } - unsafe extern "system" fn Stereo(this: *mut core::ffi::c_void, pstereo: *mut u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn Stereo(this: *mut core::ffi::c_void, pstereo: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMpegAudioDecoder_Impl::Stereo(this) { Ok(ok__) => { @@ -16960,17 +12523,11 @@ impl IMpegAudioDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStereo(this: *mut core::ffi::c_void, stereo: u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn SetStereo(this: *mut core::ffi::c_void, stereo: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpegAudioDecoder_Impl::SetStereo(this, core::mem::transmute_copy(&stereo)).into() } - unsafe extern "system" fn DecoderWordSize(this: *mut core::ffi::c_void, pwordsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn DecoderWordSize(this: *mut core::ffi::c_void, pwordsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMpegAudioDecoder_Impl::DecoderWordSize(this) { Ok(ok__) => { @@ -16980,17 +12537,11 @@ impl IMpegAudioDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDecoderWordSize(this: *mut core::ffi::c_void, wordsize: u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn SetDecoderWordSize(this: *mut core::ffi::c_void, wordsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpegAudioDecoder_Impl::SetDecoderWordSize(this, core::mem::transmute_copy(&wordsize)).into() } - unsafe extern "system" fn IntegerDecode(this: *mut core::ffi::c_void, pintdecode: *mut u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn IntegerDecode(this: *mut core::ffi::c_void, pintdecode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMpegAudioDecoder_Impl::IntegerDecode(this) { Ok(ok__) => { @@ -17000,31 +12551,19 @@ impl IMpegAudioDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIntegerDecode(this: *mut core::ffi::c_void, intdecode: u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn SetIntegerDecode(this: *mut core::ffi::c_void, intdecode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpegAudioDecoder_Impl::SetIntegerDecode(this, core::mem::transmute_copy(&intdecode)).into() } - unsafe extern "system" fn DualMode(this: *mut core::ffi::c_void, pintdecode: *mut u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn DualMode(this: *mut core::ffi::c_void, pintdecode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpegAudioDecoder_Impl::DualMode(this, core::mem::transmute_copy(&pintdecode)).into() } - unsafe extern "system" fn SetDualMode(this: *mut core::ffi::c_void, intdecode: u32) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn SetDualMode(this: *mut core::ffi::c_void, intdecode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpegAudioDecoder_Impl::SetDualMode(this, core::mem::transmute_copy(&intdecode)).into() } - unsafe extern "system" fn AudioFormat(this: *mut core::ffi::c_void, lpfmt: *mut MPEG1WAVEFORMAT) -> windows_core::HRESULT - where - Identity: IMpegAudioDecoder_Impl, - { + unsafe extern "system" fn AudioFormat(this: *mut core::ffi::c_void, lpfmt: *mut MPEG1WAVEFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMpegAudioDecoder_Impl::AudioFormat(this, core::mem::transmute_copy(&lpfmt)).into() } @@ -17049,7 +12588,7 @@ impl IMpegAudioDecoder_Vtbl { iid == &::IID } } -pub trait IMultiMediaStream_Impl: Sized { +pub trait IMultiMediaStream_Impl: Sized + windows_core::IUnknownImpl { fn GetInformation(&self, pdwflags: *mut MMSSF_GET_INFORMATION_FLAGS, pstreamtype: *mut STREAM_TYPE) -> windows_core::Result<()>; fn GetMediaStream(&self, idpurpose: *const windows_core::GUID) -> windows_core::Result; fn EnumMediaStreams(&self, index: i32) -> windows_core::Result; @@ -17062,21 +12601,12 @@ pub trait IMultiMediaStream_Impl: Sized { } impl windows_core::RuntimeName for IMultiMediaStream {} impl IMultiMediaStream_Vtbl { - pub const fn new() -> IMultiMediaStream_Vtbl - where - Identity: IMultiMediaStream_Impl, - { - unsafe extern "system" fn GetInformation(this: *mut core::ffi::c_void, pdwflags: *mut MMSSF_GET_INFORMATION_FLAGS, pstreamtype: *mut STREAM_TYPE) -> windows_core::HRESULT - where - Identity: IMultiMediaStream_Impl, - { + pub const fn new() -> IMultiMediaStream_Vtbl { + unsafe extern "system" fn GetInformation(this: *mut core::ffi::c_void, pdwflags: *mut MMSSF_GET_INFORMATION_FLAGS, pstreamtype: *mut STREAM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiMediaStream_Impl::GetInformation(this, core::mem::transmute_copy(&pdwflags), core::mem::transmute_copy(&pstreamtype)).into() } - unsafe extern "system" fn GetMediaStream(this: *mut core::ffi::c_void, idpurpose: *const windows_core::GUID, ppmediastream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiMediaStream_Impl, - { + unsafe extern "system" fn GetMediaStream(this: *mut core::ffi::c_void, idpurpose: *const windows_core::GUID, ppmediastream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiMediaStream_Impl::GetMediaStream(this, core::mem::transmute_copy(&idpurpose)) { Ok(ok__) => { @@ -17086,10 +12616,7 @@ impl IMultiMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumMediaStreams(this: *mut core::ffi::c_void, index: i32, ppmediastream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiMediaStream_Impl, - { + unsafe extern "system" fn EnumMediaStreams(this: *mut core::ffi::c_void, index: i32, ppmediastream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiMediaStream_Impl::EnumMediaStreams(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -17099,10 +12626,7 @@ impl IMultiMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pcurrentstate: *mut STREAM_STATE) -> windows_core::HRESULT - where - Identity: IMultiMediaStream_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pcurrentstate: *mut STREAM_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiMediaStream_Impl::GetState(this) { Ok(ok__) => { @@ -17112,17 +12636,11 @@ impl IMultiMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, newstate: STREAM_STATE) -> windows_core::HRESULT - where - Identity: IMultiMediaStream_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, newstate: STREAM_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiMediaStream_Impl::SetState(this, core::mem::transmute_copy(&newstate)).into() } - unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, pcurrenttime: *mut i64) -> windows_core::HRESULT - where - Identity: IMultiMediaStream_Impl, - { + unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, pcurrenttime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiMediaStream_Impl::GetTime(this) { Ok(ok__) => { @@ -17132,10 +12650,7 @@ impl IMultiMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, pduration: *mut i64) -> windows_core::HRESULT - where - Identity: IMultiMediaStream_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, pduration: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiMediaStream_Impl::GetDuration(this) { Ok(ok__) => { @@ -17145,17 +12660,11 @@ impl IMultiMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, seektime: i64) -> windows_core::HRESULT - where - Identity: IMultiMediaStream_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, seektime: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiMediaStream_Impl::Seek(this, core::mem::transmute_copy(&seektime)).into() } - unsafe extern "system" fn GetEndOfStreamEventHandle(this: *mut core::ffi::c_void, pheos: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IMultiMediaStream_Impl, - { + unsafe extern "system" fn GetEndOfStreamEventHandle(this: *mut core::ffi::c_void, pheos: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiMediaStream_Impl::GetEndOfStreamEventHandle(this) { Ok(ok__) => { @@ -17183,7 +12692,7 @@ impl IMultiMediaStream_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IOverlay_Impl: Sized { +pub trait IOverlay_Impl: Sized + windows_core::IUnknownImpl { fn GetPalette(&self, pdwcolors: *mut u32, pppalette: *mut *mut super::super::Graphics::Gdi::PALETTEENTRY) -> windows_core::Result<()>; fn SetPalette(&self, dwcolors: u32, ppalette: *const super::super::Graphics::Gdi::PALETTEENTRY) -> windows_core::Result<()>; fn GetDefaultColorKey(&self) -> windows_core::Result; @@ -17199,28 +12708,16 @@ pub trait IOverlay_Impl: Sized { impl windows_core::RuntimeName for IOverlay {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IOverlay_Vtbl { - pub const fn new() -> IOverlay_Vtbl - where - Identity: IOverlay_Impl, - { - unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, pdwcolors: *mut u32, pppalette: *mut *mut super::super::Graphics::Gdi::PALETTEENTRY) -> windows_core::HRESULT - where - Identity: IOverlay_Impl, - { + pub const fn new() -> IOverlay_Vtbl { + unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, pdwcolors: *mut u32, pppalette: *mut *mut super::super::Graphics::Gdi::PALETTEENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlay_Impl::GetPalette(this, core::mem::transmute_copy(&pdwcolors), core::mem::transmute_copy(&pppalette)).into() } - unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, dwcolors: u32, ppalette: *const super::super::Graphics::Gdi::PALETTEENTRY) -> windows_core::HRESULT - where - Identity: IOverlay_Impl, - { + unsafe extern "system" fn SetPalette(this: *mut core::ffi::c_void, dwcolors: u32, ppalette: *const super::super::Graphics::Gdi::PALETTEENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlay_Impl::SetPalette(this, core::mem::transmute_copy(&dwcolors), core::mem::transmute_copy(&ppalette)).into() } - unsafe extern "system" fn GetDefaultColorKey(this: *mut core::ffi::c_void, pcolorkey: *mut COLORKEY) -> windows_core::HRESULT - where - Identity: IOverlay_Impl, - { + unsafe extern "system" fn GetDefaultColorKey(this: *mut core::ffi::c_void, pcolorkey: *mut COLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOverlay_Impl::GetDefaultColorKey(this) { Ok(ok__) => { @@ -17230,10 +12727,7 @@ impl IOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, pcolorkey: *mut COLORKEY) -> windows_core::HRESULT - where - Identity: IOverlay_Impl, - { + unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, pcolorkey: *mut COLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOverlay_Impl::GetColorKey(this) { Ok(ok__) => { @@ -17243,17 +12737,11 @@ impl IOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, pcolorkey: *mut COLORKEY) -> windows_core::HRESULT - where - Identity: IOverlay_Impl, - { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, pcolorkey: *mut COLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlay_Impl::SetColorKey(this, core::mem::transmute_copy(&pcolorkey)).into() } - unsafe extern "system" fn GetWindowHandle(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IOverlay_Impl, - { + unsafe extern "system" fn GetWindowHandle(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOverlay_Impl::GetWindowHandle(this) { Ok(ok__) => { @@ -17263,31 +12751,19 @@ impl IOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClipList(this: *mut core::ffi::c_void, psourcerect: *mut super::super::Foundation::RECT, pdestinationrect: *mut super::super::Foundation::RECT, pprgndata: *mut *mut super::super::Graphics::Gdi::RGNDATA) -> windows_core::HRESULT - where - Identity: IOverlay_Impl, - { + unsafe extern "system" fn GetClipList(this: *mut core::ffi::c_void, psourcerect: *mut super::super::Foundation::RECT, pdestinationrect: *mut super::super::Foundation::RECT, pprgndata: *mut *mut super::super::Graphics::Gdi::RGNDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlay_Impl::GetClipList(this, core::mem::transmute_copy(&psourcerect), core::mem::transmute_copy(&pdestinationrect), core::mem::transmute_copy(&pprgndata)).into() } - unsafe extern "system" fn GetVideoPosition(this: *mut core::ffi::c_void, psourcerect: *mut super::super::Foundation::RECT, pdestinationrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOverlay_Impl, - { + unsafe extern "system" fn GetVideoPosition(this: *mut core::ffi::c_void, psourcerect: *mut super::super::Foundation::RECT, pdestinationrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlay_Impl::GetVideoPosition(this, core::mem::transmute_copy(&psourcerect), core::mem::transmute_copy(&pdestinationrect)).into() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, poverlaynotify: *mut core::ffi::c_void, dwinterests: u32) -> windows_core::HRESULT - where - Identity: IOverlay_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, poverlaynotify: *mut core::ffi::c_void, dwinterests: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlay_Impl::Advise(this, windows_core::from_raw_borrowed(&poverlaynotify), core::mem::transmute_copy(&dwinterests)).into() } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOverlay_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlay_Impl::Unadvise(this).into() } @@ -17310,7 +12786,7 @@ impl IOverlay_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IOverlayNotify_Impl: Sized { +pub trait IOverlayNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnPaletteChange(&self, dwcolors: u32, ppalette: *const super::super::Graphics::Gdi::PALETTEENTRY) -> windows_core::Result<()>; fn OnClipChange(&self, psourcerect: *const super::super::Foundation::RECT, pdestinationrect: *const super::super::Foundation::RECT, prgndata: *const super::super::Graphics::Gdi::RGNDATA) -> windows_core::Result<()>; fn OnColorKeyChange(&self, pcolorkey: *const COLORKEY) -> windows_core::Result<()>; @@ -17320,35 +12796,20 @@ pub trait IOverlayNotify_Impl: Sized { impl windows_core::RuntimeName for IOverlayNotify {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IOverlayNotify_Vtbl { - pub const fn new() -> IOverlayNotify_Vtbl - where - Identity: IOverlayNotify_Impl, - { - unsafe extern "system" fn OnPaletteChange(this: *mut core::ffi::c_void, dwcolors: u32, ppalette: *const super::super::Graphics::Gdi::PALETTEENTRY) -> windows_core::HRESULT - where - Identity: IOverlayNotify_Impl, - { + pub const fn new() -> IOverlayNotify_Vtbl { + unsafe extern "system" fn OnPaletteChange(this: *mut core::ffi::c_void, dwcolors: u32, ppalette: *const super::super::Graphics::Gdi::PALETTEENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlayNotify_Impl::OnPaletteChange(this, core::mem::transmute_copy(&dwcolors), core::mem::transmute_copy(&ppalette)).into() } - unsafe extern "system" fn OnClipChange(this: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestinationrect: *const super::super::Foundation::RECT, prgndata: *const super::super::Graphics::Gdi::RGNDATA) -> windows_core::HRESULT - where - Identity: IOverlayNotify_Impl, - { + unsafe extern "system" fn OnClipChange(this: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestinationrect: *const super::super::Foundation::RECT, prgndata: *const super::super::Graphics::Gdi::RGNDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlayNotify_Impl::OnClipChange(this, core::mem::transmute_copy(&psourcerect), core::mem::transmute_copy(&pdestinationrect), core::mem::transmute_copy(&prgndata)).into() } - unsafe extern "system" fn OnColorKeyChange(this: *mut core::ffi::c_void, pcolorkey: *const COLORKEY) -> windows_core::HRESULT - where - Identity: IOverlayNotify_Impl, - { + unsafe extern "system" fn OnColorKeyChange(this: *mut core::ffi::c_void, pcolorkey: *const COLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlayNotify_Impl::OnColorKeyChange(this, core::mem::transmute_copy(&pcolorkey)).into() } - unsafe extern "system" fn OnPositionChange(this: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestinationrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOverlayNotify_Impl, - { + unsafe extern "system" fn OnPositionChange(this: *mut core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestinationrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlayNotify_Impl::OnPositionChange(this, core::mem::transmute_copy(&psourcerect), core::mem::transmute_copy(&pdestinationrect)).into() } @@ -17372,14 +12833,8 @@ pub trait IOverlayNotify2_Impl: Sized + IOverlayNotify_Impl { impl windows_core::RuntimeName for IOverlayNotify2 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IOverlayNotify2_Vtbl { - pub const fn new() -> IOverlayNotify2_Vtbl - where - Identity: IOverlayNotify2_Impl, - { - unsafe extern "system" fn OnDisplayChange(this: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT - where - Identity: IOverlayNotify2_Impl, - { + pub const fn new() -> IOverlayNotify2_Vtbl { + unsafe extern "system" fn OnDisplayChange(this: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOverlayNotify2_Impl::OnDisplayChange(this, core::mem::transmute_copy(&hmonitor)).into() } @@ -17399,28 +12854,16 @@ pub trait IPersistMediaPropertyBag_Impl: Sized + super::super::System::Com::IPer impl windows_core::RuntimeName for IPersistMediaPropertyBag {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IPersistMediaPropertyBag_Vtbl { - pub const fn new() -> IPersistMediaPropertyBag_Vtbl - where - Identity: IPersistMediaPropertyBag_Impl, - { - unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistMediaPropertyBag_Impl, - { + pub const fn new() -> IPersistMediaPropertyBag_Vtbl { + unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMediaPropertyBag_Impl::InitNew(this).into() } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, perrorlog: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistMediaPropertyBag_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, perrorlog: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMediaPropertyBag_Impl::Load(this, windows_core::from_raw_borrowed(&ppropbag), windows_core::from_raw_borrowed(&perrorlog)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPersistMediaPropertyBag_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMediaPropertyBag_Impl::Save(this, windows_core::from_raw_borrowed(&ppropbag), core::mem::transmute_copy(&fcleardirty), core::mem::transmute_copy(&fsaveallproperties)).into() } @@ -17436,7 +12879,7 @@ impl IPersistMediaPropertyBag_Vtbl { } } #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] -pub trait IPin_Impl: Sized { +pub trait IPin_Impl: Sized + windows_core::IUnknownImpl { fn Connect(&self, preceivepin: Option<&IPin>, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn ReceiveConnection(&self, pconnector: Option<&IPin>, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn Disconnect(&self) -> windows_core::Result<()>; @@ -17457,35 +12900,20 @@ pub trait IPin_Impl: Sized { impl windows_core::RuntimeName for IPin {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] impl IPin_Vtbl { - pub const fn new() -> IPin_Vtbl - where - Identity: IPin_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, preceivepin: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + pub const fn new() -> IPin_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, preceivepin: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::Connect(this, windows_core::from_raw_borrowed(&preceivepin), core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn ReceiveConnection(this: *mut core::ffi::c_void, pconnector: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn ReceiveConnection(this: *mut core::ffi::c_void, pconnector: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::ReceiveConnection(this, windows_core::from_raw_borrowed(&pconnector), core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::Disconnect(this).into() } - unsafe extern "system" fn ConnectedTo(this: *mut core::ffi::c_void, ppin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn ConnectedTo(this: *mut core::ffi::c_void, ppin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPin_Impl::ConnectedTo(this) { Ok(ok__) => { @@ -17495,24 +12923,15 @@ impl IPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectionMediaType(this: *mut core::ffi::c_void, pmt: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn ConnectionMediaType(this: *mut core::ffi::c_void, pmt: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::ConnectionMediaType(this, core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn QueryPinInfo(this: *mut core::ffi::c_void, pinfo: *mut PIN_INFO) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn QueryPinInfo(this: *mut core::ffi::c_void, pinfo: *mut PIN_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::QueryPinInfo(this, core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn QueryDirection(this: *mut core::ffi::c_void, ppindir: *mut PIN_DIRECTION) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn QueryDirection(this: *mut core::ffi::c_void, ppindir: *mut PIN_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPin_Impl::QueryDirection(this) { Ok(ok__) => { @@ -17522,10 +12941,7 @@ impl IPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryId(this: *mut core::ffi::c_void, id: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn QueryId(this: *mut core::ffi::c_void, id: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPin_Impl::QueryId(this) { Ok(ok__) => { @@ -17535,17 +12951,11 @@ impl IPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryAccept(this: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn QueryAccept(this: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::QueryAccept(this, core::mem::transmute_copy(&pmt)) } - unsafe extern "system" fn EnumMediaTypes(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn EnumMediaTypes(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPin_Impl::EnumMediaTypes(this) { Ok(ok__) => { @@ -17555,38 +12965,23 @@ impl IPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryInternalConnections(this: *mut core::ffi::c_void, appin: *mut *mut core::ffi::c_void, npin: *mut u32) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn QueryInternalConnections(this: *mut core::ffi::c_void, appin: *mut *mut core::ffi::c_void, npin: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::QueryInternalConnections(this, core::mem::transmute_copy(&appin), core::mem::transmute_copy(&npin)).into() } - unsafe extern "system" fn EndOfStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn EndOfStream(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::EndOfStream(this).into() } - unsafe extern "system" fn BeginFlush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn BeginFlush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::BeginFlush(this).into() } - unsafe extern "system" fn EndFlush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn EndFlush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::EndFlush(this).into() } - unsafe extern "system" fn NewSegment(this: *mut core::ffi::c_void, tstart: i64, tstop: i64, drate: f64) -> windows_core::HRESULT - where - Identity: IPin_Impl, - { + unsafe extern "system" fn NewSegment(this: *mut core::ffi::c_void, tstart: i64, tstop: i64, drate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPin_Impl::NewSegment(this, core::mem::transmute_copy(&tstart), core::mem::transmute_copy(&tstop), core::mem::transmute_copy(&drate)).into() } @@ -17614,7 +13009,7 @@ impl IPin_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IPinConnection_Impl: Sized { +pub trait IPinConnection_Impl: Sized + windows_core::IUnknownImpl { fn DynamicQueryAccept(&self, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn NotifyEndOfStream(&self, hnotifyevent: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn IsEndPin(&self) -> windows_core::HRESULT; @@ -17624,35 +13019,20 @@ pub trait IPinConnection_Impl: Sized { impl windows_core::RuntimeName for IPinConnection {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IPinConnection_Vtbl { - pub const fn new() -> IPinConnection_Vtbl - where - Identity: IPinConnection_Impl, - { - unsafe extern "system" fn DynamicQueryAccept(this: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IPinConnection_Impl, - { + pub const fn new() -> IPinConnection_Vtbl { + unsafe extern "system" fn DynamicQueryAccept(this: *mut core::ffi::c_void, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPinConnection_Impl::DynamicQueryAccept(this, core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn NotifyEndOfStream(this: *mut core::ffi::c_void, hnotifyevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPinConnection_Impl, - { + unsafe extern "system" fn NotifyEndOfStream(this: *mut core::ffi::c_void, hnotifyevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPinConnection_Impl::NotifyEndOfStream(this, core::mem::transmute_copy(&hnotifyevent)).into() } - unsafe extern "system" fn IsEndPin(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinConnection_Impl, - { + unsafe extern "system" fn IsEndPin(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPinConnection_Impl::IsEndPin(this) } - unsafe extern "system" fn DynamicDisconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinConnection_Impl, - { + unsafe extern "system" fn DynamicDisconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPinConnection_Impl::DynamicDisconnect(this).into() } @@ -17668,19 +13048,13 @@ impl IPinConnection_Vtbl { iid == &::IID } } -pub trait IPinFlowControl_Impl: Sized { +pub trait IPinFlowControl_Impl: Sized + windows_core::IUnknownImpl { fn Block(&self, dwblockflags: u32, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPinFlowControl {} impl IPinFlowControl_Vtbl { - pub const fn new() -> IPinFlowControl_Vtbl - where - Identity: IPinFlowControl_Impl, - { - unsafe extern "system" fn Block(this: *mut core::ffi::c_void, dwblockflags: u32, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IPinFlowControl_Impl, - { + pub const fn new() -> IPinFlowControl_Vtbl { + unsafe extern "system" fn Block(this: *mut core::ffi::c_void, dwblockflags: u32, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPinFlowControl_Impl::Block(this, core::mem::transmute_copy(&dwblockflags), core::mem::transmute_copy(&hevent)).into() } @@ -17710,14 +13084,8 @@ pub trait IPinInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IPinInfo {} #[cfg(feature = "Win32_System_Com")] impl IPinInfo_Vtbl { - pub const fn new() -> IPinInfo_Vtbl - where - Identity: IPinInfo_Impl, - { - unsafe extern "system" fn Pin(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + pub const fn new() -> IPinInfo_Vtbl { + unsafe extern "system" fn Pin(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPinInfo_Impl::Pin(this) { Ok(ok__) => { @@ -17727,10 +13095,7 @@ impl IPinInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectedTo(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn ConnectedTo(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPinInfo_Impl::ConnectedTo(this) { Ok(ok__) => { @@ -17740,10 +13105,7 @@ impl IPinInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectionMediaType(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn ConnectionMediaType(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPinInfo_Impl::ConnectionMediaType(this) { Ok(ok__) => { @@ -17753,10 +13115,7 @@ impl IPinInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FilterInfo(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn FilterInfo(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPinInfo_Impl::FilterInfo(this) { Ok(ok__) => { @@ -17766,10 +13125,7 @@ impl IPinInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppunk: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppunk: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPinInfo_Impl::Name(this) { Ok(ok__) => { @@ -17779,10 +13135,7 @@ impl IPinInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, ppdirection: *mut i32) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, ppdirection: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPinInfo_Impl::Direction(this) { Ok(ok__) => { @@ -17792,10 +13145,7 @@ impl IPinInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PinID(this: *mut core::ffi::c_void, strpinid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn PinID(this: *mut core::ffi::c_void, strpinid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPinInfo_Impl::PinID(this) { Ok(ok__) => { @@ -17805,10 +13155,7 @@ impl IPinInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MediaTypes(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn MediaTypes(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPinInfo_Impl::MediaTypes(this) { Ok(ok__) => { @@ -17818,38 +13165,23 @@ impl IPinInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPinInfo_Impl::Connect(this, windows_core::from_raw_borrowed(&ppin)).into() } - unsafe extern "system" fn ConnectDirect(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn ConnectDirect(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPinInfo_Impl::ConnectDirect(this, windows_core::from_raw_borrowed(&ppin)).into() } - unsafe extern "system" fn ConnectWithType(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn ConnectWithType(this: *mut core::ffi::c_void, ppin: *mut core::ffi::c_void, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPinInfo_Impl::ConnectWithType(this, windows_core::from_raw_borrowed(&ppin), windows_core::from_raw_borrowed(&pmediatype)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPinInfo_Impl::Disconnect(this).into() } - unsafe extern "system" fn Render(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPinInfo_Impl, - { + unsafe extern "system" fn Render(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPinInfo_Impl::Render(this).into() } @@ -17874,7 +13206,7 @@ impl IPinInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IQualProp_Impl: Sized { +pub trait IQualProp_Impl: Sized + windows_core::IUnknownImpl { fn FramesDroppedInRenderer(&self) -> windows_core::Result; fn FramesDrawn(&self) -> windows_core::Result; fn AvgFrameRate(&self) -> windows_core::Result; @@ -17884,14 +13216,8 @@ pub trait IQualProp_Impl: Sized { } impl windows_core::RuntimeName for IQualProp {} impl IQualProp_Vtbl { - pub const fn new() -> IQualProp_Vtbl - where - Identity: IQualProp_Impl, - { - unsafe extern "system" fn FramesDroppedInRenderer(this: *mut core::ffi::c_void, pcframes: *mut i32) -> windows_core::HRESULT - where - Identity: IQualProp_Impl, - { + pub const fn new() -> IQualProp_Vtbl { + unsafe extern "system" fn FramesDroppedInRenderer(this: *mut core::ffi::c_void, pcframes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQualProp_Impl::FramesDroppedInRenderer(this) { Ok(ok__) => { @@ -17901,10 +13227,7 @@ impl IQualProp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FramesDrawn(this: *mut core::ffi::c_void, pcframesdrawn: *mut i32) -> windows_core::HRESULT - where - Identity: IQualProp_Impl, - { + unsafe extern "system" fn FramesDrawn(this: *mut core::ffi::c_void, pcframesdrawn: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQualProp_Impl::FramesDrawn(this) { Ok(ok__) => { @@ -17914,10 +13237,7 @@ impl IQualProp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AvgFrameRate(this: *mut core::ffi::c_void, piavgframerate: *mut i32) -> windows_core::HRESULT - where - Identity: IQualProp_Impl, - { + unsafe extern "system" fn AvgFrameRate(this: *mut core::ffi::c_void, piavgframerate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQualProp_Impl::AvgFrameRate(this) { Ok(ok__) => { @@ -17927,10 +13247,7 @@ impl IQualProp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Jitter(this: *mut core::ffi::c_void, ijitter: *mut i32) -> windows_core::HRESULT - where - Identity: IQualProp_Impl, - { + unsafe extern "system" fn Jitter(this: *mut core::ffi::c_void, ijitter: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQualProp_Impl::Jitter(this) { Ok(ok__) => { @@ -17940,10 +13257,7 @@ impl IQualProp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AvgSyncOffset(this: *mut core::ffi::c_void, piavg: *mut i32) -> windows_core::HRESULT - where - Identity: IQualProp_Impl, - { + unsafe extern "system" fn AvgSyncOffset(this: *mut core::ffi::c_void, piavg: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQualProp_Impl::AvgSyncOffset(this) { Ok(ok__) => { @@ -17953,10 +13267,7 @@ impl IQualProp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DevSyncOffset(this: *mut core::ffi::c_void, pidev: *mut i32) -> windows_core::HRESULT - where - Identity: IQualProp_Impl, - { + unsafe extern "system" fn DevSyncOffset(this: *mut core::ffi::c_void, pidev: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQualProp_Impl::DevSyncOffset(this) { Ok(ok__) => { @@ -17981,7 +13292,7 @@ impl IQualProp_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IQualityControl_Impl: Sized { +pub trait IQualityControl_Impl: Sized + windows_core::IUnknownImpl { fn Notify(&self, pself: Option<&IBaseFilter>, q: &Quality) -> windows_core::Result<()>; fn SetSink(&self, piqc: Option<&IQualityControl>) -> windows_core::Result<()>; } @@ -17989,21 +13300,12 @@ pub trait IQualityControl_Impl: Sized { impl windows_core::RuntimeName for IQualityControl {} #[cfg(feature = "Win32_System_Com")] impl IQualityControl_Vtbl { - pub const fn new() -> IQualityControl_Vtbl - where - Identity: IQualityControl_Impl, - { - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, pself: *mut core::ffi::c_void, q: Quality) -> windows_core::HRESULT - where - Identity: IQualityControl_Impl, - { + pub const fn new() -> IQualityControl_Vtbl { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, pself: *mut core::ffi::c_void, q: Quality) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQualityControl_Impl::Notify(this, windows_core::from_raw_borrowed(&pself), core::mem::transmute(&q)).into() } - unsafe extern "system" fn SetSink(this: *mut core::ffi::c_void, piqc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQualityControl_Impl, - { + unsafe extern "system" fn SetSink(this: *mut core::ffi::c_void, piqc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQualityControl_Impl::SetSink(this, windows_core::from_raw_borrowed(&piqc)).into() } @@ -18013,27 +13315,18 @@ impl IQualityControl_Vtbl { iid == &::IID } } -pub trait IQueueCommand_Impl: Sized { +pub trait IQueueCommand_Impl: Sized + windows_core::IUnknownImpl { fn InvokeAtStreamTime(&self, pcmd: *mut Option, time: f64, iid: *const windows_core::GUID, dispidmethod: i32, wflags: i16, cargs: i32, pdispparams: *const windows_core::VARIANT, pvarresult: *mut windows_core::VARIANT, puargerr: *mut i16) -> windows_core::Result<()>; fn InvokeAtPresentationTime(&self, pcmd: *mut Option, time: f64, iid: *const windows_core::GUID, dispidmethod: i32, wflags: i16, cargs: i32, pdispparams: *const windows_core::VARIANT, pvarresult: *mut windows_core::VARIANT, puargerr: *mut i16) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IQueueCommand {} impl IQueueCommand_Vtbl { - pub const fn new() -> IQueueCommand_Vtbl - where - Identity: IQueueCommand_Impl, - { - unsafe extern "system" fn InvokeAtStreamTime(this: *mut core::ffi::c_void, pcmd: *mut *mut core::ffi::c_void, time: f64, iid: *const windows_core::GUID, dispidmethod: i32, wflags: i16, cargs: i32, pdispparams: *const core::mem::MaybeUninit, pvarresult: *mut core::mem::MaybeUninit, puargerr: *mut i16) -> windows_core::HRESULT - where - Identity: IQueueCommand_Impl, - { + pub const fn new() -> IQueueCommand_Vtbl { + unsafe extern "system" fn InvokeAtStreamTime(this: *mut core::ffi::c_void, pcmd: *mut *mut core::ffi::c_void, time: f64, iid: *const windows_core::GUID, dispidmethod: i32, wflags: i16, cargs: i32, pdispparams: *const core::mem::MaybeUninit, pvarresult: *mut core::mem::MaybeUninit, puargerr: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueueCommand_Impl::InvokeAtStreamTime(this, core::mem::transmute_copy(&pcmd), core::mem::transmute_copy(&time), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&dispidmethod), core::mem::transmute_copy(&wflags), core::mem::transmute_copy(&cargs), core::mem::transmute_copy(&pdispparams), core::mem::transmute_copy(&pvarresult), core::mem::transmute_copy(&puargerr)).into() } - unsafe extern "system" fn InvokeAtPresentationTime(this: *mut core::ffi::c_void, pcmd: *mut *mut core::ffi::c_void, time: f64, iid: *const windows_core::GUID, dispidmethod: i32, wflags: i16, cargs: i32, pdispparams: *const core::mem::MaybeUninit, pvarresult: *mut core::mem::MaybeUninit, puargerr: *mut i16) -> windows_core::HRESULT - where - Identity: IQueueCommand_Impl, - { + unsafe extern "system" fn InvokeAtPresentationTime(this: *mut core::ffi::c_void, pcmd: *mut *mut core::ffi::c_void, time: f64, iid: *const windows_core::GUID, dispidmethod: i32, wflags: i16, cargs: i32, pdispparams: *const core::mem::MaybeUninit, pvarresult: *mut core::mem::MaybeUninit, puargerr: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueueCommand_Impl::InvokeAtPresentationTime(this, core::mem::transmute_copy(&pcmd), core::mem::transmute_copy(&time), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&dispidmethod), core::mem::transmute_copy(&wflags), core::mem::transmute_copy(&cargs), core::mem::transmute_copy(&pdispparams), core::mem::transmute_copy(&pvarresult), core::mem::transmute_copy(&puargerr)).into() } @@ -18056,14 +13349,8 @@ pub trait IRegFilterInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IRegFilterInfo {} #[cfg(feature = "Win32_System_Com")] impl IRegFilterInfo_Vtbl { - pub const fn new() -> IRegFilterInfo_Vtbl - where - Identity: IRegFilterInfo_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegFilterInfo_Impl, - { + pub const fn new() -> IRegFilterInfo_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegFilterInfo_Impl::Name(this) { Ok(ok__) => { @@ -18073,10 +13360,7 @@ impl IRegFilterInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegFilterInfo_Impl, - { + unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegFilterInfo_Impl::Filter(this) { Ok(ok__) => { @@ -18092,19 +13376,13 @@ impl IRegFilterInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRegisterServiceProvider_Impl: Sized { +pub trait IRegisterServiceProvider_Impl: Sized + windows_core::IUnknownImpl { fn RegisterService(&self, guidservice: *const windows_core::GUID, punkobject: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRegisterServiceProvider {} impl IRegisterServiceProvider_Vtbl { - pub const fn new() -> IRegisterServiceProvider_Vtbl - where - Identity: IRegisterServiceProvider_Impl, - { - unsafe extern "system" fn RegisterService(this: *mut core::ffi::c_void, guidservice: *const windows_core::GUID, punkobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisterServiceProvider_Impl, - { + pub const fn new() -> IRegisterServiceProvider_Vtbl { + unsafe extern "system" fn RegisterService(this: *mut core::ffi::c_void, guidservice: *const windows_core::GUID, punkobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisterServiceProvider_Impl::RegisterService(this, core::mem::transmute_copy(&guidservice), windows_core::from_raw_borrowed(&punkobject)).into() } @@ -18114,27 +13392,18 @@ impl IRegisterServiceProvider_Vtbl { iid == &::IID } } -pub trait IResourceConsumer_Impl: Sized { +pub trait IResourceConsumer_Impl: Sized + windows_core::IUnknownImpl { fn AcquireResource(&self, idresource: i32) -> windows_core::Result<()>; fn ReleaseResource(&self, idresource: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IResourceConsumer {} impl IResourceConsumer_Vtbl { - pub const fn new() -> IResourceConsumer_Vtbl - where - Identity: IResourceConsumer_Impl, - { - unsafe extern "system" fn AcquireResource(this: *mut core::ffi::c_void, idresource: i32) -> windows_core::HRESULT - where - Identity: IResourceConsumer_Impl, - { + pub const fn new() -> IResourceConsumer_Vtbl { + unsafe extern "system" fn AcquireResource(this: *mut core::ffi::c_void, idresource: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceConsumer_Impl::AcquireResource(this, core::mem::transmute_copy(&idresource)).into() } - unsafe extern "system" fn ReleaseResource(this: *mut core::ffi::c_void, idresource: i32) -> windows_core::HRESULT - where - Identity: IResourceConsumer_Impl, - { + unsafe extern "system" fn ReleaseResource(this: *mut core::ffi::c_void, idresource: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceConsumer_Impl::ReleaseResource(this, core::mem::transmute_copy(&idresource)).into() } @@ -18148,7 +13417,7 @@ impl IResourceConsumer_Vtbl { iid == &::IID } } -pub trait IResourceManager_Impl: Sized { +pub trait IResourceManager_Impl: Sized + windows_core::IUnknownImpl { fn Register(&self, pname: &windows_core::PCWSTR, cresource: i32) -> windows_core::Result; fn RegisterGroup(&self, pname: &windows_core::PCWSTR, cresource: i32, paltokens: *const i32) -> windows_core::Result; fn RequestResource(&self, idresource: i32, pfocusobject: Option<&windows_core::IUnknown>, pconsumer: Option<&IResourceConsumer>) -> windows_core::Result<()>; @@ -18160,14 +13429,8 @@ pub trait IResourceManager_Impl: Sized { } impl windows_core::RuntimeName for IResourceManager {} impl IResourceManager_Vtbl { - pub const fn new() -> IResourceManager_Vtbl - where - Identity: IResourceManager_Impl, - { - unsafe extern "system" fn Register(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, cresource: i32, pltoken: *mut i32) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + pub const fn new() -> IResourceManager_Vtbl { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, cresource: i32, pltoken: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IResourceManager_Impl::Register(this, core::mem::transmute(&pname), core::mem::transmute_copy(&cresource)) { Ok(ok__) => { @@ -18177,10 +13440,7 @@ impl IResourceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterGroup(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, cresource: i32, paltokens: *const i32, pltoken: *mut i32) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + unsafe extern "system" fn RegisterGroup(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, cresource: i32, paltokens: *const i32, pltoken: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IResourceManager_Impl::RegisterGroup(this, core::mem::transmute(&pname), core::mem::transmute_copy(&cresource), core::mem::transmute_copy(&paltokens)) { Ok(ok__) => { @@ -18190,45 +13450,27 @@ impl IResourceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestResource(this: *mut core::ffi::c_void, idresource: i32, pfocusobject: *mut core::ffi::c_void, pconsumer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + unsafe extern "system" fn RequestResource(this: *mut core::ffi::c_void, idresource: i32, pfocusobject: *mut core::ffi::c_void, pconsumer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager_Impl::RequestResource(this, core::mem::transmute_copy(&idresource), windows_core::from_raw_borrowed(&pfocusobject), windows_core::from_raw_borrowed(&pconsumer)).into() } - unsafe extern "system" fn NotifyAcquire(this: *mut core::ffi::c_void, idresource: i32, pconsumer: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + unsafe extern "system" fn NotifyAcquire(this: *mut core::ffi::c_void, idresource: i32, pconsumer: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager_Impl::NotifyAcquire(this, core::mem::transmute_copy(&idresource), windows_core::from_raw_borrowed(&pconsumer), core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn NotifyRelease(this: *mut core::ffi::c_void, idresource: i32, pconsumer: *mut core::ffi::c_void, bstillwant: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + unsafe extern "system" fn NotifyRelease(this: *mut core::ffi::c_void, idresource: i32, pconsumer: *mut core::ffi::c_void, bstillwant: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager_Impl::NotifyRelease(this, core::mem::transmute_copy(&idresource), windows_core::from_raw_borrowed(&pconsumer), core::mem::transmute_copy(&bstillwant)).into() } - unsafe extern "system" fn CancelRequest(this: *mut core::ffi::c_void, idresource: i32, pconsumer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + unsafe extern "system" fn CancelRequest(this: *mut core::ffi::c_void, idresource: i32, pconsumer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager_Impl::CancelRequest(this, core::mem::transmute_copy(&idresource), windows_core::from_raw_borrowed(&pconsumer)).into() } - unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void, pfocusobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void, pfocusobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager_Impl::SetFocus(this, windows_core::from_raw_borrowed(&pfocusobject)).into() } - unsafe extern "system" fn ReleaseFocus(this: *mut core::ffi::c_void, pfocusobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + unsafe extern "system" fn ReleaseFocus(this: *mut core::ffi::c_void, pfocusobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager_Impl::ReleaseFocus(this, windows_core::from_raw_borrowed(&pfocusobject)).into() } @@ -18248,19 +13490,13 @@ impl IResourceManager_Vtbl { iid == &::IID } } -pub trait ISeekingPassThru_Impl: Sized { +pub trait ISeekingPassThru_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, bsupportrendering: super::super::Foundation::BOOL, ppin: Option<&IPin>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISeekingPassThru {} impl ISeekingPassThru_Vtbl { - pub const fn new() -> ISeekingPassThru_Vtbl - where - Identity: ISeekingPassThru_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, bsupportrendering: super::super::Foundation::BOOL, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISeekingPassThru_Impl, - { + pub const fn new() -> ISeekingPassThru_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, bsupportrendering: super::super::Foundation::BOOL, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISeekingPassThru_Impl::Init(this, core::mem::transmute_copy(&bsupportrendering), windows_core::from_raw_borrowed(&ppin)).into() } @@ -18270,21 +13506,15 @@ impl ISeekingPassThru_Vtbl { iid == &::IID } } -pub trait ISelector_Impl: Sized { +pub trait ISelector_Impl: Sized + windows_core::IUnknownImpl { fn NumSources(&self) -> windows_core::Result; fn SourceNodeId(&self) -> windows_core::Result; fn SetSourceNodeId(&self, dwpinid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISelector {} impl ISelector_Vtbl { - pub const fn new() -> ISelector_Vtbl - where - Identity: ISelector_Impl, - { - unsafe extern "system" fn NumSources(this: *mut core::ffi::c_void, pdwnumsources: *mut u32) -> windows_core::HRESULT - where - Identity: ISelector_Impl, - { + pub const fn new() -> ISelector_Vtbl { + unsafe extern "system" fn NumSources(this: *mut core::ffi::c_void, pdwnumsources: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelector_Impl::NumSources(this) { Ok(ok__) => { @@ -18294,10 +13524,7 @@ impl ISelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SourceNodeId(this: *mut core::ffi::c_void, pdwpinid: *mut u32) -> windows_core::HRESULT - where - Identity: ISelector_Impl, - { + unsafe extern "system" fn SourceNodeId(this: *mut core::ffi::c_void, pdwpinid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelector_Impl::SourceNodeId(this) { Ok(ok__) => { @@ -18307,10 +13534,7 @@ impl ISelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourceNodeId(this: *mut core::ffi::c_void, dwpinid: u32) -> windows_core::HRESULT - where - Identity: ISelector_Impl, - { + unsafe extern "system" fn SetSourceNodeId(this: *mut core::ffi::c_void, dwpinid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISelector_Impl::SetSourceNodeId(this, core::mem::transmute_copy(&dwpinid)).into() } @@ -18326,21 +13550,15 @@ impl ISelector_Vtbl { } } #[cfg(feature = "Win32_System_Ole")] -pub trait ISpecifyParticularPages_Impl: Sized { +pub trait ISpecifyParticularPages_Impl: Sized + windows_core::IUnknownImpl { fn GetPages(&self, guidwhatpages: *const windows_core::GUID) -> windows_core::Result; } #[cfg(feature = "Win32_System_Ole")] impl windows_core::RuntimeName for ISpecifyParticularPages {} #[cfg(feature = "Win32_System_Ole")] impl ISpecifyParticularPages_Vtbl { - pub const fn new() -> ISpecifyParticularPages_Vtbl - where - Identity: ISpecifyParticularPages_Impl, - { - unsafe extern "system" fn GetPages(this: *mut core::ffi::c_void, guidwhatpages: *const windows_core::GUID, ppages: *mut super::super::System::Ole::CAUUID) -> windows_core::HRESULT - where - Identity: ISpecifyParticularPages_Impl, - { + pub const fn new() -> ISpecifyParticularPages_Vtbl { + unsafe extern "system" fn GetPages(this: *mut core::ffi::c_void, guidwhatpages: *const windows_core::GUID, ppages: *mut super::super::System::Ole::CAUUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpecifyParticularPages_Impl::GetPages(this, core::mem::transmute_copy(&guidwhatpages)) { Ok(ok__) => { @@ -18356,27 +13574,18 @@ impl ISpecifyParticularPages_Vtbl { iid == &::IID } } -pub trait IStreamBuilder_Impl: Sized { +pub trait IStreamBuilder_Impl: Sized + windows_core::IUnknownImpl { fn Render(&self, ppinout: Option<&IPin>, pgraph: Option<&IGraphBuilder>) -> windows_core::Result<()>; fn Backout(&self, ppinout: Option<&IPin>, pgraph: Option<&IGraphBuilder>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IStreamBuilder {} impl IStreamBuilder_Vtbl { - pub const fn new() -> IStreamBuilder_Vtbl - where - Identity: IStreamBuilder_Impl, - { - unsafe extern "system" fn Render(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamBuilder_Impl, - { + pub const fn new() -> IStreamBuilder_Vtbl { + unsafe extern "system" fn Render(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBuilder_Impl::Render(this, windows_core::from_raw_borrowed(&ppinout), windows_core::from_raw_borrowed(&pgraph)).into() } - unsafe extern "system" fn Backout(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamBuilder_Impl, - { + unsafe extern "system" fn Backout(this: *mut core::ffi::c_void, ppinout: *mut core::ffi::c_void, pgraph: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBuilder_Impl::Backout(this, windows_core::from_raw_borrowed(&ppinout), windows_core::from_raw_borrowed(&pgraph)).into() } @@ -18386,7 +13595,7 @@ impl IStreamBuilder_Vtbl { iid == &::IID } } -pub trait IStreamSample_Impl: Sized { +pub trait IStreamSample_Impl: Sized + windows_core::IUnknownImpl { fn GetMediaStream(&self, ppmediastream: *const Option) -> windows_core::Result<()>; fn GetSampleTimes(&self, pstarttime: *mut i64, pendtime: *mut i64, pcurrenttime: *mut i64) -> windows_core::Result<()>; fn SetSampleTimes(&self, pstarttime: *const i64, pendtime: *const i64) -> windows_core::Result<()>; @@ -18395,42 +13604,24 @@ pub trait IStreamSample_Impl: Sized { } impl windows_core::RuntimeName for IStreamSample {} impl IStreamSample_Vtbl { - pub const fn new() -> IStreamSample_Vtbl - where - Identity: IStreamSample_Impl, - { - unsafe extern "system" fn GetMediaStream(this: *mut core::ffi::c_void, ppmediastream: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamSample_Impl, - { + pub const fn new() -> IStreamSample_Vtbl { + unsafe extern "system" fn GetMediaStream(this: *mut core::ffi::c_void, ppmediastream: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamSample_Impl::GetMediaStream(this, core::mem::transmute_copy(&ppmediastream)).into() } - unsafe extern "system" fn GetSampleTimes(this: *mut core::ffi::c_void, pstarttime: *mut i64, pendtime: *mut i64, pcurrenttime: *mut i64) -> windows_core::HRESULT - where - Identity: IStreamSample_Impl, - { + unsafe extern "system" fn GetSampleTimes(this: *mut core::ffi::c_void, pstarttime: *mut i64, pendtime: *mut i64, pcurrenttime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamSample_Impl::GetSampleTimes(this, core::mem::transmute_copy(&pstarttime), core::mem::transmute_copy(&pendtime), core::mem::transmute_copy(&pcurrenttime)).into() } - unsafe extern "system" fn SetSampleTimes(this: *mut core::ffi::c_void, pstarttime: *const i64, pendtime: *const i64) -> windows_core::HRESULT - where - Identity: IStreamSample_Impl, - { + unsafe extern "system" fn SetSampleTimes(this: *mut core::ffi::c_void, pstarttime: *const i64, pendtime: *const i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamSample_Impl::SetSampleTimes(this, core::mem::transmute_copy(&pstarttime), core::mem::transmute_copy(&pendtime)).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, dwflags: u32, hevent: super::super::Foundation::HANDLE, pfnapc: super::super::Foundation::PAPCFUNC, dwapcdata: usize) -> windows_core::HRESULT - where - Identity: IStreamSample_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, dwflags: u32, hevent: super::super::Foundation::HANDLE, pfnapc: super::super::Foundation::PAPCFUNC, dwapcdata: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamSample_Impl::Update(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&hevent), core::mem::transmute_copy(&pfnapc), core::mem::transmute_copy(&dwapcdata)).into() } - unsafe extern "system" fn CompletionStatus(this: *mut core::ffi::c_void, dwflags: u32, dwmilliseconds: u32) -> windows_core::HRESULT - where - Identity: IStreamSample_Impl, - { + unsafe extern "system" fn CompletionStatus(this: *mut core::ffi::c_void, dwflags: u32, dwmilliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamSample_Impl::CompletionStatus(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwmilliseconds)).into() } @@ -18447,20 +13638,14 @@ impl IStreamSample_Vtbl { iid == &::IID } } -pub trait IVMRAspectRatioControl_Impl: Sized { +pub trait IVMRAspectRatioControl_Impl: Sized + windows_core::IUnknownImpl { fn GetAspectRatioMode(&self) -> windows_core::Result; fn SetAspectRatioMode(&self, dwarmode: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVMRAspectRatioControl {} impl IVMRAspectRatioControl_Vtbl { - pub const fn new() -> IVMRAspectRatioControl_Vtbl - where - Identity: IVMRAspectRatioControl_Impl, - { - unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, lpdwarmode: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRAspectRatioControl_Impl, - { + pub const fn new() -> IVMRAspectRatioControl_Vtbl { + unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, lpdwarmode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRAspectRatioControl_Impl::GetAspectRatioMode(this) { Ok(ok__) => { @@ -18470,10 +13655,7 @@ impl IVMRAspectRatioControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, dwarmode: u32) -> windows_core::HRESULT - where - Identity: IVMRAspectRatioControl_Impl, - { + unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, dwarmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRAspectRatioControl_Impl::SetAspectRatioMode(this, core::mem::transmute_copy(&dwarmode)).into() } @@ -18487,20 +13669,14 @@ impl IVMRAspectRatioControl_Vtbl { iid == &::IID } } -pub trait IVMRAspectRatioControl9_Impl: Sized { +pub trait IVMRAspectRatioControl9_Impl: Sized + windows_core::IUnknownImpl { fn GetAspectRatioMode(&self) -> windows_core::Result; fn SetAspectRatioMode(&self, dwarmode: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVMRAspectRatioControl9 {} impl IVMRAspectRatioControl9_Vtbl { - pub const fn new() -> IVMRAspectRatioControl9_Vtbl - where - Identity: IVMRAspectRatioControl9_Impl, - { - unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, lpdwarmode: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRAspectRatioControl9_Impl, - { + pub const fn new() -> IVMRAspectRatioControl9_Vtbl { + unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, lpdwarmode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRAspectRatioControl9_Impl::GetAspectRatioMode(this) { Ok(ok__) => { @@ -18510,10 +13686,7 @@ impl IVMRAspectRatioControl9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, dwarmode: u32) -> windows_core::HRESULT - where - Identity: IVMRAspectRatioControl9_Impl, - { + unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, dwarmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRAspectRatioControl9_Impl::SetAspectRatioMode(this, core::mem::transmute_copy(&dwarmode)).into() } @@ -18527,7 +13700,7 @@ impl IVMRAspectRatioControl9_Vtbl { iid == &::IID } } -pub trait IVMRDeinterlaceControl_Impl: Sized { +pub trait IVMRDeinterlaceControl_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberOfDeinterlaceModes(&self, lpvideodescription: *const VMRVideoDesc, lpdwnumdeinterlacemodes: *mut u32, lpdeinterlacemodes: *mut windows_core::GUID) -> windows_core::Result<()>; fn GetDeinterlaceModeCaps(&self, lpdeinterlacemode: *const windows_core::GUID, lpvideodescription: *const VMRVideoDesc, lpdeinterlacecaps: *mut VMRDeinterlaceCaps) -> windows_core::Result<()>; fn GetDeinterlaceMode(&self, dwstreamid: u32) -> windows_core::Result; @@ -18538,28 +13711,16 @@ pub trait IVMRDeinterlaceControl_Impl: Sized { } impl windows_core::RuntimeName for IVMRDeinterlaceControl {} impl IVMRDeinterlaceControl_Vtbl { - pub const fn new() -> IVMRDeinterlaceControl_Vtbl - where - Identity: IVMRDeinterlaceControl_Impl, - { - unsafe extern "system" fn GetNumberOfDeinterlaceModes(this: *mut core::ffi::c_void, lpvideodescription: *const VMRVideoDesc, lpdwnumdeinterlacemodes: *mut u32, lpdeinterlacemodes: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl_Impl, - { + pub const fn new() -> IVMRDeinterlaceControl_Vtbl { + unsafe extern "system" fn GetNumberOfDeinterlaceModes(this: *mut core::ffi::c_void, lpvideodescription: *const VMRVideoDesc, lpdwnumdeinterlacemodes: *mut u32, lpdeinterlacemodes: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRDeinterlaceControl_Impl::GetNumberOfDeinterlaceModes(this, core::mem::transmute_copy(&lpvideodescription), core::mem::transmute_copy(&lpdwnumdeinterlacemodes), core::mem::transmute_copy(&lpdeinterlacemodes)).into() } - unsafe extern "system" fn GetDeinterlaceModeCaps(this: *mut core::ffi::c_void, lpdeinterlacemode: *const windows_core::GUID, lpvideodescription: *const VMRVideoDesc, lpdeinterlacecaps: *mut VMRDeinterlaceCaps) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl_Impl, - { + unsafe extern "system" fn GetDeinterlaceModeCaps(this: *mut core::ffi::c_void, lpdeinterlacemode: *const windows_core::GUID, lpvideodescription: *const VMRVideoDesc, lpdeinterlacecaps: *mut VMRDeinterlaceCaps) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRDeinterlaceControl_Impl::GetDeinterlaceModeCaps(this, core::mem::transmute_copy(&lpdeinterlacemode), core::mem::transmute_copy(&lpvideodescription), core::mem::transmute_copy(&lpdeinterlacecaps)).into() } - unsafe extern "system" fn GetDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl_Impl, - { + unsafe extern "system" fn GetDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRDeinterlaceControl_Impl::GetDeinterlaceMode(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -18569,17 +13730,11 @@ impl IVMRDeinterlaceControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl_Impl, - { + unsafe extern "system" fn SetDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRDeinterlaceControl_Impl::SetDeinterlaceMode(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&lpdeinterlacemode)).into() } - unsafe extern "system" fn GetDeinterlacePrefs(this: *mut core::ffi::c_void, lpdwdeinterlaceprefs: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl_Impl, - { + unsafe extern "system" fn GetDeinterlacePrefs(this: *mut core::ffi::c_void, lpdwdeinterlaceprefs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRDeinterlaceControl_Impl::GetDeinterlacePrefs(this) { Ok(ok__) => { @@ -18589,17 +13744,11 @@ impl IVMRDeinterlaceControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDeinterlacePrefs(this: *mut core::ffi::c_void, dwdeinterlaceprefs: u32) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl_Impl, - { + unsafe extern "system" fn SetDeinterlacePrefs(this: *mut core::ffi::c_void, dwdeinterlaceprefs: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRDeinterlaceControl_Impl::SetDeinterlacePrefs(this, core::mem::transmute_copy(&dwdeinterlaceprefs)).into() } - unsafe extern "system" fn GetActualDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl_Impl, - { + unsafe extern "system" fn GetActualDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRDeinterlaceControl_Impl::GetActualDeinterlaceMode(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -18624,7 +13773,7 @@ impl IVMRDeinterlaceControl_Vtbl { iid == &::IID } } -pub trait IVMRDeinterlaceControl9_Impl: Sized { +pub trait IVMRDeinterlaceControl9_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberOfDeinterlaceModes(&self, lpvideodescription: *const VMR9VideoDesc, lpdwnumdeinterlacemodes: *mut u32, lpdeinterlacemodes: *mut windows_core::GUID) -> windows_core::Result<()>; fn GetDeinterlaceModeCaps(&self, lpdeinterlacemode: *const windows_core::GUID, lpvideodescription: *const VMR9VideoDesc, lpdeinterlacecaps: *mut VMR9DeinterlaceCaps) -> windows_core::Result<()>; fn GetDeinterlaceMode(&self, dwstreamid: u32) -> windows_core::Result; @@ -18635,28 +13784,16 @@ pub trait IVMRDeinterlaceControl9_Impl: Sized { } impl windows_core::RuntimeName for IVMRDeinterlaceControl9 {} impl IVMRDeinterlaceControl9_Vtbl { - pub const fn new() -> IVMRDeinterlaceControl9_Vtbl - where - Identity: IVMRDeinterlaceControl9_Impl, - { - unsafe extern "system" fn GetNumberOfDeinterlaceModes(this: *mut core::ffi::c_void, lpvideodescription: *const VMR9VideoDesc, lpdwnumdeinterlacemodes: *mut u32, lpdeinterlacemodes: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl9_Impl, - { + pub const fn new() -> IVMRDeinterlaceControl9_Vtbl { + unsafe extern "system" fn GetNumberOfDeinterlaceModes(this: *mut core::ffi::c_void, lpvideodescription: *const VMR9VideoDesc, lpdwnumdeinterlacemodes: *mut u32, lpdeinterlacemodes: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRDeinterlaceControl9_Impl::GetNumberOfDeinterlaceModes(this, core::mem::transmute_copy(&lpvideodescription), core::mem::transmute_copy(&lpdwnumdeinterlacemodes), core::mem::transmute_copy(&lpdeinterlacemodes)).into() } - unsafe extern "system" fn GetDeinterlaceModeCaps(this: *mut core::ffi::c_void, lpdeinterlacemode: *const windows_core::GUID, lpvideodescription: *const VMR9VideoDesc, lpdeinterlacecaps: *mut VMR9DeinterlaceCaps) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl9_Impl, - { + unsafe extern "system" fn GetDeinterlaceModeCaps(this: *mut core::ffi::c_void, lpdeinterlacemode: *const windows_core::GUID, lpvideodescription: *const VMR9VideoDesc, lpdeinterlacecaps: *mut VMR9DeinterlaceCaps) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRDeinterlaceControl9_Impl::GetDeinterlaceModeCaps(this, core::mem::transmute_copy(&lpdeinterlacemode), core::mem::transmute_copy(&lpvideodescription), core::mem::transmute_copy(&lpdeinterlacecaps)).into() } - unsafe extern "system" fn GetDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl9_Impl, - { + unsafe extern "system" fn GetDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRDeinterlaceControl9_Impl::GetDeinterlaceMode(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -18666,17 +13803,11 @@ impl IVMRDeinterlaceControl9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl9_Impl, - { + unsafe extern "system" fn SetDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRDeinterlaceControl9_Impl::SetDeinterlaceMode(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&lpdeinterlacemode)).into() } - unsafe extern "system" fn GetDeinterlacePrefs(this: *mut core::ffi::c_void, lpdwdeinterlaceprefs: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl9_Impl, - { + unsafe extern "system" fn GetDeinterlacePrefs(this: *mut core::ffi::c_void, lpdwdeinterlaceprefs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRDeinterlaceControl9_Impl::GetDeinterlacePrefs(this) { Ok(ok__) => { @@ -18686,17 +13817,11 @@ impl IVMRDeinterlaceControl9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDeinterlacePrefs(this: *mut core::ffi::c_void, dwdeinterlaceprefs: u32) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl9_Impl, - { + unsafe extern "system" fn SetDeinterlacePrefs(this: *mut core::ffi::c_void, dwdeinterlaceprefs: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRDeinterlaceControl9_Impl::SetDeinterlacePrefs(this, core::mem::transmute_copy(&dwdeinterlaceprefs)).into() } - unsafe extern "system" fn GetActualDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVMRDeinterlaceControl9_Impl, - { + unsafe extern "system" fn GetActualDeinterlaceMode(this: *mut core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRDeinterlaceControl9_Impl::GetActualDeinterlaceMode(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -18721,7 +13846,7 @@ impl IVMRDeinterlaceControl9_Vtbl { iid == &::IID } } -pub trait IVMRFilterConfig_Impl: Sized { +pub trait IVMRFilterConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetImageCompositor(&self, lpvmrimgcompositor: Option<&IVMRImageCompositor>) -> windows_core::Result<()>; fn SetNumberOfStreams(&self, dwmaxstreams: u32) -> windows_core::Result<()>; fn GetNumberOfStreams(&self) -> windows_core::Result; @@ -18732,28 +13857,16 @@ pub trait IVMRFilterConfig_Impl: Sized { } impl windows_core::RuntimeName for IVMRFilterConfig {} impl IVMRFilterConfig_Vtbl { - pub const fn new() -> IVMRFilterConfig_Vtbl - where - Identity: IVMRFilterConfig_Impl, - { - unsafe extern "system" fn SetImageCompositor(this: *mut core::ffi::c_void, lpvmrimgcompositor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig_Impl, - { + pub const fn new() -> IVMRFilterConfig_Vtbl { + unsafe extern "system" fn SetImageCompositor(this: *mut core::ffi::c_void, lpvmrimgcompositor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRFilterConfig_Impl::SetImageCompositor(this, windows_core::from_raw_borrowed(&lpvmrimgcompositor)).into() } - unsafe extern "system" fn SetNumberOfStreams(this: *mut core::ffi::c_void, dwmaxstreams: u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig_Impl, - { + unsafe extern "system" fn SetNumberOfStreams(this: *mut core::ffi::c_void, dwmaxstreams: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRFilterConfig_Impl::SetNumberOfStreams(this, core::mem::transmute_copy(&dwmaxstreams)).into() } - unsafe extern "system" fn GetNumberOfStreams(this: *mut core::ffi::c_void, pdwmaxstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig_Impl, - { + unsafe extern "system" fn GetNumberOfStreams(this: *mut core::ffi::c_void, pdwmaxstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRFilterConfig_Impl::GetNumberOfStreams(this) { Ok(ok__) => { @@ -18763,17 +13876,11 @@ impl IVMRFilterConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig_Impl, - { + unsafe extern "system" fn SetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRFilterConfig_Impl::SetRenderingPrefs(this, core::mem::transmute_copy(&dwrenderflags)).into() } - unsafe extern "system" fn GetRenderingPrefs(this: *mut core::ffi::c_void, pdwrenderflags: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig_Impl, - { + unsafe extern "system" fn GetRenderingPrefs(this: *mut core::ffi::c_void, pdwrenderflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRFilterConfig_Impl::GetRenderingPrefs(this) { Ok(ok__) => { @@ -18783,17 +13890,11 @@ impl IVMRFilterConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRenderingMode(this: *mut core::ffi::c_void, mode: u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig_Impl, - { + unsafe extern "system" fn SetRenderingMode(this: *mut core::ffi::c_void, mode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRFilterConfig_Impl::SetRenderingMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn GetRenderingMode(this: *mut core::ffi::c_void, pmode: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig_Impl, - { + unsafe extern "system" fn GetRenderingMode(this: *mut core::ffi::c_void, pmode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRFilterConfig_Impl::GetRenderingMode(this) { Ok(ok__) => { @@ -18818,7 +13919,7 @@ impl IVMRFilterConfig_Vtbl { iid == &::IID } } -pub trait IVMRFilterConfig9_Impl: Sized { +pub trait IVMRFilterConfig9_Impl: Sized + windows_core::IUnknownImpl { fn SetImageCompositor(&self, lpvmrimgcompositor: Option<&IVMRImageCompositor9>) -> windows_core::Result<()>; fn SetNumberOfStreams(&self, dwmaxstreams: u32) -> windows_core::Result<()>; fn GetNumberOfStreams(&self) -> windows_core::Result; @@ -18829,28 +13930,16 @@ pub trait IVMRFilterConfig9_Impl: Sized { } impl windows_core::RuntimeName for IVMRFilterConfig9 {} impl IVMRFilterConfig9_Vtbl { - pub const fn new() -> IVMRFilterConfig9_Vtbl - where - Identity: IVMRFilterConfig9_Impl, - { - unsafe extern "system" fn SetImageCompositor(this: *mut core::ffi::c_void, lpvmrimgcompositor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig9_Impl, - { + pub const fn new() -> IVMRFilterConfig9_Vtbl { + unsafe extern "system" fn SetImageCompositor(this: *mut core::ffi::c_void, lpvmrimgcompositor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRFilterConfig9_Impl::SetImageCompositor(this, windows_core::from_raw_borrowed(&lpvmrimgcompositor)).into() } - unsafe extern "system" fn SetNumberOfStreams(this: *mut core::ffi::c_void, dwmaxstreams: u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig9_Impl, - { + unsafe extern "system" fn SetNumberOfStreams(this: *mut core::ffi::c_void, dwmaxstreams: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRFilterConfig9_Impl::SetNumberOfStreams(this, core::mem::transmute_copy(&dwmaxstreams)).into() } - unsafe extern "system" fn GetNumberOfStreams(this: *mut core::ffi::c_void, pdwmaxstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig9_Impl, - { + unsafe extern "system" fn GetNumberOfStreams(this: *mut core::ffi::c_void, pdwmaxstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRFilterConfig9_Impl::GetNumberOfStreams(this) { Ok(ok__) => { @@ -18860,17 +13949,11 @@ impl IVMRFilterConfig9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig9_Impl, - { + unsafe extern "system" fn SetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRFilterConfig9_Impl::SetRenderingPrefs(this, core::mem::transmute_copy(&dwrenderflags)).into() } - unsafe extern "system" fn GetRenderingPrefs(this: *mut core::ffi::c_void, pdwrenderflags: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig9_Impl, - { + unsafe extern "system" fn GetRenderingPrefs(this: *mut core::ffi::c_void, pdwrenderflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRFilterConfig9_Impl::GetRenderingPrefs(this) { Ok(ok__) => { @@ -18880,17 +13963,11 @@ impl IVMRFilterConfig9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRenderingMode(this: *mut core::ffi::c_void, mode: u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig9_Impl, - { + unsafe extern "system" fn SetRenderingMode(this: *mut core::ffi::c_void, mode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRFilterConfig9_Impl::SetRenderingMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn GetRenderingMode(this: *mut core::ffi::c_void, pmode: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRFilterConfig9_Impl, - { + unsafe extern "system" fn GetRenderingMode(this: *mut core::ffi::c_void, pmode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRFilterConfig9_Impl::GetRenderingMode(this) { Ok(ok__) => { @@ -18916,7 +13993,7 @@ impl IVMRFilterConfig9_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Media_MediaFoundation"))] -pub trait IVMRImageCompositor_Impl: Sized { +pub trait IVMRImageCompositor_Impl: Sized + windows_core::IUnknownImpl { fn InitCompositionTarget(&self, pd3ddevice: Option<&windows_core::IUnknown>, pddsrendertarget: Option<&super::super::Graphics::DirectDraw::IDirectDrawSurface7>) -> windows_core::Result<()>; fn TermCompositionTarget(&self, pd3ddevice: Option<&windows_core::IUnknown>, pddsrendertarget: Option<&super::super::Graphics::DirectDraw::IDirectDrawSurface7>) -> windows_core::Result<()>; fn SetStreamMediaType(&self, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -18926,35 +14003,20 @@ pub trait IVMRImageCompositor_Impl: Sized { impl windows_core::RuntimeName for IVMRImageCompositor {} #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Media_MediaFoundation"))] impl IVMRImageCompositor_Vtbl { - pub const fn new() -> IVMRImageCompositor_Vtbl - where - Identity: IVMRImageCompositor_Impl, - { - unsafe extern "system" fn InitCompositionTarget(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void, pddsrendertarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRImageCompositor_Impl, - { + pub const fn new() -> IVMRImageCompositor_Vtbl { + unsafe extern "system" fn InitCompositionTarget(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void, pddsrendertarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImageCompositor_Impl::InitCompositionTarget(this, windows_core::from_raw_borrowed(&pd3ddevice), windows_core::from_raw_borrowed(&pddsrendertarget)).into() } - unsafe extern "system" fn TermCompositionTarget(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void, pddsrendertarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRImageCompositor_Impl, - { + unsafe extern "system" fn TermCompositionTarget(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void, pddsrendertarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImageCompositor_Impl::TermCompositionTarget(this, windows_core::from_raw_borrowed(&pd3ddevice), windows_core::from_raw_borrowed(&pddsrendertarget)).into() } - unsafe extern "system" fn SetStreamMediaType(this: *mut core::ffi::c_void, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVMRImageCompositor_Impl, - { + unsafe extern "system" fn SetStreamMediaType(this: *mut core::ffi::c_void, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImageCompositor_Impl::SetStreamMediaType(this, core::mem::transmute_copy(&dwstrmid), core::mem::transmute_copy(&pmt), core::mem::transmute_copy(&ftexture)).into() } - unsafe extern "system" fn CompositeImage(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void, pddsrendertarget: *mut core::ffi::c_void, pmtrendertarget: *const super::MediaFoundation::AM_MEDIA_TYPE, rtstart: i64, rtend: i64, dwclrbkgnd: u32, pvideostreaminfo: *const VMRVIDEOSTREAMINFO, cstreams: u32) -> windows_core::HRESULT - where - Identity: IVMRImageCompositor_Impl, - { + unsafe extern "system" fn CompositeImage(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void, pddsrendertarget: *mut core::ffi::c_void, pmtrendertarget: *const super::MediaFoundation::AM_MEDIA_TYPE, rtstart: i64, rtend: i64, dwclrbkgnd: u32, pvideostreaminfo: *const VMRVIDEOSTREAMINFO, cstreams: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImageCompositor_Impl::CompositeImage(this, windows_core::from_raw_borrowed(&pd3ddevice), windows_core::from_raw_borrowed(&pddsrendertarget), core::mem::transmute_copy(&pmtrendertarget), core::mem::transmute_copy(&rtstart), core::mem::transmute_copy(&rtend), core::mem::transmute_copy(&dwclrbkgnd), core::mem::transmute_copy(&pvideostreaminfo), core::mem::transmute_copy(&cstreams)).into() } @@ -18971,7 +14033,7 @@ impl IVMRImageCompositor_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Media_MediaFoundation"))] -pub trait IVMRImageCompositor9_Impl: Sized { +pub trait IVMRImageCompositor9_Impl: Sized + windows_core::IUnknownImpl { fn InitCompositionDevice(&self, pd3ddevice: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn TermCompositionDevice(&self, pd3ddevice: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn SetStreamMediaType(&self, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -18981,35 +14043,20 @@ pub trait IVMRImageCompositor9_Impl: Sized { impl windows_core::RuntimeName for IVMRImageCompositor9 {} #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Media_MediaFoundation"))] impl IVMRImageCompositor9_Vtbl { - pub const fn new() -> IVMRImageCompositor9_Vtbl - where - Identity: IVMRImageCompositor9_Impl, - { - unsafe extern "system" fn InitCompositionDevice(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRImageCompositor9_Impl, - { + pub const fn new() -> IVMRImageCompositor9_Vtbl { + unsafe extern "system" fn InitCompositionDevice(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImageCompositor9_Impl::InitCompositionDevice(this, windows_core::from_raw_borrowed(&pd3ddevice)).into() } - unsafe extern "system" fn TermCompositionDevice(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRImageCompositor9_Impl, - { + unsafe extern "system" fn TermCompositionDevice(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImageCompositor9_Impl::TermCompositionDevice(this, windows_core::from_raw_borrowed(&pd3ddevice)).into() } - unsafe extern "system" fn SetStreamMediaType(this: *mut core::ffi::c_void, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVMRImageCompositor9_Impl, - { + unsafe extern "system" fn SetStreamMediaType(this: *mut core::ffi::c_void, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImageCompositor9_Impl::SetStreamMediaType(this, core::mem::transmute_copy(&dwstrmid), core::mem::transmute_copy(&pmt), core::mem::transmute_copy(&ftexture)).into() } - unsafe extern "system" fn CompositeImage(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void, pddsrendertarget: *mut core::ffi::c_void, pmtrendertarget: *const super::MediaFoundation::AM_MEDIA_TYPE, rtstart: i64, rtend: i64, dwclrbkgnd: u32, pvideostreaminfo: *const VMR9VideoStreamInfo, cstreams: u32) -> windows_core::HRESULT - where - Identity: IVMRImageCompositor9_Impl, - { + unsafe extern "system" fn CompositeImage(this: *mut core::ffi::c_void, pd3ddevice: *mut core::ffi::c_void, pddsrendertarget: *mut core::ffi::c_void, pmtrendertarget: *const super::MediaFoundation::AM_MEDIA_TYPE, rtstart: i64, rtend: i64, dwclrbkgnd: u32, pvideostreaminfo: *const VMR9VideoStreamInfo, cstreams: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImageCompositor9_Impl::CompositeImage(this, windows_core::from_raw_borrowed(&pd3ddevice), windows_core::from_raw_borrowed(&pddsrendertarget), core::mem::transmute_copy(&pmtrendertarget), core::mem::transmute_copy(&rtstart), core::mem::transmute_copy(&rtend), core::mem::transmute_copy(&dwclrbkgnd), core::mem::transmute_copy(&pvideostreaminfo), core::mem::transmute_copy(&cstreams)).into() } @@ -19026,7 +14073,7 @@ impl IVMRImageCompositor9_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub trait IVMRImagePresenter_Impl: Sized { +pub trait IVMRImagePresenter_Impl: Sized + windows_core::IUnknownImpl { fn StartPresenting(&self, dwuserid: usize) -> windows_core::Result<()>; fn StopPresenting(&self, dwuserid: usize) -> windows_core::Result<()>; fn PresentImage(&self, dwuserid: usize, lppresinfo: *const VMRPRESENTATIONINFO) -> windows_core::Result<()>; @@ -19035,28 +14082,16 @@ pub trait IVMRImagePresenter_Impl: Sized { impl windows_core::RuntimeName for IVMRImagePresenter {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IVMRImagePresenter_Vtbl { - pub const fn new() -> IVMRImagePresenter_Vtbl - where - Identity: IVMRImagePresenter_Impl, - { - unsafe extern "system" fn StartPresenting(this: *mut core::ffi::c_void, dwuserid: usize) -> windows_core::HRESULT - where - Identity: IVMRImagePresenter_Impl, - { + pub const fn new() -> IVMRImagePresenter_Vtbl { + unsafe extern "system" fn StartPresenting(this: *mut core::ffi::c_void, dwuserid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImagePresenter_Impl::StartPresenting(this, core::mem::transmute_copy(&dwuserid)).into() } - unsafe extern "system" fn StopPresenting(this: *mut core::ffi::c_void, dwuserid: usize) -> windows_core::HRESULT - where - Identity: IVMRImagePresenter_Impl, - { + unsafe extern "system" fn StopPresenting(this: *mut core::ffi::c_void, dwuserid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImagePresenter_Impl::StopPresenting(this, core::mem::transmute_copy(&dwuserid)).into() } - unsafe extern "system" fn PresentImage(this: *mut core::ffi::c_void, dwuserid: usize, lppresinfo: *const VMRPRESENTATIONINFO) -> windows_core::HRESULT - where - Identity: IVMRImagePresenter_Impl, - { + unsafe extern "system" fn PresentImage(this: *mut core::ffi::c_void, dwuserid: usize, lppresinfo: *const VMRPRESENTATIONINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImagePresenter_Impl::PresentImage(this, core::mem::transmute_copy(&dwuserid), core::mem::transmute_copy(&lppresinfo)).into() } @@ -19072,7 +14107,7 @@ impl IVMRImagePresenter_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IVMRImagePresenter9_Impl: Sized { +pub trait IVMRImagePresenter9_Impl: Sized + windows_core::IUnknownImpl { fn StartPresenting(&self, dwuserid: usize) -> windows_core::Result<()>; fn StopPresenting(&self, dwuserid: usize) -> windows_core::Result<()>; fn PresentImage(&self, dwuserid: usize, lppresinfo: *const VMR9PresentationInfo) -> windows_core::Result<()>; @@ -19081,28 +14116,16 @@ pub trait IVMRImagePresenter9_Impl: Sized { impl windows_core::RuntimeName for IVMRImagePresenter9 {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IVMRImagePresenter9_Vtbl { - pub const fn new() -> IVMRImagePresenter9_Vtbl - where - Identity: IVMRImagePresenter9_Impl, - { - unsafe extern "system" fn StartPresenting(this: *mut core::ffi::c_void, dwuserid: usize) -> windows_core::HRESULT - where - Identity: IVMRImagePresenter9_Impl, - { + pub const fn new() -> IVMRImagePresenter9_Vtbl { + unsafe extern "system" fn StartPresenting(this: *mut core::ffi::c_void, dwuserid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImagePresenter9_Impl::StartPresenting(this, core::mem::transmute_copy(&dwuserid)).into() } - unsafe extern "system" fn StopPresenting(this: *mut core::ffi::c_void, dwuserid: usize) -> windows_core::HRESULT - where - Identity: IVMRImagePresenter9_Impl, - { + unsafe extern "system" fn StopPresenting(this: *mut core::ffi::c_void, dwuserid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImagePresenter9_Impl::StopPresenting(this, core::mem::transmute_copy(&dwuserid)).into() } - unsafe extern "system" fn PresentImage(this: *mut core::ffi::c_void, dwuserid: usize, lppresinfo: *const VMR9PresentationInfo) -> windows_core::HRESULT - where - Identity: IVMRImagePresenter9_Impl, - { + unsafe extern "system" fn PresentImage(this: *mut core::ffi::c_void, dwuserid: usize, lppresinfo: *const VMR9PresentationInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImagePresenter9_Impl::PresentImage(this, core::mem::transmute_copy(&dwuserid), core::mem::transmute_copy(&lppresinfo)).into() } @@ -19117,27 +14140,18 @@ impl IVMRImagePresenter9_Vtbl { iid == &::IID } } -pub trait IVMRImagePresenterConfig_Impl: Sized { +pub trait IVMRImagePresenterConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetRenderingPrefs(&self, dwrenderflags: u32) -> windows_core::Result<()>; fn GetRenderingPrefs(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVMRImagePresenterConfig {} impl IVMRImagePresenterConfig_Vtbl { - pub const fn new() -> IVMRImagePresenterConfig_Vtbl - where - Identity: IVMRImagePresenterConfig_Impl, - { - unsafe extern "system" fn SetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: u32) -> windows_core::HRESULT - where - Identity: IVMRImagePresenterConfig_Impl, - { + pub const fn new() -> IVMRImagePresenterConfig_Vtbl { + unsafe extern "system" fn SetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImagePresenterConfig_Impl::SetRenderingPrefs(this, core::mem::transmute_copy(&dwrenderflags)).into() } - unsafe extern "system" fn GetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRImagePresenterConfig_Impl, - { + unsafe extern "system" fn GetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRImagePresenterConfig_Impl::GetRenderingPrefs(this) { Ok(ok__) => { @@ -19157,27 +14171,18 @@ impl IVMRImagePresenterConfig_Vtbl { iid == &::IID } } -pub trait IVMRImagePresenterConfig9_Impl: Sized { +pub trait IVMRImagePresenterConfig9_Impl: Sized + windows_core::IUnknownImpl { fn SetRenderingPrefs(&self, dwrenderflags: u32) -> windows_core::Result<()>; fn GetRenderingPrefs(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVMRImagePresenterConfig9 {} impl IVMRImagePresenterConfig9_Vtbl { - pub const fn new() -> IVMRImagePresenterConfig9_Vtbl - where - Identity: IVMRImagePresenterConfig9_Impl, - { - unsafe extern "system" fn SetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: u32) -> windows_core::HRESULT - where - Identity: IVMRImagePresenterConfig9_Impl, - { + pub const fn new() -> IVMRImagePresenterConfig9_Vtbl { + unsafe extern "system" fn SetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImagePresenterConfig9_Impl::SetRenderingPrefs(this, core::mem::transmute_copy(&dwrenderflags)).into() } - unsafe extern "system" fn GetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRImagePresenterConfig9_Impl, - { + unsafe extern "system" fn GetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRImagePresenterConfig9_Impl::GetRenderingPrefs(this) { Ok(ok__) => { @@ -19206,21 +14211,12 @@ pub trait IVMRImagePresenterExclModeConfig_Impl: Sized + IVMRImagePresenterConfi impl windows_core::RuntimeName for IVMRImagePresenterExclModeConfig {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IVMRImagePresenterExclModeConfig_Vtbl { - pub const fn new() -> IVMRImagePresenterExclModeConfig_Vtbl - where - Identity: IVMRImagePresenterExclModeConfig_Impl, - { - unsafe extern "system" fn SetXlcModeDDObjAndPrimarySurface(this: *mut core::ffi::c_void, lpddobj: *mut core::ffi::c_void, lpprimarysurf: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRImagePresenterExclModeConfig_Impl, - { + pub const fn new() -> IVMRImagePresenterExclModeConfig_Vtbl { + unsafe extern "system" fn SetXlcModeDDObjAndPrimarySurface(this: *mut core::ffi::c_void, lpddobj: *mut core::ffi::c_void, lpprimarysurf: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImagePresenterExclModeConfig_Impl::SetXlcModeDDObjAndPrimarySurface(this, windows_core::from_raw_borrowed(&lpddobj), windows_core::from_raw_borrowed(&lpprimarysurf)).into() } - unsafe extern "system" fn GetXlcModeDDObjAndPrimarySurface(this: *mut core::ffi::c_void, lpddobj: *mut *mut core::ffi::c_void, lpprimarysurf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRImagePresenterExclModeConfig_Impl, - { + unsafe extern "system" fn GetXlcModeDDObjAndPrimarySurface(this: *mut core::ffi::c_void, lpddobj: *mut *mut core::ffi::c_void, lpprimarysurf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImagePresenterExclModeConfig_Impl::GetXlcModeDDObjAndPrimarySurface(this, core::mem::transmute_copy(&lpddobj), core::mem::transmute_copy(&lpprimarysurf)).into() } @@ -19235,7 +14231,7 @@ impl IVMRImagePresenterExclModeConfig_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub trait IVMRMixerBitmap_Impl: Sized { +pub trait IVMRMixerBitmap_Impl: Sized + windows_core::IUnknownImpl { fn SetAlphaBitmap(&self, pbmpparms: *const VMRALPHABITMAP) -> windows_core::Result<()>; fn UpdateAlphaBitmapParameters(&self, pbmpparms: *const VMRALPHABITMAP) -> windows_core::Result<()>; fn GetAlphaBitmapParameters(&self, pbmpparms: *mut VMRALPHABITMAP) -> windows_core::Result<()>; @@ -19244,28 +14240,16 @@ pub trait IVMRMixerBitmap_Impl: Sized { impl windows_core::RuntimeName for IVMRMixerBitmap {} #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] impl IVMRMixerBitmap_Vtbl { - pub const fn new() -> IVMRMixerBitmap_Vtbl - where - Identity: IVMRMixerBitmap_Impl, - { - unsafe extern "system" fn SetAlphaBitmap(this: *mut core::ffi::c_void, pbmpparms: *const VMRALPHABITMAP) -> windows_core::HRESULT - where - Identity: IVMRMixerBitmap_Impl, - { + pub const fn new() -> IVMRMixerBitmap_Vtbl { + unsafe extern "system" fn SetAlphaBitmap(this: *mut core::ffi::c_void, pbmpparms: *const VMRALPHABITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerBitmap_Impl::SetAlphaBitmap(this, core::mem::transmute_copy(&pbmpparms)).into() } - unsafe extern "system" fn UpdateAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *const VMRALPHABITMAP) -> windows_core::HRESULT - where - Identity: IVMRMixerBitmap_Impl, - { + unsafe extern "system" fn UpdateAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *const VMRALPHABITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerBitmap_Impl::UpdateAlphaBitmapParameters(this, core::mem::transmute_copy(&pbmpparms)).into() } - unsafe extern "system" fn GetAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *mut VMRALPHABITMAP) -> windows_core::HRESULT - where - Identity: IVMRMixerBitmap_Impl, - { + unsafe extern "system" fn GetAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *mut VMRALPHABITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerBitmap_Impl::GetAlphaBitmapParameters(this, core::mem::transmute_copy(&pbmpparms)).into() } @@ -19281,7 +14265,7 @@ impl IVMRMixerBitmap_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] -pub trait IVMRMixerBitmap9_Impl: Sized { +pub trait IVMRMixerBitmap9_Impl: Sized + windows_core::IUnknownImpl { fn SetAlphaBitmap(&self, pbmpparms: *const VMR9AlphaBitmap) -> windows_core::Result<()>; fn UpdateAlphaBitmapParameters(&self, pbmpparms: *const VMR9AlphaBitmap) -> windows_core::Result<()>; fn GetAlphaBitmapParameters(&self, pbmpparms: *mut VMR9AlphaBitmap) -> windows_core::Result<()>; @@ -19290,28 +14274,16 @@ pub trait IVMRMixerBitmap9_Impl: Sized { impl windows_core::RuntimeName for IVMRMixerBitmap9 {} #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] impl IVMRMixerBitmap9_Vtbl { - pub const fn new() -> IVMRMixerBitmap9_Vtbl - where - Identity: IVMRMixerBitmap9_Impl, - { - unsafe extern "system" fn SetAlphaBitmap(this: *mut core::ffi::c_void, pbmpparms: *const VMR9AlphaBitmap) -> windows_core::HRESULT - where - Identity: IVMRMixerBitmap9_Impl, - { + pub const fn new() -> IVMRMixerBitmap9_Vtbl { + unsafe extern "system" fn SetAlphaBitmap(this: *mut core::ffi::c_void, pbmpparms: *const VMR9AlphaBitmap) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerBitmap9_Impl::SetAlphaBitmap(this, core::mem::transmute_copy(&pbmpparms)).into() } - unsafe extern "system" fn UpdateAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *const VMR9AlphaBitmap) -> windows_core::HRESULT - where - Identity: IVMRMixerBitmap9_Impl, - { + unsafe extern "system" fn UpdateAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *const VMR9AlphaBitmap) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerBitmap9_Impl::UpdateAlphaBitmapParameters(this, core::mem::transmute_copy(&pbmpparms)).into() } - unsafe extern "system" fn GetAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *mut VMR9AlphaBitmap) -> windows_core::HRESULT - where - Identity: IVMRMixerBitmap9_Impl, - { + unsafe extern "system" fn GetAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *mut VMR9AlphaBitmap) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerBitmap9_Impl::GetAlphaBitmapParameters(this, core::mem::transmute_copy(&pbmpparms)).into() } @@ -19326,7 +14298,7 @@ impl IVMRMixerBitmap9_Vtbl { iid == &::IID } } -pub trait IVMRMixerControl_Impl: Sized { +pub trait IVMRMixerControl_Impl: Sized + windows_core::IUnknownImpl { fn SetAlpha(&self, dwstreamid: u32, alpha: f32) -> windows_core::Result<()>; fn GetAlpha(&self, dwstreamid: u32) -> windows_core::Result; fn SetZOrder(&self, dwstreamid: u32, dwz: u32) -> windows_core::Result<()>; @@ -19340,21 +14312,12 @@ pub trait IVMRMixerControl_Impl: Sized { } impl windows_core::RuntimeName for IVMRMixerControl {} impl IVMRMixerControl_Vtbl { - pub const fn new() -> IVMRMixerControl_Vtbl - where - Identity: IVMRMixerControl_Impl, - { - unsafe extern "system" fn SetAlpha(this: *mut core::ffi::c_void, dwstreamid: u32, alpha: f32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl_Impl, - { + pub const fn new() -> IVMRMixerControl_Vtbl { + unsafe extern "system" fn SetAlpha(this: *mut core::ffi::c_void, dwstreamid: u32, alpha: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl_Impl::SetAlpha(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&alpha)).into() } - unsafe extern "system" fn GetAlpha(this: *mut core::ffi::c_void, dwstreamid: u32, palpha: *mut f32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl_Impl, - { + unsafe extern "system" fn GetAlpha(this: *mut core::ffi::c_void, dwstreamid: u32, palpha: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRMixerControl_Impl::GetAlpha(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -19364,17 +14327,11 @@ impl IVMRMixerControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, dwz: u32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl_Impl, - { + unsafe extern "system" fn SetZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, dwz: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl_Impl::SetZOrder(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&dwz)).into() } - unsafe extern "system" fn GetZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, pz: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl_Impl, - { + unsafe extern "system" fn GetZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, pz: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRMixerControl_Impl::GetZOrder(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -19384,17 +14341,11 @@ impl IVMRMixerControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, prect: *const NORMALIZEDRECT) -> windows_core::HRESULT - where - Identity: IVMRMixerControl_Impl, - { + unsafe extern "system" fn SetOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, prect: *const NORMALIZEDRECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl_Impl::SetOutputRect(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn GetOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, prect: *mut NORMALIZEDRECT) -> windows_core::HRESULT - where - Identity: IVMRMixerControl_Impl, - { + unsafe extern "system" fn GetOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, prect: *mut NORMALIZEDRECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRMixerControl_Impl::GetOutputRect(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -19404,31 +14355,19 @@ impl IVMRMixerControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackgroundClr(this: *mut core::ffi::c_void, clrbkg: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRMixerControl_Impl, - { + unsafe extern "system" fn SetBackgroundClr(this: *mut core::ffi::c_void, clrbkg: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl_Impl::SetBackgroundClr(this, core::mem::transmute_copy(&clrbkg)).into() } - unsafe extern "system" fn GetBackgroundClr(this: *mut core::ffi::c_void, lpclrbkg: *const super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRMixerControl_Impl, - { + unsafe extern "system" fn GetBackgroundClr(this: *mut core::ffi::c_void, lpclrbkg: *const super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl_Impl::GetBackgroundClr(this, core::mem::transmute_copy(&lpclrbkg)).into() } - unsafe extern "system" fn SetMixingPrefs(this: *mut core::ffi::c_void, dwmixerprefs: u32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl_Impl, - { + unsafe extern "system" fn SetMixingPrefs(this: *mut core::ffi::c_void, dwmixerprefs: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl_Impl::SetMixingPrefs(this, core::mem::transmute_copy(&dwmixerprefs)).into() } - unsafe extern "system" fn GetMixingPrefs(this: *mut core::ffi::c_void, pdwmixerprefs: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl_Impl, - { + unsafe extern "system" fn GetMixingPrefs(this: *mut core::ffi::c_void, pdwmixerprefs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRMixerControl_Impl::GetMixingPrefs(this) { Ok(ok__) => { @@ -19456,7 +14395,7 @@ impl IVMRMixerControl_Vtbl { iid == &::IID } } -pub trait IVMRMixerControl9_Impl: Sized { +pub trait IVMRMixerControl9_Impl: Sized + windows_core::IUnknownImpl { fn SetAlpha(&self, dwstreamid: u32, alpha: f32) -> windows_core::Result<()>; fn GetAlpha(&self, dwstreamid: u32) -> windows_core::Result; fn SetZOrder(&self, dwstreamid: u32, dwz: u32) -> windows_core::Result<()>; @@ -19473,21 +14412,12 @@ pub trait IVMRMixerControl9_Impl: Sized { } impl windows_core::RuntimeName for IVMRMixerControl9 {} impl IVMRMixerControl9_Vtbl { - pub const fn new() -> IVMRMixerControl9_Vtbl - where - Identity: IVMRMixerControl9_Impl, - { - unsafe extern "system" fn SetAlpha(this: *mut core::ffi::c_void, dwstreamid: u32, alpha: f32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + pub const fn new() -> IVMRMixerControl9_Vtbl { + unsafe extern "system" fn SetAlpha(this: *mut core::ffi::c_void, dwstreamid: u32, alpha: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl9_Impl::SetAlpha(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&alpha)).into() } - unsafe extern "system" fn GetAlpha(this: *mut core::ffi::c_void, dwstreamid: u32, palpha: *mut f32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn GetAlpha(this: *mut core::ffi::c_void, dwstreamid: u32, palpha: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRMixerControl9_Impl::GetAlpha(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -19497,17 +14427,11 @@ impl IVMRMixerControl9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, dwz: u32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn SetZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, dwz: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl9_Impl::SetZOrder(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&dwz)).into() } - unsafe extern "system" fn GetZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, pz: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn GetZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, pz: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRMixerControl9_Impl::GetZOrder(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -19517,17 +14441,11 @@ impl IVMRMixerControl9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, prect: *const VMR9NormalizedRect) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn SetOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, prect: *const VMR9NormalizedRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl9_Impl::SetOutputRect(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn GetOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, prect: *mut VMR9NormalizedRect) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn GetOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, prect: *mut VMR9NormalizedRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRMixerControl9_Impl::GetOutputRect(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -19537,31 +14455,19 @@ impl IVMRMixerControl9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackgroundClr(this: *mut core::ffi::c_void, clrbkg: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn SetBackgroundClr(this: *mut core::ffi::c_void, clrbkg: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl9_Impl::SetBackgroundClr(this, core::mem::transmute_copy(&clrbkg)).into() } - unsafe extern "system" fn GetBackgroundClr(this: *mut core::ffi::c_void, lpclrbkg: *const super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn GetBackgroundClr(this: *mut core::ffi::c_void, lpclrbkg: *const super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl9_Impl::GetBackgroundClr(this, core::mem::transmute_copy(&lpclrbkg)).into() } - unsafe extern "system" fn SetMixingPrefs(this: *mut core::ffi::c_void, dwmixerprefs: u32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn SetMixingPrefs(this: *mut core::ffi::c_void, dwmixerprefs: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl9_Impl::SetMixingPrefs(this, core::mem::transmute_copy(&dwmixerprefs)).into() } - unsafe extern "system" fn GetMixingPrefs(this: *mut core::ffi::c_void, pdwmixerprefs: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn GetMixingPrefs(this: *mut core::ffi::c_void, pdwmixerprefs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRMixerControl9_Impl::GetMixingPrefs(this) { Ok(ok__) => { @@ -19571,24 +14477,15 @@ impl IVMRMixerControl9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProcAmpControl(this: *mut core::ffi::c_void, dwstreamid: u32, lpclrcontrol: *const VMR9ProcAmpControl) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn SetProcAmpControl(this: *mut core::ffi::c_void, dwstreamid: u32, lpclrcontrol: *const VMR9ProcAmpControl) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl9_Impl::SetProcAmpControl(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&lpclrcontrol)).into() } - unsafe extern "system" fn GetProcAmpControl(this: *mut core::ffi::c_void, dwstreamid: u32, lpclrcontrol: *mut VMR9ProcAmpControl) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn GetProcAmpControl(this: *mut core::ffi::c_void, dwstreamid: u32, lpclrcontrol: *mut VMR9ProcAmpControl) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl9_Impl::GetProcAmpControl(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&lpclrcontrol)).into() } - unsafe extern "system" fn GetProcAmpControlRange(this: *mut core::ffi::c_void, dwstreamid: u32, lpclrcontrol: *mut VMR9ProcAmpControlRange) -> windows_core::HRESULT - where - Identity: IVMRMixerControl9_Impl, - { + unsafe extern "system" fn GetProcAmpControlRange(this: *mut core::ffi::c_void, dwstreamid: u32, lpclrcontrol: *mut VMR9ProcAmpControlRange) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMixerControl9_Impl::GetProcAmpControlRange(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&lpclrcontrol)).into() } @@ -19614,7 +14511,7 @@ impl IVMRMixerControl9_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IVMRMonitorConfig_Impl: Sized { +pub trait IVMRMonitorConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetMonitor(&self, pguid: *const VMRGUID) -> windows_core::Result<()>; fn GetMonitor(&self, pguid: *mut VMRGUID) -> windows_core::Result<()>; fn SetDefaultMonitor(&self, pguid: *const VMRGUID) -> windows_core::Result<()>; @@ -19625,42 +14522,24 @@ pub trait IVMRMonitorConfig_Impl: Sized { impl windows_core::RuntimeName for IVMRMonitorConfig {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IVMRMonitorConfig_Vtbl { - pub const fn new() -> IVMRMonitorConfig_Vtbl - where - Identity: IVMRMonitorConfig_Impl, - { - unsafe extern "system" fn SetMonitor(this: *mut core::ffi::c_void, pguid: *const VMRGUID) -> windows_core::HRESULT - where - Identity: IVMRMonitorConfig_Impl, - { + pub const fn new() -> IVMRMonitorConfig_Vtbl { + unsafe extern "system" fn SetMonitor(this: *mut core::ffi::c_void, pguid: *const VMRGUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMonitorConfig_Impl::SetMonitor(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn GetMonitor(this: *mut core::ffi::c_void, pguid: *mut VMRGUID) -> windows_core::HRESULT - where - Identity: IVMRMonitorConfig_Impl, - { + unsafe extern "system" fn GetMonitor(this: *mut core::ffi::c_void, pguid: *mut VMRGUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMonitorConfig_Impl::GetMonitor(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn SetDefaultMonitor(this: *mut core::ffi::c_void, pguid: *const VMRGUID) -> windows_core::HRESULT - where - Identity: IVMRMonitorConfig_Impl, - { + unsafe extern "system" fn SetDefaultMonitor(this: *mut core::ffi::c_void, pguid: *const VMRGUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMonitorConfig_Impl::SetDefaultMonitor(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn GetDefaultMonitor(this: *mut core::ffi::c_void, pguid: *mut VMRGUID) -> windows_core::HRESULT - where - Identity: IVMRMonitorConfig_Impl, - { + unsafe extern "system" fn GetDefaultMonitor(this: *mut core::ffi::c_void, pguid: *mut VMRGUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMonitorConfig_Impl::GetDefaultMonitor(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn GetAvailableMonitors(this: *mut core::ffi::c_void, pinfo: *mut VMRMONITORINFO, dwmaxinfoarraysize: u32, pdwnumdevices: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRMonitorConfig_Impl, - { + unsafe extern "system" fn GetAvailableMonitors(this: *mut core::ffi::c_void, pinfo: *mut VMRMONITORINFO, dwmaxinfoarraysize: u32, pdwnumdevices: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMonitorConfig_Impl::GetAvailableMonitors(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&dwmaxinfoarraysize), core::mem::transmute_copy(&pdwnumdevices)).into() } @@ -19678,7 +14557,7 @@ impl IVMRMonitorConfig_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IVMRMonitorConfig9_Impl: Sized { +pub trait IVMRMonitorConfig9_Impl: Sized + windows_core::IUnknownImpl { fn SetMonitor(&self, udev: u32) -> windows_core::Result<()>; fn GetMonitor(&self) -> windows_core::Result; fn SetDefaultMonitor(&self, udev: u32) -> windows_core::Result<()>; @@ -19689,21 +14568,12 @@ pub trait IVMRMonitorConfig9_Impl: Sized { impl windows_core::RuntimeName for IVMRMonitorConfig9 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IVMRMonitorConfig9_Vtbl { - pub const fn new() -> IVMRMonitorConfig9_Vtbl - where - Identity: IVMRMonitorConfig9_Impl, - { - unsafe extern "system" fn SetMonitor(this: *mut core::ffi::c_void, udev: u32) -> windows_core::HRESULT - where - Identity: IVMRMonitorConfig9_Impl, - { + pub const fn new() -> IVMRMonitorConfig9_Vtbl { + unsafe extern "system" fn SetMonitor(this: *mut core::ffi::c_void, udev: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMonitorConfig9_Impl::SetMonitor(this, core::mem::transmute_copy(&udev)).into() } - unsafe extern "system" fn GetMonitor(this: *mut core::ffi::c_void, pudev: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRMonitorConfig9_Impl, - { + unsafe extern "system" fn GetMonitor(this: *mut core::ffi::c_void, pudev: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRMonitorConfig9_Impl::GetMonitor(this) { Ok(ok__) => { @@ -19713,17 +14583,11 @@ impl IVMRMonitorConfig9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultMonitor(this: *mut core::ffi::c_void, udev: u32) -> windows_core::HRESULT - where - Identity: IVMRMonitorConfig9_Impl, - { + unsafe extern "system" fn SetDefaultMonitor(this: *mut core::ffi::c_void, udev: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMonitorConfig9_Impl::SetDefaultMonitor(this, core::mem::transmute_copy(&udev)).into() } - unsafe extern "system" fn GetDefaultMonitor(this: *mut core::ffi::c_void, pudev: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRMonitorConfig9_Impl, - { + unsafe extern "system" fn GetDefaultMonitor(this: *mut core::ffi::c_void, pudev: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRMonitorConfig9_Impl::GetDefaultMonitor(this) { Ok(ok__) => { @@ -19733,10 +14597,7 @@ impl IVMRMonitorConfig9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAvailableMonitors(this: *mut core::ffi::c_void, pinfo: *mut VMR9MonitorInfo, dwmaxinfoarraysize: u32, pdwnumdevices: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRMonitorConfig9_Impl, - { + unsafe extern "system" fn GetAvailableMonitors(this: *mut core::ffi::c_void, pinfo: *mut VMR9MonitorInfo, dwmaxinfoarraysize: u32, pdwnumdevices: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRMonitorConfig9_Impl::GetAvailableMonitors(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&dwmaxinfoarraysize), core::mem::transmute_copy(&pdwnumdevices)).into() } @@ -19754,7 +14615,7 @@ impl IVMRMonitorConfig9_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub trait IVMRSurface_Impl: Sized { +pub trait IVMRSurface_Impl: Sized + windows_core::IUnknownImpl { fn IsSurfaceLocked(&self) -> windows_core::Result<()>; fn LockSurface(&self) -> windows_core::Result<*mut u8>; fn UnlockSurface(&self) -> windows_core::Result<()>; @@ -19764,21 +14625,12 @@ pub trait IVMRSurface_Impl: Sized { impl windows_core::RuntimeName for IVMRSurface {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IVMRSurface_Vtbl { - pub const fn new() -> IVMRSurface_Vtbl - where - Identity: IVMRSurface_Impl, - { - unsafe extern "system" fn IsSurfaceLocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurface_Impl, - { + pub const fn new() -> IVMRSurface_Vtbl { + unsafe extern "system" fn IsSurfaceLocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurface_Impl::IsSurfaceLocked(this).into() } - unsafe extern "system" fn LockSurface(this: *mut core::ffi::c_void, lpsurface: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IVMRSurface_Impl, - { + unsafe extern "system" fn LockSurface(this: *mut core::ffi::c_void, lpsurface: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRSurface_Impl::LockSurface(this) { Ok(ok__) => { @@ -19788,17 +14640,11 @@ impl IVMRSurface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnlockSurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurface_Impl, - { + unsafe extern "system" fn UnlockSurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurface_Impl::UnlockSurface(this).into() } - unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, lplpsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurface_Impl, - { + unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, lplpsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRSurface_Impl::GetSurface(this) { Ok(ok__) => { @@ -19821,7 +14667,7 @@ impl IVMRSurface_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IVMRSurface9_Impl: Sized { +pub trait IVMRSurface9_Impl: Sized + windows_core::IUnknownImpl { fn IsSurfaceLocked(&self) -> windows_core::Result<()>; fn LockSurface(&self) -> windows_core::Result<*mut u8>; fn UnlockSurface(&self) -> windows_core::Result<()>; @@ -19831,21 +14677,12 @@ pub trait IVMRSurface9_Impl: Sized { impl windows_core::RuntimeName for IVMRSurface9 {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IVMRSurface9_Vtbl { - pub const fn new() -> IVMRSurface9_Vtbl - where - Identity: IVMRSurface9_Impl, - { - unsafe extern "system" fn IsSurfaceLocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurface9_Impl, - { + pub const fn new() -> IVMRSurface9_Vtbl { + unsafe extern "system" fn IsSurfaceLocked(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurface9_Impl::IsSurfaceLocked(this).into() } - unsafe extern "system" fn LockSurface(this: *mut core::ffi::c_void, lpsurface: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IVMRSurface9_Impl, - { + unsafe extern "system" fn LockSurface(this: *mut core::ffi::c_void, lpsurface: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRSurface9_Impl::LockSurface(this) { Ok(ok__) => { @@ -19855,17 +14692,11 @@ impl IVMRSurface9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnlockSurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurface9_Impl, - { + unsafe extern "system" fn UnlockSurface(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurface9_Impl::UnlockSurface(this).into() } - unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, lplpsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurface9_Impl, - { + unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, lplpsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRSurface9_Impl::GetSurface(this) { Ok(ok__) => { @@ -19888,7 +14719,7 @@ impl IVMRSurface9_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub trait IVMRSurfaceAllocator_Impl: Sized { +pub trait IVMRSurfaceAllocator_Impl: Sized + windows_core::IUnknownImpl { fn AllocateSurface(&self, dwuserid: usize, lpallocinfo: *const VMRALLOCATIONINFO, lpdwactualbuffers: *mut u32, lplpsurface: *mut Option) -> windows_core::Result<()>; fn FreeSurface(&self, dwid: usize) -> windows_core::Result<()>; fn PrepareSurface(&self, dwuserid: usize, lpsurface: Option<&super::super::Graphics::DirectDraw::IDirectDrawSurface7>, dwsurfaceflags: u32) -> windows_core::Result<()>; @@ -19898,35 +14729,20 @@ pub trait IVMRSurfaceAllocator_Impl: Sized { impl windows_core::RuntimeName for IVMRSurfaceAllocator {} #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] impl IVMRSurfaceAllocator_Vtbl { - pub const fn new() -> IVMRSurfaceAllocator_Vtbl - where - Identity: IVMRSurfaceAllocator_Impl, - { - unsafe extern "system" fn AllocateSurface(this: *mut core::ffi::c_void, dwuserid: usize, lpallocinfo: *const VMRALLOCATIONINFO, lpdwactualbuffers: *mut u32, lplpsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocator_Impl, - { + pub const fn new() -> IVMRSurfaceAllocator_Vtbl { + unsafe extern "system" fn AllocateSurface(this: *mut core::ffi::c_void, dwuserid: usize, lpallocinfo: *const VMRALLOCATIONINFO, lpdwactualbuffers: *mut u32, lplpsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocator_Impl::AllocateSurface(this, core::mem::transmute_copy(&dwuserid), core::mem::transmute_copy(&lpallocinfo), core::mem::transmute_copy(&lpdwactualbuffers), core::mem::transmute_copy(&lplpsurface)).into() } - unsafe extern "system" fn FreeSurface(this: *mut core::ffi::c_void, dwid: usize) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocator_Impl, - { + unsafe extern "system" fn FreeSurface(this: *mut core::ffi::c_void, dwid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocator_Impl::FreeSurface(this, core::mem::transmute_copy(&dwid)).into() } - unsafe extern "system" fn PrepareSurface(this: *mut core::ffi::c_void, dwuserid: usize, lpsurface: *mut core::ffi::c_void, dwsurfaceflags: u32) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocator_Impl, - { + unsafe extern "system" fn PrepareSurface(this: *mut core::ffi::c_void, dwuserid: usize, lpsurface: *mut core::ffi::c_void, dwsurfaceflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocator_Impl::PrepareSurface(this, core::mem::transmute_copy(&dwuserid), windows_core::from_raw_borrowed(&lpsurface), core::mem::transmute_copy(&dwsurfaceflags)).into() } - unsafe extern "system" fn AdviseNotify(this: *mut core::ffi::c_void, lpivmrsurfallocnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocator_Impl, - { + unsafe extern "system" fn AdviseNotify(this: *mut core::ffi::c_void, lpivmrsurfallocnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocator_Impl::AdviseNotify(this, windows_core::from_raw_borrowed(&lpivmrsurfallocnotify)).into() } @@ -19943,7 +14759,7 @@ impl IVMRSurfaceAllocator_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IVMRSurfaceAllocator9_Impl: Sized { +pub trait IVMRSurfaceAllocator9_Impl: Sized + windows_core::IUnknownImpl { fn InitializeDevice(&self, dwuserid: usize, lpallocinfo: *const VMR9AllocationInfo, lpnumbuffers: *mut u32) -> windows_core::Result<()>; fn TerminateDevice(&self, dwid: usize) -> windows_core::Result<()>; fn GetSurface(&self, dwuserid: usize, surfaceindex: u32, surfaceflags: u32) -> windows_core::Result; @@ -19953,28 +14769,16 @@ pub trait IVMRSurfaceAllocator9_Impl: Sized { impl windows_core::RuntimeName for IVMRSurfaceAllocator9 {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IVMRSurfaceAllocator9_Vtbl { - pub const fn new() -> IVMRSurfaceAllocator9_Vtbl - where - Identity: IVMRSurfaceAllocator9_Impl, - { - unsafe extern "system" fn InitializeDevice(this: *mut core::ffi::c_void, dwuserid: usize, lpallocinfo: *const VMR9AllocationInfo, lpnumbuffers: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocator9_Impl, - { + pub const fn new() -> IVMRSurfaceAllocator9_Vtbl { + unsafe extern "system" fn InitializeDevice(this: *mut core::ffi::c_void, dwuserid: usize, lpallocinfo: *const VMR9AllocationInfo, lpnumbuffers: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocator9_Impl::InitializeDevice(this, core::mem::transmute_copy(&dwuserid), core::mem::transmute_copy(&lpallocinfo), core::mem::transmute_copy(&lpnumbuffers)).into() } - unsafe extern "system" fn TerminateDevice(this: *mut core::ffi::c_void, dwid: usize) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocator9_Impl, - { + unsafe extern "system" fn TerminateDevice(this: *mut core::ffi::c_void, dwid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocator9_Impl::TerminateDevice(this, core::mem::transmute_copy(&dwid)).into() } - unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, dwuserid: usize, surfaceindex: u32, surfaceflags: u32, lplpsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocator9_Impl, - { + unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, dwuserid: usize, surfaceindex: u32, surfaceflags: u32, lplpsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRSurfaceAllocator9_Impl::GetSurface(this, core::mem::transmute_copy(&dwuserid), core::mem::transmute_copy(&surfaceindex), core::mem::transmute_copy(&surfaceflags)) { Ok(ok__) => { @@ -19984,10 +14788,7 @@ impl IVMRSurfaceAllocator9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AdviseNotify(this: *mut core::ffi::c_void, lpivmrsurfallocnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocator9_Impl, - { + unsafe extern "system" fn AdviseNotify(this: *mut core::ffi::c_void, lpivmrsurfallocnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocator9_Impl::AdviseNotify(this, windows_core::from_raw_borrowed(&lpivmrsurfallocnotify)).into() } @@ -20011,14 +14812,8 @@ pub trait IVMRSurfaceAllocatorEx9_Impl: Sized + IVMRSurfaceAllocator9_Impl { impl windows_core::RuntimeName for IVMRSurfaceAllocatorEx9 {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IVMRSurfaceAllocatorEx9_Vtbl { - pub const fn new() -> IVMRSurfaceAllocatorEx9_Vtbl - where - Identity: IVMRSurfaceAllocatorEx9_Impl, - { - unsafe extern "system" fn GetSurfaceEx(this: *mut core::ffi::c_void, dwuserid: usize, surfaceindex: u32, surfaceflags: u32, lplpsurface: *mut *mut core::ffi::c_void, lprcdst: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorEx9_Impl, - { + pub const fn new() -> IVMRSurfaceAllocatorEx9_Vtbl { + unsafe extern "system" fn GetSurfaceEx(this: *mut core::ffi::c_void, dwuserid: usize, surfaceindex: u32, surfaceflags: u32, lplpsurface: *mut *mut core::ffi::c_void, lprcdst: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorEx9_Impl::GetSurfaceEx(this, core::mem::transmute_copy(&dwuserid), core::mem::transmute_copy(&surfaceindex), core::mem::transmute_copy(&surfaceflags), core::mem::transmute_copy(&lplpsurface), core::mem::transmute_copy(&lprcdst)).into() } @@ -20029,7 +14824,7 @@ impl IVMRSurfaceAllocatorEx9_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub trait IVMRSurfaceAllocatorNotify_Impl: Sized { +pub trait IVMRSurfaceAllocatorNotify_Impl: Sized + windows_core::IUnknownImpl { fn AdviseSurfaceAllocator(&self, dwuserid: usize, lpivrmsurfaceallocator: Option<&IVMRSurfaceAllocator>) -> windows_core::Result<()>; fn SetDDrawDevice(&self, lpddrawdevice: Option<&super::super::Graphics::DirectDraw::IDirectDraw7>, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()>; fn ChangeDDrawDevice(&self, lpddrawdevice: Option<&super::super::Graphics::DirectDraw::IDirectDraw7>, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()>; @@ -20041,49 +14836,28 @@ pub trait IVMRSurfaceAllocatorNotify_Impl: Sized { impl windows_core::RuntimeName for IVMRSurfaceAllocatorNotify {} #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] impl IVMRSurfaceAllocatorNotify_Vtbl { - pub const fn new() -> IVMRSurfaceAllocatorNotify_Vtbl - where - Identity: IVMRSurfaceAllocatorNotify_Impl, - { - unsafe extern "system" fn AdviseSurfaceAllocator(this: *mut core::ffi::c_void, dwuserid: usize, lpivrmsurfaceallocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify_Impl, - { + pub const fn new() -> IVMRSurfaceAllocatorNotify_Vtbl { + unsafe extern "system" fn AdviseSurfaceAllocator(this: *mut core::ffi::c_void, dwuserid: usize, lpivrmsurfaceallocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify_Impl::AdviseSurfaceAllocator(this, core::mem::transmute_copy(&dwuserid), windows_core::from_raw_borrowed(&lpivrmsurfaceallocator)).into() } - unsafe extern "system" fn SetDDrawDevice(this: *mut core::ffi::c_void, lpddrawdevice: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify_Impl, - { + unsafe extern "system" fn SetDDrawDevice(this: *mut core::ffi::c_void, lpddrawdevice: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify_Impl::SetDDrawDevice(this, windows_core::from_raw_borrowed(&lpddrawdevice), core::mem::transmute_copy(&hmonitor)).into() } - unsafe extern "system" fn ChangeDDrawDevice(this: *mut core::ffi::c_void, lpddrawdevice: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify_Impl, - { + unsafe extern "system" fn ChangeDDrawDevice(this: *mut core::ffi::c_void, lpddrawdevice: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify_Impl::ChangeDDrawDevice(this, windows_core::from_raw_borrowed(&lpddrawdevice), core::mem::transmute_copy(&hmonitor)).into() } - unsafe extern "system" fn RestoreDDrawSurfaces(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify_Impl, - { + unsafe extern "system" fn RestoreDDrawSurfaces(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify_Impl::RestoreDDrawSurfaces(this).into() } - unsafe extern "system" fn NotifyEvent(this: *mut core::ffi::c_void, eventcode: i32, param1: isize, param2: isize) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify_Impl, - { + unsafe extern "system" fn NotifyEvent(this: *mut core::ffi::c_void, eventcode: i32, param1: isize, param2: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify_Impl::NotifyEvent(this, core::mem::transmute_copy(&eventcode), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, clrborder: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify_Impl, - { + unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, clrborder: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify_Impl::SetBorderColor(this, core::mem::transmute_copy(&clrborder)).into() } @@ -20102,7 +14876,7 @@ impl IVMRSurfaceAllocatorNotify_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] -pub trait IVMRSurfaceAllocatorNotify9_Impl: Sized { +pub trait IVMRSurfaceAllocatorNotify9_Impl: Sized + windows_core::IUnknownImpl { fn AdviseSurfaceAllocator(&self, dwuserid: usize, lpivrmsurfaceallocator: Option<&IVMRSurfaceAllocator9>) -> windows_core::Result<()>; fn SetD3DDevice(&self, lpd3ddevice: Option<&super::super::Graphics::Direct3D9::IDirect3DDevice9>, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()>; fn ChangeD3DDevice(&self, lpd3ddevice: Option<&super::super::Graphics::Direct3D9::IDirect3DDevice9>, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()>; @@ -20113,42 +14887,24 @@ pub trait IVMRSurfaceAllocatorNotify9_Impl: Sized { impl windows_core::RuntimeName for IVMRSurfaceAllocatorNotify9 {} #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] impl IVMRSurfaceAllocatorNotify9_Vtbl { - pub const fn new() -> IVMRSurfaceAllocatorNotify9_Vtbl - where - Identity: IVMRSurfaceAllocatorNotify9_Impl, - { - unsafe extern "system" fn AdviseSurfaceAllocator(this: *mut core::ffi::c_void, dwuserid: usize, lpivrmsurfaceallocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify9_Impl, - { + pub const fn new() -> IVMRSurfaceAllocatorNotify9_Vtbl { + unsafe extern "system" fn AdviseSurfaceAllocator(this: *mut core::ffi::c_void, dwuserid: usize, lpivrmsurfaceallocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify9_Impl::AdviseSurfaceAllocator(this, core::mem::transmute_copy(&dwuserid), windows_core::from_raw_borrowed(&lpivrmsurfaceallocator)).into() } - unsafe extern "system" fn SetD3DDevice(this: *mut core::ffi::c_void, lpd3ddevice: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify9_Impl, - { + unsafe extern "system" fn SetD3DDevice(this: *mut core::ffi::c_void, lpd3ddevice: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify9_Impl::SetD3DDevice(this, windows_core::from_raw_borrowed(&lpd3ddevice), core::mem::transmute_copy(&hmonitor)).into() } - unsafe extern "system" fn ChangeD3DDevice(this: *mut core::ffi::c_void, lpd3ddevice: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify9_Impl, - { + unsafe extern "system" fn ChangeD3DDevice(this: *mut core::ffi::c_void, lpd3ddevice: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify9_Impl::ChangeD3DDevice(this, windows_core::from_raw_borrowed(&lpd3ddevice), core::mem::transmute_copy(&hmonitor)).into() } - unsafe extern "system" fn AllocateSurfaceHelper(this: *mut core::ffi::c_void, lpallocinfo: *const VMR9AllocationInfo, lpnumbuffers: *mut u32, lplpsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify9_Impl, - { + unsafe extern "system" fn AllocateSurfaceHelper(this: *mut core::ffi::c_void, lpallocinfo: *const VMR9AllocationInfo, lpnumbuffers: *mut u32, lplpsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify9_Impl::AllocateSurfaceHelper(this, core::mem::transmute_copy(&lpallocinfo), core::mem::transmute_copy(&lpnumbuffers), core::mem::transmute_copy(&lplpsurface)).into() } - unsafe extern "system" fn NotifyEvent(this: *mut core::ffi::c_void, eventcode: i32, param1: isize, param2: isize) -> windows_core::HRESULT - where - Identity: IVMRSurfaceAllocatorNotify9_Impl, - { + unsafe extern "system" fn NotifyEvent(this: *mut core::ffi::c_void, eventcode: i32, param1: isize, param2: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRSurfaceAllocatorNotify9_Impl::NotifyEvent(this, core::mem::transmute_copy(&eventcode), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } @@ -20166,7 +14922,7 @@ impl IVMRSurfaceAllocatorNotify9_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub trait IVMRVideoStreamControl_Impl: Sized { +pub trait IVMRVideoStreamControl_Impl: Sized + windows_core::IUnknownImpl { fn SetColorKey(&self, lpclrkey: *const super::super::Graphics::DirectDraw::DDCOLORKEY) -> windows_core::Result<()>; fn GetColorKey(&self) -> windows_core::Result; fn SetStreamActiveState(&self, factive: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -20176,21 +14932,12 @@ pub trait IVMRVideoStreamControl_Impl: Sized { impl windows_core::RuntimeName for IVMRVideoStreamControl {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IVMRVideoStreamControl_Vtbl { - pub const fn new() -> IVMRVideoStreamControl_Vtbl - where - Identity: IVMRVideoStreamControl_Impl, - { - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, lpclrkey: *const super::super::Graphics::DirectDraw::DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IVMRVideoStreamControl_Impl, - { + pub const fn new() -> IVMRVideoStreamControl_Vtbl { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, lpclrkey: *const super::super::Graphics::DirectDraw::DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRVideoStreamControl_Impl::SetColorKey(this, core::mem::transmute_copy(&lpclrkey)).into() } - unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, lpclrkey: *mut super::super::Graphics::DirectDraw::DDCOLORKEY) -> windows_core::HRESULT - where - Identity: IVMRVideoStreamControl_Impl, - { + unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, lpclrkey: *mut super::super::Graphics::DirectDraw::DDCOLORKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRVideoStreamControl_Impl::GetColorKey(this) { Ok(ok__) => { @@ -20200,17 +14947,11 @@ impl IVMRVideoStreamControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVMRVideoStreamControl_Impl, - { + unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRVideoStreamControl_Impl::SetStreamActiveState(this, core::mem::transmute_copy(&factive)).into() } - unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVMRVideoStreamControl_Impl, - { + unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRVideoStreamControl_Impl::GetStreamActiveState(this) { Ok(ok__) => { @@ -20232,27 +14973,18 @@ impl IVMRVideoStreamControl_Vtbl { iid == &::IID } } -pub trait IVMRVideoStreamControl9_Impl: Sized { +pub trait IVMRVideoStreamControl9_Impl: Sized + windows_core::IUnknownImpl { fn SetStreamActiveState(&self, factive: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetStreamActiveState(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVMRVideoStreamControl9 {} impl IVMRVideoStreamControl9_Vtbl { - pub const fn new() -> IVMRVideoStreamControl9_Vtbl - where - Identity: IVMRVideoStreamControl9_Impl, - { - unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVMRVideoStreamControl9_Impl, - { + pub const fn new() -> IVMRVideoStreamControl9_Vtbl { + unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRVideoStreamControl9_Impl::SetStreamActiveState(this, core::mem::transmute_copy(&factive)).into() } - unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVMRVideoStreamControl9_Impl, - { + unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRVideoStreamControl9_Impl::GetStreamActiveState(this) { Ok(ok__) => { @@ -20273,7 +15005,7 @@ impl IVMRVideoStreamControl9_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IVMRWindowlessControl_Impl: Sized { +pub trait IVMRWindowlessControl_Impl: Sized + windows_core::IUnknownImpl { fn GetNativeVideoSize(&self, lpwidth: *mut i32, lpheight: *mut i32, lparwidth: *mut i32, lparheight: *mut i32) -> windows_core::Result<()>; fn GetMinIdealVideoSize(&self, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::Result<()>; fn GetMaxIdealVideoSize(&self, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::Result<()>; @@ -20294,49 +15026,28 @@ pub trait IVMRWindowlessControl_Impl: Sized { impl windows_core::RuntimeName for IVMRWindowlessControl {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IVMRWindowlessControl_Vtbl { - pub const fn new() -> IVMRWindowlessControl_Vtbl - where - Identity: IVMRWindowlessControl_Impl, - { - unsafe extern "system" fn GetNativeVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32, lparwidth: *mut i32, lparheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + pub const fn new() -> IVMRWindowlessControl_Vtbl { + unsafe extern "system" fn GetNativeVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32, lparwidth: *mut i32, lparheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::GetNativeVideoSize(this, core::mem::transmute_copy(&lpwidth), core::mem::transmute_copy(&lpheight), core::mem::transmute_copy(&lparwidth), core::mem::transmute_copy(&lparheight)).into() } - unsafe extern "system" fn GetMinIdealVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn GetMinIdealVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::GetMinIdealVideoSize(this, core::mem::transmute_copy(&lpwidth), core::mem::transmute_copy(&lpheight)).into() } - unsafe extern "system" fn GetMaxIdealVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn GetMaxIdealVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::GetMaxIdealVideoSize(this, core::mem::transmute_copy(&lpwidth), core::mem::transmute_copy(&lpheight)).into() } - unsafe extern "system" fn SetVideoPosition(this: *mut core::ffi::c_void, lpsrcrect: *const super::super::Foundation::RECT, lpdstrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn SetVideoPosition(this: *mut core::ffi::c_void, lpsrcrect: *const super::super::Foundation::RECT, lpdstrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::SetVideoPosition(this, core::mem::transmute_copy(&lpsrcrect), core::mem::transmute_copy(&lpdstrect)).into() } - unsafe extern "system" fn GetVideoPosition(this: *mut core::ffi::c_void, lpsrcrect: *mut super::super::Foundation::RECT, lpdstrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn GetVideoPosition(this: *mut core::ffi::c_void, lpsrcrect: *mut super::super::Foundation::RECT, lpdstrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::GetVideoPosition(this, core::mem::transmute_copy(&lpsrcrect), core::mem::transmute_copy(&lpdstrect)).into() } - unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, lpaspectratiomode: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, lpaspectratiomode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRWindowlessControl_Impl::GetAspectRatioMode(this) { Ok(ok__) => { @@ -20346,38 +15057,23 @@ impl IVMRWindowlessControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, aspectratiomode: u32) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, aspectratiomode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::SetAspectRatioMode(this, core::mem::transmute_copy(&aspectratiomode)).into() } - unsafe extern "system" fn SetVideoClippingWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn SetVideoClippingWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::SetVideoClippingWindow(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn RepaintVideo(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn RepaintVideo(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::RepaintVideo(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&hdc)).into() } - unsafe extern "system" fn DisplayModeChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn DisplayModeChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::DisplayModeChanged(this).into() } - unsafe extern "system" fn GetCurrentImage(this: *mut core::ffi::c_void, lpdib: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn GetCurrentImage(this: *mut core::ffi::c_void, lpdib: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRWindowlessControl_Impl::GetCurrentImage(this) { Ok(ok__) => { @@ -20387,17 +15083,11 @@ impl IVMRWindowlessControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::SetBorderColor(this, core::mem::transmute_copy(&clr)).into() } - unsafe extern "system" fn GetBorderColor(this: *mut core::ffi::c_void, lpclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn GetBorderColor(this: *mut core::ffi::c_void, lpclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRWindowlessControl_Impl::GetBorderColor(this) { Ok(ok__) => { @@ -20407,17 +15097,11 @@ impl IVMRWindowlessControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn SetColorKey(this: *mut core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl_Impl::SetColorKey(this, core::mem::transmute_copy(&clr)).into() } - unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, lpclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl_Impl, - { + unsafe extern "system" fn GetColorKey(this: *mut core::ffi::c_void, lpclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRWindowlessControl_Impl::GetColorKey(this) { Ok(ok__) => { @@ -20451,7 +15135,7 @@ impl IVMRWindowlessControl_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IVMRWindowlessControl9_Impl: Sized { +pub trait IVMRWindowlessControl9_Impl: Sized + windows_core::IUnknownImpl { fn GetNativeVideoSize(&self, lpwidth: *mut i32, lpheight: *mut i32, lparwidth: *mut i32, lparheight: *mut i32) -> windows_core::Result<()>; fn GetMinIdealVideoSize(&self, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::Result<()>; fn GetMaxIdealVideoSize(&self, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::Result<()>; @@ -20470,49 +15154,28 @@ pub trait IVMRWindowlessControl9_Impl: Sized { impl windows_core::RuntimeName for IVMRWindowlessControl9 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IVMRWindowlessControl9_Vtbl { - pub const fn new() -> IVMRWindowlessControl9_Vtbl - where - Identity: IVMRWindowlessControl9_Impl, - { - unsafe extern "system" fn GetNativeVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32, lparwidth: *mut i32, lparheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + pub const fn new() -> IVMRWindowlessControl9_Vtbl { + unsafe extern "system" fn GetNativeVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32, lparwidth: *mut i32, lparheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl9_Impl::GetNativeVideoSize(this, core::mem::transmute_copy(&lpwidth), core::mem::transmute_copy(&lpheight), core::mem::transmute_copy(&lparwidth), core::mem::transmute_copy(&lparheight)).into() } - unsafe extern "system" fn GetMinIdealVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn GetMinIdealVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl9_Impl::GetMinIdealVideoSize(this, core::mem::transmute_copy(&lpwidth), core::mem::transmute_copy(&lpheight)).into() } - unsafe extern "system" fn GetMaxIdealVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn GetMaxIdealVideoSize(this: *mut core::ffi::c_void, lpwidth: *mut i32, lpheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl9_Impl::GetMaxIdealVideoSize(this, core::mem::transmute_copy(&lpwidth), core::mem::transmute_copy(&lpheight)).into() } - unsafe extern "system" fn SetVideoPosition(this: *mut core::ffi::c_void, lpsrcrect: *const super::super::Foundation::RECT, lpdstrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn SetVideoPosition(this: *mut core::ffi::c_void, lpsrcrect: *const super::super::Foundation::RECT, lpdstrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl9_Impl::SetVideoPosition(this, core::mem::transmute_copy(&lpsrcrect), core::mem::transmute_copy(&lpdstrect)).into() } - unsafe extern "system" fn GetVideoPosition(this: *mut core::ffi::c_void, lpsrcrect: *mut super::super::Foundation::RECT, lpdstrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn GetVideoPosition(this: *mut core::ffi::c_void, lpsrcrect: *mut super::super::Foundation::RECT, lpdstrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl9_Impl::GetVideoPosition(this, core::mem::transmute_copy(&lpsrcrect), core::mem::transmute_copy(&lpdstrect)).into() } - unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, lpaspectratiomode: *mut u32) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, lpaspectratiomode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRWindowlessControl9_Impl::GetAspectRatioMode(this) { Ok(ok__) => { @@ -20522,38 +15185,23 @@ impl IVMRWindowlessControl9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, aspectratiomode: u32) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, aspectratiomode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl9_Impl::SetAspectRatioMode(this, core::mem::transmute_copy(&aspectratiomode)).into() } - unsafe extern "system" fn SetVideoClippingWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn SetVideoClippingWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl9_Impl::SetVideoClippingWindow(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn RepaintVideo(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn RepaintVideo(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl9_Impl::RepaintVideo(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&hdc)).into() } - unsafe extern "system" fn DisplayModeChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn DisplayModeChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl9_Impl::DisplayModeChanged(this).into() } - unsafe extern "system" fn GetCurrentImage(this: *mut core::ffi::c_void, lpdib: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn GetCurrentImage(this: *mut core::ffi::c_void, lpdib: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRWindowlessControl9_Impl::GetCurrentImage(this) { Ok(ok__) => { @@ -20563,17 +15211,11 @@ impl IVMRWindowlessControl9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRWindowlessControl9_Impl::SetBorderColor(this, core::mem::transmute_copy(&clr)).into() } - unsafe extern "system" fn GetBorderColor(this: *mut core::ffi::c_void, lpclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVMRWindowlessControl9_Impl, - { + unsafe extern "system" fn GetBorderColor(this: *mut core::ffi::c_void, lpclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRWindowlessControl9_Impl::GetBorderColor(this) { Ok(ok__) => { @@ -20605,7 +15247,7 @@ impl IVMRWindowlessControl9_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub trait IVPBaseConfig_Impl: Sized { +pub trait IVPBaseConfig_Impl: Sized + windows_core::IUnknownImpl { fn GetConnectInfo(&self, pdwnumconnectinfo: *mut u32, pddvpconnectinfo: *mut super::super::Graphics::DirectDraw::DDVIDEOPORTCONNECT) -> windows_core::Result<()>; fn SetConnectInfo(&self, dwchosenentry: u32) -> windows_core::Result<()>; fn GetVPDataInfo(&self, pamvpdatainfo: *mut AMVPDATAINFO) -> windows_core::Result<()>; @@ -20624,70 +15266,40 @@ pub trait IVPBaseConfig_Impl: Sized { impl windows_core::RuntimeName for IVPBaseConfig {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IVPBaseConfig_Vtbl { - pub const fn new() -> IVPBaseConfig_Vtbl - where - Identity: IVPBaseConfig_Impl, - { - unsafe extern "system" fn GetConnectInfo(this: *mut core::ffi::c_void, pdwnumconnectinfo: *mut u32, pddvpconnectinfo: *mut super::super::Graphics::DirectDraw::DDVIDEOPORTCONNECT) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + pub const fn new() -> IVPBaseConfig_Vtbl { + unsafe extern "system" fn GetConnectInfo(this: *mut core::ffi::c_void, pdwnumconnectinfo: *mut u32, pddvpconnectinfo: *mut super::super::Graphics::DirectDraw::DDVIDEOPORTCONNECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::GetConnectInfo(this, core::mem::transmute_copy(&pdwnumconnectinfo), core::mem::transmute_copy(&pddvpconnectinfo)).into() } - unsafe extern "system" fn SetConnectInfo(this: *mut core::ffi::c_void, dwchosenentry: u32) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn SetConnectInfo(this: *mut core::ffi::c_void, dwchosenentry: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::SetConnectInfo(this, core::mem::transmute_copy(&dwchosenentry)).into() } - unsafe extern "system" fn GetVPDataInfo(this: *mut core::ffi::c_void, pamvpdatainfo: *mut AMVPDATAINFO) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn GetVPDataInfo(this: *mut core::ffi::c_void, pamvpdatainfo: *mut AMVPDATAINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::GetVPDataInfo(this, core::mem::transmute_copy(&pamvpdatainfo)).into() } - unsafe extern "system" fn GetMaxPixelRate(this: *mut core::ffi::c_void, pamvpsize: *mut AMVPSIZE, pdwmaxpixelspersecond: *mut u32) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn GetMaxPixelRate(this: *mut core::ffi::c_void, pamvpsize: *mut AMVPSIZE, pdwmaxpixelspersecond: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::GetMaxPixelRate(this, core::mem::transmute_copy(&pamvpsize), core::mem::transmute_copy(&pdwmaxpixelspersecond)).into() } - unsafe extern "system" fn InformVPInputFormats(this: *mut core::ffi::c_void, dwnumformats: u32, pddpixelformats: *mut super::super::Graphics::DirectDraw::DDPIXELFORMAT) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn InformVPInputFormats(this: *mut core::ffi::c_void, dwnumformats: u32, pddpixelformats: *mut super::super::Graphics::DirectDraw::DDPIXELFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::InformVPInputFormats(this, core::mem::transmute_copy(&dwnumformats), core::mem::transmute_copy(&pddpixelformats)).into() } - unsafe extern "system" fn GetVideoFormats(this: *mut core::ffi::c_void, pdwnumformats: *mut u32, pddpixelformats: *mut super::super::Graphics::DirectDraw::DDPIXELFORMAT) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn GetVideoFormats(this: *mut core::ffi::c_void, pdwnumformats: *mut u32, pddpixelformats: *mut super::super::Graphics::DirectDraw::DDPIXELFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::GetVideoFormats(this, core::mem::transmute_copy(&pdwnumformats), core::mem::transmute_copy(&pddpixelformats)).into() } - unsafe extern "system" fn SetVideoFormat(this: *mut core::ffi::c_void, dwchosenentry: u32) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn SetVideoFormat(this: *mut core::ffi::c_void, dwchosenentry: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::SetVideoFormat(this, core::mem::transmute_copy(&dwchosenentry)).into() } - unsafe extern "system" fn SetInvertPolarity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn SetInvertPolarity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::SetInvertPolarity(this).into() } - unsafe extern "system" fn GetOverlaySurface(this: *mut core::ffi::c_void, ppddoverlaysurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn GetOverlaySurface(this: *mut core::ffi::c_void, ppddoverlaysurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVPBaseConfig_Impl::GetOverlaySurface(this) { Ok(ok__) => { @@ -20697,31 +15309,19 @@ impl IVPBaseConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDirectDrawKernelHandle(this: *mut core::ffi::c_void, dwddkernelhandle: usize) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn SetDirectDrawKernelHandle(this: *mut core::ffi::c_void, dwddkernelhandle: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::SetDirectDrawKernelHandle(this, core::mem::transmute_copy(&dwddkernelhandle)).into() } - unsafe extern "system" fn SetVideoPortID(this: *mut core::ffi::c_void, dwvideoportid: u32) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn SetVideoPortID(this: *mut core::ffi::c_void, dwvideoportid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::SetVideoPortID(this, core::mem::transmute_copy(&dwvideoportid)).into() } - unsafe extern "system" fn SetDDSurfaceKernelHandles(this: *mut core::ffi::c_void, chandles: u32, rgddkernelhandles: *mut usize) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn SetDDSurfaceKernelHandles(this: *mut core::ffi::c_void, chandles: u32, rgddkernelhandles: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::SetDDSurfaceKernelHandles(this, core::mem::transmute_copy(&chandles), core::mem::transmute_copy(&rgddkernelhandles)).into() } - unsafe extern "system" fn SetSurfaceParameters(this: *mut core::ffi::c_void, dwpitch: u32, dwxorigin: u32, dwyorigin: u32) -> windows_core::HRESULT - where - Identity: IVPBaseConfig_Impl, - { + unsafe extern "system" fn SetSurfaceParameters(this: *mut core::ffi::c_void, dwpitch: u32, dwxorigin: u32, dwyorigin: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseConfig_Impl::SetSurfaceParameters(this, core::mem::transmute_copy(&dwpitch), core::mem::transmute_copy(&dwxorigin), core::mem::transmute_copy(&dwyorigin)).into() } @@ -20746,19 +15346,13 @@ impl IVPBaseConfig_Vtbl { iid == &::IID } } -pub trait IVPBaseNotify_Impl: Sized { +pub trait IVPBaseNotify_Impl: Sized + windows_core::IUnknownImpl { fn RenegotiateVPParameters(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVPBaseNotify {} impl IVPBaseNotify_Vtbl { - pub const fn new() -> IVPBaseNotify_Vtbl - where - Identity: IVPBaseNotify_Impl, - { - unsafe extern "system" fn RenegotiateVPParameters(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVPBaseNotify_Impl, - { + pub const fn new() -> IVPBaseNotify_Vtbl { + unsafe extern "system" fn RenegotiateVPParameters(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPBaseNotify_Impl::RenegotiateVPParameters(this).into() } @@ -20777,21 +15371,12 @@ pub trait IVPConfig_Impl: Sized + IVPBaseConfig_Impl { impl windows_core::RuntimeName for IVPConfig {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IVPConfig_Vtbl { - pub const fn new() -> IVPConfig_Vtbl - where - Identity: IVPConfig_Impl, - { - unsafe extern "system" fn IsVPDecimationAllowed(this: *mut core::ffi::c_void, pbisdecimationallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVPConfig_Impl, - { + pub const fn new() -> IVPConfig_Vtbl { + unsafe extern "system" fn IsVPDecimationAllowed(this: *mut core::ffi::c_void, pbisdecimationallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPConfig_Impl::IsVPDecimationAllowed(this, core::mem::transmute_copy(&pbisdecimationallowed)).into() } - unsafe extern "system" fn SetScalingFactors(this: *mut core::ffi::c_void, pamvpsize: *mut AMVPSIZE) -> windows_core::HRESULT - where - Identity: IVPConfig_Impl, - { + unsafe extern "system" fn SetScalingFactors(this: *mut core::ffi::c_void, pamvpsize: *mut AMVPSIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPConfig_Impl::SetScalingFactors(this, core::mem::transmute_copy(&pamvpsize)).into() } @@ -20805,27 +15390,18 @@ impl IVPConfig_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IVPManager_Impl: Sized { +pub trait IVPManager_Impl: Sized + windows_core::IUnknownImpl { fn SetVideoPortIndex(&self, dwvideoportindex: u32) -> windows_core::Result<()>; fn GetVideoPortIndex(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVPManager {} impl IVPManager_Vtbl { - pub const fn new() -> IVPManager_Vtbl - where - Identity: IVPManager_Impl, - { - unsafe extern "system" fn SetVideoPortIndex(this: *mut core::ffi::c_void, dwvideoportindex: u32) -> windows_core::HRESULT - where - Identity: IVPManager_Impl, - { + pub const fn new() -> IVPManager_Vtbl { + unsafe extern "system" fn SetVideoPortIndex(this: *mut core::ffi::c_void, dwvideoportindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPManager_Impl::SetVideoPortIndex(this, core::mem::transmute_copy(&dwvideoportindex)).into() } - unsafe extern "system" fn GetVideoPortIndex(this: *mut core::ffi::c_void, pdwvideoportindex: *mut u32) -> windows_core::HRESULT - where - Identity: IVPManager_Impl, - { + unsafe extern "system" fn GetVideoPortIndex(this: *mut core::ffi::c_void, pdwvideoportindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVPManager_Impl::GetVideoPortIndex(this) { Ok(ok__) => { @@ -20851,21 +15427,12 @@ pub trait IVPNotify_Impl: Sized + IVPBaseNotify_Impl { } impl windows_core::RuntimeName for IVPNotify {} impl IVPNotify_Vtbl { - pub const fn new() -> IVPNotify_Vtbl - where - Identity: IVPNotify_Impl, - { - unsafe extern "system" fn SetDeinterlaceMode(this: *mut core::ffi::c_void, mode: AMVP_MODE) -> windows_core::HRESULT - where - Identity: IVPNotify_Impl, - { + pub const fn new() -> IVPNotify_Vtbl { + unsafe extern "system" fn SetDeinterlaceMode(this: *mut core::ffi::c_void, mode: AMVP_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPNotify_Impl::SetDeinterlaceMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn GetDeinterlaceMode(this: *mut core::ffi::c_void, pmode: *mut AMVP_MODE) -> windows_core::HRESULT - where - Identity: IVPNotify_Impl, - { + unsafe extern "system" fn GetDeinterlaceMode(this: *mut core::ffi::c_void, pmode: *mut AMVP_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPNotify_Impl::GetDeinterlaceMode(this, core::mem::transmute_copy(&pmode)).into() } @@ -20885,21 +15452,12 @@ pub trait IVPNotify2_Impl: Sized + IVPNotify_Impl { } impl windows_core::RuntimeName for IVPNotify2 {} impl IVPNotify2_Vtbl { - pub const fn new() -> IVPNotify2_Vtbl - where - Identity: IVPNotify2_Impl, - { - unsafe extern "system" fn SetVPSyncMaster(this: *mut core::ffi::c_void, bvpsyncmaster: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVPNotify2_Impl, - { + pub const fn new() -> IVPNotify2_Vtbl { + unsafe extern "system" fn SetVPSyncMaster(this: *mut core::ffi::c_void, bvpsyncmaster: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPNotify2_Impl::SetVPSyncMaster(this, core::mem::transmute_copy(&bvpsyncmaster)).into() } - unsafe extern "system" fn GetVPSyncMaster(this: *mut core::ffi::c_void, pbvpsyncmaster: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVPNotify2_Impl, - { + unsafe extern "system" fn GetVPSyncMaster(this: *mut core::ffi::c_void, pbvpsyncmaster: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPNotify2_Impl::GetVPSyncMaster(this, core::mem::transmute_copy(&pbvpsyncmaster)).into() } @@ -20919,10 +15477,7 @@ pub trait IVPVBIConfig_Impl: Sized + IVPBaseConfig_Impl {} impl windows_core::RuntimeName for IVPVBIConfig {} #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IVPVBIConfig_Vtbl { - pub const fn new() -> IVPVBIConfig_Vtbl - where - Identity: IVPVBIConfig_Impl, - { + pub const fn new() -> IVPVBIConfig_Vtbl { Self { base__: IVPBaseConfig_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -20932,10 +15487,7 @@ impl IVPVBIConfig_Vtbl { pub trait IVPVBINotify_Impl: Sized + IVPBaseNotify_Impl {} impl windows_core::RuntimeName for IVPVBINotify {} impl IVPVBINotify_Vtbl { - pub const fn new() -> IVPVBINotify_Vtbl - where - Identity: IVPVBINotify_Impl, - { + pub const fn new() -> IVPVBINotify_Vtbl { Self { base__: IVPBaseNotify_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -20945,45 +15497,30 @@ impl IVPVBINotify_Vtbl { pub trait IVideoEncoder_Impl: Sized + IEncoderAPI_Impl {} impl windows_core::RuntimeName for IVideoEncoder {} impl IVideoEncoder_Vtbl { - pub const fn new() -> IVideoEncoder_Vtbl - where - Identity: IVideoEncoder_Impl, - { + pub const fn new() -> IVideoEncoder_Vtbl { Self { base__: IEncoderAPI_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IVideoFrameStep_Impl: Sized { +pub trait IVideoFrameStep_Impl: Sized + windows_core::IUnknownImpl { fn Step(&self, dwframes: u32, pstepobject: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn CanStep(&self, bmultiple: i32, pstepobject: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn CancelStep(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVideoFrameStep {} impl IVideoFrameStep_Vtbl { - pub const fn new() -> IVideoFrameStep_Vtbl - where - Identity: IVideoFrameStep_Impl, - { - unsafe extern "system" fn Step(this: *mut core::ffi::c_void, dwframes: u32, pstepobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoFrameStep_Impl, - { + pub const fn new() -> IVideoFrameStep_Vtbl { + unsafe extern "system" fn Step(this: *mut core::ffi::c_void, dwframes: u32, pstepobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoFrameStep_Impl::Step(this, core::mem::transmute_copy(&dwframes), windows_core::from_raw_borrowed(&pstepobject)).into() } - unsafe extern "system" fn CanStep(this: *mut core::ffi::c_void, bmultiple: i32, pstepobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoFrameStep_Impl, - { + unsafe extern "system" fn CanStep(this: *mut core::ffi::c_void, bmultiple: i32, pstepobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoFrameStep_Impl::CanStep(this, core::mem::transmute_copy(&bmultiple), windows_core::from_raw_borrowed(&pstepobject)).into() } - unsafe extern "system" fn CancelStep(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoFrameStep_Impl, - { + unsafe extern "system" fn CancelStep(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoFrameStep_Impl::CancelStep(this).into() } @@ -20998,7 +15535,7 @@ impl IVideoFrameStep_Vtbl { iid == &::IID } } -pub trait IVideoProcAmp_Impl: Sized { +pub trait IVideoProcAmp_Impl: Sized + windows_core::IUnknownImpl { fn get_BacklightCompensation(&self, pvalue: *mut i32, pflags: *mut i32) -> windows_core::Result<()>; fn put_BacklightCompensation(&self, value: i32, flags: i32) -> windows_core::Result<()>; fn getRange_BacklightCompensation(&self, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::Result<()>; @@ -21041,280 +15578,160 @@ pub trait IVideoProcAmp_Impl: Sized { } impl windows_core::RuntimeName for IVideoProcAmp {} impl IVideoProcAmp_Vtbl { - pub const fn new() -> IVideoProcAmp_Vtbl - where - Identity: IVideoProcAmp_Impl, - { - unsafe extern "system" fn get_BacklightCompensation(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + pub const fn new() -> IVideoProcAmp_Vtbl { + unsafe extern "system" fn get_BacklightCompensation(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_BacklightCompensation(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_BacklightCompensation(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_BacklightCompensation(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_BacklightCompensation(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_BacklightCompensation(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_BacklightCompensation(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_BacklightCompensation(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Brightness(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_Brightness(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_Brightness(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Brightness(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_Brightness(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_Brightness(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Brightness(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_Brightness(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_Brightness(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_ColorEnable(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_ColorEnable(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_ColorEnable(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_ColorEnable(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_ColorEnable(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_ColorEnable(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_ColorEnable(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_ColorEnable(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_ColorEnable(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Contrast(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_Contrast(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_Contrast(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Contrast(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_Contrast(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_Contrast(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Contrast(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_Contrast(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_Contrast(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Gamma(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_Gamma(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_Gamma(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Gamma(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_Gamma(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_Gamma(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Gamma(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_Gamma(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_Gamma(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Saturation(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_Saturation(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_Saturation(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Saturation(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_Saturation(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_Saturation(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Saturation(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_Saturation(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_Saturation(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Sharpness(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_Sharpness(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_Sharpness(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Sharpness(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_Sharpness(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_Sharpness(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Sharpness(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_Sharpness(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_Sharpness(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_WhiteBalance(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_WhiteBalance(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_WhiteBalance(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_WhiteBalance(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_WhiteBalance(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_WhiteBalance(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_WhiteBalance(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_WhiteBalance(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_WhiteBalance(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Gain(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_Gain(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_Gain(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Gain(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_Gain(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_Gain(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Gain(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_Gain(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_Gain(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_Hue(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_Hue(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_Hue(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_Hue(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_Hue(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_Hue(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_Hue(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_Hue(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_Hue(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_DigitalMultiplier(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_DigitalMultiplier(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_DigitalMultiplier(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_DigitalMultiplier(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_DigitalMultiplier(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_DigitalMultiplier(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_DigitalMultiplier(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_DigitalMultiplier(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_DigitalMultiplier(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_PowerlineFrequency(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_PowerlineFrequency(this: *mut core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_PowerlineFrequency(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_PowerlineFrequency(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_PowerlineFrequency(this: *mut core::ffi::c_void, value: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_PowerlineFrequency(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_PowerlineFrequency(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_PowerlineFrequency(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_PowerlineFrequency(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } - unsafe extern "system" fn get_WhiteBalanceComponent(this: *mut core::ffi::c_void, pvalue1: *mut i32, pvalue2: *mut i32, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn get_WhiteBalanceComponent(this: *mut core::ffi::c_void, pvalue1: *mut i32, pvalue2: *mut i32, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::get_WhiteBalanceComponent(this, core::mem::transmute_copy(&pvalue1), core::mem::transmute_copy(&pvalue2), core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn put_WhiteBalanceComponent(this: *mut core::ffi::c_void, value1: i32, value2: i32, flags: i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn put_WhiteBalanceComponent(this: *mut core::ffi::c_void, value1: i32, value2: i32, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::put_WhiteBalanceComponent(this, core::mem::transmute_copy(&value1), core::mem::transmute_copy(&value2), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn getRange_WhiteBalanceComponent(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoProcAmp_Impl, - { + unsafe extern "system" fn getRange_WhiteBalanceComponent(this: *mut core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoProcAmp_Impl::getRange_WhiteBalanceComponent(this, core::mem::transmute_copy(&pmin), core::mem::transmute_copy(&pmax), core::mem::transmute_copy(&psteppingdelta), core::mem::transmute_copy(&pdefault), core::mem::transmute_copy(&pcapsflag)).into() } @@ -21411,21 +15828,12 @@ pub trait IVideoWindow_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IVideoWindow {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] impl IVideoWindow_Vtbl { - pub const fn new() -> IVideoWindow_Vtbl - where - Identity: IVideoWindow_Impl, - { - unsafe extern "system" fn SetCaption(this: *mut core::ffi::c_void, strcaption: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + pub const fn new() -> IVideoWindow_Vtbl { + unsafe extern "system" fn SetCaption(this: *mut core::ffi::c_void, strcaption: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetCaption(this, core::mem::transmute(&strcaption)).into() } - unsafe extern "system" fn Caption(this: *mut core::ffi::c_void, strcaption: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn Caption(this: *mut core::ffi::c_void, strcaption: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::Caption(this) { Ok(ok__) => { @@ -21435,17 +15843,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWindowStyle(this: *mut core::ffi::c_void, windowstyle: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetWindowStyle(this: *mut core::ffi::c_void, windowstyle: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetWindowStyle(this, core::mem::transmute_copy(&windowstyle)).into() } - unsafe extern "system" fn WindowStyle(this: *mut core::ffi::c_void, windowstyle: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn WindowStyle(this: *mut core::ffi::c_void, windowstyle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::WindowStyle(this) { Ok(ok__) => { @@ -21455,17 +15857,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWindowStyleEx(this: *mut core::ffi::c_void, windowstyleex: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetWindowStyleEx(this: *mut core::ffi::c_void, windowstyleex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetWindowStyleEx(this, core::mem::transmute_copy(&windowstyleex)).into() } - unsafe extern "system" fn WindowStyleEx(this: *mut core::ffi::c_void, windowstyleex: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn WindowStyleEx(this: *mut core::ffi::c_void, windowstyleex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::WindowStyleEx(this) { Ok(ok__) => { @@ -21475,17 +15871,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoShow(this: *mut core::ffi::c_void, autoshow: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetAutoShow(this: *mut core::ffi::c_void, autoshow: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetAutoShow(this, core::mem::transmute_copy(&autoshow)).into() } - unsafe extern "system" fn AutoShow(this: *mut core::ffi::c_void, autoshow: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn AutoShow(this: *mut core::ffi::c_void, autoshow: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::AutoShow(this) { Ok(ok__) => { @@ -21495,17 +15885,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWindowState(this: *mut core::ffi::c_void, windowstate: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetWindowState(this: *mut core::ffi::c_void, windowstate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetWindowState(this, core::mem::transmute_copy(&windowstate)).into() } - unsafe extern "system" fn WindowState(this: *mut core::ffi::c_void, windowstate: *mut super::super::UI::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn WindowState(this: *mut core::ffi::c_void, windowstate: *mut super::super::UI::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::WindowState(this) { Ok(ok__) => { @@ -21515,17 +15899,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackgroundPalette(this: *mut core::ffi::c_void, backgroundpalette: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetBackgroundPalette(this: *mut core::ffi::c_void, backgroundpalette: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetBackgroundPalette(this, core::mem::transmute_copy(&backgroundpalette)).into() } - unsafe extern "system" fn BackgroundPalette(this: *mut core::ffi::c_void, pbackgroundpalette: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn BackgroundPalette(this: *mut core::ffi::c_void, pbackgroundpalette: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::BackgroundPalette(this) { Ok(ok__) => { @@ -21535,17 +15913,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, visible: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, visible: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetVisible(this, core::mem::transmute_copy(&visible)).into() } - unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, pvisible: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, pvisible: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::Visible(this) { Ok(ok__) => { @@ -21555,17 +15927,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, left: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, left: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetLeft(this, core::mem::transmute_copy(&left)).into() } - unsafe extern "system" fn Left(this: *mut core::ffi::c_void, pleft: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn Left(this: *mut core::ffi::c_void, pleft: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::Left(this) { Ok(ok__) => { @@ -21575,17 +15941,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, width: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, width: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetWidth(this, core::mem::transmute_copy(&width)).into() } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::Width(this) { Ok(ok__) => { @@ -21595,17 +15955,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, top: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, top: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetTop(this, core::mem::transmute_copy(&top)).into() } - unsafe extern "system" fn Top(this: *mut core::ffi::c_void, ptop: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn Top(this: *mut core::ffi::c_void, ptop: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::Top(this) { Ok(ok__) => { @@ -21615,17 +15969,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHeight(this: *mut core::ffi::c_void, height: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetHeight(this: *mut core::ffi::c_void, height: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetHeight(this, core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn Height(this: *mut core::ffi::c_void, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn Height(this: *mut core::ffi::c_void, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::Height(this) { Ok(ok__) => { @@ -21635,17 +15983,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, owner: isize) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, owner: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetOwner(this, core::mem::transmute_copy(&owner)).into() } - unsafe extern "system" fn Owner(this: *mut core::ffi::c_void, owner: *mut isize) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn Owner(this: *mut core::ffi::c_void, owner: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::Owner(this) { Ok(ok__) => { @@ -21655,17 +15997,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMessageDrain(this: *mut core::ffi::c_void, drain: isize) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetMessageDrain(this: *mut core::ffi::c_void, drain: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetMessageDrain(this, core::mem::transmute_copy(&drain)).into() } - unsafe extern "system" fn MessageDrain(this: *mut core::ffi::c_void, drain: *mut isize) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn MessageDrain(this: *mut core::ffi::c_void, drain: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::MessageDrain(this) { Ok(ok__) => { @@ -21675,10 +16011,7 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BorderColor(this: *mut core::ffi::c_void, color: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn BorderColor(this: *mut core::ffi::c_void, color: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::BorderColor(this) { Ok(ok__) => { @@ -21688,17 +16021,11 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, color: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, color: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetBorderColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn FullScreenMode(this: *mut core::ffi::c_void, fullscreenmode: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn FullScreenMode(this: *mut core::ffi::c_void, fullscreenmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::FullScreenMode(this) { Ok(ok__) => { @@ -21708,73 +16035,43 @@ impl IVideoWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFullScreenMode(this: *mut core::ffi::c_void, fullscreenmode: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetFullScreenMode(this: *mut core::ffi::c_void, fullscreenmode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetFullScreenMode(this, core::mem::transmute_copy(&fullscreenmode)).into() } - unsafe extern "system" fn SetWindowForeground(this: *mut core::ffi::c_void, focus: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetWindowForeground(this: *mut core::ffi::c_void, focus: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetWindowForeground(this, core::mem::transmute_copy(&focus)).into() } - unsafe extern "system" fn NotifyOwnerMessage(this: *mut core::ffi::c_void, hwnd: isize, umsg: i32, wparam: isize, lparam: isize) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn NotifyOwnerMessage(this: *mut core::ffi::c_void, hwnd: isize, umsg: i32, wparam: isize, lparam: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::NotifyOwnerMessage(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn SetWindowPosition(this: *mut core::ffi::c_void, left: i32, top: i32, width: i32, height: i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn SetWindowPosition(this: *mut core::ffi::c_void, left: i32, top: i32, width: i32, height: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::SetWindowPosition(this, 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 GetWindowPosition(this: *mut core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn GetWindowPosition(this: *mut core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::GetWindowPosition(this, core::mem::transmute_copy(&pleft), core::mem::transmute_copy(&ptop), core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn GetMinIdealImageSize(this: *mut core::ffi::c_void, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn GetMinIdealImageSize(this: *mut core::ffi::c_void, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::GetMinIdealImageSize(this, core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn GetMaxIdealImageSize(this: *mut core::ffi::c_void, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn GetMaxIdealImageSize(this: *mut core::ffi::c_void, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::GetMaxIdealImageSize(this, core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn GetRestorePosition(this: *mut core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn GetRestorePosition(this: *mut core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::GetRestorePosition(this, core::mem::transmute_copy(&pleft), core::mem::transmute_copy(&ptop), core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn HideCursor(this: *mut core::ffi::c_void, hidecursor: OA_BOOL) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn HideCursor(this: *mut core::ffi::c_void, hidecursor: OA_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoWindow_Impl::HideCursor(this, core::mem::transmute_copy(&hidecursor)).into() } - unsafe extern "system" fn IsCursorHidden(this: *mut core::ffi::c_void, cursorhidden: *mut i32) -> windows_core::HRESULT - where - Identity: IVideoWindow_Impl, - { + unsafe extern "system" fn IsCursorHidden(this: *mut core::ffi::c_void, cursorhidden: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVideoWindow_Impl::IsCursorHidden(this) { Ok(ok__) => { @@ -21832,7 +16129,7 @@ impl IVideoWindow_Vtbl { } } #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_Media_WindowsMediaFormat"))] -pub trait IWMCodecAMVideoAccelerator_Impl: Sized { +pub trait IWMCodecAMVideoAccelerator_Impl: Sized + windows_core::IUnknownImpl { fn SetAcceleratorInterface(&self, piamva: Option<&IAMVideoAccelerator>) -> windows_core::Result<()>; fn NegotiateConnection(&self, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn SetPlayerNotify(&self, phook: Option<&super::WindowsMediaFormat::IWMPlayerTimestampHook>) -> windows_core::Result<()>; @@ -21841,28 +16138,16 @@ pub trait IWMCodecAMVideoAccelerator_Impl: Sized { impl windows_core::RuntimeName for IWMCodecAMVideoAccelerator {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_Media_WindowsMediaFormat"))] impl IWMCodecAMVideoAccelerator_Vtbl { - pub const fn new() -> IWMCodecAMVideoAccelerator_Vtbl - where - Identity: IWMCodecAMVideoAccelerator_Impl, - { - unsafe extern "system" fn SetAcceleratorInterface(this: *mut core::ffi::c_void, piamva: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMCodecAMVideoAccelerator_Impl, - { + pub const fn new() -> IWMCodecAMVideoAccelerator_Vtbl { + unsafe extern "system" fn SetAcceleratorInterface(this: *mut core::ffi::c_void, piamva: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecAMVideoAccelerator_Impl::SetAcceleratorInterface(this, windows_core::from_raw_borrowed(&piamva)).into() } - unsafe extern "system" fn NegotiateConnection(this: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IWMCodecAMVideoAccelerator_Impl, - { + unsafe extern "system" fn NegotiateConnection(this: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecAMVideoAccelerator_Impl::NegotiateConnection(this, core::mem::transmute_copy(&pmediatype)).into() } - unsafe extern "system" fn SetPlayerNotify(this: *mut core::ffi::c_void, phook: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMCodecAMVideoAccelerator_Impl, - { + unsafe extern "system" fn SetPlayerNotify(this: *mut core::ffi::c_void, phook: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecAMVideoAccelerator_Impl::SetPlayerNotify(this, windows_core::from_raw_borrowed(&phook)).into() } @@ -21878,7 +16163,7 @@ impl IWMCodecAMVideoAccelerator_Vtbl { } } #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_Media_WindowsMediaFormat"))] -pub trait IWMCodecVideoAccelerator_Impl: Sized { +pub trait IWMCodecVideoAccelerator_Impl: Sized + windows_core::IUnknownImpl { fn NegotiateConnection(&self, piamva: Option<&IAMVideoAccelerator>, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn SetPlayerNotify(&self, phook: Option<&super::WindowsMediaFormat::IWMPlayerTimestampHook>) -> windows_core::Result<()>; } @@ -21886,21 +16171,12 @@ pub trait IWMCodecVideoAccelerator_Impl: Sized { impl windows_core::RuntimeName for IWMCodecVideoAccelerator {} #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_Media_WindowsMediaFormat"))] impl IWMCodecVideoAccelerator_Vtbl { - pub const fn new() -> IWMCodecVideoAccelerator_Vtbl - where - Identity: IWMCodecVideoAccelerator_Impl, - { - unsafe extern "system" fn NegotiateConnection(this: *mut core::ffi::c_void, piamva: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IWMCodecVideoAccelerator_Impl, - { + pub const fn new() -> IWMCodecVideoAccelerator_Vtbl { + unsafe extern "system" fn NegotiateConnection(this: *mut core::ffi::c_void, piamva: *mut core::ffi::c_void, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecVideoAccelerator_Impl::NegotiateConnection(this, windows_core::from_raw_borrowed(&piamva), core::mem::transmute_copy(&pmediatype)).into() } - unsafe extern "system" fn SetPlayerNotify(this: *mut core::ffi::c_void, phook: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMCodecVideoAccelerator_Impl, - { + unsafe extern "system" fn SetPlayerNotify(this: *mut core::ffi::c_void, phook: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecVideoAccelerator_Impl::SetPlayerNotify(this, windows_core::from_raw_borrowed(&phook)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/impl.rs index 2b14ec0dfb..df894c87d6 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/impl.rs @@ -1,32 +1,20 @@ -pub trait IDMOQualityControl_Impl: Sized { +pub trait IDMOQualityControl_Impl: Sized + windows_core::IUnknownImpl { fn SetNow(&self, rtnow: i64) -> windows_core::Result<()>; fn SetStatus(&self, dwflags: u32) -> windows_core::Result<()>; fn GetStatus(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDMOQualityControl {} impl IDMOQualityControl_Vtbl { - pub const fn new() -> IDMOQualityControl_Vtbl - where - Identity: IDMOQualityControl_Impl, - { - unsafe extern "system" fn SetNow(this: *mut core::ffi::c_void, rtnow: i64) -> windows_core::HRESULT - where - Identity: IDMOQualityControl_Impl, - { + pub const fn new() -> IDMOQualityControl_Vtbl { + unsafe extern "system" fn SetNow(this: *mut core::ffi::c_void, rtnow: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMOQualityControl_Impl::SetNow(this, core::mem::transmute_copy(&rtnow)).into() } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDMOQualityControl_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMOQualityControl_Impl::SetStatus(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDMOQualityControl_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDMOQualityControl_Impl::GetStatus(this) { Ok(ok__) => { @@ -47,7 +35,7 @@ impl IDMOQualityControl_Vtbl { iid == &::IID } } -pub trait IDMOVideoOutputOptimizations_Impl: Sized { +pub trait IDMOVideoOutputOptimizations_Impl: Sized + windows_core::IUnknownImpl { fn QueryOperationModePreferences(&self, uloutputstreamindex: u32) -> windows_core::Result; fn SetOperationMode(&self, uloutputstreamindex: u32, dwenabledfeatures: u32) -> windows_core::Result<()>; fn GetCurrentOperationMode(&self, uloutputstreamindex: u32) -> windows_core::Result; @@ -55,14 +43,8 @@ pub trait IDMOVideoOutputOptimizations_Impl: Sized { } impl windows_core::RuntimeName for IDMOVideoOutputOptimizations {} impl IDMOVideoOutputOptimizations_Vtbl { - pub const fn new() -> IDMOVideoOutputOptimizations_Vtbl - where - Identity: IDMOVideoOutputOptimizations_Impl, - { - unsafe extern "system" fn QueryOperationModePreferences(this: *mut core::ffi::c_void, uloutputstreamindex: u32, pdwrequestedcapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IDMOVideoOutputOptimizations_Impl, - { + pub const fn new() -> IDMOVideoOutputOptimizations_Vtbl { + unsafe extern "system" fn QueryOperationModePreferences(this: *mut core::ffi::c_void, uloutputstreamindex: u32, pdwrequestedcapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDMOVideoOutputOptimizations_Impl::QueryOperationModePreferences(this, core::mem::transmute_copy(&uloutputstreamindex)) { Ok(ok__) => { @@ -72,17 +54,11 @@ impl IDMOVideoOutputOptimizations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOperationMode(this: *mut core::ffi::c_void, uloutputstreamindex: u32, dwenabledfeatures: u32) -> windows_core::HRESULT - where - Identity: IDMOVideoOutputOptimizations_Impl, - { + unsafe extern "system" fn SetOperationMode(this: *mut core::ffi::c_void, uloutputstreamindex: u32, dwenabledfeatures: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMOVideoOutputOptimizations_Impl::SetOperationMode(this, core::mem::transmute_copy(&uloutputstreamindex), core::mem::transmute_copy(&dwenabledfeatures)).into() } - unsafe extern "system" fn GetCurrentOperationMode(this: *mut core::ffi::c_void, uloutputstreamindex: u32, pdwenabledfeatures: *mut u32) -> windows_core::HRESULT - where - Identity: IDMOVideoOutputOptimizations_Impl, - { + unsafe extern "system" fn GetCurrentOperationMode(this: *mut core::ffi::c_void, uloutputstreamindex: u32, pdwenabledfeatures: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDMOVideoOutputOptimizations_Impl::GetCurrentOperationMode(this, core::mem::transmute_copy(&uloutputstreamindex)) { Ok(ok__) => { @@ -92,10 +68,7 @@ impl IDMOVideoOutputOptimizations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSampleRequirements(this: *mut core::ffi::c_void, uloutputstreamindex: u32, pdwrequestedfeatures: *mut u32) -> windows_core::HRESULT - where - Identity: IDMOVideoOutputOptimizations_Impl, - { + unsafe extern "system" fn GetCurrentSampleRequirements(this: *mut core::ffi::c_void, uloutputstreamindex: u32, pdwrequestedfeatures: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDMOVideoOutputOptimizations_Impl::GetCurrentSampleRequirements(this, core::mem::transmute_copy(&uloutputstreamindex)) { Ok(ok__) => { @@ -117,7 +90,7 @@ impl IDMOVideoOutputOptimizations_Vtbl { iid == &::IID } } -pub trait IEnumDMO_Impl: Sized { +pub trait IEnumDMO_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, citemstofetch: u32, pclsid: *mut windows_core::GUID, names: *mut windows_core::PWSTR, pcitemsfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, citemstoskip: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -125,35 +98,20 @@ pub trait IEnumDMO_Impl: Sized { } impl windows_core::RuntimeName for IEnumDMO {} impl IEnumDMO_Vtbl { - pub const fn new() -> IEnumDMO_Vtbl - where - Identity: IEnumDMO_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, citemstofetch: u32, pclsid: *mut windows_core::GUID, names: *mut windows_core::PWSTR, pcitemsfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDMO_Impl, - { + pub const fn new() -> IEnumDMO_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, citemstofetch: u32, pclsid: *mut windows_core::GUID, names: *mut windows_core::PWSTR, pcitemsfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDMO_Impl::Next(this, core::mem::transmute_copy(&citemstofetch), core::mem::transmute_copy(&pclsid), core::mem::transmute_copy(&names), core::mem::transmute_copy(&pcitemsfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, citemstoskip: u32) -> windows_core::HRESULT - where - Identity: IEnumDMO_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, citemstoskip: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDMO_Impl::Skip(this, core::mem::transmute_copy(&citemstoskip)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDMO_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDMO_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDMO_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDMO_Impl::Clone(this) { Ok(ok__) => { @@ -175,28 +133,19 @@ impl IEnumDMO_Vtbl { iid == &::IID } } -pub trait IMediaBuffer_Impl: Sized { +pub trait IMediaBuffer_Impl: Sized + windows_core::IUnknownImpl { fn SetLength(&self, cblength: u32) -> windows_core::Result<()>; fn GetMaxLength(&self) -> windows_core::Result; fn GetBufferAndLength(&self, ppbuffer: *mut *mut u8, pcblength: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMediaBuffer {} impl IMediaBuffer_Vtbl { - pub const fn new() -> IMediaBuffer_Vtbl - where - Identity: IMediaBuffer_Impl, - { - unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, cblength: u32) -> windows_core::HRESULT - where - Identity: IMediaBuffer_Impl, - { + pub const fn new() -> IMediaBuffer_Vtbl { + unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, cblength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaBuffer_Impl::SetLength(this, core::mem::transmute_copy(&cblength)).into() } - unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pcbmaxlength: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaBuffer_Impl, - { + unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pcbmaxlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaBuffer_Impl::GetMaxLength(this) { Ok(ok__) => { @@ -206,10 +155,7 @@ impl IMediaBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBufferAndLength(this: *mut core::ffi::c_void, ppbuffer: *mut *mut u8, pcblength: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaBuffer_Impl, - { + unsafe extern "system" fn GetBufferAndLength(this: *mut core::ffi::c_void, ppbuffer: *mut *mut u8, pcblength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaBuffer_Impl::GetBufferAndLength(this, core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&pcblength)).into() } @@ -224,7 +170,7 @@ impl IMediaBuffer_Vtbl { iid == &::IID } } -pub trait IMediaObject_Impl: Sized { +pub trait IMediaObject_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamCount(&self, pcinputstreams: *mut u32, pcoutputstreams: *mut u32) -> windows_core::Result<()>; fn GetInputStreamInfo(&self, dwinputstreamindex: u32) -> windows_core::Result; fn GetOutputStreamInfo(&self, dwoutputstreamindex: u32) -> windows_core::Result; @@ -249,21 +195,12 @@ pub trait IMediaObject_Impl: Sized { } impl windows_core::RuntimeName for IMediaObject {} impl IMediaObject_Vtbl { - pub const fn new() -> IMediaObject_Vtbl - where - Identity: IMediaObject_Impl, - { - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcinputstreams: *mut u32, pcoutputstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + pub const fn new() -> IMediaObject_Vtbl { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcinputstreams: *mut u32, pcoutputstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::GetStreamCount(this, core::mem::transmute_copy(&pcinputstreams), core::mem::transmute_copy(&pcoutputstreams)).into() } - unsafe extern "system" fn GetInputStreamInfo(this: *mut core::ffi::c_void, dwinputstreamindex: u32, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn GetInputStreamInfo(this: *mut core::ffi::c_void, dwinputstreamindex: u32, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaObject_Impl::GetInputStreamInfo(this, core::mem::transmute_copy(&dwinputstreamindex)) { Ok(ok__) => { @@ -273,10 +210,7 @@ impl IMediaObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputStreamInfo(this: *mut core::ffi::c_void, dwoutputstreamindex: u32, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn GetOutputStreamInfo(this: *mut core::ffi::c_void, dwoutputstreamindex: u32, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaObject_Impl::GetOutputStreamInfo(this, core::mem::transmute_copy(&dwoutputstreamindex)) { Ok(ok__) => { @@ -286,66 +220,39 @@ impl IMediaObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputType(this: *mut core::ffi::c_void, dwinputstreamindex: u32, dwtypeindex: u32, pmt: *mut DMO_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn GetInputType(this: *mut core::ffi::c_void, dwinputstreamindex: u32, dwtypeindex: u32, pmt: *mut DMO_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::GetInputType(this, core::mem::transmute_copy(&dwinputstreamindex), core::mem::transmute_copy(&dwtypeindex), core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn GetOutputType(this: *mut core::ffi::c_void, dwoutputstreamindex: u32, dwtypeindex: u32, pmt: *mut DMO_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn GetOutputType(this: *mut core::ffi::c_void, dwoutputstreamindex: u32, dwtypeindex: u32, pmt: *mut DMO_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::GetOutputType(this, core::mem::transmute_copy(&dwoutputstreamindex), core::mem::transmute_copy(&dwtypeindex), core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn SetInputType(this: *mut core::ffi::c_void, dwinputstreamindex: u32, pmt: *const DMO_MEDIA_TYPE, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn SetInputType(this: *mut core::ffi::c_void, dwinputstreamindex: u32, pmt: *const DMO_MEDIA_TYPE, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::SetInputType(this, core::mem::transmute_copy(&dwinputstreamindex), core::mem::transmute_copy(&pmt), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SetOutputType(this: *mut core::ffi::c_void, dwoutputstreamindex: u32, pmt: *const DMO_MEDIA_TYPE, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn SetOutputType(this: *mut core::ffi::c_void, dwoutputstreamindex: u32, pmt: *const DMO_MEDIA_TYPE, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::SetOutputType(this, core::mem::transmute_copy(&dwoutputstreamindex), core::mem::transmute_copy(&pmt), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetInputCurrentType(this: *mut core::ffi::c_void, dwinputstreamindex: u32, pmt: *mut DMO_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn GetInputCurrentType(this: *mut core::ffi::c_void, dwinputstreamindex: u32, pmt: *mut DMO_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::GetInputCurrentType(this, core::mem::transmute_copy(&dwinputstreamindex), core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn GetOutputCurrentType(this: *mut core::ffi::c_void, dwoutputstreamindex: u32, pmt: *mut DMO_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn GetOutputCurrentType(this: *mut core::ffi::c_void, dwoutputstreamindex: u32, pmt: *mut DMO_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::GetOutputCurrentType(this, core::mem::transmute_copy(&dwoutputstreamindex), core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn GetInputSizeInfo(this: *mut core::ffi::c_void, dwinputstreamindex: u32, pcbsize: *mut u32, pcbmaxlookahead: *mut u32, pcbalignment: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn GetInputSizeInfo(this: *mut core::ffi::c_void, dwinputstreamindex: u32, pcbsize: *mut u32, pcbmaxlookahead: *mut u32, pcbalignment: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::GetInputSizeInfo(this, core::mem::transmute_copy(&dwinputstreamindex), core::mem::transmute_copy(&pcbsize), core::mem::transmute_copy(&pcbmaxlookahead), core::mem::transmute_copy(&pcbalignment)).into() } - unsafe extern "system" fn GetOutputSizeInfo(this: *mut core::ffi::c_void, dwoutputstreamindex: u32, pcbsize: *mut u32, pcbalignment: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn GetOutputSizeInfo(this: *mut core::ffi::c_void, dwoutputstreamindex: u32, pcbsize: *mut u32, pcbalignment: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::GetOutputSizeInfo(this, core::mem::transmute_copy(&dwoutputstreamindex), core::mem::transmute_copy(&pcbsize), core::mem::transmute_copy(&pcbalignment)).into() } - unsafe extern "system" fn GetInputMaxLatency(this: *mut core::ffi::c_void, dwinputstreamindex: u32, prtmaxlatency: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn GetInputMaxLatency(this: *mut core::ffi::c_void, dwinputstreamindex: u32, prtmaxlatency: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaObject_Impl::GetInputMaxLatency(this, core::mem::transmute_copy(&dwinputstreamindex)) { Ok(ok__) => { @@ -355,45 +262,27 @@ impl IMediaObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputMaxLatency(this: *mut core::ffi::c_void, dwinputstreamindex: u32, rtmaxlatency: i64) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn SetInputMaxLatency(this: *mut core::ffi::c_void, dwinputstreamindex: u32, rtmaxlatency: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::SetInputMaxLatency(this, core::mem::transmute_copy(&dwinputstreamindex), core::mem::transmute_copy(&rtmaxlatency)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::Flush(this).into() } - unsafe extern "system" fn Discontinuity(this: *mut core::ffi::c_void, dwinputstreamindex: u32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn Discontinuity(this: *mut core::ffi::c_void, dwinputstreamindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::Discontinuity(this, core::mem::transmute_copy(&dwinputstreamindex)).into() } - unsafe extern "system" fn AllocateStreamingResources(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn AllocateStreamingResources(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::AllocateStreamingResources(this).into() } - unsafe extern "system" fn FreeStreamingResources(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn FreeStreamingResources(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::FreeStreamingResources(this).into() } - unsafe extern "system" fn GetInputStatus(this: *mut core::ffi::c_void, dwinputstreamindex: u32, dwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn GetInputStatus(this: *mut core::ffi::c_void, dwinputstreamindex: u32, dwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaObject_Impl::GetInputStatus(this, core::mem::transmute_copy(&dwinputstreamindex)) { Ok(ok__) => { @@ -403,24 +292,15 @@ impl IMediaObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessInput(this: *mut core::ffi::c_void, dwinputstreamindex: u32, pbuffer: *mut core::ffi::c_void, dwflags: u32, rttimestamp: i64, rttimelength: i64) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn ProcessInput(this: *mut core::ffi::c_void, dwinputstreamindex: u32, pbuffer: *mut core::ffi::c_void, dwflags: u32, rttimestamp: i64, rttimelength: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::ProcessInput(this, core::mem::transmute_copy(&dwinputstreamindex), windows_core::from_raw_borrowed(&pbuffer), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&rttimestamp), core::mem::transmute_copy(&rttimelength)).into() } - unsafe extern "system" fn ProcessOutput(this: *mut core::ffi::c_void, dwflags: u32, coutputbuffercount: u32, poutputbuffers: *mut DMO_OUTPUT_DATA_BUFFER, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn ProcessOutput(this: *mut core::ffi::c_void, dwflags: u32, coutputbuffercount: u32, poutputbuffers: *mut DMO_OUTPUT_DATA_BUFFER, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::ProcessOutput(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&coutputbuffercount), core::mem::transmute_copy(&poutputbuffers), core::mem::transmute_copy(&pdwstatus)).into() } - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, block: i32) -> windows_core::HRESULT - where - Identity: IMediaObject_Impl, - { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, block: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObject_Impl::Lock(this, core::mem::transmute_copy(&block)).into() } @@ -453,28 +333,19 @@ impl IMediaObject_Vtbl { iid == &::IID } } -pub trait IMediaObjectInPlace_Impl: Sized { +pub trait IMediaObjectInPlace_Impl: Sized + windows_core::IUnknownImpl { fn Process(&self, ulsize: u32, pdata: *mut u8, reftimestart: i64, dwflags: u32) -> windows_core::Result<()>; fn Clone(&self) -> windows_core::Result; fn GetLatency(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMediaObjectInPlace {} impl IMediaObjectInPlace_Vtbl { - pub const fn new() -> IMediaObjectInPlace_Vtbl - where - Identity: IMediaObjectInPlace_Impl, - { - unsafe extern "system" fn Process(this: *mut core::ffi::c_void, ulsize: u32, pdata: *mut u8, reftimestart: i64, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMediaObjectInPlace_Impl, - { + pub const fn new() -> IMediaObjectInPlace_Vtbl { + unsafe extern "system" fn Process(this: *mut core::ffi::c_void, ulsize: u32, pdata: *mut u8, reftimestart: i64, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaObjectInPlace_Impl::Process(this, core::mem::transmute_copy(&ulsize), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&reftimestart), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppmediaobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMediaObjectInPlace_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppmediaobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaObjectInPlace_Impl::Clone(this) { Ok(ok__) => { @@ -484,10 +355,7 @@ impl IMediaObjectInPlace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLatency(this: *mut core::ffi::c_void, platencytime: *mut i64) -> windows_core::HRESULT - where - Identity: IMediaObjectInPlace_Impl, - { + unsafe extern "system" fn GetLatency(this: *mut core::ffi::c_void, platencytime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMediaObjectInPlace_Impl::GetLatency(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/impl.rs index 7dca6fa811..84490c306e 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/impl.rs @@ -1,24 +1,15 @@ -pub trait IKsAggregateControl_Impl: Sized { +pub trait IKsAggregateControl_Impl: Sized + windows_core::IUnknownImpl { fn KsAddAggregate(&self, aggregateclass: *const windows_core::GUID) -> windows_core::Result<()>; fn KsRemoveAggregate(&self, aggregateclass: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IKsAggregateControl {} impl IKsAggregateControl_Vtbl { - pub const fn new() -> IKsAggregateControl_Vtbl - where - Identity: IKsAggregateControl_Impl, - { - unsafe extern "system" fn KsAddAggregate(this: *mut core::ffi::c_void, aggregateclass: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IKsAggregateControl_Impl, - { + pub const fn new() -> IKsAggregateControl_Vtbl { + unsafe extern "system" fn KsAddAggregate(this: *mut core::ffi::c_void, aggregateclass: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsAggregateControl_Impl::KsAddAggregate(this, core::mem::transmute_copy(&aggregateclass)).into() } - unsafe extern "system" fn KsRemoveAggregate(this: *mut core::ffi::c_void, aggregateclass: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IKsAggregateControl_Impl, - { + unsafe extern "system" fn KsRemoveAggregate(this: *mut core::ffi::c_void, aggregateclass: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsAggregateControl_Impl::KsRemoveAggregate(this, core::mem::transmute_copy(&aggregateclass)).into() } @@ -32,7 +23,7 @@ impl IKsAggregateControl_Vtbl { iid == &::IID } } -pub trait IKsAllocator_Impl: Sized { +pub trait IKsAllocator_Impl: Sized + windows_core::IUnknownImpl { fn KsGetAllocatorHandle(&self) -> super::super::Foundation::HANDLE; fn KsGetAllocatorMode(&self) -> KSALLOCATORMODE; fn KsGetAllocatorStatus(&self, allocatorstatus: *mut KSSTREAMALLOCATOR_STATUS) -> windows_core::Result<()>; @@ -40,35 +31,20 @@ pub trait IKsAllocator_Impl: Sized { } impl windows_core::RuntimeName for IKsAllocator {} impl IKsAllocator_Vtbl { - pub const fn new() -> IKsAllocator_Vtbl - where - Identity: IKsAllocator_Impl, - { - unsafe extern "system" fn KsGetAllocatorHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: IKsAllocator_Impl, - { + pub const fn new() -> IKsAllocator_Vtbl { + unsafe extern "system" fn KsGetAllocatorHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsAllocator_Impl::KsGetAllocatorHandle(this) } - unsafe extern "system" fn KsGetAllocatorMode(this: *mut core::ffi::c_void) -> KSALLOCATORMODE - where - Identity: IKsAllocator_Impl, - { + unsafe extern "system" fn KsGetAllocatorMode(this: *mut core::ffi::c_void) -> KSALLOCATORMODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsAllocator_Impl::KsGetAllocatorMode(this) } - unsafe extern "system" fn KsGetAllocatorStatus(this: *mut core::ffi::c_void, allocatorstatus: *mut KSSTREAMALLOCATOR_STATUS) -> windows_core::HRESULT - where - Identity: IKsAllocator_Impl, - { + unsafe extern "system" fn KsGetAllocatorStatus(this: *mut core::ffi::c_void, allocatorstatus: *mut KSSTREAMALLOCATOR_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsAllocator_Impl::KsGetAllocatorStatus(this, core::mem::transmute_copy(&allocatorstatus)).into() } - unsafe extern "system" fn KsSetAllocatorMode(this: *mut core::ffi::c_void, mode: KSALLOCATORMODE) - where - Identity: IKsAllocator_Impl, - { + unsafe extern "system" fn KsSetAllocatorMode(this: *mut core::ffi::c_void, mode: KSALLOCATORMODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsAllocator_Impl::KsSetAllocatorMode(this, core::mem::transmute_copy(&mode)) } @@ -92,35 +68,20 @@ pub trait IKsAllocatorEx_Impl: Sized + IKsAllocator_Impl { } impl windows_core::RuntimeName for IKsAllocatorEx {} impl IKsAllocatorEx_Vtbl { - pub const fn new() -> IKsAllocatorEx_Vtbl - where - Identity: IKsAllocatorEx_Impl, - { - unsafe extern "system" fn KsGetProperties(this: *mut core::ffi::c_void) -> *mut ALLOCATOR_PROPERTIES_EX - where - Identity: IKsAllocatorEx_Impl, - { + pub const fn new() -> IKsAllocatorEx_Vtbl { + unsafe extern "system" fn KsGetProperties(this: *mut core::ffi::c_void) -> *mut ALLOCATOR_PROPERTIES_EX { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsAllocatorEx_Impl::KsGetProperties(this) } - unsafe extern "system" fn KsSetProperties(this: *mut core::ffi::c_void, param0: *const ALLOCATOR_PROPERTIES_EX) - where - Identity: IKsAllocatorEx_Impl, - { + unsafe extern "system" fn KsSetProperties(this: *mut core::ffi::c_void, param0: *const ALLOCATOR_PROPERTIES_EX) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsAllocatorEx_Impl::KsSetProperties(this, core::mem::transmute_copy(¶m0)) } - unsafe extern "system" fn KsSetAllocatorHandle(this: *mut core::ffi::c_void, allocatorhandle: super::super::Foundation::HANDLE) - where - Identity: IKsAllocatorEx_Impl, - { + unsafe extern "system" fn KsSetAllocatorHandle(this: *mut core::ffi::c_void, allocatorhandle: super::super::Foundation::HANDLE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsAllocatorEx_Impl::KsSetAllocatorHandle(this, core::mem::transmute_copy(&allocatorhandle)) } - unsafe extern "system" fn KsCreateAllocatorAndGetHandle(this: *mut core::ffi::c_void, kspin: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: IKsAllocatorEx_Impl, - { + unsafe extern "system" fn KsCreateAllocatorAndGetHandle(this: *mut core::ffi::c_void, kspin: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsAllocatorEx_Impl::KsCreateAllocatorAndGetHandle(this, windows_core::from_raw_borrowed(&kspin)) } @@ -136,7 +97,7 @@ impl IKsAllocatorEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IKsClockPropertySet_Impl: Sized { +pub trait IKsClockPropertySet_Impl: Sized + windows_core::IUnknownImpl { fn KsGetTime(&self) -> windows_core::Result; fn KsSetTime(&self, time: i64) -> windows_core::Result<()>; fn KsGetPhysicalTime(&self) -> windows_core::Result; @@ -150,14 +111,8 @@ pub trait IKsClockPropertySet_Impl: Sized { } impl windows_core::RuntimeName for IKsClockPropertySet {} impl IKsClockPropertySet_Vtbl { - pub const fn new() -> IKsClockPropertySet_Vtbl - where - Identity: IKsClockPropertySet_Impl, - { - unsafe extern "system" fn KsGetTime(this: *mut core::ffi::c_void, time: *mut i64) -> windows_core::HRESULT - where - Identity: IKsClockPropertySet_Impl, - { + pub const fn new() -> IKsClockPropertySet_Vtbl { + unsafe extern "system" fn KsGetTime(this: *mut core::ffi::c_void, time: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsClockPropertySet_Impl::KsGetTime(this) { Ok(ok__) => { @@ -167,17 +122,11 @@ impl IKsClockPropertySet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KsSetTime(this: *mut core::ffi::c_void, time: i64) -> windows_core::HRESULT - where - Identity: IKsClockPropertySet_Impl, - { + unsafe extern "system" fn KsSetTime(this: *mut core::ffi::c_void, time: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsClockPropertySet_Impl::KsSetTime(this, core::mem::transmute_copy(&time)).into() } - unsafe extern "system" fn KsGetPhysicalTime(this: *mut core::ffi::c_void, time: *mut i64) -> windows_core::HRESULT - where - Identity: IKsClockPropertySet_Impl, - { + unsafe extern "system" fn KsGetPhysicalTime(this: *mut core::ffi::c_void, time: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsClockPropertySet_Impl::KsGetPhysicalTime(this) { Ok(ok__) => { @@ -187,17 +136,11 @@ impl IKsClockPropertySet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KsSetPhysicalTime(this: *mut core::ffi::c_void, time: i64) -> windows_core::HRESULT - where - Identity: IKsClockPropertySet_Impl, - { + unsafe extern "system" fn KsSetPhysicalTime(this: *mut core::ffi::c_void, time: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsClockPropertySet_Impl::KsSetPhysicalTime(this, core::mem::transmute_copy(&time)).into() } - unsafe extern "system" fn KsGetCorrelatedTime(this: *mut core::ffi::c_void, correlatedtime: *mut KSCORRELATED_TIME) -> windows_core::HRESULT - where - Identity: IKsClockPropertySet_Impl, - { + unsafe extern "system" fn KsGetCorrelatedTime(this: *mut core::ffi::c_void, correlatedtime: *mut KSCORRELATED_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsClockPropertySet_Impl::KsGetCorrelatedTime(this) { Ok(ok__) => { @@ -207,17 +150,11 @@ impl IKsClockPropertySet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KsSetCorrelatedTime(this: *mut core::ffi::c_void, correlatedtime: *const KSCORRELATED_TIME) -> windows_core::HRESULT - where - Identity: IKsClockPropertySet_Impl, - { + unsafe extern "system" fn KsSetCorrelatedTime(this: *mut core::ffi::c_void, correlatedtime: *const KSCORRELATED_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsClockPropertySet_Impl::KsSetCorrelatedTime(this, core::mem::transmute_copy(&correlatedtime)).into() } - unsafe extern "system" fn KsGetCorrelatedPhysicalTime(this: *mut core::ffi::c_void, correlatedtime: *mut KSCORRELATED_TIME) -> windows_core::HRESULT - where - Identity: IKsClockPropertySet_Impl, - { + unsafe extern "system" fn KsGetCorrelatedPhysicalTime(this: *mut core::ffi::c_void, correlatedtime: *mut KSCORRELATED_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsClockPropertySet_Impl::KsGetCorrelatedPhysicalTime(this) { Ok(ok__) => { @@ -227,17 +164,11 @@ impl IKsClockPropertySet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KsSetCorrelatedPhysicalTime(this: *mut core::ffi::c_void, correlatedtime: *const KSCORRELATED_TIME) -> windows_core::HRESULT - where - Identity: IKsClockPropertySet_Impl, - { + unsafe extern "system" fn KsSetCorrelatedPhysicalTime(this: *mut core::ffi::c_void, correlatedtime: *const KSCORRELATED_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsClockPropertySet_Impl::KsSetCorrelatedPhysicalTime(this, core::mem::transmute_copy(&correlatedtime)).into() } - unsafe extern "system" fn KsGetResolution(this: *mut core::ffi::c_void, resolution: *mut KSRESOLUTION) -> windows_core::HRESULT - where - Identity: IKsClockPropertySet_Impl, - { + unsafe extern "system" fn KsGetResolution(this: *mut core::ffi::c_void, resolution: *mut KSRESOLUTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsClockPropertySet_Impl::KsGetResolution(this) { Ok(ok__) => { @@ -247,10 +178,7 @@ impl IKsClockPropertySet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KsGetState(this: *mut core::ffi::c_void, state: *mut KSSTATE) -> windows_core::HRESULT - where - Identity: IKsClockPropertySet_Impl, - { + unsafe extern "system" fn KsGetState(this: *mut core::ffi::c_void, state: *mut KSSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsClockPropertySet_Impl::KsGetState(this) { Ok(ok__) => { @@ -278,35 +206,23 @@ impl IKsClockPropertySet_Vtbl { iid == &::IID } } -pub trait IKsControl_Impl: Sized { +pub trait IKsControl_Impl: Sized + windows_core::IUnknownImpl { fn KsProperty(&self, property: *const KSIDENTIFIER, propertylength: u32, propertydata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::Result<()>; fn KsMethod(&self, method: *const KSIDENTIFIER, methodlength: u32, methoddata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::Result<()>; fn KsEvent(&self, event: *const KSIDENTIFIER, eventlength: u32, eventdata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IKsControl {} impl IKsControl_Vtbl { - pub const fn new() -> IKsControl_Vtbl - where - Identity: IKsControl_Impl, - { - unsafe extern "system" fn KsProperty(this: *mut core::ffi::c_void, property: *const KSIDENTIFIER, propertylength: u32, propertydata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::HRESULT - where - Identity: IKsControl_Impl, - { + pub const fn new() -> IKsControl_Vtbl { + unsafe extern "system" fn KsProperty(this: *mut core::ffi::c_void, property: *const KSIDENTIFIER, propertylength: u32, propertydata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsControl_Impl::KsProperty(this, core::mem::transmute_copy(&property), core::mem::transmute_copy(&propertylength), core::mem::transmute_copy(&propertydata), core::mem::transmute_copy(&datalength), core::mem::transmute_copy(&bytesreturned)).into() } - unsafe extern "system" fn KsMethod(this: *mut core::ffi::c_void, method: *const KSIDENTIFIER, methodlength: u32, methoddata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::HRESULT - where - Identity: IKsControl_Impl, - { + unsafe extern "system" fn KsMethod(this: *mut core::ffi::c_void, method: *const KSIDENTIFIER, methodlength: u32, methoddata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsControl_Impl::KsMethod(this, core::mem::transmute_copy(&method), core::mem::transmute_copy(&methodlength), core::mem::transmute_copy(&methoddata), core::mem::transmute_copy(&datalength), core::mem::transmute_copy(&bytesreturned)).into() } - unsafe extern "system" fn KsEvent(this: *mut core::ffi::c_void, event: *const KSIDENTIFIER, eventlength: u32, eventdata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::HRESULT - where - Identity: IKsControl_Impl, - { + unsafe extern "system" fn KsEvent(this: *mut core::ffi::c_void, event: *const KSIDENTIFIER, eventlength: u32, eventdata: *mut core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsControl_Impl::KsEvent(this, core::mem::transmute_copy(&event), core::mem::transmute_copy(&eventlength), core::mem::transmute_copy(&eventdata), core::mem::transmute_copy(&datalength), core::mem::transmute_copy(&bytesreturned)).into() } @@ -322,21 +238,15 @@ impl IKsControl_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IKsDataTypeCompletion_Impl: Sized { +pub trait IKsDataTypeCompletion_Impl: Sized + windows_core::IUnknownImpl { fn KsCompleteMediaType(&self, filterhandle: super::super::Foundation::HANDLE, pinfactoryid: u32, ammediatype: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Media_MediaFoundation")] impl windows_core::RuntimeName for IKsDataTypeCompletion {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IKsDataTypeCompletion_Vtbl { - pub const fn new() -> IKsDataTypeCompletion_Vtbl - where - Identity: IKsDataTypeCompletion_Impl, - { - unsafe extern "system" fn KsCompleteMediaType(this: *mut core::ffi::c_void, filterhandle: super::super::Foundation::HANDLE, pinfactoryid: u32, ammediatype: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IKsDataTypeCompletion_Impl, - { + pub const fn new() -> IKsDataTypeCompletion_Vtbl { + unsafe extern "system" fn KsCompleteMediaType(this: *mut core::ffi::c_void, filterhandle: super::super::Foundation::HANDLE, pinfactoryid: u32, ammediatype: *mut super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsDataTypeCompletion_Impl::KsCompleteMediaType(this, core::mem::transmute_copy(&filterhandle), core::mem::transmute_copy(&pinfactoryid), core::mem::transmute_copy(&ammediatype)).into() } @@ -347,7 +257,7 @@ impl IKsDataTypeCompletion_Vtbl { } } #[cfg(all(feature = "Win32_Media_DirectShow", feature = "Win32_Media_MediaFoundation"))] -pub trait IKsDataTypeHandler_Impl: Sized { +pub trait IKsDataTypeHandler_Impl: Sized + windows_core::IUnknownImpl { fn KsCompleteIoOperation(&self, sample: Option<&super::DirectShow::IMediaSample>, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION, cancelled: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn KsIsMediaTypeInRanges(&self, dataranges: *const core::ffi::c_void) -> windows_core::Result<()>; fn KsPrepareIoOperation(&self, sample: Option<&super::DirectShow::IMediaSample>, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION) -> windows_core::Result<()>; @@ -358,35 +268,20 @@ pub trait IKsDataTypeHandler_Impl: Sized { impl windows_core::RuntimeName for IKsDataTypeHandler {} #[cfg(all(feature = "Win32_Media_DirectShow", feature = "Win32_Media_MediaFoundation"))] impl IKsDataTypeHandler_Vtbl { - pub const fn new() -> IKsDataTypeHandler_Vtbl - where - Identity: IKsDataTypeHandler_Impl, - { - unsafe extern "system" fn KsCompleteIoOperation(this: *mut core::ffi::c_void, sample: *mut core::ffi::c_void, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION, cancelled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IKsDataTypeHandler_Impl, - { + pub const fn new() -> IKsDataTypeHandler_Vtbl { + unsafe extern "system" fn KsCompleteIoOperation(this: *mut core::ffi::c_void, sample: *mut core::ffi::c_void, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION, cancelled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsDataTypeHandler_Impl::KsCompleteIoOperation(this, windows_core::from_raw_borrowed(&sample), core::mem::transmute_copy(&streamheader), core::mem::transmute_copy(&iooperation), core::mem::transmute_copy(&cancelled)).into() } - unsafe extern "system" fn KsIsMediaTypeInRanges(this: *mut core::ffi::c_void, dataranges: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKsDataTypeHandler_Impl, - { + unsafe extern "system" fn KsIsMediaTypeInRanges(this: *mut core::ffi::c_void, dataranges: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsDataTypeHandler_Impl::KsIsMediaTypeInRanges(this, core::mem::transmute_copy(&dataranges)).into() } - unsafe extern "system" fn KsPrepareIoOperation(this: *mut core::ffi::c_void, sample: *mut core::ffi::c_void, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION) -> windows_core::HRESULT - where - Identity: IKsDataTypeHandler_Impl, - { + unsafe extern "system" fn KsPrepareIoOperation(this: *mut core::ffi::c_void, sample: *mut core::ffi::c_void, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsDataTypeHandler_Impl::KsPrepareIoOperation(this, windows_core::from_raw_borrowed(&sample), core::mem::transmute_copy(&streamheader), core::mem::transmute_copy(&iooperation)).into() } - unsafe extern "system" fn KsQueryExtendedSize(this: *mut core::ffi::c_void, extendedsize: *mut u32) -> windows_core::HRESULT - where - Identity: IKsDataTypeHandler_Impl, - { + unsafe extern "system" fn KsQueryExtendedSize(this: *mut core::ffi::c_void, extendedsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsDataTypeHandler_Impl::KsQueryExtendedSize(this) { Ok(ok__) => { @@ -396,10 +291,7 @@ impl IKsDataTypeHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KsSetMediaType(this: *mut core::ffi::c_void, ammediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IKsDataTypeHandler_Impl, - { + unsafe extern "system" fn KsSetMediaType(this: *mut core::ffi::c_void, ammediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsDataTypeHandler_Impl::KsSetMediaType(this, core::mem::transmute_copy(&ammediatype)).into() } @@ -416,27 +308,18 @@ impl IKsDataTypeHandler_Vtbl { iid == &::IID } } -pub trait IKsFormatSupport_Impl: Sized { +pub trait IKsFormatSupport_Impl: Sized + windows_core::IUnknownImpl { fn IsFormatSupported(&self, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetDevicePreferredFormat(&self) -> windows_core::Result<*mut KSDATAFORMAT>; } impl windows_core::RuntimeName for IKsFormatSupport {} impl IKsFormatSupport_Vtbl { - pub const fn new() -> IKsFormatSupport_Vtbl - where - Identity: IKsFormatSupport_Impl, - { - unsafe extern "system" fn IsFormatSupported(this: *mut core::ffi::c_void, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IKsFormatSupport_Impl, - { + pub const fn new() -> IKsFormatSupport_Vtbl { + unsafe extern "system" fn IsFormatSupported(this: *mut core::ffi::c_void, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsFormatSupport_Impl::IsFormatSupported(this, core::mem::transmute_copy(&pksformat), core::mem::transmute_copy(&cbformat), core::mem::transmute_copy(&pbsupported)).into() } - unsafe extern "system" fn GetDevicePreferredFormat(this: *mut core::ffi::c_void, ppksformat: *mut *mut KSDATAFORMAT) -> windows_core::HRESULT - where - Identity: IKsFormatSupport_Impl, - { + unsafe extern "system" fn GetDevicePreferredFormat(this: *mut core::ffi::c_void, ppksformat: *mut *mut KSDATAFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsFormatSupport_Impl::GetDevicePreferredFormat(this) { Ok(ok__) => { @@ -457,7 +340,7 @@ impl IKsFormatSupport_Vtbl { } } #[cfg(feature = "Win32_Media_DirectShow")] -pub trait IKsInterfaceHandler_Impl: Sized { +pub trait IKsInterfaceHandler_Impl: Sized + windows_core::IUnknownImpl { fn KsSetPin(&self, kspin: Option<&IKsPin>) -> windows_core::Result<()>; fn KsProcessMediaSamples(&self, ksdatatypehandler: Option<&IKsDataTypeHandler>, samplelist: *const Option, samplecount: *mut i32, iooperation: KSIOOPERATION, streamsegment: *mut *mut KSSTREAM_SEGMENT) -> windows_core::Result<()>; fn KsCompleteIo(&self, streamsegment: *mut KSSTREAM_SEGMENT) -> windows_core::Result<()>; @@ -466,28 +349,16 @@ pub trait IKsInterfaceHandler_Impl: Sized { impl windows_core::RuntimeName for IKsInterfaceHandler {} #[cfg(feature = "Win32_Media_DirectShow")] impl IKsInterfaceHandler_Vtbl { - pub const fn new() -> IKsInterfaceHandler_Vtbl - where - Identity: IKsInterfaceHandler_Impl, - { - unsafe extern "system" fn KsSetPin(this: *mut core::ffi::c_void, kspin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKsInterfaceHandler_Impl, - { + pub const fn new() -> IKsInterfaceHandler_Vtbl { + unsafe extern "system" fn KsSetPin(this: *mut core::ffi::c_void, kspin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsInterfaceHandler_Impl::KsSetPin(this, windows_core::from_raw_borrowed(&kspin)).into() } - unsafe extern "system" fn KsProcessMediaSamples(this: *mut core::ffi::c_void, ksdatatypehandler: *mut core::ffi::c_void, samplelist: *const *mut core::ffi::c_void, samplecount: *mut i32, iooperation: KSIOOPERATION, streamsegment: *mut *mut KSSTREAM_SEGMENT) -> windows_core::HRESULT - where - Identity: IKsInterfaceHandler_Impl, - { + unsafe extern "system" fn KsProcessMediaSamples(this: *mut core::ffi::c_void, ksdatatypehandler: *mut core::ffi::c_void, samplelist: *const *mut core::ffi::c_void, samplecount: *mut i32, iooperation: KSIOOPERATION, streamsegment: *mut *mut KSSTREAM_SEGMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsInterfaceHandler_Impl::KsProcessMediaSamples(this, windows_core::from_raw_borrowed(&ksdatatypehandler), core::mem::transmute_copy(&samplelist), core::mem::transmute_copy(&samplecount), core::mem::transmute_copy(&iooperation), core::mem::transmute_copy(&streamsegment)).into() } - unsafe extern "system" fn KsCompleteIo(this: *mut core::ffi::c_void, streamsegment: *mut KSSTREAM_SEGMENT) -> windows_core::HRESULT - where - Identity: IKsInterfaceHandler_Impl, - { + unsafe extern "system" fn KsCompleteIo(this: *mut core::ffi::c_void, streamsegment: *mut KSSTREAM_SEGMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsInterfaceHandler_Impl::KsCompleteIo(this, core::mem::transmute_copy(&streamsegment)).into() } @@ -502,19 +373,13 @@ impl IKsInterfaceHandler_Vtbl { iid == &::IID } } -pub trait IKsJackContainerId_Impl: Sized { +pub trait IKsJackContainerId_Impl: Sized + windows_core::IUnknownImpl { fn GetJackContainerId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IKsJackContainerId {} impl IKsJackContainerId_Vtbl { - pub const fn new() -> IKsJackContainerId_Vtbl - where - Identity: IKsJackContainerId_Impl, - { - unsafe extern "system" fn GetJackContainerId(this: *mut core::ffi::c_void, pjackcontainerid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IKsJackContainerId_Impl, - { + pub const fn new() -> IKsJackContainerId_Vtbl { + unsafe extern "system" fn GetJackContainerId(this: *mut core::ffi::c_void, pjackcontainerid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsJackContainerId_Impl::GetJackContainerId(this) { Ok(ok__) => { @@ -530,20 +395,14 @@ impl IKsJackContainerId_Vtbl { iid == &::IID } } -pub trait IKsJackDescription_Impl: Sized { +pub trait IKsJackDescription_Impl: Sized + windows_core::IUnknownImpl { fn GetJackCount(&self) -> windows_core::Result; fn GetJackDescription(&self, njack: u32, pdescription: *mut KSJACK_DESCRIPTION) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IKsJackDescription {} impl IKsJackDescription_Vtbl { - pub const fn new() -> IKsJackDescription_Vtbl - where - Identity: IKsJackDescription_Impl, - { - unsafe extern "system" fn GetJackCount(this: *mut core::ffi::c_void, pcjacks: *mut u32) -> windows_core::HRESULT - where - Identity: IKsJackDescription_Impl, - { + pub const fn new() -> IKsJackDescription_Vtbl { + unsafe extern "system" fn GetJackCount(this: *mut core::ffi::c_void, pcjacks: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsJackDescription_Impl::GetJackCount(this) { Ok(ok__) => { @@ -553,10 +412,7 @@ impl IKsJackDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetJackDescription(this: *mut core::ffi::c_void, njack: u32, pdescription: *mut KSJACK_DESCRIPTION) -> windows_core::HRESULT - where - Identity: IKsJackDescription_Impl, - { + unsafe extern "system" fn GetJackDescription(this: *mut core::ffi::c_void, njack: u32, pdescription: *mut KSJACK_DESCRIPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsJackDescription_Impl::GetJackDescription(this, core::mem::transmute_copy(&njack), core::mem::transmute_copy(&pdescription)).into() } @@ -570,20 +426,14 @@ impl IKsJackDescription_Vtbl { iid == &::IID } } -pub trait IKsJackDescription2_Impl: Sized { +pub trait IKsJackDescription2_Impl: Sized + windows_core::IUnknownImpl { fn GetJackCount(&self) -> windows_core::Result; fn GetJackDescription2(&self, njack: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IKsJackDescription2 {} impl IKsJackDescription2_Vtbl { - pub const fn new() -> IKsJackDescription2_Vtbl - where - Identity: IKsJackDescription2_Impl, - { - unsafe extern "system" fn GetJackCount(this: *mut core::ffi::c_void, pcjacks: *mut u32) -> windows_core::HRESULT - where - Identity: IKsJackDescription2_Impl, - { + pub const fn new() -> IKsJackDescription2_Vtbl { + unsafe extern "system" fn GetJackCount(this: *mut core::ffi::c_void, pcjacks: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsJackDescription2_Impl::GetJackCount(this) { Ok(ok__) => { @@ -593,10 +443,7 @@ impl IKsJackDescription2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetJackDescription2(this: *mut core::ffi::c_void, njack: u32, pdescription2: *mut KSJACK_DESCRIPTION2) -> windows_core::HRESULT - where - Identity: IKsJackDescription2_Impl, - { + unsafe extern "system" fn GetJackDescription2(this: *mut core::ffi::c_void, njack: u32, pdescription2: *mut KSJACK_DESCRIPTION2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsJackDescription2_Impl::GetJackDescription2(this, core::mem::transmute_copy(&njack)) { Ok(ok__) => { @@ -616,20 +463,14 @@ impl IKsJackDescription2_Vtbl { iid == &::IID } } -pub trait IKsJackDescription3_Impl: Sized { +pub trait IKsJackDescription3_Impl: Sized + windows_core::IUnknownImpl { fn GetJackCount(&self) -> windows_core::Result; fn GetJackDescription3(&self, njack: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IKsJackDescription3 {} impl IKsJackDescription3_Vtbl { - pub const fn new() -> IKsJackDescription3_Vtbl - where - Identity: IKsJackDescription3_Impl, - { - unsafe extern "system" fn GetJackCount(this: *mut core::ffi::c_void, pcjacks: *mut u32) -> windows_core::HRESULT - where - Identity: IKsJackDescription3_Impl, - { + pub const fn new() -> IKsJackDescription3_Vtbl { + unsafe extern "system" fn GetJackCount(this: *mut core::ffi::c_void, pcjacks: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsJackDescription3_Impl::GetJackCount(this) { Ok(ok__) => { @@ -639,10 +480,7 @@ impl IKsJackDescription3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetJackDescription3(this: *mut core::ffi::c_void, njack: u32, pdescription3: *mut KSJACK_DESCRIPTION3) -> windows_core::HRESULT - where - Identity: IKsJackDescription3_Impl, - { + unsafe extern "system" fn GetJackDescription3(this: *mut core::ffi::c_void, njack: u32, pdescription3: *mut KSJACK_DESCRIPTION3) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsJackDescription3_Impl::GetJackDescription3(this, core::mem::transmute_copy(&njack)) { Ok(ok__) => { @@ -662,19 +500,13 @@ impl IKsJackDescription3_Vtbl { iid == &::IID } } -pub trait IKsJackSinkInformation_Impl: Sized { +pub trait IKsJackSinkInformation_Impl: Sized + windows_core::IUnknownImpl { fn GetJackSinkInformation(&self, pjacksinkinformation: *mut KSJACK_SINK_INFORMATION) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IKsJackSinkInformation {} impl IKsJackSinkInformation_Vtbl { - pub const fn new() -> IKsJackSinkInformation_Vtbl - where - Identity: IKsJackSinkInformation_Impl, - { - unsafe extern "system" fn GetJackSinkInformation(this: *mut core::ffi::c_void, pjacksinkinformation: *mut KSJACK_SINK_INFORMATION) -> windows_core::HRESULT - where - Identity: IKsJackSinkInformation_Impl, - { + pub const fn new() -> IKsJackSinkInformation_Vtbl { + unsafe extern "system" fn GetJackSinkInformation(this: *mut core::ffi::c_void, pjacksinkinformation: *mut KSJACK_SINK_INFORMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsJackSinkInformation_Impl::GetJackSinkInformation(this, core::mem::transmute_copy(&pjacksinkinformation)).into() } @@ -684,27 +516,18 @@ impl IKsJackSinkInformation_Vtbl { iid == &::IID } } -pub trait IKsNodeControl_Impl: Sized { +pub trait IKsNodeControl_Impl: Sized + windows_core::IUnknownImpl { fn SetNodeId(&self, dwnodeid: u32) -> windows_core::Result<()>; fn SetKsControl(&self, pkscontrol: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IKsNodeControl {} impl IKsNodeControl_Vtbl { - pub const fn new() -> IKsNodeControl_Vtbl - where - Identity: IKsNodeControl_Impl, - { - unsafe extern "system" fn SetNodeId(this: *mut core::ffi::c_void, dwnodeid: u32) -> windows_core::HRESULT - where - Identity: IKsNodeControl_Impl, - { + pub const fn new() -> IKsNodeControl_Vtbl { + unsafe extern "system" fn SetNodeId(this: *mut core::ffi::c_void, dwnodeid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsNodeControl_Impl::SetNodeId(this, core::mem::transmute_copy(&dwnodeid)).into() } - unsafe extern "system" fn SetKsControl(this: *mut core::ffi::c_void, pkscontrol: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKsNodeControl_Impl, - { + unsafe extern "system" fn SetKsControl(this: *mut core::ffi::c_void, pkscontrol: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsNodeControl_Impl::SetKsControl(this, core::mem::transmute_copy(&pkscontrol)).into() } @@ -718,19 +541,13 @@ impl IKsNodeControl_Vtbl { iid == &::IID } } -pub trait IKsNotifyEvent_Impl: Sized { +pub trait IKsNotifyEvent_Impl: Sized + windows_core::IUnknownImpl { fn KsNotifyEvent(&self, event: u32, lparam1: usize, lparam2: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IKsNotifyEvent {} impl IKsNotifyEvent_Vtbl { - pub const fn new() -> IKsNotifyEvent_Vtbl - where - Identity: IKsNotifyEvent_Impl, - { - unsafe extern "system" fn KsNotifyEvent(this: *mut core::ffi::c_void, event: u32, lparam1: usize, lparam2: usize) -> windows_core::HRESULT - where - Identity: IKsNotifyEvent_Impl, - { + pub const fn new() -> IKsNotifyEvent_Vtbl { + unsafe extern "system" fn KsNotifyEvent(this: *mut core::ffi::c_void, event: u32, lparam1: usize, lparam2: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsNotifyEvent_Impl::KsNotifyEvent(this, core::mem::transmute_copy(&event), core::mem::transmute_copy(&lparam1), core::mem::transmute_copy(&lparam2)).into() } @@ -740,19 +557,13 @@ impl IKsNotifyEvent_Vtbl { iid == &::IID } } -pub trait IKsObject_Impl: Sized { +pub trait IKsObject_Impl: Sized + windows_core::IUnknownImpl { fn KsGetObjectHandle(&self) -> super::super::Foundation::HANDLE; } impl windows_core::RuntimeName for IKsObject {} impl IKsObject_Vtbl { - pub const fn new() -> IKsObject_Vtbl - where - Identity: IKsObject_Impl, - { - unsafe extern "system" fn KsGetObjectHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: IKsObject_Impl, - { + pub const fn new() -> IKsObject_Vtbl { + unsafe extern "system" fn KsGetObjectHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsObject_Impl::KsGetObjectHandle(this) } @@ -763,7 +574,7 @@ impl IKsObject_Vtbl { } } #[cfg(feature = "Win32_Media_DirectShow")] -pub trait IKsPin_Impl: Sized { +pub trait IKsPin_Impl: Sized + windows_core::IUnknownImpl { fn KsQueryMediums(&self) -> windows_core::Result<*mut KSMULTIPLE_ITEM>; fn KsQueryInterfaces(&self) -> windows_core::Result<*mut KSMULTIPLE_ITEM>; fn KsCreateSinkPinHandle(&self, interface: *const KSIDENTIFIER, medium: *const KSIDENTIFIER) -> windows_core::Result<()>; @@ -782,14 +593,8 @@ pub trait IKsPin_Impl: Sized { impl windows_core::RuntimeName for IKsPin {} #[cfg(feature = "Win32_Media_DirectShow")] impl IKsPin_Vtbl { - pub const fn new() -> IKsPin_Vtbl - where - Identity: IKsPin_Impl, - { - unsafe extern "system" fn KsQueryMediums(this: *mut core::ffi::c_void, mediumlist: *mut *mut KSMULTIPLE_ITEM) -> windows_core::HRESULT - where - Identity: IKsPin_Impl, - { + pub const fn new() -> IKsPin_Vtbl { + unsafe extern "system" fn KsQueryMediums(this: *mut core::ffi::c_void, mediumlist: *mut *mut KSMULTIPLE_ITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsPin_Impl::KsQueryMediums(this) { Ok(ok__) => { @@ -799,10 +604,7 @@ impl IKsPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KsQueryInterfaces(this: *mut core::ffi::c_void, interfacelist: *mut *mut KSMULTIPLE_ITEM) -> windows_core::HRESULT - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsQueryInterfaces(this: *mut core::ffi::c_void, interfacelist: *mut *mut KSMULTIPLE_ITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsPin_Impl::KsQueryInterfaces(this) { Ok(ok__) => { @@ -812,80 +614,47 @@ impl IKsPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KsCreateSinkPinHandle(this: *mut core::ffi::c_void, interface: *const KSIDENTIFIER, medium: *const KSIDENTIFIER) -> windows_core::HRESULT - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsCreateSinkPinHandle(this: *mut core::ffi::c_void, interface: *const KSIDENTIFIER, medium: *const KSIDENTIFIER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsCreateSinkPinHandle(this, core::mem::transmute_copy(&interface), core::mem::transmute_copy(&medium)).into() } - unsafe extern "system" fn KsGetCurrentCommunication(this: *mut core::ffi::c_void, communication: *mut KSPIN_COMMUNICATION, interface: *mut KSIDENTIFIER, medium: *mut KSIDENTIFIER) -> windows_core::HRESULT - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsGetCurrentCommunication(this: *mut core::ffi::c_void, communication: *mut KSPIN_COMMUNICATION, interface: *mut KSIDENTIFIER, medium: *mut KSIDENTIFIER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsGetCurrentCommunication(this, core::mem::transmute_copy(&communication), core::mem::transmute_copy(&interface), core::mem::transmute_copy(&medium)).into() } - unsafe extern "system" fn KsPropagateAcquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsPropagateAcquire(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsPropagateAcquire(this).into() } - unsafe extern "system" fn KsDeliver(this: *mut core::ffi::c_void, sample: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsDeliver(this: *mut core::ffi::c_void, sample: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsDeliver(this, windows_core::from_raw_borrowed(&sample), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn KsMediaSamplesCompleted(this: *mut core::ffi::c_void, streamsegment: *const KSSTREAM_SEGMENT) -> windows_core::HRESULT - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsMediaSamplesCompleted(this: *mut core::ffi::c_void, streamsegment: *const KSSTREAM_SEGMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsMediaSamplesCompleted(this, core::mem::transmute_copy(&streamsegment)).into() } - unsafe extern "system" fn KsPeekAllocator(this: *mut core::ffi::c_void, operation: KSPEEKOPERATION) -> Option - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsPeekAllocator(this: *mut core::ffi::c_void, operation: KSPEEKOPERATION) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsPeekAllocator(this, core::mem::transmute_copy(&operation)) } - unsafe extern "system" fn KsReceiveAllocator(this: *mut core::ffi::c_void, memallocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsReceiveAllocator(this: *mut core::ffi::c_void, memallocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsReceiveAllocator(this, windows_core::from_raw_borrowed(&memallocator)).into() } - unsafe extern "system" fn KsRenegotiateAllocator(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsRenegotiateAllocator(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsRenegotiateAllocator(this).into() } - unsafe extern "system" fn KsIncrementPendingIoCount(this: *mut core::ffi::c_void) -> i32 - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsIncrementPendingIoCount(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsIncrementPendingIoCount(this) } - unsafe extern "system" fn KsDecrementPendingIoCount(this: *mut core::ffi::c_void) -> i32 - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsDecrementPendingIoCount(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsDecrementPendingIoCount(this) } - unsafe extern "system" fn KsQualityNotify(this: *mut core::ffi::c_void, proportion: u32, timedelta: i64) -> windows_core::HRESULT - where - Identity: IKsPin_Impl, - { + unsafe extern "system" fn KsQualityNotify(this: *mut core::ffi::c_void, proportion: u32, timedelta: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPin_Impl::KsQualityNotify(this, core::mem::transmute_copy(&proportion), core::mem::transmute_copy(&timedelta)).into() } @@ -918,14 +687,8 @@ pub trait IKsPinEx_Impl: Sized + IKsPin_Impl { impl windows_core::RuntimeName for IKsPinEx {} #[cfg(feature = "Win32_Media_DirectShow")] impl IKsPinEx_Vtbl { - pub const fn new() -> IKsPinEx_Vtbl - where - Identity: IKsPinEx_Impl, - { - unsafe extern "system" fn KsNotifyError(this: *mut core::ffi::c_void, sample: *mut core::ffi::c_void, hr: windows_core::HRESULT) - where - Identity: IKsPinEx_Impl, - { + pub const fn new() -> IKsPinEx_Vtbl { + unsafe extern "system" fn KsNotifyError(this: *mut core::ffi::c_void, sample: *mut core::ffi::c_void, hr: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinEx_Impl::KsNotifyError(this, windows_core::from_raw_borrowed(&sample), core::mem::transmute_copy(&hr)) } @@ -935,19 +698,13 @@ impl IKsPinEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IKsPinFactory_Impl: Sized { +pub trait IKsPinFactory_Impl: Sized + windows_core::IUnknownImpl { fn KsPinFactory(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IKsPinFactory {} impl IKsPinFactory_Vtbl { - pub const fn new() -> IKsPinFactory_Vtbl - where - Identity: IKsPinFactory_Impl, - { - unsafe extern "system" fn KsPinFactory(this: *mut core::ffi::c_void, pinfactory: *mut u32) -> windows_core::HRESULT - where - Identity: IKsPinFactory_Impl, - { + pub const fn new() -> IKsPinFactory_Vtbl { + unsafe extern "system" fn KsPinFactory(this: *mut core::ffi::c_void, pinfactory: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsPinFactory_Impl::KsPinFactory(this) { Ok(ok__) => { @@ -964,7 +721,7 @@ impl IKsPinFactory_Vtbl { } } #[cfg(feature = "Win32_Media_DirectShow")] -pub trait IKsPinPipe_Impl: Sized { +pub trait IKsPinPipe_Impl: Sized + windows_core::IUnknownImpl { fn KsGetPinFramingCache(&self, framingex: *mut *mut KSALLOCATOR_FRAMING_EX, framingprop: *mut FRAMING_PROP, option: FRAMING_CACHE_OPS) -> windows_core::Result<()>; fn KsSetPinFramingCache(&self, framingex: *const KSALLOCATOR_FRAMING_EX, framingprop: *const FRAMING_PROP, option: FRAMING_CACHE_OPS) -> windows_core::Result<()>; fn KsGetConnectedPin(&self) -> Option; @@ -981,84 +738,48 @@ pub trait IKsPinPipe_Impl: Sized { impl windows_core::RuntimeName for IKsPinPipe {} #[cfg(feature = "Win32_Media_DirectShow")] impl IKsPinPipe_Vtbl { - pub const fn new() -> IKsPinPipe_Vtbl - where - Identity: IKsPinPipe_Impl, - { - unsafe extern "system" fn KsGetPinFramingCache(this: *mut core::ffi::c_void, framingex: *mut *mut KSALLOCATOR_FRAMING_EX, framingprop: *mut FRAMING_PROP, option: FRAMING_CACHE_OPS) -> windows_core::HRESULT - where - Identity: IKsPinPipe_Impl, - { + pub const fn new() -> IKsPinPipe_Vtbl { + unsafe extern "system" fn KsGetPinFramingCache(this: *mut core::ffi::c_void, framingex: *mut *mut KSALLOCATOR_FRAMING_EX, framingprop: *mut FRAMING_PROP, option: FRAMING_CACHE_OPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinPipe_Impl::KsGetPinFramingCache(this, core::mem::transmute_copy(&framingex), core::mem::transmute_copy(&framingprop), core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn KsSetPinFramingCache(this: *mut core::ffi::c_void, framingex: *const KSALLOCATOR_FRAMING_EX, framingprop: *const FRAMING_PROP, option: FRAMING_CACHE_OPS) -> windows_core::HRESULT - where - Identity: IKsPinPipe_Impl, - { + unsafe extern "system" fn KsSetPinFramingCache(this: *mut core::ffi::c_void, framingex: *const KSALLOCATOR_FRAMING_EX, framingprop: *const FRAMING_PROP, option: FRAMING_CACHE_OPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinPipe_Impl::KsSetPinFramingCache(this, core::mem::transmute_copy(&framingex), core::mem::transmute_copy(&framingprop), core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn KsGetConnectedPin(this: *mut core::ffi::c_void) -> Option - where - Identity: IKsPinPipe_Impl, - { + unsafe extern "system" fn KsGetConnectedPin(this: *mut core::ffi::c_void) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinPipe_Impl::KsGetConnectedPin(this) } - unsafe extern "system" fn KsGetPipe(this: *mut core::ffi::c_void, operation: KSPEEKOPERATION) -> Option - where - Identity: IKsPinPipe_Impl, - { + unsafe extern "system" fn KsGetPipe(this: *mut core::ffi::c_void, operation: KSPEEKOPERATION) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinPipe_Impl::KsGetPipe(this, core::mem::transmute_copy(&operation)) } - unsafe extern "system" fn KsSetPipe(this: *mut core::ffi::c_void, ksallocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKsPinPipe_Impl, - { + unsafe extern "system" fn KsSetPipe(this: *mut core::ffi::c_void, ksallocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinPipe_Impl::KsSetPipe(this, windows_core::from_raw_borrowed(&ksallocator)).into() } - unsafe extern "system" fn KsGetPipeAllocatorFlag(this: *mut core::ffi::c_void) -> u32 - where - Identity: IKsPinPipe_Impl, - { + unsafe extern "system" fn KsGetPipeAllocatorFlag(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinPipe_Impl::KsGetPipeAllocatorFlag(this) } - unsafe extern "system" fn KsSetPipeAllocatorFlag(this: *mut core::ffi::c_void, flag: u32) -> windows_core::HRESULT - where - Identity: IKsPinPipe_Impl, - { + unsafe extern "system" fn KsSetPipeAllocatorFlag(this: *mut core::ffi::c_void, flag: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinPipe_Impl::KsSetPipeAllocatorFlag(this, core::mem::transmute_copy(&flag)).into() } - unsafe extern "system" fn KsGetPinBusCache(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) - where - Identity: IKsPinPipe_Impl, - { + unsafe extern "system" fn KsGetPinBusCache(this: *mut core::ffi::c_void, result__: *mut windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = IKsPinPipe_Impl::KsGetPinBusCache(this) } - unsafe extern "system" fn KsSetPinBusCache(this: *mut core::ffi::c_void, bus: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IKsPinPipe_Impl, - { + unsafe extern "system" fn KsSetPinBusCache(this: *mut core::ffi::c_void, bus: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinPipe_Impl::KsSetPinBusCache(this, core::mem::transmute(&bus)).into() } - unsafe extern "system" fn KsGetPinName(this: *mut core::ffi::c_void) -> windows_core::PWSTR - where - Identity: IKsPinPipe_Impl, - { + unsafe extern "system" fn KsGetPinName(this: *mut core::ffi::c_void) -> windows_core::PWSTR { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinPipe_Impl::KsGetPinName(this) } - unsafe extern "system" fn KsGetFilterName(this: *mut core::ffi::c_void) -> windows_core::PWSTR - where - Identity: IKsPinPipe_Impl, - { + unsafe extern "system" fn KsGetFilterName(this: *mut core::ffi::c_void) -> windows_core::PWSTR { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPinPipe_Impl::KsGetFilterName(this) } @@ -1081,35 +802,23 @@ impl IKsPinPipe_Vtbl { iid == &::IID } } -pub trait IKsPropertySet_Impl: Sized { +pub trait IKsPropertySet_Impl: Sized + windows_core::IUnknownImpl { fn Set(&self, guidpropset: *const windows_core::GUID, dwpropid: u32, pinstancedata: *const core::ffi::c_void, cbinstancedata: u32, ppropdata: *const core::ffi::c_void, cbpropdata: u32) -> windows_core::Result<()>; fn Get(&self, guidpropset: *const windows_core::GUID, dwpropid: u32, pinstancedata: *const core::ffi::c_void, cbinstancedata: u32, ppropdata: *mut core::ffi::c_void, cbpropdata: u32, pcbreturned: *mut u32) -> windows_core::Result<()>; fn QuerySupported(&self, guidpropset: *const windows_core::GUID, dwpropid: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IKsPropertySet {} impl IKsPropertySet_Vtbl { - pub const fn new() -> IKsPropertySet_Vtbl - where - Identity: IKsPropertySet_Impl, - { - unsafe extern "system" fn Set(this: *mut core::ffi::c_void, guidpropset: *const windows_core::GUID, dwpropid: u32, pinstancedata: *const core::ffi::c_void, cbinstancedata: u32, ppropdata: *const core::ffi::c_void, cbpropdata: u32) -> windows_core::HRESULT - where - Identity: IKsPropertySet_Impl, - { + pub const fn new() -> IKsPropertySet_Vtbl { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, guidpropset: *const windows_core::GUID, dwpropid: u32, pinstancedata: *const core::ffi::c_void, cbinstancedata: u32, ppropdata: *const core::ffi::c_void, cbpropdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPropertySet_Impl::Set(this, core::mem::transmute_copy(&guidpropset), core::mem::transmute_copy(&dwpropid), core::mem::transmute_copy(&pinstancedata), core::mem::transmute_copy(&cbinstancedata), core::mem::transmute_copy(&ppropdata), core::mem::transmute_copy(&cbpropdata)).into() } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, guidpropset: *const windows_core::GUID, dwpropid: u32, pinstancedata: *const core::ffi::c_void, cbinstancedata: u32, ppropdata: *mut core::ffi::c_void, cbpropdata: u32, pcbreturned: *mut u32) -> windows_core::HRESULT - where - Identity: IKsPropertySet_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, guidpropset: *const windows_core::GUID, dwpropid: u32, pinstancedata: *const core::ffi::c_void, cbinstancedata: u32, ppropdata: *mut core::ffi::c_void, cbpropdata: u32, pcbreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsPropertySet_Impl::Get(this, core::mem::transmute_copy(&guidpropset), core::mem::transmute_copy(&dwpropid), core::mem::transmute_copy(&pinstancedata), core::mem::transmute_copy(&cbinstancedata), core::mem::transmute_copy(&ppropdata), core::mem::transmute_copy(&cbpropdata), core::mem::transmute_copy(&pcbreturned)).into() } - unsafe extern "system" fn QuerySupported(this: *mut core::ffi::c_void, guidpropset: *const windows_core::GUID, dwpropid: u32, ptypesupport: *mut u32) -> windows_core::HRESULT - where - Identity: IKsPropertySet_Impl, - { + unsafe extern "system" fn QuerySupported(this: *mut core::ffi::c_void, guidpropset: *const windows_core::GUID, dwpropid: u32, ptypesupport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsPropertySet_Impl::QuerySupported(this, core::mem::transmute_copy(&guidpropset), core::mem::transmute_copy(&dwpropid)) { Ok(ok__) => { @@ -1135,14 +844,8 @@ pub trait IKsQualityForwarder_Impl: Sized + IKsObject_Impl { } impl windows_core::RuntimeName for IKsQualityForwarder {} impl IKsQualityForwarder_Vtbl { - pub const fn new() -> IKsQualityForwarder_Vtbl - where - Identity: IKsQualityForwarder_Impl, - { - unsafe extern "system" fn KsFlushClient(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void) - where - Identity: IKsQualityForwarder_Impl, - { + pub const fn new() -> IKsQualityForwarder_Vtbl { + unsafe extern "system" fn KsFlushClient(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsQualityForwarder_Impl::KsFlushClient(this, windows_core::from_raw_borrowed(&pin)) } @@ -1152,19 +855,13 @@ impl IKsQualityForwarder_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IKsTopology_Impl: Sized { +pub trait IKsTopology_Impl: Sized + windows_core::IUnknownImpl { fn CreateNodeInstance(&self, nodeid: u32, flags: u32, desiredaccess: u32, unkouter: Option<&windows_core::IUnknown>, interfaceid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IKsTopology {} impl IKsTopology_Vtbl { - pub const fn new() -> IKsTopology_Vtbl - where - Identity: IKsTopology_Impl, - { - unsafe extern "system" fn CreateNodeInstance(this: *mut core::ffi::c_void, nodeid: u32, flags: u32, desiredaccess: u32, unkouter: *mut core::ffi::c_void, interfaceid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKsTopology_Impl, - { + pub const fn new() -> IKsTopology_Vtbl { + unsafe extern "system" fn CreateNodeInstance(this: *mut core::ffi::c_void, nodeid: u32, flags: u32, desiredaccess: u32, unkouter: *mut core::ffi::c_void, interfaceid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsTopology_Impl::CreateNodeInstance(this, core::mem::transmute_copy(&nodeid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&desiredaccess), windows_core::from_raw_borrowed(&unkouter), core::mem::transmute_copy(&interfaceid), core::mem::transmute_copy(&interface)).into() } @@ -1174,7 +871,7 @@ impl IKsTopology_Vtbl { iid == &::IID } } -pub trait IKsTopologyInfo_Impl: Sized { +pub trait IKsTopologyInfo_Impl: Sized + windows_core::IUnknownImpl { fn NumCategories(&self) -> windows_core::Result; fn get_Category(&self, dwindex: u32) -> windows_core::Result; fn NumConnections(&self) -> windows_core::Result; @@ -1186,14 +883,8 @@ pub trait IKsTopologyInfo_Impl: Sized { } impl windows_core::RuntimeName for IKsTopologyInfo {} impl IKsTopologyInfo_Vtbl { - pub const fn new() -> IKsTopologyInfo_Vtbl - where - Identity: IKsTopologyInfo_Impl, - { - unsafe extern "system" fn NumCategories(this: *mut core::ffi::c_void, pdwnumcategories: *mut u32) -> windows_core::HRESULT - where - Identity: IKsTopologyInfo_Impl, - { + pub const fn new() -> IKsTopologyInfo_Vtbl { + unsafe extern "system" fn NumCategories(this: *mut core::ffi::c_void, pdwnumcategories: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsTopologyInfo_Impl::NumCategories(this) { Ok(ok__) => { @@ -1203,10 +894,7 @@ impl IKsTopologyInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Category(this: *mut core::ffi::c_void, dwindex: u32, pcategory: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IKsTopologyInfo_Impl, - { + unsafe extern "system" fn get_Category(this: *mut core::ffi::c_void, dwindex: u32, pcategory: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsTopologyInfo_Impl::get_Category(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -1216,10 +904,7 @@ impl IKsTopologyInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumConnections(this: *mut core::ffi::c_void, pdwnumconnections: *mut u32) -> windows_core::HRESULT - where - Identity: IKsTopologyInfo_Impl, - { + unsafe extern "system" fn NumConnections(this: *mut core::ffi::c_void, pdwnumconnections: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsTopologyInfo_Impl::NumConnections(this) { Ok(ok__) => { @@ -1229,10 +914,7 @@ impl IKsTopologyInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ConnectionInfo(this: *mut core::ffi::c_void, dwindex: u32, pconnectioninfo: *mut KSTOPOLOGY_CONNECTION) -> windows_core::HRESULT - where - Identity: IKsTopologyInfo_Impl, - { + unsafe extern "system" fn get_ConnectionInfo(this: *mut core::ffi::c_void, dwindex: u32, pconnectioninfo: *mut KSTOPOLOGY_CONNECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsTopologyInfo_Impl::get_ConnectionInfo(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -1242,17 +924,11 @@ impl IKsTopologyInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_NodeName(this: *mut core::ffi::c_void, dwnodeid: u32, pwchnodename: windows_core::PWSTR, dwbufsize: u32, pdwnamelen: *mut u32) -> windows_core::HRESULT - where - Identity: IKsTopologyInfo_Impl, - { + unsafe extern "system" fn get_NodeName(this: *mut core::ffi::c_void, dwnodeid: u32, pwchnodename: windows_core::PWSTR, dwbufsize: u32, pdwnamelen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsTopologyInfo_Impl::get_NodeName(this, core::mem::transmute_copy(&dwnodeid), core::mem::transmute_copy(&pwchnodename), core::mem::transmute_copy(&dwbufsize), core::mem::transmute_copy(&pdwnamelen)).into() } - unsafe extern "system" fn NumNodes(this: *mut core::ffi::c_void, pdwnumnodes: *mut u32) -> windows_core::HRESULT - where - Identity: IKsTopologyInfo_Impl, - { + unsafe extern "system" fn NumNodes(this: *mut core::ffi::c_void, pdwnumnodes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsTopologyInfo_Impl::NumNodes(this) { Ok(ok__) => { @@ -1262,10 +938,7 @@ impl IKsTopologyInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_NodeType(this: *mut core::ffi::c_void, dwnodeid: u32, pnodetype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IKsTopologyInfo_Impl, - { + unsafe extern "system" fn get_NodeType(this: *mut core::ffi::c_void, dwnodeid: u32, pnodetype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKsTopologyInfo_Impl::get_NodeType(this, core::mem::transmute_copy(&dwnodeid)) { Ok(ok__) => { @@ -1275,10 +948,7 @@ impl IKsTopologyInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateNodeInstance(this: *mut core::ffi::c_void, dwnodeid: u32, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKsTopologyInfo_Impl, - { + unsafe extern "system" fn CreateNodeInstance(this: *mut core::ffi::c_void, dwnodeid: u32, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsTopologyInfo_Impl::CreateNodeInstance(this, core::mem::transmute_copy(&dwnodeid), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppvobject)).into() } 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 2cbc67670e..76b181d79b 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/impl.rs @@ -9,14 +9,8 @@ pub trait IWindowsMediaLibrarySharingDevice_Impl: Sized + super::super::System:: impl windows_core::RuntimeName for IWindowsMediaLibrarySharingDevice {} #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingDevice_Vtbl { - pub const fn new() -> IWindowsMediaLibrarySharingDevice_Vtbl - where - Identity: IWindowsMediaLibrarySharingDevice_Impl, - { - unsafe extern "system" fn DeviceID(this: *mut core::ffi::c_void, deviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDevice_Impl, - { + pub const fn new() -> IWindowsMediaLibrarySharingDevice_Vtbl { + unsafe extern "system" fn DeviceID(this: *mut core::ffi::c_void, deviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDevice_Impl::DeviceID(this) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl IWindowsMediaLibrarySharingDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Authorization(this: *mut core::ffi::c_void, authorization: *mut WindowsMediaLibrarySharingDeviceAuthorizationStatus) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDevice_Impl, - { + unsafe extern "system" fn Authorization(this: *mut core::ffi::c_void, authorization: *mut WindowsMediaLibrarySharingDeviceAuthorizationStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDevice_Impl::Authorization(this) { Ok(ok__) => { @@ -39,17 +30,11 @@ impl IWindowsMediaLibrarySharingDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthorization(this: *mut core::ffi::c_void, authorization: WindowsMediaLibrarySharingDeviceAuthorizationStatus) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDevice_Impl, - { + unsafe extern "system" fn SetAuthorization(this: *mut core::ffi::c_void, authorization: WindowsMediaLibrarySharingDeviceAuthorizationStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingDevice_Impl::SetAuthorization(this, core::mem::transmute_copy(&authorization)).into() } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, deviceproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDevice_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, deviceproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDevice_Impl::Properties(this) { Ok(ok__) => { @@ -81,14 +66,8 @@ pub trait IWindowsMediaLibrarySharingDeviceProperties_Impl: Sized + super::super impl windows_core::RuntimeName for IWindowsMediaLibrarySharingDeviceProperties {} #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingDeviceProperties_Vtbl { - pub const fn new() -> IWindowsMediaLibrarySharingDeviceProperties_Vtbl - where - Identity: IWindowsMediaLibrarySharingDeviceProperties_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, property: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDeviceProperties_Impl, - { + pub const fn new() -> IWindowsMediaLibrarySharingDeviceProperties_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, property: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDeviceProperties_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -98,10 +77,7 @@ impl IWindowsMediaLibrarySharingDeviceProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDeviceProperties_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDeviceProperties_Impl::Count(this) { Ok(ok__) => { @@ -111,10 +87,7 @@ impl IWindowsMediaLibrarySharingDeviceProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, property: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDeviceProperties_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, property: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDeviceProperties_Impl::GetProperty(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -144,14 +117,8 @@ pub trait IWindowsMediaLibrarySharingDeviceProperty_Impl: Sized + super::super:: impl windows_core::RuntimeName for IWindowsMediaLibrarySharingDeviceProperty {} #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingDeviceProperty_Vtbl { - pub const fn new() -> IWindowsMediaLibrarySharingDeviceProperty_Vtbl - where - Identity: IWindowsMediaLibrarySharingDeviceProperty_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDeviceProperty_Impl, - { + pub const fn new() -> IWindowsMediaLibrarySharingDeviceProperty_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDeviceProperty_Impl::Name(this) { Ok(ok__) => { @@ -161,10 +128,7 @@ impl IWindowsMediaLibrarySharingDeviceProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDeviceProperty_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDeviceProperty_Impl::Value(this) { Ok(ok__) => { @@ -190,14 +154,8 @@ pub trait IWindowsMediaLibrarySharingDevices_Impl: Sized + super::super::System: impl windows_core::RuntimeName for IWindowsMediaLibrarySharingDevices {} #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingDevices_Vtbl { - pub const fn new() -> IWindowsMediaLibrarySharingDevices_Vtbl - where - Identity: IWindowsMediaLibrarySharingDevices_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, device: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDevices_Impl, - { + pub const fn new() -> IWindowsMediaLibrarySharingDevices_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, device: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDevices_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -207,10 +165,7 @@ impl IWindowsMediaLibrarySharingDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDevices_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDevices_Impl::Count(this) { Ok(ok__) => { @@ -220,10 +175,7 @@ impl IWindowsMediaLibrarySharingDevices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, deviceid: core::mem::MaybeUninit, device: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingDevices_Impl, - { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, deviceid: core::mem::MaybeUninit, device: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingDevices_Impl::GetDevice(this, core::mem::transmute(&deviceid)) { Ok(ok__) => { @@ -270,21 +222,12 @@ pub trait IWindowsMediaLibrarySharingServices_Impl: Sized + super::super::System impl windows_core::RuntimeName for IWindowsMediaLibrarySharingServices {} #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingServices_Vtbl { - pub const fn new() -> IWindowsMediaLibrarySharingServices_Vtbl - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { - unsafe extern "system" fn showShareMediaCPL(this: *mut core::ffi::c_void, device: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + pub const fn new() -> IWindowsMediaLibrarySharingServices_Vtbl { + unsafe extern "system" fn showShareMediaCPL(this: *mut core::ffi::c_void, device: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingServices_Impl::showShareMediaCPL(this, core::mem::transmute(&device)).into() } - unsafe extern "system" fn userHomeMediaSharingState(this: *mut core::ffi::c_void, sharingenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn userHomeMediaSharingState(this: *mut core::ffi::c_void, sharingenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingServices_Impl::userHomeMediaSharingState(this) { Ok(ok__) => { @@ -294,17 +237,11 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetuserHomeMediaSharingState(this: *mut core::ffi::c_void, sharingenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn SetuserHomeMediaSharingState(this: *mut core::ffi::c_void, sharingenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingServices_Impl::SetuserHomeMediaSharingState(this, core::mem::transmute_copy(&sharingenabled)).into() } - unsafe extern "system" fn userHomeMediaSharingLibraryName(this: *mut core::ffi::c_void, libraryname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn userHomeMediaSharingLibraryName(this: *mut core::ffi::c_void, libraryname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingServices_Impl::userHomeMediaSharingLibraryName(this) { Ok(ok__) => { @@ -314,17 +251,11 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetuserHomeMediaSharingLibraryName(this: *mut core::ffi::c_void, libraryname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn SetuserHomeMediaSharingLibraryName(this: *mut core::ffi::c_void, libraryname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingServices_Impl::SetuserHomeMediaSharingLibraryName(this, core::mem::transmute(&libraryname)).into() } - unsafe extern "system" fn computerHomeMediaSharingAllowedState(this: *mut core::ffi::c_void, sharingallowed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn computerHomeMediaSharingAllowedState(this: *mut core::ffi::c_void, sharingallowed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingServices_Impl::computerHomeMediaSharingAllowedState(this) { Ok(ok__) => { @@ -334,17 +265,11 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetcomputerHomeMediaSharingAllowedState(this: *mut core::ffi::c_void, sharingallowed: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn SetcomputerHomeMediaSharingAllowedState(this: *mut core::ffi::c_void, sharingallowed: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingServices_Impl::SetcomputerHomeMediaSharingAllowedState(this, core::mem::transmute_copy(&sharingallowed)).into() } - unsafe extern "system" fn userInternetMediaSharingState(this: *mut core::ffi::c_void, sharingenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn userInternetMediaSharingState(this: *mut core::ffi::c_void, sharingenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingServices_Impl::userInternetMediaSharingState(this) { Ok(ok__) => { @@ -354,17 +279,11 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetuserInternetMediaSharingState(this: *mut core::ffi::c_void, sharingenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn SetuserInternetMediaSharingState(this: *mut core::ffi::c_void, sharingenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingServices_Impl::SetuserInternetMediaSharingState(this, core::mem::transmute_copy(&sharingenabled)).into() } - unsafe extern "system" fn computerInternetMediaSharingAllowedState(this: *mut core::ffi::c_void, sharingallowed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn computerInternetMediaSharingAllowedState(this: *mut core::ffi::c_void, sharingallowed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingServices_Impl::computerInternetMediaSharingAllowedState(this) { Ok(ok__) => { @@ -374,17 +293,11 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetcomputerInternetMediaSharingAllowedState(this: *mut core::ffi::c_void, sharingallowed: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn SetcomputerInternetMediaSharingAllowedState(this: *mut core::ffi::c_void, sharingallowed: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingServices_Impl::SetcomputerInternetMediaSharingAllowedState(this, core::mem::transmute_copy(&sharingallowed)).into() } - unsafe extern "system" fn internetMediaSharingSecurityGroup(this: *mut core::ffi::c_void, securitygroup: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn internetMediaSharingSecurityGroup(this: *mut core::ffi::c_void, securitygroup: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingServices_Impl::internetMediaSharingSecurityGroup(this) { Ok(ok__) => { @@ -394,17 +307,11 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetinternetMediaSharingSecurityGroup(this: *mut core::ffi::c_void, securitygroup: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn SetinternetMediaSharingSecurityGroup(this: *mut core::ffi::c_void, securitygroup: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingServices_Impl::SetinternetMediaSharingSecurityGroup(this, core::mem::transmute(&securitygroup)).into() } - unsafe extern "system" fn allowSharingToAllDevices(this: *mut core::ffi::c_void, sharingenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn allowSharingToAllDevices(this: *mut core::ffi::c_void, sharingenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingServices_Impl::allowSharingToAllDevices(this) { Ok(ok__) => { @@ -414,31 +321,19 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetallowSharingToAllDevices(this: *mut core::ffi::c_void, sharingenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn SetallowSharingToAllDevices(this: *mut core::ffi::c_void, sharingenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingServices_Impl::SetallowSharingToAllDevices(this, core::mem::transmute_copy(&sharingenabled)).into() } - unsafe extern "system" fn setDefaultAuthorization(this: *mut core::ffi::c_void, macaddresses: core::mem::MaybeUninit, friendlyname: core::mem::MaybeUninit, authorization: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn setDefaultAuthorization(this: *mut core::ffi::c_void, macaddresses: core::mem::MaybeUninit, friendlyname: core::mem::MaybeUninit, authorization: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingServices_Impl::setDefaultAuthorization(this, core::mem::transmute(&macaddresses), core::mem::transmute(&friendlyname), core::mem::transmute_copy(&authorization)).into() } - unsafe extern "system" fn setAuthorizationState(this: *mut core::ffi::c_void, macaddress: core::mem::MaybeUninit, authorizationstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn setAuthorizationState(this: *mut core::ffi::c_void, macaddress: core::mem::MaybeUninit, authorizationstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsMediaLibrarySharingServices_Impl::setAuthorizationState(this, core::mem::transmute(&macaddress), core::mem::transmute_copy(&authorizationstate)).into() } - unsafe extern "system" fn getAllDevices(this: *mut core::ffi::c_void, devices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn getAllDevices(this: *mut core::ffi::c_void, devices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingServices_Impl::getAllDevices(this) { Ok(ok__) => { @@ -448,10 +343,7 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn customSettingsApplied(this: *mut core::ffi::c_void, customsettingsapplied: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsMediaLibrarySharingServices_Impl, - { + unsafe extern "system" fn customSettingsApplied(this: *mut core::ffi::c_void, customsettingsapplied: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsMediaLibrarySharingServices_Impl::customSettingsApplied(this) { Ok(ok__) => { 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 49d91779ce..6209285553 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/impl.rs @@ -1,16 +1,10 @@ -pub trait IAdvancedMediaCapture_Impl: Sized { +pub trait IAdvancedMediaCapture_Impl: Sized + windows_core::IUnknownImpl { fn GetAdvancedMediaCaptureSettings(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAdvancedMediaCapture {} impl IAdvancedMediaCapture_Vtbl { - pub const fn new() -> IAdvancedMediaCapture_Vtbl - where - Identity: IAdvancedMediaCapture_Impl, - { - unsafe extern "system" fn GetAdvancedMediaCaptureSettings(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAdvancedMediaCapture_Impl, - { + pub const fn new() -> IAdvancedMediaCapture_Vtbl { + unsafe extern "system" fn GetAdvancedMediaCaptureSettings(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdvancedMediaCapture_Impl::GetAdvancedMediaCaptureSettings(this) { Ok(ok__) => { @@ -29,19 +23,13 @@ impl IAdvancedMediaCapture_Vtbl { iid == &::IID } } -pub trait IAdvancedMediaCaptureInitializationSettings_Impl: Sized { +pub trait IAdvancedMediaCaptureInitializationSettings_Impl: Sized + windows_core::IUnknownImpl { fn SetDirectxDeviceManager(&self, value: Option<&IMFDXGIDeviceManager>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAdvancedMediaCaptureInitializationSettings {} impl IAdvancedMediaCaptureInitializationSettings_Vtbl { - pub const fn new() -> IAdvancedMediaCaptureInitializationSettings_Vtbl - where - Identity: IAdvancedMediaCaptureInitializationSettings_Impl, - { - unsafe extern "system" fn SetDirectxDeviceManager(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAdvancedMediaCaptureInitializationSettings_Impl, - { + pub const fn new() -> IAdvancedMediaCaptureInitializationSettings_Vtbl { + unsafe extern "system" fn SetDirectxDeviceManager(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdvancedMediaCaptureInitializationSettings_Impl::SetDirectxDeviceManager(this, windows_core::from_raw_borrowed(&value)).into() } @@ -51,19 +39,13 @@ impl IAdvancedMediaCaptureInitializationSettings_Vtbl { iid == &::IID } } -pub trait IAdvancedMediaCaptureSettings_Impl: Sized { +pub trait IAdvancedMediaCaptureSettings_Impl: Sized + windows_core::IUnknownImpl { fn GetDirectxDeviceManager(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAdvancedMediaCaptureSettings {} impl IAdvancedMediaCaptureSettings_Vtbl { - pub const fn new() -> IAdvancedMediaCaptureSettings_Vtbl - where - Identity: IAdvancedMediaCaptureSettings_Impl, - { - unsafe extern "system" fn GetDirectxDeviceManager(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAdvancedMediaCaptureSettings_Impl, - { + pub const fn new() -> IAdvancedMediaCaptureSettings_Vtbl { + unsafe extern "system" fn GetDirectxDeviceManager(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAdvancedMediaCaptureSettings_Impl::GetDirectxDeviceManager(this) { Ok(ok__) => { @@ -79,19 +61,13 @@ impl IAdvancedMediaCaptureSettings_Vtbl { iid == &::IID } } -pub trait IAudioSourceProvider_Impl: Sized { +pub trait IAudioSourceProvider_Impl: Sized + windows_core::IUnknownImpl { fn ProvideInput(&self, dwsamplecount: u32, pdwchannelcount: *mut u32, pinterleavedaudiodata: *mut f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioSourceProvider {} impl IAudioSourceProvider_Vtbl { - pub const fn new() -> IAudioSourceProvider_Vtbl - where - Identity: IAudioSourceProvider_Impl, - { - unsafe extern "system" fn ProvideInput(this: *mut core::ffi::c_void, dwsamplecount: u32, pdwchannelcount: *mut u32, pinterleavedaudiodata: *mut f32) -> windows_core::HRESULT - where - Identity: IAudioSourceProvider_Impl, - { + pub const fn new() -> IAudioSourceProvider_Vtbl { + unsafe extern "system" fn ProvideInput(this: *mut core::ffi::c_void, dwsamplecount: u32, pdwchannelcount: *mut u32, pinterleavedaudiodata: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSourceProvider_Impl::ProvideInput(this, core::mem::transmute_copy(&dwsamplecount), core::mem::transmute_copy(&pdwchannelcount), core::mem::transmute_copy(&pinterleavedaudiodata)).into() } @@ -101,27 +77,18 @@ impl IAudioSourceProvider_Vtbl { iid == &::IID } } -pub trait IClusterDetector_Impl: Sized { +pub trait IClusterDetector_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, wbaseentrylevel: u16, wclusterentrylevel: u16) -> windows_core::Result<()>; fn Detect(&self, dwmaxnumclusters: u32, fminclusterduration: f32, fmaxclusterduration: f32, psrctoc: Option<&IToc>) -> windows_core::Result; } impl windows_core::RuntimeName for IClusterDetector {} impl IClusterDetector_Vtbl { - pub const fn new() -> IClusterDetector_Vtbl - where - Identity: IClusterDetector_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, wbaseentrylevel: u16, wclusterentrylevel: u16) -> windows_core::HRESULT - where - Identity: IClusterDetector_Impl, - { + pub const fn new() -> IClusterDetector_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, wbaseentrylevel: u16, wclusterentrylevel: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClusterDetector_Impl::Initialize(this, core::mem::transmute_copy(&wbaseentrylevel), core::mem::transmute_copy(&wclusterentrylevel)).into() } - unsafe extern "system" fn Detect(this: *mut core::ffi::c_void, dwmaxnumclusters: u32, fminclusterduration: f32, fmaxclusterduration: f32, psrctoc: *mut core::ffi::c_void, ppdsttoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IClusterDetector_Impl, - { + unsafe extern "system" fn Detect(this: *mut core::ffi::c_void, dwmaxnumclusters: u32, fminclusterduration: f32, fmaxclusterduration: f32, psrctoc: *mut core::ffi::c_void, ppdsttoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IClusterDetector_Impl::Detect(this, core::mem::transmute_copy(&dwmaxnumclusters), core::mem::transmute_copy(&fminclusterduration), core::mem::transmute_copy(&fmaxclusterduration), windows_core::from_raw_borrowed(&psrctoc)) { Ok(ok__) => { @@ -138,7 +105,7 @@ impl IClusterDetector_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICodecAPI_Impl: Sized { +pub trait ICodecAPI_Impl: Sized + windows_core::IUnknownImpl { fn IsSupported(&self, api: *const windows_core::GUID) -> windows_core::Result<()>; fn IsModifiable(&self, api: *const windows_core::GUID) -> windows_core::HRESULT; fn GetParameterRange(&self, api: *const windows_core::GUID, valuemin: *mut windows_core::VARIANT, valuemax: *mut windows_core::VARIANT, steppingdelta: *mut windows_core::VARIANT) -> windows_core::Result<()>; @@ -159,42 +126,24 @@ pub trait ICodecAPI_Impl: Sized { impl windows_core::RuntimeName for ICodecAPI {} #[cfg(feature = "Win32_System_Com")] impl ICodecAPI_Vtbl { - pub const fn new() -> ICodecAPI_Vtbl - where - Identity: ICodecAPI_Impl, - { - unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, api: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + pub const fn new() -> ICodecAPI_Vtbl { + unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, api: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::IsSupported(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn IsModifiable(this: *mut core::ffi::c_void, api: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn IsModifiable(this: *mut core::ffi::c_void, api: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::IsModifiable(this, core::mem::transmute_copy(&api)) } - unsafe extern "system" fn GetParameterRange(this: *mut core::ffi::c_void, api: *const windows_core::GUID, valuemin: *mut core::mem::MaybeUninit, valuemax: *mut core::mem::MaybeUninit, steppingdelta: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn GetParameterRange(this: *mut core::ffi::c_void, api: *const windows_core::GUID, valuemin: *mut core::mem::MaybeUninit, valuemax: *mut core::mem::MaybeUninit, steppingdelta: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::GetParameterRange(this, core::mem::transmute_copy(&api), core::mem::transmute_copy(&valuemin), core::mem::transmute_copy(&valuemax), core::mem::transmute_copy(&steppingdelta)).into() } - unsafe extern "system" fn GetParameterValues(this: *mut core::ffi::c_void, api: *const windows_core::GUID, values: *mut *mut windows_core::VARIANT, valuescount: *mut u32) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn GetParameterValues(this: *mut core::ffi::c_void, api: *const windows_core::GUID, values: *mut *mut windows_core::VARIANT, valuescount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::GetParameterValues(this, core::mem::transmute_copy(&api), core::mem::transmute_copy(&values), core::mem::transmute_copy(&valuescount)).into() } - unsafe extern "system" fn GetDefaultValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn GetDefaultValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICodecAPI_Impl::GetDefaultValue(this, core::mem::transmute_copy(&api)) { Ok(ok__) => { @@ -204,10 +153,7 @@ impl ICodecAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICodecAPI_Impl::GetValue(this, core::mem::transmute_copy(&api)) { Ok(ok__) => { @@ -217,66 +163,39 @@ impl ICodecAPI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::SetValue(this, core::mem::transmute_copy(&api), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn RegisterForEvent(this: *mut core::ffi::c_void, api: *const windows_core::GUID, userdata: isize) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn RegisterForEvent(this: *mut core::ffi::c_void, api: *const windows_core::GUID, userdata: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::RegisterForEvent(this, core::mem::transmute_copy(&api), core::mem::transmute_copy(&userdata)).into() } - unsafe extern "system" fn UnregisterForEvent(this: *mut core::ffi::c_void, api: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn UnregisterForEvent(this: *mut core::ffi::c_void, api: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::UnregisterForEvent(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn SetAllDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn SetAllDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::SetAllDefaults(this).into() } - unsafe extern "system" fn SetValueWithNotify(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *const core::mem::MaybeUninit, changedparam: *mut *mut windows_core::GUID, changedparamcount: *mut u32) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn SetValueWithNotify(this: *mut core::ffi::c_void, api: *const windows_core::GUID, value: *const core::mem::MaybeUninit, changedparam: *mut *mut windows_core::GUID, changedparamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::SetValueWithNotify(this, core::mem::transmute_copy(&api), core::mem::transmute_copy(&value), core::mem::transmute_copy(&changedparam), core::mem::transmute_copy(&changedparamcount)).into() } - unsafe extern "system" fn SetAllDefaultsWithNotify(this: *mut core::ffi::c_void, changedparam: *mut *mut windows_core::GUID, changedparamcount: *mut u32) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn SetAllDefaultsWithNotify(this: *mut core::ffi::c_void, changedparam: *mut *mut windows_core::GUID, changedparamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::SetAllDefaultsWithNotify(this, core::mem::transmute_copy(&changedparam), core::mem::transmute_copy(&changedparamcount)).into() } - unsafe extern "system" fn GetAllSettings(this: *mut core::ffi::c_void, __midl__icodecapi0000: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn GetAllSettings(this: *mut core::ffi::c_void, __midl__icodecapi0000: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::GetAllSettings(this, windows_core::from_raw_borrowed(&__midl__icodecapi0000)).into() } - unsafe extern "system" fn SetAllSettings(this: *mut core::ffi::c_void, __midl__icodecapi0001: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn SetAllSettings(this: *mut core::ffi::c_void, __midl__icodecapi0001: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::SetAllSettings(this, windows_core::from_raw_borrowed(&__midl__icodecapi0001)).into() } - unsafe extern "system" fn SetAllSettingsWithNotify(this: *mut core::ffi::c_void, __midl__icodecapi0002: *mut core::ffi::c_void, changedparam: *mut *mut windows_core::GUID, changedparamcount: *mut u32) -> windows_core::HRESULT - where - Identity: ICodecAPI_Impl, - { + unsafe extern "system" fn SetAllSettingsWithNotify(this: *mut core::ffi::c_void, __midl__icodecapi0002: *mut core::ffi::c_void, changedparam: *mut *mut windows_core::GUID, changedparamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodecAPI_Impl::SetAllSettingsWithNotify(this, windows_core::from_raw_borrowed(&__midl__icodecapi0002), core::mem::transmute_copy(&changedparam), core::mem::transmute_copy(&changedparamcount)).into() } @@ -324,105 +243,60 @@ pub trait ID3D12VideoDecodeCommandList_Impl: Sized + super::super::Graphics::Dir impl windows_core::RuntimeName for ID3D12VideoDecodeCommandList {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoDecodeCommandList_Vtbl { - pub const fn new() -> ID3D12VideoDecodeCommandList_Vtbl - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + pub const fn new() -> ID3D12VideoDecodeCommandList_Vtbl { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::Close(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::Reset(this, windows_core::from_raw_borrowed(&pallocator)).into() } - unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::ClearState(this) } - unsafe extern "system" fn ResourceBarrier(this: *mut core::ffi::c_void, numbarriers: u32, pbarriers: *const super::super::Graphics::Direct3D12::D3D12_RESOURCE_BARRIER) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn ResourceBarrier(this: *mut core::ffi::c_void, numbarriers: u32, pbarriers: *const super::super::Graphics::Direct3D12::D3D12_RESOURCE_BARRIER) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::ResourceBarrier(this, core::mem::transmute_copy(&numbarriers), core::mem::transmute_copy(&pbarriers)) } - unsafe extern "system" fn DiscardResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pregion: *const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn DiscardResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pregion: *const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::DiscardResource(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pregion)) } - unsafe extern "system" fn BeginQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn BeginQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::BeginQuery(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&index)) } - unsafe extern "system" fn EndQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn EndQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::EndQuery(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&index)) } - unsafe extern "system" fn ResolveQueryData(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: *mut core::ffi::c_void, aligneddestinationbufferoffset: u64) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn ResolveQueryData(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: *mut core::ffi::c_void, aligneddestinationbufferoffset: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::ResolveQueryData(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&numqueries), windows_core::from_raw_borrowed(&pdestinationbuffer), core::mem::transmute_copy(&aligneddestinationbufferoffset)) } - unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void, alignedbufferoffset: u64, operation: super::super::Graphics::Direct3D12::D3D12_PREDICATION_OP) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void, alignedbufferoffset: u64, operation: super::super::Graphics::Direct3D12::D3D12_PREDICATION_OP) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::SetPredication(this, windows_core::from_raw_borrowed(&pbuffer), core::mem::transmute_copy(&alignedbufferoffset), core::mem::transmute_copy(&operation)) } - unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::SetMarker(this, core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::BeginEvent(this, core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::EndEvent(this) } - unsafe extern "system" fn DecodeFrame(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn DecodeFrame(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::DecodeFrame(this, windows_core::from_raw_borrowed(&pdecoder), core::mem::transmute_copy(&poutputarguments), core::mem::transmute_copy(&pinputarguments)) } - unsafe extern "system" fn WriteBufferImmediate(this: *mut core::ffi::c_void, count: u32, pparams: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_MODE) - where - Identity: ID3D12VideoDecodeCommandList_Impl, - { + unsafe extern "system" fn WriteBufferImmediate(this: *mut core::ffi::c_void, count: u32, pparams: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList_Impl::WriteBufferImmediate(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&pparams), core::mem::transmute_copy(&pmodes)) } @@ -456,14 +330,8 @@ pub trait ID3D12VideoDecodeCommandList1_Impl: Sized + ID3D12VideoDecodeCommandLi impl windows_core::RuntimeName for ID3D12VideoDecodeCommandList1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoDecodeCommandList1_Vtbl { - pub const fn new() -> ID3D12VideoDecodeCommandList1_Vtbl - where - Identity: ID3D12VideoDecodeCommandList1_Impl, - { - unsafe extern "system" fn DecodeFrame1(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) - where - Identity: ID3D12VideoDecodeCommandList1_Impl, - { + pub const fn new() -> ID3D12VideoDecodeCommandList1_Vtbl { + unsafe extern "system" fn DecodeFrame1(this: *mut core::ffi::c_void, pdecoder: *mut core::ffi::c_void, poutputarguments: *const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1, pinputarguments: *const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList1_Impl::DecodeFrame1(this, windows_core::from_raw_borrowed(&pdecoder), core::mem::transmute_copy(&poutputarguments), core::mem::transmute_copy(&pinputarguments)) } @@ -483,28 +351,16 @@ pub trait ID3D12VideoDecodeCommandList2_Impl: Sized + ID3D12VideoDecodeCommandLi impl windows_core::RuntimeName for ID3D12VideoDecodeCommandList2 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoDecodeCommandList2_Vtbl { - pub const fn new() -> ID3D12VideoDecodeCommandList2_Vtbl - where - Identity: ID3D12VideoDecodeCommandList2_Impl, - { - unsafe extern "system" fn SetProtectedResourceSession(this: *mut core::ffi::c_void, pprotectedresourcesession: *mut core::ffi::c_void) - where - Identity: ID3D12VideoDecodeCommandList2_Impl, - { + pub const fn new() -> ID3D12VideoDecodeCommandList2_Vtbl { + unsafe extern "system" fn SetProtectedResourceSession(this: *mut core::ffi::c_void, pprotectedresourcesession: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList2_Impl::SetProtectedResourceSession(this, windows_core::from_raw_borrowed(&pprotectedresourcesession)) } - unsafe extern "system" fn InitializeExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) - where - Identity: ID3D12VideoDecodeCommandList2_Impl, - { + unsafe extern "system" fn InitializeExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList2_Impl::InitializeExtensionCommand(this, windows_core::from_raw_borrowed(&pextensioncommand), core::mem::transmute_copy(&pinitializationparameters), core::mem::transmute_copy(&initializationparameterssizeinbytes)) } - unsafe extern "system" fn ExecuteExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize) - where - Identity: ID3D12VideoDecodeCommandList2_Impl, - { + unsafe extern "system" fn ExecuteExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList2_Impl::ExecuteExtensionCommand(this, windows_core::from_raw_borrowed(&pextensioncommand), core::mem::transmute_copy(&pexecutionparameters), core::mem::transmute_copy(&executionparameterssizeinbytes)) } @@ -527,14 +383,8 @@ pub trait ID3D12VideoDecodeCommandList3_Impl: Sized + ID3D12VideoDecodeCommandLi impl windows_core::RuntimeName for ID3D12VideoDecodeCommandList3 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoDecodeCommandList3_Vtbl { - pub const fn new() -> ID3D12VideoDecodeCommandList3_Vtbl - where - Identity: ID3D12VideoDecodeCommandList3_Impl, - { - unsafe extern "system" fn Barrier(this: *mut core::ffi::c_void, numbarriergroups: u32, pbarriergroups: *const super::super::Graphics::Direct3D12::D3D12_BARRIER_GROUP) - where - Identity: ID3D12VideoDecodeCommandList3_Impl, - { + pub const fn new() -> ID3D12VideoDecodeCommandList3_Vtbl { + unsafe extern "system" fn Barrier(this: *mut core::ffi::c_void, numbarriergroups: u32, pbarriergroups: *const super::super::Graphics::Direct3D12::D3D12_BARRIER_GROUP) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecodeCommandList3_Impl::Barrier(this, core::mem::transmute_copy(&numbarriergroups), core::mem::transmute_copy(&pbarriergroups)) } @@ -552,14 +402,8 @@ pub trait ID3D12VideoDecoder_Impl: Sized + super::super::Graphics::Direct3D12::I impl windows_core::RuntimeName for ID3D12VideoDecoder {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoDecoder_Vtbl { - pub const fn new() -> ID3D12VideoDecoder_Vtbl - where - Identity: ID3D12VideoDecoder_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_DECODER_DESC) - where - Identity: ID3D12VideoDecoder_Impl, - { + pub const fn new() -> ID3D12VideoDecoder_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_DECODER_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12VideoDecoder_Impl::GetDesc(this) } @@ -577,14 +421,8 @@ pub trait ID3D12VideoDecoder1_Impl: Sized + ID3D12VideoDecoder_Impl { impl windows_core::RuntimeName for ID3D12VideoDecoder1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoDecoder1_Vtbl { - pub const fn new() -> ID3D12VideoDecoder1_Vtbl - where - Identity: ID3D12VideoDecoder1_Impl, - { - unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDecoder1_Impl, - { + pub const fn new() -> ID3D12VideoDecoder1_Vtbl { + unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecoder1_Impl::GetProtectedResourceSession(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppprotectedsession)).into() } @@ -602,14 +440,8 @@ pub trait ID3D12VideoDecoderHeap_Impl: Sized + super::super::Graphics::Direct3D1 impl windows_core::RuntimeName for ID3D12VideoDecoderHeap {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoDecoderHeap_Vtbl { - pub const fn new() -> ID3D12VideoDecoderHeap_Vtbl - where - Identity: ID3D12VideoDecoderHeap_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_DECODER_HEAP_DESC) - where - Identity: ID3D12VideoDecoderHeap_Impl, - { + pub const fn new() -> ID3D12VideoDecoderHeap_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_DECODER_HEAP_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12VideoDecoderHeap_Impl::GetDesc(this) } @@ -627,14 +459,8 @@ pub trait ID3D12VideoDecoderHeap1_Impl: Sized + ID3D12VideoDecoderHeap_Impl { impl windows_core::RuntimeName for ID3D12VideoDecoderHeap1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoDecoderHeap1_Vtbl { - pub const fn new() -> ID3D12VideoDecoderHeap1_Vtbl - where - Identity: ID3D12VideoDecoderHeap1_Impl, - { - unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDecoderHeap1_Impl, - { + pub const fn new() -> ID3D12VideoDecoderHeap1_Vtbl { + unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDecoderHeap1_Impl::GetProtectedResourceSession(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppprotectedsession)).into() } @@ -645,7 +471,7 @@ impl ID3D12VideoDecoderHeap1_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait ID3D12VideoDevice_Impl: Sized { +pub trait ID3D12VideoDevice_Impl: Sized + windows_core::IUnknownImpl { fn CheckFeatureSupport(&self, featurevideo: D3D12_FEATURE_VIDEO, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::Result<()>; fn CreateVideoDecoder(&self, pdesc: *const D3D12_VIDEO_DECODER_DESC, riid: *const windows_core::GUID, ppvideodecoder: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateVideoDecoderHeap(&self, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC, riid: *const windows_core::GUID, ppvideodecoderheap: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -655,35 +481,20 @@ pub trait ID3D12VideoDevice_Impl: Sized { impl windows_core::RuntimeName for ID3D12VideoDevice {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D12VideoDevice_Vtbl { - pub const fn new() -> ID3D12VideoDevice_Vtbl - where - Identity: ID3D12VideoDevice_Impl, - { - unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, featurevideo: D3D12_FEATURE_VIDEO, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice_Impl, - { + pub const fn new() -> ID3D12VideoDevice_Vtbl { + unsafe extern "system" fn CheckFeatureSupport(this: *mut core::ffi::c_void, featurevideo: D3D12_FEATURE_VIDEO, pfeaturesupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice_Impl::CheckFeatureSupport(this, core::mem::transmute_copy(&featurevideo), core::mem::transmute_copy(&pfeaturesupportdata), core::mem::transmute_copy(&featuresupportdatasize)).into() } - unsafe extern "system" fn CreateVideoDecoder(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_DECODER_DESC, riid: *const windows_core::GUID, ppvideodecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice_Impl, - { + unsafe extern "system" fn CreateVideoDecoder(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_DECODER_DESC, riid: *const windows_core::GUID, ppvideodecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice_Impl::CreateVideoDecoder(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideodecoder)).into() } - unsafe extern "system" fn CreateVideoDecoderHeap(this: *mut core::ffi::c_void, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC, riid: *const windows_core::GUID, ppvideodecoderheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice_Impl, - { + unsafe extern "system" fn CreateVideoDecoderHeap(this: *mut core::ffi::c_void, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC, riid: *const windows_core::GUID, ppvideodecoderheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice_Impl::CreateVideoDecoderHeap(this, core::mem::transmute_copy(&pvideodecoderheapdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideodecoderheap)).into() } - unsafe extern "system" fn CreateVideoProcessor(this: *mut core::ffi::c_void, nodemask: u32, poutputstreamdesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, numinputstreamdescs: u32, pinputstreamdescs: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC, riid: *const windows_core::GUID, ppvideoprocessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice_Impl, - { + unsafe extern "system" fn CreateVideoProcessor(this: *mut core::ffi::c_void, nodemask: u32, poutputstreamdesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, numinputstreamdescs: u32, pinputstreamdescs: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC, riid: *const windows_core::GUID, ppvideoprocessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice_Impl::CreateVideoProcessor(this, core::mem::transmute_copy(&nodemask), core::mem::transmute_copy(&poutputstreamdesc), core::mem::transmute_copy(&numinputstreamdescs), core::mem::transmute_copy(&pinputstreamdescs), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideoprocessor)).into() } @@ -708,21 +519,12 @@ pub trait ID3D12VideoDevice1_Impl: Sized + ID3D12VideoDevice_Impl { impl windows_core::RuntimeName for ID3D12VideoDevice1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoDevice1_Vtbl { - pub const fn new() -> ID3D12VideoDevice1_Vtbl - where - Identity: ID3D12VideoDevice1_Impl, - { - unsafe extern "system" fn CreateVideoMotionEstimator(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_MOTION_ESTIMATOR_DESC, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideomotionestimator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice1_Impl, - { + pub const fn new() -> ID3D12VideoDevice1_Vtbl { + unsafe extern "system" fn CreateVideoMotionEstimator(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_MOTION_ESTIMATOR_DESC, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideomotionestimator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice1_Impl::CreateVideoMotionEstimator(this, core::mem::transmute_copy(&pdesc), windows_core::from_raw_borrowed(&pprotectedresourcesession), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideomotionestimator)).into() } - unsafe extern "system" fn CreateVideoMotionVectorHeap(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideomotionvectorheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice1_Impl, - { + unsafe extern "system" fn CreateVideoMotionVectorHeap(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideomotionvectorheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice1_Impl::CreateVideoMotionVectorHeap(this, core::mem::transmute_copy(&pdesc), windows_core::from_raw_borrowed(&pprotectedresourcesession), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideomotionvectorheap)).into() } @@ -748,42 +550,24 @@ pub trait ID3D12VideoDevice2_Impl: Sized + ID3D12VideoDevice1_Impl { impl windows_core::RuntimeName for ID3D12VideoDevice2 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoDevice2_Vtbl { - pub const fn new() -> ID3D12VideoDevice2_Vtbl - where - Identity: ID3D12VideoDevice2_Impl, - { - unsafe extern "system" fn CreateVideoDecoder1(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_DECODER_DESC, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideodecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice2_Impl, - { + pub const fn new() -> ID3D12VideoDevice2_Vtbl { + unsafe extern "system" fn CreateVideoDecoder1(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_DECODER_DESC, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideodecoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice2_Impl::CreateVideoDecoder1(this, core::mem::transmute_copy(&pdesc), windows_core::from_raw_borrowed(&pprotectedresourcesession), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideodecoder)).into() } - unsafe extern "system" fn CreateVideoDecoderHeap1(this: *mut core::ffi::c_void, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideodecoderheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice2_Impl, - { + unsafe extern "system" fn CreateVideoDecoderHeap1(this: *mut core::ffi::c_void, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideodecoderheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice2_Impl::CreateVideoDecoderHeap1(this, core::mem::transmute_copy(&pvideodecoderheapdesc), windows_core::from_raw_borrowed(&pprotectedresourcesession), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideodecoderheap)).into() } - unsafe extern "system" fn CreateVideoProcessor1(this: *mut core::ffi::c_void, nodemask: u32, poutputstreamdesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, numinputstreamdescs: u32, pinputstreamdescs: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideoprocessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice2_Impl, - { + unsafe extern "system" fn CreateVideoProcessor1(this: *mut core::ffi::c_void, nodemask: u32, poutputstreamdesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, numinputstreamdescs: u32, pinputstreamdescs: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideoprocessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice2_Impl::CreateVideoProcessor1(this, core::mem::transmute_copy(&nodemask), core::mem::transmute_copy(&poutputstreamdesc), core::mem::transmute_copy(&numinputstreamdescs), core::mem::transmute_copy(&pinputstreamdescs), windows_core::from_raw_borrowed(&pprotectedresourcesession), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideoprocessor)).into() } - unsafe extern "system" fn CreateVideoExtensionCommand(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_EXTENSION_COMMAND_DESC, pcreationparameters: *const core::ffi::c_void, creationparametersdatasizeinbytes: usize, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideoextensioncommand: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice2_Impl, - { + unsafe extern "system" fn CreateVideoExtensionCommand(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_EXTENSION_COMMAND_DESC, pcreationparameters: *const core::ffi::c_void, creationparametersdatasizeinbytes: usize, pprotectedresourcesession: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvideoextensioncommand: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice2_Impl::CreateVideoExtensionCommand(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&pcreationparameters), core::mem::transmute_copy(&creationparametersdatasizeinbytes), windows_core::from_raw_borrowed(&pprotectedresourcesession), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideoextensioncommand)).into() } - unsafe extern "system" fn ExecuteExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize, poutputdata: *mut core::ffi::c_void, outputdatasizeinbytes: usize) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice2_Impl, - { + unsafe extern "system" fn ExecuteExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize, poutputdata: *mut core::ffi::c_void, outputdatasizeinbytes: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice2_Impl::ExecuteExtensionCommand(this, windows_core::from_raw_borrowed(&pextensioncommand), core::mem::transmute_copy(&pexecutionparameters), core::mem::transmute_copy(&executionparameterssizeinbytes), core::mem::transmute_copy(&poutputdata), core::mem::transmute_copy(&outputdatasizeinbytes)).into() } @@ -809,21 +593,12 @@ pub trait ID3D12VideoDevice3_Impl: Sized + ID3D12VideoDevice2_Impl { impl windows_core::RuntimeName for ID3D12VideoDevice3 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoDevice3_Vtbl { - pub const fn new() -> ID3D12VideoDevice3_Vtbl - where - Identity: ID3D12VideoDevice3_Impl, - { - unsafe extern "system" fn CreateVideoEncoder(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_ENCODER_DESC, riid: *const windows_core::GUID, ppvideoencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice3_Impl, - { + pub const fn new() -> ID3D12VideoDevice3_Vtbl { + unsafe extern "system" fn CreateVideoEncoder(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_ENCODER_DESC, riid: *const windows_core::GUID, ppvideoencoder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice3_Impl::CreateVideoEncoder(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideoencoder)).into() } - unsafe extern "system" fn CreateVideoEncoderHeap(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_ENCODER_HEAP_DESC, riid: *const windows_core::GUID, ppvideoencoderheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoDevice3_Impl, - { + unsafe extern "system" fn CreateVideoEncoderHeap(this: *mut core::ffi::c_void, pdesc: *const D3D12_VIDEO_ENCODER_HEAP_DESC, riid: *const windows_core::GUID, ppvideoencoderheap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoDevice3_Impl::CreateVideoEncoderHeap(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvideoencoderheap)).into() } @@ -860,119 +635,68 @@ pub trait ID3D12VideoEncodeCommandList_Impl: Sized + super::super::Graphics::Dir impl windows_core::RuntimeName for ID3D12VideoEncodeCommandList {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoEncodeCommandList_Vtbl { - pub const fn new() -> ID3D12VideoEncodeCommandList_Vtbl - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + pub const fn new() -> ID3D12VideoEncodeCommandList_Vtbl { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::Close(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::Reset(this, windows_core::from_raw_borrowed(&pallocator)).into() } - unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::ClearState(this) } - unsafe extern "system" fn ResourceBarrier(this: *mut core::ffi::c_void, numbarriers: u32, pbarriers: *const super::super::Graphics::Direct3D12::D3D12_RESOURCE_BARRIER) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn ResourceBarrier(this: *mut core::ffi::c_void, numbarriers: u32, pbarriers: *const super::super::Graphics::Direct3D12::D3D12_RESOURCE_BARRIER) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::ResourceBarrier(this, core::mem::transmute_copy(&numbarriers), core::mem::transmute_copy(&pbarriers)) } - unsafe extern "system" fn DiscardResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pregion: *const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn DiscardResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pregion: *const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::DiscardResource(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pregion)) } - unsafe extern "system" fn BeginQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn BeginQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::BeginQuery(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&index)) } - unsafe extern "system" fn EndQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn EndQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::EndQuery(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&index)) } - unsafe extern "system" fn ResolveQueryData(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: *mut core::ffi::c_void, aligneddestinationbufferoffset: u64) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn ResolveQueryData(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: *mut core::ffi::c_void, aligneddestinationbufferoffset: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::ResolveQueryData(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&numqueries), windows_core::from_raw_borrowed(&pdestinationbuffer), core::mem::transmute_copy(&aligneddestinationbufferoffset)) } - unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void, alignedbufferoffset: u64, operation: super::super::Graphics::Direct3D12::D3D12_PREDICATION_OP) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void, alignedbufferoffset: u64, operation: super::super::Graphics::Direct3D12::D3D12_PREDICATION_OP) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::SetPredication(this, windows_core::from_raw_borrowed(&pbuffer), core::mem::transmute_copy(&alignedbufferoffset), core::mem::transmute_copy(&operation)) } - unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::SetMarker(this, core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::BeginEvent(this, core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::EndEvent(this) } - unsafe extern "system" fn EstimateMotion(this: *mut core::ffi::c_void, pmotionestimator: *mut core::ffi::c_void, poutputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT, pinputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn EstimateMotion(this: *mut core::ffi::c_void, pmotionestimator: *mut core::ffi::c_void, poutputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT, pinputarguments: *const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::EstimateMotion(this, windows_core::from_raw_borrowed(&pmotionestimator), core::mem::transmute_copy(&poutputarguments), core::mem::transmute_copy(&pinputarguments)) } - unsafe extern "system" fn ResolveMotionVectorHeap(this: *mut core::ffi::c_void, poutputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT, pinputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn ResolveMotionVectorHeap(this: *mut core::ffi::c_void, poutputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT, pinputarguments: *const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::ResolveMotionVectorHeap(this, core::mem::transmute_copy(&poutputarguments), core::mem::transmute_copy(&pinputarguments)) } - unsafe extern "system" fn WriteBufferImmediate(this: *mut core::ffi::c_void, count: u32, pparams: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_MODE) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn WriteBufferImmediate(this: *mut core::ffi::c_void, count: u32, pparams: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::WriteBufferImmediate(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&pparams), core::mem::transmute_copy(&pmodes)) } - unsafe extern "system" fn SetProtectedResourceSession(this: *mut core::ffi::c_void, pprotectedresourcesession: *mut core::ffi::c_void) - where - Identity: ID3D12VideoEncodeCommandList_Impl, - { + unsafe extern "system" fn SetProtectedResourceSession(this: *mut core::ffi::c_void, pprotectedresourcesession: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList_Impl::SetProtectedResourceSession(this, windows_core::from_raw_borrowed(&pprotectedresourcesession)) } @@ -1009,21 +733,12 @@ pub trait ID3D12VideoEncodeCommandList1_Impl: Sized + ID3D12VideoEncodeCommandLi impl windows_core::RuntimeName for ID3D12VideoEncodeCommandList1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoEncodeCommandList1_Vtbl { - pub const fn new() -> ID3D12VideoEncodeCommandList1_Vtbl - where - Identity: ID3D12VideoEncodeCommandList1_Impl, - { - unsafe extern "system" fn InitializeExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) - where - Identity: ID3D12VideoEncodeCommandList1_Impl, - { + pub const fn new() -> ID3D12VideoEncodeCommandList1_Vtbl { + unsafe extern "system" fn InitializeExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList1_Impl::InitializeExtensionCommand(this, windows_core::from_raw_borrowed(&pextensioncommand), core::mem::transmute_copy(&pinitializationparameters), core::mem::transmute_copy(&initializationparameterssizeinbytes)) } - unsafe extern "system" fn ExecuteExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize) - where - Identity: ID3D12VideoEncodeCommandList1_Impl, - { + unsafe extern "system" fn ExecuteExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList1_Impl::ExecuteExtensionCommand(this, windows_core::from_raw_borrowed(&pextensioncommand), core::mem::transmute_copy(&pexecutionparameters), core::mem::transmute_copy(&executionparameterssizeinbytes)) } @@ -1046,21 +761,12 @@ pub trait ID3D12VideoEncodeCommandList2_Impl: Sized + ID3D12VideoEncodeCommandLi impl windows_core::RuntimeName for ID3D12VideoEncodeCommandList2 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoEncodeCommandList2_Vtbl { - pub const fn new() -> ID3D12VideoEncodeCommandList2_Vtbl - where - Identity: ID3D12VideoEncodeCommandList2_Impl, - { - unsafe extern "system" fn EncodeFrame(this: *mut core::ffi::c_void, pencoder: *mut core::ffi::c_void, pheap: *mut core::ffi::c_void, pinputarguments: *const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS, poutputarguments: *const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS) - where - Identity: ID3D12VideoEncodeCommandList2_Impl, - { + pub const fn new() -> ID3D12VideoEncodeCommandList2_Vtbl { + unsafe extern "system" fn EncodeFrame(this: *mut core::ffi::c_void, pencoder: *mut core::ffi::c_void, pheap: *mut core::ffi::c_void, pinputarguments: *const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS, poutputarguments: *const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList2_Impl::EncodeFrame(this, windows_core::from_raw_borrowed(&pencoder), windows_core::from_raw_borrowed(&pheap), core::mem::transmute_copy(&pinputarguments), core::mem::transmute_copy(&poutputarguments)) } - unsafe extern "system" fn ResolveEncoderOutputMetadata(this: *mut core::ffi::c_void, pinputarguments: *const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS, poutputarguments: *const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS) - where - Identity: ID3D12VideoEncodeCommandList2_Impl, - { + unsafe extern "system" fn ResolveEncoderOutputMetadata(this: *mut core::ffi::c_void, pinputarguments: *const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS, poutputarguments: *const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList2_Impl::ResolveEncoderOutputMetadata(this, core::mem::transmute_copy(&pinputarguments), core::mem::transmute_copy(&poutputarguments)) } @@ -1082,14 +788,8 @@ pub trait ID3D12VideoEncodeCommandList3_Impl: Sized + ID3D12VideoEncodeCommandLi impl windows_core::RuntimeName for ID3D12VideoEncodeCommandList3 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoEncodeCommandList3_Vtbl { - pub const fn new() -> ID3D12VideoEncodeCommandList3_Vtbl - where - Identity: ID3D12VideoEncodeCommandList3_Impl, - { - unsafe extern "system" fn Barrier(this: *mut core::ffi::c_void, numbarriergroups: u32, pbarriergroups: *const super::super::Graphics::Direct3D12::D3D12_BARRIER_GROUP) - where - Identity: ID3D12VideoEncodeCommandList3_Impl, - { + pub const fn new() -> ID3D12VideoEncodeCommandList3_Vtbl { + unsafe extern "system" fn Barrier(this: *mut core::ffi::c_void, numbarriergroups: u32, pbarriergroups: *const super::super::Graphics::Direct3D12::D3D12_BARRIER_GROUP) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncodeCommandList3_Impl::Barrier(this, core::mem::transmute_copy(&numbarriergroups), core::mem::transmute_copy(&pbarriergroups)) } @@ -1113,56 +813,32 @@ pub trait ID3D12VideoEncoder_Impl: Sized + super::super::Graphics::Direct3D12::I impl windows_core::RuntimeName for ID3D12VideoEncoder {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoEncoder_Vtbl { - pub const fn new() -> ID3D12VideoEncoder_Vtbl - where - Identity: ID3D12VideoEncoder_Impl, - { - unsafe extern "system" fn GetNodeMask(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12VideoEncoder_Impl, - { + pub const fn new() -> ID3D12VideoEncoder_Vtbl { + unsafe extern "system" fn GetNodeMask(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoder_Impl::GetNodeMask(this) } - unsafe extern "system" fn GetEncoderFlags(this: *mut core::ffi::c_void) -> D3D12_VIDEO_ENCODER_FLAGS - where - Identity: ID3D12VideoEncoder_Impl, - { + unsafe extern "system" fn GetEncoderFlags(this: *mut core::ffi::c_void) -> D3D12_VIDEO_ENCODER_FLAGS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoder_Impl::GetEncoderFlags(this) } - unsafe extern "system" fn GetCodec(this: *mut core::ffi::c_void) -> D3D12_VIDEO_ENCODER_CODEC - where - Identity: ID3D12VideoEncoder_Impl, - { + unsafe extern "system" fn GetCodec(this: *mut core::ffi::c_void) -> D3D12_VIDEO_ENCODER_CODEC { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoder_Impl::GetCodec(this) } - unsafe extern "system" fn GetCodecProfile(this: *mut core::ffi::c_void, dstprofile: D3D12_VIDEO_ENCODER_PROFILE_DESC) -> windows_core::HRESULT - where - Identity: ID3D12VideoEncoder_Impl, - { + unsafe extern "system" fn GetCodecProfile(this: *mut core::ffi::c_void, dstprofile: D3D12_VIDEO_ENCODER_PROFILE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoder_Impl::GetCodecProfile(this, core::mem::transmute(&dstprofile)).into() } - unsafe extern "system" fn GetCodecConfiguration(this: *mut core::ffi::c_void, dstcodecconfig: D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION) -> windows_core::HRESULT - where - Identity: ID3D12VideoEncoder_Impl, - { + unsafe extern "system" fn GetCodecConfiguration(this: *mut core::ffi::c_void, dstcodecconfig: D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoder_Impl::GetCodecConfiguration(this, core::mem::transmute(&dstcodecconfig)).into() } - unsafe extern "system" fn GetInputFormat(this: *mut core::ffi::c_void) -> super::super::Graphics::Dxgi::Common::DXGI_FORMAT - where - Identity: ID3D12VideoEncoder_Impl, - { + unsafe extern "system" fn GetInputFormat(this: *mut core::ffi::c_void) -> super::super::Graphics::Dxgi::Common::DXGI_FORMAT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoder_Impl::GetInputFormat(this) } - unsafe extern "system" fn GetMaxMotionEstimationPrecision(this: *mut core::ffi::c_void) -> D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE - where - Identity: ID3D12VideoEncoder_Impl, - { + unsafe extern "system" fn GetMaxMotionEstimationPrecision(this: *mut core::ffi::c_void) -> D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoder_Impl::GetMaxMotionEstimationPrecision(this) } @@ -1195,56 +871,32 @@ pub trait ID3D12VideoEncoderHeap_Impl: Sized + super::super::Graphics::Direct3D1 impl windows_core::RuntimeName for ID3D12VideoEncoderHeap {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoEncoderHeap_Vtbl { - pub const fn new() -> ID3D12VideoEncoderHeap_Vtbl - where - Identity: ID3D12VideoEncoderHeap_Impl, - { - unsafe extern "system" fn GetNodeMask(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12VideoEncoderHeap_Impl, - { + pub const fn new() -> ID3D12VideoEncoderHeap_Vtbl { + unsafe extern "system" fn GetNodeMask(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoderHeap_Impl::GetNodeMask(this) } - unsafe extern "system" fn GetEncoderHeapFlags(this: *mut core::ffi::c_void) -> D3D12_VIDEO_ENCODER_HEAP_FLAGS - where - Identity: ID3D12VideoEncoderHeap_Impl, - { + unsafe extern "system" fn GetEncoderHeapFlags(this: *mut core::ffi::c_void) -> D3D12_VIDEO_ENCODER_HEAP_FLAGS { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoderHeap_Impl::GetEncoderHeapFlags(this) } - unsafe extern "system" fn GetCodec(this: *mut core::ffi::c_void) -> D3D12_VIDEO_ENCODER_CODEC - where - Identity: ID3D12VideoEncoderHeap_Impl, - { + unsafe extern "system" fn GetCodec(this: *mut core::ffi::c_void) -> D3D12_VIDEO_ENCODER_CODEC { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoderHeap_Impl::GetCodec(this) } - unsafe extern "system" fn GetCodecProfile(this: *mut core::ffi::c_void, dstprofile: D3D12_VIDEO_ENCODER_PROFILE_DESC) -> windows_core::HRESULT - where - Identity: ID3D12VideoEncoderHeap_Impl, - { + unsafe extern "system" fn GetCodecProfile(this: *mut core::ffi::c_void, dstprofile: D3D12_VIDEO_ENCODER_PROFILE_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoderHeap_Impl::GetCodecProfile(this, core::mem::transmute(&dstprofile)).into() } - unsafe extern "system" fn GetCodecLevel(this: *mut core::ffi::c_void, dstlevel: D3D12_VIDEO_ENCODER_LEVEL_SETTING) -> windows_core::HRESULT - where - Identity: ID3D12VideoEncoderHeap_Impl, - { + unsafe extern "system" fn GetCodecLevel(this: *mut core::ffi::c_void, dstlevel: D3D12_VIDEO_ENCODER_LEVEL_SETTING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoderHeap_Impl::GetCodecLevel(this, core::mem::transmute(&dstlevel)).into() } - unsafe extern "system" fn GetResolutionListCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12VideoEncoderHeap_Impl, - { + unsafe extern "system" fn GetResolutionListCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoderHeap_Impl::GetResolutionListCount(this) } - unsafe extern "system" fn GetResolutionList(this: *mut core::ffi::c_void, resolutionslistcount: u32, presolutionlist: *mut D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC) -> windows_core::HRESULT - where - Identity: ID3D12VideoEncoderHeap_Impl, - { + unsafe extern "system" fn GetResolutionList(this: *mut core::ffi::c_void, resolutionslistcount: u32, presolutionlist: *mut D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoEncoderHeap_Impl::GetResolutionList(this, core::mem::transmute_copy(&resolutionslistcount), core::mem::transmute_copy(&presolutionlist)).into() } @@ -1272,21 +924,12 @@ pub trait ID3D12VideoExtensionCommand_Impl: Sized + super::super::Graphics::Dire impl windows_core::RuntimeName for ID3D12VideoExtensionCommand {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoExtensionCommand_Vtbl { - pub const fn new() -> ID3D12VideoExtensionCommand_Vtbl - where - Identity: ID3D12VideoExtensionCommand_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_EXTENSION_COMMAND_DESC) - where - Identity: ID3D12VideoExtensionCommand_Impl, - { + pub const fn new() -> ID3D12VideoExtensionCommand_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_EXTENSION_COMMAND_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12VideoExtensionCommand_Impl::GetDesc(this) } - unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoExtensionCommand_Impl, - { + unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoExtensionCommand_Impl::GetProtectedResourceSession(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppprotectedsession)).into() } @@ -1309,21 +952,12 @@ pub trait ID3D12VideoMotionEstimator_Impl: Sized + super::super::Graphics::Direc impl windows_core::RuntimeName for ID3D12VideoMotionEstimator {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoMotionEstimator_Vtbl { - pub const fn new() -> ID3D12VideoMotionEstimator_Vtbl - where - Identity: ID3D12VideoMotionEstimator_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_MOTION_ESTIMATOR_DESC) - where - Identity: ID3D12VideoMotionEstimator_Impl, - { + pub const fn new() -> ID3D12VideoMotionEstimator_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_MOTION_ESTIMATOR_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12VideoMotionEstimator_Impl::GetDesc(this) } - unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoMotionEstimator_Impl, - { + unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoMotionEstimator_Impl::GetProtectedResourceSession(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppprotectedsession)).into() } @@ -1346,21 +980,12 @@ pub trait ID3D12VideoMotionVectorHeap_Impl: Sized + super::super::Graphics::Dire impl windows_core::RuntimeName for ID3D12VideoMotionVectorHeap {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoMotionVectorHeap_Vtbl { - pub const fn new() -> ID3D12VideoMotionVectorHeap_Vtbl - where - Identity: ID3D12VideoMotionVectorHeap_Impl, - { - unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC) - where - Identity: ID3D12VideoMotionVectorHeap_Impl, - { + pub const fn new() -> ID3D12VideoMotionVectorHeap_Vtbl { + unsafe extern "system" fn GetDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12VideoMotionVectorHeap_Impl::GetDesc(this) } - unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoMotionVectorHeap_Impl, - { + unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoMotionVectorHeap_Impl::GetProtectedResourceSession(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppprotectedsession)).into() } @@ -1395,105 +1020,60 @@ pub trait ID3D12VideoProcessCommandList_Impl: Sized + super::super::Graphics::Di impl windows_core::RuntimeName for ID3D12VideoProcessCommandList {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoProcessCommandList_Vtbl { - pub const fn new() -> ID3D12VideoProcessCommandList_Vtbl - where - Identity: ID3D12VideoProcessCommandList_Impl, - { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + pub const fn new() -> ID3D12VideoProcessCommandList_Vtbl { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::Close(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::Reset(this, windows_core::from_raw_borrowed(&pallocator)).into() } - unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn ClearState(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::ClearState(this) } - unsafe extern "system" fn ResourceBarrier(this: *mut core::ffi::c_void, numbarriers: u32, pbarriers: *const super::super::Graphics::Direct3D12::D3D12_RESOURCE_BARRIER) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn ResourceBarrier(this: *mut core::ffi::c_void, numbarriers: u32, pbarriers: *const super::super::Graphics::Direct3D12::D3D12_RESOURCE_BARRIER) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::ResourceBarrier(this, core::mem::transmute_copy(&numbarriers), core::mem::transmute_copy(&pbarriers)) } - unsafe extern "system" fn DiscardResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pregion: *const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn DiscardResource(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pregion: *const super::super::Graphics::Direct3D12::D3D12_DISCARD_REGION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::DiscardResource(this, windows_core::from_raw_borrowed(&presource), core::mem::transmute_copy(&pregion)) } - unsafe extern "system" fn BeginQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn BeginQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::BeginQuery(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&index)) } - unsafe extern "system" fn EndQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn EndQuery(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, index: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::EndQuery(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&index)) } - unsafe extern "system" fn ResolveQueryData(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: *mut core::ffi::c_void, aligneddestinationbufferoffset: u64) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn ResolveQueryData(this: *mut core::ffi::c_void, pqueryheap: *mut core::ffi::c_void, r#type: super::super::Graphics::Direct3D12::D3D12_QUERY_TYPE, startindex: u32, numqueries: u32, pdestinationbuffer: *mut core::ffi::c_void, aligneddestinationbufferoffset: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::ResolveQueryData(this, windows_core::from_raw_borrowed(&pqueryheap), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&numqueries), windows_core::from_raw_borrowed(&pdestinationbuffer), core::mem::transmute_copy(&aligneddestinationbufferoffset)) } - unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void, alignedbufferoffset: u64, operation: super::super::Graphics::Direct3D12::D3D12_PREDICATION_OP) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void, alignedbufferoffset: u64, operation: super::super::Graphics::Direct3D12::D3D12_PREDICATION_OP) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::SetPredication(this, windows_core::from_raw_borrowed(&pbuffer), core::mem::transmute_copy(&alignedbufferoffset), core::mem::transmute_copy(&operation)) } - unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn SetMarker(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::SetMarker(this, core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn BeginEvent(this: *mut core::ffi::c_void, metadata: u32, pdata: *const core::ffi::c_void, size: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::BeginEvent(this, core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn EndEvent(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::EndEvent(this) } - unsafe extern "system" fn ProcessFrames(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, numinputstreams: u32, pinputarguments: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn ProcessFrames(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, numinputstreams: u32, pinputarguments: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::ProcessFrames(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&poutputarguments), core::mem::transmute_copy(&numinputstreams), core::mem::transmute_copy(&pinputarguments)) } - unsafe extern "system" fn WriteBufferImmediate(this: *mut core::ffi::c_void, count: u32, pparams: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_MODE) - where - Identity: ID3D12VideoProcessCommandList_Impl, - { + unsafe extern "system" fn WriteBufferImmediate(this: *mut core::ffi::c_void, count: u32, pparams: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: *const super::super::Graphics::Direct3D12::D3D12_WRITEBUFFERIMMEDIATE_MODE) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList_Impl::WriteBufferImmediate(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&pparams), core::mem::transmute_copy(&pmodes)) } @@ -1527,14 +1107,8 @@ pub trait ID3D12VideoProcessCommandList1_Impl: Sized + ID3D12VideoProcessCommand impl windows_core::RuntimeName for ID3D12VideoProcessCommandList1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoProcessCommandList1_Vtbl { - pub const fn new() -> ID3D12VideoProcessCommandList1_Vtbl - where - Identity: ID3D12VideoProcessCommandList1_Impl, - { - unsafe extern "system" fn ProcessFrames1(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, numinputstreams: u32, pinputarguments: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1) - where - Identity: ID3D12VideoProcessCommandList1_Impl, - { + pub const fn new() -> ID3D12VideoProcessCommandList1_Vtbl { + unsafe extern "system" fn ProcessFrames1(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, poutputarguments: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS, numinputstreams: u32, pinputarguments: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList1_Impl::ProcessFrames1(this, windows_core::from_raw_borrowed(&pvideoprocessor), core::mem::transmute_copy(&poutputarguments), core::mem::transmute_copy(&numinputstreams), core::mem::transmute_copy(&pinputarguments)) } @@ -1554,28 +1128,16 @@ pub trait ID3D12VideoProcessCommandList2_Impl: Sized + ID3D12VideoProcessCommand impl windows_core::RuntimeName for ID3D12VideoProcessCommandList2 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoProcessCommandList2_Vtbl { - pub const fn new() -> ID3D12VideoProcessCommandList2_Vtbl - where - Identity: ID3D12VideoProcessCommandList2_Impl, - { - unsafe extern "system" fn SetProtectedResourceSession(this: *mut core::ffi::c_void, pprotectedresourcesession: *mut core::ffi::c_void) - where - Identity: ID3D12VideoProcessCommandList2_Impl, - { + pub const fn new() -> ID3D12VideoProcessCommandList2_Vtbl { + unsafe extern "system" fn SetProtectedResourceSession(this: *mut core::ffi::c_void, pprotectedresourcesession: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList2_Impl::SetProtectedResourceSession(this, windows_core::from_raw_borrowed(&pprotectedresourcesession)) } - unsafe extern "system" fn InitializeExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) - where - Identity: ID3D12VideoProcessCommandList2_Impl, - { + unsafe extern "system" fn InitializeExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pinitializationparameters: *const core::ffi::c_void, initializationparameterssizeinbytes: usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList2_Impl::InitializeExtensionCommand(this, windows_core::from_raw_borrowed(&pextensioncommand), core::mem::transmute_copy(&pinitializationparameters), core::mem::transmute_copy(&initializationparameterssizeinbytes)) } - unsafe extern "system" fn ExecuteExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize) - where - Identity: ID3D12VideoProcessCommandList2_Impl, - { + unsafe extern "system" fn ExecuteExtensionCommand(this: *mut core::ffi::c_void, pextensioncommand: *mut core::ffi::c_void, pexecutionparameters: *const core::ffi::c_void, executionparameterssizeinbytes: usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList2_Impl::ExecuteExtensionCommand(this, windows_core::from_raw_borrowed(&pextensioncommand), core::mem::transmute_copy(&pexecutionparameters), core::mem::transmute_copy(&executionparameterssizeinbytes)) } @@ -1598,14 +1160,8 @@ pub trait ID3D12VideoProcessCommandList3_Impl: Sized + ID3D12VideoProcessCommand impl windows_core::RuntimeName for ID3D12VideoProcessCommandList3 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoProcessCommandList3_Vtbl { - pub const fn new() -> ID3D12VideoProcessCommandList3_Vtbl - where - Identity: ID3D12VideoProcessCommandList3_Impl, - { - unsafe extern "system" fn Barrier(this: *mut core::ffi::c_void, numbarriergroups: u32, pbarriergroups: *const super::super::Graphics::Direct3D12::D3D12_BARRIER_GROUP) - where - Identity: ID3D12VideoProcessCommandList3_Impl, - { + pub const fn new() -> ID3D12VideoProcessCommandList3_Vtbl { + unsafe extern "system" fn Barrier(this: *mut core::ffi::c_void, numbarriergroups: u32, pbarriergroups: *const super::super::Graphics::Direct3D12::D3D12_BARRIER_GROUP) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessCommandList3_Impl::Barrier(this, core::mem::transmute_copy(&numbarriergroups), core::mem::transmute_copy(&pbarriergroups)) } @@ -1626,35 +1182,20 @@ pub trait ID3D12VideoProcessor_Impl: Sized + super::super::Graphics::Direct3D12: impl windows_core::RuntimeName for ID3D12VideoProcessor {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoProcessor_Vtbl { - pub const fn new() -> ID3D12VideoProcessor_Vtbl - where - Identity: ID3D12VideoProcessor_Impl, - { - unsafe extern "system" fn GetNodeMask(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12VideoProcessor_Impl, - { + pub const fn new() -> ID3D12VideoProcessor_Vtbl { + unsafe extern "system" fn GetNodeMask(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessor_Impl::GetNodeMask(this) } - unsafe extern "system" fn GetNumInputStreamDescs(this: *mut core::ffi::c_void) -> u32 - where - Identity: ID3D12VideoProcessor_Impl, - { + unsafe extern "system" fn GetNumInputStreamDescs(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessor_Impl::GetNumInputStreamDescs(this) } - unsafe extern "system" fn GetInputStreamDescs(this: *mut core::ffi::c_void, numinputstreamdescs: u32, pinputstreamdescs: *mut D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC) -> windows_core::HRESULT - where - Identity: ID3D12VideoProcessor_Impl, - { + unsafe extern "system" fn GetInputStreamDescs(this: *mut core::ffi::c_void, numinputstreamdescs: u32, pinputstreamdescs: *mut D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessor_Impl::GetInputStreamDescs(this, core::mem::transmute_copy(&numinputstreamdescs), core::mem::transmute_copy(&pinputstreamdescs)).into() } - unsafe extern "system" fn GetOutputStreamDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC) - where - Identity: ID3D12VideoProcessor_Impl, - { + unsafe extern "system" fn GetOutputStreamDesc(this: *mut core::ffi::c_void, result__: *mut D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); *result__ = ID3D12VideoProcessor_Impl::GetOutputStreamDesc(this) } @@ -1678,14 +1219,8 @@ pub trait ID3D12VideoProcessor1_Impl: Sized + ID3D12VideoProcessor_Impl { impl windows_core::RuntimeName for ID3D12VideoProcessor1 {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D12VideoProcessor1_Vtbl { - pub const fn new() -> ID3D12VideoProcessor1_Vtbl - where - Identity: ID3D12VideoProcessor1_Impl, - { - unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ID3D12VideoProcessor1_Impl, - { + pub const fn new() -> ID3D12VideoProcessor1_Vtbl { + unsafe extern "system" fn GetProtectedResourceSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppprotectedsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12VideoProcessor1_Impl::GetProtectedResourceSession(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppprotectedsession)).into() } @@ -1696,7 +1231,7 @@ impl ID3D12VideoProcessor1_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IDXVAHD_Device_Impl: Sized { +pub trait IDXVAHD_Device_Impl: Sized + windows_core::IUnknownImpl { fn CreateVideoSurface(&self, width: u32, height: u32, format: super::super::Graphics::Direct3D9::D3DFORMAT, pool: super::super::Graphics::Direct3D9::D3DPOOL, usage: u32, r#type: DXVAHD_SURFACE_TYPE, numsurfaces: u32, ppsurfaces: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn GetVideoProcessorDeviceCaps(&self, pcaps: *mut DXVAHD_VPDEVCAPS) -> windows_core::Result<()>; fn GetVideoProcessorOutputFormats(&self, count: u32, pformats: *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::Result<()>; @@ -1710,56 +1245,32 @@ pub trait IDXVAHD_Device_Impl: Sized { impl windows_core::RuntimeName for IDXVAHD_Device {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDXVAHD_Device_Vtbl { - pub const fn new() -> IDXVAHD_Device_Vtbl - where - Identity: IDXVAHD_Device_Impl, - { - unsafe extern "system" fn CreateVideoSurface(this: *mut core::ffi::c_void, width: u32, height: u32, format: super::super::Graphics::Direct3D9::D3DFORMAT, pool: super::super::Graphics::Direct3D9::D3DPOOL, usage: u32, r#type: DXVAHD_SURFACE_TYPE, numsurfaces: u32, ppsurfaces: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDXVAHD_Device_Impl, - { + pub const fn new() -> IDXVAHD_Device_Vtbl { + unsafe extern "system" fn CreateVideoSurface(this: *mut core::ffi::c_void, width: u32, height: u32, format: super::super::Graphics::Direct3D9::D3DFORMAT, pool: super::super::Graphics::Direct3D9::D3DPOOL, usage: u32, r#type: DXVAHD_SURFACE_TYPE, numsurfaces: u32, ppsurfaces: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_Device_Impl::CreateVideoSurface(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&usage), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&numsurfaces), core::mem::transmute_copy(&ppsurfaces), core::mem::transmute_copy(&psharedhandle)).into() } - unsafe extern "system" fn GetVideoProcessorDeviceCaps(this: *mut core::ffi::c_void, pcaps: *mut DXVAHD_VPDEVCAPS) -> windows_core::HRESULT - where - Identity: IDXVAHD_Device_Impl, - { + unsafe extern "system" fn GetVideoProcessorDeviceCaps(this: *mut core::ffi::c_void, pcaps: *mut DXVAHD_VPDEVCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_Device_Impl::GetVideoProcessorDeviceCaps(this, core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetVideoProcessorOutputFormats(this: *mut core::ffi::c_void, count: u32, pformats: *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::HRESULT - where - Identity: IDXVAHD_Device_Impl, - { + unsafe extern "system" fn GetVideoProcessorOutputFormats(this: *mut core::ffi::c_void, count: u32, pformats: *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_Device_Impl::GetVideoProcessorOutputFormats(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&pformats)).into() } - unsafe extern "system" fn GetVideoProcessorInputFormats(this: *mut core::ffi::c_void, count: u32, pformats: *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::HRESULT - where - Identity: IDXVAHD_Device_Impl, - { + unsafe extern "system" fn GetVideoProcessorInputFormats(this: *mut core::ffi::c_void, count: u32, pformats: *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_Device_Impl::GetVideoProcessorInputFormats(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&pformats)).into() } - unsafe extern "system" fn GetVideoProcessorCaps(this: *mut core::ffi::c_void, count: u32, pcaps: *mut DXVAHD_VPCAPS) -> windows_core::HRESULT - where - Identity: IDXVAHD_Device_Impl, - { + unsafe extern "system" fn GetVideoProcessorCaps(this: *mut core::ffi::c_void, count: u32, pcaps: *mut DXVAHD_VPCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_Device_Impl::GetVideoProcessorCaps(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetVideoProcessorCustomRates(this: *mut core::ffi::c_void, pvpguid: *const windows_core::GUID, count: u32, prates: *mut DXVAHD_CUSTOM_RATE_DATA) -> windows_core::HRESULT - where - Identity: IDXVAHD_Device_Impl, - { + unsafe extern "system" fn GetVideoProcessorCustomRates(this: *mut core::ffi::c_void, pvpguid: *const windows_core::GUID, count: u32, prates: *mut DXVAHD_CUSTOM_RATE_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_Device_Impl::GetVideoProcessorCustomRates(this, core::mem::transmute_copy(&pvpguid), core::mem::transmute_copy(&count), core::mem::transmute_copy(&prates)).into() } - unsafe extern "system" fn GetVideoProcessorFilterRange(this: *mut core::ffi::c_void, filter: DXVAHD_FILTER, prange: *mut DXVAHD_FILTER_RANGE_DATA) -> windows_core::HRESULT - where - Identity: IDXVAHD_Device_Impl, - { + unsafe extern "system" fn GetVideoProcessorFilterRange(this: *mut core::ffi::c_void, filter: DXVAHD_FILTER, prange: *mut DXVAHD_FILTER_RANGE_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXVAHD_Device_Impl::GetVideoProcessorFilterRange(this, core::mem::transmute_copy(&filter)) { Ok(ok__) => { @@ -1769,10 +1280,7 @@ impl IDXVAHD_Device_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVideoProcessor(this: *mut core::ffi::c_void, pvpguid: *const windows_core::GUID, ppvideoprocessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXVAHD_Device_Impl, - { + unsafe extern "system" fn CreateVideoProcessor(this: *mut core::ffi::c_void, pvpguid: *const windows_core::GUID, ppvideoprocessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXVAHD_Device_Impl::CreateVideoProcessor(this, core::mem::transmute_copy(&pvpguid)) { Ok(ok__) => { @@ -1799,7 +1307,7 @@ impl IDXVAHD_Device_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IDXVAHD_VideoProcessor_Impl: Sized { +pub trait IDXVAHD_VideoProcessor_Impl: Sized + windows_core::IUnknownImpl { fn SetVideoProcessBltState(&self, state: DXVAHD_BLT_STATE, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::Result<()>; fn GetVideoProcessBltState(&self, state: DXVAHD_BLT_STATE, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetVideoProcessStreamState(&self, streamnumber: u32, state: DXVAHD_STREAM_STATE, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::Result<()>; @@ -1810,42 +1318,24 @@ pub trait IDXVAHD_VideoProcessor_Impl: Sized { impl windows_core::RuntimeName for IDXVAHD_VideoProcessor {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDXVAHD_VideoProcessor_Vtbl { - pub const fn new() -> IDXVAHD_VideoProcessor_Vtbl - where - Identity: IDXVAHD_VideoProcessor_Impl, - { - unsafe extern "system" fn SetVideoProcessBltState(this: *mut core::ffi::c_void, state: DXVAHD_BLT_STATE, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXVAHD_VideoProcessor_Impl, - { + pub const fn new() -> IDXVAHD_VideoProcessor_Vtbl { + unsafe extern "system" fn SetVideoProcessBltState(this: *mut core::ffi::c_void, state: DXVAHD_BLT_STATE, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_VideoProcessor_Impl::SetVideoProcessBltState(this, core::mem::transmute_copy(&state), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn GetVideoProcessBltState(this: *mut core::ffi::c_void, state: DXVAHD_BLT_STATE, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXVAHD_VideoProcessor_Impl, - { + unsafe extern "system" fn GetVideoProcessBltState(this: *mut core::ffi::c_void, state: DXVAHD_BLT_STATE, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_VideoProcessor_Impl::GetVideoProcessBltState(this, core::mem::transmute_copy(&state), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetVideoProcessStreamState(this: *mut core::ffi::c_void, streamnumber: u32, state: DXVAHD_STREAM_STATE, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXVAHD_VideoProcessor_Impl, - { + unsafe extern "system" fn SetVideoProcessStreamState(this: *mut core::ffi::c_void, streamnumber: u32, state: DXVAHD_STREAM_STATE, datasize: u32, pdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_VideoProcessor_Impl::SetVideoProcessStreamState(this, core::mem::transmute_copy(&streamnumber), core::mem::transmute_copy(&state), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn GetVideoProcessStreamState(this: *mut core::ffi::c_void, streamnumber: u32, state: DXVAHD_STREAM_STATE, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDXVAHD_VideoProcessor_Impl, - { + unsafe extern "system" fn GetVideoProcessStreamState(this: *mut core::ffi::c_void, streamnumber: u32, state: DXVAHD_STREAM_STATE, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_VideoProcessor_Impl::GetVideoProcessStreamState(this, core::mem::transmute_copy(&streamnumber), core::mem::transmute_copy(&state), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn VideoProcessBltHD(this: *mut core::ffi::c_void, poutputsurface: *mut core::ffi::c_void, outputframe: u32, streamcount: u32, pstreams: *const DXVAHD_STREAM_DATA) -> windows_core::HRESULT - where - Identity: IDXVAHD_VideoProcessor_Impl, - { + unsafe extern "system" fn VideoProcessBltHD(this: *mut core::ffi::c_void, poutputsurface: *mut core::ffi::c_void, outputframe: u32, streamcount: u32, pstreams: *const DXVAHD_STREAM_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXVAHD_VideoProcessor_Impl::VideoProcessBltHD(this, windows_core::from_raw_borrowed(&poutputsurface), core::mem::transmute_copy(&outputframe), core::mem::transmute_copy(&streamcount), core::mem::transmute_copy(&pstreams)).into() } @@ -1863,21 +1353,15 @@ impl IDXVAHD_VideoProcessor_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IDirect3D9ExOverlayExtension_Impl: Sized { +pub trait IDirect3D9ExOverlayExtension_Impl: Sized + windows_core::IUnknownImpl { fn CheckDeviceOverlayType(&self, adapter: u32, devtype: super::super::Graphics::Direct3D9::D3DDEVTYPE, overlaywidth: u32, overlayheight: u32, overlayformat: super::super::Graphics::Direct3D9::D3DFORMAT, pdisplaymode: *mut super::super::Graphics::Direct3D9::D3DDISPLAYMODEEX, displayrotation: super::super::Graphics::Direct3D9::D3DDISPLAYROTATION, poverlaycaps: *mut D3DOVERLAYCAPS) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Direct3D9")] impl windows_core::RuntimeName for IDirect3D9ExOverlayExtension {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDirect3D9ExOverlayExtension_Vtbl { - pub const fn new() -> IDirect3D9ExOverlayExtension_Vtbl - where - Identity: IDirect3D9ExOverlayExtension_Impl, - { - unsafe extern "system" fn CheckDeviceOverlayType(this: *mut core::ffi::c_void, adapter: u32, devtype: super::super::Graphics::Direct3D9::D3DDEVTYPE, overlaywidth: u32, overlayheight: u32, overlayformat: super::super::Graphics::Direct3D9::D3DFORMAT, pdisplaymode: *mut super::super::Graphics::Direct3D9::D3DDISPLAYMODEEX, displayrotation: super::super::Graphics::Direct3D9::D3DDISPLAYROTATION, poverlaycaps: *mut D3DOVERLAYCAPS) -> windows_core::HRESULT - where - Identity: IDirect3D9ExOverlayExtension_Impl, - { + pub const fn new() -> IDirect3D9ExOverlayExtension_Vtbl { + unsafe extern "system" fn CheckDeviceOverlayType(this: *mut core::ffi::c_void, adapter: u32, devtype: super::super::Graphics::Direct3D9::D3DDEVTYPE, overlaywidth: u32, overlayheight: u32, overlayformat: super::super::Graphics::Direct3D9::D3DFORMAT, pdisplaymode: *mut super::super::Graphics::Direct3D9::D3DDISPLAYMODEEX, displayrotation: super::super::Graphics::Direct3D9::D3DDISPLAYROTATION, poverlaycaps: *mut D3DOVERLAYCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9ExOverlayExtension_Impl::CheckDeviceOverlayType(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devtype), core::mem::transmute_copy(&overlaywidth), core::mem::transmute_copy(&overlayheight), core::mem::transmute_copy(&overlayformat), core::mem::transmute_copy(&pdisplaymode), core::mem::transmute_copy(&displayrotation), core::mem::transmute_copy(&poverlaycaps)).into() } @@ -1888,7 +1372,7 @@ impl IDirect3D9ExOverlayExtension_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IDirect3DAuthenticatedChannel9_Impl: Sized { +pub trait IDirect3DAuthenticatedChannel9_Impl: Sized + windows_core::IUnknownImpl { fn GetCertificateSize(&self, pcertificatesize: *mut u32) -> windows_core::Result<()>; fn GetCertificate(&self, certifactesize: u32, ppcertificate: *mut u8) -> windows_core::Result<()>; fn NegotiateKeyExchange(&self, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -1899,42 +1383,24 @@ pub trait IDirect3DAuthenticatedChannel9_Impl: Sized { impl windows_core::RuntimeName for IDirect3DAuthenticatedChannel9 {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDirect3DAuthenticatedChannel9_Vtbl { - pub const fn new() -> IDirect3DAuthenticatedChannel9_Vtbl - where - Identity: IDirect3DAuthenticatedChannel9_Impl, - { - unsafe extern "system" fn GetCertificateSize(this: *mut core::ffi::c_void, pcertificatesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DAuthenticatedChannel9_Impl, - { + pub const fn new() -> IDirect3DAuthenticatedChannel9_Vtbl { + unsafe extern "system" fn GetCertificateSize(this: *mut core::ffi::c_void, pcertificatesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DAuthenticatedChannel9_Impl::GetCertificateSize(this, core::mem::transmute_copy(&pcertificatesize)).into() } - unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, certifactesize: u32, ppcertificate: *mut u8) -> windows_core::HRESULT - where - Identity: IDirect3DAuthenticatedChannel9_Impl, - { + unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, certifactesize: u32, ppcertificate: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DAuthenticatedChannel9_Impl::GetCertificate(this, core::mem::transmute_copy(&certifactesize), core::mem::transmute_copy(&ppcertificate)).into() } - unsafe extern "system" fn NegotiateKeyExchange(this: *mut core::ffi::c_void, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DAuthenticatedChannel9_Impl, - { + unsafe extern "system" fn NegotiateKeyExchange(this: *mut core::ffi::c_void, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DAuthenticatedChannel9_Impl::NegotiateKeyExchange(this, core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, inputsize: u32, pinput: *const core::ffi::c_void, outputsize: u32, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DAuthenticatedChannel9_Impl, - { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, inputsize: u32, pinput: *const core::ffi::c_void, outputsize: u32, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DAuthenticatedChannel9_Impl::Query(this, core::mem::transmute_copy(&inputsize), core::mem::transmute_copy(&pinput), core::mem::transmute_copy(&outputsize), core::mem::transmute_copy(&poutput)).into() } - unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, inputsize: u32, pinput: *const core::ffi::c_void, poutput: *mut super::super::Graphics::Direct3D9::D3DAUTHENTICATEDCHANNEL_CONFIGURE_OUTPUT) -> windows_core::HRESULT - where - Identity: IDirect3DAuthenticatedChannel9_Impl, - { + unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, inputsize: u32, pinput: *const core::ffi::c_void, poutput: *mut super::super::Graphics::Direct3D9::D3DAUTHENTICATEDCHANNEL_CONFIGURE_OUTPUT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DAuthenticatedChannel9_Impl::Configure(this, core::mem::transmute_copy(&inputsize), core::mem::transmute_copy(&pinput), core::mem::transmute_copy(&poutput)).into() } @@ -1952,7 +1418,7 @@ impl IDirect3DAuthenticatedChannel9_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IDirect3DCryptoSession9_Impl: Sized { +pub trait IDirect3DCryptoSession9_Impl: Sized + windows_core::IUnknownImpl { fn GetCertificateSize(&self, pcertificatesize: *mut u32) -> windows_core::Result<()>; fn GetCertificate(&self, certifactesize: u32, ppcertificate: *mut u8) -> windows_core::Result<()>; fn NegotiateKeyExchange(&self, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -1967,70 +1433,40 @@ pub trait IDirect3DCryptoSession9_Impl: Sized { impl windows_core::RuntimeName for IDirect3DCryptoSession9 {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDirect3DCryptoSession9_Vtbl { - pub const fn new() -> IDirect3DCryptoSession9_Vtbl - where - Identity: IDirect3DCryptoSession9_Impl, - { - unsafe extern "system" fn GetCertificateSize(this: *mut core::ffi::c_void, pcertificatesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DCryptoSession9_Impl, - { + pub const fn new() -> IDirect3DCryptoSession9_Vtbl { + unsafe extern "system" fn GetCertificateSize(this: *mut core::ffi::c_void, pcertificatesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCryptoSession9_Impl::GetCertificateSize(this, core::mem::transmute_copy(&pcertificatesize)).into() } - unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, certifactesize: u32, ppcertificate: *mut u8) -> windows_core::HRESULT - where - Identity: IDirect3DCryptoSession9_Impl, - { + unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, certifactesize: u32, ppcertificate: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCryptoSession9_Impl::GetCertificate(this, core::mem::transmute_copy(&certifactesize), core::mem::transmute_copy(&ppcertificate)).into() } - unsafe extern "system" fn NegotiateKeyExchange(this: *mut core::ffi::c_void, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DCryptoSession9_Impl, - { + unsafe extern "system" fn NegotiateKeyExchange(this: *mut core::ffi::c_void, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCryptoSession9_Impl::NegotiateKeyExchange(this, core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn EncryptionBlt(this: *mut core::ffi::c_void, psrcsurface: *mut core::ffi::c_void, pdstsurface: *mut core::ffi::c_void, dstsurfacesize: u32, piv: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DCryptoSession9_Impl, - { + unsafe extern "system" fn EncryptionBlt(this: *mut core::ffi::c_void, psrcsurface: *mut core::ffi::c_void, pdstsurface: *mut core::ffi::c_void, dstsurfacesize: u32, piv: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCryptoSession9_Impl::EncryptionBlt(this, windows_core::from_raw_borrowed(&psrcsurface), windows_core::from_raw_borrowed(&pdstsurface), core::mem::transmute_copy(&dstsurfacesize), core::mem::transmute_copy(&piv)).into() } - unsafe extern "system" fn DecryptionBlt(this: *mut core::ffi::c_void, psrcsurface: *mut core::ffi::c_void, pdstsurface: *mut core::ffi::c_void, srcsurfacesize: u32, pencryptedblockinfo: *mut super::super::Graphics::Direct3D9::D3DENCRYPTED_BLOCK_INFO, pcontentkey: *mut core::ffi::c_void, piv: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DCryptoSession9_Impl, - { + unsafe extern "system" fn DecryptionBlt(this: *mut core::ffi::c_void, psrcsurface: *mut core::ffi::c_void, pdstsurface: *mut core::ffi::c_void, srcsurfacesize: u32, pencryptedblockinfo: *mut super::super::Graphics::Direct3D9::D3DENCRYPTED_BLOCK_INFO, pcontentkey: *mut core::ffi::c_void, piv: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCryptoSession9_Impl::DecryptionBlt(this, windows_core::from_raw_borrowed(&psrcsurface), windows_core::from_raw_borrowed(&pdstsurface), core::mem::transmute_copy(&srcsurfacesize), core::mem::transmute_copy(&pencryptedblockinfo), core::mem::transmute_copy(&pcontentkey), core::mem::transmute_copy(&piv)).into() } - unsafe extern "system" fn GetSurfacePitch(this: *mut core::ffi::c_void, psrcsurface: *mut core::ffi::c_void, psurfacepitch: *mut u32) -> windows_core::HRESULT - where - Identity: IDirect3DCryptoSession9_Impl, - { + unsafe extern "system" fn GetSurfacePitch(this: *mut core::ffi::c_void, psrcsurface: *mut core::ffi::c_void, psurfacepitch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCryptoSession9_Impl::GetSurfacePitch(this, windows_core::from_raw_borrowed(&psrcsurface), core::mem::transmute_copy(&psurfacepitch)).into() } - unsafe extern "system" fn StartSessionKeyRefresh(this: *mut core::ffi::c_void, prandomnumber: *mut core::ffi::c_void, randomnumbersize: u32) -> windows_core::HRESULT - where - Identity: IDirect3DCryptoSession9_Impl, - { + unsafe extern "system" fn StartSessionKeyRefresh(this: *mut core::ffi::c_void, prandomnumber: *mut core::ffi::c_void, randomnumbersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCryptoSession9_Impl::StartSessionKeyRefresh(this, core::mem::transmute_copy(&prandomnumber), core::mem::transmute_copy(&randomnumbersize)).into() } - unsafe extern "system" fn FinishSessionKeyRefresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DCryptoSession9_Impl, - { + unsafe extern "system" fn FinishSessionKeyRefresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCryptoSession9_Impl::FinishSessionKeyRefresh(this).into() } - unsafe extern "system" fn GetEncryptionBltKey(this: *mut core::ffi::c_void, preadbackkey: *mut core::ffi::c_void, keysize: u32) -> windows_core::HRESULT - where - Identity: IDirect3DCryptoSession9_Impl, - { + unsafe extern "system" fn GetEncryptionBltKey(this: *mut core::ffi::c_void, preadbackkey: *mut core::ffi::c_void, keysize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DCryptoSession9_Impl::GetEncryptionBltKey(this, core::mem::transmute_copy(&preadbackkey), core::mem::transmute_copy(&keysize)).into() } @@ -2052,7 +1488,7 @@ impl IDirect3DCryptoSession9_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IDirect3DDevice9Video_Impl: Sized { +pub trait IDirect3DDevice9Video_Impl: Sized + windows_core::IUnknownImpl { fn GetContentProtectionCaps(&self, pcryptotype: *const windows_core::GUID, pdecodeprofile: *const windows_core::GUID, pcaps: *mut D3DCONTENTPROTECTIONCAPS) -> windows_core::Result<()>; fn CreateAuthenticatedChannel(&self, channeltype: super::super::Graphics::Direct3D9::D3DAUTHENTICATEDCHANNELTYPE, ppauthenticatedchannel: *mut Option, pchannelhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn CreateCryptoSession(&self, pcryptotype: *const windows_core::GUID, pdecodeprofile: *const windows_core::GUID, ppcryptosession: *mut Option, pcryptohandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; @@ -2061,28 +1497,16 @@ pub trait IDirect3DDevice9Video_Impl: Sized { impl windows_core::RuntimeName for IDirect3DDevice9Video {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDirect3DDevice9Video_Vtbl { - pub const fn new() -> IDirect3DDevice9Video_Vtbl - where - Identity: IDirect3DDevice9Video_Impl, - { - unsafe extern "system" fn GetContentProtectionCaps(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecodeprofile: *const windows_core::GUID, pcaps: *mut D3DCONTENTPROTECTIONCAPS) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Video_Impl, - { + pub const fn new() -> IDirect3DDevice9Video_Vtbl { + unsafe extern "system" fn GetContentProtectionCaps(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecodeprofile: *const windows_core::GUID, pcaps: *mut D3DCONTENTPROTECTIONCAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Video_Impl::GetContentProtectionCaps(this, core::mem::transmute_copy(&pcryptotype), core::mem::transmute_copy(&pdecodeprofile), core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn CreateAuthenticatedChannel(this: *mut core::ffi::c_void, channeltype: super::super::Graphics::Direct3D9::D3DAUTHENTICATEDCHANNELTYPE, ppauthenticatedchannel: *mut *mut core::ffi::c_void, pchannelhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Video_Impl, - { + unsafe extern "system" fn CreateAuthenticatedChannel(this: *mut core::ffi::c_void, channeltype: super::super::Graphics::Direct3D9::D3DAUTHENTICATEDCHANNELTYPE, ppauthenticatedchannel: *mut *mut core::ffi::c_void, pchannelhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Video_Impl::CreateAuthenticatedChannel(this, core::mem::transmute_copy(&channeltype), core::mem::transmute_copy(&ppauthenticatedchannel), core::mem::transmute_copy(&pchannelhandle)).into() } - unsafe extern "system" fn CreateCryptoSession(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecodeprofile: *const windows_core::GUID, ppcryptosession: *mut *mut core::ffi::c_void, pcryptohandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDevice9Video_Impl, - { + unsafe extern "system" fn CreateCryptoSession(this: *mut core::ffi::c_void, pcryptotype: *const windows_core::GUID, pdecodeprofile: *const windows_core::GUID, ppcryptosession: *mut *mut core::ffi::c_void, pcryptohandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Video_Impl::CreateCryptoSession(this, core::mem::transmute_copy(&pcryptotype), core::mem::transmute_copy(&pdecodeprofile), core::mem::transmute_copy(&ppcryptosession), core::mem::transmute_copy(&pcryptohandle)).into() } @@ -2098,7 +1522,7 @@ impl IDirect3DDevice9Video_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IDirect3DDeviceManager9_Impl: Sized { +pub trait IDirect3DDeviceManager9_Impl: Sized + windows_core::IUnknownImpl { fn ResetDevice(&self, pdevice: Option<&super::super::Graphics::Direct3D9::IDirect3DDevice9>, resettoken: u32) -> windows_core::Result<()>; fn OpenDeviceHandle(&self) -> windows_core::Result; fn CloseDeviceHandle(&self, hdevice: super::super::Foundation::HANDLE) -> windows_core::Result<()>; @@ -2111,21 +1535,12 @@ pub trait IDirect3DDeviceManager9_Impl: Sized { impl windows_core::RuntimeName for IDirect3DDeviceManager9 {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDirect3DDeviceManager9_Vtbl { - pub const fn new() -> IDirect3DDeviceManager9_Vtbl - where - Identity: IDirect3DDeviceManager9_Impl, - { - unsafe extern "system" fn ResetDevice(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, resettoken: u32) -> windows_core::HRESULT - where - Identity: IDirect3DDeviceManager9_Impl, - { + pub const fn new() -> IDirect3DDeviceManager9_Vtbl { + unsafe extern "system" fn ResetDevice(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, resettoken: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDeviceManager9_Impl::ResetDevice(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&resettoken)).into() } - unsafe extern "system" fn OpenDeviceHandle(this: *mut core::ffi::c_void, phdevice: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDeviceManager9_Impl, - { + unsafe extern "system" fn OpenDeviceHandle(this: *mut core::ffi::c_void, phdevice: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirect3DDeviceManager9_Impl::OpenDeviceHandle(this) { Ok(ok__) => { @@ -2135,38 +1550,23 @@ impl IDirect3DDeviceManager9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseDeviceHandle(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDeviceManager9_Impl, - { + unsafe extern "system" fn CloseDeviceHandle(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDeviceManager9_Impl::CloseDeviceHandle(this, core::mem::transmute_copy(&hdevice)).into() } - unsafe extern "system" fn TestDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirect3DDeviceManager9_Impl, - { + unsafe extern "system" fn TestDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDeviceManager9_Impl::TestDevice(this, core::mem::transmute_copy(&hdevice)).into() } - unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, ppdevice: *mut *mut core::ffi::c_void, fblock: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirect3DDeviceManager9_Impl, - { + unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, ppdevice: *mut *mut core::ffi::c_void, fblock: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDeviceManager9_Impl::LockDevice(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&ppdevice), core::mem::transmute_copy(&fblock)).into() } - unsafe extern "system" fn UnlockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, fsavestate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDirect3DDeviceManager9_Impl, - { + unsafe extern "system" fn UnlockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, fsavestate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDeviceManager9_Impl::UnlockDevice(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&fsavestate)).into() } - unsafe extern "system" fn GetVideoService(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDeviceManager9_Impl, - { + unsafe extern "system" fn GetVideoService(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDeviceManager9_Impl::GetVideoService(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppservice)).into() } @@ -2186,21 +1586,15 @@ impl IDirect3DDeviceManager9_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IDirectXVideoAccelerationService_Impl: Sized { +pub trait IDirectXVideoAccelerationService_Impl: Sized + windows_core::IUnknownImpl { fn CreateSurface(&self, width: u32, height: u32, backbuffers: u32, format: super::super::Graphics::Direct3D9::D3DFORMAT, pool: super::super::Graphics::Direct3D9::D3DPOOL, usage: u32, dxvatype: &DXVA2_VideoRenderTargetType, ppsurface: *mut Option, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Direct3D9")] impl windows_core::RuntimeName for IDirectXVideoAccelerationService {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDirectXVideoAccelerationService_Vtbl { - pub const fn new() -> IDirectXVideoAccelerationService_Vtbl - where - Identity: IDirectXVideoAccelerationService_Impl, - { - unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, width: u32, height: u32, backbuffers: u32, format: super::super::Graphics::Direct3D9::D3DFORMAT, pool: super::super::Graphics::Direct3D9::D3DPOOL, usage: u32, dxvatype: u32, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectXVideoAccelerationService_Impl, - { + pub const fn new() -> IDirectXVideoAccelerationService_Vtbl { + unsafe extern "system" fn CreateSurface(this: *mut core::ffi::c_void, width: u32, height: u32, backbuffers: u32, format: super::super::Graphics::Direct3D9::D3DFORMAT, pool: super::super::Graphics::Direct3D9::D3DPOOL, usage: u32, dxvatype: u32, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoAccelerationService_Impl::CreateSurface(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&backbuffers), core::mem::transmute_copy(&format), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&usage), core::mem::transmute(&dxvatype), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle)).into() } @@ -2211,7 +1605,7 @@ impl IDirectXVideoAccelerationService_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IDirectXVideoDecoder_Impl: Sized { +pub trait IDirectXVideoDecoder_Impl: Sized + windows_core::IUnknownImpl { fn GetVideoDecoderService(&self) -> windows_core::Result; fn GetCreationParameters(&self, pdeviceguid: *mut windows_core::GUID, pvideodesc: *mut DXVA2_VideoDesc, pconfig: *mut DXVA2_ConfigPictureDecode, pdecoderrendertargets: *mut *mut Option, pnumsurfaces: *mut u32) -> windows_core::Result<()>; fn GetBuffer(&self, buffertype: &DXVA2_BufferfType, ppbuffer: *mut *mut core::ffi::c_void, pbuffersize: *mut u32) -> windows_core::Result<()>; @@ -2224,14 +1618,8 @@ pub trait IDirectXVideoDecoder_Impl: Sized { impl windows_core::RuntimeName for IDirectXVideoDecoder {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDirectXVideoDecoder_Vtbl { - pub const fn new() -> IDirectXVideoDecoder_Vtbl - where - Identity: IDirectXVideoDecoder_Impl, - { - unsafe extern "system" fn GetVideoDecoderService(this: *mut core::ffi::c_void, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoder_Impl, - { + pub const fn new() -> IDirectXVideoDecoder_Vtbl { + unsafe extern "system" fn GetVideoDecoderService(this: *mut core::ffi::c_void, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectXVideoDecoder_Impl::GetVideoDecoderService(this) { Ok(ok__) => { @@ -2241,45 +1629,27 @@ impl IDirectXVideoDecoder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCreationParameters(this: *mut core::ffi::c_void, pdeviceguid: *mut windows_core::GUID, pvideodesc: *mut DXVA2_VideoDesc, pconfig: *mut DXVA2_ConfigPictureDecode, pdecoderrendertargets: *mut *mut Option, pnumsurfaces: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoder_Impl, - { + unsafe extern "system" fn GetCreationParameters(this: *mut core::ffi::c_void, pdeviceguid: *mut windows_core::GUID, pvideodesc: *mut DXVA2_VideoDesc, pconfig: *mut DXVA2_ConfigPictureDecode, pdecoderrendertargets: *mut *mut Option, pnumsurfaces: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoDecoder_Impl::GetCreationParameters(this, core::mem::transmute_copy(&pdeviceguid), core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&pconfig), core::mem::transmute_copy(&pdecoderrendertargets), core::mem::transmute_copy(&pnumsurfaces)).into() } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, buffertype: u32, ppbuffer: *mut *mut core::ffi::c_void, pbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoder_Impl, - { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, buffertype: u32, ppbuffer: *mut *mut core::ffi::c_void, pbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoDecoder_Impl::GetBuffer(this, core::mem::transmute(&buffertype), core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&pbuffersize)).into() } - unsafe extern "system" fn ReleaseBuffer(this: *mut core::ffi::c_void, buffertype: u32) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoder_Impl, - { + unsafe extern "system" fn ReleaseBuffer(this: *mut core::ffi::c_void, buffertype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoDecoder_Impl::ReleaseBuffer(this, core::mem::transmute_copy(&buffertype)).into() } - unsafe extern "system" fn BeginFrame(this: *mut core::ffi::c_void, prendertarget: *mut core::ffi::c_void, pvpvpdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoder_Impl, - { + unsafe extern "system" fn BeginFrame(this: *mut core::ffi::c_void, prendertarget: *mut core::ffi::c_void, pvpvpdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoDecoder_Impl::BeginFrame(this, windows_core::from_raw_borrowed(&prendertarget), core::mem::transmute_copy(&pvpvpdata)).into() } - unsafe extern "system" fn EndFrame(this: *mut core::ffi::c_void, phandlecomplete: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoder_Impl, - { + unsafe extern "system" fn EndFrame(this: *mut core::ffi::c_void, phandlecomplete: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoDecoder_Impl::EndFrame(this, core::mem::transmute_copy(&phandlecomplete)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, pexecuteparams: *const DXVA2_DecodeExecuteParams) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoder_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, pexecuteparams: *const DXVA2_DecodeExecuteParams) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoDecoder_Impl::Execute(this, core::mem::transmute_copy(&pexecuteparams)).into() } @@ -2309,35 +1679,20 @@ pub trait IDirectXVideoDecoderService_Impl: Sized + IDirectXVideoAccelerationSer impl windows_core::RuntimeName for IDirectXVideoDecoderService {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDirectXVideoDecoderService_Vtbl { - pub const fn new() -> IDirectXVideoDecoderService_Vtbl - where - Identity: IDirectXVideoDecoderService_Impl, - { - unsafe extern "system" fn GetDecoderDeviceGuids(this: *mut core::ffi::c_void, pcount: *mut u32, pguids: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoderService_Impl, - { + pub const fn new() -> IDirectXVideoDecoderService_Vtbl { + unsafe extern "system" fn GetDecoderDeviceGuids(this: *mut core::ffi::c_void, pcount: *mut u32, pguids: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoDecoderService_Impl::GetDecoderDeviceGuids(this, core::mem::transmute_copy(&pcount), core::mem::transmute_copy(&pguids)).into() } - unsafe extern "system" fn GetDecoderRenderTargets(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pcount: *mut u32, pformats: *mut *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoderService_Impl, - { + unsafe extern "system" fn GetDecoderRenderTargets(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pcount: *mut u32, pformats: *mut *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoDecoderService_Impl::GetDecoderRenderTargets(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pcount), core::mem::transmute_copy(&pformats)).into() } - unsafe extern "system" fn GetDecoderConfigurations(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, preserved: *const core::ffi::c_void, pcount: *mut u32, ppconfigs: *mut *mut DXVA2_ConfigPictureDecode) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoderService_Impl, - { + unsafe extern "system" fn GetDecoderConfigurations(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, preserved: *const core::ffi::c_void, pcount: *mut u32, ppconfigs: *mut *mut DXVA2_ConfigPictureDecode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoDecoderService_Impl::GetDecoderConfigurations(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&preserved), core::mem::transmute_copy(&pcount), core::mem::transmute_copy(&ppconfigs)).into() } - unsafe extern "system" fn CreateVideoDecoder(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, pconfig: *const DXVA2_ConfigPictureDecode, ppdecoderrendertargets: *const *mut core::ffi::c_void, numrendertargets: u32, ppdecode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectXVideoDecoderService_Impl, - { + unsafe extern "system" fn CreateVideoDecoder(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, pconfig: *const DXVA2_ConfigPictureDecode, ppdecoderrendertargets: *const *mut core::ffi::c_void, numrendertargets: u32, ppdecode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectXVideoDecoderService_Impl::CreateVideoDecoder(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&pconfig), core::mem::transmute_copy(&ppdecoderrendertargets), core::mem::transmute_copy(&numrendertargets)) { Ok(ok__) => { @@ -2359,20 +1714,14 @@ impl IDirectXVideoDecoderService_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDirectXVideoMemoryConfiguration_Impl: Sized { +pub trait IDirectXVideoMemoryConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn GetAvailableSurfaceTypeByIndex(&self, dwtypeindex: u32) -> windows_core::Result; fn SetSurfaceType(&self, dwtype: DXVA2_SurfaceType) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectXVideoMemoryConfiguration {} impl IDirectXVideoMemoryConfiguration_Vtbl { - pub const fn new() -> IDirectXVideoMemoryConfiguration_Vtbl - where - Identity: IDirectXVideoMemoryConfiguration_Impl, - { - unsafe extern "system" fn GetAvailableSurfaceTypeByIndex(this: *mut core::ffi::c_void, dwtypeindex: u32, pdwtype: *mut DXVA2_SurfaceType) -> windows_core::HRESULT - where - Identity: IDirectXVideoMemoryConfiguration_Impl, - { + pub const fn new() -> IDirectXVideoMemoryConfiguration_Vtbl { + unsafe extern "system" fn GetAvailableSurfaceTypeByIndex(this: *mut core::ffi::c_void, dwtypeindex: u32, pdwtype: *mut DXVA2_SurfaceType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectXVideoMemoryConfiguration_Impl::GetAvailableSurfaceTypeByIndex(this, core::mem::transmute_copy(&dwtypeindex)) { Ok(ok__) => { @@ -2382,10 +1731,7 @@ impl IDirectXVideoMemoryConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSurfaceType(this: *mut core::ffi::c_void, dwtype: DXVA2_SurfaceType) -> windows_core::HRESULT - where - Identity: IDirectXVideoMemoryConfiguration_Impl, - { + unsafe extern "system" fn SetSurfaceType(this: *mut core::ffi::c_void, dwtype: DXVA2_SurfaceType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoMemoryConfiguration_Impl::SetSurfaceType(this, core::mem::transmute_copy(&dwtype)).into() } @@ -2400,7 +1746,7 @@ impl IDirectXVideoMemoryConfiguration_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IDirectXVideoProcessor_Impl: Sized { +pub trait IDirectXVideoProcessor_Impl: Sized + windows_core::IUnknownImpl { fn GetVideoProcessorService(&self) -> windows_core::Result; fn GetCreationParameters(&self, pdeviceguid: *mut windows_core::GUID, pvideodesc: *mut DXVA2_VideoDesc, prendertargetformat: *mut super::super::Graphics::Direct3D9::D3DFORMAT, pmaxnumsubstreams: *mut u32) -> windows_core::Result<()>; fn GetVideoProcessorCaps(&self, pcaps: *mut DXVA2_VideoProcessorCaps) -> windows_core::Result<()>; @@ -2412,14 +1758,8 @@ pub trait IDirectXVideoProcessor_Impl: Sized { impl windows_core::RuntimeName for IDirectXVideoProcessor {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDirectXVideoProcessor_Vtbl { - pub const fn new() -> IDirectXVideoProcessor_Vtbl - where - Identity: IDirectXVideoProcessor_Impl, - { - unsafe extern "system" fn GetVideoProcessorService(this: *mut core::ffi::c_void, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessor_Impl, - { + pub const fn new() -> IDirectXVideoProcessor_Vtbl { + unsafe extern "system" fn GetVideoProcessorService(this: *mut core::ffi::c_void, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectXVideoProcessor_Impl::GetVideoProcessorService(this) { Ok(ok__) => { @@ -2429,24 +1769,15 @@ impl IDirectXVideoProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCreationParameters(this: *mut core::ffi::c_void, pdeviceguid: *mut windows_core::GUID, pvideodesc: *mut DXVA2_VideoDesc, prendertargetformat: *mut super::super::Graphics::Direct3D9::D3DFORMAT, pmaxnumsubstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessor_Impl, - { + unsafe extern "system" fn GetCreationParameters(this: *mut core::ffi::c_void, pdeviceguid: *mut windows_core::GUID, pvideodesc: *mut DXVA2_VideoDesc, prendertargetformat: *mut super::super::Graphics::Direct3D9::D3DFORMAT, pmaxnumsubstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoProcessor_Impl::GetCreationParameters(this, core::mem::transmute_copy(&pdeviceguid), core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&prendertargetformat), core::mem::transmute_copy(&pmaxnumsubstreams)).into() } - unsafe extern "system" fn GetVideoProcessorCaps(this: *mut core::ffi::c_void, pcaps: *mut DXVA2_VideoProcessorCaps) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessor_Impl, - { + unsafe extern "system" fn GetVideoProcessorCaps(this: *mut core::ffi::c_void, pcaps: *mut DXVA2_VideoProcessorCaps) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoProcessor_Impl::GetVideoProcessorCaps(this, core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetProcAmpRange(this: *mut core::ffi::c_void, procampcap: u32, prange: *mut DXVA2_ValueRange) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessor_Impl, - { + unsafe extern "system" fn GetProcAmpRange(this: *mut core::ffi::c_void, procampcap: u32, prange: *mut DXVA2_ValueRange) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectXVideoProcessor_Impl::GetProcAmpRange(this, core::mem::transmute_copy(&procampcap)) { Ok(ok__) => { @@ -2456,10 +1787,7 @@ impl IDirectXVideoProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilterPropertyRange(this: *mut core::ffi::c_void, filtersetting: u32, prange: *mut DXVA2_ValueRange) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessor_Impl, - { + unsafe extern "system" fn GetFilterPropertyRange(this: *mut core::ffi::c_void, filtersetting: u32, prange: *mut DXVA2_ValueRange) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectXVideoProcessor_Impl::GetFilterPropertyRange(this, core::mem::transmute_copy(&filtersetting)) { Ok(ok__) => { @@ -2469,10 +1797,7 @@ impl IDirectXVideoProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VideoProcessBlt(this: *mut core::ffi::c_void, prendertarget: *mut core::ffi::c_void, pbltparams: *const DXVA2_VideoProcessBltParams, psamples: *const DXVA2_VideoSample, numsamples: u32, phandlecomplete: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessor_Impl, - { + unsafe extern "system" fn VideoProcessBlt(this: *mut core::ffi::c_void, prendertarget: *mut core::ffi::c_void, pbltparams: *const DXVA2_VideoProcessBltParams, psamples: *const DXVA2_VideoSample, numsamples: u32, phandlecomplete: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoProcessor_Impl::VideoProcessBlt(this, windows_core::from_raw_borrowed(&prendertarget), core::mem::transmute_copy(&pbltparams), core::mem::transmute_copy(&psamples), core::mem::transmute_copy(&numsamples), core::mem::transmute_copy(&phandlecomplete)).into() } @@ -2505,49 +1830,28 @@ pub trait IDirectXVideoProcessorService_Impl: Sized + IDirectXVideoAccelerationS impl windows_core::RuntimeName for IDirectXVideoProcessorService {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IDirectXVideoProcessorService_Vtbl { - pub const fn new() -> IDirectXVideoProcessorService_Vtbl - where - Identity: IDirectXVideoProcessorService_Impl, - { - unsafe extern "system" fn RegisterVideoProcessorSoftwareDevice(this: *mut core::ffi::c_void, pcallbacks: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessorService_Impl, - { + pub const fn new() -> IDirectXVideoProcessorService_Vtbl { + unsafe extern "system" fn RegisterVideoProcessorSoftwareDevice(this: *mut core::ffi::c_void, pcallbacks: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoProcessorService_Impl::RegisterVideoProcessorSoftwareDevice(this, core::mem::transmute_copy(&pcallbacks)).into() } - unsafe extern "system" fn GetVideoProcessorDeviceGuids(this: *mut core::ffi::c_void, pvideodesc: *const DXVA2_VideoDesc, pcount: *mut u32, pguids: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessorService_Impl, - { + unsafe extern "system" fn GetVideoProcessorDeviceGuids(this: *mut core::ffi::c_void, pvideodesc: *const DXVA2_VideoDesc, pcount: *mut u32, pguids: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoProcessorService_Impl::GetVideoProcessorDeviceGuids(this, core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&pcount), core::mem::transmute_copy(&pguids)).into() } - unsafe extern "system" fn GetVideoProcessorRenderTargets(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, pcount: *mut u32, pformats: *mut *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessorService_Impl, - { + unsafe extern "system" fn GetVideoProcessorRenderTargets(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, pcount: *mut u32, pformats: *mut *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoProcessorService_Impl::GetVideoProcessorRenderTargets(this, core::mem::transmute_copy(&videoprocdeviceguid), core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&pcount), core::mem::transmute_copy(&pformats)).into() } - unsafe extern "system" fn GetVideoProcessorSubStreamFormats(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, pcount: *mut u32, pformats: *mut *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessorService_Impl, - { + unsafe extern "system" fn GetVideoProcessorSubStreamFormats(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, pcount: *mut u32, pformats: *mut *mut super::super::Graphics::Direct3D9::D3DFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoProcessorService_Impl::GetVideoProcessorSubStreamFormats(this, core::mem::transmute_copy(&videoprocdeviceguid), core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&rendertargetformat), core::mem::transmute_copy(&pcount), core::mem::transmute_copy(&pformats)).into() } - unsafe extern "system" fn GetVideoProcessorCaps(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, pcaps: *mut DXVA2_VideoProcessorCaps) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessorService_Impl, - { + unsafe extern "system" fn GetVideoProcessorCaps(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, pcaps: *mut DXVA2_VideoProcessorCaps) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectXVideoProcessorService_Impl::GetVideoProcessorCaps(this, core::mem::transmute_copy(&videoprocdeviceguid), core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&rendertargetformat), core::mem::transmute_copy(&pcaps)).into() } - unsafe extern "system" fn GetProcAmpRange(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, procampcap: u32, prange: *mut DXVA2_ValueRange) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessorService_Impl, - { + unsafe extern "system" fn GetProcAmpRange(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, procampcap: u32, prange: *mut DXVA2_ValueRange) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectXVideoProcessorService_Impl::GetProcAmpRange(this, core::mem::transmute_copy(&videoprocdeviceguid), core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&rendertargetformat), core::mem::transmute_copy(&procampcap)) { Ok(ok__) => { @@ -2557,10 +1861,7 @@ impl IDirectXVideoProcessorService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilterPropertyRange(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, filtersetting: u32, prange: *mut DXVA2_ValueRange) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessorService_Impl, - { + unsafe extern "system" fn GetFilterPropertyRange(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, filtersetting: u32, prange: *mut DXVA2_ValueRange) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectXVideoProcessorService_Impl::GetFilterPropertyRange(this, core::mem::transmute_copy(&videoprocdeviceguid), core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&rendertargetformat), core::mem::transmute_copy(&filtersetting)) { Ok(ok__) => { @@ -2570,10 +1871,7 @@ impl IDirectXVideoProcessorService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVideoProcessor(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, maxnumsubstreams: u32, ppvidprocess: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectXVideoProcessorService_Impl, - { + unsafe extern "system" fn CreateVideoProcessor(this: *mut core::ffi::c_void, videoprocdeviceguid: *const windows_core::GUID, pvideodesc: *const DXVA2_VideoDesc, rendertargetformat: super::super::Graphics::Direct3D9::D3DFORMAT, maxnumsubstreams: u32, ppvidprocess: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectXVideoProcessorService_Impl::CreateVideoProcessor(this, core::mem::transmute_copy(&videoprocdeviceguid), core::mem::transmute_copy(&pvideodesc), core::mem::transmute_copy(&rendertargetformat), core::mem::transmute_copy(&maxnumsubstreams)) { Ok(ok__) => { @@ -2599,27 +1897,18 @@ impl IDirectXVideoProcessorService_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IEVRFilterConfig_Impl: Sized { +pub trait IEVRFilterConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetNumberOfStreams(&self, dwmaxstreams: u32) -> windows_core::Result<()>; fn GetNumberOfStreams(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IEVRFilterConfig {} impl IEVRFilterConfig_Vtbl { - pub const fn new() -> IEVRFilterConfig_Vtbl - where - Identity: IEVRFilterConfig_Impl, - { - unsafe extern "system" fn SetNumberOfStreams(this: *mut core::ffi::c_void, dwmaxstreams: u32) -> windows_core::HRESULT - where - Identity: IEVRFilterConfig_Impl, - { + pub const fn new() -> IEVRFilterConfig_Vtbl { + unsafe extern "system" fn SetNumberOfStreams(this: *mut core::ffi::c_void, dwmaxstreams: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEVRFilterConfig_Impl::SetNumberOfStreams(this, core::mem::transmute_copy(&dwmaxstreams)).into() } - unsafe extern "system" fn GetNumberOfStreams(this: *mut core::ffi::c_void, pdwmaxstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IEVRFilterConfig_Impl, - { + unsafe extern "system" fn GetNumberOfStreams(this: *mut core::ffi::c_void, pdwmaxstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEVRFilterConfig_Impl::GetNumberOfStreams(this) { Ok(ok__) => { @@ -2645,21 +1934,12 @@ pub trait IEVRFilterConfigEx_Impl: Sized + IEVRFilterConfig_Impl { } impl windows_core::RuntimeName for IEVRFilterConfigEx {} impl IEVRFilterConfigEx_Vtbl { - pub const fn new() -> IEVRFilterConfigEx_Vtbl - where - Identity: IEVRFilterConfigEx_Impl, - { - unsafe extern "system" fn SetConfigPrefs(this: *mut core::ffi::c_void, dwconfigflags: u32) -> windows_core::HRESULT - where - Identity: IEVRFilterConfigEx_Impl, - { + pub const fn new() -> IEVRFilterConfigEx_Vtbl { + unsafe extern "system" fn SetConfigPrefs(this: *mut core::ffi::c_void, dwconfigflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEVRFilterConfigEx_Impl::SetConfigPrefs(this, core::mem::transmute_copy(&dwconfigflags)).into() } - unsafe extern "system" fn GetConfigPrefs(this: *mut core::ffi::c_void, pdwconfigflags: *mut u32) -> windows_core::HRESULT - where - Identity: IEVRFilterConfigEx_Impl, - { + unsafe extern "system" fn GetConfigPrefs(this: *mut core::ffi::c_void, pdwconfigflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEVRFilterConfigEx_Impl::GetConfigPrefs(this) { Ok(ok__) => { @@ -2679,7 +1959,7 @@ impl IEVRFilterConfigEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IEVRTrustedVideoPlugin_Impl: Sized { +pub trait IEVRTrustedVideoPlugin_Impl: Sized + windows_core::IUnknownImpl { fn IsInTrustedVideoMode(&self) -> windows_core::Result; fn CanConstrict(&self) -> windows_core::Result; fn SetConstriction(&self, dwkpix: u32) -> windows_core::Result<()>; @@ -2687,14 +1967,8 @@ pub trait IEVRTrustedVideoPlugin_Impl: Sized { } impl windows_core::RuntimeName for IEVRTrustedVideoPlugin {} impl IEVRTrustedVideoPlugin_Vtbl { - pub const fn new() -> IEVRTrustedVideoPlugin_Vtbl - where - Identity: IEVRTrustedVideoPlugin_Impl, - { - unsafe extern "system" fn IsInTrustedVideoMode(this: *mut core::ffi::c_void, pyes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEVRTrustedVideoPlugin_Impl, - { + pub const fn new() -> IEVRTrustedVideoPlugin_Vtbl { + unsafe extern "system" fn IsInTrustedVideoMode(this: *mut core::ffi::c_void, pyes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEVRTrustedVideoPlugin_Impl::IsInTrustedVideoMode(this) { Ok(ok__) => { @@ -2704,10 +1978,7 @@ impl IEVRTrustedVideoPlugin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanConstrict(this: *mut core::ffi::c_void, pyes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEVRTrustedVideoPlugin_Impl, - { + unsafe extern "system" fn CanConstrict(this: *mut core::ffi::c_void, pyes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEVRTrustedVideoPlugin_Impl::CanConstrict(this) { Ok(ok__) => { @@ -2717,17 +1988,11 @@ impl IEVRTrustedVideoPlugin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConstriction(this: *mut core::ffi::c_void, dwkpix: u32) -> windows_core::HRESULT - where - Identity: IEVRTrustedVideoPlugin_Impl, - { + unsafe extern "system" fn SetConstriction(this: *mut core::ffi::c_void, dwkpix: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEVRTrustedVideoPlugin_Impl::SetConstriction(this, core::mem::transmute_copy(&dwkpix)).into() } - unsafe extern "system" fn DisableImageExport(this: *mut core::ffi::c_void, bdisable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEVRTrustedVideoPlugin_Impl, - { + unsafe extern "system" fn DisableImageExport(this: *mut core::ffi::c_void, bdisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEVRTrustedVideoPlugin_Impl::DisableImageExport(this, core::mem::transmute_copy(&bdisable)).into() } @@ -2743,27 +2008,18 @@ impl IEVRTrustedVideoPlugin_Vtbl { iid == &::IID } } -pub trait IEVRVideoStreamControl_Impl: Sized { +pub trait IEVRVideoStreamControl_Impl: Sized + windows_core::IUnknownImpl { fn SetStreamActiveState(&self, factive: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetStreamActiveState(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IEVRVideoStreamControl {} impl IEVRVideoStreamControl_Vtbl { - pub const fn new() -> IEVRVideoStreamControl_Vtbl - where - Identity: IEVRVideoStreamControl_Impl, - { - unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEVRVideoStreamControl_Impl, - { + pub const fn new() -> IEVRVideoStreamControl_Vtbl { + unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEVRVideoStreamControl_Impl::SetStreamActiveState(this, core::mem::transmute_copy(&factive)).into() } - unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEVRVideoStreamControl_Impl, - { + unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEVRVideoStreamControl_Impl::GetStreamActiveState(this) { Ok(ok__) => { @@ -2783,35 +2039,23 @@ impl IEVRVideoStreamControl_Vtbl { iid == &::IID } } -pub trait IFileClient_Impl: Sized { +pub trait IFileClient_Impl: Sized + windows_core::IUnknownImpl { fn GetObjectDiskSize(&self, pqwsize: *mut u64) -> windows_core::Result<()>; fn Write(&self, pfio: Option<&IFileIo>) -> windows_core::Result<()>; fn Read(&self, pfio: Option<&IFileIo>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFileClient {} impl IFileClient_Vtbl { - pub const fn new() -> IFileClient_Vtbl - where - Identity: IFileClient_Impl, - { - unsafe extern "system" fn GetObjectDiskSize(this: *mut core::ffi::c_void, pqwsize: *mut u64) -> windows_core::HRESULT - where - Identity: IFileClient_Impl, - { + pub const fn new() -> IFileClient_Vtbl { + unsafe extern "system" fn GetObjectDiskSize(this: *mut core::ffi::c_void, pqwsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileClient_Impl::GetObjectDiskSize(this, core::mem::transmute_copy(&pqwsize)).into() } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pfio: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileClient_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pfio: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileClient_Impl::Write(this, windows_core::from_raw_borrowed(&pfio)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pfio: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileClient_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pfio: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileClient_Impl::Read(this, windows_core::from_raw_borrowed(&pfio)).into() } @@ -2826,7 +2070,7 @@ impl IFileClient_Vtbl { iid == &::IID } } -pub trait IFileIo_Impl: Sized { +pub trait IFileIo_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, eaccessmode: FILE_ACCESSMODE, eopenmode: FILE_OPENMODE, pwszfilename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetLength(&self, pqwlength: *mut u64) -> windows_core::Result<()>; fn SetLength(&self, qwlength: u64) -> windows_core::Result<()>; @@ -2840,77 +2084,44 @@ pub trait IFileIo_Impl: Sized { } impl windows_core::RuntimeName for IFileIo {} impl IFileIo_Vtbl { - pub const fn new() -> IFileIo_Vtbl - where - Identity: IFileIo_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, eaccessmode: FILE_ACCESSMODE, eopenmode: FILE_OPENMODE, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileIo_Impl, - { + pub const fn new() -> IFileIo_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, eaccessmode: FILE_ACCESSMODE, eopenmode: FILE_OPENMODE, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::Initialize(this, core::mem::transmute_copy(&eaccessmode), core::mem::transmute_copy(&eopenmode), core::mem::transmute(&pwszfilename)).into() } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pqwlength: *mut u64) -> windows_core::HRESULT - where - Identity: IFileIo_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pqwlength: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::GetLength(this, core::mem::transmute_copy(&pqwlength)).into() } - unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, qwlength: u64) -> windows_core::HRESULT - where - Identity: IFileIo_Impl, - { + unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, qwlength: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::SetLength(this, core::mem::transmute_copy(&qwlength)).into() } - unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, pqwposition: *mut u64) -> windows_core::HRESULT - where - Identity: IFileIo_Impl, - { + unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, pqwposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::GetCurrentPosition(this, core::mem::transmute_copy(&pqwposition)).into() } - unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, qwposition: u64) -> windows_core::HRESULT - where - Identity: IFileIo_Impl, - { + unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, qwposition: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::SetCurrentPosition(this, core::mem::transmute_copy(&qwposition)).into() } - unsafe extern "system" fn IsEndOfStream(this: *mut core::ffi::c_void, pbendofstream: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFileIo_Impl, - { + unsafe extern "system" fn IsEndOfStream(this: *mut core::ffi::c_void, pbendofstream: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::IsEndOfStream(this, core::mem::transmute_copy(&pbendofstream)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbt: *mut u8, ul: u32, pulread: *mut u32) -> windows_core::HRESULT - where - Identity: IFileIo_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbt: *mut u8, ul: u32, pulread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::Read(this, core::mem::transmute_copy(&pbt), core::mem::transmute_copy(&ul), core::mem::transmute_copy(&pulread)).into() } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pbt: *mut u8, ul: u32, pulwritten: *mut u32) -> windows_core::HRESULT - where - Identity: IFileIo_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pbt: *mut u8, ul: u32, pulwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::Write(this, core::mem::transmute_copy(&pbt), core::mem::transmute_copy(&ul), core::mem::transmute_copy(&pulwritten)).into() } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, eseekorigin: SEEK_ORIGIN, qwseekoffset: u64, dwseekflags: u32, pqwcurrentposition: *mut u64) -> windows_core::HRESULT - where - Identity: IFileIo_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, eseekorigin: SEEK_ORIGIN, qwseekoffset: u64, dwseekflags: u32, pqwcurrentposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::Seek(this, core::mem::transmute_copy(&eseekorigin), core::mem::transmute_copy(&qwseekoffset), core::mem::transmute_copy(&dwseekflags), core::mem::transmute_copy(&pqwcurrentposition)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileIo_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::Close(this).into() } @@ -2932,7 +2143,7 @@ impl IFileIo_Vtbl { iid == &::IID } } -pub trait IMF2DBuffer_Impl: Sized { +pub trait IMF2DBuffer_Impl: Sized + windows_core::IUnknownImpl { fn Lock2D(&self, ppbscanline0: *mut *mut u8, plpitch: *mut i32) -> windows_core::Result<()>; fn Unlock2D(&self) -> windows_core::Result<()>; fn GetScanline0AndPitch(&self, pbscanline0: *mut *mut u8, plpitch: *mut i32) -> windows_core::Result<()>; @@ -2943,35 +2154,20 @@ pub trait IMF2DBuffer_Impl: Sized { } impl windows_core::RuntimeName for IMF2DBuffer {} impl IMF2DBuffer_Vtbl { - pub const fn new() -> IMF2DBuffer_Vtbl - where - Identity: IMF2DBuffer_Impl, - { - unsafe extern "system" fn Lock2D(this: *mut core::ffi::c_void, ppbscanline0: *mut *mut u8, plpitch: *mut i32) -> windows_core::HRESULT - where - Identity: IMF2DBuffer_Impl, - { + pub const fn new() -> IMF2DBuffer_Vtbl { + unsafe extern "system" fn Lock2D(this: *mut core::ffi::c_void, ppbscanline0: *mut *mut u8, plpitch: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMF2DBuffer_Impl::Lock2D(this, core::mem::transmute_copy(&ppbscanline0), core::mem::transmute_copy(&plpitch)).into() } - unsafe extern "system" fn Unlock2D(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMF2DBuffer_Impl, - { + unsafe extern "system" fn Unlock2D(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMF2DBuffer_Impl::Unlock2D(this).into() } - unsafe extern "system" fn GetScanline0AndPitch(this: *mut core::ffi::c_void, pbscanline0: *mut *mut u8, plpitch: *mut i32) -> windows_core::HRESULT - where - Identity: IMF2DBuffer_Impl, - { + unsafe extern "system" fn GetScanline0AndPitch(this: *mut core::ffi::c_void, pbscanline0: *mut *mut u8, plpitch: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMF2DBuffer_Impl::GetScanline0AndPitch(this, core::mem::transmute_copy(&pbscanline0), core::mem::transmute_copy(&plpitch)).into() } - unsafe extern "system" fn IsContiguousFormat(this: *mut core::ffi::c_void, pfiscontiguous: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMF2DBuffer_Impl, - { + unsafe extern "system" fn IsContiguousFormat(this: *mut core::ffi::c_void, pfiscontiguous: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMF2DBuffer_Impl::IsContiguousFormat(this) { Ok(ok__) => { @@ -2981,10 +2177,7 @@ impl IMF2DBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContiguousLength(this: *mut core::ffi::c_void, pcblength: *mut u32) -> windows_core::HRESULT - where - Identity: IMF2DBuffer_Impl, - { + unsafe extern "system" fn GetContiguousLength(this: *mut core::ffi::c_void, pcblength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMF2DBuffer_Impl::GetContiguousLength(this) { Ok(ok__) => { @@ -2994,17 +2187,11 @@ impl IMF2DBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContiguousCopyTo(this: *mut core::ffi::c_void, pbdestbuffer: *mut u8, cbdestbuffer: u32) -> windows_core::HRESULT - where - Identity: IMF2DBuffer_Impl, - { + unsafe extern "system" fn ContiguousCopyTo(this: *mut core::ffi::c_void, pbdestbuffer: *mut u8, cbdestbuffer: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMF2DBuffer_Impl::ContiguousCopyTo(this, core::mem::transmute_copy(&pbdestbuffer), core::mem::transmute_copy(&cbdestbuffer)).into() } - unsafe extern "system" fn ContiguousCopyFrom(this: *mut core::ffi::c_void, pbsrcbuffer: *const u8, cbsrcbuffer: u32) -> windows_core::HRESULT - where - Identity: IMF2DBuffer_Impl, - { + unsafe extern "system" fn ContiguousCopyFrom(this: *mut core::ffi::c_void, pbsrcbuffer: *const u8, cbsrcbuffer: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMF2DBuffer_Impl::ContiguousCopyFrom(this, core::mem::transmute_copy(&pbsrcbuffer), core::mem::transmute_copy(&cbsrcbuffer)).into() } @@ -3029,21 +2216,12 @@ pub trait IMF2DBuffer2_Impl: Sized + IMF2DBuffer_Impl { } impl windows_core::RuntimeName for IMF2DBuffer2 {} impl IMF2DBuffer2_Vtbl { - pub const fn new() -> IMF2DBuffer2_Vtbl - where - Identity: IMF2DBuffer2_Impl, - { - unsafe extern "system" fn Lock2DSize(this: *mut core::ffi::c_void, lockflags: MF2DBuffer_LockFlags, ppbscanline0: *mut *mut u8, plpitch: *mut i32, ppbbufferstart: *mut *mut u8, pcbbufferlength: *mut u32) -> windows_core::HRESULT - where - Identity: IMF2DBuffer2_Impl, - { + pub const fn new() -> IMF2DBuffer2_Vtbl { + unsafe extern "system" fn Lock2DSize(this: *mut core::ffi::c_void, lockflags: MF2DBuffer_LockFlags, ppbscanline0: *mut *mut u8, plpitch: *mut i32, ppbbufferstart: *mut *mut u8, pcbbufferlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMF2DBuffer2_Impl::Lock2DSize(this, core::mem::transmute_copy(&lockflags), core::mem::transmute_copy(&ppbscanline0), core::mem::transmute_copy(&plpitch), core::mem::transmute_copy(&ppbbufferstart), core::mem::transmute_copy(&pcbbufferlength)).into() } - unsafe extern "system" fn Copy2DTo(this: *mut core::ffi::c_void, pdestbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMF2DBuffer2_Impl, - { + unsafe extern "system" fn Copy2DTo(this: *mut core::ffi::c_void, pdestbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMF2DBuffer2_Impl::Copy2DTo(this, windows_core::from_raw_borrowed(&pdestbuffer)).into() } @@ -3054,7 +2232,7 @@ impl IMF2DBuffer2_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMFASFContentInfo_Impl: Sized { +pub trait IMFASFContentInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetHeaderSize(&self, pistartofcontent: Option<&IMFMediaBuffer>) -> windows_core::Result; fn ParseHeader(&self, piheaderbuffer: Option<&IMFMediaBuffer>, cboffsetwithinheader: u64) -> windows_core::Result<()>; fn GenerateHeader(&self, piheader: Option<&IMFMediaBuffer>) -> windows_core::Result; @@ -3067,14 +2245,8 @@ pub trait IMFASFContentInfo_Impl: Sized { impl windows_core::RuntimeName for IMFASFContentInfo {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFASFContentInfo_Vtbl { - pub const fn new() -> IMFASFContentInfo_Vtbl - where - Identity: IMFASFContentInfo_Impl, - { - unsafe extern "system" fn GetHeaderSize(this: *mut core::ffi::c_void, pistartofcontent: *mut core::ffi::c_void, cbheadersize: *mut u64) -> windows_core::HRESULT - where - Identity: IMFASFContentInfo_Impl, - { + pub const fn new() -> IMFASFContentInfo_Vtbl { + unsafe extern "system" fn GetHeaderSize(this: *mut core::ffi::c_void, pistartofcontent: *mut core::ffi::c_void, cbheadersize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFContentInfo_Impl::GetHeaderSize(this, windows_core::from_raw_borrowed(&pistartofcontent)) { Ok(ok__) => { @@ -3084,17 +2256,11 @@ impl IMFASFContentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParseHeader(this: *mut core::ffi::c_void, piheaderbuffer: *mut core::ffi::c_void, cboffsetwithinheader: u64) -> windows_core::HRESULT - where - Identity: IMFASFContentInfo_Impl, - { + unsafe extern "system" fn ParseHeader(this: *mut core::ffi::c_void, piheaderbuffer: *mut core::ffi::c_void, cboffsetwithinheader: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFContentInfo_Impl::ParseHeader(this, windows_core::from_raw_borrowed(&piheaderbuffer), core::mem::transmute_copy(&cboffsetwithinheader)).into() } - unsafe extern "system" fn GenerateHeader(this: *mut core::ffi::c_void, piheader: *mut core::ffi::c_void, pcbheader: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFContentInfo_Impl, - { + unsafe extern "system" fn GenerateHeader(this: *mut core::ffi::c_void, piheader: *mut core::ffi::c_void, pcbheader: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFContentInfo_Impl::GenerateHeader(this, windows_core::from_raw_borrowed(&piheader)) { Ok(ok__) => { @@ -3104,10 +2270,7 @@ impl IMFASFContentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProfile(this: *mut core::ffi::c_void, ppiprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFContentInfo_Impl, - { + unsafe extern "system" fn GetProfile(this: *mut core::ffi::c_void, ppiprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFContentInfo_Impl::GetProfile(this) { Ok(ok__) => { @@ -3117,17 +2280,11 @@ impl IMFASFContentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProfile(this: *mut core::ffi::c_void, piprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFContentInfo_Impl, - { + unsafe extern "system" fn SetProfile(this: *mut core::ffi::c_void, piprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFContentInfo_Impl::SetProfile(this, windows_core::from_raw_borrowed(&piprofile)).into() } - unsafe extern "system" fn GeneratePresentationDescriptor(this: *mut core::ffi::c_void, ppipresentationdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFContentInfo_Impl, - { + unsafe extern "system" fn GeneratePresentationDescriptor(this: *mut core::ffi::c_void, ppipresentationdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFContentInfo_Impl::GeneratePresentationDescriptor(this) { Ok(ok__) => { @@ -3137,10 +2294,7 @@ impl IMFASFContentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEncodingConfigurationPropertyStore(this: *mut core::ffi::c_void, wstreamnumber: u16, ppistore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFContentInfo_Impl, - { + unsafe extern "system" fn GetEncodingConfigurationPropertyStore(this: *mut core::ffi::c_void, wstreamnumber: u16, ppistore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFContentInfo_Impl::GetEncodingConfigurationPropertyStore(this, core::mem::transmute_copy(&wstreamnumber)) { Ok(ok__) => { @@ -3165,7 +2319,7 @@ impl IMFASFContentInfo_Vtbl { iid == &::IID } } -pub trait IMFASFIndexer_Impl: Sized { +pub trait IMFASFIndexer_Impl: Sized + windows_core::IUnknownImpl { fn SetFlags(&self, dwflags: u32) -> windows_core::Result<()>; fn GetFlags(&self) -> windows_core::Result; fn Initialize(&self, picontentinfo: Option<&IMFASFContentInfo>) -> windows_core::Result<()>; @@ -3182,21 +2336,12 @@ pub trait IMFASFIndexer_Impl: Sized { } impl windows_core::RuntimeName for IMFASFIndexer {} impl IMFASFIndexer_Vtbl { - pub const fn new() -> IMFASFIndexer_Vtbl - where - Identity: IMFASFIndexer_Impl, - { - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + pub const fn new() -> IMFASFIndexer_Vtbl { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::SetFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFIndexer_Impl::GetFlags(this) { Ok(ok__) => { @@ -3206,17 +2351,11 @@ impl IMFASFIndexer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::Initialize(this, windows_core::from_raw_borrowed(&picontentinfo)).into() } - unsafe extern "system" fn GetIndexPosition(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void, pcbindexoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn GetIndexPosition(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void, pcbindexoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFIndexer_Impl::GetIndexPosition(this, windows_core::from_raw_borrowed(&picontentinfo)) { Ok(ok__) => { @@ -3226,17 +2365,11 @@ impl IMFASFIndexer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIndexByteStreams(this: *mut core::ffi::c_void, ppibytestreams: *const *mut core::ffi::c_void, cbytestreams: u32) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn SetIndexByteStreams(this: *mut core::ffi::c_void, ppibytestreams: *const *mut core::ffi::c_void, cbytestreams: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::SetIndexByteStreams(this, core::mem::transmute_copy(&ppibytestreams), core::mem::transmute_copy(&cbytestreams)).into() } - unsafe extern "system" fn GetIndexByteStreamCount(this: *mut core::ffi::c_void, pcbytestreams: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn GetIndexByteStreamCount(this: *mut core::ffi::c_void, pcbytestreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFIndexer_Impl::GetIndexByteStreamCount(this) { Ok(ok__) => { @@ -3246,45 +2379,27 @@ impl IMFASFIndexer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIndexStatus(this: *mut core::ffi::c_void, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pfisindexed: *mut super::super::Foundation::BOOL, pbindexdescriptor: *mut u8, pcbindexdescriptor: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn GetIndexStatus(this: *mut core::ffi::c_void, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pfisindexed: *mut super::super::Foundation::BOOL, pbindexdescriptor: *mut u8, pcbindexdescriptor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::GetIndexStatus(this, core::mem::transmute_copy(&pindexidentifier), core::mem::transmute_copy(&pfisindexed), core::mem::transmute_copy(&pbindexdescriptor), core::mem::transmute_copy(&pcbindexdescriptor)).into() } - unsafe extern "system" fn SetIndexStatus(this: *mut core::ffi::c_void, pbindexdescriptor: *const u8, cbindexdescriptor: u32, fgenerateindex: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn SetIndexStatus(this: *mut core::ffi::c_void, pbindexdescriptor: *const u8, cbindexdescriptor: u32, fgenerateindex: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::SetIndexStatus(this, core::mem::transmute_copy(&pbindexdescriptor), core::mem::transmute_copy(&cbindexdescriptor), core::mem::transmute_copy(&fgenerateindex)).into() } - unsafe extern "system" fn GetSeekPositionForValue(this: *mut core::ffi::c_void, pvarvalue: *const core::mem::MaybeUninit, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pcboffsetwithindata: *mut u64, phnsapproxtime: *mut i64, pdwpayloadnumberofstreamwithinpacket: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn GetSeekPositionForValue(this: *mut core::ffi::c_void, pvarvalue: *const core::mem::MaybeUninit, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pcboffsetwithindata: *mut u64, phnsapproxtime: *mut i64, pdwpayloadnumberofstreamwithinpacket: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::GetSeekPositionForValue(this, core::mem::transmute_copy(&pvarvalue), core::mem::transmute_copy(&pindexidentifier), core::mem::transmute_copy(&pcboffsetwithindata), core::mem::transmute_copy(&phnsapproxtime), core::mem::transmute_copy(&pdwpayloadnumberofstreamwithinpacket)).into() } - unsafe extern "system" fn GenerateIndexEntries(this: *mut core::ffi::c_void, piasfpacketsample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn GenerateIndexEntries(this: *mut core::ffi::c_void, piasfpacketsample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::GenerateIndexEntries(this, windows_core::from_raw_borrowed(&piasfpacketsample)).into() } - unsafe extern "system" fn CommitIndex(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn CommitIndex(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::CommitIndex(this, windows_core::from_raw_borrowed(&picontentinfo)).into() } - unsafe extern "system" fn GetIndexWriteSpace(this: *mut core::ffi::c_void, pcbindexwritespace: *mut u64) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn GetIndexWriteSpace(this: *mut core::ffi::c_void, pcbindexwritespace: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFIndexer_Impl::GetIndexWriteSpace(this) { Ok(ok__) => { @@ -3294,10 +2409,7 @@ impl IMFASFIndexer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCompletedIndex(this: *mut core::ffi::c_void, piindexbuffer: *mut core::ffi::c_void, cboffsetwithinindex: u64) -> windows_core::HRESULT - where - Identity: IMFASFIndexer_Impl, - { + unsafe extern "system" fn GetCompletedIndex(this: *mut core::ffi::c_void, piindexbuffer: *mut core::ffi::c_void, cboffsetwithinindex: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::GetCompletedIndex(this, windows_core::from_raw_borrowed(&piindexbuffer), core::mem::transmute_copy(&cboffsetwithinindex)).into() } @@ -3322,7 +2434,7 @@ impl IMFASFIndexer_Vtbl { iid == &::IID } } -pub trait IMFASFMultiplexer_Impl: Sized { +pub trait IMFASFMultiplexer_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, picontentinfo: Option<&IMFASFContentInfo>) -> windows_core::Result<()>; fn SetFlags(&self, dwflags: u32) -> windows_core::Result<()>; fn GetFlags(&self) -> windows_core::Result; @@ -3335,28 +2447,16 @@ pub trait IMFASFMultiplexer_Impl: Sized { } impl windows_core::RuntimeName for IMFASFMultiplexer {} impl IMFASFMultiplexer_Vtbl { - pub const fn new() -> IMFASFMultiplexer_Vtbl - where - Identity: IMFASFMultiplexer_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFMultiplexer_Impl, - { + pub const fn new() -> IMFASFMultiplexer_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMultiplexer_Impl::Initialize(this, windows_core::from_raw_borrowed(&picontentinfo)).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFASFMultiplexer_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMultiplexer_Impl::SetFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFMultiplexer_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFMultiplexer_Impl::GetFlags(this) { Ok(ok__) => { @@ -3366,38 +2466,23 @@ impl IMFASFMultiplexer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessSample(this: *mut core::ffi::c_void, wstreamnumber: u16, pisample: *mut core::ffi::c_void, hnstimestampadjust: i64) -> windows_core::HRESULT - where - Identity: IMFASFMultiplexer_Impl, - { + unsafe extern "system" fn ProcessSample(this: *mut core::ffi::c_void, wstreamnumber: u16, pisample: *mut core::ffi::c_void, hnstimestampadjust: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMultiplexer_Impl::ProcessSample(this, core::mem::transmute_copy(&wstreamnumber), windows_core::from_raw_borrowed(&pisample), core::mem::transmute_copy(&hnstimestampadjust)).into() } - unsafe extern "system" fn GetNextPacket(this: *mut core::ffi::c_void, pdwstatusflags: *mut u32, ppipacket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFMultiplexer_Impl, - { + unsafe extern "system" fn GetNextPacket(this: *mut core::ffi::c_void, pdwstatusflags: *mut u32, ppipacket: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMultiplexer_Impl::GetNextPacket(this, core::mem::transmute_copy(&pdwstatusflags), core::mem::transmute_copy(&ppipacket)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFMultiplexer_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMultiplexer_Impl::Flush(this).into() } - unsafe extern "system" fn End(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFMultiplexer_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMultiplexer_Impl::End(this, windows_core::from_raw_borrowed(&picontentinfo)).into() } - unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, wstreamnumber: u16, pmuxstats: *mut ASF_MUX_STATISTICS) -> windows_core::HRESULT - where - Identity: IMFASFMultiplexer_Impl, - { + unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, wstreamnumber: u16, pmuxstats: *mut ASF_MUX_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFMultiplexer_Impl::GetStatistics(this, core::mem::transmute_copy(&wstreamnumber)) { Ok(ok__) => { @@ -3407,10 +2492,7 @@ impl IMFASFMultiplexer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSyncTolerance(this: *mut core::ffi::c_void, mssynctolerance: u32) -> windows_core::HRESULT - where - Identity: IMFASFMultiplexer_Impl, - { + unsafe extern "system" fn SetSyncTolerance(this: *mut core::ffi::c_void, mssynctolerance: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMultiplexer_Impl::SetSyncTolerance(this, core::mem::transmute_copy(&mssynctolerance)).into() } @@ -3431,7 +2513,7 @@ impl IMFASFMultiplexer_Vtbl { iid == &::IID } } -pub trait IMFASFMutualExclusion_Impl: Sized { +pub trait IMFASFMutualExclusion_Impl: Sized + windows_core::IUnknownImpl { fn GetType(&self) -> windows_core::Result; fn SetType(&self, guidtype: *const windows_core::GUID) -> windows_core::Result<()>; fn GetRecordCount(&self) -> windows_core::Result; @@ -3444,14 +2526,8 @@ pub trait IMFASFMutualExclusion_Impl: Sized { } impl windows_core::RuntimeName for IMFASFMutualExclusion {} impl IMFASFMutualExclusion_Vtbl { - pub const fn new() -> IMFASFMutualExclusion_Vtbl - where - Identity: IMFASFMutualExclusion_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFASFMutualExclusion_Impl, - { + pub const fn new() -> IMFASFMutualExclusion_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFMutualExclusion_Impl::GetType(this) { Ok(ok__) => { @@ -3461,17 +2537,11 @@ impl IMFASFMutualExclusion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFASFMutualExclusion_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMutualExclusion_Impl::SetType(this, core::mem::transmute_copy(&guidtype)).into() } - unsafe extern "system" fn GetRecordCount(this: *mut core::ffi::c_void, pdwrecordcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFMutualExclusion_Impl, - { + unsafe extern "system" fn GetRecordCount(this: *mut core::ffi::c_void, pdwrecordcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFMutualExclusion_Impl::GetRecordCount(this) { Ok(ok__) => { @@ -3481,38 +2551,23 @@ impl IMFASFMutualExclusion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamsForRecord(this: *mut core::ffi::c_void, dwrecordnumber: u32, pwstreamnumarray: *mut u16, pcstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFMutualExclusion_Impl, - { + unsafe extern "system" fn GetStreamsForRecord(this: *mut core::ffi::c_void, dwrecordnumber: u32, pwstreamnumarray: *mut u16, pcstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMutualExclusion_Impl::GetStreamsForRecord(this, core::mem::transmute_copy(&dwrecordnumber), core::mem::transmute_copy(&pwstreamnumarray), core::mem::transmute_copy(&pcstreams)).into() } - unsafe extern "system" fn AddStreamForRecord(this: *mut core::ffi::c_void, dwrecordnumber: u32, wstreamnumber: u16) -> windows_core::HRESULT - where - Identity: IMFASFMutualExclusion_Impl, - { + unsafe extern "system" fn AddStreamForRecord(this: *mut core::ffi::c_void, dwrecordnumber: u32, wstreamnumber: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMutualExclusion_Impl::AddStreamForRecord(this, core::mem::transmute_copy(&dwrecordnumber), core::mem::transmute_copy(&wstreamnumber)).into() } - unsafe extern "system" fn RemoveStreamFromRecord(this: *mut core::ffi::c_void, dwrecordnumber: u32, wstreamnumber: u16) -> windows_core::HRESULT - where - Identity: IMFASFMutualExclusion_Impl, - { + unsafe extern "system" fn RemoveStreamFromRecord(this: *mut core::ffi::c_void, dwrecordnumber: u32, wstreamnumber: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMutualExclusion_Impl::RemoveStreamFromRecord(this, core::mem::transmute_copy(&dwrecordnumber), core::mem::transmute_copy(&wstreamnumber)).into() } - unsafe extern "system" fn RemoveRecord(this: *mut core::ffi::c_void, dwrecordnumber: u32) -> windows_core::HRESULT - where - Identity: IMFASFMutualExclusion_Impl, - { + unsafe extern "system" fn RemoveRecord(this: *mut core::ffi::c_void, dwrecordnumber: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFMutualExclusion_Impl::RemoveRecord(this, core::mem::transmute_copy(&dwrecordnumber)).into() } - unsafe extern "system" fn AddRecord(this: *mut core::ffi::c_void, pdwrecordnumber: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFMutualExclusion_Impl, - { + unsafe extern "system" fn AddRecord(this: *mut core::ffi::c_void, pdwrecordnumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFMutualExclusion_Impl::AddRecord(this) { Ok(ok__) => { @@ -3522,10 +2577,7 @@ impl IMFASFMutualExclusion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppimutex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFMutualExclusion_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppimutex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFMutualExclusion_Impl::Clone(this) { Ok(ok__) => { @@ -3572,14 +2624,8 @@ pub trait IMFASFProfile_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFASFProfile {} impl IMFASFProfile_Vtbl { - pub const fn new() -> IMFASFProfile_Vtbl - where - Identity: IMFASFProfile_Impl, - { - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + pub const fn new() -> IMFASFProfile_Vtbl { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFProfile_Impl::GetStreamCount(this) { Ok(ok__) => { @@ -3589,17 +2635,11 @@ impl IMFASFProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, dwstreamindex: u32, pwstreamnumber: *mut u16, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, dwstreamindex: u32, pwstreamnumber: *mut u16, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFProfile_Impl::GetStream(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&pwstreamnumber), core::mem::transmute_copy(&ppistream)).into() } - unsafe extern "system" fn GetStreamByNumber(this: *mut core::ffi::c_void, wstreamnumber: u16, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn GetStreamByNumber(this: *mut core::ffi::c_void, wstreamnumber: u16, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFProfile_Impl::GetStreamByNumber(this, core::mem::transmute_copy(&wstreamnumber)) { Ok(ok__) => { @@ -3609,24 +2649,15 @@ impl IMFASFProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStream(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn SetStream(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFProfile_Impl::SetStream(this, windows_core::from_raw_borrowed(&pistream)).into() } - unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, wstreamnumber: u16) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, wstreamnumber: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFProfile_Impl::RemoveStream(this, core::mem::transmute_copy(&wstreamnumber)).into() } - unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, pimediatype: *mut core::ffi::c_void, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, pimediatype: *mut core::ffi::c_void, ppistream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFProfile_Impl::CreateStream(this, windows_core::from_raw_borrowed(&pimediatype)) { Ok(ok__) => { @@ -3636,10 +2667,7 @@ impl IMFASFProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMutualExclusionCount(this: *mut core::ffi::c_void, pcmutexs: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn GetMutualExclusionCount(this: *mut core::ffi::c_void, pcmutexs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFProfile_Impl::GetMutualExclusionCount(this) { Ok(ok__) => { @@ -3649,10 +2677,7 @@ impl IMFASFProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMutualExclusion(this: *mut core::ffi::c_void, dwmutexindex: u32, ppimutex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn GetMutualExclusion(this: *mut core::ffi::c_void, dwmutexindex: u32, ppimutex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFProfile_Impl::GetMutualExclusion(this, core::mem::transmute_copy(&dwmutexindex)) { Ok(ok__) => { @@ -3662,24 +2687,15 @@ impl IMFASFProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddMutualExclusion(this: *mut core::ffi::c_void, pimutex: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn AddMutualExclusion(this: *mut core::ffi::c_void, pimutex: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFProfile_Impl::AddMutualExclusion(this, windows_core::from_raw_borrowed(&pimutex)).into() } - unsafe extern "system" fn RemoveMutualExclusion(this: *mut core::ffi::c_void, dwmutexindex: u32) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn RemoveMutualExclusion(this: *mut core::ffi::c_void, dwmutexindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFProfile_Impl::RemoveMutualExclusion(this, core::mem::transmute_copy(&dwmutexindex)).into() } - unsafe extern "system" fn CreateMutualExclusion(this: *mut core::ffi::c_void, ppimutex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn CreateMutualExclusion(this: *mut core::ffi::c_void, ppimutex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFProfile_Impl::CreateMutualExclusion(this) { Ok(ok__) => { @@ -3689,10 +2705,7 @@ impl IMFASFProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamPrioritization(this: *mut core::ffi::c_void, ppistreamprioritization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn GetStreamPrioritization(this: *mut core::ffi::c_void, ppistreamprioritization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFProfile_Impl::GetStreamPrioritization(this) { Ok(ok__) => { @@ -3702,24 +2715,15 @@ impl IMFASFProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStreamPrioritization(this: *mut core::ffi::c_void, pistreamprioritization: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn AddStreamPrioritization(this: *mut core::ffi::c_void, pistreamprioritization: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFProfile_Impl::AddStreamPrioritization(this, windows_core::from_raw_borrowed(&pistreamprioritization)).into() } - unsafe extern "system" fn RemoveStreamPrioritization(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn RemoveStreamPrioritization(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFProfile_Impl::RemoveStreamPrioritization(this).into() } - unsafe extern "system" fn CreateStreamPrioritization(this: *mut core::ffi::c_void, ppistreamprioritization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn CreateStreamPrioritization(this: *mut core::ffi::c_void, ppistreamprioritization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFProfile_Impl::CreateStreamPrioritization(this) { Ok(ok__) => { @@ -3729,10 +2733,7 @@ impl IMFASFProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppiprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFProfile_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppiprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFProfile_Impl::Clone(this) { Ok(ok__) => { @@ -3766,7 +2767,7 @@ impl IMFASFProfile_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFASFSplitter_Impl: Sized { +pub trait IMFASFSplitter_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, picontentinfo: Option<&IMFASFContentInfo>) -> windows_core::Result<()>; fn SetFlags(&self, dwflags: u32) -> windows_core::Result<()>; fn GetFlags(&self) -> windows_core::Result; @@ -3779,28 +2780,16 @@ pub trait IMFASFSplitter_Impl: Sized { } impl windows_core::RuntimeName for IMFASFSplitter {} impl IMFASFSplitter_Vtbl { - pub const fn new() -> IMFASFSplitter_Vtbl - where - Identity: IMFASFSplitter_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFSplitter_Impl, - { + pub const fn new() -> IMFASFSplitter_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picontentinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFSplitter_Impl::Initialize(this, windows_core::from_raw_borrowed(&picontentinfo)).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFASFSplitter_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFSplitter_Impl::SetFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFSplitter_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFSplitter_Impl::GetFlags(this) { Ok(ok__) => { @@ -3810,45 +2799,27 @@ impl IMFASFSplitter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectStreams(this: *mut core::ffi::c_void, pwstreamnumbers: *const u16, wnumstreams: u16) -> windows_core::HRESULT - where - Identity: IMFASFSplitter_Impl, - { + unsafe extern "system" fn SelectStreams(this: *mut core::ffi::c_void, pwstreamnumbers: *const u16, wnumstreams: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFSplitter_Impl::SelectStreams(this, core::mem::transmute_copy(&pwstreamnumbers), core::mem::transmute_copy(&wnumstreams)).into() } - unsafe extern "system" fn GetSelectedStreams(this: *mut core::ffi::c_void, pwstreamnumbers: *mut u16, pwnumstreams: *mut u16) -> windows_core::HRESULT - where - Identity: IMFASFSplitter_Impl, - { + unsafe extern "system" fn GetSelectedStreams(this: *mut core::ffi::c_void, pwstreamnumbers: *mut u16, pwnumstreams: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFSplitter_Impl::GetSelectedStreams(this, core::mem::transmute_copy(&pwstreamnumbers), core::mem::transmute_copy(&pwnumstreams)).into() } - unsafe extern "system" fn ParseData(this: *mut core::ffi::c_void, pibuffer: *mut core::ffi::c_void, cbbufferoffset: u32, cblength: u32) -> windows_core::HRESULT - where - Identity: IMFASFSplitter_Impl, - { + unsafe extern "system" fn ParseData(this: *mut core::ffi::c_void, pibuffer: *mut core::ffi::c_void, cbbufferoffset: u32, cblength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFSplitter_Impl::ParseData(this, windows_core::from_raw_borrowed(&pibuffer), core::mem::transmute_copy(&cbbufferoffset), core::mem::transmute_copy(&cblength)).into() } - unsafe extern "system" fn GetNextSample(this: *mut core::ffi::c_void, pdwstatusflags: *mut ASF_STATUSFLAGS, pwstreamnumber: *mut u16, ppisample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFSplitter_Impl, - { + unsafe extern "system" fn GetNextSample(this: *mut core::ffi::c_void, pdwstatusflags: *mut ASF_STATUSFLAGS, pwstreamnumber: *mut u16, ppisample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFSplitter_Impl::GetNextSample(this, core::mem::transmute_copy(&pdwstatusflags), core::mem::transmute_copy(&pwstreamnumber), core::mem::transmute_copy(&ppisample)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFSplitter_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFSplitter_Impl::Flush(this).into() } - unsafe extern "system" fn GetLastSendTime(this: *mut core::ffi::c_void, pdwlastsendtime: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFSplitter_Impl, - { + unsafe extern "system" fn GetLastSendTime(this: *mut core::ffi::c_void, pdwlastsendtime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFSplitter_Impl::GetLastSendTime(this) { Ok(ok__) => { @@ -3889,14 +2860,8 @@ pub trait IMFASFStreamConfig_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFASFStreamConfig {} impl IMFASFStreamConfig_Vtbl { - pub const fn new() -> IMFASFStreamConfig_Vtbl - where - Identity: IMFASFStreamConfig_Impl, - { - unsafe extern "system" fn GetStreamType(this: *mut core::ffi::c_void, pguidstreamtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFASFStreamConfig_Impl, - { + pub const fn new() -> IMFASFStreamConfig_Vtbl { + unsafe extern "system" fn GetStreamType(this: *mut core::ffi::c_void, pguidstreamtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamConfig_Impl::GetStreamType(this) { Ok(ok__) => { @@ -3906,24 +2871,15 @@ impl IMFASFStreamConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamNumber(this: *mut core::ffi::c_void) -> u16 - where - Identity: IMFASFStreamConfig_Impl, - { + unsafe extern "system" fn GetStreamNumber(this: *mut core::ffi::c_void) -> u16 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamConfig_Impl::GetStreamNumber(this) } - unsafe extern "system" fn SetStreamNumber(this: *mut core::ffi::c_void, wstreamnum: u16) -> windows_core::HRESULT - where - Identity: IMFASFStreamConfig_Impl, - { + unsafe extern "system" fn SetStreamNumber(this: *mut core::ffi::c_void, wstreamnum: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamConfig_Impl::SetStreamNumber(this, core::mem::transmute_copy(&wstreamnum)).into() } - unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, ppimediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFStreamConfig_Impl, - { + unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, ppimediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamConfig_Impl::GetMediaType(this) { Ok(ok__) => { @@ -3933,17 +2889,11 @@ impl IMFASFStreamConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, pimediatype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFStreamConfig_Impl, - { + unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, pimediatype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamConfig_Impl::SetMediaType(this, windows_core::from_raw_borrowed(&pimediatype)).into() } - unsafe extern "system" fn GetPayloadExtensionCount(this: *mut core::ffi::c_void, pcpayloadextensions: *mut u16) -> windows_core::HRESULT - where - Identity: IMFASFStreamConfig_Impl, - { + unsafe extern "system" fn GetPayloadExtensionCount(this: *mut core::ffi::c_void, pcpayloadextensions: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamConfig_Impl::GetPayloadExtensionCount(this) { Ok(ok__) => { @@ -3953,31 +2903,19 @@ impl IMFASFStreamConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPayloadExtension(this: *mut core::ffi::c_void, wpayloadextensionnumber: u16, pguidextensionsystemid: *mut windows_core::GUID, pcbextensiondatasize: *mut u16, pbextensionsysteminfo: *mut u8, pcbextensionsysteminfo: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamConfig_Impl, - { + unsafe extern "system" fn GetPayloadExtension(this: *mut core::ffi::c_void, wpayloadextensionnumber: u16, pguidextensionsystemid: *mut windows_core::GUID, pcbextensiondatasize: *mut u16, pbextensionsysteminfo: *mut u8, pcbextensionsysteminfo: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamConfig_Impl::GetPayloadExtension(this, core::mem::transmute_copy(&wpayloadextensionnumber), core::mem::transmute_copy(&pguidextensionsystemid), core::mem::transmute_copy(&pcbextensiondatasize), core::mem::transmute_copy(&pbextensionsysteminfo), core::mem::transmute_copy(&pcbextensionsysteminfo)).into() } - unsafe extern "system" fn AddPayloadExtension(this: *mut core::ffi::c_void, guidextensionsystemid: windows_core::GUID, cbextensiondatasize: u16, pbextensionsysteminfo: *const u8, cbextensionsysteminfo: u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamConfig_Impl, - { + unsafe extern "system" fn AddPayloadExtension(this: *mut core::ffi::c_void, guidextensionsystemid: windows_core::GUID, cbextensiondatasize: u16, pbextensionsysteminfo: *const u8, cbextensionsysteminfo: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamConfig_Impl::AddPayloadExtension(this, core::mem::transmute(&guidextensionsystemid), core::mem::transmute_copy(&cbextensiondatasize), core::mem::transmute_copy(&pbextensionsysteminfo), core::mem::transmute_copy(&cbextensionsysteminfo)).into() } - unsafe extern "system" fn RemoveAllPayloadExtensions(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFStreamConfig_Impl, - { + unsafe extern "system" fn RemoveAllPayloadExtensions(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamConfig_Impl::RemoveAllPayloadExtensions(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppistreamconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFStreamConfig_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppistreamconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamConfig_Impl::Clone(this) { Ok(ok__) => { @@ -4005,7 +2943,7 @@ impl IMFASFStreamConfig_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFASFStreamPrioritization_Impl: Sized { +pub trait IMFASFStreamPrioritization_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamCount(&self) -> windows_core::Result; fn GetStream(&self, dwstreamindex: u32, pwstreamnumber: *mut u16, pwstreamflags: *mut u16) -> windows_core::Result<()>; fn AddStream(&self, wstreamnumber: u16, wstreamflags: u16) -> windows_core::Result<()>; @@ -4014,14 +2952,8 @@ pub trait IMFASFStreamPrioritization_Impl: Sized { } impl windows_core::RuntimeName for IMFASFStreamPrioritization {} impl IMFASFStreamPrioritization_Vtbl { - pub const fn new() -> IMFASFStreamPrioritization_Vtbl - where - Identity: IMFASFStreamPrioritization_Impl, - { - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pdwstreamcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamPrioritization_Impl, - { + pub const fn new() -> IMFASFStreamPrioritization_Vtbl { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pdwstreamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamPrioritization_Impl::GetStreamCount(this) { Ok(ok__) => { @@ -4031,31 +2963,19 @@ impl IMFASFStreamPrioritization_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, dwstreamindex: u32, pwstreamnumber: *mut u16, pwstreamflags: *mut u16) -> windows_core::HRESULT - where - Identity: IMFASFStreamPrioritization_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, dwstreamindex: u32, pwstreamnumber: *mut u16, pwstreamflags: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamPrioritization_Impl::GetStream(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&pwstreamnumber), core::mem::transmute_copy(&pwstreamflags)).into() } - unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, wstreamnumber: u16, wstreamflags: u16) -> windows_core::HRESULT - where - Identity: IMFASFStreamPrioritization_Impl, - { + unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, wstreamnumber: u16, wstreamflags: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamPrioritization_Impl::AddStream(this, core::mem::transmute_copy(&wstreamnumber), core::mem::transmute_copy(&wstreamflags)).into() } - unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamPrioritization_Impl, - { + unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamPrioritization_Impl::RemoveStream(this, core::mem::transmute_copy(&dwstreamindex)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppistreamprioritization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFStreamPrioritization_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppistreamprioritization: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamPrioritization_Impl::Clone(this) { Ok(ok__) => { @@ -4078,7 +2998,7 @@ impl IMFASFStreamPrioritization_Vtbl { iid == &::IID } } -pub trait IMFASFStreamSelector_Impl: Sized { +pub trait IMFASFStreamSelector_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamCount(&self) -> windows_core::Result; fn GetOutputCount(&self) -> windows_core::Result; fn GetOutputStreamCount(&self, dwoutputnum: u32) -> windows_core::Result; @@ -4096,14 +3016,8 @@ pub trait IMFASFStreamSelector_Impl: Sized { } impl windows_core::RuntimeName for IMFASFStreamSelector {} impl IMFASFStreamSelector_Vtbl { - pub const fn new() -> IMFASFStreamSelector_Vtbl - where - Identity: IMFASFStreamSelector_Impl, - { - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + pub const fn new() -> IMFASFStreamSelector_Vtbl { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamSelector_Impl::GetStreamCount(this) { Ok(ok__) => { @@ -4113,10 +3027,7 @@ impl IMFASFStreamSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void, pcoutputs: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void, pcoutputs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamSelector_Impl::GetOutputCount(this) { Ok(ok__) => { @@ -4126,10 +3037,7 @@ impl IMFASFStreamSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputStreamCount(this: *mut core::ffi::c_void, dwoutputnum: u32, pcstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn GetOutputStreamCount(this: *mut core::ffi::c_void, dwoutputnum: u32, pcstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamSelector_Impl::GetOutputStreamCount(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -4139,10 +3047,7 @@ impl IMFASFStreamSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputStreamNumbers(this: *mut core::ffi::c_void, dwoutputnum: u32, rgwstreamnumbers: *mut u16) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn GetOutputStreamNumbers(this: *mut core::ffi::c_void, dwoutputnum: u32, rgwstreamnumbers: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamSelector_Impl::GetOutputStreamNumbers(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -4152,10 +3057,7 @@ impl IMFASFStreamSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputFromStream(this: *mut core::ffi::c_void, wstreamnum: u16, pdwoutput: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn GetOutputFromStream(this: *mut core::ffi::c_void, wstreamnum: u16, pdwoutput: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamSelector_Impl::GetOutputFromStream(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -4165,10 +3067,7 @@ impl IMFASFStreamSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputOverride(this: *mut core::ffi::c_void, dwoutputnum: u32, pselection: *mut ASF_SELECTION_STATUS) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn GetOutputOverride(this: *mut core::ffi::c_void, dwoutputnum: u32, pselection: *mut ASF_SELECTION_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamSelector_Impl::GetOutputOverride(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -4178,17 +3077,11 @@ impl IMFASFStreamSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputOverride(this: *mut core::ffi::c_void, dwoutputnum: u32, selection: ASF_SELECTION_STATUS) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn SetOutputOverride(this: *mut core::ffi::c_void, dwoutputnum: u32, selection: ASF_SELECTION_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamSelector_Impl::SetOutputOverride(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&selection)).into() } - unsafe extern "system" fn GetOutputMutexCount(this: *mut core::ffi::c_void, dwoutputnum: u32, pcmutexes: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn GetOutputMutexCount(this: *mut core::ffi::c_void, dwoutputnum: u32, pcmutexes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamSelector_Impl::GetOutputMutexCount(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -4198,10 +3091,7 @@ impl IMFASFStreamSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputMutex(this: *mut core::ffi::c_void, dwoutputnum: u32, dwmutexnum: u32, ppmutex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn GetOutputMutex(this: *mut core::ffi::c_void, dwoutputnum: u32, dwmutexnum: u32, ppmutex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamSelector_Impl::GetOutputMutex(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&dwmutexnum)) { Ok(ok__) => { @@ -4211,17 +3101,11 @@ impl IMFASFStreamSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputMutexSelection(this: *mut core::ffi::c_void, dwoutputnum: u32, dwmutexnum: u32, wselectedrecord: u16) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn SetOutputMutexSelection(this: *mut core::ffi::c_void, dwoutputnum: u32, dwmutexnum: u32, wselectedrecord: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamSelector_Impl::SetOutputMutexSelection(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&dwmutexnum), core::mem::transmute_copy(&wselectedrecord)).into() } - unsafe extern "system" fn GetBandwidthStepCount(this: *mut core::ffi::c_void, pcstepcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn GetBandwidthStepCount(this: *mut core::ffi::c_void, pcstepcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamSelector_Impl::GetBandwidthStepCount(this) { Ok(ok__) => { @@ -4231,17 +3115,11 @@ impl IMFASFStreamSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBandwidthStep(this: *mut core::ffi::c_void, dwstepnum: u32, pdwbitrate: *mut u32, rgwstreamnumbers: *mut u16, rgselections: *mut ASF_SELECTION_STATUS) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn GetBandwidthStep(this: *mut core::ffi::c_void, dwstepnum: u32, pdwbitrate: *mut u32, rgwstreamnumbers: *mut u16, rgselections: *mut ASF_SELECTION_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamSelector_Impl::GetBandwidthStep(this, core::mem::transmute_copy(&dwstepnum), core::mem::transmute_copy(&pdwbitrate), core::mem::transmute_copy(&rgwstreamnumbers), core::mem::transmute_copy(&rgselections)).into() } - unsafe extern "system" fn BitrateToStepNumber(this: *mut core::ffi::c_void, dwbitrate: u32, pdwstepnum: *mut u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn BitrateToStepNumber(this: *mut core::ffi::c_void, dwbitrate: u32, pdwstepnum: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFASFStreamSelector_Impl::BitrateToStepNumber(this, core::mem::transmute_copy(&dwbitrate)) { Ok(ok__) => { @@ -4251,10 +3129,7 @@ impl IMFASFStreamSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamSelectorFlags(this: *mut core::ffi::c_void, dwstreamselectorflags: u32) -> windows_core::HRESULT - where - Identity: IMFASFStreamSelector_Impl, - { + unsafe extern "system" fn SetStreamSelectorFlags(this: *mut core::ffi::c_void, dwstreamselectorflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFStreamSelector_Impl::SetStreamSelectorFlags(this, core::mem::transmute_copy(&dwstreamselectorflags)).into() } @@ -4287,28 +3162,16 @@ pub trait IMFActivate_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFActivate {} impl IMFActivate_Vtbl { - pub const fn new() -> IMFActivate_Vtbl - where - Identity: IMFActivate_Impl, - { - unsafe extern "system" fn ActivateObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFActivate_Impl, - { + pub const fn new() -> IMFActivate_Vtbl { + unsafe extern "system" fn ActivateObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFActivate_Impl::ActivateObject(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn ShutdownObject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFActivate_Impl, - { + unsafe extern "system" fn ShutdownObject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFActivate_Impl::ShutdownObject(this).into() } - unsafe extern "system" fn DetachObject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFActivate_Impl, - { + unsafe extern "system" fn DetachObject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFActivate_Impl::DetachObject(this).into() } @@ -4323,27 +3186,18 @@ impl IMFActivate_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFAsyncCallback_Impl: Sized { +pub trait IMFAsyncCallback_Impl: Sized + windows_core::IUnknownImpl { fn GetParameters(&self, pdwflags: *mut u32, pdwqueue: *mut u32) -> windows_core::Result<()>; fn Invoke(&self, pasyncresult: Option<&IMFAsyncResult>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFAsyncCallback {} impl IMFAsyncCallback_Vtbl { - pub const fn new() -> IMFAsyncCallback_Vtbl - where - Identity: IMFAsyncCallback_Impl, - { - unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, pdwflags: *mut u32, pdwqueue: *mut u32) -> windows_core::HRESULT - where - Identity: IMFAsyncCallback_Impl, - { + pub const fn new() -> IMFAsyncCallback_Vtbl { + unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, pdwflags: *mut u32, pdwqueue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAsyncCallback_Impl::GetParameters(this, core::mem::transmute_copy(&pdwflags), core::mem::transmute_copy(&pdwqueue)).into() } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFAsyncCallback_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAsyncCallback_Impl::Invoke(this, windows_core::from_raw_borrowed(&pasyncresult)).into() } @@ -4363,21 +3217,12 @@ pub trait IMFAsyncCallbackLogging_Impl: Sized + IMFAsyncCallback_Impl { } impl windows_core::RuntimeName for IMFAsyncCallbackLogging {} impl IMFAsyncCallbackLogging_Vtbl { - pub const fn new() -> IMFAsyncCallbackLogging_Vtbl - where - Identity: IMFAsyncCallbackLogging_Impl, - { - unsafe extern "system" fn GetObjectPointer(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void - where - Identity: IMFAsyncCallbackLogging_Impl, - { + pub const fn new() -> IMFAsyncCallbackLogging_Vtbl { + unsafe extern "system" fn GetObjectPointer(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAsyncCallbackLogging_Impl::GetObjectPointer(this) } - unsafe extern "system" fn GetObjectTag(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFAsyncCallbackLogging_Impl, - { + unsafe extern "system" fn GetObjectTag(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAsyncCallbackLogging_Impl::GetObjectTag(this) } @@ -4391,7 +3236,7 @@ impl IMFAsyncCallbackLogging_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFAsyncResult_Impl: Sized { +pub trait IMFAsyncResult_Impl: Sized + windows_core::IUnknownImpl { fn GetState(&self) -> windows_core::Result; fn GetStatus(&self) -> windows_core::Result<()>; fn SetStatus(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; @@ -4400,14 +3245,8 @@ pub trait IMFAsyncResult_Impl: Sized { } impl windows_core::RuntimeName for IMFAsyncResult {} impl IMFAsyncResult_Vtbl { - pub const fn new() -> IMFAsyncResult_Vtbl - where - Identity: IMFAsyncResult_Impl, - { - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, ppunkstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFAsyncResult_Impl, - { + pub const fn new() -> IMFAsyncResult_Vtbl { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, ppunkstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAsyncResult_Impl::GetState(this) { Ok(ok__) => { @@ -4417,24 +3256,15 @@ impl IMFAsyncResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFAsyncResult_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAsyncResult_Impl::GetStatus(this).into() } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMFAsyncResult_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAsyncResult_Impl::SetStatus(this, core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFAsyncResult_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAsyncResult_Impl::GetObject(this) { Ok(ok__) => { @@ -4444,10 +3274,7 @@ impl IMFAsyncResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStateNoAddRef(this: *mut core::ffi::c_void) -> Option - where - Identity: IMFAsyncResult_Impl, - { + unsafe extern "system" fn GetStateNoAddRef(this: *mut core::ffi::c_void) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAsyncResult_Impl::GetStateNoAddRef(this) } @@ -4464,7 +3291,7 @@ impl IMFAsyncResult_Vtbl { iid == &::IID } } -pub trait IMFAttributes_Impl: Sized { +pub trait IMFAttributes_Impl: Sized + windows_core::IUnknownImpl { fn GetItem(&self, guidkey: *const windows_core::GUID, pvalue: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; fn GetItemType(&self, guidkey: *const windows_core::GUID) -> windows_core::Result; fn CompareItem(&self, guidkey: *const windows_core::GUID, value: *const windows_core::PROPVARIANT) -> windows_core::Result; @@ -4498,21 +3325,12 @@ pub trait IMFAttributes_Impl: Sized { } impl windows_core::RuntimeName for IMFAttributes {} impl IMFAttributes_Vtbl { - pub const fn new() -> IMFAttributes_Vtbl - where - Identity: IMFAttributes_Impl, - { - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + pub const fn new() -> IMFAttributes_Vtbl { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::GetItem(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetItemType(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, ptype: *mut MF_ATTRIBUTE_TYPE) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetItemType(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, ptype: *mut MF_ATTRIBUTE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::GetItemType(this, core::mem::transmute_copy(&guidkey)) { Ok(ok__) => { @@ -4522,10 +3340,7 @@ impl IMFAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareItem(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, value: *const core::mem::MaybeUninit, pbresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn CompareItem(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, value: *const core::mem::MaybeUninit, pbresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::CompareItem(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&value)) { Ok(ok__) => { @@ -4535,10 +3350,7 @@ impl IMFAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, ptheirs: *mut core::ffi::c_void, matchtype: MF_ATTRIBUTES_MATCH_TYPE, pbresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, ptheirs: *mut core::ffi::c_void, matchtype: MF_ATTRIBUTES_MATCH_TYPE, pbresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::Compare(this, windows_core::from_raw_borrowed(&ptheirs), core::mem::transmute_copy(&matchtype)) { Ok(ok__) => { @@ -4548,10 +3360,7 @@ impl IMFAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUINT32(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, punvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetUINT32(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, punvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::GetUINT32(this, core::mem::transmute_copy(&guidkey)) { Ok(ok__) => { @@ -4561,10 +3370,7 @@ impl IMFAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUINT64(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, punvalue: *mut u64) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetUINT64(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, punvalue: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::GetUINT64(this, core::mem::transmute_copy(&guidkey)) { Ok(ok__) => { @@ -4574,10 +3380,7 @@ impl IMFAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDouble(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pfvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetDouble(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pfvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::GetDouble(this, core::mem::transmute_copy(&guidkey)) { Ok(ok__) => { @@ -4587,10 +3390,7 @@ impl IMFAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pguidvalue: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pguidvalue: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::GetGUID(this, core::mem::transmute_copy(&guidkey)) { Ok(ok__) => { @@ -4600,10 +3400,7 @@ impl IMFAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pcchlength: *mut u32) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pcchlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::GetStringLength(this, core::mem::transmute_copy(&guidkey)) { Ok(ok__) => { @@ -4613,24 +3410,15 @@ impl IMFAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pwszvalue: windows_core::PWSTR, cchbufsize: u32, pcchlength: *mut u32) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pwszvalue: windows_core::PWSTR, cchbufsize: u32, pcchlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::GetString(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&pwszvalue), core::mem::transmute_copy(&cchbufsize), core::mem::transmute_copy(&pcchlength)).into() } - unsafe extern "system" fn GetAllocatedString(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, ppwszvalue: *mut windows_core::PWSTR, pcchlength: *mut u32) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetAllocatedString(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, ppwszvalue: *mut windows_core::PWSTR, pcchlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::GetAllocatedString(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&ppwszvalue), core::mem::transmute_copy(&pcchlength)).into() } - unsafe extern "system" fn GetBlobSize(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pcbblobsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetBlobSize(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pcbblobsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::GetBlobSize(this, core::mem::transmute_copy(&guidkey)) { Ok(ok__) => { @@ -4640,115 +3428,67 @@ impl IMFAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBlob(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pbuf: *mut u8, cbbufsize: u32, pcbblobsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetBlob(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pbuf: *mut u8, cbbufsize: u32, pcbblobsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::GetBlob(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&pbuf), core::mem::transmute_copy(&cbbufsize), core::mem::transmute_copy(&pcbblobsize)).into() } - unsafe extern "system" fn GetAllocatedBlob(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, ppbuf: *mut *mut u8, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetAllocatedBlob(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, ppbuf: *mut *mut u8, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::GetAllocatedBlob(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&ppbuf), core::mem::transmute_copy(&pcbsize)).into() } - unsafe extern "system" fn GetUnknown(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetUnknown(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::GetUnknown(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn SetItem(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn SetItem(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::SetItem(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::DeleteItem(this, core::mem::transmute_copy(&guidkey)).into() } - unsafe extern "system" fn DeleteAllItems(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn DeleteAllItems(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::DeleteAllItems(this).into() } - unsafe extern "system" fn SetUINT32(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, unvalue: u32) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn SetUINT32(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, unvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::SetUINT32(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&unvalue)).into() } - unsafe extern "system" fn SetUINT64(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, unvalue: u64) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn SetUINT64(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, unvalue: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::SetUINT64(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&unvalue)).into() } - unsafe extern "system" fn SetDouble(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, fvalue: f64) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn SetDouble(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, fvalue: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::SetDouble(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn SetGUID(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, guidvalue: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn SetGUID(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, guidvalue: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::SetGUID(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&guidvalue)).into() } - unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, wszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, wszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::SetString(this, core::mem::transmute_copy(&guidkey), core::mem::transmute(&wszvalue)).into() } - unsafe extern "system" fn SetBlob(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pbuf: *const u8, cbbufsize: u32) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn SetBlob(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pbuf: *const u8, cbbufsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::SetBlob(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&pbuf), core::mem::transmute_copy(&cbbufsize)).into() } - unsafe extern "system" fn SetUnknown(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn SetUnknown(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::SetUnknown(this, core::mem::transmute_copy(&guidkey), windows_core::from_raw_borrowed(&punknown)).into() } - unsafe extern "system" fn LockStore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn LockStore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::LockStore(this).into() } - unsafe extern "system" fn UnlockStore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn UnlockStore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::UnlockStore(this).into() } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcitems: *mut u32) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcitems: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::GetCount(this) { Ok(ok__) => { @@ -4758,17 +3498,11 @@ impl IMFAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemByIndex(this: *mut core::ffi::c_void, unindex: u32, pguidkey: *mut windows_core::GUID, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn GetItemByIndex(this: *mut core::ffi::c_void, unindex: u32, pguidkey: *mut windows_core::GUID, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::GetItemByIndex(this, core::mem::transmute_copy(&unindex), core::mem::transmute_copy(&pguidkey), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn CopyAllItems(this: *mut core::ffi::c_void, pdest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFAttributes_Impl, - { + unsafe extern "system" fn CopyAllItems(this: *mut core::ffi::c_void, pdest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAttributes_Impl::CopyAllItems(this, windows_core::from_raw_borrowed(&pdest)).into() } @@ -4818,14 +3552,8 @@ pub trait IMFAudioMediaType_Impl: Sized + IMFMediaType_Impl { impl windows_core::RuntimeName for IMFAudioMediaType {} #[cfg(feature = "Win32_Media_Audio")] impl IMFAudioMediaType_Vtbl { - pub const fn new() -> IMFAudioMediaType_Vtbl - where - Identity: IMFAudioMediaType_Impl, - { - unsafe extern "system" fn GetAudioFormat(this: *mut core::ffi::c_void) -> *mut super::Audio::WAVEFORMATEX - where - Identity: IMFAudioMediaType_Impl, - { + pub const fn new() -> IMFAudioMediaType_Vtbl { + unsafe extern "system" fn GetAudioFormat(this: *mut core::ffi::c_void) -> *mut super::Audio::WAVEFORMATEX { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAudioMediaType_Impl::GetAudioFormat(this) } @@ -4835,7 +3563,7 @@ impl IMFAudioMediaType_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMFAudioPolicy_Impl: Sized { +pub trait IMFAudioPolicy_Impl: Sized + windows_core::IUnknownImpl { fn SetGroupingParam(&self, rguidclass: *const windows_core::GUID) -> windows_core::Result<()>; fn GetGroupingParam(&self) -> windows_core::Result; fn SetDisplayName(&self, pszname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -4845,21 +3573,12 @@ pub trait IMFAudioPolicy_Impl: Sized { } impl windows_core::RuntimeName for IMFAudioPolicy {} impl IMFAudioPolicy_Vtbl { - pub const fn new() -> IMFAudioPolicy_Vtbl - where - Identity: IMFAudioPolicy_Impl, - { - unsafe extern "system" fn SetGroupingParam(this: *mut core::ffi::c_void, rguidclass: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFAudioPolicy_Impl, - { + pub const fn new() -> IMFAudioPolicy_Vtbl { + unsafe extern "system" fn SetGroupingParam(this: *mut core::ffi::c_void, rguidclass: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAudioPolicy_Impl::SetGroupingParam(this, core::mem::transmute_copy(&rguidclass)).into() } - unsafe extern "system" fn GetGroupingParam(this: *mut core::ffi::c_void, pguidclass: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFAudioPolicy_Impl, - { + unsafe extern "system" fn GetGroupingParam(this: *mut core::ffi::c_void, pguidclass: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAudioPolicy_Impl::GetGroupingParam(this) { Ok(ok__) => { @@ -4869,17 +3588,11 @@ impl IMFAudioPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFAudioPolicy_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAudioPolicy_Impl::SetDisplayName(this, core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFAudioPolicy_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAudioPolicy_Impl::GetDisplayName(this) { Ok(ok__) => { @@ -4889,17 +3602,11 @@ impl IMFAudioPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIconPath(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFAudioPolicy_Impl, - { + unsafe extern "system" fn SetIconPath(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAudioPolicy_Impl::SetIconPath(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn GetIconPath(this: *mut core::ffi::c_void, pszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFAudioPolicy_Impl, - { + unsafe extern "system" fn GetIconPath(this: *mut core::ffi::c_void, pszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAudioPolicy_Impl::GetIconPath(this) { Ok(ok__) => { @@ -4923,7 +3630,7 @@ impl IMFAudioPolicy_Vtbl { iid == &::IID } } -pub trait IMFAudioStreamVolume_Impl: Sized { +pub trait IMFAudioStreamVolume_Impl: Sized + windows_core::IUnknownImpl { fn GetChannelCount(&self) -> windows_core::Result; fn SetChannelVolume(&self, dwindex: u32, flevel: f32) -> windows_core::Result<()>; fn GetChannelVolume(&self, dwindex: u32) -> windows_core::Result; @@ -4932,14 +3639,8 @@ pub trait IMFAudioStreamVolume_Impl: Sized { } impl windows_core::RuntimeName for IMFAudioStreamVolume {} impl IMFAudioStreamVolume_Vtbl { - pub const fn new() -> IMFAudioStreamVolume_Vtbl - where - Identity: IMFAudioStreamVolume_Impl, - { - unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFAudioStreamVolume_Impl, - { + pub const fn new() -> IMFAudioStreamVolume_Vtbl { + unsafe extern "system" fn GetChannelCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAudioStreamVolume_Impl::GetChannelCount(this) { Ok(ok__) => { @@ -4949,17 +3650,11 @@ impl IMFAudioStreamVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, flevel: f32) -> windows_core::HRESULT - where - Identity: IMFAudioStreamVolume_Impl, - { + unsafe extern "system" fn SetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, flevel: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAudioStreamVolume_Impl::SetChannelVolume(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&flevel)).into() } - unsafe extern "system" fn GetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, pflevel: *mut f32) -> windows_core::HRESULT - where - Identity: IMFAudioStreamVolume_Impl, - { + unsafe extern "system" fn GetChannelVolume(this: *mut core::ffi::c_void, dwindex: u32, pflevel: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAudioStreamVolume_Impl::GetChannelVolume(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -4969,17 +3664,11 @@ impl IMFAudioStreamVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *const f32) -> windows_core::HRESULT - where - Identity: IMFAudioStreamVolume_Impl, - { + unsafe extern "system" fn SetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *const f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAudioStreamVolume_Impl::SetAllVolumes(this, core::mem::transmute_copy(&dwcount), core::mem::transmute_copy(&pfvolumes)).into() } - unsafe extern "system" fn GetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *mut f32) -> windows_core::HRESULT - where - Identity: IMFAudioStreamVolume_Impl, - { + unsafe extern "system" fn GetAllVolumes(this: *mut core::ffi::c_void, dwcount: u32, pfvolumes: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFAudioStreamVolume_Impl::GetAllVolumes(this, core::mem::transmute_copy(&dwcount), core::mem::transmute_copy(&pfvolumes)).into() } @@ -4996,27 +3685,18 @@ impl IMFAudioStreamVolume_Vtbl { iid == &::IID } } -pub trait IMFBufferListNotify_Impl: Sized { +pub trait IMFBufferListNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnAddSourceBuffer(&self); fn OnRemoveSourceBuffer(&self); } impl windows_core::RuntimeName for IMFBufferListNotify {} impl IMFBufferListNotify_Vtbl { - pub const fn new() -> IMFBufferListNotify_Vtbl - where - Identity: IMFBufferListNotify_Impl, - { - unsafe extern "system" fn OnAddSourceBuffer(this: *mut core::ffi::c_void) - where - Identity: IMFBufferListNotify_Impl, - { + pub const fn new() -> IMFBufferListNotify_Vtbl { + unsafe extern "system" fn OnAddSourceBuffer(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFBufferListNotify_Impl::OnAddSourceBuffer(this) } - unsafe extern "system" fn OnRemoveSourceBuffer(this: *mut core::ffi::c_void) - where - Identity: IMFBufferListNotify_Impl, - { + unsafe extern "system" fn OnRemoveSourceBuffer(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFBufferListNotify_Impl::OnRemoveSourceBuffer(this) } @@ -5030,7 +3710,7 @@ impl IMFBufferListNotify_Vtbl { iid == &::IID } } -pub trait IMFByteStream_Impl: Sized { +pub trait IMFByteStream_Impl: Sized + windows_core::IUnknownImpl { fn GetCapabilities(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn SetLength(&self, qwlength: u64) -> windows_core::Result<()>; @@ -5049,14 +3729,8 @@ pub trait IMFByteStream_Impl: Sized { } impl windows_core::RuntimeName for IMFByteStream {} impl IMFByteStream_Vtbl { - pub const fn new() -> IMFByteStream_Vtbl - where - Identity: IMFByteStream_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + pub const fn new() -> IMFByteStream_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStream_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -5066,10 +3740,7 @@ impl IMFByteStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pqwlength: *mut u64) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pqwlength: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStream_Impl::GetLength(this) { Ok(ok__) => { @@ -5079,17 +3750,11 @@ impl IMFByteStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, qwlength: u64) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, qwlength: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStream_Impl::SetLength(this, core::mem::transmute_copy(&qwlength)).into() } - unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, pqwposition: *mut u64) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, pqwposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStream_Impl::GetCurrentPosition(this) { Ok(ok__) => { @@ -5099,17 +3764,11 @@ impl IMFByteStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, qwposition: u64) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, qwposition: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStream_Impl::SetCurrentPosition(this, core::mem::transmute_copy(&qwposition)).into() } - unsafe extern "system" fn IsEndOfStream(this: *mut core::ffi::c_void, pfendofstream: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn IsEndOfStream(this: *mut core::ffi::c_void, pfendofstream: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStream_Impl::IsEndOfStream(this) { Ok(ok__) => { @@ -5119,24 +3778,15 @@ impl IMFByteStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pb: *mut u8, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pb: *mut u8, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStream_Impl::Read(this, core::mem::transmute_copy(&pb), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbread)).into() } - unsafe extern "system" fn BeginRead(this: *mut core::ffi::c_void, pb: *mut u8, cb: u32, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn BeginRead(this: *mut core::ffi::c_void, pb: *mut u8, cb: u32, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStream_Impl::BeginRead(this, core::mem::transmute_copy(&pb), core::mem::transmute_copy(&cb), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndRead(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pcbread: *mut u32) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn EndRead(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pcbread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStream_Impl::EndRead(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -5146,10 +3796,7 @@ impl IMFByteStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pb: *const u8, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pb: *const u8, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStream_Impl::Write(this, core::mem::transmute_copy(&pb), core::mem::transmute_copy(&cb)) { Ok(ok__) => { @@ -5159,17 +3806,11 @@ impl IMFByteStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginWrite(this: *mut core::ffi::c_void, pb: *const u8, cb: u32, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn BeginWrite(this: *mut core::ffi::c_void, pb: *const u8, cb: u32, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStream_Impl::BeginWrite(this, core::mem::transmute_copy(&pb), core::mem::transmute_copy(&cb), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndWrite(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pcbwritten: *mut u32) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn EndWrite(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pcbwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStream_Impl::EndWrite(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -5179,10 +3820,7 @@ impl IMFByteStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, seekorigin: MFBYTESTREAM_SEEK_ORIGIN, llseekoffset: i64, dwseekflags: u32, pqwcurrentposition: *mut u64) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, seekorigin: MFBYTESTREAM_SEEK_ORIGIN, llseekoffset: i64, dwseekflags: u32, pqwcurrentposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStream_Impl::Seek(this, core::mem::transmute_copy(&seekorigin), core::mem::transmute_copy(&llseekoffset), core::mem::transmute_copy(&dwseekflags)) { Ok(ok__) => { @@ -5192,17 +3830,11 @@ impl IMFByteStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStream_Impl::Flush(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFByteStream_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStream_Impl::Close(this).into() } @@ -5229,35 +3861,23 @@ impl IMFByteStream_Vtbl { iid == &::IID } } -pub trait IMFByteStreamBuffering_Impl: Sized { +pub trait IMFByteStreamBuffering_Impl: Sized + windows_core::IUnknownImpl { fn SetBufferingParams(&self, pparams: *const MFBYTESTREAM_BUFFERING_PARAMS) -> windows_core::Result<()>; fn EnableBuffering(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn StopBuffering(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFByteStreamBuffering {} impl IMFByteStreamBuffering_Vtbl { - pub const fn new() -> IMFByteStreamBuffering_Vtbl - where - Identity: IMFByteStreamBuffering_Impl, - { - unsafe extern "system" fn SetBufferingParams(this: *mut core::ffi::c_void, pparams: *const MFBYTESTREAM_BUFFERING_PARAMS) -> windows_core::HRESULT - where - Identity: IMFByteStreamBuffering_Impl, - { + pub const fn new() -> IMFByteStreamBuffering_Vtbl { + unsafe extern "system" fn SetBufferingParams(this: *mut core::ffi::c_void, pparams: *const MFBYTESTREAM_BUFFERING_PARAMS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamBuffering_Impl::SetBufferingParams(this, core::mem::transmute_copy(&pparams)).into() } - unsafe extern "system" fn EnableBuffering(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFByteStreamBuffering_Impl, - { + unsafe extern "system" fn EnableBuffering(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamBuffering_Impl::EnableBuffering(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn StopBuffering(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFByteStreamBuffering_Impl, - { + unsafe extern "system" fn StopBuffering(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamBuffering_Impl::StopBuffering(this).into() } @@ -5272,19 +3892,13 @@ impl IMFByteStreamBuffering_Vtbl { iid == &::IID } } -pub trait IMFByteStreamCacheControl_Impl: Sized { +pub trait IMFByteStreamCacheControl_Impl: Sized + windows_core::IUnknownImpl { fn StopBackgroundTransfer(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFByteStreamCacheControl {} impl IMFByteStreamCacheControl_Vtbl { - pub const fn new() -> IMFByteStreamCacheControl_Vtbl - where - Identity: IMFByteStreamCacheControl_Impl, - { - unsafe extern "system" fn StopBackgroundTransfer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFByteStreamCacheControl_Impl, - { + pub const fn new() -> IMFByteStreamCacheControl_Vtbl { + unsafe extern "system" fn StopBackgroundTransfer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamCacheControl_Impl::StopBackgroundTransfer(this).into() } @@ -5301,28 +3915,16 @@ pub trait IMFByteStreamCacheControl2_Impl: Sized + IMFByteStreamCacheControl_Imp } impl windows_core::RuntimeName for IMFByteStreamCacheControl2 {} impl IMFByteStreamCacheControl2_Vtbl { - pub const fn new() -> IMFByteStreamCacheControl2_Vtbl - where - Identity: IMFByteStreamCacheControl2_Impl, - { - unsafe extern "system" fn GetByteRanges(this: *mut core::ffi::c_void, pcranges: *mut u32, ppranges: *mut *mut MF_BYTE_STREAM_CACHE_RANGE) -> windows_core::HRESULT - where - Identity: IMFByteStreamCacheControl2_Impl, - { + pub const fn new() -> IMFByteStreamCacheControl2_Vtbl { + unsafe extern "system" fn GetByteRanges(this: *mut core::ffi::c_void, pcranges: *mut u32, ppranges: *mut *mut MF_BYTE_STREAM_CACHE_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamCacheControl2_Impl::GetByteRanges(this, core::mem::transmute_copy(&pcranges), core::mem::transmute_copy(&ppranges)).into() } - unsafe extern "system" fn SetCacheLimit(this: *mut core::ffi::c_void, qwbytes: u64) -> windows_core::HRESULT - where - Identity: IMFByteStreamCacheControl2_Impl, - { + unsafe extern "system" fn SetCacheLimit(this: *mut core::ffi::c_void, qwbytes: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamCacheControl2_Impl::SetCacheLimit(this, core::mem::transmute_copy(&qwbytes)).into() } - unsafe extern "system" fn IsBackgroundTransferActive(this: *mut core::ffi::c_void, pfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFByteStreamCacheControl2_Impl, - { + unsafe extern "system" fn IsBackgroundTransferActive(this: *mut core::ffi::c_void, pfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStreamCacheControl2_Impl::IsBackgroundTransferActive(this) { Ok(ok__) => { @@ -5344,7 +3946,7 @@ impl IMFByteStreamCacheControl2_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMFByteStreamHandler_Impl: Sized { +pub trait IMFByteStreamHandler_Impl: Sized + windows_core::IUnknownImpl { fn BeginCreateObject(&self, pbytestream: Option<&IMFByteStream>, pwszurl: &windows_core::PCWSTR, dwflags: u32, pprops: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>, ppiunknowncancelcookie: *mut Option, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndCreateObject(&self, presult: Option<&IMFAsyncResult>, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()>; fn CancelObjectCreation(&self, piunknowncancelcookie: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -5354,35 +3956,20 @@ pub trait IMFByteStreamHandler_Impl: Sized { impl windows_core::RuntimeName for IMFByteStreamHandler {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFByteStreamHandler_Vtbl { - pub const fn new() -> IMFByteStreamHandler_Vtbl - where - Identity: IMFByteStreamHandler_Impl, - { - unsafe extern "system" fn BeginCreateObject(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, ppiunknowncancelcookie: *mut *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFByteStreamHandler_Impl, - { + pub const fn new() -> IMFByteStreamHandler_Vtbl { + unsafe extern "system" fn BeginCreateObject(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, ppiunknowncancelcookie: *mut *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamHandler_Impl::BeginCreateObject(this, windows_core::from_raw_borrowed(&pbytestream), core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pprops), core::mem::transmute_copy(&ppiunknowncancelcookie), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndCreateObject(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFByteStreamHandler_Impl, - { + unsafe extern "system" fn EndCreateObject(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamHandler_Impl::EndCreateObject(this, windows_core::from_raw_borrowed(&presult), core::mem::transmute_copy(&pobjecttype), core::mem::transmute_copy(&ppobject)).into() } - unsafe extern "system" fn CancelObjectCreation(this: *mut core::ffi::c_void, piunknowncancelcookie: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFByteStreamHandler_Impl, - { + unsafe extern "system" fn CancelObjectCreation(this: *mut core::ffi::c_void, piunknowncancelcookie: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamHandler_Impl::CancelObjectCreation(this, windows_core::from_raw_borrowed(&piunknowncancelcookie)).into() } - unsafe extern "system" fn GetMaxNumberOfBytesRequiredForResolution(this: *mut core::ffi::c_void, pqwbytes: *mut u64) -> windows_core::HRESULT - where - Identity: IMFByteStreamHandler_Impl, - { + unsafe extern "system" fn GetMaxNumberOfBytesRequiredForResolution(this: *mut core::ffi::c_void, pqwbytes: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStreamHandler_Impl::GetMaxNumberOfBytesRequiredForResolution(this) { Ok(ok__) => { @@ -5404,19 +3991,13 @@ impl IMFByteStreamHandler_Vtbl { iid == &::IID } } -pub trait IMFByteStreamProxyClassFactory_Impl: Sized { +pub trait IMFByteStreamProxyClassFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateByteStreamProxy(&self, pbytestream: Option<&IMFByteStream>, pattributes: Option<&IMFAttributes>, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFByteStreamProxyClassFactory {} impl IMFByteStreamProxyClassFactory_Vtbl { - pub const fn new() -> IMFByteStreamProxyClassFactory_Vtbl - where - Identity: IMFByteStreamProxyClassFactory_Impl, - { - unsafe extern "system" fn CreateByteStreamProxy(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFByteStreamProxyClassFactory_Impl, - { + pub const fn new() -> IMFByteStreamProxyClassFactory_Vtbl { + unsafe extern "system" fn CreateByteStreamProxy(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamProxyClassFactory_Impl::CreateByteStreamProxy(this, windows_core::from_raw_borrowed(&pbytestream), windows_core::from_raw_borrowed(&pattributes), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } @@ -5426,21 +4007,15 @@ impl IMFByteStreamProxyClassFactory_Vtbl { iid == &::IID } } -pub trait IMFByteStreamTimeSeek_Impl: Sized { +pub trait IMFByteStreamTimeSeek_Impl: Sized + windows_core::IUnknownImpl { fn IsTimeSeekSupported(&self) -> windows_core::Result; fn TimeSeek(&self, qwtimeposition: u64) -> windows_core::Result<()>; fn GetTimeSeekResult(&self, pqwstarttime: *mut u64, pqwstoptime: *mut u64, pqwduration: *mut u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFByteStreamTimeSeek {} impl IMFByteStreamTimeSeek_Vtbl { - pub const fn new() -> IMFByteStreamTimeSeek_Vtbl - where - Identity: IMFByteStreamTimeSeek_Impl, - { - unsafe extern "system" fn IsTimeSeekSupported(this: *mut core::ffi::c_void, pftimeseekissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFByteStreamTimeSeek_Impl, - { + pub const fn new() -> IMFByteStreamTimeSeek_Vtbl { + unsafe extern "system" fn IsTimeSeekSupported(this: *mut core::ffi::c_void, pftimeseekissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStreamTimeSeek_Impl::IsTimeSeekSupported(this) { Ok(ok__) => { @@ -5450,17 +4025,11 @@ impl IMFByteStreamTimeSeek_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TimeSeek(this: *mut core::ffi::c_void, qwtimeposition: u64) -> windows_core::HRESULT - where - Identity: IMFByteStreamTimeSeek_Impl, - { + unsafe extern "system" fn TimeSeek(this: *mut core::ffi::c_void, qwtimeposition: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamTimeSeek_Impl::TimeSeek(this, core::mem::transmute_copy(&qwtimeposition)).into() } - unsafe extern "system" fn GetTimeSeekResult(this: *mut core::ffi::c_void, pqwstarttime: *mut u64, pqwstoptime: *mut u64, pqwduration: *mut u64) -> windows_core::HRESULT - where - Identity: IMFByteStreamTimeSeek_Impl, - { + unsafe extern "system" fn GetTimeSeekResult(this: *mut core::ffi::c_void, pqwstarttime: *mut u64, pqwstoptime: *mut u64, pqwduration: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamTimeSeek_Impl::GetTimeSeekResult(this, core::mem::transmute_copy(&pqwstarttime), core::mem::transmute_copy(&pqwstoptime), core::mem::transmute_copy(&pqwduration)).into() } @@ -5475,21 +4044,15 @@ impl IMFByteStreamTimeSeek_Vtbl { iid == &::IID } } -pub trait IMFCameraConfigurationManager_Impl: Sized { +pub trait IMFCameraConfigurationManager_Impl: Sized + windows_core::IUnknownImpl { fn LoadDefaults(&self, cameraattributes: Option<&IMFAttributes>) -> windows_core::Result; fn SaveDefaults(&self, configurations: Option<&IMFCameraControlDefaultsCollection>) -> windows_core::Result<()>; fn Shutdown(&self); } impl windows_core::RuntimeName for IMFCameraConfigurationManager {} impl IMFCameraConfigurationManager_Vtbl { - pub const fn new() -> IMFCameraConfigurationManager_Vtbl - where - Identity: IMFCameraConfigurationManager_Impl, - { - unsafe extern "system" fn LoadDefaults(this: *mut core::ffi::c_void, cameraattributes: *mut core::ffi::c_void, configurations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraConfigurationManager_Impl, - { + pub const fn new() -> IMFCameraConfigurationManager_Vtbl { + unsafe extern "system" fn LoadDefaults(this: *mut core::ffi::c_void, cameraattributes: *mut core::ffi::c_void, configurations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCameraConfigurationManager_Impl::LoadDefaults(this, windows_core::from_raw_borrowed(&cameraattributes)) { Ok(ok__) => { @@ -5499,17 +4062,11 @@ impl IMFCameraConfigurationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveDefaults(this: *mut core::ffi::c_void, configurations: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraConfigurationManager_Impl, - { + unsafe extern "system" fn SaveDefaults(this: *mut core::ffi::c_void, configurations: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraConfigurationManager_Impl::SaveDefaults(this, windows_core::from_raw_borrowed(&configurations)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) - where - Identity: IMFCameraConfigurationManager_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraConfigurationManager_Impl::Shutdown(this) } @@ -5524,7 +4081,7 @@ impl IMFCameraConfigurationManager_Vtbl { iid == &::IID } } -pub trait IMFCameraControlDefaults_Impl: Sized { +pub trait IMFCameraControlDefaults_Impl: Sized + windows_core::IUnknownImpl { fn GetType(&self) -> MF_CAMERA_CONTROL_CONFIGURATION_TYPE; fn GetRangeInfo(&self) -> windows_core::Result; fn LockControlData(&self, control: *mut *mut core::ffi::c_void, controlsize: *mut u32, data: *mut *mut core::ffi::c_void, datasize: *mut u32) -> windows_core::Result<()>; @@ -5532,21 +4089,12 @@ pub trait IMFCameraControlDefaults_Impl: Sized { } impl windows_core::RuntimeName for IMFCameraControlDefaults {} impl IMFCameraControlDefaults_Vtbl { - pub const fn new() -> IMFCameraControlDefaults_Vtbl - where - Identity: IMFCameraControlDefaults_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> MF_CAMERA_CONTROL_CONFIGURATION_TYPE - where - Identity: IMFCameraControlDefaults_Impl, - { + pub const fn new() -> IMFCameraControlDefaults_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void) -> MF_CAMERA_CONTROL_CONFIGURATION_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlDefaults_Impl::GetType(this) } - unsafe extern "system" fn GetRangeInfo(this: *mut core::ffi::c_void, rangeinfo: *mut MF_CAMERA_CONTROL_RANGE_INFO) -> windows_core::HRESULT - where - Identity: IMFCameraControlDefaults_Impl, - { + unsafe extern "system" fn GetRangeInfo(this: *mut core::ffi::c_void, rangeinfo: *mut MF_CAMERA_CONTROL_RANGE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCameraControlDefaults_Impl::GetRangeInfo(this) { Ok(ok__) => { @@ -5556,17 +4104,11 @@ impl IMFCameraControlDefaults_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LockControlData(this: *mut core::ffi::c_void, control: *mut *mut core::ffi::c_void, controlsize: *mut u32, data: *mut *mut core::ffi::c_void, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IMFCameraControlDefaults_Impl, - { + unsafe extern "system" fn LockControlData(this: *mut core::ffi::c_void, control: *mut *mut core::ffi::c_void, controlsize: *mut u32, data: *mut *mut core::ffi::c_void, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlDefaults_Impl::LockControlData(this, core::mem::transmute_copy(&control), core::mem::transmute_copy(&controlsize), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn UnlockControlData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraControlDefaults_Impl, - { + unsafe extern "system" fn UnlockControlData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlDefaults_Impl::UnlockControlData(this).into() } @@ -5592,21 +4134,12 @@ pub trait IMFCameraControlDefaultsCollection_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFCameraControlDefaultsCollection {} impl IMFCameraControlDefaultsCollection_Vtbl { - pub const fn new() -> IMFCameraControlDefaultsCollection_Vtbl - where - Identity: IMFCameraControlDefaultsCollection_Impl, - { - unsafe extern "system" fn GetControlCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFCameraControlDefaultsCollection_Impl, - { + pub const fn new() -> IMFCameraControlDefaultsCollection_Vtbl { + unsafe extern "system" fn GetControlCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlDefaultsCollection_Impl::GetControlCount(this) } - unsafe extern "system" fn GetControl(this: *mut core::ffi::c_void, index: u32, configuration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraControlDefaultsCollection_Impl, - { + unsafe extern "system" fn GetControl(this: *mut core::ffi::c_void, index: u32, configuration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCameraControlDefaultsCollection_Impl::GetControl(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5616,10 +4149,7 @@ impl IMFCameraControlDefaultsCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOrAddExtendedControl(this: *mut core::ffi::c_void, configtype: MF_CAMERA_CONTROL_CONFIGURATION_TYPE, constrolid: u32, streamid: u32, datasize: u32, defaults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraControlDefaultsCollection_Impl, - { + unsafe extern "system" fn GetOrAddExtendedControl(this: *mut core::ffi::c_void, configtype: MF_CAMERA_CONTROL_CONFIGURATION_TYPE, constrolid: u32, streamid: u32, datasize: u32, defaults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCameraControlDefaultsCollection_Impl::GetOrAddExtendedControl(this, core::mem::transmute_copy(&configtype), core::mem::transmute_copy(&constrolid), core::mem::transmute_copy(&streamid), core::mem::transmute_copy(&datasize)) { Ok(ok__) => { @@ -5629,10 +4159,7 @@ impl IMFCameraControlDefaultsCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOrAddControl(this: *mut core::ffi::c_void, configtype: MF_CAMERA_CONTROL_CONFIGURATION_TYPE, controlset: *const windows_core::GUID, constrolid: u32, controlsize: u32, datasize: u32, defaults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraControlDefaultsCollection_Impl, - { + unsafe extern "system" fn GetOrAddControl(this: *mut core::ffi::c_void, configtype: MF_CAMERA_CONTROL_CONFIGURATION_TYPE, controlset: *const windows_core::GUID, constrolid: u32, controlsize: u32, datasize: u32, defaults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCameraControlDefaultsCollection_Impl::GetOrAddControl(this, core::mem::transmute_copy(&configtype), core::mem::transmute_copy(&controlset), core::mem::transmute_copy(&constrolid), core::mem::transmute_copy(&controlsize), core::mem::transmute_copy(&datasize)) { Ok(ok__) => { @@ -5642,17 +4169,11 @@ impl IMFCameraControlDefaultsCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveControl(this: *mut core::ffi::c_void, controlset: *const windows_core::GUID, constrolid: u32) -> windows_core::HRESULT - where - Identity: IMFCameraControlDefaultsCollection_Impl, - { + unsafe extern "system" fn RemoveControl(this: *mut core::ffi::c_void, controlset: *const windows_core::GUID, constrolid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlDefaultsCollection_Impl::RemoveControl(this, core::mem::transmute_copy(&controlset), core::mem::transmute_copy(&constrolid)).into() } - unsafe extern "system" fn RemoveAllControls(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraControlDefaultsCollection_Impl, - { + unsafe extern "system" fn RemoveAllControls(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlDefaultsCollection_Impl::RemoveAllControls(this).into() } @@ -5670,7 +4191,7 @@ impl IMFCameraControlDefaultsCollection_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFCameraControlMonitor_Impl: Sized { +pub trait IMFCameraControlMonitor_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; fn AddControlSubscription(&self, controlset: &windows_core::GUID, id: u32) -> windows_core::Result<()>; @@ -5679,42 +4200,24 @@ pub trait IMFCameraControlMonitor_Impl: Sized { } impl windows_core::RuntimeName for IMFCameraControlMonitor {} impl IMFCameraControlMonitor_Vtbl { - pub const fn new() -> IMFCameraControlMonitor_Vtbl - where - Identity: IMFCameraControlMonitor_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraControlMonitor_Impl, - { + pub const fn new() -> IMFCameraControlMonitor_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlMonitor_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraControlMonitor_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlMonitor_Impl::Stop(this).into() } - unsafe extern "system" fn AddControlSubscription(this: *mut core::ffi::c_void, controlset: windows_core::GUID, id: u32) -> windows_core::HRESULT - where - Identity: IMFCameraControlMonitor_Impl, - { + unsafe extern "system" fn AddControlSubscription(this: *mut core::ffi::c_void, controlset: windows_core::GUID, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlMonitor_Impl::AddControlSubscription(this, core::mem::transmute(&controlset), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn RemoveControlSubscription(this: *mut core::ffi::c_void, controlset: windows_core::GUID, id: u32) -> windows_core::HRESULT - where - Identity: IMFCameraControlMonitor_Impl, - { + unsafe extern "system" fn RemoveControlSubscription(this: *mut core::ffi::c_void, controlset: windows_core::GUID, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlMonitor_Impl::RemoveControlSubscription(this, core::mem::transmute(&controlset), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) - where - Identity: IMFCameraControlMonitor_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlMonitor_Impl::Shutdown(this) } @@ -5731,27 +4234,18 @@ impl IMFCameraControlMonitor_Vtbl { iid == &::IID } } -pub trait IMFCameraControlNotify_Impl: Sized { +pub trait IMFCameraControlNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnChange(&self, controlset: *const windows_core::GUID, id: u32); fn OnError(&self, hrstatus: windows_core::HRESULT); } impl windows_core::RuntimeName for IMFCameraControlNotify {} impl IMFCameraControlNotify_Vtbl { - pub const fn new() -> IMFCameraControlNotify_Vtbl - where - Identity: IMFCameraControlNotify_Impl, - { - unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, controlset: *const windows_core::GUID, id: u32) - where - Identity: IMFCameraControlNotify_Impl, - { + pub const fn new() -> IMFCameraControlNotify_Vtbl { + unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, controlset: *const windows_core::GUID, id: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlNotify_Impl::OnChange(this, core::mem::transmute_copy(&controlset), core::mem::transmute_copy(&id)) } - unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) - where - Identity: IMFCameraControlNotify_Impl, - { + unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraControlNotify_Impl::OnError(this, core::mem::transmute_copy(&hrstatus)) } @@ -5761,35 +4255,23 @@ impl IMFCameraControlNotify_Vtbl { iid == &::IID } } -pub trait IMFCameraOcclusionStateMonitor_Impl: Sized { +pub trait IMFCameraOcclusionStateMonitor_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; fn GetSupportedStates(&self) -> u32; } impl windows_core::RuntimeName for IMFCameraOcclusionStateMonitor {} impl IMFCameraOcclusionStateMonitor_Vtbl { - pub const fn new() -> IMFCameraOcclusionStateMonitor_Vtbl - where - Identity: IMFCameraOcclusionStateMonitor_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraOcclusionStateMonitor_Impl, - { + pub const fn new() -> IMFCameraOcclusionStateMonitor_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraOcclusionStateMonitor_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraOcclusionStateMonitor_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraOcclusionStateMonitor_Impl::Stop(this).into() } - unsafe extern "system" fn GetSupportedStates(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFCameraOcclusionStateMonitor_Impl, - { + unsafe extern "system" fn GetSupportedStates(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraOcclusionStateMonitor_Impl::GetSupportedStates(this) } @@ -5804,19 +4286,13 @@ impl IMFCameraOcclusionStateMonitor_Vtbl { iid == &::IID } } -pub trait IMFCameraOcclusionStateReport_Impl: Sized { +pub trait IMFCameraOcclusionStateReport_Impl: Sized + windows_core::IUnknownImpl { fn GetOcclusionState(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFCameraOcclusionStateReport {} impl IMFCameraOcclusionStateReport_Vtbl { - pub const fn new() -> IMFCameraOcclusionStateReport_Vtbl - where - Identity: IMFCameraOcclusionStateReport_Impl, - { - unsafe extern "system" fn GetOcclusionState(this: *mut core::ffi::c_void, occlusionstate: *mut u32) -> windows_core::HRESULT - where - Identity: IMFCameraOcclusionStateReport_Impl, - { + pub const fn new() -> IMFCameraOcclusionStateReport_Vtbl { + unsafe extern "system" fn GetOcclusionState(this: *mut core::ffi::c_void, occlusionstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCameraOcclusionStateReport_Impl::GetOcclusionState(this) { Ok(ok__) => { @@ -5832,19 +4308,13 @@ impl IMFCameraOcclusionStateReport_Vtbl { iid == &::IID } } -pub trait IMFCameraOcclusionStateReportCallback_Impl: Sized { +pub trait IMFCameraOcclusionStateReportCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnOcclusionStateReport(&self, occlusionstatereport: Option<&IMFCameraOcclusionStateReport>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFCameraOcclusionStateReportCallback {} impl IMFCameraOcclusionStateReportCallback_Vtbl { - pub const fn new() -> IMFCameraOcclusionStateReportCallback_Vtbl - where - Identity: IMFCameraOcclusionStateReportCallback_Impl, - { - unsafe extern "system" fn OnOcclusionStateReport(this: *mut core::ffi::c_void, occlusionstatereport: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCameraOcclusionStateReportCallback_Impl, - { + pub const fn new() -> IMFCameraOcclusionStateReportCallback_Vtbl { + unsafe extern "system" fn OnOcclusionStateReport(this: *mut core::ffi::c_void, occlusionstatereport: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraOcclusionStateReportCallback_Impl::OnOcclusionStateReport(this, windows_core::from_raw_borrowed(&occlusionstatereport)).into() } @@ -5854,27 +4324,18 @@ impl IMFCameraOcclusionStateReportCallback_Vtbl { iid == &::IID } } -pub trait IMFCameraSyncObject_Impl: Sized { +pub trait IMFCameraSyncObject_Impl: Sized + windows_core::IUnknownImpl { fn WaitOnSignal(&self, timeoutinms: u32) -> windows_core::Result<()>; fn Shutdown(&self); } impl windows_core::RuntimeName for IMFCameraSyncObject {} impl IMFCameraSyncObject_Vtbl { - pub const fn new() -> IMFCameraSyncObject_Vtbl - where - Identity: IMFCameraSyncObject_Impl, - { - unsafe extern "system" fn WaitOnSignal(this: *mut core::ffi::c_void, timeoutinms: u32) -> windows_core::HRESULT - where - Identity: IMFCameraSyncObject_Impl, - { + pub const fn new() -> IMFCameraSyncObject_Vtbl { + unsafe extern "system" fn WaitOnSignal(this: *mut core::ffi::c_void, timeoutinms: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraSyncObject_Impl::WaitOnSignal(this, core::mem::transmute_copy(&timeoutinms)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) - where - Identity: IMFCameraSyncObject_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCameraSyncObject_Impl::Shutdown(this) } @@ -5888,7 +4349,7 @@ impl IMFCameraSyncObject_Vtbl { iid == &::IID } } -pub trait IMFCaptureEngine_Impl: Sized { +pub trait IMFCaptureEngine_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, peventcallback: Option<&IMFCaptureEngineOnEventCallback>, pattributes: Option<&IMFAttributes>, paudiosource: Option<&windows_core::IUnknown>, pvideosource: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn StartPreview(&self) -> windows_core::Result<()>; fn StopPreview(&self) -> windows_core::Result<()>; @@ -5900,56 +4361,32 @@ pub trait IMFCaptureEngine_Impl: Sized { } impl windows_core::RuntimeName for IMFCaptureEngine {} impl IMFCaptureEngine_Vtbl { - pub const fn new() -> IMFCaptureEngine_Vtbl - where - Identity: IMFCaptureEngine_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, peventcallback: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void, paudiosource: *mut core::ffi::c_void, pvideosource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngine_Impl, - { + pub const fn new() -> IMFCaptureEngine_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, peventcallback: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void, paudiosource: *mut core::ffi::c_void, pvideosource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngine_Impl::Initialize(this, windows_core::from_raw_borrowed(&peventcallback), windows_core::from_raw_borrowed(&pattributes), windows_core::from_raw_borrowed(&paudiosource), windows_core::from_raw_borrowed(&pvideosource)).into() } - unsafe extern "system" fn StartPreview(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngine_Impl, - { + unsafe extern "system" fn StartPreview(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngine_Impl::StartPreview(this).into() } - unsafe extern "system" fn StopPreview(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngine_Impl, - { + unsafe extern "system" fn StopPreview(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngine_Impl::StopPreview(this).into() } - unsafe extern "system" fn StartRecord(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngine_Impl, - { + unsafe extern "system" fn StartRecord(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngine_Impl::StartRecord(this).into() } - unsafe extern "system" fn StopRecord(this: *mut core::ffi::c_void, bfinalize: super::super::Foundation::BOOL, bflushunprocessedsamples: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFCaptureEngine_Impl, - { + unsafe extern "system" fn StopRecord(this: *mut core::ffi::c_void, bfinalize: super::super::Foundation::BOOL, bflushunprocessedsamples: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngine_Impl::StopRecord(this, core::mem::transmute_copy(&bfinalize), core::mem::transmute_copy(&bflushunprocessedsamples)).into() } - unsafe extern "system" fn TakePhoto(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngine_Impl, - { + unsafe extern "system" fn TakePhoto(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngine_Impl::TakePhoto(this).into() } - unsafe extern "system" fn GetSink(this: *mut core::ffi::c_void, mfcaptureenginesinktype: MF_CAPTURE_ENGINE_SINK_TYPE, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngine_Impl, - { + unsafe extern "system" fn GetSink(this: *mut core::ffi::c_void, mfcaptureenginesinktype: MF_CAPTURE_ENGINE_SINK_TYPE, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCaptureEngine_Impl::GetSink(this, core::mem::transmute_copy(&mfcaptureenginesinktype)) { Ok(ok__) => { @@ -5959,10 +4396,7 @@ impl IMFCaptureEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, ppsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngine_Impl, - { + unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, ppsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCaptureEngine_Impl::GetSource(this) { Ok(ok__) => { @@ -5988,19 +4422,13 @@ impl IMFCaptureEngine_Vtbl { iid == &::IID } } -pub trait IMFCaptureEngineClassFactory_Impl: Sized { +pub trait IMFCaptureEngineClassFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFCaptureEngineClassFactory {} impl IMFCaptureEngineClassFactory_Vtbl { - pub const fn new() -> IMFCaptureEngineClassFactory_Vtbl - where - Identity: IMFCaptureEngineClassFactory_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngineClassFactory_Impl, - { + pub const fn new() -> IMFCaptureEngineClassFactory_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngineClassFactory_Impl::CreateInstance(this, core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } @@ -6010,19 +4438,13 @@ impl IMFCaptureEngineClassFactory_Vtbl { iid == &::IID } } -pub trait IMFCaptureEngineOnEventCallback_Impl: Sized { +pub trait IMFCaptureEngineOnEventCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnEvent(&self, pevent: Option<&IMFMediaEvent>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFCaptureEngineOnEventCallback {} impl IMFCaptureEngineOnEventCallback_Vtbl { - pub const fn new() -> IMFCaptureEngineOnEventCallback_Vtbl - where - Identity: IMFCaptureEngineOnEventCallback_Impl, - { - unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngineOnEventCallback_Impl, - { + pub const fn new() -> IMFCaptureEngineOnEventCallback_Vtbl { + unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngineOnEventCallback_Impl::OnEvent(this, windows_core::from_raw_borrowed(&pevent)).into() } @@ -6032,19 +4454,13 @@ impl IMFCaptureEngineOnEventCallback_Vtbl { iid == &::IID } } -pub trait IMFCaptureEngineOnSampleCallback_Impl: Sized { +pub trait IMFCaptureEngineOnSampleCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnSample(&self, psample: Option<&IMFSample>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFCaptureEngineOnSampleCallback {} impl IMFCaptureEngineOnSampleCallback_Vtbl { - pub const fn new() -> IMFCaptureEngineOnSampleCallback_Vtbl - where - Identity: IMFCaptureEngineOnSampleCallback_Impl, - { - unsafe extern "system" fn OnSample(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngineOnSampleCallback_Impl, - { + pub const fn new() -> IMFCaptureEngineOnSampleCallback_Vtbl { + unsafe extern "system" fn OnSample(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngineOnSampleCallback_Impl::OnSample(this, windows_core::from_raw_borrowed(&psample)).into() } @@ -6059,14 +4475,8 @@ pub trait IMFCaptureEngineOnSampleCallback2_Impl: Sized + IMFCaptureEngineOnSamp } impl windows_core::RuntimeName for IMFCaptureEngineOnSampleCallback2 {} impl IMFCaptureEngineOnSampleCallback2_Vtbl { - pub const fn new() -> IMFCaptureEngineOnSampleCallback2_Vtbl - where - Identity: IMFCaptureEngineOnSampleCallback2_Impl, - { - unsafe extern "system" fn OnSynchronizedEvent(this: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureEngineOnSampleCallback2_Impl, - { + pub const fn new() -> IMFCaptureEngineOnSampleCallback2_Vtbl { + unsafe extern "system" fn OnSynchronizedEvent(this: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngineOnSampleCallback2_Impl::OnSynchronizedEvent(this, windows_core::from_raw_borrowed(&pevent)).into() } @@ -6076,35 +4486,23 @@ impl IMFCaptureEngineOnSampleCallback2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFCapturePhotoConfirmation_Impl: Sized { +pub trait IMFCapturePhotoConfirmation_Impl: Sized + windows_core::IUnknownImpl { fn SetPhotoConfirmationCallback(&self, pnotificationcallback: Option<&IMFAsyncCallback>) -> windows_core::Result<()>; fn SetPixelFormat(&self, subtype: &windows_core::GUID) -> windows_core::Result<()>; fn GetPixelFormat(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFCapturePhotoConfirmation {} impl IMFCapturePhotoConfirmation_Vtbl { - pub const fn new() -> IMFCapturePhotoConfirmation_Vtbl - where - Identity: IMFCapturePhotoConfirmation_Impl, - { - unsafe extern "system" fn SetPhotoConfirmationCallback(this: *mut core::ffi::c_void, pnotificationcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCapturePhotoConfirmation_Impl, - { + pub const fn new() -> IMFCapturePhotoConfirmation_Vtbl { + unsafe extern "system" fn SetPhotoConfirmationCallback(this: *mut core::ffi::c_void, pnotificationcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePhotoConfirmation_Impl::SetPhotoConfirmationCallback(this, windows_core::from_raw_borrowed(&pnotificationcallback)).into() } - unsafe extern "system" fn SetPixelFormat(this: *mut core::ffi::c_void, subtype: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFCapturePhotoConfirmation_Impl, - { + unsafe extern "system" fn SetPixelFormat(this: *mut core::ffi::c_void, subtype: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePhotoConfirmation_Impl::SetPixelFormat(this, core::mem::transmute(&subtype)).into() } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, subtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFCapturePhotoConfirmation_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, subtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCapturePhotoConfirmation_Impl::GetPixelFormat(this) { Ok(ok__) => { @@ -6132,28 +4530,16 @@ pub trait IMFCapturePhotoSink_Impl: Sized + IMFCaptureSink_Impl { } impl windows_core::RuntimeName for IMFCapturePhotoSink {} impl IMFCapturePhotoSink_Vtbl { - pub const fn new() -> IMFCapturePhotoSink_Vtbl - where - Identity: IMFCapturePhotoSink_Impl, - { - unsafe extern "system" fn SetOutputFileName(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFCapturePhotoSink_Impl, - { + pub const fn new() -> IMFCapturePhotoSink_Vtbl { + unsafe extern "system" fn SetOutputFileName(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePhotoSink_Impl::SetOutputFileName(this, core::mem::transmute(&filename)).into() } - unsafe extern "system" fn SetSampleCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCapturePhotoSink_Impl, - { + unsafe extern "system" fn SetSampleCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePhotoSink_Impl::SetSampleCallback(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn SetOutputByteStream(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCapturePhotoSink_Impl, - { + unsafe extern "system" fn SetOutputByteStream(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePhotoSink_Impl::SetOutputByteStream(this, windows_core::from_raw_borrowed(&pbytestream)).into() } @@ -6181,42 +4567,24 @@ pub trait IMFCapturePreviewSink_Impl: Sized + IMFCaptureSink_Impl { } impl windows_core::RuntimeName for IMFCapturePreviewSink {} impl IMFCapturePreviewSink_Vtbl { - pub const fn new() -> IMFCapturePreviewSink_Vtbl - where - Identity: IMFCapturePreviewSink_Impl, - { - unsafe extern "system" fn SetRenderHandle(this: *mut core::ffi::c_void, handle: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IMFCapturePreviewSink_Impl, - { + pub const fn new() -> IMFCapturePreviewSink_Vtbl { + unsafe extern "system" fn SetRenderHandle(this: *mut core::ffi::c_void, handle: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePreviewSink_Impl::SetRenderHandle(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn SetRenderSurface(this: *mut core::ffi::c_void, psurface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCapturePreviewSink_Impl, - { + unsafe extern "system" fn SetRenderSurface(this: *mut core::ffi::c_void, psurface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePreviewSink_Impl::SetRenderSurface(this, windows_core::from_raw_borrowed(&psurface)).into() } - unsafe extern "system" fn UpdateVideo(this: *mut core::ffi::c_void, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IMFCapturePreviewSink_Impl, - { + unsafe extern "system" fn UpdateVideo(this: *mut core::ffi::c_void, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePreviewSink_Impl::UpdateVideo(this, core::mem::transmute_copy(&psrc), core::mem::transmute_copy(&pdst), core::mem::transmute_copy(&pborderclr)).into() } - unsafe extern "system" fn SetSampleCallback(this: *mut core::ffi::c_void, dwstreamsinkindex: u32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCapturePreviewSink_Impl, - { + unsafe extern "system" fn SetSampleCallback(this: *mut core::ffi::c_void, dwstreamsinkindex: u32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePreviewSink_Impl::SetSampleCallback(this, core::mem::transmute_copy(&dwstreamsinkindex), windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn GetMirrorState(this: *mut core::ffi::c_void, pfmirrorstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFCapturePreviewSink_Impl, - { + unsafe extern "system" fn GetMirrorState(this: *mut core::ffi::c_void, pfmirrorstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCapturePreviewSink_Impl::GetMirrorState(this) { Ok(ok__) => { @@ -6226,17 +4594,11 @@ impl IMFCapturePreviewSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMirrorState(this: *mut core::ffi::c_void, fmirrorstate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFCapturePreviewSink_Impl, - { + unsafe extern "system" fn SetMirrorState(this: *mut core::ffi::c_void, fmirrorstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePreviewSink_Impl::SetMirrorState(this, core::mem::transmute_copy(&fmirrorstate)).into() } - unsafe extern "system" fn GetRotation(this: *mut core::ffi::c_void, dwstreamindex: u32, pdwrotationvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IMFCapturePreviewSink_Impl, - { + unsafe extern "system" fn GetRotation(this: *mut core::ffi::c_void, dwstreamindex: u32, pdwrotationvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCapturePreviewSink_Impl::GetRotation(this, core::mem::transmute_copy(&dwstreamindex)) { Ok(ok__) => { @@ -6246,17 +4608,11 @@ impl IMFCapturePreviewSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, dwstreamindex: u32, dwrotationvalue: u32) -> windows_core::HRESULT - where - Identity: IMFCapturePreviewSink_Impl, - { + unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, dwstreamindex: u32, dwrotationvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePreviewSink_Impl::SetRotation(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&dwrotationvalue)).into() } - unsafe extern "system" fn SetCustomSink(this: *mut core::ffi::c_void, pmediasink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCapturePreviewSink_Impl, - { + unsafe extern "system" fn SetCustomSink(this: *mut core::ffi::c_void, pmediasink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePreviewSink_Impl::SetCustomSink(this, windows_core::from_raw_borrowed(&pmediasink)).into() } @@ -6287,42 +4643,24 @@ pub trait IMFCaptureRecordSink_Impl: Sized + IMFCaptureSink_Impl { } impl windows_core::RuntimeName for IMFCaptureRecordSink {} impl IMFCaptureRecordSink_Vtbl { - pub const fn new() -> IMFCaptureRecordSink_Vtbl - where - Identity: IMFCaptureRecordSink_Impl, - { - unsafe extern "system" fn SetOutputByteStream(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, guidcontainertype: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFCaptureRecordSink_Impl, - { + pub const fn new() -> IMFCaptureRecordSink_Vtbl { + unsafe extern "system" fn SetOutputByteStream(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, guidcontainertype: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureRecordSink_Impl::SetOutputByteStream(this, windows_core::from_raw_borrowed(&pbytestream), core::mem::transmute_copy(&guidcontainertype)).into() } - unsafe extern "system" fn SetOutputFileName(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFCaptureRecordSink_Impl, - { + unsafe extern "system" fn SetOutputFileName(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureRecordSink_Impl::SetOutputFileName(this, core::mem::transmute(&filename)).into() } - unsafe extern "system" fn SetSampleCallback(this: *mut core::ffi::c_void, dwstreamsinkindex: u32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureRecordSink_Impl, - { + unsafe extern "system" fn SetSampleCallback(this: *mut core::ffi::c_void, dwstreamsinkindex: u32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureRecordSink_Impl::SetSampleCallback(this, core::mem::transmute_copy(&dwstreamsinkindex), windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn SetCustomSink(this: *mut core::ffi::c_void, pmediasink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureRecordSink_Impl, - { + unsafe extern "system" fn SetCustomSink(this: *mut core::ffi::c_void, pmediasink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureRecordSink_Impl::SetCustomSink(this, windows_core::from_raw_borrowed(&pmediasink)).into() } - unsafe extern "system" fn GetRotation(this: *mut core::ffi::c_void, dwstreamindex: u32, pdwrotationvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IMFCaptureRecordSink_Impl, - { + unsafe extern "system" fn GetRotation(this: *mut core::ffi::c_void, dwstreamindex: u32, pdwrotationvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCaptureRecordSink_Impl::GetRotation(this, core::mem::transmute_copy(&dwstreamindex)) { Ok(ok__) => { @@ -6332,10 +4670,7 @@ impl IMFCaptureRecordSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, dwstreamindex: u32, dwrotationvalue: u32) -> windows_core::HRESULT - where - Identity: IMFCaptureRecordSink_Impl, - { + unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, dwstreamindex: u32, dwrotationvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureRecordSink_Impl::SetRotation(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&dwrotationvalue)).into() } @@ -6353,7 +4688,7 @@ impl IMFCaptureRecordSink_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFCaptureSink_Impl: Sized { +pub trait IMFCaptureSink_Impl: Sized + windows_core::IUnknownImpl { fn GetOutputMediaType(&self, dwsinkstreamindex: u32, ppmediatype: *mut Option) -> windows_core::Result<()>; fn GetService(&self, dwsinkstreamindex: u32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunknown: *mut Option) -> windows_core::Result<()>; fn AddStream(&self, dwsourcestreamindex: u32, pmediatype: Option<&IMFMediaType>, pattributes: Option<&IMFAttributes>, pdwsinkstreamindex: *mut u32) -> windows_core::Result<()>; @@ -6362,42 +4697,24 @@ pub trait IMFCaptureSink_Impl: Sized { } impl windows_core::RuntimeName for IMFCaptureSink {} impl IMFCaptureSink_Vtbl { - pub const fn new() -> IMFCaptureSink_Vtbl - where - Identity: IMFCaptureSink_Impl, - { - unsafe extern "system" fn GetOutputMediaType(this: *mut core::ffi::c_void, dwsinkstreamindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSink_Impl, - { + pub const fn new() -> IMFCaptureSink_Vtbl { + unsafe extern "system" fn GetOutputMediaType(this: *mut core::ffi::c_void, dwsinkstreamindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSink_Impl::GetOutputMediaType(this, core::mem::transmute_copy(&dwsinkstreamindex), core::mem::transmute_copy(&ppmediatype)).into() } - unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, dwsinkstreamindex: u32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSink_Impl, - { + unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, dwsinkstreamindex: u32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSink_Impl::GetService(this, core::mem::transmute_copy(&dwsinkstreamindex), core::mem::transmute_copy(&rguidservice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunknown)).into() } - unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, pmediatype: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void, pdwsinkstreamindex: *mut u32) -> windows_core::HRESULT - where - Identity: IMFCaptureSink_Impl, - { + unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, pmediatype: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void, pdwsinkstreamindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSink_Impl::AddStream(this, core::mem::transmute_copy(&dwsourcestreamindex), windows_core::from_raw_borrowed(&pmediatype), windows_core::from_raw_borrowed(&pattributes), core::mem::transmute_copy(&pdwsinkstreamindex)).into() } - unsafe extern "system" fn Prepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSink_Impl, - { + unsafe extern "system" fn Prepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSink_Impl::Prepare(this).into() } - unsafe extern "system" fn RemoveAllStreams(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSink_Impl, - { + unsafe extern "system" fn RemoveAllStreams(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSink_Impl::RemoveAllStreams(this).into() } @@ -6419,14 +4736,8 @@ pub trait IMFCaptureSink2_Impl: Sized + IMFCaptureSink_Impl { } impl windows_core::RuntimeName for IMFCaptureSink2 {} impl IMFCaptureSink2_Vtbl { - pub const fn new() -> IMFCaptureSink2_Vtbl - where - Identity: IMFCaptureSink2_Impl, - { - unsafe extern "system" fn SetOutputMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, pmediatype: *mut core::ffi::c_void, pencodingattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSink2_Impl, - { + pub const fn new() -> IMFCaptureSink2_Vtbl { + unsafe extern "system" fn SetOutputMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, pmediatype: *mut core::ffi::c_void, pencodingattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSink2_Impl::SetOutputMediaType(this, core::mem::transmute_copy(&dwstreamindex), windows_core::from_raw_borrowed(&pmediatype), windows_core::from_raw_borrowed(&pencodingattributes)).into() } @@ -6436,7 +4747,7 @@ impl IMFCaptureSink2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFCaptureSource_Impl: Sized { +pub trait IMFCaptureSource_Impl: Sized + windows_core::IUnknownImpl { fn GetCaptureDeviceSource(&self, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppmediasource: *mut Option) -> windows_core::Result<()>; fn GetCaptureDeviceActivate(&self, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppactivate: *mut Option) -> windows_core::Result<()>; fn GetService(&self, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunknown: *mut Option) -> windows_core::Result<()>; @@ -6454,70 +4765,40 @@ pub trait IMFCaptureSource_Impl: Sized { } impl windows_core::RuntimeName for IMFCaptureSource {} impl IMFCaptureSource_Vtbl { - pub const fn new() -> IMFCaptureSource_Vtbl - where - Identity: IMFCaptureSource_Impl, - { - unsafe extern "system" fn GetCaptureDeviceSource(this: *mut core::ffi::c_void, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppmediasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + pub const fn new() -> IMFCaptureSource_Vtbl { + unsafe extern "system" fn GetCaptureDeviceSource(this: *mut core::ffi::c_void, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppmediasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSource_Impl::GetCaptureDeviceSource(this, core::mem::transmute_copy(&mfcaptureenginedevicetype), core::mem::transmute_copy(&ppmediasource)).into() } - unsafe extern "system" fn GetCaptureDeviceActivate(this: *mut core::ffi::c_void, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppactivate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn GetCaptureDeviceActivate(this: *mut core::ffi::c_void, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppactivate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSource_Impl::GetCaptureDeviceActivate(this, core::mem::transmute_copy(&mfcaptureenginedevicetype), core::mem::transmute_copy(&ppactivate)).into() } - unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSource_Impl::GetService(this, core::mem::transmute_copy(&rguidservice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunknown)).into() } - unsafe extern "system" fn AddEffect(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn AddEffect(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSource_Impl::AddEffect(this, core::mem::transmute_copy(&dwsourcestreamindex), windows_core::from_raw_borrowed(&punknown)).into() } - unsafe extern "system" fn RemoveEffect(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn RemoveEffect(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSource_Impl::RemoveEffect(this, core::mem::transmute_copy(&dwsourcestreamindex), windows_core::from_raw_borrowed(&punknown)).into() } - unsafe extern "system" fn RemoveAllEffects(this: *mut core::ffi::c_void, dwsourcestreamindex: u32) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn RemoveAllEffects(this: *mut core::ffi::c_void, dwsourcestreamindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSource_Impl::RemoveAllEffects(this, core::mem::transmute_copy(&dwsourcestreamindex)).into() } - unsafe extern "system" fn GetAvailableDeviceMediaType(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, dwmediatypeindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn GetAvailableDeviceMediaType(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, dwmediatypeindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSource_Impl::GetAvailableDeviceMediaType(this, core::mem::transmute_copy(&dwsourcestreamindex), core::mem::transmute_copy(&dwmediatypeindex), core::mem::transmute_copy(&ppmediatype)).into() } - unsafe extern "system" fn SetCurrentDeviceMediaType(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn SetCurrentDeviceMediaType(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSource_Impl::SetCurrentDeviceMediaType(this, core::mem::transmute_copy(&dwsourcestreamindex), windows_core::from_raw_borrowed(&pmediatype)).into() } - unsafe extern "system" fn GetCurrentDeviceMediaType(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn GetCurrentDeviceMediaType(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCaptureSource_Impl::GetCurrentDeviceMediaType(this, core::mem::transmute_copy(&dwsourcestreamindex)) { Ok(ok__) => { @@ -6527,10 +4808,7 @@ impl IMFCaptureSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceStreamCount(this: *mut core::ffi::c_void, pdwstreamcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn GetDeviceStreamCount(this: *mut core::ffi::c_void, pdwstreamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCaptureSource_Impl::GetDeviceStreamCount(this) { Ok(ok__) => { @@ -6540,10 +4818,7 @@ impl IMFCaptureSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceStreamCategory(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, pstreamcategory: *mut MF_CAPTURE_ENGINE_STREAM_CATEGORY) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn GetDeviceStreamCategory(this: *mut core::ffi::c_void, dwsourcestreamindex: u32, pstreamcategory: *mut MF_CAPTURE_ENGINE_STREAM_CATEGORY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCaptureSource_Impl::GetDeviceStreamCategory(this, core::mem::transmute_copy(&dwsourcestreamindex)) { Ok(ok__) => { @@ -6553,10 +4828,7 @@ impl IMFCaptureSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMirrorState(this: *mut core::ffi::c_void, dwstreamindex: u32, pfmirrorstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn GetMirrorState(this: *mut core::ffi::c_void, dwstreamindex: u32, pfmirrorstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCaptureSource_Impl::GetMirrorState(this, core::mem::transmute_copy(&dwstreamindex)) { Ok(ok__) => { @@ -6566,17 +4838,11 @@ impl IMFCaptureSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMirrorState(this: *mut core::ffi::c_void, dwstreamindex: u32, fmirrorstate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn SetMirrorState(this: *mut core::ffi::c_void, dwstreamindex: u32, fmirrorstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSource_Impl::SetMirrorState(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&fmirrorstate)).into() } - unsafe extern "system" fn GetStreamIndexFromFriendlyName(this: *mut core::ffi::c_void, uifriendlyname: u32, pdwactualstreamindex: *mut u32) -> windows_core::HRESULT - where - Identity: IMFCaptureSource_Impl, - { + unsafe extern "system" fn GetStreamIndexFromFriendlyName(this: *mut core::ffi::c_void, uifriendlyname: u32, pdwactualstreamindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCaptureSource_Impl::GetStreamIndexFromFriendlyName(this, core::mem::transmute_copy(&uifriendlyname)) { Ok(ok__) => { @@ -6608,27 +4874,18 @@ impl IMFCaptureSource_Vtbl { iid == &::IID } } -pub trait IMFCdmSuspendNotify_Impl: Sized { +pub trait IMFCdmSuspendNotify_Impl: Sized + windows_core::IUnknownImpl { fn Begin(&self) -> windows_core::Result<()>; fn End(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFCdmSuspendNotify {} impl IMFCdmSuspendNotify_Vtbl { - pub const fn new() -> IMFCdmSuspendNotify_Vtbl - where - Identity: IMFCdmSuspendNotify_Impl, - { - unsafe extern "system" fn Begin(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCdmSuspendNotify_Impl, - { + pub const fn new() -> IMFCdmSuspendNotify_Vtbl { + unsafe extern "system" fn Begin(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCdmSuspendNotify_Impl::Begin(this).into() } - unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCdmSuspendNotify_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCdmSuspendNotify_Impl::End(this).into() } @@ -6638,7 +4895,7 @@ impl IMFCdmSuspendNotify_Vtbl { iid == &::IID } } -pub trait IMFClock_Impl: Sized { +pub trait IMFClock_Impl: Sized + windows_core::IUnknownImpl { fn GetClockCharacteristics(&self) -> windows_core::Result; fn GetCorrelatedTime(&self, dwreserved: u32, pllclocktime: *mut i64, phnssystemtime: *mut i64) -> windows_core::Result<()>; fn GetContinuityKey(&self) -> windows_core::Result; @@ -6647,14 +4904,8 @@ pub trait IMFClock_Impl: Sized { } impl windows_core::RuntimeName for IMFClock {} impl IMFClock_Vtbl { - pub const fn new() -> IMFClock_Vtbl - where - Identity: IMFClock_Impl, - { - unsafe extern "system" fn GetClockCharacteristics(this: *mut core::ffi::c_void, pdwcharacteristics: *mut u32) -> windows_core::HRESULT - where - Identity: IMFClock_Impl, - { + pub const fn new() -> IMFClock_Vtbl { + unsafe extern "system" fn GetClockCharacteristics(this: *mut core::ffi::c_void, pdwcharacteristics: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFClock_Impl::GetClockCharacteristics(this) { Ok(ok__) => { @@ -6664,17 +4915,11 @@ impl IMFClock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCorrelatedTime(this: *mut core::ffi::c_void, dwreserved: u32, pllclocktime: *mut i64, phnssystemtime: *mut i64) -> windows_core::HRESULT - where - Identity: IMFClock_Impl, - { + unsafe extern "system" fn GetCorrelatedTime(this: *mut core::ffi::c_void, dwreserved: u32, pllclocktime: *mut i64, phnssystemtime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFClock_Impl::GetCorrelatedTime(this, core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&pllclocktime), core::mem::transmute_copy(&phnssystemtime)).into() } - unsafe extern "system" fn GetContinuityKey(this: *mut core::ffi::c_void, pdwcontinuitykey: *mut u32) -> windows_core::HRESULT - where - Identity: IMFClock_Impl, - { + unsafe extern "system" fn GetContinuityKey(this: *mut core::ffi::c_void, pdwcontinuitykey: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFClock_Impl::GetContinuityKey(this) { Ok(ok__) => { @@ -6684,10 +4929,7 @@ impl IMFClock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, dwreserved: u32, peclockstate: *mut MFCLOCK_STATE) -> windows_core::HRESULT - where - Identity: IMFClock_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, dwreserved: u32, peclockstate: *mut MFCLOCK_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFClock_Impl::GetState(this, core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -6697,10 +4939,7 @@ impl IMFClock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pclockproperties: *mut MFCLOCK_PROPERTIES) -> windows_core::HRESULT - where - Identity: IMFClock_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pclockproperties: *mut MFCLOCK_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFClock_Impl::GetProperties(this, core::mem::transmute_copy(&pclockproperties)).into() } @@ -6717,27 +4956,18 @@ impl IMFClock_Vtbl { iid == &::IID } } -pub trait IMFClockConsumer_Impl: Sized { +pub trait IMFClockConsumer_Impl: Sized + windows_core::IUnknownImpl { fn SetPresentationClock(&self, ppresentationclock: Option<&IMFPresentationClock>) -> windows_core::Result<()>; fn GetPresentationClock(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFClockConsumer {} impl IMFClockConsumer_Vtbl { - pub const fn new() -> IMFClockConsumer_Vtbl - where - Identity: IMFClockConsumer_Impl, - { - unsafe extern "system" fn SetPresentationClock(this: *mut core::ffi::c_void, ppresentationclock: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFClockConsumer_Impl, - { + pub const fn new() -> IMFClockConsumer_Vtbl { + unsafe extern "system" fn SetPresentationClock(this: *mut core::ffi::c_void, ppresentationclock: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFClockConsumer_Impl::SetPresentationClock(this, windows_core::from_raw_borrowed(&ppresentationclock)).into() } - unsafe extern "system" fn GetPresentationClock(this: *mut core::ffi::c_void, pppresentationclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFClockConsumer_Impl, - { + unsafe extern "system" fn GetPresentationClock(this: *mut core::ffi::c_void, pppresentationclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFClockConsumer_Impl::GetPresentationClock(this) { Ok(ok__) => { @@ -6757,7 +4987,7 @@ impl IMFClockConsumer_Vtbl { iid == &::IID } } -pub trait IMFClockStateSink_Impl: Sized { +pub trait IMFClockStateSink_Impl: Sized + windows_core::IUnknownImpl { fn OnClockStart(&self, hnssystemtime: i64, llclockstartoffset: i64) -> windows_core::Result<()>; fn OnClockStop(&self, hnssystemtime: i64) -> windows_core::Result<()>; fn OnClockPause(&self, hnssystemtime: i64) -> windows_core::Result<()>; @@ -6766,42 +4996,24 @@ pub trait IMFClockStateSink_Impl: Sized { } impl windows_core::RuntimeName for IMFClockStateSink {} impl IMFClockStateSink_Vtbl { - pub const fn new() -> IMFClockStateSink_Vtbl - where - Identity: IMFClockStateSink_Impl, - { - unsafe extern "system" fn OnClockStart(this: *mut core::ffi::c_void, hnssystemtime: i64, llclockstartoffset: i64) -> windows_core::HRESULT - where - Identity: IMFClockStateSink_Impl, - { + pub const fn new() -> IMFClockStateSink_Vtbl { + unsafe extern "system" fn OnClockStart(this: *mut core::ffi::c_void, hnssystemtime: i64, llclockstartoffset: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFClockStateSink_Impl::OnClockStart(this, core::mem::transmute_copy(&hnssystemtime), core::mem::transmute_copy(&llclockstartoffset)).into() } - unsafe extern "system" fn OnClockStop(this: *mut core::ffi::c_void, hnssystemtime: i64) -> windows_core::HRESULT - where - Identity: IMFClockStateSink_Impl, - { + unsafe extern "system" fn OnClockStop(this: *mut core::ffi::c_void, hnssystemtime: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFClockStateSink_Impl::OnClockStop(this, core::mem::transmute_copy(&hnssystemtime)).into() } - unsafe extern "system" fn OnClockPause(this: *mut core::ffi::c_void, hnssystemtime: i64) -> windows_core::HRESULT - where - Identity: IMFClockStateSink_Impl, - { + unsafe extern "system" fn OnClockPause(this: *mut core::ffi::c_void, hnssystemtime: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFClockStateSink_Impl::OnClockPause(this, core::mem::transmute_copy(&hnssystemtime)).into() } - unsafe extern "system" fn OnClockRestart(this: *mut core::ffi::c_void, hnssystemtime: i64) -> windows_core::HRESULT - where - Identity: IMFClockStateSink_Impl, - { + unsafe extern "system" fn OnClockRestart(this: *mut core::ffi::c_void, hnssystemtime: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFClockStateSink_Impl::OnClockRestart(this, core::mem::transmute_copy(&hnssystemtime)).into() } - unsafe extern "system" fn OnClockSetRate(this: *mut core::ffi::c_void, hnssystemtime: i64, flrate: f32) -> windows_core::HRESULT - where - Identity: IMFClockStateSink_Impl, - { + unsafe extern "system" fn OnClockSetRate(this: *mut core::ffi::c_void, hnssystemtime: i64, flrate: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFClockStateSink_Impl::OnClockSetRate(this, core::mem::transmute_copy(&hnssystemtime), core::mem::transmute_copy(&flrate)).into() } @@ -6818,7 +5030,7 @@ impl IMFClockStateSink_Vtbl { iid == &::IID } } -pub trait IMFCollection_Impl: Sized { +pub trait IMFCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetElementCount(&self) -> windows_core::Result; fn GetElement(&self, dwelementindex: u32) -> windows_core::Result; fn AddElement(&self, punkelement: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -6828,14 +5040,8 @@ pub trait IMFCollection_Impl: Sized { } impl windows_core::RuntimeName for IMFCollection {} impl IMFCollection_Vtbl { - pub const fn new() -> IMFCollection_Vtbl - where - Identity: IMFCollection_Impl, - { - unsafe extern "system" fn GetElementCount(this: *mut core::ffi::c_void, pcelements: *mut u32) -> windows_core::HRESULT - where - Identity: IMFCollection_Impl, - { + pub const fn new() -> IMFCollection_Vtbl { + unsafe extern "system" fn GetElementCount(this: *mut core::ffi::c_void, pcelements: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCollection_Impl::GetElementCount(this) { Ok(ok__) => { @@ -6845,10 +5051,7 @@ impl IMFCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetElement(this: *mut core::ffi::c_void, dwelementindex: u32, ppunkelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCollection_Impl, - { + unsafe extern "system" fn GetElement(this: *mut core::ffi::c_void, dwelementindex: u32, ppunkelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCollection_Impl::GetElement(this, core::mem::transmute_copy(&dwelementindex)) { Ok(ok__) => { @@ -6858,17 +5061,11 @@ impl IMFCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddElement(this: *mut core::ffi::c_void, punkelement: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCollection_Impl, - { + unsafe extern "system" fn AddElement(this: *mut core::ffi::c_void, punkelement: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCollection_Impl::AddElement(this, windows_core::from_raw_borrowed(&punkelement)).into() } - unsafe extern "system" fn RemoveElement(this: *mut core::ffi::c_void, dwelementindex: u32, ppunkelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCollection_Impl, - { + unsafe extern "system" fn RemoveElement(this: *mut core::ffi::c_void, dwelementindex: u32, ppunkelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCollection_Impl::RemoveElement(this, core::mem::transmute_copy(&dwelementindex)) { Ok(ok__) => { @@ -6878,17 +5075,11 @@ impl IMFCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertElementAt(this: *mut core::ffi::c_void, dwindex: u32, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCollection_Impl, - { + unsafe extern "system" fn InsertElementAt(this: *mut core::ffi::c_void, dwindex: u32, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCollection_Impl::InsertElementAt(this, core::mem::transmute_copy(&dwindex), windows_core::from_raw_borrowed(&punknown)).into() } - unsafe extern "system" fn RemoveAllElements(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFCollection_Impl, - { + unsafe extern "system" fn RemoveAllElements(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCollection_Impl::RemoveAllElements(this).into() } @@ -6906,7 +5097,7 @@ impl IMFCollection_Vtbl { iid == &::IID } } -pub trait IMFContentDecryptionModule_Impl: Sized { +pub trait IMFContentDecryptionModule_Impl: Sized + windows_core::IUnknownImpl { fn SetContentEnabler(&self, contentenabler: Option<&IMFContentEnabler>, result: Option<&IMFAsyncResult>) -> windows_core::Result<()>; fn GetSuspendNotify(&self) -> windows_core::Result; fn SetPMPHostApp(&self, pmphostapp: Option<&IMFPMPHostApp>) -> windows_core::Result<()>; @@ -6917,21 +5108,12 @@ pub trait IMFContentDecryptionModule_Impl: Sized { } impl windows_core::RuntimeName for IMFContentDecryptionModule {} impl IMFContentDecryptionModule_Vtbl { - pub const fn new() -> IMFContentDecryptionModule_Vtbl - where - Identity: IMFContentDecryptionModule_Impl, - { - unsafe extern "system" fn SetContentEnabler(this: *mut core::ffi::c_void, contentenabler: *mut core::ffi::c_void, result: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModule_Impl, - { + pub const fn new() -> IMFContentDecryptionModule_Vtbl { + unsafe extern "system" fn SetContentEnabler(this: *mut core::ffi::c_void, contentenabler: *mut core::ffi::c_void, result: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModule_Impl::SetContentEnabler(this, windows_core::from_raw_borrowed(&contentenabler), windows_core::from_raw_borrowed(&result)).into() } - unsafe extern "system" fn GetSuspendNotify(this: *mut core::ffi::c_void, notify: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModule_Impl, - { + unsafe extern "system" fn GetSuspendNotify(this: *mut core::ffi::c_void, notify: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModule_Impl::GetSuspendNotify(this) { Ok(ok__) => { @@ -6941,17 +5123,11 @@ impl IMFContentDecryptionModule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPMPHostApp(this: *mut core::ffi::c_void, pmphostapp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModule_Impl, - { + unsafe extern "system" fn SetPMPHostApp(this: *mut core::ffi::c_void, pmphostapp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModule_Impl::SetPMPHostApp(this, windows_core::from_raw_borrowed(&pmphostapp)).into() } - unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, sessiontype: MF_MEDIAKEYSESSION_TYPE, callbacks: *mut core::ffi::c_void, session: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModule_Impl, - { + unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, sessiontype: MF_MEDIAKEYSESSION_TYPE, callbacks: *mut core::ffi::c_void, session: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModule_Impl::CreateSession(this, core::mem::transmute_copy(&sessiontype), windows_core::from_raw_borrowed(&callbacks)) { Ok(ok__) => { @@ -6961,17 +5137,11 @@ impl IMFContentDecryptionModule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerCertificate(this: *mut core::ffi::c_void, certificate: *const u8, certificatesize: u32) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModule_Impl, - { + unsafe extern "system" fn SetServerCertificate(this: *mut core::ffi::c_void, certificate: *const u8, certificatesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModule_Impl::SetServerCertificate(this, core::mem::transmute_copy(&certificate), core::mem::transmute_copy(&certificatesize)).into() } - unsafe extern "system" fn CreateTrustedInput(this: *mut core::ffi::c_void, contentinitdata: *const u8, contentinitdatasize: u32, trustedinput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModule_Impl, - { + unsafe extern "system" fn CreateTrustedInput(this: *mut core::ffi::c_void, contentinitdata: *const u8, contentinitdatasize: u32, trustedinput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModule_Impl::CreateTrustedInput(this, core::mem::transmute_copy(&contentinitdata), core::mem::transmute_copy(&contentinitdatasize)) { Ok(ok__) => { @@ -6981,10 +5151,7 @@ impl IMFContentDecryptionModule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProtectionSystemIds(this: *mut core::ffi::c_void, systemids: *mut *mut windows_core::GUID, count: *mut u32) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModule_Impl, - { + unsafe extern "system" fn GetProtectionSystemIds(this: *mut core::ffi::c_void, systemids: *mut *mut windows_core::GUID, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModule_Impl::GetProtectionSystemIds(this, core::mem::transmute_copy(&systemids), core::mem::transmute_copy(&count)).into() } @@ -7004,7 +5171,7 @@ impl IMFContentDecryptionModule_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMFContentDecryptionModuleAccess_Impl: Sized { +pub trait IMFContentDecryptionModuleAccess_Impl: Sized + windows_core::IUnknownImpl { fn CreateContentDecryptionModule(&self, contentdecryptionmoduleproperties: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>) -> windows_core::Result; fn GetConfiguration(&self) -> windows_core::Result; fn GetKeySystem(&self) -> windows_core::Result; @@ -7013,14 +5180,8 @@ pub trait IMFContentDecryptionModuleAccess_Impl: Sized { impl windows_core::RuntimeName for IMFContentDecryptionModuleAccess {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFContentDecryptionModuleAccess_Vtbl { - pub const fn new() -> IMFContentDecryptionModuleAccess_Vtbl - where - Identity: IMFContentDecryptionModuleAccess_Impl, - { - unsafe extern "system" fn CreateContentDecryptionModule(this: *mut core::ffi::c_void, contentdecryptionmoduleproperties: *mut core::ffi::c_void, contentdecryptionmodule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleAccess_Impl, - { + pub const fn new() -> IMFContentDecryptionModuleAccess_Vtbl { + unsafe extern "system" fn CreateContentDecryptionModule(this: *mut core::ffi::c_void, contentdecryptionmoduleproperties: *mut core::ffi::c_void, contentdecryptionmodule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModuleAccess_Impl::CreateContentDecryptionModule(this, windows_core::from_raw_borrowed(&contentdecryptionmoduleproperties)) { Ok(ok__) => { @@ -7030,10 +5191,7 @@ impl IMFContentDecryptionModuleAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConfiguration(this: *mut core::ffi::c_void, configuration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleAccess_Impl, - { + unsafe extern "system" fn GetConfiguration(this: *mut core::ffi::c_void, configuration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModuleAccess_Impl::GetConfiguration(this) { Ok(ok__) => { @@ -7043,10 +5201,7 @@ impl IMFContentDecryptionModuleAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeySystem(this: *mut core::ffi::c_void, keysystem: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleAccess_Impl, - { + unsafe extern "system" fn GetKeySystem(this: *mut core::ffi::c_void, keysystem: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModuleAccess_Impl::GetKeySystem(this) { Ok(ok__) => { @@ -7068,7 +5223,7 @@ impl IMFContentDecryptionModuleAccess_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMFContentDecryptionModuleFactory_Impl: Sized { +pub trait IMFContentDecryptionModuleFactory_Impl: Sized + windows_core::IUnknownImpl { fn IsTypeSupported(&self, keysystem: &windows_core::PCWSTR, contenttype: &windows_core::PCWSTR) -> super::super::Foundation::BOOL; fn CreateContentDecryptionModuleAccess(&self, keysystem: &windows_core::PCWSTR, configurations: *const Option, numconfigurations: u32) -> windows_core::Result; } @@ -7076,21 +5231,12 @@ pub trait IMFContentDecryptionModuleFactory_Impl: Sized { impl windows_core::RuntimeName for IMFContentDecryptionModuleFactory {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFContentDecryptionModuleFactory_Vtbl { - pub const fn new() -> IMFContentDecryptionModuleFactory_Vtbl - where - Identity: IMFContentDecryptionModuleFactory_Impl, - { - unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, keysystem: windows_core::PCWSTR, contenttype: windows_core::PCWSTR) -> super::super::Foundation::BOOL - where - Identity: IMFContentDecryptionModuleFactory_Impl, - { + pub const fn new() -> IMFContentDecryptionModuleFactory_Vtbl { + unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, keysystem: windows_core::PCWSTR, contenttype: windows_core::PCWSTR) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModuleFactory_Impl::IsTypeSupported(this, core::mem::transmute(&keysystem), core::mem::transmute(&contenttype)) } - unsafe extern "system" fn CreateContentDecryptionModuleAccess(this: *mut core::ffi::c_void, keysystem: windows_core::PCWSTR, configurations: *const *mut core::ffi::c_void, numconfigurations: u32, contentdecryptionmoduleaccess: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleFactory_Impl, - { + unsafe extern "system" fn CreateContentDecryptionModuleAccess(this: *mut core::ffi::c_void, keysystem: windows_core::PCWSTR, configurations: *const *mut core::ffi::c_void, numconfigurations: u32, contentdecryptionmoduleaccess: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModuleFactory_Impl::CreateContentDecryptionModuleAccess(this, core::mem::transmute(&keysystem), core::mem::transmute_copy(&configurations), core::mem::transmute_copy(&numconfigurations)) { Ok(ok__) => { @@ -7110,7 +5256,7 @@ impl IMFContentDecryptionModuleFactory_Vtbl { iid == &::IID } } -pub trait IMFContentDecryptionModuleSession_Impl: Sized { +pub trait IMFContentDecryptionModuleSession_Impl: Sized + windows_core::IUnknownImpl { fn GetSessionId(&self) -> windows_core::Result; fn GetExpiration(&self) -> windows_core::Result; fn GetKeyStatuses(&self, keystatuses: *mut *mut MFMediaKeyStatus, numkeystatuses: *mut u32) -> windows_core::Result<()>; @@ -7122,14 +5268,8 @@ pub trait IMFContentDecryptionModuleSession_Impl: Sized { } impl windows_core::RuntimeName for IMFContentDecryptionModuleSession {} impl IMFContentDecryptionModuleSession_Vtbl { - pub const fn new() -> IMFContentDecryptionModuleSession_Vtbl - where - Identity: IMFContentDecryptionModuleSession_Impl, - { - unsafe extern "system" fn GetSessionId(this: *mut core::ffi::c_void, sessionid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleSession_Impl, - { + pub const fn new() -> IMFContentDecryptionModuleSession_Vtbl { + unsafe extern "system" fn GetSessionId(this: *mut core::ffi::c_void, sessionid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModuleSession_Impl::GetSessionId(this) { Ok(ok__) => { @@ -7139,10 +5279,7 @@ impl IMFContentDecryptionModuleSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpiration(this: *mut core::ffi::c_void, expiration: *mut f64) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleSession_Impl, - { + unsafe extern "system" fn GetExpiration(this: *mut core::ffi::c_void, expiration: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModuleSession_Impl::GetExpiration(this) { Ok(ok__) => { @@ -7152,17 +5289,11 @@ impl IMFContentDecryptionModuleSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyStatuses(this: *mut core::ffi::c_void, keystatuses: *mut *mut MFMediaKeyStatus, numkeystatuses: *mut u32) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleSession_Impl, - { + unsafe extern "system" fn GetKeyStatuses(this: *mut core::ffi::c_void, keystatuses: *mut *mut MFMediaKeyStatus, numkeystatuses: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModuleSession_Impl::GetKeyStatuses(this, core::mem::transmute_copy(&keystatuses), core::mem::transmute_copy(&numkeystatuses)).into() } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, sessionid: windows_core::PCWSTR, loaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleSession_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, sessionid: windows_core::PCWSTR, loaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModuleSession_Impl::Load(this, core::mem::transmute(&sessionid)) { Ok(ok__) => { @@ -7172,31 +5303,19 @@ impl IMFContentDecryptionModuleSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateRequest(this: *mut core::ffi::c_void, initdatatype: windows_core::PCWSTR, initdata: *const u8, initdatasize: u32) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleSession_Impl, - { + unsafe extern "system" fn GenerateRequest(this: *mut core::ffi::c_void, initdatatype: windows_core::PCWSTR, initdata: *const u8, initdatasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModuleSession_Impl::GenerateRequest(this, core::mem::transmute(&initdatatype), core::mem::transmute_copy(&initdata), core::mem::transmute_copy(&initdatasize)).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, response: *const u8, responsesize: u32) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleSession_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, response: *const u8, responsesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModuleSession_Impl::Update(this, core::mem::transmute_copy(&response), core::mem::transmute_copy(&responsesize)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleSession_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModuleSession_Impl::Close(this).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleSession_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModuleSession_Impl::Remove(this).into() } @@ -7216,27 +5335,18 @@ impl IMFContentDecryptionModuleSession_Vtbl { iid == &::IID } } -pub trait IMFContentDecryptionModuleSessionCallbacks_Impl: Sized { +pub trait IMFContentDecryptionModuleSessionCallbacks_Impl: Sized + windows_core::IUnknownImpl { fn KeyMessage(&self, messagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, message: *const u8, messagesize: u32, destinationurl: &windows_core::PCWSTR) -> windows_core::Result<()>; fn KeyStatusChanged(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFContentDecryptionModuleSessionCallbacks {} impl IMFContentDecryptionModuleSessionCallbacks_Vtbl { - pub const fn new() -> IMFContentDecryptionModuleSessionCallbacks_Vtbl - where - Identity: IMFContentDecryptionModuleSessionCallbacks_Impl, - { - unsafe extern "system" fn KeyMessage(this: *mut core::ffi::c_void, messagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, message: *const u8, messagesize: u32, destinationurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleSessionCallbacks_Impl, - { + pub const fn new() -> IMFContentDecryptionModuleSessionCallbacks_Vtbl { + unsafe extern "system" fn KeyMessage(this: *mut core::ffi::c_void, messagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, message: *const u8, messagesize: u32, destinationurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModuleSessionCallbacks_Impl::KeyMessage(this, core::mem::transmute_copy(&messagetype), core::mem::transmute_copy(&message), core::mem::transmute_copy(&messagesize), core::mem::transmute(&destinationurl)).into() } - unsafe extern "system" fn KeyStatusChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentDecryptionModuleSessionCallbacks_Impl, - { + unsafe extern "system" fn KeyStatusChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModuleSessionCallbacks_Impl::KeyStatusChanged(this).into() } @@ -7250,19 +5360,13 @@ impl IMFContentDecryptionModuleSessionCallbacks_Vtbl { iid == &::IID } } -pub trait IMFContentDecryptorContext_Impl: Sized { +pub trait IMFContentDecryptorContext_Impl: Sized + windows_core::IUnknownImpl { fn InitializeHardwareKey(&self, inputprivatedatabytecount: u32, inputprivatedata: *const core::ffi::c_void) -> windows_core::Result; } impl windows_core::RuntimeName for IMFContentDecryptorContext {} impl IMFContentDecryptorContext_Vtbl { - pub const fn new() -> IMFContentDecryptorContext_Vtbl - where - Identity: IMFContentDecryptorContext_Impl, - { - unsafe extern "system" fn InitializeHardwareKey(this: *mut core::ffi::c_void, inputprivatedatabytecount: u32, inputprivatedata: *const core::ffi::c_void, outputprivatedata: *mut u64) -> windows_core::HRESULT - where - Identity: IMFContentDecryptorContext_Impl, - { + pub const fn new() -> IMFContentDecryptorContext_Vtbl { + unsafe extern "system" fn InitializeHardwareKey(this: *mut core::ffi::c_void, inputprivatedatabytecount: u32, inputprivatedata: *const core::ffi::c_void, outputprivatedata: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptorContext_Impl::InitializeHardwareKey(this, core::mem::transmute_copy(&inputprivatedatabytecount), core::mem::transmute_copy(&inputprivatedata)) { Ok(ok__) => { @@ -7278,7 +5382,7 @@ impl IMFContentDecryptorContext_Vtbl { iid == &::IID } } -pub trait IMFContentEnabler_Impl: Sized { +pub trait IMFContentEnabler_Impl: Sized + windows_core::IUnknownImpl { fn GetEnableType(&self) -> windows_core::Result; fn GetEnableURL(&self, ppwszurl: *mut windows_core::PWSTR, pcchurl: *mut u32, ptruststatus: *mut MF_URL_TRUST_STATUS) -> windows_core::Result<()>; fn GetEnableData(&self, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()>; @@ -7289,14 +5393,8 @@ pub trait IMFContentEnabler_Impl: Sized { } impl windows_core::RuntimeName for IMFContentEnabler {} impl IMFContentEnabler_Vtbl { - pub const fn new() -> IMFContentEnabler_Vtbl - where - Identity: IMFContentEnabler_Impl, - { - unsafe extern "system" fn GetEnableType(this: *mut core::ffi::c_void, ptype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFContentEnabler_Impl, - { + pub const fn new() -> IMFContentEnabler_Vtbl { + unsafe extern "system" fn GetEnableType(this: *mut core::ffi::c_void, ptype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentEnabler_Impl::GetEnableType(this) { Ok(ok__) => { @@ -7306,24 +5404,15 @@ impl IMFContentEnabler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnableURL(this: *mut core::ffi::c_void, ppwszurl: *mut windows_core::PWSTR, pcchurl: *mut u32, ptruststatus: *mut MF_URL_TRUST_STATUS) -> windows_core::HRESULT - where - Identity: IMFContentEnabler_Impl, - { + unsafe extern "system" fn GetEnableURL(this: *mut core::ffi::c_void, ppwszurl: *mut windows_core::PWSTR, pcchurl: *mut u32, ptruststatus: *mut MF_URL_TRUST_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentEnabler_Impl::GetEnableURL(this, core::mem::transmute_copy(&ppwszurl), core::mem::transmute_copy(&pcchurl), core::mem::transmute_copy(&ptruststatus)).into() } - unsafe extern "system" fn GetEnableData(this: *mut core::ffi::c_void, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::HRESULT - where - Identity: IMFContentEnabler_Impl, - { + unsafe extern "system" fn GetEnableData(this: *mut core::ffi::c_void, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentEnabler_Impl::GetEnableData(this, core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pcbdata)).into() } - unsafe extern "system" fn IsAutomaticSupported(this: *mut core::ffi::c_void, pfautomatic: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFContentEnabler_Impl, - { + unsafe extern "system" fn IsAutomaticSupported(this: *mut core::ffi::c_void, pfautomatic: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentEnabler_Impl::IsAutomaticSupported(this) { Ok(ok__) => { @@ -7333,24 +5422,15 @@ impl IMFContentEnabler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AutomaticEnable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentEnabler_Impl, - { + unsafe extern "system" fn AutomaticEnable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentEnabler_Impl::AutomaticEnable(this).into() } - unsafe extern "system" fn MonitorEnable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentEnabler_Impl, - { + unsafe extern "system" fn MonitorEnable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentEnabler_Impl::MonitorEnable(this).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentEnabler_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentEnabler_Impl::Cancel(this).into() } @@ -7369,27 +5449,18 @@ impl IMFContentEnabler_Vtbl { iid == &::IID } } -pub trait IMFContentProtectionDevice_Impl: Sized { +pub trait IMFContentProtectionDevice_Impl: Sized + windows_core::IUnknownImpl { fn InvokeFunction(&self, functionid: u32, inputbufferbytecount: u32, inputbuffer: *const u8, outputbufferbytecount: *mut u32, outputbuffer: *mut u8) -> windows_core::Result<()>; fn GetPrivateDataByteCount(&self, privateinputbytecount: *mut u32, privateoutputbytecount: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFContentProtectionDevice {} impl IMFContentProtectionDevice_Vtbl { - pub const fn new() -> IMFContentProtectionDevice_Vtbl - where - Identity: IMFContentProtectionDevice_Impl, - { - unsafe extern "system" fn InvokeFunction(this: *mut core::ffi::c_void, functionid: u32, inputbufferbytecount: u32, inputbuffer: *const u8, outputbufferbytecount: *mut u32, outputbuffer: *mut u8) -> windows_core::HRESULT - where - Identity: IMFContentProtectionDevice_Impl, - { + pub const fn new() -> IMFContentProtectionDevice_Vtbl { + unsafe extern "system" fn InvokeFunction(this: *mut core::ffi::c_void, functionid: u32, inputbufferbytecount: u32, inputbuffer: *const u8, outputbufferbytecount: *mut u32, outputbuffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentProtectionDevice_Impl::InvokeFunction(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&inputbufferbytecount), core::mem::transmute_copy(&inputbuffer), core::mem::transmute_copy(&outputbufferbytecount), core::mem::transmute_copy(&outputbuffer)).into() } - unsafe extern "system" fn GetPrivateDataByteCount(this: *mut core::ffi::c_void, privateinputbytecount: *mut u32, privateoutputbytecount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFContentProtectionDevice_Impl, - { + unsafe extern "system" fn GetPrivateDataByteCount(this: *mut core::ffi::c_void, privateinputbytecount: *mut u32, privateoutputbytecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentProtectionDevice_Impl::GetPrivateDataByteCount(this, core::mem::transmute_copy(&privateinputbytecount), core::mem::transmute_copy(&privateoutputbytecount)).into() } @@ -7403,27 +5474,18 @@ impl IMFContentProtectionDevice_Vtbl { iid == &::IID } } -pub trait IMFContentProtectionManager_Impl: Sized { +pub trait IMFContentProtectionManager_Impl: Sized + windows_core::IUnknownImpl { fn BeginEnableContent(&self, penableractivate: Option<&IMFActivate>, ptopo: Option<&IMFTopology>, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndEnableContent(&self, presult: Option<&IMFAsyncResult>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFContentProtectionManager {} impl IMFContentProtectionManager_Vtbl { - pub const fn new() -> IMFContentProtectionManager_Vtbl - where - Identity: IMFContentProtectionManager_Impl, - { - unsafe extern "system" fn BeginEnableContent(this: *mut core::ffi::c_void, penableractivate: *mut core::ffi::c_void, ptopo: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentProtectionManager_Impl, - { + pub const fn new() -> IMFContentProtectionManager_Vtbl { + unsafe extern "system" fn BeginEnableContent(this: *mut core::ffi::c_void, penableractivate: *mut core::ffi::c_void, ptopo: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentProtectionManager_Impl::BeginEnableContent(this, windows_core::from_raw_borrowed(&penableractivate), windows_core::from_raw_borrowed(&ptopo), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndEnableContent(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFContentProtectionManager_Impl, - { + unsafe extern "system" fn EndEnableContent(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentProtectionManager_Impl::EndEnableContent(this, windows_core::from_raw_borrowed(&presult)).into() } @@ -7437,27 +5499,18 @@ impl IMFContentProtectionManager_Vtbl { iid == &::IID } } -pub trait IMFD3D12SynchronizationObject_Impl: Sized { +pub trait IMFD3D12SynchronizationObject_Impl: Sized + windows_core::IUnknownImpl { fn SignalEventOnFinalResourceRelease(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFD3D12SynchronizationObject {} impl IMFD3D12SynchronizationObject_Vtbl { - pub const fn new() -> IMFD3D12SynchronizationObject_Vtbl - where - Identity: IMFD3D12SynchronizationObject_Impl, - { - unsafe extern "system" fn SignalEventOnFinalResourceRelease(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IMFD3D12SynchronizationObject_Impl, - { + pub const fn new() -> IMFD3D12SynchronizationObject_Vtbl { + unsafe extern "system" fn SignalEventOnFinalResourceRelease(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFD3D12SynchronizationObject_Impl::SignalEventOnFinalResourceRelease(this, core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFD3D12SynchronizationObject_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFD3D12SynchronizationObject_Impl::Reset(this).into() } @@ -7472,7 +5525,7 @@ impl IMFD3D12SynchronizationObject_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -pub trait IMFD3D12SynchronizationObjectCommands_Impl: Sized { +pub trait IMFD3D12SynchronizationObjectCommands_Impl: Sized + windows_core::IUnknownImpl { fn EnqueueResourceReady(&self, pproducercommandqueue: Option<&super::super::Graphics::Direct3D12::ID3D12CommandQueue>) -> windows_core::Result<()>; fn EnqueueResourceReadyWait(&self, pconsumercommandqueue: Option<&super::super::Graphics::Direct3D12::ID3D12CommandQueue>) -> windows_core::Result<()>; fn SignalEventOnResourceReady(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()>; @@ -7482,35 +5535,20 @@ pub trait IMFD3D12SynchronizationObjectCommands_Impl: Sized { impl windows_core::RuntimeName for IMFD3D12SynchronizationObjectCommands {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl IMFD3D12SynchronizationObjectCommands_Vtbl { - pub const fn new() -> IMFD3D12SynchronizationObjectCommands_Vtbl - where - Identity: IMFD3D12SynchronizationObjectCommands_Impl, - { - unsafe extern "system" fn EnqueueResourceReady(this: *mut core::ffi::c_void, pproducercommandqueue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFD3D12SynchronizationObjectCommands_Impl, - { + pub const fn new() -> IMFD3D12SynchronizationObjectCommands_Vtbl { + unsafe extern "system" fn EnqueueResourceReady(this: *mut core::ffi::c_void, pproducercommandqueue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFD3D12SynchronizationObjectCommands_Impl::EnqueueResourceReady(this, windows_core::from_raw_borrowed(&pproducercommandqueue)).into() } - unsafe extern "system" fn EnqueueResourceReadyWait(this: *mut core::ffi::c_void, pconsumercommandqueue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFD3D12SynchronizationObjectCommands_Impl, - { + unsafe extern "system" fn EnqueueResourceReadyWait(this: *mut core::ffi::c_void, pconsumercommandqueue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFD3D12SynchronizationObjectCommands_Impl::EnqueueResourceReadyWait(this, windows_core::from_raw_borrowed(&pconsumercommandqueue)).into() } - unsafe extern "system" fn SignalEventOnResourceReady(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IMFD3D12SynchronizationObjectCommands_Impl, - { + unsafe extern "system" fn SignalEventOnResourceReady(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFD3D12SynchronizationObjectCommands_Impl::SignalEventOnResourceReady(this, core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn EnqueueResourceRelease(this: *mut core::ffi::c_void, pconsumercommandqueue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFD3D12SynchronizationObjectCommands_Impl, - { + unsafe extern "system" fn EnqueueResourceRelease(this: *mut core::ffi::c_void, pconsumercommandqueue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFD3D12SynchronizationObjectCommands_Impl::EnqueueResourceRelease(this, windows_core::from_raw_borrowed(&pconsumercommandqueue)).into() } @@ -7526,19 +5564,13 @@ impl IMFD3D12SynchronizationObjectCommands_Vtbl { iid == &::IID } } -pub trait IMFDLNASinkInit_Impl: Sized { +pub trait IMFDLNASinkInit_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pbytestream: Option<&IMFByteStream>, fpal: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFDLNASinkInit {} impl IMFDLNASinkInit_Vtbl { - pub const fn new() -> IMFDLNASinkInit_Vtbl - where - Identity: IMFDLNASinkInit_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, fpal: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFDLNASinkInit_Impl, - { + pub const fn new() -> IMFDLNASinkInit_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, fpal: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDLNASinkInit_Impl::Initialize(this, windows_core::from_raw_borrowed(&pbytestream), core::mem::transmute_copy(&fpal)).into() } @@ -7548,27 +5580,18 @@ impl IMFDLNASinkInit_Vtbl { iid == &::IID } } -pub trait IMFDRMNetHelper_Impl: Sized { +pub trait IMFDRMNetHelper_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IMFDRMNetHelper {} impl IMFDRMNetHelper_Vtbl { - pub const fn new() -> IMFDRMNetHelper_Vtbl - where - Identity: IMFDRMNetHelper_Impl, - { - unsafe extern "system" fn ProcessLicenseRequest(this: *mut core::ffi::c_void, plicenserequest: *const u8, cblicenserequest: u32, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32, pbstrkid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFDRMNetHelper_Impl, - { + pub const fn new() -> IMFDRMNetHelper_Vtbl { + unsafe extern "system" fn ProcessLicenseRequest(this: *mut core::ffi::c_void, plicenserequest: *const u8, cblicenserequest: u32, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32, pbstrkid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDRMNetHelper_Impl::ProcessLicenseRequest(this, 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() } - unsafe extern "system" fn GetChainedLicenseResponse(this: *mut core::ffi::c_void, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32) -> windows_core::HRESULT - where - Identity: IMFDRMNetHelper_Impl, - { + unsafe extern "system" fn GetChainedLicenseResponse(this: *mut core::ffi::c_void, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDRMNetHelper_Impl::GetChainedLicenseResponse(this, core::mem::transmute_copy(&pplicenseresponse), core::mem::transmute_copy(&pcblicenseresponse)).into() } @@ -7582,7 +5605,7 @@ impl IMFDRMNetHelper_Vtbl { iid == &::IID } } -pub trait IMFDXGIBuffer_Impl: Sized { +pub trait IMFDXGIBuffer_Impl: Sized + windows_core::IUnknownImpl { fn GetResource(&self, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetSubresourceIndex(&self) -> windows_core::Result; fn GetUnknown(&self, guid: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -7590,21 +5613,12 @@ pub trait IMFDXGIBuffer_Impl: Sized { } impl windows_core::RuntimeName for IMFDXGIBuffer {} impl IMFDXGIBuffer_Vtbl { - pub const fn new() -> IMFDXGIBuffer_Vtbl - where - Identity: IMFDXGIBuffer_Impl, - { - unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDXGIBuffer_Impl, - { + pub const fn new() -> IMFDXGIBuffer_Vtbl { + unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIBuffer_Impl::GetResource(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn GetSubresourceIndex(this: *mut core::ffi::c_void, pusubresource: *mut u32) -> windows_core::HRESULT - where - Identity: IMFDXGIBuffer_Impl, - { + unsafe extern "system" fn GetSubresourceIndex(this: *mut core::ffi::c_void, pusubresource: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDXGIBuffer_Impl::GetSubresourceIndex(this) { Ok(ok__) => { @@ -7614,17 +5628,11 @@ impl IMFDXGIBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUnknown(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDXGIBuffer_Impl, - { + unsafe extern "system" fn GetUnknown(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIBuffer_Impl::GetUnknown(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn SetUnknown(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, punkdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDXGIBuffer_Impl, - { + unsafe extern "system" fn SetUnknown(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, punkdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIBuffer_Impl::SetUnknown(this, core::mem::transmute_copy(&guid), windows_core::from_raw_borrowed(&punkdata)).into() } @@ -7640,7 +5648,7 @@ impl IMFDXGIBuffer_Vtbl { iid == &::IID } } -pub trait IMFDXGIDeviceManager_Impl: Sized { +pub trait IMFDXGIDeviceManager_Impl: Sized + windows_core::IUnknownImpl { fn CloseDeviceHandle(&self, hdevice: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn GetVideoService(&self, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn LockDevice(&self, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppunkdevice: *mut *mut core::ffi::c_void, fblock: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -7651,35 +5659,20 @@ pub trait IMFDXGIDeviceManager_Impl: Sized { } impl windows_core::RuntimeName for IMFDXGIDeviceManager {} impl IMFDXGIDeviceManager_Vtbl { - pub const fn new() -> IMFDXGIDeviceManager_Vtbl - where - Identity: IMFDXGIDeviceManager_Impl, - { - unsafe extern "system" fn CloseDeviceHandle(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IMFDXGIDeviceManager_Impl, - { + pub const fn new() -> IMFDXGIDeviceManager_Vtbl { + unsafe extern "system" fn CloseDeviceHandle(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIDeviceManager_Impl::CloseDeviceHandle(this, core::mem::transmute_copy(&hdevice)).into() } - unsafe extern "system" fn GetVideoService(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDXGIDeviceManager_Impl, - { + unsafe extern "system" fn GetVideoService(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIDeviceManager_Impl::GetVideoService(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppservice)).into() } - unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppunkdevice: *mut *mut core::ffi::c_void, fblock: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFDXGIDeviceManager_Impl, - { + unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppunkdevice: *mut *mut core::ffi::c_void, fblock: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIDeviceManager_Impl::LockDevice(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunkdevice), core::mem::transmute_copy(&fblock)).into() } - unsafe extern "system" fn OpenDeviceHandle(this: *mut core::ffi::c_void, phdevice: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IMFDXGIDeviceManager_Impl, - { + unsafe extern "system" fn OpenDeviceHandle(this: *mut core::ffi::c_void, phdevice: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDXGIDeviceManager_Impl::OpenDeviceHandle(this) { Ok(ok__) => { @@ -7689,24 +5682,15 @@ impl IMFDXGIDeviceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResetDevice(this: *mut core::ffi::c_void, punkdevice: *mut core::ffi::c_void, resettoken: u32) -> windows_core::HRESULT - where - Identity: IMFDXGIDeviceManager_Impl, - { + unsafe extern "system" fn ResetDevice(this: *mut core::ffi::c_void, punkdevice: *mut core::ffi::c_void, resettoken: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIDeviceManager_Impl::ResetDevice(this, windows_core::from_raw_borrowed(&punkdevice), core::mem::transmute_copy(&resettoken)).into() } - unsafe extern "system" fn TestDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IMFDXGIDeviceManager_Impl, - { + unsafe extern "system" fn TestDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIDeviceManager_Impl::TestDevice(this, core::mem::transmute_copy(&hdevice)).into() } - unsafe extern "system" fn UnlockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, fsavestate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFDXGIDeviceManager_Impl, - { + unsafe extern "system" fn UnlockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, fsavestate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIDeviceManager_Impl::UnlockDevice(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&fsavestate)).into() } @@ -7725,19 +5709,13 @@ impl IMFDXGIDeviceManager_Vtbl { iid == &::IID } } -pub trait IMFDXGIDeviceManagerSource_Impl: Sized { +pub trait IMFDXGIDeviceManagerSource_Impl: Sized + windows_core::IUnknownImpl { fn GetManager(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFDXGIDeviceManagerSource {} impl IMFDXGIDeviceManagerSource_Vtbl { - pub const fn new() -> IMFDXGIDeviceManagerSource_Vtbl - where - Identity: IMFDXGIDeviceManagerSource_Impl, - { - unsafe extern "system" fn GetManager(this: *mut core::ffi::c_void, ppmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDXGIDeviceManagerSource_Impl, - { + pub const fn new() -> IMFDXGIDeviceManagerSource_Vtbl { + unsafe extern "system" fn GetManager(this: *mut core::ffi::c_void, ppmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDXGIDeviceManagerSource_Impl::GetManager(this) { Ok(ok__) => { @@ -7753,35 +5731,23 @@ impl IMFDXGIDeviceManagerSource_Vtbl { iid == &::IID } } -pub trait IMFDesiredSample_Impl: Sized { +pub trait IMFDesiredSample_Impl: Sized + windows_core::IUnknownImpl { fn GetDesiredSampleTimeAndDuration(&self, phnssampletime: *mut i64, phnssampleduration: *mut i64) -> windows_core::Result<()>; fn SetDesiredSampleTimeAndDuration(&self, hnssampletime: i64, hnssampleduration: i64); fn Clear(&self); } impl windows_core::RuntimeName for IMFDesiredSample {} impl IMFDesiredSample_Vtbl { - pub const fn new() -> IMFDesiredSample_Vtbl - where - Identity: IMFDesiredSample_Impl, - { - unsafe extern "system" fn GetDesiredSampleTimeAndDuration(this: *mut core::ffi::c_void, phnssampletime: *mut i64, phnssampleduration: *mut i64) -> windows_core::HRESULT - where - Identity: IMFDesiredSample_Impl, - { + pub const fn new() -> IMFDesiredSample_Vtbl { + unsafe extern "system" fn GetDesiredSampleTimeAndDuration(this: *mut core::ffi::c_void, phnssampletime: *mut i64, phnssampleduration: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDesiredSample_Impl::GetDesiredSampleTimeAndDuration(this, core::mem::transmute_copy(&phnssampletime), core::mem::transmute_copy(&phnssampleduration)).into() } - unsafe extern "system" fn SetDesiredSampleTimeAndDuration(this: *mut core::ffi::c_void, hnssampletime: i64, hnssampleduration: i64) - where - Identity: IMFDesiredSample_Impl, - { + unsafe extern "system" fn SetDesiredSampleTimeAndDuration(this: *mut core::ffi::c_void, hnssampletime: i64, hnssampleduration: i64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDesiredSample_Impl::SetDesiredSampleTimeAndDuration(this, core::mem::transmute_copy(&hnssampletime), core::mem::transmute_copy(&hnssampleduration)) } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) - where - Identity: IMFDesiredSample_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDesiredSample_Impl::Clear(this) } @@ -7796,7 +5762,7 @@ impl IMFDesiredSample_Vtbl { iid == &::IID } } -pub trait IMFDeviceTransform_Impl: Sized { +pub trait IMFDeviceTransform_Impl: Sized + windows_core::IUnknownImpl { fn InitializeTransform(&self, pattributes: Option<&IMFAttributes>) -> windows_core::Result<()>; fn GetInputAvailableType(&self, dwinputstreamid: u32, dwtypeindex: u32) -> windows_core::Result; fn GetInputCurrentType(&self, dwinputstreamid: u32) -> windows_core::Result; @@ -7820,21 +5786,12 @@ pub trait IMFDeviceTransform_Impl: Sized { } impl windows_core::RuntimeName for IMFDeviceTransform {} impl IMFDeviceTransform_Vtbl { - pub const fn new() -> IMFDeviceTransform_Vtbl - where - Identity: IMFDeviceTransform_Impl, - { - unsafe extern "system" fn InitializeTransform(this: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + pub const fn new() -> IMFDeviceTransform_Vtbl { + unsafe extern "system" fn InitializeTransform(this: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::InitializeTransform(this, windows_core::from_raw_borrowed(&pattributes)).into() } - unsafe extern "system" fn GetInputAvailableType(this: *mut core::ffi::c_void, dwinputstreamid: u32, dwtypeindex: u32, pmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetInputAvailableType(this: *mut core::ffi::c_void, dwinputstreamid: u32, dwtypeindex: u32, pmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDeviceTransform_Impl::GetInputAvailableType(this, core::mem::transmute_copy(&dwinputstreamid), core::mem::transmute_copy(&dwtypeindex)) { Ok(ok__) => { @@ -7844,10 +5801,7 @@ impl IMFDeviceTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputCurrentType(this: *mut core::ffi::c_void, dwinputstreamid: u32, pmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetInputCurrentType(this: *mut core::ffi::c_void, dwinputstreamid: u32, pmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDeviceTransform_Impl::GetInputCurrentType(this, core::mem::transmute_copy(&dwinputstreamid)) { Ok(ok__) => { @@ -7857,10 +5811,7 @@ impl IMFDeviceTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputStreamAttributes(this: *mut core::ffi::c_void, dwinputstreamid: u32, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetInputStreamAttributes(this: *mut core::ffi::c_void, dwinputstreamid: u32, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDeviceTransform_Impl::GetInputStreamAttributes(this, core::mem::transmute_copy(&dwinputstreamid)) { Ok(ok__) => { @@ -7870,10 +5821,7 @@ impl IMFDeviceTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputAvailableType(this: *mut core::ffi::c_void, dwoutputstreamid: u32, dwtypeindex: u32, pmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetOutputAvailableType(this: *mut core::ffi::c_void, dwoutputstreamid: u32, dwtypeindex: u32, pmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDeviceTransform_Impl::GetOutputAvailableType(this, core::mem::transmute_copy(&dwoutputstreamid), core::mem::transmute_copy(&dwtypeindex)) { Ok(ok__) => { @@ -7883,10 +5831,7 @@ impl IMFDeviceTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputCurrentType(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetOutputCurrentType(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDeviceTransform_Impl::GetOutputCurrentType(this, core::mem::transmute_copy(&dwoutputstreamid)) { Ok(ok__) => { @@ -7896,10 +5841,7 @@ impl IMFDeviceTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputStreamAttributes(this: *mut core::ffi::c_void, dwoutputstreamid: u32, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetOutputStreamAttributes(this: *mut core::ffi::c_void, dwoutputstreamid: u32, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDeviceTransform_Impl::GetOutputStreamAttributes(this, core::mem::transmute_copy(&dwoutputstreamid)) { Ok(ok__) => { @@ -7909,59 +5851,35 @@ impl IMFDeviceTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcinputstreams: *mut u32, pcoutputstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcinputstreams: *mut u32, pcoutputstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::GetStreamCount(this, core::mem::transmute_copy(&pcinputstreams), core::mem::transmute_copy(&pcoutputstreams)).into() } - unsafe extern "system" fn GetStreamIDs(this: *mut core::ffi::c_void, dwinputidarraysize: u32, pdwinputstreamids: *mut u32, dwoutputidarraysize: u32, pdwoutputstreamids: *mut u32) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetStreamIDs(this: *mut core::ffi::c_void, dwinputidarraysize: u32, pdwinputstreamids: *mut u32, dwoutputidarraysize: u32, pdwoutputstreamids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::GetStreamIDs(this, core::mem::transmute_copy(&dwinputidarraysize), core::mem::transmute_copy(&pdwinputstreamids), core::mem::transmute_copy(&dwoutputidarraysize), core::mem::transmute_copy(&pdwoutputstreamids)).into() } - unsafe extern "system" fn ProcessEvent(this: *mut core::ffi::c_void, dwinputstreamid: u32, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn ProcessEvent(this: *mut core::ffi::c_void, dwinputstreamid: u32, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::ProcessEvent(this, core::mem::transmute_copy(&dwinputstreamid), windows_core::from_raw_borrowed(&pevent)).into() } - unsafe extern "system" fn ProcessInput(this: *mut core::ffi::c_void, dwinputstreamid: u32, psample: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn ProcessInput(this: *mut core::ffi::c_void, dwinputstreamid: u32, psample: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::ProcessInput(this, core::mem::transmute_copy(&dwinputstreamid), windows_core::from_raw_borrowed(&psample), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn ProcessMessage(this: *mut core::ffi::c_void, emessage: MFT_MESSAGE_TYPE, ulparam: usize) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn ProcessMessage(this: *mut core::ffi::c_void, emessage: MFT_MESSAGE_TYPE, ulparam: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::ProcessMessage(this, core::mem::transmute_copy(&emessage), core::mem::transmute_copy(&ulparam)).into() } - unsafe extern "system" fn ProcessOutput(this: *mut core::ffi::c_void, dwflags: u32, coutputbuffercount: u32, poutputsample: *mut MFT_OUTPUT_DATA_BUFFER, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn ProcessOutput(this: *mut core::ffi::c_void, dwflags: u32, coutputbuffercount: u32, poutputsample: *mut MFT_OUTPUT_DATA_BUFFER, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::ProcessOutput(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&coutputbuffercount), core::mem::transmute_copy(&poutputsample), core::mem::transmute_copy(&pdwstatus)).into() } - unsafe extern "system" fn SetInputStreamState(this: *mut core::ffi::c_void, dwstreamid: u32, pmediatype: *mut core::ffi::c_void, value: DeviceStreamState, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn SetInputStreamState(this: *mut core::ffi::c_void, dwstreamid: u32, pmediatype: *mut core::ffi::c_void, value: DeviceStreamState, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::SetInputStreamState(this, core::mem::transmute_copy(&dwstreamid), windows_core::from_raw_borrowed(&pmediatype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetInputStreamState(this: *mut core::ffi::c_void, dwstreamid: u32, value: *mut DeviceStreamState) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetInputStreamState(this: *mut core::ffi::c_void, dwstreamid: u32, value: *mut DeviceStreamState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDeviceTransform_Impl::GetInputStreamState(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -7971,17 +5889,11 @@ impl IMFDeviceTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputStreamState(this: *mut core::ffi::c_void, dwstreamid: u32, pmediatype: *mut core::ffi::c_void, value: DeviceStreamState, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn SetOutputStreamState(this: *mut core::ffi::c_void, dwstreamid: u32, pmediatype: *mut core::ffi::c_void, value: DeviceStreamState, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::SetOutputStreamState(this, core::mem::transmute_copy(&dwstreamid), windows_core::from_raw_borrowed(&pmediatype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetOutputStreamState(this: *mut core::ffi::c_void, dwstreamid: u32, value: *mut DeviceStreamState) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetOutputStreamState(this: *mut core::ffi::c_void, dwstreamid: u32, value: *mut DeviceStreamState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFDeviceTransform_Impl::GetOutputStreamState(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -7991,24 +5903,15 @@ impl IMFDeviceTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputStreamPreferredState(this: *mut core::ffi::c_void, dwstreamid: u32, value: *mut DeviceStreamState, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn GetInputStreamPreferredState(this: *mut core::ffi::c_void, dwstreamid: u32, value: *mut DeviceStreamState, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::GetInputStreamPreferredState(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&value), core::mem::transmute_copy(&ppmediatype)).into() } - unsafe extern "system" fn FlushInputStream(this: *mut core::ffi::c_void, dwstreamindex: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn FlushInputStream(this: *mut core::ffi::c_void, dwstreamindex: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::FlushInputStream(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn FlushOutputStream(this: *mut core::ffi::c_void, dwstreamindex: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFDeviceTransform_Impl, - { + unsafe extern "system" fn FlushOutputStream(this: *mut core::ffi::c_void, dwstreamindex: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransform_Impl::FlushOutputStream(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&dwflags)).into() } @@ -8040,19 +5943,13 @@ impl IMFDeviceTransform_Vtbl { iid == &::IID } } -pub trait IMFDeviceTransformCallback_Impl: Sized { +pub trait IMFDeviceTransformCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnBufferSent(&self, pcallbackattributes: Option<&IMFAttributes>, pinid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFDeviceTransformCallback {} impl IMFDeviceTransformCallback_Vtbl { - pub const fn new() -> IMFDeviceTransformCallback_Vtbl - where - Identity: IMFDeviceTransformCallback_Impl, - { - unsafe extern "system" fn OnBufferSent(this: *mut core::ffi::c_void, pcallbackattributes: *mut core::ffi::c_void, pinid: u32) -> windows_core::HRESULT - where - Identity: IMFDeviceTransformCallback_Impl, - { + pub const fn new() -> IMFDeviceTransformCallback_Vtbl { + unsafe extern "system" fn OnBufferSent(this: *mut core::ffi::c_void, pcallbackattributes: *mut core::ffi::c_void, pinid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDeviceTransformCallback_Impl::OnBufferSent(this, windows_core::from_raw_borrowed(&pcallbackattributes), core::mem::transmute_copy(&pinid)).into() } @@ -8062,7 +5959,7 @@ impl IMFDeviceTransformCallback_Vtbl { iid == &::IID } } -pub trait IMFExtendedCameraControl_Impl: Sized { +pub trait IMFExtendedCameraControl_Impl: Sized + windows_core::IUnknownImpl { fn GetCapabilities(&self) -> u64; fn SetFlags(&self, ulflags: u64) -> windows_core::Result<()>; fn GetFlags(&self) -> u64; @@ -8072,49 +5969,28 @@ pub trait IMFExtendedCameraControl_Impl: Sized { } impl windows_core::RuntimeName for IMFExtendedCameraControl {} impl IMFExtendedCameraControl_Vtbl { - pub const fn new() -> IMFExtendedCameraControl_Vtbl - where - Identity: IMFExtendedCameraControl_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void) -> u64 - where - Identity: IMFExtendedCameraControl_Impl, - { + pub const fn new() -> IMFExtendedCameraControl_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraControl_Impl::GetCapabilities(this) } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u64) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraControl_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraControl_Impl::SetFlags(this, core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void) -> u64 - where - Identity: IMFExtendedCameraControl_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraControl_Impl::GetFlags(this) } - unsafe extern "system" fn LockPayload(this: *mut core::ffi::c_void, pppayload: *mut *mut u8, pulpayload: *mut u32) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraControl_Impl, - { + unsafe extern "system" fn LockPayload(this: *mut core::ffi::c_void, pppayload: *mut *mut u8, pulpayload: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraControl_Impl::LockPayload(this, core::mem::transmute_copy(&pppayload), core::mem::transmute_copy(&pulpayload)).into() } - unsafe extern "system" fn UnlockPayload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraControl_Impl, - { + unsafe extern "system" fn UnlockPayload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraControl_Impl::UnlockPayload(this).into() } - unsafe extern "system" fn CommitSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraControl_Impl, - { + unsafe extern "system" fn CommitSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraControl_Impl::CommitSettings(this).into() } @@ -8132,19 +6008,13 @@ impl IMFExtendedCameraControl_Vtbl { iid == &::IID } } -pub trait IMFExtendedCameraController_Impl: Sized { +pub trait IMFExtendedCameraController_Impl: Sized + windows_core::IUnknownImpl { fn GetExtendedCameraControl(&self, dwstreamindex: u32, ulpropertyid: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IMFExtendedCameraController {} impl IMFExtendedCameraController_Vtbl { - pub const fn new() -> IMFExtendedCameraController_Vtbl - where - Identity: IMFExtendedCameraController_Impl, - { - unsafe extern "system" fn GetExtendedCameraControl(this: *mut core::ffi::c_void, dwstreamindex: u32, ulpropertyid: u32, ppcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraController_Impl, - { + pub const fn new() -> IMFExtendedCameraController_Vtbl { + unsafe extern "system" fn GetExtendedCameraControl(this: *mut core::ffi::c_void, dwstreamindex: u32, ulpropertyid: u32, ppcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFExtendedCameraController_Impl::GetExtendedCameraControl(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&ulpropertyid)) { Ok(ok__) => { @@ -8160,35 +6030,23 @@ impl IMFExtendedCameraController_Vtbl { iid == &::IID } } -pub trait IMFExtendedCameraIntrinsicModel_Impl: Sized { +pub trait IMFExtendedCameraIntrinsicModel_Impl: Sized + windows_core::IUnknownImpl { fn GetModel(&self, pintrinsicmodel: *mut MFExtendedCameraIntrinsic_IntrinsicModel) -> windows_core::Result<()>; fn SetModel(&self, pintrinsicmodel: *const MFExtendedCameraIntrinsic_IntrinsicModel) -> windows_core::Result<()>; fn GetDistortionModelType(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFExtendedCameraIntrinsicModel {} impl IMFExtendedCameraIntrinsicModel_Vtbl { - pub const fn new() -> IMFExtendedCameraIntrinsicModel_Vtbl - where - Identity: IMFExtendedCameraIntrinsicModel_Impl, - { - unsafe extern "system" fn GetModel(this: *mut core::ffi::c_void, pintrinsicmodel: *mut MFExtendedCameraIntrinsic_IntrinsicModel) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsicModel_Impl, - { + pub const fn new() -> IMFExtendedCameraIntrinsicModel_Vtbl { + unsafe extern "system" fn GetModel(this: *mut core::ffi::c_void, pintrinsicmodel: *mut MFExtendedCameraIntrinsic_IntrinsicModel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraIntrinsicModel_Impl::GetModel(this, core::mem::transmute_copy(&pintrinsicmodel)).into() } - unsafe extern "system" fn SetModel(this: *mut core::ffi::c_void, pintrinsicmodel: *const MFExtendedCameraIntrinsic_IntrinsicModel) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsicModel_Impl, - { + unsafe extern "system" fn SetModel(this: *mut core::ffi::c_void, pintrinsicmodel: *const MFExtendedCameraIntrinsic_IntrinsicModel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraIntrinsicModel_Impl::SetModel(this, core::mem::transmute_copy(&pintrinsicmodel)).into() } - unsafe extern "system" fn GetDistortionModelType(this: *mut core::ffi::c_void, pdistortionmodeltype: *mut MFCameraIntrinsic_DistortionModelType) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsicModel_Impl, - { + unsafe extern "system" fn GetDistortionModelType(this: *mut core::ffi::c_void, pdistortionmodeltype: *mut MFCameraIntrinsic_DistortionModelType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFExtendedCameraIntrinsicModel_Impl::GetDistortionModelType(this) { Ok(ok__) => { @@ -8209,7 +6067,7 @@ impl IMFExtendedCameraIntrinsicModel_Vtbl { iid == &::IID } } -pub trait IMFExtendedCameraIntrinsics_Impl: Sized { +pub trait IMFExtendedCameraIntrinsics_Impl: Sized + windows_core::IUnknownImpl { fn InitializeFromBuffer(&self, pbbuffer: *const u8, dwbuffersize: u32) -> windows_core::Result<()>; fn GetBufferSize(&self) -> windows_core::Result; fn SerializeToBuffer(&self, pbbuffer: *mut u8, pdwbuffersize: *mut u32) -> windows_core::Result<()>; @@ -8219,21 +6077,12 @@ pub trait IMFExtendedCameraIntrinsics_Impl: Sized { } impl windows_core::RuntimeName for IMFExtendedCameraIntrinsics {} impl IMFExtendedCameraIntrinsics_Vtbl { - pub const fn new() -> IMFExtendedCameraIntrinsics_Vtbl - where - Identity: IMFExtendedCameraIntrinsics_Impl, - { - unsafe extern "system" fn InitializeFromBuffer(this: *mut core::ffi::c_void, pbbuffer: *const u8, dwbuffersize: u32) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsics_Impl, - { + pub const fn new() -> IMFExtendedCameraIntrinsics_Vtbl { + unsafe extern "system" fn InitializeFromBuffer(this: *mut core::ffi::c_void, pbbuffer: *const u8, dwbuffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraIntrinsics_Impl::InitializeFromBuffer(this, core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&dwbuffersize)).into() } - unsafe extern "system" fn GetBufferSize(this: *mut core::ffi::c_void, pdwbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsics_Impl, - { + unsafe extern "system" fn GetBufferSize(this: *mut core::ffi::c_void, pdwbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFExtendedCameraIntrinsics_Impl::GetBufferSize(this) { Ok(ok__) => { @@ -8243,17 +6092,11 @@ impl IMFExtendedCameraIntrinsics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SerializeToBuffer(this: *mut core::ffi::c_void, pbbuffer: *mut u8, pdwbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsics_Impl, - { + unsafe extern "system" fn SerializeToBuffer(this: *mut core::ffi::c_void, pbbuffer: *mut u8, pdwbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraIntrinsics_Impl::SerializeToBuffer(this, core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&pdwbuffersize)).into() } - unsafe extern "system" fn GetIntrinsicModelCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsics_Impl, - { + unsafe extern "system" fn GetIntrinsicModelCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFExtendedCameraIntrinsics_Impl::GetIntrinsicModelCount(this) { Ok(ok__) => { @@ -8263,10 +6106,7 @@ impl IMFExtendedCameraIntrinsics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIntrinsicModelByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppintrinsicmodel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsics_Impl, - { + unsafe extern "system" fn GetIntrinsicModelByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppintrinsicmodel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFExtendedCameraIntrinsics_Impl::GetIntrinsicModelByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -8276,10 +6116,7 @@ impl IMFExtendedCameraIntrinsics_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddIntrinsicModel(this: *mut core::ffi::c_void, pintrinsicmodel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsics_Impl, - { + unsafe extern "system" fn AddIntrinsicModel(this: *mut core::ffi::c_void, pintrinsicmodel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraIntrinsics_Impl::AddIntrinsicModel(this, windows_core::from_raw_borrowed(&pintrinsicmodel)).into() } @@ -8297,27 +6134,18 @@ impl IMFExtendedCameraIntrinsics_Vtbl { iid == &::IID } } -pub trait IMFExtendedCameraIntrinsicsDistortionModel6KT_Impl: Sized { +pub trait IMFExtendedCameraIntrinsicsDistortionModel6KT_Impl: Sized + windows_core::IUnknownImpl { fn GetDistortionModel(&self, pdistortionmodel: *mut MFCameraIntrinsic_DistortionModel6KT) -> windows_core::Result<()>; fn SetDistortionModel(&self, pdistortionmodel: *const MFCameraIntrinsic_DistortionModel6KT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFExtendedCameraIntrinsicsDistortionModel6KT {} impl IMFExtendedCameraIntrinsicsDistortionModel6KT_Vtbl { - pub const fn new() -> IMFExtendedCameraIntrinsicsDistortionModel6KT_Vtbl - where - Identity: IMFExtendedCameraIntrinsicsDistortionModel6KT_Impl, - { - unsafe extern "system" fn GetDistortionModel(this: *mut core::ffi::c_void, pdistortionmodel: *mut MFCameraIntrinsic_DistortionModel6KT) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsicsDistortionModel6KT_Impl, - { + pub const fn new() -> IMFExtendedCameraIntrinsicsDistortionModel6KT_Vtbl { + unsafe extern "system" fn GetDistortionModel(this: *mut core::ffi::c_void, pdistortionmodel: *mut MFCameraIntrinsic_DistortionModel6KT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraIntrinsicsDistortionModel6KT_Impl::GetDistortionModel(this, core::mem::transmute_copy(&pdistortionmodel)).into() } - unsafe extern "system" fn SetDistortionModel(this: *mut core::ffi::c_void, pdistortionmodel: *const MFCameraIntrinsic_DistortionModel6KT) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsicsDistortionModel6KT_Impl, - { + unsafe extern "system" fn SetDistortionModel(this: *mut core::ffi::c_void, pdistortionmodel: *const MFCameraIntrinsic_DistortionModel6KT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraIntrinsicsDistortionModel6KT_Impl::SetDistortionModel(this, core::mem::transmute_copy(&pdistortionmodel)).into() } @@ -8331,27 +6159,18 @@ impl IMFExtendedCameraIntrinsicsDistortionModel6KT_Vtbl { iid == &::IID } } -pub trait IMFExtendedCameraIntrinsicsDistortionModelArcTan_Impl: Sized { +pub trait IMFExtendedCameraIntrinsicsDistortionModelArcTan_Impl: Sized + windows_core::IUnknownImpl { fn GetDistortionModel(&self, pdistortionmodel: *mut MFCameraIntrinsic_DistortionModelArcTan) -> windows_core::Result<()>; fn SetDistortionModel(&self, pdistortionmodel: *const MFCameraIntrinsic_DistortionModelArcTan) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFExtendedCameraIntrinsicsDistortionModelArcTan {} impl IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl { - pub const fn new() -> IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl - where - Identity: IMFExtendedCameraIntrinsicsDistortionModelArcTan_Impl, - { - unsafe extern "system" fn GetDistortionModel(this: *mut core::ffi::c_void, pdistortionmodel: *mut MFCameraIntrinsic_DistortionModelArcTan) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsicsDistortionModelArcTan_Impl, - { + pub const fn new() -> IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl { + unsafe extern "system" fn GetDistortionModel(this: *mut core::ffi::c_void, pdistortionmodel: *mut MFCameraIntrinsic_DistortionModelArcTan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraIntrinsicsDistortionModelArcTan_Impl::GetDistortionModel(this, core::mem::transmute_copy(&pdistortionmodel)).into() } - unsafe extern "system" fn SetDistortionModel(this: *mut core::ffi::c_void, pdistortionmodel: *const MFCameraIntrinsic_DistortionModelArcTan) -> windows_core::HRESULT - where - Identity: IMFExtendedCameraIntrinsicsDistortionModelArcTan_Impl, - { + unsafe extern "system" fn SetDistortionModel(this: *mut core::ffi::c_void, pdistortionmodel: *const MFCameraIntrinsic_DistortionModelArcTan) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFExtendedCameraIntrinsicsDistortionModelArcTan_Impl::SetDistortionModel(this, core::mem::transmute_copy(&pdistortionmodel)).into() } @@ -8365,19 +6184,13 @@ impl IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl { iid == &::IID } } -pub trait IMFExtendedDRMTypeSupport_Impl: Sized { +pub trait IMFExtendedDRMTypeSupport_Impl: Sized + windows_core::IUnknownImpl { fn IsTypeSupportedEx(&self, r#type: &windows_core::BSTR, keysystem: &windows_core::BSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IMFExtendedDRMTypeSupport {} impl IMFExtendedDRMTypeSupport_Vtbl { - pub const fn new() -> IMFExtendedDRMTypeSupport_Vtbl - where - Identity: IMFExtendedDRMTypeSupport_Impl, - { - unsafe extern "system" fn IsTypeSupportedEx(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, keysystem: core::mem::MaybeUninit, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT - where - Identity: IMFExtendedDRMTypeSupport_Impl, - { + pub const fn new() -> IMFExtendedDRMTypeSupport_Vtbl { + unsafe extern "system" fn IsTypeSupportedEx(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, keysystem: core::mem::MaybeUninit, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFExtendedDRMTypeSupport_Impl::IsTypeSupportedEx(this, core::mem::transmute(&r#type), core::mem::transmute(&keysystem)) { Ok(ok__) => { @@ -8393,19 +6206,13 @@ impl IMFExtendedDRMTypeSupport_Vtbl { iid == &::IID } } -pub trait IMFFieldOfUseMFTUnlock_Impl: Sized { +pub trait IMFFieldOfUseMFTUnlock_Impl: Sized + windows_core::IUnknownImpl { fn Unlock(&self, punkmft: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFFieldOfUseMFTUnlock {} impl IMFFieldOfUseMFTUnlock_Vtbl { - pub const fn new() -> IMFFieldOfUseMFTUnlock_Vtbl - where - Identity: IMFFieldOfUseMFTUnlock_Impl, - { - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, punkmft: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFFieldOfUseMFTUnlock_Impl, - { + pub const fn new() -> IMFFieldOfUseMFTUnlock_Vtbl { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, punkmft: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFFieldOfUseMFTUnlock_Impl::Unlock(this, windows_core::from_raw_borrowed(&punkmft)).into() } @@ -8421,21 +6228,12 @@ pub trait IMFFinalizableMediaSink_Impl: Sized + IMFMediaSink_Impl { } impl windows_core::RuntimeName for IMFFinalizableMediaSink {} impl IMFFinalizableMediaSink_Vtbl { - pub const fn new() -> IMFFinalizableMediaSink_Vtbl - where - Identity: IMFFinalizableMediaSink_Impl, - { - unsafe extern "system" fn BeginFinalize(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFFinalizableMediaSink_Impl, - { + pub const fn new() -> IMFFinalizableMediaSink_Vtbl { + unsafe extern "system" fn BeginFinalize(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFFinalizableMediaSink_Impl::BeginFinalize(this, windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndFinalize(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFFinalizableMediaSink_Impl, - { + unsafe extern "system" fn EndFinalize(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFFinalizableMediaSink_Impl::EndFinalize(this, windows_core::from_raw_borrowed(&presult)).into() } @@ -8449,19 +6247,13 @@ impl IMFFinalizableMediaSink_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFGetService_Impl: Sized { +pub trait IMFGetService_Impl: Sized + windows_core::IUnknownImpl { fn GetService(&self, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFGetService {} impl IMFGetService_Vtbl { - pub const fn new() -> IMFGetService_Vtbl - where - Identity: IMFGetService_Impl, - { - unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFGetService_Impl, - { + pub const fn new() -> IMFGetService_Vtbl { + unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFGetService_Impl::GetService(this, core::mem::transmute_copy(&guidservice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } @@ -8471,27 +6263,18 @@ impl IMFGetService_Vtbl { iid == &::IID } } -pub trait IMFHDCPStatus_Impl: Sized { +pub trait IMFHDCPStatus_Impl: Sized + windows_core::IUnknownImpl { fn Query(&self, pstatus: *mut MF_HDCP_STATUS, pfstatus: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn Set(&self, status: MF_HDCP_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFHDCPStatus {} impl IMFHDCPStatus_Vtbl { - pub const fn new() -> IMFHDCPStatus_Vtbl - where - Identity: IMFHDCPStatus_Impl, - { - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, pstatus: *mut MF_HDCP_STATUS, pfstatus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFHDCPStatus_Impl, - { + pub const fn new() -> IMFHDCPStatus_Vtbl { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, pstatus: *mut MF_HDCP_STATUS, pfstatus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHDCPStatus_Impl::Query(this, core::mem::transmute_copy(&pstatus), core::mem::transmute_copy(&pfstatus)).into() } - unsafe extern "system" fn Set(this: *mut core::ffi::c_void, status: MF_HDCP_STATUS) -> windows_core::HRESULT - where - Identity: IMFHDCPStatus_Impl, - { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, status: MF_HDCP_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHDCPStatus_Impl::Set(this, core::mem::transmute_copy(&status)).into() } @@ -8501,7 +6284,7 @@ impl IMFHDCPStatus_Vtbl { iid == &::IID } } -pub trait IMFHttpDownloadRequest_Impl: Sized { +pub trait IMFHttpDownloadRequest_Impl: Sized + windows_core::IUnknownImpl { fn AddHeader(&self, szheader: &windows_core::PCWSTR) -> windows_core::Result<()>; fn BeginSendRequest(&self, pbpayload: *const u8, cbpayload: u32, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndSendRequest(&self, presult: Option<&IMFAsyncResult>) -> windows_core::Result<()>; @@ -8521,63 +6304,36 @@ pub trait IMFHttpDownloadRequest_Impl: Sized { } impl windows_core::RuntimeName for IMFHttpDownloadRequest {} impl IMFHttpDownloadRequest_Vtbl { - pub const fn new() -> IMFHttpDownloadRequest_Vtbl - where - Identity: IMFHttpDownloadRequest_Impl, - { - unsafe extern "system" fn AddHeader(this: *mut core::ffi::c_void, szheader: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + pub const fn new() -> IMFHttpDownloadRequest_Vtbl { + unsafe extern "system" fn AddHeader(this: *mut core::ffi::c_void, szheader: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadRequest_Impl::AddHeader(this, core::mem::transmute(&szheader)).into() } - unsafe extern "system" fn BeginSendRequest(this: *mut core::ffi::c_void, pbpayload: *const u8, cbpayload: u32, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn BeginSendRequest(this: *mut core::ffi::c_void, pbpayload: *const u8, cbpayload: u32, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadRequest_Impl::BeginSendRequest(this, core::mem::transmute_copy(&pbpayload), core::mem::transmute_copy(&cbpayload), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndSendRequest(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn EndSendRequest(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadRequest_Impl::EndSendRequest(this, windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn BeginReceiveResponse(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn BeginReceiveResponse(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadRequest_Impl::BeginReceiveResponse(this, windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndReceiveResponse(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn EndReceiveResponse(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadRequest_Impl::EndReceiveResponse(this, windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn BeginReadPayload(this: *mut core::ffi::c_void, pb: *mut u8, cb: u32, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn BeginReadPayload(this: *mut core::ffi::c_void, pb: *mut u8, cb: u32, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadRequest_Impl::BeginReadPayload(this, core::mem::transmute_copy(&pb), core::mem::transmute_copy(&cb), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndReadPayload(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pqwoffset: *mut u64, pcbread: *mut u32) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn EndReadPayload(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pqwoffset: *mut u64, pcbread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadRequest_Impl::EndReadPayload(this, windows_core::from_raw_borrowed(&presult), core::mem::transmute_copy(&pqwoffset), core::mem::transmute_copy(&pcbread)).into() } - unsafe extern "system" fn QueryHeader(this: *mut core::ffi::c_void, szheadername: windows_core::PCWSTR, dwindex: u32, ppszheadervalue: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn QueryHeader(this: *mut core::ffi::c_void, szheadername: windows_core::PCWSTR, dwindex: u32, ppszheadervalue: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadRequest_Impl::QueryHeader(this, core::mem::transmute(&szheadername), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -8587,10 +6343,7 @@ impl IMFHttpDownloadRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadRequest_Impl::GetURL(this) { Ok(ok__) => { @@ -8600,10 +6353,7 @@ impl IMFHttpDownloadRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasNullSourceOrigin(this: *mut core::ffi::c_void, pfnullsourceorigin: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn HasNullSourceOrigin(this: *mut core::ffi::c_void, pfnullsourceorigin: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadRequest_Impl::HasNullSourceOrigin(this) { Ok(ok__) => { @@ -8613,17 +6363,11 @@ impl IMFHttpDownloadRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimeSeekResult(this: *mut core::ffi::c_void, pqwstarttime: *mut u64, pqwstoptime: *mut u64, pqwduration: *mut u64) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn GetTimeSeekResult(this: *mut core::ffi::c_void, pqwstarttime: *mut u64, pqwstoptime: *mut u64, pqwduration: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadRequest_Impl::GetTimeSeekResult(this, core::mem::transmute_copy(&pqwstarttime), core::mem::transmute_copy(&pqwstoptime), core::mem::transmute_copy(&pqwduration)).into() } - unsafe extern "system" fn GetHttpStatus(this: *mut core::ffi::c_void, pdwhttpstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn GetHttpStatus(this: *mut core::ffi::c_void, pdwhttpstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadRequest_Impl::GetHttpStatus(this) { Ok(ok__) => { @@ -8633,10 +6377,7 @@ impl IMFHttpDownloadRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAtEndOfPayload(this: *mut core::ffi::c_void, pfatendofpayload: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn GetAtEndOfPayload(this: *mut core::ffi::c_void, pfatendofpayload: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadRequest_Impl::GetAtEndOfPayload(this) { Ok(ok__) => { @@ -8646,10 +6387,7 @@ impl IMFHttpDownloadRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTotalLength(this: *mut core::ffi::c_void, pqwtotallength: *mut u64) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn GetTotalLength(this: *mut core::ffi::c_void, pqwtotallength: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadRequest_Impl::GetTotalLength(this) { Ok(ok__) => { @@ -8659,10 +6397,7 @@ impl IMFHttpDownloadRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRangeEndOffset(this: *mut core::ffi::c_void, pqwrangeend: *mut u64) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn GetRangeEndOffset(this: *mut core::ffi::c_void, pqwrangeend: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadRequest_Impl::GetRangeEndOffset(this) { Ok(ok__) => { @@ -8672,10 +6407,7 @@ impl IMFHttpDownloadRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadRequest_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadRequest_Impl::Close(this).into() } @@ -8703,28 +6435,19 @@ impl IMFHttpDownloadRequest_Vtbl { iid == &::IID } } -pub trait IMFHttpDownloadSession_Impl: Sized { +pub trait IMFHttpDownloadSession_Impl: Sized + windows_core::IUnknownImpl { fn SetServer(&self, szservername: &windows_core::PCWSTR, nport: u32) -> windows_core::Result<()>; fn CreateRequest(&self, szobjectname: &windows_core::PCWSTR, fbypassproxycache: super::super::Foundation::BOOL, fsecure: super::super::Foundation::BOOL, szverb: &windows_core::PCWSTR, szreferrer: &windows_core::PCWSTR) -> windows_core::Result; fn Close(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFHttpDownloadSession {} impl IMFHttpDownloadSession_Vtbl { - pub const fn new() -> IMFHttpDownloadSession_Vtbl - where - Identity: IMFHttpDownloadSession_Impl, - { - unsafe extern "system" fn SetServer(this: *mut core::ffi::c_void, szservername: windows_core::PCWSTR, nport: u32) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadSession_Impl, - { + pub const fn new() -> IMFHttpDownloadSession_Vtbl { + unsafe extern "system" fn SetServer(this: *mut core::ffi::c_void, szservername: windows_core::PCWSTR, nport: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadSession_Impl::SetServer(this, core::mem::transmute(&szservername), core::mem::transmute_copy(&nport)).into() } - unsafe extern "system" fn CreateRequest(this: *mut core::ffi::c_void, szobjectname: windows_core::PCWSTR, fbypassproxycache: super::super::Foundation::BOOL, fsecure: super::super::Foundation::BOOL, szverb: windows_core::PCWSTR, szreferrer: windows_core::PCWSTR, pprequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadSession_Impl, - { + unsafe extern "system" fn CreateRequest(this: *mut core::ffi::c_void, szobjectname: windows_core::PCWSTR, fbypassproxycache: super::super::Foundation::BOOL, fsecure: super::super::Foundation::BOOL, szverb: windows_core::PCWSTR, szreferrer: windows_core::PCWSTR, pprequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadSession_Impl::CreateRequest(this, core::mem::transmute(&szobjectname), core::mem::transmute_copy(&fbypassproxycache), core::mem::transmute_copy(&fsecure), core::mem::transmute(&szverb), core::mem::transmute(&szreferrer)) { Ok(ok__) => { @@ -8734,10 +6457,7 @@ impl IMFHttpDownloadSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadSession_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHttpDownloadSession_Impl::Close(this).into() } @@ -8752,19 +6472,13 @@ impl IMFHttpDownloadSession_Vtbl { iid == &::IID } } -pub trait IMFHttpDownloadSessionProvider_Impl: Sized { +pub trait IMFHttpDownloadSessionProvider_Impl: Sized + windows_core::IUnknownImpl { fn CreateHttpDownloadSession(&self, wszscheme: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IMFHttpDownloadSessionProvider {} impl IMFHttpDownloadSessionProvider_Vtbl { - pub const fn new() -> IMFHttpDownloadSessionProvider_Vtbl - where - Identity: IMFHttpDownloadSessionProvider_Impl, - { - unsafe extern "system" fn CreateHttpDownloadSession(this: *mut core::ffi::c_void, wszscheme: windows_core::PCWSTR, ppdownloadsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFHttpDownloadSessionProvider_Impl, - { + pub const fn new() -> IMFHttpDownloadSessionProvider_Vtbl { + unsafe extern "system" fn CreateHttpDownloadSession(this: *mut core::ffi::c_void, wszscheme: windows_core::PCWSTR, ppdownloadsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadSessionProvider_Impl::CreateHttpDownloadSession(this, core::mem::transmute(&wszscheme)) { Ok(ok__) => { @@ -8780,35 +6494,23 @@ impl IMFHttpDownloadSessionProvider_Vtbl { iid == &::IID } } -pub trait IMFImageSharingEngine_Impl: Sized { +pub trait IMFImageSharingEngine_Impl: Sized + windows_core::IUnknownImpl { fn SetSource(&self, pstream: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetDevice(&self, pdevice: *mut DEVICE_INFO) -> windows_core::Result<()>; fn Shutdown(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFImageSharingEngine {} impl IMFImageSharingEngine_Vtbl { - pub const fn new() -> IMFImageSharingEngine_Vtbl - where - Identity: IMFImageSharingEngine_Impl, - { - unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFImageSharingEngine_Impl, - { + pub const fn new() -> IMFImageSharingEngine_Vtbl { + unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFImageSharingEngine_Impl::SetSource(this, windows_core::from_raw_borrowed(&pstream)).into() } - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, pdevice: *mut DEVICE_INFO) -> windows_core::HRESULT - where - Identity: IMFImageSharingEngine_Impl, - { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, pdevice: *mut DEVICE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFImageSharingEngine_Impl::GetDevice(this, core::mem::transmute_copy(&pdevice)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFImageSharingEngine_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFImageSharingEngine_Impl::Shutdown(this).into() } @@ -8823,19 +6525,13 @@ impl IMFImageSharingEngine_Vtbl { iid == &::IID } } -pub trait IMFImageSharingEngineClassFactory_Impl: Sized { +pub trait IMFImageSharingEngineClassFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstanceFromUDN(&self, puniquedevicename: &windows_core::BSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IMFImageSharingEngineClassFactory {} impl IMFImageSharingEngineClassFactory_Vtbl { - pub const fn new() -> IMFImageSharingEngineClassFactory_Vtbl - where - Identity: IMFImageSharingEngineClassFactory_Impl, - { - unsafe extern "system" fn CreateInstanceFromUDN(this: *mut core::ffi::c_void, puniquedevicename: core::mem::MaybeUninit, ppengine: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFImageSharingEngineClassFactory_Impl, - { + pub const fn new() -> IMFImageSharingEngineClassFactory_Vtbl { + unsafe extern "system" fn CreateInstanceFromUDN(this: *mut core::ffi::c_void, puniquedevicename: core::mem::MaybeUninit, ppengine: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFImageSharingEngineClassFactory_Impl::CreateInstanceFromUDN(this, core::mem::transmute(&puniquedevicename)) { Ok(ok__) => { @@ -8851,7 +6547,7 @@ impl IMFImageSharingEngineClassFactory_Vtbl { iid == &::IID } } -pub trait IMFInputTrustAuthority_Impl: Sized { +pub trait IMFInputTrustAuthority_Impl: Sized + windows_core::IUnknownImpl { fn GetDecrypter(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RequestAccess(&self, action: MFPOLICYMANAGER_ACTION) -> windows_core::Result; fn GetPolicy(&self, action: MFPOLICYMANAGER_ACTION) -> windows_core::Result; @@ -8861,21 +6557,12 @@ pub trait IMFInputTrustAuthority_Impl: Sized { } impl windows_core::RuntimeName for IMFInputTrustAuthority {} impl IMFInputTrustAuthority_Vtbl { - pub const fn new() -> IMFInputTrustAuthority_Vtbl - where - Identity: IMFInputTrustAuthority_Impl, - { - unsafe extern "system" fn GetDecrypter(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFInputTrustAuthority_Impl, - { + pub const fn new() -> IMFInputTrustAuthority_Vtbl { + unsafe extern "system" fn GetDecrypter(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFInputTrustAuthority_Impl::GetDecrypter(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn RequestAccess(this: *mut core::ffi::c_void, action: MFPOLICYMANAGER_ACTION, ppcontentenableractivate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFInputTrustAuthority_Impl, - { + unsafe extern "system" fn RequestAccess(this: *mut core::ffi::c_void, action: MFPOLICYMANAGER_ACTION, ppcontentenableractivate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFInputTrustAuthority_Impl::RequestAccess(this, core::mem::transmute_copy(&action)) { Ok(ok__) => { @@ -8885,10 +6572,7 @@ impl IMFInputTrustAuthority_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPolicy(this: *mut core::ffi::c_void, action: MFPOLICYMANAGER_ACTION, pppolicy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFInputTrustAuthority_Impl, - { + unsafe extern "system" fn GetPolicy(this: *mut core::ffi::c_void, action: MFPOLICYMANAGER_ACTION, pppolicy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFInputTrustAuthority_Impl::GetPolicy(this, core::mem::transmute_copy(&action)) { Ok(ok__) => { @@ -8898,24 +6582,15 @@ impl IMFInputTrustAuthority_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BindAccess(this: *mut core::ffi::c_void, pparam: *const MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS) -> windows_core::HRESULT - where - Identity: IMFInputTrustAuthority_Impl, - { + unsafe extern "system" fn BindAccess(this: *mut core::ffi::c_void, pparam: *const MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFInputTrustAuthority_Impl::BindAccess(this, core::mem::transmute_copy(&pparam)).into() } - unsafe extern "system" fn UpdateAccess(this: *mut core::ffi::c_void, pparam: *const MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS) -> windows_core::HRESULT - where - Identity: IMFInputTrustAuthority_Impl, - { + unsafe extern "system" fn UpdateAccess(this: *mut core::ffi::c_void, pparam: *const MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFInputTrustAuthority_Impl::UpdateAccess(this, core::mem::transmute_copy(&pparam)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFInputTrustAuthority_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFInputTrustAuthority_Impl::Reset(this).into() } @@ -8933,19 +6608,13 @@ impl IMFInputTrustAuthority_Vtbl { iid == &::IID } } -pub trait IMFLocalMFTRegistration_Impl: Sized { +pub trait IMFLocalMFTRegistration_Impl: Sized + windows_core::IUnknownImpl { fn RegisterMFTs(&self, pmfts: *const MFT_REGISTRATION_INFO, cmfts: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFLocalMFTRegistration {} impl IMFLocalMFTRegistration_Vtbl { - pub const fn new() -> IMFLocalMFTRegistration_Vtbl - where - Identity: IMFLocalMFTRegistration_Impl, - { - unsafe extern "system" fn RegisterMFTs(this: *mut core::ffi::c_void, pmfts: *const MFT_REGISTRATION_INFO, cmfts: u32) -> windows_core::HRESULT - where - Identity: IMFLocalMFTRegistration_Impl, - { + pub const fn new() -> IMFLocalMFTRegistration_Vtbl { + unsafe extern "system" fn RegisterMFTs(this: *mut core::ffi::c_void, pmfts: *const MFT_REGISTRATION_INFO, cmfts: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFLocalMFTRegistration_Impl::RegisterMFTs(this, core::mem::transmute_copy(&pmfts), core::mem::transmute_copy(&cmfts)).into() } @@ -8955,7 +6624,7 @@ impl IMFLocalMFTRegistration_Vtbl { iid == &::IID } } -pub trait IMFMediaBuffer_Impl: Sized { +pub trait IMFMediaBuffer_Impl: Sized + windows_core::IUnknownImpl { fn Lock(&self, ppbbuffer: *mut *mut u8, pcbmaxlength: *mut u32, pcbcurrentlength: *mut u32) -> windows_core::Result<()>; fn Unlock(&self) -> windows_core::Result<()>; fn GetCurrentLength(&self) -> windows_core::Result; @@ -8964,28 +6633,16 @@ pub trait IMFMediaBuffer_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaBuffer {} impl IMFMediaBuffer_Vtbl { - pub const fn new() -> IMFMediaBuffer_Vtbl - where - Identity: IMFMediaBuffer_Impl, - { - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, ppbbuffer: *mut *mut u8, pcbmaxlength: *mut u32, pcbcurrentlength: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaBuffer_Impl, - { + pub const fn new() -> IMFMediaBuffer_Vtbl { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, ppbbuffer: *mut *mut u8, pcbmaxlength: *mut u32, pcbcurrentlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaBuffer_Impl::Lock(this, core::mem::transmute_copy(&ppbbuffer), core::mem::transmute_copy(&pcbmaxlength), core::mem::transmute_copy(&pcbcurrentlength)).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaBuffer_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaBuffer_Impl::Unlock(this).into() } - unsafe extern "system" fn GetCurrentLength(this: *mut core::ffi::c_void, pcbcurrentlength: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaBuffer_Impl, - { + unsafe extern "system" fn GetCurrentLength(this: *mut core::ffi::c_void, pcbcurrentlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaBuffer_Impl::GetCurrentLength(this) { Ok(ok__) => { @@ -8995,17 +6652,11 @@ impl IMFMediaBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentLength(this: *mut core::ffi::c_void, cbcurrentlength: u32) -> windows_core::HRESULT - where - Identity: IMFMediaBuffer_Impl, - { + unsafe extern "system" fn SetCurrentLength(this: *mut core::ffi::c_void, cbcurrentlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaBuffer_Impl::SetCurrentLength(this, core::mem::transmute_copy(&cbcurrentlength)).into() } - unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pcbmaxlength: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaBuffer_Impl, - { + unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pcbmaxlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaBuffer_Impl::GetMaxLength(this) { Ok(ok__) => { @@ -9028,7 +6679,7 @@ impl IMFMediaBuffer_Vtbl { iid == &::IID } } -pub trait IMFMediaEngine_Impl: Sized { +pub trait IMFMediaEngine_Impl: Sized + windows_core::IUnknownImpl { fn GetError(&self) -> windows_core::Result; fn SetErrorCode(&self, error: MF_MEDIA_ENGINE_ERR) -> windows_core::Result<()>; fn SetSourceElements(&self, psrcelements: Option<&IMFMediaEngineSrcElements>) -> windows_core::Result<()>; @@ -9074,14 +6725,8 @@ pub trait IMFMediaEngine_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaEngine {} impl IMFMediaEngine_Vtbl { - pub const fn new() -> IMFMediaEngine_Vtbl - where - Identity: IMFMediaEngine_Impl, - { - unsafe extern "system" fn GetError(this: *mut core::ffi::c_void, pperror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + pub const fn new() -> IMFMediaEngine_Vtbl { + unsafe extern "system" fn GetError(this: *mut core::ffi::c_void, pperror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngine_Impl::GetError(this) { Ok(ok__) => { @@ -9091,31 +6736,19 @@ impl IMFMediaEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetErrorCode(this: *mut core::ffi::c_void, error: MF_MEDIA_ENGINE_ERR) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetErrorCode(this: *mut core::ffi::c_void, error: MF_MEDIA_ENGINE_ERR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetErrorCode(this, core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn SetSourceElements(this: *mut core::ffi::c_void, psrcelements: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetSourceElements(this: *mut core::ffi::c_void, psrcelements: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetSourceElements(this, windows_core::from_raw_borrowed(&psrcelements)).into() } - unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, purl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, purl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetSource(this, core::mem::transmute(&purl)).into() } - unsafe extern "system" fn GetCurrentSource(this: *mut core::ffi::c_void, ppurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetCurrentSource(this: *mut core::ffi::c_void, ppurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngine_Impl::GetCurrentSource(this) { Ok(ok__) => { @@ -9125,31 +6758,19 @@ impl IMFMediaEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetworkState(this: *mut core::ffi::c_void) -> u16 - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetNetworkState(this: *mut core::ffi::c_void) -> u16 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetNetworkState(this) } - unsafe extern "system" fn GetPreload(this: *mut core::ffi::c_void) -> MF_MEDIA_ENGINE_PRELOAD - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetPreload(this: *mut core::ffi::c_void) -> MF_MEDIA_ENGINE_PRELOAD { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetPreload(this) } - unsafe extern "system" fn SetPreload(this: *mut core::ffi::c_void, preload: MF_MEDIA_ENGINE_PRELOAD) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetPreload(this: *mut core::ffi::c_void, preload: MF_MEDIA_ENGINE_PRELOAD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetPreload(this, core::mem::transmute_copy(&preload)).into() } - unsafe extern "system" fn GetBuffered(this: *mut core::ffi::c_void, ppbuffered: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetBuffered(this: *mut core::ffi::c_void, ppbuffered: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngine_Impl::GetBuffered(this) { Ok(ok__) => { @@ -9159,17 +6780,11 @@ impl IMFMediaEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::Load(this).into() } - unsafe extern "system" fn CanPlayType(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn CanPlayType(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngine_Impl::CanPlayType(this, core::mem::transmute(&r#type)) { Ok(ok__) => { @@ -9179,87 +6794,51 @@ impl IMFMediaEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReadyState(this: *mut core::ffi::c_void) -> u16 - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetReadyState(this: *mut core::ffi::c_void) -> u16 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetReadyState(this) } - unsafe extern "system" fn IsSeeking(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn IsSeeking(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::IsSeeking(this) } - unsafe extern "system" fn GetCurrentTime(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetCurrentTime(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetCurrentTime(this) } - unsafe extern "system" fn SetCurrentTime(this: *mut core::ffi::c_void, seektime: f64) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetCurrentTime(this: *mut core::ffi::c_void, seektime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetCurrentTime(this, core::mem::transmute_copy(&seektime)).into() } - unsafe extern "system" fn GetStartTime(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetStartTime(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetStartTime(this) } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetDuration(this) } - unsafe extern "system" fn IsPaused(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn IsPaused(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::IsPaused(this) } - unsafe extern "system" fn GetDefaultPlaybackRate(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetDefaultPlaybackRate(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetDefaultPlaybackRate(this) } - unsafe extern "system" fn SetDefaultPlaybackRate(this: *mut core::ffi::c_void, rate: f64) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetDefaultPlaybackRate(this: *mut core::ffi::c_void, rate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetDefaultPlaybackRate(this, core::mem::transmute_copy(&rate)).into() } - unsafe extern "system" fn GetPlaybackRate(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetPlaybackRate(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetPlaybackRate(this) } - unsafe extern "system" fn SetPlaybackRate(this: *mut core::ffi::c_void, rate: f64) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetPlaybackRate(this: *mut core::ffi::c_void, rate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetPlaybackRate(this, core::mem::transmute_copy(&rate)).into() } - unsafe extern "system" fn GetPlayed(this: *mut core::ffi::c_void, ppplayed: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetPlayed(this: *mut core::ffi::c_void, ppplayed: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngine_Impl::GetPlayed(this) { Ok(ok__) => { @@ -9269,10 +6848,7 @@ impl IMFMediaEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSeekable(this: *mut core::ffi::c_void, ppseekable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetSeekable(this: *mut core::ffi::c_void, ppseekable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngine_Impl::GetSeekable(this) { Ok(ok__) => { @@ -9282,129 +6858,75 @@ impl IMFMediaEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEnded(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn IsEnded(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::IsEnded(this) } - unsafe extern "system" fn GetAutoPlay(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetAutoPlay(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetAutoPlay(this) } - unsafe extern "system" fn SetAutoPlay(this: *mut core::ffi::c_void, autoplay: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetAutoPlay(this: *mut core::ffi::c_void, autoplay: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetAutoPlay(this, core::mem::transmute_copy(&autoplay)).into() } - unsafe extern "system" fn GetLoop(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetLoop(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetLoop(this) } - unsafe extern "system" fn SetLoop(this: *mut core::ffi::c_void, r#loop: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetLoop(this: *mut core::ffi::c_void, r#loop: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetLoop(this, core::mem::transmute_copy(&r#loop)).into() } - unsafe extern "system" fn Play(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn Play(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::Play(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::Pause(this).into() } - unsafe extern "system" fn GetMuted(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetMuted(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetMuted(this) } - unsafe extern "system" fn SetMuted(this: *mut core::ffi::c_void, muted: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetMuted(this: *mut core::ffi::c_void, muted: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetMuted(this, core::mem::transmute_copy(&muted)).into() } - unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetVolume(this) } - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, volume: f64) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, volume: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetVolume(this, core::mem::transmute_copy(&volume)).into() } - unsafe extern "system" fn HasVideo(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn HasVideo(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::HasVideo(this) } - unsafe extern "system" fn HasAudio(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn HasAudio(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::HasAudio(this) } - unsafe extern "system" fn GetNativeVideoSize(this: *mut core::ffi::c_void, cx: *mut u32, cy: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetNativeVideoSize(this: *mut core::ffi::c_void, cx: *mut u32, cy: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetNativeVideoSize(this, core::mem::transmute_copy(&cx), core::mem::transmute_copy(&cy)).into() } - unsafe extern "system" fn GetVideoAspectRatio(this: *mut core::ffi::c_void, cx: *mut u32, cy: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn GetVideoAspectRatio(this: *mut core::ffi::c_void, cx: *mut u32, cy: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetVideoAspectRatio(this, core::mem::transmute_copy(&cx), core::mem::transmute_copy(&cy)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::Shutdown(this).into() } - unsafe extern "system" fn TransferVideoFrame(this: *mut core::ffi::c_void, pdstsurf: *mut core::ffi::c_void, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const MFARGB) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn TransferVideoFrame(this: *mut core::ffi::c_void, pdstsurf: *mut core::ffi::c_void, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const MFARGB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::TransferVideoFrame(this, windows_core::from_raw_borrowed(&pdstsurf), core::mem::transmute_copy(&psrc), core::mem::transmute_copy(&pdst), core::mem::transmute_copy(&pborderclr)).into() } - unsafe extern "system" fn OnVideoStreamTick(this: *mut core::ffi::c_void, ppts: *mut i64) -> windows_core::HRESULT - where - Identity: IMFMediaEngine_Impl, - { + unsafe extern "system" fn OnVideoStreamTick(this: *mut core::ffi::c_void, ppts: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngine_Impl::OnVideoStreamTick(this) { Ok(ok__) => { @@ -9464,27 +6986,18 @@ impl IMFMediaEngine_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineAudioEndpointId_Impl: Sized { +pub trait IMFMediaEngineAudioEndpointId_Impl: Sized + windows_core::IUnknownImpl { fn SetAudioEndpointId(&self, pszendpointid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetAudioEndpointId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFMediaEngineAudioEndpointId {} impl IMFMediaEngineAudioEndpointId_Vtbl { - pub const fn new() -> IMFMediaEngineAudioEndpointId_Vtbl - where - Identity: IMFMediaEngineAudioEndpointId_Impl, - { - unsafe extern "system" fn SetAudioEndpointId(this: *mut core::ffi::c_void, pszendpointid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFMediaEngineAudioEndpointId_Impl, - { + pub const fn new() -> IMFMediaEngineAudioEndpointId_Vtbl { + unsafe extern "system" fn SetAudioEndpointId(this: *mut core::ffi::c_void, pszendpointid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineAudioEndpointId_Impl::SetAudioEndpointId(this, core::mem::transmute(&pszendpointid)).into() } - unsafe extern "system" fn GetAudioEndpointId(this: *mut core::ffi::c_void, ppszendpointid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFMediaEngineAudioEndpointId_Impl, - { + unsafe extern "system" fn GetAudioEndpointId(this: *mut core::ffi::c_void, ppszendpointid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineAudioEndpointId_Impl::GetAudioEndpointId(this) { Ok(ok__) => { @@ -9504,21 +7017,15 @@ impl IMFMediaEngineAudioEndpointId_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineClassFactory_Impl: Sized { +pub trait IMFMediaEngineClassFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, dwflags: u32, pattr: Option<&IMFAttributes>) -> windows_core::Result; fn CreateTimeRange(&self) -> windows_core::Result; fn CreateError(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFMediaEngineClassFactory {} impl IMFMediaEngineClassFactory_Vtbl { - pub const fn new() -> IMFMediaEngineClassFactory_Vtbl - where - Identity: IMFMediaEngineClassFactory_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, dwflags: u32, pattr: *mut core::ffi::c_void, ppplayer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineClassFactory_Impl, - { + pub const fn new() -> IMFMediaEngineClassFactory_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, dwflags: u32, pattr: *mut core::ffi::c_void, ppplayer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineClassFactory_Impl::CreateInstance(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pattr)) { Ok(ok__) => { @@ -9528,10 +7035,7 @@ impl IMFMediaEngineClassFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTimeRange(this: *mut core::ffi::c_void, pptimerange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineClassFactory_Impl, - { + unsafe extern "system" fn CreateTimeRange(this: *mut core::ffi::c_void, pptimerange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineClassFactory_Impl::CreateTimeRange(this) { Ok(ok__) => { @@ -9541,10 +7045,7 @@ impl IMFMediaEngineClassFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateError(this: *mut core::ffi::c_void, pperror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineClassFactory_Impl, - { + unsafe extern "system" fn CreateError(this: *mut core::ffi::c_void, pperror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineClassFactory_Impl::CreateError(this) { Ok(ok__) => { @@ -9565,19 +7066,13 @@ impl IMFMediaEngineClassFactory_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineClassFactory2_Impl: Sized { +pub trait IMFMediaEngineClassFactory2_Impl: Sized + windows_core::IUnknownImpl { fn CreateMediaKeys2(&self, keysystem: &windows_core::BSTR, defaultcdmstorepath: &windows_core::BSTR, inprivatecdmstorepath: &windows_core::BSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IMFMediaEngineClassFactory2 {} impl IMFMediaEngineClassFactory2_Vtbl { - pub const fn new() -> IMFMediaEngineClassFactory2_Vtbl - where - Identity: IMFMediaEngineClassFactory2_Impl, - { - unsafe extern "system" fn CreateMediaKeys2(this: *mut core::ffi::c_void, keysystem: core::mem::MaybeUninit, defaultcdmstorepath: core::mem::MaybeUninit, inprivatecdmstorepath: core::mem::MaybeUninit, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineClassFactory2_Impl, - { + pub const fn new() -> IMFMediaEngineClassFactory2_Vtbl { + unsafe extern "system" fn CreateMediaKeys2(this: *mut core::ffi::c_void, keysystem: core::mem::MaybeUninit, defaultcdmstorepath: core::mem::MaybeUninit, inprivatecdmstorepath: core::mem::MaybeUninit, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineClassFactory2_Impl::CreateMediaKeys2(this, core::mem::transmute(&keysystem), core::mem::transmute(&defaultcdmstorepath), core::mem::transmute(&inprivatecdmstorepath)) { Ok(ok__) => { @@ -9594,21 +7089,15 @@ impl IMFMediaEngineClassFactory2_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMFMediaEngineClassFactory3_Impl: Sized { +pub trait IMFMediaEngineClassFactory3_Impl: Sized + windows_core::IUnknownImpl { fn CreateMediaKeySystemAccess(&self, keysystem: &windows_core::BSTR, ppsupportedconfigurationsarray: *const Option, usize: u32) -> windows_core::Result; } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl windows_core::RuntimeName for IMFMediaEngineClassFactory3 {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFMediaEngineClassFactory3_Vtbl { - pub const fn new() -> IMFMediaEngineClassFactory3_Vtbl - where - Identity: IMFMediaEngineClassFactory3_Impl, - { - unsafe extern "system" fn CreateMediaKeySystemAccess(this: *mut core::ffi::c_void, keysystem: core::mem::MaybeUninit, ppsupportedconfigurationsarray: *const *mut core::ffi::c_void, usize: u32, ppkeyaccess: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineClassFactory3_Impl, - { + pub const fn new() -> IMFMediaEngineClassFactory3_Vtbl { + unsafe extern "system" fn CreateMediaKeySystemAccess(this: *mut core::ffi::c_void, keysystem: core::mem::MaybeUninit, ppsupportedconfigurationsarray: *const *mut core::ffi::c_void, usize: u32, ppkeyaccess: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineClassFactory3_Impl::CreateMediaKeySystemAccess(this, core::mem::transmute(&keysystem), core::mem::transmute_copy(&ppsupportedconfigurationsarray), core::mem::transmute_copy(&usize)) { Ok(ok__) => { @@ -9624,19 +7113,13 @@ impl IMFMediaEngineClassFactory3_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineClassFactory4_Impl: Sized { +pub trait IMFMediaEngineClassFactory4_Impl: Sized + windows_core::IUnknownImpl { fn CreateContentDecryptionModuleFactory(&self, keysystem: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaEngineClassFactory4 {} impl IMFMediaEngineClassFactory4_Vtbl { - pub const fn new() -> IMFMediaEngineClassFactory4_Vtbl - where - Identity: IMFMediaEngineClassFactory4_Impl, - { - unsafe extern "system" fn CreateContentDecryptionModuleFactory(this: *mut core::ffi::c_void, keysystem: windows_core::PCWSTR, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineClassFactory4_Impl, - { + pub const fn new() -> IMFMediaEngineClassFactory4_Vtbl { + unsafe extern "system" fn CreateContentDecryptionModuleFactory(this: *mut core::ffi::c_void, keysystem: windows_core::PCWSTR, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineClassFactory4_Impl::CreateContentDecryptionModuleFactory(this, core::mem::transmute(&keysystem), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } @@ -9656,14 +7139,8 @@ pub trait IMFMediaEngineClassFactoryEx_Impl: Sized + IMFMediaEngineClassFactory_ } impl windows_core::RuntimeName for IMFMediaEngineClassFactoryEx {} impl IMFMediaEngineClassFactoryEx_Vtbl { - pub const fn new() -> IMFMediaEngineClassFactoryEx_Vtbl - where - Identity: IMFMediaEngineClassFactoryEx_Impl, - { - unsafe extern "system" fn CreateMediaSourceExtension(this: *mut core::ffi::c_void, dwflags: u32, pattr: *mut core::ffi::c_void, ppmse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineClassFactoryEx_Impl, - { + pub const fn new() -> IMFMediaEngineClassFactoryEx_Vtbl { + unsafe extern "system" fn CreateMediaSourceExtension(this: *mut core::ffi::c_void, dwflags: u32, pattr: *mut core::ffi::c_void, ppmse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineClassFactoryEx_Impl::CreateMediaSourceExtension(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pattr)) { Ok(ok__) => { @@ -9673,10 +7150,7 @@ impl IMFMediaEngineClassFactoryEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMediaKeys(this: *mut core::ffi::c_void, keysystem: core::mem::MaybeUninit, cdmstorepath: core::mem::MaybeUninit, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineClassFactoryEx_Impl, - { + unsafe extern "system" fn CreateMediaKeys(this: *mut core::ffi::c_void, keysystem: core::mem::MaybeUninit, cdmstorepath: core::mem::MaybeUninit, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineClassFactoryEx_Impl::CreateMediaKeys(this, core::mem::transmute(&keysystem), core::mem::transmute(&cdmstorepath)) { Ok(ok__) => { @@ -9686,10 +7160,7 @@ impl IMFMediaEngineClassFactoryEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, keysystem: core::mem::MaybeUninit, issupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineClassFactoryEx_Impl, - { + unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, keysystem: core::mem::MaybeUninit, issupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineClassFactoryEx_Impl::IsTypeSupported(this, core::mem::transmute(&r#type), core::mem::transmute(&keysystem)) { Ok(ok__) => { @@ -9710,20 +7181,14 @@ impl IMFMediaEngineClassFactoryEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFMediaEngineEME_Impl: Sized { +pub trait IMFMediaEngineEME_Impl: Sized + windows_core::IUnknownImpl { fn Keys(&self) -> windows_core::Result; fn SetMediaKeys(&self, keys: Option<&IMFMediaKeys>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaEngineEME {} impl IMFMediaEngineEME_Vtbl { - pub const fn new() -> IMFMediaEngineEME_Vtbl - where - Identity: IMFMediaEngineEME_Impl, - { - unsafe extern "system" fn Keys(this: *mut core::ffi::c_void, keys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEME_Impl, - { + pub const fn new() -> IMFMediaEngineEME_Vtbl { + unsafe extern "system" fn Keys(this: *mut core::ffi::c_void, keys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEME_Impl::Keys(this) { Ok(ok__) => { @@ -9733,10 +7198,7 @@ impl IMFMediaEngineEME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaKeys(this: *mut core::ffi::c_void, keys: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEME_Impl, - { + unsafe extern "system" fn SetMediaKeys(this: *mut core::ffi::c_void, keys: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEME_Impl::SetMediaKeys(this, windows_core::from_raw_borrowed(&keys)).into() } @@ -9746,27 +7208,18 @@ impl IMFMediaEngineEME_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineEMENotify_Impl: Sized { +pub trait IMFMediaEngineEMENotify_Impl: Sized + windows_core::IUnknownImpl { fn Encrypted(&self, pbinitdata: *const u8, cb: u32, bstrinitdatatype: &windows_core::BSTR); fn WaitingForKey(&self); } impl windows_core::RuntimeName for IMFMediaEngineEMENotify {} impl IMFMediaEngineEMENotify_Vtbl { - pub const fn new() -> IMFMediaEngineEMENotify_Vtbl - where - Identity: IMFMediaEngineEMENotify_Impl, - { - unsafe extern "system" fn Encrypted(this: *mut core::ffi::c_void, pbinitdata: *const u8, cb: u32, bstrinitdatatype: core::mem::MaybeUninit) - where - Identity: IMFMediaEngineEMENotify_Impl, - { + pub const fn new() -> IMFMediaEngineEMENotify_Vtbl { + unsafe extern "system" fn Encrypted(this: *mut core::ffi::c_void, pbinitdata: *const u8, cb: u32, bstrinitdatatype: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEMENotify_Impl::Encrypted(this, core::mem::transmute_copy(&pbinitdata), core::mem::transmute_copy(&cb), core::mem::transmute(&bstrinitdatatype)) } - unsafe extern "system" fn WaitingForKey(this: *mut core::ffi::c_void) - where - Identity: IMFMediaEngineEMENotify_Impl, - { + unsafe extern "system" fn WaitingForKey(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEMENotify_Impl::WaitingForKey(this) } @@ -9821,21 +7274,12 @@ pub trait IMFMediaEngineEx_Impl: Sized + IMFMediaEngine_Impl { } impl windows_core::RuntimeName for IMFMediaEngineEx {} impl IMFMediaEngineEx_Vtbl { - pub const fn new() -> IMFMediaEngineEx_Vtbl - where - Identity: IMFMediaEngineEx_Impl, - { - unsafe extern "system" fn SetSourceFromByteStream(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, purl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + pub const fn new() -> IMFMediaEngineEx_Vtbl { + unsafe extern "system" fn SetSourceFromByteStream(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, purl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetSourceFromByteStream(this, windows_core::from_raw_borrowed(&pbytestream), core::mem::transmute(&purl)).into() } - unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, statisticid: MF_MEDIA_ENGINE_STATISTIC, pstatistic: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, statisticid: MF_MEDIA_ENGINE_STATISTIC, pstatistic: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetStatistics(this, core::mem::transmute_copy(&statisticid)) { Ok(ok__) => { @@ -9845,45 +7289,27 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateVideoStream(this: *mut core::ffi::c_void, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const MFARGB) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn UpdateVideoStream(this: *mut core::ffi::c_void, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const MFARGB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::UpdateVideoStream(this, core::mem::transmute_copy(&psrc), core::mem::transmute_copy(&pdst), core::mem::transmute_copy(&pborderclr)).into() } - unsafe extern "system" fn GetBalance(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetBalance(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::GetBalance(this) } - unsafe extern "system" fn SetBalance(this: *mut core::ffi::c_void, balance: f64) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn SetBalance(this: *mut core::ffi::c_void, balance: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetBalance(this, core::mem::transmute_copy(&balance)).into() } - unsafe extern "system" fn IsPlaybackRateSupported(this: *mut core::ffi::c_void, rate: f64) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn IsPlaybackRateSupported(this: *mut core::ffi::c_void, rate: f64) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::IsPlaybackRateSupported(this, core::mem::transmute_copy(&rate)) } - unsafe extern "system" fn FrameStep(this: *mut core::ffi::c_void, forward: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn FrameStep(this: *mut core::ffi::c_void, forward: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::FrameStep(this, core::mem::transmute_copy(&forward)).into() } - unsafe extern "system" fn GetResourceCharacteristics(this: *mut core::ffi::c_void, pcharacteristics: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetResourceCharacteristics(this: *mut core::ffi::c_void, pcharacteristics: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetResourceCharacteristics(this) { Ok(ok__) => { @@ -9893,10 +7319,7 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPresentationAttribute(this: *mut core::ffi::c_void, guidmfattribute: *const windows_core::GUID, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetPresentationAttribute(this: *mut core::ffi::c_void, guidmfattribute: *const windows_core::GUID, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetPresentationAttribute(this, core::mem::transmute_copy(&guidmfattribute)) { Ok(ok__) => { @@ -9906,10 +7329,7 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOfStreams(this: *mut core::ffi::c_void, pdwstreamcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetNumberOfStreams(this: *mut core::ffi::c_void, pdwstreamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetNumberOfStreams(this) { Ok(ok__) => { @@ -9919,10 +7339,7 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamAttribute(this: *mut core::ffi::c_void, dwstreamindex: u32, guidmfattribute: *const windows_core::GUID, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetStreamAttribute(this: *mut core::ffi::c_void, dwstreamindex: u32, guidmfattribute: *const windows_core::GUID, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetStreamAttribute(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&guidmfattribute)) { Ok(ok__) => { @@ -9932,10 +7349,7 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, penabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, penabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex)) { Ok(ok__) => { @@ -9945,24 +7359,15 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, enabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, enabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn ApplyStreamSelections(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn ApplyStreamSelections(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::ApplyStreamSelections(this).into() } - unsafe extern "system" fn IsProtected(this: *mut core::ffi::c_void, pprotected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn IsProtected(this: *mut core::ffi::c_void, pprotected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::IsProtected(this) { Ok(ok__) => { @@ -9972,38 +7377,23 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertVideoEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn InsertVideoEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::InsertVideoEffect(this, windows_core::from_raw_borrowed(&peffect), core::mem::transmute_copy(&foptional)).into() } - unsafe extern "system" fn InsertAudioEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn InsertAudioEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::InsertAudioEffect(this, windows_core::from_raw_borrowed(&peffect), core::mem::transmute_copy(&foptional)).into() } - unsafe extern "system" fn RemoveAllEffects(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn RemoveAllEffects(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::RemoveAllEffects(this).into() } - unsafe extern "system" fn SetTimelineMarkerTimer(this: *mut core::ffi::c_void, timetofire: f64) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn SetTimelineMarkerTimer(this: *mut core::ffi::c_void, timetofire: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetTimelineMarkerTimer(this, core::mem::transmute_copy(&timetofire)).into() } - unsafe extern "system" fn GetTimelineMarkerTimer(this: *mut core::ffi::c_void, ptimetofire: *mut f64) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetTimelineMarkerTimer(this: *mut core::ffi::c_void, ptimetofire: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetTimelineMarkerTimer(this) { Ok(ok__) => { @@ -10013,24 +7403,15 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CancelTimelineMarkerTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn CancelTimelineMarkerTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::CancelTimelineMarkerTimer(this).into() } - unsafe extern "system" fn IsStereo3D(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn IsStereo3D(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::IsStereo3D(this) } - unsafe extern "system" fn GetStereo3DFramePackingMode(this: *mut core::ffi::c_void, packmode: *mut MF_MEDIA_ENGINE_S3D_PACKING_MODE) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetStereo3DFramePackingMode(this: *mut core::ffi::c_void, packmode: *mut MF_MEDIA_ENGINE_S3D_PACKING_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetStereo3DFramePackingMode(this) { Ok(ok__) => { @@ -10040,17 +7421,11 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStereo3DFramePackingMode(this: *mut core::ffi::c_void, packmode: MF_MEDIA_ENGINE_S3D_PACKING_MODE) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn SetStereo3DFramePackingMode(this: *mut core::ffi::c_void, packmode: MF_MEDIA_ENGINE_S3D_PACKING_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetStereo3DFramePackingMode(this, core::mem::transmute_copy(&packmode)).into() } - unsafe extern "system" fn GetStereo3DRenderMode(this: *mut core::ffi::c_void, outputtype: *mut MF3DVideoOutputType) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetStereo3DRenderMode(this: *mut core::ffi::c_void, outputtype: *mut MF3DVideoOutputType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetStereo3DRenderMode(this) { Ok(ok__) => { @@ -10060,24 +7435,15 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStereo3DRenderMode(this: *mut core::ffi::c_void, outputtype: MF3DVideoOutputType) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn SetStereo3DRenderMode(this: *mut core::ffi::c_void, outputtype: MF3DVideoOutputType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetStereo3DRenderMode(this, core::mem::transmute_copy(&outputtype)).into() } - unsafe extern "system" fn EnableWindowlessSwapchainMode(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn EnableWindowlessSwapchainMode(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::EnableWindowlessSwapchainMode(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn GetVideoSwapchainHandle(this: *mut core::ffi::c_void, phswapchain: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetVideoSwapchainHandle(this: *mut core::ffi::c_void, phswapchain: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetVideoSwapchainHandle(this) { Ok(ok__) => { @@ -10087,17 +7453,11 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableHorizontalMirrorMode(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn EnableHorizontalMirrorMode(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::EnableHorizontalMirrorMode(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn GetAudioStreamCategory(this: *mut core::ffi::c_void, pcategory: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetAudioStreamCategory(this: *mut core::ffi::c_void, pcategory: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetAudioStreamCategory(this) { Ok(ok__) => { @@ -10107,17 +7467,11 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAudioStreamCategory(this: *mut core::ffi::c_void, category: u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn SetAudioStreamCategory(this: *mut core::ffi::c_void, category: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetAudioStreamCategory(this, core::mem::transmute_copy(&category)).into() } - unsafe extern "system" fn GetAudioEndpointRole(this: *mut core::ffi::c_void, prole: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetAudioEndpointRole(this: *mut core::ffi::c_void, prole: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetAudioEndpointRole(this) { Ok(ok__) => { @@ -10127,17 +7481,11 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAudioEndpointRole(this: *mut core::ffi::c_void, role: u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn SetAudioEndpointRole(this: *mut core::ffi::c_void, role: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetAudioEndpointRole(this, core::mem::transmute_copy(&role)).into() } - unsafe extern "system" fn GetRealTimeMode(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn GetRealTimeMode(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetRealTimeMode(this) { Ok(ok__) => { @@ -10147,24 +7495,15 @@ impl IMFMediaEngineEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRealTimeMode(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn SetRealTimeMode(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetRealTimeMode(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn SetCurrentTimeEx(this: *mut core::ffi::c_void, seektime: f64, seekmode: MF_MEDIA_ENGINE_SEEK_MODE) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn SetCurrentTimeEx(this: *mut core::ffi::c_void, seektime: f64, seekmode: MF_MEDIA_ENGINE_SEEK_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetCurrentTimeEx(this, core::mem::transmute_copy(&seektime), core::mem::transmute_copy(&seekmode)).into() } - unsafe extern "system" fn EnableTimeUpdateTimer(this: *mut core::ffi::c_void, fenabletimer: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineEx_Impl, - { + unsafe extern "system" fn EnableTimeUpdateTimer(this: *mut core::ffi::c_void, fenabletimer: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::EnableTimeUpdateTimer(this, core::mem::transmute_copy(&fenabletimer)).into() } @@ -10213,7 +7552,7 @@ impl IMFMediaEngineEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFMediaEngineExtension_Impl: Sized { +pub trait IMFMediaEngineExtension_Impl: Sized + windows_core::IUnknownImpl { fn CanPlayType(&self, audioonly: super::super::Foundation::BOOL, mimetype: &windows_core::BSTR) -> windows_core::Result; fn BeginCreateObject(&self, bstrurl: &windows_core::BSTR, pbytestream: Option<&IMFByteStream>, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: *mut Option, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn CancelObjectCreation(&self, piunknowncancelcookie: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -10221,14 +7560,8 @@ pub trait IMFMediaEngineExtension_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaEngineExtension {} impl IMFMediaEngineExtension_Vtbl { - pub const fn new() -> IMFMediaEngineExtension_Vtbl - where - Identity: IMFMediaEngineExtension_Impl, - { - unsafe extern "system" fn CanPlayType(this: *mut core::ffi::c_void, audioonly: super::super::Foundation::BOOL, mimetype: core::mem::MaybeUninit, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT - where - Identity: IMFMediaEngineExtension_Impl, - { + pub const fn new() -> IMFMediaEngineExtension_Vtbl { + unsafe extern "system" fn CanPlayType(this: *mut core::ffi::c_void, audioonly: super::super::Foundation::BOOL, mimetype: core::mem::MaybeUninit, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineExtension_Impl::CanPlayType(this, core::mem::transmute_copy(&audioonly), core::mem::transmute(&mimetype)) { Ok(ok__) => { @@ -10238,24 +7571,15 @@ impl IMFMediaEngineExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginCreateObject(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, 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 - where - Identity: IMFMediaEngineExtension_Impl, - { + unsafe extern "system" fn BeginCreateObject(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineExtension_Impl::BeginCreateObject(this, core::mem::transmute(&bstrurl), windows_core::from_raw_borrowed(&pbytestream), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&ppiunknowncancelcookie), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn CancelObjectCreation(this: *mut core::ffi::c_void, piunknowncancelcookie: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineExtension_Impl, - { + unsafe extern "system" fn CancelObjectCreation(this: *mut core::ffi::c_void, piunknowncancelcookie: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineExtension_Impl::CancelObjectCreation(this, windows_core::from_raw_borrowed(&piunknowncancelcookie)).into() } - unsafe extern "system" fn EndCreateObject(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineExtension_Impl, - { + unsafe extern "system" fn EndCreateObject(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineExtension_Impl::EndCreateObject(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -10277,19 +7601,13 @@ impl IMFMediaEngineExtension_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineNeedKeyNotify_Impl: Sized { +pub trait IMFMediaEngineNeedKeyNotify_Impl: Sized + windows_core::IUnknownImpl { fn NeedKey(&self, initdata: *const u8, cb: u32); } impl windows_core::RuntimeName for IMFMediaEngineNeedKeyNotify {} impl IMFMediaEngineNeedKeyNotify_Vtbl { - pub const fn new() -> IMFMediaEngineNeedKeyNotify_Vtbl - where - Identity: IMFMediaEngineNeedKeyNotify_Impl, - { - unsafe extern "system" fn NeedKey(this: *mut core::ffi::c_void, initdata: *const u8, cb: u32) - where - Identity: IMFMediaEngineNeedKeyNotify_Impl, - { + pub const fn new() -> IMFMediaEngineNeedKeyNotify_Vtbl { + unsafe extern "system" fn NeedKey(this: *mut core::ffi::c_void, initdata: *const u8, cb: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineNeedKeyNotify_Impl::NeedKey(this, core::mem::transmute_copy(&initdata), core::mem::transmute_copy(&cb)) } @@ -10299,19 +7617,13 @@ impl IMFMediaEngineNeedKeyNotify_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineNotify_Impl: Sized { +pub trait IMFMediaEngineNotify_Impl: Sized + windows_core::IUnknownImpl { fn EventNotify(&self, event: u32, param1: usize, param2: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaEngineNotify {} impl IMFMediaEngineNotify_Vtbl { - pub const fn new() -> IMFMediaEngineNotify_Vtbl - where - Identity: IMFMediaEngineNotify_Impl, - { - unsafe extern "system" fn EventNotify(this: *mut core::ffi::c_void, event: u32, param1: usize, param2: u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngineNotify_Impl, - { + pub const fn new() -> IMFMediaEngineNotify_Vtbl { + unsafe extern "system" fn EventNotify(this: *mut core::ffi::c_void, event: u32, param1: usize, param2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineNotify_Impl::EventNotify(this, core::mem::transmute_copy(&event), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2)).into() } @@ -10321,19 +7633,13 @@ impl IMFMediaEngineNotify_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineOPMInfo_Impl: Sized { +pub trait IMFMediaEngineOPMInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetOPMInfo(&self, pstatus: *mut MF_MEDIA_ENGINE_OPM_STATUS, pconstricted: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaEngineOPMInfo {} impl IMFMediaEngineOPMInfo_Vtbl { - pub const fn new() -> IMFMediaEngineOPMInfo_Vtbl - where - Identity: IMFMediaEngineOPMInfo_Impl, - { - unsafe extern "system" fn GetOPMInfo(this: *mut core::ffi::c_void, pstatus: *mut MF_MEDIA_ENGINE_OPM_STATUS, pconstricted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineOPMInfo_Impl, - { + pub const fn new() -> IMFMediaEngineOPMInfo_Vtbl { + unsafe extern "system" fn GetOPMInfo(this: *mut core::ffi::c_void, pstatus: *mut MF_MEDIA_ENGINE_OPM_STATUS, pconstricted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineOPMInfo_Impl::GetOPMInfo(this, core::mem::transmute_copy(&pstatus), core::mem::transmute_copy(&pconstricted)).into() } @@ -10343,7 +7649,7 @@ impl IMFMediaEngineOPMInfo_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineProtectedContent_Impl: Sized { +pub trait IMFMediaEngineProtectedContent_Impl: Sized + windows_core::IUnknownImpl { fn ShareResources(&self, punkdevicecontext: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetRequiredProtections(&self) -> windows_core::Result; fn SetOPMWindow(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; @@ -10353,21 +7659,12 @@ pub trait IMFMediaEngineProtectedContent_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaEngineProtectedContent {} impl IMFMediaEngineProtectedContent_Vtbl { - pub const fn new() -> IMFMediaEngineProtectedContent_Vtbl - where - Identity: IMFMediaEngineProtectedContent_Impl, - { - unsafe extern "system" fn ShareResources(this: *mut core::ffi::c_void, punkdevicecontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineProtectedContent_Impl, - { + pub const fn new() -> IMFMediaEngineProtectedContent_Vtbl { + unsafe extern "system" fn ShareResources(this: *mut core::ffi::c_void, punkdevicecontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineProtectedContent_Impl::ShareResources(this, windows_core::from_raw_borrowed(&punkdevicecontext)).into() } - unsafe extern "system" fn GetRequiredProtections(this: *mut core::ffi::c_void, pframeprotectionflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngineProtectedContent_Impl, - { + unsafe extern "system" fn GetRequiredProtections(this: *mut core::ffi::c_void, pframeprotectionflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineProtectedContent_Impl::GetRequiredProtections(this) { Ok(ok__) => { @@ -10377,17 +7674,11 @@ impl IMFMediaEngineProtectedContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOPMWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IMFMediaEngineProtectedContent_Impl, - { + unsafe extern "system" fn SetOPMWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineProtectedContent_Impl::SetOPMWindow(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn TransferVideoFrame(this: *mut core::ffi::c_void, pdstsurf: *mut core::ffi::c_void, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const MFARGB, pframeprotectionflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngineProtectedContent_Impl, - { + unsafe extern "system" fn TransferVideoFrame(this: *mut core::ffi::c_void, pdstsurf: *mut core::ffi::c_void, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const MFARGB, pframeprotectionflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineProtectedContent_Impl::TransferVideoFrame(this, windows_core::from_raw_borrowed(&pdstsurf), core::mem::transmute_copy(&psrc), core::mem::transmute_copy(&pdst), core::mem::transmute_copy(&pborderclr)) { Ok(ok__) => { @@ -10397,17 +7688,11 @@ impl IMFMediaEngineProtectedContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContentProtectionManager(this: *mut core::ffi::c_void, pcpm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineProtectedContent_Impl, - { + unsafe extern "system" fn SetContentProtectionManager(this: *mut core::ffi::c_void, pcpm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineProtectedContent_Impl::SetContentProtectionManager(this, windows_core::from_raw_borrowed(&pcpm)).into() } - unsafe extern "system" fn SetApplicationCertificate(this: *mut core::ffi::c_void, pbblob: *const u8, cbblob: u32) -> windows_core::HRESULT - where - Identity: IMFMediaEngineProtectedContent_Impl, - { + unsafe extern "system" fn SetApplicationCertificate(this: *mut core::ffi::c_void, pbblob: *const u8, cbblob: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineProtectedContent_Impl::SetApplicationCertificate(this, core::mem::transmute_copy(&pbblob), core::mem::transmute_copy(&cbblob)).into() } @@ -10425,7 +7710,7 @@ impl IMFMediaEngineProtectedContent_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineSrcElements_Impl: Sized { +pub trait IMFMediaEngineSrcElements_Impl: Sized + windows_core::IUnknownImpl { fn GetLength(&self) -> u32; fn GetURL(&self, index: u32) -> windows_core::Result; fn GetType(&self, index: u32) -> windows_core::Result; @@ -10435,21 +7720,12 @@ pub trait IMFMediaEngineSrcElements_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaEngineSrcElements {} impl IMFMediaEngineSrcElements_Vtbl { - pub const fn new() -> IMFMediaEngineSrcElements_Vtbl - where - Identity: IMFMediaEngineSrcElements_Impl, - { - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFMediaEngineSrcElements_Impl, - { + pub const fn new() -> IMFMediaEngineSrcElements_Vtbl { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineSrcElements_Impl::GetLength(this) } - unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, index: u32, purl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngineSrcElements_Impl, - { + unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, index: u32, purl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineSrcElements_Impl::GetURL(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -10459,10 +7735,7 @@ impl IMFMediaEngineSrcElements_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, index: u32, ptype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngineSrcElements_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, index: u32, ptype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineSrcElements_Impl::GetType(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -10472,10 +7745,7 @@ impl IMFMediaEngineSrcElements_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMedia(this: *mut core::ffi::c_void, index: u32, pmedia: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngineSrcElements_Impl, - { + unsafe extern "system" fn GetMedia(this: *mut core::ffi::c_void, index: u32, pmedia: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineSrcElements_Impl::GetMedia(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -10485,17 +7755,11 @@ impl IMFMediaEngineSrcElements_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddElement(this: *mut core::ffi::c_void, purl: core::mem::MaybeUninit, ptype: core::mem::MaybeUninit, pmedia: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngineSrcElements_Impl, - { + unsafe extern "system" fn AddElement(this: *mut core::ffi::c_void, purl: core::mem::MaybeUninit, ptype: core::mem::MaybeUninit, pmedia: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineSrcElements_Impl::AddElement(this, core::mem::transmute(&purl), core::mem::transmute(&ptype), core::mem::transmute(&pmedia)).into() } - unsafe extern "system" fn RemoveAllElements(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineSrcElements_Impl, - { + unsafe extern "system" fn RemoveAllElements(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineSrcElements_Impl::RemoveAllElements(this).into() } @@ -10519,21 +7783,12 @@ pub trait IMFMediaEngineSrcElementsEx_Impl: Sized + IMFMediaEngineSrcElements_Im } impl windows_core::RuntimeName for IMFMediaEngineSrcElementsEx {} impl IMFMediaEngineSrcElementsEx_Vtbl { - pub const fn new() -> IMFMediaEngineSrcElementsEx_Vtbl - where - Identity: IMFMediaEngineSrcElementsEx_Impl, - { - unsafe extern "system" fn AddElementEx(this: *mut core::ffi::c_void, purl: core::mem::MaybeUninit, ptype: core::mem::MaybeUninit, pmedia: core::mem::MaybeUninit, keysystem: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngineSrcElementsEx_Impl, - { + pub const fn new() -> IMFMediaEngineSrcElementsEx_Vtbl { + unsafe extern "system" fn AddElementEx(this: *mut core::ffi::c_void, purl: core::mem::MaybeUninit, ptype: core::mem::MaybeUninit, pmedia: core::mem::MaybeUninit, keysystem: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineSrcElementsEx_Impl::AddElementEx(this, core::mem::transmute(&purl), core::mem::transmute(&ptype), core::mem::transmute(&pmedia), core::mem::transmute(&keysystem)).into() } - unsafe extern "system" fn GetKeySystem(this: *mut core::ffi::c_void, index: u32, ptype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEngineSrcElementsEx_Impl, - { + unsafe extern "system" fn GetKeySystem(this: *mut core::ffi::c_void, index: u32, ptype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineSrcElementsEx_Impl::GetKeySystem(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -10553,21 +7808,15 @@ impl IMFMediaEngineSrcElementsEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFMediaEngineSupportsSourceTransfer_Impl: Sized { +pub trait IMFMediaEngineSupportsSourceTransfer_Impl: Sized + windows_core::IUnknownImpl { fn ShouldTransferSource(&self) -> windows_core::Result; fn DetachMediaSource(&self, ppbytestream: *mut Option, ppmediasource: *mut Option, ppmse: *mut Option) -> windows_core::Result<()>; fn AttachMediaSource(&self, pbytestream: Option<&IMFByteStream>, pmediasource: Option<&IMFMediaSource>, pmse: Option<&IMFMediaSourceExtension>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaEngineSupportsSourceTransfer {} impl IMFMediaEngineSupportsSourceTransfer_Vtbl { - pub const fn new() -> IMFMediaEngineSupportsSourceTransfer_Vtbl - where - Identity: IMFMediaEngineSupportsSourceTransfer_Impl, - { - unsafe extern "system" fn ShouldTransferSource(this: *mut core::ffi::c_void, pfshouldtransfer: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaEngineSupportsSourceTransfer_Impl, - { + pub const fn new() -> IMFMediaEngineSupportsSourceTransfer_Vtbl { + unsafe extern "system" fn ShouldTransferSource(this: *mut core::ffi::c_void, pfshouldtransfer: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineSupportsSourceTransfer_Impl::ShouldTransferSource(this) { Ok(ok__) => { @@ -10577,17 +7826,11 @@ impl IMFMediaEngineSupportsSourceTransfer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DetachMediaSource(this: *mut core::ffi::c_void, ppbytestream: *mut *mut core::ffi::c_void, ppmediasource: *mut *mut core::ffi::c_void, ppmse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineSupportsSourceTransfer_Impl, - { + unsafe extern "system" fn DetachMediaSource(this: *mut core::ffi::c_void, ppbytestream: *mut *mut core::ffi::c_void, ppmediasource: *mut *mut core::ffi::c_void, ppmse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineSupportsSourceTransfer_Impl::DetachMediaSource(this, core::mem::transmute_copy(&ppbytestream), core::mem::transmute_copy(&ppmediasource), core::mem::transmute_copy(&ppmse)).into() } - unsafe extern "system" fn AttachMediaSource(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, pmediasource: *mut core::ffi::c_void, pmse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineSupportsSourceTransfer_Impl, - { + unsafe extern "system" fn AttachMediaSource(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, pmediasource: *mut core::ffi::c_void, pmse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineSupportsSourceTransfer_Impl::AttachMediaSource(this, windows_core::from_raw_borrowed(&pbytestream), windows_core::from_raw_borrowed(&pmediasource), windows_core::from_raw_borrowed(&pmse)).into() } @@ -10602,19 +7845,13 @@ impl IMFMediaEngineSupportsSourceTransfer_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineTransferSource_Impl: Sized { +pub trait IMFMediaEngineTransferSource_Impl: Sized + windows_core::IUnknownImpl { fn TransferSourceToMediaEngine(&self, destination: Option<&IMFMediaEngine>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaEngineTransferSource {} impl IMFMediaEngineTransferSource_Vtbl { - pub const fn new() -> IMFMediaEngineTransferSource_Vtbl - where - Identity: IMFMediaEngineTransferSource_Impl, - { - unsafe extern "system" fn TransferSourceToMediaEngine(this: *mut core::ffi::c_void, destination: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineTransferSource_Impl, - { + pub const fn new() -> IMFMediaEngineTransferSource_Vtbl { + unsafe extern "system" fn TransferSourceToMediaEngine(this: *mut core::ffi::c_void, destination: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineTransferSource_Impl::TransferSourceToMediaEngine(this, windows_core::from_raw_borrowed(&destination)).into() } @@ -10624,28 +7861,19 @@ impl IMFMediaEngineTransferSource_Vtbl { iid == &::IID } } -pub trait IMFMediaEngineWebSupport_Impl: Sized { +pub trait IMFMediaEngineWebSupport_Impl: Sized + windows_core::IUnknownImpl { fn ShouldDelayTheLoadEvent(&self) -> super::super::Foundation::BOOL; fn ConnectWebAudio(&self, dwsamplerate: u32) -> windows_core::Result; fn DisconnectWebAudio(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaEngineWebSupport {} impl IMFMediaEngineWebSupport_Vtbl { - pub const fn new() -> IMFMediaEngineWebSupport_Vtbl - where - Identity: IMFMediaEngineWebSupport_Impl, - { - unsafe extern "system" fn ShouldDelayTheLoadEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFMediaEngineWebSupport_Impl, - { + pub const fn new() -> IMFMediaEngineWebSupport_Vtbl { + unsafe extern "system" fn ShouldDelayTheLoadEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineWebSupport_Impl::ShouldDelayTheLoadEvent(this) } - unsafe extern "system" fn ConnectWebAudio(this: *mut core::ffi::c_void, dwsamplerate: u32, ppsourceprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineWebSupport_Impl, - { + unsafe extern "system" fn ConnectWebAudio(this: *mut core::ffi::c_void, dwsamplerate: u32, ppsourceprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineWebSupport_Impl::ConnectWebAudio(this, core::mem::transmute_copy(&dwsamplerate)) { Ok(ok__) => { @@ -10655,10 +7883,7 @@ impl IMFMediaEngineWebSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisconnectWebAudio(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEngineWebSupport_Impl, - { + unsafe extern "system" fn DisconnectWebAudio(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineWebSupport_Impl::DisconnectWebAudio(this).into() } @@ -10673,7 +7898,7 @@ impl IMFMediaEngineWebSupport_Vtbl { iid == &::IID } } -pub trait IMFMediaError_Impl: Sized { +pub trait IMFMediaError_Impl: Sized + windows_core::IUnknownImpl { fn GetErrorCode(&self) -> u16; fn GetExtendedErrorCode(&self) -> windows_core::Result<()>; fn SetErrorCode(&self, error: MF_MEDIA_ENGINE_ERR) -> windows_core::Result<()>; @@ -10681,35 +7906,20 @@ pub trait IMFMediaError_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaError {} impl IMFMediaError_Vtbl { - pub const fn new() -> IMFMediaError_Vtbl - where - Identity: IMFMediaError_Impl, - { - unsafe extern "system" fn GetErrorCode(this: *mut core::ffi::c_void) -> u16 - where - Identity: IMFMediaError_Impl, - { + pub const fn new() -> IMFMediaError_Vtbl { + unsafe extern "system" fn GetErrorCode(this: *mut core::ffi::c_void) -> u16 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaError_Impl::GetErrorCode(this) } - unsafe extern "system" fn GetExtendedErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaError_Impl, - { + unsafe extern "system" fn GetExtendedErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaError_Impl::GetExtendedErrorCode(this).into() } - unsafe extern "system" fn SetErrorCode(this: *mut core::ffi::c_void, error: MF_MEDIA_ENGINE_ERR) -> windows_core::HRESULT - where - Identity: IMFMediaError_Impl, - { + unsafe extern "system" fn SetErrorCode(this: *mut core::ffi::c_void, error: MF_MEDIA_ENGINE_ERR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaError_Impl::SetErrorCode(this, core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn SetExtendedErrorCode(this: *mut core::ffi::c_void, error: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMFMediaError_Impl, - { + unsafe extern "system" fn SetExtendedErrorCode(this: *mut core::ffi::c_void, error: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaError_Impl::SetExtendedErrorCode(this, core::mem::transmute_copy(&error)).into() } @@ -10733,14 +7943,8 @@ pub trait IMFMediaEvent_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFMediaEvent {} impl IMFMediaEvent_Vtbl { - pub const fn new() -> IMFMediaEvent_Vtbl - where - Identity: IMFMediaEvent_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pmet: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaEvent_Impl, - { + pub const fn new() -> IMFMediaEvent_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pmet: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEvent_Impl::GetType(this) { Ok(ok__) => { @@ -10750,10 +7954,7 @@ impl IMFMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExtendedType(this: *mut core::ffi::c_void, pguidextendedtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFMediaEvent_Impl, - { + unsafe extern "system" fn GetExtendedType(this: *mut core::ffi::c_void, pguidextendedtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEvent_Impl::GetExtendedType(this) { Ok(ok__) => { @@ -10763,10 +7964,7 @@ impl IMFMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, phrstatus: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMFMediaEvent_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, phrstatus: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEvent_Impl::GetStatus(this) { Ok(ok__) => { @@ -10776,10 +7974,7 @@ impl IMFMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEvent_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEvent_Impl::GetValue(this) { Ok(ok__) => { @@ -10801,7 +7996,7 @@ impl IMFMediaEvent_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFMediaEventGenerator_Impl: Sized { +pub trait IMFMediaEventGenerator_Impl: Sized + windows_core::IUnknownImpl { fn GetEvent(&self, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS) -> windows_core::Result; fn BeginGetEvent(&self, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndGetEvent(&self, presult: Option<&IMFAsyncResult>) -> windows_core::Result; @@ -10809,14 +8004,8 @@ pub trait IMFMediaEventGenerator_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaEventGenerator {} impl IMFMediaEventGenerator_Vtbl { - pub const fn new() -> IMFMediaEventGenerator_Vtbl - where - Identity: IMFMediaEventGenerator_Impl, - { - unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEventGenerator_Impl, - { + pub const fn new() -> IMFMediaEventGenerator_Vtbl { + unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEventGenerator_Impl::GetEvent(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -10826,17 +8015,11 @@ impl IMFMediaEventGenerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginGetEvent(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEventGenerator_Impl, - { + unsafe extern "system" fn BeginGetEvent(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEventGenerator_Impl::BeginGetEvent(this, windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndGetEvent(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEventGenerator_Impl, - { + unsafe extern "system" fn EndGetEvent(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEventGenerator_Impl::EndGetEvent(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -10846,10 +8029,7 @@ impl IMFMediaEventGenerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueEvent(this: *mut core::ffi::c_void, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEventGenerator_Impl, - { + unsafe extern "system" fn QueueEvent(this: *mut core::ffi::c_void, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEventGenerator_Impl::QueueEvent(this, core::mem::transmute_copy(&met), core::mem::transmute_copy(&guidextendedtype), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&pvvalue)).into() } @@ -10865,7 +8045,7 @@ impl IMFMediaEventGenerator_Vtbl { iid == &::IID } } -pub trait IMFMediaEventQueue_Impl: Sized { +pub trait IMFMediaEventQueue_Impl: Sized + windows_core::IUnknownImpl { fn GetEvent(&self, dwflags: u32) -> windows_core::Result; fn BeginGetEvent(&self, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndGetEvent(&self, presult: Option<&IMFAsyncResult>) -> windows_core::Result; @@ -10876,14 +8056,8 @@ pub trait IMFMediaEventQueue_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaEventQueue {} impl IMFMediaEventQueue_Vtbl { - pub const fn new() -> IMFMediaEventQueue_Vtbl - where - Identity: IMFMediaEventQueue_Impl, - { - unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, dwflags: u32, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEventQueue_Impl, - { + pub const fn new() -> IMFMediaEventQueue_Vtbl { + unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, dwflags: u32, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEventQueue_Impl::GetEvent(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -10893,17 +8067,11 @@ impl IMFMediaEventQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginGetEvent(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEventQueue_Impl, - { + unsafe extern "system" fn BeginGetEvent(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEventQueue_Impl::BeginGetEvent(this, windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndGetEvent(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEventQueue_Impl, - { + unsafe extern "system" fn EndGetEvent(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEventQueue_Impl::EndGetEvent(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -10913,31 +8081,19 @@ impl IMFMediaEventQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueEvent(this: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEventQueue_Impl, - { + unsafe extern "system" fn QueueEvent(this: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEventQueue_Impl::QueueEvent(this, windows_core::from_raw_borrowed(&pevent)).into() } - unsafe extern "system" fn QueueEventParamVar(this: *mut core::ffi::c_void, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaEventQueue_Impl, - { + unsafe extern "system" fn QueueEventParamVar(this: *mut core::ffi::c_void, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, pvvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEventQueue_Impl::QueueEventParamVar(this, core::mem::transmute_copy(&met), core::mem::transmute_copy(&guidextendedtype), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&pvvalue)).into() } - unsafe extern "system" fn QueueEventParamUnk(this: *mut core::ffi::c_void, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEventQueue_Impl, - { + unsafe extern "system" fn QueueEventParamUnk(this: *mut core::ffi::c_void, met: u32, guidextendedtype: *const windows_core::GUID, hrstatus: windows_core::HRESULT, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEventQueue_Impl::QueueEventParamUnk(this, core::mem::transmute_copy(&met), core::mem::transmute_copy(&guidextendedtype), core::mem::transmute_copy(&hrstatus), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaEventQueue_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEventQueue_Impl::Shutdown(this).into() } @@ -10956,7 +8112,7 @@ impl IMFMediaEventQueue_Vtbl { iid == &::IID } } -pub trait IMFMediaKeySession_Impl: Sized { +pub trait IMFMediaKeySession_Impl: Sized + windows_core::IUnknownImpl { fn GetError(&self, code: *mut u16, systemcode: *mut u32) -> windows_core::Result<()>; fn KeySystem(&self) -> windows_core::Result; fn SessionId(&self) -> windows_core::Result; @@ -10965,21 +8121,12 @@ pub trait IMFMediaKeySession_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaKeySession {} impl IMFMediaKeySession_Vtbl { - pub const fn new() -> IMFMediaKeySession_Vtbl - where - Identity: IMFMediaKeySession_Impl, - { - unsafe extern "system" fn GetError(this: *mut core::ffi::c_void, code: *mut u16, systemcode: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession_Impl, - { + pub const fn new() -> IMFMediaKeySession_Vtbl { + unsafe extern "system" fn GetError(this: *mut core::ffi::c_void, code: *mut u16, systemcode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySession_Impl::GetError(this, core::mem::transmute_copy(&code), core::mem::transmute_copy(&systemcode)).into() } - unsafe extern "system" fn KeySystem(this: *mut core::ffi::c_void, keysystem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession_Impl, - { + unsafe extern "system" fn KeySystem(this: *mut core::ffi::c_void, keysystem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeySession_Impl::KeySystem(this) { Ok(ok__) => { @@ -10989,10 +8136,7 @@ impl IMFMediaKeySession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionId(this: *mut core::ffi::c_void, sessionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession_Impl, - { + unsafe extern "system" fn SessionId(this: *mut core::ffi::c_void, sessionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeySession_Impl::SessionId(this) { Ok(ok__) => { @@ -11002,17 +8146,11 @@ impl IMFMediaKeySession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, key: *const u8, cb: u32) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, key: *const u8, cb: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySession_Impl::Update(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&cb)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySession_Impl::Close(this).into() } @@ -11039,21 +8177,12 @@ pub trait IMFMediaKeySession2_Impl: Sized + IMFMediaKeySession_Impl { } impl windows_core::RuntimeName for IMFMediaKeySession2 {} impl IMFMediaKeySession2_Vtbl { - pub const fn new() -> IMFMediaKeySession2_Vtbl - where - Identity: IMFMediaKeySession2_Impl, - { - unsafe extern "system" fn get_KeyStatuses(this: *mut core::ffi::c_void, pkeystatusesarray: *mut *mut MFMediaKeyStatus, pusize: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession2_Impl, - { + pub const fn new() -> IMFMediaKeySession2_Vtbl { + unsafe extern "system" fn get_KeyStatuses(this: *mut core::ffi::c_void, pkeystatusesarray: *mut *mut MFMediaKeyStatus, pusize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySession2_Impl::get_KeyStatuses(this, core::mem::transmute_copy(&pkeystatusesarray), core::mem::transmute_copy(&pusize)).into() } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, bstrsessionid: core::mem::MaybeUninit, pfloaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession2_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, bstrsessionid: core::mem::MaybeUninit, pfloaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeySession2_Impl::Load(this, core::mem::transmute(&bstrsessionid)) { Ok(ok__) => { @@ -11063,17 +8192,11 @@ impl IMFMediaKeySession2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateRequest(this: *mut core::ffi::c_void, initdatatype: core::mem::MaybeUninit, pbinitdata: *const u8, cb: u32) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession2_Impl, - { + unsafe extern "system" fn GenerateRequest(this: *mut core::ffi::c_void, initdatatype: core::mem::MaybeUninit, pbinitdata: *const u8, cb: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySession2_Impl::GenerateRequest(this, core::mem::transmute(&initdatatype), core::mem::transmute_copy(&pbinitdata), core::mem::transmute_copy(&cb)).into() } - unsafe extern "system" fn Expiration(this: *mut core::ffi::c_void, dblexpiration: *mut f64) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession2_Impl, - { + unsafe extern "system" fn Expiration(this: *mut core::ffi::c_void, dblexpiration: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeySession2_Impl::Expiration(this) { Ok(ok__) => { @@ -11083,17 +8206,11 @@ impl IMFMediaKeySession2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession2_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySession2_Impl::Remove(this).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaKeySession2_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySession2_Impl::Shutdown(this).into() } @@ -11111,35 +8228,23 @@ impl IMFMediaKeySession2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFMediaKeySessionNotify_Impl: Sized { +pub trait IMFMediaKeySessionNotify_Impl: Sized + windows_core::IUnknownImpl { fn KeyMessage(&self, destinationurl: &windows_core::BSTR, message: *const u8, cb: u32); fn KeyAdded(&self); fn KeyError(&self, code: u16, systemcode: u32); } impl windows_core::RuntimeName for IMFMediaKeySessionNotify {} impl IMFMediaKeySessionNotify_Vtbl { - pub const fn new() -> IMFMediaKeySessionNotify_Vtbl - where - Identity: IMFMediaKeySessionNotify_Impl, - { - unsafe extern "system" fn KeyMessage(this: *mut core::ffi::c_void, destinationurl: core::mem::MaybeUninit, message: *const u8, cb: u32) - where - Identity: IMFMediaKeySessionNotify_Impl, - { + pub const fn new() -> IMFMediaKeySessionNotify_Vtbl { + unsafe extern "system" fn KeyMessage(this: *mut core::ffi::c_void, destinationurl: core::mem::MaybeUninit, message: *const u8, cb: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySessionNotify_Impl::KeyMessage(this, core::mem::transmute(&destinationurl), core::mem::transmute_copy(&message), core::mem::transmute_copy(&cb)) } - unsafe extern "system" fn KeyAdded(this: *mut core::ffi::c_void) - where - Identity: IMFMediaKeySessionNotify_Impl, - { + unsafe extern "system" fn KeyAdded(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySessionNotify_Impl::KeyAdded(this) } - unsafe extern "system" fn KeyError(this: *mut core::ffi::c_void, code: u16, systemcode: u32) - where - Identity: IMFMediaKeySessionNotify_Impl, - { + unsafe extern "system" fn KeyError(this: *mut core::ffi::c_void, code: u16, systemcode: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySessionNotify_Impl::KeyError(this, core::mem::transmute_copy(&code), core::mem::transmute_copy(&systemcode)) } @@ -11160,21 +8265,12 @@ pub trait IMFMediaKeySessionNotify2_Impl: Sized + IMFMediaKeySessionNotify_Impl } impl windows_core::RuntimeName for IMFMediaKeySessionNotify2 {} impl IMFMediaKeySessionNotify2_Vtbl { - pub const fn new() -> IMFMediaKeySessionNotify2_Vtbl - where - Identity: IMFMediaKeySessionNotify2_Impl, - { - unsafe extern "system" fn KeyMessage2(this: *mut core::ffi::c_void, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: core::mem::MaybeUninit, pbmessage: *const u8, cbmessage: u32) - where - Identity: IMFMediaKeySessionNotify2_Impl, - { + pub const fn new() -> IMFMediaKeySessionNotify2_Vtbl { + unsafe extern "system" fn KeyMessage2(this: *mut core::ffi::c_void, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: core::mem::MaybeUninit, pbmessage: *const u8, cbmessage: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySessionNotify2_Impl::KeyMessage2(this, core::mem::transmute_copy(&emessagetype), core::mem::transmute(&destinationurl), core::mem::transmute_copy(&pbmessage), core::mem::transmute_copy(&cbmessage)) } - unsafe extern "system" fn KeyStatusChange(this: *mut core::ffi::c_void) - where - Identity: IMFMediaKeySessionNotify2_Impl, - { + unsafe extern "system" fn KeyStatusChange(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeySessionNotify2_Impl::KeyStatusChange(this) } @@ -11189,7 +8285,7 @@ impl IMFMediaKeySessionNotify2_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMFMediaKeySystemAccess_Impl: Sized { +pub trait IMFMediaKeySystemAccess_Impl: Sized + windows_core::IUnknownImpl { fn CreateMediaKeys(&self, pcdmcustomconfig: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>) -> windows_core::Result; fn SupportedConfiguration(&self) -> windows_core::Result; fn KeySystem(&self) -> windows_core::Result; @@ -11198,14 +8294,8 @@ pub trait IMFMediaKeySystemAccess_Impl: Sized { impl windows_core::RuntimeName for IMFMediaKeySystemAccess {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFMediaKeySystemAccess_Vtbl { - pub const fn new() -> IMFMediaKeySystemAccess_Vtbl - where - Identity: IMFMediaKeySystemAccess_Impl, - { - unsafe extern "system" fn CreateMediaKeys(this: *mut core::ffi::c_void, pcdmcustomconfig: *mut core::ffi::c_void, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaKeySystemAccess_Impl, - { + pub const fn new() -> IMFMediaKeySystemAccess_Vtbl { + unsafe extern "system" fn CreateMediaKeys(this: *mut core::ffi::c_void, pcdmcustomconfig: *mut core::ffi::c_void, ppkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeySystemAccess_Impl::CreateMediaKeys(this, windows_core::from_raw_borrowed(&pcdmcustomconfig)) { Ok(ok__) => { @@ -11215,10 +8305,7 @@ impl IMFMediaKeySystemAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedConfiguration(this: *mut core::ffi::c_void, ppsupportedconfiguration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaKeySystemAccess_Impl, - { + unsafe extern "system" fn SupportedConfiguration(this: *mut core::ffi::c_void, ppsupportedconfiguration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeySystemAccess_Impl::SupportedConfiguration(this) { Ok(ok__) => { @@ -11228,10 +8315,7 @@ impl IMFMediaKeySystemAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeySystem(this: *mut core::ffi::c_void, pkeysystem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaKeySystemAccess_Impl, - { + unsafe extern "system" fn KeySystem(this: *mut core::ffi::c_void, pkeysystem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeySystemAccess_Impl::KeySystem(this) { Ok(ok__) => { @@ -11252,7 +8336,7 @@ impl IMFMediaKeySystemAccess_Vtbl { iid == &::IID } } -pub trait IMFMediaKeys_Impl: Sized { +pub trait IMFMediaKeys_Impl: Sized + windows_core::IUnknownImpl { fn CreateSession(&self, mimetype: &windows_core::BSTR, initdata: *const u8, cb: u32, customdata: *const u8, cbcustomdata: u32, notify: Option<&IMFMediaKeySessionNotify>) -> windows_core::Result; fn KeySystem(&self) -> windows_core::Result; fn Shutdown(&self) -> windows_core::Result<()>; @@ -11260,14 +8344,8 @@ pub trait IMFMediaKeys_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaKeys {} impl IMFMediaKeys_Vtbl { - pub const fn new() -> IMFMediaKeys_Vtbl - where - Identity: IMFMediaKeys_Impl, - { - unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, mimetype: core::mem::MaybeUninit, 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 - where - Identity: IMFMediaKeys_Impl, - { + pub const fn new() -> IMFMediaKeys_Vtbl { + unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, mimetype: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeys_Impl::CreateSession(this, core::mem::transmute(&mimetype), core::mem::transmute_copy(&initdata), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&customdata), core::mem::transmute_copy(&cbcustomdata), windows_core::from_raw_borrowed(¬ify)) { Ok(ok__) => { @@ -11277,10 +8355,7 @@ impl IMFMediaKeys_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeySystem(this: *mut core::ffi::c_void, keysystem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaKeys_Impl, - { + unsafe extern "system" fn KeySystem(this: *mut core::ffi::c_void, keysystem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeys_Impl::KeySystem(this) { Ok(ok__) => { @@ -11290,17 +8365,11 @@ impl IMFMediaKeys_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaKeys_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeys_Impl::Shutdown(this).into() } - unsafe extern "system" fn GetSuspendNotify(this: *mut core::ffi::c_void, notify: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaKeys_Impl, - { + unsafe extern "system" fn GetSuspendNotify(this: *mut core::ffi::c_void, notify: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeys_Impl::GetSuspendNotify(this) { Ok(ok__) => { @@ -11329,14 +8398,8 @@ pub trait IMFMediaKeys2_Impl: Sized + IMFMediaKeys_Impl { } impl windows_core::RuntimeName for IMFMediaKeys2 {} impl IMFMediaKeys2_Vtbl { - pub const fn new() -> IMFMediaKeys2_Vtbl - where - Identity: IMFMediaKeys2_Impl, - { - unsafe extern "system" fn CreateSession2(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 - where - Identity: IMFMediaKeys2_Impl, - { + pub const fn new() -> IMFMediaKeys2_Vtbl { + unsafe extern "system" fn CreateSession2(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeys2_Impl::CreateSession2(this, core::mem::transmute_copy(&esessiontype), windows_core::from_raw_borrowed(&pmfmediakeysessionnotify2)) { Ok(ok__) => { @@ -11346,17 +8409,11 @@ impl IMFMediaKeys2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerCertificate(this: *mut core::ffi::c_void, pbservercertificate: *const u8, cb: u32) -> windows_core::HRESULT - where - Identity: IMFMediaKeys2_Impl, - { + unsafe extern "system" fn SetServerCertificate(this: *mut core::ffi::c_void, pbservercertificate: *const u8, cb: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaKeys2_Impl::SetServerCertificate(this, core::mem::transmute_copy(&pbservercertificate), core::mem::transmute_copy(&cb)).into() } - unsafe extern "system" fn GetDOMException(this: *mut core::ffi::c_void, systemcode: windows_core::HRESULT, code: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMFMediaKeys2_Impl, - { + unsafe extern "system" fn GetDOMException(this: *mut core::ffi::c_void, systemcode: windows_core::HRESULT, code: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeys2_Impl::GetDOMException(this, core::mem::transmute_copy(&systemcode)) { Ok(ok__) => { @@ -11391,63 +8448,36 @@ pub trait IMFMediaSession_Impl: Sized + IMFMediaEventGenerator_Impl { } impl windows_core::RuntimeName for IMFMediaSession {} impl IMFMediaSession_Vtbl { - pub const fn new() -> IMFMediaSession_Vtbl - where - Identity: IMFMediaSession_Impl, - { - unsafe extern "system" fn SetTopology(this: *mut core::ffi::c_void, dwsettopologyflags: u32, ptopology: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSession_Impl, - { + pub const fn new() -> IMFMediaSession_Vtbl { + unsafe extern "system" fn SetTopology(this: *mut core::ffi::c_void, dwsettopologyflags: u32, ptopology: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSession_Impl::SetTopology(this, core::mem::transmute_copy(&dwsettopologyflags), windows_core::from_raw_borrowed(&ptopology)).into() } - unsafe extern "system" fn ClearTopologies(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSession_Impl, - { + unsafe extern "system" fn ClearTopologies(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSession_Impl::ClearTopologies(this).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaSession_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSession_Impl::Start(this, core::mem::transmute_copy(&pguidtimeformat), core::mem::transmute_copy(&pvarstartposition)).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSession_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSession_Impl::Pause(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSession_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSession_Impl::Stop(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSession_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSession_Impl::Close(this).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSession_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSession_Impl::Shutdown(this).into() } - unsafe extern "system" fn GetClock(this: *mut core::ffi::c_void, ppclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSession_Impl, - { + unsafe extern "system" fn GetClock(this: *mut core::ffi::c_void, ppclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSession_Impl::GetClock(this) { Ok(ok__) => { @@ -11457,10 +8487,7 @@ impl IMFMediaSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSessionCapabilities(this: *mut core::ffi::c_void, pdwcaps: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaSession_Impl, - { + unsafe extern "system" fn GetSessionCapabilities(this: *mut core::ffi::c_void, pdwcaps: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSession_Impl::GetSessionCapabilities(this) { Ok(ok__) => { @@ -11470,10 +8497,7 @@ impl IMFMediaSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFullTopology(this: *mut core::ffi::c_void, dwgetfulltopologyflags: u32, topoid: u64, ppfulltopology: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSession_Impl, - { + unsafe extern "system" fn GetFullTopology(this: *mut core::ffi::c_void, dwgetfulltopologyflags: u32, topoid: u64, ppfulltopology: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSession_Impl::GetFullTopology(this, core::mem::transmute_copy(&dwgetfulltopologyflags), core::mem::transmute_copy(&topoid)) { Ok(ok__) => { @@ -11506,14 +8530,8 @@ pub trait IMFMediaSharingEngine_Impl: Sized + IMFMediaEngine_Impl { } impl windows_core::RuntimeName for IMFMediaSharingEngine {} impl IMFMediaSharingEngine_Vtbl { - pub const fn new() -> IMFMediaSharingEngine_Vtbl - where - Identity: IMFMediaSharingEngine_Impl, - { - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, pdevice: *mut DEVICE_INFO) -> windows_core::HRESULT - where - Identity: IMFMediaSharingEngine_Impl, - { + pub const fn new() -> IMFMediaSharingEngine_Vtbl { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, pdevice: *mut DEVICE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSharingEngine_Impl::GetDevice(this, core::mem::transmute_copy(&pdevice)).into() } @@ -11523,19 +8541,13 @@ impl IMFMediaSharingEngine_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFMediaSharingEngineClassFactory_Impl: Sized { +pub trait IMFMediaSharingEngineClassFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, dwflags: u32, pattr: Option<&IMFAttributes>) -> windows_core::Result; } impl windows_core::RuntimeName for IMFMediaSharingEngineClassFactory {} impl IMFMediaSharingEngineClassFactory_Vtbl { - pub const fn new() -> IMFMediaSharingEngineClassFactory_Vtbl - where - Identity: IMFMediaSharingEngineClassFactory_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, dwflags: u32, pattr: *mut core::ffi::c_void, ppengine: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSharingEngineClassFactory_Impl, - { + pub const fn new() -> IMFMediaSharingEngineClassFactory_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, dwflags: u32, pattr: *mut core::ffi::c_void, ppengine: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSharingEngineClassFactory_Impl::CreateInstance(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pattr)) { Ok(ok__) => { @@ -11551,7 +8563,7 @@ impl IMFMediaSharingEngineClassFactory_Vtbl { iid == &::IID } } -pub trait IMFMediaSink_Impl: Sized { +pub trait IMFMediaSink_Impl: Sized + windows_core::IUnknownImpl { fn GetCharacteristics(&self) -> windows_core::Result; fn AddStreamSink(&self, dwstreamsinkidentifier: u32, pmediatype: Option<&IMFMediaType>) -> windows_core::Result; fn RemoveStreamSink(&self, dwstreamsinkidentifier: u32) -> windows_core::Result<()>; @@ -11564,14 +8576,8 @@ pub trait IMFMediaSink_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaSink {} impl IMFMediaSink_Vtbl { - pub const fn new() -> IMFMediaSink_Vtbl - where - Identity: IMFMediaSink_Impl, - { - unsafe extern "system" fn GetCharacteristics(this: *mut core::ffi::c_void, pdwcharacteristics: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaSink_Impl, - { + pub const fn new() -> IMFMediaSink_Vtbl { + unsafe extern "system" fn GetCharacteristics(this: *mut core::ffi::c_void, pdwcharacteristics: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSink_Impl::GetCharacteristics(this) { Ok(ok__) => { @@ -11581,10 +8587,7 @@ impl IMFMediaSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStreamSink(this: *mut core::ffi::c_void, dwstreamsinkidentifier: u32, pmediatype: *mut core::ffi::c_void, ppstreamsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSink_Impl, - { + unsafe extern "system" fn AddStreamSink(this: *mut core::ffi::c_void, dwstreamsinkidentifier: u32, pmediatype: *mut core::ffi::c_void, ppstreamsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSink_Impl::AddStreamSink(this, core::mem::transmute_copy(&dwstreamsinkidentifier), windows_core::from_raw_borrowed(&pmediatype)) { Ok(ok__) => { @@ -11594,17 +8597,11 @@ impl IMFMediaSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveStreamSink(this: *mut core::ffi::c_void, dwstreamsinkidentifier: u32) -> windows_core::HRESULT - where - Identity: IMFMediaSink_Impl, - { + unsafe extern "system" fn RemoveStreamSink(this: *mut core::ffi::c_void, dwstreamsinkidentifier: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSink_Impl::RemoveStreamSink(this, core::mem::transmute_copy(&dwstreamsinkidentifier)).into() } - unsafe extern "system" fn GetStreamSinkCount(this: *mut core::ffi::c_void, pcstreamsinkcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaSink_Impl, - { + unsafe extern "system" fn GetStreamSinkCount(this: *mut core::ffi::c_void, pcstreamsinkcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSink_Impl::GetStreamSinkCount(this) { Ok(ok__) => { @@ -11614,10 +8611,7 @@ impl IMFMediaSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamSinkByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppstreamsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSink_Impl, - { + unsafe extern "system" fn GetStreamSinkByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppstreamsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSink_Impl::GetStreamSinkByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -11627,10 +8621,7 @@ impl IMFMediaSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamSinkById(this: *mut core::ffi::c_void, dwstreamsinkidentifier: u32, ppstreamsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSink_Impl, - { + unsafe extern "system" fn GetStreamSinkById(this: *mut core::ffi::c_void, dwstreamsinkidentifier: u32, ppstreamsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSink_Impl::GetStreamSinkById(this, core::mem::transmute_copy(&dwstreamsinkidentifier)) { Ok(ok__) => { @@ -11640,17 +8631,11 @@ impl IMFMediaSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPresentationClock(this: *mut core::ffi::c_void, ppresentationclock: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSink_Impl, - { + unsafe extern "system" fn SetPresentationClock(this: *mut core::ffi::c_void, ppresentationclock: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSink_Impl::SetPresentationClock(this, windows_core::from_raw_borrowed(&ppresentationclock)).into() } - unsafe extern "system" fn GetPresentationClock(this: *mut core::ffi::c_void, pppresentationclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSink_Impl, - { + unsafe extern "system" fn GetPresentationClock(this: *mut core::ffi::c_void, pppresentationclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSink_Impl::GetPresentationClock(this) { Ok(ok__) => { @@ -11660,10 +8645,7 @@ impl IMFMediaSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSink_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSink_Impl::Shutdown(this).into() } @@ -11684,19 +8666,13 @@ impl IMFMediaSink_Vtbl { iid == &::IID } } -pub trait IMFMediaSinkPreroll_Impl: Sized { +pub trait IMFMediaSinkPreroll_Impl: Sized + windows_core::IUnknownImpl { fn NotifyPreroll(&self, hnsupcomingstarttime: i64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaSinkPreroll {} impl IMFMediaSinkPreroll_Vtbl { - pub const fn new() -> IMFMediaSinkPreroll_Vtbl - where - Identity: IMFMediaSinkPreroll_Impl, - { - unsafe extern "system" fn NotifyPreroll(this: *mut core::ffi::c_void, hnsupcomingstarttime: i64) -> windows_core::HRESULT - where - Identity: IMFMediaSinkPreroll_Impl, - { + pub const fn new() -> IMFMediaSinkPreroll_Vtbl { + unsafe extern "system" fn NotifyPreroll(this: *mut core::ffi::c_void, hnsupcomingstarttime: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSinkPreroll_Impl::NotifyPreroll(this, core::mem::transmute_copy(&hnsupcomingstarttime)).into() } @@ -11716,14 +8692,8 @@ pub trait IMFMediaSource_Impl: Sized + IMFMediaEventGenerator_Impl { } impl windows_core::RuntimeName for IMFMediaSource {} impl IMFMediaSource_Vtbl { - pub const fn new() -> IMFMediaSource_Vtbl - where - Identity: IMFMediaSource_Impl, - { - unsafe extern "system" fn GetCharacteristics(this: *mut core::ffi::c_void, pdwcharacteristics: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaSource_Impl, - { + pub const fn new() -> IMFMediaSource_Vtbl { + unsafe extern "system" fn GetCharacteristics(this: *mut core::ffi::c_void, pdwcharacteristics: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSource_Impl::GetCharacteristics(this) { Ok(ok__) => { @@ -11733,10 +8703,7 @@ impl IMFMediaSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePresentationDescriptor(this: *mut core::ffi::c_void, pppresentationdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSource_Impl, - { + unsafe extern "system" fn CreatePresentationDescriptor(this: *mut core::ffi::c_void, pppresentationdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSource_Impl::CreatePresentationDescriptor(this) { Ok(ok__) => { @@ -11746,31 +8713,19 @@ impl IMFMediaSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, ppresentationdescriptor: *mut core::ffi::c_void, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMediaSource_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, ppresentationdescriptor: *mut core::ffi::c_void, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSource_Impl::Start(this, windows_core::from_raw_borrowed(&ppresentationdescriptor), core::mem::transmute_copy(&pguidtimeformat), core::mem::transmute_copy(&pvarstartposition)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSource_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSource_Impl::Stop(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSource_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSource_Impl::Pause(this).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSource_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSource_Impl::Shutdown(this).into() } @@ -11793,14 +8748,8 @@ pub trait IMFMediaSource2_Impl: Sized + IMFMediaSourceEx_Impl { } impl windows_core::RuntimeName for IMFMediaSource2 {} impl IMFMediaSource2_Vtbl { - pub const fn new() -> IMFMediaSource2_Vtbl - where - Identity: IMFMediaSource2_Impl, - { - unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, dwstreamid: u32, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSource2_Impl, - { + pub const fn new() -> IMFMediaSource2_Vtbl { + unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, dwstreamid: u32, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSource2_Impl::SetMediaType(this, core::mem::transmute_copy(&dwstreamid), windows_core::from_raw_borrowed(&pmediatype)).into() } @@ -11817,14 +8766,8 @@ pub trait IMFMediaSourceEx_Impl: Sized + IMFMediaSource_Impl { } impl windows_core::RuntimeName for IMFMediaSourceEx {} impl IMFMediaSourceEx_Vtbl { - pub const fn new() -> IMFMediaSourceEx_Vtbl - where - Identity: IMFMediaSourceEx_Impl, - { - unsafe extern "system" fn GetSourceAttributes(this: *mut core::ffi::c_void, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSourceEx_Impl, - { + pub const fn new() -> IMFMediaSourceEx_Vtbl { + unsafe extern "system" fn GetSourceAttributes(this: *mut core::ffi::c_void, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSourceEx_Impl::GetSourceAttributes(this) { Ok(ok__) => { @@ -11834,10 +8777,7 @@ impl IMFMediaSourceEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamAttributes(this: *mut core::ffi::c_void, dwstreamidentifier: u32, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSourceEx_Impl, - { + unsafe extern "system" fn GetStreamAttributes(this: *mut core::ffi::c_void, dwstreamidentifier: u32, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSourceEx_Impl::GetStreamAttributes(this, core::mem::transmute_copy(&dwstreamidentifier)) { Ok(ok__) => { @@ -11847,10 +8787,7 @@ impl IMFMediaSourceEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetD3DManager(this: *mut core::ffi::c_void, pmanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSourceEx_Impl, - { + unsafe extern "system" fn SetD3DManager(this: *mut core::ffi::c_void, pmanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceEx_Impl::SetD3DManager(this, windows_core::from_raw_borrowed(&pmanager)).into() } @@ -11865,7 +8802,7 @@ impl IMFMediaSourceEx_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMFMediaSourceExtension_Impl: Sized { +pub trait IMFMediaSourceExtension_Impl: Sized + windows_core::IUnknownImpl { fn GetSourceBuffers(&self) -> Option; fn GetActiveSourceBuffers(&self) -> Option; fn GetReadyState(&self) -> MF_MSE_READY; @@ -11879,49 +8816,28 @@ pub trait IMFMediaSourceExtension_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaSourceExtension {} impl IMFMediaSourceExtension_Vtbl { - pub const fn new() -> IMFMediaSourceExtension_Vtbl - where - Identity: IMFMediaSourceExtension_Impl, - { - unsafe extern "system" fn GetSourceBuffers(this: *mut core::ffi::c_void) -> Option - where - Identity: IMFMediaSourceExtension_Impl, - { + pub const fn new() -> IMFMediaSourceExtension_Vtbl { + unsafe extern "system" fn GetSourceBuffers(this: *mut core::ffi::c_void) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtension_Impl::GetSourceBuffers(this) } - unsafe extern "system" fn GetActiveSourceBuffers(this: *mut core::ffi::c_void) -> Option - where - Identity: IMFMediaSourceExtension_Impl, - { + unsafe extern "system" fn GetActiveSourceBuffers(this: *mut core::ffi::c_void) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtension_Impl::GetActiveSourceBuffers(this) } - unsafe extern "system" fn GetReadyState(this: *mut core::ffi::c_void) -> MF_MSE_READY - where - Identity: IMFMediaSourceExtension_Impl, - { + unsafe extern "system" fn GetReadyState(this: *mut core::ffi::c_void) -> MF_MSE_READY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtension_Impl::GetReadyState(this) } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFMediaSourceExtension_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtension_Impl::GetDuration(this) } - unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, duration: f64) -> windows_core::HRESULT - where - Identity: IMFMediaSourceExtension_Impl, - { + unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, duration: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtension_Impl::SetDuration(this, core::mem::transmute_copy(&duration)).into() } - unsafe extern "system" fn AddSourceBuffer(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, pnotify: *mut core::ffi::c_void, ppsourcebuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSourceExtension_Impl, - { + unsafe extern "system" fn AddSourceBuffer(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, pnotify: *mut core::ffi::c_void, ppsourcebuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSourceExtension_Impl::AddSourceBuffer(this, core::mem::transmute(&r#type), windows_core::from_raw_borrowed(&pnotify)) { Ok(ok__) => { @@ -11931,31 +8847,19 @@ impl IMFMediaSourceExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveSourceBuffer(this: *mut core::ffi::c_void, psourcebuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSourceExtension_Impl, - { + unsafe extern "system" fn RemoveSourceBuffer(this: *mut core::ffi::c_void, psourcebuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtension_Impl::RemoveSourceBuffer(this, windows_core::from_raw_borrowed(&psourcebuffer)).into() } - unsafe extern "system" fn SetEndOfStream(this: *mut core::ffi::c_void, error: MF_MSE_ERROR) -> windows_core::HRESULT - where - Identity: IMFMediaSourceExtension_Impl, - { + unsafe extern "system" fn SetEndOfStream(this: *mut core::ffi::c_void, error: MF_MSE_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtension_Impl::SetEndOfStream(this, core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit) -> super::super::Foundation::BOOL - where - Identity: IMFMediaSourceExtension_Impl, - { + unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtension_Impl::IsTypeSupported(this, core::mem::transmute(&r#type)) } - unsafe extern "system" fn GetSourceBuffer(this: *mut core::ffi::c_void, dwstreamindex: u32) -> Option - where - Identity: IMFMediaSourceExtension_Impl, - { + unsafe extern "system" fn GetSourceBuffer(this: *mut core::ffi::c_void, dwstreamindex: u32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtension_Impl::GetSourceBuffer(this, core::mem::transmute_copy(&dwstreamindex)) } @@ -11977,27 +8881,18 @@ impl IMFMediaSourceExtension_Vtbl { iid == &::IID } } -pub trait IMFMediaSourceExtensionLiveSeekableRange_Impl: Sized { +pub trait IMFMediaSourceExtensionLiveSeekableRange_Impl: Sized + windows_core::IUnknownImpl { fn SetLiveSeekableRange(&self, start: f64, end: f64) -> windows_core::Result<()>; fn ClearLiveSeekableRange(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaSourceExtensionLiveSeekableRange {} impl IMFMediaSourceExtensionLiveSeekableRange_Vtbl { - pub const fn new() -> IMFMediaSourceExtensionLiveSeekableRange_Vtbl - where - Identity: IMFMediaSourceExtensionLiveSeekableRange_Impl, - { - unsafe extern "system" fn SetLiveSeekableRange(this: *mut core::ffi::c_void, start: f64, end: f64) -> windows_core::HRESULT - where - Identity: IMFMediaSourceExtensionLiveSeekableRange_Impl, - { + pub const fn new() -> IMFMediaSourceExtensionLiveSeekableRange_Vtbl { + unsafe extern "system" fn SetLiveSeekableRange(this: *mut core::ffi::c_void, start: f64, end: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtensionLiveSeekableRange_Impl::SetLiveSeekableRange(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&end)).into() } - unsafe extern "system" fn ClearLiveSeekableRange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSourceExtensionLiveSeekableRange_Impl, - { + unsafe extern "system" fn ClearLiveSeekableRange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtensionLiveSeekableRange_Impl::ClearLiveSeekableRange(this).into() } @@ -12011,35 +8906,23 @@ impl IMFMediaSourceExtensionLiveSeekableRange_Vtbl { iid == &::IID } } -pub trait IMFMediaSourceExtensionNotify_Impl: Sized { +pub trait IMFMediaSourceExtensionNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnSourceOpen(&self); fn OnSourceEnded(&self); fn OnSourceClose(&self); } impl windows_core::RuntimeName for IMFMediaSourceExtensionNotify {} impl IMFMediaSourceExtensionNotify_Vtbl { - pub const fn new() -> IMFMediaSourceExtensionNotify_Vtbl - where - Identity: IMFMediaSourceExtensionNotify_Impl, - { - unsafe extern "system" fn OnSourceOpen(this: *mut core::ffi::c_void) - where - Identity: IMFMediaSourceExtensionNotify_Impl, - { + pub const fn new() -> IMFMediaSourceExtensionNotify_Vtbl { + unsafe extern "system" fn OnSourceOpen(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtensionNotify_Impl::OnSourceOpen(this) } - unsafe extern "system" fn OnSourceEnded(this: *mut core::ffi::c_void) - where - Identity: IMFMediaSourceExtensionNotify_Impl, - { + unsafe extern "system" fn OnSourceEnded(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtensionNotify_Impl::OnSourceEnded(this) } - unsafe extern "system" fn OnSourceClose(this: *mut core::ffi::c_void) - where - Identity: IMFMediaSourceExtensionNotify_Impl, - { + unsafe extern "system" fn OnSourceClose(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtensionNotify_Impl::OnSourceClose(this) } @@ -12054,19 +8937,13 @@ impl IMFMediaSourceExtensionNotify_Vtbl { iid == &::IID } } -pub trait IMFMediaSourcePresentationProvider_Impl: Sized { +pub trait IMFMediaSourcePresentationProvider_Impl: Sized + windows_core::IUnknownImpl { fn ForceEndOfPresentation(&self, ppresentationdescriptor: Option<&IMFPresentationDescriptor>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaSourcePresentationProvider {} impl IMFMediaSourcePresentationProvider_Vtbl { - pub const fn new() -> IMFMediaSourcePresentationProvider_Vtbl - where - Identity: IMFMediaSourcePresentationProvider_Impl, - { - unsafe extern "system" fn ForceEndOfPresentation(this: *mut core::ffi::c_void, ppresentationdescriptor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSourcePresentationProvider_Impl, - { + pub const fn new() -> IMFMediaSourcePresentationProvider_Vtbl { + unsafe extern "system" fn ForceEndOfPresentation(this: *mut core::ffi::c_void, ppresentationdescriptor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourcePresentationProvider_Impl::ForceEndOfPresentation(this, windows_core::from_raw_borrowed(&ppresentationdescriptor)).into() } @@ -12076,19 +8953,13 @@ impl IMFMediaSourcePresentationProvider_Vtbl { iid == &::IID } } -pub trait IMFMediaSourceTopologyProvider_Impl: Sized { +pub trait IMFMediaSourceTopologyProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetMediaSourceTopology(&self, ppresentationdescriptor: Option<&IMFPresentationDescriptor>) -> windows_core::Result; } impl windows_core::RuntimeName for IMFMediaSourceTopologyProvider {} impl IMFMediaSourceTopologyProvider_Vtbl { - pub const fn new() -> IMFMediaSourceTopologyProvider_Vtbl - where - Identity: IMFMediaSourceTopologyProvider_Impl, - { - unsafe extern "system" fn GetMediaSourceTopology(this: *mut core::ffi::c_void, ppresentationdescriptor: *mut core::ffi::c_void, pptopology: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaSourceTopologyProvider_Impl, - { + pub const fn new() -> IMFMediaSourceTopologyProvider_Vtbl { + unsafe extern "system" fn GetMediaSourceTopology(this: *mut core::ffi::c_void, ppresentationdescriptor: *mut core::ffi::c_void, pptopology: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaSourceTopologyProvider_Impl::GetMediaSourceTopology(this, windows_core::from_raw_borrowed(&ppresentationdescriptor)) { Ok(ok__) => { @@ -12111,14 +8982,8 @@ pub trait IMFMediaStream_Impl: Sized + IMFMediaEventGenerator_Impl { } impl windows_core::RuntimeName for IMFMediaStream {} impl IMFMediaStream_Vtbl { - pub const fn new() -> IMFMediaStream_Vtbl - where - Identity: IMFMediaStream_Impl, - { - unsafe extern "system" fn GetMediaSource(this: *mut core::ffi::c_void, ppmediasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaStream_Impl, - { + pub const fn new() -> IMFMediaStream_Vtbl { + unsafe extern "system" fn GetMediaSource(this: *mut core::ffi::c_void, ppmediasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaStream_Impl::GetMediaSource(this) { Ok(ok__) => { @@ -12128,10 +8993,7 @@ impl IMFMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamDescriptor(this: *mut core::ffi::c_void, ppstreamdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaStream_Impl, - { + unsafe extern "system" fn GetStreamDescriptor(this: *mut core::ffi::c_void, ppstreamdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaStream_Impl::GetStreamDescriptor(this) { Ok(ok__) => { @@ -12141,10 +9003,7 @@ impl IMFMediaStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestSample(this: *mut core::ffi::c_void, ptoken: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaStream_Impl, - { + unsafe extern "system" fn RequestSample(this: *mut core::ffi::c_void, ptoken: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaStream_Impl::RequestSample(this, windows_core::from_raw_borrowed(&ptoken)).into() } @@ -12165,21 +9024,12 @@ pub trait IMFMediaStream2_Impl: Sized + IMFMediaStream_Impl { } impl windows_core::RuntimeName for IMFMediaStream2 {} impl IMFMediaStream2_Vtbl { - pub const fn new() -> IMFMediaStream2_Vtbl - where - Identity: IMFMediaStream2_Impl, - { - unsafe extern "system" fn SetStreamState(this: *mut core::ffi::c_void, value: MF_STREAM_STATE) -> windows_core::HRESULT - where - Identity: IMFMediaStream2_Impl, - { + pub const fn new() -> IMFMediaStream2_Vtbl { + unsafe extern "system" fn SetStreamState(this: *mut core::ffi::c_void, value: MF_STREAM_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaStream2_Impl::SetStreamState(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetStreamState(this: *mut core::ffi::c_void, value: *mut MF_STREAM_STATE) -> windows_core::HRESULT - where - Identity: IMFMediaStream2_Impl, - { + unsafe extern "system" fn GetStreamState(this: *mut core::ffi::c_void, value: *mut MF_STREAM_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaStream2_Impl::GetStreamState(this) { Ok(ok__) => { @@ -12199,19 +9049,13 @@ impl IMFMediaStream2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMFMediaStreamSourceSampleRequest_Impl: Sized { +pub trait IMFMediaStreamSourceSampleRequest_Impl: Sized + windows_core::IUnknownImpl { fn SetSample(&self, value: Option<&IMFSample>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFMediaStreamSourceSampleRequest {} impl IMFMediaStreamSourceSampleRequest_Vtbl { - pub const fn new() -> IMFMediaStreamSourceSampleRequest_Vtbl - where - Identity: IMFMediaStreamSourceSampleRequest_Impl, - { - unsafe extern "system" fn SetSample(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaStreamSourceSampleRequest_Impl, - { + pub const fn new() -> IMFMediaStreamSourceSampleRequest_Vtbl { + unsafe extern "system" fn SetSample(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaStreamSourceSampleRequest_Impl::SetSample(this, windows_core::from_raw_borrowed(&value)).into() } @@ -12221,7 +9065,7 @@ impl IMFMediaStreamSourceSampleRequest_Vtbl { iid == &::IID } } -pub trait IMFMediaTimeRange_Impl: Sized { +pub trait IMFMediaTimeRange_Impl: Sized + windows_core::IUnknownImpl { fn GetLength(&self) -> u32; fn GetStart(&self, index: u32) -> windows_core::Result; fn GetEnd(&self, index: u32) -> windows_core::Result; @@ -12231,21 +9075,12 @@ pub trait IMFMediaTimeRange_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaTimeRange {} impl IMFMediaTimeRange_Vtbl { - pub const fn new() -> IMFMediaTimeRange_Vtbl - where - Identity: IMFMediaTimeRange_Impl, - { - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFMediaTimeRange_Impl, - { + pub const fn new() -> IMFMediaTimeRange_Vtbl { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaTimeRange_Impl::GetLength(this) } - unsafe extern "system" fn GetStart(this: *mut core::ffi::c_void, index: u32, pstart: *mut f64) -> windows_core::HRESULT - where - Identity: IMFMediaTimeRange_Impl, - { + unsafe extern "system" fn GetStart(this: *mut core::ffi::c_void, index: u32, pstart: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaTimeRange_Impl::GetStart(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -12255,10 +9090,7 @@ impl IMFMediaTimeRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnd(this: *mut core::ffi::c_void, index: u32, pend: *mut f64) -> windows_core::HRESULT - where - Identity: IMFMediaTimeRange_Impl, - { + unsafe extern "system" fn GetEnd(this: *mut core::ffi::c_void, index: u32, pend: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaTimeRange_Impl::GetEnd(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -12268,24 +9100,15 @@ impl IMFMediaTimeRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContainsTime(this: *mut core::ffi::c_void, time: f64) -> super::super::Foundation::BOOL - where - Identity: IMFMediaTimeRange_Impl, - { + unsafe extern "system" fn ContainsTime(this: *mut core::ffi::c_void, time: f64) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaTimeRange_Impl::ContainsTime(this, core::mem::transmute_copy(&time)) } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, starttime: f64, endtime: f64) -> windows_core::HRESULT - where - Identity: IMFMediaTimeRange_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, starttime: f64, endtime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaTimeRange_Impl::AddRange(this, core::mem::transmute_copy(&starttime), core::mem::transmute_copy(&endtime)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaTimeRange_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaTimeRange_Impl::Clear(this).into() } @@ -12312,14 +9135,8 @@ pub trait IMFMediaType_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFMediaType {} impl IMFMediaType_Vtbl { - pub const fn new() -> IMFMediaType_Vtbl - where - Identity: IMFMediaType_Impl, - { - unsafe extern "system" fn GetMajorType(this: *mut core::ffi::c_void, pguidmajortype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFMediaType_Impl, - { + pub const fn new() -> IMFMediaType_Vtbl { + unsafe extern "system" fn GetMajorType(this: *mut core::ffi::c_void, pguidmajortype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaType_Impl::GetMajorType(this) { Ok(ok__) => { @@ -12329,10 +9146,7 @@ impl IMFMediaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCompressedFormat(this: *mut core::ffi::c_void, pfcompressed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFMediaType_Impl, - { + unsafe extern "system" fn IsCompressedFormat(this: *mut core::ffi::c_void, pfcompressed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaType_Impl::IsCompressedFormat(this) { Ok(ok__) => { @@ -12342,10 +9156,7 @@ impl IMFMediaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pimediatype: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaType_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pimediatype: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaType_Impl::IsEqual(this, windows_core::from_raw_borrowed(&pimediatype)) { Ok(ok__) => { @@ -12355,17 +9166,11 @@ impl IMFMediaType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRepresentation(this: *mut core::ffi::c_void, guidrepresentation: windows_core::GUID, ppvrepresentation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaType_Impl, - { + unsafe extern "system" fn GetRepresentation(this: *mut core::ffi::c_void, guidrepresentation: windows_core::GUID, ppvrepresentation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaType_Impl::GetRepresentation(this, core::mem::transmute(&guidrepresentation), core::mem::transmute_copy(&ppvrepresentation)).into() } - unsafe extern "system" fn FreeRepresentation(this: *mut core::ffi::c_void, guidrepresentation: windows_core::GUID, pvrepresentation: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaType_Impl, - { + unsafe extern "system" fn FreeRepresentation(this: *mut core::ffi::c_void, guidrepresentation: windows_core::GUID, pvrepresentation: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaType_Impl::FreeRepresentation(this, core::mem::transmute(&guidrepresentation), core::mem::transmute_copy(&pvrepresentation)).into() } @@ -12382,7 +9187,7 @@ impl IMFMediaType_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFMediaTypeHandler_Impl: Sized { +pub trait IMFMediaTypeHandler_Impl: Sized + windows_core::IUnknownImpl { fn IsMediaTypeSupported(&self, pmediatype: Option<&IMFMediaType>, ppmediatype: *mut Option) -> windows_core::Result<()>; fn GetMediaTypeCount(&self) -> windows_core::Result; fn GetMediaTypeByIndex(&self, dwindex: u32) -> windows_core::Result; @@ -12392,21 +9197,12 @@ pub trait IMFMediaTypeHandler_Impl: Sized { } impl windows_core::RuntimeName for IMFMediaTypeHandler {} impl IMFMediaTypeHandler_Vtbl { - pub const fn new() -> IMFMediaTypeHandler_Vtbl - where - Identity: IMFMediaTypeHandler_Impl, - { - unsafe extern "system" fn IsMediaTypeSupported(this: *mut core::ffi::c_void, pmediatype: *mut core::ffi::c_void, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaTypeHandler_Impl, - { + pub const fn new() -> IMFMediaTypeHandler_Vtbl { + unsafe extern "system" fn IsMediaTypeSupported(this: *mut core::ffi::c_void, pmediatype: *mut core::ffi::c_void, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaTypeHandler_Impl::IsMediaTypeSupported(this, windows_core::from_raw_borrowed(&pmediatype), core::mem::transmute_copy(&ppmediatype)).into() } - unsafe extern "system" fn GetMediaTypeCount(this: *mut core::ffi::c_void, pdwtypecount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMediaTypeHandler_Impl, - { + unsafe extern "system" fn GetMediaTypeCount(this: *mut core::ffi::c_void, pdwtypecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaTypeHandler_Impl::GetMediaTypeCount(this) { Ok(ok__) => { @@ -12416,10 +9212,7 @@ impl IMFMediaTypeHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMediaTypeByIndex(this: *mut core::ffi::c_void, dwindex: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaTypeHandler_Impl, - { + unsafe extern "system" fn GetMediaTypeByIndex(this: *mut core::ffi::c_void, dwindex: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaTypeHandler_Impl::GetMediaTypeByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -12429,17 +9222,11 @@ impl IMFMediaTypeHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentMediaType(this: *mut core::ffi::c_void, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaTypeHandler_Impl, - { + unsafe extern "system" fn SetCurrentMediaType(this: *mut core::ffi::c_void, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaTypeHandler_Impl::SetCurrentMediaType(this, windows_core::from_raw_borrowed(&pmediatype)).into() } - unsafe extern "system" fn GetCurrentMediaType(this: *mut core::ffi::c_void, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMediaTypeHandler_Impl, - { + unsafe extern "system" fn GetCurrentMediaType(this: *mut core::ffi::c_void, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaTypeHandler_Impl::GetCurrentMediaType(this) { Ok(ok__) => { @@ -12449,10 +9236,7 @@ impl IMFMediaTypeHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMajorType(this: *mut core::ffi::c_void, pguidmajortype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFMediaTypeHandler_Impl, - { + unsafe extern "system" fn GetMajorType(this: *mut core::ffi::c_void, pguidmajortype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaTypeHandler_Impl::GetMajorType(this) { Ok(ok__) => { @@ -12476,7 +9260,7 @@ impl IMFMediaTypeHandler_Vtbl { iid == &::IID } } -pub trait IMFMetadata_Impl: Sized { +pub trait IMFMetadata_Impl: Sized + windows_core::IUnknownImpl { fn SetLanguage(&self, pwszrfc1766: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetLanguage(&self) -> windows_core::Result; fn GetAllLanguages(&self) -> windows_core::Result; @@ -12487,21 +9271,12 @@ pub trait IMFMetadata_Impl: Sized { } impl windows_core::RuntimeName for IMFMetadata {} impl IMFMetadata_Vtbl { - pub const fn new() -> IMFMetadata_Vtbl - where - Identity: IMFMetadata_Impl, - { - unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, pwszrfc1766: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFMetadata_Impl, - { + pub const fn new() -> IMFMetadata_Vtbl { + unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, pwszrfc1766: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMetadata_Impl::SetLanguage(this, core::mem::transmute(&pwszrfc1766)).into() } - unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, ppwszrfc1766: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFMetadata_Impl, - { + unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, ppwszrfc1766: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMetadata_Impl::GetLanguage(this) { Ok(ok__) => { @@ -12511,10 +9286,7 @@ impl IMFMetadata_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllLanguages(this: *mut core::ffi::c_void, ppvlanguages: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMetadata_Impl, - { + unsafe extern "system" fn GetAllLanguages(this: *mut core::ffi::c_void, ppvlanguages: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMetadata_Impl::GetAllLanguages(this) { Ok(ok__) => { @@ -12524,17 +9296,11 @@ impl IMFMetadata_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, ppvvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMetadata_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, ppvvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMetadata_Impl::SetProperty(this, core::mem::transmute(&pwszname), core::mem::transmute_copy(&ppvvalue)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, ppvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMetadata_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, ppvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMetadata_Impl::GetProperty(this, core::mem::transmute(&pwszname)) { Ok(ok__) => { @@ -12544,17 +9310,11 @@ impl IMFMetadata_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteProperty(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFMetadata_Impl, - { + unsafe extern "system" fn DeleteProperty(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMetadata_Impl::DeleteProperty(this, core::mem::transmute(&pwszname)).into() } - unsafe extern "system" fn GetAllPropertyNames(this: *mut core::ffi::c_void, ppvnames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFMetadata_Impl, - { + unsafe extern "system" fn GetAllPropertyNames(this: *mut core::ffi::c_void, ppvnames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMetadata_Impl::GetAllPropertyNames(this) { Ok(ok__) => { @@ -12579,19 +9339,13 @@ impl IMFMetadata_Vtbl { iid == &::IID } } -pub trait IMFMetadataProvider_Impl: Sized { +pub trait IMFMetadataProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetMFMetadata(&self, ppresentationdescriptor: Option<&IMFPresentationDescriptor>, dwstreamidentifier: u32, dwflags: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IMFMetadataProvider {} impl IMFMetadataProvider_Vtbl { - pub const fn new() -> IMFMetadataProvider_Vtbl - where - Identity: IMFMetadataProvider_Impl, - { - unsafe extern "system" fn GetMFMetadata(this: *mut core::ffi::c_void, ppresentationdescriptor: *mut core::ffi::c_void, dwstreamidentifier: u32, dwflags: u32, ppmfmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMetadataProvider_Impl, - { + pub const fn new() -> IMFMetadataProvider_Vtbl { + unsafe extern "system" fn GetMFMetadata(this: *mut core::ffi::c_void, ppresentationdescriptor: *mut core::ffi::c_void, dwstreamidentifier: u32, dwflags: u32, ppmfmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMetadataProvider_Impl::GetMFMetadata(this, windows_core::from_raw_borrowed(&ppresentationdescriptor), core::mem::transmute_copy(&dwstreamidentifier), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -12607,20 +9361,14 @@ impl IMFMetadataProvider_Vtbl { iid == &::IID } } -pub trait IMFMuxStreamAttributesManager_Impl: Sized { +pub trait IMFMuxStreamAttributesManager_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamCount(&self) -> windows_core::Result; fn GetAttributes(&self, dwmuxstreamindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IMFMuxStreamAttributesManager {} impl IMFMuxStreamAttributesManager_Vtbl { - pub const fn new() -> IMFMuxStreamAttributesManager_Vtbl - where - Identity: IMFMuxStreamAttributesManager_Impl, - { - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pdwmuxstreamcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMuxStreamAttributesManager_Impl, - { + pub const fn new() -> IMFMuxStreamAttributesManager_Vtbl { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pdwmuxstreamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMuxStreamAttributesManager_Impl::GetStreamCount(this) { Ok(ok__) => { @@ -12630,10 +9378,7 @@ impl IMFMuxStreamAttributesManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, dwmuxstreamindex: u32, ppstreamattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMuxStreamAttributesManager_Impl, - { + unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, dwmuxstreamindex: u32, ppstreamattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMuxStreamAttributesManager_Impl::GetAttributes(this, core::mem::transmute_copy(&dwmuxstreamindex)) { Ok(ok__) => { @@ -12653,7 +9398,7 @@ impl IMFMuxStreamAttributesManager_Vtbl { iid == &::IID } } -pub trait IMFMuxStreamMediaTypeManager_Impl: Sized { +pub trait IMFMuxStreamMediaTypeManager_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamCount(&self) -> windows_core::Result; fn GetMediaType(&self, dwmuxstreamindex: u32) -> windows_core::Result; fn GetStreamConfigurationCount(&self) -> windows_core::Result; @@ -12663,14 +9408,8 @@ pub trait IMFMuxStreamMediaTypeManager_Impl: Sized { } impl windows_core::RuntimeName for IMFMuxStreamMediaTypeManager {} impl IMFMuxStreamMediaTypeManager_Vtbl { - pub const fn new() -> IMFMuxStreamMediaTypeManager_Vtbl - where - Identity: IMFMuxStreamMediaTypeManager_Impl, - { - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pdwmuxstreamcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMuxStreamMediaTypeManager_Impl, - { + pub const fn new() -> IMFMuxStreamMediaTypeManager_Vtbl { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pdwmuxstreamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMuxStreamMediaTypeManager_Impl::GetStreamCount(this) { Ok(ok__) => { @@ -12680,10 +9419,7 @@ impl IMFMuxStreamMediaTypeManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, dwmuxstreamindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMuxStreamMediaTypeManager_Impl, - { + unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, dwmuxstreamindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMuxStreamMediaTypeManager_Impl::GetMediaType(this, core::mem::transmute_copy(&dwmuxstreamindex)) { Ok(ok__) => { @@ -12693,10 +9429,7 @@ impl IMFMuxStreamMediaTypeManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamConfigurationCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMuxStreamMediaTypeManager_Impl, - { + unsafe extern "system" fn GetStreamConfigurationCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMuxStreamMediaTypeManager_Impl::GetStreamConfigurationCount(this) { Ok(ok__) => { @@ -12706,24 +9439,15 @@ impl IMFMuxStreamMediaTypeManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStreamConfiguration(this: *mut core::ffi::c_void, ullstreammask: u64) -> windows_core::HRESULT - where - Identity: IMFMuxStreamMediaTypeManager_Impl, - { + unsafe extern "system" fn AddStreamConfiguration(this: *mut core::ffi::c_void, ullstreammask: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMuxStreamMediaTypeManager_Impl::AddStreamConfiguration(this, core::mem::transmute_copy(&ullstreammask)).into() } - unsafe extern "system" fn RemoveStreamConfiguration(this: *mut core::ffi::c_void, ullstreammask: u64) -> windows_core::HRESULT - where - Identity: IMFMuxStreamMediaTypeManager_Impl, - { + unsafe extern "system" fn RemoveStreamConfiguration(this: *mut core::ffi::c_void, ullstreammask: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMuxStreamMediaTypeManager_Impl::RemoveStreamConfiguration(this, core::mem::transmute_copy(&ullstreammask)).into() } - unsafe extern "system" fn GetStreamConfiguration(this: *mut core::ffi::c_void, ulindex: u32, pullstreammask: *mut u64) -> windows_core::HRESULT - where - Identity: IMFMuxStreamMediaTypeManager_Impl, - { + unsafe extern "system" fn GetStreamConfiguration(this: *mut core::ffi::c_void, ulindex: u32, pullstreammask: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMuxStreamMediaTypeManager_Impl::GetStreamConfiguration(this, core::mem::transmute_copy(&ulindex)) { Ok(ok__) => { @@ -12747,21 +9471,15 @@ impl IMFMuxStreamMediaTypeManager_Vtbl { iid == &::IID } } -pub trait IMFMuxStreamSampleManager_Impl: Sized { +pub trait IMFMuxStreamSampleManager_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamCount(&self) -> windows_core::Result; fn GetSample(&self, dwmuxstreamindex: u32) -> windows_core::Result; fn GetStreamConfiguration(&self) -> u64; } impl windows_core::RuntimeName for IMFMuxStreamSampleManager {} impl IMFMuxStreamSampleManager_Vtbl { - pub const fn new() -> IMFMuxStreamSampleManager_Vtbl - where - Identity: IMFMuxStreamSampleManager_Impl, - { - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pdwmuxstreamcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFMuxStreamSampleManager_Impl, - { + pub const fn new() -> IMFMuxStreamSampleManager_Vtbl { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pdwmuxstreamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMuxStreamSampleManager_Impl::GetStreamCount(this) { Ok(ok__) => { @@ -12771,10 +9489,7 @@ impl IMFMuxStreamSampleManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSample(this: *mut core::ffi::c_void, dwmuxstreamindex: u32, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFMuxStreamSampleManager_Impl, - { + unsafe extern "system" fn GetSample(this: *mut core::ffi::c_void, dwmuxstreamindex: u32, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMuxStreamSampleManager_Impl::GetSample(this, core::mem::transmute_copy(&dwmuxstreamindex)) { Ok(ok__) => { @@ -12784,10 +9499,7 @@ impl IMFMuxStreamSampleManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamConfiguration(this: *mut core::ffi::c_void) -> u64 - where - Identity: IMFMuxStreamSampleManager_Impl, - { + unsafe extern "system" fn GetStreamConfiguration(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMuxStreamSampleManager_Impl::GetStreamConfiguration(this) } @@ -12802,7 +9514,7 @@ impl IMFMuxStreamSampleManager_Vtbl { iid == &::IID } } -pub trait IMFNetCredential_Impl: Sized { +pub trait IMFNetCredential_Impl: Sized + windows_core::IUnknownImpl { fn SetUser(&self, pbdata: *const u8, cbdata: u32, fdataisencrypted: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn SetPassword(&self, pbdata: *const u8, cbdata: u32, fdataisencrypted: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetUser(&self, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -12811,42 +9523,24 @@ pub trait IMFNetCredential_Impl: Sized { } impl windows_core::RuntimeName for IMFNetCredential {} impl IMFNetCredential_Vtbl { - pub const fn new() -> IMFNetCredential_Vtbl - where - Identity: IMFNetCredential_Impl, - { - unsafe extern "system" fn SetUser(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32, fdataisencrypted: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFNetCredential_Impl, - { + pub const fn new() -> IMFNetCredential_Vtbl { + unsafe extern "system" fn SetUser(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32, fdataisencrypted: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredential_Impl::SetUser(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&fdataisencrypted)).into() } - unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32, fdataisencrypted: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFNetCredential_Impl, - { + unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32, fdataisencrypted: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredential_Impl::SetPassword(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&fdataisencrypted)).into() } - unsafe extern "system" fn GetUser(this: *mut core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFNetCredential_Impl, - { + unsafe extern "system" fn GetUser(this: *mut core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredential_Impl::GetUser(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&fencryptdata)).into() } - unsafe extern "system" fn GetPassword(this: *mut core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFNetCredential_Impl, - { + unsafe extern "system" fn GetPassword(this: *mut core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredential_Impl::GetPassword(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&fencryptdata)).into() } - unsafe extern "system" fn LoggedOnUser(this: *mut core::ffi::c_void, pfloggedonuser: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFNetCredential_Impl, - { + unsafe extern "system" fn LoggedOnUser(this: *mut core::ffi::c_void, pfloggedonuser: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetCredential_Impl::LoggedOnUser(this) { Ok(ok__) => { @@ -12869,35 +9563,23 @@ impl IMFNetCredential_Vtbl { iid == &::IID } } -pub trait IMFNetCredentialCache_Impl: Sized { +pub trait IMFNetCredentialCache_Impl: Sized + windows_core::IUnknownImpl { fn GetCredential(&self, pszurl: &windows_core::PCWSTR, pszrealm: &windows_core::PCWSTR, dwauthenticationflags: u32, ppcred: *mut Option, pdwrequirementsflags: *mut u32) -> windows_core::Result<()>; fn SetGood(&self, pcred: Option<&IMFNetCredential>, fgood: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn SetUserOptions(&self, pcred: Option<&IMFNetCredential>, dwoptionsflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFNetCredentialCache {} impl IMFNetCredentialCache_Vtbl { - pub const fn new() -> IMFNetCredentialCache_Vtbl - where - Identity: IMFNetCredentialCache_Impl, - { - unsafe extern "system" fn GetCredential(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pszrealm: windows_core::PCWSTR, dwauthenticationflags: u32, ppcred: *mut *mut core::ffi::c_void, pdwrequirementsflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFNetCredentialCache_Impl, - { + pub const fn new() -> IMFNetCredentialCache_Vtbl { + unsafe extern "system" fn GetCredential(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pszrealm: windows_core::PCWSTR, dwauthenticationflags: u32, ppcred: *mut *mut core::ffi::c_void, pdwrequirementsflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredentialCache_Impl::GetCredential(this, core::mem::transmute(&pszurl), core::mem::transmute(&pszrealm), core::mem::transmute_copy(&dwauthenticationflags), core::mem::transmute_copy(&ppcred), core::mem::transmute_copy(&pdwrequirementsflags)).into() } - unsafe extern "system" fn SetGood(this: *mut core::ffi::c_void, pcred: *mut core::ffi::c_void, fgood: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFNetCredentialCache_Impl, - { + unsafe extern "system" fn SetGood(this: *mut core::ffi::c_void, pcred: *mut core::ffi::c_void, fgood: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredentialCache_Impl::SetGood(this, windows_core::from_raw_borrowed(&pcred), core::mem::transmute_copy(&fgood)).into() } - unsafe extern "system" fn SetUserOptions(this: *mut core::ffi::c_void, pcred: *mut core::ffi::c_void, dwoptionsflags: u32) -> windows_core::HRESULT - where - Identity: IMFNetCredentialCache_Impl, - { + unsafe extern "system" fn SetUserOptions(this: *mut core::ffi::c_void, pcred: *mut core::ffi::c_void, dwoptionsflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredentialCache_Impl::SetUserOptions(this, windows_core::from_raw_borrowed(&pcred), core::mem::transmute_copy(&dwoptionsflags)).into() } @@ -12912,28 +9594,19 @@ impl IMFNetCredentialCache_Vtbl { iid == &::IID } } -pub trait IMFNetCredentialManager_Impl: Sized { +pub trait IMFNetCredentialManager_Impl: Sized + windows_core::IUnknownImpl { fn BeginGetCredentials(&self, pparam: *const MFNetCredentialManagerGetParam, pcallback: Option<&IMFAsyncCallback>, pstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndGetCredentials(&self, presult: Option<&IMFAsyncResult>) -> windows_core::Result; fn SetGood(&self, pcred: Option<&IMFNetCredential>, fgood: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFNetCredentialManager {} impl IMFNetCredentialManager_Vtbl { - pub const fn new() -> IMFNetCredentialManager_Vtbl - where - Identity: IMFNetCredentialManager_Impl, - { - unsafe extern "system" fn BeginGetCredentials(this: *mut core::ffi::c_void, pparam: *const MFNetCredentialManagerGetParam, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFNetCredentialManager_Impl, - { + pub const fn new() -> IMFNetCredentialManager_Vtbl { + unsafe extern "system" fn BeginGetCredentials(this: *mut core::ffi::c_void, pparam: *const MFNetCredentialManagerGetParam, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredentialManager_Impl::BeginGetCredentials(this, core::mem::transmute_copy(&pparam), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pstate)).into() } - unsafe extern "system" fn EndGetCredentials(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppcred: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFNetCredentialManager_Impl, - { + unsafe extern "system" fn EndGetCredentials(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppcred: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetCredentialManager_Impl::EndGetCredentials(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -12943,10 +9616,7 @@ impl IMFNetCredentialManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGood(this: *mut core::ffi::c_void, pcred: *mut core::ffi::c_void, fgood: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFNetCredentialManager_Impl, - { + unsafe extern "system" fn SetGood(this: *mut core::ffi::c_void, pcred: *mut core::ffi::c_void, fgood: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredentialManager_Impl::SetGood(this, windows_core::from_raw_borrowed(&pcred), core::mem::transmute_copy(&fgood)).into() } @@ -12961,21 +9631,15 @@ impl IMFNetCredentialManager_Vtbl { iid == &::IID } } -pub trait IMFNetCrossOriginSupport_Impl: Sized { +pub trait IMFNetCrossOriginSupport_Impl: Sized + windows_core::IUnknownImpl { fn GetCrossOriginPolicy(&self) -> windows_core::Result; fn GetSourceOrigin(&self) -> windows_core::Result; fn IsSameOrigin(&self, wszurl: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IMFNetCrossOriginSupport {} impl IMFNetCrossOriginSupport_Vtbl { - pub const fn new() -> IMFNetCrossOriginSupport_Vtbl - where - Identity: IMFNetCrossOriginSupport_Impl, - { - unsafe extern "system" fn GetCrossOriginPolicy(this: *mut core::ffi::c_void, ppolicy: *mut MF_CROSS_ORIGIN_POLICY) -> windows_core::HRESULT - where - Identity: IMFNetCrossOriginSupport_Impl, - { + pub const fn new() -> IMFNetCrossOriginSupport_Vtbl { + unsafe extern "system" fn GetCrossOriginPolicy(this: *mut core::ffi::c_void, ppolicy: *mut MF_CROSS_ORIGIN_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetCrossOriginSupport_Impl::GetCrossOriginPolicy(this) { Ok(ok__) => { @@ -12985,10 +9649,7 @@ impl IMFNetCrossOriginSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceOrigin(this: *mut core::ffi::c_void, wszsourceorigin: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFNetCrossOriginSupport_Impl, - { + unsafe extern "system" fn GetSourceOrigin(this: *mut core::ffi::c_void, wszsourceorigin: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetCrossOriginSupport_Impl::GetSourceOrigin(this) { Ok(ok__) => { @@ -12998,10 +9659,7 @@ impl IMFNetCrossOriginSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSameOrigin(this: *mut core::ffi::c_void, wszurl: windows_core::PCWSTR, pfissameorigin: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFNetCrossOriginSupport_Impl, - { + unsafe extern "system" fn IsSameOrigin(this: *mut core::ffi::c_void, wszurl: windows_core::PCWSTR, pfissameorigin: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetCrossOriginSupport_Impl::IsSameOrigin(this, core::mem::transmute(&wszurl)) { Ok(ok__) => { @@ -13022,7 +9680,7 @@ impl IMFNetCrossOriginSupport_Vtbl { iid == &::IID } } -pub trait IMFNetProxyLocator_Impl: Sized { +pub trait IMFNetProxyLocator_Impl: Sized + windows_core::IUnknownImpl { fn FindFirstProxy(&self, pszhost: &windows_core::PCWSTR, pszurl: &windows_core::PCWSTR, freserved: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn FindNextProxy(&self) -> windows_core::Result<()>; fn RegisterProxyResult(&self, hrop: windows_core::HRESULT) -> windows_core::Result<()>; @@ -13031,42 +9689,24 @@ pub trait IMFNetProxyLocator_Impl: Sized { } impl windows_core::RuntimeName for IMFNetProxyLocator {} impl IMFNetProxyLocator_Vtbl { - pub const fn new() -> IMFNetProxyLocator_Vtbl - where - Identity: IMFNetProxyLocator_Impl, - { - unsafe extern "system" fn FindFirstProxy(this: *mut core::ffi::c_void, pszhost: windows_core::PCWSTR, pszurl: windows_core::PCWSTR, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFNetProxyLocator_Impl, - { + pub const fn new() -> IMFNetProxyLocator_Vtbl { + unsafe extern "system" fn FindFirstProxy(this: *mut core::ffi::c_void, pszhost: windows_core::PCWSTR, pszurl: windows_core::PCWSTR, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetProxyLocator_Impl::FindFirstProxy(this, core::mem::transmute(&pszhost), core::mem::transmute(&pszurl), core::mem::transmute_copy(&freserved)).into() } - unsafe extern "system" fn FindNextProxy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFNetProxyLocator_Impl, - { + unsafe extern "system" fn FindNextProxy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetProxyLocator_Impl::FindNextProxy(this).into() } - unsafe extern "system" fn RegisterProxyResult(this: *mut core::ffi::c_void, hrop: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMFNetProxyLocator_Impl, - { + unsafe extern "system" fn RegisterProxyResult(this: *mut core::ffi::c_void, hrop: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetProxyLocator_Impl::RegisterProxyResult(this, core::mem::transmute_copy(&hrop)).into() } - unsafe extern "system" fn GetCurrentProxy(this: *mut core::ffi::c_void, pszstr: windows_core::PWSTR, pcchstr: *mut u32) -> windows_core::HRESULT - where - Identity: IMFNetProxyLocator_Impl, - { + unsafe extern "system" fn GetCurrentProxy(this: *mut core::ffi::c_void, pszstr: windows_core::PWSTR, pcchstr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetProxyLocator_Impl::GetCurrentProxy(this, core::mem::transmute_copy(&pszstr), core::mem::transmute_copy(&pcchstr)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppproxylocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFNetProxyLocator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppproxylocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetProxyLocator_Impl::Clone(this) { Ok(ok__) => { @@ -13089,19 +9729,13 @@ impl IMFNetProxyLocator_Vtbl { iid == &::IID } } -pub trait IMFNetProxyLocatorFactory_Impl: Sized { +pub trait IMFNetProxyLocatorFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateProxyLocator(&self, pszprotocol: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IMFNetProxyLocatorFactory {} impl IMFNetProxyLocatorFactory_Vtbl { - pub const fn new() -> IMFNetProxyLocatorFactory_Vtbl - where - Identity: IMFNetProxyLocatorFactory_Impl, - { - unsafe extern "system" fn CreateProxyLocator(this: *mut core::ffi::c_void, pszprotocol: windows_core::PCWSTR, ppproxylocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFNetProxyLocatorFactory_Impl, - { + pub const fn new() -> IMFNetProxyLocatorFactory_Vtbl { + unsafe extern "system" fn CreateProxyLocator(this: *mut core::ffi::c_void, pszprotocol: windows_core::PCWSTR, ppproxylocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetProxyLocatorFactory_Impl::CreateProxyLocator(this, core::mem::transmute(&pszprotocol)) { Ok(ok__) => { @@ -13117,20 +9751,14 @@ impl IMFNetProxyLocatorFactory_Vtbl { iid == &::IID } } -pub trait IMFNetResourceFilter_Impl: Sized { +pub trait IMFNetResourceFilter_Impl: Sized + windows_core::IUnknownImpl { fn OnRedirect(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; fn OnSendingRequest(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFNetResourceFilter {} impl IMFNetResourceFilter_Vtbl { - pub const fn new() -> IMFNetResourceFilter_Vtbl - where - Identity: IMFNetResourceFilter_Impl, - { - unsafe extern "system" fn OnRedirect(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pvbcancel: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMFNetResourceFilter_Impl, - { + pub const fn new() -> IMFNetResourceFilter_Vtbl { + unsafe extern "system" fn OnRedirect(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pvbcancel: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetResourceFilter_Impl::OnRedirect(this, core::mem::transmute(&pszurl)) { Ok(ok__) => { @@ -13140,10 +9768,7 @@ impl IMFNetResourceFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnSendingRequest(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFNetResourceFilter_Impl, - { + unsafe extern "system" fn OnSendingRequest(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetResourceFilter_Impl::OnSendingRequest(this, core::mem::transmute(&pszurl)).into() } @@ -13157,21 +9782,15 @@ impl IMFNetResourceFilter_Vtbl { iid == &::IID } } -pub trait IMFNetSchemeHandlerConfig_Impl: Sized { +pub trait IMFNetSchemeHandlerConfig_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberOfSupportedProtocols(&self) -> windows_core::Result; fn GetSupportedProtocolType(&self, nprotocolindex: u32) -> windows_core::Result; fn ResetProtocolRolloverSettings(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFNetSchemeHandlerConfig {} impl IMFNetSchemeHandlerConfig_Vtbl { - pub const fn new() -> IMFNetSchemeHandlerConfig_Vtbl - where - Identity: IMFNetSchemeHandlerConfig_Impl, - { - unsafe extern "system" fn GetNumberOfSupportedProtocols(this: *mut core::ffi::c_void, pcprotocols: *mut u32) -> windows_core::HRESULT - where - Identity: IMFNetSchemeHandlerConfig_Impl, - { + pub const fn new() -> IMFNetSchemeHandlerConfig_Vtbl { + unsafe extern "system" fn GetNumberOfSupportedProtocols(this: *mut core::ffi::c_void, pcprotocols: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetSchemeHandlerConfig_Impl::GetNumberOfSupportedProtocols(this) { Ok(ok__) => { @@ -13181,10 +9800,7 @@ impl IMFNetSchemeHandlerConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedProtocolType(this: *mut core::ffi::c_void, nprotocolindex: u32, pnprotocoltype: *mut MFNETSOURCE_PROTOCOL_TYPE) -> windows_core::HRESULT - where - Identity: IMFNetSchemeHandlerConfig_Impl, - { + unsafe extern "system" fn GetSupportedProtocolType(this: *mut core::ffi::c_void, nprotocolindex: u32, pnprotocoltype: *mut MFNETSOURCE_PROTOCOL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetSchemeHandlerConfig_Impl::GetSupportedProtocolType(this, core::mem::transmute_copy(&nprotocolindex)) { Ok(ok__) => { @@ -13194,10 +9810,7 @@ impl IMFNetSchemeHandlerConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResetProtocolRolloverSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFNetSchemeHandlerConfig_Impl, - { + unsafe extern "system" fn ResetProtocolRolloverSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetSchemeHandlerConfig_Impl::ResetProtocolRolloverSettings(this).into() } @@ -13212,27 +9825,18 @@ impl IMFNetSchemeHandlerConfig_Vtbl { iid == &::IID } } -pub trait IMFObjectReferenceStream_Impl: Sized { +pub trait IMFObjectReferenceStream_Impl: Sized + windows_core::IUnknownImpl { fn SaveReference(&self, riid: *const windows_core::GUID, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn LoadReference(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFObjectReferenceStream {} impl IMFObjectReferenceStream_Vtbl { - pub const fn new() -> IMFObjectReferenceStream_Vtbl - where - Identity: IMFObjectReferenceStream_Impl, - { - unsafe extern "system" fn SaveReference(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFObjectReferenceStream_Impl, - { + pub const fn new() -> IMFObjectReferenceStream_Vtbl { + unsafe extern "system" fn SaveReference(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFObjectReferenceStream_Impl::SaveReference(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn LoadReference(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFObjectReferenceStream_Impl, - { + unsafe extern "system" fn LoadReference(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFObjectReferenceStream_Impl::LoadReference(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -13253,14 +9857,8 @@ pub trait IMFOutputPolicy_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFOutputPolicy {} impl IMFOutputPolicy_Vtbl { - pub const fn new() -> IMFOutputPolicy_Vtbl - where - Identity: IMFOutputPolicy_Impl, - { - unsafe extern "system" fn GenerateRequiredSchemas(this: *mut core::ffi::c_void, dwattributes: u32, guidoutputsubtype: windows_core::GUID, rgguidprotectionschemassupported: *const windows_core::GUID, cprotectionschemassupported: u32, pprequiredprotectionschemas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFOutputPolicy_Impl, - { + pub const fn new() -> IMFOutputPolicy_Vtbl { + unsafe extern "system" fn GenerateRequiredSchemas(this: *mut core::ffi::c_void, dwattributes: u32, guidoutputsubtype: windows_core::GUID, rgguidprotectionschemassupported: *const windows_core::GUID, cprotectionschemassupported: u32, pprequiredprotectionschemas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFOutputPolicy_Impl::GenerateRequiredSchemas(this, core::mem::transmute_copy(&dwattributes), core::mem::transmute(&guidoutputsubtype), core::mem::transmute_copy(&rgguidprotectionschemassupported), core::mem::transmute_copy(&cprotectionschemassupported)) { Ok(ok__) => { @@ -13270,10 +9868,7 @@ impl IMFOutputPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginatorID(this: *mut core::ffi::c_void, pguidoriginatorid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFOutputPolicy_Impl, - { + unsafe extern "system" fn GetOriginatorID(this: *mut core::ffi::c_void, pguidoriginatorid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFOutputPolicy_Impl::GetOriginatorID(this) { Ok(ok__) => { @@ -13283,10 +9878,7 @@ impl IMFOutputPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMinimumGRLVersion(this: *mut core::ffi::c_void, pdwminimumgrlversion: *mut u32) -> windows_core::HRESULT - where - Identity: IMFOutputPolicy_Impl, - { + unsafe extern "system" fn GetMinimumGRLVersion(this: *mut core::ffi::c_void, pdwminimumgrlversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFOutputPolicy_Impl::GetMinimumGRLVersion(this) { Ok(ok__) => { @@ -13314,14 +9906,8 @@ pub trait IMFOutputSchema_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFOutputSchema {} impl IMFOutputSchema_Vtbl { - pub const fn new() -> IMFOutputSchema_Vtbl - where - Identity: IMFOutputSchema_Impl, - { - unsafe extern "system" fn GetSchemaType(this: *mut core::ffi::c_void, pguidschematype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFOutputSchema_Impl, - { + pub const fn new() -> IMFOutputSchema_Vtbl { + unsafe extern "system" fn GetSchemaType(this: *mut core::ffi::c_void, pguidschematype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFOutputSchema_Impl::GetSchemaType(this) { Ok(ok__) => { @@ -13331,10 +9917,7 @@ impl IMFOutputSchema_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConfigurationData(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT - where - Identity: IMFOutputSchema_Impl, - { + unsafe extern "system" fn GetConfigurationData(this: *mut core::ffi::c_void, pdwval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFOutputSchema_Impl::GetConfigurationData(this) { Ok(ok__) => { @@ -13344,10 +9927,7 @@ impl IMFOutputSchema_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginatorID(this: *mut core::ffi::c_void, pguidoriginatorid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFOutputSchema_Impl, - { + unsafe extern "system" fn GetOriginatorID(this: *mut core::ffi::c_void, pguidoriginatorid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFOutputSchema_Impl::GetOriginatorID(this) { Ok(ok__) => { @@ -13368,20 +9948,14 @@ impl IMFOutputSchema_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFOutputTrustAuthority_Impl: Sized { +pub trait IMFOutputTrustAuthority_Impl: Sized + windows_core::IUnknownImpl { fn GetAction(&self) -> windows_core::Result; fn SetPolicy(&self, pppolicy: *const Option, npolicy: u32, ppbticket: *mut *mut u8, pcbticket: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFOutputTrustAuthority {} impl IMFOutputTrustAuthority_Vtbl { - pub const fn new() -> IMFOutputTrustAuthority_Vtbl - where - Identity: IMFOutputTrustAuthority_Impl, - { - unsafe extern "system" fn GetAction(this: *mut core::ffi::c_void, paction: *mut MFPOLICYMANAGER_ACTION) -> windows_core::HRESULT - where - Identity: IMFOutputTrustAuthority_Impl, - { + pub const fn new() -> IMFOutputTrustAuthority_Vtbl { + unsafe extern "system" fn GetAction(this: *mut core::ffi::c_void, paction: *mut MFPOLICYMANAGER_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFOutputTrustAuthority_Impl::GetAction(this) { Ok(ok__) => { @@ -13391,10 +9965,7 @@ impl IMFOutputTrustAuthority_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPolicy(this: *mut core::ffi::c_void, pppolicy: *const *mut core::ffi::c_void, npolicy: u32, ppbticket: *mut *mut u8, pcbticket: *mut u32) -> windows_core::HRESULT - where - Identity: IMFOutputTrustAuthority_Impl, - { + unsafe extern "system" fn SetPolicy(this: *mut core::ffi::c_void, pppolicy: *const *mut core::ffi::c_void, npolicy: u32, ppbticket: *mut *mut u8, pcbticket: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFOutputTrustAuthority_Impl::SetPolicy(this, core::mem::transmute_copy(&pppolicy), core::mem::transmute_copy(&npolicy), core::mem::transmute_copy(&ppbticket), core::mem::transmute_copy(&pcbticket)).into() } @@ -13408,19 +9979,13 @@ impl IMFOutputTrustAuthority_Vtbl { iid == &::IID } } -pub trait IMFPMPClient_Impl: Sized { +pub trait IMFPMPClient_Impl: Sized + windows_core::IUnknownImpl { fn SetPMPHost(&self, ppmphost: Option<&IMFPMPHost>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFPMPClient {} impl IMFPMPClient_Vtbl { - pub const fn new() -> IMFPMPClient_Vtbl - where - Identity: IMFPMPClient_Impl, - { - unsafe extern "system" fn SetPMPHost(this: *mut core::ffi::c_void, ppmphost: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPClient_Impl, - { + pub const fn new() -> IMFPMPClient_Vtbl { + unsafe extern "system" fn SetPMPHost(this: *mut core::ffi::c_void, ppmphost: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPClient_Impl::SetPMPHost(this, windows_core::from_raw_borrowed(&ppmphost)).into() } @@ -13430,19 +9995,13 @@ impl IMFPMPClient_Vtbl { iid == &::IID } } -pub trait IMFPMPClientApp_Impl: Sized { +pub trait IMFPMPClientApp_Impl: Sized + windows_core::IUnknownImpl { fn SetPMPHost(&self, ppmphost: Option<&IMFPMPHostApp>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFPMPClientApp {} impl IMFPMPClientApp_Vtbl { - pub const fn new() -> IMFPMPClientApp_Vtbl - where - Identity: IMFPMPClientApp_Impl, - { - unsafe extern "system" fn SetPMPHost(this: *mut core::ffi::c_void, ppmphost: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPClientApp_Impl, - { + pub const fn new() -> IMFPMPClientApp_Vtbl { + unsafe extern "system" fn SetPMPHost(this: *mut core::ffi::c_void, ppmphost: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPClientApp_Impl::SetPMPHost(this, windows_core::from_raw_borrowed(&ppmphost)).into() } @@ -13453,7 +10012,7 @@ impl IMFPMPClientApp_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMFPMPHost_Impl: Sized { +pub trait IMFPMPHost_Impl: Sized + windows_core::IUnknownImpl { fn LockProcess(&self) -> windows_core::Result<()>; fn UnlockProcess(&self) -> windows_core::Result<()>; fn CreateObjectByCLSID(&self, clsid: *const windows_core::GUID, pstream: Option<&super::super::System::Com::IStream>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -13462,28 +10021,16 @@ pub trait IMFPMPHost_Impl: Sized { impl windows_core::RuntimeName for IMFPMPHost {} #[cfg(feature = "Win32_System_Com")] impl IMFPMPHost_Vtbl { - pub const fn new() -> IMFPMPHost_Vtbl - where - Identity: IMFPMPHost_Impl, - { - unsafe extern "system" fn LockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPHost_Impl, - { + pub const fn new() -> IMFPMPHost_Vtbl { + unsafe extern "system" fn LockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPHost_Impl::LockProcess(this).into() } - unsafe extern "system" fn UnlockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPHost_Impl, - { + unsafe extern "system" fn UnlockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPHost_Impl::UnlockProcess(this).into() } - unsafe extern "system" fn CreateObjectByCLSID(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, pstream: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPHost_Impl, - { + unsafe extern "system" fn CreateObjectByCLSID(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, pstream: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPHost_Impl::CreateObjectByCLSID(this, core::mem::transmute_copy(&clsid), windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -13499,7 +10046,7 @@ impl IMFPMPHost_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMFPMPHostApp_Impl: Sized { +pub trait IMFPMPHostApp_Impl: Sized + windows_core::IUnknownImpl { fn LockProcess(&self) -> windows_core::Result<()>; fn UnlockProcess(&self) -> windows_core::Result<()>; fn ActivateClassById(&self, id: &windows_core::PCWSTR, pstream: Option<&super::super::System::Com::IStream>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -13508,28 +10055,16 @@ pub trait IMFPMPHostApp_Impl: Sized { impl windows_core::RuntimeName for IMFPMPHostApp {} #[cfg(feature = "Win32_System_Com")] impl IMFPMPHostApp_Vtbl { - pub const fn new() -> IMFPMPHostApp_Vtbl - where - Identity: IMFPMPHostApp_Impl, - { - unsafe extern "system" fn LockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPHostApp_Impl, - { + pub const fn new() -> IMFPMPHostApp_Vtbl { + unsafe extern "system" fn LockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPHostApp_Impl::LockProcess(this).into() } - unsafe extern "system" fn UnlockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPHostApp_Impl, - { + unsafe extern "system" fn UnlockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPHostApp_Impl::UnlockProcess(this).into() } - unsafe extern "system" fn ActivateClassById(this: *mut core::ffi::c_void, id: windows_core::PCWSTR, pstream: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPHostApp_Impl, - { + unsafe extern "system" fn ActivateClassById(this: *mut core::ffi::c_void, id: windows_core::PCWSTR, pstream: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPHostApp_Impl::ActivateClassById(this, core::mem::transmute(&id), windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -13544,35 +10079,23 @@ impl IMFPMPHostApp_Vtbl { iid == &::IID } } -pub trait IMFPMPServer_Impl: Sized { +pub trait IMFPMPServer_Impl: Sized + windows_core::IUnknownImpl { fn LockProcess(&self) -> windows_core::Result<()>; fn UnlockProcess(&self) -> windows_core::Result<()>; fn CreateObjectByCLSID(&self, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFPMPServer {} impl IMFPMPServer_Vtbl { - pub const fn new() -> IMFPMPServer_Vtbl - where - Identity: IMFPMPServer_Impl, - { - unsafe extern "system" fn LockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPServer_Impl, - { + pub const fn new() -> IMFPMPServer_Vtbl { + unsafe extern "system" fn LockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPServer_Impl::LockProcess(this).into() } - unsafe extern "system" fn UnlockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPServer_Impl, - { + unsafe extern "system" fn UnlockProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPServer_Impl::UnlockProcess(this).into() } - unsafe extern "system" fn CreateObjectByCLSID(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMPServer_Impl, - { + unsafe extern "system" fn CreateObjectByCLSID(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMPServer_Impl::CreateObjectByCLSID(this, core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppobject)).into() } @@ -13588,7 +10111,7 @@ impl IMFPMPServer_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMFPMediaItem_Impl: Sized { +pub trait IMFPMediaItem_Impl: Sized + windows_core::IUnknownImpl { fn GetMediaPlayer(&self) -> windows_core::Result; fn GetURL(&self) -> windows_core::Result; fn GetObject(&self) -> windows_core::Result; @@ -13613,14 +10136,8 @@ pub trait IMFPMediaItem_Impl: Sized { impl windows_core::RuntimeName for IMFPMediaItem {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFPMediaItem_Vtbl { - pub const fn new() -> IMFPMediaItem_Vtbl - where - Identity: IMFPMediaItem_Impl, - { - unsafe extern "system" fn GetMediaPlayer(this: *mut core::ffi::c_void, ppmediaplayer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + pub const fn new() -> IMFPMediaItem_Vtbl { + unsafe extern "system" fn GetMediaPlayer(this: *mut core::ffi::c_void, ppmediaplayer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetMediaPlayer(this) { Ok(ok__) => { @@ -13630,10 +10147,7 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, ppwszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, ppwszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetURL(this) { Ok(ok__) => { @@ -13643,10 +10157,7 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, ppiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, ppiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetObject(this) { Ok(ok__) => { @@ -13656,10 +10167,7 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserData(this: *mut core::ffi::c_void, pdwuserdata: *mut usize) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetUserData(this: *mut core::ffi::c_void, pdwuserdata: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetUserData(this) { Ok(ok__) => { @@ -13669,45 +10177,27 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUserData(this: *mut core::ffi::c_void, dwuserdata: usize) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn SetUserData(this: *mut core::ffi::c_void, dwuserdata: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaItem_Impl::SetUserData(this, core::mem::transmute_copy(&dwuserdata)).into() } - unsafe extern "system" fn GetStartStopPosition(this: *mut core::ffi::c_void, pguidstartpositiontype: *mut windows_core::GUID, pvstartvalue: *mut core::mem::MaybeUninit, pguidstoppositiontype: *mut windows_core::GUID, pvstopvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetStartStopPosition(this: *mut core::ffi::c_void, pguidstartpositiontype: *mut windows_core::GUID, pvstartvalue: *mut core::mem::MaybeUninit, pguidstoppositiontype: *mut windows_core::GUID, pvstopvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaItem_Impl::GetStartStopPosition(this, core::mem::transmute_copy(&pguidstartpositiontype), core::mem::transmute_copy(&pvstartvalue), core::mem::transmute_copy(&pguidstoppositiontype), core::mem::transmute_copy(&pvstopvalue)).into() } - unsafe extern "system" fn SetStartStopPosition(this: *mut core::ffi::c_void, pguidstartpositiontype: *const windows_core::GUID, pvstartvalue: *const core::mem::MaybeUninit, pguidstoppositiontype: *const windows_core::GUID, pvstopvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn SetStartStopPosition(this: *mut core::ffi::c_void, pguidstartpositiontype: *const windows_core::GUID, pvstartvalue: *const core::mem::MaybeUninit, pguidstoppositiontype: *const windows_core::GUID, pvstopvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaItem_Impl::SetStartStopPosition(this, core::mem::transmute_copy(&pguidstartpositiontype), core::mem::transmute_copy(&pvstartvalue), core::mem::transmute_copy(&pguidstoppositiontype), core::mem::transmute_copy(&pvstopvalue)).into() } - unsafe extern "system" fn HasVideo(this: *mut core::ffi::c_void, pfhasvideo: *mut super::super::Foundation::BOOL, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn HasVideo(this: *mut core::ffi::c_void, pfhasvideo: *mut super::super::Foundation::BOOL, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaItem_Impl::HasVideo(this, core::mem::transmute_copy(&pfhasvideo), core::mem::transmute_copy(&pfselected)).into() } - unsafe extern "system" fn HasAudio(this: *mut core::ffi::c_void, pfhasaudio: *mut super::super::Foundation::BOOL, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn HasAudio(this: *mut core::ffi::c_void, pfhasaudio: *mut super::super::Foundation::BOOL, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaItem_Impl::HasAudio(this, core::mem::transmute_copy(&pfhasaudio), core::mem::transmute_copy(&pfselected)).into() } - unsafe extern "system" fn IsProtected(this: *mut core::ffi::c_void, pfprotected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn IsProtected(this: *mut core::ffi::c_void, pfprotected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::IsProtected(this) { Ok(ok__) => { @@ -13717,10 +10207,7 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, guidpositiontype: *const windows_core::GUID, pvdurationvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, guidpositiontype: *const windows_core::GUID, pvdurationvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetDuration(this, core::mem::transmute_copy(&guidpositiontype)) { Ok(ok__) => { @@ -13730,10 +10217,7 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOfStreams(this: *mut core::ffi::c_void, pdwstreamcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetNumberOfStreams(this: *mut core::ffi::c_void, pdwstreamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetNumberOfStreams(this) { Ok(ok__) => { @@ -13743,10 +10227,7 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex)) { Ok(ok__) => { @@ -13756,17 +10237,11 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, fenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, fenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaItem_Impl::SetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn GetStreamAttribute(this: *mut core::ffi::c_void, dwstreamindex: u32, guidmfattribute: *const windows_core::GUID, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetStreamAttribute(this: *mut core::ffi::c_void, dwstreamindex: u32, guidmfattribute: *const windows_core::GUID, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetStreamAttribute(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&guidmfattribute)) { Ok(ok__) => { @@ -13776,10 +10251,7 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPresentationAttribute(this: *mut core::ffi::c_void, guidmfattribute: *const windows_core::GUID, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetPresentationAttribute(this: *mut core::ffi::c_void, guidmfattribute: *const windows_core::GUID, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetPresentationAttribute(this, core::mem::transmute_copy(&guidmfattribute)) { Ok(ok__) => { @@ -13789,10 +10261,7 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCharacteristics(this: *mut core::ffi::c_void, pcharacteristics: *mut u32) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetCharacteristics(this: *mut core::ffi::c_void, pcharacteristics: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetCharacteristics(this) { Ok(ok__) => { @@ -13802,17 +10271,11 @@ impl IMFPMediaItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamSink(this: *mut core::ffi::c_void, dwstreamindex: u32, pmediasink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn SetStreamSink(this: *mut core::ffi::c_void, dwstreamindex: u32, pmediasink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaItem_Impl::SetStreamSink(this, core::mem::transmute_copy(&dwstreamindex), windows_core::from_raw_borrowed(&pmediasink)).into() } - unsafe extern "system" fn GetMetadata(this: *mut core::ffi::c_void, ppmetadatastore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaItem_Impl, - { + unsafe extern "system" fn GetMetadata(this: *mut core::ffi::c_void, ppmetadatastore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetMetadata(this) { Ok(ok__) => { @@ -13849,7 +10312,7 @@ impl IMFPMediaItem_Vtbl { iid == &::IID } } -pub trait IMFPMediaPlayer_Impl: Sized { +pub trait IMFPMediaPlayer_Impl: Sized + windows_core::IUnknownImpl { fn Play(&self) -> windows_core::Result<()>; fn Pause(&self) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; @@ -13889,49 +10352,28 @@ pub trait IMFPMediaPlayer_Impl: Sized { } impl windows_core::RuntimeName for IMFPMediaPlayer {} impl IMFPMediaPlayer_Vtbl { - pub const fn new() -> IMFPMediaPlayer_Vtbl - where - Identity: IMFPMediaPlayer_Impl, - { - unsafe extern "system" fn Play(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + pub const fn new() -> IMFPMediaPlayer_Vtbl { + unsafe extern "system" fn Play(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::Play(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::Pause(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::Stop(this).into() } - unsafe extern "system" fn FrameStep(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn FrameStep(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::FrameStep(this).into() } - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, guidpositiontype: *const windows_core::GUID, pvpositionvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, guidpositiontype: *const windows_core::GUID, pvpositionvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::SetPosition(this, core::mem::transmute_copy(&guidpositiontype), core::mem::transmute_copy(&pvpositionvalue)).into() } - unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, guidpositiontype: *const windows_core::GUID, pvpositionvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, guidpositiontype: *const windows_core::GUID, pvpositionvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetPosition(this, core::mem::transmute_copy(&guidpositiontype)) { Ok(ok__) => { @@ -13941,10 +10383,7 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, guidpositiontype: *const windows_core::GUID, pvdurationvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, guidpositiontype: *const windows_core::GUID, pvdurationvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetDuration(this, core::mem::transmute_copy(&guidpositiontype)) { Ok(ok__) => { @@ -13954,17 +10393,11 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, flrate: f32) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, flrate: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::SetRate(this, core::mem::transmute_copy(&flrate)).into() } - unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, pflrate: *mut f32) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, pflrate: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetRate(this) { Ok(ok__) => { @@ -13974,17 +10407,11 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedRates(this: *mut core::ffi::c_void, fforwarddirection: super::super::Foundation::BOOL, pflslowestrate: *mut f32, pflfastestrate: *mut f32) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetSupportedRates(this: *mut core::ffi::c_void, fforwarddirection: super::super::Foundation::BOOL, pflslowestrate: *mut f32, pflfastestrate: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::GetSupportedRates(this, core::mem::transmute_copy(&fforwarddirection), core::mem::transmute_copy(&pflslowestrate), core::mem::transmute_copy(&pflfastestrate)).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pestate: *mut MFP_MEDIAPLAYER_STATE) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pestate: *mut MFP_MEDIAPLAYER_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetState(this) { Ok(ok__) => { @@ -13994,38 +10421,23 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMediaItemFromURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, fsync: super::super::Foundation::BOOL, dwuserdata: usize, ppmediaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn CreateMediaItemFromURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, fsync: super::super::Foundation::BOOL, dwuserdata: usize, ppmediaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::CreateMediaItemFromURL(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&fsync), core::mem::transmute_copy(&dwuserdata), core::mem::transmute_copy(&ppmediaitem)).into() } - unsafe extern "system" fn CreateMediaItemFromObject(this: *mut core::ffi::c_void, piunknownobj: *mut core::ffi::c_void, fsync: super::super::Foundation::BOOL, dwuserdata: usize, ppmediaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn CreateMediaItemFromObject(this: *mut core::ffi::c_void, piunknownobj: *mut core::ffi::c_void, fsync: super::super::Foundation::BOOL, dwuserdata: usize, ppmediaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::CreateMediaItemFromObject(this, windows_core::from_raw_borrowed(&piunknownobj), core::mem::transmute_copy(&fsync), core::mem::transmute_copy(&dwuserdata), core::mem::transmute_copy(&ppmediaitem)).into() } - unsafe extern "system" fn SetMediaItem(this: *mut core::ffi::c_void, pimfpmediaitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn SetMediaItem(this: *mut core::ffi::c_void, pimfpmediaitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::SetMediaItem(this, windows_core::from_raw_borrowed(&pimfpmediaitem)).into() } - unsafe extern "system" fn ClearMediaItem(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn ClearMediaItem(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::ClearMediaItem(this).into() } - unsafe extern "system" fn GetMediaItem(this: *mut core::ffi::c_void, ppimfpmediaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetMediaItem(this: *mut core::ffi::c_void, ppimfpmediaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetMediaItem(this) { Ok(ok__) => { @@ -14035,10 +10447,7 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void, pflvolume: *mut f32) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void, pflvolume: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetVolume(this) { Ok(ok__) => { @@ -14048,17 +10457,11 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, flvolume: f32) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, flvolume: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::SetVolume(this, core::mem::transmute_copy(&flvolume)).into() } - unsafe extern "system" fn GetBalance(this: *mut core::ffi::c_void, pflbalance: *mut f32) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetBalance(this: *mut core::ffi::c_void, pflbalance: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetBalance(this) { Ok(ok__) => { @@ -14068,17 +10471,11 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBalance(this: *mut core::ffi::c_void, flbalance: f32) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn SetBalance(this: *mut core::ffi::c_void, flbalance: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::SetBalance(this, core::mem::transmute_copy(&flbalance)).into() } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pfmute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pfmute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetMute(this) { Ok(ok__) => { @@ -14088,38 +10485,23 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, fmute: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, fmute: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::SetMute(this, core::mem::transmute_copy(&fmute)).into() } - unsafe extern "system" fn GetNativeVideoSize(this: *mut core::ffi::c_void, pszvideo: *mut super::super::Foundation::SIZE, pszarvideo: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetNativeVideoSize(this: *mut core::ffi::c_void, pszvideo: *mut super::super::Foundation::SIZE, pszarvideo: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::GetNativeVideoSize(this, core::mem::transmute_copy(&pszvideo), core::mem::transmute_copy(&pszarvideo)).into() } - unsafe extern "system" fn GetIdealVideoSize(this: *mut core::ffi::c_void, pszmin: *mut super::super::Foundation::SIZE, pszmax: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetIdealVideoSize(this: *mut core::ffi::c_void, pszmin: *mut super::super::Foundation::SIZE, pszmax: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::GetIdealVideoSize(this, core::mem::transmute_copy(&pszmin), core::mem::transmute_copy(&pszmax)).into() } - unsafe extern "system" fn SetVideoSourceRect(this: *mut core::ffi::c_void, pnrcsource: *const MFVideoNormalizedRect) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn SetVideoSourceRect(this: *mut core::ffi::c_void, pnrcsource: *const MFVideoNormalizedRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::SetVideoSourceRect(this, core::mem::transmute_copy(&pnrcsource)).into() } - unsafe extern "system" fn GetVideoSourceRect(this: *mut core::ffi::c_void, pnrcsource: *mut MFVideoNormalizedRect) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetVideoSourceRect(this: *mut core::ffi::c_void, pnrcsource: *mut MFVideoNormalizedRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetVideoSourceRect(this) { Ok(ok__) => { @@ -14129,17 +10511,11 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, dwaspectratiomode: u32) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, dwaspectratiomode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::SetAspectRatioMode(this, core::mem::transmute_copy(&dwaspectratiomode)).into() } - unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, pdwaspectratiomode: *mut u32) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, pdwaspectratiomode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetAspectRatioMode(this) { Ok(ok__) => { @@ -14149,10 +10525,7 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVideoWindow(this: *mut core::ffi::c_void, phwndvideo: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetVideoWindow(this: *mut core::ffi::c_void, phwndvideo: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetVideoWindow(this) { Ok(ok__) => { @@ -14162,24 +10535,15 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateVideo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn UpdateVideo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::UpdateVideo(this).into() } - unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::SetBorderColor(this, core::mem::transmute_copy(&clr)).into() } - unsafe extern "system" fn GetBorderColor(this: *mut core::ffi::c_void, pclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn GetBorderColor(this: *mut core::ffi::c_void, pclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetBorderColor(this) { Ok(ok__) => { @@ -14189,31 +10553,19 @@ impl IMFPMediaPlayer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn InsertEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::InsertEffect(this, windows_core::from_raw_borrowed(&peffect), core::mem::transmute_copy(&foptional)).into() } - unsafe extern "system" fn RemoveEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn RemoveEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::RemoveEffect(this, windows_core::from_raw_borrowed(&peffect)).into() } - unsafe extern "system" fn RemoveAllEffects(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn RemoveAllEffects(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::RemoveAllEffects(this).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPMediaPlayer_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::Shutdown(this).into() } @@ -14262,21 +10614,15 @@ impl IMFPMediaPlayer_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMFPMediaPlayerCallback_Impl: Sized { +pub trait IMFPMediaPlayerCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnMediaPlayerEvent(&self, peventheader: *const MFP_EVENT_HEADER); } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl windows_core::RuntimeName for IMFPMediaPlayerCallback {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFPMediaPlayerCallback_Vtbl { - pub const fn new() -> IMFPMediaPlayerCallback_Vtbl - where - Identity: IMFPMediaPlayerCallback_Impl, - { - unsafe extern "system" fn OnMediaPlayerEvent(this: *mut core::ffi::c_void, peventheader: *const MFP_EVENT_HEADER) - where - Identity: IMFPMediaPlayerCallback_Impl, - { + pub const fn new() -> IMFPMediaPlayerCallback_Vtbl { + unsafe extern "system" fn OnMediaPlayerEvent(this: *mut core::ffi::c_void, peventheader: *const MFP_EVENT_HEADER) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayerCallback_Impl::OnMediaPlayerEvent(this, core::mem::transmute_copy(&peventheader)) } @@ -14286,7 +10632,7 @@ impl IMFPMediaPlayerCallback_Vtbl { iid == &::IID } } -pub trait IMFPluginControl_Impl: Sized { +pub trait IMFPluginControl_Impl: Sized + windows_core::IUnknownImpl { fn GetPreferredClsid(&self, plugintype: u32, selector: &windows_core::PCWSTR) -> windows_core::Result; fn GetPreferredClsidByIndex(&self, plugintype: u32, index: u32, selector: *mut windows_core::PWSTR, clsid: *mut windows_core::GUID) -> windows_core::Result<()>; fn SetPreferredClsid(&self, plugintype: u32, selector: &windows_core::PCWSTR, clsid: *const windows_core::GUID) -> windows_core::Result<()>; @@ -14296,14 +10642,8 @@ pub trait IMFPluginControl_Impl: Sized { } impl windows_core::RuntimeName for IMFPluginControl {} impl IMFPluginControl_Vtbl { - pub const fn new() -> IMFPluginControl_Vtbl - where - Identity: IMFPluginControl_Impl, - { - unsafe extern "system" fn GetPreferredClsid(this: *mut core::ffi::c_void, plugintype: u32, selector: windows_core::PCWSTR, clsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFPluginControl_Impl, - { + pub const fn new() -> IMFPluginControl_Vtbl { + unsafe extern "system" fn GetPreferredClsid(this: *mut core::ffi::c_void, plugintype: u32, selector: windows_core::PCWSTR, clsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPluginControl_Impl::GetPreferredClsid(this, core::mem::transmute_copy(&plugintype), core::mem::transmute(&selector)) { Ok(ok__) => { @@ -14313,31 +10653,19 @@ impl IMFPluginControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreferredClsidByIndex(this: *mut core::ffi::c_void, plugintype: u32, index: u32, selector: *mut windows_core::PWSTR, clsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFPluginControl_Impl, - { + unsafe extern "system" fn GetPreferredClsidByIndex(this: *mut core::ffi::c_void, plugintype: u32, index: u32, selector: *mut windows_core::PWSTR, clsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPluginControl_Impl::GetPreferredClsidByIndex(this, core::mem::transmute_copy(&plugintype), core::mem::transmute_copy(&index), core::mem::transmute_copy(&selector), core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn SetPreferredClsid(this: *mut core::ffi::c_void, plugintype: u32, selector: windows_core::PCWSTR, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFPluginControl_Impl, - { + unsafe extern "system" fn SetPreferredClsid(this: *mut core::ffi::c_void, plugintype: u32, selector: windows_core::PCWSTR, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPluginControl_Impl::SetPreferredClsid(this, core::mem::transmute_copy(&plugintype), core::mem::transmute(&selector), core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn IsDisabled(this: *mut core::ffi::c_void, plugintype: u32, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFPluginControl_Impl, - { + unsafe extern "system" fn IsDisabled(this: *mut core::ffi::c_void, plugintype: u32, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPluginControl_Impl::IsDisabled(this, core::mem::transmute_copy(&plugintype), core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn GetDisabledByIndex(this: *mut core::ffi::c_void, plugintype: u32, index: u32, clsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFPluginControl_Impl, - { + unsafe extern "system" fn GetDisabledByIndex(this: *mut core::ffi::c_void, plugintype: u32, index: u32, clsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPluginControl_Impl::GetDisabledByIndex(this, core::mem::transmute_copy(&plugintype), core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -14347,10 +10675,7 @@ impl IMFPluginControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisabled(this: *mut core::ffi::c_void, plugintype: u32, clsid: *const windows_core::GUID, disabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFPluginControl_Impl, - { + unsafe extern "system" fn SetDisabled(this: *mut core::ffi::c_void, plugintype: u32, clsid: *const windows_core::GUID, disabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPluginControl_Impl::SetDisabled(this, core::mem::transmute_copy(&plugintype), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&disabled)).into() } @@ -14373,14 +10698,8 @@ pub trait IMFPluginControl2_Impl: Sized + IMFPluginControl_Impl { } impl windows_core::RuntimeName for IMFPluginControl2 {} impl IMFPluginControl2_Vtbl { - pub const fn new() -> IMFPluginControl2_Vtbl - where - Identity: IMFPluginControl2_Impl, - { - unsafe extern "system" fn SetPolicy(this: *mut core::ffi::c_void, policy: MF_PLUGIN_CONTROL_POLICY) -> windows_core::HRESULT - where - Identity: IMFPluginControl2_Impl, - { + pub const fn new() -> IMFPluginControl2_Vtbl { + unsafe extern "system" fn SetPolicy(this: *mut core::ffi::c_void, policy: MF_PLUGIN_CONTROL_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPluginControl2_Impl::SetPolicy(this, core::mem::transmute_copy(&policy)).into() } @@ -14402,21 +10721,12 @@ pub trait IMFPresentationClock_Impl: Sized + IMFClock_Impl { } impl windows_core::RuntimeName for IMFPresentationClock {} impl IMFPresentationClock_Vtbl { - pub const fn new() -> IMFPresentationClock_Vtbl - where - Identity: IMFPresentationClock_Impl, - { - unsafe extern "system" fn SetTimeSource(this: *mut core::ffi::c_void, ptimesource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPresentationClock_Impl, - { + pub const fn new() -> IMFPresentationClock_Vtbl { + unsafe extern "system" fn SetTimeSource(this: *mut core::ffi::c_void, ptimesource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPresentationClock_Impl::SetTimeSource(this, windows_core::from_raw_borrowed(&ptimesource)).into() } - unsafe extern "system" fn GetTimeSource(this: *mut core::ffi::c_void, pptimesource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPresentationClock_Impl, - { + unsafe extern "system" fn GetTimeSource(this: *mut core::ffi::c_void, pptimesource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPresentationClock_Impl::GetTimeSource(this) { Ok(ok__) => { @@ -14426,10 +10736,7 @@ impl IMFPresentationClock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, phnsclocktime: *mut i64) -> windows_core::HRESULT - where - Identity: IMFPresentationClock_Impl, - { + unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, phnsclocktime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPresentationClock_Impl::GetTime(this) { Ok(ok__) => { @@ -14439,38 +10746,23 @@ impl IMFPresentationClock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddClockStateSink(this: *mut core::ffi::c_void, pstatesink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPresentationClock_Impl, - { + unsafe extern "system" fn AddClockStateSink(this: *mut core::ffi::c_void, pstatesink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPresentationClock_Impl::AddClockStateSink(this, windows_core::from_raw_borrowed(&pstatesink)).into() } - unsafe extern "system" fn RemoveClockStateSink(this: *mut core::ffi::c_void, pstatesink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPresentationClock_Impl, - { + unsafe extern "system" fn RemoveClockStateSink(this: *mut core::ffi::c_void, pstatesink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPresentationClock_Impl::RemoveClockStateSink(this, windows_core::from_raw_borrowed(&pstatesink)).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, llclockstartoffset: i64) -> windows_core::HRESULT - where - Identity: IMFPresentationClock_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, llclockstartoffset: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPresentationClock_Impl::Start(this, core::mem::transmute_copy(&llclockstartoffset)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPresentationClock_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPresentationClock_Impl::Stop(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPresentationClock_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPresentationClock_Impl::Pause(this).into() } @@ -14499,14 +10791,8 @@ pub trait IMFPresentationDescriptor_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFPresentationDescriptor {} impl IMFPresentationDescriptor_Vtbl { - pub const fn new() -> IMFPresentationDescriptor_Vtbl - where - Identity: IMFPresentationDescriptor_Impl, - { - unsafe extern "system" fn GetStreamDescriptorCount(this: *mut core::ffi::c_void, pdwdescriptorcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFPresentationDescriptor_Impl, - { + pub const fn new() -> IMFPresentationDescriptor_Vtbl { + unsafe extern "system" fn GetStreamDescriptorCount(this: *mut core::ffi::c_void, pdwdescriptorcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPresentationDescriptor_Impl::GetStreamDescriptorCount(this) { Ok(ok__) => { @@ -14516,31 +10802,19 @@ impl IMFPresentationDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, pfselected: *mut super::super::Foundation::BOOL, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPresentationDescriptor_Impl, - { + unsafe extern "system" fn GetStreamDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, pfselected: *mut super::super::Foundation::BOOL, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPresentationDescriptor_Impl::GetStreamDescriptorByIndex(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pfselected), core::mem::transmute_copy(&ppdescriptor)).into() } - unsafe extern "system" fn SelectStream(this: *mut core::ffi::c_void, dwdescriptorindex: u32) -> windows_core::HRESULT - where - Identity: IMFPresentationDescriptor_Impl, - { + unsafe extern "system" fn SelectStream(this: *mut core::ffi::c_void, dwdescriptorindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPresentationDescriptor_Impl::SelectStream(this, core::mem::transmute_copy(&dwdescriptorindex)).into() } - unsafe extern "system" fn DeselectStream(this: *mut core::ffi::c_void, dwdescriptorindex: u32) -> windows_core::HRESULT - where - Identity: IMFPresentationDescriptor_Impl, - { + unsafe extern "system" fn DeselectStream(this: *mut core::ffi::c_void, dwdescriptorindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPresentationDescriptor_Impl::DeselectStream(this, core::mem::transmute_copy(&dwdescriptorindex)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pppresentationdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPresentationDescriptor_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pppresentationdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPresentationDescriptor_Impl::Clone(this) { Ok(ok__) => { @@ -14568,14 +10842,8 @@ pub trait IMFPresentationTimeSource_Impl: Sized + IMFClock_Impl { } impl windows_core::RuntimeName for IMFPresentationTimeSource {} impl IMFPresentationTimeSource_Vtbl { - pub const fn new() -> IMFPresentationTimeSource_Vtbl - where - Identity: IMFPresentationTimeSource_Impl, - { - unsafe extern "system" fn GetUnderlyingClock(this: *mut core::ffi::c_void, ppclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFPresentationTimeSource_Impl, - { + pub const fn new() -> IMFPresentationTimeSource_Vtbl { + unsafe extern "system" fn GetUnderlyingClock(this: *mut core::ffi::c_void, ppclock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPresentationTimeSource_Impl::GetUnderlyingClock(this) { Ok(ok__) => { @@ -14591,27 +10859,18 @@ impl IMFPresentationTimeSource_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFProtectedEnvironmentAccess_Impl: Sized { +pub trait IMFProtectedEnvironmentAccess_Impl: Sized + windows_core::IUnknownImpl { fn Call(&self, inputlength: u32, input: *const u8, outputlength: u32, output: *mut u8) -> windows_core::Result<()>; fn ReadGRL(&self, outputlength: *mut u32, output: *mut *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFProtectedEnvironmentAccess {} impl IMFProtectedEnvironmentAccess_Vtbl { - pub const fn new() -> IMFProtectedEnvironmentAccess_Vtbl - where - Identity: IMFProtectedEnvironmentAccess_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, inputlength: u32, input: *const u8, outputlength: u32, output: *mut u8) -> windows_core::HRESULT - where - Identity: IMFProtectedEnvironmentAccess_Impl, - { + pub const fn new() -> IMFProtectedEnvironmentAccess_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, inputlength: u32, input: *const u8, outputlength: u32, output: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFProtectedEnvironmentAccess_Impl::Call(this, core::mem::transmute_copy(&inputlength), core::mem::transmute_copy(&input), core::mem::transmute_copy(&outputlength), core::mem::transmute_copy(&output)).into() } - unsafe extern "system" fn ReadGRL(this: *mut core::ffi::c_void, outputlength: *mut u32, output: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IMFProtectedEnvironmentAccess_Impl, - { + unsafe extern "system" fn ReadGRL(this: *mut core::ffi::c_void, outputlength: *mut u32, output: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFProtectedEnvironmentAccess_Impl::ReadGRL(this, core::mem::transmute_copy(&outputlength), core::mem::transmute_copy(&output)).into() } @@ -14621,7 +10880,7 @@ impl IMFProtectedEnvironmentAccess_Vtbl { iid == &::IID } } -pub trait IMFQualityAdvise_Impl: Sized { +pub trait IMFQualityAdvise_Impl: Sized + windows_core::IUnknownImpl { fn SetDropMode(&self, edropmode: MF_QUALITY_DROP_MODE) -> windows_core::Result<()>; fn SetQualityLevel(&self, equalitylevel: MF_QUALITY_LEVEL) -> windows_core::Result<()>; fn GetDropMode(&self) -> windows_core::Result; @@ -14630,28 +10889,16 @@ pub trait IMFQualityAdvise_Impl: Sized { } impl windows_core::RuntimeName for IMFQualityAdvise {} impl IMFQualityAdvise_Vtbl { - pub const fn new() -> IMFQualityAdvise_Vtbl - where - Identity: IMFQualityAdvise_Impl, - { - unsafe extern "system" fn SetDropMode(this: *mut core::ffi::c_void, edropmode: MF_QUALITY_DROP_MODE) -> windows_core::HRESULT - where - Identity: IMFQualityAdvise_Impl, - { + pub const fn new() -> IMFQualityAdvise_Vtbl { + unsafe extern "system" fn SetDropMode(this: *mut core::ffi::c_void, edropmode: MF_QUALITY_DROP_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFQualityAdvise_Impl::SetDropMode(this, core::mem::transmute_copy(&edropmode)).into() } - unsafe extern "system" fn SetQualityLevel(this: *mut core::ffi::c_void, equalitylevel: MF_QUALITY_LEVEL) -> windows_core::HRESULT - where - Identity: IMFQualityAdvise_Impl, - { + unsafe extern "system" fn SetQualityLevel(this: *mut core::ffi::c_void, equalitylevel: MF_QUALITY_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFQualityAdvise_Impl::SetQualityLevel(this, core::mem::transmute_copy(&equalitylevel)).into() } - unsafe extern "system" fn GetDropMode(this: *mut core::ffi::c_void, pedropmode: *mut MF_QUALITY_DROP_MODE) -> windows_core::HRESULT - where - Identity: IMFQualityAdvise_Impl, - { + unsafe extern "system" fn GetDropMode(this: *mut core::ffi::c_void, pedropmode: *mut MF_QUALITY_DROP_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFQualityAdvise_Impl::GetDropMode(this) { Ok(ok__) => { @@ -14661,10 +10908,7 @@ impl IMFQualityAdvise_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQualityLevel(this: *mut core::ffi::c_void, pequalitylevel: *mut MF_QUALITY_LEVEL) -> windows_core::HRESULT - where - Identity: IMFQualityAdvise_Impl, - { + unsafe extern "system" fn GetQualityLevel(this: *mut core::ffi::c_void, pequalitylevel: *mut MF_QUALITY_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFQualityAdvise_Impl::GetQualityLevel(this) { Ok(ok__) => { @@ -14674,10 +10918,7 @@ impl IMFQualityAdvise_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DropTime(this: *mut core::ffi::c_void, hnsamounttodrop: i64) -> windows_core::HRESULT - where - Identity: IMFQualityAdvise_Impl, - { + unsafe extern "system" fn DropTime(this: *mut core::ffi::c_void, hnsamounttodrop: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFQualityAdvise_Impl::DropTime(this, core::mem::transmute_copy(&hnsamounttodrop)).into() } @@ -14699,14 +10940,8 @@ pub trait IMFQualityAdvise2_Impl: Sized + IMFQualityAdvise_Impl { } impl windows_core::RuntimeName for IMFQualityAdvise2 {} impl IMFQualityAdvise2_Vtbl { - pub const fn new() -> IMFQualityAdvise2_Vtbl - where - Identity: IMFQualityAdvise2_Impl, - { - unsafe extern "system" fn NotifyQualityEvent(this: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFQualityAdvise2_Impl, - { + pub const fn new() -> IMFQualityAdvise2_Vtbl { + unsafe extern "system" fn NotifyQualityEvent(this: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFQualityAdvise2_Impl::NotifyQualityEvent(this, windows_core::from_raw_borrowed(&pevent)) { Ok(ok__) => { @@ -14722,20 +10957,14 @@ impl IMFQualityAdvise2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFQualityAdviseLimits_Impl: Sized { +pub trait IMFQualityAdviseLimits_Impl: Sized + windows_core::IUnknownImpl { fn GetMaximumDropMode(&self) -> windows_core::Result; fn GetMinimumQualityLevel(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFQualityAdviseLimits {} impl IMFQualityAdviseLimits_Vtbl { - pub const fn new() -> IMFQualityAdviseLimits_Vtbl - where - Identity: IMFQualityAdviseLimits_Impl, - { - unsafe extern "system" fn GetMaximumDropMode(this: *mut core::ffi::c_void, pedropmode: *mut MF_QUALITY_DROP_MODE) -> windows_core::HRESULT - where - Identity: IMFQualityAdviseLimits_Impl, - { + pub const fn new() -> IMFQualityAdviseLimits_Vtbl { + unsafe extern "system" fn GetMaximumDropMode(this: *mut core::ffi::c_void, pedropmode: *mut MF_QUALITY_DROP_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFQualityAdviseLimits_Impl::GetMaximumDropMode(this) { Ok(ok__) => { @@ -14745,10 +10974,7 @@ impl IMFQualityAdviseLimits_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMinimumQualityLevel(this: *mut core::ffi::c_void, pequalitylevel: *mut MF_QUALITY_LEVEL) -> windows_core::HRESULT - where - Identity: IMFQualityAdviseLimits_Impl, - { + unsafe extern "system" fn GetMinimumQualityLevel(this: *mut core::ffi::c_void, pequalitylevel: *mut MF_QUALITY_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFQualityAdviseLimits_Impl::GetMinimumQualityLevel(this) { Ok(ok__) => { @@ -14768,7 +10994,7 @@ impl IMFQualityAdviseLimits_Vtbl { iid == &::IID } } -pub trait IMFQualityManager_Impl: Sized { +pub trait IMFQualityManager_Impl: Sized + windows_core::IUnknownImpl { fn NotifyTopology(&self, ptopology: Option<&IMFTopology>) -> windows_core::Result<()>; fn NotifyPresentationClock(&self, pclock: Option<&IMFPresentationClock>) -> windows_core::Result<()>; fn NotifyProcessInput(&self, pnode: Option<&IMFTopologyNode>, linputindex: i32, psample: Option<&IMFSample>) -> windows_core::Result<()>; @@ -14778,49 +11004,28 @@ pub trait IMFQualityManager_Impl: Sized { } impl windows_core::RuntimeName for IMFQualityManager {} impl IMFQualityManager_Vtbl { - pub const fn new() -> IMFQualityManager_Vtbl - where - Identity: IMFQualityManager_Impl, - { - unsafe extern "system" fn NotifyTopology(this: *mut core::ffi::c_void, ptopology: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFQualityManager_Impl, - { + pub const fn new() -> IMFQualityManager_Vtbl { + unsafe extern "system" fn NotifyTopology(this: *mut core::ffi::c_void, ptopology: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFQualityManager_Impl::NotifyTopology(this, windows_core::from_raw_borrowed(&ptopology)).into() } - unsafe extern "system" fn NotifyPresentationClock(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFQualityManager_Impl, - { + unsafe extern "system" fn NotifyPresentationClock(this: *mut core::ffi::c_void, pclock: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFQualityManager_Impl::NotifyPresentationClock(this, windows_core::from_raw_borrowed(&pclock)).into() } - unsafe extern "system" fn NotifyProcessInput(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, linputindex: i32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFQualityManager_Impl, - { + unsafe extern "system" fn NotifyProcessInput(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, linputindex: i32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFQualityManager_Impl::NotifyProcessInput(this, windows_core::from_raw_borrowed(&pnode), core::mem::transmute_copy(&linputindex), windows_core::from_raw_borrowed(&psample)).into() } - unsafe extern "system" fn NotifyProcessOutput(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, loutputindex: i32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFQualityManager_Impl, - { + unsafe extern "system" fn NotifyProcessOutput(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, loutputindex: i32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFQualityManager_Impl::NotifyProcessOutput(this, windows_core::from_raw_borrowed(&pnode), core::mem::transmute_copy(&loutputindex), windows_core::from_raw_borrowed(&psample)).into() } - unsafe extern "system" fn NotifyQualityEvent(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFQualityManager_Impl, - { + unsafe extern "system" fn NotifyQualityEvent(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFQualityManager_Impl::NotifyQualityEvent(this, windows_core::from_raw_borrowed(&pobject), windows_core::from_raw_borrowed(&pevent)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFQualityManager_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFQualityManager_Impl::Shutdown(this).into() } @@ -14838,27 +11043,18 @@ impl IMFQualityManager_Vtbl { iid == &::IID } } -pub trait IMFRateControl_Impl: Sized { +pub trait IMFRateControl_Impl: Sized + windows_core::IUnknownImpl { fn SetRate(&self, fthin: super::super::Foundation::BOOL, flrate: f32) -> windows_core::Result<()>; fn GetRate(&self, pfthin: *mut super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFRateControl {} impl IMFRateControl_Vtbl { - pub const fn new() -> IMFRateControl_Vtbl - where - Identity: IMFRateControl_Impl, - { - unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, fthin: super::super::Foundation::BOOL, flrate: f32) -> windows_core::HRESULT - where - Identity: IMFRateControl_Impl, - { + pub const fn new() -> IMFRateControl_Vtbl { + unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, fthin: super::super::Foundation::BOOL, flrate: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRateControl_Impl::SetRate(this, core::mem::transmute_copy(&fthin), core::mem::transmute_copy(&flrate)).into() } - unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, pfthin: *mut super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::HRESULT - where - Identity: IMFRateControl_Impl, - { + unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, pfthin: *mut super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRateControl_Impl::GetRate(this, core::mem::transmute_copy(&pfthin), core::mem::transmute_copy(&pflrate)).into() } @@ -14868,21 +11064,15 @@ impl IMFRateControl_Vtbl { iid == &::IID } } -pub trait IMFRateSupport_Impl: Sized { +pub trait IMFRateSupport_Impl: Sized + windows_core::IUnknownImpl { fn GetSlowestRate(&self, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL) -> windows_core::Result; fn GetFastestRate(&self, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL) -> windows_core::Result; fn IsRateSupported(&self, fthin: super::super::Foundation::BOOL, flrate: f32, pflnearestsupportedrate: *mut f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFRateSupport {} impl IMFRateSupport_Vtbl { - pub const fn new() -> IMFRateSupport_Vtbl - where - Identity: IMFRateSupport_Impl, - { - unsafe extern "system" fn GetSlowestRate(this: *mut core::ffi::c_void, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::HRESULT - where - Identity: IMFRateSupport_Impl, - { + pub const fn new() -> IMFRateSupport_Vtbl { + unsafe extern "system" fn GetSlowestRate(this: *mut core::ffi::c_void, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFRateSupport_Impl::GetSlowestRate(this, core::mem::transmute_copy(&edirection), core::mem::transmute_copy(&fthin)) { Ok(ok__) => { @@ -14892,10 +11082,7 @@ impl IMFRateSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFastestRate(this: *mut core::ffi::c_void, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::HRESULT - where - Identity: IMFRateSupport_Impl, - { + unsafe extern "system" fn GetFastestRate(this: *mut core::ffi::c_void, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFRateSupport_Impl::GetFastestRate(this, core::mem::transmute_copy(&edirection), core::mem::transmute_copy(&fthin)) { Ok(ok__) => { @@ -14905,10 +11092,7 @@ impl IMFRateSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRateSupported(this: *mut core::ffi::c_void, fthin: super::super::Foundation::BOOL, flrate: f32, pflnearestsupportedrate: *mut f32) -> windows_core::HRESULT - where - Identity: IMFRateSupport_Impl, - { + unsafe extern "system" fn IsRateSupported(this: *mut core::ffi::c_void, fthin: super::super::Foundation::BOOL, flrate: f32, pflnearestsupportedrate: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRateSupport_Impl::IsRateSupported(this, core::mem::transmute_copy(&fthin), core::mem::transmute_copy(&flrate), core::mem::transmute_copy(&pflnearestsupportedrate)).into() } @@ -14923,27 +11107,18 @@ impl IMFRateSupport_Vtbl { iid == &::IID } } -pub trait IMFReadWriteClassFactory_Impl: Sized { +pub trait IMFReadWriteClassFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstanceFromURL(&self, clsid: *const windows_core::GUID, pwszurl: &windows_core::PCWSTR, pattributes: Option<&IMFAttributes>, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateInstanceFromObject(&self, clsid: *const windows_core::GUID, punkobject: Option<&windows_core::IUnknown>, pattributes: Option<&IMFAttributes>, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFReadWriteClassFactory {} impl IMFReadWriteClassFactory_Vtbl { - pub const fn new() -> IMFReadWriteClassFactory_Vtbl - where - Identity: IMFReadWriteClassFactory_Impl, - { - unsafe extern "system" fn CreateInstanceFromURL(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, pwszurl: windows_core::PCWSTR, pattributes: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFReadWriteClassFactory_Impl, - { + pub const fn new() -> IMFReadWriteClassFactory_Vtbl { + unsafe extern "system" fn CreateInstanceFromURL(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, pwszurl: windows_core::PCWSTR, pattributes: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFReadWriteClassFactory_Impl::CreateInstanceFromURL(this, core::mem::transmute_copy(&clsid), core::mem::transmute(&pwszurl), windows_core::from_raw_borrowed(&pattributes), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn CreateInstanceFromObject(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, punkobject: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFReadWriteClassFactory_Impl, - { + unsafe extern "system" fn CreateInstanceFromObject(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, punkobject: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFReadWriteClassFactory_Impl::CreateInstanceFromObject(this, core::mem::transmute_copy(&clsid), windows_core::from_raw_borrowed(&punkobject), windows_core::from_raw_borrowed(&pattributes), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } @@ -14957,35 +11132,23 @@ impl IMFReadWriteClassFactory_Vtbl { iid == &::IID } } -pub trait IMFRealTimeClient_Impl: Sized { +pub trait IMFRealTimeClient_Impl: Sized + windows_core::IUnknownImpl { fn RegisterThreads(&self, dwtaskindex: u32, wszclass: &windows_core::PCWSTR) -> windows_core::Result<()>; fn UnregisterThreads(&self) -> windows_core::Result<()>; fn SetWorkQueue(&self, dwworkqueueid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFRealTimeClient {} impl IMFRealTimeClient_Vtbl { - pub const fn new() -> IMFRealTimeClient_Vtbl - where - Identity: IMFRealTimeClient_Impl, - { - unsafe extern "system" fn RegisterThreads(this: *mut core::ffi::c_void, dwtaskindex: u32, wszclass: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFRealTimeClient_Impl, - { + pub const fn new() -> IMFRealTimeClient_Vtbl { + unsafe extern "system" fn RegisterThreads(this: *mut core::ffi::c_void, dwtaskindex: u32, wszclass: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRealTimeClient_Impl::RegisterThreads(this, core::mem::transmute_copy(&dwtaskindex), core::mem::transmute(&wszclass)).into() } - unsafe extern "system" fn UnregisterThreads(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFRealTimeClient_Impl, - { + unsafe extern "system" fn UnregisterThreads(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRealTimeClient_Impl::UnregisterThreads(this).into() } - unsafe extern "system" fn SetWorkQueue(this: *mut core::ffi::c_void, dwworkqueueid: u32) -> windows_core::HRESULT - where - Identity: IMFRealTimeClient_Impl, - { + unsafe extern "system" fn SetWorkQueue(this: *mut core::ffi::c_void, dwworkqueueid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRealTimeClient_Impl::SetWorkQueue(this, core::mem::transmute_copy(&dwworkqueueid)).into() } @@ -15000,35 +11163,23 @@ impl IMFRealTimeClient_Vtbl { iid == &::IID } } -pub trait IMFRealTimeClientEx_Impl: Sized { +pub trait IMFRealTimeClientEx_Impl: Sized + windows_core::IUnknownImpl { fn RegisterThreadsEx(&self, pdwtaskindex: *mut u32, wszclassname: &windows_core::PCWSTR, lbasepriority: i32) -> windows_core::Result<()>; fn UnregisterThreads(&self) -> windows_core::Result<()>; fn SetWorkQueueEx(&self, dwmultithreadedworkqueueid: u32, lworkitembasepriority: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFRealTimeClientEx {} impl IMFRealTimeClientEx_Vtbl { - pub const fn new() -> IMFRealTimeClientEx_Vtbl - where - Identity: IMFRealTimeClientEx_Impl, - { - unsafe extern "system" fn RegisterThreadsEx(this: *mut core::ffi::c_void, pdwtaskindex: *mut u32, wszclassname: windows_core::PCWSTR, lbasepriority: i32) -> windows_core::HRESULT - where - Identity: IMFRealTimeClientEx_Impl, - { + pub const fn new() -> IMFRealTimeClientEx_Vtbl { + unsafe extern "system" fn RegisterThreadsEx(this: *mut core::ffi::c_void, pdwtaskindex: *mut u32, wszclassname: windows_core::PCWSTR, lbasepriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRealTimeClientEx_Impl::RegisterThreadsEx(this, core::mem::transmute_copy(&pdwtaskindex), core::mem::transmute(&wszclassname), core::mem::transmute_copy(&lbasepriority)).into() } - unsafe extern "system" fn UnregisterThreads(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFRealTimeClientEx_Impl, - { + unsafe extern "system" fn UnregisterThreads(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRealTimeClientEx_Impl::UnregisterThreads(this).into() } - unsafe extern "system" fn SetWorkQueueEx(this: *mut core::ffi::c_void, dwmultithreadedworkqueueid: u32, lworkitembasepriority: i32) -> windows_core::HRESULT - where - Identity: IMFRealTimeClientEx_Impl, - { + unsafe extern "system" fn SetWorkQueueEx(this: *mut core::ffi::c_void, dwmultithreadedworkqueueid: u32, lworkitembasepriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRealTimeClientEx_Impl::SetWorkQueueEx(this, core::mem::transmute_copy(&dwmultithreadedworkqueueid), core::mem::transmute_copy(&lworkitembasepriority)).into() } @@ -15043,19 +11194,13 @@ impl IMFRealTimeClientEx_Vtbl { iid == &::IID } } -pub trait IMFRelativePanelReport_Impl: Sized { +pub trait IMFRelativePanelReport_Impl: Sized + windows_core::IUnknownImpl { fn GetRelativePanel(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFRelativePanelReport {} impl IMFRelativePanelReport_Vtbl { - pub const fn new() -> IMFRelativePanelReport_Vtbl - where - Identity: IMFRelativePanelReport_Impl, - { - unsafe extern "system" fn GetRelativePanel(this: *mut core::ffi::c_void, panel: *mut u32) -> windows_core::HRESULT - where - Identity: IMFRelativePanelReport_Impl, - { + pub const fn new() -> IMFRelativePanelReport_Vtbl { + unsafe extern "system" fn GetRelativePanel(this: *mut core::ffi::c_void, panel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFRelativePanelReport_Impl::GetRelativePanel(this) { Ok(ok__) => { @@ -15078,21 +11223,12 @@ pub trait IMFRelativePanelWatcher_Impl: Sized + IMFShutdown_Impl { } impl windows_core::RuntimeName for IMFRelativePanelWatcher {} impl IMFRelativePanelWatcher_Vtbl { - pub const fn new() -> IMFRelativePanelWatcher_Vtbl - where - Identity: IMFRelativePanelWatcher_Impl, - { - unsafe extern "system" fn BeginGetReport(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFRelativePanelWatcher_Impl, - { + pub const fn new() -> IMFRelativePanelWatcher_Vtbl { + unsafe extern "system" fn BeginGetReport(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRelativePanelWatcher_Impl::BeginGetReport(this, windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pstate)).into() } - unsafe extern "system" fn EndGetReport(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pprelativepanelreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFRelativePanelWatcher_Impl, - { + unsafe extern "system" fn EndGetReport(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pprelativepanelreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFRelativePanelWatcher_Impl::EndGetReport(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -15102,10 +11238,7 @@ impl IMFRelativePanelWatcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReport(this: *mut core::ffi::c_void, pprelativepanelreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFRelativePanelWatcher_Impl, - { + unsafe extern "system" fn GetReport(this: *mut core::ffi::c_void, pprelativepanelreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFRelativePanelWatcher_Impl::GetReport(this) { Ok(ok__) => { @@ -15126,19 +11259,13 @@ impl IMFRelativePanelWatcher_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFRemoteAsyncCallback_Impl: Sized { +pub trait IMFRemoteAsyncCallback_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self, hr: windows_core::HRESULT, premoteresult: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFRemoteAsyncCallback {} impl IMFRemoteAsyncCallback_Vtbl { - pub const fn new() -> IMFRemoteAsyncCallback_Vtbl - where - Identity: IMFRemoteAsyncCallback_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, premoteresult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFRemoteAsyncCallback_Impl, - { + pub const fn new() -> IMFRemoteAsyncCallback_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, premoteresult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRemoteAsyncCallback_Impl::Invoke(this, core::mem::transmute_copy(&hr), windows_core::from_raw_borrowed(&premoteresult)).into() } @@ -15148,19 +11275,13 @@ impl IMFRemoteAsyncCallback_Vtbl { iid == &::IID } } -pub trait IMFRemoteDesktopPlugin_Impl: Sized { +pub trait IMFRemoteDesktopPlugin_Impl: Sized + windows_core::IUnknownImpl { fn UpdateTopology(&self, ptopology: Option<&IMFTopology>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFRemoteDesktopPlugin {} impl IMFRemoteDesktopPlugin_Vtbl { - pub const fn new() -> IMFRemoteDesktopPlugin_Vtbl - where - Identity: IMFRemoteDesktopPlugin_Impl, - { - unsafe extern "system" fn UpdateTopology(this: *mut core::ffi::c_void, ptopology: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFRemoteDesktopPlugin_Impl, - { + pub const fn new() -> IMFRemoteDesktopPlugin_Vtbl { + unsafe extern "system" fn UpdateTopology(this: *mut core::ffi::c_void, ptopology: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRemoteDesktopPlugin_Impl::UpdateTopology(this, windows_core::from_raw_borrowed(&ptopology)).into() } @@ -15170,27 +11291,18 @@ impl IMFRemoteDesktopPlugin_Vtbl { iid == &::IID } } -pub trait IMFRemoteProxy_Impl: Sized { +pub trait IMFRemoteProxy_Impl: Sized + windows_core::IUnknownImpl { fn GetRemoteObject(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetRemoteHost(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFRemoteProxy {} impl IMFRemoteProxy_Vtbl { - pub const fn new() -> IMFRemoteProxy_Vtbl - where - Identity: IMFRemoteProxy_Impl, - { - unsafe extern "system" fn GetRemoteObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFRemoteProxy_Impl, - { + pub const fn new() -> IMFRemoteProxy_Vtbl { + unsafe extern "system" fn GetRemoteObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRemoteProxy_Impl::GetRemoteObject(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetRemoteHost(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFRemoteProxy_Impl, - { + unsafe extern "system" fn GetRemoteHost(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRemoteProxy_Impl::GetRemoteHost(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -15204,7 +11316,7 @@ impl IMFRemoteProxy_Vtbl { iid == &::IID } } -pub trait IMFSAMIStyle_Impl: Sized { +pub trait IMFSAMIStyle_Impl: Sized + windows_core::IUnknownImpl { fn GetStyleCount(&self) -> windows_core::Result; fn GetStyles(&self) -> windows_core::Result; fn SetSelectedStyle(&self, pwszstyle: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -15212,14 +11324,8 @@ pub trait IMFSAMIStyle_Impl: Sized { } impl windows_core::RuntimeName for IMFSAMIStyle {} impl IMFSAMIStyle_Vtbl { - pub const fn new() -> IMFSAMIStyle_Vtbl - where - Identity: IMFSAMIStyle_Impl, - { - unsafe extern "system" fn GetStyleCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSAMIStyle_Impl, - { + pub const fn new() -> IMFSAMIStyle_Vtbl { + unsafe extern "system" fn GetStyleCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSAMIStyle_Impl::GetStyleCount(this) { Ok(ok__) => { @@ -15229,10 +11335,7 @@ impl IMFSAMIStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStyles(this: *mut core::ffi::c_void, ppropvarstylearray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFSAMIStyle_Impl, - { + unsafe extern "system" fn GetStyles(this: *mut core::ffi::c_void, ppropvarstylearray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSAMIStyle_Impl::GetStyles(this) { Ok(ok__) => { @@ -15242,17 +11345,11 @@ impl IMFSAMIStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelectedStyle(this: *mut core::ffi::c_void, pwszstyle: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFSAMIStyle_Impl, - { + unsafe extern "system" fn SetSelectedStyle(this: *mut core::ffi::c_void, pwszstyle: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSAMIStyle_Impl::SetSelectedStyle(this, core::mem::transmute(&pwszstyle)).into() } - unsafe extern "system" fn GetSelectedStyle(this: *mut core::ffi::c_void, ppwszstyle: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFSAMIStyle_Impl, - { + unsafe extern "system" fn GetSelectedStyle(this: *mut core::ffi::c_void, ppwszstyle: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSAMIStyle_Impl::GetSelectedStyle(this) { Ok(ok__) => { @@ -15274,7 +11371,7 @@ impl IMFSAMIStyle_Vtbl { iid == &::IID } } -pub trait IMFSSLCertificateManager_Impl: Sized { +pub trait IMFSSLCertificateManager_Impl: Sized + windows_core::IUnknownImpl { fn GetClientCertificate(&self, pszurl: &windows_core::PCWSTR, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()>; fn BeginGetClientCertificate(&self, pszurl: &windows_core::PCWSTR, pcallback: Option<&IMFAsyncCallback>, pstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndGetClientCertificate(&self, presult: Option<&IMFAsyncResult>, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()>; @@ -15283,42 +11380,24 @@ pub trait IMFSSLCertificateManager_Impl: Sized { } impl windows_core::RuntimeName for IMFSSLCertificateManager {} impl IMFSSLCertificateManager_Vtbl { - pub const fn new() -> IMFSSLCertificateManager_Vtbl - where - Identity: IMFSSLCertificateManager_Impl, - { - unsafe extern "system" fn GetClientCertificate(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSSLCertificateManager_Impl, - { + pub const fn new() -> IMFSSLCertificateManager_Vtbl { + unsafe extern "system" fn GetClientCertificate(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSSLCertificateManager_Impl::GetClientCertificate(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pcbdata)).into() } - unsafe extern "system" fn BeginGetClientCertificate(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSSLCertificateManager_Impl, - { + unsafe extern "system" fn BeginGetClientCertificate(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSSLCertificateManager_Impl::BeginGetClientCertificate(this, core::mem::transmute(&pszurl), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pstate)).into() } - unsafe extern "system" fn EndGetClientCertificate(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSSLCertificateManager_Impl, - { + unsafe extern "system" fn EndGetClientCertificate(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSSLCertificateManager_Impl::EndGetClientCertificate(this, windows_core::from_raw_borrowed(&presult), core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pcbdata)).into() } - unsafe extern "system" fn GetCertificatePolicy(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfoverrideautomaticcheck: *mut super::super::Foundation::BOOL, pfclientcertificateavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFSSLCertificateManager_Impl, - { + unsafe extern "system" fn GetCertificatePolicy(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfoverrideautomaticcheck: *mut super::super::Foundation::BOOL, pfclientcertificateavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSSLCertificateManager_Impl::GetCertificatePolicy(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&pfoverrideautomaticcheck), core::mem::transmute_copy(&pfclientcertificateavailable)).into() } - unsafe extern "system" fn OnServerCertificate(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pbdata: *const u8, cbdata: u32, pfisgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFSSLCertificateManager_Impl, - { + unsafe extern "system" fn OnServerCertificate(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pbdata: *const u8, cbdata: u32, pfisgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSSLCertificateManager_Impl::OnServerCertificate(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata)) { Ok(ok__) => { @@ -15359,14 +11438,8 @@ pub trait IMFSample_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFSample {} impl IMFSample_Vtbl { - pub const fn new() -> IMFSample_Vtbl - where - Identity: IMFSample_Impl, - { - unsafe extern "system" fn GetSampleFlags(this: *mut core::ffi::c_void, pdwsampleflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + pub const fn new() -> IMFSample_Vtbl { + unsafe extern "system" fn GetSampleFlags(this: *mut core::ffi::c_void, pdwsampleflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSample_Impl::GetSampleFlags(this) { Ok(ok__) => { @@ -15376,17 +11449,11 @@ impl IMFSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSampleFlags(this: *mut core::ffi::c_void, dwsampleflags: u32) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn SetSampleFlags(this: *mut core::ffi::c_void, dwsampleflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSample_Impl::SetSampleFlags(this, core::mem::transmute_copy(&dwsampleflags)).into() } - unsafe extern "system" fn GetSampleTime(this: *mut core::ffi::c_void, phnssampletime: *mut i64) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn GetSampleTime(this: *mut core::ffi::c_void, phnssampletime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSample_Impl::GetSampleTime(this) { Ok(ok__) => { @@ -15396,17 +11463,11 @@ impl IMFSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSampleTime(this: *mut core::ffi::c_void, hnssampletime: i64) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn SetSampleTime(this: *mut core::ffi::c_void, hnssampletime: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSample_Impl::SetSampleTime(this, core::mem::transmute_copy(&hnssampletime)).into() } - unsafe extern "system" fn GetSampleDuration(this: *mut core::ffi::c_void, phnssampleduration: *mut i64) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn GetSampleDuration(this: *mut core::ffi::c_void, phnssampleduration: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSample_Impl::GetSampleDuration(this) { Ok(ok__) => { @@ -15416,17 +11477,11 @@ impl IMFSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSampleDuration(this: *mut core::ffi::c_void, hnssampleduration: i64) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn SetSampleDuration(this: *mut core::ffi::c_void, hnssampleduration: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSample_Impl::SetSampleDuration(this, core::mem::transmute_copy(&hnssampleduration)).into() } - unsafe extern "system" fn GetBufferCount(this: *mut core::ffi::c_void, pdwbuffercount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn GetBufferCount(this: *mut core::ffi::c_void, pdwbuffercount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSample_Impl::GetBufferCount(this) { Ok(ok__) => { @@ -15436,10 +11491,7 @@ impl IMFSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBufferByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn GetBufferByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSample_Impl::GetBufferByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -15449,10 +11501,7 @@ impl IMFSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertToContiguousBuffer(this: *mut core::ffi::c_void, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn ConvertToContiguousBuffer(this: *mut core::ffi::c_void, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSample_Impl::ConvertToContiguousBuffer(this) { Ok(ok__) => { @@ -15462,31 +11511,19 @@ impl IMFSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn AddBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSample_Impl::AddBuffer(this, windows_core::from_raw_borrowed(&pbuffer)).into() } - unsafe extern "system" fn RemoveBufferByIndex(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn RemoveBufferByIndex(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSample_Impl::RemoveBufferByIndex(this, core::mem::transmute_copy(&dwindex)).into() } - unsafe extern "system" fn RemoveAllBuffers(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn RemoveAllBuffers(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSample_Impl::RemoveAllBuffers(this).into() } - unsafe extern "system" fn GetTotalLength(this: *mut core::ffi::c_void, pcbtotallength: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn GetTotalLength(this: *mut core::ffi::c_void, pcbtotallength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSample_Impl::GetTotalLength(this) { Ok(ok__) => { @@ -15496,10 +11533,7 @@ impl IMFSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyToBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSample_Impl, - { + unsafe extern "system" fn CopyToBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSample_Impl::CopyToBuffer(this, windows_core::from_raw_borrowed(&pbuffer)).into() } @@ -15525,27 +11559,18 @@ impl IMFSample_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFSampleAllocatorControl_Impl: Sized { +pub trait IMFSampleAllocatorControl_Impl: Sized + windows_core::IUnknownImpl { fn SetDefaultAllocator(&self, dwoutputstreamid: u32, pallocator: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetAllocatorUsage(&self, dwoutputstreamid: u32, pdwinputstreamid: *mut u32, peusage: *mut MFSampleAllocatorUsage) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSampleAllocatorControl {} impl IMFSampleAllocatorControl_Vtbl { - pub const fn new() -> IMFSampleAllocatorControl_Vtbl - where - Identity: IMFSampleAllocatorControl_Impl, - { - unsafe extern "system" fn SetDefaultAllocator(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSampleAllocatorControl_Impl, - { + pub const fn new() -> IMFSampleAllocatorControl_Vtbl { + unsafe extern "system" fn SetDefaultAllocator(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleAllocatorControl_Impl::SetDefaultAllocator(this, core::mem::transmute_copy(&dwoutputstreamid), windows_core::from_raw_borrowed(&pallocator)).into() } - unsafe extern "system" fn GetAllocatorUsage(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pdwinputstreamid: *mut u32, peusage: *mut MFSampleAllocatorUsage) -> windows_core::HRESULT - where - Identity: IMFSampleAllocatorControl_Impl, - { + unsafe extern "system" fn GetAllocatorUsage(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pdwinputstreamid: *mut u32, peusage: *mut MFSampleAllocatorUsage) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleAllocatorControl_Impl::GetAllocatorUsage(this, core::mem::transmute_copy(&dwoutputstreamid), core::mem::transmute_copy(&pdwinputstreamid), core::mem::transmute_copy(&peusage)).into() } @@ -15566,28 +11591,16 @@ pub trait IMFSampleGrabberSinkCallback_Impl: Sized + IMFClockStateSink_Impl { } impl windows_core::RuntimeName for IMFSampleGrabberSinkCallback {} impl IMFSampleGrabberSinkCallback_Vtbl { - pub const fn new() -> IMFSampleGrabberSinkCallback_Vtbl - where - Identity: IMFSampleGrabberSinkCallback_Impl, - { - unsafe extern "system" fn OnSetPresentationClock(this: *mut core::ffi::c_void, ppresentationclock: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSampleGrabberSinkCallback_Impl, - { + pub const fn new() -> IMFSampleGrabberSinkCallback_Vtbl { + unsafe extern "system" fn OnSetPresentationClock(this: *mut core::ffi::c_void, ppresentationclock: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleGrabberSinkCallback_Impl::OnSetPresentationClock(this, windows_core::from_raw_borrowed(&ppresentationclock)).into() } - unsafe extern "system" fn OnProcessSample(this: *mut core::ffi::c_void, guidmajormediatype: *const windows_core::GUID, dwsampleflags: u32, llsampletime: i64, llsampleduration: i64, psamplebuffer: *const u8, dwsamplesize: u32) -> windows_core::HRESULT - where - Identity: IMFSampleGrabberSinkCallback_Impl, - { + unsafe extern "system" fn OnProcessSample(this: *mut core::ffi::c_void, guidmajormediatype: *const windows_core::GUID, dwsampleflags: u32, llsampletime: i64, llsampleduration: i64, psamplebuffer: *const u8, dwsamplesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleGrabberSinkCallback_Impl::OnProcessSample(this, core::mem::transmute_copy(&guidmajormediatype), core::mem::transmute_copy(&dwsampleflags), core::mem::transmute_copy(&llsampletime), core::mem::transmute_copy(&llsampleduration), core::mem::transmute_copy(&psamplebuffer), core::mem::transmute_copy(&dwsamplesize)).into() } - unsafe extern "system" fn OnShutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSampleGrabberSinkCallback_Impl, - { + unsafe extern "system" fn OnShutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleGrabberSinkCallback_Impl::OnShutdown(this).into() } @@ -15607,14 +11620,8 @@ pub trait IMFSampleGrabberSinkCallback2_Impl: Sized + IMFSampleGrabberSinkCallba } impl windows_core::RuntimeName for IMFSampleGrabberSinkCallback2 {} impl IMFSampleGrabberSinkCallback2_Vtbl { - pub const fn new() -> IMFSampleGrabberSinkCallback2_Vtbl - where - Identity: IMFSampleGrabberSinkCallback2_Impl, - { - unsafe extern "system" fn OnProcessSampleEx(this: *mut core::ffi::c_void, guidmajormediatype: *const windows_core::GUID, dwsampleflags: u32, llsampletime: i64, llsampleduration: i64, psamplebuffer: *const u8, dwsamplesize: u32, pattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSampleGrabberSinkCallback2_Impl, - { + pub const fn new() -> IMFSampleGrabberSinkCallback2_Vtbl { + unsafe extern "system" fn OnProcessSampleEx(this: *mut core::ffi::c_void, guidmajormediatype: *const windows_core::GUID, dwsampleflags: u32, llsampletime: i64, llsampleduration: i64, psamplebuffer: *const u8, dwsamplesize: u32, pattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleGrabberSinkCallback2_Impl::OnProcessSampleEx(this, core::mem::transmute_copy(&guidmajormediatype), core::mem::transmute_copy(&dwsampleflags), core::mem::transmute_copy(&llsampletime), core::mem::transmute_copy(&llsampleduration), core::mem::transmute_copy(&psamplebuffer), core::mem::transmute_copy(&dwsamplesize), windows_core::from_raw_borrowed(&pattributes)).into() } @@ -15624,35 +11631,23 @@ impl IMFSampleGrabberSinkCallback2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMFSampleOutputStream_Impl: Sized { +pub trait IMFSampleOutputStream_Impl: Sized + windows_core::IUnknownImpl { fn BeginWriteSample(&self, psample: Option<&IMFSample>, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndWriteSample(&self, presult: Option<&IMFAsyncResult>) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSampleOutputStream {} impl IMFSampleOutputStream_Vtbl { - pub const fn new() -> IMFSampleOutputStream_Vtbl - where - Identity: IMFSampleOutputStream_Impl, - { - unsafe extern "system" fn BeginWriteSample(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSampleOutputStream_Impl, - { + pub const fn new() -> IMFSampleOutputStream_Vtbl { + unsafe extern "system" fn BeginWriteSample(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleOutputStream_Impl::BeginWriteSample(this, windows_core::from_raw_borrowed(&psample), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndWriteSample(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSampleOutputStream_Impl, - { + unsafe extern "system" fn EndWriteSample(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleOutputStream_Impl::EndWriteSample(this, windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSampleOutputStream_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleOutputStream_Impl::Close(this).into() } @@ -15667,7 +11662,7 @@ impl IMFSampleOutputStream_Vtbl { iid == &::IID } } -pub trait IMFSampleProtection_Impl: Sized { +pub trait IMFSampleProtection_Impl: Sized + windows_core::IUnknownImpl { fn GetInputProtectionVersion(&self) -> windows_core::Result; fn GetOutputProtectionVersion(&self) -> windows_core::Result; fn GetProtectionCertificate(&self, dwversion: u32, ppcert: *mut *mut u8, pcbcert: *mut u32) -> windows_core::Result<()>; @@ -15676,14 +11671,8 @@ pub trait IMFSampleProtection_Impl: Sized { } impl windows_core::RuntimeName for IMFSampleProtection {} impl IMFSampleProtection_Vtbl { - pub const fn new() -> IMFSampleProtection_Vtbl - where - Identity: IMFSampleProtection_Impl, - { - unsafe extern "system" fn GetInputProtectionVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSampleProtection_Impl, - { + pub const fn new() -> IMFSampleProtection_Vtbl { + unsafe extern "system" fn GetInputProtectionVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSampleProtection_Impl::GetInputProtectionVersion(this) { Ok(ok__) => { @@ -15693,10 +11682,7 @@ impl IMFSampleProtection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputProtectionVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSampleProtection_Impl, - { + unsafe extern "system" fn GetOutputProtectionVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSampleProtection_Impl::GetOutputProtectionVersion(this) { Ok(ok__) => { @@ -15706,24 +11692,15 @@ impl IMFSampleProtection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProtectionCertificate(this: *mut core::ffi::c_void, dwversion: u32, ppcert: *mut *mut u8, pcbcert: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSampleProtection_Impl, - { + unsafe extern "system" fn GetProtectionCertificate(this: *mut core::ffi::c_void, dwversion: u32, ppcert: *mut *mut u8, pcbcert: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleProtection_Impl::GetProtectionCertificate(this, core::mem::transmute_copy(&dwversion), core::mem::transmute_copy(&ppcert), core::mem::transmute_copy(&pcbcert)).into() } - unsafe extern "system" fn InitOutputProtection(this: *mut core::ffi::c_void, dwversion: u32, dwoutputid: u32, pbcert: *const u8, cbcert: u32, ppbseed: *mut *mut u8, pcbseed: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSampleProtection_Impl, - { + unsafe extern "system" fn InitOutputProtection(this: *mut core::ffi::c_void, dwversion: u32, dwoutputid: u32, pbcert: *const u8, cbcert: u32, ppbseed: *mut *mut u8, pcbseed: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleProtection_Impl::InitOutputProtection(this, core::mem::transmute_copy(&dwversion), core::mem::transmute_copy(&dwoutputid), core::mem::transmute_copy(&pbcert), core::mem::transmute_copy(&cbcert), core::mem::transmute_copy(&ppbseed), core::mem::transmute_copy(&pcbseed)).into() } - unsafe extern "system" fn InitInputProtection(this: *mut core::ffi::c_void, dwversion: u32, dwinputid: u32, pbseed: *const u8, cbseed: u32) -> windows_core::HRESULT - where - Identity: IMFSampleProtection_Impl, - { + unsafe extern "system" fn InitInputProtection(this: *mut core::ffi::c_void, dwversion: u32, dwinputid: u32, pbseed: *const u8, cbseed: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSampleProtection_Impl::InitInputProtection(this, core::mem::transmute_copy(&dwversion), core::mem::transmute_copy(&dwinputid), core::mem::transmute_copy(&pbseed), core::mem::transmute_copy(&cbseed)).into() } @@ -15740,7 +11717,7 @@ impl IMFSampleProtection_Vtbl { iid == &::IID } } -pub trait IMFSaveJob_Impl: Sized { +pub trait IMFSaveJob_Impl: Sized + windows_core::IUnknownImpl { fn BeginSave(&self, pstream: Option<&IMFByteStream>, pcallback: Option<&IMFAsyncCallback>, pstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndSave(&self, presult: Option<&IMFAsyncResult>) -> windows_core::Result<()>; fn CancelSave(&self) -> windows_core::Result<()>; @@ -15748,35 +11725,20 @@ pub trait IMFSaveJob_Impl: Sized { } impl windows_core::RuntimeName for IMFSaveJob {} impl IMFSaveJob_Vtbl { - pub const fn new() -> IMFSaveJob_Vtbl - where - Identity: IMFSaveJob_Impl, - { - unsafe extern "system" fn BeginSave(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSaveJob_Impl, - { + pub const fn new() -> IMFSaveJob_Vtbl { + unsafe extern "system" fn BeginSave(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSaveJob_Impl::BeginSave(this, windows_core::from_raw_borrowed(&pstream), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pstate)).into() } - unsafe extern "system" fn EndSave(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSaveJob_Impl, - { + unsafe extern "system" fn EndSave(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSaveJob_Impl::EndSave(this, windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn CancelSave(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSaveJob_Impl, - { + unsafe extern "system" fn CancelSave(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSaveJob_Impl::CancelSave(this).into() } - unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, pdwpercentcomplete: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSaveJob_Impl, - { + unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, pdwpercentcomplete: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSaveJob_Impl::GetProgress(this) { Ok(ok__) => { @@ -15799,7 +11761,7 @@ impl IMFSaveJob_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMFSchemeHandler_Impl: Sized { +pub trait IMFSchemeHandler_Impl: Sized + windows_core::IUnknownImpl { fn BeginCreateObject(&self, pwszurl: &windows_core::PCWSTR, dwflags: u32, pprops: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>, ppiunknowncancelcookie: *mut Option, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndCreateObject(&self, presult: Option<&IMFAsyncResult>, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()>; fn CancelObjectCreation(&self, piunknowncancelcookie: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -15808,28 +11770,16 @@ pub trait IMFSchemeHandler_Impl: Sized { impl windows_core::RuntimeName for IMFSchemeHandler {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFSchemeHandler_Vtbl { - pub const fn new() -> IMFSchemeHandler_Vtbl - where - Identity: IMFSchemeHandler_Impl, - { - unsafe extern "system" fn BeginCreateObject(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, ppiunknowncancelcookie: *mut *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSchemeHandler_Impl, - { + pub const fn new() -> IMFSchemeHandler_Vtbl { + unsafe extern "system" fn BeginCreateObject(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, ppiunknowncancelcookie: *mut *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSchemeHandler_Impl::BeginCreateObject(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pprops), core::mem::transmute_copy(&ppiunknowncancelcookie), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndCreateObject(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSchemeHandler_Impl, - { + unsafe extern "system" fn EndCreateObject(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSchemeHandler_Impl::EndCreateObject(this, windows_core::from_raw_borrowed(&presult), core::mem::transmute_copy(&pobjecttype), core::mem::transmute_copy(&ppobject)).into() } - unsafe extern "system" fn CancelObjectCreation(this: *mut core::ffi::c_void, piunknowncancelcookie: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSchemeHandler_Impl, - { + unsafe extern "system" fn CancelObjectCreation(this: *mut core::ffi::c_void, piunknowncancelcookie: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSchemeHandler_Impl::CancelObjectCreation(this, windows_core::from_raw_borrowed(&piunknowncancelcookie)).into() } @@ -15844,19 +11794,13 @@ impl IMFSchemeHandler_Vtbl { iid == &::IID } } -pub trait IMFSecureBuffer_Impl: Sized { +pub trait IMFSecureBuffer_Impl: Sized + windows_core::IUnknownImpl { fn GetIdentifier(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFSecureBuffer {} impl IMFSecureBuffer_Vtbl { - pub const fn new() -> IMFSecureBuffer_Vtbl - where - Identity: IMFSecureBuffer_Impl, - { - unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, pguididentifier: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFSecureBuffer_Impl, - { + pub const fn new() -> IMFSecureBuffer_Vtbl { + unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, pguididentifier: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSecureBuffer_Impl::GetIdentifier(this) { Ok(ok__) => { @@ -15872,27 +11816,18 @@ impl IMFSecureBuffer_Vtbl { iid == &::IID } } -pub trait IMFSecureChannel_Impl: Sized { +pub trait IMFSecureChannel_Impl: Sized + windows_core::IUnknownImpl { fn GetCertificate(&self, ppcert: *mut *mut u8, pcbcert: *mut u32) -> windows_core::Result<()>; fn SetupSession(&self, pbencryptedsessionkey: *const u8, cbsessionkey: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSecureChannel {} impl IMFSecureChannel_Vtbl { - pub const fn new() -> IMFSecureChannel_Vtbl - where - Identity: IMFSecureChannel_Impl, - { - unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, ppcert: *mut *mut u8, pcbcert: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSecureChannel_Impl, - { + pub const fn new() -> IMFSecureChannel_Vtbl { + unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, ppcert: *mut *mut u8, pcbcert: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSecureChannel_Impl::GetCertificate(this, core::mem::transmute_copy(&ppcert), core::mem::transmute_copy(&pcbcert)).into() } - unsafe extern "system" fn SetupSession(this: *mut core::ffi::c_void, pbencryptedsessionkey: *const u8, cbsessionkey: u32) -> windows_core::HRESULT - where - Identity: IMFSecureChannel_Impl, - { + unsafe extern "system" fn SetupSession(this: *mut core::ffi::c_void, pbencryptedsessionkey: *const u8, cbsessionkey: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSecureChannel_Impl::SetupSession(this, core::mem::transmute_copy(&pbencryptedsessionkey), core::mem::transmute_copy(&cbsessionkey)).into() } @@ -15906,19 +11841,13 @@ impl IMFSecureChannel_Vtbl { iid == &::IID } } -pub trait IMFSeekInfo_Impl: Sized { +pub trait IMFSeekInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetNearestKeyFrames(&self, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const windows_core::PROPVARIANT, pvarpreviouskeyframe: *mut windows_core::PROPVARIANT, pvarnextkeyframe: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSeekInfo {} impl IMFSeekInfo_Vtbl { - pub const fn new() -> IMFSeekInfo_Vtbl - where - Identity: IMFSeekInfo_Impl, - { - unsafe extern "system" fn GetNearestKeyFrames(this: *mut core::ffi::c_void, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const core::mem::MaybeUninit, pvarpreviouskeyframe: *mut core::mem::MaybeUninit, pvarnextkeyframe: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFSeekInfo_Impl, - { + pub const fn new() -> IMFSeekInfo_Vtbl { + unsafe extern "system" fn GetNearestKeyFrames(this: *mut core::ffi::c_void, pguidtimeformat: *const windows_core::GUID, pvarstartposition: *const core::mem::MaybeUninit, pvarpreviouskeyframe: *mut core::mem::MaybeUninit, pvarnextkeyframe: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSeekInfo_Impl::GetNearestKeyFrames(this, core::mem::transmute_copy(&pguidtimeformat), core::mem::transmute_copy(&pvarstartposition), core::mem::transmute_copy(&pvarpreviouskeyframe), core::mem::transmute_copy(&pvarnextkeyframe)).into() } @@ -15928,21 +11857,15 @@ impl IMFSeekInfo_Vtbl { iid == &::IID } } -pub trait IMFSensorActivitiesReport_Impl: Sized { +pub trait IMFSensorActivitiesReport_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetActivityReport(&self, index: u32) -> windows_core::Result; fn GetActivityReportByDeviceName(&self, symbolicname: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IMFSensorActivitiesReport {} impl IMFSensorActivitiesReport_Vtbl { - pub const fn new() -> IMFSensorActivitiesReport_Vtbl - where - Identity: IMFSensorActivitiesReport_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pccount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSensorActivitiesReport_Impl, - { + pub const fn new() -> IMFSensorActivitiesReport_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pccount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorActivitiesReport_Impl::GetCount(this) { Ok(ok__) => { @@ -15952,10 +11875,7 @@ impl IMFSensorActivitiesReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActivityReport(this: *mut core::ffi::c_void, index: u32, sensoractivityreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorActivitiesReport_Impl, - { + unsafe extern "system" fn GetActivityReport(this: *mut core::ffi::c_void, index: u32, sensoractivityreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorActivitiesReport_Impl::GetActivityReport(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -15965,10 +11885,7 @@ impl IMFSensorActivitiesReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActivityReportByDeviceName(this: *mut core::ffi::c_void, symbolicname: windows_core::PCWSTR, sensoractivityreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorActivitiesReport_Impl, - { + unsafe extern "system" fn GetActivityReportByDeviceName(this: *mut core::ffi::c_void, symbolicname: windows_core::PCWSTR, sensoractivityreport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorActivitiesReport_Impl::GetActivityReportByDeviceName(this, core::mem::transmute(&symbolicname)) { Ok(ok__) => { @@ -15989,19 +11906,13 @@ impl IMFSensorActivitiesReport_Vtbl { iid == &::IID } } -pub trait IMFSensorActivitiesReportCallback_Impl: Sized { +pub trait IMFSensorActivitiesReportCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnActivitiesReport(&self, sensoractivitiesreport: Option<&IMFSensorActivitiesReport>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSensorActivitiesReportCallback {} impl IMFSensorActivitiesReportCallback_Vtbl { - pub const fn new() -> IMFSensorActivitiesReportCallback_Vtbl - where - Identity: IMFSensorActivitiesReportCallback_Impl, - { - unsafe extern "system" fn OnActivitiesReport(this: *mut core::ffi::c_void, sensoractivitiesreport: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorActivitiesReportCallback_Impl, - { + pub const fn new() -> IMFSensorActivitiesReportCallback_Vtbl { + unsafe extern "system" fn OnActivitiesReport(this: *mut core::ffi::c_void, sensoractivitiesreport: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorActivitiesReportCallback_Impl::OnActivitiesReport(this, windows_core::from_raw_borrowed(&sensoractivitiesreport)).into() } @@ -16011,27 +11922,18 @@ impl IMFSensorActivitiesReportCallback_Vtbl { iid == &::IID } } -pub trait IMFSensorActivityMonitor_Impl: Sized { +pub trait IMFSensorActivityMonitor_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSensorActivityMonitor {} impl IMFSensorActivityMonitor_Vtbl { - pub const fn new() -> IMFSensorActivityMonitor_Vtbl - where - Identity: IMFSensorActivityMonitor_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorActivityMonitor_Impl, - { + pub const fn new() -> IMFSensorActivityMonitor_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorActivityMonitor_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorActivityMonitor_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorActivityMonitor_Impl::Stop(this).into() } @@ -16041,7 +11943,7 @@ impl IMFSensorActivityMonitor_Vtbl { iid == &::IID } } -pub trait IMFSensorActivityReport_Impl: Sized { +pub trait IMFSensorActivityReport_Impl: Sized + windows_core::IUnknownImpl { fn GetFriendlyName(&self, friendlyname: windows_core::PWSTR, cchfriendlyname: u32, pcchwritten: *mut u32) -> windows_core::Result<()>; fn GetSymbolicLink(&self, symboliclink: windows_core::PWSTR, cchsymboliclink: u32, pcchwritten: *mut u32) -> windows_core::Result<()>; fn GetProcessCount(&self) -> windows_core::Result; @@ -16049,28 +11951,16 @@ pub trait IMFSensorActivityReport_Impl: Sized { } impl windows_core::RuntimeName for IMFSensorActivityReport {} impl IMFSensorActivityReport_Vtbl { - pub const fn new() -> IMFSensorActivityReport_Vtbl - where - Identity: IMFSensorActivityReport_Impl, - { - unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, friendlyname: windows_core::PWSTR, cchfriendlyname: u32, pcchwritten: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSensorActivityReport_Impl, - { + pub const fn new() -> IMFSensorActivityReport_Vtbl { + unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, friendlyname: windows_core::PWSTR, cchfriendlyname: u32, pcchwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorActivityReport_Impl::GetFriendlyName(this, core::mem::transmute_copy(&friendlyname), core::mem::transmute_copy(&cchfriendlyname), core::mem::transmute_copy(&pcchwritten)).into() } - unsafe extern "system" fn GetSymbolicLink(this: *mut core::ffi::c_void, symboliclink: windows_core::PWSTR, cchsymboliclink: u32, pcchwritten: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSensorActivityReport_Impl, - { + unsafe extern "system" fn GetSymbolicLink(this: *mut core::ffi::c_void, symboliclink: windows_core::PWSTR, cchsymboliclink: u32, pcchwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorActivityReport_Impl::GetSymbolicLink(this, core::mem::transmute_copy(&symboliclink), core::mem::transmute_copy(&cchsymboliclink), core::mem::transmute_copy(&pcchwritten)).into() } - unsafe extern "system" fn GetProcessCount(this: *mut core::ffi::c_void, pccount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSensorActivityReport_Impl, - { + unsafe extern "system" fn GetProcessCount(this: *mut core::ffi::c_void, pccount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorActivityReport_Impl::GetProcessCount(this) { Ok(ok__) => { @@ -16080,10 +11970,7 @@ impl IMFSensorActivityReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessActivity(this: *mut core::ffi::c_void, index: u32, ppprocessactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorActivityReport_Impl, - { + unsafe extern "system" fn GetProcessActivity(this: *mut core::ffi::c_void, index: u32, ppprocessactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorActivityReport_Impl::GetProcessActivity(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -16105,7 +11992,7 @@ impl IMFSensorActivityReport_Vtbl { iid == &::IID } } -pub trait IMFSensorDevice_Impl: Sized { +pub trait IMFSensorDevice_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceId(&self) -> windows_core::Result; fn GetDeviceType(&self) -> windows_core::Result; fn GetFlags(&self) -> windows_core::Result; @@ -16118,14 +12005,8 @@ pub trait IMFSensorDevice_Impl: Sized { } impl windows_core::RuntimeName for IMFSensorDevice {} impl IMFSensorDevice_Vtbl { - pub const fn new() -> IMFSensorDevice_Vtbl - where - Identity: IMFSensorDevice_Impl, - { - unsafe extern "system" fn GetDeviceId(this: *mut core::ffi::c_void, pdeviceid: *mut u64) -> windows_core::HRESULT - where - Identity: IMFSensorDevice_Impl, - { + pub const fn new() -> IMFSensorDevice_Vtbl { + unsafe extern "system" fn GetDeviceId(this: *mut core::ffi::c_void, pdeviceid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorDevice_Impl::GetDeviceId(this) { Ok(ok__) => { @@ -16135,10 +12016,7 @@ impl IMFSensorDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceType(this: *mut core::ffi::c_void, ptype: *mut MFSensorDeviceType) -> windows_core::HRESULT - where - Identity: IMFSensorDevice_Impl, - { + unsafe extern "system" fn GetDeviceType(this: *mut core::ffi::c_void, ptype: *mut MFSensorDeviceType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorDevice_Impl::GetDeviceType(this) { Ok(ok__) => { @@ -16148,10 +12026,7 @@ impl IMFSensorDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut u64) -> windows_core::HRESULT - where - Identity: IMFSensorDevice_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorDevice_Impl::GetFlags(this) { Ok(ok__) => { @@ -16161,17 +12036,11 @@ impl IMFSensorDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolicLink(this: *mut core::ffi::c_void, symboliclink: windows_core::PWSTR, cchsymboliclink: i32, pcchwritten: *mut i32) -> windows_core::HRESULT - where - Identity: IMFSensorDevice_Impl, - { + unsafe extern "system" fn GetSymbolicLink(this: *mut core::ffi::c_void, symboliclink: windows_core::PWSTR, cchsymboliclink: i32, pcchwritten: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorDevice_Impl::GetSymbolicLink(this, core::mem::transmute_copy(&symboliclink), core::mem::transmute_copy(&cchsymboliclink), core::mem::transmute_copy(&pcchwritten)).into() } - unsafe extern "system" fn GetDeviceAttributes(this: *mut core::ffi::c_void, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorDevice_Impl, - { + unsafe extern "system" fn GetDeviceAttributes(this: *mut core::ffi::c_void, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorDevice_Impl::GetDeviceAttributes(this) { Ok(ok__) => { @@ -16181,10 +12050,7 @@ impl IMFSensorDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamAttributesCount(this: *mut core::ffi::c_void, etype: MFSensorStreamType, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSensorDevice_Impl, - { + unsafe extern "system" fn GetStreamAttributesCount(this: *mut core::ffi::c_void, etype: MFSensorStreamType, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorDevice_Impl::GetStreamAttributesCount(this, core::mem::transmute_copy(&etype)) { Ok(ok__) => { @@ -16194,10 +12060,7 @@ impl IMFSensorDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamAttributes(this: *mut core::ffi::c_void, etype: MFSensorStreamType, dwindex: u32, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorDevice_Impl, - { + unsafe extern "system" fn GetStreamAttributes(this: *mut core::ffi::c_void, etype: MFSensorStreamType, dwindex: u32, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorDevice_Impl::GetStreamAttributes(this, core::mem::transmute_copy(&etype), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -16207,17 +12070,11 @@ impl IMFSensorDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSensorDeviceMode(this: *mut core::ffi::c_void, emode: MFSensorDeviceMode) -> windows_core::HRESULT - where - Identity: IMFSensorDevice_Impl, - { + unsafe extern "system" fn SetSensorDeviceMode(this: *mut core::ffi::c_void, emode: MFSensorDeviceMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorDevice_Impl::SetSensorDeviceMode(this, core::mem::transmute_copy(&emode)).into() } - unsafe extern "system" fn GetSensorDeviceMode(this: *mut core::ffi::c_void, pemode: *mut MFSensorDeviceMode) -> windows_core::HRESULT - where - Identity: IMFSensorDevice_Impl, - { + unsafe extern "system" fn GetSensorDeviceMode(this: *mut core::ffi::c_void, pemode: *mut MFSensorDeviceMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorDevice_Impl::GetSensorDeviceMode(this) { Ok(ok__) => { @@ -16244,7 +12101,7 @@ impl IMFSensorDevice_Vtbl { iid == &::IID } } -pub trait IMFSensorGroup_Impl: Sized { +pub trait IMFSensorGroup_Impl: Sized + windows_core::IUnknownImpl { fn GetSymbolicLink(&self, symboliclink: windows_core::PWSTR, cchsymboliclink: i32, pcchwritten: *mut i32) -> windows_core::Result<()>; fn GetFlags(&self) -> windows_core::Result; fn GetSensorGroupAttributes(&self) -> windows_core::Result; @@ -16256,21 +12113,12 @@ pub trait IMFSensorGroup_Impl: Sized { } impl windows_core::RuntimeName for IMFSensorGroup {} impl IMFSensorGroup_Vtbl { - pub const fn new() -> IMFSensorGroup_Vtbl - where - Identity: IMFSensorGroup_Impl, - { - unsafe extern "system" fn GetSymbolicLink(this: *mut core::ffi::c_void, symboliclink: windows_core::PWSTR, cchsymboliclink: i32, pcchwritten: *mut i32) -> windows_core::HRESULT - where - Identity: IMFSensorGroup_Impl, - { + pub const fn new() -> IMFSensorGroup_Vtbl { + unsafe extern "system" fn GetSymbolicLink(this: *mut core::ffi::c_void, symboliclink: windows_core::PWSTR, cchsymboliclink: i32, pcchwritten: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorGroup_Impl::GetSymbolicLink(this, core::mem::transmute_copy(&symboliclink), core::mem::transmute_copy(&cchsymboliclink), core::mem::transmute_copy(&pcchwritten)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut u64) -> windows_core::HRESULT - where - Identity: IMFSensorGroup_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorGroup_Impl::GetFlags(this) { Ok(ok__) => { @@ -16280,10 +12128,7 @@ impl IMFSensorGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSensorGroupAttributes(this: *mut core::ffi::c_void, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorGroup_Impl, - { + unsafe extern "system" fn GetSensorGroupAttributes(this: *mut core::ffi::c_void, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorGroup_Impl::GetSensorGroupAttributes(this) { Ok(ok__) => { @@ -16293,10 +12138,7 @@ impl IMFSensorGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSensorDeviceCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSensorGroup_Impl, - { + unsafe extern "system" fn GetSensorDeviceCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorGroup_Impl::GetSensorDeviceCount(this) { Ok(ok__) => { @@ -16306,10 +12148,7 @@ impl IMFSensorGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSensorDevice(this: *mut core::ffi::c_void, dwindex: u32, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorGroup_Impl, - { + unsafe extern "system" fn GetSensorDevice(this: *mut core::ffi::c_void, dwindex: u32, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorGroup_Impl::GetSensorDevice(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -16319,17 +12158,11 @@ impl IMFSensorGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultSensorDeviceIndex(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT - where - Identity: IMFSensorGroup_Impl, - { + unsafe extern "system" fn SetDefaultSensorDeviceIndex(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorGroup_Impl::SetDefaultSensorDeviceIndex(this, core::mem::transmute_copy(&dwindex)).into() } - unsafe extern "system" fn GetDefaultSensorDeviceIndex(this: *mut core::ffi::c_void, pdwindex: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSensorGroup_Impl, - { + unsafe extern "system" fn GetDefaultSensorDeviceIndex(this: *mut core::ffi::c_void, pdwindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorGroup_Impl::GetDefaultSensorDeviceIndex(this) { Ok(ok__) => { @@ -16339,10 +12172,7 @@ impl IMFSensorGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMediaSource(this: *mut core::ffi::c_void, ppsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorGroup_Impl, - { + unsafe extern "system" fn CreateMediaSource(this: *mut core::ffi::c_void, ppsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorGroup_Impl::CreateMediaSource(this) { Ok(ok__) => { @@ -16368,7 +12198,7 @@ impl IMFSensorGroup_Vtbl { iid == &::IID } } -pub trait IMFSensorProcessActivity_Impl: Sized { +pub trait IMFSensorProcessActivity_Impl: Sized + windows_core::IUnknownImpl { fn GetProcessId(&self) -> windows_core::Result; fn GetStreamingState(&self) -> windows_core::Result; fn GetStreamingMode(&self) -> windows_core::Result; @@ -16376,14 +12206,8 @@ pub trait IMFSensorProcessActivity_Impl: Sized { } impl windows_core::RuntimeName for IMFSensorProcessActivity {} impl IMFSensorProcessActivity_Vtbl { - pub const fn new() -> IMFSensorProcessActivity_Vtbl - where - Identity: IMFSensorProcessActivity_Impl, - { - unsafe extern "system" fn GetProcessId(this: *mut core::ffi::c_void, ppid: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSensorProcessActivity_Impl, - { + pub const fn new() -> IMFSensorProcessActivity_Vtbl { + unsafe extern "system" fn GetProcessId(this: *mut core::ffi::c_void, ppid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorProcessActivity_Impl::GetProcessId(this) { Ok(ok__) => { @@ -16393,10 +12217,7 @@ impl IMFSensorProcessActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamingState(this: *mut core::ffi::c_void, pfstreaming: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFSensorProcessActivity_Impl, - { + unsafe extern "system" fn GetStreamingState(this: *mut core::ffi::c_void, pfstreaming: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorProcessActivity_Impl::GetStreamingState(this) { Ok(ok__) => { @@ -16406,10 +12227,7 @@ impl IMFSensorProcessActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamingMode(this: *mut core::ffi::c_void, pmode: *mut MFSensorDeviceMode) -> windows_core::HRESULT - where - Identity: IMFSensorProcessActivity_Impl, - { + unsafe extern "system" fn GetStreamingMode(this: *mut core::ffi::c_void, pmode: *mut MFSensorDeviceMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorProcessActivity_Impl::GetStreamingMode(this) { Ok(ok__) => { @@ -16419,10 +12237,7 @@ impl IMFSensorProcessActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReportTime(this: *mut core::ffi::c_void, pft: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IMFSensorProcessActivity_Impl, - { + unsafe extern "system" fn GetReportTime(this: *mut core::ffi::c_void, pft: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorProcessActivity_Impl::GetReportTime(this) { Ok(ok__) => { @@ -16444,7 +12259,7 @@ impl IMFSensorProcessActivity_Vtbl { iid == &::IID } } -pub trait IMFSensorProfile_Impl: Sized { +pub trait IMFSensorProfile_Impl: Sized + windows_core::IUnknownImpl { fn GetProfileId(&self, pid: *mut SENSORPROFILEID) -> windows_core::Result<()>; fn AddProfileFilter(&self, streamid: u32, wzfiltersetstring: &windows_core::PCWSTR) -> windows_core::Result<()>; fn IsMediaTypeSupported(&self, streamid: u32, pmediatype: Option<&IMFMediaType>) -> windows_core::Result; @@ -16452,28 +12267,16 @@ pub trait IMFSensorProfile_Impl: Sized { } impl windows_core::RuntimeName for IMFSensorProfile {} impl IMFSensorProfile_Vtbl { - pub const fn new() -> IMFSensorProfile_Vtbl - where - Identity: IMFSensorProfile_Impl, - { - unsafe extern "system" fn GetProfileId(this: *mut core::ffi::c_void, pid: *mut SENSORPROFILEID) -> windows_core::HRESULT - where - Identity: IMFSensorProfile_Impl, - { + pub const fn new() -> IMFSensorProfile_Vtbl { + unsafe extern "system" fn GetProfileId(this: *mut core::ffi::c_void, pid: *mut SENSORPROFILEID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorProfile_Impl::GetProfileId(this, core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn AddProfileFilter(this: *mut core::ffi::c_void, streamid: u32, wzfiltersetstring: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFSensorProfile_Impl, - { + unsafe extern "system" fn AddProfileFilter(this: *mut core::ffi::c_void, streamid: u32, wzfiltersetstring: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorProfile_Impl::AddProfileFilter(this, core::mem::transmute_copy(&streamid), core::mem::transmute(&wzfiltersetstring)).into() } - unsafe extern "system" fn IsMediaTypeSupported(this: *mut core::ffi::c_void, streamid: u32, pmediatype: *mut core::ffi::c_void, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFSensorProfile_Impl, - { + unsafe extern "system" fn IsMediaTypeSupported(this: *mut core::ffi::c_void, streamid: u32, pmediatype: *mut core::ffi::c_void, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorProfile_Impl::IsMediaTypeSupported(this, core::mem::transmute_copy(&streamid), windows_core::from_raw_borrowed(&pmediatype)) { Ok(ok__) => { @@ -16483,10 +12286,7 @@ impl IMFSensorProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddBlockedControl(this: *mut core::ffi::c_void, wzblockedcontrol: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFSensorProfile_Impl, - { + unsafe extern "system" fn AddBlockedControl(this: *mut core::ffi::c_void, wzblockedcontrol: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorProfile_Impl::AddBlockedControl(this, core::mem::transmute(&wzblockedcontrol)).into() } @@ -16502,7 +12302,7 @@ impl IMFSensorProfile_Vtbl { iid == &::IID } } -pub trait IMFSensorProfileCollection_Impl: Sized { +pub trait IMFSensorProfileCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetProfileCount(&self) -> u32; fn GetProfile(&self, index: u32) -> windows_core::Result; fn AddProfile(&self, pprofile: Option<&IMFSensorProfile>) -> windows_core::Result<()>; @@ -16512,21 +12312,12 @@ pub trait IMFSensorProfileCollection_Impl: Sized { } impl windows_core::RuntimeName for IMFSensorProfileCollection {} impl IMFSensorProfileCollection_Vtbl { - pub const fn new() -> IMFSensorProfileCollection_Vtbl - where - Identity: IMFSensorProfileCollection_Impl, - { - unsafe extern "system" fn GetProfileCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFSensorProfileCollection_Impl, - { + pub const fn new() -> IMFSensorProfileCollection_Vtbl { + unsafe extern "system" fn GetProfileCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorProfileCollection_Impl::GetProfileCount(this) } - unsafe extern "system" fn GetProfile(this: *mut core::ffi::c_void, index: u32, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorProfileCollection_Impl, - { + unsafe extern "system" fn GetProfile(this: *mut core::ffi::c_void, index: u32, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorProfileCollection_Impl::GetProfile(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -16536,17 +12327,11 @@ impl IMFSensorProfileCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorProfileCollection_Impl, - { + unsafe extern "system" fn AddProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorProfileCollection_Impl::AddProfile(this, windows_core::from_raw_borrowed(&pprofile)).into() } - unsafe extern "system" fn FindProfile(this: *mut core::ffi::c_void, profileid: *const SENSORPROFILEID, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorProfileCollection_Impl, - { + unsafe extern "system" fn FindProfile(this: *mut core::ffi::c_void, profileid: *const SENSORPROFILEID, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorProfileCollection_Impl::FindProfile(this, core::mem::transmute_copy(&profileid)) { Ok(ok__) => { @@ -16556,17 +12341,11 @@ impl IMFSensorProfileCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveProfileByIndex(this: *mut core::ffi::c_void, index: u32) - where - Identity: IMFSensorProfileCollection_Impl, - { + unsafe extern "system" fn RemoveProfileByIndex(this: *mut core::ffi::c_void, index: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorProfileCollection_Impl::RemoveProfileByIndex(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn RemoveProfile(this: *mut core::ffi::c_void, profileid: *const SENSORPROFILEID) - where - Identity: IMFSensorProfileCollection_Impl, - { + unsafe extern "system" fn RemoveProfile(this: *mut core::ffi::c_void, profileid: *const SENSORPROFILEID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorProfileCollection_Impl::RemoveProfile(this, core::mem::transmute_copy(&profileid)) } @@ -16591,14 +12370,8 @@ pub trait IMFSensorStream_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFSensorStream {} impl IMFSensorStream_Vtbl { - pub const fn new() -> IMFSensorStream_Vtbl - where - Identity: IMFSensorStream_Impl, - { - unsafe extern "system" fn GetMediaTypeCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSensorStream_Impl, - { + pub const fn new() -> IMFSensorStream_Vtbl { + unsafe extern "system" fn GetMediaTypeCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorStream_Impl::GetMediaTypeCount(this) { Ok(ok__) => { @@ -16608,10 +12381,7 @@ impl IMFSensorStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, dwindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorStream_Impl, - { + unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, dwindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorStream_Impl::GetMediaType(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -16621,10 +12391,7 @@ impl IMFSensorStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloneSensorStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorStream_Impl, - { + unsafe extern "system" fn CloneSensorStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorStream_Impl::CloneSensorStream(this) { Ok(ok__) => { @@ -16645,7 +12412,7 @@ impl IMFSensorStream_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFSensorTransformFactory_Impl: Sized { +pub trait IMFSensorTransformFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetFactoryAttributes(&self) -> windows_core::Result; fn InitializeFactory(&self, dwmaxtransformcount: u32, psensordevices: Option<&IMFCollection>, pattributes: Option<&IMFAttributes>) -> windows_core::Result<()>; fn GetTransformCount(&self) -> windows_core::Result; @@ -16654,14 +12421,8 @@ pub trait IMFSensorTransformFactory_Impl: Sized { } impl windows_core::RuntimeName for IMFSensorTransformFactory {} impl IMFSensorTransformFactory_Vtbl { - pub const fn new() -> IMFSensorTransformFactory_Vtbl - where - Identity: IMFSensorTransformFactory_Impl, - { - unsafe extern "system" fn GetFactoryAttributes(this: *mut core::ffi::c_void, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorTransformFactory_Impl, - { + pub const fn new() -> IMFSensorTransformFactory_Vtbl { + unsafe extern "system" fn GetFactoryAttributes(this: *mut core::ffi::c_void, ppattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorTransformFactory_Impl::GetFactoryAttributes(this) { Ok(ok__) => { @@ -16671,17 +12432,11 @@ impl IMFSensorTransformFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeFactory(this: *mut core::ffi::c_void, dwmaxtransformcount: u32, psensordevices: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorTransformFactory_Impl, - { + unsafe extern "system" fn InitializeFactory(this: *mut core::ffi::c_void, dwmaxtransformcount: u32, psensordevices: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorTransformFactory_Impl::InitializeFactory(this, core::mem::transmute_copy(&dwmaxtransformcount), windows_core::from_raw_borrowed(&psensordevices), windows_core::from_raw_borrowed(&pattributes)).into() } - unsafe extern "system" fn GetTransformCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSensorTransformFactory_Impl, - { + unsafe extern "system" fn GetTransformCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorTransformFactory_Impl::GetTransformCount(this) { Ok(ok__) => { @@ -16691,17 +12446,11 @@ impl IMFSensorTransformFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransformInformation(this: *mut core::ffi::c_void, transformindex: u32, pguidtransformid: *mut windows_core::GUID, ppattributes: *mut *mut core::ffi::c_void, ppstreaminformation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorTransformFactory_Impl, - { + unsafe extern "system" fn GetTransformInformation(this: *mut core::ffi::c_void, transformindex: u32, pguidtransformid: *mut windows_core::GUID, ppattributes: *mut *mut core::ffi::c_void, ppstreaminformation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSensorTransformFactory_Impl::GetTransformInformation(this, core::mem::transmute_copy(&transformindex), core::mem::transmute_copy(&pguidtransformid), core::mem::transmute_copy(&ppattributes), core::mem::transmute_copy(&ppstreaminformation)).into() } - unsafe extern "system" fn CreateTransform(this: *mut core::ffi::c_void, guidsensortransformid: *const windows_core::GUID, pattributes: *mut core::ffi::c_void, ppdevicemft: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSensorTransformFactory_Impl, - { + unsafe extern "system" fn CreateTransform(this: *mut core::ffi::c_void, guidsensortransformid: *const windows_core::GUID, pattributes: *mut core::ffi::c_void, ppdevicemft: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorTransformFactory_Impl::CreateTransform(this, core::mem::transmute_copy(&guidsensortransformid), windows_core::from_raw_borrowed(&pattributes)) { Ok(ok__) => { @@ -16724,7 +12473,7 @@ impl IMFSensorTransformFactory_Vtbl { iid == &::IID } } -pub trait IMFSequencerSource_Impl: Sized { +pub trait IMFSequencerSource_Impl: Sized + windows_core::IUnknownImpl { fn AppendTopology(&self, ptopology: Option<&IMFTopology>, dwflags: u32) -> windows_core::Result; fn DeleteTopology(&self, dwid: u32) -> windows_core::Result<()>; fn GetPresentationContext(&self, ppd: Option<&IMFPresentationDescriptor>, pid: *mut u32, pptopology: *mut Option) -> windows_core::Result<()>; @@ -16733,14 +12482,8 @@ pub trait IMFSequencerSource_Impl: Sized { } impl windows_core::RuntimeName for IMFSequencerSource {} impl IMFSequencerSource_Vtbl { - pub const fn new() -> IMFSequencerSource_Vtbl - where - Identity: IMFSequencerSource_Impl, - { - unsafe extern "system" fn AppendTopology(this: *mut core::ffi::c_void, ptopology: *mut core::ffi::c_void, dwflags: u32, pdwid: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSequencerSource_Impl, - { + pub const fn new() -> IMFSequencerSource_Vtbl { + unsafe extern "system" fn AppendTopology(this: *mut core::ffi::c_void, ptopology: *mut core::ffi::c_void, dwflags: u32, pdwid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSequencerSource_Impl::AppendTopology(this, windows_core::from_raw_borrowed(&ptopology), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -16750,31 +12493,19 @@ impl IMFSequencerSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteTopology(this: *mut core::ffi::c_void, dwid: u32) -> windows_core::HRESULT - where - Identity: IMFSequencerSource_Impl, - { + unsafe extern "system" fn DeleteTopology(this: *mut core::ffi::c_void, dwid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSequencerSource_Impl::DeleteTopology(this, core::mem::transmute_copy(&dwid)).into() } - unsafe extern "system" fn GetPresentationContext(this: *mut core::ffi::c_void, ppd: *mut core::ffi::c_void, pid: *mut u32, pptopology: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSequencerSource_Impl, - { + unsafe extern "system" fn GetPresentationContext(this: *mut core::ffi::c_void, ppd: *mut core::ffi::c_void, pid: *mut u32, pptopology: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSequencerSource_Impl::GetPresentationContext(this, windows_core::from_raw_borrowed(&ppd), core::mem::transmute_copy(&pid), core::mem::transmute_copy(&pptopology)).into() } - unsafe extern "system" fn UpdateTopology(this: *mut core::ffi::c_void, dwid: u32, ptopology: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSequencerSource_Impl, - { + unsafe extern "system" fn UpdateTopology(this: *mut core::ffi::c_void, dwid: u32, ptopology: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSequencerSource_Impl::UpdateTopology(this, core::mem::transmute_copy(&dwid), windows_core::from_raw_borrowed(&ptopology)).into() } - unsafe extern "system" fn UpdateTopologyFlags(this: *mut core::ffi::c_void, dwid: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFSequencerSource_Impl, - { + unsafe extern "system" fn UpdateTopologyFlags(this: *mut core::ffi::c_void, dwid: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSequencerSource_Impl::UpdateTopologyFlags(this, core::mem::transmute_copy(&dwid), core::mem::transmute_copy(&dwflags)).into() } @@ -16791,19 +12522,13 @@ impl IMFSequencerSource_Vtbl { iid == &::IID } } -pub trait IMFSharingEngineClassFactory_Impl: Sized { +pub trait IMFSharingEngineClassFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, dwflags: u32, pattr: Option<&IMFAttributes>) -> windows_core::Result; } impl windows_core::RuntimeName for IMFSharingEngineClassFactory {} impl IMFSharingEngineClassFactory_Vtbl { - pub const fn new() -> IMFSharingEngineClassFactory_Vtbl - where - Identity: IMFSharingEngineClassFactory_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, dwflags: u32, pattr: *mut core::ffi::c_void, ppengine: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSharingEngineClassFactory_Impl, - { + pub const fn new() -> IMFSharingEngineClassFactory_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, dwflags: u32, pattr: *mut core::ffi::c_void, ppengine: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSharingEngineClassFactory_Impl::CreateInstance(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pattr)) { Ok(ok__) => { @@ -16819,27 +12544,18 @@ impl IMFSharingEngineClassFactory_Vtbl { iid == &::IID } } -pub trait IMFShutdown_Impl: Sized { +pub trait IMFShutdown_Impl: Sized + windows_core::IUnknownImpl { fn Shutdown(&self) -> windows_core::Result<()>; fn GetShutdownStatus(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFShutdown {} impl IMFShutdown_Vtbl { - pub const fn new() -> IMFShutdown_Vtbl - where - Identity: IMFShutdown_Impl, - { - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFShutdown_Impl, - { + pub const fn new() -> IMFShutdown_Vtbl { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFShutdown_Impl::Shutdown(this).into() } - unsafe extern "system" fn GetShutdownStatus(this: *mut core::ffi::c_void, pstatus: *mut MFSHUTDOWN_STATUS) -> windows_core::HRESULT - where - Identity: IMFShutdown_Impl, - { + unsafe extern "system" fn GetShutdownStatus(this: *mut core::ffi::c_void, pstatus: *mut MFSHUTDOWN_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFShutdown_Impl::GetShutdownStatus(this) { Ok(ok__) => { @@ -16859,19 +12575,13 @@ impl IMFShutdown_Vtbl { iid == &::IID } } -pub trait IMFSignedLibrary_Impl: Sized { +pub trait IMFSignedLibrary_Impl: Sized + windows_core::IUnknownImpl { fn GetProcedureAddress(&self, name: &windows_core::PCSTR, address: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSignedLibrary {} impl IMFSignedLibrary_Vtbl { - pub const fn new() -> IMFSignedLibrary_Vtbl - where - Identity: IMFSignedLibrary_Impl, - { - unsafe extern "system" fn GetProcedureAddress(this: *mut core::ffi::c_void, name: windows_core::PCSTR, address: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSignedLibrary_Impl, - { + pub const fn new() -> IMFSignedLibrary_Vtbl { + unsafe extern "system" fn GetProcedureAddress(this: *mut core::ffi::c_void, name: windows_core::PCSTR, address: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSignedLibrary_Impl::GetProcedureAddress(this, core::mem::transmute(&name), core::mem::transmute_copy(&address)).into() } @@ -16881,7 +12591,7 @@ impl IMFSignedLibrary_Vtbl { iid == &::IID } } -pub trait IMFSimpleAudioVolume_Impl: Sized { +pub trait IMFSimpleAudioVolume_Impl: Sized + windows_core::IUnknownImpl { fn SetMasterVolume(&self, flevel: f32) -> windows_core::Result<()>; fn GetMasterVolume(&self) -> windows_core::Result; fn SetMute(&self, bmute: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -16889,21 +12599,12 @@ pub trait IMFSimpleAudioVolume_Impl: Sized { } impl windows_core::RuntimeName for IMFSimpleAudioVolume {} impl IMFSimpleAudioVolume_Vtbl { - pub const fn new() -> IMFSimpleAudioVolume_Vtbl - where - Identity: IMFSimpleAudioVolume_Impl, - { - unsafe extern "system" fn SetMasterVolume(this: *mut core::ffi::c_void, flevel: f32) -> windows_core::HRESULT - where - Identity: IMFSimpleAudioVolume_Impl, - { + pub const fn new() -> IMFSimpleAudioVolume_Vtbl { + unsafe extern "system" fn SetMasterVolume(this: *mut core::ffi::c_void, flevel: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSimpleAudioVolume_Impl::SetMasterVolume(this, core::mem::transmute_copy(&flevel)).into() } - unsafe extern "system" fn GetMasterVolume(this: *mut core::ffi::c_void, pflevel: *mut f32) -> windows_core::HRESULT - where - Identity: IMFSimpleAudioVolume_Impl, - { + unsafe extern "system" fn GetMasterVolume(this: *mut core::ffi::c_void, pflevel: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSimpleAudioVolume_Impl::GetMasterVolume(this) { Ok(ok__) => { @@ -16913,17 +12614,11 @@ impl IMFSimpleAudioVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFSimpleAudioVolume_Impl, - { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSimpleAudioVolume_Impl::SetMute(this, core::mem::transmute_copy(&bmute)).into() } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFSimpleAudioVolume_Impl, - { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSimpleAudioVolume_Impl::GetMute(this) { Ok(ok__) => { @@ -16945,7 +12640,7 @@ impl IMFSimpleAudioVolume_Vtbl { iid == &::IID } } -pub trait IMFSinkWriter_Impl: Sized { +pub trait IMFSinkWriter_Impl: Sized + windows_core::IUnknownImpl { fn AddStream(&self, ptargetmediatype: Option<&IMFMediaType>) -> windows_core::Result; fn SetInputMediaType(&self, dwstreamindex: u32, pinputmediatype: Option<&IMFMediaType>, pencodingparameters: Option<&IMFAttributes>) -> windows_core::Result<()>; fn BeginWriting(&self) -> windows_core::Result<()>; @@ -16960,14 +12655,8 @@ pub trait IMFSinkWriter_Impl: Sized { } impl windows_core::RuntimeName for IMFSinkWriter {} impl IMFSinkWriter_Vtbl { - pub const fn new() -> IMFSinkWriter_Vtbl - where - Identity: IMFSinkWriter_Impl, - { - unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, ptargetmediatype: *mut core::ffi::c_void, pdwstreamindex: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + pub const fn new() -> IMFSinkWriter_Vtbl { + unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, ptargetmediatype: *mut core::ffi::c_void, pdwstreamindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSinkWriter_Impl::AddStream(this, windows_core::from_raw_borrowed(&ptargetmediatype)) { Ok(ok__) => { @@ -16977,73 +12666,43 @@ impl IMFSinkWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, pinputmediatype: *mut core::ffi::c_void, pencodingparameters: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + unsafe extern "system" fn SetInputMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, pinputmediatype: *mut core::ffi::c_void, pencodingparameters: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriter_Impl::SetInputMediaType(this, core::mem::transmute_copy(&dwstreamindex), windows_core::from_raw_borrowed(&pinputmediatype), windows_core::from_raw_borrowed(&pencodingparameters)).into() } - unsafe extern "system" fn BeginWriting(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + unsafe extern "system" fn BeginWriting(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriter_Impl::BeginWriting(this).into() } - unsafe extern "system" fn WriteSample(this: *mut core::ffi::c_void, dwstreamindex: u32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + unsafe extern "system" fn WriteSample(this: *mut core::ffi::c_void, dwstreamindex: u32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriter_Impl::WriteSample(this, core::mem::transmute_copy(&dwstreamindex), windows_core::from_raw_borrowed(&psample)).into() } - unsafe extern "system" fn SendStreamTick(this: *mut core::ffi::c_void, dwstreamindex: u32, lltimestamp: i64) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + unsafe extern "system" fn SendStreamTick(this: *mut core::ffi::c_void, dwstreamindex: u32, lltimestamp: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriter_Impl::SendStreamTick(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&lltimestamp)).into() } - unsafe extern "system" fn PlaceMarker(this: *mut core::ffi::c_void, dwstreamindex: u32, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + unsafe extern "system" fn PlaceMarker(this: *mut core::ffi::c_void, dwstreamindex: u32, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriter_Impl::PlaceMarker(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn NotifyEndOfSegment(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + unsafe extern "system" fn NotifyEndOfSegment(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriter_Impl::NotifyEndOfSegment(this, core::mem::transmute_copy(&dwstreamindex)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriter_Impl::Flush(this, core::mem::transmute_copy(&dwstreamindex)).into() } - unsafe extern "system" fn Finalize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + unsafe extern "system" fn Finalize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriter_Impl::Finalize(this).into() } - unsafe extern "system" fn GetServiceForStream(this: *mut core::ffi::c_void, dwstreamindex: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + unsafe extern "system" fn GetServiceForStream(this: *mut core::ffi::c_void, dwstreamindex: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriter_Impl::GetServiceForStream(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&guidservice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, dwstreamindex: u32, pstats: *mut MF_SINK_WRITER_STATISTICS) -> windows_core::HRESULT - where - Identity: IMFSinkWriter_Impl, - { + unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, dwstreamindex: u32, pstats: *mut MF_SINK_WRITER_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriter_Impl::GetStatistics(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&pstats)).into() } @@ -17066,27 +12725,18 @@ impl IMFSinkWriter_Vtbl { iid == &::IID } } -pub trait IMFSinkWriterCallback_Impl: Sized { +pub trait IMFSinkWriterCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnFinalize(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; fn OnMarker(&self, dwstreamindex: u32, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSinkWriterCallback {} impl IMFSinkWriterCallback_Vtbl { - pub const fn new() -> IMFSinkWriterCallback_Vtbl - where - Identity: IMFSinkWriterCallback_Impl, - { - unsafe extern "system" fn OnFinalize(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMFSinkWriterCallback_Impl, - { + pub const fn new() -> IMFSinkWriterCallback_Vtbl { + unsafe extern "system" fn OnFinalize(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriterCallback_Impl::OnFinalize(this, core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn OnMarker(this: *mut core::ffi::c_void, dwstreamindex: u32, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriterCallback_Impl, - { + unsafe extern "system" fn OnMarker(this: *mut core::ffi::c_void, dwstreamindex: u32, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriterCallback_Impl::OnMarker(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&pvcontext)).into() } @@ -17106,21 +12756,12 @@ pub trait IMFSinkWriterCallback2_Impl: Sized + IMFSinkWriterCallback_Impl { } impl windows_core::RuntimeName for IMFSinkWriterCallback2 {} impl IMFSinkWriterCallback2_Vtbl { - pub const fn new() -> IMFSinkWriterCallback2_Vtbl - where - Identity: IMFSinkWriterCallback2_Impl, - { - unsafe extern "system" fn OnTransformChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriterCallback2_Impl, - { + pub const fn new() -> IMFSinkWriterCallback2_Vtbl { + unsafe extern "system" fn OnTransformChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriterCallback2_Impl::OnTransformChange(this).into() } - unsafe extern "system" fn OnStreamError(this: *mut core::ffi::c_void, dwstreamindex: u32, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMFSinkWriterCallback2_Impl, - { + unsafe extern "system" fn OnStreamError(this: *mut core::ffi::c_void, dwstreamindex: u32, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriterCallback2_Impl::OnStreamError(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&hrstatus)).into() } @@ -17134,27 +12775,18 @@ impl IMFSinkWriterCallback2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFSinkWriterEncoderConfig_Impl: Sized { +pub trait IMFSinkWriterEncoderConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetTargetMediaType(&self, dwstreamindex: u32, ptargetmediatype: Option<&IMFMediaType>, pencodingparameters: Option<&IMFAttributes>) -> windows_core::Result<()>; fn PlaceEncodingParameters(&self, dwstreamindex: u32, pencodingparameters: Option<&IMFAttributes>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSinkWriterEncoderConfig {} impl IMFSinkWriterEncoderConfig_Vtbl { - pub const fn new() -> IMFSinkWriterEncoderConfig_Vtbl - where - Identity: IMFSinkWriterEncoderConfig_Impl, - { - unsafe extern "system" fn SetTargetMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, ptargetmediatype: *mut core::ffi::c_void, pencodingparameters: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriterEncoderConfig_Impl, - { + pub const fn new() -> IMFSinkWriterEncoderConfig_Vtbl { + unsafe extern "system" fn SetTargetMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, ptargetmediatype: *mut core::ffi::c_void, pencodingparameters: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriterEncoderConfig_Impl::SetTargetMediaType(this, core::mem::transmute_copy(&dwstreamindex), windows_core::from_raw_borrowed(&ptargetmediatype), windows_core::from_raw_borrowed(&pencodingparameters)).into() } - unsafe extern "system" fn PlaceEncodingParameters(this: *mut core::ffi::c_void, dwstreamindex: u32, pencodingparameters: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriterEncoderConfig_Impl, - { + unsafe extern "system" fn PlaceEncodingParameters(this: *mut core::ffi::c_void, dwstreamindex: u32, pencodingparameters: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriterEncoderConfig_Impl::PlaceEncodingParameters(this, core::mem::transmute_copy(&dwstreamindex), windows_core::from_raw_borrowed(&pencodingparameters)).into() } @@ -17173,14 +12805,8 @@ pub trait IMFSinkWriterEx_Impl: Sized + IMFSinkWriter_Impl { } impl windows_core::RuntimeName for IMFSinkWriterEx {} impl IMFSinkWriterEx_Vtbl { - pub const fn new() -> IMFSinkWriterEx_Vtbl - where - Identity: IMFSinkWriterEx_Impl, - { - unsafe extern "system" fn GetTransformForStream(this: *mut core::ffi::c_void, dwstreamindex: u32, dwtransformindex: u32, pguidcategory: *mut windows_core::GUID, pptransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSinkWriterEx_Impl, - { + pub const fn new() -> IMFSinkWriterEx_Vtbl { + unsafe extern "system" fn GetTransformForStream(this: *mut core::ffi::c_void, dwstreamindex: u32, dwtransformindex: u32, pguidcategory: *mut windows_core::GUID, pptransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSinkWriterEx_Impl::GetTransformForStream(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&dwtransformindex), core::mem::transmute_copy(&pguidcategory), core::mem::transmute_copy(&pptransform)).into() } @@ -17190,7 +12816,7 @@ impl IMFSinkWriterEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFSourceBuffer_Impl: Sized { +pub trait IMFSourceBuffer_Impl: Sized + windows_core::IUnknownImpl { fn GetUpdating(&self) -> super::super::Foundation::BOOL; fn GetBuffered(&self) -> windows_core::Result; fn GetTimeStampOffset(&self) -> f64; @@ -17206,21 +12832,12 @@ pub trait IMFSourceBuffer_Impl: Sized { } impl windows_core::RuntimeName for IMFSourceBuffer {} impl IMFSourceBuffer_Vtbl { - pub const fn new() -> IMFSourceBuffer_Vtbl - where - Identity: IMFSourceBuffer_Impl, - { - unsafe extern "system" fn GetUpdating(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFSourceBuffer_Impl, - { + pub const fn new() -> IMFSourceBuffer_Vtbl { + unsafe extern "system" fn GetUpdating(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::GetUpdating(this) } - unsafe extern "system" fn GetBuffered(this: *mut core::ffi::c_void, ppbuffered: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn GetBuffered(this: *mut core::ffi::c_void, ppbuffered: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSourceBuffer_Impl::GetBuffered(this) { Ok(ok__) => { @@ -17230,73 +12847,43 @@ impl IMFSourceBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimeStampOffset(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn GetTimeStampOffset(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::GetTimeStampOffset(this) } - unsafe extern "system" fn SetTimeStampOffset(this: *mut core::ffi::c_void, offset: f64) -> windows_core::HRESULT - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn SetTimeStampOffset(this: *mut core::ffi::c_void, offset: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::SetTimeStampOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetAppendWindowStart(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn GetAppendWindowStart(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::GetAppendWindowStart(this) } - unsafe extern "system" fn SetAppendWindowStart(this: *mut core::ffi::c_void, time: f64) -> windows_core::HRESULT - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn SetAppendWindowStart(this: *mut core::ffi::c_void, time: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::SetAppendWindowStart(this, core::mem::transmute_copy(&time)).into() } - unsafe extern "system" fn GetAppendWindowEnd(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn GetAppendWindowEnd(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::GetAppendWindowEnd(this) } - unsafe extern "system" fn SetAppendWindowEnd(this: *mut core::ffi::c_void, time: f64) -> windows_core::HRESULT - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn SetAppendWindowEnd(this: *mut core::ffi::c_void, time: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::SetAppendWindowEnd(this, core::mem::transmute_copy(&time)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, pdata: *const u8, len: u32) -> windows_core::HRESULT - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, pdata: *const u8, len: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::Append(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&len)).into() } - unsafe extern "system" fn AppendByteStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pmaxlen: *const u64) -> windows_core::HRESULT - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn AppendByteStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pmaxlen: *const u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::AppendByteStream(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&pmaxlen)).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::Abort(this).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, start: f64, end: f64) -> windows_core::HRESULT - where - Identity: IMFSourceBuffer_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, start: f64, end: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::Remove(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&end)).into() } @@ -17320,27 +12907,18 @@ impl IMFSourceBuffer_Vtbl { iid == &::IID } } -pub trait IMFSourceBufferAppendMode_Impl: Sized { +pub trait IMFSourceBufferAppendMode_Impl: Sized + windows_core::IUnknownImpl { fn GetAppendMode(&self) -> MF_MSE_APPEND_MODE; fn SetAppendMode(&self, mode: MF_MSE_APPEND_MODE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSourceBufferAppendMode {} impl IMFSourceBufferAppendMode_Vtbl { - pub const fn new() -> IMFSourceBufferAppendMode_Vtbl - where - Identity: IMFSourceBufferAppendMode_Impl, - { - unsafe extern "system" fn GetAppendMode(this: *mut core::ffi::c_void) -> MF_MSE_APPEND_MODE - where - Identity: IMFSourceBufferAppendMode_Impl, - { + pub const fn new() -> IMFSourceBufferAppendMode_Vtbl { + unsafe extern "system" fn GetAppendMode(this: *mut core::ffi::c_void) -> MF_MSE_APPEND_MODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBufferAppendMode_Impl::GetAppendMode(this) } - unsafe extern "system" fn SetAppendMode(this: *mut core::ffi::c_void, mode: MF_MSE_APPEND_MODE) -> windows_core::HRESULT - where - Identity: IMFSourceBufferAppendMode_Impl, - { + unsafe extern "system" fn SetAppendMode(this: *mut core::ffi::c_void, mode: MF_MSE_APPEND_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBufferAppendMode_Impl::SetAppendMode(this, core::mem::transmute_copy(&mode)).into() } @@ -17354,27 +12932,18 @@ impl IMFSourceBufferAppendMode_Vtbl { iid == &::IID } } -pub trait IMFSourceBufferList_Impl: Sized { +pub trait IMFSourceBufferList_Impl: Sized + windows_core::IUnknownImpl { fn GetLength(&self) -> u32; fn GetSourceBuffer(&self, index: u32) -> Option; } impl windows_core::RuntimeName for IMFSourceBufferList {} impl IMFSourceBufferList_Vtbl { - pub const fn new() -> IMFSourceBufferList_Vtbl - where - Identity: IMFSourceBufferList_Impl, - { - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFSourceBufferList_Impl, - { + pub const fn new() -> IMFSourceBufferList_Vtbl { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBufferList_Impl::GetLength(this) } - unsafe extern "system" fn GetSourceBuffer(this: *mut core::ffi::c_void, index: u32) -> Option - where - Identity: IMFSourceBufferList_Impl, - { + unsafe extern "system" fn GetSourceBuffer(this: *mut core::ffi::c_void, index: u32) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBufferList_Impl::GetSourceBuffer(this, core::mem::transmute_copy(&index)) } @@ -17388,7 +12957,7 @@ impl IMFSourceBufferList_Vtbl { iid == &::IID } } -pub trait IMFSourceBufferNotify_Impl: Sized { +pub trait IMFSourceBufferNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnUpdateStart(&self); fn OnAbort(&self); fn OnError(&self, hr: windows_core::HRESULT); @@ -17397,42 +12966,24 @@ pub trait IMFSourceBufferNotify_Impl: Sized { } impl windows_core::RuntimeName for IMFSourceBufferNotify {} impl IMFSourceBufferNotify_Vtbl { - pub const fn new() -> IMFSourceBufferNotify_Vtbl - where - Identity: IMFSourceBufferNotify_Impl, - { - unsafe extern "system" fn OnUpdateStart(this: *mut core::ffi::c_void) - where - Identity: IMFSourceBufferNotify_Impl, - { + pub const fn new() -> IMFSourceBufferNotify_Vtbl { + unsafe extern "system" fn OnUpdateStart(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBufferNotify_Impl::OnUpdateStart(this) } - unsafe extern "system" fn OnAbort(this: *mut core::ffi::c_void) - where - Identity: IMFSourceBufferNotify_Impl, - { + unsafe extern "system" fn OnAbort(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBufferNotify_Impl::OnAbort(this) } - unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) - where - Identity: IMFSourceBufferNotify_Impl, - { + unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBufferNotify_Impl::OnError(this, core::mem::transmute_copy(&hr)) } - unsafe extern "system" fn OnUpdate(this: *mut core::ffi::c_void) - where - Identity: IMFSourceBufferNotify_Impl, - { + unsafe extern "system" fn OnUpdate(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBufferNotify_Impl::OnUpdate(this) } - unsafe extern "system" fn OnUpdateEnd(this: *mut core::ffi::c_void) - where - Identity: IMFSourceBufferNotify_Impl, - { + unsafe extern "system" fn OnUpdateEnd(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBufferNotify_Impl::OnUpdateEnd(this) } @@ -17449,19 +13000,13 @@ impl IMFSourceBufferNotify_Vtbl { iid == &::IID } } -pub trait IMFSourceOpenMonitor_Impl: Sized { +pub trait IMFSourceOpenMonitor_Impl: Sized + windows_core::IUnknownImpl { fn OnSourceEvent(&self, pevent: Option<&IMFMediaEvent>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSourceOpenMonitor {} impl IMFSourceOpenMonitor_Vtbl { - pub const fn new() -> IMFSourceOpenMonitor_Vtbl - where - Identity: IMFSourceOpenMonitor_Impl, - { - unsafe extern "system" fn OnSourceEvent(this: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceOpenMonitor_Impl, - { + pub const fn new() -> IMFSourceOpenMonitor_Vtbl { + unsafe extern "system" fn OnSourceEvent(this: *mut core::ffi::c_void, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceOpenMonitor_Impl::OnSourceEvent(this, windows_core::from_raw_borrowed(&pevent)).into() } @@ -17471,7 +13016,7 @@ impl IMFSourceOpenMonitor_Vtbl { iid == &::IID } } -pub trait IMFSourceReader_Impl: Sized { +pub trait IMFSourceReader_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result; fn SetStreamSelection(&self, dwstreamindex: u32, fselected: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetNativeMediaType(&self, dwstreamindex: u32, dwmediatypeindex: u32) -> windows_core::Result; @@ -17485,14 +13030,8 @@ pub trait IMFSourceReader_Impl: Sized { } impl windows_core::RuntimeName for IMFSourceReader {} impl IMFSourceReader_Vtbl { - pub const fn new() -> IMFSourceReader_Vtbl - where - Identity: IMFSourceReader_Impl, - { - unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFSourceReader_Impl, - { + pub const fn new() -> IMFSourceReader_Vtbl { + unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSourceReader_Impl::GetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex)) { Ok(ok__) => { @@ -17502,17 +13041,11 @@ impl IMFSourceReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, fselected: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFSourceReader_Impl, - { + unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, fselected: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReader_Impl::SetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&fselected)).into() } - unsafe extern "system" fn GetNativeMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, dwmediatypeindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceReader_Impl, - { + unsafe extern "system" fn GetNativeMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, dwmediatypeindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSourceReader_Impl::GetNativeMediaType(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&dwmediatypeindex)) { Ok(ok__) => { @@ -17522,10 +13055,7 @@ impl IMFSourceReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceReader_Impl, - { + unsafe extern "system" fn GetCurrentMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSourceReader_Impl::GetCurrentMediaType(this, core::mem::transmute_copy(&dwstreamindex)) { Ok(ok__) => { @@ -17535,45 +13065,27 @@ impl IMFSourceReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, pdwreserved: *const u32, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceReader_Impl, - { + unsafe extern "system" fn SetCurrentMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, pdwreserved: *const u32, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReader_Impl::SetCurrentMediaType(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&pdwreserved), windows_core::from_raw_borrowed(&pmediatype)).into() } - unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, guidtimeformat: *const windows_core::GUID, varposition: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFSourceReader_Impl, - { + unsafe extern "system" fn SetCurrentPosition(this: *mut core::ffi::c_void, guidtimeformat: *const windows_core::GUID, varposition: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReader_Impl::SetCurrentPosition(this, core::mem::transmute_copy(&guidtimeformat), core::mem::transmute_copy(&varposition)).into() } - unsafe extern "system" fn ReadSample(this: *mut core::ffi::c_void, dwstreamindex: u32, dwcontrolflags: u32, pdwactualstreamindex: *mut u32, pdwstreamflags: *mut u32, plltimestamp: *mut i64, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceReader_Impl, - { + unsafe extern "system" fn ReadSample(this: *mut core::ffi::c_void, dwstreamindex: u32, dwcontrolflags: u32, pdwactualstreamindex: *mut u32, pdwstreamflags: *mut u32, plltimestamp: *mut i64, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReader_Impl::ReadSample(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&dwcontrolflags), core::mem::transmute_copy(&pdwactualstreamindex), core::mem::transmute_copy(&pdwstreamflags), core::mem::transmute_copy(&plltimestamp), core::mem::transmute_copy(&ppsample)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT - where - Identity: IMFSourceReader_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReader_Impl::Flush(this, core::mem::transmute_copy(&dwstreamindex)).into() } - unsafe extern "system" fn GetServiceForStream(this: *mut core::ffi::c_void, dwstreamindex: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceReader_Impl, - { + unsafe extern "system" fn GetServiceForStream(this: *mut core::ffi::c_void, dwstreamindex: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReader_Impl::GetServiceForStream(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&guidservice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn GetPresentationAttribute(this: *mut core::ffi::c_void, dwstreamindex: u32, guidattribute: *const windows_core::GUID, pvarattribute: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFSourceReader_Impl, - { + unsafe extern "system" fn GetPresentationAttribute(this: *mut core::ffi::c_void, dwstreamindex: u32, guidattribute: *const windows_core::GUID, pvarattribute: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSourceReader_Impl::GetPresentationAttribute(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&guidattribute)) { Ok(ok__) => { @@ -17601,35 +13113,23 @@ impl IMFSourceReader_Vtbl { iid == &::IID } } -pub trait IMFSourceReaderCallback_Impl: Sized { +pub trait IMFSourceReaderCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnReadSample(&self, hrstatus: windows_core::HRESULT, dwstreamindex: u32, dwstreamflags: u32, lltimestamp: i64, psample: Option<&IMFSample>) -> windows_core::Result<()>; fn OnFlush(&self, dwstreamindex: u32) -> windows_core::Result<()>; fn OnEvent(&self, dwstreamindex: u32, pevent: Option<&IMFMediaEvent>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSourceReaderCallback {} impl IMFSourceReaderCallback_Vtbl { - pub const fn new() -> IMFSourceReaderCallback_Vtbl - where - Identity: IMFSourceReaderCallback_Impl, - { - unsafe extern "system" fn OnReadSample(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, dwstreamindex: u32, dwstreamflags: u32, lltimestamp: i64, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceReaderCallback_Impl, - { + pub const fn new() -> IMFSourceReaderCallback_Vtbl { + unsafe extern "system" fn OnReadSample(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, dwstreamindex: u32, dwstreamflags: u32, lltimestamp: i64, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReaderCallback_Impl::OnReadSample(this, core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&dwstreamflags), core::mem::transmute_copy(&lltimestamp), windows_core::from_raw_borrowed(&psample)).into() } - unsafe extern "system" fn OnFlush(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT - where - Identity: IMFSourceReaderCallback_Impl, - { + unsafe extern "system" fn OnFlush(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReaderCallback_Impl::OnFlush(this, core::mem::transmute_copy(&dwstreamindex)).into() } - unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, dwstreamindex: u32, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceReaderCallback_Impl, - { + unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, dwstreamindex: u32, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReaderCallback_Impl::OnEvent(this, core::mem::transmute_copy(&dwstreamindex), windows_core::from_raw_borrowed(&pevent)).into() } @@ -17650,21 +13150,12 @@ pub trait IMFSourceReaderCallback2_Impl: Sized + IMFSourceReaderCallback_Impl { } impl windows_core::RuntimeName for IMFSourceReaderCallback2 {} impl IMFSourceReaderCallback2_Vtbl { - pub const fn new() -> IMFSourceReaderCallback2_Vtbl - where - Identity: IMFSourceReaderCallback2_Impl, - { - unsafe extern "system" fn OnTransformChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceReaderCallback2_Impl, - { + pub const fn new() -> IMFSourceReaderCallback2_Vtbl { + unsafe extern "system" fn OnTransformChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReaderCallback2_Impl::OnTransformChange(this).into() } - unsafe extern "system" fn OnStreamError(this: *mut core::ffi::c_void, dwstreamindex: u32, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMFSourceReaderCallback2_Impl, - { + unsafe extern "system" fn OnStreamError(this: *mut core::ffi::c_void, dwstreamindex: u32, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReaderCallback2_Impl::OnStreamError(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&hrstatus)).into() } @@ -17686,14 +13177,8 @@ pub trait IMFSourceReaderEx_Impl: Sized + IMFSourceReader_Impl { } impl windows_core::RuntimeName for IMFSourceReaderEx {} impl IMFSourceReaderEx_Vtbl { - pub const fn new() -> IMFSourceReaderEx_Vtbl - where - Identity: IMFSourceReaderEx_Impl, - { - unsafe extern "system" fn SetNativeMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, pmediatype: *mut core::ffi::c_void, pdwstreamflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSourceReaderEx_Impl, - { + pub const fn new() -> IMFSourceReaderEx_Vtbl { + unsafe extern "system" fn SetNativeMediaType(this: *mut core::ffi::c_void, dwstreamindex: u32, pmediatype: *mut core::ffi::c_void, pdwstreamflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSourceReaderEx_Impl::SetNativeMediaType(this, core::mem::transmute_copy(&dwstreamindex), windows_core::from_raw_borrowed(&pmediatype)) { Ok(ok__) => { @@ -17703,24 +13188,15 @@ impl IMFSourceReaderEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTransformForStream(this: *mut core::ffi::c_void, dwstreamindex: u32, ptransformoractivate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceReaderEx_Impl, - { + unsafe extern "system" fn AddTransformForStream(this: *mut core::ffi::c_void, dwstreamindex: u32, ptransformoractivate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReaderEx_Impl::AddTransformForStream(this, core::mem::transmute_copy(&dwstreamindex), windows_core::from_raw_borrowed(&ptransformoractivate)).into() } - unsafe extern "system" fn RemoveAllTransformsForStream(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT - where - Identity: IMFSourceReaderEx_Impl, - { + unsafe extern "system" fn RemoveAllTransformsForStream(this: *mut core::ffi::c_void, dwstreamindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReaderEx_Impl::RemoveAllTransformsForStream(this, core::mem::transmute_copy(&dwstreamindex)).into() } - unsafe extern "system" fn GetTransformForStream(this: *mut core::ffi::c_void, dwstreamindex: u32, dwtransformindex: u32, pguidcategory: *mut windows_core::GUID, pptransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceReaderEx_Impl, - { + unsafe extern "system" fn GetTransformForStream(this: *mut core::ffi::c_void, dwstreamindex: u32, dwtransformindex: u32, pguidcategory: *mut windows_core::GUID, pptransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReaderEx_Impl::GetTransformForStream(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&dwtransformindex), core::mem::transmute_copy(&pguidcategory), core::mem::transmute_copy(&pptransform)).into() } @@ -17737,7 +13213,7 @@ impl IMFSourceReaderEx_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IMFSourceResolver_Impl: Sized { +pub trait IMFSourceResolver_Impl: Sized + windows_core::IUnknownImpl { fn CreateObjectFromURL(&self, pwszurl: &windows_core::PCWSTR, dwflags: u32, pprops: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()>; fn CreateObjectFromByteStream(&self, pbytestream: Option<&IMFByteStream>, pwszurl: &windows_core::PCWSTR, dwflags: u32, pprops: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut Option) -> windows_core::Result<()>; fn BeginCreateObjectFromURL(&self, pwszurl: &windows_core::PCWSTR, dwflags: u32, pprops: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>, ppiunknowncancelcookie: *mut Option, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -17750,56 +13226,32 @@ pub trait IMFSourceResolver_Impl: Sized { impl windows_core::RuntimeName for IMFSourceResolver {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFSourceResolver_Vtbl { - pub const fn new() -> IMFSourceResolver_Vtbl - where - Identity: IMFSourceResolver_Impl, - { - unsafe extern "system" fn CreateObjectFromURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceResolver_Impl, - { + pub const fn new() -> IMFSourceResolver_Vtbl { + unsafe extern "system" fn CreateObjectFromURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceResolver_Impl::CreateObjectFromURL(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pprops), core::mem::transmute_copy(&pobjecttype), core::mem::transmute_copy(&ppobject)).into() } - unsafe extern "system" fn CreateObjectFromByteStream(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceResolver_Impl, - { + unsafe extern "system" fn CreateObjectFromByteStream(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceResolver_Impl::CreateObjectFromByteStream(this, windows_core::from_raw_borrowed(&pbytestream), core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pprops), core::mem::transmute_copy(&pobjecttype), core::mem::transmute_copy(&ppobject)).into() } - unsafe extern "system" fn BeginCreateObjectFromURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, ppiunknowncancelcookie: *mut *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceResolver_Impl, - { + unsafe extern "system" fn BeginCreateObjectFromURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, ppiunknowncancelcookie: *mut *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceResolver_Impl::BeginCreateObjectFromURL(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pprops), core::mem::transmute_copy(&ppiunknowncancelcookie), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndCreateObjectFromURL(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceResolver_Impl, - { + unsafe extern "system" fn EndCreateObjectFromURL(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceResolver_Impl::EndCreateObjectFromURL(this, windows_core::from_raw_borrowed(&presult), core::mem::transmute_copy(&pobjecttype), core::mem::transmute_copy(&ppobject)).into() } - unsafe extern "system" fn BeginCreateObjectFromByteStream(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, ppiunknowncancelcookie: *mut *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceResolver_Impl, - { + unsafe extern "system" fn BeginCreateObjectFromByteStream(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwflags: u32, pprops: *mut core::ffi::c_void, ppiunknowncancelcookie: *mut *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceResolver_Impl::BeginCreateObjectFromByteStream(this, windows_core::from_raw_borrowed(&pbytestream), core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pprops), core::mem::transmute_copy(&ppiunknowncancelcookie), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndCreateObjectFromByteStream(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceResolver_Impl, - { + unsafe extern "system" fn EndCreateObjectFromByteStream(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceResolver_Impl::EndCreateObjectFromByteStream(this, windows_core::from_raw_borrowed(&presult), core::mem::transmute_copy(&pobjecttype), core::mem::transmute_copy(&ppobject)).into() } - unsafe extern "system" fn CancelObjectCreation(this: *mut core::ffi::c_void, piunknowncancelcookie: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSourceResolver_Impl, - { + unsafe extern "system" fn CancelObjectCreation(this: *mut core::ffi::c_void, piunknowncancelcookie: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceResolver_Impl::CancelObjectCreation(this, windows_core::from_raw_borrowed(&piunknowncancelcookie)).into() } @@ -17830,21 +13282,12 @@ pub trait IMFSpatialAudioObjectBuffer_Impl: Sized + IMFMediaBuffer_Impl { impl windows_core::RuntimeName for IMFSpatialAudioObjectBuffer {} #[cfg(feature = "Win32_Media_Audio")] impl IMFSpatialAudioObjectBuffer_Vtbl { - pub const fn new() -> IMFSpatialAudioObjectBuffer_Vtbl - where - Identity: IMFSpatialAudioObjectBuffer_Impl, - { - unsafe extern "system" fn SetID(this: *mut core::ffi::c_void, u32id: u32) -> windows_core::HRESULT - where - Identity: IMFSpatialAudioObjectBuffer_Impl, - { + pub const fn new() -> IMFSpatialAudioObjectBuffer_Vtbl { + unsafe extern "system" fn SetID(this: *mut core::ffi::c_void, u32id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSpatialAudioObjectBuffer_Impl::SetID(this, core::mem::transmute_copy(&u32id)).into() } - unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pu32id: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSpatialAudioObjectBuffer_Impl, - { + unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pu32id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSpatialAudioObjectBuffer_Impl::GetID(this) { Ok(ok__) => { @@ -17854,17 +13297,11 @@ impl IMFSpatialAudioObjectBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, r#type: super::Audio::AudioObjectType) -> windows_core::HRESULT - where - Identity: IMFSpatialAudioObjectBuffer_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, r#type: super::Audio::AudioObjectType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSpatialAudioObjectBuffer_Impl::SetType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut super::Audio::AudioObjectType) -> windows_core::HRESULT - where - Identity: IMFSpatialAudioObjectBuffer_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut super::Audio::AudioObjectType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSpatialAudioObjectBuffer_Impl::GetType(this) { Ok(ok__) => { @@ -17874,10 +13311,7 @@ impl IMFSpatialAudioObjectBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMetadataItems(this: *mut core::ffi::c_void, ppmetadataitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSpatialAudioObjectBuffer_Impl, - { + unsafe extern "system" fn GetMetadataItems(this: *mut core::ffi::c_void, ppmetadataitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSpatialAudioObjectBuffer_Impl::GetMetadataItems(this) { Ok(ok__) => { @@ -17907,14 +13341,8 @@ pub trait IMFSpatialAudioSample_Impl: Sized + IMFSample_Impl { } impl windows_core::RuntimeName for IMFSpatialAudioSample {} impl IMFSpatialAudioSample_Vtbl { - pub const fn new() -> IMFSpatialAudioSample_Vtbl - where - Identity: IMFSpatialAudioSample_Impl, - { - unsafe extern "system" fn GetObjectCount(this: *mut core::ffi::c_void, pdwobjectcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMFSpatialAudioSample_Impl, - { + pub const fn new() -> IMFSpatialAudioSample_Vtbl { + unsafe extern "system" fn GetObjectCount(this: *mut core::ffi::c_void, pdwobjectcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSpatialAudioSample_Impl::GetObjectCount(this) { Ok(ok__) => { @@ -17924,17 +13352,11 @@ impl IMFSpatialAudioSample_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSpatialAudioObject(this: *mut core::ffi::c_void, paudioobjbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSpatialAudioSample_Impl, - { + unsafe extern "system" fn AddSpatialAudioObject(this: *mut core::ffi::c_void, paudioobjbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSpatialAudioSample_Impl::AddSpatialAudioObject(this, windows_core::from_raw_borrowed(&paudioobjbuffer)).into() } - unsafe extern "system" fn GetSpatialAudioObjectByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppaudioobjbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFSpatialAudioSample_Impl, - { + unsafe extern "system" fn GetSpatialAudioObjectByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppaudioobjbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSpatialAudioSample_Impl::GetSpatialAudioObjectByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -17961,14 +13383,8 @@ pub trait IMFStreamDescriptor_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFStreamDescriptor {} impl IMFStreamDescriptor_Vtbl { - pub const fn new() -> IMFStreamDescriptor_Vtbl - where - Identity: IMFStreamDescriptor_Impl, - { - unsafe extern "system" fn GetStreamIdentifier(this: *mut core::ffi::c_void, pdwstreamidentifier: *mut u32) -> windows_core::HRESULT - where - Identity: IMFStreamDescriptor_Impl, - { + pub const fn new() -> IMFStreamDescriptor_Vtbl { + unsafe extern "system" fn GetStreamIdentifier(this: *mut core::ffi::c_void, pdwstreamidentifier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFStreamDescriptor_Impl::GetStreamIdentifier(this) { Ok(ok__) => { @@ -17978,10 +13394,7 @@ impl IMFStreamDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMediaTypeHandler(this: *mut core::ffi::c_void, ppmediatypehandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFStreamDescriptor_Impl, - { + unsafe extern "system" fn GetMediaTypeHandler(this: *mut core::ffi::c_void, ppmediatypehandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFStreamDescriptor_Impl::GetMediaTypeHandler(this) { Ok(ok__) => { @@ -18011,14 +13424,8 @@ pub trait IMFStreamSink_Impl: Sized + IMFMediaEventGenerator_Impl { } impl windows_core::RuntimeName for IMFStreamSink {} impl IMFStreamSink_Vtbl { - pub const fn new() -> IMFStreamSink_Vtbl - where - Identity: IMFStreamSink_Impl, - { - unsafe extern "system" fn GetMediaSink(this: *mut core::ffi::c_void, ppmediasink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFStreamSink_Impl, - { + pub const fn new() -> IMFStreamSink_Vtbl { + unsafe extern "system" fn GetMediaSink(this: *mut core::ffi::c_void, ppmediasink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFStreamSink_Impl::GetMediaSink(this) { Ok(ok__) => { @@ -18028,10 +13435,7 @@ impl IMFStreamSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, pdwidentifier: *mut u32) -> windows_core::HRESULT - where - Identity: IMFStreamSink_Impl, - { + unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, pdwidentifier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFStreamSink_Impl::GetIdentifier(this) { Ok(ok__) => { @@ -18041,10 +13445,7 @@ impl IMFStreamSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMediaTypeHandler(this: *mut core::ffi::c_void, pphandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFStreamSink_Impl, - { + unsafe extern "system" fn GetMediaTypeHandler(this: *mut core::ffi::c_void, pphandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFStreamSink_Impl::GetMediaTypeHandler(this) { Ok(ok__) => { @@ -18054,24 +13455,15 @@ impl IMFStreamSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessSample(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFStreamSink_Impl, - { + unsafe extern "system" fn ProcessSample(this: *mut core::ffi::c_void, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFStreamSink_Impl::ProcessSample(this, windows_core::from_raw_borrowed(&psample)).into() } - unsafe extern "system" fn PlaceMarker(this: *mut core::ffi::c_void, emarkertype: MFSTREAMSINK_MARKER_TYPE, pvarmarkervalue: *const core::mem::MaybeUninit, pvarcontextvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFStreamSink_Impl, - { + unsafe extern "system" fn PlaceMarker(this: *mut core::ffi::c_void, emarkertype: MFSTREAMSINK_MARKER_TYPE, pvarmarkervalue: *const core::mem::MaybeUninit, pvarcontextvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFStreamSink_Impl::PlaceMarker(this, core::mem::transmute_copy(&emarkertype), core::mem::transmute_copy(&pvarmarkervalue), core::mem::transmute_copy(&pvarcontextvalue)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFStreamSink_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFStreamSink_Impl::Flush(this).into() } @@ -18089,19 +13481,13 @@ impl IMFStreamSink_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFStreamingSinkConfig_Impl: Sized { +pub trait IMFStreamingSinkConfig_Impl: Sized + windows_core::IUnknownImpl { fn StartStreaming(&self, fseekoffsetisbyteoffset: super::super::Foundation::BOOL, qwseekoffset: u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFStreamingSinkConfig {} impl IMFStreamingSinkConfig_Vtbl { - pub const fn new() -> IMFStreamingSinkConfig_Vtbl - where - Identity: IMFStreamingSinkConfig_Impl, - { - unsafe extern "system" fn StartStreaming(this: *mut core::ffi::c_void, fseekoffsetisbyteoffset: super::super::Foundation::BOOL, qwseekoffset: u64) -> windows_core::HRESULT - where - Identity: IMFStreamingSinkConfig_Impl, - { + pub const fn new() -> IMFStreamingSinkConfig_Vtbl { + unsafe extern "system" fn StartStreaming(this: *mut core::ffi::c_void, fseekoffsetisbyteoffset: super::super::Foundation::BOOL, qwseekoffset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFStreamingSinkConfig_Impl::StartStreaming(this, core::mem::transmute_copy(&fseekoffsetisbyteoffset), core::mem::transmute_copy(&qwseekoffset)).into() } @@ -18111,27 +13497,18 @@ impl IMFStreamingSinkConfig_Vtbl { iid == &::IID } } -pub trait IMFSystemId_Impl: Sized { +pub trait IMFSystemId_Impl: Sized + windows_core::IUnknownImpl { fn GetData(&self, size: *mut u32, data: *mut *mut u8) -> windows_core::Result<()>; fn Setup(&self, stage: u32, cbin: u32, pbin: *const u8, pcbout: *mut u32, ppbout: *mut *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFSystemId {} impl IMFSystemId_Vtbl { - pub const fn new() -> IMFSystemId_Vtbl - where - Identity: IMFSystemId_Impl, - { - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, size: *mut u32, data: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IMFSystemId_Impl, - { + pub const fn new() -> IMFSystemId_Vtbl { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, size: *mut u32, data: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSystemId_Impl::GetData(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(&data)).into() } - unsafe extern "system" fn Setup(this: *mut core::ffi::c_void, stage: u32, cbin: u32, pbin: *const u8, pcbout: *mut u32, ppbout: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IMFSystemId_Impl, - { + unsafe extern "system" fn Setup(this: *mut core::ffi::c_void, stage: u32, cbin: u32, pbin: *const u8, pcbout: *mut u32, ppbout: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSystemId_Impl::Setup(this, core::mem::transmute_copy(&stage), core::mem::transmute_copy(&cbin), core::mem::transmute_copy(&pbin), core::mem::transmute_copy(&pcbout), core::mem::transmute_copy(&ppbout)).into() } @@ -18141,7 +13518,7 @@ impl IMFSystemId_Vtbl { iid == &::IID } } -pub trait IMFTimecodeTranslate_Impl: Sized { +pub trait IMFTimecodeTranslate_Impl: Sized + windows_core::IUnknownImpl { fn BeginConvertTimecodeToHNS(&self, ppropvartimecode: *const windows_core::PROPVARIANT, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndConvertTimecodeToHNS(&self, presult: Option<&IMFAsyncResult>) -> windows_core::Result; fn BeginConvertHNSToTimecode(&self, hnstime: i64, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -18149,21 +13526,12 @@ pub trait IMFTimecodeTranslate_Impl: Sized { } impl windows_core::RuntimeName for IMFTimecodeTranslate {} impl IMFTimecodeTranslate_Vtbl { - pub const fn new() -> IMFTimecodeTranslate_Vtbl - where - Identity: IMFTimecodeTranslate_Impl, - { - unsafe extern "system" fn BeginConvertTimecodeToHNS(this: *mut core::ffi::c_void, ppropvartimecode: *const core::mem::MaybeUninit, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimecodeTranslate_Impl, - { + pub const fn new() -> IMFTimecodeTranslate_Vtbl { + unsafe extern "system" fn BeginConvertTimecodeToHNS(this: *mut core::ffi::c_void, ppropvartimecode: *const core::mem::MaybeUninit, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimecodeTranslate_Impl::BeginConvertTimecodeToHNS(this, core::mem::transmute_copy(&ppropvartimecode), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndConvertTimecodeToHNS(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, phnstime: *mut i64) -> windows_core::HRESULT - where - Identity: IMFTimecodeTranslate_Impl, - { + unsafe extern "system" fn EndConvertTimecodeToHNS(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, phnstime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimecodeTranslate_Impl::EndConvertTimecodeToHNS(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -18173,17 +13541,11 @@ impl IMFTimecodeTranslate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginConvertHNSToTimecode(this: *mut core::ffi::c_void, hnstime: i64, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimecodeTranslate_Impl, - { + unsafe extern "system" fn BeginConvertHNSToTimecode(this: *mut core::ffi::c_void, hnstime: i64, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimecodeTranslate_Impl::BeginConvertHNSToTimecode(this, core::mem::transmute_copy(&hnstime), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)).into() } - unsafe extern "system" fn EndConvertHNSToTimecode(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppropvartimecode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMFTimecodeTranslate_Impl, - { + unsafe extern "system" fn EndConvertHNSToTimecode(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, ppropvartimecode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimecodeTranslate_Impl::EndConvertHNSToTimecode(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -18205,7 +13567,7 @@ impl IMFTimecodeTranslate_Vtbl { iid == &::IID } } -pub trait IMFTimedText_Impl: Sized { +pub trait IMFTimedText_Impl: Sized + windows_core::IUnknownImpl { fn RegisterNotifications(&self, notify: Option<&IMFTimedTextNotify>) -> windows_core::Result<()>; fn SelectTrack(&self, trackid: u32, selected: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn AddDataSource(&self, bytestream: Option<&IMFByteStream>, label: &windows_core::PCWSTR, language: &windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: super::super::Foundation::BOOL) -> windows_core::Result; @@ -18223,28 +13585,16 @@ pub trait IMFTimedText_Impl: Sized { } impl windows_core::RuntimeName for IMFTimedText {} impl IMFTimedText_Vtbl { - pub const fn new() -> IMFTimedText_Vtbl - where - Identity: IMFTimedText_Impl, - { - unsafe extern "system" fn RegisterNotifications(this: *mut core::ffi::c_void, notify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + pub const fn new() -> IMFTimedText_Vtbl { + unsafe extern "system" fn RegisterNotifications(this: *mut core::ffi::c_void, notify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedText_Impl::RegisterNotifications(this, windows_core::from_raw_borrowed(¬ify)).into() } - unsafe extern "system" fn SelectTrack(this: *mut core::ffi::c_void, trackid: u32, selected: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn SelectTrack(this: *mut core::ffi::c_void, trackid: u32, selected: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedText_Impl::SelectTrack(this, core::mem::transmute_copy(&trackid), core::mem::transmute_copy(&selected)).into() } - unsafe extern "system" fn AddDataSource(this: *mut core::ffi::c_void, bytestream: *mut core::ffi::c_void, label: windows_core::PCWSTR, language: windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: super::super::Foundation::BOOL, trackid: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn AddDataSource(this: *mut core::ffi::c_void, bytestream: *mut core::ffi::c_void, label: windows_core::PCWSTR, language: windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: super::super::Foundation::BOOL, trackid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedText_Impl::AddDataSource(this, windows_core::from_raw_borrowed(&bytestream), core::mem::transmute(&label), core::mem::transmute(&language), core::mem::transmute_copy(&kind), core::mem::transmute_copy(&isdefault)) { Ok(ok__) => { @@ -18254,10 +13604,7 @@ impl IMFTimedText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddDataSourceFromUrl(this: *mut core::ffi::c_void, url: windows_core::PCWSTR, label: windows_core::PCWSTR, language: windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: super::super::Foundation::BOOL, trackid: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn AddDataSourceFromUrl(this: *mut core::ffi::c_void, url: windows_core::PCWSTR, label: windows_core::PCWSTR, language: windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: super::super::Foundation::BOOL, trackid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedText_Impl::AddDataSourceFromUrl(this, core::mem::transmute(&url), core::mem::transmute(&label), core::mem::transmute(&language), core::mem::transmute_copy(&kind), core::mem::transmute_copy(&isdefault)) { Ok(ok__) => { @@ -18267,10 +13614,7 @@ impl IMFTimedText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTrack(this: *mut core::ffi::c_void, label: windows_core::PCWSTR, language: windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, track: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn AddTrack(this: *mut core::ffi::c_void, label: windows_core::PCWSTR, language: windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, track: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedText_Impl::AddTrack(this, core::mem::transmute(&label), core::mem::transmute(&language), core::mem::transmute_copy(&kind)) { Ok(ok__) => { @@ -18280,17 +13624,11 @@ impl IMFTimedText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveTrack(this: *mut core::ffi::c_void, track: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn RemoveTrack(this: *mut core::ffi::c_void, track: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedText_Impl::RemoveTrack(this, windows_core::from_raw_borrowed(&track)).into() } - unsafe extern "system" fn GetCueTimeOffset(this: *mut core::ffi::c_void, offset: *mut f64) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn GetCueTimeOffset(this: *mut core::ffi::c_void, offset: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedText_Impl::GetCueTimeOffset(this) { Ok(ok__) => { @@ -18300,17 +13638,11 @@ impl IMFTimedText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCueTimeOffset(this: *mut core::ffi::c_void, offset: f64) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn SetCueTimeOffset(this: *mut core::ffi::c_void, offset: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedText_Impl::SetCueTimeOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetTracks(this: *mut core::ffi::c_void, tracks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn GetTracks(this: *mut core::ffi::c_void, tracks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedText_Impl::GetTracks(this) { Ok(ok__) => { @@ -18320,10 +13652,7 @@ impl IMFTimedText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActiveTracks(this: *mut core::ffi::c_void, activetracks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn GetActiveTracks(this: *mut core::ffi::c_void, activetracks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedText_Impl::GetActiveTracks(this) { Ok(ok__) => { @@ -18333,10 +13662,7 @@ impl IMFTimedText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextTracks(this: *mut core::ffi::c_void, texttracks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn GetTextTracks(this: *mut core::ffi::c_void, texttracks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedText_Impl::GetTextTracks(this) { Ok(ok__) => { @@ -18346,10 +13672,7 @@ impl IMFTimedText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMetadataTracks(this: *mut core::ffi::c_void, metadatatracks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn GetMetadataTracks(this: *mut core::ffi::c_void, metadatatracks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedText_Impl::GetMetadataTracks(this) { Ok(ok__) => { @@ -18359,17 +13682,11 @@ impl IMFTimedText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInBandEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn SetInBandEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedText_Impl::SetInBandEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn IsInBandEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFTimedText_Impl, - { + unsafe extern "system" fn IsInBandEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedText_Impl::IsInBandEnabled(this) } @@ -18395,19 +13712,13 @@ impl IMFTimedText_Vtbl { iid == &::IID } } -pub trait IMFTimedTextBinary_Impl: Sized { +pub trait IMFTimedTextBinary_Impl: Sized + windows_core::IUnknownImpl { fn GetData(&self, data: *mut *mut u8, length: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFTimedTextBinary {} impl IMFTimedTextBinary_Vtbl { - pub const fn new() -> IMFTimedTextBinary_Vtbl - where - Identity: IMFTimedTextBinary_Impl, - { - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, data: *mut *mut u8, length: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTimedTextBinary_Impl, - { + pub const fn new() -> IMFTimedTextBinary_Vtbl { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, data: *mut *mut u8, length: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextBinary_Impl::GetData(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&length)).into() } @@ -18417,21 +13728,15 @@ impl IMFTimedTextBinary_Vtbl { iid == &::IID } } -pub trait IMFTimedTextBouten_Impl: Sized { +pub trait IMFTimedTextBouten_Impl: Sized + windows_core::IUnknownImpl { fn GetBoutenType(&self) -> windows_core::Result; fn GetBoutenColor(&self) -> windows_core::Result; fn GetBoutenPosition(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFTimedTextBouten {} impl IMFTimedTextBouten_Vtbl { - pub const fn new() -> IMFTimedTextBouten_Vtbl - where - Identity: IMFTimedTextBouten_Impl, - { - unsafe extern "system" fn GetBoutenType(this: *mut core::ffi::c_void, value: *mut MF_TIMED_TEXT_BOUTEN_TYPE) -> windows_core::HRESULT - where - Identity: IMFTimedTextBouten_Impl, - { + pub const fn new() -> IMFTimedTextBouten_Vtbl { + unsafe extern "system" fn GetBoutenType(this: *mut core::ffi::c_void, value: *mut MF_TIMED_TEXT_BOUTEN_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextBouten_Impl::GetBoutenType(this) { Ok(ok__) => { @@ -18441,10 +13746,7 @@ impl IMFTimedTextBouten_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBoutenColor(this: *mut core::ffi::c_void, value: *mut MFARGB) -> windows_core::HRESULT - where - Identity: IMFTimedTextBouten_Impl, - { + unsafe extern "system" fn GetBoutenColor(this: *mut core::ffi::c_void, value: *mut MFARGB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextBouten_Impl::GetBoutenColor(this) { Ok(ok__) => { @@ -18454,10 +13756,7 @@ impl IMFTimedTextBouten_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBoutenPosition(this: *mut core::ffi::c_void, value: *mut MF_TIMED_TEXT_BOUTEN_POSITION) -> windows_core::HRESULT - where - Identity: IMFTimedTextBouten_Impl, - { + unsafe extern "system" fn GetBoutenPosition(this: *mut core::ffi::c_void, value: *mut MF_TIMED_TEXT_BOUTEN_POSITION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextBouten_Impl::GetBoutenPosition(this) { Ok(ok__) => { @@ -18478,7 +13777,7 @@ impl IMFTimedTextBouten_Vtbl { iid == &::IID } } -pub trait IMFTimedTextCue_Impl: Sized { +pub trait IMFTimedTextCue_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> u32; fn GetOriginalId(&self) -> windows_core::Result; fn GetCueKind(&self) -> MF_TIMED_TEXT_TRACK_KIND; @@ -18493,21 +13792,12 @@ pub trait IMFTimedTextCue_Impl: Sized { } impl windows_core::RuntimeName for IMFTimedTextCue {} impl IMFTimedTextCue_Vtbl { - pub const fn new() -> IMFTimedTextCue_Vtbl - where - Identity: IMFTimedTextCue_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFTimedTextCue_Impl, - { + pub const fn new() -> IMFTimedTextCue_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextCue_Impl::GetId(this) } - unsafe extern "system" fn GetOriginalId(this: *mut core::ffi::c_void, originalid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFTimedTextCue_Impl, - { + unsafe extern "system" fn GetOriginalId(this: *mut core::ffi::c_void, originalid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextCue_Impl::GetOriginalId(this) { Ok(ok__) => { @@ -18517,38 +13807,23 @@ impl IMFTimedTextCue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCueKind(this: *mut core::ffi::c_void) -> MF_TIMED_TEXT_TRACK_KIND - where - Identity: IMFTimedTextCue_Impl, - { + unsafe extern "system" fn GetCueKind(this: *mut core::ffi::c_void) -> MF_TIMED_TEXT_TRACK_KIND { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextCue_Impl::GetCueKind(this) } - unsafe extern "system" fn GetStartTime(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFTimedTextCue_Impl, - { + unsafe extern "system" fn GetStartTime(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextCue_Impl::GetStartTime(this) } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void) -> f64 - where - Identity: IMFTimedTextCue_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void) -> f64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextCue_Impl::GetDuration(this) } - unsafe extern "system" fn GetTrackId(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFTimedTextCue_Impl, - { + unsafe extern "system" fn GetTrackId(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextCue_Impl::GetTrackId(this) } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, data: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextCue_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, data: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextCue_Impl::GetData(this) { Ok(ok__) => { @@ -18558,10 +13833,7 @@ impl IMFTimedTextCue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRegion(this: *mut core::ffi::c_void, region: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextCue_Impl, - { + unsafe extern "system" fn GetRegion(this: *mut core::ffi::c_void, region: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextCue_Impl::GetRegion(this) { Ok(ok__) => { @@ -18571,10 +13843,7 @@ impl IMFTimedTextCue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStyle(this: *mut core::ffi::c_void, style: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextCue_Impl, - { + unsafe extern "system" fn GetStyle(this: *mut core::ffi::c_void, style: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextCue_Impl::GetStyle(this) { Ok(ok__) => { @@ -18584,17 +13853,11 @@ impl IMFTimedTextCue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLineCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFTimedTextCue_Impl, - { + unsafe extern "system" fn GetLineCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextCue_Impl::GetLineCount(this) } - unsafe extern "system" fn GetLine(this: *mut core::ffi::c_void, index: u32, line: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextCue_Impl, - { + unsafe extern "system" fn GetLine(this: *mut core::ffi::c_void, index: u32, line: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextCue_Impl::GetLine(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -18623,7 +13886,7 @@ impl IMFTimedTextCue_Vtbl { iid == &::IID } } -pub trait IMFTimedTextCueList_Impl: Sized { +pub trait IMFTimedTextCueList_Impl: Sized + windows_core::IUnknownImpl { fn GetLength(&self) -> u32; fn GetCueByIndex(&self, index: u32) -> windows_core::Result; fn GetCueById(&self, id: u32) -> windows_core::Result; @@ -18634,21 +13897,12 @@ pub trait IMFTimedTextCueList_Impl: Sized { } impl windows_core::RuntimeName for IMFTimedTextCueList {} impl IMFTimedTextCueList_Vtbl { - pub const fn new() -> IMFTimedTextCueList_Vtbl - where - Identity: IMFTimedTextCueList_Impl, - { - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFTimedTextCueList_Impl, - { + pub const fn new() -> IMFTimedTextCueList_Vtbl { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextCueList_Impl::GetLength(this) } - unsafe extern "system" fn GetCueByIndex(this: *mut core::ffi::c_void, index: u32, cue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextCueList_Impl, - { + unsafe extern "system" fn GetCueByIndex(this: *mut core::ffi::c_void, index: u32, cue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextCueList_Impl::GetCueByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -18658,10 +13912,7 @@ impl IMFTimedTextCueList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCueById(this: *mut core::ffi::c_void, id: u32, cue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextCueList_Impl, - { + unsafe extern "system" fn GetCueById(this: *mut core::ffi::c_void, id: u32, cue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextCueList_Impl::GetCueById(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -18671,10 +13922,7 @@ impl IMFTimedTextCueList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCueByOriginalId(this: *mut core::ffi::c_void, originalid: windows_core::PCWSTR, cue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextCueList_Impl, - { + unsafe extern "system" fn GetCueByOriginalId(this: *mut core::ffi::c_void, originalid: windows_core::PCWSTR, cue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextCueList_Impl::GetCueByOriginalId(this, core::mem::transmute(&originalid)) { Ok(ok__) => { @@ -18684,24 +13932,15 @@ impl IMFTimedTextCueList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTextCue(this: *mut core::ffi::c_void, start: f64, duration: f64, text: windows_core::PCWSTR, cue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextCueList_Impl, - { + unsafe extern "system" fn AddTextCue(this: *mut core::ffi::c_void, start: f64, duration: f64, text: windows_core::PCWSTR, cue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextCueList_Impl::AddTextCue(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&duration), core::mem::transmute(&text), core::mem::transmute_copy(&cue)).into() } - unsafe extern "system" fn AddDataCue(this: *mut core::ffi::c_void, start: f64, duration: f64, data: *const u8, datasize: u32, cue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextCueList_Impl, - { + unsafe extern "system" fn AddDataCue(this: *mut core::ffi::c_void, start: f64, duration: f64, data: *const u8, datasize: u32, cue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextCueList_Impl::AddDataCue(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&duration), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&cue)).into() } - unsafe extern "system" fn RemoveCue(this: *mut core::ffi::c_void, cue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextCueList_Impl, - { + unsafe extern "system" fn RemoveCue(this: *mut core::ffi::c_void, cue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextCueList_Impl::RemoveCue(this, windows_core::from_raw_borrowed(&cue)).into() } @@ -18720,21 +13959,15 @@ impl IMFTimedTextCueList_Vtbl { iid == &::IID } } -pub trait IMFTimedTextFormattedText_Impl: Sized { +pub trait IMFTimedTextFormattedText_Impl: Sized + windows_core::IUnknownImpl { fn GetText(&self) -> windows_core::Result; fn GetSubformattingCount(&self) -> u32; fn GetSubformatting(&self, index: u32, firstchar: *mut u32, charlength: *mut u32, style: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFTimedTextFormattedText {} impl IMFTimedTextFormattedText_Vtbl { - pub const fn new() -> IMFTimedTextFormattedText_Vtbl - where - Identity: IMFTimedTextFormattedText_Impl, - { - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, text: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFTimedTextFormattedText_Impl, - { + pub const fn new() -> IMFTimedTextFormattedText_Vtbl { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, text: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextFormattedText_Impl::GetText(this) { Ok(ok__) => { @@ -18744,17 +13977,11 @@ impl IMFTimedTextFormattedText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubformattingCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFTimedTextFormattedText_Impl, - { + unsafe extern "system" fn GetSubformattingCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextFormattedText_Impl::GetSubformattingCount(this) } - unsafe extern "system" fn GetSubformatting(this: *mut core::ffi::c_void, index: u32, firstchar: *mut u32, charlength: *mut u32, style: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextFormattedText_Impl, - { + unsafe extern "system" fn GetSubformatting(this: *mut core::ffi::c_void, index: u32, firstchar: *mut u32, charlength: *mut u32, style: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextFormattedText_Impl::GetSubformatting(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&firstchar), core::mem::transmute_copy(&charlength), core::mem::transmute_copy(&style)).into() } @@ -18769,7 +13996,7 @@ impl IMFTimedTextFormattedText_Vtbl { iid == &::IID } } -pub trait IMFTimedTextNotify_Impl: Sized { +pub trait IMFTimedTextNotify_Impl: Sized + windows_core::IUnknownImpl { fn TrackAdded(&self, trackid: u32); fn TrackRemoved(&self, trackid: u32); fn TrackSelected(&self, trackid: u32, selected: super::super::Foundation::BOOL); @@ -18780,56 +14007,32 @@ pub trait IMFTimedTextNotify_Impl: Sized { } impl windows_core::RuntimeName for IMFTimedTextNotify {} impl IMFTimedTextNotify_Vtbl { - pub const fn new() -> IMFTimedTextNotify_Vtbl - where - Identity: IMFTimedTextNotify_Impl, - { - unsafe extern "system" fn TrackAdded(this: *mut core::ffi::c_void, trackid: u32) - where - Identity: IMFTimedTextNotify_Impl, - { + pub const fn new() -> IMFTimedTextNotify_Vtbl { + unsafe extern "system" fn TrackAdded(this: *mut core::ffi::c_void, trackid: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextNotify_Impl::TrackAdded(this, core::mem::transmute_copy(&trackid)) } - unsafe extern "system" fn TrackRemoved(this: *mut core::ffi::c_void, trackid: u32) - where - Identity: IMFTimedTextNotify_Impl, - { + unsafe extern "system" fn TrackRemoved(this: *mut core::ffi::c_void, trackid: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextNotify_Impl::TrackRemoved(this, core::mem::transmute_copy(&trackid)) } - unsafe extern "system" fn TrackSelected(this: *mut core::ffi::c_void, trackid: u32, selected: super::super::Foundation::BOOL) - where - Identity: IMFTimedTextNotify_Impl, - { + unsafe extern "system" fn TrackSelected(this: *mut core::ffi::c_void, trackid: u32, selected: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextNotify_Impl::TrackSelected(this, core::mem::transmute_copy(&trackid), core::mem::transmute_copy(&selected)) } - unsafe extern "system" fn TrackReadyStateChanged(this: *mut core::ffi::c_void, trackid: u32) - where - Identity: IMFTimedTextNotify_Impl, - { + unsafe extern "system" fn TrackReadyStateChanged(this: *mut core::ffi::c_void, trackid: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextNotify_Impl::TrackReadyStateChanged(this, core::mem::transmute_copy(&trackid)) } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, errorcode: MF_TIMED_TEXT_ERROR_CODE, extendederrorcode: windows_core::HRESULT, sourcetrackid: u32) - where - Identity: IMFTimedTextNotify_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, errorcode: MF_TIMED_TEXT_ERROR_CODE, extendederrorcode: windows_core::HRESULT, sourcetrackid: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextNotify_Impl::Error(this, core::mem::transmute_copy(&errorcode), core::mem::transmute_copy(&extendederrorcode), core::mem::transmute_copy(&sourcetrackid)) } - unsafe extern "system" fn Cue(this: *mut core::ffi::c_void, cueevent: MF_TIMED_TEXT_CUE_EVENT, currenttime: f64, cue: *mut core::ffi::c_void) - where - Identity: IMFTimedTextNotify_Impl, - { + unsafe extern "system" fn Cue(this: *mut core::ffi::c_void, cueevent: MF_TIMED_TEXT_CUE_EVENT, currenttime: f64, cue: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextNotify_Impl::Cue(this, core::mem::transmute_copy(&cueevent), core::mem::transmute_copy(¤ttime), windows_core::from_raw_borrowed(&cue)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) - where - Identity: IMFTimedTextNotify_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextNotify_Impl::Reset(this) } @@ -18848,7 +14051,7 @@ impl IMFTimedTextNotify_Vtbl { iid == &::IID } } -pub trait IMFTimedTextRegion_Impl: Sized { +pub trait IMFTimedTextRegion_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetPosition(&self, px: *mut f64, py: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::Result<()>; fn GetExtent(&self, pwidth: *mut f64, pheight: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::Result<()>; @@ -18864,14 +14067,8 @@ pub trait IMFTimedTextRegion_Impl: Sized { } impl windows_core::RuntimeName for IMFTimedTextRegion {} impl IMFTimedTextRegion_Vtbl { - pub const fn new() -> IMFTimedTextRegion_Vtbl - where - Identity: IMFTimedTextRegion_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + pub const fn new() -> IMFTimedTextRegion_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRegion_Impl::GetName(this) { Ok(ok__) => { @@ -18881,24 +14078,15 @@ impl IMFTimedTextRegion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, px: *mut f64, py: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, px: *mut f64, py: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextRegion_Impl::GetPosition(this, core::mem::transmute_copy(&px), core::mem::transmute_copy(&py), core::mem::transmute_copy(&unittype)).into() } - unsafe extern "system" fn GetExtent(this: *mut core::ffi::c_void, pwidth: *mut f64, pheight: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetExtent(this: *mut core::ffi::c_void, pwidth: *mut f64, pheight: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextRegion_Impl::GetExtent(this, core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight), core::mem::transmute_copy(&unittype)).into() } - unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, bgcolor: *mut MFARGB) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, bgcolor: *mut MFARGB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRegion_Impl::GetBackgroundColor(this) { Ok(ok__) => { @@ -18908,10 +14096,7 @@ impl IMFTimedTextRegion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWritingMode(this: *mut core::ffi::c_void, writingmode: *mut MF_TIMED_TEXT_WRITING_MODE) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetWritingMode(this: *mut core::ffi::c_void, writingmode: *mut MF_TIMED_TEXT_WRITING_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRegion_Impl::GetWritingMode(this) { Ok(ok__) => { @@ -18921,10 +14106,7 @@ impl IMFTimedTextRegion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayAlignment(this: *mut core::ffi::c_void, displayalign: *mut MF_TIMED_TEXT_DISPLAY_ALIGNMENT) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetDisplayAlignment(this: *mut core::ffi::c_void, displayalign: *mut MF_TIMED_TEXT_DISPLAY_ALIGNMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRegion_Impl::GetDisplayAlignment(this) { Ok(ok__) => { @@ -18934,17 +14116,11 @@ impl IMFTimedTextRegion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLineHeight(this: *mut core::ffi::c_void, plineheight: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetLineHeight(this: *mut core::ffi::c_void, plineheight: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextRegion_Impl::GetLineHeight(this, core::mem::transmute_copy(&plineheight), core::mem::transmute_copy(&unittype)).into() } - unsafe extern "system" fn GetClipOverflow(this: *mut core::ffi::c_void, clipoverflow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetClipOverflow(this: *mut core::ffi::c_void, clipoverflow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRegion_Impl::GetClipOverflow(this) { Ok(ok__) => { @@ -18954,17 +14130,11 @@ impl IMFTimedTextRegion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPadding(this: *mut core::ffi::c_void, before: *mut f64, start: *mut f64, after: *mut f64, end: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetPadding(this: *mut core::ffi::c_void, before: *mut f64, start: *mut f64, after: *mut f64, end: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextRegion_Impl::GetPadding(this, core::mem::transmute_copy(&before), core::mem::transmute_copy(&start), core::mem::transmute_copy(&after), core::mem::transmute_copy(&end), core::mem::transmute_copy(&unittype)).into() } - unsafe extern "system" fn GetWrap(this: *mut core::ffi::c_void, wrap: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetWrap(this: *mut core::ffi::c_void, wrap: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRegion_Impl::GetWrap(this) { Ok(ok__) => { @@ -18974,10 +14144,7 @@ impl IMFTimedTextRegion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetZIndex(this: *mut core::ffi::c_void, zindex: *mut i32) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetZIndex(this: *mut core::ffi::c_void, zindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRegion_Impl::GetZIndex(this) { Ok(ok__) => { @@ -18987,10 +14154,7 @@ impl IMFTimedTextRegion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScrollMode(this: *mut core::ffi::c_void, scrollmode: *mut MF_TIMED_TEXT_SCROLL_MODE) -> windows_core::HRESULT - where - Identity: IMFTimedTextRegion_Impl, - { + unsafe extern "system" fn GetScrollMode(this: *mut core::ffi::c_void, scrollmode: *mut MF_TIMED_TEXT_SCROLL_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRegion_Impl::GetScrollMode(this) { Ok(ok__) => { @@ -19020,7 +14184,7 @@ impl IMFTimedTextRegion_Vtbl { iid == &::IID } } -pub trait IMFTimedTextRuby_Impl: Sized { +pub trait IMFTimedTextRuby_Impl: Sized + windows_core::IUnknownImpl { fn GetRubyText(&self) -> windows_core::Result; fn GetRubyPosition(&self) -> windows_core::Result; fn GetRubyAlign(&self) -> windows_core::Result; @@ -19028,14 +14192,8 @@ pub trait IMFTimedTextRuby_Impl: Sized { } impl windows_core::RuntimeName for IMFTimedTextRuby {} impl IMFTimedTextRuby_Vtbl { - pub const fn new() -> IMFTimedTextRuby_Vtbl - where - Identity: IMFTimedTextRuby_Impl, - { - unsafe extern "system" fn GetRubyText(this: *mut core::ffi::c_void, rubytext: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFTimedTextRuby_Impl, - { + pub const fn new() -> IMFTimedTextRuby_Vtbl { + unsafe extern "system" fn GetRubyText(this: *mut core::ffi::c_void, rubytext: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRuby_Impl::GetRubyText(this) { Ok(ok__) => { @@ -19045,10 +14203,7 @@ impl IMFTimedTextRuby_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRubyPosition(this: *mut core::ffi::c_void, value: *mut MF_TIMED_TEXT_RUBY_POSITION) -> windows_core::HRESULT - where - Identity: IMFTimedTextRuby_Impl, - { + unsafe extern "system" fn GetRubyPosition(this: *mut core::ffi::c_void, value: *mut MF_TIMED_TEXT_RUBY_POSITION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRuby_Impl::GetRubyPosition(this) { Ok(ok__) => { @@ -19058,10 +14213,7 @@ impl IMFTimedTextRuby_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRubyAlign(this: *mut core::ffi::c_void, value: *mut MF_TIMED_TEXT_RUBY_ALIGN) -> windows_core::HRESULT - where - Identity: IMFTimedTextRuby_Impl, - { + unsafe extern "system" fn GetRubyAlign(this: *mut core::ffi::c_void, value: *mut MF_TIMED_TEXT_RUBY_ALIGN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRuby_Impl::GetRubyAlign(this) { Ok(ok__) => { @@ -19071,10 +14223,7 @@ impl IMFTimedTextRuby_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRubyReserve(this: *mut core::ffi::c_void, value: *mut MF_TIMED_TEXT_RUBY_RESERVE) -> windows_core::HRESULT - where - Identity: IMFTimedTextRuby_Impl, - { + unsafe extern "system" fn GetRubyReserve(this: *mut core::ffi::c_void, value: *mut MF_TIMED_TEXT_RUBY_RESERVE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRuby_Impl::GetRubyReserve(this) { Ok(ok__) => { @@ -19096,7 +14245,7 @@ impl IMFTimedTextRuby_Vtbl { iid == &::IID } } -pub trait IMFTimedTextStyle_Impl: Sized { +pub trait IMFTimedTextStyle_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn IsExternal(&self) -> super::super::Foundation::BOOL; fn GetFontFamily(&self) -> windows_core::Result; @@ -19113,14 +14262,8 @@ pub trait IMFTimedTextStyle_Impl: Sized { } impl windows_core::RuntimeName for IMFTimedTextStyle {} impl IMFTimedTextStyle_Vtbl { - pub const fn new() -> IMFTimedTextStyle_Vtbl - where - Identity: IMFTimedTextStyle_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + pub const fn new() -> IMFTimedTextStyle_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetName(this) { Ok(ok__) => { @@ -19130,17 +14273,11 @@ impl IMFTimedTextStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsExternal(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn IsExternal(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextStyle_Impl::IsExternal(this) } - unsafe extern "system" fn GetFontFamily(this: *mut core::ffi::c_void, fontfamily: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetFontFamily(this: *mut core::ffi::c_void, fontfamily: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetFontFamily(this) { Ok(ok__) => { @@ -19150,17 +14287,11 @@ impl IMFTimedTextStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontSize(this: *mut core::ffi::c_void, fontsize: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetFontSize(this: *mut core::ffi::c_void, fontsize: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextStyle_Impl::GetFontSize(this, core::mem::transmute_copy(&fontsize), core::mem::transmute_copy(&unittype)).into() } - unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, color: *mut MFARGB) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, color: *mut MFARGB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetColor(this) { Ok(ok__) => { @@ -19170,10 +14301,7 @@ impl IMFTimedTextStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, bgcolor: *mut MFARGB) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, bgcolor: *mut MFARGB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetBackgroundColor(this) { Ok(ok__) => { @@ -19183,10 +14311,7 @@ impl IMFTimedTextStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetShowBackgroundAlways(this: *mut core::ffi::c_void, showbackgroundalways: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetShowBackgroundAlways(this: *mut core::ffi::c_void, showbackgroundalways: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetShowBackgroundAlways(this) { Ok(ok__) => { @@ -19196,10 +14321,7 @@ impl IMFTimedTextStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontStyle(this: *mut core::ffi::c_void, fontstyle: *mut MF_TIMED_TEXT_FONT_STYLE) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetFontStyle(this: *mut core::ffi::c_void, fontstyle: *mut MF_TIMED_TEXT_FONT_STYLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetFontStyle(this) { Ok(ok__) => { @@ -19209,10 +14331,7 @@ impl IMFTimedTextStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBold(this: *mut core::ffi::c_void, bold: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetBold(this: *mut core::ffi::c_void, bold: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetBold(this) { Ok(ok__) => { @@ -19222,10 +14341,7 @@ impl IMFTimedTextStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRightToLeft(this: *mut core::ffi::c_void, righttoleft: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetRightToLeft(this: *mut core::ffi::c_void, righttoleft: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetRightToLeft(this) { Ok(ok__) => { @@ -19235,10 +14351,7 @@ impl IMFTimedTextStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextAlignment(this: *mut core::ffi::c_void, textalign: *mut MF_TIMED_TEXT_ALIGNMENT) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetTextAlignment(this: *mut core::ffi::c_void, textalign: *mut MF_TIMED_TEXT_ALIGNMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetTextAlignment(this) { Ok(ok__) => { @@ -19248,10 +14361,7 @@ impl IMFTimedTextStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextDecoration(this: *mut core::ffi::c_void, textdecoration: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetTextDecoration(this: *mut core::ffi::c_void, textdecoration: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetTextDecoration(this) { Ok(ok__) => { @@ -19261,10 +14371,7 @@ impl IMFTimedTextStyle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextOutline(this: *mut core::ffi::c_void, color: *mut MFARGB, thickness: *mut f64, blurradius: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle_Impl, - { + unsafe extern "system" fn GetTextOutline(this: *mut core::ffi::c_void, color: *mut MFARGB, thickness: *mut f64, blurradius: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextStyle_Impl::GetTextOutline(this, core::mem::transmute_copy(&color), core::mem::transmute_copy(&thickness), core::mem::transmute_copy(&blurradius), core::mem::transmute_copy(&unittype)).into() } @@ -19289,7 +14396,7 @@ impl IMFTimedTextStyle_Vtbl { iid == &::IID } } -pub trait IMFTimedTextStyle2_Impl: Sized { +pub trait IMFTimedTextStyle2_Impl: Sized + windows_core::IUnknownImpl { fn GetRuby(&self) -> windows_core::Result; fn GetBouten(&self) -> windows_core::Result; fn IsTextCombined(&self) -> windows_core::Result; @@ -19297,14 +14404,8 @@ pub trait IMFTimedTextStyle2_Impl: Sized { } impl windows_core::RuntimeName for IMFTimedTextStyle2 {} impl IMFTimedTextStyle2_Vtbl { - pub const fn new() -> IMFTimedTextStyle2_Vtbl - where - Identity: IMFTimedTextStyle2_Impl, - { - unsafe extern "system" fn GetRuby(this: *mut core::ffi::c_void, ruby: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle2_Impl, - { + pub const fn new() -> IMFTimedTextStyle2_Vtbl { + unsafe extern "system" fn GetRuby(this: *mut core::ffi::c_void, ruby: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle2_Impl::GetRuby(this) { Ok(ok__) => { @@ -19314,10 +14415,7 @@ impl IMFTimedTextStyle2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBouten(this: *mut core::ffi::c_void, bouten: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle2_Impl, - { + unsafe extern "system" fn GetBouten(this: *mut core::ffi::c_void, bouten: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle2_Impl::GetBouten(this) { Ok(ok__) => { @@ -19327,10 +14425,7 @@ impl IMFTimedTextStyle2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsTextCombined(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle2_Impl, - { + unsafe extern "system" fn IsTextCombined(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle2_Impl::IsTextCombined(this) { Ok(ok__) => { @@ -19340,10 +14435,7 @@ impl IMFTimedTextStyle2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFontAngleInDegrees(this: *mut core::ffi::c_void, value: *mut f64) -> windows_core::HRESULT - where - Identity: IMFTimedTextStyle2_Impl, - { + unsafe extern "system" fn GetFontAngleInDegrees(this: *mut core::ffi::c_void, value: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle2_Impl::GetFontAngleInDegrees(this) { Ok(ok__) => { @@ -19365,7 +14457,7 @@ impl IMFTimedTextStyle2_Vtbl { iid == &::IID } } -pub trait IMFTimedTextTrack_Impl: Sized { +pub trait IMFTimedTextTrack_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> u32; fn GetLabel(&self) -> windows_core::Result; fn SetLabel(&self, label: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -19382,21 +14474,12 @@ pub trait IMFTimedTextTrack_Impl: Sized { } impl windows_core::RuntimeName for IMFTimedTextTrack {} impl IMFTimedTextTrack_Vtbl { - pub const fn new() -> IMFTimedTextTrack_Vtbl - where - Identity: IMFTimedTextTrack_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFTimedTextTrack_Impl, - { + pub const fn new() -> IMFTimedTextTrack_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrack_Impl::GetId(this) } - unsafe extern "system" fn GetLabel(this: *mut core::ffi::c_void, label: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn GetLabel(this: *mut core::ffi::c_void, label: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextTrack_Impl::GetLabel(this) { Ok(ok__) => { @@ -19406,17 +14489,11 @@ impl IMFTimedTextTrack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, label: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, label: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrack_Impl::SetLabel(this, core::mem::transmute(&label)).into() } - unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, language: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, language: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextTrack_Impl::GetLanguage(this) { Ok(ok__) => { @@ -19426,24 +14503,15 @@ impl IMFTimedTextTrack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTrackKind(this: *mut core::ffi::c_void) -> MF_TIMED_TEXT_TRACK_KIND - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn GetTrackKind(this: *mut core::ffi::c_void) -> MF_TIMED_TEXT_TRACK_KIND { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrack_Impl::GetTrackKind(this) } - unsafe extern "system" fn IsInBand(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn IsInBand(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrack_Impl::IsInBand(this) } - unsafe extern "system" fn GetInBandMetadataTrackDispatchType(this: *mut core::ffi::c_void, dispatchtype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn GetInBandMetadataTrackDispatchType(this: *mut core::ffi::c_void, dispatchtype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextTrack_Impl::GetInBandMetadataTrackDispatchType(this) { Ok(ok__) => { @@ -19453,31 +14521,19 @@ impl IMFTimedTextTrack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrack_Impl::IsActive(this) } - unsafe extern "system" fn GetErrorCode(this: *mut core::ffi::c_void) -> MF_TIMED_TEXT_ERROR_CODE - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn GetErrorCode(this: *mut core::ffi::c_void) -> MF_TIMED_TEXT_ERROR_CODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrack_Impl::GetErrorCode(this) } - unsafe extern "system" fn GetExtendedErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn GetExtendedErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrack_Impl::GetExtendedErrorCode(this).into() } - unsafe extern "system" fn GetDataFormat(this: *mut core::ffi::c_void, format: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn GetDataFormat(this: *mut core::ffi::c_void, format: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextTrack_Impl::GetDataFormat(this) { Ok(ok__) => { @@ -19487,17 +14543,11 @@ impl IMFTimedTextTrack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReadyState(this: *mut core::ffi::c_void) -> MF_TIMED_TEXT_TRACK_READY_STATE - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn GetReadyState(this: *mut core::ffi::c_void) -> MF_TIMED_TEXT_TRACK_READY_STATE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrack_Impl::GetReadyState(this) } - unsafe extern "system" fn GetCueList(this: *mut core::ffi::c_void, cues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextTrack_Impl, - { + unsafe extern "system" fn GetCueList(this: *mut core::ffi::c_void, cues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextTrack_Impl::GetCueList(this) { Ok(ok__) => { @@ -19528,28 +14578,19 @@ impl IMFTimedTextTrack_Vtbl { iid == &::IID } } -pub trait IMFTimedTextTrackList_Impl: Sized { +pub trait IMFTimedTextTrackList_Impl: Sized + windows_core::IUnknownImpl { fn GetLength(&self) -> u32; fn GetTrack(&self, index: u32) -> windows_core::Result; fn GetTrackById(&self, trackid: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IMFTimedTextTrackList {} impl IMFTimedTextTrackList_Vtbl { - pub const fn new() -> IMFTimedTextTrackList_Vtbl - where - Identity: IMFTimedTextTrackList_Impl, - { - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void) -> u32 - where - Identity: IMFTimedTextTrackList_Impl, - { + pub const fn new() -> IMFTimedTextTrackList_Vtbl { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrackList_Impl::GetLength(this) } - unsafe extern "system" fn GetTrack(this: *mut core::ffi::c_void, index: u32, track: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextTrackList_Impl, - { + unsafe extern "system" fn GetTrack(this: *mut core::ffi::c_void, index: u32, track: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextTrackList_Impl::GetTrack(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -19559,10 +14600,7 @@ impl IMFTimedTextTrackList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTrackById(this: *mut core::ffi::c_void, trackid: u32, track: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimedTextTrackList_Impl, - { + unsafe extern "system" fn GetTrackById(this: *mut core::ffi::c_void, trackid: u32, track: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextTrackList_Impl::GetTrackById(this, core::mem::transmute_copy(&trackid)) { Ok(ok__) => { @@ -19583,20 +14621,14 @@ impl IMFTimedTextTrackList_Vtbl { iid == &::IID } } -pub trait IMFTimer_Impl: Sized { +pub trait IMFTimer_Impl: Sized + windows_core::IUnknownImpl { fn SetTimer(&self, dwflags: u32, llclocktime: i64, pcallback: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result; fn CancelTimer(&self, punkkey: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFTimer {} impl IMFTimer_Vtbl { - pub const fn new() -> IMFTimer_Vtbl - where - Identity: IMFTimer_Impl, - { - unsafe extern "system" fn SetTimer(this: *mut core::ffi::c_void, dwflags: u32, llclocktime: i64, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void, ppunkkey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimer_Impl, - { + pub const fn new() -> IMFTimer_Vtbl { + unsafe extern "system" fn SetTimer(this: *mut core::ffi::c_void, dwflags: u32, llclocktime: i64, pcallback: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void, ppunkkey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimer_Impl::SetTimer(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&llclocktime), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&punkstate)) { Ok(ok__) => { @@ -19606,10 +14638,7 @@ impl IMFTimer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CancelTimer(this: *mut core::ffi::c_void, punkkey: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTimer_Impl, - { + unsafe extern "system" fn CancelTimer(this: *mut core::ffi::c_void, punkkey: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimer_Impl::CancelTimer(this, windows_core::from_raw_borrowed(&punkkey)).into() } @@ -19623,19 +14652,13 @@ impl IMFTimer_Vtbl { iid == &::IID } } -pub trait IMFTopoLoader_Impl: Sized { +pub trait IMFTopoLoader_Impl: Sized + windows_core::IUnknownImpl { fn Load(&self, pinputtopo: Option<&IMFTopology>, ppoutputtopo: *mut Option, pcurrenttopo: Option<&IMFTopology>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFTopoLoader {} impl IMFTopoLoader_Vtbl { - pub const fn new() -> IMFTopoLoader_Vtbl - where - Identity: IMFTopoLoader_Impl, - { - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pinputtopo: *mut core::ffi::c_void, ppoutputtopo: *mut *mut core::ffi::c_void, pcurrenttopo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopoLoader_Impl, - { + pub const fn new() -> IMFTopoLoader_Vtbl { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pinputtopo: *mut core::ffi::c_void, ppoutputtopo: *mut *mut core::ffi::c_void, pcurrenttopo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopoLoader_Impl::Load(this, windows_core::from_raw_borrowed(&pinputtopo), core::mem::transmute_copy(&ppoutputtopo), windows_core::from_raw_borrowed(&pcurrenttopo)).into() } @@ -19659,14 +14682,8 @@ pub trait IMFTopology_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFTopology {} impl IMFTopology_Vtbl { - pub const fn new() -> IMFTopology_Vtbl - where - Identity: IMFTopology_Impl, - { - unsafe extern "system" fn GetTopologyID(this: *mut core::ffi::c_void, pid: *mut u64) -> windows_core::HRESULT - where - Identity: IMFTopology_Impl, - { + pub const fn new() -> IMFTopology_Vtbl { + unsafe extern "system" fn GetTopologyID(this: *mut core::ffi::c_void, pid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopology_Impl::GetTopologyID(this) { Ok(ok__) => { @@ -19676,24 +14693,15 @@ impl IMFTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddNode(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopology_Impl, - { + unsafe extern "system" fn AddNode(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopology_Impl::AddNode(this, windows_core::from_raw_borrowed(&pnode)).into() } - unsafe extern "system" fn RemoveNode(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopology_Impl, - { + unsafe extern "system" fn RemoveNode(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopology_Impl::RemoveNode(this, windows_core::from_raw_borrowed(&pnode)).into() } - unsafe extern "system" fn GetNodeCount(this: *mut core::ffi::c_void, pwnodes: *mut u16) -> windows_core::HRESULT - where - Identity: IMFTopology_Impl, - { + unsafe extern "system" fn GetNodeCount(this: *mut core::ffi::c_void, pwnodes: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopology_Impl::GetNodeCount(this) { Ok(ok__) => { @@ -19703,10 +14711,7 @@ impl IMFTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNode(this: *mut core::ffi::c_void, windex: u16, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopology_Impl, - { + unsafe extern "system" fn GetNode(this: *mut core::ffi::c_void, windex: u16, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopology_Impl::GetNode(this, core::mem::transmute_copy(&windex)) { Ok(ok__) => { @@ -19716,24 +14721,15 @@ impl IMFTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopology_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopology_Impl::Clear(this).into() } - unsafe extern "system" fn CloneFrom(this: *mut core::ffi::c_void, ptopology: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopology_Impl, - { + unsafe extern "system" fn CloneFrom(this: *mut core::ffi::c_void, ptopology: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopology_Impl::CloneFrom(this, windows_core::from_raw_borrowed(&ptopology)).into() } - unsafe extern "system" fn GetNodeByID(this: *mut core::ffi::c_void, qwtoponodeid: u64, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopology_Impl, - { + unsafe extern "system" fn GetNodeByID(this: *mut core::ffi::c_void, qwtoponodeid: u64, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopology_Impl::GetNodeByID(this, core::mem::transmute_copy(&qwtoponodeid)) { Ok(ok__) => { @@ -19743,10 +14739,7 @@ impl IMFTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceNodeCollection(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopology_Impl, - { + unsafe extern "system" fn GetSourceNodeCollection(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopology_Impl::GetSourceNodeCollection(this) { Ok(ok__) => { @@ -19756,10 +14749,7 @@ impl IMFTopology_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputNodeCollection(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopology_Impl, - { + unsafe extern "system" fn GetOutputNodeCollection(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopology_Impl::GetOutputNodeCollection(this) { Ok(ok__) => { @@ -19807,21 +14797,12 @@ pub trait IMFTopologyNode_Impl: Sized + IMFAttributes_Impl { } impl windows_core::RuntimeName for IMFTopologyNode {} impl IMFTopologyNode_Vtbl { - pub const fn new() -> IMFTopologyNode_Vtbl - where - Identity: IMFTopologyNode_Impl, - { - unsafe extern "system" fn SetObject(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + pub const fn new() -> IMFTopologyNode_Vtbl { + unsafe extern "system" fn SetObject(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyNode_Impl::SetObject(this, windows_core::from_raw_borrowed(&pobject)).into() } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopologyNode_Impl::GetObject(this) { Ok(ok__) => { @@ -19831,10 +14812,7 @@ impl IMFTopologyNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNodeType(this: *mut core::ffi::c_void, ptype: *mut MF_TOPOLOGY_TYPE) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn GetNodeType(this: *mut core::ffi::c_void, ptype: *mut MF_TOPOLOGY_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopologyNode_Impl::GetNodeType(this) { Ok(ok__) => { @@ -19844,10 +14822,7 @@ impl IMFTopologyNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTopoNodeID(this: *mut core::ffi::c_void, pid: *mut u64) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn GetTopoNodeID(this: *mut core::ffi::c_void, pid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopologyNode_Impl::GetTopoNodeID(this) { Ok(ok__) => { @@ -19857,17 +14832,11 @@ impl IMFTopologyNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTopoNodeID(this: *mut core::ffi::c_void, ulltopoid: u64) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn SetTopoNodeID(this: *mut core::ffi::c_void, ulltopoid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyNode_Impl::SetTopoNodeID(this, core::mem::transmute_copy(&ulltopoid)).into() } - unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void, pcinputs: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void, pcinputs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopologyNode_Impl::GetInputCount(this) { Ok(ok__) => { @@ -19877,10 +14846,7 @@ impl IMFTopologyNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void, pcoutputs: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void, pcoutputs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopologyNode_Impl::GetOutputCount(this) { Ok(ok__) => { @@ -19890,45 +14856,27 @@ impl IMFTopologyNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectOutput(this: *mut core::ffi::c_void, dwoutputindex: u32, pdownstreamnode: *mut core::ffi::c_void, dwinputindexondownstreamnode: u32) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn ConnectOutput(this: *mut core::ffi::c_void, dwoutputindex: u32, pdownstreamnode: *mut core::ffi::c_void, dwinputindexondownstreamnode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyNode_Impl::ConnectOutput(this, core::mem::transmute_copy(&dwoutputindex), windows_core::from_raw_borrowed(&pdownstreamnode), core::mem::transmute_copy(&dwinputindexondownstreamnode)).into() } - unsafe extern "system" fn DisconnectOutput(this: *mut core::ffi::c_void, dwoutputindex: u32) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn DisconnectOutput(this: *mut core::ffi::c_void, dwoutputindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyNode_Impl::DisconnectOutput(this, core::mem::transmute_copy(&dwoutputindex)).into() } - unsafe extern "system" fn GetInput(this: *mut core::ffi::c_void, dwinputindex: u32, ppupstreamnode: *mut *mut core::ffi::c_void, pdwoutputindexonupstreamnode: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn GetInput(this: *mut core::ffi::c_void, dwinputindex: u32, ppupstreamnode: *mut *mut core::ffi::c_void, pdwoutputindexonupstreamnode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyNode_Impl::GetInput(this, core::mem::transmute_copy(&dwinputindex), core::mem::transmute_copy(&ppupstreamnode), core::mem::transmute_copy(&pdwoutputindexonupstreamnode)).into() } - unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, dwoutputindex: u32, ppdownstreamnode: *mut *mut core::ffi::c_void, pdwinputindexondownstreamnode: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, dwoutputindex: u32, ppdownstreamnode: *mut *mut core::ffi::c_void, pdwinputindexondownstreamnode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyNode_Impl::GetOutput(this, core::mem::transmute_copy(&dwoutputindex), core::mem::transmute_copy(&ppdownstreamnode), core::mem::transmute_copy(&pdwinputindexondownstreamnode)).into() } - unsafe extern "system" fn SetOutputPrefType(this: *mut core::ffi::c_void, dwoutputindex: u32, ptype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn SetOutputPrefType(this: *mut core::ffi::c_void, dwoutputindex: u32, ptype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyNode_Impl::SetOutputPrefType(this, core::mem::transmute_copy(&dwoutputindex), windows_core::from_raw_borrowed(&ptype)).into() } - unsafe extern "system" fn GetOutputPrefType(this: *mut core::ffi::c_void, dwoutputindex: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn GetOutputPrefType(this: *mut core::ffi::c_void, dwoutputindex: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopologyNode_Impl::GetOutputPrefType(this, core::mem::transmute_copy(&dwoutputindex)) { Ok(ok__) => { @@ -19938,17 +14886,11 @@ impl IMFTopologyNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputPrefType(this: *mut core::ffi::c_void, dwinputindex: u32, ptype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn SetInputPrefType(this: *mut core::ffi::c_void, dwinputindex: u32, ptype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyNode_Impl::SetInputPrefType(this, core::mem::transmute_copy(&dwinputindex), windows_core::from_raw_borrowed(&ptype)).into() } - unsafe extern "system" fn GetInputPrefType(this: *mut core::ffi::c_void, dwinputindex: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn GetInputPrefType(this: *mut core::ffi::c_void, dwinputindex: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTopologyNode_Impl::GetInputPrefType(this, core::mem::transmute_copy(&dwinputindex)) { Ok(ok__) => { @@ -19958,10 +14900,7 @@ impl IMFTopologyNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloneFrom(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopologyNode_Impl, - { + unsafe extern "system" fn CloneFrom(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyNode_Impl::CloneFrom(this, windows_core::from_raw_borrowed(&pnode)).into() } @@ -19989,19 +14928,13 @@ impl IMFTopologyNode_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFTopologyNodeAttributeEditor_Impl: Sized { +pub trait IMFTopologyNodeAttributeEditor_Impl: Sized + windows_core::IUnknownImpl { fn UpdateNodeAttributes(&self, topoid: u64, cupdates: u32, pupdates: *const MFTOPONODE_ATTRIBUTE_UPDATE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFTopologyNodeAttributeEditor {} impl IMFTopologyNodeAttributeEditor_Vtbl { - pub const fn new() -> IMFTopologyNodeAttributeEditor_Vtbl - where - Identity: IMFTopologyNodeAttributeEditor_Impl, - { - unsafe extern "system" fn UpdateNodeAttributes(this: *mut core::ffi::c_void, topoid: u64, cupdates: u32, pupdates: *const MFTOPONODE_ATTRIBUTE_UPDATE) -> windows_core::HRESULT - where - Identity: IMFTopologyNodeAttributeEditor_Impl, - { + pub const fn new() -> IMFTopologyNodeAttributeEditor_Vtbl { + unsafe extern "system" fn UpdateNodeAttributes(this: *mut core::ffi::c_void, topoid: u64, cupdates: u32, pupdates: *const MFTOPONODE_ATTRIBUTE_UPDATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyNodeAttributeEditor_Impl::UpdateNodeAttributes(this, core::mem::transmute_copy(&topoid), core::mem::transmute_copy(&cupdates), core::mem::transmute_copy(&pupdates)).into() } @@ -20011,19 +14944,13 @@ impl IMFTopologyNodeAttributeEditor_Vtbl { iid == &::IID } } -pub trait IMFTopologyServiceLookup_Impl: Sized { +pub trait IMFTopologyServiceLookup_Impl: Sized + windows_core::IUnknownImpl { fn LookupService(&self, r#type: MF_SERVICE_LOOKUP_TYPE, dwindex: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobjects: *mut *mut core::ffi::c_void, pnobjects: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFTopologyServiceLookup {} impl IMFTopologyServiceLookup_Vtbl { - pub const fn new() -> IMFTopologyServiceLookup_Vtbl - where - Identity: IMFTopologyServiceLookup_Impl, - { - unsafe extern "system" fn LookupService(this: *mut core::ffi::c_void, r#type: MF_SERVICE_LOOKUP_TYPE, dwindex: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobjects: *mut *mut core::ffi::c_void, pnobjects: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTopologyServiceLookup_Impl, - { + pub const fn new() -> IMFTopologyServiceLookup_Vtbl { + unsafe extern "system" fn LookupService(this: *mut core::ffi::c_void, r#type: MF_SERVICE_LOOKUP_TYPE, dwindex: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobjects: *mut *mut core::ffi::c_void, pnobjects: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyServiceLookup_Impl::LookupService(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&guidservice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobjects), core::mem::transmute_copy(&pnobjects)).into() } @@ -20033,27 +14960,18 @@ impl IMFTopologyServiceLookup_Vtbl { iid == &::IID } } -pub trait IMFTopologyServiceLookupClient_Impl: Sized { +pub trait IMFTopologyServiceLookupClient_Impl: Sized + windows_core::IUnknownImpl { fn InitServicePointers(&self, plookup: Option<&IMFTopologyServiceLookup>) -> windows_core::Result<()>; fn ReleaseServicePointers(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFTopologyServiceLookupClient {} impl IMFTopologyServiceLookupClient_Vtbl { - pub const fn new() -> IMFTopologyServiceLookupClient_Vtbl - where - Identity: IMFTopologyServiceLookupClient_Impl, - { - unsafe extern "system" fn InitServicePointers(this: *mut core::ffi::c_void, plookup: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopologyServiceLookupClient_Impl, - { + pub const fn new() -> IMFTopologyServiceLookupClient_Vtbl { + unsafe extern "system" fn InitServicePointers(this: *mut core::ffi::c_void, plookup: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyServiceLookupClient_Impl::InitServicePointers(this, windows_core::from_raw_borrowed(&plookup)).into() } - unsafe extern "system" fn ReleaseServicePointers(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTopologyServiceLookupClient_Impl, - { + unsafe extern "system" fn ReleaseServicePointers(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTopologyServiceLookupClient_Impl::ReleaseServicePointers(this).into() } @@ -20067,19 +14985,13 @@ impl IMFTopologyServiceLookupClient_Vtbl { iid == &::IID } } -pub trait IMFTrackedSample_Impl: Sized { +pub trait IMFTrackedSample_Impl: Sized + windows_core::IUnknownImpl { fn SetAllocator(&self, psampleallocator: Option<&IMFAsyncCallback>, punkstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFTrackedSample {} impl IMFTrackedSample_Vtbl { - pub const fn new() -> IMFTrackedSample_Vtbl - where - Identity: IMFTrackedSample_Impl, - { - unsafe extern "system" fn SetAllocator(this: *mut core::ffi::c_void, psampleallocator: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTrackedSample_Impl, - { + pub const fn new() -> IMFTrackedSample_Vtbl { + unsafe extern "system" fn SetAllocator(this: *mut core::ffi::c_void, psampleallocator: *mut core::ffi::c_void, punkstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTrackedSample_Impl::SetAllocator(this, windows_core::from_raw_borrowed(&psampleallocator), windows_core::from_raw_borrowed(&punkstate)).into() } @@ -20089,7 +15001,7 @@ impl IMFTrackedSample_Vtbl { iid == &::IID } } -pub trait IMFTranscodeProfile_Impl: Sized { +pub trait IMFTranscodeProfile_Impl: Sized + windows_core::IUnknownImpl { fn SetAudioAttributes(&self, pattrs: Option<&IMFAttributes>) -> windows_core::Result<()>; fn GetAudioAttributes(&self) -> windows_core::Result; fn SetVideoAttributes(&self, pattrs: Option<&IMFAttributes>) -> windows_core::Result<()>; @@ -20099,21 +15011,12 @@ pub trait IMFTranscodeProfile_Impl: Sized { } impl windows_core::RuntimeName for IMFTranscodeProfile {} impl IMFTranscodeProfile_Vtbl { - pub const fn new() -> IMFTranscodeProfile_Vtbl - where - Identity: IMFTranscodeProfile_Impl, - { - unsafe extern "system" fn SetAudioAttributes(this: *mut core::ffi::c_void, pattrs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTranscodeProfile_Impl, - { + pub const fn new() -> IMFTranscodeProfile_Vtbl { + unsafe extern "system" fn SetAudioAttributes(this: *mut core::ffi::c_void, pattrs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTranscodeProfile_Impl::SetAudioAttributes(this, windows_core::from_raw_borrowed(&pattrs)).into() } - unsafe extern "system" fn GetAudioAttributes(this: *mut core::ffi::c_void, ppattrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTranscodeProfile_Impl, - { + unsafe extern "system" fn GetAudioAttributes(this: *mut core::ffi::c_void, ppattrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTranscodeProfile_Impl::GetAudioAttributes(this) { Ok(ok__) => { @@ -20123,17 +15026,11 @@ impl IMFTranscodeProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVideoAttributes(this: *mut core::ffi::c_void, pattrs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTranscodeProfile_Impl, - { + unsafe extern "system" fn SetVideoAttributes(this: *mut core::ffi::c_void, pattrs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTranscodeProfile_Impl::SetVideoAttributes(this, windows_core::from_raw_borrowed(&pattrs)).into() } - unsafe extern "system" fn GetVideoAttributes(this: *mut core::ffi::c_void, ppattrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTranscodeProfile_Impl, - { + unsafe extern "system" fn GetVideoAttributes(this: *mut core::ffi::c_void, ppattrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTranscodeProfile_Impl::GetVideoAttributes(this) { Ok(ok__) => { @@ -20143,17 +15040,11 @@ impl IMFTranscodeProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContainerAttributes(this: *mut core::ffi::c_void, pattrs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTranscodeProfile_Impl, - { + unsafe extern "system" fn SetContainerAttributes(this: *mut core::ffi::c_void, pattrs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTranscodeProfile_Impl::SetContainerAttributes(this, windows_core::from_raw_borrowed(&pattrs)).into() } - unsafe extern "system" fn GetContainerAttributes(this: *mut core::ffi::c_void, ppattrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTranscodeProfile_Impl, - { + unsafe extern "system" fn GetContainerAttributes(this: *mut core::ffi::c_void, ppattrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTranscodeProfile_Impl::GetContainerAttributes(this) { Ok(ok__) => { @@ -20177,7 +15068,7 @@ impl IMFTranscodeProfile_Vtbl { iid == &::IID } } -pub trait IMFTranscodeSinkInfoProvider_Impl: Sized { +pub trait IMFTranscodeSinkInfoProvider_Impl: Sized + windows_core::IUnknownImpl { fn SetOutputFile(&self, pwszfilename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetOutputByteStream(&self, pbytestreamactivate: Option<&IMFActivate>) -> windows_core::Result<()>; fn SetProfile(&self, pprofile: Option<&IMFTranscodeProfile>) -> windows_core::Result<()>; @@ -20185,35 +15076,20 @@ pub trait IMFTranscodeSinkInfoProvider_Impl: Sized { } impl windows_core::RuntimeName for IMFTranscodeSinkInfoProvider {} impl IMFTranscodeSinkInfoProvider_Vtbl { - pub const fn new() -> IMFTranscodeSinkInfoProvider_Vtbl - where - Identity: IMFTranscodeSinkInfoProvider_Impl, - { - unsafe extern "system" fn SetOutputFile(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFTranscodeSinkInfoProvider_Impl, - { + pub const fn new() -> IMFTranscodeSinkInfoProvider_Vtbl { + unsafe extern "system" fn SetOutputFile(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTranscodeSinkInfoProvider_Impl::SetOutputFile(this, core::mem::transmute(&pwszfilename)).into() } - unsafe extern "system" fn SetOutputByteStream(this: *mut core::ffi::c_void, pbytestreamactivate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTranscodeSinkInfoProvider_Impl, - { + unsafe extern "system" fn SetOutputByteStream(this: *mut core::ffi::c_void, pbytestreamactivate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTranscodeSinkInfoProvider_Impl::SetOutputByteStream(this, windows_core::from_raw_borrowed(&pbytestreamactivate)).into() } - unsafe extern "system" fn SetProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTranscodeSinkInfoProvider_Impl, - { + unsafe extern "system" fn SetProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTranscodeSinkInfoProvider_Impl::SetProfile(this, windows_core::from_raw_borrowed(&pprofile)).into() } - unsafe extern "system" fn GetSinkInfo(this: *mut core::ffi::c_void, psinkinfo: *mut MF_TRANSCODE_SINK_INFO) -> windows_core::HRESULT - where - Identity: IMFTranscodeSinkInfoProvider_Impl, - { + unsafe extern "system" fn GetSinkInfo(this: *mut core::ffi::c_void, psinkinfo: *mut MF_TRANSCODE_SINK_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTranscodeSinkInfoProvider_Impl::GetSinkInfo(this) { Ok(ok__) => { @@ -20235,7 +15111,7 @@ impl IMFTranscodeSinkInfoProvider_Vtbl { iid == &::IID } } -pub trait IMFTransform_Impl: Sized { +pub trait IMFTransform_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamLimits(&self, pdwinputminimum: *mut u32, pdwinputmaximum: *mut u32, pdwoutputminimum: *mut u32, pdwoutputmaximum: *mut u32) -> windows_core::Result<()>; fn GetStreamCount(&self, pcinputstreams: *mut u32, pcoutputstreams: *mut u32) -> windows_core::Result<()>; fn GetStreamIDs(&self, dwinputidarraysize: u32, pdwinputids: *mut u32, dwoutputidarraysize: u32, pdwoutputids: *mut u32) -> windows_core::Result<()>; @@ -20262,42 +15138,24 @@ pub trait IMFTransform_Impl: Sized { } impl windows_core::RuntimeName for IMFTransform {} impl IMFTransform_Vtbl { - pub const fn new() -> IMFTransform_Vtbl - where - Identity: IMFTransform_Impl, - { - unsafe extern "system" fn GetStreamLimits(this: *mut core::ffi::c_void, pdwinputminimum: *mut u32, pdwinputmaximum: *mut u32, pdwoutputminimum: *mut u32, pdwoutputmaximum: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + pub const fn new() -> IMFTransform_Vtbl { + unsafe extern "system" fn GetStreamLimits(this: *mut core::ffi::c_void, pdwinputminimum: *mut u32, pdwinputmaximum: *mut u32, pdwoutputminimum: *mut u32, pdwoutputmaximum: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::GetStreamLimits(this, core::mem::transmute_copy(&pdwinputminimum), core::mem::transmute_copy(&pdwinputmaximum), core::mem::transmute_copy(&pdwoutputminimum), core::mem::transmute_copy(&pdwoutputmaximum)).into() } - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcinputstreams: *mut u32, pcoutputstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcinputstreams: *mut u32, pcoutputstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::GetStreamCount(this, core::mem::transmute_copy(&pcinputstreams), core::mem::transmute_copy(&pcoutputstreams)).into() } - unsafe extern "system" fn GetStreamIDs(this: *mut core::ffi::c_void, dwinputidarraysize: u32, pdwinputids: *mut u32, dwoutputidarraysize: u32, pdwoutputids: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetStreamIDs(this: *mut core::ffi::c_void, dwinputidarraysize: u32, pdwinputids: *mut u32, dwoutputidarraysize: u32, pdwoutputids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::GetStreamIDs(this, core::mem::transmute_copy(&dwinputidarraysize), core::mem::transmute_copy(&pdwinputids), core::mem::transmute_copy(&dwoutputidarraysize), core::mem::transmute_copy(&pdwoutputids)).into() } - unsafe extern "system" fn GetInputStreamInfo(this: *mut core::ffi::c_void, dwinputstreamid: u32, pstreaminfo: *mut MFT_INPUT_STREAM_INFO) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetInputStreamInfo(this: *mut core::ffi::c_void, dwinputstreamid: u32, pstreaminfo: *mut MFT_INPUT_STREAM_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::GetInputStreamInfo(this, core::mem::transmute_copy(&dwinputstreamid), core::mem::transmute_copy(&pstreaminfo)).into() } - unsafe extern "system" fn GetOutputStreamInfo(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pstreaminfo: *mut MFT_OUTPUT_STREAM_INFO) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetOutputStreamInfo(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pstreaminfo: *mut MFT_OUTPUT_STREAM_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTransform_Impl::GetOutputStreamInfo(this, core::mem::transmute_copy(&dwoutputstreamid)) { Ok(ok__) => { @@ -20307,10 +15165,7 @@ impl IMFTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTransform_Impl::GetAttributes(this) { Ok(ok__) => { @@ -20320,10 +15175,7 @@ impl IMFTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputStreamAttributes(this: *mut core::ffi::c_void, dwinputstreamid: u32, pattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetInputStreamAttributes(this: *mut core::ffi::c_void, dwinputstreamid: u32, pattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTransform_Impl::GetInputStreamAttributes(this, core::mem::transmute_copy(&dwinputstreamid)) { Ok(ok__) => { @@ -20333,10 +15185,7 @@ impl IMFTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputStreamAttributes(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetOutputStreamAttributes(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTransform_Impl::GetOutputStreamAttributes(this, core::mem::transmute_copy(&dwoutputstreamid)) { Ok(ok__) => { @@ -20346,24 +15195,15 @@ impl IMFTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteInputStream(this: *mut core::ffi::c_void, dwstreamid: u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn DeleteInputStream(this: *mut core::ffi::c_void, dwstreamid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::DeleteInputStream(this, core::mem::transmute_copy(&dwstreamid)).into() } - unsafe extern "system" fn AddInputStreams(this: *mut core::ffi::c_void, cstreams: u32, adwstreamids: *const u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn AddInputStreams(this: *mut core::ffi::c_void, cstreams: u32, adwstreamids: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::AddInputStreams(this, core::mem::transmute_copy(&cstreams), core::mem::transmute_copy(&adwstreamids)).into() } - unsafe extern "system" fn GetInputAvailableType(this: *mut core::ffi::c_void, dwinputstreamid: u32, dwtypeindex: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetInputAvailableType(this: *mut core::ffi::c_void, dwinputstreamid: u32, dwtypeindex: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTransform_Impl::GetInputAvailableType(this, core::mem::transmute_copy(&dwinputstreamid), core::mem::transmute_copy(&dwtypeindex)) { Ok(ok__) => { @@ -20373,10 +15213,7 @@ impl IMFTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputAvailableType(this: *mut core::ffi::c_void, dwoutputstreamid: u32, dwtypeindex: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetOutputAvailableType(this: *mut core::ffi::c_void, dwoutputstreamid: u32, dwtypeindex: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTransform_Impl::GetOutputAvailableType(this, core::mem::transmute_copy(&dwoutputstreamid), core::mem::transmute_copy(&dwtypeindex)) { Ok(ok__) => { @@ -20386,24 +15223,15 @@ impl IMFTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputType(this: *mut core::ffi::c_void, dwinputstreamid: u32, ptype: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn SetInputType(this: *mut core::ffi::c_void, dwinputstreamid: u32, ptype: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::SetInputType(this, core::mem::transmute_copy(&dwinputstreamid), windows_core::from_raw_borrowed(&ptype), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SetOutputType(this: *mut core::ffi::c_void, dwoutputstreamid: u32, ptype: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn SetOutputType(this: *mut core::ffi::c_void, dwoutputstreamid: u32, ptype: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::SetOutputType(this, core::mem::transmute_copy(&dwoutputstreamid), windows_core::from_raw_borrowed(&ptype), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetInputCurrentType(this: *mut core::ffi::c_void, dwinputstreamid: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetInputCurrentType(this: *mut core::ffi::c_void, dwinputstreamid: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTransform_Impl::GetInputCurrentType(this, core::mem::transmute_copy(&dwinputstreamid)) { Ok(ok__) => { @@ -20413,10 +15241,7 @@ impl IMFTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputCurrentType(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetOutputCurrentType(this: *mut core::ffi::c_void, dwoutputstreamid: u32, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTransform_Impl::GetOutputCurrentType(this, core::mem::transmute_copy(&dwoutputstreamid)) { Ok(ok__) => { @@ -20426,10 +15251,7 @@ impl IMFTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputStatus(this: *mut core::ffi::c_void, dwinputstreamid: u32, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetInputStatus(this: *mut core::ffi::c_void, dwinputstreamid: u32, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTransform_Impl::GetInputStatus(this, core::mem::transmute_copy(&dwinputstreamid)) { Ok(ok__) => { @@ -20439,10 +15261,7 @@ impl IMFTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputStatus(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn GetOutputStatus(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTransform_Impl::GetOutputStatus(this) { Ok(ok__) => { @@ -20452,38 +15271,23 @@ impl IMFTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputBounds(this: *mut core::ffi::c_void, hnslowerbound: i64, hnsupperbound: i64) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn SetOutputBounds(this: *mut core::ffi::c_void, hnslowerbound: i64, hnsupperbound: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::SetOutputBounds(this, core::mem::transmute_copy(&hnslowerbound), core::mem::transmute_copy(&hnsupperbound)).into() } - unsafe extern "system" fn ProcessEvent(this: *mut core::ffi::c_void, dwinputstreamid: u32, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn ProcessEvent(this: *mut core::ffi::c_void, dwinputstreamid: u32, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::ProcessEvent(this, core::mem::transmute_copy(&dwinputstreamid), windows_core::from_raw_borrowed(&pevent)).into() } - unsafe extern "system" fn ProcessMessage(this: *mut core::ffi::c_void, emessage: MFT_MESSAGE_TYPE, ulparam: usize) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn ProcessMessage(this: *mut core::ffi::c_void, emessage: MFT_MESSAGE_TYPE, ulparam: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::ProcessMessage(this, core::mem::transmute_copy(&emessage), core::mem::transmute_copy(&ulparam)).into() } - unsafe extern "system" fn ProcessInput(this: *mut core::ffi::c_void, dwinputstreamid: u32, psample: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn ProcessInput(this: *mut core::ffi::c_void, dwinputstreamid: u32, psample: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::ProcessInput(this, core::mem::transmute_copy(&dwinputstreamid), windows_core::from_raw_borrowed(&psample), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn ProcessOutput(this: *mut core::ffi::c_void, dwflags: u32, coutputbuffercount: u32, poutputsamples: *mut MFT_OUTPUT_DATA_BUFFER, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTransform_Impl, - { + unsafe extern "system" fn ProcessOutput(this: *mut core::ffi::c_void, dwflags: u32, coutputbuffercount: u32, poutputsamples: *mut MFT_OUTPUT_DATA_BUFFER, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTransform_Impl::ProcessOutput(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&coutputbuffercount), core::mem::transmute_copy(&poutputsamples), core::mem::transmute_copy(&pdwstatus)).into() } @@ -20518,19 +15322,13 @@ impl IMFTransform_Vtbl { iid == &::IID } } -pub trait IMFTrustedInput_Impl: Sized { +pub trait IMFTrustedInput_Impl: Sized + windows_core::IUnknownImpl { fn GetInputTrustAuthority(&self, dwstreamid: u32, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IMFTrustedInput {} impl IMFTrustedInput_Vtbl { - pub const fn new() -> IMFTrustedInput_Vtbl - where - Identity: IMFTrustedInput_Impl, - { - unsafe extern "system" fn GetInputTrustAuthority(this: *mut core::ffi::c_void, dwstreamid: u32, riid: *const windows_core::GUID, ppunkobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTrustedInput_Impl, - { + pub const fn new() -> IMFTrustedInput_Vtbl { + unsafe extern "system" fn GetInputTrustAuthority(this: *mut core::ffi::c_void, dwstreamid: u32, riid: *const windows_core::GUID, ppunkobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTrustedInput_Impl::GetInputTrustAuthority(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -20546,21 +15344,15 @@ impl IMFTrustedInput_Vtbl { iid == &::IID } } -pub trait IMFTrustedOutput_Impl: Sized { +pub trait IMFTrustedOutput_Impl: Sized + windows_core::IUnknownImpl { fn GetOutputTrustAuthorityCount(&self) -> windows_core::Result; fn GetOutputTrustAuthorityByIndex(&self, dwindex: u32) -> windows_core::Result; fn IsFinal(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFTrustedOutput {} impl IMFTrustedOutput_Vtbl { - pub const fn new() -> IMFTrustedOutput_Vtbl - where - Identity: IMFTrustedOutput_Impl, - { - unsafe extern "system" fn GetOutputTrustAuthorityCount(this: *mut core::ffi::c_void, pcoutputtrustauthorities: *mut u32) -> windows_core::HRESULT - where - Identity: IMFTrustedOutput_Impl, - { + pub const fn new() -> IMFTrustedOutput_Vtbl { + unsafe extern "system" fn GetOutputTrustAuthorityCount(this: *mut core::ffi::c_void, pcoutputtrustauthorities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTrustedOutput_Impl::GetOutputTrustAuthorityCount(this) { Ok(ok__) => { @@ -20570,10 +15362,7 @@ impl IMFTrustedOutput_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputTrustAuthorityByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppauthority: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFTrustedOutput_Impl, - { + unsafe extern "system" fn GetOutputTrustAuthorityByIndex(this: *mut core::ffi::c_void, dwindex: u32, ppauthority: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTrustedOutput_Impl::GetOutputTrustAuthorityByIndex(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -20583,10 +15372,7 @@ impl IMFTrustedOutput_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFinal(this: *mut core::ffi::c_void, pfisfinal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFTrustedOutput_Impl, - { + unsafe extern "system" fn IsFinal(this: *mut core::ffi::c_void, pfisfinal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTrustedOutput_Impl::IsFinal(this) { Ok(ok__) => { @@ -20612,14 +15398,8 @@ pub trait IMFVideoCaptureSampleAllocator_Impl: Sized + IMFVideoSampleAllocator_I } impl windows_core::RuntimeName for IMFVideoCaptureSampleAllocator {} impl IMFVideoCaptureSampleAllocator_Vtbl { - pub const fn new() -> IMFVideoCaptureSampleAllocator_Vtbl - where - Identity: IMFVideoCaptureSampleAllocator_Impl, - { - unsafe extern "system" fn InitializeCaptureSampleAllocator(this: *mut core::ffi::c_void, cbsamplesize: u32, cbcapturemetadatasize: u32, cbalignment: u32, cminimumsamples: u32, pattributes: *mut core::ffi::c_void, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoCaptureSampleAllocator_Impl, - { + pub const fn new() -> IMFVideoCaptureSampleAllocator_Vtbl { + unsafe extern "system" fn InitializeCaptureSampleAllocator(this: *mut core::ffi::c_void, cbsamplesize: u32, cbcapturemetadatasize: u32, cbalignment: u32, cminimumsamples: u32, pattributes: *mut core::ffi::c_void, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoCaptureSampleAllocator_Impl::InitializeCaptureSampleAllocator(this, core::mem::transmute_copy(&cbsamplesize), core::mem::transmute_copy(&cbcapturemetadatasize), core::mem::transmute_copy(&cbalignment), core::mem::transmute_copy(&cminimumsamples), windows_core::from_raw_borrowed(&pattributes), windows_core::from_raw_borrowed(&pmediatype)).into() } @@ -20632,19 +15412,13 @@ impl IMFVideoCaptureSampleAllocator_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFVideoDeviceID_Impl: Sized { +pub trait IMFVideoDeviceID_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceID(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFVideoDeviceID {} impl IMFVideoDeviceID_Vtbl { - pub const fn new() -> IMFVideoDeviceID_Vtbl - where - Identity: IMFVideoDeviceID_Impl, - { - unsafe extern "system" fn GetDeviceID(this: *mut core::ffi::c_void, pdeviceid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFVideoDeviceID_Impl, - { + pub const fn new() -> IMFVideoDeviceID_Vtbl { + unsafe extern "system" fn GetDeviceID(this: *mut core::ffi::c_void, pdeviceid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoDeviceID_Impl::GetDeviceID(this) { Ok(ok__) => { @@ -20661,7 +15435,7 @@ impl IMFVideoDeviceID_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IMFVideoDisplayControl_Impl: Sized { +pub trait IMFVideoDisplayControl_Impl: Sized + windows_core::IUnknownImpl { fn GetNativeVideoSize(&self, pszvideo: *mut super::super::Foundation::SIZE, pszarvideo: *mut super::super::Foundation::SIZE) -> windows_core::Result<()>; fn GetIdealVideoSize(&self, pszmin: *mut super::super::Foundation::SIZE, pszmax: *mut super::super::Foundation::SIZE) -> windows_core::Result<()>; fn SetVideoPosition(&self, pnrcsource: *const MFVideoNormalizedRect, prcdest: *const super::super::Foundation::RECT) -> windows_core::Result<()>; @@ -20683,49 +15457,28 @@ pub trait IMFVideoDisplayControl_Impl: Sized { impl windows_core::RuntimeName for IMFVideoDisplayControl {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IMFVideoDisplayControl_Vtbl { - pub const fn new() -> IMFVideoDisplayControl_Vtbl - where - Identity: IMFVideoDisplayControl_Impl, - { - unsafe extern "system" fn GetNativeVideoSize(this: *mut core::ffi::c_void, pszvideo: *mut super::super::Foundation::SIZE, pszarvideo: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + pub const fn new() -> IMFVideoDisplayControl_Vtbl { + unsafe extern "system" fn GetNativeVideoSize(this: *mut core::ffi::c_void, pszvideo: *mut super::super::Foundation::SIZE, pszarvideo: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::GetNativeVideoSize(this, core::mem::transmute_copy(&pszvideo), core::mem::transmute_copy(&pszarvideo)).into() } - unsafe extern "system" fn GetIdealVideoSize(this: *mut core::ffi::c_void, pszmin: *mut super::super::Foundation::SIZE, pszmax: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn GetIdealVideoSize(this: *mut core::ffi::c_void, pszmin: *mut super::super::Foundation::SIZE, pszmax: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::GetIdealVideoSize(this, core::mem::transmute_copy(&pszmin), core::mem::transmute_copy(&pszmax)).into() } - unsafe extern "system" fn SetVideoPosition(this: *mut core::ffi::c_void, pnrcsource: *const MFVideoNormalizedRect, prcdest: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn SetVideoPosition(this: *mut core::ffi::c_void, pnrcsource: *const MFVideoNormalizedRect, prcdest: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::SetVideoPosition(this, core::mem::transmute_copy(&pnrcsource), core::mem::transmute_copy(&prcdest)).into() } - unsafe extern "system" fn GetVideoPosition(this: *mut core::ffi::c_void, pnrcsource: *mut MFVideoNormalizedRect, prcdest: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn GetVideoPosition(this: *mut core::ffi::c_void, pnrcsource: *mut MFVideoNormalizedRect, prcdest: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::GetVideoPosition(this, core::mem::transmute_copy(&pnrcsource), core::mem::transmute_copy(&prcdest)).into() } - unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, dwaspectratiomode: u32) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn SetAspectRatioMode(this: *mut core::ffi::c_void, dwaspectratiomode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::SetAspectRatioMode(this, core::mem::transmute_copy(&dwaspectratiomode)).into() } - unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, pdwaspectratiomode: *mut u32) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn GetAspectRatioMode(this: *mut core::ffi::c_void, pdwaspectratiomode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoDisplayControl_Impl::GetAspectRatioMode(this) { Ok(ok__) => { @@ -20735,17 +15488,11 @@ impl IMFVideoDisplayControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVideoWindow(this: *mut core::ffi::c_void, hwndvideo: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn SetVideoWindow(this: *mut core::ffi::c_void, hwndvideo: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::SetVideoWindow(this, core::mem::transmute_copy(&hwndvideo)).into() } - unsafe extern "system" fn GetVideoWindow(this: *mut core::ffi::c_void, phwndvideo: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn GetVideoWindow(this: *mut core::ffi::c_void, phwndvideo: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoDisplayControl_Impl::GetVideoWindow(this) { Ok(ok__) => { @@ -20755,31 +15502,19 @@ impl IMFVideoDisplayControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RepaintVideo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn RepaintVideo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::RepaintVideo(this).into() } - unsafe extern "system" fn GetCurrentImage(this: *mut core::ffi::c_void, pbih: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER, pdib: *mut *mut u8, pcbdib: *mut u32, ptimestamp: *mut i64) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn GetCurrentImage(this: *mut core::ffi::c_void, pbih: *mut super::super::Graphics::Gdi::BITMAPINFOHEADER, pdib: *mut *mut u8, pcbdib: *mut u32, ptimestamp: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::GetCurrentImage(this, core::mem::transmute_copy(&pbih), core::mem::transmute_copy(&pdib), core::mem::transmute_copy(&pcbdib), core::mem::transmute_copy(&ptimestamp)).into() } - unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::SetBorderColor(this, core::mem::transmute_copy(&clr)).into() } - unsafe extern "system" fn GetBorderColor(this: *mut core::ffi::c_void, pclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn GetBorderColor(this: *mut core::ffi::c_void, pclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoDisplayControl_Impl::GetBorderColor(this) { Ok(ok__) => { @@ -20789,17 +15524,11 @@ impl IMFVideoDisplayControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: u32) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn SetRenderingPrefs(this: *mut core::ffi::c_void, dwrenderflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::SetRenderingPrefs(this, core::mem::transmute_copy(&dwrenderflags)).into() } - unsafe extern "system" fn GetRenderingPrefs(this: *mut core::ffi::c_void, pdwrenderflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn GetRenderingPrefs(this: *mut core::ffi::c_void, pdwrenderflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoDisplayControl_Impl::GetRenderingPrefs(this) { Ok(ok__) => { @@ -20809,17 +15538,11 @@ impl IMFVideoDisplayControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFullscreen(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn SetFullscreen(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::SetFullscreen(this, core::mem::transmute_copy(&ffullscreen)).into() } - unsafe extern "system" fn GetFullscreen(this: *mut core::ffi::c_void, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFVideoDisplayControl_Impl, - { + unsafe extern "system" fn GetFullscreen(this: *mut core::ffi::c_void, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoDisplayControl_Impl::GetFullscreen(this) { Ok(ok__) => { @@ -20859,21 +15582,12 @@ pub trait IMFVideoMediaType_Impl: Sized + IMFMediaType_Impl { } impl windows_core::RuntimeName for IMFVideoMediaType {} impl IMFVideoMediaType_Vtbl { - pub const fn new() -> IMFVideoMediaType_Vtbl - where - Identity: IMFVideoMediaType_Impl, - { - unsafe extern "system" fn GetVideoFormat(this: *mut core::ffi::c_void) -> *mut MFVIDEOFORMAT - where - Identity: IMFVideoMediaType_Impl, - { + pub const fn new() -> IMFVideoMediaType_Vtbl { + unsafe extern "system" fn GetVideoFormat(this: *mut core::ffi::c_void) -> *mut MFVIDEOFORMAT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoMediaType_Impl::GetVideoFormat(this) } - unsafe extern "system" fn GetVideoRepresentation(this: *mut core::ffi::c_void, guidrepresentation: windows_core::GUID, ppvrepresentation: *mut *mut core::ffi::c_void, lstride: i32) -> windows_core::HRESULT - where - Identity: IMFVideoMediaType_Impl, - { + unsafe extern "system" fn GetVideoRepresentation(this: *mut core::ffi::c_void, guidrepresentation: windows_core::GUID, ppvrepresentation: *mut *mut core::ffi::c_void, lstride: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoMediaType_Impl::GetVideoRepresentation(this, core::mem::transmute(&guidrepresentation), core::mem::transmute_copy(&ppvrepresentation), core::mem::transmute_copy(&lstride)).into() } @@ -20888,7 +15602,7 @@ impl IMFVideoMediaType_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] -pub trait IMFVideoMixerBitmap_Impl: Sized { +pub trait IMFVideoMixerBitmap_Impl: Sized + windows_core::IUnknownImpl { fn SetAlphaBitmap(&self, pbmpparms: *const MFVideoAlphaBitmap) -> windows_core::Result<()>; fn ClearAlphaBitmap(&self) -> windows_core::Result<()>; fn UpdateAlphaBitmapParameters(&self, pbmpparms: *const MFVideoAlphaBitmapParams) -> windows_core::Result<()>; @@ -20898,35 +15612,20 @@ pub trait IMFVideoMixerBitmap_Impl: Sized { impl windows_core::RuntimeName for IMFVideoMixerBitmap {} #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] impl IMFVideoMixerBitmap_Vtbl { - pub const fn new() -> IMFVideoMixerBitmap_Vtbl - where - Identity: IMFVideoMixerBitmap_Impl, - { - unsafe extern "system" fn SetAlphaBitmap(this: *mut core::ffi::c_void, pbmpparms: *const MFVideoAlphaBitmap) -> windows_core::HRESULT - where - Identity: IMFVideoMixerBitmap_Impl, - { + pub const fn new() -> IMFVideoMixerBitmap_Vtbl { + unsafe extern "system" fn SetAlphaBitmap(this: *mut core::ffi::c_void, pbmpparms: *const MFVideoAlphaBitmap) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoMixerBitmap_Impl::SetAlphaBitmap(this, core::mem::transmute_copy(&pbmpparms)).into() } - unsafe extern "system" fn ClearAlphaBitmap(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoMixerBitmap_Impl, - { + unsafe extern "system" fn ClearAlphaBitmap(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoMixerBitmap_Impl::ClearAlphaBitmap(this).into() } - unsafe extern "system" fn UpdateAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *const MFVideoAlphaBitmapParams) -> windows_core::HRESULT - where - Identity: IMFVideoMixerBitmap_Impl, - { + unsafe extern "system" fn UpdateAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *const MFVideoAlphaBitmapParams) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoMixerBitmap_Impl::UpdateAlphaBitmapParameters(this, core::mem::transmute_copy(&pbmpparms)).into() } - unsafe extern "system" fn GetAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *mut MFVideoAlphaBitmapParams) -> windows_core::HRESULT - where - Identity: IMFVideoMixerBitmap_Impl, - { + unsafe extern "system" fn GetAlphaBitmapParameters(this: *mut core::ffi::c_void, pbmpparms: *mut MFVideoAlphaBitmapParams) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoMixerBitmap_Impl::GetAlphaBitmapParameters(this, core::mem::transmute_copy(&pbmpparms)).into() } @@ -20942,7 +15641,7 @@ impl IMFVideoMixerBitmap_Vtbl { iid == &::IID } } -pub trait IMFVideoMixerControl_Impl: Sized { +pub trait IMFVideoMixerControl_Impl: Sized + windows_core::IUnknownImpl { fn SetStreamZOrder(&self, dwstreamid: u32, dwz: u32) -> windows_core::Result<()>; fn GetStreamZOrder(&self, dwstreamid: u32) -> windows_core::Result; fn SetStreamOutputRect(&self, dwstreamid: u32, pnrcoutput: *const MFVideoNormalizedRect) -> windows_core::Result<()>; @@ -20950,21 +15649,12 @@ pub trait IMFVideoMixerControl_Impl: Sized { } impl windows_core::RuntimeName for IMFVideoMixerControl {} impl IMFVideoMixerControl_Vtbl { - pub const fn new() -> IMFVideoMixerControl_Vtbl - where - Identity: IMFVideoMixerControl_Impl, - { - unsafe extern "system" fn SetStreamZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, dwz: u32) -> windows_core::HRESULT - where - Identity: IMFVideoMixerControl_Impl, - { + pub const fn new() -> IMFVideoMixerControl_Vtbl { + unsafe extern "system" fn SetStreamZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, dwz: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoMixerControl_Impl::SetStreamZOrder(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&dwz)).into() } - unsafe extern "system" fn GetStreamZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, pdwz: *mut u32) -> windows_core::HRESULT - where - Identity: IMFVideoMixerControl_Impl, - { + unsafe extern "system" fn GetStreamZOrder(this: *mut core::ffi::c_void, dwstreamid: u32, pdwz: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoMixerControl_Impl::GetStreamZOrder(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -20974,17 +15664,11 @@ impl IMFVideoMixerControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, pnrcoutput: *const MFVideoNormalizedRect) -> windows_core::HRESULT - where - Identity: IMFVideoMixerControl_Impl, - { + unsafe extern "system" fn SetStreamOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, pnrcoutput: *const MFVideoNormalizedRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoMixerControl_Impl::SetStreamOutputRect(this, core::mem::transmute_copy(&dwstreamid), core::mem::transmute_copy(&pnrcoutput)).into() } - unsafe extern "system" fn GetStreamOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, pnrcoutput: *mut MFVideoNormalizedRect) -> windows_core::HRESULT - where - Identity: IMFVideoMixerControl_Impl, - { + unsafe extern "system" fn GetStreamOutputRect(this: *mut core::ffi::c_void, dwstreamid: u32, pnrcoutput: *mut MFVideoNormalizedRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoMixerControl_Impl::GetStreamOutputRect(this, core::mem::transmute_copy(&dwstreamid)) { Ok(ok__) => { @@ -21012,21 +15696,12 @@ pub trait IMFVideoMixerControl2_Impl: Sized + IMFVideoMixerControl_Impl { } impl windows_core::RuntimeName for IMFVideoMixerControl2 {} impl IMFVideoMixerControl2_Vtbl { - pub const fn new() -> IMFVideoMixerControl2_Vtbl - where - Identity: IMFVideoMixerControl2_Impl, - { - unsafe extern "system" fn SetMixingPrefs(this: *mut core::ffi::c_void, dwmixflags: u32) -> windows_core::HRESULT - where - Identity: IMFVideoMixerControl2_Impl, - { + pub const fn new() -> IMFVideoMixerControl2_Vtbl { + unsafe extern "system" fn SetMixingPrefs(this: *mut core::ffi::c_void, dwmixflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoMixerControl2_Impl::SetMixingPrefs(this, core::mem::transmute_copy(&dwmixflags)).into() } - unsafe extern "system" fn GetMixingPrefs(this: *mut core::ffi::c_void, pdwmixflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMFVideoMixerControl2_Impl, - { + unsafe extern "system" fn GetMixingPrefs(this: *mut core::ffi::c_void, pdwmixflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoMixerControl2_Impl::GetMixingPrefs(this) { Ok(ok__) => { @@ -21046,19 +15721,13 @@ impl IMFVideoMixerControl2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFVideoPositionMapper_Impl: Sized { +pub trait IMFVideoPositionMapper_Impl: Sized + windows_core::IUnknownImpl { fn MapOutputCoordinateToInputStream(&self, xout: f32, yout: f32, dwoutputstreamindex: u32, dwinputstreamindex: u32, pxin: *mut f32, pyin: *mut f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFVideoPositionMapper {} impl IMFVideoPositionMapper_Vtbl { - pub const fn new() -> IMFVideoPositionMapper_Vtbl - where - Identity: IMFVideoPositionMapper_Impl, - { - unsafe extern "system" fn MapOutputCoordinateToInputStream(this: *mut core::ffi::c_void, xout: f32, yout: f32, dwoutputstreamindex: u32, dwinputstreamindex: u32, pxin: *mut f32, pyin: *mut f32) -> windows_core::HRESULT - where - Identity: IMFVideoPositionMapper_Impl, - { + pub const fn new() -> IMFVideoPositionMapper_Vtbl { + unsafe extern "system" fn MapOutputCoordinateToInputStream(this: *mut core::ffi::c_void, xout: f32, yout: f32, dwoutputstreamindex: u32, dwinputstreamindex: u32, pxin: *mut f32, pyin: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoPositionMapper_Impl::MapOutputCoordinateToInputStream(this, core::mem::transmute_copy(&xout), core::mem::transmute_copy(&yout), core::mem::transmute_copy(&dwoutputstreamindex), core::mem::transmute_copy(&dwinputstreamindex), core::mem::transmute_copy(&pxin), core::mem::transmute_copy(&pyin)).into() } @@ -21077,21 +15746,12 @@ pub trait IMFVideoPresenter_Impl: Sized + IMFClockStateSink_Impl { } impl windows_core::RuntimeName for IMFVideoPresenter {} impl IMFVideoPresenter_Vtbl { - pub const fn new() -> IMFVideoPresenter_Vtbl - where - Identity: IMFVideoPresenter_Impl, - { - unsafe extern "system" fn ProcessMessage(this: *mut core::ffi::c_void, emessage: MFVP_MESSAGE_TYPE, ulparam: usize) -> windows_core::HRESULT - where - Identity: IMFVideoPresenter_Impl, - { + pub const fn new() -> IMFVideoPresenter_Vtbl { + unsafe extern "system" fn ProcessMessage(this: *mut core::ffi::c_void, emessage: MFVP_MESSAGE_TYPE, ulparam: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoPresenter_Impl::ProcessMessage(this, core::mem::transmute_copy(&emessage), core::mem::transmute_copy(&ulparam)).into() } - unsafe extern "system" fn GetCurrentMediaType(this: *mut core::ffi::c_void, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoPresenter_Impl, - { + unsafe extern "system" fn GetCurrentMediaType(this: *mut core::ffi::c_void, ppmediatype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoPresenter_Impl::GetCurrentMediaType(this) { Ok(ok__) => { @@ -21112,7 +15772,7 @@ impl IMFVideoPresenter_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D9")] -pub trait IMFVideoProcessor_Impl: Sized { +pub trait IMFVideoProcessor_Impl: Sized + windows_core::IUnknownImpl { fn GetAvailableVideoProcessorModes(&self, lpdwnumprocessingmodes: *mut u32, ppvideoprocessingmodes: *mut *mut windows_core::GUID) -> windows_core::Result<()>; fn GetVideoProcessorCaps(&self, lpvideoprocessormode: *const windows_core::GUID, lpvideoprocessorcaps: *mut DXVA2_VideoProcessorCaps) -> windows_core::Result<()>; fn GetVideoProcessorMode(&self) -> windows_core::Result; @@ -21130,28 +15790,16 @@ pub trait IMFVideoProcessor_Impl: Sized { impl windows_core::RuntimeName for IMFVideoProcessor {} #[cfg(feature = "Win32_Graphics_Direct3D9")] impl IMFVideoProcessor_Vtbl { - pub const fn new() -> IMFVideoProcessor_Vtbl - where - Identity: IMFVideoProcessor_Impl, - { - unsafe extern "system" fn GetAvailableVideoProcessorModes(this: *mut core::ffi::c_void, lpdwnumprocessingmodes: *mut u32, ppvideoprocessingmodes: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + pub const fn new() -> IMFVideoProcessor_Vtbl { + unsafe extern "system" fn GetAvailableVideoProcessorModes(this: *mut core::ffi::c_void, lpdwnumprocessingmodes: *mut u32, ppvideoprocessingmodes: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessor_Impl::GetAvailableVideoProcessorModes(this, core::mem::transmute_copy(&lpdwnumprocessingmodes), core::mem::transmute_copy(&ppvideoprocessingmodes)).into() } - unsafe extern "system" fn GetVideoProcessorCaps(this: *mut core::ffi::c_void, lpvideoprocessormode: *const windows_core::GUID, lpvideoprocessorcaps: *mut DXVA2_VideoProcessorCaps) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn GetVideoProcessorCaps(this: *mut core::ffi::c_void, lpvideoprocessormode: *const windows_core::GUID, lpvideoprocessorcaps: *mut DXVA2_VideoProcessorCaps) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessor_Impl::GetVideoProcessorCaps(this, core::mem::transmute_copy(&lpvideoprocessormode), core::mem::transmute_copy(&lpvideoprocessorcaps)).into() } - unsafe extern "system" fn GetVideoProcessorMode(this: *mut core::ffi::c_void, lpmode: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn GetVideoProcessorMode(this: *mut core::ffi::c_void, lpmode: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoProcessor_Impl::GetVideoProcessorMode(this) { Ok(ok__) => { @@ -21161,17 +15809,11 @@ impl IMFVideoProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVideoProcessorMode(this: *mut core::ffi::c_void, lpmode: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn SetVideoProcessorMode(this: *mut core::ffi::c_void, lpmode: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessor_Impl::SetVideoProcessorMode(this, core::mem::transmute_copy(&lpmode)).into() } - unsafe extern "system" fn GetProcAmpRange(this: *mut core::ffi::c_void, dwproperty: u32, pproprange: *mut DXVA2_ValueRange) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn GetProcAmpRange(this: *mut core::ffi::c_void, dwproperty: u32, pproprange: *mut DXVA2_ValueRange) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoProcessor_Impl::GetProcAmpRange(this, core::mem::transmute_copy(&dwproperty)) { Ok(ok__) => { @@ -21181,10 +15823,7 @@ impl IMFVideoProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcAmpValues(this: *mut core::ffi::c_void, dwflags: u32, values: *mut DXVA2_ProcAmpValues) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn GetProcAmpValues(this: *mut core::ffi::c_void, dwflags: u32, values: *mut DXVA2_ProcAmpValues) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoProcessor_Impl::GetProcAmpValues(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -21194,17 +15833,11 @@ impl IMFVideoProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProcAmpValues(this: *mut core::ffi::c_void, dwflags: u32, pvalues: *const DXVA2_ProcAmpValues) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn SetProcAmpValues(this: *mut core::ffi::c_void, dwflags: u32, pvalues: *const DXVA2_ProcAmpValues) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessor_Impl::SetProcAmpValues(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pvalues)).into() } - unsafe extern "system" fn GetFilteringRange(this: *mut core::ffi::c_void, dwproperty: u32, pproprange: *mut DXVA2_ValueRange) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn GetFilteringRange(this: *mut core::ffi::c_void, dwproperty: u32, pproprange: *mut DXVA2_ValueRange) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoProcessor_Impl::GetFilteringRange(this, core::mem::transmute_copy(&dwproperty)) { Ok(ok__) => { @@ -21214,10 +15847,7 @@ impl IMFVideoProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilteringValue(this: *mut core::ffi::c_void, dwproperty: u32, pvalue: *mut DXVA2_Fixed32) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn GetFilteringValue(this: *mut core::ffi::c_void, dwproperty: u32, pvalue: *mut DXVA2_Fixed32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoProcessor_Impl::GetFilteringValue(this, core::mem::transmute_copy(&dwproperty)) { Ok(ok__) => { @@ -21227,17 +15857,11 @@ impl IMFVideoProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFilteringValue(this: *mut core::ffi::c_void, dwproperty: u32, pvalue: *const DXVA2_Fixed32) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn SetFilteringValue(this: *mut core::ffi::c_void, dwproperty: u32, pvalue: *const DXVA2_Fixed32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessor_Impl::SetFilteringValue(this, core::mem::transmute_copy(&dwproperty), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, lpclrbkg: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, lpclrbkg: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoProcessor_Impl::GetBackgroundColor(this) { Ok(ok__) => { @@ -21247,10 +15871,7 @@ impl IMFVideoProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, clrbkg: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IMFVideoProcessor_Impl, - { + unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, clrbkg: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessor_Impl::SetBackgroundColor(this, core::mem::transmute_copy(&clrbkg)).into() } @@ -21274,7 +15895,7 @@ impl IMFVideoProcessor_Vtbl { iid == &::IID } } -pub trait IMFVideoProcessorControl_Impl: Sized { +pub trait IMFVideoProcessorControl_Impl: Sized + windows_core::IUnknownImpl { fn SetBorderColor(&self, pbordercolor: *const MFARGB) -> windows_core::Result<()>; fn SetSourceRectangle(&self, psrcrect: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn SetDestinationRectangle(&self, pdstrect: *const super::super::Foundation::RECT) -> windows_core::Result<()>; @@ -21284,49 +15905,28 @@ pub trait IMFVideoProcessorControl_Impl: Sized { } impl windows_core::RuntimeName for IMFVideoProcessorControl {} impl IMFVideoProcessorControl_Vtbl { - pub const fn new() -> IMFVideoProcessorControl_Vtbl - where - Identity: IMFVideoProcessorControl_Impl, - { - unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, pbordercolor: *const MFARGB) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl_Impl, - { + pub const fn new() -> IMFVideoProcessorControl_Vtbl { + unsafe extern "system" fn SetBorderColor(this: *mut core::ffi::c_void, pbordercolor: *const MFARGB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl_Impl::SetBorderColor(this, core::mem::transmute_copy(&pbordercolor)).into() } - unsafe extern "system" fn SetSourceRectangle(this: *mut core::ffi::c_void, psrcrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl_Impl, - { + unsafe extern "system" fn SetSourceRectangle(this: *mut core::ffi::c_void, psrcrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl_Impl::SetSourceRectangle(this, core::mem::transmute_copy(&psrcrect)).into() } - unsafe extern "system" fn SetDestinationRectangle(this: *mut core::ffi::c_void, pdstrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl_Impl, - { + unsafe extern "system" fn SetDestinationRectangle(this: *mut core::ffi::c_void, pdstrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl_Impl::SetDestinationRectangle(this, core::mem::transmute_copy(&pdstrect)).into() } - unsafe extern "system" fn SetMirror(this: *mut core::ffi::c_void, emirror: MF_VIDEO_PROCESSOR_MIRROR) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl_Impl, - { + unsafe extern "system" fn SetMirror(this: *mut core::ffi::c_void, emirror: MF_VIDEO_PROCESSOR_MIRROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl_Impl::SetMirror(this, core::mem::transmute_copy(&emirror)).into() } - unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, erotation: MF_VIDEO_PROCESSOR_ROTATION) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl_Impl, - { + unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, erotation: MF_VIDEO_PROCESSOR_ROTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl_Impl::SetRotation(this, core::mem::transmute_copy(&erotation)).into() } - unsafe extern "system" fn SetConstrictionSize(this: *mut core::ffi::c_void, pconstrictionsize: *const super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl_Impl, - { + unsafe extern "system" fn SetConstrictionSize(this: *mut core::ffi::c_void, pconstrictionsize: *const super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl_Impl::SetConstrictionSize(this, core::mem::transmute_copy(&pconstrictionsize)).into() } @@ -21351,28 +15951,16 @@ pub trait IMFVideoProcessorControl2_Impl: Sized + IMFVideoProcessorControl_Impl } impl windows_core::RuntimeName for IMFVideoProcessorControl2 {} impl IMFVideoProcessorControl2_Vtbl { - pub const fn new() -> IMFVideoProcessorControl2_Vtbl - where - Identity: IMFVideoProcessorControl2_Impl, - { - unsafe extern "system" fn SetRotationOverride(this: *mut core::ffi::c_void, uirotation: u32) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl2_Impl, - { + pub const fn new() -> IMFVideoProcessorControl2_Vtbl { + unsafe extern "system" fn SetRotationOverride(this: *mut core::ffi::c_void, uirotation: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl2_Impl::SetRotationOverride(this, core::mem::transmute_copy(&uirotation)).into() } - unsafe extern "system" fn EnableHardwareEffects(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl2_Impl, - { + unsafe extern "system" fn EnableHardwareEffects(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl2_Impl::EnableHardwareEffects(this, core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn GetSupportedHardwareEffects(this: *mut core::ffi::c_void, puisupport: *mut u32) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl2_Impl, - { + unsafe extern "system" fn GetSupportedHardwareEffects(this: *mut core::ffi::c_void, puisupport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoProcessorControl2_Impl::GetSupportedHardwareEffects(this) { Ok(ok__) => { @@ -21401,14 +15989,8 @@ pub trait IMFVideoProcessorControl3_Impl: Sized + IMFVideoProcessorControl2_Impl } impl windows_core::RuntimeName for IMFVideoProcessorControl3 {} impl IMFVideoProcessorControl3_Vtbl { - pub const fn new() -> IMFVideoProcessorControl3_Vtbl - where - Identity: IMFVideoProcessorControl3_Impl, - { - unsafe extern "system" fn GetNaturalOutputType(this: *mut core::ffi::c_void, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl3_Impl, - { + pub const fn new() -> IMFVideoProcessorControl3_Vtbl { + unsafe extern "system" fn GetNaturalOutputType(this: *mut core::ffi::c_void, pptype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoProcessorControl3_Impl::GetNaturalOutputType(this) { Ok(ok__) => { @@ -21418,24 +16000,15 @@ impl IMFVideoProcessorControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableSphericalVideoProcessing(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL, eformat: MFVideoSphericalFormat, eprojectionmode: MFVideoSphericalProjectionMode) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl3_Impl, - { + unsafe extern "system" fn EnableSphericalVideoProcessing(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL, eformat: MFVideoSphericalFormat, eprojectionmode: MFVideoSphericalProjectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl3_Impl::EnableSphericalVideoProcessing(this, core::mem::transmute_copy(&fenable), core::mem::transmute_copy(&eformat), core::mem::transmute_copy(&eprojectionmode)).into() } - unsafe extern "system" fn SetSphericalVideoProperties(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, w: f32, fieldofview: f32) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl3_Impl, - { + unsafe extern "system" fn SetSphericalVideoProperties(this: *mut core::ffi::c_void, x: f32, y: f32, z: f32, w: f32, fieldofview: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl3_Impl::SetSphericalVideoProperties(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&z), core::mem::transmute_copy(&w), core::mem::transmute_copy(&fieldofview)).into() } - unsafe extern "system" fn SetOutputDevice(this: *mut core::ffi::c_void, poutputdevice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoProcessorControl3_Impl, - { + unsafe extern "system" fn SetOutputDevice(this: *mut core::ffi::c_void, poutputdevice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl3_Impl::SetOutputDevice(this, windows_core::from_raw_borrowed(&poutputdevice)).into() } @@ -21451,19 +16024,13 @@ impl IMFVideoProcessorControl3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMFVideoRenderer_Impl: Sized { +pub trait IMFVideoRenderer_Impl: Sized + windows_core::IUnknownImpl { fn InitializeRenderer(&self, pvideomixer: Option<&IMFTransform>, pvideopresenter: Option<&IMFVideoPresenter>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFVideoRenderer {} impl IMFVideoRenderer_Vtbl { - pub const fn new() -> IMFVideoRenderer_Vtbl - where - Identity: IMFVideoRenderer_Impl, - { - unsafe extern "system" fn InitializeRenderer(this: *mut core::ffi::c_void, pvideomixer: *mut core::ffi::c_void, pvideopresenter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoRenderer_Impl, - { + pub const fn new() -> IMFVideoRenderer_Vtbl { + unsafe extern "system" fn InitializeRenderer(this: *mut core::ffi::c_void, pvideomixer: *mut core::ffi::c_void, pvideopresenter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoRenderer_Impl::InitializeRenderer(this, windows_core::from_raw_borrowed(&pvideomixer), windows_core::from_raw_borrowed(&pvideopresenter)).into() } @@ -21473,19 +16040,13 @@ impl IMFVideoRenderer_Vtbl { iid == &::IID } } -pub trait IMFVideoRendererEffectControl_Impl: Sized { +pub trait IMFVideoRendererEffectControl_Impl: Sized + windows_core::IUnknownImpl { fn OnAppServiceConnectionEstablished(&self, pappserviceconnection: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFVideoRendererEffectControl {} impl IMFVideoRendererEffectControl_Vtbl { - pub const fn new() -> IMFVideoRendererEffectControl_Vtbl - where - Identity: IMFVideoRendererEffectControl_Impl, - { - unsafe extern "system" fn OnAppServiceConnectionEstablished(this: *mut core::ffi::c_void, pappserviceconnection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoRendererEffectControl_Impl, - { + pub const fn new() -> IMFVideoRendererEffectControl_Vtbl { + unsafe extern "system" fn OnAppServiceConnectionEstablished(this: *mut core::ffi::c_void, pappserviceconnection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoRendererEffectControl_Impl::OnAppServiceConnectionEstablished(this, windows_core::from_raw_borrowed(&pappserviceconnection)).into() } @@ -21498,7 +16059,7 @@ impl IMFVideoRendererEffectControl_Vtbl { iid == &::IID } } -pub trait IMFVideoSampleAllocator_Impl: Sized { +pub trait IMFVideoSampleAllocator_Impl: Sized + windows_core::IUnknownImpl { fn SetDirectXManager(&self, pmanager: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn UninitializeSampleAllocator(&self) -> windows_core::Result<()>; fn InitializeSampleAllocator(&self, crequestedframes: u32, pmediatype: Option<&IMFMediaType>) -> windows_core::Result<()>; @@ -21506,35 +16067,20 @@ pub trait IMFVideoSampleAllocator_Impl: Sized { } impl windows_core::RuntimeName for IMFVideoSampleAllocator {} impl IMFVideoSampleAllocator_Vtbl { - pub const fn new() -> IMFVideoSampleAllocator_Vtbl - where - Identity: IMFVideoSampleAllocator_Impl, - { - unsafe extern "system" fn SetDirectXManager(this: *mut core::ffi::c_void, pmanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoSampleAllocator_Impl, - { + pub const fn new() -> IMFVideoSampleAllocator_Vtbl { + unsafe extern "system" fn SetDirectXManager(this: *mut core::ffi::c_void, pmanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoSampleAllocator_Impl::SetDirectXManager(this, windows_core::from_raw_borrowed(&pmanager)).into() } - unsafe extern "system" fn UninitializeSampleAllocator(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoSampleAllocator_Impl, - { + unsafe extern "system" fn UninitializeSampleAllocator(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoSampleAllocator_Impl::UninitializeSampleAllocator(this).into() } - unsafe extern "system" fn InitializeSampleAllocator(this: *mut core::ffi::c_void, crequestedframes: u32, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoSampleAllocator_Impl, - { + unsafe extern "system" fn InitializeSampleAllocator(this: *mut core::ffi::c_void, crequestedframes: u32, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoSampleAllocator_Impl::InitializeSampleAllocator(this, core::mem::transmute_copy(&crequestedframes), windows_core::from_raw_borrowed(&pmediatype)).into() } - unsafe extern "system" fn AllocateSample(this: *mut core::ffi::c_void, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoSampleAllocator_Impl, - { + unsafe extern "system" fn AllocateSample(this: *mut core::ffi::c_void, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoSampleAllocator_Impl::AllocateSample(this) { Ok(ok__) => { @@ -21556,27 +16102,18 @@ impl IMFVideoSampleAllocator_Vtbl { iid == &::IID } } -pub trait IMFVideoSampleAllocatorCallback_Impl: Sized { +pub trait IMFVideoSampleAllocatorCallback_Impl: Sized + windows_core::IUnknownImpl { fn SetCallback(&self, pnotify: Option<&IMFVideoSampleAllocatorNotify>) -> windows_core::Result<()>; fn GetFreeSampleCount(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMFVideoSampleAllocatorCallback {} impl IMFVideoSampleAllocatorCallback_Vtbl { - pub const fn new() -> IMFVideoSampleAllocatorCallback_Vtbl - where - Identity: IMFVideoSampleAllocatorCallback_Impl, - { - unsafe extern "system" fn SetCallback(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoSampleAllocatorCallback_Impl, - { + pub const fn new() -> IMFVideoSampleAllocatorCallback_Vtbl { + unsafe extern "system" fn SetCallback(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoSampleAllocatorCallback_Impl::SetCallback(this, windows_core::from_raw_borrowed(&pnotify)).into() } - unsafe extern "system" fn GetFreeSampleCount(this: *mut core::ffi::c_void, plsamples: *mut i32) -> windows_core::HRESULT - where - Identity: IMFVideoSampleAllocatorCallback_Impl, - { + unsafe extern "system" fn GetFreeSampleCount(this: *mut core::ffi::c_void, plsamples: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoSampleAllocatorCallback_Impl::GetFreeSampleCount(this) { Ok(ok__) => { @@ -21601,14 +16138,8 @@ pub trait IMFVideoSampleAllocatorEx_Impl: Sized + IMFVideoSampleAllocator_Impl { } impl windows_core::RuntimeName for IMFVideoSampleAllocatorEx {} impl IMFVideoSampleAllocatorEx_Vtbl { - pub const fn new() -> IMFVideoSampleAllocatorEx_Vtbl - where - Identity: IMFVideoSampleAllocatorEx_Impl, - { - unsafe extern "system" fn InitializeSampleAllocatorEx(this: *mut core::ffi::c_void, cinitialsamples: u32, cmaximumsamples: u32, pattributes: *mut core::ffi::c_void, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoSampleAllocatorEx_Impl, - { + pub const fn new() -> IMFVideoSampleAllocatorEx_Vtbl { + unsafe extern "system" fn InitializeSampleAllocatorEx(this: *mut core::ffi::c_void, cinitialsamples: u32, cmaximumsamples: u32, pattributes: *mut core::ffi::c_void, pmediatype: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoSampleAllocatorEx_Impl::InitializeSampleAllocatorEx(this, core::mem::transmute_copy(&cinitialsamples), core::mem::transmute_copy(&cmaximumsamples), windows_core::from_raw_borrowed(&pattributes), windows_core::from_raw_borrowed(&pmediatype)).into() } @@ -21618,19 +16149,13 @@ impl IMFVideoSampleAllocatorEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFVideoSampleAllocatorNotify_Impl: Sized { +pub trait IMFVideoSampleAllocatorNotify_Impl: Sized + windows_core::IUnknownImpl { fn NotifyRelease(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMFVideoSampleAllocatorNotify {} impl IMFVideoSampleAllocatorNotify_Vtbl { - pub const fn new() -> IMFVideoSampleAllocatorNotify_Vtbl - where - Identity: IMFVideoSampleAllocatorNotify_Impl, - { - unsafe extern "system" fn NotifyRelease(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoSampleAllocatorNotify_Impl, - { + pub const fn new() -> IMFVideoSampleAllocatorNotify_Vtbl { + unsafe extern "system" fn NotifyRelease(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoSampleAllocatorNotify_Impl::NotifyRelease(this).into() } @@ -21645,14 +16170,8 @@ pub trait IMFVideoSampleAllocatorNotifyEx_Impl: Sized + IMFVideoSampleAllocatorN } impl windows_core::RuntimeName for IMFVideoSampleAllocatorNotifyEx {} impl IMFVideoSampleAllocatorNotifyEx_Vtbl { - pub const fn new() -> IMFVideoSampleAllocatorNotifyEx_Vtbl - where - Identity: IMFVideoSampleAllocatorNotifyEx_Impl, - { - unsafe extern "system" fn NotifyPrune(this: *mut core::ffi::c_void, __midl__imfvideosampleallocatornotifyex0000: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVideoSampleAllocatorNotifyEx_Impl, - { + pub const fn new() -> IMFVideoSampleAllocatorNotifyEx_Vtbl { + unsafe extern "system" fn NotifyPrune(this: *mut core::ffi::c_void, __midl__imfvideosampleallocatornotifyex0000: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoSampleAllocatorNotifyEx_Impl::NotifyPrune(this, windows_core::from_raw_borrowed(&__midl__imfvideosampleallocatornotifyex0000)).into() } @@ -21680,56 +16199,32 @@ pub trait IMFVirtualCamera_Impl: Sized + IMFAttributes_Impl { impl windows_core::RuntimeName for IMFVirtualCamera {} #[cfg(feature = "Win32_Devices_Properties")] impl IMFVirtualCamera_Vtbl { - pub const fn new() -> IMFVirtualCamera_Vtbl - where - Identity: IMFVirtualCamera_Impl, - { - unsafe extern "system" fn AddDeviceSourceInfo(this: *mut core::ffi::c_void, devicesourceinfo: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + pub const fn new() -> IMFVirtualCamera_Vtbl { + unsafe extern "system" fn AddDeviceSourceInfo(this: *mut core::ffi::c_void, devicesourceinfo: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVirtualCamera_Impl::AddDeviceSourceInfo(this, core::mem::transmute(&devicesourceinfo)).into() } - unsafe extern "system" fn AddProperty(this: *mut core::ffi::c_void, pkey: *const super::super::Devices::Properties::DEVPROPKEY, r#type: super::super::Devices::Properties::DEVPROPTYPE, pbdata: *const u8, cbdata: u32) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + unsafe extern "system" fn AddProperty(this: *mut core::ffi::c_void, pkey: *const super::super::Devices::Properties::DEVPROPKEY, r#type: super::super::Devices::Properties::DEVPROPTYPE, pbdata: *const u8, cbdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVirtualCamera_Impl::AddProperty(this, core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn AddRegistryEntry(this: *mut core::ffi::c_void, entryname: windows_core::PCWSTR, subkeypath: windows_core::PCWSTR, dwregtype: u32, pbdata: *const u8, cbdata: u32) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + unsafe extern "system" fn AddRegistryEntry(this: *mut core::ffi::c_void, entryname: windows_core::PCWSTR, subkeypath: windows_core::PCWSTR, dwregtype: u32, pbdata: *const u8, cbdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVirtualCamera_Impl::AddRegistryEntry(this, core::mem::transmute(&entryname), core::mem::transmute(&subkeypath), core::mem::transmute_copy(&dwregtype), core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVirtualCamera_Impl::Start(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVirtualCamera_Impl::Stop(this).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVirtualCamera_Impl::Remove(this).into() } - unsafe extern "system" fn GetMediaSource(this: *mut core::ffi::c_void, ppmediasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + unsafe extern "system" fn GetMediaSource(this: *mut core::ffi::c_void, ppmediasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVirtualCamera_Impl::GetMediaSource(this) { Ok(ok__) => { @@ -21739,17 +16234,11 @@ impl IMFVirtualCamera_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendCameraProperty(this: *mut core::ffi::c_void, propertyset: *const windows_core::GUID, propertyid: u32, propertyflags: u32, propertypayload: *mut core::ffi::c_void, propertypayloadlength: u32, data: *mut core::ffi::c_void, datalength: u32, datawritten: *mut u32) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + unsafe extern "system" fn SendCameraProperty(this: *mut core::ffi::c_void, propertyset: *const windows_core::GUID, propertyid: u32, propertyflags: u32, propertypayload: *mut core::ffi::c_void, propertypayloadlength: u32, data: *mut core::ffi::c_void, datalength: u32, datawritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVirtualCamera_Impl::SendCameraProperty(this, core::mem::transmute_copy(&propertyset), core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&propertyflags), core::mem::transmute_copy(&propertypayload), core::mem::transmute_copy(&propertypayloadlength), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datalength), core::mem::transmute_copy(&datawritten)).into() } - unsafe extern "system" fn CreateSyncEvent(this: *mut core::ffi::c_void, kseventset: *const windows_core::GUID, kseventid: u32, kseventflags: u32, eventhandle: super::super::Foundation::HANDLE, camerasyncobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + unsafe extern "system" fn CreateSyncEvent(this: *mut core::ffi::c_void, kseventset: *const windows_core::GUID, kseventid: u32, kseventflags: u32, eventhandle: super::super::Foundation::HANDLE, camerasyncobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVirtualCamera_Impl::CreateSyncEvent(this, core::mem::transmute_copy(&kseventset), core::mem::transmute_copy(&kseventid), core::mem::transmute_copy(&kseventflags), core::mem::transmute_copy(&eventhandle)) { Ok(ok__) => { @@ -21759,10 +16248,7 @@ impl IMFVirtualCamera_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSyncSemaphore(this: *mut core::ffi::c_void, kseventset: *const windows_core::GUID, kseventid: u32, kseventflags: u32, semaphorehandle: super::super::Foundation::HANDLE, semaphoreadjustment: i32, camerasyncobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + unsafe extern "system" fn CreateSyncSemaphore(this: *mut core::ffi::c_void, kseventset: *const windows_core::GUID, kseventid: u32, kseventflags: u32, semaphorehandle: super::super::Foundation::HANDLE, semaphoreadjustment: i32, camerasyncobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVirtualCamera_Impl::CreateSyncSemaphore(this, core::mem::transmute_copy(&kseventset), core::mem::transmute_copy(&kseventid), core::mem::transmute_copy(&kseventflags), core::mem::transmute_copy(&semaphorehandle), core::mem::transmute_copy(&semaphoreadjustment)) { Ok(ok__) => { @@ -21772,10 +16258,7 @@ impl IMFVirtualCamera_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFVirtualCamera_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVirtualCamera_Impl::Shutdown(this).into() } @@ -21798,7 +16281,7 @@ impl IMFVirtualCamera_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMFWorkQueueServices_Impl: Sized { +pub trait IMFWorkQueueServices_Impl: Sized + windows_core::IUnknownImpl { fn BeginRegisterTopologyWorkQueuesWithMMCSS(&self, pcallback: Option<&IMFAsyncCallback>, pstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EndRegisterTopologyWorkQueuesWithMMCSS(&self, presult: Option<&IMFAsyncResult>) -> windows_core::Result<()>; fn BeginUnregisterTopologyWorkQueuesWithMMCSS(&self, pcallback: Option<&IMFAsyncCallback>, pstate: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -21814,49 +16297,28 @@ pub trait IMFWorkQueueServices_Impl: Sized { } impl windows_core::RuntimeName for IMFWorkQueueServices {} impl IMFWorkQueueServices_Vtbl { - pub const fn new() -> IMFWorkQueueServices_Vtbl - where - Identity: IMFWorkQueueServices_Impl, - { - unsafe extern "system" fn BeginRegisterTopologyWorkQueuesWithMMCSS(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + pub const fn new() -> IMFWorkQueueServices_Vtbl { + unsafe extern "system" fn BeginRegisterTopologyWorkQueuesWithMMCSS(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFWorkQueueServices_Impl::BeginRegisterTopologyWorkQueuesWithMMCSS(this, windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pstate)).into() } - unsafe extern "system" fn EndRegisterTopologyWorkQueuesWithMMCSS(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn EndRegisterTopologyWorkQueuesWithMMCSS(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFWorkQueueServices_Impl::EndRegisterTopologyWorkQueuesWithMMCSS(this, windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn BeginUnregisterTopologyWorkQueuesWithMMCSS(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn BeginUnregisterTopologyWorkQueuesWithMMCSS(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFWorkQueueServices_Impl::BeginUnregisterTopologyWorkQueuesWithMMCSS(this, windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pstate)).into() } - unsafe extern "system" fn EndUnregisterTopologyWorkQueuesWithMMCSS(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn EndUnregisterTopologyWorkQueuesWithMMCSS(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFWorkQueueServices_Impl::EndUnregisterTopologyWorkQueuesWithMMCSS(this, windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn GetTopologyWorkQueueMMCSSClass(this: *mut core::ffi::c_void, dwtopologyworkqueueid: u32, pwszclass: windows_core::PWSTR, pcchclass: *mut u32) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn GetTopologyWorkQueueMMCSSClass(this: *mut core::ffi::c_void, dwtopologyworkqueueid: u32, pwszclass: windows_core::PWSTR, pcchclass: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFWorkQueueServices_Impl::GetTopologyWorkQueueMMCSSClass(this, core::mem::transmute_copy(&dwtopologyworkqueueid), core::mem::transmute_copy(&pwszclass), core::mem::transmute_copy(&pcchclass)).into() } - unsafe extern "system" fn GetTopologyWorkQueueMMCSSTaskId(this: *mut core::ffi::c_void, dwtopologyworkqueueid: u32, pdwtaskid: *mut u32) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn GetTopologyWorkQueueMMCSSTaskId(this: *mut core::ffi::c_void, dwtopologyworkqueueid: u32, pdwtaskid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFWorkQueueServices_Impl::GetTopologyWorkQueueMMCSSTaskId(this, core::mem::transmute_copy(&dwtopologyworkqueueid)) { Ok(ok__) => { @@ -21866,17 +16328,11 @@ impl IMFWorkQueueServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginRegisterPlatformWorkQueueWithMMCSS(this: *mut core::ffi::c_void, dwplatformworkqueue: u32, wszclass: windows_core::PCWSTR, dwtaskid: u32, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn BeginRegisterPlatformWorkQueueWithMMCSS(this: *mut core::ffi::c_void, dwplatformworkqueue: u32, wszclass: windows_core::PCWSTR, dwtaskid: u32, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFWorkQueueServices_Impl::BeginRegisterPlatformWorkQueueWithMMCSS(this, core::mem::transmute_copy(&dwplatformworkqueue), core::mem::transmute(&wszclass), core::mem::transmute_copy(&dwtaskid), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pstate)).into() } - unsafe extern "system" fn EndRegisterPlatformWorkQueueWithMMCSS(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pdwtaskid: *mut u32) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn EndRegisterPlatformWorkQueueWithMMCSS(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void, pdwtaskid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFWorkQueueServices_Impl::EndRegisterPlatformWorkQueueWithMMCSS(this, windows_core::from_raw_borrowed(&presult)) { Ok(ok__) => { @@ -21886,31 +16342,19 @@ impl IMFWorkQueueServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginUnregisterPlatformWorkQueueWithMMCSS(this: *mut core::ffi::c_void, dwplatformworkqueue: u32, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn BeginUnregisterPlatformWorkQueueWithMMCSS(this: *mut core::ffi::c_void, dwplatformworkqueue: u32, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFWorkQueueServices_Impl::BeginUnregisterPlatformWorkQueueWithMMCSS(this, core::mem::transmute_copy(&dwplatformworkqueue), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pstate)).into() } - unsafe extern "system" fn EndUnregisterPlatformWorkQueueWithMMCSS(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn EndUnregisterPlatformWorkQueueWithMMCSS(this: *mut core::ffi::c_void, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFWorkQueueServices_Impl::EndUnregisterPlatformWorkQueueWithMMCSS(this, windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn GetPlaftormWorkQueueMMCSSClass(this: *mut core::ffi::c_void, dwplatformworkqueueid: u32, pwszclass: windows_core::PWSTR, pcchclass: *mut u32) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn GetPlaftormWorkQueueMMCSSClass(this: *mut core::ffi::c_void, dwplatformworkqueueid: u32, pwszclass: windows_core::PWSTR, pcchclass: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFWorkQueueServices_Impl::GetPlaftormWorkQueueMMCSSClass(this, core::mem::transmute_copy(&dwplatformworkqueueid), core::mem::transmute_copy(&pwszclass), core::mem::transmute_copy(&pcchclass)).into() } - unsafe extern "system" fn GetPlatformWorkQueueMMCSSTaskId(this: *mut core::ffi::c_void, dwplatformworkqueueid: u32, pdwtaskid: *mut u32) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServices_Impl, - { + unsafe extern "system" fn GetPlatformWorkQueueMMCSSTaskId(this: *mut core::ffi::c_void, dwplatformworkqueueid: u32, pdwtaskid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFWorkQueueServices_Impl::GetPlatformWorkQueueMMCSSTaskId(this, core::mem::transmute_copy(&dwplatformworkqueueid)) { Ok(ok__) => { @@ -21947,14 +16391,8 @@ pub trait IMFWorkQueueServicesEx_Impl: Sized + IMFWorkQueueServices_Impl { } impl windows_core::RuntimeName for IMFWorkQueueServicesEx {} impl IMFWorkQueueServicesEx_Vtbl { - pub const fn new() -> IMFWorkQueueServicesEx_Vtbl - where - Identity: IMFWorkQueueServicesEx_Impl, - { - unsafe extern "system" fn GetTopologyWorkQueueMMCSSPriority(this: *mut core::ffi::c_void, dwtopologyworkqueueid: u32, plpriority: *mut i32) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServicesEx_Impl, - { + pub const fn new() -> IMFWorkQueueServicesEx_Vtbl { + unsafe extern "system" fn GetTopologyWorkQueueMMCSSPriority(this: *mut core::ffi::c_void, dwtopologyworkqueueid: u32, plpriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFWorkQueueServicesEx_Impl::GetTopologyWorkQueueMMCSSPriority(this, core::mem::transmute_copy(&dwtopologyworkqueueid)) { Ok(ok__) => { @@ -21964,17 +16402,11 @@ impl IMFWorkQueueServicesEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginRegisterPlatformWorkQueueWithMMCSSEx(this: *mut core::ffi::c_void, dwplatformworkqueue: u32, wszclass: windows_core::PCWSTR, dwtaskid: u32, lpriority: i32, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServicesEx_Impl, - { + unsafe extern "system" fn BeginRegisterPlatformWorkQueueWithMMCSSEx(this: *mut core::ffi::c_void, dwplatformworkqueue: u32, wszclass: windows_core::PCWSTR, dwtaskid: u32, lpriority: i32, pcallback: *mut core::ffi::c_void, pstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFWorkQueueServicesEx_Impl::BeginRegisterPlatformWorkQueueWithMMCSSEx(this, core::mem::transmute_copy(&dwplatformworkqueue), core::mem::transmute(&wszclass), core::mem::transmute_copy(&dwtaskid), core::mem::transmute_copy(&lpriority), windows_core::from_raw_borrowed(&pcallback), windows_core::from_raw_borrowed(&pstate)).into() } - unsafe extern "system" fn GetPlatformWorkQueueMMCSSPriority(this: *mut core::ffi::c_void, dwplatformworkqueueid: u32, plpriority: *mut i32) -> windows_core::HRESULT - where - Identity: IMFWorkQueueServicesEx_Impl, - { + unsafe extern "system" fn GetPlatformWorkQueueMMCSSPriority(this: *mut core::ffi::c_void, dwplatformworkqueueid: u32, plpriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFWorkQueueServicesEx_Impl::GetPlatformWorkQueueMMCSSPriority(this, core::mem::transmute_copy(&dwplatformworkqueueid)) { Ok(ok__) => { @@ -21995,7 +16427,7 @@ impl IMFWorkQueueServicesEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IOPMVideoOutput_Impl: Sized { +pub trait IOPMVideoOutput_Impl: Sized + windows_core::IUnknownImpl { fn StartInitialization(&self, prnrandomnumber: *mut OPM_RANDOM_NUMBER, ppbcertificate: *mut *mut u8, pulcertificatelength: *mut u32) -> windows_core::Result<()>; fn FinishInitialization(&self, pparameters: *const OPM_ENCRYPTED_INITIALIZATION_PARAMETERS) -> windows_core::Result<()>; fn GetInformation(&self, pparameters: *const OPM_GET_INFO_PARAMETERS, prequestedinformation: *mut OPM_REQUESTED_INFORMATION) -> windows_core::Result<()>; @@ -22004,42 +16436,24 @@ pub trait IOPMVideoOutput_Impl: Sized { } impl windows_core::RuntimeName for IOPMVideoOutput {} impl IOPMVideoOutput_Vtbl { - pub const fn new() -> IOPMVideoOutput_Vtbl - where - Identity: IOPMVideoOutput_Impl, - { - unsafe extern "system" fn StartInitialization(this: *mut core::ffi::c_void, prnrandomnumber: *mut OPM_RANDOM_NUMBER, ppbcertificate: *mut *mut u8, pulcertificatelength: *mut u32) -> windows_core::HRESULT - where - Identity: IOPMVideoOutput_Impl, - { + pub const fn new() -> IOPMVideoOutput_Vtbl { + unsafe extern "system" fn StartInitialization(this: *mut core::ffi::c_void, prnrandomnumber: *mut OPM_RANDOM_NUMBER, ppbcertificate: *mut *mut u8, pulcertificatelength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOPMVideoOutput_Impl::StartInitialization(this, core::mem::transmute_copy(&prnrandomnumber), core::mem::transmute_copy(&ppbcertificate), core::mem::transmute_copy(&pulcertificatelength)).into() } - unsafe extern "system" fn FinishInitialization(this: *mut core::ffi::c_void, pparameters: *const OPM_ENCRYPTED_INITIALIZATION_PARAMETERS) -> windows_core::HRESULT - where - Identity: IOPMVideoOutput_Impl, - { + unsafe extern "system" fn FinishInitialization(this: *mut core::ffi::c_void, pparameters: *const OPM_ENCRYPTED_INITIALIZATION_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOPMVideoOutput_Impl::FinishInitialization(this, core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn GetInformation(this: *mut core::ffi::c_void, pparameters: *const OPM_GET_INFO_PARAMETERS, prequestedinformation: *mut OPM_REQUESTED_INFORMATION) -> windows_core::HRESULT - where - Identity: IOPMVideoOutput_Impl, - { + unsafe extern "system" fn GetInformation(this: *mut core::ffi::c_void, pparameters: *const OPM_GET_INFO_PARAMETERS, prequestedinformation: *mut OPM_REQUESTED_INFORMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOPMVideoOutput_Impl::GetInformation(this, core::mem::transmute_copy(&pparameters), core::mem::transmute_copy(&prequestedinformation)).into() } - unsafe extern "system" fn COPPCompatibleGetInformation(this: *mut core::ffi::c_void, pparameters: *const OPM_COPP_COMPATIBLE_GET_INFO_PARAMETERS, prequestedinformation: *mut OPM_REQUESTED_INFORMATION) -> windows_core::HRESULT - where - Identity: IOPMVideoOutput_Impl, - { + unsafe extern "system" fn COPPCompatibleGetInformation(this: *mut core::ffi::c_void, pparameters: *const OPM_COPP_COMPATIBLE_GET_INFO_PARAMETERS, prequestedinformation: *mut OPM_REQUESTED_INFORMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOPMVideoOutput_Impl::COPPCompatibleGetInformation(this, core::mem::transmute_copy(&pparameters), core::mem::transmute_copy(&prequestedinformation)).into() } - unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, pparameters: *const OPM_CONFIGURE_PARAMETERS, uladditionalparameterssize: u32, pbadditionalparameters: *const u8) -> windows_core::HRESULT - where - Identity: IOPMVideoOutput_Impl, - { + unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, pparameters: *const OPM_CONFIGURE_PARAMETERS, uladditionalparameterssize: u32, pbadditionalparameters: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOPMVideoOutput_Impl::Configure(this, core::mem::transmute_copy(&pparameters), core::mem::transmute_copy(&uladditionalparameterssize), core::mem::transmute_copy(&pbadditionalparameters)).into() } @@ -22056,27 +16470,18 @@ impl IOPMVideoOutput_Vtbl { iid == &::IID } } -pub trait IPlayToControl_Impl: Sized { +pub trait IPlayToControl_Impl: Sized + windows_core::IUnknownImpl { fn Connect(&self, pfactory: Option<&IMFSharingEngineClassFactory>) -> windows_core::Result<()>; fn Disconnect(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPlayToControl {} impl IPlayToControl_Vtbl { - pub const fn new() -> IPlayToControl_Vtbl - where - Identity: IPlayToControl_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pfactory: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayToControl_Impl, - { + pub const fn new() -> IPlayToControl_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pfactory: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlayToControl_Impl::Connect(this, windows_core::from_raw_borrowed(&pfactory)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayToControl_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlayToControl_Impl::Disconnect(this).into() } @@ -22091,14 +16496,8 @@ pub trait IPlayToControlWithCapabilities_Impl: Sized + IPlayToControl_Impl { } impl windows_core::RuntimeName for IPlayToControlWithCapabilities {} impl IPlayToControlWithCapabilities_Vtbl { - pub const fn new() -> IPlayToControlWithCapabilities_Vtbl - where - Identity: IPlayToControlWithCapabilities_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pcapabilities: *mut PLAYTO_SOURCE_CREATEFLAGS) -> windows_core::HRESULT - where - Identity: IPlayToControlWithCapabilities_Impl, - { + pub const fn new() -> IPlayToControlWithCapabilities_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pcapabilities: *mut PLAYTO_SOURCE_CREATEFLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayToControlWithCapabilities_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -22114,19 +16513,13 @@ impl IPlayToControlWithCapabilities_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPlayToSourceClassFactory_Impl: Sized { +pub trait IPlayToSourceClassFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, dwflags: u32, pcontrol: Option<&IPlayToControl>) -> windows_core::Result; } impl windows_core::RuntimeName for IPlayToSourceClassFactory {} impl IPlayToSourceClassFactory_Vtbl { - pub const fn new() -> IPlayToSourceClassFactory_Vtbl - where - Identity: IPlayToSourceClassFactory_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, dwflags: u32, pcontrol: *mut core::ffi::c_void, ppsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayToSourceClassFactory_Impl, - { + pub const fn new() -> IPlayToSourceClassFactory_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, dwflags: u32, pcontrol: *mut core::ffi::c_void, ppsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPlayToSourceClassFactory_Impl::CreateInstance(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pcontrol)) { Ok(ok__) => { @@ -22142,7 +16535,7 @@ impl IPlayToSourceClassFactory_Vtbl { iid == &::IID } } -pub trait IToc_Impl: Sized { +pub trait IToc_Impl: Sized + windows_core::IUnknownImpl { fn SetDescriptor(&self, pdescriptor: *mut TOC_DESCRIPTOR) -> windows_core::Result<()>; fn GetDescriptor(&self, pdescriptor: *mut TOC_DESCRIPTOR) -> windows_core::Result<()>; fn SetDescription(&self, pwszdescription: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -22157,63 +16550,36 @@ pub trait IToc_Impl: Sized { } impl windows_core::RuntimeName for IToc {} impl IToc_Vtbl { - pub const fn new() -> IToc_Vtbl - where - Identity: IToc_Impl, - { - unsafe extern "system" fn SetDescriptor(this: *mut core::ffi::c_void, pdescriptor: *mut TOC_DESCRIPTOR) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + pub const fn new() -> IToc_Vtbl { + unsafe extern "system" fn SetDescriptor(this: *mut core::ffi::c_void, pdescriptor: *mut TOC_DESCRIPTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToc_Impl::SetDescriptor(this, core::mem::transmute_copy(&pdescriptor)).into() } - unsafe extern "system" fn GetDescriptor(this: *mut core::ffi::c_void, pdescriptor: *mut TOC_DESCRIPTOR) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + unsafe extern "system" fn GetDescriptor(this: *mut core::ffi::c_void, pdescriptor: *mut TOC_DESCRIPTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToc_Impl::GetDescriptor(this, core::mem::transmute_copy(&pdescriptor)).into() } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pwszdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pwszdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToc_Impl::SetDescription(this, core::mem::transmute(&pwszdescription)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pwdescriptionsize: *mut u16, pwszdescription: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pwdescriptionsize: *mut u16, pwszdescription: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToc_Impl::GetDescription(this, core::mem::transmute_copy(&pwdescriptionsize), core::mem::transmute_copy(&pwszdescription)).into() } - unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, dwcontextsize: u32, pbtcontext: *mut u8) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, dwcontextsize: u32, pbtcontext: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToc_Impl::SetContext(this, core::mem::transmute_copy(&dwcontextsize), core::mem::transmute_copy(&pbtcontext)).into() } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, pdwcontextsize: *mut u32, pbtcontext: *mut u8) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, pdwcontextsize: *mut u32, pbtcontext: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToc_Impl::GetContext(this, core::mem::transmute_copy(&pdwcontextsize), core::mem::transmute_copy(&pbtcontext)).into() } - unsafe extern "system" fn GetEntryListCount(this: *mut core::ffi::c_void, pwcount: *mut u16) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + unsafe extern "system" fn GetEntryListCount(this: *mut core::ffi::c_void, pwcount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToc_Impl::GetEntryListCount(this, core::mem::transmute_copy(&pwcount)).into() } - unsafe extern "system" fn GetEntryListByIndex(this: *mut core::ffi::c_void, wentrylistindex: u16, ppentrylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + unsafe extern "system" fn GetEntryListByIndex(this: *mut core::ffi::c_void, wentrylistindex: u16, ppentrylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IToc_Impl::GetEntryListByIndex(this, core::mem::transmute_copy(&wentrylistindex)) { Ok(ok__) => { @@ -22223,24 +16589,15 @@ impl IToc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEntryList(this: *mut core::ffi::c_void, pentrylist: *mut core::ffi::c_void, pwentrylistindex: *mut u16) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + unsafe extern "system" fn AddEntryList(this: *mut core::ffi::c_void, pentrylist: *mut core::ffi::c_void, pwentrylistindex: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToc_Impl::AddEntryList(this, windows_core::from_raw_borrowed(&pentrylist), core::mem::transmute_copy(&pwentrylistindex)).into() } - unsafe extern "system" fn AddEntryListByIndex(this: *mut core::ffi::c_void, wentrylistindex: u16, pentrylist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + unsafe extern "system" fn AddEntryListByIndex(this: *mut core::ffi::c_void, wentrylistindex: u16, pentrylist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToc_Impl::AddEntryListByIndex(this, core::mem::transmute_copy(&wentrylistindex), windows_core::from_raw_borrowed(&pentrylist)).into() } - unsafe extern "system" fn RemoveEntryListByIndex(this: *mut core::ffi::c_void, wentrylistindex: u16) -> windows_core::HRESULT - where - Identity: IToc_Impl, - { + unsafe extern "system" fn RemoveEntryListByIndex(this: *mut core::ffi::c_void, wentrylistindex: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToc_Impl::RemoveEntryListByIndex(this, core::mem::transmute_copy(&wentrylistindex)).into() } @@ -22263,7 +16620,7 @@ impl IToc_Vtbl { iid == &::IID } } -pub trait ITocCollection_Impl: Sized { +pub trait ITocCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetEntryCount(&self, pdwentrycount: *mut u32) -> windows_core::Result<()>; fn GetEntryByIndex(&self, dwentryindex: u32) -> windows_core::Result; fn AddEntry(&self, ptoc: Option<&IToc>, pdwentryindex: *mut u32) -> windows_core::Result<()>; @@ -22272,21 +16629,12 @@ pub trait ITocCollection_Impl: Sized { } impl windows_core::RuntimeName for ITocCollection {} impl ITocCollection_Vtbl { - pub const fn new() -> ITocCollection_Vtbl - where - Identity: ITocCollection_Impl, - { - unsafe extern "system" fn GetEntryCount(this: *mut core::ffi::c_void, pdwentrycount: *mut u32) -> windows_core::HRESULT - where - Identity: ITocCollection_Impl, - { + pub const fn new() -> ITocCollection_Vtbl { + unsafe extern "system" fn GetEntryCount(this: *mut core::ffi::c_void, pdwentrycount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocCollection_Impl::GetEntryCount(this, core::mem::transmute_copy(&pdwentrycount)).into() } - unsafe extern "system" fn GetEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32, pptoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITocCollection_Impl, - { + unsafe extern "system" fn GetEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32, pptoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITocCollection_Impl::GetEntryByIndex(this, core::mem::transmute_copy(&dwentryindex)) { Ok(ok__) => { @@ -22296,24 +16644,15 @@ impl ITocCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEntry(this: *mut core::ffi::c_void, ptoc: *mut core::ffi::c_void, pdwentryindex: *mut u32) -> windows_core::HRESULT - where - Identity: ITocCollection_Impl, - { + unsafe extern "system" fn AddEntry(this: *mut core::ffi::c_void, ptoc: *mut core::ffi::c_void, pdwentryindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocCollection_Impl::AddEntry(this, windows_core::from_raw_borrowed(&ptoc), core::mem::transmute_copy(&pdwentryindex)).into() } - unsafe extern "system" fn AddEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32, ptoc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITocCollection_Impl, - { + unsafe extern "system" fn AddEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32, ptoc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocCollection_Impl::AddEntryByIndex(this, core::mem::transmute_copy(&dwentryindex), windows_core::from_raw_borrowed(&ptoc)).into() } - unsafe extern "system" fn RemoveEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32) -> windows_core::HRESULT - where - Identity: ITocCollection_Impl, - { + unsafe extern "system" fn RemoveEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocCollection_Impl::RemoveEntryByIndex(this, core::mem::transmute_copy(&dwentryindex)).into() } @@ -22330,7 +16669,7 @@ impl ITocCollection_Vtbl { iid == &::IID } } -pub trait ITocEntry_Impl: Sized { +pub trait ITocEntry_Impl: Sized + windows_core::IUnknownImpl { fn SetTitle(&self, pwsztitle: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetTitle(&self, pwtitlesize: *mut u16, pwsztitle: windows_core::PWSTR) -> windows_core::Result<()>; fn SetDescriptor(&self, pdescriptor: *mut TOC_ENTRY_DESCRIPTOR) -> windows_core::Result<()>; @@ -22342,63 +16681,36 @@ pub trait ITocEntry_Impl: Sized { } impl windows_core::RuntimeName for ITocEntry {} impl ITocEntry_Vtbl { - pub const fn new() -> ITocEntry_Vtbl - where - Identity: ITocEntry_Impl, - { - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, pwsztitle: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITocEntry_Impl, - { + pub const fn new() -> ITocEntry_Vtbl { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, pwsztitle: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntry_Impl::SetTitle(this, core::mem::transmute(&pwsztitle)).into() } - unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, pwtitlesize: *mut u16, pwsztitle: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITocEntry_Impl, - { + unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, pwtitlesize: *mut u16, pwsztitle: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntry_Impl::GetTitle(this, core::mem::transmute_copy(&pwtitlesize), core::mem::transmute_copy(&pwsztitle)).into() } - unsafe extern "system" fn SetDescriptor(this: *mut core::ffi::c_void, pdescriptor: *mut TOC_ENTRY_DESCRIPTOR) -> windows_core::HRESULT - where - Identity: ITocEntry_Impl, - { + unsafe extern "system" fn SetDescriptor(this: *mut core::ffi::c_void, pdescriptor: *mut TOC_ENTRY_DESCRIPTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntry_Impl::SetDescriptor(this, core::mem::transmute_copy(&pdescriptor)).into() } - unsafe extern "system" fn GetDescriptor(this: *mut core::ffi::c_void, pdescriptor: *mut TOC_ENTRY_DESCRIPTOR) -> windows_core::HRESULT - where - Identity: ITocEntry_Impl, - { + unsafe extern "system" fn GetDescriptor(this: *mut core::ffi::c_void, pdescriptor: *mut TOC_ENTRY_DESCRIPTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntry_Impl::GetDescriptor(this, core::mem::transmute_copy(&pdescriptor)).into() } - unsafe extern "system" fn SetSubEntries(this: *mut core::ffi::c_void, dwnumsubentries: u32, pwsubentryindices: *mut u16) -> windows_core::HRESULT - where - Identity: ITocEntry_Impl, - { + unsafe extern "system" fn SetSubEntries(this: *mut core::ffi::c_void, dwnumsubentries: u32, pwsubentryindices: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntry_Impl::SetSubEntries(this, core::mem::transmute_copy(&dwnumsubentries), core::mem::transmute_copy(&pwsubentryindices)).into() } - unsafe extern "system" fn GetSubEntries(this: *mut core::ffi::c_void, pdwnumsubentries: *mut u32, pwsubentryindices: *mut u16) -> windows_core::HRESULT - where - Identity: ITocEntry_Impl, - { + unsafe extern "system" fn GetSubEntries(this: *mut core::ffi::c_void, pdwnumsubentries: *mut u32, pwsubentryindices: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntry_Impl::GetSubEntries(this, core::mem::transmute_copy(&pdwnumsubentries), core::mem::transmute_copy(&pwsubentryindices)).into() } - unsafe extern "system" fn SetDescriptionData(this: *mut core::ffi::c_void, dwdescriptiondatasize: u32, pbtdescriptiondata: *mut u8, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITocEntry_Impl, - { + unsafe extern "system" fn SetDescriptionData(this: *mut core::ffi::c_void, dwdescriptiondatasize: u32, pbtdescriptiondata: *mut u8, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntry_Impl::SetDescriptionData(this, core::mem::transmute_copy(&dwdescriptiondatasize), core::mem::transmute_copy(&pbtdescriptiondata), core::mem::transmute_copy(&pguidtype)).into() } - unsafe extern "system" fn GetDescriptionData(this: *mut core::ffi::c_void, pdwdescriptiondatasize: *mut u32, pbtdescriptiondata: *mut u8, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITocEntry_Impl, - { + unsafe extern "system" fn GetDescriptionData(this: *mut core::ffi::c_void, pdwdescriptiondatasize: *mut u32, pbtdescriptiondata: *mut u8, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntry_Impl::GetDescriptionData(this, core::mem::transmute_copy(&pdwdescriptiondatasize), core::mem::transmute_copy(&pbtdescriptiondata), core::mem::transmute_copy(&pguidtype)).into() } @@ -22418,7 +16730,7 @@ impl ITocEntry_Vtbl { iid == &::IID } } -pub trait ITocEntryList_Impl: Sized { +pub trait ITocEntryList_Impl: Sized + windows_core::IUnknownImpl { fn GetEntryCount(&self, pdwentrycount: *mut u32) -> windows_core::Result<()>; fn GetEntryByIndex(&self, dwentryindex: u32) -> windows_core::Result; fn AddEntry(&self, pentry: Option<&ITocEntry>, pdwentryindex: *mut u32) -> windows_core::Result<()>; @@ -22427,21 +16739,12 @@ pub trait ITocEntryList_Impl: Sized { } impl windows_core::RuntimeName for ITocEntryList {} impl ITocEntryList_Vtbl { - pub const fn new() -> ITocEntryList_Vtbl - where - Identity: ITocEntryList_Impl, - { - unsafe extern "system" fn GetEntryCount(this: *mut core::ffi::c_void, pdwentrycount: *mut u32) -> windows_core::HRESULT - where - Identity: ITocEntryList_Impl, - { + pub const fn new() -> ITocEntryList_Vtbl { + unsafe extern "system" fn GetEntryCount(this: *mut core::ffi::c_void, pdwentrycount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntryList_Impl::GetEntryCount(this, core::mem::transmute_copy(&pdwentrycount)).into() } - unsafe extern "system" fn GetEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32, ppentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITocEntryList_Impl, - { + unsafe extern "system" fn GetEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32, ppentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITocEntryList_Impl::GetEntryByIndex(this, core::mem::transmute_copy(&dwentryindex)) { Ok(ok__) => { @@ -22451,24 +16754,15 @@ impl ITocEntryList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEntry(this: *mut core::ffi::c_void, pentry: *mut core::ffi::c_void, pdwentryindex: *mut u32) -> windows_core::HRESULT - where - Identity: ITocEntryList_Impl, - { + unsafe extern "system" fn AddEntry(this: *mut core::ffi::c_void, pentry: *mut core::ffi::c_void, pdwentryindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntryList_Impl::AddEntry(this, windows_core::from_raw_borrowed(&pentry), core::mem::transmute_copy(&pdwentryindex)).into() } - unsafe extern "system" fn AddEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32, pentry: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITocEntryList_Impl, - { + unsafe extern "system" fn AddEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32, pentry: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntryList_Impl::AddEntryByIndex(this, core::mem::transmute_copy(&dwentryindex), windows_core::from_raw_borrowed(&pentry)).into() } - unsafe extern "system" fn RemoveEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32) -> windows_core::HRESULT - where - Identity: ITocEntryList_Impl, - { + unsafe extern "system" fn RemoveEntryByIndex(this: *mut core::ffi::c_void, dwentryindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocEntryList_Impl::RemoveEntryByIndex(this, core::mem::transmute_copy(&dwentryindex)).into() } @@ -22485,7 +16779,7 @@ impl ITocEntryList_Vtbl { iid == &::IID } } -pub trait ITocParser_Impl: Sized { +pub trait ITocParser_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, pwszfilename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetTocCount(&self, enumtocpostype: TOC_POS_TYPE, pdwtoccount: *mut u32) -> windows_core::Result<()>; fn GetTocByIndex(&self, enumtocpostype: TOC_POS_TYPE, dwtocindex: u32) -> windows_core::Result; @@ -22497,28 +16791,16 @@ pub trait ITocParser_Impl: Sized { } impl windows_core::RuntimeName for ITocParser {} impl ITocParser_Vtbl { - pub const fn new() -> ITocParser_Vtbl - where - Identity: ITocParser_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITocParser_Impl, - { + pub const fn new() -> ITocParser_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocParser_Impl::Init(this, core::mem::transmute(&pwszfilename)).into() } - unsafe extern "system" fn GetTocCount(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, pdwtoccount: *mut u32) -> windows_core::HRESULT - where - Identity: ITocParser_Impl, - { + unsafe extern "system" fn GetTocCount(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, pdwtoccount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocParser_Impl::GetTocCount(this, core::mem::transmute_copy(&enumtocpostype), core::mem::transmute_copy(&pdwtoccount)).into() } - unsafe extern "system" fn GetTocByIndex(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, dwtocindex: u32, pptoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITocParser_Impl, - { + unsafe extern "system" fn GetTocByIndex(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, dwtocindex: u32, pptoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITocParser_Impl::GetTocByIndex(this, core::mem::transmute_copy(&enumtocpostype), core::mem::transmute_copy(&dwtocindex)) { Ok(ok__) => { @@ -22528,10 +16810,7 @@ impl ITocParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTocByType(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, guidtoctype: windows_core::GUID, pptocs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITocParser_Impl, - { + unsafe extern "system" fn GetTocByType(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, guidtoctype: windows_core::GUID, pptocs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITocParser_Impl::GetTocByType(this, core::mem::transmute_copy(&enumtocpostype), core::mem::transmute(&guidtoctype)) { Ok(ok__) => { @@ -22541,31 +16820,19 @@ impl ITocParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddToc(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, ptoc: *mut core::ffi::c_void, pdwtocindex: *mut u32) -> windows_core::HRESULT - where - Identity: ITocParser_Impl, - { + unsafe extern "system" fn AddToc(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, ptoc: *mut core::ffi::c_void, pdwtocindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocParser_Impl::AddToc(this, core::mem::transmute_copy(&enumtocpostype), windows_core::from_raw_borrowed(&ptoc), core::mem::transmute_copy(&pdwtocindex)).into() } - unsafe extern "system" fn RemoveTocByIndex(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, dwtocindex: u32) -> windows_core::HRESULT - where - Identity: ITocParser_Impl, - { + unsafe extern "system" fn RemoveTocByIndex(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, dwtocindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocParser_Impl::RemoveTocByIndex(this, core::mem::transmute_copy(&enumtocpostype), core::mem::transmute_copy(&dwtocindex)).into() } - unsafe extern "system" fn RemoveTocByType(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, guidtoctype: windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITocParser_Impl, - { + unsafe extern "system" fn RemoveTocByType(this: *mut core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, guidtoctype: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocParser_Impl::RemoveTocByType(this, core::mem::transmute_copy(&enumtocpostype), core::mem::transmute(&guidtoctype)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITocParser_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITocParser_Impl::Commit(this).into() } @@ -22585,19 +16852,13 @@ impl ITocParser_Vtbl { iid == &::IID } } -pub trait IValidateBinding_Impl: Sized { +pub trait IValidateBinding_Impl: Sized + windows_core::IUnknownImpl { fn GetIdentifier(&self, guidlicensorid: &windows_core::GUID, pbephemeron: *const u8, cbephemeron: u32, ppbblobvalidationid: *mut *mut u8, pcbblobsize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IValidateBinding {} impl IValidateBinding_Vtbl { - pub const fn new() -> IValidateBinding_Vtbl - where - Identity: IValidateBinding_Impl, - { - unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, guidlicensorid: windows_core::GUID, pbephemeron: *const u8, cbephemeron: u32, ppbblobvalidationid: *mut *mut u8, pcbblobsize: *mut u32) -> windows_core::HRESULT - where - Identity: IValidateBinding_Impl, - { + pub const fn new() -> IValidateBinding_Vtbl { + unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, guidlicensorid: windows_core::GUID, pbephemeron: *const u8, cbephemeron: u32, ppbblobvalidationid: *mut *mut u8, pcbblobsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValidateBinding_Impl::GetIdentifier(this, core::mem::transmute(&guidlicensorid), core::mem::transmute_copy(&pbephemeron), core::mem::transmute_copy(&cbephemeron), core::mem::transmute_copy(&ppbblobvalidationid), core::mem::transmute_copy(&pcbblobsize)).into() } @@ -22607,7 +16868,7 @@ impl IValidateBinding_Vtbl { iid == &::IID } } -pub trait IWMCodecLeakyBucket_Impl: Sized { +pub trait IWMCodecLeakyBucket_Impl: Sized + windows_core::IUnknownImpl { fn SetBufferSizeBits(&self, ulbuffersize: u32) -> windows_core::Result<()>; fn GetBufferSizeBits(&self, pulbuffersize: *mut u32) -> windows_core::Result<()>; fn SetBufferFullnessBits(&self, ulbufferfullness: u32) -> windows_core::Result<()>; @@ -22615,35 +16876,20 @@ pub trait IWMCodecLeakyBucket_Impl: Sized { } impl windows_core::RuntimeName for IWMCodecLeakyBucket {} impl IWMCodecLeakyBucket_Vtbl { - pub const fn new() -> IWMCodecLeakyBucket_Vtbl - where - Identity: IWMCodecLeakyBucket_Impl, - { - unsafe extern "system" fn SetBufferSizeBits(this: *mut core::ffi::c_void, ulbuffersize: u32) -> windows_core::HRESULT - where - Identity: IWMCodecLeakyBucket_Impl, - { + pub const fn new() -> IWMCodecLeakyBucket_Vtbl { + unsafe extern "system" fn SetBufferSizeBits(this: *mut core::ffi::c_void, ulbuffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecLeakyBucket_Impl::SetBufferSizeBits(this, core::mem::transmute_copy(&ulbuffersize)).into() } - unsafe extern "system" fn GetBufferSizeBits(this: *mut core::ffi::c_void, pulbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecLeakyBucket_Impl, - { + unsafe extern "system" fn GetBufferSizeBits(this: *mut core::ffi::c_void, pulbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecLeakyBucket_Impl::GetBufferSizeBits(this, core::mem::transmute_copy(&pulbuffersize)).into() } - unsafe extern "system" fn SetBufferFullnessBits(this: *mut core::ffi::c_void, ulbufferfullness: u32) -> windows_core::HRESULT - where - Identity: IWMCodecLeakyBucket_Impl, - { + unsafe extern "system" fn SetBufferFullnessBits(this: *mut core::ffi::c_void, ulbufferfullness: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecLeakyBucket_Impl::SetBufferFullnessBits(this, core::mem::transmute_copy(&ulbufferfullness)).into() } - unsafe extern "system" fn GetBufferFullnessBits(this: *mut core::ffi::c_void, pulbufferfullness: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecLeakyBucket_Impl, - { + unsafe extern "system" fn GetBufferFullnessBits(this: *mut core::ffi::c_void, pulbufferfullness: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecLeakyBucket_Impl::GetBufferFullnessBits(this, core::mem::transmute_copy(&pulbufferfullness)).into() } @@ -22659,19 +16905,13 @@ impl IWMCodecLeakyBucket_Vtbl { iid == &::IID } } -pub trait IWMCodecOutputTimestamp_Impl: Sized { +pub trait IWMCodecOutputTimestamp_Impl: Sized + windows_core::IUnknownImpl { fn GetNextOutputTime(&self, prttime: *mut i64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMCodecOutputTimestamp {} impl IWMCodecOutputTimestamp_Vtbl { - pub const fn new() -> IWMCodecOutputTimestamp_Vtbl - where - Identity: IWMCodecOutputTimestamp_Impl, - { - unsafe extern "system" fn GetNextOutputTime(this: *mut core::ffi::c_void, prttime: *mut i64) -> windows_core::HRESULT - where - Identity: IWMCodecOutputTimestamp_Impl, - { + pub const fn new() -> IWMCodecOutputTimestamp_Vtbl { + unsafe extern "system" fn GetNextOutputTime(this: *mut core::ffi::c_void, prttime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecOutputTimestamp_Impl::GetNextOutputTime(this, core::mem::transmute_copy(&prttime)).into() } @@ -22682,7 +16922,7 @@ impl IWMCodecOutputTimestamp_Vtbl { } } #[cfg(feature = "Win32_Media_DxMediaObjects")] -pub trait IWMCodecPrivateData_Impl: Sized { +pub trait IWMCodecPrivateData_Impl: Sized + windows_core::IUnknownImpl { fn SetPartialOutputType(&self, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE) -> windows_core::Result<()>; fn GetPrivateData(&self, pbdata: *mut u8, pcbdata: *mut u32) -> windows_core::Result<()>; } @@ -22690,21 +16930,12 @@ pub trait IWMCodecPrivateData_Impl: Sized { impl windows_core::RuntimeName for IWMCodecPrivateData {} #[cfg(feature = "Win32_Media_DxMediaObjects")] impl IWMCodecPrivateData_Vtbl { - pub const fn new() -> IWMCodecPrivateData_Vtbl - where - Identity: IWMCodecPrivateData_Impl, - { - unsafe extern "system" fn SetPartialOutputType(this: *mut core::ffi::c_void, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IWMCodecPrivateData_Impl, - { + pub const fn new() -> IWMCodecPrivateData_Vtbl { + unsafe extern "system" fn SetPartialOutputType(this: *mut core::ffi::c_void, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecPrivateData_Impl::SetPartialOutputType(this, core::mem::transmute_copy(&pmt)).into() } - unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecPrivateData_Impl, - { + unsafe extern "system" fn GetPrivateData(this: *mut core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecPrivateData_Impl::GetPrivateData(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&pcbdata)).into() } @@ -22719,7 +16950,7 @@ impl IWMCodecPrivateData_Vtbl { } } #[cfg(feature = "Win32_Media_DxMediaObjects")] -pub trait IWMCodecProps_Impl: Sized { +pub trait IWMCodecProps_Impl: Sized + windows_core::IUnknownImpl { fn GetFormatProp(&self, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE, pszname: &windows_core::PCWSTR, ptype: *mut WMT_PROP_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()>; fn GetCodecProp(&self, dwformat: u32, pszname: &windows_core::PCWSTR, ptype: *mut WMT_PROP_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()>; } @@ -22727,21 +16958,12 @@ pub trait IWMCodecProps_Impl: Sized { impl windows_core::RuntimeName for IWMCodecProps {} #[cfg(feature = "Win32_Media_DxMediaObjects")] impl IWMCodecProps_Vtbl { - pub const fn new() -> IWMCodecProps_Vtbl - where - Identity: IWMCodecProps_Impl, - { - unsafe extern "system" fn GetFormatProp(this: *mut core::ffi::c_void, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE, pszname: windows_core::PCWSTR, ptype: *mut WMT_PROP_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecProps_Impl, - { + pub const fn new() -> IWMCodecProps_Vtbl { + unsafe extern "system" fn GetFormatProp(this: *mut core::ffi::c_void, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE, pszname: windows_core::PCWSTR, ptype: *mut WMT_PROP_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecProps_Impl::GetFormatProp(this, core::mem::transmute_copy(&pmt), core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdwsize)).into() } - unsafe extern "system" fn GetCodecProp(this: *mut core::ffi::c_void, dwformat: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_PROP_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecProps_Impl, - { + unsafe extern "system" fn GetCodecProp(this: *mut core::ffi::c_void, dwformat: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_PROP_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecProps_Impl::GetCodecProp(this, core::mem::transmute_copy(&dwformat), core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdwsize)).into() } @@ -22756,7 +16978,7 @@ impl IWMCodecProps_Vtbl { } } #[cfg(feature = "Win32_Media_DxMediaObjects")] -pub trait IWMCodecStrings_Impl: Sized { +pub trait IWMCodecStrings_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE, cchlength: u32, szname: windows_core::PWSTR, pcchlength: *mut u32) -> windows_core::Result<()>; fn GetDescription(&self, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE, cchlength: u32, szdescription: windows_core::PWSTR, pcchlength: *mut u32) -> windows_core::Result<()>; } @@ -22764,21 +16986,12 @@ pub trait IWMCodecStrings_Impl: Sized { impl windows_core::RuntimeName for IWMCodecStrings {} #[cfg(feature = "Win32_Media_DxMediaObjects")] impl IWMCodecStrings_Vtbl { - pub const fn new() -> IWMCodecStrings_Vtbl - where - Identity: IWMCodecStrings_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE, cchlength: u32, szname: windows_core::PWSTR, pcchlength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecStrings_Impl, - { + pub const fn new() -> IWMCodecStrings_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE, cchlength: u32, szname: windows_core::PWSTR, pcchlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecStrings_Impl::GetName(this, core::mem::transmute_copy(&pmt), core::mem::transmute_copy(&cchlength), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&pcchlength)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE, cchlength: u32, szdescription: windows_core::PWSTR, pcchlength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecStrings_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pmt: *mut super::DxMediaObjects::DMO_MEDIA_TYPE, cchlength: u32, szdescription: windows_core::PWSTR, pcchlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecStrings_Impl::GetDescription(this, core::mem::transmute_copy(&pmt), core::mem::transmute_copy(&cchlength), core::mem::transmute_copy(&szdescription), core::mem::transmute_copy(&pcchlength)).into() } @@ -22792,27 +17005,18 @@ impl IWMCodecStrings_Vtbl { iid == &::IID } } -pub trait IWMColorConvProps_Impl: Sized { +pub trait IWMColorConvProps_Impl: Sized + windows_core::IUnknownImpl { fn SetMode(&self, lmode: i32) -> windows_core::Result<()>; fn SetFullCroppingParam(&self, lsrccropleft: i32, lsrccroptop: i32, ldstcropleft: i32, ldstcroptop: i32, lcropwidth: i32, lcropheight: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMColorConvProps {} impl IWMColorConvProps_Vtbl { - pub const fn new() -> IWMColorConvProps_Vtbl - where - Identity: IWMColorConvProps_Impl, - { - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, lmode: i32) -> windows_core::HRESULT - where - Identity: IWMColorConvProps_Impl, - { + pub const fn new() -> IWMColorConvProps_Vtbl { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, lmode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMColorConvProps_Impl::SetMode(this, core::mem::transmute_copy(&lmode)).into() } - unsafe extern "system" fn SetFullCroppingParam(this: *mut core::ffi::c_void, lsrccropleft: i32, lsrccroptop: i32, ldstcropleft: i32, ldstcroptop: i32, lcropwidth: i32, lcropheight: i32) -> windows_core::HRESULT - where - Identity: IWMColorConvProps_Impl, - { + unsafe extern "system" fn SetFullCroppingParam(this: *mut core::ffi::c_void, lsrccropleft: i32, lsrccroptop: i32, ldstcropleft: i32, ldstcroptop: i32, lcropwidth: i32, lcropheight: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMColorConvProps_Impl::SetFullCroppingParam(this, core::mem::transmute_copy(&lsrccropleft), core::mem::transmute_copy(&lsrccroptop), core::mem::transmute_copy(&ldstcropleft), core::mem::transmute_copy(&ldstcroptop), core::mem::transmute_copy(&lcropwidth), core::mem::transmute_copy(&lcropheight)).into() } @@ -22826,19 +17030,13 @@ impl IWMColorConvProps_Vtbl { iid == &::IID } } -pub trait IWMColorLegalizerProps_Impl: Sized { +pub trait IWMColorLegalizerProps_Impl: Sized + windows_core::IUnknownImpl { fn SetColorLegalizerQuality(&self, lquality: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMColorLegalizerProps {} impl IWMColorLegalizerProps_Vtbl { - pub const fn new() -> IWMColorLegalizerProps_Vtbl - where - Identity: IWMColorLegalizerProps_Impl, - { - unsafe extern "system" fn SetColorLegalizerQuality(this: *mut core::ffi::c_void, lquality: i32) -> windows_core::HRESULT - where - Identity: IWMColorLegalizerProps_Impl, - { + pub const fn new() -> IWMColorLegalizerProps_Vtbl { + unsafe extern "system" fn SetColorLegalizerQuality(this: *mut core::ffi::c_void, lquality: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMColorLegalizerProps_Impl::SetColorLegalizerQuality(this, core::mem::transmute_copy(&lquality)).into() } @@ -22848,7 +17046,7 @@ impl IWMColorLegalizerProps_Vtbl { iid == &::IID } } -pub trait IWMFrameInterpProps_Impl: Sized { +pub trait IWMFrameInterpProps_Impl: Sized + windows_core::IUnknownImpl { fn SetFrameRateIn(&self, lframerate: i32, lscale: i32) -> windows_core::Result<()>; fn SetFrameRateOut(&self, lframerate: i32, lscale: i32) -> windows_core::Result<()>; fn SetFrameInterpEnabled(&self, bfienabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -22856,35 +17054,20 @@ pub trait IWMFrameInterpProps_Impl: Sized { } impl windows_core::RuntimeName for IWMFrameInterpProps {} impl IWMFrameInterpProps_Vtbl { - pub const fn new() -> IWMFrameInterpProps_Vtbl - where - Identity: IWMFrameInterpProps_Impl, - { - unsafe extern "system" fn SetFrameRateIn(this: *mut core::ffi::c_void, lframerate: i32, lscale: i32) -> windows_core::HRESULT - where - Identity: IWMFrameInterpProps_Impl, - { + pub const fn new() -> IWMFrameInterpProps_Vtbl { + unsafe extern "system" fn SetFrameRateIn(this: *mut core::ffi::c_void, lframerate: i32, lscale: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMFrameInterpProps_Impl::SetFrameRateIn(this, core::mem::transmute_copy(&lframerate), core::mem::transmute_copy(&lscale)).into() } - unsafe extern "system" fn SetFrameRateOut(this: *mut core::ffi::c_void, lframerate: i32, lscale: i32) -> windows_core::HRESULT - where - Identity: IWMFrameInterpProps_Impl, - { + unsafe extern "system" fn SetFrameRateOut(this: *mut core::ffi::c_void, lframerate: i32, lscale: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMFrameInterpProps_Impl::SetFrameRateOut(this, core::mem::transmute_copy(&lframerate), core::mem::transmute_copy(&lscale)).into() } - unsafe extern "system" fn SetFrameInterpEnabled(this: *mut core::ffi::c_void, bfienabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMFrameInterpProps_Impl, - { + unsafe extern "system" fn SetFrameInterpEnabled(this: *mut core::ffi::c_void, bfienabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMFrameInterpProps_Impl::SetFrameInterpEnabled(this, core::mem::transmute_copy(&bfienabled)).into() } - unsafe extern "system" fn SetComplexityLevel(this: *mut core::ffi::c_void, icomplexity: i32) -> windows_core::HRESULT - where - Identity: IWMFrameInterpProps_Impl, - { + unsafe extern "system" fn SetComplexityLevel(this: *mut core::ffi::c_void, icomplexity: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMFrameInterpProps_Impl::SetComplexityLevel(this, core::mem::transmute_copy(&icomplexity)).into() } @@ -22900,35 +17083,23 @@ impl IWMFrameInterpProps_Vtbl { iid == &::IID } } -pub trait IWMInterlaceProps_Impl: Sized { +pub trait IWMInterlaceProps_Impl: Sized + windows_core::IUnknownImpl { fn SetProcessType(&self, iprocesstype: i32) -> windows_core::Result<()>; fn SetInitInverseTeleCinePattern(&self, iinitpattern: i32) -> windows_core::Result<()>; fn SetLastFrame(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMInterlaceProps {} impl IWMInterlaceProps_Vtbl { - pub const fn new() -> IWMInterlaceProps_Vtbl - where - Identity: IWMInterlaceProps_Impl, - { - unsafe extern "system" fn SetProcessType(this: *mut core::ffi::c_void, iprocesstype: i32) -> windows_core::HRESULT - where - Identity: IWMInterlaceProps_Impl, - { + pub const fn new() -> IWMInterlaceProps_Vtbl { + unsafe extern "system" fn SetProcessType(this: *mut core::ffi::c_void, iprocesstype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMInterlaceProps_Impl::SetProcessType(this, core::mem::transmute_copy(&iprocesstype)).into() } - unsafe extern "system" fn SetInitInverseTeleCinePattern(this: *mut core::ffi::c_void, iinitpattern: i32) -> windows_core::HRESULT - where - Identity: IWMInterlaceProps_Impl, - { + unsafe extern "system" fn SetInitInverseTeleCinePattern(this: *mut core::ffi::c_void, iinitpattern: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMInterlaceProps_Impl::SetInitInverseTeleCinePattern(this, core::mem::transmute_copy(&iinitpattern)).into() } - unsafe extern "system" fn SetLastFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMInterlaceProps_Impl, - { + unsafe extern "system" fn SetLastFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMInterlaceProps_Impl::SetLastFrame(this).into() } @@ -22943,27 +17114,18 @@ impl IWMInterlaceProps_Vtbl { iid == &::IID } } -pub trait IWMResamplerProps_Impl: Sized { +pub trait IWMResamplerProps_Impl: Sized + windows_core::IUnknownImpl { fn SetHalfFilterLength(&self, lhalffilterlen: i32) -> windows_core::Result<()>; fn SetUserChannelMtx(&self, userchannelmtx: *mut f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMResamplerProps {} impl IWMResamplerProps_Vtbl { - pub const fn new() -> IWMResamplerProps_Vtbl - where - Identity: IWMResamplerProps_Impl, - { - unsafe extern "system" fn SetHalfFilterLength(this: *mut core::ffi::c_void, lhalffilterlen: i32) -> windows_core::HRESULT - where - Identity: IWMResamplerProps_Impl, - { + pub const fn new() -> IWMResamplerProps_Vtbl { + unsafe extern "system" fn SetHalfFilterLength(this: *mut core::ffi::c_void, lhalffilterlen: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMResamplerProps_Impl::SetHalfFilterLength(this, core::mem::transmute_copy(&lhalffilterlen)).into() } - unsafe extern "system" fn SetUserChannelMtx(this: *mut core::ffi::c_void, userchannelmtx: *mut f32) -> windows_core::HRESULT - where - Identity: IWMResamplerProps_Impl, - { + unsafe extern "system" fn SetUserChannelMtx(this: *mut core::ffi::c_void, userchannelmtx: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMResamplerProps_Impl::SetUserChannelMtx(this, core::mem::transmute_copy(&userchannelmtx)).into() } @@ -22977,7 +17139,7 @@ impl IWMResamplerProps_Vtbl { iid == &::IID } } -pub trait IWMResizerProps_Impl: Sized { +pub trait IWMResizerProps_Impl: Sized + windows_core::IUnknownImpl { fn SetResizerQuality(&self, lquality: i32) -> windows_core::Result<()>; fn SetInterlaceMode(&self, lmode: i32) -> windows_core::Result<()>; fn SetClipRegion(&self, lcliporixsrc: i32, lcliporiysrc: i32, lclipwidthsrc: i32, lclipheightsrc: i32) -> windows_core::Result<()>; @@ -22986,42 +17148,24 @@ pub trait IWMResizerProps_Impl: Sized { } impl windows_core::RuntimeName for IWMResizerProps {} impl IWMResizerProps_Vtbl { - pub const fn new() -> IWMResizerProps_Vtbl - where - Identity: IWMResizerProps_Impl, - { - unsafe extern "system" fn SetResizerQuality(this: *mut core::ffi::c_void, lquality: i32) -> windows_core::HRESULT - where - Identity: IWMResizerProps_Impl, - { + pub const fn new() -> IWMResizerProps_Vtbl { + unsafe extern "system" fn SetResizerQuality(this: *mut core::ffi::c_void, lquality: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMResizerProps_Impl::SetResizerQuality(this, core::mem::transmute_copy(&lquality)).into() } - unsafe extern "system" fn SetInterlaceMode(this: *mut core::ffi::c_void, lmode: i32) -> windows_core::HRESULT - where - Identity: IWMResizerProps_Impl, - { + unsafe extern "system" fn SetInterlaceMode(this: *mut core::ffi::c_void, lmode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMResizerProps_Impl::SetInterlaceMode(this, core::mem::transmute_copy(&lmode)).into() } - unsafe extern "system" fn SetClipRegion(this: *mut core::ffi::c_void, lcliporixsrc: i32, lcliporiysrc: i32, lclipwidthsrc: i32, lclipheightsrc: i32) -> windows_core::HRESULT - where - Identity: IWMResizerProps_Impl, - { + unsafe extern "system" fn SetClipRegion(this: *mut core::ffi::c_void, lcliporixsrc: i32, lcliporiysrc: i32, lclipwidthsrc: i32, lclipheightsrc: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMResizerProps_Impl::SetClipRegion(this, core::mem::transmute_copy(&lcliporixsrc), core::mem::transmute_copy(&lcliporiysrc), core::mem::transmute_copy(&lclipwidthsrc), core::mem::transmute_copy(&lclipheightsrc)).into() } - unsafe extern "system" fn SetFullCropRegion(this: *mut core::ffi::c_void, lcliporixsrc: i32, lcliporiysrc: i32, lclipwidthsrc: i32, lclipheightsrc: i32, lcliporixdst: i32, lcliporiydst: i32, lclipwidthdst: i32, lclipheightdst: i32) -> windows_core::HRESULT - where - Identity: IWMResizerProps_Impl, - { + unsafe extern "system" fn SetFullCropRegion(this: *mut core::ffi::c_void, lcliporixsrc: i32, lcliporiysrc: i32, lclipwidthsrc: i32, lclipheightsrc: i32, lcliporixdst: i32, lcliporiydst: i32, lclipwidthdst: i32, lclipheightdst: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMResizerProps_Impl::SetFullCropRegion(this, core::mem::transmute_copy(&lcliporixsrc), core::mem::transmute_copy(&lcliporiysrc), core::mem::transmute_copy(&lclipwidthsrc), core::mem::transmute_copy(&lclipheightsrc), core::mem::transmute_copy(&lcliporixdst), core::mem::transmute_copy(&lcliporiydst), core::mem::transmute_copy(&lclipwidthdst), core::mem::transmute_copy(&lclipheightdst)).into() } - unsafe extern "system" fn GetFullCropRegion(this: *mut core::ffi::c_void, lcliporixsrc: *mut i32, lcliporiysrc: *mut i32, lclipwidthsrc: *mut i32, lclipheightsrc: *mut i32, lcliporixdst: *mut i32, lcliporiydst: *mut i32, lclipwidthdst: *mut i32, lclipheightdst: *mut i32) -> windows_core::HRESULT - where - Identity: IWMResizerProps_Impl, - { + unsafe extern "system" fn GetFullCropRegion(this: *mut core::ffi::c_void, lcliporixsrc: *mut i32, lcliporiysrc: *mut i32, lclipwidthsrc: *mut i32, lclipheightsrc: *mut i32, lcliporixdst: *mut i32, lcliporiydst: *mut i32, lclipwidthdst: *mut i32, lclipheightdst: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMResizerProps_Impl::GetFullCropRegion(this, core::mem::transmute_copy(&lcliporixsrc), core::mem::transmute_copy(&lcliporiysrc), core::mem::transmute_copy(&lclipwidthsrc), core::mem::transmute_copy(&lclipheightsrc), core::mem::transmute_copy(&lcliporixdst), core::mem::transmute_copy(&lcliporiydst), core::mem::transmute_copy(&lclipwidthdst), core::mem::transmute_copy(&lclipheightdst)).into() } @@ -23038,19 +17182,13 @@ impl IWMResizerProps_Vtbl { iid == &::IID } } -pub trait IWMSampleExtensionSupport_Impl: Sized { +pub trait IWMSampleExtensionSupport_Impl: Sized + windows_core::IUnknownImpl { fn SetUseSampleExtensions(&self, fuseextensions: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMSampleExtensionSupport {} impl IWMSampleExtensionSupport_Vtbl { - pub const fn new() -> IWMSampleExtensionSupport_Vtbl - where - Identity: IWMSampleExtensionSupport_Impl, - { - unsafe extern "system" fn SetUseSampleExtensions(this: *mut core::ffi::c_void, fuseextensions: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSampleExtensionSupport_Impl, - { + pub const fn new() -> IWMSampleExtensionSupport_Vtbl { + unsafe extern "system" fn SetUseSampleExtensions(this: *mut core::ffi::c_void, fuseextensions: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSampleExtensionSupport_Impl::SetUseSampleExtensions(this, core::mem::transmute_copy(&fuseextensions)).into() } @@ -23060,19 +17198,13 @@ impl IWMSampleExtensionSupport_Vtbl { iid == &::IID } } -pub trait IWMValidate_Impl: Sized { +pub trait IWMValidate_Impl: Sized + windows_core::IUnknownImpl { fn SetIdentifier(&self, guidvalidationid: &windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMValidate {} impl IWMValidate_Vtbl { - pub const fn new() -> IWMValidate_Vtbl - where - Identity: IWMValidate_Impl, - { - unsafe extern "system" fn SetIdentifier(this: *mut core::ffi::c_void, guidvalidationid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMValidate_Impl, - { + pub const fn new() -> IWMValidate_Vtbl { + unsafe extern "system" fn SetIdentifier(this: *mut core::ffi::c_void, guidvalidationid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMValidate_Impl::SetIdentifier(this, core::mem::transmute(&guidvalidationid)).into() } @@ -23082,27 +17214,18 @@ impl IWMValidate_Vtbl { iid == &::IID } } -pub trait IWMVideoDecoderHurryup_Impl: Sized { +pub trait IWMVideoDecoderHurryup_Impl: Sized + windows_core::IUnknownImpl { fn SetHurryup(&self, lhurryup: i32) -> windows_core::Result<()>; fn GetHurryup(&self, plhurryup: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMVideoDecoderHurryup {} impl IWMVideoDecoderHurryup_Vtbl { - pub const fn new() -> IWMVideoDecoderHurryup_Vtbl - where - Identity: IWMVideoDecoderHurryup_Impl, - { - unsafe extern "system" fn SetHurryup(this: *mut core::ffi::c_void, lhurryup: i32) -> windows_core::HRESULT - where - Identity: IWMVideoDecoderHurryup_Impl, - { + pub const fn new() -> IWMVideoDecoderHurryup_Vtbl { + unsafe extern "system" fn SetHurryup(this: *mut core::ffi::c_void, lhurryup: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMVideoDecoderHurryup_Impl::SetHurryup(this, core::mem::transmute_copy(&lhurryup)).into() } - unsafe extern "system" fn GetHurryup(this: *mut core::ffi::c_void, plhurryup: *mut i32) -> windows_core::HRESULT - where - Identity: IWMVideoDecoderHurryup_Impl, - { + unsafe extern "system" fn GetHurryup(this: *mut core::ffi::c_void, plhurryup: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMVideoDecoderHurryup_Impl::GetHurryup(this, core::mem::transmute_copy(&plhurryup)).into() } @@ -23117,7 +17240,7 @@ impl IWMVideoDecoderHurryup_Vtbl { } } #[cfg(feature = "Win32_Media_DxMediaObjects")] -pub trait IWMVideoDecoderReconBuffer_Impl: Sized { +pub trait IWMVideoDecoderReconBuffer_Impl: Sized + windows_core::IUnknownImpl { fn GetReconstructedVideoFrameSize(&self, pdwsize: *mut u32) -> windows_core::Result<()>; fn GetReconstructedVideoFrame(&self, pbuf: Option<&super::DxMediaObjects::IMediaBuffer>) -> windows_core::Result<()>; fn SetReconstructedVideoFrame(&self, pbuf: Option<&super::DxMediaObjects::IMediaBuffer>) -> windows_core::Result<()>; @@ -23126,28 +17249,16 @@ pub trait IWMVideoDecoderReconBuffer_Impl: Sized { impl windows_core::RuntimeName for IWMVideoDecoderReconBuffer {} #[cfg(feature = "Win32_Media_DxMediaObjects")] impl IWMVideoDecoderReconBuffer_Vtbl { - pub const fn new() -> IWMVideoDecoderReconBuffer_Vtbl - where - Identity: IWMVideoDecoderReconBuffer_Impl, - { - unsafe extern "system" fn GetReconstructedVideoFrameSize(this: *mut core::ffi::c_void, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMVideoDecoderReconBuffer_Impl, - { + pub const fn new() -> IWMVideoDecoderReconBuffer_Vtbl { + unsafe extern "system" fn GetReconstructedVideoFrameSize(this: *mut core::ffi::c_void, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMVideoDecoderReconBuffer_Impl::GetReconstructedVideoFrameSize(this, core::mem::transmute_copy(&pdwsize)).into() } - unsafe extern "system" fn GetReconstructedVideoFrame(this: *mut core::ffi::c_void, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMVideoDecoderReconBuffer_Impl, - { + unsafe extern "system" fn GetReconstructedVideoFrame(this: *mut core::ffi::c_void, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMVideoDecoderReconBuffer_Impl::GetReconstructedVideoFrame(this, windows_core::from_raw_borrowed(&pbuf)).into() } - unsafe extern "system" fn SetReconstructedVideoFrame(this: *mut core::ffi::c_void, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMVideoDecoderReconBuffer_Impl, - { + unsafe extern "system" fn SetReconstructedVideoFrame(this: *mut core::ffi::c_void, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMVideoDecoderReconBuffer_Impl::SetReconstructedVideoFrame(this, windows_core::from_raw_borrowed(&pbuf)).into() } @@ -23162,19 +17273,13 @@ impl IWMVideoDecoderReconBuffer_Vtbl { iid == &::IID } } -pub trait IWMVideoForceKeyFrame_Impl: Sized { +pub trait IWMVideoForceKeyFrame_Impl: Sized + windows_core::IUnknownImpl { fn SetKeyFrame(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMVideoForceKeyFrame {} impl IWMVideoForceKeyFrame_Vtbl { - pub const fn new() -> IWMVideoForceKeyFrame_Vtbl - where - Identity: IWMVideoForceKeyFrame_Impl, - { - unsafe extern "system" fn SetKeyFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMVideoForceKeyFrame_Impl, - { + pub const fn new() -> IWMVideoForceKeyFrame_Vtbl { + unsafe extern "system" fn SetKeyFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMVideoForceKeyFrame_Impl::SetKeyFrame(this).into() } @@ -23187,10 +17292,7 @@ impl IWMVideoForceKeyFrame_Vtbl { pub trait MFASYNCRESULT_Impl: Sized + IMFAsyncResult_Impl {} impl windows_core::RuntimeName for MFASYNCRESULT {} impl MFASYNCRESULT_Vtbl { - pub const fn new() -> MFASYNCRESULT_Vtbl - where - Identity: MFASYNCRESULT_Impl, - { + pub const fn new() -> MFASYNCRESULT_Vtbl { Self { base__: IMFAsyncResult_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { 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 60af4c0053..4564de886b 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/impl.rs @@ -49,14 +49,8 @@ pub trait IFeed_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFeed {} #[cfg(feature = "Win32_System_Com")] impl IFeed_Vtbl { - pub const fn new() -> IFeed_Vtbl - where - Identity: IFeed_Impl, - { - unsafe extern "system" fn Xml(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::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + pub const fn new() -> IFeed_Vtbl { + unsafe extern "system" fn Xml(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::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Xml(this, 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)) { Ok(ok__) => { @@ -66,10 +60,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Name(this) { Ok(ok__) => { @@ -79,17 +70,11 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::Rename(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Url(this: *mut core::ffi::c_void, feedurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Url(this: *mut core::ffi::c_void, feedurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Url(this) { Ok(ok__) => { @@ -99,17 +84,11 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUrl(this: *mut core::ffi::c_void, feedurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn SetUrl(this: *mut core::ffi::c_void, feedurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::SetUrl(this, core::mem::transmute(&feedurl)).into() } - unsafe extern "system" fn LocalId(this: *mut core::ffi::c_void, feedguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn LocalId(this: *mut core::ffi::c_void, feedguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::LocalId(this) { Ok(ok__) => { @@ -119,10 +98,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Path(this) { Ok(ok__) => { @@ -132,17 +108,11 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, newparentpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, newparentpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::Move(this, core::mem::transmute(&newparentpath)).into() } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Parent(this) { Ok(ok__) => { @@ -152,10 +122,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastWriteTime(this: *mut core::ffi::c_void, lastwrite: *mut f64) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn LastWriteTime(this: *mut core::ffi::c_void, lastwrite: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::LastWriteTime(this) { Ok(ok__) => { @@ -165,38 +132,23 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::Delete(this).into() } - unsafe extern "system" fn Download(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Download(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::Download(this).into() } - unsafe extern "system" fn AsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn AsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::AsyncDownload(this).into() } - unsafe extern "system" fn CancelAsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn CancelAsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::CancelAsyncDownload(this).into() } - unsafe extern "system" fn SyncSetting(this: *mut core::ffi::c_void, syncsetting: *mut FEEDS_SYNC_SETTING) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn SyncSetting(this: *mut core::ffi::c_void, syncsetting: *mut FEEDS_SYNC_SETTING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::SyncSetting(this) { Ok(ok__) => { @@ -206,17 +158,11 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSyncSetting(this: *mut core::ffi::c_void, syncsetting: FEEDS_SYNC_SETTING) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn SetSyncSetting(this: *mut core::ffi::c_void, syncsetting: FEEDS_SYNC_SETTING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::SetSyncSetting(this, core::mem::transmute_copy(&syncsetting)).into() } - unsafe extern "system" fn Interval(this: *mut core::ffi::c_void, minutes: *mut i32) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Interval(this: *mut core::ffi::c_void, minutes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Interval(this) { Ok(ok__) => { @@ -226,17 +172,11 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterval(this: *mut core::ffi::c_void, minutes: i32) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn SetInterval(this: *mut core::ffi::c_void, minutes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::SetInterval(this, core::mem::transmute_copy(&minutes)).into() } - unsafe extern "system" fn LastDownloadTime(this: *mut core::ffi::c_void, lastdownload: *mut f64) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn LastDownloadTime(this: *mut core::ffi::c_void, lastdownload: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::LastDownloadTime(this) { Ok(ok__) => { @@ -246,10 +186,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalEnclosurePath(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn LocalEnclosurePath(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::LocalEnclosurePath(this) { Ok(ok__) => { @@ -259,10 +196,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Items(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Items(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Items(this) { Ok(ok__) => { @@ -272,10 +206,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, itemid: i32, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, itemid: i32, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::GetItem(this, core::mem::transmute_copy(&itemid)) { Ok(ok__) => { @@ -285,10 +216,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, title: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, title: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Title(this) { Ok(ok__) => { @@ -298,10 +226,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Description(this) { Ok(ok__) => { @@ -311,10 +236,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Link(this: *mut core::ffi::c_void, homepage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Link(this: *mut core::ffi::c_void, homepage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Link(this) { Ok(ok__) => { @@ -324,10 +246,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Image(this: *mut core::ffi::c_void, imageurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Image(this: *mut core::ffi::c_void, imageurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Image(this) { Ok(ok__) => { @@ -337,10 +256,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastBuildDate(this: *mut core::ffi::c_void, lastbuilddate: *mut f64) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn LastBuildDate(this: *mut core::ffi::c_void, lastbuilddate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::LastBuildDate(this) { Ok(ok__) => { @@ -350,10 +266,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PubDate(this: *mut core::ffi::c_void, lastpopulatedate: *mut f64) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn PubDate(this: *mut core::ffi::c_void, lastpopulatedate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::PubDate(this) { Ok(ok__) => { @@ -363,10 +276,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Ttl(this: *mut core::ffi::c_void, ttl: *mut i32) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Ttl(this: *mut core::ffi::c_void, ttl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Ttl(this) { Ok(ok__) => { @@ -376,10 +286,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Language(this: *mut core::ffi::c_void, language: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Language(this: *mut core::ffi::c_void, language: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Language(this) { Ok(ok__) => { @@ -389,10 +296,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Copyright(this: *mut core::ffi::c_void, copyright: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Copyright(this: *mut core::ffi::c_void, copyright: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::Copyright(this) { Ok(ok__) => { @@ -402,10 +306,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxItemCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn MaxItemCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::MaxItemCount(this) { Ok(ok__) => { @@ -415,17 +316,11 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxItemCount(this: *mut core::ffi::c_void, count: i32) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn SetMaxItemCount(this: *mut core::ffi::c_void, count: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::SetMaxItemCount(this, core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn DownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, downloadenclosuresautomatically: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn DownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, downloadenclosuresautomatically: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::DownloadEnclosuresAutomatically(this) { Ok(ok__) => { @@ -435,17 +330,11 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, downloadenclosuresautomatically: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn SetDownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, downloadenclosuresautomatically: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::SetDownloadEnclosuresAutomatically(this, core::mem::transmute_copy(&downloadenclosuresautomatically)).into() } - unsafe extern "system" fn DownloadStatus(this: *mut core::ffi::c_void, status: *mut FEEDS_DOWNLOAD_STATUS) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn DownloadStatus(this: *mut core::ffi::c_void, status: *mut FEEDS_DOWNLOAD_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::DownloadStatus(this) { Ok(ok__) => { @@ -455,10 +344,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastDownloadError(this: *mut core::ffi::c_void, error: *mut FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn LastDownloadError(this: *mut core::ffi::c_void, error: *mut FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::LastDownloadError(this) { Ok(ok__) => { @@ -468,17 +354,11 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, feedxml: core::mem::MaybeUninit, feedurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, feedxml: core::mem::MaybeUninit, feedurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::Merge(this, core::mem::transmute(&feedxml), core::mem::transmute(&feedurl)).into() } - unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, feedurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, feedurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::DownloadUrl(this) { Ok(ok__) => { @@ -488,10 +368,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsList(this: *mut core::ffi::c_void, islist: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn IsList(this: *mut core::ffi::c_void, islist: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::IsList(this) { Ok(ok__) => { @@ -501,17 +378,11 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MarkAllItemsRead(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn MarkAllItemsRead(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed_Impl::MarkAllItemsRead(this).into() } - unsafe extern "system" fn GetWatcher(this: *mut core::ffi::c_void, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn GetWatcher(this: *mut core::ffi::c_void, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::GetWatcher(this, core::mem::transmute_copy(&scope), core::mem::transmute_copy(&mask)) { Ok(ok__) => { @@ -521,10 +392,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnreadItemCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn UnreadItemCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::UnreadItemCount(this) { Ok(ok__) => { @@ -534,10 +402,7 @@ impl IFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ItemCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IFeed_Impl, - { + unsafe extern "system" fn ItemCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed_Impl::ItemCount(this) { Ok(ok__) => { @@ -612,14 +477,8 @@ pub trait IFeed2_Impl: Sized + IFeed_Impl { impl windows_core::RuntimeName for IFeed2 {} #[cfg(feature = "Win32_System_Com")] impl IFeed2_Vtbl { - pub const fn new() -> IFeed2_Vtbl - where - Identity: IFeed2_Impl, - { - unsafe extern "system" fn GetItemByEffectiveId(this: *mut core::ffi::c_void, itemeffectiveid: i32, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed2_Impl, - { + pub const fn new() -> IFeed2_Vtbl { + unsafe extern "system" fn GetItemByEffectiveId(this: *mut core::ffi::c_void, itemeffectiveid: i32, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed2_Impl::GetItemByEffectiveId(this, core::mem::transmute_copy(&itemeffectiveid)) { Ok(ok__) => { @@ -629,10 +488,7 @@ impl IFeed2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastItemDownloadTime(this: *mut core::ffi::c_void, lastitemdownloadtime: *mut f64) -> windows_core::HRESULT - where - Identity: IFeed2_Impl, - { + unsafe extern "system" fn LastItemDownloadTime(this: *mut core::ffi::c_void, lastitemdownloadtime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed2_Impl::LastItemDownloadTime(this) { Ok(ok__) => { @@ -642,10 +498,7 @@ impl IFeed2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Username(this: *mut core::ffi::c_void, username: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed2_Impl, - { + unsafe extern "system" fn Username(this: *mut core::ffi::c_void, username: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed2_Impl::Username(this) { Ok(ok__) => { @@ -655,10 +508,7 @@ impl IFeed2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Password(this: *mut core::ffi::c_void, password: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed2_Impl, - { + unsafe extern "system" fn Password(this: *mut core::ffi::c_void, password: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeed2_Impl::Password(this) { Ok(ok__) => { @@ -668,17 +518,11 @@ impl IFeed2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, password: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeed2_Impl, - { + unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, password: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed2_Impl::SetCredentials(this, core::mem::transmute(&username), core::mem::transmute(&password)).into() } - unsafe extern "system" fn ClearCredentials(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeed2_Impl, - { + unsafe extern "system" fn ClearCredentials(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeed2_Impl::ClearCredentials(this).into() } @@ -716,14 +560,8 @@ pub trait IFeedEnclosure_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IFeedEnclosure {} #[cfg(feature = "Win32_System_Com")] impl IFeedEnclosure_Vtbl { - pub const fn new() -> IFeedEnclosure_Vtbl - where - Identity: IFeedEnclosure_Impl, - { - unsafe extern "system" fn Url(this: *mut core::ffi::c_void, enclosureurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + pub const fn new() -> IFeedEnclosure_Vtbl { + unsafe extern "system" fn Url(this: *mut core::ffi::c_void, enclosureurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedEnclosure_Impl::Url(this) { Ok(ok__) => { @@ -733,10 +571,7 @@ impl IFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, mimetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, mimetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedEnclosure_Impl::Type(this) { Ok(ok__) => { @@ -746,10 +581,7 @@ impl IFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedEnclosure_Impl::Length(this) { Ok(ok__) => { @@ -759,24 +591,15 @@ impl IFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn AsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEnclosure_Impl::AsyncDownload(this).into() } - unsafe extern "system" fn CancelAsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn CancelAsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEnclosure_Impl::CancelAsyncDownload(this).into() } - unsafe extern "system" fn DownloadStatus(this: *mut core::ffi::c_void, status: *mut FEEDS_DOWNLOAD_STATUS) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn DownloadStatus(this: *mut core::ffi::c_void, status: *mut FEEDS_DOWNLOAD_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedEnclosure_Impl::DownloadStatus(this) { Ok(ok__) => { @@ -786,10 +609,7 @@ impl IFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastDownloadError(this: *mut core::ffi::c_void, error: *mut FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn LastDownloadError(this: *mut core::ffi::c_void, error: *mut FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedEnclosure_Impl::LastDownloadError(this) { Ok(ok__) => { @@ -799,10 +619,7 @@ impl IFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalPath(this: *mut core::ffi::c_void, localpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn LocalPath(this: *mut core::ffi::c_void, localpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedEnclosure_Impl::LocalPath(this) { Ok(ok__) => { @@ -812,10 +629,7 @@ impl IFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedEnclosure_Impl::Parent(this) { Ok(ok__) => { @@ -825,10 +639,7 @@ impl IFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, enclosureurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, enclosureurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedEnclosure_Impl::DownloadUrl(this) { Ok(ok__) => { @@ -838,10 +649,7 @@ impl IFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DownloadMimeType(this: *mut core::ffi::c_void, mimetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn DownloadMimeType(this: *mut core::ffi::c_void, mimetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedEnclosure_Impl::DownloadMimeType(this) { Ok(ok__) => { @@ -851,17 +659,11 @@ impl IFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn RemoveFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEnclosure_Impl::RemoveFile(this).into() } - unsafe extern "system" fn SetFile(this: *mut core::ffi::c_void, downloadurl: core::mem::MaybeUninit, downloadfilepath: core::mem::MaybeUninit, downloadmimetype: core::mem::MaybeUninit, enclosurefilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEnclosure_Impl, - { + unsafe extern "system" fn SetFile(this: *mut core::ffi::c_void, downloadurl: core::mem::MaybeUninit, downloadfilepath: core::mem::MaybeUninit, downloadmimetype: core::mem::MaybeUninit, enclosurefilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEnclosure_Impl::SetFile(this, core::mem::transmute(&downloadurl), core::mem::transmute(&downloadfilepath), core::mem::transmute(&downloadmimetype), core::mem::transmute(&enclosurefilename)).into() } @@ -901,63 +703,36 @@ pub trait IFeedEvents_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFeedEvents {} #[cfg(feature = "Win32_System_Com")] impl IFeedEvents_Vtbl { - pub const fn new() -> IFeedEvents_Vtbl - where - Identity: IFeedEvents_Impl, - { - unsafe extern "system" fn Error(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedEvents_Impl, - { + pub const fn new() -> IFeedEvents_Vtbl { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEvents_Impl::Error(this).into() } - unsafe extern "system" fn FeedDeleted(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEvents_Impl, - { + unsafe extern "system" fn FeedDeleted(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEvents_Impl::FeedDeleted(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedRenamed(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEvents_Impl, - { + unsafe extern "system" fn FeedRenamed(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEvents_Impl::FeedRenamed(this, core::mem::transmute(&path), core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FeedUrlChanged(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEvents_Impl, - { + unsafe extern "system" fn FeedUrlChanged(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEvents_Impl::FeedUrlChanged(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedMoved(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEvents_Impl, - { + unsafe extern "system" fn FeedMoved(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEvents_Impl::FeedMoved(this, core::mem::transmute(&path), core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FeedDownloading(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedEvents_Impl, - { + unsafe extern "system" fn FeedDownloading(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEvents_Impl::FeedDownloading(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedDownloadCompleted(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, error: FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT - where - Identity: IFeedEvents_Impl, - { + unsafe extern "system" fn FeedDownloadCompleted(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, error: FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEvents_Impl::FeedDownloadCompleted(this, core::mem::transmute(&path), core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn FeedItemCountChanged(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, itemcounttype: i32) -> windows_core::HRESULT - where - Identity: IFeedEvents_Impl, - { + unsafe extern "system" fn FeedItemCountChanged(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, itemcounttype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedEvents_Impl::FeedItemCountChanged(this, core::mem::transmute(&path), core::mem::transmute_copy(&itemcounttype)).into() } @@ -1002,14 +777,8 @@ pub trait IFeedFolder_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFeedFolder {} #[cfg(feature = "Win32_System_Com")] impl IFeedFolder_Vtbl { - pub const fn new() -> IFeedFolder_Vtbl - where - Identity: IFeedFolder_Impl, - { - unsafe extern "system" fn Feeds(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + pub const fn new() -> IFeedFolder_Vtbl { + unsafe extern "system" fn Feeds(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::Feeds(this) { Ok(ok__) => { @@ -1019,10 +788,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Subfolders(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn Subfolders(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::Subfolders(this) { Ok(ok__) => { @@ -1032,10 +798,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFeed(this: *mut core::ffi::c_void, feedname: core::mem::MaybeUninit, feedurl: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn CreateFeed(this: *mut core::ffi::c_void, feedname: core::mem::MaybeUninit, feedurl: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::CreateFeed(this, core::mem::transmute(&feedname), core::mem::transmute(&feedurl)) { Ok(ok__) => { @@ -1045,10 +808,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSubfolder(this: *mut core::ffi::c_void, foldername: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn CreateSubfolder(this: *mut core::ffi::c_void, foldername: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::CreateSubfolder(this, core::mem::transmute(&foldername)) { Ok(ok__) => { @@ -1058,10 +818,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, feedname: core::mem::MaybeUninit, exists: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, feedname: core::mem::MaybeUninit, exists: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::ExistsFeed(this, core::mem::transmute(&feedname)) { Ok(ok__) => { @@ -1071,10 +828,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFeed(this: *mut core::ffi::c_void, feedname: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn GetFeed(this: *mut core::ffi::c_void, feedname: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::GetFeed(this, core::mem::transmute(&feedname)) { Ok(ok__) => { @@ -1084,10 +838,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExistsSubfolder(this: *mut core::ffi::c_void, foldername: core::mem::MaybeUninit, exists: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn ExistsSubfolder(this: *mut core::ffi::c_void, foldername: core::mem::MaybeUninit, exists: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::ExistsSubfolder(this, core::mem::transmute(&foldername)) { Ok(ok__) => { @@ -1097,10 +848,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubfolder(this: *mut core::ffi::c_void, foldername: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn GetSubfolder(this: *mut core::ffi::c_void, foldername: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::GetSubfolder(this, core::mem::transmute(&foldername)) { Ok(ok__) => { @@ -1110,17 +858,11 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolder_Impl::Delete(this).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, foldername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, foldername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::Name(this) { Ok(ok__) => { @@ -1130,17 +872,11 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, foldername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, foldername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolder_Impl::Rename(this, core::mem::transmute(&foldername)).into() } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, folderpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, folderpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::Path(this) { Ok(ok__) => { @@ -1150,17 +886,11 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, newparentpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, newparentpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolder_Impl::Move(this, core::mem::transmute(&newparentpath)).into() } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::Parent(this) { Ok(ok__) => { @@ -1170,10 +900,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRoot(this: *mut core::ffi::c_void, isroot: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn IsRoot(this: *mut core::ffi::c_void, isroot: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::IsRoot(this) { Ok(ok__) => { @@ -1183,10 +910,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalUnreadItemCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn TotalUnreadItemCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::TotalUnreadItemCount(this) { Ok(ok__) => { @@ -1196,10 +920,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalItemCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn TotalItemCount(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::TotalItemCount(this) { Ok(ok__) => { @@ -1209,10 +930,7 @@ impl IFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWatcher(this: *mut core::ffi::c_void, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedFolder_Impl, - { + unsafe extern "system" fn GetWatcher(this: *mut core::ffi::c_void, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedFolder_Impl::GetWatcher(this, core::mem::transmute_copy(&scope), core::mem::transmute_copy(&mask)) { Ok(ok__) => { @@ -1271,119 +989,68 @@ pub trait IFeedFolderEvents_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IFeedFolderEvents {} #[cfg(feature = "Win32_System_Com")] impl IFeedFolderEvents_Vtbl { - pub const fn new() -> IFeedFolderEvents_Vtbl - where - Identity: IFeedFolderEvents_Impl, - { - unsafe extern "system" fn Error(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + pub const fn new() -> IFeedFolderEvents_Vtbl { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::Error(this).into() } - unsafe extern "system" fn FolderAdded(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderAdded(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FolderAdded(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn FolderDeleted(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderDeleted(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FolderDeleted(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn FolderRenamed(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderRenamed(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FolderRenamed(this, core::mem::transmute(&path), core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FolderMovedFrom(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderMovedFrom(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FolderMovedFrom(this, core::mem::transmute(&path), core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FolderMovedTo(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderMovedTo(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FolderMovedTo(this, core::mem::transmute(&path), core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FolderItemCountChanged(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, itemcounttype: i32) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderItemCountChanged(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, itemcounttype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FolderItemCountChanged(this, core::mem::transmute(&path), core::mem::transmute_copy(&itemcounttype)).into() } - unsafe extern "system" fn FeedAdded(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedAdded(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FeedAdded(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedDeleted(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedDeleted(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FeedDeleted(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedRenamed(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedRenamed(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FeedRenamed(this, core::mem::transmute(&path), core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FeedUrlChanged(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedUrlChanged(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FeedUrlChanged(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedMovedFrom(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedMovedFrom(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FeedMovedFrom(this, core::mem::transmute(&path), core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FeedMovedTo(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedMovedTo(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, oldpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FeedMovedTo(this, core::mem::transmute(&path), core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FeedDownloading(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedDownloading(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FeedDownloading(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedDownloadCompleted(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, error: FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedDownloadCompleted(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, error: FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FeedDownloadCompleted(this, core::mem::transmute(&path), core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn FeedItemCountChanged(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, itemcounttype: i32) -> windows_core::HRESULT - where - Identity: IFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedItemCountChanged(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, itemcounttype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedFolderEvents_Impl::FeedItemCountChanged(this, core::mem::transmute(&path), core::mem::transmute_copy(&itemcounttype)).into() } @@ -1435,14 +1102,8 @@ pub trait IFeedItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFeedItem {} #[cfg(feature = "Win32_System_Com")] impl IFeedItem_Vtbl { - pub const fn new() -> IFeedItem_Vtbl - where - Identity: IFeedItem_Impl, - { - unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, includeflags: FEEDS_XML_INCLUDE_FLAGS, xml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + pub const fn new() -> IFeedItem_Vtbl { + unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, includeflags: FEEDS_XML_INCLUDE_FLAGS, xml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::Xml(this, core::mem::transmute_copy(&includeflags)) { Ok(ok__) => { @@ -1452,10 +1113,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, title: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, title: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::Title(this) { Ok(ok__) => { @@ -1465,10 +1123,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Link(this: *mut core::ffi::c_void, linkurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn Link(this: *mut core::ffi::c_void, linkurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::Link(this) { Ok(ok__) => { @@ -1478,10 +1133,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, itemguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, itemguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::Guid(this) { Ok(ok__) => { @@ -1491,10 +1143,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::Description(this) { Ok(ok__) => { @@ -1504,10 +1153,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PubDate(this: *mut core::ffi::c_void, pubdate: *mut f64) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn PubDate(this: *mut core::ffi::c_void, pubdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::PubDate(this) { Ok(ok__) => { @@ -1517,10 +1163,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Comments(this: *mut core::ffi::c_void, comments: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn Comments(this: *mut core::ffi::c_void, comments: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::Comments(this) { Ok(ok__) => { @@ -1530,10 +1173,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Author(this: *mut core::ffi::c_void, author: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn Author(this: *mut core::ffi::c_void, author: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::Author(this) { Ok(ok__) => { @@ -1543,10 +1183,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enclosure(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn Enclosure(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::Enclosure(this) { Ok(ok__) => { @@ -1556,10 +1193,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRead(this: *mut core::ffi::c_void, isread: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn IsRead(this: *mut core::ffi::c_void, isread: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::IsRead(this) { Ok(ok__) => { @@ -1569,17 +1203,11 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsRead(this: *mut core::ffi::c_void, isread: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn SetIsRead(this: *mut core::ffi::c_void, isread: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedItem_Impl::SetIsRead(this, core::mem::transmute_copy(&isread)).into() } - unsafe extern "system" fn LocalId(this: *mut core::ffi::c_void, itemid: *mut i32) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn LocalId(this: *mut core::ffi::c_void, itemid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::LocalId(this) { Ok(ok__) => { @@ -1589,10 +1217,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::Parent(this) { Ok(ok__) => { @@ -1602,17 +1227,11 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedItem_Impl::Delete(this).into() } - unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, itemurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, itemurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::DownloadUrl(this) { Ok(ok__) => { @@ -1622,10 +1241,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastDownloadTime(this: *mut core::ffi::c_void, lastdownload: *mut f64) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn LastDownloadTime(this: *mut core::ffi::c_void, lastdownload: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::LastDownloadTime(this) { Ok(ok__) => { @@ -1635,10 +1251,7 @@ impl IFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, modified: *mut f64) -> windows_core::HRESULT - where - Identity: IFeedItem_Impl, - { + unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, modified: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem_Impl::Modified(this) { Ok(ok__) => { @@ -1681,14 +1294,8 @@ pub trait IFeedItem2_Impl: Sized + IFeedItem_Impl { impl windows_core::RuntimeName for IFeedItem2 {} #[cfg(feature = "Win32_System_Com")] impl IFeedItem2_Vtbl { - pub const fn new() -> IFeedItem2_Vtbl - where - Identity: IFeedItem2_Impl, - { - unsafe extern "system" fn EffectiveId(this: *mut core::ffi::c_void, effectiveid: *mut i32) -> windows_core::HRESULT - where - Identity: IFeedItem2_Impl, - { + pub const fn new() -> IFeedItem2_Vtbl { + unsafe extern "system" fn EffectiveId(this: *mut core::ffi::c_void, effectiveid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedItem2_Impl::EffectiveId(this) { Ok(ok__) => { @@ -1714,14 +1321,8 @@ pub trait IFeedsEnum_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFeedsEnum {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFeedsEnum_Vtbl { - pub const fn new() -> IFeedsEnum_Vtbl - where - Identity: IFeedsEnum_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IFeedsEnum_Impl, - { + pub const fn new() -> IFeedsEnum_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsEnum_Impl::Count(this) { Ok(ok__) => { @@ -1731,10 +1332,7 @@ impl IFeedsEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedsEnum_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsEnum_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1744,10 +1342,7 @@ impl IFeedsEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedsEnum_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsEnum_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1791,14 +1386,8 @@ pub trait IFeedsManager_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IFeedsManager {} #[cfg(feature = "Win32_System_Com")] impl IFeedsManager_Vtbl { - pub const fn new() -> IFeedsManager_Vtbl - where - Identity: IFeedsManager_Impl, - { - unsafe extern "system" fn RootFolder(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + pub const fn new() -> IFeedsManager_Vtbl { + unsafe extern "system" fn RootFolder(this: *mut core::ffi::c_void, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::RootFolder(this) { Ok(ok__) => { @@ -1808,10 +1397,7 @@ impl IFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, feedurl: core::mem::MaybeUninit, subscribed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, feedurl: core::mem::MaybeUninit, subscribed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::IsSubscribed(this, core::mem::transmute(&feedurl)) { Ok(ok__) => { @@ -1821,10 +1407,7 @@ impl IFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, feedpath: core::mem::MaybeUninit, exists: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, feedpath: core::mem::MaybeUninit, exists: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::ExistsFeed(this, core::mem::transmute(&feedpath)) { Ok(ok__) => { @@ -1834,10 +1417,7 @@ impl IFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFeed(this: *mut core::ffi::c_void, feedpath: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn GetFeed(this: *mut core::ffi::c_void, feedpath: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::GetFeed(this, core::mem::transmute(&feedpath)) { Ok(ok__) => { @@ -1847,10 +1427,7 @@ impl IFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFeedByUrl(this: *mut core::ffi::c_void, feedurl: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn GetFeedByUrl(this: *mut core::ffi::c_void, feedurl: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::GetFeedByUrl(this, core::mem::transmute(&feedurl)) { Ok(ok__) => { @@ -1860,10 +1437,7 @@ impl IFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExistsFolder(this: *mut core::ffi::c_void, folderpath: core::mem::MaybeUninit, exists: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn ExistsFolder(this: *mut core::ffi::c_void, folderpath: core::mem::MaybeUninit, exists: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::ExistsFolder(this, core::mem::transmute(&folderpath)) { Ok(ok__) => { @@ -1873,10 +1447,7 @@ impl IFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, folderpath: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, folderpath: core::mem::MaybeUninit, disp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::GetFolder(this, core::mem::transmute(&folderpath)) { Ok(ok__) => { @@ -1886,31 +1457,19 @@ impl IFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteFeed(this: *mut core::ffi::c_void, feedpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn DeleteFeed(this: *mut core::ffi::c_void, feedpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedsManager_Impl::DeleteFeed(this, core::mem::transmute(&feedpath)).into() } - unsafe extern "system" fn DeleteFolder(this: *mut core::ffi::c_void, folderpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn DeleteFolder(this: *mut core::ffi::c_void, folderpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedsManager_Impl::DeleteFolder(this, core::mem::transmute(&folderpath)).into() } - unsafe extern "system" fn BackgroundSync(this: *mut core::ffi::c_void, action: FEEDS_BACKGROUNDSYNC_ACTION) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn BackgroundSync(this: *mut core::ffi::c_void, action: FEEDS_BACKGROUNDSYNC_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedsManager_Impl::BackgroundSync(this, core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn BackgroundSyncStatus(this: *mut core::ffi::c_void, status: *mut FEEDS_BACKGROUNDSYNC_STATUS) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn BackgroundSyncStatus(this: *mut core::ffi::c_void, status: *mut FEEDS_BACKGROUNDSYNC_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::BackgroundSyncStatus(this) { Ok(ok__) => { @@ -1920,10 +1479,7 @@ impl IFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultInterval(this: *mut core::ffi::c_void, minutes: *mut i32) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn DefaultInterval(this: *mut core::ffi::c_void, minutes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::DefaultInterval(this) { Ok(ok__) => { @@ -1933,24 +1489,15 @@ impl IFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultInterval(this: *mut core::ffi::c_void, minutes: i32) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn SetDefaultInterval(this: *mut core::ffi::c_void, minutes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedsManager_Impl::SetDefaultInterval(this, core::mem::transmute_copy(&minutes)).into() } - unsafe extern "system" fn AsyncSyncAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn AsyncSyncAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedsManager_Impl::AsyncSyncAll(this).into() } - unsafe extern "system" fn Normalize(this: *mut core::ffi::c_void, feedxmlin: core::mem::MaybeUninit, feedxmlout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn Normalize(this: *mut core::ffi::c_void, feedxmlin: core::mem::MaybeUninit, feedxmlout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::Normalize(this, core::mem::transmute(&feedxmlin)) { Ok(ok__) => { @@ -1960,10 +1507,7 @@ impl IFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ItemCountLimit(this: *mut core::ffi::c_void, itemcountlimit: *mut i32) -> windows_core::HRESULT - where - Identity: IFeedsManager_Impl, - { + unsafe extern "system" fn ItemCountLimit(this: *mut core::ffi::c_void, itemcountlimit: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFeedsManager_Impl::ItemCountLimit(this) { Ok(ok__) => { @@ -1997,27 +1541,18 @@ impl IFeedsManager_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMPAudioRenderConfig_Impl: Sized { +pub trait IWMPAudioRenderConfig_Impl: Sized + windows_core::IUnknownImpl { fn audioOutputDevice(&self, pbstroutputdevice: *mut windows_core::BSTR) -> windows_core::Result<()>; fn SetaudioOutputDevice(&self, bstroutputdevice: &windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPAudioRenderConfig {} impl IWMPAudioRenderConfig_Vtbl { - pub const fn new() -> IWMPAudioRenderConfig_Vtbl - where - Identity: IWMPAudioRenderConfig_Impl, - { - unsafe extern "system" fn audioOutputDevice(this: *mut core::ffi::c_void, pbstroutputdevice: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPAudioRenderConfig_Impl, - { + pub const fn new() -> IWMPAudioRenderConfig_Vtbl { + unsafe extern "system" fn audioOutputDevice(this: *mut core::ffi::c_void, pbstroutputdevice: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPAudioRenderConfig_Impl::audioOutputDevice(this, core::mem::transmute_copy(&pbstroutputdevice)).into() } - unsafe extern "system" fn SetaudioOutputDevice(this: *mut core::ffi::c_void, bstroutputdevice: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPAudioRenderConfig_Impl, - { + unsafe extern "system" fn SetaudioOutputDevice(this: *mut core::ffi::c_void, bstroutputdevice: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPAudioRenderConfig_Impl::SetaudioOutputDevice(this, core::mem::transmute(&bstroutputdevice)).into() } @@ -2041,21 +1576,12 @@ pub trait IWMPCdrom_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMPCdrom {} #[cfg(feature = "Win32_System_Com")] impl IWMPCdrom_Vtbl { - pub const fn new() -> IWMPCdrom_Vtbl - where - Identity: IWMPCdrom_Impl, - { - unsafe extern "system" fn driveSpecifier(this: *mut core::ffi::c_void, pbstrdrive: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPCdrom_Impl, - { + pub const fn new() -> IWMPCdrom_Vtbl { + unsafe extern "system" fn driveSpecifier(this: *mut core::ffi::c_void, pbstrdrive: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdrom_Impl::driveSpecifier(this, core::mem::transmute_copy(&pbstrdrive)).into() } - unsafe extern "system" fn playlist(this: *mut core::ffi::c_void, ppplaylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdrom_Impl, - { + unsafe extern "system" fn playlist(this: *mut core::ffi::c_void, ppplaylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCdrom_Impl::playlist(this) { Ok(ok__) => { @@ -2065,10 +1591,7 @@ impl IWMPCdrom_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn eject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdrom_Impl, - { + unsafe extern "system" fn eject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdrom_Impl::eject(this).into() } @@ -2084,7 +1607,7 @@ impl IWMPCdrom_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWMPCdromBurn_Impl: Sized { +pub trait IWMPCdromBurn_Impl: Sized + windows_core::IUnknownImpl { fn isAvailable(&self, bstritem: &windows_core::BSTR, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> 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<()>; @@ -2104,56 +1627,32 @@ pub trait IWMPCdromBurn_Impl: Sized { impl windows_core::RuntimeName for IWMPCdromBurn {} #[cfg(feature = "Win32_System_Com")] impl IWMPCdromBurn_Vtbl { - pub const fn new() -> IWMPCdromBurn_Vtbl - where - Identity: IWMPCdromBurn_Impl, - { - unsafe extern "system" fn isAvailable(this: *mut core::ffi::c_void, bstritem: core::mem::MaybeUninit, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + pub const fn new() -> IWMPCdromBurn_Vtbl { + unsafe extern "system" fn isAvailable(this: *mut core::ffi::c_void, bstritem: core::mem::MaybeUninit, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::isAvailable(this, core::mem::transmute(&bstritem), core::mem::transmute_copy(&pisavailable)).into() } - unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstritem: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstritem: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::getItemInfo(this, core::mem::transmute(&bstritem), core::mem::transmute_copy(&pbstrval)).into() } - unsafe extern "system" fn label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::label(this, core::mem::transmute_copy(&pbstrlabel)).into() } - unsafe extern "system" fn Setlabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn Setlabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::Setlabel(this, core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn burnFormat(this: *mut core::ffi::c_void, pwmpbf: *mut WMPBurnFormat) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn burnFormat(this: *mut core::ffi::c_void, pwmpbf: *mut WMPBurnFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::burnFormat(this, core::mem::transmute_copy(&pwmpbf)).into() } - unsafe extern "system" fn SetburnFormat(this: *mut core::ffi::c_void, wmpbf: WMPBurnFormat) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn SetburnFormat(this: *mut core::ffi::c_void, wmpbf: WMPBurnFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::SetburnFormat(this, core::mem::transmute_copy(&wmpbf)).into() } - unsafe extern "system" fn burnPlaylist(this: *mut core::ffi::c_void, ppplaylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn burnPlaylist(this: *mut core::ffi::c_void, ppplaylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCdromBurn_Impl::burnPlaylist(this) { Ok(ok__) => { @@ -2163,52 +1662,31 @@ impl IWMPCdromBurn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetburnPlaylist(this: *mut core::ffi::c_void, pplaylist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn SetburnPlaylist(this: *mut core::ffi::c_void, pplaylist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::SetburnPlaylist(this, windows_core::from_raw_borrowed(&pplaylist)).into() } - unsafe extern "system" fn refreshStatus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn refreshStatus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::refreshStatus(this).into() } - unsafe extern "system" fn burnState(this: *mut core::ffi::c_void, pwmpbs: *mut WMPBurnState) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn burnState(this: *mut core::ffi::c_void, pwmpbs: *mut WMPBurnState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::burnState(this, core::mem::transmute_copy(&pwmpbs)).into() } - unsafe extern "system" fn burnProgress(this: *mut core::ffi::c_void, plprogress: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn burnProgress(this: *mut core::ffi::c_void, plprogress: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::burnProgress(this, core::mem::transmute_copy(&plprogress)).into() } - unsafe extern "system" fn startBurn(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn startBurn(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::startBurn(this).into() } - unsafe extern "system" fn stopBurn(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn stopBurn(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::stopBurn(this).into() } - unsafe extern "system" fn erase(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdromBurn_Impl, - { + unsafe extern "system" fn erase(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromBurn_Impl::erase(this).into() } @@ -2244,21 +1722,12 @@ pub trait IWMPCdromCollection_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IWMPCdromCollection {} #[cfg(feature = "Win32_System_Com")] impl IWMPCdromCollection_Vtbl { - pub const fn new() -> IWMPCdromCollection_Vtbl - where - Identity: IWMPCdromCollection_Impl, - { - unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPCdromCollection_Impl, - { + pub const fn new() -> IWMPCdromCollection_Vtbl { + unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromCollection_Impl::count(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn item(this: *mut core::ffi::c_void, lindex: i32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdromCollection_Impl, - { + unsafe extern "system" fn item(this: *mut core::ffi::c_void, lindex: i32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCdromCollection_Impl::item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -2268,10 +1737,7 @@ impl IWMPCdromCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getByDriveSpecifier(this: *mut core::ffi::c_void, bstrdrivespecifier: core::mem::MaybeUninit, ppcdrom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdromCollection_Impl, - { + unsafe extern "system" fn getByDriveSpecifier(this: *mut core::ffi::c_void, bstrdrivespecifier: core::mem::MaybeUninit, ppcdrom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCdromCollection_Impl::getByDriveSpecifier(this, core::mem::transmute(&bstrdrivespecifier)) { Ok(ok__) => { @@ -2292,7 +1758,7 @@ impl IWMPCdromCollection_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMPCdromRip_Impl: Sized { +pub trait IWMPCdromRip_Impl: Sized + windows_core::IUnknownImpl { fn ripState(&self, pwmprs: *mut WMPRipState) -> windows_core::Result<()>; fn ripProgress(&self, plprogress: *mut i32) -> windows_core::Result<()>; fn startRip(&self) -> windows_core::Result<()>; @@ -2300,35 +1766,20 @@ pub trait IWMPCdromRip_Impl: Sized { } impl windows_core::RuntimeName for IWMPCdromRip {} impl IWMPCdromRip_Vtbl { - pub const fn new() -> IWMPCdromRip_Vtbl - where - Identity: IWMPCdromRip_Impl, - { - unsafe extern "system" fn ripState(this: *mut core::ffi::c_void, pwmprs: *mut WMPRipState) -> windows_core::HRESULT - where - Identity: IWMPCdromRip_Impl, - { + pub const fn new() -> IWMPCdromRip_Vtbl { + unsafe extern "system" fn ripState(this: *mut core::ffi::c_void, pwmprs: *mut WMPRipState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromRip_Impl::ripState(this, core::mem::transmute_copy(&pwmprs)).into() } - unsafe extern "system" fn ripProgress(this: *mut core::ffi::c_void, plprogress: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPCdromRip_Impl, - { + unsafe extern "system" fn ripProgress(this: *mut core::ffi::c_void, plprogress: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromRip_Impl::ripProgress(this, core::mem::transmute_copy(&plprogress)).into() } - unsafe extern "system" fn startRip(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdromRip_Impl, - { + unsafe extern "system" fn startRip(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromRip_Impl::startRip(this).into() } - unsafe extern "system" fn stopRip(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCdromRip_Impl, - { + unsafe extern "system" fn stopRip(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCdromRip_Impl::stopRip(this).into() } @@ -2359,63 +1810,36 @@ pub trait IWMPClosedCaption_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IWMPClosedCaption {} #[cfg(feature = "Win32_System_Com")] impl IWMPClosedCaption_Vtbl { - pub const fn new() -> IWMPClosedCaption_Vtbl - where - Identity: IWMPClosedCaption_Impl, - { - unsafe extern "system" fn SAMIStyle(this: *mut core::ffi::c_void, pbstrsamistyle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption_Impl, - { + pub const fn new() -> IWMPClosedCaption_Vtbl { + unsafe extern "system" fn SAMIStyle(this: *mut core::ffi::c_void, pbstrsamistyle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption_Impl::SAMIStyle(this, core::mem::transmute_copy(&pbstrsamistyle)).into() } - unsafe extern "system" fn SetSAMIStyle(this: *mut core::ffi::c_void, bstrsamistyle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption_Impl, - { + unsafe extern "system" fn SetSAMIStyle(this: *mut core::ffi::c_void, bstrsamistyle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption_Impl::SetSAMIStyle(this, core::mem::transmute(&bstrsamistyle)).into() } - unsafe extern "system" fn SAMILang(this: *mut core::ffi::c_void, pbstrsamilang: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption_Impl, - { + unsafe extern "system" fn SAMILang(this: *mut core::ffi::c_void, pbstrsamilang: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption_Impl::SAMILang(this, core::mem::transmute_copy(&pbstrsamilang)).into() } - unsafe extern "system" fn SetSAMILang(this: *mut core::ffi::c_void, bstrsamilang: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption_Impl, - { + unsafe extern "system" fn SetSAMILang(this: *mut core::ffi::c_void, bstrsamilang: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption_Impl::SetSAMILang(this, core::mem::transmute(&bstrsamilang)).into() } - unsafe extern "system" fn SAMIFileName(this: *mut core::ffi::c_void, pbstrsamifilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption_Impl, - { + unsafe extern "system" fn SAMIFileName(this: *mut core::ffi::c_void, pbstrsamifilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption_Impl::SAMIFileName(this, core::mem::transmute_copy(&pbstrsamifilename)).into() } - unsafe extern "system" fn SetSAMIFileName(this: *mut core::ffi::c_void, bstrsamifilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption_Impl, - { + unsafe extern "system" fn SetSAMIFileName(this: *mut core::ffi::c_void, bstrsamifilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption_Impl::SetSAMIFileName(this, core::mem::transmute(&bstrsamifilename)).into() } - unsafe extern "system" fn captioningId(this: *mut core::ffi::c_void, pbstrcaptioningid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption_Impl, - { + unsafe extern "system" fn captioningId(this: *mut core::ffi::c_void, pbstrcaptioningid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption_Impl::captioningId(this, core::mem::transmute_copy(&pbstrcaptioningid)).into() } - unsafe extern "system" fn SetcaptioningId(this: *mut core::ffi::c_void, bstrcaptioningid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption_Impl, - { + unsafe extern "system" fn SetcaptioningId(this: *mut core::ffi::c_void, bstrcaptioningid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption_Impl::SetcaptioningId(this, core::mem::transmute(&bstrcaptioningid)).into() } @@ -2447,42 +1871,24 @@ pub trait IWMPClosedCaption2_Impl: Sized + IWMPClosedCaption_Impl { impl windows_core::RuntimeName for IWMPClosedCaption2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPClosedCaption2_Vtbl { - pub const fn new() -> IWMPClosedCaption2_Vtbl - where - Identity: IWMPClosedCaption2_Impl, - { - unsafe extern "system" fn SAMILangCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption2_Impl, - { + pub const fn new() -> IWMPClosedCaption2_Vtbl { + unsafe extern "system" fn SAMILangCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption2_Impl::SAMILangCount(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getSAMILangName(this: *mut core::ffi::c_void, nindex: i32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption2_Impl, - { + unsafe extern "system" fn getSAMILangName(this: *mut core::ffi::c_void, nindex: i32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption2_Impl::getSAMILangName(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn getSAMILangID(this: *mut core::ffi::c_void, nindex: i32, pllangid: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption2_Impl, - { + unsafe extern "system" fn getSAMILangID(this: *mut core::ffi::c_void, nindex: i32, pllangid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption2_Impl::getSAMILangID(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&pllangid)).into() } - unsafe extern "system" fn SAMIStyleCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption2_Impl, - { + unsafe extern "system" fn SAMIStyleCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption2_Impl::SAMIStyleCount(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getSAMIStyleName(this: *mut core::ffi::c_void, nindex: i32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPClosedCaption2_Impl, - { + unsafe extern "system" fn getSAMIStyleName(this: *mut core::ffi::c_void, nindex: i32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPClosedCaption2_Impl::getSAMIStyleName(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&pbstrname)).into() } @@ -2499,7 +1905,7 @@ impl IWMPClosedCaption2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMPContentContainer_Impl: Sized { +pub trait IWMPContentContainer_Impl: Sized + windows_core::IUnknownImpl { fn GetID(&self) -> windows_core::Result; fn GetPrice(&self) -> windows_core::Result; fn GetType(&self) -> windows_core::Result; @@ -2509,14 +1915,8 @@ pub trait IWMPContentContainer_Impl: Sized { } impl windows_core::RuntimeName for IWMPContentContainer {} impl IWMPContentContainer_Vtbl { - pub const fn new() -> IWMPContentContainer_Vtbl - where - Identity: IWMPContentContainer_Impl, - { - unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pcontentid: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPContentContainer_Impl, - { + pub const fn new() -> IWMPContentContainer_Vtbl { + unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pcontentid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentContainer_Impl::GetID(this) { Ok(ok__) => { @@ -2526,10 +1926,7 @@ impl IWMPContentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrice(this: *mut core::ffi::c_void, pbstrprice: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentContainer_Impl, - { + unsafe extern "system" fn GetPrice(this: *mut core::ffi::c_void, pbstrprice: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentContainer_Impl::GetPrice(this) { Ok(ok__) => { @@ -2539,10 +1936,7 @@ impl IWMPContentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentContainer_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentContainer_Impl::GetType(this) { Ok(ok__) => { @@ -2552,10 +1946,7 @@ impl IWMPContentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContentCount(this: *mut core::ffi::c_void, pccontent: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPContentContainer_Impl, - { + unsafe extern "system" fn GetContentCount(this: *mut core::ffi::c_void, pccontent: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentContainer_Impl::GetContentCount(this) { Ok(ok__) => { @@ -2565,10 +1956,7 @@ impl IWMPContentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContentPrice(this: *mut core::ffi::c_void, idxcontent: u32, pbstrprice: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentContainer_Impl, - { + unsafe extern "system" fn GetContentPrice(this: *mut core::ffi::c_void, idxcontent: u32, pbstrprice: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentContainer_Impl::GetContentPrice(this, core::mem::transmute_copy(&idxcontent)) { Ok(ok__) => { @@ -2578,10 +1966,7 @@ impl IWMPContentContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContentID(this: *mut core::ffi::c_void, idxcontent: u32, pcontentid: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPContentContainer_Impl, - { + unsafe extern "system" fn GetContentID(this: *mut core::ffi::c_void, idxcontent: u32, pcontentid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentContainer_Impl::GetContentID(this, core::mem::transmute_copy(&idxcontent)) { Ok(ok__) => { @@ -2605,21 +1990,15 @@ impl IWMPContentContainer_Vtbl { iid == &::IID } } -pub trait IWMPContentContainerList_Impl: Sized { +pub trait IWMPContentContainerList_Impl: Sized + windows_core::IUnknownImpl { fn GetTransactionType(&self) -> windows_core::Result; fn GetContainerCount(&self) -> windows_core::Result; fn GetContainer(&self, idxcontainer: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IWMPContentContainerList {} impl IWMPContentContainerList_Vtbl { - pub const fn new() -> IWMPContentContainerList_Vtbl - where - Identity: IWMPContentContainerList_Impl, - { - unsafe extern "system" fn GetTransactionType(this: *mut core::ffi::c_void, pwmptt: *mut WMPTransactionType) -> windows_core::HRESULT - where - Identity: IWMPContentContainerList_Impl, - { + pub const fn new() -> IWMPContentContainerList_Vtbl { + unsafe extern "system" fn GetTransactionType(this: *mut core::ffi::c_void, pwmptt: *mut WMPTransactionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentContainerList_Impl::GetTransactionType(this) { Ok(ok__) => { @@ -2629,10 +2008,7 @@ impl IWMPContentContainerList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContainerCount(this: *mut core::ffi::c_void, pccontainer: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPContentContainerList_Impl, - { + unsafe extern "system" fn GetContainerCount(this: *mut core::ffi::c_void, pccontainer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentContainerList_Impl::GetContainerCount(this) { Ok(ok__) => { @@ -2642,10 +2018,7 @@ impl IWMPContentContainerList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContainer(this: *mut core::ffi::c_void, idxcontainer: u32, ppcontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPContentContainerList_Impl, - { + unsafe extern "system" fn GetContainer(this: *mut core::ffi::c_void, idxcontainer: u32, ppcontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentContainerList_Impl::GetContainer(this, core::mem::transmute_copy(&idxcontainer)) { Ok(ok__) => { @@ -2667,7 +2040,7 @@ impl IWMPContentContainerList_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWMPContentPartner_Impl: Sized { +pub trait IWMPContentPartner_Impl: Sized + windows_core::IUnknownImpl { fn SetCallback(&self, pcallback: Option<&IWMPContentPartnerCallback>) -> windows_core::Result<()>; fn Notify(&self, r#type: WMPPartnerNotification, pcontext: *const windows_core::VARIANT) -> windows_core::Result<()>; fn GetItemInfo(&self, bstrinfoname: &windows_core::BSTR, pcontext: *const windows_core::VARIANT) -> windows_core::Result; @@ -2696,28 +2069,16 @@ pub trait IWMPContentPartner_Impl: Sized { impl windows_core::RuntimeName for IWMPContentPartner {} #[cfg(feature = "Win32_System_Com")] impl IWMPContentPartner_Vtbl { - pub const fn new() -> IWMPContentPartner_Vtbl - where - Identity: IWMPContentPartner_Impl, - { - unsafe extern "system" fn SetCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + pub const fn new() -> IWMPContentPartner_Vtbl { + unsafe extern "system" fn SetCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::SetCallback(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, r#type: WMPPartnerNotification, pcontext: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, r#type: WMPPartnerNotification, pcontext: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::Notify(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn GetItemInfo(this: *mut core::ffi::c_void, bstrinfoname: core::mem::MaybeUninit, pcontext: *const core::mem::MaybeUninit, pdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn GetItemInfo(this: *mut core::ffi::c_void, bstrinfoname: core::mem::MaybeUninit, pcontext: *const core::mem::MaybeUninit, pdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentPartner_Impl::GetItemInfo(this, core::mem::transmute(&bstrinfoname), core::mem::transmute_copy(&pcontext)) { Ok(ok__) => { @@ -2727,10 +2088,7 @@ impl IWMPContentPartner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContentPartnerInfo(this: *mut core::ffi::c_void, bstrinfoname: core::mem::MaybeUninit, pdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn GetContentPartnerInfo(this: *mut core::ffi::c_void, bstrinfoname: core::mem::MaybeUninit, pdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentPartner_Impl::GetContentPartnerInfo(this, core::mem::transmute(&bstrinfoname)) { Ok(ok__) => { @@ -2740,38 +2098,23 @@ impl IWMPContentPartner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCommands(this: *mut core::ffi::c_void, location: core::mem::MaybeUninit, plocationcontext: *const core::mem::MaybeUninit, itemlocation: core::mem::MaybeUninit, citemids: u32, prgitemids: *const u32, pcitemids: *mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn GetCommands(this: *mut core::ffi::c_void, location: core::mem::MaybeUninit, plocationcontext: *const core::mem::MaybeUninit, itemlocation: core::mem::MaybeUninit, citemids: u32, prgitemids: *const u32, pcitemids: *mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::GetCommands(this, 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(this: *mut core::ffi::c_void, dwcommandid: u32, location: core::mem::MaybeUninit, plocationcontext: *const core::mem::MaybeUninit, itemlocation: core::mem::MaybeUninit, citemids: u32, rgitemids: *const u32) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn InvokeCommand(this: *mut core::ffi::c_void, dwcommandid: u32, location: core::mem::MaybeUninit, plocationcontext: *const core::mem::MaybeUninit, itemlocation: core::mem::MaybeUninit, citemids: u32, rgitemids: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::InvokeCommand(this, 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(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void, pbstrtotalprice: *mut core::mem::MaybeUninit, psilentok: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn CanBuySilent(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void, pbstrtotalprice: *mut core::mem::MaybeUninit, psilentok: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::CanBuySilent(this, windows_core::from_raw_borrowed(&pinfo), core::mem::transmute_copy(&pbstrtotalprice), core::mem::transmute_copy(&psilentok)).into() } - unsafe extern "system" fn Buy(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn Buy(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::Buy(this, windows_core::from_raw_borrowed(&pinfo), core::mem::transmute_copy(&cookie)).into() } - unsafe extern "system" fn GetStreamingURL(this: *mut core::ffi::c_void, st: WMPStreamingType, pstreamcontext: *const core::mem::MaybeUninit, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn GetStreamingURL(this: *mut core::ffi::c_void, st: WMPStreamingType, pstreamcontext: *const core::mem::MaybeUninit, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentPartner_Impl::GetStreamingURL(this, core::mem::transmute_copy(&st), core::mem::transmute_copy(&pstreamcontext)) { Ok(ok__) => { @@ -2781,94 +2124,55 @@ impl IWMPContentPartner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Download(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn Download(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::Download(this, windows_core::from_raw_borrowed(&pinfo), core::mem::transmute_copy(&cookie)).into() } - unsafe extern "system" fn DownloadTrackComplete(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT, contentid: u32, downloadtrackparam: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn DownloadTrackComplete(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT, contentid: u32, downloadtrackparam: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::DownloadTrackComplete(this, core::mem::transmute_copy(&hrresult), core::mem::transmute_copy(&contentid), core::mem::transmute(&downloadtrackparam)).into() } - unsafe extern "system" fn RefreshLicense(this: *mut core::ffi::c_void, dwcookie: u32, flocal: super::super::Foundation::VARIANT_BOOL, bstrurl: core::mem::MaybeUninit, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: core::mem::MaybeUninit, preasoncontext: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn RefreshLicense(this: *mut core::ffi::c_void, dwcookie: u32, flocal: super::super::Foundation::VARIANT_BOOL, bstrurl: core::mem::MaybeUninit, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: core::mem::MaybeUninit, preasoncontext: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::RefreshLicense(this, 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(this: *mut core::ffi::c_void, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut core::mem::MaybeUninit, pexpirationdate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn GetCatalogURL(this: *mut core::ffi::c_void, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut core::mem::MaybeUninit, pexpirationdate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::GetCatalogURL(this, 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(this: *mut core::ffi::c_void, task: WMPTaskType, location: core::mem::MaybeUninit, pcontext: *const core::mem::MaybeUninit, clicklocation: core::mem::MaybeUninit, pclickcontext: *const core::mem::MaybeUninit, bstrfilter: core::mem::MaybeUninit, bstrviewparams: core::mem::MaybeUninit, pbstrtemplateurl: *mut core::mem::MaybeUninit, ptemplatesize: *mut WMPTemplateSize) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn GetTemplate(this: *mut core::ffi::c_void, task: WMPTaskType, location: core::mem::MaybeUninit, pcontext: *const core::mem::MaybeUninit, clicklocation: core::mem::MaybeUninit, pclickcontext: *const core::mem::MaybeUninit, bstrfilter: core::mem::MaybeUninit, bstrviewparams: core::mem::MaybeUninit, pbstrtemplateurl: *mut core::mem::MaybeUninit, ptemplatesize: *mut WMPTemplateSize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::GetTemplate(this, 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(this: *mut core::ffi::c_void, bstrdevicename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn UpdateDevice(this: *mut core::ffi::c_void, bstrdevicename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::UpdateDevice(this, core::mem::transmute(&bstrdevicename)).into() } - unsafe extern "system" fn GetListContents(this: *mut core::ffi::c_void, location: core::mem::MaybeUninit, pcontext: *const core::mem::MaybeUninit, bstrlisttype: core::mem::MaybeUninit, bstrparams: core::mem::MaybeUninit, dwlistcookie: u32) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn GetListContents(this: *mut core::ffi::c_void, location: core::mem::MaybeUninit, pcontext: *const core::mem::MaybeUninit, bstrlisttype: core::mem::MaybeUninit, bstrparams: core::mem::MaybeUninit, dwlistcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::GetListContents(this, core::mem::transmute(&location), core::mem::transmute_copy(&pcontext), core::mem::transmute(&bstrlisttype), core::mem::transmute(&bstrparams), core::mem::transmute_copy(&dwlistcookie)).into() } - unsafe extern "system" fn Login(this: *mut core::ffi::c_void, userinfo: super::super::System::Com::BLOB, pwdinfo: super::super::System::Com::BLOB, fusedcachedcreds: super::super::Foundation::VARIANT_BOOL, foktocache: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn Login(this: *mut core::ffi::c_void, userinfo: super::super::System::Com::BLOB, pwdinfo: super::super::System::Com::BLOB, fusedcachedcreds: super::super::Foundation::VARIANT_BOOL, foktocache: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::Login(this, core::mem::transmute(&userinfo), core::mem::transmute(&pwdinfo), core::mem::transmute_copy(&fusedcachedcreds), core::mem::transmute_copy(&foktocache)).into() } - unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, userinfo: super::super::System::Com::BLOB, pwdinfo: super::super::System::Com::BLOB) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, userinfo: super::super::System::Com::BLOB, pwdinfo: super::super::System::Com::BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::Authenticate(this, core::mem::transmute(&userinfo), core::mem::transmute(&pwdinfo)).into() } - unsafe extern "system" fn Logout(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn Logout(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::Logout(this).into() } - unsafe extern "system" fn SendMessage(this: *mut core::ffi::c_void, bstrmsg: core::mem::MaybeUninit, bstrparam: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn SendMessage(this: *mut core::ffi::c_void, bstrmsg: core::mem::MaybeUninit, bstrparam: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::SendMessage(this, core::mem::transmute(&bstrmsg), core::mem::transmute(&bstrparam)).into() } - unsafe extern "system" fn StationEvent(this: *mut core::ffi::c_void, bstrstationeventtype: core::mem::MaybeUninit, stationid: u32, playlistindex: u32, trackid: u32, trackdata: core::mem::MaybeUninit, dwsecondsplayed: u32) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn StationEvent(this: *mut core::ffi::c_void, bstrstationeventtype: core::mem::MaybeUninit, stationid: u32, playlistindex: u32, trackid: u32, trackdata: core::mem::MaybeUninit, dwsecondsplayed: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::StationEvent(this, 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() } - unsafe extern "system" fn CompareContainerListPrices(this: *mut core::ffi::c_void, plistbase: *mut core::ffi::c_void, plistcompare: *mut core::ffi::c_void, presult: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn CompareContainerListPrices(this: *mut core::ffi::c_void, plistbase: *mut core::ffi::c_void, plistcompare: *mut core::ffi::c_void, presult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPContentPartner_Impl::CompareContainerListPrices(this, windows_core::from_raw_borrowed(&plistbase), windows_core::from_raw_borrowed(&plistcompare)) { Ok(ok__) => { @@ -2878,10 +2182,7 @@ impl IWMPContentPartner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VerifyPermission(this: *mut core::ffi::c_void, bstrpermission: core::mem::MaybeUninit, pcontext: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartner_Impl, - { + unsafe extern "system" fn VerifyPermission(this: *mut core::ffi::c_void, bstrpermission: core::mem::MaybeUninit, pcontext: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartner_Impl::VerifyPermission(this, core::mem::transmute(&bstrpermission), core::mem::transmute_copy(&pcontext)).into() } @@ -2916,7 +2217,7 @@ impl IWMPContentPartner_Vtbl { iid == &::IID } } -pub trait IWMPContentPartnerCallback_Impl: Sized { +pub trait IWMPContentPartnerCallback_Impl: Sized + windows_core::IUnknownImpl { fn Notify(&self, r#type: WMPCallbackNotification, pcontext: *const windows_core::VARIANT) -> windows_core::Result<()>; fn BuyComplete(&self, hrresult: windows_core::HRESULT, dwbuycookie: u32) -> 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<()>; @@ -2933,98 +2234,56 @@ pub trait IWMPContentPartnerCallback_Impl: Sized { } impl windows_core::RuntimeName for IWMPContentPartnerCallback {} impl IWMPContentPartnerCallback_Vtbl { - pub const fn new() -> IWMPContentPartnerCallback_Vtbl - where - Identity: IWMPContentPartnerCallback_Impl, - { - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, r#type: WMPCallbackNotification, pcontext: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + pub const fn new() -> IWMPContentPartnerCallback_Vtbl { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, r#type: WMPCallbackNotification, pcontext: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::Notify(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn BuyComplete(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT, dwbuycookie: u32) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn BuyComplete(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT, dwbuycookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::BuyComplete(this, core::mem::transmute_copy(&hrresult), core::mem::transmute_copy(&dwbuycookie)).into() } - unsafe extern "system" fn DownloadTrack(this: *mut core::ffi::c_void, cookie: u32, bstrtrackurl: core::mem::MaybeUninit, dwservicetrackid: u32, bstrdownloadparams: core::mem::MaybeUninit, hrdownload: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn DownloadTrack(this: *mut core::ffi::c_void, cookie: u32, bstrtrackurl: core::mem::MaybeUninit, dwservicetrackid: u32, bstrdownloadparams: core::mem::MaybeUninit, hrdownload: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::DownloadTrack(this, core::mem::transmute_copy(&cookie), core::mem::transmute(&bstrtrackurl), core::mem::transmute_copy(&dwservicetrackid), core::mem::transmute(&bstrdownloadparams), core::mem::transmute_copy(&hrdownload)).into() } - unsafe extern "system" fn GetCatalogVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32, pdwschemaversion: *mut u32, plcid: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn GetCatalogVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32, pdwschemaversion: *mut u32, plcid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::GetCatalogVersion(this, core::mem::transmute_copy(&pdwversion), core::mem::transmute_copy(&pdwschemaversion), core::mem::transmute_copy(&plcid)).into() } - unsafe extern "system" fn UpdateDeviceComplete(this: *mut core::ffi::c_void, bstrdevicename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn UpdateDeviceComplete(this: *mut core::ffi::c_void, bstrdevicename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::UpdateDeviceComplete(this, core::mem::transmute(&bstrdevicename)).into() } - unsafe extern "system" fn ChangeView(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit, bstrid: core::mem::MaybeUninit, bstrfilter: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn ChangeView(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit, bstrid: core::mem::MaybeUninit, bstrfilter: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::ChangeView(this, core::mem::transmute(&bstrtype), core::mem::transmute(&bstrid), core::mem::transmute(&bstrfilter)).into() } - unsafe extern "system" fn AddListContents(this: *mut core::ffi::c_void, dwlistcookie: u32, citems: u32, prgitems: *const u32) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn AddListContents(this: *mut core::ffi::c_void, dwlistcookie: u32, citems: u32, prgitems: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::AddListContents(this, core::mem::transmute_copy(&dwlistcookie), core::mem::transmute_copy(&citems), core::mem::transmute_copy(&prgitems)).into() } - unsafe extern "system" fn ListContentsComplete(this: *mut core::ffi::c_void, dwlistcookie: u32, hrsuccess: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn ListContentsComplete(this: *mut core::ffi::c_void, dwlistcookie: u32, hrsuccess: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::ListContentsComplete(this, core::mem::transmute_copy(&dwlistcookie), core::mem::transmute_copy(&hrsuccess)).into() } - unsafe extern "system" fn SendMessageComplete(this: *mut core::ffi::c_void, bstrmsg: core::mem::MaybeUninit, bstrparam: core::mem::MaybeUninit, bstrresult: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn SendMessageComplete(this: *mut core::ffi::c_void, bstrmsg: core::mem::MaybeUninit, bstrparam: core::mem::MaybeUninit, bstrresult: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::SendMessageComplete(this, core::mem::transmute(&bstrmsg), core::mem::transmute(&bstrparam), core::mem::transmute(&bstrresult)).into() } - unsafe extern "system" fn GetContentIDsInLibrary(this: *mut core::ffi::c_void, pccontentids: *mut u32, pprgids: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn GetContentIDsInLibrary(this: *mut core::ffi::c_void, pccontentids: *mut u32, pprgids: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::GetContentIDsInLibrary(this, core::mem::transmute_copy(&pccontentids), core::mem::transmute_copy(&pprgids)).into() } - unsafe extern "system" fn RefreshLicenseComplete(this: *mut core::ffi::c_void, dwcookie: u32, contentid: u32, hrrefresh: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn RefreshLicenseComplete(this: *mut core::ffi::c_void, dwcookie: u32, contentid: u32, hrrefresh: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::RefreshLicenseComplete(this, core::mem::transmute_copy(&dwcookie), core::mem::transmute_copy(&contentid), core::mem::transmute_copy(&hrrefresh)).into() } - unsafe extern "system" fn ShowPopup(this: *mut core::ffi::c_void, lindex: i32, bstrparameters: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn ShowPopup(this: *mut core::ffi::c_void, lindex: i32, bstrparameters: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::ShowPopup(this, core::mem::transmute_copy(&lindex), core::mem::transmute(&bstrparameters)).into() } - unsafe extern "system" fn VerifyPermissionComplete(this: *mut core::ffi::c_void, bstrpermission: core::mem::MaybeUninit, pcontext: *const core::mem::MaybeUninit, hrpermission: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWMPContentPartnerCallback_Impl, - { + unsafe extern "system" fn VerifyPermissionComplete(this: *mut core::ffi::c_void, bstrpermission: core::mem::MaybeUninit, pcontext: *const core::mem::MaybeUninit, hrpermission: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPContentPartnerCallback_Impl::VerifyPermissionComplete(this, core::mem::transmute(&bstrpermission), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&hrpermission)).into() } @@ -3072,91 +2331,52 @@ pub trait IWMPControls_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMPControls {} #[cfg(feature = "Win32_System_Com")] impl IWMPControls_Vtbl { - pub const fn new() -> IWMPControls_Vtbl - where - Identity: IWMPControls_Impl, - { - unsafe extern "system" fn get_isAvailable(this: *mut core::ffi::c_void, bstritem: core::mem::MaybeUninit, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + pub const fn new() -> IWMPControls_Vtbl { + unsafe extern "system" fn get_isAvailable(this: *mut core::ffi::c_void, bstritem: core::mem::MaybeUninit, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::get_isAvailable(this, core::mem::transmute(&bstritem), core::mem::transmute_copy(&pisavailable)).into() } - unsafe extern "system" fn play(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn play(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::play(this).into() } - unsafe extern "system" fn stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::stop(this).into() } - unsafe extern "system" fn pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::pause(this).into() } - unsafe extern "system" fn fastForward(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn fastForward(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::fastForward(this).into() } - unsafe extern "system" fn fastReverse(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn fastReverse(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::fastReverse(this).into() } - unsafe extern "system" fn currentPosition(this: *mut core::ffi::c_void, pdcurrentposition: *mut f64) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn currentPosition(this: *mut core::ffi::c_void, pdcurrentposition: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::currentPosition(this, core::mem::transmute_copy(&pdcurrentposition)).into() } - unsafe extern "system" fn SetcurrentPosition(this: *mut core::ffi::c_void, dcurrentposition: f64) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn SetcurrentPosition(this: *mut core::ffi::c_void, dcurrentposition: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::SetcurrentPosition(this, core::mem::transmute_copy(&dcurrentposition)).into() } - unsafe extern "system" fn currentPositionString(this: *mut core::ffi::c_void, pbstrcurrentposition: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn currentPositionString(this: *mut core::ffi::c_void, pbstrcurrentposition: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::currentPositionString(this, core::mem::transmute_copy(&pbstrcurrentposition)).into() } - unsafe extern "system" fn next(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn next(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::next(this).into() } - unsafe extern "system" fn previous(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn previous(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::previous(this).into() } - unsafe extern "system" fn currentItem(this: *mut core::ffi::c_void, ppiwmpmedia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn currentItem(this: *mut core::ffi::c_void, ppiwmpmedia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPControls_Impl::currentItem(this) { Ok(ok__) => { @@ -3166,31 +2386,19 @@ impl IWMPControls_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetcurrentItem(this: *mut core::ffi::c_void, piwmpmedia: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn SetcurrentItem(this: *mut core::ffi::c_void, piwmpmedia: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::SetcurrentItem(this, windows_core::from_raw_borrowed(&piwmpmedia)).into() } - unsafe extern "system" fn currentMarker(this: *mut core::ffi::c_void, plmarker: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn currentMarker(this: *mut core::ffi::c_void, plmarker: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::currentMarker(this, core::mem::transmute_copy(&plmarker)).into() } - unsafe extern "system" fn SetcurrentMarker(this: *mut core::ffi::c_void, lmarker: i32) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn SetcurrentMarker(this: *mut core::ffi::c_void, lmarker: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::SetcurrentMarker(this, core::mem::transmute_copy(&lmarker)).into() } - unsafe extern "system" fn playItem(this: *mut core::ffi::c_void, piwmpmedia: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPControls_Impl, - { + unsafe extern "system" fn playItem(this: *mut core::ffi::c_void, piwmpmedia: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls_Impl::playItem(this, windows_core::from_raw_borrowed(&piwmpmedia)).into() } @@ -3226,14 +2434,8 @@ pub trait IWMPControls2_Impl: Sized + IWMPControls_Impl { impl windows_core::RuntimeName for IWMPControls2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPControls2_Vtbl { - pub const fn new() -> IWMPControls2_Vtbl - where - Identity: IWMPControls2_Impl, - { - unsafe extern "system" fn step(this: *mut core::ffi::c_void, lstep: i32) -> windows_core::HRESULT - where - Identity: IWMPControls2_Impl, - { + pub const fn new() -> IWMPControls2_Vtbl { + unsafe extern "system" fn step(this: *mut core::ffi::c_void, lstep: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls2_Impl::step(this, core::mem::transmute_copy(&lstep)).into() } @@ -3260,77 +2462,44 @@ pub trait IWMPControls3_Impl: Sized + IWMPControls2_Impl { impl windows_core::RuntimeName for IWMPControls3 {} #[cfg(feature = "Win32_System_Com")] impl IWMPControls3_Vtbl { - pub const fn new() -> IWMPControls3_Vtbl - where - Identity: IWMPControls3_Impl, - { - unsafe extern "system" fn audioLanguageCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPControls3_Impl, - { + pub const fn new() -> IWMPControls3_Vtbl { + unsafe extern "system" fn audioLanguageCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls3_Impl::audioLanguageCount(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getAudioLanguageID(this: *mut core::ffi::c_void, lindex: i32, pllangid: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPControls3_Impl, - { + unsafe extern "system" fn getAudioLanguageID(this: *mut core::ffi::c_void, lindex: i32, pllangid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls3_Impl::getAudioLanguageID(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pllangid)).into() } - unsafe extern "system" fn getAudioLanguageDescription(this: *mut core::ffi::c_void, lindex: i32, pbstrlangdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPControls3_Impl, - { + unsafe extern "system" fn getAudioLanguageDescription(this: *mut core::ffi::c_void, lindex: i32, pbstrlangdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls3_Impl::getAudioLanguageDescription(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pbstrlangdesc)).into() } - unsafe extern "system" fn currentAudioLanguage(this: *mut core::ffi::c_void, pllangid: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPControls3_Impl, - { + unsafe extern "system" fn currentAudioLanguage(this: *mut core::ffi::c_void, pllangid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls3_Impl::currentAudioLanguage(this, core::mem::transmute_copy(&pllangid)).into() } - unsafe extern "system" fn SetcurrentAudioLanguage(this: *mut core::ffi::c_void, llangid: i32) -> windows_core::HRESULT - where - Identity: IWMPControls3_Impl, - { + unsafe extern "system" fn SetcurrentAudioLanguage(this: *mut core::ffi::c_void, llangid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls3_Impl::SetcurrentAudioLanguage(this, core::mem::transmute_copy(&llangid)).into() } - unsafe extern "system" fn currentAudioLanguageIndex(this: *mut core::ffi::c_void, plindex: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPControls3_Impl, - { + unsafe extern "system" fn currentAudioLanguageIndex(this: *mut core::ffi::c_void, plindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls3_Impl::currentAudioLanguageIndex(this, core::mem::transmute_copy(&plindex)).into() } - unsafe extern "system" fn SetcurrentAudioLanguageIndex(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT - where - Identity: IWMPControls3_Impl, - { + unsafe extern "system" fn SetcurrentAudioLanguageIndex(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls3_Impl::SetcurrentAudioLanguageIndex(this, core::mem::transmute_copy(&lindex)).into() } - unsafe extern "system" fn getLanguageName(this: *mut core::ffi::c_void, llangid: i32, pbstrlangname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPControls3_Impl, - { + unsafe extern "system" fn getLanguageName(this: *mut core::ffi::c_void, llangid: i32, pbstrlangname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls3_Impl::getLanguageName(this, core::mem::transmute_copy(&llangid), core::mem::transmute_copy(&pbstrlangname)).into() } - unsafe extern "system" fn currentPositionTimecode(this: *mut core::ffi::c_void, bstrtimecode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPControls3_Impl, - { + unsafe extern "system" fn currentPositionTimecode(this: *mut core::ffi::c_void, bstrtimecode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls3_Impl::currentPositionTimecode(this, core::mem::transmute_copy(&bstrtimecode)).into() } - unsafe extern "system" fn SetcurrentPositionTimecode(this: *mut core::ffi::c_void, bstrtimecode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPControls3_Impl, - { + unsafe extern "system" fn SetcurrentPositionTimecode(this: *mut core::ffi::c_void, bstrtimecode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPControls3_Impl::SetcurrentPositionTimecode(this, core::mem::transmute(&bstrtimecode)).into() } @@ -3352,27 +2521,18 @@ impl IWMPControls3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMPConvert_Impl: Sized { +pub trait IWMPConvert_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IWMPConvert {} impl IWMPConvert_Vtbl { - pub const fn new() -> IWMPConvert_Vtbl - where - Identity: IWMPConvert_Impl, - { - unsafe extern "system" fn ConvertFile(this: *mut core::ffi::c_void, bstrinputfile: core::mem::MaybeUninit, bstrdestinationfolder: core::mem::MaybeUninit, pbstroutputfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPConvert_Impl, - { + pub const fn new() -> IWMPConvert_Vtbl { + unsafe extern "system" fn ConvertFile(this: *mut core::ffi::c_void, bstrinputfile: core::mem::MaybeUninit, bstrdestinationfolder: core::mem::MaybeUninit, pbstroutputfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPConvert_Impl::ConvertFile(this, core::mem::transmute(&bstrinputfile), core::mem::transmute(&bstrdestinationfolder), core::mem::transmute_copy(&pbstroutputfile)).into() } - unsafe extern "system" fn GetErrorURL(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPConvert_Impl, - { + unsafe extern "system" fn GetErrorURL(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPConvert_Impl::GetErrorURL(this, core::mem::transmute_copy(&pbstrurl)).into() } @@ -3414,49 +2574,28 @@ pub trait IWMPCore_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMPCore {} #[cfg(feature = "Win32_System_Com")] impl IWMPCore_Vtbl { - pub const fn new() -> IWMPCore_Vtbl - where - Identity: IWMPCore_Impl, - { - unsafe extern "system" fn close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + pub const fn new() -> IWMPCore_Vtbl { + unsafe extern "system" fn close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::close(this).into() } - unsafe extern "system" fn URL(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn URL(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::URL(this, core::mem::transmute_copy(&pbstrurl)).into() } - unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::SetURL(this, core::mem::transmute(&bstrurl)).into() } - unsafe extern "system" fn openState(this: *mut core::ffi::c_void, pwmpos: *mut WMPOpenState) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn openState(this: *mut core::ffi::c_void, pwmpos: *mut WMPOpenState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::openState(this, core::mem::transmute_copy(&pwmpos)).into() } - unsafe extern "system" fn playState(this: *mut core::ffi::c_void, pwmpps: *mut WMPPlayState) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn playState(this: *mut core::ffi::c_void, pwmpps: *mut WMPPlayState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::playState(this, core::mem::transmute_copy(&pwmpps)).into() } - unsafe extern "system" fn controls(this: *mut core::ffi::c_void, ppcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn controls(this: *mut core::ffi::c_void, ppcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore_Impl::controls(this) { Ok(ok__) => { @@ -3466,10 +2605,7 @@ impl IWMPCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn settings(this: *mut core::ffi::c_void, ppsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn settings(this: *mut core::ffi::c_void, ppsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore_Impl::settings(this) { Ok(ok__) => { @@ -3479,10 +2615,7 @@ impl IWMPCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn currentMedia(this: *mut core::ffi::c_void, ppmedia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn currentMedia(this: *mut core::ffi::c_void, ppmedia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore_Impl::currentMedia(this) { Ok(ok__) => { @@ -3492,17 +2625,11 @@ impl IWMPCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetcurrentMedia(this: *mut core::ffi::c_void, pmedia: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn SetcurrentMedia(this: *mut core::ffi::c_void, pmedia: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::SetcurrentMedia(this, windows_core::from_raw_borrowed(&pmedia)).into() } - unsafe extern "system" fn mediaCollection(this: *mut core::ffi::c_void, ppmediacollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn mediaCollection(this: *mut core::ffi::c_void, ppmediacollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore_Impl::mediaCollection(this) { Ok(ok__) => { @@ -3512,10 +2639,7 @@ impl IWMPCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn playlistCollection(this: *mut core::ffi::c_void, ppplaylistcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn playlistCollection(this: *mut core::ffi::c_void, ppplaylistcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore_Impl::playlistCollection(this) { Ok(ok__) => { @@ -3525,24 +2649,15 @@ impl IWMPCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn versionInfo(this: *mut core::ffi::c_void, pbstrversioninfo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn versionInfo(this: *mut core::ffi::c_void, pbstrversioninfo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::versionInfo(this, core::mem::transmute_copy(&pbstrversioninfo)).into() } - unsafe extern "system" fn launchURL(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn launchURL(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::launchURL(this, core::mem::transmute(&bstrurl)).into() } - unsafe extern "system" fn network(this: *mut core::ffi::c_void, ppqni: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn network(this: *mut core::ffi::c_void, ppqni: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore_Impl::network(this) { Ok(ok__) => { @@ -3552,10 +2667,7 @@ impl IWMPCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn currentPlaylist(this: *mut core::ffi::c_void, pppl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn currentPlaylist(this: *mut core::ffi::c_void, pppl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore_Impl::currentPlaylist(this) { Ok(ok__) => { @@ -3565,17 +2677,11 @@ impl IWMPCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetcurrentPlaylist(this: *mut core::ffi::c_void, ppl: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn SetcurrentPlaylist(this: *mut core::ffi::c_void, ppl: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::SetcurrentPlaylist(this, windows_core::from_raw_borrowed(&ppl)).into() } - unsafe extern "system" fn cdromCollection(this: *mut core::ffi::c_void, ppcdromcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn cdromCollection(this: *mut core::ffi::c_void, ppcdromcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore_Impl::cdromCollection(this) { Ok(ok__) => { @@ -3585,10 +2691,7 @@ impl IWMPCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn closedCaption(this: *mut core::ffi::c_void, ppclosedcaption: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn closedCaption(this: *mut core::ffi::c_void, ppclosedcaption: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore_Impl::closedCaption(this) { Ok(ok__) => { @@ -3598,17 +2701,11 @@ impl IWMPCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn isOnline(this: *mut core::ffi::c_void, pfonline: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn isOnline(this: *mut core::ffi::c_void, pfonline: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::isOnline(this, core::mem::transmute_copy(&pfonline)).into() } - unsafe extern "system" fn error(this: *mut core::ffi::c_void, pperror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn error(this: *mut core::ffi::c_void, pperror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore_Impl::error(this) { Ok(ok__) => { @@ -3618,10 +2715,7 @@ impl IWMPCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn status(this: *mut core::ffi::c_void, pbstrstatus: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPCore_Impl, - { + unsafe extern "system" fn status(this: *mut core::ffi::c_void, pbstrstatus: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPCore_Impl::status(this, core::mem::transmute_copy(&pbstrstatus)).into() } @@ -3662,14 +2756,8 @@ pub trait IWMPCore2_Impl: Sized + IWMPCore_Impl { impl windows_core::RuntimeName for IWMPCore2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPCore2_Vtbl { - pub const fn new() -> IWMPCore2_Vtbl - where - Identity: IWMPCore2_Impl, - { - unsafe extern "system" fn dvd(this: *mut core::ffi::c_void, ppdvd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore2_Impl, - { + pub const fn new() -> IWMPCore2_Vtbl { + unsafe extern "system" fn dvd(this: *mut core::ffi::c_void, ppdvd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore2_Impl::dvd(this) { Ok(ok__) => { @@ -3694,14 +2782,8 @@ pub trait IWMPCore3_Impl: Sized + IWMPCore2_Impl { impl windows_core::RuntimeName for IWMPCore3 {} #[cfg(feature = "Win32_System_Com")] impl IWMPCore3_Vtbl { - pub const fn new() -> IWMPCore3_Vtbl - where - Identity: IWMPCore3_Impl, - { - unsafe extern "system" fn newPlaylist(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, ppplaylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore3_Impl, - { + pub const fn new() -> IWMPCore3_Vtbl { + unsafe extern "system" fn newPlaylist(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, ppplaylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore3_Impl::newPlaylist(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrurl)) { Ok(ok__) => { @@ -3711,10 +2793,7 @@ impl IWMPCore3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn newMedia(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, ppmedia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPCore3_Impl, - { + unsafe extern "system" fn newMedia(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, ppmedia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPCore3_Impl::newMedia(this, core::mem::transmute(&bstrurl)) { Ok(ok__) => { @@ -3743,49 +2822,28 @@ pub trait IWMPDVD_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMPDVD {} #[cfg(feature = "Win32_System_Com")] impl IWMPDVD_Vtbl { - pub const fn new() -> IWMPDVD_Vtbl - where - Identity: IWMPDVD_Impl, - { - unsafe extern "system" fn get_isAvailable(this: *mut core::ffi::c_void, bstritem: core::mem::MaybeUninit, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPDVD_Impl, - { + pub const fn new() -> IWMPDVD_Vtbl { + unsafe extern "system" fn get_isAvailable(this: *mut core::ffi::c_void, bstritem: core::mem::MaybeUninit, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDVD_Impl::get_isAvailable(this, core::mem::transmute(&bstritem), core::mem::transmute_copy(&pisavailable)).into() } - unsafe extern "system" fn domain(this: *mut core::ffi::c_void, strdomain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPDVD_Impl, - { + unsafe extern "system" fn domain(this: *mut core::ffi::c_void, strdomain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDVD_Impl::domain(this, core::mem::transmute_copy(&strdomain)).into() } - unsafe extern "system" fn topMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDVD_Impl, - { + unsafe extern "system" fn topMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDVD_Impl::topMenu(this).into() } - unsafe extern "system" fn titleMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDVD_Impl, - { + unsafe extern "system" fn titleMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDVD_Impl::titleMenu(this).into() } - unsafe extern "system" fn back(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDVD_Impl, - { + unsafe extern "system" fn back(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDVD_Impl::back(this).into() } - unsafe extern "system" fn resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDVD_Impl, - { + unsafe extern "system" fn resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDVD_Impl::resume(this).into() } @@ -3816,28 +2874,16 @@ pub trait IWMPDownloadCollection_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IWMPDownloadCollection {} #[cfg(feature = "Win32_System_Com")] impl IWMPDownloadCollection_Vtbl { - pub const fn new() -> IWMPDownloadCollection_Vtbl - where - Identity: IWMPDownloadCollection_Impl, - { - unsafe extern "system" fn id(this: *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPDownloadCollection_Impl, - { + pub const fn new() -> IWMPDownloadCollection_Vtbl { + unsafe extern "system" fn id(this: *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadCollection_Impl::id(this, core::mem::transmute_copy(&plid)).into() } - unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPDownloadCollection_Impl, - { + unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadCollection_Impl::count(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn item(this: *mut core::ffi::c_void, litem: i32, ppdownload: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDownloadCollection_Impl, - { + unsafe extern "system" fn item(this: *mut core::ffi::c_void, litem: i32, ppdownload: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPDownloadCollection_Impl::item(this, core::mem::transmute_copy(&litem)) { Ok(ok__) => { @@ -3847,10 +2893,7 @@ impl IWMPDownloadCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn startDownload(this: *mut core::ffi::c_void, bstrsourceurl: core::mem::MaybeUninit, bstrtype: core::mem::MaybeUninit, ppdownload: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDownloadCollection_Impl, - { + unsafe extern "system" fn startDownload(this: *mut core::ffi::c_void, bstrsourceurl: core::mem::MaybeUninit, bstrtype: core::mem::MaybeUninit, ppdownload: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPDownloadCollection_Impl::startDownload(this, core::mem::transmute(&bstrsourceurl), core::mem::transmute(&bstrtype)) { Ok(ok__) => { @@ -3860,17 +2903,11 @@ impl IWMPDownloadCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn removeItem(this: *mut core::ffi::c_void, litem: i32) -> windows_core::HRESULT - where - Identity: IWMPDownloadCollection_Impl, - { + unsafe extern "system" fn removeItem(this: *mut core::ffi::c_void, litem: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadCollection_Impl::removeItem(this, core::mem::transmute_copy(&litem)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDownloadCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadCollection_Impl::Clear(this).into() } @@ -3903,63 +2940,36 @@ pub trait IWMPDownloadItem_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IWMPDownloadItem {} #[cfg(feature = "Win32_System_Com")] impl IWMPDownloadItem_Vtbl { - pub const fn new() -> IWMPDownloadItem_Vtbl - where - Identity: IWMPDownloadItem_Impl, - { - unsafe extern "system" fn sourceURL(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPDownloadItem_Impl, - { + pub const fn new() -> IWMPDownloadItem_Vtbl { + unsafe extern "system" fn sourceURL(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadItem_Impl::sourceURL(this, core::mem::transmute_copy(&pbstrurl)).into() } - unsafe extern "system" fn size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPDownloadItem_Impl, - { + unsafe extern "system" fn size(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadItem_Impl::size(this, core::mem::transmute_copy(&plsize)).into() } - unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPDownloadItem_Impl, - { + unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadItem_Impl::r#type(this, core::mem::transmute_copy(&pbstrtype)).into() } - unsafe extern "system" fn progress(this: *mut core::ffi::c_void, plprogress: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPDownloadItem_Impl, - { + unsafe extern "system" fn progress(this: *mut core::ffi::c_void, plprogress: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadItem_Impl::progress(this, core::mem::transmute_copy(&plprogress)).into() } - unsafe extern "system" fn downloadState(this: *mut core::ffi::c_void, pwmpsdls: *mut WMPSubscriptionDownloadState) -> windows_core::HRESULT - where - Identity: IWMPDownloadItem_Impl, - { + unsafe extern "system" fn downloadState(this: *mut core::ffi::c_void, pwmpsdls: *mut WMPSubscriptionDownloadState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadItem_Impl::downloadState(this, core::mem::transmute_copy(&pwmpsdls)).into() } - unsafe extern "system" fn pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDownloadItem_Impl, - { + unsafe extern "system" fn pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadItem_Impl::pause(this).into() } - unsafe extern "system" fn resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDownloadItem_Impl, - { + unsafe extern "system" fn resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadItem_Impl::resume(this).into() } - unsafe extern "system" fn cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDownloadItem_Impl, - { + unsafe extern "system" fn cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadItem_Impl::cancel(this).into() } @@ -3987,14 +2997,8 @@ pub trait IWMPDownloadItem2_Impl: Sized + IWMPDownloadItem_Impl { impl windows_core::RuntimeName for IWMPDownloadItem2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPDownloadItem2_Vtbl { - pub const fn new() -> IWMPDownloadItem2_Vtbl - where - Identity: IWMPDownloadItem2_Impl, - { - unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPDownloadItem2_Impl, - { + pub const fn new() -> IWMPDownloadItem2_Vtbl { + unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPDownloadItem2_Impl::getItemInfo(this, core::mem::transmute(&bstritemname), core::mem::transmute_copy(&pbstrval)).into() } @@ -4013,14 +3017,8 @@ pub trait IWMPDownloadManager_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IWMPDownloadManager {} #[cfg(feature = "Win32_System_Com")] impl IWMPDownloadManager_Vtbl { - pub const fn new() -> IWMPDownloadManager_Vtbl - where - Identity: IWMPDownloadManager_Impl, - { - unsafe extern "system" fn getDownloadCollection(this: *mut core::ffi::c_void, lcollectionid: i32, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDownloadManager_Impl, - { + pub const fn new() -> IWMPDownloadManager_Vtbl { + unsafe extern "system" fn getDownloadCollection(this: *mut core::ffi::c_void, lcollectionid: i32, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPDownloadManager_Impl::getDownloadCollection(this, core::mem::transmute_copy(&lcollectionid)) { Ok(ok__) => { @@ -4030,10 +3028,7 @@ impl IWMPDownloadManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createDownloadCollection(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPDownloadManager_Impl, - { + unsafe extern "system" fn createDownloadCollection(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPDownloadManager_Impl::createDownloadCollection(this) { Ok(ok__) => { @@ -4054,7 +3049,7 @@ impl IWMPDownloadManager_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IWMPEffects_Impl: Sized { +pub trait IWMPEffects_Impl: Sized + windows_core::IUnknownImpl { 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: &windows_core::BSTR) -> windows_core::Result<()>; fn GetCapabilities(&self, pdwcapabilities: *mut u32) -> windows_core::Result<()>; @@ -4071,84 +3066,48 @@ pub trait IWMPEffects_Impl: Sized { impl windows_core::RuntimeName for IWMPEffects {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IWMPEffects_Vtbl { - pub const fn new() -> IWMPEffects_Vtbl - where - Identity: IWMPEffects_Impl, - { - unsafe extern "system" fn Render(this: *mut core::ffi::c_void, plevels: *mut TimedLevel, hdc: super::super::Graphics::Gdi::HDC, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + pub const fn new() -> IWMPEffects_Vtbl { + unsafe extern "system" fn Render(this: *mut core::ffi::c_void, plevels: *mut TimedLevel, hdc: super::super::Graphics::Gdi::HDC, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::Render(this, core::mem::transmute_copy(&plevels), core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn MediaInfo(this: *mut core::ffi::c_void, lchannelcount: i32, lsamplerate: i32, bstrtitle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + unsafe extern "system" fn MediaInfo(this: *mut core::ffi::c_void, lchannelcount: i32, lsamplerate: i32, bstrtitle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::MediaInfo(this, core::mem::transmute_copy(&lchannelcount), core::mem::transmute_copy(&lsamplerate), core::mem::transmute(&bstrtitle)).into() } - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::GetCapabilities(this, core::mem::transmute_copy(&pdwcapabilities)).into() } - unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, bstrtitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, bstrtitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::GetTitle(this, core::mem::transmute_copy(&bstrtitle)).into() } - unsafe extern "system" fn GetPresetTitle(this: *mut core::ffi::c_void, npreset: i32, bstrpresettitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + unsafe extern "system" fn GetPresetTitle(this: *mut core::ffi::c_void, npreset: i32, bstrpresettitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::GetPresetTitle(this, core::mem::transmute_copy(&npreset), core::mem::transmute_copy(&bstrpresettitle)).into() } - unsafe extern "system" fn GetPresetCount(this: *mut core::ffi::c_void, pnpresetcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + unsafe extern "system" fn GetPresetCount(this: *mut core::ffi::c_void, pnpresetcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::GetPresetCount(this, core::mem::transmute_copy(&pnpresetcount)).into() } - unsafe extern "system" fn SetCurrentPreset(this: *mut core::ffi::c_void, npreset: i32) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + unsafe extern "system" fn SetCurrentPreset(this: *mut core::ffi::c_void, npreset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::SetCurrentPreset(this, core::mem::transmute_copy(&npreset)).into() } - unsafe extern "system" fn GetCurrentPreset(this: *mut core::ffi::c_void, pnpreset: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + unsafe extern "system" fn GetCurrentPreset(this: *mut core::ffi::c_void, pnpreset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::GetCurrentPreset(this, core::mem::transmute_copy(&pnpreset)).into() } - unsafe extern "system" fn DisplayPropertyPage(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + unsafe extern "system" fn DisplayPropertyPage(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::DisplayPropertyPage(this, core::mem::transmute_copy(&hwndowner)).into() } - unsafe extern "system" fn GoFullscreen(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + unsafe extern "system" fn GoFullscreen(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::GoFullscreen(this, core::mem::transmute_copy(&ffullscreen)).into() } - unsafe extern "system" fn RenderFullScreen(this: *mut core::ffi::c_void, plevels: *mut TimedLevel) -> windows_core::HRESULT - where - Identity: IWMPEffects_Impl, - { + unsafe extern "system" fn RenderFullScreen(this: *mut core::ffi::c_void, plevels: *mut TimedLevel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::RenderFullScreen(this, core::mem::transmute_copy(&plevels)).into() } @@ -4184,49 +3143,28 @@ pub trait IWMPEffects2_Impl: Sized + IWMPEffects_Impl { impl windows_core::RuntimeName for IWMPEffects2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IWMPEffects2_Vtbl { - pub const fn new() -> IWMPEffects2_Vtbl - where - Identity: IWMPEffects2_Impl, - { - unsafe extern "system" fn SetCore(this: *mut core::ffi::c_void, pplayer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPEffects2_Impl, - { + pub const fn new() -> IWMPEffects2_Vtbl { + unsafe extern "system" fn SetCore(this: *mut core::ffi::c_void, pplayer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects2_Impl::SetCore(this, windows_core::from_raw_borrowed(&pplayer)).into() } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IWMPEffects2_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects2_Impl::Create(this, core::mem::transmute_copy(&hwndparent)).into() } - unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPEffects2_Impl, - { + unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects2_Impl::Destroy(this).into() } - unsafe extern "system" fn NotifyNewMedia(this: *mut core::ffi::c_void, pmedia: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPEffects2_Impl, - { + unsafe extern "system" fn NotifyNewMedia(this: *mut core::ffi::c_void, pmedia: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects2_Impl::NotifyNewMedia(this, windows_core::from_raw_borrowed(&pmedia)).into() } - unsafe extern "system" fn OnWindowMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresultparam: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IWMPEffects2_Impl, - { + unsafe extern "system" fn OnWindowMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresultparam: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects2_Impl::OnWindowMessage(this, core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&plresultparam)).into() } - unsafe extern "system" fn RenderWindowed(this: *mut core::ffi::c_void, pdata: *mut TimedLevel, frequiredrender: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPEffects2_Impl, - { + unsafe extern "system" fn RenderWindowed(this: *mut core::ffi::c_void, pdata: *mut TimedLevel, frequiredrender: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects2_Impl::RenderWindowed(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&frequiredrender)).into() } @@ -4255,28 +3193,16 @@ pub trait IWMPError_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMPError {} #[cfg(feature = "Win32_System_Com")] impl IWMPError_Vtbl { - pub const fn new() -> IWMPError_Vtbl - where - Identity: IWMPError_Impl, - { - unsafe extern "system" fn clearErrorQueue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPError_Impl, - { + pub const fn new() -> IWMPError_Vtbl { + unsafe extern "system" fn clearErrorQueue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPError_Impl::clearErrorQueue(this).into() } - unsafe extern "system" fn errorCount(this: *mut core::ffi::c_void, plnumerrors: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPError_Impl, - { + unsafe extern "system" fn errorCount(this: *mut core::ffi::c_void, plnumerrors: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPError_Impl::errorCount(this, core::mem::transmute_copy(&plnumerrors)).into() } - unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, dwindex: i32, pperroritem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPError_Impl, - { + unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, dwindex: i32, pperroritem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPError_Impl::get_item(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -4286,10 +3212,7 @@ impl IWMPError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn webHelp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPError_Impl, - { + unsafe extern "system" fn webHelp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPError_Impl::webHelp(this).into() } @@ -4317,42 +3240,24 @@ pub trait IWMPErrorItem_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IWMPErrorItem {} #[cfg(feature = "Win32_System_Com")] impl IWMPErrorItem_Vtbl { - pub const fn new() -> IWMPErrorItem_Vtbl - where - Identity: IWMPErrorItem_Impl, - { - unsafe extern "system" fn errorCode(this: *mut core::ffi::c_void, phr: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPErrorItem_Impl, - { + pub const fn new() -> IWMPErrorItem_Vtbl { + unsafe extern "system" fn errorCode(this: *mut core::ffi::c_void, phr: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPErrorItem_Impl::errorCode(this, core::mem::transmute_copy(&phr)).into() } - unsafe extern "system" fn errorDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPErrorItem_Impl, - { + unsafe extern "system" fn errorDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPErrorItem_Impl::errorDescription(this, core::mem::transmute_copy(&pbstrdescription)).into() } - unsafe extern "system" fn errorContext(this: *mut core::ffi::c_void, pvarcontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPErrorItem_Impl, - { + unsafe extern "system" fn errorContext(this: *mut core::ffi::c_void, pvarcontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPErrorItem_Impl::errorContext(this, core::mem::transmute_copy(&pvarcontext)).into() } - unsafe extern "system" fn remedy(this: *mut core::ffi::c_void, plremedy: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPErrorItem_Impl, - { + unsafe extern "system" fn remedy(this: *mut core::ffi::c_void, plremedy: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPErrorItem_Impl::remedy(this, core::mem::transmute_copy(&plremedy)).into() } - unsafe extern "system" fn customUrl(this: *mut core::ffi::c_void, pbstrcustomurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPErrorItem_Impl, - { + unsafe extern "system" fn customUrl(this: *mut core::ffi::c_void, pbstrcustomurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPErrorItem_Impl::customUrl(this, core::mem::transmute_copy(&pbstrcustomurl)).into() } @@ -4377,14 +3282,8 @@ pub trait IWMPErrorItem2_Impl: Sized + IWMPErrorItem_Impl { impl windows_core::RuntimeName for IWMPErrorItem2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPErrorItem2_Vtbl { - pub const fn new() -> IWMPErrorItem2_Vtbl - where - Identity: IWMPErrorItem2_Impl, - { - unsafe extern "system" fn condition(this: *mut core::ffi::c_void, plcondition: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPErrorItem2_Impl, - { + pub const fn new() -> IWMPErrorItem2_Vtbl { + unsafe extern "system" fn condition(this: *mut core::ffi::c_void, plcondition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPErrorItem2_Impl::condition(this, core::mem::transmute_copy(&plcondition)).into() } @@ -4395,7 +3294,7 @@ impl IWMPErrorItem2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWMPEvents_Impl: Sized { +pub trait IWMPEvents_Impl: Sized + windows_core::IUnknownImpl { fn OpenStateChange(&self, newstate: i32); fn PlayStateChange(&self, newstate: i32); fn AudioLanguageChange(&self, langid: i32); @@ -4446,322 +3345,184 @@ pub trait IWMPEvents_Impl: Sized { impl windows_core::RuntimeName for IWMPEvents {} #[cfg(feature = "Win32_System_Com")] impl IWMPEvents_Vtbl { - pub const fn new() -> IWMPEvents_Vtbl - where - Identity: IWMPEvents_Impl, - { - unsafe extern "system" fn OpenStateChange(this: *mut core::ffi::c_void, newstate: i32) - where - Identity: IWMPEvents_Impl, - { + pub const fn new() -> IWMPEvents_Vtbl { + unsafe extern "system" fn OpenStateChange(this: *mut core::ffi::c_void, newstate: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::OpenStateChange(this, core::mem::transmute_copy(&newstate)) } - unsafe extern "system" fn PlayStateChange(this: *mut core::ffi::c_void, newstate: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn PlayStateChange(this: *mut core::ffi::c_void, newstate: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::PlayStateChange(this, core::mem::transmute_copy(&newstate)) } - unsafe extern "system" fn AudioLanguageChange(this: *mut core::ffi::c_void, langid: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn AudioLanguageChange(this: *mut core::ffi::c_void, langid: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::AudioLanguageChange(this, core::mem::transmute_copy(&langid)) } - unsafe extern "system" fn StatusChange(this: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn StatusChange(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::StatusChange(this) } - unsafe extern "system" fn ScriptCommand(this: *mut core::ffi::c_void, sctype: core::mem::MaybeUninit, param: core::mem::MaybeUninit) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn ScriptCommand(this: *mut core::ffi::c_void, sctype: core::mem::MaybeUninit, param: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::ScriptCommand(this, core::mem::transmute(&sctype), core::mem::transmute(¶m)) } - unsafe extern "system" fn NewStream(this: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn NewStream(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::NewStream(this) } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, result: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, result: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::Disconnect(this, core::mem::transmute_copy(&result)) } - unsafe extern "system" fn Buffering(this: *mut core::ffi::c_void, start: super::super::Foundation::VARIANT_BOOL) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn Buffering(this: *mut core::ffi::c_void, start: super::super::Foundation::VARIANT_BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::Buffering(this, core::mem::transmute_copy(&start)) } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::Error(this) } - unsafe extern "system" fn Warning(this: *mut core::ffi::c_void, warningtype: i32, param: i32, description: core::mem::MaybeUninit) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn Warning(this: *mut core::ffi::c_void, warningtype: i32, param: i32, description: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::Warning(this, core::mem::transmute_copy(&warningtype), core::mem::transmute_copy(¶m), core::mem::transmute(&description)) } - unsafe extern "system" fn EndOfStream(this: *mut core::ffi::c_void, result: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn EndOfStream(this: *mut core::ffi::c_void, result: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::EndOfStream(this, core::mem::transmute_copy(&result)) } - unsafe extern "system" fn PositionChange(this: *mut core::ffi::c_void, oldposition: f64, newposition: f64) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn PositionChange(this: *mut core::ffi::c_void, oldposition: f64, newposition: f64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::PositionChange(this, core::mem::transmute_copy(&oldposition), core::mem::transmute_copy(&newposition)) } - unsafe extern "system" fn MarkerHit(this: *mut core::ffi::c_void, markernum: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn MarkerHit(this: *mut core::ffi::c_void, markernum: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::MarkerHit(this, core::mem::transmute_copy(&markernum)) } - unsafe extern "system" fn DurationUnitChange(this: *mut core::ffi::c_void, newdurationunit: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn DurationUnitChange(this: *mut core::ffi::c_void, newdurationunit: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::DurationUnitChange(this, core::mem::transmute_copy(&newdurationunit)) } - unsafe extern "system" fn CdromMediaChange(this: *mut core::ffi::c_void, cdromnum: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn CdromMediaChange(this: *mut core::ffi::c_void, cdromnum: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::CdromMediaChange(this, core::mem::transmute_copy(&cdromnum)) } - unsafe extern "system" fn PlaylistChange(this: *mut core::ffi::c_void, playlist: *mut core::ffi::c_void, change: WMPPlaylistChangeEventType) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn PlaylistChange(this: *mut core::ffi::c_void, playlist: *mut core::ffi::c_void, change: WMPPlaylistChangeEventType) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::PlaylistChange(this, windows_core::from_raw_borrowed(&playlist), core::mem::transmute_copy(&change)) } - unsafe extern "system" fn CurrentPlaylistChange(this: *mut core::ffi::c_void, change: WMPPlaylistChangeEventType) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn CurrentPlaylistChange(this: *mut core::ffi::c_void, change: WMPPlaylistChangeEventType) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::CurrentPlaylistChange(this, core::mem::transmute_copy(&change)) } - unsafe extern "system" fn CurrentPlaylistItemAvailable(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn CurrentPlaylistItemAvailable(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::CurrentPlaylistItemAvailable(this, core::mem::transmute(&bstritemname)) } - unsafe extern "system" fn MediaChange(this: *mut core::ffi::c_void, item: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn MediaChange(this: *mut core::ffi::c_void, item: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::MediaChange(this, windows_core::from_raw_borrowed(&item)) } - unsafe extern "system" fn CurrentMediaItemAvailable(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn CurrentMediaItemAvailable(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::CurrentMediaItemAvailable(this, core::mem::transmute(&bstritemname)) } - unsafe extern "system" fn CurrentItemChange(this: *mut core::ffi::c_void, pdispmedia: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn CurrentItemChange(this: *mut core::ffi::c_void, pdispmedia: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::CurrentItemChange(this, windows_core::from_raw_borrowed(&pdispmedia)) } - unsafe extern "system" fn MediaCollectionChange(this: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn MediaCollectionChange(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::MediaCollectionChange(this) } - unsafe extern "system" fn MediaCollectionAttributeStringAdded(this: *mut core::ffi::c_void, bstrattribname: core::mem::MaybeUninit, bstrattribval: core::mem::MaybeUninit) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn MediaCollectionAttributeStringAdded(this: *mut core::ffi::c_void, bstrattribname: core::mem::MaybeUninit, bstrattribval: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::MediaCollectionAttributeStringAdded(this, core::mem::transmute(&bstrattribname), core::mem::transmute(&bstrattribval)) } - unsafe extern "system" fn MediaCollectionAttributeStringRemoved(this: *mut core::ffi::c_void, bstrattribname: core::mem::MaybeUninit, bstrattribval: core::mem::MaybeUninit) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn MediaCollectionAttributeStringRemoved(this: *mut core::ffi::c_void, bstrattribname: core::mem::MaybeUninit, bstrattribval: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::MediaCollectionAttributeStringRemoved(this, core::mem::transmute(&bstrattribname), core::mem::transmute(&bstrattribval)) } - unsafe extern "system" fn MediaCollectionAttributeStringChanged(this: *mut core::ffi::c_void, bstrattribname: core::mem::MaybeUninit, bstroldattribval: core::mem::MaybeUninit, bstrnewattribval: core::mem::MaybeUninit) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn MediaCollectionAttributeStringChanged(this: *mut core::ffi::c_void, bstrattribname: core::mem::MaybeUninit, bstroldattribval: core::mem::MaybeUninit, bstrnewattribval: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::MediaCollectionAttributeStringChanged(this, core::mem::transmute(&bstrattribname), core::mem::transmute(&bstroldattribval), core::mem::transmute(&bstrnewattribval)) } - unsafe extern "system" fn PlaylistCollectionChange(this: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn PlaylistCollectionChange(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::PlaylistCollectionChange(this) } - unsafe extern "system" fn PlaylistCollectionPlaylistAdded(this: *mut core::ffi::c_void, bstrplaylistname: core::mem::MaybeUninit) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn PlaylistCollectionPlaylistAdded(this: *mut core::ffi::c_void, bstrplaylistname: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::PlaylistCollectionPlaylistAdded(this, core::mem::transmute(&bstrplaylistname)) } - unsafe extern "system" fn PlaylistCollectionPlaylistRemoved(this: *mut core::ffi::c_void, bstrplaylistname: core::mem::MaybeUninit) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn PlaylistCollectionPlaylistRemoved(this: *mut core::ffi::c_void, bstrplaylistname: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::PlaylistCollectionPlaylistRemoved(this, core::mem::transmute(&bstrplaylistname)) } - unsafe extern "system" fn PlaylistCollectionPlaylistSetAsDeleted(this: *mut core::ffi::c_void, bstrplaylistname: core::mem::MaybeUninit, varfisdeleted: super::super::Foundation::VARIANT_BOOL) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn PlaylistCollectionPlaylistSetAsDeleted(this: *mut core::ffi::c_void, bstrplaylistname: core::mem::MaybeUninit, varfisdeleted: super::super::Foundation::VARIANT_BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::PlaylistCollectionPlaylistSetAsDeleted(this, core::mem::transmute(&bstrplaylistname), core::mem::transmute_copy(&varfisdeleted)) } - unsafe extern "system" fn ModeChange(this: *mut core::ffi::c_void, modename: core::mem::MaybeUninit, newvalue: super::super::Foundation::VARIANT_BOOL) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn ModeChange(this: *mut core::ffi::c_void, modename: core::mem::MaybeUninit, newvalue: super::super::Foundation::VARIANT_BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::ModeChange(this, core::mem::transmute(&modename), core::mem::transmute_copy(&newvalue)) } - unsafe extern "system" fn MediaError(this: *mut core::ffi::c_void, pmediaobject: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn MediaError(this: *mut core::ffi::c_void, pmediaobject: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::MediaError(this, windows_core::from_raw_borrowed(&pmediaobject)) } - unsafe extern "system" fn OpenPlaylistSwitch(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn OpenPlaylistSwitch(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::OpenPlaylistSwitch(this, windows_core::from_raw_borrowed(&pitem)) } - unsafe extern "system" fn DomainChange(this: *mut core::ffi::c_void, strdomain: core::mem::MaybeUninit) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn DomainChange(this: *mut core::ffi::c_void, strdomain: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::DomainChange(this, core::mem::transmute(&strdomain)) } - unsafe extern "system" fn SwitchedToPlayerApplication(this: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn SwitchedToPlayerApplication(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::SwitchedToPlayerApplication(this) } - unsafe extern "system" fn SwitchedToControl(this: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn SwitchedToControl(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::SwitchedToControl(this) } - unsafe extern "system" fn PlayerDockedStateChange(this: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn PlayerDockedStateChange(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::PlayerDockedStateChange(this) } - unsafe extern "system" fn PlayerReconnect(this: *mut core::ffi::c_void) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn PlayerReconnect(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::PlayerReconnect(this) } - unsafe extern "system" fn Click(this: *mut core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn Click(this: *mut core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::Click(this, core::mem::transmute_copy(&nbutton), core::mem::transmute_copy(&nshiftstate), core::mem::transmute_copy(&fx), core::mem::transmute_copy(&fy)) } - unsafe extern "system" fn DoubleClick(this: *mut core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn DoubleClick(this: *mut core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::DoubleClick(this, core::mem::transmute_copy(&nbutton), core::mem::transmute_copy(&nshiftstate), core::mem::transmute_copy(&fx), core::mem::transmute_copy(&fy)) } - unsafe extern "system" fn KeyDown(this: *mut core::ffi::c_void, nkeycode: i16, nshiftstate: i16) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn KeyDown(this: *mut core::ffi::c_void, nkeycode: i16, nshiftstate: i16) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::KeyDown(this, core::mem::transmute_copy(&nkeycode), core::mem::transmute_copy(&nshiftstate)) } - unsafe extern "system" fn KeyPress(this: *mut core::ffi::c_void, nkeyascii: i16) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn KeyPress(this: *mut core::ffi::c_void, nkeyascii: i16) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::KeyPress(this, core::mem::transmute_copy(&nkeyascii)) } - unsafe extern "system" fn KeyUp(this: *mut core::ffi::c_void, nkeycode: i16, nshiftstate: i16) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn KeyUp(this: *mut core::ffi::c_void, nkeycode: i16, nshiftstate: i16) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::KeyUp(this, core::mem::transmute_copy(&nkeycode), core::mem::transmute_copy(&nshiftstate)) } - unsafe extern "system" fn MouseDown(this: *mut core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn MouseDown(this: *mut core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::MouseDown(this, core::mem::transmute_copy(&nbutton), core::mem::transmute_copy(&nshiftstate), core::mem::transmute_copy(&fx), core::mem::transmute_copy(&fy)) } - unsafe extern "system" fn MouseMove(this: *mut core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn MouseMove(this: *mut core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::MouseMove(this, core::mem::transmute_copy(&nbutton), core::mem::transmute_copy(&nshiftstate), core::mem::transmute_copy(&fx), core::mem::transmute_copy(&fy)) } - unsafe extern "system" fn MouseUp(this: *mut core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) - where - Identity: IWMPEvents_Impl, - { + unsafe extern "system" fn MouseUp(this: *mut core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents_Impl::MouseUp(this, core::mem::transmute_copy(&nbutton), core::mem::transmute_copy(&nshiftstate), core::mem::transmute_copy(&fx), core::mem::transmute_copy(&fy)) } @@ -4831,49 +3592,28 @@ pub trait IWMPEvents2_Impl: Sized + IWMPEvents_Impl { impl windows_core::RuntimeName for IWMPEvents2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPEvents2_Vtbl { - pub const fn new() -> IWMPEvents2_Vtbl - where - Identity: IWMPEvents2_Impl, - { - unsafe extern "system" fn DeviceConnect(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void) - where - Identity: IWMPEvents2_Impl, - { + pub const fn new() -> IWMPEvents2_Vtbl { + unsafe extern "system" fn DeviceConnect(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents2_Impl::DeviceConnect(this, windows_core::from_raw_borrowed(&pdevice)) } - unsafe extern "system" fn DeviceDisconnect(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void) - where - Identity: IWMPEvents2_Impl, - { + unsafe extern "system" fn DeviceDisconnect(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents2_Impl::DeviceDisconnect(this, windows_core::from_raw_borrowed(&pdevice)) } - unsafe extern "system" fn DeviceStatusChange(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, newstatus: WMPDeviceStatus) - where - Identity: IWMPEvents2_Impl, - { + unsafe extern "system" fn DeviceStatusChange(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, newstatus: WMPDeviceStatus) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents2_Impl::DeviceStatusChange(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&newstatus)) } - unsafe extern "system" fn DeviceSyncStateChange(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, newstate: WMPSyncState) - where - Identity: IWMPEvents2_Impl, - { + unsafe extern "system" fn DeviceSyncStateChange(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, newstate: WMPSyncState) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents2_Impl::DeviceSyncStateChange(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&newstate)) } - unsafe extern "system" fn DeviceSyncError(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pmedia: *mut core::ffi::c_void) - where - Identity: IWMPEvents2_Impl, - { + unsafe extern "system" fn DeviceSyncError(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pmedia: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents2_Impl::DeviceSyncError(this, windows_core::from_raw_borrowed(&pdevice), windows_core::from_raw_borrowed(&pmedia)) } - unsafe extern "system" fn CreatePartnershipComplete(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, hrresult: windows_core::HRESULT) - where - Identity: IWMPEvents2_Impl, - { + unsafe extern "system" fn CreatePartnershipComplete(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, hrresult: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents2_Impl::CreatePartnershipComplete(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&hrresult)) } @@ -4909,84 +3649,48 @@ pub trait IWMPEvents3_Impl: Sized + IWMPEvents2_Impl { impl windows_core::RuntimeName for IWMPEvents3 {} #[cfg(feature = "Win32_System_Com")] impl IWMPEvents3_Vtbl { - pub const fn new() -> IWMPEvents3_Vtbl - where - Identity: IWMPEvents3_Impl, - { - unsafe extern "system" fn CdromRipStateChange(this: *mut core::ffi::c_void, pcdromrip: *mut core::ffi::c_void, wmprs: WMPRipState) - where - Identity: IWMPEvents3_Impl, - { + pub const fn new() -> IWMPEvents3_Vtbl { + unsafe extern "system" fn CdromRipStateChange(this: *mut core::ffi::c_void, pcdromrip: *mut core::ffi::c_void, wmprs: WMPRipState) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::CdromRipStateChange(this, windows_core::from_raw_borrowed(&pcdromrip), core::mem::transmute_copy(&wmprs)) } - unsafe extern "system" fn CdromRipMediaError(this: *mut core::ffi::c_void, pcdromrip: *mut core::ffi::c_void, pmedia: *mut core::ffi::c_void) - where - Identity: IWMPEvents3_Impl, - { + unsafe extern "system" fn CdromRipMediaError(this: *mut core::ffi::c_void, pcdromrip: *mut core::ffi::c_void, pmedia: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::CdromRipMediaError(this, windows_core::from_raw_borrowed(&pcdromrip), windows_core::from_raw_borrowed(&pmedia)) } - unsafe extern "system" fn CdromBurnStateChange(this: *mut core::ffi::c_void, pcdromburn: *mut core::ffi::c_void, wmpbs: WMPBurnState) - where - Identity: IWMPEvents3_Impl, - { + unsafe extern "system" fn CdromBurnStateChange(this: *mut core::ffi::c_void, pcdromburn: *mut core::ffi::c_void, wmpbs: WMPBurnState) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::CdromBurnStateChange(this, windows_core::from_raw_borrowed(&pcdromburn), core::mem::transmute_copy(&wmpbs)) } - unsafe extern "system" fn CdromBurnMediaError(this: *mut core::ffi::c_void, pcdromburn: *mut core::ffi::c_void, pmedia: *mut core::ffi::c_void) - where - Identity: IWMPEvents3_Impl, - { + unsafe extern "system" fn CdromBurnMediaError(this: *mut core::ffi::c_void, pcdromburn: *mut core::ffi::c_void, pmedia: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::CdromBurnMediaError(this, windows_core::from_raw_borrowed(&pcdromburn), windows_core::from_raw_borrowed(&pmedia)) } - unsafe extern "system" fn CdromBurnError(this: *mut core::ffi::c_void, pcdromburn: *mut core::ffi::c_void, hrerror: windows_core::HRESULT) - where - Identity: IWMPEvents3_Impl, - { + unsafe extern "system" fn CdromBurnError(this: *mut core::ffi::c_void, pcdromburn: *mut core::ffi::c_void, hrerror: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::CdromBurnError(this, windows_core::from_raw_borrowed(&pcdromburn), core::mem::transmute_copy(&hrerror)) } - unsafe extern "system" fn LibraryConnect(this: *mut core::ffi::c_void, plibrary: *mut core::ffi::c_void) - where - Identity: IWMPEvents3_Impl, - { + unsafe extern "system" fn LibraryConnect(this: *mut core::ffi::c_void, plibrary: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::LibraryConnect(this, windows_core::from_raw_borrowed(&plibrary)) } - unsafe extern "system" fn LibraryDisconnect(this: *mut core::ffi::c_void, plibrary: *mut core::ffi::c_void) - where - Identity: IWMPEvents3_Impl, - { + unsafe extern "system" fn LibraryDisconnect(this: *mut core::ffi::c_void, plibrary: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::LibraryDisconnect(this, windows_core::from_raw_borrowed(&plibrary)) } - unsafe extern "system" fn FolderScanStateChange(this: *mut core::ffi::c_void, wmpfss: WMPFolderScanState) - where - Identity: IWMPEvents3_Impl, - { + unsafe extern "system" fn FolderScanStateChange(this: *mut core::ffi::c_void, wmpfss: WMPFolderScanState) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::FolderScanStateChange(this, core::mem::transmute_copy(&wmpfss)) } - unsafe extern "system" fn StringCollectionChange(this: *mut core::ffi::c_void, pdispstringcollection: *mut core::ffi::c_void, change: WMPStringCollectionChangeEventType, lcollectionindex: i32) - where - Identity: IWMPEvents3_Impl, - { + unsafe extern "system" fn StringCollectionChange(this: *mut core::ffi::c_void, pdispstringcollection: *mut core::ffi::c_void, change: WMPStringCollectionChangeEventType, lcollectionindex: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::StringCollectionChange(this, windows_core::from_raw_borrowed(&pdispstringcollection), core::mem::transmute_copy(&change), core::mem::transmute_copy(&lcollectionindex)) } - unsafe extern "system" fn MediaCollectionMediaAdded(this: *mut core::ffi::c_void, pdispmedia: *mut core::ffi::c_void) - where - Identity: IWMPEvents3_Impl, - { + unsafe extern "system" fn MediaCollectionMediaAdded(this: *mut core::ffi::c_void, pdispmedia: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::MediaCollectionMediaAdded(this, windows_core::from_raw_borrowed(&pdispmedia)) } - unsafe extern "system" fn MediaCollectionMediaRemoved(this: *mut core::ffi::c_void, pdispmedia: *mut core::ffi::c_void) - where - Identity: IWMPEvents3_Impl, - { + unsafe extern "system" fn MediaCollectionMediaRemoved(this: *mut core::ffi::c_void, pdispmedia: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents3_Impl::MediaCollectionMediaRemoved(this, windows_core::from_raw_borrowed(&pdispmedia)) } @@ -5017,14 +3721,8 @@ pub trait IWMPEvents4_Impl: Sized + IWMPEvents3_Impl { impl windows_core::RuntimeName for IWMPEvents4 {} #[cfg(feature = "Win32_System_Com")] impl IWMPEvents4_Vtbl { - pub const fn new() -> IWMPEvents4_Vtbl - where - Identity: IWMPEvents4_Impl, - { - unsafe extern "system" fn DeviceEstimation(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, hrresult: windows_core::HRESULT, qwestimatedusedspace: i64, qwestimatedspace: i64) - where - Identity: IWMPEvents4_Impl, - { + pub const fn new() -> IWMPEvents4_Vtbl { + unsafe extern "system" fn DeviceEstimation(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, hrresult: windows_core::HRESULT, qwestimatedusedspace: i64, qwestimatedspace: i64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEvents4_Impl::DeviceEstimation(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&hrresult), core::mem::transmute_copy(&qwestimatedusedspace), core::mem::transmute_copy(&qwestimatedspace)) } @@ -5034,7 +3732,7 @@ impl IWMPEvents4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMPFolderMonitorServices_Impl: Sized { +pub trait IWMPFolderMonitorServices_Impl: Sized + windows_core::IUnknownImpl { fn count(&self, plcount: *mut i32) -> 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<()>; @@ -5049,84 +3747,48 @@ pub trait IWMPFolderMonitorServices_Impl: Sized { } impl windows_core::RuntimeName for IWMPFolderMonitorServices {} impl IWMPFolderMonitorServices_Vtbl { - pub const fn new() -> IWMPFolderMonitorServices_Vtbl - where - Identity: IWMPFolderMonitorServices_Impl, - { - unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + pub const fn new() -> IWMPFolderMonitorServices_Vtbl { + unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::count(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn item(this: *mut core::ffi::c_void, lindex: i32, pbstrfolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + unsafe extern "system" fn item(this: *mut core::ffi::c_void, lindex: i32, pbstrfolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::item(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pbstrfolder)).into() } - unsafe extern "system" fn add(this: *mut core::ffi::c_void, bstrfolder: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + unsafe extern "system" fn add(this: *mut core::ffi::c_void, bstrfolder: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::add(this, core::mem::transmute(&bstrfolder)).into() } - unsafe extern "system" fn remove(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + unsafe extern "system" fn remove(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::remove(this, core::mem::transmute_copy(&lindex)).into() } - unsafe extern "system" fn scanState(this: *mut core::ffi::c_void, pwmpfss: *mut WMPFolderScanState) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + unsafe extern "system" fn scanState(this: *mut core::ffi::c_void, pwmpfss: *mut WMPFolderScanState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::scanState(this, core::mem::transmute_copy(&pwmpfss)).into() } - unsafe extern "system" fn currentFolder(this: *mut core::ffi::c_void, pbstrfolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + unsafe extern "system" fn currentFolder(this: *mut core::ffi::c_void, pbstrfolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::currentFolder(this, core::mem::transmute_copy(&pbstrfolder)).into() } - unsafe extern "system" fn scannedFilesCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + unsafe extern "system" fn scannedFilesCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::scannedFilesCount(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn addedFilesCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + unsafe extern "system" fn addedFilesCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::addedFilesCount(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn updateProgress(this: *mut core::ffi::c_void, plprogress: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + unsafe extern "system" fn updateProgress(this: *mut core::ffi::c_void, plprogress: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::updateProgress(this, core::mem::transmute_copy(&plprogress)).into() } - unsafe extern "system" fn startScan(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + unsafe extern "system" fn startScan(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::startScan(this).into() } - unsafe extern "system" fn stopScan(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPFolderMonitorServices_Impl, - { + unsafe extern "system" fn stopScan(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPFolderMonitorServices_Impl::stopScan(this).into() } @@ -5149,35 +3811,23 @@ impl IWMPFolderMonitorServices_Vtbl { iid == &::IID } } -pub trait IWMPGraphCreation_Impl: Sized { +pub trait IWMPGraphCreation_Impl: Sized + windows_core::IUnknownImpl { fn GraphCreationPreRender(&self, pfiltergraph: Option<&windows_core::IUnknown>, preserved: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GraphCreationPostRender(&self, pfiltergraph: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetGraphCreationFlags(&self, pdwflags: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPGraphCreation {} impl IWMPGraphCreation_Vtbl { - pub const fn new() -> IWMPGraphCreation_Vtbl - where - Identity: IWMPGraphCreation_Impl, - { - unsafe extern "system" fn GraphCreationPreRender(this: *mut core::ffi::c_void, pfiltergraph: *mut core::ffi::c_void, preserved: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPGraphCreation_Impl, - { + pub const fn new() -> IWMPGraphCreation_Vtbl { + unsafe extern "system" fn GraphCreationPreRender(this: *mut core::ffi::c_void, pfiltergraph: *mut core::ffi::c_void, preserved: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPGraphCreation_Impl::GraphCreationPreRender(this, windows_core::from_raw_borrowed(&pfiltergraph), windows_core::from_raw_borrowed(&preserved)).into() } - unsafe extern "system" fn GraphCreationPostRender(this: *mut core::ffi::c_void, pfiltergraph: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPGraphCreation_Impl, - { + unsafe extern "system" fn GraphCreationPostRender(this: *mut core::ffi::c_void, pfiltergraph: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPGraphCreation_Impl::GraphCreationPostRender(this, windows_core::from_raw_borrowed(&pfiltergraph)).into() } - unsafe extern "system" fn GetGraphCreationFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPGraphCreation_Impl, - { + unsafe extern "system" fn GetGraphCreationFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPGraphCreation_Impl::GetGraphCreationFlags(this, core::mem::transmute_copy(&pdwflags)).into() } @@ -5193,7 +3843,7 @@ impl IWMPGraphCreation_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWMPLibrary_Impl: Sized { +pub trait IWMPLibrary_Impl: Sized + windows_core::IUnknownImpl { 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; @@ -5203,28 +3853,16 @@ pub trait IWMPLibrary_Impl: Sized { impl windows_core::RuntimeName for IWMPLibrary {} #[cfg(feature = "Win32_System_Com")] impl IWMPLibrary_Vtbl { - pub const fn new() -> IWMPLibrary_Vtbl - where - Identity: IWMPLibrary_Impl, - { - unsafe extern "system" fn name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPLibrary_Impl, - { + pub const fn new() -> IWMPLibrary_Vtbl { + unsafe extern "system" fn name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPLibrary_Impl::name(this, core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, pwmplt: *mut WMPLibraryType) -> windows_core::HRESULT - where - Identity: IWMPLibrary_Impl, - { + unsafe extern "system" fn r#type(this: *mut core::ffi::c_void, pwmplt: *mut WMPLibraryType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPLibrary_Impl::r#type(this, core::mem::transmute_copy(&pwmplt)).into() } - unsafe extern "system" fn mediaCollection(this: *mut core::ffi::c_void, ppiwmpmediacollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPLibrary_Impl, - { + unsafe extern "system" fn mediaCollection(this: *mut core::ffi::c_void, ppiwmpmediacollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPLibrary_Impl::mediaCollection(this) { Ok(ok__) => { @@ -5234,10 +3872,7 @@ impl IWMPLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn isIdentical(this: *mut core::ffi::c_void, piwmplibrary: *mut core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPLibrary_Impl, - { + unsafe extern "system" fn isIdentical(this: *mut core::ffi::c_void, piwmplibrary: *mut core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPLibrary_Impl::isIdentical(this, windows_core::from_raw_borrowed(&piwmplibrary), core::mem::transmute_copy(&pvbool)).into() } @@ -5261,14 +3896,8 @@ pub trait IWMPLibrary2_Impl: Sized + IWMPLibrary_Impl { impl windows_core::RuntimeName for IWMPLibrary2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPLibrary2_Vtbl { - pub const fn new() -> IWMPLibrary2_Vtbl - where - Identity: IWMPLibrary2_Impl, - { - unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPLibrary2_Impl, - { + pub const fn new() -> IWMPLibrary2_Vtbl { + unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPLibrary2_Impl::getItemInfo(this, core::mem::transmute(&bstritemname), core::mem::transmute_copy(&pbstrval)).into() } @@ -5278,27 +3907,18 @@ impl IWMPLibrary2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMPLibraryServices_Impl: Sized { +pub trait IWMPLibraryServices_Impl: Sized + windows_core::IUnknownImpl { fn getCountByType(&self, wmplt: WMPLibraryType, plcount: *mut i32) -> windows_core::Result<()>; fn getLibraryByType(&self, wmplt: WMPLibraryType, lindex: i32) -> windows_core::Result; } impl windows_core::RuntimeName for IWMPLibraryServices {} impl IWMPLibraryServices_Vtbl { - pub const fn new() -> IWMPLibraryServices_Vtbl - where - Identity: IWMPLibraryServices_Impl, - { - unsafe extern "system" fn getCountByType(this: *mut core::ffi::c_void, wmplt: WMPLibraryType, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPLibraryServices_Impl, - { + pub const fn new() -> IWMPLibraryServices_Vtbl { + unsafe extern "system" fn getCountByType(this: *mut core::ffi::c_void, wmplt: WMPLibraryType, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPLibraryServices_Impl::getCountByType(this, core::mem::transmute_copy(&wmplt), core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getLibraryByType(this: *mut core::ffi::c_void, wmplt: WMPLibraryType, lindex: i32, ppiwmplibrary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPLibraryServices_Impl, - { + unsafe extern "system" fn getLibraryByType(this: *mut core::ffi::c_void, wmplt: WMPLibraryType, lindex: i32, ppiwmplibrary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPLibraryServices_Impl::getLibraryByType(this, core::mem::transmute_copy(&wmplt), core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -5318,35 +3938,23 @@ impl IWMPLibraryServices_Vtbl { iid == &::IID } } -pub trait IWMPLibrarySharingServices_Impl: Sized { +pub trait IWMPLibrarySharingServices_Impl: Sized + windows_core::IUnknownImpl { fn isLibraryShared(&self, pvbshared: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; fn isLibrarySharingEnabled(&self, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; fn showLibrarySharing(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPLibrarySharingServices {} impl IWMPLibrarySharingServices_Vtbl { - pub const fn new() -> IWMPLibrarySharingServices_Vtbl - where - Identity: IWMPLibrarySharingServices_Impl, - { - unsafe extern "system" fn isLibraryShared(this: *mut core::ffi::c_void, pvbshared: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPLibrarySharingServices_Impl, - { + pub const fn new() -> IWMPLibrarySharingServices_Vtbl { + unsafe extern "system" fn isLibraryShared(this: *mut core::ffi::c_void, pvbshared: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPLibrarySharingServices_Impl::isLibraryShared(this, core::mem::transmute_copy(&pvbshared)).into() } - unsafe extern "system" fn isLibrarySharingEnabled(this: *mut core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPLibrarySharingServices_Impl, - { + unsafe extern "system" fn isLibrarySharingEnabled(this: *mut core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPLibrarySharingServices_Impl::isLibrarySharingEnabled(this, core::mem::transmute_copy(&pvbenabled)).into() } - unsafe extern "system" fn showLibrarySharing(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPLibrarySharingServices_Impl, - { + unsafe extern "system" fn showLibrarySharing(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPLibrarySharingServices_Impl::showLibrarySharing(this).into() } @@ -5386,133 +3994,76 @@ pub trait IWMPMedia_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMPMedia {} #[cfg(feature = "Win32_System_Com")] impl IWMPMedia_Vtbl { - pub const fn new() -> IWMPMedia_Vtbl - where - Identity: IWMPMedia_Impl, - { - unsafe extern "system" fn get_isIdentical(this: *mut core::ffi::c_void, piwmpmedia: *mut core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + pub const fn new() -> IWMPMedia_Vtbl { + unsafe extern "system" fn get_isIdentical(this: *mut core::ffi::c_void, piwmpmedia: *mut core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::get_isIdentical(this, windows_core::from_raw_borrowed(&piwmpmedia), core::mem::transmute_copy(&pvbool)).into() } - unsafe extern "system" fn sourceURL(this: *mut core::ffi::c_void, pbstrsourceurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn sourceURL(this: *mut core::ffi::c_void, pbstrsourceurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::sourceURL(this, core::mem::transmute_copy(&pbstrsourceurl)).into() } - unsafe extern "system" fn name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::name(this, core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn Setname(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn Setname(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::Setname(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn imageSourceWidth(this: *mut core::ffi::c_void, pwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn imageSourceWidth(this: *mut core::ffi::c_void, pwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::imageSourceWidth(this, core::mem::transmute_copy(&pwidth)).into() } - unsafe extern "system" fn imageSourceHeight(this: *mut core::ffi::c_void, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn imageSourceHeight(this: *mut core::ffi::c_void, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::imageSourceHeight(this, core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn markerCount(this: *mut core::ffi::c_void, pmarkercount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn markerCount(this: *mut core::ffi::c_void, pmarkercount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::markerCount(this, core::mem::transmute_copy(&pmarkercount)).into() } - unsafe extern "system" fn getMarkerTime(this: *mut core::ffi::c_void, markernum: i32, pmarkertime: *mut f64) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn getMarkerTime(this: *mut core::ffi::c_void, markernum: i32, pmarkertime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::getMarkerTime(this, core::mem::transmute_copy(&markernum), core::mem::transmute_copy(&pmarkertime)).into() } - unsafe extern "system" fn getMarkerName(this: *mut core::ffi::c_void, markernum: i32, pbstrmarkername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn getMarkerName(this: *mut core::ffi::c_void, markernum: i32, pbstrmarkername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::getMarkerName(this, core::mem::transmute_copy(&markernum), core::mem::transmute_copy(&pbstrmarkername)).into() } - unsafe extern "system" fn duration(this: *mut core::ffi::c_void, pduration: *mut f64) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn duration(this: *mut core::ffi::c_void, pduration: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::duration(this, core::mem::transmute_copy(&pduration)).into() } - unsafe extern "system" fn durationString(this: *mut core::ffi::c_void, pbstrduration: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn durationString(this: *mut core::ffi::c_void, pbstrduration: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::durationString(this, core::mem::transmute_copy(&pbstrduration)).into() } - unsafe extern "system" fn attributeCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn attributeCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::attributeCount(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getAttributeName(this: *mut core::ffi::c_void, lindex: i32, pbstritemname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn getAttributeName(this: *mut core::ffi::c_void, lindex: i32, pbstritemname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::getAttributeName(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pbstritemname)).into() } - unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::getItemInfo(this, core::mem::transmute(&bstritemname), core::mem::transmute_copy(&pbstrval)).into() } - unsafe extern "system" fn setItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn setItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::setItemInfo(this, core::mem::transmute(&bstritemname), core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn getItemInfoByAtom(this: *mut core::ffi::c_void, latom: i32, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn getItemInfoByAtom(this: *mut core::ffi::c_void, latom: i32, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::getItemInfoByAtom(this, core::mem::transmute_copy(&latom), core::mem::transmute_copy(&pbstrval)).into() } - unsafe extern "system" fn isMemberOf(this: *mut core::ffi::c_void, pplaylist: *mut core::ffi::c_void, pvarfismemberof: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn isMemberOf(this: *mut core::ffi::c_void, pplaylist: *mut core::ffi::c_void, pvarfismemberof: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::isMemberOf(this, windows_core::from_raw_borrowed(&pplaylist), core::mem::transmute_copy(&pvarfismemberof)).into() } - unsafe extern "system" fn isReadOnlyItem(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, pvarfisreadonly: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPMedia_Impl, - { + unsafe extern "system" fn isReadOnlyItem(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, pvarfisreadonly: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia_Impl::isReadOnlyItem(this, core::mem::transmute(&bstritemname), core::mem::transmute_copy(&pvarfisreadonly)).into() } @@ -5550,14 +4101,8 @@ pub trait IWMPMedia2_Impl: Sized + IWMPMedia_Impl { impl windows_core::RuntimeName for IWMPMedia2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPMedia2_Vtbl { - pub const fn new() -> IWMPMedia2_Vtbl - where - Identity: IWMPMedia2_Impl, - { - unsafe extern "system" fn error(this: *mut core::ffi::c_void, ppiwmperroritem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMedia2_Impl, - { + pub const fn new() -> IWMPMedia2_Vtbl { + unsafe extern "system" fn error(this: *mut core::ffi::c_void, ppiwmperroritem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMedia2_Impl::error(this) { Ok(ok__) => { @@ -5582,21 +4127,12 @@ pub trait IWMPMedia3_Impl: Sized + IWMPMedia2_Impl { impl windows_core::RuntimeName for IWMPMedia3 {} #[cfg(feature = "Win32_System_Com")] impl IWMPMedia3_Vtbl { - pub const fn new() -> IWMPMedia3_Vtbl - where - Identity: IWMPMedia3_Impl, - { - unsafe extern "system" fn getAttributeCountByType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit, bstrlanguage: core::mem::MaybeUninit, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPMedia3_Impl, - { + pub const fn new() -> IWMPMedia3_Vtbl { + unsafe extern "system" fn getAttributeCountByType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit, bstrlanguage: core::mem::MaybeUninit, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia3_Impl::getAttributeCountByType(this, core::mem::transmute(&bstrtype), core::mem::transmute(&bstrlanguage), core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getItemInfoByType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit, bstrlanguage: core::mem::MaybeUninit, lindex: i32, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMedia3_Impl, - { + unsafe extern "system" fn getItemInfoByType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit, bstrlanguage: core::mem::MaybeUninit, lindex: i32, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMedia3_Impl::getItemInfoByType(this, core::mem::transmute(&bstrtype), core::mem::transmute(&bstrlanguage), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pvarvalue)).into() } @@ -5629,14 +4165,8 @@ pub trait IWMPMediaCollection_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IWMPMediaCollection {} #[cfg(feature = "Win32_System_Com")] impl IWMPMediaCollection_Vtbl { - pub const fn new() -> IWMPMediaCollection_Vtbl - where - Identity: IWMPMediaCollection_Impl, - { - unsafe extern "system" fn add(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + pub const fn new() -> IWMPMediaCollection_Vtbl { + unsafe extern "system" fn add(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection_Impl::add(this, core::mem::transmute(&bstrurl)) { Ok(ok__) => { @@ -5646,10 +4176,7 @@ impl IWMPMediaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getAll(this: *mut core::ffi::c_void, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn getAll(this: *mut core::ffi::c_void, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection_Impl::getAll(this) { Ok(ok__) => { @@ -5659,10 +4186,7 @@ impl IWMPMediaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn getByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection_Impl::getByName(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -5672,10 +4196,7 @@ impl IWMPMediaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getByGenre(this: *mut core::ffi::c_void, bstrgenre: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn getByGenre(this: *mut core::ffi::c_void, bstrgenre: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection_Impl::getByGenre(this, core::mem::transmute(&bstrgenre)) { Ok(ok__) => { @@ -5685,10 +4206,7 @@ impl IWMPMediaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getByAuthor(this: *mut core::ffi::c_void, bstrauthor: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn getByAuthor(this: *mut core::ffi::c_void, bstrauthor: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection_Impl::getByAuthor(this, core::mem::transmute(&bstrauthor)) { Ok(ok__) => { @@ -5698,10 +4216,7 @@ impl IWMPMediaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getByAlbum(this: *mut core::ffi::c_void, bstralbum: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn getByAlbum(this: *mut core::ffi::c_void, bstralbum: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection_Impl::getByAlbum(this, core::mem::transmute(&bstralbum)) { Ok(ok__) => { @@ -5711,10 +4226,7 @@ impl IWMPMediaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getByAttribute(this: *mut core::ffi::c_void, bstrattribute: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn getByAttribute(this: *mut core::ffi::c_void, bstrattribute: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection_Impl::getByAttribute(this, core::mem::transmute(&bstrattribute), core::mem::transmute(&bstrvalue)) { Ok(ok__) => { @@ -5724,17 +4236,11 @@ impl IWMPMediaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn remove(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, varfdeletefile: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn remove(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, varfdeletefile: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMediaCollection_Impl::remove(this, windows_core::from_raw_borrowed(&pitem), core::mem::transmute_copy(&varfdeletefile)).into() } - unsafe extern "system" fn getAttributeStringCollection(this: *mut core::ffi::c_void, bstrattribute: core::mem::MaybeUninit, bstrmediatype: core::mem::MaybeUninit, ppstringcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn getAttributeStringCollection(this: *mut core::ffi::c_void, bstrattribute: core::mem::MaybeUninit, bstrmediatype: core::mem::MaybeUninit, ppstringcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection_Impl::getAttributeStringCollection(this, core::mem::transmute(&bstrattribute), core::mem::transmute(&bstrmediatype)) { Ok(ok__) => { @@ -5744,24 +4250,15 @@ impl IWMPMediaCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getMediaAtom(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, platom: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn getMediaAtom(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, platom: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMediaCollection_Impl::getMediaAtom(this, core::mem::transmute(&bstritemname), core::mem::transmute_copy(&platom)).into() } - unsafe extern "system" fn setDeleted(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, varfisdeleted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn setDeleted(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, varfisdeleted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMediaCollection_Impl::setDeleted(this, windows_core::from_raw_borrowed(&pitem), core::mem::transmute_copy(&varfisdeleted)).into() } - unsafe extern "system" fn isDeleted(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, pvarfisdeleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection_Impl, - { + unsafe extern "system" fn isDeleted(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, pvarfisdeleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMediaCollection_Impl::isDeleted(this, windows_core::from_raw_borrowed(&pitem), core::mem::transmute_copy(&pvarfisdeleted)).into() } @@ -5796,14 +4293,8 @@ pub trait IWMPMediaCollection2_Impl: Sized + IWMPMediaCollection_Impl { impl windows_core::RuntimeName for IWMPMediaCollection2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPMediaCollection2_Vtbl { - pub const fn new() -> IWMPMediaCollection2_Vtbl - where - Identity: IWMPMediaCollection2_Impl, - { - unsafe extern "system" fn createQuery(this: *mut core::ffi::c_void, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection2_Impl, - { + pub const fn new() -> IWMPMediaCollection2_Vtbl { + unsafe extern "system" fn createQuery(this: *mut core::ffi::c_void, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection2_Impl::createQuery(this) { Ok(ok__) => { @@ -5813,10 +4304,7 @@ impl IWMPMediaCollection2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getPlaylistByQuery(this: *mut core::ffi::c_void, pquery: *mut core::ffi::c_void, bstrmediatype: core::mem::MaybeUninit, bstrsortattribute: core::mem::MaybeUninit, fsortascending: super::super::Foundation::VARIANT_BOOL, ppplaylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection2_Impl, - { + unsafe extern "system" fn getPlaylistByQuery(this: *mut core::ffi::c_void, pquery: *mut core::ffi::c_void, bstrmediatype: core::mem::MaybeUninit, bstrsortattribute: core::mem::MaybeUninit, fsortascending: super::super::Foundation::VARIANT_BOOL, ppplaylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection2_Impl::getPlaylistByQuery(this, windows_core::from_raw_borrowed(&pquery), core::mem::transmute(&bstrmediatype), core::mem::transmute(&bstrsortattribute), core::mem::transmute_copy(&fsortascending)) { Ok(ok__) => { @@ -5826,10 +4314,7 @@ impl IWMPMediaCollection2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getStringCollectionByQuery(this: *mut core::ffi::c_void, bstrattribute: core::mem::MaybeUninit, pquery: *mut core::ffi::c_void, bstrmediatype: core::mem::MaybeUninit, bstrsortattribute: core::mem::MaybeUninit, fsortascending: super::super::Foundation::VARIANT_BOOL, ppstringcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection2_Impl, - { + unsafe extern "system" fn getStringCollectionByQuery(this: *mut core::ffi::c_void, bstrattribute: core::mem::MaybeUninit, pquery: *mut core::ffi::c_void, bstrmediatype: core::mem::MaybeUninit, bstrsortattribute: core::mem::MaybeUninit, fsortascending: super::super::Foundation::VARIANT_BOOL, ppstringcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection2_Impl::getStringCollectionByQuery(this, core::mem::transmute(&bstrattribute), windows_core::from_raw_borrowed(&pquery), core::mem::transmute(&bstrmediatype), core::mem::transmute(&bstrsortattribute), core::mem::transmute_copy(&fsortascending)) { Ok(ok__) => { @@ -5839,10 +4324,7 @@ impl IWMPMediaCollection2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getByAttributeAndMediaType(this: *mut core::ffi::c_void, bstrattribute: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit, bstrmediatype: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaCollection2_Impl, - { + unsafe extern "system" fn getByAttributeAndMediaType(this: *mut core::ffi::c_void, bstrattribute: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit, bstrmediatype: core::mem::MaybeUninit, ppmediaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPMediaCollection2_Impl::getByAttributeAndMediaType(this, core::mem::transmute(&bstrattribute), core::mem::transmute(&bstrvalue), core::mem::transmute(&bstrmediatype)) { Ok(ok__) => { @@ -5864,27 +4346,18 @@ impl IWMPMediaCollection2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMPMediaPluginRegistrar_Impl: Sized { +pub trait IWMPMediaPluginRegistrar_Impl: Sized + windows_core::IUnknownImpl { fn WMPRegisterPlayerPlugin(&self, pwszfriendlyname: &windows_core::PCWSTR, pwszdescription: &windows_core::PCWSTR, pwszuninstallstring: &windows_core::PCWSTR, dwpriority: u32, guidplugintype: &windows_core::GUID, clsid: &windows_core::GUID, cmediatypes: u32, pmediatypes: *mut core::ffi::c_void) -> windows_core::Result<()>; fn WMPUnRegisterPlayerPlugin(&self, guidplugintype: &windows_core::GUID, clsid: &windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPMediaPluginRegistrar {} impl IWMPMediaPluginRegistrar_Vtbl { - pub const fn new() -> IWMPMediaPluginRegistrar_Vtbl - where - Identity: IWMPMediaPluginRegistrar_Impl, - { - unsafe extern "system" fn WMPRegisterPlayerPlugin(this: *mut core::ffi::c_void, pwszfriendlyname: windows_core::PCWSTR, pwszdescription: windows_core::PCWSTR, pwszuninstallstring: windows_core::PCWSTR, dwpriority: u32, guidplugintype: windows_core::GUID, clsid: windows_core::GUID, cmediatypes: u32, pmediatypes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPMediaPluginRegistrar_Impl, - { + pub const fn new() -> IWMPMediaPluginRegistrar_Vtbl { + unsafe extern "system" fn WMPRegisterPlayerPlugin(this: *mut core::ffi::c_void, pwszfriendlyname: windows_core::PCWSTR, pwszdescription: windows_core::PCWSTR, pwszuninstallstring: windows_core::PCWSTR, dwpriority: u32, guidplugintype: windows_core::GUID, clsid: windows_core::GUID, cmediatypes: u32, pmediatypes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMediaPluginRegistrar_Impl::WMPRegisterPlayerPlugin(this, core::mem::transmute(&pwszfriendlyname), core::mem::transmute(&pwszdescription), core::mem::transmute(&pwszuninstallstring), core::mem::transmute_copy(&dwpriority), core::mem::transmute(&guidplugintype), core::mem::transmute(&clsid), core::mem::transmute_copy(&cmediatypes), core::mem::transmute_copy(&pmediatypes)).into() } - unsafe extern "system" fn WMPUnRegisterPlayerPlugin(this: *mut core::ffi::c_void, guidplugintype: windows_core::GUID, clsid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMPMediaPluginRegistrar_Impl, - { + unsafe extern "system" fn WMPUnRegisterPlayerPlugin(this: *mut core::ffi::c_void, guidplugintype: windows_core::GUID, clsid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMediaPluginRegistrar_Impl::WMPUnRegisterPlayerPlugin(this, core::mem::transmute(&guidplugintype), core::mem::transmute(&clsid)).into() } @@ -5909,35 +4382,20 @@ pub trait IWMPMetadataPicture_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IWMPMetadataPicture {} #[cfg(feature = "Win32_System_Com")] impl IWMPMetadataPicture_Vtbl { - pub const fn new() -> IWMPMetadataPicture_Vtbl - where - Identity: IWMPMetadataPicture_Impl, - { - unsafe extern "system" fn mimeType(this: *mut core::ffi::c_void, pbstrmimetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMetadataPicture_Impl, - { + pub const fn new() -> IWMPMetadataPicture_Vtbl { + unsafe extern "system" fn mimeType(this: *mut core::ffi::c_void, pbstrmimetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMetadataPicture_Impl::mimeType(this, core::mem::transmute_copy(&pbstrmimetype)).into() } - unsafe extern "system" fn pictureType(this: *mut core::ffi::c_void, pbstrpicturetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMetadataPicture_Impl, - { + unsafe extern "system" fn pictureType(this: *mut core::ffi::c_void, pbstrpicturetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMetadataPicture_Impl::pictureType(this, core::mem::transmute_copy(&pbstrpicturetype)).into() } - unsafe extern "system" fn description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMetadataPicture_Impl, - { + unsafe extern "system" fn description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMetadataPicture_Impl::description(this, core::mem::transmute_copy(&pbstrdescription)).into() } - unsafe extern "system" fn URL(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMetadataPicture_Impl, - { + unsafe extern "system" fn URL(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMetadataPicture_Impl::URL(this, core::mem::transmute_copy(&pbstrurl)).into() } @@ -5962,21 +4420,12 @@ pub trait IWMPMetadataText_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IWMPMetadataText {} #[cfg(feature = "Win32_System_Com")] impl IWMPMetadataText_Vtbl { - pub const fn new() -> IWMPMetadataText_Vtbl - where - Identity: IWMPMetadataText_Impl, - { - unsafe extern "system" fn description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMetadataText_Impl, - { + pub const fn new() -> IWMPMetadataText_Vtbl { + unsafe extern "system" fn description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMetadataText_Impl::description(this, core::mem::transmute_copy(&pbstrdescription)).into() } - unsafe extern "system" fn text(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPMetadataText_Impl, - { + unsafe extern "system" fn text(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPMetadataText_Impl::text(this, core::mem::transmute_copy(&pbstrtext)).into() } @@ -6025,203 +4474,116 @@ pub trait IWMPNetwork_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMPNetwork {} #[cfg(feature = "Win32_System_Com")] impl IWMPNetwork_Vtbl { - pub const fn new() -> IWMPNetwork_Vtbl - where - Identity: IWMPNetwork_Impl, - { - unsafe extern "system" fn bandWidth(this: *mut core::ffi::c_void, plbandwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + pub const fn new() -> IWMPNetwork_Vtbl { + unsafe extern "system" fn bandWidth(this: *mut core::ffi::c_void, plbandwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::bandWidth(this, core::mem::transmute_copy(&plbandwidth)).into() } - unsafe extern "system" fn recoveredPackets(this: *mut core::ffi::c_void, plrecoveredpackets: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn recoveredPackets(this: *mut core::ffi::c_void, plrecoveredpackets: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::recoveredPackets(this, core::mem::transmute_copy(&plrecoveredpackets)).into() } - unsafe extern "system" fn sourceProtocol(this: *mut core::ffi::c_void, pbstrsourceprotocol: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn sourceProtocol(this: *mut core::ffi::c_void, pbstrsourceprotocol: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::sourceProtocol(this, core::mem::transmute_copy(&pbstrsourceprotocol)).into() } - unsafe extern "system" fn receivedPackets(this: *mut core::ffi::c_void, plreceivedpackets: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn receivedPackets(this: *mut core::ffi::c_void, plreceivedpackets: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::receivedPackets(this, core::mem::transmute_copy(&plreceivedpackets)).into() } - unsafe extern "system" fn lostPackets(this: *mut core::ffi::c_void, pllostpackets: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn lostPackets(this: *mut core::ffi::c_void, pllostpackets: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::lostPackets(this, core::mem::transmute_copy(&pllostpackets)).into() } - unsafe extern "system" fn receptionQuality(this: *mut core::ffi::c_void, plreceptionquality: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn receptionQuality(this: *mut core::ffi::c_void, plreceptionquality: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::receptionQuality(this, core::mem::transmute_copy(&plreceptionquality)).into() } - unsafe extern "system" fn bufferingCount(this: *mut core::ffi::c_void, plbufferingcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn bufferingCount(this: *mut core::ffi::c_void, plbufferingcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::bufferingCount(this, core::mem::transmute_copy(&plbufferingcount)).into() } - unsafe extern "system" fn bufferingProgress(this: *mut core::ffi::c_void, plbufferingprogress: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn bufferingProgress(this: *mut core::ffi::c_void, plbufferingprogress: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::bufferingProgress(this, core::mem::transmute_copy(&plbufferingprogress)).into() } - unsafe extern "system" fn bufferingTime(this: *mut core::ffi::c_void, plbufferingtime: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn bufferingTime(this: *mut core::ffi::c_void, plbufferingtime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::bufferingTime(this, core::mem::transmute_copy(&plbufferingtime)).into() } - unsafe extern "system" fn SetbufferingTime(this: *mut core::ffi::c_void, lbufferingtime: i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn SetbufferingTime(this: *mut core::ffi::c_void, lbufferingtime: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::SetbufferingTime(this, core::mem::transmute_copy(&lbufferingtime)).into() } - unsafe extern "system" fn frameRate(this: *mut core::ffi::c_void, plframerate: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn frameRate(this: *mut core::ffi::c_void, plframerate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::frameRate(this, core::mem::transmute_copy(&plframerate)).into() } - unsafe extern "system" fn maxBitRate(this: *mut core::ffi::c_void, plbitrate: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn maxBitRate(this: *mut core::ffi::c_void, plbitrate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::maxBitRate(this, core::mem::transmute_copy(&plbitrate)).into() } - unsafe extern "system" fn bitRate(this: *mut core::ffi::c_void, plbitrate: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn bitRate(this: *mut core::ffi::c_void, plbitrate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::bitRate(this, core::mem::transmute_copy(&plbitrate)).into() } - unsafe extern "system" fn getProxySettings(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, plproxysetting: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn getProxySettings(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, plproxysetting: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::getProxySettings(this, core::mem::transmute(&bstrprotocol), core::mem::transmute_copy(&plproxysetting)).into() } - unsafe extern "system" fn setProxySettings(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, lproxysetting: i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn setProxySettings(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, lproxysetting: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::setProxySettings(this, core::mem::transmute(&bstrprotocol), core::mem::transmute_copy(&lproxysetting)).into() } - unsafe extern "system" fn getProxyName(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, pbstrproxyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn getProxyName(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, pbstrproxyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::getProxyName(this, core::mem::transmute(&bstrprotocol), core::mem::transmute_copy(&pbstrproxyname)).into() } - unsafe extern "system" fn setProxyName(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, bstrproxyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn setProxyName(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, bstrproxyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::setProxyName(this, core::mem::transmute(&bstrprotocol), core::mem::transmute(&bstrproxyname)).into() } - unsafe extern "system" fn getProxyPort(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, lproxyport: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn getProxyPort(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, lproxyport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::getProxyPort(this, core::mem::transmute(&bstrprotocol), core::mem::transmute_copy(&lproxyport)).into() } - unsafe extern "system" fn setProxyPort(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, lproxyport: i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn setProxyPort(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, lproxyport: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::setProxyPort(this, core::mem::transmute(&bstrprotocol), core::mem::transmute_copy(&lproxyport)).into() } - unsafe extern "system" fn getProxyExceptionList(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, pbstrexceptionlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn getProxyExceptionList(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, pbstrexceptionlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::getProxyExceptionList(this, core::mem::transmute(&bstrprotocol), core::mem::transmute_copy(&pbstrexceptionlist)).into() } - unsafe extern "system" fn setProxyExceptionList(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, pbstrexceptionlist: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn setProxyExceptionList(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, pbstrexceptionlist: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::setProxyExceptionList(this, core::mem::transmute(&bstrprotocol), core::mem::transmute(&pbstrexceptionlist)).into() } - unsafe extern "system" fn getProxyBypassForLocal(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, pfbypassforlocal: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn getProxyBypassForLocal(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, pfbypassforlocal: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::getProxyBypassForLocal(this, core::mem::transmute(&bstrprotocol), core::mem::transmute_copy(&pfbypassforlocal)).into() } - unsafe extern "system" fn setProxyBypassForLocal(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, fbypassforlocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn setProxyBypassForLocal(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, fbypassforlocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::setProxyBypassForLocal(this, core::mem::transmute(&bstrprotocol), core::mem::transmute_copy(&fbypassforlocal)).into() } - unsafe extern "system" fn maxBandwidth(this: *mut core::ffi::c_void, lmaxbandwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn maxBandwidth(this: *mut core::ffi::c_void, lmaxbandwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::maxBandwidth(this, core::mem::transmute_copy(&lmaxbandwidth)).into() } - unsafe extern "system" fn SetmaxBandwidth(this: *mut core::ffi::c_void, lmaxbandwidth: i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn SetmaxBandwidth(this: *mut core::ffi::c_void, lmaxbandwidth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::SetmaxBandwidth(this, core::mem::transmute_copy(&lmaxbandwidth)).into() } - unsafe extern "system" fn downloadProgress(this: *mut core::ffi::c_void, pldownloadprogress: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn downloadProgress(this: *mut core::ffi::c_void, pldownloadprogress: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::downloadProgress(this, core::mem::transmute_copy(&pldownloadprogress)).into() } - unsafe extern "system" fn encodedFrameRate(this: *mut core::ffi::c_void, plframerate: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn encodedFrameRate(this: *mut core::ffi::c_void, plframerate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::encodedFrameRate(this, core::mem::transmute_copy(&plframerate)).into() } - unsafe extern "system" fn framesSkipped(this: *mut core::ffi::c_void, plframes: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPNetwork_Impl, - { + unsafe extern "system" fn framesSkipped(this: *mut core::ffi::c_void, plframes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNetwork_Impl::framesSkipped(this, core::mem::transmute_copy(&plframes)).into() } @@ -6261,7 +4623,7 @@ impl IWMPNetwork_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMPNodeRealEstate_Impl: Sized { +pub trait IWMPNodeRealEstate_Impl: Sized + windows_core::IUnknownImpl { fn GetDesiredSize(&self, psize: *mut super::super::Foundation::SIZE) -> windows_core::Result<()>; fn SetRects(&self, psrc: *const super::super::Foundation::RECT, pdest: *const super::super::Foundation::RECT, pclip: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn GetRects(&self, psrc: *mut super::super::Foundation::RECT, pdest: *mut super::super::Foundation::RECT, pclip: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; @@ -6272,56 +4634,32 @@ pub trait IWMPNodeRealEstate_Impl: Sized { } impl windows_core::RuntimeName for IWMPNodeRealEstate {} impl IWMPNodeRealEstate_Vtbl { - pub const fn new() -> IWMPNodeRealEstate_Vtbl - where - Identity: IWMPNodeRealEstate_Impl, - { - unsafe extern "system" fn GetDesiredSize(this: *mut core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IWMPNodeRealEstate_Impl, - { + pub const fn new() -> IWMPNodeRealEstate_Vtbl { + unsafe extern "system" fn GetDesiredSize(this: *mut core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::GetDesiredSize(this, core::mem::transmute_copy(&psize)).into() } - unsafe extern "system" fn SetRects(this: *mut core::ffi::c_void, psrc: *const super::super::Foundation::RECT, pdest: *const super::super::Foundation::RECT, pclip: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IWMPNodeRealEstate_Impl, - { + unsafe extern "system" fn SetRects(this: *mut core::ffi::c_void, psrc: *const super::super::Foundation::RECT, pdest: *const super::super::Foundation::RECT, pclip: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::SetRects(this, core::mem::transmute_copy(&psrc), core::mem::transmute_copy(&pdest), core::mem::transmute_copy(&pclip)).into() } - unsafe extern "system" fn GetRects(this: *mut core::ffi::c_void, psrc: *mut super::super::Foundation::RECT, pdest: *mut super::super::Foundation::RECT, pclip: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IWMPNodeRealEstate_Impl, - { + unsafe extern "system" fn GetRects(this: *mut core::ffi::c_void, psrc: *mut super::super::Foundation::RECT, pdest: *mut super::super::Foundation::RECT, pclip: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::GetRects(this, core::mem::transmute_copy(&psrc), core::mem::transmute_copy(&pdest), core::mem::transmute_copy(&pclip)).into() } - unsafe extern "system" fn SetWindowless(this: *mut core::ffi::c_void, fwindowless: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPNodeRealEstate_Impl, - { + unsafe extern "system" fn SetWindowless(this: *mut core::ffi::c_void, fwindowless: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::SetWindowless(this, core::mem::transmute_copy(&fwindowless)).into() } - unsafe extern "system" fn GetWindowless(this: *mut core::ffi::c_void, pfwindowless: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPNodeRealEstate_Impl, - { + unsafe extern "system" fn GetWindowless(this: *mut core::ffi::c_void, pfwindowless: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::GetWindowless(this, core::mem::transmute_copy(&pfwindowless)).into() } - unsafe extern "system" fn SetFullScreen(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPNodeRealEstate_Impl, - { + unsafe extern "system" fn SetFullScreen(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::SetFullScreen(this, core::mem::transmute_copy(&ffullscreen)).into() } - unsafe extern "system" fn GetFullScreen(this: *mut core::ffi::c_void, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPNodeRealEstate_Impl, - { + unsafe extern "system" fn GetFullScreen(this: *mut core::ffi::c_void, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::GetFullScreen(this, core::mem::transmute_copy(&pffullscreen)).into() } @@ -6340,27 +4678,18 @@ impl IWMPNodeRealEstate_Vtbl { iid == &::IID } } -pub trait IWMPNodeRealEstateHost_Impl: Sized { +pub trait IWMPNodeRealEstateHost_Impl: Sized + windows_core::IUnknownImpl { fn OnDesiredSizeChange(&self, psize: *mut super::super::Foundation::SIZE) -> windows_core::Result<()>; fn OnFullScreenTransition(&self, ffullscreen: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPNodeRealEstateHost {} impl IWMPNodeRealEstateHost_Vtbl { - pub const fn new() -> IWMPNodeRealEstateHost_Vtbl - where - Identity: IWMPNodeRealEstateHost_Impl, - { - unsafe extern "system" fn OnDesiredSizeChange(this: *mut core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IWMPNodeRealEstateHost_Impl, - { + pub const fn new() -> IWMPNodeRealEstateHost_Vtbl { + unsafe extern "system" fn OnDesiredSizeChange(this: *mut core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstateHost_Impl::OnDesiredSizeChange(this, core::mem::transmute_copy(&psize)).into() } - unsafe extern "system" fn OnFullScreenTransition(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPNodeRealEstateHost_Impl, - { + unsafe extern "system" fn OnFullScreenTransition(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstateHost_Impl::OnFullScreenTransition(this, core::mem::transmute_copy(&ffullscreen)).into() } @@ -6374,27 +4703,18 @@ impl IWMPNodeRealEstateHost_Vtbl { iid == &::IID } } -pub trait IWMPNodeWindowed_Impl: Sized { +pub trait IWMPNodeWindowed_Impl: Sized + windows_core::IUnknownImpl { fn SetOwnerWindow(&self, hwnd: isize) -> windows_core::Result<()>; fn GetOwnerWindow(&self, phwnd: *mut isize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPNodeWindowed {} impl IWMPNodeWindowed_Vtbl { - pub const fn new() -> IWMPNodeWindowed_Vtbl - where - Identity: IWMPNodeWindowed_Impl, - { - unsafe extern "system" fn SetOwnerWindow(this: *mut core::ffi::c_void, hwnd: isize) -> windows_core::HRESULT - where - Identity: IWMPNodeWindowed_Impl, - { + pub const fn new() -> IWMPNodeWindowed_Vtbl { + unsafe extern "system" fn SetOwnerWindow(this: *mut core::ffi::c_void, hwnd: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeWindowed_Impl::SetOwnerWindow(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn GetOwnerWindow(this: *mut core::ffi::c_void, phwnd: *mut isize) -> windows_core::HRESULT - where - Identity: IWMPNodeWindowed_Impl, - { + unsafe extern "system" fn GetOwnerWindow(this: *mut core::ffi::c_void, phwnd: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeWindowed_Impl::GetOwnerWindow(this, core::mem::transmute_copy(&phwnd)).into() } @@ -6408,19 +4728,13 @@ impl IWMPNodeWindowed_Vtbl { iid == &::IID } } -pub trait IWMPNodeWindowedHost_Impl: Sized { +pub trait IWMPNodeWindowedHost_Impl: Sized + windows_core::IUnknownImpl { fn OnWindowMessageFromRenderer(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPNodeWindowedHost {} impl IWMPNodeWindowedHost_Vtbl { - pub const fn new() -> IWMPNodeWindowedHost_Vtbl - where - Identity: IWMPNodeWindowedHost_Impl, - { - unsafe extern "system" fn OnWindowMessageFromRenderer(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPNodeWindowedHost_Impl, - { + pub const fn new() -> IWMPNodeWindowedHost_Vtbl { + unsafe extern "system" fn OnWindowMessageFromRenderer(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeWindowedHost_Impl::OnWindowMessageFromRenderer(this, core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&plret), core::mem::transmute_copy(&pfhandled)).into() } @@ -6435,14 +4749,8 @@ pub trait IWMPNodeWindowless_Impl: Sized + IWMPWindowMessageSink_Impl { } impl windows_core::RuntimeName for IWMPNodeWindowless {} impl IWMPNodeWindowless_Vtbl { - pub const fn new() -> IWMPNodeWindowless_Vtbl - where - Identity: IWMPNodeWindowless_Impl, - { - unsafe extern "system" fn OnDraw(this: *mut core::ffi::c_void, hdc: isize, prcdraw: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IWMPNodeWindowless_Impl, - { + pub const fn new() -> IWMPNodeWindowless_Vtbl { + unsafe extern "system" fn OnDraw(this: *mut core::ffi::c_void, hdc: isize, prcdraw: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeWindowless_Impl::OnDraw(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&prcdraw)).into() } @@ -6452,19 +4760,13 @@ impl IWMPNodeWindowless_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMPNodeWindowlessHost_Impl: Sized { +pub trait IWMPNodeWindowlessHost_Impl: Sized + windows_core::IUnknownImpl { fn InvalidateRect(&self, prc: *const super::super::Foundation::RECT, ferase: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPNodeWindowlessHost {} impl IWMPNodeWindowlessHost_Vtbl { - pub const fn new() -> IWMPNodeWindowlessHost_Vtbl - where - Identity: IWMPNodeWindowlessHost_Impl, - { - unsafe extern "system" fn InvalidateRect(this: *mut core::ffi::c_void, prc: *const super::super::Foundation::RECT, ferase: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPNodeWindowlessHost_Impl, - { + pub const fn new() -> IWMPNodeWindowlessHost_Vtbl { + unsafe extern "system" fn InvalidateRect(this: *mut core::ffi::c_void, prc: *const super::super::Foundation::RECT, ferase: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeWindowlessHost_Impl::InvalidateRect(this, core::mem::transmute_copy(&prc), core::mem::transmute_copy(&ferase)).into() } @@ -6489,63 +4791,36 @@ pub trait IWMPPlayer_Impl: Sized + IWMPCore_Impl { impl windows_core::RuntimeName for IWMPPlayer {} #[cfg(feature = "Win32_System_Com")] impl IWMPPlayer_Vtbl { - pub const fn new() -> IWMPPlayer_Vtbl - where - Identity: IWMPPlayer_Impl, - { - unsafe extern "system" fn enabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer_Impl, - { + pub const fn new() -> IWMPPlayer_Vtbl { + unsafe extern "system" fn enabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer_Impl::enabled(this, core::mem::transmute_copy(&pbenabled)).into() } - unsafe extern "system" fn Setenabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer_Impl, - { + unsafe extern "system" fn Setenabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer_Impl::Setenabled(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn fullScreen(this: *mut core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer_Impl, - { + unsafe extern "system" fn fullScreen(this: *mut core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer_Impl::fullScreen(this, core::mem::transmute_copy(&pbfullscreen)).into() } - unsafe extern "system" fn SetfullScreen(this: *mut core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer_Impl, - { + unsafe extern "system" fn SetfullScreen(this: *mut core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer_Impl::SetfullScreen(this, core::mem::transmute_copy(&bfullscreen)).into() } - unsafe extern "system" fn enableContextMenu(this: *mut core::ffi::c_void, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer_Impl, - { + unsafe extern "system" fn enableContextMenu(this: *mut core::ffi::c_void, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer_Impl::enableContextMenu(this, core::mem::transmute_copy(&pbenablecontextmenu)).into() } - unsafe extern "system" fn SetenableContextMenu(this: *mut core::ffi::c_void, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer_Impl, - { + unsafe extern "system" fn SetenableContextMenu(this: *mut core::ffi::c_void, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer_Impl::SetenableContextMenu(this, core::mem::transmute_copy(&benablecontextmenu)).into() } - unsafe extern "system" fn SetuiMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayer_Impl, - { + unsafe extern "system" fn SetuiMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer_Impl::SetuiMode(this, core::mem::transmute(&bstrmode)).into() } - unsafe extern "system" fn uiMode(this: *mut core::ffi::c_void, pbstrmode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayer_Impl, - { + unsafe extern "system" fn uiMode(this: *mut core::ffi::c_void, pbstrmode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer_Impl::uiMode(this, core::mem::transmute_copy(&pbstrmode)).into() } @@ -6584,91 +4859,52 @@ pub trait IWMPPlayer2_Impl: Sized + IWMPCore_Impl { impl windows_core::RuntimeName for IWMPPlayer2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPPlayer2_Vtbl { - pub const fn new() -> IWMPPlayer2_Vtbl - where - Identity: IWMPPlayer2_Impl, - { - unsafe extern "system" fn enabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + pub const fn new() -> IWMPPlayer2_Vtbl { + unsafe extern "system" fn enabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::enabled(this, core::mem::transmute_copy(&pbenabled)).into() } - unsafe extern "system" fn Setenabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn Setenabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::Setenabled(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn fullScreen(this: *mut core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn fullScreen(this: *mut core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::fullScreen(this, core::mem::transmute_copy(&pbfullscreen)).into() } - unsafe extern "system" fn SetfullScreen(this: *mut core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn SetfullScreen(this: *mut core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::SetfullScreen(this, core::mem::transmute_copy(&bfullscreen)).into() } - unsafe extern "system" fn enableContextMenu(this: *mut core::ffi::c_void, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn enableContextMenu(this: *mut core::ffi::c_void, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::enableContextMenu(this, core::mem::transmute_copy(&pbenablecontextmenu)).into() } - unsafe extern "system" fn SetenableContextMenu(this: *mut core::ffi::c_void, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn SetenableContextMenu(this: *mut core::ffi::c_void, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::SetenableContextMenu(this, core::mem::transmute_copy(&benablecontextmenu)).into() } - unsafe extern "system" fn SetuiMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn SetuiMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::SetuiMode(this, core::mem::transmute(&bstrmode)).into() } - unsafe extern "system" fn uiMode(this: *mut core::ffi::c_void, pbstrmode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn uiMode(this: *mut core::ffi::c_void, pbstrmode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::uiMode(this, core::mem::transmute_copy(&pbstrmode)).into() } - unsafe extern "system" fn stretchToFit(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn stretchToFit(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::stretchToFit(this, core::mem::transmute_copy(&pbenabled)).into() } - unsafe extern "system" fn SetstretchToFit(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn SetstretchToFit(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::SetstretchToFit(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn windowlessVideo(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn windowlessVideo(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::windowlessVideo(this, core::mem::transmute_copy(&pbenabled)).into() } - unsafe extern "system" fn SetwindowlessVideo(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer2_Impl, - { + unsafe extern "system" fn SetwindowlessVideo(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer2_Impl::SetwindowlessVideo(this, core::mem::transmute_copy(&benabled)).into() } @@ -6711,91 +4947,52 @@ pub trait IWMPPlayer3_Impl: Sized + IWMPCore2_Impl { impl windows_core::RuntimeName for IWMPPlayer3 {} #[cfg(feature = "Win32_System_Com")] impl IWMPPlayer3_Vtbl { - pub const fn new() -> IWMPPlayer3_Vtbl - where - Identity: IWMPPlayer3_Impl, - { - unsafe extern "system" fn enabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + pub const fn new() -> IWMPPlayer3_Vtbl { + unsafe extern "system" fn enabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::enabled(this, core::mem::transmute_copy(&pbenabled)).into() } - unsafe extern "system" fn Setenabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn Setenabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::Setenabled(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn fullScreen(this: *mut core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn fullScreen(this: *mut core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::fullScreen(this, core::mem::transmute_copy(&pbfullscreen)).into() } - unsafe extern "system" fn SetfullScreen(this: *mut core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn SetfullScreen(this: *mut core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::SetfullScreen(this, core::mem::transmute_copy(&bfullscreen)).into() } - unsafe extern "system" fn enableContextMenu(this: *mut core::ffi::c_void, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn enableContextMenu(this: *mut core::ffi::c_void, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::enableContextMenu(this, core::mem::transmute_copy(&pbenablecontextmenu)).into() } - unsafe extern "system" fn SetenableContextMenu(this: *mut core::ffi::c_void, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn SetenableContextMenu(this: *mut core::ffi::c_void, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::SetenableContextMenu(this, core::mem::transmute_copy(&benablecontextmenu)).into() } - unsafe extern "system" fn SetuiMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn SetuiMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::SetuiMode(this, core::mem::transmute(&bstrmode)).into() } - unsafe extern "system" fn uiMode(this: *mut core::ffi::c_void, pbstrmode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn uiMode(this: *mut core::ffi::c_void, pbstrmode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::uiMode(this, core::mem::transmute_copy(&pbstrmode)).into() } - unsafe extern "system" fn stretchToFit(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn stretchToFit(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::stretchToFit(this, core::mem::transmute_copy(&pbenabled)).into() } - unsafe extern "system" fn SetstretchToFit(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn SetstretchToFit(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::SetstretchToFit(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn windowlessVideo(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn windowlessVideo(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::windowlessVideo(this, core::mem::transmute_copy(&pbenabled)).into() } - unsafe extern "system" fn SetwindowlessVideo(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer3_Impl, - { + unsafe extern "system" fn SetwindowlessVideo(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer3_Impl::SetwindowlessVideo(this, core::mem::transmute_copy(&benabled)).into() } @@ -6841,105 +5038,60 @@ pub trait IWMPPlayer4_Impl: Sized + IWMPCore3_Impl { impl windows_core::RuntimeName for IWMPPlayer4 {} #[cfg(feature = "Win32_System_Com")] impl IWMPPlayer4_Vtbl { - pub const fn new() -> IWMPPlayer4_Vtbl - where - Identity: IWMPPlayer4_Impl, - { - unsafe extern "system" fn enabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + pub const fn new() -> IWMPPlayer4_Vtbl { + unsafe extern "system" fn enabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::enabled(this, core::mem::transmute_copy(&pbenabled)).into() } - unsafe extern "system" fn Setenabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn Setenabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::Setenabled(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn fullScreen(this: *mut core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn fullScreen(this: *mut core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::fullScreen(this, core::mem::transmute_copy(&pbfullscreen)).into() } - unsafe extern "system" fn SetfullScreen(this: *mut core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn SetfullScreen(this: *mut core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::SetfullScreen(this, core::mem::transmute_copy(&bfullscreen)).into() } - unsafe extern "system" fn enableContextMenu(this: *mut core::ffi::c_void, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn enableContextMenu(this: *mut core::ffi::c_void, pbenablecontextmenu: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::enableContextMenu(this, core::mem::transmute_copy(&pbenablecontextmenu)).into() } - unsafe extern "system" fn SetenableContextMenu(this: *mut core::ffi::c_void, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn SetenableContextMenu(this: *mut core::ffi::c_void, benablecontextmenu: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::SetenableContextMenu(this, core::mem::transmute_copy(&benablecontextmenu)).into() } - unsafe extern "system" fn SetuiMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn SetuiMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::SetuiMode(this, core::mem::transmute(&bstrmode)).into() } - unsafe extern "system" fn uiMode(this: *mut core::ffi::c_void, pbstrmode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn uiMode(this: *mut core::ffi::c_void, pbstrmode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::uiMode(this, core::mem::transmute_copy(&pbstrmode)).into() } - unsafe extern "system" fn stretchToFit(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn stretchToFit(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::stretchToFit(this, core::mem::transmute_copy(&pbenabled)).into() } - unsafe extern "system" fn SetstretchToFit(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn SetstretchToFit(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::SetstretchToFit(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn windowlessVideo(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn windowlessVideo(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::windowlessVideo(this, core::mem::transmute_copy(&pbenabled)).into() } - unsafe extern "system" fn SetwindowlessVideo(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn SetwindowlessVideo(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::SetwindowlessVideo(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn isRemote(this: *mut core::ffi::c_void, pvarfisremote: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn isRemote(this: *mut core::ffi::c_void, pvarfisremote: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::isRemote(this, core::mem::transmute_copy(&pvarfisremote)).into() } - unsafe extern "system" fn playerApplication(this: *mut core::ffi::c_void, ppiwmpplayerapplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn playerApplication(this: *mut core::ffi::c_void, ppiwmpplayerapplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPPlayer4_Impl::playerApplication(this) { Ok(ok__) => { @@ -6949,10 +5101,7 @@ impl IWMPPlayer4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn openPlayer(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayer4_Impl, - { + unsafe extern "system" fn openPlayer(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayer4_Impl::openPlayer(this, core::mem::transmute(&bstrurl)).into() } @@ -6990,35 +5139,20 @@ pub trait IWMPPlayerApplication_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for IWMPPlayerApplication {} #[cfg(feature = "Win32_System_Com")] impl IWMPPlayerApplication_Vtbl { - pub const fn new() -> IWMPPlayerApplication_Vtbl - where - Identity: IWMPPlayerApplication_Impl, - { - unsafe extern "system" fn switchToPlayerApplication(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlayerApplication_Impl, - { + pub const fn new() -> IWMPPlayerApplication_Vtbl { + unsafe extern "system" fn switchToPlayerApplication(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayerApplication_Impl::switchToPlayerApplication(this).into() } - unsafe extern "system" fn switchToControl(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlayerApplication_Impl, - { + unsafe extern "system" fn switchToControl(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayerApplication_Impl::switchToControl(this).into() } - unsafe extern "system" fn playerDocked(this: *mut core::ffi::c_void, pbplayerdocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayerApplication_Impl, - { + unsafe extern "system" fn playerDocked(this: *mut core::ffi::c_void, pbplayerdocked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayerApplication_Impl::playerDocked(this, core::mem::transmute_copy(&pbplayerdocked)).into() } - unsafe extern "system" fn hasDisplay(this: *mut core::ffi::c_void, pbhasdisplay: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlayerApplication_Impl, - { + unsafe extern "system" fn hasDisplay(this: *mut core::ffi::c_void, pbhasdisplay: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayerApplication_Impl::hasDisplay(this, core::mem::transmute_copy(&pbhasdisplay)).into() } @@ -7034,35 +5168,23 @@ impl IWMPPlayerApplication_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMPPlayerServices_Impl: Sized { +pub trait IWMPPlayerServices_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IWMPPlayerServices {} impl IWMPPlayerServices_Vtbl { - pub const fn new() -> IWMPPlayerServices_Vtbl - where - Identity: IWMPPlayerServices_Impl, - { - unsafe extern "system" fn activateUIPlugin(this: *mut core::ffi::c_void, bstrplugin: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayerServices_Impl, - { + pub const fn new() -> IWMPPlayerServices_Vtbl { + unsafe extern "system" fn activateUIPlugin(this: *mut core::ffi::c_void, bstrplugin: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayerServices_Impl::activateUIPlugin(this, core::mem::transmute(&bstrplugin)).into() } - unsafe extern "system" fn setTaskPane(this: *mut core::ffi::c_void, bstrtaskpane: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayerServices_Impl, - { + unsafe extern "system" fn setTaskPane(this: *mut core::ffi::c_void, bstrtaskpane: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayerServices_Impl::setTaskPane(this, core::mem::transmute(&bstrtaskpane)).into() } - unsafe extern "system" fn setTaskPaneURL(this: *mut core::ffi::c_void, bstrtaskpane: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, bstrfriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayerServices_Impl, - { + unsafe extern "system" fn setTaskPaneURL(this: *mut core::ffi::c_void, bstrtaskpane: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, bstrfriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayerServices_Impl::setTaskPaneURL(this, core::mem::transmute(&bstrtaskpane), core::mem::transmute(&bstrurl), core::mem::transmute(&bstrfriendlyname)).into() } @@ -7082,14 +5204,8 @@ pub trait IWMPPlayerServices2_Impl: Sized + IWMPPlayerServices_Impl { } impl windows_core::RuntimeName for IWMPPlayerServices2 {} impl IWMPPlayerServices2_Vtbl { - pub const fn new() -> IWMPPlayerServices2_Vtbl - where - Identity: IWMPPlayerServices2_Impl, - { - unsafe extern "system" fn setBackgroundProcessingPriority(this: *mut core::ffi::c_void, bstrpriority: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlayerServices2_Impl, - { + pub const fn new() -> IWMPPlayerServices2_Vtbl { + unsafe extern "system" fn setBackgroundProcessingPriority(this: *mut core::ffi::c_void, bstrpriority: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlayerServices2_Impl::setBackgroundProcessingPriority(this, core::mem::transmute(&bstrpriority)).into() } @@ -7120,49 +5236,28 @@ pub trait IWMPPlaylist_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMPPlaylist {} #[cfg(feature = "Win32_System_Com")] impl IWMPPlaylist_Vtbl { - pub const fn new() -> IWMPPlaylist_Vtbl - where - Identity: IWMPPlaylist_Impl, - { - unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + pub const fn new() -> IWMPPlaylist_Vtbl { + unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::count(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::name(this, core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn Setname(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn Setname(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::Setname(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn attributeCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn attributeCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::attributeCount(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn get_attributeName(this: *mut core::ffi::c_void, lindex: i32, pbstrattributename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn get_attributeName(this: *mut core::ffi::c_void, lindex: i32, pbstrattributename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::get_attributeName(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pbstrattributename)).into() } - unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, lindex: i32, ppiwmpmedia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn get_item(this: *mut core::ffi::c_void, lindex: i32, ppiwmpmedia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPPlaylist_Impl::get_item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -7172,59 +5267,35 @@ impl IWMPPlaylist_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::getItemInfo(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&pbstrval)).into() } - unsafe extern "system" fn setItemInfo(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn setItemInfo(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::setItemInfo(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn get_isIdentical(this: *mut core::ffi::c_void, piwmpplaylist: *mut core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn get_isIdentical(this: *mut core::ffi::c_void, piwmpplaylist: *mut core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::get_isIdentical(this, windows_core::from_raw_borrowed(&piwmpplaylist), core::mem::transmute_copy(&pvbool)).into() } - unsafe extern "system" fn clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::clear(this).into() } - unsafe extern "system" fn insertItem(this: *mut core::ffi::c_void, lindex: i32, piwmpmedia: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn insertItem(this: *mut core::ffi::c_void, lindex: i32, piwmpmedia: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::insertItem(this, core::mem::transmute_copy(&lindex), windows_core::from_raw_borrowed(&piwmpmedia)).into() } - unsafe extern "system" fn appendItem(this: *mut core::ffi::c_void, piwmpmedia: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn appendItem(this: *mut core::ffi::c_void, piwmpmedia: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::appendItem(this, windows_core::from_raw_borrowed(&piwmpmedia)).into() } - unsafe extern "system" fn removeItem(this: *mut core::ffi::c_void, piwmpmedia: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn removeItem(this: *mut core::ffi::c_void, piwmpmedia: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::removeItem(this, windows_core::from_raw_borrowed(&piwmpmedia)).into() } - unsafe extern "system" fn moveItem(this: *mut core::ffi::c_void, lindexold: i32, lindexnew: i32) -> windows_core::HRESULT - where - Identity: IWMPPlaylist_Impl, - { + unsafe extern "system" fn moveItem(this: *mut core::ffi::c_void, lindexold: i32, lindexnew: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylist_Impl::moveItem(this, core::mem::transmute_copy(&lindexold), core::mem::transmute_copy(&lindexnew)).into() } @@ -7259,21 +5330,12 @@ pub trait IWMPPlaylistArray_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IWMPPlaylistArray {} #[cfg(feature = "Win32_System_Com")] impl IWMPPlaylistArray_Vtbl { - pub const fn new() -> IWMPPlaylistArray_Vtbl - where - Identity: IWMPPlaylistArray_Impl, - { - unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPPlaylistArray_Impl, - { + pub const fn new() -> IWMPPlaylistArray_Vtbl { + unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylistArray_Impl::count(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn item(this: *mut core::ffi::c_void, lindex: i32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylistArray_Impl, - { + unsafe extern "system" fn item(this: *mut core::ffi::c_void, lindex: i32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPPlaylistArray_Impl::item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -7303,14 +5365,8 @@ pub trait IWMPPlaylistCollection_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IWMPPlaylistCollection {} #[cfg(feature = "Win32_System_Com")] impl IWMPPlaylistCollection_Vtbl { - pub const fn new() -> IWMPPlaylistCollection_Vtbl - where - Identity: IWMPPlaylistCollection_Impl, - { - unsafe extern "system" fn newPlaylist(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylistCollection_Impl, - { + pub const fn new() -> IWMPPlaylistCollection_Vtbl { + unsafe extern "system" fn newPlaylist(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPPlaylistCollection_Impl::newPlaylist(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -7320,10 +5376,7 @@ impl IWMPPlaylistCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getAll(this: *mut core::ffi::c_void, ppplaylistarray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylistCollection_Impl, - { + unsafe extern "system" fn getAll(this: *mut core::ffi::c_void, ppplaylistarray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPPlaylistCollection_Impl::getAll(this) { Ok(ok__) => { @@ -7333,10 +5386,7 @@ impl IWMPPlaylistCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppplaylistarray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylistCollection_Impl, - { + unsafe extern "system" fn getByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppplaylistarray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPPlaylistCollection_Impl::getByName(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -7346,31 +5396,19 @@ impl IWMPPlaylistCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn remove(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylistCollection_Impl, - { + unsafe extern "system" fn remove(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylistCollection_Impl::remove(this, windows_core::from_raw_borrowed(&pitem)).into() } - unsafe extern "system" fn setDeleted(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, varfisdeleted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlaylistCollection_Impl, - { + unsafe extern "system" fn setDeleted(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, varfisdeleted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylistCollection_Impl::setDeleted(this, windows_core::from_raw_borrowed(&pitem), core::mem::transmute_copy(&varfisdeleted)).into() } - unsafe extern "system" fn isDeleted(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, pvarfisdeleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPPlaylistCollection_Impl, - { + unsafe extern "system" fn isDeleted(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, pvarfisdeleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlaylistCollection_Impl::isDeleted(this, windows_core::from_raw_borrowed(&pitem), core::mem::transmute_copy(&pvarfisdeleted)).into() } - unsafe extern "system" fn importPlaylist(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, ppimporteditem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlaylistCollection_Impl, - { + unsafe extern "system" fn importPlaylist(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void, ppimporteditem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPPlaylistCollection_Impl::importPlaylist(this, windows_core::from_raw_borrowed(&pitem)) { Ok(ok__) => { @@ -7395,7 +5433,7 @@ impl IWMPPlaylistCollection_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMPPlugin_Impl: Sized { +pub trait IWMPPlugin_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, dwplaybackcontext: usize) -> windows_core::Result<()>; fn Shutdown(&self) -> windows_core::Result<()>; fn GetID(&self, pguid: *mut windows_core::GUID) -> windows_core::Result<()>; @@ -7405,49 +5443,28 @@ pub trait IWMPPlugin_Impl: Sized { } impl windows_core::RuntimeName for IWMPPlugin {} impl IWMPPlugin_Vtbl { - pub const fn new() -> IWMPPlugin_Vtbl - where - Identity: IWMPPlugin_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, dwplaybackcontext: usize) -> windows_core::HRESULT - where - Identity: IWMPPlugin_Impl, - { + pub const fn new() -> IWMPPlugin_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, dwplaybackcontext: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlugin_Impl::Init(this, core::mem::transmute_copy(&dwplaybackcontext)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlugin_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlugin_Impl::Shutdown(this).into() } - unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMPPlugin_Impl, - { + unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlugin_Impl::GetID(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPPlugin_Impl, - { + unsafe extern "system" fn GetCaps(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlugin_Impl::GetCaps(this, core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn AdviseWMPServices(this: *mut core::ffi::c_void, pwmpservices: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlugin_Impl, - { + unsafe extern "system" fn AdviseWMPServices(this: *mut core::ffi::c_void, pwmpservices: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlugin_Impl::AdviseWMPServices(this, windows_core::from_raw_borrowed(&pwmpservices)).into() } - unsafe extern "system" fn UnAdviseWMPServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPlugin_Impl, - { + unsafe extern "system" fn UnAdviseWMPServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPlugin_Impl::UnAdviseWMPServices(this).into() } @@ -7465,27 +5482,18 @@ impl IWMPPlugin_Vtbl { iid == &::IID } } -pub trait IWMPPluginEnable_Impl: Sized { +pub trait IWMPPluginEnable_Impl: Sized + windows_core::IUnknownImpl { fn SetEnable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetEnable(&self, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPPluginEnable {} impl IWMPPluginEnable_Vtbl { - pub const fn new() -> IWMPPluginEnable_Vtbl - where - Identity: IWMPPluginEnable_Impl, - { - unsafe extern "system" fn SetEnable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPPluginEnable_Impl, - { + pub const fn new() -> IWMPPluginEnable_Vtbl { + unsafe extern "system" fn SetEnable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginEnable_Impl::SetEnable(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn GetEnable(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPPluginEnable_Impl, - { + unsafe extern "system" fn GetEnable(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginEnable_Impl::GetEnable(this, core::mem::transmute_copy(&pfenable)).into() } @@ -7500,7 +5508,7 @@ impl IWMPPluginEnable_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IWMPPluginUI_Impl: Sized { +pub trait IWMPPluginUI_Impl: Sized + windows_core::IUnknownImpl { fn SetCore(&self, pcore: Option<&IWMPCore>) -> windows_core::Result<()>; fn Create(&self, hwndparent: super::super::Foundation::HWND, phwndwindow: *mut super::super::Foundation::HWND) -> windows_core::Result<()>; fn Destroy(&self) -> windows_core::Result<()>; @@ -7513,56 +5521,32 @@ pub trait IWMPPluginUI_Impl: Sized { impl windows_core::RuntimeName for IWMPPluginUI {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] impl IWMPPluginUI_Vtbl { - pub const fn new() -> IWMPPluginUI_Vtbl - where - Identity: IWMPPluginUI_Impl, - { - unsafe extern "system" fn SetCore(this: *mut core::ffi::c_void, pcore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPluginUI_Impl, - { + pub const fn new() -> IWMPPluginUI_Vtbl { + unsafe extern "system" fn SetCore(this: *mut core::ffi::c_void, pcore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginUI_Impl::SetCore(this, windows_core::from_raw_borrowed(&pcore)).into() } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, phwndwindow: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IWMPPluginUI_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, phwndwindow: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginUI_Impl::Create(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&phwndwindow)).into() } - unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPPluginUI_Impl, - { + unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginUI_Impl::Destroy(this).into() } - unsafe extern "system" fn DisplayPropertyPage(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IWMPPluginUI_Impl, - { + unsafe extern "system" fn DisplayPropertyPage(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginUI_Impl::DisplayPropertyPage(this, core::mem::transmute_copy(&hwndparent)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pvarproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPluginUI_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pvarproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginUI_Impl::GetProperty(this, core::mem::transmute(&pwszname), core::mem::transmute_copy(&pvarproperty)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pvarproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPPluginUI_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pvarproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginUI_Impl::SetProperty(this, core::mem::transmute(&pwszname), core::mem::transmute_copy(&pvarproperty)).into() } - unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, lpmsg: *mut super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IWMPPluginUI_Impl, - { + unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, lpmsg: *mut super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginUI_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&lpmsg)).into() } @@ -7590,21 +5574,12 @@ pub trait IWMPQuery_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMPQuery {} #[cfg(feature = "Win32_System_Com")] impl IWMPQuery_Vtbl { - pub const fn new() -> IWMPQuery_Vtbl - where - Identity: IWMPQuery_Impl, - { - unsafe extern "system" fn addCondition(this: *mut core::ffi::c_void, bstrattribute: core::mem::MaybeUninit, bstroperator: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPQuery_Impl, - { + pub const fn new() -> IWMPQuery_Vtbl { + unsafe extern "system" fn addCondition(this: *mut core::ffi::c_void, bstrattribute: core::mem::MaybeUninit, bstroperator: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPQuery_Impl::addCondition(this, core::mem::transmute(&bstrattribute), core::mem::transmute(&bstroperator), core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn beginNextGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPQuery_Impl, - { + unsafe extern "system" fn beginNextGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPQuery_Impl::beginNextGroup(this).into() } @@ -7619,7 +5594,7 @@ impl IWMPQuery_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWMPRemoteMediaServices_Impl: Sized { +pub trait IWMPRemoteMediaServices_Impl: Sized + windows_core::IUnknownImpl { 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 Option) -> windows_core::Result<()>; @@ -7629,35 +5604,20 @@ pub trait IWMPRemoteMediaServices_Impl: Sized { impl windows_core::RuntimeName for IWMPRemoteMediaServices {} #[cfg(feature = "Win32_System_Com")] impl IWMPRemoteMediaServices_Vtbl { - pub const fn new() -> IWMPRemoteMediaServices_Vtbl - where - Identity: IWMPRemoteMediaServices_Impl, - { - unsafe extern "system" fn GetServiceType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPRemoteMediaServices_Impl, - { + pub const fn new() -> IWMPRemoteMediaServices_Vtbl { + unsafe extern "system" fn GetServiceType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPRemoteMediaServices_Impl::GetServiceType(this, core::mem::transmute_copy(&pbstrtype)).into() } - unsafe extern "system" fn GetApplicationName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPRemoteMediaServices_Impl, - { + unsafe extern "system" fn GetApplicationName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPRemoteMediaServices_Impl::GetApplicationName(this, core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn GetScriptableObject(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit, ppdispatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPRemoteMediaServices_Impl, - { + unsafe extern "system" fn GetScriptableObject(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit, ppdispatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPRemoteMediaServices_Impl::GetScriptableObject(this, core::mem::transmute_copy(&pbstrname), core::mem::transmute_copy(&ppdispatch)).into() } - unsafe extern "system" fn GetCustomUIMode(this: *mut core::ffi::c_void, pbstrfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPRemoteMediaServices_Impl, - { + unsafe extern "system" fn GetCustomUIMode(this: *mut core::ffi::c_void, pbstrfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPRemoteMediaServices_Impl::GetCustomUIMode(this, core::mem::transmute_copy(&pbstrfile)).into() } @@ -7673,27 +5633,18 @@ impl IWMPRemoteMediaServices_Vtbl { iid == &::IID } } -pub trait IWMPRenderConfig_Impl: Sized { +pub trait IWMPRenderConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetinProcOnly(&self, finproc: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn inProcOnly(&self, pfinproc: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPRenderConfig {} impl IWMPRenderConfig_Vtbl { - pub const fn new() -> IWMPRenderConfig_Vtbl - where - Identity: IWMPRenderConfig_Impl, - { - unsafe extern "system" fn SetinProcOnly(this: *mut core::ffi::c_void, finproc: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPRenderConfig_Impl, - { + pub const fn new() -> IWMPRenderConfig_Vtbl { + unsafe extern "system" fn SetinProcOnly(this: *mut core::ffi::c_void, finproc: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPRenderConfig_Impl::SetinProcOnly(this, core::mem::transmute_copy(&finproc)).into() } - unsafe extern "system" fn inProcOnly(this: *mut core::ffi::c_void, pfinproc: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPRenderConfig_Impl, - { + unsafe extern "system" fn inProcOnly(this: *mut core::ffi::c_void, pfinproc: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPRenderConfig_Impl::inProcOnly(this, core::mem::transmute_copy(&pfinproc)).into() } @@ -7707,27 +5658,18 @@ impl IWMPRenderConfig_Vtbl { iid == &::IID } } -pub trait IWMPServices_Impl: Sized { +pub trait IWMPServices_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamTime(&self, prt: *mut i64) -> windows_core::Result<()>; fn GetStreamState(&self, pstate: *mut WMPServices_StreamState) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPServices {} impl IWMPServices_Vtbl { - pub const fn new() -> IWMPServices_Vtbl - where - Identity: IWMPServices_Impl, - { - unsafe extern "system" fn GetStreamTime(this: *mut core::ffi::c_void, prt: *mut i64) -> windows_core::HRESULT - where - Identity: IWMPServices_Impl, - { + pub const fn new() -> IWMPServices_Vtbl { + unsafe extern "system" fn GetStreamTime(this: *mut core::ffi::c_void, prt: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPServices_Impl::GetStreamTime(this, core::mem::transmute_copy(&prt)).into() } - unsafe extern "system" fn GetStreamState(this: *mut core::ffi::c_void, pstate: *mut WMPServices_StreamState) -> windows_core::HRESULT - where - Identity: IWMPServices_Impl, - { + unsafe extern "system" fn GetStreamState(this: *mut core::ffi::c_void, pstate: *mut WMPServices_StreamState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPServices_Impl::GetStreamState(this, core::mem::transmute_copy(&pstate)).into() } @@ -7771,168 +5713,96 @@ pub trait IWMPSettings_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMPSettings {} #[cfg(feature = "Win32_System_Com")] impl IWMPSettings_Vtbl { - pub const fn new() -> IWMPSettings_Vtbl - where - Identity: IWMPSettings_Impl, - { - unsafe extern "system" fn get_isAvailable(this: *mut core::ffi::c_void, bstritem: core::mem::MaybeUninit, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + pub const fn new() -> IWMPSettings_Vtbl { + unsafe extern "system" fn get_isAvailable(this: *mut core::ffi::c_void, bstritem: core::mem::MaybeUninit, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::get_isAvailable(this, core::mem::transmute(&bstritem), core::mem::transmute_copy(&pisavailable)).into() } - unsafe extern "system" fn autoStart(this: *mut core::ffi::c_void, pfautostart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn autoStart(this: *mut core::ffi::c_void, pfautostart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::autoStart(this, core::mem::transmute_copy(&pfautostart)).into() } - unsafe extern "system" fn SetautoStart(this: *mut core::ffi::c_void, fautostart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn SetautoStart(this: *mut core::ffi::c_void, fautostart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::SetautoStart(this, core::mem::transmute_copy(&fautostart)).into() } - unsafe extern "system" fn baseURL(this: *mut core::ffi::c_void, pbstrbaseurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn baseURL(this: *mut core::ffi::c_void, pbstrbaseurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::baseURL(this, core::mem::transmute_copy(&pbstrbaseurl)).into() } - unsafe extern "system" fn SetbaseURL(this: *mut core::ffi::c_void, bstrbaseurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn SetbaseURL(this: *mut core::ffi::c_void, bstrbaseurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::SetbaseURL(this, core::mem::transmute(&bstrbaseurl)).into() } - unsafe extern "system" fn defaultFrame(this: *mut core::ffi::c_void, pbstrdefaultframe: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn defaultFrame(this: *mut core::ffi::c_void, pbstrdefaultframe: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::defaultFrame(this, core::mem::transmute_copy(&pbstrdefaultframe)).into() } - unsafe extern "system" fn SetdefaultFrame(this: *mut core::ffi::c_void, bstrdefaultframe: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn SetdefaultFrame(this: *mut core::ffi::c_void, bstrdefaultframe: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::SetdefaultFrame(this, core::mem::transmute(&bstrdefaultframe)).into() } - unsafe extern "system" fn invokeURLs(this: *mut core::ffi::c_void, pfinvokeurls: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn invokeURLs(this: *mut core::ffi::c_void, pfinvokeurls: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::invokeURLs(this, core::mem::transmute_copy(&pfinvokeurls)).into() } - unsafe extern "system" fn SetinvokeURLs(this: *mut core::ffi::c_void, finvokeurls: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn SetinvokeURLs(this: *mut core::ffi::c_void, finvokeurls: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::SetinvokeURLs(this, core::mem::transmute_copy(&finvokeurls)).into() } - unsafe extern "system" fn mute(this: *mut core::ffi::c_void, pfmute: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn mute(this: *mut core::ffi::c_void, pfmute: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::mute(this, core::mem::transmute_copy(&pfmute)).into() } - unsafe extern "system" fn Setmute(this: *mut core::ffi::c_void, fmute: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn Setmute(this: *mut core::ffi::c_void, fmute: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::Setmute(this, core::mem::transmute_copy(&fmute)).into() } - unsafe extern "system" fn playCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn playCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::playCount(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn SetplayCount(this: *mut core::ffi::c_void, lcount: i32) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn SetplayCount(this: *mut core::ffi::c_void, lcount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::SetplayCount(this, core::mem::transmute_copy(&lcount)).into() } - unsafe extern "system" fn rate(this: *mut core::ffi::c_void, pdrate: *mut f64) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn rate(this: *mut core::ffi::c_void, pdrate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::rate(this, core::mem::transmute_copy(&pdrate)).into() } - unsafe extern "system" fn Setrate(this: *mut core::ffi::c_void, drate: f64) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn Setrate(this: *mut core::ffi::c_void, drate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::Setrate(this, core::mem::transmute_copy(&drate)).into() } - unsafe extern "system" fn balance(this: *mut core::ffi::c_void, plbalance: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn balance(this: *mut core::ffi::c_void, plbalance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::balance(this, core::mem::transmute_copy(&plbalance)).into() } - unsafe extern "system" fn Setbalance(this: *mut core::ffi::c_void, lbalance: i32) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn Setbalance(this: *mut core::ffi::c_void, lbalance: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::Setbalance(this, core::mem::transmute_copy(&lbalance)).into() } - unsafe extern "system" fn volume(this: *mut core::ffi::c_void, plvolume: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn volume(this: *mut core::ffi::c_void, plvolume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::volume(this, core::mem::transmute_copy(&plvolume)).into() } - unsafe extern "system" fn Setvolume(this: *mut core::ffi::c_void, lvolume: i32) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn Setvolume(this: *mut core::ffi::c_void, lvolume: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::Setvolume(this, core::mem::transmute_copy(&lvolume)).into() } - unsafe extern "system" fn getMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit, pvarfmode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn getMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit, pvarfmode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::getMode(this, core::mem::transmute(&bstrmode), core::mem::transmute_copy(&pvarfmode)).into() } - unsafe extern "system" fn setMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit, varfmode: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn setMode(this: *mut core::ffi::c_void, bstrmode: core::mem::MaybeUninit, varfmode: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::setMode(this, core::mem::transmute(&bstrmode), core::mem::transmute_copy(&varfmode)).into() } - unsafe extern "system" fn enableErrorDialogs(this: *mut core::ffi::c_void, pfenableerrordialogs: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn enableErrorDialogs(this: *mut core::ffi::c_void, pfenableerrordialogs: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::enableErrorDialogs(this, core::mem::transmute_copy(&pfenableerrordialogs)).into() } - unsafe extern "system" fn SetenableErrorDialogs(this: *mut core::ffi::c_void, fenableerrordialogs: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings_Impl, - { + unsafe extern "system" fn SetenableErrorDialogs(this: *mut core::ffi::c_void, fenableerrordialogs: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings_Impl::SetenableErrorDialogs(this, core::mem::transmute_copy(&fenableerrordialogs)).into() } @@ -7977,28 +5847,16 @@ pub trait IWMPSettings2_Impl: Sized + IWMPSettings_Impl { impl windows_core::RuntimeName for IWMPSettings2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPSettings2_Vtbl { - pub const fn new() -> IWMPSettings2_Vtbl - where - Identity: IWMPSettings2_Impl, - { - unsafe extern "system" fn defaultAudioLanguage(this: *mut core::ffi::c_void, pllangid: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPSettings2_Impl, - { + pub const fn new() -> IWMPSettings2_Vtbl { + unsafe extern "system" fn defaultAudioLanguage(this: *mut core::ffi::c_void, pllangid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings2_Impl::defaultAudioLanguage(this, core::mem::transmute_copy(&pllangid)).into() } - unsafe extern "system" fn mediaAccessRights(this: *mut core::ffi::c_void, pbstrrights: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSettings2_Impl, - { + unsafe extern "system" fn mediaAccessRights(this: *mut core::ffi::c_void, pbstrrights: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings2_Impl::mediaAccessRights(this, core::mem::transmute_copy(&pbstrrights)).into() } - unsafe extern "system" fn requestMediaAccessRights(this: *mut core::ffi::c_void, bstrdesiredaccess: core::mem::MaybeUninit, pvbaccepted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSettings2_Impl, - { + unsafe extern "system" fn requestMediaAccessRights(this: *mut core::ffi::c_void, bstrdesiredaccess: core::mem::MaybeUninit, pvbaccepted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSettings2_Impl::requestMediaAccessRights(this, core::mem::transmute(&bstrdesiredaccess), core::mem::transmute_copy(&pvbaccepted)).into() } @@ -8013,19 +5871,13 @@ impl IWMPSettings2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMPSkinManager_Impl: Sized { +pub trait IWMPSkinManager_Impl: Sized + windows_core::IUnknownImpl { fn SetVisualStyle(&self, bstrpath: &windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPSkinManager {} impl IWMPSkinManager_Vtbl { - pub const fn new() -> IWMPSkinManager_Vtbl - where - Identity: IWMPSkinManager_Impl, - { - unsafe extern "system" fn SetVisualStyle(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSkinManager_Impl, - { + pub const fn new() -> IWMPSkinManager_Vtbl { + unsafe extern "system" fn SetVisualStyle(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSkinManager_Impl::SetVisualStyle(this, core::mem::transmute(&bstrpath)).into() } @@ -8044,21 +5896,12 @@ pub trait IWMPStringCollection_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for IWMPStringCollection {} #[cfg(feature = "Win32_System_Com")] impl IWMPStringCollection_Vtbl { - pub const fn new() -> IWMPStringCollection_Vtbl - where - Identity: IWMPStringCollection_Impl, - { - unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPStringCollection_Impl, - { + pub const fn new() -> IWMPStringCollection_Vtbl { + unsafe extern "system" fn count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPStringCollection_Impl::count(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn item(this: *mut core::ffi::c_void, lindex: i32, pbstrstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPStringCollection_Impl, - { + unsafe extern "system" fn item(this: *mut core::ffi::c_void, lindex: i32, pbstrstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPStringCollection_Impl::item(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pbstrstring)).into() } @@ -8079,35 +5922,20 @@ pub trait IWMPStringCollection2_Impl: Sized + IWMPStringCollection_Impl { impl windows_core::RuntimeName for IWMPStringCollection2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPStringCollection2_Vtbl { - pub const fn new() -> IWMPStringCollection2_Vtbl - where - Identity: IWMPStringCollection2_Impl, - { - unsafe extern "system" fn isIdentical(this: *mut core::ffi::c_void, piwmpstringcollection2: *mut core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPStringCollection2_Impl, - { + pub const fn new() -> IWMPStringCollection2_Vtbl { + unsafe extern "system" fn isIdentical(this: *mut core::ffi::c_void, piwmpstringcollection2: *mut core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPStringCollection2_Impl::isIdentical(this, windows_core::from_raw_borrowed(&piwmpstringcollection2), core::mem::transmute_copy(&pvbool)).into() } - unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, lcollectionindex: i32, bstritemname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPStringCollection2_Impl, - { + unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, lcollectionindex: i32, bstritemname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPStringCollection2_Impl::getItemInfo(this, core::mem::transmute_copy(&lcollectionindex), core::mem::transmute(&bstritemname), core::mem::transmute_copy(&pbstrvalue)).into() } - unsafe extern "system" fn getAttributeCountByType(this: *mut core::ffi::c_void, lcollectionindex: i32, bstrtype: core::mem::MaybeUninit, bstrlanguage: core::mem::MaybeUninit, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPStringCollection2_Impl, - { + unsafe extern "system" fn getAttributeCountByType(this: *mut core::ffi::c_void, lcollectionindex: i32, bstrtype: core::mem::MaybeUninit, bstrlanguage: core::mem::MaybeUninit, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPStringCollection2_Impl::getAttributeCountByType(this, core::mem::transmute_copy(&lcollectionindex), core::mem::transmute(&bstrtype), core::mem::transmute(&bstrlanguage), core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getItemInfoByType(this: *mut core::ffi::c_void, lcollectionindex: i32, bstrtype: core::mem::MaybeUninit, bstrlanguage: core::mem::MaybeUninit, lattributeindex: i32, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPStringCollection2_Impl, - { + unsafe extern "system" fn getItemInfoByType(this: *mut core::ffi::c_void, lcollectionindex: i32, bstrtype: core::mem::MaybeUninit, bstrlanguage: core::mem::MaybeUninit, lattributeindex: i32, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPStringCollection2_Impl::getItemInfoByType(this, core::mem::transmute_copy(&lcollectionindex), core::mem::transmute(&bstrtype), core::mem::transmute(&bstrlanguage), core::mem::transmute_copy(&lattributeindex), core::mem::transmute_copy(&pvarvalue)).into() } @@ -8124,7 +5952,7 @@ impl IWMPStringCollection2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWMPSubscriptionService_Impl: Sized { +pub trait IWMPSubscriptionService_Impl: Sized + windows_core::IUnknownImpl { fn allowPlay(&self, hwnd: super::super::Foundation::HWND, pmedia: Option<&IWMPMedia>, pfallowplay: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn allowCDBurn(&self, hwnd: super::super::Foundation::HWND, pplaylist: Option<&IWMPPlaylist>, pfallowburn: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn allowPDATransfer(&self, hwnd: super::super::Foundation::HWND, pplaylist: Option<&IWMPPlaylist>, pfallowtransfer: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -8134,35 +5962,20 @@ pub trait IWMPSubscriptionService_Impl: Sized { impl windows_core::RuntimeName for IWMPSubscriptionService {} #[cfg(feature = "Win32_System_Com")] impl IWMPSubscriptionService_Vtbl { - pub const fn new() -> IWMPSubscriptionService_Vtbl - where - Identity: IWMPSubscriptionService_Impl, - { - unsafe extern "system" fn allowPlay(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pmedia: *mut core::ffi::c_void, pfallowplay: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPSubscriptionService_Impl, - { + pub const fn new() -> IWMPSubscriptionService_Vtbl { + unsafe extern "system" fn allowPlay(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pmedia: *mut core::ffi::c_void, pfallowplay: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService_Impl::allowPlay(this, core::mem::transmute_copy(&hwnd), windows_core::from_raw_borrowed(&pmedia), core::mem::transmute_copy(&pfallowplay)).into() } - unsafe extern "system" fn allowCDBurn(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pplaylist: *mut core::ffi::c_void, pfallowburn: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPSubscriptionService_Impl, - { + unsafe extern "system" fn allowCDBurn(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pplaylist: *mut core::ffi::c_void, pfallowburn: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService_Impl::allowCDBurn(this, core::mem::transmute_copy(&hwnd), windows_core::from_raw_borrowed(&pplaylist), core::mem::transmute_copy(&pfallowburn)).into() } - unsafe extern "system" fn allowPDATransfer(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pplaylist: *mut core::ffi::c_void, pfallowtransfer: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPSubscriptionService_Impl, - { + unsafe extern "system" fn allowPDATransfer(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pplaylist: *mut core::ffi::c_void, pfallowtransfer: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService_Impl::allowPDATransfer(this, core::mem::transmute_copy(&hwnd), windows_core::from_raw_borrowed(&pplaylist), core::mem::transmute_copy(&pfallowtransfer)).into() } - unsafe extern "system" fn startBackgroundProcessing(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IWMPSubscriptionService_Impl, - { + unsafe extern "system" fn startBackgroundProcessing(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService_Impl::startBackgroundProcessing(this, core::mem::transmute_copy(&hwnd)).into() } @@ -8189,35 +6002,20 @@ pub trait IWMPSubscriptionService2_Impl: Sized + IWMPSubscriptionService_Impl { impl windows_core::RuntimeName for IWMPSubscriptionService2 {} #[cfg(feature = "Win32_System_Com")] impl IWMPSubscriptionService2_Vtbl { - pub const fn new() -> IWMPSubscriptionService2_Vtbl - where - Identity: IWMPSubscriptionService2_Impl, - { - unsafe extern "system" fn stopBackgroundProcessing(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPSubscriptionService2_Impl, - { + pub const fn new() -> IWMPSubscriptionService2_Vtbl { + unsafe extern "system" fn stopBackgroundProcessing(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService2_Impl::stopBackgroundProcessing(this).into() } - unsafe extern "system" fn serviceEvent(this: *mut core::ffi::c_void, event: WMPSubscriptionServiceEvent) -> windows_core::HRESULT - where - Identity: IWMPSubscriptionService2_Impl, - { + unsafe extern "system" fn serviceEvent(this: *mut core::ffi::c_void, event: WMPSubscriptionServiceEvent) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService2_Impl::serviceEvent(this, core::mem::transmute_copy(&event)).into() } - unsafe extern "system" fn deviceAvailable(this: *mut core::ffi::c_void, bstrdevicename: core::mem::MaybeUninit, pcb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPSubscriptionService2_Impl, - { + unsafe extern "system" fn deviceAvailable(this: *mut core::ffi::c_void, bstrdevicename: core::mem::MaybeUninit, pcb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService2_Impl::deviceAvailable(this, core::mem::transmute(&bstrdevicename), windows_core::from_raw_borrowed(&pcb)).into() } - unsafe extern "system" fn prepareForSync(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, bstrdevicename: core::mem::MaybeUninit, pcb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPSubscriptionService2_Impl, - { + unsafe extern "system" fn prepareForSync(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, bstrdevicename: core::mem::MaybeUninit, pcb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService2_Impl::prepareForSync(this, core::mem::transmute(&bstrfilename), core::mem::transmute(&bstrdevicename), windows_core::from_raw_borrowed(&pcb)).into() } @@ -8233,19 +6031,13 @@ impl IWMPSubscriptionService2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMPSubscriptionServiceCallback_Impl: Sized { +pub trait IWMPSubscriptionServiceCallback_Impl: Sized + windows_core::IUnknownImpl { fn onComplete(&self, hrresult: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPSubscriptionServiceCallback {} impl IWMPSubscriptionServiceCallback_Vtbl { - pub const fn new() -> IWMPSubscriptionServiceCallback_Vtbl - where - Identity: IWMPSubscriptionServiceCallback_Impl, - { - unsafe extern "system" fn onComplete(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWMPSubscriptionServiceCallback_Impl, - { + pub const fn new() -> IWMPSubscriptionServiceCallback_Vtbl { + unsafe extern "system" fn onComplete(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionServiceCallback_Impl::onComplete(this, core::mem::transmute_copy(&hrresult)).into() } @@ -8255,7 +6047,7 @@ impl IWMPSubscriptionServiceCallback_Vtbl { iid == &::IID } } -pub trait IWMPSyncDevice_Impl: Sized { +pub trait IWMPSyncDevice_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -8275,119 +6067,68 @@ pub trait IWMPSyncDevice_Impl: Sized { } impl windows_core::RuntimeName for IWMPSyncDevice {} impl IWMPSyncDevice_Vtbl { - pub const fn new() -> IWMPSyncDevice_Vtbl - where - Identity: IWMPSyncDevice_Impl, - { - unsafe extern "system" fn friendlyName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + pub const fn new() -> IWMPSyncDevice_Vtbl { + unsafe extern "system" fn friendlyName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::friendlyName(this, core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn SetfriendlyName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn SetfriendlyName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::SetfriendlyName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn deviceName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn deviceName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::deviceName(this, core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn deviceId(this: *mut core::ffi::c_void, pbstrdeviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn deviceId(this: *mut core::ffi::c_void, pbstrdeviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::deviceId(this, core::mem::transmute_copy(&pbstrdeviceid)).into() } - unsafe extern "system" fn partnershipIndex(this: *mut core::ffi::c_void, plindex: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn partnershipIndex(this: *mut core::ffi::c_void, plindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::partnershipIndex(this, core::mem::transmute_copy(&plindex)).into() } - unsafe extern "system" fn connected(this: *mut core::ffi::c_void, pvbconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn connected(this: *mut core::ffi::c_void, pvbconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::connected(this, core::mem::transmute_copy(&pvbconnected)).into() } - unsafe extern "system" fn status(this: *mut core::ffi::c_void, pwmpds: *mut WMPDeviceStatus) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn status(this: *mut core::ffi::c_void, pwmpds: *mut WMPDeviceStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::status(this, core::mem::transmute_copy(&pwmpds)).into() } - unsafe extern "system" fn syncState(this: *mut core::ffi::c_void, pwmpss: *mut WMPSyncState) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn syncState(this: *mut core::ffi::c_void, pwmpss: *mut WMPSyncState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::syncState(this, core::mem::transmute_copy(&pwmpss)).into() } - unsafe extern "system" fn progress(this: *mut core::ffi::c_void, plprogress: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn progress(this: *mut core::ffi::c_void, plprogress: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::progress(this, core::mem::transmute_copy(&plprogress)).into() } - unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn getItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::getItemInfo(this, core::mem::transmute(&bstritemname), core::mem::transmute_copy(&pbstrval)).into() } - unsafe extern "system" fn createPartnership(this: *mut core::ffi::c_void, vbshowui: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn createPartnership(this: *mut core::ffi::c_void, vbshowui: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::createPartnership(this, core::mem::transmute_copy(&vbshowui)).into() } - unsafe extern "system" fn deletePartnership(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn deletePartnership(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::deletePartnership(this).into() } - unsafe extern "system" fn start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::start(this).into() } - unsafe extern "system" fn stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::stop(this).into() } - unsafe extern "system" fn showSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn showSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::showSettings(this).into() } - unsafe extern "system" fn isIdentical(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice_Impl, - { + unsafe extern "system" fn isIdentical(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice_Impl::isIdentical(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&pvbool)).into() } @@ -8420,14 +6161,8 @@ pub trait IWMPSyncDevice2_Impl: Sized + IWMPSyncDevice_Impl { } impl windows_core::RuntimeName for IWMPSyncDevice2 {} impl IWMPSyncDevice2_Vtbl { - pub const fn new() -> IWMPSyncDevice2_Vtbl - where - Identity: IWMPSyncDevice2_Impl, - { - unsafe extern "system" fn setItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice2_Impl, - { + pub const fn new() -> IWMPSyncDevice2_Vtbl { + unsafe extern "system" fn setItemInfo(this: *mut core::ffi::c_void, bstritemname: core::mem::MaybeUninit, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice2_Impl::setItemInfo(this, core::mem::transmute(&bstritemname), core::mem::transmute(&bstrval)).into() } @@ -8446,21 +6181,12 @@ pub trait IWMPSyncDevice3_Impl: Sized + IWMPSyncDevice2_Impl { impl windows_core::RuntimeName for IWMPSyncDevice3 {} #[cfg(feature = "Win32_System_Com")] impl IWMPSyncDevice3_Vtbl { - pub const fn new() -> IWMPSyncDevice3_Vtbl - where - Identity: IWMPSyncDevice3_Impl, - { - unsafe extern "system" fn estimateSyncSize(this: *mut core::ffi::c_void, pnonruleplaylist: *mut core::ffi::c_void, prulesplaylist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice3_Impl, - { + pub const fn new() -> IWMPSyncDevice3_Vtbl { + unsafe extern "system" fn estimateSyncSize(this: *mut core::ffi::c_void, pnonruleplaylist: *mut core::ffi::c_void, prulesplaylist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice3_Impl::estimateSyncSize(this, windows_core::from_raw_borrowed(&pnonruleplaylist), windows_core::from_raw_borrowed(&prulesplaylist)).into() } - unsafe extern "system" fn cancelEstimation(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPSyncDevice3_Impl, - { + unsafe extern "system" fn cancelEstimation(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncDevice3_Impl::cancelEstimation(this).into() } @@ -8474,27 +6200,18 @@ impl IWMPSyncDevice3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMPSyncServices_Impl: Sized { +pub trait IWMPSyncServices_Impl: Sized + windows_core::IUnknownImpl { fn deviceCount(&self, plcount: *mut i32) -> windows_core::Result<()>; fn getDevice(&self, lindex: i32) -> windows_core::Result; } impl windows_core::RuntimeName for IWMPSyncServices {} impl IWMPSyncServices_Vtbl { - pub const fn new() -> IWMPSyncServices_Vtbl - where - Identity: IWMPSyncServices_Impl, - { - unsafe extern "system" fn deviceCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IWMPSyncServices_Impl, - { + pub const fn new() -> IWMPSyncServices_Vtbl { + unsafe extern "system" fn deviceCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSyncServices_Impl::deviceCount(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getDevice(this: *mut core::ffi::c_void, lindex: i32, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPSyncServices_Impl, - { + unsafe extern "system" fn getDevice(this: *mut core::ffi::c_void, lindex: i32, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPSyncServices_Impl::getDevice(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -8514,19 +6231,13 @@ impl IWMPSyncServices_Vtbl { iid == &::IID } } -pub trait IWMPTranscodePolicy_Impl: Sized { +pub trait IWMPTranscodePolicy_Impl: Sized + windows_core::IUnknownImpl { fn allowTranscode(&self, pvballow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPTranscodePolicy {} impl IWMPTranscodePolicy_Vtbl { - pub const fn new() -> IWMPTranscodePolicy_Vtbl - where - Identity: IWMPTranscodePolicy_Impl, - { - unsafe extern "system" fn allowTranscode(this: *mut core::ffi::c_void, pvballow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWMPTranscodePolicy_Impl, - { + pub const fn new() -> IWMPTranscodePolicy_Vtbl { + unsafe extern "system" fn allowTranscode(this: *mut core::ffi::c_void, pvballow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPTranscodePolicy_Impl::allowTranscode(this, core::mem::transmute_copy(&pvballow)).into() } @@ -8536,19 +6247,13 @@ impl IWMPTranscodePolicy_Vtbl { iid == &::IID } } -pub trait IWMPUserEventSink_Impl: Sized { +pub trait IWMPUserEventSink_Impl: Sized + windows_core::IUnknownImpl { fn NotifyUserEvent(&self, eventcode: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPUserEventSink {} impl IWMPUserEventSink_Vtbl { - pub const fn new() -> IWMPUserEventSink_Vtbl - where - Identity: IWMPUserEventSink_Impl, - { - unsafe extern "system" fn NotifyUserEvent(this: *mut core::ffi::c_void, eventcode: i32) -> windows_core::HRESULT - where - Identity: IWMPUserEventSink_Impl, - { + pub const fn new() -> IWMPUserEventSink_Vtbl { + unsafe extern "system" fn NotifyUserEvent(this: *mut core::ffi::c_void, eventcode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPUserEventSink_Impl::NotifyUserEvent(this, core::mem::transmute_copy(&eventcode)).into() } @@ -8559,21 +6264,15 @@ impl IWMPUserEventSink_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IWMPVideoRenderConfig_Impl: Sized { +pub trait IWMPVideoRenderConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetpresenterActivate(&self, pactivate: Option<&super::MediaFoundation::IMFActivate>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Media_MediaFoundation")] impl windows_core::RuntimeName for IWMPVideoRenderConfig {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IWMPVideoRenderConfig_Vtbl { - pub const fn new() -> IWMPVideoRenderConfig_Vtbl - where - Identity: IWMPVideoRenderConfig_Impl, - { - unsafe extern "system" fn SetpresenterActivate(this: *mut core::ffi::c_void, pactivate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPVideoRenderConfig_Impl, - { + pub const fn new() -> IWMPVideoRenderConfig_Vtbl { + unsafe extern "system" fn SetpresenterActivate(this: *mut core::ffi::c_void, pactivate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPVideoRenderConfig_Impl::SetpresenterActivate(this, windows_core::from_raw_borrowed(&pactivate)).into() } @@ -8583,19 +6282,13 @@ impl IWMPVideoRenderConfig_Vtbl { iid == &::IID } } -pub trait IWMPWindowMessageSink_Impl: Sized { +pub trait IWMPWindowMessageSink_Impl: Sized + windows_core::IUnknownImpl { fn OnWindowMessage(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPWindowMessageSink {} impl IWMPWindowMessageSink_Vtbl { - pub const fn new() -> IWMPWindowMessageSink_Vtbl - where - Identity: IWMPWindowMessageSink_Impl, - { - unsafe extern "system" fn OnWindowMessage(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMPWindowMessageSink_Impl, - { + pub const fn new() -> IWMPWindowMessageSink_Vtbl { + unsafe extern "system" fn OnWindowMessage(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPWindowMessageSink_Impl::OnWindowMessage(this, core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&plret), core::mem::transmute_copy(&pfhandled)).into() } @@ -8606,7 +6299,7 @@ impl IWMPWindowMessageSink_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IXFeed_Impl: Sized { +pub trait IXFeed_Impl: Sized + windows_core::IUnknownImpl { fn Xml(&self, uiitemcount: u32, 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, pszname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -8656,14 +6349,8 @@ pub trait IXFeed_Impl: Sized { impl windows_core::RuntimeName for IXFeed {} #[cfg(feature = "Win32_System_Com")] impl IXFeed_Vtbl { - pub const fn new() -> IXFeed_Vtbl - where - Identity: IXFeed_Impl, - { - unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, uiitemcount: u32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS, pps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + pub const fn new() -> IXFeed_Vtbl { + unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, uiitemcount: u32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS, pps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Xml(this, core::mem::transmute_copy(&uiitemcount), core::mem::transmute_copy(&sortproperty), core::mem::transmute_copy(&sortorder), core::mem::transmute_copy(&filterflags), core::mem::transmute_copy(&includeflags)) { Ok(ok__) => { @@ -8673,10 +6360,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Name(this) { Ok(ok__) => { @@ -8686,17 +6370,11 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::Rename(this, core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn Url(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Url(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Url(this) { Ok(ok__) => { @@ -8706,17 +6384,11 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUrl(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn SetUrl(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::SetUrl(this, core::mem::transmute(&pszurl)).into() } - unsafe extern "system" fn LocalId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn LocalId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::LocalId(this) { Ok(ok__) => { @@ -8726,10 +6398,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Path(this) { Ok(ok__) => { @@ -8739,24 +6408,15 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::Move(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::Parent(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn LastWriteTime(this: *mut core::ffi::c_void, pstlastwritetime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn LastWriteTime(this: *mut core::ffi::c_void, pstlastwritetime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::LastWriteTime(this) { Ok(ok__) => { @@ -8766,38 +6426,23 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::Delete(this).into() } - unsafe extern "system" fn Download(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Download(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::Download(this).into() } - unsafe extern "system" fn AsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn AsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::AsyncDownload(this).into() } - unsafe extern "system" fn CancelAsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn CancelAsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::CancelAsyncDownload(this).into() } - unsafe extern "system" fn SyncSetting(this: *mut core::ffi::c_void, pfss: *mut FEEDS_SYNC_SETTING) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn SyncSetting(this: *mut core::ffi::c_void, pfss: *mut FEEDS_SYNC_SETTING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::SyncSetting(this) { Ok(ok__) => { @@ -8807,17 +6452,11 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSyncSetting(this: *mut core::ffi::c_void, fss: FEEDS_SYNC_SETTING) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn SetSyncSetting(this: *mut core::ffi::c_void, fss: FEEDS_SYNC_SETTING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::SetSyncSetting(this, core::mem::transmute_copy(&fss)).into() } - unsafe extern "system" fn Interval(this: *mut core::ffi::c_void, puiinterval: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Interval(this: *mut core::ffi::c_void, puiinterval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Interval(this) { Ok(ok__) => { @@ -8827,17 +6466,11 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterval(this: *mut core::ffi::c_void, uiinterval: u32) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn SetInterval(this: *mut core::ffi::c_void, uiinterval: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::SetInterval(this, core::mem::transmute_copy(&uiinterval)).into() } - unsafe extern "system" fn LastDownloadTime(this: *mut core::ffi::c_void, pstlastdownloadtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn LastDownloadTime(this: *mut core::ffi::c_void, pstlastdownloadtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::LastDownloadTime(this) { Ok(ok__) => { @@ -8847,10 +6480,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalEnclosurePath(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn LocalEnclosurePath(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::LocalEnclosurePath(this) { Ok(ok__) => { @@ -8860,10 +6490,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Items(this: *mut core::ffi::c_void, ppfe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Items(this: *mut core::ffi::c_void, ppfe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Items(this) { Ok(ok__) => { @@ -8873,24 +6500,15 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, uiid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, uiid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::GetItem(this, core::mem::transmute_copy(&uiid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn MarkAllItemsRead(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn MarkAllItemsRead(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::MarkAllItemsRead(this).into() } - unsafe extern "system" fn MaxItemCount(this: *mut core::ffi::c_void, puimaxitemcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn MaxItemCount(this: *mut core::ffi::c_void, puimaxitemcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::MaxItemCount(this) { Ok(ok__) => { @@ -8900,17 +6518,11 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxItemCount(this: *mut core::ffi::c_void, uimaxitemcount: u32) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn SetMaxItemCount(this: *mut core::ffi::c_void, uimaxitemcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::SetMaxItemCount(this, core::mem::transmute_copy(&uimaxitemcount)).into() } - unsafe extern "system" fn DownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, pbdownloadenclosuresautomatically: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn DownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, pbdownloadenclosuresautomatically: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::DownloadEnclosuresAutomatically(this) { Ok(ok__) => { @@ -8920,17 +6532,11 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, bdownloadenclosuresautomatically: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn SetDownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, bdownloadenclosuresautomatically: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::SetDownloadEnclosuresAutomatically(this, core::mem::transmute_copy(&bdownloadenclosuresautomatically)).into() } - unsafe extern "system" fn DownloadStatus(this: *mut core::ffi::c_void, pfds: *mut FEEDS_DOWNLOAD_STATUS) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn DownloadStatus(this: *mut core::ffi::c_void, pfds: *mut FEEDS_DOWNLOAD_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::DownloadStatus(this) { Ok(ok__) => { @@ -8940,10 +6546,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastDownloadError(this: *mut core::ffi::c_void, pfde: *mut FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn LastDownloadError(this: *mut core::ffi::c_void, pfde: *mut FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::LastDownloadError(this) { Ok(ok__) => { @@ -8953,17 +6556,11 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::Merge(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute(&pszurl)).into() } - unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::DownloadUrl(this) { Ok(ok__) => { @@ -8973,10 +6570,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, ppsztitle: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, ppsztitle: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Title(this) { Ok(ok__) => { @@ -8986,10 +6580,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Description(this) { Ok(ok__) => { @@ -8999,10 +6590,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Link(this: *mut core::ffi::c_void, ppszhomepage: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Link(this: *mut core::ffi::c_void, ppszhomepage: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Link(this) { Ok(ok__) => { @@ -9012,10 +6600,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Image(this: *mut core::ffi::c_void, ppszimageurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Image(this: *mut core::ffi::c_void, ppszimageurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Image(this) { Ok(ok__) => { @@ -9025,10 +6610,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastBuildDate(this: *mut core::ffi::c_void, pstlastbuilddate: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn LastBuildDate(this: *mut core::ffi::c_void, pstlastbuilddate: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::LastBuildDate(this) { Ok(ok__) => { @@ -9038,10 +6620,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PubDate(this: *mut core::ffi::c_void, pstpubdate: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn PubDate(this: *mut core::ffi::c_void, pstpubdate: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::PubDate(this) { Ok(ok__) => { @@ -9051,10 +6630,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Ttl(this: *mut core::ffi::c_void, puittl: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Ttl(this: *mut core::ffi::c_void, puittl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Ttl(this) { Ok(ok__) => { @@ -9064,10 +6640,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Language(this: *mut core::ffi::c_void, ppszlanguage: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Language(this: *mut core::ffi::c_void, ppszlanguage: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Language(this) { Ok(ok__) => { @@ -9077,10 +6650,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Copyright(this: *mut core::ffi::c_void, ppszcopyright: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn Copyright(this: *mut core::ffi::c_void, ppszcopyright: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::Copyright(this) { Ok(ok__) => { @@ -9090,10 +6660,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsList(this: *mut core::ffi::c_void, pbislist: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn IsList(this: *mut core::ffi::c_void, pbislist: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::IsList(this) { Ok(ok__) => { @@ -9103,17 +6670,11 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWatcher(this: *mut core::ffi::c_void, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn GetWatcher(this: *mut core::ffi::c_void, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::GetWatcher(this, core::mem::transmute_copy(&scope), core::mem::transmute_copy(&mask), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn UnreadItemCount(this: *mut core::ffi::c_void, puiunreaditemcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn UnreadItemCount(this: *mut core::ffi::c_void, puiunreaditemcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::UnreadItemCount(this) { Ok(ok__) => { @@ -9123,10 +6684,7 @@ impl IXFeed_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ItemCount(this: *mut core::ffi::c_void, puiitemcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeed_Impl, - { + unsafe extern "system" fn ItemCount(this: *mut core::ffi::c_void, puiitemcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::ItemCount(this) { Ok(ok__) => { @@ -9201,21 +6759,12 @@ pub trait IXFeed2_Impl: Sized + IXFeed_Impl { impl windows_core::RuntimeName for IXFeed2 {} #[cfg(feature = "Win32_System_Com")] impl IXFeed2_Vtbl { - pub const fn new() -> IXFeed2_Vtbl - where - Identity: IXFeed2_Impl, - { - unsafe extern "system" fn GetItemByEffectiveId(this: *mut core::ffi::c_void, uieffectiveid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed2_Impl, - { + pub const fn new() -> IXFeed2_Vtbl { + unsafe extern "system" fn GetItemByEffectiveId(this: *mut core::ffi::c_void, uieffectiveid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed2_Impl::GetItemByEffectiveId(this, core::mem::transmute_copy(&uieffectiveid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn LastItemDownloadTime(this: *mut core::ffi::c_void, pstlastitemdownloadtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXFeed2_Impl, - { + unsafe extern "system" fn LastItemDownloadTime(this: *mut core::ffi::c_void, pstlastitemdownloadtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed2_Impl::LastItemDownloadTime(this) { Ok(ok__) => { @@ -9225,10 +6774,7 @@ impl IXFeed2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Username(this: *mut core::ffi::c_void, ppszusername: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed2_Impl, - { + unsafe extern "system" fn Username(this: *mut core::ffi::c_void, ppszusername: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed2_Impl::Username(this) { Ok(ok__) => { @@ -9238,10 +6784,7 @@ impl IXFeed2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Password(this: *mut core::ffi::c_void, ppszpassword: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeed2_Impl, - { + unsafe extern "system" fn Password(this: *mut core::ffi::c_void, ppszpassword: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed2_Impl::Password(this) { Ok(ok__) => { @@ -9251,17 +6794,11 @@ impl IXFeed2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeed2_Impl, - { + unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed2_Impl::SetCredentials(this, core::mem::transmute(&pszusername), core::mem::transmute(&pszpassword)).into() } - unsafe extern "system" fn ClearCredentials(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeed2_Impl, - { + unsafe extern "system" fn ClearCredentials(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed2_Impl::ClearCredentials(this).into() } @@ -9279,7 +6816,7 @@ impl IXFeed2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IXFeedEnclosure_Impl: Sized { +pub trait IXFeedEnclosure_Impl: Sized + windows_core::IUnknownImpl { fn Url(&self) -> windows_core::Result; fn Type(&self) -> windows_core::Result; fn Length(&self) -> windows_core::Result; @@ -9296,14 +6833,8 @@ pub trait IXFeedEnclosure_Impl: Sized { } impl windows_core::RuntimeName for IXFeedEnclosure {} impl IXFeedEnclosure_Vtbl { - pub const fn new() -> IXFeedEnclosure_Vtbl - where - Identity: IXFeedEnclosure_Impl, - { - unsafe extern "system" fn Url(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + pub const fn new() -> IXFeedEnclosure_Vtbl { + unsafe extern "system" fn Url(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedEnclosure_Impl::Url(this) { Ok(ok__) => { @@ -9313,10 +6844,7 @@ impl IXFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ppszmimetype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ppszmimetype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedEnclosure_Impl::Type(this) { Ok(ok__) => { @@ -9326,10 +6854,7 @@ impl IXFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, puilength: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, puilength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedEnclosure_Impl::Length(this) { Ok(ok__) => { @@ -9339,24 +6864,15 @@ impl IXFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn AsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEnclosure_Impl::AsyncDownload(this).into() } - unsafe extern "system" fn CancelAsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn CancelAsyncDownload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEnclosure_Impl::CancelAsyncDownload(this).into() } - unsafe extern "system" fn DownloadStatus(this: *mut core::ffi::c_void, pfds: *mut FEEDS_DOWNLOAD_STATUS) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn DownloadStatus(this: *mut core::ffi::c_void, pfds: *mut FEEDS_DOWNLOAD_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedEnclosure_Impl::DownloadStatus(this) { Ok(ok__) => { @@ -9366,10 +6882,7 @@ impl IXFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastDownloadError(this: *mut core::ffi::c_void, pfde: *mut FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn LastDownloadError(this: *mut core::ffi::c_void, pfde: *mut FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedEnclosure_Impl::LastDownloadError(this) { Ok(ok__) => { @@ -9379,10 +6892,7 @@ impl IXFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalPath(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn LocalPath(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedEnclosure_Impl::LocalPath(this) { Ok(ok__) => { @@ -9392,17 +6902,11 @@ impl IXFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEnclosure_Impl::Parent(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedEnclosure_Impl::DownloadUrl(this) { Ok(ok__) => { @@ -9412,10 +6916,7 @@ impl IXFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DownloadMimeType(this: *mut core::ffi::c_void, ppszmimetype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn DownloadMimeType(this: *mut core::ffi::c_void, ppszmimetype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedEnclosure_Impl::DownloadMimeType(this) { Ok(ok__) => { @@ -9425,17 +6926,11 @@ impl IXFeedEnclosure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn RemoveFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEnclosure_Impl::RemoveFile(this).into() } - unsafe extern "system" fn SetFile(this: *mut core::ffi::c_void, pszdownloadurl: windows_core::PCWSTR, pszdownloadfilepath: windows_core::PCWSTR, pszdownloadmimetype: windows_core::PCWSTR, pszenclosurefilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEnclosure_Impl, - { + unsafe extern "system" fn SetFile(this: *mut core::ffi::c_void, pszdownloadurl: windows_core::PCWSTR, pszdownloadfilepath: windows_core::PCWSTR, pszdownloadmimetype: windows_core::PCWSTR, pszenclosurefilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEnclosure_Impl::SetFile(this, core::mem::transmute(&pszdownloadurl), core::mem::transmute(&pszdownloadfilepath), core::mem::transmute(&pszdownloadmimetype), core::mem::transmute(&pszenclosurefilename)).into() } @@ -9460,7 +6955,7 @@ impl IXFeedEnclosure_Vtbl { iid == &::IID } } -pub trait IXFeedEvents_Impl: Sized { +pub trait IXFeedEvents_Impl: Sized + windows_core::IUnknownImpl { fn Error(&self) -> windows_core::Result<()>; fn FeedDeleted(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn FeedRenamed(&self, pszpath: &windows_core::PCWSTR, pszoldpath: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -9472,63 +6967,36 @@ pub trait IXFeedEvents_Impl: Sized { } impl windows_core::RuntimeName for IXFeedEvents {} impl IXFeedEvents_Vtbl { - pub const fn new() -> IXFeedEvents_Vtbl - where - Identity: IXFeedEvents_Impl, - { - unsafe extern "system" fn Error(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedEvents_Impl, - { + pub const fn new() -> IXFeedEvents_Vtbl { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEvents_Impl::Error(this).into() } - unsafe extern "system" fn FeedDeleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEvents_Impl, - { + unsafe extern "system" fn FeedDeleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEvents_Impl::FeedDeleted(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn FeedRenamed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEvents_Impl, - { + unsafe extern "system" fn FeedRenamed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEvents_Impl::FeedRenamed(this, core::mem::transmute(&pszpath), core::mem::transmute(&pszoldpath)).into() } - unsafe extern "system" fn FeedUrlChanged(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEvents_Impl, - { + unsafe extern "system" fn FeedUrlChanged(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEvents_Impl::FeedUrlChanged(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn FeedMoved(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEvents_Impl, - { + unsafe extern "system" fn FeedMoved(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEvents_Impl::FeedMoved(this, core::mem::transmute(&pszpath), core::mem::transmute(&pszoldpath)).into() } - unsafe extern "system" fn FeedDownloading(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedEvents_Impl, - { + unsafe extern "system" fn FeedDownloading(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEvents_Impl::FeedDownloading(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn FeedDownloadCompleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, fde: FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT - where - Identity: IXFeedEvents_Impl, - { + unsafe extern "system" fn FeedDownloadCompleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, fde: FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEvents_Impl::FeedDownloadCompleted(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&fde)).into() } - unsafe extern "system" fn FeedItemCountChanged(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, feicfflags: i32) -> windows_core::HRESULT - where - Identity: IXFeedEvents_Impl, - { + unsafe extern "system" fn FeedItemCountChanged(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, feicfflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedEvents_Impl::FeedItemCountChanged(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&feicfflags)).into() } @@ -9548,7 +7016,7 @@ impl IXFeedEvents_Vtbl { iid == &::IID } } -pub trait IXFeedFolder_Impl: Sized { +pub trait IXFeedFolder_Impl: Sized + windows_core::IUnknownImpl { fn Feeds(&self) -> windows_core::Result; fn Subfolders(&self) -> windows_core::Result; fn CreateFeed(&self, pszname: &windows_core::PCWSTR, pszurl: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -9570,14 +7038,8 @@ pub trait IXFeedFolder_Impl: Sized { } impl windows_core::RuntimeName for IXFeedFolder {} impl IXFeedFolder_Vtbl { - pub const fn new() -> IXFeedFolder_Vtbl - where - Identity: IXFeedFolder_Impl, - { - unsafe extern "system" fn Feeds(this: *mut core::ffi::c_void, ppfe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + pub const fn new() -> IXFeedFolder_Vtbl { + unsafe extern "system" fn Feeds(this: *mut core::ffi::c_void, ppfe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedFolder_Impl::Feeds(this) { Ok(ok__) => { @@ -9587,10 +7049,7 @@ impl IXFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Subfolders(this: *mut core::ffi::c_void, ppfe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn Subfolders(this: *mut core::ffi::c_void, ppfe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedFolder_Impl::Subfolders(this) { Ok(ok__) => { @@ -9600,59 +7059,35 @@ impl IXFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFeed(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pszurl: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn CreateFeed(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pszurl: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::CreateFeed(this, core::mem::transmute(&pszname), core::mem::transmute(&pszurl), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateSubfolder(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn CreateSubfolder(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::CreateSubfolder(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pbfeedexists: *const super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pbfeedexists: *const super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::ExistsFeed(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&pbfeedexists)).into() } - unsafe extern "system" fn ExistsSubfolder(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pbsubfolderexists: *const super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn ExistsSubfolder(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pbsubfolderexists: *const super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::ExistsSubfolder(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&pbsubfolderexists)).into() } - unsafe extern "system" fn GetFeed(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn GetFeed(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::GetFeed(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetSubfolder(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn GetSubfolder(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::GetSubfolder(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::Delete(this).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedFolder_Impl::Name(this) { Ok(ok__) => { @@ -9662,17 +7097,11 @@ impl IXFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::Rename(this, core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedFolder_Impl::Path(this) { Ok(ok__) => { @@ -9682,24 +7111,15 @@ impl IXFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::Move(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::Parent(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn IsRoot(this: *mut core::ffi::c_void, pbisrootfeedfolder: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn IsRoot(this: *mut core::ffi::c_void, pbisrootfeedfolder: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedFolder_Impl::IsRoot(this) { Ok(ok__) => { @@ -9709,17 +7129,11 @@ impl IXFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWatcher(this: *mut core::ffi::c_void, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn GetWatcher(this: *mut core::ffi::c_void, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::GetWatcher(this, core::mem::transmute_copy(&scope), core::mem::transmute_copy(&mask), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn TotalUnreadItemCount(this: *mut core::ffi::c_void, puitotalunreaditemcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn TotalUnreadItemCount(this: *mut core::ffi::c_void, puitotalunreaditemcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedFolder_Impl::TotalUnreadItemCount(this) { Ok(ok__) => { @@ -9729,10 +7143,7 @@ impl IXFeedFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalItemCount(this: *mut core::ffi::c_void, puitotalitemcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeedFolder_Impl, - { + unsafe extern "system" fn TotalItemCount(this: *mut core::ffi::c_void, puitotalitemcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedFolder_Impl::TotalItemCount(this) { Ok(ok__) => { @@ -9768,7 +7179,7 @@ impl IXFeedFolder_Vtbl { iid == &::IID } } -pub trait IXFeedFolderEvents_Impl: Sized { +pub trait IXFeedFolderEvents_Impl: Sized + windows_core::IUnknownImpl { fn Error(&self) -> windows_core::Result<()>; fn FolderAdded(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn FolderDeleted(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -9788,119 +7199,68 @@ pub trait IXFeedFolderEvents_Impl: Sized { } impl windows_core::RuntimeName for IXFeedFolderEvents {} impl IXFeedFolderEvents_Vtbl { - pub const fn new() -> IXFeedFolderEvents_Vtbl - where - Identity: IXFeedFolderEvents_Impl, - { - unsafe extern "system" fn Error(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + pub const fn new() -> IXFeedFolderEvents_Vtbl { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::Error(this).into() } - unsafe extern "system" fn FolderAdded(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderAdded(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FolderAdded(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn FolderDeleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderDeleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FolderDeleted(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn FolderRenamed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderRenamed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FolderRenamed(this, core::mem::transmute(&pszpath), core::mem::transmute(&pszoldpath)).into() } - unsafe extern "system" fn FolderMovedFrom(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderMovedFrom(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FolderMovedFrom(this, core::mem::transmute(&pszpath), core::mem::transmute(&pszoldpath)).into() } - unsafe extern "system" fn FolderMovedTo(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderMovedTo(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FolderMovedTo(this, core::mem::transmute(&pszpath), core::mem::transmute(&pszoldpath)).into() } - unsafe extern "system" fn FolderItemCountChanged(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, feicfflags: i32) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FolderItemCountChanged(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, feicfflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FolderItemCountChanged(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&feicfflags)).into() } - unsafe extern "system" fn FeedAdded(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedAdded(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FeedAdded(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn FeedDeleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedDeleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FeedDeleted(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn FeedRenamed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedRenamed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FeedRenamed(this, core::mem::transmute(&pszpath), core::mem::transmute(&pszoldpath)).into() } - unsafe extern "system" fn FeedUrlChanged(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedUrlChanged(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FeedUrlChanged(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn FeedMovedFrom(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedMovedFrom(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FeedMovedFrom(this, core::mem::transmute(&pszpath), core::mem::transmute(&pszoldpath)).into() } - unsafe extern "system" fn FeedMovedTo(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedMovedTo(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pszoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FeedMovedTo(this, core::mem::transmute(&pszpath), core::mem::transmute(&pszoldpath)).into() } - unsafe extern "system" fn FeedDownloading(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedDownloading(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FeedDownloading(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn FeedDownloadCompleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, fde: FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedDownloadCompleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, fde: FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FeedDownloadCompleted(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&fde)).into() } - unsafe extern "system" fn FeedItemCountChanged(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, feicfflags: i32) -> windows_core::HRESULT - where - Identity: IXFeedFolderEvents_Impl, - { + unsafe extern "system" fn FeedItemCountChanged(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, feicfflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolderEvents_Impl::FeedItemCountChanged(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&feicfflags)).into() } @@ -9929,7 +7289,7 @@ impl IXFeedFolderEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IXFeedItem_Impl: Sized { +pub trait IXFeedItem_Impl: Sized + windows_core::IUnknownImpl { fn Xml(&self, fxif: FEEDS_XML_INCLUDE_FLAGS) -> windows_core::Result; fn Title(&self) -> windows_core::Result; fn Link(&self) -> windows_core::Result; @@ -9952,14 +7312,8 @@ pub trait IXFeedItem_Impl: Sized { impl windows_core::RuntimeName for IXFeedItem {} #[cfg(feature = "Win32_System_Com")] impl IXFeedItem_Vtbl { - pub const fn new() -> IXFeedItem_Vtbl - where - Identity: IXFeedItem_Impl, - { - unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, fxif: FEEDS_XML_INCLUDE_FLAGS, pps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + pub const fn new() -> IXFeedItem_Vtbl { + unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, fxif: FEEDS_XML_INCLUDE_FLAGS, pps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::Xml(this, core::mem::transmute_copy(&fxif)) { Ok(ok__) => { @@ -9969,10 +7323,7 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, ppsztitle: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, ppsztitle: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::Title(this) { Ok(ok__) => { @@ -9982,10 +7333,7 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Link(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn Link(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::Link(this) { Ok(ok__) => { @@ -9995,10 +7343,7 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, ppszguid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, ppszguid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::Guid(this) { Ok(ok__) => { @@ -10008,10 +7353,7 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::Description(this) { Ok(ok__) => { @@ -10021,10 +7363,7 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PubDate(this: *mut core::ffi::c_void, pstpubdate: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn PubDate(this: *mut core::ffi::c_void, pstpubdate: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::PubDate(this) { Ok(ok__) => { @@ -10034,10 +7373,7 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Comments(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn Comments(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::Comments(this) { Ok(ok__) => { @@ -10047,10 +7383,7 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Author(this: *mut core::ffi::c_void, ppszauthor: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn Author(this: *mut core::ffi::c_void, ppszauthor: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::Author(this) { Ok(ok__) => { @@ -10060,17 +7393,11 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enclosure(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn Enclosure(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedItem_Impl::Enclosure(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn IsRead(this: *mut core::ffi::c_void, pbisread: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn IsRead(this: *mut core::ffi::c_void, pbisread: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::IsRead(this) { Ok(ok__) => { @@ -10080,17 +7407,11 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsRead(this: *mut core::ffi::c_void, bisread: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn SetIsRead(this: *mut core::ffi::c_void, bisread: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedItem_Impl::SetIsRead(this, core::mem::transmute_copy(&bisread)).into() } - unsafe extern "system" fn LocalId(this: *mut core::ffi::c_void, puiid: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn LocalId(this: *mut core::ffi::c_void, puiid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::LocalId(this) { Ok(ok__) => { @@ -10100,24 +7421,15 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedItem_Impl::Parent(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedItem_Impl::Delete(this).into() } - unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::DownloadUrl(this) { Ok(ok__) => { @@ -10127,10 +7439,7 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastDownloadTime(this: *mut core::ffi::c_void, pstlastdownloadtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn LastDownloadTime(this: *mut core::ffi::c_void, pstlastdownloadtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::LastDownloadTime(this) { Ok(ok__) => { @@ -10140,10 +7449,7 @@ impl IXFeedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pstmodifiedtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXFeedItem_Impl, - { + unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pstmodifiedtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::Modified(this) { Ok(ok__) => { @@ -10186,14 +7492,8 @@ pub trait IXFeedItem2_Impl: Sized + IXFeedItem_Impl { impl windows_core::RuntimeName for IXFeedItem2 {} #[cfg(feature = "Win32_System_Com")] impl IXFeedItem2_Vtbl { - pub const fn new() -> IXFeedItem2_Vtbl - where - Identity: IXFeedItem2_Impl, - { - unsafe extern "system" fn EffectiveId(this: *mut core::ffi::c_void, puieffectiveid: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeedItem2_Impl, - { + pub const fn new() -> IXFeedItem2_Vtbl { + unsafe extern "system" fn EffectiveId(this: *mut core::ffi::c_void, puieffectiveid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem2_Impl::EffectiveId(this) { Ok(ok__) => { @@ -10209,20 +7509,14 @@ impl IXFeedItem2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IXFeedsEnum_Impl: Sized { +pub trait IXFeedsEnum_Impl: Sized + windows_core::IUnknownImpl { fn Count(&self) -> windows_core::Result; fn Item(&self, uiindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXFeedsEnum {} impl IXFeedsEnum_Vtbl { - pub const fn new() -> IXFeedsEnum_Vtbl - where - Identity: IXFeedsEnum_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, puicount: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeedsEnum_Impl, - { + pub const fn new() -> IXFeedsEnum_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, puicount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsEnum_Impl::Count(this) { Ok(ok__) => { @@ -10232,10 +7526,7 @@ impl IXFeedsEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, uiindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedsEnum_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, uiindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedsEnum_Impl::Item(this, core::mem::transmute_copy(&uiindex), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -10246,7 +7537,7 @@ impl IXFeedsEnum_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IXFeedsManager_Impl: Sized { +pub trait IXFeedsManager_Impl: Sized + windows_core::IUnknownImpl { fn RootFolder(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn IsSubscribed(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; fn ExistsFeed(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result; @@ -10268,21 +7559,12 @@ pub trait IXFeedsManager_Impl: Sized { impl windows_core::RuntimeName for IXFeedsManager {} #[cfg(feature = "Win32_System_Com")] impl IXFeedsManager_Vtbl { - pub const fn new() -> IXFeedsManager_Vtbl - where - Identity: IXFeedsManager_Impl, - { - unsafe extern "system" fn RootFolder(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + pub const fn new() -> IXFeedsManager_Vtbl { + unsafe extern "system" fn RootFolder(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedsManager_Impl::RootFolder(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pbsubscribed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pbsubscribed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsManager_Impl::IsSubscribed(this, core::mem::transmute(&pszurl)) { Ok(ok__) => { @@ -10292,10 +7574,7 @@ impl IXFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbfeedexists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbfeedexists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsManager_Impl::ExistsFeed(this, core::mem::transmute(&pszpath)) { Ok(ok__) => { @@ -10305,24 +7584,15 @@ impl IXFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFeed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn GetFeed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedsManager_Impl::GetFeed(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetFeedByUrl(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn GetFeedByUrl(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedsManager_Impl::GetFeedByUrl(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn ExistsFolder(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbfolderexists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn ExistsFolder(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbfolderexists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsManager_Impl::ExistsFolder(this, core::mem::transmute(&pszpath)) { Ok(ok__) => { @@ -10332,38 +7602,23 @@ impl IXFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedsManager_Impl::GetFolder(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn DeleteFeed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn DeleteFeed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedsManager_Impl::DeleteFeed(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn DeleteFolder(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn DeleteFolder(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedsManager_Impl::DeleteFolder(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn BackgroundSync(this: *mut core::ffi::c_void, fbsa: FEEDS_BACKGROUNDSYNC_ACTION) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn BackgroundSync(this: *mut core::ffi::c_void, fbsa: FEEDS_BACKGROUNDSYNC_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedsManager_Impl::BackgroundSync(this, core::mem::transmute_copy(&fbsa)).into() } - unsafe extern "system" fn BackgroundSyncStatus(this: *mut core::ffi::c_void, pfbss: *mut FEEDS_BACKGROUNDSYNC_STATUS) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn BackgroundSyncStatus(this: *mut core::ffi::c_void, pfbss: *mut FEEDS_BACKGROUNDSYNC_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsManager_Impl::BackgroundSyncStatus(this) { Ok(ok__) => { @@ -10373,10 +7628,7 @@ impl IXFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultInterval(this: *mut core::ffi::c_void, puiinterval: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn DefaultInterval(this: *mut core::ffi::c_void, puiinterval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsManager_Impl::DefaultInterval(this) { Ok(ok__) => { @@ -10386,24 +7638,15 @@ impl IXFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultInterval(this: *mut core::ffi::c_void, uiinterval: u32) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn SetDefaultInterval(this: *mut core::ffi::c_void, uiinterval: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedsManager_Impl::SetDefaultInterval(this, core::mem::transmute_copy(&uiinterval)).into() } - unsafe extern "system" fn AsyncSyncAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn AsyncSyncAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedsManager_Impl::AsyncSyncAll(this).into() } - unsafe extern "system" fn Normalize(this: *mut core::ffi::c_void, pstreamin: *mut core::ffi::c_void, ppstreamout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn Normalize(this: *mut core::ffi::c_void, pstreamin: *mut core::ffi::c_void, ppstreamout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsManager_Impl::Normalize(this, windows_core::from_raw_borrowed(&pstreamin)) { Ok(ok__) => { @@ -10413,10 +7656,7 @@ impl IXFeedsManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ItemCountLimit(this: *mut core::ffi::c_void, puiitemcountlimit: *mut u32) -> windows_core::HRESULT - where - Identity: IXFeedsManager_Impl, - { + unsafe extern "system" fn ItemCountLimit(this: *mut core::ffi::c_void, puiitemcountlimit: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsManager_Impl::ItemCountLimit(this) { Ok(ok__) => { @@ -10456,10 +7696,7 @@ pub trait _WMPOCXEvents_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for _WMPOCXEvents {} #[cfg(feature = "Win32_System_Com")] impl _WMPOCXEvents_Vtbl { - pub const fn new() -> _WMPOCXEvents_Vtbl - where - Identity: _WMPOCXEvents_Impl, - { + pub const fn new() -> _WMPOCXEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/impl.rs index 55edcbd385..ec0f9b74bd 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/impl.rs @@ -1,4 +1,4 @@ -pub trait IAVIEditStream_Impl: Sized { +pub trait IAVIEditStream_Impl: Sized + windows_core::IUnknownImpl { fn Cut(&self, plstart: *mut i32, pllength: *mut i32, ppresult: *mut Option) -> windows_core::Result<()>; fn Copy(&self, plstart: *mut i32, pllength: *mut i32, ppresult: *mut Option) -> windows_core::Result<()>; fn Paste(&self, plpos: *mut i32, pllength: *mut i32, pstream: Option<&IAVIStream>, lstart: i32, lend: i32) -> windows_core::Result<()>; @@ -7,35 +7,20 @@ pub trait IAVIEditStream_Impl: Sized { } impl windows_core::RuntimeName for IAVIEditStream {} impl IAVIEditStream_Vtbl { - pub const fn new() -> IAVIEditStream_Vtbl - where - Identity: IAVIEditStream_Impl, - { - unsafe extern "system" fn Cut(this: *mut core::ffi::c_void, plstart: *mut i32, pllength: *mut i32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAVIEditStream_Impl, - { + pub const fn new() -> IAVIEditStream_Vtbl { + unsafe extern "system" fn Cut(this: *mut core::ffi::c_void, plstart: *mut i32, pllength: *mut i32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIEditStream_Impl::Cut(this, core::mem::transmute_copy(&plstart), core::mem::transmute_copy(&pllength), core::mem::transmute_copy(&ppresult)).into() } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, plstart: *mut i32, pllength: *mut i32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAVIEditStream_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, plstart: *mut i32, pllength: *mut i32, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIEditStream_Impl::Copy(this, core::mem::transmute_copy(&plstart), core::mem::transmute_copy(&pllength), core::mem::transmute_copy(&ppresult)).into() } - unsafe extern "system" fn Paste(this: *mut core::ffi::c_void, plpos: *mut i32, pllength: *mut i32, pstream: *mut core::ffi::c_void, lstart: i32, lend: i32) -> windows_core::HRESULT - where - Identity: IAVIEditStream_Impl, - { + unsafe extern "system" fn Paste(this: *mut core::ffi::c_void, plpos: *mut i32, pllength: *mut i32, pstream: *mut core::ffi::c_void, lstart: i32, lend: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIEditStream_Impl::Paste(this, core::mem::transmute_copy(&plpos), core::mem::transmute_copy(&pllength), windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&lstart), core::mem::transmute_copy(&lend)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAVIEditStream_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAVIEditStream_Impl::Clone(this) { Ok(ok__) => { @@ -45,10 +30,7 @@ impl IAVIEditStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInfo(this: *mut core::ffi::c_void, lpinfo: *const AVISTREAMINFOW, cbinfo: i32) -> windows_core::HRESULT - where - Identity: IAVIEditStream_Impl, - { + unsafe extern "system" fn SetInfo(this: *mut core::ffi::c_void, lpinfo: *const AVISTREAMINFOW, cbinfo: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIEditStream_Impl::SetInfo(this, core::mem::transmute_copy(&lpinfo), core::mem::transmute_copy(&cbinfo)).into() } @@ -65,7 +47,7 @@ impl IAVIEditStream_Vtbl { iid == &::IID } } -pub trait IAVIFile_Impl: Sized { +pub trait IAVIFile_Impl: Sized + windows_core::IUnknownImpl { fn Info(&self, pfi: *mut AVIFILEINFOW, lsize: i32) -> windows_core::Result<()>; fn GetStream(&self, ppstream: *mut Option, fcctype: u32, lparam: i32) -> windows_core::Result<()>; fn CreateStream(&self, ppstream: *mut Option, psi: *const AVISTREAMINFOW) -> windows_core::Result<()>; @@ -76,56 +58,32 @@ pub trait IAVIFile_Impl: Sized { } impl windows_core::RuntimeName for IAVIFile {} impl IAVIFile_Vtbl { - pub const fn new() -> IAVIFile_Vtbl - where - Identity: IAVIFile_Impl, - { - unsafe extern "system" fn Info(this: *mut core::ffi::c_void, pfi: *mut AVIFILEINFOW, lsize: i32) -> windows_core::HRESULT - where - Identity: IAVIFile_Impl, - { + pub const fn new() -> IAVIFile_Vtbl { + unsafe extern "system" fn Info(this: *mut core::ffi::c_void, pfi: *mut AVIFILEINFOW, lsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIFile_Impl::Info(this, core::mem::transmute_copy(&pfi), core::mem::transmute_copy(&lsize)).into() } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void, fcctype: u32, lparam: i32) -> windows_core::HRESULT - where - Identity: IAVIFile_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void, fcctype: u32, lparam: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIFile_Impl::GetStream(this, core::mem::transmute_copy(&ppstream), core::mem::transmute_copy(&fcctype), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void, psi: *const AVISTREAMINFOW) -> windows_core::HRESULT - where - Identity: IAVIFile_Impl, - { + unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void, psi: *const AVISTREAMINFOW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIFile_Impl::CreateStream(this, core::mem::transmute_copy(&ppstream), core::mem::transmute_copy(&psi)).into() } - unsafe extern "system" fn WriteData(this: *mut core::ffi::c_void, ckid: u32, lpdata: *const core::ffi::c_void, cbdata: i32) -> windows_core::HRESULT - where - Identity: IAVIFile_Impl, - { + unsafe extern "system" fn WriteData(this: *mut core::ffi::c_void, ckid: u32, lpdata: *const core::ffi::c_void, cbdata: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIFile_Impl::WriteData(this, core::mem::transmute_copy(&ckid), core::mem::transmute_copy(&lpdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn ReadData(this: *mut core::ffi::c_void, ckid: u32, lpdata: *mut core::ffi::c_void, lpcbdata: *mut i32) -> windows_core::HRESULT - where - Identity: IAVIFile_Impl, - { + unsafe extern "system" fn ReadData(this: *mut core::ffi::c_void, ckid: u32, lpdata: *mut core::ffi::c_void, lpcbdata: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIFile_Impl::ReadData(this, core::mem::transmute_copy(&ckid), core::mem::transmute_copy(&lpdata), core::mem::transmute_copy(&lpcbdata)).into() } - unsafe extern "system" fn EndRecord(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAVIFile_Impl, - { + unsafe extern "system" fn EndRecord(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIFile_Impl::EndRecord(this).into() } - unsafe extern "system" fn DeleteStream(this: *mut core::ffi::c_void, fcctype: u32, lparam: i32) -> windows_core::HRESULT - where - Identity: IAVIFile_Impl, - { + unsafe extern "system" fn DeleteStream(this: *mut core::ffi::c_void, fcctype: u32, lparam: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIFile_Impl::DeleteStream(this, core::mem::transmute_copy(&fcctype), core::mem::transmute_copy(&lparam)).into() } @@ -152,14 +110,8 @@ pub trait IAVIPersistFile_Impl: Sized + super::super::System::Com::IPersistFile_ impl windows_core::RuntimeName for IAVIPersistFile {} #[cfg(feature = "Win32_System_Com")] impl IAVIPersistFile_Vtbl { - pub const fn new() -> IAVIPersistFile_Vtbl - where - Identity: IAVIPersistFile_Impl, - { - unsafe extern "system" fn Reserved1(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAVIPersistFile_Impl, - { + pub const fn new() -> IAVIPersistFile_Vtbl { + unsafe extern "system" fn Reserved1(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIPersistFile_Impl::Reserved1(this).into() } @@ -169,7 +121,7 @@ impl IAVIPersistFile_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IAVIStream_Impl: Sized { +pub trait IAVIStream_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn Info(&self, psi: *mut AVISTREAMINFOW, lsize: i32) -> windows_core::Result<()>; fn FindSample(&self, lpos: i32, lflags: i32) -> i32; @@ -184,84 +136,48 @@ pub trait IAVIStream_Impl: Sized { } impl windows_core::RuntimeName for IAVIStream {} impl IAVIStream_Vtbl { - pub const fn new() -> IAVIStream_Vtbl - where - Identity: IAVIStream_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IAVIStream_Impl, - { + pub const fn new() -> IAVIStream_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::Create(this, core::mem::transmute_copy(&lparam1), core::mem::transmute_copy(&lparam2)).into() } - unsafe extern "system" fn Info(this: *mut core::ffi::c_void, psi: *mut AVISTREAMINFOW, lsize: i32) -> windows_core::HRESULT - where - Identity: IAVIStream_Impl, - { + unsafe extern "system" fn Info(this: *mut core::ffi::c_void, psi: *mut AVISTREAMINFOW, lsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::Info(this, core::mem::transmute_copy(&psi), core::mem::transmute_copy(&lsize)).into() } - unsafe extern "system" fn FindSample(this: *mut core::ffi::c_void, lpos: i32, lflags: i32) -> i32 - where - Identity: IAVIStream_Impl, - { + unsafe extern "system" fn FindSample(this: *mut core::ffi::c_void, lpos: i32, lflags: i32) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::FindSample(this, core::mem::transmute_copy(&lpos), core::mem::transmute_copy(&lflags)) } - unsafe extern "system" fn ReadFormat(this: *mut core::ffi::c_void, lpos: i32, lpformat: *mut core::ffi::c_void, lpcbformat: *mut i32) -> windows_core::HRESULT - where - Identity: IAVIStream_Impl, - { + unsafe extern "system" fn ReadFormat(this: *mut core::ffi::c_void, lpos: i32, lpformat: *mut core::ffi::c_void, lpcbformat: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::ReadFormat(this, core::mem::transmute_copy(&lpos), core::mem::transmute_copy(&lpformat), core::mem::transmute_copy(&lpcbformat)).into() } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, lpos: i32, lpformat: *const core::ffi::c_void, cbformat: i32) -> windows_core::HRESULT - where - Identity: IAVIStream_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, lpos: i32, lpformat: *const core::ffi::c_void, cbformat: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::SetFormat(this, core::mem::transmute_copy(&lpos), core::mem::transmute_copy(&lpformat), core::mem::transmute_copy(&cbformat)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, lstart: i32, lsamples: i32, lpbuffer: *mut core::ffi::c_void, cbbuffer: i32, plbytes: *mut i32, plsamples: *mut i32) -> windows_core::HRESULT - where - Identity: IAVIStream_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, lstart: i32, lsamples: i32, lpbuffer: *mut core::ffi::c_void, cbbuffer: i32, plbytes: *mut i32, plsamples: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::Read(this, core::mem::transmute_copy(&lstart), core::mem::transmute_copy(&lsamples), core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&plbytes), core::mem::transmute_copy(&plsamples)).into() } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, lstart: i32, lsamples: i32, lpbuffer: *const core::ffi::c_void, cbbuffer: i32, dwflags: u32, plsampwritten: *mut i32, plbyteswritten: *mut i32) -> windows_core::HRESULT - where - Identity: IAVIStream_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, lstart: i32, lsamples: i32, lpbuffer: *const core::ffi::c_void, cbbuffer: i32, dwflags: u32, plsampwritten: *mut i32, plbyteswritten: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::Write(this, core::mem::transmute_copy(&lstart), core::mem::transmute_copy(&lsamples), core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&plsampwritten), core::mem::transmute_copy(&plbyteswritten)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, lstart: i32, lsamples: i32) -> windows_core::HRESULT - where - Identity: IAVIStream_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, lstart: i32, lsamples: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::Delete(this, core::mem::transmute_copy(&lstart), core::mem::transmute_copy(&lsamples)).into() } - unsafe extern "system" fn ReadData(this: *mut core::ffi::c_void, fcc: u32, lp: *mut core::ffi::c_void, lpcb: *mut i32) -> windows_core::HRESULT - where - Identity: IAVIStream_Impl, - { + unsafe extern "system" fn ReadData(this: *mut core::ffi::c_void, fcc: u32, lp: *mut core::ffi::c_void, lpcb: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::ReadData(this, core::mem::transmute_copy(&fcc), core::mem::transmute_copy(&lp), core::mem::transmute_copy(&lpcb)).into() } - unsafe extern "system" fn WriteData(this: *mut core::ffi::c_void, fcc: u32, lp: *const core::ffi::c_void, cb: i32) -> windows_core::HRESULT - where - Identity: IAVIStream_Impl, - { + unsafe extern "system" fn WriteData(this: *mut core::ffi::c_void, fcc: u32, lp: *const core::ffi::c_void, cb: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::WriteData(this, core::mem::transmute_copy(&fcc), core::mem::transmute_copy(&lp), core::mem::transmute_copy(&cb)).into() } - unsafe extern "system" fn SetInfo(this: *mut core::ffi::c_void, lpinfo: *const AVISTREAMINFOW, cbinfo: i32) -> windows_core::HRESULT - where - Identity: IAVIStream_Impl, - { + unsafe extern "system" fn SetInfo(this: *mut core::ffi::c_void, lpinfo: *const AVISTREAMINFOW, cbinfo: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStream_Impl::SetInfo(this, core::mem::transmute_copy(&lpinfo), core::mem::transmute_copy(&cbinfo)).into() } @@ -284,27 +200,18 @@ impl IAVIStream_Vtbl { iid == &::IID } } -pub trait IAVIStreaming_Impl: Sized { +pub trait IAVIStreaming_Impl: Sized + windows_core::IUnknownImpl { fn Begin(&self, lstart: i32, lend: i32, lrate: i32) -> windows_core::Result<()>; fn End(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAVIStreaming {} impl IAVIStreaming_Vtbl { - pub const fn new() -> IAVIStreaming_Vtbl - where - Identity: IAVIStreaming_Impl, - { - unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, lstart: i32, lend: i32, lrate: i32) -> windows_core::HRESULT - where - Identity: IAVIStreaming_Impl, - { + pub const fn new() -> IAVIStreaming_Vtbl { + unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, lstart: i32, lend: i32, lrate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStreaming_Impl::Begin(this, core::mem::transmute_copy(&lstart), core::mem::transmute_copy(&lend), core::mem::transmute_copy(&lrate)).into() } - unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAVIStreaming_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAVIStreaming_Impl::End(this).into() } @@ -315,7 +222,7 @@ impl IAVIStreaming_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IGetFrame_Impl: Sized { +pub trait IGetFrame_Impl: Sized + windows_core::IUnknownImpl { fn GetFrame(&self, lpos: i32) -> *mut core::ffi::c_void; fn Begin(&self, lstart: i32, lend: i32, lrate: i32) -> windows_core::Result<()>; fn End(&self) -> windows_core::Result<()>; @@ -325,35 +232,20 @@ pub trait IGetFrame_Impl: Sized { impl windows_core::RuntimeName for IGetFrame {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IGetFrame_Vtbl { - pub const fn new() -> IGetFrame_Vtbl - where - Identity: IGetFrame_Impl, - { - unsafe extern "system" fn GetFrame(this: *mut core::ffi::c_void, lpos: i32) -> *mut core::ffi::c_void - where - Identity: IGetFrame_Impl, - { + pub const fn new() -> IGetFrame_Vtbl { + unsafe extern "system" fn GetFrame(this: *mut core::ffi::c_void, lpos: i32) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetFrame_Impl::GetFrame(this, core::mem::transmute_copy(&lpos)) } - unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, lstart: i32, lend: i32, lrate: i32) -> windows_core::HRESULT - where - Identity: IGetFrame_Impl, - { + unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, lstart: i32, lend: i32, lrate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetFrame_Impl::Begin(this, core::mem::transmute_copy(&lstart), core::mem::transmute_copy(&lend), core::mem::transmute_copy(&lrate)).into() } - unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetFrame_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetFrame_Impl::End(this).into() } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, lpbi: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, lpbits: *const core::ffi::c_void, x: i32, y: i32, dx: i32, dy: i32) -> windows_core::HRESULT - where - Identity: IGetFrame_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, lpbi: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, lpbits: *const core::ffi::c_void, x: i32, y: i32, dx: i32, dy: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetFrame_Impl::SetFormat(this, core::mem::transmute_copy(&lpbi), core::mem::transmute_copy(&lpbits), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&dx), core::mem::transmute_copy(&dy)).into() } 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 4a3dfa51fe..49c94dd87f 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_System_Com")] -pub trait IPhotoAcquire_Impl: Sized { +pub trait IPhotoAcquire_Impl: Sized + windows_core::IUnknownImpl { fn CreatePhotoSource(&self, pszdevice: &windows_core::PCWSTR) -> windows_core::Result; fn Acquire(&self, pphotoacquiresource: Option<&IPhotoAcquireSource>, fshowprogress: super::super::Foundation::BOOL, hwndparent: super::super::Foundation::HWND, pszapplicationname: &windows_core::PCWSTR, pphotoacquireprogresscb: Option<&IPhotoAcquireProgressCB>) -> windows_core::Result<()>; fn EnumResults(&self) -> windows_core::Result; @@ -8,14 +8,8 @@ pub trait IPhotoAcquire_Impl: Sized { impl windows_core::RuntimeName for IPhotoAcquire {} #[cfg(feature = "Win32_System_Com")] impl IPhotoAcquire_Vtbl { - pub const fn new() -> IPhotoAcquire_Vtbl - where - Identity: IPhotoAcquire_Impl, - { - unsafe extern "system" fn CreatePhotoSource(this: *mut core::ffi::c_void, pszdevice: windows_core::PCWSTR, ppphotoacquiresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquire_Impl, - { + pub const fn new() -> IPhotoAcquire_Vtbl { + unsafe extern "system" fn CreatePhotoSource(this: *mut core::ffi::c_void, pszdevice: windows_core::PCWSTR, ppphotoacquiresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquire_Impl::CreatePhotoSource(this, core::mem::transmute(&pszdevice)) { Ok(ok__) => { @@ -25,17 +19,11 @@ impl IPhotoAcquire_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void, fshowprogress: super::super::Foundation::BOOL, hwndparent: super::super::Foundation::HWND, pszapplicationname: windows_core::PCWSTR, pphotoacquireprogresscb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquire_Impl, - { + unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void, fshowprogress: super::super::Foundation::BOOL, hwndparent: super::super::Foundation::HWND, pszapplicationname: windows_core::PCWSTR, pphotoacquireprogresscb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquire_Impl::Acquire(this, windows_core::from_raw_borrowed(&pphotoacquiresource), core::mem::transmute_copy(&fshowprogress), core::mem::transmute_copy(&hwndparent), core::mem::transmute(&pszapplicationname), windows_core::from_raw_borrowed(&pphotoacquireprogresscb)).into() } - unsafe extern "system" fn EnumResults(this: *mut core::ffi::c_void, ppenumfilepaths: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquire_Impl, - { + unsafe extern "system" fn EnumResults(this: *mut core::ffi::c_void, ppenumfilepaths: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquire_Impl::EnumResults(this) { Ok(ok__) => { @@ -56,35 +44,23 @@ impl IPhotoAcquire_Vtbl { iid == &::IID } } -pub trait IPhotoAcquireDeviceSelectionDialog_Impl: Sized { +pub trait IPhotoAcquireDeviceSelectionDialog_Impl: Sized + windows_core::IUnknownImpl { 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 windows_core::BSTR, pndevicetype: *mut DEVICE_SELECTION_DEVICE_TYPE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPhotoAcquireDeviceSelectionDialog {} impl IPhotoAcquireDeviceSelectionDialog_Vtbl { - pub const fn new() -> IPhotoAcquireDeviceSelectionDialog_Vtbl - where - Identity: IPhotoAcquireDeviceSelectionDialog_Impl, - { - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoAcquireDeviceSelectionDialog_Impl, - { + pub const fn new() -> IPhotoAcquireDeviceSelectionDialog_Vtbl { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireDeviceSelectionDialog_Impl::SetTitle(this, core::mem::transmute(&psztitle)).into() } - unsafe extern "system" fn SetSubmitButtonText(this: *mut core::ffi::c_void, pszsubmitbuttontext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoAcquireDeviceSelectionDialog_Impl, - { + unsafe extern "system" fn SetSubmitButtonText(this: *mut core::ffi::c_void, pszsubmitbuttontext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireDeviceSelectionDialog_Impl::SetSubmitButtonText(this, core::mem::transmute(&pszsubmitbuttontext)).into() } - unsafe extern "system" fn DoModal(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwdeviceflags: u32, pbstrdeviceid: *mut core::mem::MaybeUninit, pndevicetype: *mut DEVICE_SELECTION_DEVICE_TYPE) -> windows_core::HRESULT - where - Identity: IPhotoAcquireDeviceSelectionDialog_Impl, - { + unsafe extern "system" fn DoModal(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwdeviceflags: u32, pbstrdeviceid: *mut core::mem::MaybeUninit, pndevicetype: *mut DEVICE_SELECTION_DEVICE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireDeviceSelectionDialog_Impl::DoModal(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwdeviceflags), core::mem::transmute_copy(&pbstrdeviceid), core::mem::transmute_copy(&pndevicetype)).into() } @@ -100,7 +76,7 @@ impl IPhotoAcquireDeviceSelectionDialog_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IPhotoAcquireItem_Impl: Sized { +pub trait IPhotoAcquireItem_Impl: Sized + windows_core::IUnknownImpl { fn GetItemName(&self) -> windows_core::Result; 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; @@ -115,14 +91,8 @@ pub trait IPhotoAcquireItem_Impl: Sized { impl windows_core::RuntimeName for IPhotoAcquireItem {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IPhotoAcquireItem_Vtbl { - pub const fn new() -> IPhotoAcquireItem_Vtbl - where - Identity: IPhotoAcquireItem_Impl, - { - unsafe extern "system" fn GetItemName(this: *mut core::ffi::c_void, pbstritemname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPhotoAcquireItem_Impl, - { + pub const fn new() -> IPhotoAcquireItem_Vtbl { + unsafe extern "system" fn GetItemName(this: *mut core::ffi::c_void, pbstritemname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireItem_Impl::GetItemName(this) { Ok(ok__) => { @@ -132,10 +102,7 @@ impl IPhotoAcquireItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, sizethumbnail: super::super::Foundation::SIZE, phbmpthumbnail: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IPhotoAcquireItem_Impl, - { + unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, sizethumbnail: super::super::Foundation::SIZE, phbmpthumbnail: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireItem_Impl::GetThumbnail(this, core::mem::transmute(&sizethumbnail)) { Ok(ok__) => { @@ -145,10 +112,7 @@ impl IPhotoAcquireItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPhotoAcquireItem_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireItem_Impl::GetProperty(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -158,17 +122,11 @@ impl IPhotoAcquireItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pv: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPhotoAcquireItem_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pv: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireItem_Impl::SetProperty(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&pv)).into() } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireItem_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireItem_Impl::GetStream(this) { Ok(ok__) => { @@ -178,10 +136,7 @@ impl IPhotoAcquireItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanDelete(this: *mut core::ffi::c_void, pfcandelete: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPhotoAcquireItem_Impl, - { + unsafe extern "system" fn CanDelete(this: *mut core::ffi::c_void, pfcandelete: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireItem_Impl::CanDelete(this) { Ok(ok__) => { @@ -191,17 +146,11 @@ impl IPhotoAcquireItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireItem_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireItem_Impl::Delete(this).into() } - unsafe extern "system" fn GetSubItemCount(this: *mut core::ffi::c_void, pncount: *mut u32) -> windows_core::HRESULT - where - Identity: IPhotoAcquireItem_Impl, - { + unsafe extern "system" fn GetSubItemCount(this: *mut core::ffi::c_void, pncount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireItem_Impl::GetSubItemCount(this) { Ok(ok__) => { @@ -211,10 +160,7 @@ impl IPhotoAcquireItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubItemAt(this: *mut core::ffi::c_void, nitemindex: u32, ppphotoacquireitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireItem_Impl, - { + unsafe extern "system" fn GetSubItemAt(this: *mut core::ffi::c_void, nitemindex: u32, ppphotoacquireitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireItem_Impl::GetSubItemAt(this, core::mem::transmute_copy(&nitemindex)) { Ok(ok__) => { @@ -241,7 +187,7 @@ impl IPhotoAcquireItem_Vtbl { iid == &::IID } } -pub trait IPhotoAcquireOptionsDialog_Impl: Sized { +pub trait IPhotoAcquireOptionsDialog_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pszregistryroot: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Create(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result; fn Destroy(&self) -> windows_core::Result<()>; @@ -250,21 +196,12 @@ pub trait IPhotoAcquireOptionsDialog_Impl: Sized { } impl windows_core::RuntimeName for IPhotoAcquireOptionsDialog {} impl IPhotoAcquireOptionsDialog_Vtbl { - pub const fn new() -> IPhotoAcquireOptionsDialog_Vtbl - where - Identity: IPhotoAcquireOptionsDialog_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszregistryroot: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoAcquireOptionsDialog_Impl, - { + pub const fn new() -> IPhotoAcquireOptionsDialog_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszregistryroot: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireOptionsDialog_Impl::Initialize(this, core::mem::transmute(&pszregistryroot)).into() } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, phwnddialog: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IPhotoAcquireOptionsDialog_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, phwnddialog: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireOptionsDialog_Impl::Create(this, core::mem::transmute_copy(&hwndparent)) { Ok(ok__) => { @@ -274,24 +211,15 @@ impl IPhotoAcquireOptionsDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireOptionsDialog_Impl, - { + unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireOptionsDialog_Impl::Destroy(this).into() } - unsafe extern "system" fn DoModal(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ppnreturncode: *mut isize) -> windows_core::HRESULT - where - Identity: IPhotoAcquireOptionsDialog_Impl, - { + unsafe extern "system" fn DoModal(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ppnreturncode: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireOptionsDialog_Impl::DoModal(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&ppnreturncode)).into() } - unsafe extern "system" fn SaveData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireOptionsDialog_Impl, - { + unsafe extern "system" fn SaveData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireOptionsDialog_Impl::SaveData(this).into() } @@ -309,7 +237,7 @@ impl IPhotoAcquireOptionsDialog_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IPhotoAcquirePlugin_Impl: Sized { +pub trait IPhotoAcquirePlugin_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pphotoacquiresource: Option<&IPhotoAcquireSource>, pphotoacquireprogresscb: Option<&IPhotoAcquireProgressCB>) -> windows_core::Result<()>; fn ProcessItem(&self, dwacquirestage: u32, pphotoacquireitem: Option<&IPhotoAcquireItem>, poriginalitemstream: Option<&super::super::System::Com::IStream>, pszfinalfilename: &windows_core::PCWSTR, ppropertystore: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>) -> windows_core::Result<()>; fn TransferComplete(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; @@ -319,35 +247,20 @@ pub trait IPhotoAcquirePlugin_Impl: Sized { impl windows_core::RuntimeName for IPhotoAcquirePlugin {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IPhotoAcquirePlugin_Vtbl { - pub const fn new() -> IPhotoAcquirePlugin_Vtbl - where - Identity: IPhotoAcquirePlugin_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void, pphotoacquireprogresscb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquirePlugin_Impl, - { + pub const fn new() -> IPhotoAcquirePlugin_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void, pphotoacquireprogresscb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquirePlugin_Impl::Initialize(this, windows_core::from_raw_borrowed(&pphotoacquiresource), windows_core::from_raw_borrowed(&pphotoacquireprogresscb)).into() } - unsafe extern "system" fn ProcessItem(this: *mut core::ffi::c_void, dwacquirestage: u32, pphotoacquireitem: *mut core::ffi::c_void, poriginalitemstream: *mut core::ffi::c_void, pszfinalfilename: windows_core::PCWSTR, ppropertystore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquirePlugin_Impl, - { + unsafe extern "system" fn ProcessItem(this: *mut core::ffi::c_void, dwacquirestage: u32, pphotoacquireitem: *mut core::ffi::c_void, poriginalitemstream: *mut core::ffi::c_void, pszfinalfilename: windows_core::PCWSTR, ppropertystore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquirePlugin_Impl::ProcessItem(this, core::mem::transmute_copy(&dwacquirestage), windows_core::from_raw_borrowed(&pphotoacquireitem), windows_core::from_raw_borrowed(&poriginalitemstream), core::mem::transmute(&pszfinalfilename), windows_core::from_raw_borrowed(&ppropertystore)).into() } - unsafe extern "system" fn TransferComplete(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPhotoAcquirePlugin_Impl, - { + unsafe extern "system" fn TransferComplete(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquirePlugin_Impl::TransferComplete(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn DisplayConfigureDialog(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IPhotoAcquirePlugin_Impl, - { + unsafe extern "system" fn DisplayConfigureDialog(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquirePlugin_Impl::DisplayConfigureDialog(this, core::mem::transmute_copy(&hwndparent)).into() } @@ -363,7 +276,7 @@ impl IPhotoAcquirePlugin_Vtbl { iid == &::IID } } -pub trait IPhotoAcquireProgressCB_Impl: Sized { +pub trait IPhotoAcquireProgressCB_Impl: Sized + windows_core::IUnknownImpl { fn Cancelled(&self) -> windows_core::Result; fn StartEnumeration(&self, pphotoacquiresource: Option<&IPhotoAcquireSource>) -> windows_core::Result<()>; fn FoundItem(&self, pphotoacquireitem: Option<&IPhotoAcquireItem>) -> windows_core::Result<()>; @@ -386,14 +299,8 @@ pub trait IPhotoAcquireProgressCB_Impl: Sized { } impl windows_core::RuntimeName for IPhotoAcquireProgressCB {} impl IPhotoAcquireProgressCB_Vtbl { - pub const fn new() -> IPhotoAcquireProgressCB_Vtbl - where - Identity: IPhotoAcquireProgressCB_Impl, - { - unsafe extern "system" fn Cancelled(this: *mut core::ffi::c_void, pfcancelled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + pub const fn new() -> IPhotoAcquireProgressCB_Vtbl { + unsafe extern "system" fn Cancelled(this: *mut core::ffi::c_void, pfcancelled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireProgressCB_Impl::Cancelled(this) { Ok(ok__) => { @@ -403,115 +310,67 @@ impl IPhotoAcquireProgressCB_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartEnumeration(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn StartEnumeration(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::StartEnumeration(this, windows_core::from_raw_borrowed(&pphotoacquiresource)).into() } - unsafe extern "system" fn FoundItem(this: *mut core::ffi::c_void, pphotoacquireitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn FoundItem(this: *mut core::ffi::c_void, pphotoacquireitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::FoundItem(this, windows_core::from_raw_borrowed(&pphotoacquireitem)).into() } - unsafe extern "system" fn EndEnumeration(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn EndEnumeration(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::EndEnumeration(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn StartTransfer(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn StartTransfer(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::StartTransfer(this, windows_core::from_raw_borrowed(&pphotoacquiresource)).into() } - unsafe extern "system" fn StartItemTransfer(this: *mut core::ffi::c_void, nitemindex: u32, pphotoacquireitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn StartItemTransfer(this: *mut core::ffi::c_void, nitemindex: u32, pphotoacquireitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::StartItemTransfer(this, core::mem::transmute_copy(&nitemindex), windows_core::from_raw_borrowed(&pphotoacquireitem)).into() } - unsafe extern "system" fn DirectoryCreated(this: *mut core::ffi::c_void, pszdirectory: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn DirectoryCreated(this: *mut core::ffi::c_void, pszdirectory: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::DirectoryCreated(this, core::mem::transmute(&pszdirectory)).into() } - unsafe extern "system" fn UpdateTransferPercent(this: *mut core::ffi::c_void, foverall: super::super::Foundation::BOOL, npercent: u32) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn UpdateTransferPercent(this: *mut core::ffi::c_void, foverall: super::super::Foundation::BOOL, npercent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::UpdateTransferPercent(this, core::mem::transmute_copy(&foverall), core::mem::transmute_copy(&npercent)).into() } - unsafe extern "system" fn EndItemTransfer(this: *mut core::ffi::c_void, nitemindex: u32, pphotoacquireitem: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn EndItemTransfer(this: *mut core::ffi::c_void, nitemindex: u32, pphotoacquireitem: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::EndItemTransfer(this, core::mem::transmute_copy(&nitemindex), windows_core::from_raw_borrowed(&pphotoacquireitem), core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn EndTransfer(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn EndTransfer(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::EndTransfer(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn StartDelete(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn StartDelete(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::StartDelete(this, windows_core::from_raw_borrowed(&pphotoacquiresource)).into() } - unsafe extern "system" fn StartItemDelete(this: *mut core::ffi::c_void, nitemindex: u32, pphotoacquireitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn StartItemDelete(this: *mut core::ffi::c_void, nitemindex: u32, pphotoacquireitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::StartItemDelete(this, core::mem::transmute_copy(&nitemindex), windows_core::from_raw_borrowed(&pphotoacquireitem)).into() } - unsafe extern "system" fn UpdateDeletePercent(this: *mut core::ffi::c_void, npercent: u32) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn UpdateDeletePercent(this: *mut core::ffi::c_void, npercent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::UpdateDeletePercent(this, core::mem::transmute_copy(&npercent)).into() } - unsafe extern "system" fn EndItemDelete(this: *mut core::ffi::c_void, nitemindex: u32, pphotoacquireitem: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn EndItemDelete(this: *mut core::ffi::c_void, nitemindex: u32, pphotoacquireitem: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::EndItemDelete(this, core::mem::transmute_copy(&nitemindex), windows_core::from_raw_borrowed(&pphotoacquireitem), core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn EndDelete(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn EndDelete(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::EndDelete(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::EndSession(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn GetDeleteAfterAcquire(this: *mut core::ffi::c_void, pfdeleteafteracquire: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn GetDeleteAfterAcquire(this: *mut core::ffi::c_void, pfdeleteafteracquire: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireProgressCB_Impl::GetDeleteAfterAcquire(this) { Ok(ok__) => { @@ -521,10 +380,7 @@ impl IPhotoAcquireProgressCB_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ErrorAdvise(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, pszerrormessage: windows_core::PCWSTR, nmessagetype: ERROR_ADVISE_MESSAGE_TYPE, pnerroradviseresult: *mut ERROR_ADVISE_RESULT) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn ErrorAdvise(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, pszerrormessage: windows_core::PCWSTR, nmessagetype: ERROR_ADVISE_MESSAGE_TYPE, pnerroradviseresult: *mut ERROR_ADVISE_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireProgressCB_Impl::ErrorAdvise(this, core::mem::transmute_copy(&hr), core::mem::transmute(&pszerrormessage), core::mem::transmute_copy(&nmessagetype)) { Ok(ok__) => { @@ -534,10 +390,7 @@ impl IPhotoAcquireProgressCB_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserInput(this: *mut core::ffi::c_void, riidtype: *const windows_core::GUID, punknown: *mut core::ffi::c_void, ppropvarresult: *mut core::mem::MaybeUninit, ppropvardefault: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPhotoAcquireProgressCB_Impl, - { + unsafe extern "system" fn GetUserInput(this: *mut core::ffi::c_void, riidtype: *const windows_core::GUID, punknown: *mut core::ffi::c_void, ppropvarresult: *mut core::mem::MaybeUninit, ppropvardefault: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::GetUserInput(this, core::mem::transmute_copy(&riidtype), windows_core::from_raw_borrowed(&punknown), core::mem::transmute_copy(&ppropvarresult), core::mem::transmute_copy(&ppropvardefault)).into() } @@ -568,7 +421,7 @@ impl IPhotoAcquireProgressCB_Vtbl { iid == &::IID } } -pub trait IPhotoAcquireSettings_Impl: Sized { +pub trait IPhotoAcquireSettings_Impl: Sized + windows_core::IUnknownImpl { fn InitializeFromRegistry(&self, pszregistrykey: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetFlags(&self, dwphotoacquireflags: u32) -> windows_core::Result<()>; fn SetOutputFilenameTemplate(&self, psztemplate: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -585,63 +438,36 @@ pub trait IPhotoAcquireSettings_Impl: Sized { } impl windows_core::RuntimeName for IPhotoAcquireSettings {} impl IPhotoAcquireSettings_Vtbl { - pub const fn new() -> IPhotoAcquireSettings_Vtbl - where - Identity: IPhotoAcquireSettings_Impl, - { - unsafe extern "system" fn InitializeFromRegistry(this: *mut core::ffi::c_void, pszregistrykey: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + pub const fn new() -> IPhotoAcquireSettings_Vtbl { + unsafe extern "system" fn InitializeFromRegistry(this: *mut core::ffi::c_void, pszregistrykey: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSettings_Impl::InitializeFromRegistry(this, core::mem::transmute(&pszregistrykey)).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwphotoacquireflags: u32) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwphotoacquireflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSettings_Impl::SetFlags(this, core::mem::transmute_copy(&dwphotoacquireflags)).into() } - unsafe extern "system" fn SetOutputFilenameTemplate(this: *mut core::ffi::c_void, psztemplate: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn SetOutputFilenameTemplate(this: *mut core::ffi::c_void, psztemplate: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSettings_Impl::SetOutputFilenameTemplate(this, core::mem::transmute(&psztemplate)).into() } - unsafe extern "system" fn SetSequencePaddingWidth(this: *mut core::ffi::c_void, dwwidth: u32) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn SetSequencePaddingWidth(this: *mut core::ffi::c_void, dwwidth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSettings_Impl::SetSequencePaddingWidth(this, core::mem::transmute_copy(&dwwidth)).into() } - unsafe extern "system" fn SetSequenceZeroPadding(this: *mut core::ffi::c_void, fzeropad: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn SetSequenceZeroPadding(this: *mut core::ffi::c_void, fzeropad: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSettings_Impl::SetSequenceZeroPadding(this, core::mem::transmute_copy(&fzeropad)).into() } - unsafe extern "system" fn SetGroupTag(this: *mut core::ffi::c_void, pszgrouptag: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn SetGroupTag(this: *mut core::ffi::c_void, pszgrouptag: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSettings_Impl::SetGroupTag(this, core::mem::transmute(&pszgrouptag)).into() } - unsafe extern "system" fn SetAcquisitionTime(this: *mut core::ffi::c_void, pftacquisitiontime: *const super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn SetAcquisitionTime(this: *mut core::ffi::c_void, pftacquisitiontime: *const super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSettings_Impl::SetAcquisitionTime(this, core::mem::transmute_copy(&pftacquisitiontime)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwphotoacquireflags: *mut u32) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwphotoacquireflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSettings_Impl::GetFlags(this) { Ok(ok__) => { @@ -651,10 +477,7 @@ impl IPhotoAcquireSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputFilenameTemplate(this: *mut core::ffi::c_void, pbstrtemplate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn GetOutputFilenameTemplate(this: *mut core::ffi::c_void, pbstrtemplate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSettings_Impl::GetOutputFilenameTemplate(this) { Ok(ok__) => { @@ -664,10 +487,7 @@ impl IPhotoAcquireSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSequencePaddingWidth(this: *mut core::ffi::c_void, pdwwidth: *mut u32) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn GetSequencePaddingWidth(this: *mut core::ffi::c_void, pdwwidth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSettings_Impl::GetSequencePaddingWidth(this) { Ok(ok__) => { @@ -677,10 +497,7 @@ impl IPhotoAcquireSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSequenceZeroPadding(this: *mut core::ffi::c_void, pfzeropad: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn GetSequenceZeroPadding(this: *mut core::ffi::c_void, pfzeropad: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSettings_Impl::GetSequenceZeroPadding(this) { Ok(ok__) => { @@ -690,10 +507,7 @@ impl IPhotoAcquireSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGroupTag(this: *mut core::ffi::c_void, pbstrgrouptag: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn GetGroupTag(this: *mut core::ffi::c_void, pbstrgrouptag: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSettings_Impl::GetGroupTag(this) { Ok(ok__) => { @@ -703,10 +517,7 @@ impl IPhotoAcquireSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAcquisitionTime(this: *mut core::ffi::c_void, pftacquisitiontime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSettings_Impl, - { + unsafe extern "system" fn GetAcquisitionTime(this: *mut core::ffi::c_void, pftacquisitiontime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSettings_Impl::GetAcquisitionTime(this) { Ok(ok__) => { @@ -738,7 +549,7 @@ impl IPhotoAcquireSettings_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IPhotoAcquireSource_Impl: Sized { +pub trait IPhotoAcquireSource_Impl: Sized + windows_core::IUnknownImpl { fn GetFriendlyName(&self) -> windows_core::Result; 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: Option<&IPhotoAcquireProgressCB>, pnitemcount: *mut u32) -> windows_core::Result<()>; @@ -752,14 +563,8 @@ pub trait IPhotoAcquireSource_Impl: Sized { impl windows_core::RuntimeName for IPhotoAcquireSource {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IPhotoAcquireSource_Vtbl { - pub const fn new() -> IPhotoAcquireSource_Vtbl - where - Identity: IPhotoAcquireSource_Impl, - { - unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, pbstrfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSource_Impl, - { + pub const fn new() -> IPhotoAcquireSource_Vtbl { + unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, pbstrfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSource_Impl::GetFriendlyName(this) { Ok(ok__) => { @@ -769,24 +574,15 @@ impl IPhotoAcquireSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceIcons(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 - where - Identity: IPhotoAcquireSource_Impl, - { + unsafe extern "system" fn GetDeviceIcons(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSource_Impl::GetDeviceIcons(this, core::mem::transmute_copy(&nsize), core::mem::transmute_copy(&phlargeicon), core::mem::transmute_copy(&phsmallicon)).into() } - unsafe extern "system" fn InitializeItemList(this: *mut core::ffi::c_void, fforceenumeration: super::super::Foundation::BOOL, pphotoacquireprogresscb: *mut core::ffi::c_void, pnitemcount: *mut u32) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSource_Impl, - { + unsafe extern "system" fn InitializeItemList(this: *mut core::ffi::c_void, fforceenumeration: super::super::Foundation::BOOL, pphotoacquireprogresscb: *mut core::ffi::c_void, pnitemcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSource_Impl::InitializeItemList(this, core::mem::transmute_copy(&fforceenumeration), windows_core::from_raw_borrowed(&pphotoacquireprogresscb), core::mem::transmute_copy(&pnitemcount)).into() } - unsafe extern "system" fn GetItemCount(this: *mut core::ffi::c_void, pnitemcount: *mut u32) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSource_Impl, - { + unsafe extern "system" fn GetItemCount(this: *mut core::ffi::c_void, pnitemcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSource_Impl::GetItemCount(this) { Ok(ok__) => { @@ -796,10 +592,7 @@ impl IPhotoAcquireSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemAt(this: *mut core::ffi::c_void, nindex: u32, ppphotoacquireitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSource_Impl, - { + unsafe extern "system" fn GetItemAt(this: *mut core::ffi::c_void, nindex: u32, ppphotoacquireitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSource_Impl::GetItemAt(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -809,10 +602,7 @@ impl IPhotoAcquireSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPhotoAcquireSettings(this: *mut core::ffi::c_void, ppphotoacquiresettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSource_Impl, - { + unsafe extern "system" fn GetPhotoAcquireSettings(this: *mut core::ffi::c_void, ppphotoacquiresettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSource_Impl::GetPhotoAcquireSettings(this) { Ok(ok__) => { @@ -822,10 +612,7 @@ impl IPhotoAcquireSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceId(this: *mut core::ffi::c_void, pbstrdeviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSource_Impl, - { + unsafe extern "system" fn GetDeviceId(this: *mut core::ffi::c_void, pbstrdeviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSource_Impl::GetDeviceId(this) { Ok(ok__) => { @@ -835,10 +622,7 @@ impl IPhotoAcquireSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BindToObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoAcquireSource_Impl, - { + unsafe extern "system" fn BindToObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSource_Impl::BindToObject(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -858,19 +642,13 @@ impl IPhotoAcquireSource_Vtbl { iid == &::IID } } -pub trait IPhotoProgressActionCB_Impl: Sized { +pub trait IPhotoProgressActionCB_Impl: Sized + windows_core::IUnknownImpl { fn DoAction(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPhotoProgressActionCB {} impl IPhotoProgressActionCB_Vtbl { - pub const fn new() -> IPhotoProgressActionCB_Vtbl - where - Identity: IPhotoProgressActionCB_Impl, - { - unsafe extern "system" fn DoAction(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IPhotoProgressActionCB_Impl, - { + pub const fn new() -> IPhotoProgressActionCB_Vtbl { + unsafe extern "system" fn DoAction(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressActionCB_Impl::DoAction(this, core::mem::transmute_copy(&hwndparent)).into() } @@ -881,7 +659,7 @@ impl IPhotoProgressActionCB_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IPhotoProgressDialog_Impl: Sized { +pub trait IPhotoProgressDialog_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result<()>; fn GetWindow(&self) -> windows_core::Result; fn Destroy(&self) -> windows_core::Result<()>; @@ -905,21 +683,12 @@ pub trait IPhotoProgressDialog_Impl: Sized { impl windows_core::RuntimeName for IPhotoProgressDialog {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IPhotoProgressDialog_Vtbl { - pub const fn new() -> IPhotoProgressDialog_Vtbl - where - Identity: IPhotoProgressDialog_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + pub const fn new() -> IPhotoProgressDialog_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::Create(this, core::mem::transmute_copy(&hwndparent)).into() } - unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwndprogressdialog: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwndprogressdialog: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoProgressDialog_Impl::GetWindow(this) { Ok(ok__) => { @@ -929,52 +698,31 @@ impl IPhotoProgressDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::Destroy(this).into() } - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetTitle(this, core::mem::transmute(&psztitle)).into() } - unsafe extern "system" fn ShowCheckbox(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn ShowCheckbox(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::ShowCheckbox(this, core::mem::transmute_copy(&ncheckboxid), core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn SetCheckboxText(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pszcheckboxtext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn SetCheckboxText(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pszcheckboxtext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetCheckboxText(this, core::mem::transmute_copy(&ncheckboxid), core::mem::transmute(&pszcheckboxtext)).into() } - unsafe extern "system" fn SetCheckboxCheck(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn SetCheckboxCheck(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetCheckboxCheck(this, core::mem::transmute_copy(&ncheckboxid), core::mem::transmute_copy(&fchecked)).into() } - unsafe extern "system" fn SetCheckboxTooltip(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pszcheckboxtooltiptext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn SetCheckboxTooltip(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pszcheckboxtooltiptext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetCheckboxTooltip(this, core::mem::transmute_copy(&ncheckboxid), core::mem::transmute(&pszcheckboxtooltiptext)).into() } - unsafe extern "system" fn IsCheckboxChecked(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pfchecked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn IsCheckboxChecked(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pfchecked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoProgressDialog_Impl::IsCheckboxChecked(this, core::mem::transmute_copy(&ncheckboxid)) { Ok(ok__) => { @@ -984,59 +732,35 @@ impl IPhotoProgressDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCaption(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn SetCaption(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetCaption(this, core::mem::transmute(&psztitle)).into() } - unsafe extern "system" fn SetImage(this: *mut core::ffi::c_void, nimagetype: PROGRESS_DIALOG_IMAGE_TYPE, hicon: super::super::UI::WindowsAndMessaging::HICON, hbitmap: super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn SetImage(this: *mut core::ffi::c_void, nimagetype: PROGRESS_DIALOG_IMAGE_TYPE, hicon: super::super::UI::WindowsAndMessaging::HICON, hbitmap: super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetImage(this, core::mem::transmute_copy(&nimagetype), core::mem::transmute_copy(&hicon), core::mem::transmute_copy(&hbitmap)).into() } - unsafe extern "system" fn SetPercentComplete(this: *mut core::ffi::c_void, npercent: i32) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn SetPercentComplete(this: *mut core::ffi::c_void, npercent: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetPercentComplete(this, core::mem::transmute_copy(&npercent)).into() } - unsafe extern "system" fn SetProgressText(this: *mut core::ffi::c_void, pszprogresstext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn SetProgressText(this: *mut core::ffi::c_void, pszprogresstext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetProgressText(this, core::mem::transmute(&pszprogresstext)).into() } - unsafe extern "system" fn SetActionLinkCallback(this: *mut core::ffi::c_void, pphotoprogressactioncb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn SetActionLinkCallback(this: *mut core::ffi::c_void, pphotoprogressactioncb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetActionLinkCallback(this, windows_core::from_raw_borrowed(&pphotoprogressactioncb)).into() } - unsafe extern "system" fn SetActionLinkText(this: *mut core::ffi::c_void, pszcaption: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn SetActionLinkText(this: *mut core::ffi::c_void, pszcaption: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetActionLinkText(this, core::mem::transmute(&pszcaption)).into() } - unsafe extern "system" fn ShowActionLink(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn ShowActionLink(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::ShowActionLink(this, core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn IsCancelled(this: *mut core::ffi::c_void, pfcancelled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn IsCancelled(this: *mut core::ffi::c_void, pfcancelled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoProgressDialog_Impl::IsCancelled(this) { Ok(ok__) => { @@ -1046,10 +770,7 @@ impl IPhotoProgressDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserInput(this: *mut core::ffi::c_void, riidtype: *const windows_core::GUID, punknown: *mut core::ffi::c_void, ppropvarresult: *mut core::mem::MaybeUninit, ppropvardefault: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPhotoProgressDialog_Impl, - { + unsafe extern "system" fn GetUserInput(this: *mut core::ffi::c_void, riidtype: *const windows_core::GUID, punknown: *mut core::ffi::c_void, ppropvarresult: *mut core::mem::MaybeUninit, ppropvardefault: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::GetUserInput(this, core::mem::transmute_copy(&riidtype), windows_core::from_raw_borrowed(&punknown), core::mem::transmute_copy(&ppropvarresult), core::mem::transmute_copy(&ppropvardefault)).into() } @@ -1080,7 +801,7 @@ impl IPhotoProgressDialog_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IUserInputString_Impl: Sized { +pub trait IUserInputString_Impl: Sized + windows_core::IUnknownImpl { fn GetSubmitButtonText(&self) -> windows_core::Result; fn GetPrompt(&self) -> windows_core::Result; fn GetStringId(&self) -> windows_core::Result; @@ -1096,14 +817,8 @@ pub trait IUserInputString_Impl: Sized { impl windows_core::RuntimeName for IUserInputString {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IUserInputString_Vtbl { - pub const fn new() -> IUserInputString_Vtbl - where - Identity: IUserInputString_Impl, - { - unsafe extern "system" fn GetSubmitButtonText(this: *mut core::ffi::c_void, pbstrsubmitbuttontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUserInputString_Impl, - { + pub const fn new() -> IUserInputString_Vtbl { + unsafe extern "system" fn GetSubmitButtonText(this: *mut core::ffi::c_void, pbstrsubmitbuttontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserInputString_Impl::GetSubmitButtonText(this) { Ok(ok__) => { @@ -1113,10 +828,7 @@ impl IUserInputString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrompt(this: *mut core::ffi::c_void, pbstrprompttitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUserInputString_Impl, - { + unsafe extern "system" fn GetPrompt(this: *mut core::ffi::c_void, pbstrprompttitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserInputString_Impl::GetPrompt(this) { Ok(ok__) => { @@ -1126,10 +838,7 @@ impl IUserInputString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStringId(this: *mut core::ffi::c_void, pbstrstringid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUserInputString_Impl, - { + unsafe extern "system" fn GetStringId(this: *mut core::ffi::c_void, pbstrstringid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserInputString_Impl::GetStringId(this) { Ok(ok__) => { @@ -1139,10 +848,7 @@ impl IUserInputString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStringType(this: *mut core::ffi::c_void, pnstringtype: *mut USER_INPUT_STRING_TYPE) -> windows_core::HRESULT - where - Identity: IUserInputString_Impl, - { + unsafe extern "system" fn GetStringType(this: *mut core::ffi::c_void, pnstringtype: *mut USER_INPUT_STRING_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserInputString_Impl::GetStringType(this) { Ok(ok__) => { @@ -1152,10 +858,7 @@ impl IUserInputString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTooltipText(this: *mut core::ffi::c_void, pbstrtooltiptext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUserInputString_Impl, - { + unsafe extern "system" fn GetTooltipText(this: *mut core::ffi::c_void, pbstrtooltiptext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserInputString_Impl::GetTooltipText(this) { Ok(ok__) => { @@ -1165,10 +868,7 @@ impl IUserInputString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pcchmaxlength: *mut u32) -> windows_core::HRESULT - where - Identity: IUserInputString_Impl, - { + unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pcchmaxlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserInputString_Impl::GetMaxLength(this) { Ok(ok__) => { @@ -1178,10 +878,7 @@ impl IUserInputString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefault(this: *mut core::ffi::c_void, pbstrdefault: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUserInputString_Impl, - { + unsafe extern "system" fn GetDefault(this: *mut core::ffi::c_void, pbstrdefault: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserInputString_Impl::GetDefault(this) { Ok(ok__) => { @@ -1191,10 +888,7 @@ impl IUserInputString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMruCount(this: *mut core::ffi::c_void, pnmrucount: *mut u32) -> windows_core::HRESULT - where - Identity: IUserInputString_Impl, - { + unsafe extern "system" fn GetMruCount(this: *mut core::ffi::c_void, pnmrucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserInputString_Impl::GetMruCount(this) { Ok(ok__) => { @@ -1204,10 +898,7 @@ impl IUserInputString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMruEntryAt(this: *mut core::ffi::c_void, nindex: u32, pbstrmruentry: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUserInputString_Impl, - { + unsafe extern "system" fn GetMruEntryAt(this: *mut core::ffi::c_void, nindex: u32, pbstrmruentry: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUserInputString_Impl::GetMruEntryAt(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -1217,10 +908,7 @@ impl IUserInputString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImage(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 - where - Identity: IUserInputString_Impl, - { + unsafe extern "system" fn GetImage(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserInputString_Impl::GetImage(this, core::mem::transmute_copy(&nsize), core::mem::transmute_copy(&phbitmap), core::mem::transmute_copy(&phicon)).into() } 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 a19246f9de..a34682278a 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs @@ -1,4 +1,4 @@ -pub trait IEnumSpObjectTokens_Impl: Sized { +pub trait IEnumSpObjectTokens_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, pelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -8,35 +8,20 @@ pub trait IEnumSpObjectTokens_Impl: Sized { } impl windows_core::RuntimeName for IEnumSpObjectTokens {} impl IEnumSpObjectTokens_Vtbl { - pub const fn new() -> IEnumSpObjectTokens_Vtbl - where - Identity: IEnumSpObjectTokens_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSpObjectTokens_Impl, - { + pub const fn new() -> IEnumSpObjectTokens_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSpObjectTokens_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&pelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSpObjectTokens_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSpObjectTokens_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSpObjectTokens_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSpObjectTokens_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSpObjectTokens_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSpObjectTokens_Impl::Clone(this) { Ok(ok__) => { @@ -46,10 +31,7 @@ impl IEnumSpObjectTokens_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: u32, pptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSpObjectTokens_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: u32, pptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSpObjectTokens_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -59,10 +41,7 @@ impl IEnumSpObjectTokens_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSpObjectTokens_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSpObjectTokens_Impl::GetCount(this, core::mem::transmute_copy(&pcount)).into() } @@ -98,84 +77,48 @@ pub trait ISpAudio_Impl: Sized + ISpStreamFormat_Impl { impl windows_core::RuntimeName for ISpAudio {} #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] impl ISpAudio_Vtbl { - pub const fn new() -> ISpAudio_Vtbl - where - Identity: ISpAudio_Impl, - { - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, newstate: SPAUDIOSTATE, ullreserved: u64) -> windows_core::HRESULT - where - Identity: ISpAudio_Impl, - { + pub const fn new() -> ISpAudio_Vtbl { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, newstate: SPAUDIOSTATE, ullreserved: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::SetState(this, core::mem::transmute_copy(&newstate), core::mem::transmute_copy(&ullreserved)).into() } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpAudio_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::SetFormat(this, core::mem::transmute_copy(&rguidfmtid), core::mem::transmute_copy(&pwaveformatex)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut SPAUDIOSTATUS) -> windows_core::HRESULT - where - Identity: ISpAudio_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut SPAUDIOSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::GetStatus(this, core::mem::transmute_copy(&pstatus)).into() } - unsafe extern "system" fn SetBufferInfo(this: *mut core::ffi::c_void, pbuffinfo: *const SPAUDIOBUFFERINFO) -> windows_core::HRESULT - where - Identity: ISpAudio_Impl, - { + unsafe extern "system" fn SetBufferInfo(this: *mut core::ffi::c_void, pbuffinfo: *const SPAUDIOBUFFERINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::SetBufferInfo(this, core::mem::transmute_copy(&pbuffinfo)).into() } - unsafe extern "system" fn GetBufferInfo(this: *mut core::ffi::c_void, pbuffinfo: *mut SPAUDIOBUFFERINFO) -> windows_core::HRESULT - where - Identity: ISpAudio_Impl, - { + unsafe extern "system" fn GetBufferInfo(this: *mut core::ffi::c_void, pbuffinfo: *mut SPAUDIOBUFFERINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::GetBufferInfo(this, core::mem::transmute_copy(&pbuffinfo)).into() } - unsafe extern "system" fn GetDefaultFormat(this: *mut core::ffi::c_void, pformatid: *mut windows_core::GUID, ppcomemwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpAudio_Impl, - { + unsafe extern "system" fn GetDefaultFormat(this: *mut core::ffi::c_void, pformatid: *mut windows_core::GUID, ppcomemwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::GetDefaultFormat(this, core::mem::transmute_copy(&pformatid), core::mem::transmute_copy(&ppcomemwaveformatex)).into() } - unsafe extern "system" fn EventHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: ISpAudio_Impl, - { + unsafe extern "system" fn EventHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::EventHandle(this) } - unsafe extern "system" fn GetVolumeLevel(this: *mut core::ffi::c_void, plevel: *mut u32) -> windows_core::HRESULT - where - Identity: ISpAudio_Impl, - { + unsafe extern "system" fn GetVolumeLevel(this: *mut core::ffi::c_void, plevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::GetVolumeLevel(this, core::mem::transmute_copy(&plevel)).into() } - unsafe extern "system" fn SetVolumeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT - where - Identity: ISpAudio_Impl, - { + unsafe extern "system" fn SetVolumeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::SetVolumeLevel(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn GetBufferNotifySize(this: *mut core::ffi::c_void, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISpAudio_Impl, - { + unsafe extern "system" fn GetBufferNotifySize(this: *mut core::ffi::c_void, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::GetBufferNotifySize(this, core::mem::transmute_copy(&pcbsize)).into() } - unsafe extern "system" fn SetBufferNotifySize(this: *mut core::ffi::c_void, cbsize: u32) -> windows_core::HRESULT - where - Identity: ISpAudio_Impl, - { + unsafe extern "system" fn SetBufferNotifySize(this: *mut core::ffi::c_void, cbsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpAudio_Impl::SetBufferNotifySize(this, core::mem::transmute_copy(&cbsize)).into() } @@ -198,27 +141,18 @@ impl ISpAudio_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ISpCFGInterpreter_Impl: Sized { +pub trait ISpCFGInterpreter_Impl: Sized + windows_core::IUnknownImpl { fn InitGrammar(&self, pszgrammarname: &windows_core::PCWSTR, pvgrammardata: *const *const core::ffi::c_void) -> windows_core::Result<()>; fn Interpret(&self, pphrase: Option<&ISpPhraseBuilder>, ulfirstelement: u32, ulcountofelements: u32, psite: Option<&ISpCFGInterpreterSite>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpCFGInterpreter {} impl ISpCFGInterpreter_Vtbl { - pub const fn new() -> ISpCFGInterpreter_Vtbl - where - Identity: ISpCFGInterpreter_Impl, - { - unsafe extern "system" fn InitGrammar(this: *mut core::ffi::c_void, pszgrammarname: windows_core::PCWSTR, pvgrammardata: *const *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpCFGInterpreter_Impl, - { + pub const fn new() -> ISpCFGInterpreter_Vtbl { + unsafe extern "system" fn InitGrammar(this: *mut core::ffi::c_void, pszgrammarname: windows_core::PCWSTR, pvgrammardata: *const *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpCFGInterpreter_Impl::InitGrammar(this, core::mem::transmute(&pszgrammarname), core::mem::transmute_copy(&pvgrammardata)).into() } - unsafe extern "system" fn Interpret(this: *mut core::ffi::c_void, pphrase: *mut core::ffi::c_void, ulfirstelement: u32, ulcountofelements: u32, psite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpCFGInterpreter_Impl, - { + unsafe extern "system" fn Interpret(this: *mut core::ffi::c_void, pphrase: *mut core::ffi::c_void, ulfirstelement: u32, ulcountofelements: u32, psite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpCFGInterpreter_Impl::Interpret(this, windows_core::from_raw_borrowed(&pphrase), core::mem::transmute_copy(&ulfirstelement), core::mem::transmute_copy(&ulcountofelements), windows_core::from_raw_borrowed(&psite)).into() } @@ -232,35 +166,23 @@ impl ISpCFGInterpreter_Vtbl { iid == &::IID } } -pub trait ISpCFGInterpreterSite_Impl: Sized { +pub trait ISpCFGInterpreterSite_Impl: Sized + windows_core::IUnknownImpl { fn AddTextReplacement(&self, preplace: *const SPPHRASEREPLACEMENT) -> windows_core::Result<()>; fn AddProperty(&self, pproperty: *const SPPHRASEPROPERTY) -> windows_core::Result<()>; fn GetResourceValue(&self, pszresourcename: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for ISpCFGInterpreterSite {} impl ISpCFGInterpreterSite_Vtbl { - pub const fn new() -> ISpCFGInterpreterSite_Vtbl - where - Identity: ISpCFGInterpreterSite_Impl, - { - unsafe extern "system" fn AddTextReplacement(this: *mut core::ffi::c_void, preplace: *const SPPHRASEREPLACEMENT) -> windows_core::HRESULT - where - Identity: ISpCFGInterpreterSite_Impl, - { + pub const fn new() -> ISpCFGInterpreterSite_Vtbl { + unsafe extern "system" fn AddTextReplacement(this: *mut core::ffi::c_void, preplace: *const SPPHRASEREPLACEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpCFGInterpreterSite_Impl::AddTextReplacement(this, core::mem::transmute_copy(&preplace)).into() } - unsafe extern "system" fn AddProperty(this: *mut core::ffi::c_void, pproperty: *const SPPHRASEPROPERTY) -> windows_core::HRESULT - where - Identity: ISpCFGInterpreterSite_Impl, - { + unsafe extern "system" fn AddProperty(this: *mut core::ffi::c_void, pproperty: *const SPPHRASEPROPERTY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpCFGInterpreterSite_Impl::AddProperty(this, core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn GetResourceValue(this: *mut core::ffi::c_void, pszresourcename: windows_core::PCWSTR, ppcomemresource: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpCFGInterpreterSite_Impl, - { + unsafe extern "system" fn GetResourceValue(this: *mut core::ffi::c_void, pszresourcename: windows_core::PCWSTR, ppcomemresource: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpCFGInterpreterSite_Impl::GetResourceValue(this, core::mem::transmute(&pszresourcename)) { Ok(ok__) => { @@ -286,14 +208,8 @@ pub trait ISpContainerLexicon_Impl: Sized + ISpLexicon_Impl { } impl windows_core::RuntimeName for ISpContainerLexicon {} impl ISpContainerLexicon_Vtbl { - pub const fn new() -> ISpContainerLexicon_Vtbl - where - Identity: ISpContainerLexicon_Impl, - { - unsafe extern "system" fn AddLexicon(this: *mut core::ffi::c_void, paddlexicon: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ISpContainerLexicon_Impl, - { + pub const fn new() -> ISpContainerLexicon_Vtbl { + unsafe extern "system" fn AddLexicon(this: *mut core::ffi::c_void, paddlexicon: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpContainerLexicon_Impl::AddLexicon(this, windows_core::from_raw_borrowed(&paddlexicon), core::mem::transmute_copy(&dwflags)).into() } @@ -303,7 +219,7 @@ impl ISpContainerLexicon_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpDataKey_Impl: Sized { +pub trait ISpDataKey_Impl: Sized + windows_core::IUnknownImpl { fn SetData(&self, pszvaluename: &windows_core::PCWSTR, cbdata: u32, pdata: *const u8) -> windows_core::Result<()>; fn GetData(&self, pszvaluename: &windows_core::PCWSTR, pcbdata: *mut u32, pdata: *mut u8) -> windows_core::Result<()>; fn SetStringValue(&self, pszvaluename: &windows_core::PCWSTR, pszvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -319,35 +235,20 @@ pub trait ISpDataKey_Impl: Sized { } impl windows_core::RuntimeName for ISpDataKey {} impl ISpDataKey_Vtbl { - pub const fn new() -> ISpDataKey_Vtbl - where - Identity: ISpDataKey_Impl, - { - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, cbdata: u32, pdata: *const u8) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + pub const fn new() -> ISpDataKey_Vtbl { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, cbdata: u32, pdata: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpDataKey_Impl::SetData(this, core::mem::transmute(&pszvaluename), core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, pcbdata: *mut u32, pdata: *mut u8) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, pcbdata: *mut u32, pdata: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpDataKey_Impl::GetData(this, core::mem::transmute(&pszvaluename), core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetStringValue(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, pszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn SetStringValue(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, pszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpDataKey_Impl::SetStringValue(this, core::mem::transmute(&pszvaluename), core::mem::transmute(&pszvalue)).into() } - unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, ppszvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, ppszvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpDataKey_Impl::GetStringValue(this, core::mem::transmute(&pszvaluename)) { Ok(ok__) => { @@ -357,24 +258,15 @@ impl ISpDataKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDWORD(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, dwvalue: u32) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn SetDWORD(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, dwvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpDataKey_Impl::SetDWORD(this, core::mem::transmute(&pszvaluename), core::mem::transmute_copy(&dwvalue)).into() } - unsafe extern "system" fn GetDWORD(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, pdwvalue: *mut u32) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn GetDWORD(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR, pdwvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpDataKey_Impl::GetDWORD(this, core::mem::transmute(&pszvaluename), core::mem::transmute_copy(&pdwvalue)).into() } - unsafe extern "system" fn OpenKey(this: *mut core::ffi::c_void, pszsubkeyname: windows_core::PCWSTR, ppsubkey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn OpenKey(this: *mut core::ffi::c_void, pszsubkeyname: windows_core::PCWSTR, ppsubkey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpDataKey_Impl::OpenKey(this, core::mem::transmute(&pszsubkeyname)) { Ok(ok__) => { @@ -384,10 +276,7 @@ impl ISpDataKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateKey(this: *mut core::ffi::c_void, pszsubkey: windows_core::PCWSTR, ppsubkey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn CreateKey(this: *mut core::ffi::c_void, pszsubkey: windows_core::PCWSTR, ppsubkey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpDataKey_Impl::CreateKey(this, core::mem::transmute(&pszsubkey)) { Ok(ok__) => { @@ -397,24 +286,15 @@ impl ISpDataKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteKey(this: *mut core::ffi::c_void, pszsubkey: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn DeleteKey(this: *mut core::ffi::c_void, pszsubkey: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpDataKey_Impl::DeleteKey(this, core::mem::transmute(&pszsubkey)).into() } - unsafe extern "system" fn DeleteValue(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn DeleteValue(this: *mut core::ffi::c_void, pszvaluename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpDataKey_Impl::DeleteValue(this, core::mem::transmute(&pszvaluename)).into() } - unsafe extern "system" fn EnumKeys(this: *mut core::ffi::c_void, index: u32, ppszsubkeyname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn EnumKeys(this: *mut core::ffi::c_void, index: u32, ppszsubkeyname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpDataKey_Impl::EnumKeys(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -424,10 +304,7 @@ impl ISpDataKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumValues(this: *mut core::ffi::c_void, index: u32, ppszvaluename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpDataKey_Impl, - { + unsafe extern "system" fn EnumValues(this: *mut core::ffi::c_void, index: u32, ppszvaluename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpDataKey_Impl::EnumValues(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -457,27 +334,18 @@ impl ISpDataKey_Vtbl { iid == &::IID } } -pub trait ISpDisplayAlternates_Impl: Sized { +pub trait ISpDisplayAlternates_Impl: Sized + windows_core::IUnknownImpl { fn GetDisplayAlternates(&self, pphrase: *const SPDISPLAYPHRASE, crequestcount: u32, ppcomemphrases: *mut *mut SPDISPLAYPHRASE, pcphrasesreturned: *mut u32) -> windows_core::Result<()>; fn SetFullStopTrailSpace(&self, ultrailspace: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpDisplayAlternates {} impl ISpDisplayAlternates_Vtbl { - pub const fn new() -> ISpDisplayAlternates_Vtbl - where - Identity: ISpDisplayAlternates_Impl, - { - unsafe extern "system" fn GetDisplayAlternates(this: *mut core::ffi::c_void, pphrase: *const SPDISPLAYPHRASE, crequestcount: u32, ppcomemphrases: *mut *mut SPDISPLAYPHRASE, pcphrasesreturned: *mut u32) -> windows_core::HRESULT - where - Identity: ISpDisplayAlternates_Impl, - { + pub const fn new() -> ISpDisplayAlternates_Vtbl { + unsafe extern "system" fn GetDisplayAlternates(this: *mut core::ffi::c_void, pphrase: *const SPDISPLAYPHRASE, crequestcount: u32, ppcomemphrases: *mut *mut SPDISPLAYPHRASE, pcphrasesreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpDisplayAlternates_Impl::GetDisplayAlternates(this, core::mem::transmute_copy(&pphrase), core::mem::transmute_copy(&crequestcount), core::mem::transmute_copy(&ppcomemphrases), core::mem::transmute_copy(&pcphrasesreturned)).into() } - unsafe extern "system" fn SetFullStopTrailSpace(this: *mut core::ffi::c_void, ultrailspace: u32) -> windows_core::HRESULT - where - Identity: ISpDisplayAlternates_Impl, - { + unsafe extern "system" fn SetFullStopTrailSpace(this: *mut core::ffi::c_void, ultrailspace: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpDisplayAlternates_Impl::SetFullStopTrailSpace(this, core::mem::transmute_copy(&ultrailspace)).into() } @@ -491,27 +359,18 @@ impl ISpDisplayAlternates_Vtbl { iid == &::IID } } -pub trait ISpEnginePronunciation_Impl: Sized { +pub trait ISpEnginePronunciation_Impl: Sized + windows_core::IUnknownImpl { fn Normalize(&self, pszword: &windows_core::PCWSTR, pszleftcontext: &windows_core::PCWSTR, pszrightcontext: &windows_core::PCWSTR, langid: u16, pnormalizationlist: *mut SPNORMALIZATIONLIST) -> windows_core::Result<()>; fn GetPronunciations(&self, pszword: &windows_core::PCWSTR, pszleftcontext: &windows_core::PCWSTR, pszrightcontext: &windows_core::PCWSTR, langid: u16, penginepronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpEnginePronunciation {} impl ISpEnginePronunciation_Vtbl { - pub const fn new() -> ISpEnginePronunciation_Vtbl - where - Identity: ISpEnginePronunciation_Impl, - { - unsafe extern "system" fn Normalize(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, pszleftcontext: windows_core::PCWSTR, pszrightcontext: windows_core::PCWSTR, langid: u16, pnormalizationlist: *mut SPNORMALIZATIONLIST) -> windows_core::HRESULT - where - Identity: ISpEnginePronunciation_Impl, - { + pub const fn new() -> ISpEnginePronunciation_Vtbl { + unsafe extern "system" fn Normalize(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, pszleftcontext: windows_core::PCWSTR, pszrightcontext: windows_core::PCWSTR, langid: u16, pnormalizationlist: *mut SPNORMALIZATIONLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpEnginePronunciation_Impl::Normalize(this, core::mem::transmute(&pszword), core::mem::transmute(&pszleftcontext), core::mem::transmute(&pszrightcontext), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&pnormalizationlist)).into() } - unsafe extern "system" fn GetPronunciations(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, pszleftcontext: windows_core::PCWSTR, pszrightcontext: windows_core::PCWSTR, langid: u16, penginepronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> windows_core::HRESULT - where - Identity: ISpEnginePronunciation_Impl, - { + unsafe extern "system" fn GetPronunciations(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, pszleftcontext: windows_core::PCWSTR, pszrightcontext: windows_core::PCWSTR, langid: u16, penginepronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpEnginePronunciation_Impl::GetPronunciations(this, core::mem::transmute(&pszword), core::mem::transmute(&pszleftcontext), core::mem::transmute(&pszrightcontext), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&penginepronunciationlist)).into() } @@ -525,19 +384,13 @@ impl ISpEnginePronunciation_Vtbl { iid == &::IID } } -pub trait ISpErrorLog_Impl: Sized { +pub trait ISpErrorLog_Impl: Sized + windows_core::IUnknownImpl { fn AddError(&self, llinenumber: i32, hr: windows_core::HRESULT, pszdescription: &windows_core::PCWSTR, pszhelpfile: &windows_core::PCWSTR, dwhelpcontext: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpErrorLog {} impl ISpErrorLog_Vtbl { - pub const fn new() -> ISpErrorLog_Vtbl - where - Identity: ISpErrorLog_Impl, - { - unsafe extern "system" fn AddError(this: *mut core::ffi::c_void, llinenumber: i32, hr: windows_core::HRESULT, pszdescription: windows_core::PCWSTR, pszhelpfile: windows_core::PCWSTR, dwhelpcontext: u32) -> windows_core::HRESULT - where - Identity: ISpErrorLog_Impl, - { + pub const fn new() -> ISpErrorLog_Vtbl { + unsafe extern "system" fn AddError(this: *mut core::ffi::c_void, llinenumber: i32, hr: windows_core::HRESULT, pszdescription: windows_core::PCWSTR, pszhelpfile: windows_core::PCWSTR, dwhelpcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpErrorLog_Impl::AddError(this, core::mem::transmute_copy(&llinenumber), core::mem::transmute_copy(&hr), core::mem::transmute(&pszdescription), core::mem::transmute(&pszhelpfile), core::mem::transmute_copy(&dwhelpcontext)).into() } @@ -547,27 +400,18 @@ impl ISpErrorLog_Vtbl { iid == &::IID } } -pub trait ISpEventSink_Impl: Sized { +pub trait ISpEventSink_Impl: Sized + windows_core::IUnknownImpl { fn AddEvents(&self, peventarray: *const SPEVENT, ulcount: u32) -> windows_core::Result<()>; fn GetEventInterest(&self, pulleventinterest: *mut u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpEventSink {} impl ISpEventSink_Vtbl { - pub const fn new() -> ISpEventSink_Vtbl - where - Identity: ISpEventSink_Impl, - { - unsafe extern "system" fn AddEvents(this: *mut core::ffi::c_void, peventarray: *const SPEVENT, ulcount: u32) -> windows_core::HRESULT - where - Identity: ISpEventSink_Impl, - { + pub const fn new() -> ISpEventSink_Vtbl { + unsafe extern "system" fn AddEvents(this: *mut core::ffi::c_void, peventarray: *const SPEVENT, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpEventSink_Impl::AddEvents(this, core::mem::transmute_copy(&peventarray), core::mem::transmute_copy(&ulcount)).into() } - unsafe extern "system" fn GetEventInterest(this: *mut core::ffi::c_void, pulleventinterest: *mut u64) -> windows_core::HRESULT - where - Identity: ISpEventSink_Impl, - { + unsafe extern "system" fn GetEventInterest(this: *mut core::ffi::c_void, pulleventinterest: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpEventSink_Impl::GetEventInterest(this, core::mem::transmute_copy(&pulleventinterest)).into() } @@ -588,28 +432,16 @@ pub trait ISpEventSource_Impl: Sized + ISpNotifySource_Impl { } impl windows_core::RuntimeName for ISpEventSource {} impl ISpEventSource_Vtbl { - pub const fn new() -> ISpEventSource_Vtbl - where - Identity: ISpEventSource_Impl, - { - unsafe extern "system" fn SetInterest(this: *mut core::ffi::c_void, ulleventinterest: u64, ullqueuedinterest: u64) -> windows_core::HRESULT - where - Identity: ISpEventSource_Impl, - { + pub const fn new() -> ISpEventSource_Vtbl { + unsafe extern "system" fn SetInterest(this: *mut core::ffi::c_void, ulleventinterest: u64, ullqueuedinterest: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpEventSource_Impl::SetInterest(this, core::mem::transmute_copy(&ulleventinterest), core::mem::transmute_copy(&ullqueuedinterest)).into() } - unsafe extern "system" fn GetEvents(this: *mut core::ffi::c_void, ulcount: u32, peventarray: *mut SPEVENT, pulfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ISpEventSource_Impl, - { + unsafe extern "system" fn GetEvents(this: *mut core::ffi::c_void, ulcount: u32, peventarray: *mut SPEVENT, pulfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpEventSource_Impl::GetEvents(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&peventarray), core::mem::transmute_copy(&pulfetched)).into() } - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pinfo: *mut SPEVENTSOURCEINFO) -> windows_core::HRESULT - where - Identity: ISpEventSource_Impl, - { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pinfo: *mut SPEVENTSOURCEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpEventSource_Impl::GetInfo(this, core::mem::transmute_copy(&pinfo)).into() } @@ -629,14 +461,8 @@ pub trait ISpEventSource2_Impl: Sized + ISpEventSource_Impl { } impl windows_core::RuntimeName for ISpEventSource2 {} impl ISpEventSource2_Vtbl { - pub const fn new() -> ISpEventSource2_Vtbl - where - Identity: ISpEventSource2_Impl, - { - unsafe extern "system" fn GetEventsEx(this: *mut core::ffi::c_void, ulcount: u32, peventarray: *mut SPEVENTEX, pulfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ISpEventSource2_Impl, - { + pub const fn new() -> ISpEventSource2_Vtbl { + unsafe extern "system" fn GetEventsEx(this: *mut core::ffi::c_void, ulcount: u32, peventarray: *mut SPEVENTEX, pulfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpEventSource2_Impl::GetEventsEx(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&peventarray), core::mem::transmute_copy(&pulfetched)).into() } @@ -655,21 +481,12 @@ pub trait ISpGramCompBackend_Impl: Sized + ISpGrammarBuilder_Impl { impl windows_core::RuntimeName for ISpGramCompBackend {} #[cfg(feature = "Win32_System_Com")] impl ISpGramCompBackend_Vtbl { - pub const fn new() -> ISpGramCompBackend_Vtbl - where - Identity: ISpGramCompBackend_Impl, - { - unsafe extern "system" fn SetSaveObjects(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, perrorlog: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpGramCompBackend_Impl, - { + pub const fn new() -> ISpGramCompBackend_Vtbl { + unsafe extern "system" fn SetSaveObjects(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, perrorlog: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGramCompBackend_Impl::SetSaveObjects(this, windows_core::from_raw_borrowed(&pstream), windows_core::from_raw_borrowed(&perrorlog)).into() } - unsafe extern "system" fn InitFromBinaryGrammar(this: *mut core::ffi::c_void, pbinarydata: *const SPBINARYGRAMMAR) -> windows_core::HRESULT - where - Identity: ISpGramCompBackend_Impl, - { + unsafe extern "system" fn InitFromBinaryGrammar(this: *mut core::ffi::c_void, pbinarydata: *const SPBINARYGRAMMAR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGramCompBackend_Impl::InitFromBinaryGrammar(this, core::mem::transmute_copy(&pbinarydata)).into() } @@ -683,7 +500,7 @@ impl ISpGramCompBackend_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpGrammarBuilder_Impl: Sized { +pub trait ISpGrammarBuilder_Impl: Sized + windows_core::IUnknownImpl { fn ResetGrammar(&self, newlanguage: u16) -> windows_core::Result<()>; fn GetRule(&self, pszrulename: &windows_core::PCWSTR, dwruleid: u32, dwattributes: u32, fcreateifnotexist: super::super::Foundation::BOOL, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::Result<()>; fn ClearRule(&self, hstate: SPSTATEHANDLE) -> windows_core::Result<()>; @@ -695,63 +512,36 @@ pub trait ISpGrammarBuilder_Impl: Sized { } impl windows_core::RuntimeName for ISpGrammarBuilder {} impl ISpGrammarBuilder_Vtbl { - pub const fn new() -> ISpGrammarBuilder_Vtbl - where - Identity: ISpGrammarBuilder_Impl, - { - unsafe extern "system" fn ResetGrammar(this: *mut core::ffi::c_void, newlanguage: u16) -> windows_core::HRESULT - where - Identity: ISpGrammarBuilder_Impl, - { + pub const fn new() -> ISpGrammarBuilder_Vtbl { + unsafe extern "system" fn ResetGrammar(this: *mut core::ffi::c_void, newlanguage: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder_Impl::ResetGrammar(this, core::mem::transmute_copy(&newlanguage)).into() } - unsafe extern "system" fn GetRule(this: *mut core::ffi::c_void, pszrulename: windows_core::PCWSTR, dwruleid: u32, dwattributes: u32, fcreateifnotexist: super::super::Foundation::BOOL, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::HRESULT - where - Identity: ISpGrammarBuilder_Impl, - { + unsafe extern "system" fn GetRule(this: *mut core::ffi::c_void, pszrulename: windows_core::PCWSTR, dwruleid: u32, dwattributes: u32, fcreateifnotexist: super::super::Foundation::BOOL, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder_Impl::GetRule(this, core::mem::transmute(&pszrulename), core::mem::transmute_copy(&dwruleid), core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&fcreateifnotexist), core::mem::transmute_copy(&phinitialstate)).into() } - unsafe extern "system" fn ClearRule(this: *mut core::ffi::c_void, hstate: SPSTATEHANDLE) -> windows_core::HRESULT - where - Identity: ISpGrammarBuilder_Impl, - { + unsafe extern "system" fn ClearRule(this: *mut core::ffi::c_void, hstate: SPSTATEHANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder_Impl::ClearRule(this, core::mem::transmute_copy(&hstate)).into() } - unsafe extern "system" fn CreateNewState(this: *mut core::ffi::c_void, hstate: SPSTATEHANDLE, phstate: *mut SPSTATEHANDLE) -> windows_core::HRESULT - where - Identity: ISpGrammarBuilder_Impl, - { + unsafe extern "system" fn CreateNewState(this: *mut core::ffi::c_void, hstate: SPSTATEHANDLE, phstate: *mut SPSTATEHANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder_Impl::CreateNewState(this, core::mem::transmute_copy(&hstate), core::mem::transmute_copy(&phstate)).into() } - unsafe extern "system" fn AddWordTransition(this: *mut core::ffi::c_void, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, psz: windows_core::PCWSTR, pszseparators: windows_core::PCWSTR, ewordtype: SPGRAMMARWORDTYPE, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::HRESULT - where - Identity: ISpGrammarBuilder_Impl, - { + unsafe extern "system" fn AddWordTransition(this: *mut core::ffi::c_void, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, psz: windows_core::PCWSTR, pszseparators: windows_core::PCWSTR, ewordtype: SPGRAMMARWORDTYPE, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder_Impl::AddWordTransition(this, core::mem::transmute_copy(&hfromstate), core::mem::transmute_copy(&htostate), core::mem::transmute(&psz), core::mem::transmute(&pszseparators), core::mem::transmute_copy(&ewordtype), core::mem::transmute_copy(&weight), core::mem::transmute_copy(&ppropinfo)).into() } - unsafe extern "system" fn AddRuleTransition(this: *mut core::ffi::c_void, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, hrule: SPSTATEHANDLE, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::HRESULT - where - Identity: ISpGrammarBuilder_Impl, - { + unsafe extern "system" fn AddRuleTransition(this: *mut core::ffi::c_void, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, hrule: SPSTATEHANDLE, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder_Impl::AddRuleTransition(this, core::mem::transmute_copy(&hfromstate), core::mem::transmute_copy(&htostate), core::mem::transmute_copy(&hrule), core::mem::transmute_copy(&weight), core::mem::transmute_copy(&ppropinfo)).into() } - unsafe extern "system" fn AddResource(this: *mut core::ffi::c_void, hrulestate: SPSTATEHANDLE, pszresourcename: windows_core::PCWSTR, pszresourcevalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpGrammarBuilder_Impl, - { + unsafe extern "system" fn AddResource(this: *mut core::ffi::c_void, hrulestate: SPSTATEHANDLE, pszresourcename: windows_core::PCWSTR, pszresourcevalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder_Impl::AddResource(this, core::mem::transmute_copy(&hrulestate), core::mem::transmute(&pszresourcename), core::mem::transmute(&pszresourcevalue)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ISpGrammarBuilder_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder_Impl::Commit(this, core::mem::transmute_copy(&dwreserved)).into() } @@ -771,27 +561,18 @@ impl ISpGrammarBuilder_Vtbl { iid == &::IID } } -pub trait ISpGrammarBuilder2_Impl: Sized { +pub trait ISpGrammarBuilder2_Impl: Sized + windows_core::IUnknownImpl { fn AddTextSubset(&self, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, psz: &windows_core::PCWSTR, ematchmode: SPMATCHINGMODE) -> windows_core::Result<()>; fn SetPhoneticAlphabet(&self, phoneticalphabet: PHONETICALPHABET) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpGrammarBuilder2 {} impl ISpGrammarBuilder2_Vtbl { - pub const fn new() -> ISpGrammarBuilder2_Vtbl - where - Identity: ISpGrammarBuilder2_Impl, - { - unsafe extern "system" fn AddTextSubset(this: *mut core::ffi::c_void, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, psz: windows_core::PCWSTR, ematchmode: SPMATCHINGMODE) -> windows_core::HRESULT - where - Identity: ISpGrammarBuilder2_Impl, - { + pub const fn new() -> ISpGrammarBuilder2_Vtbl { + unsafe extern "system" fn AddTextSubset(this: *mut core::ffi::c_void, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, psz: windows_core::PCWSTR, ematchmode: SPMATCHINGMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder2_Impl::AddTextSubset(this, core::mem::transmute_copy(&hfromstate), core::mem::transmute_copy(&htostate), core::mem::transmute(&psz), core::mem::transmute_copy(&ematchmode)).into() } - unsafe extern "system" fn SetPhoneticAlphabet(this: *mut core::ffi::c_void, phoneticalphabet: PHONETICALPHABET) -> windows_core::HRESULT - where - Identity: ISpGrammarBuilder2_Impl, - { + unsafe extern "system" fn SetPhoneticAlphabet(this: *mut core::ffi::c_void, phoneticalphabet: PHONETICALPHABET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder2_Impl::SetPhoneticAlphabet(this, core::mem::transmute_copy(&phoneticalphabet)).into() } @@ -806,21 +587,15 @@ impl ISpGrammarBuilder2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISpGrammarCompiler_Impl: Sized { +pub trait ISpGrammarCompiler_Impl: Sized + windows_core::IUnknownImpl { fn CompileStream(&self, psource: Option<&super::super::System::Com::IStream>, pdest: Option<&super::super::System::Com::IStream>, pheader: Option<&super::super::System::Com::IStream>, preserved: Option<&windows_core::IUnknown>, perrorlog: Option<&ISpErrorLog>, dwflags: u32) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ISpGrammarCompiler {} #[cfg(feature = "Win32_System_Com")] impl ISpGrammarCompiler_Vtbl { - pub const fn new() -> ISpGrammarCompiler_Vtbl - where - Identity: ISpGrammarCompiler_Impl, - { - unsafe extern "system" fn CompileStream(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, pdest: *mut core::ffi::c_void, pheader: *mut core::ffi::c_void, preserved: *mut core::ffi::c_void, perrorlog: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ISpGrammarCompiler_Impl, - { + pub const fn new() -> ISpGrammarCompiler_Vtbl { + unsafe extern "system" fn CompileStream(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, pdest: *mut core::ffi::c_void, pheader: *mut core::ffi::c_void, preserved: *mut core::ffi::c_void, perrorlog: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarCompiler_Impl::CompileStream(this, windows_core::from_raw_borrowed(&psource), windows_core::from_raw_borrowed(&pdest), windows_core::from_raw_borrowed(&pheader), windows_core::from_raw_borrowed(&preserved), windows_core::from_raw_borrowed(&perrorlog), core::mem::transmute_copy(&dwflags)).into() } @@ -830,27 +605,18 @@ impl ISpGrammarCompiler_Vtbl { iid == &::IID } } -pub trait ISpITNProcessor_Impl: Sized { +pub trait ISpITNProcessor_Impl: Sized + windows_core::IUnknownImpl { fn LoadITNGrammar(&self, pszclsid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ITNPhrase(&self, pphrase: Option<&ISpPhraseBuilder>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpITNProcessor {} impl ISpITNProcessor_Vtbl { - pub const fn new() -> ISpITNProcessor_Vtbl - where - Identity: ISpITNProcessor_Impl, - { - unsafe extern "system" fn LoadITNGrammar(this: *mut core::ffi::c_void, pszclsid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpITNProcessor_Impl, - { + pub const fn new() -> ISpITNProcessor_Vtbl { + unsafe extern "system" fn LoadITNGrammar(this: *mut core::ffi::c_void, pszclsid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpITNProcessor_Impl::LoadITNGrammar(this, core::mem::transmute(&pszclsid)).into() } - unsafe extern "system" fn ITNPhrase(this: *mut core::ffi::c_void, pphrase: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpITNProcessor_Impl, - { + unsafe extern "system" fn ITNPhrase(this: *mut core::ffi::c_void, pphrase: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpITNProcessor_Impl::ITNPhrase(this, windows_core::from_raw_borrowed(&pphrase)).into() } @@ -864,7 +630,7 @@ impl ISpITNProcessor_Vtbl { iid == &::IID } } -pub trait ISpLexicon_Impl: Sized { +pub trait ISpLexicon_Impl: Sized + windows_core::IUnknownImpl { fn GetPronunciations(&self, pszword: &windows_core::PCWSTR, langid: u16, dwflags: u32, pwordpronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> windows_core::Result<()>; fn AddPronunciation(&self, pszword: &windows_core::PCWSTR, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: *const u16) -> windows_core::Result<()>; fn RemovePronunciation(&self, pszword: &windows_core::PCWSTR, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: *const u16) -> windows_core::Result<()>; @@ -874,49 +640,28 @@ pub trait ISpLexicon_Impl: Sized { } impl windows_core::RuntimeName for ISpLexicon {} impl ISpLexicon_Vtbl { - pub const fn new() -> ISpLexicon_Vtbl - where - Identity: ISpLexicon_Impl, - { - unsafe extern "system" fn GetPronunciations(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, langid: u16, dwflags: u32, pwordpronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> windows_core::HRESULT - where - Identity: ISpLexicon_Impl, - { + pub const fn new() -> ISpLexicon_Vtbl { + unsafe extern "system" fn GetPronunciations(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, langid: u16, dwflags: u32, pwordpronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpLexicon_Impl::GetPronunciations(this, core::mem::transmute(&pszword), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pwordpronunciationlist)).into() } - unsafe extern "system" fn AddPronunciation(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: *const u16) -> windows_core::HRESULT - where - Identity: ISpLexicon_Impl, - { + unsafe extern "system" fn AddPronunciation(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpLexicon_Impl::AddPronunciation(this, core::mem::transmute(&pszword), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&epartofspeech), core::mem::transmute_copy(&pszpronunciation)).into() } - unsafe extern "system" fn RemovePronunciation(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: *const u16) -> windows_core::HRESULT - where - Identity: ISpLexicon_Impl, - { + unsafe extern "system" fn RemovePronunciation(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, langid: u16, epartofspeech: SPPARTOFSPEECH, pszpronunciation: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpLexicon_Impl::RemovePronunciation(this, core::mem::transmute(&pszword), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&epartofspeech), core::mem::transmute_copy(&pszpronunciation)).into() } - unsafe extern "system" fn GetGeneration(this: *mut core::ffi::c_void, pdwgeneration: *mut u32) -> windows_core::HRESULT - where - Identity: ISpLexicon_Impl, - { + unsafe extern "system" fn GetGeneration(this: *mut core::ffi::c_void, pdwgeneration: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpLexicon_Impl::GetGeneration(this, core::mem::transmute_copy(&pdwgeneration)).into() } - unsafe extern "system" fn GetGenerationChange(this: *mut core::ffi::c_void, dwflags: u32, pdwgeneration: *mut u32, pwordlist: *mut SPWORDLIST) -> windows_core::HRESULT - where - Identity: ISpLexicon_Impl, - { + unsafe extern "system" fn GetGenerationChange(this: *mut core::ffi::c_void, dwflags: u32, pdwgeneration: *mut u32, pwordlist: *mut SPWORDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpLexicon_Impl::GetGenerationChange(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pdwgeneration), core::mem::transmute_copy(&pwordlist)).into() } - unsafe extern "system" fn GetWords(this: *mut core::ffi::c_void, dwflags: u32, pdwgeneration: *mut u32, pdwcookie: *mut u32, pwordlist: *mut SPWORDLIST) -> windows_core::HRESULT - where - Identity: ISpLexicon_Impl, - { + unsafe extern "system" fn GetWords(this: *mut core::ffi::c_void, dwflags: u32, pdwgeneration: *mut u32, pdwcookie: *mut u32, pwordlist: *mut SPWORDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpLexicon_Impl::GetWords(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pdwgeneration), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&pwordlist)).into() } @@ -946,42 +691,24 @@ pub trait ISpMMSysAudio_Impl: Sized + ISpAudio_Impl { impl windows_core::RuntimeName for ISpMMSysAudio {} #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] impl ISpMMSysAudio_Vtbl { - pub const fn new() -> ISpMMSysAudio_Vtbl - where - Identity: ISpMMSysAudio_Impl, - { - unsafe extern "system" fn GetDeviceId(this: *mut core::ffi::c_void, pudeviceid: *mut u32) -> windows_core::HRESULT - where - Identity: ISpMMSysAudio_Impl, - { + pub const fn new() -> ISpMMSysAudio_Vtbl { + unsafe extern "system" fn GetDeviceId(this: *mut core::ffi::c_void, pudeviceid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpMMSysAudio_Impl::GetDeviceId(this, core::mem::transmute_copy(&pudeviceid)).into() } - unsafe extern "system" fn SetDeviceId(this: *mut core::ffi::c_void, udeviceid: u32) -> windows_core::HRESULT - where - Identity: ISpMMSysAudio_Impl, - { + unsafe extern "system" fn SetDeviceId(this: *mut core::ffi::c_void, udeviceid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpMMSysAudio_Impl::SetDeviceId(this, core::mem::transmute_copy(&udeviceid)).into() } - unsafe extern "system" fn GetMMHandle(this: *mut core::ffi::c_void, phandle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpMMSysAudio_Impl, - { + unsafe extern "system" fn GetMMHandle(this: *mut core::ffi::c_void, phandle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpMMSysAudio_Impl::GetMMHandle(this, core::mem::transmute_copy(&phandle)).into() } - unsafe extern "system" fn GetLineId(this: *mut core::ffi::c_void, pulineid: *mut u32) -> windows_core::HRESULT - where - Identity: ISpMMSysAudio_Impl, - { + unsafe extern "system" fn GetLineId(this: *mut core::ffi::c_void, pulineid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpMMSysAudio_Impl::GetLineId(this, core::mem::transmute_copy(&pulineid)).into() } - unsafe extern "system" fn SetLineId(this: *mut core::ffi::c_void, ulineid: u32) -> windows_core::HRESULT - where - Identity: ISpMMSysAudio_Impl, - { + unsafe extern "system" fn SetLineId(this: *mut core::ffi::c_void, ulineid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpMMSysAudio_Impl::SetLineId(this, core::mem::transmute_copy(&ulineid)).into() } @@ -1023,19 +750,13 @@ impl ISpNotifyCallback { unsafe { windows_core::ScopedInterface::new(core::mem::transmute(&this.vtable)) } } } -pub trait ISpNotifySink_Impl: Sized { +pub trait ISpNotifySink_Impl: Sized + windows_core::IUnknownImpl { fn Notify(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpNotifySink {} impl ISpNotifySink_Vtbl { - pub const fn new() -> ISpNotifySink_Vtbl - where - Identity: ISpNotifySink_Impl, - { - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpNotifySink_Impl, - { + pub const fn new() -> ISpNotifySink_Vtbl { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifySink_Impl::Notify(this).into() } @@ -1045,7 +766,7 @@ impl ISpNotifySink_Vtbl { iid == &::IID } } -pub trait ISpNotifySource_Impl: Sized { +pub trait ISpNotifySource_Impl: Sized + windows_core::IUnknownImpl { fn SetNotifySink(&self, pnotifysink: Option<&ISpNotifySink>) -> windows_core::Result<()>; fn SetNotifyWindowMessage(&self, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn SetNotifyCallbackFunction(&self, pfncallback: *mut SPNOTIFYCALLBACK, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; @@ -1056,56 +777,32 @@ pub trait ISpNotifySource_Impl: Sized { } impl windows_core::RuntimeName for ISpNotifySource {} impl ISpNotifySource_Vtbl { - pub const fn new() -> ISpNotifySource_Vtbl - where - Identity: ISpNotifySource_Impl, - { - unsafe extern "system" fn SetNotifySink(this: *mut core::ffi::c_void, pnotifysink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpNotifySource_Impl, - { + pub const fn new() -> ISpNotifySource_Vtbl { + unsafe extern "system" fn SetNotifySink(this: *mut core::ffi::c_void, pnotifysink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifySource_Impl::SetNotifySink(this, windows_core::from_raw_borrowed(&pnotifysink)).into() } - unsafe extern "system" fn SetNotifyWindowMessage(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ISpNotifySource_Impl, - { + unsafe extern "system" fn SetNotifyWindowMessage(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifySource_Impl::SetNotifyWindowMessage(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn SetNotifyCallbackFunction(this: *mut core::ffi::c_void, pfncallback: *mut SPNOTIFYCALLBACK, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ISpNotifySource_Impl, - { + unsafe extern "system" fn SetNotifyCallbackFunction(this: *mut core::ffi::c_void, pfncallback: *mut SPNOTIFYCALLBACK, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifySource_Impl::SetNotifyCallbackFunction(this, core::mem::transmute_copy(&pfncallback), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn SetNotifyCallbackInterface(this: *mut core::ffi::c_void, pspcallback: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ISpNotifySource_Impl, - { + unsafe extern "system" fn SetNotifyCallbackInterface(this: *mut core::ffi::c_void, pspcallback: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifySource_Impl::SetNotifyCallbackInterface(this, windows_core::from_raw_borrowed(&pspcallback), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn SetNotifyWin32Event(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpNotifySource_Impl, - { + unsafe extern "system" fn SetNotifyWin32Event(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifySource_Impl::SetNotifyWin32Event(this).into() } - unsafe extern "system" fn WaitForNotifyEvent(this: *mut core::ffi::c_void, dwmilliseconds: u32) -> windows_core::HRESULT - where - Identity: ISpNotifySource_Impl, - { + unsafe extern "system" fn WaitForNotifyEvent(this: *mut core::ffi::c_void, dwmilliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifySource_Impl::WaitForNotifyEvent(this, core::mem::transmute_copy(&dwmilliseconds)).into() } - unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: ISpNotifySource_Impl, - { + unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifySource_Impl::GetNotifyEventHandle(this) } @@ -1134,49 +831,28 @@ pub trait ISpNotifyTranslator_Impl: Sized + ISpNotifySink_Impl { } impl windows_core::RuntimeName for ISpNotifyTranslator {} impl ISpNotifyTranslator_Vtbl { - pub const fn new() -> ISpNotifyTranslator_Vtbl - where - Identity: ISpNotifyTranslator_Impl, - { - unsafe extern "system" fn InitWindowMessage(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ISpNotifyTranslator_Impl, - { + pub const fn new() -> ISpNotifyTranslator_Vtbl { + unsafe extern "system" fn InitWindowMessage(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifyTranslator_Impl::InitWindowMessage(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn InitCallback(this: *mut core::ffi::c_void, pfncallback: *mut SPNOTIFYCALLBACK, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ISpNotifyTranslator_Impl, - { + unsafe extern "system" fn InitCallback(this: *mut core::ffi::c_void, pfncallback: *mut SPNOTIFYCALLBACK, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifyTranslator_Impl::InitCallback(this, core::mem::transmute_copy(&pfncallback), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn InitSpNotifyCallback(this: *mut core::ffi::c_void, pspcallback: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ISpNotifyTranslator_Impl, - { + unsafe extern "system" fn InitSpNotifyCallback(this: *mut core::ffi::c_void, pspcallback: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifyTranslator_Impl::InitSpNotifyCallback(this, windows_core::from_raw_borrowed(&pspcallback), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn InitWin32Event(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, fclosehandleonrelease: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpNotifyTranslator_Impl, - { + unsafe extern "system" fn InitWin32Event(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, fclosehandleonrelease: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifyTranslator_Impl::InitWin32Event(this, core::mem::transmute_copy(&hevent), core::mem::transmute_copy(&fclosehandleonrelease)).into() } - unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwmilliseconds: u32) -> windows_core::HRESULT - where - Identity: ISpNotifyTranslator_Impl, - { + unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwmilliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifyTranslator_Impl::Wait(this, core::mem::transmute_copy(&dwmilliseconds)).into() } - unsafe extern "system" fn GetEventHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: ISpNotifyTranslator_Impl, - { + unsafe extern "system" fn GetEventHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifyTranslator_Impl::GetEventHandle(this) } @@ -1208,21 +884,12 @@ pub trait ISpObjectToken_Impl: Sized + ISpDataKey_Impl { } impl windows_core::RuntimeName for ISpObjectToken {} impl ISpObjectToken_Vtbl { - pub const fn new() -> ISpObjectToken_Vtbl - where - Identity: ISpObjectToken_Impl, - { - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, pszcategoryid: windows_core::PCWSTR, psztokenid: windows_core::PCWSTR, fcreateifnotexist: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpObjectToken_Impl, - { + pub const fn new() -> ISpObjectToken_Vtbl { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, pszcategoryid: windows_core::PCWSTR, psztokenid: windows_core::PCWSTR, fcreateifnotexist: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::SetId(this, core::mem::transmute(&pszcategoryid), core::mem::transmute(&psztokenid), core::mem::transmute_copy(&fcreateifnotexist)).into() } - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, ppszcomemtokenid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpObjectToken_Impl, - { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, ppszcomemtokenid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpObjectToken_Impl::GetId(this) { Ok(ok__) => { @@ -1232,10 +899,7 @@ impl ISpObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, pptokencategory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpObjectToken_Impl, - { + unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, pptokencategory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpObjectToken_Impl::GetCategory(this) { Ok(ok__) => { @@ -1245,17 +909,11 @@ impl ISpObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, dwclscontext: u32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpObjectToken_Impl, - { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, dwclscontext: u32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::CreateInstance(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&dwclscontext), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn GetStorageFileName(this: *mut core::ffi::c_void, clsidcaller: *const windows_core::GUID, pszvaluename: windows_core::PCWSTR, pszfilenamespecifier: windows_core::PCWSTR, nfolder: u32, ppszfilepath: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpObjectToken_Impl, - { + unsafe extern "system" fn GetStorageFileName(this: *mut core::ffi::c_void, clsidcaller: *const windows_core::GUID, pszvaluename: windows_core::PCWSTR, pszfilenamespecifier: windows_core::PCWSTR, nfolder: u32, ppszfilepath: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpObjectToken_Impl::GetStorageFileName(this, core::mem::transmute_copy(&clsidcaller), core::mem::transmute(&pszvaluename), core::mem::transmute(&pszfilenamespecifier), core::mem::transmute_copy(&nfolder)) { Ok(ok__) => { @@ -1265,38 +923,23 @@ impl ISpObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveStorageFileName(this: *mut core::ffi::c_void, clsidcaller: *const windows_core::GUID, pszkeyname: windows_core::PCWSTR, fdeletefile: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpObjectToken_Impl, - { + unsafe extern "system" fn RemoveStorageFileName(this: *mut core::ffi::c_void, clsidcaller: *const windows_core::GUID, pszkeyname: windows_core::PCWSTR, fdeletefile: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::RemoveStorageFileName(this, core::mem::transmute_copy(&clsidcaller), core::mem::transmute(&pszkeyname), core::mem::transmute_copy(&fdeletefile)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, pclsidcaller: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISpObjectToken_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, pclsidcaller: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::Remove(this, core::mem::transmute_copy(&pclsidcaller)).into() } - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: *mut core::ffi::c_void, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpObjectToken_Impl, - { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: *mut core::ffi::c_void, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::IsUISupported(this, core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), windows_core::from_raw_borrowed(&punkobject), core::mem::transmute_copy(&pfsupported)).into() } - unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: windows_core::PCWSTR, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpObjectToken_Impl, - { + unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: windows_core::PCWSTR, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::DisplayUI(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&psztitle), core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), windows_core::from_raw_borrowed(&punkobject)).into() } - unsafe extern "system" fn MatchesAttributes(this: *mut core::ffi::c_void, pszattributes: windows_core::PCWSTR, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpObjectToken_Impl, - { + unsafe extern "system" fn MatchesAttributes(this: *mut core::ffi::c_void, pszattributes: windows_core::PCWSTR, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::MatchesAttributes(this, core::mem::transmute(&pszattributes), core::mem::transmute_copy(&pfmatches)).into() } @@ -1328,21 +971,12 @@ pub trait ISpObjectTokenCategory_Impl: Sized + ISpDataKey_Impl { } impl windows_core::RuntimeName for ISpObjectTokenCategory {} impl ISpObjectTokenCategory_Vtbl { - pub const fn new() -> ISpObjectTokenCategory_Vtbl - where - Identity: ISpObjectTokenCategory_Impl, - { - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, pszcategoryid: windows_core::PCWSTR, fcreateifnotexist: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpObjectTokenCategory_Impl, - { + pub const fn new() -> ISpObjectTokenCategory_Vtbl { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, pszcategoryid: windows_core::PCWSTR, fcreateifnotexist: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectTokenCategory_Impl::SetId(this, core::mem::transmute(&pszcategoryid), core::mem::transmute_copy(&fcreateifnotexist)).into() } - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, ppszcomemcategoryid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpObjectTokenCategory_Impl, - { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, ppszcomemcategoryid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpObjectTokenCategory_Impl::GetId(this) { Ok(ok__) => { @@ -1352,10 +986,7 @@ impl ISpObjectTokenCategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataKey(this: *mut core::ffi::c_void, spdkl: SPDATAKEYLOCATION, ppdatakey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpObjectTokenCategory_Impl, - { + unsafe extern "system" fn GetDataKey(this: *mut core::ffi::c_void, spdkl: SPDATAKEYLOCATION, ppdatakey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpObjectTokenCategory_Impl::GetDataKey(this, core::mem::transmute_copy(&spdkl)) { Ok(ok__) => { @@ -1365,10 +996,7 @@ impl ISpObjectTokenCategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumTokens(this: *mut core::ffi::c_void, pzsreqattribs: windows_core::PCWSTR, pszoptattribs: windows_core::PCWSTR, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpObjectTokenCategory_Impl, - { + unsafe extern "system" fn EnumTokens(this: *mut core::ffi::c_void, pzsreqattribs: windows_core::PCWSTR, pszoptattribs: windows_core::PCWSTR, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpObjectTokenCategory_Impl::EnumTokens(this, core::mem::transmute(&pzsreqattribs), core::mem::transmute(&pszoptattribs)) { Ok(ok__) => { @@ -1378,17 +1006,11 @@ impl ISpObjectTokenCategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultTokenId(this: *mut core::ffi::c_void, psztokenid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpObjectTokenCategory_Impl, - { + unsafe extern "system" fn SetDefaultTokenId(this: *mut core::ffi::c_void, psztokenid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectTokenCategory_Impl::SetDefaultTokenId(this, core::mem::transmute(&psztokenid)).into() } - unsafe extern "system" fn GetDefaultTokenId(this: *mut core::ffi::c_void, ppszcomemtokenid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpObjectTokenCategory_Impl, - { + unsafe extern "system" fn GetDefaultTokenId(this: *mut core::ffi::c_void, ppszcomemtokenid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpObjectTokenCategory_Impl::GetDefaultTokenId(this) { Ok(ok__) => { @@ -1421,42 +1043,24 @@ pub trait ISpObjectTokenEnumBuilder_Impl: Sized + IEnumSpObjectTokens_Impl { } impl windows_core::RuntimeName for ISpObjectTokenEnumBuilder {} impl ISpObjectTokenEnumBuilder_Vtbl { - pub const fn new() -> ISpObjectTokenEnumBuilder_Vtbl - where - Identity: ISpObjectTokenEnumBuilder_Impl, - { - unsafe extern "system" fn SetAttribs(this: *mut core::ffi::c_void, pszreqattribs: windows_core::PCWSTR, pszoptattribs: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpObjectTokenEnumBuilder_Impl, - { + pub const fn new() -> ISpObjectTokenEnumBuilder_Vtbl { + unsafe extern "system" fn SetAttribs(this: *mut core::ffi::c_void, pszreqattribs: windows_core::PCWSTR, pszoptattribs: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectTokenEnumBuilder_Impl::SetAttribs(this, core::mem::transmute(&pszreqattribs), core::mem::transmute(&pszoptattribs)).into() } - unsafe extern "system" fn AddTokens(this: *mut core::ffi::c_void, ctokens: u32, ptoken: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpObjectTokenEnumBuilder_Impl, - { + unsafe extern "system" fn AddTokens(this: *mut core::ffi::c_void, ctokens: u32, ptoken: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectTokenEnumBuilder_Impl::AddTokens(this, core::mem::transmute_copy(&ctokens), core::mem::transmute_copy(&ptoken)).into() } - unsafe extern "system" fn AddTokensFromDataKey(this: *mut core::ffi::c_void, pdatakey: *mut core::ffi::c_void, pszsubkey: windows_core::PCWSTR, pszcategoryid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpObjectTokenEnumBuilder_Impl, - { + unsafe extern "system" fn AddTokensFromDataKey(this: *mut core::ffi::c_void, pdatakey: *mut core::ffi::c_void, pszsubkey: windows_core::PCWSTR, pszcategoryid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectTokenEnumBuilder_Impl::AddTokensFromDataKey(this, windows_core::from_raw_borrowed(&pdatakey), core::mem::transmute(&pszsubkey), core::mem::transmute(&pszcategoryid)).into() } - unsafe extern "system" fn AddTokensFromTokenEnum(this: *mut core::ffi::c_void, ptokenenum: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpObjectTokenEnumBuilder_Impl, - { + unsafe extern "system" fn AddTokensFromTokenEnum(this: *mut core::ffi::c_void, ptokenenum: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectTokenEnumBuilder_Impl::AddTokensFromTokenEnum(this, windows_core::from_raw_borrowed(&ptokenenum)).into() } - unsafe extern "system" fn Sort(this: *mut core::ffi::c_void, psztokenidtolistfirst: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpObjectTokenEnumBuilder_Impl, - { + unsafe extern "system" fn Sort(this: *mut core::ffi::c_void, psztokenidtolistfirst: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectTokenEnumBuilder_Impl::Sort(this, core::mem::transmute(&psztokenidtolistfirst)).into() } @@ -1478,14 +1082,8 @@ pub trait ISpObjectTokenInit_Impl: Sized + ISpObjectToken_Impl { } impl windows_core::RuntimeName for ISpObjectTokenInit {} impl ISpObjectTokenInit_Vtbl { - pub const fn new() -> ISpObjectTokenInit_Vtbl - where - Identity: ISpObjectTokenInit_Impl, - { - unsafe extern "system" fn InitFromDataKey(this: *mut core::ffi::c_void, pszcategoryid: windows_core::PCWSTR, psztokenid: windows_core::PCWSTR, pdatakey: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpObjectTokenInit_Impl, - { + pub const fn new() -> ISpObjectTokenInit_Vtbl { + unsafe extern "system" fn InitFromDataKey(this: *mut core::ffi::c_void, pszcategoryid: windows_core::PCWSTR, psztokenid: windows_core::PCWSTR, pdatakey: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectTokenInit_Impl::InitFromDataKey(this, core::mem::transmute(&pszcategoryid), core::mem::transmute(&psztokenid), windows_core::from_raw_borrowed(&pdatakey)).into() } @@ -1495,27 +1093,18 @@ impl ISpObjectTokenInit_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ISpObjectWithToken_Impl: Sized { +pub trait ISpObjectWithToken_Impl: Sized + windows_core::IUnknownImpl { fn SetObjectToken(&self, ptoken: Option<&ISpObjectToken>) -> windows_core::Result<()>; fn GetObjectToken(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISpObjectWithToken {} impl ISpObjectWithToken_Vtbl { - pub const fn new() -> ISpObjectWithToken_Vtbl - where - Identity: ISpObjectWithToken_Impl, - { - unsafe extern "system" fn SetObjectToken(this: *mut core::ffi::c_void, ptoken: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpObjectWithToken_Impl, - { + pub const fn new() -> ISpObjectWithToken_Vtbl { + unsafe extern "system" fn SetObjectToken(this: *mut core::ffi::c_void, ptoken: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectWithToken_Impl::SetObjectToken(this, windows_core::from_raw_borrowed(&ptoken)).into() } - unsafe extern "system" fn GetObjectToken(this: *mut core::ffi::c_void, pptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpObjectWithToken_Impl, - { + unsafe extern "system" fn GetObjectToken(this: *mut core::ffi::c_void, pptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpObjectWithToken_Impl::GetObjectToken(this) { Ok(ok__) => { @@ -1541,14 +1130,8 @@ pub trait ISpPhoneConverter_Impl: Sized + ISpObjectWithToken_Impl { } impl windows_core::RuntimeName for ISpPhoneConverter {} impl ISpPhoneConverter_Vtbl { - pub const fn new() -> ISpPhoneConverter_Vtbl - where - Identity: ISpPhoneConverter_Impl, - { - unsafe extern "system" fn PhoneToId(this: *mut core::ffi::c_void, pszphone: windows_core::PCWSTR, pid: *mut u16) -> windows_core::HRESULT - where - Identity: ISpPhoneConverter_Impl, - { + pub const fn new() -> ISpPhoneConverter_Vtbl { + unsafe extern "system" fn PhoneToId(this: *mut core::ffi::c_void, pszphone: windows_core::PCWSTR, pid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhoneConverter_Impl::PhoneToId(this, core::mem::transmute(&pszphone)) { Ok(ok__) => { @@ -1558,10 +1141,7 @@ impl ISpPhoneConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IdToPhone(this: *mut core::ffi::c_void, pid: *const u16, pszphone: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpPhoneConverter_Impl, - { + unsafe extern "system" fn IdToPhone(this: *mut core::ffi::c_void, pid: *const u16, pszphone: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhoneConverter_Impl::IdToPhone(this, core::mem::transmute_copy(&pid), core::mem::transmute_copy(&pszphone)).into() } @@ -1571,7 +1151,7 @@ impl ISpPhoneConverter_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpPhoneticAlphabetConverter_Impl: Sized { +pub trait ISpPhoneticAlphabetConverter_Impl: Sized + windows_core::IUnknownImpl { fn GetLangId(&self) -> windows_core::Result; fn SetLangId(&self, langid: u16) -> windows_core::Result<()>; fn SAPI2UPS(&self, pszsapiid: *const u16, pszupsid: *mut u16, cmaxlength: u32) -> windows_core::Result<()>; @@ -1580,14 +1160,8 @@ pub trait ISpPhoneticAlphabetConverter_Impl: Sized { } impl windows_core::RuntimeName for ISpPhoneticAlphabetConverter {} impl ISpPhoneticAlphabetConverter_Vtbl { - pub const fn new() -> ISpPhoneticAlphabetConverter_Vtbl - where - Identity: ISpPhoneticAlphabetConverter_Impl, - { - unsafe extern "system" fn GetLangId(this: *mut core::ffi::c_void, plangid: *mut u16) -> windows_core::HRESULT - where - Identity: ISpPhoneticAlphabetConverter_Impl, - { + pub const fn new() -> ISpPhoneticAlphabetConverter_Vtbl { + unsafe extern "system" fn GetLangId(this: *mut core::ffi::c_void, plangid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhoneticAlphabetConverter_Impl::GetLangId(this) { Ok(ok__) => { @@ -1597,31 +1171,19 @@ impl ISpPhoneticAlphabetConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLangId(this: *mut core::ffi::c_void, langid: u16) -> windows_core::HRESULT - where - Identity: ISpPhoneticAlphabetConverter_Impl, - { + unsafe extern "system" fn SetLangId(this: *mut core::ffi::c_void, langid: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhoneticAlphabetConverter_Impl::SetLangId(this, core::mem::transmute_copy(&langid)).into() } - unsafe extern "system" fn SAPI2UPS(this: *mut core::ffi::c_void, pszsapiid: *const u16, pszupsid: *mut u16, cmaxlength: u32) -> windows_core::HRESULT - where - Identity: ISpPhoneticAlphabetConverter_Impl, - { + unsafe extern "system" fn SAPI2UPS(this: *mut core::ffi::c_void, pszsapiid: *const u16, pszupsid: *mut u16, cmaxlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhoneticAlphabetConverter_Impl::SAPI2UPS(this, core::mem::transmute_copy(&pszsapiid), core::mem::transmute_copy(&pszupsid), core::mem::transmute_copy(&cmaxlength)).into() } - unsafe extern "system" fn UPS2SAPI(this: *mut core::ffi::c_void, pszupsid: *const u16, pszsapiid: *mut u16, cmaxlength: u32) -> windows_core::HRESULT - where - Identity: ISpPhoneticAlphabetConverter_Impl, - { + unsafe extern "system" fn UPS2SAPI(this: *mut core::ffi::c_void, pszupsid: *const u16, pszsapiid: *mut u16, cmaxlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhoneticAlphabetConverter_Impl::UPS2SAPI(this, core::mem::transmute_copy(&pszupsid), core::mem::transmute_copy(&pszsapiid), core::mem::transmute_copy(&cmaxlength)).into() } - unsafe extern "system" fn GetMaxConvertLength(this: *mut core::ffi::c_void, csrclength: u32, bsapi2ups: super::super::Foundation::BOOL, pcmaxdestlength: *mut u32) -> windows_core::HRESULT - where - Identity: ISpPhoneticAlphabetConverter_Impl, - { + unsafe extern "system" fn GetMaxConvertLength(this: *mut core::ffi::c_void, csrclength: u32, bsapi2ups: super::super::Foundation::BOOL, pcmaxdestlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhoneticAlphabetConverter_Impl::GetMaxConvertLength(this, core::mem::transmute_copy(&csrclength), core::mem::transmute_copy(&bsapi2ups)) { Ok(ok__) => { @@ -1644,20 +1206,14 @@ impl ISpPhoneticAlphabetConverter_Vtbl { iid == &::IID } } -pub trait ISpPhoneticAlphabetSelection_Impl: Sized { +pub trait ISpPhoneticAlphabetSelection_Impl: Sized + windows_core::IUnknownImpl { fn IsAlphabetUPS(&self) -> windows_core::Result; fn SetAlphabetToUPS(&self, fforceups: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpPhoneticAlphabetSelection {} impl ISpPhoneticAlphabetSelection_Vtbl { - pub const fn new() -> ISpPhoneticAlphabetSelection_Vtbl - where - Identity: ISpPhoneticAlphabetSelection_Impl, - { - unsafe extern "system" fn IsAlphabetUPS(this: *mut core::ffi::c_void, pfisups: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpPhoneticAlphabetSelection_Impl, - { + pub const fn new() -> ISpPhoneticAlphabetSelection_Vtbl { + unsafe extern "system" fn IsAlphabetUPS(this: *mut core::ffi::c_void, pfisups: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhoneticAlphabetSelection_Impl::IsAlphabetUPS(this) { Ok(ok__) => { @@ -1667,10 +1223,7 @@ impl ISpPhoneticAlphabetSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlphabetToUPS(this: *mut core::ffi::c_void, fforceups: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpPhoneticAlphabetSelection_Impl, - { + unsafe extern "system" fn SetAlphabetToUPS(this: *mut core::ffi::c_void, fforceups: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhoneticAlphabetSelection_Impl::SetAlphabetToUPS(this, core::mem::transmute_copy(&fforceups)).into() } @@ -1684,7 +1237,7 @@ impl ISpPhoneticAlphabetSelection_Vtbl { iid == &::IID } } -pub trait ISpPhrase_Impl: Sized { +pub trait ISpPhrase_Impl: Sized + windows_core::IUnknownImpl { fn GetPhrase(&self) -> windows_core::Result<*mut SPPHRASE>; fn GetSerializedPhrase(&self) -> windows_core::Result<*mut SPSERIALIZEDPHRASE>; fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: super::super::Foundation::BOOL, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: *mut u8) -> windows_core::Result<()>; @@ -1692,14 +1245,8 @@ pub trait ISpPhrase_Impl: Sized { } impl windows_core::RuntimeName for ISpPhrase {} impl ISpPhrase_Vtbl { - pub const fn new() -> ISpPhrase_Vtbl - where - Identity: ISpPhrase_Impl, - { - unsafe extern "system" fn GetPhrase(this: *mut core::ffi::c_void, ppcomemphrase: *mut *mut SPPHRASE) -> windows_core::HRESULT - where - Identity: ISpPhrase_Impl, - { + pub const fn new() -> ISpPhrase_Vtbl { + unsafe extern "system" fn GetPhrase(this: *mut core::ffi::c_void, ppcomemphrase: *mut *mut SPPHRASE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhrase_Impl::GetPhrase(this) { Ok(ok__) => { @@ -1709,10 +1256,7 @@ impl ISpPhrase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSerializedPhrase(this: *mut core::ffi::c_void, ppcomemphrase: *mut *mut SPSERIALIZEDPHRASE) -> windows_core::HRESULT - where - Identity: ISpPhrase_Impl, - { + unsafe extern "system" fn GetSerializedPhrase(this: *mut core::ffi::c_void, ppcomemphrase: *mut *mut SPSERIALIZEDPHRASE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhrase_Impl::GetSerializedPhrase(this) { Ok(ok__) => { @@ -1722,17 +1266,11 @@ impl ISpPhrase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, ulstart: u32, ulcount: u32, fusetextreplacements: super::super::Foundation::BOOL, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: *mut u8) -> windows_core::HRESULT - where - Identity: ISpPhrase_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, ulstart: u32, ulcount: u32, fusetextreplacements: super::super::Foundation::BOOL, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhrase_Impl::GetText(this, core::mem::transmute_copy(&ulstart), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&fusetextreplacements), core::mem::transmute_copy(&ppszcomemtext), core::mem::transmute_copy(&pbdisplayattributes)).into() } - unsafe extern "system" fn Discard(this: *mut core::ffi::c_void, dwvaluetypes: u32) -> windows_core::HRESULT - where - Identity: ISpPhrase_Impl, - { + unsafe extern "system" fn Discard(this: *mut core::ffi::c_void, dwvaluetypes: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhrase_Impl::Discard(this, core::mem::transmute_copy(&dwvaluetypes)).into() } @@ -1758,28 +1296,16 @@ pub trait ISpPhrase2_Impl: Sized + ISpPhrase_Impl { impl windows_core::RuntimeName for ISpPhrase2 {} #[cfg(feature = "Win32_System_Com")] impl ISpPhrase2_Vtbl { - pub const fn new() -> ISpPhrase2_Vtbl - where - Identity: ISpPhrase2_Impl, - { - unsafe extern "system" fn GetXMLResult(this: *mut core::ffi::c_void, ppszcomemxmlresult: *mut windows_core::PWSTR, options: SPXMLRESULTOPTIONS) -> windows_core::HRESULT - where - Identity: ISpPhrase2_Impl, - { + pub const fn new() -> ISpPhrase2_Vtbl { + unsafe extern "system" fn GetXMLResult(this: *mut core::ffi::c_void, ppszcomemxmlresult: *mut windows_core::PWSTR, options: SPXMLRESULTOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhrase2_Impl::GetXMLResult(this, core::mem::transmute_copy(&ppszcomemxmlresult), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetXMLErrorInfo(this: *mut core::ffi::c_void, psemanticerrorinfo: *mut SPSEMANTICERRORINFO) -> windows_core::HRESULT - where - Identity: ISpPhrase2_Impl, - { + unsafe extern "system" fn GetXMLErrorInfo(this: *mut core::ffi::c_void, psemanticerrorinfo: *mut SPSEMANTICERRORINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhrase2_Impl::GetXMLErrorInfo(this, core::mem::transmute_copy(&psemanticerrorinfo)).into() } - unsafe extern "system" fn GetAudio(this: *mut core::ffi::c_void, ulstartelement: u32, celements: u32, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpPhrase2_Impl, - { + unsafe extern "system" fn GetAudio(this: *mut core::ffi::c_void, ulstartelement: u32, celements: u32, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhrase2_Impl::GetAudio(this, core::mem::transmute_copy(&ulstartelement), core::mem::transmute_copy(&celements)) { Ok(ok__) => { @@ -1806,21 +1332,12 @@ pub trait ISpPhraseAlt_Impl: Sized + ISpPhrase_Impl { } impl windows_core::RuntimeName for ISpPhraseAlt {} impl ISpPhraseAlt_Vtbl { - pub const fn new() -> ISpPhraseAlt_Vtbl - where - Identity: ISpPhraseAlt_Impl, - { - unsafe extern "system" fn GetAltInfo(this: *mut core::ffi::c_void, ppparent: *mut *mut core::ffi::c_void, pulstartelementinparent: *mut u32, pcelementsinparent: *mut u32, pcelementsinalt: *mut u32) -> windows_core::HRESULT - where - Identity: ISpPhraseAlt_Impl, - { + pub const fn new() -> ISpPhraseAlt_Vtbl { + unsafe extern "system" fn GetAltInfo(this: *mut core::ffi::c_void, ppparent: *mut *mut core::ffi::c_void, pulstartelementinparent: *mut u32, pcelementsinparent: *mut u32, pcelementsinalt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhraseAlt_Impl::GetAltInfo(this, core::mem::transmute_copy(&ppparent), core::mem::transmute_copy(&pulstartelementinparent), core::mem::transmute_copy(&pcelementsinparent), core::mem::transmute_copy(&pcelementsinalt)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpPhraseAlt_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhraseAlt_Impl::Commit(this).into() } @@ -1840,35 +1357,20 @@ pub trait ISpPhraseBuilder_Impl: Sized + ISpPhrase_Impl { } impl windows_core::RuntimeName for ISpPhraseBuilder {} impl ISpPhraseBuilder_Vtbl { - pub const fn new() -> ISpPhraseBuilder_Vtbl - where - Identity: ISpPhraseBuilder_Impl, - { - unsafe extern "system" fn InitFromPhrase(this: *mut core::ffi::c_void, pphrase: *const SPPHRASE) -> windows_core::HRESULT - where - Identity: ISpPhraseBuilder_Impl, - { + pub const fn new() -> ISpPhraseBuilder_Vtbl { + unsafe extern "system" fn InitFromPhrase(this: *mut core::ffi::c_void, pphrase: *const SPPHRASE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhraseBuilder_Impl::InitFromPhrase(this, core::mem::transmute_copy(&pphrase)).into() } - unsafe extern "system" fn InitFromSerializedPhrase(this: *mut core::ffi::c_void, pphrase: *const SPSERIALIZEDPHRASE) -> windows_core::HRESULT - where - Identity: ISpPhraseBuilder_Impl, - { + unsafe extern "system" fn InitFromSerializedPhrase(this: *mut core::ffi::c_void, pphrase: *const SPSERIALIZEDPHRASE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhraseBuilder_Impl::InitFromSerializedPhrase(this, core::mem::transmute_copy(&pphrase)).into() } - unsafe extern "system" fn AddElements(this: *mut core::ffi::c_void, celements: u32, pelement: *const SPPHRASEELEMENT) -> windows_core::HRESULT - where - Identity: ISpPhraseBuilder_Impl, - { + unsafe extern "system" fn AddElements(this: *mut core::ffi::c_void, celements: u32, pelement: *const SPPHRASEELEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhraseBuilder_Impl::AddElements(this, core::mem::transmute_copy(&celements), core::mem::transmute_copy(&pelement)).into() } - unsafe extern "system" fn AddRules(this: *mut core::ffi::c_void, hparent: SPPHRASERULEHANDLE, prule: *const SPPHRASERULE, phnewrule: *mut SPPHRASERULEHANDLE) -> windows_core::HRESULT - where - Identity: ISpPhraseBuilder_Impl, - { + unsafe extern "system" fn AddRules(this: *mut core::ffi::c_void, hparent: SPPHRASERULEHANDLE, prule: *const SPPHRASERULE, phnewrule: *mut SPPHRASERULEHANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhraseBuilder_Impl::AddRules(this, core::mem::transmute_copy(&hparent), core::mem::transmute_copy(&prule)) { Ok(ok__) => { @@ -1878,10 +1380,7 @@ impl ISpPhraseBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddProperties(this: *mut core::ffi::c_void, hparent: SPPHRASEPROPERTYHANDLE, pproperty: *const SPPHRASEPROPERTY, phnewproperty: *mut SPPHRASEPROPERTYHANDLE) -> windows_core::HRESULT - where - Identity: ISpPhraseBuilder_Impl, - { + unsafe extern "system" fn AddProperties(this: *mut core::ffi::c_void, hparent: SPPHRASEPROPERTYHANDLE, pproperty: *const SPPHRASEPROPERTY, phnewproperty: *mut SPPHRASEPROPERTYHANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhraseBuilder_Impl::AddProperties(this, core::mem::transmute_copy(&hparent), core::mem::transmute_copy(&pproperty)) { Ok(ok__) => { @@ -1891,10 +1390,7 @@ impl ISpPhraseBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddReplacements(this: *mut core::ffi::c_void, creplacements: u32, preplacements: *const SPPHRASEREPLACEMENT) -> windows_core::HRESULT - where - Identity: ISpPhraseBuilder_Impl, - { + unsafe extern "system" fn AddReplacements(this: *mut core::ffi::c_void, creplacements: u32, preplacements: *const SPPHRASEREPLACEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhraseBuilder_Impl::AddReplacements(this, core::mem::transmute_copy(&creplacements), core::mem::transmute_copy(&preplacements)).into() } @@ -1912,27 +1408,18 @@ impl ISpPhraseBuilder_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpPrivateEngineCallEx_Impl: Sized { +pub trait ISpPrivateEngineCallEx_Impl: Sized + windows_core::IUnknownImpl { fn CallEngineSynchronize(&self, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::Result<()>; fn CallEngineImmediate(&self, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpPrivateEngineCallEx {} impl ISpPrivateEngineCallEx_Vtbl { - pub const fn new() -> ISpPrivateEngineCallEx_Vtbl - where - Identity: ISpPrivateEngineCallEx_Impl, - { - unsafe extern "system" fn CallEngineSynchronize(this: *mut core::ffi::c_void, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::HRESULT - where - Identity: ISpPrivateEngineCallEx_Impl, - { + pub const fn new() -> ISpPrivateEngineCallEx_Vtbl { + unsafe extern "system" fn CallEngineSynchronize(this: *mut core::ffi::c_void, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPrivateEngineCallEx_Impl::CallEngineSynchronize(this, core::mem::transmute_copy(&pinframe), core::mem::transmute_copy(&ulinframesize), core::mem::transmute_copy(&ppcomemoutframe), core::mem::transmute_copy(&puloutframesize)).into() } - unsafe extern "system" fn CallEngineImmediate(this: *mut core::ffi::c_void, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::HRESULT - where - Identity: ISpPrivateEngineCallEx_Impl, - { + unsafe extern "system" fn CallEngineImmediate(this: *mut core::ffi::c_void, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPrivateEngineCallEx_Impl::CallEngineImmediate(this, core::mem::transmute_copy(&pinframe), core::mem::transmute_copy(&ulinframesize), core::mem::transmute_copy(&ppcomemoutframe), core::mem::transmute_copy(&puloutframesize)).into() } @@ -1946,7 +1433,7 @@ impl ISpPrivateEngineCallEx_Vtbl { iid == &::IID } } -pub trait ISpProperties_Impl: Sized { +pub trait ISpProperties_Impl: Sized + windows_core::IUnknownImpl { fn SetPropertyNum(&self, pname: &windows_core::PCWSTR, lvalue: i32) -> windows_core::Result<()>; fn GetPropertyNum(&self, pname: &windows_core::PCWSTR, plvalue: *mut i32) -> windows_core::Result<()>; fn SetPropertyString(&self, pname: &windows_core::PCWSTR, pvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -1954,35 +1441,20 @@ pub trait ISpProperties_Impl: Sized { } impl windows_core::RuntimeName for ISpProperties {} impl ISpProperties_Vtbl { - pub const fn new() -> ISpProperties_Vtbl - where - Identity: ISpProperties_Impl, - { - unsafe extern "system" fn SetPropertyNum(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, lvalue: i32) -> windows_core::HRESULT - where - Identity: ISpProperties_Impl, - { + pub const fn new() -> ISpProperties_Vtbl { + unsafe extern "system" fn SetPropertyNum(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, lvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpProperties_Impl::SetPropertyNum(this, core::mem::transmute(&pname), core::mem::transmute_copy(&lvalue)).into() } - unsafe extern "system" fn GetPropertyNum(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, plvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ISpProperties_Impl, - { + unsafe extern "system" fn GetPropertyNum(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, plvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpProperties_Impl::GetPropertyNum(this, core::mem::transmute(&pname), core::mem::transmute_copy(&plvalue)).into() } - unsafe extern "system" fn SetPropertyString(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, pvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpProperties_Impl, - { + unsafe extern "system" fn SetPropertyString(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, pvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpProperties_Impl::SetPropertyString(this, core::mem::transmute(&pname), core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn GetPropertyString(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, ppcomemvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpProperties_Impl, - { + unsafe extern "system" fn GetPropertyString(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR, ppcomemvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpProperties_Impl::GetPropertyString(this, core::mem::transmute(&pname)) { Ok(ok__) => { @@ -2029,14 +1501,8 @@ pub trait ISpRecoContext_Impl: Sized + ISpEventSource_Impl { impl windows_core::RuntimeName for ISpRecoContext {} #[cfg(feature = "Win32_Media_Audio")] impl ISpRecoContext_Vtbl { - pub const fn new() -> ISpRecoContext_Vtbl - where - Identity: ISpRecoContext_Impl, - { - unsafe extern "system" fn GetRecognizer(this: *mut core::ffi::c_void, pprecognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + pub const fn new() -> ISpRecoContext_Vtbl { + unsafe extern "system" fn GetRecognizer(this: *mut core::ffi::c_void, pprecognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecoContext_Impl::GetRecognizer(this) { Ok(ok__) => { @@ -2046,10 +1512,7 @@ impl ISpRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGrammar(this: *mut core::ffi::c_void, ullgrammarid: u64, ppgrammar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn CreateGrammar(this: *mut core::ffi::c_void, ullgrammarid: u64, ppgrammar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecoContext_Impl::CreateGrammar(this, core::mem::transmute_copy(&ullgrammarid)) { Ok(ok__) => { @@ -2059,45 +1522,27 @@ impl ISpRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut SPRECOCONTEXTSTATUS) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut SPRECOCONTEXTSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::GetStatus(this, core::mem::transmute_copy(&pstatus)).into() } - unsafe extern "system" fn GetMaxAlternates(this: *mut core::ffi::c_void, pcalternates: *mut u32) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn GetMaxAlternates(this: *mut core::ffi::c_void, pcalternates: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::GetMaxAlternates(this, core::mem::transmute_copy(&pcalternates)).into() } - unsafe extern "system" fn SetMaxAlternates(this: *mut core::ffi::c_void, calternates: u32) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn SetMaxAlternates(this: *mut core::ffi::c_void, calternates: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::SetMaxAlternates(this, core::mem::transmute_copy(&calternates)).into() } - unsafe extern "system" fn SetAudioOptions(this: *mut core::ffi::c_void, options: SPAUDIOOPTIONS, paudioformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn SetAudioOptions(this: *mut core::ffi::c_void, options: SPAUDIOOPTIONS, paudioformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::SetAudioOptions(this, core::mem::transmute_copy(&options), core::mem::transmute_copy(&paudioformatid), core::mem::transmute_copy(&pwaveformatex)).into() } - unsafe extern "system" fn GetAudioOptions(this: *mut core::ffi::c_void, poptions: *mut SPAUDIOOPTIONS, paudioformatid: *mut windows_core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn GetAudioOptions(this: *mut core::ffi::c_void, poptions: *mut SPAUDIOOPTIONS, paudioformatid: *mut windows_core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::GetAudioOptions(this, core::mem::transmute_copy(&poptions), core::mem::transmute_copy(&paudioformatid), core::mem::transmute_copy(&ppcomemwfex)).into() } - unsafe extern "system" fn DeserializeResult(this: *mut core::ffi::c_void, pserializedresult: *const SPSERIALIZEDRESULT, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn DeserializeResult(this: *mut core::ffi::c_void, pserializedresult: *const SPSERIALIZEDRESULT, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecoContext_Impl::DeserializeResult(this, core::mem::transmute_copy(&pserializedresult)) { Ok(ok__) => { @@ -2107,45 +1552,27 @@ impl ISpRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Bookmark(this: *mut core::ffi::c_void, options: SPBOOKMARKOPTIONS, ullstreamposition: u64, lparamevent: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn Bookmark(this: *mut core::ffi::c_void, options: SPBOOKMARKOPTIONS, ullstreamposition: u64, lparamevent: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::Bookmark(this, core::mem::transmute_copy(&options), core::mem::transmute_copy(&ullstreamposition), core::mem::transmute_copy(&lparamevent)).into() } - unsafe extern "system" fn SetAdaptationData(this: *mut core::ffi::c_void, padaptationdata: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn SetAdaptationData(this: *mut core::ffi::c_void, padaptationdata: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::SetAdaptationData(this, core::mem::transmute(&padaptationdata), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::Pause(this, core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::Resume(this, core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn SetVoice(this: *mut core::ffi::c_void, pvoice: *mut core::ffi::c_void, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn SetVoice(this: *mut core::ffi::c_void, pvoice: *mut core::ffi::c_void, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::SetVoice(this, windows_core::from_raw_borrowed(&pvoice), core::mem::transmute_copy(&fallowformatchanges)).into() } - unsafe extern "system" fn GetVoice(this: *mut core::ffi::c_void, ppvoice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn GetVoice(this: *mut core::ffi::c_void, ppvoice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecoContext_Impl::GetVoice(this) { Ok(ok__) => { @@ -2155,31 +1582,19 @@ impl ISpRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVoicePurgeEvent(this: *mut core::ffi::c_void, ulleventinterest: u64) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn SetVoicePurgeEvent(this: *mut core::ffi::c_void, ulleventinterest: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::SetVoicePurgeEvent(this, core::mem::transmute_copy(&ulleventinterest)).into() } - unsafe extern "system" fn GetVoicePurgeEvent(this: *mut core::ffi::c_void, pulleventinterest: *mut u64) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn GetVoicePurgeEvent(this: *mut core::ffi::c_void, pulleventinterest: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::GetVoicePurgeEvent(this, core::mem::transmute_copy(&pulleventinterest)).into() } - unsafe extern "system" fn SetContextState(this: *mut core::ffi::c_void, econtextstate: SPCONTEXTSTATE) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn SetContextState(this: *mut core::ffi::c_void, econtextstate: SPCONTEXTSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::SetContextState(this, core::mem::transmute_copy(&econtextstate)).into() } - unsafe extern "system" fn GetContextState(this: *mut core::ffi::c_void, pecontextstate: *mut SPCONTEXTSTATE) -> windows_core::HRESULT - where - Identity: ISpRecoContext_Impl, - { + unsafe extern "system" fn GetContextState(this: *mut core::ffi::c_void, pecontextstate: *mut SPCONTEXTSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::GetContextState(this, core::mem::transmute_copy(&pecontextstate)).into() } @@ -2209,35 +1624,23 @@ impl ISpRecoContext_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ISpRecoContext2_Impl: Sized { +pub trait ISpRecoContext2_Impl: Sized + windows_core::IUnknownImpl { fn SetGrammarOptions(&self, egrammaroptions: u32) -> windows_core::Result<()>; fn GetGrammarOptions(&self, pegrammaroptions: *mut u32) -> windows_core::Result<()>; fn SetAdaptationData2(&self, padaptationdata: &windows_core::PCWSTR, cch: u32, ptopicname: &windows_core::PCWSTR, eadaptationsettings: u32, erelevance: SPADAPTATIONRELEVANCE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpRecoContext2 {} impl ISpRecoContext2_Vtbl { - pub const fn new() -> ISpRecoContext2_Vtbl - where - Identity: ISpRecoContext2_Impl, - { - unsafe extern "system" fn SetGrammarOptions(this: *mut core::ffi::c_void, egrammaroptions: u32) -> windows_core::HRESULT - where - Identity: ISpRecoContext2_Impl, - { + pub const fn new() -> ISpRecoContext2_Vtbl { + unsafe extern "system" fn SetGrammarOptions(this: *mut core::ffi::c_void, egrammaroptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext2_Impl::SetGrammarOptions(this, core::mem::transmute_copy(&egrammaroptions)).into() } - unsafe extern "system" fn GetGrammarOptions(this: *mut core::ffi::c_void, pegrammaroptions: *mut u32) -> windows_core::HRESULT - where - Identity: ISpRecoContext2_Impl, - { + unsafe extern "system" fn GetGrammarOptions(this: *mut core::ffi::c_void, pegrammaroptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext2_Impl::GetGrammarOptions(this, core::mem::transmute_copy(&pegrammaroptions)).into() } - unsafe extern "system" fn SetAdaptationData2(this: *mut core::ffi::c_void, padaptationdata: windows_core::PCWSTR, cch: u32, ptopicname: windows_core::PCWSTR, eadaptationsettings: u32, erelevance: SPADAPTATIONRELEVANCE) -> windows_core::HRESULT - where - Identity: ISpRecoContext2_Impl, - { + unsafe extern "system" fn SetAdaptationData2(this: *mut core::ffi::c_void, padaptationdata: windows_core::PCWSTR, cch: u32, ptopicname: windows_core::PCWSTR, eadaptationsettings: u32, erelevance: SPADAPTATIONRELEVANCE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext2_Impl::SetAdaptationData2(this, core::mem::transmute(&padaptationdata), core::mem::transmute_copy(&cch), core::mem::transmute(&ptopicname), core::mem::transmute_copy(&eadaptationsettings), core::mem::transmute_copy(&erelevance)).into() } @@ -2277,21 +1680,12 @@ pub trait ISpRecoGrammar_Impl: Sized + ISpGrammarBuilder_Impl { impl windows_core::RuntimeName for ISpRecoGrammar {} #[cfg(feature = "Win32_System_Com")] impl ISpRecoGrammar_Vtbl { - pub const fn new() -> ISpRecoGrammar_Vtbl - where - Identity: ISpRecoGrammar_Impl, - { - unsafe extern "system" fn GetGrammarId(this: *mut core::ffi::c_void, pullgrammarid: *mut u64) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + pub const fn new() -> ISpRecoGrammar_Vtbl { + unsafe extern "system" fn GetGrammarId(this: *mut core::ffi::c_void, pullgrammarid: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::GetGrammarId(this, core::mem::transmute_copy(&pullgrammarid)).into() } - unsafe extern "system" fn GetRecoContext(this: *mut core::ffi::c_void, pprecoctxt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn GetRecoContext(this: *mut core::ffi::c_void, pprecoctxt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecoGrammar_Impl::GetRecoContext(this) { Ok(ok__) => { @@ -2301,115 +1695,67 @@ impl ISpRecoGrammar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadCmdFromFile(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, options: SPLOADOPTIONS) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn LoadCmdFromFile(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, options: SPLOADOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::LoadCmdFromFile(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn LoadCmdFromObject(this: *mut core::ffi::c_void, rcid: *const windows_core::GUID, pszgrammarname: windows_core::PCWSTR, options: SPLOADOPTIONS) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn LoadCmdFromObject(this: *mut core::ffi::c_void, rcid: *const windows_core::GUID, pszgrammarname: windows_core::PCWSTR, options: SPLOADOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::LoadCmdFromObject(this, core::mem::transmute_copy(&rcid), core::mem::transmute(&pszgrammarname), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn LoadCmdFromResource(this: *mut core::ffi::c_void, hmodule: super::super::Foundation::HMODULE, pszresourcename: windows_core::PCWSTR, pszresourcetype: windows_core::PCWSTR, wlanguage: u16, options: SPLOADOPTIONS) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn LoadCmdFromResource(this: *mut core::ffi::c_void, hmodule: super::super::Foundation::HMODULE, pszresourcename: windows_core::PCWSTR, pszresourcetype: windows_core::PCWSTR, wlanguage: u16, options: SPLOADOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::LoadCmdFromResource(this, core::mem::transmute_copy(&hmodule), core::mem::transmute(&pszresourcename), core::mem::transmute(&pszresourcetype), core::mem::transmute_copy(&wlanguage), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn LoadCmdFromMemory(this: *mut core::ffi::c_void, pgrammar: *const SPBINARYGRAMMAR, options: SPLOADOPTIONS) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn LoadCmdFromMemory(this: *mut core::ffi::c_void, pgrammar: *const SPBINARYGRAMMAR, options: SPLOADOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::LoadCmdFromMemory(this, core::mem::transmute_copy(&pgrammar), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn LoadCmdFromProprietaryGrammar(this: *mut core::ffi::c_void, rguidparam: *const windows_core::GUID, pszstringparam: windows_core::PCWSTR, pvdataprarm: *const core::ffi::c_void, cbdatasize: u32, options: SPLOADOPTIONS) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn LoadCmdFromProprietaryGrammar(this: *mut core::ffi::c_void, rguidparam: *const windows_core::GUID, pszstringparam: windows_core::PCWSTR, pvdataprarm: *const core::ffi::c_void, cbdatasize: u32, options: SPLOADOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::LoadCmdFromProprietaryGrammar(this, core::mem::transmute_copy(&rguidparam), core::mem::transmute(&pszstringparam), core::mem::transmute_copy(&pvdataprarm), core::mem::transmute_copy(&cbdatasize), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetRuleState(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, preserved: *mut core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn SetRuleState(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, preserved: *mut core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::SetRuleState(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&preserved), core::mem::transmute_copy(&newstate)).into() } - unsafe extern "system" fn SetRuleIdState(this: *mut core::ffi::c_void, ulruleid: u32, newstate: SPRULESTATE) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn SetRuleIdState(this: *mut core::ffi::c_void, ulruleid: u32, newstate: SPRULESTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::SetRuleIdState(this, core::mem::transmute_copy(&ulruleid), core::mem::transmute_copy(&newstate)).into() } - unsafe extern "system" fn LoadDictation(this: *mut core::ffi::c_void, psztopicname: windows_core::PCWSTR, options: SPLOADOPTIONS) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn LoadDictation(this: *mut core::ffi::c_void, psztopicname: windows_core::PCWSTR, options: SPLOADOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::LoadDictation(this, core::mem::transmute(&psztopicname), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn UnloadDictation(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn UnloadDictation(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::UnloadDictation(this).into() } - unsafe extern "system" fn SetDictationState(this: *mut core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn SetDictationState(this: *mut core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::SetDictationState(this, core::mem::transmute_copy(&newstate)).into() } - unsafe extern "system" fn SetWordSequenceData(this: *mut core::ffi::c_void, ptext: windows_core::PCWSTR, cchtext: u32, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn SetWordSequenceData(this: *mut core::ffi::c_void, ptext: windows_core::PCWSTR, cchtext: u32, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::SetWordSequenceData(this, core::mem::transmute(&ptext), core::mem::transmute_copy(&cchtext), core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn SetTextSelection(this: *mut core::ffi::c_void, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn SetTextSelection(this: *mut core::ffi::c_void, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::SetTextSelection(this, core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn IsPronounceable(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, pwordpronounceable: *mut SPWORDPRONOUNCEABLE) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn IsPronounceable(this: *mut core::ffi::c_void, pszword: windows_core::PCWSTR, pwordpronounceable: *mut SPWORDPRONOUNCEABLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::IsPronounceable(this, core::mem::transmute(&pszword), core::mem::transmute_copy(&pwordpronounceable)).into() } - unsafe extern "system" fn SetGrammarState(this: *mut core::ffi::c_void, egrammarstate: SPGRAMMARSTATE) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn SetGrammarState(this: *mut core::ffi::c_void, egrammarstate: SPGRAMMARSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::SetGrammarState(this, core::mem::transmute_copy(&egrammarstate)).into() } - unsafe extern "system" fn SaveCmd(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, ppszcomemerrortext: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn SaveCmd(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, ppszcomemerrortext: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::SaveCmd(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&ppszcomemerrortext)).into() } - unsafe extern "system" fn GetGrammarState(this: *mut core::ffi::c_void, pegrammarstate: *mut SPGRAMMARSTATE) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar_Impl, - { + unsafe extern "system" fn GetGrammarState(this: *mut core::ffi::c_void, pegrammarstate: *mut SPGRAMMARSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar_Impl::GetGrammarState(this, core::mem::transmute_copy(&pegrammarstate)).into() } @@ -2440,7 +1786,7 @@ impl ISpRecoGrammar_Vtbl { } } #[cfg(feature = "Win32_System_Com_Urlmon")] -pub trait ISpRecoGrammar2_Impl: Sized { +pub trait ISpRecoGrammar2_Impl: Sized + windows_core::IUnknownImpl { fn GetRules(&self, ppcomemrules: *mut *mut SPRULE, punumrules: *mut u32) -> windows_core::Result<()>; fn LoadCmdFromFile2(&self, pszfilename: &windows_core::PCWSTR, options: SPLOADOPTIONS, pszsharinguri: &windows_core::PCWSTR, pszbaseuri: &windows_core::PCWSTR) -> windows_core::Result<()>; fn LoadCmdFromMemory2(&self, pgrammar: *const SPBINARYGRAMMAR, options: SPLOADOPTIONS, pszsharinguri: &windows_core::PCWSTR, pszbaseuri: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -2454,63 +1800,36 @@ pub trait ISpRecoGrammar2_Impl: Sized { impl windows_core::RuntimeName for ISpRecoGrammar2 {} #[cfg(feature = "Win32_System_Com_Urlmon")] impl ISpRecoGrammar2_Vtbl { - pub const fn new() -> ISpRecoGrammar2_Vtbl - where - Identity: ISpRecoGrammar2_Impl, - { - unsafe extern "system" fn GetRules(this: *mut core::ffi::c_void, ppcomemrules: *mut *mut SPRULE, punumrules: *mut u32) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar2_Impl, - { + pub const fn new() -> ISpRecoGrammar2_Vtbl { + unsafe extern "system" fn GetRules(this: *mut core::ffi::c_void, ppcomemrules: *mut *mut SPRULE, punumrules: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar2_Impl::GetRules(this, core::mem::transmute_copy(&ppcomemrules), core::mem::transmute_copy(&punumrules)).into() } - unsafe extern "system" fn LoadCmdFromFile2(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, options: SPLOADOPTIONS, pszsharinguri: windows_core::PCWSTR, pszbaseuri: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar2_Impl, - { + unsafe extern "system" fn LoadCmdFromFile2(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, options: SPLOADOPTIONS, pszsharinguri: windows_core::PCWSTR, pszbaseuri: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar2_Impl::LoadCmdFromFile2(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&options), core::mem::transmute(&pszsharinguri), core::mem::transmute(&pszbaseuri)).into() } - unsafe extern "system" fn LoadCmdFromMemory2(this: *mut core::ffi::c_void, pgrammar: *const SPBINARYGRAMMAR, options: SPLOADOPTIONS, pszsharinguri: windows_core::PCWSTR, pszbaseuri: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar2_Impl, - { + unsafe extern "system" fn LoadCmdFromMemory2(this: *mut core::ffi::c_void, pgrammar: *const SPBINARYGRAMMAR, options: SPLOADOPTIONS, pszsharinguri: windows_core::PCWSTR, pszbaseuri: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar2_Impl::LoadCmdFromMemory2(this, core::mem::transmute_copy(&pgrammar), core::mem::transmute_copy(&options), core::mem::transmute(&pszsharinguri), core::mem::transmute(&pszbaseuri)).into() } - unsafe extern "system" fn SetRulePriority(this: *mut core::ffi::c_void, pszrulename: windows_core::PCWSTR, ulruleid: u32, nrulepriority: i32) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar2_Impl, - { + unsafe extern "system" fn SetRulePriority(this: *mut core::ffi::c_void, pszrulename: windows_core::PCWSTR, ulruleid: u32, nrulepriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar2_Impl::SetRulePriority(this, core::mem::transmute(&pszrulename), core::mem::transmute_copy(&ulruleid), core::mem::transmute_copy(&nrulepriority)).into() } - unsafe extern "system" fn SetRuleWeight(this: *mut core::ffi::c_void, pszrulename: windows_core::PCWSTR, ulruleid: u32, flweight: f32) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar2_Impl, - { + unsafe extern "system" fn SetRuleWeight(this: *mut core::ffi::c_void, pszrulename: windows_core::PCWSTR, ulruleid: u32, flweight: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar2_Impl::SetRuleWeight(this, core::mem::transmute(&pszrulename), core::mem::transmute_copy(&ulruleid), core::mem::transmute_copy(&flweight)).into() } - unsafe extern "system" fn SetDictationWeight(this: *mut core::ffi::c_void, flweight: f32) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar2_Impl, - { + unsafe extern "system" fn SetDictationWeight(this: *mut core::ffi::c_void, flweight: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar2_Impl::SetDictationWeight(this, core::mem::transmute_copy(&flweight)).into() } - unsafe extern "system" fn SetGrammarLoader(this: *mut core::ffi::c_void, ploader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar2_Impl, - { + unsafe extern "system" fn SetGrammarLoader(this: *mut core::ffi::c_void, ploader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar2_Impl::SetGrammarLoader(this, windows_core::from_raw_borrowed(&ploader)).into() } - unsafe extern "system" fn SetSMLSecurityManager(this: *mut core::ffi::c_void, psmlsecuritymanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoGrammar2_Impl, - { + unsafe extern "system" fn SetSMLSecurityManager(this: *mut core::ffi::c_void, psmlsecuritymanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoGrammar2_Impl::SetSMLSecurityManager(this, windows_core::from_raw_borrowed(&psmlsecuritymanager)).into() } @@ -2544,28 +1863,16 @@ pub trait ISpRecoResult_Impl: Sized + ISpPhrase_Impl { impl windows_core::RuntimeName for ISpRecoResult {} #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] impl ISpRecoResult_Vtbl { - pub const fn new() -> ISpRecoResult_Vtbl - where - Identity: ISpRecoResult_Impl, - { - unsafe extern "system" fn GetResultTimes(this: *mut core::ffi::c_void, ptimes: *mut SPRECORESULTTIMES) -> windows_core::HRESULT - where - Identity: ISpRecoResult_Impl, - { + pub const fn new() -> ISpRecoResult_Vtbl { + unsafe extern "system" fn GetResultTimes(this: *mut core::ffi::c_void, ptimes: *mut SPRECORESULTTIMES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoResult_Impl::GetResultTimes(this, core::mem::transmute_copy(&ptimes)).into() } - unsafe extern "system" fn GetAlternates(this: *mut core::ffi::c_void, ulstartelement: u32, celements: u32, ulrequestcount: u32, ppphrases: *mut *mut core::ffi::c_void, pcphrasesreturned: *mut u32) -> windows_core::HRESULT - where - Identity: ISpRecoResult_Impl, - { + unsafe extern "system" fn GetAlternates(this: *mut core::ffi::c_void, ulstartelement: u32, celements: u32, ulrequestcount: u32, ppphrases: *mut *mut core::ffi::c_void, pcphrasesreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoResult_Impl::GetAlternates(this, core::mem::transmute_copy(&ulstartelement), core::mem::transmute_copy(&celements), core::mem::transmute_copy(&ulrequestcount), core::mem::transmute_copy(&ppphrases), core::mem::transmute_copy(&pcphrasesreturned)).into() } - unsafe extern "system" fn GetAudio(this: *mut core::ffi::c_void, ulstartelement: u32, celements: u32, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoResult_Impl, - { + unsafe extern "system" fn GetAudio(this: *mut core::ffi::c_void, ulstartelement: u32, celements: u32, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecoResult_Impl::GetAudio(this, core::mem::transmute_copy(&ulstartelement), core::mem::transmute_copy(&celements)) { Ok(ok__) => { @@ -2575,31 +1882,19 @@ impl ISpRecoResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpeakAudio(this: *mut core::ffi::c_void, ulstartelement: u32, celements: u32, dwflags: u32, pulstreamnumber: *mut u32) -> windows_core::HRESULT - where - Identity: ISpRecoResult_Impl, - { + unsafe extern "system" fn SpeakAudio(this: *mut core::ffi::c_void, ulstartelement: u32, celements: u32, dwflags: u32, pulstreamnumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoResult_Impl::SpeakAudio(this, core::mem::transmute_copy(&ulstartelement), core::mem::transmute_copy(&celements), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pulstreamnumber)).into() } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, ppcomemserializedresult: *mut *mut SPSERIALIZEDRESULT) -> windows_core::HRESULT - where - Identity: ISpRecoResult_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, ppcomemserializedresult: *mut *mut SPSERIALIZEDRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoResult_Impl::Serialize(this, core::mem::transmute_copy(&ppcomemserializedresult)).into() } - unsafe extern "system" fn ScaleAudio(this: *mut core::ffi::c_void, paudioformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpRecoResult_Impl, - { + unsafe extern "system" fn ScaleAudio(this: *mut core::ffi::c_void, paudioformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoResult_Impl::ScaleAudio(this, core::mem::transmute_copy(&paudioformatid), core::mem::transmute_copy(&pwaveformatex)).into() } - unsafe extern "system" fn GetRecoContext(this: *mut core::ffi::c_void, pprecocontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoResult_Impl, - { + unsafe extern "system" fn GetRecoContext(this: *mut core::ffi::c_void, pprecocontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecoResult_Impl::GetRecoContext(this) { Ok(ok__) => { @@ -2634,14 +1929,8 @@ pub trait ISpRecoResult2_Impl: Sized + ISpRecoResult_Impl { impl windows_core::RuntimeName for ISpRecoResult2 {} #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] impl ISpRecoResult2_Vtbl { - pub const fn new() -> ISpRecoResult2_Vtbl - where - Identity: ISpRecoResult2_Impl, - { - unsafe extern "system" fn CommitAlternate(this: *mut core::ffi::c_void, pphrasealt: *mut core::ffi::c_void, ppnewresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecoResult2_Impl, - { + pub const fn new() -> ISpRecoResult2_Vtbl { + unsafe extern "system" fn CommitAlternate(this: *mut core::ffi::c_void, pphrasealt: *mut core::ffi::c_void, ppnewresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecoResult2_Impl::CommitAlternate(this, windows_core::from_raw_borrowed(&pphrasealt)) { Ok(ok__) => { @@ -2651,17 +1940,11 @@ impl ISpRecoResult2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommitText(this: *mut core::ffi::c_void, ulstartelement: u32, celements: u32, pszcorrecteddata: windows_core::PCWSTR, ecommitflags: u32) -> windows_core::HRESULT - where - Identity: ISpRecoResult2_Impl, - { + unsafe extern "system" fn CommitText(this: *mut core::ffi::c_void, ulstartelement: u32, celements: u32, pszcorrecteddata: windows_core::PCWSTR, ecommitflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoResult2_Impl::CommitText(this, core::mem::transmute_copy(&ulstartelement), core::mem::transmute_copy(&celements), core::mem::transmute(&pszcorrecteddata), core::mem::transmute_copy(&ecommitflags)).into() } - unsafe extern "system" fn SetTextFeedback(this: *mut core::ffi::c_void, pszfeedback: windows_core::PCWSTR, fsuccessful: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpRecoResult2_Impl, - { + unsafe extern "system" fn SetTextFeedback(this: *mut core::ffi::c_void, pszfeedback: windows_core::PCWSTR, fsuccessful: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoResult2_Impl::SetTextFeedback(this, core::mem::transmute(&pszfeedback), core::mem::transmute_copy(&fsuccessful)).into() } @@ -2699,21 +1982,12 @@ pub trait ISpRecognizer_Impl: Sized + ISpProperties_Impl { impl windows_core::RuntimeName for ISpRecognizer {} #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] impl ISpRecognizer_Vtbl { - pub const fn new() -> ISpRecognizer_Vtbl - where - Identity: ISpRecognizer_Impl, - { - unsafe extern "system" fn SetRecognizer(this: *mut core::ffi::c_void, precognizer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + pub const fn new() -> ISpRecognizer_Vtbl { + unsafe extern "system" fn SetRecognizer(this: *mut core::ffi::c_void, precognizer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::SetRecognizer(this, windows_core::from_raw_borrowed(&precognizer)).into() } - unsafe extern "system" fn GetRecognizer(this: *mut core::ffi::c_void, pprecognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn GetRecognizer(this: *mut core::ffi::c_void, pprecognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecognizer_Impl::GetRecognizer(this) { Ok(ok__) => { @@ -2723,17 +1997,11 @@ impl ISpRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, punkinput: *mut core::ffi::c_void, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, punkinput: *mut core::ffi::c_void, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::SetInput(this, windows_core::from_raw_borrowed(&punkinput), core::mem::transmute_copy(&fallowformatchanges)).into() } - unsafe extern "system" fn GetInputObjectToken(this: *mut core::ffi::c_void, pptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn GetInputObjectToken(this: *mut core::ffi::c_void, pptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecognizer_Impl::GetInputObjectToken(this) { Ok(ok__) => { @@ -2743,10 +2011,7 @@ impl ISpRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn GetInputStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecognizer_Impl::GetInputStream(this) { Ok(ok__) => { @@ -2756,10 +2021,7 @@ impl ISpRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRecoContext(this: *mut core::ffi::c_void, ppnewctxt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn CreateRecoContext(this: *mut core::ffi::c_void, ppnewctxt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecognizer_Impl::CreateRecoContext(this) { Ok(ok__) => { @@ -2769,10 +2031,7 @@ impl ISpRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecoProfile(this: *mut core::ffi::c_void, pptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn GetRecoProfile(this: *mut core::ffi::c_void, pptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpRecognizer_Impl::GetRecoProfile(this) { Ok(ok__) => { @@ -2782,66 +2041,39 @@ impl ISpRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRecoProfile(this: *mut core::ffi::c_void, ptoken: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn SetRecoProfile(this: *mut core::ffi::c_void, ptoken: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::SetRecoProfile(this, windows_core::from_raw_borrowed(&ptoken)).into() } - unsafe extern "system" fn IsSharedInstance(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn IsSharedInstance(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::IsSharedInstance(this).into() } - unsafe extern "system" fn GetRecoState(this: *mut core::ffi::c_void, pstate: *mut SPRECOSTATE) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn GetRecoState(this: *mut core::ffi::c_void, pstate: *mut SPRECOSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::GetRecoState(this, core::mem::transmute_copy(&pstate)).into() } - unsafe extern "system" fn SetRecoState(this: *mut core::ffi::c_void, newstate: SPRECOSTATE) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn SetRecoState(this: *mut core::ffi::c_void, newstate: SPRECOSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::SetRecoState(this, core::mem::transmute_copy(&newstate)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut SPRECOGNIZERSTATUS) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut SPRECOGNIZERSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::GetStatus(this, core::mem::transmute_copy(&pstatus)).into() } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, waveformattype: SPSTREAMFORMATTYPE, pformatid: *mut windows_core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, waveformattype: SPSTREAMFORMATTYPE, pformatid: *mut windows_core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::GetFormat(this, core::mem::transmute_copy(&waveformattype), core::mem::transmute_copy(&pformatid), core::mem::transmute_copy(&ppcomemwfex)).into() } - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::IsUISupported(this, core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), core::mem::transmute_copy(&pfsupported)).into() } - unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: windows_core::PCWSTR, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: windows_core::PCWSTR, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::DisplayUI(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&psztitle), core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata)).into() } - unsafe extern "system" fn EmulateRecognition(this: *mut core::ffi::c_void, pphrase: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecognizer_Impl, - { + unsafe extern "system" fn EmulateRecognition(this: *mut core::ffi::c_void, pphrase: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::EmulateRecognition(this, windows_core::from_raw_borrowed(&pphrase)).into() } @@ -2869,35 +2101,23 @@ impl ISpRecognizer_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpRecognizer2_Impl: Sized { +pub trait ISpRecognizer2_Impl: Sized + windows_core::IUnknownImpl { fn EmulateRecognitionEx(&self, pphrase: Option<&ISpPhrase>, dwcompareflags: u32) -> windows_core::Result<()>; fn SetTrainingState(&self, fdoingtraining: super::super::Foundation::BOOL, fadaptfromtrainingdata: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn ResetAcousticModelAdaptation(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpRecognizer2 {} impl ISpRecognizer2_Vtbl { - pub const fn new() -> ISpRecognizer2_Vtbl - where - Identity: ISpRecognizer2_Impl, - { - unsafe extern "system" fn EmulateRecognitionEx(this: *mut core::ffi::c_void, pphrase: *mut core::ffi::c_void, dwcompareflags: u32) -> windows_core::HRESULT - where - Identity: ISpRecognizer2_Impl, - { + pub const fn new() -> ISpRecognizer2_Vtbl { + unsafe extern "system" fn EmulateRecognitionEx(this: *mut core::ffi::c_void, pphrase: *mut core::ffi::c_void, dwcompareflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer2_Impl::EmulateRecognitionEx(this, windows_core::from_raw_borrowed(&pphrase), core::mem::transmute_copy(&dwcompareflags)).into() } - unsafe extern "system" fn SetTrainingState(this: *mut core::ffi::c_void, fdoingtraining: super::super::Foundation::BOOL, fadaptfromtrainingdata: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpRecognizer2_Impl, - { + unsafe extern "system" fn SetTrainingState(this: *mut core::ffi::c_void, fdoingtraining: super::super::Foundation::BOOL, fadaptfromtrainingdata: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer2_Impl::SetTrainingState(this, core::mem::transmute_copy(&fdoingtraining), core::mem::transmute_copy(&fadaptfromtrainingdata)).into() } - unsafe extern "system" fn ResetAcousticModelAdaptation(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpRecognizer2_Impl, - { + unsafe extern "system" fn ResetAcousticModelAdaptation(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer2_Impl::ResetAcousticModelAdaptation(this).into() } @@ -2920,14 +2140,8 @@ pub trait ISpRegDataKey_Impl: Sized + ISpDataKey_Impl { impl windows_core::RuntimeName for ISpRegDataKey {} #[cfg(feature = "Win32_System_Registry")] impl ISpRegDataKey_Vtbl { - pub const fn new() -> ISpRegDataKey_Vtbl - where - Identity: ISpRegDataKey_Impl, - { - unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, hkey: super::super::System::Registry::HKEY, freadonly: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpRegDataKey_Impl, - { + pub const fn new() -> ISpRegDataKey_Vtbl { + unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, hkey: super::super::System::Registry::HKEY, freadonly: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRegDataKey_Impl::SetKey(this, core::mem::transmute_copy(&hkey), core::mem::transmute_copy(&freadonly)).into() } @@ -2946,21 +2160,12 @@ pub trait ISpResourceManager_Impl: Sized + super::super::System::Com::IServicePr impl windows_core::RuntimeName for ISpResourceManager {} #[cfg(feature = "Win32_System_Com")] impl ISpResourceManager_Vtbl { - pub const fn new() -> ISpResourceManager_Vtbl - where - Identity: ISpResourceManager_Impl, - { - unsafe extern "system" fn SetObject(this: *mut core::ffi::c_void, guidserviceid: *const windows_core::GUID, punkobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpResourceManager_Impl, - { + pub const fn new() -> ISpResourceManager_Vtbl { + unsafe extern "system" fn SetObject(this: *mut core::ffi::c_void, guidserviceid: *const windows_core::GUID, punkobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpResourceManager_Impl::SetObject(this, core::mem::transmute_copy(&guidserviceid), windows_core::from_raw_borrowed(&punkobject)).into() } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, guidserviceid: *const windows_core::GUID, objectclsid: *const windows_core::GUID, objectiid: *const windows_core::GUID, freleasewhenlastexternalrefreleased: super::super::Foundation::BOOL, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpResourceManager_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, guidserviceid: *const windows_core::GUID, objectclsid: *const windows_core::GUID, objectiid: *const windows_core::GUID, freleasewhenlastexternalrefreleased: super::super::Foundation::BOOL, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpResourceManager_Impl::GetObject(this, core::mem::transmute_copy(&guidserviceid), core::mem::transmute_copy(&objectclsid), core::mem::transmute_copy(&objectiid), core::mem::transmute_copy(&freleasewhenlastexternalrefreleased), core::mem::transmute_copy(&ppobject)).into() } @@ -2974,27 +2179,18 @@ impl ISpResourceManager_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpSRAlternates_Impl: Sized { +pub trait ISpSRAlternates_Impl: Sized + windows_core::IUnknownImpl { fn GetAlternates(&self, paltrequest: *const SPPHRASEALTREQUEST, ppalts: *mut *mut SPPHRASEALT, pcalts: *mut u32) -> windows_core::Result<()>; fn Commit(&self, paltrequest: *const SPPHRASEALTREQUEST, palt: *const SPPHRASEALT, ppvresultextra: *mut *mut core::ffi::c_void, pcbresultextra: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpSRAlternates {} impl ISpSRAlternates_Vtbl { - pub const fn new() -> ISpSRAlternates_Vtbl - where - Identity: ISpSRAlternates_Impl, - { - unsafe extern "system" fn GetAlternates(this: *mut core::ffi::c_void, paltrequest: *const SPPHRASEALTREQUEST, ppalts: *mut *mut SPPHRASEALT, pcalts: *mut u32) -> windows_core::HRESULT - where - Identity: ISpSRAlternates_Impl, - { + pub const fn new() -> ISpSRAlternates_Vtbl { + unsafe extern "system" fn GetAlternates(this: *mut core::ffi::c_void, paltrequest: *const SPPHRASEALTREQUEST, ppalts: *mut *mut SPPHRASEALT, pcalts: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSRAlternates_Impl::GetAlternates(this, core::mem::transmute_copy(&paltrequest), core::mem::transmute_copy(&ppalts), core::mem::transmute_copy(&pcalts)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, paltrequest: *const SPPHRASEALTREQUEST, palt: *const SPPHRASEALT, ppvresultextra: *mut *mut core::ffi::c_void, pcbresultextra: *mut u32) -> windows_core::HRESULT - where - Identity: ISpSRAlternates_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, paltrequest: *const SPPHRASEALTREQUEST, palt: *const SPPHRASEALT, ppvresultextra: *mut *mut core::ffi::c_void, pcbresultextra: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSRAlternates_Impl::Commit(this, core::mem::transmute_copy(&paltrequest), core::mem::transmute_copy(&palt), core::mem::transmute_copy(&ppvresultextra), core::mem::transmute_copy(&pcbresultextra)).into() } @@ -3013,14 +2209,8 @@ pub trait ISpSRAlternates2_Impl: Sized + ISpSRAlternates_Impl { } impl windows_core::RuntimeName for ISpSRAlternates2 {} impl ISpSRAlternates2_Vtbl { - pub const fn new() -> ISpSRAlternates2_Vtbl - where - Identity: ISpSRAlternates2_Impl, - { - unsafe extern "system" fn CommitText(this: *mut core::ffi::c_void, paltrequest: *const SPPHRASEALTREQUEST, pcsznewtext: windows_core::PCWSTR, commitflags: SPCOMMITFLAGS) -> windows_core::HRESULT - where - Identity: ISpSRAlternates2_Impl, - { + pub const fn new() -> ISpSRAlternates2_Vtbl { + unsafe extern "system" fn CommitText(this: *mut core::ffi::c_void, paltrequest: *const SPPHRASEALTREQUEST, pcsznewtext: windows_core::PCWSTR, commitflags: SPCOMMITFLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSRAlternates2_Impl::CommitText(this, core::mem::transmute_copy(&paltrequest), core::mem::transmute(&pcsznewtext), core::mem::transmute_copy(&commitflags)).into() } @@ -3031,7 +2221,7 @@ impl ISpSRAlternates2_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait ISpSREngine_Impl: Sized { +pub trait ISpSREngine_Impl: Sized + windows_core::IUnknownImpl { fn SetSite(&self, psite: Option<&ISpSREngineSite>) -> windows_core::Result<()>; fn GetInputAudioFormat(&self, pguidsourceformatid: *const windows_core::GUID, psourcewaveformatex: *const super::Audio::WAVEFORMATEX, pguiddesiredformatid: *mut windows_core::GUID, ppcomemdesiredwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::Result<()>; fn RecognizeStream(&self, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, hrequestsync: super::super::Foundation::HANDLE, hdataavailable: super::super::Foundation::HANDLE, hexit: super::super::Foundation::HANDLE, fnewaudiostream: super::super::Foundation::BOOL, frealtimeaudio: super::super::Foundation::BOOL, paudioobjecttoken: Option<&ISpObjectToken>) -> windows_core::Result<()>; @@ -3066,70 +2256,40 @@ pub trait ISpSREngine_Impl: Sized { impl windows_core::RuntimeName for ISpSREngine {} #[cfg(feature = "Win32_Media_Audio")] impl ISpSREngine_Vtbl { - pub const fn new() -> ISpSREngine_Vtbl - where - Identity: ISpSREngine_Impl, - { - unsafe extern "system" fn SetSite(this: *mut core::ffi::c_void, psite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + pub const fn new() -> ISpSREngine_Vtbl { + unsafe extern "system" fn SetSite(this: *mut core::ffi::c_void, psite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetSite(this, windows_core::from_raw_borrowed(&psite)).into() } - unsafe extern "system" fn GetInputAudioFormat(this: *mut core::ffi::c_void, pguidsourceformatid: *const windows_core::GUID, psourcewaveformatex: *const super::Audio::WAVEFORMATEX, pguiddesiredformatid: *mut windows_core::GUID, ppcomemdesiredwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn GetInputAudioFormat(this: *mut core::ffi::c_void, pguidsourceformatid: *const windows_core::GUID, psourcewaveformatex: *const super::Audio::WAVEFORMATEX, pguiddesiredformatid: *mut windows_core::GUID, ppcomemdesiredwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::GetInputAudioFormat(this, core::mem::transmute_copy(&pguidsourceformatid), core::mem::transmute_copy(&psourcewaveformatex), core::mem::transmute_copy(&pguiddesiredformatid), core::mem::transmute_copy(&ppcomemdesiredwaveformatex)).into() } - unsafe extern "system" fn RecognizeStream(this: *mut core::ffi::c_void, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, hrequestsync: super::super::Foundation::HANDLE, hdataavailable: super::super::Foundation::HANDLE, hexit: super::super::Foundation::HANDLE, fnewaudiostream: super::super::Foundation::BOOL, frealtimeaudio: super::super::Foundation::BOOL, paudioobjecttoken: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn RecognizeStream(this: *mut core::ffi::c_void, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, hrequestsync: super::super::Foundation::HANDLE, hdataavailable: super::super::Foundation::HANDLE, hexit: super::super::Foundation::HANDLE, fnewaudiostream: super::super::Foundation::BOOL, frealtimeaudio: super::super::Foundation::BOOL, paudioobjecttoken: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::RecognizeStream(this, core::mem::transmute_copy(&rguidfmtid), core::mem::transmute_copy(&pwaveformatex), core::mem::transmute_copy(&hrequestsync), core::mem::transmute_copy(&hdataavailable), core::mem::transmute_copy(&hexit), core::mem::transmute_copy(&fnewaudiostream), core::mem::transmute_copy(&frealtimeaudio), windows_core::from_raw_borrowed(&paudioobjecttoken)).into() } - unsafe extern "system" fn SetRecoProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetRecoProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetRecoProfile(this, windows_core::from_raw_borrowed(&pprofile)).into() } - unsafe extern "system" fn OnCreateGrammar(this: *mut core::ffi::c_void, pvenginerecocontext: *const core::ffi::c_void, hsapigrammar: SPGRAMMARHANDLE, ppvenginegrammarcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn OnCreateGrammar(this: *mut core::ffi::c_void, pvenginerecocontext: *const core::ffi::c_void, hsapigrammar: SPGRAMMARHANDLE, ppvenginegrammarcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::OnCreateGrammar(this, core::mem::transmute_copy(&pvenginerecocontext), core::mem::transmute_copy(&hsapigrammar), core::mem::transmute_copy(&ppvenginegrammarcontext)).into() } - unsafe extern "system" fn OnDeleteGrammar(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn OnDeleteGrammar(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::OnDeleteGrammar(this, core::mem::transmute_copy(&pvenginegrammar)).into() } - unsafe extern "system" fn LoadProprietaryGrammar(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, rguidparam: *const windows_core::GUID, pszstringparam: windows_core::PCWSTR, pvdataparam: *const core::ffi::c_void, uldatasize: u32, options: SPLOADOPTIONS) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn LoadProprietaryGrammar(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, rguidparam: *const windows_core::GUID, pszstringparam: windows_core::PCWSTR, pvdataparam: *const core::ffi::c_void, uldatasize: u32, options: SPLOADOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::LoadProprietaryGrammar(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute_copy(&rguidparam), core::mem::transmute(&pszstringparam), core::mem::transmute_copy(&pvdataparam), core::mem::transmute_copy(&uldatasize), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn UnloadProprietaryGrammar(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn UnloadProprietaryGrammar(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::UnloadProprietaryGrammar(this, core::mem::transmute_copy(&pvenginegrammar)).into() } - unsafe extern "system" fn SetProprietaryRuleState(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pszname: windows_core::PCWSTR, preserved: *const core::ffi::c_void, newstate: SPRULESTATE, pcruleschanged: *mut u32) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetProprietaryRuleState(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pszname: windows_core::PCWSTR, preserved: *const core::ffi::c_void, newstate: SPRULESTATE, pcruleschanged: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngine_Impl::SetProprietaryRuleState(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute(&pszname), core::mem::transmute_copy(&preserved), core::mem::transmute_copy(&newstate)) { Ok(ok__) => { @@ -3139,52 +2299,31 @@ impl ISpSREngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProprietaryRuleIdState(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, dwruleid: u32, newstate: SPRULESTATE) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetProprietaryRuleIdState(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, dwruleid: u32, newstate: SPRULESTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetProprietaryRuleIdState(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute_copy(&dwruleid), core::mem::transmute_copy(&newstate)).into() } - unsafe extern "system" fn LoadSLM(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, psztopicname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn LoadSLM(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, psztopicname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::LoadSLM(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute(&psztopicname)).into() } - unsafe extern "system" fn UnloadSLM(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn UnloadSLM(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::UnloadSLM(this, core::mem::transmute_copy(&pvenginegrammar)).into() } - unsafe extern "system" fn SetSLMState(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetSLMState(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, newstate: SPRULESTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetSLMState(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute_copy(&newstate)).into() } - unsafe extern "system" fn SetWordSequenceData(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, ptext: windows_core::PCWSTR, cchtext: u32, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetWordSequenceData(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, ptext: windows_core::PCWSTR, cchtext: u32, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetWordSequenceData(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute(&ptext), core::mem::transmute_copy(&cchtext), core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn SetTextSelection(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetTextSelection(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pinfo: *const SPTEXTSELECTIONINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetTextSelection(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn IsPronounceable(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pszword: windows_core::PCWSTR, pwordpronounceable: *mut SPWORDPRONOUNCEABLE) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn IsPronounceable(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pszword: windows_core::PCWSTR, pwordpronounceable: *mut SPWORDPRONOUNCEABLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngine_Impl::IsPronounceable(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute(&pszword)) { Ok(ok__) => { @@ -3194,45 +2333,27 @@ impl ISpSREngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnCreateRecoContext(this: *mut core::ffi::c_void, hsapirecocontext: SPRECOCONTEXTHANDLE, ppvenginecontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn OnCreateRecoContext(this: *mut core::ffi::c_void, hsapirecocontext: SPRECOCONTEXTHANDLE, ppvenginecontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::OnCreateRecoContext(this, core::mem::transmute_copy(&hsapirecocontext), core::mem::transmute_copy(&ppvenginecontext)).into() } - unsafe extern "system" fn OnDeleteRecoContext(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn OnDeleteRecoContext(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::OnDeleteRecoContext(this, core::mem::transmute_copy(&pvenginecontext)).into() } - unsafe extern "system" fn PrivateCall(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, pcallframe: *mut core::ffi::c_void, ulcallframesize: u32) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn PrivateCall(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, pcallframe: *mut core::ffi::c_void, ulcallframesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::PrivateCall(this, core::mem::transmute_copy(&pvenginecontext), core::mem::transmute_copy(&pcallframe), core::mem::transmute_copy(&ulcallframesize)).into() } - unsafe extern "system" fn SetAdaptationData(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, padaptationdata: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetAdaptationData(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, padaptationdata: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetAdaptationData(this, core::mem::transmute_copy(&pvenginecontext), core::mem::transmute(&padaptationdata), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn SetPropertyNum(this: *mut core::ffi::c_void, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: windows_core::PCWSTR, lvalue: i32) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetPropertyNum(this: *mut core::ffi::c_void, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: windows_core::PCWSTR, lvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetPropertyNum(this, core::mem::transmute_copy(&esrc), core::mem::transmute_copy(&pvsrcobj), core::mem::transmute(&pname), core::mem::transmute_copy(&lvalue)).into() } - unsafe extern "system" fn GetPropertyNum(this: *mut core::ffi::c_void, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: windows_core::PCWSTR, lvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn GetPropertyNum(this: *mut core::ffi::c_void, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: windows_core::PCWSTR, lvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngine_Impl::GetPropertyNum(this, core::mem::transmute_copy(&esrc), core::mem::transmute_copy(&pvsrcobj), core::mem::transmute(&pname)) { Ok(ok__) => { @@ -3242,17 +2363,11 @@ impl ISpSREngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertyString(this: *mut core::ffi::c_void, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: windows_core::PCWSTR, pvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetPropertyString(this: *mut core::ffi::c_void, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: windows_core::PCWSTR, pvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetPropertyString(this, core::mem::transmute_copy(&esrc), core::mem::transmute_copy(&pvsrcobj), core::mem::transmute(&pname), core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn GetPropertyString(this: *mut core::ffi::c_void, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: windows_core::PCWSTR, ppcomemvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn GetPropertyString(this: *mut core::ffi::c_void, esrc: SPPROPSRC, pvsrcobj: *const core::ffi::c_void, pname: windows_core::PCWSTR, ppcomemvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngine_Impl::GetPropertyString(this, core::mem::transmute_copy(&esrc), core::mem::transmute_copy(&pvsrcobj), core::mem::transmute(&pname)) { Ok(ok__) => { @@ -3262,38 +2377,23 @@ impl ISpSREngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGrammarState(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, egrammarstate: SPGRAMMARSTATE) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetGrammarState(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, egrammarstate: SPGRAMMARSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetGrammarState(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute_copy(&egrammarstate)).into() } - unsafe extern "system" fn WordNotify(this: *mut core::ffi::c_void, action: SPCFGNOTIFY, cwords: u32, pwords: *const SPWORDENTRY) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn WordNotify(this: *mut core::ffi::c_void, action: SPCFGNOTIFY, cwords: u32, pwords: *const SPWORDENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::WordNotify(this, core::mem::transmute_copy(&action), core::mem::transmute_copy(&cwords), core::mem::transmute_copy(&pwords)).into() } - unsafe extern "system" fn RuleNotify(this: *mut core::ffi::c_void, action: SPCFGNOTIFY, crules: u32, prules: *const SPRULEENTRY) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn RuleNotify(this: *mut core::ffi::c_void, action: SPCFGNOTIFY, crules: u32, prules: *const SPRULEENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::RuleNotify(this, core::mem::transmute_copy(&action), core::mem::transmute_copy(&crules), core::mem::transmute_copy(&prules)).into() } - unsafe extern "system" fn PrivateCallEx(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, pincallframe: *const core::ffi::c_void, ulincallframesize: u32, ppvcomemresponse: *mut *mut core::ffi::c_void, pulresponsesize: *mut u32) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn PrivateCallEx(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, pincallframe: *const core::ffi::c_void, ulincallframesize: u32, ppvcomemresponse: *mut *mut core::ffi::c_void, pulresponsesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::PrivateCallEx(this, core::mem::transmute_copy(&pvenginecontext), core::mem::transmute_copy(&pincallframe), core::mem::transmute_copy(&ulincallframesize), core::mem::transmute_copy(&ppvcomemresponse), core::mem::transmute_copy(&pulresponsesize)).into() } - unsafe extern "system" fn SetContextState(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, econtextstate: SPCONTEXTSTATE) -> windows_core::HRESULT - where - Identity: ISpSREngine_Impl, - { + unsafe extern "system" fn SetContextState(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, econtextstate: SPCONTEXTSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::SetContextState(this, core::mem::transmute_copy(&pvenginecontext), core::mem::transmute_copy(&econtextstate)).into() } @@ -3352,84 +2452,48 @@ pub trait ISpSREngine2_Impl: Sized + ISpSREngine_Impl { impl windows_core::RuntimeName for ISpSREngine2 {} #[cfg(feature = "Win32_Media_Audio")] impl ISpSREngine2_Vtbl { - pub const fn new() -> ISpSREngine2_Vtbl - where - Identity: ISpSREngine2_Impl, - { - unsafe extern "system" fn PrivateCallImmediate(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, pincallframe: *const core::ffi::c_void, ulincallframesize: u32, ppvcomemresponse: *mut *mut core::ffi::c_void, pulresponsesize: *mut u32) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + pub const fn new() -> ISpSREngine2_Vtbl { + unsafe extern "system" fn PrivateCallImmediate(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, pincallframe: *const core::ffi::c_void, ulincallframesize: u32, ppvcomemresponse: *mut *mut core::ffi::c_void, pulresponsesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::PrivateCallImmediate(this, core::mem::transmute_copy(&pvenginecontext), core::mem::transmute_copy(&pincallframe), core::mem::transmute_copy(&ulincallframesize), core::mem::transmute_copy(&ppvcomemresponse), core::mem::transmute_copy(&pulresponsesize)).into() } - unsafe extern "system" fn SetAdaptationData2(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, padaptationdata: windows_core::PCWSTR, cch: u32, ptopicname: windows_core::PCWSTR, esettings: SPADAPTATIONSETTINGS, erelevance: SPADAPTATIONRELEVANCE) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + unsafe extern "system" fn SetAdaptationData2(this: *mut core::ffi::c_void, pvenginecontext: *const core::ffi::c_void, padaptationdata: windows_core::PCWSTR, cch: u32, ptopicname: windows_core::PCWSTR, esettings: SPADAPTATIONSETTINGS, erelevance: SPADAPTATIONRELEVANCE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::SetAdaptationData2(this, core::mem::transmute_copy(&pvenginecontext), core::mem::transmute(&padaptationdata), core::mem::transmute_copy(&cch), core::mem::transmute(&ptopicname), core::mem::transmute_copy(&esettings), core::mem::transmute_copy(&erelevance)).into() } - unsafe extern "system" fn SetGrammarPrefix(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pszprefix: windows_core::PCWSTR, fisprefixrequired: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + unsafe extern "system" fn SetGrammarPrefix(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pszprefix: windows_core::PCWSTR, fisprefixrequired: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::SetGrammarPrefix(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute(&pszprefix), core::mem::transmute_copy(&fisprefixrequired)).into() } - unsafe extern "system" fn SetRulePriority(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, pvclientrulecontext: *const core::ffi::c_void, nrulepriority: i32) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + unsafe extern "system" fn SetRulePriority(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, pvclientrulecontext: *const core::ffi::c_void, nrulepriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::SetRulePriority(this, core::mem::transmute_copy(&hrule), core::mem::transmute_copy(&pvclientrulecontext), core::mem::transmute_copy(&nrulepriority)).into() } - unsafe extern "system" fn EmulateRecognition(this: *mut core::ffi::c_void, pphrase: *mut core::ffi::c_void, dwcompareflags: u32) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + unsafe extern "system" fn EmulateRecognition(this: *mut core::ffi::c_void, pphrase: *mut core::ffi::c_void, dwcompareflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::EmulateRecognition(this, windows_core::from_raw_borrowed(&pphrase), core::mem::transmute_copy(&dwcompareflags)).into() } - unsafe extern "system" fn SetSLMWeight(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, flweight: f32) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + unsafe extern "system" fn SetSLMWeight(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, flweight: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::SetSLMWeight(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute_copy(&flweight)).into() } - unsafe extern "system" fn SetRuleWeight(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, pvclientrulecontext: *const core::ffi::c_void, flweight: f32) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + unsafe extern "system" fn SetRuleWeight(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, pvclientrulecontext: *const core::ffi::c_void, flweight: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::SetRuleWeight(this, core::mem::transmute_copy(&hrule), core::mem::transmute_copy(&pvclientrulecontext), core::mem::transmute_copy(&flweight)).into() } - unsafe extern "system" fn SetTrainingState(this: *mut core::ffi::c_void, fdoingtraining: super::super::Foundation::BOOL, fadaptfromtrainingdata: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + unsafe extern "system" fn SetTrainingState(this: *mut core::ffi::c_void, fdoingtraining: super::super::Foundation::BOOL, fadaptfromtrainingdata: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::SetTrainingState(this, core::mem::transmute_copy(&fdoingtraining), core::mem::transmute_copy(&fadaptfromtrainingdata)).into() } - unsafe extern "system" fn ResetAcousticModelAdaptation(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + unsafe extern "system" fn ResetAcousticModelAdaptation(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::ResetAcousticModelAdaptation(this).into() } - unsafe extern "system" fn OnLoadCFG(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pgrammardata: *const SPBINARYGRAMMAR, ulgrammarid: u32) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + unsafe extern "system" fn OnLoadCFG(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pgrammardata: *const SPBINARYGRAMMAR, ulgrammarid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::OnLoadCFG(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute_copy(&pgrammardata), core::mem::transmute_copy(&ulgrammarid)).into() } - unsafe extern "system" fn OnUnloadCFG(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, ulgrammarid: u32) -> windows_core::HRESULT - where - Identity: ISpSREngine2_Impl, - { + unsafe extern "system" fn OnUnloadCFG(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, ulgrammarid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::OnUnloadCFG(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute_copy(&ulgrammarid)).into() } @@ -3452,7 +2516,7 @@ impl ISpSREngine2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpSREngineSite_Impl: Sized { +pub trait ISpSREngineSite_Impl: Sized + windows_core::IUnknownImpl { fn Read(&self, pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result; fn DataAvailable(&self) -> windows_core::Result; fn SetBufferNotifySize(&self, cbsize: u32) -> windows_core::Result<()>; @@ -3474,14 +2538,8 @@ pub trait ISpSREngineSite_Impl: Sized { } impl windows_core::RuntimeName for ISpSREngineSite {} impl ISpSREngineSite_Vtbl { - pub const fn new() -> ISpSREngineSite_Vtbl - where - Identity: ISpSREngineSite_Impl, - { - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + pub const fn new() -> ISpSREngineSite_Vtbl { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngineSite_Impl::Read(this, core::mem::transmute_copy(&pv), core::mem::transmute_copy(&cb)) { Ok(ok__) => { @@ -3491,10 +2549,7 @@ impl ISpSREngineSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DataAvailable(this: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn DataAvailable(this: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngineSite_Impl::DataAvailable(this) { Ok(ok__) => { @@ -3504,17 +2559,11 @@ impl ISpSREngineSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferNotifySize(this: *mut core::ffi::c_void, cbsize: u32) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn SetBufferNotifySize(this: *mut core::ffi::c_void, cbsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::SetBufferNotifySize(this, core::mem::transmute_copy(&cbsize)).into() } - unsafe extern "system" fn ParseFromTransitions(this: *mut core::ffi::c_void, pparseinfo: *const SPPARSEINFO, ppnewphrase: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn ParseFromTransitions(this: *mut core::ffi::c_void, pparseinfo: *const SPPARSEINFO, ppnewphrase: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngineSite_Impl::ParseFromTransitions(this, core::mem::transmute_copy(&pparseinfo)) { Ok(ok__) => { @@ -3524,66 +2573,39 @@ impl ISpSREngineSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Recognition(this: *mut core::ffi::c_void, presultinfo: *const SPRECORESULTINFO) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn Recognition(this: *mut core::ffi::c_void, presultinfo: *const SPRECORESULTINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::Recognition(this, core::mem::transmute_copy(&presultinfo)).into() } - unsafe extern "system" fn AddEvent(this: *mut core::ffi::c_void, pevent: *const SPEVENT, hsapirecocontext: SPRECOCONTEXTHANDLE) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn AddEvent(this: *mut core::ffi::c_void, pevent: *const SPEVENT, hsapirecocontext: SPRECOCONTEXTHANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::AddEvent(this, core::mem::transmute_copy(&pevent), core::mem::transmute_copy(&hsapirecocontext)).into() } - unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void, ullprocessedthrupos: u64) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void, ullprocessedthrupos: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::Synchronize(this, core::mem::transmute_copy(&ullprocessedthrupos)).into() } - unsafe extern "system" fn GetWordInfo(this: *mut core::ffi::c_void, pwordentry: *mut SPWORDENTRY, options: SPWORDINFOOPT) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn GetWordInfo(this: *mut core::ffi::c_void, pwordentry: *mut SPWORDENTRY, options: SPWORDINFOOPT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::GetWordInfo(this, core::mem::transmute_copy(&pwordentry), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetWordClientContext(this: *mut core::ffi::c_void, hword: SPWORDHANDLE, pvclientcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn SetWordClientContext(this: *mut core::ffi::c_void, hword: SPWORDHANDLE, pvclientcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::SetWordClientContext(this, core::mem::transmute_copy(&hword), core::mem::transmute_copy(&pvclientcontext)).into() } - unsafe extern "system" fn GetRuleInfo(this: *mut core::ffi::c_void, pruleentry: *mut SPRULEENTRY, options: SPRULEINFOOPT) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn GetRuleInfo(this: *mut core::ffi::c_void, pruleentry: *mut SPRULEENTRY, options: SPRULEINFOOPT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::GetRuleInfo(this, core::mem::transmute_copy(&pruleentry), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetRuleClientContext(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, pvclientcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn SetRuleClientContext(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, pvclientcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::SetRuleClientContext(this, core::mem::transmute_copy(&hrule), core::mem::transmute_copy(&pvclientcontext)).into() } - unsafe extern "system" fn GetStateInfo(this: *mut core::ffi::c_void, hstate: SPSTATEHANDLE, pstateinfo: *mut SPSTATEINFO) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn GetStateInfo(this: *mut core::ffi::c_void, hstate: SPSTATEHANDLE, pstateinfo: *mut SPSTATEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::GetStateInfo(this, core::mem::transmute_copy(&hstate), core::mem::transmute_copy(&pstateinfo)).into() } - unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, pszresourcename: windows_core::PCWSTR, ppcomemresource: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, pszresourcename: windows_core::PCWSTR, ppcomemresource: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngineSite_Impl::GetResource(this, core::mem::transmute_copy(&hrule), core::mem::transmute(&pszresourcename)) { Ok(ok__) => { @@ -3593,10 +2615,7 @@ impl ISpSREngineSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransitionProperty(this: *mut core::ffi::c_void, id: SPTRANSITIONID, ppcomemproperty: *mut *mut SPTRANSITIONPROPERTY) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn GetTransitionProperty(this: *mut core::ffi::c_void, id: SPTRANSITIONID, ppcomemproperty: *mut *mut SPTRANSITIONPROPERTY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngineSite_Impl::GetTransitionProperty(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -3606,17 +2625,11 @@ impl ISpSREngineSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsAlternate(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, haltrule: SPRULEHANDLE) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn IsAlternate(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, haltrule: SPRULEHANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::IsAlternate(this, core::mem::transmute_copy(&hrule), core::mem::transmute_copy(&haltrule)).into() } - unsafe extern "system" fn GetMaxAlternates(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, pulnumalts: *mut u32) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn GetMaxAlternates(this: *mut core::ffi::c_void, hrule: SPRULEHANDLE, pulnumalts: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngineSite_Impl::GetMaxAlternates(this, core::mem::transmute_copy(&hrule)) { Ok(ok__) => { @@ -3626,10 +2639,7 @@ impl ISpSREngineSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContextMaxAlternates(this: *mut core::ffi::c_void, hcontext: SPRECOCONTEXTHANDLE, pulnumalts: *mut u32) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn GetContextMaxAlternates(this: *mut core::ffi::c_void, hcontext: SPRECOCONTEXTHANDLE, pulnumalts: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpSREngineSite_Impl::GetContextMaxAlternates(this, core::mem::transmute_copy(&hcontext)) { Ok(ok__) => { @@ -3639,10 +2649,7 @@ impl ISpSREngineSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateRecoPos(this: *mut core::ffi::c_void, ullcurrentrecopos: u64) -> windows_core::HRESULT - where - Identity: ISpSREngineSite_Impl, - { + unsafe extern "system" fn UpdateRecoPos(this: *mut core::ffi::c_void, ullcurrentrecopos: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite_Impl::UpdateRecoPos(this, core::mem::transmute_copy(&ullcurrentrecopos)).into() } @@ -3680,35 +2687,20 @@ pub trait ISpSREngineSite2_Impl: Sized + ISpSREngineSite_Impl { } impl windows_core::RuntimeName for ISpSREngineSite2 {} impl ISpSREngineSite2_Vtbl { - pub const fn new() -> ISpSREngineSite2_Vtbl - where - Identity: ISpSREngineSite2_Impl, - { - unsafe extern "system" fn AddEventEx(this: *mut core::ffi::c_void, pevent: *const SPEVENTEX, hsapirecocontext: SPRECOCONTEXTHANDLE) -> windows_core::HRESULT - where - Identity: ISpSREngineSite2_Impl, - { + pub const fn new() -> ISpSREngineSite2_Vtbl { + unsafe extern "system" fn AddEventEx(this: *mut core::ffi::c_void, pevent: *const SPEVENTEX, hsapirecocontext: SPRECOCONTEXTHANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite2_Impl::AddEventEx(this, core::mem::transmute_copy(&pevent), core::mem::transmute_copy(&hsapirecocontext)).into() } - unsafe extern "system" fn UpdateRecoPosEx(this: *mut core::ffi::c_void, ullcurrentrecopos: u64, ullcurrentrecotime: u64) -> windows_core::HRESULT - where - Identity: ISpSREngineSite2_Impl, - { + unsafe extern "system" fn UpdateRecoPosEx(this: *mut core::ffi::c_void, ullcurrentrecopos: u64, ullcurrentrecotime: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite2_Impl::UpdateRecoPosEx(this, core::mem::transmute_copy(&ullcurrentrecopos), core::mem::transmute_copy(&ullcurrentrecotime)).into() } - unsafe extern "system" fn GetRuleTransition(this: *mut core::ffi::c_void, ulgrammarid: u32, ruleindex: u32, ptrans: *mut SPTRANSITIONENTRY) -> windows_core::HRESULT - where - Identity: ISpSREngineSite2_Impl, - { + unsafe extern "system" fn GetRuleTransition(this: *mut core::ffi::c_void, ulgrammarid: u32, ruleindex: u32, ptrans: *mut SPTRANSITIONENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite2_Impl::GetRuleTransition(this, core::mem::transmute_copy(&ulgrammarid), core::mem::transmute_copy(&ruleindex), core::mem::transmute_copy(&ptrans)).into() } - unsafe extern "system" fn RecognitionEx(this: *mut core::ffi::c_void, presultinfo: *const SPRECORESULTINFOEX) -> windows_core::HRESULT - where - Identity: ISpSREngineSite2_Impl, - { + unsafe extern "system" fn RecognitionEx(this: *mut core::ffi::c_void, presultinfo: *const SPRECORESULTINFOEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngineSite2_Impl::RecognitionEx(this, core::mem::transmute_copy(&presultinfo)).into() } @@ -3724,27 +2716,18 @@ impl ISpSREngineSite2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISpSerializeState_Impl: Sized { +pub trait ISpSerializeState_Impl: Sized + windows_core::IUnknownImpl { fn GetSerializedState(&self, ppbdata: *mut *mut u8, pulsize: *mut u32, dwreserved: u32) -> windows_core::Result<()>; fn SetSerializedState(&self, pbdata: *const u8, ulsize: u32, dwreserved: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpSerializeState {} impl ISpSerializeState_Vtbl { - pub const fn new() -> ISpSerializeState_Vtbl - where - Identity: ISpSerializeState_Impl, - { - unsafe extern "system" fn GetSerializedState(this: *mut core::ffi::c_void, ppbdata: *mut *mut u8, pulsize: *mut u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ISpSerializeState_Impl, - { + pub const fn new() -> ISpSerializeState_Vtbl { + unsafe extern "system" fn GetSerializedState(this: *mut core::ffi::c_void, ppbdata: *mut *mut u8, pulsize: *mut u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSerializeState_Impl::GetSerializedState(this, core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pulsize), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn SetSerializedState(this: *mut core::ffi::c_void, pbdata: *const u8, ulsize: u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ISpSerializeState_Impl, - { + unsafe extern "system" fn SetSerializedState(this: *mut core::ffi::c_void, pbdata: *const u8, ulsize: u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSerializeState_Impl::SetSerializedState(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&ulsize), core::mem::transmute_copy(&dwreserved)).into() } @@ -3758,7 +2741,7 @@ impl ISpSerializeState_Vtbl { iid == &::IID } } -pub trait ISpShortcut_Impl: Sized { +pub trait ISpShortcut_Impl: Sized + windows_core::IUnknownImpl { fn AddShortcut(&self, pszdisplay: &windows_core::PCWSTR, langid: u16, pszspoken: &windows_core::PCWSTR, shtype: SPSHORTCUTTYPE) -> windows_core::Result<()>; fn RemoveShortcut(&self, pszdisplay: &windows_core::PCWSTR, langid: u16, pszspoken: &windows_core::PCWSTR, shtype: SPSHORTCUTTYPE) -> windows_core::Result<()>; fn GetShortcuts(&self, langid: u16, pshortcutpairlist: *mut SPSHORTCUTPAIRLIST) -> windows_core::Result<()>; @@ -3770,35 +2753,20 @@ pub trait ISpShortcut_Impl: Sized { } impl windows_core::RuntimeName for ISpShortcut {} impl ISpShortcut_Vtbl { - pub const fn new() -> ISpShortcut_Vtbl - where - Identity: ISpShortcut_Impl, - { - unsafe extern "system" fn AddShortcut(this: *mut core::ffi::c_void, pszdisplay: windows_core::PCWSTR, langid: u16, pszspoken: windows_core::PCWSTR, shtype: SPSHORTCUTTYPE) -> windows_core::HRESULT - where - Identity: ISpShortcut_Impl, - { + pub const fn new() -> ISpShortcut_Vtbl { + unsafe extern "system" fn AddShortcut(this: *mut core::ffi::c_void, pszdisplay: windows_core::PCWSTR, langid: u16, pszspoken: windows_core::PCWSTR, shtype: SPSHORTCUTTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpShortcut_Impl::AddShortcut(this, core::mem::transmute(&pszdisplay), core::mem::transmute_copy(&langid), core::mem::transmute(&pszspoken), core::mem::transmute_copy(&shtype)).into() } - unsafe extern "system" fn RemoveShortcut(this: *mut core::ffi::c_void, pszdisplay: windows_core::PCWSTR, langid: u16, pszspoken: windows_core::PCWSTR, shtype: SPSHORTCUTTYPE) -> windows_core::HRESULT - where - Identity: ISpShortcut_Impl, - { + unsafe extern "system" fn RemoveShortcut(this: *mut core::ffi::c_void, pszdisplay: windows_core::PCWSTR, langid: u16, pszspoken: windows_core::PCWSTR, shtype: SPSHORTCUTTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpShortcut_Impl::RemoveShortcut(this, core::mem::transmute(&pszdisplay), core::mem::transmute_copy(&langid), core::mem::transmute(&pszspoken), core::mem::transmute_copy(&shtype)).into() } - unsafe extern "system" fn GetShortcuts(this: *mut core::ffi::c_void, langid: u16, pshortcutpairlist: *mut SPSHORTCUTPAIRLIST) -> windows_core::HRESULT - where - Identity: ISpShortcut_Impl, - { + unsafe extern "system" fn GetShortcuts(this: *mut core::ffi::c_void, langid: u16, pshortcutpairlist: *mut SPSHORTCUTPAIRLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpShortcut_Impl::GetShortcuts(this, core::mem::transmute_copy(&langid), core::mem::transmute_copy(&pshortcutpairlist)).into() } - unsafe extern "system" fn GetGeneration(this: *mut core::ffi::c_void, pdwgeneration: *mut u32) -> windows_core::HRESULT - where - Identity: ISpShortcut_Impl, - { + unsafe extern "system" fn GetGeneration(this: *mut core::ffi::c_void, pdwgeneration: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpShortcut_Impl::GetGeneration(this) { Ok(ok__) => { @@ -3808,31 +2776,19 @@ impl ISpShortcut_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWordsFromGenerationChange(this: *mut core::ffi::c_void, pdwgeneration: *mut u32, pwordlist: *mut SPWORDLIST) -> windows_core::HRESULT - where - Identity: ISpShortcut_Impl, - { + unsafe extern "system" fn GetWordsFromGenerationChange(this: *mut core::ffi::c_void, pdwgeneration: *mut u32, pwordlist: *mut SPWORDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpShortcut_Impl::GetWordsFromGenerationChange(this, core::mem::transmute_copy(&pdwgeneration), core::mem::transmute_copy(&pwordlist)).into() } - unsafe extern "system" fn GetWords(this: *mut core::ffi::c_void, pdwgeneration: *mut u32, pdwcookie: *mut u32, pwordlist: *mut SPWORDLIST) -> windows_core::HRESULT - where - Identity: ISpShortcut_Impl, - { + unsafe extern "system" fn GetWords(this: *mut core::ffi::c_void, pdwgeneration: *mut u32, pdwcookie: *mut u32, pwordlist: *mut SPWORDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpShortcut_Impl::GetWords(this, core::mem::transmute_copy(&pdwgeneration), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&pwordlist)).into() } - unsafe extern "system" fn GetShortcutsForGeneration(this: *mut core::ffi::c_void, pdwgeneration: *mut u32, pdwcookie: *mut u32, pshortcutpairlist: *mut SPSHORTCUTPAIRLIST) -> windows_core::HRESULT - where - Identity: ISpShortcut_Impl, - { + unsafe extern "system" fn GetShortcutsForGeneration(this: *mut core::ffi::c_void, pdwgeneration: *mut u32, pdwcookie: *mut u32, pshortcutpairlist: *mut SPSHORTCUTPAIRLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpShortcut_Impl::GetShortcutsForGeneration(this, core::mem::transmute_copy(&pdwgeneration), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&pshortcutpairlist)).into() } - unsafe extern "system" fn GetGenerationChange(this: *mut core::ffi::c_void, pdwgeneration: *mut u32, pshortcutpairlist: *mut SPSHORTCUTPAIRLIST) -> windows_core::HRESULT - where - Identity: ISpShortcut_Impl, - { + unsafe extern "system" fn GetGenerationChange(this: *mut core::ffi::c_void, pdwgeneration: *mut u32, pshortcutpairlist: *mut SPSHORTCUTPAIRLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpShortcut_Impl::GetGenerationChange(this, core::mem::transmute_copy(&pdwgeneration), core::mem::transmute_copy(&pshortcutpairlist)).into() } @@ -3863,21 +2819,12 @@ pub trait ISpStream_Impl: Sized + ISpStreamFormat_Impl { impl windows_core::RuntimeName for ISpStream {} #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] impl ISpStream_Vtbl { - pub const fn new() -> ISpStream_Vtbl - where - Identity: ISpStream_Impl, - { - unsafe extern "system" fn SetBaseStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, rguidformat: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpStream_Impl, - { + pub const fn new() -> ISpStream_Vtbl { + unsafe extern "system" fn SetBaseStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, rguidformat: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpStream_Impl::SetBaseStream(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&rguidformat), core::mem::transmute_copy(&pwaveformatex)).into() } - unsafe extern "system" fn GetBaseStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpStream_Impl, - { + unsafe extern "system" fn GetBaseStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpStream_Impl::GetBaseStream(this) { Ok(ok__) => { @@ -3887,17 +2834,11 @@ impl ISpStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BindToFile(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, emode: SPFILEMODE, pformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, ulleventinterest: u64) -> windows_core::HRESULT - where - Identity: ISpStream_Impl, - { + unsafe extern "system" fn BindToFile(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, emode: SPFILEMODE, pformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, ulleventinterest: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpStream_Impl::BindToFile(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&emode), core::mem::transmute_copy(&pformatid), core::mem::transmute_copy(&pwaveformatex), core::mem::transmute_copy(&ulleventinterest)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpStream_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpStream_Impl::Close(this).into() } @@ -3921,14 +2862,8 @@ pub trait ISpStreamFormat_Impl: Sized + super::super::System::Com::IStream_Impl impl windows_core::RuntimeName for ISpStreamFormat {} #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] impl ISpStreamFormat_Vtbl { - pub const fn new() -> ISpStreamFormat_Vtbl - where - Identity: ISpStreamFormat_Impl, - { - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pguidformatid: *const windows_core::GUID, ppcomemwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpStreamFormat_Impl, - { + pub const fn new() -> ISpStreamFormat_Vtbl { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pguidformatid: *const windows_core::GUID, ppcomemwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpStreamFormat_Impl::GetFormat(this, core::mem::transmute_copy(&pguidformatid)) { Ok(ok__) => { @@ -3957,21 +2892,12 @@ pub trait ISpStreamFormatConverter_Impl: Sized + ISpStreamFormat_Impl { impl windows_core::RuntimeName for ISpStreamFormatConverter {} #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] impl ISpStreamFormatConverter_Vtbl { - pub const fn new() -> ISpStreamFormatConverter_Vtbl - where - Identity: ISpStreamFormatConverter_Impl, - { - unsafe extern "system" fn SetBaseStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsetformattobasestreamformat: super::super::Foundation::BOOL, fwritetobasestream: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpStreamFormatConverter_Impl, - { + pub const fn new() -> ISpStreamFormatConverter_Vtbl { + unsafe extern "system" fn SetBaseStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsetformattobasestreamformat: super::super::Foundation::BOOL, fwritetobasestream: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpStreamFormatConverter_Impl::SetBaseStream(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&fsetformattobasestreamformat), core::mem::transmute_copy(&fwritetobasestream)).into() } - unsafe extern "system" fn GetBaseStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpStreamFormatConverter_Impl, - { + unsafe extern "system" fn GetBaseStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpStreamFormatConverter_Impl::GetBaseStream(this) { Ok(ok__) => { @@ -3981,24 +2907,15 @@ impl ISpStreamFormatConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, rguidformatidofconvertedstream: *const windows_core::GUID, pwaveformatexofconvertedstream: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpStreamFormatConverter_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, rguidformatidofconvertedstream: *const windows_core::GUID, pwaveformatexofconvertedstream: *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpStreamFormatConverter_Impl::SetFormat(this, core::mem::transmute_copy(&rguidformatidofconvertedstream), core::mem::transmute_copy(&pwaveformatexofconvertedstream)).into() } - unsafe extern "system" fn ResetSeekPosition(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpStreamFormatConverter_Impl, - { + unsafe extern "system" fn ResetSeekPosition(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpStreamFormatConverter_Impl::ResetSeekPosition(this).into() } - unsafe extern "system" fn ScaleConvertedToBaseOffset(this: *mut core::ffi::c_void, ulloffsetconvertedstream: u64, pulloffsetbasestream: *mut u64) -> windows_core::HRESULT - where - Identity: ISpStreamFormatConverter_Impl, - { + unsafe extern "system" fn ScaleConvertedToBaseOffset(this: *mut core::ffi::c_void, ulloffsetconvertedstream: u64, pulloffsetbasestream: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpStreamFormatConverter_Impl::ScaleConvertedToBaseOffset(this, core::mem::transmute_copy(&ulloffsetconvertedstream)) { Ok(ok__) => { @@ -4008,10 +2925,7 @@ impl ISpStreamFormatConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScaleBaseToConvertedOffset(this: *mut core::ffi::c_void, ulloffsetbasestream: u64, pulloffsetconvertedstream: *mut u64) -> windows_core::HRESULT - where - Identity: ISpStreamFormatConverter_Impl, - { + unsafe extern "system" fn ScaleBaseToConvertedOffset(this: *mut core::ffi::c_void, ulloffsetbasestream: u64, pulloffsetconvertedstream: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpStreamFormatConverter_Impl::ScaleBaseToConvertedOffset(this, core::mem::transmute_copy(&ulloffsetbasestream)) { Ok(ok__) => { @@ -4036,7 +2950,7 @@ impl ISpStreamFormatConverter_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait ISpTTSEngine_Impl: Sized { +pub trait ISpTTSEngine_Impl: Sized + windows_core::IUnknownImpl { fn Speak(&self, dwspeakflags: u32, rguidformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, ptextfraglist: *const SPVTEXTFRAG, poutputsite: Option<&ISpTTSEngineSite>) -> windows_core::Result<()>; fn GetOutputFormat(&self, ptargetfmtid: *const windows_core::GUID, ptargetwaveformatex: *const super::Audio::WAVEFORMATEX, poutputformatid: *mut windows_core::GUID, ppcomemoutputwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::Result<()>; } @@ -4044,21 +2958,12 @@ pub trait ISpTTSEngine_Impl: Sized { impl windows_core::RuntimeName for ISpTTSEngine {} #[cfg(feature = "Win32_Media_Audio")] impl ISpTTSEngine_Vtbl { - pub const fn new() -> ISpTTSEngine_Vtbl - where - Identity: ISpTTSEngine_Impl, - { - unsafe extern "system" fn Speak(this: *mut core::ffi::c_void, dwspeakflags: u32, rguidformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, ptextfraglist: *const SPVTEXTFRAG, poutputsite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpTTSEngine_Impl, - { + pub const fn new() -> ISpTTSEngine_Vtbl { + unsafe extern "system" fn Speak(this: *mut core::ffi::c_void, dwspeakflags: u32, rguidformatid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, ptextfraglist: *const SPVTEXTFRAG, poutputsite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTTSEngine_Impl::Speak(this, core::mem::transmute_copy(&dwspeakflags), core::mem::transmute_copy(&rguidformatid), core::mem::transmute_copy(&pwaveformatex), core::mem::transmute_copy(&ptextfraglist), windows_core::from_raw_borrowed(&poutputsite)).into() } - unsafe extern "system" fn GetOutputFormat(this: *mut core::ffi::c_void, ptargetfmtid: *const windows_core::GUID, ptargetwaveformatex: *const super::Audio::WAVEFORMATEX, poutputformatid: *mut windows_core::GUID, ppcomemoutputwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: ISpTTSEngine_Impl, - { + unsafe extern "system" fn GetOutputFormat(this: *mut core::ffi::c_void, ptargetfmtid: *const windows_core::GUID, ptargetwaveformatex: *const super::Audio::WAVEFORMATEX, poutputformatid: *mut windows_core::GUID, ppcomemoutputwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTTSEngine_Impl::GetOutputFormat(this, core::mem::transmute_copy(&ptargetfmtid), core::mem::transmute_copy(&ptargetwaveformatex), core::mem::transmute_copy(&poutputformatid), core::mem::transmute_copy(&ppcomemoutputwaveformatex)).into() } @@ -4082,21 +2987,12 @@ pub trait ISpTTSEngineSite_Impl: Sized + ISpEventSink_Impl { } impl windows_core::RuntimeName for ISpTTSEngineSite {} impl ISpTTSEngineSite_Vtbl { - pub const fn new() -> ISpTTSEngineSite_Vtbl - where - Identity: ISpTTSEngineSite_Impl, - { - unsafe extern "system" fn GetActions(this: *mut core::ffi::c_void) -> u32 - where - Identity: ISpTTSEngineSite_Impl, - { + pub const fn new() -> ISpTTSEngineSite_Vtbl { + unsafe extern "system" fn GetActions(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTTSEngineSite_Impl::GetActions(this) } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pbuff: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT - where - Identity: ISpTTSEngineSite_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pbuff: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpTTSEngineSite_Impl::Write(this, core::mem::transmute_copy(&pbuff), core::mem::transmute_copy(&cb)) { Ok(ok__) => { @@ -4106,10 +3002,7 @@ impl ISpTTSEngineSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, prateadjust: *mut i32) -> windows_core::HRESULT - where - Identity: ISpTTSEngineSite_Impl, - { + unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, prateadjust: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpTTSEngineSite_Impl::GetRate(this) { Ok(ok__) => { @@ -4119,10 +3012,7 @@ impl ISpTTSEngineSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void, pusvolume: *mut u16) -> windows_core::HRESULT - where - Identity: ISpTTSEngineSite_Impl, - { + unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void, pusvolume: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpTTSEngineSite_Impl::GetVolume(this) { Ok(ok__) => { @@ -4132,17 +3022,11 @@ impl ISpTTSEngineSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSkipInfo(this: *mut core::ffi::c_void, petype: *mut SPVSKIPTYPE, plnumitems: *mut i32) -> windows_core::HRESULT - where - Identity: ISpTTSEngineSite_Impl, - { + unsafe extern "system" fn GetSkipInfo(this: *mut core::ffi::c_void, petype: *mut SPVSKIPTYPE, plnumitems: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTTSEngineSite_Impl::GetSkipInfo(this, core::mem::transmute_copy(&petype), core::mem::transmute_copy(&plnumitems)).into() } - unsafe extern "system" fn CompleteSkip(this: *mut core::ffi::c_void, ulnumskipped: i32) -> windows_core::HRESULT - where - Identity: ISpTTSEngineSite_Impl, - { + unsafe extern "system" fn CompleteSkip(this: *mut core::ffi::c_void, ulnumskipped: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTTSEngineSite_Impl::CompleteSkip(this, core::mem::transmute_copy(&ulnumskipped)).into() } @@ -4185,7 +3069,7 @@ impl ISpTask { unsafe { windows_core::ScopedInterface::new(core::mem::transmute(&this.vtable)) } } } -pub trait ISpTaskManager_Impl: Sized { +pub trait ISpTaskManager_Impl: Sized + windows_core::IUnknownImpl { fn SetThreadPoolInfo(&self, ppoolinfo: *const SPTMTHREADINFO) -> windows_core::Result<()>; fn GetThreadPoolInfo(&self) -> windows_core::Result; fn QueueTask(&self, ptask: Option<&ISpTask>, pvtaskdata: *const core::ffi::c_void, hcompevent: super::super::Foundation::HANDLE, pdwgroupid: *mut u32, ptaskid: *mut u32) -> windows_core::Result<()>; @@ -4196,21 +3080,12 @@ pub trait ISpTaskManager_Impl: Sized { } impl windows_core::RuntimeName for ISpTaskManager {} impl ISpTaskManager_Vtbl { - pub const fn new() -> ISpTaskManager_Vtbl - where - Identity: ISpTaskManager_Impl, - { - unsafe extern "system" fn SetThreadPoolInfo(this: *mut core::ffi::c_void, ppoolinfo: *const SPTMTHREADINFO) -> windows_core::HRESULT - where - Identity: ISpTaskManager_Impl, - { + pub const fn new() -> ISpTaskManager_Vtbl { + unsafe extern "system" fn SetThreadPoolInfo(this: *mut core::ffi::c_void, ppoolinfo: *const SPTMTHREADINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTaskManager_Impl::SetThreadPoolInfo(this, core::mem::transmute_copy(&ppoolinfo)).into() } - unsafe extern "system" fn GetThreadPoolInfo(this: *mut core::ffi::c_void, ppoolinfo: *mut SPTMTHREADINFO) -> windows_core::HRESULT - where - Identity: ISpTaskManager_Impl, - { + unsafe extern "system" fn GetThreadPoolInfo(this: *mut core::ffi::c_void, ppoolinfo: *mut SPTMTHREADINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpTaskManager_Impl::GetThreadPoolInfo(this) { Ok(ok__) => { @@ -4220,17 +3095,11 @@ impl ISpTaskManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueTask(this: *mut core::ffi::c_void, ptask: *mut core::ffi::c_void, pvtaskdata: *const core::ffi::c_void, hcompevent: super::super::Foundation::HANDLE, pdwgroupid: *mut u32, ptaskid: *mut u32) -> windows_core::HRESULT - where - Identity: ISpTaskManager_Impl, - { + unsafe extern "system" fn QueueTask(this: *mut core::ffi::c_void, ptask: *mut core::ffi::c_void, pvtaskdata: *const core::ffi::c_void, hcompevent: super::super::Foundation::HANDLE, pdwgroupid: *mut u32, ptaskid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTaskManager_Impl::QueueTask(this, windows_core::from_raw_borrowed(&ptask), core::mem::transmute_copy(&pvtaskdata), core::mem::transmute_copy(&hcompevent), core::mem::transmute_copy(&pdwgroupid), core::mem::transmute_copy(&ptaskid)).into() } - unsafe extern "system" fn CreateReoccurringTask(this: *mut core::ffi::c_void, ptask: *mut core::ffi::c_void, pvtaskdata: *const core::ffi::c_void, hcompevent: super::super::Foundation::HANDLE, pptaskctrl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpTaskManager_Impl, - { + unsafe extern "system" fn CreateReoccurringTask(this: *mut core::ffi::c_void, ptask: *mut core::ffi::c_void, pvtaskdata: *const core::ffi::c_void, hcompevent: super::super::Foundation::HANDLE, pptaskctrl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpTaskManager_Impl::CreateReoccurringTask(this, windows_core::from_raw_borrowed(&ptask), core::mem::transmute_copy(&pvtaskdata), core::mem::transmute_copy(&hcompevent)) { Ok(ok__) => { @@ -4240,10 +3109,7 @@ impl ISpTaskManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateThreadControl(this: *mut core::ffi::c_void, ptask: *mut core::ffi::c_void, pvtaskdata: *const core::ffi::c_void, npriority: i32, pptaskctrl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpTaskManager_Impl, - { + unsafe extern "system" fn CreateThreadControl(this: *mut core::ffi::c_void, ptask: *mut core::ffi::c_void, pvtaskdata: *const core::ffi::c_void, npriority: i32, pptaskctrl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpTaskManager_Impl::CreateThreadControl(this, windows_core::from_raw_borrowed(&ptask), core::mem::transmute_copy(&pvtaskdata), core::mem::transmute_copy(&npriority)) { Ok(ok__) => { @@ -4253,17 +3119,11 @@ impl ISpTaskManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TerminateTask(this: *mut core::ffi::c_void, dwtaskid: u32, ulwaitperiod: u32) -> windows_core::HRESULT - where - Identity: ISpTaskManager_Impl, - { + unsafe extern "system" fn TerminateTask(this: *mut core::ffi::c_void, dwtaskid: u32, ulwaitperiod: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTaskManager_Impl::TerminateTask(this, core::mem::transmute_copy(&dwtaskid), core::mem::transmute_copy(&ulwaitperiod)).into() } - unsafe extern "system" fn TerminateTaskGroup(this: *mut core::ffi::c_void, dwgroupid: u32, ulwaitperiod: u32) -> windows_core::HRESULT - where - Identity: ISpTaskManager_Impl, - { + unsafe extern "system" fn TerminateTaskGroup(this: *mut core::ffi::c_void, dwgroupid: u32, ulwaitperiod: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTaskManager_Impl::TerminateTaskGroup(this, core::mem::transmute_copy(&dwgroupid), core::mem::transmute_copy(&ulwaitperiod)).into() } @@ -4295,14 +3155,8 @@ pub trait ISpThreadControl_Impl: Sized + ISpNotifySink_Impl { } impl windows_core::RuntimeName for ISpThreadControl {} impl ISpThreadControl_Vtbl { - pub const fn new() -> ISpThreadControl_Vtbl - where - Identity: ISpThreadControl_Impl, - { - unsafe extern "system" fn StartThread(this: *mut core::ffi::c_void, dwflags: u32, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ISpThreadControl_Impl, - { + pub const fn new() -> ISpThreadControl_Vtbl { + unsafe extern "system" fn StartThread(this: *mut core::ffi::c_void, dwflags: u32, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpThreadControl_Impl::StartThread(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -4312,59 +3166,35 @@ impl ISpThreadControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WaitForThreadDone(this: *mut core::ffi::c_void, fforcestop: super::super::Foundation::BOOL, phrthreadresult: *mut windows_core::HRESULT, mstimeout: u32) -> windows_core::HRESULT - where - Identity: ISpThreadControl_Impl, - { + unsafe extern "system" fn WaitForThreadDone(this: *mut core::ffi::c_void, fforcestop: super::super::Foundation::BOOL, phrthreadresult: *mut windows_core::HRESULT, mstimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpThreadControl_Impl::WaitForThreadDone(this, core::mem::transmute_copy(&fforcestop), core::mem::transmute_copy(&phrthreadresult), core::mem::transmute_copy(&mstimeout)).into() } - unsafe extern "system" fn TerminateThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpThreadControl_Impl, - { + unsafe extern "system" fn TerminateThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpThreadControl_Impl::TerminateThread(this).into() } - unsafe extern "system" fn ThreadHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: ISpThreadControl_Impl, - { + unsafe extern "system" fn ThreadHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpThreadControl_Impl::ThreadHandle(this) } - unsafe extern "system" fn ThreadId(this: *mut core::ffi::c_void) -> u32 - where - Identity: ISpThreadControl_Impl, - { + unsafe extern "system" fn ThreadId(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpThreadControl_Impl::ThreadId(this) } - unsafe extern "system" fn NotifyEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: ISpThreadControl_Impl, - { + unsafe extern "system" fn NotifyEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpThreadControl_Impl::NotifyEvent(this) } - unsafe extern "system" fn WindowHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HWND - where - Identity: ISpThreadControl_Impl, - { + unsafe extern "system" fn WindowHandle(this: *mut core::ffi::c_void) -> super::super::Foundation::HWND { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpThreadControl_Impl::WindowHandle(this) } - unsafe extern "system" fn ThreadCompleteEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: ISpThreadControl_Impl, - { + unsafe extern "system" fn ThreadCompleteEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpThreadControl_Impl::ThreadCompleteEvent(this) } - unsafe extern "system" fn ExitThreadEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: ISpThreadControl_Impl, - { + unsafe extern "system" fn ExitThreadEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpThreadControl_Impl::ExitThreadEvent(this) } @@ -4422,20 +3252,14 @@ impl ISpThreadTask { unsafe { windows_core::ScopedInterface::new(core::mem::transmute(&this.vtable)) } } } -pub trait ISpTokenUI_Impl: Sized { +pub trait ISpTokenUI_Impl: Sized + windows_core::IUnknownImpl { fn IsUISupported(&self, psztypeofui: &windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, punkobject: Option<&windows_core::IUnknown>) -> windows_core::Result; fn DisplayUI(&self, hwndparent: super::super::Foundation::HWND, psztitle: &windows_core::PCWSTR, psztypeofui: &windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, ptoken: Option<&ISpObjectToken>, punkobject: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpTokenUI {} impl ISpTokenUI_Vtbl { - pub const fn new() -> ISpTokenUI_Vtbl - where - Identity: ISpTokenUI_Impl, - { - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, punkobject: *mut core::ffi::c_void, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpTokenUI_Impl, - { + pub const fn new() -> ISpTokenUI_Vtbl { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, punkobject: *mut core::ffi::c_void, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpTokenUI_Impl::IsUISupported(this, core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), windows_core::from_raw_borrowed(&punkobject)) { Ok(ok__) => { @@ -4445,10 +3269,7 @@ impl ISpTokenUI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: windows_core::PCWSTR, psztypeofui: windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, ptoken: *mut core::ffi::c_void, punkobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpTokenUI_Impl, - { + unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: windows_core::PCWSTR, psztypeofui: windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, ptoken: *mut core::ffi::c_void, punkobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTokenUI_Impl::DisplayUI(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&psztitle), core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), windows_core::from_raw_borrowed(&ptoken), windows_core::from_raw_borrowed(&punkobject)).into() } @@ -4462,20 +3283,14 @@ impl ISpTokenUI_Vtbl { iid == &::IID } } -pub trait ISpTranscript_Impl: Sized { +pub trait ISpTranscript_Impl: Sized + windows_core::IUnknownImpl { fn GetTranscript(&self) -> windows_core::Result; fn AppendTranscript(&self, psztranscript: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpTranscript {} impl ISpTranscript_Vtbl { - pub const fn new() -> ISpTranscript_Vtbl - where - Identity: ISpTranscript_Impl, - { - unsafe extern "system" fn GetTranscript(this: *mut core::ffi::c_void, ppsztranscript: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpTranscript_Impl, - { + pub const fn new() -> ISpTranscript_Vtbl { + unsafe extern "system" fn GetTranscript(this: *mut core::ffi::c_void, ppsztranscript: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpTranscript_Impl::GetTranscript(this) { Ok(ok__) => { @@ -4485,10 +3300,7 @@ impl ISpTranscript_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppendTranscript(this: *mut core::ffi::c_void, psztranscript: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISpTranscript_Impl, - { + unsafe extern "system" fn AppendTranscript(this: *mut core::ffi::c_void, psztranscript: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpTranscript_Impl::AppendTranscript(this, core::mem::transmute(&psztranscript)).into() } @@ -4534,21 +3346,12 @@ pub trait ISpVoice_Impl: Sized + ISpEventSource_Impl { impl windows_core::RuntimeName for ISpVoice {} #[cfg(feature = "Win32_System_Com")] impl ISpVoice_Vtbl { - pub const fn new() -> ISpVoice_Vtbl - where - Identity: ISpVoice_Impl, - { - unsafe extern "system" fn SetOutput(this: *mut core::ffi::c_void, punkoutput: *mut core::ffi::c_void, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + pub const fn new() -> ISpVoice_Vtbl { + unsafe extern "system" fn SetOutput(this: *mut core::ffi::c_void, punkoutput: *mut core::ffi::c_void, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::SetOutput(this, windows_core::from_raw_borrowed(&punkoutput), core::mem::transmute_copy(&fallowformatchanges)).into() } - unsafe extern "system" fn GetOutputObjectToken(this: *mut core::ffi::c_void, ppobjecttoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn GetOutputObjectToken(this: *mut core::ffi::c_void, ppobjecttoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpVoice_Impl::GetOutputObjectToken(this) { Ok(ok__) => { @@ -4558,10 +3361,7 @@ impl ISpVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn GetOutputStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpVoice_Impl::GetOutputStream(this) { Ok(ok__) => { @@ -4571,31 +3371,19 @@ impl ISpVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::Resume(this).into() } - unsafe extern "system" fn SetVoice(this: *mut core::ffi::c_void, ptoken: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn SetVoice(this: *mut core::ffi::c_void, ptoken: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::SetVoice(this, windows_core::from_raw_borrowed(&ptoken)).into() } - unsafe extern "system" fn GetVoice(this: *mut core::ffi::c_void, pptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn GetVoice(this: *mut core::ffi::c_void, pptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpVoice_Impl::GetVoice(this) { Ok(ok__) => { @@ -4605,129 +3393,75 @@ impl ISpVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Speak(this: *mut core::ffi::c_void, pwcs: windows_core::PCWSTR, dwflags: u32, pulstreamnumber: *mut u32) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn Speak(this: *mut core::ffi::c_void, pwcs: windows_core::PCWSTR, dwflags: u32, pulstreamnumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::Speak(this, core::mem::transmute(&pwcs), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pulstreamnumber)).into() } - unsafe extern "system" fn SpeakStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, dwflags: u32, pulstreamnumber: *mut u32) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn SpeakStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, dwflags: u32, pulstreamnumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::SpeakStream(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pulstreamnumber)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut SPVOICESTATUS, ppszlastbookmark: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut SPVOICESTATUS, ppszlastbookmark: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::GetStatus(this, core::mem::transmute_copy(&pstatus), core::mem::transmute_copy(&ppszlastbookmark)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, pitemtype: windows_core::PCWSTR, lnumitems: i32, pulnumskipped: *mut u32) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, pitemtype: windows_core::PCWSTR, lnumitems: i32, pulnumskipped: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::Skip(this, core::mem::transmute(&pitemtype), core::mem::transmute_copy(&lnumitems), core::mem::transmute_copy(&pulnumskipped)).into() } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, epriority: SPVPRIORITY) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, epriority: SPVPRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::SetPriority(this, core::mem::transmute_copy(&epriority)).into() } - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pepriority: *mut SPVPRIORITY) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pepriority: *mut SPVPRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::GetPriority(this, core::mem::transmute_copy(&pepriority)).into() } - unsafe extern "system" fn SetAlertBoundary(this: *mut core::ffi::c_void, eboundary: SPEVENTENUM) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn SetAlertBoundary(this: *mut core::ffi::c_void, eboundary: SPEVENTENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::SetAlertBoundary(this, core::mem::transmute_copy(&eboundary)).into() } - unsafe extern "system" fn GetAlertBoundary(this: *mut core::ffi::c_void, peboundary: *mut SPEVENTENUM) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn GetAlertBoundary(this: *mut core::ffi::c_void, peboundary: *mut SPEVENTENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::GetAlertBoundary(this, core::mem::transmute_copy(&peboundary)).into() } - unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, rateadjust: i32) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, rateadjust: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::SetRate(this, core::mem::transmute_copy(&rateadjust)).into() } - unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, prateadjust: *mut i32) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, prateadjust: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::GetRate(this, core::mem::transmute_copy(&prateadjust)).into() } - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, usvolume: u16) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, usvolume: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::SetVolume(this, core::mem::transmute_copy(&usvolume)).into() } - unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void, pusvolume: *mut u16) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void, pusvolume: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::GetVolume(this, core::mem::transmute_copy(&pusvolume)).into() } - unsafe extern "system" fn WaitUntilDone(this: *mut core::ffi::c_void, mstimeout: u32) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn WaitUntilDone(this: *mut core::ffi::c_void, mstimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::WaitUntilDone(this, core::mem::transmute_copy(&mstimeout)).into() } - unsafe extern "system" fn SetSyncSpeakTimeout(this: *mut core::ffi::c_void, mstimeout: u32) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn SetSyncSpeakTimeout(this: *mut core::ffi::c_void, mstimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::SetSyncSpeakTimeout(this, core::mem::transmute_copy(&mstimeout)).into() } - unsafe extern "system" fn GetSyncSpeakTimeout(this: *mut core::ffi::c_void, pmstimeout: *mut u32) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn GetSyncSpeakTimeout(this: *mut core::ffi::c_void, pmstimeout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::GetSyncSpeakTimeout(this, core::mem::transmute_copy(&pmstimeout)).into() } - unsafe extern "system" fn SpeakCompleteEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn SpeakCompleteEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::HANDLE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::SpeakCompleteEvent(this) } - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::IsUISupported(this, core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), core::mem::transmute_copy(&pfsupported)).into() } - unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: windows_core::PCWSTR, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32) -> windows_core::HRESULT - where - Identity: ISpVoice_Impl, - { + unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: windows_core::PCWSTR, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::DisplayUI(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&psztitle), core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata)).into() } @@ -4773,21 +3507,12 @@ pub trait ISpXMLRecoResult_Impl: Sized + ISpRecoResult_Impl { impl windows_core::RuntimeName for ISpXMLRecoResult {} #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] impl ISpXMLRecoResult_Vtbl { - pub const fn new() -> ISpXMLRecoResult_Vtbl - where - Identity: ISpXMLRecoResult_Impl, - { - unsafe extern "system" fn GetXMLResult(this: *mut core::ffi::c_void, ppszcomemxmlresult: *mut windows_core::PWSTR, options: SPXMLRESULTOPTIONS) -> windows_core::HRESULT - where - Identity: ISpXMLRecoResult_Impl, - { + pub const fn new() -> ISpXMLRecoResult_Vtbl { + unsafe extern "system" fn GetXMLResult(this: *mut core::ffi::c_void, ppszcomemxmlresult: *mut windows_core::PWSTR, options: SPXMLRESULTOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpXMLRecoResult_Impl::GetXMLResult(this, core::mem::transmute_copy(&ppszcomemxmlresult), core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetXMLErrorInfo(this: *mut core::ffi::c_void, psemanticerrorinfo: *mut SPSEMANTICERRORINFO) -> windows_core::HRESULT - where - Identity: ISpXMLRecoResult_Impl, - { + unsafe extern "system" fn GetXMLErrorInfo(this: *mut core::ffi::c_void, psemanticerrorinfo: *mut SPSEMANTICERRORINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpXMLRecoResult_Impl::GetXMLErrorInfo(this, core::mem::transmute_copy(&psemanticerrorinfo)).into() } @@ -4817,14 +3542,8 @@ pub trait ISpeechAudio_Impl: Sized + ISpeechBaseStream_Impl { impl windows_core::RuntimeName for ISpeechAudio {} #[cfg(feature = "Win32_System_Com")] impl ISpeechAudio_Vtbl { - pub const fn new() -> ISpeechAudio_Vtbl - where - Identity: ISpeechAudio_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechAudio_Impl, - { + pub const fn new() -> ISpeechAudio_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudio_Impl::Status(this) { Ok(ok__) => { @@ -4834,10 +3553,7 @@ impl ISpeechAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BufferInfo(this: *mut core::ffi::c_void, bufferinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechAudio_Impl, - { + unsafe extern "system" fn BufferInfo(this: *mut core::ffi::c_void, bufferinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudio_Impl::BufferInfo(this) { Ok(ok__) => { @@ -4847,10 +3563,7 @@ impl ISpeechAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultFormat(this: *mut core::ffi::c_void, streamformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechAudio_Impl, - { + unsafe extern "system" fn DefaultFormat(this: *mut core::ffi::c_void, streamformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudio_Impl::DefaultFormat(this) { Ok(ok__) => { @@ -4860,10 +3573,7 @@ impl ISpeechAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, volume: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechAudio_Impl, - { + unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, volume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudio_Impl::Volume(this) { Ok(ok__) => { @@ -4873,17 +3583,11 @@ impl ISpeechAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, volume: i32) -> windows_core::HRESULT - where - Identity: ISpeechAudio_Impl, - { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, volume: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechAudio_Impl::SetVolume(this, core::mem::transmute_copy(&volume)).into() } - unsafe extern "system" fn BufferNotifySize(this: *mut core::ffi::c_void, buffernotifysize: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechAudio_Impl, - { + unsafe extern "system" fn BufferNotifySize(this: *mut core::ffi::c_void, buffernotifysize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudio_Impl::BufferNotifySize(this) { Ok(ok__) => { @@ -4893,17 +3597,11 @@ impl ISpeechAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferNotifySize(this: *mut core::ffi::c_void, buffernotifysize: i32) -> windows_core::HRESULT - where - Identity: ISpeechAudio_Impl, - { + unsafe extern "system" fn SetBufferNotifySize(this: *mut core::ffi::c_void, buffernotifysize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechAudio_Impl::SetBufferNotifySize(this, core::mem::transmute_copy(&buffernotifysize)).into() } - unsafe extern "system" fn EventHandle(this: *mut core::ffi::c_void, eventhandle: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechAudio_Impl, - { + unsafe extern "system" fn EventHandle(this: *mut core::ffi::c_void, eventhandle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudio_Impl::EventHandle(this) { Ok(ok__) => { @@ -4913,10 +3611,7 @@ impl ISpeechAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: SpeechAudioState) -> windows_core::HRESULT - where - Identity: ISpeechAudio_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: SpeechAudioState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechAudio_Impl::SetState(this, core::mem::transmute_copy(&state)).into() } @@ -4950,14 +3645,8 @@ pub trait ISpeechAudioBufferInfo_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for ISpeechAudioBufferInfo {} #[cfg(feature = "Win32_System_Com")] impl ISpeechAudioBufferInfo_Vtbl { - pub const fn new() -> ISpeechAudioBufferInfo_Vtbl - where - Identity: ISpeechAudioBufferInfo_Impl, - { - unsafe extern "system" fn MinNotification(this: *mut core::ffi::c_void, minnotification: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechAudioBufferInfo_Impl, - { + pub const fn new() -> ISpeechAudioBufferInfo_Vtbl { + unsafe extern "system" fn MinNotification(this: *mut core::ffi::c_void, minnotification: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioBufferInfo_Impl::MinNotification(this) { Ok(ok__) => { @@ -4967,17 +3656,11 @@ impl ISpeechAudioBufferInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinNotification(this: *mut core::ffi::c_void, minnotification: i32) -> windows_core::HRESULT - where - Identity: ISpeechAudioBufferInfo_Impl, - { + unsafe extern "system" fn SetMinNotification(this: *mut core::ffi::c_void, minnotification: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechAudioBufferInfo_Impl::SetMinNotification(this, core::mem::transmute_copy(&minnotification)).into() } - unsafe extern "system" fn BufferSize(this: *mut core::ffi::c_void, buffersize: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechAudioBufferInfo_Impl, - { + unsafe extern "system" fn BufferSize(this: *mut core::ffi::c_void, buffersize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioBufferInfo_Impl::BufferSize(this) { Ok(ok__) => { @@ -4987,17 +3670,11 @@ impl ISpeechAudioBufferInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferSize(this: *mut core::ffi::c_void, buffersize: i32) -> windows_core::HRESULT - where - Identity: ISpeechAudioBufferInfo_Impl, - { + unsafe extern "system" fn SetBufferSize(this: *mut core::ffi::c_void, buffersize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechAudioBufferInfo_Impl::SetBufferSize(this, core::mem::transmute_copy(&buffersize)).into() } - unsafe extern "system" fn EventBias(this: *mut core::ffi::c_void, eventbias: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechAudioBufferInfo_Impl, - { + unsafe extern "system" fn EventBias(this: *mut core::ffi::c_void, eventbias: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioBufferInfo_Impl::EventBias(this) { Ok(ok__) => { @@ -5007,10 +3684,7 @@ impl ISpeechAudioBufferInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventBias(this: *mut core::ffi::c_void, eventbias: i32) -> windows_core::HRESULT - where - Identity: ISpeechAudioBufferInfo_Impl, - { + unsafe extern "system" fn SetEventBias(this: *mut core::ffi::c_void, eventbias: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechAudioBufferInfo_Impl::SetEventBias(this, core::mem::transmute_copy(&eventbias)).into() } @@ -5041,14 +3715,8 @@ pub trait ISpeechAudioFormat_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISpeechAudioFormat {} #[cfg(feature = "Win32_System_Com")] impl ISpeechAudioFormat_Vtbl { - pub const fn new() -> ISpeechAudioFormat_Vtbl - where - Identity: ISpeechAudioFormat_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, audioformat: *mut SpeechAudioFormatType) -> windows_core::HRESULT - where - Identity: ISpeechAudioFormat_Impl, - { + pub const fn new() -> ISpeechAudioFormat_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, audioformat: *mut SpeechAudioFormatType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioFormat_Impl::Type(this) { Ok(ok__) => { @@ -5058,17 +3726,11 @@ impl ISpeechAudioFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, audioformat: SpeechAudioFormatType) -> windows_core::HRESULT - where - Identity: ISpeechAudioFormat_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, audioformat: SpeechAudioFormatType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechAudioFormat_Impl::SetType(this, core::mem::transmute_copy(&audioformat)).into() } - unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, guid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechAudioFormat_Impl, - { + unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, guid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioFormat_Impl::Guid(this) { Ok(ok__) => { @@ -5078,17 +3740,11 @@ impl ISpeechAudioFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGuid(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechAudioFormat_Impl, - { + unsafe extern "system" fn SetGuid(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechAudioFormat_Impl::SetGuid(this, core::mem::transmute(&guid)).into() } - unsafe extern "system" fn GetWaveFormatEx(this: *mut core::ffi::c_void, speechwaveformatex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechAudioFormat_Impl, - { + unsafe extern "system" fn GetWaveFormatEx(this: *mut core::ffi::c_void, speechwaveformatex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioFormat_Impl::GetWaveFormatEx(this) { Ok(ok__) => { @@ -5098,10 +3754,7 @@ impl ISpeechAudioFormat_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWaveFormatEx(this: *mut core::ffi::c_void, speechwaveformatex: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechAudioFormat_Impl, - { + unsafe extern "system" fn SetWaveFormatEx(this: *mut core::ffi::c_void, speechwaveformatex: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechAudioFormat_Impl::SetWaveFormatEx(this, windows_core::from_raw_borrowed(&speechwaveformatex)).into() } @@ -5131,14 +3784,8 @@ pub trait ISpeechAudioStatus_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISpeechAudioStatus {} #[cfg(feature = "Win32_System_Com")] impl ISpeechAudioStatus_Vtbl { - pub const fn new() -> ISpeechAudioStatus_Vtbl - where - Identity: ISpeechAudioStatus_Impl, - { - unsafe extern "system" fn FreeBufferSpace(this: *mut core::ffi::c_void, freebufferspace: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechAudioStatus_Impl, - { + pub const fn new() -> ISpeechAudioStatus_Vtbl { + unsafe extern "system" fn FreeBufferSpace(this: *mut core::ffi::c_void, freebufferspace: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioStatus_Impl::FreeBufferSpace(this) { Ok(ok__) => { @@ -5148,10 +3795,7 @@ impl ISpeechAudioStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NonBlockingIO(this: *mut core::ffi::c_void, nonblockingio: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechAudioStatus_Impl, - { + unsafe extern "system" fn NonBlockingIO(this: *mut core::ffi::c_void, nonblockingio: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioStatus_Impl::NonBlockingIO(this) { Ok(ok__) => { @@ -5161,10 +3805,7 @@ impl ISpeechAudioStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, state: *mut SpeechAudioState) -> windows_core::HRESULT - where - Identity: ISpeechAudioStatus_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, state: *mut SpeechAudioState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioStatus_Impl::State(this) { Ok(ok__) => { @@ -5174,10 +3815,7 @@ impl ISpeechAudioStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentSeekPosition(this: *mut core::ffi::c_void, currentseekposition: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechAudioStatus_Impl, - { + unsafe extern "system" fn CurrentSeekPosition(this: *mut core::ffi::c_void, currentseekposition: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioStatus_Impl::CurrentSeekPosition(this) { Ok(ok__) => { @@ -5187,10 +3825,7 @@ impl ISpeechAudioStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDevicePosition(this: *mut core::ffi::c_void, currentdeviceposition: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechAudioStatus_Impl, - { + unsafe extern "system" fn CurrentDevicePosition(this: *mut core::ffi::c_void, currentdeviceposition: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechAudioStatus_Impl::CurrentDevicePosition(this) { Ok(ok__) => { @@ -5225,14 +3860,8 @@ pub trait ISpeechBaseStream_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ISpeechBaseStream {} #[cfg(feature = "Win32_System_Com")] impl ISpeechBaseStream_Vtbl { - pub const fn new() -> ISpeechBaseStream_Vtbl - where - Identity: ISpeechBaseStream_Impl, - { - unsafe extern "system" fn Format(this: *mut core::ffi::c_void, audioformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechBaseStream_Impl, - { + pub const fn new() -> ISpeechBaseStream_Vtbl { + unsafe extern "system" fn Format(this: *mut core::ffi::c_void, audioformat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechBaseStream_Impl::Format(this) { Ok(ok__) => { @@ -5242,24 +3871,15 @@ impl ISpeechBaseStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Format(this: *mut core::ffi::c_void, audioformat: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechBaseStream_Impl, - { + unsafe extern "system" fn putref_Format(this: *mut core::ffi::c_void, audioformat: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechBaseStream_Impl::putref_Format(this, windows_core::from_raw_borrowed(&audioformat)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, buffer: *mut core::mem::MaybeUninit, numberofbytes: i32, bytesread: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechBaseStream_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, buffer: *mut core::mem::MaybeUninit, numberofbytes: i32, bytesread: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechBaseStream_Impl::Read(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&numberofbytes), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, buffer: core::mem::MaybeUninit, byteswritten: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechBaseStream_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, buffer: core::mem::MaybeUninit, byteswritten: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechBaseStream_Impl::Write(this, core::mem::transmute(&buffer)) { Ok(ok__) => { @@ -5269,10 +3889,7 @@ impl ISpeechBaseStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, position: core::mem::MaybeUninit, origin: SpeechStreamSeekPositionType, newposition: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechBaseStream_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, position: core::mem::MaybeUninit, origin: SpeechStreamSeekPositionType, newposition: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechBaseStream_Impl::Seek(this, core::mem::transmute(&position), core::mem::transmute_copy(&origin)) { Ok(ok__) => { @@ -5304,14 +3921,8 @@ pub trait ISpeechCustomStream_Impl: Sized + ISpeechBaseStream_Impl { impl windows_core::RuntimeName for ISpeechCustomStream {} #[cfg(feature = "Win32_System_Com")] impl ISpeechCustomStream_Vtbl { - pub const fn new() -> ISpeechCustomStream_Vtbl - where - Identity: ISpeechCustomStream_Impl, - { - unsafe extern "system" fn BaseStream(this: *mut core::ffi::c_void, ppunkstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechCustomStream_Impl, - { + pub const fn new() -> ISpeechCustomStream_Vtbl { + unsafe extern "system" fn BaseStream(this: *mut core::ffi::c_void, ppunkstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechCustomStream_Impl::BaseStream(this) { Ok(ok__) => { @@ -5321,10 +3932,7 @@ impl ISpeechCustomStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_BaseStream(this: *mut core::ffi::c_void, punkstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechCustomStream_Impl, - { + unsafe extern "system" fn putref_BaseStream(this: *mut core::ffi::c_void, punkstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechCustomStream_Impl::putref_BaseStream(this, windows_core::from_raw_borrowed(&punkstream)).into() } @@ -5357,21 +3965,12 @@ pub trait ISpeechDataKey_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISpeechDataKey {} #[cfg(feature = "Win32_System_Com")] impl ISpeechDataKey_Vtbl { - pub const fn new() -> ISpeechDataKey_Vtbl - where - Identity: ISpeechDataKey_Impl, - { - unsafe extern "system" fn SetBinaryValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + pub const fn new() -> ISpeechDataKey_Vtbl { + unsafe extern "system" fn SetBinaryValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechDataKey_Impl::SetBinaryValue(this, core::mem::transmute(&valuename), core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetBinaryValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn GetBinaryValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechDataKey_Impl::GetBinaryValue(this, core::mem::transmute(&valuename)) { Ok(ok__) => { @@ -5381,17 +3980,11 @@ impl ISpeechDataKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStringValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn SetStringValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechDataKey_Impl::SetStringValue(this, core::mem::transmute(&valuename), core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechDataKey_Impl::GetStringValue(this, core::mem::transmute(&valuename)) { Ok(ok__) => { @@ -5401,17 +3994,11 @@ impl ISpeechDataKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLongValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: i32) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn SetLongValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechDataKey_Impl::SetLongValue(this, core::mem::transmute(&valuename), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetLongValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn GetLongValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechDataKey_Impl::GetLongValue(this, core::mem::transmute(&valuename)) { Ok(ok__) => { @@ -5421,10 +4008,7 @@ impl ISpeechDataKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenKey(this: *mut core::ffi::c_void, subkeyname: core::mem::MaybeUninit, subkey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn OpenKey(this: *mut core::ffi::c_void, subkeyname: core::mem::MaybeUninit, subkey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechDataKey_Impl::OpenKey(this, core::mem::transmute(&subkeyname)) { Ok(ok__) => { @@ -5434,10 +4018,7 @@ impl ISpeechDataKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateKey(this: *mut core::ffi::c_void, subkeyname: core::mem::MaybeUninit, subkey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn CreateKey(this: *mut core::ffi::c_void, subkeyname: core::mem::MaybeUninit, subkey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechDataKey_Impl::CreateKey(this, core::mem::transmute(&subkeyname)) { Ok(ok__) => { @@ -5447,24 +4028,15 @@ impl ISpeechDataKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteKey(this: *mut core::ffi::c_void, subkeyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn DeleteKey(this: *mut core::ffi::c_void, subkeyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechDataKey_Impl::DeleteKey(this, core::mem::transmute(&subkeyname)).into() } - unsafe extern "system" fn DeleteValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn DeleteValue(this: *mut core::ffi::c_void, valuename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechDataKey_Impl::DeleteValue(this, core::mem::transmute(&valuename)).into() } - unsafe extern "system" fn EnumKeys(this: *mut core::ffi::c_void, index: i32, subkeyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn EnumKeys(this: *mut core::ffi::c_void, index: i32, subkeyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechDataKey_Impl::EnumKeys(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5474,10 +4046,7 @@ impl ISpeechDataKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumValues(this: *mut core::ffi::c_void, index: i32, valuename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechDataKey_Impl, - { + unsafe extern "system" fn EnumValues(this: *mut core::ffi::c_void, index: i32, valuename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechDataKey_Impl::EnumValues(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5516,21 +4085,12 @@ pub trait ISpeechFileStream_Impl: Sized + ISpeechBaseStream_Impl { impl windows_core::RuntimeName for ISpeechFileStream {} #[cfg(feature = "Win32_System_Com")] impl ISpeechFileStream_Vtbl { - pub const fn new() -> ISpeechFileStream_Vtbl - where - Identity: ISpeechFileStream_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit, filemode: SpeechStreamFileMode, doevents: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechFileStream_Impl, - { + pub const fn new() -> ISpeechFileStream_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit, filemode: SpeechStreamFileMode, doevents: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechFileStream_Impl::Open(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filemode), core::mem::transmute_copy(&doevents)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechFileStream_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechFileStream_Impl::Close(this).into() } @@ -5554,14 +4114,8 @@ pub trait ISpeechGrammarRule_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISpeechGrammarRule {} #[cfg(feature = "Win32_System_Com")] impl ISpeechGrammarRule_Vtbl { - pub const fn new() -> ISpeechGrammarRule_Vtbl - where - Identity: ISpeechGrammarRule_Impl, - { - unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, attributes: *mut SpeechRuleAttributes) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRule_Impl, - { + pub const fn new() -> ISpeechGrammarRule_Vtbl { + unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, attributes: *mut SpeechRuleAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRule_Impl::Attributes(this) { Ok(ok__) => { @@ -5571,10 +4125,7 @@ impl ISpeechGrammarRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitialState(this: *mut core::ffi::c_void, state: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRule_Impl, - { + unsafe extern "system" fn InitialState(this: *mut core::ffi::c_void, state: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRule_Impl::InitialState(this) { Ok(ok__) => { @@ -5584,10 +4135,7 @@ impl ISpeechGrammarRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRule_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRule_Impl::Name(this) { Ok(ok__) => { @@ -5597,10 +4145,7 @@ impl ISpeechGrammarRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRule_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRule_Impl::Id(this) { Ok(ok__) => { @@ -5610,24 +4155,15 @@ impl ISpeechGrammarRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRule_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechGrammarRule_Impl::Clear(this).into() } - unsafe extern "system" fn AddResource(this: *mut core::ffi::c_void, resourcename: core::mem::MaybeUninit, resourcevalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRule_Impl, - { + unsafe extern "system" fn AddResource(this: *mut core::ffi::c_void, resourcename: core::mem::MaybeUninit, resourcevalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechGrammarRule_Impl::AddResource(this, core::mem::transmute(&resourcename), core::mem::transmute(&resourcevalue)).into() } - unsafe extern "system" fn AddState(this: *mut core::ffi::c_void, state: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRule_Impl, - { + unsafe extern "system" fn AddState(this: *mut core::ffi::c_void, state: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRule_Impl::AddState(this) { Ok(ok__) => { @@ -5664,14 +4200,8 @@ pub trait ISpeechGrammarRuleState_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for ISpeechGrammarRuleState {} #[cfg(feature = "Win32_System_Com")] impl ISpeechGrammarRuleState_Vtbl { - pub const fn new() -> ISpeechGrammarRuleState_Vtbl - where - Identity: ISpeechGrammarRuleState_Impl, - { - unsafe extern "system" fn Rule(this: *mut core::ffi::c_void, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleState_Impl, - { + pub const fn new() -> ISpeechGrammarRuleState_Vtbl { + unsafe extern "system" fn Rule(this: *mut core::ffi::c_void, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleState_Impl::Rule(this) { Ok(ok__) => { @@ -5681,10 +4211,7 @@ impl ISpeechGrammarRuleState_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Transitions(this: *mut core::ffi::c_void, transitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleState_Impl, - { + unsafe extern "system" fn Transitions(this: *mut core::ffi::c_void, transitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleState_Impl::Transitions(this) { Ok(ok__) => { @@ -5694,24 +4221,15 @@ impl ISpeechGrammarRuleState_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddWordTransition(this: *mut core::ffi::c_void, deststate: *mut core::ffi::c_void, words: core::mem::MaybeUninit, separators: core::mem::MaybeUninit, r#type: SpeechGrammarWordType, propertyname: core::mem::MaybeUninit, propertyid: i32, propertyvalue: *const core::mem::MaybeUninit, weight: f32) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleState_Impl, - { + unsafe extern "system" fn AddWordTransition(this: *mut core::ffi::c_void, deststate: *mut core::ffi::c_void, words: core::mem::MaybeUninit, separators: core::mem::MaybeUninit, r#type: SpeechGrammarWordType, propertyname: core::mem::MaybeUninit, propertyid: i32, propertyvalue: *const core::mem::MaybeUninit, weight: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechGrammarRuleState_Impl::AddWordTransition(this, windows_core::from_raw_borrowed(&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(this: *mut core::ffi::c_void, destinationstate: *mut core::ffi::c_void, rule: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, propertyid: i32, propertyvalue: *const core::mem::MaybeUninit, weight: f32) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleState_Impl, - { + unsafe extern "system" fn AddRuleTransition(this: *mut core::ffi::c_void, destinationstate: *mut core::ffi::c_void, rule: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, propertyid: i32, propertyvalue: *const core::mem::MaybeUninit, weight: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechGrammarRuleState_Impl::AddRuleTransition(this, windows_core::from_raw_borrowed(&destinationstate), windows_core::from_raw_borrowed(&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(this: *mut core::ffi::c_void, destinationstate: *mut core::ffi::c_void, r#type: SpeechSpecialTransitionType, propertyname: core::mem::MaybeUninit, propertyid: i32, propertyvalue: *const core::mem::MaybeUninit, weight: f32) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleState_Impl, - { + unsafe extern "system" fn AddSpecialTransition(this: *mut core::ffi::c_void, destinationstate: *mut core::ffi::c_void, r#type: SpeechSpecialTransitionType, propertyname: core::mem::MaybeUninit, propertyid: i32, propertyvalue: *const core::mem::MaybeUninit, weight: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechGrammarRuleState_Impl::AddSpecialTransition(this, windows_core::from_raw_borrowed(&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() } @@ -5743,14 +4261,8 @@ pub trait ISpeechGrammarRuleStateTransition_Impl: Sized + super::super::System:: impl windows_core::RuntimeName for ISpeechGrammarRuleStateTransition {} #[cfg(feature = "Win32_System_Com")] impl ISpeechGrammarRuleStateTransition_Vtbl { - pub const fn new() -> ISpeechGrammarRuleStateTransition_Vtbl - where - Identity: ISpeechGrammarRuleStateTransition_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut SpeechGrammarRuleStateTransitionType) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransition_Impl, - { + pub const fn new() -> ISpeechGrammarRuleStateTransition_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut SpeechGrammarRuleStateTransitionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransition_Impl::Type(this) { Ok(ok__) => { @@ -5760,10 +4272,7 @@ impl ISpeechGrammarRuleStateTransition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Text(this: *mut core::ffi::c_void, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransition_Impl, - { + unsafe extern "system" fn Text(this: *mut core::ffi::c_void, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransition_Impl::Text(this) { Ok(ok__) => { @@ -5773,10 +4282,7 @@ impl ISpeechGrammarRuleStateTransition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rule(this: *mut core::ffi::c_void, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransition_Impl, - { + unsafe extern "system" fn Rule(this: *mut core::ffi::c_void, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransition_Impl::Rule(this) { Ok(ok__) => { @@ -5786,10 +4292,7 @@ impl ISpeechGrammarRuleStateTransition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Weight(this: *mut core::ffi::c_void, weight: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransition_Impl, - { + unsafe extern "system" fn Weight(this: *mut core::ffi::c_void, weight: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransition_Impl::Weight(this) { Ok(ok__) => { @@ -5799,10 +4302,7 @@ impl ISpeechGrammarRuleStateTransition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PropertyName(this: *mut core::ffi::c_void, propertyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransition_Impl, - { + unsafe extern "system" fn PropertyName(this: *mut core::ffi::c_void, propertyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransition_Impl::PropertyName(this) { Ok(ok__) => { @@ -5812,10 +4312,7 @@ impl ISpeechGrammarRuleStateTransition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PropertyId(this: *mut core::ffi::c_void, propertyid: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransition_Impl, - { + unsafe extern "system" fn PropertyId(this: *mut core::ffi::c_void, propertyid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransition_Impl::PropertyId(this) { Ok(ok__) => { @@ -5825,10 +4322,7 @@ impl ISpeechGrammarRuleStateTransition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PropertyValue(this: *mut core::ffi::c_void, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransition_Impl, - { + unsafe extern "system" fn PropertyValue(this: *mut core::ffi::c_void, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransition_Impl::PropertyValue(this) { Ok(ok__) => { @@ -5838,10 +4332,7 @@ impl ISpeechGrammarRuleStateTransition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NextState(this: *mut core::ffi::c_void, nextstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransition_Impl, - { + unsafe extern "system" fn NextState(this: *mut core::ffi::c_void, nextstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransition_Impl::NextState(this) { Ok(ok__) => { @@ -5877,14 +4368,8 @@ pub trait ISpeechGrammarRuleStateTransitions_Impl: Sized + super::super::System: impl windows_core::RuntimeName for ISpeechGrammarRuleStateTransitions {} #[cfg(feature = "Win32_System_Com")] impl ISpeechGrammarRuleStateTransitions_Vtbl { - pub const fn new() -> ISpeechGrammarRuleStateTransitions_Vtbl - where - Identity: ISpeechGrammarRuleStateTransitions_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransitions_Impl, - { + pub const fn new() -> ISpeechGrammarRuleStateTransitions_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransitions_Impl::Count(this) { Ok(ok__) => { @@ -5894,10 +4379,7 @@ impl ISpeechGrammarRuleStateTransitions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransitions_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransitions_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5907,10 +4389,7 @@ impl ISpeechGrammarRuleStateTransitions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRuleStateTransitions_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRuleStateTransitions_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5946,14 +4425,8 @@ pub trait ISpeechGrammarRules_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ISpeechGrammarRules {} #[cfg(feature = "Win32_System_Com")] impl ISpeechGrammarRules_Vtbl { - pub const fn new() -> ISpeechGrammarRules_Vtbl - where - Identity: ISpeechGrammarRules_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRules_Impl, - { + pub const fn new() -> ISpeechGrammarRules_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRules_Impl::Count(this) { Ok(ok__) => { @@ -5963,10 +4436,7 @@ impl ISpeechGrammarRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindRule(this: *mut core::ffi::c_void, rulenameorid: core::mem::MaybeUninit, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRules_Impl, - { + unsafe extern "system" fn FindRule(this: *mut core::ffi::c_void, rulenameorid: core::mem::MaybeUninit, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRules_Impl::FindRule(this, core::mem::transmute(&rulenameorid)) { Ok(ok__) => { @@ -5976,10 +4446,7 @@ impl ISpeechGrammarRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRules_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRules_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5989,10 +4456,7 @@ impl ISpeechGrammarRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRules_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRules_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6002,10 +4466,7 @@ impl ISpeechGrammarRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Dynamic(this: *mut core::ffi::c_void, dynamic: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRules_Impl, - { + unsafe extern "system" fn Dynamic(this: *mut core::ffi::c_void, dynamic: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRules_Impl::Dynamic(this) { Ok(ok__) => { @@ -6015,10 +4476,7 @@ impl ISpeechGrammarRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, rulename: core::mem::MaybeUninit, attributes: SpeechRuleAttributes, ruleid: i32, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRules_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, rulename: core::mem::MaybeUninit, attributes: SpeechRuleAttributes, ruleid: i32, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechGrammarRules_Impl::Add(this, core::mem::transmute(&rulename), core::mem::transmute_copy(&attributes), core::mem::transmute_copy(&ruleid)) { Ok(ok__) => { @@ -6028,17 +4486,11 @@ impl ISpeechGrammarRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRules_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechGrammarRules_Impl::Commit(this).into() } - unsafe extern "system" fn CommitAndSave(this: *mut core::ffi::c_void, errortext: *mut core::mem::MaybeUninit, savestream: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechGrammarRules_Impl, - { + unsafe extern "system" fn CommitAndSave(this: *mut core::ffi::c_void, errortext: *mut core::mem::MaybeUninit, savestream: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechGrammarRules_Impl::CommitAndSave(this, core::mem::transmute_copy(&errortext), core::mem::transmute_copy(&savestream)).into() } @@ -6073,14 +4525,8 @@ pub trait ISpeechLexicon_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISpeechLexicon {} #[cfg(feature = "Win32_System_Com")] impl ISpeechLexicon_Vtbl { - pub const fn new() -> ISpeechLexicon_Vtbl - where - Identity: ISpeechLexicon_Impl, - { - unsafe extern "system" fn GenerationId(this: *mut core::ffi::c_void, generationid: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechLexicon_Impl, - { + pub const fn new() -> ISpeechLexicon_Vtbl { + unsafe extern "system" fn GenerationId(this: *mut core::ffi::c_void, generationid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexicon_Impl::GenerationId(this) { Ok(ok__) => { @@ -6090,45 +4536,27 @@ impl ISpeechLexicon_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWords(this: *mut core::ffi::c_void, flags: SpeechLexiconType, generationid: *mut i32, words: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechLexicon_Impl, - { + unsafe extern "system" fn GetWords(this: *mut core::ffi::c_void, flags: SpeechLexiconType, generationid: *mut i32, words: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechLexicon_Impl::GetWords(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&generationid), core::mem::transmute_copy(&words)).into() } - unsafe extern "system" fn AddPronunciation(this: *mut core::ffi::c_void, bstrword: core::mem::MaybeUninit, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechLexicon_Impl, - { + unsafe extern "system" fn AddPronunciation(this: *mut core::ffi::c_void, bstrword: core::mem::MaybeUninit, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechLexicon_Impl::AddPronunciation(this, core::mem::transmute(&bstrword), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&partofspeech), core::mem::transmute(&bstrpronunciation)).into() } - unsafe extern "system" fn AddPronunciationByPhoneIds(this: *mut core::ffi::c_void, bstrword: core::mem::MaybeUninit, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechLexicon_Impl, - { + unsafe extern "system" fn AddPronunciationByPhoneIds(this: *mut core::ffi::c_void, bstrword: core::mem::MaybeUninit, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechLexicon_Impl::AddPronunciationByPhoneIds(this, 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(this: *mut core::ffi::c_void, bstrword: core::mem::MaybeUninit, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechLexicon_Impl, - { + unsafe extern "system" fn RemovePronunciation(this: *mut core::ffi::c_void, bstrword: core::mem::MaybeUninit, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechLexicon_Impl::RemovePronunciation(this, core::mem::transmute(&bstrword), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&partofspeech), core::mem::transmute(&bstrpronunciation)).into() } - unsafe extern "system" fn RemovePronunciationByPhoneIds(this: *mut core::ffi::c_void, bstrword: core::mem::MaybeUninit, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechLexicon_Impl, - { + unsafe extern "system" fn RemovePronunciationByPhoneIds(this: *mut core::ffi::c_void, bstrword: core::mem::MaybeUninit, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechLexicon_Impl::RemovePronunciationByPhoneIds(this, 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(this: *mut core::ffi::c_void, bstrword: core::mem::MaybeUninit, langid: i32, typeflags: SpeechLexiconType, pppronunciations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechLexicon_Impl, - { + unsafe extern "system" fn GetPronunciations(this: *mut core::ffi::c_void, bstrword: core::mem::MaybeUninit, langid: i32, typeflags: SpeechLexiconType, pppronunciations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexicon_Impl::GetPronunciations(this, core::mem::transmute(&bstrword), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&typeflags)) { Ok(ok__) => { @@ -6138,10 +4566,7 @@ impl ISpeechLexicon_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGenerationChange(this: *mut core::ffi::c_void, generationid: *mut i32, ppwords: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechLexicon_Impl, - { + unsafe extern "system" fn GetGenerationChange(this: *mut core::ffi::c_void, generationid: *mut i32, ppwords: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechLexicon_Impl::GetGenerationChange(this, core::mem::transmute_copy(&generationid), core::mem::transmute_copy(&ppwords)).into() } @@ -6173,14 +4598,8 @@ pub trait ISpeechLexiconPronunciation_Impl: Sized + super::super::System::Com::I impl windows_core::RuntimeName for ISpeechLexiconPronunciation {} #[cfg(feature = "Win32_System_Com")] impl ISpeechLexiconPronunciation_Vtbl { - pub const fn new() -> ISpeechLexiconPronunciation_Vtbl - where - Identity: ISpeechLexiconPronunciation_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, lexicontype: *mut SpeechLexiconType) -> windows_core::HRESULT - where - Identity: ISpeechLexiconPronunciation_Impl, - { + pub const fn new() -> ISpeechLexiconPronunciation_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, lexicontype: *mut SpeechLexiconType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconPronunciation_Impl::Type(this) { Ok(ok__) => { @@ -6190,10 +4609,7 @@ impl ISpeechLexiconPronunciation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LangId(this: *mut core::ffi::c_void, langid: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechLexiconPronunciation_Impl, - { + unsafe extern "system" fn LangId(this: *mut core::ffi::c_void, langid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconPronunciation_Impl::LangId(this) { Ok(ok__) => { @@ -6203,10 +4619,7 @@ impl ISpeechLexiconPronunciation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PartOfSpeech(this: *mut core::ffi::c_void, partofspeech: *mut SpeechPartOfSpeech) -> windows_core::HRESULT - where - Identity: ISpeechLexiconPronunciation_Impl, - { + unsafe extern "system" fn PartOfSpeech(this: *mut core::ffi::c_void, partofspeech: *mut SpeechPartOfSpeech) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconPronunciation_Impl::PartOfSpeech(this) { Ok(ok__) => { @@ -6216,10 +4629,7 @@ impl ISpeechLexiconPronunciation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PhoneIds(this: *mut core::ffi::c_void, phoneids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechLexiconPronunciation_Impl, - { + unsafe extern "system" fn PhoneIds(this: *mut core::ffi::c_void, phoneids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconPronunciation_Impl::PhoneIds(this) { Ok(ok__) => { @@ -6229,10 +4639,7 @@ impl ISpeechLexiconPronunciation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Symbolic(this: *mut core::ffi::c_void, symbolic: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechLexiconPronunciation_Impl, - { + unsafe extern "system" fn Symbolic(this: *mut core::ffi::c_void, symbolic: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconPronunciation_Impl::Symbolic(this) { Ok(ok__) => { @@ -6265,14 +4672,8 @@ pub trait ISpeechLexiconPronunciations_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for ISpeechLexiconPronunciations {} #[cfg(feature = "Win32_System_Com")] impl ISpeechLexiconPronunciations_Vtbl { - pub const fn new() -> ISpeechLexiconPronunciations_Vtbl - where - Identity: ISpeechLexiconPronunciations_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechLexiconPronunciations_Impl, - { + pub const fn new() -> ISpeechLexiconPronunciations_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconPronunciations_Impl::Count(this) { Ok(ok__) => { @@ -6282,10 +4683,7 @@ impl ISpeechLexiconPronunciations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, pronunciation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechLexiconPronunciations_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, pronunciation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconPronunciations_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6295,10 +4693,7 @@ impl ISpeechLexiconPronunciations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechLexiconPronunciations_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconPronunciations_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6330,14 +4725,8 @@ pub trait ISpeechLexiconWord_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISpeechLexiconWord {} #[cfg(feature = "Win32_System_Com")] impl ISpeechLexiconWord_Vtbl { - pub const fn new() -> ISpeechLexiconWord_Vtbl - where - Identity: ISpeechLexiconWord_Impl, - { - unsafe extern "system" fn LangId(this: *mut core::ffi::c_void, langid: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechLexiconWord_Impl, - { + pub const fn new() -> ISpeechLexiconWord_Vtbl { + unsafe extern "system" fn LangId(this: *mut core::ffi::c_void, langid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconWord_Impl::LangId(this) { Ok(ok__) => { @@ -6347,10 +4736,7 @@ impl ISpeechLexiconWord_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, wordtype: *mut SpeechWordType) -> windows_core::HRESULT - where - Identity: ISpeechLexiconWord_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, wordtype: *mut SpeechWordType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconWord_Impl::Type(this) { Ok(ok__) => { @@ -6360,10 +4746,7 @@ impl ISpeechLexiconWord_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Word(this: *mut core::ffi::c_void, word: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechLexiconWord_Impl, - { + unsafe extern "system" fn Word(this: *mut core::ffi::c_void, word: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconWord_Impl::Word(this) { Ok(ok__) => { @@ -6373,10 +4756,7 @@ impl ISpeechLexiconWord_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pronunciations(this: *mut core::ffi::c_void, pronunciations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechLexiconWord_Impl, - { + unsafe extern "system" fn Pronunciations(this: *mut core::ffi::c_void, pronunciations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconWord_Impl::Pronunciations(this) { Ok(ok__) => { @@ -6408,14 +4788,8 @@ pub trait ISpeechLexiconWords_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ISpeechLexiconWords {} #[cfg(feature = "Win32_System_Com")] impl ISpeechLexiconWords_Vtbl { - pub const fn new() -> ISpeechLexiconWords_Vtbl - where - Identity: ISpeechLexiconWords_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechLexiconWords_Impl, - { + pub const fn new() -> ISpeechLexiconWords_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconWords_Impl::Count(this) { Ok(ok__) => { @@ -6425,10 +4799,7 @@ impl ISpeechLexiconWords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, word: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechLexiconWords_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, word: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconWords_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6438,10 +4809,7 @@ impl ISpeechLexiconWords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechLexiconWords_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechLexiconWords_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6474,14 +4842,8 @@ pub trait ISpeechMMSysAudio_Impl: Sized + ISpeechAudio_Impl { impl windows_core::RuntimeName for ISpeechMMSysAudio {} #[cfg(feature = "Win32_System_Com")] impl ISpeechMMSysAudio_Vtbl { - pub const fn new() -> ISpeechMMSysAudio_Vtbl - where - Identity: ISpeechMMSysAudio_Impl, - { - unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, deviceid: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechMMSysAudio_Impl, - { + pub const fn new() -> ISpeechMMSysAudio_Vtbl { + unsafe extern "system" fn DeviceId(this: *mut core::ffi::c_void, deviceid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechMMSysAudio_Impl::DeviceId(this) { Ok(ok__) => { @@ -6491,17 +4853,11 @@ impl ISpeechMMSysAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDeviceId(this: *mut core::ffi::c_void, deviceid: i32) -> windows_core::HRESULT - where - Identity: ISpeechMMSysAudio_Impl, - { + unsafe extern "system" fn SetDeviceId(this: *mut core::ffi::c_void, deviceid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechMMSysAudio_Impl::SetDeviceId(this, core::mem::transmute_copy(&deviceid)).into() } - unsafe extern "system" fn LineId(this: *mut core::ffi::c_void, lineid: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechMMSysAudio_Impl, - { + unsafe extern "system" fn LineId(this: *mut core::ffi::c_void, lineid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechMMSysAudio_Impl::LineId(this) { Ok(ok__) => { @@ -6511,17 +4867,11 @@ impl ISpeechMMSysAudio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLineId(this: *mut core::ffi::c_void, lineid: i32) -> windows_core::HRESULT - where - Identity: ISpeechMMSysAudio_Impl, - { + unsafe extern "system" fn SetLineId(this: *mut core::ffi::c_void, lineid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechMMSysAudio_Impl::SetLineId(this, core::mem::transmute_copy(&lineid)).into() } - unsafe extern "system" fn MMHandle(this: *mut core::ffi::c_void, handle: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechMMSysAudio_Impl, - { + unsafe extern "system" fn MMHandle(this: *mut core::ffi::c_void, handle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechMMSysAudio_Impl::MMHandle(this) { Ok(ok__) => { @@ -6553,21 +4903,12 @@ pub trait ISpeechMemoryStream_Impl: Sized + ISpeechBaseStream_Impl { impl windows_core::RuntimeName for ISpeechMemoryStream {} #[cfg(feature = "Win32_System_Com")] impl ISpeechMemoryStream_Vtbl { - pub const fn new() -> ISpeechMemoryStream_Vtbl - where - Identity: ISpeechMemoryStream_Impl, - { - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechMemoryStream_Impl, - { + pub const fn new() -> ISpeechMemoryStream_Vtbl { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechMemoryStream_Impl::SetData(this, core::mem::transmute(&data)).into() } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechMemoryStream_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechMemoryStream_Impl::GetData(this) { Ok(ok__) => { @@ -6603,14 +4944,8 @@ pub trait ISpeechObjectToken_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISpeechObjectToken {} #[cfg(feature = "Win32_System_Com")] impl ISpeechObjectToken_Vtbl { - pub const fn new() -> ISpeechObjectToken_Vtbl - where - Identity: ISpeechObjectToken_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, objectid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + pub const fn new() -> ISpeechObjectToken_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, objectid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectToken_Impl::Id(this) { Ok(ok__) => { @@ -6620,10 +4955,7 @@ impl ISpeechObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DataKey(this: *mut core::ffi::c_void, datakey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn DataKey(this: *mut core::ffi::c_void, datakey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectToken_Impl::DataKey(this) { Ok(ok__) => { @@ -6633,10 +4965,7 @@ impl ISpeechObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Category(this: *mut core::ffi::c_void, category: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn Category(this: *mut core::ffi::c_void, category: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectToken_Impl::Category(this) { Ok(ok__) => { @@ -6646,10 +4975,7 @@ impl ISpeechObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, locale: i32, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, locale: i32, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectToken_Impl::GetDescription(this, core::mem::transmute_copy(&locale)) { Ok(ok__) => { @@ -6659,17 +4985,11 @@ impl ISpeechObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit, categoryid: core::mem::MaybeUninit, createifnotexist: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit, categoryid: core::mem::MaybeUninit, createifnotexist: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechObjectToken_Impl::SetId(this, core::mem::transmute(&id), core::mem::transmute(&categoryid), core::mem::transmute_copy(&createifnotexist)).into() } - unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, attributename: core::mem::MaybeUninit, attributevalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, attributename: core::mem::MaybeUninit, attributevalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectToken_Impl::GetAttribute(this, core::mem::transmute(&attributename)) { Ok(ok__) => { @@ -6679,10 +4999,7 @@ impl ISpeechObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, clscontext: SpeechTokenContext, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, clscontext: SpeechTokenContext, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectToken_Impl::CreateInstance(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&clscontext)) { Ok(ok__) => { @@ -6692,17 +5009,11 @@ impl ISpeechObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, objectstorageclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, objectstorageclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechObjectToken_Impl::Remove(this, core::mem::transmute(&objectstorageclsid)).into() } - unsafe extern "system" fn GetStorageFileName(this: *mut core::ffi::c_void, objectstorageclsid: core::mem::MaybeUninit, keyname: core::mem::MaybeUninit, filename: core::mem::MaybeUninit, folder: SpeechTokenShellFolder, filepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn GetStorageFileName(this: *mut core::ffi::c_void, objectstorageclsid: core::mem::MaybeUninit, keyname: core::mem::MaybeUninit, filename: core::mem::MaybeUninit, folder: SpeechTokenShellFolder, filepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectToken_Impl::GetStorageFileName(this, core::mem::transmute(&objectstorageclsid), core::mem::transmute(&keyname), core::mem::transmute(&filename), core::mem::transmute_copy(&folder)) { Ok(ok__) => { @@ -6712,17 +5023,11 @@ impl ISpeechObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveStorageFileName(this: *mut core::ffi::c_void, objectstorageclsid: core::mem::MaybeUninit, keyname: core::mem::MaybeUninit, deletefile: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn RemoveStorageFileName(this: *mut core::ffi::c_void, objectstorageclsid: core::mem::MaybeUninit, keyname: core::mem::MaybeUninit, deletefile: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechObjectToken_Impl::RemoveStorageFileName(this, core::mem::transmute(&objectstorageclsid), core::mem::transmute(&keyname), core::mem::transmute_copy(&deletefile)).into() } - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit, object: *mut core::ffi::c_void, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit, object: *mut core::ffi::c_void, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectToken_Impl::IsUISupported(this, core::mem::transmute(&typeofui), core::mem::transmute_copy(&extradata), windows_core::from_raw_borrowed(&object)) { Ok(ok__) => { @@ -6732,17 +5037,11 @@ impl ISpeechObjectToken_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwnd: i32, title: core::mem::MaybeUninit, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwnd: i32, title: core::mem::MaybeUninit, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechObjectToken_Impl::DisplayUI(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&title), core::mem::transmute(&typeofui), core::mem::transmute_copy(&extradata), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn MatchesAttributes(this: *mut core::ffi::c_void, attributes: core::mem::MaybeUninit, matches: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechObjectToken_Impl, - { + unsafe extern "system" fn MatchesAttributes(this: *mut core::ffi::c_void, attributes: core::mem::MaybeUninit, matches: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectToken_Impl::MatchesAttributes(this, core::mem::transmute(&attributes)) { Ok(ok__) => { @@ -6786,14 +5085,8 @@ pub trait ISpeechObjectTokenCategory_Impl: Sized + super::super::System::Com::ID impl windows_core::RuntimeName for ISpeechObjectTokenCategory {} #[cfg(feature = "Win32_System_Com")] impl ISpeechObjectTokenCategory_Vtbl { - pub const fn new() -> ISpeechObjectTokenCategory_Vtbl - where - Identity: ISpeechObjectTokenCategory_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechObjectTokenCategory_Impl, - { + pub const fn new() -> ISpeechObjectTokenCategory_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectTokenCategory_Impl::Id(this) { Ok(ok__) => { @@ -6803,17 +5096,11 @@ impl ISpeechObjectTokenCategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void, tokenid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechObjectTokenCategory_Impl, - { + unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void, tokenid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechObjectTokenCategory_Impl::SetDefault(this, core::mem::transmute(&tokenid)).into() } - unsafe extern "system" fn Default(this: *mut core::ffi::c_void, tokenid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechObjectTokenCategory_Impl, - { + unsafe extern "system" fn Default(this: *mut core::ffi::c_void, tokenid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectTokenCategory_Impl::Default(this) { Ok(ok__) => { @@ -6823,17 +5110,11 @@ impl ISpeechObjectTokenCategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit, createifnotexist: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechObjectTokenCategory_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit, createifnotexist: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechObjectTokenCategory_Impl::SetId(this, core::mem::transmute(&id), core::mem::transmute_copy(&createifnotexist)).into() } - unsafe extern "system" fn GetDataKey(this: *mut core::ffi::c_void, location: SpeechDataKeyLocation, datakey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechObjectTokenCategory_Impl, - { + unsafe extern "system" fn GetDataKey(this: *mut core::ffi::c_void, location: SpeechDataKeyLocation, datakey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectTokenCategory_Impl::GetDataKey(this, core::mem::transmute_copy(&location)) { Ok(ok__) => { @@ -6843,10 +5124,7 @@ impl ISpeechObjectTokenCategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateTokens(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, tokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechObjectTokenCategory_Impl, - { + unsafe extern "system" fn EnumerateTokens(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, tokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectTokenCategory_Impl::EnumerateTokens(this, core::mem::transmute(&requiredattributes), core::mem::transmute(&optionalattributes)) { Ok(ok__) => { @@ -6880,14 +5158,8 @@ pub trait ISpeechObjectTokens_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ISpeechObjectTokens {} #[cfg(feature = "Win32_System_Com")] impl ISpeechObjectTokens_Vtbl { - pub const fn new() -> ISpeechObjectTokens_Vtbl - where - Identity: ISpeechObjectTokens_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechObjectTokens_Impl, - { + pub const fn new() -> ISpeechObjectTokens_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectTokens_Impl::Count(this) { Ok(ok__) => { @@ -6897,10 +5169,7 @@ impl ISpeechObjectTokens_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, token: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechObjectTokens_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, token: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectTokens_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6910,10 +5179,7 @@ impl ISpeechObjectTokens_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechObjectTokens_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechObjectTokens_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6945,14 +5211,8 @@ pub trait ISpeechPhoneConverter_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ISpeechPhoneConverter {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhoneConverter_Vtbl { - pub const fn new() -> ISpeechPhoneConverter_Vtbl - where - Identity: ISpeechPhoneConverter_Impl, - { - unsafe extern "system" fn LanguageId(this: *mut core::ffi::c_void, languageid: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhoneConverter_Impl, - { + pub const fn new() -> ISpeechPhoneConverter_Vtbl { + unsafe extern "system" fn LanguageId(this: *mut core::ffi::c_void, languageid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhoneConverter_Impl::LanguageId(this) { Ok(ok__) => { @@ -6962,17 +5222,11 @@ impl ISpeechPhoneConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLanguageId(this: *mut core::ffi::c_void, languageid: i32) -> windows_core::HRESULT - where - Identity: ISpeechPhoneConverter_Impl, - { + unsafe extern "system" fn SetLanguageId(this: *mut core::ffi::c_void, languageid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechPhoneConverter_Impl::SetLanguageId(this, core::mem::transmute_copy(&languageid)).into() } - unsafe extern "system" fn PhoneToId(this: *mut core::ffi::c_void, phonemes: core::mem::MaybeUninit, idarray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhoneConverter_Impl, - { + unsafe extern "system" fn PhoneToId(this: *mut core::ffi::c_void, phonemes: core::mem::MaybeUninit, idarray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhoneConverter_Impl::PhoneToId(this, core::mem::transmute(&phonemes)) { Ok(ok__) => { @@ -6982,10 +5236,7 @@ impl ISpeechPhoneConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IdToPhone(this: *mut core::ffi::c_void, idarray: core::mem::MaybeUninit, phonemes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhoneConverter_Impl, - { + unsafe extern "system" fn IdToPhone(this: *mut core::ffi::c_void, idarray: core::mem::MaybeUninit, phonemes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhoneConverter_Impl::IdToPhone(this, core::mem::transmute(&idarray)) { Ok(ok__) => { @@ -7019,14 +5270,8 @@ pub trait ISpeechPhraseAlternate_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for ISpeechPhraseAlternate {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseAlternate_Vtbl { - pub const fn new() -> ISpeechPhraseAlternate_Vtbl - where - Identity: ISpeechPhraseAlternate_Impl, - { - unsafe extern "system" fn RecoResult(this: *mut core::ffi::c_void, recoresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseAlternate_Impl, - { + pub const fn new() -> ISpeechPhraseAlternate_Vtbl { + unsafe extern "system" fn RecoResult(this: *mut core::ffi::c_void, recoresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseAlternate_Impl::RecoResult(this) { Ok(ok__) => { @@ -7036,10 +5281,7 @@ impl ISpeechPhraseAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartElementInResult(this: *mut core::ffi::c_void, startelement: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseAlternate_Impl, - { + unsafe extern "system" fn StartElementInResult(this: *mut core::ffi::c_void, startelement: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseAlternate_Impl::StartElementInResult(this) { Ok(ok__) => { @@ -7049,10 +5291,7 @@ impl ISpeechPhraseAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfElementsInResult(this: *mut core::ffi::c_void, numberofelements: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseAlternate_Impl, - { + unsafe extern "system" fn NumberOfElementsInResult(this: *mut core::ffi::c_void, numberofelements: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseAlternate_Impl::NumberOfElementsInResult(this) { Ok(ok__) => { @@ -7062,10 +5301,7 @@ impl ISpeechPhraseAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PhraseInfo(this: *mut core::ffi::c_void, phraseinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseAlternate_Impl, - { + unsafe extern "system" fn PhraseInfo(this: *mut core::ffi::c_void, phraseinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseAlternate_Impl::PhraseInfo(this) { Ok(ok__) => { @@ -7075,10 +5311,7 @@ impl ISpeechPhraseAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseAlternate_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechPhraseAlternate_Impl::Commit(this).into() } @@ -7105,14 +5338,8 @@ pub trait ISpeechPhraseAlternates_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for ISpeechPhraseAlternates {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseAlternates_Vtbl { - pub const fn new() -> ISpeechPhraseAlternates_Vtbl - where - Identity: ISpeechPhraseAlternates_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseAlternates_Impl, - { + pub const fn new() -> ISpeechPhraseAlternates_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseAlternates_Impl::Count(this) { Ok(ok__) => { @@ -7122,10 +5349,7 @@ impl ISpeechPhraseAlternates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, phrasealternate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseAlternates_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, phrasealternate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseAlternates_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -7135,10 +5359,7 @@ impl ISpeechPhraseAlternates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseAlternates_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseAlternates_Impl::_NewEnum(this) { Ok(ok__) => { @@ -7179,14 +5400,8 @@ pub trait ISpeechPhraseElement_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for ISpeechPhraseElement {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseElement_Vtbl { - pub const fn new() -> ISpeechPhraseElement_Vtbl - where - Identity: ISpeechPhraseElement_Impl, - { - unsafe extern "system" fn AudioTimeOffset(this: *mut core::ffi::c_void, audiotimeoffset: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + pub const fn new() -> ISpeechPhraseElement_Vtbl { + unsafe extern "system" fn AudioTimeOffset(this: *mut core::ffi::c_void, audiotimeoffset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::AudioTimeOffset(this) { Ok(ok__) => { @@ -7196,10 +5411,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioSizeTime(this: *mut core::ffi::c_void, audiosizetime: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn AudioSizeTime(this: *mut core::ffi::c_void, audiosizetime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::AudioSizeTime(this) { Ok(ok__) => { @@ -7209,10 +5421,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioStreamOffset(this: *mut core::ffi::c_void, audiostreamoffset: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn AudioStreamOffset(this: *mut core::ffi::c_void, audiostreamoffset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::AudioStreamOffset(this) { Ok(ok__) => { @@ -7222,10 +5431,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioSizeBytes(this: *mut core::ffi::c_void, audiosizebytes: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn AudioSizeBytes(this: *mut core::ffi::c_void, audiosizebytes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::AudioSizeBytes(this) { Ok(ok__) => { @@ -7235,10 +5441,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RetainedStreamOffset(this: *mut core::ffi::c_void, retainedstreamoffset: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn RetainedStreamOffset(this: *mut core::ffi::c_void, retainedstreamoffset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::RetainedStreamOffset(this) { Ok(ok__) => { @@ -7248,10 +5451,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RetainedSizeBytes(this: *mut core::ffi::c_void, retainedsizebytes: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn RetainedSizeBytes(this: *mut core::ffi::c_void, retainedsizebytes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::RetainedSizeBytes(this) { Ok(ok__) => { @@ -7261,10 +5461,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayText(this: *mut core::ffi::c_void, displaytext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn DisplayText(this: *mut core::ffi::c_void, displaytext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::DisplayText(this) { Ok(ok__) => { @@ -7274,10 +5471,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LexicalForm(this: *mut core::ffi::c_void, lexicalform: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn LexicalForm(this: *mut core::ffi::c_void, lexicalform: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::LexicalForm(this) { Ok(ok__) => { @@ -7287,10 +5481,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pronunciation(this: *mut core::ffi::c_void, pronunciation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn Pronunciation(this: *mut core::ffi::c_void, pronunciation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::Pronunciation(this) { Ok(ok__) => { @@ -7300,10 +5491,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayAttributes(this: *mut core::ffi::c_void, displayattributes: *mut SpeechDisplayAttributes) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn DisplayAttributes(this: *mut core::ffi::c_void, displayattributes: *mut SpeechDisplayAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::DisplayAttributes(this) { Ok(ok__) => { @@ -7313,10 +5501,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequiredConfidence(this: *mut core::ffi::c_void, requiredconfidence: *mut SpeechEngineConfidence) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn RequiredConfidence(this: *mut core::ffi::c_void, requiredconfidence: *mut SpeechEngineConfidence) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::RequiredConfidence(this) { Ok(ok__) => { @@ -7326,10 +5511,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActualConfidence(this: *mut core::ffi::c_void, actualconfidence: *mut SpeechEngineConfidence) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn ActualConfidence(this: *mut core::ffi::c_void, actualconfidence: *mut SpeechEngineConfidence) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::ActualConfidence(this) { Ok(ok__) => { @@ -7339,10 +5521,7 @@ impl ISpeechPhraseElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EngineConfidence(this: *mut core::ffi::c_void, engineconfidence: *mut f32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElement_Impl, - { + unsafe extern "system" fn EngineConfidence(this: *mut core::ffi::c_void, engineconfidence: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElement_Impl::EngineConfidence(this) { Ok(ok__) => { @@ -7383,14 +5562,8 @@ pub trait ISpeechPhraseElements_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ISpeechPhraseElements {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseElements_Vtbl { - pub const fn new() -> ISpeechPhraseElements_Vtbl - where - Identity: ISpeechPhraseElements_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElements_Impl, - { + pub const fn new() -> ISpeechPhraseElements_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElements_Impl::Count(this) { Ok(ok__) => { @@ -7400,10 +5573,7 @@ impl ISpeechPhraseElements_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElements_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElements_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -7413,10 +5583,7 @@ impl ISpeechPhraseElements_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseElements_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseElements_Impl::_NewEnum(this) { Ok(ok__) => { @@ -7460,14 +5627,8 @@ pub trait ISpeechPhraseInfo_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ISpeechPhraseInfo {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseInfo_Vtbl { - pub const fn new() -> ISpeechPhraseInfo_Vtbl - where - Identity: ISpeechPhraseInfo_Impl, - { - unsafe extern "system" fn LanguageId(this: *mut core::ffi::c_void, languageid: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + pub const fn new() -> ISpeechPhraseInfo_Vtbl { + unsafe extern "system" fn LanguageId(this: *mut core::ffi::c_void, languageid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::LanguageId(this) { Ok(ok__) => { @@ -7477,10 +5638,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GrammarId(this: *mut core::ffi::c_void, grammarid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn GrammarId(this: *mut core::ffi::c_void, grammarid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::GrammarId(this) { Ok(ok__) => { @@ -7490,10 +5648,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, starttime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, starttime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::StartTime(this) { Ok(ok__) => { @@ -7503,10 +5658,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioStreamPosition(this: *mut core::ffi::c_void, audiostreamposition: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn AudioStreamPosition(this: *mut core::ffi::c_void, audiostreamposition: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::AudioStreamPosition(this) { Ok(ok__) => { @@ -7516,10 +5668,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioSizeBytes(this: *mut core::ffi::c_void, paudiosizebytes: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn AudioSizeBytes(this: *mut core::ffi::c_void, paudiosizebytes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::AudioSizeBytes(this) { Ok(ok__) => { @@ -7529,10 +5678,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RetainedSizeBytes(this: *mut core::ffi::c_void, retainedsizebytes: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn RetainedSizeBytes(this: *mut core::ffi::c_void, retainedsizebytes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::RetainedSizeBytes(this) { Ok(ok__) => { @@ -7542,10 +5688,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioSizeTime(this: *mut core::ffi::c_void, audiosizetime: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn AudioSizeTime(this: *mut core::ffi::c_void, audiosizetime: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::AudioSizeTime(this) { Ok(ok__) => { @@ -7555,10 +5698,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rule(this: *mut core::ffi::c_void, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn Rule(this: *mut core::ffi::c_void, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::Rule(this) { Ok(ok__) => { @@ -7568,10 +5708,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::Properties(this) { Ok(ok__) => { @@ -7581,10 +5718,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Elements(this: *mut core::ffi::c_void, elements: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn Elements(this: *mut core::ffi::c_void, elements: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::Elements(this) { Ok(ok__) => { @@ -7594,10 +5728,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Replacements(this: *mut core::ffi::c_void, replacements: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn Replacements(this: *mut core::ffi::c_void, replacements: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::Replacements(this) { Ok(ok__) => { @@ -7607,10 +5738,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EngineId(this: *mut core::ffi::c_void, engineidguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn EngineId(this: *mut core::ffi::c_void, engineidguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::EngineId(this) { Ok(ok__) => { @@ -7620,10 +5748,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnginePrivateData(this: *mut core::ffi::c_void, privatedata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn EnginePrivateData(this: *mut core::ffi::c_void, privatedata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::EnginePrivateData(this) { Ok(ok__) => { @@ -7633,10 +5758,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveToMemory(this: *mut core::ffi::c_void, phraseblock: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn SaveToMemory(this: *mut core::ffi::c_void, phraseblock: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::SaveToMemory(this) { Ok(ok__) => { @@ -7646,10 +5768,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, startelement: i32, elements: i32, usereplacements: super::super::Foundation::VARIANT_BOOL, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, startelement: i32, elements: i32, usereplacements: super::super::Foundation::VARIANT_BOOL, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::GetText(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&elements), core::mem::transmute_copy(&usereplacements)) { Ok(ok__) => { @@ -7659,10 +5778,7 @@ impl ISpeechPhraseInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayAttributes(this: *mut core::ffi::c_void, startelement: i32, elements: i32, usereplacements: super::super::Foundation::VARIANT_BOOL, displayattributes: *mut SpeechDisplayAttributes) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfo_Impl, - { + unsafe extern "system" fn GetDisplayAttributes(this: *mut core::ffi::c_void, startelement: i32, elements: i32, usereplacements: super::super::Foundation::VARIANT_BOOL, displayattributes: *mut SpeechDisplayAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfo_Impl::GetDisplayAttributes(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&elements), core::mem::transmute_copy(&usereplacements)) { Ok(ok__) => { @@ -7704,14 +5820,8 @@ pub trait ISpeechPhraseInfoBuilder_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for ISpeechPhraseInfoBuilder {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseInfoBuilder_Vtbl { - pub const fn new() -> ISpeechPhraseInfoBuilder_Vtbl - where - Identity: ISpeechPhraseInfoBuilder_Impl, - { - unsafe extern "system" fn RestorePhraseFromMemory(this: *mut core::ffi::c_void, phraseinmemory: *const core::mem::MaybeUninit, phraseinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseInfoBuilder_Impl, - { + pub const fn new() -> ISpeechPhraseInfoBuilder_Vtbl { + unsafe extern "system" fn RestorePhraseFromMemory(this: *mut core::ffi::c_void, phraseinmemory: *const core::mem::MaybeUninit, phraseinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseInfoBuilder_Impl::RestorePhraseFromMemory(this, core::mem::transmute_copy(&phraseinmemory)) { Ok(ok__) => { @@ -7740,14 +5850,8 @@ pub trait ISpeechPhraseProperties_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for ISpeechPhraseProperties {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseProperties_Vtbl { - pub const fn new() -> ISpeechPhraseProperties_Vtbl - where - Identity: ISpeechPhraseProperties_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperties_Impl, - { + pub const fn new() -> ISpeechPhraseProperties_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperties_Impl::Count(this) { Ok(ok__) => { @@ -7757,10 +5861,7 @@ impl ISpeechPhraseProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, property: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperties_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, property: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperties_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -7770,10 +5871,7 @@ impl ISpeechPhraseProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperties_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperties_Impl::_NewEnum(this) { Ok(ok__) => { @@ -7810,14 +5908,8 @@ pub trait ISpeechPhraseProperty_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ISpeechPhraseProperty {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseProperty_Vtbl { - pub const fn new() -> ISpeechPhraseProperty_Vtbl - where - Identity: ISpeechPhraseProperty_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperty_Impl, - { + pub const fn new() -> ISpeechPhraseProperty_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperty_Impl::Name(this) { Ok(ok__) => { @@ -7827,10 +5919,7 @@ impl ISpeechPhraseProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperty_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperty_Impl::Id(this) { Ok(ok__) => { @@ -7840,10 +5929,7 @@ impl ISpeechPhraseProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperty_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperty_Impl::Value(this) { Ok(ok__) => { @@ -7853,10 +5939,7 @@ impl ISpeechPhraseProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FirstElement(this: *mut core::ffi::c_void, firstelement: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperty_Impl, - { + unsafe extern "system" fn FirstElement(this: *mut core::ffi::c_void, firstelement: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperty_Impl::FirstElement(this) { Ok(ok__) => { @@ -7866,10 +5949,7 @@ impl ISpeechPhraseProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfElements(this: *mut core::ffi::c_void, numberofelements: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperty_Impl, - { + unsafe extern "system" fn NumberOfElements(this: *mut core::ffi::c_void, numberofelements: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperty_Impl::NumberOfElements(this) { Ok(ok__) => { @@ -7879,10 +5959,7 @@ impl ISpeechPhraseProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EngineConfidence(this: *mut core::ffi::c_void, confidence: *mut f32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperty_Impl, - { + unsafe extern "system" fn EngineConfidence(this: *mut core::ffi::c_void, confidence: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperty_Impl::EngineConfidence(this) { Ok(ok__) => { @@ -7892,10 +5969,7 @@ impl ISpeechPhraseProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Confidence(this: *mut core::ffi::c_void, confidence: *mut SpeechEngineConfidence) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperty_Impl, - { + unsafe extern "system" fn Confidence(this: *mut core::ffi::c_void, confidence: *mut SpeechEngineConfidence) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperty_Impl::Confidence(this) { Ok(ok__) => { @@ -7905,10 +5979,7 @@ impl ISpeechPhraseProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, parentproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperty_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, parentproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperty_Impl::Parent(this) { Ok(ok__) => { @@ -7918,10 +5989,7 @@ impl ISpeechPhraseProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Children(this: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseProperty_Impl, - { + unsafe extern "system" fn Children(this: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseProperty_Impl::Children(this) { Ok(ok__) => { @@ -7959,14 +6027,8 @@ pub trait ISpeechPhraseReplacement_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for ISpeechPhraseReplacement {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseReplacement_Vtbl { - pub const fn new() -> ISpeechPhraseReplacement_Vtbl - where - Identity: ISpeechPhraseReplacement_Impl, - { - unsafe extern "system" fn DisplayAttributes(this: *mut core::ffi::c_void, displayattributes: *mut SpeechDisplayAttributes) -> windows_core::HRESULT - where - Identity: ISpeechPhraseReplacement_Impl, - { + pub const fn new() -> ISpeechPhraseReplacement_Vtbl { + unsafe extern "system" fn DisplayAttributes(this: *mut core::ffi::c_void, displayattributes: *mut SpeechDisplayAttributes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseReplacement_Impl::DisplayAttributes(this) { Ok(ok__) => { @@ -7976,10 +6038,7 @@ impl ISpeechPhraseReplacement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Text(this: *mut core::ffi::c_void, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseReplacement_Impl, - { + unsafe extern "system" fn Text(this: *mut core::ffi::c_void, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseReplacement_Impl::Text(this) { Ok(ok__) => { @@ -7989,10 +6048,7 @@ impl ISpeechPhraseReplacement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FirstElement(this: *mut core::ffi::c_void, firstelement: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseReplacement_Impl, - { + unsafe extern "system" fn FirstElement(this: *mut core::ffi::c_void, firstelement: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseReplacement_Impl::FirstElement(this) { Ok(ok__) => { @@ -8002,10 +6058,7 @@ impl ISpeechPhraseReplacement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfElements(this: *mut core::ffi::c_void, numberofelements: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseReplacement_Impl, - { + unsafe extern "system" fn NumberOfElements(this: *mut core::ffi::c_void, numberofelements: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseReplacement_Impl::NumberOfElements(this) { Ok(ok__) => { @@ -8037,14 +6090,8 @@ pub trait ISpeechPhraseReplacements_Impl: Sized + super::super::System::Com::IDi impl windows_core::RuntimeName for ISpeechPhraseReplacements {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseReplacements_Vtbl { - pub const fn new() -> ISpeechPhraseReplacements_Vtbl - where - Identity: ISpeechPhraseReplacements_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseReplacements_Impl, - { + pub const fn new() -> ISpeechPhraseReplacements_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseReplacements_Impl::Count(this) { Ok(ok__) => { @@ -8054,10 +6101,7 @@ impl ISpeechPhraseReplacements_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, reps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseReplacements_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, reps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseReplacements_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -8067,10 +6111,7 @@ impl ISpeechPhraseReplacements_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseReplacements_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseReplacements_Impl::_NewEnum(this) { Ok(ok__) => { @@ -8106,14 +6147,8 @@ pub trait ISpeechPhraseRule_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ISpeechPhraseRule {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseRule_Vtbl { - pub const fn new() -> ISpeechPhraseRule_Vtbl - where - Identity: ISpeechPhraseRule_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRule_Impl, - { + pub const fn new() -> ISpeechPhraseRule_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRule_Impl::Name(this) { Ok(ok__) => { @@ -8123,10 +6158,7 @@ impl ISpeechPhraseRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRule_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRule_Impl::Id(this) { Ok(ok__) => { @@ -8136,10 +6168,7 @@ impl ISpeechPhraseRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FirstElement(this: *mut core::ffi::c_void, firstelement: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRule_Impl, - { + unsafe extern "system" fn FirstElement(this: *mut core::ffi::c_void, firstelement: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRule_Impl::FirstElement(this) { Ok(ok__) => { @@ -8149,10 +6178,7 @@ impl ISpeechPhraseRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfElements(this: *mut core::ffi::c_void, numberofelements: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRule_Impl, - { + unsafe extern "system" fn NumberOfElements(this: *mut core::ffi::c_void, numberofelements: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRule_Impl::NumberOfElements(this) { Ok(ok__) => { @@ -8162,10 +6188,7 @@ impl ISpeechPhraseRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRule_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRule_Impl::Parent(this) { Ok(ok__) => { @@ -8175,10 +6198,7 @@ impl ISpeechPhraseRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Children(this: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRule_Impl, - { + unsafe extern "system" fn Children(this: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRule_Impl::Children(this) { Ok(ok__) => { @@ -8188,10 +6208,7 @@ impl ISpeechPhraseRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Confidence(this: *mut core::ffi::c_void, actualconfidence: *mut SpeechEngineConfidence) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRule_Impl, - { + unsafe extern "system" fn Confidence(this: *mut core::ffi::c_void, actualconfidence: *mut SpeechEngineConfidence) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRule_Impl::Confidence(this) { Ok(ok__) => { @@ -8201,10 +6218,7 @@ impl ISpeechPhraseRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EngineConfidence(this: *mut core::ffi::c_void, engineconfidence: *mut f32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRule_Impl, - { + unsafe extern "system" fn EngineConfidence(this: *mut core::ffi::c_void, engineconfidence: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRule_Impl::EngineConfidence(this) { Ok(ok__) => { @@ -8240,14 +6254,8 @@ pub trait ISpeechPhraseRules_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISpeechPhraseRules {} #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseRules_Vtbl { - pub const fn new() -> ISpeechPhraseRules_Vtbl - where - Identity: ISpeechPhraseRules_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRules_Impl, - { + pub const fn new() -> ISpeechPhraseRules_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRules_Impl::Count(this) { Ok(ok__) => { @@ -8257,10 +6265,7 @@ impl ISpeechPhraseRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRules_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRules_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -8270,10 +6275,7 @@ impl ISpeechPhraseRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechPhraseRules_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, enumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechPhraseRules_Impl::_NewEnum(this) { Ok(ok__) => { @@ -8326,14 +6328,8 @@ pub trait ISpeechRecoContext_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISpeechRecoContext {} #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoContext_Vtbl { - pub const fn new() -> ISpeechRecoContext_Vtbl - where - Identity: ISpeechRecoContext_Impl, - { - unsafe extern "system" fn Recognizer(this: *mut core::ffi::c_void, recognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + pub const fn new() -> ISpeechRecoContext_Vtbl { + unsafe extern "system" fn Recognizer(this: *mut core::ffi::c_void, recognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::Recognizer(this) { Ok(ok__) => { @@ -8343,10 +6339,7 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AudioInputInterferenceStatus(this: *mut core::ffi::c_void, interference: *mut SpeechInterference) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn AudioInputInterferenceStatus(this: *mut core::ffi::c_void, interference: *mut SpeechInterference) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::AudioInputInterferenceStatus(this) { Ok(ok__) => { @@ -8356,10 +6349,7 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestedUIType(this: *mut core::ffi::c_void, uitype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn RequestedUIType(this: *mut core::ffi::c_void, uitype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::RequestedUIType(this) { Ok(ok__) => { @@ -8369,17 +6359,11 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Voice(this: *mut core::ffi::c_void, voice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn putref_Voice(this: *mut core::ffi::c_void, voice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::putref_Voice(this, windows_core::from_raw_borrowed(&voice)).into() } - unsafe extern "system" fn Voice(this: *mut core::ffi::c_void, voice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn Voice(this: *mut core::ffi::c_void, voice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::Voice(this) { Ok(ok__) => { @@ -8389,17 +6373,11 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowVoiceFormatMatchingOnNextSet(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn SetAllowVoiceFormatMatchingOnNextSet(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::SetAllowVoiceFormatMatchingOnNextSet(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowVoiceFormatMatchingOnNextSet(this: *mut core::ffi::c_void, pallow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn AllowVoiceFormatMatchingOnNextSet(this: *mut core::ffi::c_void, pallow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::AllowVoiceFormatMatchingOnNextSet(this) { Ok(ok__) => { @@ -8409,17 +6387,11 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVoicePurgeEvent(this: *mut core::ffi::c_void, eventinterest: SpeechRecoEvents) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn SetVoicePurgeEvent(this: *mut core::ffi::c_void, eventinterest: SpeechRecoEvents) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::SetVoicePurgeEvent(this, core::mem::transmute_copy(&eventinterest)).into() } - unsafe extern "system" fn VoicePurgeEvent(this: *mut core::ffi::c_void, eventinterest: *mut SpeechRecoEvents) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn VoicePurgeEvent(this: *mut core::ffi::c_void, eventinterest: *mut SpeechRecoEvents) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::VoicePurgeEvent(this) { Ok(ok__) => { @@ -8429,17 +6401,11 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventInterests(this: *mut core::ffi::c_void, eventinterest: SpeechRecoEvents) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn SetEventInterests(this: *mut core::ffi::c_void, eventinterest: SpeechRecoEvents) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::SetEventInterests(this, core::mem::transmute_copy(&eventinterest)).into() } - unsafe extern "system" fn EventInterests(this: *mut core::ffi::c_void, eventinterest: *mut SpeechRecoEvents) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn EventInterests(this: *mut core::ffi::c_void, eventinterest: *mut SpeechRecoEvents) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::EventInterests(this) { Ok(ok__) => { @@ -8449,17 +6415,11 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCmdMaxAlternates(this: *mut core::ffi::c_void, maxalternates: i32) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn SetCmdMaxAlternates(this: *mut core::ffi::c_void, maxalternates: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::SetCmdMaxAlternates(this, core::mem::transmute_copy(&maxalternates)).into() } - unsafe extern "system" fn CmdMaxAlternates(this: *mut core::ffi::c_void, maxalternates: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn CmdMaxAlternates(this: *mut core::ffi::c_void, maxalternates: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::CmdMaxAlternates(this) { Ok(ok__) => { @@ -8469,17 +6429,11 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: SpeechRecoContextState) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: SpeechRecoContextState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::SetState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, state: *mut SpeechRecoContextState) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, state: *mut SpeechRecoContextState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::State(this) { Ok(ok__) => { @@ -8489,17 +6443,11 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRetainedAudio(this: *mut core::ffi::c_void, option: SpeechRetainedAudioOptions) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn SetRetainedAudio(this: *mut core::ffi::c_void, option: SpeechRetainedAudioOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::SetRetainedAudio(this, core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn RetainedAudio(this: *mut core::ffi::c_void, option: *mut SpeechRetainedAudioOptions) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn RetainedAudio(this: *mut core::ffi::c_void, option: *mut SpeechRetainedAudioOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::RetainedAudio(this) { Ok(ok__) => { @@ -8509,17 +6457,11 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_RetainedAudioFormat(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn putref_RetainedAudioFormat(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::putref_RetainedAudioFormat(this, windows_core::from_raw_borrowed(&format)).into() } - unsafe extern "system" fn RetainedAudioFormat(this: *mut core::ffi::c_void, format: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn RetainedAudioFormat(this: *mut core::ffi::c_void, format: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::RetainedAudioFormat(this) { Ok(ok__) => { @@ -8529,24 +6471,15 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::Resume(this).into() } - unsafe extern "system" fn CreateGrammar(this: *mut core::ffi::c_void, grammarid: core::mem::MaybeUninit, grammar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn CreateGrammar(this: *mut core::ffi::c_void, grammarid: core::mem::MaybeUninit, grammar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::CreateGrammar(this, core::mem::transmute(&grammarid)) { Ok(ok__) => { @@ -8556,10 +6489,7 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateResultFromMemory(this: *mut core::ffi::c_void, resultblock: *const core::mem::MaybeUninit, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn CreateResultFromMemory(this: *mut core::ffi::c_void, resultblock: *const core::mem::MaybeUninit, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoContext_Impl::CreateResultFromMemory(this, core::mem::transmute_copy(&resultblock)) { Ok(ok__) => { @@ -8569,17 +6499,11 @@ impl ISpeechRecoContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Bookmark(this: *mut core::ffi::c_void, options: SpeechBookmarkOptions, streampos: core::mem::MaybeUninit, bookmarkid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn Bookmark(this: *mut core::ffi::c_void, options: SpeechBookmarkOptions, streampos: core::mem::MaybeUninit, bookmarkid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::Bookmark(this, core::mem::transmute_copy(&options), core::mem::transmute(&streampos), core::mem::transmute(&bookmarkid)).into() } - unsafe extern "system" fn SetAdaptationData(this: *mut core::ffi::c_void, adaptationstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecoContext_Impl, - { + unsafe extern "system" fn SetAdaptationData(this: *mut core::ffi::c_void, adaptationstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoContext_Impl::SetAdaptationData(this, core::mem::transmute(&adaptationstring)).into() } @@ -8642,14 +6566,8 @@ pub trait ISpeechRecoGrammar_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISpeechRecoGrammar {} #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoGrammar_Vtbl { - pub const fn new() -> ISpeechRecoGrammar_Vtbl - where - Identity: ISpeechRecoGrammar_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + pub const fn new() -> ISpeechRecoGrammar_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoGrammar_Impl::Id(this) { Ok(ok__) => { @@ -8659,10 +6577,7 @@ impl ISpeechRecoGrammar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecoContext(this: *mut core::ffi::c_void, recocontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn RecoContext(this: *mut core::ffi::c_void, recocontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoGrammar_Impl::RecoContext(this) { Ok(ok__) => { @@ -8672,17 +6587,11 @@ impl ISpeechRecoGrammar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: SpeechGrammarState) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: SpeechGrammarState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::SetState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, state: *mut SpeechGrammarState) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, state: *mut SpeechGrammarState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoGrammar_Impl::State(this) { Ok(ok__) => { @@ -8692,10 +6601,7 @@ impl ISpeechRecoGrammar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rules(this: *mut core::ffi::c_void, rules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn Rules(this: *mut core::ffi::c_void, rules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoGrammar_Impl::Rules(this) { Ok(ok__) => { @@ -8705,101 +6611,59 @@ impl ISpeechRecoGrammar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, newlanguage: i32) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, newlanguage: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::Reset(this, core::mem::transmute_copy(&newlanguage)).into() } - unsafe extern "system" fn CmdLoadFromFile(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit, loadoption: SpeechLoadOption) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn CmdLoadFromFile(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit, loadoption: SpeechLoadOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::CmdLoadFromFile(this, core::mem::transmute(&filename), core::mem::transmute_copy(&loadoption)).into() } - unsafe extern "system" fn CmdLoadFromObject(this: *mut core::ffi::c_void, classid: core::mem::MaybeUninit, grammarname: core::mem::MaybeUninit, loadoption: SpeechLoadOption) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn CmdLoadFromObject(this: *mut core::ffi::c_void, classid: core::mem::MaybeUninit, grammarname: core::mem::MaybeUninit, loadoption: SpeechLoadOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::CmdLoadFromObject(this, core::mem::transmute(&classid), core::mem::transmute(&grammarname), core::mem::transmute_copy(&loadoption)).into() } - unsafe extern "system" fn CmdLoadFromResource(this: *mut core::ffi::c_void, hmodule: i32, resourcename: core::mem::MaybeUninit, resourcetype: core::mem::MaybeUninit, languageid: i32, loadoption: SpeechLoadOption) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn CmdLoadFromResource(this: *mut core::ffi::c_void, hmodule: i32, resourcename: core::mem::MaybeUninit, resourcetype: core::mem::MaybeUninit, languageid: i32, loadoption: SpeechLoadOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::CmdLoadFromResource(this, core::mem::transmute_copy(&hmodule), core::mem::transmute(&resourcename), core::mem::transmute(&resourcetype), core::mem::transmute_copy(&languageid), core::mem::transmute_copy(&loadoption)).into() } - unsafe extern "system" fn CmdLoadFromMemory(this: *mut core::ffi::c_void, grammardata: core::mem::MaybeUninit, loadoption: SpeechLoadOption) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn CmdLoadFromMemory(this: *mut core::ffi::c_void, grammardata: core::mem::MaybeUninit, loadoption: SpeechLoadOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::CmdLoadFromMemory(this, core::mem::transmute(&grammardata), core::mem::transmute_copy(&loadoption)).into() } - unsafe extern "system" fn CmdLoadFromProprietaryGrammar(this: *mut core::ffi::c_void, proprietaryguid: core::mem::MaybeUninit, proprietarystring: core::mem::MaybeUninit, proprietarydata: core::mem::MaybeUninit, loadoption: SpeechLoadOption) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn CmdLoadFromProprietaryGrammar(this: *mut core::ffi::c_void, proprietaryguid: core::mem::MaybeUninit, proprietarystring: core::mem::MaybeUninit, proprietarydata: core::mem::MaybeUninit, loadoption: SpeechLoadOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::CmdLoadFromProprietaryGrammar(this, core::mem::transmute(&proprietaryguid), core::mem::transmute(&proprietarystring), core::mem::transmute(&proprietarydata), core::mem::transmute_copy(&loadoption)).into() } - unsafe extern "system" fn CmdSetRuleState(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, state: SpeechRuleState) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn CmdSetRuleState(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, state: SpeechRuleState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::CmdSetRuleState(this, core::mem::transmute(&name), core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn CmdSetRuleIdState(this: *mut core::ffi::c_void, ruleid: i32, state: SpeechRuleState) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn CmdSetRuleIdState(this: *mut core::ffi::c_void, ruleid: i32, state: SpeechRuleState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::CmdSetRuleIdState(this, core::mem::transmute_copy(&ruleid), core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn DictationLoad(this: *mut core::ffi::c_void, topicname: core::mem::MaybeUninit, loadoption: SpeechLoadOption) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn DictationLoad(this: *mut core::ffi::c_void, topicname: core::mem::MaybeUninit, loadoption: SpeechLoadOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::DictationLoad(this, core::mem::transmute(&topicname), core::mem::transmute_copy(&loadoption)).into() } - unsafe extern "system" fn DictationUnload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn DictationUnload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::DictationUnload(this).into() } - unsafe extern "system" fn DictationSetState(this: *mut core::ffi::c_void, state: SpeechRuleState) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn DictationSetState(this: *mut core::ffi::c_void, state: SpeechRuleState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::DictationSetState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn SetWordSequenceData(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, textlength: i32, info: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn SetWordSequenceData(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, textlength: i32, info: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::SetWordSequenceData(this, core::mem::transmute(&text), core::mem::transmute_copy(&textlength), windows_core::from_raw_borrowed(&info)).into() } - unsafe extern "system" fn SetTextSelection(this: *mut core::ffi::c_void, info: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn SetTextSelection(this: *mut core::ffi::c_void, info: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoGrammar_Impl::SetTextSelection(this, windows_core::from_raw_borrowed(&info)).into() } - unsafe extern "system" fn IsPronounceable(this: *mut core::ffi::c_void, word: core::mem::MaybeUninit, wordpronounceable: *mut SpeechWordPronounceable) -> windows_core::HRESULT - where - Identity: ISpeechRecoGrammar_Impl, - { + unsafe extern "system" fn IsPronounceable(this: *mut core::ffi::c_void, word: core::mem::MaybeUninit, wordpronounceable: *mut SpeechWordPronounceable) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoGrammar_Impl::IsPronounceable(this, core::mem::transmute(&word)) { Ok(ok__) => { @@ -8853,14 +6717,8 @@ pub trait ISpeechRecoResult_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ISpeechRecoResult {} #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoResult_Vtbl { - pub const fn new() -> ISpeechRecoResult_Vtbl - where - Identity: ISpeechRecoResult_Impl, - { - unsafe extern "system" fn RecoContext(this: *mut core::ffi::c_void, recocontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult_Impl, - { + pub const fn new() -> ISpeechRecoResult_Vtbl { + unsafe extern "system" fn RecoContext(this: *mut core::ffi::c_void, recocontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResult_Impl::RecoContext(this) { Ok(ok__) => { @@ -8870,10 +6728,7 @@ impl ISpeechRecoResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Times(this: *mut core::ffi::c_void, times: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult_Impl, - { + unsafe extern "system" fn Times(this: *mut core::ffi::c_void, times: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResult_Impl::Times(this) { Ok(ok__) => { @@ -8883,17 +6738,11 @@ impl ISpeechRecoResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AudioFormat(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult_Impl, - { + unsafe extern "system" fn putref_AudioFormat(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoResult_Impl::putref_AudioFormat(this, windows_core::from_raw_borrowed(&format)).into() } - unsafe extern "system" fn AudioFormat(this: *mut core::ffi::c_void, format: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult_Impl, - { + unsafe extern "system" fn AudioFormat(this: *mut core::ffi::c_void, format: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResult_Impl::AudioFormat(this) { Ok(ok__) => { @@ -8903,10 +6752,7 @@ impl ISpeechRecoResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PhraseInfo(this: *mut core::ffi::c_void, phraseinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult_Impl, - { + unsafe extern "system" fn PhraseInfo(this: *mut core::ffi::c_void, phraseinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResult_Impl::PhraseInfo(this) { Ok(ok__) => { @@ -8916,10 +6762,7 @@ impl ISpeechRecoResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Alternates(this: *mut core::ffi::c_void, requestcount: i32, startelement: i32, elements: i32, alternates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult_Impl, - { + unsafe extern "system" fn Alternates(this: *mut core::ffi::c_void, requestcount: i32, startelement: i32, elements: i32, alternates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResult_Impl::Alternates(this, core::mem::transmute_copy(&requestcount), core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&elements)) { Ok(ok__) => { @@ -8929,10 +6772,7 @@ impl ISpeechRecoResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Audio(this: *mut core::ffi::c_void, startelement: i32, elements: i32, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult_Impl, - { + unsafe extern "system" fn Audio(this: *mut core::ffi::c_void, startelement: i32, elements: i32, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResult_Impl::Audio(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&elements)) { Ok(ok__) => { @@ -8942,10 +6782,7 @@ impl ISpeechRecoResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpeakAudio(this: *mut core::ffi::c_void, startelement: i32, elements: i32, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult_Impl, - { + unsafe extern "system" fn SpeakAudio(this: *mut core::ffi::c_void, startelement: i32, elements: i32, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResult_Impl::SpeakAudio(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&elements), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -8955,10 +6792,7 @@ impl ISpeechRecoResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveToMemory(this: *mut core::ffi::c_void, resultblock: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult_Impl, - { + unsafe extern "system" fn SaveToMemory(this: *mut core::ffi::c_void, resultblock: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResult_Impl::SaveToMemory(this) { Ok(ok__) => { @@ -8968,10 +6802,7 @@ impl ISpeechRecoResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DiscardResultInfo(this: *mut core::ffi::c_void, valuetypes: SpeechDiscardType) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult_Impl, - { + unsafe extern "system" fn DiscardResultInfo(this: *mut core::ffi::c_void, valuetypes: SpeechDiscardType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoResult_Impl::DiscardResultInfo(this, core::mem::transmute_copy(&valuetypes)).into() } @@ -9001,14 +6832,8 @@ pub trait ISpeechRecoResult2_Impl: Sized + ISpeechRecoResult_Impl { impl windows_core::RuntimeName for ISpeechRecoResult2 {} #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoResult2_Vtbl { - pub const fn new() -> ISpeechRecoResult2_Vtbl - where - Identity: ISpeechRecoResult2_Impl, - { - unsafe extern "system" fn SetTextFeedback(this: *mut core::ffi::c_void, feedback: core::mem::MaybeUninit, wassuccessful: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecoResult2_Impl, - { + pub const fn new() -> ISpeechRecoResult2_Vtbl { + unsafe extern "system" fn SetTextFeedback(this: *mut core::ffi::c_void, feedback: core::mem::MaybeUninit, wassuccessful: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoResult2_Impl::SetTextFeedback(this, core::mem::transmute(&feedback), core::mem::transmute_copy(&wassuccessful)).into() } @@ -9038,14 +6863,8 @@ pub trait ISpeechRecoResultDispatch_Impl: Sized + super::super::System::Com::IDi impl windows_core::RuntimeName for ISpeechRecoResultDispatch {} #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoResultDispatch_Vtbl { - pub const fn new() -> ISpeechRecoResultDispatch_Vtbl - where - Identity: ISpeechRecoResultDispatch_Impl, - { - unsafe extern "system" fn RecoContext(this: *mut core::ffi::c_void, recocontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + pub const fn new() -> ISpeechRecoResultDispatch_Vtbl { + unsafe extern "system" fn RecoContext(this: *mut core::ffi::c_void, recocontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultDispatch_Impl::RecoContext(this) { Ok(ok__) => { @@ -9055,10 +6874,7 @@ impl ISpeechRecoResultDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Times(this: *mut core::ffi::c_void, times: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn Times(this: *mut core::ffi::c_void, times: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultDispatch_Impl::Times(this) { Ok(ok__) => { @@ -9068,17 +6884,11 @@ impl ISpeechRecoResultDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AudioFormat(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn putref_AudioFormat(this: *mut core::ffi::c_void, format: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoResultDispatch_Impl::putref_AudioFormat(this, windows_core::from_raw_borrowed(&format)).into() } - unsafe extern "system" fn AudioFormat(this: *mut core::ffi::c_void, format: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn AudioFormat(this: *mut core::ffi::c_void, format: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultDispatch_Impl::AudioFormat(this) { Ok(ok__) => { @@ -9088,10 +6898,7 @@ impl ISpeechRecoResultDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PhraseInfo(this: *mut core::ffi::c_void, phraseinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn PhraseInfo(this: *mut core::ffi::c_void, phraseinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultDispatch_Impl::PhraseInfo(this) { Ok(ok__) => { @@ -9101,10 +6908,7 @@ impl ISpeechRecoResultDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Alternates(this: *mut core::ffi::c_void, requestcount: i32, startelement: i32, elements: i32, alternates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn Alternates(this: *mut core::ffi::c_void, requestcount: i32, startelement: i32, elements: i32, alternates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultDispatch_Impl::Alternates(this, core::mem::transmute_copy(&requestcount), core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&elements)) { Ok(ok__) => { @@ -9114,10 +6918,7 @@ impl ISpeechRecoResultDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Audio(this: *mut core::ffi::c_void, startelement: i32, elements: i32, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn Audio(this: *mut core::ffi::c_void, startelement: i32, elements: i32, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultDispatch_Impl::Audio(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&elements)) { Ok(ok__) => { @@ -9127,10 +6928,7 @@ impl ISpeechRecoResultDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpeakAudio(this: *mut core::ffi::c_void, startelement: i32, elements: i32, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn SpeakAudio(this: *mut core::ffi::c_void, startelement: i32, elements: i32, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultDispatch_Impl::SpeakAudio(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&elements), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -9140,10 +6938,7 @@ impl ISpeechRecoResultDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveToMemory(this: *mut core::ffi::c_void, resultblock: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn SaveToMemory(this: *mut core::ffi::c_void, resultblock: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultDispatch_Impl::SaveToMemory(this) { Ok(ok__) => { @@ -9153,17 +6948,11 @@ impl ISpeechRecoResultDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DiscardResultInfo(this: *mut core::ffi::c_void, valuetypes: SpeechDiscardType) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn DiscardResultInfo(this: *mut core::ffi::c_void, valuetypes: SpeechDiscardType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoResultDispatch_Impl::DiscardResultInfo(this, core::mem::transmute_copy(&valuetypes)).into() } - unsafe extern "system" fn GetXMLResult(this: *mut core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn GetXMLResult(this: *mut core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultDispatch_Impl::GetXMLResult(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -9173,17 +6962,11 @@ impl ISpeechRecoResultDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetXMLErrorInfo(this: *mut core::ffi::c_void, linenumber: *mut i32, scriptline: *mut core::mem::MaybeUninit, source: *mut core::mem::MaybeUninit, description: *mut core::mem::MaybeUninit, resultcode: *mut windows_core::HRESULT, iserror: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn GetXMLErrorInfo(this: *mut core::ffi::c_void, linenumber: *mut i32, scriptline: *mut core::mem::MaybeUninit, source: *mut core::mem::MaybeUninit, description: *mut core::mem::MaybeUninit, resultcode: *mut windows_core::HRESULT, iserror: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoResultDispatch_Impl::GetXMLErrorInfo(this, 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(this: *mut core::ffi::c_void, feedback: core::mem::MaybeUninit, wassuccessful: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultDispatch_Impl, - { + unsafe extern "system" fn SetTextFeedback(this: *mut core::ffi::c_void, feedback: core::mem::MaybeUninit, wassuccessful: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecoResultDispatch_Impl::SetTextFeedback(this, core::mem::transmute(&feedback), core::mem::transmute_copy(&wassuccessful)).into() } @@ -9219,14 +7002,8 @@ pub trait ISpeechRecoResultTimes_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for ISpeechRecoResultTimes {} #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoResultTimes_Vtbl { - pub const fn new() -> ISpeechRecoResultTimes_Vtbl - where - Identity: ISpeechRecoResultTimes_Impl, - { - unsafe extern "system" fn StreamTime(this: *mut core::ffi::c_void, time: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultTimes_Impl, - { + pub const fn new() -> ISpeechRecoResultTimes_Vtbl { + unsafe extern "system" fn StreamTime(this: *mut core::ffi::c_void, time: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultTimes_Impl::StreamTime(this) { Ok(ok__) => { @@ -9236,10 +7013,7 @@ impl ISpeechRecoResultTimes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, length: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultTimes_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, length: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultTimes_Impl::Length(this) { Ok(ok__) => { @@ -9249,10 +7023,7 @@ impl ISpeechRecoResultTimes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TickCount(this: *mut core::ffi::c_void, tickcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultTimes_Impl, - { + unsafe extern "system" fn TickCount(this: *mut core::ffi::c_void, tickcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultTimes_Impl::TickCount(this) { Ok(ok__) => { @@ -9262,10 +7033,7 @@ impl ISpeechRecoResultTimes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OffsetFromStart(this: *mut core::ffi::c_void, offsetfromstart: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecoResultTimes_Impl, - { + unsafe extern "system" fn OffsetFromStart(this: *mut core::ffi::c_void, offsetfromstart: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecoResultTimes_Impl::OffsetFromStart(this) { Ok(ok__) => { @@ -9320,21 +7088,12 @@ pub trait ISpeechRecognizer_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ISpeechRecognizer {} #[cfg(feature = "Win32_System_Com")] impl ISpeechRecognizer_Vtbl { - pub const fn new() -> ISpeechRecognizer_Vtbl - where - Identity: ISpeechRecognizer_Impl, - { - unsafe extern "system" fn putref_Recognizer(this: *mut core::ffi::c_void, recognizer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + pub const fn new() -> ISpeechRecognizer_Vtbl { + unsafe extern "system" fn putref_Recognizer(this: *mut core::ffi::c_void, recognizer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognizer_Impl::putref_Recognizer(this, windows_core::from_raw_borrowed(&recognizer)).into() } - unsafe extern "system" fn Recognizer(this: *mut core::ffi::c_void, recognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn Recognizer(this: *mut core::ffi::c_void, recognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::Recognizer(this) { Ok(ok__) => { @@ -9344,17 +7103,11 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowAudioInputFormatChangesOnNextSet(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn SetAllowAudioInputFormatChangesOnNextSet(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognizer_Impl::SetAllowAudioInputFormatChangesOnNextSet(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowAudioInputFormatChangesOnNextSet(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn AllowAudioInputFormatChangesOnNextSet(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::AllowAudioInputFormatChangesOnNextSet(this) { Ok(ok__) => { @@ -9364,17 +7117,11 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AudioInput(this: *mut core::ffi::c_void, audioinput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn putref_AudioInput(this: *mut core::ffi::c_void, audioinput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognizer_Impl::putref_AudioInput(this, windows_core::from_raw_borrowed(&audioinput)).into() } - unsafe extern "system" fn AudioInput(this: *mut core::ffi::c_void, audioinput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn AudioInput(this: *mut core::ffi::c_void, audioinput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::AudioInput(this) { Ok(ok__) => { @@ -9384,17 +7131,11 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AudioInputStream(this: *mut core::ffi::c_void, audioinputstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn putref_AudioInputStream(this: *mut core::ffi::c_void, audioinputstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognizer_Impl::putref_AudioInputStream(this, windows_core::from_raw_borrowed(&audioinputstream)).into() } - unsafe extern "system" fn AudioInputStream(this: *mut core::ffi::c_void, audioinputstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn AudioInputStream(this: *mut core::ffi::c_void, audioinputstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::AudioInputStream(this) { Ok(ok__) => { @@ -9404,10 +7145,7 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsShared(this: *mut core::ffi::c_void, shared: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn IsShared(this: *mut core::ffi::c_void, shared: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::IsShared(this) { Ok(ok__) => { @@ -9417,17 +7155,11 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: SpeechRecognizerState) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: SpeechRecognizerState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognizer_Impl::SetState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, state: *mut SpeechRecognizerState) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, state: *mut SpeechRecognizerState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::State(this) { Ok(ok__) => { @@ -9437,10 +7169,7 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::Status(this) { Ok(ok__) => { @@ -9450,17 +7179,11 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Profile(this: *mut core::ffi::c_void, profile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn putref_Profile(this: *mut core::ffi::c_void, profile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognizer_Impl::putref_Profile(this, windows_core::from_raw_borrowed(&profile)).into() } - unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, profile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, profile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::Profile(this) { Ok(ok__) => { @@ -9470,17 +7193,11 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EmulateRecognition(this: *mut core::ffi::c_void, textelements: core::mem::MaybeUninit, elementdisplayattributes: *const core::mem::MaybeUninit, languageid: i32) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn EmulateRecognition(this: *mut core::ffi::c_void, textelements: core::mem::MaybeUninit, elementdisplayattributes: *const core::mem::MaybeUninit, languageid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognizer_Impl::EmulateRecognition(this, core::mem::transmute(&textelements), core::mem::transmute_copy(&elementdisplayattributes), core::mem::transmute_copy(&languageid)).into() } - unsafe extern "system" fn CreateRecoContext(this: *mut core::ffi::c_void, newcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn CreateRecoContext(this: *mut core::ffi::c_void, newcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::CreateRecoContext(this) { Ok(ok__) => { @@ -9490,10 +7207,7 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, r#type: SpeechFormatType, format: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, r#type: SpeechFormatType, format: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::GetFormat(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -9503,10 +7217,7 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertyNumber(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: i32, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn SetPropertyNumber(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: i32, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::SetPropertyNumber(this, core::mem::transmute(&name), core::mem::transmute_copy(&value)) { Ok(ok__) => { @@ -9516,17 +7227,11 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyNumber(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: *mut i32, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn GetPropertyNumber(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: *mut i32, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognizer_Impl::GetPropertyNumber(this, core::mem::transmute(&name), core::mem::transmute_copy(&value), core::mem::transmute_copy(&supported)).into() } - unsafe extern "system" fn SetPropertyString(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn SetPropertyString(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::SetPropertyString(this, core::mem::transmute(&name), core::mem::transmute(&value)) { Ok(ok__) => { @@ -9536,17 +7241,11 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyString(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn GetPropertyString(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognizer_Impl::GetPropertyString(this, core::mem::transmute(&name), core::mem::transmute_copy(&value), core::mem::transmute_copy(&supported)).into() } - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::IsUISupported(this, core::mem::transmute(&typeofui), core::mem::transmute_copy(&extradata)) { Ok(ok__) => { @@ -9556,17 +7255,11 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: i32, title: core::mem::MaybeUninit, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: i32, title: core::mem::MaybeUninit, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechRecognizer_Impl::DisplayUI(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&title), core::mem::transmute(&typeofui), core::mem::transmute_copy(&extradata)).into() } - unsafe extern "system" fn GetRecognizers(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, objecttokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn GetRecognizers(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, objecttokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::GetRecognizers(this, core::mem::transmute(&requiredattributes), core::mem::transmute(&optionalattributes)) { Ok(ok__) => { @@ -9576,10 +7269,7 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAudioInputs(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, objecttokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn GetAudioInputs(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, objecttokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::GetAudioInputs(this, core::mem::transmute(&requiredattributes), core::mem::transmute(&optionalattributes)) { Ok(ok__) => { @@ -9589,10 +7279,7 @@ impl ISpeechRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProfiles(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, objecttokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizer_Impl, - { + unsafe extern "system" fn GetProfiles(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, objecttokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizer_Impl::GetProfiles(this, core::mem::transmute(&requiredattributes), core::mem::transmute(&optionalattributes)) { Ok(ok__) => { @@ -9649,14 +7336,8 @@ pub trait ISpeechRecognizerStatus_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for ISpeechRecognizerStatus {} #[cfg(feature = "Win32_System_Com")] impl ISpeechRecognizerStatus_Vtbl { - pub const fn new() -> ISpeechRecognizerStatus_Vtbl - where - Identity: ISpeechRecognizerStatus_Impl, - { - unsafe extern "system" fn AudioStatus(this: *mut core::ffi::c_void, audiostatus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechRecognizerStatus_Impl, - { + pub const fn new() -> ISpeechRecognizerStatus_Vtbl { + unsafe extern "system" fn AudioStatus(this: *mut core::ffi::c_void, audiostatus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizerStatus_Impl::AudioStatus(this) { Ok(ok__) => { @@ -9666,10 +7347,7 @@ impl ISpeechRecognizerStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentStreamPosition(this: *mut core::ffi::c_void, pcurrentstreampos: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecognizerStatus_Impl, - { + unsafe extern "system" fn CurrentStreamPosition(this: *mut core::ffi::c_void, pcurrentstreampos: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizerStatus_Impl::CurrentStreamPosition(this) { Ok(ok__) => { @@ -9679,10 +7357,7 @@ impl ISpeechRecognizerStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentStreamNumber(this: *mut core::ffi::c_void, streamnumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechRecognizerStatus_Impl, - { + unsafe extern "system" fn CurrentStreamNumber(this: *mut core::ffi::c_void, streamnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizerStatus_Impl::CurrentStreamNumber(this) { Ok(ok__) => { @@ -9692,10 +7367,7 @@ impl ISpeechRecognizerStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfActiveRules(this: *mut core::ffi::c_void, numberofactiverules: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechRecognizerStatus_Impl, - { + unsafe extern "system" fn NumberOfActiveRules(this: *mut core::ffi::c_void, numberofactiverules: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizerStatus_Impl::NumberOfActiveRules(this) { Ok(ok__) => { @@ -9705,10 +7377,7 @@ impl ISpeechRecognizerStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClsidEngine(this: *mut core::ffi::c_void, clsidengine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecognizerStatus_Impl, - { + unsafe extern "system" fn ClsidEngine(this: *mut core::ffi::c_void, clsidengine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizerStatus_Impl::ClsidEngine(this) { Ok(ok__) => { @@ -9718,10 +7387,7 @@ impl ISpeechRecognizerStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedLanguages(this: *mut core::ffi::c_void, supportedlanguages: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechRecognizerStatus_Impl, - { + unsafe extern "system" fn SupportedLanguages(this: *mut core::ffi::c_void, supportedlanguages: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechRecognizerStatus_Impl::SupportedLanguages(this) { Ok(ok__) => { @@ -9755,28 +7421,16 @@ pub trait ISpeechResourceLoader_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ISpeechResourceLoader {} #[cfg(feature = "Win32_System_Com")] impl ISpeechResourceLoader_Vtbl { - pub const fn new() -> ISpeechResourceLoader_Vtbl - where - Identity: ISpeechResourceLoader_Impl, - { - unsafe extern "system" fn LoadResource(this: *mut core::ffi::c_void, bstrresourceuri: core::mem::MaybeUninit, falwaysreload: super::super::Foundation::VARIANT_BOOL, pstream: *mut *mut core::ffi::c_void, pbstrmimetype: *mut core::mem::MaybeUninit, pfmodified: *mut super::super::Foundation::VARIANT_BOOL, pbstrredirecturl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechResourceLoader_Impl, - { + pub const fn new() -> ISpeechResourceLoader_Vtbl { + unsafe extern "system" fn LoadResource(this: *mut core::ffi::c_void, bstrresourceuri: core::mem::MaybeUninit, falwaysreload: super::super::Foundation::VARIANT_BOOL, pstream: *mut *mut core::ffi::c_void, pbstrmimetype: *mut core::mem::MaybeUninit, pfmodified: *mut super::super::Foundation::VARIANT_BOOL, pbstrredirecturl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechResourceLoader_Impl::LoadResource(this, 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(this: *mut core::ffi::c_void, bstrresourceuri: core::mem::MaybeUninit, pbstrlocalpath: *mut core::mem::MaybeUninit, pbstrmimetype: *mut core::mem::MaybeUninit, pbstrredirecturl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechResourceLoader_Impl, - { + unsafe extern "system" fn GetLocalCopy(this: *mut core::ffi::c_void, bstrresourceuri: core::mem::MaybeUninit, pbstrlocalpath: *mut core::mem::MaybeUninit, pbstrmimetype: *mut core::mem::MaybeUninit, pbstrredirecturl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechResourceLoader_Impl::GetLocalCopy(this, 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(this: *mut core::ffi::c_void, pbstrlocalpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechResourceLoader_Impl, - { + unsafe extern "system" fn ReleaseLocalCopy(this: *mut core::ffi::c_void, pbstrlocalpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechResourceLoader_Impl::ReleaseLocalCopy(this, core::mem::transmute(&pbstrlocalpath)).into() } @@ -9806,21 +7460,12 @@ pub trait ISpeechTextSelectionInformation_Impl: Sized + super::super::System::Co impl windows_core::RuntimeName for ISpeechTextSelectionInformation {} #[cfg(feature = "Win32_System_Com")] impl ISpeechTextSelectionInformation_Vtbl { - pub const fn new() -> ISpeechTextSelectionInformation_Vtbl - where - Identity: ISpeechTextSelectionInformation_Impl, - { - unsafe extern "system" fn SetActiveOffset(this: *mut core::ffi::c_void, activeoffset: i32) -> windows_core::HRESULT - where - Identity: ISpeechTextSelectionInformation_Impl, - { + pub const fn new() -> ISpeechTextSelectionInformation_Vtbl { + unsafe extern "system" fn SetActiveOffset(this: *mut core::ffi::c_void, activeoffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechTextSelectionInformation_Impl::SetActiveOffset(this, core::mem::transmute_copy(&activeoffset)).into() } - unsafe extern "system" fn ActiveOffset(this: *mut core::ffi::c_void, activeoffset: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechTextSelectionInformation_Impl, - { + unsafe extern "system" fn ActiveOffset(this: *mut core::ffi::c_void, activeoffset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechTextSelectionInformation_Impl::ActiveOffset(this) { Ok(ok__) => { @@ -9830,17 +7475,11 @@ impl ISpeechTextSelectionInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActiveLength(this: *mut core::ffi::c_void, activelength: i32) -> windows_core::HRESULT - where - Identity: ISpeechTextSelectionInformation_Impl, - { + unsafe extern "system" fn SetActiveLength(this: *mut core::ffi::c_void, activelength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechTextSelectionInformation_Impl::SetActiveLength(this, core::mem::transmute_copy(&activelength)).into() } - unsafe extern "system" fn ActiveLength(this: *mut core::ffi::c_void, activelength: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechTextSelectionInformation_Impl, - { + unsafe extern "system" fn ActiveLength(this: *mut core::ffi::c_void, activelength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechTextSelectionInformation_Impl::ActiveLength(this) { Ok(ok__) => { @@ -9850,17 +7489,11 @@ impl ISpeechTextSelectionInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelectionOffset(this: *mut core::ffi::c_void, selectionoffset: i32) -> windows_core::HRESULT - where - Identity: ISpeechTextSelectionInformation_Impl, - { + unsafe extern "system" fn SetSelectionOffset(this: *mut core::ffi::c_void, selectionoffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechTextSelectionInformation_Impl::SetSelectionOffset(this, core::mem::transmute_copy(&selectionoffset)).into() } - unsafe extern "system" fn SelectionOffset(this: *mut core::ffi::c_void, selectionoffset: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechTextSelectionInformation_Impl, - { + unsafe extern "system" fn SelectionOffset(this: *mut core::ffi::c_void, selectionoffset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechTextSelectionInformation_Impl::SelectionOffset(this) { Ok(ok__) => { @@ -9870,17 +7503,11 @@ impl ISpeechTextSelectionInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelectionLength(this: *mut core::ffi::c_void, selectionlength: i32) -> windows_core::HRESULT - where - Identity: ISpeechTextSelectionInformation_Impl, - { + unsafe extern "system" fn SetSelectionLength(this: *mut core::ffi::c_void, selectionlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechTextSelectionInformation_Impl::SetSelectionLength(this, core::mem::transmute_copy(&selectionlength)).into() } - unsafe extern "system" fn SelectionLength(this: *mut core::ffi::c_void, selectionlength: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechTextSelectionInformation_Impl, - { + unsafe extern "system" fn SelectionLength(this: *mut core::ffi::c_void, selectionlength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechTextSelectionInformation_Impl::SelectionLength(this) { Ok(ok__) => { @@ -9945,14 +7572,8 @@ pub trait ISpeechVoice_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISpeechVoice {} #[cfg(feature = "Win32_System_Com")] impl ISpeechVoice_Vtbl { - pub const fn new() -> ISpeechVoice_Vtbl - where - Identity: ISpeechVoice_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + pub const fn new() -> ISpeechVoice_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::Status(this) { Ok(ok__) => { @@ -9962,10 +7583,7 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Voice(this: *mut core::ffi::c_void, voice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn Voice(this: *mut core::ffi::c_void, voice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::Voice(this) { Ok(ok__) => { @@ -9975,17 +7593,11 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Voice(this: *mut core::ffi::c_void, voice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn putref_Voice(this: *mut core::ffi::c_void, voice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::putref_Voice(this, windows_core::from_raw_borrowed(&voice)).into() } - unsafe extern "system" fn AudioOutput(this: *mut core::ffi::c_void, audiooutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn AudioOutput(this: *mut core::ffi::c_void, audiooutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::AudioOutput(this) { Ok(ok__) => { @@ -9995,17 +7607,11 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AudioOutput(this: *mut core::ffi::c_void, audiooutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn putref_AudioOutput(this: *mut core::ffi::c_void, audiooutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::putref_AudioOutput(this, windows_core::from_raw_borrowed(&audiooutput)).into() } - unsafe extern "system" fn AudioOutputStream(this: *mut core::ffi::c_void, audiooutputstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn AudioOutputStream(this: *mut core::ffi::c_void, audiooutputstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::AudioOutputStream(this) { Ok(ok__) => { @@ -10015,17 +7621,11 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AudioOutputStream(this: *mut core::ffi::c_void, audiooutputstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn putref_AudioOutputStream(this: *mut core::ffi::c_void, audiooutputstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::putref_AudioOutputStream(this, windows_core::from_raw_borrowed(&audiooutputstream)).into() } - unsafe extern "system" fn Rate(this: *mut core::ffi::c_void, rate: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn Rate(this: *mut core::ffi::c_void, rate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::Rate(this) { Ok(ok__) => { @@ -10035,17 +7635,11 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, rate: i32) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, rate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::SetRate(this, core::mem::transmute_copy(&rate)).into() } - unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, volume: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn Volume(this: *mut core::ffi::c_void, volume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::Volume(this) { Ok(ok__) => { @@ -10055,24 +7649,15 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, volume: i32) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn SetVolume(this: *mut core::ffi::c_void, volume: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::SetVolume(this, core::mem::transmute_copy(&volume)).into() } - unsafe extern "system" fn SetAllowAudioOutputFormatChangesOnNextSet(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn SetAllowAudioOutputFormatChangesOnNextSet(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::SetAllowAudioOutputFormatChangesOnNextSet(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowAudioOutputFormatChangesOnNextSet(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn AllowAudioOutputFormatChangesOnNextSet(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::AllowAudioOutputFormatChangesOnNextSet(this) { Ok(ok__) => { @@ -10082,10 +7667,7 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventInterests(this: *mut core::ffi::c_void, eventinterestflags: *mut SpeechVoiceEvents) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn EventInterests(this: *mut core::ffi::c_void, eventinterestflags: *mut SpeechVoiceEvents) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::EventInterests(this) { Ok(ok__) => { @@ -10095,24 +7677,15 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventInterests(this: *mut core::ffi::c_void, eventinterestflags: SpeechVoiceEvents) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn SetEventInterests(this: *mut core::ffi::c_void, eventinterestflags: SpeechVoiceEvents) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::SetEventInterests(this, core::mem::transmute_copy(&eventinterestflags)).into() } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, priority: SpeechVoicePriority) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, priority: SpeechVoicePriority) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::SetPriority(this, core::mem::transmute_copy(&priority)).into() } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, priority: *mut SpeechVoicePriority) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, priority: *mut SpeechVoicePriority) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::Priority(this) { Ok(ok__) => { @@ -10122,17 +7695,11 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlertBoundary(this: *mut core::ffi::c_void, boundary: SpeechVoiceEvents) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn SetAlertBoundary(this: *mut core::ffi::c_void, boundary: SpeechVoiceEvents) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::SetAlertBoundary(this, core::mem::transmute_copy(&boundary)).into() } - unsafe extern "system" fn AlertBoundary(this: *mut core::ffi::c_void, boundary: *mut SpeechVoiceEvents) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn AlertBoundary(this: *mut core::ffi::c_void, boundary: *mut SpeechVoiceEvents) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::AlertBoundary(this) { Ok(ok__) => { @@ -10142,17 +7709,11 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSynchronousSpeakTimeout(this: *mut core::ffi::c_void, mstimeout: i32) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn SetSynchronousSpeakTimeout(this: *mut core::ffi::c_void, mstimeout: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::SetSynchronousSpeakTimeout(this, core::mem::transmute_copy(&mstimeout)).into() } - unsafe extern "system" fn SynchronousSpeakTimeout(this: *mut core::ffi::c_void, mstimeout: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn SynchronousSpeakTimeout(this: *mut core::ffi::c_void, mstimeout: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::SynchronousSpeakTimeout(this) { Ok(ok__) => { @@ -10162,10 +7723,7 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Speak(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn Speak(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::Speak(this, core::mem::transmute(&text), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -10175,10 +7733,7 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpeakStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn SpeakStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::SpeakStream(this, windows_core::from_raw_borrowed(&stream), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -10188,24 +7743,15 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::Resume(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, numitems: i32, numskipped: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, r#type: core::mem::MaybeUninit, numitems: i32, numskipped: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::Skip(this, core::mem::transmute(&r#type), core::mem::transmute_copy(&numitems)) { Ok(ok__) => { @@ -10215,10 +7761,7 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVoices(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, objecttokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn GetVoices(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, objecttokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::GetVoices(this, core::mem::transmute(&requiredattributes), core::mem::transmute(&optionalattributes)) { Ok(ok__) => { @@ -10228,10 +7771,7 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAudioOutputs(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, objecttokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn GetAudioOutputs(this: *mut core::ffi::c_void, requiredattributes: core::mem::MaybeUninit, optionalattributes: core::mem::MaybeUninit, objecttokens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::GetAudioOutputs(this, core::mem::transmute(&requiredattributes), core::mem::transmute(&optionalattributes)) { Ok(ok__) => { @@ -10241,10 +7781,7 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WaitUntilDone(this: *mut core::ffi::c_void, mstimeout: i32, done: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn WaitUntilDone(this: *mut core::ffi::c_void, mstimeout: i32, done: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::WaitUntilDone(this, core::mem::transmute_copy(&mstimeout)) { Ok(ok__) => { @@ -10254,10 +7791,7 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpeakCompleteEvent(this: *mut core::ffi::c_void, handle: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn SpeakCompleteEvent(this: *mut core::ffi::c_void, handle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::SpeakCompleteEvent(this) { Ok(ok__) => { @@ -10267,10 +7801,7 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoice_Impl::IsUISupported(this, core::mem::transmute(&typeofui), core::mem::transmute_copy(&extradata)) { Ok(ok__) => { @@ -10280,10 +7811,7 @@ impl ISpeechVoice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: i32, title: core::mem::MaybeUninit, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechVoice_Impl, - { + unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, hwndparent: i32, title: core::mem::MaybeUninit, typeofui: core::mem::MaybeUninit, extradata: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechVoice_Impl::DisplayUI(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&title), core::mem::transmute(&typeofui), core::mem::transmute_copy(&extradata)).into() } @@ -10346,14 +7874,8 @@ pub trait ISpeechVoiceStatus_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISpeechVoiceStatus {} #[cfg(feature = "Win32_System_Com")] impl ISpeechVoiceStatus_Vtbl { - pub const fn new() -> ISpeechVoiceStatus_Vtbl - where - Identity: ISpeechVoiceStatus_Impl, - { - unsafe extern "system" fn CurrentStreamNumber(this: *mut core::ffi::c_void, streamnumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + pub const fn new() -> ISpeechVoiceStatus_Vtbl { + unsafe extern "system" fn CurrentStreamNumber(this: *mut core::ffi::c_void, streamnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::CurrentStreamNumber(this) { Ok(ok__) => { @@ -10363,10 +7885,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastStreamNumberQueued(this: *mut core::ffi::c_void, streamnumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn LastStreamNumberQueued(this: *mut core::ffi::c_void, streamnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::LastStreamNumberQueued(this) { Ok(ok__) => { @@ -10376,10 +7895,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastHResult(this: *mut core::ffi::c_void, hresult: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn LastHResult(this: *mut core::ffi::c_void, hresult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::LastHResult(this) { Ok(ok__) => { @@ -10389,10 +7905,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RunningState(this: *mut core::ffi::c_void, state: *mut SpeechRunState) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn RunningState(this: *mut core::ffi::c_void, state: *mut SpeechRunState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::RunningState(this) { Ok(ok__) => { @@ -10402,10 +7915,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InputWordPosition(this: *mut core::ffi::c_void, position: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn InputWordPosition(this: *mut core::ffi::c_void, position: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::InputWordPosition(this) { Ok(ok__) => { @@ -10415,10 +7925,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InputWordLength(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn InputWordLength(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::InputWordLength(this) { Ok(ok__) => { @@ -10428,10 +7935,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InputSentencePosition(this: *mut core::ffi::c_void, position: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn InputSentencePosition(this: *mut core::ffi::c_void, position: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::InputSentencePosition(this) { Ok(ok__) => { @@ -10441,10 +7945,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InputSentenceLength(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn InputSentenceLength(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::InputSentenceLength(this) { Ok(ok__) => { @@ -10454,10 +7955,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastBookmark(this: *mut core::ffi::c_void, bookmark: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn LastBookmark(this: *mut core::ffi::c_void, bookmark: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::LastBookmark(this) { Ok(ok__) => { @@ -10467,10 +7965,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastBookmarkId(this: *mut core::ffi::c_void, bookmarkid: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn LastBookmarkId(this: *mut core::ffi::c_void, bookmarkid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::LastBookmarkId(this) { Ok(ok__) => { @@ -10480,10 +7975,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PhonemeId(this: *mut core::ffi::c_void, phoneid: *mut i16) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn PhonemeId(this: *mut core::ffi::c_void, phoneid: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::PhonemeId(this) { Ok(ok__) => { @@ -10493,10 +7985,7 @@ impl ISpeechVoiceStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VisemeId(this: *mut core::ffi::c_void, visemeid: *mut i16) -> windows_core::HRESULT - where - Identity: ISpeechVoiceStatus_Impl, - { + unsafe extern "system" fn VisemeId(this: *mut core::ffi::c_void, visemeid: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechVoiceStatus_Impl::VisemeId(this) { Ok(ok__) => { @@ -10547,14 +8036,8 @@ pub trait ISpeechWaveFormatEx_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ISpeechWaveFormatEx {} #[cfg(feature = "Win32_System_Com")] impl ISpeechWaveFormatEx_Vtbl { - pub const fn new() -> ISpeechWaveFormatEx_Vtbl - where - Identity: ISpeechWaveFormatEx_Impl, - { - unsafe extern "system" fn FormatTag(this: *mut core::ffi::c_void, formattag: *mut i16) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + pub const fn new() -> ISpeechWaveFormatEx_Vtbl { + unsafe extern "system" fn FormatTag(this: *mut core::ffi::c_void, formattag: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechWaveFormatEx_Impl::FormatTag(this) { Ok(ok__) => { @@ -10564,17 +8047,11 @@ impl ISpeechWaveFormatEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatTag(this: *mut core::ffi::c_void, formattag: i16) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn SetFormatTag(this: *mut core::ffi::c_void, formattag: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechWaveFormatEx_Impl::SetFormatTag(this, core::mem::transmute_copy(&formattag)).into() } - unsafe extern "system" fn Channels(this: *mut core::ffi::c_void, channels: *mut i16) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn Channels(this: *mut core::ffi::c_void, channels: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechWaveFormatEx_Impl::Channels(this) { Ok(ok__) => { @@ -10584,17 +8061,11 @@ impl ISpeechWaveFormatEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChannels(this: *mut core::ffi::c_void, channels: i16) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn SetChannels(this: *mut core::ffi::c_void, channels: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechWaveFormatEx_Impl::SetChannels(this, core::mem::transmute_copy(&channels)).into() } - unsafe extern "system" fn SamplesPerSec(this: *mut core::ffi::c_void, samplespersec: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn SamplesPerSec(this: *mut core::ffi::c_void, samplespersec: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechWaveFormatEx_Impl::SamplesPerSec(this) { Ok(ok__) => { @@ -10604,17 +8075,11 @@ impl ISpeechWaveFormatEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSamplesPerSec(this: *mut core::ffi::c_void, samplespersec: i32) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn SetSamplesPerSec(this: *mut core::ffi::c_void, samplespersec: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechWaveFormatEx_Impl::SetSamplesPerSec(this, core::mem::transmute_copy(&samplespersec)).into() } - unsafe extern "system" fn AvgBytesPerSec(this: *mut core::ffi::c_void, avgbytespersec: *mut i32) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn AvgBytesPerSec(this: *mut core::ffi::c_void, avgbytespersec: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechWaveFormatEx_Impl::AvgBytesPerSec(this) { Ok(ok__) => { @@ -10624,17 +8089,11 @@ impl ISpeechWaveFormatEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAvgBytesPerSec(this: *mut core::ffi::c_void, avgbytespersec: i32) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn SetAvgBytesPerSec(this: *mut core::ffi::c_void, avgbytespersec: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechWaveFormatEx_Impl::SetAvgBytesPerSec(this, core::mem::transmute_copy(&avgbytespersec)).into() } - unsafe extern "system" fn BlockAlign(this: *mut core::ffi::c_void, blockalign: *mut i16) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn BlockAlign(this: *mut core::ffi::c_void, blockalign: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechWaveFormatEx_Impl::BlockAlign(this) { Ok(ok__) => { @@ -10644,17 +8103,11 @@ impl ISpeechWaveFormatEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBlockAlign(this: *mut core::ffi::c_void, blockalign: i16) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn SetBlockAlign(this: *mut core::ffi::c_void, blockalign: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechWaveFormatEx_Impl::SetBlockAlign(this, core::mem::transmute_copy(&blockalign)).into() } - unsafe extern "system" fn BitsPerSample(this: *mut core::ffi::c_void, bitspersample: *mut i16) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn BitsPerSample(this: *mut core::ffi::c_void, bitspersample: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechWaveFormatEx_Impl::BitsPerSample(this) { Ok(ok__) => { @@ -10664,17 +8117,11 @@ impl ISpeechWaveFormatEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBitsPerSample(this: *mut core::ffi::c_void, bitspersample: i16) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn SetBitsPerSample(this: *mut core::ffi::c_void, bitspersample: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechWaveFormatEx_Impl::SetBitsPerSample(this, core::mem::transmute_copy(&bitspersample)).into() } - unsafe extern "system" fn ExtraData(this: *mut core::ffi::c_void, extradata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn ExtraData(this: *mut core::ffi::c_void, extradata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechWaveFormatEx_Impl::ExtraData(this) { Ok(ok__) => { @@ -10684,10 +8131,7 @@ impl ISpeechWaveFormatEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExtraData(this: *mut core::ffi::c_void, extradata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechWaveFormatEx_Impl, - { + unsafe extern "system" fn SetExtraData(this: *mut core::ffi::c_void, extradata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechWaveFormatEx_Impl::SetExtraData(this, core::mem::transmute(&extradata)).into() } @@ -10722,14 +8166,8 @@ pub trait ISpeechXMLRecoResult_Impl: Sized + ISpeechRecoResult_Impl { impl windows_core::RuntimeName for ISpeechXMLRecoResult {} #[cfg(feature = "Win32_System_Com")] impl ISpeechXMLRecoResult_Vtbl { - pub const fn new() -> ISpeechXMLRecoResult_Vtbl - where - Identity: ISpeechXMLRecoResult_Impl, - { - unsafe extern "system" fn GetXMLResult(this: *mut core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpeechXMLRecoResult_Impl, - { + pub const fn new() -> ISpeechXMLRecoResult_Vtbl { + unsafe extern "system" fn GetXMLResult(this: *mut core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechXMLRecoResult_Impl::GetXMLResult(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -10739,10 +8177,7 @@ impl ISpeechXMLRecoResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetXMLErrorInfo(this: *mut core::ffi::c_void, linenumber: *mut i32, scriptline: *mut core::mem::MaybeUninit, source: *mut core::mem::MaybeUninit, description: *mut core::mem::MaybeUninit, resultcode: *mut i32, iserror: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISpeechXMLRecoResult_Impl, - { + unsafe extern "system" fn GetXMLErrorInfo(this: *mut core::ffi::c_void, linenumber: *mut i32, scriptline: *mut core::mem::MaybeUninit, source: *mut core::mem::MaybeUninit, description: *mut core::mem::MaybeUninit, resultcode: *mut i32, iserror: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechXMLRecoResult_Impl::GetXMLErrorInfo(this, 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() } @@ -10756,27 +8191,18 @@ impl ISpeechXMLRecoResult_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait _ISpPrivateEngineCall_Impl: Sized { +pub trait _ISpPrivateEngineCall_Impl: Sized + windows_core::IUnknownImpl { fn CallEngine(&self, pcallframe: *mut core::ffi::c_void, ulcallframesize: u32) -> windows_core::Result<()>; fn CallEngineEx(&self, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for _ISpPrivateEngineCall {} impl _ISpPrivateEngineCall_Vtbl { - pub const fn new() -> _ISpPrivateEngineCall_Vtbl - where - Identity: _ISpPrivateEngineCall_Impl, - { - unsafe extern "system" fn CallEngine(this: *mut core::ffi::c_void, pcallframe: *mut core::ffi::c_void, ulcallframesize: u32) -> windows_core::HRESULT - where - Identity: _ISpPrivateEngineCall_Impl, - { + pub const fn new() -> _ISpPrivateEngineCall_Vtbl { + unsafe extern "system" fn CallEngine(this: *mut core::ffi::c_void, pcallframe: *mut core::ffi::c_void, ulcallframesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISpPrivateEngineCall_Impl::CallEngine(this, core::mem::transmute_copy(&pcallframe), core::mem::transmute_copy(&ulcallframesize)).into() } - unsafe extern "system" fn CallEngineEx(this: *mut core::ffi::c_void, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::HRESULT - where - Identity: _ISpPrivateEngineCall_Impl, - { + unsafe extern "system" fn CallEngineEx(this: *mut core::ffi::c_void, pinframe: *const core::ffi::c_void, ulinframesize: u32, ppcomemoutframe: *mut *mut core::ffi::c_void, puloutframesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISpPrivateEngineCall_Impl::CallEngineEx(this, core::mem::transmute_copy(&pinframe), core::mem::transmute_copy(&ulinframesize), core::mem::transmute_copy(&ppcomemoutframe), core::mem::transmute_copy(&puloutframesize)).into() } @@ -10796,10 +8222,7 @@ pub trait _ISpeechRecoContextEvents_Impl: Sized + super::super::System::Com::IDi impl windows_core::RuntimeName for _ISpeechRecoContextEvents {} #[cfg(feature = "Win32_System_Com")] impl _ISpeechRecoContextEvents_Vtbl { - pub const fn new() -> _ISpeechRecoContextEvents_Vtbl - where - Identity: _ISpeechRecoContextEvents_Impl, - { + pub const fn new() -> _ISpeechRecoContextEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -10812,10 +8235,7 @@ pub trait _ISpeechVoiceEvents_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for _ISpeechVoiceEvents {} #[cfg(feature = "Win32_System_Com")] impl _ISpeechVoiceEvents_Vtbl { - pub const fn new() -> _ISpeechVoiceEvents_Vtbl - where - Identity: _ISpeechVoiceEvents_Impl, - { + pub const fn new() -> _ISpeechVoiceEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { 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 0b536b5d2f..4810d5072b 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/impl.rs @@ -1,4 +1,4 @@ -pub trait INSNetSourceCreator_Impl: Sized { +pub trait INSNetSourceCreator_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result<()>; fn CreateNetSource(&self, pszstreamname: &windows_core::PCWSTR, pmonitor: Option<&windows_core::IUnknown>, pdata: *const u8, pusercontext: Option<&windows_core::IUnknown>, pcallback: Option<&windows_core::IUnknown>, qwcontext: u64) -> windows_core::Result<()>; fn GetNetSourceProperties(&self, pszstreamname: &windows_core::PCWSTR) -> windows_core::Result; @@ -10,28 +10,16 @@ pub trait INSNetSourceCreator_Impl: Sized { } impl windows_core::RuntimeName for INSNetSourceCreator {} impl INSNetSourceCreator_Vtbl { - pub const fn new() -> INSNetSourceCreator_Vtbl - where - Identity: INSNetSourceCreator_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INSNetSourceCreator_Impl, - { + pub const fn new() -> INSNetSourceCreator_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INSNetSourceCreator_Impl::Initialize(this).into() } - unsafe extern "system" fn CreateNetSource(this: *mut core::ffi::c_void, pszstreamname: windows_core::PCWSTR, pmonitor: *mut core::ffi::c_void, pdata: *const u8, pusercontext: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, qwcontext: u64) -> windows_core::HRESULT - where - Identity: INSNetSourceCreator_Impl, - { + unsafe extern "system" fn CreateNetSource(this: *mut core::ffi::c_void, pszstreamname: windows_core::PCWSTR, pmonitor: *mut core::ffi::c_void, pdata: *const u8, pusercontext: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, qwcontext: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INSNetSourceCreator_Impl::CreateNetSource(this, core::mem::transmute(&pszstreamname), windows_core::from_raw_borrowed(&pmonitor), core::mem::transmute_copy(&pdata), windows_core::from_raw_borrowed(&pusercontext), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&qwcontext)).into() } - unsafe extern "system" fn GetNetSourceProperties(this: *mut core::ffi::c_void, pszstreamname: windows_core::PCWSTR, pppropertiesnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INSNetSourceCreator_Impl, - { + unsafe extern "system" fn GetNetSourceProperties(this: *mut core::ffi::c_void, pszstreamname: windows_core::PCWSTR, pppropertiesnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INSNetSourceCreator_Impl::GetNetSourceProperties(this, core::mem::transmute(&pszstreamname)) { Ok(ok__) => { @@ -41,10 +29,7 @@ impl INSNetSourceCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetSourceSharedNamespace(this: *mut core::ffi::c_void, ppsharednamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INSNetSourceCreator_Impl, - { + unsafe extern "system" fn GetNetSourceSharedNamespace(this: *mut core::ffi::c_void, ppsharednamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INSNetSourceCreator_Impl::GetNetSourceSharedNamespace(this) { Ok(ok__) => { @@ -54,10 +39,7 @@ impl INSNetSourceCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetSourceAdminInterface(this: *mut core::ffi::c_void, pszstreamname: windows_core::PCWSTR, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INSNetSourceCreator_Impl, - { + unsafe extern "system" fn GetNetSourceAdminInterface(this: *mut core::ffi::c_void, pszstreamname: windows_core::PCWSTR, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INSNetSourceCreator_Impl::GetNetSourceAdminInterface(this, core::mem::transmute(&pszstreamname)) { Ok(ok__) => { @@ -67,10 +49,7 @@ impl INSNetSourceCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumProtocolsSupported(this: *mut core::ffi::c_void, pcprotocols: *mut u32) -> windows_core::HRESULT - where - Identity: INSNetSourceCreator_Impl, - { + unsafe extern "system" fn GetNumProtocolsSupported(this: *mut core::ffi::c_void, pcprotocols: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INSNetSourceCreator_Impl::GetNumProtocolsSupported(this) { Ok(ok__) => { @@ -80,17 +59,11 @@ impl INSNetSourceCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProtocolName(this: *mut core::ffi::c_void, dwprotocolnum: u32, pwszprotocolname: windows_core::PWSTR, pcchprotocolname: *mut u16) -> windows_core::HRESULT - where - Identity: INSNetSourceCreator_Impl, - { + unsafe extern "system" fn GetProtocolName(this: *mut core::ffi::c_void, dwprotocolnum: u32, pwszprotocolname: windows_core::PWSTR, pcchprotocolname: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INSNetSourceCreator_Impl::GetProtocolName(this, core::mem::transmute_copy(&dwprotocolnum), core::mem::transmute_copy(&pwszprotocolname), core::mem::transmute_copy(&pcchprotocolname)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INSNetSourceCreator_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INSNetSourceCreator_Impl::Shutdown(this).into() } @@ -110,7 +83,7 @@ impl INSNetSourceCreator_Vtbl { iid == &::IID } } -pub trait INSSBuffer_Impl: Sized { +pub trait INSSBuffer_Impl: Sized + windows_core::IUnknownImpl { fn GetLength(&self) -> windows_core::Result; fn SetLength(&self, dwlength: u32) -> windows_core::Result<()>; fn GetMaxLength(&self) -> windows_core::Result; @@ -119,14 +92,8 @@ pub trait INSSBuffer_Impl: Sized { } impl windows_core::RuntimeName for INSSBuffer {} impl INSSBuffer_Vtbl { - pub const fn new() -> INSSBuffer_Vtbl - where - Identity: INSSBuffer_Impl, - { - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: INSSBuffer_Impl, - { + pub const fn new() -> INSSBuffer_Vtbl { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INSSBuffer_Impl::GetLength(this) { Ok(ok__) => { @@ -136,17 +103,11 @@ impl INSSBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, dwlength: u32) -> windows_core::HRESULT - where - Identity: INSSBuffer_Impl, - { + unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, dwlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INSSBuffer_Impl::SetLength(this, core::mem::transmute_copy(&dwlength)).into() } - unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: INSSBuffer_Impl, - { + unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INSSBuffer_Impl::GetMaxLength(this) { Ok(ok__) => { @@ -156,10 +117,7 @@ impl INSSBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, ppdwbuffer: *mut *mut u8) -> windows_core::HRESULT - where - Identity: INSSBuffer_Impl, - { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, ppdwbuffer: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INSSBuffer_Impl::GetBuffer(this) { Ok(ok__) => { @@ -169,10 +127,7 @@ impl INSSBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBufferAndLength(this: *mut core::ffi::c_void, ppdwbuffer: *mut *mut u8, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: INSSBuffer_Impl, - { + unsafe extern "system" fn GetBufferAndLength(this: *mut core::ffi::c_void, ppdwbuffer: *mut *mut u8, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INSSBuffer_Impl::GetBufferAndLength(this, core::mem::transmute_copy(&ppdwbuffer), core::mem::transmute_copy(&pdwlength)).into() } @@ -195,14 +150,8 @@ pub trait INSSBuffer2_Impl: Sized + INSSBuffer_Impl { } impl windows_core::RuntimeName for INSSBuffer2 {} impl INSSBuffer2_Vtbl { - pub const fn new() -> INSSBuffer2_Vtbl - where - Identity: INSSBuffer2_Impl, - { - unsafe extern "system" fn GetSampleProperties(this: *mut core::ffi::c_void, cbproperties: u32, pbproperties: *mut u8) -> windows_core::HRESULT - where - Identity: INSSBuffer2_Impl, - { + pub const fn new() -> INSSBuffer2_Vtbl { + unsafe extern "system" fn GetSampleProperties(this: *mut core::ffi::c_void, cbproperties: u32, pbproperties: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INSSBuffer2_Impl::GetSampleProperties(this, core::mem::transmute_copy(&cbproperties)) { Ok(ok__) => { @@ -212,10 +161,7 @@ impl INSSBuffer2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSampleProperties(this: *mut core::ffi::c_void, cbproperties: u32, pbproperties: *const u8) -> windows_core::HRESULT - where - Identity: INSSBuffer2_Impl, - { + unsafe extern "system" fn SetSampleProperties(this: *mut core::ffi::c_void, cbproperties: u32, pbproperties: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INSSBuffer2_Impl::SetSampleProperties(this, core::mem::transmute_copy(&cbproperties), core::mem::transmute_copy(&pbproperties)).into() } @@ -235,21 +181,12 @@ pub trait INSSBuffer3_Impl: Sized + INSSBuffer2_Impl { } impl windows_core::RuntimeName for INSSBuffer3 {} impl INSSBuffer3_Vtbl { - pub const fn new() -> INSSBuffer3_Vtbl - where - Identity: INSSBuffer3_Impl, - { - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, guidbufferproperty: windows_core::GUID, pvbufferproperty: *const core::ffi::c_void, dwbufferpropertysize: u32) -> windows_core::HRESULT - where - Identity: INSSBuffer3_Impl, - { + pub const fn new() -> INSSBuffer3_Vtbl { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, guidbufferproperty: windows_core::GUID, pvbufferproperty: *const core::ffi::c_void, dwbufferpropertysize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INSSBuffer3_Impl::SetProperty(this, core::mem::transmute(&guidbufferproperty), core::mem::transmute_copy(&pvbufferproperty), core::mem::transmute_copy(&dwbufferpropertysize)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, guidbufferproperty: windows_core::GUID, pvbufferproperty: *mut core::ffi::c_void, pdwbufferpropertysize: *mut u32) -> windows_core::HRESULT - where - Identity: INSSBuffer3_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, guidbufferproperty: windows_core::GUID, pvbufferproperty: *mut core::ffi::c_void, pdwbufferpropertysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INSSBuffer3_Impl::GetProperty(this, core::mem::transmute(&guidbufferproperty), core::mem::transmute_copy(&pvbufferproperty), core::mem::transmute_copy(&pdwbufferpropertysize)).into() } @@ -265,14 +202,8 @@ pub trait INSSBuffer4_Impl: Sized + INSSBuffer3_Impl { } impl windows_core::RuntimeName for INSSBuffer4 {} impl INSSBuffer4_Vtbl { - pub const fn new() -> INSSBuffer4_Vtbl - where - Identity: INSSBuffer4_Impl, - { - unsafe extern "system" fn GetPropertyCount(this: *mut core::ffi::c_void, pcbufferproperties: *mut u32) -> windows_core::HRESULT - where - Identity: INSSBuffer4_Impl, - { + pub const fn new() -> INSSBuffer4_Vtbl { + unsafe extern "system" fn GetPropertyCount(this: *mut core::ffi::c_void, pcbufferproperties: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INSSBuffer4_Impl::GetPropertyCount(this) { Ok(ok__) => { @@ -282,10 +213,7 @@ impl INSSBuffer4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyByIndex(this: *mut core::ffi::c_void, dwbufferpropertyindex: u32, pguidbufferproperty: *mut windows_core::GUID, pvbufferproperty: *mut core::ffi::c_void, pdwbufferpropertysize: *mut u32) -> windows_core::HRESULT - where - Identity: INSSBuffer4_Impl, - { + unsafe extern "system" fn GetPropertyByIndex(this: *mut core::ffi::c_void, dwbufferpropertyindex: u32, pguidbufferproperty: *mut windows_core::GUID, pvbufferproperty: *mut core::ffi::c_void, pdwbufferpropertysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INSSBuffer4_Impl::GetPropertyByIndex(this, core::mem::transmute_copy(&dwbufferpropertyindex), core::mem::transmute_copy(&pguidbufferproperty), core::mem::transmute_copy(&pvbufferproperty), core::mem::transmute_copy(&pdwbufferpropertysize)).into() } @@ -299,7 +227,7 @@ impl INSSBuffer4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMAddressAccess_Impl: Sized { +pub trait IWMAddressAccess_Impl: Sized + windows_core::IUnknownImpl { fn GetAccessEntryCount(&self, aetype: WM_AETYPE) -> windows_core::Result; fn GetAccessEntry(&self, aetype: WM_AETYPE, dwentrynum: u32) -> windows_core::Result; fn AddAccessEntry(&self, aetype: WM_AETYPE, paddraccessentry: *const WM_ADDRESS_ACCESSENTRY) -> windows_core::Result<()>; @@ -307,14 +235,8 @@ pub trait IWMAddressAccess_Impl: Sized { } impl windows_core::RuntimeName for IWMAddressAccess {} impl IWMAddressAccess_Vtbl { - pub const fn new() -> IWMAddressAccess_Vtbl - where - Identity: IWMAddressAccess_Impl, - { - unsafe extern "system" fn GetAccessEntryCount(this: *mut core::ffi::c_void, aetype: WM_AETYPE, pcentries: *mut u32) -> windows_core::HRESULT - where - Identity: IWMAddressAccess_Impl, - { + pub const fn new() -> IWMAddressAccess_Vtbl { + unsafe extern "system" fn GetAccessEntryCount(this: *mut core::ffi::c_void, aetype: WM_AETYPE, pcentries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMAddressAccess_Impl::GetAccessEntryCount(this, core::mem::transmute_copy(&aetype)) { Ok(ok__) => { @@ -324,10 +246,7 @@ impl IWMAddressAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAccessEntry(this: *mut core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32, paddraccessentry: *mut WM_ADDRESS_ACCESSENTRY) -> windows_core::HRESULT - where - Identity: IWMAddressAccess_Impl, - { + unsafe extern "system" fn GetAccessEntry(this: *mut core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32, paddraccessentry: *mut WM_ADDRESS_ACCESSENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMAddressAccess_Impl::GetAccessEntry(this, core::mem::transmute_copy(&aetype), core::mem::transmute_copy(&dwentrynum)) { Ok(ok__) => { @@ -337,17 +256,11 @@ impl IWMAddressAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddAccessEntry(this: *mut core::ffi::c_void, aetype: WM_AETYPE, paddraccessentry: *const WM_ADDRESS_ACCESSENTRY) -> windows_core::HRESULT - where - Identity: IWMAddressAccess_Impl, - { + unsafe extern "system" fn AddAccessEntry(this: *mut core::ffi::c_void, aetype: WM_AETYPE, paddraccessentry: *const WM_ADDRESS_ACCESSENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMAddressAccess_Impl::AddAccessEntry(this, core::mem::transmute_copy(&aetype), core::mem::transmute_copy(&paddraccessentry)).into() } - unsafe extern "system" fn RemoveAccessEntry(this: *mut core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32) -> windows_core::HRESULT - where - Identity: IWMAddressAccess_Impl, - { + unsafe extern "system" fn RemoveAccessEntry(this: *mut core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMAddressAccess_Impl::RemoveAccessEntry(this, core::mem::transmute_copy(&aetype), core::mem::transmute_copy(&dwentrynum)).into() } @@ -369,21 +282,12 @@ pub trait IWMAddressAccess2_Impl: Sized + IWMAddressAccess_Impl { } impl windows_core::RuntimeName for IWMAddressAccess2 {} impl IWMAddressAccess2_Vtbl { - pub const fn new() -> IWMAddressAccess2_Vtbl - where - Identity: IWMAddressAccess2_Impl, - { - unsafe extern "system" fn GetAccessEntryEx(this: *mut core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: *mut core::mem::MaybeUninit, pbstrmask: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMAddressAccess2_Impl, - { + pub const fn new() -> IWMAddressAccess2_Vtbl { + unsafe extern "system" fn GetAccessEntryEx(this: *mut core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: *mut core::mem::MaybeUninit, pbstrmask: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMAddressAccess2_Impl::GetAccessEntryEx(this, 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(this: *mut core::ffi::c_void, aetype: WM_AETYPE, bstraddress: core::mem::MaybeUninit, bstrmask: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMAddressAccess2_Impl, - { + unsafe extern "system" fn AddAccessEntryEx(this: *mut core::ffi::c_void, aetype: WM_AETYPE, bstraddress: core::mem::MaybeUninit, bstrmask: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMAddressAccess2_Impl::AddAccessEntryEx(this, core::mem::transmute_copy(&aetype), core::mem::transmute(&bstraddress), core::mem::transmute(&bstrmask)).into() } @@ -397,21 +301,15 @@ impl IWMAddressAccess2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMAuthorizer_Impl: Sized { +pub trait IWMAuthorizer_Impl: Sized + windows_core::IUnknownImpl { fn GetCertCount(&self) -> windows_core::Result; fn GetCert(&self, dwindex: u32) -> windows_core::Result<*mut u8>; fn GetSharedData(&self, dwcertindex: u32, pbshareddata: *const u8, pbcert: *const u8) -> windows_core::Result<*mut u8>; } impl windows_core::RuntimeName for IWMAuthorizer {} impl IWMAuthorizer_Vtbl { - pub const fn new() -> IWMAuthorizer_Vtbl - where - Identity: IWMAuthorizer_Impl, - { - unsafe extern "system" fn GetCertCount(this: *mut core::ffi::c_void, pccerts: *mut u32) -> windows_core::HRESULT - where - Identity: IWMAuthorizer_Impl, - { + pub const fn new() -> IWMAuthorizer_Vtbl { + unsafe extern "system" fn GetCertCount(this: *mut core::ffi::c_void, pccerts: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMAuthorizer_Impl::GetCertCount(this) { Ok(ok__) => { @@ -421,10 +319,7 @@ impl IWMAuthorizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCert(this: *mut core::ffi::c_void, dwindex: u32, ppbcertdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IWMAuthorizer_Impl, - { + unsafe extern "system" fn GetCert(this: *mut core::ffi::c_void, dwindex: u32, ppbcertdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMAuthorizer_Impl::GetCert(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -434,10 +329,7 @@ impl IWMAuthorizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSharedData(this: *mut core::ffi::c_void, dwcertindex: u32, pbshareddata: *const u8, pbcert: *const u8, ppbshareddata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IWMAuthorizer_Impl, - { + unsafe extern "system" fn GetSharedData(this: *mut core::ffi::c_void, dwcertindex: u32, pbshareddata: *const u8, pbcert: *const u8, ppbshareddata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMAuthorizer_Impl::GetSharedData(this, core::mem::transmute_copy(&dwcertindex), core::mem::transmute_copy(&pbshareddata), core::mem::transmute_copy(&pbcert)) { Ok(ok__) => { @@ -458,7 +350,7 @@ impl IWMAuthorizer_Vtbl { iid == &::IID } } -pub trait IWMBackupRestoreProps_Impl: Sized { +pub trait IWMBackupRestoreProps_Impl: Sized + windows_core::IUnknownImpl { fn GetPropCount(&self) -> windows_core::Result; fn GetPropByIndex(&self, windex: u16, pwszname: windows_core::PWSTR, pcchnamelen: *mut u16, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()>; fn GetPropByName(&self, pszname: &windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()>; @@ -468,14 +360,8 @@ pub trait IWMBackupRestoreProps_Impl: Sized { } impl windows_core::RuntimeName for IWMBackupRestoreProps {} impl IWMBackupRestoreProps_Vtbl { - pub const fn new() -> IWMBackupRestoreProps_Vtbl - where - Identity: IWMBackupRestoreProps_Impl, - { - unsafe extern "system" fn GetPropCount(this: *mut core::ffi::c_void, pcprops: *mut u16) -> windows_core::HRESULT - where - Identity: IWMBackupRestoreProps_Impl, - { + pub const fn new() -> IWMBackupRestoreProps_Vtbl { + unsafe extern "system" fn GetPropCount(this: *mut core::ffi::c_void, pcprops: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMBackupRestoreProps_Impl::GetPropCount(this) { Ok(ok__) => { @@ -485,38 +371,23 @@ impl IWMBackupRestoreProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropByIndex(this: *mut core::ffi::c_void, windex: u16, pwszname: windows_core::PWSTR, pcchnamelen: *mut u16, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMBackupRestoreProps_Impl, - { + unsafe extern "system" fn GetPropByIndex(this: *mut core::ffi::c_void, windex: u16, pwszname: windows_core::PWSTR, pcchnamelen: *mut u16, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMBackupRestoreProps_Impl::GetPropByIndex(this, core::mem::transmute_copy(&windex), core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&pcchnamelen), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn GetPropByName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMBackupRestoreProps_Impl, - { + unsafe extern "system" fn GetPropByName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMBackupRestoreProps_Impl::GetPropByName(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn SetProp(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT - where - Identity: IWMBackupRestoreProps_Impl, - { + unsafe extern "system" fn SetProp(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMBackupRestoreProps_Impl::SetProp(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cblength)).into() } - unsafe extern "system" fn RemoveProp(this: *mut core::ffi::c_void, pcwszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMBackupRestoreProps_Impl, - { + unsafe extern "system" fn RemoveProp(this: *mut core::ffi::c_void, pcwszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMBackupRestoreProps_Impl::RemoveProp(this, core::mem::transmute(&pcwszname)).into() } - unsafe extern "system" fn RemoveAllProps(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMBackupRestoreProps_Impl, - { + unsafe extern "system" fn RemoveAllProps(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMBackupRestoreProps_Impl::RemoveAllProps(this).into() } @@ -542,14 +413,8 @@ pub trait IWMBandwidthSharing_Impl: Sized + IWMStreamList_Impl { } impl windows_core::RuntimeName for IWMBandwidthSharing {} impl IWMBandwidthSharing_Vtbl { - pub const fn new() -> IWMBandwidthSharing_Vtbl - where - Identity: IWMBandwidthSharing_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMBandwidthSharing_Impl, - { + pub const fn new() -> IWMBandwidthSharing_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMBandwidthSharing_Impl::GetType(this) { Ok(ok__) => { @@ -559,24 +424,15 @@ impl IWMBandwidthSharing_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMBandwidthSharing_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMBandwidthSharing_Impl::SetType(this, core::mem::transmute_copy(&guidtype)).into() } - unsafe extern "system" fn GetBandwidth(this: *mut core::ffi::c_void, pdwbitrate: *mut u32, pmsbufferwindow: *mut u32) -> windows_core::HRESULT - where - Identity: IWMBandwidthSharing_Impl, - { + unsafe extern "system" fn GetBandwidth(this: *mut core::ffi::c_void, pdwbitrate: *mut u32, pmsbufferwindow: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMBandwidthSharing_Impl::GetBandwidth(this, core::mem::transmute_copy(&pdwbitrate), core::mem::transmute_copy(&pmsbufferwindow)).into() } - unsafe extern "system" fn SetBandwidth(this: *mut core::ffi::c_void, dwbitrate: u32, msbufferwindow: u32) -> windows_core::HRESULT - where - Identity: IWMBandwidthSharing_Impl, - { + unsafe extern "system" fn SetBandwidth(this: *mut core::ffi::c_void, dwbitrate: u32, msbufferwindow: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMBandwidthSharing_Impl::SetBandwidth(this, core::mem::transmute_copy(&dwbitrate), core::mem::transmute_copy(&msbufferwindow)).into() } @@ -592,20 +448,14 @@ impl IWMBandwidthSharing_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMClientConnections_Impl: Sized { +pub trait IWMClientConnections_Impl: Sized + windows_core::IUnknownImpl { fn GetClientCount(&self) -> windows_core::Result; fn GetClientProperties(&self, dwclientnum: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IWMClientConnections {} impl IWMClientConnections_Vtbl { - pub const fn new() -> IWMClientConnections_Vtbl - where - Identity: IWMClientConnections_Impl, - { - unsafe extern "system" fn GetClientCount(this: *mut core::ffi::c_void, pcclients: *mut u32) -> windows_core::HRESULT - where - Identity: IWMClientConnections_Impl, - { + pub const fn new() -> IWMClientConnections_Vtbl { + unsafe extern "system" fn GetClientCount(this: *mut core::ffi::c_void, pcclients: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMClientConnections_Impl::GetClientCount(this) { Ok(ok__) => { @@ -615,10 +465,7 @@ impl IWMClientConnections_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClientProperties(this: *mut core::ffi::c_void, dwclientnum: u32, pclientproperties: *mut WM_CLIENT_PROPERTIES) -> windows_core::HRESULT - where - Identity: IWMClientConnections_Impl, - { + unsafe extern "system" fn GetClientProperties(this: *mut core::ffi::c_void, dwclientnum: u32, pclientproperties: *mut WM_CLIENT_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMClientConnections_Impl::GetClientProperties(this, core::mem::transmute_copy(&dwclientnum)) { Ok(ok__) => { @@ -643,14 +490,8 @@ pub trait IWMClientConnections2_Impl: Sized + IWMClientConnections_Impl { } impl windows_core::RuntimeName for IWMClientConnections2 {} impl IWMClientConnections2_Vtbl { - pub const fn new() -> IWMClientConnections2_Vtbl - where - Identity: IWMClientConnections2_Impl, - { - unsafe extern "system" fn GetClientInfo(this: *mut core::ffi::c_void, dwclientnum: u32, pwsznetworkaddress: windows_core::PWSTR, pcchnetworkaddress: *mut u32, pwszport: windows_core::PWSTR, pcchport: *mut u32, pwszdnsname: windows_core::PWSTR, pcchdnsname: *mut u32) -> windows_core::HRESULT - where - Identity: IWMClientConnections2_Impl, - { + pub const fn new() -> IWMClientConnections2_Vtbl { + unsafe extern "system" fn GetClientInfo(this: *mut core::ffi::c_void, dwclientnum: u32, pwsznetworkaddress: windows_core::PWSTR, pcchnetworkaddress: *mut u32, pwszport: windows_core::PWSTR, pcchport: *mut u32, pwszdnsname: windows_core::PWSTR, pcchdnsname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMClientConnections2_Impl::GetClientInfo(this, core::mem::transmute_copy(&dwclientnum), core::mem::transmute_copy(&pwsznetworkaddress), core::mem::transmute_copy(&pcchnetworkaddress), core::mem::transmute_copy(&pwszport), core::mem::transmute_copy(&pcchport), core::mem::transmute_copy(&pwszdnsname), core::mem::transmute_copy(&pcchdnsname)).into() } @@ -660,21 +501,15 @@ impl IWMClientConnections2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMCodecInfo_Impl: Sized { +pub trait IWMCodecInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetCodecInfoCount(&self, guidtype: *const windows_core::GUID) -> windows_core::Result; fn GetCodecFormatCount(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32) -> windows_core::Result; fn GetCodecFormat(&self, guidtype: *const windows_core::GUID, dwcodecindex: u32, dwformatindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IWMCodecInfo {} impl IWMCodecInfo_Vtbl { - pub const fn new() -> IWMCodecInfo_Vtbl - where - Identity: IWMCodecInfo_Impl, - { - unsafe extern "system" fn GetCodecInfoCount(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, pccodecs: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecInfo_Impl, - { + pub const fn new() -> IWMCodecInfo_Vtbl { + unsafe extern "system" fn GetCodecInfoCount(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, pccodecs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMCodecInfo_Impl::GetCodecInfoCount(this, core::mem::transmute_copy(&guidtype)) { Ok(ok__) => { @@ -684,10 +519,7 @@ impl IWMCodecInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCodecFormatCount(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, pcformat: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecInfo_Impl, - { + unsafe extern "system" fn GetCodecFormatCount(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, pcformat: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMCodecInfo_Impl::GetCodecFormatCount(this, core::mem::transmute_copy(&guidtype), core::mem::transmute_copy(&dwcodecindex)) { Ok(ok__) => { @@ -697,10 +529,7 @@ impl IWMCodecInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCodecFormat(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, dwformatindex: u32, ppistreamconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMCodecInfo_Impl, - { + unsafe extern "system" fn GetCodecFormat(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, dwformatindex: u32, ppistreamconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMCodecInfo_Impl::GetCodecFormat(this, core::mem::transmute_copy(&guidtype), core::mem::transmute_copy(&dwcodecindex), core::mem::transmute_copy(&dwformatindex)) { Ok(ok__) => { @@ -727,21 +556,12 @@ pub trait IWMCodecInfo2_Impl: Sized + IWMCodecInfo_Impl { } impl windows_core::RuntimeName for IWMCodecInfo2 {} impl IWMCodecInfo2_Vtbl { - pub const fn new() -> IWMCodecInfo2_Vtbl - where - Identity: IWMCodecInfo2_Impl, - { - unsafe extern "system" fn GetCodecName(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, wszname: windows_core::PWSTR, pcchname: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecInfo2_Impl, - { + pub const fn new() -> IWMCodecInfo2_Vtbl { + unsafe extern "system" fn GetCodecName(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, wszname: windows_core::PWSTR, pcchname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecInfo2_Impl::GetCodecName(this, core::mem::transmute_copy(&guidtype), core::mem::transmute_copy(&dwcodecindex), core::mem::transmute_copy(&wszname), core::mem::transmute_copy(&pcchname)).into() } - unsafe extern "system" fn GetCodecFormatDesc(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, dwformatindex: u32, ppistreamconfig: *mut *mut core::ffi::c_void, wszdesc: windows_core::PWSTR, pcchdesc: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecInfo2_Impl, - { + unsafe extern "system" fn GetCodecFormatDesc(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, dwformatindex: u32, ppistreamconfig: *mut *mut core::ffi::c_void, wszdesc: windows_core::PWSTR, pcchdesc: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecInfo2_Impl::GetCodecFormatDesc(this, core::mem::transmute_copy(&guidtype), core::mem::transmute_copy(&dwcodecindex), core::mem::transmute_copy(&dwformatindex), core::mem::transmute_copy(&ppistreamconfig), core::mem::transmute_copy(&wszdesc), core::mem::transmute_copy(&pcchdesc)).into() } @@ -763,35 +583,20 @@ pub trait IWMCodecInfo3_Impl: Sized + IWMCodecInfo2_Impl { } impl windows_core::RuntimeName for IWMCodecInfo3 {} impl IWMCodecInfo3_Vtbl { - pub const fn new() -> IWMCodecInfo3_Vtbl - where - Identity: IWMCodecInfo3_Impl, - { - unsafe extern "system" fn GetCodecFormatProp(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, dwformatindex: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecInfo3_Impl, - { + pub const fn new() -> IWMCodecInfo3_Vtbl { + unsafe extern "system" fn GetCodecFormatProp(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, dwformatindex: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecInfo3_Impl::GetCodecFormatProp(this, core::mem::transmute_copy(&guidtype), core::mem::transmute_copy(&dwcodecindex), core::mem::transmute_copy(&dwformatindex), core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdwsize)).into() } - unsafe extern "system" fn GetCodecProp(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecInfo3_Impl, - { + unsafe extern "system" fn GetCodecProp(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecInfo3_Impl::GetCodecProp(this, core::mem::transmute_copy(&guidtype), core::mem::transmute_copy(&dwcodecindex), core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdwsize)).into() } - unsafe extern "system" fn SetCodecEnumerationSetting(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, dwsize: u32) -> windows_core::HRESULT - where - Identity: IWMCodecInfo3_Impl, - { + unsafe extern "system" fn SetCodecEnumerationSetting(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, dwsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecInfo3_Impl::SetCodecEnumerationSetting(this, core::mem::transmute_copy(&guidtype), core::mem::transmute_copy(&dwcodecindex), core::mem::transmute(&pszname), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&dwsize)).into() } - unsafe extern "system" fn GetCodecEnumerationSetting(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCodecInfo3_Impl, - { + unsafe extern "system" fn GetCodecEnumerationSetting(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID, dwcodecindex: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCodecInfo3_Impl::GetCodecEnumerationSetting(this, core::mem::transmute_copy(&guidtype), core::mem::transmute_copy(&dwcodecindex), core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdwsize)).into() } @@ -807,19 +612,13 @@ impl IWMCodecInfo3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMCredentialCallback_Impl: Sized { +pub trait IWMCredentialCallback_Impl: Sized + windows_core::IUnknownImpl { fn AcquireCredentials(&self, pwszrealm: &windows_core::PCWSTR, pwszsite: &windows_core::PCWSTR, pwszuser: windows_core::PWSTR, cchuser: u32, pwszpassword: windows_core::PWSTR, cchpassword: u32, hrstatus: windows_core::HRESULT, pdwflags: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMCredentialCallback {} impl IWMCredentialCallback_Vtbl { - pub const fn new() -> IWMCredentialCallback_Vtbl - where - Identity: IWMCredentialCallback_Impl, - { - unsafe extern "system" fn AcquireCredentials(this: *mut core::ffi::c_void, pwszrealm: windows_core::PCWSTR, pwszsite: windows_core::PCWSTR, pwszuser: windows_core::PWSTR, cchuser: u32, pwszpassword: windows_core::PWSTR, cchpassword: u32, hrstatus: windows_core::HRESULT, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IWMCredentialCallback_Impl, - { + pub const fn new() -> IWMCredentialCallback_Vtbl { + unsafe extern "system" fn AcquireCredentials(this: *mut core::ffi::c_void, pwszrealm: windows_core::PCWSTR, pwszsite: windows_core::PCWSTR, pwszuser: windows_core::PWSTR, cchuser: u32, pwszpassword: windows_core::PWSTR, cchpassword: u32, hrstatus: windows_core::HRESULT, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMCredentialCallback_Impl::AcquireCredentials(this, core::mem::transmute(&pwszrealm), core::mem::transmute(&pwszsite), core::mem::transmute_copy(&pwszuser), core::mem::transmute_copy(&cchuser), core::mem::transmute_copy(&pwszpassword), core::mem::transmute_copy(&cchpassword), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&pdwflags)).into() } @@ -829,19 +628,13 @@ impl IWMCredentialCallback_Vtbl { iid == &::IID } } -pub trait IWMDRMEditor_Impl: Sized { +pub trait IWMDRMEditor_Impl: Sized + windows_core::IUnknownImpl { fn GetDRMProperty(&self, pwstrname: &windows_core::PCWSTR, pdwtype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMDRMEditor {} impl IWMDRMEditor_Vtbl { - pub const fn new() -> IWMDRMEditor_Vtbl - where - Identity: IWMDRMEditor_Impl, - { - unsafe extern "system" fn GetDRMProperty(this: *mut core::ffi::c_void, pwstrname: windows_core::PCWSTR, pdwtype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMDRMEditor_Impl, - { + pub const fn new() -> IWMDRMEditor_Vtbl { + unsafe extern "system" fn GetDRMProperty(this: *mut core::ffi::c_void, pwstrname: windows_core::PCWSTR, pdwtype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMEditor_Impl::GetDRMProperty(this, core::mem::transmute(&pwstrname), core::mem::transmute_copy(&pdwtype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pcblength)).into() } @@ -851,27 +644,18 @@ impl IWMDRMEditor_Vtbl { iid == &::IID } } -pub trait IWMDRMMessageParser_Impl: Sized { +pub trait IWMDRMMessageParser_Impl: Sized + windows_core::IUnknownImpl { fn ParseRegistrationReqMsg(&self, pbregistrationreqmsg: *const u8, cbregistrationreqmsg: u32, ppdevicecert: *mut Option, pdeviceserialnumber: *mut DRM_VAL16) -> windows_core::Result<()>; fn ParseLicenseRequestMsg(&self, pblicenserequestmsg: *const u8, cblicenserequestmsg: u32, ppdevicecert: *mut Option, pdeviceserialnumber: *mut DRM_VAL16, pbstraction: *mut windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMDRMMessageParser {} impl IWMDRMMessageParser_Vtbl { - pub const fn new() -> IWMDRMMessageParser_Vtbl - where - Identity: IWMDRMMessageParser_Impl, - { - unsafe extern "system" fn ParseRegistrationReqMsg(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 - where - Identity: IWMDRMMessageParser_Impl, - { + pub const fn new() -> IWMDRMMessageParser_Vtbl { + unsafe extern "system" fn ParseRegistrationReqMsg(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMMessageParser_Impl::ParseRegistrationReqMsg(this, 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(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::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMDRMMessageParser_Impl, - { + unsafe extern "system" fn ParseLicenseRequestMsg(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::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMMessageParser_Impl::ParseLicenseRequestMsg(this, 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() } @@ -885,7 +669,7 @@ impl IWMDRMMessageParser_Vtbl { iid == &::IID } } -pub trait IWMDRMReader_Impl: Sized { +pub trait IWMDRMReader_Impl: Sized + windows_core::IUnknownImpl { fn AcquireLicense(&self, dwflags: u32) -> windows_core::Result<()>; fn CancelLicenseAcquisition(&self) -> windows_core::Result<()>; fn Individualize(&self, dwflags: u32) -> windows_core::Result<()>; @@ -897,63 +681,36 @@ pub trait IWMDRMReader_Impl: Sized { } impl windows_core::RuntimeName for IWMDRMReader {} impl IWMDRMReader_Vtbl { - pub const fn new() -> IWMDRMReader_Vtbl - where - Identity: IWMDRMReader_Impl, - { - unsafe extern "system" fn AcquireLicense(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IWMDRMReader_Impl, - { + pub const fn new() -> IWMDRMReader_Vtbl { + unsafe extern "system" fn AcquireLicense(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader_Impl::AcquireLicense(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn CancelLicenseAcquisition(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDRMReader_Impl, - { + unsafe extern "system" fn CancelLicenseAcquisition(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader_Impl::CancelLicenseAcquisition(this).into() } - unsafe extern "system" fn Individualize(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IWMDRMReader_Impl, - { + unsafe extern "system" fn Individualize(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader_Impl::Individualize(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn CancelIndividualization(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDRMReader_Impl, - { + unsafe extern "system" fn CancelIndividualization(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader_Impl::CancelIndividualization(this).into() } - unsafe extern "system" fn MonitorLicenseAcquisition(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDRMReader_Impl, - { + unsafe extern "system" fn MonitorLicenseAcquisition(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader_Impl::MonitorLicenseAcquisition(this).into() } - unsafe extern "system" fn CancelMonitorLicenseAcquisition(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDRMReader_Impl, - { + unsafe extern "system" fn CancelMonitorLicenseAcquisition(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader_Impl::CancelMonitorLicenseAcquisition(this).into() } - unsafe extern "system" fn SetDRMProperty(this: *mut core::ffi::c_void, pwstrname: windows_core::PCWSTR, dwtype: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT - where - Identity: IWMDRMReader_Impl, - { + unsafe extern "system" fn SetDRMProperty(this: *mut core::ffi::c_void, pwstrname: windows_core::PCWSTR, dwtype: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader_Impl::SetDRMProperty(this, core::mem::transmute(&pwstrname), core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cblength)).into() } - unsafe extern "system" fn GetDRMProperty(this: *mut core::ffi::c_void, pwstrname: windows_core::PCWSTR, pdwtype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMDRMReader_Impl, - { + unsafe extern "system" fn GetDRMProperty(this: *mut core::ffi::c_void, pwstrname: windows_core::PCWSTR, pdwtype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader_Impl::GetDRMProperty(this, core::mem::transmute(&pwstrname), core::mem::transmute_copy(&pdwtype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pcblength)).into() } @@ -981,35 +738,20 @@ pub trait IWMDRMReader2_Impl: Sized + IWMDRMReader_Impl { } impl windows_core::RuntimeName for IWMDRMReader2 {} impl IWMDRMReader2_Vtbl { - pub const fn new() -> IWMDRMReader2_Vtbl - where - Identity: IWMDRMReader2_Impl, - { - unsafe extern "system" fn SetEvaluateOutputLevelLicenses(this: *mut core::ffi::c_void, fevaluate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMDRMReader2_Impl, - { + pub const fn new() -> IWMDRMReader2_Vtbl { + unsafe extern "system" fn SetEvaluateOutputLevelLicenses(this: *mut core::ffi::c_void, fevaluate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader2_Impl::SetEvaluateOutputLevelLicenses(this, core::mem::transmute_copy(&fevaluate)).into() } - unsafe extern "system" fn GetPlayOutputLevels(this: *mut core::ffi::c_void, pplayopl: *mut DRM_PLAY_OPL, pcblength: *mut u32, pdwminappcompliancelevel: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDRMReader2_Impl, - { + unsafe extern "system" fn GetPlayOutputLevels(this: *mut core::ffi::c_void, pplayopl: *mut DRM_PLAY_OPL, pcblength: *mut u32, pdwminappcompliancelevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader2_Impl::GetPlayOutputLevels(this, core::mem::transmute_copy(&pplayopl), core::mem::transmute_copy(&pcblength), core::mem::transmute_copy(&pdwminappcompliancelevel)).into() } - unsafe extern "system" fn GetCopyOutputLevels(this: *mut core::ffi::c_void, pcopyopl: *mut DRM_COPY_OPL, pcblength: *mut u32, pdwminappcompliancelevel: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDRMReader2_Impl, - { + unsafe extern "system" fn GetCopyOutputLevels(this: *mut core::ffi::c_void, pcopyopl: *mut DRM_COPY_OPL, pcblength: *mut u32, pdwminappcompliancelevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader2_Impl::GetCopyOutputLevels(this, core::mem::transmute_copy(&pcopyopl), core::mem::transmute_copy(&pcblength), core::mem::transmute_copy(&pdwminappcompliancelevel)).into() } - unsafe extern "system" fn TryNextLicense(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDRMReader2_Impl, - { + unsafe extern "system" fn TryNextLicense(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader2_Impl::TryNextLicense(this).into() } @@ -1030,14 +772,8 @@ pub trait IWMDRMReader3_Impl: Sized + IWMDRMReader2_Impl { } impl windows_core::RuntimeName for IWMDRMReader3 {} impl IWMDRMReader3_Vtbl { - pub const fn new() -> IWMDRMReader3_Vtbl - where - Identity: IWMDRMReader3_Impl, - { - unsafe extern "system" fn GetInclusionList(this: *mut core::ffi::c_void, ppguids: *mut *mut windows_core::GUID, pcguids: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDRMReader3_Impl, - { + pub const fn new() -> IWMDRMReader3_Vtbl { + unsafe extern "system" fn GetInclusionList(this: *mut core::ffi::c_void, ppguids: *mut *mut windows_core::GUID, pcguids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader3_Impl::GetInclusionList(this, core::mem::transmute_copy(&ppguids), core::mem::transmute_copy(&pcguids)).into() } @@ -1047,19 +783,13 @@ impl IWMDRMReader3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMDRMTranscryptionManager_Impl: Sized { +pub trait IWMDRMTranscryptionManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateTranscryptor(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWMDRMTranscryptionManager {} impl IWMDRMTranscryptionManager_Vtbl { - pub const fn new() -> IWMDRMTranscryptionManager_Vtbl - where - Identity: IWMDRMTranscryptionManager_Impl, - { - unsafe extern "system" fn CreateTranscryptor(this: *mut core::ffi::c_void, pptranscryptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDRMTranscryptionManager_Impl, - { + pub const fn new() -> IWMDRMTranscryptionManager_Vtbl { + unsafe extern "system" fn CreateTranscryptor(this: *mut core::ffi::c_void, pptranscryptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDRMTranscryptionManager_Impl::CreateTranscryptor(this) { Ok(ok__) => { @@ -1075,7 +805,7 @@ impl IWMDRMTranscryptionManager_Vtbl { iid == &::IID } } -pub trait IWMDRMTranscryptor_Impl: Sized { +pub trait IWMDRMTranscryptor_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, bstrfilename: &windows_core::BSTR, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut Option, pcallback: Option<&IWMStatusCallback>, 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<()>; @@ -1083,35 +813,20 @@ pub trait IWMDRMTranscryptor_Impl: Sized { } impl windows_core::RuntimeName for IWMDRMTranscryptor {} impl IWMDRMTranscryptor_Vtbl { - pub const fn new() -> IWMDRMTranscryptor_Vtbl - where - Identity: IWMDRMTranscryptor_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, 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 - where - Identity: IWMDRMTranscryptor_Impl, - { + pub const fn new() -> IWMDRMTranscryptor_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMTranscryptor_Impl::Initialize(this, core::mem::transmute(&bstrfilename), core::mem::transmute_copy(&pblicenserequestmsg), core::mem::transmute_copy(&cblicenserequestmsg), core::mem::transmute_copy(&pplicenseresponsemsg), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, hnstime: u64) -> windows_core::HRESULT - where - Identity: IWMDRMTranscryptor_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, hnstime: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMTranscryptor_Impl::Seek(this, core::mem::transmute_copy(&hnstime)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbdata: *const u8, pcbdata: *const u32) -> windows_core::HRESULT - where - Identity: IWMDRMTranscryptor_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pbdata: *const u8, pcbdata: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMTranscryptor_Impl::Read(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&pcbdata)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDRMTranscryptor_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMTranscryptor_Impl::Close(this).into() } @@ -1135,28 +850,16 @@ pub trait IWMDRMTranscryptor2_Impl: Sized + IWMDRMTranscryptor_Impl { } impl windows_core::RuntimeName for IWMDRMTranscryptor2 {} impl IWMDRMTranscryptor2_Vtbl { - pub const fn new() -> IWMDRMTranscryptor2_Vtbl - where - Identity: IWMDRMTranscryptor2_Impl, - { - unsafe extern "system" fn SeekEx(this: *mut core::ffi::c_void, cnsstarttime: u64, cnsduration: u64, flrate: f32, fincludefileheader: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMDRMTranscryptor2_Impl, - { + pub const fn new() -> IWMDRMTranscryptor2_Vtbl { + unsafe extern "system" fn SeekEx(this: *mut core::ffi::c_void, cnsstarttime: u64, cnsduration: u64, flrate: f32, fincludefileheader: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMTranscryptor2_Impl::SeekEx(this, core::mem::transmute_copy(&cnsstarttime), core::mem::transmute_copy(&cnsduration), core::mem::transmute_copy(&flrate), core::mem::transmute_copy(&fincludefileheader)).into() } - unsafe extern "system" fn ZeroAdjustTimestamps(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMDRMTranscryptor2_Impl, - { + unsafe extern "system" fn ZeroAdjustTimestamps(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMTranscryptor2_Impl::ZeroAdjustTimestamps(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn GetSeekStartTime(this: *mut core::ffi::c_void, pcnstime: *mut u64) -> windows_core::HRESULT - where - Identity: IWMDRMTranscryptor2_Impl, - { + unsafe extern "system" fn GetSeekStartTime(this: *mut core::ffi::c_void, pcnstime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDRMTranscryptor2_Impl::GetSeekStartTime(this) { Ok(ok__) => { @@ -1166,10 +869,7 @@ impl IWMDRMTranscryptor2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, pcnsduration: *mut u64) -> windows_core::HRESULT - where - Identity: IWMDRMTranscryptor2_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, pcnsduration: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDRMTranscryptor2_Impl::GetDuration(this) { Ok(ok__) => { @@ -1191,7 +891,7 @@ impl IWMDRMTranscryptor2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMDRMWriter_Impl: Sized { +pub trait IWMDRMWriter_Impl: Sized + windows_core::IUnknownImpl { fn GenerateKeySeed(&self, pwszkeyseed: windows_core::PWSTR, pcwchlength: *mut u32) -> windows_core::Result<()>; fn GenerateKeyID(&self, pwszkeyid: windows_core::PWSTR, pcwchlength: *mut u32) -> windows_core::Result<()>; fn GenerateSigningKeyPair(&self, pwszprivkey: windows_core::PWSTR, pcwchprivkeylength: *mut u32, pwszpubkey: windows_core::PWSTR, pcwchpubkeylength: *mut u32) -> windows_core::Result<()>; @@ -1199,35 +899,20 @@ pub trait IWMDRMWriter_Impl: Sized { } impl windows_core::RuntimeName for IWMDRMWriter {} impl IWMDRMWriter_Vtbl { - pub const fn new() -> IWMDRMWriter_Vtbl - where - Identity: IWMDRMWriter_Impl, - { - unsafe extern "system" fn GenerateKeySeed(this: *mut core::ffi::c_void, pwszkeyseed: windows_core::PWSTR, pcwchlength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDRMWriter_Impl, - { + pub const fn new() -> IWMDRMWriter_Vtbl { + unsafe extern "system" fn GenerateKeySeed(this: *mut core::ffi::c_void, pwszkeyseed: windows_core::PWSTR, pcwchlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMWriter_Impl::GenerateKeySeed(this, core::mem::transmute_copy(&pwszkeyseed), core::mem::transmute_copy(&pcwchlength)).into() } - unsafe extern "system" fn GenerateKeyID(this: *mut core::ffi::c_void, pwszkeyid: windows_core::PWSTR, pcwchlength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDRMWriter_Impl, - { + unsafe extern "system" fn GenerateKeyID(this: *mut core::ffi::c_void, pwszkeyid: windows_core::PWSTR, pcwchlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMWriter_Impl::GenerateKeyID(this, core::mem::transmute_copy(&pwszkeyid), core::mem::transmute_copy(&pcwchlength)).into() } - unsafe extern "system" fn GenerateSigningKeyPair(this: *mut core::ffi::c_void, pwszprivkey: windows_core::PWSTR, pcwchprivkeylength: *mut u32, pwszpubkey: windows_core::PWSTR, pcwchpubkeylength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDRMWriter_Impl, - { + unsafe extern "system" fn GenerateSigningKeyPair(this: *mut core::ffi::c_void, pwszprivkey: windows_core::PWSTR, pcwchprivkeylength: *mut u32, pwszpubkey: windows_core::PWSTR, pcwchpubkeylength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMWriter_Impl::GenerateSigningKeyPair(this, core::mem::transmute_copy(&pwszprivkey), core::mem::transmute_copy(&pcwchprivkeylength), core::mem::transmute_copy(&pwszpubkey), core::mem::transmute_copy(&pcwchpubkeylength)).into() } - unsafe extern "system" fn SetDRMAttribute(this: *mut core::ffi::c_void, wstreamnum: u16, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT - where - Identity: IWMDRMWriter_Impl, - { + unsafe extern "system" fn SetDRMAttribute(this: *mut core::ffi::c_void, wstreamnum: u16, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMWriter_Impl::SetDRMAttribute(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute(&pszname), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cblength)).into() } @@ -1248,14 +933,8 @@ pub trait IWMDRMWriter2_Impl: Sized + IWMDRMWriter_Impl { } impl windows_core::RuntimeName for IWMDRMWriter2 {} impl IWMDRMWriter2_Vtbl { - pub const fn new() -> IWMDRMWriter2_Vtbl - where - Identity: IWMDRMWriter2_Impl, - { - unsafe extern "system" fn SetWMDRMNetEncryption(this: *mut core::ffi::c_void, fsamplesencrypted: super::super::Foundation::BOOL, pbkeyid: *const u8, cbkeyid: u32) -> windows_core::HRESULT - where - Identity: IWMDRMWriter2_Impl, - { + pub const fn new() -> IWMDRMWriter2_Vtbl { + unsafe extern "system" fn SetWMDRMNetEncryption(this: *mut core::ffi::c_void, fsamplesencrypted: super::super::Foundation::BOOL, pbkeyid: *const u8, cbkeyid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMWriter2_Impl::SetWMDRMNetEncryption(this, core::mem::transmute_copy(&fsamplesencrypted), core::mem::transmute_copy(&pbkeyid), core::mem::transmute_copy(&cbkeyid)).into() } @@ -1270,14 +949,8 @@ pub trait IWMDRMWriter3_Impl: Sized + IWMDRMWriter2_Impl { } impl windows_core::RuntimeName for IWMDRMWriter3 {} impl IWMDRMWriter3_Vtbl { - pub const fn new() -> IWMDRMWriter3_Vtbl - where - Identity: IWMDRMWriter3_Impl, - { - unsafe extern "system" fn SetProtectStreamSamples(this: *mut core::ffi::c_void, pimportinitstruct: *const WMDRM_IMPORT_INIT_STRUCT) -> windows_core::HRESULT - where - Identity: IWMDRMWriter3_Impl, - { + pub const fn new() -> IWMDRMWriter3_Vtbl { + unsafe extern "system" fn SetProtectStreamSamples(this: *mut core::ffi::c_void, pimportinitstruct: *const WMDRM_IMPORT_INIT_STRUCT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMWriter3_Impl::SetProtectStreamSamples(this, core::mem::transmute_copy(&pimportinitstruct)).into() } @@ -1287,7 +960,7 @@ impl IWMDRMWriter3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMDeviceRegistration_Impl: Sized { +pub trait IWMDeviceRegistration_Impl: Sized + windows_core::IUnknownImpl { fn RegisterDevice(&self, dwregistertype: u32, pbcertificate: *const u8, cbcertificate: u32, serialnumber: &DRM_VAL16) -> windows_core::Result; fn UnregisterDevice(&self, dwregistertype: u32, pbcertificate: *const u8, cbcertificate: u32, serialnumber: &DRM_VAL16) -> windows_core::Result<()>; fn GetRegistrationStats(&self, dwregistertype: u32) -> windows_core::Result; @@ -1297,14 +970,8 @@ pub trait IWMDeviceRegistration_Impl: Sized { } impl windows_core::RuntimeName for IWMDeviceRegistration {} impl IWMDeviceRegistration_Vtbl { - pub const fn new() -> IWMDeviceRegistration_Vtbl - where - Identity: IWMDeviceRegistration_Impl, - { - unsafe extern "system" fn RegisterDevice(this: *mut core::ffi::c_void, dwregistertype: u32, pbcertificate: *const u8, cbcertificate: u32, serialnumber: DRM_VAL16, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDeviceRegistration_Impl, - { + pub const fn new() -> IWMDeviceRegistration_Vtbl { + unsafe extern "system" fn RegisterDevice(this: *mut core::ffi::c_void, dwregistertype: u32, pbcertificate: *const u8, cbcertificate: u32, serialnumber: DRM_VAL16, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDeviceRegistration_Impl::RegisterDevice(this, core::mem::transmute_copy(&dwregistertype), core::mem::transmute_copy(&pbcertificate), core::mem::transmute_copy(&cbcertificate), core::mem::transmute(&serialnumber)) { Ok(ok__) => { @@ -1314,17 +981,11 @@ impl IWMDeviceRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterDevice(this: *mut core::ffi::c_void, dwregistertype: u32, pbcertificate: *const u8, cbcertificate: u32, serialnumber: DRM_VAL16) -> windows_core::HRESULT - where - Identity: IWMDeviceRegistration_Impl, - { + unsafe extern "system" fn UnregisterDevice(this: *mut core::ffi::c_void, dwregistertype: u32, pbcertificate: *const u8, cbcertificate: u32, serialnumber: DRM_VAL16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDeviceRegistration_Impl::UnregisterDevice(this, core::mem::transmute_copy(&dwregistertype), core::mem::transmute_copy(&pbcertificate), core::mem::transmute_copy(&cbcertificate), core::mem::transmute(&serialnumber)).into() } - unsafe extern "system" fn GetRegistrationStats(this: *mut core::ffi::c_void, dwregistertype: u32, pcregistereddevices: *mut u32) -> windows_core::HRESULT - where - Identity: IWMDeviceRegistration_Impl, - { + unsafe extern "system" fn GetRegistrationStats(this: *mut core::ffi::c_void, dwregistertype: u32, pcregistereddevices: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDeviceRegistration_Impl::GetRegistrationStats(this, core::mem::transmute_copy(&dwregistertype)) { Ok(ok__) => { @@ -1334,10 +995,7 @@ impl IWMDeviceRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFirstRegisteredDevice(this: *mut core::ffi::c_void, dwregistertype: u32, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDeviceRegistration_Impl, - { + unsafe extern "system" fn GetFirstRegisteredDevice(this: *mut core::ffi::c_void, dwregistertype: u32, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDeviceRegistration_Impl::GetFirstRegisteredDevice(this, core::mem::transmute_copy(&dwregistertype)) { Ok(ok__) => { @@ -1347,10 +1005,7 @@ impl IWMDeviceRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextRegisteredDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDeviceRegistration_Impl, - { + unsafe extern "system" fn GetNextRegisteredDevice(this: *mut core::ffi::c_void, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDeviceRegistration_Impl::GetNextRegisteredDevice(this) { Ok(ok__) => { @@ -1360,10 +1015,7 @@ impl IWMDeviceRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRegisteredDeviceByID(this: *mut core::ffi::c_void, dwregistertype: u32, pbcertificate: *const u8, cbcertificate: u32, serialnumber: DRM_VAL16, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMDeviceRegistration_Impl, - { + unsafe extern "system" fn GetRegisteredDeviceByID(this: *mut core::ffi::c_void, dwregistertype: u32, pbcertificate: *const u8, cbcertificate: u32, serialnumber: DRM_VAL16, ppdevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDeviceRegistration_Impl::GetRegisteredDeviceByID(this, core::mem::transmute_copy(&dwregistertype), core::mem::transmute_copy(&pbcertificate), core::mem::transmute_copy(&cbcertificate), core::mem::transmute(&serialnumber)) { Ok(ok__) => { @@ -1387,19 +1039,13 @@ impl IWMDeviceRegistration_Vtbl { iid == &::IID } } -pub trait IWMGetSecureChannel_Impl: Sized { +pub trait IWMGetSecureChannel_Impl: Sized + windows_core::IUnknownImpl { fn GetPeerSecureChannelInterface(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWMGetSecureChannel {} impl IWMGetSecureChannel_Vtbl { - pub const fn new() -> IWMGetSecureChannel_Vtbl - where - Identity: IWMGetSecureChannel_Impl, - { - unsafe extern "system" fn GetPeerSecureChannelInterface(this: *mut core::ffi::c_void, pppeer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMGetSecureChannel_Impl, - { + pub const fn new() -> IWMGetSecureChannel_Vtbl { + unsafe extern "system" fn GetPeerSecureChannelInterface(this: *mut core::ffi::c_void, pppeer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMGetSecureChannel_Impl::GetPeerSecureChannelInterface(this) { Ok(ok__) => { @@ -1415,7 +1061,7 @@ impl IWMGetSecureChannel_Vtbl { iid == &::IID } } -pub trait IWMHeaderInfo_Impl: Sized { +pub trait IWMHeaderInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetAttributeCount(&self, wstreamnum: u16) -> windows_core::Result; fn GetAttributeByIndex(&self, windex: u16, pwstreamnum: *mut u16, pwszname: windows_core::PWSTR, pcchnamelen: *mut u16, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()>; fn GetAttributeByName(&self, pwstreamnum: *mut u16, pszname: &windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()>; @@ -1431,14 +1077,8 @@ pub trait IWMHeaderInfo_Impl: Sized { } impl windows_core::RuntimeName for IWMHeaderInfo {} impl IWMHeaderInfo_Vtbl { - pub const fn new() -> IWMHeaderInfo_Vtbl - where - Identity: IWMHeaderInfo_Impl, - { - unsafe extern "system" fn GetAttributeCount(this: *mut core::ffi::c_void, wstreamnum: u16, pcattributes: *mut u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + pub const fn new() -> IWMHeaderInfo_Vtbl { + unsafe extern "system" fn GetAttributeCount(this: *mut core::ffi::c_void, wstreamnum: u16, pcattributes: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMHeaderInfo_Impl::GetAttributeCount(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -1448,31 +1088,19 @@ impl IWMHeaderInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeByIndex(this: *mut core::ffi::c_void, windex: u16, pwstreamnum: *mut u16, pwszname: windows_core::PWSTR, pcchnamelen: *mut u16, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn GetAttributeByIndex(this: *mut core::ffi::c_void, windex: u16, pwstreamnum: *mut u16, pwszname: windows_core::PWSTR, pcchnamelen: *mut u16, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo_Impl::GetAttributeByIndex(this, core::mem::transmute_copy(&windex), core::mem::transmute_copy(&pwstreamnum), core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&pcchnamelen), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn GetAttributeByName(this: *mut core::ffi::c_void, pwstreamnum: *mut u16, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn GetAttributeByName(this: *mut core::ffi::c_void, pwstreamnum: *mut u16, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo_Impl::GetAttributeByName(this, core::mem::transmute_copy(&pwstreamnum), core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn SetAttribute(this: *mut core::ffi::c_void, wstreamnum: u16, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn SetAttribute(this: *mut core::ffi::c_void, wstreamnum: u16, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo_Impl::SetAttribute(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute(&pszname), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cblength)).into() } - unsafe extern "system" fn GetMarkerCount(this: *mut core::ffi::c_void, pcmarkers: *mut u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn GetMarkerCount(this: *mut core::ffi::c_void, pcmarkers: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMHeaderInfo_Impl::GetMarkerCount(this) { Ok(ok__) => { @@ -1482,31 +1110,19 @@ impl IWMHeaderInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMarker(this: *mut core::ffi::c_void, windex: u16, pwszmarkername: windows_core::PWSTR, pcchmarkernamelen: *mut u16, pcnsmarkertime: *mut u64) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn GetMarker(this: *mut core::ffi::c_void, windex: u16, pwszmarkername: windows_core::PWSTR, pcchmarkernamelen: *mut u16, pcnsmarkertime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo_Impl::GetMarker(this, core::mem::transmute_copy(&windex), core::mem::transmute_copy(&pwszmarkername), core::mem::transmute_copy(&pcchmarkernamelen), core::mem::transmute_copy(&pcnsmarkertime)).into() } - unsafe extern "system" fn AddMarker(this: *mut core::ffi::c_void, pwszmarkername: windows_core::PCWSTR, cnsmarkertime: u64) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn AddMarker(this: *mut core::ffi::c_void, pwszmarkername: windows_core::PCWSTR, cnsmarkertime: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo_Impl::AddMarker(this, core::mem::transmute(&pwszmarkername), core::mem::transmute_copy(&cnsmarkertime)).into() } - unsafe extern "system" fn RemoveMarker(this: *mut core::ffi::c_void, windex: u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn RemoveMarker(this: *mut core::ffi::c_void, windex: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo_Impl::RemoveMarker(this, core::mem::transmute_copy(&windex)).into() } - unsafe extern "system" fn GetScriptCount(this: *mut core::ffi::c_void, pcscripts: *mut u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn GetScriptCount(this: *mut core::ffi::c_void, pcscripts: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMHeaderInfo_Impl::GetScriptCount(this) { Ok(ok__) => { @@ -1516,24 +1132,15 @@ impl IWMHeaderInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScript(this: *mut core::ffi::c_void, windex: u16, pwsztype: windows_core::PWSTR, pcchtypelen: *mut u16, pwszcommand: windows_core::PWSTR, pcchcommandlen: *mut u16, pcnsscripttime: *mut u64) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn GetScript(this: *mut core::ffi::c_void, windex: u16, pwsztype: windows_core::PWSTR, pcchtypelen: *mut u16, pwszcommand: windows_core::PWSTR, pcchcommandlen: *mut u16, pcnsscripttime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo_Impl::GetScript(this, core::mem::transmute_copy(&windex), core::mem::transmute_copy(&pwsztype), core::mem::transmute_copy(&pcchtypelen), core::mem::transmute_copy(&pwszcommand), core::mem::transmute_copy(&pcchcommandlen), core::mem::transmute_copy(&pcnsscripttime)).into() } - unsafe extern "system" fn AddScript(this: *mut core::ffi::c_void, pwsztype: windows_core::PCWSTR, pwszcommand: windows_core::PCWSTR, cnsscripttime: u64) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn AddScript(this: *mut core::ffi::c_void, pwsztype: windows_core::PCWSTR, pwszcommand: windows_core::PCWSTR, cnsscripttime: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo_Impl::AddScript(this, core::mem::transmute(&pwsztype), core::mem::transmute(&pwszcommand), core::mem::transmute_copy(&cnsscripttime)).into() } - unsafe extern "system" fn RemoveScript(this: *mut core::ffi::c_void, windex: u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo_Impl, - { + unsafe extern "system" fn RemoveScript(this: *mut core::ffi::c_void, windex: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo_Impl::RemoveScript(this, core::mem::transmute_copy(&windex)).into() } @@ -1563,14 +1170,8 @@ pub trait IWMHeaderInfo2_Impl: Sized + IWMHeaderInfo_Impl { } impl windows_core::RuntimeName for IWMHeaderInfo2 {} impl IWMHeaderInfo2_Vtbl { - pub const fn new() -> IWMHeaderInfo2_Vtbl - where - Identity: IWMHeaderInfo2_Impl, - { - unsafe extern "system" fn GetCodecInfoCount(this: *mut core::ffi::c_void, pccodecinfos: *mut u32) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo2_Impl, - { + pub const fn new() -> IWMHeaderInfo2_Vtbl { + unsafe extern "system" fn GetCodecInfoCount(this: *mut core::ffi::c_void, pccodecinfos: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMHeaderInfo2_Impl::GetCodecInfoCount(this) { Ok(ok__) => { @@ -1580,10 +1181,7 @@ impl IWMHeaderInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCodecInfo(this: *mut core::ffi::c_void, windex: u32, pcchname: *mut u16, pwszname: windows_core::PWSTR, pcchdescription: *mut u16, pwszdescription: windows_core::PWSTR, pcodectype: *mut WMT_CODEC_INFO_TYPE, pcbcodecinfo: *mut u16, pbcodecinfo: *mut u8) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo2_Impl, - { + unsafe extern "system" fn GetCodecInfo(this: *mut core::ffi::c_void, windex: u32, pcchname: *mut u16, pwszname: windows_core::PWSTR, pcchdescription: *mut u16, pwszdescription: windows_core::PWSTR, pcodectype: *mut WMT_CODEC_INFO_TYPE, pcbcodecinfo: *mut u16, pbcodecinfo: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo2_Impl::GetCodecInfo(this, core::mem::transmute_copy(&windex), core::mem::transmute_copy(&pcchname), core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&pcchdescription), core::mem::transmute_copy(&pwszdescription), core::mem::transmute_copy(&pcodectype), core::mem::transmute_copy(&pcbcodecinfo), core::mem::transmute_copy(&pbcodecinfo)).into() } @@ -1608,14 +1206,8 @@ pub trait IWMHeaderInfo3_Impl: Sized + IWMHeaderInfo2_Impl { } impl windows_core::RuntimeName for IWMHeaderInfo3 {} impl IWMHeaderInfo3_Vtbl { - pub const fn new() -> IWMHeaderInfo3_Vtbl - where - Identity: IWMHeaderInfo3_Impl, - { - unsafe extern "system" fn GetAttributeCountEx(this: *mut core::ffi::c_void, wstreamnum: u16, pcattributes: *mut u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo3_Impl, - { + pub const fn new() -> IWMHeaderInfo3_Vtbl { + unsafe extern "system" fn GetAttributeCountEx(this: *mut core::ffi::c_void, wstreamnum: u16, pcattributes: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMHeaderInfo3_Impl::GetAttributeCountEx(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -1625,45 +1217,27 @@ impl IWMHeaderInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeIndices(this: *mut core::ffi::c_void, wstreamnum: u16, pwszname: windows_core::PCWSTR, pwlangindex: *const u16, pwindices: *mut u16, pwcount: *mut u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo3_Impl, - { + unsafe extern "system" fn GetAttributeIndices(this: *mut core::ffi::c_void, wstreamnum: u16, pwszname: windows_core::PCWSTR, pwlangindex: *const u16, pwindices: *mut u16, pwcount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo3_Impl::GetAttributeIndices(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute(&pwszname), core::mem::transmute_copy(&pwlangindex), core::mem::transmute_copy(&pwindices), core::mem::transmute_copy(&pwcount)).into() } - unsafe extern "system" fn GetAttributeByIndexEx(this: *mut core::ffi::c_void, wstreamnum: u16, windex: u16, pwszname: windows_core::PWSTR, pwnamelen: *mut u16, ptype: *mut WMT_ATTR_DATATYPE, pwlangindex: *mut u16, pvalue: *mut u8, pdwdatalength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo3_Impl, - { + unsafe extern "system" fn GetAttributeByIndexEx(this: *mut core::ffi::c_void, wstreamnum: u16, windex: u16, pwszname: windows_core::PWSTR, pwnamelen: *mut u16, ptype: *mut WMT_ATTR_DATATYPE, pwlangindex: *mut u16, pvalue: *mut u8, pdwdatalength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo3_Impl::GetAttributeByIndexEx(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&windex), core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&pwnamelen), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pwlangindex), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdwdatalength)).into() } - unsafe extern "system" fn ModifyAttribute(this: *mut core::ffi::c_void, wstreamnum: u16, windex: u16, r#type: WMT_ATTR_DATATYPE, wlangindex: u16, pvalue: *const u8, dwlength: u32) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo3_Impl, - { + unsafe extern "system" fn ModifyAttribute(this: *mut core::ffi::c_void, wstreamnum: u16, windex: u16, r#type: WMT_ATTR_DATATYPE, wlangindex: u16, pvalue: *const u8, dwlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo3_Impl::ModifyAttribute(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&windex), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&wlangindex), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&dwlength)).into() } - unsafe extern "system" fn AddAttribute(this: *mut core::ffi::c_void, wstreamnum: u16, pszname: windows_core::PCWSTR, pwindex: *mut u16, r#type: WMT_ATTR_DATATYPE, wlangindex: u16, pvalue: *const u8, dwlength: u32) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo3_Impl, - { + unsafe extern "system" fn AddAttribute(this: *mut core::ffi::c_void, wstreamnum: u16, pszname: windows_core::PCWSTR, pwindex: *mut u16, r#type: WMT_ATTR_DATATYPE, wlangindex: u16, pvalue: *const u8, dwlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo3_Impl::AddAttribute(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute(&pszname), core::mem::transmute_copy(&pwindex), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&wlangindex), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&dwlength)).into() } - unsafe extern "system" fn DeleteAttribute(this: *mut core::ffi::c_void, wstreamnum: u16, windex: u16) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo3_Impl, - { + unsafe extern "system" fn DeleteAttribute(this: *mut core::ffi::c_void, wstreamnum: u16, windex: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo3_Impl::DeleteAttribute(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&windex)).into() } - unsafe extern "system" fn AddCodecInfo(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pwszdescription: windows_core::PCWSTR, codectype: WMT_CODEC_INFO_TYPE, cbcodecinfo: u16, pbcodecinfo: *const u8) -> windows_core::HRESULT - where - Identity: IWMHeaderInfo3_Impl, - { + unsafe extern "system" fn AddCodecInfo(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, pwszdescription: windows_core::PCWSTR, codectype: WMT_CODEC_INFO_TYPE, cbcodecinfo: u16, pbcodecinfo: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMHeaderInfo3_Impl::AddCodecInfo(this, core::mem::transmute(&pwszname), core::mem::transmute(&pwszdescription), core::mem::transmute_copy(&codectype), core::mem::transmute_copy(&cbcodecinfo), core::mem::transmute_copy(&pbcodecinfo)).into() } @@ -1682,19 +1256,13 @@ impl IWMHeaderInfo3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMIStreamProps_Impl: Sized { +pub trait IWMIStreamProps_Impl: Sized + windows_core::IUnknownImpl { fn GetProperty(&self, pszname: &windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMIStreamProps {} impl IWMIStreamProps_Vtbl { - pub const fn new() -> IWMIStreamProps_Vtbl - where - Identity: IWMIStreamProps_Impl, - { - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMIStreamProps_Impl, - { + pub const fn new() -> IWMIStreamProps_Vtbl { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMIStreamProps_Impl::GetProperty(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdwsize)).into() } @@ -1704,20 +1272,14 @@ impl IWMIStreamProps_Vtbl { iid == &::IID } } -pub trait IWMImageInfo_Impl: Sized { +pub trait IWMImageInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetImageCount(&self) -> windows_core::Result; fn GetImage(&self, windex: u32, pcchmimetype: *mut u16, pwszmimetype: windows_core::PWSTR, pcchdescription: *mut u16, pwszdescription: windows_core::PWSTR, pimagetype: *mut u16, pcbimagedata: *mut u32, pbimagedata: *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMImageInfo {} impl IWMImageInfo_Vtbl { - pub const fn new() -> IWMImageInfo_Vtbl - where - Identity: IWMImageInfo_Impl, - { - unsafe extern "system" fn GetImageCount(this: *mut core::ffi::c_void, pcimages: *mut u32) -> windows_core::HRESULT - where - Identity: IWMImageInfo_Impl, - { + pub const fn new() -> IWMImageInfo_Vtbl { + unsafe extern "system" fn GetImageCount(this: *mut core::ffi::c_void, pcimages: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMImageInfo_Impl::GetImageCount(this) { Ok(ok__) => { @@ -1727,10 +1289,7 @@ impl IWMImageInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImage(this: *mut core::ffi::c_void, windex: u32, pcchmimetype: *mut u16, pwszmimetype: windows_core::PWSTR, pcchdescription: *mut u16, pwszdescription: windows_core::PWSTR, pimagetype: *mut u16, pcbimagedata: *mut u32, pbimagedata: *mut u8) -> windows_core::HRESULT - where - Identity: IWMImageInfo_Impl, - { + unsafe extern "system" fn GetImage(this: *mut core::ffi::c_void, windex: u32, pcchmimetype: *mut u16, pwszmimetype: windows_core::PWSTR, pcchdescription: *mut u16, pwszdescription: windows_core::PWSTR, pimagetype: *mut u16, pcbimagedata: *mut u32, pbimagedata: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMImageInfo_Impl::GetImage(this, core::mem::transmute_copy(&windex), core::mem::transmute_copy(&pcchmimetype), core::mem::transmute_copy(&pwszmimetype), core::mem::transmute_copy(&pcchdescription), core::mem::transmute_copy(&pwszdescription), core::mem::transmute_copy(&pimagetype), core::mem::transmute_copy(&pcbimagedata), core::mem::transmute_copy(&pbimagedata)).into() } @@ -1744,27 +1303,18 @@ impl IWMImageInfo_Vtbl { iid == &::IID } } -pub trait IWMIndexer_Impl: Sized { +pub trait IWMIndexer_Impl: Sized + windows_core::IUnknownImpl { fn StartIndexing(&self, pwszurl: &windows_core::PCWSTR, pcallback: Option<&IWMStatusCallback>, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; fn Cancel(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMIndexer {} impl IWMIndexer_Vtbl { - pub const fn new() -> IWMIndexer_Vtbl - where - Identity: IWMIndexer_Impl, - { - unsafe extern "system" fn StartIndexing(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMIndexer_Impl, - { + pub const fn new() -> IWMIndexer_Vtbl { + unsafe extern "system" fn StartIndexing(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMIndexer_Impl::StartIndexing(this, core::mem::transmute(&pwszurl), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMIndexer_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMIndexer_Impl::Cancel(this).into() } @@ -1783,14 +1333,8 @@ pub trait IWMIndexer2_Impl: Sized + IWMIndexer_Impl { } impl windows_core::RuntimeName for IWMIndexer2 {} impl IWMIndexer2_Vtbl { - pub const fn new() -> IWMIndexer2_Vtbl - where - Identity: IWMIndexer2_Impl, - { - unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, wstreamnum: u16, nindexertype: WMT_INDEXER_TYPE, pvinterval: *const core::ffi::c_void, pvindextype: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMIndexer2_Impl, - { + pub const fn new() -> IWMIndexer2_Vtbl { + unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, wstreamnum: u16, nindexertype: WMT_INDEXER_TYPE, pvinterval: *const core::ffi::c_void, pvindextype: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMIndexer2_Impl::Configure(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&nindexertype), core::mem::transmute_copy(&pvinterval), core::mem::transmute_copy(&pvindextype)).into() } @@ -1806,21 +1350,12 @@ pub trait IWMInputMediaProps_Impl: Sized + IWMMediaProps_Impl { } impl windows_core::RuntimeName for IWMInputMediaProps {} impl IWMInputMediaProps_Vtbl { - pub const fn new() -> IWMInputMediaProps_Vtbl - where - Identity: IWMInputMediaProps_Impl, - { - unsafe extern "system" fn GetConnectionName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u16) -> windows_core::HRESULT - where - Identity: IWMInputMediaProps_Impl, - { + pub const fn new() -> IWMInputMediaProps_Vtbl { + unsafe extern "system" fn GetConnectionName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMInputMediaProps_Impl::GetConnectionName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&pcchname)).into() } - unsafe extern "system" fn GetGroupName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u16) -> windows_core::HRESULT - where - Identity: IWMInputMediaProps_Impl, - { + unsafe extern "system" fn GetGroupName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMInputMediaProps_Impl::GetGroupName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&pcchname)).into() } @@ -1834,21 +1369,15 @@ impl IWMInputMediaProps_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMLanguageList_Impl: Sized { +pub trait IWMLanguageList_Impl: Sized + windows_core::IUnknownImpl { fn GetLanguageCount(&self) -> windows_core::Result; fn GetLanguageDetails(&self, windex: u16, pwszlanguagestring: windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> windows_core::Result<()>; fn AddLanguageByRFC1766String(&self, pwszlanguagestring: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IWMLanguageList {} impl IWMLanguageList_Vtbl { - pub const fn new() -> IWMLanguageList_Vtbl - where - Identity: IWMLanguageList_Impl, - { - unsafe extern "system" fn GetLanguageCount(this: *mut core::ffi::c_void, pwcount: *mut u16) -> windows_core::HRESULT - where - Identity: IWMLanguageList_Impl, - { + pub const fn new() -> IWMLanguageList_Vtbl { + unsafe extern "system" fn GetLanguageCount(this: *mut core::ffi::c_void, pwcount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMLanguageList_Impl::GetLanguageCount(this) { Ok(ok__) => { @@ -1858,17 +1387,11 @@ impl IWMLanguageList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageDetails(this: *mut core::ffi::c_void, windex: u16, pwszlanguagestring: windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMLanguageList_Impl, - { + unsafe extern "system" fn GetLanguageDetails(this: *mut core::ffi::c_void, windex: u16, pwszlanguagestring: windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMLanguageList_Impl::GetLanguageDetails(this, core::mem::transmute_copy(&windex), core::mem::transmute_copy(&pwszlanguagestring), core::mem::transmute_copy(&pcchlanguagestringlength)).into() } - unsafe extern "system" fn AddLanguageByRFC1766String(this: *mut core::ffi::c_void, pwszlanguagestring: windows_core::PCWSTR, pwindex: *mut u16) -> windows_core::HRESULT - where - Identity: IWMLanguageList_Impl, - { + unsafe extern "system" fn AddLanguageByRFC1766String(this: *mut core::ffi::c_void, pwszlanguagestring: windows_core::PCWSTR, pwindex: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMLanguageList_Impl::AddLanguageByRFC1766String(this, core::mem::transmute(&pwszlanguagestring)) { Ok(ok__) => { @@ -1889,27 +1412,18 @@ impl IWMLanguageList_Vtbl { iid == &::IID } } -pub trait IWMLicenseBackup_Impl: Sized { +pub trait IWMLicenseBackup_Impl: Sized + windows_core::IUnknownImpl { fn BackupLicenses(&self, dwflags: u32, pcallback: Option<&IWMStatusCallback>) -> windows_core::Result<()>; fn CancelLicenseBackup(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMLicenseBackup {} impl IWMLicenseBackup_Vtbl { - pub const fn new() -> IWMLicenseBackup_Vtbl - where - Identity: IWMLicenseBackup_Impl, - { - unsafe extern "system" fn BackupLicenses(this: *mut core::ffi::c_void, dwflags: u32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMLicenseBackup_Impl, - { + pub const fn new() -> IWMLicenseBackup_Vtbl { + unsafe extern "system" fn BackupLicenses(this: *mut core::ffi::c_void, dwflags: u32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMLicenseBackup_Impl::BackupLicenses(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn CancelLicenseBackup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMLicenseBackup_Impl, - { + unsafe extern "system" fn CancelLicenseBackup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMLicenseBackup_Impl::CancelLicenseBackup(this).into() } @@ -1923,27 +1437,18 @@ impl IWMLicenseBackup_Vtbl { iid == &::IID } } -pub trait IWMLicenseRestore_Impl: Sized { +pub trait IWMLicenseRestore_Impl: Sized + windows_core::IUnknownImpl { fn RestoreLicenses(&self, dwflags: u32, pcallback: Option<&IWMStatusCallback>) -> windows_core::Result<()>; fn CancelLicenseRestore(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMLicenseRestore {} impl IWMLicenseRestore_Vtbl { - pub const fn new() -> IWMLicenseRestore_Vtbl - where - Identity: IWMLicenseRestore_Impl, - { - unsafe extern "system" fn RestoreLicenses(this: *mut core::ffi::c_void, dwflags: u32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMLicenseRestore_Impl, - { + pub const fn new() -> IWMLicenseRestore_Vtbl { + unsafe extern "system" fn RestoreLicenses(this: *mut core::ffi::c_void, dwflags: u32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMLicenseRestore_Impl::RestoreLicenses(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn CancelLicenseRestore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMLicenseRestore_Impl, - { + unsafe extern "system" fn CancelLicenseRestore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMLicenseRestore_Impl::CancelLicenseRestore(this).into() } @@ -1957,27 +1462,18 @@ impl IWMLicenseRestore_Vtbl { iid == &::IID } } -pub trait IWMLicenseRevocationAgent_Impl: Sized { +pub trait IWMLicenseRevocationAgent_Impl: Sized + windows_core::IUnknownImpl { fn GetLRBChallenge(&self, pmachineid: *const u8, dwmachineidlength: u32, pchallenge: *const u8, dwchallengelength: u32, pchallengeoutput: *mut u8, pdwchallengeoutputlength: *mut u32) -> windows_core::Result<()>; fn ProcessLRB(&self, psignedlrb: *const u8, dwsignedlrblength: u32, psignedack: *mut u8, pdwsignedacklength: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMLicenseRevocationAgent {} impl IWMLicenseRevocationAgent_Vtbl { - pub const fn new() -> IWMLicenseRevocationAgent_Vtbl - where - Identity: IWMLicenseRevocationAgent_Impl, - { - unsafe extern "system" fn GetLRBChallenge(this: *mut core::ffi::c_void, pmachineid: *const u8, dwmachineidlength: u32, pchallenge: *const u8, dwchallengelength: u32, pchallengeoutput: *mut u8, pdwchallengeoutputlength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMLicenseRevocationAgent_Impl, - { + pub const fn new() -> IWMLicenseRevocationAgent_Vtbl { + unsafe extern "system" fn GetLRBChallenge(this: *mut core::ffi::c_void, pmachineid: *const u8, dwmachineidlength: u32, pchallenge: *const u8, dwchallengelength: u32, pchallengeoutput: *mut u8, pdwchallengeoutputlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMLicenseRevocationAgent_Impl::GetLRBChallenge(this, core::mem::transmute_copy(&pmachineid), core::mem::transmute_copy(&dwmachineidlength), core::mem::transmute_copy(&pchallenge), core::mem::transmute_copy(&dwchallengelength), core::mem::transmute_copy(&pchallengeoutput), core::mem::transmute_copy(&pdwchallengeoutputlength)).into() } - unsafe extern "system" fn ProcessLRB(this: *mut core::ffi::c_void, psignedlrb: *const u8, dwsignedlrblength: u32, psignedack: *mut u8, pdwsignedacklength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMLicenseRevocationAgent_Impl, - { + unsafe extern "system" fn ProcessLRB(this: *mut core::ffi::c_void, psignedlrb: *const u8, dwsignedlrblength: u32, psignedack: *mut u8, pdwsignedacklength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMLicenseRevocationAgent_Impl::ProcessLRB(this, core::mem::transmute_copy(&psignedlrb), core::mem::transmute_copy(&dwsignedlrblength), core::mem::transmute_copy(&psignedack), core::mem::transmute_copy(&pdwsignedacklength)).into() } @@ -1991,21 +1487,15 @@ impl IWMLicenseRevocationAgent_Vtbl { iid == &::IID } } -pub trait IWMMediaProps_Impl: Sized { +pub trait IWMMediaProps_Impl: Sized + windows_core::IUnknownImpl { fn GetType(&self) -> windows_core::Result; fn GetMediaType(&self, ptype: *mut WM_MEDIA_TYPE, pcbtype: *mut u32) -> windows_core::Result<()>; fn SetMediaType(&self, ptype: *const WM_MEDIA_TYPE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMMediaProps {} impl IWMMediaProps_Vtbl { - pub const fn new() -> IWMMediaProps_Vtbl - where - Identity: IWMMediaProps_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMMediaProps_Impl, - { + pub const fn new() -> IWMMediaProps_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMMediaProps_Impl::GetType(this) { Ok(ok__) => { @@ -2015,17 +1505,11 @@ impl IWMMediaProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, ptype: *mut WM_MEDIA_TYPE, pcbtype: *mut u32) -> windows_core::HRESULT - where - Identity: IWMMediaProps_Impl, - { + unsafe extern "system" fn GetMediaType(this: *mut core::ffi::c_void, ptype: *mut WM_MEDIA_TYPE, pcbtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMediaProps_Impl::GetMediaType(this, core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pcbtype)).into() } - unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, ptype: *const WM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IWMMediaProps_Impl, - { + unsafe extern "system" fn SetMediaType(this: *mut core::ffi::c_void, ptype: *const WM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMediaProps_Impl::SetMediaType(this, core::mem::transmute_copy(&ptype)).into() } @@ -2040,35 +1524,23 @@ impl IWMMediaProps_Vtbl { iid == &::IID } } -pub trait IWMMetadataEditor_Impl: Sized { +pub trait IWMMetadataEditor_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, pwszfilename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn Flush(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMMetadataEditor {} impl IWMMetadataEditor_Vtbl { - pub const fn new() -> IWMMetadataEditor_Vtbl - where - Identity: IWMMetadataEditor_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMMetadataEditor_Impl, - { + pub const fn new() -> IWMMetadataEditor_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMetadataEditor_Impl::Open(this, core::mem::transmute(&pwszfilename)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMMetadataEditor_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMetadataEditor_Impl::Close(this).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMMetadataEditor_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMetadataEditor_Impl::Flush(this).into() } @@ -2088,14 +1560,8 @@ pub trait IWMMetadataEditor2_Impl: Sized + IWMMetadataEditor_Impl { } impl windows_core::RuntimeName for IWMMetadataEditor2 {} impl IWMMetadataEditor2_Vtbl { - pub const fn new() -> IWMMetadataEditor2_Vtbl - where - Identity: IWMMetadataEditor2_Impl, - { - unsafe extern "system" fn OpenEx(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR, dwdesiredaccess: u32, dwsharemode: u32) -> windows_core::HRESULT - where - Identity: IWMMetadataEditor2_Impl, - { + pub const fn new() -> IWMMetadataEditor2_Vtbl { + unsafe extern "system" fn OpenEx(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR, dwdesiredaccess: u32, dwsharemode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMetadataEditor2_Impl::OpenEx(this, core::mem::transmute(&pwszfilename), core::mem::transmute_copy(&dwdesiredaccess), core::mem::transmute_copy(&dwsharemode)).into() } @@ -2111,14 +1577,8 @@ pub trait IWMMutualExclusion_Impl: Sized + IWMStreamList_Impl { } impl windows_core::RuntimeName for IWMMutualExclusion {} impl IWMMutualExclusion_Vtbl { - pub const fn new() -> IWMMutualExclusion_Vtbl - where - Identity: IWMMutualExclusion_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion_Impl, - { + pub const fn new() -> IWMMutualExclusion_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguidtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMMutualExclusion_Impl::GetType(this) { Ok(ok__) => { @@ -2128,10 +1588,7 @@ impl IWMMutualExclusion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, guidtype: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMutualExclusion_Impl::SetType(this, core::mem::transmute_copy(&guidtype)).into() } @@ -2155,28 +1612,16 @@ pub trait IWMMutualExclusion2_Impl: Sized + IWMMutualExclusion_Impl { } impl windows_core::RuntimeName for IWMMutualExclusion2 {} impl IWMMutualExclusion2_Vtbl { - pub const fn new() -> IWMMutualExclusion2_Vtbl - where - Identity: IWMMutualExclusion2_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u16) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion2_Impl, - { + pub const fn new() -> IWMMutualExclusion2_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMutualExclusion2_Impl::GetName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&pcchname)).into() } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion2_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMutualExclusion2_Impl::SetName(this, core::mem::transmute(&pwszname)).into() } - unsafe extern "system" fn GetRecordCount(this: *mut core::ffi::c_void, pwrecordcount: *mut u16) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion2_Impl, - { + unsafe extern "system" fn GetRecordCount(this: *mut core::ffi::c_void, pwrecordcount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMMutualExclusion2_Impl::GetRecordCount(this) { Ok(ok__) => { @@ -2186,52 +1631,31 @@ impl IWMMutualExclusion2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddRecord(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion2_Impl, - { + unsafe extern "system" fn AddRecord(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMutualExclusion2_Impl::AddRecord(this).into() } - unsafe extern "system" fn RemoveRecord(this: *mut core::ffi::c_void, wrecordnumber: u16) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion2_Impl, - { + unsafe extern "system" fn RemoveRecord(this: *mut core::ffi::c_void, wrecordnumber: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMutualExclusion2_Impl::RemoveRecord(this, core::mem::transmute_copy(&wrecordnumber)).into() } - unsafe extern "system" fn GetRecordName(this: *mut core::ffi::c_void, wrecordnumber: u16, pwszrecordname: windows_core::PWSTR, pcchrecordname: *mut u16) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion2_Impl, - { + unsafe extern "system" fn GetRecordName(this: *mut core::ffi::c_void, wrecordnumber: u16, pwszrecordname: windows_core::PWSTR, pcchrecordname: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMutualExclusion2_Impl::GetRecordName(this, core::mem::transmute_copy(&wrecordnumber), core::mem::transmute_copy(&pwszrecordname), core::mem::transmute_copy(&pcchrecordname)).into() } - unsafe extern "system" fn SetRecordName(this: *mut core::ffi::c_void, wrecordnumber: u16, pwszrecordname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion2_Impl, - { + unsafe extern "system" fn SetRecordName(this: *mut core::ffi::c_void, wrecordnumber: u16, pwszrecordname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMutualExclusion2_Impl::SetRecordName(this, core::mem::transmute_copy(&wrecordnumber), core::mem::transmute(&pwszrecordname)).into() } - unsafe extern "system" fn GetStreamsForRecord(this: *mut core::ffi::c_void, wrecordnumber: u16, pwstreamnumarray: *mut u16, pcstreams: *mut u16) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion2_Impl, - { + unsafe extern "system" fn GetStreamsForRecord(this: *mut core::ffi::c_void, wrecordnumber: u16, pwstreamnumarray: *mut u16, pcstreams: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMutualExclusion2_Impl::GetStreamsForRecord(this, core::mem::transmute_copy(&wrecordnumber), core::mem::transmute_copy(&pwstreamnumarray), core::mem::transmute_copy(&pcstreams)).into() } - unsafe extern "system" fn AddStreamForRecord(this: *mut core::ffi::c_void, wrecordnumber: u16, wstreamnumber: u16) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion2_Impl, - { + unsafe extern "system" fn AddStreamForRecord(this: *mut core::ffi::c_void, wrecordnumber: u16, wstreamnumber: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMutualExclusion2_Impl::AddStreamForRecord(this, core::mem::transmute_copy(&wrecordnumber), core::mem::transmute_copy(&wstreamnumber)).into() } - unsafe extern "system" fn RemoveStreamForRecord(this: *mut core::ffi::c_void, wrecordnumber: u16, wstreamnumber: u16) -> windows_core::HRESULT - where - Identity: IWMMutualExclusion2_Impl, - { + unsafe extern "system" fn RemoveStreamForRecord(this: *mut core::ffi::c_void, wrecordnumber: u16, wstreamnumber: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMMutualExclusion2_Impl::RemoveStreamForRecord(this, core::mem::transmute_copy(&wrecordnumber), core::mem::transmute_copy(&wstreamnumber)).into() } @@ -2259,21 +1683,12 @@ pub trait IWMOutputMediaProps_Impl: Sized + IWMMediaProps_Impl { } impl windows_core::RuntimeName for IWMOutputMediaProps {} impl IWMOutputMediaProps_Vtbl { - pub const fn new() -> IWMOutputMediaProps_Vtbl - where - Identity: IWMOutputMediaProps_Impl, - { - unsafe extern "system" fn GetStreamGroupName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u16) -> windows_core::HRESULT - where - Identity: IWMOutputMediaProps_Impl, - { + pub const fn new() -> IWMOutputMediaProps_Vtbl { + unsafe extern "system" fn GetStreamGroupName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMOutputMediaProps_Impl::GetStreamGroupName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&pcchname)).into() } - unsafe extern "system" fn GetConnectionName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u16) -> windows_core::HRESULT - where - Identity: IWMOutputMediaProps_Impl, - { + unsafe extern "system" fn GetConnectionName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMOutputMediaProps_Impl::GetConnectionName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&pcchname)).into() } @@ -2287,20 +1702,14 @@ impl IWMOutputMediaProps_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMPacketSize_Impl: Sized { +pub trait IWMPacketSize_Impl: Sized + windows_core::IUnknownImpl { fn GetMaxPacketSize(&self) -> windows_core::Result; fn SetMaxPacketSize(&self, dwmaxpacketsize: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPacketSize {} impl IWMPacketSize_Vtbl { - pub const fn new() -> IWMPacketSize_Vtbl - where - Identity: IWMPacketSize_Impl, - { - unsafe extern "system" fn GetMaxPacketSize(this: *mut core::ffi::c_void, pdwmaxpacketsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPacketSize_Impl, - { + pub const fn new() -> IWMPacketSize_Vtbl { + unsafe extern "system" fn GetMaxPacketSize(this: *mut core::ffi::c_void, pdwmaxpacketsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPacketSize_Impl::GetMaxPacketSize(this) { Ok(ok__) => { @@ -2310,10 +1719,7 @@ impl IWMPacketSize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxPacketSize(this: *mut core::ffi::c_void, dwmaxpacketsize: u32) -> windows_core::HRESULT - where - Identity: IWMPacketSize_Impl, - { + unsafe extern "system" fn SetMaxPacketSize(this: *mut core::ffi::c_void, dwmaxpacketsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPacketSize_Impl::SetMaxPacketSize(this, core::mem::transmute_copy(&dwmaxpacketsize)).into() } @@ -2333,14 +1739,8 @@ pub trait IWMPacketSize2_Impl: Sized + IWMPacketSize_Impl { } impl windows_core::RuntimeName for IWMPacketSize2 {} impl IWMPacketSize2_Vtbl { - pub const fn new() -> IWMPacketSize2_Vtbl - where - Identity: IWMPacketSize2_Impl, - { - unsafe extern "system" fn GetMinPacketSize(this: *mut core::ffi::c_void, pdwminpacketsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPacketSize2_Impl, - { + pub const fn new() -> IWMPacketSize2_Vtbl { + unsafe extern "system" fn GetMinPacketSize(this: *mut core::ffi::c_void, pdwminpacketsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPacketSize2_Impl::GetMinPacketSize(this) { Ok(ok__) => { @@ -2350,10 +1750,7 @@ impl IWMPacketSize2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinPacketSize(this: *mut core::ffi::c_void, dwminpacketsize: u32) -> windows_core::HRESULT - where - Identity: IWMPacketSize2_Impl, - { + unsafe extern "system" fn SetMinPacketSize(this: *mut core::ffi::c_void, dwminpacketsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPacketSize2_Impl::SetMinPacketSize(this, core::mem::transmute_copy(&dwminpacketsize)).into() } @@ -2367,19 +1764,13 @@ impl IWMPacketSize2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMPlayerHook_Impl: Sized { +pub trait IWMPlayerHook_Impl: Sized + windows_core::IUnknownImpl { fn PreDecode(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMPlayerHook {} impl IWMPlayerHook_Vtbl { - pub const fn new() -> IWMPlayerHook_Vtbl - where - Identity: IWMPlayerHook_Impl, - { - unsafe extern "system" fn PreDecode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPlayerHook_Impl, - { + pub const fn new() -> IWMPlayerHook_Vtbl { + unsafe extern "system" fn PreDecode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPlayerHook_Impl::PreDecode(this).into() } @@ -2389,19 +1780,13 @@ impl IWMPlayerHook_Vtbl { iid == &::IID } } -pub trait IWMPlayerTimestampHook_Impl: Sized { +pub trait IWMPlayerTimestampHook_Impl: Sized + windows_core::IUnknownImpl { fn MapTimestamp(&self, rtin: i64) -> windows_core::Result; } impl windows_core::RuntimeName for IWMPlayerTimestampHook {} impl IWMPlayerTimestampHook_Vtbl { - pub const fn new() -> IWMPlayerTimestampHook_Vtbl - where - Identity: IWMPlayerTimestampHook_Impl, - { - unsafe extern "system" fn MapTimestamp(this: *mut core::ffi::c_void, rtin: i64, prtout: *mut i64) -> windows_core::HRESULT - where - Identity: IWMPlayerTimestampHook_Impl, - { + pub const fn new() -> IWMPlayerTimestampHook_Vtbl { + unsafe extern "system" fn MapTimestamp(this: *mut core::ffi::c_void, rtin: i64, prtout: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMPlayerTimestampHook_Impl::MapTimestamp(this, core::mem::transmute_copy(&rtin)) { Ok(ok__) => { @@ -2417,7 +1802,7 @@ impl IWMPlayerTimestampHook_Vtbl { iid == &::IID } } -pub trait IWMProfile_Impl: Sized { +pub trait IWMProfile_Impl: Sized + windows_core::IUnknownImpl { fn GetVersion(&self) -> windows_core::Result; fn GetName(&self, pwszname: windows_core::PWSTR, pcchname: *mut u32) -> windows_core::Result<()>; fn SetName(&self, pwszname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -2439,14 +1824,8 @@ pub trait IWMProfile_Impl: Sized { } impl windows_core::RuntimeName for IWMProfile {} impl IWMProfile_Vtbl { - pub const fn new() -> IWMProfile_Vtbl - where - Identity: IWMProfile_Impl, - { - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pdwversion: *mut WMT_VERSION) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + pub const fn new() -> IWMProfile_Vtbl { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pdwversion: *mut WMT_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile_Impl::GetVersion(this) { Ok(ok__) => { @@ -2456,38 +1835,23 @@ impl IWMProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u32) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pwszname: windows_core::PWSTR, pcchname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile_Impl::GetName(this, core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&pcchname)).into() } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile_Impl::SetName(this, core::mem::transmute(&pwszname)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pwszdescription: windows_core::PWSTR, pcchdescription: *mut u32) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pwszdescription: windows_core::PWSTR, pcchdescription: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile_Impl::GetDescription(this, core::mem::transmute_copy(&pwszdescription), core::mem::transmute_copy(&pcchdescription)).into() } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pwszdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pwszdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile_Impl::SetDescription(this, core::mem::transmute(&pwszdescription)).into() } - unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcstreams: *mut u32) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn GetStreamCount(this: *mut core::ffi::c_void, pcstreams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile_Impl::GetStreamCount(this) { Ok(ok__) => { @@ -2497,10 +1861,7 @@ impl IWMProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, dwstreamindex: u32, ppconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, dwstreamindex: u32, ppconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile_Impl::GetStream(this, core::mem::transmute_copy(&dwstreamindex)) { Ok(ok__) => { @@ -2510,10 +1871,7 @@ impl IWMProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamByNumber(this: *mut core::ffi::c_void, wstreamnum: u16, ppconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn GetStreamByNumber(this: *mut core::ffi::c_void, wstreamnum: u16, ppconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile_Impl::GetStreamByNumber(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -2523,38 +1881,23 @@ impl IWMProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, pconfig: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, pconfig: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile_Impl::RemoveStream(this, windows_core::from_raw_borrowed(&pconfig)).into() } - unsafe extern "system" fn RemoveStreamByNumber(this: *mut core::ffi::c_void, wstreamnum: u16) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn RemoveStreamByNumber(this: *mut core::ffi::c_void, wstreamnum: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile_Impl::RemoveStreamByNumber(this, core::mem::transmute_copy(&wstreamnum)).into() } - unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, pconfig: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, pconfig: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile_Impl::AddStream(this, windows_core::from_raw_borrowed(&pconfig)).into() } - unsafe extern "system" fn ReconfigStream(this: *mut core::ffi::c_void, pconfig: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn ReconfigStream(this: *mut core::ffi::c_void, pconfig: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile_Impl::ReconfigStream(this, windows_core::from_raw_borrowed(&pconfig)).into() } - unsafe extern "system" fn CreateNewStream(this: *mut core::ffi::c_void, guidstreamtype: *const windows_core::GUID, ppconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn CreateNewStream(this: *mut core::ffi::c_void, guidstreamtype: *const windows_core::GUID, ppconfig: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile_Impl::CreateNewStream(this, core::mem::transmute_copy(&guidstreamtype)) { Ok(ok__) => { @@ -2564,10 +1907,7 @@ impl IWMProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMutualExclusionCount(this: *mut core::ffi::c_void, pcme: *mut u32) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn GetMutualExclusionCount(this: *mut core::ffi::c_void, pcme: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile_Impl::GetMutualExclusionCount(this) { Ok(ok__) => { @@ -2577,10 +1917,7 @@ impl IWMProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMutualExclusion(this: *mut core::ffi::c_void, dwmeindex: u32, ppme: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn GetMutualExclusion(this: *mut core::ffi::c_void, dwmeindex: u32, ppme: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile_Impl::GetMutualExclusion(this, core::mem::transmute_copy(&dwmeindex)) { Ok(ok__) => { @@ -2590,24 +1927,15 @@ impl IWMProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveMutualExclusion(this: *mut core::ffi::c_void, pme: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn RemoveMutualExclusion(this: *mut core::ffi::c_void, pme: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile_Impl::RemoveMutualExclusion(this, windows_core::from_raw_borrowed(&pme)).into() } - unsafe extern "system" fn AddMutualExclusion(this: *mut core::ffi::c_void, pme: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn AddMutualExclusion(this: *mut core::ffi::c_void, pme: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile_Impl::AddMutualExclusion(this, windows_core::from_raw_borrowed(&pme)).into() } - unsafe extern "system" fn CreateNewMutualExclusion(this: *mut core::ffi::c_void, ppme: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile_Impl, - { + unsafe extern "system" fn CreateNewMutualExclusion(this: *mut core::ffi::c_void, ppme: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile_Impl::CreateNewMutualExclusion(this) { Ok(ok__) => { @@ -2648,14 +1976,8 @@ pub trait IWMProfile2_Impl: Sized + IWMProfile_Impl { } impl windows_core::RuntimeName for IWMProfile2 {} impl IWMProfile2_Vtbl { - pub const fn new() -> IWMProfile2_Vtbl - where - Identity: IWMProfile2_Impl, - { - unsafe extern "system" fn GetProfileID(this: *mut core::ffi::c_void, pguidid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMProfile2_Impl, - { + pub const fn new() -> IWMProfile2_Vtbl { + unsafe extern "system" fn GetProfileID(this: *mut core::ffi::c_void, pguidid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile2_Impl::GetProfileID(this) { Ok(ok__) => { @@ -2687,14 +2009,8 @@ pub trait IWMProfile3_Impl: Sized + IWMProfile2_Impl { } impl windows_core::RuntimeName for IWMProfile3 {} impl IWMProfile3_Vtbl { - pub const fn new() -> IWMProfile3_Vtbl - where - Identity: IWMProfile3_Impl, - { - unsafe extern "system" fn GetStorageFormat(this: *mut core::ffi::c_void, pnstorageformat: *mut WMT_STORAGE_FORMAT) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + pub const fn new() -> IWMProfile3_Vtbl { + unsafe extern "system" fn GetStorageFormat(this: *mut core::ffi::c_void, pnstorageformat: *mut WMT_STORAGE_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile3_Impl::GetStorageFormat(this) { Ok(ok__) => { @@ -2704,17 +2020,11 @@ impl IWMProfile3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStorageFormat(this: *mut core::ffi::c_void, nstorageformat: WMT_STORAGE_FORMAT) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn SetStorageFormat(this: *mut core::ffi::c_void, nstorageformat: WMT_STORAGE_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile3_Impl::SetStorageFormat(this, core::mem::transmute_copy(&nstorageformat)).into() } - unsafe extern "system" fn GetBandwidthSharingCount(this: *mut core::ffi::c_void, pcbs: *mut u32) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn GetBandwidthSharingCount(this: *mut core::ffi::c_void, pcbs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile3_Impl::GetBandwidthSharingCount(this) { Ok(ok__) => { @@ -2724,10 +2034,7 @@ impl IWMProfile3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBandwidthSharing(this: *mut core::ffi::c_void, dwbsindex: u32, ppbs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn GetBandwidthSharing(this: *mut core::ffi::c_void, dwbsindex: u32, ppbs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile3_Impl::GetBandwidthSharing(this, core::mem::transmute_copy(&dwbsindex)) { Ok(ok__) => { @@ -2737,24 +2044,15 @@ impl IWMProfile3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBandwidthSharing(this: *mut core::ffi::c_void, pbs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn RemoveBandwidthSharing(this: *mut core::ffi::c_void, pbs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile3_Impl::RemoveBandwidthSharing(this, windows_core::from_raw_borrowed(&pbs)).into() } - unsafe extern "system" fn AddBandwidthSharing(this: *mut core::ffi::c_void, pbs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn AddBandwidthSharing(this: *mut core::ffi::c_void, pbs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile3_Impl::AddBandwidthSharing(this, windows_core::from_raw_borrowed(&pbs)).into() } - unsafe extern "system" fn CreateNewBandwidthSharing(this: *mut core::ffi::c_void, ppbs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn CreateNewBandwidthSharing(this: *mut core::ffi::c_void, ppbs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile3_Impl::CreateNewBandwidthSharing(this) { Ok(ok__) => { @@ -2764,10 +2062,7 @@ impl IWMProfile3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamPrioritization(this: *mut core::ffi::c_void, ppsp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn GetStreamPrioritization(this: *mut core::ffi::c_void, ppsp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile3_Impl::GetStreamPrioritization(this) { Ok(ok__) => { @@ -2777,24 +2072,15 @@ impl IWMProfile3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamPrioritization(this: *mut core::ffi::c_void, psp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn SetStreamPrioritization(this: *mut core::ffi::c_void, psp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile3_Impl::SetStreamPrioritization(this, windows_core::from_raw_borrowed(&psp)).into() } - unsafe extern "system" fn RemoveStreamPrioritization(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn RemoveStreamPrioritization(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfile3_Impl::RemoveStreamPrioritization(this).into() } - unsafe extern "system" fn CreateNewStreamPrioritization(this: *mut core::ffi::c_void, ppsp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn CreateNewStreamPrioritization(this: *mut core::ffi::c_void, ppsp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile3_Impl::CreateNewStreamPrioritization(this) { Ok(ok__) => { @@ -2804,10 +2090,7 @@ impl IWMProfile3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpectedPacketCount(this: *mut core::ffi::c_void, msduration: u64, pcpackets: *mut u64) -> windows_core::HRESULT - where - Identity: IWMProfile3_Impl, - { + unsafe extern "system" fn GetExpectedPacketCount(this: *mut core::ffi::c_void, msduration: u64, pcpackets: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfile3_Impl::GetExpectedPacketCount(this, core::mem::transmute_copy(&msduration)) { Ok(ok__) => { @@ -2837,7 +2120,7 @@ impl IWMProfile3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMProfileManager_Impl: Sized { +pub trait IWMProfileManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateEmptyProfile(&self, dwversion: WMT_VERSION) -> windows_core::Result; fn LoadProfileByID(&self, guidprofile: *const windows_core::GUID) -> windows_core::Result; fn LoadProfileByData(&self, pwszprofile: &windows_core::PCWSTR) -> windows_core::Result; @@ -2847,14 +2130,8 @@ pub trait IWMProfileManager_Impl: Sized { } impl windows_core::RuntimeName for IWMProfileManager {} impl IWMProfileManager_Vtbl { - pub const fn new() -> IWMProfileManager_Vtbl - where - Identity: IWMProfileManager_Impl, - { - unsafe extern "system" fn CreateEmptyProfile(this: *mut core::ffi::c_void, dwversion: WMT_VERSION, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfileManager_Impl, - { + pub const fn new() -> IWMProfileManager_Vtbl { + unsafe extern "system" fn CreateEmptyProfile(this: *mut core::ffi::c_void, dwversion: WMT_VERSION, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfileManager_Impl::CreateEmptyProfile(this, core::mem::transmute_copy(&dwversion)) { Ok(ok__) => { @@ -2864,10 +2141,7 @@ impl IWMProfileManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadProfileByID(this: *mut core::ffi::c_void, guidprofile: *const windows_core::GUID, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfileManager_Impl, - { + unsafe extern "system" fn LoadProfileByID(this: *mut core::ffi::c_void, guidprofile: *const windows_core::GUID, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfileManager_Impl::LoadProfileByID(this, core::mem::transmute_copy(&guidprofile)) { Ok(ok__) => { @@ -2877,10 +2151,7 @@ impl IWMProfileManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadProfileByData(this: *mut core::ffi::c_void, pwszprofile: windows_core::PCWSTR, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfileManager_Impl, - { + unsafe extern "system" fn LoadProfileByData(this: *mut core::ffi::c_void, pwszprofile: windows_core::PCWSTR, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfileManager_Impl::LoadProfileByData(this, core::mem::transmute(&pwszprofile)) { Ok(ok__) => { @@ -2890,17 +2161,11 @@ impl IWMProfileManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveProfile(this: *mut core::ffi::c_void, piwmprofile: *mut core::ffi::c_void, pwszprofile: windows_core::PCWSTR, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IWMProfileManager_Impl, - { + unsafe extern "system" fn SaveProfile(this: *mut core::ffi::c_void, piwmprofile: *mut core::ffi::c_void, pwszprofile: windows_core::PCWSTR, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfileManager_Impl::SaveProfile(this, windows_core::from_raw_borrowed(&piwmprofile), core::mem::transmute(&pwszprofile), core::mem::transmute_copy(&pdwlength)).into() } - unsafe extern "system" fn GetSystemProfileCount(this: *mut core::ffi::c_void, pcprofiles: *mut u32) -> windows_core::HRESULT - where - Identity: IWMProfileManager_Impl, - { + unsafe extern "system" fn GetSystemProfileCount(this: *mut core::ffi::c_void, pcprofiles: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfileManager_Impl::GetSystemProfileCount(this) { Ok(ok__) => { @@ -2910,10 +2175,7 @@ impl IWMProfileManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadSystemProfile(this: *mut core::ffi::c_void, dwprofileindex: u32, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProfileManager_Impl, - { + unsafe extern "system" fn LoadSystemProfile(this: *mut core::ffi::c_void, dwprofileindex: u32, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMProfileManager_Impl::LoadSystemProfile(this, core::mem::transmute_copy(&dwprofileindex)) { Ok(ok__) => { @@ -2943,21 +2205,12 @@ pub trait IWMProfileManager2_Impl: Sized + IWMProfileManager_Impl { } impl windows_core::RuntimeName for IWMProfileManager2 {} impl IWMProfileManager2_Vtbl { - pub const fn new() -> IWMProfileManager2_Vtbl - where - Identity: IWMProfileManager2_Impl, - { - unsafe extern "system" fn GetSystemProfileVersion(this: *mut core::ffi::c_void, pdwversion: *mut WMT_VERSION) -> windows_core::HRESULT - where - Identity: IWMProfileManager2_Impl, - { + pub const fn new() -> IWMProfileManager2_Vtbl { + unsafe extern "system" fn GetSystemProfileVersion(this: *mut core::ffi::c_void, pdwversion: *mut WMT_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfileManager2_Impl::GetSystemProfileVersion(this, core::mem::transmute_copy(&pdwversion)).into() } - unsafe extern "system" fn SetSystemProfileVersion(this: *mut core::ffi::c_void, dwversion: WMT_VERSION) -> windows_core::HRESULT - where - Identity: IWMProfileManager2_Impl, - { + unsafe extern "system" fn SetSystemProfileVersion(this: *mut core::ffi::c_void, dwversion: WMT_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfileManager2_Impl::SetSystemProfileVersion(this, core::mem::transmute_copy(&dwversion)).into() } @@ -2971,27 +2224,18 @@ impl IWMProfileManager2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMProfileManagerLanguage_Impl: Sized { +pub trait IWMProfileManagerLanguage_Impl: Sized + windows_core::IUnknownImpl { fn GetUserLanguageID(&self, wlangid: *mut u16) -> windows_core::Result<()>; fn SetUserLanguageID(&self, wlangid: u16) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMProfileManagerLanguage {} impl IWMProfileManagerLanguage_Vtbl { - pub const fn new() -> IWMProfileManagerLanguage_Vtbl - where - Identity: IWMProfileManagerLanguage_Impl, - { - unsafe extern "system" fn GetUserLanguageID(this: *mut core::ffi::c_void, wlangid: *mut u16) -> windows_core::HRESULT - where - Identity: IWMProfileManagerLanguage_Impl, - { + pub const fn new() -> IWMProfileManagerLanguage_Vtbl { + unsafe extern "system" fn GetUserLanguageID(this: *mut core::ffi::c_void, wlangid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfileManagerLanguage_Impl::GetUserLanguageID(this, core::mem::transmute_copy(&wlangid)).into() } - unsafe extern "system" fn SetUserLanguageID(this: *mut core::ffi::c_void, wlangid: u16) -> windows_core::HRESULT - where - Identity: IWMProfileManagerLanguage_Impl, - { + unsafe extern "system" fn SetUserLanguageID(this: *mut core::ffi::c_void, wlangid: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProfileManagerLanguage_Impl::SetUserLanguageID(this, core::mem::transmute_copy(&wlangid)).into() } @@ -3005,7 +2249,7 @@ impl IWMProfileManagerLanguage_Vtbl { iid == &::IID } } -pub trait IWMPropertyVault_Impl: Sized { +pub trait IWMPropertyVault_Impl: Sized + windows_core::IUnknownImpl { fn GetPropertyCount(&self, pdwcount: *const u32) -> windows_core::Result<()>; fn GetPropertyByName(&self, pszname: &windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::Result<()>; fn SetProperty(&self, pszname: &windows_core::PCWSTR, ptype: WMT_ATTR_DATATYPE, pvalue: *const u8, dwsize: u32) -> windows_core::Result<()>; @@ -3015,49 +2259,28 @@ pub trait IWMPropertyVault_Impl: Sized { } impl windows_core::RuntimeName for IWMPropertyVault {} impl IWMPropertyVault_Vtbl { - pub const fn new() -> IWMPropertyVault_Vtbl - where - Identity: IWMPropertyVault_Impl, - { - unsafe extern "system" fn GetPropertyCount(this: *mut core::ffi::c_void, pdwcount: *const u32) -> windows_core::HRESULT - where - Identity: IWMPropertyVault_Impl, - { + pub const fn new() -> IWMPropertyVault_Vtbl { + unsafe extern "system" fn GetPropertyCount(this: *mut core::ffi::c_void, pdwcount: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPropertyVault_Impl::GetPropertyCount(this, core::mem::transmute_copy(&pdwcount)).into() } - unsafe extern "system" fn GetPropertyByName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPropertyVault_Impl, - { + unsafe extern "system" fn GetPropertyByName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPropertyVault_Impl::GetPropertyByName(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdwsize)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ptype: WMT_ATTR_DATATYPE, pvalue: *const u8, dwsize: u32) -> windows_core::HRESULT - where - Identity: IWMPropertyVault_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ptype: WMT_ATTR_DATATYPE, pvalue: *const u8, dwsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPropertyVault_Impl::SetProperty(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&dwsize)).into() } - unsafe extern "system" fn GetPropertyByIndex(this: *mut core::ffi::c_void, dwindex: u32, pszname: windows_core::PWSTR, pdwnamelen: *mut u32, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMPropertyVault_Impl, - { + unsafe extern "system" fn GetPropertyByIndex(this: *mut core::ffi::c_void, dwindex: u32, pszname: windows_core::PWSTR, pdwnamelen: *mut u32, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPropertyVault_Impl::GetPropertyByIndex(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&pdwnamelen), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pdwsize)).into() } - unsafe extern "system" fn CopyPropertiesFrom(this: *mut core::ffi::c_void, piwmpropertyvault: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPropertyVault_Impl, - { + unsafe extern "system" fn CopyPropertiesFrom(this: *mut core::ffi::c_void, piwmpropertyvault: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPropertyVault_Impl::CopyPropertiesFrom(this, windows_core::from_raw_borrowed(&piwmpropertyvault)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMPropertyVault_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPropertyVault_Impl::Clear(this).into() } @@ -3075,19 +2298,13 @@ impl IWMPropertyVault_Vtbl { iid == &::IID } } -pub trait IWMProximityDetection_Impl: Sized { +pub trait IWMProximityDetection_Impl: Sized + windows_core::IUnknownImpl { fn StartDetection(&self, pbregistrationmsg: *const u8, cbregistrationmsg: u32, pblocaladdress: *const u8, cblocaladdress: u32, dwextraportsallowed: u32, ppregistrationresponsemsg: *mut Option, pcallback: Option<&IWMStatusCallback>, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMProximityDetection {} impl IWMProximityDetection_Vtbl { - pub const fn new() -> IWMProximityDetection_Vtbl - where - Identity: IWMProximityDetection_Impl, - { - unsafe extern "system" fn StartDetection(this: *mut core::ffi::c_void, pbregistrationmsg: *const u8, cbregistrationmsg: u32, pblocaladdress: *const u8, cblocaladdress: u32, dwextraportsallowed: u32, ppregistrationresponsemsg: *mut *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMProximityDetection_Impl, - { + pub const fn new() -> IWMProximityDetection_Vtbl { + unsafe extern "system" fn StartDetection(this: *mut core::ffi::c_void, pbregistrationmsg: *const u8, cbregistrationmsg: u32, pblocaladdress: *const u8, cblocaladdress: u32, dwextraportsallowed: u32, ppregistrationresponsemsg: *mut *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMProximityDetection_Impl::StartDetection(this, core::mem::transmute_copy(&pbregistrationmsg), core::mem::transmute_copy(&cbregistrationmsg), core::mem::transmute_copy(&pblocaladdress), core::mem::transmute_copy(&cblocaladdress), core::mem::transmute_copy(&dwextraportsallowed), core::mem::transmute_copy(&ppregistrationresponsemsg), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&pvcontext)).into() } @@ -3097,7 +2314,7 @@ impl IWMProximityDetection_Vtbl { iid == &::IID } } -pub trait IWMReader_Impl: Sized { +pub trait IWMReader_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, pwszurl: &windows_core::PCWSTR, pcallback: Option<&IWMReaderCallback>, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn GetOutputCount(&self) -> windows_core::Result; @@ -3112,28 +2329,16 @@ pub trait IWMReader_Impl: Sized { } impl windows_core::RuntimeName for IWMReader {} impl IWMReader_Vtbl { - pub const fn new() -> IWMReader_Vtbl - where - Identity: IWMReader_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + pub const fn new() -> IWMReader_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReader_Impl::Open(this, core::mem::transmute(&pwszurl), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReader_Impl::Close(this).into() } - unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void, pcoutputs: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void, pcoutputs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReader_Impl::GetOutputCount(this) { Ok(ok__) => { @@ -3143,10 +2348,7 @@ impl IWMReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputProps(this: *mut core::ffi::c_void, dwoutputnum: u32, ppoutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + unsafe extern "system" fn GetOutputProps(this: *mut core::ffi::c_void, dwoutputnum: u32, ppoutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReader_Impl::GetOutputProps(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -3156,17 +2358,11 @@ impl IWMReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputProps(this: *mut core::ffi::c_void, dwoutputnum: u32, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + unsafe extern "system" fn SetOutputProps(this: *mut core::ffi::c_void, dwoutputnum: u32, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReader_Impl::SetOutputProps(this, core::mem::transmute_copy(&dwoutputnum), windows_core::from_raw_borrowed(&poutput)).into() } - unsafe extern "system" fn GetOutputFormatCount(this: *mut core::ffi::c_void, dwoutputnumber: u32, pcformats: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + unsafe extern "system" fn GetOutputFormatCount(this: *mut core::ffi::c_void, dwoutputnumber: u32, pcformats: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReader_Impl::GetOutputFormatCount(this, core::mem::transmute_copy(&dwoutputnumber)) { Ok(ok__) => { @@ -3176,10 +2372,7 @@ impl IWMReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputFormat(this: *mut core::ffi::c_void, dwoutputnumber: u32, dwformatnumber: u32, ppprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + unsafe extern "system" fn GetOutputFormat(this: *mut core::ffi::c_void, dwoutputnumber: u32, dwformatnumber: u32, ppprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReader_Impl::GetOutputFormat(this, core::mem::transmute_copy(&dwoutputnumber), core::mem::transmute_copy(&dwformatnumber)) { Ok(ok__) => { @@ -3189,31 +2382,19 @@ impl IWMReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, cnsstart: u64, cnsduration: u64, frate: f32, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, cnsstart: u64, cnsduration: u64, frate: f32, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReader_Impl::Start(this, core::mem::transmute_copy(&cnsstart), core::mem::transmute_copy(&cnsduration), core::mem::transmute_copy(&frate), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReader_Impl::Stop(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReader_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReader_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReader_Impl::Resume(this).into() } @@ -3236,27 +2417,18 @@ impl IWMReader_Vtbl { iid == &::IID } } -pub trait IWMReaderAccelerator_Impl: Sized { +pub trait IWMReaderAccelerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCodecInterface(&self, dwoutputnum: u32, riid: *const windows_core::GUID, ppvcodecinterface: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Notify(&self, dwoutputnum: u32, psubtype: *const WM_MEDIA_TYPE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMReaderAccelerator {} impl IWMReaderAccelerator_Vtbl { - pub const fn new() -> IWMReaderAccelerator_Vtbl - where - Identity: IWMReaderAccelerator_Impl, - { - unsafe extern "system" fn GetCodecInterface(this: *mut core::ffi::c_void, dwoutputnum: u32, riid: *const windows_core::GUID, ppvcodecinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAccelerator_Impl, - { + pub const fn new() -> IWMReaderAccelerator_Vtbl { + unsafe extern "system" fn GetCodecInterface(this: *mut core::ffi::c_void, dwoutputnum: u32, riid: *const windows_core::GUID, ppvcodecinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAccelerator_Impl::GetCodecInterface(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvcodecinterface)).into() } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, dwoutputnum: u32, psubtype: *const WM_MEDIA_TYPE) -> windows_core::HRESULT - where - Identity: IWMReaderAccelerator_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, dwoutputnum: u32, psubtype: *const WM_MEDIA_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAccelerator_Impl::Notify(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&psubtype)).into() } @@ -3270,7 +2442,7 @@ impl IWMReaderAccelerator_Vtbl { iid == &::IID } } -pub trait IWMReaderAdvanced_Impl: Sized { +pub trait IWMReaderAdvanced_Impl: Sized + windows_core::IUnknownImpl { fn SetUserProvidedClock(&self, fuserclock: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetUserProvidedClock(&self) -> windows_core::Result; fn DeliverTime(&self, cnstime: u64) -> windows_core::Result<()>; @@ -3294,21 +2466,12 @@ pub trait IWMReaderAdvanced_Impl: Sized { } impl windows_core::RuntimeName for IWMReaderAdvanced {} impl IWMReaderAdvanced_Vtbl { - pub const fn new() -> IWMReaderAdvanced_Vtbl - where - Identity: IWMReaderAdvanced_Impl, - { - unsafe extern "system" fn SetUserProvidedClock(this: *mut core::ffi::c_void, fuserclock: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + pub const fn new() -> IWMReaderAdvanced_Vtbl { + unsafe extern "system" fn SetUserProvidedClock(this: *mut core::ffi::c_void, fuserclock: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetUserProvidedClock(this, core::mem::transmute_copy(&fuserclock)).into() } - unsafe extern "system" fn GetUserProvidedClock(this: *mut core::ffi::c_void, pfuserclock: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn GetUserProvidedClock(this: *mut core::ffi::c_void, pfuserclock: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetUserProvidedClock(this) { Ok(ok__) => { @@ -3318,24 +2481,15 @@ impl IWMReaderAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeliverTime(this: *mut core::ffi::c_void, cnstime: u64) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn DeliverTime(this: *mut core::ffi::c_void, cnstime: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::DeliverTime(this, core::mem::transmute_copy(&cnstime)).into() } - unsafe extern "system" fn SetManualStreamSelection(this: *mut core::ffi::c_void, fselection: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn SetManualStreamSelection(this: *mut core::ffi::c_void, fselection: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetManualStreamSelection(this, core::mem::transmute_copy(&fselection)).into() } - unsafe extern "system" fn GetManualStreamSelection(this: *mut core::ffi::c_void, pfselection: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn GetManualStreamSelection(this: *mut core::ffi::c_void, pfselection: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetManualStreamSelection(this) { Ok(ok__) => { @@ -3345,17 +2499,11 @@ impl IWMReaderAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamsSelected(this: *mut core::ffi::c_void, cstreamcount: u16, pwstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn SetStreamsSelected(this: *mut core::ffi::c_void, cstreamcount: u16, pwstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetStreamsSelected(this, core::mem::transmute_copy(&cstreamcount), core::mem::transmute_copy(&pwstreamnumbers), core::mem::transmute_copy(&pselections)).into() } - unsafe extern "system" fn GetStreamSelected(this: *mut core::ffi::c_void, wstreamnum: u16, pselection: *mut WMT_STREAM_SELECTION) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn GetStreamSelected(this: *mut core::ffi::c_void, wstreamnum: u16, pselection: *mut WMT_STREAM_SELECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetStreamSelected(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -3365,17 +2513,11 @@ impl IWMReaderAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReceiveSelectionCallbacks(this: *mut core::ffi::c_void, fgetcallbacks: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn SetReceiveSelectionCallbacks(this: *mut core::ffi::c_void, fgetcallbacks: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetReceiveSelectionCallbacks(this, core::mem::transmute_copy(&fgetcallbacks)).into() } - unsafe extern "system" fn GetReceiveSelectionCallbacks(this: *mut core::ffi::c_void, pfgetcallbacks: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn GetReceiveSelectionCallbacks(this: *mut core::ffi::c_void, pfgetcallbacks: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetReceiveSelectionCallbacks(this) { Ok(ok__) => { @@ -3385,17 +2527,11 @@ impl IWMReaderAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReceiveStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, freceivestreamsamples: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn SetReceiveStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, freceivestreamsamples: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetReceiveStreamSamples(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&freceivestreamsamples)).into() } - unsafe extern "system" fn GetReceiveStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfreceivestreamsamples: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn GetReceiveStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfreceivestreamsamples: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetReceiveStreamSamples(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -3405,17 +2541,11 @@ impl IWMReaderAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, fallocate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn SetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, fallocate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetAllocateForOutput(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&fallocate)).into() } - unsafe extern "system" fn GetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, pfallocate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn GetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, pfallocate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetAllocateForOutput(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -3425,17 +2555,11 @@ impl IWMReaderAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllocateForStream(this: *mut core::ffi::c_void, wstreamnum: u16, fallocate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn SetAllocateForStream(this: *mut core::ffi::c_void, wstreamnum: u16, fallocate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetAllocateForStream(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&fallocate)).into() } - unsafe extern "system" fn GetAllocateForStream(this: *mut core::ffi::c_void, dwsreamnum: u16, pfallocate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn GetAllocateForStream(this: *mut core::ffi::c_void, dwsreamnum: u16, pfallocate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetAllocateForStream(this, core::mem::transmute_copy(&dwsreamnum)) { Ok(ok__) => { @@ -3445,24 +2569,15 @@ impl IWMReaderAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, pstatistics: *mut WM_READER_STATISTICS) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, pstatistics: *mut WM_READER_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::GetStatistics(this, core::mem::transmute_copy(&pstatistics)).into() } - unsafe extern "system" fn SetClientInfo(this: *mut core::ffi::c_void, pclientinfo: *const WM_READER_CLIENTINFO) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn SetClientInfo(this: *mut core::ffi::c_void, pclientinfo: *const WM_READER_CLIENTINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetClientInfo(this, core::mem::transmute_copy(&pclientinfo)).into() } - unsafe extern "system" fn GetMaxOutputSampleSize(this: *mut core::ffi::c_void, dwoutput: u32, pcbmax: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn GetMaxOutputSampleSize(this: *mut core::ffi::c_void, dwoutput: u32, pcbmax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetMaxOutputSampleSize(this, core::mem::transmute_copy(&dwoutput)) { Ok(ok__) => { @@ -3472,10 +2587,7 @@ impl IWMReaderAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxStreamSampleSize(this: *mut core::ffi::c_void, wstream: u16, pcbmax: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn GetMaxStreamSampleSize(this: *mut core::ffi::c_void, wstream: u16, pcbmax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetMaxStreamSampleSize(this, core::mem::transmute_copy(&wstream)) { Ok(ok__) => { @@ -3485,10 +2597,7 @@ impl IWMReaderAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyLateDelivery(this: *mut core::ffi::c_void, cnslateness: u64) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced_Impl, - { + unsafe extern "system" fn NotifyLateDelivery(this: *mut core::ffi::c_void, cnslateness: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::NotifyLateDelivery(this, core::mem::transmute_copy(&cnslateness)).into() } @@ -3542,21 +2651,12 @@ pub trait IWMReaderAdvanced2_Impl: Sized + IWMReaderAdvanced_Impl { impl windows_core::RuntimeName for IWMReaderAdvanced2 {} #[cfg(feature = "Win32_System_Com")] impl IWMReaderAdvanced2_Vtbl { - pub const fn new() -> IWMReaderAdvanced2_Vtbl - where - Identity: IWMReaderAdvanced2_Impl, - { - unsafe extern "system" fn SetPlayMode(this: *mut core::ffi::c_void, mode: WMT_PLAY_MODE) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + pub const fn new() -> IWMReaderAdvanced2_Vtbl { + unsafe extern "system" fn SetPlayMode(this: *mut core::ffi::c_void, mode: WMT_PLAY_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::SetPlayMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn GetPlayMode(this: *mut core::ffi::c_void, pmode: *mut WMT_PLAY_MODE) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn GetPlayMode(this: *mut core::ffi::c_void, pmode: *mut WMT_PLAY_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced2_Impl::GetPlayMode(this) { Ok(ok__) => { @@ -3566,24 +2666,15 @@ impl IWMReaderAdvanced2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBufferProgress(this: *mut core::ffi::c_void, pdwpercent: *mut u32, pcnsbuffering: *mut u64) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn GetBufferProgress(this: *mut core::ffi::c_void, pdwpercent: *mut u32, pcnsbuffering: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::GetBufferProgress(this, core::mem::transmute_copy(&pdwpercent), core::mem::transmute_copy(&pcnsbuffering)).into() } - unsafe extern "system" fn GetDownloadProgress(this: *mut core::ffi::c_void, pdwpercent: *mut u32, pqwbytesdownloaded: *mut u64, pcnsdownload: *mut u64) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn GetDownloadProgress(this: *mut core::ffi::c_void, pdwpercent: *mut u32, pqwbytesdownloaded: *mut u64, pcnsdownload: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::GetDownloadProgress(this, core::mem::transmute_copy(&pdwpercent), core::mem::transmute_copy(&pqwbytesdownloaded), core::mem::transmute_copy(&pcnsdownload)).into() } - unsafe extern "system" fn GetSaveAsProgress(this: *mut core::ffi::c_void, pdwpercent: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn GetSaveAsProgress(this: *mut core::ffi::c_void, pdwpercent: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced2_Impl::GetSaveAsProgress(this) { Ok(ok__) => { @@ -3593,59 +2684,35 @@ impl IWMReaderAdvanced2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveFileAs(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn SaveFileAs(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::SaveFileAs(this, core::mem::transmute(&pwszfilename)).into() } - unsafe extern "system" fn GetProtocolName(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PWSTR, pcchprotocol: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn GetProtocolName(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PWSTR, pcchprotocol: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::GetProtocolName(this, core::mem::transmute_copy(&pwszprotocol), core::mem::transmute_copy(&pcchprotocol)).into() } - unsafe extern "system" fn StartAtMarker(this: *mut core::ffi::c_void, wmarkerindex: u16, cnsduration: u64, frate: f32, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn StartAtMarker(this: *mut core::ffi::c_void, wmarkerindex: u16, cnsduration: u64, frate: f32, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::StartAtMarker(this, core::mem::transmute_copy(&wmarkerindex), core::mem::transmute_copy(&cnsduration), core::mem::transmute_copy(&frate), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn GetOutputSetting(this: *mut core::ffi::c_void, dwoutputnum: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn GetOutputSetting(this: *mut core::ffi::c_void, dwoutputnum: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::GetOutputSetting(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn SetOutputSetting(this: *mut core::ffi::c_void, dwoutputnum: u32, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn SetOutputSetting(this: *mut core::ffi::c_void, dwoutputnum: u32, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::SetOutputSetting(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute(&pszname), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cblength)).into() } - unsafe extern "system" fn Preroll(this: *mut core::ffi::c_void, cnsstart: u64, cnsduration: u64, frate: f32) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn Preroll(this: *mut core::ffi::c_void, cnsstart: u64, cnsduration: u64, frate: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::Preroll(this, core::mem::transmute_copy(&cnsstart), core::mem::transmute_copy(&cnsduration), core::mem::transmute_copy(&frate)).into() } - unsafe extern "system" fn SetLogClientID(this: *mut core::ffi::c_void, flogclientid: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn SetLogClientID(this: *mut core::ffi::c_void, flogclientid: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::SetLogClientID(this, core::mem::transmute_copy(&flogclientid)).into() } - unsafe extern "system" fn GetLogClientID(this: *mut core::ffi::c_void, pflogclientid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn GetLogClientID(this: *mut core::ffi::c_void, pflogclientid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced2_Impl::GetLogClientID(this) { Ok(ok__) => { @@ -3655,17 +2722,11 @@ impl IWMReaderAdvanced2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StopBuffering(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn StopBuffering(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::StopBuffering(this).into() } - unsafe extern "system" fn OpenStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced2_Impl, - { + unsafe extern "system" fn OpenStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::OpenStream(this, windows_core::from_raw_borrowed(&pstream), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&pvcontext)).into() } @@ -3701,21 +2762,12 @@ pub trait IWMReaderAdvanced3_Impl: Sized + IWMReaderAdvanced2_Impl { impl windows_core::RuntimeName for IWMReaderAdvanced3 {} #[cfg(feature = "Win32_System_Com")] impl IWMReaderAdvanced3_Vtbl { - pub const fn new() -> IWMReaderAdvanced3_Vtbl - where - Identity: IWMReaderAdvanced3_Impl, - { - unsafe extern "system" fn StopNetStreaming(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced3_Impl, - { + pub const fn new() -> IWMReaderAdvanced3_Vtbl { + unsafe extern "system" fn StopNetStreaming(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced3_Impl::StopNetStreaming(this).into() } - unsafe extern "system" fn StartAtPosition(this: *mut core::ffi::c_void, wstreamnum: u16, pvoffsetstart: *const core::ffi::c_void, pvduration: *const core::ffi::c_void, dwoffsetformat: WMT_OFFSET_FORMAT, frate: f32, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced3_Impl, - { + unsafe extern "system" fn StartAtPosition(this: *mut core::ffi::c_void, wstreamnum: u16, pvoffsetstart: *const core::ffi::c_void, pvduration: *const core::ffi::c_void, dwoffsetformat: WMT_OFFSET_FORMAT, frate: f32, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced3_Impl::StartAtPosition(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&pvoffsetstart), core::mem::transmute_copy(&pvduration), core::mem::transmute_copy(&dwoffsetformat), core::mem::transmute_copy(&frate), core::mem::transmute_copy(&pvcontext)).into() } @@ -3745,14 +2797,8 @@ pub trait IWMReaderAdvanced4_Impl: Sized + IWMReaderAdvanced3_Impl { impl windows_core::RuntimeName for IWMReaderAdvanced4 {} #[cfg(feature = "Win32_System_Com")] impl IWMReaderAdvanced4_Vtbl { - pub const fn new() -> IWMReaderAdvanced4_Vtbl - where - Identity: IWMReaderAdvanced4_Impl, - { - unsafe extern "system" fn GetLanguageCount(this: *mut core::ffi::c_void, dwoutputnum: u32, pwlanguagecount: *mut u16) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced4_Impl, - { + pub const fn new() -> IWMReaderAdvanced4_Vtbl { + unsafe extern "system" fn GetLanguageCount(this: *mut core::ffi::c_void, dwoutputnum: u32, pwlanguagecount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced4_Impl::GetLanguageCount(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -3762,17 +2808,11 @@ impl IWMReaderAdvanced4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, dwoutputnum: u32, wlanguage: u16, pwszlanguagestring: windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced4_Impl, - { + unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, dwoutputnum: u32, wlanguage: u16, pwszlanguagestring: windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced4_Impl::GetLanguage(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&wlanguage), core::mem::transmute_copy(&pwszlanguagestring), core::mem::transmute_copy(&pcchlanguagestringlength)).into() } - unsafe extern "system" fn GetMaxSpeedFactor(this: *mut core::ffi::c_void, pdblfactor: *mut f64) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced4_Impl, - { + unsafe extern "system" fn GetMaxSpeedFactor(this: *mut core::ffi::c_void, pdblfactor: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced4_Impl::GetMaxSpeedFactor(this) { Ok(ok__) => { @@ -3782,10 +2822,7 @@ impl IWMReaderAdvanced4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsUsingFastCache(this: *mut core::ffi::c_void, pfusingfastcache: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced4_Impl, - { + unsafe extern "system" fn IsUsingFastCache(this: *mut core::ffi::c_void, pfusingfastcache: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced4_Impl::IsUsingFastCache(this) { Ok(ok__) => { @@ -3795,24 +2832,15 @@ impl IWMReaderAdvanced4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddLogParam(this: *mut core::ffi::c_void, wsznamespace: windows_core::PCWSTR, wszname: windows_core::PCWSTR, wszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced4_Impl, - { + unsafe extern "system" fn AddLogParam(this: *mut core::ffi::c_void, wsznamespace: windows_core::PCWSTR, wszname: windows_core::PCWSTR, wszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced4_Impl::AddLogParam(this, core::mem::transmute(&wsznamespace), core::mem::transmute(&wszname), core::mem::transmute(&wszvalue)).into() } - unsafe extern "system" fn SendLogParams(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced4_Impl, - { + unsafe extern "system" fn SendLogParams(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced4_Impl::SendLogParams(this).into() } - unsafe extern "system" fn CanSaveFileAs(this: *mut core::ffi::c_void, pfcansave: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced4_Impl, - { + unsafe extern "system" fn CanSaveFileAs(this: *mut core::ffi::c_void, pfcansave: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced4_Impl::CanSaveFileAs(this) { Ok(ok__) => { @@ -3822,17 +2850,11 @@ impl IWMReaderAdvanced4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CancelSaveFileAs(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced4_Impl, - { + unsafe extern "system" fn CancelSaveFileAs(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced4_Impl::CancelSaveFileAs(this).into() } - unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PWSTR, pcchurl: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced4_Impl, - { + unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PWSTR, pcchurl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced4_Impl::GetURL(this, core::mem::transmute_copy(&pwszurl), core::mem::transmute_copy(&pcchurl)).into() } @@ -3861,14 +2883,8 @@ pub trait IWMReaderAdvanced5_Impl: Sized + IWMReaderAdvanced4_Impl { impl windows_core::RuntimeName for IWMReaderAdvanced5 {} #[cfg(feature = "Win32_System_Com")] impl IWMReaderAdvanced5_Vtbl { - pub const fn new() -> IWMReaderAdvanced5_Vtbl - where - Identity: IWMReaderAdvanced5_Impl, - { - unsafe extern "system" fn SetPlayerHook(this: *mut core::ffi::c_void, dwoutputnum: u32, phook: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced5_Impl, - { + pub const fn new() -> IWMReaderAdvanced5_Vtbl { + unsafe extern "system" fn SetPlayerHook(this: *mut core::ffi::c_void, dwoutputnum: u32, phook: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced5_Impl::SetPlayerHook(this, core::mem::transmute_copy(&dwoutputnum), windows_core::from_raw_borrowed(&phook)).into() } @@ -3886,14 +2902,8 @@ pub trait IWMReaderAdvanced6_Impl: Sized + IWMReaderAdvanced5_Impl { impl windows_core::RuntimeName for IWMReaderAdvanced6 {} #[cfg(feature = "Win32_System_Com")] impl IWMReaderAdvanced6_Vtbl { - pub const fn new() -> IWMReaderAdvanced6_Vtbl - where - Identity: IWMReaderAdvanced6_Impl, - { - unsafe extern "system" fn SetProtectStreamSamples(this: *mut core::ffi::c_void, pbcertificate: *const u8, cbcertificate: u32, dwcertificatetype: u32, dwflags: u32, pbinitializationvector: *mut u8, pcbinitializationvector: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderAdvanced6_Impl, - { + pub const fn new() -> IWMReaderAdvanced6_Vtbl { + unsafe extern "system" fn SetProtectStreamSamples(this: *mut core::ffi::c_void, pbcertificate: *const u8, cbcertificate: u32, dwcertificatetype: u32, dwflags: u32, pbinitializationvector: *mut u8, pcbinitializationvector: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced6_Impl::SetProtectStreamSamples(this, core::mem::transmute_copy(&pbcertificate), core::mem::transmute_copy(&cbcertificate), core::mem::transmute_copy(&dwcertificatetype), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pbinitializationvector), core::mem::transmute_copy(&pcbinitializationvector)).into() } @@ -3903,27 +2913,18 @@ impl IWMReaderAdvanced6_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMReaderAllocatorEx_Impl: Sized { +pub trait IWMReaderAllocatorEx_Impl: Sized + windows_core::IUnknownImpl { fn AllocateForStreamEx(&self, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut Option, dwflags: u32, cnssampletime: u64, cnssampleduration: u64, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; fn AllocateForOutputEx(&self, dwoutputnum: u32, cbbuffer: u32, ppbuffer: *mut Option, dwflags: u32, cnssampletime: u64, cnssampleduration: u64, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMReaderAllocatorEx {} impl IWMReaderAllocatorEx_Vtbl { - pub const fn new() -> IWMReaderAllocatorEx_Vtbl - where - Identity: IWMReaderAllocatorEx_Impl, - { - unsafe extern "system" fn AllocateForStreamEx(this: *mut core::ffi::c_void, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut *mut core::ffi::c_void, dwflags: u32, cnssampletime: u64, cnssampleduration: u64, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAllocatorEx_Impl, - { + pub const fn new() -> IWMReaderAllocatorEx_Vtbl { + unsafe extern "system" fn AllocateForStreamEx(this: *mut core::ffi::c_void, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut *mut core::ffi::c_void, dwflags: u32, cnssampletime: u64, cnssampleduration: u64, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAllocatorEx_Impl::AllocateForStreamEx(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&cnssampletime), core::mem::transmute_copy(&cnssampleduration), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn AllocateForOutputEx(this: *mut core::ffi::c_void, dwoutputnum: u32, cbbuffer: u32, ppbuffer: *mut *mut core::ffi::c_void, dwflags: u32, cnssampletime: u64, cnssampleduration: u64, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderAllocatorEx_Impl, - { + unsafe extern "system" fn AllocateForOutputEx(this: *mut core::ffi::c_void, dwoutputnum: u32, cbbuffer: u32, ppbuffer: *mut *mut core::ffi::c_void, dwflags: u32, cnssampletime: u64, cnssampleduration: u64, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAllocatorEx_Impl::AllocateForOutputEx(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&cnssampletime), core::mem::transmute_copy(&cnssampleduration), core::mem::transmute_copy(&pvcontext)).into() } @@ -3942,14 +2943,8 @@ pub trait IWMReaderCallback_Impl: Sized + IWMStatusCallback_Impl { } impl windows_core::RuntimeName for IWMReaderCallback {} impl IWMReaderCallback_Vtbl { - pub const fn new() -> IWMReaderCallback_Vtbl - where - Identity: IWMReaderCallback_Impl, - { - unsafe extern "system" fn OnSample(this: *mut core::ffi::c_void, dwoutputnum: u32, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderCallback_Impl, - { + pub const fn new() -> IWMReaderCallback_Vtbl { + unsafe extern "system" fn OnSample(this: *mut core::ffi::c_void, dwoutputnum: u32, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderCallback_Impl::OnSample(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&cnssampletime), core::mem::transmute_copy(&cnssampleduration), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psample), core::mem::transmute_copy(&pvcontext)).into() } @@ -3959,7 +2954,7 @@ impl IWMReaderCallback_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMReaderCallbackAdvanced_Impl: Sized { +pub trait IWMReaderCallbackAdvanced_Impl: Sized + windows_core::IUnknownImpl { fn OnStreamSample(&self, wstreamnum: u16, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: Option<&INSSBuffer>, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; fn OnTime(&self, cnscurrenttime: u64, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; fn OnStreamSelection(&self, wstreamcount: u16, pstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; @@ -3969,49 +2964,28 @@ pub trait IWMReaderCallbackAdvanced_Impl: Sized { } impl windows_core::RuntimeName for IWMReaderCallbackAdvanced {} impl IWMReaderCallbackAdvanced_Vtbl { - pub const fn new() -> IWMReaderCallbackAdvanced_Vtbl - where - Identity: IWMReaderCallbackAdvanced_Impl, - { - unsafe extern "system" fn OnStreamSample(this: *mut core::ffi::c_void, wstreamnum: u16, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderCallbackAdvanced_Impl, - { + pub const fn new() -> IWMReaderCallbackAdvanced_Vtbl { + unsafe extern "system" fn OnStreamSample(this: *mut core::ffi::c_void, wstreamnum: u16, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderCallbackAdvanced_Impl::OnStreamSample(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&cnssampletime), core::mem::transmute_copy(&cnssampleduration), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psample), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn OnTime(this: *mut core::ffi::c_void, cnscurrenttime: u64, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderCallbackAdvanced_Impl, - { + unsafe extern "system" fn OnTime(this: *mut core::ffi::c_void, cnscurrenttime: u64, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderCallbackAdvanced_Impl::OnTime(this, core::mem::transmute_copy(&cnscurrenttime), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn OnStreamSelection(this: *mut core::ffi::c_void, wstreamcount: u16, pstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderCallbackAdvanced_Impl, - { + unsafe extern "system" fn OnStreamSelection(this: *mut core::ffi::c_void, wstreamcount: u16, pstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderCallbackAdvanced_Impl::OnStreamSelection(this, core::mem::transmute_copy(&wstreamcount), core::mem::transmute_copy(&pstreamnumbers), core::mem::transmute_copy(&pselections), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn OnOutputPropsChanged(this: *mut core::ffi::c_void, dwoutputnum: u32, pmediatype: *const WM_MEDIA_TYPE, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderCallbackAdvanced_Impl, - { + unsafe extern "system" fn OnOutputPropsChanged(this: *mut core::ffi::c_void, dwoutputnum: u32, pmediatype: *const WM_MEDIA_TYPE, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderCallbackAdvanced_Impl::OnOutputPropsChanged(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&pmediatype), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn AllocateForStream(this: *mut core::ffi::c_void, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderCallbackAdvanced_Impl, - { + unsafe extern "system" fn AllocateForStream(this: *mut core::ffi::c_void, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderCallbackAdvanced_Impl::AllocateForStream(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn AllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, cbbuffer: u32, ppbuffer: *mut *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderCallbackAdvanced_Impl, - { + unsafe extern "system" fn AllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, cbbuffer: u32, ppbuffer: *mut *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderCallbackAdvanced_Impl::AllocateForOutput(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&pvcontext)).into() } @@ -4029,7 +3003,7 @@ impl IWMReaderCallbackAdvanced_Vtbl { iid == &::IID } } -pub trait IWMReaderNetworkConfig_Impl: Sized { +pub trait IWMReaderNetworkConfig_Impl: Sized + windows_core::IUnknownImpl { fn GetBufferingTime(&self) -> windows_core::Result; fn SetBufferingTime(&self, cnsbufferingtime: u64) -> windows_core::Result<()>; fn GetUDPPortRanges(&self, prangearray: *mut WM_PORT_NUMBER_RANGE, pcranges: *mut u32) -> windows_core::Result<()>; @@ -4066,14 +3040,8 @@ pub trait IWMReaderNetworkConfig_Impl: Sized { } impl windows_core::RuntimeName for IWMReaderNetworkConfig {} impl IWMReaderNetworkConfig_Vtbl { - pub const fn new() -> IWMReaderNetworkConfig_Vtbl - where - Identity: IWMReaderNetworkConfig_Impl, - { - unsafe extern "system" fn GetBufferingTime(this: *mut core::ffi::c_void, pcnsbufferingtime: *mut u64) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + pub const fn new() -> IWMReaderNetworkConfig_Vtbl { + unsafe extern "system" fn GetBufferingTime(this: *mut core::ffi::c_void, pcnsbufferingtime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetBufferingTime(this) { Ok(ok__) => { @@ -4083,31 +3051,19 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferingTime(this: *mut core::ffi::c_void, cnsbufferingtime: u64) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetBufferingTime(this: *mut core::ffi::c_void, cnsbufferingtime: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetBufferingTime(this, core::mem::transmute_copy(&cnsbufferingtime)).into() } - unsafe extern "system" fn GetUDPPortRanges(this: *mut core::ffi::c_void, prangearray: *mut WM_PORT_NUMBER_RANGE, pcranges: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetUDPPortRanges(this: *mut core::ffi::c_void, prangearray: *mut WM_PORT_NUMBER_RANGE, pcranges: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::GetUDPPortRanges(this, core::mem::transmute_copy(&prangearray), core::mem::transmute_copy(&pcranges)).into() } - unsafe extern "system" fn SetUDPPortRanges(this: *mut core::ffi::c_void, prangearray: *const WM_PORT_NUMBER_RANGE, cranges: u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetUDPPortRanges(this: *mut core::ffi::c_void, prangearray: *const WM_PORT_NUMBER_RANGE, cranges: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetUDPPortRanges(this, core::mem::transmute_copy(&prangearray), core::mem::transmute_copy(&cranges)).into() } - unsafe extern "system" fn GetProxySettings(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pproxysetting: *mut WMT_PROXY_SETTINGS) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetProxySettings(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pproxysetting: *mut WMT_PROXY_SETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetProxySettings(this, core::mem::transmute(&pwszprotocol)) { Ok(ok__) => { @@ -4117,31 +3073,19 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProxySettings(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, proxysetting: WMT_PROXY_SETTINGS) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetProxySettings(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, proxysetting: WMT_PROXY_SETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetProxySettings(this, core::mem::transmute(&pwszprotocol), core::mem::transmute_copy(&proxysetting)).into() } - unsafe extern "system" fn GetProxyHostName(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pwszhostname: windows_core::PWSTR, pcchhostname: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetProxyHostName(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pwszhostname: windows_core::PWSTR, pcchhostname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::GetProxyHostName(this, core::mem::transmute(&pwszprotocol), core::mem::transmute_copy(&pwszhostname), core::mem::transmute_copy(&pcchhostname)).into() } - unsafe extern "system" fn SetProxyHostName(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pwszhostname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetProxyHostName(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pwszhostname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetProxyHostName(this, core::mem::transmute(&pwszprotocol), core::mem::transmute(&pwszhostname)).into() } - unsafe extern "system" fn GetProxyPort(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pdwport: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetProxyPort(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pdwport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetProxyPort(this, core::mem::transmute(&pwszprotocol)) { Ok(ok__) => { @@ -4151,31 +3095,19 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProxyPort(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, dwport: u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetProxyPort(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, dwport: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetProxyPort(this, core::mem::transmute(&pwszprotocol), core::mem::transmute_copy(&dwport)).into() } - unsafe extern "system" fn GetProxyExceptionList(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pwszexceptionlist: windows_core::PWSTR, pcchexceptionlist: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetProxyExceptionList(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pwszexceptionlist: windows_core::PWSTR, pcchexceptionlist: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::GetProxyExceptionList(this, core::mem::transmute(&pwszprotocol), core::mem::transmute_copy(&pwszexceptionlist), core::mem::transmute_copy(&pcchexceptionlist)).into() } - unsafe extern "system" fn SetProxyExceptionList(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pwszexceptionlist: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetProxyExceptionList(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pwszexceptionlist: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetProxyExceptionList(this, core::mem::transmute(&pwszprotocol), core::mem::transmute(&pwszexceptionlist)).into() } - unsafe extern "system" fn GetProxyBypassForLocal(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pfbypassforlocal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetProxyBypassForLocal(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pfbypassforlocal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetProxyBypassForLocal(this, core::mem::transmute(&pwszprotocol)) { Ok(ok__) => { @@ -4185,17 +3117,11 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProxyBypassForLocal(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, fbypassforlocal: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetProxyBypassForLocal(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, fbypassforlocal: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetProxyBypassForLocal(this, core::mem::transmute(&pwszprotocol), core::mem::transmute_copy(&fbypassforlocal)).into() } - unsafe extern "system" fn GetForceRerunAutoProxyDetection(this: *mut core::ffi::c_void, pfforcererundetection: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetForceRerunAutoProxyDetection(this: *mut core::ffi::c_void, pfforcererundetection: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetForceRerunAutoProxyDetection(this) { Ok(ok__) => { @@ -4205,17 +3131,11 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetForceRerunAutoProxyDetection(this: *mut core::ffi::c_void, fforcererundetection: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetForceRerunAutoProxyDetection(this: *mut core::ffi::c_void, fforcererundetection: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetForceRerunAutoProxyDetection(this, core::mem::transmute_copy(&fforcererundetection)).into() } - unsafe extern "system" fn GetEnableMulticast(this: *mut core::ffi::c_void, pfenablemulticast: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetEnableMulticast(this: *mut core::ffi::c_void, pfenablemulticast: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetEnableMulticast(this) { Ok(ok__) => { @@ -4225,17 +3145,11 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableMulticast(this: *mut core::ffi::c_void, fenablemulticast: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetEnableMulticast(this: *mut core::ffi::c_void, fenablemulticast: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetEnableMulticast(this, core::mem::transmute_copy(&fenablemulticast)).into() } - unsafe extern "system" fn GetEnableHTTP(this: *mut core::ffi::c_void, pfenablehttp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetEnableHTTP(this: *mut core::ffi::c_void, pfenablehttp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetEnableHTTP(this) { Ok(ok__) => { @@ -4245,17 +3159,11 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableHTTP(this: *mut core::ffi::c_void, fenablehttp: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetEnableHTTP(this: *mut core::ffi::c_void, fenablehttp: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetEnableHTTP(this, core::mem::transmute_copy(&fenablehttp)).into() } - unsafe extern "system" fn GetEnableUDP(this: *mut core::ffi::c_void, pfenableudp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetEnableUDP(this: *mut core::ffi::c_void, pfenableudp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetEnableUDP(this) { Ok(ok__) => { @@ -4265,17 +3173,11 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableUDP(this: *mut core::ffi::c_void, fenableudp: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetEnableUDP(this: *mut core::ffi::c_void, fenableudp: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetEnableUDP(this, core::mem::transmute_copy(&fenableudp)).into() } - unsafe extern "system" fn GetEnableTCP(this: *mut core::ffi::c_void, pfenabletcp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetEnableTCP(this: *mut core::ffi::c_void, pfenabletcp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetEnableTCP(this) { Ok(ok__) => { @@ -4285,24 +3187,15 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableTCP(this: *mut core::ffi::c_void, fenabletcp: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetEnableTCP(this: *mut core::ffi::c_void, fenabletcp: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetEnableTCP(this, core::mem::transmute_copy(&fenabletcp)).into() } - unsafe extern "system" fn ResetProtocolRollover(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn ResetProtocolRollover(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::ResetProtocolRollover(this).into() } - unsafe extern "system" fn GetConnectionBandwidth(this: *mut core::ffi::c_void, pdwconnectionbandwidth: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetConnectionBandwidth(this: *mut core::ffi::c_void, pdwconnectionbandwidth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetConnectionBandwidth(this) { Ok(ok__) => { @@ -4312,17 +3205,11 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectionBandwidth(this: *mut core::ffi::c_void, dwconnectionbandwidth: u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn SetConnectionBandwidth(this: *mut core::ffi::c_void, dwconnectionbandwidth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetConnectionBandwidth(this, core::mem::transmute_copy(&dwconnectionbandwidth)).into() } - unsafe extern "system" fn GetNumProtocolsSupported(this: *mut core::ffi::c_void, pcprotocols: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetNumProtocolsSupported(this: *mut core::ffi::c_void, pcprotocols: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetNumProtocolsSupported(this) { Ok(ok__) => { @@ -4332,31 +3219,19 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedProtocolName(this: *mut core::ffi::c_void, dwprotocolnum: u32, pwszprotocolname: windows_core::PWSTR, pcchprotocolname: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetSupportedProtocolName(this: *mut core::ffi::c_void, dwprotocolnum: u32, pwszprotocolname: windows_core::PWSTR, pcchprotocolname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::GetSupportedProtocolName(this, core::mem::transmute_copy(&dwprotocolnum), core::mem::transmute_copy(&pwszprotocolname), core::mem::transmute_copy(&pcchprotocolname)).into() } - unsafe extern "system" fn AddLoggingUrl(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn AddLoggingUrl(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::AddLoggingUrl(this, core::mem::transmute(&pwszurl)).into() } - unsafe extern "system" fn GetLoggingUrl(this: *mut core::ffi::c_void, dwindex: u32, pwszurl: windows_core::PWSTR, pcchurl: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetLoggingUrl(this: *mut core::ffi::c_void, dwindex: u32, pwszurl: windows_core::PWSTR, pcchurl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::GetLoggingUrl(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pwszurl), core::mem::transmute_copy(&pcchurl)).into() } - unsafe extern "system" fn GetLoggingUrlCount(this: *mut core::ffi::c_void, pdwurlcount: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn GetLoggingUrlCount(this: *mut core::ffi::c_void, pdwurlcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetLoggingUrlCount(this) { Ok(ok__) => { @@ -4366,10 +3241,7 @@ impl IWMReaderNetworkConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResetLoggingUrlList(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig_Impl, - { + unsafe extern "system" fn ResetLoggingUrlList(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::ResetLoggingUrlList(this).into() } @@ -4431,14 +3303,8 @@ pub trait IWMReaderNetworkConfig2_Impl: Sized + IWMReaderNetworkConfig_Impl { } impl windows_core::RuntimeName for IWMReaderNetworkConfig2 {} impl IWMReaderNetworkConfig2_Vtbl { - pub const fn new() -> IWMReaderNetworkConfig2_Vtbl - where - Identity: IWMReaderNetworkConfig2_Impl, - { - unsafe extern "system" fn GetEnableContentCaching(this: *mut core::ffi::c_void, pfenablecontentcaching: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + pub const fn new() -> IWMReaderNetworkConfig2_Vtbl { + unsafe extern "system" fn GetEnableContentCaching(this: *mut core::ffi::c_void, pfenablecontentcaching: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetEnableContentCaching(this) { Ok(ok__) => { @@ -4448,17 +3314,11 @@ impl IWMReaderNetworkConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableContentCaching(this: *mut core::ffi::c_void, fenablecontentcaching: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn SetEnableContentCaching(this: *mut core::ffi::c_void, fenablecontentcaching: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig2_Impl::SetEnableContentCaching(this, core::mem::transmute_copy(&fenablecontentcaching)).into() } - unsafe extern "system" fn GetEnableFastCache(this: *mut core::ffi::c_void, pfenablefastcache: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn GetEnableFastCache(this: *mut core::ffi::c_void, pfenablefastcache: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetEnableFastCache(this) { Ok(ok__) => { @@ -4468,17 +3328,11 @@ impl IWMReaderNetworkConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableFastCache(this: *mut core::ffi::c_void, fenablefastcache: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn SetEnableFastCache(this: *mut core::ffi::c_void, fenablefastcache: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig2_Impl::SetEnableFastCache(this, core::mem::transmute_copy(&fenablefastcache)).into() } - unsafe extern "system" fn GetAcceleratedStreamingDuration(this: *mut core::ffi::c_void, pcnsaccelduration: *mut u64) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn GetAcceleratedStreamingDuration(this: *mut core::ffi::c_void, pcnsaccelduration: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetAcceleratedStreamingDuration(this) { Ok(ok__) => { @@ -4488,17 +3342,11 @@ impl IWMReaderNetworkConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAcceleratedStreamingDuration(this: *mut core::ffi::c_void, cnsaccelduration: u64) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn SetAcceleratedStreamingDuration(this: *mut core::ffi::c_void, cnsaccelduration: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig2_Impl::SetAcceleratedStreamingDuration(this, core::mem::transmute_copy(&cnsaccelduration)).into() } - unsafe extern "system" fn GetAutoReconnectLimit(this: *mut core::ffi::c_void, pdwautoreconnectlimit: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn GetAutoReconnectLimit(this: *mut core::ffi::c_void, pdwautoreconnectlimit: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetAutoReconnectLimit(this) { Ok(ok__) => { @@ -4508,17 +3356,11 @@ impl IWMReaderNetworkConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoReconnectLimit(this: *mut core::ffi::c_void, dwautoreconnectlimit: u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn SetAutoReconnectLimit(this: *mut core::ffi::c_void, dwautoreconnectlimit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig2_Impl::SetAutoReconnectLimit(this, core::mem::transmute_copy(&dwautoreconnectlimit)).into() } - unsafe extern "system" fn GetEnableResends(this: *mut core::ffi::c_void, pfenableresends: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn GetEnableResends(this: *mut core::ffi::c_void, pfenableresends: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetEnableResends(this) { Ok(ok__) => { @@ -4528,17 +3370,11 @@ impl IWMReaderNetworkConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableResends(this: *mut core::ffi::c_void, fenableresends: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn SetEnableResends(this: *mut core::ffi::c_void, fenableresends: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig2_Impl::SetEnableResends(this, core::mem::transmute_copy(&fenableresends)).into() } - unsafe extern "system" fn GetEnableThinning(this: *mut core::ffi::c_void, pfenablethinning: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn GetEnableThinning(this: *mut core::ffi::c_void, pfenablethinning: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetEnableThinning(this) { Ok(ok__) => { @@ -4548,17 +3384,11 @@ impl IWMReaderNetworkConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableThinning(this: *mut core::ffi::c_void, fenablethinning: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn SetEnableThinning(this: *mut core::ffi::c_void, fenablethinning: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig2_Impl::SetEnableThinning(this, core::mem::transmute_copy(&fenablethinning)).into() } - unsafe extern "system" fn GetMaxNetPacketSize(this: *mut core::ffi::c_void, pdwmaxnetpacketsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderNetworkConfig2_Impl, - { + unsafe extern "system" fn GetMaxNetPacketSize(this: *mut core::ffi::c_void, pdwmaxnetpacketsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetMaxNetPacketSize(this) { Ok(ok__) => { @@ -4589,7 +3419,7 @@ impl IWMReaderNetworkConfig2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMReaderPlaylistBurn_Impl: Sized { +pub trait IWMReaderPlaylistBurn_Impl: Sized + windows_core::IUnknownImpl { fn InitPlaylistBurn(&self, cfiles: u32, ppwszfilenames: *const windows_core::PCWSTR, pcallback: Option<&IWMStatusCallback>, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; fn GetInitResults(&self, cfiles: u32) -> windows_core::Result; fn Cancel(&self) -> windows_core::Result<()>; @@ -4597,21 +3427,12 @@ pub trait IWMReaderPlaylistBurn_Impl: Sized { } impl windows_core::RuntimeName for IWMReaderPlaylistBurn {} impl IWMReaderPlaylistBurn_Vtbl { - pub const fn new() -> IWMReaderPlaylistBurn_Vtbl - where - Identity: IWMReaderPlaylistBurn_Impl, - { - unsafe extern "system" fn InitPlaylistBurn(this: *mut core::ffi::c_void, cfiles: u32, ppwszfilenames: *const windows_core::PCWSTR, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderPlaylistBurn_Impl, - { + pub const fn new() -> IWMReaderPlaylistBurn_Vtbl { + unsafe extern "system" fn InitPlaylistBurn(this: *mut core::ffi::c_void, cfiles: u32, ppwszfilenames: *const windows_core::PCWSTR, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderPlaylistBurn_Impl::InitPlaylistBurn(this, core::mem::transmute_copy(&cfiles), core::mem::transmute_copy(&ppwszfilenames), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn GetInitResults(this: *mut core::ffi::c_void, cfiles: u32, phrstati: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWMReaderPlaylistBurn_Impl, - { + unsafe extern "system" fn GetInitResults(this: *mut core::ffi::c_void, cfiles: u32, phrstati: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderPlaylistBurn_Impl::GetInitResults(this, core::mem::transmute_copy(&cfiles)) { Ok(ok__) => { @@ -4621,17 +3442,11 @@ impl IWMReaderPlaylistBurn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderPlaylistBurn_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderPlaylistBurn_Impl::Cancel(this).into() } - unsafe extern "system" fn EndPlaylistBurn(this: *mut core::ffi::c_void, hrburnresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWMReaderPlaylistBurn_Impl, - { + unsafe extern "system" fn EndPlaylistBurn(this: *mut core::ffi::c_void, hrburnresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderPlaylistBurn_Impl::EndPlaylistBurn(this, core::mem::transmute_copy(&hrburnresult)).into() } @@ -4647,28 +3462,19 @@ impl IWMReaderPlaylistBurn_Vtbl { iid == &::IID } } -pub trait IWMReaderStreamClock_Impl: Sized { +pub trait IWMReaderStreamClock_Impl: Sized + windows_core::IUnknownImpl { fn GetTime(&self, pcnsnow: *const u64) -> windows_core::Result<()>; fn SetTimer(&self, cnswhen: u64, pvparam: *const core::ffi::c_void) -> windows_core::Result; fn KillTimer(&self, dwtimerid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMReaderStreamClock {} impl IWMReaderStreamClock_Vtbl { - pub const fn new() -> IWMReaderStreamClock_Vtbl - where - Identity: IWMReaderStreamClock_Impl, - { - unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, pcnsnow: *const u64) -> windows_core::HRESULT - where - Identity: IWMReaderStreamClock_Impl, - { + pub const fn new() -> IWMReaderStreamClock_Vtbl { + unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, pcnsnow: *const u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderStreamClock_Impl::GetTime(this, core::mem::transmute_copy(&pcnsnow)).into() } - unsafe extern "system" fn SetTimer(this: *mut core::ffi::c_void, cnswhen: u64, pvparam: *const core::ffi::c_void, pdwtimerid: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderStreamClock_Impl, - { + unsafe extern "system" fn SetTimer(this: *mut core::ffi::c_void, cnswhen: u64, pvparam: *const core::ffi::c_void, pdwtimerid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderStreamClock_Impl::SetTimer(this, core::mem::transmute_copy(&cnswhen), core::mem::transmute_copy(&pvparam)) { Ok(ok__) => { @@ -4678,10 +3484,7 @@ impl IWMReaderStreamClock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KillTimer(this: *mut core::ffi::c_void, dwtimerid: u32) -> windows_core::HRESULT - where - Identity: IWMReaderStreamClock_Impl, - { + unsafe extern "system" fn KillTimer(this: *mut core::ffi::c_void, dwtimerid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderStreamClock_Impl::KillTimer(this, core::mem::transmute_copy(&dwtimerid)).into() } @@ -4696,20 +3499,14 @@ impl IWMReaderStreamClock_Vtbl { iid == &::IID } } -pub trait IWMReaderTimecode_Impl: Sized { +pub trait IWMReaderTimecode_Impl: Sized + windows_core::IUnknownImpl { fn GetTimecodeRangeCount(&self, wstreamnum: u16) -> windows_core::Result; fn GetTimecodeRangeBounds(&self, wstreamnum: u16, wrangenum: u16, pstarttimecode: *mut u32, pendtimecode: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMReaderTimecode {} impl IWMReaderTimecode_Vtbl { - pub const fn new() -> IWMReaderTimecode_Vtbl - where - Identity: IWMReaderTimecode_Impl, - { - unsafe extern "system" fn GetTimecodeRangeCount(this: *mut core::ffi::c_void, wstreamnum: u16, pwrangecount: *mut u16) -> windows_core::HRESULT - where - Identity: IWMReaderTimecode_Impl, - { + pub const fn new() -> IWMReaderTimecode_Vtbl { + unsafe extern "system" fn GetTimecodeRangeCount(this: *mut core::ffi::c_void, wstreamnum: u16, pwrangecount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderTimecode_Impl::GetTimecodeRangeCount(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -4719,10 +3516,7 @@ impl IWMReaderTimecode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimecodeRangeBounds(this: *mut core::ffi::c_void, wstreamnum: u16, wrangenum: u16, pstarttimecode: *mut u32, pendtimecode: *mut u32) -> windows_core::HRESULT - where - Identity: IWMReaderTimecode_Impl, - { + unsafe extern "system" fn GetTimecodeRangeBounds(this: *mut core::ffi::c_void, wstreamnum: u16, wrangenum: u16, pstarttimecode: *mut u32, pendtimecode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderTimecode_Impl::GetTimecodeRangeBounds(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&wrangenum), core::mem::transmute_copy(&pstarttimecode), core::mem::transmute_copy(&pendtimecode)).into() } @@ -4736,19 +3530,13 @@ impl IWMReaderTimecode_Vtbl { iid == &::IID } } -pub trait IWMReaderTypeNegotiation_Impl: Sized { +pub trait IWMReaderTypeNegotiation_Impl: Sized + windows_core::IUnknownImpl { fn TryOutputProps(&self, dwoutputnum: u32, poutput: Option<&IWMOutputMediaProps>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMReaderTypeNegotiation {} impl IWMReaderTypeNegotiation_Vtbl { - pub const fn new() -> IWMReaderTypeNegotiation_Vtbl - where - Identity: IWMReaderTypeNegotiation_Impl, - { - unsafe extern "system" fn TryOutputProps(this: *mut core::ffi::c_void, dwoutputnum: u32, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMReaderTypeNegotiation_Impl, - { + pub const fn new() -> IWMReaderTypeNegotiation_Vtbl { + unsafe extern "system" fn TryOutputProps(this: *mut core::ffi::c_void, dwoutputnum: u32, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderTypeNegotiation_Impl::TryOutputProps(this, core::mem::transmute_copy(&dwoutputnum), windows_core::from_raw_borrowed(&poutput)).into() } @@ -4758,27 +3546,18 @@ impl IWMReaderTypeNegotiation_Vtbl { iid == &::IID } } -pub trait IWMRegisterCallback_Impl: Sized { +pub trait IWMRegisterCallback_Impl: Sized + windows_core::IUnknownImpl { fn Advise(&self, pcallback: Option<&IWMStatusCallback>, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; fn Unadvise(&self, pcallback: Option<&IWMStatusCallback>, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMRegisterCallback {} impl IWMRegisterCallback_Vtbl { - pub const fn new() -> IWMRegisterCallback_Vtbl - where - Identity: IWMRegisterCallback_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMRegisterCallback_Impl, - { + pub const fn new() -> IWMRegisterCallback_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMRegisterCallback_Impl::Advise(this, windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMRegisterCallback_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMRegisterCallback_Impl::Unadvise(this, windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&pvcontext)).into() } @@ -4788,7 +3567,7 @@ impl IWMRegisterCallback_Vtbl { iid == &::IID } } -pub trait IWMRegisteredDevice_Impl: Sized { +pub trait IWMRegisteredDevice_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceSerialNumber(&self) -> windows_core::Result; fn GetDeviceCertificate(&self) -> windows_core::Result; fn GetDeviceType(&self) -> windows_core::Result; @@ -4806,14 +3585,8 @@ pub trait IWMRegisteredDevice_Impl: Sized { } impl windows_core::RuntimeName for IWMRegisteredDevice {} impl IWMRegisteredDevice_Vtbl { - pub const fn new() -> IWMRegisteredDevice_Vtbl - where - Identity: IWMRegisteredDevice_Impl, - { - unsafe extern "system" fn GetDeviceSerialNumber(this: *mut core::ffi::c_void, pserialnumber: *mut DRM_VAL16) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + pub const fn new() -> IWMRegisteredDevice_Vtbl { + unsafe extern "system" fn GetDeviceSerialNumber(this: *mut core::ffi::c_void, pserialnumber: *mut DRM_VAL16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::GetDeviceSerialNumber(this) { Ok(ok__) => { @@ -4823,10 +3596,7 @@ impl IWMRegisteredDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceCertificate(this: *mut core::ffi::c_void, ppcertificate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn GetDeviceCertificate(this: *mut core::ffi::c_void, ppcertificate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::GetDeviceCertificate(this) { Ok(ok__) => { @@ -4836,10 +3606,7 @@ impl IWMRegisteredDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceType(this: *mut core::ffi::c_void, pdwtype: *mut u32) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn GetDeviceType(this: *mut core::ffi::c_void, pdwtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::GetDeviceType(this) { Ok(ok__) => { @@ -4849,10 +3616,7 @@ impl IWMRegisteredDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeCount(this: *mut core::ffi::c_void, pcattributes: *mut u32) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn GetAttributeCount(this: *mut core::ffi::c_void, pcattributes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::GetAttributeCount(this) { Ok(ok__) => { @@ -4862,17 +3626,11 @@ impl IWMRegisteredDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeByIndex(this: *mut core::ffi::c_void, dwindex: u32, pbstrname: *mut core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn GetAttributeByIndex(this: *mut core::ffi::c_void, dwindex: u32, pbstrname: *mut core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMRegisteredDevice_Impl::GetAttributeByIndex(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pbstrname), core::mem::transmute_copy(&pbstrvalue)).into() } - unsafe extern "system" fn GetAttributeByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn GetAttributeByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::GetAttributeByName(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4882,24 +3640,15 @@ impl IWMRegisteredDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttributeByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn SetAttributeByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMRegisteredDevice_Impl::SetAttributeByName(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn Approve(this: *mut core::ffi::c_void, fapprove: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn Approve(this: *mut core::ffi::c_void, fapprove: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMRegisteredDevice_Impl::Approve(this, core::mem::transmute_copy(&fapprove)).into() } - unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void, pfvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void, pfvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::IsValid(this) { Ok(ok__) => { @@ -4909,10 +3658,7 @@ impl IWMRegisteredDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsApproved(this: *mut core::ffi::c_void, pfapproved: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn IsApproved(this: *mut core::ffi::c_void, pfapproved: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::IsApproved(this) { Ok(ok__) => { @@ -4922,10 +3668,7 @@ impl IWMRegisteredDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsWmdrmCompliant(this: *mut core::ffi::c_void, pfcompliant: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn IsWmdrmCompliant(this: *mut core::ffi::c_void, pfcompliant: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::IsWmdrmCompliant(this) { Ok(ok__) => { @@ -4935,10 +3678,7 @@ impl IWMRegisteredDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOpened(this: *mut core::ffi::c_void, pfopened: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn IsOpened(this: *mut core::ffi::c_void, pfopened: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::IsOpened(this) { Ok(ok__) => { @@ -4948,17 +3688,11 @@ impl IWMRegisteredDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMRegisteredDevice_Impl::Open(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMRegisteredDevice_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMRegisteredDevice_Impl::Close(this).into() } @@ -4984,20 +3718,14 @@ impl IWMRegisteredDevice_Vtbl { iid == &::IID } } -pub trait IWMSBufferAllocator_Impl: Sized { +pub trait IWMSBufferAllocator_Impl: Sized + windows_core::IUnknownImpl { fn AllocateBuffer(&self, dwmaxbuffersize: u32) -> windows_core::Result; fn AllocatePageSizeBuffer(&self, dwmaxbuffersize: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IWMSBufferAllocator {} impl IWMSBufferAllocator_Vtbl { - pub const fn new() -> IWMSBufferAllocator_Vtbl - where - Identity: IWMSBufferAllocator_Impl, - { - unsafe extern "system" fn AllocateBuffer(this: *mut core::ffi::c_void, dwmaxbuffersize: u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSBufferAllocator_Impl, - { + pub const fn new() -> IWMSBufferAllocator_Vtbl { + unsafe extern "system" fn AllocateBuffer(this: *mut core::ffi::c_void, dwmaxbuffersize: u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSBufferAllocator_Impl::AllocateBuffer(this, core::mem::transmute_copy(&dwmaxbuffersize)) { Ok(ok__) => { @@ -5007,10 +3735,7 @@ impl IWMSBufferAllocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AllocatePageSizeBuffer(this: *mut core::ffi::c_void, dwmaxbuffersize: u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSBufferAllocator_Impl, - { + unsafe extern "system" fn AllocatePageSizeBuffer(this: *mut core::ffi::c_void, dwmaxbuffersize: u32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSBufferAllocator_Impl::AllocatePageSizeBuffer(this, core::mem::transmute_copy(&dwmaxbuffersize)) { Ok(ok__) => { @@ -5030,7 +3755,7 @@ impl IWMSBufferAllocator_Vtbl { iid == &::IID } } -pub trait IWMSInternalAdminNetSource_Impl: Sized { +pub trait IWMSInternalAdminNetSource_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psharednamespace: Option<&windows_core::IUnknown>, pnamespacenode: Option<&windows_core::IUnknown>, pnetsourcecreator: Option<&INSNetSourceCreator>, fembeddedinserver: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetNetSourceCreator(&self) -> 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<()>; @@ -5045,21 +3770,12 @@ pub trait IWMSInternalAdminNetSource_Impl: Sized { } impl windows_core::RuntimeName for IWMSInternalAdminNetSource {} impl IWMSInternalAdminNetSource_Vtbl { - pub const fn new() -> IWMSInternalAdminNetSource_Vtbl - where - Identity: IWMSInternalAdminNetSource_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psharednamespace: *mut core::ffi::c_void, pnamespacenode: *mut core::ffi::c_void, pnetsourcecreator: *mut core::ffi::c_void, fembeddedinserver: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + pub const fn new() -> IWMSInternalAdminNetSource_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psharednamespace: *mut core::ffi::c_void, pnamespacenode: *mut core::ffi::c_void, pnetsourcecreator: *mut core::ffi::c_void, fembeddedinserver: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::Initialize(this, windows_core::from_raw_borrowed(&psharednamespace), windows_core::from_raw_borrowed(&pnamespacenode), windows_core::from_raw_borrowed(&pnetsourcecreator), core::mem::transmute_copy(&fembeddedinserver)).into() } - unsafe extern "system" fn GetNetSourceCreator(this: *mut core::ffi::c_void, ppnetsourcecreator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + unsafe extern "system" fn GetNetSourceCreator(this: *mut core::ffi::c_void, ppnetsourcecreator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSInternalAdminNetSource_Impl::GetNetSourceCreator(this) { Ok(ok__) => { @@ -5069,31 +3785,19 @@ impl IWMSInternalAdminNetSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::SetCredentials(this, 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(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, pbstrname: *mut core::mem::MaybeUninit, pbstrpassword: *mut core::mem::MaybeUninit, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + unsafe extern "system" fn GetCredentials(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, pbstrname: *mut core::mem::MaybeUninit, pbstrpassword: *mut core::mem::MaybeUninit, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::GetCredentials(this, 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(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + unsafe extern "system" fn DeleteCredentials(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::DeleteCredentials(this, core::mem::transmute(&bstrrealm)).into() } - unsafe extern "system" fn GetCredentialFlags(this: *mut core::ffi::c_void, lpdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + unsafe extern "system" fn GetCredentialFlags(this: *mut core::ffi::c_void, lpdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSInternalAdminNetSource_Impl::GetCredentialFlags(this) { Ok(ok__) => { @@ -5103,38 +3807,23 @@ impl IWMSInternalAdminNetSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentialFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + unsafe extern "system" fn SetCredentialFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::SetCredentialFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn FindProxyForURL(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, bstrhost: core::mem::MaybeUninit, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut core::mem::MaybeUninit, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + unsafe extern "system" fn FindProxyForURL(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, bstrhost: core::mem::MaybeUninit, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut core::mem::MaybeUninit, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::FindProxyForURL(this, 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() } - unsafe extern "system" fn RegisterProxyFailure(this: *mut core::ffi::c_void, hrparam: windows_core::HRESULT, dwproxycontext: u32) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + unsafe extern "system" fn RegisterProxyFailure(this: *mut core::ffi::c_void, hrparam: windows_core::HRESULT, dwproxycontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::RegisterProxyFailure(this, core::mem::transmute_copy(&hrparam), core::mem::transmute_copy(&dwproxycontext)).into() } - unsafe extern "system" fn ShutdownProxyContext(this: *mut core::ffi::c_void, dwproxycontext: u32) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + unsafe extern "system" fn ShutdownProxyContext(this: *mut core::ffi::c_void, dwproxycontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::ShutdownProxyContext(this, core::mem::transmute_copy(&dwproxycontext)).into() } - unsafe extern "system" fn IsUsingIE(this: *mut core::ffi::c_void, dwproxycontext: u32, pfisusingie: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource_Impl, - { + unsafe extern "system" fn IsUsingIE(this: *mut core::ffi::c_void, dwproxycontext: u32, pfisusingie: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSInternalAdminNetSource_Impl::IsUsingIE(this, core::mem::transmute_copy(&dwproxycontext)) { Ok(ok__) => { @@ -5163,7 +3852,7 @@ impl IWMSInternalAdminNetSource_Vtbl { iid == &::IID } } -pub trait IWMSInternalAdminNetSource2_Impl: Sized { +pub trait IWMSInternalAdminNetSource2_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -5171,35 +3860,20 @@ pub trait IWMSInternalAdminNetSource2_Impl: Sized { } impl windows_core::RuntimeName for IWMSInternalAdminNetSource2 {} impl IWMSInternalAdminNetSource2_Vtbl { - pub const fn new() -> IWMSInternalAdminNetSource2_Vtbl - where - Identity: IWMSInternalAdminNetSource2_Impl, - { - unsafe extern "system" fn SetCredentialsEx(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, fproxy: super::super::Foundation::BOOL, bstrname: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource2_Impl, - { + pub const fn new() -> IWMSInternalAdminNetSource2_Vtbl { + unsafe extern "system" fn SetCredentialsEx(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, fproxy: super::super::Foundation::BOOL, bstrname: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource2_Impl::SetCredentialsEx(this, 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(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, fproxy: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut core::mem::MaybeUninit, pbstrpassword: *mut core::mem::MaybeUninit, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource2_Impl, - { + unsafe extern "system" fn GetCredentialsEx(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, fproxy: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut core::mem::MaybeUninit, pbstrpassword: *mut core::mem::MaybeUninit, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource2_Impl::GetCredentialsEx(this, 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(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, fproxy: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource2_Impl, - { + unsafe extern "system" fn DeleteCredentialsEx(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, fproxy: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource2_Impl::DeleteCredentialsEx(this, core::mem::transmute(&bstrrealm), core::mem::transmute(&bstrurl), core::mem::transmute_copy(&fproxy)).into() } - unsafe extern "system" fn FindProxyForURLEx(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, bstrhost: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut core::mem::MaybeUninit, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource2_Impl, - { + unsafe extern "system" fn FindProxyForURLEx(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, bstrhost: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut core::mem::MaybeUninit, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource2_Impl::FindProxyForURLEx(this, 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() } @@ -5226,14 +3900,8 @@ pub trait IWMSInternalAdminNetSource3_Impl: Sized + IWMSInternalAdminNetSource2_ } impl windows_core::RuntimeName for IWMSInternalAdminNetSource3 {} impl IWMSInternalAdminNetSource3_Vtbl { - pub const fn new() -> IWMSInternalAdminNetSource3_Vtbl - where - Identity: IWMSInternalAdminNetSource3_Impl, - { - unsafe extern "system" fn GetNetSourceCreator2(this: *mut core::ffi::c_void, ppnetsourcecreator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource3_Impl, - { + pub const fn new() -> IWMSInternalAdminNetSource3_Vtbl { + unsafe extern "system" fn GetNetSourceCreator2(this: *mut core::ffi::c_void, ppnetsourcecreator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSInternalAdminNetSource3_Impl::GetNetSourceCreator2(this) { Ok(ok__) => { @@ -5243,31 +3911,19 @@ impl IWMSInternalAdminNetSource3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindProxyForURLEx2(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, bstrhost: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut core::mem::MaybeUninit, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource3_Impl, - { + unsafe extern "system" fn FindProxyForURLEx2(this: *mut core::ffi::c_void, bstrprotocol: core::mem::MaybeUninit, bstrhost: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut core::mem::MaybeUninit, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource3_Impl::FindProxyForURLEx2(this, 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() } - unsafe extern "system" fn RegisterProxyFailure2(this: *mut core::ffi::c_void, hrparam: windows_core::HRESULT, qwproxycontext: u64) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource3_Impl, - { + unsafe extern "system" fn RegisterProxyFailure2(this: *mut core::ffi::c_void, hrparam: windows_core::HRESULT, qwproxycontext: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource3_Impl::RegisterProxyFailure2(this, core::mem::transmute_copy(&hrparam), core::mem::transmute_copy(&qwproxycontext)).into() } - unsafe extern "system" fn ShutdownProxyContext2(this: *mut core::ffi::c_void, qwproxycontext: u64) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource3_Impl, - { + unsafe extern "system" fn ShutdownProxyContext2(this: *mut core::ffi::c_void, qwproxycontext: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource3_Impl::ShutdownProxyContext2(this, core::mem::transmute_copy(&qwproxycontext)).into() } - unsafe extern "system" fn IsUsingIE2(this: *mut core::ffi::c_void, qwproxycontext: u64, pfisusingie: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource3_Impl, - { + unsafe extern "system" fn IsUsingIE2(this: *mut core::ffi::c_void, qwproxycontext: u64, pfisusingie: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSInternalAdminNetSource3_Impl::IsUsingIE2(this, core::mem::transmute_copy(&qwproxycontext)) { Ok(ok__) => { @@ -5277,17 +3933,11 @@ impl IWMSInternalAdminNetSource3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentialsEx2(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, fproxy: super::super::Foundation::BOOL, bstrname: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource3_Impl, - { + unsafe extern "system" fn SetCredentialsEx2(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, fproxy: super::super::Foundation::BOOL, bstrname: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource3_Impl::SetCredentialsEx2(this, 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(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut core::mem::MaybeUninit, pbstrpassword: *mut core::mem::MaybeUninit, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSInternalAdminNetSource3_Impl, - { + unsafe extern "system" fn GetCredentialsEx2(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit, bstrurl: core::mem::MaybeUninit, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut core::mem::MaybeUninit, pbstrpassword: *mut core::mem::MaybeUninit, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource3_Impl::GetCredentialsEx2(this, 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() } @@ -5321,35 +3971,20 @@ pub trait IWMSecureChannel_Impl: Sized + IWMAuthorizer_Impl { } impl windows_core::RuntimeName for IWMSecureChannel {} impl IWMSecureChannel_Vtbl { - pub const fn new() -> IWMSecureChannel_Vtbl - where - Identity: IWMSecureChannel_Impl, - { - unsafe extern "system" fn WMSC_AddCertificate(this: *mut core::ffi::c_void, pcert: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + pub const fn new() -> IWMSecureChannel_Vtbl { + unsafe extern "system" fn WMSC_AddCertificate(this: *mut core::ffi::c_void, pcert: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSecureChannel_Impl::WMSC_AddCertificate(this, windows_core::from_raw_borrowed(&pcert)).into() } - unsafe extern "system" fn WMSC_AddSignature(this: *mut core::ffi::c_void, pbcertsig: *const u8, cbcertsig: u32) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + unsafe extern "system" fn WMSC_AddSignature(this: *mut core::ffi::c_void, pbcertsig: *const u8, cbcertsig: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSecureChannel_Impl::WMSC_AddSignature(this, core::mem::transmute_copy(&pbcertsig), core::mem::transmute_copy(&cbcertsig)).into() } - unsafe extern "system" fn WMSC_Connect(this: *mut core::ffi::c_void, potherside: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + unsafe extern "system" fn WMSC_Connect(this: *mut core::ffi::c_void, potherside: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSecureChannel_Impl::WMSC_Connect(this, windows_core::from_raw_borrowed(&potherside)).into() } - unsafe extern "system" fn WMSC_IsConnected(this: *mut core::ffi::c_void, pfisconnected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + unsafe extern "system" fn WMSC_IsConnected(this: *mut core::ffi::c_void, pfisconnected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSecureChannel_Impl::WMSC_IsConnected(this) { Ok(ok__) => { @@ -5359,52 +3994,31 @@ impl IWMSecureChannel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WMSC_Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + unsafe extern "system" fn WMSC_Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSecureChannel_Impl::WMSC_Disconnect(this).into() } - unsafe extern "system" fn WMSC_GetValidCertificate(this: *mut core::ffi::c_void, ppbcertificate: *mut *mut u8, pdwsignature: *mut u32) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + unsafe extern "system" fn WMSC_GetValidCertificate(this: *mut core::ffi::c_void, ppbcertificate: *mut *mut u8, pdwsignature: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSecureChannel_Impl::WMSC_GetValidCertificate(this, core::mem::transmute_copy(&ppbcertificate), core::mem::transmute_copy(&pdwsignature)).into() } - unsafe extern "system" fn WMSC_Encrypt(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + unsafe extern "system" fn WMSC_Encrypt(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSecureChannel_Impl::WMSC_Encrypt(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn WMSC_Decrypt(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + unsafe extern "system" fn WMSC_Decrypt(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSecureChannel_Impl::WMSC_Decrypt(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn WMSC_Lock(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + unsafe extern "system" fn WMSC_Lock(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSecureChannel_Impl::WMSC_Lock(this).into() } - unsafe extern "system" fn WMSC_Unlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + unsafe extern "system" fn WMSC_Unlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSecureChannel_Impl::WMSC_Unlock(this).into() } - unsafe extern "system" fn WMSC_SetSharedData(this: *mut core::ffi::c_void, dwcertindex: u32, pbshareddata: *const u8) -> windows_core::HRESULT - where - Identity: IWMSecureChannel_Impl, - { + unsafe extern "system" fn WMSC_SetSharedData(this: *mut core::ffi::c_void, dwcertindex: u32, pbshareddata: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSecureChannel_Impl::WMSC_SetSharedData(this, core::mem::transmute_copy(&dwcertindex), core::mem::transmute_copy(&pbshareddata)).into() } @@ -5427,19 +4041,13 @@ impl IWMSecureChannel_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMStatusCallback_Impl: Sized { +pub trait IWMStatusCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnStatus(&self, status: WMT_STATUS, hr: windows_core::HRESULT, dwtype: WMT_ATTR_DATATYPE, pvalue: *const u8, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMStatusCallback {} impl IWMStatusCallback_Vtbl { - pub const fn new() -> IWMStatusCallback_Vtbl - where - Identity: IWMStatusCallback_Impl, - { - unsafe extern "system" fn OnStatus(this: *mut core::ffi::c_void, status: WMT_STATUS, hr: windows_core::HRESULT, dwtype: WMT_ATTR_DATATYPE, pvalue: *const u8, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMStatusCallback_Impl, - { + pub const fn new() -> IWMStatusCallback_Vtbl { + unsafe extern "system" fn OnStatus(this: *mut core::ffi::c_void, status: WMT_STATUS, hr: windows_core::HRESULT, dwtype: WMT_ATTR_DATATYPE, pvalue: *const u8, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStatusCallback_Impl::OnStatus(this, core::mem::transmute_copy(&status), core::mem::transmute_copy(&hr), core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pvcontext)).into() } @@ -5449,7 +4057,7 @@ impl IWMStatusCallback_Vtbl { iid == &::IID } } -pub trait IWMStreamConfig_Impl: Sized { +pub trait IWMStreamConfig_Impl: Sized + windows_core::IUnknownImpl { fn GetStreamType(&self) -> windows_core::Result; fn GetStreamNumber(&self) -> windows_core::Result; fn SetStreamNumber(&self, wstreamnum: u16) -> windows_core::Result<()>; @@ -5464,14 +4072,8 @@ pub trait IWMStreamConfig_Impl: Sized { } impl windows_core::RuntimeName for IWMStreamConfig {} impl IWMStreamConfig_Vtbl { - pub const fn new() -> IWMStreamConfig_Vtbl - where - Identity: IWMStreamConfig_Impl, - { - unsafe extern "system" fn GetStreamType(this: *mut core::ffi::c_void, pguidstreamtype: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + pub const fn new() -> IWMStreamConfig_Vtbl { + unsafe extern "system" fn GetStreamType(this: *mut core::ffi::c_void, pguidstreamtype: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMStreamConfig_Impl::GetStreamType(this) { Ok(ok__) => { @@ -5481,10 +4083,7 @@ impl IWMStreamConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamNumber(this: *mut core::ffi::c_void, pwstreamnum: *mut u16) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + unsafe extern "system" fn GetStreamNumber(this: *mut core::ffi::c_void, pwstreamnum: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMStreamConfig_Impl::GetStreamNumber(this) { Ok(ok__) => { @@ -5494,45 +4093,27 @@ impl IWMStreamConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamNumber(this: *mut core::ffi::c_void, wstreamnum: u16) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + unsafe extern "system" fn SetStreamNumber(this: *mut core::ffi::c_void, wstreamnum: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig_Impl::SetStreamNumber(this, core::mem::transmute_copy(&wstreamnum)).into() } - unsafe extern "system" fn GetStreamName(this: *mut core::ffi::c_void, pwszstreamname: windows_core::PWSTR, pcchstreamname: *mut u16) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + unsafe extern "system" fn GetStreamName(this: *mut core::ffi::c_void, pwszstreamname: windows_core::PWSTR, pcchstreamname: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig_Impl::GetStreamName(this, core::mem::transmute_copy(&pwszstreamname), core::mem::transmute_copy(&pcchstreamname)).into() } - unsafe extern "system" fn SetStreamName(this: *mut core::ffi::c_void, pwszstreamname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + unsafe extern "system" fn SetStreamName(this: *mut core::ffi::c_void, pwszstreamname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig_Impl::SetStreamName(this, core::mem::transmute(&pwszstreamname)).into() } - unsafe extern "system" fn GetConnectionName(this: *mut core::ffi::c_void, pwszinputname: windows_core::PWSTR, pcchinputname: *mut u16) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + unsafe extern "system" fn GetConnectionName(this: *mut core::ffi::c_void, pwszinputname: windows_core::PWSTR, pcchinputname: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig_Impl::GetConnectionName(this, core::mem::transmute_copy(&pwszinputname), core::mem::transmute_copy(&pcchinputname)).into() } - unsafe extern "system" fn SetConnectionName(this: *mut core::ffi::c_void, pwszinputname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + unsafe extern "system" fn SetConnectionName(this: *mut core::ffi::c_void, pwszinputname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig_Impl::SetConnectionName(this, core::mem::transmute(&pwszinputname)).into() } - unsafe extern "system" fn GetBitrate(this: *mut core::ffi::c_void, pdwbitrate: *mut u32) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + unsafe extern "system" fn GetBitrate(this: *mut core::ffi::c_void, pdwbitrate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMStreamConfig_Impl::GetBitrate(this) { Ok(ok__) => { @@ -5542,17 +4123,11 @@ impl IWMStreamConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBitrate(this: *mut core::ffi::c_void, pdwbitrate: u32) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + unsafe extern "system" fn SetBitrate(this: *mut core::ffi::c_void, pdwbitrate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig_Impl::SetBitrate(this, core::mem::transmute_copy(&pdwbitrate)).into() } - unsafe extern "system" fn GetBufferWindow(this: *mut core::ffi::c_void, pmsbufferwindow: *mut u32) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + unsafe extern "system" fn GetBufferWindow(this: *mut core::ffi::c_void, pmsbufferwindow: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMStreamConfig_Impl::GetBufferWindow(this) { Ok(ok__) => { @@ -5562,10 +4137,7 @@ impl IWMStreamConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferWindow(this: *mut core::ffi::c_void, msbufferwindow: u32) -> windows_core::HRESULT - where - Identity: IWMStreamConfig_Impl, - { + unsafe extern "system" fn SetBufferWindow(this: *mut core::ffi::c_void, msbufferwindow: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig_Impl::SetBufferWindow(this, core::mem::transmute_copy(&msbufferwindow)).into() } @@ -5598,14 +4170,8 @@ pub trait IWMStreamConfig2_Impl: Sized + IWMStreamConfig_Impl { } impl windows_core::RuntimeName for IWMStreamConfig2 {} impl IWMStreamConfig2_Vtbl { - pub const fn new() -> IWMStreamConfig2_Vtbl - where - Identity: IWMStreamConfig2_Impl, - { - unsafe extern "system" fn GetTransportType(this: *mut core::ffi::c_void, pntransporttype: *mut WMT_TRANSPORT_TYPE) -> windows_core::HRESULT - where - Identity: IWMStreamConfig2_Impl, - { + pub const fn new() -> IWMStreamConfig2_Vtbl { + unsafe extern "system" fn GetTransportType(this: *mut core::ffi::c_void, pntransporttype: *mut WMT_TRANSPORT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMStreamConfig2_Impl::GetTransportType(this) { Ok(ok__) => { @@ -5615,24 +4181,15 @@ impl IWMStreamConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransportType(this: *mut core::ffi::c_void, ntransporttype: WMT_TRANSPORT_TYPE) -> windows_core::HRESULT - where - Identity: IWMStreamConfig2_Impl, - { + unsafe extern "system" fn SetTransportType(this: *mut core::ffi::c_void, ntransporttype: WMT_TRANSPORT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig2_Impl::SetTransportType(this, core::mem::transmute_copy(&ntransporttype)).into() } - unsafe extern "system" fn AddDataUnitExtension(this: *mut core::ffi::c_void, guidextensionsystemid: windows_core::GUID, cbextensiondatasize: u16, pbextensionsysteminfo: *const u8, cbextensionsysteminfo: u32) -> windows_core::HRESULT - where - Identity: IWMStreamConfig2_Impl, - { + unsafe extern "system" fn AddDataUnitExtension(this: *mut core::ffi::c_void, guidextensionsystemid: windows_core::GUID, cbextensiondatasize: u16, pbextensionsysteminfo: *const u8, cbextensionsysteminfo: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig2_Impl::AddDataUnitExtension(this, core::mem::transmute(&guidextensionsystemid), core::mem::transmute_copy(&cbextensiondatasize), core::mem::transmute_copy(&pbextensionsysteminfo), core::mem::transmute_copy(&cbextensionsysteminfo)).into() } - unsafe extern "system" fn GetDataUnitExtensionCount(this: *mut core::ffi::c_void, pcdataunitextensions: *mut u16) -> windows_core::HRESULT - where - Identity: IWMStreamConfig2_Impl, - { + unsafe extern "system" fn GetDataUnitExtensionCount(this: *mut core::ffi::c_void, pcdataunitextensions: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMStreamConfig2_Impl::GetDataUnitExtensionCount(this) { Ok(ok__) => { @@ -5642,17 +4199,11 @@ impl IWMStreamConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataUnitExtension(this: *mut core::ffi::c_void, wdataunitextensionnumber: u16, pguidextensionsystemid: *mut windows_core::GUID, pcbextensiondatasize: *mut u16, pbextensionsysteminfo: *mut u8, pcbextensionsysteminfo: *mut u32) -> windows_core::HRESULT - where - Identity: IWMStreamConfig2_Impl, - { + unsafe extern "system" fn GetDataUnitExtension(this: *mut core::ffi::c_void, wdataunitextensionnumber: u16, pguidextensionsystemid: *mut windows_core::GUID, pcbextensiondatasize: *mut u16, pbextensionsysteminfo: *mut u8, pcbextensionsysteminfo: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig2_Impl::GetDataUnitExtension(this, core::mem::transmute_copy(&wdataunitextensionnumber), core::mem::transmute_copy(&pguidextensionsystemid), core::mem::transmute_copy(&pcbextensiondatasize), core::mem::transmute_copy(&pbextensionsysteminfo), core::mem::transmute_copy(&pcbextensionsysteminfo)).into() } - unsafe extern "system" fn RemoveAllDataUnitExtensions(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMStreamConfig2_Impl, - { + unsafe extern "system" fn RemoveAllDataUnitExtensions(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig2_Impl::RemoveAllDataUnitExtensions(this).into() } @@ -5676,21 +4227,12 @@ pub trait IWMStreamConfig3_Impl: Sized + IWMStreamConfig2_Impl { } impl windows_core::RuntimeName for IWMStreamConfig3 {} impl IWMStreamConfig3_Vtbl { - pub const fn new() -> IWMStreamConfig3_Vtbl - where - Identity: IWMStreamConfig3_Impl, - { - unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, pwszlanguagestring: windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMStreamConfig3_Impl, - { + pub const fn new() -> IWMStreamConfig3_Vtbl { + unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, pwszlanguagestring: windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig3_Impl::GetLanguage(this, core::mem::transmute_copy(&pwszlanguagestring), core::mem::transmute_copy(&pcchlanguagestringlength)).into() } - unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, pwszlanguagestring: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMStreamConfig3_Impl, - { + unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, pwszlanguagestring: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamConfig3_Impl::SetLanguage(this, core::mem::transmute(&pwszlanguagestring)).into() } @@ -5704,35 +4246,23 @@ impl IWMStreamConfig3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWMStreamList_Impl: Sized { +pub trait IWMStreamList_Impl: Sized + windows_core::IUnknownImpl { fn GetStreams(&self, pwstreamnumarray: *mut u16, pcstreams: *mut u16) -> windows_core::Result<()>; fn AddStream(&self, wstreamnum: u16) -> windows_core::Result<()>; fn RemoveStream(&self, wstreamnum: u16) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMStreamList {} impl IWMStreamList_Vtbl { - pub const fn new() -> IWMStreamList_Vtbl - where - Identity: IWMStreamList_Impl, - { - unsafe extern "system" fn GetStreams(this: *mut core::ffi::c_void, pwstreamnumarray: *mut u16, pcstreams: *mut u16) -> windows_core::HRESULT - where - Identity: IWMStreamList_Impl, - { + pub const fn new() -> IWMStreamList_Vtbl { + unsafe extern "system" fn GetStreams(this: *mut core::ffi::c_void, pwstreamnumarray: *mut u16, pcstreams: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamList_Impl::GetStreams(this, core::mem::transmute_copy(&pwstreamnumarray), core::mem::transmute_copy(&pcstreams)).into() } - unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, wstreamnum: u16) -> windows_core::HRESULT - where - Identity: IWMStreamList_Impl, - { + unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, wstreamnum: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamList_Impl::AddStream(this, core::mem::transmute_copy(&wstreamnum)).into() } - unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, wstreamnum: u16) -> windows_core::HRESULT - where - Identity: IWMStreamList_Impl, - { + unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, wstreamnum: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamList_Impl::RemoveStream(this, core::mem::transmute_copy(&wstreamnum)).into() } @@ -5747,27 +4277,18 @@ impl IWMStreamList_Vtbl { iid == &::IID } } -pub trait IWMStreamPrioritization_Impl: Sized { +pub trait IWMStreamPrioritization_Impl: Sized + windows_core::IUnknownImpl { fn GetPriorityRecords(&self, precordarray: *mut WM_STREAM_PRIORITY_RECORD, pcrecords: *mut u16) -> windows_core::Result<()>; fn SetPriorityRecords(&self, precordarray: *const WM_STREAM_PRIORITY_RECORD, crecords: u16) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMStreamPrioritization {} impl IWMStreamPrioritization_Vtbl { - pub const fn new() -> IWMStreamPrioritization_Vtbl - where - Identity: IWMStreamPrioritization_Impl, - { - unsafe extern "system" fn GetPriorityRecords(this: *mut core::ffi::c_void, precordarray: *mut WM_STREAM_PRIORITY_RECORD, pcrecords: *mut u16) -> windows_core::HRESULT - where - Identity: IWMStreamPrioritization_Impl, - { + pub const fn new() -> IWMStreamPrioritization_Vtbl { + unsafe extern "system" fn GetPriorityRecords(this: *mut core::ffi::c_void, precordarray: *mut WM_STREAM_PRIORITY_RECORD, pcrecords: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamPrioritization_Impl::GetPriorityRecords(this, core::mem::transmute_copy(&precordarray), core::mem::transmute_copy(&pcrecords)).into() } - unsafe extern "system" fn SetPriorityRecords(this: *mut core::ffi::c_void, precordarray: *const WM_STREAM_PRIORITY_RECORD, crecords: u16) -> windows_core::HRESULT - where - Identity: IWMStreamPrioritization_Impl, - { + unsafe extern "system" fn SetPriorityRecords(this: *mut core::ffi::c_void, precordarray: *const WM_STREAM_PRIORITY_RECORD, crecords: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMStreamPrioritization_Impl::SetPriorityRecords(this, core::mem::transmute_copy(&precordarray), core::mem::transmute_copy(&crecords)).into() } @@ -5782,7 +4303,7 @@ impl IWMStreamPrioritization_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWMSyncReader_Impl: Sized { +pub trait IWMSyncReader_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, pwszfilename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn SetRange(&self, cnsstarttime: u64, cnsduration: i64) -> windows_core::Result<()>; @@ -5809,56 +4330,32 @@ pub trait IWMSyncReader_Impl: Sized { impl windows_core::RuntimeName for IWMSyncReader {} #[cfg(feature = "Win32_System_Com")] impl IWMSyncReader_Vtbl { - pub const fn new() -> IWMSyncReader_Vtbl - where - Identity: IWMSyncReader_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + pub const fn new() -> IWMSyncReader_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::Open(this, core::mem::transmute(&pwszfilename)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::Close(this).into() } - unsafe extern "system" fn SetRange(this: *mut core::ffi::c_void, cnsstarttime: u64, cnsduration: i64) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn SetRange(this: *mut core::ffi::c_void, cnsstarttime: u64, cnsduration: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::SetRange(this, core::mem::transmute_copy(&cnsstarttime), core::mem::transmute_copy(&cnsduration)).into() } - unsafe extern "system" fn SetRangeByFrame(this: *mut core::ffi::c_void, wstreamnum: u16, qwframenumber: u64, cframestoread: i64) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn SetRangeByFrame(this: *mut core::ffi::c_void, wstreamnum: u16, qwframenumber: u64, cframestoread: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::SetRangeByFrame(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&qwframenumber), core::mem::transmute_copy(&cframestoread)).into() } - unsafe extern "system" fn GetNextSample(this: *mut core::ffi::c_void, wstreamnum: u16, ppsample: *mut *mut core::ffi::c_void, pcnssampletime: *mut u64, pcnsduration: *mut u64, pdwflags: *mut u32, pdwoutputnum: *mut u32, pwstreamnum: *mut u16) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetNextSample(this: *mut core::ffi::c_void, wstreamnum: u16, ppsample: *mut *mut core::ffi::c_void, pcnssampletime: *mut u64, pcnsduration: *mut u64, pdwflags: *mut u32, pdwoutputnum: *mut u32, pwstreamnum: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::GetNextSample(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&ppsample), core::mem::transmute_copy(&pcnssampletime), core::mem::transmute_copy(&pcnsduration), core::mem::transmute_copy(&pdwflags), core::mem::transmute_copy(&pdwoutputnum), core::mem::transmute_copy(&pwstreamnum)).into() } - unsafe extern "system" fn SetStreamsSelected(this: *mut core::ffi::c_void, cstreamcount: u16, pwstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn SetStreamsSelected(this: *mut core::ffi::c_void, cstreamcount: u16, pwstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::SetStreamsSelected(this, core::mem::transmute_copy(&cstreamcount), core::mem::transmute_copy(&pwstreamnumbers), core::mem::transmute_copy(&pselections)).into() } - unsafe extern "system" fn GetStreamSelected(this: *mut core::ffi::c_void, wstreamnum: u16, pselection: *mut WMT_STREAM_SELECTION) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetStreamSelected(this: *mut core::ffi::c_void, wstreamnum: u16, pselection: *mut WMT_STREAM_SELECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetStreamSelected(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -5868,17 +4365,11 @@ impl IWMSyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReadStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, fcompressed: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn SetReadStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, fcompressed: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::SetReadStreamSamples(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&fcompressed)).into() } - unsafe extern "system" fn GetReadStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfcompressed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetReadStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfcompressed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetReadStreamSamples(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -5888,24 +4379,15 @@ impl IWMSyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputSetting(this: *mut core::ffi::c_void, dwoutputnum: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetOutputSetting(this: *mut core::ffi::c_void, dwoutputnum: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::GetOutputSetting(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn SetOutputSetting(this: *mut core::ffi::c_void, dwoutputnum: u32, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn SetOutputSetting(this: *mut core::ffi::c_void, dwoutputnum: u32, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::SetOutputSetting(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute(&pszname), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cblength)).into() } - unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void, pcoutputs: *mut u32) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetOutputCount(this: *mut core::ffi::c_void, pcoutputs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetOutputCount(this) { Ok(ok__) => { @@ -5915,10 +4397,7 @@ impl IWMSyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputProps(this: *mut core::ffi::c_void, dwoutputnum: u32, ppoutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetOutputProps(this: *mut core::ffi::c_void, dwoutputnum: u32, ppoutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetOutputProps(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -5928,17 +4407,11 @@ impl IWMSyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputProps(this: *mut core::ffi::c_void, dwoutputnum: u32, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn SetOutputProps(this: *mut core::ffi::c_void, dwoutputnum: u32, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::SetOutputProps(this, core::mem::transmute_copy(&dwoutputnum), windows_core::from_raw_borrowed(&poutput)).into() } - unsafe extern "system" fn GetOutputFormatCount(this: *mut core::ffi::c_void, dwoutputnum: u32, pcformats: *mut u32) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetOutputFormatCount(this: *mut core::ffi::c_void, dwoutputnum: u32, pcformats: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetOutputFormatCount(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -5948,10 +4421,7 @@ impl IWMSyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputFormat(this: *mut core::ffi::c_void, dwoutputnum: u32, dwformatnum: u32, ppprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetOutputFormat(this: *mut core::ffi::c_void, dwoutputnum: u32, dwformatnum: u32, ppprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetOutputFormat(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&dwformatnum)) { Ok(ok__) => { @@ -5961,10 +4431,7 @@ impl IWMSyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputNumberForStream(this: *mut core::ffi::c_void, wstreamnum: u16, pdwoutputnum: *mut u32) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetOutputNumberForStream(this: *mut core::ffi::c_void, wstreamnum: u16, pdwoutputnum: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetOutputNumberForStream(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -5974,10 +4441,7 @@ impl IWMSyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamNumberForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, pwstreamnum: *mut u16) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetStreamNumberForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, pwstreamnum: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetStreamNumberForOutput(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -5987,10 +4451,7 @@ impl IWMSyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxOutputSampleSize(this: *mut core::ffi::c_void, dwoutput: u32, pcbmax: *mut u32) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetMaxOutputSampleSize(this: *mut core::ffi::c_void, dwoutput: u32, pcbmax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetMaxOutputSampleSize(this, core::mem::transmute_copy(&dwoutput)) { Ok(ok__) => { @@ -6000,10 +4461,7 @@ impl IWMSyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxStreamSampleSize(this: *mut core::ffi::c_void, wstream: u16, pcbmax: *mut u32) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn GetMaxStreamSampleSize(this: *mut core::ffi::c_void, wstream: u16, pcbmax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetMaxStreamSampleSize(this, core::mem::transmute_copy(&wstream)) { Ok(ok__) => { @@ -6013,10 +4471,7 @@ impl IWMSyncReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSyncReader_Impl, - { + unsafe extern "system" fn OpenStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::OpenStream(this, windows_core::from_raw_borrowed(&pstream)).into() } @@ -6062,21 +4517,12 @@ pub trait IWMSyncReader2_Impl: Sized + IWMSyncReader_Impl { impl windows_core::RuntimeName for IWMSyncReader2 {} #[cfg(feature = "Win32_System_Com")] impl IWMSyncReader2_Vtbl { - pub const fn new() -> IWMSyncReader2_Vtbl - where - Identity: IWMSyncReader2_Impl, - { - unsafe extern "system" fn SetRangeByTimecode(this: *mut core::ffi::c_void, wstreamnum: u16, pstart: *const WMT_TIMECODE_EXTENSION_DATA, pend: *const WMT_TIMECODE_EXTENSION_DATA) -> windows_core::HRESULT - where - Identity: IWMSyncReader2_Impl, - { + pub const fn new() -> IWMSyncReader2_Vtbl { + unsafe extern "system" fn SetRangeByTimecode(this: *mut core::ffi::c_void, wstreamnum: u16, pstart: *const WMT_TIMECODE_EXTENSION_DATA, pend: *const WMT_TIMECODE_EXTENSION_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader2_Impl::SetRangeByTimecode(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&pstart), core::mem::transmute_copy(&pend)).into() } - unsafe extern "system" fn SetRangeByFrameEx(this: *mut core::ffi::c_void, wstreamnum: u16, qwframenumber: u64, cframestoread: i64, pcnsstarttime: *mut u64) -> windows_core::HRESULT - where - Identity: IWMSyncReader2_Impl, - { + unsafe extern "system" fn SetRangeByFrameEx(this: *mut core::ffi::c_void, wstreamnum: u16, qwframenumber: u64, cframestoread: i64, pcnsstarttime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader2_Impl::SetRangeByFrameEx(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&qwframenumber), core::mem::transmute_copy(&cframestoread)) { Ok(ok__) => { @@ -6086,17 +4532,11 @@ impl IWMSyncReader2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSyncReader2_Impl, - { + unsafe extern "system" fn SetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader2_Impl::SetAllocateForOutput(this, core::mem::transmute_copy(&dwoutputnum), windows_core::from_raw_borrowed(&pallocator)).into() } - unsafe extern "system" fn GetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, ppallocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSyncReader2_Impl, - { + unsafe extern "system" fn GetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, ppallocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader2_Impl::GetAllocateForOutput(this, core::mem::transmute_copy(&dwoutputnum)) { Ok(ok__) => { @@ -6106,17 +4546,11 @@ impl IWMSyncReader2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllocateForStream(this: *mut core::ffi::c_void, wstreamnum: u16, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSyncReader2_Impl, - { + unsafe extern "system" fn SetAllocateForStream(this: *mut core::ffi::c_void, wstreamnum: u16, pallocator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader2_Impl::SetAllocateForStream(this, core::mem::transmute_copy(&wstreamnum), windows_core::from_raw_borrowed(&pallocator)).into() } - unsafe extern "system" fn GetAllocateForStream(this: *mut core::ffi::c_void, dwsreamnum: u16, ppallocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMSyncReader2_Impl, - { + unsafe extern "system" fn GetAllocateForStream(this: *mut core::ffi::c_void, dwsreamnum: u16, ppallocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader2_Impl::GetAllocateForStream(this, core::mem::transmute_copy(&dwsreamnum)) { Ok(ok__) => { @@ -6148,14 +4582,8 @@ pub trait IWMVideoMediaProps_Impl: Sized + IWMMediaProps_Impl { } impl windows_core::RuntimeName for IWMVideoMediaProps {} impl IWMVideoMediaProps_Vtbl { - pub const fn new() -> IWMVideoMediaProps_Vtbl - where - Identity: IWMVideoMediaProps_Impl, - { - unsafe extern "system" fn GetMaxKeyFrameSpacing(this: *mut core::ffi::c_void, plltime: *mut i64) -> windows_core::HRESULT - where - Identity: IWMVideoMediaProps_Impl, - { + pub const fn new() -> IWMVideoMediaProps_Vtbl { + unsafe extern "system" fn GetMaxKeyFrameSpacing(this: *mut core::ffi::c_void, plltime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMVideoMediaProps_Impl::GetMaxKeyFrameSpacing(this) { Ok(ok__) => { @@ -6165,17 +4593,11 @@ impl IWMVideoMediaProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxKeyFrameSpacing(this: *mut core::ffi::c_void, lltime: i64) -> windows_core::HRESULT - where - Identity: IWMVideoMediaProps_Impl, - { + unsafe extern "system" fn SetMaxKeyFrameSpacing(this: *mut core::ffi::c_void, lltime: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMVideoMediaProps_Impl::SetMaxKeyFrameSpacing(this, core::mem::transmute_copy(&lltime)).into() } - unsafe extern "system" fn GetQuality(this: *mut core::ffi::c_void, pdwquality: *mut u32) -> windows_core::HRESULT - where - Identity: IWMVideoMediaProps_Impl, - { + unsafe extern "system" fn GetQuality(this: *mut core::ffi::c_void, pdwquality: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMVideoMediaProps_Impl::GetQuality(this) { Ok(ok__) => { @@ -6185,10 +4607,7 @@ impl IWMVideoMediaProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuality(this: *mut core::ffi::c_void, dwquality: u32) -> windows_core::HRESULT - where - Identity: IWMVideoMediaProps_Impl, - { + unsafe extern "system" fn SetQuality(this: *mut core::ffi::c_void, dwquality: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMVideoMediaProps_Impl::SetQuality(this, core::mem::transmute_copy(&dwquality)).into() } @@ -6204,20 +4623,14 @@ impl IWMVideoMediaProps_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMWatermarkInfo_Impl: Sized { +pub trait IWMWatermarkInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetWatermarkEntryCount(&self, wmettype: WMT_WATERMARK_ENTRY_TYPE) -> windows_core::Result; fn GetWatermarkEntry(&self, wmettype: WMT_WATERMARK_ENTRY_TYPE, dwentrynum: u32, pentry: *mut WMT_WATERMARK_ENTRY) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWMWatermarkInfo {} impl IWMWatermarkInfo_Vtbl { - pub const fn new() -> IWMWatermarkInfo_Vtbl - where - Identity: IWMWatermarkInfo_Impl, - { - unsafe extern "system" fn GetWatermarkEntryCount(this: *mut core::ffi::c_void, wmettype: WMT_WATERMARK_ENTRY_TYPE, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWatermarkInfo_Impl, - { + pub const fn new() -> IWMWatermarkInfo_Vtbl { + unsafe extern "system" fn GetWatermarkEntryCount(this: *mut core::ffi::c_void, wmettype: WMT_WATERMARK_ENTRY_TYPE, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWatermarkInfo_Impl::GetWatermarkEntryCount(this, core::mem::transmute_copy(&wmettype)) { Ok(ok__) => { @@ -6227,10 +4640,7 @@ impl IWMWatermarkInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWatermarkEntry(this: *mut core::ffi::c_void, wmettype: WMT_WATERMARK_ENTRY_TYPE, dwentrynum: u32, pentry: *mut WMT_WATERMARK_ENTRY) -> windows_core::HRESULT - where - Identity: IWMWatermarkInfo_Impl, - { + unsafe extern "system" fn GetWatermarkEntry(this: *mut core::ffi::c_void, wmettype: WMT_WATERMARK_ENTRY_TYPE, dwentrynum: u32, pentry: *mut WMT_WATERMARK_ENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWatermarkInfo_Impl::GetWatermarkEntry(this, core::mem::transmute_copy(&wmettype), core::mem::transmute_copy(&dwentrynum), core::mem::transmute_copy(&pentry)).into() } @@ -6244,7 +4654,7 @@ impl IWMWatermarkInfo_Vtbl { iid == &::IID } } -pub trait IWMWriter_Impl: Sized { +pub trait IWMWriter_Impl: Sized + windows_core::IUnknownImpl { fn SetProfileByID(&self, guidprofile: *const windows_core::GUID) -> windows_core::Result<()>; fn SetProfile(&self, pprofile: Option<&IWMProfile>) -> windows_core::Result<()>; fn SetOutputFilename(&self, pwszfilename: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -6261,35 +4671,20 @@ pub trait IWMWriter_Impl: Sized { } impl windows_core::RuntimeName for IWMWriter {} impl IWMWriter_Vtbl { - pub const fn new() -> IWMWriter_Vtbl - where - Identity: IWMWriter_Impl, - { - unsafe extern "system" fn SetProfileByID(this: *mut core::ffi::c_void, guidprofile: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + pub const fn new() -> IWMWriter_Vtbl { + unsafe extern "system" fn SetProfileByID(this: *mut core::ffi::c_void, guidprofile: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriter_Impl::SetProfileByID(this, core::mem::transmute_copy(&guidprofile)).into() } - unsafe extern "system" fn SetProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn SetProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriter_Impl::SetProfile(this, windows_core::from_raw_borrowed(&pprofile)).into() } - unsafe extern "system" fn SetOutputFilename(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn SetOutputFilename(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriter_Impl::SetOutputFilename(this, core::mem::transmute(&pwszfilename)).into() } - unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void, pcinputs: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn GetInputCount(this: *mut core::ffi::c_void, pcinputs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriter_Impl::GetInputCount(this) { Ok(ok__) => { @@ -6299,10 +4694,7 @@ impl IWMWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputProps(this: *mut core::ffi::c_void, dwinputnum: u32, ppinput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn GetInputProps(this: *mut core::ffi::c_void, dwinputnum: u32, ppinput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriter_Impl::GetInputProps(this, core::mem::transmute_copy(&dwinputnum)) { Ok(ok__) => { @@ -6312,17 +4704,11 @@ impl IWMWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputProps(this: *mut core::ffi::c_void, dwinputnum: u32, pinput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn SetInputProps(this: *mut core::ffi::c_void, dwinputnum: u32, pinput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriter_Impl::SetInputProps(this, core::mem::transmute_copy(&dwinputnum), windows_core::from_raw_borrowed(&pinput)).into() } - unsafe extern "system" fn GetInputFormatCount(this: *mut core::ffi::c_void, dwinputnumber: u32, pcformats: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn GetInputFormatCount(this: *mut core::ffi::c_void, dwinputnumber: u32, pcformats: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriter_Impl::GetInputFormatCount(this, core::mem::transmute_copy(&dwinputnumber)) { Ok(ok__) => { @@ -6332,10 +4718,7 @@ impl IWMWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputFormat(this: *mut core::ffi::c_void, dwinputnumber: u32, dwformatnumber: u32, pprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn GetInputFormat(this: *mut core::ffi::c_void, dwinputnumber: u32, dwformatnumber: u32, pprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriter_Impl::GetInputFormat(this, core::mem::transmute_copy(&dwinputnumber), core::mem::transmute_copy(&dwformatnumber)) { Ok(ok__) => { @@ -6345,24 +4728,15 @@ impl IWMWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginWriting(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn BeginWriting(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriter_Impl::BeginWriting(this).into() } - unsafe extern "system" fn EndWriting(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn EndWriting(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriter_Impl::EndWriting(this).into() } - unsafe extern "system" fn AllocateSample(this: *mut core::ffi::c_void, dwsamplesize: u32, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn AllocateSample(this: *mut core::ffi::c_void, dwsamplesize: u32, ppsample: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriter_Impl::AllocateSample(this, core::mem::transmute_copy(&dwsamplesize)) { Ok(ok__) => { @@ -6372,17 +4746,11 @@ impl IWMWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteSample(this: *mut core::ffi::c_void, dwinputnum: u32, cnssampletime: u64, dwflags: u32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn WriteSample(this: *mut core::ffi::c_void, dwinputnum: u32, cnssampletime: u64, dwflags: u32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriter_Impl::WriteSample(this, core::mem::transmute_copy(&dwinputnum), core::mem::transmute_copy(&cnssampletime), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psample)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriter_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriter_Impl::Flush(this).into() } @@ -6407,7 +4775,7 @@ impl IWMWriter_Vtbl { iid == &::IID } } -pub trait IWMWriterAdvanced_Impl: Sized { +pub trait IWMWriterAdvanced_Impl: Sized + windows_core::IUnknownImpl { fn GetSinkCount(&self) -> windows_core::Result; fn GetSink(&self, dwsinknum: u32) -> windows_core::Result; fn AddSink(&self, psink: Option<&IWMWriterSink>) -> windows_core::Result<()>; @@ -6422,14 +4790,8 @@ pub trait IWMWriterAdvanced_Impl: Sized { } impl windows_core::RuntimeName for IWMWriterAdvanced {} impl IWMWriterAdvanced_Vtbl { - pub const fn new() -> IWMWriterAdvanced_Vtbl - where - Identity: IWMWriterAdvanced_Impl, - { - unsafe extern "system" fn GetSinkCount(this: *mut core::ffi::c_void, pcsinks: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + pub const fn new() -> IWMWriterAdvanced_Vtbl { + unsafe extern "system" fn GetSinkCount(this: *mut core::ffi::c_void, pcsinks: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterAdvanced_Impl::GetSinkCount(this) { Ok(ok__) => { @@ -6439,10 +4801,7 @@ impl IWMWriterAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSink(this: *mut core::ffi::c_void, dwsinknum: u32, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + unsafe extern "system" fn GetSink(this: *mut core::ffi::c_void, dwsinknum: u32, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterAdvanced_Impl::GetSink(this, core::mem::transmute_copy(&dwsinknum)) { Ok(ok__) => { @@ -6452,38 +4811,23 @@ impl IWMWriterAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + unsafe extern "system" fn AddSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced_Impl::AddSink(this, windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn RemoveSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + unsafe extern "system" fn RemoveSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced_Impl::RemoveSink(this, windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn WriteStreamSample(this: *mut core::ffi::c_void, wstreamnum: u16, cnssampletime: u64, mssamplesendtime: u32, cnssampleduration: u64, dwflags: u32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + unsafe extern "system" fn WriteStreamSample(this: *mut core::ffi::c_void, wstreamnum: u16, cnssampletime: u64, mssamplesendtime: u32, cnssampleduration: u64, dwflags: u32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced_Impl::WriteStreamSample(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&cnssampletime), core::mem::transmute_copy(&mssamplesendtime), core::mem::transmute_copy(&cnssampleduration), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psample)).into() } - unsafe extern "system" fn SetLiveSource(this: *mut core::ffi::c_void, fislivesource: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + unsafe extern "system" fn SetLiveSource(this: *mut core::ffi::c_void, fislivesource: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced_Impl::SetLiveSource(this, core::mem::transmute_copy(&fislivesource)).into() } - unsafe extern "system" fn IsRealTime(this: *mut core::ffi::c_void, pfrealtime: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + unsafe extern "system" fn IsRealTime(this: *mut core::ffi::c_void, pfrealtime: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterAdvanced_Impl::IsRealTime(this) { Ok(ok__) => { @@ -6493,10 +4837,7 @@ impl IWMWriterAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWriterTime(this: *mut core::ffi::c_void, pcnscurrenttime: *mut u64) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + unsafe extern "system" fn GetWriterTime(this: *mut core::ffi::c_void, pcnscurrenttime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterAdvanced_Impl::GetWriterTime(this) { Ok(ok__) => { @@ -6506,24 +4847,15 @@ impl IWMWriterAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, wstreamnum: u16, pstats: *mut WM_WRITER_STATISTICS) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, wstreamnum: u16, pstats: *mut WM_WRITER_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced_Impl::GetStatistics(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&pstats)).into() } - unsafe extern "system" fn SetSyncTolerance(this: *mut core::ffi::c_void, mswindow: u32) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + unsafe extern "system" fn SetSyncTolerance(this: *mut core::ffi::c_void, mswindow: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced_Impl::SetSyncTolerance(this, core::mem::transmute_copy(&mswindow)).into() } - unsafe extern "system" fn GetSyncTolerance(this: *mut core::ffi::c_void, pmswindow: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced_Impl, - { + unsafe extern "system" fn GetSyncTolerance(this: *mut core::ffi::c_void, pmswindow: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterAdvanced_Impl::GetSyncTolerance(this) { Ok(ok__) => { @@ -6558,21 +4890,12 @@ pub trait IWMWriterAdvanced2_Impl: Sized + IWMWriterAdvanced_Impl { } impl windows_core::RuntimeName for IWMWriterAdvanced2 {} impl IWMWriterAdvanced2_Vtbl { - pub const fn new() -> IWMWriterAdvanced2_Vtbl - where - Identity: IWMWriterAdvanced2_Impl, - { - unsafe extern "system" fn GetInputSetting(this: *mut core::ffi::c_void, dwinputnum: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced2_Impl, - { + pub const fn new() -> IWMWriterAdvanced2_Vtbl { + unsafe extern "system" fn GetInputSetting(this: *mut core::ffi::c_void, dwinputnum: u32, pszname: windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced2_Impl::GetInputSetting(this, core::mem::transmute_copy(&dwinputnum), core::mem::transmute(&pszname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pcblength)).into() } - unsafe extern "system" fn SetInputSetting(this: *mut core::ffi::c_void, dwinputnum: u32, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced2_Impl, - { + unsafe extern "system" fn SetInputSetting(this: *mut core::ffi::c_void, dwinputnum: u32, pszname: windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced2_Impl::SetInputSetting(this, core::mem::transmute_copy(&dwinputnum), core::mem::transmute(&pszname), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cblength)).into() } @@ -6592,21 +4915,12 @@ pub trait IWMWriterAdvanced3_Impl: Sized + IWMWriterAdvanced2_Impl { } impl windows_core::RuntimeName for IWMWriterAdvanced3 {} impl IWMWriterAdvanced3_Vtbl { - pub const fn new() -> IWMWriterAdvanced3_Vtbl - where - Identity: IWMWriterAdvanced3_Impl, - { - unsafe extern "system" fn GetStatisticsEx(this: *mut core::ffi::c_void, wstreamnum: u16, pstats: *mut WM_WRITER_STATISTICS_EX) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced3_Impl, - { + pub const fn new() -> IWMWriterAdvanced3_Vtbl { + unsafe extern "system" fn GetStatisticsEx(this: *mut core::ffi::c_void, wstreamnum: u16, pstats: *mut WM_WRITER_STATISTICS_EX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced3_Impl::GetStatisticsEx(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&pstats)).into() } - unsafe extern "system" fn SetNonBlocking(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterAdvanced3_Impl, - { + unsafe extern "system" fn SetNonBlocking(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced3_Impl::SetNonBlocking(this).into() } @@ -6625,14 +4939,8 @@ pub trait IWMWriterFileSink_Impl: Sized + IWMWriterSink_Impl { } impl windows_core::RuntimeName for IWMWriterFileSink {} impl IWMWriterFileSink_Vtbl { - pub const fn new() -> IWMWriterFileSink_Vtbl - where - Identity: IWMWriterFileSink_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink_Impl, - { + pub const fn new() -> IWMWriterFileSink_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink_Impl::Open(this, core::mem::transmute(&pwszfilename)).into() } @@ -6653,28 +4961,16 @@ pub trait IWMWriterFileSink2_Impl: Sized + IWMWriterFileSink_Impl { } impl windows_core::RuntimeName for IWMWriterFileSink2 {} impl IWMWriterFileSink2_Vtbl { - pub const fn new() -> IWMWriterFileSink2_Vtbl - where - Identity: IWMWriterFileSink2_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, cnsstarttime: u64) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink2_Impl, - { + pub const fn new() -> IWMWriterFileSink2_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, cnsstarttime: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink2_Impl::Start(this, core::mem::transmute_copy(&cnsstarttime)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, cnsstoptime: u64) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink2_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, cnsstoptime: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink2_Impl::Stop(this, core::mem::transmute_copy(&cnsstoptime)).into() } - unsafe extern "system" fn IsStopped(this: *mut core::ffi::c_void, pfstopped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink2_Impl, - { + unsafe extern "system" fn IsStopped(this: *mut core::ffi::c_void, pfstopped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink2_Impl::IsStopped(this) { Ok(ok__) => { @@ -6684,10 +4980,7 @@ impl IWMWriterFileSink2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileDuration(this: *mut core::ffi::c_void, pcnsduration: *mut u64) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink2_Impl, - { + unsafe extern "system" fn GetFileDuration(this: *mut core::ffi::c_void, pcnsduration: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink2_Impl::GetFileDuration(this) { Ok(ok__) => { @@ -6697,10 +4990,7 @@ impl IWMWriterFileSink2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, pcbfile: *mut u64) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink2_Impl, - { + unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, pcbfile: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink2_Impl::GetFileSize(this) { Ok(ok__) => { @@ -6710,17 +5000,11 @@ impl IWMWriterFileSink2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink2_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink2_Impl::Close(this).into() } - unsafe extern "system" fn IsClosed(this: *mut core::ffi::c_void, pfclosed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink2_Impl, - { + unsafe extern "system" fn IsClosed(this: *mut core::ffi::c_void, pfclosed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink2_Impl::IsClosed(this) { Ok(ok__) => { @@ -6757,21 +5041,12 @@ pub trait IWMWriterFileSink3_Impl: Sized + IWMWriterFileSink2_Impl { } impl windows_core::RuntimeName for IWMWriterFileSink3 {} impl IWMWriterFileSink3_Vtbl { - pub const fn new() -> IWMWriterFileSink3_Vtbl - where - Identity: IWMWriterFileSink3_Impl, - { - unsafe extern "system" fn SetAutoIndexing(this: *mut core::ffi::c_void, fdoautoindexing: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink3_Impl, - { + pub const fn new() -> IWMWriterFileSink3_Vtbl { + unsafe extern "system" fn SetAutoIndexing(this: *mut core::ffi::c_void, fdoautoindexing: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink3_Impl::SetAutoIndexing(this, core::mem::transmute_copy(&fdoautoindexing)).into() } - unsafe extern "system" fn GetAutoIndexing(this: *mut core::ffi::c_void, pfautoindexing: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink3_Impl, - { + unsafe extern "system" fn GetAutoIndexing(this: *mut core::ffi::c_void, pfautoindexing: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink3_Impl::GetAutoIndexing(this) { Ok(ok__) => { @@ -6781,17 +5056,11 @@ impl IWMWriterFileSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetControlStream(this: *mut core::ffi::c_void, wstreamnumber: u16, fshouldcontrolstartandstop: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink3_Impl, - { + unsafe extern "system" fn SetControlStream(this: *mut core::ffi::c_void, wstreamnumber: u16, fshouldcontrolstartandstop: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink3_Impl::SetControlStream(this, core::mem::transmute_copy(&wstreamnumber), core::mem::transmute_copy(&fshouldcontrolstartandstop)).into() } - unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, pdwfilesinkmode: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink3_Impl, - { + unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, pdwfilesinkmode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink3_Impl::GetMode(this) { Ok(ok__) => { @@ -6801,24 +5070,15 @@ impl IWMWriterFileSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnDataUnitEx(this: *mut core::ffi::c_void, pfilesinkdataunit: *const WMT_FILESINK_DATA_UNIT) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink3_Impl, - { + unsafe extern "system" fn OnDataUnitEx(this: *mut core::ffi::c_void, pfilesinkdataunit: *const WMT_FILESINK_DATA_UNIT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink3_Impl::OnDataUnitEx(this, core::mem::transmute_copy(&pfilesinkdataunit)).into() } - unsafe extern "system" fn SetUnbufferedIO(this: *mut core::ffi::c_void, funbufferedio: super::super::Foundation::BOOL, frestrictmemusage: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink3_Impl, - { + unsafe extern "system" fn SetUnbufferedIO(this: *mut core::ffi::c_void, funbufferedio: super::super::Foundation::BOOL, frestrictmemusage: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink3_Impl::SetUnbufferedIO(this, core::mem::transmute_copy(&funbufferedio), core::mem::transmute_copy(&frestrictmemusage)).into() } - unsafe extern "system" fn GetUnbufferedIO(this: *mut core::ffi::c_void, pfunbufferedio: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink3_Impl, - { + unsafe extern "system" fn GetUnbufferedIO(this: *mut core::ffi::c_void, pfunbufferedio: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink3_Impl::GetUnbufferedIO(this) { Ok(ok__) => { @@ -6828,10 +5088,7 @@ impl IWMWriterFileSink3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompleteOperations(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterFileSink3_Impl, - { + unsafe extern "system" fn CompleteOperations(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink3_Impl::CompleteOperations(this).into() } @@ -6863,21 +5120,12 @@ pub trait IWMWriterNetworkSink_Impl: Sized + IWMWriterSink_Impl { } impl windows_core::RuntimeName for IWMWriterNetworkSink {} impl IWMWriterNetworkSink_Vtbl { - pub const fn new() -> IWMWriterNetworkSink_Vtbl - where - Identity: IWMWriterNetworkSink_Impl, - { - unsafe extern "system" fn SetMaximumClients(this: *mut core::ffi::c_void, dwmaxclients: u32) -> windows_core::HRESULT - where - Identity: IWMWriterNetworkSink_Impl, - { + pub const fn new() -> IWMWriterNetworkSink_Vtbl { + unsafe extern "system" fn SetMaximumClients(this: *mut core::ffi::c_void, dwmaxclients: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterNetworkSink_Impl::SetMaximumClients(this, core::mem::transmute_copy(&dwmaxclients)).into() } - unsafe extern "system" fn GetMaximumClients(this: *mut core::ffi::c_void, pdwmaxclients: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWriterNetworkSink_Impl, - { + unsafe extern "system" fn GetMaximumClients(this: *mut core::ffi::c_void, pdwmaxclients: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterNetworkSink_Impl::GetMaximumClients(this) { Ok(ok__) => { @@ -6887,17 +5135,11 @@ impl IWMWriterNetworkSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkProtocol(this: *mut core::ffi::c_void, protocol: WMT_NET_PROTOCOL) -> windows_core::HRESULT - where - Identity: IWMWriterNetworkSink_Impl, - { + unsafe extern "system" fn SetNetworkProtocol(this: *mut core::ffi::c_void, protocol: WMT_NET_PROTOCOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterNetworkSink_Impl::SetNetworkProtocol(this, core::mem::transmute_copy(&protocol)).into() } - unsafe extern "system" fn GetNetworkProtocol(this: *mut core::ffi::c_void, pprotocol: *mut WMT_NET_PROTOCOL) -> windows_core::HRESULT - where - Identity: IWMWriterNetworkSink_Impl, - { + unsafe extern "system" fn GetNetworkProtocol(this: *mut core::ffi::c_void, pprotocol: *mut WMT_NET_PROTOCOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterNetworkSink_Impl::GetNetworkProtocol(this) { Ok(ok__) => { @@ -6907,31 +5149,19 @@ impl IWMWriterNetworkSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHostURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PWSTR, pcchurl: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWriterNetworkSink_Impl, - { + unsafe extern "system" fn GetHostURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PWSTR, pcchurl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterNetworkSink_Impl::GetHostURL(this, core::mem::transmute_copy(&pwszurl), core::mem::transmute_copy(&pcchurl)).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pdwportnum: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWriterNetworkSink_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pdwportnum: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterNetworkSink_Impl::Open(this, core::mem::transmute_copy(&pdwportnum)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterNetworkSink_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterNetworkSink_Impl::Disconnect(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterNetworkSink_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterNetworkSink_Impl::Close(this).into() } @@ -6951,7 +5181,7 @@ impl IWMWriterNetworkSink_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMWriterPostView_Impl: Sized { +pub trait IWMWriterPostView_Impl: Sized + windows_core::IUnknownImpl { fn SetPostViewCallback(&self, pcallback: Option<&IWMWriterPostViewCallback>, pvcontext: *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetReceivePostViewSamples(&self, wstreamnum: u16, freceivepostviewsamples: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetReceivePostViewSamples(&self, wstreamnum: u16) -> windows_core::Result; @@ -6964,28 +5194,16 @@ pub trait IWMWriterPostView_Impl: Sized { } impl windows_core::RuntimeName for IWMWriterPostView {} impl IWMWriterPostView_Vtbl { - pub const fn new() -> IWMWriterPostView_Vtbl - where - Identity: IWMWriterPostView_Impl, - { - unsafe extern "system" fn SetPostViewCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterPostView_Impl, - { + pub const fn new() -> IWMWriterPostView_Vtbl { + unsafe extern "system" fn SetPostViewCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pvcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPostView_Impl::SetPostViewCallback(this, windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn SetReceivePostViewSamples(this: *mut core::ffi::c_void, wstreamnum: u16, freceivepostviewsamples: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterPostView_Impl, - { + unsafe extern "system" fn SetReceivePostViewSamples(this: *mut core::ffi::c_void, wstreamnum: u16, freceivepostviewsamples: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPostView_Impl::SetReceivePostViewSamples(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&freceivepostviewsamples)).into() } - unsafe extern "system" fn GetReceivePostViewSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfreceivepostviewsamples: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterPostView_Impl, - { + unsafe extern "system" fn GetReceivePostViewSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfreceivepostviewsamples: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterPostView_Impl::GetReceivePostViewSamples(this, core::mem::transmute_copy(&wstreamnum)) { Ok(ok__) => { @@ -6995,10 +5213,7 @@ impl IWMWriterPostView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPostViewProps(this: *mut core::ffi::c_void, wstreamnumber: u16, ppoutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterPostView_Impl, - { + unsafe extern "system" fn GetPostViewProps(this: *mut core::ffi::c_void, wstreamnumber: u16, ppoutput: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterPostView_Impl::GetPostViewProps(this, core::mem::transmute_copy(&wstreamnumber)) { Ok(ok__) => { @@ -7008,17 +5223,11 @@ impl IWMWriterPostView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPostViewProps(this: *mut core::ffi::c_void, wstreamnumber: u16, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterPostView_Impl, - { + unsafe extern "system" fn SetPostViewProps(this: *mut core::ffi::c_void, wstreamnumber: u16, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPostView_Impl::SetPostViewProps(this, core::mem::transmute_copy(&wstreamnumber), windows_core::from_raw_borrowed(&poutput)).into() } - unsafe extern "system" fn GetPostViewFormatCount(this: *mut core::ffi::c_void, wstreamnumber: u16, pcformats: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWriterPostView_Impl, - { + unsafe extern "system" fn GetPostViewFormatCount(this: *mut core::ffi::c_void, wstreamnumber: u16, pcformats: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterPostView_Impl::GetPostViewFormatCount(this, core::mem::transmute_copy(&wstreamnumber)) { Ok(ok__) => { @@ -7028,10 +5237,7 @@ impl IWMWriterPostView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPostViewFormat(this: *mut core::ffi::c_void, wstreamnumber: u16, dwformatnumber: u32, ppprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterPostView_Impl, - { + unsafe extern "system" fn GetPostViewFormat(this: *mut core::ffi::c_void, wstreamnumber: u16, dwformatnumber: u32, ppprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterPostView_Impl::GetPostViewFormat(this, core::mem::transmute_copy(&wstreamnumber), core::mem::transmute_copy(&dwformatnumber)) { Ok(ok__) => { @@ -7041,17 +5247,11 @@ impl IWMWriterPostView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllocateForPostView(this: *mut core::ffi::c_void, wstreamnumber: u16, fallocate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterPostView_Impl, - { + unsafe extern "system" fn SetAllocateForPostView(this: *mut core::ffi::c_void, wstreamnumber: u16, fallocate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPostView_Impl::SetAllocateForPostView(this, core::mem::transmute_copy(&wstreamnumber), core::mem::transmute_copy(&fallocate)).into() } - unsafe extern "system" fn GetAllocateForPostView(this: *mut core::ffi::c_void, wstreamnumber: u16, pfallocate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterPostView_Impl, - { + unsafe extern "system" fn GetAllocateForPostView(this: *mut core::ffi::c_void, wstreamnumber: u16, pfallocate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterPostView_Impl::GetAllocateForPostView(this, core::mem::transmute_copy(&wstreamnumber)) { Ok(ok__) => { @@ -7084,21 +5284,12 @@ pub trait IWMWriterPostViewCallback_Impl: Sized + IWMStatusCallback_Impl { } impl windows_core::RuntimeName for IWMWriterPostViewCallback {} impl IWMWriterPostViewCallback_Vtbl { - pub const fn new() -> IWMWriterPostViewCallback_Vtbl - where - Identity: IWMWriterPostViewCallback_Impl, - { - unsafe extern "system" fn OnPostViewSample(this: *mut core::ffi::c_void, wstreamnumber: u16, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterPostViewCallback_Impl, - { + pub const fn new() -> IWMWriterPostViewCallback_Vtbl { + unsafe extern "system" fn OnPostViewSample(this: *mut core::ffi::c_void, wstreamnumber: u16, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPostViewCallback_Impl::OnPostViewSample(this, core::mem::transmute_copy(&wstreamnumber), core::mem::transmute_copy(&cnssampletime), core::mem::transmute_copy(&cnssampleduration), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psample), core::mem::transmute_copy(&pvcontext)).into() } - unsafe extern "system" fn AllocateForPostView(this: *mut core::ffi::c_void, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterPostViewCallback_Impl, - { + unsafe extern "system" fn AllocateForPostView(this: *mut core::ffi::c_void, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut *mut core::ffi::c_void, pvcontext: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPostViewCallback_Impl::AllocateForPostView(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&pvcontext)).into() } @@ -7112,7 +5303,7 @@ impl IWMWriterPostViewCallback_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMWriterPreprocess_Impl: Sized { +pub trait IWMWriterPreprocess_Impl: Sized + windows_core::IUnknownImpl { fn GetMaxPreprocessingPasses(&self, dwinputnum: u32, dwflags: u32) -> windows_core::Result; fn SetNumPreprocessingPasses(&self, dwinputnum: u32, dwflags: u32, dwnumpasses: u32) -> windows_core::Result<()>; fn BeginPreprocessingPass(&self, dwinputnum: u32, dwflags: u32) -> windows_core::Result<()>; @@ -7121,14 +5312,8 @@ pub trait IWMWriterPreprocess_Impl: Sized { } impl windows_core::RuntimeName for IWMWriterPreprocess {} impl IWMWriterPreprocess_Vtbl { - pub const fn new() -> IWMWriterPreprocess_Vtbl - where - Identity: IWMWriterPreprocess_Impl, - { - unsafe extern "system" fn GetMaxPreprocessingPasses(this: *mut core::ffi::c_void, dwinputnum: u32, dwflags: u32, pdwmaxnumpasses: *mut u32) -> windows_core::HRESULT - where - Identity: IWMWriterPreprocess_Impl, - { + pub const fn new() -> IWMWriterPreprocess_Vtbl { + unsafe extern "system" fn GetMaxPreprocessingPasses(this: *mut core::ffi::c_void, dwinputnum: u32, dwflags: u32, pdwmaxnumpasses: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterPreprocess_Impl::GetMaxPreprocessingPasses(this, core::mem::transmute_copy(&dwinputnum), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -7138,31 +5323,19 @@ impl IWMWriterPreprocess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNumPreprocessingPasses(this: *mut core::ffi::c_void, dwinputnum: u32, dwflags: u32, dwnumpasses: u32) -> windows_core::HRESULT - where - Identity: IWMWriterPreprocess_Impl, - { + unsafe extern "system" fn SetNumPreprocessingPasses(this: *mut core::ffi::c_void, dwinputnum: u32, dwflags: u32, dwnumpasses: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPreprocess_Impl::SetNumPreprocessingPasses(this, core::mem::transmute_copy(&dwinputnum), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwnumpasses)).into() } - unsafe extern "system" fn BeginPreprocessingPass(this: *mut core::ffi::c_void, dwinputnum: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IWMWriterPreprocess_Impl, - { + unsafe extern "system" fn BeginPreprocessingPass(this: *mut core::ffi::c_void, dwinputnum: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPreprocess_Impl::BeginPreprocessingPass(this, core::mem::transmute_copy(&dwinputnum), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn PreprocessSample(this: *mut core::ffi::c_void, dwinputnum: u32, cnssampletime: u64, dwflags: u32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterPreprocess_Impl, - { + unsafe extern "system" fn PreprocessSample(this: *mut core::ffi::c_void, dwinputnum: u32, cnssampletime: u64, dwflags: u32, psample: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPreprocess_Impl::PreprocessSample(this, core::mem::transmute_copy(&dwinputnum), core::mem::transmute_copy(&cnssampletime), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psample)).into() } - unsafe extern "system" fn EndPreprocessingPass(this: *mut core::ffi::c_void, dwinputnum: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IWMWriterPreprocess_Impl, - { + unsafe extern "system" fn EndPreprocessingPass(this: *mut core::ffi::c_void, dwinputnum: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPreprocess_Impl::EndPreprocessingPass(this, core::mem::transmute_copy(&dwinputnum), core::mem::transmute_copy(&dwflags)).into() } @@ -7186,28 +5359,16 @@ pub trait IWMWriterPushSink_Impl: Sized + IWMWriterSink_Impl { } impl windows_core::RuntimeName for IWMWriterPushSink {} impl IWMWriterPushSink_Vtbl { - pub const fn new() -> IWMWriterPushSink_Vtbl - where - Identity: IWMWriterPushSink_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pwsztemplateurl: windows_core::PCWSTR, fautodestroy: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterPushSink_Impl, - { + pub const fn new() -> IWMWriterPushSink_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pwsztemplateurl: windows_core::PCWSTR, fautodestroy: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPushSink_Impl::Connect(this, core::mem::transmute(&pwszurl), core::mem::transmute(&pwsztemplateurl), core::mem::transmute_copy(&fautodestroy)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterPushSink_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPushSink_Impl::Disconnect(this).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterPushSink_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPushSink_Impl::EndSession(this).into() } @@ -7222,7 +5383,7 @@ impl IWMWriterPushSink_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWMWriterSink_Impl: Sized { +pub trait IWMWriterSink_Impl: Sized + windows_core::IUnknownImpl { fn OnHeader(&self, pheader: Option<&INSSBuffer>) -> windows_core::Result<()>; fn IsRealTime(&self) -> windows_core::Result; fn AllocateDataUnit(&self, cbdataunit: u32) -> windows_core::Result; @@ -7231,21 +5392,12 @@ pub trait IWMWriterSink_Impl: Sized { } impl windows_core::RuntimeName for IWMWriterSink {} impl IWMWriterSink_Vtbl { - pub const fn new() -> IWMWriterSink_Vtbl - where - Identity: IWMWriterSink_Impl, - { - unsafe extern "system" fn OnHeader(this: *mut core::ffi::c_void, pheader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterSink_Impl, - { + pub const fn new() -> IWMWriterSink_Vtbl { + unsafe extern "system" fn OnHeader(this: *mut core::ffi::c_void, pheader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterSink_Impl::OnHeader(this, windows_core::from_raw_borrowed(&pheader)).into() } - unsafe extern "system" fn IsRealTime(this: *mut core::ffi::c_void, pfrealtime: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWMWriterSink_Impl, - { + unsafe extern "system" fn IsRealTime(this: *mut core::ffi::c_void, pfrealtime: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterSink_Impl::IsRealTime(this) { Ok(ok__) => { @@ -7255,10 +5407,7 @@ impl IWMWriterSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AllocateDataUnit(this: *mut core::ffi::c_void, cbdataunit: u32, ppdataunit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterSink_Impl, - { + unsafe extern "system" fn AllocateDataUnit(this: *mut core::ffi::c_void, cbdataunit: u32, ppdataunit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterSink_Impl::AllocateDataUnit(this, core::mem::transmute_copy(&cbdataunit)) { Ok(ok__) => { @@ -7268,17 +5417,11 @@ impl IWMWriterSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnDataUnit(this: *mut core::ffi::c_void, pdataunit: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterSink_Impl, - { + unsafe extern "system" fn OnDataUnit(this: *mut core::ffi::c_void, pdataunit: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterSink_Impl::OnDataUnit(this, windows_core::from_raw_borrowed(&pdataunit)).into() } - unsafe extern "system" fn OnEndWriting(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMWriterSink_Impl, - { + unsafe extern "system" fn OnEndWriting(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterSink_Impl::OnEndWriting(this).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Media/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/impl.rs index 145e4ad21e..d0cd7f36a8 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/impl.rs @@ -1,4 +1,4 @@ -pub trait IReferenceClock_Impl: Sized { +pub trait IReferenceClock_Impl: Sized + windows_core::IUnknownImpl { fn GetTime(&self) -> windows_core::Result; fn AdviseTime(&self, basetime: i64, streamtime: i64, hevent: super::Foundation::HANDLE) -> windows_core::Result; fn AdvisePeriodic(&self, starttime: i64, periodtime: i64, hsemaphore: super::Foundation::HANDLE) -> windows_core::Result; @@ -6,14 +6,8 @@ pub trait IReferenceClock_Impl: Sized { } impl windows_core::RuntimeName for IReferenceClock {} impl IReferenceClock_Vtbl { - pub const fn new() -> IReferenceClock_Vtbl - where - Identity: IReferenceClock_Impl, - { - unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, ptime: *mut i64) -> windows_core::HRESULT - where - Identity: IReferenceClock_Impl, - { + pub const fn new() -> IReferenceClock_Vtbl { + unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, ptime: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IReferenceClock_Impl::GetTime(this) { Ok(ok__) => { @@ -23,10 +17,7 @@ impl IReferenceClock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AdviseTime(this: *mut core::ffi::c_void, basetime: i64, streamtime: i64, hevent: super::Foundation::HANDLE, pdwadvisecookie: *mut usize) -> windows_core::HRESULT - where - Identity: IReferenceClock_Impl, - { + unsafe extern "system" fn AdviseTime(this: *mut core::ffi::c_void, basetime: i64, streamtime: i64, hevent: super::Foundation::HANDLE, pdwadvisecookie: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IReferenceClock_Impl::AdviseTime(this, core::mem::transmute_copy(&basetime), core::mem::transmute_copy(&streamtime), core::mem::transmute_copy(&hevent)) { Ok(ok__) => { @@ -36,10 +27,7 @@ impl IReferenceClock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AdvisePeriodic(this: *mut core::ffi::c_void, starttime: i64, periodtime: i64, hsemaphore: super::Foundation::HANDLE, pdwadvisecookie: *mut usize) -> windows_core::HRESULT - where - Identity: IReferenceClock_Impl, - { + unsafe extern "system" fn AdvisePeriodic(this: *mut core::ffi::c_void, starttime: i64, periodtime: i64, hsemaphore: super::Foundation::HANDLE, pdwadvisecookie: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IReferenceClock_Impl::AdvisePeriodic(this, core::mem::transmute_copy(&starttime), core::mem::transmute_copy(&periodtime), core::mem::transmute_copy(&hsemaphore)) { Ok(ok__) => { @@ -49,10 +37,7 @@ impl IReferenceClock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwadvisecookie: usize) -> windows_core::HRESULT - where - Identity: IReferenceClock_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwadvisecookie: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReferenceClock_Impl::Unadvise(this, core::mem::transmute_copy(&dwadvisecookie)).into() } @@ -71,37 +56,25 @@ impl IReferenceClock_Vtbl { pub trait IReferenceClock2_Impl: Sized + IReferenceClock_Impl {} impl windows_core::RuntimeName for IReferenceClock2 {} impl IReferenceClock2_Vtbl { - pub const fn new() -> IReferenceClock2_Vtbl - where - Identity: IReferenceClock2_Impl, - { + pub const fn new() -> IReferenceClock2_Vtbl { Self { base__: IReferenceClock_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IReferenceClockTimerControl_Impl: Sized { +pub trait IReferenceClockTimerControl_Impl: Sized + windows_core::IUnknownImpl { fn SetDefaultTimerResolution(&self, timerresolution: i64) -> windows_core::Result<()>; fn GetDefaultTimerResolution(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IReferenceClockTimerControl {} impl IReferenceClockTimerControl_Vtbl { - pub const fn new() -> IReferenceClockTimerControl_Vtbl - where - Identity: IReferenceClockTimerControl_Impl, - { - unsafe extern "system" fn SetDefaultTimerResolution(this: *mut core::ffi::c_void, timerresolution: i64) -> windows_core::HRESULT - where - Identity: IReferenceClockTimerControl_Impl, - { + pub const fn new() -> IReferenceClockTimerControl_Vtbl { + unsafe extern "system" fn SetDefaultTimerResolution(this: *mut core::ffi::c_void, timerresolution: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReferenceClockTimerControl_Impl::SetDefaultTimerResolution(this, core::mem::transmute_copy(&timerresolution)).into() } - unsafe extern "system" fn GetDefaultTimerResolution(this: *mut core::ffi::c_void, ptimerresolution: *mut i64) -> windows_core::HRESULT - where - Identity: IReferenceClockTimerControl_Impl, - { + unsafe extern "system" fn GetDefaultTimerResolution(this: *mut core::ffi::c_void, ptimerresolution: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IReferenceClockTimerControl_Impl::GetDefaultTimerResolution(this) { Ok(ok__) => { 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 2dc11a68ab..5ed317bc56 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/impl.rs @@ -4,17 +4,14 @@ pub trait IDummyMBNUCMExt_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IDummyMBNUCMExt {} #[cfg(feature = "Win32_System_Com")] impl IDummyMBNUCMExt_Vtbl { - pub const fn new() -> IDummyMBNUCMExt_Vtbl - where - Identity: IDummyMBNUCMExt_Impl, - { + pub const fn new() -> IDummyMBNUCMExt_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IMbnConnection_Impl: Sized { +pub trait IMbnConnection_Impl: Sized + windows_core::IUnknownImpl { fn ConnectionID(&self) -> windows_core::Result; fn InterfaceID(&self) -> windows_core::Result; fn Connect(&self, connectionmode: MBN_CONNECTION_MODE, strprofile: &windows_core::PCWSTR) -> windows_core::Result; @@ -25,14 +22,8 @@ pub trait IMbnConnection_Impl: Sized { } impl windows_core::RuntimeName for IMbnConnection {} impl IMbnConnection_Vtbl { - pub const fn new() -> IMbnConnection_Vtbl - where - Identity: IMbnConnection_Impl, - { - unsafe extern "system" fn ConnectionID(this: *mut core::ffi::c_void, connectionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnConnection_Impl, - { + pub const fn new() -> IMbnConnection_Vtbl { + unsafe extern "system" fn ConnectionID(this: *mut core::ffi::c_void, connectionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnection_Impl::ConnectionID(this) { Ok(ok__) => { @@ -42,10 +33,7 @@ impl IMbnConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InterfaceID(this: *mut core::ffi::c_void, interfaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnConnection_Impl, - { + unsafe extern "system" fn InterfaceID(this: *mut core::ffi::c_void, interfaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnection_Impl::InterfaceID(this) { Ok(ok__) => { @@ -55,10 +43,7 @@ impl IMbnConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, connectionmode: MBN_CONNECTION_MODE, strprofile: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnConnection_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, connectionmode: MBN_CONNECTION_MODE, strprofile: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnection_Impl::Connect(this, core::mem::transmute_copy(&connectionmode), core::mem::transmute(&strprofile)) { Ok(ok__) => { @@ -68,10 +53,7 @@ impl IMbnConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnConnection_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnection_Impl::Disconnect(this) { Ok(ok__) => { @@ -81,17 +63,11 @@ impl IMbnConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectionState(this: *mut core::ffi::c_void, connectionstate: *mut MBN_ACTIVATION_STATE, profilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnConnection_Impl, - { + unsafe extern "system" fn GetConnectionState(this: *mut core::ffi::c_void, connectionstate: *mut MBN_ACTIVATION_STATE, profilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnection_Impl::GetConnectionState(this, core::mem::transmute_copy(&connectionstate), core::mem::transmute_copy(&profilename)).into() } - unsafe extern "system" fn GetVoiceCallState(this: *mut core::ffi::c_void, voicecallstate: *mut MBN_VOICE_CALL_STATE) -> windows_core::HRESULT - where - Identity: IMbnConnection_Impl, - { + unsafe extern "system" fn GetVoiceCallState(this: *mut core::ffi::c_void, voicecallstate: *mut MBN_VOICE_CALL_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnection_Impl::GetVoiceCallState(this) { Ok(ok__) => { @@ -101,10 +77,7 @@ impl IMbnConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActivationNetworkError(this: *mut core::ffi::c_void, networkerror: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnConnection_Impl, - { + unsafe extern "system" fn GetActivationNetworkError(this: *mut core::ffi::c_void, networkerror: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnection_Impl::GetActivationNetworkError(this) { Ok(ok__) => { @@ -130,7 +103,7 @@ impl IMbnConnection_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnConnectionContext_Impl: Sized { +pub trait IMbnConnectionContext_Impl: Sized + windows_core::IUnknownImpl { 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; } @@ -138,14 +111,8 @@ pub trait IMbnConnectionContext_Impl: Sized { impl windows_core::RuntimeName for IMbnConnectionContext {} #[cfg(feature = "Win32_System_Com")] impl IMbnConnectionContext_Vtbl { - pub const fn new() -> IMbnConnectionContext_Vtbl - where - Identity: IMbnConnectionContext_Impl, - { - unsafe extern "system" fn GetProvisionedContexts(this: *mut core::ffi::c_void, provisionedcontexts: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnConnectionContext_Impl, - { + pub const fn new() -> IMbnConnectionContext_Vtbl { + unsafe extern "system" fn GetProvisionedContexts(this: *mut core::ffi::c_void, provisionedcontexts: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnectionContext_Impl::GetProvisionedContexts(this) { Ok(ok__) => { @@ -155,10 +122,7 @@ impl IMbnConnectionContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProvisionedContext(this: *mut core::ffi::c_void, provisionedcontexts: MBN_CONTEXT, providerid: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnConnectionContext_Impl, - { + unsafe extern "system" fn SetProvisionedContext(this: *mut core::ffi::c_void, provisionedcontexts: MBN_CONTEXT, providerid: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnectionContext_Impl::SetProvisionedContext(this, core::mem::transmute(&provisionedcontexts), core::mem::transmute(&providerid)) { Ok(ok__) => { @@ -178,27 +142,18 @@ impl IMbnConnectionContext_Vtbl { iid == &::IID } } -pub trait IMbnConnectionContextEvents_Impl: Sized { +pub trait IMbnConnectionContextEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnProvisionedContextListChange(&self, newinterface: Option<&IMbnConnectionContext>) -> windows_core::Result<()>; fn OnSetProvisionedContextComplete(&self, newinterface: Option<&IMbnConnectionContext>, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMbnConnectionContextEvents {} impl IMbnConnectionContextEvents_Vtbl { - pub const fn new() -> IMbnConnectionContextEvents_Vtbl - where - Identity: IMbnConnectionContextEvents_Impl, - { - unsafe extern "system" fn OnProvisionedContextListChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionContextEvents_Impl, - { + pub const fn new() -> IMbnConnectionContextEvents_Vtbl { + unsafe extern "system" fn OnProvisionedContextListChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionContextEvents_Impl::OnProvisionedContextListChange(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnSetProvisionedContextComplete(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnConnectionContextEvents_Impl, - { + unsafe extern "system" fn OnSetProvisionedContextComplete(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionContextEvents_Impl::OnSetProvisionedContextComplete(this, windows_core::from_raw_borrowed(&newinterface), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } @@ -212,7 +167,7 @@ impl IMbnConnectionContextEvents_Vtbl { iid == &::IID } } -pub trait IMbnConnectionEvents_Impl: Sized { +pub trait IMbnConnectionEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnConnectComplete(&self, newconnection: Option<&IMbnConnection>, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; fn OnDisconnectComplete(&self, newconnection: Option<&IMbnConnection>, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; fn OnConnectStateChange(&self, newconnection: Option<&IMbnConnection>) -> windows_core::Result<()>; @@ -220,35 +175,20 @@ pub trait IMbnConnectionEvents_Impl: Sized { } impl windows_core::RuntimeName for IMbnConnectionEvents {} impl IMbnConnectionEvents_Vtbl { - pub const fn new() -> IMbnConnectionEvents_Vtbl - where - Identity: IMbnConnectionEvents_Impl, - { - unsafe extern "system" fn OnConnectComplete(this: *mut core::ffi::c_void, newconnection: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnConnectionEvents_Impl, - { + pub const fn new() -> IMbnConnectionEvents_Vtbl { + unsafe extern "system" fn OnConnectComplete(this: *mut core::ffi::c_void, newconnection: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionEvents_Impl::OnConnectComplete(this, windows_core::from_raw_borrowed(&newconnection), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnDisconnectComplete(this: *mut core::ffi::c_void, newconnection: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnConnectionEvents_Impl, - { + unsafe extern "system" fn OnDisconnectComplete(this: *mut core::ffi::c_void, newconnection: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionEvents_Impl::OnDisconnectComplete(this, windows_core::from_raw_borrowed(&newconnection), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnConnectStateChange(this: *mut core::ffi::c_void, newconnection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionEvents_Impl, - { + unsafe extern "system" fn OnConnectStateChange(this: *mut core::ffi::c_void, newconnection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionEvents_Impl::OnConnectStateChange(this, windows_core::from_raw_borrowed(&newconnection)).into() } - unsafe extern "system" fn OnVoiceCallStateChange(this: *mut core::ffi::c_void, newconnection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionEvents_Impl, - { + unsafe extern "system" fn OnVoiceCallStateChange(this: *mut core::ffi::c_void, newconnection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionEvents_Impl::OnVoiceCallStateChange(this, windows_core::from_raw_borrowed(&newconnection)).into() } @@ -265,7 +205,7 @@ impl IMbnConnectionEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnConnectionManager_Impl: Sized { +pub trait IMbnConnectionManager_Impl: Sized + windows_core::IUnknownImpl { fn GetConnection(&self, connectionid: &windows_core::PCWSTR) -> windows_core::Result; fn GetConnections(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; } @@ -273,14 +213,8 @@ pub trait IMbnConnectionManager_Impl: Sized { impl windows_core::RuntimeName for IMbnConnectionManager {} #[cfg(feature = "Win32_System_Com")] impl IMbnConnectionManager_Vtbl { - pub const fn new() -> IMbnConnectionManager_Vtbl - where - Identity: IMbnConnectionManager_Impl, - { - unsafe extern "system" fn GetConnection(this: *mut core::ffi::c_void, connectionid: windows_core::PCWSTR, mbnconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionManager_Impl, - { + pub const fn new() -> IMbnConnectionManager_Vtbl { + unsafe extern "system" fn GetConnection(this: *mut core::ffi::c_void, connectionid: windows_core::PCWSTR, mbnconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnectionManager_Impl::GetConnection(this, core::mem::transmute(&connectionid)) { Ok(ok__) => { @@ -290,10 +224,7 @@ impl IMbnConnectionManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnections(this: *mut core::ffi::c_void, mbnconnections: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnConnectionManager_Impl, - { + unsafe extern "system" fn GetConnections(this: *mut core::ffi::c_void, mbnconnections: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnectionManager_Impl::GetConnections(this) { Ok(ok__) => { @@ -313,27 +244,18 @@ impl IMbnConnectionManager_Vtbl { iid == &::IID } } -pub trait IMbnConnectionManagerEvents_Impl: Sized { +pub trait IMbnConnectionManagerEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnConnectionArrival(&self, newconnection: Option<&IMbnConnection>) -> windows_core::Result<()>; fn OnConnectionRemoval(&self, oldconnection: Option<&IMbnConnection>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMbnConnectionManagerEvents {} impl IMbnConnectionManagerEvents_Vtbl { - pub const fn new() -> IMbnConnectionManagerEvents_Vtbl - where - Identity: IMbnConnectionManagerEvents_Impl, - { - unsafe extern "system" fn OnConnectionArrival(this: *mut core::ffi::c_void, newconnection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionManagerEvents_Impl, - { + pub const fn new() -> IMbnConnectionManagerEvents_Vtbl { + unsafe extern "system" fn OnConnectionArrival(this: *mut core::ffi::c_void, newconnection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionManagerEvents_Impl::OnConnectionArrival(this, windows_core::from_raw_borrowed(&newconnection)).into() } - unsafe extern "system" fn OnConnectionRemoval(this: *mut core::ffi::c_void, oldconnection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionManagerEvents_Impl, - { + unsafe extern "system" fn OnConnectionRemoval(this: *mut core::ffi::c_void, oldconnection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionManagerEvents_Impl::OnConnectionRemoval(this, windows_core::from_raw_borrowed(&oldconnection)).into() } @@ -347,21 +269,15 @@ impl IMbnConnectionManagerEvents_Vtbl { iid == &::IID } } -pub trait IMbnConnectionProfile_Impl: Sized { +pub trait IMbnConnectionProfile_Impl: Sized + windows_core::IUnknownImpl { fn GetProfileXmlData(&self) -> windows_core::Result; fn UpdateProfile(&self, strprofile: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Delete(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMbnConnectionProfile {} impl IMbnConnectionProfile_Vtbl { - pub const fn new() -> IMbnConnectionProfile_Vtbl - where - Identity: IMbnConnectionProfile_Impl, - { - unsafe extern "system" fn GetProfileXmlData(this: *mut core::ffi::c_void, profiledata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnConnectionProfile_Impl, - { + pub const fn new() -> IMbnConnectionProfile_Vtbl { + unsafe extern "system" fn GetProfileXmlData(this: *mut core::ffi::c_void, profiledata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnectionProfile_Impl::GetProfileXmlData(this) { Ok(ok__) => { @@ -371,17 +287,11 @@ impl IMbnConnectionProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateProfile(this: *mut core::ffi::c_void, strprofile: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMbnConnectionProfile_Impl, - { + unsafe extern "system" fn UpdateProfile(this: *mut core::ffi::c_void, strprofile: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionProfile_Impl::UpdateProfile(this, core::mem::transmute(&strprofile)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionProfile_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionProfile_Impl::Delete(this).into() } @@ -396,19 +306,13 @@ impl IMbnConnectionProfile_Vtbl { iid == &::IID } } -pub trait IMbnConnectionProfileEvents_Impl: Sized { +pub trait IMbnConnectionProfileEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnProfileUpdate(&self, newprofile: Option<&IMbnConnectionProfile>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMbnConnectionProfileEvents {} impl IMbnConnectionProfileEvents_Vtbl { - pub const fn new() -> IMbnConnectionProfileEvents_Vtbl - where - Identity: IMbnConnectionProfileEvents_Impl, - { - unsafe extern "system" fn OnProfileUpdate(this: *mut core::ffi::c_void, newprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionProfileEvents_Impl, - { + pub const fn new() -> IMbnConnectionProfileEvents_Vtbl { + unsafe extern "system" fn OnProfileUpdate(this: *mut core::ffi::c_void, newprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionProfileEvents_Impl::OnProfileUpdate(this, windows_core::from_raw_borrowed(&newprofile)).into() } @@ -419,7 +323,7 @@ impl IMbnConnectionProfileEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnConnectionProfileManager_Impl: Sized { +pub trait IMbnConnectionProfileManager_Impl: Sized + windows_core::IUnknownImpl { fn GetConnectionProfiles(&self, mbninterface: Option<&IMbnInterface>) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetConnectionProfile(&self, mbninterface: Option<&IMbnInterface>, profilename: &windows_core::PCWSTR) -> windows_core::Result; fn CreateConnectionProfile(&self, xmlprofile: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -428,14 +332,8 @@ pub trait IMbnConnectionProfileManager_Impl: Sized { impl windows_core::RuntimeName for IMbnConnectionProfileManager {} #[cfg(feature = "Win32_System_Com")] impl IMbnConnectionProfileManager_Vtbl { - pub const fn new() -> IMbnConnectionProfileManager_Vtbl - where - Identity: IMbnConnectionProfileManager_Impl, - { - unsafe extern "system" fn GetConnectionProfiles(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void, connectionprofiles: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnConnectionProfileManager_Impl, - { + pub const fn new() -> IMbnConnectionProfileManager_Vtbl { + unsafe extern "system" fn GetConnectionProfiles(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void, connectionprofiles: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnectionProfileManager_Impl::GetConnectionProfiles(this, windows_core::from_raw_borrowed(&mbninterface)) { Ok(ok__) => { @@ -445,10 +343,7 @@ impl IMbnConnectionProfileManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectionProfile(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void, profilename: windows_core::PCWSTR, connectionprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionProfileManager_Impl, - { + unsafe extern "system" fn GetConnectionProfile(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void, profilename: windows_core::PCWSTR, connectionprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnConnectionProfileManager_Impl::GetConnectionProfile(this, windows_core::from_raw_borrowed(&mbninterface), core::mem::transmute(&profilename)) { Ok(ok__) => { @@ -458,10 +353,7 @@ impl IMbnConnectionProfileManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateConnectionProfile(this: *mut core::ffi::c_void, xmlprofile: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMbnConnectionProfileManager_Impl, - { + unsafe extern "system" fn CreateConnectionProfile(this: *mut core::ffi::c_void, xmlprofile: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionProfileManager_Impl::CreateConnectionProfile(this, core::mem::transmute(&xmlprofile)).into() } @@ -476,27 +368,18 @@ impl IMbnConnectionProfileManager_Vtbl { iid == &::IID } } -pub trait IMbnConnectionProfileManagerEvents_Impl: Sized { +pub trait IMbnConnectionProfileManagerEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnConnectionProfileArrival(&self, newconnectionprofile: Option<&IMbnConnectionProfile>) -> windows_core::Result<()>; fn OnConnectionProfileRemoval(&self, oldconnectionprofile: Option<&IMbnConnectionProfile>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMbnConnectionProfileManagerEvents {} impl IMbnConnectionProfileManagerEvents_Vtbl { - pub const fn new() -> IMbnConnectionProfileManagerEvents_Vtbl - where - Identity: IMbnConnectionProfileManagerEvents_Impl, - { - unsafe extern "system" fn OnConnectionProfileArrival(this: *mut core::ffi::c_void, newconnectionprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionProfileManagerEvents_Impl, - { + pub const fn new() -> IMbnConnectionProfileManagerEvents_Vtbl { + unsafe extern "system" fn OnConnectionProfileArrival(this: *mut core::ffi::c_void, newconnectionprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionProfileManagerEvents_Impl::OnConnectionProfileArrival(this, windows_core::from_raw_borrowed(&newconnectionprofile)).into() } - unsafe extern "system" fn OnConnectionProfileRemoval(this: *mut core::ffi::c_void, oldconnectionprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnConnectionProfileManagerEvents_Impl, - { + unsafe extern "system" fn OnConnectionProfileRemoval(this: *mut core::ffi::c_void, oldconnectionprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnConnectionProfileManagerEvents_Impl::OnConnectionProfileRemoval(this, windows_core::from_raw_borrowed(&oldconnectionprofile)).into() } @@ -511,7 +394,7 @@ impl IMbnConnectionProfileManagerEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnDeviceService_Impl: Sized { +pub trait IMbnDeviceService_Impl: Sized + windows_core::IUnknownImpl { fn QuerySupportedCommands(&self) -> windows_core::Result; fn OpenCommandSession(&self) -> windows_core::Result; fn CloseCommandSession(&self) -> windows_core::Result; @@ -529,14 +412,8 @@ pub trait IMbnDeviceService_Impl: Sized { impl windows_core::RuntimeName for IMbnDeviceService {} #[cfg(feature = "Win32_System_Com")] impl IMbnDeviceService_Vtbl { - pub const fn new() -> IMbnDeviceService_Vtbl - where - Identity: IMbnDeviceService_Impl, - { - unsafe extern "system" fn QuerySupportedCommands(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + pub const fn new() -> IMbnDeviceService_Vtbl { + unsafe extern "system" fn QuerySupportedCommands(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::QuerySupportedCommands(this) { Ok(ok__) => { @@ -546,10 +423,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenCommandSession(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn OpenCommandSession(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::OpenCommandSession(this) { Ok(ok__) => { @@ -559,10 +433,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseCommandSession(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn CloseCommandSession(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::CloseCommandSession(this) { Ok(ok__) => { @@ -572,10 +443,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCommand(this: *mut core::ffi::c_void, commandid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn SetCommand(this: *mut core::ffi::c_void, commandid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::SetCommand(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&deviceservicedata)) { Ok(ok__) => { @@ -585,10 +453,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryCommand(this: *mut core::ffi::c_void, commandid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn QueryCommand(this: *mut core::ffi::c_void, commandid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::QueryCommand(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&deviceservicedata)) { Ok(ok__) => { @@ -598,10 +463,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenDataSession(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn OpenDataSession(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::OpenDataSession(this) { Ok(ok__) => { @@ -611,10 +473,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseDataSession(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn CloseDataSession(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::CloseDataSession(this) { Ok(ok__) => { @@ -624,10 +483,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteData(this: *mut core::ffi::c_void, deviceservicedata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn WriteData(this: *mut core::ffi::c_void, deviceservicedata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::WriteData(this, core::mem::transmute_copy(&deviceservicedata)) { Ok(ok__) => { @@ -637,10 +493,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InterfaceID(this: *mut core::ffi::c_void, interfaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn InterfaceID(this: *mut core::ffi::c_void, interfaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::InterfaceID(this) { Ok(ok__) => { @@ -650,10 +503,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceServiceID(this: *mut core::ffi::c_void, deviceserviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn DeviceServiceID(this: *mut core::ffi::c_void, deviceserviceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::DeviceServiceID(this) { Ok(ok__) => { @@ -663,10 +513,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCommandSessionOpen(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn IsCommandSessionOpen(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::IsCommandSessionOpen(this) { Ok(ok__) => { @@ -676,10 +523,7 @@ impl IMbnDeviceService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDataSessionOpen(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMbnDeviceService_Impl, - { + unsafe extern "system" fn IsDataSessionOpen(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::IsDataSessionOpen(this) { Ok(ok__) => { @@ -709,19 +553,13 @@ impl IMbnDeviceService_Vtbl { iid == &::IID } } -pub trait IMbnDeviceServiceStateEvents_Impl: Sized { +pub trait IMbnDeviceServiceStateEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnSessionsStateChange(&self, interfaceid: &windows_core::BSTR, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMbnDeviceServiceStateEvents {} impl IMbnDeviceServiceStateEvents_Vtbl { - pub const fn new() -> IMbnDeviceServiceStateEvents_Vtbl - where - Identity: IMbnDeviceServiceStateEvents_Impl, - { - unsafe extern "system" fn OnSessionsStateChange(this: *mut core::ffi::c_void, interfaceid: core::mem::MaybeUninit, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> windows_core::HRESULT - where - Identity: IMbnDeviceServiceStateEvents_Impl, - { + pub const fn new() -> IMbnDeviceServiceStateEvents_Vtbl { + unsafe extern "system" fn OnSessionsStateChange(this: *mut core::ffi::c_void, interfaceid: core::mem::MaybeUninit, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServiceStateEvents_Impl::OnSessionsStateChange(this, core::mem::transmute(&interfaceid), core::mem::transmute_copy(&statechange)).into() } @@ -732,7 +570,7 @@ impl IMbnDeviceServiceStateEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnDeviceServicesContext_Impl: Sized { +pub trait IMbnDeviceServicesContext_Impl: Sized + windows_core::IUnknownImpl { fn EnumerateDeviceServices(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetDeviceService(&self, deviceserviceid: &windows_core::BSTR) -> windows_core::Result; fn MaxCommandSize(&self) -> windows_core::Result; @@ -742,14 +580,8 @@ pub trait IMbnDeviceServicesContext_Impl: Sized { impl windows_core::RuntimeName for IMbnDeviceServicesContext {} #[cfg(feature = "Win32_System_Com")] impl IMbnDeviceServicesContext_Vtbl { - pub const fn new() -> IMbnDeviceServicesContext_Vtbl - where - Identity: IMbnDeviceServicesContext_Impl, - { - unsafe extern "system" fn EnumerateDeviceServices(this: *mut core::ffi::c_void, deviceservices: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesContext_Impl, - { + pub const fn new() -> IMbnDeviceServicesContext_Vtbl { + unsafe extern "system" fn EnumerateDeviceServices(this: *mut core::ffi::c_void, deviceservices: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceServicesContext_Impl::EnumerateDeviceServices(this) { Ok(ok__) => { @@ -759,10 +591,7 @@ impl IMbnDeviceServicesContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceService(this: *mut core::ffi::c_void, deviceserviceid: core::mem::MaybeUninit, mbndeviceservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesContext_Impl, - { + unsafe extern "system" fn GetDeviceService(this: *mut core::ffi::c_void, deviceserviceid: core::mem::MaybeUninit, mbndeviceservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceServicesContext_Impl::GetDeviceService(this, core::mem::transmute(&deviceserviceid)) { Ok(ok__) => { @@ -772,10 +601,7 @@ impl IMbnDeviceServicesContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxCommandSize(this: *mut core::ffi::c_void, maxcommandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesContext_Impl, - { + unsafe extern "system" fn MaxCommandSize(this: *mut core::ffi::c_void, maxcommandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceServicesContext_Impl::MaxCommandSize(this) { Ok(ok__) => { @@ -785,10 +611,7 @@ impl IMbnDeviceServicesContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxDataSize(this: *mut core::ffi::c_void, maxdatasize: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesContext_Impl, - { + unsafe extern "system" fn MaxDataSize(this: *mut core::ffi::c_void, maxdatasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceServicesContext_Impl::MaxDataSize(this) { Ok(ok__) => { @@ -811,7 +634,7 @@ impl IMbnDeviceServicesContext_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnDeviceServicesEvents_Impl: Sized { +pub trait IMbnDeviceServicesEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnQuerySupportedCommandsComplete(&self, deviceservice: Option<&IMbnDeviceService>, commandidlist: *const super::super::System::Com::SAFEARRAY, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()>; fn OnOpenCommandSessionComplete(&self, deviceservice: Option<&IMbnDeviceService>, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()>; fn OnCloseCommandSessionComplete(&self, deviceservice: Option<&IMbnDeviceService>, status: windows_core::HRESULT, requestid: u32) -> windows_core::Result<()>; @@ -828,84 +651,48 @@ pub trait IMbnDeviceServicesEvents_Impl: Sized { impl windows_core::RuntimeName for IMbnDeviceServicesEvents {} #[cfg(feature = "Win32_System_Com")] impl IMbnDeviceServicesEvents_Vtbl { - pub const fn new() -> IMbnDeviceServicesEvents_Vtbl - where - Identity: IMbnDeviceServicesEvents_Impl, - { - unsafe extern "system" fn OnQuerySupportedCommandsComplete(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 - where - Identity: IMbnDeviceServicesEvents_Impl, - { + pub const fn new() -> IMbnDeviceServicesEvents_Vtbl { + unsafe extern "system" fn OnQuerySupportedCommandsComplete(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnQuerySupportedCommandsComplete(this, windows_core::from_raw_borrowed(&deviceservice), core::mem::transmute_copy(&commandidlist), core::mem::transmute_copy(&status), core::mem::transmute_copy(&requestid)).into() } - unsafe extern "system" fn OnOpenCommandSessionComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesEvents_Impl, - { + unsafe extern "system" fn OnOpenCommandSessionComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnOpenCommandSessionComplete(this, windows_core::from_raw_borrowed(&deviceservice), core::mem::transmute_copy(&status), core::mem::transmute_copy(&requestid)).into() } - unsafe extern "system" fn OnCloseCommandSessionComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesEvents_Impl, - { + unsafe extern "system" fn OnCloseCommandSessionComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnCloseCommandSessionComplete(this, windows_core::from_raw_borrowed(&deviceservice), core::mem::transmute_copy(&status), core::mem::transmute_copy(&requestid)).into() } - unsafe extern "system" fn OnSetCommandComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, responseid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesEvents_Impl, - { + unsafe extern "system" fn OnSetCommandComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, responseid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnSetCommandComplete(this, windows_core::from_raw_borrowed(&deviceservice), core::mem::transmute_copy(&responseid), core::mem::transmute_copy(&deviceservicedata), core::mem::transmute_copy(&status), core::mem::transmute_copy(&requestid)).into() } - unsafe extern "system" fn OnQueryCommandComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, responseid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesEvents_Impl, - { + unsafe extern "system" fn OnQueryCommandComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, responseid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnQueryCommandComplete(this, windows_core::from_raw_borrowed(&deviceservice), core::mem::transmute_copy(&responseid), core::mem::transmute_copy(&deviceservicedata), core::mem::transmute_copy(&status), core::mem::transmute_copy(&requestid)).into() } - unsafe extern "system" fn OnEventNotification(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, eventid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesEvents_Impl, - { + unsafe extern "system" fn OnEventNotification(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, eventid: u32, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnEventNotification(this, windows_core::from_raw_borrowed(&deviceservice), core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&deviceservicedata)).into() } - unsafe extern "system" fn OnOpenDataSessionComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesEvents_Impl, - { + unsafe extern "system" fn OnOpenDataSessionComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnOpenDataSessionComplete(this, windows_core::from_raw_borrowed(&deviceservice), core::mem::transmute_copy(&status), core::mem::transmute_copy(&requestid)).into() } - unsafe extern "system" fn OnCloseDataSessionComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesEvents_Impl, - { + unsafe extern "system" fn OnCloseDataSessionComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnCloseDataSessionComplete(this, windows_core::from_raw_borrowed(&deviceservice), core::mem::transmute_copy(&status), core::mem::transmute_copy(&requestid)).into() } - unsafe extern "system" fn OnWriteDataComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesEvents_Impl, - { + unsafe extern "system" fn OnWriteDataComplete(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, status: windows_core::HRESULT, requestid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnWriteDataComplete(this, windows_core::from_raw_borrowed(&deviceservice), core::mem::transmute_copy(&status), core::mem::transmute_copy(&requestid)).into() } - unsafe extern "system" fn OnReadData(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesEvents_Impl, - { + unsafe extern "system" fn OnReadData(this: *mut core::ffi::c_void, deviceservice: *mut core::ffi::c_void, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnReadData(this, windows_core::from_raw_borrowed(&deviceservice), core::mem::transmute_copy(&deviceservicedata)).into() } - unsafe extern "system" fn OnInterfaceStateChange(this: *mut core::ffi::c_void, interfaceid: core::mem::MaybeUninit, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesEvents_Impl, - { + unsafe extern "system" fn OnInterfaceStateChange(this: *mut core::ffi::c_void, interfaceid: core::mem::MaybeUninit, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnDeviceServicesEvents_Impl::OnInterfaceStateChange(this, core::mem::transmute(&interfaceid), core::mem::transmute_copy(&statechange)).into() } @@ -928,19 +715,13 @@ impl IMbnDeviceServicesEvents_Vtbl { iid == &::IID } } -pub trait IMbnDeviceServicesManager_Impl: Sized { +pub trait IMbnDeviceServicesManager_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceServicesContext(&self, networkinterfaceid: &windows_core::BSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IMbnDeviceServicesManager {} impl IMbnDeviceServicesManager_Vtbl { - pub const fn new() -> IMbnDeviceServicesManager_Vtbl - where - Identity: IMbnDeviceServicesManager_Impl, - { - unsafe extern "system" fn GetDeviceServicesContext(this: *mut core::ffi::c_void, networkinterfaceid: core::mem::MaybeUninit, mbndevicescontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnDeviceServicesManager_Impl, - { + pub const fn new() -> IMbnDeviceServicesManager_Vtbl { + unsafe extern "system" fn GetDeviceServicesContext(this: *mut core::ffi::c_void, networkinterfaceid: core::mem::MaybeUninit, mbndevicescontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceServicesManager_Impl::GetDeviceServicesContext(this, core::mem::transmute(&networkinterfaceid)) { Ok(ok__) => { @@ -957,7 +738,7 @@ impl IMbnDeviceServicesManager_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnInterface_Impl: Sized { +pub trait IMbnInterface_Impl: Sized + windows_core::IUnknownImpl { fn InterfaceID(&self) -> windows_core::Result; fn GetInterfaceCapability(&self, interfacecaps: *mut MBN_INTERFACE_CAPS) -> windows_core::Result<()>; fn GetSubscriberInformation(&self) -> windows_core::Result; @@ -974,14 +755,8 @@ pub trait IMbnInterface_Impl: Sized { impl windows_core::RuntimeName for IMbnInterface {} #[cfg(feature = "Win32_System_Com")] impl IMbnInterface_Vtbl { - pub const fn new() -> IMbnInterface_Vtbl - where - Identity: IMbnInterface_Impl, - { - unsafe extern "system" fn InterfaceID(this: *mut core::ffi::c_void, interfaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + pub const fn new() -> IMbnInterface_Vtbl { + unsafe extern "system" fn InterfaceID(this: *mut core::ffi::c_void, interfaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterface_Impl::InterfaceID(this) { Ok(ok__) => { @@ -991,17 +766,11 @@ impl IMbnInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInterfaceCapability(this: *mut core::ffi::c_void, interfacecaps: *mut MBN_INTERFACE_CAPS) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + unsafe extern "system" fn GetInterfaceCapability(this: *mut core::ffi::c_void, interfacecaps: *mut MBN_INTERFACE_CAPS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterface_Impl::GetInterfaceCapability(this, core::mem::transmute_copy(&interfacecaps)).into() } - unsafe extern "system" fn GetSubscriberInformation(this: *mut core::ffi::c_void, subscriberinformation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + unsafe extern "system" fn GetSubscriberInformation(this: *mut core::ffi::c_void, subscriberinformation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterface_Impl::GetSubscriberInformation(this) { Ok(ok__) => { @@ -1011,10 +780,7 @@ impl IMbnInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReadyState(this: *mut core::ffi::c_void, readystate: *mut MBN_READY_STATE) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + unsafe extern "system" fn GetReadyState(this: *mut core::ffi::c_void, readystate: *mut MBN_READY_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterface_Impl::GetReadyState(this) { Ok(ok__) => { @@ -1024,10 +790,7 @@ impl IMbnInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InEmergencyMode(this: *mut core::ffi::c_void, emergencymode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + unsafe extern "system" fn InEmergencyMode(this: *mut core::ffi::c_void, emergencymode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterface_Impl::InEmergencyMode(this) { Ok(ok__) => { @@ -1037,10 +800,7 @@ impl IMbnInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHomeProvider(this: *mut core::ffi::c_void, homeprovider: *mut MBN_PROVIDER) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + unsafe extern "system" fn GetHomeProvider(this: *mut core::ffi::c_void, homeprovider: *mut MBN_PROVIDER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterface_Impl::GetHomeProvider(this) { Ok(ok__) => { @@ -1050,10 +810,7 @@ impl IMbnInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreferredProviders(this: *mut core::ffi::c_void, preferredproviders: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + unsafe extern "system" fn GetPreferredProviders(this: *mut core::ffi::c_void, preferredproviders: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterface_Impl::GetPreferredProviders(this) { Ok(ok__) => { @@ -1063,10 +820,7 @@ impl IMbnInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPreferredProviders(this: *mut core::ffi::c_void, preferredproviders: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + unsafe extern "system" fn SetPreferredProviders(this: *mut core::ffi::c_void, preferredproviders: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterface_Impl::SetPreferredProviders(this, core::mem::transmute_copy(&preferredproviders)) { Ok(ok__) => { @@ -1076,10 +830,7 @@ impl IMbnInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVisibleProviders(this: *mut core::ffi::c_void, age: *mut u32, visibleproviders: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + unsafe extern "system" fn GetVisibleProviders(this: *mut core::ffi::c_void, age: *mut u32, visibleproviders: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterface_Impl::GetVisibleProviders(this, core::mem::transmute_copy(&age)) { Ok(ok__) => { @@ -1089,10 +840,7 @@ impl IMbnInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScanNetwork(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + unsafe extern "system" fn ScanNetwork(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterface_Impl::ScanNetwork(this) { Ok(ok__) => { @@ -1102,10 +850,7 @@ impl IMbnInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnection(this: *mut core::ffi::c_void, mbnconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterface_Impl, - { + unsafe extern "system" fn GetConnection(this: *mut core::ffi::c_void, mbnconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterface_Impl::GetConnection(this) { Ok(ok__) => { @@ -1134,7 +879,7 @@ impl IMbnInterface_Vtbl { iid == &::IID } } -pub trait IMbnInterfaceEvents_Impl: Sized { +pub trait IMbnInterfaceEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnInterfaceCapabilityAvailable(&self, newinterface: Option<&IMbnInterface>) -> windows_core::Result<()>; fn OnSubscriberInformationChange(&self, newinterface: Option<&IMbnInterface>) -> windows_core::Result<()>; fn OnReadyStateChange(&self, newinterface: Option<&IMbnInterface>) -> windows_core::Result<()>; @@ -1146,63 +891,36 @@ pub trait IMbnInterfaceEvents_Impl: Sized { } impl windows_core::RuntimeName for IMbnInterfaceEvents {} impl IMbnInterfaceEvents_Vtbl { - pub const fn new() -> IMbnInterfaceEvents_Vtbl - where - Identity: IMbnInterfaceEvents_Impl, - { - unsafe extern "system" fn OnInterfaceCapabilityAvailable(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterfaceEvents_Impl, - { + pub const fn new() -> IMbnInterfaceEvents_Vtbl { + unsafe extern "system" fn OnInterfaceCapabilityAvailable(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterfaceEvents_Impl::OnInterfaceCapabilityAvailable(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnSubscriberInformationChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterfaceEvents_Impl, - { + unsafe extern "system" fn OnSubscriberInformationChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterfaceEvents_Impl::OnSubscriberInformationChange(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnReadyStateChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterfaceEvents_Impl, - { + unsafe extern "system" fn OnReadyStateChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterfaceEvents_Impl::OnReadyStateChange(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnEmergencyModeChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterfaceEvents_Impl, - { + unsafe extern "system" fn OnEmergencyModeChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterfaceEvents_Impl::OnEmergencyModeChange(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnHomeProviderAvailable(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterfaceEvents_Impl, - { + unsafe extern "system" fn OnHomeProviderAvailable(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterfaceEvents_Impl::OnHomeProviderAvailable(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnPreferredProvidersChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterfaceEvents_Impl, - { + unsafe extern "system" fn OnPreferredProvidersChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterfaceEvents_Impl::OnPreferredProvidersChange(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnSetPreferredProvidersComplete(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnInterfaceEvents_Impl, - { + unsafe extern "system" fn OnSetPreferredProvidersComplete(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterfaceEvents_Impl::OnSetPreferredProvidersComplete(this, windows_core::from_raw_borrowed(&newinterface), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnScanNetworkComplete(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnInterfaceEvents_Impl, - { + unsafe extern "system" fn OnScanNetworkComplete(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterfaceEvents_Impl::OnScanNetworkComplete(this, windows_core::from_raw_borrowed(&newinterface), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } @@ -1223,7 +941,7 @@ impl IMbnInterfaceEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnInterfaceManager_Impl: Sized { +pub trait IMbnInterfaceManager_Impl: Sized + windows_core::IUnknownImpl { fn GetInterface(&self, interfaceid: &windows_core::PCWSTR) -> windows_core::Result; fn GetInterfaces(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; } @@ -1231,14 +949,8 @@ pub trait IMbnInterfaceManager_Impl: Sized { impl windows_core::RuntimeName for IMbnInterfaceManager {} #[cfg(feature = "Win32_System_Com")] impl IMbnInterfaceManager_Vtbl { - pub const fn new() -> IMbnInterfaceManager_Vtbl - where - Identity: IMbnInterfaceManager_Impl, - { - unsafe extern "system" fn GetInterface(this: *mut core::ffi::c_void, interfaceid: windows_core::PCWSTR, mbninterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterfaceManager_Impl, - { + pub const fn new() -> IMbnInterfaceManager_Vtbl { + unsafe extern "system" fn GetInterface(this: *mut core::ffi::c_void, interfaceid: windows_core::PCWSTR, mbninterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterfaceManager_Impl::GetInterface(this, core::mem::transmute(&interfaceid)) { Ok(ok__) => { @@ -1248,10 +960,7 @@ impl IMbnInterfaceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInterfaces(this: *mut core::ffi::c_void, mbninterfaces: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnInterfaceManager_Impl, - { + unsafe extern "system" fn GetInterfaces(this: *mut core::ffi::c_void, mbninterfaces: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnInterfaceManager_Impl::GetInterfaces(this) { Ok(ok__) => { @@ -1271,27 +980,18 @@ impl IMbnInterfaceManager_Vtbl { iid == &::IID } } -pub trait IMbnInterfaceManagerEvents_Impl: Sized { +pub trait IMbnInterfaceManagerEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnInterfaceArrival(&self, newinterface: Option<&IMbnInterface>) -> windows_core::Result<()>; fn OnInterfaceRemoval(&self, oldinterface: Option<&IMbnInterface>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMbnInterfaceManagerEvents {} impl IMbnInterfaceManagerEvents_Vtbl { - pub const fn new() -> IMbnInterfaceManagerEvents_Vtbl - where - Identity: IMbnInterfaceManagerEvents_Impl, - { - unsafe extern "system" fn OnInterfaceArrival(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterfaceManagerEvents_Impl, - { + pub const fn new() -> IMbnInterfaceManagerEvents_Vtbl { + unsafe extern "system" fn OnInterfaceArrival(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterfaceManagerEvents_Impl::OnInterfaceArrival(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnInterfaceRemoval(this: *mut core::ffi::c_void, oldinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnInterfaceManagerEvents_Impl, - { + unsafe extern "system" fn OnInterfaceRemoval(this: *mut core::ffi::c_void, oldinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnInterfaceManagerEvents_Impl::OnInterfaceRemoval(this, windows_core::from_raw_borrowed(&oldinterface)).into() } @@ -1306,7 +1006,7 @@ impl IMbnInterfaceManagerEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnMultiCarrier_Impl: Sized { +pub trait IMbnMultiCarrier_Impl: Sized + windows_core::IUnknownImpl { fn SetHomeProvider(&self, homeprovider: *const MBN_PROVIDER2) -> windows_core::Result; fn GetPreferredProviders(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetVisibleProviders(&self, age: *mut u32) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -1318,14 +1018,8 @@ pub trait IMbnMultiCarrier_Impl: Sized { impl windows_core::RuntimeName for IMbnMultiCarrier {} #[cfg(feature = "Win32_System_Com")] impl IMbnMultiCarrier_Vtbl { - pub const fn new() -> IMbnMultiCarrier_Vtbl - where - Identity: IMbnMultiCarrier_Impl, - { - unsafe extern "system" fn SetHomeProvider(this: *mut core::ffi::c_void, homeprovider: *const MBN_PROVIDER2, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrier_Impl, - { + pub const fn new() -> IMbnMultiCarrier_Vtbl { + unsafe extern "system" fn SetHomeProvider(this: *mut core::ffi::c_void, homeprovider: *const MBN_PROVIDER2, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnMultiCarrier_Impl::SetHomeProvider(this, core::mem::transmute_copy(&homeprovider)) { Ok(ok__) => { @@ -1335,10 +1029,7 @@ impl IMbnMultiCarrier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreferredProviders(this: *mut core::ffi::c_void, preferredmulticarrierproviders: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrier_Impl, - { + unsafe extern "system" fn GetPreferredProviders(this: *mut core::ffi::c_void, preferredmulticarrierproviders: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnMultiCarrier_Impl::GetPreferredProviders(this) { Ok(ok__) => { @@ -1348,10 +1039,7 @@ impl IMbnMultiCarrier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVisibleProviders(this: *mut core::ffi::c_void, age: *mut u32, visibleproviders: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrier_Impl, - { + unsafe extern "system" fn GetVisibleProviders(this: *mut core::ffi::c_void, age: *mut u32, visibleproviders: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnMultiCarrier_Impl::GetVisibleProviders(this, core::mem::transmute_copy(&age)) { Ok(ok__) => { @@ -1361,10 +1049,7 @@ impl IMbnMultiCarrier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedCellularClasses(this: *mut core::ffi::c_void, cellularclasses: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrier_Impl, - { + unsafe extern "system" fn GetSupportedCellularClasses(this: *mut core::ffi::c_void, cellularclasses: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnMultiCarrier_Impl::GetSupportedCellularClasses(this) { Ok(ok__) => { @@ -1374,10 +1059,7 @@ impl IMbnMultiCarrier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentCellularClass(this: *mut core::ffi::c_void, currentcellularclass: *mut MBN_CELLULAR_CLASS) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrier_Impl, - { + unsafe extern "system" fn GetCurrentCellularClass(this: *mut core::ffi::c_void, currentcellularclass: *mut MBN_CELLULAR_CLASS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnMultiCarrier_Impl::GetCurrentCellularClass(this) { Ok(ok__) => { @@ -1387,10 +1069,7 @@ impl IMbnMultiCarrier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScanNetwork(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrier_Impl, - { + unsafe extern "system" fn ScanNetwork(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnMultiCarrier_Impl::ScanNetwork(this) { Ok(ok__) => { @@ -1414,7 +1093,7 @@ impl IMbnMultiCarrier_Vtbl { iid == &::IID } } -pub trait IMbnMultiCarrierEvents_Impl: Sized { +pub trait IMbnMultiCarrierEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnSetHomeProviderComplete(&self, mbninterface: Option<&IMbnMultiCarrier>, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; fn OnCurrentCellularClassChange(&self, mbninterface: Option<&IMbnMultiCarrier>) -> windows_core::Result<()>; fn OnPreferredProvidersChange(&self, mbninterface: Option<&IMbnMultiCarrier>) -> windows_core::Result<()>; @@ -1423,42 +1102,24 @@ pub trait IMbnMultiCarrierEvents_Impl: Sized { } impl windows_core::RuntimeName for IMbnMultiCarrierEvents {} impl IMbnMultiCarrierEvents_Vtbl { - pub const fn new() -> IMbnMultiCarrierEvents_Vtbl - where - Identity: IMbnMultiCarrierEvents_Impl, - { - unsafe extern "system" fn OnSetHomeProviderComplete(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrierEvents_Impl, - { + pub const fn new() -> IMbnMultiCarrierEvents_Vtbl { + unsafe extern "system" fn OnSetHomeProviderComplete(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnMultiCarrierEvents_Impl::OnSetHomeProviderComplete(this, windows_core::from_raw_borrowed(&mbninterface), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnCurrentCellularClassChange(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrierEvents_Impl, - { + unsafe extern "system" fn OnCurrentCellularClassChange(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnMultiCarrierEvents_Impl::OnCurrentCellularClassChange(this, windows_core::from_raw_borrowed(&mbninterface)).into() } - unsafe extern "system" fn OnPreferredProvidersChange(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrierEvents_Impl, - { + unsafe extern "system" fn OnPreferredProvidersChange(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnMultiCarrierEvents_Impl::OnPreferredProvidersChange(this, windows_core::from_raw_borrowed(&mbninterface)).into() } - unsafe extern "system" fn OnScanNetworkComplete(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrierEvents_Impl, - { + unsafe extern "system" fn OnScanNetworkComplete(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnMultiCarrierEvents_Impl::OnScanNetworkComplete(this, windows_core::from_raw_borrowed(&mbninterface), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnInterfaceCapabilityChange(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnMultiCarrierEvents_Impl, - { + unsafe extern "system" fn OnInterfaceCapabilityChange(this: *mut core::ffi::c_void, mbninterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnMultiCarrierEvents_Impl::OnInterfaceCapabilityChange(this, windows_core::from_raw_borrowed(&mbninterface)).into() } @@ -1475,7 +1136,7 @@ impl IMbnMultiCarrierEvents_Vtbl { iid == &::IID } } -pub trait IMbnPin_Impl: Sized { +pub trait IMbnPin_Impl: Sized + windows_core::IUnknownImpl { fn PinType(&self) -> windows_core::Result; fn PinFormat(&self) -> windows_core::Result; fn PinLengthMin(&self) -> windows_core::Result; @@ -1490,14 +1151,8 @@ pub trait IMbnPin_Impl: Sized { } impl windows_core::RuntimeName for IMbnPin {} impl IMbnPin_Vtbl { - pub const fn new() -> IMbnPin_Vtbl - where - Identity: IMbnPin_Impl, - { - unsafe extern "system" fn PinType(this: *mut core::ffi::c_void, pintype: *mut MBN_PIN_TYPE) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + pub const fn new() -> IMbnPin_Vtbl { + unsafe extern "system" fn PinType(this: *mut core::ffi::c_void, pintype: *mut MBN_PIN_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::PinType(this) { Ok(ok__) => { @@ -1507,10 +1162,7 @@ impl IMbnPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PinFormat(this: *mut core::ffi::c_void, pinformat: *mut MBN_PIN_FORMAT) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + unsafe extern "system" fn PinFormat(this: *mut core::ffi::c_void, pinformat: *mut MBN_PIN_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::PinFormat(this) { Ok(ok__) => { @@ -1520,10 +1172,7 @@ impl IMbnPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PinLengthMin(this: *mut core::ffi::c_void, pinlengthmin: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + unsafe extern "system" fn PinLengthMin(this: *mut core::ffi::c_void, pinlengthmin: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::PinLengthMin(this) { Ok(ok__) => { @@ -1533,10 +1182,7 @@ impl IMbnPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PinLengthMax(this: *mut core::ffi::c_void, pinlengthmax: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + unsafe extern "system" fn PinLengthMax(this: *mut core::ffi::c_void, pinlengthmax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::PinLengthMax(this) { Ok(ok__) => { @@ -1546,10 +1192,7 @@ impl IMbnPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PinMode(this: *mut core::ffi::c_void, pinmode: *mut MBN_PIN_MODE) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + unsafe extern "system" fn PinMode(this: *mut core::ffi::c_void, pinmode: *mut MBN_PIN_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::PinMode(this) { Ok(ok__) => { @@ -1559,10 +1202,7 @@ impl IMbnPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, pin: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, pin: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::Enable(this, core::mem::transmute(&pin)) { Ok(ok__) => { @@ -1572,10 +1212,7 @@ impl IMbnPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disable(this: *mut core::ffi::c_void, pin: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + unsafe extern "system" fn Disable(this: *mut core::ffi::c_void, pin: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::Disable(this, core::mem::transmute(&pin)) { Ok(ok__) => { @@ -1585,10 +1222,7 @@ impl IMbnPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enter(this: *mut core::ffi::c_void, pin: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + unsafe extern "system" fn Enter(this: *mut core::ffi::c_void, pin: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::Enter(this, core::mem::transmute(&pin)) { Ok(ok__) => { @@ -1598,10 +1232,7 @@ impl IMbnPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Change(this: *mut core::ffi::c_void, pin: windows_core::PCWSTR, newpin: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + unsafe extern "system" fn Change(this: *mut core::ffi::c_void, pin: windows_core::PCWSTR, newpin: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::Change(this, core::mem::transmute(&pin), core::mem::transmute(&newpin)) { Ok(ok__) => { @@ -1611,10 +1242,7 @@ impl IMbnPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unblock(this: *mut core::ffi::c_void, puk: windows_core::PCWSTR, newpin: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + unsafe extern "system" fn Unblock(this: *mut core::ffi::c_void, puk: windows_core::PCWSTR, newpin: windows_core::PCWSTR, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::Unblock(this, core::mem::transmute(&puk), core::mem::transmute(&newpin)) { Ok(ok__) => { @@ -1624,10 +1252,7 @@ impl IMbnPin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPinManager(this: *mut core::ffi::c_void, pinmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnPin_Impl, - { + unsafe extern "system" fn GetPinManager(this: *mut core::ffi::c_void, pinmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPin_Impl::GetPinManager(this) { Ok(ok__) => { @@ -1656,7 +1281,7 @@ impl IMbnPin_Vtbl { iid == &::IID } } -pub trait IMbnPinEvents_Impl: Sized { +pub trait IMbnPinEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnEnableComplete(&self, pin: Option<&IMbnPin>, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; fn OnDisableComplete(&self, pin: Option<&IMbnPin>, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; fn OnEnterComplete(&self, pin: Option<&IMbnPin>, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; @@ -1665,42 +1290,24 @@ pub trait IMbnPinEvents_Impl: Sized { } impl windows_core::RuntimeName for IMbnPinEvents {} impl IMbnPinEvents_Vtbl { - pub const fn new() -> IMbnPinEvents_Vtbl - where - Identity: IMbnPinEvents_Impl, - { - unsafe extern "system" fn OnEnableComplete(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnPinEvents_Impl, - { + pub const fn new() -> IMbnPinEvents_Vtbl { + unsafe extern "system" fn OnEnableComplete(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnPinEvents_Impl::OnEnableComplete(this, windows_core::from_raw_borrowed(&pin), core::mem::transmute_copy(&pininfo), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnDisableComplete(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnPinEvents_Impl, - { + unsafe extern "system" fn OnDisableComplete(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnPinEvents_Impl::OnDisableComplete(this, windows_core::from_raw_borrowed(&pin), core::mem::transmute_copy(&pininfo), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnEnterComplete(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnPinEvents_Impl, - { + unsafe extern "system" fn OnEnterComplete(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnPinEvents_Impl::OnEnterComplete(this, windows_core::from_raw_borrowed(&pin), core::mem::transmute_copy(&pininfo), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnChangeComplete(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnPinEvents_Impl, - { + unsafe extern "system" fn OnChangeComplete(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnPinEvents_Impl::OnChangeComplete(this, windows_core::from_raw_borrowed(&pin), core::mem::transmute_copy(&pininfo), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnUnblockComplete(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnPinEvents_Impl, - { + unsafe extern "system" fn OnUnblockComplete(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnPinEvents_Impl::OnUnblockComplete(this, windows_core::from_raw_borrowed(&pin), core::mem::transmute_copy(&pininfo), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } @@ -1718,7 +1325,7 @@ impl IMbnPinEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnPinManager_Impl: Sized { +pub trait IMbnPinManager_Impl: Sized + windows_core::IUnknownImpl { fn GetPinList(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetPin(&self, pintype: MBN_PIN_TYPE) -> windows_core::Result; fn GetPinState(&self) -> windows_core::Result; @@ -1727,14 +1334,8 @@ pub trait IMbnPinManager_Impl: Sized { impl windows_core::RuntimeName for IMbnPinManager {} #[cfg(feature = "Win32_System_Com")] impl IMbnPinManager_Vtbl { - pub const fn new() -> IMbnPinManager_Vtbl - where - Identity: IMbnPinManager_Impl, - { - unsafe extern "system" fn GetPinList(this: *mut core::ffi::c_void, pinlist: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnPinManager_Impl, - { + pub const fn new() -> IMbnPinManager_Vtbl { + unsafe extern "system" fn GetPinList(this: *mut core::ffi::c_void, pinlist: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPinManager_Impl::GetPinList(this) { Ok(ok__) => { @@ -1744,10 +1345,7 @@ impl IMbnPinManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPin(this: *mut core::ffi::c_void, pintype: MBN_PIN_TYPE, pin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnPinManager_Impl, - { + unsafe extern "system" fn GetPin(this: *mut core::ffi::c_void, pintype: MBN_PIN_TYPE, pin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPinManager_Impl::GetPin(this, core::mem::transmute_copy(&pintype)) { Ok(ok__) => { @@ -1757,10 +1355,7 @@ impl IMbnPinManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPinState(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnPinManager_Impl, - { + unsafe extern "system" fn GetPinState(this: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnPinManager_Impl::GetPinState(this) { Ok(ok__) => { @@ -1781,27 +1376,18 @@ impl IMbnPinManager_Vtbl { iid == &::IID } } -pub trait IMbnPinManagerEvents_Impl: Sized { +pub trait IMbnPinManagerEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnPinListAvailable(&self, pinmanager: Option<&IMbnPinManager>) -> windows_core::Result<()>; fn OnGetPinStateComplete(&self, pinmanager: Option<&IMbnPinManager>, pininfo: &MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMbnPinManagerEvents {} impl IMbnPinManagerEvents_Vtbl { - pub const fn new() -> IMbnPinManagerEvents_Vtbl - where - Identity: IMbnPinManagerEvents_Impl, - { - unsafe extern "system" fn OnPinListAvailable(this: *mut core::ffi::c_void, pinmanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnPinManagerEvents_Impl, - { + pub const fn new() -> IMbnPinManagerEvents_Vtbl { + unsafe extern "system" fn OnPinListAvailable(this: *mut core::ffi::c_void, pinmanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnPinManagerEvents_Impl::OnPinListAvailable(this, windows_core::from_raw_borrowed(&pinmanager)).into() } - unsafe extern "system" fn OnGetPinStateComplete(this: *mut core::ffi::c_void, pinmanager: *mut core::ffi::c_void, pininfo: MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnPinManagerEvents_Impl, - { + unsafe extern "system" fn OnGetPinStateComplete(this: *mut core::ffi::c_void, pinmanager: *mut core::ffi::c_void, pininfo: MBN_PIN_INFO, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnPinManagerEvents_Impl::OnGetPinStateComplete(this, windows_core::from_raw_borrowed(&pinmanager), core::mem::transmute(&pininfo), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } @@ -1815,21 +1401,15 @@ impl IMbnPinManagerEvents_Vtbl { iid == &::IID } } -pub trait IMbnRadio_Impl: Sized { +pub trait IMbnRadio_Impl: Sized + windows_core::IUnknownImpl { fn SoftwareRadioState(&self) -> windows_core::Result; fn HardwareRadioState(&self) -> windows_core::Result; fn SetSoftwareRadioState(&self, radiostate: MBN_RADIO) -> windows_core::Result; } impl windows_core::RuntimeName for IMbnRadio {} impl IMbnRadio_Vtbl { - pub const fn new() -> IMbnRadio_Vtbl - where - Identity: IMbnRadio_Impl, - { - unsafe extern "system" fn SoftwareRadioState(this: *mut core::ffi::c_void, softwareradiostate: *mut MBN_RADIO) -> windows_core::HRESULT - where - Identity: IMbnRadio_Impl, - { + pub const fn new() -> IMbnRadio_Vtbl { + unsafe extern "system" fn SoftwareRadioState(this: *mut core::ffi::c_void, softwareradiostate: *mut MBN_RADIO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRadio_Impl::SoftwareRadioState(this) { Ok(ok__) => { @@ -1839,10 +1419,7 @@ impl IMbnRadio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HardwareRadioState(this: *mut core::ffi::c_void, hardwareradiostate: *mut MBN_RADIO) -> windows_core::HRESULT - where - Identity: IMbnRadio_Impl, - { + unsafe extern "system" fn HardwareRadioState(this: *mut core::ffi::c_void, hardwareradiostate: *mut MBN_RADIO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRadio_Impl::HardwareRadioState(this) { Ok(ok__) => { @@ -1852,10 +1429,7 @@ impl IMbnRadio_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSoftwareRadioState(this: *mut core::ffi::c_void, radiostate: MBN_RADIO, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnRadio_Impl, - { + unsafe extern "system" fn SetSoftwareRadioState(this: *mut core::ffi::c_void, radiostate: MBN_RADIO, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRadio_Impl::SetSoftwareRadioState(this, core::mem::transmute_copy(&radiostate)) { Ok(ok__) => { @@ -1876,27 +1450,18 @@ impl IMbnRadio_Vtbl { iid == &::IID } } -pub trait IMbnRadioEvents_Impl: Sized { +pub trait IMbnRadioEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnRadioStateChange(&self, newinterface: Option<&IMbnRadio>) -> windows_core::Result<()>; fn OnSetSoftwareRadioStateComplete(&self, newinterface: Option<&IMbnRadio>, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMbnRadioEvents {} impl IMbnRadioEvents_Vtbl { - pub const fn new() -> IMbnRadioEvents_Vtbl - where - Identity: IMbnRadioEvents_Impl, - { - unsafe extern "system" fn OnRadioStateChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnRadioEvents_Impl, - { + pub const fn new() -> IMbnRadioEvents_Vtbl { + unsafe extern "system" fn OnRadioStateChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnRadioEvents_Impl::OnRadioStateChange(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnSetSoftwareRadioStateComplete(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnRadioEvents_Impl, - { + unsafe extern "system" fn OnSetSoftwareRadioStateComplete(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnRadioEvents_Impl::OnSetSoftwareRadioStateComplete(this, windows_core::from_raw_borrowed(&newinterface), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } @@ -1910,7 +1475,7 @@ impl IMbnRadioEvents_Vtbl { iid == &::IID } } -pub trait IMbnRegistration_Impl: Sized { +pub trait IMbnRegistration_Impl: Sized + windows_core::IUnknownImpl { fn GetRegisterState(&self) -> windows_core::Result; fn GetRegisterMode(&self) -> windows_core::Result; fn GetProviderID(&self) -> windows_core::Result; @@ -1924,14 +1489,8 @@ pub trait IMbnRegistration_Impl: Sized { } impl windows_core::RuntimeName for IMbnRegistration {} impl IMbnRegistration_Vtbl { - pub const fn new() -> IMbnRegistration_Vtbl - where - Identity: IMbnRegistration_Impl, - { - unsafe extern "system" fn GetRegisterState(this: *mut core::ffi::c_void, registerstate: *mut MBN_REGISTER_STATE) -> windows_core::HRESULT - where - Identity: IMbnRegistration_Impl, - { + pub const fn new() -> IMbnRegistration_Vtbl { + unsafe extern "system" fn GetRegisterState(this: *mut core::ffi::c_void, registerstate: *mut MBN_REGISTER_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRegistration_Impl::GetRegisterState(this) { Ok(ok__) => { @@ -1941,10 +1500,7 @@ impl IMbnRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRegisterMode(this: *mut core::ffi::c_void, registermode: *mut MBN_REGISTER_MODE) -> windows_core::HRESULT - where - Identity: IMbnRegistration_Impl, - { + unsafe extern "system" fn GetRegisterMode(this: *mut core::ffi::c_void, registermode: *mut MBN_REGISTER_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRegistration_Impl::GetRegisterMode(this) { Ok(ok__) => { @@ -1954,10 +1510,7 @@ impl IMbnRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderID(this: *mut core::ffi::c_void, providerid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnRegistration_Impl, - { + unsafe extern "system" fn GetProviderID(this: *mut core::ffi::c_void, providerid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRegistration_Impl::GetProviderID(this) { Ok(ok__) => { @@ -1967,10 +1520,7 @@ impl IMbnRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderName(this: *mut core::ffi::c_void, providername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnRegistration_Impl, - { + unsafe extern "system" fn GetProviderName(this: *mut core::ffi::c_void, providername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRegistration_Impl::GetProviderName(this) { Ok(ok__) => { @@ -1980,10 +1530,7 @@ impl IMbnRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRoamingText(this: *mut core::ffi::c_void, roamingtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnRegistration_Impl, - { + unsafe extern "system" fn GetRoamingText(this: *mut core::ffi::c_void, roamingtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRegistration_Impl::GetRoamingText(this) { Ok(ok__) => { @@ -1993,10 +1540,7 @@ impl IMbnRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAvailableDataClasses(this: *mut core::ffi::c_void, availabledataclasses: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnRegistration_Impl, - { + unsafe extern "system" fn GetAvailableDataClasses(this: *mut core::ffi::c_void, availabledataclasses: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRegistration_Impl::GetAvailableDataClasses(this) { Ok(ok__) => { @@ -2006,10 +1550,7 @@ impl IMbnRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentDataClass(this: *mut core::ffi::c_void, currentdataclass: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnRegistration_Impl, - { + unsafe extern "system" fn GetCurrentDataClass(this: *mut core::ffi::c_void, currentdataclass: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRegistration_Impl::GetCurrentDataClass(this) { Ok(ok__) => { @@ -2019,10 +1560,7 @@ impl IMbnRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRegistrationNetworkError(this: *mut core::ffi::c_void, registrationnetworkerror: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnRegistration_Impl, - { + unsafe extern "system" fn GetRegistrationNetworkError(this: *mut core::ffi::c_void, registrationnetworkerror: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRegistration_Impl::GetRegistrationNetworkError(this) { Ok(ok__) => { @@ -2032,10 +1570,7 @@ impl IMbnRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPacketAttachNetworkError(this: *mut core::ffi::c_void, packetattachnetworkerror: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnRegistration_Impl, - { + unsafe extern "system" fn GetPacketAttachNetworkError(this: *mut core::ffi::c_void, packetattachnetworkerror: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRegistration_Impl::GetPacketAttachNetworkError(this) { Ok(ok__) => { @@ -2045,10 +1580,7 @@ impl IMbnRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRegisterMode(this: *mut core::ffi::c_void, registermode: MBN_REGISTER_MODE, providerid: windows_core::PCWSTR, dataclass: u32, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnRegistration_Impl, - { + unsafe extern "system" fn SetRegisterMode(this: *mut core::ffi::c_void, registermode: MBN_REGISTER_MODE, providerid: windows_core::PCWSTR, dataclass: u32, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnRegistration_Impl::SetRegisterMode(this, core::mem::transmute_copy(®istermode), core::mem::transmute(&providerid), core::mem::transmute_copy(&dataclass)) { Ok(ok__) => { @@ -2076,7 +1608,7 @@ impl IMbnRegistration_Vtbl { iid == &::IID } } -pub trait IMbnRegistrationEvents_Impl: Sized { +pub trait IMbnRegistrationEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnRegisterModeAvailable(&self, newinterface: Option<&IMbnRegistration>) -> windows_core::Result<()>; fn OnRegisterStateChange(&self, newinterface: Option<&IMbnRegistration>) -> windows_core::Result<()>; fn OnPacketServiceStateChange(&self, newinterface: Option<&IMbnRegistration>) -> windows_core::Result<()>; @@ -2084,35 +1616,20 @@ pub trait IMbnRegistrationEvents_Impl: Sized { } impl windows_core::RuntimeName for IMbnRegistrationEvents {} impl IMbnRegistrationEvents_Vtbl { - pub const fn new() -> IMbnRegistrationEvents_Vtbl - where - Identity: IMbnRegistrationEvents_Impl, - { - unsafe extern "system" fn OnRegisterModeAvailable(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnRegistrationEvents_Impl, - { + pub const fn new() -> IMbnRegistrationEvents_Vtbl { + unsafe extern "system" fn OnRegisterModeAvailable(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnRegistrationEvents_Impl::OnRegisterModeAvailable(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnRegisterStateChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnRegistrationEvents_Impl, - { + unsafe extern "system" fn OnRegisterStateChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnRegistrationEvents_Impl::OnRegisterStateChange(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnPacketServiceStateChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnRegistrationEvents_Impl, - { + unsafe extern "system" fn OnPacketServiceStateChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnRegistrationEvents_Impl::OnPacketServiceStateChange(this, windows_core::from_raw_borrowed(&newinterface)).into() } - unsafe extern "system" fn OnSetRegisterModeComplete(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnRegistrationEvents_Impl, - { + unsafe extern "system" fn OnSetRegisterModeComplete(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnRegistrationEvents_Impl::OnSetRegisterModeComplete(this, windows_core::from_raw_borrowed(&newinterface), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } @@ -2129,21 +1646,15 @@ impl IMbnRegistrationEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnServiceActivation_Impl: Sized { +pub trait IMbnServiceActivation_Impl: Sized + windows_core::IUnknownImpl { fn Activate(&self, vendorspecificdata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IMbnServiceActivation {} #[cfg(feature = "Win32_System_Com")] impl IMbnServiceActivation_Vtbl { - pub const fn new() -> IMbnServiceActivation_Vtbl - where - Identity: IMbnServiceActivation_Impl, - { - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnServiceActivation_Impl, - { + pub const fn new() -> IMbnServiceActivation_Vtbl { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnServiceActivation_Impl::Activate(this, core::mem::transmute_copy(&vendorspecificdata)) { Ok(ok__) => { @@ -2160,21 +1671,15 @@ impl IMbnServiceActivation_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnServiceActivationEvents_Impl: Sized { +pub trait IMbnServiceActivationEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnActivationComplete(&self, serviceactivation: Option<&IMbnServiceActivation>, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: u32, status: windows_core::HRESULT, networkerror: u32) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IMbnServiceActivationEvents {} #[cfg(feature = "Win32_System_Com")] impl IMbnServiceActivationEvents_Vtbl { - pub const fn new() -> IMbnServiceActivationEvents_Vtbl - where - Identity: IMbnServiceActivationEvents_Impl, - { - unsafe extern "system" fn OnActivationComplete(this: *mut core::ffi::c_void, serviceactivation: *mut core::ffi::c_void, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: u32, status: windows_core::HRESULT, networkerror: u32) -> windows_core::HRESULT - where - Identity: IMbnServiceActivationEvents_Impl, - { + pub const fn new() -> IMbnServiceActivationEvents_Vtbl { + unsafe extern "system" fn OnActivationComplete(this: *mut core::ffi::c_void, serviceactivation: *mut core::ffi::c_void, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: u32, status: windows_core::HRESULT, networkerror: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnServiceActivationEvents_Impl::OnActivationComplete(this, windows_core::from_raw_borrowed(&serviceactivation), core::mem::transmute_copy(&vendorspecificdata), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status), core::mem::transmute_copy(&networkerror)).into() } @@ -2184,20 +1689,14 @@ impl IMbnServiceActivationEvents_Vtbl { iid == &::IID } } -pub trait IMbnSignal_Impl: Sized { +pub trait IMbnSignal_Impl: Sized + windows_core::IUnknownImpl { fn GetSignalStrength(&self) -> windows_core::Result; fn GetSignalError(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMbnSignal {} impl IMbnSignal_Vtbl { - pub const fn new() -> IMbnSignal_Vtbl - where - Identity: IMbnSignal_Impl, - { - unsafe extern "system" fn GetSignalStrength(this: *mut core::ffi::c_void, signalstrength: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSignal_Impl, - { + pub const fn new() -> IMbnSignal_Vtbl { + unsafe extern "system" fn GetSignalStrength(this: *mut core::ffi::c_void, signalstrength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSignal_Impl::GetSignalStrength(this) { Ok(ok__) => { @@ -2207,10 +1706,7 @@ impl IMbnSignal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignalError(this: *mut core::ffi::c_void, signalerror: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSignal_Impl, - { + unsafe extern "system" fn GetSignalError(this: *mut core::ffi::c_void, signalerror: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSignal_Impl::GetSignalError(this) { Ok(ok__) => { @@ -2230,19 +1726,13 @@ impl IMbnSignal_Vtbl { iid == &::IID } } -pub trait IMbnSignalEvents_Impl: Sized { +pub trait IMbnSignalEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnSignalStateChange(&self, newinterface: Option<&IMbnSignal>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMbnSignalEvents {} impl IMbnSignalEvents_Vtbl { - pub const fn new() -> IMbnSignalEvents_Vtbl - where - Identity: IMbnSignalEvents_Impl, - { - unsafe extern "system" fn OnSignalStateChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnSignalEvents_Impl, - { + pub const fn new() -> IMbnSignalEvents_Vtbl { + unsafe extern "system" fn OnSignalStateChange(this: *mut core::ffi::c_void, newinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnSignalEvents_Impl::OnSignalStateChange(this, windows_core::from_raw_borrowed(&newinterface)).into() } @@ -2253,7 +1743,7 @@ impl IMbnSignalEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnSms_Impl: Sized { +pub trait IMbnSms_Impl: Sized + windows_core::IUnknownImpl { fn GetSmsConfiguration(&self) -> windows_core::Result; fn SetSmsConfiguration(&self, smsconfiguration: Option<&IMbnSmsConfiguration>) -> windows_core::Result; fn SmsSendPdu(&self, pdudata: &windows_core::PCWSTR, size: u8) -> windows_core::Result; @@ -2267,14 +1757,8 @@ pub trait IMbnSms_Impl: Sized { impl windows_core::RuntimeName for IMbnSms {} #[cfg(feature = "Win32_System_Com")] impl IMbnSms_Vtbl { - pub const fn new() -> IMbnSms_Vtbl - where - Identity: IMbnSms_Impl, - { - unsafe extern "system" fn GetSmsConfiguration(this: *mut core::ffi::c_void, smsconfiguration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnSms_Impl, - { + pub const fn new() -> IMbnSms_Vtbl { + unsafe extern "system" fn GetSmsConfiguration(this: *mut core::ffi::c_void, smsconfiguration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSms_Impl::GetSmsConfiguration(this) { Ok(ok__) => { @@ -2284,10 +1768,7 @@ impl IMbnSms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSmsConfiguration(this: *mut core::ffi::c_void, smsconfiguration: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSms_Impl, - { + unsafe extern "system" fn SetSmsConfiguration(this: *mut core::ffi::c_void, smsconfiguration: *mut core::ffi::c_void, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSms_Impl::SetSmsConfiguration(this, windows_core::from_raw_borrowed(&smsconfiguration)) { Ok(ok__) => { @@ -2297,10 +1778,7 @@ impl IMbnSms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SmsSendPdu(this: *mut core::ffi::c_void, pdudata: windows_core::PCWSTR, size: u8, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSms_Impl, - { + unsafe extern "system" fn SmsSendPdu(this: *mut core::ffi::c_void, pdudata: windows_core::PCWSTR, size: u8, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSms_Impl::SmsSendPdu(this, core::mem::transmute(&pdudata), core::mem::transmute_copy(&size)) { Ok(ok__) => { @@ -2310,10 +1788,7 @@ impl IMbnSms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SmsSendCdma(this: *mut core::ffi::c_void, address: windows_core::PCWSTR, encoding: MBN_SMS_CDMA_ENCODING, language: MBN_SMS_CDMA_LANG, sizeincharacters: u32, message: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSms_Impl, - { + unsafe extern "system" fn SmsSendCdma(this: *mut core::ffi::c_void, address: windows_core::PCWSTR, encoding: MBN_SMS_CDMA_ENCODING, language: MBN_SMS_CDMA_LANG, sizeincharacters: u32, message: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSms_Impl::SmsSendCdma(this, core::mem::transmute(&address), core::mem::transmute_copy(&encoding), core::mem::transmute_copy(&language), core::mem::transmute_copy(&sizeincharacters), core::mem::transmute_copy(&message)) { Ok(ok__) => { @@ -2323,10 +1798,7 @@ impl IMbnSms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SmsSendCdmaPdu(this: *mut core::ffi::c_void, message: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSms_Impl, - { + unsafe extern "system" fn SmsSendCdmaPdu(this: *mut core::ffi::c_void, message: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSms_Impl::SmsSendCdmaPdu(this, core::mem::transmute_copy(&message)) { Ok(ok__) => { @@ -2336,10 +1808,7 @@ impl IMbnSms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SmsRead(this: *mut core::ffi::c_void, smsfilter: *const MBN_SMS_FILTER, smsformat: MBN_SMS_FORMAT, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSms_Impl, - { + unsafe extern "system" fn SmsRead(this: *mut core::ffi::c_void, smsfilter: *const MBN_SMS_FILTER, smsformat: MBN_SMS_FORMAT, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSms_Impl::SmsRead(this, core::mem::transmute_copy(&smsfilter), core::mem::transmute_copy(&smsformat)) { Ok(ok__) => { @@ -2349,10 +1818,7 @@ impl IMbnSms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SmsDelete(this: *mut core::ffi::c_void, smsfilter: *const MBN_SMS_FILTER, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSms_Impl, - { + unsafe extern "system" fn SmsDelete(this: *mut core::ffi::c_void, smsfilter: *const MBN_SMS_FILTER, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSms_Impl::SmsDelete(this, core::mem::transmute_copy(&smsfilter)) { Ok(ok__) => { @@ -2362,10 +1828,7 @@ impl IMbnSms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSmsStatus(this: *mut core::ffi::c_void, smsstatusinfo: *mut MBN_SMS_STATUS_INFO) -> windows_core::HRESULT - where - Identity: IMbnSms_Impl, - { + unsafe extern "system" fn GetSmsStatus(this: *mut core::ffi::c_void, smsstatusinfo: *mut MBN_SMS_STATUS_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSms_Impl::GetSmsStatus(this) { Ok(ok__) => { @@ -2391,7 +1854,7 @@ impl IMbnSms_Vtbl { iid == &::IID } } -pub trait IMbnSmsConfiguration_Impl: Sized { +pub trait IMbnSmsConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn ServiceCenterAddress(&self) -> windows_core::Result; fn SetServiceCenterAddress(&self, scaddress: &windows_core::PCWSTR) -> windows_core::Result<()>; fn MaxMessageIndex(&self) -> windows_core::Result; @@ -2401,14 +1864,8 @@ pub trait IMbnSmsConfiguration_Impl: Sized { } impl windows_core::RuntimeName for IMbnSmsConfiguration {} impl IMbnSmsConfiguration_Vtbl { - pub const fn new() -> IMbnSmsConfiguration_Vtbl - where - Identity: IMbnSmsConfiguration_Impl, - { - unsafe extern "system" fn ServiceCenterAddress(this: *mut core::ffi::c_void, scaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnSmsConfiguration_Impl, - { + pub const fn new() -> IMbnSmsConfiguration_Vtbl { + unsafe extern "system" fn ServiceCenterAddress(this: *mut core::ffi::c_void, scaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsConfiguration_Impl::ServiceCenterAddress(this) { Ok(ok__) => { @@ -2418,17 +1875,11 @@ impl IMbnSmsConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceCenterAddress(this: *mut core::ffi::c_void, scaddress: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMbnSmsConfiguration_Impl, - { + unsafe extern "system" fn SetServiceCenterAddress(this: *mut core::ffi::c_void, scaddress: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnSmsConfiguration_Impl::SetServiceCenterAddress(this, core::mem::transmute(&scaddress)).into() } - unsafe extern "system" fn MaxMessageIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSmsConfiguration_Impl, - { + unsafe extern "system" fn MaxMessageIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsConfiguration_Impl::MaxMessageIndex(this) { Ok(ok__) => { @@ -2438,10 +1889,7 @@ impl IMbnSmsConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CdmaShortMsgSize(this: *mut core::ffi::c_void, shortmsgsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSmsConfiguration_Impl, - { + unsafe extern "system" fn CdmaShortMsgSize(this: *mut core::ffi::c_void, shortmsgsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsConfiguration_Impl::CdmaShortMsgSize(this) { Ok(ok__) => { @@ -2451,10 +1899,7 @@ impl IMbnSmsConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SmsFormat(this: *mut core::ffi::c_void, smsformat: *mut MBN_SMS_FORMAT) -> windows_core::HRESULT - where - Identity: IMbnSmsConfiguration_Impl, - { + unsafe extern "system" fn SmsFormat(this: *mut core::ffi::c_void, smsformat: *mut MBN_SMS_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsConfiguration_Impl::SmsFormat(this) { Ok(ok__) => { @@ -2464,10 +1909,7 @@ impl IMbnSmsConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSmsFormat(this: *mut core::ffi::c_void, smsformat: MBN_SMS_FORMAT) -> windows_core::HRESULT - where - Identity: IMbnSmsConfiguration_Impl, - { + unsafe extern "system" fn SetSmsFormat(this: *mut core::ffi::c_void, smsformat: MBN_SMS_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnSmsConfiguration_Impl::SetSmsFormat(this, core::mem::transmute_copy(&smsformat)).into() } @@ -2486,7 +1928,7 @@ impl IMbnSmsConfiguration_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnSmsEvents_Impl: Sized { +pub trait IMbnSmsEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnSmsConfigurationChange(&self, sms: Option<&IMbnSms>) -> windows_core::Result<()>; fn OnSetSmsConfigurationComplete(&self, sms: Option<&IMbnSms>, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; fn OnSmsSendComplete(&self, sms: Option<&IMbnSms>, requestid: u32, status: windows_core::HRESULT) -> windows_core::Result<()>; @@ -2499,56 +1941,32 @@ pub trait IMbnSmsEvents_Impl: Sized { impl windows_core::RuntimeName for IMbnSmsEvents {} #[cfg(feature = "Win32_System_Com")] impl IMbnSmsEvents_Vtbl { - pub const fn new() -> IMbnSmsEvents_Vtbl - where - Identity: IMbnSmsEvents_Impl, - { - unsafe extern "system" fn OnSmsConfigurationChange(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnSmsEvents_Impl, - { + pub const fn new() -> IMbnSmsEvents_Vtbl { + unsafe extern "system" fn OnSmsConfigurationChange(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnSmsEvents_Impl::OnSmsConfigurationChange(this, windows_core::from_raw_borrowed(&sms)).into() } - unsafe extern "system" fn OnSetSmsConfigurationComplete(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnSmsEvents_Impl, - { + unsafe extern "system" fn OnSetSmsConfigurationComplete(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnSmsEvents_Impl::OnSetSmsConfigurationComplete(this, windows_core::from_raw_borrowed(&sms), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnSmsSendComplete(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnSmsEvents_Impl, - { + unsafe extern "system" fn OnSmsSendComplete(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnSmsEvents_Impl::OnSmsSendComplete(this, windows_core::from_raw_borrowed(&sms), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnSmsReadComplete(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void, smsformat: MBN_SMS_FORMAT, readmsgs: *const super::super::System::Com::SAFEARRAY, moremsgs: super::super::Foundation::VARIANT_BOOL, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnSmsEvents_Impl, - { + unsafe extern "system" fn OnSmsReadComplete(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void, smsformat: MBN_SMS_FORMAT, readmsgs: *const super::super::System::Com::SAFEARRAY, moremsgs: super::super::Foundation::VARIANT_BOOL, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnSmsEvents_Impl::OnSmsReadComplete(this, windows_core::from_raw_borrowed(&sms), core::mem::transmute_copy(&smsformat), core::mem::transmute_copy(&readmsgs), core::mem::transmute_copy(&moremsgs), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnSmsNewClass0Message(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void, smsformat: MBN_SMS_FORMAT, readmsgs: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnSmsEvents_Impl, - { + unsafe extern "system" fn OnSmsNewClass0Message(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void, smsformat: MBN_SMS_FORMAT, readmsgs: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnSmsEvents_Impl::OnSmsNewClass0Message(this, windows_core::from_raw_borrowed(&sms), core::mem::transmute_copy(&smsformat), core::mem::transmute_copy(&readmsgs)).into() } - unsafe extern "system" fn OnSmsDeleteComplete(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IMbnSmsEvents_Impl, - { + unsafe extern "system" fn OnSmsDeleteComplete(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void, requestid: u32, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnSmsEvents_Impl::OnSmsDeleteComplete(this, windows_core::from_raw_borrowed(&sms), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn OnSmsStatusChange(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMbnSmsEvents_Impl, - { + unsafe extern "system" fn OnSmsStatusChange(this: *mut core::ffi::c_void, sms: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnSmsEvents_Impl::OnSmsStatusChange(this, windows_core::from_raw_borrowed(&sms)).into() } @@ -2568,7 +1986,7 @@ impl IMbnSmsEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnSmsReadMsgPdu_Impl: Sized { +pub trait IMbnSmsReadMsgPdu_Impl: Sized + windows_core::IUnknownImpl { fn Index(&self) -> windows_core::Result; fn Status(&self) -> windows_core::Result; fn PduData(&self) -> windows_core::Result; @@ -2578,14 +1996,8 @@ pub trait IMbnSmsReadMsgPdu_Impl: Sized { impl windows_core::RuntimeName for IMbnSmsReadMsgPdu {} #[cfg(feature = "Win32_System_Com")] impl IMbnSmsReadMsgPdu_Vtbl { - pub const fn new() -> IMbnSmsReadMsgPdu_Vtbl - where - Identity: IMbnSmsReadMsgPdu_Impl, - { - unsafe extern "system" fn Index(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgPdu_Impl, - { + pub const fn new() -> IMbnSmsReadMsgPdu_Vtbl { + unsafe extern "system" fn Index(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgPdu_Impl::Index(this) { Ok(ok__) => { @@ -2595,10 +2007,7 @@ impl IMbnSmsReadMsgPdu_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut MBN_MSG_STATUS) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgPdu_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut MBN_MSG_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgPdu_Impl::Status(this) { Ok(ok__) => { @@ -2608,10 +2017,7 @@ impl IMbnSmsReadMsgPdu_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PduData(this: *mut core::ffi::c_void, pdudata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgPdu_Impl, - { + unsafe extern "system" fn PduData(this: *mut core::ffi::c_void, pdudata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgPdu_Impl::PduData(this) { Ok(ok__) => { @@ -2621,10 +2027,7 @@ impl IMbnSmsReadMsgPdu_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Message(this: *mut core::ffi::c_void, message: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgPdu_Impl, - { + unsafe extern "system" fn Message(this: *mut core::ffi::c_void, message: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgPdu_Impl::Message(this) { Ok(ok__) => { @@ -2647,7 +2050,7 @@ impl IMbnSmsReadMsgPdu_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnSmsReadMsgTextCdma_Impl: Sized { +pub trait IMbnSmsReadMsgTextCdma_Impl: Sized + windows_core::IUnknownImpl { fn Index(&self) -> windows_core::Result; fn Status(&self) -> windows_core::Result; fn Address(&self) -> windows_core::Result; @@ -2661,14 +2064,8 @@ pub trait IMbnSmsReadMsgTextCdma_Impl: Sized { impl windows_core::RuntimeName for IMbnSmsReadMsgTextCdma {} #[cfg(feature = "Win32_System_Com")] impl IMbnSmsReadMsgTextCdma_Vtbl { - pub const fn new() -> IMbnSmsReadMsgTextCdma_Vtbl - where - Identity: IMbnSmsReadMsgTextCdma_Impl, - { - unsafe extern "system" fn Index(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgTextCdma_Impl, - { + pub const fn new() -> IMbnSmsReadMsgTextCdma_Vtbl { + unsafe extern "system" fn Index(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgTextCdma_Impl::Index(this) { Ok(ok__) => { @@ -2678,10 +2075,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut MBN_MSG_STATUS) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgTextCdma_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut MBN_MSG_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgTextCdma_Impl::Status(this) { Ok(ok__) => { @@ -2691,10 +2085,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, address: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgTextCdma_Impl, - { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, address: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgTextCdma_Impl::Address(this) { Ok(ok__) => { @@ -2704,10 +2095,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, timestamp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgTextCdma_Impl, - { + unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, timestamp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgTextCdma_Impl::Timestamp(this) { Ok(ok__) => { @@ -2717,10 +2105,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EncodingID(this: *mut core::ffi::c_void, encodingid: *mut MBN_SMS_CDMA_ENCODING) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgTextCdma_Impl, - { + unsafe extern "system" fn EncodingID(this: *mut core::ffi::c_void, encodingid: *mut MBN_SMS_CDMA_ENCODING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgTextCdma_Impl::EncodingID(this) { Ok(ok__) => { @@ -2730,10 +2115,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LanguageID(this: *mut core::ffi::c_void, languageid: *mut MBN_SMS_CDMA_LANG) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgTextCdma_Impl, - { + unsafe extern "system" fn LanguageID(this: *mut core::ffi::c_void, languageid: *mut MBN_SMS_CDMA_LANG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgTextCdma_Impl::LanguageID(this) { Ok(ok__) => { @@ -2743,10 +2125,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SizeInCharacters(this: *mut core::ffi::c_void, sizeincharacters: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgTextCdma_Impl, - { + unsafe extern "system" fn SizeInCharacters(this: *mut core::ffi::c_void, sizeincharacters: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgTextCdma_Impl::SizeInCharacters(this) { Ok(ok__) => { @@ -2756,10 +2135,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Message(this: *mut core::ffi::c_void, message: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnSmsReadMsgTextCdma_Impl, - { + unsafe extern "system" fn Message(this: *mut core::ffi::c_void, message: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSmsReadMsgTextCdma_Impl::Message(this) { Ok(ok__) => { @@ -2786,7 +2162,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnSubscriberInformation_Impl: Sized { +pub trait IMbnSubscriberInformation_Impl: Sized + windows_core::IUnknownImpl { fn SubscriberID(&self) -> windows_core::Result; fn SimIccID(&self) -> windows_core::Result; fn TelephoneNumbers(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -2795,14 +2171,8 @@ pub trait IMbnSubscriberInformation_Impl: Sized { impl windows_core::RuntimeName for IMbnSubscriberInformation {} #[cfg(feature = "Win32_System_Com")] impl IMbnSubscriberInformation_Vtbl { - pub const fn new() -> IMbnSubscriberInformation_Vtbl - where - Identity: IMbnSubscriberInformation_Impl, - { - unsafe extern "system" fn SubscriberID(this: *mut core::ffi::c_void, subscriberid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnSubscriberInformation_Impl, - { + pub const fn new() -> IMbnSubscriberInformation_Vtbl { + unsafe extern "system" fn SubscriberID(this: *mut core::ffi::c_void, subscriberid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSubscriberInformation_Impl::SubscriberID(this) { Ok(ok__) => { @@ -2812,10 +2182,7 @@ impl IMbnSubscriberInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SimIccID(this: *mut core::ffi::c_void, simiccid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMbnSubscriberInformation_Impl, - { + unsafe extern "system" fn SimIccID(this: *mut core::ffi::c_void, simiccid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSubscriberInformation_Impl::SimIccID(this) { Ok(ok__) => { @@ -2825,10 +2192,7 @@ impl IMbnSubscriberInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TelephoneNumbers(this: *mut core::ffi::c_void, telephonenumbers: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnSubscriberInformation_Impl, - { + unsafe extern "system" fn TelephoneNumbers(this: *mut core::ffi::c_void, telephonenumbers: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnSubscriberInformation_Impl::TelephoneNumbers(this) { Ok(ok__) => { @@ -2850,7 +2214,7 @@ impl IMbnSubscriberInformation_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnVendorSpecificEvents_Impl: Sized { +pub trait IMbnVendorSpecificEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnEventNotification(&self, vendoroperation: Option<&IMbnVendorSpecificOperation>, vendorspecificdata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; fn OnSetVendorSpecificComplete(&self, vendoroperation: Option<&IMbnVendorSpecificOperation>, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: u32) -> windows_core::Result<()>; } @@ -2858,21 +2222,12 @@ pub trait IMbnVendorSpecificEvents_Impl: Sized { impl windows_core::RuntimeName for IMbnVendorSpecificEvents {} #[cfg(feature = "Win32_System_Com")] impl IMbnVendorSpecificEvents_Vtbl { - pub const fn new() -> IMbnVendorSpecificEvents_Vtbl - where - Identity: IMbnVendorSpecificEvents_Impl, - { - unsafe extern "system" fn OnEventNotification(this: *mut core::ffi::c_void, vendoroperation: *mut core::ffi::c_void, vendorspecificdata: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMbnVendorSpecificEvents_Impl, - { + pub const fn new() -> IMbnVendorSpecificEvents_Vtbl { + unsafe extern "system" fn OnEventNotification(this: *mut core::ffi::c_void, vendoroperation: *mut core::ffi::c_void, vendorspecificdata: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnVendorSpecificEvents_Impl::OnEventNotification(this, windows_core::from_raw_borrowed(&vendoroperation), core::mem::transmute_copy(&vendorspecificdata)).into() } - unsafe extern "system" fn OnSetVendorSpecificComplete(this: *mut core::ffi::c_void, vendoroperation: *mut core::ffi::c_void, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: u32) -> windows_core::HRESULT - where - Identity: IMbnVendorSpecificEvents_Impl, - { + unsafe extern "system" fn OnSetVendorSpecificComplete(this: *mut core::ffi::c_void, vendoroperation: *mut core::ffi::c_void, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMbnVendorSpecificEvents_Impl::OnSetVendorSpecificComplete(this, windows_core::from_raw_borrowed(&vendoroperation), core::mem::transmute_copy(&vendorspecificdata), core::mem::transmute_copy(&requestid)).into() } @@ -2887,21 +2242,15 @@ impl IMbnVendorSpecificEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMbnVendorSpecificOperation_Impl: Sized { +pub trait IMbnVendorSpecificOperation_Impl: Sized + windows_core::IUnknownImpl { fn SetVendorSpecific(&self, vendorspecificdata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IMbnVendorSpecificOperation {} #[cfg(feature = "Win32_System_Com")] impl IMbnVendorSpecificOperation_Vtbl { - pub const fn new() -> IMbnVendorSpecificOperation_Vtbl - where - Identity: IMbnVendorSpecificOperation_Impl, - { - unsafe extern "system" fn SetVendorSpecific(this: *mut core::ffi::c_void, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT - where - Identity: IMbnVendorSpecificOperation_Impl, - { + pub const fn new() -> IMbnVendorSpecificOperation_Vtbl { + unsafe extern "system" fn SetVendorSpecific(this: *mut core::ffi::c_void, vendorspecificdata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnVendorSpecificOperation_Impl::SetVendorSpecific(this, core::mem::transmute_copy(&vendorspecificdata)) { Ok(ok__) => { 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 af307ff4b4..ea182eec73 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/impl.rs @@ -1,4 +1,4 @@ -pub trait IEnumNetCfgBindingInterface_Impl: Sized { +pub trait IEnumNetCfgBindingInterface_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -6,35 +6,20 @@ pub trait IEnumNetCfgBindingInterface_Impl: Sized { } impl windows_core::RuntimeName for IEnumNetCfgBindingInterface {} impl IEnumNetCfgBindingInterface_Vtbl { - pub const fn new() -> IEnumNetCfgBindingInterface_Vtbl - where - Identity: IEnumNetCfgBindingInterface_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNetCfgBindingInterface_Impl, - { + pub const fn new() -> IEnumNetCfgBindingInterface_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgBindingInterface_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNetCfgBindingInterface_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgBindingInterface_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetCfgBindingInterface_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgBindingInterface_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetCfgBindingInterface_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgBindingInterface_Impl::Clone(this, core::mem::transmute_copy(&ppenum)).into() } @@ -50,7 +35,7 @@ impl IEnumNetCfgBindingInterface_Vtbl { iid == &::IID } } -pub trait IEnumNetCfgBindingPath_Impl: Sized { +pub trait IEnumNetCfgBindingPath_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -58,35 +43,20 @@ pub trait IEnumNetCfgBindingPath_Impl: Sized { } impl windows_core::RuntimeName for IEnumNetCfgBindingPath {} impl IEnumNetCfgBindingPath_Vtbl { - pub const fn new() -> IEnumNetCfgBindingPath_Vtbl - where - Identity: IEnumNetCfgBindingPath_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNetCfgBindingPath_Impl, - { + pub const fn new() -> IEnumNetCfgBindingPath_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgBindingPath_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNetCfgBindingPath_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgBindingPath_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetCfgBindingPath_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgBindingPath_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetCfgBindingPath_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgBindingPath_Impl::Clone(this, core::mem::transmute_copy(&ppenum)).into() } @@ -102,7 +72,7 @@ impl IEnumNetCfgBindingPath_Vtbl { iid == &::IID } } -pub trait IEnumNetCfgComponent_Impl: Sized { +pub trait IEnumNetCfgComponent_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -110,35 +80,20 @@ pub trait IEnumNetCfgComponent_Impl: Sized { } impl windows_core::RuntimeName for IEnumNetCfgComponent {} impl IEnumNetCfgComponent_Vtbl { - pub const fn new() -> IEnumNetCfgComponent_Vtbl - where - Identity: IEnumNetCfgComponent_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNetCfgComponent_Impl, - { + pub const fn new() -> IEnumNetCfgComponent_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgComponent_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNetCfgComponent_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgComponent_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetCfgComponent_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgComponent_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetCfgComponent_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetCfgComponent_Impl::Clone(this, core::mem::transmute_copy(&ppenum)).into() } @@ -154,7 +109,7 @@ impl IEnumNetCfgComponent_Vtbl { iid == &::IID } } -pub trait INetCfg_Impl: Sized { +pub trait INetCfg_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pvreserved: *const core::ffi::c_void) -> windows_core::Result<()>; fn Uninitialize(&self) -> windows_core::Result<()>; fn Apply(&self) -> windows_core::Result<()>; @@ -165,56 +120,32 @@ pub trait INetCfg_Impl: Sized { } impl windows_core::RuntimeName for INetCfg {} impl INetCfg_Vtbl { - pub const fn new() -> INetCfg_Vtbl - where - Identity: INetCfg_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pvreserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfg_Impl, - { + pub const fn new() -> INetCfg_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pvreserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfg_Impl::Initialize(this, core::mem::transmute_copy(&pvreserved)).into() } - unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfg_Impl, - { + unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfg_Impl::Uninitialize(this).into() } - unsafe extern "system" fn Apply(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfg_Impl, - { + unsafe extern "system" fn Apply(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfg_Impl::Apply(this).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfg_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfg_Impl::Cancel(this).into() } - unsafe extern "system" fn EnumComponents(this: *mut core::ffi::c_void, pguidclass: *const windows_core::GUID, ppenumcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfg_Impl, - { + unsafe extern "system" fn EnumComponents(this: *mut core::ffi::c_void, pguidclass: *const windows_core::GUID, ppenumcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfg_Impl::EnumComponents(this, core::mem::transmute_copy(&pguidclass), core::mem::transmute_copy(&ppenumcomponent)).into() } - unsafe extern "system" fn FindComponent(this: *mut core::ffi::c_void, pszwinfid: windows_core::PCWSTR, pcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfg_Impl, - { + unsafe extern "system" fn FindComponent(this: *mut core::ffi::c_void, pszwinfid: windows_core::PCWSTR, pcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfg_Impl::FindComponent(this, core::mem::transmute(&pszwinfid), core::mem::transmute_copy(&pcomponent)).into() } - unsafe extern "system" fn QueryNetCfgClass(this: *mut core::ffi::c_void, pguidclass: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfg_Impl, - { + unsafe extern "system" fn QueryNetCfgClass(this: *mut core::ffi::c_void, pguidclass: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfg_Impl::QueryNetCfgClass(this, core::mem::transmute_copy(&pguidclass), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } @@ -233,35 +164,23 @@ impl INetCfg_Vtbl { iid == &::IID } } -pub trait INetCfgBindingInterface_Impl: Sized { +pub trait INetCfgBindingInterface_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self, ppszwinterfacename: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn GetUpperComponent(&self, ppnccitem: *mut Option) -> windows_core::Result<()>; fn GetLowerComponent(&self, ppnccitem: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetCfgBindingInterface {} impl INetCfgBindingInterface_Vtbl { - pub const fn new() -> INetCfgBindingInterface_Vtbl - where - Identity: INetCfgBindingInterface_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppszwinterfacename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetCfgBindingInterface_Impl, - { + pub const fn new() -> INetCfgBindingInterface_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppszwinterfacename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingInterface_Impl::GetName(this, core::mem::transmute_copy(&ppszwinterfacename)).into() } - unsafe extern "system" fn GetUpperComponent(this: *mut core::ffi::c_void, ppnccitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgBindingInterface_Impl, - { + unsafe extern "system" fn GetUpperComponent(this: *mut core::ffi::c_void, ppnccitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingInterface_Impl::GetUpperComponent(this, core::mem::transmute_copy(&ppnccitem)).into() } - unsafe extern "system" fn GetLowerComponent(this: *mut core::ffi::c_void, ppnccitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgBindingInterface_Impl, - { + unsafe extern "system" fn GetLowerComponent(this: *mut core::ffi::c_void, ppnccitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingInterface_Impl::GetLowerComponent(this, core::mem::transmute_copy(&ppnccitem)).into() } @@ -276,7 +195,7 @@ impl INetCfgBindingInterface_Vtbl { iid == &::IID } } -pub trait INetCfgBindingPath_Impl: Sized { +pub trait INetCfgBindingPath_Impl: Sized + windows_core::IUnknownImpl { fn IsSamePathAs(&self, ppath: Option<&INetCfgBindingPath>) -> windows_core::Result<()>; fn IsSubPathOf(&self, ppath: Option<&INetCfgBindingPath>) -> windows_core::Result<()>; fn IsEnabled(&self) -> windows_core::Result<()>; @@ -288,56 +207,32 @@ pub trait INetCfgBindingPath_Impl: Sized { } impl windows_core::RuntimeName for INetCfgBindingPath {} impl INetCfgBindingPath_Vtbl { - pub const fn new() -> INetCfgBindingPath_Vtbl - where - Identity: INetCfgBindingPath_Impl, - { - unsafe extern "system" fn IsSamePathAs(this: *mut core::ffi::c_void, ppath: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgBindingPath_Impl, - { + pub const fn new() -> INetCfgBindingPath_Vtbl { + unsafe extern "system" fn IsSamePathAs(this: *mut core::ffi::c_void, ppath: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingPath_Impl::IsSamePathAs(this, windows_core::from_raw_borrowed(&ppath)).into() } - unsafe extern "system" fn IsSubPathOf(this: *mut core::ffi::c_void, ppath: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgBindingPath_Impl, - { + unsafe extern "system" fn IsSubPathOf(this: *mut core::ffi::c_void, ppath: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingPath_Impl::IsSubPathOf(this, windows_core::from_raw_borrowed(&ppath)).into() } - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgBindingPath_Impl, - { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingPath_Impl::IsEnabled(this).into() } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: INetCfgBindingPath_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingPath_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn GetPathToken(this: *mut core::ffi::c_void, ppszwpathtoken: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetCfgBindingPath_Impl, - { + unsafe extern "system" fn GetPathToken(this: *mut core::ffi::c_void, ppszwpathtoken: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingPath_Impl::GetPathToken(this, core::mem::transmute_copy(&ppszwpathtoken)).into() } - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, ppcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgBindingPath_Impl, - { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, ppcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingPath_Impl::GetOwner(this, core::mem::transmute_copy(&ppcomponent)).into() } - unsafe extern "system" fn GetDepth(this: *mut core::ffi::c_void, pcinterfaces: *mut u32) -> windows_core::HRESULT - where - Identity: INetCfgBindingPath_Impl, - { + unsafe extern "system" fn GetDepth(this: *mut core::ffi::c_void, pcinterfaces: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetCfgBindingPath_Impl::GetDepth(this) { Ok(ok__) => { @@ -347,10 +242,7 @@ impl INetCfgBindingPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumBindingInterfaces(this: *mut core::ffi::c_void, ppenuminterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgBindingPath_Impl, - { + unsafe extern "system" fn EnumBindingInterfaces(this: *mut core::ffi::c_void, ppenuminterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingPath_Impl::EnumBindingInterfaces(this, core::mem::transmute_copy(&ppenuminterface)).into() } @@ -370,27 +262,18 @@ impl INetCfgBindingPath_Vtbl { iid == &::IID } } -pub trait INetCfgClass_Impl: Sized { +pub trait INetCfgClass_Impl: Sized + windows_core::IUnknownImpl { fn FindComponent(&self, pszwinfid: &windows_core::PCWSTR, ppnccitem: *mut Option) -> windows_core::Result<()>; fn EnumComponents(&self, ppenumcomponent: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetCfgClass {} impl INetCfgClass_Vtbl { - pub const fn new() -> INetCfgClass_Vtbl - where - Identity: INetCfgClass_Impl, - { - unsafe extern "system" fn FindComponent(this: *mut core::ffi::c_void, pszwinfid: windows_core::PCWSTR, ppnccitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgClass_Impl, - { + pub const fn new() -> INetCfgClass_Vtbl { + unsafe extern "system" fn FindComponent(this: *mut core::ffi::c_void, pszwinfid: windows_core::PCWSTR, ppnccitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgClass_Impl::FindComponent(this, core::mem::transmute(&pszwinfid), core::mem::transmute_copy(&ppnccitem)).into() } - unsafe extern "system" fn EnumComponents(this: *mut core::ffi::c_void, ppenumcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgClass_Impl, - { + unsafe extern "system" fn EnumComponents(this: *mut core::ffi::c_void, ppenumcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgClass_Impl::EnumComponents(this, core::mem::transmute_copy(&ppenumcomponent)).into() } @@ -404,35 +287,23 @@ impl INetCfgClass_Vtbl { iid == &::IID } } -pub trait INetCfgClassSetup_Impl: Sized { +pub trait INetCfgClassSetup_Impl: Sized + windows_core::IUnknownImpl { fn SelectAndInstall(&self, hwndparent: super::super::Foundation::HWND, pobotoken: *const OBO_TOKEN, ppnccitem: *mut Option) -> windows_core::Result<()>; fn Install(&self, pszwinfid: &windows_core::PCWSTR, pobotoken: *const OBO_TOKEN, dwsetupflags: u32, dwupgradefrombuildno: u32, pszwanswerfile: &windows_core::PCWSTR, pszwanswersections: &windows_core::PCWSTR, ppnccitem: *mut Option) -> windows_core::Result<()>; fn DeInstall(&self, pcomponent: Option<&INetCfgComponent>, pobotoken: *const OBO_TOKEN, pmszwrefs: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetCfgClassSetup {} impl INetCfgClassSetup_Vtbl { - pub const fn new() -> INetCfgClassSetup_Vtbl - where - Identity: INetCfgClassSetup_Impl, - { - unsafe extern "system" fn SelectAndInstall(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, pobotoken: *const OBO_TOKEN, ppnccitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgClassSetup_Impl, - { + pub const fn new() -> INetCfgClassSetup_Vtbl { + unsafe extern "system" fn SelectAndInstall(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, pobotoken: *const OBO_TOKEN, ppnccitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgClassSetup_Impl::SelectAndInstall(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&pobotoken), core::mem::transmute_copy(&ppnccitem)).into() } - unsafe extern "system" fn Install(this: *mut core::ffi::c_void, pszwinfid: windows_core::PCWSTR, pobotoken: *const OBO_TOKEN, dwsetupflags: u32, dwupgradefrombuildno: u32, pszwanswerfile: windows_core::PCWSTR, pszwanswersections: windows_core::PCWSTR, ppnccitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgClassSetup_Impl, - { + unsafe extern "system" fn Install(this: *mut core::ffi::c_void, pszwinfid: windows_core::PCWSTR, pobotoken: *const OBO_TOKEN, dwsetupflags: u32, dwupgradefrombuildno: u32, pszwanswerfile: windows_core::PCWSTR, pszwanswersections: windows_core::PCWSTR, ppnccitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgClassSetup_Impl::Install(this, core::mem::transmute(&pszwinfid), core::mem::transmute_copy(&pobotoken), core::mem::transmute_copy(&dwsetupflags), core::mem::transmute_copy(&dwupgradefrombuildno), core::mem::transmute(&pszwanswerfile), core::mem::transmute(&pszwanswersections), core::mem::transmute_copy(&ppnccitem)).into() } - unsafe extern "system" fn DeInstall(this: *mut core::ffi::c_void, pcomponent: *mut core::ffi::c_void, pobotoken: *const OBO_TOKEN, pmszwrefs: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetCfgClassSetup_Impl, - { + unsafe extern "system" fn DeInstall(this: *mut core::ffi::c_void, pcomponent: *mut core::ffi::c_void, pobotoken: *const OBO_TOKEN, pmszwrefs: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgClassSetup_Impl::DeInstall(this, windows_core::from_raw_borrowed(&pcomponent), core::mem::transmute_copy(&pobotoken), core::mem::transmute_copy(&pmszwrefs)).into() } @@ -452,14 +323,8 @@ pub trait INetCfgClassSetup2_Impl: Sized + INetCfgClassSetup_Impl { } impl windows_core::RuntimeName for INetCfgClassSetup2 {} impl INetCfgClassSetup2_Vtbl { - pub const fn new() -> INetCfgClassSetup2_Vtbl - where - Identity: INetCfgClassSetup2_Impl, - { - unsafe extern "system" fn UpdateNonEnumeratedComponent(this: *mut core::ffi::c_void, picomp: *mut core::ffi::c_void, dwsetupflags: u32, dwupgradefrombuildno: u32) -> windows_core::HRESULT - where - Identity: INetCfgClassSetup2_Impl, - { + pub const fn new() -> INetCfgClassSetup2_Vtbl { + unsafe extern "system" fn UpdateNonEnumeratedComponent(this: *mut core::ffi::c_void, picomp: *mut core::ffi::c_void, dwsetupflags: u32, dwupgradefrombuildno: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgClassSetup2_Impl::UpdateNonEnumeratedComponent(this, windows_core::from_raw_borrowed(&picomp), core::mem::transmute_copy(&dwsetupflags), core::mem::transmute_copy(&dwupgradefrombuildno)).into() } @@ -470,7 +335,7 @@ impl INetCfgClassSetup2_Vtbl { } } #[cfg(feature = "Win32_System_Registry")] -pub trait INetCfgComponent_Impl: Sized { +pub trait INetCfgComponent_Impl: Sized + windows_core::IUnknownImpl { fn GetDisplayName(&self, ppszwdisplayname: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn SetDisplayName(&self, pszwdisplayname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetHelpText(&self, pszwhelptext: *mut windows_core::PWSTR) -> windows_core::Result<()>; @@ -488,42 +353,24 @@ pub trait INetCfgComponent_Impl: Sized { impl windows_core::RuntimeName for INetCfgComponent {} #[cfg(feature = "Win32_System_Registry")] impl INetCfgComponent_Vtbl { - pub const fn new() -> INetCfgComponent_Vtbl - where - Identity: INetCfgComponent_Impl, - { - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, ppszwdisplayname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + pub const fn new() -> INetCfgComponent_Vtbl { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, ppszwdisplayname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponent_Impl::GetDisplayName(this, core::mem::transmute_copy(&ppszwdisplayname)).into() } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, pszwdisplayname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, pszwdisplayname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponent_Impl::SetDisplayName(this, core::mem::transmute(&pszwdisplayname)).into() } - unsafe extern "system" fn GetHelpText(this: *mut core::ffi::c_void, pszwhelptext: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn GetHelpText(this: *mut core::ffi::c_void, pszwhelptext: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponent_Impl::GetHelpText(this, core::mem::transmute_copy(&pszwhelptext)).into() } - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, ppszwid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, ppszwid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponent_Impl::GetId(this, core::mem::transmute_copy(&ppszwid)).into() } - unsafe extern "system" fn GetCharacteristics(this: *mut core::ffi::c_void, pdwcharacteristics: *mut u32) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn GetCharacteristics(this: *mut core::ffi::c_void, pdwcharacteristics: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetCfgComponent_Impl::GetCharacteristics(this) { Ok(ok__) => { @@ -533,38 +380,23 @@ impl INetCfgComponent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInstanceGuid(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn GetInstanceGuid(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponent_Impl::GetInstanceGuid(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn GetPnpDevNodeId(this: *mut core::ffi::c_void, ppszwdevnodeid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn GetPnpDevNodeId(this: *mut core::ffi::c_void, ppszwdevnodeid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponent_Impl::GetPnpDevNodeId(this, core::mem::transmute_copy(&ppszwdevnodeid)).into() } - unsafe extern "system" fn GetClassGuid(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn GetClassGuid(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponent_Impl::GetClassGuid(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn GetBindName(this: *mut core::ffi::c_void, ppszwbindname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn GetBindName(this: *mut core::ffi::c_void, ppszwbindname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponent_Impl::GetBindName(this, core::mem::transmute_copy(&ppszwbindname)).into() } - unsafe extern "system" fn GetDeviceStatus(this: *mut core::ffi::c_void, pulstatus: *mut u32) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn GetDeviceStatus(this: *mut core::ffi::c_void, pulstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetCfgComponent_Impl::GetDeviceStatus(this) { Ok(ok__) => { @@ -574,17 +406,11 @@ impl INetCfgComponent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenParamKey(this: *mut core::ffi::c_void, phkey: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn OpenParamKey(this: *mut core::ffi::c_void, phkey: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponent_Impl::OpenParamKey(this, core::mem::transmute_copy(&phkey)).into() } - unsafe extern "system" fn RaisePropertyUi(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32, punkcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponent_Impl, - { + unsafe extern "system" fn RaisePropertyUi(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32, punkcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponent_Impl::RaisePropertyUi(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&punkcontext)).into() } @@ -608,7 +434,7 @@ impl INetCfgComponent_Vtbl { iid == &::IID } } -pub trait INetCfgComponentBindings_Impl: Sized { +pub trait INetCfgComponentBindings_Impl: Sized + windows_core::IUnknownImpl { fn BindTo(&self, pnccitem: Option<&INetCfgComponent>) -> windows_core::Result<()>; fn UnbindFrom(&self, pnccitem: Option<&INetCfgComponent>) -> windows_core::Result<()>; fn SupportsBindingInterface(&self, dwflags: u32, pszwinterfacename: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -620,63 +446,36 @@ pub trait INetCfgComponentBindings_Impl: Sized { } impl windows_core::RuntimeName for INetCfgComponentBindings {} impl INetCfgComponentBindings_Vtbl { - pub const fn new() -> INetCfgComponentBindings_Vtbl - where - Identity: INetCfgComponentBindings_Impl, - { - unsafe extern "system" fn BindTo(this: *mut core::ffi::c_void, pnccitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentBindings_Impl, - { + pub const fn new() -> INetCfgComponentBindings_Vtbl { + unsafe extern "system" fn BindTo(this: *mut core::ffi::c_void, pnccitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentBindings_Impl::BindTo(this, windows_core::from_raw_borrowed(&pnccitem)).into() } - unsafe extern "system" fn UnbindFrom(this: *mut core::ffi::c_void, pnccitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentBindings_Impl, - { + unsafe extern "system" fn UnbindFrom(this: *mut core::ffi::c_void, pnccitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentBindings_Impl::UnbindFrom(this, windows_core::from_raw_borrowed(&pnccitem)).into() } - unsafe extern "system" fn SupportsBindingInterface(this: *mut core::ffi::c_void, dwflags: u32, pszwinterfacename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: INetCfgComponentBindings_Impl, - { + unsafe extern "system" fn SupportsBindingInterface(this: *mut core::ffi::c_void, dwflags: u32, pszwinterfacename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentBindings_Impl::SupportsBindingInterface(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszwinterfacename)).into() } - unsafe extern "system" fn IsBoundTo(this: *mut core::ffi::c_void, pnccitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentBindings_Impl, - { + unsafe extern "system" fn IsBoundTo(this: *mut core::ffi::c_void, pnccitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentBindings_Impl::IsBoundTo(this, windows_core::from_raw_borrowed(&pnccitem)).into() } - unsafe extern "system" fn IsBindableTo(this: *mut core::ffi::c_void, pnccitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentBindings_Impl, - { + unsafe extern "system" fn IsBindableTo(this: *mut core::ffi::c_void, pnccitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentBindings_Impl::IsBindableTo(this, windows_core::from_raw_borrowed(&pnccitem)).into() } - unsafe extern "system" fn EnumBindingPaths(this: *mut core::ffi::c_void, dwflags: u32, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentBindings_Impl, - { + unsafe extern "system" fn EnumBindingPaths(this: *mut core::ffi::c_void, dwflags: u32, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentBindings_Impl::EnumBindingPaths(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ppienum)).into() } - unsafe extern "system" fn MoveBefore(this: *mut core::ffi::c_void, pncbitemsrc: *mut core::ffi::c_void, pncbitemdest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentBindings_Impl, - { + unsafe extern "system" fn MoveBefore(this: *mut core::ffi::c_void, pncbitemsrc: *mut core::ffi::c_void, pncbitemdest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentBindings_Impl::MoveBefore(this, windows_core::from_raw_borrowed(&pncbitemsrc), windows_core::from_raw_borrowed(&pncbitemdest)).into() } - unsafe extern "system" fn MoveAfter(this: *mut core::ffi::c_void, pncbitemsrc: *mut core::ffi::c_void, pncbitemdest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentBindings_Impl, - { + unsafe extern "system" fn MoveAfter(this: *mut core::ffi::c_void, pncbitemsrc: *mut core::ffi::c_void, pncbitemdest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentBindings_Impl::MoveAfter(this, windows_core::from_raw_borrowed(&pncbitemsrc), windows_core::from_raw_borrowed(&pncbitemdest)).into() } @@ -696,7 +495,7 @@ impl INetCfgComponentBindings_Vtbl { iid == &::IID } } -pub trait INetCfgComponentControl_Impl: Sized { +pub trait INetCfgComponentControl_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, picomp: Option<&INetCfgComponent>, pinetcfg: Option<&INetCfg>, finstalling: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn ApplyRegistryChanges(&self) -> windows_core::Result<()>; fn ApplyPnpChanges(&self, picallback: Option<&INetCfgPnpReconfigCallback>) -> windows_core::Result<()>; @@ -704,35 +503,20 @@ pub trait INetCfgComponentControl_Impl: Sized { } impl windows_core::RuntimeName for INetCfgComponentControl {} impl INetCfgComponentControl_Vtbl { - pub const fn new() -> INetCfgComponentControl_Vtbl - where - Identity: INetCfgComponentControl_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picomp: *mut core::ffi::c_void, pinetcfg: *mut core::ffi::c_void, finstalling: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: INetCfgComponentControl_Impl, - { + pub const fn new() -> INetCfgComponentControl_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picomp: *mut core::ffi::c_void, pinetcfg: *mut core::ffi::c_void, finstalling: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentControl_Impl::Initialize(this, windows_core::from_raw_borrowed(&picomp), windows_core::from_raw_borrowed(&pinetcfg), core::mem::transmute_copy(&finstalling)).into() } - unsafe extern "system" fn ApplyRegistryChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentControl_Impl, - { + unsafe extern "system" fn ApplyRegistryChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentControl_Impl::ApplyRegistryChanges(this).into() } - unsafe extern "system" fn ApplyPnpChanges(this: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentControl_Impl, - { + unsafe extern "system" fn ApplyPnpChanges(this: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentControl_Impl::ApplyPnpChanges(this, windows_core::from_raw_borrowed(&picallback)).into() } - unsafe extern "system" fn CancelChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentControl_Impl, - { + unsafe extern "system" fn CancelChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentControl_Impl::CancelChanges(this).into() } @@ -748,27 +532,18 @@ impl INetCfgComponentControl_Vtbl { iid == &::IID } } -pub trait INetCfgComponentNotifyBinding_Impl: Sized { +pub trait INetCfgComponentNotifyBinding_Impl: Sized + windows_core::IUnknownImpl { fn QueryBindingPath(&self, dwchangeflag: u32, pipath: Option<&INetCfgBindingPath>) -> windows_core::Result<()>; fn NotifyBindingPath(&self, dwchangeflag: u32, pipath: Option<&INetCfgBindingPath>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetCfgComponentNotifyBinding {} impl INetCfgComponentNotifyBinding_Vtbl { - pub const fn new() -> INetCfgComponentNotifyBinding_Vtbl - where - Identity: INetCfgComponentNotifyBinding_Impl, - { - unsafe extern "system" fn QueryBindingPath(this: *mut core::ffi::c_void, dwchangeflag: u32, pipath: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentNotifyBinding_Impl, - { + pub const fn new() -> INetCfgComponentNotifyBinding_Vtbl { + unsafe extern "system" fn QueryBindingPath(this: *mut core::ffi::c_void, dwchangeflag: u32, pipath: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentNotifyBinding_Impl::QueryBindingPath(this, core::mem::transmute_copy(&dwchangeflag), windows_core::from_raw_borrowed(&pipath)).into() } - unsafe extern "system" fn NotifyBindingPath(this: *mut core::ffi::c_void, dwchangeflag: u32, pipath: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentNotifyBinding_Impl, - { + unsafe extern "system" fn NotifyBindingPath(this: *mut core::ffi::c_void, dwchangeflag: u32, pipath: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentNotifyBinding_Impl::NotifyBindingPath(this, core::mem::transmute_copy(&dwchangeflag), windows_core::from_raw_borrowed(&pipath)).into() } @@ -782,7 +557,7 @@ impl INetCfgComponentNotifyBinding_Vtbl { iid == &::IID } } -pub trait INetCfgComponentNotifyGlobal_Impl: Sized { +pub trait INetCfgComponentNotifyGlobal_Impl: Sized + windows_core::IUnknownImpl { fn GetSupportedNotifications(&self) -> windows_core::Result; fn SysQueryBindingPath(&self, dwchangeflag: u32, pipath: Option<&INetCfgBindingPath>) -> windows_core::Result<()>; fn SysNotifyBindingPath(&self, dwchangeflag: u32, pipath: Option<&INetCfgBindingPath>) -> windows_core::Result<()>; @@ -790,14 +565,8 @@ pub trait INetCfgComponentNotifyGlobal_Impl: Sized { } impl windows_core::RuntimeName for INetCfgComponentNotifyGlobal {} impl INetCfgComponentNotifyGlobal_Vtbl { - pub const fn new() -> INetCfgComponentNotifyGlobal_Vtbl - where - Identity: INetCfgComponentNotifyGlobal_Impl, - { - unsafe extern "system" fn GetSupportedNotifications(this: *mut core::ffi::c_void, dwnotifications: *mut u32) -> windows_core::HRESULT - where - Identity: INetCfgComponentNotifyGlobal_Impl, - { + pub const fn new() -> INetCfgComponentNotifyGlobal_Vtbl { + unsafe extern "system" fn GetSupportedNotifications(this: *mut core::ffi::c_void, dwnotifications: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetCfgComponentNotifyGlobal_Impl::GetSupportedNotifications(this) { Ok(ok__) => { @@ -807,24 +576,15 @@ impl INetCfgComponentNotifyGlobal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SysQueryBindingPath(this: *mut core::ffi::c_void, dwchangeflag: u32, pipath: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentNotifyGlobal_Impl, - { + unsafe extern "system" fn SysQueryBindingPath(this: *mut core::ffi::c_void, dwchangeflag: u32, pipath: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentNotifyGlobal_Impl::SysQueryBindingPath(this, core::mem::transmute_copy(&dwchangeflag), windows_core::from_raw_borrowed(&pipath)).into() } - unsafe extern "system" fn SysNotifyBindingPath(this: *mut core::ffi::c_void, dwchangeflag: u32, pipath: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentNotifyGlobal_Impl, - { + unsafe extern "system" fn SysNotifyBindingPath(this: *mut core::ffi::c_void, dwchangeflag: u32, pipath: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentNotifyGlobal_Impl::SysNotifyBindingPath(this, core::mem::transmute_copy(&dwchangeflag), windows_core::from_raw_borrowed(&pipath)).into() } - unsafe extern "system" fn SysNotifyComponent(this: *mut core::ffi::c_void, dwchangeflag: u32, picomp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentNotifyGlobal_Impl, - { + unsafe extern "system" fn SysNotifyComponent(this: *mut core::ffi::c_void, dwchangeflag: u32, picomp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentNotifyGlobal_Impl::SysNotifyComponent(this, core::mem::transmute_copy(&dwchangeflag), windows_core::from_raw_borrowed(&picomp)).into() } @@ -840,7 +600,7 @@ impl INetCfgComponentNotifyGlobal_Vtbl { iid == &::IID } } -pub trait INetCfgComponentPropertyUi_Impl: Sized { +pub trait INetCfgComponentPropertyUi_Impl: Sized + windows_core::IUnknownImpl { fn QueryPropertyUi(&self, punkreserved: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn SetContext(&self, punkreserved: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn MergePropPages(&self, pdwdefpages: *mut u32, pahpspprivate: *mut *mut u8, pcpages: *mut u32, hwndparent: super::super::Foundation::HWND, pszstartpage: *const windows_core::PCWSTR) -> windows_core::Result<()>; @@ -850,49 +610,28 @@ pub trait INetCfgComponentPropertyUi_Impl: Sized { } impl windows_core::RuntimeName for INetCfgComponentPropertyUi {} impl INetCfgComponentPropertyUi_Vtbl { - pub const fn new() -> INetCfgComponentPropertyUi_Vtbl - where - Identity: INetCfgComponentPropertyUi_Impl, - { - unsafe extern "system" fn QueryPropertyUi(this: *mut core::ffi::c_void, punkreserved: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentPropertyUi_Impl, - { + pub const fn new() -> INetCfgComponentPropertyUi_Vtbl { + unsafe extern "system" fn QueryPropertyUi(this: *mut core::ffi::c_void, punkreserved: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentPropertyUi_Impl::QueryPropertyUi(this, windows_core::from_raw_borrowed(&punkreserved)).into() } - unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, punkreserved: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentPropertyUi_Impl, - { + unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, punkreserved: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentPropertyUi_Impl::SetContext(this, windows_core::from_raw_borrowed(&punkreserved)).into() } - unsafe extern "system" fn MergePropPages(this: *mut core::ffi::c_void, pdwdefpages: *mut u32, pahpspprivate: *mut *mut u8, pcpages: *mut u32, hwndparent: super::super::Foundation::HWND, pszstartpage: *const windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: INetCfgComponentPropertyUi_Impl, - { + unsafe extern "system" fn MergePropPages(this: *mut core::ffi::c_void, pdwdefpages: *mut u32, pahpspprivate: *mut *mut u8, pcpages: *mut u32, hwndparent: super::super::Foundation::HWND, pszstartpage: *const windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentPropertyUi_Impl::MergePropPages(this, core::mem::transmute_copy(&pdwdefpages), core::mem::transmute_copy(&pahpspprivate), core::mem::transmute_copy(&pcpages), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&pszstartpage)).into() } - unsafe extern "system" fn ValidateProperties(this: *mut core::ffi::c_void, hwndsheet: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: INetCfgComponentPropertyUi_Impl, - { + unsafe extern "system" fn ValidateProperties(this: *mut core::ffi::c_void, hwndsheet: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentPropertyUi_Impl::ValidateProperties(this, core::mem::transmute_copy(&hwndsheet)).into() } - unsafe extern "system" fn ApplyProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentPropertyUi_Impl, - { + unsafe extern "system" fn ApplyProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentPropertyUi_Impl::ApplyProperties(this).into() } - unsafe extern "system" fn CancelProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentPropertyUi_Impl, - { + unsafe extern "system" fn CancelProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentPropertyUi_Impl::CancelProperties(this).into() } @@ -910,7 +649,7 @@ impl INetCfgComponentPropertyUi_Vtbl { iid == &::IID } } -pub trait INetCfgComponentSetup_Impl: Sized { +pub trait INetCfgComponentSetup_Impl: Sized + windows_core::IUnknownImpl { fn Install(&self, dwsetupflags: u32) -> windows_core::Result<()>; fn Upgrade(&self, dwsetupflags: u32, dwupgradefombuildno: u32) -> windows_core::Result<()>; fn ReadAnswerFile(&self, pszwanswerfile: &windows_core::PCWSTR, pszwanswersections: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -918,35 +657,20 @@ pub trait INetCfgComponentSetup_Impl: Sized { } impl windows_core::RuntimeName for INetCfgComponentSetup {} impl INetCfgComponentSetup_Vtbl { - pub const fn new() -> INetCfgComponentSetup_Vtbl - where - Identity: INetCfgComponentSetup_Impl, - { - unsafe extern "system" fn Install(this: *mut core::ffi::c_void, dwsetupflags: u32) -> windows_core::HRESULT - where - Identity: INetCfgComponentSetup_Impl, - { + pub const fn new() -> INetCfgComponentSetup_Vtbl { + unsafe extern "system" fn Install(this: *mut core::ffi::c_void, dwsetupflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentSetup_Impl::Install(this, core::mem::transmute_copy(&dwsetupflags)).into() } - unsafe extern "system" fn Upgrade(this: *mut core::ffi::c_void, dwsetupflags: u32, dwupgradefombuildno: u32) -> windows_core::HRESULT - where - Identity: INetCfgComponentSetup_Impl, - { + unsafe extern "system" fn Upgrade(this: *mut core::ffi::c_void, dwsetupflags: u32, dwupgradefombuildno: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentSetup_Impl::Upgrade(this, core::mem::transmute_copy(&dwsetupflags), core::mem::transmute_copy(&dwupgradefombuildno)).into() } - unsafe extern "system" fn ReadAnswerFile(this: *mut core::ffi::c_void, pszwanswerfile: windows_core::PCWSTR, pszwanswersections: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: INetCfgComponentSetup_Impl, - { + unsafe extern "system" fn ReadAnswerFile(this: *mut core::ffi::c_void, pszwanswerfile: windows_core::PCWSTR, pszwanswersections: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentSetup_Impl::ReadAnswerFile(this, core::mem::transmute(&pszwanswerfile), core::mem::transmute(&pszwanswersections)).into() } - unsafe extern "system" fn Removing(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgComponentSetup_Impl, - { + unsafe extern "system" fn Removing(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentSetup_Impl::Removing(this).into() } @@ -962,27 +686,18 @@ impl INetCfgComponentSetup_Vtbl { iid == &::IID } } -pub trait INetCfgComponentSysPrep_Impl: Sized { +pub trait INetCfgComponentSysPrep_Impl: Sized + windows_core::IUnknownImpl { fn SaveAdapterParameters(&self, pncsp: Option<&INetCfgSysPrep>, pszwanswersections: &windows_core::PCWSTR, padapterinstanceguid: *const windows_core::GUID) -> windows_core::Result<()>; fn RestoreAdapterParameters(&self, pszwanswerfile: &windows_core::PCWSTR, pszwanswersection: &windows_core::PCWSTR, padapterinstanceguid: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetCfgComponentSysPrep {} impl INetCfgComponentSysPrep_Vtbl { - pub const fn new() -> INetCfgComponentSysPrep_Vtbl - where - Identity: INetCfgComponentSysPrep_Impl, - { - unsafe extern "system" fn SaveAdapterParameters(this: *mut core::ffi::c_void, pncsp: *mut core::ffi::c_void, pszwanswersections: windows_core::PCWSTR, padapterinstanceguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetCfgComponentSysPrep_Impl, - { + pub const fn new() -> INetCfgComponentSysPrep_Vtbl { + unsafe extern "system" fn SaveAdapterParameters(this: *mut core::ffi::c_void, pncsp: *mut core::ffi::c_void, pszwanswersections: windows_core::PCWSTR, padapterinstanceguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentSysPrep_Impl::SaveAdapterParameters(this, windows_core::from_raw_borrowed(&pncsp), core::mem::transmute(&pszwanswersections), core::mem::transmute_copy(&padapterinstanceguid)).into() } - unsafe extern "system" fn RestoreAdapterParameters(this: *mut core::ffi::c_void, pszwanswerfile: windows_core::PCWSTR, pszwanswersection: windows_core::PCWSTR, padapterinstanceguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetCfgComponentSysPrep_Impl, - { + unsafe extern "system" fn RestoreAdapterParameters(this: *mut core::ffi::c_void, pszwanswerfile: windows_core::PCWSTR, pszwanswersection: windows_core::PCWSTR, padapterinstanceguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentSysPrep_Impl::RestoreAdapterParameters(this, core::mem::transmute(&pszwanswerfile), core::mem::transmute(&pszwanswersection), core::mem::transmute_copy(&padapterinstanceguid)).into() } @@ -996,35 +711,23 @@ impl INetCfgComponentSysPrep_Vtbl { iid == &::IID } } -pub trait INetCfgComponentUpperEdge_Impl: Sized { +pub trait INetCfgComponentUpperEdge_Impl: Sized + windows_core::IUnknownImpl { fn GetInterfaceIdsForAdapter(&self, padapter: Option<&INetCfgComponent>, pdwnuminterfaces: *mut u32, ppguidinterfaceids: *mut *mut windows_core::GUID) -> windows_core::Result<()>; fn AddInterfacesToAdapter(&self, padapter: Option<&INetCfgComponent>, dwnuminterfaces: u32) -> windows_core::Result<()>; fn RemoveInterfacesFromAdapter(&self, padapter: Option<&INetCfgComponent>, dwnuminterfaces: u32, pguidinterfaceids: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetCfgComponentUpperEdge {} impl INetCfgComponentUpperEdge_Vtbl { - pub const fn new() -> INetCfgComponentUpperEdge_Vtbl - where - Identity: INetCfgComponentUpperEdge_Impl, - { - unsafe extern "system" fn GetInterfaceIdsForAdapter(this: *mut core::ffi::c_void, padapter: *mut core::ffi::c_void, pdwnuminterfaces: *mut u32, ppguidinterfaceids: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetCfgComponentUpperEdge_Impl, - { + pub const fn new() -> INetCfgComponentUpperEdge_Vtbl { + unsafe extern "system" fn GetInterfaceIdsForAdapter(this: *mut core::ffi::c_void, padapter: *mut core::ffi::c_void, pdwnuminterfaces: *mut u32, ppguidinterfaceids: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentUpperEdge_Impl::GetInterfaceIdsForAdapter(this, windows_core::from_raw_borrowed(&padapter), core::mem::transmute_copy(&pdwnuminterfaces), core::mem::transmute_copy(&ppguidinterfaceids)).into() } - unsafe extern "system" fn AddInterfacesToAdapter(this: *mut core::ffi::c_void, padapter: *mut core::ffi::c_void, dwnuminterfaces: u32) -> windows_core::HRESULT - where - Identity: INetCfgComponentUpperEdge_Impl, - { + unsafe extern "system" fn AddInterfacesToAdapter(this: *mut core::ffi::c_void, padapter: *mut core::ffi::c_void, dwnuminterfaces: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentUpperEdge_Impl::AddInterfacesToAdapter(this, windows_core::from_raw_borrowed(&padapter), core::mem::transmute_copy(&dwnuminterfaces)).into() } - unsafe extern "system" fn RemoveInterfacesFromAdapter(this: *mut core::ffi::c_void, padapter: *mut core::ffi::c_void, dwnuminterfaces: u32, pguidinterfaceids: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetCfgComponentUpperEdge_Impl, - { + unsafe extern "system" fn RemoveInterfacesFromAdapter(this: *mut core::ffi::c_void, padapter: *mut core::ffi::c_void, dwnuminterfaces: u32, pguidinterfaceids: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentUpperEdge_Impl::RemoveInterfacesFromAdapter(this, windows_core::from_raw_borrowed(&padapter), core::mem::transmute_copy(&dwnuminterfaces), core::mem::transmute_copy(&pguidinterfaceids)).into() } @@ -1039,35 +742,23 @@ impl INetCfgComponentUpperEdge_Vtbl { iid == &::IID } } -pub trait INetCfgLock_Impl: Sized { +pub trait INetCfgLock_Impl: Sized + windows_core::IUnknownImpl { fn AcquireWriteLock(&self, cmstimeout: u32, pszwclientdescription: &windows_core::PCWSTR, ppszwclientdescription: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn ReleaseWriteLock(&self) -> windows_core::Result<()>; fn IsWriteLocked(&self, ppszwclientdescription: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetCfgLock {} impl INetCfgLock_Vtbl { - pub const fn new() -> INetCfgLock_Vtbl - where - Identity: INetCfgLock_Impl, - { - unsafe extern "system" fn AcquireWriteLock(this: *mut core::ffi::c_void, cmstimeout: u32, pszwclientdescription: windows_core::PCWSTR, ppszwclientdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetCfgLock_Impl, - { + pub const fn new() -> INetCfgLock_Vtbl { + unsafe extern "system" fn AcquireWriteLock(this: *mut core::ffi::c_void, cmstimeout: u32, pszwclientdescription: windows_core::PCWSTR, ppszwclientdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgLock_Impl::AcquireWriteLock(this, core::mem::transmute_copy(&cmstimeout), core::mem::transmute(&pszwclientdescription), core::mem::transmute_copy(&ppszwclientdescription)).into() } - unsafe extern "system" fn ReleaseWriteLock(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetCfgLock_Impl, - { + unsafe extern "system" fn ReleaseWriteLock(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgLock_Impl::ReleaseWriteLock(this).into() } - unsafe extern "system" fn IsWriteLocked(this: *mut core::ffi::c_void, ppszwclientdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetCfgLock_Impl, - { + unsafe extern "system" fn IsWriteLocked(this: *mut core::ffi::c_void, ppszwclientdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgLock_Impl::IsWriteLocked(this, core::mem::transmute_copy(&ppszwclientdescription)).into() } @@ -1082,19 +773,13 @@ impl INetCfgLock_Vtbl { iid == &::IID } } -pub trait INetCfgPnpReconfigCallback_Impl: Sized { +pub trait INetCfgPnpReconfigCallback_Impl: Sized + windows_core::IUnknownImpl { fn SendPnpReconfig(&self, layer: NCPNP_RECONFIG_LAYER, pszwupper: &windows_core::PCWSTR, pszwlower: &windows_core::PCWSTR, pvdata: *const core::ffi::c_void, dwsizeofdata: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetCfgPnpReconfigCallback {} impl INetCfgPnpReconfigCallback_Vtbl { - pub const fn new() -> INetCfgPnpReconfigCallback_Vtbl - where - Identity: INetCfgPnpReconfigCallback_Impl, - { - unsafe extern "system" fn SendPnpReconfig(this: *mut core::ffi::c_void, layer: NCPNP_RECONFIG_LAYER, pszwupper: windows_core::PCWSTR, pszwlower: windows_core::PCWSTR, pvdata: *const core::ffi::c_void, dwsizeofdata: u32) -> windows_core::HRESULT - where - Identity: INetCfgPnpReconfigCallback_Impl, - { + pub const fn new() -> INetCfgPnpReconfigCallback_Vtbl { + unsafe extern "system" fn SendPnpReconfig(this: *mut core::ffi::c_void, layer: NCPNP_RECONFIG_LAYER, pszwupper: windows_core::PCWSTR, pszwlower: windows_core::PCWSTR, pvdata: *const core::ffi::c_void, dwsizeofdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgPnpReconfigCallback_Impl::SendPnpReconfig(this, core::mem::transmute_copy(&layer), core::mem::transmute(&pszwupper), core::mem::transmute(&pszwlower), core::mem::transmute_copy(&pvdata), core::mem::transmute_copy(&dwsizeofdata)).into() } @@ -1104,7 +789,7 @@ impl INetCfgPnpReconfigCallback_Vtbl { iid == &::IID } } -pub trait INetCfgSysPrep_Impl: Sized { +pub trait INetCfgSysPrep_Impl: Sized + windows_core::IUnknownImpl { fn HrSetupSetFirstDword(&self, pwszsection: &windows_core::PCWSTR, pwszkey: &windows_core::PCWSTR, dwvalue: u32) -> windows_core::Result<()>; fn HrSetupSetFirstString(&self, pwszsection: &windows_core::PCWSTR, pwszkey: &windows_core::PCWSTR, pwszvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; fn HrSetupSetFirstStringAsBool(&self, pwszsection: &windows_core::PCWSTR, pwszkey: &windows_core::PCWSTR, fvalue: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -1112,35 +797,20 @@ pub trait INetCfgSysPrep_Impl: Sized { } impl windows_core::RuntimeName for INetCfgSysPrep {} impl INetCfgSysPrep_Vtbl { - pub const fn new() -> INetCfgSysPrep_Vtbl - where - Identity: INetCfgSysPrep_Impl, - { - unsafe extern "system" fn HrSetupSetFirstDword(this: *mut core::ffi::c_void, pwszsection: windows_core::PCWSTR, pwszkey: windows_core::PCWSTR, dwvalue: u32) -> windows_core::HRESULT - where - Identity: INetCfgSysPrep_Impl, - { + pub const fn new() -> INetCfgSysPrep_Vtbl { + unsafe extern "system" fn HrSetupSetFirstDword(this: *mut core::ffi::c_void, pwszsection: windows_core::PCWSTR, pwszkey: windows_core::PCWSTR, dwvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgSysPrep_Impl::HrSetupSetFirstDword(this, core::mem::transmute(&pwszsection), core::mem::transmute(&pwszkey), core::mem::transmute_copy(&dwvalue)).into() } - unsafe extern "system" fn HrSetupSetFirstString(this: *mut core::ffi::c_void, pwszsection: windows_core::PCWSTR, pwszkey: windows_core::PCWSTR, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: INetCfgSysPrep_Impl, - { + unsafe extern "system" fn HrSetupSetFirstString(this: *mut core::ffi::c_void, pwszsection: windows_core::PCWSTR, pwszkey: windows_core::PCWSTR, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgSysPrep_Impl::HrSetupSetFirstString(this, core::mem::transmute(&pwszsection), core::mem::transmute(&pwszkey), core::mem::transmute(&pwszvalue)).into() } - unsafe extern "system" fn HrSetupSetFirstStringAsBool(this: *mut core::ffi::c_void, pwszsection: windows_core::PCWSTR, pwszkey: windows_core::PCWSTR, fvalue: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: INetCfgSysPrep_Impl, - { + unsafe extern "system" fn HrSetupSetFirstStringAsBool(this: *mut core::ffi::c_void, pwszsection: windows_core::PCWSTR, pwszkey: windows_core::PCWSTR, fvalue: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgSysPrep_Impl::HrSetupSetFirstStringAsBool(this, core::mem::transmute(&pwszsection), core::mem::transmute(&pwszkey), core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn HrSetupSetFirstMultiSzField(this: *mut core::ffi::c_void, pwszsection: windows_core::PCWSTR, pwszkey: windows_core::PCWSTR, pmszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: INetCfgSysPrep_Impl, - { + unsafe extern "system" fn HrSetupSetFirstMultiSzField(this: *mut core::ffi::c_void, pwszsection: windows_core::PCWSTR, pwszkey: windows_core::PCWSTR, pmszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgSysPrep_Impl::HrSetupSetFirstMultiSzField(this, core::mem::transmute(&pwszsection), core::mem::transmute(&pwszkey), core::mem::transmute(&pmszvalue)).into() } @@ -1156,19 +826,13 @@ impl INetCfgSysPrep_Vtbl { iid == &::IID } } -pub trait INetLanConnectionUiInfo_Impl: Sized { +pub trait INetLanConnectionUiInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceGuid(&self) -> windows_core::Result; } impl windows_core::RuntimeName for INetLanConnectionUiInfo {} impl INetLanConnectionUiInfo_Vtbl { - pub const fn new() -> INetLanConnectionUiInfo_Vtbl - where - Identity: INetLanConnectionUiInfo_Impl, - { - unsafe extern "system" fn GetDeviceGuid(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetLanConnectionUiInfo_Impl, - { + pub const fn new() -> INetLanConnectionUiInfo_Vtbl { + unsafe extern "system" fn GetDeviceGuid(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetLanConnectionUiInfo_Impl::GetDeviceGuid(this) { Ok(ok__) => { @@ -1184,19 +848,13 @@ impl INetLanConnectionUiInfo_Vtbl { iid == &::IID } } -pub trait INetRasConnectionIpUiInfo_Impl: Sized { +pub trait INetRasConnectionIpUiInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetUiInfo(&self, pinfo: *mut RASCON_IPUI) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetRasConnectionIpUiInfo {} impl INetRasConnectionIpUiInfo_Vtbl { - pub const fn new() -> INetRasConnectionIpUiInfo_Vtbl - where - Identity: INetRasConnectionIpUiInfo_Impl, - { - unsafe extern "system" fn GetUiInfo(this: *mut core::ffi::c_void, pinfo: *mut RASCON_IPUI) -> windows_core::HRESULT - where - Identity: INetRasConnectionIpUiInfo_Impl, - { + pub const fn new() -> INetRasConnectionIpUiInfo_Vtbl { + unsafe extern "system" fn GetUiInfo(this: *mut core::ffi::c_void, pinfo: *mut RASCON_IPUI) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetRasConnectionIpUiInfo_Impl::GetUiInfo(this, core::mem::transmute_copy(&pinfo)).into() } @@ -1207,7 +865,7 @@ impl INetRasConnectionIpUiInfo_Vtbl { } } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] -pub trait IProvisioningDomain_Impl: Sized { +pub trait IProvisioningDomain_Impl: Sized + windows_core::IUnknownImpl { fn Add(&self, pszwpathtofolder: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Query(&self, pszwdomain: &windows_core::PCWSTR, pszwlanguage: &windows_core::PCWSTR, pszwxpathquery: &windows_core::PCWSTR) -> windows_core::Result; } @@ -1215,21 +873,12 @@ pub trait IProvisioningDomain_Impl: Sized { impl windows_core::RuntimeName for IProvisioningDomain {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IProvisioningDomain_Vtbl { - pub const fn new() -> IProvisioningDomain_Vtbl - where - Identity: IProvisioningDomain_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pszwpathtofolder: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IProvisioningDomain_Impl, - { + pub const fn new() -> IProvisioningDomain_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pszwpathtofolder: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProvisioningDomain_Impl::Add(this, core::mem::transmute(&pszwpathtofolder)).into() } - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, pszwdomain: windows_core::PCWSTR, pszwlanguage: windows_core::PCWSTR, pszwxpathquery: windows_core::PCWSTR, nodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProvisioningDomain_Impl, - { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, pszwdomain: windows_core::PCWSTR, pszwlanguage: windows_core::PCWSTR, pszwxpathquery: windows_core::PCWSTR, nodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvisioningDomain_Impl::Query(this, core::mem::transmute(&pszwdomain), core::mem::transmute(&pszwlanguage), core::mem::transmute(&pszwxpathquery)) { Ok(ok__) => { @@ -1245,19 +894,13 @@ impl IProvisioningDomain_Vtbl { iid == &::IID } } -pub trait IProvisioningProfileWireless_Impl: Sized { +pub trait IProvisioningProfileWireless_Impl: Sized + windows_core::IUnknownImpl { fn CreateProfile(&self, bstrxmlwirelessconfigprofile: &windows_core::BSTR, bstrxmlconnectionconfigprofile: &windows_core::BSTR, padapterinstanceguid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IProvisioningProfileWireless {} impl IProvisioningProfileWireless_Vtbl { - pub const fn new() -> IProvisioningProfileWireless_Vtbl - where - Identity: IProvisioningProfileWireless_Impl, - { - unsafe extern "system" fn CreateProfile(this: *mut core::ffi::c_void, bstrxmlwirelessconfigprofile: core::mem::MaybeUninit, bstrxmlconnectionconfigprofile: core::mem::MaybeUninit, padapterinstanceguid: *const windows_core::GUID, pulstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IProvisioningProfileWireless_Impl, - { + pub const fn new() -> IProvisioningProfileWireless_Vtbl { + unsafe extern "system" fn CreateProfile(this: *mut core::ffi::c_void, bstrxmlwirelessconfigprofile: core::mem::MaybeUninit, bstrxmlconnectionconfigprofile: core::mem::MaybeUninit, padapterinstanceguid: *const windows_core::GUID, pulstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvisioningProfileWireless_Impl::CreateProfile(this, core::mem::transmute(&bstrxmlwirelessconfigprofile), core::mem::transmute(&bstrxmlconnectionconfigprofile), core::mem::transmute_copy(&padapterinstanceguid)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/impl.rs index 75045e72b2..4bf676ad7b 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/impl.rs @@ -1,16 +1,10 @@ -pub trait INetDiagExtensibleHelper_Impl: Sized { +pub trait INetDiagExtensibleHelper_Impl: Sized + windows_core::IUnknownImpl { fn ResolveAttributes(&self, celt: u32, rgkeyattributes: *const HELPER_ATTRIBUTE, pcelt: *mut u32, prgmatchvalues: *mut *mut HELPER_ATTRIBUTE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetDiagExtensibleHelper {} impl INetDiagExtensibleHelper_Vtbl { - pub const fn new() -> INetDiagExtensibleHelper_Vtbl - where - Identity: INetDiagExtensibleHelper_Impl, - { - unsafe extern "system" fn ResolveAttributes(this: *mut core::ffi::c_void, celt: u32, rgkeyattributes: *const HELPER_ATTRIBUTE, pcelt: *mut u32, prgmatchvalues: *mut *mut HELPER_ATTRIBUTE) -> windows_core::HRESULT - where - Identity: INetDiagExtensibleHelper_Impl, - { + pub const fn new() -> INetDiagExtensibleHelper_Vtbl { + unsafe extern "system" fn ResolveAttributes(this: *mut core::ffi::c_void, celt: u32, rgkeyattributes: *const HELPER_ATTRIBUTE, pcelt: *mut u32, prgmatchvalues: *mut *mut HELPER_ATTRIBUTE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagExtensibleHelper_Impl::ResolveAttributes(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgkeyattributes), core::mem::transmute_copy(&pcelt), core::mem::transmute_copy(&prgmatchvalues)).into() } @@ -20,7 +14,7 @@ impl INetDiagExtensibleHelper_Vtbl { iid == &::IID } } -pub trait INetDiagHelper_Impl: Sized { +pub trait INetDiagHelper_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, celt: u32, rgattributes: *const HELPER_ATTRIBUTE) -> windows_core::Result<()>; fn GetDiagnosticsInfo(&self) -> windows_core::Result<*mut DiagnosticsInfo>; fn GetKeyAttributes(&self, pcelt: *mut u32, pprgattributes: *mut *mut HELPER_ATTRIBUTE) -> windows_core::Result<()>; @@ -42,21 +36,12 @@ pub trait INetDiagHelper_Impl: Sized { } impl windows_core::RuntimeName for INetDiagHelper {} impl INetDiagHelper_Vtbl { - pub const fn new() -> INetDiagHelper_Vtbl - where - Identity: INetDiagHelper_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, celt: u32, rgattributes: *const HELPER_ATTRIBUTE) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + pub const fn new() -> INetDiagHelper_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, celt: u32, rgattributes: *const HELPER_ATTRIBUTE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::Initialize(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgattributes)).into() } - unsafe extern "system" fn GetDiagnosticsInfo(this: *mut core::ffi::c_void, ppinfo: *mut *mut DiagnosticsInfo) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn GetDiagnosticsInfo(this: *mut core::ffi::c_void, ppinfo: *mut *mut DiagnosticsInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetDiagHelper_Impl::GetDiagnosticsInfo(this) { Ok(ok__) => { @@ -66,80 +51,47 @@ impl INetDiagHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyAttributes(this: *mut core::ffi::c_void, pcelt: *mut u32, pprgattributes: *mut *mut HELPER_ATTRIBUTE) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn GetKeyAttributes(this: *mut core::ffi::c_void, pcelt: *mut u32, pprgattributes: *mut *mut HELPER_ATTRIBUTE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::GetKeyAttributes(this, core::mem::transmute_copy(&pcelt), core::mem::transmute_copy(&pprgattributes)).into() } - unsafe extern "system" fn LowHealth(this: *mut core::ffi::c_void, pwszinstancedescription: windows_core::PCWSTR, ppwszdescription: *mut windows_core::PWSTR, pdeferredtime: *mut i32, pstatus: *mut DIAGNOSIS_STATUS) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn LowHealth(this: *mut core::ffi::c_void, pwszinstancedescription: windows_core::PCWSTR, ppwszdescription: *mut windows_core::PWSTR, pdeferredtime: *mut i32, pstatus: *mut DIAGNOSIS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::LowHealth(this, core::mem::transmute(&pwszinstancedescription), core::mem::transmute_copy(&ppwszdescription), core::mem::transmute_copy(&pdeferredtime), core::mem::transmute_copy(&pstatus)).into() } - unsafe extern "system" fn HighUtilization(this: *mut core::ffi::c_void, pwszinstancedescription: windows_core::PCWSTR, ppwszdescription: *mut windows_core::PWSTR, pdeferredtime: *mut i32, pstatus: *mut DIAGNOSIS_STATUS) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn HighUtilization(this: *mut core::ffi::c_void, pwszinstancedescription: windows_core::PCWSTR, ppwszdescription: *mut windows_core::PWSTR, pdeferredtime: *mut i32, pstatus: *mut DIAGNOSIS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::HighUtilization(this, core::mem::transmute(&pwszinstancedescription), core::mem::transmute_copy(&ppwszdescription), core::mem::transmute_copy(&pdeferredtime), core::mem::transmute_copy(&pstatus)).into() } - unsafe extern "system" fn GetLowerHypotheses(this: *mut core::ffi::c_void, pcelt: *mut u32, pprghypotheses: *mut *mut HYPOTHESIS) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn GetLowerHypotheses(this: *mut core::ffi::c_void, pcelt: *mut u32, pprghypotheses: *mut *mut HYPOTHESIS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::GetLowerHypotheses(this, core::mem::transmute_copy(&pcelt), core::mem::transmute_copy(&pprghypotheses)).into() } - unsafe extern "system" fn GetDownStreamHypotheses(this: *mut core::ffi::c_void, pcelt: *mut u32, pprghypotheses: *mut *mut HYPOTHESIS) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn GetDownStreamHypotheses(this: *mut core::ffi::c_void, pcelt: *mut u32, pprghypotheses: *mut *mut HYPOTHESIS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::GetDownStreamHypotheses(this, core::mem::transmute_copy(&pcelt), core::mem::transmute_copy(&pprghypotheses)).into() } - unsafe extern "system" fn GetHigherHypotheses(this: *mut core::ffi::c_void, pcelt: *mut u32, pprghypotheses: *mut *mut HYPOTHESIS) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn GetHigherHypotheses(this: *mut core::ffi::c_void, pcelt: *mut u32, pprghypotheses: *mut *mut HYPOTHESIS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::GetHigherHypotheses(this, core::mem::transmute_copy(&pcelt), core::mem::transmute_copy(&pprghypotheses)).into() } - unsafe extern "system" fn GetUpStreamHypotheses(this: *mut core::ffi::c_void, pcelt: *mut u32, pprghypotheses: *mut *mut HYPOTHESIS) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn GetUpStreamHypotheses(this: *mut core::ffi::c_void, pcelt: *mut u32, pprghypotheses: *mut *mut HYPOTHESIS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::GetUpStreamHypotheses(this, core::mem::transmute_copy(&pcelt), core::mem::transmute_copy(&pprghypotheses)).into() } - unsafe extern "system" fn Repair(this: *mut core::ffi::c_void, pinfo: *const RepairInfo, pdeferredtime: *mut i32, pstatus: *mut REPAIR_STATUS) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn Repair(this: *mut core::ffi::c_void, pinfo: *const RepairInfo, pdeferredtime: *mut i32, pstatus: *mut REPAIR_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::Repair(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&pdeferredtime), core::mem::transmute_copy(&pstatus)).into() } - unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, problem: PROBLEM_TYPE, pdeferredtime: *mut i32, pstatus: *mut REPAIR_STATUS) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, problem: PROBLEM_TYPE, pdeferredtime: *mut i32, pstatus: *mut REPAIR_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::Validate(this, core::mem::transmute_copy(&problem), core::mem::transmute_copy(&pdeferredtime), core::mem::transmute_copy(&pstatus)).into() } - unsafe extern "system" fn GetRepairInfo(this: *mut core::ffi::c_void, problem: PROBLEM_TYPE, pcelt: *mut u32, ppinfo: *mut *mut RepairInfo) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn GetRepairInfo(this: *mut core::ffi::c_void, problem: PROBLEM_TYPE, pcelt: *mut u32, ppinfo: *mut *mut RepairInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::GetRepairInfo(this, core::mem::transmute_copy(&problem), core::mem::transmute_copy(&pcelt), core::mem::transmute_copy(&ppinfo)).into() } - unsafe extern "system" fn GetLifeTime(this: *mut core::ffi::c_void, plifetime: *mut LIFE_TIME) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn GetLifeTime(this: *mut core::ffi::c_void, plifetime: *mut LIFE_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetDiagHelper_Impl::GetLifeTime(this) { Ok(ok__) => { @@ -149,17 +101,11 @@ impl INetDiagHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLifeTime(this: *mut core::ffi::c_void, lifetime: LIFE_TIME) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn SetLifeTime(this: *mut core::ffi::c_void, lifetime: LIFE_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::SetLifeTime(this, core::mem::transmute(&lifetime)).into() } - unsafe extern "system" fn GetCacheTime(this: *mut core::ffi::c_void, pcachetime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn GetCacheTime(this: *mut core::ffi::c_void, pcachetime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetDiagHelper_Impl::GetCacheTime(this) { Ok(ok__) => { @@ -169,24 +115,15 @@ impl INetDiagHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pcelt: *mut u32, pprgattributes: *mut *mut HELPER_ATTRIBUTE) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pcelt: *mut u32, pprgattributes: *mut *mut HELPER_ATTRIBUTE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::GetAttributes(this, core::mem::transmute_copy(&pcelt), core::mem::transmute_copy(&pprgattributes)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::Cancel(this).into() } - unsafe extern "system" fn Cleanup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetDiagHelper_Impl, - { + unsafe extern "system" fn Cleanup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelper_Impl::Cleanup(this).into() } @@ -216,35 +153,23 @@ impl INetDiagHelper_Vtbl { iid == &::IID } } -pub trait INetDiagHelperEx_Impl: Sized { +pub trait INetDiagHelperEx_Impl: Sized + windows_core::IUnknownImpl { fn ReconfirmLowHealth(&self, celt: u32, presults: *const HypothesisResult, ppwszupdateddescription: *mut windows_core::PWSTR, pupdatedstatus: *mut DIAGNOSIS_STATUS) -> windows_core::Result<()>; fn SetUtilities(&self, putilities: Option<&INetDiagHelperUtilFactory>) -> windows_core::Result<()>; fn ReproduceFailure(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetDiagHelperEx {} impl INetDiagHelperEx_Vtbl { - pub const fn new() -> INetDiagHelperEx_Vtbl - where - Identity: INetDiagHelperEx_Impl, - { - unsafe extern "system" fn ReconfirmLowHealth(this: *mut core::ffi::c_void, celt: u32, presults: *const HypothesisResult, ppwszupdateddescription: *mut windows_core::PWSTR, pupdatedstatus: *mut DIAGNOSIS_STATUS) -> windows_core::HRESULT - where - Identity: INetDiagHelperEx_Impl, - { + pub const fn new() -> INetDiagHelperEx_Vtbl { + unsafe extern "system" fn ReconfirmLowHealth(this: *mut core::ffi::c_void, celt: u32, presults: *const HypothesisResult, ppwszupdateddescription: *mut windows_core::PWSTR, pupdatedstatus: *mut DIAGNOSIS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelperEx_Impl::ReconfirmLowHealth(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&presults), core::mem::transmute_copy(&ppwszupdateddescription), core::mem::transmute_copy(&pupdatedstatus)).into() } - unsafe extern "system" fn SetUtilities(this: *mut core::ffi::c_void, putilities: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetDiagHelperEx_Impl, - { + unsafe extern "system" fn SetUtilities(this: *mut core::ffi::c_void, putilities: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelperEx_Impl::SetUtilities(this, windows_core::from_raw_borrowed(&putilities)).into() } - unsafe extern "system" fn ReproduceFailure(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetDiagHelperEx_Impl, - { + unsafe extern "system" fn ReproduceFailure(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelperEx_Impl::ReproduceFailure(this).into() } @@ -259,19 +184,13 @@ impl INetDiagHelperEx_Vtbl { iid == &::IID } } -pub trait INetDiagHelperInfo_Impl: Sized { +pub trait INetDiagHelperInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetAttributeInfo(&self, pcelt: *mut u32, pprgattributeinfos: *mut *mut HelperAttributeInfo) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetDiagHelperInfo {} impl INetDiagHelperInfo_Vtbl { - pub const fn new() -> INetDiagHelperInfo_Vtbl - where - Identity: INetDiagHelperInfo_Impl, - { - unsafe extern "system" fn GetAttributeInfo(this: *mut core::ffi::c_void, pcelt: *mut u32, pprgattributeinfos: *mut *mut HelperAttributeInfo) -> windows_core::HRESULT - where - Identity: INetDiagHelperInfo_Impl, - { + pub const fn new() -> INetDiagHelperInfo_Vtbl { + unsafe extern "system" fn GetAttributeInfo(this: *mut core::ffi::c_void, pcelt: *mut u32, pprgattributeinfos: *mut *mut HelperAttributeInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelperInfo_Impl::GetAttributeInfo(this, core::mem::transmute_copy(&pcelt), core::mem::transmute_copy(&pprgattributeinfos)).into() } @@ -281,19 +200,13 @@ impl INetDiagHelperInfo_Vtbl { iid == &::IID } } -pub trait INetDiagHelperUtilFactory_Impl: Sized { +pub trait INetDiagHelperUtilFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateUtilityInstance(&self, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetDiagHelperUtilFactory {} impl INetDiagHelperUtilFactory_Vtbl { - pub const fn new() -> INetDiagHelperUtilFactory_Vtbl - where - Identity: INetDiagHelperUtilFactory_Impl, - { - unsafe extern "system" fn CreateUtilityInstance(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetDiagHelperUtilFactory_Impl, - { + pub const fn new() -> INetDiagHelperUtilFactory_Vtbl { + unsafe extern "system" fn CreateUtilityInstance(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetDiagHelperUtilFactory_Impl::CreateUtilityInstance(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } 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 e5bb51a99b..d9a0573b2f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/impl.rs @@ -12,14 +12,8 @@ pub trait ISdo_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISdo {} #[cfg(feature = "Win32_System_Com")] impl ISdo_Vtbl { - pub const fn new() -> ISdo_Vtbl - where - Identity: ISdo_Impl, - { - unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, id: i32, pppropertyinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdo_Impl, - { + pub const fn new() -> ISdo_Vtbl { + unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, id: i32, pppropertyinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdo_Impl::GetPropertyInfo(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -29,10 +23,7 @@ impl ISdo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, id: i32, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISdo_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, id: i32, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdo_Impl::GetProperty(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -42,38 +33,23 @@ impl ISdo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutProperty(this: *mut core::ffi::c_void, id: i32, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISdo_Impl, - { + unsafe extern "system" fn PutProperty(this: *mut core::ffi::c_void, id: i32, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdo_Impl::PutProperty(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn ResetProperty(this: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT - where - Identity: ISdo_Impl, - { + unsafe extern "system" fn ResetProperty(this: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdo_Impl::ResetProperty(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn Apply(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdo_Impl, - { + unsafe extern "system" fn Apply(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdo_Impl::Apply(this).into() } - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdo_Impl, - { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdo_Impl::Restore(this).into() } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdo_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdo_Impl::_NewEnum(this) { Ok(ok__) => { @@ -113,14 +89,8 @@ pub trait ISdoCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISdoCollection {} #[cfg(feature = "Win32_System_Com")] impl ISdoCollection_Vtbl { - pub const fn new() -> ISdoCollection_Vtbl - where - Identity: ISdoCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISdoCollection_Impl, - { + pub const fn new() -> ISdoCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoCollection_Impl::Count(this) { Ok(ok__) => { @@ -130,38 +100,23 @@ impl ISdoCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoCollection_Impl::Add(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&ppitem)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoCollection_Impl::Remove(this, windows_core::from_raw_borrowed(&pitem)).into() } - unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoCollection_Impl, - { + unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoCollection_Impl::RemoveAll(this).into() } - unsafe extern "system" fn Reload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoCollection_Impl, - { + unsafe extern "system" fn Reload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoCollection_Impl::Reload(this).into() } - unsafe extern "system" fn IsNameUnique(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISdoCollection_Impl, - { + unsafe extern "system" fn IsNameUnique(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoCollection_Impl::IsNameUnique(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -171,10 +126,7 @@ impl ISdoCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, name: *const core::mem::MaybeUninit, pitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoCollection_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, name: *const core::mem::MaybeUninit, pitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoCollection_Impl::Item(this, core::mem::transmute_copy(&name)) { Ok(ok__) => { @@ -184,10 +136,7 @@ impl ISdoCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -225,14 +174,8 @@ pub trait ISdoDictionaryOld_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ISdoDictionaryOld {} #[cfg(feature = "Win32_System_Com")] impl ISdoDictionaryOld_Vtbl { - pub const fn new() -> ISdoDictionaryOld_Vtbl - where - Identity: ISdoDictionaryOld_Impl, - { - unsafe extern "system" fn EnumAttributes(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit, pvalues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISdoDictionaryOld_Impl, - { + pub const fn new() -> ISdoDictionaryOld_Vtbl { + unsafe extern "system" fn EnumAttributes(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit, pvalues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoDictionaryOld_Impl::EnumAttributes(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -242,10 +185,7 @@ impl ISdoDictionaryOld_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeInfo(this: *mut core::ffi::c_void, id: ATTRIBUTEID, pinfoids: *const core::mem::MaybeUninit, pinfovalues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISdoDictionaryOld_Impl, - { + unsafe extern "system" fn GetAttributeInfo(this: *mut core::ffi::c_void, id: ATTRIBUTEID, pinfoids: *const core::mem::MaybeUninit, pinfovalues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoDictionaryOld_Impl::GetAttributeInfo(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&pinfoids)) { Ok(ok__) => { @@ -255,10 +195,7 @@ impl ISdoDictionaryOld_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumAttributeValues(this: *mut core::ffi::c_void, id: ATTRIBUTEID, pvalueids: *mut core::mem::MaybeUninit, pvaluesdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISdoDictionaryOld_Impl, - { + unsafe extern "system" fn EnumAttributeValues(this: *mut core::ffi::c_void, id: ATTRIBUTEID, pvalueids: *mut core::mem::MaybeUninit, pvaluesdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoDictionaryOld_Impl::EnumAttributeValues(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&pvalueids)) { Ok(ok__) => { @@ -268,10 +205,7 @@ impl ISdoDictionaryOld_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAttribute(this: *mut core::ffi::c_void, id: ATTRIBUTEID, ppattributeobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoDictionaryOld_Impl, - { + unsafe extern "system" fn CreateAttribute(this: *mut core::ffi::c_void, id: ATTRIBUTEID, ppattributeobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoDictionaryOld_Impl::CreateAttribute(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -281,10 +215,7 @@ impl ISdoDictionaryOld_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeID(this: *mut core::ffi::c_void, bstrattributename: core::mem::MaybeUninit, pid: *mut ATTRIBUTEID) -> windows_core::HRESULT - where - Identity: ISdoDictionaryOld_Impl, - { + unsafe extern "system" fn GetAttributeID(this: *mut core::ffi::c_void, bstrattributename: core::mem::MaybeUninit, pid: *mut ATTRIBUTEID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoDictionaryOld_Impl::GetAttributeID(this, core::mem::transmute(&bstrattributename)) { Ok(ok__) => { @@ -323,21 +254,12 @@ pub trait ISdoMachine_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISdoMachine {} #[cfg(feature = "Win32_System_Com")] impl ISdoMachine_Vtbl { - pub const fn new() -> ISdoMachine_Vtbl - where - Identity: ISdoMachine_Impl, - { - unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, bstrcomputername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISdoMachine_Impl, - { + pub const fn new() -> ISdoMachine_Vtbl { + unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, bstrcomputername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoMachine_Impl::Attach(this, core::mem::transmute(&bstrcomputername)).into() } - unsafe extern "system" fn GetDictionarySDO(this: *mut core::ffi::c_void, ppdictionarysdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoMachine_Impl, - { + unsafe extern "system" fn GetDictionarySDO(this: *mut core::ffi::c_void, ppdictionarysdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoMachine_Impl::GetDictionarySDO(this) { Ok(ok__) => { @@ -347,10 +269,7 @@ impl ISdoMachine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceSDO(this: *mut core::ffi::c_void, edatastore: IASDATASTORE, bstrservicename: core::mem::MaybeUninit, ppservicesdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoMachine_Impl, - { + unsafe extern "system" fn GetServiceSDO(this: *mut core::ffi::c_void, edatastore: IASDATASTORE, bstrservicename: core::mem::MaybeUninit, ppservicesdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoMachine_Impl::GetServiceSDO(this, core::mem::transmute_copy(&edatastore), core::mem::transmute(&bstrservicename)) { Ok(ok__) => { @@ -360,10 +279,7 @@ impl ISdoMachine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserSDO(this: *mut core::ffi::c_void, edatastore: IASDATASTORE, bstrusername: core::mem::MaybeUninit, ppusersdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoMachine_Impl, - { + unsafe extern "system" fn GetUserSDO(this: *mut core::ffi::c_void, edatastore: IASDATASTORE, bstrusername: core::mem::MaybeUninit, ppusersdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoMachine_Impl::GetUserSDO(this, core::mem::transmute_copy(&edatastore), core::mem::transmute(&bstrusername)) { Ok(ok__) => { @@ -373,10 +289,7 @@ impl ISdoMachine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOSType(this: *mut core::ffi::c_void, eostype: *mut IASOSTYPE) -> windows_core::HRESULT - where - Identity: ISdoMachine_Impl, - { + unsafe extern "system" fn GetOSType(this: *mut core::ffi::c_void, eostype: *mut IASOSTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoMachine_Impl::GetOSType(this) { Ok(ok__) => { @@ -386,10 +299,7 @@ impl ISdoMachine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDomainType(this: *mut core::ffi::c_void, edomaintype: *mut IASDOMAINTYPE) -> windows_core::HRESULT - where - Identity: ISdoMachine_Impl, - { + unsafe extern "system" fn GetDomainType(this: *mut core::ffi::c_void, edomaintype: *mut IASDOMAINTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoMachine_Impl::GetDomainType(this) { Ok(ok__) => { @@ -399,10 +309,7 @@ impl ISdoMachine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDirectoryAvailable(this: *mut core::ffi::c_void, booldirectoryavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISdoMachine_Impl, - { + unsafe extern "system" fn IsDirectoryAvailable(this: *mut core::ffi::c_void, booldirectoryavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoMachine_Impl::IsDirectoryAvailable(this) { Ok(ok__) => { @@ -412,10 +319,7 @@ impl ISdoMachine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttachedComputer(this: *mut core::ffi::c_void, bstrcomputername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISdoMachine_Impl, - { + unsafe extern "system" fn GetAttachedComputer(this: *mut core::ffi::c_void, bstrcomputername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoMachine_Impl::GetAttachedComputer(this) { Ok(ok__) => { @@ -425,10 +329,7 @@ impl ISdoMachine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSDOSchema(this: *mut core::ffi::c_void, ppsdoschema: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoMachine_Impl, - { + unsafe extern "system" fn GetSDOSchema(this: *mut core::ffi::c_void, ppsdoschema: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoMachine_Impl::GetSDOSchema(this) { Ok(ok__) => { @@ -467,14 +368,8 @@ pub trait ISdoMachine2_Impl: Sized + ISdoMachine_Impl { impl windows_core::RuntimeName for ISdoMachine2 {} #[cfg(feature = "Win32_System_Com")] impl ISdoMachine2_Vtbl { - pub const fn new() -> ISdoMachine2_Vtbl - where - Identity: ISdoMachine2_Impl, - { - unsafe extern "system" fn GetTemplatesSDO(this: *mut core::ffi::c_void, bstrservicename: core::mem::MaybeUninit, pptemplatessdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoMachine2_Impl, - { + pub const fn new() -> ISdoMachine2_Vtbl { + unsafe extern "system" fn GetTemplatesSDO(this: *mut core::ffi::c_void, bstrservicename: core::mem::MaybeUninit, pptemplatessdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoMachine2_Impl::GetTemplatesSDO(this, core::mem::transmute(&bstrservicename)) { Ok(ok__) => { @@ -484,31 +379,19 @@ impl ISdoMachine2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableTemplates(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoMachine2_Impl, - { + unsafe extern "system" fn EnableTemplates(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoMachine2_Impl::EnableTemplates(this).into() } - unsafe extern "system" fn SyncConfigAgainstTemplates(this: *mut core::ffi::c_void, bstrservicename: core::mem::MaybeUninit, ppconfigroot: *mut *mut core::ffi::c_void, pptemplatesroot: *mut *mut core::ffi::c_void, bforcedsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISdoMachine2_Impl, - { + unsafe extern "system" fn SyncConfigAgainstTemplates(this: *mut core::ffi::c_void, bstrservicename: core::mem::MaybeUninit, ppconfigroot: *mut *mut core::ffi::c_void, pptemplatesroot: *mut *mut core::ffi::c_void, bforcedsync: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoMachine2_Impl::SyncConfigAgainstTemplates(this, 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(this: *mut core::ffi::c_void, plocaltemplatesroot: *mut core::ffi::c_void, bstrremotemachinename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISdoMachine2_Impl, - { + unsafe extern "system" fn ImportRemoteTemplates(this: *mut core::ffi::c_void, plocaltemplatesroot: *mut core::ffi::c_void, bstrremotemachinename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoMachine2_Impl::ImportRemoteTemplates(this, windows_core::from_raw_borrowed(&plocaltemplatesroot), core::mem::transmute(&bstrremotemachinename)).into() } - unsafe extern "system" fn Reload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoMachine2_Impl, - { + unsafe extern "system" fn Reload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoMachine2_Impl::Reload(this).into() } @@ -536,28 +419,16 @@ pub trait ISdoServiceControl_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISdoServiceControl {} #[cfg(feature = "Win32_System_Com")] impl ISdoServiceControl_Vtbl { - pub const fn new() -> ISdoServiceControl_Vtbl - where - Identity: ISdoServiceControl_Impl, - { - unsafe extern "system" fn StartService(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoServiceControl_Impl, - { + pub const fn new() -> ISdoServiceControl_Vtbl { + unsafe extern "system" fn StartService(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoServiceControl_Impl::StartService(this).into() } - unsafe extern "system" fn StopService(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoServiceControl_Impl, - { + unsafe extern "system" fn StopService(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoServiceControl_Impl::StopService(this).into() } - unsafe extern "system" fn GetServiceStatus(this: *mut core::ffi::c_void, status: *mut i32) -> windows_core::HRESULT - where - Identity: ISdoServiceControl_Impl, - { + unsafe extern "system" fn GetServiceStatus(this: *mut core::ffi::c_void, status: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISdoServiceControl_Impl::GetServiceStatus(this) { Ok(ok__) => { @@ -567,10 +438,7 @@ impl ISdoServiceControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResetService(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISdoServiceControl_Impl, - { + unsafe extern "system" fn ResetService(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISdoServiceControl_Impl::ResetService(this).into() } @@ -596,28 +464,16 @@ pub trait ITemplateSdo_Impl: Sized + ISdo_Impl { impl windows_core::RuntimeName for ITemplateSdo {} #[cfg(feature = "Win32_System_Com")] impl ITemplateSdo_Vtbl { - pub const fn new() -> ITemplateSdo_Vtbl - where - Identity: ITemplateSdo_Impl, - { - unsafe extern "system" fn AddToCollection(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pcollection: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITemplateSdo_Impl, - { + pub const fn new() -> ITemplateSdo_Vtbl { + unsafe extern "system" fn AddToCollection(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pcollection: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITemplateSdo_Impl::AddToCollection(this, core::mem::transmute(&bstrname), windows_core::from_raw_borrowed(&pcollection), core::mem::transmute_copy(&ppitem)).into() } - unsafe extern "system" fn AddToSdo(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, psdotarget: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITemplateSdo_Impl, - { + unsafe extern "system" fn AddToSdo(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, psdotarget: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITemplateSdo_Impl::AddToSdo(this, core::mem::transmute(&bstrname), windows_core::from_raw_borrowed(&psdotarget), core::mem::transmute_copy(&ppitem)).into() } - unsafe extern "system" fn AddToSdoAsProperty(this: *mut core::ffi::c_void, psdotarget: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT - where - Identity: ITemplateSdo_Impl, - { + unsafe extern "system" fn AddToSdoAsProperty(this: *mut core::ffi::c_void, psdotarget: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITemplateSdo_Impl::AddToSdoAsProperty(this, windows_core::from_raw_borrowed(&psdotarget), core::mem::transmute_copy(&id)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/impl.rs index f8dd863897..9f2f6026bb 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/impl.rs @@ -1,4 +1,4 @@ -pub trait IDot11AdHocInterface_Impl: Sized { +pub trait IDot11AdHocInterface_Impl: Sized + windows_core::IUnknownImpl { fn GetDeviceSignature(&self, psignature: *mut windows_core::GUID) -> windows_core::Result<()>; fn GetFriendlyName(&self) -> windows_core::Result; fn IsDot11d(&self, pf11d: *mut u8) -> windows_core::Result<()>; @@ -11,21 +11,12 @@ pub trait IDot11AdHocInterface_Impl: Sized { } impl windows_core::RuntimeName for IDot11AdHocInterface {} impl IDot11AdHocInterface_Vtbl { - pub const fn new() -> IDot11AdHocInterface_Vtbl - where - Identity: IDot11AdHocInterface_Impl, - { - unsafe extern "system" fn GetDeviceSignature(this: *mut core::ffi::c_void, psignature: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDot11AdHocInterface_Impl, - { + pub const fn new() -> IDot11AdHocInterface_Vtbl { + unsafe extern "system" fn GetDeviceSignature(this: *mut core::ffi::c_void, psignature: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocInterface_Impl::GetDeviceSignature(this, core::mem::transmute_copy(&psignature)).into() } - unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDot11AdHocInterface_Impl, - { + unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocInterface_Impl::GetFriendlyName(this) { Ok(ok__) => { @@ -35,31 +26,19 @@ impl IDot11AdHocInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDot11d(this: *mut core::ffi::c_void, pf11d: *mut u8) -> windows_core::HRESULT - where - Identity: IDot11AdHocInterface_Impl, - { + unsafe extern "system" fn IsDot11d(this: *mut core::ffi::c_void, pf11d: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocInterface_Impl::IsDot11d(this, core::mem::transmute_copy(&pf11d)).into() } - unsafe extern "system" fn IsAdHocCapable(this: *mut core::ffi::c_void, pfadhoccapable: *mut u8) -> windows_core::HRESULT - where - Identity: IDot11AdHocInterface_Impl, - { + unsafe extern "system" fn IsAdHocCapable(this: *mut core::ffi::c_void, pfadhoccapable: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocInterface_Impl::IsAdHocCapable(this, core::mem::transmute_copy(&pfadhoccapable)).into() } - unsafe extern "system" fn IsRadioOn(this: *mut core::ffi::c_void, pfisradioon: *mut u8) -> windows_core::HRESULT - where - Identity: IDot11AdHocInterface_Impl, - { + unsafe extern "system" fn IsRadioOn(this: *mut core::ffi::c_void, pfisradioon: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocInterface_Impl::IsRadioOn(this, core::mem::transmute_copy(&pfisradioon)).into() } - unsafe extern "system" fn GetActiveNetwork(this: *mut core::ffi::c_void, ppnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocInterface_Impl, - { + unsafe extern "system" fn GetActiveNetwork(this: *mut core::ffi::c_void, ppnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocInterface_Impl::GetActiveNetwork(this) { Ok(ok__) => { @@ -69,10 +48,7 @@ impl IDot11AdHocInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIEnumSecuritySettings(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocInterface_Impl, - { + unsafe extern "system" fn GetIEnumSecuritySettings(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocInterface_Impl::GetIEnumSecuritySettings(this) { Ok(ok__) => { @@ -82,10 +58,7 @@ impl IDot11AdHocInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIEnumDot11AdHocNetworks(this: *mut core::ffi::c_void, pfilterguid: *const windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocInterface_Impl, - { + unsafe extern "system" fn GetIEnumDot11AdHocNetworks(this: *mut core::ffi::c_void, pfilterguid: *const windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocInterface_Impl::GetIEnumDot11AdHocNetworks(this, core::mem::transmute_copy(&pfilterguid)) { Ok(ok__) => { @@ -95,10 +68,7 @@ impl IDot11AdHocInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstate: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::HRESULT - where - Identity: IDot11AdHocInterface_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstate: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocInterface_Impl::GetStatus(this, core::mem::transmute_copy(&pstate)).into() } @@ -119,19 +89,13 @@ impl IDot11AdHocInterface_Vtbl { iid == &::IID } } -pub trait IDot11AdHocInterfaceNotificationSink_Impl: Sized { +pub trait IDot11AdHocInterfaceNotificationSink_Impl: Sized + windows_core::IUnknownImpl { fn OnConnectionStatusChange(&self, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDot11AdHocInterfaceNotificationSink {} impl IDot11AdHocInterfaceNotificationSink_Vtbl { - pub const fn new() -> IDot11AdHocInterfaceNotificationSink_Vtbl - where - Identity: IDot11AdHocInterfaceNotificationSink_Impl, - { - unsafe extern "system" fn OnConnectionStatusChange(this: *mut core::ffi::c_void, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::HRESULT - where - Identity: IDot11AdHocInterfaceNotificationSink_Impl, - { + pub const fn new() -> IDot11AdHocInterfaceNotificationSink_Vtbl { + unsafe extern "system" fn OnConnectionStatusChange(this: *mut core::ffi::c_void, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocInterfaceNotificationSink_Impl::OnConnectionStatusChange(this, core::mem::transmute_copy(&estatus)).into() } @@ -141,7 +105,7 @@ impl IDot11AdHocInterfaceNotificationSink_Vtbl { iid == &::IID } } -pub trait IDot11AdHocManager_Impl: Sized { +pub trait IDot11AdHocManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateNetwork(&self, name: &windows_core::PCWSTR, password: &windows_core::PCWSTR, geographicalid: i32, pinterface: Option<&IDot11AdHocInterface>, psecurity: Option<&IDot11AdHocSecuritySettings>, pcontextguid: *const windows_core::GUID) -> windows_core::Result; fn CommitCreatedNetwork(&self, piadhoc: Option<&IDot11AdHocNetwork>, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; fn GetIEnumDot11AdHocNetworks(&self, pcontextguid: *const windows_core::GUID) -> windows_core::Result; @@ -150,14 +114,8 @@ pub trait IDot11AdHocManager_Impl: Sized { } impl windows_core::RuntimeName for IDot11AdHocManager {} impl IDot11AdHocManager_Vtbl { - pub const fn new() -> IDot11AdHocManager_Vtbl - where - Identity: IDot11AdHocManager_Impl, - { - unsafe extern "system" fn CreateNetwork(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, password: windows_core::PCWSTR, geographicalid: i32, pinterface: *mut core::ffi::c_void, psecurity: *mut core::ffi::c_void, pcontextguid: *const windows_core::GUID, piadhoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocManager_Impl, - { + pub const fn new() -> IDot11AdHocManager_Vtbl { + unsafe extern "system" fn CreateNetwork(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, password: windows_core::PCWSTR, geographicalid: i32, pinterface: *mut core::ffi::c_void, psecurity: *mut core::ffi::c_void, pcontextguid: *const windows_core::GUID, piadhoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocManager_Impl::CreateNetwork(this, core::mem::transmute(&name), core::mem::transmute(&password), core::mem::transmute_copy(&geographicalid), windows_core::from_raw_borrowed(&pinterface), windows_core::from_raw_borrowed(&psecurity), core::mem::transmute_copy(&pcontextguid)) { Ok(ok__) => { @@ -167,17 +125,11 @@ impl IDot11AdHocManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommitCreatedNetwork(this: *mut core::ffi::c_void, piadhoc: *mut core::ffi::c_void, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT - where - Identity: IDot11AdHocManager_Impl, - { + unsafe extern "system" fn CommitCreatedNetwork(this: *mut core::ffi::c_void, piadhoc: *mut core::ffi::c_void, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocManager_Impl::CommitCreatedNetwork(this, windows_core::from_raw_borrowed(&piadhoc), core::mem::transmute_copy(&fsaveprofile), core::mem::transmute_copy(&fmakesavedprofileuserspecific)).into() } - unsafe extern "system" fn GetIEnumDot11AdHocNetworks(this: *mut core::ffi::c_void, pcontextguid: *const windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocManager_Impl, - { + unsafe extern "system" fn GetIEnumDot11AdHocNetworks(this: *mut core::ffi::c_void, pcontextguid: *const windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocManager_Impl::GetIEnumDot11AdHocNetworks(this, core::mem::transmute_copy(&pcontextguid)) { Ok(ok__) => { @@ -187,10 +139,7 @@ impl IDot11AdHocManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIEnumDot11AdHocInterfaces(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocManager_Impl, - { + unsafe extern "system" fn GetIEnumDot11AdHocInterfaces(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocManager_Impl::GetIEnumDot11AdHocInterfaces(this) { Ok(ok__) => { @@ -200,10 +149,7 @@ impl IDot11AdHocManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetwork(this: *mut core::ffi::c_void, networksignature: *const windows_core::GUID, pnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocManager_Impl, - { + unsafe extern "system" fn GetNetwork(this: *mut core::ffi::c_void, networksignature: *const windows_core::GUID, pnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocManager_Impl::GetNetwork(this, core::mem::transmute_copy(&networksignature)) { Ok(ok__) => { @@ -226,7 +172,7 @@ impl IDot11AdHocManager_Vtbl { iid == &::IID } } -pub trait IDot11AdHocManagerNotificationSink_Impl: Sized { +pub trait IDot11AdHocManagerNotificationSink_Impl: Sized + windows_core::IUnknownImpl { fn OnNetworkAdd(&self, piadhocnetwork: Option<&IDot11AdHocNetwork>) -> windows_core::Result<()>; fn OnNetworkRemove(&self, signature: *const windows_core::GUID) -> windows_core::Result<()>; fn OnInterfaceAdd(&self, piadhocinterface: Option<&IDot11AdHocInterface>) -> windows_core::Result<()>; @@ -234,35 +180,20 @@ pub trait IDot11AdHocManagerNotificationSink_Impl: Sized { } impl windows_core::RuntimeName for IDot11AdHocManagerNotificationSink {} impl IDot11AdHocManagerNotificationSink_Vtbl { - pub const fn new() -> IDot11AdHocManagerNotificationSink_Vtbl - where - Identity: IDot11AdHocManagerNotificationSink_Impl, - { - unsafe extern "system" fn OnNetworkAdd(this: *mut core::ffi::c_void, piadhocnetwork: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocManagerNotificationSink_Impl, - { + pub const fn new() -> IDot11AdHocManagerNotificationSink_Vtbl { + unsafe extern "system" fn OnNetworkAdd(this: *mut core::ffi::c_void, piadhocnetwork: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocManagerNotificationSink_Impl::OnNetworkAdd(this, windows_core::from_raw_borrowed(&piadhocnetwork)).into() } - unsafe extern "system" fn OnNetworkRemove(this: *mut core::ffi::c_void, signature: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDot11AdHocManagerNotificationSink_Impl, - { + unsafe extern "system" fn OnNetworkRemove(this: *mut core::ffi::c_void, signature: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocManagerNotificationSink_Impl::OnNetworkRemove(this, core::mem::transmute_copy(&signature)).into() } - unsafe extern "system" fn OnInterfaceAdd(this: *mut core::ffi::c_void, piadhocinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocManagerNotificationSink_Impl, - { + unsafe extern "system" fn OnInterfaceAdd(this: *mut core::ffi::c_void, piadhocinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocManagerNotificationSink_Impl::OnInterfaceAdd(this, windows_core::from_raw_borrowed(&piadhocinterface)).into() } - unsafe extern "system" fn OnInterfaceRemove(this: *mut core::ffi::c_void, signature: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDot11AdHocManagerNotificationSink_Impl, - { + unsafe extern "system" fn OnInterfaceRemove(this: *mut core::ffi::c_void, signature: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocManagerNotificationSink_Impl::OnInterfaceRemove(this, core::mem::transmute_copy(&signature)).into() } @@ -278,7 +209,7 @@ impl IDot11AdHocManagerNotificationSink_Vtbl { iid == &::IID } } -pub trait IDot11AdHocNetwork_Impl: Sized { +pub trait IDot11AdHocNetwork_Impl: Sized + windows_core::IUnknownImpl { fn GetStatus(&self, estatus: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::Result<()>; fn GetSSID(&self) -> windows_core::Result; fn HasProfile(&self, pf11d: *mut u8) -> windows_core::Result<()>; @@ -294,21 +225,12 @@ pub trait IDot11AdHocNetwork_Impl: Sized { } impl windows_core::RuntimeName for IDot11AdHocNetwork {} impl IDot11AdHocNetwork_Vtbl { - pub const fn new() -> IDot11AdHocNetwork_Vtbl - where - Identity: IDot11AdHocNetwork_Impl, - { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, estatus: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + pub const fn new() -> IDot11AdHocNetwork_Vtbl { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, estatus: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetwork_Impl::GetStatus(this, core::mem::transmute_copy(&estatus)).into() } - unsafe extern "system" fn GetSSID(this: *mut core::ffi::c_void, ppszwssid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn GetSSID(this: *mut core::ffi::c_void, ppszwssid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocNetwork_Impl::GetSSID(this) { Ok(ok__) => { @@ -318,17 +240,11 @@ impl IDot11AdHocNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasProfile(this: *mut core::ffi::c_void, pf11d: *mut u8) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn HasProfile(this: *mut core::ffi::c_void, pf11d: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetwork_Impl::HasProfile(this, core::mem::transmute_copy(&pf11d)).into() } - unsafe extern "system" fn GetProfileName(this: *mut core::ffi::c_void, ppszwprofilename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn GetProfileName(this: *mut core::ffi::c_void, ppszwprofilename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocNetwork_Impl::GetProfileName(this) { Ok(ok__) => { @@ -338,24 +254,15 @@ impl IDot11AdHocNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteProfile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn DeleteProfile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetwork_Impl::DeleteProfile(this).into() } - unsafe extern "system" fn GetSignalQuality(this: *mut core::ffi::c_void, pustrengthvalue: *mut u32, pustrengthmax: *mut u32) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn GetSignalQuality(this: *mut core::ffi::c_void, pustrengthvalue: *mut u32, pustrengthmax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetwork_Impl::GetSignalQuality(this, core::mem::transmute_copy(&pustrengthvalue), core::mem::transmute_copy(&pustrengthmax)).into() } - unsafe extern "system" fn GetSecuritySetting(this: *mut core::ffi::c_void, padhocsecuritysetting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn GetSecuritySetting(this: *mut core::ffi::c_void, padhocsecuritysetting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocNetwork_Impl::GetSecuritySetting(this) { Ok(ok__) => { @@ -365,24 +272,15 @@ impl IDot11AdHocNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContextGuid(this: *mut core::ffi::c_void, pcontextguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn GetContextGuid(this: *mut core::ffi::c_void, pcontextguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetwork_Impl::GetContextGuid(this, core::mem::transmute_copy(&pcontextguid)).into() } - unsafe extern "system" fn GetSignature(this: *mut core::ffi::c_void, psignature: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn GetSignature(this: *mut core::ffi::c_void, psignature: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetwork_Impl::GetSignature(this, core::mem::transmute_copy(&psignature)).into() } - unsafe extern "system" fn GetInterface(this: *mut core::ffi::c_void, padhocinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn GetInterface(this: *mut core::ffi::c_void, padhocinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDot11AdHocNetwork_Impl::GetInterface(this) { Ok(ok__) => { @@ -392,17 +290,11 @@ impl IDot11AdHocNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, passphrase: windows_core::PCWSTR, geographicalid: i32, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, passphrase: windows_core::PCWSTR, geographicalid: i32, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetwork_Impl::Connect(this, core::mem::transmute(&passphrase), core::mem::transmute_copy(&geographicalid), core::mem::transmute_copy(&fsaveprofile), core::mem::transmute_copy(&fmakesavedprofileuserspecific)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetwork_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetwork_Impl::Disconnect(this).into() } @@ -426,27 +318,18 @@ impl IDot11AdHocNetwork_Vtbl { iid == &::IID } } -pub trait IDot11AdHocNetworkNotificationSink_Impl: Sized { +pub trait IDot11AdHocNetworkNotificationSink_Impl: Sized + windows_core::IUnknownImpl { fn OnStatusChange(&self, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::Result<()>; fn OnConnectFail(&self, efailreason: DOT11_ADHOC_CONNECT_FAIL_REASON) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDot11AdHocNetworkNotificationSink {} impl IDot11AdHocNetworkNotificationSink_Vtbl { - pub const fn new() -> IDot11AdHocNetworkNotificationSink_Vtbl - where - Identity: IDot11AdHocNetworkNotificationSink_Impl, - { - unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetworkNotificationSink_Impl, - { + pub const fn new() -> IDot11AdHocNetworkNotificationSink_Vtbl { + unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetworkNotificationSink_Impl::OnStatusChange(this, core::mem::transmute_copy(&estatus)).into() } - unsafe extern "system" fn OnConnectFail(this: *mut core::ffi::c_void, efailreason: DOT11_ADHOC_CONNECT_FAIL_REASON) -> windows_core::HRESULT - where - Identity: IDot11AdHocNetworkNotificationSink_Impl, - { + unsafe extern "system" fn OnConnectFail(this: *mut core::ffi::c_void, efailreason: DOT11_ADHOC_CONNECT_FAIL_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocNetworkNotificationSink_Impl::OnConnectFail(this, core::mem::transmute_copy(&efailreason)).into() } @@ -460,27 +343,18 @@ impl IDot11AdHocNetworkNotificationSink_Vtbl { iid == &::IID } } -pub trait IDot11AdHocSecuritySettings_Impl: Sized { +pub trait IDot11AdHocSecuritySettings_Impl: Sized + windows_core::IUnknownImpl { fn GetDot11AuthAlgorithm(&self, pauth: *mut DOT11_ADHOC_AUTH_ALGORITHM) -> windows_core::Result<()>; fn GetDot11CipherAlgorithm(&self, pcipher: *mut DOT11_ADHOC_CIPHER_ALGORITHM) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDot11AdHocSecuritySettings {} impl IDot11AdHocSecuritySettings_Vtbl { - pub const fn new() -> IDot11AdHocSecuritySettings_Vtbl - where - Identity: IDot11AdHocSecuritySettings_Impl, - { - unsafe extern "system" fn GetDot11AuthAlgorithm(this: *mut core::ffi::c_void, pauth: *mut DOT11_ADHOC_AUTH_ALGORITHM) -> windows_core::HRESULT - where - Identity: IDot11AdHocSecuritySettings_Impl, - { + pub const fn new() -> IDot11AdHocSecuritySettings_Vtbl { + unsafe extern "system" fn GetDot11AuthAlgorithm(this: *mut core::ffi::c_void, pauth: *mut DOT11_ADHOC_AUTH_ALGORITHM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocSecuritySettings_Impl::GetDot11AuthAlgorithm(this, core::mem::transmute_copy(&pauth)).into() } - unsafe extern "system" fn GetDot11CipherAlgorithm(this: *mut core::ffi::c_void, pcipher: *mut DOT11_ADHOC_CIPHER_ALGORITHM) -> windows_core::HRESULT - where - Identity: IDot11AdHocSecuritySettings_Impl, - { + unsafe extern "system" fn GetDot11CipherAlgorithm(this: *mut core::ffi::c_void, pcipher: *mut DOT11_ADHOC_CIPHER_ALGORITHM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDot11AdHocSecuritySettings_Impl::GetDot11CipherAlgorithm(this, core::mem::transmute_copy(&pcipher)).into() } @@ -494,7 +368,7 @@ impl IDot11AdHocSecuritySettings_Vtbl { iid == &::IID } } -pub trait IEnumDot11AdHocInterfaces_Impl: Sized { +pub trait IEnumDot11AdHocInterfaces_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -502,35 +376,20 @@ pub trait IEnumDot11AdHocInterfaces_Impl: Sized { } impl windows_core::RuntimeName for IEnumDot11AdHocInterfaces {} impl IEnumDot11AdHocInterfaces_Vtbl { - pub const fn new() -> IEnumDot11AdHocInterfaces_Vtbl - where - Identity: IEnumDot11AdHocInterfaces_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocInterfaces_Impl, - { + pub const fn new() -> IEnumDot11AdHocInterfaces_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDot11AdHocInterfaces_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocInterfaces_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDot11AdHocInterfaces_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocInterfaces_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDot11AdHocInterfaces_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocInterfaces_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDot11AdHocInterfaces_Impl::Clone(this) { Ok(ok__) => { @@ -552,7 +411,7 @@ impl IEnumDot11AdHocInterfaces_Vtbl { iid == &::IID } } -pub trait IEnumDot11AdHocNetworks_Impl: Sized { +pub trait IEnumDot11AdHocNetworks_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -560,35 +419,20 @@ pub trait IEnumDot11AdHocNetworks_Impl: Sized { } impl windows_core::RuntimeName for IEnumDot11AdHocNetworks {} impl IEnumDot11AdHocNetworks_Vtbl { - pub const fn new() -> IEnumDot11AdHocNetworks_Vtbl - where - Identity: IEnumDot11AdHocNetworks_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocNetworks_Impl, - { + pub const fn new() -> IEnumDot11AdHocNetworks_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDot11AdHocNetworks_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocNetworks_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDot11AdHocNetworks_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocNetworks_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDot11AdHocNetworks_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocNetworks_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDot11AdHocNetworks_Impl::Clone(this) { Ok(ok__) => { @@ -610,7 +454,7 @@ impl IEnumDot11AdHocNetworks_Vtbl { iid == &::IID } } -pub trait IEnumDot11AdHocSecuritySettings_Impl: Sized { +pub trait IEnumDot11AdHocSecuritySettings_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -618,35 +462,20 @@ pub trait IEnumDot11AdHocSecuritySettings_Impl: Sized { } impl windows_core::RuntimeName for IEnumDot11AdHocSecuritySettings {} impl IEnumDot11AdHocSecuritySettings_Vtbl { - pub const fn new() -> IEnumDot11AdHocSecuritySettings_Vtbl - where - Identity: IEnumDot11AdHocSecuritySettings_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocSecuritySettings_Impl, - { + pub const fn new() -> IEnumDot11AdHocSecuritySettings_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDot11AdHocSecuritySettings_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocSecuritySettings_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDot11AdHocSecuritySettings_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocSecuritySettings_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDot11AdHocSecuritySettings_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDot11AdHocSecuritySettings_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDot11AdHocSecuritySettings_Impl::Clone(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/impl.rs index 4385a41e95..9c63c6d495 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/impl.rs @@ -1,24 +1,15 @@ -pub trait IWCNConnectNotify_Impl: Sized { +pub trait IWCNConnectNotify_Impl: Sized + windows_core::IUnknownImpl { fn ConnectSucceeded(&self) -> windows_core::Result<()>; fn ConnectFailed(&self, hrfailure: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWCNConnectNotify {} impl IWCNConnectNotify_Vtbl { - pub const fn new() -> IWCNConnectNotify_Vtbl - where - Identity: IWCNConnectNotify_Impl, - { - unsafe extern "system" fn ConnectSucceeded(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWCNConnectNotify_Impl, - { + pub const fn new() -> IWCNConnectNotify_Vtbl { + unsafe extern "system" fn ConnectSucceeded(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNConnectNotify_Impl::ConnectSucceeded(this).into() } - unsafe extern "system" fn ConnectFailed(this: *mut core::ffi::c_void, hrfailure: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWCNConnectNotify_Impl, - { + unsafe extern "system" fn ConnectFailed(this: *mut core::ffi::c_void, hrfailure: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNConnectNotify_Impl::ConnectFailed(this, core::mem::transmute_copy(&hrfailure)).into() } @@ -32,7 +23,7 @@ impl IWCNConnectNotify_Vtbl { iid == &::IID } } -pub trait IWCNDevice_Impl: Sized { +pub trait IWCNDevice_Impl: Sized + windows_core::IUnknownImpl { fn SetPassword(&self, r#type: WCN_PASSWORD_TYPE, dwpasswordlength: u32, pbpassword: *const u8) -> windows_core::Result<()>; fn Connect(&self, pnotify: Option<&IWCNConnectNotify>) -> windows_core::Result<()>; fn GetAttribute(&self, attributetype: WCN_ATTRIBUTE_TYPE, dwmaxbuffersize: u32, pbbuffer: *mut u8, pdwbufferused: *mut u32) -> windows_core::Result<()>; @@ -47,35 +38,20 @@ pub trait IWCNDevice_Impl: Sized { } impl windows_core::RuntimeName for IWCNDevice {} impl IWCNDevice_Vtbl { - pub const fn new() -> IWCNDevice_Vtbl - where - Identity: IWCNDevice_Impl, - { - unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, r#type: WCN_PASSWORD_TYPE, dwpasswordlength: u32, pbpassword: *const u8) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + pub const fn new() -> IWCNDevice_Vtbl { + unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, r#type: WCN_PASSWORD_TYPE, dwpasswordlength: u32, pbpassword: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNDevice_Impl::SetPassword(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&dwpasswordlength), core::mem::transmute_copy(&pbpassword)).into() } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pnotify: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNDevice_Impl::Connect(this, windows_core::from_raw_borrowed(&pnotify)).into() } - unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, attributetype: WCN_ATTRIBUTE_TYPE, dwmaxbuffersize: u32, pbbuffer: *mut u8, pdwbufferused: *mut u32) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, attributetype: WCN_ATTRIBUTE_TYPE, dwmaxbuffersize: u32, pbbuffer: *mut u8, pdwbufferused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNDevice_Impl::GetAttribute(this, core::mem::transmute_copy(&attributetype), core::mem::transmute_copy(&dwmaxbuffersize), core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&pdwbufferused)).into() } - unsafe extern "system" fn GetIntegerAttribute(this: *mut core::ffi::c_void, attributetype: WCN_ATTRIBUTE_TYPE, puinteger: *mut u32) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + unsafe extern "system" fn GetIntegerAttribute(this: *mut core::ffi::c_void, attributetype: WCN_ATTRIBUTE_TYPE, puinteger: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWCNDevice_Impl::GetIntegerAttribute(this, core::mem::transmute_copy(&attributetype)) { Ok(ok__) => { @@ -85,52 +61,31 @@ impl IWCNDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStringAttribute(this: *mut core::ffi::c_void, attributetype: WCN_ATTRIBUTE_TYPE, cchmaxstring: u32, wszstring: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + unsafe extern "system" fn GetStringAttribute(this: *mut core::ffi::c_void, attributetype: WCN_ATTRIBUTE_TYPE, cchmaxstring: u32, wszstring: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNDevice_Impl::GetStringAttribute(this, core::mem::transmute_copy(&attributetype), core::mem::transmute_copy(&cchmaxstring), core::mem::transmute_copy(&wszstring)).into() } - unsafe extern "system" fn GetNetworkProfile(this: *mut core::ffi::c_void, cchmaxstringlength: u32, wszprofile: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + unsafe extern "system" fn GetNetworkProfile(this: *mut core::ffi::c_void, cchmaxstringlength: u32, wszprofile: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNDevice_Impl::GetNetworkProfile(this, core::mem::transmute_copy(&cchmaxstringlength), core::mem::transmute_copy(&wszprofile)).into() } - unsafe extern "system" fn SetNetworkProfile(this: *mut core::ffi::c_void, pszprofilexml: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + unsafe extern "system" fn SetNetworkProfile(this: *mut core::ffi::c_void, pszprofilexml: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNDevice_Impl::SetNetworkProfile(this, core::mem::transmute(&pszprofilexml)).into() } - unsafe extern "system" fn GetVendorExtension(this: *mut core::ffi::c_void, pvendorextspec: *const WCN_VENDOR_EXTENSION_SPEC, dwmaxbuffersize: u32, pbbuffer: *mut u8, pdwbufferused: *mut u32) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + unsafe extern "system" fn GetVendorExtension(this: *mut core::ffi::c_void, pvendorextspec: *const WCN_VENDOR_EXTENSION_SPEC, dwmaxbuffersize: u32, pbbuffer: *mut u8, pdwbufferused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNDevice_Impl::GetVendorExtension(this, core::mem::transmute_copy(&pvendorextspec), core::mem::transmute_copy(&dwmaxbuffersize), core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&pdwbufferused)).into() } - unsafe extern "system" fn SetVendorExtension(this: *mut core::ffi::c_void, pvendorextspec: *const WCN_VENDOR_EXTENSION_SPEC, cbbuffer: u32, pbbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + unsafe extern "system" fn SetVendorExtension(this: *mut core::ffi::c_void, pvendorextspec: *const WCN_VENDOR_EXTENSION_SPEC, cbbuffer: u32, pbbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNDevice_Impl::SetVendorExtension(this, core::mem::transmute_copy(&pvendorextspec), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&pbbuffer)).into() } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNDevice_Impl::Unadvise(this).into() } - unsafe extern "system" fn SetNFCPasswordParams(this: *mut core::ffi::c_void, r#type: WCN_PASSWORD_TYPE, dwoobpasswordid: u32, dwpasswordlength: u32, pbpassword: *const u8, dwremotepublickeyhashlength: u32, pbremotepublickeyhash: *const u8, dwdhkeybloblength: u32, pbdhkeyblob: *const u8) -> windows_core::HRESULT - where - Identity: IWCNDevice_Impl, - { + unsafe extern "system" fn SetNFCPasswordParams(this: *mut core::ffi::c_void, r#type: WCN_PASSWORD_TYPE, dwoobpasswordid: u32, dwpasswordlength: u32, pbpassword: *const u8, dwremotepublickeyhashlength: u32, pbremotepublickeyhash: *const u8, dwdhkeybloblength: u32, pbdhkeyblob: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCNDevice_Impl::SetNFCPasswordParams(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&dwoobpasswordid), core::mem::transmute_copy(&dwpasswordlength), core::mem::transmute_copy(&pbpassword), core::mem::transmute_copy(&dwremotepublickeyhashlength), core::mem::transmute_copy(&pbremotepublickeyhash), core::mem::transmute_copy(&dwdhkeybloblength), core::mem::transmute_copy(&pbdhkeyblob)).into() } 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 ef3e734612..001e8a725e 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/impl.rs @@ -19,14 +19,8 @@ pub trait IDynamicPortMapping_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IDynamicPortMapping {} #[cfg(feature = "Win32_System_Com")] impl IDynamicPortMapping_Vtbl { - pub const fn new() -> IDynamicPortMapping_Vtbl - where - Identity: IDynamicPortMapping_Impl, - { - unsafe extern "system" fn ExternalIPAddress(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + pub const fn new() -> IDynamicPortMapping_Vtbl { + unsafe extern "system" fn ExternalIPAddress(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMapping_Impl::ExternalIPAddress(this) { Ok(ok__) => { @@ -36,10 +30,7 @@ impl IDynamicPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoteHost(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn RemoteHost(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMapping_Impl::RemoteHost(this) { Ok(ok__) => { @@ -49,10 +40,7 @@ impl IDynamicPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExternalPort(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn ExternalPort(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMapping_Impl::ExternalPort(this) { Ok(ok__) => { @@ -62,10 +50,7 @@ impl IDynamicPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMapping_Impl::Protocol(this) { Ok(ok__) => { @@ -75,10 +60,7 @@ impl IDynamicPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InternalPort(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn InternalPort(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMapping_Impl::InternalPort(this) { Ok(ok__) => { @@ -88,10 +70,7 @@ impl IDynamicPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InternalClient(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn InternalClient(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMapping_Impl::InternalClient(this) { Ok(ok__) => { @@ -101,10 +80,7 @@ impl IDynamicPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMapping_Impl::Enabled(this) { Ok(ok__) => { @@ -114,10 +90,7 @@ impl IDynamicPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMapping_Impl::Description(this) { Ok(ok__) => { @@ -127,10 +100,7 @@ impl IDynamicPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LeaseDuration(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn LeaseDuration(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMapping_Impl::LeaseDuration(this) { Ok(ok__) => { @@ -140,10 +110,7 @@ impl IDynamicPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RenewLease(this: *mut core::ffi::c_void, lleasedurationdesired: i32, pleasedurationreturned: *mut i32) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn RenewLease(this: *mut core::ffi::c_void, lleasedurationdesired: i32, pleasedurationreturned: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMapping_Impl::RenewLease(this, core::mem::transmute_copy(&lleasedurationdesired)) { Ok(ok__) => { @@ -153,31 +120,19 @@ impl IDynamicPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EditInternalClient(this: *mut core::ffi::c_void, bstrinternalclient: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn EditInternalClient(this: *mut core::ffi::c_void, bstrinternalclient: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicPortMapping_Impl::EditInternalClient(this, core::mem::transmute(&bstrinternalclient)).into() } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, vb: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, vb: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicPortMapping_Impl::Enable(this, core::mem::transmute_copy(&vb)).into() } - unsafe extern "system" fn EditDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn EditDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicPortMapping_Impl::EditDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn EditInternalPort(this: *mut core::ffi::c_void, linternalport: i32) -> windows_core::HRESULT - where - Identity: IDynamicPortMapping_Impl, - { + unsafe extern "system" fn EditInternalPort(this: *mut core::ffi::c_void, linternalport: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicPortMapping_Impl::EditInternalPort(this, core::mem::transmute_copy(&linternalport)).into() } @@ -215,14 +170,8 @@ pub trait IDynamicPortMappingCollection_Impl: Sized + super::super::System::Com: impl windows_core::RuntimeName for IDynamicPortMappingCollection {} #[cfg(feature = "Win32_System_Com")] impl IDynamicPortMappingCollection_Vtbl { - pub const fn new() -> IDynamicPortMappingCollection_Vtbl - where - Identity: IDynamicPortMappingCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicPortMappingCollection_Impl, - { + pub const fn new() -> IDynamicPortMappingCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMappingCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -232,10 +181,7 @@ impl IDynamicPortMappingCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, bstrremotehost: core::mem::MaybeUninit, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit, ppdpm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicPortMappingCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, bstrremotehost: core::mem::MaybeUninit, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit, ppdpm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMappingCollection_Impl::get_Item(this, core::mem::transmute(&bstrremotehost), core::mem::transmute_copy(&lexternalport), core::mem::transmute(&bstrprotocol)) { Ok(ok__) => { @@ -245,10 +191,7 @@ impl IDynamicPortMappingCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IDynamicPortMappingCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMappingCollection_Impl::Count(this) { Ok(ok__) => { @@ -258,17 +201,11 @@ impl IDynamicPortMappingCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, bstrremotehost: core::mem::MaybeUninit, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDynamicPortMappingCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, bstrremotehost: core::mem::MaybeUninit, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicPortMappingCollection_Impl::Remove(this, core::mem::transmute(&bstrremotehost), core::mem::transmute_copy(&lexternalport), core::mem::transmute(&bstrprotocol)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrremotehost: core::mem::MaybeUninit, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit, linternalport: i32, bstrinternalclient: core::mem::MaybeUninit, benabled: super::super::Foundation::VARIANT_BOOL, bstrdescription: core::mem::MaybeUninit, lleaseduration: i32, ppdpm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicPortMappingCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrremotehost: core::mem::MaybeUninit, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit, linternalport: i32, bstrinternalclient: core::mem::MaybeUninit, benabled: super::super::Foundation::VARIANT_BOOL, bstrdescription: core::mem::MaybeUninit, lleaseduration: i32, ppdpm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicPortMappingCollection_Impl::Add(this, 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)) { Ok(ok__) => { @@ -291,7 +228,7 @@ impl IDynamicPortMappingCollection_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IEnumNetConnection_Impl: Sized { +pub trait IEnumNetConnection_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -299,35 +236,20 @@ pub trait IEnumNetConnection_Impl: Sized { } impl windows_core::RuntimeName for IEnumNetConnection {} impl IEnumNetConnection_Vtbl { - pub const fn new() -> IEnumNetConnection_Vtbl - where - Identity: IEnumNetConnection_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNetConnection_Impl, - { + pub const fn new() -> IEnumNetConnection_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetConnection_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNetConnection_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetConnection_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetConnection_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetConnection_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetConnection_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumNetConnection_Impl::Clone(this) { Ok(ok__) => { @@ -349,7 +271,7 @@ impl IEnumNetConnection_Vtbl { iid == &::IID } } -pub trait IEnumNetSharingEveryConnection_Impl: Sized { +pub trait IEnumNetSharingEveryConnection_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgvar: *mut windows_core::VARIANT, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -357,35 +279,20 @@ pub trait IEnumNetSharingEveryConnection_Impl: Sized { } impl windows_core::RuntimeName for IEnumNetSharingEveryConnection {} impl IEnumNetSharingEveryConnection_Vtbl { - pub const fn new() -> IEnumNetSharingEveryConnection_Vtbl - where - Identity: IEnumNetSharingEveryConnection_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgvar: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNetSharingEveryConnection_Impl, - { + pub const fn new() -> IEnumNetSharingEveryConnection_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgvar: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingEveryConnection_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgvar), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNetSharingEveryConnection_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingEveryConnection_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetSharingEveryConnection_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingEveryConnection_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetSharingEveryConnection_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumNetSharingEveryConnection_Impl::Clone(this) { Ok(ok__) => { @@ -407,7 +314,7 @@ impl IEnumNetSharingEveryConnection_Vtbl { iid == &::IID } } -pub trait IEnumNetSharingPortMapping_Impl: Sized { +pub trait IEnumNetSharingPortMapping_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgvar: *mut windows_core::VARIANT, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -415,35 +322,20 @@ pub trait IEnumNetSharingPortMapping_Impl: Sized { } impl windows_core::RuntimeName for IEnumNetSharingPortMapping {} impl IEnumNetSharingPortMapping_Vtbl { - pub const fn new() -> IEnumNetSharingPortMapping_Vtbl - where - Identity: IEnumNetSharingPortMapping_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgvar: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPortMapping_Impl, - { + pub const fn new() -> IEnumNetSharingPortMapping_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgvar: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingPortMapping_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgvar), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPortMapping_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingPortMapping_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPortMapping_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingPortMapping_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPortMapping_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumNetSharingPortMapping_Impl::Clone(this) { Ok(ok__) => { @@ -465,7 +357,7 @@ impl IEnumNetSharingPortMapping_Vtbl { iid == &::IID } } -pub trait IEnumNetSharingPrivateConnection_Impl: Sized { +pub trait IEnumNetSharingPrivateConnection_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgvar: *mut windows_core::VARIANT, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -473,35 +365,20 @@ pub trait IEnumNetSharingPrivateConnection_Impl: Sized { } impl windows_core::RuntimeName for IEnumNetSharingPrivateConnection {} impl IEnumNetSharingPrivateConnection_Vtbl { - pub const fn new() -> IEnumNetSharingPrivateConnection_Vtbl - where - Identity: IEnumNetSharingPrivateConnection_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgvar: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPrivateConnection_Impl, - { + pub const fn new() -> IEnumNetSharingPrivateConnection_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgvar: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingPrivateConnection_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgvar), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPrivateConnection_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingPrivateConnection_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPrivateConnection_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingPrivateConnection_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPrivateConnection_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumNetSharingPrivateConnection_Impl::Clone(this) { Ok(ok__) => { @@ -523,7 +400,7 @@ impl IEnumNetSharingPrivateConnection_Vtbl { iid == &::IID } } -pub trait IEnumNetSharingPublicConnection_Impl: Sized { +pub trait IEnumNetSharingPublicConnection_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgvar: *mut windows_core::VARIANT, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -531,35 +408,20 @@ pub trait IEnumNetSharingPublicConnection_Impl: Sized { } impl windows_core::RuntimeName for IEnumNetSharingPublicConnection {} impl IEnumNetSharingPublicConnection_Vtbl { - pub const fn new() -> IEnumNetSharingPublicConnection_Vtbl - where - Identity: IEnumNetSharingPublicConnection_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgvar: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPublicConnection_Impl, - { + pub const fn new() -> IEnumNetSharingPublicConnection_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgvar: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingPublicConnection_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgvar), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPublicConnection_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingPublicConnection_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPublicConnection_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetSharingPublicConnection_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetSharingPublicConnection_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumNetSharingPublicConnection_Impl::Clone(this) { Ok(ok__) => { @@ -590,21 +452,12 @@ pub trait INATEventManager_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for INATEventManager {} #[cfg(feature = "Win32_System_Com")] impl INATEventManager_Vtbl { - pub const fn new() -> INATEventManager_Vtbl - where - Identity: INATEventManager_Impl, - { - unsafe extern "system" fn SetExternalIPAddressCallback(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INATEventManager_Impl, - { + pub const fn new() -> INATEventManager_Vtbl { + unsafe extern "system" fn SetExternalIPAddressCallback(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INATEventManager_Impl::SetExternalIPAddressCallback(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn SetNumberOfEntriesCallback(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INATEventManager_Impl, - { + unsafe extern "system" fn SetNumberOfEntriesCallback(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INATEventManager_Impl::SetNumberOfEntriesCallback(this, windows_core::from_raw_borrowed(&punk)).into() } @@ -618,19 +471,13 @@ impl INATEventManager_Vtbl { iid == &::IID || iid == &::IID } } -pub trait INATExternalIPAddressCallback_Impl: Sized { +pub trait INATExternalIPAddressCallback_Impl: Sized + windows_core::IUnknownImpl { fn NewExternalIPAddress(&self, bstrnewexternalipaddress: &windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INATExternalIPAddressCallback {} impl INATExternalIPAddressCallback_Vtbl { - pub const fn new() -> INATExternalIPAddressCallback_Vtbl - where - Identity: INATExternalIPAddressCallback_Impl, - { - unsafe extern "system" fn NewExternalIPAddress(this: *mut core::ffi::c_void, bstrnewexternalipaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INATExternalIPAddressCallback_Impl, - { + pub const fn new() -> INATExternalIPAddressCallback_Vtbl { + unsafe extern "system" fn NewExternalIPAddress(this: *mut core::ffi::c_void, bstrnewexternalipaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INATExternalIPAddressCallback_Impl::NewExternalIPAddress(this, core::mem::transmute(&bstrnewexternalipaddress)).into() } @@ -640,19 +487,13 @@ impl INATExternalIPAddressCallback_Vtbl { iid == &::IID } } -pub trait INATNumberOfEntriesCallback_Impl: Sized { +pub trait INATNumberOfEntriesCallback_Impl: Sized + windows_core::IUnknownImpl { fn NewNumberOfEntries(&self, lnewnumberofentries: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INATNumberOfEntriesCallback {} impl INATNumberOfEntriesCallback_Vtbl { - pub const fn new() -> INATNumberOfEntriesCallback_Vtbl - where - Identity: INATNumberOfEntriesCallback_Impl, - { - unsafe extern "system" fn NewNumberOfEntries(this: *mut core::ffi::c_void, lnewnumberofentries: i32) -> windows_core::HRESULT - where - Identity: INATNumberOfEntriesCallback_Impl, - { + pub const fn new() -> INATNumberOfEntriesCallback_Vtbl { + unsafe extern "system" fn NewNumberOfEntries(this: *mut core::ffi::c_void, lnewnumberofentries: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INATNumberOfEntriesCallback_Impl::NewNumberOfEntries(this, core::mem::transmute_copy(&lnewnumberofentries)).into() } @@ -662,7 +503,7 @@ impl INATNumberOfEntriesCallback_Vtbl { iid == &::IID } } -pub trait INetConnection_Impl: Sized { +pub trait INetConnection_Impl: Sized + windows_core::IUnknownImpl { fn Connect(&self) -> windows_core::Result<()>; fn Disconnect(&self) -> windows_core::Result<()>; fn Delete(&self) -> windows_core::Result<()>; @@ -673,35 +514,20 @@ pub trait INetConnection_Impl: Sized { } impl windows_core::RuntimeName for INetConnection {} impl INetConnection_Vtbl { - pub const fn new() -> INetConnection_Vtbl - where - Identity: INetConnection_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetConnection_Impl, - { + pub const fn new() -> INetConnection_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetConnection_Impl::Connect(this).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetConnection_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetConnection_Impl::Disconnect(this).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetConnection_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetConnection_Impl::Delete(this).into() } - unsafe extern "system" fn Duplicate(this: *mut core::ffi::c_void, pszwduplicatename: windows_core::PCWSTR, ppcon: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetConnection_Impl, - { + unsafe extern "system" fn Duplicate(this: *mut core::ffi::c_void, pszwduplicatename: windows_core::PCWSTR, ppcon: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetConnection_Impl::Duplicate(this, core::mem::transmute(&pszwduplicatename)) { Ok(ok__) => { @@ -711,10 +537,7 @@ impl INetConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, ppprops: *mut *mut NETCON_PROPERTIES) -> windows_core::HRESULT - where - Identity: INetConnection_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, ppprops: *mut *mut NETCON_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetConnection_Impl::GetProperties(this) { Ok(ok__) => { @@ -724,10 +547,7 @@ impl INetConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUiObjectClassId(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetConnection_Impl, - { + unsafe extern "system" fn GetUiObjectClassId(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetConnection_Impl::GetUiObjectClassId(this) { Ok(ok__) => { @@ -737,10 +557,7 @@ impl INetConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, pszwnewname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: INetConnection_Impl, - { + unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, pszwnewname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetConnection_Impl::Rename(this, core::mem::transmute(&pszwnewname)).into() } @@ -759,35 +576,23 @@ impl INetConnection_Vtbl { iid == &::IID } } -pub trait INetConnectionConnectUi_Impl: Sized { +pub trait INetConnectionConnectUi_Impl: Sized + windows_core::IUnknownImpl { fn SetConnection(&self, pcon: Option<&INetConnection>) -> windows_core::Result<()>; fn Connect(&self, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()>; fn Disconnect(&self, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetConnectionConnectUi {} impl INetConnectionConnectUi_Vtbl { - pub const fn new() -> INetConnectionConnectUi_Vtbl - where - Identity: INetConnectionConnectUi_Impl, - { - unsafe extern "system" fn SetConnection(this: *mut core::ffi::c_void, pcon: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetConnectionConnectUi_Impl, - { + pub const fn new() -> INetConnectionConnectUi_Vtbl { + unsafe extern "system" fn SetConnection(this: *mut core::ffi::c_void, pcon: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetConnectionConnectUi_Impl::SetConnection(this, windows_core::from_raw_borrowed(&pcon)).into() } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::HRESULT - where - Identity: INetConnectionConnectUi_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetConnectionConnectUi_Impl::Connect(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::HRESULT - where - Identity: INetConnectionConnectUi_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetConnectionConnectUi_Impl::Disconnect(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags)).into() } @@ -802,19 +607,13 @@ impl INetConnectionConnectUi_Vtbl { iid == &::IID } } -pub trait INetConnectionManager_Impl: Sized { +pub trait INetConnectionManager_Impl: Sized + windows_core::IUnknownImpl { fn EnumConnections(&self, flags: NETCONMGR_ENUM_FLAGS) -> windows_core::Result; } impl windows_core::RuntimeName for INetConnectionManager {} impl INetConnectionManager_Vtbl { - pub const fn new() -> INetConnectionManager_Vtbl - where - Identity: INetConnectionManager_Impl, - { - unsafe extern "system" fn EnumConnections(this: *mut core::ffi::c_void, flags: NETCONMGR_ENUM_FLAGS, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetConnectionManager_Impl, - { + pub const fn new() -> INetConnectionManager_Vtbl { + unsafe extern "system" fn EnumConnections(this: *mut core::ffi::c_void, flags: NETCONMGR_ENUM_FLAGS, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetConnectionManager_Impl::EnumConnections(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -843,14 +642,8 @@ pub trait INetConnectionProps_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for INetConnectionProps {} #[cfg(feature = "Win32_System_Com")] impl INetConnectionProps_Vtbl { - pub const fn new() -> INetConnectionProps_Vtbl - where - Identity: INetConnectionProps_Impl, - { - unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, pbstrguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetConnectionProps_Impl, - { + pub const fn new() -> INetConnectionProps_Vtbl { + unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, pbstrguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetConnectionProps_Impl::Guid(this) { Ok(ok__) => { @@ -860,10 +653,7 @@ impl INetConnectionProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetConnectionProps_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetConnectionProps_Impl::Name(this) { Ok(ok__) => { @@ -873,10 +663,7 @@ impl INetConnectionProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceName(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetConnectionProps_Impl, - { + unsafe extern "system" fn DeviceName(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetConnectionProps_Impl::DeviceName(this) { Ok(ok__) => { @@ -886,10 +673,7 @@ impl INetConnectionProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut NETCON_STATUS) -> windows_core::HRESULT - where - Identity: INetConnectionProps_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut NETCON_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetConnectionProps_Impl::Status(this) { Ok(ok__) => { @@ -899,10 +683,7 @@ impl INetConnectionProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, pmediatype: *mut NETCON_MEDIATYPE) -> windows_core::HRESULT - where - Identity: INetConnectionProps_Impl, - { + unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, pmediatype: *mut NETCON_MEDIATYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetConnectionProps_Impl::MediaType(this) { Ok(ok__) => { @@ -912,10 +693,7 @@ impl INetConnectionProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Characteristics(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: INetConnectionProps_Impl, - { + unsafe extern "system" fn Characteristics(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetConnectionProps_Impl::Characteristics(this) { Ok(ok__) => { @@ -958,14 +736,8 @@ pub trait INetFwAuthorizedApplication_Impl: Sized + super::super::System::Com::I impl windows_core::RuntimeName for INetFwAuthorizedApplication {} #[cfg(feature = "Win32_System_Com")] impl INetFwAuthorizedApplication_Vtbl { - pub const fn new() -> INetFwAuthorizedApplication_Vtbl - where - Identity: INetFwAuthorizedApplication_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + pub const fn new() -> INetFwAuthorizedApplication_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwAuthorizedApplication_Impl::Name(this) { Ok(ok__) => { @@ -975,17 +747,11 @@ impl INetFwAuthorizedApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwAuthorizedApplication_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn ProcessImageFileName(this: *mut core::ffi::c_void, imagefilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn ProcessImageFileName(this: *mut core::ffi::c_void, imagefilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwAuthorizedApplication_Impl::ProcessImageFileName(this) { Ok(ok__) => { @@ -995,17 +761,11 @@ impl INetFwAuthorizedApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProcessImageFileName(this: *mut core::ffi::c_void, imagefilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn SetProcessImageFileName(this: *mut core::ffi::c_void, imagefilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwAuthorizedApplication_Impl::SetProcessImageFileName(this, core::mem::transmute(&imagefilename)).into() } - unsafe extern "system" fn IpVersion(this: *mut core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn IpVersion(this: *mut core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwAuthorizedApplication_Impl::IpVersion(this) { Ok(ok__) => { @@ -1015,17 +775,11 @@ impl INetFwAuthorizedApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIpVersion(this: *mut core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn SetIpVersion(this: *mut core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwAuthorizedApplication_Impl::SetIpVersion(this, core::mem::transmute_copy(&ipversion)).into() } - unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwAuthorizedApplication_Impl::Scope(this) { Ok(ok__) => { @@ -1035,17 +789,11 @@ impl INetFwAuthorizedApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, scope: NET_FW_SCOPE) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, scope: NET_FW_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwAuthorizedApplication_Impl::SetScope(this, core::mem::transmute_copy(&scope)).into() } - unsafe extern "system" fn RemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn RemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwAuthorizedApplication_Impl::RemoteAddresses(this) { Ok(ok__) => { @@ -1055,17 +803,11 @@ impl INetFwAuthorizedApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn SetRemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwAuthorizedApplication_Impl::SetRemoteAddresses(this, core::mem::transmute(&remoteaddrs)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwAuthorizedApplication_Impl::Enabled(this) { Ok(ok__) => { @@ -1075,10 +817,7 @@ impl INetFwAuthorizedApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplication_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwAuthorizedApplication_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } @@ -1114,14 +853,8 @@ pub trait INetFwAuthorizedApplications_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for INetFwAuthorizedApplications {} #[cfg(feature = "Win32_System_Com")] impl INetFwAuthorizedApplications_Vtbl { - pub const fn new() -> INetFwAuthorizedApplications_Vtbl - where - Identity: INetFwAuthorizedApplications_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplications_Impl, - { + pub const fn new() -> INetFwAuthorizedApplications_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwAuthorizedApplications_Impl::Count(this) { Ok(ok__) => { @@ -1131,24 +864,15 @@ impl INetFwAuthorizedApplications_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, app: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplications_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, app: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwAuthorizedApplications_Impl::Add(this, windows_core::from_raw_borrowed(&app)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, imagefilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplications_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, imagefilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwAuthorizedApplications_Impl::Remove(this, core::mem::transmute(&imagefilename)).into() } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, imagefilename: core::mem::MaybeUninit, app: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplications_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, imagefilename: core::mem::MaybeUninit, app: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwAuthorizedApplications_Impl::Item(this, core::mem::transmute(&imagefilename)) { Ok(ok__) => { @@ -1158,10 +882,7 @@ impl INetFwAuthorizedApplications_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwAuthorizedApplications_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwAuthorizedApplications_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1211,14 +932,8 @@ pub trait INetFwIcmpSettings_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for INetFwIcmpSettings {} #[cfg(feature = "Win32_System_Com")] impl INetFwIcmpSettings_Vtbl { - pub const fn new() -> INetFwIcmpSettings_Vtbl - where - Identity: INetFwIcmpSettings_Impl, - { - unsafe extern "system" fn AllowOutboundDestinationUnreachable(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + pub const fn new() -> INetFwIcmpSettings_Vtbl { + unsafe extern "system" fn AllowOutboundDestinationUnreachable(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwIcmpSettings_Impl::AllowOutboundDestinationUnreachable(this) { Ok(ok__) => { @@ -1228,17 +943,11 @@ impl INetFwIcmpSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowOutboundDestinationUnreachable(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn SetAllowOutboundDestinationUnreachable(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwIcmpSettings_Impl::SetAllowOutboundDestinationUnreachable(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowRedirect(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn AllowRedirect(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwIcmpSettings_Impl::AllowRedirect(this) { Ok(ok__) => { @@ -1248,17 +957,11 @@ impl INetFwIcmpSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowRedirect(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn SetAllowRedirect(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwIcmpSettings_Impl::SetAllowRedirect(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowInboundEchoRequest(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn AllowInboundEchoRequest(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwIcmpSettings_Impl::AllowInboundEchoRequest(this) { Ok(ok__) => { @@ -1268,17 +971,11 @@ impl INetFwIcmpSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowInboundEchoRequest(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn SetAllowInboundEchoRequest(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwIcmpSettings_Impl::SetAllowInboundEchoRequest(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowOutboundTimeExceeded(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn AllowOutboundTimeExceeded(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwIcmpSettings_Impl::AllowOutboundTimeExceeded(this) { Ok(ok__) => { @@ -1288,17 +985,11 @@ impl INetFwIcmpSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowOutboundTimeExceeded(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn SetAllowOutboundTimeExceeded(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwIcmpSettings_Impl::SetAllowOutboundTimeExceeded(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowOutboundParameterProblem(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn AllowOutboundParameterProblem(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwIcmpSettings_Impl::AllowOutboundParameterProblem(this) { Ok(ok__) => { @@ -1308,17 +999,11 @@ impl INetFwIcmpSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowOutboundParameterProblem(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn SetAllowOutboundParameterProblem(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwIcmpSettings_Impl::SetAllowOutboundParameterProblem(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowOutboundSourceQuench(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn AllowOutboundSourceQuench(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwIcmpSettings_Impl::AllowOutboundSourceQuench(this) { Ok(ok__) => { @@ -1328,17 +1013,11 @@ impl INetFwIcmpSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowOutboundSourceQuench(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn SetAllowOutboundSourceQuench(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwIcmpSettings_Impl::SetAllowOutboundSourceQuench(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowInboundRouterRequest(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn AllowInboundRouterRequest(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwIcmpSettings_Impl::AllowInboundRouterRequest(this) { Ok(ok__) => { @@ -1348,17 +1027,11 @@ impl INetFwIcmpSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowInboundRouterRequest(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn SetAllowInboundRouterRequest(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwIcmpSettings_Impl::SetAllowInboundRouterRequest(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowInboundTimestampRequest(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn AllowInboundTimestampRequest(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwIcmpSettings_Impl::AllowInboundTimestampRequest(this) { Ok(ok__) => { @@ -1368,17 +1041,11 @@ impl INetFwIcmpSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowInboundTimestampRequest(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn SetAllowInboundTimestampRequest(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwIcmpSettings_Impl::SetAllowInboundTimestampRequest(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowInboundMaskRequest(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn AllowInboundMaskRequest(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwIcmpSettings_Impl::AllowInboundMaskRequest(this) { Ok(ok__) => { @@ -1388,17 +1055,11 @@ impl INetFwIcmpSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowInboundMaskRequest(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn SetAllowInboundMaskRequest(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwIcmpSettings_Impl::SetAllowInboundMaskRequest(this, core::mem::transmute_copy(&allow)).into() } - unsafe extern "system" fn AllowOutboundPacketTooBig(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn AllowOutboundPacketTooBig(this: *mut core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwIcmpSettings_Impl::AllowOutboundPacketTooBig(this) { Ok(ok__) => { @@ -1408,10 +1069,7 @@ impl INetFwIcmpSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowOutboundPacketTooBig(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwIcmpSettings_Impl, - { + unsafe extern "system" fn SetAllowOutboundPacketTooBig(this: *mut core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwIcmpSettings_Impl::SetAllowOutboundPacketTooBig(this, core::mem::transmute_copy(&allow)).into() } @@ -1455,14 +1113,8 @@ pub trait INetFwMgr_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for INetFwMgr {} #[cfg(feature = "Win32_System_Com")] impl INetFwMgr_Vtbl { - pub const fn new() -> INetFwMgr_Vtbl - where - Identity: INetFwMgr_Impl, - { - unsafe extern "system" fn LocalPolicy(this: *mut core::ffi::c_void, localpolicy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwMgr_Impl, - { + pub const fn new() -> INetFwMgr_Vtbl { + unsafe extern "system" fn LocalPolicy(this: *mut core::ffi::c_void, localpolicy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwMgr_Impl::LocalPolicy(this) { Ok(ok__) => { @@ -1472,10 +1124,7 @@ impl INetFwMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentProfileType(this: *mut core::ffi::c_void, profiletype: *mut NET_FW_PROFILE_TYPE) -> windows_core::HRESULT - where - Identity: INetFwMgr_Impl, - { + unsafe extern "system" fn CurrentProfileType(this: *mut core::ffi::c_void, profiletype: *mut NET_FW_PROFILE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwMgr_Impl::CurrentProfileType(this) { Ok(ok__) => { @@ -1485,24 +1134,15 @@ impl INetFwMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RestoreDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwMgr_Impl, - { + unsafe extern "system" fn RestoreDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwMgr_Impl::RestoreDefaults(this).into() } - unsafe extern "system" fn IsPortAllowed(this: *mut core::ffi::c_void, imagefilename: core::mem::MaybeUninit, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: core::mem::MaybeUninit, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut core::mem::MaybeUninit, restricted: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwMgr_Impl, - { + unsafe extern "system" fn IsPortAllowed(this: *mut core::ffi::c_void, imagefilename: core::mem::MaybeUninit, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: core::mem::MaybeUninit, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut core::mem::MaybeUninit, restricted: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwMgr_Impl::IsPortAllowed(this, 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(this: *mut core::ffi::c_void, ipversion: NET_FW_IP_VERSION, localaddress: core::mem::MaybeUninit, r#type: u8, allowed: *mut core::mem::MaybeUninit, restricted: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwMgr_Impl, - { + unsafe extern "system" fn IsIcmpTypeAllowed(this: *mut core::ffi::c_void, ipversion: NET_FW_IP_VERSION, localaddress: core::mem::MaybeUninit, r#type: u8, allowed: *mut core::mem::MaybeUninit, restricted: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwMgr_Impl::IsIcmpTypeAllowed(this, 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() } @@ -1541,14 +1181,8 @@ pub trait INetFwOpenPort_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for INetFwOpenPort {} #[cfg(feature = "Win32_System_Com")] impl INetFwOpenPort_Vtbl { - pub const fn new() -> INetFwOpenPort_Vtbl - where - Identity: INetFwOpenPort_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + pub const fn new() -> INetFwOpenPort_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPort_Impl::Name(this) { Ok(ok__) => { @@ -1558,17 +1192,11 @@ impl INetFwOpenPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwOpenPort_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn IpVersion(this: *mut core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn IpVersion(this: *mut core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPort_Impl::IpVersion(this) { Ok(ok__) => { @@ -1578,17 +1206,11 @@ impl INetFwOpenPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIpVersion(this: *mut core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn SetIpVersion(this: *mut core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwOpenPort_Impl::SetIpVersion(this, core::mem::transmute_copy(&ipversion)).into() } - unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, ipprotocol: *mut NET_FW_IP_PROTOCOL) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, ipprotocol: *mut NET_FW_IP_PROTOCOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPort_Impl::Protocol(this) { Ok(ok__) => { @@ -1598,17 +1220,11 @@ impl INetFwOpenPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProtocol(this: *mut core::ffi::c_void, ipprotocol: NET_FW_IP_PROTOCOL) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn SetProtocol(this: *mut core::ffi::c_void, ipprotocol: NET_FW_IP_PROTOCOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwOpenPort_Impl::SetProtocol(this, core::mem::transmute_copy(&ipprotocol)).into() } - unsafe extern "system" fn Port(this: *mut core::ffi::c_void, portnumber: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn Port(this: *mut core::ffi::c_void, portnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPort_Impl::Port(this) { Ok(ok__) => { @@ -1618,17 +1234,11 @@ impl INetFwOpenPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPort(this: *mut core::ffi::c_void, portnumber: i32) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn SetPort(this: *mut core::ffi::c_void, portnumber: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwOpenPort_Impl::SetPort(this, core::mem::transmute_copy(&portnumber)).into() } - unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPort_Impl::Scope(this) { Ok(ok__) => { @@ -1638,17 +1248,11 @@ impl INetFwOpenPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, scope: NET_FW_SCOPE) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, scope: NET_FW_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwOpenPort_Impl::SetScope(this, core::mem::transmute_copy(&scope)).into() } - unsafe extern "system" fn RemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn RemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPort_Impl::RemoteAddresses(this) { Ok(ok__) => { @@ -1658,17 +1262,11 @@ impl INetFwOpenPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn SetRemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwOpenPort_Impl::SetRemoteAddresses(this, core::mem::transmute(&remoteaddrs)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPort_Impl::Enabled(this) { Ok(ok__) => { @@ -1678,17 +1276,11 @@ impl INetFwOpenPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwOpenPort_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn BuiltIn(this: *mut core::ffi::c_void, builtin: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwOpenPort_Impl, - { + unsafe extern "system" fn BuiltIn(this: *mut core::ffi::c_void, builtin: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPort_Impl::BuiltIn(this) { Ok(ok__) => { @@ -1733,14 +1325,8 @@ pub trait INetFwOpenPorts_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for INetFwOpenPorts {} #[cfg(feature = "Win32_System_Com")] impl INetFwOpenPorts_Vtbl { - pub const fn new() -> INetFwOpenPorts_Vtbl - where - Identity: INetFwOpenPorts_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwOpenPorts_Impl, - { + pub const fn new() -> INetFwOpenPorts_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPorts_Impl::Count(this) { Ok(ok__) => { @@ -1750,24 +1336,15 @@ impl INetFwOpenPorts_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, port: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwOpenPorts_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, port: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwOpenPorts_Impl::Add(this, windows_core::from_raw_borrowed(&port)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, portnumber: i32, ipprotocol: NET_FW_IP_PROTOCOL) -> windows_core::HRESULT - where - Identity: INetFwOpenPorts_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, portnumber: i32, ipprotocol: NET_FW_IP_PROTOCOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwOpenPorts_Impl::Remove(this, core::mem::transmute_copy(&portnumber), core::mem::transmute_copy(&ipprotocol)).into() } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, portnumber: i32, ipprotocol: NET_FW_IP_PROTOCOL, openport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwOpenPorts_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, portnumber: i32, ipprotocol: NET_FW_IP_PROTOCOL, openport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPorts_Impl::Item(this, core::mem::transmute_copy(&portnumber), core::mem::transmute_copy(&ipprotocol)) { Ok(ok__) => { @@ -1777,10 +1354,7 @@ impl INetFwOpenPorts_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwOpenPorts_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwOpenPorts_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1812,14 +1386,8 @@ pub trait INetFwPolicy_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for INetFwPolicy {} #[cfg(feature = "Win32_System_Com")] impl INetFwPolicy_Vtbl { - pub const fn new() -> INetFwPolicy_Vtbl - where - Identity: INetFwPolicy_Impl, - { - unsafe extern "system" fn CurrentProfile(this: *mut core::ffi::c_void, profile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwPolicy_Impl, - { + pub const fn new() -> INetFwPolicy_Vtbl { + unsafe extern "system" fn CurrentProfile(this: *mut core::ffi::c_void, profile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy_Impl::CurrentProfile(this) { Ok(ok__) => { @@ -1829,10 +1397,7 @@ impl INetFwPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProfileByType(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE, profile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwPolicy_Impl, - { + unsafe extern "system" fn GetProfileByType(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE, profile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy_Impl::GetProfileByType(this, core::mem::transmute_copy(&profiletype)) { Ok(ok__) => { @@ -1881,14 +1446,8 @@ pub trait INetFwPolicy2_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for INetFwPolicy2 {} #[cfg(feature = "Win32_System_Com")] impl INetFwPolicy2_Vtbl { - pub const fn new() -> INetFwPolicy2_Vtbl - where - Identity: INetFwPolicy2_Impl, - { - unsafe extern "system" fn CurrentProfileTypes(this: *mut core::ffi::c_void, profiletypesbitmask: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + pub const fn new() -> INetFwPolicy2_Vtbl { + unsafe extern "system" fn CurrentProfileTypes(this: *mut core::ffi::c_void, profiletypesbitmask: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::CurrentProfileTypes(this) { Ok(ok__) => { @@ -1898,10 +1457,7 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_FirewallEnabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn get_FirewallEnabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::get_FirewallEnabled(this, core::mem::transmute_copy(&profiletype)) { Ok(ok__) => { @@ -1911,17 +1467,11 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_FirewallEnabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn put_FirewallEnabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwPolicy2_Impl::put_FirewallEnabled(this, core::mem::transmute_copy(&profiletype), core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn get_ExcludedInterfaces(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, interfaces: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn get_ExcludedInterfaces(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, interfaces: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::get_ExcludedInterfaces(this, core::mem::transmute_copy(&profiletype)) { Ok(ok__) => { @@ -1931,17 +1481,11 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_ExcludedInterfaces(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, interfaces: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn put_ExcludedInterfaces(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, interfaces: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwPolicy2_Impl::put_ExcludedInterfaces(this, core::mem::transmute_copy(&profiletype), core::mem::transmute(&interfaces)).into() } - unsafe extern "system" fn get_BlockAllInboundTraffic(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, block: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn get_BlockAllInboundTraffic(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, block: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::get_BlockAllInboundTraffic(this, core::mem::transmute_copy(&profiletype)) { Ok(ok__) => { @@ -1951,17 +1495,11 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_BlockAllInboundTraffic(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, block: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn put_BlockAllInboundTraffic(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, block: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwPolicy2_Impl::put_BlockAllInboundTraffic(this, core::mem::transmute_copy(&profiletype), core::mem::transmute_copy(&block)).into() } - unsafe extern "system" fn get_NotificationsDisabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, disabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn get_NotificationsDisabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, disabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::get_NotificationsDisabled(this, core::mem::transmute_copy(&profiletype)) { Ok(ok__) => { @@ -1971,17 +1509,11 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_NotificationsDisabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn put_NotificationsDisabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwPolicy2_Impl::put_NotificationsDisabled(this, core::mem::transmute_copy(&profiletype), core::mem::transmute_copy(&disabled)).into() } - unsafe extern "system" fn get_UnicastResponsesToMulticastBroadcastDisabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, disabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn get_UnicastResponsesToMulticastBroadcastDisabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, disabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::get_UnicastResponsesToMulticastBroadcastDisabled(this, core::mem::transmute_copy(&profiletype)) { Ok(ok__) => { @@ -1991,17 +1523,11 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_UnicastResponsesToMulticastBroadcastDisabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn put_UnicastResponsesToMulticastBroadcastDisabled(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwPolicy2_Impl::put_UnicastResponsesToMulticastBroadcastDisabled(this, core::mem::transmute_copy(&profiletype), core::mem::transmute_copy(&disabled)).into() } - unsafe extern "system" fn Rules(this: *mut core::ffi::c_void, rules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn Rules(this: *mut core::ffi::c_void, rules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::Rules(this) { Ok(ok__) => { @@ -2011,10 +1537,7 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceRestriction(this: *mut core::ffi::c_void, servicerestriction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn ServiceRestriction(this: *mut core::ffi::c_void, servicerestriction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::ServiceRestriction(this) { Ok(ok__) => { @@ -2024,17 +1547,11 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableRuleGroup(this: *mut core::ffi::c_void, profiletypesbitmask: i32, group: core::mem::MaybeUninit, enable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn EnableRuleGroup(this: *mut core::ffi::c_void, profiletypesbitmask: i32, group: core::mem::MaybeUninit, enable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwPolicy2_Impl::EnableRuleGroup(this, core::mem::transmute_copy(&profiletypesbitmask), core::mem::transmute(&group), core::mem::transmute_copy(&enable)).into() } - unsafe extern "system" fn IsRuleGroupEnabled(this: *mut core::ffi::c_void, profiletypesbitmask: i32, group: core::mem::MaybeUninit, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn IsRuleGroupEnabled(this: *mut core::ffi::c_void, profiletypesbitmask: i32, group: core::mem::MaybeUninit, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::IsRuleGroupEnabled(this, core::mem::transmute_copy(&profiletypesbitmask), core::mem::transmute(&group)) { Ok(ok__) => { @@ -2044,17 +1561,11 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RestoreLocalFirewallDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn RestoreLocalFirewallDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwPolicy2_Impl::RestoreLocalFirewallDefaults(this).into() } - unsafe extern "system" fn get_DefaultInboundAction(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: *mut NET_FW_ACTION) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn get_DefaultInboundAction(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: *mut NET_FW_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::get_DefaultInboundAction(this, core::mem::transmute_copy(&profiletype)) { Ok(ok__) => { @@ -2064,17 +1575,11 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_DefaultInboundAction(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn put_DefaultInboundAction(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwPolicy2_Impl::put_DefaultInboundAction(this, core::mem::transmute_copy(&profiletype), core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn get_DefaultOutboundAction(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: *mut NET_FW_ACTION) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn get_DefaultOutboundAction(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: *mut NET_FW_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::get_DefaultOutboundAction(this, core::mem::transmute_copy(&profiletype)) { Ok(ok__) => { @@ -2084,17 +1589,11 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_DefaultOutboundAction(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn put_DefaultOutboundAction(this: *mut core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwPolicy2_Impl::put_DefaultOutboundAction(this, core::mem::transmute_copy(&profiletype), core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn get_IsRuleGroupCurrentlyEnabled(this: *mut core::ffi::c_void, group: core::mem::MaybeUninit, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn get_IsRuleGroupCurrentlyEnabled(this: *mut core::ffi::c_void, group: core::mem::MaybeUninit, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::get_IsRuleGroupCurrentlyEnabled(this, core::mem::transmute(&group)) { Ok(ok__) => { @@ -2104,10 +1603,7 @@ impl INetFwPolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalPolicyModifyState(this: *mut core::ffi::c_void, modifystate: *mut NET_FW_MODIFY_STATE) -> windows_core::HRESULT - where - Identity: INetFwPolicy2_Impl, - { + unsafe extern "system" fn LocalPolicyModifyState(this: *mut core::ffi::c_void, modifystate: *mut NET_FW_MODIFY_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwPolicy2_Impl::LocalPolicyModifyState(this) { Ok(ok__) => { @@ -2159,14 +1655,8 @@ pub trait INetFwProduct_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for INetFwProduct {} #[cfg(feature = "Win32_System_Com")] impl INetFwProduct_Vtbl { - pub const fn new() -> INetFwProduct_Vtbl - where - Identity: INetFwProduct_Impl, - { - unsafe extern "system" fn RuleCategories(this: *mut core::ffi::c_void, rulecategories: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwProduct_Impl, - { + pub const fn new() -> INetFwProduct_Vtbl { + unsafe extern "system" fn RuleCategories(this: *mut core::ffi::c_void, rulecategories: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProduct_Impl::RuleCategories(this) { Ok(ok__) => { @@ -2176,17 +1666,11 @@ impl INetFwProduct_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRuleCategories(this: *mut core::ffi::c_void, rulecategories: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwProduct_Impl, - { + unsafe extern "system" fn SetRuleCategories(this: *mut core::ffi::c_void, rulecategories: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwProduct_Impl::SetRuleCategories(this, core::mem::transmute(&rulecategories)).into() } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwProduct_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProduct_Impl::DisplayName(this) { Ok(ok__) => { @@ -2196,17 +1680,11 @@ impl INetFwProduct_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, displayname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwProduct_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, displayname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwProduct_Impl::SetDisplayName(this, core::mem::transmute(&displayname)).into() } - unsafe extern "system" fn PathToSignedProductExe(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwProduct_Impl, - { + unsafe extern "system" fn PathToSignedProductExe(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProduct_Impl::PathToSignedProductExe(this) { Ok(ok__) => { @@ -2240,14 +1718,8 @@ pub trait INetFwProducts_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for INetFwProducts {} #[cfg(feature = "Win32_System_Com")] impl INetFwProducts_Vtbl { - pub const fn new() -> INetFwProducts_Vtbl - where - Identity: INetFwProducts_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwProducts_Impl, - { + pub const fn new() -> INetFwProducts_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProducts_Impl::Count(this) { Ok(ok__) => { @@ -2257,10 +1729,7 @@ impl INetFwProducts_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Register(this: *mut core::ffi::c_void, product: *mut core::ffi::c_void, registration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwProducts_Impl, - { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void, product: *mut core::ffi::c_void, registration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProducts_Impl::Register(this, windows_core::from_raw_borrowed(&product)) { Ok(ok__) => { @@ -2270,10 +1739,7 @@ impl INetFwProducts_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, product: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwProducts_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, product: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProducts_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2283,10 +1749,7 @@ impl INetFwProducts_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwProducts_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProducts_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2329,14 +1792,8 @@ pub trait INetFwProfile_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for INetFwProfile {} #[cfg(feature = "Win32_System_Com")] impl INetFwProfile_Vtbl { - pub const fn new() -> INetFwProfile_Vtbl - where - Identity: INetFwProfile_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut NET_FW_PROFILE_TYPE) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + pub const fn new() -> INetFwProfile_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut NET_FW_PROFILE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProfile_Impl::Type(this) { Ok(ok__) => { @@ -2346,10 +1803,7 @@ impl INetFwProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FirewallEnabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn FirewallEnabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProfile_Impl::FirewallEnabled(this) { Ok(ok__) => { @@ -2359,17 +1813,11 @@ impl INetFwProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFirewallEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn SetFirewallEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwProfile_Impl::SetFirewallEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn ExceptionsNotAllowed(this: *mut core::ffi::c_void, notallowed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn ExceptionsNotAllowed(this: *mut core::ffi::c_void, notallowed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProfile_Impl::ExceptionsNotAllowed(this) { Ok(ok__) => { @@ -2379,17 +1827,11 @@ impl INetFwProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExceptionsNotAllowed(this: *mut core::ffi::c_void, notallowed: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn SetExceptionsNotAllowed(this: *mut core::ffi::c_void, notallowed: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwProfile_Impl::SetExceptionsNotAllowed(this, core::mem::transmute_copy(¬allowed)).into() } - unsafe extern "system" fn NotificationsDisabled(this: *mut core::ffi::c_void, disabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn NotificationsDisabled(this: *mut core::ffi::c_void, disabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProfile_Impl::NotificationsDisabled(this) { Ok(ok__) => { @@ -2399,17 +1841,11 @@ impl INetFwProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotificationsDisabled(this: *mut core::ffi::c_void, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn SetNotificationsDisabled(this: *mut core::ffi::c_void, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwProfile_Impl::SetNotificationsDisabled(this, core::mem::transmute_copy(&disabled)).into() } - unsafe extern "system" fn UnicastResponsesToMulticastBroadcastDisabled(this: *mut core::ffi::c_void, disabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn UnicastResponsesToMulticastBroadcastDisabled(this: *mut core::ffi::c_void, disabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProfile_Impl::UnicastResponsesToMulticastBroadcastDisabled(this) { Ok(ok__) => { @@ -2419,17 +1855,11 @@ impl INetFwProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUnicastResponsesToMulticastBroadcastDisabled(this: *mut core::ffi::c_void, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn SetUnicastResponsesToMulticastBroadcastDisabled(this: *mut core::ffi::c_void, disabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwProfile_Impl::SetUnicastResponsesToMulticastBroadcastDisabled(this, core::mem::transmute_copy(&disabled)).into() } - unsafe extern "system" fn RemoteAdminSettings(this: *mut core::ffi::c_void, remoteadminsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn RemoteAdminSettings(this: *mut core::ffi::c_void, remoteadminsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProfile_Impl::RemoteAdminSettings(this) { Ok(ok__) => { @@ -2439,10 +1869,7 @@ impl INetFwProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IcmpSettings(this: *mut core::ffi::c_void, icmpsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn IcmpSettings(this: *mut core::ffi::c_void, icmpsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProfile_Impl::IcmpSettings(this) { Ok(ok__) => { @@ -2452,10 +1879,7 @@ impl INetFwProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GloballyOpenPorts(this: *mut core::ffi::c_void, openports: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn GloballyOpenPorts(this: *mut core::ffi::c_void, openports: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProfile_Impl::GloballyOpenPorts(this) { Ok(ok__) => { @@ -2465,10 +1889,7 @@ impl INetFwProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Services(this: *mut core::ffi::c_void, services: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn Services(this: *mut core::ffi::c_void, services: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProfile_Impl::Services(this) { Ok(ok__) => { @@ -2478,10 +1899,7 @@ impl INetFwProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AuthorizedApplications(this: *mut core::ffi::c_void, apps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwProfile_Impl, - { + unsafe extern "system" fn AuthorizedApplications(this: *mut core::ffi::c_void, apps: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwProfile_Impl::AuthorizedApplications(this) { Ok(ok__) => { @@ -2528,14 +1946,8 @@ pub trait INetFwRemoteAdminSettings_Impl: Sized + super::super::System::Com::IDi impl windows_core::RuntimeName for INetFwRemoteAdminSettings {} #[cfg(feature = "Win32_System_Com")] impl INetFwRemoteAdminSettings_Vtbl { - pub const fn new() -> INetFwRemoteAdminSettings_Vtbl - where - Identity: INetFwRemoteAdminSettings_Impl, - { - unsafe extern "system" fn IpVersion(this: *mut core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> windows_core::HRESULT - where - Identity: INetFwRemoteAdminSettings_Impl, - { + pub const fn new() -> INetFwRemoteAdminSettings_Vtbl { + unsafe extern "system" fn IpVersion(this: *mut core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRemoteAdminSettings_Impl::IpVersion(this) { Ok(ok__) => { @@ -2545,17 +1957,11 @@ impl INetFwRemoteAdminSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIpVersion(this: *mut core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> windows_core::HRESULT - where - Identity: INetFwRemoteAdminSettings_Impl, - { + unsafe extern "system" fn SetIpVersion(this: *mut core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRemoteAdminSettings_Impl::SetIpVersion(this, core::mem::transmute_copy(&ipversion)).into() } - unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> windows_core::HRESULT - where - Identity: INetFwRemoteAdminSettings_Impl, - { + unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRemoteAdminSettings_Impl::Scope(this) { Ok(ok__) => { @@ -2565,17 +1971,11 @@ impl INetFwRemoteAdminSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, scope: NET_FW_SCOPE) -> windows_core::HRESULT - where - Identity: INetFwRemoteAdminSettings_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, scope: NET_FW_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRemoteAdminSettings_Impl::SetScope(this, core::mem::transmute_copy(&scope)).into() } - unsafe extern "system" fn RemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRemoteAdminSettings_Impl, - { + unsafe extern "system" fn RemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRemoteAdminSettings_Impl::RemoteAddresses(this) { Ok(ok__) => { @@ -2585,17 +1985,11 @@ impl INetFwRemoteAdminSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRemoteAdminSettings_Impl, - { + unsafe extern "system" fn SetRemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRemoteAdminSettings_Impl::SetRemoteAddresses(this, core::mem::transmute(&remoteaddrs)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwRemoteAdminSettings_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRemoteAdminSettings_Impl::Enabled(this) { Ok(ok__) => { @@ -2605,10 +1999,7 @@ impl INetFwRemoteAdminSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwRemoteAdminSettings_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRemoteAdminSettings_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } @@ -2671,14 +2062,8 @@ pub trait INetFwRule_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for INetFwRule {} #[cfg(feature = "Win32_System_Com")] impl INetFwRule_Vtbl { - pub const fn new() -> INetFwRule_Vtbl - where - Identity: INetFwRule_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + pub const fn new() -> INetFwRule_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::Name(this) { Ok(ok__) => { @@ -2688,17 +2073,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, desc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, desc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::Description(this) { Ok(ok__) => { @@ -2708,17 +2087,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, desc: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, desc: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetDescription(this, core::mem::transmute(&desc)).into() } - unsafe extern "system" fn ApplicationName(this: *mut core::ffi::c_void, imagefilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn ApplicationName(this: *mut core::ffi::c_void, imagefilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::ApplicationName(this) { Ok(ok__) => { @@ -2728,17 +2101,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationName(this: *mut core::ffi::c_void, imagefilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetApplicationName(this: *mut core::ffi::c_void, imagefilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetApplicationName(this, core::mem::transmute(&imagefilename)).into() } - unsafe extern "system" fn ServiceName(this: *mut core::ffi::c_void, servicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn ServiceName(this: *mut core::ffi::c_void, servicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::ServiceName(this) { Ok(ok__) => { @@ -2748,17 +2115,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceName(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetServiceName(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetServiceName(this, core::mem::transmute(&servicename)).into() } - unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, protocol: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, protocol: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::Protocol(this) { Ok(ok__) => { @@ -2768,17 +2129,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProtocol(this: *mut core::ffi::c_void, protocol: i32) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetProtocol(this: *mut core::ffi::c_void, protocol: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetProtocol(this, core::mem::transmute_copy(&protocol)).into() } - unsafe extern "system" fn LocalPorts(this: *mut core::ffi::c_void, portnumbers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn LocalPorts(this: *mut core::ffi::c_void, portnumbers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::LocalPorts(this) { Ok(ok__) => { @@ -2788,17 +2143,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalPorts(this: *mut core::ffi::c_void, portnumbers: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetLocalPorts(this: *mut core::ffi::c_void, portnumbers: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetLocalPorts(this, core::mem::transmute(&portnumbers)).into() } - unsafe extern "system" fn RemotePorts(this: *mut core::ffi::c_void, portnumbers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn RemotePorts(this: *mut core::ffi::c_void, portnumbers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::RemotePorts(this) { Ok(ok__) => { @@ -2808,17 +2157,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemotePorts(this: *mut core::ffi::c_void, portnumbers: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetRemotePorts(this: *mut core::ffi::c_void, portnumbers: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetRemotePorts(this, core::mem::transmute(&portnumbers)).into() } - unsafe extern "system" fn LocalAddresses(this: *mut core::ffi::c_void, localaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn LocalAddresses(this: *mut core::ffi::c_void, localaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::LocalAddresses(this) { Ok(ok__) => { @@ -2828,17 +2171,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalAddresses(this: *mut core::ffi::c_void, localaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetLocalAddresses(this: *mut core::ffi::c_void, localaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetLocalAddresses(this, core::mem::transmute(&localaddrs)).into() } - unsafe extern "system" fn RemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn RemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::RemoteAddresses(this) { Ok(ok__) => { @@ -2848,17 +2185,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetRemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetRemoteAddresses(this, core::mem::transmute(&remoteaddrs)).into() } - unsafe extern "system" fn IcmpTypesAndCodes(this: *mut core::ffi::c_void, icmptypesandcodes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn IcmpTypesAndCodes(this: *mut core::ffi::c_void, icmptypesandcodes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::IcmpTypesAndCodes(this) { Ok(ok__) => { @@ -2868,17 +2199,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIcmpTypesAndCodes(this: *mut core::ffi::c_void, icmptypesandcodes: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetIcmpTypesAndCodes(this: *mut core::ffi::c_void, icmptypesandcodes: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetIcmpTypesAndCodes(this, core::mem::transmute(&icmptypesandcodes)).into() } - unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, dir: *mut NET_FW_RULE_DIRECTION) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, dir: *mut NET_FW_RULE_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::Direction(this) { Ok(ok__) => { @@ -2888,17 +2213,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDirection(this: *mut core::ffi::c_void, dir: NET_FW_RULE_DIRECTION) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetDirection(this: *mut core::ffi::c_void, dir: NET_FW_RULE_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetDirection(this, core::mem::transmute_copy(&dir)).into() } - unsafe extern "system" fn Interfaces(this: *mut core::ffi::c_void, interfaces: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn Interfaces(this: *mut core::ffi::c_void, interfaces: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::Interfaces(this) { Ok(ok__) => { @@ -2908,17 +2227,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterfaces(this: *mut core::ffi::c_void, interfaces: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetInterfaces(this: *mut core::ffi::c_void, interfaces: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetInterfaces(this, core::mem::transmute(&interfaces)).into() } - unsafe extern "system" fn InterfaceTypes(this: *mut core::ffi::c_void, interfacetypes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn InterfaceTypes(this: *mut core::ffi::c_void, interfacetypes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::InterfaceTypes(this) { Ok(ok__) => { @@ -2928,17 +2241,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterfaceTypes(this: *mut core::ffi::c_void, interfacetypes: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetInterfaceTypes(this: *mut core::ffi::c_void, interfacetypes: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetInterfaceTypes(this, core::mem::transmute(&interfacetypes)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::Enabled(this) { Ok(ok__) => { @@ -2948,17 +2255,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn Grouping(this: *mut core::ffi::c_void, context: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn Grouping(this: *mut core::ffi::c_void, context: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::Grouping(this) { Ok(ok__) => { @@ -2968,17 +2269,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGrouping(this: *mut core::ffi::c_void, context: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetGrouping(this: *mut core::ffi::c_void, context: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetGrouping(this, core::mem::transmute(&context)).into() } - unsafe extern "system" fn Profiles(this: *mut core::ffi::c_void, profiletypesbitmask: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn Profiles(this: *mut core::ffi::c_void, profiletypesbitmask: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::Profiles(this) { Ok(ok__) => { @@ -2988,17 +2283,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProfiles(this: *mut core::ffi::c_void, profiletypesbitmask: i32) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetProfiles(this: *mut core::ffi::c_void, profiletypesbitmask: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetProfiles(this, core::mem::transmute_copy(&profiletypesbitmask)).into() } - unsafe extern "system" fn EdgeTraversal(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn EdgeTraversal(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::EdgeTraversal(this) { Ok(ok__) => { @@ -3008,17 +2297,11 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEdgeTraversal(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetEdgeTraversal(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetEdgeTraversal(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn Action(this: *mut core::ffi::c_void, action: *mut NET_FW_ACTION) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn Action(this: *mut core::ffi::c_void, action: *mut NET_FW_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule_Impl::Action(this) { Ok(ok__) => { @@ -3028,10 +2311,7 @@ impl INetFwRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAction(this: *mut core::ffi::c_void, action: NET_FW_ACTION) -> windows_core::HRESULT - where - Identity: INetFwRule_Impl, - { + unsafe extern "system" fn SetAction(this: *mut core::ffi::c_void, action: NET_FW_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule_Impl::SetAction(this, core::mem::transmute_copy(&action)).into() } @@ -3088,14 +2368,8 @@ pub trait INetFwRule2_Impl: Sized + INetFwRule_Impl { impl windows_core::RuntimeName for INetFwRule2 {} #[cfg(feature = "Win32_System_Com")] impl INetFwRule2_Vtbl { - pub const fn new() -> INetFwRule2_Vtbl - where - Identity: INetFwRule2_Impl, - { - unsafe extern "system" fn EdgeTraversalOptions(this: *mut core::ffi::c_void, loptions: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwRule2_Impl, - { + pub const fn new() -> INetFwRule2_Vtbl { + unsafe extern "system" fn EdgeTraversalOptions(this: *mut core::ffi::c_void, loptions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule2_Impl::EdgeTraversalOptions(this) { Ok(ok__) => { @@ -3105,10 +2379,7 @@ impl INetFwRule2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEdgeTraversalOptions(this: *mut core::ffi::c_void, loptions: i32) -> windows_core::HRESULT - where - Identity: INetFwRule2_Impl, - { + unsafe extern "system" fn SetEdgeTraversalOptions(this: *mut core::ffi::c_void, loptions: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule2_Impl::SetEdgeTraversalOptions(this, core::mem::transmute_copy(&loptions)).into() } @@ -3141,14 +2412,8 @@ pub trait INetFwRule3_Impl: Sized + INetFwRule2_Impl { impl windows_core::RuntimeName for INetFwRule3 {} #[cfg(feature = "Win32_System_Com")] impl INetFwRule3_Vtbl { - pub const fn new() -> INetFwRule3_Vtbl - where - Identity: INetFwRule3_Impl, - { - unsafe extern "system" fn LocalAppPackageId(this: *mut core::ffi::c_void, wszpackageid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + pub const fn new() -> INetFwRule3_Vtbl { + unsafe extern "system" fn LocalAppPackageId(this: *mut core::ffi::c_void, wszpackageid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule3_Impl::LocalAppPackageId(this) { Ok(ok__) => { @@ -3158,17 +2423,11 @@ impl INetFwRule3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalAppPackageId(this: *mut core::ffi::c_void, wszpackageid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn SetLocalAppPackageId(this: *mut core::ffi::c_void, wszpackageid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule3_Impl::SetLocalAppPackageId(this, core::mem::transmute(&wszpackageid)).into() } - unsafe extern "system" fn LocalUserOwner(this: *mut core::ffi::c_void, wszuserowner: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn LocalUserOwner(this: *mut core::ffi::c_void, wszuserowner: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule3_Impl::LocalUserOwner(this) { Ok(ok__) => { @@ -3178,17 +2437,11 @@ impl INetFwRule3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalUserOwner(this: *mut core::ffi::c_void, wszuserowner: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn SetLocalUserOwner(this: *mut core::ffi::c_void, wszuserowner: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule3_Impl::SetLocalUserOwner(this, core::mem::transmute(&wszuserowner)).into() } - unsafe extern "system" fn LocalUserAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn LocalUserAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule3_Impl::LocalUserAuthorizedList(this) { Ok(ok__) => { @@ -3198,17 +2451,11 @@ impl INetFwRule3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalUserAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn SetLocalUserAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule3_Impl::SetLocalUserAuthorizedList(this, core::mem::transmute(&wszuserauthlist)).into() } - unsafe extern "system" fn RemoteUserAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn RemoteUserAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule3_Impl::RemoteUserAuthorizedList(this) { Ok(ok__) => { @@ -3218,17 +2465,11 @@ impl INetFwRule3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteUserAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn SetRemoteUserAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule3_Impl::SetRemoteUserAuthorizedList(this, core::mem::transmute(&wszuserauthlist)).into() } - unsafe extern "system" fn RemoteMachineAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn RemoteMachineAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule3_Impl::RemoteMachineAuthorizedList(this) { Ok(ok__) => { @@ -3238,17 +2479,11 @@ impl INetFwRule3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteMachineAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn SetRemoteMachineAuthorizedList(this: *mut core::ffi::c_void, wszuserauthlist: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule3_Impl::SetRemoteMachineAuthorizedList(this, core::mem::transmute(&wszuserauthlist)).into() } - unsafe extern "system" fn SecureFlags(this: *mut core::ffi::c_void, loptions: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn SecureFlags(this: *mut core::ffi::c_void, loptions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRule3_Impl::SecureFlags(this) { Ok(ok__) => { @@ -3258,10 +2493,7 @@ impl INetFwRule3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecureFlags(this: *mut core::ffi::c_void, loptions: i32) -> windows_core::HRESULT - where - Identity: INetFwRule3_Impl, - { + unsafe extern "system" fn SetSecureFlags(this: *mut core::ffi::c_void, loptions: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRule3_Impl::SetSecureFlags(this, core::mem::transmute_copy(&loptions)).into() } @@ -3297,14 +2529,8 @@ pub trait INetFwRules_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for INetFwRules {} #[cfg(feature = "Win32_System_Com")] impl INetFwRules_Vtbl { - pub const fn new() -> INetFwRules_Vtbl - where - Identity: INetFwRules_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwRules_Impl, - { + pub const fn new() -> INetFwRules_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRules_Impl::Count(this) { Ok(ok__) => { @@ -3314,24 +2540,15 @@ impl INetFwRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, rule: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwRules_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, rule: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRules_Impl::Add(this, windows_core::from_raw_borrowed(&rule)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwRules_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwRules_Impl::Remove(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwRules_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRules_Impl::Item(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -3341,10 +2558,7 @@ impl INetFwRules_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwRules_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwRules_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3386,14 +2600,8 @@ pub trait INetFwService_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for INetFwService {} #[cfg(feature = "Win32_System_Com")] impl INetFwService_Vtbl { - pub const fn new() -> INetFwService_Vtbl - where - Identity: INetFwService_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + pub const fn new() -> INetFwService_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwService_Impl::Name(this) { Ok(ok__) => { @@ -3403,10 +2611,7 @@ impl INetFwService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut NET_FW_SERVICE_TYPE) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut NET_FW_SERVICE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwService_Impl::Type(this) { Ok(ok__) => { @@ -3416,10 +2621,7 @@ impl INetFwService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Customized(this: *mut core::ffi::c_void, customized: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn Customized(this: *mut core::ffi::c_void, customized: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwService_Impl::Customized(this) { Ok(ok__) => { @@ -3429,10 +2631,7 @@ impl INetFwService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IpVersion(this: *mut core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn IpVersion(this: *mut core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwService_Impl::IpVersion(this) { Ok(ok__) => { @@ -3442,17 +2641,11 @@ impl INetFwService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIpVersion(this: *mut core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn SetIpVersion(this: *mut core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwService_Impl::SetIpVersion(this, core::mem::transmute_copy(&ipversion)).into() } - unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwService_Impl::Scope(this) { Ok(ok__) => { @@ -3462,17 +2655,11 @@ impl INetFwService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, scope: NET_FW_SCOPE) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, scope: NET_FW_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwService_Impl::SetScope(this, core::mem::transmute_copy(&scope)).into() } - unsafe extern "system" fn RemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn RemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwService_Impl::RemoteAddresses(this) { Ok(ok__) => { @@ -3482,17 +2669,11 @@ impl INetFwService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn SetRemoteAddresses(this: *mut core::ffi::c_void, remoteaddrs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwService_Impl::SetRemoteAddresses(this, core::mem::transmute(&remoteaddrs)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwService_Impl::Enabled(this) { Ok(ok__) => { @@ -3502,17 +2683,11 @@ impl INetFwService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwService_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn GloballyOpenPorts(this: *mut core::ffi::c_void, openports: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwService_Impl, - { + unsafe extern "system" fn GloballyOpenPorts(this: *mut core::ffi::c_void, openports: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwService_Impl::GloballyOpenPorts(this) { Ok(ok__) => { @@ -3552,21 +2727,12 @@ pub trait INetFwServiceRestriction_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for INetFwServiceRestriction {} #[cfg(feature = "Win32_System_Com")] impl INetFwServiceRestriction_Vtbl { - pub const fn new() -> INetFwServiceRestriction_Vtbl - where - Identity: INetFwServiceRestriction_Impl, - { - unsafe extern "system" fn RestrictService(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, appname: core::mem::MaybeUninit, restrictservice: super::super::Foundation::VARIANT_BOOL, servicesidrestricted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwServiceRestriction_Impl, - { + pub const fn new() -> INetFwServiceRestriction_Vtbl { + unsafe extern "system" fn RestrictService(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, appname: core::mem::MaybeUninit, restrictservice: super::super::Foundation::VARIANT_BOOL, servicesidrestricted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetFwServiceRestriction_Impl::RestrictService(this, core::mem::transmute(&servicename), core::mem::transmute(&appname), core::mem::transmute_copy(&restrictservice), core::mem::transmute_copy(&servicesidrestricted)).into() } - unsafe extern "system" fn ServiceRestricted(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, appname: core::mem::MaybeUninit, servicerestricted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetFwServiceRestriction_Impl, - { + unsafe extern "system" fn ServiceRestricted(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, appname: core::mem::MaybeUninit, servicerestricted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwServiceRestriction_Impl::ServiceRestricted(this, core::mem::transmute(&servicename), core::mem::transmute(&appname)) { Ok(ok__) => { @@ -3576,10 +2742,7 @@ impl INetFwServiceRestriction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rules(this: *mut core::ffi::c_void, rules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwServiceRestriction_Impl, - { + unsafe extern "system" fn Rules(this: *mut core::ffi::c_void, rules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwServiceRestriction_Impl::Rules(this) { Ok(ok__) => { @@ -3610,14 +2773,8 @@ pub trait INetFwServices_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for INetFwServices {} #[cfg(feature = "Win32_System_Com")] impl INetFwServices_Vtbl { - pub const fn new() -> INetFwServices_Vtbl - where - Identity: INetFwServices_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: INetFwServices_Impl, - { + pub const fn new() -> INetFwServices_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwServices_Impl::Count(this) { Ok(ok__) => { @@ -3627,10 +2784,7 @@ impl INetFwServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, svctype: NET_FW_SERVICE_TYPE, service: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwServices_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, svctype: NET_FW_SERVICE_TYPE, service: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwServices_Impl::Item(this, core::mem::transmute_copy(&svctype)) { Ok(ok__) => { @@ -3640,10 +2794,7 @@ impl INetFwServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetFwServices_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetFwServices_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3681,14 +2832,8 @@ pub trait INetSharingConfiguration_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for INetSharingConfiguration {} #[cfg(feature = "Win32_System_Com")] impl INetSharingConfiguration_Vtbl { - pub const fn new() -> INetSharingConfiguration_Vtbl - where - Identity: INetSharingConfiguration_Impl, - { - unsafe extern "system" fn SharingEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetSharingConfiguration_Impl, - { + pub const fn new() -> INetSharingConfiguration_Vtbl { + unsafe extern "system" fn SharingEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingConfiguration_Impl::SharingEnabled(this) { Ok(ok__) => { @@ -3698,10 +2843,7 @@ impl INetSharingConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SharingConnectionType(this: *mut core::ffi::c_void, ptype: *mut SHARINGCONNECTIONTYPE) -> windows_core::HRESULT - where - Identity: INetSharingConfiguration_Impl, - { + unsafe extern "system" fn SharingConnectionType(this: *mut core::ffi::c_void, ptype: *mut SHARINGCONNECTIONTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingConfiguration_Impl::SharingConnectionType(this) { Ok(ok__) => { @@ -3711,24 +2853,15 @@ impl INetSharingConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisableSharing(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingConfiguration_Impl, - { + unsafe extern "system" fn DisableSharing(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetSharingConfiguration_Impl::DisableSharing(this).into() } - unsafe extern "system" fn EnableSharing(this: *mut core::ffi::c_void, r#type: SHARINGCONNECTIONTYPE) -> windows_core::HRESULT - where - Identity: INetSharingConfiguration_Impl, - { + unsafe extern "system" fn EnableSharing(this: *mut core::ffi::c_void, r#type: SHARINGCONNECTIONTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetSharingConfiguration_Impl::EnableSharing(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn InternetFirewallEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetSharingConfiguration_Impl, - { + unsafe extern "system" fn InternetFirewallEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingConfiguration_Impl::InternetFirewallEnabled(this) { Ok(ok__) => { @@ -3738,24 +2871,15 @@ impl INetSharingConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisableInternetFirewall(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingConfiguration_Impl, - { + unsafe extern "system" fn DisableInternetFirewall(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetSharingConfiguration_Impl::DisableInternetFirewall(this).into() } - unsafe extern "system" fn EnableInternetFirewall(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingConfiguration_Impl, - { + unsafe extern "system" fn EnableInternetFirewall(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetSharingConfiguration_Impl::EnableInternetFirewall(this).into() } - unsafe extern "system" fn get_EnumPortMappings(this: *mut core::ffi::c_void, flags: SHARINGCONNECTION_ENUM_FLAGS, ppcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingConfiguration_Impl, - { + unsafe extern "system" fn get_EnumPortMappings(this: *mut core::ffi::c_void, flags: SHARINGCONNECTION_ENUM_FLAGS, ppcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingConfiguration_Impl::get_EnumPortMappings(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3765,10 +2889,7 @@ impl INetSharingConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPortMapping(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: core::mem::MaybeUninit, etargettype: ICS_TARGETTYPE, ppmapping: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingConfiguration_Impl, - { + unsafe extern "system" fn AddPortMapping(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: core::mem::MaybeUninit, etargettype: ICS_TARGETTYPE, ppmapping: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingConfiguration_Impl::AddPortMapping(this, 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)) { Ok(ok__) => { @@ -3778,10 +2899,7 @@ impl INetSharingConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePortMapping(this: *mut core::ffi::c_void, pmapping: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingConfiguration_Impl, - { + unsafe extern "system" fn RemovePortMapping(this: *mut core::ffi::c_void, pmapping: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetSharingConfiguration_Impl::RemovePortMapping(this, windows_core::from_raw_borrowed(&pmapping)).into() } @@ -3812,14 +2930,8 @@ pub trait INetSharingEveryConnectionCollection_Impl: Sized + super::super::Syste impl windows_core::RuntimeName for INetSharingEveryConnectionCollection {} #[cfg(feature = "Win32_System_Com")] impl INetSharingEveryConnectionCollection_Vtbl { - pub const fn new() -> INetSharingEveryConnectionCollection_Vtbl - where - Identity: INetSharingEveryConnectionCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingEveryConnectionCollection_Impl, - { + pub const fn new() -> INetSharingEveryConnectionCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingEveryConnectionCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3829,10 +2941,7 @@ impl INetSharingEveryConnectionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: INetSharingEveryConnectionCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingEveryConnectionCollection_Impl::Count(this) { Ok(ok__) => { @@ -3865,14 +2974,8 @@ pub trait INetSharingManager_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for INetSharingManager {} #[cfg(feature = "Win32_System_Com")] impl INetSharingManager_Vtbl { - pub const fn new() -> INetSharingManager_Vtbl - where - Identity: INetSharingManager_Impl, - { - unsafe extern "system" fn SharingInstalled(this: *mut core::ffi::c_void, pbinstalled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetSharingManager_Impl, - { + pub const fn new() -> INetSharingManager_Vtbl { + unsafe extern "system" fn SharingInstalled(this: *mut core::ffi::c_void, pbinstalled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingManager_Impl::SharingInstalled(this) { Ok(ok__) => { @@ -3882,10 +2985,7 @@ impl INetSharingManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_EnumPublicConnections(this: *mut core::ffi::c_void, flags: SHARINGCONNECTION_ENUM_FLAGS, ppcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingManager_Impl, - { + unsafe extern "system" fn get_EnumPublicConnections(this: *mut core::ffi::c_void, flags: SHARINGCONNECTION_ENUM_FLAGS, ppcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingManager_Impl::get_EnumPublicConnections(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3895,10 +2995,7 @@ impl INetSharingManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_EnumPrivateConnections(this: *mut core::ffi::c_void, flags: SHARINGCONNECTION_ENUM_FLAGS, ppcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingManager_Impl, - { + unsafe extern "system" fn get_EnumPrivateConnections(this: *mut core::ffi::c_void, flags: SHARINGCONNECTION_ENUM_FLAGS, ppcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingManager_Impl::get_EnumPrivateConnections(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3908,10 +3005,7 @@ impl INetSharingManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_INetSharingConfigurationForINetConnection(this: *mut core::ffi::c_void, pnetconnection: *mut core::ffi::c_void, ppnetsharingconfiguration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingManager_Impl, - { + unsafe extern "system" fn get_INetSharingConfigurationForINetConnection(this: *mut core::ffi::c_void, pnetconnection: *mut core::ffi::c_void, ppnetsharingconfiguration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingManager_Impl::get_INetSharingConfigurationForINetConnection(this, windows_core::from_raw_borrowed(&pnetconnection)) { Ok(ok__) => { @@ -3921,10 +3015,7 @@ impl INetSharingManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumEveryConnection(this: *mut core::ffi::c_void, ppcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingManager_Impl, - { + unsafe extern "system" fn EnumEveryConnection(this: *mut core::ffi::c_void, ppcoll: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingManager_Impl::EnumEveryConnection(this) { Ok(ok__) => { @@ -3934,10 +3025,7 @@ impl INetSharingManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_NetConnectionProps(this: *mut core::ffi::c_void, pnetconnection: *mut core::ffi::c_void, ppprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingManager_Impl, - { + unsafe extern "system" fn get_NetConnectionProps(this: *mut core::ffi::c_void, pnetconnection: *mut core::ffi::c_void, ppprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingManager_Impl::get_NetConnectionProps(this, windows_core::from_raw_borrowed(&pnetconnection)) { Ok(ok__) => { @@ -3972,28 +3060,16 @@ pub trait INetSharingPortMapping_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for INetSharingPortMapping {} #[cfg(feature = "Win32_System_Com")] impl INetSharingPortMapping_Vtbl { - pub const fn new() -> INetSharingPortMapping_Vtbl - where - Identity: INetSharingPortMapping_Impl, - { - unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingPortMapping_Impl, - { + pub const fn new() -> INetSharingPortMapping_Vtbl { + unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetSharingPortMapping_Impl::Disable(this).into() } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingPortMapping_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetSharingPortMapping_Impl::Enable(this).into() } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppnspmp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingPortMapping_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppnspmp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMapping_Impl::Properties(this) { Ok(ok__) => { @@ -4003,10 +3079,7 @@ impl INetSharingPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingPortMapping_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetSharingPortMapping_Impl::Delete(this).into() } @@ -4031,14 +3104,8 @@ pub trait INetSharingPortMappingCollection_Impl: Sized + super::super::System::C impl windows_core::RuntimeName for INetSharingPortMappingCollection {} #[cfg(feature = "Win32_System_Com")] impl INetSharingPortMappingCollection_Vtbl { - pub const fn new() -> INetSharingPortMappingCollection_Vtbl - where - Identity: INetSharingPortMappingCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingPortMappingCollection_Impl, - { + pub const fn new() -> INetSharingPortMappingCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMappingCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4048,10 +3115,7 @@ impl INetSharingPortMappingCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: INetSharingPortMappingCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMappingCollection_Impl::Count(this) { Ok(ok__) => { @@ -4086,14 +3150,8 @@ pub trait INetSharingPortMappingProps_Impl: Sized + super::super::System::Com::I impl windows_core::RuntimeName for INetSharingPortMappingProps {} #[cfg(feature = "Win32_System_Com")] impl INetSharingPortMappingProps_Vtbl { - pub const fn new() -> INetSharingPortMappingProps_Vtbl - where - Identity: INetSharingPortMappingProps_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetSharingPortMappingProps_Impl, - { + pub const fn new() -> INetSharingPortMappingProps_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMappingProps_Impl::Name(this) { Ok(ok__) => { @@ -4103,10 +3161,7 @@ impl INetSharingPortMappingProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IPProtocol(this: *mut core::ffi::c_void, pucipprot: *mut u8) -> windows_core::HRESULT - where - Identity: INetSharingPortMappingProps_Impl, - { + unsafe extern "system" fn IPProtocol(this: *mut core::ffi::c_void, pucipprot: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMappingProps_Impl::IPProtocol(this) { Ok(ok__) => { @@ -4116,10 +3171,7 @@ impl INetSharingPortMappingProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExternalPort(this: *mut core::ffi::c_void, pusport: *mut i32) -> windows_core::HRESULT - where - Identity: INetSharingPortMappingProps_Impl, - { + unsafe extern "system" fn ExternalPort(this: *mut core::ffi::c_void, pusport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMappingProps_Impl::ExternalPort(this) { Ok(ok__) => { @@ -4129,10 +3181,7 @@ impl INetSharingPortMappingProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InternalPort(this: *mut core::ffi::c_void, pusport: *mut i32) -> windows_core::HRESULT - where - Identity: INetSharingPortMappingProps_Impl, - { + unsafe extern "system" fn InternalPort(this: *mut core::ffi::c_void, pusport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMappingProps_Impl::InternalPort(this) { Ok(ok__) => { @@ -4142,10 +3191,7 @@ impl INetSharingPortMappingProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Options(this: *mut core::ffi::c_void, pdwoptions: *mut i32) -> windows_core::HRESULT - where - Identity: INetSharingPortMappingProps_Impl, - { + unsafe extern "system" fn Options(this: *mut core::ffi::c_void, pdwoptions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMappingProps_Impl::Options(this) { Ok(ok__) => { @@ -4155,10 +3201,7 @@ impl INetSharingPortMappingProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TargetName(this: *mut core::ffi::c_void, pbstrtargetname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetSharingPortMappingProps_Impl, - { + unsafe extern "system" fn TargetName(this: *mut core::ffi::c_void, pbstrtargetname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMappingProps_Impl::TargetName(this) { Ok(ok__) => { @@ -4168,10 +3211,7 @@ impl INetSharingPortMappingProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TargetIPAddress(this: *mut core::ffi::c_void, pbstrtargetipaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetSharingPortMappingProps_Impl, - { + unsafe extern "system" fn TargetIPAddress(this: *mut core::ffi::c_void, pbstrtargetipaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMappingProps_Impl::TargetIPAddress(this) { Ok(ok__) => { @@ -4181,10 +3221,7 @@ impl INetSharingPortMappingProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetSharingPortMappingProps_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPortMappingProps_Impl::Enabled(this) { Ok(ok__) => { @@ -4219,14 +3256,8 @@ pub trait INetSharingPrivateConnectionCollection_Impl: Sized + super::super::Sys impl windows_core::RuntimeName for INetSharingPrivateConnectionCollection {} #[cfg(feature = "Win32_System_Com")] impl INetSharingPrivateConnectionCollection_Vtbl { - pub const fn new() -> INetSharingPrivateConnectionCollection_Vtbl - where - Identity: INetSharingPrivateConnectionCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingPrivateConnectionCollection_Impl, - { + pub const fn new() -> INetSharingPrivateConnectionCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPrivateConnectionCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4236,10 +3267,7 @@ impl INetSharingPrivateConnectionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: INetSharingPrivateConnectionCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPrivateConnectionCollection_Impl::Count(this) { Ok(ok__) => { @@ -4268,14 +3296,8 @@ pub trait INetSharingPublicConnectionCollection_Impl: Sized + super::super::Syst impl windows_core::RuntimeName for INetSharingPublicConnectionCollection {} #[cfg(feature = "Win32_System_Com")] impl INetSharingPublicConnectionCollection_Vtbl { - pub const fn new() -> INetSharingPublicConnectionCollection_Vtbl - where - Identity: INetSharingPublicConnectionCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetSharingPublicConnectionCollection_Impl, - { + pub const fn new() -> INetSharingPublicConnectionCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPublicConnectionCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4285,10 +3307,7 @@ impl INetSharingPublicConnectionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: INetSharingPublicConnectionCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetSharingPublicConnectionCollection_Impl::Count(this) { Ok(ok__) => { @@ -4326,14 +3345,8 @@ pub trait IStaticPortMapping_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IStaticPortMapping {} #[cfg(feature = "Win32_System_Com")] impl IStaticPortMapping_Vtbl { - pub const fn new() -> IStaticPortMapping_Vtbl - where - Identity: IStaticPortMapping_Impl, - { - unsafe extern "system" fn ExternalIPAddress(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + pub const fn new() -> IStaticPortMapping_Vtbl { + unsafe extern "system" fn ExternalIPAddress(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMapping_Impl::ExternalIPAddress(this) { Ok(ok__) => { @@ -4343,10 +3356,7 @@ impl IStaticPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExternalPort(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + unsafe extern "system" fn ExternalPort(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMapping_Impl::ExternalPort(this) { Ok(ok__) => { @@ -4356,10 +3366,7 @@ impl IStaticPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InternalPort(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + unsafe extern "system" fn InternalPort(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMapping_Impl::InternalPort(this) { Ok(ok__) => { @@ -4369,10 +3376,7 @@ impl IStaticPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMapping_Impl::Protocol(this) { Ok(ok__) => { @@ -4382,10 +3386,7 @@ impl IStaticPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InternalClient(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + unsafe extern "system" fn InternalClient(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMapping_Impl::InternalClient(this) { Ok(ok__) => { @@ -4395,10 +3396,7 @@ impl IStaticPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMapping_Impl::Enabled(this) { Ok(ok__) => { @@ -4408,10 +3406,7 @@ impl IStaticPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMapping_Impl::Description(this) { Ok(ok__) => { @@ -4421,31 +3416,19 @@ impl IStaticPortMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EditInternalClient(this: *mut core::ffi::c_void, bstrinternalclient: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + unsafe extern "system" fn EditInternalClient(this: *mut core::ffi::c_void, bstrinternalclient: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStaticPortMapping_Impl::EditInternalClient(this, core::mem::transmute(&bstrinternalclient)).into() } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, vb: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, vb: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStaticPortMapping_Impl::Enable(this, core::mem::transmute_copy(&vb)).into() } - unsafe extern "system" fn EditDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + unsafe extern "system" fn EditDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStaticPortMapping_Impl::EditDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn EditInternalPort(this: *mut core::ffi::c_void, linternalport: i32) -> windows_core::HRESULT - where - Identity: IStaticPortMapping_Impl, - { + unsafe extern "system" fn EditInternalPort(this: *mut core::ffi::c_void, linternalport: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStaticPortMapping_Impl::EditInternalPort(this, core::mem::transmute_copy(&linternalport)).into() } @@ -4480,14 +3463,8 @@ pub trait IStaticPortMappingCollection_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for IStaticPortMappingCollection {} #[cfg(feature = "Win32_System_Com")] impl IStaticPortMappingCollection_Vtbl { - pub const fn new() -> IStaticPortMappingCollection_Vtbl - where - Identity: IStaticPortMappingCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStaticPortMappingCollection_Impl, - { + pub const fn new() -> IStaticPortMappingCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMappingCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4497,10 +3474,7 @@ impl IStaticPortMappingCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit, ppspm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStaticPortMappingCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit, ppspm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMappingCollection_Impl::get_Item(this, core::mem::transmute_copy(&lexternalport), core::mem::transmute(&bstrprotocol)) { Ok(ok__) => { @@ -4510,10 +3484,7 @@ impl IStaticPortMappingCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IStaticPortMappingCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMappingCollection_Impl::Count(this) { Ok(ok__) => { @@ -4523,17 +3494,11 @@ impl IStaticPortMappingCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStaticPortMappingCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStaticPortMappingCollection_Impl::Remove(this, core::mem::transmute_copy(&lexternalport), core::mem::transmute(&bstrprotocol)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit, linternalport: i32, bstrinternalclient: core::mem::MaybeUninit, benabled: super::super::Foundation::VARIANT_BOOL, bstrdescription: core::mem::MaybeUninit, ppspm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStaticPortMappingCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, lexternalport: i32, bstrprotocol: core::mem::MaybeUninit, linternalport: i32, bstrinternalclient: core::mem::MaybeUninit, benabled: super::super::Foundation::VARIANT_BOOL, bstrdescription: core::mem::MaybeUninit, ppspm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStaticPortMappingCollection_Impl::Add(this, 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)) { Ok(ok__) => { @@ -4566,14 +3531,8 @@ pub trait IUPnPNAT_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUPnPNAT {} #[cfg(feature = "Win32_System_Com")] impl IUPnPNAT_Vtbl { - pub const fn new() -> IUPnPNAT_Vtbl - where - Identity: IUPnPNAT_Impl, - { - unsafe extern "system" fn StaticPortMappingCollection(this: *mut core::ffi::c_void, ppspms: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPNAT_Impl, - { + pub const fn new() -> IUPnPNAT_Vtbl { + unsafe extern "system" fn StaticPortMappingCollection(this: *mut core::ffi::c_void, ppspms: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPNAT_Impl::StaticPortMappingCollection(this) { Ok(ok__) => { @@ -4583,10 +3542,7 @@ impl IUPnPNAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DynamicPortMappingCollection(this: *mut core::ffi::c_void, ppdpms: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPNAT_Impl, - { + unsafe extern "system" fn DynamicPortMappingCollection(this: *mut core::ffi::c_void, ppdpms: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPNAT_Impl::DynamicPortMappingCollection(this) { Ok(ok__) => { @@ -4596,10 +3552,7 @@ impl IUPnPNAT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NATEventManager(this: *mut core::ffi::c_void, ppnem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUPnPNAT_Impl, - { + unsafe extern "system" fn NATEventManager(this: *mut core::ffi::c_void, ppnem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUPnPNAT_Impl::NATEventManager(this) { Ok(ok__) => { 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 d3305fad1f..8584609d7e 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs @@ -18,14 +18,8 @@ pub trait IADs_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IADs {} #[cfg(feature = "Win32_System_Com")] impl IADs_Vtbl { - pub const fn new() -> IADs_Vtbl - where - Identity: IADs_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + pub const fn new() -> IADs_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADs_Impl::Name(this) { Ok(ok__) => { @@ -35,10 +29,7 @@ impl IADs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Class(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn Class(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADs_Impl::Class(this) { Ok(ok__) => { @@ -48,10 +39,7 @@ impl IADs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GUID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn GUID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADs_Impl::GUID(this) { Ok(ok__) => { @@ -61,10 +49,7 @@ impl IADs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ADsPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn ADsPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADs_Impl::ADsPath(this) { Ok(ok__) => { @@ -74,10 +59,7 @@ impl IADs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADs_Impl::Parent(this) { Ok(ok__) => { @@ -87,10 +69,7 @@ impl IADs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Schema(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn Schema(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADs_Impl::Schema(this) { Ok(ok__) => { @@ -100,24 +79,15 @@ impl IADs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADs_Impl::GetInfo(this).into() } - unsafe extern "system" fn SetInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn SetInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADs_Impl::SetInfo(this).into() } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pvprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pvprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADs_Impl::Get(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -127,17 +97,11 @@ impl IADs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Put(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, vprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn Put(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, vprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADs_Impl::Put(this, core::mem::transmute(&bstrname), core::mem::transmute(&vprop)).into() } - unsafe extern "system" fn GetEx(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pvprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn GetEx(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pvprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADs_Impl::GetEx(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -147,17 +111,11 @@ impl IADs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutEx(this: *mut core::ffi::c_void, lncontrolcode: i32, bstrname: core::mem::MaybeUninit, vprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn PutEx(this: *mut core::ffi::c_void, lncontrolcode: i32, bstrname: core::mem::MaybeUninit, vprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADs_Impl::PutEx(this, core::mem::transmute_copy(&lncontrolcode), core::mem::transmute(&bstrname), core::mem::transmute(&vprop)).into() } - unsafe extern "system" fn GetInfoEx(this: *mut core::ffi::c_void, vproperties: core::mem::MaybeUninit, lnreserved: i32) -> windows_core::HRESULT - where - Identity: IADs_Impl, - { + unsafe extern "system" fn GetInfoEx(this: *mut core::ffi::c_void, vproperties: core::mem::MaybeUninit, lnreserved: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADs_Impl::GetInfoEx(this, core::mem::transmute(&vproperties), core::mem::transmute_copy(&lnreserved)).into() } @@ -202,14 +160,8 @@ pub trait IADsADSystemInfo_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IADsADSystemInfo {} #[cfg(feature = "Win32_System_Com")] impl IADsADSystemInfo_Vtbl { - pub const fn new() -> IADsADSystemInfo_Vtbl - where - Identity: IADsADSystemInfo_Impl, - { - unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + pub const fn new() -> IADsADSystemInfo_Vtbl { + unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::UserName(this) { Ok(ok__) => { @@ -219,10 +171,7 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputerName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn ComputerName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::ComputerName(this) { Ok(ok__) => { @@ -232,10 +181,7 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SiteName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn SiteName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::SiteName(this) { Ok(ok__) => { @@ -245,10 +191,7 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DomainShortName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn DomainShortName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::DomainShortName(this) { Ok(ok__) => { @@ -258,10 +201,7 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DomainDNSName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn DomainDNSName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::DomainDNSName(this) { Ok(ok__) => { @@ -271,10 +211,7 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ForestDNSName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn ForestDNSName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::ForestDNSName(this) { Ok(ok__) => { @@ -284,10 +221,7 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PDCRoleOwner(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn PDCRoleOwner(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::PDCRoleOwner(this) { Ok(ok__) => { @@ -297,10 +231,7 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SchemaRoleOwner(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn SchemaRoleOwner(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::SchemaRoleOwner(this) { Ok(ok__) => { @@ -310,10 +241,7 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsNativeMode(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn IsNativeMode(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::IsNativeMode(this) { Ok(ok__) => { @@ -323,10 +251,7 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAnyDCName(this: *mut core::ffi::c_void, pszdcname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn GetAnyDCName(this: *mut core::ffi::c_void, pszdcname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::GetAnyDCName(this) { Ok(ok__) => { @@ -336,10 +261,7 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDCSiteName(this: *mut core::ffi::c_void, szserver: core::mem::MaybeUninit, pszsitename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn GetDCSiteName(this: *mut core::ffi::c_void, szserver: core::mem::MaybeUninit, pszsitename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::GetDCSiteName(this, core::mem::transmute(&szserver)) { Ok(ok__) => { @@ -349,17 +271,11 @@ impl IADsADSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RefreshSchemaCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn RefreshSchemaCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsADSystemInfo_Impl::RefreshSchemaCache(this).into() } - unsafe extern "system" fn GetTrees(this: *mut core::ffi::c_void, pvtrees: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsADSystemInfo_Impl, - { + unsafe extern "system" fn GetTrees(this: *mut core::ffi::c_void, pvtrees: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsADSystemInfo_Impl::GetTrees(this) { Ok(ok__) => { @@ -411,14 +327,8 @@ pub trait IADsAccessControlEntry_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IADsAccessControlEntry {} #[cfg(feature = "Win32_System_Com")] impl IADsAccessControlEntry_Vtbl { - pub const fn new() -> IADsAccessControlEntry_Vtbl - where - Identity: IADsAccessControlEntry_Impl, - { - unsafe extern "system" fn AccessMask(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + pub const fn new() -> IADsAccessControlEntry_Vtbl { + unsafe extern "system" fn AccessMask(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlEntry_Impl::AccessMask(this) { Ok(ok__) => { @@ -428,17 +338,11 @@ impl IADsAccessControlEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccessMask(this: *mut core::ffi::c_void, lnaccessmask: i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn SetAccessMask(this: *mut core::ffi::c_void, lnaccessmask: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlEntry_Impl::SetAccessMask(this, core::mem::transmute_copy(&lnaccessmask)).into() } - unsafe extern "system" fn AceType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn AceType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlEntry_Impl::AceType(this) { Ok(ok__) => { @@ -448,17 +352,11 @@ impl IADsAccessControlEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAceType(this: *mut core::ffi::c_void, lnacetype: i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn SetAceType(this: *mut core::ffi::c_void, lnacetype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlEntry_Impl::SetAceType(this, core::mem::transmute_copy(&lnacetype)).into() } - unsafe extern "system" fn AceFlags(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn AceFlags(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlEntry_Impl::AceFlags(this) { Ok(ok__) => { @@ -468,17 +366,11 @@ impl IADsAccessControlEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAceFlags(this: *mut core::ffi::c_void, lnaceflags: i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn SetAceFlags(this: *mut core::ffi::c_void, lnaceflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlEntry_Impl::SetAceFlags(this, core::mem::transmute_copy(&lnaceflags)).into() } - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlEntry_Impl::Flags(this) { Ok(ok__) => { @@ -488,17 +380,11 @@ impl IADsAccessControlEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, lnflags: i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, lnflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlEntry_Impl::SetFlags(this, core::mem::transmute_copy(&lnflags)).into() } - unsafe extern "system" fn ObjectType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn ObjectType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlEntry_Impl::ObjectType(this) { Ok(ok__) => { @@ -508,17 +394,11 @@ impl IADsAccessControlEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectType(this: *mut core::ffi::c_void, bstrobjecttype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn SetObjectType(this: *mut core::ffi::c_void, bstrobjecttype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlEntry_Impl::SetObjectType(this, core::mem::transmute(&bstrobjecttype)).into() } - unsafe extern "system" fn InheritedObjectType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn InheritedObjectType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlEntry_Impl::InheritedObjectType(this) { Ok(ok__) => { @@ -528,17 +408,11 @@ impl IADsAccessControlEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInheritedObjectType(this: *mut core::ffi::c_void, bstrinheritedobjecttype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn SetInheritedObjectType(this: *mut core::ffi::c_void, bstrinheritedobjecttype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlEntry_Impl::SetInheritedObjectType(this, core::mem::transmute(&bstrinheritedobjecttype)).into() } - unsafe extern "system" fn Trustee(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn Trustee(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlEntry_Impl::Trustee(this) { Ok(ok__) => { @@ -548,10 +422,7 @@ impl IADsAccessControlEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTrustee(this: *mut core::ffi::c_void, bstrtrustee: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsAccessControlEntry_Impl, - { + unsafe extern "system" fn SetTrustee(this: *mut core::ffi::c_void, bstrtrustee: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlEntry_Impl::SetTrustee(this, core::mem::transmute(&bstrtrustee)).into() } @@ -592,14 +463,8 @@ pub trait IADsAccessControlList_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for IADsAccessControlList {} #[cfg(feature = "Win32_System_Com")] impl IADsAccessControlList_Vtbl { - pub const fn new() -> IADsAccessControlList_Vtbl - where - Identity: IADsAccessControlList_Impl, - { - unsafe extern "system" fn AclRevision(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlList_Impl, - { + pub const fn new() -> IADsAccessControlList_Vtbl { + unsafe extern "system" fn AclRevision(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlList_Impl::AclRevision(this) { Ok(ok__) => { @@ -609,17 +474,11 @@ impl IADsAccessControlList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAclRevision(this: *mut core::ffi::c_void, lnaclrevision: i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlList_Impl, - { + unsafe extern "system" fn SetAclRevision(this: *mut core::ffi::c_void, lnaclrevision: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlList_Impl::SetAclRevision(this, core::mem::transmute_copy(&lnaclrevision)).into() } - unsafe extern "system" fn AceCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlList_Impl, - { + unsafe extern "system" fn AceCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlList_Impl::AceCount(this) { Ok(ok__) => { @@ -629,31 +488,19 @@ impl IADsAccessControlList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAceCount(this: *mut core::ffi::c_void, lnacecount: i32) -> windows_core::HRESULT - where - Identity: IADsAccessControlList_Impl, - { + unsafe extern "system" fn SetAceCount(this: *mut core::ffi::c_void, lnacecount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlList_Impl::SetAceCount(this, core::mem::transmute_copy(&lnacecount)).into() } - unsafe extern "system" fn AddAce(this: *mut core::ffi::c_void, paccesscontrolentry: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsAccessControlList_Impl, - { + unsafe extern "system" fn AddAce(this: *mut core::ffi::c_void, paccesscontrolentry: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlList_Impl::AddAce(this, windows_core::from_raw_borrowed(&paccesscontrolentry)).into() } - unsafe extern "system" fn RemoveAce(this: *mut core::ffi::c_void, paccesscontrolentry: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsAccessControlList_Impl, - { + unsafe extern "system" fn RemoveAce(this: *mut core::ffi::c_void, paccesscontrolentry: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAccessControlList_Impl::RemoveAce(this, windows_core::from_raw_borrowed(&paccesscontrolentry)).into() } - unsafe extern "system" fn CopyAccessList(this: *mut core::ffi::c_void, ppaccesscontrollist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsAccessControlList_Impl, - { + unsafe extern "system" fn CopyAccessList(this: *mut core::ffi::c_void, ppaccesscontrollist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlList_Impl::CopyAccessList(this) { Ok(ok__) => { @@ -663,10 +510,7 @@ impl IADsAccessControlList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsAccessControlList_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAccessControlList_Impl::_NewEnum(this) { Ok(ok__) => { @@ -706,14 +550,8 @@ pub trait IADsAcl_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IADsAcl {} #[cfg(feature = "Win32_System_Com")] impl IADsAcl_Vtbl { - pub const fn new() -> IADsAcl_Vtbl - where - Identity: IADsAcl_Impl, - { - unsafe extern "system" fn ProtectedAttrName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsAcl_Impl, - { + pub const fn new() -> IADsAcl_Vtbl { + unsafe extern "system" fn ProtectedAttrName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAcl_Impl::ProtectedAttrName(this) { Ok(ok__) => { @@ -723,17 +561,11 @@ impl IADsAcl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProtectedAttrName(this: *mut core::ffi::c_void, bstrprotectedattrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsAcl_Impl, - { + unsafe extern "system" fn SetProtectedAttrName(this: *mut core::ffi::c_void, bstrprotectedattrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAcl_Impl::SetProtectedAttrName(this, core::mem::transmute(&bstrprotectedattrname)).into() } - unsafe extern "system" fn SubjectName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsAcl_Impl, - { + unsafe extern "system" fn SubjectName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAcl_Impl::SubjectName(this) { Ok(ok__) => { @@ -743,17 +575,11 @@ impl IADsAcl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubjectName(this: *mut core::ffi::c_void, bstrsubjectname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsAcl_Impl, - { + unsafe extern "system" fn SetSubjectName(this: *mut core::ffi::c_void, bstrsubjectname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAcl_Impl::SetSubjectName(this, core::mem::transmute(&bstrsubjectname)).into() } - unsafe extern "system" fn Privileges(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsAcl_Impl, - { + unsafe extern "system" fn Privileges(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAcl_Impl::Privileges(this) { Ok(ok__) => { @@ -763,17 +589,11 @@ impl IADsAcl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivileges(this: *mut core::ffi::c_void, lnprivileges: i32) -> windows_core::HRESULT - where - Identity: IADsAcl_Impl, - { + unsafe extern "system" fn SetPrivileges(this: *mut core::ffi::c_void, lnprivileges: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAcl_Impl::SetPrivileges(this, core::mem::transmute_copy(&lnprivileges)).into() } - unsafe extern "system" fn CopyAcl(this: *mut core::ffi::c_void, ppacl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsAcl_Impl, - { + unsafe extern "system" fn CopyAcl(this: *mut core::ffi::c_void, ppacl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsAcl_Impl::CopyAcl(this) { Ok(ok__) => { @@ -798,7 +618,7 @@ impl IADsAcl_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IADsAggregatee_Impl: Sized { +pub trait IADsAggregatee_Impl: Sized + windows_core::IUnknownImpl { fn ConnectAsAggregatee(&self, pouterunknown: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn DisconnectAsAggregatee(&self) -> windows_core::Result<()>; fn RelinquishInterface(&self, riid: *const windows_core::GUID) -> windows_core::Result<()>; @@ -806,35 +626,20 @@ pub trait IADsAggregatee_Impl: Sized { } impl windows_core::RuntimeName for IADsAggregatee {} impl IADsAggregatee_Vtbl { - pub const fn new() -> IADsAggregatee_Vtbl - where - Identity: IADsAggregatee_Impl, - { - unsafe extern "system" fn ConnectAsAggregatee(this: *mut core::ffi::c_void, pouterunknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsAggregatee_Impl, - { + pub const fn new() -> IADsAggregatee_Vtbl { + unsafe extern "system" fn ConnectAsAggregatee(this: *mut core::ffi::c_void, pouterunknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAggregatee_Impl::ConnectAsAggregatee(this, windows_core::from_raw_borrowed(&pouterunknown)).into() } - unsafe extern "system" fn DisconnectAsAggregatee(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsAggregatee_Impl, - { + unsafe extern "system" fn DisconnectAsAggregatee(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAggregatee_Impl::DisconnectAsAggregatee(this).into() } - unsafe extern "system" fn RelinquishInterface(this: *mut core::ffi::c_void, riid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IADsAggregatee_Impl, - { + unsafe extern "system" fn RelinquishInterface(this: *mut core::ffi::c_void, riid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAggregatee_Impl::RelinquishInterface(this, core::mem::transmute_copy(&riid)).into() } - unsafe extern "system" fn RestoreInterface(this: *mut core::ffi::c_void, riid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IADsAggregatee_Impl, - { + unsafe extern "system" fn RestoreInterface(this: *mut core::ffi::c_void, riid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAggregatee_Impl::RestoreInterface(this, core::mem::transmute_copy(&riid)).into() } @@ -850,27 +655,18 @@ impl IADsAggregatee_Vtbl { iid == &::IID } } -pub trait IADsAggregator_Impl: Sized { +pub trait IADsAggregator_Impl: Sized + windows_core::IUnknownImpl { fn ConnectAsAggregator(&self, paggregatee: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn DisconnectAsAggregator(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IADsAggregator {} impl IADsAggregator_Vtbl { - pub const fn new() -> IADsAggregator_Vtbl - where - Identity: IADsAggregator_Impl, - { - unsafe extern "system" fn ConnectAsAggregator(this: *mut core::ffi::c_void, paggregatee: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsAggregator_Impl, - { + pub const fn new() -> IADsAggregator_Vtbl { + unsafe extern "system" fn ConnectAsAggregator(this: *mut core::ffi::c_void, paggregatee: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAggregator_Impl::ConnectAsAggregator(this, windows_core::from_raw_borrowed(&paggregatee)).into() } - unsafe extern "system" fn DisconnectAsAggregator(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsAggregator_Impl, - { + unsafe extern "system" fn DisconnectAsAggregator(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsAggregator_Impl::DisconnectAsAggregator(this).into() } @@ -895,14 +691,8 @@ pub trait IADsBackLink_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IADsBackLink {} #[cfg(feature = "Win32_System_Com")] impl IADsBackLink_Vtbl { - pub const fn new() -> IADsBackLink_Vtbl - where - Identity: IADsBackLink_Impl, - { - unsafe extern "system" fn RemoteID(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsBackLink_Impl, - { + pub const fn new() -> IADsBackLink_Vtbl { + unsafe extern "system" fn RemoteID(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsBackLink_Impl::RemoteID(this) { Ok(ok__) => { @@ -912,17 +702,11 @@ impl IADsBackLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteID(this: *mut core::ffi::c_void, lnremoteid: i32) -> windows_core::HRESULT - where - Identity: IADsBackLink_Impl, - { + unsafe extern "system" fn SetRemoteID(this: *mut core::ffi::c_void, lnremoteid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsBackLink_Impl::SetRemoteID(this, core::mem::transmute_copy(&lnremoteid)).into() } - unsafe extern "system" fn ObjectName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsBackLink_Impl, - { + unsafe extern "system" fn ObjectName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsBackLink_Impl::ObjectName(this) { Ok(ok__) => { @@ -932,10 +716,7 @@ impl IADsBackLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectName(this: *mut core::ffi::c_void, bstrobjectname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsBackLink_Impl, - { + unsafe extern "system" fn SetObjectName(this: *mut core::ffi::c_void, bstrobjectname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsBackLink_Impl::SetObjectName(this, core::mem::transmute(&bstrobjectname)).into() } @@ -960,14 +741,8 @@ pub trait IADsCaseIgnoreList_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IADsCaseIgnoreList {} #[cfg(feature = "Win32_System_Com")] impl IADsCaseIgnoreList_Vtbl { - pub const fn new() -> IADsCaseIgnoreList_Vtbl - where - Identity: IADsCaseIgnoreList_Impl, - { - unsafe extern "system" fn CaseIgnoreList(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsCaseIgnoreList_Impl, - { + pub const fn new() -> IADsCaseIgnoreList_Vtbl { + unsafe extern "system" fn CaseIgnoreList(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsCaseIgnoreList_Impl::CaseIgnoreList(this) { Ok(ok__) => { @@ -977,10 +752,7 @@ impl IADsCaseIgnoreList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCaseIgnoreList(this: *mut core::ffi::c_void, vcaseignorelist: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsCaseIgnoreList_Impl, - { + unsafe extern "system" fn SetCaseIgnoreList(this: *mut core::ffi::c_void, vcaseignorelist: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsCaseIgnoreList_Impl::SetCaseIgnoreList(this, core::mem::transmute(&vcaseignorelist)).into() } @@ -1031,14 +803,8 @@ pub trait IADsClass_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsClass {} #[cfg(feature = "Win32_System_Com")] impl IADsClass_Vtbl { - pub const fn new() -> IADsClass_Vtbl - where - Identity: IADsClass_Impl, - { - unsafe extern "system" fn PrimaryInterface(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + pub const fn new() -> IADsClass_Vtbl { + unsafe extern "system" fn PrimaryInterface(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::PrimaryInterface(this) { Ok(ok__) => { @@ -1048,10 +814,7 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CLSID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn CLSID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::CLSID(this) { Ok(ok__) => { @@ -1061,17 +824,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCLSID(this: *mut core::ffi::c_void, bstrclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetCLSID(this: *mut core::ffi::c_void, bstrclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetCLSID(this, core::mem::transmute(&bstrclsid)).into() } - unsafe extern "system" fn OID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn OID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::OID(this) { Ok(ok__) => { @@ -1081,17 +838,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOID(this: *mut core::ffi::c_void, bstroid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetOID(this: *mut core::ffi::c_void, bstroid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetOID(this, core::mem::transmute(&bstroid)).into() } - unsafe extern "system" fn Abstract(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn Abstract(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::Abstract(this) { Ok(ok__) => { @@ -1101,17 +852,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAbstract(this: *mut core::ffi::c_void, fabstract: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetAbstract(this: *mut core::ffi::c_void, fabstract: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetAbstract(this, core::mem::transmute_copy(&fabstract)).into() } - unsafe extern "system" fn Auxiliary(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn Auxiliary(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::Auxiliary(this) { Ok(ok__) => { @@ -1121,17 +866,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuxiliary(this: *mut core::ffi::c_void, fauxiliary: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetAuxiliary(this: *mut core::ffi::c_void, fauxiliary: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetAuxiliary(this, core::mem::transmute_copy(&fauxiliary)).into() } - unsafe extern "system" fn MandatoryProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn MandatoryProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::MandatoryProperties(this) { Ok(ok__) => { @@ -1141,17 +880,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMandatoryProperties(this: *mut core::ffi::c_void, vmandatoryproperties: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetMandatoryProperties(this: *mut core::ffi::c_void, vmandatoryproperties: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetMandatoryProperties(this, core::mem::transmute(&vmandatoryproperties)).into() } - unsafe extern "system" fn OptionalProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn OptionalProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::OptionalProperties(this) { Ok(ok__) => { @@ -1161,17 +894,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOptionalProperties(this: *mut core::ffi::c_void, voptionalproperties: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetOptionalProperties(this: *mut core::ffi::c_void, voptionalproperties: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetOptionalProperties(this, core::mem::transmute(&voptionalproperties)).into() } - unsafe extern "system" fn NamingProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn NamingProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::NamingProperties(this) { Ok(ok__) => { @@ -1181,17 +908,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNamingProperties(this: *mut core::ffi::c_void, vnamingproperties: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetNamingProperties(this: *mut core::ffi::c_void, vnamingproperties: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetNamingProperties(this, core::mem::transmute(&vnamingproperties)).into() } - unsafe extern "system" fn DerivedFrom(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn DerivedFrom(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::DerivedFrom(this) { Ok(ok__) => { @@ -1201,17 +922,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDerivedFrom(this: *mut core::ffi::c_void, vderivedfrom: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetDerivedFrom(this: *mut core::ffi::c_void, vderivedfrom: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetDerivedFrom(this, core::mem::transmute(&vderivedfrom)).into() } - unsafe extern "system" fn AuxDerivedFrom(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn AuxDerivedFrom(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::AuxDerivedFrom(this) { Ok(ok__) => { @@ -1221,17 +936,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuxDerivedFrom(this: *mut core::ffi::c_void, vauxderivedfrom: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetAuxDerivedFrom(this: *mut core::ffi::c_void, vauxderivedfrom: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetAuxDerivedFrom(this, core::mem::transmute(&vauxderivedfrom)).into() } - unsafe extern "system" fn PossibleSuperiors(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn PossibleSuperiors(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::PossibleSuperiors(this) { Ok(ok__) => { @@ -1241,17 +950,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPossibleSuperiors(this: *mut core::ffi::c_void, vpossiblesuperiors: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetPossibleSuperiors(this: *mut core::ffi::c_void, vpossiblesuperiors: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetPossibleSuperiors(this, core::mem::transmute(&vpossiblesuperiors)).into() } - unsafe extern "system" fn Containment(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn Containment(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::Containment(this) { Ok(ok__) => { @@ -1261,17 +964,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContainment(this: *mut core::ffi::c_void, vcontainment: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetContainment(this: *mut core::ffi::c_void, vcontainment: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetContainment(this, core::mem::transmute(&vcontainment)).into() } - unsafe extern "system" fn Container(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn Container(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::Container(this) { Ok(ok__) => { @@ -1281,17 +978,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContainer(this: *mut core::ffi::c_void, fcontainer: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetContainer(this: *mut core::ffi::c_void, fcontainer: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetContainer(this, core::mem::transmute_copy(&fcontainer)).into() } - unsafe extern "system" fn HelpFileName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn HelpFileName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::HelpFileName(this) { Ok(ok__) => { @@ -1301,17 +992,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHelpFileName(this: *mut core::ffi::c_void, bstrhelpfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetHelpFileName(this: *mut core::ffi::c_void, bstrhelpfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetHelpFileName(this, core::mem::transmute(&bstrhelpfilename)).into() } - unsafe extern "system" fn HelpFileContext(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn HelpFileContext(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::HelpFileContext(this) { Ok(ok__) => { @@ -1321,17 +1006,11 @@ impl IADsClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHelpFileContext(this: *mut core::ffi::c_void, lnhelpfilecontext: i32) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn SetHelpFileContext(this: *mut core::ffi::c_void, lnhelpfilecontext: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsClass_Impl::SetHelpFileContext(this, core::mem::transmute_copy(&lnhelpfilecontext)).into() } - unsafe extern "system" fn Qualifiers(this: *mut core::ffi::c_void, ppqualifiers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsClass_Impl, - { + unsafe extern "system" fn Qualifiers(this: *mut core::ffi::c_void, ppqualifiers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsClass_Impl::Qualifiers(this) { Ok(ok__) => { @@ -1390,14 +1069,8 @@ pub trait IADsCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IADsCollection {} #[cfg(feature = "Win32_System_Com")] impl IADsCollection_Vtbl { - pub const fn new() -> IADsCollection_Vtbl - where - Identity: IADsCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsCollection_Impl, - { + pub const fn new() -> IADsCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1407,24 +1080,15 @@ impl IADsCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, vitem: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, vitem: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsCollection_Impl::Add(this, core::mem::transmute(&bstrname), core::mem::transmute(&vitem)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, bstritemtoberemoved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, bstritemtoberemoved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsCollection_Impl::Remove(this, core::mem::transmute(&bstritemtoberemoved)).into() } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pvitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsCollection_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pvitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsCollection_Impl::GetObject(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -1485,14 +1149,8 @@ pub trait IADsComputer_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsComputer {} #[cfg(feature = "Win32_System_Com")] impl IADsComputer_Vtbl { - pub const fn new() -> IADsComputer_Vtbl - where - Identity: IADsComputer_Impl, - { - unsafe extern "system" fn ComputerID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + pub const fn new() -> IADsComputer_Vtbl { + unsafe extern "system" fn ComputerID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::ComputerID(this) { Ok(ok__) => { @@ -1502,10 +1160,7 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Site(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn Site(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::Site(this) { Ok(ok__) => { @@ -1515,10 +1170,7 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::Description(this) { Ok(ok__) => { @@ -1528,17 +1180,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn Location(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn Location(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::Location(this) { Ok(ok__) => { @@ -1548,17 +1194,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocation(this: *mut core::ffi::c_void, bstrlocation: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetLocation(this: *mut core::ffi::c_void, bstrlocation: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetLocation(this, core::mem::transmute(&bstrlocation)).into() } - unsafe extern "system" fn PrimaryUser(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn PrimaryUser(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::PrimaryUser(this) { Ok(ok__) => { @@ -1568,17 +1208,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrimaryUser(this: *mut core::ffi::c_void, bstrprimaryuser: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetPrimaryUser(this: *mut core::ffi::c_void, bstrprimaryuser: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetPrimaryUser(this, core::mem::transmute(&bstrprimaryuser)).into() } - unsafe extern "system" fn Owner(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn Owner(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::Owner(this) { Ok(ok__) => { @@ -1588,17 +1222,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, bstrowner: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, bstrowner: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetOwner(this, core::mem::transmute(&bstrowner)).into() } - unsafe extern "system" fn Division(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn Division(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::Division(this) { Ok(ok__) => { @@ -1608,17 +1236,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDivision(this: *mut core::ffi::c_void, bstrdivision: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetDivision(this: *mut core::ffi::c_void, bstrdivision: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetDivision(this, core::mem::transmute(&bstrdivision)).into() } - unsafe extern "system" fn Department(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn Department(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::Department(this) { Ok(ok__) => { @@ -1628,17 +1250,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDepartment(this: *mut core::ffi::c_void, bstrdepartment: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetDepartment(this: *mut core::ffi::c_void, bstrdepartment: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetDepartment(this, core::mem::transmute(&bstrdepartment)).into() } - unsafe extern "system" fn Role(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn Role(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::Role(this) { Ok(ok__) => { @@ -1648,17 +1264,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRole(this: *mut core::ffi::c_void, bstrrole: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetRole(this: *mut core::ffi::c_void, bstrrole: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetRole(this, core::mem::transmute(&bstrrole)).into() } - unsafe extern "system" fn OperatingSystem(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn OperatingSystem(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::OperatingSystem(this) { Ok(ok__) => { @@ -1668,17 +1278,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOperatingSystem(this: *mut core::ffi::c_void, bstroperatingsystem: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetOperatingSystem(this: *mut core::ffi::c_void, bstroperatingsystem: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetOperatingSystem(this, core::mem::transmute(&bstroperatingsystem)).into() } - unsafe extern "system" fn OperatingSystemVersion(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn OperatingSystemVersion(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::OperatingSystemVersion(this) { Ok(ok__) => { @@ -1688,17 +1292,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOperatingSystemVersion(this: *mut core::ffi::c_void, bstroperatingsystemversion: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetOperatingSystemVersion(this: *mut core::ffi::c_void, bstroperatingsystemversion: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetOperatingSystemVersion(this, core::mem::transmute(&bstroperatingsystemversion)).into() } - unsafe extern "system" fn Model(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn Model(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::Model(this) { Ok(ok__) => { @@ -1708,17 +1306,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetModel(this: *mut core::ffi::c_void, bstrmodel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetModel(this: *mut core::ffi::c_void, bstrmodel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetModel(this, core::mem::transmute(&bstrmodel)).into() } - unsafe extern "system" fn Processor(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn Processor(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::Processor(this) { Ok(ok__) => { @@ -1728,17 +1320,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProcessor(this: *mut core::ffi::c_void, bstrprocessor: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetProcessor(this: *mut core::ffi::c_void, bstrprocessor: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetProcessor(this, core::mem::transmute(&bstrprocessor)).into() } - unsafe extern "system" fn ProcessorCount(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn ProcessorCount(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::ProcessorCount(this) { Ok(ok__) => { @@ -1748,17 +1334,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProcessorCount(this: *mut core::ffi::c_void, bstrprocessorcount: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetProcessorCount(this: *mut core::ffi::c_void, bstrprocessorcount: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetProcessorCount(this, core::mem::transmute(&bstrprocessorcount)).into() } - unsafe extern "system" fn MemorySize(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn MemorySize(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::MemorySize(this) { Ok(ok__) => { @@ -1768,17 +1348,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMemorySize(this: *mut core::ffi::c_void, bstrmemorysize: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetMemorySize(this: *mut core::ffi::c_void, bstrmemorysize: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetMemorySize(this, core::mem::transmute(&bstrmemorysize)).into() } - unsafe extern "system" fn StorageCapacity(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn StorageCapacity(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::StorageCapacity(this) { Ok(ok__) => { @@ -1788,17 +1362,11 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStorageCapacity(this: *mut core::ffi::c_void, bstrstoragecapacity: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetStorageCapacity(this: *mut core::ffi::c_void, bstrstoragecapacity: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetStorageCapacity(this, core::mem::transmute(&bstrstoragecapacity)).into() } - unsafe extern "system" fn NetAddresses(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn NetAddresses(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputer_Impl::NetAddresses(this) { Ok(ok__) => { @@ -1808,10 +1376,7 @@ impl IADsComputer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetAddresses(this: *mut core::ffi::c_void, vnetaddresses: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsComputer_Impl, - { + unsafe extern "system" fn SetNetAddresses(this: *mut core::ffi::c_void, vnetaddresses: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputer_Impl::SetNetAddresses(this, core::mem::transmute(&vnetaddresses)).into() } @@ -1864,14 +1429,8 @@ pub trait IADsComputerOperations_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsComputerOperations {} #[cfg(feature = "Win32_System_Com")] impl IADsComputerOperations_Vtbl { - pub const fn new() -> IADsComputerOperations_Vtbl - where - Identity: IADsComputerOperations_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsComputerOperations_Impl, - { + pub const fn new() -> IADsComputerOperations_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsComputerOperations_Impl::Status(this) { Ok(ok__) => { @@ -1881,10 +1440,7 @@ impl IADsComputerOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void, breboot: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsComputerOperations_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void, breboot: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsComputerOperations_Impl::Shutdown(this, core::mem::transmute_copy(&breboot)).into() } @@ -1912,14 +1468,8 @@ pub trait IADsContainer_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IADsContainer {} #[cfg(feature = "Win32_System_Com")] impl IADsContainer_Vtbl { - pub const fn new() -> IADsContainer_Vtbl - where - Identity: IADsContainer_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + pub const fn new() -> IADsContainer_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsContainer_Impl::Count(this) { Ok(ok__) => { @@ -1929,10 +1479,7 @@ impl IADsContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsContainer_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1942,10 +1489,7 @@ impl IADsContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsContainer_Impl::Filter(this) { Ok(ok__) => { @@ -1955,17 +1499,11 @@ impl IADsContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, var: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, var: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsContainer_Impl::SetFilter(this, core::mem::transmute(&var)).into() } - unsafe extern "system" fn Hints(this: *mut core::ffi::c_void, pvfilter: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + unsafe extern "system" fn Hints(this: *mut core::ffi::c_void, pvfilter: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsContainer_Impl::Hints(this) { Ok(ok__) => { @@ -1975,17 +1513,11 @@ impl IADsContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHints(this: *mut core::ffi::c_void, vhints: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + unsafe extern "system" fn SetHints(this: *mut core::ffi::c_void, vhints: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsContainer_Impl::SetHints(this, core::mem::transmute(&vhints)).into() } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, classname: core::mem::MaybeUninit, relativename: core::mem::MaybeUninit, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, classname: core::mem::MaybeUninit, relativename: core::mem::MaybeUninit, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsContainer_Impl::GetObject(this, core::mem::transmute(&classname), core::mem::transmute(&relativename)) { Ok(ok__) => { @@ -1995,10 +1527,7 @@ impl IADsContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, classname: core::mem::MaybeUninit, relativename: core::mem::MaybeUninit, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, classname: core::mem::MaybeUninit, relativename: core::mem::MaybeUninit, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsContainer_Impl::Create(this, core::mem::transmute(&classname), core::mem::transmute(&relativename)) { Ok(ok__) => { @@ -2008,17 +1537,11 @@ impl IADsContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, bstrclassname: core::mem::MaybeUninit, bstrrelativename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, bstrclassname: core::mem::MaybeUninit, bstrrelativename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsContainer_Impl::Delete(this, core::mem::transmute(&bstrclassname), core::mem::transmute(&bstrrelativename)).into() } - unsafe extern "system" fn CopyHere(this: *mut core::ffi::c_void, sourcename: core::mem::MaybeUninit, newname: core::mem::MaybeUninit, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + unsafe extern "system" fn CopyHere(this: *mut core::ffi::c_void, sourcename: core::mem::MaybeUninit, newname: core::mem::MaybeUninit, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsContainer_Impl::CopyHere(this, core::mem::transmute(&sourcename), core::mem::transmute(&newname)) { Ok(ok__) => { @@ -2028,10 +1551,7 @@ impl IADsContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveHere(this: *mut core::ffi::c_void, sourcename: core::mem::MaybeUninit, newname: core::mem::MaybeUninit, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsContainer_Impl, - { + unsafe extern "system" fn MoveHere(this: *mut core::ffi::c_void, sourcename: core::mem::MaybeUninit, newname: core::mem::MaybeUninit, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsContainer_Impl::MoveHere(this, core::mem::transmute(&sourcename), core::mem::transmute(&newname)) { Ok(ok__) => { @@ -2071,14 +1591,8 @@ pub trait IADsDNWithBinary_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IADsDNWithBinary {} #[cfg(feature = "Win32_System_Com")] impl IADsDNWithBinary_Vtbl { - pub const fn new() -> IADsDNWithBinary_Vtbl - where - Identity: IADsDNWithBinary_Impl, - { - unsafe extern "system" fn BinaryValue(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsDNWithBinary_Impl, - { + pub const fn new() -> IADsDNWithBinary_Vtbl { + unsafe extern "system" fn BinaryValue(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDNWithBinary_Impl::BinaryValue(this) { Ok(ok__) => { @@ -2088,17 +1602,11 @@ impl IADsDNWithBinary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBinaryValue(this: *mut core::ffi::c_void, vbinaryvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsDNWithBinary_Impl, - { + unsafe extern "system" fn SetBinaryValue(this: *mut core::ffi::c_void, vbinaryvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDNWithBinary_Impl::SetBinaryValue(this, core::mem::transmute(&vbinaryvalue)).into() } - unsafe extern "system" fn DNString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsDNWithBinary_Impl, - { + unsafe extern "system" fn DNString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDNWithBinary_Impl::DNString(this) { Ok(ok__) => { @@ -2108,10 +1616,7 @@ impl IADsDNWithBinary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDNString(this: *mut core::ffi::c_void, bstrdnstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsDNWithBinary_Impl, - { + unsafe extern "system" fn SetDNString(this: *mut core::ffi::c_void, bstrdnstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDNWithBinary_Impl::SetDNString(this, core::mem::transmute(&bstrdnstring)).into() } @@ -2138,14 +1643,8 @@ pub trait IADsDNWithString_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IADsDNWithString {} #[cfg(feature = "Win32_System_Com")] impl IADsDNWithString_Vtbl { - pub const fn new() -> IADsDNWithString_Vtbl - where - Identity: IADsDNWithString_Impl, - { - unsafe extern "system" fn StringValue(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsDNWithString_Impl, - { + pub const fn new() -> IADsDNWithString_Vtbl { + unsafe extern "system" fn StringValue(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDNWithString_Impl::StringValue(this) { Ok(ok__) => { @@ -2155,17 +1654,11 @@ impl IADsDNWithString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStringValue(this: *mut core::ffi::c_void, bstrstringvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsDNWithString_Impl, - { + unsafe extern "system" fn SetStringValue(this: *mut core::ffi::c_void, bstrstringvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDNWithString_Impl::SetStringValue(this, core::mem::transmute(&bstrstringvalue)).into() } - unsafe extern "system" fn DNString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsDNWithString_Impl, - { + unsafe extern "system" fn DNString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDNWithString_Impl::DNString(this) { Ok(ok__) => { @@ -2175,10 +1668,7 @@ impl IADsDNWithString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDNString(this: *mut core::ffi::c_void, bstrdnstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsDNWithString_Impl, - { + unsafe extern "system" fn SetDNString(this: *mut core::ffi::c_void, bstrdnstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDNWithString_Impl::SetDNString(this, core::mem::transmute(&bstrdnstring)).into() } @@ -2202,14 +1692,8 @@ pub trait IADsDeleteOps_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IADsDeleteOps {} #[cfg(feature = "Win32_System_Com")] impl IADsDeleteOps_Vtbl { - pub const fn new() -> IADsDeleteOps_Vtbl - where - Identity: IADsDeleteOps_Impl, - { - unsafe extern "system" fn DeleteObject(this: *mut core::ffi::c_void, lnflags: i32) -> windows_core::HRESULT - where - Identity: IADsDeleteOps_Impl, - { + pub const fn new() -> IADsDeleteOps_Vtbl { + unsafe extern "system" fn DeleteObject(this: *mut core::ffi::c_void, lnflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDeleteOps_Impl::DeleteObject(this, core::mem::transmute_copy(&lnflags)).into() } @@ -2243,14 +1727,8 @@ pub trait IADsDomain_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsDomain {} #[cfg(feature = "Win32_System_Com")] impl IADsDomain_Vtbl { - pub const fn new() -> IADsDomain_Vtbl - where - Identity: IADsDomain_Impl, - { - unsafe extern "system" fn IsWorkgroup(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + pub const fn new() -> IADsDomain_Vtbl { + unsafe extern "system" fn IsWorkgroup(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDomain_Impl::IsWorkgroup(this) { Ok(ok__) => { @@ -2260,10 +1738,7 @@ impl IADsDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinPasswordLength(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn MinPasswordLength(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDomain_Impl::MinPasswordLength(this) { Ok(ok__) => { @@ -2273,17 +1748,11 @@ impl IADsDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinPasswordLength(this: *mut core::ffi::c_void, lnminpasswordlength: i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn SetMinPasswordLength(this: *mut core::ffi::c_void, lnminpasswordlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDomain_Impl::SetMinPasswordLength(this, core::mem::transmute_copy(&lnminpasswordlength)).into() } - unsafe extern "system" fn MinPasswordAge(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn MinPasswordAge(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDomain_Impl::MinPasswordAge(this) { Ok(ok__) => { @@ -2293,17 +1762,11 @@ impl IADsDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinPasswordAge(this: *mut core::ffi::c_void, lnminpasswordage: i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn SetMinPasswordAge(this: *mut core::ffi::c_void, lnminpasswordage: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDomain_Impl::SetMinPasswordAge(this, core::mem::transmute_copy(&lnminpasswordage)).into() } - unsafe extern "system" fn MaxPasswordAge(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn MaxPasswordAge(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDomain_Impl::MaxPasswordAge(this) { Ok(ok__) => { @@ -2313,17 +1776,11 @@ impl IADsDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxPasswordAge(this: *mut core::ffi::c_void, lnmaxpasswordage: i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn SetMaxPasswordAge(this: *mut core::ffi::c_void, lnmaxpasswordage: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDomain_Impl::SetMaxPasswordAge(this, core::mem::transmute_copy(&lnmaxpasswordage)).into() } - unsafe extern "system" fn MaxBadPasswordsAllowed(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn MaxBadPasswordsAllowed(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDomain_Impl::MaxBadPasswordsAllowed(this) { Ok(ok__) => { @@ -2333,17 +1790,11 @@ impl IADsDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxBadPasswordsAllowed(this: *mut core::ffi::c_void, lnmaxbadpasswordsallowed: i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn SetMaxBadPasswordsAllowed(this: *mut core::ffi::c_void, lnmaxbadpasswordsallowed: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDomain_Impl::SetMaxBadPasswordsAllowed(this, core::mem::transmute_copy(&lnmaxbadpasswordsallowed)).into() } - unsafe extern "system" fn PasswordHistoryLength(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn PasswordHistoryLength(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDomain_Impl::PasswordHistoryLength(this) { Ok(ok__) => { @@ -2353,17 +1804,11 @@ impl IADsDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPasswordHistoryLength(this: *mut core::ffi::c_void, lnpasswordhistorylength: i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn SetPasswordHistoryLength(this: *mut core::ffi::c_void, lnpasswordhistorylength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDomain_Impl::SetPasswordHistoryLength(this, core::mem::transmute_copy(&lnpasswordhistorylength)).into() } - unsafe extern "system" fn PasswordAttributes(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn PasswordAttributes(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDomain_Impl::PasswordAttributes(this) { Ok(ok__) => { @@ -2373,17 +1818,11 @@ impl IADsDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPasswordAttributes(this: *mut core::ffi::c_void, lnpasswordattributes: i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn SetPasswordAttributes(this: *mut core::ffi::c_void, lnpasswordattributes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDomain_Impl::SetPasswordAttributes(this, core::mem::transmute_copy(&lnpasswordattributes)).into() } - unsafe extern "system" fn AutoUnlockInterval(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn AutoUnlockInterval(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDomain_Impl::AutoUnlockInterval(this) { Ok(ok__) => { @@ -2393,17 +1832,11 @@ impl IADsDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoUnlockInterval(this: *mut core::ffi::c_void, lnautounlockinterval: i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn SetAutoUnlockInterval(this: *mut core::ffi::c_void, lnautounlockinterval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDomain_Impl::SetAutoUnlockInterval(this, core::mem::transmute_copy(&lnautounlockinterval)).into() } - unsafe extern "system" fn LockoutObservationInterval(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn LockoutObservationInterval(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsDomain_Impl::LockoutObservationInterval(this) { Ok(ok__) => { @@ -2413,10 +1846,7 @@ impl IADsDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLockoutObservationInterval(this: *mut core::ffi::c_void, lnlockoutobservationinterval: i32) -> windows_core::HRESULT - where - Identity: IADsDomain_Impl, - { + unsafe extern "system" fn SetLockoutObservationInterval(this: *mut core::ffi::c_void, lnlockoutobservationinterval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsDomain_Impl::SetLockoutObservationInterval(this, core::mem::transmute_copy(&lnlockoutobservationinterval)).into() } @@ -2456,14 +1886,8 @@ pub trait IADsEmail_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IADsEmail {} #[cfg(feature = "Win32_System_Com")] impl IADsEmail_Vtbl { - pub const fn new() -> IADsEmail_Vtbl - where - Identity: IADsEmail_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsEmail_Impl, - { + pub const fn new() -> IADsEmail_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsEmail_Impl::Type(this) { Ok(ok__) => { @@ -2473,17 +1897,11 @@ impl IADsEmail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, lntype: i32) -> windows_core::HRESULT - where - Identity: IADsEmail_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, lntype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsEmail_Impl::SetType(this, core::mem::transmute_copy(&lntype)).into() } - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsEmail_Impl, - { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsEmail_Impl::Address(this) { Ok(ok__) => { @@ -2493,10 +1911,7 @@ impl IADsEmail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAddress(this: *mut core::ffi::c_void, bstraddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsEmail_Impl, - { + unsafe extern "system" fn SetAddress(this: *mut core::ffi::c_void, bstraddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsEmail_Impl::SetAddress(this, core::mem::transmute(&bstraddress)).into() } @@ -2513,7 +1928,7 @@ impl IADsEmail_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IADsExtension_Impl: Sized { +pub trait IADsExtension_Impl: Sized + windows_core::IUnknownImpl { fn Operate(&self, dwcode: u32, vardata1: &windows_core::VARIANT, vardata2: &windows_core::VARIANT, vardata3: &windows_core::VARIANT) -> windows_core::Result<()>; fn PrivateGetIDsOfNames(&self, riid: *const windows_core::GUID, rgsznames: *const *const u16, cnames: u32, lcid: u32) -> windows_core::Result; fn PrivateInvoke(&self, dispidmember: i32, riid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut windows_core::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::Result<()>; @@ -2522,21 +1937,12 @@ pub trait IADsExtension_Impl: Sized { impl windows_core::RuntimeName for IADsExtension {} #[cfg(feature = "Win32_System_Com")] impl IADsExtension_Vtbl { - pub const fn new() -> IADsExtension_Vtbl - where - Identity: IADsExtension_Impl, - { - unsafe extern "system" fn Operate(this: *mut core::ffi::c_void, dwcode: u32, vardata1: core::mem::MaybeUninit, vardata2: core::mem::MaybeUninit, vardata3: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsExtension_Impl, - { + pub const fn new() -> IADsExtension_Vtbl { + unsafe extern "system" fn Operate(this: *mut core::ffi::c_void, dwcode: u32, vardata1: core::mem::MaybeUninit, vardata2: core::mem::MaybeUninit, vardata3: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsExtension_Impl::Operate(this, core::mem::transmute_copy(&dwcode), core::mem::transmute(&vardata1), core::mem::transmute(&vardata2), core::mem::transmute(&vardata3)).into() } - unsafe extern "system" fn PrivateGetIDsOfNames(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, rgsznames: *const *const u16, cnames: u32, lcid: u32, rgdispid: *mut i32) -> windows_core::HRESULT - where - Identity: IADsExtension_Impl, - { + unsafe extern "system" fn PrivateGetIDsOfNames(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, rgsznames: *const *const u16, cnames: u32, lcid: u32, rgdispid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsExtension_Impl::PrivateGetIDsOfNames(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&rgsznames), core::mem::transmute_copy(&cnames), core::mem::transmute_copy(&lcid)) { Ok(ok__) => { @@ -2546,10 +1952,7 @@ impl IADsExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateInvoke(this: *mut core::ffi::c_void, dispidmember: i32, riid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT - where - Identity: IADsExtension_Impl, - { + unsafe extern "system" fn PrivateInvoke(this: *mut core::ffi::c_void, dispidmember: i32, riid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsExtension_Impl::PrivateInvoke(this, core::mem::transmute_copy(&dispidmember), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&lcid), 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() } @@ -2575,14 +1978,8 @@ pub trait IADsFaxNumber_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IADsFaxNumber {} #[cfg(feature = "Win32_System_Com")] impl IADsFaxNumber_Vtbl { - pub const fn new() -> IADsFaxNumber_Vtbl - where - Identity: IADsFaxNumber_Impl, - { - unsafe extern "system" fn TelephoneNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFaxNumber_Impl, - { + pub const fn new() -> IADsFaxNumber_Vtbl { + unsafe extern "system" fn TelephoneNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFaxNumber_Impl::TelephoneNumber(this) { Ok(ok__) => { @@ -2592,17 +1989,11 @@ impl IADsFaxNumber_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTelephoneNumber(this: *mut core::ffi::c_void, bstrtelephonenumber: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFaxNumber_Impl, - { + unsafe extern "system" fn SetTelephoneNumber(this: *mut core::ffi::c_void, bstrtelephonenumber: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsFaxNumber_Impl::SetTelephoneNumber(this, core::mem::transmute(&bstrtelephonenumber)).into() } - unsafe extern "system" fn Parameters(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFaxNumber_Impl, - { + unsafe extern "system" fn Parameters(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFaxNumber_Impl::Parameters(this) { Ok(ok__) => { @@ -2612,10 +2003,7 @@ impl IADsFaxNumber_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, vparameters: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFaxNumber_Impl, - { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, vparameters: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsFaxNumber_Impl::SetParameters(this, core::mem::transmute(&vparameters)).into() } @@ -2642,14 +2030,8 @@ pub trait IADsFileService_Impl: Sized + IADsService_Impl { impl windows_core::RuntimeName for IADsFileService {} #[cfg(feature = "Win32_System_Com")] impl IADsFileService_Vtbl { - pub const fn new() -> IADsFileService_Vtbl - where - Identity: IADsFileService_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFileService_Impl, - { + pub const fn new() -> IADsFileService_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFileService_Impl::Description(this) { Ok(ok__) => { @@ -2659,17 +2041,11 @@ impl IADsFileService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFileService_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsFileService_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn MaxUserCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsFileService_Impl, - { + unsafe extern "system" fn MaxUserCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFileService_Impl::MaxUserCount(this) { Ok(ok__) => { @@ -2679,10 +2055,7 @@ impl IADsFileService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxUserCount(this: *mut core::ffi::c_void, lnmaxusercount: i32) -> windows_core::HRESULT - where - Identity: IADsFileService_Impl, - { + unsafe extern "system" fn SetMaxUserCount(this: *mut core::ffi::c_void, lnmaxusercount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsFileService_Impl::SetMaxUserCount(this, core::mem::transmute_copy(&lnmaxusercount)).into() } @@ -2707,14 +2080,8 @@ pub trait IADsFileServiceOperations_Impl: Sized + IADsServiceOperations_Impl { impl windows_core::RuntimeName for IADsFileServiceOperations {} #[cfg(feature = "Win32_System_Com")] impl IADsFileServiceOperations_Vtbl { - pub const fn new() -> IADsFileServiceOperations_Vtbl - where - Identity: IADsFileServiceOperations_Impl, - { - unsafe extern "system" fn Sessions(this: *mut core::ffi::c_void, ppsessions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsFileServiceOperations_Impl, - { + pub const fn new() -> IADsFileServiceOperations_Vtbl { + unsafe extern "system" fn Sessions(this: *mut core::ffi::c_void, ppsessions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFileServiceOperations_Impl::Sessions(this) { Ok(ok__) => { @@ -2724,10 +2091,7 @@ impl IADsFileServiceOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resources(this: *mut core::ffi::c_void, ppresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsFileServiceOperations_Impl, - { + unsafe extern "system" fn Resources(this: *mut core::ffi::c_void, ppresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFileServiceOperations_Impl::Resources(this) { Ok(ok__) => { @@ -2759,14 +2123,8 @@ pub trait IADsFileShare_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsFileShare {} #[cfg(feature = "Win32_System_Com")] impl IADsFileShare_Vtbl { - pub const fn new() -> IADsFileShare_Vtbl - where - Identity: IADsFileShare_Impl, - { - unsafe extern "system" fn CurrentUserCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsFileShare_Impl, - { + pub const fn new() -> IADsFileShare_Vtbl { + unsafe extern "system" fn CurrentUserCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFileShare_Impl::CurrentUserCount(this) { Ok(ok__) => { @@ -2776,10 +2134,7 @@ impl IADsFileShare_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFileShare_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFileShare_Impl::Description(this) { Ok(ok__) => { @@ -2789,17 +2144,11 @@ impl IADsFileShare_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFileShare_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsFileShare_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn HostComputer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFileShare_Impl, - { + unsafe extern "system" fn HostComputer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFileShare_Impl::HostComputer(this) { Ok(ok__) => { @@ -2809,17 +2158,11 @@ impl IADsFileShare_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHostComputer(this: *mut core::ffi::c_void, bstrhostcomputer: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFileShare_Impl, - { + unsafe extern "system" fn SetHostComputer(this: *mut core::ffi::c_void, bstrhostcomputer: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsFileShare_Impl::SetHostComputer(this, core::mem::transmute(&bstrhostcomputer)).into() } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFileShare_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFileShare_Impl::Path(this) { Ok(ok__) => { @@ -2829,17 +2172,11 @@ impl IADsFileShare_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsFileShare_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsFileShare_Impl::SetPath(this, core::mem::transmute(&bstrpath)).into() } - unsafe extern "system" fn MaxUserCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsFileShare_Impl, - { + unsafe extern "system" fn MaxUserCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsFileShare_Impl::MaxUserCount(this) { Ok(ok__) => { @@ -2849,10 +2186,7 @@ impl IADsFileShare_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxUserCount(this: *mut core::ffi::c_void, lnmaxusercount: i32) -> windows_core::HRESULT - where - Identity: IADsFileShare_Impl, - { + unsafe extern "system" fn SetMaxUserCount(this: *mut core::ffi::c_void, lnmaxusercount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsFileShare_Impl::SetMaxUserCount(this, core::mem::transmute_copy(&lnmaxusercount)).into() } @@ -2886,14 +2220,8 @@ pub trait IADsGroup_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsGroup {} #[cfg(feature = "Win32_System_Com")] impl IADsGroup_Vtbl { - pub const fn new() -> IADsGroup_Vtbl - where - Identity: IADsGroup_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsGroup_Impl, - { + pub const fn new() -> IADsGroup_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsGroup_Impl::Description(this) { Ok(ok__) => { @@ -2903,17 +2231,11 @@ impl IADsGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsGroup_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsGroup_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn Members(this: *mut core::ffi::c_void, ppmembers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsGroup_Impl, - { + unsafe extern "system" fn Members(this: *mut core::ffi::c_void, ppmembers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsGroup_Impl::Members(this) { Ok(ok__) => { @@ -2923,10 +2245,7 @@ impl IADsGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsMember(this: *mut core::ffi::c_void, bstrmember: core::mem::MaybeUninit, bmember: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsGroup_Impl, - { + unsafe extern "system" fn IsMember(this: *mut core::ffi::c_void, bstrmember: core::mem::MaybeUninit, bmember: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsGroup_Impl::IsMember(this, core::mem::transmute(&bstrmember)) { Ok(ok__) => { @@ -2936,17 +2255,11 @@ impl IADsGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrnewitem: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsGroup_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstrnewitem: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsGroup_Impl::Add(this, core::mem::transmute(&bstrnewitem)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, bstritemtoberemoved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsGroup_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, bstritemtoberemoved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsGroup_Impl::Remove(this, core::mem::transmute(&bstritemtoberemoved)).into() } @@ -2975,14 +2288,8 @@ pub trait IADsHold_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IADsHold {} #[cfg(feature = "Win32_System_Com")] impl IADsHold_Vtbl { - pub const fn new() -> IADsHold_Vtbl - where - Identity: IADsHold_Impl, - { - unsafe extern "system" fn ObjectName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsHold_Impl, - { + pub const fn new() -> IADsHold_Vtbl { + unsafe extern "system" fn ObjectName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsHold_Impl::ObjectName(this) { Ok(ok__) => { @@ -2992,17 +2299,11 @@ impl IADsHold_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectName(this: *mut core::ffi::c_void, bstrobjectname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsHold_Impl, - { + unsafe extern "system" fn SetObjectName(this: *mut core::ffi::c_void, bstrobjectname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsHold_Impl::SetObjectName(this, core::mem::transmute(&bstrobjectname)).into() } - unsafe extern "system" fn Amount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsHold_Impl, - { + unsafe extern "system" fn Amount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsHold_Impl::Amount(this) { Ok(ok__) => { @@ -3012,10 +2313,7 @@ impl IADsHold_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAmount(this: *mut core::ffi::c_void, lnamount: i32) -> windows_core::HRESULT - where - Identity: IADsHold_Impl, - { + unsafe extern "system" fn SetAmount(this: *mut core::ffi::c_void, lnamount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsHold_Impl::SetAmount(this, core::mem::transmute_copy(&lnamount)).into() } @@ -3042,14 +2340,8 @@ pub trait IADsLargeInteger_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IADsLargeInteger {} #[cfg(feature = "Win32_System_Com")] impl IADsLargeInteger_Vtbl { - pub const fn new() -> IADsLargeInteger_Vtbl - where - Identity: IADsLargeInteger_Impl, - { - unsafe extern "system" fn HighPart(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsLargeInteger_Impl, - { + pub const fn new() -> IADsLargeInteger_Vtbl { + unsafe extern "system" fn HighPart(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsLargeInteger_Impl::HighPart(this) { Ok(ok__) => { @@ -3059,17 +2351,11 @@ impl IADsLargeInteger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHighPart(this: *mut core::ffi::c_void, lnhighpart: i32) -> windows_core::HRESULT - where - Identity: IADsLargeInteger_Impl, - { + unsafe extern "system" fn SetHighPart(this: *mut core::ffi::c_void, lnhighpart: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsLargeInteger_Impl::SetHighPart(this, core::mem::transmute_copy(&lnhighpart)).into() } - unsafe extern "system" fn LowPart(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsLargeInteger_Impl, - { + unsafe extern "system" fn LowPart(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsLargeInteger_Impl::LowPart(this) { Ok(ok__) => { @@ -3079,10 +2365,7 @@ impl IADsLargeInteger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLowPart(this: *mut core::ffi::c_void, lnlowpart: i32) -> windows_core::HRESULT - where - Identity: IADsLargeInteger_Impl, - { + unsafe extern "system" fn SetLowPart(this: *mut core::ffi::c_void, lnlowpart: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsLargeInteger_Impl::SetLowPart(this, core::mem::transmute_copy(&lnlowpart)).into() } @@ -3113,14 +2396,8 @@ pub trait IADsLocality_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsLocality {} #[cfg(feature = "Win32_System_Com")] impl IADsLocality_Vtbl { - pub const fn new() -> IADsLocality_Vtbl - where - Identity: IADsLocality_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsLocality_Impl, - { + pub const fn new() -> IADsLocality_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsLocality_Impl::Description(this) { Ok(ok__) => { @@ -3130,17 +2407,11 @@ impl IADsLocality_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsLocality_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsLocality_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn LocalityName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsLocality_Impl, - { + unsafe extern "system" fn LocalityName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsLocality_Impl::LocalityName(this) { Ok(ok__) => { @@ -3150,17 +2421,11 @@ impl IADsLocality_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalityName(this: *mut core::ffi::c_void, bstrlocalityname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsLocality_Impl, - { + unsafe extern "system" fn SetLocalityName(this: *mut core::ffi::c_void, bstrlocalityname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsLocality_Impl::SetLocalityName(this, core::mem::transmute(&bstrlocalityname)).into() } - unsafe extern "system" fn PostalAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsLocality_Impl, - { + unsafe extern "system" fn PostalAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsLocality_Impl::PostalAddress(this) { Ok(ok__) => { @@ -3170,17 +2435,11 @@ impl IADsLocality_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPostalAddress(this: *mut core::ffi::c_void, bstrpostaladdress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsLocality_Impl, - { + unsafe extern "system" fn SetPostalAddress(this: *mut core::ffi::c_void, bstrpostaladdress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsLocality_Impl::SetPostalAddress(this, core::mem::transmute(&bstrpostaladdress)).into() } - unsafe extern "system" fn SeeAlso(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsLocality_Impl, - { + unsafe extern "system" fn SeeAlso(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsLocality_Impl::SeeAlso(this) { Ok(ok__) => { @@ -3190,10 +2449,7 @@ impl IADsLocality_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSeeAlso(this: *mut core::ffi::c_void, vseealso: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsLocality_Impl, - { + unsafe extern "system" fn SetSeeAlso(this: *mut core::ffi::c_void, vseealso: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsLocality_Impl::SetSeeAlso(this, core::mem::transmute(&vseealso)).into() } @@ -3224,14 +2480,8 @@ pub trait IADsMembers_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IADsMembers {} #[cfg(feature = "Win32_System_Com")] impl IADsMembers_Vtbl { - pub const fn new() -> IADsMembers_Vtbl - where - Identity: IADsMembers_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IADsMembers_Impl, - { + pub const fn new() -> IADsMembers_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsMembers_Impl::Count(this) { Ok(ok__) => { @@ -3241,10 +2491,7 @@ impl IADsMembers_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsMembers_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsMembers_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3254,10 +2501,7 @@ impl IADsMembers_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, pvfilter: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsMembers_Impl, - { + unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, pvfilter: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsMembers_Impl::Filter(this) { Ok(ok__) => { @@ -3267,10 +2511,7 @@ impl IADsMembers_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, pvfilter: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsMembers_Impl, - { + unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, pvfilter: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsMembers_Impl::SetFilter(this, core::mem::transmute(&pvfilter)).into() } @@ -3300,42 +2541,24 @@ pub trait IADsNameTranslate_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IADsNameTranslate {} #[cfg(feature = "Win32_System_Com")] impl IADsNameTranslate_Vtbl { - pub const fn new() -> IADsNameTranslate_Vtbl - where - Identity: IADsNameTranslate_Impl, - { - unsafe extern "system" fn SetChaseReferral(this: *mut core::ffi::c_void, lnchasereferral: i32) -> windows_core::HRESULT - where - Identity: IADsNameTranslate_Impl, - { + pub const fn new() -> IADsNameTranslate_Vtbl { + unsafe extern "system" fn SetChaseReferral(this: *mut core::ffi::c_void, lnchasereferral: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsNameTranslate_Impl::SetChaseReferral(this, core::mem::transmute_copy(&lnchasereferral)).into() } - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, lnsettype: i32, bstradspath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsNameTranslate_Impl, - { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, lnsettype: i32, bstradspath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsNameTranslate_Impl::Init(this, core::mem::transmute_copy(&lnsettype), core::mem::transmute(&bstradspath)).into() } - unsafe extern "system" fn InitEx(this: *mut core::ffi::c_void, lnsettype: i32, bstradspath: core::mem::MaybeUninit, bstruserid: core::mem::MaybeUninit, bstrdomain: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsNameTranslate_Impl, - { + unsafe extern "system" fn InitEx(this: *mut core::ffi::c_void, lnsettype: i32, bstradspath: core::mem::MaybeUninit, bstruserid: core::mem::MaybeUninit, bstrdomain: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsNameTranslate_Impl::InitEx(this, 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(this: *mut core::ffi::c_void, lnsettype: i32, bstradspath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsNameTranslate_Impl, - { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, lnsettype: i32, bstradspath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsNameTranslate_Impl::Set(this, core::mem::transmute_copy(&lnsettype), core::mem::transmute(&bstradspath)).into() } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, lnformattype: i32, pbstradspath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsNameTranslate_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, lnformattype: i32, pbstradspath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsNameTranslate_Impl::Get(this, core::mem::transmute_copy(&lnformattype)) { Ok(ok__) => { @@ -3345,17 +2568,11 @@ impl IADsNameTranslate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEx(this: *mut core::ffi::c_void, lnformattype: i32, pvar: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsNameTranslate_Impl, - { + unsafe extern "system" fn SetEx(this: *mut core::ffi::c_void, lnformattype: i32, pvar: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsNameTranslate_Impl::SetEx(this, core::mem::transmute_copy(&lnformattype), core::mem::transmute(&pvar)).into() } - unsafe extern "system" fn GetEx(this: *mut core::ffi::c_void, lnformattype: i32, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsNameTranslate_Impl, - { + unsafe extern "system" fn GetEx(this: *mut core::ffi::c_void, lnformattype: i32, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsNameTranslate_Impl::GetEx(this, core::mem::transmute_copy(&lnformattype)) { Ok(ok__) => { @@ -3389,14 +2606,8 @@ pub trait IADsNamespaces_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsNamespaces {} #[cfg(feature = "Win32_System_Com")] impl IADsNamespaces_Vtbl { - pub const fn new() -> IADsNamespaces_Vtbl - where - Identity: IADsNamespaces_Impl, - { - unsafe extern "system" fn DefaultContainer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsNamespaces_Impl, - { + pub const fn new() -> IADsNamespaces_Vtbl { + unsafe extern "system" fn DefaultContainer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsNamespaces_Impl::DefaultContainer(this) { Ok(ok__) => { @@ -3406,10 +2617,7 @@ impl IADsNamespaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultContainer(this: *mut core::ffi::c_void, bstrdefaultcontainer: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsNamespaces_Impl, - { + unsafe extern "system" fn SetDefaultContainer(this: *mut core::ffi::c_void, bstrdefaultcontainer: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsNamespaces_Impl::SetDefaultContainer(this, core::mem::transmute(&bstrdefaultcontainer)).into() } @@ -3434,14 +2642,8 @@ pub trait IADsNetAddress_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IADsNetAddress {} #[cfg(feature = "Win32_System_Com")] impl IADsNetAddress_Vtbl { - pub const fn new() -> IADsNetAddress_Vtbl - where - Identity: IADsNetAddress_Impl, - { - unsafe extern "system" fn AddressType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsNetAddress_Impl, - { + pub const fn new() -> IADsNetAddress_Vtbl { + unsafe extern "system" fn AddressType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsNetAddress_Impl::AddressType(this) { Ok(ok__) => { @@ -3451,17 +2653,11 @@ impl IADsNetAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAddressType(this: *mut core::ffi::c_void, lnaddresstype: i32) -> windows_core::HRESULT - where - Identity: IADsNetAddress_Impl, - { + unsafe extern "system" fn SetAddressType(this: *mut core::ffi::c_void, lnaddresstype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsNetAddress_Impl::SetAddressType(this, core::mem::transmute_copy(&lnaddresstype)).into() } - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsNetAddress_Impl, - { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsNetAddress_Impl::Address(this) { Ok(ok__) => { @@ -3471,10 +2667,7 @@ impl IADsNetAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAddress(this: *mut core::ffi::c_void, vaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsNetAddress_Impl, - { + unsafe extern "system" fn SetAddress(this: *mut core::ffi::c_void, vaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsNetAddress_Impl::SetAddress(this, core::mem::transmute(&vaddress)).into() } @@ -3509,14 +2702,8 @@ pub trait IADsO_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsO {} #[cfg(feature = "Win32_System_Com")] impl IADsO_Vtbl { - pub const fn new() -> IADsO_Vtbl - where - Identity: IADsO_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + pub const fn new() -> IADsO_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsO_Impl::Description(this) { Ok(ok__) => { @@ -3526,17 +2713,11 @@ impl IADsO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsO_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn LocalityName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn LocalityName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsO_Impl::LocalityName(this) { Ok(ok__) => { @@ -3546,17 +2727,11 @@ impl IADsO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalityName(this: *mut core::ffi::c_void, bstrlocalityname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn SetLocalityName(this: *mut core::ffi::c_void, bstrlocalityname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsO_Impl::SetLocalityName(this, core::mem::transmute(&bstrlocalityname)).into() } - unsafe extern "system" fn PostalAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn PostalAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsO_Impl::PostalAddress(this) { Ok(ok__) => { @@ -3566,17 +2741,11 @@ impl IADsO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPostalAddress(this: *mut core::ffi::c_void, bstrpostaladdress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn SetPostalAddress(this: *mut core::ffi::c_void, bstrpostaladdress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsO_Impl::SetPostalAddress(this, core::mem::transmute(&bstrpostaladdress)).into() } - unsafe extern "system" fn TelephoneNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn TelephoneNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsO_Impl::TelephoneNumber(this) { Ok(ok__) => { @@ -3586,17 +2755,11 @@ impl IADsO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTelephoneNumber(this: *mut core::ffi::c_void, bstrtelephonenumber: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn SetTelephoneNumber(this: *mut core::ffi::c_void, bstrtelephonenumber: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsO_Impl::SetTelephoneNumber(this, core::mem::transmute(&bstrtelephonenumber)).into() } - unsafe extern "system" fn FaxNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn FaxNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsO_Impl::FaxNumber(this) { Ok(ok__) => { @@ -3606,17 +2769,11 @@ impl IADsO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFaxNumber(this: *mut core::ffi::c_void, bstrfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn SetFaxNumber(this: *mut core::ffi::c_void, bstrfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsO_Impl::SetFaxNumber(this, core::mem::transmute(&bstrfaxnumber)).into() } - unsafe extern "system" fn SeeAlso(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn SeeAlso(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsO_Impl::SeeAlso(this) { Ok(ok__) => { @@ -3626,10 +2783,7 @@ impl IADsO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSeeAlso(this: *mut core::ffi::c_void, vseealso: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsO_Impl, - { + unsafe extern "system" fn SetSeeAlso(this: *mut core::ffi::c_void, vseealso: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsO_Impl::SetSeeAlso(this, core::mem::transmute(&vseealso)).into() } @@ -3674,14 +2828,8 @@ pub trait IADsOU_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsOU {} #[cfg(feature = "Win32_System_Com")] impl IADsOU_Vtbl { - pub const fn new() -> IADsOU_Vtbl - where - Identity: IADsOU_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + pub const fn new() -> IADsOU_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsOU_Impl::Description(this) { Ok(ok__) => { @@ -3691,17 +2839,11 @@ impl IADsOU_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsOU_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn LocalityName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn LocalityName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsOU_Impl::LocalityName(this) { Ok(ok__) => { @@ -3711,17 +2853,11 @@ impl IADsOU_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalityName(this: *mut core::ffi::c_void, bstrlocalityname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn SetLocalityName(this: *mut core::ffi::c_void, bstrlocalityname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsOU_Impl::SetLocalityName(this, core::mem::transmute(&bstrlocalityname)).into() } - unsafe extern "system" fn PostalAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn PostalAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsOU_Impl::PostalAddress(this) { Ok(ok__) => { @@ -3731,17 +2867,11 @@ impl IADsOU_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPostalAddress(this: *mut core::ffi::c_void, bstrpostaladdress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn SetPostalAddress(this: *mut core::ffi::c_void, bstrpostaladdress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsOU_Impl::SetPostalAddress(this, core::mem::transmute(&bstrpostaladdress)).into() } - unsafe extern "system" fn TelephoneNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn TelephoneNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsOU_Impl::TelephoneNumber(this) { Ok(ok__) => { @@ -3751,17 +2881,11 @@ impl IADsOU_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTelephoneNumber(this: *mut core::ffi::c_void, bstrtelephonenumber: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn SetTelephoneNumber(this: *mut core::ffi::c_void, bstrtelephonenumber: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsOU_Impl::SetTelephoneNumber(this, core::mem::transmute(&bstrtelephonenumber)).into() } - unsafe extern "system" fn FaxNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn FaxNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsOU_Impl::FaxNumber(this) { Ok(ok__) => { @@ -3771,17 +2895,11 @@ impl IADsOU_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFaxNumber(this: *mut core::ffi::c_void, bstrfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn SetFaxNumber(this: *mut core::ffi::c_void, bstrfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsOU_Impl::SetFaxNumber(this, core::mem::transmute(&bstrfaxnumber)).into() } - unsafe extern "system" fn SeeAlso(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn SeeAlso(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsOU_Impl::SeeAlso(this) { Ok(ok__) => { @@ -3791,17 +2909,11 @@ impl IADsOU_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSeeAlso(this: *mut core::ffi::c_void, vseealso: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn SetSeeAlso(this: *mut core::ffi::c_void, vseealso: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsOU_Impl::SetSeeAlso(this, core::mem::transmute(&vseealso)).into() } - unsafe extern "system" fn BusinessCategory(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn BusinessCategory(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsOU_Impl::BusinessCategory(this) { Ok(ok__) => { @@ -3811,10 +2923,7 @@ impl IADsOU_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBusinessCategory(this: *mut core::ffi::c_void, bstrbusinesscategory: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOU_Impl, - { + unsafe extern "system" fn SetBusinessCategory(this: *mut core::ffi::c_void, bstrbusinesscategory: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsOU_Impl::SetBusinessCategory(this, core::mem::transmute(&bstrbusinesscategory)).into() } @@ -3849,14 +2958,8 @@ pub trait IADsObjectOptions_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IADsObjectOptions {} #[cfg(feature = "Win32_System_Com")] impl IADsObjectOptions_Vtbl { - pub const fn new() -> IADsObjectOptions_Vtbl - where - Identity: IADsObjectOptions_Impl, - { - unsafe extern "system" fn GetOption(this: *mut core::ffi::c_void, lnoption: i32, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsObjectOptions_Impl, - { + pub const fn new() -> IADsObjectOptions_Vtbl { + unsafe extern "system" fn GetOption(this: *mut core::ffi::c_void, lnoption: i32, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsObjectOptions_Impl::GetOption(this, core::mem::transmute_copy(&lnoption)) { Ok(ok__) => { @@ -3866,10 +2969,7 @@ impl IADsObjectOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, lnoption: i32, vvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsObjectOptions_Impl, - { + unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, lnoption: i32, vvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsObjectOptions_Impl::SetOption(this, core::mem::transmute_copy(&lnoption), core::mem::transmute(&vvalue)).into() } @@ -3892,14 +2992,8 @@ pub trait IADsOctetList_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IADsOctetList {} #[cfg(feature = "Win32_System_Com")] impl IADsOctetList_Vtbl { - pub const fn new() -> IADsOctetList_Vtbl - where - Identity: IADsOctetList_Impl, - { - unsafe extern "system" fn OctetList(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOctetList_Impl, - { + pub const fn new() -> IADsOctetList_Vtbl { + unsafe extern "system" fn OctetList(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsOctetList_Impl::OctetList(this) { Ok(ok__) => { @@ -3909,10 +3003,7 @@ impl IADsOctetList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOctetList(this: *mut core::ffi::c_void, voctetlist: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsOctetList_Impl, - { + unsafe extern "system" fn SetOctetList(this: *mut core::ffi::c_void, voctetlist: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsOctetList_Impl::SetOctetList(this, core::mem::transmute(&voctetlist)).into() } @@ -3934,14 +3025,8 @@ pub trait IADsOpenDSObject_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IADsOpenDSObject {} #[cfg(feature = "Win32_System_Com")] impl IADsOpenDSObject_Vtbl { - pub const fn new() -> IADsOpenDSObject_Vtbl - where - Identity: IADsOpenDSObject_Impl, - { - unsafe extern "system" fn OpenDSObject(this: *mut core::ffi::c_void, lpszdnname: core::mem::MaybeUninit, lpszusername: core::mem::MaybeUninit, lpszpassword: core::mem::MaybeUninit, lnreserved: i32, ppoledsobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsOpenDSObject_Impl, - { + pub const fn new() -> IADsOpenDSObject_Vtbl { + unsafe extern "system" fn OpenDSObject(this: *mut core::ffi::c_void, lpszdnname: core::mem::MaybeUninit, lpszusername: core::mem::MaybeUninit, lpszpassword: core::mem::MaybeUninit, lnreserved: i32, ppoledsobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsOpenDSObject_Impl::OpenDSObject(this, core::mem::transmute(&lpszdnname), core::mem::transmute(&lpszusername), core::mem::transmute(&lpszpassword), core::mem::transmute_copy(&lnreserved)) { Ok(ok__) => { @@ -3970,14 +3055,8 @@ pub trait IADsPath_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IADsPath {} #[cfg(feature = "Win32_System_Com")] impl IADsPath_Vtbl { - pub const fn new() -> IADsPath_Vtbl - where - Identity: IADsPath_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPath_Impl, - { + pub const fn new() -> IADsPath_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPath_Impl::Type(this) { Ok(ok__) => { @@ -3987,17 +3066,11 @@ impl IADsPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, lntype: i32) -> windows_core::HRESULT - where - Identity: IADsPath_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, lntype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPath_Impl::SetType(this, core::mem::transmute_copy(&lntype)).into() } - unsafe extern "system" fn VolumeName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPath_Impl, - { + unsafe extern "system" fn VolumeName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPath_Impl::VolumeName(this) { Ok(ok__) => { @@ -4007,17 +3080,11 @@ impl IADsPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVolumeName(this: *mut core::ffi::c_void, bstrvolumename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPath_Impl, - { + unsafe extern "system" fn SetVolumeName(this: *mut core::ffi::c_void, bstrvolumename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPath_Impl::SetVolumeName(this, core::mem::transmute(&bstrvolumename)).into() } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPath_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPath_Impl::Path(this) { Ok(ok__) => { @@ -4027,10 +3094,7 @@ impl IADsPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPath_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPath_Impl::SetPath(this, core::mem::transmute(&bstrpath)).into() } @@ -4066,28 +3130,16 @@ pub trait IADsPathname_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IADsPathname {} #[cfg(feature = "Win32_System_Com")] impl IADsPathname_Vtbl { - pub const fn new() -> IADsPathname_Vtbl - where - Identity: IADsPathname_Impl, - { - unsafe extern "system" fn Set(this: *mut core::ffi::c_void, bstradspath: core::mem::MaybeUninit, lnsettype: i32) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + pub const fn new() -> IADsPathname_Vtbl { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, bstradspath: core::mem::MaybeUninit, lnsettype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPathname_Impl::Set(this, core::mem::transmute(&bstradspath), core::mem::transmute_copy(&lnsettype)).into() } - unsafe extern "system" fn SetDisplayType(this: *mut core::ffi::c_void, lndisplaytype: i32) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + unsafe extern "system" fn SetDisplayType(this: *mut core::ffi::c_void, lndisplaytype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPathname_Impl::SetDisplayType(this, core::mem::transmute_copy(&lndisplaytype)).into() } - unsafe extern "system" fn Retrieve(this: *mut core::ffi::c_void, lnformattype: i32, pbstradspath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + unsafe extern "system" fn Retrieve(this: *mut core::ffi::c_void, lnformattype: i32, pbstradspath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPathname_Impl::Retrieve(this, core::mem::transmute_copy(&lnformattype)) { Ok(ok__) => { @@ -4097,10 +3149,7 @@ impl IADsPathname_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumElements(this: *mut core::ffi::c_void, plnnumpathelements: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + unsafe extern "system" fn GetNumElements(this: *mut core::ffi::c_void, plnnumpathelements: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPathname_Impl::GetNumElements(this) { Ok(ok__) => { @@ -4110,10 +3159,7 @@ impl IADsPathname_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetElement(this: *mut core::ffi::c_void, lnelementindex: i32, pbstrelement: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + unsafe extern "system" fn GetElement(this: *mut core::ffi::c_void, lnelementindex: i32, pbstrelement: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPathname_Impl::GetElement(this, core::mem::transmute_copy(&lnelementindex)) { Ok(ok__) => { @@ -4123,24 +3169,15 @@ impl IADsPathname_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddLeafElement(this: *mut core::ffi::c_void, bstrleafelement: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + unsafe extern "system" fn AddLeafElement(this: *mut core::ffi::c_void, bstrleafelement: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPathname_Impl::AddLeafElement(this, core::mem::transmute(&bstrleafelement)).into() } - unsafe extern "system" fn RemoveLeafElement(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + unsafe extern "system" fn RemoveLeafElement(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPathname_Impl::RemoveLeafElement(this).into() } - unsafe extern "system" fn CopyPath(this: *mut core::ffi::c_void, ppadspath: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + unsafe extern "system" fn CopyPath(this: *mut core::ffi::c_void, ppadspath: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPathname_Impl::CopyPath(this) { Ok(ok__) => { @@ -4150,10 +3187,7 @@ impl IADsPathname_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEscapedElement(this: *mut core::ffi::c_void, lnreserved: i32, bstrinstr: core::mem::MaybeUninit, pbstroutstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + unsafe extern "system" fn GetEscapedElement(this: *mut core::ffi::c_void, lnreserved: i32, bstrinstr: core::mem::MaybeUninit, pbstroutstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPathname_Impl::GetEscapedElement(this, core::mem::transmute_copy(&lnreserved), core::mem::transmute(&bstrinstr)) { Ok(ok__) => { @@ -4163,10 +3197,7 @@ impl IADsPathname_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EscapedMode(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + unsafe extern "system" fn EscapedMode(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPathname_Impl::EscapedMode(this) { Ok(ok__) => { @@ -4176,10 +3207,7 @@ impl IADsPathname_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEscapedMode(this: *mut core::ffi::c_void, lnescapedmode: i32) -> windows_core::HRESULT - where - Identity: IADsPathname_Impl, - { + unsafe extern "system" fn SetEscapedMode(this: *mut core::ffi::c_void, lnescapedmode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPathname_Impl::SetEscapedMode(this, core::mem::transmute_copy(&lnescapedmode)).into() } @@ -4211,14 +3239,8 @@ pub trait IADsPostalAddress_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IADsPostalAddress {} #[cfg(feature = "Win32_System_Com")] impl IADsPostalAddress_Vtbl { - pub const fn new() -> IADsPostalAddress_Vtbl - where - Identity: IADsPostalAddress_Impl, - { - unsafe extern "system" fn PostalAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPostalAddress_Impl, - { + pub const fn new() -> IADsPostalAddress_Vtbl { + unsafe extern "system" fn PostalAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPostalAddress_Impl::PostalAddress(this) { Ok(ok__) => { @@ -4228,10 +3250,7 @@ impl IADsPostalAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPostalAddress(this: *mut core::ffi::c_void, vpostaladdress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPostalAddress_Impl, - { + unsafe extern "system" fn SetPostalAddress(this: *mut core::ffi::c_void, vpostaladdress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPostalAddress_Impl::SetPostalAddress(this, core::mem::transmute(&vpostaladdress)).into() } @@ -4270,14 +3289,8 @@ pub trait IADsPrintJob_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsPrintJob {} #[cfg(feature = "Win32_System_Com")] impl IADsPrintJob_Vtbl { - pub const fn new() -> IADsPrintJob_Vtbl - where - Identity: IADsPrintJob_Impl, - { - unsafe extern "system" fn HostPrintQueue(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + pub const fn new() -> IADsPrintJob_Vtbl { + unsafe extern "system" fn HostPrintQueue(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::HostPrintQueue(this) { Ok(ok__) => { @@ -4287,10 +3300,7 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn User(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn User(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::User(this) { Ok(ok__) => { @@ -4300,10 +3310,7 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn UserPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::UserPath(this) { Ok(ok__) => { @@ -4313,10 +3320,7 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TimeSubmitted(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn TimeSubmitted(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::TimeSubmitted(this) { Ok(ok__) => { @@ -4326,10 +3330,7 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalPages(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn TotalPages(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::TotalPages(this) { Ok(ok__) => { @@ -4339,10 +3340,7 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::Size(this) { Ok(ok__) => { @@ -4352,10 +3350,7 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::Description(this) { Ok(ok__) => { @@ -4365,17 +3360,11 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintJob_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::Priority(this) { Ok(ok__) => { @@ -4385,17 +3374,11 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lnpriority: i32) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lnpriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintJob_Impl::SetPriority(this, core::mem::transmute_copy(&lnpriority)).into() } - unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::StartTime(this) { Ok(ok__) => { @@ -4405,17 +3388,11 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, dastarttime: f64) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, dastarttime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintJob_Impl::SetStartTime(this, core::mem::transmute_copy(&dastarttime)).into() } - unsafe extern "system" fn UntilTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn UntilTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::UntilTime(this) { Ok(ok__) => { @@ -4425,17 +3402,11 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUntilTime(this: *mut core::ffi::c_void, dauntiltime: f64) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn SetUntilTime(this: *mut core::ffi::c_void, dauntiltime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintJob_Impl::SetUntilTime(this, core::mem::transmute_copy(&dauntiltime)).into() } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::Notify(this) { Ok(ok__) => { @@ -4445,17 +3416,11 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotify(this: *mut core::ffi::c_void, bstrnotify: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn SetNotify(this: *mut core::ffi::c_void, bstrnotify: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintJob_Impl::SetNotify(this, core::mem::transmute(&bstrnotify)).into() } - unsafe extern "system" fn NotifyPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn NotifyPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJob_Impl::NotifyPath(this) { Ok(ok__) => { @@ -4465,10 +3430,7 @@ impl IADsPrintJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyPath(this: *mut core::ffi::c_void, bstrnotifypath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintJob_Impl, - { + unsafe extern "system" fn SetNotifyPath(this: *mut core::ffi::c_void, bstrnotifypath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintJob_Impl::SetNotifyPath(this, core::mem::transmute(&bstrnotifypath)).into() } @@ -4512,14 +3474,8 @@ pub trait IADsPrintJobOperations_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsPrintJobOperations {} #[cfg(feature = "Win32_System_Com")] impl IADsPrintJobOperations_Vtbl { - pub const fn new() -> IADsPrintJobOperations_Vtbl - where - Identity: IADsPrintJobOperations_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPrintJobOperations_Impl, - { + pub const fn new() -> IADsPrintJobOperations_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJobOperations_Impl::Status(this) { Ok(ok__) => { @@ -4529,10 +3485,7 @@ impl IADsPrintJobOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TimeElapsed(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPrintJobOperations_Impl, - { + unsafe extern "system" fn TimeElapsed(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJobOperations_Impl::TimeElapsed(this) { Ok(ok__) => { @@ -4542,10 +3495,7 @@ impl IADsPrintJobOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PagesPrinted(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPrintJobOperations_Impl, - { + unsafe extern "system" fn PagesPrinted(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJobOperations_Impl::PagesPrinted(this) { Ok(ok__) => { @@ -4555,10 +3505,7 @@ impl IADsPrintJobOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Position(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPrintJobOperations_Impl, - { + unsafe extern "system" fn Position(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintJobOperations_Impl::Position(this) { Ok(ok__) => { @@ -4568,24 +3515,15 @@ impl IADsPrintJobOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, lnposition: i32) -> windows_core::HRESULT - where - Identity: IADsPrintJobOperations_Impl, - { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, lnposition: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintJobOperations_Impl::SetPosition(this, core::mem::transmute_copy(&lnposition)).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPrintJobOperations_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintJobOperations_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPrintJobOperations_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintJobOperations_Impl::Resume(this).into() } @@ -4637,14 +3575,8 @@ pub trait IADsPrintQueue_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsPrintQueue {} #[cfg(feature = "Win32_System_Com")] impl IADsPrintQueue_Vtbl { - pub const fn new() -> IADsPrintQueue_Vtbl - where - Identity: IADsPrintQueue_Impl, - { - unsafe extern "system" fn PrinterPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + pub const fn new() -> IADsPrintQueue_Vtbl { + unsafe extern "system" fn PrinterPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::PrinterPath(this) { Ok(ok__) => { @@ -4654,17 +3586,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrinterPath(this: *mut core::ffi::c_void, bstrprinterpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetPrinterPath(this: *mut core::ffi::c_void, bstrprinterpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetPrinterPath(this, core::mem::transmute(&bstrprinterpath)).into() } - unsafe extern "system" fn Model(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn Model(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::Model(this) { Ok(ok__) => { @@ -4674,17 +3600,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetModel(this: *mut core::ffi::c_void, bstrmodel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetModel(this: *mut core::ffi::c_void, bstrmodel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetModel(this, core::mem::transmute(&bstrmodel)).into() } - unsafe extern "system" fn Datatype(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn Datatype(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::Datatype(this) { Ok(ok__) => { @@ -4694,17 +3614,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDatatype(this: *mut core::ffi::c_void, bstrdatatype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetDatatype(this: *mut core::ffi::c_void, bstrdatatype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetDatatype(this, core::mem::transmute(&bstrdatatype)).into() } - unsafe extern "system" fn PrintProcessor(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn PrintProcessor(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::PrintProcessor(this) { Ok(ok__) => { @@ -4714,17 +3628,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintProcessor(this: *mut core::ffi::c_void, bstrprintprocessor: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetPrintProcessor(this: *mut core::ffi::c_void, bstrprintprocessor: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetPrintProcessor(this, core::mem::transmute(&bstrprintprocessor)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::Description(this) { Ok(ok__) => { @@ -4734,17 +3642,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn Location(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn Location(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::Location(this) { Ok(ok__) => { @@ -4754,17 +3656,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocation(this: *mut core::ffi::c_void, bstrlocation: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetLocation(this: *mut core::ffi::c_void, bstrlocation: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetLocation(this, core::mem::transmute(&bstrlocation)).into() } - unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::StartTime(this) { Ok(ok__) => { @@ -4774,17 +3670,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, dastarttime: f64) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, dastarttime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetStartTime(this, core::mem::transmute_copy(&dastarttime)).into() } - unsafe extern "system" fn UntilTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn UntilTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::UntilTime(this) { Ok(ok__) => { @@ -4794,17 +3684,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUntilTime(this: *mut core::ffi::c_void, dauntiltime: f64) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetUntilTime(this: *mut core::ffi::c_void, dauntiltime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetUntilTime(this, core::mem::transmute_copy(&dauntiltime)).into() } - unsafe extern "system" fn DefaultJobPriority(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn DefaultJobPriority(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::DefaultJobPriority(this) { Ok(ok__) => { @@ -4814,17 +3698,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultJobPriority(this: *mut core::ffi::c_void, lndefaultjobpriority: i32) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetDefaultJobPriority(this: *mut core::ffi::c_void, lndefaultjobpriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetDefaultJobPriority(this, core::mem::transmute_copy(&lndefaultjobpriority)).into() } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::Priority(this) { Ok(ok__) => { @@ -4834,17 +3712,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lnpriority: i32) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lnpriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetPriority(this, core::mem::transmute_copy(&lnpriority)).into() } - unsafe extern "system" fn BannerPage(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn BannerPage(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::BannerPage(this) { Ok(ok__) => { @@ -4854,17 +3726,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBannerPage(this: *mut core::ffi::c_void, bstrbannerpage: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetBannerPage(this: *mut core::ffi::c_void, bstrbannerpage: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetBannerPage(this, core::mem::transmute(&bstrbannerpage)).into() } - unsafe extern "system" fn PrintDevices(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn PrintDevices(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::PrintDevices(this) { Ok(ok__) => { @@ -4874,17 +3740,11 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintDevices(this: *mut core::ffi::c_void, vprintdevices: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetPrintDevices(this: *mut core::ffi::c_void, vprintdevices: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetPrintDevices(this, core::mem::transmute(&vprintdevices)).into() } - unsafe extern "system" fn NetAddresses(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn NetAddresses(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueue_Impl::NetAddresses(this) { Ok(ok__) => { @@ -4894,10 +3754,7 @@ impl IADsPrintQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetAddresses(this: *mut core::ffi::c_void, vnetaddresses: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPrintQueue_Impl, - { + unsafe extern "system" fn SetNetAddresses(this: *mut core::ffi::c_void, vnetaddresses: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueue_Impl::SetNetAddresses(this, core::mem::transmute(&vnetaddresses)).into() } @@ -4947,14 +3804,8 @@ pub trait IADsPrintQueueOperations_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsPrintQueueOperations {} #[cfg(feature = "Win32_System_Com")] impl IADsPrintQueueOperations_Vtbl { - pub const fn new() -> IADsPrintQueueOperations_Vtbl - where - Identity: IADsPrintQueueOperations_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPrintQueueOperations_Impl, - { + pub const fn new() -> IADsPrintQueueOperations_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueueOperations_Impl::Status(this) { Ok(ok__) => { @@ -4964,10 +3815,7 @@ impl IADsPrintQueueOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrintJobs(this: *mut core::ffi::c_void, pobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPrintQueueOperations_Impl, - { + unsafe extern "system" fn PrintJobs(this: *mut core::ffi::c_void, pobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPrintQueueOperations_Impl::PrintJobs(this) { Ok(ok__) => { @@ -4977,24 +3825,15 @@ impl IADsPrintQueueOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPrintQueueOperations_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueueOperations_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPrintQueueOperations_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueueOperations_Impl::Resume(this).into() } - unsafe extern "system" fn Purge(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPrintQueueOperations_Impl, - { + unsafe extern "system" fn Purge(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPrintQueueOperations_Impl::Purge(this).into() } @@ -5029,14 +3868,8 @@ pub trait IADsProperty_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsProperty {} #[cfg(feature = "Win32_System_Com")] impl IADsProperty_Vtbl { - pub const fn new() -> IADsProperty_Vtbl - where - Identity: IADsProperty_Impl, - { - unsafe extern "system" fn OID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + pub const fn new() -> IADsProperty_Vtbl { + unsafe extern "system" fn OID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsProperty_Impl::OID(this) { Ok(ok__) => { @@ -5046,17 +3879,11 @@ impl IADsProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOID(this: *mut core::ffi::c_void, bstroid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + unsafe extern "system" fn SetOID(this: *mut core::ffi::c_void, bstroid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsProperty_Impl::SetOID(this, core::mem::transmute(&bstroid)).into() } - unsafe extern "system" fn Syntax(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + unsafe extern "system" fn Syntax(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsProperty_Impl::Syntax(this) { Ok(ok__) => { @@ -5066,17 +3893,11 @@ impl IADsProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSyntax(this: *mut core::ffi::c_void, bstrsyntax: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + unsafe extern "system" fn SetSyntax(this: *mut core::ffi::c_void, bstrsyntax: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsProperty_Impl::SetSyntax(this, core::mem::transmute(&bstrsyntax)).into() } - unsafe extern "system" fn MaxRange(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + unsafe extern "system" fn MaxRange(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsProperty_Impl::MaxRange(this) { Ok(ok__) => { @@ -5086,17 +3907,11 @@ impl IADsProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxRange(this: *mut core::ffi::c_void, lnmaxrange: i32) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + unsafe extern "system" fn SetMaxRange(this: *mut core::ffi::c_void, lnmaxrange: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsProperty_Impl::SetMaxRange(this, core::mem::transmute_copy(&lnmaxrange)).into() } - unsafe extern "system" fn MinRange(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + unsafe extern "system" fn MinRange(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsProperty_Impl::MinRange(this) { Ok(ok__) => { @@ -5106,17 +3921,11 @@ impl IADsProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinRange(this: *mut core::ffi::c_void, lnminrange: i32) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + unsafe extern "system" fn SetMinRange(this: *mut core::ffi::c_void, lnminrange: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsProperty_Impl::SetMinRange(this, core::mem::transmute_copy(&lnminrange)).into() } - unsafe extern "system" fn MultiValued(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + unsafe extern "system" fn MultiValued(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsProperty_Impl::MultiValued(this) { Ok(ok__) => { @@ -5126,17 +3935,11 @@ impl IADsProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMultiValued(this: *mut core::ffi::c_void, fmultivalued: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + unsafe extern "system" fn SetMultiValued(this: *mut core::ffi::c_void, fmultivalued: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsProperty_Impl::SetMultiValued(this, core::mem::transmute_copy(&fmultivalued)).into() } - unsafe extern "system" fn Qualifiers(this: *mut core::ffi::c_void, ppqualifiers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsProperty_Impl, - { + unsafe extern "system" fn Qualifiers(this: *mut core::ffi::c_void, ppqualifiers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsProperty_Impl::Qualifiers(this) { Ok(ok__) => { @@ -5181,21 +3984,12 @@ pub trait IADsPropertyEntry_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IADsPropertyEntry {} #[cfg(feature = "Win32_System_Com")] impl IADsPropertyEntry_Vtbl { - pub const fn new() -> IADsPropertyEntry_Vtbl - where - Identity: IADsPropertyEntry_Impl, - { - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPropertyEntry_Impl, - { + pub const fn new() -> IADsPropertyEntry_Vtbl { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyEntry_Impl::Clear(this).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyEntry_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyEntry_Impl::Name(this) { Ok(ok__) => { @@ -5205,17 +3999,11 @@ impl IADsPropertyEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyEntry_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyEntry_Impl::SetName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn ADsType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPropertyEntry_Impl, - { + unsafe extern "system" fn ADsType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyEntry_Impl::ADsType(this) { Ok(ok__) => { @@ -5225,17 +4013,11 @@ impl IADsPropertyEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetADsType(this: *mut core::ffi::c_void, lnadstype: i32) -> windows_core::HRESULT - where - Identity: IADsPropertyEntry_Impl, - { + unsafe extern "system" fn SetADsType(this: *mut core::ffi::c_void, lnadstype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyEntry_Impl::SetADsType(this, core::mem::transmute_copy(&lnadstype)).into() } - unsafe extern "system" fn ControlCode(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPropertyEntry_Impl, - { + unsafe extern "system" fn ControlCode(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyEntry_Impl::ControlCode(this) { Ok(ok__) => { @@ -5245,17 +4027,11 @@ impl IADsPropertyEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetControlCode(this: *mut core::ffi::c_void, lncontrolcode: i32) -> windows_core::HRESULT - where - Identity: IADsPropertyEntry_Impl, - { + unsafe extern "system" fn SetControlCode(this: *mut core::ffi::c_void, lncontrolcode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyEntry_Impl::SetControlCode(this, core::mem::transmute_copy(&lncontrolcode)).into() } - unsafe extern "system" fn Values(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyEntry_Impl, - { + unsafe extern "system" fn Values(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyEntry_Impl::Values(this) { Ok(ok__) => { @@ -5265,10 +4041,7 @@ impl IADsPropertyEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValues(this: *mut core::ffi::c_void, vvalues: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyEntry_Impl, - { + unsafe extern "system" fn SetValues(this: *mut core::ffi::c_void, vvalues: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyEntry_Impl::SetValues(this, core::mem::transmute(&vvalues)).into() } @@ -5305,14 +4078,8 @@ pub trait IADsPropertyList_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IADsPropertyList {} #[cfg(feature = "Win32_System_Com")] impl IADsPropertyList_Vtbl { - pub const fn new() -> IADsPropertyList_Vtbl - where - Identity: IADsPropertyList_Impl, - { - unsafe extern "system" fn PropertyCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPropertyList_Impl, - { + pub const fn new() -> IADsPropertyList_Vtbl { + unsafe extern "system" fn PropertyCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyList_Impl::PropertyCount(this) { Ok(ok__) => { @@ -5322,31 +4089,19 @@ impl IADsPropertyList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyList_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyList_Impl::Next(this, core::mem::transmute_copy(&pvariant)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celements: i32) -> windows_core::HRESULT - where - Identity: IADsPropertyList_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celements: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyList_Impl::Skip(this, core::mem::transmute_copy(&celements)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPropertyList_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyList_Impl::Reset(this).into() } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyList_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyList_Impl::Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -5356,10 +4111,7 @@ impl IADsPropertyList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyItem(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, lnadstype: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyList_Impl, - { + unsafe extern "system" fn GetPropertyItem(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, lnadstype: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyList_Impl::GetPropertyItem(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&lnadstype)) { Ok(ok__) => { @@ -5369,24 +4121,15 @@ impl IADsPropertyList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutPropertyItem(this: *mut core::ffi::c_void, vardata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyList_Impl, - { + unsafe extern "system" fn PutPropertyItem(this: *mut core::ffi::c_void, vardata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyList_Impl::PutPropertyItem(this, core::mem::transmute(&vardata)).into() } - unsafe extern "system" fn ResetPropertyItem(this: *mut core::ffi::c_void, varentry: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyList_Impl, - { + unsafe extern "system" fn ResetPropertyItem(this: *mut core::ffi::c_void, varentry: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyList_Impl::ResetPropertyItem(this, core::mem::transmute(&varentry)).into() } - unsafe extern "system" fn PurgePropertyList(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPropertyList_Impl, - { + unsafe extern "system" fn PurgePropertyList(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyList_Impl::PurgePropertyList(this).into() } @@ -5439,21 +4182,12 @@ pub trait IADsPropertyValue_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IADsPropertyValue {} #[cfg(feature = "Win32_System_Com")] impl IADsPropertyValue_Vtbl { - pub const fn new() -> IADsPropertyValue_Vtbl - where - Identity: IADsPropertyValue_Impl, - { - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + pub const fn new() -> IADsPropertyValue_Vtbl { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::Clear(this).into() } - unsafe extern "system" fn ADsType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn ADsType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::ADsType(this) { Ok(ok__) => { @@ -5463,17 +4197,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetADsType(this: *mut core::ffi::c_void, lnadstype: i32) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetADsType(this: *mut core::ffi::c_void, lnadstype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetADsType(this, core::mem::transmute_copy(&lnadstype)).into() } - unsafe extern "system" fn DNString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn DNString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::DNString(this) { Ok(ok__) => { @@ -5483,17 +4211,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDNString(this: *mut core::ffi::c_void, bstrdnstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetDNString(this: *mut core::ffi::c_void, bstrdnstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetDNString(this, core::mem::transmute(&bstrdnstring)).into() } - unsafe extern "system" fn CaseExactString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn CaseExactString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::CaseExactString(this) { Ok(ok__) => { @@ -5503,17 +4225,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCaseExactString(this: *mut core::ffi::c_void, bstrcaseexactstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetCaseExactString(this: *mut core::ffi::c_void, bstrcaseexactstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetCaseExactString(this, core::mem::transmute(&bstrcaseexactstring)).into() } - unsafe extern "system" fn CaseIgnoreString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn CaseIgnoreString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::CaseIgnoreString(this) { Ok(ok__) => { @@ -5523,17 +4239,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCaseIgnoreString(this: *mut core::ffi::c_void, bstrcaseignorestring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetCaseIgnoreString(this: *mut core::ffi::c_void, bstrcaseignorestring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetCaseIgnoreString(this, core::mem::transmute(&bstrcaseignorestring)).into() } - unsafe extern "system" fn PrintableString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn PrintableString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::PrintableString(this) { Ok(ok__) => { @@ -5543,17 +4253,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintableString(this: *mut core::ffi::c_void, bstrprintablestring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetPrintableString(this: *mut core::ffi::c_void, bstrprintablestring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetPrintableString(this, core::mem::transmute(&bstrprintablestring)).into() } - unsafe extern "system" fn NumericString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn NumericString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::NumericString(this) { Ok(ok__) => { @@ -5563,17 +4267,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNumericString(this: *mut core::ffi::c_void, bstrnumericstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetNumericString(this: *mut core::ffi::c_void, bstrnumericstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetNumericString(this, core::mem::transmute(&bstrnumericstring)).into() } - unsafe extern "system" fn Boolean(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn Boolean(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::Boolean(this) { Ok(ok__) => { @@ -5583,17 +4281,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBoolean(this: *mut core::ffi::c_void, lnboolean: i32) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetBoolean(this: *mut core::ffi::c_void, lnboolean: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetBoolean(this, core::mem::transmute_copy(&lnboolean)).into() } - unsafe extern "system" fn Integer(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn Integer(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::Integer(this) { Ok(ok__) => { @@ -5603,17 +4295,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInteger(this: *mut core::ffi::c_void, lninteger: i32) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetInteger(this: *mut core::ffi::c_void, lninteger: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetInteger(this, core::mem::transmute_copy(&lninteger)).into() } - unsafe extern "system" fn OctetString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn OctetString(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::OctetString(this) { Ok(ok__) => { @@ -5623,17 +4309,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOctetString(this: *mut core::ffi::c_void, voctetstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetOctetString(this: *mut core::ffi::c_void, voctetstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetOctetString(this, core::mem::transmute(&voctetstring)).into() } - unsafe extern "system" fn SecurityDescriptor(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SecurityDescriptor(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::SecurityDescriptor(this) { Ok(ok__) => { @@ -5643,17 +4323,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, psecuritydescriptor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, psecuritydescriptor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetSecurityDescriptor(this, windows_core::from_raw_borrowed(&psecuritydescriptor)).into() } - unsafe extern "system" fn LargeInteger(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn LargeInteger(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::LargeInteger(this) { Ok(ok__) => { @@ -5663,17 +4337,11 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLargeInteger(this: *mut core::ffi::c_void, plargeinteger: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetLargeInteger(this: *mut core::ffi::c_void, plargeinteger: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetLargeInteger(this, windows_core::from_raw_borrowed(&plargeinteger)).into() } - unsafe extern "system" fn UTCTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn UTCTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsPropertyValue_Impl::UTCTime(this) { Ok(ok__) => { @@ -5683,10 +4351,7 @@ impl IADsPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUTCTime(this: *mut core::ffi::c_void, dautctime: f64) -> windows_core::HRESULT - where - Identity: IADsPropertyValue_Impl, - { + unsafe extern "system" fn SetUTCTime(this: *mut core::ffi::c_void, dautctime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue_Impl::SetUTCTime(this, core::mem::transmute_copy(&dautctime)).into() } @@ -5732,21 +4397,12 @@ pub trait IADsPropertyValue2_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IADsPropertyValue2 {} #[cfg(feature = "Win32_System_Com")] impl IADsPropertyValue2_Vtbl { - pub const fn new() -> IADsPropertyValue2_Vtbl - where - Identity: IADsPropertyValue2_Impl, - { - unsafe extern "system" fn GetObjectProperty(this: *mut core::ffi::c_void, lnadstype: *mut i32, pvprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue2_Impl, - { + pub const fn new() -> IADsPropertyValue2_Vtbl { + unsafe extern "system" fn GetObjectProperty(this: *mut core::ffi::c_void, lnadstype: *mut i32, pvprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue2_Impl::GetObjectProperty(this, core::mem::transmute_copy(&lnadstype), core::mem::transmute_copy(&pvprop)).into() } - unsafe extern "system" fn PutObjectProperty(this: *mut core::ffi::c_void, lnadstype: i32, vprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsPropertyValue2_Impl, - { + unsafe extern "system" fn PutObjectProperty(this: *mut core::ffi::c_void, lnadstype: i32, vprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsPropertyValue2_Impl::PutObjectProperty(this, core::mem::transmute_copy(&lnadstype), core::mem::transmute(&vprop)).into() } @@ -5777,14 +4433,8 @@ pub trait IADsReplicaPointer_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IADsReplicaPointer {} #[cfg(feature = "Win32_System_Com")] impl IADsReplicaPointer_Vtbl { - pub const fn new() -> IADsReplicaPointer_Vtbl - where - Identity: IADsReplicaPointer_Impl, - { - unsafe extern "system" fn ServerName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsReplicaPointer_Impl, - { + pub const fn new() -> IADsReplicaPointer_Vtbl { + unsafe extern "system" fn ServerName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsReplicaPointer_Impl::ServerName(this) { Ok(ok__) => { @@ -5794,17 +4444,11 @@ impl IADsReplicaPointer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerName(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsReplicaPointer_Impl, - { + unsafe extern "system" fn SetServerName(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsReplicaPointer_Impl::SetServerName(this, core::mem::transmute(&bstrservername)).into() } - unsafe extern "system" fn ReplicaType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsReplicaPointer_Impl, - { + unsafe extern "system" fn ReplicaType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsReplicaPointer_Impl::ReplicaType(this) { Ok(ok__) => { @@ -5814,17 +4458,11 @@ impl IADsReplicaPointer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReplicaType(this: *mut core::ffi::c_void, lnreplicatype: i32) -> windows_core::HRESULT - where - Identity: IADsReplicaPointer_Impl, - { + unsafe extern "system" fn SetReplicaType(this: *mut core::ffi::c_void, lnreplicatype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsReplicaPointer_Impl::SetReplicaType(this, core::mem::transmute_copy(&lnreplicatype)).into() } - unsafe extern "system" fn ReplicaNumber(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsReplicaPointer_Impl, - { + unsafe extern "system" fn ReplicaNumber(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsReplicaPointer_Impl::ReplicaNumber(this) { Ok(ok__) => { @@ -5834,17 +4472,11 @@ impl IADsReplicaPointer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReplicaNumber(this: *mut core::ffi::c_void, lnreplicanumber: i32) -> windows_core::HRESULT - where - Identity: IADsReplicaPointer_Impl, - { + unsafe extern "system" fn SetReplicaNumber(this: *mut core::ffi::c_void, lnreplicanumber: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsReplicaPointer_Impl::SetReplicaNumber(this, core::mem::transmute_copy(&lnreplicanumber)).into() } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsReplicaPointer_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsReplicaPointer_Impl::Count(this) { Ok(ok__) => { @@ -5854,17 +4486,11 @@ impl IADsReplicaPointer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCount(this: *mut core::ffi::c_void, lncount: i32) -> windows_core::HRESULT - where - Identity: IADsReplicaPointer_Impl, - { + unsafe extern "system" fn SetCount(this: *mut core::ffi::c_void, lncount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsReplicaPointer_Impl::SetCount(this, core::mem::transmute_copy(&lncount)).into() } - unsafe extern "system" fn ReplicaAddressHints(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsReplicaPointer_Impl, - { + unsafe extern "system" fn ReplicaAddressHints(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsReplicaPointer_Impl::ReplicaAddressHints(this) { Ok(ok__) => { @@ -5874,10 +4500,7 @@ impl IADsReplicaPointer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReplicaAddressHints(this: *mut core::ffi::c_void, vreplicaaddresshints: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsReplicaPointer_Impl, - { + unsafe extern "system" fn SetReplicaAddressHints(this: *mut core::ffi::c_void, vreplicaaddresshints: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsReplicaPointer_Impl::SetReplicaAddressHints(this, core::mem::transmute(&vreplicaaddresshints)).into() } @@ -5910,14 +4533,8 @@ pub trait IADsResource_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsResource {} #[cfg(feature = "Win32_System_Com")] impl IADsResource_Vtbl { - pub const fn new() -> IADsResource_Vtbl - where - Identity: IADsResource_Impl, - { - unsafe extern "system" fn User(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsResource_Impl, - { + pub const fn new() -> IADsResource_Vtbl { + unsafe extern "system" fn User(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsResource_Impl::User(this) { Ok(ok__) => { @@ -5927,10 +4544,7 @@ impl IADsResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsResource_Impl, - { + unsafe extern "system" fn UserPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsResource_Impl::UserPath(this) { Ok(ok__) => { @@ -5940,10 +4554,7 @@ impl IADsResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsResource_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsResource_Impl::Path(this) { Ok(ok__) => { @@ -5953,10 +4564,7 @@ impl IADsResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LockCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsResource_Impl, - { + unsafe extern "system" fn LockCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsResource_Impl::LockCount(this) { Ok(ok__) => { @@ -6006,14 +4614,8 @@ pub trait IADsSecurityDescriptor_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IADsSecurityDescriptor {} #[cfg(feature = "Win32_System_Com")] impl IADsSecurityDescriptor_Vtbl { - pub const fn new() -> IADsSecurityDescriptor_Vtbl - where - Identity: IADsSecurityDescriptor_Impl, - { - unsafe extern "system" fn Revision(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + pub const fn new() -> IADsSecurityDescriptor_Vtbl { + unsafe extern "system" fn Revision(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::Revision(this) { Ok(ok__) => { @@ -6023,17 +4625,11 @@ impl IADsSecurityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRevision(this: *mut core::ffi::c_void, lnrevision: i32) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SetRevision(this: *mut core::ffi::c_void, lnrevision: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityDescriptor_Impl::SetRevision(this, core::mem::transmute_copy(&lnrevision)).into() } - unsafe extern "system" fn Control(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn Control(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::Control(this) { Ok(ok__) => { @@ -6043,17 +4639,11 @@ impl IADsSecurityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetControl(this: *mut core::ffi::c_void, lncontrol: i32) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SetControl(this: *mut core::ffi::c_void, lncontrol: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityDescriptor_Impl::SetControl(this, core::mem::transmute_copy(&lncontrol)).into() } - unsafe extern "system" fn Owner(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn Owner(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::Owner(this) { Ok(ok__) => { @@ -6063,17 +4653,11 @@ impl IADsSecurityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, bstrowner: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, bstrowner: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityDescriptor_Impl::SetOwner(this, core::mem::transmute(&bstrowner)).into() } - unsafe extern "system" fn OwnerDefaulted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn OwnerDefaulted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::OwnerDefaulted(this) { Ok(ok__) => { @@ -6083,17 +4667,11 @@ impl IADsSecurityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOwnerDefaulted(this: *mut core::ffi::c_void, fownerdefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SetOwnerDefaulted(this: *mut core::ffi::c_void, fownerdefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityDescriptor_Impl::SetOwnerDefaulted(this, core::mem::transmute_copy(&fownerdefaulted)).into() } - unsafe extern "system" fn Group(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn Group(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::Group(this) { Ok(ok__) => { @@ -6103,17 +4681,11 @@ impl IADsSecurityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGroup(this: *mut core::ffi::c_void, bstrgroup: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SetGroup(this: *mut core::ffi::c_void, bstrgroup: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityDescriptor_Impl::SetGroup(this, core::mem::transmute(&bstrgroup)).into() } - unsafe extern "system" fn GroupDefaulted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn GroupDefaulted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::GroupDefaulted(this) { Ok(ok__) => { @@ -6123,17 +4695,11 @@ impl IADsSecurityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGroupDefaulted(this: *mut core::ffi::c_void, fgroupdefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SetGroupDefaulted(this: *mut core::ffi::c_void, fgroupdefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityDescriptor_Impl::SetGroupDefaulted(this, core::mem::transmute_copy(&fgroupdefaulted)).into() } - unsafe extern "system" fn DiscretionaryAcl(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn DiscretionaryAcl(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::DiscretionaryAcl(this) { Ok(ok__) => { @@ -6143,17 +4709,11 @@ impl IADsSecurityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDiscretionaryAcl(this: *mut core::ffi::c_void, pdiscretionaryacl: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SetDiscretionaryAcl(this: *mut core::ffi::c_void, pdiscretionaryacl: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityDescriptor_Impl::SetDiscretionaryAcl(this, windows_core::from_raw_borrowed(&pdiscretionaryacl)).into() } - unsafe extern "system" fn DaclDefaulted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn DaclDefaulted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::DaclDefaulted(this) { Ok(ok__) => { @@ -6163,17 +4723,11 @@ impl IADsSecurityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDaclDefaulted(this: *mut core::ffi::c_void, fdacldefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SetDaclDefaulted(this: *mut core::ffi::c_void, fdacldefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityDescriptor_Impl::SetDaclDefaulted(this, core::mem::transmute_copy(&fdacldefaulted)).into() } - unsafe extern "system" fn SystemAcl(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SystemAcl(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::SystemAcl(this) { Ok(ok__) => { @@ -6183,17 +4737,11 @@ impl IADsSecurityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSystemAcl(this: *mut core::ffi::c_void, psystemacl: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SetSystemAcl(this: *mut core::ffi::c_void, psystemacl: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityDescriptor_Impl::SetSystemAcl(this, windows_core::from_raw_borrowed(&psystemacl)).into() } - unsafe extern "system" fn SaclDefaulted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SaclDefaulted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::SaclDefaulted(this) { Ok(ok__) => { @@ -6203,17 +4751,11 @@ impl IADsSecurityDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSaclDefaulted(this: *mut core::ffi::c_void, fsacldefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn SetSaclDefaulted(this: *mut core::ffi::c_void, fsacldefaulted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityDescriptor_Impl::SetSaclDefaulted(this, core::mem::transmute_copy(&fsacldefaulted)).into() } - unsafe extern "system" fn CopySecurityDescriptor(this: *mut core::ffi::c_void, ppsecuritydescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsSecurityDescriptor_Impl, - { + unsafe extern "system" fn CopySecurityDescriptor(this: *mut core::ffi::c_void, ppsecuritydescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityDescriptor_Impl::CopySecurityDescriptor(this) { Ok(ok__) => { @@ -6264,14 +4806,8 @@ pub trait IADsSecurityUtility_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IADsSecurityUtility {} #[cfg(feature = "Win32_System_Com")] impl IADsSecurityUtility_Vtbl { - pub const fn new() -> IADsSecurityUtility_Vtbl - where - Identity: IADsSecurityUtility_Impl, - { - unsafe extern "system" fn GetSecurityDescriptor(this: *mut core::ffi::c_void, varpath: core::mem::MaybeUninit, lpathformat: i32, lformat: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsSecurityUtility_Impl, - { + pub const fn new() -> IADsSecurityUtility_Vtbl { + unsafe extern "system" fn GetSecurityDescriptor(this: *mut core::ffi::c_void, varpath: core::mem::MaybeUninit, lpathformat: i32, lformat: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityUtility_Impl::GetSecurityDescriptor(this, core::mem::transmute(&varpath), core::mem::transmute_copy(&lpathformat), core::mem::transmute_copy(&lformat)) { Ok(ok__) => { @@ -6281,17 +4817,11 @@ impl IADsSecurityUtility_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, varpath: core::mem::MaybeUninit, lpathformat: i32, vardata: core::mem::MaybeUninit, ldataformat: i32) -> windows_core::HRESULT - where - Identity: IADsSecurityUtility_Impl, - { + unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, varpath: core::mem::MaybeUninit, lpathformat: i32, vardata: core::mem::MaybeUninit, ldataformat: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityUtility_Impl::SetSecurityDescriptor(this, core::mem::transmute(&varpath), core::mem::transmute_copy(&lpathformat), core::mem::transmute(&vardata), core::mem::transmute_copy(&ldataformat)).into() } - unsafe extern "system" fn ConvertSecurityDescriptor(this: *mut core::ffi::c_void, varsd: core::mem::MaybeUninit, ldataformat: i32, loutformat: i32, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsSecurityUtility_Impl, - { + unsafe extern "system" fn ConvertSecurityDescriptor(this: *mut core::ffi::c_void, varsd: core::mem::MaybeUninit, ldataformat: i32, loutformat: i32, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityUtility_Impl::ConvertSecurityDescriptor(this, core::mem::transmute(&varsd), core::mem::transmute_copy(&ldataformat), core::mem::transmute_copy(&loutformat)) { Ok(ok__) => { @@ -6301,10 +4831,7 @@ impl IADsSecurityUtility_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SecurityMask(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsSecurityUtility_Impl, - { + unsafe extern "system" fn SecurityMask(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSecurityUtility_Impl::SecurityMask(this) { Ok(ok__) => { @@ -6314,10 +4841,7 @@ impl IADsSecurityUtility_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityMask(this: *mut core::ffi::c_void, lnsecuritymask: i32) -> windows_core::HRESULT - where - Identity: IADsSecurityUtility_Impl, - { + unsafe extern "system" fn SetSecurityMask(this: *mut core::ffi::c_void, lnsecuritymask: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSecurityUtility_Impl::SetSecurityMask(this, core::mem::transmute_copy(&lnsecuritymask)).into() } @@ -6365,14 +4889,8 @@ pub trait IADsService_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsService {} #[cfg(feature = "Win32_System_Com")] impl IADsService_Vtbl { - pub const fn new() -> IADsService_Vtbl - where - Identity: IADsService_Impl, - { - unsafe extern "system" fn HostComputer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + pub const fn new() -> IADsService_Vtbl { + unsafe extern "system" fn HostComputer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::HostComputer(this) { Ok(ok__) => { @@ -6382,17 +4900,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHostComputer(this: *mut core::ffi::c_void, bstrhostcomputer: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetHostComputer(this: *mut core::ffi::c_void, bstrhostcomputer: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetHostComputer(this, core::mem::transmute(&bstrhostcomputer)).into() } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::DisplayName(this) { Ok(ok__) => { @@ -6402,17 +4914,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, bstrdisplayname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, bstrdisplayname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetDisplayName(this, core::mem::transmute(&bstrdisplayname)).into() } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::Version(this) { Ok(ok__) => { @@ -6422,17 +4928,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, bstrversion: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, bstrversion: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetVersion(this, core::mem::transmute(&bstrversion)).into() } - unsafe extern "system" fn ServiceType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn ServiceType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::ServiceType(this) { Ok(ok__) => { @@ -6442,17 +4942,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceType(this: *mut core::ffi::c_void, lnservicetype: i32) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetServiceType(this: *mut core::ffi::c_void, lnservicetype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetServiceType(this, core::mem::transmute_copy(&lnservicetype)).into() } - unsafe extern "system" fn StartType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn StartType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::StartType(this) { Ok(ok__) => { @@ -6462,17 +4956,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartType(this: *mut core::ffi::c_void, lnstarttype: i32) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetStartType(this: *mut core::ffi::c_void, lnstarttype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetStartType(this, core::mem::transmute_copy(&lnstarttype)).into() } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::Path(this) { Ok(ok__) => { @@ -6482,17 +4970,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetPath(this, core::mem::transmute(&bstrpath)).into() } - unsafe extern "system" fn StartupParameters(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn StartupParameters(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::StartupParameters(this) { Ok(ok__) => { @@ -6502,17 +4984,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartupParameters(this: *mut core::ffi::c_void, bstrstartupparameters: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetStartupParameters(this: *mut core::ffi::c_void, bstrstartupparameters: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetStartupParameters(this, core::mem::transmute(&bstrstartupparameters)).into() } - unsafe extern "system" fn ErrorControl(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn ErrorControl(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::ErrorControl(this) { Ok(ok__) => { @@ -6522,17 +4998,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetErrorControl(this: *mut core::ffi::c_void, lnerrorcontrol: i32) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetErrorControl(this: *mut core::ffi::c_void, lnerrorcontrol: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetErrorControl(this, core::mem::transmute_copy(&lnerrorcontrol)).into() } - unsafe extern "system" fn LoadOrderGroup(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn LoadOrderGroup(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::LoadOrderGroup(this) { Ok(ok__) => { @@ -6542,17 +5012,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLoadOrderGroup(this: *mut core::ffi::c_void, bstrloadordergroup: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetLoadOrderGroup(this: *mut core::ffi::c_void, bstrloadordergroup: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetLoadOrderGroup(this, core::mem::transmute(&bstrloadordergroup)).into() } - unsafe extern "system" fn ServiceAccountName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn ServiceAccountName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::ServiceAccountName(this) { Ok(ok__) => { @@ -6562,17 +5026,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceAccountName(this: *mut core::ffi::c_void, bstrserviceaccountname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetServiceAccountName(this: *mut core::ffi::c_void, bstrserviceaccountname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetServiceAccountName(this, core::mem::transmute(&bstrserviceaccountname)).into() } - unsafe extern "system" fn ServiceAccountPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn ServiceAccountPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::ServiceAccountPath(this) { Ok(ok__) => { @@ -6582,17 +5040,11 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceAccountPath(this: *mut core::ffi::c_void, bstrserviceaccountpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetServiceAccountPath(this: *mut core::ffi::c_void, bstrserviceaccountpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetServiceAccountPath(this, core::mem::transmute(&bstrserviceaccountpath)).into() } - unsafe extern "system" fn Dependencies(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn Dependencies(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsService_Impl::Dependencies(this) { Ok(ok__) => { @@ -6602,10 +5054,7 @@ impl IADsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDependencies(this: *mut core::ffi::c_void, vdependencies: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsService_Impl, - { + unsafe extern "system" fn SetDependencies(this: *mut core::ffi::c_void, vdependencies: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsService_Impl::SetDependencies(this, core::mem::transmute(&vdependencies)).into() } @@ -6654,14 +5103,8 @@ pub trait IADsServiceOperations_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsServiceOperations {} #[cfg(feature = "Win32_System_Com")] impl IADsServiceOperations_Vtbl { - pub const fn new() -> IADsServiceOperations_Vtbl - where - Identity: IADsServiceOperations_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsServiceOperations_Impl, - { + pub const fn new() -> IADsServiceOperations_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsServiceOperations_Impl::Status(this) { Ok(ok__) => { @@ -6671,38 +5114,23 @@ impl IADsServiceOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsServiceOperations_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsServiceOperations_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsServiceOperations_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsServiceOperations_Impl::Stop(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsServiceOperations_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsServiceOperations_Impl::Pause(this).into() } - unsafe extern "system" fn Continue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsServiceOperations_Impl, - { + unsafe extern "system" fn Continue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsServiceOperations_Impl::Continue(this).into() } - unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, bstrnewpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsServiceOperations_Impl, - { + unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, bstrnewpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsServiceOperations_Impl::SetPassword(this, core::mem::transmute(&bstrnewpassword)).into() } @@ -6733,14 +5161,8 @@ pub trait IADsSession_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsSession {} #[cfg(feature = "Win32_System_Com")] impl IADsSession_Vtbl { - pub const fn new() -> IADsSession_Vtbl - where - Identity: IADsSession_Impl, - { - unsafe extern "system" fn User(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsSession_Impl, - { + pub const fn new() -> IADsSession_Vtbl { + unsafe extern "system" fn User(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSession_Impl::User(this) { Ok(ok__) => { @@ -6750,10 +5172,7 @@ impl IADsSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsSession_Impl, - { + unsafe extern "system" fn UserPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSession_Impl::UserPath(this) { Ok(ok__) => { @@ -6763,10 +5182,7 @@ impl IADsSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Computer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsSession_Impl, - { + unsafe extern "system" fn Computer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSession_Impl::Computer(this) { Ok(ok__) => { @@ -6776,10 +5192,7 @@ impl IADsSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputerPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsSession_Impl, - { + unsafe extern "system" fn ComputerPath(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSession_Impl::ComputerPath(this) { Ok(ok__) => { @@ -6789,10 +5202,7 @@ impl IADsSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectTime(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsSession_Impl, - { + unsafe extern "system" fn ConnectTime(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSession_Impl::ConnectTime(this) { Ok(ok__) => { @@ -6802,10 +5212,7 @@ impl IADsSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IdleTime(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsSession_Impl, - { + unsafe extern "system" fn IdleTime(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSession_Impl::IdleTime(this) { Ok(ok__) => { @@ -6838,14 +5245,8 @@ pub trait IADsSyntax_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsSyntax {} #[cfg(feature = "Win32_System_Com")] impl IADsSyntax_Vtbl { - pub const fn new() -> IADsSyntax_Vtbl - where - Identity: IADsSyntax_Impl, - { - unsafe extern "system" fn OleAutoDataType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsSyntax_Impl, - { + pub const fn new() -> IADsSyntax_Vtbl { + unsafe extern "system" fn OleAutoDataType(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsSyntax_Impl::OleAutoDataType(this) { Ok(ok__) => { @@ -6855,10 +5256,7 @@ impl IADsSyntax_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOleAutoDataType(this: *mut core::ffi::c_void, lnoleautodatatype: i32) -> windows_core::HRESULT - where - Identity: IADsSyntax_Impl, - { + unsafe extern "system" fn SetOleAutoDataType(this: *mut core::ffi::c_void, lnoleautodatatype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsSyntax_Impl::SetOleAutoDataType(this, core::mem::transmute_copy(&lnoleautodatatype)).into() } @@ -6883,14 +5281,8 @@ pub trait IADsTimestamp_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IADsTimestamp {} #[cfg(feature = "Win32_System_Com")] impl IADsTimestamp_Vtbl { - pub const fn new() -> IADsTimestamp_Vtbl - where - Identity: IADsTimestamp_Impl, - { - unsafe extern "system" fn WholeSeconds(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTimestamp_Impl, - { + pub const fn new() -> IADsTimestamp_Vtbl { + unsafe extern "system" fn WholeSeconds(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTimestamp_Impl::WholeSeconds(this) { Ok(ok__) => { @@ -6900,17 +5292,11 @@ impl IADsTimestamp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWholeSeconds(this: *mut core::ffi::c_void, lnwholeseconds: i32) -> windows_core::HRESULT - where - Identity: IADsTimestamp_Impl, - { + unsafe extern "system" fn SetWholeSeconds(this: *mut core::ffi::c_void, lnwholeseconds: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTimestamp_Impl::SetWholeSeconds(this, core::mem::transmute_copy(&lnwholeseconds)).into() } - unsafe extern "system" fn EventID(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTimestamp_Impl, - { + unsafe extern "system" fn EventID(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTimestamp_Impl::EventID(this) { Ok(ok__) => { @@ -6920,10 +5306,7 @@ impl IADsTimestamp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventID(this: *mut core::ffi::c_void, lneventid: i32) -> windows_core::HRESULT - where - Identity: IADsTimestamp_Impl, - { + unsafe extern "system" fn SetEventID(this: *mut core::ffi::c_void, lneventid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTimestamp_Impl::SetEventID(this, core::mem::transmute_copy(&lneventid)).into() } @@ -6952,14 +5335,8 @@ pub trait IADsTypedName_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IADsTypedName {} #[cfg(feature = "Win32_System_Com")] impl IADsTypedName_Vtbl { - pub const fn new() -> IADsTypedName_Vtbl - where - Identity: IADsTypedName_Impl, - { - unsafe extern "system" fn ObjectName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTypedName_Impl, - { + pub const fn new() -> IADsTypedName_Vtbl { + unsafe extern "system" fn ObjectName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTypedName_Impl::ObjectName(this) { Ok(ok__) => { @@ -6969,17 +5346,11 @@ impl IADsTypedName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectName(this: *mut core::ffi::c_void, bstrobjectname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTypedName_Impl, - { + unsafe extern "system" fn SetObjectName(this: *mut core::ffi::c_void, bstrobjectname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTypedName_Impl::SetObjectName(this, core::mem::transmute(&bstrobjectname)).into() } - unsafe extern "system" fn Level(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTypedName_Impl, - { + unsafe extern "system" fn Level(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTypedName_Impl::Level(this) { Ok(ok__) => { @@ -6989,17 +5360,11 @@ impl IADsTypedName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLevel(this: *mut core::ffi::c_void, lnlevel: i32) -> windows_core::HRESULT - where - Identity: IADsTypedName_Impl, - { + unsafe extern "system" fn SetLevel(this: *mut core::ffi::c_void, lnlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTypedName_Impl::SetLevel(this, core::mem::transmute_copy(&lnlevel)).into() } - unsafe extern "system" fn Interval(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTypedName_Impl, - { + unsafe extern "system" fn Interval(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTypedName_Impl::Interval(this) { Ok(ok__) => { @@ -7009,10 +5374,7 @@ impl IADsTypedName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterval(this: *mut core::ffi::c_void, lninterval: i32) -> windows_core::HRESULT - where - Identity: IADsTypedName_Impl, - { + unsafe extern "system" fn SetInterval(this: *mut core::ffi::c_void, lninterval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTypedName_Impl::SetInterval(this, core::mem::transmute_copy(&lninterval)).into() } @@ -7128,14 +5490,8 @@ pub trait IADsUser_Impl: Sized + IADs_Impl { impl windows_core::RuntimeName for IADsUser {} #[cfg(feature = "Win32_System_Com")] impl IADsUser_Vtbl { - pub const fn new() -> IADsUser_Vtbl - where - Identity: IADsUser_Impl, - { - unsafe extern "system" fn BadLoginAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + pub const fn new() -> IADsUser_Vtbl { + unsafe extern "system" fn BadLoginAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::BadLoginAddress(this) { Ok(ok__) => { @@ -7145,10 +5501,7 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BadLoginCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn BadLoginCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::BadLoginCount(this) { Ok(ok__) => { @@ -7158,10 +5511,7 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastLogin(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn LastLogin(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::LastLogin(this) { Ok(ok__) => { @@ -7171,10 +5521,7 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastLogoff(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn LastLogoff(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::LastLogoff(this) { Ok(ok__) => { @@ -7184,10 +5531,7 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastFailedLogin(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn LastFailedLogin(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::LastFailedLogin(this) { Ok(ok__) => { @@ -7197,10 +5541,7 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PasswordLastChanged(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn PasswordLastChanged(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::PasswordLastChanged(this) { Ok(ok__) => { @@ -7210,10 +5551,7 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::Description(this) { Ok(ok__) => { @@ -7223,17 +5561,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn Division(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn Division(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::Division(this) { Ok(ok__) => { @@ -7243,17 +5575,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDivision(this: *mut core::ffi::c_void, bstrdivision: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetDivision(this: *mut core::ffi::c_void, bstrdivision: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetDivision(this, core::mem::transmute(&bstrdivision)).into() } - unsafe extern "system" fn Department(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn Department(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::Department(this) { Ok(ok__) => { @@ -7263,17 +5589,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDepartment(this: *mut core::ffi::c_void, bstrdepartment: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetDepartment(this: *mut core::ffi::c_void, bstrdepartment: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetDepartment(this, core::mem::transmute(&bstrdepartment)).into() } - unsafe extern "system" fn EmployeeID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn EmployeeID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::EmployeeID(this) { Ok(ok__) => { @@ -7283,17 +5603,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEmployeeID(this: *mut core::ffi::c_void, bstremployeeid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetEmployeeID(this: *mut core::ffi::c_void, bstremployeeid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetEmployeeID(this, core::mem::transmute(&bstremployeeid)).into() } - unsafe extern "system" fn FullName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn FullName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::FullName(this) { Ok(ok__) => { @@ -7303,17 +5617,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFullName(this: *mut core::ffi::c_void, bstrfullname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetFullName(this: *mut core::ffi::c_void, bstrfullname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetFullName(this, core::mem::transmute(&bstrfullname)).into() } - unsafe extern "system" fn FirstName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn FirstName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::FirstName(this) { Ok(ok__) => { @@ -7323,17 +5631,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFirstName(this: *mut core::ffi::c_void, bstrfirstname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetFirstName(this: *mut core::ffi::c_void, bstrfirstname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetFirstName(this, core::mem::transmute(&bstrfirstname)).into() } - unsafe extern "system" fn LastName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn LastName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::LastName(this) { Ok(ok__) => { @@ -7343,17 +5645,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLastName(this: *mut core::ffi::c_void, bstrlastname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetLastName(this: *mut core::ffi::c_void, bstrlastname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetLastName(this, core::mem::transmute(&bstrlastname)).into() } - unsafe extern "system" fn OtherName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn OtherName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::OtherName(this) { Ok(ok__) => { @@ -7363,17 +5659,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherName(this: *mut core::ffi::c_void, bstrothername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetOtherName(this: *mut core::ffi::c_void, bstrothername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetOtherName(this, core::mem::transmute(&bstrothername)).into() } - unsafe extern "system" fn NamePrefix(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn NamePrefix(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::NamePrefix(this) { Ok(ok__) => { @@ -7383,17 +5673,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNamePrefix(this: *mut core::ffi::c_void, bstrnameprefix: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetNamePrefix(this: *mut core::ffi::c_void, bstrnameprefix: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetNamePrefix(this, core::mem::transmute(&bstrnameprefix)).into() } - unsafe extern "system" fn NameSuffix(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn NameSuffix(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::NameSuffix(this) { Ok(ok__) => { @@ -7403,17 +5687,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNameSuffix(this: *mut core::ffi::c_void, bstrnamesuffix: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetNameSuffix(this: *mut core::ffi::c_void, bstrnamesuffix: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetNameSuffix(this, core::mem::transmute(&bstrnamesuffix)).into() } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::Title(this) { Ok(ok__) => { @@ -7423,17 +5701,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, bstrtitle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, bstrtitle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetTitle(this, core::mem::transmute(&bstrtitle)).into() } - unsafe extern "system" fn Manager(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn Manager(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::Manager(this) { Ok(ok__) => { @@ -7443,17 +5715,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetManager(this: *mut core::ffi::c_void, bstrmanager: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetManager(this: *mut core::ffi::c_void, bstrmanager: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetManager(this, core::mem::transmute(&bstrmanager)).into() } - unsafe extern "system" fn TelephoneHome(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn TelephoneHome(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::TelephoneHome(this) { Ok(ok__) => { @@ -7463,17 +5729,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTelephoneHome(this: *mut core::ffi::c_void, vtelephonehome: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetTelephoneHome(this: *mut core::ffi::c_void, vtelephonehome: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetTelephoneHome(this, core::mem::transmute(&vtelephonehome)).into() } - unsafe extern "system" fn TelephoneMobile(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn TelephoneMobile(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::TelephoneMobile(this) { Ok(ok__) => { @@ -7483,17 +5743,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTelephoneMobile(this: *mut core::ffi::c_void, vtelephonemobile: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetTelephoneMobile(this: *mut core::ffi::c_void, vtelephonemobile: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetTelephoneMobile(this, core::mem::transmute(&vtelephonemobile)).into() } - unsafe extern "system" fn TelephoneNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn TelephoneNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::TelephoneNumber(this) { Ok(ok__) => { @@ -7503,17 +5757,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTelephoneNumber(this: *mut core::ffi::c_void, vtelephonenumber: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetTelephoneNumber(this: *mut core::ffi::c_void, vtelephonenumber: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetTelephoneNumber(this, core::mem::transmute(&vtelephonenumber)).into() } - unsafe extern "system" fn TelephonePager(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn TelephonePager(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::TelephonePager(this) { Ok(ok__) => { @@ -7523,17 +5771,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTelephonePager(this: *mut core::ffi::c_void, vtelephonepager: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetTelephonePager(this: *mut core::ffi::c_void, vtelephonepager: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetTelephonePager(this, core::mem::transmute(&vtelephonepager)).into() } - unsafe extern "system" fn FaxNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn FaxNumber(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::FaxNumber(this) { Ok(ok__) => { @@ -7543,17 +5785,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFaxNumber(this: *mut core::ffi::c_void, vfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetFaxNumber(this: *mut core::ffi::c_void, vfaxnumber: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetFaxNumber(this, core::mem::transmute(&vfaxnumber)).into() } - unsafe extern "system" fn OfficeLocations(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn OfficeLocations(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::OfficeLocations(this) { Ok(ok__) => { @@ -7563,17 +5799,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOfficeLocations(this: *mut core::ffi::c_void, vofficelocations: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetOfficeLocations(this: *mut core::ffi::c_void, vofficelocations: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetOfficeLocations(this, core::mem::transmute(&vofficelocations)).into() } - unsafe extern "system" fn PostalAddresses(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn PostalAddresses(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::PostalAddresses(this) { Ok(ok__) => { @@ -7583,17 +5813,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPostalAddresses(this: *mut core::ffi::c_void, vpostaladdresses: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetPostalAddresses(this: *mut core::ffi::c_void, vpostaladdresses: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetPostalAddresses(this, core::mem::transmute(&vpostaladdresses)).into() } - unsafe extern "system" fn PostalCodes(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn PostalCodes(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::PostalCodes(this) { Ok(ok__) => { @@ -7603,17 +5827,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPostalCodes(this: *mut core::ffi::c_void, vpostalcodes: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetPostalCodes(this: *mut core::ffi::c_void, vpostalcodes: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetPostalCodes(this, core::mem::transmute(&vpostalcodes)).into() } - unsafe extern "system" fn SeeAlso(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SeeAlso(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::SeeAlso(this) { Ok(ok__) => { @@ -7623,17 +5841,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSeeAlso(this: *mut core::ffi::c_void, vseealso: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetSeeAlso(this: *mut core::ffi::c_void, vseealso: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetSeeAlso(this, core::mem::transmute(&vseealso)).into() } - unsafe extern "system" fn AccountDisabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn AccountDisabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::AccountDisabled(this) { Ok(ok__) => { @@ -7643,17 +5855,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccountDisabled(this: *mut core::ffi::c_void, faccountdisabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetAccountDisabled(this: *mut core::ffi::c_void, faccountdisabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetAccountDisabled(this, core::mem::transmute_copy(&faccountdisabled)).into() } - unsafe extern "system" fn AccountExpirationDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn AccountExpirationDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::AccountExpirationDate(this) { Ok(ok__) => { @@ -7663,17 +5869,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccountExpirationDate(this: *mut core::ffi::c_void, daaccountexpirationdate: f64) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetAccountExpirationDate(this: *mut core::ffi::c_void, daaccountexpirationdate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetAccountExpirationDate(this, core::mem::transmute_copy(&daaccountexpirationdate)).into() } - unsafe extern "system" fn GraceLoginsAllowed(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn GraceLoginsAllowed(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::GraceLoginsAllowed(this) { Ok(ok__) => { @@ -7683,17 +5883,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGraceLoginsAllowed(this: *mut core::ffi::c_void, lngraceloginsallowed: i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetGraceLoginsAllowed(this: *mut core::ffi::c_void, lngraceloginsallowed: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetGraceLoginsAllowed(this, core::mem::transmute_copy(&lngraceloginsallowed)).into() } - unsafe extern "system" fn GraceLoginsRemaining(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn GraceLoginsRemaining(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::GraceLoginsRemaining(this) { Ok(ok__) => { @@ -7703,17 +5897,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGraceLoginsRemaining(this: *mut core::ffi::c_void, lngraceloginsremaining: i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetGraceLoginsRemaining(this: *mut core::ffi::c_void, lngraceloginsremaining: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetGraceLoginsRemaining(this, core::mem::transmute_copy(&lngraceloginsremaining)).into() } - unsafe extern "system" fn IsAccountLocked(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn IsAccountLocked(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::IsAccountLocked(this) { Ok(ok__) => { @@ -7723,17 +5911,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsAccountLocked(this: *mut core::ffi::c_void, fisaccountlocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetIsAccountLocked(this: *mut core::ffi::c_void, fisaccountlocked: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetIsAccountLocked(this, core::mem::transmute_copy(&fisaccountlocked)).into() } - unsafe extern "system" fn LoginHours(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn LoginHours(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::LoginHours(this) { Ok(ok__) => { @@ -7743,17 +5925,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLoginHours(this: *mut core::ffi::c_void, vloginhours: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetLoginHours(this: *mut core::ffi::c_void, vloginhours: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetLoginHours(this, core::mem::transmute(&vloginhours)).into() } - unsafe extern "system" fn LoginWorkstations(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn LoginWorkstations(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::LoginWorkstations(this) { Ok(ok__) => { @@ -7763,17 +5939,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLoginWorkstations(this: *mut core::ffi::c_void, vloginworkstations: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetLoginWorkstations(this: *mut core::ffi::c_void, vloginworkstations: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetLoginWorkstations(this, core::mem::transmute(&vloginworkstations)).into() } - unsafe extern "system" fn MaxLogins(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn MaxLogins(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::MaxLogins(this) { Ok(ok__) => { @@ -7783,17 +5953,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxLogins(this: *mut core::ffi::c_void, lnmaxlogins: i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetMaxLogins(this: *mut core::ffi::c_void, lnmaxlogins: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetMaxLogins(this, core::mem::transmute_copy(&lnmaxlogins)).into() } - unsafe extern "system" fn MaxStorage(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn MaxStorage(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::MaxStorage(this) { Ok(ok__) => { @@ -7803,17 +5967,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxStorage(this: *mut core::ffi::c_void, lnmaxstorage: i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetMaxStorage(this: *mut core::ffi::c_void, lnmaxstorage: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetMaxStorage(this, core::mem::transmute_copy(&lnmaxstorage)).into() } - unsafe extern "system" fn PasswordExpirationDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn PasswordExpirationDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::PasswordExpirationDate(this) { Ok(ok__) => { @@ -7823,17 +5981,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPasswordExpirationDate(this: *mut core::ffi::c_void, dapasswordexpirationdate: f64) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetPasswordExpirationDate(this: *mut core::ffi::c_void, dapasswordexpirationdate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetPasswordExpirationDate(this, core::mem::transmute_copy(&dapasswordexpirationdate)).into() } - unsafe extern "system" fn PasswordMinimumLength(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn PasswordMinimumLength(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::PasswordMinimumLength(this) { Ok(ok__) => { @@ -7843,17 +5995,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPasswordMinimumLength(this: *mut core::ffi::c_void, lnpasswordminimumlength: i32) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetPasswordMinimumLength(this: *mut core::ffi::c_void, lnpasswordminimumlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetPasswordMinimumLength(this, core::mem::transmute_copy(&lnpasswordminimumlength)).into() } - unsafe extern "system" fn PasswordRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn PasswordRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::PasswordRequired(this) { Ok(ok__) => { @@ -7863,17 +6009,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPasswordRequired(this: *mut core::ffi::c_void, fpasswordrequired: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetPasswordRequired(this: *mut core::ffi::c_void, fpasswordrequired: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetPasswordRequired(this, core::mem::transmute_copy(&fpasswordrequired)).into() } - unsafe extern "system" fn RequireUniquePassword(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn RequireUniquePassword(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::RequireUniquePassword(this) { Ok(ok__) => { @@ -7883,17 +6023,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRequireUniquePassword(this: *mut core::ffi::c_void, frequireuniquepassword: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetRequireUniquePassword(this: *mut core::ffi::c_void, frequireuniquepassword: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetRequireUniquePassword(this, core::mem::transmute_copy(&frequireuniquepassword)).into() } - unsafe extern "system" fn EmailAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn EmailAddress(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::EmailAddress(this) { Ok(ok__) => { @@ -7903,17 +6037,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEmailAddress(this: *mut core::ffi::c_void, bstremailaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetEmailAddress(this: *mut core::ffi::c_void, bstremailaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetEmailAddress(this, core::mem::transmute(&bstremailaddress)).into() } - unsafe extern "system" fn HomeDirectory(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn HomeDirectory(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::HomeDirectory(this) { Ok(ok__) => { @@ -7923,17 +6051,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHomeDirectory(this: *mut core::ffi::c_void, bstrhomedirectory: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetHomeDirectory(this: *mut core::ffi::c_void, bstrhomedirectory: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetHomeDirectory(this, core::mem::transmute(&bstrhomedirectory)).into() } - unsafe extern "system" fn Languages(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn Languages(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::Languages(this) { Ok(ok__) => { @@ -7943,17 +6065,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLanguages(this: *mut core::ffi::c_void, vlanguages: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetLanguages(this: *mut core::ffi::c_void, vlanguages: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetLanguages(this, core::mem::transmute(&vlanguages)).into() } - unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::Profile(this) { Ok(ok__) => { @@ -7963,17 +6079,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProfile(this: *mut core::ffi::c_void, bstrprofile: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetProfile(this: *mut core::ffi::c_void, bstrprofile: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetProfile(this, core::mem::transmute(&bstrprofile)).into() } - unsafe extern "system" fn LoginScript(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn LoginScript(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::LoginScript(this) { Ok(ok__) => { @@ -7983,17 +6093,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLoginScript(this: *mut core::ffi::c_void, bstrloginscript: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetLoginScript(this: *mut core::ffi::c_void, bstrloginscript: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetLoginScript(this, core::mem::transmute(&bstrloginscript)).into() } - unsafe extern "system" fn Picture(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn Picture(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::Picture(this) { Ok(ok__) => { @@ -8003,17 +6107,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPicture(this: *mut core::ffi::c_void, vpicture: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetPicture(this: *mut core::ffi::c_void, vpicture: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetPicture(this, core::mem::transmute(&vpicture)).into() } - unsafe extern "system" fn HomePage(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn HomePage(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::HomePage(this) { Ok(ok__) => { @@ -8023,17 +6121,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHomePage(this: *mut core::ffi::c_void, bstrhomepage: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetHomePage(this: *mut core::ffi::c_void, bstrhomepage: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetHomePage(this, core::mem::transmute(&bstrhomepage)).into() } - unsafe extern "system" fn Groups(this: *mut core::ffi::c_void, ppgroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn Groups(this: *mut core::ffi::c_void, ppgroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsUser_Impl::Groups(this) { Ok(ok__) => { @@ -8043,17 +6135,11 @@ impl IADsUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, newpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, newpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::SetPassword(this, core::mem::transmute(&newpassword)).into() } - unsafe extern "system" fn ChangePassword(this: *mut core::ffi::c_void, bstroldpassword: core::mem::MaybeUninit, bstrnewpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsUser_Impl, - { + unsafe extern "system" fn ChangePassword(this: *mut core::ffi::c_void, bstroldpassword: core::mem::MaybeUninit, bstrnewpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsUser_Impl::ChangePassword(this, core::mem::transmute(&bstroldpassword), core::mem::transmute(&bstrnewpassword)).into() } @@ -8167,14 +6253,8 @@ pub trait IADsWinNTSystemInfo_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IADsWinNTSystemInfo {} #[cfg(feature = "Win32_System_Com")] impl IADsWinNTSystemInfo_Vtbl { - pub const fn new() -> IADsWinNTSystemInfo_Vtbl - where - Identity: IADsWinNTSystemInfo_Impl, - { - unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsWinNTSystemInfo_Impl, - { + pub const fn new() -> IADsWinNTSystemInfo_Vtbl { + unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsWinNTSystemInfo_Impl::UserName(this) { Ok(ok__) => { @@ -8184,10 +6264,7 @@ impl IADsWinNTSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputerName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsWinNTSystemInfo_Impl, - { + unsafe extern "system" fn ComputerName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsWinNTSystemInfo_Impl::ComputerName(this) { Ok(ok__) => { @@ -8197,10 +6274,7 @@ impl IADsWinNTSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DomainName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsWinNTSystemInfo_Impl, - { + unsafe extern "system" fn DomainName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsWinNTSystemInfo_Impl::DomainName(this) { Ok(ok__) => { @@ -8210,10 +6284,7 @@ impl IADsWinNTSystemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PDC(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsWinNTSystemInfo_Impl, - { + unsafe extern "system" fn PDC(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsWinNTSystemInfo_Impl::PDC(this) { Ok(ok__) => { @@ -8236,21 +6307,15 @@ impl IADsWinNTSystemInfo_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait ICommonQuery_Impl: Sized { +pub trait ICommonQuery_Impl: Sized + windows_core::IUnknownImpl { fn OpenQueryWindow(&self, hwndparent: super::super::Foundation::HWND, pquerywnd: *mut OPENQUERYWINDOW, ppdataobject: *mut Option) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl windows_core::RuntimeName for ICommonQuery {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ICommonQuery_Vtbl { - pub const fn new() -> ICommonQuery_Vtbl - where - Identity: ICommonQuery_Impl, - { - unsafe extern "system" fn OpenQueryWindow(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, pquerywnd: *mut OPENQUERYWINDOW, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommonQuery_Impl, - { + pub const fn new() -> ICommonQuery_Vtbl { + unsafe extern "system" fn OpenQueryWindow(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, pquerywnd: *mut OPENQUERYWINDOW, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommonQuery_Impl::OpenQueryWindow(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&pquerywnd), core::mem::transmute_copy(&ppdataobject)).into() } @@ -8261,7 +6326,7 @@ impl ICommonQuery_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDirectoryObject_Impl: Sized { +pub trait IDirectoryObject_Impl: Sized + windows_core::IUnknownImpl { fn GetObjectInformation(&self) -> windows_core::Result<*mut ADS_OBJECT_INFO>; fn GetObjectAttributes(&self, pattributenames: *const windows_core::PCWSTR, dwnumberattributes: u32, ppattributeentries: *mut *mut ADS_ATTR_INFO, pdwnumattributesreturned: *mut u32) -> windows_core::Result<()>; fn SetObjectAttributes(&self, pattributeentries: *const ADS_ATTR_INFO, dwnumattributes: u32) -> windows_core::Result; @@ -8272,14 +6337,8 @@ pub trait IDirectoryObject_Impl: Sized { impl windows_core::RuntimeName for IDirectoryObject {} #[cfg(feature = "Win32_System_Com")] impl IDirectoryObject_Vtbl { - pub const fn new() -> IDirectoryObject_Vtbl - where - Identity: IDirectoryObject_Impl, - { - unsafe extern "system" fn GetObjectInformation(this: *mut core::ffi::c_void, ppobjinfo: *mut *mut ADS_OBJECT_INFO) -> windows_core::HRESULT - where - Identity: IDirectoryObject_Impl, - { + pub const fn new() -> IDirectoryObject_Vtbl { + unsafe extern "system" fn GetObjectInformation(this: *mut core::ffi::c_void, ppobjinfo: *mut *mut ADS_OBJECT_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectoryObject_Impl::GetObjectInformation(this) { Ok(ok__) => { @@ -8289,17 +6348,11 @@ impl IDirectoryObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectAttributes(this: *mut core::ffi::c_void, pattributenames: *const windows_core::PCWSTR, dwnumberattributes: u32, ppattributeentries: *mut *mut ADS_ATTR_INFO, pdwnumattributesreturned: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectoryObject_Impl, - { + unsafe extern "system" fn GetObjectAttributes(this: *mut core::ffi::c_void, pattributenames: *const windows_core::PCWSTR, dwnumberattributes: u32, ppattributeentries: *mut *mut ADS_ATTR_INFO, pdwnumattributesreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectoryObject_Impl::GetObjectAttributes(this, core::mem::transmute_copy(&pattributenames), core::mem::transmute_copy(&dwnumberattributes), core::mem::transmute_copy(&ppattributeentries), core::mem::transmute_copy(&pdwnumattributesreturned)).into() } - unsafe extern "system" fn SetObjectAttributes(this: *mut core::ffi::c_void, pattributeentries: *const ADS_ATTR_INFO, dwnumattributes: u32, pdwnumattributesmodified: *mut u32) -> windows_core::HRESULT - where - Identity: IDirectoryObject_Impl, - { + unsafe extern "system" fn SetObjectAttributes(this: *mut core::ffi::c_void, pattributeentries: *const ADS_ATTR_INFO, dwnumattributes: u32, pdwnumattributesmodified: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectoryObject_Impl::SetObjectAttributes(this, core::mem::transmute_copy(&pattributeentries), core::mem::transmute_copy(&dwnumattributes)) { Ok(ok__) => { @@ -8309,10 +6362,7 @@ impl IDirectoryObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDSObject(this: *mut core::ffi::c_void, pszrdnname: windows_core::PCWSTR, pattributeentries: *const ADS_ATTR_INFO, dwnumattributes: u32, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectoryObject_Impl, - { + unsafe extern "system" fn CreateDSObject(this: *mut core::ffi::c_void, pszrdnname: windows_core::PCWSTR, pattributeentries: *const ADS_ATTR_INFO, dwnumattributes: u32, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectoryObject_Impl::CreateDSObject(this, core::mem::transmute(&pszrdnname), core::mem::transmute_copy(&pattributeentries), core::mem::transmute_copy(&dwnumattributes)) { Ok(ok__) => { @@ -8322,10 +6372,7 @@ impl IDirectoryObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteDSObject(this: *mut core::ffi::c_void, pszrdnname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDirectoryObject_Impl, - { + unsafe extern "system" fn DeleteDSObject(this: *mut core::ffi::c_void, pszrdnname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectoryObject_Impl::DeleteDSObject(this, core::mem::transmute(&pszrdnname)).into() } @@ -8342,7 +6389,7 @@ impl IDirectoryObject_Vtbl { iid == &::IID } } -pub trait IDirectorySchemaMgmt_Impl: Sized { +pub trait IDirectorySchemaMgmt_Impl: Sized + windows_core::IUnknownImpl { fn EnumAttributes(&self, ppszattrnames: *const windows_core::PCWSTR, dwnumattributes: u32, ppattrdefinition: *const *const ADS_ATTR_DEF, pdwnumattributes: *const u32) -> windows_core::Result<()>; fn CreateAttributeDefinition(&self, pszattributename: &windows_core::PCWSTR, pattributedefinition: *const ADS_ATTR_DEF) -> windows_core::Result<()>; fn WriteAttributeDefinition(&self, pszattributename: &windows_core::PCWSTR, pattributedefinition: *const ADS_ATTR_DEF) -> windows_core::Result<()>; @@ -8354,63 +6401,36 @@ pub trait IDirectorySchemaMgmt_Impl: Sized { } impl windows_core::RuntimeName for IDirectorySchemaMgmt {} impl IDirectorySchemaMgmt_Vtbl { - pub const fn new() -> IDirectorySchemaMgmt_Vtbl - where - Identity: IDirectorySchemaMgmt_Impl, - { - unsafe extern "system" fn EnumAttributes(this: *mut core::ffi::c_void, ppszattrnames: *const windows_core::PCWSTR, dwnumattributes: u32, ppattrdefinition: *const *const ADS_ATTR_DEF, pdwnumattributes: *const u32) -> windows_core::HRESULT - where - Identity: IDirectorySchemaMgmt_Impl, - { + pub const fn new() -> IDirectorySchemaMgmt_Vtbl { + unsafe extern "system" fn EnumAttributes(this: *mut core::ffi::c_void, ppszattrnames: *const windows_core::PCWSTR, dwnumattributes: u32, ppattrdefinition: *const *const ADS_ATTR_DEF, pdwnumattributes: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySchemaMgmt_Impl::EnumAttributes(this, core::mem::transmute_copy(&ppszattrnames), core::mem::transmute_copy(&dwnumattributes), core::mem::transmute_copy(&ppattrdefinition), core::mem::transmute_copy(&pdwnumattributes)).into() } - unsafe extern "system" fn CreateAttributeDefinition(this: *mut core::ffi::c_void, pszattributename: windows_core::PCWSTR, pattributedefinition: *const ADS_ATTR_DEF) -> windows_core::HRESULT - where - Identity: IDirectorySchemaMgmt_Impl, - { + unsafe extern "system" fn CreateAttributeDefinition(this: *mut core::ffi::c_void, pszattributename: windows_core::PCWSTR, pattributedefinition: *const ADS_ATTR_DEF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySchemaMgmt_Impl::CreateAttributeDefinition(this, core::mem::transmute(&pszattributename), core::mem::transmute_copy(&pattributedefinition)).into() } - unsafe extern "system" fn WriteAttributeDefinition(this: *mut core::ffi::c_void, pszattributename: windows_core::PCWSTR, pattributedefinition: *const ADS_ATTR_DEF) -> windows_core::HRESULT - where - Identity: IDirectorySchemaMgmt_Impl, - { + unsafe extern "system" fn WriteAttributeDefinition(this: *mut core::ffi::c_void, pszattributename: windows_core::PCWSTR, pattributedefinition: *const ADS_ATTR_DEF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySchemaMgmt_Impl::WriteAttributeDefinition(this, core::mem::transmute(&pszattributename), core::mem::transmute_copy(&pattributedefinition)).into() } - unsafe extern "system" fn DeleteAttributeDefinition(this: *mut core::ffi::c_void, pszattributename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDirectorySchemaMgmt_Impl, - { + unsafe extern "system" fn DeleteAttributeDefinition(this: *mut core::ffi::c_void, pszattributename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySchemaMgmt_Impl::DeleteAttributeDefinition(this, core::mem::transmute(&pszattributename)).into() } - unsafe extern "system" fn EnumClasses(this: *mut core::ffi::c_void, ppszclassnames: *const windows_core::PCWSTR, dwnumclasses: u32, ppclassdefinition: *const *const ADS_CLASS_DEF, pdwnumclasses: *const u32) -> windows_core::HRESULT - where - Identity: IDirectorySchemaMgmt_Impl, - { + unsafe extern "system" fn EnumClasses(this: *mut core::ffi::c_void, ppszclassnames: *const windows_core::PCWSTR, dwnumclasses: u32, ppclassdefinition: *const *const ADS_CLASS_DEF, pdwnumclasses: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySchemaMgmt_Impl::EnumClasses(this, core::mem::transmute_copy(&ppszclassnames), core::mem::transmute_copy(&dwnumclasses), core::mem::transmute_copy(&ppclassdefinition), core::mem::transmute_copy(&pdwnumclasses)).into() } - unsafe extern "system" fn WriteClassDefinition(this: *mut core::ffi::c_void, pszclassname: windows_core::PCWSTR, pclassdefinition: *const ADS_CLASS_DEF) -> windows_core::HRESULT - where - Identity: IDirectorySchemaMgmt_Impl, - { + unsafe extern "system" fn WriteClassDefinition(this: *mut core::ffi::c_void, pszclassname: windows_core::PCWSTR, pclassdefinition: *const ADS_CLASS_DEF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySchemaMgmt_Impl::WriteClassDefinition(this, core::mem::transmute(&pszclassname), core::mem::transmute_copy(&pclassdefinition)).into() } - unsafe extern "system" fn CreateClassDefinition(this: *mut core::ffi::c_void, pszclassname: windows_core::PCWSTR, pclassdefinition: *const ADS_CLASS_DEF) -> windows_core::HRESULT - where - Identity: IDirectorySchemaMgmt_Impl, - { + unsafe extern "system" fn CreateClassDefinition(this: *mut core::ffi::c_void, pszclassname: windows_core::PCWSTR, pclassdefinition: *const ADS_CLASS_DEF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySchemaMgmt_Impl::CreateClassDefinition(this, core::mem::transmute(&pszclassname), core::mem::transmute_copy(&pclassdefinition)).into() } - unsafe extern "system" fn DeleteClassDefinition(this: *mut core::ffi::c_void, pszclassname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDirectorySchemaMgmt_Impl, - { + unsafe extern "system" fn DeleteClassDefinition(this: *mut core::ffi::c_void, pszclassname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySchemaMgmt_Impl::DeleteClassDefinition(this, core::mem::transmute(&pszclassname)).into() } @@ -8430,7 +6450,7 @@ impl IDirectorySchemaMgmt_Vtbl { iid == &::IID } } -pub trait IDirectorySearch_Impl: Sized { +pub trait IDirectorySearch_Impl: Sized + windows_core::IUnknownImpl { fn SetSearchPreference(&self, psearchprefs: *const ADS_SEARCHPREF_INFO, dwnumprefs: u32) -> windows_core::Result<()>; fn ExecuteSearch(&self, pszsearchfilter: &windows_core::PCWSTR, pattributenames: *const windows_core::PCWSTR, dwnumberattributes: u32) -> windows_core::Result; fn AbandonSearch(&self, phsearchresult: ADS_SEARCH_HANDLE) -> windows_core::Result<()>; @@ -8444,21 +6464,12 @@ pub trait IDirectorySearch_Impl: Sized { } impl windows_core::RuntimeName for IDirectorySearch {} impl IDirectorySearch_Vtbl { - pub const fn new() -> IDirectorySearch_Vtbl - where - Identity: IDirectorySearch_Impl, - { - unsafe extern "system" fn SetSearchPreference(this: *mut core::ffi::c_void, psearchprefs: *const ADS_SEARCHPREF_INFO, dwnumprefs: u32) -> windows_core::HRESULT - where - Identity: IDirectorySearch_Impl, - { + pub const fn new() -> IDirectorySearch_Vtbl { + unsafe extern "system" fn SetSearchPreference(this: *mut core::ffi::c_void, psearchprefs: *const ADS_SEARCHPREF_INFO, dwnumprefs: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySearch_Impl::SetSearchPreference(this, core::mem::transmute_copy(&psearchprefs), core::mem::transmute_copy(&dwnumprefs)).into() } - unsafe extern "system" fn ExecuteSearch(this: *mut core::ffi::c_void, pszsearchfilter: windows_core::PCWSTR, pattributenames: *const windows_core::PCWSTR, dwnumberattributes: u32, phsearchresult: *mut ADS_SEARCH_HANDLE) -> windows_core::HRESULT - where - Identity: IDirectorySearch_Impl, - { + unsafe extern "system" fn ExecuteSearch(this: *mut core::ffi::c_void, pszsearchfilter: windows_core::PCWSTR, pattributenames: *const windows_core::PCWSTR, dwnumberattributes: u32, phsearchresult: *mut ADS_SEARCH_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectorySearch_Impl::ExecuteSearch(this, core::mem::transmute(&pszsearchfilter), core::mem::transmute_copy(&pattributenames), core::mem::transmute_copy(&dwnumberattributes)) { Ok(ok__) => { @@ -8468,59 +6479,35 @@ impl IDirectorySearch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AbandonSearch(this: *mut core::ffi::c_void, phsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT - where - Identity: IDirectorySearch_Impl, - { + unsafe extern "system" fn AbandonSearch(this: *mut core::ffi::c_void, phsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySearch_Impl::AbandonSearch(this, core::mem::transmute_copy(&phsearchresult)).into() } - unsafe extern "system" fn GetFirstRow(this: *mut core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT - where - Identity: IDirectorySearch_Impl, - { + unsafe extern "system" fn GetFirstRow(this: *mut core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySearch_Impl::GetFirstRow(this, core::mem::transmute_copy(&hsearchresult)) } - unsafe extern "system" fn GetNextRow(this: *mut core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT - where - Identity: IDirectorySearch_Impl, - { + unsafe extern "system" fn GetNextRow(this: *mut core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySearch_Impl::GetNextRow(this, core::mem::transmute_copy(&hsearchresult)) } - unsafe extern "system" fn GetPreviousRow(this: *mut core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT - where - Identity: IDirectorySearch_Impl, - { + unsafe extern "system" fn GetPreviousRow(this: *mut core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySearch_Impl::GetPreviousRow(this, core::mem::transmute_copy(&hsearchresult)) } - unsafe extern "system" fn GetNextColumnName(this: *mut core::ffi::c_void, hsearchhandle: ADS_SEARCH_HANDLE, ppszcolumnname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDirectorySearch_Impl, - { + unsafe extern "system" fn GetNextColumnName(this: *mut core::ffi::c_void, hsearchhandle: ADS_SEARCH_HANDLE, ppszcolumnname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySearch_Impl::GetNextColumnName(this, core::mem::transmute_copy(&hsearchhandle), core::mem::transmute_copy(&ppszcolumnname)) } - unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE, szcolumnname: windows_core::PCWSTR, psearchcolumn: *mut ADS_SEARCH_COLUMN) -> windows_core::HRESULT - where - Identity: IDirectorySearch_Impl, - { + unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE, szcolumnname: windows_core::PCWSTR, psearchcolumn: *mut ADS_SEARCH_COLUMN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySearch_Impl::GetColumn(this, core::mem::transmute_copy(&hsearchresult), core::mem::transmute(&szcolumnname), core::mem::transmute_copy(&psearchcolumn)).into() } - unsafe extern "system" fn FreeColumn(this: *mut core::ffi::c_void, psearchcolumn: *const ADS_SEARCH_COLUMN) -> windows_core::HRESULT - where - Identity: IDirectorySearch_Impl, - { + unsafe extern "system" fn FreeColumn(this: *mut core::ffi::c_void, psearchcolumn: *const ADS_SEARCH_COLUMN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySearch_Impl::FreeColumn(this, core::mem::transmute_copy(&psearchcolumn)).into() } - unsafe extern "system" fn CloseSearchHandle(this: *mut core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT - where - Identity: IDirectorySearch_Impl, - { + unsafe extern "system" fn CloseSearchHandle(this: *mut core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectorySearch_Impl::CloseSearchHandle(this, core::mem::transmute_copy(&hsearchresult)).into() } @@ -8543,7 +6530,7 @@ impl IDirectorySearch_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDsAdminCreateObj_Impl: Sized { +pub trait IDsAdminCreateObj_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, padscontainerobj: Option<&IADsContainer>, padscopysource: Option<&IADs>, lpszclassname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn CreateModal(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result; } @@ -8551,21 +6538,12 @@ pub trait IDsAdminCreateObj_Impl: Sized { impl windows_core::RuntimeName for IDsAdminCreateObj {} #[cfg(feature = "Win32_System_Com")] impl IDsAdminCreateObj_Vtbl { - pub const fn new() -> IDsAdminCreateObj_Vtbl - where - Identity: IDsAdminCreateObj_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, padscontainerobj: *mut core::ffi::c_void, padscopysource: *mut core::ffi::c_void, lpszclassname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDsAdminCreateObj_Impl, - { + pub const fn new() -> IDsAdminCreateObj_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, padscontainerobj: *mut core::ffi::c_void, padscopysource: *mut core::ffi::c_void, lpszclassname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminCreateObj_Impl::Initialize(this, windows_core::from_raw_borrowed(&padscontainerobj), windows_core::from_raw_borrowed(&padscopysource), core::mem::transmute(&lpszclassname)).into() } - unsafe extern "system" fn CreateModal(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ppadsobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDsAdminCreateObj_Impl, - { + unsafe extern "system" fn CreateModal(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ppadsobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDsAdminCreateObj_Impl::CreateModal(this, core::mem::transmute_copy(&hwndparent)) { Ok(ok__) => { @@ -8585,27 +6563,18 @@ impl IDsAdminCreateObj_Vtbl { iid == &::IID } } -pub trait IDsAdminNewObj_Impl: Sized { +pub trait IDsAdminNewObj_Impl: Sized + windows_core::IUnknownImpl { fn SetButtons(&self, ncurrindex: u32, bvalid: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetPageCounts(&self, pntotal: *mut i32, pnstartindex: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDsAdminNewObj {} impl IDsAdminNewObj_Vtbl { - pub const fn new() -> IDsAdminNewObj_Vtbl - where - Identity: IDsAdminNewObj_Impl, - { - unsafe extern "system" fn SetButtons(this: *mut core::ffi::c_void, ncurrindex: u32, bvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDsAdminNewObj_Impl, - { + pub const fn new() -> IDsAdminNewObj_Vtbl { + unsafe extern "system" fn SetButtons(this: *mut core::ffi::c_void, ncurrindex: u32, bvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObj_Impl::SetButtons(this, core::mem::transmute_copy(&ncurrindex), core::mem::transmute_copy(&bvalid)).into() } - unsafe extern "system" fn GetPageCounts(this: *mut core::ffi::c_void, pntotal: *mut i32, pnstartindex: *mut i32) -> windows_core::HRESULT - where - Identity: IDsAdminNewObj_Impl, - { + unsafe extern "system" fn GetPageCounts(this: *mut core::ffi::c_void, pntotal: *mut i32, pnstartindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObj_Impl::GetPageCounts(this, core::mem::transmute_copy(&pntotal), core::mem::transmute_copy(&pnstartindex)).into() } @@ -8620,7 +6589,7 @@ impl IDsAdminNewObj_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IDsAdminNewObjExt_Impl: Sized { +pub trait IDsAdminNewObjExt_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, padscontainerobj: Option<&IADsContainer>, padscopysource: Option<&IADs>, lpszclassname: &windows_core::PCWSTR, pdsadminnewobj: Option<&IDsAdminNewObj>, pdispinfo: *mut DSA_NEWOBJ_DISPINFO) -> windows_core::Result<()>; fn AddPages(&self, lpfnaddpage: super::super::UI::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn SetObject(&self, padsobj: Option<&IADs>) -> windows_core::Result<()>; @@ -8632,49 +6601,28 @@ pub trait IDsAdminNewObjExt_Impl: Sized { impl windows_core::RuntimeName for IDsAdminNewObjExt {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] impl IDsAdminNewObjExt_Vtbl { - pub const fn new() -> IDsAdminNewObjExt_Vtbl - where - Identity: IDsAdminNewObjExt_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, padscontainerobj: *mut core::ffi::c_void, padscopysource: *mut core::ffi::c_void, lpszclassname: windows_core::PCWSTR, pdsadminnewobj: *mut core::ffi::c_void, pdispinfo: *mut DSA_NEWOBJ_DISPINFO) -> windows_core::HRESULT - where - Identity: IDsAdminNewObjExt_Impl, - { + pub const fn new() -> IDsAdminNewObjExt_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, padscontainerobj: *mut core::ffi::c_void, padscopysource: *mut core::ffi::c_void, lpszclassname: windows_core::PCWSTR, pdsadminnewobj: *mut core::ffi::c_void, pdispinfo: *mut DSA_NEWOBJ_DISPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObjExt_Impl::Initialize(this, windows_core::from_raw_borrowed(&padscontainerobj), windows_core::from_raw_borrowed(&padscopysource), core::mem::transmute(&lpszclassname), windows_core::from_raw_borrowed(&pdsadminnewobj), core::mem::transmute_copy(&pdispinfo)).into() } - unsafe extern "system" fn AddPages(this: *mut core::ffi::c_void, lpfnaddpage: super::super::UI::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IDsAdminNewObjExt_Impl, - { + unsafe extern "system" fn AddPages(this: *mut core::ffi::c_void, lpfnaddpage: super::super::UI::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObjExt_Impl::AddPages(this, core::mem::transmute_copy(&lpfnaddpage), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn SetObject(this: *mut core::ffi::c_void, padsobj: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDsAdminNewObjExt_Impl, - { + unsafe extern "system" fn SetObject(this: *mut core::ffi::c_void, padsobj: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObjExt_Impl::SetObject(this, windows_core::from_raw_borrowed(&padsobj)).into() } - unsafe extern "system" fn WriteData(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ucontext: u32) -> windows_core::HRESULT - where - Identity: IDsAdminNewObjExt_Impl, - { + unsafe extern "system" fn WriteData(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ucontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObjExt_Impl::WriteData(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&ucontext)).into() } - unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, hr: windows_core::HRESULT, ucontext: u32) -> windows_core::HRESULT - where - Identity: IDsAdminNewObjExt_Impl, - { + unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, hr: windows_core::HRESULT, ucontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObjExt_Impl::OnError(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&hr), core::mem::transmute_copy(&ucontext)).into() } - unsafe extern "system" fn GetSummaryInfo(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDsAdminNewObjExt_Impl, - { + unsafe extern "system" fn GetSummaryInfo(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObjExt_Impl::GetSummaryInfo(this, core::mem::transmute_copy(&pbstrtext)).into() } @@ -8692,27 +6640,18 @@ impl IDsAdminNewObjExt_Vtbl { iid == &::IID } } -pub trait IDsAdminNewObjPrimarySite_Impl: Sized { +pub trait IDsAdminNewObjPrimarySite_Impl: Sized + windows_core::IUnknownImpl { fn CreateNew(&self, pszname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Commit(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDsAdminNewObjPrimarySite {} impl IDsAdminNewObjPrimarySite_Vtbl { - pub const fn new() -> IDsAdminNewObjPrimarySite_Vtbl - where - Identity: IDsAdminNewObjPrimarySite_Impl, - { - unsafe extern "system" fn CreateNew(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDsAdminNewObjPrimarySite_Impl, - { + pub const fn new() -> IDsAdminNewObjPrimarySite_Vtbl { + unsafe extern "system" fn CreateNew(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObjPrimarySite_Impl::CreateNew(this, core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDsAdminNewObjPrimarySite_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObjPrimarySite_Impl::Commit(this).into() } @@ -8723,7 +6662,7 @@ impl IDsAdminNewObjPrimarySite_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDsAdminNotifyHandler_Impl: Sized { +pub trait IDsAdminNotifyHandler_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pextrainfo: Option<&super::super::System::Com::IDataObject>, pueventflags: *mut u32) -> windows_core::Result<()>; fn Begin(&self, uevent: u32, parg1: Option<&super::super::System::Com::IDataObject>, parg2: Option<&super::super::System::Com::IDataObject>, puflags: *mut u32, pbstr: *mut windows_core::BSTR) -> windows_core::Result<()>; fn Notify(&self, nitem: u32, uflags: u32) -> windows_core::Result<()>; @@ -8733,35 +6672,20 @@ pub trait IDsAdminNotifyHandler_Impl: Sized { impl windows_core::RuntimeName for IDsAdminNotifyHandler {} #[cfg(feature = "Win32_System_Com")] impl IDsAdminNotifyHandler_Vtbl { - pub const fn new() -> IDsAdminNotifyHandler_Vtbl - where - Identity: IDsAdminNotifyHandler_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pextrainfo: *mut core::ffi::c_void, pueventflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDsAdminNotifyHandler_Impl, - { + pub const fn new() -> IDsAdminNotifyHandler_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pextrainfo: *mut core::ffi::c_void, pueventflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNotifyHandler_Impl::Initialize(this, windows_core::from_raw_borrowed(&pextrainfo), core::mem::transmute_copy(&pueventflags)).into() } - unsafe extern "system" fn Begin(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::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDsAdminNotifyHandler_Impl, - { + unsafe extern "system" fn Begin(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::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNotifyHandler_Impl::Begin(this, core::mem::transmute_copy(&uevent), windows_core::from_raw_borrowed(&parg1), windows_core::from_raw_borrowed(&parg2), core::mem::transmute_copy(&puflags), core::mem::transmute_copy(&pbstr)).into() } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, nitem: u32, uflags: u32) -> windows_core::HRESULT - where - Identity: IDsAdminNotifyHandler_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, nitem: u32, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNotifyHandler_Impl::Notify(this, core::mem::transmute_copy(&nitem), core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDsAdminNotifyHandler_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNotifyHandler_Impl::End(this).into() } @@ -8777,7 +6701,7 @@ impl IDsAdminNotifyHandler_Vtbl { iid == &::IID } } -pub trait IDsBrowseDomainTree_Impl: Sized { +pub trait IDsBrowseDomainTree_Impl: Sized + windows_core::IUnknownImpl { fn BrowseTo(&self, hwndparent: super::super::Foundation::HWND, ppsztargetpath: *mut windows_core::PWSTR, dwflags: u32) -> windows_core::Result<()>; fn GetDomains(&self, ppdomaintree: *mut *mut DOMAIN_TREE, dwflags: u32) -> windows_core::Result<()>; fn FreeDomains(&self, ppdomaintree: *mut *mut DOMAIN_TREE) -> windows_core::Result<()>; @@ -8786,42 +6710,24 @@ pub trait IDsBrowseDomainTree_Impl: Sized { } impl windows_core::RuntimeName for IDsBrowseDomainTree {} impl IDsBrowseDomainTree_Vtbl { - pub const fn new() -> IDsBrowseDomainTree_Vtbl - where - Identity: IDsBrowseDomainTree_Impl, - { - unsafe extern "system" fn BrowseTo(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ppsztargetpath: *mut windows_core::PWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDsBrowseDomainTree_Impl, - { + pub const fn new() -> IDsBrowseDomainTree_Vtbl { + unsafe extern "system" fn BrowseTo(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ppsztargetpath: *mut windows_core::PWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsBrowseDomainTree_Impl::BrowseTo(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&ppsztargetpath), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetDomains(this: *mut core::ffi::c_void, ppdomaintree: *mut *mut DOMAIN_TREE, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDsBrowseDomainTree_Impl, - { + unsafe extern "system" fn GetDomains(this: *mut core::ffi::c_void, ppdomaintree: *mut *mut DOMAIN_TREE, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsBrowseDomainTree_Impl::GetDomains(this, core::mem::transmute_copy(&ppdomaintree), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn FreeDomains(this: *mut core::ffi::c_void, ppdomaintree: *mut *mut DOMAIN_TREE) -> windows_core::HRESULT - where - Identity: IDsBrowseDomainTree_Impl, - { + unsafe extern "system" fn FreeDomains(this: *mut core::ffi::c_void, ppdomaintree: *mut *mut DOMAIN_TREE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsBrowseDomainTree_Impl::FreeDomains(this, core::mem::transmute_copy(&ppdomaintree)).into() } - unsafe extern "system" fn FlushCachedDomains(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDsBrowseDomainTree_Impl, - { + unsafe extern "system" fn FlushCachedDomains(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsBrowseDomainTree_Impl::FlushCachedDomains(this).into() } - unsafe extern "system" fn SetComputer(this: *mut core::ffi::c_void, pszcomputername: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDsBrowseDomainTree_Impl, - { + unsafe extern "system" fn SetComputer(this: *mut core::ffi::c_void, pszcomputername: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsBrowseDomainTree_Impl::SetComputer(this, core::mem::transmute(&pszcomputername), core::mem::transmute(&pszusername), core::mem::transmute(&pszpassword)).into() } @@ -8839,7 +6745,7 @@ impl IDsBrowseDomainTree_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IDsDisplaySpecifier_Impl: Sized { +pub trait IDsDisplaySpecifier_Impl: Sized + windows_core::IUnknownImpl { fn SetServer(&self, pszserver: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszpassword: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; fn SetLanguageID(&self, langid: u16) -> windows_core::Result<()>; fn GetDisplaySpecifier(&self, pszobjectclass: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -8856,84 +6762,48 @@ pub trait IDsDisplaySpecifier_Impl: Sized { impl windows_core::RuntimeName for IDsDisplaySpecifier {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IDsDisplaySpecifier_Vtbl { - pub const fn new() -> IDsDisplaySpecifier_Vtbl - where - Identity: IDsDisplaySpecifier_Impl, - { - unsafe extern "system" fn SetServer(this: *mut core::ffi::c_void, pszserver: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDsDisplaySpecifier_Impl, - { + pub const fn new() -> IDsDisplaySpecifier_Vtbl { + unsafe extern "system" fn SetServer(this: *mut core::ffi::c_void, pszserver: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::SetServer(this, core::mem::transmute(&pszserver), core::mem::transmute(&pszusername), core::mem::transmute(&pszpassword), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SetLanguageID(this: *mut core::ffi::c_void, langid: u16) -> windows_core::HRESULT - where - Identity: IDsDisplaySpecifier_Impl, - { + unsafe extern "system" fn SetLanguageID(this: *mut core::ffi::c_void, langid: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::SetLanguageID(this, core::mem::transmute_copy(&langid)).into() } - unsafe extern "system" fn GetDisplaySpecifier(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDsDisplaySpecifier_Impl, - { + unsafe extern "system" fn GetDisplaySpecifier(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::GetDisplaySpecifier(this, core::mem::transmute(&pszobjectclass), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, dwflags: u32, pszbuffer: windows_core::PWSTR, cchbuffer: i32, presid: *mut i32) -> windows_core::HRESULT - where - Identity: IDsDisplaySpecifier_Impl, - { + unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, dwflags: u32, pszbuffer: windows_core::PWSTR, cchbuffer: i32, presid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::GetIconLocation(this, core::mem::transmute(&pszobjectclass), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pszbuffer), core::mem::transmute_copy(&cchbuffer), core::mem::transmute_copy(&presid)).into() } - unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, dwflags: u32, cxicon: i32, cyicon: i32) -> super::super::UI::WindowsAndMessaging::HICON - where - Identity: IDsDisplaySpecifier_Impl, - { + unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, dwflags: u32, cxicon: i32, cyicon: i32) -> super::super::UI::WindowsAndMessaging::HICON { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::GetIcon(this, core::mem::transmute(&pszobjectclass), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&cxicon), core::mem::transmute_copy(&cyicon)) } - unsafe extern "system" fn GetFriendlyClassName(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, pszbuffer: windows_core::PWSTR, cchbuffer: i32) -> windows_core::HRESULT - where - Identity: IDsDisplaySpecifier_Impl, - { + unsafe extern "system" fn GetFriendlyClassName(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, pszbuffer: windows_core::PWSTR, cchbuffer: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::GetFriendlyClassName(this, core::mem::transmute(&pszobjectclass), core::mem::transmute_copy(&pszbuffer), core::mem::transmute_copy(&cchbuffer)).into() } - unsafe extern "system" fn GetFriendlyAttributeName(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, pszattributename: windows_core::PCWSTR, pszbuffer: windows_core::PWSTR, cchbuffer: u32) -> windows_core::HRESULT - where - Identity: IDsDisplaySpecifier_Impl, - { + unsafe extern "system" fn GetFriendlyAttributeName(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, pszattributename: windows_core::PCWSTR, pszbuffer: windows_core::PWSTR, cchbuffer: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::GetFriendlyAttributeName(this, core::mem::transmute(&pszobjectclass), core::mem::transmute(&pszattributename), core::mem::transmute_copy(&pszbuffer), core::mem::transmute_copy(&cchbuffer)).into() } - unsafe extern "system" fn IsClassContainer(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, pszadspath: windows_core::PCWSTR, dwflags: u32) -> super::super::Foundation::BOOL - where - Identity: IDsDisplaySpecifier_Impl, - { + unsafe extern "system" fn IsClassContainer(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, pszadspath: windows_core::PCWSTR, dwflags: u32) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::IsClassContainer(this, core::mem::transmute(&pszobjectclass), core::mem::transmute(&pszadspath), core::mem::transmute_copy(&dwflags)) } - unsafe extern "system" fn GetClassCreationInfo(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, ppdscci: *mut *mut DSCLASSCREATIONINFO) -> windows_core::HRESULT - where - Identity: IDsDisplaySpecifier_Impl, - { + unsafe extern "system" fn GetClassCreationInfo(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, ppdscci: *mut *mut DSCLASSCREATIONINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::GetClassCreationInfo(this, core::mem::transmute(&pszobjectclass), core::mem::transmute_copy(&ppdscci)).into() } - unsafe extern "system" fn EnumClassAttributes(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, pcbenum: LPDSENUMATTRIBUTES, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IDsDisplaySpecifier_Impl, - { + unsafe extern "system" fn EnumClassAttributes(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, pcbenum: LPDSENUMATTRIBUTES, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::EnumClassAttributes(this, core::mem::transmute(&pszobjectclass), core::mem::transmute_copy(&pcbenum), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn GetAttributeADsType(this: *mut core::ffi::c_void, pszattributename: windows_core::PCWSTR) -> ADSTYPE - where - Identity: IDsDisplaySpecifier_Impl, - { + unsafe extern "system" fn GetAttributeADsType(this: *mut core::ffi::c_void, pszattributename: windows_core::PCWSTR) -> ADSTYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::GetAttributeADsType(this, core::mem::transmute(&pszattributename)) } @@ -8957,7 +6827,7 @@ impl IDsDisplaySpecifier_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDsObjectPicker_Impl: Sized { +pub trait IDsObjectPicker_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pinitinfo: *mut DSOP_INIT_INFO) -> windows_core::Result<()>; fn InvokeDialog(&self, hwndparent: super::super::Foundation::HWND) -> windows_core::Result; } @@ -8965,21 +6835,12 @@ pub trait IDsObjectPicker_Impl: Sized { impl windows_core::RuntimeName for IDsObjectPicker {} #[cfg(feature = "Win32_System_Com")] impl IDsObjectPicker_Vtbl { - pub const fn new() -> IDsObjectPicker_Vtbl - where - Identity: IDsObjectPicker_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pinitinfo: *mut DSOP_INIT_INFO) -> windows_core::HRESULT - where - Identity: IDsObjectPicker_Impl, - { + pub const fn new() -> IDsObjectPicker_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pinitinfo: *mut DSOP_INIT_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsObjectPicker_Impl::Initialize(this, core::mem::transmute_copy(&pinitinfo)).into() } - unsafe extern "system" fn InvokeDialog(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ppdoselections: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDsObjectPicker_Impl, - { + unsafe extern "system" fn InvokeDialog(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ppdoselections: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDsObjectPicker_Impl::InvokeDialog(this, core::mem::transmute_copy(&hwndparent)) { Ok(ok__) => { @@ -9007,14 +6868,8 @@ pub trait IDsObjectPickerCredentials_Impl: Sized + IDsObjectPicker_Impl { impl windows_core::RuntimeName for IDsObjectPickerCredentials {} #[cfg(feature = "Win32_System_Com")] impl IDsObjectPickerCredentials_Vtbl { - pub const fn new() -> IDsObjectPickerCredentials_Vtbl - where - Identity: IDsObjectPickerCredentials_Impl, - { - unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, szusername: windows_core::PCWSTR, szpassword: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDsObjectPickerCredentials_Impl, - { + pub const fn new() -> IDsObjectPickerCredentials_Vtbl { + unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, szusername: windows_core::PCWSTR, szpassword: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsObjectPickerCredentials_Impl::SetCredentials(this, core::mem::transmute(&szusername), core::mem::transmute(&szpassword)).into() } @@ -9038,56 +6893,32 @@ pub trait IPersistQuery_Impl: Sized + super::super::System::Com::IPersist_Impl { impl windows_core::RuntimeName for IPersistQuery {} #[cfg(feature = "Win32_System_Com")] impl IPersistQuery_Vtbl { - pub const fn new() -> IPersistQuery_Vtbl - where - Identity: IPersistQuery_Impl, - { - unsafe extern "system" fn WriteString(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, pvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPersistQuery_Impl, - { + pub const fn new() -> IPersistQuery_Vtbl { + unsafe extern "system" fn WriteString(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, pvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistQuery_Impl::WriteString(this, core::mem::transmute(&psection), core::mem::transmute(&pvaluename), core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn ReadString(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, pbuffer: windows_core::PWSTR, cchbuffer: i32) -> windows_core::HRESULT - where - Identity: IPersistQuery_Impl, - { + unsafe extern "system" fn ReadString(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, pbuffer: windows_core::PWSTR, cchbuffer: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistQuery_Impl::ReadString(this, core::mem::transmute(&psection), core::mem::transmute(&pvaluename), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cchbuffer)).into() } - unsafe extern "system" fn WriteInt(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, value: i32) -> windows_core::HRESULT - where - Identity: IPersistQuery_Impl, - { + unsafe extern "system" fn WriteInt(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistQuery_Impl::WriteInt(this, core::mem::transmute(&psection), core::mem::transmute(&pvaluename), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ReadInt(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IPersistQuery_Impl, - { + unsafe extern "system" fn ReadInt(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistQuery_Impl::ReadInt(this, core::mem::transmute(&psection), core::mem::transmute(&pvaluename), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn WriteStruct(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, pstruct: *mut core::ffi::c_void, cbstruct: u32) -> windows_core::HRESULT - where - Identity: IPersistQuery_Impl, - { + unsafe extern "system" fn WriteStruct(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, pstruct: *mut core::ffi::c_void, cbstruct: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistQuery_Impl::WriteStruct(this, core::mem::transmute(&psection), core::mem::transmute(&pvaluename), core::mem::transmute_copy(&pstruct), core::mem::transmute_copy(&cbstruct)).into() } - unsafe extern "system" fn ReadStruct(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, pstruct: *mut core::ffi::c_void, cbstruct: u32) -> windows_core::HRESULT - where - Identity: IPersistQuery_Impl, - { + unsafe extern "system" fn ReadStruct(this: *mut core::ffi::c_void, psection: windows_core::PCWSTR, pvaluename: windows_core::PCWSTR, pstruct: *mut core::ffi::c_void, cbstruct: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistQuery_Impl::ReadStruct(this, core::mem::transmute(&psection), core::mem::transmute(&pvaluename), core::mem::transmute_copy(&pstruct), core::mem::transmute_copy(&cbstruct)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistQuery_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistQuery_Impl::Clear(this).into() } @@ -9107,7 +6938,7 @@ impl IPersistQuery_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IPrivateDispatch_Impl: Sized { +pub trait IPrivateDispatch_Impl: Sized + windows_core::IUnknownImpl { fn ADSIInitializeDispatchManager(&self, dwextensionid: i32) -> windows_core::Result<()>; fn ADSIGetTypeInfoCount(&self) -> windows_core::Result; fn ADSIGetTypeInfo(&self, itinfo: u32, lcid: u32) -> windows_core::Result; @@ -9118,21 +6949,12 @@ pub trait IPrivateDispatch_Impl: Sized { impl windows_core::RuntimeName for IPrivateDispatch {} #[cfg(feature = "Win32_System_Com")] impl IPrivateDispatch_Vtbl { - pub const fn new() -> IPrivateDispatch_Vtbl - where - Identity: IPrivateDispatch_Impl, - { - unsafe extern "system" fn ADSIInitializeDispatchManager(this: *mut core::ffi::c_void, dwextensionid: i32) -> windows_core::HRESULT - where - Identity: IPrivateDispatch_Impl, - { + pub const fn new() -> IPrivateDispatch_Vtbl { + unsafe extern "system" fn ADSIInitializeDispatchManager(this: *mut core::ffi::c_void, dwextensionid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrivateDispatch_Impl::ADSIInitializeDispatchManager(this, core::mem::transmute_copy(&dwextensionid)).into() } - unsafe extern "system" fn ADSIGetTypeInfoCount(this: *mut core::ffi::c_void, pctinfo: *mut u32) -> windows_core::HRESULT - where - Identity: IPrivateDispatch_Impl, - { + unsafe extern "system" fn ADSIGetTypeInfoCount(this: *mut core::ffi::c_void, pctinfo: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrivateDispatch_Impl::ADSIGetTypeInfoCount(this) { Ok(ok__) => { @@ -9142,10 +6964,7 @@ impl IPrivateDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ADSIGetTypeInfo(this: *mut core::ffi::c_void, itinfo: u32, lcid: u32, pptinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrivateDispatch_Impl, - { + unsafe extern "system" fn ADSIGetTypeInfo(this: *mut core::ffi::c_void, itinfo: u32, lcid: u32, pptinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrivateDispatch_Impl::ADSIGetTypeInfo(this, core::mem::transmute_copy(&itinfo), core::mem::transmute_copy(&lcid)) { Ok(ok__) => { @@ -9155,10 +6974,7 @@ impl IPrivateDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ADSIGetIDsOfNames(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, rgsznames: *const *const u16, cnames: u32, lcid: u32, rgdispid: *mut i32) -> windows_core::HRESULT - where - Identity: IPrivateDispatch_Impl, - { + unsafe extern "system" fn ADSIGetIDsOfNames(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, rgsznames: *const *const u16, cnames: u32, lcid: u32, rgdispid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrivateDispatch_Impl::ADSIGetIDsOfNames(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&rgsznames), core::mem::transmute_copy(&cnames), core::mem::transmute_copy(&lcid)) { Ok(ok__) => { @@ -9168,10 +6984,7 @@ impl IPrivateDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ADSIInvoke(this: *mut core::ffi::c_void, dispidmember: i32, riid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT - where - Identity: IPrivateDispatch_Impl, - { + unsafe extern "system" fn ADSIInvoke(this: *mut core::ffi::c_void, dispidmember: i32, riid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrivateDispatch_Impl::ADSIInvoke(this, core::mem::transmute_copy(&dispidmember), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&lcid), 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() } @@ -9188,27 +7001,18 @@ impl IPrivateDispatch_Vtbl { iid == &::IID } } -pub trait IPrivateUnknown_Impl: Sized { +pub trait IPrivateUnknown_Impl: Sized + windows_core::IUnknownImpl { fn ADSIInitializeObject(&self, lpszusername: &windows_core::BSTR, lpszpassword: &windows_core::BSTR, lnreserved: i32) -> windows_core::Result<()>; fn ADSIReleaseObject(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrivateUnknown {} impl IPrivateUnknown_Vtbl { - pub const fn new() -> IPrivateUnknown_Vtbl - where - Identity: IPrivateUnknown_Impl, - { - unsafe extern "system" fn ADSIInitializeObject(this: *mut core::ffi::c_void, lpszusername: core::mem::MaybeUninit, lpszpassword: core::mem::MaybeUninit, lnreserved: i32) -> windows_core::HRESULT - where - Identity: IPrivateUnknown_Impl, - { + pub const fn new() -> IPrivateUnknown_Vtbl { + unsafe extern "system" fn ADSIInitializeObject(this: *mut core::ffi::c_void, lpszusername: core::mem::MaybeUninit, lpszpassword: core::mem::MaybeUninit, lnreserved: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrivateUnknown_Impl::ADSIInitializeObject(this, core::mem::transmute(&lpszusername), core::mem::transmute(&lpszpassword), core::mem::transmute_copy(&lnreserved)).into() } - unsafe extern "system" fn ADSIReleaseObject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrivateUnknown_Impl, - { + unsafe extern "system" fn ADSIReleaseObject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrivateUnknown_Impl::ADSIReleaseObject(this).into() } @@ -9223,7 +7027,7 @@ impl IPrivateUnknown_Vtbl { } } #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IQueryForm_Impl: Sized { +pub trait IQueryForm_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hkform: super::super::System::Registry::HKEY) -> windows_core::Result<()>; fn AddForms(&self, paddformsproc: LPCQADDFORMSPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn AddPages(&self, paddpagesproc: LPCQADDPAGESPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; @@ -9232,28 +7036,16 @@ pub trait IQueryForm_Impl: Sized { impl windows_core::RuntimeName for IQueryForm {} #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_WindowsAndMessaging"))] impl IQueryForm_Vtbl { - pub const fn new() -> IQueryForm_Vtbl - where - Identity: IQueryForm_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hkform: super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IQueryForm_Impl, - { + pub const fn new() -> IQueryForm_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hkform: super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryForm_Impl::Initialize(this, core::mem::transmute_copy(&hkform)).into() } - unsafe extern "system" fn AddForms(this: *mut core::ffi::c_void, paddformsproc: LPCQADDFORMSPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IQueryForm_Impl, - { + unsafe extern "system" fn AddForms(this: *mut core::ffi::c_void, paddformsproc: LPCQADDFORMSPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryForm_Impl::AddForms(this, core::mem::transmute_copy(&paddformsproc), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn AddPages(this: *mut core::ffi::c_void, paddpagesproc: LPCQADDPAGESPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IQueryForm_Impl, - { + unsafe extern "system" fn AddPages(this: *mut core::ffi::c_void, paddpagesproc: LPCQADDPAGESPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryForm_Impl::AddPages(this, core::mem::transmute_copy(&paddpagesproc), core::mem::transmute_copy(&lparam)).into() } 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 f4eacd0c89..728834b725 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/impl.rs @@ -1,4 +1,4 @@ -pub trait AsyncIBackgroundCopyCallback_Impl: Sized { +pub trait AsyncIBackgroundCopyCallback_Impl: Sized + windows_core::IUnknownImpl { fn Begin_JobTransferred(&self, pjob: Option<&IBackgroundCopyJob>) -> windows_core::Result<()>; fn Finish_JobTransferred(&self) -> windows_core::Result<()>; fn Begin_JobError(&self, pjob: Option<&IBackgroundCopyJob>, perror: Option<&IBackgroundCopyError>) -> windows_core::Result<()>; @@ -8,49 +8,28 @@ pub trait AsyncIBackgroundCopyCallback_Impl: Sized { } impl windows_core::RuntimeName for AsyncIBackgroundCopyCallback {} impl AsyncIBackgroundCopyCallback_Vtbl { - pub const fn new() -> AsyncIBackgroundCopyCallback_Vtbl - where - Identity: AsyncIBackgroundCopyCallback_Impl, - { - unsafe extern "system" fn Begin_JobTransferred(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIBackgroundCopyCallback_Impl, - { + pub const fn new() -> AsyncIBackgroundCopyCallback_Vtbl { + unsafe extern "system" fn Begin_JobTransferred(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIBackgroundCopyCallback_Impl::Begin_JobTransferred(this, windows_core::from_raw_borrowed(&pjob)).into() } - unsafe extern "system" fn Finish_JobTransferred(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIBackgroundCopyCallback_Impl, - { + unsafe extern "system" fn Finish_JobTransferred(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIBackgroundCopyCallback_Impl::Finish_JobTransferred(this).into() } - unsafe extern "system" fn Begin_JobError(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, perror: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIBackgroundCopyCallback_Impl, - { + unsafe extern "system" fn Begin_JobError(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, perror: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIBackgroundCopyCallback_Impl::Begin_JobError(this, windows_core::from_raw_borrowed(&pjob), windows_core::from_raw_borrowed(&perror)).into() } - unsafe extern "system" fn Finish_JobError(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIBackgroundCopyCallback_Impl, - { + unsafe extern "system" fn Finish_JobError(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIBackgroundCopyCallback_Impl::Finish_JobError(this).into() } - unsafe extern "system" fn Begin_JobModification(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT - where - Identity: AsyncIBackgroundCopyCallback_Impl, - { + unsafe extern "system" fn Begin_JobModification(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIBackgroundCopyCallback_Impl::Begin_JobModification(this, windows_core::from_raw_borrowed(&pjob), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn Finish_JobModification(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIBackgroundCopyCallback_Impl, - { + unsafe extern "system" fn Finish_JobModification(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIBackgroundCopyCallback_Impl::Finish_JobModification(this).into() } @@ -79,28 +58,16 @@ pub trait IBITSExtensionSetup_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IBITSExtensionSetup {} #[cfg(feature = "Win32_System_Com")] impl IBITSExtensionSetup_Vtbl { - pub const fn new() -> IBITSExtensionSetup_Vtbl - where - Identity: IBITSExtensionSetup_Impl, - { - unsafe extern "system" fn EnableBITSUploads(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBITSExtensionSetup_Impl, - { + pub const fn new() -> IBITSExtensionSetup_Vtbl { + unsafe extern "system" fn EnableBITSUploads(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBITSExtensionSetup_Impl::EnableBITSUploads(this).into() } - unsafe extern "system" fn DisableBITSUploads(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBITSExtensionSetup_Impl, - { + unsafe extern "system" fn DisableBITSUploads(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBITSExtensionSetup_Impl::DisableBITSUploads(this).into() } - unsafe extern "system" fn GetCleanupTaskName(this: *mut core::ffi::c_void, ptaskname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBITSExtensionSetup_Impl, - { + unsafe extern "system" fn GetCleanupTaskName(this: *mut core::ffi::c_void, ptaskname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBITSExtensionSetup_Impl::GetCleanupTaskName(this) { Ok(ok__) => { @@ -110,10 +77,7 @@ impl IBITSExtensionSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCleanupTask(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBITSExtensionSetup_Impl, - { + unsafe extern "system" fn GetCleanupTask(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBITSExtensionSetup_Impl::GetCleanupTask(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -143,14 +107,8 @@ pub trait IBITSExtensionSetupFactory_Impl: Sized + super::super::System::Com::ID impl windows_core::RuntimeName for IBITSExtensionSetupFactory {} #[cfg(feature = "Win32_System_Com")] impl IBITSExtensionSetupFactory_Vtbl { - pub const fn new() -> IBITSExtensionSetupFactory_Vtbl - where - Identity: IBITSExtensionSetupFactory_Impl, - { - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, ppextensionsetup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBITSExtensionSetupFactory_Impl, - { + pub const fn new() -> IBITSExtensionSetupFactory_Vtbl { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, ppextensionsetup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBITSExtensionSetupFactory_Impl::GetObject(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -166,35 +124,23 @@ impl IBITSExtensionSetupFactory_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IBackgroundCopyCallback_Impl: Sized { +pub trait IBackgroundCopyCallback_Impl: Sized + windows_core::IUnknownImpl { fn JobTransferred(&self, pjob: Option<&IBackgroundCopyJob>) -> windows_core::Result<()>; fn JobError(&self, pjob: Option<&IBackgroundCopyJob>, perror: Option<&IBackgroundCopyError>) -> windows_core::Result<()>; fn JobModification(&self, pjob: Option<&IBackgroundCopyJob>, dwreserved: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBackgroundCopyCallback {} impl IBackgroundCopyCallback_Vtbl { - pub const fn new() -> IBackgroundCopyCallback_Vtbl - where - Identity: IBackgroundCopyCallback_Impl, - { - unsafe extern "system" fn JobTransferred(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyCallback_Impl, - { + pub const fn new() -> IBackgroundCopyCallback_Vtbl { + unsafe extern "system" fn JobTransferred(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyCallback_Impl::JobTransferred(this, windows_core::from_raw_borrowed(&pjob)).into() } - unsafe extern "system" fn JobError(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, perror: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyCallback_Impl, - { + unsafe extern "system" fn JobError(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, perror: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyCallback_Impl::JobError(this, windows_core::from_raw_borrowed(&pjob), windows_core::from_raw_borrowed(&perror)).into() } - unsafe extern "system" fn JobModification(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyCallback_Impl, - { + unsafe extern "system" fn JobModification(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyCallback_Impl::JobModification(this, windows_core::from_raw_borrowed(&pjob), core::mem::transmute_copy(&dwreserved)).into() } @@ -209,35 +155,23 @@ impl IBackgroundCopyCallback_Vtbl { iid == &::IID } } -pub trait IBackgroundCopyCallback1_Impl: Sized { +pub trait IBackgroundCopyCallback1_Impl: Sized + windows_core::IUnknownImpl { fn OnStatus(&self, pgroup: Option<&IBackgroundCopyGroup>, pjob: Option<&IBackgroundCopyJob1>, dwfileindex: u32, dwstatus: u32, dwnumofretries: u32, dwwin32result: u32, dwtransportresult: u32) -> windows_core::Result<()>; fn OnProgress(&self, progresstype: u32, pgroup: Option<&IBackgroundCopyGroup>, pjob: Option<&IBackgroundCopyJob1>, dwfileindex: u32, dwprogressvalue: u32) -> windows_core::Result<()>; fn OnProgressEx(&self, progresstype: u32, pgroup: Option<&IBackgroundCopyGroup>, pjob: Option<&IBackgroundCopyJob1>, dwfileindex: u32, dwprogressvalue: u32, dwbytearraysize: u32, pbyte: *const u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBackgroundCopyCallback1 {} impl IBackgroundCopyCallback1_Vtbl { - pub const fn new() -> IBackgroundCopyCallback1_Vtbl - where - Identity: IBackgroundCopyCallback1_Impl, - { - unsafe extern "system" fn OnStatus(this: *mut core::ffi::c_void, pgroup: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, dwfileindex: u32, dwstatus: u32, dwnumofretries: u32, dwwin32result: u32, dwtransportresult: u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyCallback1_Impl, - { + pub const fn new() -> IBackgroundCopyCallback1_Vtbl { + unsafe extern "system" fn OnStatus(this: *mut core::ffi::c_void, pgroup: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, dwfileindex: u32, dwstatus: u32, dwnumofretries: u32, dwwin32result: u32, dwtransportresult: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyCallback1_Impl::OnStatus(this, windows_core::from_raw_borrowed(&pgroup), windows_core::from_raw_borrowed(&pjob), core::mem::transmute_copy(&dwfileindex), core::mem::transmute_copy(&dwstatus), core::mem::transmute_copy(&dwnumofretries), core::mem::transmute_copy(&dwwin32result), core::mem::transmute_copy(&dwtransportresult)).into() } - unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, progresstype: u32, pgroup: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, dwfileindex: u32, dwprogressvalue: u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyCallback1_Impl, - { + unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, progresstype: u32, pgroup: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, dwfileindex: u32, dwprogressvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyCallback1_Impl::OnProgress(this, core::mem::transmute_copy(&progresstype), windows_core::from_raw_borrowed(&pgroup), windows_core::from_raw_borrowed(&pjob), core::mem::transmute_copy(&dwfileindex), core::mem::transmute_copy(&dwprogressvalue)).into() } - unsafe extern "system" fn OnProgressEx(this: *mut core::ffi::c_void, progresstype: u32, pgroup: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, dwfileindex: u32, dwprogressvalue: u32, dwbytearraysize: u32, pbyte: *const u8) -> windows_core::HRESULT - where - Identity: IBackgroundCopyCallback1_Impl, - { + unsafe extern "system" fn OnProgressEx(this: *mut core::ffi::c_void, progresstype: u32, pgroup: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, dwfileindex: u32, dwprogressvalue: u32, dwbytearraysize: u32, pbyte: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyCallback1_Impl::OnProgressEx(this, core::mem::transmute_copy(&progresstype), windows_core::from_raw_borrowed(&pgroup), windows_core::from_raw_borrowed(&pjob), core::mem::transmute_copy(&dwfileindex), core::mem::transmute_copy(&dwprogressvalue), core::mem::transmute_copy(&dwbytearraysize), core::mem::transmute_copy(&pbyte)).into() } @@ -257,14 +191,8 @@ pub trait IBackgroundCopyCallback2_Impl: Sized + IBackgroundCopyCallback_Impl { } impl windows_core::RuntimeName for IBackgroundCopyCallback2 {} impl IBackgroundCopyCallback2_Vtbl { - pub const fn new() -> IBackgroundCopyCallback2_Vtbl - where - Identity: IBackgroundCopyCallback2_Impl, - { - unsafe extern "system" fn FileTransferred(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, pfile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyCallback2_Impl, - { + pub const fn new() -> IBackgroundCopyCallback2_Vtbl { + unsafe extern "system" fn FileTransferred(this: *mut core::ffi::c_void, pjob: *mut core::ffi::c_void, pfile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyCallback2_Impl::FileTransferred(this, windows_core::from_raw_borrowed(&pjob), windows_core::from_raw_borrowed(&pfile)).into() } @@ -279,14 +207,8 @@ pub trait IBackgroundCopyCallback3_Impl: Sized + IBackgroundCopyCallback2_Impl { } impl windows_core::RuntimeName for IBackgroundCopyCallback3 {} impl IBackgroundCopyCallback3_Vtbl { - pub const fn new() -> IBackgroundCopyCallback3_Vtbl - where - Identity: IBackgroundCopyCallback3_Impl, - { - unsafe extern "system" fn FileRangesTransferred(this: *mut core::ffi::c_void, job: *mut core::ffi::c_void, file: *mut core::ffi::c_void, rangecount: u32, ranges: *const BG_FILE_RANGE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyCallback3_Impl, - { + pub const fn new() -> IBackgroundCopyCallback3_Vtbl { + unsafe extern "system" fn FileRangesTransferred(this: *mut core::ffi::c_void, job: *mut core::ffi::c_void, file: *mut core::ffi::c_void, rangecount: u32, ranges: *const BG_FILE_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyCallback3_Impl::FileRangesTransferred(this, windows_core::from_raw_borrowed(&job), windows_core::from_raw_borrowed(&file), core::mem::transmute_copy(&rangecount), core::mem::transmute_copy(&ranges)).into() } @@ -296,7 +218,7 @@ impl IBackgroundCopyCallback3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IBackgroundCopyError_Impl: Sized { +pub trait IBackgroundCopyError_Impl: Sized + windows_core::IUnknownImpl { fn GetError(&self, pcontext: *mut BG_ERROR_CONTEXT, pcode: *mut windows_core::HRESULT) -> windows_core::Result<()>; fn GetFile(&self) -> windows_core::Result; fn GetErrorDescription(&self, languageid: u32) -> windows_core::Result; @@ -305,21 +227,12 @@ pub trait IBackgroundCopyError_Impl: Sized { } impl windows_core::RuntimeName for IBackgroundCopyError {} impl IBackgroundCopyError_Vtbl { - pub const fn new() -> IBackgroundCopyError_Vtbl - where - Identity: IBackgroundCopyError_Impl, - { - unsafe extern "system" fn GetError(this: *mut core::ffi::c_void, pcontext: *mut BG_ERROR_CONTEXT, pcode: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IBackgroundCopyError_Impl, - { + pub const fn new() -> IBackgroundCopyError_Vtbl { + unsafe extern "system" fn GetError(this: *mut core::ffi::c_void, pcontext: *mut BG_ERROR_CONTEXT, pcode: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyError_Impl::GetError(this, core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&pcode)).into() } - unsafe extern "system" fn GetFile(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyError_Impl, - { + unsafe extern "system" fn GetFile(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyError_Impl::GetFile(this) { Ok(ok__) => { @@ -329,10 +242,7 @@ impl IBackgroundCopyError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorDescription(this: *mut core::ffi::c_void, languageid: u32, perrordescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyError_Impl, - { + unsafe extern "system" fn GetErrorDescription(this: *mut core::ffi::c_void, languageid: u32, perrordescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyError_Impl::GetErrorDescription(this, core::mem::transmute_copy(&languageid)) { Ok(ok__) => { @@ -342,10 +252,7 @@ impl IBackgroundCopyError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorContextDescription(this: *mut core::ffi::c_void, languageid: u32, pcontextdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyError_Impl, - { + unsafe extern "system" fn GetErrorContextDescription(this: *mut core::ffi::c_void, languageid: u32, pcontextdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyError_Impl::GetErrorContextDescription(this, core::mem::transmute_copy(&languageid)) { Ok(ok__) => { @@ -355,10 +262,7 @@ impl IBackgroundCopyError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProtocol(this: *mut core::ffi::c_void, pprotocol: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyError_Impl, - { + unsafe extern "system" fn GetProtocol(this: *mut core::ffi::c_void, pprotocol: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyError_Impl::GetProtocol(this) { Ok(ok__) => { @@ -381,21 +285,15 @@ impl IBackgroundCopyError_Vtbl { iid == &::IID } } -pub trait IBackgroundCopyFile_Impl: Sized { +pub trait IBackgroundCopyFile_Impl: Sized + windows_core::IUnknownImpl { fn GetRemoteName(&self) -> windows_core::Result; fn GetLocalName(&self) -> windows_core::Result; fn GetProgress(&self, pval: *mut BG_FILE_PROGRESS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBackgroundCopyFile {} impl IBackgroundCopyFile_Vtbl { - pub const fn new() -> IBackgroundCopyFile_Vtbl - where - Identity: IBackgroundCopyFile_Impl, - { - unsafe extern "system" fn GetRemoteName(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile_Impl, - { + pub const fn new() -> IBackgroundCopyFile_Vtbl { + unsafe extern "system" fn GetRemoteName(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyFile_Impl::GetRemoteName(this) { Ok(ok__) => { @@ -405,10 +303,7 @@ impl IBackgroundCopyFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalName(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile_Impl, - { + unsafe extern "system" fn GetLocalName(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyFile_Impl::GetLocalName(this) { Ok(ok__) => { @@ -418,10 +313,7 @@ impl IBackgroundCopyFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, pval: *mut BG_FILE_PROGRESS) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile_Impl, - { + unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, pval: *mut BG_FILE_PROGRESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyFile_Impl::GetProgress(this, core::mem::transmute_copy(&pval)).into() } @@ -442,21 +334,12 @@ pub trait IBackgroundCopyFile2_Impl: Sized + IBackgroundCopyFile_Impl { } impl windows_core::RuntimeName for IBackgroundCopyFile2 {} impl IBackgroundCopyFile2_Vtbl { - pub const fn new() -> IBackgroundCopyFile2_Vtbl - where - Identity: IBackgroundCopyFile2_Impl, - { - unsafe extern "system" fn GetFileRanges(this: *mut core::ffi::c_void, rangecount: *mut u32, ranges: *mut *mut BG_FILE_RANGE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile2_Impl, - { + pub const fn new() -> IBackgroundCopyFile2_Vtbl { + unsafe extern "system" fn GetFileRanges(this: *mut core::ffi::c_void, rangecount: *mut u32, ranges: *mut *mut BG_FILE_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyFile2_Impl::GetFileRanges(this, core::mem::transmute_copy(&rangecount), core::mem::transmute_copy(&ranges)).into() } - unsafe extern "system" fn SetRemoteName(this: *mut core::ffi::c_void, val: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile2_Impl, - { + unsafe extern "system" fn SetRemoteName(this: *mut core::ffi::c_void, val: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyFile2_Impl::SetRemoteName(this, core::mem::transmute(&val)).into() } @@ -478,14 +361,8 @@ pub trait IBackgroundCopyFile3_Impl: Sized + IBackgroundCopyFile2_Impl { } impl windows_core::RuntimeName for IBackgroundCopyFile3 {} impl IBackgroundCopyFile3_Vtbl { - pub const fn new() -> IBackgroundCopyFile3_Vtbl - where - Identity: IBackgroundCopyFile3_Impl, - { - unsafe extern "system" fn GetTemporaryName(this: *mut core::ffi::c_void, pfilename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile3_Impl, - { + pub const fn new() -> IBackgroundCopyFile3_Vtbl { + unsafe extern "system" fn GetTemporaryName(this: *mut core::ffi::c_void, pfilename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyFile3_Impl::GetTemporaryName(this) { Ok(ok__) => { @@ -495,17 +372,11 @@ impl IBackgroundCopyFile3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValidationState(this: *mut core::ffi::c_void, state: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile3_Impl, - { + unsafe extern "system" fn SetValidationState(this: *mut core::ffi::c_void, state: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyFile3_Impl::SetValidationState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn GetValidationState(this: *mut core::ffi::c_void, pstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile3_Impl, - { + unsafe extern "system" fn GetValidationState(this: *mut core::ffi::c_void, pstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyFile3_Impl::GetValidationState(this) { Ok(ok__) => { @@ -515,10 +386,7 @@ impl IBackgroundCopyFile3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDownloadedFromPeer(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile3_Impl, - { + unsafe extern "system" fn IsDownloadedFromPeer(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyFile3_Impl::IsDownloadedFromPeer(this) { Ok(ok__) => { @@ -545,14 +413,8 @@ pub trait IBackgroundCopyFile4_Impl: Sized + IBackgroundCopyFile3_Impl { } impl windows_core::RuntimeName for IBackgroundCopyFile4 {} impl IBackgroundCopyFile4_Vtbl { - pub const fn new() -> IBackgroundCopyFile4_Vtbl - where - Identity: IBackgroundCopyFile4_Impl, - { - unsafe extern "system" fn GetPeerDownloadStats(this: *mut core::ffi::c_void, pfromorigin: *mut u64, pfrompeers: *mut u64) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile4_Impl, - { + pub const fn new() -> IBackgroundCopyFile4_Vtbl { + unsafe extern "system" fn GetPeerDownloadStats(this: *mut core::ffi::c_void, pfromorigin: *mut u64, pfrompeers: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyFile4_Impl::GetPeerDownloadStats(this, core::mem::transmute_copy(&pfromorigin), core::mem::transmute_copy(&pfrompeers)).into() } @@ -568,21 +430,12 @@ pub trait IBackgroundCopyFile5_Impl: Sized + IBackgroundCopyFile4_Impl { } impl windows_core::RuntimeName for IBackgroundCopyFile5 {} impl IBackgroundCopyFile5_Vtbl { - pub const fn new() -> IBackgroundCopyFile5_Vtbl - where - Identity: IBackgroundCopyFile5_Impl, - { - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, propertyid: BITS_FILE_PROPERTY_ID, propertyvalue: BITS_FILE_PROPERTY_VALUE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile5_Impl, - { + pub const fn new() -> IBackgroundCopyFile5_Vtbl { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, propertyid: BITS_FILE_PROPERTY_ID, propertyvalue: BITS_FILE_PROPERTY_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyFile5_Impl::SetProperty(this, core::mem::transmute_copy(&propertyid), core::mem::transmute(&propertyvalue)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propertyid: BITS_FILE_PROPERTY_ID, propertyvalue: *mut BITS_FILE_PROPERTY_VALUE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile5_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propertyid: BITS_FILE_PROPERTY_ID, propertyvalue: *mut BITS_FILE_PROPERTY_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyFile5_Impl::GetProperty(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -609,28 +462,16 @@ pub trait IBackgroundCopyFile6_Impl: Sized + IBackgroundCopyFile5_Impl { } impl windows_core::RuntimeName for IBackgroundCopyFile6 {} impl IBackgroundCopyFile6_Vtbl { - pub const fn new() -> IBackgroundCopyFile6_Vtbl - where - Identity: IBackgroundCopyFile6_Impl, - { - unsafe extern "system" fn UpdateDownloadPosition(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile6_Impl, - { + pub const fn new() -> IBackgroundCopyFile6_Vtbl { + unsafe extern "system" fn UpdateDownloadPosition(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyFile6_Impl::UpdateDownloadPosition(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn RequestFileRanges(this: *mut core::ffi::c_void, rangecount: u32, ranges: *const BG_FILE_RANGE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile6_Impl, - { + unsafe extern "system" fn RequestFileRanges(this: *mut core::ffi::c_void, rangecount: u32, ranges: *const BG_FILE_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyFile6_Impl::RequestFileRanges(this, core::mem::transmute_copy(&rangecount), core::mem::transmute_copy(&ranges)).into() } - unsafe extern "system" fn GetFilledFileRanges(this: *mut core::ffi::c_void, rangecount: *mut u32, ranges: *mut *mut BG_FILE_RANGE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyFile6_Impl, - { + unsafe extern "system" fn GetFilledFileRanges(this: *mut core::ffi::c_void, rangecount: *mut u32, ranges: *mut *mut BG_FILE_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyFile6_Impl::GetFilledFileRanges(this, core::mem::transmute_copy(&rangecount), core::mem::transmute_copy(&ranges)).into() } @@ -645,7 +486,7 @@ impl IBackgroundCopyFile6_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IBackgroundCopyGroup_Impl: Sized { +pub trait IBackgroundCopyGroup_Impl: Sized + windows_core::IUnknownImpl { fn GetProp(&self, propid: GROUPPROP) -> windows_core::Result; fn SetProp(&self, propid: GROUPPROP, pvarval: *const windows_core::VARIANT) -> windows_core::Result<()>; fn GetProgress(&self, dwflags: u32) -> windows_core::Result; @@ -664,14 +505,8 @@ pub trait IBackgroundCopyGroup_Impl: Sized { } impl windows_core::RuntimeName for IBackgroundCopyGroup {} impl IBackgroundCopyGroup_Vtbl { - pub const fn new() -> IBackgroundCopyGroup_Vtbl - where - Identity: IBackgroundCopyGroup_Impl, - { - unsafe extern "system" fn GetProp(this: *mut core::ffi::c_void, propid: GROUPPROP, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + pub const fn new() -> IBackgroundCopyGroup_Vtbl { + unsafe extern "system" fn GetProp(this: *mut core::ffi::c_void, propid: GROUPPROP, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyGroup_Impl::GetProp(this, core::mem::transmute_copy(&propid)) { Ok(ok__) => { @@ -681,17 +516,11 @@ impl IBackgroundCopyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProp(this: *mut core::ffi::c_void, propid: GROUPPROP, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn SetProp(this: *mut core::ffi::c_void, propid: GROUPPROP, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyGroup_Impl::SetProp(this, core::mem::transmute_copy(&propid), core::mem::transmute_copy(&pvarval)).into() } - unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, dwflags: u32, pdwprogress: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, dwflags: u32, pdwprogress: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyGroup_Impl::GetProgress(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -701,17 +530,11 @@ impl IBackgroundCopyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32, pdwjobindex: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32, pdwjobindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyGroup_Impl::GetStatus(this, core::mem::transmute_copy(&pdwstatus), core::mem::transmute_copy(&pdwjobindex)).into() } - unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, jobid: windows_core::GUID, ppjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, jobid: windows_core::GUID, ppjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyGroup_Impl::GetJob(this, core::mem::transmute(&jobid)) { Ok(ok__) => { @@ -721,31 +544,19 @@ impl IBackgroundCopyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SuspendGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn SuspendGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyGroup_Impl::SuspendGroup(this).into() } - unsafe extern "system" fn ResumeGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn ResumeGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyGroup_Impl::ResumeGroup(this).into() } - unsafe extern "system" fn CancelGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn CancelGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyGroup_Impl::CancelGroup(this).into() } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyGroup_Impl::Size(this) { Ok(ok__) => { @@ -755,10 +566,7 @@ impl IBackgroundCopyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GroupID(this: *mut core::ffi::c_void, pguidgroupid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn GroupID(this: *mut core::ffi::c_void, pguidgroupid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyGroup_Impl::GroupID(this) { Ok(ok__) => { @@ -768,10 +576,7 @@ impl IBackgroundCopyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateJob(this: *mut core::ffi::c_void, guidjobid: windows_core::GUID, ppjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn CreateJob(this: *mut core::ffi::c_void, guidjobid: windows_core::GUID, ppjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyGroup_Impl::CreateJob(this, core::mem::transmute(&guidjobid)) { Ok(ok__) => { @@ -781,10 +586,7 @@ impl IBackgroundCopyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumJobs(this: *mut core::ffi::c_void, dwflags: u32, ppenumjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn EnumJobs(this: *mut core::ffi::c_void, dwflags: u32, ppenumjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyGroup_Impl::EnumJobs(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -794,17 +596,11 @@ impl IBackgroundCopyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SwitchToForeground(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn SwitchToForeground(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyGroup_Impl::SwitchToForeground(this).into() } - unsafe extern "system" fn QueryNewJobInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn QueryNewJobInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyGroup_Impl::QueryNewJobInterface(this, core::mem::transmute_copy(&iid)) { Ok(ok__) => { @@ -814,10 +610,7 @@ impl IBackgroundCopyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotificationPointer(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyGroup_Impl, - { + unsafe extern "system" fn SetNotificationPointer(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyGroup_Impl::SetNotificationPointer(this, core::mem::transmute_copy(&iid), windows_core::from_raw_borrowed(&punk)).into() } @@ -844,7 +637,7 @@ impl IBackgroundCopyGroup_Vtbl { iid == &::IID } } -pub trait IBackgroundCopyJob_Impl: Sized { +pub trait IBackgroundCopyJob_Impl: Sized + windows_core::IUnknownImpl { fn AddFileSet(&self, cfilecount: u32, pfileset: *const BG_FILE_INFO) -> windows_core::Result<()>; fn AddFile(&self, remoteurl: &windows_core::PCWSTR, localname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn EnumFiles(&self) -> windows_core::Result; @@ -880,28 +673,16 @@ pub trait IBackgroundCopyJob_Impl: Sized { } impl windows_core::RuntimeName for IBackgroundCopyJob {} impl IBackgroundCopyJob_Vtbl { - pub const fn new() -> IBackgroundCopyJob_Vtbl - where - Identity: IBackgroundCopyJob_Impl, - { - unsafe extern "system" fn AddFileSet(this: *mut core::ffi::c_void, cfilecount: u32, pfileset: *const BG_FILE_INFO) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + pub const fn new() -> IBackgroundCopyJob_Vtbl { + unsafe extern "system" fn AddFileSet(this: *mut core::ffi::c_void, cfilecount: u32, pfileset: *const BG_FILE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::AddFileSet(this, core::mem::transmute_copy(&cfilecount), core::mem::transmute_copy(&pfileset)).into() } - unsafe extern "system" fn AddFile(this: *mut core::ffi::c_void, remoteurl: windows_core::PCWSTR, localname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn AddFile(this: *mut core::ffi::c_void, remoteurl: windows_core::PCWSTR, localname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::AddFile(this, core::mem::transmute(&remoteurl), core::mem::transmute(&localname)).into() } - unsafe extern "system" fn EnumFiles(this: *mut core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn EnumFiles(this: *mut core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::EnumFiles(this) { Ok(ok__) => { @@ -911,38 +692,23 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::Suspend(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::Resume(this).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::Cancel(this).into() } - unsafe extern "system" fn Complete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn Complete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::Complete(this).into() } - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, pval: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, pval: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetId(this) { Ok(ok__) => { @@ -952,10 +718,7 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pval: *mut BG_JOB_TYPE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pval: *mut BG_JOB_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetType(this) { Ok(ok__) => { @@ -965,24 +728,15 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, pval: *mut BG_JOB_PROGRESS) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, pval: *mut BG_JOB_PROGRESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::GetProgress(this, core::mem::transmute_copy(&pval)).into() } - unsafe extern "system" fn GetTimes(this: *mut core::ffi::c_void, pval: *mut BG_JOB_TIMES) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetTimes(this: *mut core::ffi::c_void, pval: *mut BG_JOB_TIMES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::GetTimes(this, core::mem::transmute_copy(&pval)).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pval: *mut BG_JOB_STATE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pval: *mut BG_JOB_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetState(this) { Ok(ok__) => { @@ -992,10 +746,7 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetError(this: *mut core::ffi::c_void, pperror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetError(this: *mut core::ffi::c_void, pperror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetError(this) { Ok(ok__) => { @@ -1005,10 +756,7 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetOwner(this) { Ok(ok__) => { @@ -1018,17 +766,11 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, val: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, val: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::SetDisplayName(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetDisplayName(this) { Ok(ok__) => { @@ -1038,17 +780,11 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, val: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, val: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::SetDescription(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetDescription(this) { Ok(ok__) => { @@ -1058,17 +794,11 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, val: BG_JOB_PRIORITY) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, val: BG_JOB_PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::SetPriority(this, core::mem::transmute_copy(&val)).into() } - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pval: *mut BG_JOB_PRIORITY) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pval: *mut BG_JOB_PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetPriority(this) { Ok(ok__) => { @@ -1078,17 +808,11 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyFlags(this: *mut core::ffi::c_void, val: u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn SetNotifyFlags(this: *mut core::ffi::c_void, val: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::SetNotifyFlags(this, core::mem::transmute_copy(&val)).into() } - unsafe extern "system" fn GetNotifyFlags(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetNotifyFlags(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetNotifyFlags(this) { Ok(ok__) => { @@ -1098,17 +822,11 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyInterface(this: *mut core::ffi::c_void, val: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn SetNotifyInterface(this: *mut core::ffi::c_void, val: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::SetNotifyInterface(this, windows_core::from_raw_borrowed(&val)).into() } - unsafe extern "system" fn GetNotifyInterface(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetNotifyInterface(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetNotifyInterface(this) { Ok(ok__) => { @@ -1118,17 +836,11 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinimumRetryDelay(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn SetMinimumRetryDelay(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::SetMinimumRetryDelay(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn GetMinimumRetryDelay(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetMinimumRetryDelay(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetMinimumRetryDelay(this) { Ok(ok__) => { @@ -1138,17 +850,11 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNoProgressTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn SetNoProgressTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::SetNoProgressTimeout(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn GetNoProgressTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetNoProgressTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetNoProgressTimeout(this) { Ok(ok__) => { @@ -1158,10 +864,7 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorCount(this: *mut core::ffi::c_void, errors: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetErrorCount(this: *mut core::ffi::c_void, errors: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob_Impl::GetErrorCount(this) { Ok(ok__) => { @@ -1171,24 +874,15 @@ impl IBackgroundCopyJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProxySettings(this: *mut core::ffi::c_void, proxyusage: BG_JOB_PROXY_USAGE, proxylist: windows_core::PCWSTR, proxybypasslist: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn SetProxySettings(this: *mut core::ffi::c_void, proxyusage: BG_JOB_PROXY_USAGE, proxylist: windows_core::PCWSTR, proxybypasslist: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::SetProxySettings(this, core::mem::transmute_copy(&proxyusage), core::mem::transmute(&proxylist), core::mem::transmute(&proxybypasslist)).into() } - unsafe extern "system" fn GetProxySettings(this: *mut core::ffi::c_void, pproxyusage: *mut BG_JOB_PROXY_USAGE, pproxylist: *mut windows_core::PWSTR, pproxybypasslist: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn GetProxySettings(this: *mut core::ffi::c_void, pproxyusage: *mut BG_JOB_PROXY_USAGE, pproxylist: *mut windows_core::PWSTR, pproxybypasslist: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::GetProxySettings(this, core::mem::transmute_copy(&pproxyusage), core::mem::transmute_copy(&pproxylist), core::mem::transmute_copy(&pproxybypasslist)).into() } - unsafe extern "system" fn TakeOwnership(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob_Impl, - { + unsafe extern "system" fn TakeOwnership(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob_Impl::TakeOwnership(this).into() } @@ -1232,7 +926,7 @@ impl IBackgroundCopyJob_Vtbl { iid == &::IID } } -pub trait IBackgroundCopyJob1_Impl: Sized { +pub trait IBackgroundCopyJob1_Impl: Sized + windows_core::IUnknownImpl { fn CancelJob(&self) -> windows_core::Result<()>; fn GetProgress(&self, dwflags: u32) -> windows_core::Result; fn GetStatus(&self, pdwstatus: *mut u32, pdwwin32result: *mut u32, pdwtransportresult: *mut u32, pdwnumofretries: *mut u32) -> windows_core::Result<()>; @@ -1244,21 +938,12 @@ pub trait IBackgroundCopyJob1_Impl: Sized { } impl windows_core::RuntimeName for IBackgroundCopyJob1 {} impl IBackgroundCopyJob1_Vtbl { - pub const fn new() -> IBackgroundCopyJob1_Vtbl - where - Identity: IBackgroundCopyJob1_Impl, - { - unsafe extern "system" fn CancelJob(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob1_Impl, - { + pub const fn new() -> IBackgroundCopyJob1_Vtbl { + unsafe extern "system" fn CancelJob(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob1_Impl::CancelJob(this).into() } - unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, dwflags: u32, pdwprogress: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob1_Impl, - { + unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, dwflags: u32, pdwprogress: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob1_Impl::GetProgress(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -1268,24 +953,15 @@ impl IBackgroundCopyJob1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32, pdwwin32result: *mut u32, pdwtransportresult: *mut u32, pdwnumofretries: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob1_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32, pdwwin32result: *mut u32, pdwtransportresult: *mut u32, pdwnumofretries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob1_Impl::GetStatus(this, core::mem::transmute_copy(&pdwstatus), core::mem::transmute_copy(&pdwwin32result), core::mem::transmute_copy(&pdwtransportresult), core::mem::transmute_copy(&pdwnumofretries)).into() } - unsafe extern "system" fn AddFiles(this: *mut core::ffi::c_void, cfilecount: u32, ppfileset: *const *const FILESETINFO) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob1_Impl, - { + unsafe extern "system" fn AddFiles(this: *mut core::ffi::c_void, cfilecount: u32, ppfileset: *const *const FILESETINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob1_Impl::AddFiles(this, core::mem::transmute_copy(&cfilecount), core::mem::transmute_copy(&ppfileset)).into() } - unsafe extern "system" fn GetFile(this: *mut core::ffi::c_void, cfileindex: u32, pfileinfo: *mut FILESETINFO) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob1_Impl, - { + unsafe extern "system" fn GetFile(this: *mut core::ffi::c_void, cfileindex: u32, pfileinfo: *mut FILESETINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob1_Impl::GetFile(this, core::mem::transmute_copy(&cfileindex)) { Ok(ok__) => { @@ -1295,10 +971,7 @@ impl IBackgroundCopyJob1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileCount(this: *mut core::ffi::c_void, pdwfilecount: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob1_Impl, - { + unsafe extern "system" fn GetFileCount(this: *mut core::ffi::c_void, pdwfilecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob1_Impl::GetFileCount(this) { Ok(ok__) => { @@ -1308,17 +981,11 @@ impl IBackgroundCopyJob1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SwitchToForeground(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob1_Impl, - { + unsafe extern "system" fn SwitchToForeground(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob1_Impl::SwitchToForeground(this).into() } - unsafe extern "system" fn JobID(this: *mut core::ffi::c_void, pguidjobid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob1_Impl, - { + unsafe extern "system" fn JobID(this: *mut core::ffi::c_void, pguidjobid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob1_Impl::JobID(this) { Ok(ok__) => { @@ -1356,49 +1023,28 @@ pub trait IBackgroundCopyJob2_Impl: Sized + IBackgroundCopyJob_Impl { } impl windows_core::RuntimeName for IBackgroundCopyJob2 {} impl IBackgroundCopyJob2_Vtbl { - pub const fn new() -> IBackgroundCopyJob2_Vtbl - where - Identity: IBackgroundCopyJob2_Impl, - { - unsafe extern "system" fn SetNotifyCmdLine(this: *mut core::ffi::c_void, program: windows_core::PCWSTR, parameters: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob2_Impl, - { + pub const fn new() -> IBackgroundCopyJob2_Vtbl { + unsafe extern "system" fn SetNotifyCmdLine(this: *mut core::ffi::c_void, program: windows_core::PCWSTR, parameters: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob2_Impl::SetNotifyCmdLine(this, core::mem::transmute(&program), core::mem::transmute(¶meters)).into() } - unsafe extern "system" fn GetNotifyCmdLine(this: *mut core::ffi::c_void, pprogram: *mut windows_core::PWSTR, pparameters: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob2_Impl, - { + unsafe extern "system" fn GetNotifyCmdLine(this: *mut core::ffi::c_void, pprogram: *mut windows_core::PWSTR, pparameters: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob2_Impl::GetNotifyCmdLine(this, core::mem::transmute_copy(&pprogram), core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn GetReplyProgress(this: *mut core::ffi::c_void, pprogress: *mut BG_JOB_REPLY_PROGRESS) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob2_Impl, - { + unsafe extern "system" fn GetReplyProgress(this: *mut core::ffi::c_void, pprogress: *mut BG_JOB_REPLY_PROGRESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob2_Impl::GetReplyProgress(this, core::mem::transmute_copy(&pprogress)).into() } - unsafe extern "system" fn GetReplyData(this: *mut core::ffi::c_void, ppbuffer: *mut *mut u8, plength: *mut u64) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob2_Impl, - { + unsafe extern "system" fn GetReplyData(this: *mut core::ffi::c_void, ppbuffer: *mut *mut u8, plength: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob2_Impl::GetReplyData(this, core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&plength)).into() } - unsafe extern "system" fn SetReplyFileName(this: *mut core::ffi::c_void, replyfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob2_Impl, - { + unsafe extern "system" fn SetReplyFileName(this: *mut core::ffi::c_void, replyfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob2_Impl::SetReplyFileName(this, core::mem::transmute(&replyfilename)).into() } - unsafe extern "system" fn GetReplyFileName(this: *mut core::ffi::c_void, preplyfilename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob2_Impl, - { + unsafe extern "system" fn GetReplyFileName(this: *mut core::ffi::c_void, preplyfilename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob2_Impl::GetReplyFileName(this) { Ok(ok__) => { @@ -1408,17 +1054,11 @@ impl IBackgroundCopyJob2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, credentials: *const BG_AUTH_CREDENTIALS) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob2_Impl, - { + unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, credentials: *const BG_AUTH_CREDENTIALS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob2_Impl::SetCredentials(this, core::mem::transmute_copy(&credentials)).into() } - unsafe extern "system" fn RemoveCredentials(this: *mut core::ffi::c_void, target: BG_AUTH_TARGET, scheme: BG_AUTH_SCHEME) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob2_Impl, - { + unsafe extern "system" fn RemoveCredentials(this: *mut core::ffi::c_void, target: BG_AUTH_TARGET, scheme: BG_AUTH_SCHEME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob2_Impl::RemoveCredentials(this, core::mem::transmute_copy(&target), core::mem::transmute_copy(&scheme)).into() } @@ -1446,35 +1086,20 @@ pub trait IBackgroundCopyJob3_Impl: Sized + IBackgroundCopyJob2_Impl { } impl windows_core::RuntimeName for IBackgroundCopyJob3 {} impl IBackgroundCopyJob3_Vtbl { - pub const fn new() -> IBackgroundCopyJob3_Vtbl - where - Identity: IBackgroundCopyJob3_Impl, - { - unsafe extern "system" fn ReplaceRemotePrefix(this: *mut core::ffi::c_void, oldprefix: windows_core::PCWSTR, newprefix: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob3_Impl, - { + pub const fn new() -> IBackgroundCopyJob3_Vtbl { + unsafe extern "system" fn ReplaceRemotePrefix(this: *mut core::ffi::c_void, oldprefix: windows_core::PCWSTR, newprefix: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob3_Impl::ReplaceRemotePrefix(this, core::mem::transmute(&oldprefix), core::mem::transmute(&newprefix)).into() } - unsafe extern "system" fn AddFileWithRanges(this: *mut core::ffi::c_void, remoteurl: windows_core::PCWSTR, localname: windows_core::PCWSTR, rangecount: u32, ranges: *const BG_FILE_RANGE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob3_Impl, - { + unsafe extern "system" fn AddFileWithRanges(this: *mut core::ffi::c_void, remoteurl: windows_core::PCWSTR, localname: windows_core::PCWSTR, rangecount: u32, ranges: *const BG_FILE_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob3_Impl::AddFileWithRanges(this, core::mem::transmute(&remoteurl), core::mem::transmute(&localname), core::mem::transmute_copy(&rangecount), core::mem::transmute_copy(&ranges)).into() } - unsafe extern "system" fn SetFileACLFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob3_Impl, - { + unsafe extern "system" fn SetFileACLFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob3_Impl::SetFileACLFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetFileACLFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob3_Impl, - { + unsafe extern "system" fn GetFileACLFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob3_Impl::GetFileACLFlags(this) { Ok(ok__) => { @@ -1506,21 +1131,12 @@ pub trait IBackgroundCopyJob4_Impl: Sized + IBackgroundCopyJob3_Impl { } impl windows_core::RuntimeName for IBackgroundCopyJob4 {} impl IBackgroundCopyJob4_Vtbl { - pub const fn new() -> IBackgroundCopyJob4_Vtbl - where - Identity: IBackgroundCopyJob4_Impl, - { - unsafe extern "system" fn SetPeerCachingFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob4_Impl, - { + pub const fn new() -> IBackgroundCopyJob4_Vtbl { + unsafe extern "system" fn SetPeerCachingFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob4_Impl::SetPeerCachingFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetPeerCachingFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob4_Impl, - { + unsafe extern "system" fn GetPeerCachingFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob4_Impl::GetPeerCachingFlags(this) { Ok(ok__) => { @@ -1530,10 +1146,7 @@ impl IBackgroundCopyJob4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOwnerIntegrityLevel(this: *mut core::ffi::c_void, plevel: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob4_Impl, - { + unsafe extern "system" fn GetOwnerIntegrityLevel(this: *mut core::ffi::c_void, plevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob4_Impl::GetOwnerIntegrityLevel(this) { Ok(ok__) => { @@ -1543,10 +1156,7 @@ impl IBackgroundCopyJob4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOwnerElevationState(this: *mut core::ffi::c_void, pelevated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob4_Impl, - { + unsafe extern "system" fn GetOwnerElevationState(this: *mut core::ffi::c_void, pelevated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob4_Impl::GetOwnerElevationState(this) { Ok(ok__) => { @@ -1556,17 +1166,11 @@ impl IBackgroundCopyJob4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaximumDownloadTime(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob4_Impl, - { + unsafe extern "system" fn SetMaximumDownloadTime(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob4_Impl::SetMaximumDownloadTime(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn GetMaximumDownloadTime(this: *mut core::ffi::c_void, ptimeout: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob4_Impl, - { + unsafe extern "system" fn GetMaximumDownloadTime(this: *mut core::ffi::c_void, ptimeout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob4_Impl::GetMaximumDownloadTime(this) { Ok(ok__) => { @@ -1596,21 +1200,12 @@ pub trait IBackgroundCopyJob5_Impl: Sized + IBackgroundCopyJob4_Impl { } impl windows_core::RuntimeName for IBackgroundCopyJob5 {} impl IBackgroundCopyJob5_Vtbl { - pub const fn new() -> IBackgroundCopyJob5_Vtbl - where - Identity: IBackgroundCopyJob5_Impl, - { - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, propertyid: BITS_JOB_PROPERTY_ID, propertyvalue: BITS_JOB_PROPERTY_VALUE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob5_Impl, - { + pub const fn new() -> IBackgroundCopyJob5_Vtbl { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, propertyid: BITS_JOB_PROPERTY_ID, propertyvalue: BITS_JOB_PROPERTY_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJob5_Impl::SetProperty(this, core::mem::transmute_copy(&propertyid), core::mem::transmute(&propertyvalue)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propertyid: BITS_JOB_PROPERTY_ID, propertyvalue: *mut BITS_JOB_PROPERTY_VALUE) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJob5_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propertyid: BITS_JOB_PROPERTY_ID, propertyvalue: *mut BITS_JOB_PROPERTY_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob5_Impl::GetProperty(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -1630,7 +1225,7 @@ impl IBackgroundCopyJob5_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IBackgroundCopyJobHttpOptions_Impl: Sized { +pub trait IBackgroundCopyJobHttpOptions_Impl: Sized + windows_core::IUnknownImpl { fn SetClientCertificateByID(&self, storelocation: BG_CERT_STORE_LOCATION, storename: &windows_core::PCWSTR, pcerthashblob: *const u8) -> windows_core::Result<()>; fn SetClientCertificateByName(&self, storelocation: BG_CERT_STORE_LOCATION, storename: &windows_core::PCWSTR, subjectname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn RemoveClientCertificate(&self) -> windows_core::Result<()>; @@ -1642,49 +1237,28 @@ pub trait IBackgroundCopyJobHttpOptions_Impl: Sized { } impl windows_core::RuntimeName for IBackgroundCopyJobHttpOptions {} impl IBackgroundCopyJobHttpOptions_Vtbl { - pub const fn new() -> IBackgroundCopyJobHttpOptions_Vtbl - where - Identity: IBackgroundCopyJobHttpOptions_Impl, - { - unsafe extern "system" fn SetClientCertificateByID(this: *mut core::ffi::c_void, storelocation: BG_CERT_STORE_LOCATION, storename: windows_core::PCWSTR, pcerthashblob: *const u8) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions_Impl, - { + pub const fn new() -> IBackgroundCopyJobHttpOptions_Vtbl { + unsafe extern "system" fn SetClientCertificateByID(this: *mut core::ffi::c_void, storelocation: BG_CERT_STORE_LOCATION, storename: windows_core::PCWSTR, pcerthashblob: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJobHttpOptions_Impl::SetClientCertificateByID(this, core::mem::transmute_copy(&storelocation), core::mem::transmute(&storename), core::mem::transmute_copy(&pcerthashblob)).into() } - unsafe extern "system" fn SetClientCertificateByName(this: *mut core::ffi::c_void, storelocation: BG_CERT_STORE_LOCATION, storename: windows_core::PCWSTR, subjectname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions_Impl, - { + unsafe extern "system" fn SetClientCertificateByName(this: *mut core::ffi::c_void, storelocation: BG_CERT_STORE_LOCATION, storename: windows_core::PCWSTR, subjectname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJobHttpOptions_Impl::SetClientCertificateByName(this, core::mem::transmute_copy(&storelocation), core::mem::transmute(&storename), core::mem::transmute(&subjectname)).into() } - unsafe extern "system" fn RemoveClientCertificate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions_Impl, - { + unsafe extern "system" fn RemoveClientCertificate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJobHttpOptions_Impl::RemoveClientCertificate(this).into() } - unsafe extern "system" fn GetClientCertificate(this: *mut core::ffi::c_void, pstorelocation: *mut BG_CERT_STORE_LOCATION, pstorename: *mut windows_core::PWSTR, ppcerthashblob: *mut *mut u8, psubjectname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions_Impl, - { + unsafe extern "system" fn GetClientCertificate(this: *mut core::ffi::c_void, pstorelocation: *mut BG_CERT_STORE_LOCATION, pstorename: *mut windows_core::PWSTR, ppcerthashblob: *mut *mut u8, psubjectname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJobHttpOptions_Impl::GetClientCertificate(this, core::mem::transmute_copy(&pstorelocation), core::mem::transmute_copy(&pstorename), core::mem::transmute_copy(&ppcerthashblob), core::mem::transmute_copy(&psubjectname)).into() } - unsafe extern "system" fn SetCustomHeaders(this: *mut core::ffi::c_void, requestheaders: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions_Impl, - { + unsafe extern "system" fn SetCustomHeaders(this: *mut core::ffi::c_void, requestheaders: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJobHttpOptions_Impl::SetCustomHeaders(this, core::mem::transmute(&requestheaders)).into() } - unsafe extern "system" fn GetCustomHeaders(this: *mut core::ffi::c_void, prequestheaders: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions_Impl, - { + unsafe extern "system" fn GetCustomHeaders(this: *mut core::ffi::c_void, prequestheaders: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJobHttpOptions_Impl::GetCustomHeaders(this) { Ok(ok__) => { @@ -1694,17 +1268,11 @@ impl IBackgroundCopyJobHttpOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions_Impl, - { + unsafe extern "system" fn SetSecurityFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJobHttpOptions_Impl::SetSecurityFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetSecurityFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions_Impl, - { + unsafe extern "system" fn GetSecurityFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJobHttpOptions_Impl::GetSecurityFlags(this) { Ok(ok__) => { @@ -1736,21 +1304,12 @@ pub trait IBackgroundCopyJobHttpOptions2_Impl: Sized + IBackgroundCopyJobHttpOpt } impl windows_core::RuntimeName for IBackgroundCopyJobHttpOptions2 {} impl IBackgroundCopyJobHttpOptions2_Vtbl { - pub const fn new() -> IBackgroundCopyJobHttpOptions2_Vtbl - where - Identity: IBackgroundCopyJobHttpOptions2_Impl, - { - unsafe extern "system" fn SetHttpMethod(this: *mut core::ffi::c_void, method: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions2_Impl, - { + pub const fn new() -> IBackgroundCopyJobHttpOptions2_Vtbl { + unsafe extern "system" fn SetHttpMethod(this: *mut core::ffi::c_void, method: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJobHttpOptions2_Impl::SetHttpMethod(this, core::mem::transmute(&method)).into() } - unsafe extern "system" fn GetHttpMethod(this: *mut core::ffi::c_void, method: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions2_Impl, - { + unsafe extern "system" fn GetHttpMethod(this: *mut core::ffi::c_void, method: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJobHttpOptions2_Impl::GetHttpMethod(this) { Ok(ok__) => { @@ -1776,21 +1335,12 @@ pub trait IBackgroundCopyJobHttpOptions3_Impl: Sized + IBackgroundCopyJobHttpOpt } impl windows_core::RuntimeName for IBackgroundCopyJobHttpOptions3 {} impl IBackgroundCopyJobHttpOptions3_Vtbl { - pub const fn new() -> IBackgroundCopyJobHttpOptions3_Vtbl - where - Identity: IBackgroundCopyJobHttpOptions3_Impl, - { - unsafe extern "system" fn SetServerCertificateValidationInterface(this: *mut core::ffi::c_void, certvalidationcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions3_Impl, - { + pub const fn new() -> IBackgroundCopyJobHttpOptions3_Vtbl { + unsafe extern "system" fn SetServerCertificateValidationInterface(this: *mut core::ffi::c_void, certvalidationcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJobHttpOptions3_Impl::SetServerCertificateValidationInterface(this, windows_core::from_raw_borrowed(&certvalidationcallback)).into() } - unsafe extern "system" fn MakeCustomHeadersWriteOnly(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyJobHttpOptions3_Impl, - { + unsafe extern "system" fn MakeCustomHeadersWriteOnly(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyJobHttpOptions3_Impl::MakeCustomHeadersWriteOnly(this).into() } @@ -1804,7 +1354,7 @@ impl IBackgroundCopyJobHttpOptions3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IBackgroundCopyManager_Impl: Sized { +pub trait IBackgroundCopyManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateJob(&self, displayname: &windows_core::PCWSTR, r#type: BG_JOB_TYPE, pjobid: *mut windows_core::GUID, ppjob: *mut Option) -> windows_core::Result<()>; fn GetJob(&self, jobid: *const windows_core::GUID) -> windows_core::Result; fn EnumJobs(&self, dwflags: u32) -> windows_core::Result; @@ -1812,21 +1362,12 @@ pub trait IBackgroundCopyManager_Impl: Sized { } impl windows_core::RuntimeName for IBackgroundCopyManager {} impl IBackgroundCopyManager_Vtbl { - pub const fn new() -> IBackgroundCopyManager_Vtbl - where - Identity: IBackgroundCopyManager_Impl, - { - unsafe extern "system" fn CreateJob(this: *mut core::ffi::c_void, displayname: windows_core::PCWSTR, r#type: BG_JOB_TYPE, pjobid: *mut windows_core::GUID, ppjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyManager_Impl, - { + pub const fn new() -> IBackgroundCopyManager_Vtbl { + unsafe extern "system" fn CreateJob(this: *mut core::ffi::c_void, displayname: windows_core::PCWSTR, r#type: BG_JOB_TYPE, pjobid: *mut windows_core::GUID, ppjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyManager_Impl::CreateJob(this, core::mem::transmute(&displayname), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pjobid), core::mem::transmute_copy(&ppjob)).into() } - unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, jobid: *const windows_core::GUID, ppjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyManager_Impl, - { + unsafe extern "system" fn GetJob(this: *mut core::ffi::c_void, jobid: *const windows_core::GUID, ppjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyManager_Impl::GetJob(this, core::mem::transmute_copy(&jobid)) { Ok(ok__) => { @@ -1836,10 +1377,7 @@ impl IBackgroundCopyManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumJobs(this: *mut core::ffi::c_void, dwflags: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyManager_Impl, - { + unsafe extern "system" fn EnumJobs(this: *mut core::ffi::c_void, dwflags: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyManager_Impl::EnumJobs(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -1849,10 +1387,7 @@ impl IBackgroundCopyManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorDescription(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, languageid: u32, perrordescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBackgroundCopyManager_Impl, - { + unsafe extern "system" fn GetErrorDescription(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, languageid: u32, perrordescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyManager_Impl::GetErrorDescription(this, core::mem::transmute_copy(&hresult), core::mem::transmute_copy(&languageid)) { Ok(ok__) => { @@ -1874,21 +1409,15 @@ impl IBackgroundCopyManager_Vtbl { iid == &::IID } } -pub trait IBackgroundCopyQMgr_Impl: Sized { +pub trait IBackgroundCopyQMgr_Impl: Sized + windows_core::IUnknownImpl { fn CreateGroup(&self, guidgroupid: &windows_core::GUID) -> windows_core::Result; fn GetGroup(&self, groupid: &windows_core::GUID) -> windows_core::Result; fn EnumGroups(&self, dwflags: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IBackgroundCopyQMgr {} impl IBackgroundCopyQMgr_Vtbl { - pub const fn new() -> IBackgroundCopyQMgr_Vtbl - where - Identity: IBackgroundCopyQMgr_Impl, - { - unsafe extern "system" fn CreateGroup(this: *mut core::ffi::c_void, guidgroupid: windows_core::GUID, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyQMgr_Impl, - { + pub const fn new() -> IBackgroundCopyQMgr_Vtbl { + unsafe extern "system" fn CreateGroup(this: *mut core::ffi::c_void, guidgroupid: windows_core::GUID, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyQMgr_Impl::CreateGroup(this, core::mem::transmute(&guidgroupid)) { Ok(ok__) => { @@ -1898,10 +1427,7 @@ impl IBackgroundCopyQMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGroup(this: *mut core::ffi::c_void, groupid: windows_core::GUID, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyQMgr_Impl, - { + unsafe extern "system" fn GetGroup(this: *mut core::ffi::c_void, groupid: windows_core::GUID, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyQMgr_Impl::GetGroup(this, core::mem::transmute(&groupid)) { Ok(ok__) => { @@ -1911,10 +1437,7 @@ impl IBackgroundCopyQMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumGroups(this: *mut core::ffi::c_void, dwflags: u32, ppenumgroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBackgroundCopyQMgr_Impl, - { + unsafe extern "system" fn EnumGroups(this: *mut core::ffi::c_void, dwflags: u32, ppenumgroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyQMgr_Impl::EnumGroups(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -1935,19 +1458,13 @@ impl IBackgroundCopyQMgr_Vtbl { iid == &::IID } } -pub trait IBackgroundCopyServerCertificateValidationCallback_Impl: Sized { +pub trait IBackgroundCopyServerCertificateValidationCallback_Impl: Sized + windows_core::IUnknownImpl { fn ValidateServerCertificate(&self, job: Option<&IBackgroundCopyJob>, file: Option<&IBackgroundCopyFile>, certlength: u32, certdata: *const u8, certencodingtype: u32, certstorelength: u32, certstoredata: *const u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBackgroundCopyServerCertificateValidationCallback {} impl IBackgroundCopyServerCertificateValidationCallback_Vtbl { - pub const fn new() -> IBackgroundCopyServerCertificateValidationCallback_Vtbl - where - Identity: IBackgroundCopyServerCertificateValidationCallback_Impl, - { - unsafe extern "system" fn ValidateServerCertificate(this: *mut core::ffi::c_void, job: *mut core::ffi::c_void, file: *mut core::ffi::c_void, certlength: u32, certdata: *const u8, certencodingtype: u32, certstorelength: u32, certstoredata: *const u8) -> windows_core::HRESULT - where - Identity: IBackgroundCopyServerCertificateValidationCallback_Impl, - { + pub const fn new() -> IBackgroundCopyServerCertificateValidationCallback_Vtbl { + unsafe extern "system" fn ValidateServerCertificate(this: *mut core::ffi::c_void, job: *mut core::ffi::c_void, file: *mut core::ffi::c_void, certlength: u32, certdata: *const u8, certencodingtype: u32, certstorelength: u32, certstoredata: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyServerCertificateValidationCallback_Impl::ValidateServerCertificate(this, windows_core::from_raw_borrowed(&job), windows_core::from_raw_borrowed(&file), core::mem::transmute_copy(&certlength), core::mem::transmute_copy(&certdata), core::mem::transmute_copy(&certencodingtype), core::mem::transmute_copy(&certstorelength), core::mem::transmute_copy(&certstoredata)).into() } @@ -1957,21 +1474,15 @@ impl IBackgroundCopyServerCertificateValidationCallback_Vtbl { iid == &::IID } } -pub trait IBitsPeer_Impl: Sized { +pub trait IBitsPeer_Impl: Sized + windows_core::IUnknownImpl { fn GetPeerName(&self) -> windows_core::Result; fn IsAuthenticated(&self) -> windows_core::Result; fn IsAvailable(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IBitsPeer {} impl IBitsPeer_Vtbl { - pub const fn new() -> IBitsPeer_Vtbl - where - Identity: IBitsPeer_Impl, - { - unsafe extern "system" fn GetPeerName(this: *mut core::ffi::c_void, pname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBitsPeer_Impl, - { + pub const fn new() -> IBitsPeer_Vtbl { + unsafe extern "system" fn GetPeerName(this: *mut core::ffi::c_void, pname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeer_Impl::GetPeerName(this) { Ok(ok__) => { @@ -1981,10 +1492,7 @@ impl IBitsPeer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pauth: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBitsPeer_Impl, - { + unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pauth: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeer_Impl::IsAuthenticated(this) { Ok(ok__) => { @@ -1994,10 +1502,7 @@ impl IBitsPeer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsAvailable(this: *mut core::ffi::c_void, ponline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBitsPeer_Impl, - { + unsafe extern "system" fn IsAvailable(this: *mut core::ffi::c_void, ponline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeer_Impl::IsAvailable(this) { Ok(ok__) => { @@ -2018,7 +1523,7 @@ impl IBitsPeer_Vtbl { iid == &::IID } } -pub trait IBitsPeerCacheAdministration_Impl: Sized { +pub trait IBitsPeerCacheAdministration_Impl: Sized + windows_core::IUnknownImpl { fn GetMaximumCacheSize(&self) -> windows_core::Result; fn SetMaximumCacheSize(&self, bytes: u32) -> windows_core::Result<()>; fn GetMaximumContentAge(&self) -> windows_core::Result; @@ -2036,14 +1541,8 @@ pub trait IBitsPeerCacheAdministration_Impl: Sized { } impl windows_core::RuntimeName for IBitsPeerCacheAdministration {} impl IBitsPeerCacheAdministration_Vtbl { - pub const fn new() -> IBitsPeerCacheAdministration_Vtbl - where - Identity: IBitsPeerCacheAdministration_Impl, - { - unsafe extern "system" fn GetMaximumCacheSize(this: *mut core::ffi::c_void, pbytes: *mut u32) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + pub const fn new() -> IBitsPeerCacheAdministration_Vtbl { + unsafe extern "system" fn GetMaximumCacheSize(this: *mut core::ffi::c_void, pbytes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheAdministration_Impl::GetMaximumCacheSize(this) { Ok(ok__) => { @@ -2053,17 +1552,11 @@ impl IBitsPeerCacheAdministration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaximumCacheSize(this: *mut core::ffi::c_void, bytes: u32) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn SetMaximumCacheSize(this: *mut core::ffi::c_void, bytes: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsPeerCacheAdministration_Impl::SetMaximumCacheSize(this, core::mem::transmute_copy(&bytes)).into() } - unsafe extern "system" fn GetMaximumContentAge(this: *mut core::ffi::c_void, pseconds: *mut u32) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn GetMaximumContentAge(this: *mut core::ffi::c_void, pseconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheAdministration_Impl::GetMaximumContentAge(this) { Ok(ok__) => { @@ -2073,17 +1566,11 @@ impl IBitsPeerCacheAdministration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaximumContentAge(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn SetMaximumContentAge(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsPeerCacheAdministration_Impl::SetMaximumContentAge(this, core::mem::transmute_copy(&seconds)) } - unsafe extern "system" fn GetConfigurationFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn GetConfigurationFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheAdministration_Impl::GetConfigurationFlags(this) { Ok(ok__) => { @@ -2093,17 +1580,11 @@ impl IBitsPeerCacheAdministration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConfigurationFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn SetConfigurationFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsPeerCacheAdministration_Impl::SetConfigurationFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn EnumRecords(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn EnumRecords(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheAdministration_Impl::EnumRecords(this) { Ok(ok__) => { @@ -2113,10 +1594,7 @@ impl IBitsPeerCacheAdministration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecord(this: *mut core::ffi::c_void, id: *const windows_core::GUID, pprecord: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn GetRecord(this: *mut core::ffi::c_void, id: *const windows_core::GUID, pprecord: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheAdministration_Impl::GetRecord(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -2126,31 +1604,19 @@ impl IBitsPeerCacheAdministration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClearRecords(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn ClearRecords(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsPeerCacheAdministration_Impl::ClearRecords(this).into() } - unsafe extern "system" fn DeleteRecord(this: *mut core::ffi::c_void, id: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn DeleteRecord(this: *mut core::ffi::c_void, id: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsPeerCacheAdministration_Impl::DeleteRecord(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn DeleteUrl(this: *mut core::ffi::c_void, url: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn DeleteUrl(this: *mut core::ffi::c_void, url: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsPeerCacheAdministration_Impl::DeleteUrl(this, core::mem::transmute(&url)).into() } - unsafe extern "system" fn EnumPeers(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn EnumPeers(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheAdministration_Impl::EnumPeers(this) { Ok(ok__) => { @@ -2160,17 +1626,11 @@ impl IBitsPeerCacheAdministration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClearPeers(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn ClearPeers(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsPeerCacheAdministration_Impl::ClearPeers(this).into() } - unsafe extern "system" fn DiscoverPeers(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheAdministration_Impl, - { + unsafe extern "system" fn DiscoverPeers(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsPeerCacheAdministration_Impl::DiscoverPeers(this).into() } @@ -2196,7 +1656,7 @@ impl IBitsPeerCacheAdministration_Vtbl { iid == &::IID } } -pub trait IBitsPeerCacheRecord_Impl: Sized { +pub trait IBitsPeerCacheRecord_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> windows_core::Result; fn GetOriginUrl(&self) -> windows_core::Result; fn GetFileSize(&self) -> windows_core::Result; @@ -2207,14 +1667,8 @@ pub trait IBitsPeerCacheRecord_Impl: Sized { } impl windows_core::RuntimeName for IBitsPeerCacheRecord {} impl IBitsPeerCacheRecord_Vtbl { - pub const fn new() -> IBitsPeerCacheRecord_Vtbl - where - Identity: IBitsPeerCacheRecord_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, pval: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheRecord_Impl, - { + pub const fn new() -> IBitsPeerCacheRecord_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, pval: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheRecord_Impl::GetId(this) { Ok(ok__) => { @@ -2224,10 +1678,7 @@ impl IBitsPeerCacheRecord_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginUrl(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheRecord_Impl, - { + unsafe extern "system" fn GetOriginUrl(this: *mut core::ffi::c_void, pval: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheRecord_Impl::GetOriginUrl(this) { Ok(ok__) => { @@ -2237,10 +1688,7 @@ impl IBitsPeerCacheRecord_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, pval: *mut u64) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheRecord_Impl, - { + unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, pval: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheRecord_Impl::GetFileSize(this) { Ok(ok__) => { @@ -2250,10 +1698,7 @@ impl IBitsPeerCacheRecord_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileModificationTime(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheRecord_Impl, - { + unsafe extern "system" fn GetFileModificationTime(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheRecord_Impl::GetFileModificationTime(this) { Ok(ok__) => { @@ -2263,10 +1708,7 @@ impl IBitsPeerCacheRecord_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastAccessTime(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheRecord_Impl, - { + unsafe extern "system" fn GetLastAccessTime(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeerCacheRecord_Impl::GetLastAccessTime(this) { Ok(ok__) => { @@ -2276,17 +1718,11 @@ impl IBitsPeerCacheRecord_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFileValidated(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheRecord_Impl, - { + unsafe extern "system" fn IsFileValidated(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsPeerCacheRecord_Impl::IsFileValidated(this).into() } - unsafe extern "system" fn GetFileRanges(this: *mut core::ffi::c_void, prangecount: *mut u32, ppranges: *mut *mut BG_FILE_RANGE) -> windows_core::HRESULT - where - Identity: IBitsPeerCacheRecord_Impl, - { + unsafe extern "system" fn GetFileRanges(this: *mut core::ffi::c_void, prangecount: *mut u32, ppranges: *mut *mut BG_FILE_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsPeerCacheRecord_Impl::GetFileRanges(this, core::mem::transmute_copy(&prangecount), core::mem::transmute_copy(&ppranges)).into() } @@ -2305,7 +1741,7 @@ impl IBitsPeerCacheRecord_Vtbl { iid == &::IID } } -pub trait IBitsTokenOptions_Impl: Sized { +pub trait IBitsTokenOptions_Impl: Sized + windows_core::IUnknownImpl { fn SetHelperTokenFlags(&self, usageflags: BG_TOKEN) -> windows_core::Result<()>; fn GetHelperTokenFlags(&self) -> windows_core::Result; fn SetHelperToken(&self) -> windows_core::Result<()>; @@ -2314,21 +1750,12 @@ pub trait IBitsTokenOptions_Impl: Sized { } impl windows_core::RuntimeName for IBitsTokenOptions {} impl IBitsTokenOptions_Vtbl { - pub const fn new() -> IBitsTokenOptions_Vtbl - where - Identity: IBitsTokenOptions_Impl, - { - unsafe extern "system" fn SetHelperTokenFlags(this: *mut core::ffi::c_void, usageflags: BG_TOKEN) -> windows_core::HRESULT - where - Identity: IBitsTokenOptions_Impl, - { + pub const fn new() -> IBitsTokenOptions_Vtbl { + unsafe extern "system" fn SetHelperTokenFlags(this: *mut core::ffi::c_void, usageflags: BG_TOKEN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsTokenOptions_Impl::SetHelperTokenFlags(this, core::mem::transmute_copy(&usageflags)).into() } - unsafe extern "system" fn GetHelperTokenFlags(this: *mut core::ffi::c_void, pflags: *mut BG_TOKEN) -> windows_core::HRESULT - where - Identity: IBitsTokenOptions_Impl, - { + unsafe extern "system" fn GetHelperTokenFlags(this: *mut core::ffi::c_void, pflags: *mut BG_TOKEN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsTokenOptions_Impl::GetHelperTokenFlags(this) { Ok(ok__) => { @@ -2338,24 +1765,15 @@ impl IBitsTokenOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHelperToken(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitsTokenOptions_Impl, - { + unsafe extern "system" fn SetHelperToken(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsTokenOptions_Impl::SetHelperToken(this).into() } - unsafe extern "system" fn ClearHelperToken(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBitsTokenOptions_Impl, - { + unsafe extern "system" fn ClearHelperToken(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBitsTokenOptions_Impl::ClearHelperToken(this).into() } - unsafe extern "system" fn GetHelperTokenSid(this: *mut core::ffi::c_void, psid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IBitsTokenOptions_Impl, - { + unsafe extern "system" fn GetHelperTokenSid(this: *mut core::ffi::c_void, psid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsTokenOptions_Impl::GetHelperTokenSid(this) { Ok(ok__) => { @@ -2378,7 +1796,7 @@ impl IBitsTokenOptions_Vtbl { iid == &::IID } } -pub trait IEnumBackgroundCopyFiles_Impl: Sized { +pub trait IEnumBackgroundCopyFiles_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2387,35 +1805,20 @@ pub trait IEnumBackgroundCopyFiles_Impl: Sized { } impl windows_core::RuntimeName for IEnumBackgroundCopyFiles {} impl IEnumBackgroundCopyFiles_Vtbl { - pub const fn new() -> IEnumBackgroundCopyFiles_Vtbl - where - Identity: IEnumBackgroundCopyFiles_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyFiles_Impl, - { + pub const fn new() -> IEnumBackgroundCopyFiles_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyFiles_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyFiles_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyFiles_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyFiles_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyFiles_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyFiles_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBackgroundCopyFiles_Impl::Clone(this) { Ok(ok__) => { @@ -2425,10 +1828,7 @@ impl IEnumBackgroundCopyFiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyFiles_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBackgroundCopyFiles_Impl::GetCount(this) { Ok(ok__) => { @@ -2451,7 +1851,7 @@ impl IEnumBackgroundCopyFiles_Vtbl { iid == &::IID } } -pub trait IEnumBackgroundCopyGroups_Impl: Sized { +pub trait IEnumBackgroundCopyGroups_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2460,35 +1860,20 @@ pub trait IEnumBackgroundCopyGroups_Impl: Sized { } impl windows_core::RuntimeName for IEnumBackgroundCopyGroups {} impl IEnumBackgroundCopyGroups_Vtbl { - pub const fn new() -> IEnumBackgroundCopyGroups_Vtbl - where - Identity: IEnumBackgroundCopyGroups_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyGroups_Impl, - { + pub const fn new() -> IEnumBackgroundCopyGroups_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyGroups_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyGroups_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyGroups_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyGroups_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyGroups_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyGroups_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBackgroundCopyGroups_Impl::Clone(this) { Ok(ok__) => { @@ -2498,10 +1883,7 @@ impl IEnumBackgroundCopyGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyGroups_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBackgroundCopyGroups_Impl::GetCount(this) { Ok(ok__) => { @@ -2524,7 +1906,7 @@ impl IEnumBackgroundCopyGroups_Vtbl { iid == &::IID } } -pub trait IEnumBackgroundCopyJobs_Impl: Sized { +pub trait IEnumBackgroundCopyJobs_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2533,35 +1915,20 @@ pub trait IEnumBackgroundCopyJobs_Impl: Sized { } impl windows_core::RuntimeName for IEnumBackgroundCopyJobs {} impl IEnumBackgroundCopyJobs_Vtbl { - pub const fn new() -> IEnumBackgroundCopyJobs_Vtbl - where - Identity: IEnumBackgroundCopyJobs_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyJobs_Impl, - { + pub const fn new() -> IEnumBackgroundCopyJobs_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyJobs_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyJobs_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyJobs_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyJobs_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyJobs_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyJobs_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBackgroundCopyJobs_Impl::Clone(this) { Ok(ok__) => { @@ -2571,10 +1938,7 @@ impl IEnumBackgroundCopyJobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyJobs_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBackgroundCopyJobs_Impl::GetCount(this) { Ok(ok__) => { @@ -2597,7 +1961,7 @@ impl IEnumBackgroundCopyJobs_Vtbl { iid == &::IID } } -pub trait IEnumBackgroundCopyJobs1_Impl: Sized { +pub trait IEnumBackgroundCopyJobs1_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2606,35 +1970,20 @@ pub trait IEnumBackgroundCopyJobs1_Impl: Sized { } impl windows_core::RuntimeName for IEnumBackgroundCopyJobs1 {} impl IEnumBackgroundCopyJobs1_Vtbl { - pub const fn new() -> IEnumBackgroundCopyJobs1_Vtbl - where - Identity: IEnumBackgroundCopyJobs1_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyJobs1_Impl, - { + pub const fn new() -> IEnumBackgroundCopyJobs1_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyJobs1_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyJobs1_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyJobs1_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyJobs1_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBackgroundCopyJobs1_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyJobs1_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBackgroundCopyJobs1_Impl::Clone(this) { Ok(ok__) => { @@ -2644,10 +1993,7 @@ impl IEnumBackgroundCopyJobs1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBackgroundCopyJobs1_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBackgroundCopyJobs1_Impl::GetCount(this) { Ok(ok__) => { @@ -2670,7 +2016,7 @@ impl IEnumBackgroundCopyJobs1_Vtbl { iid == &::IID } } -pub trait IEnumBitsPeerCacheRecords_Impl: Sized { +pub trait IEnumBitsPeerCacheRecords_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2679,35 +2025,20 @@ pub trait IEnumBitsPeerCacheRecords_Impl: Sized { } impl windows_core::RuntimeName for IEnumBitsPeerCacheRecords {} impl IEnumBitsPeerCacheRecords_Vtbl { - pub const fn new() -> IEnumBitsPeerCacheRecords_Vtbl - where - Identity: IEnumBitsPeerCacheRecords_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBitsPeerCacheRecords_Impl, - { + pub const fn new() -> IEnumBitsPeerCacheRecords_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBitsPeerCacheRecords_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumBitsPeerCacheRecords_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBitsPeerCacheRecords_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBitsPeerCacheRecords_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBitsPeerCacheRecords_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBitsPeerCacheRecords_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBitsPeerCacheRecords_Impl::Clone(this) { Ok(ok__) => { @@ -2717,10 +2048,7 @@ impl IEnumBitsPeerCacheRecords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBitsPeerCacheRecords_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBitsPeerCacheRecords_Impl::GetCount(this) { Ok(ok__) => { @@ -2743,7 +2071,7 @@ impl IEnumBitsPeerCacheRecords_Vtbl { iid == &::IID } } -pub trait IEnumBitsPeers_Impl: Sized { +pub trait IEnumBitsPeers_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2752,35 +2080,20 @@ pub trait IEnumBitsPeers_Impl: Sized { } impl windows_core::RuntimeName for IEnumBitsPeers {} impl IEnumBitsPeers_Vtbl { - pub const fn new() -> IEnumBitsPeers_Vtbl - where - Identity: IEnumBitsPeers_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBitsPeers_Impl, - { + pub const fn new() -> IEnumBitsPeers_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBitsPeers_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumBitsPeers_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBitsPeers_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBitsPeers_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumBitsPeers_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumBitsPeers_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBitsPeers_Impl::Clone(this) { Ok(ok__) => { @@ -2790,10 +2103,7 @@ impl IEnumBitsPeers_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumBitsPeers_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumBitsPeers_Impl::GetCount(this) { Ok(ok__) => { 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 e271b9aed9..5e2854d638 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/impl.rs @@ -1,32 +1,20 @@ -pub trait IGetClusterDataInfo_Impl: Sized { +pub trait IGetClusterDataInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetClusterName(&self, lpszname: windows_core::BSTR, pcchname: *mut i32) -> windows_core::Result<()>; fn GetClusterHandle(&self) -> HCLUSTER; fn GetObjectCount(&self) -> i32; } impl windows_core::RuntimeName for IGetClusterDataInfo {} impl IGetClusterDataInfo_Vtbl { - pub const fn new() -> IGetClusterDataInfo_Vtbl - where - Identity: IGetClusterDataInfo_Impl, - { - unsafe extern "system" fn GetClusterName(this: *mut core::ffi::c_void, lpszname: core::mem::MaybeUninit, pcchname: *mut i32) -> windows_core::HRESULT - where - Identity: IGetClusterDataInfo_Impl, - { + pub const fn new() -> IGetClusterDataInfo_Vtbl { + unsafe extern "system" fn GetClusterName(this: *mut core::ffi::c_void, lpszname: core::mem::MaybeUninit, pcchname: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterDataInfo_Impl::GetClusterName(this, core::mem::transmute_copy(&lpszname), core::mem::transmute_copy(&pcchname)).into() } - unsafe extern "system" fn GetClusterHandle(this: *mut core::ffi::c_void) -> HCLUSTER - where - Identity: IGetClusterDataInfo_Impl, - { + unsafe extern "system" fn GetClusterHandle(this: *mut core::ffi::c_void) -> HCLUSTER { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterDataInfo_Impl::GetClusterHandle(this) } - unsafe extern "system" fn GetObjectCount(this: *mut core::ffi::c_void) -> i32 - where - Identity: IGetClusterDataInfo_Impl, - { + unsafe extern "system" fn GetObjectCount(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterDataInfo_Impl::GetObjectCount(this) } @@ -41,19 +29,13 @@ impl IGetClusterDataInfo_Vtbl { iid == &::IID } } -pub trait IGetClusterGroupInfo_Impl: Sized { +pub trait IGetClusterGroupInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetGroupHandle(&self, lobjindex: i32) -> HGROUP; } impl windows_core::RuntimeName for IGetClusterGroupInfo {} impl IGetClusterGroupInfo_Vtbl { - pub const fn new() -> IGetClusterGroupInfo_Vtbl - where - Identity: IGetClusterGroupInfo_Impl, - { - unsafe extern "system" fn GetGroupHandle(this: *mut core::ffi::c_void, lobjindex: i32) -> HGROUP - where - Identity: IGetClusterGroupInfo_Impl, - { + pub const fn new() -> IGetClusterGroupInfo_Vtbl { + unsafe extern "system" fn GetGroupHandle(this: *mut core::ffi::c_void, lobjindex: i32) -> HGROUP { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterGroupInfo_Impl::GetGroupHandle(this, core::mem::transmute_copy(&lobjindex)) } @@ -63,19 +45,13 @@ impl IGetClusterGroupInfo_Vtbl { iid == &::IID } } -pub trait IGetClusterNetInterfaceInfo_Impl: Sized { +pub trait IGetClusterNetInterfaceInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetNetInterfaceHandle(&self, lobjindex: i32) -> HNETINTERFACE; } impl windows_core::RuntimeName for IGetClusterNetInterfaceInfo {} impl IGetClusterNetInterfaceInfo_Vtbl { - pub const fn new() -> IGetClusterNetInterfaceInfo_Vtbl - where - Identity: IGetClusterNetInterfaceInfo_Impl, - { - unsafe extern "system" fn GetNetInterfaceHandle(this: *mut core::ffi::c_void, lobjindex: i32) -> HNETINTERFACE - where - Identity: IGetClusterNetInterfaceInfo_Impl, - { + pub const fn new() -> IGetClusterNetInterfaceInfo_Vtbl { + unsafe extern "system" fn GetNetInterfaceHandle(this: *mut core::ffi::c_void, lobjindex: i32) -> HNETINTERFACE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterNetInterfaceInfo_Impl::GetNetInterfaceHandle(this, core::mem::transmute_copy(&lobjindex)) } @@ -85,19 +61,13 @@ impl IGetClusterNetInterfaceInfo_Vtbl { iid == &::IID } } -pub trait IGetClusterNetworkInfo_Impl: Sized { +pub trait IGetClusterNetworkInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetNetworkHandle(&self, lobjindex: i32) -> HNETWORK; } impl windows_core::RuntimeName for IGetClusterNetworkInfo {} impl IGetClusterNetworkInfo_Vtbl { - pub const fn new() -> IGetClusterNetworkInfo_Vtbl - where - Identity: IGetClusterNetworkInfo_Impl, - { - unsafe extern "system" fn GetNetworkHandle(this: *mut core::ffi::c_void, lobjindex: i32) -> HNETWORK - where - Identity: IGetClusterNetworkInfo_Impl, - { + pub const fn new() -> IGetClusterNetworkInfo_Vtbl { + unsafe extern "system" fn GetNetworkHandle(this: *mut core::ffi::c_void, lobjindex: i32) -> HNETWORK { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterNetworkInfo_Impl::GetNetworkHandle(this, core::mem::transmute_copy(&lobjindex)) } @@ -107,19 +77,13 @@ impl IGetClusterNetworkInfo_Vtbl { iid == &::IID } } -pub trait IGetClusterNodeInfo_Impl: Sized { +pub trait IGetClusterNodeInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetNodeHandle(&self, lobjindex: i32) -> HNODE; } impl windows_core::RuntimeName for IGetClusterNodeInfo {} impl IGetClusterNodeInfo_Vtbl { - pub const fn new() -> IGetClusterNodeInfo_Vtbl - where - Identity: IGetClusterNodeInfo_Impl, - { - unsafe extern "system" fn GetNodeHandle(this: *mut core::ffi::c_void, lobjindex: i32) -> HNODE - where - Identity: IGetClusterNodeInfo_Impl, - { + pub const fn new() -> IGetClusterNodeInfo_Vtbl { + unsafe extern "system" fn GetNodeHandle(this: *mut core::ffi::c_void, lobjindex: i32) -> HNODE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterNodeInfo_Impl::GetNodeHandle(this, core::mem::transmute_copy(&lobjindex)) } @@ -129,27 +93,18 @@ impl IGetClusterNodeInfo_Vtbl { iid == &::IID } } -pub trait IGetClusterObjectInfo_Impl: Sized { +pub trait IGetClusterObjectInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetObjectName(&self, lobjindex: i32, lpszname: windows_core::BSTR, pcchname: *mut i32) -> windows_core::Result<()>; fn GetObjectType(&self, lobjindex: i32) -> CLUADMEX_OBJECT_TYPE; } impl windows_core::RuntimeName for IGetClusterObjectInfo {} impl IGetClusterObjectInfo_Vtbl { - pub const fn new() -> IGetClusterObjectInfo_Vtbl - where - Identity: IGetClusterObjectInfo_Impl, - { - unsafe extern "system" fn GetObjectName(this: *mut core::ffi::c_void, lobjindex: i32, lpszname: core::mem::MaybeUninit, pcchname: *mut i32) -> windows_core::HRESULT - where - Identity: IGetClusterObjectInfo_Impl, - { + pub const fn new() -> IGetClusterObjectInfo_Vtbl { + unsafe extern "system" fn GetObjectName(this: *mut core::ffi::c_void, lobjindex: i32, lpszname: core::mem::MaybeUninit, pcchname: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterObjectInfo_Impl::GetObjectName(this, core::mem::transmute_copy(&lobjindex), core::mem::transmute_copy(&lpszname), core::mem::transmute_copy(&pcchname)).into() } - unsafe extern "system" fn GetObjectType(this: *mut core::ffi::c_void, lobjindex: i32) -> CLUADMEX_OBJECT_TYPE - where - Identity: IGetClusterObjectInfo_Impl, - { + unsafe extern "system" fn GetObjectType(this: *mut core::ffi::c_void, lobjindex: i32) -> CLUADMEX_OBJECT_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterObjectInfo_Impl::GetObjectType(this, core::mem::transmute_copy(&lobjindex)) } @@ -163,35 +118,23 @@ impl IGetClusterObjectInfo_Vtbl { iid == &::IID } } -pub trait IGetClusterResourceInfo_Impl: Sized { +pub trait IGetClusterResourceInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetResourceHandle(&self, lobjindex: i32) -> HRESOURCE; 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; } impl windows_core::RuntimeName for IGetClusterResourceInfo {} impl IGetClusterResourceInfo_Vtbl { - pub const fn new() -> IGetClusterResourceInfo_Vtbl - where - Identity: IGetClusterResourceInfo_Impl, - { - unsafe extern "system" fn GetResourceHandle(this: *mut core::ffi::c_void, lobjindex: i32) -> HRESOURCE - where - Identity: IGetClusterResourceInfo_Impl, - { + pub const fn new() -> IGetClusterResourceInfo_Vtbl { + unsafe extern "system" fn GetResourceHandle(this: *mut core::ffi::c_void, lobjindex: i32) -> HRESOURCE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterResourceInfo_Impl::GetResourceHandle(this, core::mem::transmute_copy(&lobjindex)) } - unsafe extern "system" fn GetResourceTypeName(this: *mut core::ffi::c_void, lobjindex: i32, lpszrestypename: core::mem::MaybeUninit, pcchrestypename: *mut i32) -> windows_core::HRESULT - where - Identity: IGetClusterResourceInfo_Impl, - { + unsafe extern "system" fn GetResourceTypeName(this: *mut core::ffi::c_void, lobjindex: i32, lpszrestypename: core::mem::MaybeUninit, pcchrestypename: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterResourceInfo_Impl::GetResourceTypeName(this, core::mem::transmute_copy(&lobjindex), core::mem::transmute_copy(&lpszrestypename), core::mem::transmute_copy(&pcchrestypename)).into() } - unsafe extern "system" fn GetResourceNetworkName(this: *mut core::ffi::c_void, lobjindex: i32, lpsznetname: core::mem::MaybeUninit, pcchnetname: *mut u32) -> super::super::Foundation::BOOL - where - Identity: IGetClusterResourceInfo_Impl, - { + unsafe extern "system" fn GetResourceNetworkName(this: *mut core::ffi::c_void, lobjindex: i32, lpsznetname: core::mem::MaybeUninit, pcchnetname: *mut u32) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterResourceInfo_Impl::GetResourceNetworkName(this, core::mem::transmute_copy(&lobjindex), core::mem::transmute_copy(&lpsznetname), core::mem::transmute_copy(&pcchnetname)) } @@ -207,7 +150,7 @@ impl IGetClusterResourceInfo_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IGetClusterUIInfo_Impl: Sized { +pub trait IGetClusterUIInfo_Impl: Sized + windows_core::IUnknownImpl { 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; @@ -217,35 +160,20 @@ pub trait IGetClusterUIInfo_Impl: Sized { impl windows_core::RuntimeName for IGetClusterUIInfo {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IGetClusterUIInfo_Vtbl { - pub const fn new() -> IGetClusterUIInfo_Vtbl - where - Identity: IGetClusterUIInfo_Impl, - { - unsafe extern "system" fn GetClusterName(this: *mut core::ffi::c_void, lpszname: core::mem::MaybeUninit, pcchname: *mut i32) -> windows_core::HRESULT - where - Identity: IGetClusterUIInfo_Impl, - { + pub const fn new() -> IGetClusterUIInfo_Vtbl { + unsafe extern "system" fn GetClusterName(this: *mut core::ffi::c_void, lpszname: core::mem::MaybeUninit, pcchname: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterUIInfo_Impl::GetClusterName(this, core::mem::transmute_copy(&lpszname), core::mem::transmute_copy(&pcchname)).into() } - unsafe extern "system" fn GetLocale(this: *mut core::ffi::c_void) -> u32 - where - Identity: IGetClusterUIInfo_Impl, - { + unsafe extern "system" fn GetLocale(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterUIInfo_Impl::GetLocale(this) } - unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void) -> super::super::Graphics::Gdi::HFONT - where - Identity: IGetClusterUIInfo_Impl, - { + unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void) -> super::super::Graphics::Gdi::HFONT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterUIInfo_Impl::GetFont(this) } - unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void) -> super::super::UI::WindowsAndMessaging::HICON - where - Identity: IGetClusterUIInfo_Impl, - { + unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void) -> super::super::UI::WindowsAndMessaging::HICON { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterUIInfo_Impl::GetIcon(this) } @@ -271,14 +199,8 @@ pub trait ISClusApplication_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ISClusApplication {} #[cfg(feature = "Win32_System_Com")] impl ISClusApplication_Vtbl { - pub const fn new() -> ISClusApplication_Vtbl - where - Identity: ISClusApplication_Impl, - { - unsafe extern "system" fn DomainNames(this: *mut core::ffi::c_void, ppdomains: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusApplication_Impl, - { + pub const fn new() -> ISClusApplication_Vtbl { + unsafe extern "system" fn DomainNames(this: *mut core::ffi::c_void, ppdomains: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusApplication_Impl::DomainNames(this) { Ok(ok__) => { @@ -288,10 +210,7 @@ impl ISClusApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ClusterNames(this: *mut core::ffi::c_void, bstrdomainname: core::mem::MaybeUninit, ppclusters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusApplication_Impl, - { + unsafe extern "system" fn get_ClusterNames(this: *mut core::ffi::c_void, bstrdomainname: core::mem::MaybeUninit, ppclusters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusApplication_Impl::get_ClusterNames(this, core::mem::transmute(&bstrdomainname)) { Ok(ok__) => { @@ -301,10 +220,7 @@ impl ISClusApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenCluster(this: *mut core::ffi::c_void, bstrclustername: core::mem::MaybeUninit, pcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusApplication_Impl, - { + unsafe extern "system" fn OpenCluster(this: *mut core::ffi::c_void, bstrclustername: core::mem::MaybeUninit, pcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusApplication_Impl::OpenCluster(this, core::mem::transmute(&bstrclustername)) { Ok(ok__) => { @@ -338,14 +254,8 @@ pub trait ISClusCryptoKeys_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ISClusCryptoKeys {} #[cfg(feature = "Win32_System_Com")] impl ISClusCryptoKeys_Vtbl { - pub const fn new() -> ISClusCryptoKeys_Vtbl - where - Identity: ISClusCryptoKeys_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusCryptoKeys_Impl, - { + pub const fn new() -> ISClusCryptoKeys_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusCryptoKeys_Impl::Count(this) { Ok(ok__) => { @@ -355,10 +265,7 @@ impl ISClusCryptoKeys_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusCryptoKeys_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusCryptoKeys_Impl::_NewEnum(this) { Ok(ok__) => { @@ -368,17 +275,11 @@ impl ISClusCryptoKeys_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusCryptoKeys_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusCryptoKeys_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pbstrcyrptokey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusCryptoKeys_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pbstrcyrptokey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusCryptoKeys_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -388,17 +289,11 @@ impl ISClusCryptoKeys_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, bstrcryptokey: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusCryptoKeys_Impl, - { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, bstrcryptokey: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusCryptoKeys_Impl::AddItem(this, core::mem::transmute(&bstrcryptokey)).into() } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusCryptoKeys_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusCryptoKeys_Impl::RemoveItem(this, core::mem::transmute(&varindex)).into() } @@ -427,14 +322,8 @@ pub trait ISClusDisk_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISClusDisk {} #[cfg(feature = "Win32_System_Com")] impl ISClusDisk_Vtbl { - pub const fn new() -> ISClusDisk_Vtbl - where - Identity: ISClusDisk_Impl, - { - unsafe extern "system" fn Signature(this: *mut core::ffi::c_void, plsignature: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusDisk_Impl, - { + pub const fn new() -> ISClusDisk_Vtbl { + unsafe extern "system" fn Signature(this: *mut core::ffi::c_void, plsignature: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusDisk_Impl::Signature(this) { Ok(ok__) => { @@ -444,10 +333,7 @@ impl ISClusDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScsiAddress(this: *mut core::ffi::c_void, ppscsiaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusDisk_Impl, - { + unsafe extern "system" fn ScsiAddress(this: *mut core::ffi::c_void, ppscsiaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusDisk_Impl::ScsiAddress(this) { Ok(ok__) => { @@ -457,10 +343,7 @@ impl ISClusDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DiskNumber(this: *mut core::ffi::c_void, pldisknumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusDisk_Impl, - { + unsafe extern "system" fn DiskNumber(this: *mut core::ffi::c_void, pldisknumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusDisk_Impl::DiskNumber(this) { Ok(ok__) => { @@ -470,10 +353,7 @@ impl ISClusDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Partitions(this: *mut core::ffi::c_void, pppartitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusDisk_Impl, - { + unsafe extern "system" fn Partitions(this: *mut core::ffi::c_void, pppartitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusDisk_Impl::Partitions(this) { Ok(ok__) => { @@ -505,14 +385,8 @@ pub trait ISClusDisks_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISClusDisks {} #[cfg(feature = "Win32_System_Com")] impl ISClusDisks_Vtbl { - pub const fn new() -> ISClusDisks_Vtbl - where - Identity: ISClusDisks_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusDisks_Impl, - { + pub const fn new() -> ISClusDisks_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusDisks_Impl::Count(this) { Ok(ok__) => { @@ -522,10 +396,7 @@ impl ISClusDisks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusDisks_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusDisks_Impl::_NewEnum(this) { Ok(ok__) => { @@ -535,10 +406,7 @@ impl ISClusDisks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusDisks_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusDisks_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -574,14 +442,8 @@ pub trait ISClusNetInterface_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISClusNetInterface {} #[cfg(feature = "Win32_System_Com")] impl ISClusNetInterface_Vtbl { - pub const fn new() -> ISClusNetInterface_Vtbl - where - Identity: ISClusNetInterface_Impl, - { - unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetInterface_Impl, - { + pub const fn new() -> ISClusNetInterface_Vtbl { + unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterface_Impl::CommonProperties(this) { Ok(ok__) => { @@ -591,10 +453,7 @@ impl ISClusNetInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetInterface_Impl, - { + unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterface_Impl::PrivateProperties(this) { Ok(ok__) => { @@ -604,10 +463,7 @@ impl ISClusNetInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetInterface_Impl, - { + unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterface_Impl::CommonROProperties(this) { Ok(ok__) => { @@ -617,10 +473,7 @@ impl ISClusNetInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetInterface_Impl, - { + unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterface_Impl::PrivateROProperties(this) { Ok(ok__) => { @@ -630,10 +483,7 @@ impl ISClusNetInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusNetInterface_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterface_Impl::Name(this) { Ok(ok__) => { @@ -643,10 +493,7 @@ impl ISClusNetInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT - where - Identity: ISClusNetInterface_Impl, - { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterface_Impl::Handle(this) { Ok(ok__) => { @@ -656,10 +503,7 @@ impl ISClusNetInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, dwstate: *mut CLUSTER_NETINTERFACE_STATE) -> windows_core::HRESULT - where - Identity: ISClusNetInterface_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, dwstate: *mut CLUSTER_NETINTERFACE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterface_Impl::State(this) { Ok(ok__) => { @@ -669,10 +513,7 @@ impl ISClusNetInterface_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetInterface_Impl, - { + unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterface_Impl::Cluster(this) { Ok(ok__) => { @@ -709,14 +550,8 @@ pub trait ISClusNetInterfaces_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ISClusNetInterfaces {} #[cfg(feature = "Win32_System_Com")] impl ISClusNetInterfaces_Vtbl { - pub const fn new() -> ISClusNetInterfaces_Vtbl - where - Identity: ISClusNetInterfaces_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusNetInterfaces_Impl, - { + pub const fn new() -> ISClusNetInterfaces_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterfaces_Impl::Count(this) { Ok(ok__) => { @@ -726,10 +561,7 @@ impl ISClusNetInterfaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetInterfaces_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterfaces_Impl::_NewEnum(this) { Ok(ok__) => { @@ -739,17 +571,11 @@ impl ISClusNetInterfaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetInterfaces_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusNetInterfaces_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusnetinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetInterfaces_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusnetinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetInterfaces_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -789,14 +615,8 @@ pub trait ISClusNetwork_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISClusNetwork {} #[cfg(feature = "Win32_System_Com")] impl ISClusNetwork_Vtbl { - pub const fn new() -> ISClusNetwork_Vtbl - where - Identity: ISClusNetwork_Impl, - { - unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + pub const fn new() -> ISClusNetwork_Vtbl { + unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetwork_Impl::CommonProperties(this) { Ok(ok__) => { @@ -806,10 +626,7 @@ impl ISClusNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetwork_Impl::PrivateProperties(this) { Ok(ok__) => { @@ -819,10 +636,7 @@ impl ISClusNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetwork_Impl::CommonROProperties(this) { Ok(ok__) => { @@ -832,10 +646,7 @@ impl ISClusNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetwork_Impl::PrivateROProperties(this) { Ok(ok__) => { @@ -845,10 +656,7 @@ impl ISClusNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetwork_Impl::Handle(this) { Ok(ok__) => { @@ -858,10 +666,7 @@ impl ISClusNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetwork_Impl::Name(this) { Ok(ok__) => { @@ -871,17 +676,11 @@ impl ISClusNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrnetworkname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrnetworkname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusNetwork_Impl::SetName(this, core::mem::transmute(&bstrnetworkname)).into() } - unsafe extern "system" fn NetworkID(this: *mut core::ffi::c_void, pbstrnetworkid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + unsafe extern "system" fn NetworkID(this: *mut core::ffi::c_void, pbstrnetworkid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetwork_Impl::NetworkID(this) { Ok(ok__) => { @@ -891,10 +690,7 @@ impl ISClusNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, dwstate: *mut CLUSTER_NETWORK_STATE) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, dwstate: *mut CLUSTER_NETWORK_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetwork_Impl::State(this) { Ok(ok__) => { @@ -904,10 +700,7 @@ impl ISClusNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NetInterfaces(this: *mut core::ffi::c_void, ppclusnetinterfaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + unsafe extern "system" fn NetInterfaces(this: *mut core::ffi::c_void, ppclusnetinterfaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetwork_Impl::NetInterfaces(this) { Ok(ok__) => { @@ -917,10 +710,7 @@ impl ISClusNetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetwork_Impl, - { + unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetwork_Impl::Cluster(this) { Ok(ok__) => { @@ -960,14 +750,8 @@ pub trait ISClusNetworkNetInterfaces_Impl: Sized + super::super::System::Com::ID impl windows_core::RuntimeName for ISClusNetworkNetInterfaces {} #[cfg(feature = "Win32_System_Com")] impl ISClusNetworkNetInterfaces_Vtbl { - pub const fn new() -> ISClusNetworkNetInterfaces_Vtbl - where - Identity: ISClusNetworkNetInterfaces_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusNetworkNetInterfaces_Impl, - { + pub const fn new() -> ISClusNetworkNetInterfaces_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetworkNetInterfaces_Impl::Count(this) { Ok(ok__) => { @@ -977,10 +761,7 @@ impl ISClusNetworkNetInterfaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetworkNetInterfaces_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetworkNetInterfaces_Impl::_NewEnum(this) { Ok(ok__) => { @@ -990,17 +771,11 @@ impl ISClusNetworkNetInterfaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetworkNetInterfaces_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusNetworkNetInterfaces_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusnetinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetworkNetInterfaces_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusnetinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetworkNetInterfaces_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -1033,14 +808,8 @@ pub trait ISClusNetworks_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISClusNetworks {} #[cfg(feature = "Win32_System_Com")] impl ISClusNetworks_Vtbl { - pub const fn new() -> ISClusNetworks_Vtbl - where - Identity: ISClusNetworks_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusNetworks_Impl, - { + pub const fn new() -> ISClusNetworks_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetworks_Impl::Count(this) { Ok(ok__) => { @@ -1050,10 +819,7 @@ impl ISClusNetworks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetworks_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetworks_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1063,17 +829,11 @@ impl ISClusNetworks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetworks_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusNetworks_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNetworks_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNetworks_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -1116,14 +876,8 @@ pub trait ISClusNode_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISClusNode {} #[cfg(feature = "Win32_System_Com")] impl ISClusNode_Vtbl { - pub const fn new() -> ISClusNode_Vtbl - where - Identity: ISClusNode_Impl, - { - unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + pub const fn new() -> ISClusNode_Vtbl { + unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::CommonProperties(this) { Ok(ok__) => { @@ -1133,10 +887,7 @@ impl ISClusNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::PrivateProperties(this) { Ok(ok__) => { @@ -1146,10 +897,7 @@ impl ISClusNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::CommonROProperties(this) { Ok(ok__) => { @@ -1159,10 +907,7 @@ impl ISClusNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::PrivateROProperties(this) { Ok(ok__) => { @@ -1172,10 +917,7 @@ impl ISClusNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::Name(this) { Ok(ok__) => { @@ -1185,10 +927,7 @@ impl ISClusNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::Handle(this) { Ok(ok__) => { @@ -1198,10 +937,7 @@ impl ISClusNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NodeID(this: *mut core::ffi::c_void, pbstrnodeid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn NodeID(this: *mut core::ffi::c_void, pbstrnodeid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::NodeID(this) { Ok(ok__) => { @@ -1211,10 +947,7 @@ impl ISClusNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, dwstate: *mut CLUSTER_NODE_STATE) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, dwstate: *mut CLUSTER_NODE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::State(this) { Ok(ok__) => { @@ -1224,31 +957,19 @@ impl ISClusNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusNode_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusNode_Impl::Resume(this).into() } - unsafe extern "system" fn Evict(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn Evict(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusNode_Impl::Evict(this).into() } - unsafe extern "system" fn ResourceGroups(this: *mut core::ffi::c_void, ppresourcegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn ResourceGroups(this: *mut core::ffi::c_void, ppresourcegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::ResourceGroups(this) { Ok(ok__) => { @@ -1258,10 +979,7 @@ impl ISClusNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::Cluster(this) { Ok(ok__) => { @@ -1271,10 +989,7 @@ impl ISClusNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NetInterfaces(this: *mut core::ffi::c_void, ppclusnetinterfaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNode_Impl, - { + unsafe extern "system" fn NetInterfaces(this: *mut core::ffi::c_void, ppclusnetinterfaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNode_Impl::NetInterfaces(this) { Ok(ok__) => { @@ -1317,14 +1032,8 @@ pub trait ISClusNodeNetInterfaces_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for ISClusNodeNetInterfaces {} #[cfg(feature = "Win32_System_Com")] impl ISClusNodeNetInterfaces_Vtbl { - pub const fn new() -> ISClusNodeNetInterfaces_Vtbl - where - Identity: ISClusNodeNetInterfaces_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusNodeNetInterfaces_Impl, - { + pub const fn new() -> ISClusNodeNetInterfaces_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNodeNetInterfaces_Impl::Count(this) { Ok(ok__) => { @@ -1334,10 +1043,7 @@ impl ISClusNodeNetInterfaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNodeNetInterfaces_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNodeNetInterfaces_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1347,17 +1053,11 @@ impl ISClusNodeNetInterfaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNodeNetInterfaces_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusNodeNetInterfaces_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusnetinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNodeNetInterfaces_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusnetinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNodeNetInterfaces_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -1390,14 +1090,8 @@ pub trait ISClusNodes_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISClusNodes {} #[cfg(feature = "Win32_System_Com")] impl ISClusNodes_Vtbl { - pub const fn new() -> ISClusNodes_Vtbl - where - Identity: ISClusNodes_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusNodes_Impl, - { + pub const fn new() -> ISClusNodes_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNodes_Impl::Count(this) { Ok(ok__) => { @@ -1407,10 +1101,7 @@ impl ISClusNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNodes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNodes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1420,17 +1111,11 @@ impl ISClusNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNodes_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusNodes_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusNodes_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusNodes_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -1466,14 +1151,8 @@ pub trait ISClusPartition_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for ISClusPartition {} #[cfg(feature = "Win32_System_Com")] impl ISClusPartition_Vtbl { - pub const fn new() -> ISClusPartition_Vtbl - where - Identity: ISClusPartition_Impl, - { - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, plflags: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPartition_Impl, - { + pub const fn new() -> ISClusPartition_Vtbl { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, plflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartition_Impl::Flags(this) { Ok(ok__) => { @@ -1483,10 +1162,7 @@ impl ISClusPartition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceName(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusPartition_Impl, - { + unsafe extern "system" fn DeviceName(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartition_Impl::DeviceName(this) { Ok(ok__) => { @@ -1496,10 +1172,7 @@ impl ISClusPartition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumeLabel(this: *mut core::ffi::c_void, pbstrvolumelabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusPartition_Impl, - { + unsafe extern "system" fn VolumeLabel(this: *mut core::ffi::c_void, pbstrvolumelabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartition_Impl::VolumeLabel(this) { Ok(ok__) => { @@ -1509,10 +1182,7 @@ impl ISClusPartition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SerialNumber(this: *mut core::ffi::c_void, plserialnumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPartition_Impl, - { + unsafe extern "system" fn SerialNumber(this: *mut core::ffi::c_void, plserialnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartition_Impl::SerialNumber(this) { Ok(ok__) => { @@ -1522,10 +1192,7 @@ impl ISClusPartition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaximumComponentLength(this: *mut core::ffi::c_void, plmaximumcomponentlength: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPartition_Impl, - { + unsafe extern "system" fn MaximumComponentLength(this: *mut core::ffi::c_void, plmaximumcomponentlength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartition_Impl::MaximumComponentLength(this) { Ok(ok__) => { @@ -1535,10 +1202,7 @@ impl ISClusPartition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FileSystemFlags(this: *mut core::ffi::c_void, plfilesystemflags: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPartition_Impl, - { + unsafe extern "system" fn FileSystemFlags(this: *mut core::ffi::c_void, plfilesystemflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartition_Impl::FileSystemFlags(this) { Ok(ok__) => { @@ -1548,10 +1212,7 @@ impl ISClusPartition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FileSystem(this: *mut core::ffi::c_void, pbstrfilesystem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusPartition_Impl, - { + unsafe extern "system" fn FileSystem(this: *mut core::ffi::c_void, pbstrfilesystem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartition_Impl::FileSystem(this) { Ok(ok__) => { @@ -1588,14 +1249,8 @@ pub trait ISClusPartitionEx_Impl: Sized + ISClusPartition_Impl { impl windows_core::RuntimeName for ISClusPartitionEx {} #[cfg(feature = "Win32_System_Com")] impl ISClusPartitionEx_Vtbl { - pub const fn new() -> ISClusPartitionEx_Vtbl - where - Identity: ISClusPartitionEx_Impl, - { - unsafe extern "system" fn TotalSize(this: *mut core::ffi::c_void, pltotalsize: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPartitionEx_Impl, - { + pub const fn new() -> ISClusPartitionEx_Vtbl { + unsafe extern "system" fn TotalSize(this: *mut core::ffi::c_void, pltotalsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartitionEx_Impl::TotalSize(this) { Ok(ok__) => { @@ -1605,10 +1260,7 @@ impl ISClusPartitionEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FreeSpace(this: *mut core::ffi::c_void, plfreespace: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPartitionEx_Impl, - { + unsafe extern "system" fn FreeSpace(this: *mut core::ffi::c_void, plfreespace: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartitionEx_Impl::FreeSpace(this) { Ok(ok__) => { @@ -1618,10 +1270,7 @@ impl ISClusPartitionEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceNumber(this: *mut core::ffi::c_void, pldevicenumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPartitionEx_Impl, - { + unsafe extern "system" fn DeviceNumber(this: *mut core::ffi::c_void, pldevicenumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartitionEx_Impl::DeviceNumber(this) { Ok(ok__) => { @@ -1631,10 +1280,7 @@ impl ISClusPartitionEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PartitionNumber(this: *mut core::ffi::c_void, plpartitionnumber: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPartitionEx_Impl, - { + unsafe extern "system" fn PartitionNumber(this: *mut core::ffi::c_void, plpartitionnumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartitionEx_Impl::PartitionNumber(this) { Ok(ok__) => { @@ -1644,10 +1290,7 @@ impl ISClusPartitionEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumeGuid(this: *mut core::ffi::c_void, pbstrvolumeguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusPartitionEx_Impl, - { + unsafe extern "system" fn VolumeGuid(this: *mut core::ffi::c_void, pbstrvolumeguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartitionEx_Impl::VolumeGuid(this) { Ok(ok__) => { @@ -1680,14 +1323,8 @@ pub trait ISClusPartitions_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ISClusPartitions {} #[cfg(feature = "Win32_System_Com")] impl ISClusPartitions_Vtbl { - pub const fn new() -> ISClusPartitions_Vtbl - where - Identity: ISClusPartitions_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPartitions_Impl, - { + pub const fn new() -> ISClusPartitions_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartitions_Impl::Count(this) { Ok(ok__) => { @@ -1697,10 +1334,7 @@ impl ISClusPartitions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusPartitions_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartitions_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1710,10 +1344,7 @@ impl ISClusPartitions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pppartition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusPartitions_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pppartition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPartitions_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -1752,14 +1383,8 @@ pub trait ISClusProperties_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ISClusProperties {} #[cfg(feature = "Win32_System_Com")] impl ISClusProperties_Vtbl { - pub const fn new() -> ISClusProperties_Vtbl - where - Identity: ISClusProperties_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + pub const fn new() -> ISClusProperties_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperties_Impl::Count(this) { Ok(ok__) => { @@ -1769,10 +1394,7 @@ impl ISClusProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperties_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1782,17 +1404,11 @@ impl ISClusProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusProperties_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperties_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -1802,10 +1418,7 @@ impl ISClusProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, varvalue: core::mem::MaybeUninit, pproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, varvalue: core::mem::MaybeUninit, pproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperties_Impl::CreateItem(this, core::mem::transmute(&bstrname), core::mem::transmute(&varvalue)) { Ok(ok__) => { @@ -1815,17 +1428,11 @@ impl ISClusProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UseDefaultValue(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + unsafe extern "system" fn UseDefaultValue(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusProperties_Impl::UseDefaultValue(this, core::mem::transmute(&varindex)).into() } - unsafe extern "system" fn SaveChanges(this: *mut core::ffi::c_void, pvarstatuscode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + unsafe extern "system" fn SaveChanges(this: *mut core::ffi::c_void, pvarstatuscode: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperties_Impl::SaveChanges(this) { Ok(ok__) => { @@ -1835,10 +1442,7 @@ impl ISClusProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, pvarreadonly: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, pvarreadonly: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperties_Impl::ReadOnly(this) { Ok(ok__) => { @@ -1848,10 +1452,7 @@ impl ISClusProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Private(this: *mut core::ffi::c_void, pvarprivate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + unsafe extern "system" fn Private(this: *mut core::ffi::c_void, pvarprivate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperties_Impl::Private(this) { Ok(ok__) => { @@ -1861,10 +1462,7 @@ impl ISClusProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Common(this: *mut core::ffi::c_void, pvarcommon: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + unsafe extern "system" fn Common(this: *mut core::ffi::c_void, pvarcommon: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperties_Impl::Common(this) { Ok(ok__) => { @@ -1874,10 +1472,7 @@ impl ISClusProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pvarmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperties_Impl, - { + unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pvarmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperties_Impl::Modified(this) { Ok(ok__) => { @@ -1928,14 +1523,8 @@ pub trait ISClusProperty_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISClusProperty {} #[cfg(feature = "Win32_System_Com")] impl ISClusProperty_Vtbl { - pub const fn new() -> ISClusProperty_Vtbl - where - Identity: ISClusProperty_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + pub const fn new() -> ISClusProperty_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::Name(this) { Ok(ok__) => { @@ -1945,10 +1534,7 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, plength: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, plength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::Length(this) { Ok(ok__) => { @@ -1958,10 +1544,7 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ValueCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn ValueCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::ValueCount(this) { Ok(ok__) => { @@ -1971,10 +1554,7 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Values(this: *mut core::ffi::c_void, ppclusterpropertyvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn Values(this: *mut core::ffi::c_void, ppclusterpropertyvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::Values(this) { Ok(ok__) => { @@ -1984,10 +1564,7 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::Value(this) { Ok(ok__) => { @@ -1997,17 +1574,11 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusProperty_Impl::SetValue(this, core::mem::transmute(&varvalue)).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut CLUSTER_PROPERTY_TYPE) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut CLUSTER_PROPERTY_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::Type(this) { Ok(ok__) => { @@ -2017,17 +1588,11 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, r#type: CLUSTER_PROPERTY_TYPE) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, r#type: CLUSTER_PROPERTY_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusProperty_Impl::SetType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn Format(this: *mut core::ffi::c_void, pformat: *mut CLUSTER_PROPERTY_FORMAT) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn Format(this: *mut core::ffi::c_void, pformat: *mut CLUSTER_PROPERTY_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::Format(this) { Ok(ok__) => { @@ -2037,17 +1602,11 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, format: CLUSTER_PROPERTY_FORMAT) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, format: CLUSTER_PROPERTY_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusProperty_Impl::SetFormat(this, core::mem::transmute_copy(&format)).into() } - unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, pvarreadonly: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, pvarreadonly: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::ReadOnly(this) { Ok(ok__) => { @@ -2057,10 +1616,7 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Private(this: *mut core::ffi::c_void, pvarprivate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn Private(this: *mut core::ffi::c_void, pvarprivate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::Private(this) { Ok(ok__) => { @@ -2070,10 +1626,7 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Common(this: *mut core::ffi::c_void, pvarcommon: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn Common(this: *mut core::ffi::c_void, pvarcommon: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::Common(this) { Ok(ok__) => { @@ -2083,10 +1636,7 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pvarmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pvarmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusProperty_Impl::Modified(this) { Ok(ok__) => { @@ -2096,10 +1646,7 @@ impl ISClusProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UseDefaultValue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusProperty_Impl, - { + unsafe extern "system" fn UseDefaultValue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusProperty_Impl::UseDefaultValue(this).into() } @@ -2142,14 +1689,8 @@ pub trait ISClusPropertyValue_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ISClusPropertyValue {} #[cfg(feature = "Win32_System_Com")] impl ISClusPropertyValue_Vtbl { - pub const fn new() -> ISClusPropertyValue_Vtbl - where - Identity: ISClusPropertyValue_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusPropertyValue_Impl, - { + pub const fn new() -> ISClusPropertyValue_Vtbl { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValue_Impl::Value(this) { Ok(ok__) => { @@ -2159,17 +1700,11 @@ impl ISClusPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusPropertyValue_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusPropertyValue_Impl::SetValue(this, core::mem::transmute(&varvalue)).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut CLUSTER_PROPERTY_TYPE) -> windows_core::HRESULT - where - Identity: ISClusPropertyValue_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut CLUSTER_PROPERTY_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValue_Impl::Type(this) { Ok(ok__) => { @@ -2179,17 +1714,11 @@ impl ISClusPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, r#type: CLUSTER_PROPERTY_TYPE) -> windows_core::HRESULT - where - Identity: ISClusPropertyValue_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, r#type: CLUSTER_PROPERTY_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusPropertyValue_Impl::SetType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn Format(this: *mut core::ffi::c_void, pformat: *mut CLUSTER_PROPERTY_FORMAT) -> windows_core::HRESULT - where - Identity: ISClusPropertyValue_Impl, - { + unsafe extern "system" fn Format(this: *mut core::ffi::c_void, pformat: *mut CLUSTER_PROPERTY_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValue_Impl::Format(this) { Ok(ok__) => { @@ -2199,17 +1728,11 @@ impl ISClusPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, format: CLUSTER_PROPERTY_FORMAT) -> windows_core::HRESULT - where - Identity: ISClusPropertyValue_Impl, - { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, format: CLUSTER_PROPERTY_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusPropertyValue_Impl::SetFormat(this, core::mem::transmute_copy(&format)).into() } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, plength: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPropertyValue_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, plength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValue_Impl::Length(this) { Ok(ok__) => { @@ -2219,10 +1742,7 @@ impl ISClusPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DataCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPropertyValue_Impl, - { + unsafe extern "system" fn DataCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValue_Impl::DataCount(this) { Ok(ok__) => { @@ -2232,10 +1752,7 @@ impl ISClusPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, ppclusterpropertyvaluedata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusPropertyValue_Impl, - { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, ppclusterpropertyvaluedata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValue_Impl::Data(this) { Ok(ok__) => { @@ -2274,14 +1791,8 @@ pub trait ISClusPropertyValueData_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for ISClusPropertyValueData {} #[cfg(feature = "Win32_System_Com")] impl ISClusPropertyValueData_Vtbl { - pub const fn new() -> ISClusPropertyValueData_Vtbl - where - Identity: ISClusPropertyValueData_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPropertyValueData_Impl, - { + pub const fn new() -> ISClusPropertyValueData_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValueData_Impl::Count(this) { Ok(ok__) => { @@ -2291,10 +1802,7 @@ impl ISClusPropertyValueData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusPropertyValueData_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValueData_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2304,10 +1812,7 @@ impl ISClusPropertyValueData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusPropertyValueData_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValueData_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -2317,10 +1822,7 @@ impl ISClusPropertyValueData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, varvalue: core::mem::MaybeUninit, pvardata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusPropertyValueData_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, varvalue: core::mem::MaybeUninit, pvardata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValueData_Impl::CreateItem(this, core::mem::transmute(&varvalue)) { Ok(ok__) => { @@ -2330,10 +1832,7 @@ impl ISClusPropertyValueData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusPropertyValueData_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusPropertyValueData_Impl::RemoveItem(this, core::mem::transmute(&varindex)).into() } @@ -2362,14 +1861,8 @@ pub trait ISClusPropertyValues_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for ISClusPropertyValues {} #[cfg(feature = "Win32_System_Com")] impl ISClusPropertyValues_Vtbl { - pub const fn new() -> ISClusPropertyValues_Vtbl - where - Identity: ISClusPropertyValues_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusPropertyValues_Impl, - { + pub const fn new() -> ISClusPropertyValues_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValues_Impl::Count(this) { Ok(ok__) => { @@ -2379,10 +1872,7 @@ impl ISClusPropertyValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusPropertyValues_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValues_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2392,10 +1882,7 @@ impl ISClusPropertyValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pppropertyvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusPropertyValues_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pppropertyvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValues_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -2405,10 +1892,7 @@ impl ISClusPropertyValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, varvalue: core::mem::MaybeUninit, pppropertyvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusPropertyValues_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, varvalue: core::mem::MaybeUninit, pppropertyvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusPropertyValues_Impl::CreateItem(this, core::mem::transmute(&bstrname), core::mem::transmute(&varvalue)) { Ok(ok__) => { @@ -2418,10 +1902,7 @@ impl ISClusPropertyValues_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusPropertyValues_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusPropertyValues_Impl::RemoveItem(this, core::mem::transmute(&varindex)).into() } @@ -2446,14 +1927,8 @@ pub trait ISClusRefObject_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for ISClusRefObject {} #[cfg(feature = "Win32_System_Com")] impl ISClusRefObject_Vtbl { - pub const fn new() -> ISClusRefObject_Vtbl - where - Identity: ISClusRefObject_Impl, - { - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT - where - Identity: ISClusRefObject_Impl, - { + pub const fn new() -> ISClusRefObject_Vtbl { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusRefObject_Impl::Handle(this) { Ok(ok__) => { @@ -2482,14 +1957,8 @@ pub trait ISClusRegistryKeys_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ISClusRegistryKeys {} #[cfg(feature = "Win32_System_Com")] impl ISClusRegistryKeys_Vtbl { - pub const fn new() -> ISClusRegistryKeys_Vtbl - where - Identity: ISClusRegistryKeys_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusRegistryKeys_Impl, - { + pub const fn new() -> ISClusRegistryKeys_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusRegistryKeys_Impl::Count(this) { Ok(ok__) => { @@ -2499,10 +1968,7 @@ impl ISClusRegistryKeys_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusRegistryKeys_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusRegistryKeys_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2512,17 +1978,11 @@ impl ISClusRegistryKeys_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusRegistryKeys_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusRegistryKeys_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pbstrregistrykey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusRegistryKeys_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pbstrregistrykey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusRegistryKeys_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -2532,17 +1992,11 @@ impl ISClusRegistryKeys_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, bstrregistrykey: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusRegistryKeys_Impl, - { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, bstrregistrykey: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusRegistryKeys_Impl::AddItem(this, core::mem::transmute(&bstrregistrykey)).into() } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusRegistryKeys_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusRegistryKeys_Impl::RemoveItem(this, core::mem::transmute(&varindex)).into() } @@ -2575,14 +2029,8 @@ pub trait ISClusResDependencies_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for ISClusResDependencies {} #[cfg(feature = "Win32_System_Com")] impl ISClusResDependencies_Vtbl { - pub const fn new() -> ISClusResDependencies_Vtbl - where - Identity: ISClusResDependencies_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusResDependencies_Impl, - { + pub const fn new() -> ISClusResDependencies_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResDependencies_Impl::Count(this) { Ok(ok__) => { @@ -2592,10 +2040,7 @@ impl ISClusResDependencies_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResDependencies_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResDependencies_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2605,17 +2050,11 @@ impl ISClusResDependencies_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResDependencies_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResDependencies_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResDependencies_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResDependencies_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -2625,10 +2064,7 @@ impl ISClusResDependencies_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit, bstrresourcetype: core::mem::MaybeUninit, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResDependencies_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit, bstrresourcetype: core::mem::MaybeUninit, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResDependencies_Impl::CreateItem(this, core::mem::transmute(&bstrresourcename), core::mem::transmute(&bstrresourcetype), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -2638,24 +2074,15 @@ impl ISClusResDependencies_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResDependencies_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResDependencies_Impl::DeleteItem(this, core::mem::transmute(&varindex)).into() } - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResDependencies_Impl, - { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResDependencies_Impl::AddItem(this, windows_core::from_raw_borrowed(&presource)).into() } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResDependencies_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResDependencies_Impl::RemoveItem(this, core::mem::transmute(&varindex)).into() } @@ -2690,14 +2117,8 @@ pub trait ISClusResDependents_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for ISClusResDependents {} #[cfg(feature = "Win32_System_Com")] impl ISClusResDependents_Vtbl { - pub const fn new() -> ISClusResDependents_Vtbl - where - Identity: ISClusResDependents_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusResDependents_Impl, - { + pub const fn new() -> ISClusResDependents_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResDependents_Impl::Count(this) { Ok(ok__) => { @@ -2707,10 +2128,7 @@ impl ISClusResDependents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResDependents_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResDependents_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2720,17 +2138,11 @@ impl ISClusResDependents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResDependents_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResDependents_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResDependents_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResDependents_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -2740,10 +2152,7 @@ impl ISClusResDependents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit, bstrresourcetype: core::mem::MaybeUninit, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResDependents_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit, bstrresourcetype: core::mem::MaybeUninit, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResDependents_Impl::CreateItem(this, core::mem::transmute(&bstrresourcename), core::mem::transmute(&bstrresourcetype), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -2753,24 +2162,15 @@ impl ISClusResDependents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResDependents_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResDependents_Impl::DeleteItem(this, core::mem::transmute(&varindex)).into() } - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResDependents_Impl, - { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResDependents_Impl::AddItem(this, windows_core::from_raw_borrowed(&presource)).into() } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResDependents_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResDependents_Impl::RemoveItem(this, core::mem::transmute(&varindex)).into() } @@ -2813,14 +2213,8 @@ pub trait ISClusResGroup_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISClusResGroup {} #[cfg(feature = "Win32_System_Com")] impl ISClusResGroup_Vtbl { - pub const fn new() -> ISClusResGroup_Vtbl - where - Identity: ISClusResGroup_Impl, - { - unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + pub const fn new() -> ISClusResGroup_Vtbl { + unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::CommonProperties(this) { Ok(ok__) => { @@ -2830,10 +2224,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::PrivateProperties(this) { Ok(ok__) => { @@ -2843,10 +2234,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::CommonROProperties(this) { Ok(ok__) => { @@ -2856,10 +2244,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::PrivateROProperties(this) { Ok(ok__) => { @@ -2869,10 +2254,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::Handle(this) { Ok(ok__) => { @@ -2882,10 +2264,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::Name(this) { Ok(ok__) => { @@ -2895,17 +2274,11 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroup_Impl::SetName(this, core::mem::transmute(&bstrgroupname)).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, dwstate: *mut CLUSTER_GROUP_STATE) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, dwstate: *mut CLUSTER_GROUP_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::State(this) { Ok(ok__) => { @@ -2915,10 +2288,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OwnerNode(this: *mut core::ffi::c_void, ppownernode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn OwnerNode(this: *mut core::ffi::c_void, ppownernode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::OwnerNode(this) { Ok(ok__) => { @@ -2928,10 +2298,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resources(this: *mut core::ffi::c_void, ppclustergroupresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn Resources(this: *mut core::ffi::c_void, ppclustergroupresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::Resources(this) { Ok(ok__) => { @@ -2941,10 +2308,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PreferredOwnerNodes(this: *mut core::ffi::c_void, ppownernodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn PreferredOwnerNodes(this: *mut core::ffi::c_void, ppownernodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::PreferredOwnerNodes(this) { Ok(ok__) => { @@ -2954,17 +2318,11 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroup_Impl::Delete(this).into() } - unsafe extern "system" fn Online(this: *mut core::ffi::c_void, vartimeout: core::mem::MaybeUninit, varnode: core::mem::MaybeUninit, pvarpending: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn Online(this: *mut core::ffi::c_void, vartimeout: core::mem::MaybeUninit, varnode: core::mem::MaybeUninit, pvarpending: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::Online(this, core::mem::transmute(&vartimeout), core::mem::transmute(&varnode)) { Ok(ok__) => { @@ -2974,10 +2332,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, vartimeout: core::mem::MaybeUninit, varnode: core::mem::MaybeUninit, pvarpending: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, vartimeout: core::mem::MaybeUninit, varnode: core::mem::MaybeUninit, pvarpending: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::Move(this, core::mem::transmute(&vartimeout), core::mem::transmute(&varnode)) { Ok(ok__) => { @@ -2987,10 +2342,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Offline(this: *mut core::ffi::c_void, vartimeout: core::mem::MaybeUninit, pvarpending: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn Offline(this: *mut core::ffi::c_void, vartimeout: core::mem::MaybeUninit, pvarpending: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::Offline(this, core::mem::transmute(&vartimeout)) { Ok(ok__) => { @@ -3000,10 +2352,7 @@ impl ISClusResGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroup_Impl, - { + unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroup_Impl::Cluster(this) { Ok(ok__) => { @@ -3053,14 +2402,8 @@ pub trait ISClusResGroupPreferredOwnerNodes_Impl: Sized + super::super::System:: impl windows_core::RuntimeName for ISClusResGroupPreferredOwnerNodes {} #[cfg(feature = "Win32_System_Com")] impl ISClusResGroupPreferredOwnerNodes_Vtbl { - pub const fn new() -> ISClusResGroupPreferredOwnerNodes_Vtbl - where - Identity: ISClusResGroupPreferredOwnerNodes_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusResGroupPreferredOwnerNodes_Impl, - { + pub const fn new() -> ISClusResGroupPreferredOwnerNodes_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroupPreferredOwnerNodes_Impl::Count(this) { Ok(ok__) => { @@ -3070,10 +2413,7 @@ impl ISClusResGroupPreferredOwnerNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroupPreferredOwnerNodes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroupPreferredOwnerNodes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3083,17 +2423,11 @@ impl ISClusResGroupPreferredOwnerNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroupPreferredOwnerNodes_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroupPreferredOwnerNodes_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroupPreferredOwnerNodes_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroupPreferredOwnerNodes_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -3103,24 +2437,15 @@ impl ISClusResGroupPreferredOwnerNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertItem(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, nposition: i32) -> windows_core::HRESULT - where - Identity: ISClusResGroupPreferredOwnerNodes_Impl, - { + unsafe extern "system" fn InsertItem(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void, nposition: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroupPreferredOwnerNodes_Impl::InsertItem(this, windows_core::from_raw_borrowed(&pnode), core::mem::transmute_copy(&nposition)).into() } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResGroupPreferredOwnerNodes_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroupPreferredOwnerNodes_Impl::RemoveItem(this, core::mem::transmute(&varindex)).into() } - unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pvarmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResGroupPreferredOwnerNodes_Impl, - { + unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pvarmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroupPreferredOwnerNodes_Impl::Modified(this) { Ok(ok__) => { @@ -3130,17 +2455,11 @@ impl ISClusResGroupPreferredOwnerNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroupPreferredOwnerNodes_Impl, - { + unsafe extern "system" fn SaveChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroupPreferredOwnerNodes_Impl::SaveChanges(this).into() } - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroupPreferredOwnerNodes_Impl, - { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroupPreferredOwnerNodes_Impl::AddItem(this, windows_core::from_raw_borrowed(&pnode)).into() } @@ -3174,14 +2493,8 @@ pub trait ISClusResGroupResources_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for ISClusResGroupResources {} #[cfg(feature = "Win32_System_Com")] impl ISClusResGroupResources_Vtbl { - pub const fn new() -> ISClusResGroupResources_Vtbl - where - Identity: ISClusResGroupResources_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusResGroupResources_Impl, - { + pub const fn new() -> ISClusResGroupResources_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroupResources_Impl::Count(this) { Ok(ok__) => { @@ -3191,10 +2504,7 @@ impl ISClusResGroupResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroupResources_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroupResources_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3204,17 +2514,11 @@ impl ISClusResGroupResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroupResources_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroupResources_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroupResources_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroupResources_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -3224,10 +2528,7 @@ impl ISClusResGroupResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit, bstrresourcetype: core::mem::MaybeUninit, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroupResources_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit, bstrresourcetype: core::mem::MaybeUninit, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroupResources_Impl::CreateItem(this, core::mem::transmute(&bstrresourcename), core::mem::transmute(&bstrresourcetype), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -3237,10 +2538,7 @@ impl ISClusResGroupResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResGroupResources_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroupResources_Impl::DeleteItem(this, core::mem::transmute(&varindex)).into() } @@ -3271,14 +2569,8 @@ pub trait ISClusResGroups_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for ISClusResGroups {} #[cfg(feature = "Win32_System_Com")] impl ISClusResGroups_Vtbl { - pub const fn new() -> ISClusResGroups_Vtbl - where - Identity: ISClusResGroups_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusResGroups_Impl, - { + pub const fn new() -> ISClusResGroups_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroups_Impl::Count(this) { Ok(ok__) => { @@ -3288,10 +2580,7 @@ impl ISClusResGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroups_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroups_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3301,17 +2590,11 @@ impl ISClusResGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroups_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroups_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroups_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroups_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -3321,10 +2604,7 @@ impl ISClusResGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcegroupname: core::mem::MaybeUninit, ppresourcegroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResGroups_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcegroupname: core::mem::MaybeUninit, ppresourcegroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResGroups_Impl::CreateItem(this, core::mem::transmute(&bstrresourcegroupname)) { Ok(ok__) => { @@ -3334,10 +2614,7 @@ impl ISClusResGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResGroups_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResGroups_Impl::DeleteItem(this, core::mem::transmute(&varindex)).into() } @@ -3369,14 +2646,8 @@ pub trait ISClusResPossibleOwnerNodes_Impl: Sized + super::super::System::Com::I impl windows_core::RuntimeName for ISClusResPossibleOwnerNodes {} #[cfg(feature = "Win32_System_Com")] impl ISClusResPossibleOwnerNodes_Vtbl { - pub const fn new() -> ISClusResPossibleOwnerNodes_Vtbl - where - Identity: ISClusResPossibleOwnerNodes_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusResPossibleOwnerNodes_Impl, - { + pub const fn new() -> ISClusResPossibleOwnerNodes_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResPossibleOwnerNodes_Impl::Count(this) { Ok(ok__) => { @@ -3386,10 +2657,7 @@ impl ISClusResPossibleOwnerNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResPossibleOwnerNodes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResPossibleOwnerNodes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3399,17 +2667,11 @@ impl ISClusResPossibleOwnerNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResPossibleOwnerNodes_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResPossibleOwnerNodes_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResPossibleOwnerNodes_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResPossibleOwnerNodes_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -3419,24 +2681,15 @@ impl ISClusResPossibleOwnerNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResPossibleOwnerNodes_Impl, - { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResPossibleOwnerNodes_Impl::AddItem(this, windows_core::from_raw_borrowed(&pnode)).into() } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResPossibleOwnerNodes_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResPossibleOwnerNodes_Impl::RemoveItem(this, core::mem::transmute(&varindex)).into() } - unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pvarmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResPossibleOwnerNodes_Impl, - { + unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pvarmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResPossibleOwnerNodes_Impl::Modified(this) { Ok(ok__) => { @@ -3478,14 +2731,8 @@ pub trait ISClusResType_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISClusResType {} #[cfg(feature = "Win32_System_Com")] impl ISClusResType_Vtbl { - pub const fn new() -> ISClusResType_Vtbl - where - Identity: ISClusResType_Impl, - { - unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResType_Impl, - { + pub const fn new() -> ISClusResType_Vtbl { + unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResType_Impl::CommonProperties(this) { Ok(ok__) => { @@ -3495,10 +2742,7 @@ impl ISClusResType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResType_Impl, - { + unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResType_Impl::PrivateProperties(this) { Ok(ok__) => { @@ -3508,10 +2752,7 @@ impl ISClusResType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResType_Impl, - { + unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResType_Impl::CommonROProperties(this) { Ok(ok__) => { @@ -3521,10 +2762,7 @@ impl ISClusResType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResType_Impl, - { + unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResType_Impl::PrivateROProperties(this) { Ok(ok__) => { @@ -3534,10 +2772,7 @@ impl ISClusResType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResType_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResType_Impl::Name(this) { Ok(ok__) => { @@ -3547,17 +2782,11 @@ impl ISClusResType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResType_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResType_Impl::Delete(this).into() } - unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResType_Impl, - { + unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResType_Impl::Cluster(this) { Ok(ok__) => { @@ -3567,10 +2796,7 @@ impl ISClusResType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resources(this: *mut core::ffi::c_void, ppclusterrestyperesources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResType_Impl, - { + unsafe extern "system" fn Resources(this: *mut core::ffi::c_void, ppclusterrestyperesources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResType_Impl::Resources(this) { Ok(ok__) => { @@ -3580,10 +2806,7 @@ impl ISClusResType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PossibleOwnerNodes(this: *mut core::ffi::c_void, ppownernodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResType_Impl, - { + unsafe extern "system" fn PossibleOwnerNodes(this: *mut core::ffi::c_void, ppownernodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResType_Impl::PossibleOwnerNodes(this) { Ok(ok__) => { @@ -3593,10 +2816,7 @@ impl ISClusResType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AvailableDisks(this: *mut core::ffi::c_void, ppavailabledisks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResType_Impl, - { + unsafe extern "system" fn AvailableDisks(this: *mut core::ffi::c_void, ppavailabledisks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResType_Impl::AvailableDisks(this) { Ok(ok__) => { @@ -3635,14 +2855,8 @@ pub trait ISClusResTypePossibleOwnerNodes_Impl: Sized + super::super::System::Co impl windows_core::RuntimeName for ISClusResTypePossibleOwnerNodes {} #[cfg(feature = "Win32_System_Com")] impl ISClusResTypePossibleOwnerNodes_Vtbl { - pub const fn new() -> ISClusResTypePossibleOwnerNodes_Vtbl - where - Identity: ISClusResTypePossibleOwnerNodes_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusResTypePossibleOwnerNodes_Impl, - { + pub const fn new() -> ISClusResTypePossibleOwnerNodes_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypePossibleOwnerNodes_Impl::Count(this) { Ok(ok__) => { @@ -3652,10 +2866,7 @@ impl ISClusResTypePossibleOwnerNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypePossibleOwnerNodes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypePossibleOwnerNodes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3665,17 +2876,11 @@ impl ISClusResTypePossibleOwnerNodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypePossibleOwnerNodes_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResTypePossibleOwnerNodes_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypePossibleOwnerNodes_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppnode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypePossibleOwnerNodes_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -3710,14 +2915,8 @@ pub trait ISClusResTypeResources_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for ISClusResTypeResources {} #[cfg(feature = "Win32_System_Com")] impl ISClusResTypeResources_Vtbl { - pub const fn new() -> ISClusResTypeResources_Vtbl - where - Identity: ISClusResTypeResources_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusResTypeResources_Impl, - { + pub const fn new() -> ISClusResTypeResources_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypeResources_Impl::Count(this) { Ok(ok__) => { @@ -3727,10 +2926,7 @@ impl ISClusResTypeResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypeResources_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypeResources_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3740,17 +2936,11 @@ impl ISClusResTypeResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypeResources_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResTypeResources_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypeResources_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypeResources_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -3760,10 +2950,7 @@ impl ISClusResTypeResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit, bstrgroupname: core::mem::MaybeUninit, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypeResources_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit, bstrgroupname: core::mem::MaybeUninit, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypeResources_Impl::CreateItem(this, core::mem::transmute(&bstrresourcename), core::mem::transmute(&bstrgroupname), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -3773,10 +2960,7 @@ impl ISClusResTypeResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResTypeResources_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResTypeResources_Impl::DeleteItem(this, core::mem::transmute(&varindex)).into() } @@ -3807,14 +2991,8 @@ pub trait ISClusResTypes_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISClusResTypes {} #[cfg(feature = "Win32_System_Com")] impl ISClusResTypes_Vtbl { - pub const fn new() -> ISClusResTypes_Vtbl - where - Identity: ISClusResTypes_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusResTypes_Impl, - { + pub const fn new() -> ISClusResTypes_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypes_Impl::Count(this) { Ok(ok__) => { @@ -3824,10 +3002,7 @@ impl ISClusResTypes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3837,17 +3012,11 @@ impl ISClusResTypes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypes_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResTypes_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusrestype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypes_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusrestype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypes_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -3857,10 +3026,7 @@ impl ISClusResTypes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcetypename: core::mem::MaybeUninit, bstrdisplayname: core::mem::MaybeUninit, bstrresourcetypedll: core::mem::MaybeUninit, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32, ppresourcetype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResTypes_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcetypename: core::mem::MaybeUninit, bstrdisplayname: core::mem::MaybeUninit, bstrresourcetypedll: core::mem::MaybeUninit, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32, ppresourcetype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResTypes_Impl::CreateItem(this, core::mem::transmute(&bstrresourcetypename), core::mem::transmute(&bstrdisplayname), core::mem::transmute(&bstrresourcetypedll), core::mem::transmute_copy(&dwlooksalivepollinterval), core::mem::transmute_copy(&dwisalivepollinterval)) { Ok(ok__) => { @@ -3870,10 +3036,7 @@ impl ISClusResTypes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResTypes_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResTypes_Impl::DeleteItem(this, core::mem::transmute(&varindex)).into() } @@ -3930,14 +3093,8 @@ pub trait ISClusResource_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISClusResource {} #[cfg(feature = "Win32_System_Com")] impl ISClusResource_Vtbl { - pub const fn new() -> ISClusResource_Vtbl - where - Identity: ISClusResource_Impl, - { - unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + pub const fn new() -> ISClusResource_Vtbl { + unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::CommonProperties(this) { Ok(ok__) => { @@ -3947,10 +3104,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::PrivateProperties(this) { Ok(ok__) => { @@ -3960,10 +3114,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::CommonROProperties(this) { Ok(ok__) => { @@ -3973,10 +3124,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::PrivateROProperties(this) { Ok(ok__) => { @@ -3986,10 +3134,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::Handle(this) { Ok(ok__) => { @@ -3999,10 +3144,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::Name(this) { Ok(ok__) => { @@ -4012,17 +3154,11 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResource_Impl::SetName(this, core::mem::transmute(&bstrresourcename)).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, dwstate: *mut CLUSTER_RESOURCE_STATE) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, dwstate: *mut CLUSTER_RESOURCE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::State(this) { Ok(ok__) => { @@ -4032,10 +3168,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CoreFlag(this: *mut core::ffi::c_void, dwcoreflag: *mut CLUS_FLAGS) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn CoreFlag(this: *mut core::ffi::c_void, dwcoreflag: *mut CLUS_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::CoreFlag(this) { Ok(ok__) => { @@ -4045,31 +3178,19 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BecomeQuorumResource(this: *mut core::ffi::c_void, bstrdevicepath: core::mem::MaybeUninit, lmaxlogsize: i32) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn BecomeQuorumResource(this: *mut core::ffi::c_void, bstrdevicepath: core::mem::MaybeUninit, lmaxlogsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResource_Impl::BecomeQuorumResource(this, core::mem::transmute(&bstrdevicepath), core::mem::transmute_copy(&lmaxlogsize)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResource_Impl::Delete(this).into() } - unsafe extern "system" fn Fail(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Fail(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResource_Impl::Fail(this).into() } - unsafe extern "system" fn Online(this: *mut core::ffi::c_void, ntimeout: i32, pvarpending: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Online(this: *mut core::ffi::c_void, ntimeout: i32, pvarpending: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::Online(this, core::mem::transmute_copy(&ntimeout)) { Ok(ok__) => { @@ -4079,10 +3200,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Offline(this: *mut core::ffi::c_void, ntimeout: i32, pvarpending: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Offline(this: *mut core::ffi::c_void, ntimeout: i32, pvarpending: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::Offline(this, core::mem::transmute_copy(&ntimeout)) { Ok(ok__) => { @@ -4092,31 +3210,19 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChangeResourceGroup(this: *mut core::ffi::c_void, presourcegroup: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn ChangeResourceGroup(this: *mut core::ffi::c_void, presourcegroup: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResource_Impl::ChangeResourceGroup(this, windows_core::from_raw_borrowed(&presourcegroup)).into() } - unsafe extern "system" fn AddResourceNode(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn AddResourceNode(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResource_Impl::AddResourceNode(this, windows_core::from_raw_borrowed(&pnode)).into() } - unsafe extern "system" fn RemoveResourceNode(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn RemoveResourceNode(this: *mut core::ffi::c_void, pnode: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResource_Impl::RemoveResourceNode(this, windows_core::from_raw_borrowed(&pnode)).into() } - unsafe extern "system" fn CanResourceBeDependent(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pvardependent: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn CanResourceBeDependent(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, pvardependent: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::CanResourceBeDependent(this, windows_core::from_raw_borrowed(&presource)) { Ok(ok__) => { @@ -4126,10 +3232,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PossibleOwnerNodes(this: *mut core::ffi::c_void, ppownernodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn PossibleOwnerNodes(this: *mut core::ffi::c_void, ppownernodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::PossibleOwnerNodes(this) { Ok(ok__) => { @@ -4139,10 +3242,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Dependencies(this: *mut core::ffi::c_void, ppresdependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Dependencies(this: *mut core::ffi::c_void, ppresdependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::Dependencies(this) { Ok(ok__) => { @@ -4152,10 +3252,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Dependents(this: *mut core::ffi::c_void, ppresdependents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Dependents(this: *mut core::ffi::c_void, ppresdependents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::Dependents(this) { Ok(ok__) => { @@ -4165,10 +3262,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Group(this: *mut core::ffi::c_void, ppresgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Group(this: *mut core::ffi::c_void, ppresgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::Group(this) { Ok(ok__) => { @@ -4178,10 +3272,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OwnerNode(this: *mut core::ffi::c_void, ppownernode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn OwnerNode(this: *mut core::ffi::c_void, ppownernode: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::OwnerNode(this) { Ok(ok__) => { @@ -4191,10 +3282,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Cluster(this: *mut core::ffi::c_void, ppcluster: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::Cluster(this) { Ok(ok__) => { @@ -4204,10 +3292,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClassInfo(this: *mut core::ffi::c_void, prcclassinfo: *mut CLUSTER_RESOURCE_CLASS) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn ClassInfo(this: *mut core::ffi::c_void, prcclassinfo: *mut CLUSTER_RESOURCE_CLASS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::ClassInfo(this) { Ok(ok__) => { @@ -4217,10 +3302,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disk(this: *mut core::ffi::c_void, ppdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Disk(this: *mut core::ffi::c_void, ppdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::Disk(this) { Ok(ok__) => { @@ -4230,10 +3312,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegistryKeys(this: *mut core::ffi::c_void, ppregistrykeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn RegistryKeys(this: *mut core::ffi::c_void, ppregistrykeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::RegistryKeys(this) { Ok(ok__) => { @@ -4243,10 +3322,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CryptoKeys(this: *mut core::ffi::c_void, ppcryptokeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn CryptoKeys(this: *mut core::ffi::c_void, ppcryptokeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::CryptoKeys(this) { Ok(ok__) => { @@ -4256,10 +3332,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TypeName(this: *mut core::ffi::c_void, pbstrtypename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn TypeName(this: *mut core::ffi::c_void, pbstrtypename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::TypeName(this) { Ok(ok__) => { @@ -4269,10 +3342,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ppresourcetype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ppresourcetype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::Type(this) { Ok(ok__) => { @@ -4282,10 +3352,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaintenanceMode(this: *mut core::ffi::c_void, pbmaintenancemode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn MaintenanceMode(this: *mut core::ffi::c_void, pbmaintenancemode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::MaintenanceMode(this) { Ok(ok__) => { @@ -4295,10 +3362,7 @@ impl ISClusResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaintenanceMode(this: *mut core::ffi::c_void, bmaintenancemode: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISClusResource_Impl, - { + unsafe extern "system" fn SetMaintenanceMode(this: *mut core::ffi::c_void, bmaintenancemode: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResource_Impl::SetMaintenanceMode(this, core::mem::transmute_copy(&bmaintenancemode)).into() } @@ -4355,14 +3419,8 @@ pub trait ISClusResources_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for ISClusResources {} #[cfg(feature = "Win32_System_Com")] impl ISClusResources_Vtbl { - pub const fn new() -> ISClusResources_Vtbl - where - Identity: ISClusResources_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusResources_Impl, - { + pub const fn new() -> ISClusResources_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResources_Impl::Count(this) { Ok(ok__) => { @@ -4372,10 +3430,7 @@ impl ISClusResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResources_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResources_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4385,17 +3440,11 @@ impl ISClusResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResources_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResources_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResources_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, ppclusresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResources_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -4405,10 +3454,7 @@ impl ISClusResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit, bstrresourcetype: core::mem::MaybeUninit, bstrgroupname: core::mem::MaybeUninit, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusResources_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, bstrresourcename: core::mem::MaybeUninit, bstrresourcetype: core::mem::MaybeUninit, bstrgroupname: core::mem::MaybeUninit, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResources_Impl::CreateItem(this, core::mem::transmute(&bstrresourcename), core::mem::transmute(&bstrresourcetype), core::mem::transmute(&bstrgroupname), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -4418,10 +3464,7 @@ impl ISClusResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusResources_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResources_Impl::DeleteItem(this, core::mem::transmute(&varindex)).into() } @@ -4450,14 +3493,8 @@ pub trait ISClusScsiAddress_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ISClusScsiAddress {} #[cfg(feature = "Win32_System_Com")] impl ISClusScsiAddress_Vtbl { - pub const fn new() -> ISClusScsiAddress_Vtbl - where - Identity: ISClusScsiAddress_Impl, - { - unsafe extern "system" fn PortNumber(this: *mut core::ffi::c_void, pvarportnumber: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusScsiAddress_Impl, - { + pub const fn new() -> ISClusScsiAddress_Vtbl { + unsafe extern "system" fn PortNumber(this: *mut core::ffi::c_void, pvarportnumber: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusScsiAddress_Impl::PortNumber(this) { Ok(ok__) => { @@ -4467,10 +3504,7 @@ impl ISClusScsiAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PathId(this: *mut core::ffi::c_void, pvarpathid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusScsiAddress_Impl, - { + unsafe extern "system" fn PathId(this: *mut core::ffi::c_void, pvarpathid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusScsiAddress_Impl::PathId(this) { Ok(ok__) => { @@ -4480,10 +3514,7 @@ impl ISClusScsiAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TargetId(this: *mut core::ffi::c_void, pvartargetid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusScsiAddress_Impl, - { + unsafe extern "system" fn TargetId(this: *mut core::ffi::c_void, pvartargetid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusScsiAddress_Impl::TargetId(this) { Ok(ok__) => { @@ -4493,10 +3524,7 @@ impl ISClusScsiAddress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Lun(this: *mut core::ffi::c_void, pvarlun: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusScsiAddress_Impl, - { + unsafe extern "system" fn Lun(this: *mut core::ffi::c_void, pvarlun: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusScsiAddress_Impl::Lun(this) { Ok(ok__) => { @@ -4535,14 +3563,8 @@ pub trait ISClusVersion_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISClusVersion {} #[cfg(feature = "Win32_System_Com")] impl ISClusVersion_Vtbl { - pub const fn new() -> ISClusVersion_Vtbl - where - Identity: ISClusVersion_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrclustername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusVersion_Impl, - { + pub const fn new() -> ISClusVersion_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrclustername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusVersion_Impl::Name(this) { Ok(ok__) => { @@ -4552,10 +3574,7 @@ impl ISClusVersion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, pnmajorversion: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusVersion_Impl, - { + unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, pnmajorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusVersion_Impl::MajorVersion(this) { Ok(ok__) => { @@ -4565,10 +3584,7 @@ impl ISClusVersion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, pnminorversion: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusVersion_Impl, - { + unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, pnminorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusVersion_Impl::MinorVersion(this) { Ok(ok__) => { @@ -4578,10 +3594,7 @@ impl ISClusVersion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BuildNumber(this: *mut core::ffi::c_void, pnbuildnumber: *mut i16) -> windows_core::HRESULT - where - Identity: ISClusVersion_Impl, - { + unsafe extern "system" fn BuildNumber(this: *mut core::ffi::c_void, pnbuildnumber: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusVersion_Impl::BuildNumber(this) { Ok(ok__) => { @@ -4591,10 +3604,7 @@ impl ISClusVersion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VendorId(this: *mut core::ffi::c_void, pbstrvendorid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusVersion_Impl, - { + unsafe extern "system" fn VendorId(this: *mut core::ffi::c_void, pbstrvendorid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusVersion_Impl::VendorId(this) { Ok(ok__) => { @@ -4604,10 +3614,7 @@ impl ISClusVersion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CSDVersion(this: *mut core::ffi::c_void, pbstrcsdversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusVersion_Impl, - { + unsafe extern "system" fn CSDVersion(this: *mut core::ffi::c_void, pbstrcsdversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusVersion_Impl::CSDVersion(this) { Ok(ok__) => { @@ -4617,10 +3624,7 @@ impl ISClusVersion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClusterHighestVersion(this: *mut core::ffi::c_void, pnclusterhighestversion: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusVersion_Impl, - { + unsafe extern "system" fn ClusterHighestVersion(this: *mut core::ffi::c_void, pnclusterhighestversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusVersion_Impl::ClusterHighestVersion(this) { Ok(ok__) => { @@ -4630,10 +3634,7 @@ impl ISClusVersion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClusterLowestVersion(this: *mut core::ffi::c_void, pnclusterlowestversion: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusVersion_Impl, - { + unsafe extern "system" fn ClusterLowestVersion(this: *mut core::ffi::c_void, pnclusterlowestversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusVersion_Impl::ClusterLowestVersion(this) { Ok(ok__) => { @@ -4643,10 +3644,7 @@ impl ISClusVersion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pnflags: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusVersion_Impl, - { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pnflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusVersion_Impl::Flags(this) { Ok(ok__) => { @@ -4656,10 +3654,7 @@ impl ISClusVersion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MixedVersion(this: *mut core::ffi::c_void, pvarmixedversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusVersion_Impl, - { + unsafe extern "system" fn MixedVersion(this: *mut core::ffi::c_void, pvarmixedversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusVersion_Impl::MixedVersion(this) { Ok(ok__) => { @@ -4715,14 +3710,8 @@ pub trait ISCluster_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISCluster {} #[cfg(feature = "Win32_System_Com")] impl ISCluster_Vtbl { - pub const fn new() -> ISCluster_Vtbl - where - Identity: ISCluster_Impl, - { - unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + pub const fn new() -> ISCluster_Vtbl { + unsafe extern "system" fn CommonProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::CommonProperties(this) { Ok(ok__) => { @@ -4732,10 +3721,7 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn PrivateProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::PrivateProperties(this) { Ok(ok__) => { @@ -4745,10 +3731,7 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn CommonROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::CommonROProperties(this) { Ok(ok__) => { @@ -4758,10 +3741,7 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn PrivateROProperties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::PrivateROProperties(this) { Ok(ok__) => { @@ -4771,10 +3751,7 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::Handle(this) { Ok(ok__) => { @@ -4784,17 +3761,11 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, bstrclustername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, bstrclustername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCluster_Impl::Open(this, core::mem::transmute(&bstrclustername)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::Name(this) { Ok(ok__) => { @@ -4804,17 +3775,11 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrclustername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrclustername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCluster_Impl::SetName(this, core::mem::transmute(&bstrclustername)).into() } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, ppclusversion: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, ppclusversion: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::Version(this) { Ok(ok__) => { @@ -4824,17 +3789,11 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuorumResource(this: *mut core::ffi::c_void, pclusterresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn SetQuorumResource(this: *mut core::ffi::c_void, pclusterresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCluster_Impl::SetQuorumResource(this, windows_core::from_raw_borrowed(&pclusterresource)).into() } - unsafe extern "system" fn QuorumResource(this: *mut core::ffi::c_void, pclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn QuorumResource(this: *mut core::ffi::c_void, pclusterresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::QuorumResource(this) { Ok(ok__) => { @@ -4844,10 +3803,7 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QuorumLogSize(this: *mut core::ffi::c_void, pnlogsize: *mut i32) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn QuorumLogSize(this: *mut core::ffi::c_void, pnlogsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::QuorumLogSize(this) { Ok(ok__) => { @@ -4857,17 +3813,11 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuorumLogSize(this: *mut core::ffi::c_void, nlogsize: i32) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn SetQuorumLogSize(this: *mut core::ffi::c_void, nlogsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCluster_Impl::SetQuorumLogSize(this, core::mem::transmute_copy(&nlogsize)).into() } - unsafe extern "system" fn QuorumPath(this: *mut core::ffi::c_void, pppath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn QuorumPath(this: *mut core::ffi::c_void, pppath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::QuorumPath(this) { Ok(ok__) => { @@ -4877,17 +3827,11 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuorumPath(this: *mut core::ffi::c_void, ppath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn SetQuorumPath(this: *mut core::ffi::c_void, ppath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISCluster_Impl::SetQuorumPath(this, core::mem::transmute(&ppath)).into() } - unsafe extern "system" fn Nodes(this: *mut core::ffi::c_void, ppnodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn Nodes(this: *mut core::ffi::c_void, ppnodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::Nodes(this) { Ok(ok__) => { @@ -4897,10 +3841,7 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResourceGroups(this: *mut core::ffi::c_void, ppclusterresourcegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn ResourceGroups(this: *mut core::ffi::c_void, ppclusterresourcegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::ResourceGroups(this) { Ok(ok__) => { @@ -4910,10 +3851,7 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resources(this: *mut core::ffi::c_void, ppclusterresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn Resources(this: *mut core::ffi::c_void, ppclusterresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::Resources(this) { Ok(ok__) => { @@ -4923,10 +3861,7 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResourceTypes(this: *mut core::ffi::c_void, ppresourcetypes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn ResourceTypes(this: *mut core::ffi::c_void, ppresourcetypes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::ResourceTypes(this) { Ok(ok__) => { @@ -4936,10 +3871,7 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Networks(this: *mut core::ffi::c_void, ppnetworks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn Networks(this: *mut core::ffi::c_void, ppnetworks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::Networks(this) { Ok(ok__) => { @@ -4949,10 +3881,7 @@ impl ISCluster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NetInterfaces(this: *mut core::ffi::c_void, ppnetinterfaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISCluster_Impl, - { + unsafe extern "system" fn NetInterfaces(this: *mut core::ffi::c_void, ppnetinterfaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISCluster_Impl::NetInterfaces(this) { Ok(ok__) => { @@ -5003,14 +3932,8 @@ pub trait ISClusterNames_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISClusterNames {} #[cfg(feature = "Win32_System_Com")] impl ISClusterNames_Vtbl { - pub const fn new() -> ISClusterNames_Vtbl - where - Identity: ISClusterNames_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISClusterNames_Impl, - { + pub const fn new() -> ISClusterNames_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusterNames_Impl::Count(this) { Ok(ok__) => { @@ -5020,10 +3943,7 @@ impl ISClusterNames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusterNames_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusterNames_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5033,17 +3953,11 @@ impl ISClusterNames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISClusterNames_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusterNames_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pbstrclustername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusterNames_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pbstrclustername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusterNames_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -5053,10 +3967,7 @@ impl ISClusterNames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DomainName(this: *mut core::ffi::c_void, pbstrdomainname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISClusterNames_Impl, - { + unsafe extern "system" fn DomainName(this: *mut core::ffi::c_void, pbstrdomainname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusterNames_Impl::DomainName(this) { Ok(ok__) => { @@ -5090,14 +4001,8 @@ pub trait ISDomainNames_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ISDomainNames {} #[cfg(feature = "Win32_System_Com")] impl ISDomainNames_Vtbl { - pub const fn new() -> ISDomainNames_Vtbl - where - Identity: ISDomainNames_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISDomainNames_Impl, - { + pub const fn new() -> ISDomainNames_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISDomainNames_Impl::Count(this) { Ok(ok__) => { @@ -5107,10 +4012,7 @@ impl ISDomainNames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISDomainNames_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISDomainNames_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5120,17 +4022,11 @@ impl ISDomainNames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISDomainNames_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISDomainNames_Impl::Refresh(this).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pbstrdomainname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISDomainNames_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, varindex: core::mem::MaybeUninit, pbstrdomainname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISDomainNames_Impl::get_Item(this, core::mem::transmute(&varindex)) { Ok(ok__) => { @@ -5152,19 +4048,13 @@ impl ISDomainNames_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWCContextMenuCallback_Impl: Sized { +pub trait IWCContextMenuCallback_Impl: Sized + windows_core::IUnknownImpl { fn AddExtensionMenuItem(&self, lpszname: &windows_core::BSTR, lpszstatusbartext: &windows_core::BSTR, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWCContextMenuCallback {} impl IWCContextMenuCallback_Vtbl { - pub const fn new() -> IWCContextMenuCallback_Vtbl - where - Identity: IWCContextMenuCallback_Impl, - { - unsafe extern "system" fn AddExtensionMenuItem(this: *mut core::ffi::c_void, lpszname: core::mem::MaybeUninit, lpszstatusbartext: core::mem::MaybeUninit, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> windows_core::HRESULT - where - Identity: IWCContextMenuCallback_Impl, - { + pub const fn new() -> IWCContextMenuCallback_Vtbl { + unsafe extern "system" fn AddExtensionMenuItem(this: *mut core::ffi::c_void, lpszname: core::mem::MaybeUninit, lpszstatusbartext: core::mem::MaybeUninit, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCContextMenuCallback_Impl::AddExtensionMenuItem(this, core::mem::transmute(&lpszname), core::mem::transmute(&lpszstatusbartext), core::mem::transmute_copy(&ncommandid), core::mem::transmute_copy(&nsubmenucommandid), core::mem::transmute_copy(&uflags)).into() } @@ -5174,19 +4064,13 @@ impl IWCContextMenuCallback_Vtbl { iid == &::IID } } -pub trait IWCPropertySheetCallback_Impl: Sized { +pub trait IWCPropertySheetCallback_Impl: Sized + windows_core::IUnknownImpl { fn AddPropertySheetPage(&self, hpage: *const i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWCPropertySheetCallback {} impl IWCPropertySheetCallback_Vtbl { - pub const fn new() -> IWCPropertySheetCallback_Vtbl - where - Identity: IWCPropertySheetCallback_Impl, - { - unsafe extern "system" fn AddPropertySheetPage(this: *mut core::ffi::c_void, hpage: *const i32) -> windows_core::HRESULT - where - Identity: IWCPropertySheetCallback_Impl, - { + pub const fn new() -> IWCPropertySheetCallback_Vtbl { + unsafe extern "system" fn AddPropertySheetPage(this: *mut core::ffi::c_void, hpage: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCPropertySheetCallback_Impl::AddPropertySheetPage(this, core::mem::transmute_copy(&hpage)).into() } @@ -5196,27 +4080,18 @@ impl IWCPropertySheetCallback_Vtbl { iid == &::IID } } -pub trait IWCWizard97Callback_Impl: Sized { +pub trait IWCWizard97Callback_Impl: Sized + windows_core::IUnknownImpl { fn AddWizard97Page(&self, hpage: *const i32) -> windows_core::Result<()>; fn EnableNext(&self, hpage: *const i32, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWCWizard97Callback {} impl IWCWizard97Callback_Vtbl { - pub const fn new() -> IWCWizard97Callback_Vtbl - where - Identity: IWCWizard97Callback_Impl, - { - unsafe extern "system" fn AddWizard97Page(this: *mut core::ffi::c_void, hpage: *const i32) -> windows_core::HRESULT - where - Identity: IWCWizard97Callback_Impl, - { + pub const fn new() -> IWCWizard97Callback_Vtbl { + unsafe extern "system" fn AddWizard97Page(this: *mut core::ffi::c_void, hpage: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCWizard97Callback_Impl::AddWizard97Page(this, core::mem::transmute_copy(&hpage)).into() } - unsafe extern "system" fn EnableNext(this: *mut core::ffi::c_void, hpage: *const i32, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWCWizard97Callback_Impl, - { + unsafe extern "system" fn EnableNext(this: *mut core::ffi::c_void, hpage: *const i32, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCWizard97Callback_Impl::EnableNext(this, core::mem::transmute_copy(&hpage), core::mem::transmute_copy(&benable)).into() } @@ -5230,27 +4105,18 @@ impl IWCWizard97Callback_Vtbl { iid == &::IID } } -pub trait IWCWizardCallback_Impl: Sized { +pub trait IWCWizardCallback_Impl: Sized + windows_core::IUnknownImpl { fn AddWizardPage(&self, hpage: *const i32) -> windows_core::Result<()>; fn EnableNext(&self, hpage: *const i32, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWCWizardCallback {} impl IWCWizardCallback_Vtbl { - pub const fn new() -> IWCWizardCallback_Vtbl - where - Identity: IWCWizardCallback_Impl, - { - unsafe extern "system" fn AddWizardPage(this: *mut core::ffi::c_void, hpage: *const i32) -> windows_core::HRESULT - where - Identity: IWCWizardCallback_Impl, - { + pub const fn new() -> IWCWizardCallback_Vtbl { + unsafe extern "system" fn AddWizardPage(this: *mut core::ffi::c_void, hpage: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCWizardCallback_Impl::AddWizardPage(this, core::mem::transmute_copy(&hpage)).into() } - unsafe extern "system" fn EnableNext(this: *mut core::ffi::c_void, hpage: *const i32, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWCWizardCallback_Impl, - { + unsafe extern "system" fn EnableNext(this: *mut core::ffi::c_void, hpage: *const i32, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCWizardCallback_Impl::EnableNext(this, core::mem::transmute_copy(&hpage), core::mem::transmute_copy(&benable)).into() } @@ -5264,19 +4130,13 @@ impl IWCWizardCallback_Vtbl { iid == &::IID } } -pub trait IWEExtendContextMenu_Impl: Sized { +pub trait IWEExtendContextMenu_Impl: Sized + windows_core::IUnknownImpl { fn AddContextMenuItems(&self, pidata: Option<&windows_core::IUnknown>, picallback: Option<&IWCContextMenuCallback>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWEExtendContextMenu {} impl IWEExtendContextMenu_Vtbl { - pub const fn new() -> IWEExtendContextMenu_Vtbl - where - Identity: IWEExtendContextMenu_Impl, - { - unsafe extern "system" fn AddContextMenuItems(this: *mut core::ffi::c_void, pidata: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWEExtendContextMenu_Impl, - { + pub const fn new() -> IWEExtendContextMenu_Vtbl { + unsafe extern "system" fn AddContextMenuItems(this: *mut core::ffi::c_void, pidata: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWEExtendContextMenu_Impl::AddContextMenuItems(this, windows_core::from_raw_borrowed(&pidata), windows_core::from_raw_borrowed(&picallback)).into() } @@ -5286,19 +4146,13 @@ impl IWEExtendContextMenu_Vtbl { iid == &::IID } } -pub trait IWEExtendPropertySheet_Impl: Sized { +pub trait IWEExtendPropertySheet_Impl: Sized + windows_core::IUnknownImpl { fn CreatePropertySheetPages(&self, pidata: Option<&windows_core::IUnknown>, picallback: Option<&IWCPropertySheetCallback>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWEExtendPropertySheet {} impl IWEExtendPropertySheet_Vtbl { - pub const fn new() -> IWEExtendPropertySheet_Vtbl - where - Identity: IWEExtendPropertySheet_Impl, - { - unsafe extern "system" fn CreatePropertySheetPages(this: *mut core::ffi::c_void, pidata: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWEExtendPropertySheet_Impl, - { + pub const fn new() -> IWEExtendPropertySheet_Vtbl { + unsafe extern "system" fn CreatePropertySheetPages(this: *mut core::ffi::c_void, pidata: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWEExtendPropertySheet_Impl::CreatePropertySheetPages(this, windows_core::from_raw_borrowed(&pidata), windows_core::from_raw_borrowed(&picallback)).into() } @@ -5308,19 +4162,13 @@ impl IWEExtendPropertySheet_Vtbl { iid == &::IID } } -pub trait IWEExtendWizard_Impl: Sized { +pub trait IWEExtendWizard_Impl: Sized + windows_core::IUnknownImpl { fn CreateWizardPages(&self, pidata: Option<&windows_core::IUnknown>, picallback: Option<&IWCWizardCallback>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWEExtendWizard {} impl IWEExtendWizard_Vtbl { - pub const fn new() -> IWEExtendWizard_Vtbl - where - Identity: IWEExtendWizard_Impl, - { - unsafe extern "system" fn CreateWizardPages(this: *mut core::ffi::c_void, pidata: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWEExtendWizard_Impl, - { + pub const fn new() -> IWEExtendWizard_Vtbl { + unsafe extern "system" fn CreateWizardPages(this: *mut core::ffi::c_void, pidata: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWEExtendWizard_Impl::CreateWizardPages(this, windows_core::from_raw_borrowed(&pidata), windows_core::from_raw_borrowed(&picallback)).into() } @@ -5330,19 +4178,13 @@ impl IWEExtendWizard_Vtbl { iid == &::IID } } -pub trait IWEExtendWizard97_Impl: Sized { +pub trait IWEExtendWizard97_Impl: Sized + windows_core::IUnknownImpl { fn CreateWizard97Pages(&self, pidata: Option<&windows_core::IUnknown>, picallback: Option<&IWCWizard97Callback>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWEExtendWizard97 {} impl IWEExtendWizard97_Vtbl { - pub const fn new() -> IWEExtendWizard97_Vtbl - where - Identity: IWEExtendWizard97_Impl, - { - unsafe extern "system" fn CreateWizard97Pages(this: *mut core::ffi::c_void, pidata: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWEExtendWizard97_Impl, - { + pub const fn new() -> IWEExtendWizard97_Vtbl { + unsafe extern "system" fn CreateWizard97Pages(this: *mut core::ffi::c_void, pidata: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWEExtendWizard97_Impl::CreateWizard97Pages(this, windows_core::from_raw_borrowed(&pidata), windows_core::from_raw_borrowed(&picallback)).into() } @@ -5352,19 +4194,13 @@ impl IWEExtendWizard97_Vtbl { iid == &::IID } } -pub trait IWEInvokeCommand_Impl: Sized { +pub trait IWEInvokeCommand_Impl: Sized + windows_core::IUnknownImpl { fn InvokeCommand(&self, ncommandid: u32, pidata: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWEInvokeCommand {} impl IWEInvokeCommand_Vtbl { - pub const fn new() -> IWEInvokeCommand_Vtbl - where - Identity: IWEInvokeCommand_Impl, - { - unsafe extern "system" fn InvokeCommand(this: *mut core::ffi::c_void, ncommandid: u32, pidata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWEInvokeCommand_Impl, - { + pub const fn new() -> IWEInvokeCommand_Vtbl { + unsafe extern "system" fn InvokeCommand(this: *mut core::ffi::c_void, ncommandid: u32, pidata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWEInvokeCommand_Impl::InvokeCommand(this, core::mem::transmute_copy(&ncommandid), windows_core::from_raw_borrowed(&pidata)).into() } 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 b238ed74d5..9d2e974ed8 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/impl.rs @@ -10,14 +10,8 @@ pub trait IEnumNetworkConnections_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for IEnumNetworkConnections {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IEnumNetworkConnections_Vtbl { - pub const fn new() -> IEnumNetworkConnections_Vtbl - where - Identity: IEnumNetworkConnections_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetworkConnections_Impl, - { + pub const fn new() -> IEnumNetworkConnections_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumNetworkConnections_Impl::_NewEnum(this) { Ok(ok__) => { @@ -27,31 +21,19 @@ impl IEnumNetworkConnections_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNetworkConnections_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetworkConnections_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNetworkConnections_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetworkConnections_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetworkConnections_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetworkConnections_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetworkConnections_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumNetworkConnections_Impl::Clone(this) { Ok(ok__) => { @@ -86,14 +68,8 @@ pub trait IEnumNetworks_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IEnumNetworks {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IEnumNetworks_Vtbl { - pub const fn new() -> IEnumNetworks_Vtbl - where - Identity: IEnumNetworks_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetworks_Impl, - { + pub const fn new() -> IEnumNetworks_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvar: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumNetworks_Impl::_NewEnum(this) { Ok(ok__) => { @@ -103,31 +79,19 @@ impl IEnumNetworks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNetworks_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetworks_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNetworks_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetworks_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetworks_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNetworks_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNetworks_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumNetworks_Impl::Clone(this) { Ok(ok__) => { @@ -170,14 +134,8 @@ pub trait INetwork_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for INetwork {} #[cfg(feature = "Win32_System_Com")] impl INetwork_Vtbl { - pub const fn new() -> INetwork_Vtbl - where - Identity: INetwork_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, psznetworkname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + pub const fn new() -> INetwork_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, psznetworkname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork_Impl::GetName(this) { Ok(ok__) => { @@ -187,17 +145,11 @@ impl INetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, sznetworknewname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, sznetworknewname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetwork_Impl::SetName(this, core::mem::transmute(&sznetworknewname)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork_Impl::GetDescription(this) { Ok(ok__) => { @@ -207,17 +159,11 @@ impl INetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, szdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, szdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetwork_Impl::SetDescription(this, core::mem::transmute(&szdescription)).into() } - unsafe extern "system" fn GetNetworkId(this: *mut core::ffi::c_void, pgdguidnetworkid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn GetNetworkId(this: *mut core::ffi::c_void, pgdguidnetworkid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork_Impl::GetNetworkId(this) { Ok(ok__) => { @@ -227,10 +173,7 @@ impl INetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDomainType(this: *mut core::ffi::c_void, pnetworktype: *mut NLM_DOMAIN_TYPE) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn GetDomainType(this: *mut core::ffi::c_void, pnetworktype: *mut NLM_DOMAIN_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork_Impl::GetDomainType(this) { Ok(ok__) => { @@ -240,10 +183,7 @@ impl INetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetworkConnections(this: *mut core::ffi::c_void, ppenumnetworkconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn GetNetworkConnections(this: *mut core::ffi::c_void, ppenumnetworkconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork_Impl::GetNetworkConnections(this) { Ok(ok__) => { @@ -253,17 +193,11 @@ impl INetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimeCreatedAndConnected(this: *mut core::ffi::c_void, pdwlowdatetimecreated: *mut u32, pdwhighdatetimecreated: *mut u32, pdwlowdatetimeconnected: *mut u32, pdwhighdatetimeconnected: *mut u32) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn GetTimeCreatedAndConnected(this: *mut core::ffi::c_void, pdwlowdatetimecreated: *mut u32, pdwhighdatetimecreated: *mut u32, pdwlowdatetimeconnected: *mut u32, pdwhighdatetimeconnected: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetwork_Impl::GetTimeCreatedAndConnected(this, core::mem::transmute_copy(&pdwlowdatetimecreated), core::mem::transmute_copy(&pdwhighdatetimecreated), core::mem::transmute_copy(&pdwlowdatetimeconnected), core::mem::transmute_copy(&pdwhighdatetimeconnected)).into() } - unsafe extern "system" fn IsConnectedToInternet(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn IsConnectedToInternet(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork_Impl::IsConnectedToInternet(this) { Ok(ok__) => { @@ -273,10 +207,7 @@ impl INetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork_Impl::IsConnected(this) { Ok(ok__) => { @@ -286,10 +217,7 @@ impl INetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectivity(this: *mut core::ffi::c_void, pconnectivity: *mut NLM_CONNECTIVITY) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn GetConnectivity(this: *mut core::ffi::c_void, pconnectivity: *mut NLM_CONNECTIVITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork_Impl::GetConnectivity(this) { Ok(ok__) => { @@ -299,10 +227,7 @@ impl INetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, pcategory: *mut NLM_NETWORK_CATEGORY) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, pcategory: *mut NLM_NETWORK_CATEGORY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork_Impl::GetCategory(this) { Ok(ok__) => { @@ -312,10 +237,7 @@ impl INetwork_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCategory(this: *mut core::ffi::c_void, newcategory: NLM_NETWORK_CATEGORY) -> windows_core::HRESULT - where - Identity: INetwork_Impl, - { + unsafe extern "system" fn SetCategory(this: *mut core::ffi::c_void, newcategory: NLM_NETWORK_CATEGORY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetwork_Impl::SetCategory(this, core::mem::transmute_copy(&newcategory)).into() } @@ -348,14 +270,8 @@ pub trait INetwork2_Impl: Sized + INetwork_Impl { impl windows_core::RuntimeName for INetwork2 {} #[cfg(feature = "Win32_System_Com")] impl INetwork2_Vtbl { - pub const fn new() -> INetwork2_Vtbl - where - Identity: INetwork2_Impl, - { - unsafe extern "system" fn IsDomainAuthenticatedBy(this: *mut core::ffi::c_void, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND, pvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: INetwork2_Impl, - { + pub const fn new() -> INetwork2_Vtbl { + unsafe extern "system" fn IsDomainAuthenticatedBy(this: *mut core::ffi::c_void, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND, pvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork2_Impl::IsDomainAuthenticatedBy(this, core::mem::transmute_copy(&domainauthenticationkind)) { Ok(ok__) => { @@ -385,14 +301,8 @@ pub trait INetworkConnection_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for INetworkConnection {} #[cfg(feature = "Win32_System_Com")] impl INetworkConnection_Vtbl { - pub const fn new() -> INetworkConnection_Vtbl - where - Identity: INetworkConnection_Impl, - { - unsafe extern "system" fn GetNetwork(this: *mut core::ffi::c_void, ppnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetworkConnection_Impl, - { + pub const fn new() -> INetworkConnection_Vtbl { + unsafe extern "system" fn GetNetwork(this: *mut core::ffi::c_void, ppnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkConnection_Impl::GetNetwork(this) { Ok(ok__) => { @@ -402,10 +312,7 @@ impl INetworkConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsConnectedToInternet(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetworkConnection_Impl, - { + unsafe extern "system" fn IsConnectedToInternet(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkConnection_Impl::IsConnectedToInternet(this) { Ok(ok__) => { @@ -415,10 +322,7 @@ impl INetworkConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetworkConnection_Impl, - { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkConnection_Impl::IsConnected(this) { Ok(ok__) => { @@ -428,10 +332,7 @@ impl INetworkConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectivity(this: *mut core::ffi::c_void, pconnectivity: *mut NLM_CONNECTIVITY) -> windows_core::HRESULT - where - Identity: INetworkConnection_Impl, - { + unsafe extern "system" fn GetConnectivity(this: *mut core::ffi::c_void, pconnectivity: *mut NLM_CONNECTIVITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkConnection_Impl::GetConnectivity(this) { Ok(ok__) => { @@ -441,10 +342,7 @@ impl INetworkConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectionId(this: *mut core::ffi::c_void, pgdconnectionid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetworkConnection_Impl, - { + unsafe extern "system" fn GetConnectionId(this: *mut core::ffi::c_void, pgdconnectionid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkConnection_Impl::GetConnectionId(this) { Ok(ok__) => { @@ -454,10 +352,7 @@ impl INetworkConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAdapterId(this: *mut core::ffi::c_void, pgdadapterid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetworkConnection_Impl, - { + unsafe extern "system" fn GetAdapterId(this: *mut core::ffi::c_void, pgdadapterid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkConnection_Impl::GetAdapterId(this) { Ok(ok__) => { @@ -467,10 +362,7 @@ impl INetworkConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDomainType(this: *mut core::ffi::c_void, pdomaintype: *mut NLM_DOMAIN_TYPE) -> windows_core::HRESULT - where - Identity: INetworkConnection_Impl, - { + unsafe extern "system" fn GetDomainType(this: *mut core::ffi::c_void, pdomaintype: *mut NLM_DOMAIN_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkConnection_Impl::GetDomainType(this) { Ok(ok__) => { @@ -503,14 +395,8 @@ pub trait INetworkConnection2_Impl: Sized + INetworkConnection_Impl { impl windows_core::RuntimeName for INetworkConnection2 {} #[cfg(feature = "Win32_System_Com")] impl INetworkConnection2_Vtbl { - pub const fn new() -> INetworkConnection2_Vtbl - where - Identity: INetworkConnection2_Impl, - { - unsafe extern "system" fn IsDomainAuthenticatedBy(this: *mut core::ffi::c_void, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND, pvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: INetworkConnection2_Impl, - { + pub const fn new() -> INetworkConnection2_Vtbl { + unsafe extern "system" fn IsDomainAuthenticatedBy(this: *mut core::ffi::c_void, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND, pvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkConnection2_Impl::IsDomainAuthenticatedBy(this, core::mem::transmute_copy(&domainauthenticationkind)) { Ok(ok__) => { @@ -526,20 +412,14 @@ impl INetworkConnection2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait INetworkConnectionCost_Impl: Sized { +pub trait INetworkConnectionCost_Impl: Sized + windows_core::IUnknownImpl { fn GetCost(&self) -> windows_core::Result; fn GetDataPlanStatus(&self, pdataplanstatus: *mut NLM_DATAPLAN_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetworkConnectionCost {} impl INetworkConnectionCost_Vtbl { - pub const fn new() -> INetworkConnectionCost_Vtbl - where - Identity: INetworkConnectionCost_Impl, - { - unsafe extern "system" fn GetCost(this: *mut core::ffi::c_void, pcost: *mut u32) -> windows_core::HRESULT - where - Identity: INetworkConnectionCost_Impl, - { + pub const fn new() -> INetworkConnectionCost_Vtbl { + unsafe extern "system" fn GetCost(this: *mut core::ffi::c_void, pcost: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkConnectionCost_Impl::GetCost(this) { Ok(ok__) => { @@ -549,10 +429,7 @@ impl INetworkConnectionCost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataPlanStatus(this: *mut core::ffi::c_void, pdataplanstatus: *mut NLM_DATAPLAN_STATUS) -> windows_core::HRESULT - where - Identity: INetworkConnectionCost_Impl, - { + unsafe extern "system" fn GetDataPlanStatus(this: *mut core::ffi::c_void, pdataplanstatus: *mut NLM_DATAPLAN_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkConnectionCost_Impl::GetDataPlanStatus(this, core::mem::transmute_copy(&pdataplanstatus)).into() } @@ -566,27 +443,18 @@ impl INetworkConnectionCost_Vtbl { iid == &::IID } } -pub trait INetworkConnectionCostEvents_Impl: Sized { +pub trait INetworkConnectionCostEvents_Impl: Sized + windows_core::IUnknownImpl { fn ConnectionCostChanged(&self, connectionid: &windows_core::GUID, newcost: u32) -> windows_core::Result<()>; fn ConnectionDataPlanStatusChanged(&self, connectionid: &windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetworkConnectionCostEvents {} impl INetworkConnectionCostEvents_Vtbl { - pub const fn new() -> INetworkConnectionCostEvents_Vtbl - where - Identity: INetworkConnectionCostEvents_Impl, - { - unsafe extern "system" fn ConnectionCostChanged(this: *mut core::ffi::c_void, connectionid: windows_core::GUID, newcost: u32) -> windows_core::HRESULT - where - Identity: INetworkConnectionCostEvents_Impl, - { + pub const fn new() -> INetworkConnectionCostEvents_Vtbl { + unsafe extern "system" fn ConnectionCostChanged(this: *mut core::ffi::c_void, connectionid: windows_core::GUID, newcost: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkConnectionCostEvents_Impl::ConnectionCostChanged(this, core::mem::transmute(&connectionid), core::mem::transmute_copy(&newcost)).into() } - unsafe extern "system" fn ConnectionDataPlanStatusChanged(this: *mut core::ffi::c_void, connectionid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetworkConnectionCostEvents_Impl, - { + unsafe extern "system" fn ConnectionDataPlanStatusChanged(this: *mut core::ffi::c_void, connectionid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkConnectionCostEvents_Impl::ConnectionDataPlanStatusChanged(this, core::mem::transmute(&connectionid)).into() } @@ -600,27 +468,18 @@ impl INetworkConnectionCostEvents_Vtbl { iid == &::IID } } -pub trait INetworkConnectionEvents_Impl: Sized { +pub trait INetworkConnectionEvents_Impl: Sized + windows_core::IUnknownImpl { fn NetworkConnectionConnectivityChanged(&self, connectionid: &windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> windows_core::Result<()>; fn NetworkConnectionPropertyChanged(&self, connectionid: &windows_core::GUID, flags: NLM_CONNECTION_PROPERTY_CHANGE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetworkConnectionEvents {} impl INetworkConnectionEvents_Vtbl { - pub const fn new() -> INetworkConnectionEvents_Vtbl - where - Identity: INetworkConnectionEvents_Impl, - { - unsafe extern "system" fn NetworkConnectionConnectivityChanged(this: *mut core::ffi::c_void, connectionid: windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> windows_core::HRESULT - where - Identity: INetworkConnectionEvents_Impl, - { + pub const fn new() -> INetworkConnectionEvents_Vtbl { + unsafe extern "system" fn NetworkConnectionConnectivityChanged(this: *mut core::ffi::c_void, connectionid: windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkConnectionEvents_Impl::NetworkConnectionConnectivityChanged(this, core::mem::transmute(&connectionid), core::mem::transmute_copy(&newconnectivity)).into() } - unsafe extern "system" fn NetworkConnectionPropertyChanged(this: *mut core::ffi::c_void, connectionid: windows_core::GUID, flags: NLM_CONNECTION_PROPERTY_CHANGE) -> windows_core::HRESULT - where - Identity: INetworkConnectionEvents_Impl, - { + unsafe extern "system" fn NetworkConnectionPropertyChanged(this: *mut core::ffi::c_void, connectionid: windows_core::GUID, flags: NLM_CONNECTION_PROPERTY_CHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkConnectionEvents_Impl::NetworkConnectionPropertyChanged(this, core::mem::transmute(&connectionid), core::mem::transmute_copy(&flags)).into() } @@ -634,35 +493,23 @@ impl INetworkConnectionEvents_Vtbl { iid == &::IID } } -pub trait INetworkCostManager_Impl: Sized { +pub trait INetworkCostManager_Impl: Sized + windows_core::IUnknownImpl { fn GetCost(&self, pcost: *mut u32, pdestipaddr: *const NLM_SOCKADDR) -> windows_core::Result<()>; fn GetDataPlanStatus(&self, pdataplanstatus: *mut NLM_DATAPLAN_STATUS, pdestipaddr: *const NLM_SOCKADDR) -> windows_core::Result<()>; fn SetDestinationAddresses(&self, length: u32, pdestipaddrlist: *const NLM_SOCKADDR, bappend: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetworkCostManager {} impl INetworkCostManager_Vtbl { - pub const fn new() -> INetworkCostManager_Vtbl - where - Identity: INetworkCostManager_Impl, - { - unsafe extern "system" fn GetCost(this: *mut core::ffi::c_void, pcost: *mut u32, pdestipaddr: *const NLM_SOCKADDR) -> windows_core::HRESULT - where - Identity: INetworkCostManager_Impl, - { + pub const fn new() -> INetworkCostManager_Vtbl { + unsafe extern "system" fn GetCost(this: *mut core::ffi::c_void, pcost: *mut u32, pdestipaddr: *const NLM_SOCKADDR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkCostManager_Impl::GetCost(this, core::mem::transmute_copy(&pcost), core::mem::transmute_copy(&pdestipaddr)).into() } - unsafe extern "system" fn GetDataPlanStatus(this: *mut core::ffi::c_void, pdataplanstatus: *mut NLM_DATAPLAN_STATUS, pdestipaddr: *const NLM_SOCKADDR) -> windows_core::HRESULT - where - Identity: INetworkCostManager_Impl, - { + unsafe extern "system" fn GetDataPlanStatus(this: *mut core::ffi::c_void, pdataplanstatus: *mut NLM_DATAPLAN_STATUS, pdestipaddr: *const NLM_SOCKADDR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkCostManager_Impl::GetDataPlanStatus(this, core::mem::transmute_copy(&pdataplanstatus), core::mem::transmute_copy(&pdestipaddr)).into() } - unsafe extern "system" fn SetDestinationAddresses(this: *mut core::ffi::c_void, length: u32, pdestipaddrlist: *const NLM_SOCKADDR, bappend: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetworkCostManager_Impl, - { + unsafe extern "system" fn SetDestinationAddresses(this: *mut core::ffi::c_void, length: u32, pdestipaddrlist: *const NLM_SOCKADDR, bappend: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkCostManager_Impl::SetDestinationAddresses(this, core::mem::transmute_copy(&length), core::mem::transmute_copy(&pdestipaddrlist), core::mem::transmute_copy(&bappend)).into() } @@ -677,27 +524,18 @@ impl INetworkCostManager_Vtbl { iid == &::IID } } -pub trait INetworkCostManagerEvents_Impl: Sized { +pub trait INetworkCostManagerEvents_Impl: Sized + windows_core::IUnknownImpl { fn CostChanged(&self, newcost: u32, pdestaddr: *const NLM_SOCKADDR) -> windows_core::Result<()>; fn DataPlanStatusChanged(&self, pdestaddr: *const NLM_SOCKADDR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetworkCostManagerEvents {} impl INetworkCostManagerEvents_Vtbl { - pub const fn new() -> INetworkCostManagerEvents_Vtbl - where - Identity: INetworkCostManagerEvents_Impl, - { - unsafe extern "system" fn CostChanged(this: *mut core::ffi::c_void, newcost: u32, pdestaddr: *const NLM_SOCKADDR) -> windows_core::HRESULT - where - Identity: INetworkCostManagerEvents_Impl, - { + pub const fn new() -> INetworkCostManagerEvents_Vtbl { + unsafe extern "system" fn CostChanged(this: *mut core::ffi::c_void, newcost: u32, pdestaddr: *const NLM_SOCKADDR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkCostManagerEvents_Impl::CostChanged(this, core::mem::transmute_copy(&newcost), core::mem::transmute_copy(&pdestaddr)).into() } - unsafe extern "system" fn DataPlanStatusChanged(this: *mut core::ffi::c_void, pdestaddr: *const NLM_SOCKADDR) -> windows_core::HRESULT - where - Identity: INetworkCostManagerEvents_Impl, - { + unsafe extern "system" fn DataPlanStatusChanged(this: *mut core::ffi::c_void, pdestaddr: *const NLM_SOCKADDR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkCostManagerEvents_Impl::DataPlanStatusChanged(this, core::mem::transmute_copy(&pdestaddr)).into() } @@ -711,7 +549,7 @@ impl INetworkCostManagerEvents_Vtbl { iid == &::IID } } -pub trait INetworkEvents_Impl: Sized { +pub trait INetworkEvents_Impl: Sized + windows_core::IUnknownImpl { fn NetworkAdded(&self, networkid: &windows_core::GUID) -> windows_core::Result<()>; fn NetworkDeleted(&self, networkid: &windows_core::GUID) -> windows_core::Result<()>; fn NetworkConnectivityChanged(&self, networkid: &windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> windows_core::Result<()>; @@ -719,35 +557,20 @@ pub trait INetworkEvents_Impl: Sized { } impl windows_core::RuntimeName for INetworkEvents {} impl INetworkEvents_Vtbl { - pub const fn new() -> INetworkEvents_Vtbl - where - Identity: INetworkEvents_Impl, - { - unsafe extern "system" fn NetworkAdded(this: *mut core::ffi::c_void, networkid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetworkEvents_Impl, - { + pub const fn new() -> INetworkEvents_Vtbl { + unsafe extern "system" fn NetworkAdded(this: *mut core::ffi::c_void, networkid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkEvents_Impl::NetworkAdded(this, core::mem::transmute(&networkid)).into() } - unsafe extern "system" fn NetworkDeleted(this: *mut core::ffi::c_void, networkid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: INetworkEvents_Impl, - { + unsafe extern "system" fn NetworkDeleted(this: *mut core::ffi::c_void, networkid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkEvents_Impl::NetworkDeleted(this, core::mem::transmute(&networkid)).into() } - unsafe extern "system" fn NetworkConnectivityChanged(this: *mut core::ffi::c_void, networkid: windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> windows_core::HRESULT - where - Identity: INetworkEvents_Impl, - { + unsafe extern "system" fn NetworkConnectivityChanged(this: *mut core::ffi::c_void, networkid: windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkEvents_Impl::NetworkConnectivityChanged(this, core::mem::transmute(&networkid), core::mem::transmute_copy(&newconnectivity)).into() } - unsafe extern "system" fn NetworkPropertyChanged(this: *mut core::ffi::c_void, networkid: windows_core::GUID, flags: NLM_NETWORK_PROPERTY_CHANGE) -> windows_core::HRESULT - where - Identity: INetworkEvents_Impl, - { + unsafe extern "system" fn NetworkPropertyChanged(this: *mut core::ffi::c_void, networkid: windows_core::GUID, flags: NLM_NETWORK_PROPERTY_CHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkEvents_Impl::NetworkPropertyChanged(this, core::mem::transmute(&networkid), core::mem::transmute_copy(&flags)).into() } @@ -779,14 +602,8 @@ pub trait INetworkListManager_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for INetworkListManager {} #[cfg(feature = "Win32_System_Com")] impl INetworkListManager_Vtbl { - pub const fn new() -> INetworkListManager_Vtbl - where - Identity: INetworkListManager_Impl, - { - unsafe extern "system" fn GetNetworks(this: *mut core::ffi::c_void, flags: NLM_ENUM_NETWORK, ppenumnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetworkListManager_Impl, - { + pub const fn new() -> INetworkListManager_Vtbl { + unsafe extern "system" fn GetNetworks(this: *mut core::ffi::c_void, flags: NLM_ENUM_NETWORK, ppenumnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkListManager_Impl::GetNetworks(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -796,10 +613,7 @@ impl INetworkListManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetwork(this: *mut core::ffi::c_void, gdnetworkid: windows_core::GUID, ppnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetworkListManager_Impl, - { + unsafe extern "system" fn GetNetwork(this: *mut core::ffi::c_void, gdnetworkid: windows_core::GUID, ppnetwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkListManager_Impl::GetNetwork(this, core::mem::transmute(&gdnetworkid)) { Ok(ok__) => { @@ -809,10 +623,7 @@ impl INetworkListManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetworkConnections(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetworkListManager_Impl, - { + unsafe extern "system" fn GetNetworkConnections(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkListManager_Impl::GetNetworkConnections(this) { Ok(ok__) => { @@ -822,10 +633,7 @@ impl INetworkListManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetworkConnection(this: *mut core::ffi::c_void, gdnetworkconnectionid: windows_core::GUID, ppnetworkconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetworkListManager_Impl, - { + unsafe extern "system" fn GetNetworkConnection(this: *mut core::ffi::c_void, gdnetworkconnectionid: windows_core::GUID, ppnetworkconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkListManager_Impl::GetNetworkConnection(this, core::mem::transmute(&gdnetworkconnectionid)) { Ok(ok__) => { @@ -835,10 +643,7 @@ impl INetworkListManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsConnectedToInternet(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetworkListManager_Impl, - { + unsafe extern "system" fn IsConnectedToInternet(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkListManager_Impl::IsConnectedToInternet(this) { Ok(ok__) => { @@ -848,10 +653,7 @@ impl INetworkListManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INetworkListManager_Impl, - { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pbisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkListManager_Impl::IsConnected(this) { Ok(ok__) => { @@ -861,10 +663,7 @@ impl INetworkListManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectivity(this: *mut core::ffi::c_void, pconnectivity: *mut NLM_CONNECTIVITY) -> windows_core::HRESULT - where - Identity: INetworkListManager_Impl, - { + unsafe extern "system" fn GetConnectivity(this: *mut core::ffi::c_void, pconnectivity: *mut NLM_CONNECTIVITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkListManager_Impl::GetConnectivity(this) { Ok(ok__) => { @@ -874,17 +673,11 @@ impl INetworkListManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSimulatedProfileInfo(this: *mut core::ffi::c_void, psimulatedinfo: *const NLM_SIMULATED_PROFILE_INFO) -> windows_core::HRESULT - where - Identity: INetworkListManager_Impl, - { + unsafe extern "system" fn SetSimulatedProfileInfo(this: *mut core::ffi::c_void, psimulatedinfo: *const NLM_SIMULATED_PROFILE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkListManager_Impl::SetSimulatedProfileInfo(this, core::mem::transmute_copy(&psimulatedinfo)).into() } - unsafe extern "system" fn ClearSimulatedProfileInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INetworkListManager_Impl, - { + unsafe extern "system" fn ClearSimulatedProfileInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkListManager_Impl::ClearSimulatedProfileInfo(this).into() } @@ -905,19 +698,13 @@ impl INetworkListManager_Vtbl { iid == &::IID || iid == &::IID } } -pub trait INetworkListManagerEvents_Impl: Sized { +pub trait INetworkListManagerEvents_Impl: Sized + windows_core::IUnknownImpl { fn ConnectivityChanged(&self, newconnectivity: NLM_CONNECTIVITY) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INetworkListManagerEvents {} impl INetworkListManagerEvents_Vtbl { - pub const fn new() -> INetworkListManagerEvents_Vtbl - where - Identity: INetworkListManagerEvents_Impl, - { - unsafe extern "system" fn ConnectivityChanged(this: *mut core::ffi::c_void, newconnectivity: NLM_CONNECTIVITY) -> windows_core::HRESULT - where - Identity: INetworkListManagerEvents_Impl, - { + pub const fn new() -> INetworkListManagerEvents_Vtbl { + unsafe extern "system" fn ConnectivityChanged(this: *mut core::ffi::c_void, newconnectivity: NLM_CONNECTIVITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkListManagerEvents_Impl::ConnectivityChanged(this, core::mem::transmute_copy(&newconnectivity)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/impl.rs index 4501fad888..d7492849ee 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/impl.rs @@ -1,17 +1,11 @@ -pub trait IFindSimilarResults_Impl: Sized { +pub trait IFindSimilarResults_Impl: Sized + windows_core::IUnknownImpl { fn GetSize(&self) -> windows_core::Result; fn GetNextFileId(&self, numtraitsmatched: *mut u32, similarityfileid: *mut SimilarityFileId) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFindSimilarResults {} impl IFindSimilarResults_Vtbl { - pub const fn new() -> IFindSimilarResults_Vtbl - where - Identity: IFindSimilarResults_Impl, - { - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IFindSimilarResults_Impl, - { + pub const fn new() -> IFindSimilarResults_Vtbl { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFindSimilarResults_Impl::GetSize(this) { Ok(ok__) => { @@ -21,10 +15,7 @@ impl IFindSimilarResults_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextFileId(this: *mut core::ffi::c_void, numtraitsmatched: *mut u32, similarityfileid: *mut SimilarityFileId) -> windows_core::HRESULT - where - Identity: IFindSimilarResults_Impl, - { + unsafe extern "system" fn GetNextFileId(this: *mut core::ffi::c_void, numtraitsmatched: *mut u32, similarityfileid: *mut SimilarityFileId) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFindSimilarResults_Impl::GetNextFileId(this, core::mem::transmute_copy(&numtraitsmatched), core::mem::transmute_copy(&similarityfileid)).into() } @@ -38,19 +29,13 @@ impl IFindSimilarResults_Vtbl { iid == &::IID } } -pub trait IRdcComparator_Impl: Sized { +pub trait IRdcComparator_Impl: Sized + windows_core::IUnknownImpl { fn Process(&self, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRdcComparator {} impl IRdcComparator_Vtbl { - pub const fn new() -> IRdcComparator_Vtbl - where - Identity: IRdcComparator_Impl, - { - unsafe extern "system" fn Process(this: *mut core::ffi::c_void, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::HRESULT - where - Identity: IRdcComparator_Impl, - { + pub const fn new() -> IRdcComparator_Vtbl { + unsafe extern "system" fn Process(this: *mut core::ffi::c_void, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcComparator_Impl::Process(this, core::mem::transmute_copy(&endofinput), core::mem::transmute_copy(&endofoutput), core::mem::transmute_copy(&inputbuffer), core::mem::transmute_copy(&outputbuffer), core::mem::transmute_copy(&rdc_errorcode)).into() } @@ -60,21 +45,15 @@ impl IRdcComparator_Vtbl { iid == &::IID } } -pub trait IRdcFileReader_Impl: Sized { +pub trait IRdcFileReader_Impl: Sized + windows_core::IUnknownImpl { fn GetFileSize(&self) -> windows_core::Result; fn Read(&self, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetFilePosition(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IRdcFileReader {} impl IRdcFileReader_Vtbl { - pub const fn new() -> IRdcFileReader_Vtbl - where - Identity: IRdcFileReader_Impl, - { - unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, filesize: *mut u64) -> windows_core::HRESULT - where - Identity: IRdcFileReader_Impl, - { + pub const fn new() -> IRdcFileReader_Vtbl { + unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, filesize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcFileReader_Impl::GetFileSize(this) { Ok(ok__) => { @@ -84,17 +63,11 @@ impl IRdcFileReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRdcFileReader_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcFileReader_Impl::Read(this, core::mem::transmute_copy(&offsetfilestart), core::mem::transmute_copy(&bytestoread), core::mem::transmute_copy(&bytesactuallyread), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&eof)).into() } - unsafe extern "system" fn GetFilePosition(this: *mut core::ffi::c_void, offsetfromstart: *mut u64) -> windows_core::HRESULT - where - Identity: IRdcFileReader_Impl, - { + unsafe extern "system" fn GetFilePosition(this: *mut core::ffi::c_void, offsetfromstart: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcFileReader_Impl::GetFilePosition(this) { Ok(ok__) => { @@ -122,14 +95,8 @@ pub trait IRdcFileWriter_Impl: Sized + IRdcFileReader_Impl { } impl windows_core::RuntimeName for IRdcFileWriter {} impl IRdcFileWriter_Vtbl { - pub const fn new() -> IRdcFileWriter_Vtbl - where - Identity: IRdcFileWriter_Impl, - { - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, offsetfilestart: u64, bytestowrite: u32, buffer: *mut u8) -> windows_core::HRESULT - where - Identity: IRdcFileWriter_Impl, - { + pub const fn new() -> IRdcFileWriter_Vtbl { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, offsetfilestart: u64, bytestowrite: u32, buffer: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcFileWriter_Impl::Write(this, core::mem::transmute_copy(&offsetfilestart), core::mem::transmute_copy(&bytestowrite)) { Ok(ok__) => { @@ -139,17 +106,11 @@ impl IRdcFileWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Truncate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRdcFileWriter_Impl, - { + unsafe extern "system" fn Truncate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcFileWriter_Impl::Truncate(this).into() } - unsafe extern "system" fn DeleteOnClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRdcFileWriter_Impl, - { + unsafe extern "system" fn DeleteOnClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcFileWriter_Impl::DeleteOnClose(this).into() } @@ -164,20 +125,14 @@ impl IRdcFileWriter_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRdcGenerator_Impl: Sized { +pub trait IRdcGenerator_Impl: Sized + windows_core::IUnknownImpl { fn GetGeneratorParameters(&self, level: u32) -> windows_core::Result; fn Process(&self, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, depth: u32, outputbuffers: *mut *mut RdcBufferPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRdcGenerator {} impl IRdcGenerator_Vtbl { - pub const fn new() -> IRdcGenerator_Vtbl - where - Identity: IRdcGenerator_Impl, - { - unsafe extern "system" fn GetGeneratorParameters(this: *mut core::ffi::c_void, level: u32, igeneratorparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRdcGenerator_Impl, - { + pub const fn new() -> IRdcGenerator_Vtbl { + unsafe extern "system" fn GetGeneratorParameters(this: *mut core::ffi::c_void, level: u32, igeneratorparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcGenerator_Impl::GetGeneratorParameters(this, core::mem::transmute_copy(&level)) { Ok(ok__) => { @@ -187,10 +142,7 @@ impl IRdcGenerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Process(this: *mut core::ffi::c_void, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, depth: u32, outputbuffers: *mut *mut RdcBufferPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::HRESULT - where - Identity: IRdcGenerator_Impl, - { + unsafe extern "system" fn Process(this: *mut core::ffi::c_void, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, depth: u32, outputbuffers: *mut *mut RdcBufferPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcGenerator_Impl::Process(this, core::mem::transmute_copy(&endofinput), core::mem::transmute_copy(&endofoutput), core::mem::transmute_copy(&inputbuffer), core::mem::transmute_copy(&depth), core::mem::transmute_copy(&outputbuffers), core::mem::transmute_copy(&rdc_errorcode)).into() } @@ -204,7 +156,7 @@ impl IRdcGenerator_Vtbl { iid == &::IID } } -pub trait IRdcGeneratorFilterMaxParameters_Impl: Sized { +pub trait IRdcGeneratorFilterMaxParameters_Impl: Sized + windows_core::IUnknownImpl { fn GetHorizonSize(&self) -> windows_core::Result; fn SetHorizonSize(&self, horizonsize: u32) -> windows_core::Result<()>; fn GetHashWindowSize(&self) -> windows_core::Result; @@ -212,14 +164,8 @@ pub trait IRdcGeneratorFilterMaxParameters_Impl: Sized { } impl windows_core::RuntimeName for IRdcGeneratorFilterMaxParameters {} impl IRdcGeneratorFilterMaxParameters_Vtbl { - pub const fn new() -> IRdcGeneratorFilterMaxParameters_Vtbl - where - Identity: IRdcGeneratorFilterMaxParameters_Impl, - { - unsafe extern "system" fn GetHorizonSize(this: *mut core::ffi::c_void, horizonsize: *mut u32) -> windows_core::HRESULT - where - Identity: IRdcGeneratorFilterMaxParameters_Impl, - { + pub const fn new() -> IRdcGeneratorFilterMaxParameters_Vtbl { + unsafe extern "system" fn GetHorizonSize(this: *mut core::ffi::c_void, horizonsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcGeneratorFilterMaxParameters_Impl::GetHorizonSize(this) { Ok(ok__) => { @@ -229,17 +175,11 @@ impl IRdcGeneratorFilterMaxParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHorizonSize(this: *mut core::ffi::c_void, horizonsize: u32) -> windows_core::HRESULT - where - Identity: IRdcGeneratorFilterMaxParameters_Impl, - { + unsafe extern "system" fn SetHorizonSize(this: *mut core::ffi::c_void, horizonsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcGeneratorFilterMaxParameters_Impl::SetHorizonSize(this, core::mem::transmute_copy(&horizonsize)).into() } - unsafe extern "system" fn GetHashWindowSize(this: *mut core::ffi::c_void, hashwindowsize: *mut u32) -> windows_core::HRESULT - where - Identity: IRdcGeneratorFilterMaxParameters_Impl, - { + unsafe extern "system" fn GetHashWindowSize(this: *mut core::ffi::c_void, hashwindowsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcGeneratorFilterMaxParameters_Impl::GetHashWindowSize(this) { Ok(ok__) => { @@ -249,10 +189,7 @@ impl IRdcGeneratorFilterMaxParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashWindowSize(this: *mut core::ffi::c_void, hashwindowsize: u32) -> windows_core::HRESULT - where - Identity: IRdcGeneratorFilterMaxParameters_Impl, - { + unsafe extern "system" fn SetHashWindowSize(this: *mut core::ffi::c_void, hashwindowsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcGeneratorFilterMaxParameters_Impl::SetHashWindowSize(this, core::mem::transmute_copy(&hashwindowsize)).into() } @@ -268,7 +205,7 @@ impl IRdcGeneratorFilterMaxParameters_Vtbl { iid == &::IID } } -pub trait IRdcGeneratorParameters_Impl: Sized { +pub trait IRdcGeneratorParameters_Impl: Sized + windows_core::IUnknownImpl { fn GetGeneratorParametersType(&self) -> windows_core::Result; fn GetParametersVersion(&self, currentversion: *mut u32, minimumcompatibleappversion: *mut u32) -> windows_core::Result<()>; fn GetSerializeSize(&self) -> windows_core::Result; @@ -276,14 +213,8 @@ pub trait IRdcGeneratorParameters_Impl: Sized { } impl windows_core::RuntimeName for IRdcGeneratorParameters {} impl IRdcGeneratorParameters_Vtbl { - pub const fn new() -> IRdcGeneratorParameters_Vtbl - where - Identity: IRdcGeneratorParameters_Impl, - { - unsafe extern "system" fn GetGeneratorParametersType(this: *mut core::ffi::c_void, parameterstype: *mut GeneratorParametersType) -> windows_core::HRESULT - where - Identity: IRdcGeneratorParameters_Impl, - { + pub const fn new() -> IRdcGeneratorParameters_Vtbl { + unsafe extern "system" fn GetGeneratorParametersType(this: *mut core::ffi::c_void, parameterstype: *mut GeneratorParametersType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcGeneratorParameters_Impl::GetGeneratorParametersType(this) { Ok(ok__) => { @@ -293,17 +224,11 @@ impl IRdcGeneratorParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParametersVersion(this: *mut core::ffi::c_void, currentversion: *mut u32, minimumcompatibleappversion: *mut u32) -> windows_core::HRESULT - where - Identity: IRdcGeneratorParameters_Impl, - { + unsafe extern "system" fn GetParametersVersion(this: *mut core::ffi::c_void, currentversion: *mut u32, minimumcompatibleappversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcGeneratorParameters_Impl::GetParametersVersion(this, core::mem::transmute_copy(¤tversion), core::mem::transmute_copy(&minimumcompatibleappversion)).into() } - unsafe extern "system" fn GetSerializeSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IRdcGeneratorParameters_Impl, - { + unsafe extern "system" fn GetSerializeSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcGeneratorParameters_Impl::GetSerializeSize(this) { Ok(ok__) => { @@ -313,10 +238,7 @@ impl IRdcGeneratorParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, size: u32, parametersblob: *mut u8, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IRdcGeneratorParameters_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, size: u32, parametersblob: *mut u8, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcGeneratorParameters_Impl::Serialize(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(¶metersblob), core::mem::transmute_copy(&byteswritten)).into() } @@ -332,7 +254,7 @@ impl IRdcGeneratorParameters_Vtbl { iid == &::IID } } -pub trait IRdcLibrary_Impl: Sized { +pub trait IRdcLibrary_Impl: Sized + windows_core::IUnknownImpl { fn ComputeDefaultRecursionDepth(&self, filesize: u64) -> windows_core::Result; fn CreateGeneratorParameters(&self, parameterstype: GeneratorParametersType, level: u32) -> windows_core::Result; fn OpenGeneratorParameters(&self, size: u32, parametersblob: *const u8) -> windows_core::Result; @@ -343,14 +265,8 @@ pub trait IRdcLibrary_Impl: Sized { } impl windows_core::RuntimeName for IRdcLibrary {} impl IRdcLibrary_Vtbl { - pub const fn new() -> IRdcLibrary_Vtbl - where - Identity: IRdcLibrary_Impl, - { - unsafe extern "system" fn ComputeDefaultRecursionDepth(this: *mut core::ffi::c_void, filesize: u64, depth: *mut u32) -> windows_core::HRESULT - where - Identity: IRdcLibrary_Impl, - { + pub const fn new() -> IRdcLibrary_Vtbl { + unsafe extern "system" fn ComputeDefaultRecursionDepth(this: *mut core::ffi::c_void, filesize: u64, depth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcLibrary_Impl::ComputeDefaultRecursionDepth(this, core::mem::transmute_copy(&filesize)) { Ok(ok__) => { @@ -360,10 +276,7 @@ impl IRdcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGeneratorParameters(this: *mut core::ffi::c_void, parameterstype: GeneratorParametersType, level: u32, igeneratorparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRdcLibrary_Impl, - { + unsafe extern "system" fn CreateGeneratorParameters(this: *mut core::ffi::c_void, parameterstype: GeneratorParametersType, level: u32, igeneratorparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcLibrary_Impl::CreateGeneratorParameters(this, core::mem::transmute_copy(¶meterstype), core::mem::transmute_copy(&level)) { Ok(ok__) => { @@ -373,10 +286,7 @@ impl IRdcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenGeneratorParameters(this: *mut core::ffi::c_void, size: u32, parametersblob: *const u8, igeneratorparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRdcLibrary_Impl, - { + unsafe extern "system" fn OpenGeneratorParameters(this: *mut core::ffi::c_void, size: u32, parametersblob: *const u8, igeneratorparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcLibrary_Impl::OpenGeneratorParameters(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(¶metersblob)) { Ok(ok__) => { @@ -386,10 +296,7 @@ impl IRdcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGenerator(this: *mut core::ffi::c_void, depth: u32, igeneratorparametersarray: *const *mut core::ffi::c_void, igenerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRdcLibrary_Impl, - { + unsafe extern "system" fn CreateGenerator(this: *mut core::ffi::c_void, depth: u32, igeneratorparametersarray: *const *mut core::ffi::c_void, igenerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcLibrary_Impl::CreateGenerator(this, core::mem::transmute_copy(&depth), core::mem::transmute_copy(&igeneratorparametersarray)) { Ok(ok__) => { @@ -399,10 +306,7 @@ impl IRdcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateComparator(this: *mut core::ffi::c_void, iseedsignaturesfile: *mut core::ffi::c_void, comparatorbuffersize: u32, icomparator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRdcLibrary_Impl, - { + unsafe extern "system" fn CreateComparator(this: *mut core::ffi::c_void, iseedsignaturesfile: *mut core::ffi::c_void, comparatorbuffersize: u32, icomparator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcLibrary_Impl::CreateComparator(this, windows_core::from_raw_borrowed(&iseedsignaturesfile), core::mem::transmute_copy(&comparatorbuffersize)) { Ok(ok__) => { @@ -412,10 +316,7 @@ impl IRdcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSignatureReader(this: *mut core::ffi::c_void, ifilereader: *mut core::ffi::c_void, isignaturereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRdcLibrary_Impl, - { + unsafe extern "system" fn CreateSignatureReader(this: *mut core::ffi::c_void, ifilereader: *mut core::ffi::c_void, isignaturereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcLibrary_Impl::CreateSignatureReader(this, windows_core::from_raw_borrowed(&ifilereader)) { Ok(ok__) => { @@ -425,10 +326,7 @@ impl IRdcLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRDCVersion(this: *mut core::ffi::c_void, currentversion: *mut u32, minimumcompatibleappversion: *mut u32) -> windows_core::HRESULT - where - Identity: IRdcLibrary_Impl, - { + unsafe extern "system" fn GetRDCVersion(this: *mut core::ffi::c_void, currentversion: *mut u32, minimumcompatibleappversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcLibrary_Impl::GetRDCVersion(this, core::mem::transmute_copy(¤tversion), core::mem::transmute_copy(&minimumcompatibleappversion)).into() } @@ -447,20 +345,14 @@ impl IRdcLibrary_Vtbl { iid == &::IID } } -pub trait IRdcSignatureReader_Impl: Sized { +pub trait IRdcSignatureReader_Impl: Sized + windows_core::IUnknownImpl { fn ReadHeader(&self) -> windows_core::Result; fn ReadSignatures(&self, rdcsignaturepointer: *mut RdcSignaturePointer, endofoutput: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRdcSignatureReader {} impl IRdcSignatureReader_Vtbl { - pub const fn new() -> IRdcSignatureReader_Vtbl - where - Identity: IRdcSignatureReader_Impl, - { - unsafe extern "system" fn ReadHeader(this: *mut core::ffi::c_void, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::HRESULT - where - Identity: IRdcSignatureReader_Impl, - { + pub const fn new() -> IRdcSignatureReader_Vtbl { + unsafe extern "system" fn ReadHeader(this: *mut core::ffi::c_void, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcSignatureReader_Impl::ReadHeader(this) { Ok(ok__) => { @@ -470,10 +362,7 @@ impl IRdcSignatureReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadSignatures(this: *mut core::ffi::c_void, rdcsignaturepointer: *mut RdcSignaturePointer, endofoutput: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRdcSignatureReader_Impl, - { + unsafe extern "system" fn ReadSignatures(this: *mut core::ffi::c_void, rdcsignaturepointer: *mut RdcSignaturePointer, endofoutput: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcSignatureReader_Impl::ReadSignatures(this, core::mem::transmute_copy(&rdcsignaturepointer), core::mem::transmute_copy(&endofoutput)).into() } @@ -487,27 +376,18 @@ impl IRdcSignatureReader_Vtbl { iid == &::IID } } -pub trait IRdcSimilarityGenerator_Impl: Sized { +pub trait IRdcSimilarityGenerator_Impl: Sized + windows_core::IUnknownImpl { fn EnableSimilarity(&self) -> windows_core::Result<()>; fn Results(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IRdcSimilarityGenerator {} impl IRdcSimilarityGenerator_Vtbl { - pub const fn new() -> IRdcSimilarityGenerator_Vtbl - where - Identity: IRdcSimilarityGenerator_Impl, - { - unsafe extern "system" fn EnableSimilarity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRdcSimilarityGenerator_Impl, - { + pub const fn new() -> IRdcSimilarityGenerator_Vtbl { + unsafe extern "system" fn EnableSimilarity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcSimilarityGenerator_Impl::EnableSimilarity(this).into() } - unsafe extern "system" fn Results(this: *mut core::ffi::c_void, similaritydata: *mut SimilarityData) -> windows_core::HRESULT - where - Identity: IRdcSimilarityGenerator_Impl, - { + unsafe extern "system" fn Results(this: *mut core::ffi::c_void, similaritydata: *mut SimilarityData) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRdcSimilarityGenerator_Impl::Results(this) { Ok(ok__) => { @@ -527,7 +407,7 @@ impl IRdcSimilarityGenerator_Vtbl { iid == &::IID } } -pub trait ISimilarity_Impl: Sized { +pub trait ISimilarity_Impl: Sized + windows_core::IUnknownImpl { fn CreateTable(&self, path: &windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, recordsize: u32) -> windows_core::Result; fn CreateTableIndirect(&self, mapping: Option<&ISimilarityTraitsMapping>, fileidfile: Option<&IRdcFileWriter>, truncate: super::super::Foundation::BOOL, recordsize: u32) -> windows_core::Result; fn CloseTable(&self, isvalid: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -538,14 +418,8 @@ pub trait ISimilarity_Impl: Sized { } impl windows_core::RuntimeName for ISimilarity {} impl ISimilarity_Vtbl { - pub const fn new() -> ISimilarity_Vtbl - where - Identity: ISimilarity_Impl, - { - unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT - where - Identity: ISimilarity_Impl, - { + pub const fn new() -> ISimilarity_Vtbl { + unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarity_Impl::CreateTable(this, core::mem::transmute(&path), core::mem::transmute_copy(&truncate), core::mem::transmute_copy(&securitydescriptor), core::mem::transmute_copy(&recordsize)) { Ok(ok__) => { @@ -555,10 +429,7 @@ impl ISimilarity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, mapping: *mut core::ffi::c_void, fileidfile: *mut core::ffi::c_void, truncate: super::super::Foundation::BOOL, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT - where - Identity: ISimilarity_Impl, - { + unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, mapping: *mut core::ffi::c_void, fileidfile: *mut core::ffi::c_void, truncate: super::super::Foundation::BOOL, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarity_Impl::CreateTableIndirect(this, windows_core::from_raw_borrowed(&mapping), windows_core::from_raw_borrowed(&fileidfile), core::mem::transmute_copy(&truncate), core::mem::transmute_copy(&recordsize)) { Ok(ok__) => { @@ -568,24 +439,15 @@ impl ISimilarity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISimilarity_Impl, - { + unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarity_Impl::CloseTable(this, core::mem::transmute_copy(&isvalid)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, similarityfileid: *const SimilarityFileId, similaritydata: *const SimilarityData) -> windows_core::HRESULT - where - Identity: ISimilarity_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, similarityfileid: *const SimilarityFileId, similaritydata: *const SimilarityData) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarity_Impl::Append(this, core::mem::transmute_copy(&similarityfileid), core::mem::transmute_copy(&similaritydata)).into() } - unsafe extern "system" fn FindSimilarFileId(this: *mut core::ffi::c_void, similaritydata: *const SimilarityData, numberofmatchesrequired: u16, resultssize: u32, findsimilarresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISimilarity_Impl, - { + unsafe extern "system" fn FindSimilarFileId(this: *mut core::ffi::c_void, similaritydata: *const SimilarityData, numberofmatchesrequired: u16, resultssize: u32, findsimilarresults: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarity_Impl::FindSimilarFileId(this, core::mem::transmute_copy(&similaritydata), core::mem::transmute_copy(&numberofmatchesrequired), core::mem::transmute_copy(&resultssize)) { Ok(ok__) => { @@ -595,17 +457,11 @@ impl ISimilarity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyAndSwap(this: *mut core::ffi::c_void, newsimilaritytables: *mut core::ffi::c_void, reportprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISimilarity_Impl, - { + unsafe extern "system" fn CopyAndSwap(this: *mut core::ffi::c_void, newsimilaritytables: *mut core::ffi::c_void, reportprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarity_Impl::CopyAndSwap(this, windows_core::from_raw_borrowed(&newsimilaritytables), windows_core::from_raw_borrowed(&reportprogress)).into() } - unsafe extern "system" fn GetRecordCount(this: *mut core::ffi::c_void, recordcount: *mut u32) -> windows_core::HRESULT - where - Identity: ISimilarity_Impl, - { + unsafe extern "system" fn GetRecordCount(this: *mut core::ffi::c_void, recordcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarity_Impl::GetRecordCount(this) { Ok(ok__) => { @@ -630,7 +486,7 @@ impl ISimilarity_Vtbl { iid == &::IID } } -pub trait ISimilarityFileIdTable_Impl: Sized { +pub trait ISimilarityFileIdTable_Impl: Sized + windows_core::IUnknownImpl { fn CreateTable(&self, path: &windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, recordsize: u32) -> windows_core::Result; fn CreateTableIndirect(&self, fileidfile: Option<&IRdcFileWriter>, truncate: super::super::Foundation::BOOL, recordsize: u32) -> windows_core::Result; fn CloseTable(&self, isvalid: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -641,14 +497,8 @@ pub trait ISimilarityFileIdTable_Impl: Sized { } impl windows_core::RuntimeName for ISimilarityFileIdTable {} impl ISimilarityFileIdTable_Vtbl { - pub const fn new() -> ISimilarityFileIdTable_Vtbl - where - Identity: ISimilarityFileIdTable_Impl, - { - unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT - where - Identity: ISimilarityFileIdTable_Impl, - { + pub const fn new() -> ISimilarityFileIdTable_Vtbl { + unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityFileIdTable_Impl::CreateTable(this, core::mem::transmute(&path), core::mem::transmute_copy(&truncate), core::mem::transmute_copy(&securitydescriptor), core::mem::transmute_copy(&recordsize)) { Ok(ok__) => { @@ -658,10 +508,7 @@ impl ISimilarityFileIdTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, fileidfile: *mut core::ffi::c_void, truncate: super::super::Foundation::BOOL, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT - where - Identity: ISimilarityFileIdTable_Impl, - { + unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, fileidfile: *mut core::ffi::c_void, truncate: super::super::Foundation::BOOL, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityFileIdTable_Impl::CreateTableIndirect(this, windows_core::from_raw_borrowed(&fileidfile), core::mem::transmute_copy(&truncate), core::mem::transmute_copy(&recordsize)) { Ok(ok__) => { @@ -671,17 +518,11 @@ impl ISimilarityFileIdTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISimilarityFileIdTable_Impl, - { + unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityFileIdTable_Impl::CloseTable(this, core::mem::transmute_copy(&isvalid)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, similarityfileid: *const SimilarityFileId, similarityfileindex: *mut u32) -> windows_core::HRESULT - where - Identity: ISimilarityFileIdTable_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, similarityfileid: *const SimilarityFileId, similarityfileindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityFileIdTable_Impl::Append(this, core::mem::transmute_copy(&similarityfileid)) { Ok(ok__) => { @@ -691,24 +532,15 @@ impl ISimilarityFileIdTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Lookup(this: *mut core::ffi::c_void, similarityfileindex: u32, similarityfileid: *mut SimilarityFileId) -> windows_core::HRESULT - where - Identity: ISimilarityFileIdTable_Impl, - { + unsafe extern "system" fn Lookup(this: *mut core::ffi::c_void, similarityfileindex: u32, similarityfileid: *mut SimilarityFileId) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityFileIdTable_Impl::Lookup(this, core::mem::transmute_copy(&similarityfileindex), core::mem::transmute_copy(&similarityfileid)).into() } - unsafe extern "system" fn Invalidate(this: *mut core::ffi::c_void, similarityfileindex: u32) -> windows_core::HRESULT - where - Identity: ISimilarityFileIdTable_Impl, - { + unsafe extern "system" fn Invalidate(this: *mut core::ffi::c_void, similarityfileindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityFileIdTable_Impl::Invalidate(this, core::mem::transmute_copy(&similarityfileindex)).into() } - unsafe extern "system" fn GetRecordCount(this: *mut core::ffi::c_void, recordcount: *mut u32) -> windows_core::HRESULT - where - Identity: ISimilarityFileIdTable_Impl, - { + unsafe extern "system" fn GetRecordCount(this: *mut core::ffi::c_void, recordcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityFileIdTable_Impl::GetRecordCount(this) { Ok(ok__) => { @@ -733,19 +565,13 @@ impl ISimilarityFileIdTable_Vtbl { iid == &::IID } } -pub trait ISimilarityReportProgress_Impl: Sized { +pub trait ISimilarityReportProgress_Impl: Sized + windows_core::IUnknownImpl { fn ReportProgress(&self, percentcompleted: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISimilarityReportProgress {} impl ISimilarityReportProgress_Vtbl { - pub const fn new() -> ISimilarityReportProgress_Vtbl - where - Identity: ISimilarityReportProgress_Impl, - { - unsafe extern "system" fn ReportProgress(this: *mut core::ffi::c_void, percentcompleted: u32) -> windows_core::HRESULT - where - Identity: ISimilarityReportProgress_Impl, - { + pub const fn new() -> ISimilarityReportProgress_Vtbl { + unsafe extern "system" fn ReportProgress(this: *mut core::ffi::c_void, percentcompleted: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityReportProgress_Impl::ReportProgress(this, core::mem::transmute_copy(&percentcompleted)).into() } @@ -755,19 +581,13 @@ impl ISimilarityReportProgress_Vtbl { iid == &::IID } } -pub trait ISimilarityTableDumpState_Impl: Sized { +pub trait ISimilarityTableDumpState_Impl: Sized + windows_core::IUnknownImpl { fn GetNextData(&self, resultssize: u32, resultsused: *mut u32, eof: *mut super::super::Foundation::BOOL, results: *mut SimilarityDumpData) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISimilarityTableDumpState {} impl ISimilarityTableDumpState_Vtbl { - pub const fn new() -> ISimilarityTableDumpState_Vtbl - where - Identity: ISimilarityTableDumpState_Impl, - { - unsafe extern "system" fn GetNextData(this: *mut core::ffi::c_void, resultssize: u32, resultsused: *mut u32, eof: *mut super::super::Foundation::BOOL, results: *mut SimilarityDumpData) -> windows_core::HRESULT - where - Identity: ISimilarityTableDumpState_Impl, - { + pub const fn new() -> ISimilarityTableDumpState_Vtbl { + unsafe extern "system" fn GetNextData(this: *mut core::ffi::c_void, resultssize: u32, resultsused: *mut u32, eof: *mut super::super::Foundation::BOOL, results: *mut SimilarityDumpData) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTableDumpState_Impl::GetNextData(this, core::mem::transmute_copy(&resultssize), core::mem::transmute_copy(&resultsused), core::mem::transmute_copy(&eof), core::mem::transmute_copy(&results)).into() } @@ -777,7 +597,7 @@ impl ISimilarityTableDumpState_Vtbl { iid == &::IID } } -pub trait ISimilarityTraitsMappedView_Impl: Sized { +pub trait ISimilarityTraitsMappedView_Impl: Sized + windows_core::IUnknownImpl { fn Flush(&self) -> windows_core::Result<()>; fn Unmap(&self) -> windows_core::Result<()>; fn Get(&self, index: u64, dirty: super::super::Foundation::BOOL, numelements: u32) -> windows_core::Result; @@ -785,28 +605,16 @@ pub trait ISimilarityTraitsMappedView_Impl: Sized { } impl windows_core::RuntimeName for ISimilarityTraitsMappedView {} impl ISimilarityTraitsMappedView_Vtbl { - pub const fn new() -> ISimilarityTraitsMappedView_Vtbl - where - Identity: ISimilarityTraitsMappedView_Impl, - { - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsMappedView_Impl, - { + pub const fn new() -> ISimilarityTraitsMappedView_Vtbl { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTraitsMappedView_Impl::Flush(this).into() } - unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsMappedView_Impl, - { + unsafe extern "system" fn Unmap(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTraitsMappedView_Impl::Unmap(this).into() } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, index: u64, dirty: super::super::Foundation::BOOL, numelements: u32, viewinfo: *mut SimilarityMappedViewInfo) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsMappedView_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, index: u64, dirty: super::super::Foundation::BOOL, numelements: u32, viewinfo: *mut SimilarityMappedViewInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsMappedView_Impl::Get(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&dirty), core::mem::transmute_copy(&numelements)) { Ok(ok__) => { @@ -816,10 +624,7 @@ impl ISimilarityTraitsMappedView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetView(this: *mut core::ffi::c_void, mappedpagebegin: *mut *mut u8, mappedpageend: *mut *mut u8) - where - Identity: ISimilarityTraitsMappedView_Impl, - { + unsafe extern "system" fn GetView(this: *mut core::ffi::c_void, mappedpagebegin: *mut *mut u8, mappedpageend: *mut *mut u8) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTraitsMappedView_Impl::GetView(this, core::mem::transmute_copy(&mappedpagebegin), core::mem::transmute_copy(&mappedpageend)) } @@ -835,7 +640,7 @@ impl ISimilarityTraitsMappedView_Vtbl { iid == &::IID } } -pub trait ISimilarityTraitsMapping_Impl: Sized { +pub trait ISimilarityTraitsMapping_Impl: Sized + windows_core::IUnknownImpl { fn CloseMapping(&self); fn SetFileSize(&self, filesize: u64) -> windows_core::Result<()>; fn GetFileSize(&self) -> windows_core::Result; @@ -846,28 +651,16 @@ pub trait ISimilarityTraitsMapping_Impl: Sized { } impl windows_core::RuntimeName for ISimilarityTraitsMapping {} impl ISimilarityTraitsMapping_Vtbl { - pub const fn new() -> ISimilarityTraitsMapping_Vtbl - where - Identity: ISimilarityTraitsMapping_Impl, - { - unsafe extern "system" fn CloseMapping(this: *mut core::ffi::c_void) - where - Identity: ISimilarityTraitsMapping_Impl, - { + pub const fn new() -> ISimilarityTraitsMapping_Vtbl { + unsafe extern "system" fn CloseMapping(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTraitsMapping_Impl::CloseMapping(this) } - unsafe extern "system" fn SetFileSize(this: *mut core::ffi::c_void, filesize: u64) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsMapping_Impl, - { + unsafe extern "system" fn SetFileSize(this: *mut core::ffi::c_void, filesize: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTraitsMapping_Impl::SetFileSize(this, core::mem::transmute_copy(&filesize)).into() } - unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, filesize: *mut u64) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsMapping_Impl, - { + unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, filesize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsMapping_Impl::GetFileSize(this) { Ok(ok__) => { @@ -877,10 +670,7 @@ impl ISimilarityTraitsMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenMapping(this: *mut core::ffi::c_void, accessmode: RdcMappingAccessMode, begin: u64, end: u64, actualend: *mut u64) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsMapping_Impl, - { + unsafe extern "system" fn OpenMapping(this: *mut core::ffi::c_void, accessmode: RdcMappingAccessMode, begin: u64, end: u64, actualend: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsMapping_Impl::OpenMapping(this, core::mem::transmute_copy(&accessmode), core::mem::transmute_copy(&begin), core::mem::transmute_copy(&end)) { Ok(ok__) => { @@ -890,10 +680,7 @@ impl ISimilarityTraitsMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResizeMapping(this: *mut core::ffi::c_void, accessmode: RdcMappingAccessMode, begin: u64, end: u64, actualend: *mut u64) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsMapping_Impl, - { + unsafe extern "system" fn ResizeMapping(this: *mut core::ffi::c_void, accessmode: RdcMappingAccessMode, begin: u64, end: u64, actualend: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsMapping_Impl::ResizeMapping(this, core::mem::transmute_copy(&accessmode), core::mem::transmute_copy(&begin), core::mem::transmute_copy(&end)) { Ok(ok__) => { @@ -903,17 +690,11 @@ impl ISimilarityTraitsMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, pagesize: *mut u32) - where - Identity: ISimilarityTraitsMapping_Impl, - { + unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, pagesize: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTraitsMapping_Impl::GetPageSize(this, core::mem::transmute_copy(&pagesize)) } - unsafe extern "system" fn CreateView(this: *mut core::ffi::c_void, minimummappedpages: u32, accessmode: RdcMappingAccessMode, mappedview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsMapping_Impl, - { + unsafe extern "system" fn CreateView(this: *mut core::ffi::c_void, minimummappedpages: u32, accessmode: RdcMappingAccessMode, mappedview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsMapping_Impl::CreateView(this, core::mem::transmute_copy(&minimummappedpages), core::mem::transmute_copy(&accessmode)) { Ok(ok__) => { @@ -938,7 +719,7 @@ impl ISimilarityTraitsMapping_Vtbl { iid == &::IID } } -pub trait ISimilarityTraitsTable_Impl: Sized { +pub trait ISimilarityTraitsTable_Impl: Sized + windows_core::IUnknownImpl { fn CreateTable(&self, path: &windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8) -> windows_core::Result; fn CreateTableIndirect(&self, mapping: Option<&ISimilarityTraitsMapping>, truncate: super::super::Foundation::BOOL) -> windows_core::Result; fn CloseTable(&self, isvalid: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -949,14 +730,8 @@ pub trait ISimilarityTraitsTable_Impl: Sized { } impl windows_core::RuntimeName for ISimilarityTraitsTable {} impl ISimilarityTraitsTable_Vtbl { - pub const fn new() -> ISimilarityTraitsTable_Vtbl - where - Identity: ISimilarityTraitsTable_Impl, - { - unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsTable_Impl, - { + pub const fn new() -> ISimilarityTraitsTable_Vtbl { + unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsTable_Impl::CreateTable(this, core::mem::transmute(&path), core::mem::transmute_copy(&truncate), core::mem::transmute_copy(&securitydescriptor)) { Ok(ok__) => { @@ -966,10 +741,7 @@ impl ISimilarityTraitsTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, mapping: *mut core::ffi::c_void, truncate: super::super::Foundation::BOOL, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsTable_Impl, - { + unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, mapping: *mut core::ffi::c_void, truncate: super::super::Foundation::BOOL, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsTable_Impl::CreateTableIndirect(this, windows_core::from_raw_borrowed(&mapping), core::mem::transmute_copy(&truncate)) { Ok(ok__) => { @@ -979,31 +751,19 @@ impl ISimilarityTraitsTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsTable_Impl, - { + unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTraitsTable_Impl::CloseTable(this, core::mem::transmute_copy(&isvalid)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, data: *const SimilarityData, fileindex: u32) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsTable_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, data: *const SimilarityData, fileindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTraitsTable_Impl::Append(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&fileindex)).into() } - unsafe extern "system" fn FindSimilarFileIndex(this: *mut core::ffi::c_void, similaritydata: *const SimilarityData, numberofmatchesrequired: u16, findsimilarfileindexresults: *mut FindSimilarFileIndexResults, resultssize: u32, resultsused: *mut u32) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsTable_Impl, - { + unsafe extern "system" fn FindSimilarFileIndex(this: *mut core::ffi::c_void, similaritydata: *const SimilarityData, numberofmatchesrequired: u16, findsimilarfileindexresults: *mut FindSimilarFileIndexResults, resultssize: u32, resultsused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTraitsTable_Impl::FindSimilarFileIndex(this, core::mem::transmute_copy(&similaritydata), core::mem::transmute_copy(&numberofmatchesrequired), core::mem::transmute_copy(&findsimilarfileindexresults), core::mem::transmute_copy(&resultssize), core::mem::transmute_copy(&resultsused)).into() } - unsafe extern "system" fn BeginDump(this: *mut core::ffi::c_void, similaritytabledumpstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsTable_Impl, - { + unsafe extern "system" fn BeginDump(this: *mut core::ffi::c_void, similaritytabledumpstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsTable_Impl::BeginDump(this) { Ok(ok__) => { @@ -1013,10 +773,7 @@ impl ISimilarityTraitsTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastIndex(this: *mut core::ffi::c_void, fileindex: *mut u32) -> windows_core::HRESULT - where - Identity: ISimilarityTraitsTable_Impl, - { + unsafe extern "system" fn GetLastIndex(this: *mut core::ffi::c_void, fileindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsTable_Impl::GetLastIndex(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/impl.rs index bc09f384ec..2f24970355 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/impl.rs @@ -24,42 +24,24 @@ pub trait IWinHttpRequest_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IWinHttpRequest {} #[cfg(feature = "Win32_System_Com")] impl IWinHttpRequest_Vtbl { - pub const fn new() -> IWinHttpRequest_Vtbl - where - Identity: IWinHttpRequest_Impl, - { - unsafe extern "system" fn SetProxy(this: *mut core::ffi::c_void, proxysetting: i32, proxyserver: core::mem::MaybeUninit, bypasslist: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + pub const fn new() -> IWinHttpRequest_Vtbl { + unsafe extern "system" fn SetProxy(this: *mut core::ffi::c_void, proxysetting: i32, proxyserver: core::mem::MaybeUninit, bypasslist: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequest_Impl::SetProxy(this, core::mem::transmute_copy(&proxysetting), core::mem::transmute(&proxyserver), core::mem::transmute(&bypasslist)).into() } - unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, password: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, password: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequest_Impl::SetCredentials(this, core::mem::transmute(&username), core::mem::transmute(&password), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, method: core::mem::MaybeUninit, url: core::mem::MaybeUninit, r#async: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, method: core::mem::MaybeUninit, url: core::mem::MaybeUninit, r#async: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequest_Impl::Open(this, core::mem::transmute(&method), core::mem::transmute(&url), core::mem::transmute(&r#async)).into() } - unsafe extern "system" fn SetRequestHeader(this: *mut core::ffi::c_void, header: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn SetRequestHeader(this: *mut core::ffi::c_void, header: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequest_Impl::SetRequestHeader(this, core::mem::transmute(&header), core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetResponseHeader(this: *mut core::ffi::c_void, header: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn GetResponseHeader(this: *mut core::ffi::c_void, header: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinHttpRequest_Impl::GetResponseHeader(this, core::mem::transmute(&header)) { Ok(ok__) => { @@ -69,10 +51,7 @@ impl IWinHttpRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllResponseHeaders(this: *mut core::ffi::c_void, headers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn GetAllResponseHeaders(this: *mut core::ffi::c_void, headers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinHttpRequest_Impl::GetAllResponseHeaders(this) { Ok(ok__) => { @@ -82,17 +61,11 @@ impl IWinHttpRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Send(this: *mut core::ffi::c_void, body: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn Send(this: *mut core::ffi::c_void, body: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequest_Impl::Send(this, core::mem::transmute(&body)).into() } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut i32) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinHttpRequest_Impl::Status(this) { Ok(ok__) => { @@ -102,10 +75,7 @@ impl IWinHttpRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, status: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, status: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinHttpRequest_Impl::StatusText(this) { Ok(ok__) => { @@ -115,10 +85,7 @@ impl IWinHttpRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResponseText(this: *mut core::ffi::c_void, body: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn ResponseText(this: *mut core::ffi::c_void, body: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinHttpRequest_Impl::ResponseText(this) { Ok(ok__) => { @@ -128,10 +95,7 @@ impl IWinHttpRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResponseBody(this: *mut core::ffi::c_void, body: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn ResponseBody(this: *mut core::ffi::c_void, body: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinHttpRequest_Impl::ResponseBody(this) { Ok(ok__) => { @@ -141,10 +105,7 @@ impl IWinHttpRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResponseStream(this: *mut core::ffi::c_void, body: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn ResponseStream(this: *mut core::ffi::c_void, body: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinHttpRequest_Impl::ResponseStream(this) { Ok(ok__) => { @@ -154,10 +115,7 @@ impl IWinHttpRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Option(this: *mut core::ffi::c_void, option: WinHttpRequestOption, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn get_Option(this: *mut core::ffi::c_void, option: WinHttpRequestOption, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinHttpRequest_Impl::get_Option(this, core::mem::transmute_copy(&option)) { Ok(ok__) => { @@ -167,17 +125,11 @@ impl IWinHttpRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Option(this: *mut core::ffi::c_void, option: WinHttpRequestOption, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn put_Option(this: *mut core::ffi::c_void, option: WinHttpRequestOption, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequest_Impl::put_Option(this, core::mem::transmute_copy(&option), core::mem::transmute(&value)).into() } - unsafe extern "system" fn WaitForResponse(this: *mut core::ffi::c_void, timeout: core::mem::MaybeUninit, succeeded: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn WaitForResponse(this: *mut core::ffi::c_void, timeout: core::mem::MaybeUninit, succeeded: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWinHttpRequest_Impl::WaitForResponse(this, core::mem::transmute(&timeout)) { Ok(ok__) => { @@ -187,31 +139,19 @@ impl IWinHttpRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequest_Impl::Abort(this).into() } - unsafe extern "system" fn SetTimeouts(this: *mut core::ffi::c_void, resolvetimeout: i32, connecttimeout: i32, sendtimeout: i32, receivetimeout: i32) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn SetTimeouts(this: *mut core::ffi::c_void, resolvetimeout: i32, connecttimeout: i32, sendtimeout: i32, receivetimeout: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequest_Impl::SetTimeouts(this, core::mem::transmute_copy(&resolvetimeout), core::mem::transmute_copy(&connecttimeout), core::mem::transmute_copy(&sendtimeout), core::mem::transmute_copy(&receivetimeout)).into() } - unsafe extern "system" fn SetClientCertificate(this: *mut core::ffi::c_void, clientcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn SetClientCertificate(this: *mut core::ffi::c_void, clientcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequest_Impl::SetClientCertificate(this, core::mem::transmute(&clientcertificate)).into() } - unsafe extern "system" fn SetAutoLogonPolicy(this: *mut core::ffi::c_void, autologonpolicy: WinHttpRequestAutoLogonPolicy) -> windows_core::HRESULT - where - Identity: IWinHttpRequest_Impl, - { + unsafe extern "system" fn SetAutoLogonPolicy(this: *mut core::ffi::c_void, autologonpolicy: WinHttpRequestAutoLogonPolicy) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequest_Impl::SetAutoLogonPolicy(this, core::mem::transmute_copy(&autologonpolicy)).into() } @@ -243,7 +183,7 @@ impl IWinHttpRequest_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWinHttpRequestEvents_Impl: Sized { +pub trait IWinHttpRequestEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnResponseStart(&self, status: i32, contenttype: &windows_core::BSTR); fn OnResponseDataAvailable(&self, data: *const *const super::super::System::Com::SAFEARRAY); fn OnResponseFinished(&self); @@ -253,35 +193,20 @@ pub trait IWinHttpRequestEvents_Impl: Sized { impl windows_core::RuntimeName for IWinHttpRequestEvents {} #[cfg(feature = "Win32_System_Com")] impl IWinHttpRequestEvents_Vtbl { - pub const fn new() -> IWinHttpRequestEvents_Vtbl - where - Identity: IWinHttpRequestEvents_Impl, - { - unsafe extern "system" fn OnResponseStart(this: *mut core::ffi::c_void, status: i32, contenttype: core::mem::MaybeUninit) - where - Identity: IWinHttpRequestEvents_Impl, - { + pub const fn new() -> IWinHttpRequestEvents_Vtbl { + unsafe extern "system" fn OnResponseStart(this: *mut core::ffi::c_void, status: i32, contenttype: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequestEvents_Impl::OnResponseStart(this, core::mem::transmute_copy(&status), core::mem::transmute(&contenttype)) } - unsafe extern "system" fn OnResponseDataAvailable(this: *mut core::ffi::c_void, data: *const *const super::super::System::Com::SAFEARRAY) - where - Identity: IWinHttpRequestEvents_Impl, - { + unsafe extern "system" fn OnResponseDataAvailable(this: *mut core::ffi::c_void, data: *const *const super::super::System::Com::SAFEARRAY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequestEvents_Impl::OnResponseDataAvailable(this, core::mem::transmute_copy(&data)) } - unsafe extern "system" fn OnResponseFinished(this: *mut core::ffi::c_void) - where - Identity: IWinHttpRequestEvents_Impl, - { + unsafe extern "system" fn OnResponseFinished(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequestEvents_Impl::OnResponseFinished(this) } - unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, errornumber: i32, errordescription: core::mem::MaybeUninit) - where - Identity: IWinHttpRequestEvents_Impl, - { + unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, errornumber: i32, errordescription: core::mem::MaybeUninit) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinHttpRequestEvents_Impl::OnError(this, core::mem::transmute_copy(&errornumber), core::mem::transmute(&errordescription)) } diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/impl.rs index bbc4f6eefe..89b6f763af 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDialBranding_Impl: Sized { +pub trait IDialBranding_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pwzconnectoid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetBitmap(&self, dwindex: u32) -> windows_core::Result; } @@ -7,21 +7,12 @@ pub trait IDialBranding_Impl: Sized { impl windows_core::RuntimeName for IDialBranding {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDialBranding_Vtbl { - pub const fn new() -> IDialBranding_Vtbl - where - Identity: IDialBranding_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pwzconnectoid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDialBranding_Impl, - { + pub const fn new() -> IDialBranding_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pwzconnectoid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDialBranding_Impl::Initialize(this, core::mem::transmute(&pwzconnectoid)).into() } - unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, dwindex: u32, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IDialBranding_Impl, - { + unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, dwindex: u32, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDialBranding_Impl::GetBitmap(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -41,7 +32,7 @@ impl IDialBranding_Vtbl { iid == &::IID } } -pub trait IDialEngine_Impl: Sized { +pub trait IDialEngine_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pwzconnectoid: &windows_core::PCWSTR, pides: Option<&IDialEventSink>) -> windows_core::Result<()>; fn GetProperty(&self, pwzproperty: &windows_core::PCWSTR, pwzvalue: &windows_core::PCWSTR, dwbufsize: u32) -> windows_core::Result<()>; fn SetProperty(&self, pwzproperty: &windows_core::PCWSTR, pwzvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -52,49 +43,28 @@ pub trait IDialEngine_Impl: Sized { } impl windows_core::RuntimeName for IDialEngine {} impl IDialEngine_Vtbl { - pub const fn new() -> IDialEngine_Vtbl - where - Identity: IDialEngine_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pwzconnectoid: windows_core::PCWSTR, pides: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDialEngine_Impl, - { + pub const fn new() -> IDialEngine_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pwzconnectoid: windows_core::PCWSTR, pides: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDialEngine_Impl::Initialize(this, core::mem::transmute(&pwzconnectoid), windows_core::from_raw_borrowed(&pides)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pwzproperty: windows_core::PCWSTR, pwzvalue: windows_core::PCWSTR, dwbufsize: u32) -> windows_core::HRESULT - where - Identity: IDialEngine_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pwzproperty: windows_core::PCWSTR, pwzvalue: windows_core::PCWSTR, dwbufsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDialEngine_Impl::GetProperty(this, core::mem::transmute(&pwzproperty), core::mem::transmute(&pwzvalue), core::mem::transmute_copy(&dwbufsize)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pwzproperty: windows_core::PCWSTR, pwzvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDialEngine_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, pwzproperty: windows_core::PCWSTR, pwzvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDialEngine_Impl::SetProperty(this, core::mem::transmute(&pwzproperty), core::mem::transmute(&pwzvalue)).into() } - unsafe extern "system" fn Dial(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDialEngine_Impl, - { + unsafe extern "system" fn Dial(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDialEngine_Impl::Dial(this).into() } - unsafe extern "system" fn HangUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDialEngine_Impl, - { + unsafe extern "system" fn HangUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDialEngine_Impl::HangUp(this).into() } - unsafe extern "system" fn GetConnectedState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT - where - Identity: IDialEngine_Impl, - { + unsafe extern "system" fn GetConnectedState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDialEngine_Impl::GetConnectedState(this) { Ok(ok__) => { @@ -104,10 +74,7 @@ impl IDialEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectHandle(this: *mut core::ffi::c_void, pdwhandle: *mut usize) -> windows_core::HRESULT - where - Identity: IDialEngine_Impl, - { + unsafe extern "system" fn GetConnectHandle(this: *mut core::ffi::c_void, pdwhandle: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDialEngine_Impl::GetConnectHandle(this) { Ok(ok__) => { @@ -132,19 +99,13 @@ impl IDialEngine_Vtbl { iid == &::IID } } -pub trait IDialEventSink_Impl: Sized { +pub trait IDialEventSink_Impl: Sized + windows_core::IUnknownImpl { fn OnEvent(&self, dwevent: u32, dwstatus: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDialEventSink {} impl IDialEventSink_Vtbl { - pub const fn new() -> IDialEventSink_Vtbl - where - Identity: IDialEventSink_Impl, - { - unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, dwevent: u32, dwstatus: u32) -> windows_core::HRESULT - where - Identity: IDialEventSink_Impl, - { + pub const fn new() -> IDialEventSink_Vtbl { + unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, dwevent: u32, dwstatus: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDialEventSink_Impl::OnEvent(this, core::mem::transmute_copy(&dwevent), core::mem::transmute_copy(&dwstatus)).into() } @@ -154,19 +115,13 @@ impl IDialEventSink_Vtbl { iid == &::IID } } -pub trait IProofOfPossessionCookieInfoManager_Impl: Sized { +pub trait IProofOfPossessionCookieInfoManager_Impl: Sized + windows_core::IUnknownImpl { fn GetCookieInfoForUri(&self, uri: &windows_core::PCWSTR, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IProofOfPossessionCookieInfoManager {} impl IProofOfPossessionCookieInfoManager_Vtbl { - pub const fn new() -> IProofOfPossessionCookieInfoManager_Vtbl - where - Identity: IProofOfPossessionCookieInfoManager_Impl, - { - unsafe extern "system" fn GetCookieInfoForUri(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> windows_core::HRESULT - where - Identity: IProofOfPossessionCookieInfoManager_Impl, - { + pub const fn new() -> IProofOfPossessionCookieInfoManager_Vtbl { + unsafe extern "system" fn GetCookieInfoForUri(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProofOfPossessionCookieInfoManager_Impl::GetCookieInfoForUri(this, core::mem::transmute(&uri), core::mem::transmute_copy(&cookieinfocount), core::mem::transmute_copy(&cookieinfo)).into() } @@ -176,19 +131,13 @@ impl IProofOfPossessionCookieInfoManager_Vtbl { iid == &::IID } } -pub trait IProofOfPossessionCookieInfoManager2_Impl: Sized { +pub trait IProofOfPossessionCookieInfoManager2_Impl: Sized + windows_core::IUnknownImpl { fn GetCookieInfoWithUriForAccount(&self, webaccount: Option<&windows_core::IInspectable>, uri: &windows_core::PCWSTR, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IProofOfPossessionCookieInfoManager2 {} impl IProofOfPossessionCookieInfoManager2_Vtbl { - pub const fn new() -> IProofOfPossessionCookieInfoManager2_Vtbl - where - Identity: IProofOfPossessionCookieInfoManager2_Impl, - { - unsafe extern "system" fn GetCookieInfoWithUriForAccount(this: *mut core::ffi::c_void, webaccount: *mut core::ffi::c_void, uri: windows_core::PCWSTR, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> windows_core::HRESULT - where - Identity: IProofOfPossessionCookieInfoManager2_Impl, - { + pub const fn new() -> IProofOfPossessionCookieInfoManager2_Vtbl { + unsafe extern "system" fn GetCookieInfoWithUriForAccount(this: *mut core::ffi::c_void, webaccount: *mut core::ffi::c_void, uri: windows_core::PCWSTR, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProofOfPossessionCookieInfoManager2_Impl::GetCookieInfoWithUriForAccount(this, windows_core::from_raw_borrowed(&webaccount), core::mem::transmute(&uri), core::mem::transmute_copy(&cookieinfocount), core::mem::transmute_copy(&cookieinfo)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/impl.rs index 2ec4208321..4a9780ecbf 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/impl.rs @@ -1,24 +1,15 @@ -pub trait IContentPrefetcherTaskTrigger_Impl: Sized { +pub trait IContentPrefetcherTaskTrigger_Impl: Sized + windows_core::IUnknownImpl { fn TriggerContentPrefetcherTask(&self, packagefullname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn IsRegisteredForContentPrefetch(&self, packagefullname: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IContentPrefetcherTaskTrigger {} impl IContentPrefetcherTaskTrigger_Vtbl { - pub const fn new() -> IContentPrefetcherTaskTrigger_Vtbl - where - Identity: IContentPrefetcherTaskTrigger_Impl, - { - unsafe extern "system" fn TriggerContentPrefetcherTask(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContentPrefetcherTaskTrigger_Impl, - { + pub const fn new() -> IContentPrefetcherTaskTrigger_Vtbl { + unsafe extern "system" fn TriggerContentPrefetcherTask(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContentPrefetcherTaskTrigger_Impl::TriggerContentPrefetcherTask(this, core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn IsRegisteredForContentPrefetch(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, isregistered: *mut u8) -> windows_core::HRESULT - where - Identity: IContentPrefetcherTaskTrigger_Impl, - { + unsafe extern "system" fn IsRegisteredForContentPrefetch(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, isregistered: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContentPrefetcherTaskTrigger_Impl::IsRegisteredForContentPrefetch(this, core::mem::transmute(&packagefullname)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/impl.rs index c85d81dc0e..dde31f6882 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait AsyncIAssociatedIdentityProvider_Impl: Sized { +pub trait AsyncIAssociatedIdentityProvider_Impl: Sized + windows_core::IUnknownImpl { fn Begin_AssociateIdentity(&self, hwndparent: super::super::super::super::Foundation::HWND) -> windows_core::Result<()>; fn Finish_AssociateIdentity(&self) -> windows_core::Result; fn Begin_DisassociateIdentity(&self, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -11,21 +11,12 @@ pub trait AsyncIAssociatedIdentityProvider_Impl: Sized { impl windows_core::RuntimeName for AsyncIAssociatedIdentityProvider {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl AsyncIAssociatedIdentityProvider_Vtbl { - pub const fn new() -> AsyncIAssociatedIdentityProvider_Vtbl - where - Identity: AsyncIAssociatedIdentityProvider_Impl, - { - unsafe extern "system" fn Begin_AssociateIdentity(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: AsyncIAssociatedIdentityProvider_Impl, - { + pub const fn new() -> AsyncIAssociatedIdentityProvider_Vtbl { + unsafe extern "system" fn Begin_AssociateIdentity(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAssociatedIdentityProvider_Impl::Begin_AssociateIdentity(this, core::mem::transmute_copy(&hwndparent)).into() } - unsafe extern "system" fn Finish_AssociateIdentity(this: *mut core::ffi::c_void, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIAssociatedIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_AssociateIdentity(this: *mut core::ffi::c_void, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIAssociatedIdentityProvider_Impl::Finish_AssociateIdentity(this) { Ok(ok__) => { @@ -35,31 +26,19 @@ impl AsyncIAssociatedIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Begin_DisassociateIdentity(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: AsyncIAssociatedIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_DisassociateIdentity(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAssociatedIdentityProvider_Impl::Begin_DisassociateIdentity(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&lpszuniqueid)).into() } - unsafe extern "system" fn Finish_DisassociateIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIAssociatedIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_DisassociateIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAssociatedIdentityProvider_Impl::Finish_DisassociateIdentity(this).into() } - unsafe extern "system" fn Begin_ChangeCredential(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: AsyncIAssociatedIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_ChangeCredential(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAssociatedIdentityProvider_Impl::Begin_ChangeCredential(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&lpszuniqueid)).into() } - unsafe extern "system" fn Finish_ChangeCredential(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIAssociatedIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_ChangeCredential(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAssociatedIdentityProvider_Impl::Finish_ChangeCredential(this).into() } @@ -78,7 +57,7 @@ impl AsyncIAssociatedIdentityProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait AsyncIConnectedIdentityProvider_Impl: Sized { +pub trait AsyncIConnectedIdentityProvider_Impl: Sized + windows_core::IUnknownImpl { fn Begin_ConnectIdentity(&self, authbuffer: *const u8, authbuffersize: u32) -> windows_core::Result<()>; fn Finish_ConnectIdentity(&self) -> windows_core::Result<()>; fn Begin_DisconnectIdentity(&self) -> windows_core::Result<()>; @@ -94,49 +73,28 @@ pub trait AsyncIConnectedIdentityProvider_Impl: Sized { impl windows_core::RuntimeName for AsyncIConnectedIdentityProvider {} #[cfg(feature = "Win32_System_Com")] impl AsyncIConnectedIdentityProvider_Vtbl { - pub const fn new() -> AsyncIConnectedIdentityProvider_Vtbl - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { - unsafe extern "system" fn Begin_ConnectIdentity(this: *mut core::ffi::c_void, authbuffer: *const u8, authbuffersize: u32) -> windows_core::HRESULT - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { + pub const fn new() -> AsyncIConnectedIdentityProvider_Vtbl { + unsafe extern "system" fn Begin_ConnectIdentity(this: *mut core::ffi::c_void, authbuffer: *const u8, authbuffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIConnectedIdentityProvider_Impl::Begin_ConnectIdentity(this, core::mem::transmute_copy(&authbuffer), core::mem::transmute_copy(&authbuffersize)).into() } - unsafe extern "system" fn Finish_ConnectIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_ConnectIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIConnectedIdentityProvider_Impl::Finish_ConnectIdentity(this).into() } - unsafe extern "system" fn Begin_DisconnectIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_DisconnectIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIConnectedIdentityProvider_Impl::Begin_DisconnectIdentity(this).into() } - unsafe extern "system" fn Finish_DisconnectIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_DisconnectIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIConnectedIdentityProvider_Impl::Finish_DisconnectIdentity(this).into() } - unsafe extern "system" fn Begin_IsConnected(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_IsConnected(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIConnectedIdentityProvider_Impl::Begin_IsConnected(this).into() } - unsafe extern "system" fn Finish_IsConnected(this: *mut core::ffi::c_void, connected: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_IsConnected(this: *mut core::ffi::c_void, connected: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIConnectedIdentityProvider_Impl::Finish_IsConnected(this) { Ok(ok__) => { @@ -146,31 +104,19 @@ impl AsyncIConnectedIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Begin_GetUrl(this: *mut core::ffi::c_void, identifier: IDENTITY_URL, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_GetUrl(this: *mut core::ffi::c_void, identifier: IDENTITY_URL, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIConnectedIdentityProvider_Impl::Begin_GetUrl(this, core::mem::transmute_copy(&identifier), windows_core::from_raw_borrowed(&context)).into() } - unsafe extern "system" fn Finish_GetUrl(this: *mut core::ffi::c_void, postdata: *mut core::mem::MaybeUninit, url: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_GetUrl(this: *mut core::ffi::c_void, postdata: *mut core::mem::MaybeUninit, url: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIConnectedIdentityProvider_Impl::Finish_GetUrl(this, core::mem::transmute_copy(&postdata), core::mem::transmute_copy(&url)).into() } - unsafe extern "system" fn Begin_GetAccountState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_GetAccountState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIConnectedIdentityProvider_Impl::Begin_GetAccountState(this).into() } - unsafe extern "system" fn Finish_GetAccountState(this: *mut core::ffi::c_void, pstate: *mut ACCOUNT_STATE) -> windows_core::HRESULT - where - Identity: AsyncIConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_GetAccountState(this: *mut core::ffi::c_void, pstate: *mut ACCOUNT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIConnectedIdentityProvider_Impl::Finish_GetAccountState(this) { Ok(ok__) => { @@ -198,27 +144,18 @@ impl AsyncIConnectedIdentityProvider_Vtbl { iid == &::IID } } -pub trait AsyncIIdentityAdvise_Impl: Sized { +pub trait AsyncIIdentityAdvise_Impl: Sized + windows_core::IUnknownImpl { fn Begin_IdentityUpdated(&self, dwidentityupdateevents: u32, lpszuniqueid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Finish_IdentityUpdated(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for AsyncIIdentityAdvise {} impl AsyncIIdentityAdvise_Vtbl { - pub const fn new() -> AsyncIIdentityAdvise_Vtbl - where - Identity: AsyncIIdentityAdvise_Impl, - { - unsafe extern "system" fn Begin_IdentityUpdated(this: *mut core::ffi::c_void, dwidentityupdateevents: u32, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: AsyncIIdentityAdvise_Impl, - { + pub const fn new() -> AsyncIIdentityAdvise_Vtbl { + unsafe extern "system" fn Begin_IdentityUpdated(this: *mut core::ffi::c_void, dwidentityupdateevents: u32, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityAdvise_Impl::Begin_IdentityUpdated(this, core::mem::transmute_copy(&dwidentityupdateevents), core::mem::transmute(&lpszuniqueid)).into() } - unsafe extern "system" fn Finish_IdentityUpdated(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityAdvise_Impl, - { + unsafe extern "system" fn Finish_IdentityUpdated(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityAdvise_Impl::Finish_IdentityUpdated(this).into() } @@ -233,7 +170,7 @@ impl AsyncIIdentityAdvise_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait AsyncIIdentityAuthentication_Impl: Sized { +pub trait AsyncIIdentityAuthentication_Impl: Sized + windows_core::IUnknownImpl { fn Begin_SetIdentityCredential(&self, credbuffer: *const u8, credbufferlength: u32) -> windows_core::Result<()>; fn Finish_SetIdentityCredential(&self) -> windows_core::Result<()>; fn Begin_ValidateIdentityCredential(&self, credbuffer: *const u8, credbufferlength: u32, ppidentityproperties: *mut Option) -> windows_core::Result<()>; @@ -243,35 +180,20 @@ pub trait AsyncIIdentityAuthentication_Impl: Sized { impl windows_core::RuntimeName for AsyncIIdentityAuthentication {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl AsyncIIdentityAuthentication_Vtbl { - pub const fn new() -> AsyncIIdentityAuthentication_Vtbl - where - Identity: AsyncIIdentityAuthentication_Impl, - { - unsafe extern "system" fn Begin_SetIdentityCredential(this: *mut core::ffi::c_void, credbuffer: *const u8, credbufferlength: u32) -> windows_core::HRESULT - where - Identity: AsyncIIdentityAuthentication_Impl, - { + pub const fn new() -> AsyncIIdentityAuthentication_Vtbl { + unsafe extern "system" fn Begin_SetIdentityCredential(this: *mut core::ffi::c_void, credbuffer: *const u8, credbufferlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityAuthentication_Impl::Begin_SetIdentityCredential(this, core::mem::transmute_copy(&credbuffer), core::mem::transmute_copy(&credbufferlength)).into() } - unsafe extern "system" fn Finish_SetIdentityCredential(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityAuthentication_Impl, - { + unsafe extern "system" fn Finish_SetIdentityCredential(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityAuthentication_Impl::Finish_SetIdentityCredential(this).into() } - unsafe extern "system" fn Begin_ValidateIdentityCredential(this: *mut core::ffi::c_void, credbuffer: *const u8, credbufferlength: u32, ppidentityproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityAuthentication_Impl, - { + unsafe extern "system" fn Begin_ValidateIdentityCredential(this: *mut core::ffi::c_void, credbuffer: *const u8, credbufferlength: u32, ppidentityproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityAuthentication_Impl::Begin_ValidateIdentityCredential(this, core::mem::transmute_copy(&credbuffer), core::mem::transmute_copy(&credbufferlength), core::mem::transmute_copy(&ppidentityproperties)).into() } - unsafe extern "system" fn Finish_ValidateIdentityCredential(this: *mut core::ffi::c_void, ppidentityproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityAuthentication_Impl, - { + unsafe extern "system" fn Finish_ValidateIdentityCredential(this: *mut core::ffi::c_void, ppidentityproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityAuthentication_Impl::Finish_ValidateIdentityCredential(this, core::mem::transmute_copy(&ppidentityproperties)).into() } @@ -288,7 +210,7 @@ impl AsyncIIdentityAuthentication_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait AsyncIIdentityProvider_Impl: Sized { +pub trait AsyncIIdentityProvider_Impl: Sized + windows_core::IUnknownImpl { fn Begin_GetIdentityEnum(&self, eidentitytype: IDENTITY_TYPE, pfilterkey: *const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfilterpropvarvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; fn Finish_GetIdentityEnum(&self) -> windows_core::Result; fn Begin_Create(&self, lpszusername: &windows_core::PCWSTR, pkeywordstoadd: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; @@ -310,21 +232,12 @@ pub trait AsyncIIdentityProvider_Impl: Sized { impl windows_core::RuntimeName for AsyncIIdentityProvider {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl AsyncIIdentityProvider_Vtbl { - pub const fn new() -> AsyncIIdentityProvider_Vtbl - where - Identity: AsyncIIdentityProvider_Impl, - { - unsafe extern "system" fn Begin_GetIdentityEnum(this: *mut core::ffi::c_void, eidentitytype: IDENTITY_TYPE, pfilterkey: *const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfilterpropvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + pub const fn new() -> AsyncIIdentityProvider_Vtbl { + unsafe extern "system" fn Begin_GetIdentityEnum(this: *mut core::ffi::c_void, eidentitytype: IDENTITY_TYPE, pfilterkey: *const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfilterpropvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Begin_GetIdentityEnum(this, core::mem::transmute_copy(&eidentitytype), core::mem::transmute_copy(&pfilterkey), core::mem::transmute_copy(&pfilterpropvarvalue)).into() } - unsafe extern "system" fn Finish_GetIdentityEnum(this: *mut core::ffi::c_void, ppidentityenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_GetIdentityEnum(this: *mut core::ffi::c_void, ppidentityenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIIdentityProvider_Impl::Finish_GetIdentityEnum(this) { Ok(ok__) => { @@ -334,17 +247,11 @@ impl AsyncIIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Begin_Create(this: *mut core::ffi::c_void, lpszusername: windows_core::PCWSTR, pkeywordstoadd: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_Create(this: *mut core::ffi::c_void, lpszusername: windows_core::PCWSTR, pkeywordstoadd: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Begin_Create(this, core::mem::transmute(&lpszusername), core::mem::transmute_copy(&pkeywordstoadd)).into() } - unsafe extern "system" fn Finish_Create(this: *mut core::ffi::c_void, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_Create(this: *mut core::ffi::c_void, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIIdentityProvider_Impl::Finish_Create(this) { Ok(ok__) => { @@ -354,45 +261,27 @@ impl AsyncIIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Begin_Import(this: *mut core::ffi::c_void, ppropertystore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_Import(this: *mut core::ffi::c_void, ppropertystore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Begin_Import(this, windows_core::from_raw_borrowed(&ppropertystore)).into() } - unsafe extern "system" fn Finish_Import(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_Import(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Finish_Import(this).into() } - unsafe extern "system" fn Begin_Delete(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, pkeywordstodelete: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_Delete(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, pkeywordstodelete: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Begin_Delete(this, core::mem::transmute(&lpszuniqueid), core::mem::transmute_copy(&pkeywordstodelete)).into() } - unsafe extern "system" fn Finish_Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Finish_Delete(this).into() } - unsafe extern "system" fn Begin_FindByUniqueID(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_FindByUniqueID(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Begin_FindByUniqueID(this, core::mem::transmute(&lpszuniqueid)).into() } - unsafe extern "system" fn Finish_FindByUniqueID(this: *mut core::ffi::c_void, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_FindByUniqueID(this: *mut core::ffi::c_void, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIIdentityProvider_Impl::Finish_FindByUniqueID(this) { Ok(ok__) => { @@ -402,17 +291,11 @@ impl AsyncIIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Begin_GetProviderPropertyStore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_GetProviderPropertyStore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Begin_GetProviderPropertyStore(this).into() } - unsafe extern "system" fn Finish_GetProviderPropertyStore(this: *mut core::ffi::c_void, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_GetProviderPropertyStore(this: *mut core::ffi::c_void, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIIdentityProvider_Impl::Finish_GetProviderPropertyStore(this) { Ok(ok__) => { @@ -422,17 +305,11 @@ impl AsyncIIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Begin_Advise(this: *mut core::ffi::c_void, pidentityadvise: *mut core::ffi::c_void, dwidentityupdateevents: u32) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_Advise(this: *mut core::ffi::c_void, pidentityadvise: *mut core::ffi::c_void, dwidentityupdateevents: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Begin_Advise(this, windows_core::from_raw_borrowed(&pidentityadvise), core::mem::transmute_copy(&dwidentityupdateevents)).into() } - unsafe extern "system" fn Finish_Advise(this: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_Advise(this: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIIdentityProvider_Impl::Finish_Advise(this) { Ok(ok__) => { @@ -442,17 +319,11 @@ impl AsyncIIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Begin_UnAdvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Begin_UnAdvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Begin_UnAdvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn Finish_UnAdvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityProvider_Impl, - { + unsafe extern "system" fn Finish_UnAdvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityProvider_Impl::Finish_UnAdvise(this).into() } @@ -481,7 +352,7 @@ impl AsyncIIdentityProvider_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait AsyncIIdentityStore_Impl: Sized { +pub trait AsyncIIdentityStore_Impl: Sized + windows_core::IUnknownImpl { fn Begin_GetCount(&self) -> windows_core::Result<()>; fn Finish_GetCount(&self) -> windows_core::Result; fn Begin_GetAt(&self, dwprovider: u32, pprovguid: *mut windows_core::GUID) -> windows_core::Result<()>; @@ -499,21 +370,12 @@ pub trait AsyncIIdentityStore_Impl: Sized { impl windows_core::RuntimeName for AsyncIIdentityStore {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl AsyncIIdentityStore_Vtbl { - pub const fn new() -> AsyncIIdentityStore_Vtbl - where - Identity: AsyncIIdentityStore_Impl, - { - unsafe extern "system" fn Begin_GetCount(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + pub const fn new() -> AsyncIIdentityStore_Vtbl { + unsafe extern "system" fn Begin_GetCount(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStore_Impl::Begin_GetCount(this).into() } - unsafe extern "system" fn Finish_GetCount(this: *mut core::ffi::c_void, pdwproviders: *mut u32) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Finish_GetCount(this: *mut core::ffi::c_void, pdwproviders: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIIdentityStore_Impl::Finish_GetCount(this) { Ok(ok__) => { @@ -523,59 +385,35 @@ impl AsyncIIdentityStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Begin_GetAt(this: *mut core::ffi::c_void, dwprovider: u32, pprovguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Begin_GetAt(this: *mut core::ffi::c_void, dwprovider: u32, pprovguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStore_Impl::Begin_GetAt(this, core::mem::transmute_copy(&dwprovider), core::mem::transmute_copy(&pprovguid)).into() } - unsafe extern "system" fn Finish_GetAt(this: *mut core::ffi::c_void, pprovguid: *mut windows_core::GUID, ppidentityprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Finish_GetAt(this: *mut core::ffi::c_void, pprovguid: *mut windows_core::GUID, ppidentityprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStore_Impl::Finish_GetAt(this, core::mem::transmute_copy(&pprovguid), core::mem::transmute_copy(&ppidentityprovider)).into() } - unsafe extern "system" fn Begin_AddToCache(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Begin_AddToCache(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStore_Impl::Begin_AddToCache(this, core::mem::transmute(&lpszuniqueid), core::mem::transmute_copy(&providerguid)).into() } - unsafe extern "system" fn Finish_AddToCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Finish_AddToCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStore_Impl::Finish_AddToCache(this).into() } - unsafe extern "system" fn Begin_ConvertToSid(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, providerguid: *const windows_core::GUID, cbsid: u16, psid: *mut u8) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Begin_ConvertToSid(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, providerguid: *const windows_core::GUID, cbsid: u16, psid: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStore_Impl::Begin_ConvertToSid(this, core::mem::transmute(&lpszuniqueid), core::mem::transmute_copy(&providerguid), core::mem::transmute_copy(&cbsid), core::mem::transmute_copy(&psid)).into() } - unsafe extern "system" fn Finish_ConvertToSid(this: *mut core::ffi::c_void, psid: *mut u8, pcbrequiredsid: *mut u16) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Finish_ConvertToSid(this: *mut core::ffi::c_void, psid: *mut u8, pcbrequiredsid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStore_Impl::Finish_ConvertToSid(this, core::mem::transmute_copy(&psid), core::mem::transmute_copy(&pcbrequiredsid)).into() } - unsafe extern "system" fn Begin_EnumerateIdentities(this: *mut core::ffi::c_void, eidentitytype: IDENTITY_TYPE, pfilterkey: *const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfilterpropvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Begin_EnumerateIdentities(this: *mut core::ffi::c_void, eidentitytype: IDENTITY_TYPE, pfilterkey: *const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfilterpropvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStore_Impl::Begin_EnumerateIdentities(this, core::mem::transmute_copy(&eidentitytype), core::mem::transmute_copy(&pfilterkey), core::mem::transmute_copy(&pfilterpropvarvalue)).into() } - unsafe extern "system" fn Finish_EnumerateIdentities(this: *mut core::ffi::c_void, ppidentityenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Finish_EnumerateIdentities(this: *mut core::ffi::c_void, ppidentityenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIIdentityStore_Impl::Finish_EnumerateIdentities(this) { Ok(ok__) => { @@ -585,17 +423,11 @@ impl AsyncIIdentityStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Begin_Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Begin_Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStore_Impl::Begin_Reset(this).into() } - unsafe extern "system" fn Finish_Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStore_Impl, - { + unsafe extern "system" fn Finish_Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStore_Impl::Finish_Reset(this).into() } @@ -619,7 +451,7 @@ impl AsyncIIdentityStore_Vtbl { iid == &::IID } } -pub trait AsyncIIdentityStoreEx_Impl: Sized { +pub trait AsyncIIdentityStoreEx_Impl: Sized + windows_core::IUnknownImpl { fn Begin_CreateConnectedIdentity(&self, localname: &windows_core::PCWSTR, connectedname: &windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::Result<()>; fn Finish_CreateConnectedIdentity(&self) -> windows_core::Result<()>; fn Begin_DeleteConnectedIdentity(&self, connectedname: &windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::Result<()>; @@ -627,35 +459,20 @@ pub trait AsyncIIdentityStoreEx_Impl: Sized { } impl windows_core::RuntimeName for AsyncIIdentityStoreEx {} impl AsyncIIdentityStoreEx_Vtbl { - pub const fn new() -> AsyncIIdentityStoreEx_Vtbl - where - Identity: AsyncIIdentityStoreEx_Impl, - { - unsafe extern "system" fn Begin_CreateConnectedIdentity(this: *mut core::ffi::c_void, localname: windows_core::PCWSTR, connectedname: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStoreEx_Impl, - { + pub const fn new() -> AsyncIIdentityStoreEx_Vtbl { + unsafe extern "system" fn Begin_CreateConnectedIdentity(this: *mut core::ffi::c_void, localname: windows_core::PCWSTR, connectedname: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStoreEx_Impl::Begin_CreateConnectedIdentity(this, core::mem::transmute(&localname), core::mem::transmute(&connectedname), core::mem::transmute_copy(&providerguid)).into() } - unsafe extern "system" fn Finish_CreateConnectedIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStoreEx_Impl, - { + unsafe extern "system" fn Finish_CreateConnectedIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStoreEx_Impl::Finish_CreateConnectedIdentity(this).into() } - unsafe extern "system" fn Begin_DeleteConnectedIdentity(this: *mut core::ffi::c_void, connectedname: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStoreEx_Impl, - { + unsafe extern "system" fn Begin_DeleteConnectedIdentity(this: *mut core::ffi::c_void, connectedname: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStoreEx_Impl::Begin_DeleteConnectedIdentity(this, core::mem::transmute(&connectedname), core::mem::transmute_copy(&providerguid)).into() } - unsafe extern "system" fn Finish_DeleteConnectedIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIIdentityStoreEx_Impl, - { + unsafe extern "system" fn Finish_DeleteConnectedIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIIdentityStoreEx_Impl::Finish_DeleteConnectedIdentity(this).into() } @@ -672,7 +489,7 @@ impl AsyncIIdentityStoreEx_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IAssociatedIdentityProvider_Impl: Sized { +pub trait IAssociatedIdentityProvider_Impl: Sized + windows_core::IUnknownImpl { fn AssociateIdentity(&self, hwndparent: super::super::super::super::Foundation::HWND) -> windows_core::Result; fn DisassociateIdentity(&self, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ChangeCredential(&self, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -681,14 +498,8 @@ pub trait IAssociatedIdentityProvider_Impl: Sized { impl windows_core::RuntimeName for IAssociatedIdentityProvider {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IAssociatedIdentityProvider_Vtbl { - pub const fn new() -> IAssociatedIdentityProvider_Vtbl - where - Identity: IAssociatedIdentityProvider_Impl, - { - unsafe extern "system" fn AssociateIdentity(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssociatedIdentityProvider_Impl, - { + pub const fn new() -> IAssociatedIdentityProvider_Vtbl { + unsafe extern "system" fn AssociateIdentity(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAssociatedIdentityProvider_Impl::AssociateIdentity(this, core::mem::transmute_copy(&hwndparent)) { Ok(ok__) => { @@ -698,17 +509,11 @@ impl IAssociatedIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisassociateIdentity(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAssociatedIdentityProvider_Impl, - { + unsafe extern "system" fn DisassociateIdentity(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssociatedIdentityProvider_Impl::DisassociateIdentity(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&lpszuniqueid)).into() } - unsafe extern "system" fn ChangeCredential(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAssociatedIdentityProvider_Impl, - { + unsafe extern "system" fn ChangeCredential(this: *mut core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssociatedIdentityProvider_Impl::ChangeCredential(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&lpszuniqueid)).into() } @@ -724,7 +529,7 @@ impl IAssociatedIdentityProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IConnectedIdentityProvider_Impl: Sized { +pub trait IConnectedIdentityProvider_Impl: Sized + windows_core::IUnknownImpl { fn ConnectIdentity(&self, authbuffer: *const u8, authbuffersize: u32) -> windows_core::Result<()>; fn DisconnectIdentity(&self) -> windows_core::Result<()>; fn IsConnected(&self) -> windows_core::Result; @@ -735,28 +540,16 @@ pub trait IConnectedIdentityProvider_Impl: Sized { impl windows_core::RuntimeName for IConnectedIdentityProvider {} #[cfg(feature = "Win32_System_Com")] impl IConnectedIdentityProvider_Vtbl { - pub const fn new() -> IConnectedIdentityProvider_Vtbl - where - Identity: IConnectedIdentityProvider_Impl, - { - unsafe extern "system" fn ConnectIdentity(this: *mut core::ffi::c_void, authbuffer: *const u8, authbuffersize: u32) -> windows_core::HRESULT - where - Identity: IConnectedIdentityProvider_Impl, - { + pub const fn new() -> IConnectedIdentityProvider_Vtbl { + unsafe extern "system" fn ConnectIdentity(this: *mut core::ffi::c_void, authbuffer: *const u8, authbuffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConnectedIdentityProvider_Impl::ConnectIdentity(this, core::mem::transmute_copy(&authbuffer), core::mem::transmute_copy(&authbuffersize)).into() } - unsafe extern "system" fn DisconnectIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn DisconnectIdentity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConnectedIdentityProvider_Impl::DisconnectIdentity(this).into() } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, connected: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, connected: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnectedIdentityProvider_Impl::IsConnected(this) { Ok(ok__) => { @@ -766,17 +559,11 @@ impl IConnectedIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUrl(this: *mut core::ffi::c_void, identifier: IDENTITY_URL, context: *mut core::ffi::c_void, postdata: *mut core::mem::MaybeUninit, url: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn GetUrl(this: *mut core::ffi::c_void, identifier: IDENTITY_URL, context: *mut core::ffi::c_void, postdata: *mut core::mem::MaybeUninit, url: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConnectedIdentityProvider_Impl::GetUrl(this, core::mem::transmute_copy(&identifier), windows_core::from_raw_borrowed(&context), core::mem::transmute_copy(&postdata), core::mem::transmute_copy(&url)).into() } - unsafe extern "system" fn GetAccountState(this: *mut core::ffi::c_void, pstate: *mut ACCOUNT_STATE) -> windows_core::HRESULT - where - Identity: IConnectedIdentityProvider_Impl, - { + unsafe extern "system" fn GetAccountState(this: *mut core::ffi::c_void, pstate: *mut ACCOUNT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnectedIdentityProvider_Impl::GetAccountState(this) { Ok(ok__) => { @@ -799,19 +586,13 @@ impl IConnectedIdentityProvider_Vtbl { iid == &::IID } } -pub trait IIdentityAdvise_Impl: Sized { +pub trait IIdentityAdvise_Impl: Sized + windows_core::IUnknownImpl { fn IdentityUpdated(&self, dwidentityupdateevents: &IdentityUpdateEvent, lpszuniqueid: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IIdentityAdvise {} impl IIdentityAdvise_Vtbl { - pub const fn new() -> IIdentityAdvise_Vtbl - where - Identity: IIdentityAdvise_Impl, - { - unsafe extern "system" fn IdentityUpdated(this: *mut core::ffi::c_void, dwidentityupdateevents: u32, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IIdentityAdvise_Impl, - { + pub const fn new() -> IIdentityAdvise_Vtbl { + unsafe extern "system" fn IdentityUpdated(this: *mut core::ffi::c_void, dwidentityupdateevents: u32, lpszuniqueid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityAdvise_Impl::IdentityUpdated(this, core::mem::transmute(&dwidentityupdateevents), core::mem::transmute(&lpszuniqueid)).into() } @@ -822,7 +603,7 @@ impl IIdentityAdvise_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IIdentityAuthentication_Impl: Sized { +pub trait IIdentityAuthentication_Impl: Sized + windows_core::IUnknownImpl { fn SetIdentityCredential(&self, credbuffer: *const u8, credbufferlength: u32) -> windows_core::Result<()>; fn ValidateIdentityCredential(&self, credbuffer: *const u8, credbufferlength: u32, ppidentityproperties: *mut Option) -> windows_core::Result<()>; } @@ -830,21 +611,12 @@ pub trait IIdentityAuthentication_Impl: Sized { impl windows_core::RuntimeName for IIdentityAuthentication {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IIdentityAuthentication_Vtbl { - pub const fn new() -> IIdentityAuthentication_Vtbl - where - Identity: IIdentityAuthentication_Impl, - { - unsafe extern "system" fn SetIdentityCredential(this: *mut core::ffi::c_void, credbuffer: *const u8, credbufferlength: u32) -> windows_core::HRESULT - where - Identity: IIdentityAuthentication_Impl, - { + pub const fn new() -> IIdentityAuthentication_Vtbl { + unsafe extern "system" fn SetIdentityCredential(this: *mut core::ffi::c_void, credbuffer: *const u8, credbufferlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityAuthentication_Impl::SetIdentityCredential(this, core::mem::transmute_copy(&credbuffer), core::mem::transmute_copy(&credbufferlength)).into() } - unsafe extern "system" fn ValidateIdentityCredential(this: *mut core::ffi::c_void, credbuffer: *const u8, credbufferlength: u32, ppidentityproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIdentityAuthentication_Impl, - { + unsafe extern "system" fn ValidateIdentityCredential(this: *mut core::ffi::c_void, credbuffer: *const u8, credbufferlength: u32, ppidentityproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityAuthentication_Impl::ValidateIdentityCredential(this, core::mem::transmute_copy(&credbuffer), core::mem::transmute_copy(&credbufferlength), core::mem::transmute_copy(&ppidentityproperties)).into() } @@ -859,7 +631,7 @@ impl IIdentityAuthentication_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IIdentityProvider_Impl: Sized { +pub trait IIdentityProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetIdentityEnum(&self, eidentitytype: IDENTITY_TYPE, pfilterkey: *const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfilterpropvarvalue: *const windows_core::PROPVARIANT) -> windows_core::Result; fn Create(&self, lpszusername: &windows_core::PCWSTR, pppropertystore: *mut Option, pkeywordstoadd: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; fn Import(&self, ppropertystore: Option<&super::super::super::super::UI::Shell::PropertiesSystem::IPropertyStore>) -> windows_core::Result<()>; @@ -873,14 +645,8 @@ pub trait IIdentityProvider_Impl: Sized { impl windows_core::RuntimeName for IIdentityProvider {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IIdentityProvider_Vtbl { - pub const fn new() -> IIdentityProvider_Vtbl - where - Identity: IIdentityProvider_Impl, - { - unsafe extern "system" fn GetIdentityEnum(this: *mut core::ffi::c_void, eidentitytype: IDENTITY_TYPE, pfilterkey: *const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfilterpropvarvalue: *const core::mem::MaybeUninit, ppidentityenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIdentityProvider_Impl, - { + pub const fn new() -> IIdentityProvider_Vtbl { + unsafe extern "system" fn GetIdentityEnum(this: *mut core::ffi::c_void, eidentitytype: IDENTITY_TYPE, pfilterkey: *const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfilterpropvarvalue: *const core::mem::MaybeUninit, ppidentityenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIdentityProvider_Impl::GetIdentityEnum(this, core::mem::transmute_copy(&eidentitytype), core::mem::transmute_copy(&pfilterkey), core::mem::transmute_copy(&pfilterpropvarvalue)) { Ok(ok__) => { @@ -890,31 +656,19 @@ impl IIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, lpszusername: windows_core::PCWSTR, pppropertystore: *mut *mut core::ffi::c_void, pkeywordstoadd: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIdentityProvider_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, lpszusername: windows_core::PCWSTR, pppropertystore: *mut *mut core::ffi::c_void, pkeywordstoadd: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityProvider_Impl::Create(this, core::mem::transmute(&lpszusername), core::mem::transmute_copy(&pppropertystore), core::mem::transmute_copy(&pkeywordstoadd)).into() } - unsafe extern "system" fn Import(this: *mut core::ffi::c_void, ppropertystore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIdentityProvider_Impl, - { + unsafe extern "system" fn Import(this: *mut core::ffi::c_void, ppropertystore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityProvider_Impl::Import(this, windows_core::from_raw_borrowed(&ppropertystore)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, pkeywordstodelete: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIdentityProvider_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, pkeywordstodelete: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityProvider_Impl::Delete(this, core::mem::transmute(&lpszuniqueid), core::mem::transmute_copy(&pkeywordstodelete)).into() } - unsafe extern "system" fn FindByUniqueID(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIdentityProvider_Impl, - { + unsafe extern "system" fn FindByUniqueID(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIdentityProvider_Impl::FindByUniqueID(this, core::mem::transmute(&lpszuniqueid)) { Ok(ok__) => { @@ -924,10 +678,7 @@ impl IIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderPropertyStore(this: *mut core::ffi::c_void, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIdentityProvider_Impl, - { + unsafe extern "system" fn GetProviderPropertyStore(this: *mut core::ffi::c_void, pppropertystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIdentityProvider_Impl::GetProviderPropertyStore(this) { Ok(ok__) => { @@ -937,10 +688,7 @@ impl IIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pidentityadvise: *mut core::ffi::c_void, dwidentityupdateevents: u32, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IIdentityProvider_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pidentityadvise: *mut core::ffi::c_void, dwidentityupdateevents: u32, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIdentityProvider_Impl::Advise(this, windows_core::from_raw_borrowed(&pidentityadvise), core::mem::transmute(&dwidentityupdateevents)) { Ok(ok__) => { @@ -950,10 +698,7 @@ impl IIdentityProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnAdvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IIdentityProvider_Impl, - { + unsafe extern "system" fn UnAdvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityProvider_Impl::UnAdvise(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -974,7 +719,7 @@ impl IIdentityProvider_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IIdentityStore_Impl: Sized { +pub trait IIdentityStore_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, dwprovider: u32, pprovguid: *mut windows_core::GUID, ppidentityprovider: *mut Option) -> windows_core::Result<()>; fn AddToCache(&self, lpszuniqueid: &windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::Result<()>; @@ -986,14 +731,8 @@ pub trait IIdentityStore_Impl: Sized { impl windows_core::RuntimeName for IIdentityStore {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IIdentityStore_Vtbl { - pub const fn new() -> IIdentityStore_Vtbl - where - Identity: IIdentityStore_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwproviders: *mut u32) -> windows_core::HRESULT - where - Identity: IIdentityStore_Impl, - { + pub const fn new() -> IIdentityStore_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwproviders: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIdentityStore_Impl::GetCount(this) { Ok(ok__) => { @@ -1003,31 +742,19 @@ impl IIdentityStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwprovider: u32, pprovguid: *mut windows_core::GUID, ppidentityprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIdentityStore_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwprovider: u32, pprovguid: *mut windows_core::GUID, ppidentityprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityStore_Impl::GetAt(this, core::mem::transmute_copy(&dwprovider), core::mem::transmute_copy(&pprovguid), core::mem::transmute_copy(&ppidentityprovider)).into() } - unsafe extern "system" fn AddToCache(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IIdentityStore_Impl, - { + unsafe extern "system" fn AddToCache(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityStore_Impl::AddToCache(this, core::mem::transmute(&lpszuniqueid), core::mem::transmute_copy(&providerguid)).into() } - unsafe extern "system" fn ConvertToSid(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, providerguid: *const windows_core::GUID, cbsid: u16, psid: *mut u8, pcbrequiredsid: *mut u16) -> windows_core::HRESULT - where - Identity: IIdentityStore_Impl, - { + unsafe extern "system" fn ConvertToSid(this: *mut core::ffi::c_void, lpszuniqueid: windows_core::PCWSTR, providerguid: *const windows_core::GUID, cbsid: u16, psid: *mut u8, pcbrequiredsid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityStore_Impl::ConvertToSid(this, core::mem::transmute(&lpszuniqueid), core::mem::transmute_copy(&providerguid), core::mem::transmute_copy(&cbsid), core::mem::transmute_copy(&psid), core::mem::transmute_copy(&pcbrequiredsid)).into() } - unsafe extern "system" fn EnumerateIdentities(this: *mut core::ffi::c_void, eidentitytype: IDENTITY_TYPE, pfilterkey: *const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfilterpropvarvalue: *const core::mem::MaybeUninit, ppidentityenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIdentityStore_Impl, - { + unsafe extern "system" fn EnumerateIdentities(this: *mut core::ffi::c_void, eidentitytype: IDENTITY_TYPE, pfilterkey: *const super::super::super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfilterpropvarvalue: *const core::mem::MaybeUninit, ppidentityenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIdentityStore_Impl::EnumerateIdentities(this, core::mem::transmute_copy(&eidentitytype), core::mem::transmute_copy(&pfilterkey), core::mem::transmute_copy(&pfilterpropvarvalue)) { Ok(ok__) => { @@ -1037,10 +764,7 @@ impl IIdentityStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIdentityStore_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityStore_Impl::Reset(this).into() } @@ -1058,27 +782,18 @@ impl IIdentityStore_Vtbl { iid == &::IID } } -pub trait IIdentityStoreEx_Impl: Sized { +pub trait IIdentityStoreEx_Impl: Sized + windows_core::IUnknownImpl { fn CreateConnectedIdentity(&self, localname: &windows_core::PCWSTR, connectedname: &windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::Result<()>; fn DeleteConnectedIdentity(&self, connectedname: &windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IIdentityStoreEx {} impl IIdentityStoreEx_Vtbl { - pub const fn new() -> IIdentityStoreEx_Vtbl - where - Identity: IIdentityStoreEx_Impl, - { - unsafe extern "system" fn CreateConnectedIdentity(this: *mut core::ffi::c_void, localname: windows_core::PCWSTR, connectedname: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IIdentityStoreEx_Impl, - { + pub const fn new() -> IIdentityStoreEx_Vtbl { + unsafe extern "system" fn CreateConnectedIdentity(this: *mut core::ffi::c_void, localname: windows_core::PCWSTR, connectedname: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityStoreEx_Impl::CreateConnectedIdentity(this, core::mem::transmute(&localname), core::mem::transmute(&connectedname), core::mem::transmute_copy(&providerguid)).into() } - unsafe extern "system" fn DeleteConnectedIdentity(this: *mut core::ffi::c_void, connectedname: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IIdentityStoreEx_Impl, - { + unsafe extern "system" fn DeleteConnectedIdentity(this: *mut core::ffi::c_void, connectedname: windows_core::PCWSTR, providerguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdentityStoreEx_Impl::DeleteConnectedIdentity(this, core::mem::transmute(&connectedname), core::mem::transmute_copy(&providerguid)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/impl.rs index 2e7cf3bfeb..400440ce01 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/impl.rs @@ -1,16 +1,10 @@ -pub trait ICcgDomainAuthCredentials_Impl: Sized { +pub trait ICcgDomainAuthCredentials_Impl: Sized + windows_core::IUnknownImpl { fn GetPasswordCredentials(&self, plugininput: &windows_core::PCWSTR, domainname: *mut windows_core::PWSTR, username: *mut windows_core::PWSTR, password: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICcgDomainAuthCredentials {} impl ICcgDomainAuthCredentials_Vtbl { - pub const fn new() -> ICcgDomainAuthCredentials_Vtbl - where - Identity: ICcgDomainAuthCredentials_Impl, - { - unsafe extern "system" fn GetPasswordCredentials(this: *mut core::ffi::c_void, plugininput: windows_core::PCWSTR, domainname: *mut windows_core::PWSTR, username: *mut windows_core::PWSTR, password: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICcgDomainAuthCredentials_Impl, - { + pub const fn new() -> ICcgDomainAuthCredentials_Vtbl { + unsafe extern "system" fn GetPasswordCredentials(this: *mut core::ffi::c_void, plugininput: windows_core::PCWSTR, domainname: *mut windows_core::PWSTR, username: *mut windows_core::PWSTR, password: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICcgDomainAuthCredentials_Impl::GetPasswordCredentials(this, core::mem::transmute(&plugininput), core::mem::transmute_copy(&domainname), core::mem::transmute_copy(&username), core::mem::transmute_copy(&password)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/impl.rs index fe836484cf..116da87df4 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/impl.rs @@ -1,16 +1,10 @@ -pub trait IEffectivePermission_Impl: Sized { +pub trait IEffectivePermission_Impl: Sized + windows_core::IUnknownImpl { fn GetEffectivePermission(&self, pguidobjecttype: *const windows_core::GUID, pusersid: super::super::PSID, pszservername: &windows_core::PCWSTR, psd: super::super::PSECURITY_DESCRIPTOR, ppobjecttypelist: *mut *mut super::super::OBJECT_TYPE_LIST, pcobjecttypelistlength: *mut u32, ppgrantedaccesslist: *mut *mut u32, pcgrantedaccesslistlength: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IEffectivePermission {} impl IEffectivePermission_Vtbl { - pub const fn new() -> IEffectivePermission_Vtbl - where - Identity: IEffectivePermission_Impl, - { - unsafe extern "system" fn GetEffectivePermission(this: *mut core::ffi::c_void, pguidobjecttype: *const windows_core::GUID, pusersid: super::super::PSID, pszservername: windows_core::PCWSTR, psd: super::super::PSECURITY_DESCRIPTOR, ppobjecttypelist: *mut *mut super::super::OBJECT_TYPE_LIST, pcobjecttypelistlength: *mut u32, ppgrantedaccesslist: *mut *mut u32, pcgrantedaccesslistlength: *mut u32) -> windows_core::HRESULT - where - Identity: IEffectivePermission_Impl, - { + pub const fn new() -> IEffectivePermission_Vtbl { + unsafe extern "system" fn GetEffectivePermission(this: *mut core::ffi::c_void, pguidobjecttype: *const windows_core::GUID, pusersid: super::super::PSID, pszservername: windows_core::PCWSTR, psd: super::super::PSECURITY_DESCRIPTOR, ppobjecttypelist: *mut *mut super::super::OBJECT_TYPE_LIST, pcobjecttypelistlength: *mut u32, ppgrantedaccesslist: *mut *mut u32, pcgrantedaccesslistlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEffectivePermission_Impl::GetEffectivePermission(this, core::mem::transmute_copy(&pguidobjecttype), core::mem::transmute_copy(&pusersid), core::mem::transmute(&pszservername), core::mem::transmute_copy(&psd), core::mem::transmute_copy(&ppobjecttypelist), core::mem::transmute_copy(&pcobjecttypelistlength), core::mem::transmute_copy(&ppgrantedaccesslist), core::mem::transmute_copy(&pcgrantedaccesslistlength)).into() } @@ -20,7 +14,7 @@ impl IEffectivePermission_Vtbl { iid == &::IID } } -pub trait IEffectivePermission2_Impl: Sized { +pub trait IEffectivePermission2_Impl: Sized + windows_core::IUnknownImpl { fn ComputeEffectivePermissionWithSecondarySecurity( &self, psid: super::super::PSID, @@ -41,11 +35,8 @@ pub trait IEffectivePermission2_Impl: Sized { } impl windows_core::RuntimeName for IEffectivePermission2 {} impl IEffectivePermission2_Vtbl { - pub const fn new() -> IEffectivePermission2_Vtbl - where - Identity: IEffectivePermission2_Impl, - { - unsafe extern "system" fn ComputeEffectivePermissionWithSecondarySecurity( + pub const fn new() -> IEffectivePermission2_Vtbl { + unsafe extern "system" fn ComputeEffectivePermissionWithSecondarySecurity( this: *mut core::ffi::c_void, psid: super::super::PSID, pdevicesid: super::super::PSID, @@ -61,10 +52,7 @@ impl IEffectivePermission2_Vtbl { pauthzdeviceclaims: *const super::AUTHZ_SECURITY_ATTRIBUTES_INFORMATION, pauthzdeviceclaimsoperations: *const super::AUTHZ_SECURITY_ATTRIBUTE_OPERATION, peffpermresultlists: *mut EFFPERM_RESULT_LIST, - ) -> windows_core::HRESULT - where - Identity: IEffectivePermission2_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEffectivePermission2_Impl::ComputeEffectivePermissionWithSecondarySecurity( this, @@ -95,7 +83,7 @@ impl IEffectivePermission2_Vtbl { } } #[cfg(feature = "Win32_UI_Controls")] -pub trait ISecurityInformation_Impl: Sized { +pub trait ISecurityInformation_Impl: Sized + windows_core::IUnknownImpl { fn GetObjectInformation(&self, pobjectinfo: *mut SI_OBJECT_INFO) -> windows_core::Result<()>; fn GetSecurity(&self, requestedinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR, fdefault: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; fn SetSecurity(&self, securityinformation: super::super::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::PSECURITY_DESCRIPTOR) -> windows_core::Result<()>; @@ -108,56 +96,32 @@ pub trait ISecurityInformation_Impl: Sized { impl windows_core::RuntimeName for ISecurityInformation {} #[cfg(feature = "Win32_UI_Controls")] impl ISecurityInformation_Vtbl { - pub const fn new() -> ISecurityInformation_Vtbl - where - Identity: ISecurityInformation_Impl, - { - unsafe extern "system" fn GetObjectInformation(this: *mut core::ffi::c_void, pobjectinfo: *mut SI_OBJECT_INFO) -> windows_core::HRESULT - where - Identity: ISecurityInformation_Impl, - { + pub const fn new() -> ISecurityInformation_Vtbl { + unsafe extern "system" fn GetObjectInformation(this: *mut core::ffi::c_void, pobjectinfo: *mut SI_OBJECT_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation_Impl::GetObjectInformation(this, core::mem::transmute_copy(&pobjectinfo)).into() } - unsafe extern "system" fn GetSecurity(this: *mut core::ffi::c_void, requestedinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR, fdefault: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISecurityInformation_Impl, - { + unsafe extern "system" fn GetSecurity(this: *mut core::ffi::c_void, requestedinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR, fdefault: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation_Impl::GetSecurity(this, core::mem::transmute_copy(&requestedinformation), core::mem::transmute_copy(&ppsecuritydescriptor), core::mem::transmute_copy(&fdefault)).into() } - unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, securityinformation: super::super::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::PSECURITY_DESCRIPTOR) -> windows_core::HRESULT - where - Identity: ISecurityInformation_Impl, - { + unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, securityinformation: super::super::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::PSECURITY_DESCRIPTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation_Impl::SetSecurity(this, core::mem::transmute_copy(&securityinformation), core::mem::transmute_copy(&psecuritydescriptor)).into() } - unsafe extern "system" fn GetAccessRights(this: *mut core::ffi::c_void, pguidobjecttype: *const windows_core::GUID, dwflags: SECURITY_INFO_PAGE_FLAGS, ppaccess: *mut *mut SI_ACCESS, pcaccesses: *mut u32, pidefaultaccess: *mut u32) -> windows_core::HRESULT - where - Identity: ISecurityInformation_Impl, - { + unsafe extern "system" fn GetAccessRights(this: *mut core::ffi::c_void, pguidobjecttype: *const windows_core::GUID, dwflags: SECURITY_INFO_PAGE_FLAGS, ppaccess: *mut *mut SI_ACCESS, pcaccesses: *mut u32, pidefaultaccess: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation_Impl::GetAccessRights(this, core::mem::transmute_copy(&pguidobjecttype), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ppaccess), core::mem::transmute_copy(&pcaccesses), core::mem::transmute_copy(&pidefaultaccess)).into() } - unsafe extern "system" fn MapGeneric(this: *mut core::ffi::c_void, pguidobjecttype: *const windows_core::GUID, paceflags: *mut u8, pmask: *mut u32) -> windows_core::HRESULT - where - Identity: ISecurityInformation_Impl, - { + unsafe extern "system" fn MapGeneric(this: *mut core::ffi::c_void, pguidobjecttype: *const windows_core::GUID, paceflags: *mut u8, pmask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation_Impl::MapGeneric(this, core::mem::transmute_copy(&pguidobjecttype), core::mem::transmute_copy(&paceflags), core::mem::transmute_copy(&pmask)).into() } - unsafe extern "system" fn GetInheritTypes(this: *mut core::ffi::c_void, ppinherittypes: *mut *mut SI_INHERIT_TYPE, pcinherittypes: *mut u32) -> windows_core::HRESULT - where - Identity: ISecurityInformation_Impl, - { + unsafe extern "system" fn GetInheritTypes(this: *mut core::ffi::c_void, ppinherittypes: *mut *mut SI_INHERIT_TYPE, pcinherittypes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation_Impl::GetInheritTypes(this, core::mem::transmute_copy(&ppinherittypes), core::mem::transmute_copy(&pcinherittypes)).into() } - unsafe extern "system" fn PropertySheetPageCallback(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, umsg: super::super::super::UI::Controls::PSPCB_MESSAGE, upage: SI_PAGE_TYPE) -> windows_core::HRESULT - where - Identity: ISecurityInformation_Impl, - { + unsafe extern "system" fn PropertySheetPageCallback(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, umsg: super::super::super::UI::Controls::PSPCB_MESSAGE, upage: SI_PAGE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation_Impl::PropertySheetPageCallback(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&upage)).into() } @@ -177,7 +141,7 @@ impl ISecurityInformation_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISecurityInformation2_Impl: Sized { +pub trait ISecurityInformation2_Impl: Sized + windows_core::IUnknownImpl { fn IsDaclCanonical(&self, pdacl: *const super::super::ACL) -> super::super::super::Foundation::BOOL; fn LookupSids(&self, csids: u32, rgpsids: *const super::super::PSID) -> windows_core::Result; } @@ -185,21 +149,12 @@ pub trait ISecurityInformation2_Impl: Sized { impl windows_core::RuntimeName for ISecurityInformation2 {} #[cfg(feature = "Win32_System_Com")] impl ISecurityInformation2_Vtbl { - pub const fn new() -> ISecurityInformation2_Vtbl - where - Identity: ISecurityInformation2_Impl, - { - unsafe extern "system" fn IsDaclCanonical(this: *mut core::ffi::c_void, pdacl: *const super::super::ACL) -> super::super::super::Foundation::BOOL - where - Identity: ISecurityInformation2_Impl, - { + pub const fn new() -> ISecurityInformation2_Vtbl { + unsafe extern "system" fn IsDaclCanonical(this: *mut core::ffi::c_void, pdacl: *const super::super::ACL) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation2_Impl::IsDaclCanonical(this, core::mem::transmute_copy(&pdacl)) } - unsafe extern "system" fn LookupSids(this: *mut core::ffi::c_void, csids: u32, rgpsids: *const super::super::PSID, ppdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISecurityInformation2_Impl, - { + unsafe extern "system" fn LookupSids(this: *mut core::ffi::c_void, csids: u32, rgpsids: *const super::super::PSID, ppdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityInformation2_Impl::LookupSids(this, core::mem::transmute_copy(&csids), core::mem::transmute_copy(&rgpsids)) { Ok(ok__) => { @@ -219,20 +174,14 @@ impl ISecurityInformation2_Vtbl { iid == &::IID } } -pub trait ISecurityInformation3_Impl: Sized { +pub trait ISecurityInformation3_Impl: Sized + windows_core::IUnknownImpl { fn GetFullResourceName(&self) -> windows_core::Result; fn OpenElevatedEditor(&self, hwnd: super::super::super::Foundation::HWND, upage: SI_PAGE_TYPE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISecurityInformation3 {} impl ISecurityInformation3_Vtbl { - pub const fn new() -> ISecurityInformation3_Vtbl - where - Identity: ISecurityInformation3_Impl, - { - unsafe extern "system" fn GetFullResourceName(this: *mut core::ffi::c_void, ppszresourcename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISecurityInformation3_Impl, - { + pub const fn new() -> ISecurityInformation3_Vtbl { + unsafe extern "system" fn GetFullResourceName(this: *mut core::ffi::c_void, ppszresourcename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityInformation3_Impl::GetFullResourceName(this) { Ok(ok__) => { @@ -242,10 +191,7 @@ impl ISecurityInformation3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenElevatedEditor(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, upage: SI_PAGE_TYPE) -> windows_core::HRESULT - where - Identity: ISecurityInformation3_Impl, - { + unsafe extern "system" fn OpenElevatedEditor(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, upage: SI_PAGE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation3_Impl::OpenElevatedEditor(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&upage)).into() } @@ -259,19 +205,13 @@ impl ISecurityInformation3_Vtbl { iid == &::IID } } -pub trait ISecurityInformation4_Impl: Sized { +pub trait ISecurityInformation4_Impl: Sized + windows_core::IUnknownImpl { fn GetSecondarySecurity(&self, psecurityobjects: *mut *mut SECURITY_OBJECT, psecurityobjectcount: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISecurityInformation4 {} impl ISecurityInformation4_Vtbl { - pub const fn new() -> ISecurityInformation4_Vtbl - where - Identity: ISecurityInformation4_Impl, - { - unsafe extern "system" fn GetSecondarySecurity(this: *mut core::ffi::c_void, psecurityobjects: *mut *mut SECURITY_OBJECT, psecurityobjectcount: *mut u32) -> windows_core::HRESULT - where - Identity: ISecurityInformation4_Impl, - { + pub const fn new() -> ISecurityInformation4_Vtbl { + unsafe extern "system" fn GetSecondarySecurity(this: *mut core::ffi::c_void, psecurityobjects: *mut *mut SECURITY_OBJECT, psecurityobjectcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation4_Impl::GetSecondarySecurity(this, core::mem::transmute_copy(&psecurityobjects), core::mem::transmute_copy(&psecurityobjectcount)).into() } @@ -281,19 +221,13 @@ impl ISecurityInformation4_Vtbl { iid == &::IID } } -pub trait ISecurityObjectTypeInfo_Impl: Sized { +pub trait ISecurityObjectTypeInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetInheritSource(&self, si: u32, pacl: *mut super::super::ACL, ppinheritarray: *mut *mut super::INHERITED_FROMA) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISecurityObjectTypeInfo {} impl ISecurityObjectTypeInfo_Vtbl { - pub const fn new() -> ISecurityObjectTypeInfo_Vtbl - where - Identity: ISecurityObjectTypeInfo_Impl, - { - unsafe extern "system" fn GetInheritSource(this: *mut core::ffi::c_void, si: u32, pacl: *mut super::super::ACL, ppinheritarray: *mut *mut super::INHERITED_FROMA) -> windows_core::HRESULT - where - Identity: ISecurityObjectTypeInfo_Impl, - { + pub const fn new() -> ISecurityObjectTypeInfo_Vtbl { + unsafe extern "system" fn GetInheritSource(this: *mut core::ffi::c_void, si: u32, pacl: *mut super::super::ACL, ppinheritarray: *mut *mut super::INHERITED_FROMA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityObjectTypeInfo_Impl::GetInheritSource(this, core::mem::transmute_copy(&si), core::mem::transmute_copy(&pacl), core::mem::transmute_copy(&ppinheritarray)).into() } 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 4d0cd50834..756303c99a 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/impl.rs @@ -66,14 +66,8 @@ pub trait IAzApplication_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IAzApplication {} #[cfg(feature = "Win32_System_Com")] impl IAzApplication_Vtbl { - pub const fn new() -> IAzApplication_Vtbl - where - Identity: IAzApplication_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + pub const fn new() -> IAzApplication_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::Name(this) { Ok(ok__) => { @@ -83,17 +77,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::SetName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::Description(this) { Ok(ok__) => { @@ -103,17 +91,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::ApplicationData(this) { Ok(ok__) => { @@ -123,17 +105,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::SetApplicationData(this, core::mem::transmute(&bstrapplicationdata)).into() } - unsafe extern "system" fn AuthzInterfaceClsid(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn AuthzInterfaceClsid(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::AuthzInterfaceClsid(this) { Ok(ok__) => { @@ -143,17 +119,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthzInterfaceClsid(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn SetAuthzInterfaceClsid(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::SetAuthzInterfaceClsid(this, core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::Version(this) { Ok(ok__) => { @@ -163,17 +133,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::SetVersion(this, core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn GenerateAudits(this: *mut core::ffi::c_void, pbprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn GenerateAudits(this: *mut core::ffi::c_void, pbprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::GenerateAudits(this) { Ok(ok__) => { @@ -183,17 +147,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGenerateAudits(this: *mut core::ffi::c_void, bprop: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn SetGenerateAudits(this: *mut core::ffi::c_void, bprop: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::SetGenerateAudits(this, core::mem::transmute_copy(&bprop)).into() } - unsafe extern "system" fn ApplyStoreSacl(this: *mut core::ffi::c_void, pbprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn ApplyStoreSacl(this: *mut core::ffi::c_void, pbprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::ApplyStoreSacl(this) { Ok(ok__) => { @@ -203,17 +161,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetApplyStoreSacl(this: *mut core::ffi::c_void, bprop: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn SetApplyStoreSacl(this: *mut core::ffi::c_void, bprop: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::SetApplyStoreSacl(this, core::mem::transmute_copy(&bprop)).into() } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::Writable(this) { Ok(ok__) => { @@ -223,10 +175,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::GetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -236,17 +185,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::SetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn PolicyAdministrators(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn PolicyAdministrators(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::PolicyAdministrators(this) { Ok(ok__) => { @@ -256,10 +199,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PolicyReaders(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn PolicyReaders(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::PolicyReaders(this) { Ok(ok__) => { @@ -269,38 +209,23 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn AddPolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::AddPolicyAdministrator(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeletePolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeletePolicyAdministrator(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn AddPolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::AddPolicyReader(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeletePolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeletePolicyReader(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Scopes(this: *mut core::ffi::c_void, ppscopecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn Scopes(this: *mut core::ffi::c_void, ppscopecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::Scopes(this) { Ok(ok__) => { @@ -310,10 +235,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenScope(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppscope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn OpenScope(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppscope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::OpenScope(this, core::mem::transmute(&bstrscopename), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -323,10 +245,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateScope(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppscope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn CreateScope(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppscope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::CreateScope(this, core::mem::transmute(&bstrscopename), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -336,17 +255,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteScope(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeleteScope(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeleteScope(this, core::mem::transmute(&bstrscopename), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Operations(this: *mut core::ffi::c_void, ppoperationcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn Operations(this: *mut core::ffi::c_void, ppoperationcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::Operations(this) { Ok(ok__) => { @@ -356,10 +269,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenOperation(this: *mut core::ffi::c_void, bstroperationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn OpenOperation(this: *mut core::ffi::c_void, bstroperationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::OpenOperation(this, core::mem::transmute(&bstroperationname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -369,10 +279,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateOperation(this: *mut core::ffi::c_void, bstroperationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn CreateOperation(this: *mut core::ffi::c_void, bstroperationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::CreateOperation(this, core::mem::transmute(&bstroperationname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -382,17 +289,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteOperation(this: *mut core::ffi::c_void, bstroperationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeleteOperation(this: *mut core::ffi::c_void, bstroperationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeleteOperation(this, core::mem::transmute(&bstroperationname), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Tasks(this: *mut core::ffi::c_void, pptaskcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn Tasks(this: *mut core::ffi::c_void, pptaskcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::Tasks(this) { Ok(ok__) => { @@ -402,10 +303,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn OpenTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::OpenTask(this, core::mem::transmute(&bstrtaskname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -415,10 +313,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn CreateTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::CreateTask(this, core::mem::transmute(&bstrtaskname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -428,17 +323,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeleteTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeleteTask(this, core::mem::transmute(&bstrtaskname), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn ApplicationGroups(this: *mut core::ffi::c_void, ppgroupcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn ApplicationGroups(this: *mut core::ffi::c_void, ppgroupcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::ApplicationGroups(this) { Ok(ok__) => { @@ -448,10 +337,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn OpenApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::OpenApplicationGroup(this, core::mem::transmute(&bstrgroupname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -461,10 +347,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn CreateApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::CreateApplicationGroup(this, core::mem::transmute(&bstrgroupname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -474,17 +357,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeleteApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeleteApplicationGroup(this, core::mem::transmute(&bstrgroupname), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Roles(this: *mut core::ffi::c_void, pprolecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn Roles(this: *mut core::ffi::c_void, pprolecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::Roles(this) { Ok(ok__) => { @@ -494,10 +371,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pprole: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn OpenRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pprole: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::OpenRole(this, core::mem::transmute(&bstrrolename), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -507,10 +381,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pprole: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn CreateRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pprole: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::CreateRole(this, core::mem::transmute(&bstrrolename), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -520,17 +391,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeleteRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeleteRole(this, core::mem::transmute(&bstrrolename), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn InitializeClientContextFromToken(this: *mut core::ffi::c_void, ulltokenhandle: u64, varreserved: core::mem::MaybeUninit, ppclientcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn InitializeClientContextFromToken(this: *mut core::ffi::c_void, ulltokenhandle: u64, varreserved: core::mem::MaybeUninit, ppclientcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::InitializeClientContextFromToken(this, core::mem::transmute_copy(&ulltokenhandle), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -540,31 +405,19 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::AddPropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeletePropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::Submit(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn InitializeClientContextFromName(this: *mut core::ffi::c_void, clientname: core::mem::MaybeUninit, domainname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppclientcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn InitializeClientContextFromName(this: *mut core::ffi::c_void, clientname: core::mem::MaybeUninit, domainname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppclientcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::InitializeClientContextFromName(this, core::mem::transmute(&clientname), core::mem::transmute(&domainname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -574,10 +427,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DelegatedPolicyUsers(this: *mut core::ffi::c_void, pvardelegatedpolicyusers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DelegatedPolicyUsers(this: *mut core::ffi::c_void, pvardelegatedpolicyusers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::DelegatedPolicyUsers(this) { Ok(ok__) => { @@ -587,24 +437,15 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddDelegatedPolicyUser(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn AddDelegatedPolicyUser(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::AddDelegatedPolicyUser(this, core::mem::transmute(&bstrdelegatedpolicyuser), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteDelegatedPolicyUser(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeleteDelegatedPolicyUser(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeleteDelegatedPolicyUser(this, core::mem::transmute(&bstrdelegatedpolicyuser), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn InitializeClientContextFromStringSid(this: *mut core::ffi::c_void, sidstring: core::mem::MaybeUninit, loptions: i32, varreserved: core::mem::MaybeUninit, ppclientcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn InitializeClientContextFromStringSid(this: *mut core::ffi::c_void, sidstring: core::mem::MaybeUninit, loptions: i32, varreserved: core::mem::MaybeUninit, ppclientcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::InitializeClientContextFromStringSid(this, core::mem::transmute(&sidstring), core::mem::transmute_copy(&loptions), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -614,10 +455,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PolicyAdministratorsName(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn PolicyAdministratorsName(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::PolicyAdministratorsName(this) { Ok(ok__) => { @@ -627,10 +465,7 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PolicyReadersName(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn PolicyReadersName(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::PolicyReadersName(this) { Ok(ok__) => { @@ -640,38 +475,23 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn AddPolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::AddPolicyAdministratorName(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeletePolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeletePolicyAdministratorName(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn AddPolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::AddPolicyReaderName(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeletePolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeletePolicyReaderName(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DelegatedPolicyUsersName(this: *mut core::ffi::c_void, pvardelegatedpolicyusers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DelegatedPolicyUsersName(this: *mut core::ffi::c_void, pvardelegatedpolicyusers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::DelegatedPolicyUsersName(this) { Ok(ok__) => { @@ -681,17 +501,11 @@ impl IAzApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddDelegatedPolicyUserName(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn AddDelegatedPolicyUserName(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::AddDelegatedPolicyUserName(this, core::mem::transmute(&bstrdelegatedpolicyuser), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteDelegatedPolicyUserName(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication_Impl, - { + unsafe extern "system" fn DeleteDelegatedPolicyUserName(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::DeleteDelegatedPolicyUserName(this, core::mem::transmute(&bstrdelegatedpolicyuser), core::mem::transmute(&varreserved)).into() } @@ -773,14 +587,8 @@ pub trait IAzApplication2_Impl: Sized + IAzApplication_Impl { impl windows_core::RuntimeName for IAzApplication2 {} #[cfg(feature = "Win32_System_Com")] impl IAzApplication2_Vtbl { - pub const fn new() -> IAzApplication2_Vtbl - where - Identity: IAzApplication2_Impl, - { - unsafe extern "system" fn InitializeClientContextFromToken2(this: *mut core::ffi::c_void, ultokenhandlelowpart: u32, ultokenhandlehighpart: u32, varreserved: core::mem::MaybeUninit, ppclientcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication2_Impl, - { + pub const fn new() -> IAzApplication2_Vtbl { + unsafe extern "system" fn InitializeClientContextFromToken2(this: *mut core::ffi::c_void, ultokenhandlelowpart: u32, ultokenhandlehighpart: u32, varreserved: core::mem::MaybeUninit, ppclientcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication2_Impl::InitializeClientContextFromToken2(this, core::mem::transmute_copy(&ultokenhandlelowpart), core::mem::transmute_copy(&ultokenhandlehighpart), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -790,10 +598,7 @@ impl IAzApplication2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeClientContext2(this: *mut core::ffi::c_void, identifyingstring: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppclientcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication2_Impl, - { + unsafe extern "system" fn InitializeClientContext2(this: *mut core::ffi::c_void, identifyingstring: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppclientcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication2_Impl::InitializeClientContext2(this, core::mem::transmute(&identifyingstring), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -834,14 +639,8 @@ pub trait IAzApplication3_Impl: Sized + IAzApplication2_Impl { impl windows_core::RuntimeName for IAzApplication3 {} #[cfg(feature = "Win32_System_Com")] impl IAzApplication3_Vtbl { - pub const fn new() -> IAzApplication3_Vtbl - where - Identity: IAzApplication3_Impl, - { - unsafe extern "system" fn ScopeExists(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, pbexist: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + pub const fn new() -> IAzApplication3_Vtbl { + unsafe extern "system" fn ScopeExists(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, pbexist: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication3_Impl::ScopeExists(this, core::mem::transmute(&bstrscopename)) { Ok(ok__) => { @@ -851,10 +650,7 @@ impl IAzApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenScope2(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, ppscope2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn OpenScope2(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, ppscope2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication3_Impl::OpenScope2(this, core::mem::transmute(&bstrscopename)) { Ok(ok__) => { @@ -864,10 +660,7 @@ impl IAzApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateScope2(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, ppscope2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn CreateScope2(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, ppscope2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication3_Impl::CreateScope2(this, core::mem::transmute(&bstrscopename)) { Ok(ok__) => { @@ -877,17 +670,11 @@ impl IAzApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteScope2(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn DeleteScope2(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication3_Impl::DeleteScope2(this, core::mem::transmute(&bstrscopename)).into() } - unsafe extern "system" fn RoleDefinitions(this: *mut core::ffi::c_void, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn RoleDefinitions(this: *mut core::ffi::c_void, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication3_Impl::RoleDefinitions(this) { Ok(ok__) => { @@ -897,10 +684,7 @@ impl IAzApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn CreateRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication3_Impl::CreateRoleDefinition(this, core::mem::transmute(&bstrroledefinitionname)) { Ok(ok__) => { @@ -910,10 +694,7 @@ impl IAzApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn OpenRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication3_Impl::OpenRoleDefinition(this, core::mem::transmute(&bstrroledefinitionname)) { Ok(ok__) => { @@ -923,17 +704,11 @@ impl IAzApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn DeleteRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication3_Impl::DeleteRoleDefinition(this, core::mem::transmute(&bstrroledefinitionname)).into() } - unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication3_Impl::RoleAssignments(this) { Ok(ok__) => { @@ -943,10 +718,7 @@ impl IAzApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit, pproleassignment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn CreateRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit, pproleassignment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication3_Impl::CreateRoleAssignment(this, core::mem::transmute(&bstrroleassignmentname)) { Ok(ok__) => { @@ -956,10 +728,7 @@ impl IAzApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit, pproleassignment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn OpenRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit, pproleassignment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication3_Impl::OpenRoleAssignment(this, core::mem::transmute(&bstrroleassignmentname)) { Ok(ok__) => { @@ -969,17 +738,11 @@ impl IAzApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn DeleteRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication3_Impl::DeleteRoleAssignment(this, core::mem::transmute(&bstrroleassignmentname)).into() } - unsafe extern "system" fn BizRulesEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn BizRulesEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication3_Impl::BizRulesEnabled(this) { Ok(ok__) => { @@ -989,10 +752,7 @@ impl IAzApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRulesEnabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAzApplication3_Impl, - { + unsafe extern "system" fn SetBizRulesEnabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication3_Impl::SetBizRulesEnabled(this, core::mem::transmute_copy(&benabled)).into() } @@ -1057,14 +817,8 @@ pub trait IAzApplicationGroup_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IAzApplicationGroup {} #[cfg(feature = "Win32_System_Com")] impl IAzApplicationGroup_Vtbl { - pub const fn new() -> IAzApplicationGroup_Vtbl - where - Identity: IAzApplicationGroup_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + pub const fn new() -> IAzApplicationGroup_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::Name(this) { Ok(ok__) => { @@ -1074,17 +828,11 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::SetName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, plprop: *mut i32) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, plprop: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::Type(this) { Ok(ok__) => { @@ -1094,17 +842,11 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, lprop: i32) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, lprop: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::SetType(this, core::mem::transmute_copy(&lprop)).into() } - unsafe extern "system" fn LdapQuery(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn LdapQuery(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::LdapQuery(this) { Ok(ok__) => { @@ -1114,17 +856,11 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLdapQuery(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn SetLdapQuery(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::SetLdapQuery(this, core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn AppMembers(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn AppMembers(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::AppMembers(this) { Ok(ok__) => { @@ -1134,10 +870,7 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppNonMembers(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn AppNonMembers(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::AppNonMembers(this) { Ok(ok__) => { @@ -1147,10 +880,7 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Members(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn Members(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::Members(this) { Ok(ok__) => { @@ -1160,10 +890,7 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NonMembers(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn NonMembers(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::NonMembers(this) { Ok(ok__) => { @@ -1173,10 +900,7 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::Description(this) { Ok(ok__) => { @@ -1186,73 +910,43 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn AddAppMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn AddAppMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::AddAppMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteAppMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn DeleteAppMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::DeleteAppMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddAppNonMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn AddAppNonMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::AddAppNonMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteAppNonMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn DeleteAppNonMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::DeleteAppNonMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn AddMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::AddMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn DeleteMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::DeleteMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddNonMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn AddNonMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::AddNonMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteNonMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn DeleteNonMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::DeleteNonMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::Writable(this) { Ok(ok__) => { @@ -1262,10 +956,7 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::GetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -1275,66 +966,39 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::SetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::AddPropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::DeletePropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::Submit(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn AddMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::AddMemberName(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn DeleteMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::DeleteMemberName(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddNonMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn AddNonMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::AddNonMemberName(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteNonMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn DeleteNonMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup_Impl::DeleteNonMemberName(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn MembersName(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn MembersName(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::MembersName(this) { Ok(ok__) => { @@ -1344,10 +1008,7 @@ impl IAzApplicationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NonMembersName(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup_Impl, - { + unsafe extern "system" fn NonMembersName(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::NonMembersName(this) { Ok(ok__) => { @@ -1411,14 +1072,8 @@ pub trait IAzApplicationGroup2_Impl: Sized + IAzApplicationGroup_Impl { impl windows_core::RuntimeName for IAzApplicationGroup2 {} #[cfg(feature = "Win32_System_Com")] impl IAzApplicationGroup2_Vtbl { - pub const fn new() -> IAzApplicationGroup2_Vtbl - where - Identity: IAzApplicationGroup2_Impl, - { - unsafe extern "system" fn BizRule(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup2_Impl, - { + pub const fn new() -> IAzApplicationGroup2_Vtbl { + unsafe extern "system" fn BizRule(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup2_Impl::BizRule(this) { Ok(ok__) => { @@ -1428,17 +1083,11 @@ impl IAzApplicationGroup2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRule(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup2_Impl, - { + unsafe extern "system" fn SetBizRule(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup2_Impl::SetBizRule(this, core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn BizRuleLanguage(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup2_Impl, - { + unsafe extern "system" fn BizRuleLanguage(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup2_Impl::BizRuleLanguage(this) { Ok(ok__) => { @@ -1448,17 +1097,11 @@ impl IAzApplicationGroup2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRuleLanguage(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup2_Impl, - { + unsafe extern "system" fn SetBizRuleLanguage(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup2_Impl::SetBizRuleLanguage(this, core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn BizRuleImportedPath(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup2_Impl, - { + unsafe extern "system" fn BizRuleImportedPath(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup2_Impl::BizRuleImportedPath(this) { Ok(ok__) => { @@ -1468,17 +1111,11 @@ impl IAzApplicationGroup2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRuleImportedPath(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup2_Impl, - { + unsafe extern "system" fn SetBizRuleImportedPath(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplicationGroup2_Impl::SetBizRuleImportedPath(this, core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, brecursive: super::super::Foundation::VARIANT_BOOL, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplicationGroup2_Impl, - { + unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, brecursive: super::super::Foundation::VARIANT_BOOL, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup2_Impl::RoleAssignments(this, core::mem::transmute(&bstrscopename), core::mem::transmute_copy(&brecursive)) { Ok(ok__) => { @@ -1513,14 +1150,8 @@ pub trait IAzApplicationGroups_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for IAzApplicationGroups {} #[cfg(feature = "Win32_System_Com")] impl IAzApplicationGroups_Vtbl { - pub const fn new() -> IAzApplicationGroups_Vtbl - where - Identity: IAzApplicationGroups_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplicationGroups_Impl, - { + pub const fn new() -> IAzApplicationGroups_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroups_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1530,10 +1161,7 @@ impl IAzApplicationGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAzApplicationGroups_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroups_Impl::Count(this) { Ok(ok__) => { @@ -1543,10 +1171,7 @@ impl IAzApplicationGroups_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplicationGroups_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroups_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1577,14 +1202,8 @@ pub trait IAzApplications_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IAzApplications {} #[cfg(feature = "Win32_System_Com")] impl IAzApplications_Vtbl { - pub const fn new() -> IAzApplications_Vtbl - where - Identity: IAzApplications_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzApplications_Impl, - { + pub const fn new() -> IAzApplications_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplications_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1594,10 +1213,7 @@ impl IAzApplications_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAzApplications_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplications_Impl::Count(this) { Ok(ok__) => { @@ -1607,10 +1223,7 @@ impl IAzApplications_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzApplications_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplications_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1689,14 +1302,8 @@ pub trait IAzAuthorizationStore_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for IAzAuthorizationStore {} #[cfg(feature = "Win32_System_Com")] impl IAzAuthorizationStore_Vtbl { - pub const fn new() -> IAzAuthorizationStore_Vtbl - where - Identity: IAzAuthorizationStore_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + pub const fn new() -> IAzAuthorizationStore_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::Description(this) { Ok(ok__) => { @@ -1706,17 +1313,11 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::ApplicationData(this) { Ok(ok__) => { @@ -1726,17 +1327,11 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::SetApplicationData(this, core::mem::transmute(&bstrapplicationdata)).into() } - unsafe extern "system" fn DomainTimeout(this: *mut core::ffi::c_void, plprop: *mut i32) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DomainTimeout(this: *mut core::ffi::c_void, plprop: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::DomainTimeout(this) { Ok(ok__) => { @@ -1746,17 +1341,11 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDomainTimeout(this: *mut core::ffi::c_void, lprop: i32) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn SetDomainTimeout(this: *mut core::ffi::c_void, lprop: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::SetDomainTimeout(this, core::mem::transmute_copy(&lprop)).into() } - unsafe extern "system" fn ScriptEngineTimeout(this: *mut core::ffi::c_void, plprop: *mut i32) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn ScriptEngineTimeout(this: *mut core::ffi::c_void, plprop: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::ScriptEngineTimeout(this) { Ok(ok__) => { @@ -1766,17 +1355,11 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScriptEngineTimeout(this: *mut core::ffi::c_void, lprop: i32) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn SetScriptEngineTimeout(this: *mut core::ffi::c_void, lprop: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::SetScriptEngineTimeout(this, core::mem::transmute_copy(&lprop)).into() } - unsafe extern "system" fn MaxScriptEngines(this: *mut core::ffi::c_void, plprop: *mut i32) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn MaxScriptEngines(this: *mut core::ffi::c_void, plprop: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::MaxScriptEngines(this) { Ok(ok__) => { @@ -1786,17 +1369,11 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxScriptEngines(this: *mut core::ffi::c_void, lprop: i32) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn SetMaxScriptEngines(this: *mut core::ffi::c_void, lprop: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::SetMaxScriptEngines(this, core::mem::transmute_copy(&lprop)).into() } - unsafe extern "system" fn GenerateAudits(this: *mut core::ffi::c_void, pbprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn GenerateAudits(this: *mut core::ffi::c_void, pbprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::GenerateAudits(this) { Ok(ok__) => { @@ -1806,17 +1383,11 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGenerateAudits(this: *mut core::ffi::c_void, bprop: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn SetGenerateAudits(this: *mut core::ffi::c_void, bprop: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::SetGenerateAudits(this, core::mem::transmute_copy(&bprop)).into() } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::Writable(this) { Ok(ok__) => { @@ -1826,10 +1397,7 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::GetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -1839,31 +1407,19 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::SetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: AZ_PROP_CONSTANTS, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: AZ_PROP_CONSTANTS, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::AddPropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::DeletePropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn PolicyAdministrators(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn PolicyAdministrators(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::PolicyAdministrators(this) { Ok(ok__) => { @@ -1873,10 +1429,7 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PolicyReaders(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn PolicyReaders(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::PolicyReaders(this) { Ok(ok__) => { @@ -1886,59 +1439,35 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn AddPolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::AddPolicyAdministrator(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DeletePolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::DeletePolicyAdministrator(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn AddPolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::AddPolicyReader(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DeletePolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::DeletePolicyReader(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::Initialize(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstrpolicyurl), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn UpdateCache(this: *mut core::ffi::c_void, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn UpdateCache(this: *mut core::ffi::c_void, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::UpdateCache(this, core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::Delete(this, core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Applications(this: *mut core::ffi::c_void, ppappcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn Applications(this: *mut core::ffi::c_void, ppappcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::Applications(this) { Ok(ok__) => { @@ -1948,10 +1477,7 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenApplication(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppapplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn OpenApplication(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppapplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::OpenApplication(this, core::mem::transmute(&bstrapplicationname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -1961,10 +1487,7 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateApplication(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppapplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn CreateApplication(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppapplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::CreateApplication(this, core::mem::transmute(&bstrapplicationname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -1974,17 +1497,11 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteApplication(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DeleteApplication(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::DeleteApplication(this, core::mem::transmute(&bstrapplicationname), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn ApplicationGroups(this: *mut core::ffi::c_void, ppgroupcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn ApplicationGroups(this: *mut core::ffi::c_void, ppgroupcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::ApplicationGroups(this) { Ok(ok__) => { @@ -1994,10 +1511,7 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn CreateApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::CreateApplicationGroup(this, core::mem::transmute(&bstrgroupname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -2007,10 +1521,7 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn OpenApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::OpenApplicationGroup(this, core::mem::transmute(&bstrgroupname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -2020,24 +1531,15 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DeleteApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::DeleteApplicationGroup(this, core::mem::transmute(&bstrgroupname), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::Submit(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DelegatedPolicyUsers(this: *mut core::ffi::c_void, pvardelegatedpolicyusers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DelegatedPolicyUsers(this: *mut core::ffi::c_void, pvardelegatedpolicyusers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::DelegatedPolicyUsers(this) { Ok(ok__) => { @@ -2047,24 +1549,15 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddDelegatedPolicyUser(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn AddDelegatedPolicyUser(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::AddDelegatedPolicyUser(this, core::mem::transmute(&bstrdelegatedpolicyuser), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteDelegatedPolicyUser(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DeleteDelegatedPolicyUser(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::DeleteDelegatedPolicyUser(this, core::mem::transmute(&bstrdelegatedpolicyuser), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn TargetMachine(this: *mut core::ffi::c_void, pbstrtargetmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn TargetMachine(this: *mut core::ffi::c_void, pbstrtargetmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::TargetMachine(this) { Ok(ok__) => { @@ -2074,10 +1567,7 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplyStoreSacl(this: *mut core::ffi::c_void, pbapplystoresacl: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn ApplyStoreSacl(this: *mut core::ffi::c_void, pbapplystoresacl: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::ApplyStoreSacl(this) { Ok(ok__) => { @@ -2087,17 +1577,11 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetApplyStoreSacl(this: *mut core::ffi::c_void, bapplystoresacl: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn SetApplyStoreSacl(this: *mut core::ffi::c_void, bapplystoresacl: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::SetApplyStoreSacl(this, core::mem::transmute_copy(&bapplystoresacl)).into() } - unsafe extern "system" fn PolicyAdministratorsName(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn PolicyAdministratorsName(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::PolicyAdministratorsName(this) { Ok(ok__) => { @@ -2107,10 +1591,7 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PolicyReadersName(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn PolicyReadersName(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::PolicyReadersName(this) { Ok(ok__) => { @@ -2120,38 +1601,23 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn AddPolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::AddPolicyAdministratorName(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DeletePolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::DeletePolicyAdministratorName(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn AddPolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::AddPolicyReaderName(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DeletePolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::DeletePolicyReaderName(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DelegatedPolicyUsersName(this: *mut core::ffi::c_void, pvardelegatedpolicyusers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DelegatedPolicyUsersName(this: *mut core::ffi::c_void, pvardelegatedpolicyusers: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::DelegatedPolicyUsersName(this) { Ok(ok__) => { @@ -2161,24 +1627,15 @@ impl IAzAuthorizationStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddDelegatedPolicyUserName(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn AddDelegatedPolicyUserName(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::AddDelegatedPolicyUserName(this, core::mem::transmute(&bstrdelegatedpolicyuser), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteDelegatedPolicyUserName(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn DeleteDelegatedPolicyUserName(this: *mut core::ffi::c_void, bstrdelegatedpolicyuser: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::DeleteDelegatedPolicyUserName(this, core::mem::transmute(&bstrdelegatedpolicyuser), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn CloseApplication(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, lflag: i32) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore_Impl, - { + unsafe extern "system" fn CloseApplication(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, lflag: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::CloseApplication(this, core::mem::transmute(&bstrapplicationname), core::mem::transmute_copy(&lflag)).into() } @@ -2250,14 +1707,8 @@ pub trait IAzAuthorizationStore2_Impl: Sized + IAzAuthorizationStore_Impl { impl windows_core::RuntimeName for IAzAuthorizationStore2 {} #[cfg(feature = "Win32_System_Com")] impl IAzAuthorizationStore2_Vtbl { - pub const fn new() -> IAzAuthorizationStore2_Vtbl - where - Identity: IAzAuthorizationStore2_Impl, - { - unsafe extern "system" fn OpenApplication2(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppapplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore2_Impl, - { + pub const fn new() -> IAzAuthorizationStore2_Vtbl { + unsafe extern "system" fn OpenApplication2(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppapplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore2_Impl::OpenApplication2(this, core::mem::transmute(&bstrapplicationname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -2267,10 +1718,7 @@ impl IAzAuthorizationStore2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateApplication2(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppapplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore2_Impl, - { + unsafe extern "system" fn CreateApplication2(this: *mut core::ffi::c_void, bstrapplicationname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppapplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore2_Impl::CreateApplication2(this, core::mem::transmute(&bstrapplicationname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -2302,14 +1750,8 @@ pub trait IAzAuthorizationStore3_Impl: Sized + IAzAuthorizationStore2_Impl { impl windows_core::RuntimeName for IAzAuthorizationStore3 {} #[cfg(feature = "Win32_System_Com")] impl IAzAuthorizationStore3_Vtbl { - pub const fn new() -> IAzAuthorizationStore3_Vtbl - where - Identity: IAzAuthorizationStore3_Impl, - { - unsafe extern "system" fn IsUpdateNeeded(this: *mut core::ffi::c_void, pbisupdateneeded: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore3_Impl, - { + pub const fn new() -> IAzAuthorizationStore3_Vtbl { + unsafe extern "system" fn IsUpdateNeeded(this: *mut core::ffi::c_void, pbisupdateneeded: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore3_Impl::IsUpdateNeeded(this) { Ok(ok__) => { @@ -2319,10 +1761,7 @@ impl IAzAuthorizationStore3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BizruleGroupSupported(this: *mut core::ffi::c_void, pbsupported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore3_Impl, - { + unsafe extern "system" fn BizruleGroupSupported(this: *mut core::ffi::c_void, pbsupported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore3_Impl::BizruleGroupSupported(this) { Ok(ok__) => { @@ -2332,17 +1771,11 @@ impl IAzAuthorizationStore3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpgradeStoresFunctionalLevel(this: *mut core::ffi::c_void, lfunctionallevel: i32) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore3_Impl, - { + unsafe extern "system" fn UpgradeStoresFunctionalLevel(this: *mut core::ffi::c_void, lfunctionallevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore3_Impl::UpgradeStoresFunctionalLevel(this, core::mem::transmute_copy(&lfunctionallevel)).into() } - unsafe extern "system" fn IsFunctionalLevelUpgradeSupported(this: *mut core::ffi::c_void, lfunctionallevel: i32, pbsupported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore3_Impl, - { + unsafe extern "system" fn IsFunctionalLevelUpgradeSupported(this: *mut core::ffi::c_void, lfunctionallevel: i32, pbsupported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore3_Impl::IsFunctionalLevelUpgradeSupported(this, core::mem::transmute_copy(&lfunctionallevel)) { Ok(ok__) => { @@ -2352,10 +1785,7 @@ impl IAzAuthorizationStore3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSchemaVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32, plminorversion: *mut i32) -> windows_core::HRESULT - where - Identity: IAzAuthorizationStore3_Impl, - { + unsafe extern "system" fn GetSchemaVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32, plminorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore3_Impl::GetSchemaVersion(this, core::mem::transmute_copy(&plmajorversion), core::mem::transmute_copy(&plminorversion)).into() } @@ -2383,28 +1813,16 @@ pub trait IAzBizRuleContext_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IAzBizRuleContext {} #[cfg(feature = "Win32_System_Com")] impl IAzBizRuleContext_Vtbl { - pub const fn new() -> IAzBizRuleContext_Vtbl - where - Identity: IAzBizRuleContext_Impl, - { - unsafe extern "system" fn SetBusinessRuleResult(this: *mut core::ffi::c_void, bresult: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzBizRuleContext_Impl, - { + pub const fn new() -> IAzBizRuleContext_Vtbl { + unsafe extern "system" fn SetBusinessRuleResult(this: *mut core::ffi::c_void, bresult: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleContext_Impl::SetBusinessRuleResult(this, core::mem::transmute_copy(&bresult)).into() } - unsafe extern "system" fn SetBusinessRuleString(this: *mut core::ffi::c_void, bstrbusinessrulestring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleContext_Impl, - { + unsafe extern "system" fn SetBusinessRuleString(this: *mut core::ffi::c_void, bstrbusinessrulestring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleContext_Impl::SetBusinessRuleString(this, core::mem::transmute(&bstrbusinessrulestring)).into() } - unsafe extern "system" fn BusinessRuleString(this: *mut core::ffi::c_void, pbstrbusinessrulestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleContext_Impl, - { + unsafe extern "system" fn BusinessRuleString(this: *mut core::ffi::c_void, pbstrbusinessrulestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzBizRuleContext_Impl::BusinessRuleString(this) { Ok(ok__) => { @@ -2414,10 +1832,7 @@ impl IAzBizRuleContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParameter(this: *mut core::ffi::c_void, bstrparametername: core::mem::MaybeUninit, pvarparametervalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleContext_Impl, - { + unsafe extern "system" fn GetParameter(this: *mut core::ffi::c_void, bstrparametername: core::mem::MaybeUninit, pvarparametervalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzBizRuleContext_Impl::GetParameter(this, core::mem::transmute(&bstrparametername)) { Ok(ok__) => { @@ -2452,49 +1867,28 @@ pub trait IAzBizRuleInterfaces_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for IAzBizRuleInterfaces {} #[cfg(feature = "Win32_System_Com")] impl IAzBizRuleInterfaces_Vtbl { - pub const fn new() -> IAzBizRuleInterfaces_Vtbl - where - Identity: IAzBizRuleInterfaces_Impl, - { - unsafe extern "system" fn AddInterface(this: *mut core::ffi::c_void, bstrinterfacename: core::mem::MaybeUninit, linterfaceflag: i32, varinterface: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleInterfaces_Impl, - { + pub const fn new() -> IAzBizRuleInterfaces_Vtbl { + unsafe extern "system" fn AddInterface(this: *mut core::ffi::c_void, bstrinterfacename: core::mem::MaybeUninit, linterfaceflag: i32, varinterface: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleInterfaces_Impl::AddInterface(this, core::mem::transmute(&bstrinterfacename), core::mem::transmute_copy(&linterfaceflag), core::mem::transmute(&varinterface)).into() } - unsafe extern "system" fn AddInterfaces(this: *mut core::ffi::c_void, varinterfacenames: core::mem::MaybeUninit, varinterfaceflags: core::mem::MaybeUninit, varinterfaces: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleInterfaces_Impl, - { + unsafe extern "system" fn AddInterfaces(this: *mut core::ffi::c_void, varinterfacenames: core::mem::MaybeUninit, varinterfaceflags: core::mem::MaybeUninit, varinterfaces: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleInterfaces_Impl::AddInterfaces(this, core::mem::transmute(&varinterfacenames), core::mem::transmute(&varinterfaceflags), core::mem::transmute(&varinterfaces)).into() } - unsafe extern "system" fn GetInterfaceValue(this: *mut core::ffi::c_void, bstrinterfacename: core::mem::MaybeUninit, linterfaceflag: *mut i32, varinterface: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleInterfaces_Impl, - { + unsafe extern "system" fn GetInterfaceValue(this: *mut core::ffi::c_void, bstrinterfacename: core::mem::MaybeUninit, linterfaceflag: *mut i32, varinterface: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleInterfaces_Impl::GetInterfaceValue(this, core::mem::transmute(&bstrinterfacename), core::mem::transmute_copy(&linterfaceflag), core::mem::transmute_copy(&varinterface)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, bstrinterfacename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleInterfaces_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, bstrinterfacename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleInterfaces_Impl::Remove(this, core::mem::transmute(&bstrinterfacename)).into() } - unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzBizRuleInterfaces_Impl, - { + unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleInterfaces_Impl::RemoveAll(this).into() } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAzBizRuleInterfaces_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzBizRuleInterfaces_Impl::Count(this) { Ok(ok__) => { @@ -2531,28 +1925,16 @@ pub trait IAzBizRuleParameters_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for IAzBizRuleParameters {} #[cfg(feature = "Win32_System_Com")] impl IAzBizRuleParameters_Vtbl { - pub const fn new() -> IAzBizRuleParameters_Vtbl - where - Identity: IAzBizRuleParameters_Impl, - { - unsafe extern "system" fn AddParameter(this: *mut core::ffi::c_void, bstrparametername: core::mem::MaybeUninit, varparametervalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleParameters_Impl, - { + pub const fn new() -> IAzBizRuleParameters_Vtbl { + unsafe extern "system" fn AddParameter(this: *mut core::ffi::c_void, bstrparametername: core::mem::MaybeUninit, varparametervalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleParameters_Impl::AddParameter(this, core::mem::transmute(&bstrparametername), core::mem::transmute(&varparametervalue)).into() } - unsafe extern "system" fn AddParameters(this: *mut core::ffi::c_void, varparameternames: core::mem::MaybeUninit, varparametervalues: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleParameters_Impl, - { + unsafe extern "system" fn AddParameters(this: *mut core::ffi::c_void, varparameternames: core::mem::MaybeUninit, varparametervalues: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleParameters_Impl::AddParameters(this, core::mem::transmute(&varparameternames), core::mem::transmute(&varparametervalues)).into() } - unsafe extern "system" fn GetParameterValue(this: *mut core::ffi::c_void, bstrparametername: core::mem::MaybeUninit, pvarparametervalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleParameters_Impl, - { + unsafe extern "system" fn GetParameterValue(this: *mut core::ffi::c_void, bstrparametername: core::mem::MaybeUninit, pvarparametervalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzBizRuleParameters_Impl::GetParameterValue(this, core::mem::transmute(&bstrparametername)) { Ok(ok__) => { @@ -2562,24 +1944,15 @@ impl IAzBizRuleParameters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, varparametername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzBizRuleParameters_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, varparametername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleParameters_Impl::Remove(this, core::mem::transmute(&varparametername)).into() } - unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzBizRuleParameters_Impl, - { + unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleParameters_Impl::RemoveAll(this).into() } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAzBizRuleParameters_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzBizRuleParameters_Impl::Count(this) { Ok(ok__) => { @@ -2623,14 +1996,8 @@ pub trait IAzClientContext_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IAzClientContext {} #[cfg(feature = "Win32_System_Com")] impl IAzClientContext_Vtbl { - pub const fn new() -> IAzClientContext_Vtbl - where - Identity: IAzClientContext_Impl, - { - unsafe extern "system" fn AccessCheck(this: *mut core::ffi::c_void, bstrobjectname: core::mem::MaybeUninit, varscopenames: core::mem::MaybeUninit, varoperations: core::mem::MaybeUninit, varparameternames: core::mem::MaybeUninit, varparametervalues: core::mem::MaybeUninit, varinterfacenames: core::mem::MaybeUninit, varinterfaceflags: core::mem::MaybeUninit, varinterfaces: core::mem::MaybeUninit, pvarresults: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + pub const fn new() -> IAzClientContext_Vtbl { + unsafe extern "system" fn AccessCheck(this: *mut core::ffi::c_void, bstrobjectname: core::mem::MaybeUninit, varscopenames: core::mem::MaybeUninit, varoperations: core::mem::MaybeUninit, varparameternames: core::mem::MaybeUninit, varparametervalues: core::mem::MaybeUninit, varinterfacenames: core::mem::MaybeUninit, varinterfaceflags: core::mem::MaybeUninit, varinterfaces: core::mem::MaybeUninit, pvarresults: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::AccessCheck(this, core::mem::transmute(&bstrobjectname), core::mem::transmute(&varscopenames), core::mem::transmute(&varoperations), core::mem::transmute(&varparameternames), core::mem::transmute(&varparametervalues), core::mem::transmute(&varinterfacenames), core::mem::transmute(&varinterfaceflags), core::mem::transmute(&varinterfaces)) { Ok(ok__) => { @@ -2640,10 +2007,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBusinessRuleString(this: *mut core::ffi::c_void, pbstrbusinessrulestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn GetBusinessRuleString(this: *mut core::ffi::c_void, pbstrbusinessrulestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::GetBusinessRuleString(this) { Ok(ok__) => { @@ -2653,10 +2017,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserDn(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn UserDn(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::UserDn(this) { Ok(ok__) => { @@ -2666,10 +2027,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserSamCompat(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn UserSamCompat(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::UserSamCompat(this) { Ok(ok__) => { @@ -2679,10 +2037,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserDisplay(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn UserDisplay(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::UserDisplay(this) { Ok(ok__) => { @@ -2692,10 +2047,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserGuid(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn UserGuid(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::UserGuid(this) { Ok(ok__) => { @@ -2705,10 +2057,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserCanonical(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn UserCanonical(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::UserCanonical(this) { Ok(ok__) => { @@ -2718,10 +2067,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserUpn(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn UserUpn(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::UserUpn(this) { Ok(ok__) => { @@ -2731,10 +2077,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserDnsSamCompat(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn UserDnsSamCompat(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::UserDnsSamCompat(this) { Ok(ok__) => { @@ -2744,10 +2087,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::GetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -2757,10 +2097,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRoles(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, pvarrolenames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn GetRoles(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, pvarrolenames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::GetRoles(this, core::mem::transmute(&bstrscopename)) { Ok(ok__) => { @@ -2770,10 +2107,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RoleForAccessCheck(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn RoleForAccessCheck(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext_Impl::RoleForAccessCheck(this) { Ok(ok__) => { @@ -2783,10 +2117,7 @@ impl IAzClientContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRoleForAccessCheck(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext_Impl, - { + unsafe extern "system" fn SetRoleForAccessCheck(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzClientContext_Impl::SetRoleForAccessCheck(this, core::mem::transmute(&bstrprop)).into() } @@ -2824,49 +2155,28 @@ pub trait IAzClientContext2_Impl: Sized + IAzClientContext_Impl { impl windows_core::RuntimeName for IAzClientContext2 {} #[cfg(feature = "Win32_System_Com")] impl IAzClientContext2_Vtbl { - pub const fn new() -> IAzClientContext2_Vtbl - where - Identity: IAzClientContext2_Impl, - { - unsafe extern "system" fn GetAssignedScopesPage(this: *mut core::ffi::c_void, loptions: i32, pagesize: i32, pvarcursor: *mut core::mem::MaybeUninit, pvarscopenames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext2_Impl, - { + pub const fn new() -> IAzClientContext2_Vtbl { + unsafe extern "system" fn GetAssignedScopesPage(this: *mut core::ffi::c_void, loptions: i32, pagesize: i32, pvarcursor: *mut core::mem::MaybeUninit, pvarscopenames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzClientContext2_Impl::GetAssignedScopesPage(this, 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(this: *mut core::ffi::c_void, varroles: core::mem::MaybeUninit, bstrscopename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext2_Impl, - { + unsafe extern "system" fn AddRoles(this: *mut core::ffi::c_void, varroles: core::mem::MaybeUninit, bstrscopename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzClientContext2_Impl::AddRoles(this, core::mem::transmute(&varroles), core::mem::transmute(&bstrscopename)).into() } - unsafe extern "system" fn AddApplicationGroups(this: *mut core::ffi::c_void, varapplicationgroups: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext2_Impl, - { + unsafe extern "system" fn AddApplicationGroups(this: *mut core::ffi::c_void, varapplicationgroups: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzClientContext2_Impl::AddApplicationGroups(this, core::mem::transmute(&varapplicationgroups)).into() } - unsafe extern "system" fn AddStringSids(this: *mut core::ffi::c_void, varstringsids: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext2_Impl, - { + unsafe extern "system" fn AddStringSids(this: *mut core::ffi::c_void, varstringsids: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzClientContext2_Impl::AddStringSids(this, core::mem::transmute(&varstringsids)).into() } - unsafe extern "system" fn SetLDAPQueryDN(this: *mut core::ffi::c_void, bstrldapquerydn: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext2_Impl, - { + unsafe extern "system" fn SetLDAPQueryDN(this: *mut core::ffi::c_void, bstrldapquerydn: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzClientContext2_Impl::SetLDAPQueryDN(this, core::mem::transmute(&bstrldapquerydn)).into() } - unsafe extern "system" fn LDAPQueryDN(this: *mut core::ffi::c_void, pbstrldapquerydn: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext2_Impl, - { + unsafe extern "system" fn LDAPQueryDN(this: *mut core::ffi::c_void, pbstrldapquerydn: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext2_Impl::LDAPQueryDN(this) { Ok(ok__) => { @@ -2905,14 +2215,8 @@ pub trait IAzClientContext3_Impl: Sized + IAzClientContext2_Impl { impl windows_core::RuntimeName for IAzClientContext3 {} #[cfg(feature = "Win32_System_Com")] impl IAzClientContext3_Vtbl { - pub const fn new() -> IAzClientContext3_Vtbl - where - Identity: IAzClientContext3_Impl, - { - unsafe extern "system" fn AccessCheck2(this: *mut core::ffi::c_void, bstrobjectname: core::mem::MaybeUninit, bstrscopename: core::mem::MaybeUninit, loperation: i32, plresult: *mut u32) -> windows_core::HRESULT - where - Identity: IAzClientContext3_Impl, - { + pub const fn new() -> IAzClientContext3_Vtbl { + unsafe extern "system" fn AccessCheck2(this: *mut core::ffi::c_void, bstrobjectname: core::mem::MaybeUninit, bstrscopename: core::mem::MaybeUninit, loperation: i32, plresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext3_Impl::AccessCheck2(this, core::mem::transmute(&bstrobjectname), core::mem::transmute(&bstrscopename), core::mem::transmute_copy(&loperation)) { Ok(ok__) => { @@ -2922,10 +2226,7 @@ impl IAzClientContext3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsInRoleAssignment(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, bstrrolename: core::mem::MaybeUninit, pbisinrole: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAzClientContext3_Impl, - { + unsafe extern "system" fn IsInRoleAssignment(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, bstrrolename: core::mem::MaybeUninit, pbisinrole: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext3_Impl::IsInRoleAssignment(this, core::mem::transmute(&bstrscopename), core::mem::transmute(&bstrrolename)) { Ok(ok__) => { @@ -2935,10 +2236,7 @@ impl IAzClientContext3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOperations(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, ppoperationcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzClientContext3_Impl, - { + unsafe extern "system" fn GetOperations(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, ppoperationcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext3_Impl::GetOperations(this, core::mem::transmute(&bstrscopename)) { Ok(ok__) => { @@ -2948,10 +2246,7 @@ impl IAzClientContext3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTasks(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, pptaskcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzClientContext3_Impl, - { + unsafe extern "system" fn GetTasks(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, pptaskcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext3_Impl::GetTasks(this, core::mem::transmute(&bstrscopename)) { Ok(ok__) => { @@ -2961,10 +2256,7 @@ impl IAzClientContext3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BizRuleParameters(this: *mut core::ffi::c_void, ppbizruleparam: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzClientContext3_Impl, - { + unsafe extern "system" fn BizRuleParameters(this: *mut core::ffi::c_void, ppbizruleparam: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext3_Impl::BizRuleParameters(this) { Ok(ok__) => { @@ -2974,10 +2266,7 @@ impl IAzClientContext3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BizRuleInterfaces(this: *mut core::ffi::c_void, ppbizruleinterfaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzClientContext3_Impl, - { + unsafe extern "system" fn BizRuleInterfaces(this: *mut core::ffi::c_void, ppbizruleinterfaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext3_Impl::BizRuleInterfaces(this) { Ok(ok__) => { @@ -2987,10 +2276,7 @@ impl IAzClientContext3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGroups(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, uloptions: u32, pgrouparray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext3_Impl, - { + unsafe extern "system" fn GetGroups(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, uloptions: u32, pgrouparray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext3_Impl::GetGroups(this, core::mem::transmute(&bstrscopename), core::mem::transmute(&uloptions)) { Ok(ok__) => { @@ -3000,10 +2286,7 @@ impl IAzClientContext3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Sids(this: *mut core::ffi::c_void, pstringsidarray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzClientContext3_Impl, - { + unsafe extern "system" fn Sids(this: *mut core::ffi::c_void, pstringsidarray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzClientContext3_Impl::Sids(this) { Ok(ok__) => { @@ -3038,21 +2321,12 @@ pub trait IAzNameResolver_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IAzNameResolver {} #[cfg(feature = "Win32_System_Com")] impl IAzNameResolver_Vtbl { - pub const fn new() -> IAzNameResolver_Vtbl - where - Identity: IAzNameResolver_Impl, - { - unsafe extern "system" fn NameFromSid(this: *mut core::ffi::c_void, bstrsid: core::mem::MaybeUninit, psidtype: *mut i32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzNameResolver_Impl, - { + pub const fn new() -> IAzNameResolver_Vtbl { + unsafe extern "system" fn NameFromSid(this: *mut core::ffi::c_void, bstrsid: core::mem::MaybeUninit, psidtype: *mut i32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzNameResolver_Impl::NameFromSid(this, core::mem::transmute(&bstrsid), core::mem::transmute_copy(&psidtype), core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn NamesFromSids(this: *mut core::ffi::c_void, vsids: core::mem::MaybeUninit, pvsidtypes: *mut core::mem::MaybeUninit, pvnames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzNameResolver_Impl, - { + unsafe extern "system" fn NamesFromSids(this: *mut core::ffi::c_void, vsids: core::mem::MaybeUninit, pvsidtypes: *mut core::mem::MaybeUninit, pvnames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzNameResolver_Impl::NamesFromSids(this, core::mem::transmute(&vsids), core::mem::transmute_copy(&pvsidtypes), core::mem::transmute_copy(&pvnames)).into() } @@ -3075,21 +2349,12 @@ pub trait IAzObjectPicker_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IAzObjectPicker {} #[cfg(feature = "Win32_System_Com")] impl IAzObjectPicker_Vtbl { - pub const fn new() -> IAzObjectPicker_Vtbl - where - Identity: IAzObjectPicker_Impl, - { - unsafe extern "system" fn GetPrincipals(this: *mut core::ffi::c_void, hparentwnd: super::super::Foundation::HWND, bstrtitle: core::mem::MaybeUninit, pvsidtypes: *mut core::mem::MaybeUninit, pvnames: *mut core::mem::MaybeUninit, pvsids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzObjectPicker_Impl, - { + pub const fn new() -> IAzObjectPicker_Vtbl { + unsafe extern "system" fn GetPrincipals(this: *mut core::ffi::c_void, hparentwnd: super::super::Foundation::HWND, bstrtitle: core::mem::MaybeUninit, pvsidtypes: *mut core::mem::MaybeUninit, pvnames: *mut core::mem::MaybeUninit, pvsids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzObjectPicker_Impl::GetPrincipals(this, 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(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzObjectPicker_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzObjectPicker_Impl::Name(this) { Ok(ok__) => { @@ -3128,14 +2393,8 @@ pub trait IAzOperation_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAzOperation {} #[cfg(feature = "Win32_System_Com")] impl IAzOperation_Vtbl { - pub const fn new() -> IAzOperation_Vtbl - where - Identity: IAzOperation_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + pub const fn new() -> IAzOperation_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperation_Impl::Name(this) { Ok(ok__) => { @@ -3145,17 +2404,11 @@ impl IAzOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzOperation_Impl::SetName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperation_Impl::Description(this) { Ok(ok__) => { @@ -3165,17 +2418,11 @@ impl IAzOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzOperation_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperation_Impl::ApplicationData(this) { Ok(ok__) => { @@ -3185,17 +2432,11 @@ impl IAzOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzOperation_Impl::SetApplicationData(this, core::mem::transmute(&bstrapplicationdata)).into() } - unsafe extern "system" fn OperationID(this: *mut core::ffi::c_void, plprop: *mut i32) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn OperationID(this: *mut core::ffi::c_void, plprop: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperation_Impl::OperationID(this) { Ok(ok__) => { @@ -3205,17 +2446,11 @@ impl IAzOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOperationID(this: *mut core::ffi::c_void, lprop: i32) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn SetOperationID(this: *mut core::ffi::c_void, lprop: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzOperation_Impl::SetOperationID(this, core::mem::transmute_copy(&lprop)).into() } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperation_Impl::Writable(this) { Ok(ok__) => { @@ -3225,10 +2460,7 @@ impl IAzOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperation_Impl::GetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -3238,17 +2470,11 @@ impl IAzOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzOperation_Impl::SetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzOperation_Impl, - { + unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzOperation_Impl::Submit(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&varreserved)).into() } @@ -3280,14 +2506,8 @@ pub trait IAzOperation2_Impl: Sized + IAzOperation_Impl { impl windows_core::RuntimeName for IAzOperation2 {} #[cfg(feature = "Win32_System_Com")] impl IAzOperation2_Vtbl { - pub const fn new() -> IAzOperation2_Vtbl - where - Identity: IAzOperation2_Impl, - { - unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, brecursive: super::super::Foundation::VARIANT_BOOL, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzOperation2_Impl, - { + pub const fn new() -> IAzOperation2_Vtbl { + unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, brecursive: super::super::Foundation::VARIANT_BOOL, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperation2_Impl::RoleAssignments(this, core::mem::transmute(&bstrscopename), core::mem::transmute_copy(&brecursive)) { Ok(ok__) => { @@ -3313,14 +2533,8 @@ pub trait IAzOperations_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IAzOperations {} #[cfg(feature = "Win32_System_Com")] impl IAzOperations_Vtbl { - pub const fn new() -> IAzOperations_Vtbl - where - Identity: IAzOperations_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzOperations_Impl, - { + pub const fn new() -> IAzOperations_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperations_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3330,10 +2544,7 @@ impl IAzOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAzOperations_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperations_Impl::Count(this) { Ok(ok__) => { @@ -3343,10 +2554,7 @@ impl IAzOperations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzOperations_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperations_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3376,14 +2584,8 @@ pub trait IAzPrincipalLocator_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IAzPrincipalLocator {} #[cfg(feature = "Win32_System_Com")] impl IAzPrincipalLocator_Vtbl { - pub const fn new() -> IAzPrincipalLocator_Vtbl - where - Identity: IAzPrincipalLocator_Impl, - { - unsafe extern "system" fn NameResolver(this: *mut core::ffi::c_void, ppnameresolver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzPrincipalLocator_Impl, - { + pub const fn new() -> IAzPrincipalLocator_Vtbl { + unsafe extern "system" fn NameResolver(this: *mut core::ffi::c_void, ppnameresolver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzPrincipalLocator_Impl::NameResolver(this) { Ok(ok__) => { @@ -3393,10 +2595,7 @@ impl IAzPrincipalLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ObjectPicker(this: *mut core::ffi::c_void, ppobjectpicker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzPrincipalLocator_Impl, - { + unsafe extern "system" fn ObjectPicker(this: *mut core::ffi::c_void, ppobjectpicker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzPrincipalLocator_Impl::ObjectPicker(this) { Ok(ok__) => { @@ -3450,14 +2649,8 @@ pub trait IAzRole_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAzRole {} #[cfg(feature = "Win32_System_Com")] impl IAzRole_Vtbl { - pub const fn new() -> IAzRole_Vtbl - where - Identity: IAzRole_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + pub const fn new() -> IAzRole_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::Name(this) { Ok(ok__) => { @@ -3467,17 +2660,11 @@ impl IAzRole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::SetName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::Description(this) { Ok(ok__) => { @@ -3487,17 +2674,11 @@ impl IAzRole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::ApplicationData(this) { Ok(ok__) => { @@ -3507,73 +2688,43 @@ impl IAzRole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::SetApplicationData(this, core::mem::transmute(&bstrapplicationdata)).into() } - unsafe extern "system" fn AddAppMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn AddAppMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::AddAppMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteAppMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn DeleteAppMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::DeleteAppMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddTask(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn AddTask(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::AddTask(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteTask(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn DeleteTask(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::DeleteTask(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddOperation(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn AddOperation(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::AddOperation(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteOperation(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn DeleteOperation(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::DeleteOperation(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn AddMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::AddMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn DeleteMember(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::DeleteMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::Writable(this) { Ok(ok__) => { @@ -3583,10 +2734,7 @@ impl IAzRole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::GetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -3596,17 +2744,11 @@ impl IAzRole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::SetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AppMembers(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn AppMembers(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::AppMembers(this) { Ok(ok__) => { @@ -3616,10 +2758,7 @@ impl IAzRole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Members(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn Members(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::Members(this) { Ok(ok__) => { @@ -3629,10 +2768,7 @@ impl IAzRole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Operations(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn Operations(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::Operations(this) { Ok(ok__) => { @@ -3642,10 +2778,7 @@ impl IAzRole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Tasks(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn Tasks(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::Tasks(this) { Ok(ok__) => { @@ -3655,45 +2788,27 @@ impl IAzRole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::AddPropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::DeletePropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::Submit(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn AddMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::AddMemberName(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn DeleteMemberName(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRole_Impl::DeleteMemberName(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn MembersName(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRole_Impl, - { + unsafe extern "system" fn MembersName(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::MembersName(this) { Ok(ok__) => { @@ -3749,28 +2864,16 @@ pub trait IAzRoleAssignment_Impl: Sized + IAzRole_Impl { impl windows_core::RuntimeName for IAzRoleAssignment {} #[cfg(feature = "Win32_System_Com")] impl IAzRoleAssignment_Vtbl { - pub const fn new() -> IAzRoleAssignment_Vtbl - where - Identity: IAzRoleAssignment_Impl, - { - unsafe extern "system" fn AddRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinition: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRoleAssignment_Impl, - { + pub const fn new() -> IAzRoleAssignment_Vtbl { + unsafe extern "system" fn AddRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinition: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRoleAssignment_Impl::AddRoleDefinition(this, core::mem::transmute(&bstrroledefinition)).into() } - unsafe extern "system" fn DeleteRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinition: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRoleAssignment_Impl, - { + unsafe extern "system" fn DeleteRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinition: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRoleAssignment_Impl::DeleteRoleDefinition(this, core::mem::transmute(&bstrroledefinition)).into() } - unsafe extern "system" fn RoleDefinitions(this: *mut core::ffi::c_void, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzRoleAssignment_Impl, - { + unsafe extern "system" fn RoleDefinitions(this: *mut core::ffi::c_void, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoleAssignment_Impl::RoleDefinitions(this) { Ok(ok__) => { @@ -3780,10 +2883,7 @@ impl IAzRoleAssignment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, ppscope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzRoleAssignment_Impl, - { + unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, ppscope: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoleAssignment_Impl::Scope(this) { Ok(ok__) => { @@ -3815,14 +2915,8 @@ pub trait IAzRoleAssignments_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IAzRoleAssignments {} #[cfg(feature = "Win32_System_Com")] impl IAzRoleAssignments_Vtbl { - pub const fn new() -> IAzRoleAssignments_Vtbl - where - Identity: IAzRoleAssignments_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRoleAssignments_Impl, - { + pub const fn new() -> IAzRoleAssignments_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoleAssignments_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3832,10 +2926,7 @@ impl IAzRoleAssignments_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAzRoleAssignments_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoleAssignments_Impl::Count(this) { Ok(ok__) => { @@ -3845,10 +2936,7 @@ impl IAzRoleAssignments_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzRoleAssignments_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoleAssignments_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3880,14 +2968,8 @@ pub trait IAzRoleDefinition_Impl: Sized + IAzTask_Impl { impl windows_core::RuntimeName for IAzRoleDefinition {} #[cfg(feature = "Win32_System_Com")] impl IAzRoleDefinition_Vtbl { - pub const fn new() -> IAzRoleDefinition_Vtbl - where - Identity: IAzRoleDefinition_Impl, - { - unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, brecursive: super::super::Foundation::VARIANT_BOOL, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzRoleDefinition_Impl, - { + pub const fn new() -> IAzRoleDefinition_Vtbl { + unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, brecursive: super::super::Foundation::VARIANT_BOOL, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoleDefinition_Impl::RoleAssignments(this, core::mem::transmute(&bstrscopename), core::mem::transmute_copy(&brecursive)) { Ok(ok__) => { @@ -3897,24 +2979,15 @@ impl IAzRoleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinition: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRoleDefinition_Impl, - { + unsafe extern "system" fn AddRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinition: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRoleDefinition_Impl::AddRoleDefinition(this, core::mem::transmute(&bstrroledefinition)).into() } - unsafe extern "system" fn DeleteRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinition: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRoleDefinition_Impl, - { + unsafe extern "system" fn DeleteRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinition: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzRoleDefinition_Impl::DeleteRoleDefinition(this, core::mem::transmute(&bstrroledefinition)).into() } - unsafe extern "system" fn RoleDefinitions(this: *mut core::ffi::c_void, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzRoleDefinition_Impl, - { + unsafe extern "system" fn RoleDefinitions(this: *mut core::ffi::c_void, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoleDefinition_Impl::RoleDefinitions(this) { Ok(ok__) => { @@ -3946,14 +3019,8 @@ pub trait IAzRoleDefinitions_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IAzRoleDefinitions {} #[cfg(feature = "Win32_System_Com")] impl IAzRoleDefinitions_Vtbl { - pub const fn new() -> IAzRoleDefinitions_Vtbl - where - Identity: IAzRoleDefinitions_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRoleDefinitions_Impl, - { + pub const fn new() -> IAzRoleDefinitions_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoleDefinitions_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3963,10 +3030,7 @@ impl IAzRoleDefinitions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAzRoleDefinitions_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoleDefinitions_Impl::Count(this) { Ok(ok__) => { @@ -3976,10 +3040,7 @@ impl IAzRoleDefinitions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzRoleDefinitions_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoleDefinitions_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4010,14 +3071,8 @@ pub trait IAzRoles_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAzRoles {} #[cfg(feature = "Win32_System_Com")] impl IAzRoles_Vtbl { - pub const fn new() -> IAzRoles_Vtbl - where - Identity: IAzRoles_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzRoles_Impl, - { + pub const fn new() -> IAzRoles_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoles_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -4027,10 +3082,7 @@ impl IAzRoles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAzRoles_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoles_Impl::Count(this) { Ok(ok__) => { @@ -4040,10 +3092,7 @@ impl IAzRoles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzRoles_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRoles_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4109,14 +3158,8 @@ pub trait IAzScope_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAzScope {} #[cfg(feature = "Win32_System_Com")] impl IAzScope_Vtbl { - pub const fn new() -> IAzScope_Vtbl - where - Identity: IAzScope_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + pub const fn new() -> IAzScope_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::Name(this) { Ok(ok__) => { @@ -4126,17 +3169,11 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::SetName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::Description(this) { Ok(ok__) => { @@ -4146,17 +3183,11 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::ApplicationData(this) { Ok(ok__) => { @@ -4166,17 +3197,11 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::SetApplicationData(this, core::mem::transmute(&bstrapplicationdata)).into() } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::Writable(this) { Ok(ok__) => { @@ -4186,10 +3211,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::GetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -4199,31 +3221,19 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::SetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::AddPropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::DeletePropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn PolicyAdministrators(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn PolicyAdministrators(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::PolicyAdministrators(this) { Ok(ok__) => { @@ -4233,10 +3243,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PolicyReaders(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn PolicyReaders(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::PolicyReaders(this) { Ok(ok__) => { @@ -4246,38 +3253,23 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn AddPolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::AddPolicyAdministrator(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn DeletePolicyAdministrator(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::DeletePolicyAdministrator(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn AddPolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::AddPolicyReader(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn DeletePolicyReader(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::DeletePolicyReader(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn ApplicationGroups(this: *mut core::ffi::c_void, ppgroupcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn ApplicationGroups(this: *mut core::ffi::c_void, ppgroupcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::ApplicationGroups(this) { Ok(ok__) => { @@ -4287,10 +3279,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn OpenApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::OpenApplicationGroup(this, core::mem::transmute(&bstrgroupname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -4300,10 +3289,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn CreateApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::CreateApplicationGroup(this, core::mem::transmute(&bstrgroupname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -4313,17 +3299,11 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn DeleteApplicationGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::DeleteApplicationGroup(this, core::mem::transmute(&bstrgroupname), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Roles(this: *mut core::ffi::c_void, pprolecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn Roles(this: *mut core::ffi::c_void, pprolecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::Roles(this) { Ok(ok__) => { @@ -4333,10 +3313,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pprole: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn OpenRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pprole: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::OpenRole(this, core::mem::transmute(&bstrrolename), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -4346,10 +3323,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pprole: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn CreateRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pprole: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::CreateRole(this, core::mem::transmute(&bstrrolename), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -4359,17 +3333,11 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn DeleteRole(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::DeleteRole(this, core::mem::transmute(&bstrrolename), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Tasks(this: *mut core::ffi::c_void, pptaskcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn Tasks(this: *mut core::ffi::c_void, pptaskcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::Tasks(this) { Ok(ok__) => { @@ -4379,10 +3347,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn OpenTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::OpenTask(this, core::mem::transmute(&bstrtaskname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -4392,10 +3357,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn CreateTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::CreateTask(this, core::mem::transmute(&bstrtaskname), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -4405,24 +3367,15 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn DeleteTask(this: *mut core::ffi::c_void, bstrtaskname: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::DeleteTask(this, core::mem::transmute(&bstrtaskname), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::Submit(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn CanBeDelegated(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn CanBeDelegated(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::CanBeDelegated(this) { Ok(ok__) => { @@ -4432,10 +3385,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BizrulesWritable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn BizrulesWritable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::BizrulesWritable(this) { Ok(ok__) => { @@ -4445,10 +3395,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PolicyAdministratorsName(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn PolicyAdministratorsName(this: *mut core::ffi::c_void, pvaradmins: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::PolicyAdministratorsName(this) { Ok(ok__) => { @@ -4458,10 +3405,7 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PolicyReadersName(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn PolicyReadersName(this: *mut core::ffi::c_void, pvarreaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::PolicyReadersName(this) { Ok(ok__) => { @@ -4471,31 +3415,19 @@ impl IAzScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn AddPolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::AddPolicyAdministratorName(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn DeletePolicyAdministratorName(this: *mut core::ffi::c_void, bstradmin: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::DeletePolicyAdministratorName(this, core::mem::transmute(&bstradmin), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn AddPolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::AddPolicyReaderName(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope_Impl, - { + unsafe extern "system" fn DeletePolicyReaderName(this: *mut core::ffi::c_void, bstrreader: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope_Impl::DeletePolicyReaderName(this, core::mem::transmute(&bstrreader), core::mem::transmute(&varreserved)).into() } @@ -4560,14 +3492,8 @@ pub trait IAzScope2_Impl: Sized + IAzScope_Impl { impl windows_core::RuntimeName for IAzScope2 {} #[cfg(feature = "Win32_System_Com")] impl IAzScope2_Vtbl { - pub const fn new() -> IAzScope2_Vtbl - where - Identity: IAzScope2_Impl, - { - unsafe extern "system" fn RoleDefinitions(this: *mut core::ffi::c_void, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope2_Impl, - { + pub const fn new() -> IAzScope2_Vtbl { + unsafe extern "system" fn RoleDefinitions(this: *mut core::ffi::c_void, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope2_Impl::RoleDefinitions(this) { Ok(ok__) => { @@ -4577,10 +3503,7 @@ impl IAzScope2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope2_Impl, - { + unsafe extern "system" fn CreateRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope2_Impl::CreateRoleDefinition(this, core::mem::transmute(&bstrroledefinitionname)) { Ok(ok__) => { @@ -4590,10 +3513,7 @@ impl IAzScope2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope2_Impl, - { + unsafe extern "system" fn OpenRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit, pproledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope2_Impl::OpenRoleDefinition(this, core::mem::transmute(&bstrroledefinitionname)) { Ok(ok__) => { @@ -4603,17 +3523,11 @@ impl IAzScope2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope2_Impl, - { + unsafe extern "system" fn DeleteRoleDefinition(this: *mut core::ffi::c_void, bstrroledefinitionname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope2_Impl::DeleteRoleDefinition(this, core::mem::transmute(&bstrroledefinitionname)).into() } - unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope2_Impl, - { + unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope2_Impl::RoleAssignments(this) { Ok(ok__) => { @@ -4623,10 +3537,7 @@ impl IAzScope2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit, pproleassignment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope2_Impl, - { + unsafe extern "system" fn CreateRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit, pproleassignment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope2_Impl::CreateRoleAssignment(this, core::mem::transmute(&bstrroleassignmentname)) { Ok(ok__) => { @@ -4636,10 +3547,7 @@ impl IAzScope2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit, pproleassignment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScope2_Impl, - { + unsafe extern "system" fn OpenRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit, pproleassignment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope2_Impl::OpenRoleAssignment(this, core::mem::transmute(&bstrroleassignmentname)) { Ok(ok__) => { @@ -4649,10 +3557,7 @@ impl IAzScope2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScope2_Impl, - { + unsafe extern "system" fn DeleteRoleAssignment(this: *mut core::ffi::c_void, bstrroleassignmentname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzScope2_Impl::DeleteRoleAssignment(this, core::mem::transmute(&bstrroleassignmentname)).into() } @@ -4682,14 +3587,8 @@ pub trait IAzScopes_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAzScopes {} #[cfg(feature = "Win32_System_Com")] impl IAzScopes_Vtbl { - pub const fn new() -> IAzScopes_Vtbl - where - Identity: IAzScopes_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzScopes_Impl, - { + pub const fn new() -> IAzScopes_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScopes_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -4699,10 +3598,7 @@ impl IAzScopes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAzScopes_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScopes_Impl::Count(this) { Ok(ok__) => { @@ -4712,10 +3608,7 @@ impl IAzScopes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzScopes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScopes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4769,14 +3662,8 @@ pub trait IAzTask_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAzTask {} #[cfg(feature = "Win32_System_Com")] impl IAzTask_Vtbl { - pub const fn new() -> IAzTask_Vtbl - where - Identity: IAzTask_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + pub const fn new() -> IAzTask_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::Name(this) { Ok(ok__) => { @@ -4786,17 +3673,11 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::SetName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::Description(this) { Ok(ok__) => { @@ -4806,17 +3687,11 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn ApplicationData(this: *mut core::ffi::c_void, pbstrapplicationdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::ApplicationData(this) { Ok(ok__) => { @@ -4826,17 +3701,11 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn SetApplicationData(this: *mut core::ffi::c_void, bstrapplicationdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::SetApplicationData(this, core::mem::transmute(&bstrapplicationdata)).into() } - unsafe extern "system" fn BizRule(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn BizRule(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::BizRule(this) { Ok(ok__) => { @@ -4846,17 +3715,11 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRule(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn SetBizRule(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::SetBizRule(this, core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn BizRuleLanguage(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn BizRuleLanguage(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::BizRuleLanguage(this) { Ok(ok__) => { @@ -4866,17 +3729,11 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRuleLanguage(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn SetBizRuleLanguage(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::SetBizRuleLanguage(this, core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn BizRuleImportedPath(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn BizRuleImportedPath(this: *mut core::ffi::c_void, pbstrprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::BizRuleImportedPath(this) { Ok(ok__) => { @@ -4886,17 +3743,11 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRuleImportedPath(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn SetBizRuleImportedPath(this: *mut core::ffi::c_void, bstrprop: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::SetBizRuleImportedPath(this, core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn IsRoleDefinition(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn IsRoleDefinition(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::IsRoleDefinition(this) { Ok(ok__) => { @@ -4906,17 +3757,11 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsRoleDefinition(this: *mut core::ffi::c_void, fprop: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn SetIsRoleDefinition(this: *mut core::ffi::c_void, fprop: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::SetIsRoleDefinition(this, core::mem::transmute_copy(&fprop)).into() } - unsafe extern "system" fn Operations(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn Operations(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::Operations(this) { Ok(ok__) => { @@ -4926,10 +3771,7 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Tasks(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn Tasks(this: *mut core::ffi::c_void, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::Tasks(this) { Ok(ok__) => { @@ -4939,38 +3781,23 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddOperation(this: *mut core::ffi::c_void, bstrop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn AddOperation(this: *mut core::ffi::c_void, bstrop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::AddOperation(this, core::mem::transmute(&bstrop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteOperation(this: *mut core::ffi::c_void, bstrop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn DeleteOperation(this: *mut core::ffi::c_void, bstrop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::DeleteOperation(this, core::mem::transmute(&bstrop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddTask(this: *mut core::ffi::c_void, bstrtask: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn AddTask(this: *mut core::ffi::c_void, bstrtask: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::AddTask(this, core::mem::transmute(&bstrtask), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteTask(this: *mut core::ffi::c_void, bstrtask: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn DeleteTask(this: *mut core::ffi::c_void, bstrtask: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::DeleteTask(this, core::mem::transmute(&bstrtask), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::Writable(this) { Ok(ok__) => { @@ -4980,10 +3807,7 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lpropid: i32, varreserved: core::mem::MaybeUninit, pvarprop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::GetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varreserved)) { Ok(ok__) => { @@ -4993,31 +3817,19 @@ impl IAzTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::SetProperty(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn AddPropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::AddPropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn DeletePropertyItem(this: *mut core::ffi::c_void, lpropid: i32, varprop: core::mem::MaybeUninit, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::DeletePropertyItem(this, core::mem::transmute_copy(&lpropid), core::mem::transmute(&varprop), core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTask_Impl, - { + unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, lflags: i32, varreserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::Submit(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&varreserved)).into() } @@ -5063,14 +3875,8 @@ pub trait IAzTask2_Impl: Sized + IAzTask_Impl { impl windows_core::RuntimeName for IAzTask2 {} #[cfg(feature = "Win32_System_Com")] impl IAzTask2_Vtbl { - pub const fn new() -> IAzTask2_Vtbl - where - Identity: IAzTask2_Impl, - { - unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, brecursive: super::super::Foundation::VARIANT_BOOL, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzTask2_Impl, - { + pub const fn new() -> IAzTask2_Vtbl { + unsafe extern "system" fn RoleAssignments(this: *mut core::ffi::c_void, bstrscopename: core::mem::MaybeUninit, brecursive: super::super::Foundation::VARIANT_BOOL, pproleassignments: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask2_Impl::RoleAssignments(this, core::mem::transmute(&bstrscopename), core::mem::transmute_copy(&brecursive)) { Ok(ok__) => { @@ -5096,14 +3902,8 @@ pub trait IAzTasks_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAzTasks {} #[cfg(feature = "Win32_System_Com")] impl IAzTasks_Vtbl { - pub const fn new() -> IAzTasks_Vtbl - where - Identity: IAzTasks_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAzTasks_Impl, - { + pub const fn new() -> IAzTasks_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvarobtptr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTasks_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5113,10 +3913,7 @@ impl IAzTasks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IAzTasks_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTasks_Impl::Count(this) { Ok(ok__) => { @@ -5126,10 +3923,7 @@ impl IAzTasks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAzTasks_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumptr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTasks_Impl::_NewEnum(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/impl.rs index 8399596c8a..1fc636b2eb 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/impl.rs @@ -1,4 +1,4 @@ -pub trait ISceSvcAttachmentData_Impl: Sized { +pub trait ISceSvcAttachmentData_Impl: Sized + windows_core::IUnknownImpl { fn GetData(&self, scesvchandle: *mut core::ffi::c_void, scetype: SCESVC_INFO_TYPE, ppvdata: *mut *mut core::ffi::c_void, psceenumhandle: *mut u32) -> windows_core::Result<()>; fn Initialize(&self, lpservicename: *mut i8, lptemplatename: *mut i8, lpscesvcpersistinfo: Option<&ISceSvcAttachmentPersistInfo>, pscesvchandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn FreeBuffer(&self, pvdata: *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -6,35 +6,20 @@ pub trait ISceSvcAttachmentData_Impl: Sized { } impl windows_core::RuntimeName for ISceSvcAttachmentData {} impl ISceSvcAttachmentData_Vtbl { - pub const fn new() -> ISceSvcAttachmentData_Vtbl - where - Identity: ISceSvcAttachmentData_Impl, - { - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, scesvchandle: *mut core::ffi::c_void, scetype: SCESVC_INFO_TYPE, ppvdata: *mut *mut core::ffi::c_void, psceenumhandle: *mut u32) -> windows_core::HRESULT - where - Identity: ISceSvcAttachmentData_Impl, - { + pub const fn new() -> ISceSvcAttachmentData_Vtbl { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, scesvchandle: *mut core::ffi::c_void, scetype: SCESVC_INFO_TYPE, ppvdata: *mut *mut core::ffi::c_void, psceenumhandle: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISceSvcAttachmentData_Impl::GetData(this, core::mem::transmute_copy(&scesvchandle), core::mem::transmute_copy(&scetype), core::mem::transmute_copy(&ppvdata), core::mem::transmute_copy(&psceenumhandle)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, lpservicename: *mut i8, lptemplatename: *mut i8, lpscesvcpersistinfo: *mut core::ffi::c_void, pscesvchandle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISceSvcAttachmentData_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, lpservicename: *mut i8, lptemplatename: *mut i8, lpscesvcpersistinfo: *mut core::ffi::c_void, pscesvchandle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISceSvcAttachmentData_Impl::Initialize(this, core::mem::transmute_copy(&lpservicename), core::mem::transmute_copy(&lptemplatename), windows_core::from_raw_borrowed(&lpscesvcpersistinfo), core::mem::transmute_copy(&pscesvchandle)).into() } - unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void, pvdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISceSvcAttachmentData_Impl, - { + unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void, pvdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISceSvcAttachmentData_Impl::FreeBuffer(this, core::mem::transmute_copy(&pvdata)).into() } - unsafe extern "system" fn CloseHandle(this: *mut core::ffi::c_void, scesvchandle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISceSvcAttachmentData_Impl, - { + unsafe extern "system" fn CloseHandle(this: *mut core::ffi::c_void, scesvchandle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISceSvcAttachmentData_Impl::CloseHandle(this, core::mem::transmute_copy(&scesvchandle)).into() } @@ -50,35 +35,23 @@ impl ISceSvcAttachmentData_Vtbl { iid == &::IID } } -pub trait ISceSvcAttachmentPersistInfo_Impl: Sized { +pub trait ISceSvcAttachmentPersistInfo_Impl: Sized + windows_core::IUnknownImpl { fn Save(&self, lptemplatename: *mut i8, scesvchandle: *mut *mut core::ffi::c_void, ppvdata: *mut *mut core::ffi::c_void, pboverwriteall: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn IsDirty(&self, lptemplatename: *mut i8) -> windows_core::HRESULT; fn FreeBuffer(&self, pvdata: *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISceSvcAttachmentPersistInfo {} impl ISceSvcAttachmentPersistInfo_Vtbl { - pub const fn new() -> ISceSvcAttachmentPersistInfo_Vtbl - where - Identity: ISceSvcAttachmentPersistInfo_Impl, - { - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, lptemplatename: *mut i8, scesvchandle: *mut *mut core::ffi::c_void, ppvdata: *mut *mut core::ffi::c_void, pboverwriteall: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISceSvcAttachmentPersistInfo_Impl, - { + pub const fn new() -> ISceSvcAttachmentPersistInfo_Vtbl { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, lptemplatename: *mut i8, scesvchandle: *mut *mut core::ffi::c_void, ppvdata: *mut *mut core::ffi::c_void, pboverwriteall: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISceSvcAttachmentPersistInfo_Impl::Save(this, core::mem::transmute_copy(&lptemplatename), core::mem::transmute_copy(&scesvchandle), core::mem::transmute_copy(&ppvdata), core::mem::transmute_copy(&pboverwriteall)).into() } - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void, lptemplatename: *mut i8) -> windows_core::HRESULT - where - Identity: ISceSvcAttachmentPersistInfo_Impl, - { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void, lptemplatename: *mut i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISceSvcAttachmentPersistInfo_Impl::IsDirty(this, core::mem::transmute_copy(&lptemplatename)) } - unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void, pvdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISceSvcAttachmentPersistInfo_Impl, - { + unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void, pvdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISceSvcAttachmentPersistInfo_Impl::FreeBuffer(this, core::mem::transmute_copy(&pvdata)).into() } 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 4012f4a786..27bd9b76ce 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 @@ -12,35 +12,20 @@ pub trait IAlternativeName_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for IAlternativeName {} #[cfg(feature = "Win32_System_Com")] impl IAlternativeName_Vtbl { - pub const fn new() -> IAlternativeName_Vtbl - where - Identity: IAlternativeName_Impl, - { - unsafe extern "system" fn InitializeFromString(this: *mut core::ffi::c_void, r#type: AlternativeNameType, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlternativeName_Impl, - { + pub const fn new() -> IAlternativeName_Vtbl { + unsafe extern "system" fn InitializeFromString(this: *mut core::ffi::c_void, r#type: AlternativeNameType, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlternativeName_Impl::InitializeFromString(this, core::mem::transmute_copy(&r#type), core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn InitializeFromRawData(this: *mut core::ffi::c_void, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlternativeName_Impl, - { + unsafe extern "system" fn InitializeFromRawData(this: *mut core::ffi::c_void, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlternativeName_Impl::InitializeFromRawData(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&encoding), core::mem::transmute(&strrawdata)).into() } - unsafe extern "system" fn InitializeFromOtherName(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, encoding: EncodingType, strrawdata: core::mem::MaybeUninit, tobewrapped: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAlternativeName_Impl, - { + unsafe extern "system" fn InitializeFromOtherName(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, encoding: EncodingType, strrawdata: core::mem::MaybeUninit, tobewrapped: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlternativeName_Impl::InitializeFromOtherName(this, windows_core::from_raw_borrowed(&pobjectid), core::mem::transmute_copy(&encoding), core::mem::transmute(&strrawdata), core::mem::transmute_copy(&tobewrapped)).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pvalue: *mut AlternativeNameType) -> windows_core::HRESULT - where - Identity: IAlternativeName_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pvalue: *mut AlternativeNameType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlternativeName_Impl::Type(this) { Ok(ok__) => { @@ -50,10 +35,7 @@ impl IAlternativeName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StrValue(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlternativeName_Impl, - { + unsafe extern "system" fn StrValue(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlternativeName_Impl::StrValue(this) { Ok(ok__) => { @@ -63,10 +45,7 @@ impl IAlternativeName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAlternativeName_Impl, - { + unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlternativeName_Impl::ObjectId(this) { Ok(ok__) => { @@ -76,10 +55,7 @@ impl IAlternativeName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlternativeName_Impl, - { + unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlternativeName_Impl::get_RawData(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -117,14 +93,8 @@ pub trait IAlternativeNames_Impl: Sized + super::super::super::System::Com::IDis impl windows_core::RuntimeName for IAlternativeNames {} #[cfg(feature = "Win32_System_Com")] impl IAlternativeNames_Vtbl { - pub const fn new() -> IAlternativeNames_Vtbl - where - Identity: IAlternativeNames_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAlternativeNames_Impl, - { + pub const fn new() -> IAlternativeNames_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlternativeNames_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -134,10 +104,7 @@ impl IAlternativeNames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IAlternativeNames_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlternativeNames_Impl::Count(this) { Ok(ok__) => { @@ -147,10 +114,7 @@ impl IAlternativeNames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAlternativeNames_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlternativeNames_Impl::_NewEnum(this) { Ok(ok__) => { @@ -160,24 +124,15 @@ impl IAlternativeNames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAlternativeNames_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlternativeNames_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IAlternativeNames_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlternativeNames_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAlternativeNames_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlternativeNames_Impl::Clear(this).into() } @@ -205,14 +160,8 @@ pub trait IBinaryConverter_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for IBinaryConverter {} #[cfg(feature = "Win32_System_Com")] impl IBinaryConverter_Vtbl { - pub const fn new() -> IBinaryConverter_Vtbl - where - Identity: IBinaryConverter_Impl, - { - unsafe extern "system" fn StringToString(this: *mut core::ffi::c_void, strencodedin: core::mem::MaybeUninit, encodingin: EncodingType, encoding: EncodingType, pstrencoded: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBinaryConverter_Impl, - { + pub const fn new() -> IBinaryConverter_Vtbl { + unsafe extern "system" fn StringToString(this: *mut core::ffi::c_void, strencodedin: core::mem::MaybeUninit, encodingin: EncodingType, encoding: EncodingType, pstrencoded: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBinaryConverter_Impl::StringToString(this, core::mem::transmute(&strencodedin), core::mem::transmute_copy(&encodingin), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -222,10 +171,7 @@ impl IBinaryConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VariantByteArrayToString(this: *mut core::ffi::c_void, pvarbytearray: *const core::mem::MaybeUninit, encoding: EncodingType, pstrencoded: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBinaryConverter_Impl, - { + unsafe extern "system" fn VariantByteArrayToString(this: *mut core::ffi::c_void, pvarbytearray: *const core::mem::MaybeUninit, encoding: EncodingType, pstrencoded: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBinaryConverter_Impl::VariantByteArrayToString(this, core::mem::transmute_copy(&pvarbytearray), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -235,10 +181,7 @@ impl IBinaryConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StringToVariantByteArray(this: *mut core::ffi::c_void, strencoded: core::mem::MaybeUninit, encoding: EncodingType, pvarbytearray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBinaryConverter_Impl, - { + unsafe extern "system" fn StringToVariantByteArray(this: *mut core::ffi::c_void, strencoded: core::mem::MaybeUninit, encoding: EncodingType, pvarbytearray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBinaryConverter_Impl::StringToVariantByteArray(this, core::mem::transmute(&strencoded), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -268,14 +211,8 @@ pub trait IBinaryConverter2_Impl: Sized + IBinaryConverter_Impl { impl windows_core::RuntimeName for IBinaryConverter2 {} #[cfg(feature = "Win32_System_Com")] impl IBinaryConverter2_Vtbl { - pub const fn new() -> IBinaryConverter2_Vtbl - where - Identity: IBinaryConverter2_Impl, - { - unsafe extern "system" fn StringArrayToVariantArray(this: *mut core::ffi::c_void, pvarstringarray: *const core::mem::MaybeUninit, pvarvariantarray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBinaryConverter2_Impl, - { + pub const fn new() -> IBinaryConverter2_Vtbl { + unsafe extern "system" fn StringArrayToVariantArray(this: *mut core::ffi::c_void, pvarstringarray: *const core::mem::MaybeUninit, pvarvariantarray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBinaryConverter2_Impl::StringArrayToVariantArray(this, core::mem::transmute_copy(&pvarstringarray)) { Ok(ok__) => { @@ -285,10 +222,7 @@ impl IBinaryConverter2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VariantArrayToStringArray(this: *mut core::ffi::c_void, pvarvariantarray: *const core::mem::MaybeUninit, pvarstringarray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBinaryConverter2_Impl, - { + unsafe extern "system" fn VariantArrayToStringArray(this: *mut core::ffi::c_void, pvarvariantarray: *const core::mem::MaybeUninit, pvarstringarray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBinaryConverter2_Impl::VariantArrayToStringArray(this, core::mem::transmute_copy(&pvarvariantarray)) { Ok(ok__) => { @@ -371,28 +305,16 @@ pub trait ICEnroll_Impl: Sized + super::super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for ICEnroll {} #[cfg(feature = "Win32_System_Com")] impl ICEnroll_Vtbl { - pub const fn new() -> ICEnroll_Vtbl - where - Identity: ICEnroll_Impl, - { - unsafe extern "system" fn createFilePKCS10(this: *mut core::ffi::c_void, dnname: core::mem::MaybeUninit, usage: core::mem::MaybeUninit, wszpkcs10filename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + pub const fn new() -> ICEnroll_Vtbl { + unsafe extern "system" fn createFilePKCS10(this: *mut core::ffi::c_void, dnname: core::mem::MaybeUninit, usage: core::mem::MaybeUninit, wszpkcs10filename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::createFilePKCS10(this, core::mem::transmute(&dnname), core::mem::transmute(&usage), core::mem::transmute(&wszpkcs10filename)).into() } - unsafe extern "system" fn acceptFilePKCS7(this: *mut core::ffi::c_void, wszpkcs7filename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn acceptFilePKCS7(this: *mut core::ffi::c_void, wszpkcs7filename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::acceptFilePKCS7(this, core::mem::transmute(&wszpkcs7filename)).into() } - unsafe extern "system" fn createPKCS10(this: *mut core::ffi::c_void, dnname: core::mem::MaybeUninit, usage: core::mem::MaybeUninit, ppkcs10: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn createPKCS10(this: *mut core::ffi::c_void, dnname: core::mem::MaybeUninit, usage: core::mem::MaybeUninit, ppkcs10: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::createPKCS10(this, core::mem::transmute(&dnname), core::mem::transmute(&usage)) { Ok(ok__) => { @@ -402,17 +324,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn acceptPKCS7(this: *mut core::ffi::c_void, pkcs7: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn acceptPKCS7(this: *mut core::ffi::c_void, pkcs7: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::acceptPKCS7(this, core::mem::transmute(&pkcs7)).into() } - unsafe extern "system" fn getCertFromPKCS7(this: *mut core::ffi::c_void, wszpkcs7: core::mem::MaybeUninit, pbstrcert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn getCertFromPKCS7(this: *mut core::ffi::c_void, wszpkcs7: core::mem::MaybeUninit, pbstrcert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::getCertFromPKCS7(this, core::mem::transmute(&wszpkcs7)) { Ok(ok__) => { @@ -422,10 +338,7 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn enumProviders(this: *mut core::ffi::c_void, dwindex: i32, dwflags: i32, pbstrprovname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn enumProviders(this: *mut core::ffi::c_void, dwindex: i32, dwflags: i32, pbstrprovname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::enumProviders(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -435,10 +348,7 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn enumContainers(this: *mut core::ffi::c_void, dwindex: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn enumContainers(this: *mut core::ffi::c_void, dwindex: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::enumContainers(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -448,17 +358,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn freeRequestInfo(this: *mut core::ffi::c_void, pkcs7orpkcs10: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn freeRequestInfo(this: *mut core::ffi::c_void, pkcs7orpkcs10: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::freeRequestInfo(this, core::mem::transmute(&pkcs7orpkcs10)).into() } - unsafe extern "system" fn MyStoreName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn MyStoreName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::MyStoreName(this) { Ok(ok__) => { @@ -468,17 +372,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMyStoreName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetMyStoreName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetMyStoreName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn MyStoreType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn MyStoreType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::MyStoreType(this) { Ok(ok__) => { @@ -488,17 +386,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMyStoreType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetMyStoreType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetMyStoreType(this, core::mem::transmute(&bstrtype)).into() } - unsafe extern "system" fn MyStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn MyStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::MyStoreFlags(this) { Ok(ok__) => { @@ -508,17 +400,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMyStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetMyStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetMyStoreFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn CAStoreName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn CAStoreName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::CAStoreName(this) { Ok(ok__) => { @@ -528,17 +414,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCAStoreName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetCAStoreName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetCAStoreName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn CAStoreType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn CAStoreType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::CAStoreType(this) { Ok(ok__) => { @@ -548,17 +428,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCAStoreType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetCAStoreType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetCAStoreType(this, core::mem::transmute(&bstrtype)).into() } - unsafe extern "system" fn CAStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn CAStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::CAStoreFlags(this) { Ok(ok__) => { @@ -568,17 +442,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCAStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetCAStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetCAStoreFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RootStoreName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn RootStoreName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::RootStoreName(this) { Ok(ok__) => { @@ -588,17 +456,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRootStoreName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetRootStoreName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetRootStoreName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn RootStoreType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn RootStoreType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::RootStoreType(this) { Ok(ok__) => { @@ -608,17 +470,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRootStoreType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetRootStoreType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetRootStoreType(this, core::mem::transmute(&bstrtype)).into() } - unsafe extern "system" fn RootStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn RootStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::RootStoreFlags(this) { Ok(ok__) => { @@ -628,17 +484,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRootStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetRootStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetRootStoreFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RequestStoreName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn RequestStoreName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::RequestStoreName(this) { Ok(ok__) => { @@ -648,17 +498,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRequestStoreName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetRequestStoreName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetRequestStoreName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn RequestStoreType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn RequestStoreType(this: *mut core::ffi::c_void, pbstrtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::RequestStoreType(this) { Ok(ok__) => { @@ -668,17 +512,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRequestStoreType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetRequestStoreType(this: *mut core::ffi::c_void, bstrtype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetRequestStoreType(this, core::mem::transmute(&bstrtype)).into() } - unsafe extern "system" fn RequestStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn RequestStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::RequestStoreFlags(this) { Ok(ok__) => { @@ -688,17 +526,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRequestStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetRequestStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetRequestStoreFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn ContainerName(this: *mut core::ffi::c_void, pbstrcontainer: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn ContainerName(this: *mut core::ffi::c_void, pbstrcontainer: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::ContainerName(this) { Ok(ok__) => { @@ -708,17 +540,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContainerName(this: *mut core::ffi::c_void, bstrcontainer: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetContainerName(this: *mut core::ffi::c_void, bstrcontainer: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetContainerName(this, core::mem::transmute(&bstrcontainer)).into() } - unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pbstrprovider: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pbstrprovider: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::ProviderName(this) { Ok(ok__) => { @@ -728,17 +554,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderName(this: *mut core::ffi::c_void, bstrprovider: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetProviderName(this: *mut core::ffi::c_void, bstrprovider: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetProviderName(this, core::mem::transmute(&bstrprovider)).into() } - unsafe extern "system" fn ProviderType(this: *mut core::ffi::c_void, pdwtype: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn ProviderType(this: *mut core::ffi::c_void, pdwtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::ProviderType(this) { Ok(ok__) => { @@ -748,17 +568,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderType(this: *mut core::ffi::c_void, dwtype: i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetProviderType(this: *mut core::ffi::c_void, dwtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetProviderType(this, core::mem::transmute_copy(&dwtype)).into() } - unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pdw: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pdw: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::KeySpec(this) { Ok(ok__) => { @@ -768,17 +582,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeySpec(this: *mut core::ffi::c_void, dw: i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetKeySpec(this: *mut core::ffi::c_void, dw: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetKeySpec(this, core::mem::transmute_copy(&dw)).into() } - unsafe extern "system" fn ProviderFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn ProviderFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::ProviderFlags(this) { Ok(ok__) => { @@ -788,17 +596,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetProviderFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetProviderFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn UseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn UseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::UseExistingKeySet(this) { Ok(ok__) => { @@ -808,17 +610,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetUseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetUseExistingKeySet(this, core::mem::transmute_copy(&fuseexistingkeys)).into() } - unsafe extern "system" fn GenKeyFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn GenKeyFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::GenKeyFlags(this) { Ok(ok__) => { @@ -828,17 +624,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGenKeyFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetGenKeyFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetGenKeyFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn DeleteRequestCert(this: *mut core::ffi::c_void, fdelete: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn DeleteRequestCert(this: *mut core::ffi::c_void, fdelete: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::DeleteRequestCert(this) { Ok(ok__) => { @@ -848,17 +638,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDeleteRequestCert(this: *mut core::ffi::c_void, fdelete: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetDeleteRequestCert(this: *mut core::ffi::c_void, fdelete: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetDeleteRequestCert(this, core::mem::transmute_copy(&fdelete)).into() } - unsafe extern "system" fn WriteCertToCSP(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn WriteCertToCSP(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::WriteCertToCSP(this) { Ok(ok__) => { @@ -868,17 +652,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWriteCertToCSP(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetWriteCertToCSP(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetWriteCertToCSP(this, core::mem::transmute_copy(&fbool)).into() } - unsafe extern "system" fn SPCFileName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SPCFileName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::SPCFileName(this) { Ok(ok__) => { @@ -888,17 +666,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSPCFileName(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetSPCFileName(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetSPCFileName(this, core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn PVKFileName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn PVKFileName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::PVKFileName(this) { Ok(ok__) => { @@ -908,17 +680,11 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPVKFileName(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetPVKFileName(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetPVKFileName(this, core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::HashAlgorithm(this) { Ok(ok__) => { @@ -928,10 +694,7 @@ impl ICEnroll_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll_Impl, - { + unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetHashAlgorithm(this, core::mem::transmute(&bstr)).into() } @@ -1012,28 +775,16 @@ pub trait ICEnroll2_Impl: Sized + ICEnroll_Impl { impl windows_core::RuntimeName for ICEnroll2 {} #[cfg(feature = "Win32_System_Com")] impl ICEnroll2_Vtbl { - pub const fn new() -> ICEnroll2_Vtbl - where - Identity: ICEnroll2_Impl, - { - unsafe extern "system" fn addCertTypeToRequest(this: *mut core::ffi::c_void, certtype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll2_Impl, - { + pub const fn new() -> ICEnroll2_Vtbl { + unsafe extern "system" fn addCertTypeToRequest(this: *mut core::ffi::c_void, certtype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll2_Impl::addCertTypeToRequest(this, core::mem::transmute(&certtype)).into() } - unsafe extern "system" fn addNameValuePairToSignature(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll2_Impl, - { + unsafe extern "system" fn addNameValuePairToSignature(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll2_Impl::addNameValuePairToSignature(this, core::mem::transmute(&name), core::mem::transmute(&value)).into() } - unsafe extern "system" fn WriteCertToUserDS(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll2_Impl, - { + unsafe extern "system" fn WriteCertToUserDS(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll2_Impl::WriteCertToUserDS(this) { Ok(ok__) => { @@ -1043,17 +794,11 @@ impl ICEnroll2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWriteCertToUserDS(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll2_Impl, - { + unsafe extern "system" fn SetWriteCertToUserDS(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll2_Impl::SetWriteCertToUserDS(this, core::mem::transmute_copy(&fbool)).into() } - unsafe extern "system" fn EnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll2_Impl, - { + unsafe extern "system" fn EnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll2_Impl::EnableT61DNEncoding(this) { Ok(ok__) => { @@ -1063,10 +808,7 @@ impl ICEnroll2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll2_Impl, - { + unsafe extern "system" fn SetEnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll2_Impl::SetEnableT61DNEncoding(this, core::mem::transmute_copy(&fbool)).into() } @@ -1105,28 +847,16 @@ pub trait ICEnroll3_Impl: Sized + ICEnroll2_Impl { impl windows_core::RuntimeName for ICEnroll3 {} #[cfg(feature = "Win32_System_Com")] impl ICEnroll3_Vtbl { - pub const fn new() -> ICEnroll3_Vtbl - where - Identity: ICEnroll3_Impl, - { - unsafe extern "system" fn InstallPKCS7(this: *mut core::ffi::c_void, pkcs7: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + pub const fn new() -> ICEnroll3_Vtbl { + unsafe extern "system" fn InstallPKCS7(this: *mut core::ffi::c_void, pkcs7: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll3_Impl::InstallPKCS7(this, core::mem::transmute(&pkcs7)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll3_Impl::Reset(this).into() } - unsafe extern "system" fn GetSupportedKeySpec(this: *mut core::ffi::c_void, pdwkeyspec: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn GetSupportedKeySpec(this: *mut core::ffi::c_void, pdwkeyspec: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::GetSupportedKeySpec(this) { Ok(ok__) => { @@ -1136,10 +866,7 @@ impl ICEnroll3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyLen(this: *mut core::ffi::c_void, fmin: super::super::super::Foundation::BOOL, fexchange: super::super::super::Foundation::BOOL, pdwkeysize: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn GetKeyLen(this: *mut core::ffi::c_void, fmin: super::super::super::Foundation::BOOL, fexchange: super::super::super::Foundation::BOOL, pdwkeysize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::GetKeyLen(this, core::mem::transmute_copy(&fmin), core::mem::transmute_copy(&fexchange)) { Ok(ok__) => { @@ -1149,10 +876,7 @@ impl ICEnroll3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumAlgs(this: *mut core::ffi::c_void, dwindex: i32, algclass: i32, pdwalgid: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn EnumAlgs(this: *mut core::ffi::c_void, dwindex: i32, algclass: i32, pdwalgid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::EnumAlgs(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&algclass)) { Ok(ok__) => { @@ -1162,10 +886,7 @@ impl ICEnroll3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAlgName(this: *mut core::ffi::c_void, algid: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn GetAlgName(this: *mut core::ffi::c_void, algid: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::GetAlgName(this, core::mem::transmute_copy(&algid)) { Ok(ok__) => { @@ -1175,17 +896,11 @@ impl ICEnroll3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn SetReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll3_Impl::SetReuseHardwareKeyIfUnableToGenNew(this, core::mem::transmute_copy(&freusehardwarekeyifunabletogennew)).into() } - unsafe extern "system" fn ReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn ReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::ReuseHardwareKeyIfUnableToGenNew(this) { Ok(ok__) => { @@ -1195,17 +910,11 @@ impl ICEnroll3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgID(this: *mut core::ffi::c_void, hashalgid: i32) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn SetHashAlgID(this: *mut core::ffi::c_void, hashalgid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll3_Impl::SetHashAlgID(this, core::mem::transmute_copy(&hashalgid)).into() } - unsafe extern "system" fn HashAlgID(this: *mut core::ffi::c_void, hashalgid: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn HashAlgID(this: *mut core::ffi::c_void, hashalgid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::HashAlgID(this) { Ok(ok__) => { @@ -1215,17 +924,11 @@ impl ICEnroll3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn SetLimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll3_Impl::SetLimitExchangeKeyToEncipherment(this, core::mem::transmute_copy(&flimitexchangekeytoencipherment)).into() } - unsafe extern "system" fn LimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn LimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::LimitExchangeKeyToEncipherment(this) { Ok(ok__) => { @@ -1235,17 +938,11 @@ impl ICEnroll3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn SetEnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll3_Impl::SetEnableSMIMECapabilities(this, core::mem::transmute_copy(&fenablesmimecapabilities)).into() } - unsafe extern "system" fn EnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll3_Impl, - { + unsafe extern "system" fn EnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::EnableSMIMECapabilities(this) { Ok(ok__) => { @@ -1317,21 +1014,12 @@ pub trait ICEnroll4_Impl: Sized + ICEnroll3_Impl { impl windows_core::RuntimeName for ICEnroll4 {} #[cfg(feature = "Win32_System_Com")] impl ICEnroll4_Vtbl { - pub const fn new() -> ICEnroll4_Vtbl - where - Identity: ICEnroll4_Impl, - { - unsafe extern "system" fn SetPrivateKeyArchiveCertificate(this: *mut core::ffi::c_void, bstrcert: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + pub const fn new() -> ICEnroll4_Vtbl { + unsafe extern "system" fn SetPrivateKeyArchiveCertificate(this: *mut core::ffi::c_void, bstrcert: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::SetPrivateKeyArchiveCertificate(this, core::mem::transmute(&bstrcert)).into() } - unsafe extern "system" fn PrivateKeyArchiveCertificate(this: *mut core::ffi::c_void, pbstrcert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn PrivateKeyArchiveCertificate(this: *mut core::ffi::c_void, pbstrcert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::PrivateKeyArchiveCertificate(this) { Ok(ok__) => { @@ -1341,17 +1029,11 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetThumbPrint(this: *mut core::ffi::c_void, bstrthumbprint: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn SetThumbPrint(this: *mut core::ffi::c_void, bstrthumbprint: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::SetThumbPrint(this, core::mem::transmute(&bstrthumbprint)).into() } - unsafe extern "system" fn ThumbPrint(this: *mut core::ffi::c_void, pbstrthumbprint: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn ThumbPrint(this: *mut core::ffi::c_void, pbstrthumbprint: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::ThumbPrint(this) { Ok(ok__) => { @@ -1361,10 +1043,7 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn binaryToString(this: *mut core::ffi::c_void, flags: i32, strbinary: core::mem::MaybeUninit, pstrencoded: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn binaryToString(this: *mut core::ffi::c_void, flags: i32, strbinary: core::mem::MaybeUninit, pstrencoded: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::binaryToString(this, core::mem::transmute_copy(&flags), core::mem::transmute(&strbinary)) { Ok(ok__) => { @@ -1374,10 +1053,7 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn stringToBinary(this: *mut core::ffi::c_void, flags: i32, strencoded: core::mem::MaybeUninit, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn stringToBinary(this: *mut core::ffi::c_void, flags: i32, strencoded: core::mem::MaybeUninit, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::stringToBinary(this, core::mem::transmute_copy(&flags), core::mem::transmute(&strencoded)) { Ok(ok__) => { @@ -1387,45 +1063,27 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn addExtensionToRequest(this: *mut core::ffi::c_void, flags: i32, strname: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn addExtensionToRequest(this: *mut core::ffi::c_void, flags: i32, strname: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::addExtensionToRequest(this, core::mem::transmute_copy(&flags), core::mem::transmute(&strname), core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn addAttributeToRequest(this: *mut core::ffi::c_void, flags: i32, strname: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn addAttributeToRequest(this: *mut core::ffi::c_void, flags: i32, strname: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::addAttributeToRequest(this, core::mem::transmute_copy(&flags), core::mem::transmute(&strname), core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn addNameValuePairToRequest(this: *mut core::ffi::c_void, flags: i32, strname: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn addNameValuePairToRequest(this: *mut core::ffi::c_void, flags: i32, strname: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::addNameValuePairToRequest(this, core::mem::transmute_copy(&flags), core::mem::transmute(&strname), core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn resetExtensions(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn resetExtensions(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::resetExtensions(this).into() } - unsafe extern "system" fn resetAttributes(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn resetAttributes(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::resetAttributes(this).into() } - unsafe extern "system" fn createRequest(this: *mut core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: core::mem::MaybeUninit, usage: core::mem::MaybeUninit, pstrrequest: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn createRequest(this: *mut core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: core::mem::MaybeUninit, usage: core::mem::MaybeUninit, pstrrequest: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::createRequest(this, core::mem::transmute_copy(&flags), core::mem::transmute(&strdnname), core::mem::transmute(&usage)) { Ok(ok__) => { @@ -1435,31 +1093,19 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createFileRequest(this: *mut core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: core::mem::MaybeUninit, strusage: core::mem::MaybeUninit, strrequestfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn createFileRequest(this: *mut core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: core::mem::MaybeUninit, strusage: core::mem::MaybeUninit, strrequestfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::createFileRequest(this, core::mem::transmute_copy(&flags), core::mem::transmute(&strdnname), core::mem::transmute(&strusage), core::mem::transmute(&strrequestfilename)).into() } - unsafe extern "system" fn acceptResponse(this: *mut core::ffi::c_void, strresponse: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn acceptResponse(this: *mut core::ffi::c_void, strresponse: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::acceptResponse(this, core::mem::transmute(&strresponse)).into() } - unsafe extern "system" fn acceptFileResponse(this: *mut core::ffi::c_void, strresponsefilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn acceptFileResponse(this: *mut core::ffi::c_void, strresponsefilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::acceptFileResponse(this, core::mem::transmute(&strresponsefilename)).into() } - unsafe extern "system" fn getCertFromResponse(this: *mut core::ffi::c_void, strresponse: core::mem::MaybeUninit, pstrcert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn getCertFromResponse(this: *mut core::ffi::c_void, strresponse: core::mem::MaybeUninit, pstrcert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::getCertFromResponse(this, core::mem::transmute(&strresponse)) { Ok(ok__) => { @@ -1469,10 +1115,7 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getCertFromFileResponse(this: *mut core::ffi::c_void, strresponsefilename: core::mem::MaybeUninit, pstrcert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn getCertFromFileResponse(this: *mut core::ffi::c_void, strresponsefilename: core::mem::MaybeUninit, pstrcert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::getCertFromFileResponse(this, core::mem::transmute(&strresponsefilename)) { Ok(ok__) => { @@ -1482,10 +1125,7 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createPFX(this: *mut core::ffi::c_void, strpassword: core::mem::MaybeUninit, pstrpfx: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn createPFX(this: *mut core::ffi::c_void, strpassword: core::mem::MaybeUninit, pstrpfx: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::createPFX(this, core::mem::transmute(&strpassword)) { Ok(ok__) => { @@ -1495,24 +1135,15 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn createFilePFX(this: *mut core::ffi::c_void, strpassword: core::mem::MaybeUninit, strpfxfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn createFilePFX(this: *mut core::ffi::c_void, strpassword: core::mem::MaybeUninit, strpfxfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::createFilePFX(this, core::mem::transmute(&strpassword), core::mem::transmute(&strpfxfilename)).into() } - unsafe extern "system" fn setPendingRequestInfo(this: *mut core::ffi::c_void, lrequestid: i32, strcadns: core::mem::MaybeUninit, strcaname: core::mem::MaybeUninit, strfriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn setPendingRequestInfo(this: *mut core::ffi::c_void, lrequestid: i32, strcadns: core::mem::MaybeUninit, strcaname: core::mem::MaybeUninit, strfriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::setPendingRequestInfo(this, core::mem::transmute_copy(&lrequestid), core::mem::transmute(&strcadns), core::mem::transmute(&strcaname), core::mem::transmute(&strfriendlyname)).into() } - unsafe extern "system" fn enumPendingRequest(this: *mut core::ffi::c_void, lindex: i32, ldesiredproperty: PENDING_REQUEST_DESIRED_PROPERTY, pvarproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn enumPendingRequest(this: *mut core::ffi::c_void, lindex: i32, ldesiredproperty: PENDING_REQUEST_DESIRED_PROPERTY, pvarproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::enumPendingRequest(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&ldesiredproperty)) { Ok(ok__) => { @@ -1522,17 +1153,11 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn removePendingRequest(this: *mut core::ffi::c_void, strthumbprint: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn removePendingRequest(this: *mut core::ffi::c_void, strthumbprint: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::removePendingRequest(this, core::mem::transmute(&strthumbprint)).into() } - unsafe extern "system" fn GetKeyLenEx(this: *mut core::ffi::c_void, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC, pdwkeysize: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn GetKeyLenEx(this: *mut core::ffi::c_void, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC, pdwkeysize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::GetKeyLenEx(this, core::mem::transmute_copy(&lsizespec), core::mem::transmute_copy(&lkeyspec)) { Ok(ok__) => { @@ -1542,10 +1167,7 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallPKCS7Ex(this: *mut core::ffi::c_void, pkcs7: core::mem::MaybeUninit, plcertinstalled: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn InstallPKCS7Ex(this: *mut core::ffi::c_void, pkcs7: core::mem::MaybeUninit, plcertinstalled: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::InstallPKCS7Ex(this, core::mem::transmute(&pkcs7)) { Ok(ok__) => { @@ -1555,17 +1177,11 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn addCertTypeToRequestEx(this: *mut core::ffi::c_void, ltype: ADDED_CERT_TYPE, bstroidorname: core::mem::MaybeUninit, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn addCertTypeToRequestEx(this: *mut core::ffi::c_void, ltype: ADDED_CERT_TYPE, bstroidorname: core::mem::MaybeUninit, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::addCertTypeToRequestEx(this, 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(this: *mut core::ffi::c_void, strprovname: core::mem::MaybeUninit, plprovtype: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn getProviderType(this: *mut core::ffi::c_void, strprovname: core::mem::MaybeUninit, plprovtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::getProviderType(this, core::mem::transmute(&strprovname)) { Ok(ok__) => { @@ -1575,24 +1191,15 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, bstrcert: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, bstrcert: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::SetSignerCertificate(this, core::mem::transmute(&bstrcert)).into() } - unsafe extern "system" fn SetClientId(this: *mut core::ffi::c_void, lclientid: i32) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn SetClientId(this: *mut core::ffi::c_void, lclientid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::SetClientId(this, core::mem::transmute_copy(&lclientid)).into() } - unsafe extern "system" fn ClientId(this: *mut core::ffi::c_void, plclientid: *mut i32) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn ClientId(this: *mut core::ffi::c_void, plclientid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::ClientId(this) { Ok(ok__) => { @@ -1602,31 +1209,19 @@ impl ICEnroll4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn addBlobPropertyToCertificate(this: *mut core::ffi::c_void, lpropertyid: i32, lreserved: i32, bstrproperty: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn addBlobPropertyToCertificate(this: *mut core::ffi::c_void, lpropertyid: i32, lreserved: i32, bstrproperty: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::addBlobPropertyToCertificate(this, core::mem::transmute_copy(&lpropertyid), core::mem::transmute_copy(&lreserved), core::mem::transmute(&bstrproperty)).into() } - unsafe extern "system" fn resetBlobProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn resetBlobProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::resetBlobProperties(this).into() } - unsafe extern "system" fn SetIncludeSubjectKeyID(this: *mut core::ffi::c_void, finclude: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn SetIncludeSubjectKeyID(this: *mut core::ffi::c_void, finclude: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::SetIncludeSubjectKeyID(this, core::mem::transmute_copy(&finclude)).into() } - unsafe extern "system" fn IncludeSubjectKeyID(this: *mut core::ffi::c_void, pfinclude: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICEnroll4_Impl, - { + unsafe extern "system" fn IncludeSubjectKeyID(this: *mut core::ffi::c_void, pfinclude: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::IncludeSubjectKeyID(this) { Ok(ok__) => { @@ -1694,14 +1289,8 @@ pub trait ICertAdmin_Impl: Sized + super::super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ICertAdmin {} #[cfg(feature = "Win32_System_Com")] impl ICertAdmin_Vtbl { - pub const fn new() -> ICertAdmin_Vtbl - where - Identity: ICertAdmin_Impl, - { - unsafe extern "system" fn IsValidCertificate(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strserialnumber: core::mem::MaybeUninit, pdisposition: *mut i32) -> windows_core::HRESULT - where - Identity: ICertAdmin_Impl, - { + pub const fn new() -> ICertAdmin_Vtbl { + unsafe extern "system" fn IsValidCertificate(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strserialnumber: core::mem::MaybeUninit, pdisposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin_Impl::IsValidCertificate(this, core::mem::transmute(&strconfig), core::mem::transmute(&strserialnumber)) { Ok(ok__) => { @@ -1711,10 +1300,7 @@ impl ICertAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRevocationReason(this: *mut core::ffi::c_void, preason: *mut i32) -> windows_core::HRESULT - where - Identity: ICertAdmin_Impl, - { + unsafe extern "system" fn GetRevocationReason(this: *mut core::ffi::c_void, preason: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin_Impl::GetRevocationReason(this) { Ok(ok__) => { @@ -1724,38 +1310,23 @@ impl ICertAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RevokeCertificate(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strserialnumber: core::mem::MaybeUninit, reason: i32, date: f64) -> windows_core::HRESULT - where - Identity: ICertAdmin_Impl, - { + unsafe extern "system" fn RevokeCertificate(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strserialnumber: core::mem::MaybeUninit, reason: i32, date: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertAdmin_Impl::RevokeCertificate(this, core::mem::transmute(&strconfig), core::mem::transmute(&strserialnumber), core::mem::transmute_copy(&reason), core::mem::transmute_copy(&date)).into() } - unsafe extern "system" fn SetRequestAttributes(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, strattributes: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertAdmin_Impl, - { + unsafe extern "system" fn SetRequestAttributes(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, strattributes: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertAdmin_Impl::SetRequestAttributes(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&requestid), core::mem::transmute(&strattributes)).into() } - unsafe extern "system" fn SetCertificateExtension(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, strextensionname: core::mem::MaybeUninit, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertAdmin_Impl, - { + unsafe extern "system" fn SetCertificateExtension(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, strextensionname: core::mem::MaybeUninit, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertAdmin_Impl::SetCertificateExtension(this, 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(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32) -> windows_core::HRESULT - where - Identity: ICertAdmin_Impl, - { + unsafe extern "system" fn DenyRequest(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertAdmin_Impl::DenyRequest(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&requestid)).into() } - unsafe extern "system" fn ResubmitRequest(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, pdisposition: *mut i32) -> windows_core::HRESULT - where - Identity: ICertAdmin_Impl, - { + unsafe extern "system" fn ResubmitRequest(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, pdisposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin_Impl::ResubmitRequest(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&requestid)) { Ok(ok__) => { @@ -1765,17 +1336,11 @@ impl ICertAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PublishCRL(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, date: f64) -> windows_core::HRESULT - where - Identity: ICertAdmin_Impl, - { + unsafe extern "system" fn PublishCRL(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, date: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertAdmin_Impl::PublishCRL(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&date)).into() } - unsafe extern "system" fn GetCRL(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, flags: i32, pstrcrl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertAdmin_Impl, - { + unsafe extern "system" fn GetCRL(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, flags: i32, pstrcrl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin_Impl::GetCRL(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1785,10 +1350,7 @@ impl ICertAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImportCertificate(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strcertificate: core::mem::MaybeUninit, flags: CERT_IMPORT_FLAGS, prequestid: *mut i32) -> windows_core::HRESULT - where - Identity: ICertAdmin_Impl, - { + unsafe extern "system" fn ImportCertificate(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strcertificate: core::mem::MaybeUninit, flags: CERT_IMPORT_FLAGS, prequestid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin_Impl::ImportCertificate(this, core::mem::transmute(&strconfig), core::mem::transmute(&strcertificate), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1834,21 +1396,12 @@ pub trait ICertAdmin2_Impl: Sized + ICertAdmin_Impl { impl windows_core::RuntimeName for ICertAdmin2 {} #[cfg(feature = "Win32_System_Com")] impl ICertAdmin2_Vtbl { - pub const fn new() -> ICertAdmin2_Vtbl - where - Identity: ICertAdmin2_Impl, - { - unsafe extern "system" fn PublishCRLs(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, date: f64, crlflags: i32) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + pub const fn new() -> ICertAdmin2_Vtbl { + unsafe extern "system" fn PublishCRLs(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, date: f64, crlflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertAdmin2_Impl::PublishCRLs(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&date), core::mem::transmute_copy(&crlflags)).into() } - unsafe extern "system" fn GetCAProperty(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + unsafe extern "system" fn GetCAProperty(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin2_Impl::GetCAProperty(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&propid), core::mem::transmute_copy(&propindex), core::mem::transmute_copy(&proptype), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1858,17 +1411,11 @@ impl ICertAdmin2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCAProperty(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + unsafe extern "system" fn SetCAProperty(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertAdmin2_Impl::SetCAProperty(this, 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(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, ppropflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + unsafe extern "system" fn GetCAPropertyFlags(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, ppropflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin2_Impl::GetCAPropertyFlags(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&propid)) { Ok(ok__) => { @@ -1878,10 +1425,7 @@ impl ICertAdmin2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAPropertyDisplayName(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, pstrdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + unsafe extern "system" fn GetCAPropertyDisplayName(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, pstrdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin2_Impl::GetCAPropertyDisplayName(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&propid)) { Ok(ok__) => { @@ -1891,10 +1435,7 @@ impl ICertAdmin2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetArchivedKey(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, flags: i32, pstrarchivedkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + unsafe extern "system" fn GetArchivedKey(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, flags: i32, pstrarchivedkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin2_Impl::GetArchivedKey(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&requestid), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1904,10 +1445,7 @@ impl ICertAdmin2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConfigEntry(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strnodepath: core::mem::MaybeUninit, strentryname: core::mem::MaybeUninit, pvarentry: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + unsafe extern "system" fn GetConfigEntry(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strnodepath: core::mem::MaybeUninit, strentryname: core::mem::MaybeUninit, pvarentry: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin2_Impl::GetConfigEntry(this, core::mem::transmute(&strconfig), core::mem::transmute(&strnodepath), core::mem::transmute(&strentryname)) { Ok(ok__) => { @@ -1917,24 +1455,15 @@ impl ICertAdmin2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConfigEntry(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strnodepath: core::mem::MaybeUninit, strentryname: core::mem::MaybeUninit, pvarentry: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + unsafe extern "system" fn SetConfigEntry(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strnodepath: core::mem::MaybeUninit, strentryname: core::mem::MaybeUninit, pvarentry: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertAdmin2_Impl::SetConfigEntry(this, core::mem::transmute(&strconfig), core::mem::transmute(&strnodepath), core::mem::transmute(&strentryname), core::mem::transmute_copy(&pvarentry)).into() } - unsafe extern "system" fn ImportKey(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, strcerthash: core::mem::MaybeUninit, flags: CERT_IMPORT_FLAGS, strkey: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + unsafe extern "system" fn ImportKey(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, strcerthash: core::mem::MaybeUninit, flags: CERT_IMPORT_FLAGS, strkey: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertAdmin2_Impl::ImportKey(this, 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(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, proles: *mut CERTADMIN_GET_ROLES_FLAGS) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + unsafe extern "system" fn GetMyRoles(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, proles: *mut CERTADMIN_GET_ROLES_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin2_Impl::GetMyRoles(this, core::mem::transmute(&strconfig)) { Ok(ok__) => { @@ -1944,10 +1473,7 @@ impl ICertAdmin2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRow(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32, pcdeleted: *mut i32) -> windows_core::HRESULT - where - Identity: ICertAdmin2_Impl, - { + unsafe extern "system" fn DeleteRow(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32, pcdeleted: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertAdmin2_Impl::DeleteRow(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&date), core::mem::transmute_copy(&table), core::mem::transmute_copy(&rowid)) { Ok(ok__) => { @@ -1987,14 +1513,8 @@ pub trait ICertConfig_Impl: Sized + super::super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ICertConfig {} #[cfg(feature = "Win32_System_Com")] impl ICertConfig_Vtbl { - pub const fn new() -> ICertConfig_Vtbl - where - Identity: ICertConfig_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, index: i32, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ICertConfig_Impl, - { + pub const fn new() -> ICertConfig_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, index: i32, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertConfig_Impl::Reset(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2004,10 +1524,7 @@ impl ICertConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: ICertConfig_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertConfig_Impl::Next(this) { Ok(ok__) => { @@ -2017,10 +1534,7 @@ impl ICertConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetField(this: *mut core::ffi::c_void, strfieldname: core::mem::MaybeUninit, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertConfig_Impl, - { + unsafe extern "system" fn GetField(this: *mut core::ffi::c_void, strfieldname: core::mem::MaybeUninit, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertConfig_Impl::GetField(this, core::mem::transmute(&strfieldname)) { Ok(ok__) => { @@ -2030,10 +1544,7 @@ impl ICertConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConfig(this: *mut core::ffi::c_void, flags: i32, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertConfig_Impl, - { + unsafe extern "system" fn GetConfig(this: *mut core::ffi::c_void, flags: i32, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertConfig_Impl::GetConfig(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -2063,14 +1574,8 @@ pub trait ICertConfig2_Impl: Sized + ICertConfig_Impl { impl windows_core::RuntimeName for ICertConfig2 {} #[cfg(feature = "Win32_System_Com")] impl ICertConfig2_Vtbl { - pub const fn new() -> ICertConfig2_Vtbl - where - Identity: ICertConfig2_Impl, - { - unsafe extern "system" fn SetSharedFolder(this: *mut core::ffi::c_void, strsharedfolder: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertConfig2_Impl, - { + pub const fn new() -> ICertConfig2_Vtbl { + unsafe extern "system" fn SetSharedFolder(this: *mut core::ffi::c_void, strsharedfolder: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertConfig2_Impl::SetSharedFolder(this, core::mem::transmute(&strsharedfolder)).into() } @@ -2094,21 +1599,12 @@ pub trait ICertEncodeAltName_Impl: Sized + super::super::super::System::Com::IDi impl windows_core::RuntimeName for ICertEncodeAltName {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeAltName_Vtbl { - pub const fn new() -> ICertEncodeAltName_Vtbl - where - Identity: ICertEncodeAltName_Impl, - { - unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName_Impl, - { + pub const fn new() -> ICertEncodeAltName_Vtbl { + unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeAltName_Impl::Decode(this, core::mem::transmute(&strbinary)).into() } - unsafe extern "system" fn GetNameCount(this: *mut core::ffi::c_void, pnamecount: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName_Impl, - { + unsafe extern "system" fn GetNameCount(this: *mut core::ffi::c_void, pnamecount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeAltName_Impl::GetNameCount(this) { Ok(ok__) => { @@ -2118,10 +1614,7 @@ impl ICertEncodeAltName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNameChoice(this: *mut core::ffi::c_void, nameindex: i32, pnamechoice: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName_Impl, - { + unsafe extern "system" fn GetNameChoice(this: *mut core::ffi::c_void, nameindex: i32, pnamechoice: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeAltName_Impl::GetNameChoice(this, core::mem::transmute_copy(&nameindex)) { Ok(ok__) => { @@ -2131,10 +1624,7 @@ impl ICertEncodeAltName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, nameindex: i32, pstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, nameindex: i32, pstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeAltName_Impl::GetName(this, core::mem::transmute_copy(&nameindex)) { Ok(ok__) => { @@ -2144,24 +1634,15 @@ impl ICertEncodeAltName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, namecount: i32) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, namecount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeAltName_Impl::Reset(this, core::mem::transmute_copy(&namecount)).into() } - unsafe extern "system" fn SetNameEntry(this: *mut core::ffi::c_void, nameindex: i32, namechoice: CERT_ALT_NAME, strname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName_Impl, - { + unsafe extern "system" fn SetNameEntry(this: *mut core::ffi::c_void, nameindex: i32, namechoice: CERT_ALT_NAME, strname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeAltName_Impl::SetNameEntry(this, core::mem::transmute_copy(&nameindex), core::mem::transmute_copy(&namechoice), core::mem::transmute(&strname)).into() } - unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName_Impl, - { + unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeAltName_Impl::Encode(this) { Ok(ok__) => { @@ -2197,21 +1678,12 @@ pub trait ICertEncodeAltName2_Impl: Sized + ICertEncodeAltName_Impl { impl windows_core::RuntimeName for ICertEncodeAltName2 {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeAltName2_Vtbl { - pub const fn new() -> ICertEncodeAltName2_Vtbl - where - Identity: ICertEncodeAltName2_Impl, - { - unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName2_Impl, - { + pub const fn new() -> ICertEncodeAltName2_Vtbl { + unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeAltName2_Impl::DecodeBlob(this, core::mem::transmute(&strencodeddata), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName2_Impl, - { + unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeAltName2_Impl::EncodeBlob(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -2221,10 +1693,7 @@ impl ICertEncodeAltName2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNameBlob(this: *mut core::ffi::c_void, nameindex: i32, encoding: EncodingType, pstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName2_Impl, - { + unsafe extern "system" fn GetNameBlob(this: *mut core::ffi::c_void, nameindex: i32, encoding: EncodingType, pstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeAltName2_Impl::GetNameBlob(this, core::mem::transmute_copy(&nameindex), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -2234,10 +1703,7 @@ impl ICertEncodeAltName2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNameEntryBlob(this: *mut core::ffi::c_void, nameindex: i32, namechoice: i32, strname: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: ICertEncodeAltName2_Impl, - { + unsafe extern "system" fn SetNameEntryBlob(this: *mut core::ffi::c_void, nameindex: i32, namechoice: i32, strname: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeAltName2_Impl::SetNameEntryBlob(this, core::mem::transmute_copy(&nameindex), core::mem::transmute_copy(&namechoice), core::mem::transmute(&strname), core::mem::transmute_copy(&encoding)).into() } @@ -2264,21 +1730,12 @@ pub trait ICertEncodeBitString_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for ICertEncodeBitString {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeBitString_Vtbl { - pub const fn new() -> ICertEncodeBitString_Vtbl - where - Identity: ICertEncodeBitString_Impl, - { - unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeBitString_Impl, - { + pub const fn new() -> ICertEncodeBitString_Vtbl { + unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeBitString_Impl::Decode(this, core::mem::transmute(&strbinary)).into() } - unsafe extern "system" fn GetBitCount(this: *mut core::ffi::c_void, pbitcount: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeBitString_Impl, - { + unsafe extern "system" fn GetBitCount(this: *mut core::ffi::c_void, pbitcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeBitString_Impl::GetBitCount(this) { Ok(ok__) => { @@ -2288,10 +1745,7 @@ impl ICertEncodeBitString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBitString(this: *mut core::ffi::c_void, pstrbitstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeBitString_Impl, - { + unsafe extern "system" fn GetBitString(this: *mut core::ffi::c_void, pstrbitstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeBitString_Impl::GetBitString(this) { Ok(ok__) => { @@ -2301,10 +1755,7 @@ impl ICertEncodeBitString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, bitcount: i32, strbitstring: core::mem::MaybeUninit, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeBitString_Impl, - { + unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, bitcount: i32, strbitstring: core::mem::MaybeUninit, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeBitString_Impl::Encode(this, core::mem::transmute_copy(&bitcount), core::mem::transmute(&strbitstring)) { Ok(ok__) => { @@ -2336,21 +1787,12 @@ pub trait ICertEncodeBitString2_Impl: Sized + ICertEncodeBitString_Impl { impl windows_core::RuntimeName for ICertEncodeBitString2 {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeBitString2_Vtbl { - pub const fn new() -> ICertEncodeBitString2_Vtbl - where - Identity: ICertEncodeBitString2_Impl, - { - unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: ICertEncodeBitString2_Impl, - { + pub const fn new() -> ICertEncodeBitString2_Vtbl { + unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeBitString2_Impl::DecodeBlob(this, core::mem::transmute(&strencodeddata), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, bitcount: i32, strbitstring: core::mem::MaybeUninit, encodingin: EncodingType, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeBitString2_Impl, - { + unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, bitcount: i32, strbitstring: core::mem::MaybeUninit, encodingin: EncodingType, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeBitString2_Impl::EncodeBlob(this, core::mem::transmute_copy(&bitcount), core::mem::transmute(&strbitstring), core::mem::transmute_copy(&encodingin), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -2360,10 +1802,7 @@ impl ICertEncodeBitString2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBitStringBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrbitstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeBitString2_Impl, - { + unsafe extern "system" fn GetBitStringBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrbitstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeBitString2_Impl::GetBitStringBlob(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -2400,21 +1839,12 @@ pub trait ICertEncodeCRLDistInfo_Impl: Sized + super::super::super::System::Com: impl windows_core::RuntimeName for ICertEncodeCRLDistInfo {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeCRLDistInfo_Vtbl { - pub const fn new() -> ICertEncodeCRLDistInfo_Vtbl - where - Identity: ICertEncodeCRLDistInfo_Impl, - { - unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo_Impl, - { + pub const fn new() -> ICertEncodeCRLDistInfo_Vtbl { + unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeCRLDistInfo_Impl::Decode(this, core::mem::transmute(&strbinary)).into() } - unsafe extern "system" fn GetDistPointCount(this: *mut core::ffi::c_void, pdistpointcount: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo_Impl, - { + unsafe extern "system" fn GetDistPointCount(this: *mut core::ffi::c_void, pdistpointcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeCRLDistInfo_Impl::GetDistPointCount(this) { Ok(ok__) => { @@ -2424,10 +1854,7 @@ impl ICertEncodeCRLDistInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNameCount(this: *mut core::ffi::c_void, distpointindex: i32, pnamecount: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo_Impl, - { + unsafe extern "system" fn GetNameCount(this: *mut core::ffi::c_void, distpointindex: i32, pnamecount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeCRLDistInfo_Impl::GetNameCount(this, core::mem::transmute_copy(&distpointindex)) { Ok(ok__) => { @@ -2437,10 +1864,7 @@ impl ICertEncodeCRLDistInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNameChoice(this: *mut core::ffi::c_void, distpointindex: i32, nameindex: i32, pnamechoice: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo_Impl, - { + unsafe extern "system" fn GetNameChoice(this: *mut core::ffi::c_void, distpointindex: i32, nameindex: i32, pnamechoice: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeCRLDistInfo_Impl::GetNameChoice(this, core::mem::transmute_copy(&distpointindex), core::mem::transmute_copy(&nameindex)) { Ok(ok__) => { @@ -2450,10 +1874,7 @@ impl ICertEncodeCRLDistInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, distpointindex: i32, nameindex: i32, pstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, distpointindex: i32, nameindex: i32, pstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeCRLDistInfo_Impl::GetName(this, core::mem::transmute_copy(&distpointindex), core::mem::transmute_copy(&nameindex)) { Ok(ok__) => { @@ -2463,31 +1884,19 @@ impl ICertEncodeCRLDistInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, distpointcount: i32) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, distpointcount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeCRLDistInfo_Impl::Reset(this, core::mem::transmute_copy(&distpointcount)).into() } - unsafe extern "system" fn SetNameCount(this: *mut core::ffi::c_void, distpointindex: i32, namecount: i32) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo_Impl, - { + unsafe extern "system" fn SetNameCount(this: *mut core::ffi::c_void, distpointindex: i32, namecount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeCRLDistInfo_Impl::SetNameCount(this, core::mem::transmute_copy(&distpointindex), core::mem::transmute_copy(&namecount)).into() } - unsafe extern "system" fn SetNameEntry(this: *mut core::ffi::c_void, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo_Impl, - { + unsafe extern "system" fn SetNameEntry(this: *mut core::ffi::c_void, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeCRLDistInfo_Impl::SetNameEntry(this, 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(this: *mut core::ffi::c_void, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo_Impl, - { + unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeCRLDistInfo_Impl::Encode(this) { Ok(ok__) => { @@ -2523,21 +1932,12 @@ pub trait ICertEncodeCRLDistInfo2_Impl: Sized + ICertEncodeCRLDistInfo_Impl { impl windows_core::RuntimeName for ICertEncodeCRLDistInfo2 {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeCRLDistInfo2_Vtbl { - pub const fn new() -> ICertEncodeCRLDistInfo2_Vtbl - where - Identity: ICertEncodeCRLDistInfo2_Impl, - { - unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo2_Impl, - { + pub const fn new() -> ICertEncodeCRLDistInfo2_Vtbl { + unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeCRLDistInfo2_Impl::DecodeBlob(this, core::mem::transmute(&strencodeddata), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeCRLDistInfo2_Impl, - { + unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeCRLDistInfo2_Impl::EncodeBlob(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -2570,21 +1970,12 @@ pub trait ICertEncodeDateArray_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for ICertEncodeDateArray {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeDateArray_Vtbl { - pub const fn new() -> ICertEncodeDateArray_Vtbl - where - Identity: ICertEncodeDateArray_Impl, - { - unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeDateArray_Impl, - { + pub const fn new() -> ICertEncodeDateArray_Vtbl { + unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeDateArray_Impl::Decode(this, core::mem::transmute(&strbinary)).into() } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeDateArray_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeDateArray_Impl::GetCount(this) { Ok(ok__) => { @@ -2594,10 +1985,7 @@ impl ICertEncodeDateArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, index: i32, pvalue: *mut f64) -> windows_core::HRESULT - where - Identity: ICertEncodeDateArray_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, index: i32, pvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeDateArray_Impl::GetValue(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2607,24 +1995,15 @@ impl ICertEncodeDateArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, count: i32) -> windows_core::HRESULT - where - Identity: ICertEncodeDateArray_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, count: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeDateArray_Impl::Reset(this, core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, index: i32, value: f64) -> windows_core::HRESULT - where - Identity: ICertEncodeDateArray_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, index: i32, value: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeDateArray_Impl::SetValue(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeDateArray_Impl, - { + unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeDateArray_Impl::Encode(this) { Ok(ok__) => { @@ -2657,21 +2036,12 @@ pub trait ICertEncodeDateArray2_Impl: Sized + ICertEncodeDateArray_Impl { impl windows_core::RuntimeName for ICertEncodeDateArray2 {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeDateArray2_Vtbl { - pub const fn new() -> ICertEncodeDateArray2_Vtbl - where - Identity: ICertEncodeDateArray2_Impl, - { - unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: ICertEncodeDateArray2_Impl, - { + pub const fn new() -> ICertEncodeDateArray2_Vtbl { + unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeDateArray2_Impl::DecodeBlob(this, core::mem::transmute(&strencodeddata), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeDateArray2_Impl, - { + unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeDateArray2_Impl::EncodeBlob(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -2704,21 +2074,12 @@ pub trait ICertEncodeLongArray_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for ICertEncodeLongArray {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeLongArray_Vtbl { - pub const fn new() -> ICertEncodeLongArray_Vtbl - where - Identity: ICertEncodeLongArray_Impl, - { - unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeLongArray_Impl, - { + pub const fn new() -> ICertEncodeLongArray_Vtbl { + unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeLongArray_Impl::Decode(this, core::mem::transmute(&strbinary)).into() } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeLongArray_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeLongArray_Impl::GetCount(this) { Ok(ok__) => { @@ -2728,10 +2089,7 @@ impl ICertEncodeLongArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, index: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeLongArray_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, index: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeLongArray_Impl::GetValue(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2741,24 +2099,15 @@ impl ICertEncodeLongArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, count: i32) -> windows_core::HRESULT - where - Identity: ICertEncodeLongArray_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, count: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeLongArray_Impl::Reset(this, core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, index: i32, value: i32) -> windows_core::HRESULT - where - Identity: ICertEncodeLongArray_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, index: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeLongArray_Impl::SetValue(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeLongArray_Impl, - { + unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeLongArray_Impl::Encode(this) { Ok(ok__) => { @@ -2791,21 +2140,12 @@ pub trait ICertEncodeLongArray2_Impl: Sized + ICertEncodeLongArray_Impl { impl windows_core::RuntimeName for ICertEncodeLongArray2 {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeLongArray2_Vtbl { - pub const fn new() -> ICertEncodeLongArray2_Vtbl - where - Identity: ICertEncodeLongArray2_Impl, - { - unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: ICertEncodeLongArray2_Impl, - { + pub const fn new() -> ICertEncodeLongArray2_Vtbl { + unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeLongArray2_Impl::DecodeBlob(this, core::mem::transmute(&strencodeddata), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeLongArray2_Impl, - { + unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeLongArray2_Impl::EncodeBlob(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -2839,21 +2179,12 @@ pub trait ICertEncodeStringArray_Impl: Sized + super::super::super::System::Com: impl windows_core::RuntimeName for ICertEncodeStringArray {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeStringArray_Vtbl { - pub const fn new() -> ICertEncodeStringArray_Vtbl - where - Identity: ICertEncodeStringArray_Impl, - { - unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeStringArray_Impl, - { + pub const fn new() -> ICertEncodeStringArray_Vtbl { + unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strbinary: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeStringArray_Impl::Decode(this, core::mem::transmute(&strbinary)).into() } - unsafe extern "system" fn GetStringType(this: *mut core::ffi::c_void, pstringtype: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeStringArray_Impl, - { + unsafe extern "system" fn GetStringType(this: *mut core::ffi::c_void, pstringtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeStringArray_Impl::GetStringType(this) { Ok(ok__) => { @@ -2863,10 +2194,7 @@ impl ICertEncodeStringArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ICertEncodeStringArray_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeStringArray_Impl::GetCount(this) { Ok(ok__) => { @@ -2876,10 +2204,7 @@ impl ICertEncodeStringArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, index: i32, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeStringArray_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, index: i32, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeStringArray_Impl::GetValue(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2889,24 +2214,15 @@ impl ICertEncodeStringArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, count: i32, stringtype: super::CERT_RDN_ATTR_VALUE_TYPE) -> windows_core::HRESULT - where - Identity: ICertEncodeStringArray_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, count: i32, stringtype: super::CERT_RDN_ATTR_VALUE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeStringArray_Impl::Reset(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&stringtype)).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, index: i32, str: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeStringArray_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, index: i32, str: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeStringArray_Impl::SetValue(this, core::mem::transmute_copy(&index), core::mem::transmute(&str)).into() } - unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeStringArray_Impl, - { + unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, pstrbinary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeStringArray_Impl::Encode(this) { Ok(ok__) => { @@ -2940,21 +2256,12 @@ pub trait ICertEncodeStringArray2_Impl: Sized + ICertEncodeStringArray_Impl { impl windows_core::RuntimeName for ICertEncodeStringArray2 {} #[cfg(feature = "Win32_System_Com")] impl ICertEncodeStringArray2_Vtbl { - pub const fn new() -> ICertEncodeStringArray2_Vtbl - where - Identity: ICertEncodeStringArray2_Impl, - { - unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: ICertEncodeStringArray2_Impl, - { + pub const fn new() -> ICertEncodeStringArray2_Vtbl { + unsafe extern "system" fn DecodeBlob(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertEncodeStringArray2_Impl::DecodeBlob(this, core::mem::transmute(&strencodeddata), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertEncodeStringArray2_Impl, - { + unsafe extern "system" fn EncodeBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertEncodeStringArray2_Impl::EncodeBlob(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -2984,14 +2291,8 @@ pub trait ICertExit_Impl: Sized + super::super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ICertExit {} #[cfg(feature = "Win32_System_Com")] impl ICertExit_Vtbl { - pub const fn new() -> ICertExit_Vtbl - where - Identity: ICertExit_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, peventmask: *mut CERT_EXIT_EVENT_MASK) -> windows_core::HRESULT - where - Identity: ICertExit_Impl, - { + pub const fn new() -> ICertExit_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, peventmask: *mut CERT_EXIT_EVENT_MASK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertExit_Impl::Initialize(this, core::mem::transmute(&strconfig)) { Ok(ok__) => { @@ -3001,17 +2302,11 @@ impl ICertExit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, exitevent: i32, context: i32) -> windows_core::HRESULT - where - Identity: ICertExit_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, exitevent: i32, context: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertExit_Impl::Notify(this, core::mem::transmute_copy(&exitevent), core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertExit_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertExit_Impl::GetDescription(this) { Ok(ok__) => { @@ -3040,14 +2335,8 @@ pub trait ICertExit2_Impl: Sized + ICertExit_Impl { impl windows_core::RuntimeName for ICertExit2 {} #[cfg(feature = "Win32_System_Com")] impl ICertExit2_Vtbl { - pub const fn new() -> ICertExit2_Vtbl - where - Identity: ICertExit2_Impl, - { - unsafe extern "system" fn GetManageModule(this: *mut core::ffi::c_void, ppmanagemodule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertExit2_Impl, - { + pub const fn new() -> ICertExit2_Vtbl { + unsafe extern "system" fn GetManageModule(this: *mut core::ffi::c_void, ppmanagemodule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertExit2_Impl::GetManageModule(this) { Ok(ok__) => { @@ -3071,14 +2360,8 @@ pub trait ICertGetConfig_Impl: Sized + super::super::super::System::Com::IDispat impl windows_core::RuntimeName for ICertGetConfig {} #[cfg(feature = "Win32_System_Com")] impl ICertGetConfig_Vtbl { - pub const fn new() -> ICertGetConfig_Vtbl - where - Identity: ICertGetConfig_Impl, - { - unsafe extern "system" fn GetConfig(this: *mut core::ffi::c_void, flags: CERT_GET_CONFIG_FLAGS, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertGetConfig_Impl, - { + pub const fn new() -> ICertGetConfig_Vtbl { + unsafe extern "system" fn GetConfig(this: *mut core::ffi::c_void, flags: CERT_GET_CONFIG_FLAGS, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertGetConfig_Impl::GetConfig(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3104,14 +2387,8 @@ pub trait ICertManageModule_Impl: Sized + super::super::super::System::Com::IDis impl windows_core::RuntimeName for ICertManageModule {} #[cfg(feature = "Win32_System_Com")] impl ICertManageModule_Vtbl { - pub const fn new() -> ICertManageModule_Vtbl - where - Identity: ICertManageModule_Impl, - { - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strstoragelocation: core::mem::MaybeUninit, strpropertyname: core::mem::MaybeUninit, flags: i32, pvarproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertManageModule_Impl, - { + pub const fn new() -> ICertManageModule_Vtbl { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strstoragelocation: core::mem::MaybeUninit, strpropertyname: core::mem::MaybeUninit, flags: i32, pvarproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertManageModule_Impl::GetProperty(this, core::mem::transmute(&strconfig), core::mem::transmute(&strstoragelocation), core::mem::transmute(&strpropertyname), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3121,17 +2398,11 @@ impl ICertManageModule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strstoragelocation: core::mem::MaybeUninit, strpropertyname: core::mem::MaybeUninit, flags: i32, pvarproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertManageModule_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strstoragelocation: core::mem::MaybeUninit, strpropertyname: core::mem::MaybeUninit, flags: i32, pvarproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertManageModule_Impl::SetProperty(this, 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(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strstoragelocation: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT - where - Identity: ICertManageModule_Impl, - { + unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strstoragelocation: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertManageModule_Impl::Configure(this, core::mem::transmute(&strconfig), core::mem::transmute(&strstoragelocation), core::mem::transmute_copy(&flags)).into() } @@ -3157,21 +2428,12 @@ pub trait ICertPolicy_Impl: Sized + super::super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for ICertPolicy {} #[cfg(feature = "Win32_System_Com")] impl ICertPolicy_Vtbl { - pub const fn new() -> ICertPolicy_Vtbl - where - Identity: ICertPolicy_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPolicy_Impl, - { + pub const fn new() -> ICertPolicy_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPolicy_Impl::Initialize(this, core::mem::transmute(&strconfig)).into() } - unsafe extern "system" fn VerifyRequest(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, context: i32, bnewrequest: i32, flags: i32, pdisposition: *mut i32) -> windows_core::HRESULT - where - Identity: ICertPolicy_Impl, - { + unsafe extern "system" fn VerifyRequest(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, context: i32, bnewrequest: i32, flags: i32, pdisposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPolicy_Impl::VerifyRequest(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&context), core::mem::transmute_copy(&bnewrequest), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3181,10 +2443,7 @@ impl ICertPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPolicy_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPolicy_Impl::GetDescription(this) { Ok(ok__) => { @@ -3194,10 +2453,7 @@ impl ICertPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShutDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertPolicy_Impl, - { + unsafe extern "system" fn ShutDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPolicy_Impl::ShutDown(this).into() } @@ -3221,14 +2477,8 @@ pub trait ICertPolicy2_Impl: Sized + ICertPolicy_Impl { impl windows_core::RuntimeName for ICertPolicy2 {} #[cfg(feature = "Win32_System_Com")] impl ICertPolicy2_Vtbl { - pub const fn new() -> ICertPolicy2_Vtbl - where - Identity: ICertPolicy2_Impl, - { - unsafe extern "system" fn GetManageModule(this: *mut core::ffi::c_void, ppmanagemodule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertPolicy2_Impl, - { + pub const fn new() -> ICertPolicy2_Vtbl { + unsafe extern "system" fn GetManageModule(this: *mut core::ffi::c_void, ppmanagemodule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPolicy2_Impl::GetManageModule(this) { Ok(ok__) => { @@ -3258,14 +2508,8 @@ pub trait ICertProperties_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for ICertProperties {} #[cfg(feature = "Win32_System_Com")] impl ICertProperties_Vtbl { - pub const fn new() -> ICertProperties_Vtbl - where - Identity: ICertProperties_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertProperties_Impl, - { + pub const fn new() -> ICertProperties_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertProperties_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3275,10 +2519,7 @@ impl ICertProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICertProperties_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertProperties_Impl::Count(this) { Ok(ok__) => { @@ -3288,10 +2529,7 @@ impl ICertProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertProperties_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertProperties_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3301,31 +2539,19 @@ impl ICertProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertProperties_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertProperties_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ICertProperties_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertProperties_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertProperties_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertProperties_Impl::Clear(this).into() } - unsafe extern "system" fn InitializeFromCertificate(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertProperties_Impl, - { + unsafe extern "system" fn InitializeFromCertificate(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertProperties_Impl::InitializeFromCertificate(this, core::mem::transmute_copy(&machinecontext), core::mem::transmute_copy(&encoding), core::mem::transmute(&strcertificate)).into() } @@ -3358,28 +2584,16 @@ pub trait ICertProperty_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for ICertProperty {} #[cfg(feature = "Win32_System_Com")] impl ICertProperty_Vtbl { - pub const fn new() -> ICertProperty_Vtbl - where - Identity: ICertProperty_Impl, - { - unsafe extern "system" fn InitializeFromCertificate(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertProperty_Impl, - { + pub const fn new() -> ICertProperty_Vtbl { + unsafe extern "system" fn InitializeFromCertificate(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertProperty_Impl::InitializeFromCertificate(this, core::mem::transmute_copy(&machinecontext), core::mem::transmute_copy(&encoding), core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertProperty_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertProperty_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn PropertyId(this: *mut core::ffi::c_void, pvalue: *mut CERTENROLL_PROPERTYID) -> windows_core::HRESULT - where - Identity: ICertProperty_Impl, - { + unsafe extern "system" fn PropertyId(this: *mut core::ffi::c_void, pvalue: *mut CERTENROLL_PROPERTYID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertProperty_Impl::PropertyId(this) { Ok(ok__) => { @@ -3389,17 +2603,11 @@ impl ICertProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertyId(this: *mut core::ffi::c_void, value: CERTENROLL_PROPERTYID) -> windows_core::HRESULT - where - Identity: ICertProperty_Impl, - { + unsafe extern "system" fn SetPropertyId(this: *mut core::ffi::c_void, value: CERTENROLL_PROPERTYID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertProperty_Impl::SetPropertyId(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertProperty_Impl, - { + unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertProperty_Impl::get_RawData(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -3409,17 +2617,11 @@ impl ICertProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFromCertificate(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertProperty_Impl, - { + unsafe extern "system" fn RemoveFromCertificate(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertProperty_Impl::RemoveFromCertificate(this, core::mem::transmute_copy(&machinecontext), core::mem::transmute_copy(&encoding), core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn SetValueOnCertificate(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertProperty_Impl, - { + unsafe extern "system" fn SetValueOnCertificate(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertProperty_Impl::SetValueOnCertificate(this, core::mem::transmute_copy(&machinecontext), core::mem::transmute_copy(&encoding), core::mem::transmute(&strcertificate)).into() } @@ -3447,21 +2649,12 @@ pub trait ICertPropertyArchived_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyArchived {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyArchived_Vtbl { - pub const fn new() -> ICertPropertyArchived_Vtbl - where - Identity: ICertPropertyArchived_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, archivedvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertPropertyArchived_Impl, - { + pub const fn new() -> ICertPropertyArchived_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, archivedvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyArchived_Impl::Initialize(this, core::mem::transmute_copy(&archivedvalue)).into() } - unsafe extern "system" fn Archived(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertPropertyArchived_Impl, - { + unsafe extern "system" fn Archived(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyArchived_Impl::Archived(this) { Ok(ok__) => { @@ -3486,21 +2679,12 @@ pub trait ICertPropertyArchivedKeyHash_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyArchivedKeyHash {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyArchivedKeyHash_Vtbl { - pub const fn new() -> ICertPropertyArchivedKeyHash_Vtbl - where - Identity: ICertPropertyArchivedKeyHash_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, encoding: EncodingType, strarchivedkeyhashvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyArchivedKeyHash_Impl, - { + pub const fn new() -> ICertPropertyArchivedKeyHash_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, encoding: EncodingType, strarchivedkeyhashvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyArchivedKeyHash_Impl::Initialize(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strarchivedkeyhashvalue)).into() } - unsafe extern "system" fn get_ArchivedKeyHash(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyArchivedKeyHash_Impl, - { + unsafe extern "system" fn get_ArchivedKeyHash(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyArchivedKeyHash_Impl::get_ArchivedKeyHash(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -3529,21 +2713,12 @@ pub trait ICertPropertyAutoEnroll_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyAutoEnroll {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyAutoEnroll_Vtbl { - pub const fn new() -> ICertPropertyAutoEnroll_Vtbl - where - Identity: ICertPropertyAutoEnroll_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyAutoEnroll_Impl, - { + pub const fn new() -> ICertPropertyAutoEnroll_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyAutoEnroll_Impl::Initialize(this, core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn TemplateName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyAutoEnroll_Impl, - { + unsafe extern "system" fn TemplateName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyAutoEnroll_Impl::TemplateName(this) { Ok(ok__) => { @@ -3574,28 +2749,16 @@ pub trait ICertPropertyBackedUp_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyBackedUp {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyBackedUp_Vtbl { - pub const fn new() -> ICertPropertyBackedUp_Vtbl - where - Identity: ICertPropertyBackedUp_Impl, - { - unsafe extern "system" fn InitializeFromCurrentTime(this: *mut core::ffi::c_void, backedupvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertPropertyBackedUp_Impl, - { + pub const fn new() -> ICertPropertyBackedUp_Vtbl { + unsafe extern "system" fn InitializeFromCurrentTime(this: *mut core::ffi::c_void, backedupvalue: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyBackedUp_Impl::InitializeFromCurrentTime(this, core::mem::transmute_copy(&backedupvalue)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, backedupvalue: super::super::super::Foundation::VARIANT_BOOL, date: f64) -> windows_core::HRESULT - where - Identity: ICertPropertyBackedUp_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, backedupvalue: super::super::super::Foundation::VARIANT_BOOL, date: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyBackedUp_Impl::Initialize(this, core::mem::transmute_copy(&backedupvalue), core::mem::transmute_copy(&date)).into() } - unsafe extern "system" fn BackedUpValue(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertPropertyBackedUp_Impl, - { + unsafe extern "system" fn BackedUpValue(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyBackedUp_Impl::BackedUpValue(this) { Ok(ok__) => { @@ -3605,10 +2768,7 @@ impl ICertPropertyBackedUp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BackedUpTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: ICertPropertyBackedUp_Impl, - { + unsafe extern "system" fn BackedUpTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyBackedUp_Impl::BackedUpTime(this) { Ok(ok__) => { @@ -3639,21 +2799,12 @@ pub trait ICertPropertyDescription_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyDescription {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyDescription_Vtbl { - pub const fn new() -> ICertPropertyDescription_Vtbl - where - Identity: ICertPropertyDescription_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyDescription_Impl, - { + pub const fn new() -> ICertPropertyDescription_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyDescription_Impl::Initialize(this, core::mem::transmute(&strdescription)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyDescription_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyDescription_Impl::Description(this) { Ok(ok__) => { @@ -3681,21 +2832,12 @@ pub trait ICertPropertyEnrollment_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyEnrollment {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyEnrollment_Vtbl { - pub const fn new() -> ICertPropertyEnrollment_Vtbl - where - Identity: ICertPropertyEnrollment_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, requestid: i32, strcadnsname: core::mem::MaybeUninit, strcaname: core::mem::MaybeUninit, strfriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollment_Impl, - { + pub const fn new() -> ICertPropertyEnrollment_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, requestid: i32, strcadnsname: core::mem::MaybeUninit, strcaname: core::mem::MaybeUninit, strfriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyEnrollment_Impl::Initialize(this, core::mem::transmute_copy(&requestid), core::mem::transmute(&strcadnsname), core::mem::transmute(&strcaname), core::mem::transmute(&strfriendlyname)).into() } - unsafe extern "system" fn RequestId(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollment_Impl, - { + unsafe extern "system" fn RequestId(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollment_Impl::RequestId(this) { Ok(ok__) => { @@ -3705,10 +2847,7 @@ impl ICertPropertyEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CADnsName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollment_Impl, - { + unsafe extern "system" fn CADnsName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollment_Impl::CADnsName(this) { Ok(ok__) => { @@ -3718,10 +2857,7 @@ impl ICertPropertyEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CAName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollment_Impl, - { + unsafe extern "system" fn CAName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollment_Impl::CAName(this) { Ok(ok__) => { @@ -3731,10 +2867,7 @@ impl ICertPropertyEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollment_Impl, - { + unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollment_Impl::FriendlyName(this) { Ok(ok__) => { @@ -3773,21 +2906,12 @@ pub trait ICertPropertyEnrollmentPolicyServer_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyEnrollmentPolicyServer {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyEnrollmentPolicyServer_Vtbl { - pub const fn new() -> ICertPropertyEnrollmentPolicyServer_Vtbl - where - Identity: ICertPropertyEnrollmentPolicyServer_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: core::mem::MaybeUninit, strurl: core::mem::MaybeUninit, strid: core::mem::MaybeUninit, strenrollmentserverurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollmentPolicyServer_Impl, - { + pub const fn new() -> ICertPropertyEnrollmentPolicyServer_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: core::mem::MaybeUninit, strurl: core::mem::MaybeUninit, strid: core::mem::MaybeUninit, strenrollmentserverurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyEnrollmentPolicyServer_Impl::Initialize(this, 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(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetPolicyServerUrl(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollmentPolicyServer_Impl::GetPolicyServerUrl(this) { Ok(ok__) => { @@ -3797,10 +2921,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPolicyServerId(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetPolicyServerId(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollmentPolicyServer_Impl::GetPolicyServerId(this) { Ok(ok__) => { @@ -3810,10 +2931,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnrollmentServerUrl(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetEnrollmentServerUrl(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollmentPolicyServer_Impl::GetEnrollmentServerUrl(this) { Ok(ok__) => { @@ -3823,10 +2941,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRequestIdString(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetRequestIdString(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollmentPolicyServer_Impl::GetRequestIdString(this) { Ok(ok__) => { @@ -3836,10 +2951,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyFlags(this: *mut core::ffi::c_void, pvalue: *mut EnrollmentPolicyServerPropertyFlags) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetPropertyFlags(this: *mut core::ffi::c_void, pvalue: *mut EnrollmentPolicyServerPropertyFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollmentPolicyServer_Impl::GetPropertyFlags(this) { Ok(ok__) => { @@ -3849,10 +2961,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUrlFlags(this: *mut core::ffi::c_void, pvalue: *mut PolicyServerUrlFlags) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetUrlFlags(this: *mut core::ffi::c_void, pvalue: *mut PolicyServerUrlFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollmentPolicyServer_Impl::GetUrlFlags(this) { Ok(ok__) => { @@ -3862,10 +2971,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAuthentication(this: *mut core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetAuthentication(this: *mut core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollmentPolicyServer_Impl::GetAuthentication(this) { Ok(ok__) => { @@ -3875,10 +2981,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnrollmentServerAuthentication(this: *mut core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> windows_core::HRESULT - where - Identity: ICertPropertyEnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetEnrollmentServerAuthentication(this: *mut core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyEnrollmentPolicyServer_Impl::GetEnrollmentServerAuthentication(this) { Ok(ok__) => { @@ -3914,21 +3017,12 @@ pub trait ICertPropertyFriendlyName_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyFriendlyName {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyFriendlyName_Vtbl { - pub const fn new() -> ICertPropertyFriendlyName_Vtbl - where - Identity: ICertPropertyFriendlyName_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strfriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyFriendlyName_Impl, - { + pub const fn new() -> ICertPropertyFriendlyName_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strfriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyFriendlyName_Impl::Initialize(this, core::mem::transmute(&strfriendlyname)).into() } - unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyFriendlyName_Impl, - { + unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyFriendlyName_Impl::FriendlyName(this) { Ok(ok__) => { @@ -3957,21 +3051,12 @@ pub trait ICertPropertyKeyProvInfo_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyKeyProvInfo {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyKeyProvInfo_Vtbl { - pub const fn new() -> ICertPropertyKeyProvInfo_Vtbl - where - Identity: ICertPropertyKeyProvInfo_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertPropertyKeyProvInfo_Impl, - { + pub const fn new() -> ICertPropertyKeyProvInfo_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyKeyProvInfo_Impl::Initialize(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn PrivateKey(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertPropertyKeyProvInfo_Impl, - { + unsafe extern "system" fn PrivateKey(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyKeyProvInfo_Impl::PrivateKey(this) { Ok(ok__) => { @@ -3997,28 +3082,16 @@ pub trait ICertPropertyRenewal_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyRenewal {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyRenewal_Vtbl { - pub const fn new() -> ICertPropertyRenewal_Vtbl - where - Identity: ICertPropertyRenewal_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, encoding: EncodingType, strrenewalvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyRenewal_Impl, - { + pub const fn new() -> ICertPropertyRenewal_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, encoding: EncodingType, strrenewalvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyRenewal_Impl::Initialize(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strrenewalvalue)).into() } - unsafe extern "system" fn InitializeFromCertificateHash(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyRenewal_Impl, - { + unsafe extern "system" fn InitializeFromCertificateHash(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyRenewal_Impl::InitializeFromCertificateHash(this, core::mem::transmute_copy(&machinecontext), core::mem::transmute_copy(&encoding), core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn get_Renewal(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyRenewal_Impl, - { + unsafe extern "system" fn get_Renewal(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyRenewal_Impl::get_Renewal(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -4049,28 +3122,16 @@ pub trait ICertPropertyRequestOriginator_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertyRequestOriginator {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertyRequestOriginator_Vtbl { - pub const fn new() -> ICertPropertyRequestOriginator_Vtbl - where - Identity: ICertPropertyRequestOriginator_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strrequestoriginator: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyRequestOriginator_Impl, - { + pub const fn new() -> ICertPropertyRequestOriginator_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strrequestoriginator: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyRequestOriginator_Impl::Initialize(this, core::mem::transmute(&strrequestoriginator)).into() } - unsafe extern "system" fn InitializeFromLocalRequestOriginator(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertPropertyRequestOriginator_Impl, - { + unsafe extern "system" fn InitializeFromLocalRequestOriginator(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertyRequestOriginator_Impl::InitializeFromLocalRequestOriginator(this).into() } - unsafe extern "system" fn RequestOriginator(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertyRequestOriginator_Impl, - { + unsafe extern "system" fn RequestOriginator(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertyRequestOriginator_Impl::RequestOriginator(this) { Ok(ok__) => { @@ -4100,21 +3161,12 @@ pub trait ICertPropertySHA1Hash_Impl: Sized + ICertProperty_Impl { impl windows_core::RuntimeName for ICertPropertySHA1Hash {} #[cfg(feature = "Win32_System_Com")] impl ICertPropertySHA1Hash_Vtbl { - pub const fn new() -> ICertPropertySHA1Hash_Vtbl - where - Identity: ICertPropertySHA1Hash_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, encoding: EncodingType, strrenewalvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertySHA1Hash_Impl, - { + pub const fn new() -> ICertPropertySHA1Hash_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, encoding: EncodingType, strrenewalvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertPropertySHA1Hash_Impl::Initialize(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strrenewalvalue)).into() } - unsafe extern "system" fn get_SHA1Hash(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertPropertySHA1Hash_Impl, - { + unsafe extern "system" fn get_SHA1Hash(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertPropertySHA1Hash_Impl::get_SHA1Hash(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -4148,14 +3200,8 @@ pub trait ICertRequest_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for ICertRequest {} #[cfg(feature = "Win32_System_Com")] impl ICertRequest_Vtbl { - pub const fn new() -> ICertRequest_Vtbl - where - Identity: ICertRequest_Impl, - { - unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, flags: i32, strrequest: core::mem::MaybeUninit, strattributes: core::mem::MaybeUninit, strconfig: core::mem::MaybeUninit, pdisposition: *mut i32) -> windows_core::HRESULT - where - Identity: ICertRequest_Impl, - { + pub const fn new() -> ICertRequest_Vtbl { + unsafe extern "system" fn Submit(this: *mut core::ffi::c_void, flags: i32, strrequest: core::mem::MaybeUninit, strattributes: core::mem::MaybeUninit, strconfig: core::mem::MaybeUninit, pdisposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest_Impl::Submit(this, core::mem::transmute_copy(&flags), core::mem::transmute(&strrequest), core::mem::transmute(&strattributes), core::mem::transmute(&strconfig)) { Ok(ok__) => { @@ -4165,10 +3211,7 @@ impl ICertRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RetrievePending(this: *mut core::ffi::c_void, requestid: i32, strconfig: core::mem::MaybeUninit, pdisposition: *mut i32) -> windows_core::HRESULT - where - Identity: ICertRequest_Impl, - { + unsafe extern "system" fn RetrievePending(this: *mut core::ffi::c_void, requestid: i32, strconfig: core::mem::MaybeUninit, pdisposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest_Impl::RetrievePending(this, core::mem::transmute_copy(&requestid), core::mem::transmute(&strconfig)) { Ok(ok__) => { @@ -4178,10 +3221,7 @@ impl ICertRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastStatus(this: *mut core::ffi::c_void, pstatus: *mut i32) -> windows_core::HRESULT - where - Identity: ICertRequest_Impl, - { + unsafe extern "system" fn GetLastStatus(this: *mut core::ffi::c_void, pstatus: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest_Impl::GetLastStatus(this) { Ok(ok__) => { @@ -4191,10 +3231,7 @@ impl ICertRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRequestId(this: *mut core::ffi::c_void, prequestid: *mut i32) -> windows_core::HRESULT - where - Identity: ICertRequest_Impl, - { + unsafe extern "system" fn GetRequestId(this: *mut core::ffi::c_void, prequestid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest_Impl::GetRequestId(this) { Ok(ok__) => { @@ -4204,10 +3241,7 @@ impl ICertRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDispositionMessage(this: *mut core::ffi::c_void, pstrdispositionmessage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertRequest_Impl, - { + unsafe extern "system" fn GetDispositionMessage(this: *mut core::ffi::c_void, pstrdispositionmessage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest_Impl::GetDispositionMessage(this) { Ok(ok__) => { @@ -4217,10 +3251,7 @@ impl ICertRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCACertificate(this: *mut core::ffi::c_void, fexchangecertificate: i32, strconfig: core::mem::MaybeUninit, flags: i32, pstrcertificate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertRequest_Impl, - { + unsafe extern "system" fn GetCACertificate(this: *mut core::ffi::c_void, fexchangecertificate: i32, strconfig: core::mem::MaybeUninit, flags: i32, pstrcertificate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest_Impl::GetCACertificate(this, core::mem::transmute_copy(&fexchangecertificate), core::mem::transmute(&strconfig), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4230,10 +3261,7 @@ impl ICertRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, flags: i32, pstrcertificate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertRequest_Impl, - { + unsafe extern "system" fn GetCertificate(this: *mut core::ffi::c_void, flags: i32, pstrcertificate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest_Impl::GetCertificate(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4271,14 +3299,8 @@ pub trait ICertRequest2_Impl: Sized + ICertRequest_Impl { impl windows_core::RuntimeName for ICertRequest2 {} #[cfg(feature = "Win32_System_Com")] impl ICertRequest2_Vtbl { - pub const fn new() -> ICertRequest2_Vtbl - where - Identity: ICertRequest2_Impl, - { - unsafe extern "system" fn GetIssuedCertificate(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, strserialnumber: core::mem::MaybeUninit, pdisposition: *mut CR_DISP) -> windows_core::HRESULT - where - Identity: ICertRequest2_Impl, - { + pub const fn new() -> ICertRequest2_Vtbl { + unsafe extern "system" fn GetIssuedCertificate(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, requestid: i32, strserialnumber: core::mem::MaybeUninit, pdisposition: *mut CR_DISP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest2_Impl::GetIssuedCertificate(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&requestid), core::mem::transmute(&strserialnumber)) { Ok(ok__) => { @@ -4288,10 +3310,7 @@ impl ICertRequest2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorMessageText(this: *mut core::ffi::c_void, hrmessage: i32, flags: i32, pstrerrormessagetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertRequest2_Impl, - { + unsafe extern "system" fn GetErrorMessageText(this: *mut core::ffi::c_void, hrmessage: i32, flags: i32, pstrerrormessagetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest2_Impl::GetErrorMessageText(this, core::mem::transmute_copy(&hrmessage), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4301,10 +3320,7 @@ impl ICertRequest2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAProperty(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertRequest2_Impl, - { + unsafe extern "system" fn GetCAProperty(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest2_Impl::GetCAProperty(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&propid), core::mem::transmute_copy(&propindex), core::mem::transmute_copy(&proptype), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4314,10 +3330,7 @@ impl ICertRequest2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAPropertyFlags(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, ppropflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICertRequest2_Impl, - { + unsafe extern "system" fn GetCAPropertyFlags(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, ppropflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest2_Impl::GetCAPropertyFlags(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&propid)) { Ok(ok__) => { @@ -4327,10 +3340,7 @@ impl ICertRequest2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAPropertyDisplayName(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, pstrdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertRequest2_Impl, - { + unsafe extern "system" fn GetCAPropertyDisplayName(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, propid: i32, pstrdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest2_Impl::GetCAPropertyDisplayName(this, core::mem::transmute(&strconfig), core::mem::transmute_copy(&propid)) { Ok(ok__) => { @@ -4340,10 +3350,7 @@ impl ICertRequest2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFullResponseProperty(this: *mut core::ffi::c_void, propid: FULL_RESPONSE_PROPERTY_ID, propindex: i32, proptype: CERT_PROPERTY_TYPE, flags: CERT_REQUEST_OUT_TYPE, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertRequest2_Impl, - { + unsafe extern "system" fn GetFullResponseProperty(this: *mut core::ffi::c_void, propid: FULL_RESPONSE_PROPERTY_ID, propindex: i32, proptype: CERT_PROPERTY_TYPE, flags: CERT_REQUEST_OUT_TYPE, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest2_Impl::GetFullResponseProperty(this, core::mem::transmute_copy(&propid), core::mem::transmute_copy(&propindex), core::mem::transmute_copy(&proptype), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4378,21 +3385,12 @@ pub trait ICertRequest3_Impl: Sized + ICertRequest2_Impl { impl windows_core::RuntimeName for ICertRequest3 {} #[cfg(feature = "Win32_System_Com")] impl ICertRequest3_Vtbl { - pub const fn new() -> ICertRequest3_Vtbl - where - Identity: ICertRequest3_Impl, - { - unsafe extern "system" fn SetCredential(this: *mut core::ffi::c_void, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertRequest3_Impl, - { + pub const fn new() -> ICertRequest3_Vtbl { + unsafe extern "system" fn SetCredential(this: *mut core::ffi::c_void, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertRequest3_Impl::SetCredential(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&authtype), core::mem::transmute(&strcredential), core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn GetRequestIdString(this: *mut core::ffi::c_void, pstrrequestid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertRequest3_Impl, - { + unsafe extern "system" fn GetRequestIdString(this: *mut core::ffi::c_void, pstrrequestid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest3_Impl::GetRequestIdString(this) { Ok(ok__) => { @@ -4402,10 +3400,7 @@ impl ICertRequest3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIssuedCertificate2(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strrequestid: core::mem::MaybeUninit, strserialnumber: core::mem::MaybeUninit, pdisposition: *mut CR_DISP) -> windows_core::HRESULT - where - Identity: ICertRequest3_Impl, - { + unsafe extern "system" fn GetIssuedCertificate2(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit, strrequestid: core::mem::MaybeUninit, strserialnumber: core::mem::MaybeUninit, pdisposition: *mut CR_DISP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest3_Impl::GetIssuedCertificate2(this, core::mem::transmute(&strconfig), core::mem::transmute(&strrequestid), core::mem::transmute(&strserialnumber)) { Ok(ok__) => { @@ -4415,10 +3410,7 @@ impl ICertRequest3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRefreshPolicy(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertRequest3_Impl, - { + unsafe extern "system" fn GetRefreshPolicy(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequest3_Impl::GetRefreshPolicy(this) { Ok(ok__) => { @@ -4440,28 +3432,19 @@ impl ICertRequest3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ICertRequestD_Impl: Sized { +pub trait ICertRequestD_Impl: Sized + windows_core::IUnknownImpl { fn Request(&self, dwflags: u32, pwszauthority: &windows_core::PCWSTR, pdwrequestid: *mut u32, pdwdisposition: *mut u32, pwszattributes: &windows_core::PCWSTR, pctbrequest: *const CERTTRANSBLOB, pctbcertchain: *mut CERTTRANSBLOB, pctbencodedcert: *mut CERTTRANSBLOB, pctbdispositionmessage: *mut CERTTRANSBLOB) -> windows_core::Result<()>; fn GetCACert(&self, fchain: u32, pwszauthority: &windows_core::PCWSTR) -> windows_core::Result; fn Ping(&self, pwszauthority: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICertRequestD {} impl ICertRequestD_Vtbl { - pub const fn new() -> ICertRequestD_Vtbl - where - Identity: ICertRequestD_Impl, - { - unsafe extern "system" fn Request(this: *mut core::ffi::c_void, dwflags: u32, pwszauthority: windows_core::PCWSTR, pdwrequestid: *mut u32, pdwdisposition: *mut u32, pwszattributes: windows_core::PCWSTR, pctbrequest: *const CERTTRANSBLOB, pctbcertchain: *mut CERTTRANSBLOB, pctbencodedcert: *mut CERTTRANSBLOB, pctbdispositionmessage: *mut CERTTRANSBLOB) -> windows_core::HRESULT - where - Identity: ICertRequestD_Impl, - { + pub const fn new() -> ICertRequestD_Vtbl { + unsafe extern "system" fn Request(this: *mut core::ffi::c_void, dwflags: u32, pwszauthority: windows_core::PCWSTR, pdwrequestid: *mut u32, pdwdisposition: *mut u32, pwszattributes: windows_core::PCWSTR, pctbrequest: *const CERTTRANSBLOB, pctbcertchain: *mut CERTTRANSBLOB, pctbencodedcert: *mut CERTTRANSBLOB, pctbdispositionmessage: *mut CERTTRANSBLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertRequestD_Impl::Request(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pwszauthority), core::mem::transmute_copy(&pdwrequestid), core::mem::transmute_copy(&pdwdisposition), core::mem::transmute(&pwszattributes), core::mem::transmute_copy(&pctbrequest), core::mem::transmute_copy(&pctbcertchain), core::mem::transmute_copy(&pctbencodedcert), core::mem::transmute_copy(&pctbdispositionmessage)).into() } - unsafe extern "system" fn GetCACert(this: *mut core::ffi::c_void, fchain: u32, pwszauthority: windows_core::PCWSTR, pctbout: *mut CERTTRANSBLOB) -> windows_core::HRESULT - where - Identity: ICertRequestD_Impl, - { + unsafe extern "system" fn GetCACert(this: *mut core::ffi::c_void, fchain: u32, pwszauthority: windows_core::PCWSTR, pctbout: *mut CERTTRANSBLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequestD_Impl::GetCACert(this, core::mem::transmute_copy(&fchain), core::mem::transmute(&pwszauthority)) { Ok(ok__) => { @@ -4471,10 +3454,7 @@ impl ICertRequestD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Ping(this: *mut core::ffi::c_void, pwszauthority: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICertRequestD_Impl, - { + unsafe extern "system" fn Ping(this: *mut core::ffi::c_void, pwszauthority: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertRequestD_Impl::Ping(this, core::mem::transmute(&pwszauthority)).into() } @@ -4497,21 +3477,12 @@ pub trait ICertRequestD2_Impl: Sized + ICertRequestD_Impl { } impl windows_core::RuntimeName for ICertRequestD2 {} impl ICertRequestD2_Vtbl { - pub const fn new() -> ICertRequestD2_Vtbl - where - Identity: ICertRequestD2_Impl, - { - unsafe extern "system" fn Request2(this: *mut core::ffi::c_void, pwszauthority: windows_core::PCWSTR, dwflags: u32, pwszserialnumber: windows_core::PCWSTR, pdwrequestid: *mut u32, pdwdisposition: *mut u32, pwszattributes: windows_core::PCWSTR, pctbrequest: *const CERTTRANSBLOB, pctbfullresponse: *mut CERTTRANSBLOB, pctbencodedcert: *mut CERTTRANSBLOB, pctbdispositionmessage: *mut CERTTRANSBLOB) -> windows_core::HRESULT - where - Identity: ICertRequestD2_Impl, - { + pub const fn new() -> ICertRequestD2_Vtbl { + unsafe extern "system" fn Request2(this: *mut core::ffi::c_void, pwszauthority: windows_core::PCWSTR, dwflags: u32, pwszserialnumber: windows_core::PCWSTR, pdwrequestid: *mut u32, pdwdisposition: *mut u32, pwszattributes: windows_core::PCWSTR, pctbrequest: *const CERTTRANSBLOB, pctbfullresponse: *mut CERTTRANSBLOB, pctbencodedcert: *mut CERTTRANSBLOB, pctbdispositionmessage: *mut CERTTRANSBLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertRequestD2_Impl::Request2(this, core::mem::transmute(&pwszauthority), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pwszserialnumber), core::mem::transmute_copy(&pdwrequestid), core::mem::transmute_copy(&pdwdisposition), core::mem::transmute(&pwszattributes), core::mem::transmute_copy(&pctbrequest), core::mem::transmute_copy(&pctbfullresponse), core::mem::transmute_copy(&pctbencodedcert), core::mem::transmute_copy(&pctbdispositionmessage)).into() } - unsafe extern "system" fn GetCAProperty(this: *mut core::ffi::c_void, pwszauthority: windows_core::PCWSTR, propid: i32, propindex: i32, proptype: i32, pctbpropertyvalue: *mut CERTTRANSBLOB) -> windows_core::HRESULT - where - Identity: ICertRequestD2_Impl, - { + unsafe extern "system" fn GetCAProperty(this: *mut core::ffi::c_void, pwszauthority: windows_core::PCWSTR, propid: i32, propindex: i32, proptype: i32, pctbpropertyvalue: *mut CERTTRANSBLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertRequestD2_Impl::GetCAProperty(this, core::mem::transmute(&pwszauthority), core::mem::transmute_copy(&propid), core::mem::transmute_copy(&propindex), core::mem::transmute_copy(&proptype)) { Ok(ok__) => { @@ -4521,17 +3492,11 @@ impl ICertRequestD2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAPropertyInfo(this: *mut core::ffi::c_void, pwszauthority: windows_core::PCWSTR, pcproperty: *mut i32, pctbpropinfo: *mut CERTTRANSBLOB) -> windows_core::HRESULT - where - Identity: ICertRequestD2_Impl, - { + unsafe extern "system" fn GetCAPropertyInfo(this: *mut core::ffi::c_void, pwszauthority: windows_core::PCWSTR, pcproperty: *mut i32, pctbpropinfo: *mut CERTTRANSBLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertRequestD2_Impl::GetCAPropertyInfo(this, core::mem::transmute(&pwszauthority), core::mem::transmute_copy(&pcproperty), core::mem::transmute_copy(&pctbpropinfo)).into() } - unsafe extern "system" fn Ping2(this: *mut core::ffi::c_void, pwszauthority: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICertRequestD2_Impl, - { + unsafe extern "system" fn Ping2(this: *mut core::ffi::c_void, pwszauthority: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertRequestD2_Impl::Ping2(this, core::mem::transmute(&pwszauthority)).into() } @@ -4566,21 +3531,12 @@ pub trait ICertServerExit_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for ICertServerExit {} #[cfg(feature = "Win32_System_Com")] impl ICertServerExit_Vtbl { - pub const fn new() -> ICertServerExit_Vtbl - where - Identity: ICertServerExit_Impl, - { - unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, context: i32) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + pub const fn new() -> ICertServerExit_Vtbl { + unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, context: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerExit_Impl::SetContext(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn GetRequestProperty(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertytype: i32, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn GetRequestProperty(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertytype: i32, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerExit_Impl::GetRequestProperty(this, core::mem::transmute(&strpropertyname), core::mem::transmute_copy(&propertytype)) { Ok(ok__) => { @@ -4590,10 +3546,7 @@ impl ICertServerExit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRequestAttribute(this: *mut core::ffi::c_void, strattributename: core::mem::MaybeUninit, pstrattributevalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn GetRequestAttribute(this: *mut core::ffi::c_void, strattributename: core::mem::MaybeUninit, pstrattributevalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerExit_Impl::GetRequestAttribute(this, core::mem::transmute(&strattributename)) { Ok(ok__) => { @@ -4603,10 +3556,7 @@ impl ICertServerExit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateProperty(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertytype: i32, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn GetCertificateProperty(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertytype: i32, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerExit_Impl::GetCertificateProperty(this, core::mem::transmute(&strpropertyname), core::mem::transmute_copy(&propertytype)) { Ok(ok__) => { @@ -4616,10 +3566,7 @@ impl ICertServerExit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateExtension(this: *mut core::ffi::c_void, strextensionname: core::mem::MaybeUninit, r#type: i32, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn GetCertificateExtension(this: *mut core::ffi::c_void, strextensionname: core::mem::MaybeUninit, r#type: i32, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerExit_Impl::GetCertificateExtension(this, core::mem::transmute(&strextensionname), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -4629,10 +3576,7 @@ impl ICertServerExit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateExtensionFlags(this: *mut core::ffi::c_void, pextflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn GetCertificateExtensionFlags(this: *mut core::ffi::c_void, pextflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerExit_Impl::GetCertificateExtensionFlags(this) { Ok(ok__) => { @@ -4642,17 +3586,11 @@ impl ICertServerExit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateExtensionsSetup(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn EnumerateExtensionsSetup(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerExit_Impl::EnumerateExtensionsSetup(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn EnumerateExtensions(this: *mut core::ffi::c_void, pstrextensionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn EnumerateExtensions(this: *mut core::ffi::c_void, pstrextensionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerExit_Impl::EnumerateExtensions(this) { Ok(ok__) => { @@ -4662,24 +3600,15 @@ impl ICertServerExit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateExtensionsClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn EnumerateExtensionsClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerExit_Impl::EnumerateExtensionsClose(this).into() } - unsafe extern "system" fn EnumerateAttributesSetup(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn EnumerateAttributesSetup(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerExit_Impl::EnumerateAttributesSetup(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn EnumerateAttributes(this: *mut core::ffi::c_void, pstrattributename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn EnumerateAttributes(this: *mut core::ffi::c_void, pstrattributename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerExit_Impl::EnumerateAttributes(this) { Ok(ok__) => { @@ -4689,10 +3618,7 @@ impl ICertServerExit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateAttributesClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertServerExit_Impl, - { + unsafe extern "system" fn EnumerateAttributesClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerExit_Impl::EnumerateAttributesClose(this).into() } @@ -4737,21 +3663,12 @@ pub trait ICertServerPolicy_Impl: Sized + super::super::super::System::Com::IDis impl windows_core::RuntimeName for ICertServerPolicy {} #[cfg(feature = "Win32_System_Com")] impl ICertServerPolicy_Vtbl { - pub const fn new() -> ICertServerPolicy_Vtbl - where - Identity: ICertServerPolicy_Impl, - { - unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, context: i32) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + pub const fn new() -> ICertServerPolicy_Vtbl { + unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, context: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerPolicy_Impl::SetContext(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn GetRequestProperty(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertytype: i32, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn GetRequestProperty(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertytype: i32, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerPolicy_Impl::GetRequestProperty(this, core::mem::transmute(&strpropertyname), core::mem::transmute_copy(&propertytype)) { Ok(ok__) => { @@ -4761,10 +3678,7 @@ impl ICertServerPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRequestAttribute(this: *mut core::ffi::c_void, strattributename: core::mem::MaybeUninit, pstrattributevalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn GetRequestAttribute(this: *mut core::ffi::c_void, strattributename: core::mem::MaybeUninit, pstrattributevalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerPolicy_Impl::GetRequestAttribute(this, core::mem::transmute(&strattributename)) { Ok(ok__) => { @@ -4774,10 +3688,7 @@ impl ICertServerPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateProperty(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertytype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn GetCertificateProperty(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertytype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerPolicy_Impl::GetCertificateProperty(this, core::mem::transmute(&strpropertyname), core::mem::transmute_copy(&propertytype)) { Ok(ok__) => { @@ -4787,17 +3698,11 @@ impl ICertServerPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateProperty(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertytype: i32, pvarpropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn SetCertificateProperty(this: *mut core::ffi::c_void, strpropertyname: core::mem::MaybeUninit, propertytype: i32, pvarpropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerPolicy_Impl::SetCertificateProperty(this, core::mem::transmute(&strpropertyname), core::mem::transmute_copy(&propertytype), core::mem::transmute_copy(&pvarpropertyvalue)).into() } - unsafe extern "system" fn GetCertificateExtension(this: *mut core::ffi::c_void, strextensionname: core::mem::MaybeUninit, r#type: CERT_PROPERTY_TYPE, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn GetCertificateExtension(this: *mut core::ffi::c_void, strextensionname: core::mem::MaybeUninit, r#type: CERT_PROPERTY_TYPE, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerPolicy_Impl::GetCertificateExtension(this, core::mem::transmute(&strextensionname), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -4807,10 +3712,7 @@ impl ICertServerPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateExtensionFlags(this: *mut core::ffi::c_void, pextflags: *mut i32) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn GetCertificateExtensionFlags(this: *mut core::ffi::c_void, pextflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerPolicy_Impl::GetCertificateExtensionFlags(this) { Ok(ok__) => { @@ -4820,24 +3722,15 @@ impl ICertServerPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateExtension(this: *mut core::ffi::c_void, strextensionname: core::mem::MaybeUninit, r#type: i32, extflags: i32, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn SetCertificateExtension(this: *mut core::ffi::c_void, strextensionname: core::mem::MaybeUninit, r#type: i32, extflags: i32, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerPolicy_Impl::SetCertificateExtension(this, core::mem::transmute(&strextensionname), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&extflags), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn EnumerateExtensionsSetup(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn EnumerateExtensionsSetup(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerPolicy_Impl::EnumerateExtensionsSetup(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn EnumerateExtensions(this: *mut core::ffi::c_void, pstrextensionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn EnumerateExtensions(this: *mut core::ffi::c_void, pstrextensionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerPolicy_Impl::EnumerateExtensions(this) { Ok(ok__) => { @@ -4847,24 +3740,15 @@ impl ICertServerPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateExtensionsClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn EnumerateExtensionsClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerPolicy_Impl::EnumerateExtensionsClose(this).into() } - unsafe extern "system" fn EnumerateAttributesSetup(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn EnumerateAttributesSetup(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerPolicy_Impl::EnumerateAttributesSetup(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn EnumerateAttributes(this: *mut core::ffi::c_void, pstrattributename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn EnumerateAttributes(this: *mut core::ffi::c_void, pstrattributename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertServerPolicy_Impl::EnumerateAttributes(this) { Ok(ok__) => { @@ -4874,10 +3758,7 @@ impl ICertServerPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateAttributesClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertServerPolicy_Impl, - { + unsafe extern "system" fn EnumerateAttributesClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertServerPolicy_Impl::EnumerateAttributesClose(this).into() } @@ -4918,21 +3799,12 @@ pub trait ICertView_Impl: Sized + super::super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ICertView {} #[cfg(feature = "Win32_System_Com")] impl ICertView_Vtbl { - pub const fn new() -> ICertView_Vtbl - where - Identity: ICertView_Impl, - { - unsafe extern "system" fn OpenConnection(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertView_Impl, - { + pub const fn new() -> ICertView_Vtbl { + unsafe extern "system" fn OpenConnection(this: *mut core::ffi::c_void, strconfig: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertView_Impl::OpenConnection(this, core::mem::transmute(&strconfig)).into() } - unsafe extern "system" fn EnumCertViewColumn(this: *mut core::ffi::c_void, fresultcolumn: CVRC_COLUMN, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertView_Impl, - { + unsafe extern "system" fn EnumCertViewColumn(this: *mut core::ffi::c_void, fresultcolumn: CVRC_COLUMN, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertView_Impl::EnumCertViewColumn(this, core::mem::transmute_copy(&fresultcolumn)) { Ok(ok__) => { @@ -4942,45 +3814,27 @@ impl ICertView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumnCount(this: *mut core::ffi::c_void, fresultcolumn: CVRC_COLUMN, pccolumn: *mut i32) -> windows_core::HRESULT - where - Identity: ICertView_Impl, - { + unsafe extern "system" fn GetColumnCount(this: *mut core::ffi::c_void, fresultcolumn: CVRC_COLUMN, pccolumn: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertView_Impl::GetColumnCount(this, core::mem::transmute_copy(&fresultcolumn), core::mem::transmute_copy(&pccolumn)).into() } - unsafe extern "system" fn GetColumnIndex(this: *mut core::ffi::c_void, fresultcolumn: CVRC_COLUMN, strcolumnname: core::mem::MaybeUninit, pcolumnindex: *mut i32) -> windows_core::HRESULT - where - Identity: ICertView_Impl, - { + unsafe extern "system" fn GetColumnIndex(this: *mut core::ffi::c_void, fresultcolumn: CVRC_COLUMN, strcolumnname: core::mem::MaybeUninit, pcolumnindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertView_Impl::GetColumnIndex(this, core::mem::transmute_copy(&fresultcolumn), core::mem::transmute(&strcolumnname), core::mem::transmute_copy(&pcolumnindex)).into() } - unsafe extern "system" fn SetResultColumnCount(this: *mut core::ffi::c_void, cresultcolumn: i32) -> windows_core::HRESULT - where - Identity: ICertView_Impl, - { + unsafe extern "system" fn SetResultColumnCount(this: *mut core::ffi::c_void, cresultcolumn: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertView_Impl::SetResultColumnCount(this, core::mem::transmute_copy(&cresultcolumn)).into() } - unsafe extern "system" fn SetResultColumn(this: *mut core::ffi::c_void, columnindex: i32) -> windows_core::HRESULT - where - Identity: ICertView_Impl, - { + unsafe extern "system" fn SetResultColumn(this: *mut core::ffi::c_void, columnindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertView_Impl::SetResultColumn(this, core::mem::transmute_copy(&columnindex)).into() } - unsafe extern "system" fn SetRestriction(this: *mut core::ffi::c_void, columnindex: CERT_VIEW_COLUMN_INDEX, seekoperator: CERT_VIEW_SEEK_OPERATOR_FLAGS, sortorder: i32, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertView_Impl, - { + unsafe extern "system" fn SetRestriction(this: *mut core::ffi::c_void, columnindex: CERT_VIEW_COLUMN_INDEX, seekoperator: CERT_VIEW_SEEK_OPERATOR_FLAGS, sortorder: i32, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertView_Impl::SetRestriction(this, core::mem::transmute_copy(&columnindex), core::mem::transmute_copy(&seekoperator), core::mem::transmute_copy(&sortorder), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn OpenView(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertView_Impl, - { + unsafe extern "system" fn OpenView(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertView_Impl::OpenView(this) { Ok(ok__) => { @@ -5014,14 +3868,8 @@ pub trait ICertView2_Impl: Sized + ICertView_Impl { impl windows_core::RuntimeName for ICertView2 {} #[cfg(feature = "Win32_System_Com")] impl ICertView2_Vtbl { - pub const fn new() -> ICertView2_Vtbl - where - Identity: ICertView2_Impl, - { - unsafe extern "system" fn SetTable(this: *mut core::ffi::c_void, table: CVRC_TABLE) -> windows_core::HRESULT - where - Identity: ICertView2_Impl, - { + pub const fn new() -> ICertView2_Vtbl { + unsafe extern "system" fn SetTable(this: *mut core::ffi::c_void, table: CVRC_TABLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertView2_Impl::SetTable(this, core::mem::transmute_copy(&table)).into() } @@ -5041,21 +3889,12 @@ pub trait ICertificateAttestationChallenge_Impl: Sized + super::super::super::Sy impl windows_core::RuntimeName for ICertificateAttestationChallenge {} #[cfg(feature = "Win32_System_Com")] impl ICertificateAttestationChallenge_Vtbl { - pub const fn new() -> ICertificateAttestationChallenge_Vtbl - where - Identity: ICertificateAttestationChallenge_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateAttestationChallenge_Impl, - { + pub const fn new() -> ICertificateAttestationChallenge_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateAttestationChallenge_Impl::Initialize(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strpendingfullcmcresponsewithchallenge)).into() } - unsafe extern "system" fn DecryptChallenge(this: *mut core::ffi::c_void, encoding: EncodingType, pstrenvelopedpkcs7reencryptedtoca: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateAttestationChallenge_Impl, - { + unsafe extern "system" fn DecryptChallenge(this: *mut core::ffi::c_void, encoding: EncodingType, pstrenvelopedpkcs7reencryptedtoca: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificateAttestationChallenge_Impl::DecryptChallenge(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -5065,10 +3904,7 @@ impl ICertificateAttestationChallenge_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestID(this: *mut core::ffi::c_void, pstrrequestid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateAttestationChallenge_Impl, - { + unsafe extern "system" fn RequestID(this: *mut core::ffi::c_void, pstrrequestid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificateAttestationChallenge_Impl::RequestID(this) { Ok(ok__) => { @@ -5098,21 +3934,12 @@ pub trait ICertificateAttestationChallenge2_Impl: Sized + ICertificateAttestatio impl windows_core::RuntimeName for ICertificateAttestationChallenge2 {} #[cfg(feature = "Win32_System_Com")] impl ICertificateAttestationChallenge2_Vtbl { - pub const fn new() -> ICertificateAttestationChallenge2_Vtbl - where - Identity: ICertificateAttestationChallenge2_Impl, - { - unsafe extern "system" fn SetKeyContainerName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateAttestationChallenge2_Impl, - { + pub const fn new() -> ICertificateAttestationChallenge2_Vtbl { + unsafe extern "system" fn SetKeyContainerName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateAttestationChallenge2_Impl::SetKeyContainerName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn put_KeyBlob(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateAttestationChallenge2_Impl, - { + unsafe extern "system" fn put_KeyBlob(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateAttestationChallenge2_Impl::put_KeyBlob(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } @@ -5139,14 +3966,8 @@ pub trait ICertificatePolicies_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for ICertificatePolicies {} #[cfg(feature = "Win32_System_Com")] impl ICertificatePolicies_Vtbl { - pub const fn new() -> ICertificatePolicies_Vtbl - where - Identity: ICertificatePolicies_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificatePolicies_Impl, - { + pub const fn new() -> ICertificatePolicies_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificatePolicies_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5156,10 +3977,7 @@ impl ICertificatePolicies_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICertificatePolicies_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificatePolicies_Impl::Count(this) { Ok(ok__) => { @@ -5169,10 +3987,7 @@ impl ICertificatePolicies_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificatePolicies_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificatePolicies_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5182,24 +3997,15 @@ impl ICertificatePolicies_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificatePolicies_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificatePolicies_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ICertificatePolicies_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificatePolicies_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificatePolicies_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificatePolicies_Impl::Clear(this).into() } @@ -5227,21 +4033,12 @@ pub trait ICertificatePolicy_Impl: Sized + super::super::super::System::Com::IDi impl windows_core::RuntimeName for ICertificatePolicy {} #[cfg(feature = "Win32_System_Com")] impl ICertificatePolicy_Vtbl { - pub const fn new() -> ICertificatePolicy_Vtbl - where - Identity: ICertificatePolicy_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificatePolicy_Impl, - { + pub const fn new() -> ICertificatePolicy_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificatePolicy_Impl::Initialize(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificatePolicy_Impl, - { + unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificatePolicy_Impl::ObjectId(this) { Ok(ok__) => { @@ -5251,10 +4048,7 @@ impl ICertificatePolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PolicyQualifiers(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificatePolicy_Impl, - { + unsafe extern "system" fn PolicyQualifiers(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificatePolicy_Impl::PolicyQualifiers(this) { Ok(ok__) => { @@ -5290,14 +4084,8 @@ pub trait ICertificationAuthorities_Impl: Sized + super::super::super::System::C impl windows_core::RuntimeName for ICertificationAuthorities {} #[cfg(feature = "Win32_System_Com")] impl ICertificationAuthorities_Vtbl { - pub const fn new() -> ICertificationAuthorities_Vtbl - where - Identity: ICertificationAuthorities_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificationAuthorities_Impl, - { + pub const fn new() -> ICertificationAuthorities_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificationAuthorities_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5307,10 +4095,7 @@ impl ICertificationAuthorities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICertificationAuthorities_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificationAuthorities_Impl::Count(this) { Ok(ok__) => { @@ -5320,10 +4105,7 @@ impl ICertificationAuthorities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificationAuthorities_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificationAuthorities_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5333,38 +4115,23 @@ impl ICertificationAuthorities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificationAuthorities_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificationAuthorities_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ICertificationAuthorities_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificationAuthorities_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificationAuthorities_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificationAuthorities_Impl::Clear(this).into() } - unsafe extern "system" fn ComputeSiteCosts(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificationAuthorities_Impl, - { + unsafe extern "system" fn ComputeSiteCosts(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificationAuthorities_Impl::ComputeSiteCosts(this).into() } - unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificationAuthorities_Impl, - { + unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificationAuthorities_Impl::get_ItemByName(this, core::mem::transmute(&strname)) { Ok(ok__) => { @@ -5398,14 +4165,8 @@ pub trait ICertificationAuthority_Impl: Sized + super::super::super::System::Com impl windows_core::RuntimeName for ICertificationAuthority {} #[cfg(feature = "Win32_System_Com")] impl ICertificationAuthority_Vtbl { - pub const fn new() -> ICertificationAuthority_Vtbl - where - Identity: ICertificationAuthority_Impl, - { - unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, property: EnrollmentCAProperty, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificationAuthority_Impl, - { + pub const fn new() -> ICertificationAuthority_Vtbl { + unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, property: EnrollmentCAProperty, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificationAuthority_Impl::get_Property(this, core::mem::transmute_copy(&property)) { Ok(ok__) => { @@ -5432,28 +4193,16 @@ pub trait ICryptAttribute_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for ICryptAttribute {} #[cfg(feature = "Win32_System_Com")] impl ICryptAttribute_Vtbl { - pub const fn new() -> ICryptAttribute_Vtbl - where - Identity: ICryptAttribute_Impl, - { - unsafe extern "system" fn InitializeFromObjectId(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICryptAttribute_Impl, - { + pub const fn new() -> ICryptAttribute_Vtbl { + unsafe extern "system" fn InitializeFromObjectId(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICryptAttribute_Impl::InitializeFromObjectId(this, windows_core::from_raw_borrowed(&pobjectid)).into() } - unsafe extern "system" fn InitializeFromValues(this: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICryptAttribute_Impl, - { + unsafe extern "system" fn InitializeFromValues(this: *mut core::ffi::c_void, pattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICryptAttribute_Impl::InitializeFromValues(this, windows_core::from_raw_borrowed(&pattributes)).into() } - unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICryptAttribute_Impl, - { + unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICryptAttribute_Impl::ObjectId(this) { Ok(ok__) => { @@ -5463,10 +4212,7 @@ impl ICryptAttribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Values(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICryptAttribute_Impl, - { + unsafe extern "system" fn Values(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICryptAttribute_Impl::Values(this) { Ok(ok__) => { @@ -5503,14 +4249,8 @@ pub trait ICryptAttributes_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for ICryptAttributes {} #[cfg(feature = "Win32_System_Com")] impl ICryptAttributes_Vtbl { - pub const fn new() -> ICryptAttributes_Vtbl - where - Identity: ICryptAttributes_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICryptAttributes_Impl, - { + pub const fn new() -> ICryptAttributes_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICryptAttributes_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5520,10 +4260,7 @@ impl ICryptAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICryptAttributes_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICryptAttributes_Impl::Count(this) { Ok(ok__) => { @@ -5533,10 +4270,7 @@ impl ICryptAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICryptAttributes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICryptAttributes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5546,31 +4280,19 @@ impl ICryptAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICryptAttributes_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICryptAttributes_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ICryptAttributes_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICryptAttributes_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICryptAttributes_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICryptAttributes_Impl::Clear(this).into() } - unsafe extern "system" fn get_IndexByObjectId(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: ICryptAttributes_Impl, - { + unsafe extern "system" fn get_IndexByObjectId(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICryptAttributes_Impl::get_IndexByObjectId(this, windows_core::from_raw_borrowed(&pobjectid)) { Ok(ok__) => { @@ -5580,10 +4302,7 @@ impl ICryptAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICryptAttributes_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICryptAttributes_Impl::AddRange(this, windows_core::from_raw_borrowed(&pvalue)).into() } @@ -5620,14 +4339,8 @@ pub trait ICspAlgorithm_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for ICspAlgorithm {} #[cfg(feature = "Win32_System_Com")] impl ICspAlgorithm_Vtbl { - pub const fn new() -> ICspAlgorithm_Vtbl - where - Identity: ICspAlgorithm_Impl, - { - unsafe extern "system" fn GetAlgorithmOid(this: *mut core::ffi::c_void, length: i32, algflags: AlgorithmFlags, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspAlgorithm_Impl, - { + pub const fn new() -> ICspAlgorithm_Vtbl { + unsafe extern "system" fn GetAlgorithmOid(this: *mut core::ffi::c_void, length: i32, algflags: AlgorithmFlags, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithm_Impl::GetAlgorithmOid(this, core::mem::transmute_copy(&length), core::mem::transmute_copy(&algflags)) { Ok(ok__) => { @@ -5637,10 +4350,7 @@ impl ICspAlgorithm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultLength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICspAlgorithm_Impl, - { + unsafe extern "system" fn DefaultLength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithm_Impl::DefaultLength(this) { Ok(ok__) => { @@ -5650,10 +4360,7 @@ impl ICspAlgorithm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IncrementLength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICspAlgorithm_Impl, - { + unsafe extern "system" fn IncrementLength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithm_Impl::IncrementLength(this) { Ok(ok__) => { @@ -5663,10 +4370,7 @@ impl ICspAlgorithm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LongName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICspAlgorithm_Impl, - { + unsafe extern "system" fn LongName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithm_Impl::LongName(this) { Ok(ok__) => { @@ -5676,10 +4380,7 @@ impl ICspAlgorithm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Valid(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICspAlgorithm_Impl, - { + unsafe extern "system" fn Valid(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithm_Impl::Valid(this) { Ok(ok__) => { @@ -5689,10 +4390,7 @@ impl ICspAlgorithm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxLength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICspAlgorithm_Impl, - { + unsafe extern "system" fn MaxLength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithm_Impl::MaxLength(this) { Ok(ok__) => { @@ -5702,10 +4400,7 @@ impl ICspAlgorithm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinLength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICspAlgorithm_Impl, - { + unsafe extern "system" fn MinLength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithm_Impl::MinLength(this) { Ok(ok__) => { @@ -5715,10 +4410,7 @@ impl ICspAlgorithm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICspAlgorithm_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithm_Impl::Name(this) { Ok(ok__) => { @@ -5728,10 +4420,7 @@ impl ICspAlgorithm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pvalue: *mut AlgorithmType) -> windows_core::HRESULT - where - Identity: ICspAlgorithm_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pvalue: *mut AlgorithmType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithm_Impl::Type(this) { Ok(ok__) => { @@ -5741,10 +4430,7 @@ impl ICspAlgorithm_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Operations(this: *mut core::ffi::c_void, pvalue: *mut AlgorithmOperationFlags) -> windows_core::HRESULT - where - Identity: ICspAlgorithm_Impl, - { + unsafe extern "system" fn Operations(this: *mut core::ffi::c_void, pvalue: *mut AlgorithmOperationFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithm_Impl::Operations(this) { Ok(ok__) => { @@ -5787,14 +4473,8 @@ pub trait ICspAlgorithms_Impl: Sized + super::super::super::System::Com::IDispat impl windows_core::RuntimeName for ICspAlgorithms {} #[cfg(feature = "Win32_System_Com")] impl ICspAlgorithms_Vtbl { - pub const fn new() -> ICspAlgorithms_Vtbl - where - Identity: ICspAlgorithms_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspAlgorithms_Impl, - { + pub const fn new() -> ICspAlgorithms_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithms_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5804,10 +4484,7 @@ impl ICspAlgorithms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICspAlgorithms_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithms_Impl::Count(this) { Ok(ok__) => { @@ -5817,10 +4494,7 @@ impl ICspAlgorithms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspAlgorithms_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithms_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5830,31 +4504,19 @@ impl ICspAlgorithms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspAlgorithms_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspAlgorithms_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ICspAlgorithms_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspAlgorithms_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspAlgorithms_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspAlgorithms_Impl::Clear(this).into() } - unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspAlgorithms_Impl, - { + unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithms_Impl::get_ItemByName(this, core::mem::transmute(&strname)) { Ok(ok__) => { @@ -5864,10 +4526,7 @@ impl ICspAlgorithms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_IndexByObjectId(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: ICspAlgorithms_Impl, - { + unsafe extern "system" fn get_IndexByObjectId(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspAlgorithms_Impl::get_IndexByObjectId(this, windows_core::from_raw_borrowed(&pobjectid)) { Ok(ok__) => { @@ -5917,28 +4576,16 @@ pub trait ICspInformation_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for ICspInformation {} #[cfg(feature = "Win32_System_Com")] impl ICspInformation_Vtbl { - pub const fn new() -> ICspInformation_Vtbl - where - Identity: ICspInformation_Impl, - { - unsafe extern "system" fn InitializeFromName(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + pub const fn new() -> ICspInformation_Vtbl { + unsafe extern "system" fn InitializeFromName(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspInformation_Impl::InitializeFromName(this, core::mem::transmute(&strname)).into() } - unsafe extern "system" fn InitializeFromType(this: *mut core::ffi::c_void, r#type: X509ProviderType, palgorithm: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn InitializeFromType(this: *mut core::ffi::c_void, r#type: X509ProviderType, palgorithm: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspInformation_Impl::InitializeFromType(this, core::mem::transmute_copy(&r#type), windows_core::from_raw_borrowed(&palgorithm), core::mem::transmute_copy(&machinecontext)).into() } - unsafe extern "system" fn CspAlgorithms(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn CspAlgorithms(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::CspAlgorithms(this) { Ok(ok__) => { @@ -5948,10 +4595,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasHardwareRandomNumberGenerator(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn HasHardwareRandomNumberGenerator(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::HasHardwareRandomNumberGenerator(this) { Ok(ok__) => { @@ -5961,10 +4605,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsHardwareDevice(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn IsHardwareDevice(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::IsHardwareDevice(this) { Ok(ok__) => { @@ -5974,10 +4615,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRemovable(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn IsRemovable(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::IsRemovable(this) { Ok(ok__) => { @@ -5987,10 +4625,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSoftwareDevice(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn IsSoftwareDevice(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::IsSoftwareDevice(this) { Ok(ok__) => { @@ -6000,10 +4635,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Valid(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn Valid(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::Valid(this) { Ok(ok__) => { @@ -6013,10 +4645,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxKeyContainerNameLength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn MaxKeyContainerNameLength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::MaxKeyContainerNameLength(this) { Ok(ok__) => { @@ -6026,10 +4655,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::Name(this) { Ok(ok__) => { @@ -6039,10 +4665,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pvalue: *mut X509ProviderType) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pvalue: *mut X509ProviderType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::Type(this) { Ok(ok__) => { @@ -6052,10 +4675,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::Version(this) { Ok(ok__) => { @@ -6065,10 +4685,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pvalue: *mut X509KeySpec) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pvalue: *mut X509KeySpec) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::KeySpec(this) { Ok(ok__) => { @@ -6078,10 +4695,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSmartCard(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn IsSmartCard(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::IsSmartCard(this) { Ok(ok__) => { @@ -6091,10 +4705,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultSecurityDescriptor(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn GetDefaultSecurityDescriptor(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::GetDefaultSecurityDescriptor(this, core::mem::transmute_copy(&machinecontext)) { Ok(ok__) => { @@ -6104,10 +4715,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LegacyCsp(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn LegacyCsp(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::LegacyCsp(this) { Ok(ok__) => { @@ -6117,10 +4725,7 @@ impl ICspInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCspStatusFromOperations(this: *mut core::ffi::c_void, palgorithm: *mut core::ffi::c_void, operations: AlgorithmOperationFlags, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformation_Impl, - { + unsafe extern "system" fn GetCspStatusFromOperations(this: *mut core::ffi::c_void, palgorithm: *mut core::ffi::c_void, operations: AlgorithmOperationFlags, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformation_Impl::GetCspStatusFromOperations(this, windows_core::from_raw_borrowed(&palgorithm), core::mem::transmute_copy(&operations)) { Ok(ok__) => { @@ -6174,14 +4779,8 @@ pub trait ICspInformations_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for ICspInformations {} #[cfg(feature = "Win32_System_Com")] impl ICspInformations_Vtbl { - pub const fn new() -> ICspInformations_Vtbl - where - Identity: ICspInformations_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + pub const fn new() -> ICspInformations_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformations_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6191,10 +4790,7 @@ impl ICspInformations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformations_Impl::Count(this) { Ok(ok__) => { @@ -6204,10 +4800,7 @@ impl ICspInformations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformations_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6217,38 +4810,23 @@ impl ICspInformations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspInformations_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspInformations_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspInformations_Impl::Clear(this).into() } - unsafe extern "system" fn AddAvailableCsps(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn AddAvailableCsps(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspInformations_Impl::AddAvailableCsps(this).into() } - unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, ppcspinformation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, ppcspinformation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformations_Impl::get_ItemByName(this, core::mem::transmute(&strname)) { Ok(ok__) => { @@ -6258,10 +4836,7 @@ impl ICspInformations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCspStatusFromProviderName(this: *mut core::ffi::c_void, strprovidername: core::mem::MaybeUninit, legacykeyspec: X509KeySpec, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn GetCspStatusFromProviderName(this: *mut core::ffi::c_void, strprovidername: core::mem::MaybeUninit, legacykeyspec: X509KeySpec, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformations_Impl::GetCspStatusFromProviderName(this, core::mem::transmute(&strprovidername), core::mem::transmute_copy(&legacykeyspec)) { Ok(ok__) => { @@ -6271,10 +4846,7 @@ impl ICspInformations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCspStatusesFromOperations(this: *mut core::ffi::c_void, operations: AlgorithmOperationFlags, pcspinformation: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn GetCspStatusesFromOperations(this: *mut core::ffi::c_void, operations: AlgorithmOperationFlags, pcspinformation: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformations_Impl::GetCspStatusesFromOperations(this, core::mem::transmute_copy(&operations), windows_core::from_raw_borrowed(&pcspinformation)) { Ok(ok__) => { @@ -6284,10 +4856,7 @@ impl ICspInformations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEncryptionCspAlgorithms(this: *mut core::ffi::c_void, pcspinformation: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn GetEncryptionCspAlgorithms(this: *mut core::ffi::c_void, pcspinformation: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformations_Impl::GetEncryptionCspAlgorithms(this, windows_core::from_raw_borrowed(&pcspinformation)) { Ok(ok__) => { @@ -6297,10 +4866,7 @@ impl ICspInformations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHashAlgorithms(this: *mut core::ffi::c_void, pcspinformation: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspInformations_Impl, - { + unsafe extern "system" fn GetHashAlgorithms(this: *mut core::ffi::c_void, pcspinformation: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspInformations_Impl::GetHashAlgorithms(this, windows_core::from_raw_borrowed(&pcspinformation)) { Ok(ok__) => { @@ -6344,21 +4910,12 @@ pub trait ICspStatus_Impl: Sized + super::super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ICspStatus {} #[cfg(feature = "Win32_System_Com")] impl ICspStatus_Vtbl { - pub const fn new() -> ICspStatus_Vtbl - where - Identity: ICspStatus_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pcsp: *mut core::ffi::c_void, palgorithm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatus_Impl, - { + pub const fn new() -> ICspStatus_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pcsp: *mut core::ffi::c_void, palgorithm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspStatus_Impl::Initialize(this, windows_core::from_raw_borrowed(&pcsp), windows_core::from_raw_borrowed(&palgorithm)).into() } - unsafe extern "system" fn Ordinal(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICspStatus_Impl, - { + unsafe extern "system" fn Ordinal(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatus_Impl::Ordinal(this) { Ok(ok__) => { @@ -6368,17 +4925,11 @@ impl ICspStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOrdinal(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ICspStatus_Impl, - { + unsafe extern "system" fn SetOrdinal(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspStatus_Impl::SetOrdinal(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn CspAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatus_Impl, - { + unsafe extern "system" fn CspAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatus_Impl::CspAlgorithm(this) { Ok(ok__) => { @@ -6388,10 +4939,7 @@ impl ICspStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CspInformation(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatus_Impl, - { + unsafe extern "system" fn CspInformation(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatus_Impl::CspInformation(this) { Ok(ok__) => { @@ -6401,10 +4949,7 @@ impl ICspStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnrollmentStatus(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatus_Impl, - { + unsafe extern "system" fn EnrollmentStatus(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatus_Impl::EnrollmentStatus(this) { Ok(ok__) => { @@ -6414,10 +4959,7 @@ impl ICspStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICspStatus_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatus_Impl::DisplayName(this) { Ok(ok__) => { @@ -6459,14 +5001,8 @@ pub trait ICspStatuses_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for ICspStatuses {} #[cfg(feature = "Win32_System_Com")] impl ICspStatuses_Vtbl { - pub const fn new() -> ICspStatuses_Vtbl - where - Identity: ICspStatuses_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatuses_Impl, - { + pub const fn new() -> ICspStatuses_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatuses_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6476,10 +5012,7 @@ impl ICspStatuses_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICspStatuses_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatuses_Impl::Count(this) { Ok(ok__) => { @@ -6489,10 +5022,7 @@ impl ICspStatuses_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatuses_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatuses_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6502,31 +5032,19 @@ impl ICspStatuses_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatuses_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspStatuses_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ICspStatuses_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspStatuses_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatuses_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICspStatuses_Impl::Clear(this).into() } - unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, strcspname: core::mem::MaybeUninit, stralgorithmname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatuses_Impl, - { + unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, strcspname: core::mem::MaybeUninit, stralgorithmname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatuses_Impl::get_ItemByName(this, core::mem::transmute(&strcspname), core::mem::transmute(&stralgorithmname)) { Ok(ok__) => { @@ -6536,10 +5054,7 @@ impl ICspStatuses_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ItemByOrdinal(this: *mut core::ffi::c_void, ordinal: i32, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatuses_Impl, - { + unsafe extern "system" fn get_ItemByOrdinal(this: *mut core::ffi::c_void, ordinal: i32, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatuses_Impl::get_ItemByOrdinal(this, core::mem::transmute_copy(&ordinal)) { Ok(ok__) => { @@ -6549,10 +5064,7 @@ impl ICspStatuses_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ItemByOperations(this: *mut core::ffi::c_void, strcspname: core::mem::MaybeUninit, stralgorithmname: core::mem::MaybeUninit, operations: AlgorithmOperationFlags, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatuses_Impl, - { + unsafe extern "system" fn get_ItemByOperations(this: *mut core::ffi::c_void, strcspname: core::mem::MaybeUninit, stralgorithmname: core::mem::MaybeUninit, operations: AlgorithmOperationFlags, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatuses_Impl::get_ItemByOperations(this, core::mem::transmute(&strcspname), core::mem::transmute(&stralgorithmname), core::mem::transmute_copy(&operations)) { Ok(ok__) => { @@ -6562,10 +5074,7 @@ impl ICspStatuses_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ItemByProvider(this: *mut core::ffi::c_void, pcspstatus: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICspStatuses_Impl, - { + unsafe extern "system" fn get_ItemByProvider(this: *mut core::ffi::c_void, pcspstatus: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICspStatuses_Impl::get_ItemByProvider(this, windows_core::from_raw_borrowed(&pcspstatus)) { Ok(ok__) => { @@ -6593,7 +5102,7 @@ impl ICspStatuses_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IEnroll_Impl: Sized { +pub trait IEnroll_Impl: Sized + windows_core::IUnknownImpl { fn createFilePKCS10WStr(&self, dnname: &windows_core::PCWSTR, usage: &windows_core::PCWSTR, wszpkcs10filename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn acceptFilePKCS7WStr(&self, wszpkcs7filename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn createPKCS10WStr(&self, dnname: &windows_core::PCWSTR, usage: &windows_core::PCWSTR, ppkcs10blob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()>; @@ -6667,497 +5176,284 @@ pub trait IEnroll_Impl: Sized { } impl windows_core::RuntimeName for IEnroll {} impl IEnroll_Vtbl { - pub const fn new() -> IEnroll_Vtbl - where - Identity: IEnroll_Impl, - { - unsafe extern "system" fn createFilePKCS10WStr(this: *mut core::ffi::c_void, dnname: windows_core::PCWSTR, usage: windows_core::PCWSTR, wszpkcs10filename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + pub const fn new() -> IEnroll_Vtbl { + unsafe extern "system" fn createFilePKCS10WStr(this: *mut core::ffi::c_void, dnname: windows_core::PCWSTR, usage: windows_core::PCWSTR, wszpkcs10filename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::createFilePKCS10WStr(this, core::mem::transmute(&dnname), core::mem::transmute(&usage), core::mem::transmute(&wszpkcs10filename)).into() } - unsafe extern "system" fn acceptFilePKCS7WStr(this: *mut core::ffi::c_void, wszpkcs7filename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn acceptFilePKCS7WStr(this: *mut core::ffi::c_void, wszpkcs7filename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::acceptFilePKCS7WStr(this, core::mem::transmute(&wszpkcs7filename)).into() } - unsafe extern "system" fn createPKCS10WStr(this: *mut core::ffi::c_void, dnname: windows_core::PCWSTR, usage: windows_core::PCWSTR, ppkcs10blob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn createPKCS10WStr(this: *mut core::ffi::c_void, dnname: windows_core::PCWSTR, usage: windows_core::PCWSTR, ppkcs10blob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::createPKCS10WStr(this, core::mem::transmute(&dnname), core::mem::transmute(&usage), core::mem::transmute_copy(&ppkcs10blob)).into() } - unsafe extern "system" fn acceptPKCS7Blob(this: *mut core::ffi::c_void, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn acceptPKCS7Blob(this: *mut core::ffi::c_void, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::acceptPKCS7Blob(this, core::mem::transmute_copy(&pblobpkcs7)).into() } - unsafe extern "system" fn getCertContextFromPKCS7(this: *mut core::ffi::c_void, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB) -> *mut super::CERT_CONTEXT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn getCertContextFromPKCS7(this: *mut core::ffi::c_void, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB) -> *mut super::CERT_CONTEXT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::getCertContextFromPKCS7(this, core::mem::transmute_copy(&pblobpkcs7)) } - unsafe extern "system" fn getMyStore(this: *mut core::ffi::c_void) -> super::HCERTSTORE - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn getMyStore(this: *mut core::ffi::c_void) -> super::HCERTSTORE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::getMyStore(this) } - unsafe extern "system" fn getCAStore(this: *mut core::ffi::c_void) -> super::HCERTSTORE - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn getCAStore(this: *mut core::ffi::c_void) -> super::HCERTSTORE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::getCAStore(this) } - unsafe extern "system" fn getROOTHStore(this: *mut core::ffi::c_void) -> super::HCERTSTORE - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn getROOTHStore(this: *mut core::ffi::c_void) -> super::HCERTSTORE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::getROOTHStore(this) } - unsafe extern "system" fn enumProvidersWStr(this: *mut core::ffi::c_void, dwindex: i32, dwflags: i32, pbstrprovname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn enumProvidersWStr(this: *mut core::ffi::c_void, dwindex: i32, dwflags: i32, pbstrprovname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::enumProvidersWStr(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pbstrprovname)).into() } - unsafe extern "system" fn enumContainersWStr(this: *mut core::ffi::c_void, dwindex: i32, pbstr: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn enumContainersWStr(this: *mut core::ffi::c_void, dwindex: i32, pbstr: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::enumContainersWStr(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pbstr)).into() } - unsafe extern "system" fn freeRequestInfoBlob(this: *mut core::ffi::c_void, pkcs7orpkcs10: super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn freeRequestInfoBlob(this: *mut core::ffi::c_void, pkcs7orpkcs10: super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::freeRequestInfoBlob(this, core::mem::transmute(&pkcs7orpkcs10)).into() } - unsafe extern "system" fn MyStoreNameWStr(this: *mut core::ffi::c_void, szwname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn MyStoreNameWStr(this: *mut core::ffi::c_void, szwname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::MyStoreNameWStr(this, core::mem::transmute_copy(&szwname)).into() } - unsafe extern "system" fn SetMyStoreNameWStr(this: *mut core::ffi::c_void, szwname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetMyStoreNameWStr(this: *mut core::ffi::c_void, szwname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetMyStoreNameWStr(this, core::mem::transmute(&szwname)).into() } - unsafe extern "system" fn MyStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn MyStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::MyStoreTypeWStr(this, core::mem::transmute_copy(&szwtype)).into() } - unsafe extern "system" fn SetMyStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetMyStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetMyStoreTypeWStr(this, core::mem::transmute(&szwtype)).into() } - unsafe extern "system" fn MyStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn MyStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::MyStoreFlags(this, core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn SetMyStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetMyStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetMyStoreFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn CAStoreNameWStr(this: *mut core::ffi::c_void, szwname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn CAStoreNameWStr(this: *mut core::ffi::c_void, szwname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::CAStoreNameWStr(this, core::mem::transmute_copy(&szwname)).into() } - unsafe extern "system" fn SetCAStoreNameWStr(this: *mut core::ffi::c_void, szwname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetCAStoreNameWStr(this: *mut core::ffi::c_void, szwname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetCAStoreNameWStr(this, core::mem::transmute(&szwname)).into() } - unsafe extern "system" fn CAStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn CAStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::CAStoreTypeWStr(this, core::mem::transmute_copy(&szwtype)).into() } - unsafe extern "system" fn SetCAStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetCAStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetCAStoreTypeWStr(this, core::mem::transmute(&szwtype)).into() } - unsafe extern "system" fn CAStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn CAStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::CAStoreFlags(this, core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn SetCAStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetCAStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetCAStoreFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RootStoreNameWStr(this: *mut core::ffi::c_void, szwname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn RootStoreNameWStr(this: *mut core::ffi::c_void, szwname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::RootStoreNameWStr(this, core::mem::transmute_copy(&szwname)).into() } - unsafe extern "system" fn SetRootStoreNameWStr(this: *mut core::ffi::c_void, szwname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetRootStoreNameWStr(this: *mut core::ffi::c_void, szwname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetRootStoreNameWStr(this, core::mem::transmute(&szwname)).into() } - unsafe extern "system" fn RootStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn RootStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::RootStoreTypeWStr(this, core::mem::transmute_copy(&szwtype)).into() } - unsafe extern "system" fn SetRootStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetRootStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetRootStoreTypeWStr(this, core::mem::transmute(&szwtype)).into() } - unsafe extern "system" fn RootStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn RootStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::RootStoreFlags(this, core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn SetRootStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetRootStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetRootStoreFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RequestStoreNameWStr(this: *mut core::ffi::c_void, szwname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn RequestStoreNameWStr(this: *mut core::ffi::c_void, szwname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::RequestStoreNameWStr(this, core::mem::transmute_copy(&szwname)).into() } - unsafe extern "system" fn SetRequestStoreNameWStr(this: *mut core::ffi::c_void, szwname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetRequestStoreNameWStr(this: *mut core::ffi::c_void, szwname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetRequestStoreNameWStr(this, core::mem::transmute(&szwname)).into() } - unsafe extern "system" fn RequestStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn RequestStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::RequestStoreTypeWStr(this, core::mem::transmute_copy(&szwtype)).into() } - unsafe extern "system" fn SetRequestStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetRequestStoreTypeWStr(this: *mut core::ffi::c_void, szwtype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetRequestStoreTypeWStr(this, core::mem::transmute(&szwtype)).into() } - unsafe extern "system" fn RequestStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn RequestStoreFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::RequestStoreFlags(this, core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn SetRequestStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetRequestStoreFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetRequestStoreFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn ContainerNameWStr(this: *mut core::ffi::c_void, szwcontainer: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn ContainerNameWStr(this: *mut core::ffi::c_void, szwcontainer: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::ContainerNameWStr(this, core::mem::transmute_copy(&szwcontainer)).into() } - unsafe extern "system" fn SetContainerNameWStr(this: *mut core::ffi::c_void, szwcontainer: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetContainerNameWStr(this: *mut core::ffi::c_void, szwcontainer: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetContainerNameWStr(this, core::mem::transmute(&szwcontainer)).into() } - unsafe extern "system" fn ProviderNameWStr(this: *mut core::ffi::c_void, szwprovider: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn ProviderNameWStr(this: *mut core::ffi::c_void, szwprovider: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::ProviderNameWStr(this, core::mem::transmute_copy(&szwprovider)).into() } - unsafe extern "system" fn SetProviderNameWStr(this: *mut core::ffi::c_void, szwprovider: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetProviderNameWStr(this: *mut core::ffi::c_void, szwprovider: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetProviderNameWStr(this, core::mem::transmute(&szwprovider)).into() } - unsafe extern "system" fn ProviderType(this: *mut core::ffi::c_void, pdwtype: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn ProviderType(this: *mut core::ffi::c_void, pdwtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::ProviderType(this, core::mem::transmute_copy(&pdwtype)).into() } - unsafe extern "system" fn SetProviderType(this: *mut core::ffi::c_void, dwtype: i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetProviderType(this: *mut core::ffi::c_void, dwtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetProviderType(this, core::mem::transmute_copy(&dwtype)).into() } - unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pdw: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pdw: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::KeySpec(this, core::mem::transmute_copy(&pdw)).into() } - unsafe extern "system" fn SetKeySpec(this: *mut core::ffi::c_void, dw: i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetKeySpec(this: *mut core::ffi::c_void, dw: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetKeySpec(this, core::mem::transmute_copy(&dw)).into() } - unsafe extern "system" fn ProviderFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn ProviderFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::ProviderFlags(this, core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn SetProviderFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetProviderFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetProviderFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn UseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn UseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::UseExistingKeySet(this, core::mem::transmute_copy(&fuseexistingkeys)).into() } - unsafe extern "system" fn SetUseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetUseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetUseExistingKeySet(this, core::mem::transmute_copy(&fuseexistingkeys)).into() } - unsafe extern "system" fn GenKeyFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn GenKeyFlags(this: *mut core::ffi::c_void, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::GenKeyFlags(this, core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn SetGenKeyFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetGenKeyFlags(this: *mut core::ffi::c_void, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetGenKeyFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn DeleteRequestCert(this: *mut core::ffi::c_void, fdelete: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn DeleteRequestCert(this: *mut core::ffi::c_void, fdelete: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::DeleteRequestCert(this, core::mem::transmute_copy(&fdelete)).into() } - unsafe extern "system" fn SetDeleteRequestCert(this: *mut core::ffi::c_void, fdelete: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetDeleteRequestCert(this: *mut core::ffi::c_void, fdelete: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetDeleteRequestCert(this, core::mem::transmute_copy(&fdelete)).into() } - unsafe extern "system" fn WriteCertToUserDS(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn WriteCertToUserDS(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::WriteCertToUserDS(this, core::mem::transmute_copy(&fbool)).into() } - unsafe extern "system" fn SetWriteCertToUserDS(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetWriteCertToUserDS(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetWriteCertToUserDS(this, core::mem::transmute_copy(&fbool)).into() } - unsafe extern "system" fn EnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn EnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::EnableT61DNEncoding(this, core::mem::transmute_copy(&fbool)).into() } - unsafe extern "system" fn SetEnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetEnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetEnableT61DNEncoding(this, core::mem::transmute_copy(&fbool)).into() } - unsafe extern "system" fn WriteCertToCSP(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn WriteCertToCSP(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::WriteCertToCSP(this, core::mem::transmute_copy(&fbool)).into() } - unsafe extern "system" fn SetWriteCertToCSP(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetWriteCertToCSP(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetWriteCertToCSP(this, core::mem::transmute_copy(&fbool)).into() } - unsafe extern "system" fn SPCFileNameWStr(this: *mut core::ffi::c_void, szw: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SPCFileNameWStr(this: *mut core::ffi::c_void, szw: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SPCFileNameWStr(this, core::mem::transmute_copy(&szw)).into() } - unsafe extern "system" fn SetSPCFileNameWStr(this: *mut core::ffi::c_void, szw: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetSPCFileNameWStr(this: *mut core::ffi::c_void, szw: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetSPCFileNameWStr(this, core::mem::transmute(&szw)).into() } - unsafe extern "system" fn PVKFileNameWStr(this: *mut core::ffi::c_void, szw: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn PVKFileNameWStr(this: *mut core::ffi::c_void, szw: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::PVKFileNameWStr(this, core::mem::transmute_copy(&szw)).into() } - unsafe extern "system" fn SetPVKFileNameWStr(this: *mut core::ffi::c_void, szw: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetPVKFileNameWStr(this: *mut core::ffi::c_void, szw: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetPVKFileNameWStr(this, core::mem::transmute(&szw)).into() } - unsafe extern "system" fn HashAlgorithmWStr(this: *mut core::ffi::c_void, szw: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn HashAlgorithmWStr(this: *mut core::ffi::c_void, szw: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::HashAlgorithmWStr(this, core::mem::transmute_copy(&szw)).into() } - unsafe extern "system" fn SetHashAlgorithmWStr(this: *mut core::ffi::c_void, szw: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetHashAlgorithmWStr(this: *mut core::ffi::c_void, szw: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetHashAlgorithmWStr(this, core::mem::transmute(&szw)).into() } - unsafe extern "system" fn RenewalCertificate(this: *mut core::ffi::c_void, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn RenewalCertificate(this: *mut core::ffi::c_void, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::RenewalCertificate(this, core::mem::transmute_copy(&ppcertcontext)).into() } - unsafe extern "system" fn SetRenewalCertificate(this: *mut core::ffi::c_void, pcertcontext: *const super::CERT_CONTEXT) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn SetRenewalCertificate(this: *mut core::ffi::c_void, pcertcontext: *const super::CERT_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetRenewalCertificate(this, core::mem::transmute_copy(&pcertcontext)).into() } - unsafe extern "system" fn AddCertTypeToRequestWStr(this: *mut core::ffi::c_void, szw: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn AddCertTypeToRequestWStr(this: *mut core::ffi::c_void, szw: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::AddCertTypeToRequestWStr(this, core::mem::transmute(&szw)).into() } - unsafe extern "system" fn AddNameValuePairToSignatureWStr(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn AddNameValuePairToSignatureWStr(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::AddNameValuePairToSignatureWStr(this, core::mem::transmute(&name), core::mem::transmute(&value)).into() } - unsafe extern "system" fn AddExtensionsToRequest(this: *mut core::ffi::c_void, pcertextensions: *mut super::CERT_EXTENSIONS) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn AddExtensionsToRequest(this: *mut core::ffi::c_void, pcertextensions: *mut super::CERT_EXTENSIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::AddExtensionsToRequest(this, core::mem::transmute_copy(&pcertextensions)).into() } - unsafe extern "system" fn AddAuthenticatedAttributesToPKCS7Request(this: *mut core::ffi::c_void, pattributes: *mut super::CRYPT_ATTRIBUTES) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn AddAuthenticatedAttributesToPKCS7Request(this: *mut core::ffi::c_void, pattributes: *mut super::CRYPT_ATTRIBUTES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::AddAuthenticatedAttributesToPKCS7Request(this, core::mem::transmute_copy(&pattributes)).into() } - unsafe extern "system" fn CreatePKCS7RequestFromRequest(this: *mut core::ffi::c_void, prequest: *mut super::CRYPT_INTEGER_BLOB, psigningcertcontext: *const super::CERT_CONTEXT, ppkcs7blob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll_Impl, - { + unsafe extern "system" fn CreatePKCS7RequestFromRequest(this: *mut core::ffi::c_void, prequest: *mut super::CRYPT_INTEGER_BLOB, psigningcertcontext: *const super::CERT_CONTEXT, ppkcs7blob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::CreatePKCS7RequestFromRequest(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&psigningcertcontext), core::mem::transmute_copy(&ppkcs7blob)).into() } @@ -7261,133 +5557,76 @@ pub trait IEnroll2_Impl: Sized + IEnroll_Impl { } impl windows_core::RuntimeName for IEnroll2 {} impl IEnroll2_Vtbl { - pub const fn new() -> IEnroll2_Vtbl - where - Identity: IEnroll2_Impl, - { - unsafe extern "system" fn InstallPKCS7Blob(this: *mut core::ffi::c_void, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + pub const fn new() -> IEnroll2_Vtbl { + unsafe extern "system" fn InstallPKCS7Blob(this: *mut core::ffi::c_void, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::InstallPKCS7Blob(this, core::mem::transmute_copy(&pblobpkcs7)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::Reset(this).into() } - unsafe extern "system" fn GetSupportedKeySpec(this: *mut core::ffi::c_void, pdwkeyspec: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn GetSupportedKeySpec(this: *mut core::ffi::c_void, pdwkeyspec: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::GetSupportedKeySpec(this, core::mem::transmute_copy(&pdwkeyspec)).into() } - unsafe extern "system" fn GetKeyLen(this: *mut core::ffi::c_void, fmin: super::super::super::Foundation::BOOL, fexchange: super::super::super::Foundation::BOOL, pdwkeysize: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn GetKeyLen(this: *mut core::ffi::c_void, fmin: super::super::super::Foundation::BOOL, fexchange: super::super::super::Foundation::BOOL, pdwkeysize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::GetKeyLen(this, core::mem::transmute_copy(&fmin), core::mem::transmute_copy(&fexchange), core::mem::transmute_copy(&pdwkeysize)).into() } - unsafe extern "system" fn EnumAlgs(this: *mut core::ffi::c_void, dwindex: i32, algclass: i32, pdwalgid: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn EnumAlgs(this: *mut core::ffi::c_void, dwindex: i32, algclass: i32, pdwalgid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::EnumAlgs(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&algclass), core::mem::transmute_copy(&pdwalgid)).into() } - unsafe extern "system" fn GetAlgNameWStr(this: *mut core::ffi::c_void, algid: i32, ppwsz: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn GetAlgNameWStr(this: *mut core::ffi::c_void, algid: i32, ppwsz: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::GetAlgNameWStr(this, core::mem::transmute_copy(&algid), core::mem::transmute_copy(&ppwsz)).into() } - unsafe extern "system" fn SetReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn SetReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetReuseHardwareKeyIfUnableToGenNew(this, core::mem::transmute_copy(&freusehardwarekeyifunabletogennew)).into() } - unsafe extern "system" fn ReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn ReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::ReuseHardwareKeyIfUnableToGenNew(this, core::mem::transmute_copy(&freusehardwarekeyifunabletogennew)).into() } - unsafe extern "system" fn SetHashAlgID(this: *mut core::ffi::c_void, hashalgid: i32) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn SetHashAlgID(this: *mut core::ffi::c_void, hashalgid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetHashAlgID(this, core::mem::transmute_copy(&hashalgid)).into() } - unsafe extern "system" fn HashAlgID(this: *mut core::ffi::c_void, hashalgid: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn HashAlgID(this: *mut core::ffi::c_void, hashalgid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::HashAlgID(this, core::mem::transmute_copy(&hashalgid)).into() } - unsafe extern "system" fn SetHStoreMy(this: *mut core::ffi::c_void, hstore: super::HCERTSTORE) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn SetHStoreMy(this: *mut core::ffi::c_void, hstore: super::HCERTSTORE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetHStoreMy(this, core::mem::transmute_copy(&hstore)).into() } - unsafe extern "system" fn SetHStoreCA(this: *mut core::ffi::c_void, hstore: super::HCERTSTORE) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn SetHStoreCA(this: *mut core::ffi::c_void, hstore: super::HCERTSTORE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetHStoreCA(this, core::mem::transmute_copy(&hstore)).into() } - unsafe extern "system" fn SetHStoreROOT(this: *mut core::ffi::c_void, hstore: super::HCERTSTORE) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn SetHStoreROOT(this: *mut core::ffi::c_void, hstore: super::HCERTSTORE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetHStoreROOT(this, core::mem::transmute_copy(&hstore)).into() } - unsafe extern "system" fn SetHStoreRequest(this: *mut core::ffi::c_void, hstore: super::HCERTSTORE) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn SetHStoreRequest(this: *mut core::ffi::c_void, hstore: super::HCERTSTORE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetHStoreRequest(this, core::mem::transmute_copy(&hstore)).into() } - unsafe extern "system" fn SetLimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn SetLimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetLimitExchangeKeyToEncipherment(this, core::mem::transmute_copy(&flimitexchangekeytoencipherment)).into() } - unsafe extern "system" fn LimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn LimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::LimitExchangeKeyToEncipherment(this, core::mem::transmute_copy(&flimitexchangekeytoencipherment)).into() } - unsafe extern "system" fn SetEnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn SetEnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetEnableSMIMECapabilities(this, core::mem::transmute_copy(&fenablesmimecapabilities)).into() } - unsafe extern "system" fn EnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll2_Impl, - { + unsafe extern "system" fn EnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::EnableSMIMECapabilities(this, core::mem::transmute_copy(&fenablesmimecapabilities)).into() } @@ -7453,231 +5692,132 @@ pub trait IEnroll4_Impl: Sized + IEnroll2_Impl { } impl windows_core::RuntimeName for IEnroll4 {} impl IEnroll4_Vtbl { - pub const fn new() -> IEnroll4_Vtbl - where - Identity: IEnroll4_Impl, - { - unsafe extern "system" fn SetThumbPrintWStr(this: *mut core::ffi::c_void, thumbprintblob: super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + pub const fn new() -> IEnroll4_Vtbl { + unsafe extern "system" fn SetThumbPrintWStr(this: *mut core::ffi::c_void, thumbprintblob: super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::SetThumbPrintWStr(this, core::mem::transmute(&thumbprintblob)).into() } - unsafe extern "system" fn ThumbPrintWStr(this: *mut core::ffi::c_void, thumbprintblob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn ThumbPrintWStr(this: *mut core::ffi::c_void, thumbprintblob: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::ThumbPrintWStr(this, core::mem::transmute_copy(&thumbprintblob)).into() } - unsafe extern "system" fn SetPrivateKeyArchiveCertificate(this: *mut core::ffi::c_void, pprivatekeyarchivecert: *const super::CERT_CONTEXT) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn SetPrivateKeyArchiveCertificate(this: *mut core::ffi::c_void, pprivatekeyarchivecert: *const super::CERT_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::SetPrivateKeyArchiveCertificate(this, core::mem::transmute_copy(&pprivatekeyarchivecert)).into() } - unsafe extern "system" fn GetPrivateKeyArchiveCertificate(this: *mut core::ffi::c_void) -> *mut super::CERT_CONTEXT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn GetPrivateKeyArchiveCertificate(this: *mut core::ffi::c_void) -> *mut super::CERT_CONTEXT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::GetPrivateKeyArchiveCertificate(this) } - unsafe extern "system" fn binaryBlobToString(this: *mut core::ffi::c_void, flags: i32, pblobbinary: *mut super::CRYPT_INTEGER_BLOB, ppwszstring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn binaryBlobToString(this: *mut core::ffi::c_void, flags: i32, pblobbinary: *mut super::CRYPT_INTEGER_BLOB, ppwszstring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::binaryBlobToString(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pblobbinary), core::mem::transmute_copy(&ppwszstring)).into() } - unsafe extern "system" fn stringToBinaryBlob(this: *mut core::ffi::c_void, flags: i32, pwszstring: windows_core::PCWSTR, pblobbinary: *mut super::CRYPT_INTEGER_BLOB, pdwskip: *mut i32, pdwflags: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn stringToBinaryBlob(this: *mut core::ffi::c_void, flags: i32, pwszstring: windows_core::PCWSTR, pblobbinary: *mut super::CRYPT_INTEGER_BLOB, pdwskip: *mut i32, pdwflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::stringToBinaryBlob(this, core::mem::transmute_copy(&flags), core::mem::transmute(&pwszstring), core::mem::transmute_copy(&pblobbinary), core::mem::transmute_copy(&pdwskip), core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn addExtensionToRequestWStr(this: *mut core::ffi::c_void, flags: i32, pwszname: windows_core::PCWSTR, pblobvalue: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn addExtensionToRequestWStr(this: *mut core::ffi::c_void, flags: i32, pwszname: windows_core::PCWSTR, pblobvalue: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::addExtensionToRequestWStr(this, core::mem::transmute_copy(&flags), core::mem::transmute(&pwszname), core::mem::transmute_copy(&pblobvalue)).into() } - unsafe extern "system" fn addAttributeToRequestWStr(this: *mut core::ffi::c_void, flags: i32, pwszname: windows_core::PCWSTR, pblobvalue: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn addAttributeToRequestWStr(this: *mut core::ffi::c_void, flags: i32, pwszname: windows_core::PCWSTR, pblobvalue: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::addAttributeToRequestWStr(this, core::mem::transmute_copy(&flags), core::mem::transmute(&pwszname), core::mem::transmute_copy(&pblobvalue)).into() } - unsafe extern "system" fn addNameValuePairToRequestWStr(this: *mut core::ffi::c_void, flags: i32, pwszname: windows_core::PCWSTR, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn addNameValuePairToRequestWStr(this: *mut core::ffi::c_void, flags: i32, pwszname: windows_core::PCWSTR, pwszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::addNameValuePairToRequestWStr(this, core::mem::transmute_copy(&flags), core::mem::transmute(&pwszname), core::mem::transmute(&pwszvalue)).into() } - unsafe extern "system" fn resetExtensions(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn resetExtensions(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::resetExtensions(this).into() } - unsafe extern "system" fn resetAttributes(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn resetAttributes(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::resetAttributes(this).into() } - unsafe extern "system" fn createRequestWStr(this: *mut core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, pwszdnname: windows_core::PCWSTR, pwszusage: windows_core::PCWSTR, pblobrequest: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn createRequestWStr(this: *mut core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, pwszdnname: windows_core::PCWSTR, pwszusage: windows_core::PCWSTR, pblobrequest: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::createRequestWStr(this, core::mem::transmute_copy(&flags), core::mem::transmute(&pwszdnname), core::mem::transmute(&pwszusage), core::mem::transmute_copy(&pblobrequest)).into() } - unsafe extern "system" fn createFileRequestWStr(this: *mut core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, pwszdnname: windows_core::PCWSTR, pwszusage: windows_core::PCWSTR, pwszrequestfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn createFileRequestWStr(this: *mut core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, pwszdnname: windows_core::PCWSTR, pwszusage: windows_core::PCWSTR, pwszrequestfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::createFileRequestWStr(this, core::mem::transmute_copy(&flags), core::mem::transmute(&pwszdnname), core::mem::transmute(&pwszusage), core::mem::transmute(&pwszrequestfilename)).into() } - unsafe extern "system" fn acceptResponseBlob(this: *mut core::ffi::c_void, pblobresponse: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn acceptResponseBlob(this: *mut core::ffi::c_void, pblobresponse: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::acceptResponseBlob(this, core::mem::transmute_copy(&pblobresponse)).into() } - unsafe extern "system" fn acceptFileResponseWStr(this: *mut core::ffi::c_void, pwszresponsefilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn acceptFileResponseWStr(this: *mut core::ffi::c_void, pwszresponsefilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::acceptFileResponseWStr(this, core::mem::transmute(&pwszresponsefilename)).into() } - unsafe extern "system" fn getCertContextFromResponseBlob(this: *mut core::ffi::c_void, pblobresponse: *mut super::CRYPT_INTEGER_BLOB, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn getCertContextFromResponseBlob(this: *mut core::ffi::c_void, pblobresponse: *mut super::CRYPT_INTEGER_BLOB, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::getCertContextFromResponseBlob(this, core::mem::transmute_copy(&pblobresponse), core::mem::transmute_copy(&ppcertcontext)).into() } - unsafe extern "system" fn getCertContextFromFileResponseWStr(this: *mut core::ffi::c_void, pwszresponsefilename: windows_core::PCWSTR, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn getCertContextFromFileResponseWStr(this: *mut core::ffi::c_void, pwszresponsefilename: windows_core::PCWSTR, ppcertcontext: *mut *mut super::CERT_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::getCertContextFromFileResponseWStr(this, core::mem::transmute(&pwszresponsefilename), core::mem::transmute_copy(&ppcertcontext)).into() } - unsafe extern "system" fn createPFXWStr(this: *mut core::ffi::c_void, pwszpassword: windows_core::PCWSTR, pblobpfx: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn createPFXWStr(this: *mut core::ffi::c_void, pwszpassword: windows_core::PCWSTR, pblobpfx: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::createPFXWStr(this, core::mem::transmute(&pwszpassword), core::mem::transmute_copy(&pblobpfx)).into() } - unsafe extern "system" fn createFilePFXWStr(this: *mut core::ffi::c_void, pwszpassword: windows_core::PCWSTR, pwszpfxfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn createFilePFXWStr(this: *mut core::ffi::c_void, pwszpassword: windows_core::PCWSTR, pwszpfxfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::createFilePFXWStr(this, core::mem::transmute(&pwszpassword), core::mem::transmute(&pwszpfxfilename)).into() } - unsafe extern "system" fn setPendingRequestInfoWStr(this: *mut core::ffi::c_void, lrequestid: i32, pwszcadns: windows_core::PCWSTR, pwszcaname: windows_core::PCWSTR, pwszfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn setPendingRequestInfoWStr(this: *mut core::ffi::c_void, lrequestid: i32, pwszcadns: windows_core::PCWSTR, pwszcaname: windows_core::PCWSTR, pwszfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::setPendingRequestInfoWStr(this, core::mem::transmute_copy(&lrequestid), core::mem::transmute(&pwszcadns), core::mem::transmute(&pwszcaname), core::mem::transmute(&pwszfriendlyname)).into() } - unsafe extern "system" fn enumPendingRequestWStr(this: *mut core::ffi::c_void, lindex: i32, ldesiredproperty: PENDING_REQUEST_DESIRED_PROPERTY, ppproperty: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn enumPendingRequestWStr(this: *mut core::ffi::c_void, lindex: i32, ldesiredproperty: PENDING_REQUEST_DESIRED_PROPERTY, ppproperty: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::enumPendingRequestWStr(this, core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&ldesiredproperty), core::mem::transmute_copy(&ppproperty)).into() } - unsafe extern "system" fn removePendingRequestWStr(this: *mut core::ffi::c_void, thumbprintblob: super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn removePendingRequestWStr(this: *mut core::ffi::c_void, thumbprintblob: super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::removePendingRequestWStr(this, core::mem::transmute(&thumbprintblob)).into() } - unsafe extern "system" fn GetKeyLenEx(this: *mut core::ffi::c_void, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC, pdwkeysize: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn GetKeyLenEx(this: *mut core::ffi::c_void, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC, pdwkeysize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::GetKeyLenEx(this, core::mem::transmute_copy(&lsizespec), core::mem::transmute_copy(&lkeyspec), core::mem::transmute_copy(&pdwkeysize)).into() } - unsafe extern "system" fn InstallPKCS7BlobEx(this: *mut core::ffi::c_void, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB, plcertinstalled: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn InstallPKCS7BlobEx(this: *mut core::ffi::c_void, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB, plcertinstalled: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::InstallPKCS7BlobEx(this, core::mem::transmute_copy(&pblobpkcs7), core::mem::transmute_copy(&plcertinstalled)).into() } - unsafe extern "system" fn AddCertTypeToRequestWStrEx(this: *mut core::ffi::c_void, ltype: ADDED_CERT_TYPE, pwszoidorname: windows_core::PCWSTR, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn AddCertTypeToRequestWStrEx(this: *mut core::ffi::c_void, ltype: ADDED_CERT_TYPE, pwszoidorname: windows_core::PCWSTR, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::AddCertTypeToRequestWStrEx(this, core::mem::transmute_copy(<ype), core::mem::transmute(&pwszoidorname), core::mem::transmute_copy(&lmajorversion), core::mem::transmute_copy(&fminorversion), core::mem::transmute_copy(&lminorversion)).into() } - unsafe extern "system" fn getProviderTypeWStr(this: *mut core::ffi::c_void, pwszprovname: windows_core::PCWSTR, plprovtype: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn getProviderTypeWStr(this: *mut core::ffi::c_void, pwszprovname: windows_core::PCWSTR, plprovtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::getProviderTypeWStr(this, core::mem::transmute(&pwszprovname), core::mem::transmute_copy(&plprovtype)).into() } - unsafe extern "system" fn addBlobPropertyToCertificateWStr(this: *mut core::ffi::c_void, lpropertyid: i32, lreserved: i32, pblobproperty: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn addBlobPropertyToCertificateWStr(this: *mut core::ffi::c_void, lpropertyid: i32, lreserved: i32, pblobproperty: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::addBlobPropertyToCertificateWStr(this, core::mem::transmute_copy(&lpropertyid), core::mem::transmute_copy(&lreserved), core::mem::transmute_copy(&pblobproperty)).into() } - unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, psignercert: *const super::CERT_CONTEXT) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, psignercert: *const super::CERT_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::SetSignerCertificate(this, core::mem::transmute_copy(&psignercert)).into() } - unsafe extern "system" fn SetClientId(this: *mut core::ffi::c_void, lclientid: i32) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn SetClientId(this: *mut core::ffi::c_void, lclientid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::SetClientId(this, core::mem::transmute_copy(&lclientid)).into() } - unsafe extern "system" fn ClientId(this: *mut core::ffi::c_void, plclientid: *mut i32) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn ClientId(this: *mut core::ffi::c_void, plclientid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::ClientId(this, core::mem::transmute_copy(&plclientid)).into() } - unsafe extern "system" fn SetIncludeSubjectKeyID(this: *mut core::ffi::c_void, finclude: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn SetIncludeSubjectKeyID(this: *mut core::ffi::c_void, finclude: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::SetIncludeSubjectKeyID(this, core::mem::transmute_copy(&finclude)).into() } - unsafe extern "system" fn IncludeSubjectKeyID(this: *mut core::ffi::c_void, pfinclude: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnroll4_Impl, - { + unsafe extern "system" fn IncludeSubjectKeyID(this: *mut core::ffi::c_void, pfinclude: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::IncludeSubjectKeyID(this, core::mem::transmute_copy(&pfinclude)).into() } @@ -7734,49 +5874,28 @@ pub trait IEnumCERTVIEWATTRIBUTE_Impl: Sized + super::super::super::System::Com: impl windows_core::RuntimeName for IEnumCERTVIEWATTRIBUTE {} #[cfg(feature = "Win32_System_Com")] impl IEnumCERTVIEWATTRIBUTE_Vtbl { - pub const fn new() -> IEnumCERTVIEWATTRIBUTE_Vtbl - where - Identity: IEnumCERTVIEWATTRIBUTE_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWATTRIBUTE_Impl, - { + pub const fn new() -> IEnumCERTVIEWATTRIBUTE_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWATTRIBUTE_Impl::Next(this, core::mem::transmute_copy(&pindex)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWATTRIBUTE_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWATTRIBUTE_Impl::GetName(this, core::mem::transmute_copy(&pstrout)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWATTRIBUTE_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWATTRIBUTE_Impl::GetValue(this, core::mem::transmute_copy(&pstrout)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWATTRIBUTE_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWATTRIBUTE_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWATTRIBUTE_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWATTRIBUTE_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWATTRIBUTE_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCERTVIEWATTRIBUTE_Impl::Clone(this) { Ok(ok__) => { @@ -7817,77 +5936,44 @@ pub trait IEnumCERTVIEWCOLUMN_Impl: Sized + super::super::super::System::Com::ID impl windows_core::RuntimeName for IEnumCERTVIEWCOLUMN {} #[cfg(feature = "Win32_System_Com")] impl IEnumCERTVIEWCOLUMN_Vtbl { - pub const fn new() -> IEnumCERTVIEWCOLUMN_Vtbl - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { + pub const fn new() -> IEnumCERTVIEWCOLUMN_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWCOLUMN_Impl::Next(this, core::mem::transmute_copy(&pindex)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWCOLUMN_Impl::GetName(this, core::mem::transmute_copy(&pstrout)).into() } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWCOLUMN_Impl::GetDisplayName(this, core::mem::transmute_copy(&pstrout)).into() } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWCOLUMN_Impl::GetType(this, core::mem::transmute_copy(&ptype)).into() } - unsafe extern "system" fn IsIndexed(this: *mut core::ffi::c_void, pindexed: *mut i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { + unsafe extern "system" fn IsIndexed(this: *mut core::ffi::c_void, pindexed: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWCOLUMN_Impl::IsIndexed(this, core::mem::transmute_copy(&pindexed)).into() } - unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pmaxlength: *mut i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { + unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pmaxlength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWCOLUMN_Impl::GetMaxLength(this, core::mem::transmute_copy(&pmaxlength)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, flags: ENUM_CERT_COLUMN_VALUE_FLAGS, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, flags: ENUM_CERT_COLUMN_VALUE_FLAGS, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWCOLUMN_Impl::GetValue(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWCOLUMN_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWCOLUMN_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWCOLUMN_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCERTVIEWCOLUMN_Impl::Clone(this) { Ok(ok__) => { @@ -7929,56 +6015,32 @@ pub trait IEnumCERTVIEWEXTENSION_Impl: Sized + super::super::super::System::Com: impl windows_core::RuntimeName for IEnumCERTVIEWEXTENSION {} #[cfg(feature = "Win32_System_Com")] impl IEnumCERTVIEWEXTENSION_Vtbl { - pub const fn new() -> IEnumCERTVIEWEXTENSION_Vtbl - where - Identity: IEnumCERTVIEWEXTENSION_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWEXTENSION_Impl, - { + pub const fn new() -> IEnumCERTVIEWEXTENSION_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWEXTENSION_Impl::Next(this, core::mem::transmute_copy(&pindex)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWEXTENSION_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWEXTENSION_Impl::GetName(this, core::mem::transmute_copy(&pstrout)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWEXTENSION_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWEXTENSION_Impl::GetFlags(this, core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, r#type: CERT_PROPERTY_TYPE, flags: ENUM_CERT_COLUMN_VALUE_FLAGS, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWEXTENSION_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, r#type: CERT_PROPERTY_TYPE, flags: ENUM_CERT_COLUMN_VALUE_FLAGS, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWEXTENSION_Impl::GetValue(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWEXTENSION_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWEXTENSION_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWEXTENSION_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWEXTENSION_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWEXTENSION_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCERTVIEWEXTENSION_Impl::Clone(this) { Ok(ok__) => { @@ -8018,21 +6080,12 @@ pub trait IEnumCERTVIEWROW_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for IEnumCERTVIEWROW {} #[cfg(feature = "Win32_System_Com")] impl IEnumCERTVIEWROW_Vtbl { - pub const fn new() -> IEnumCERTVIEWROW_Vtbl - where - Identity: IEnumCERTVIEWROW_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWROW_Impl, - { + pub const fn new() -> IEnumCERTVIEWROW_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWROW_Impl::Next(this, core::mem::transmute_copy(&pindex)).into() } - unsafe extern "system" fn EnumCertViewColumn(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWROW_Impl, - { + unsafe extern "system" fn EnumCertViewColumn(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCERTVIEWROW_Impl::EnumCertViewColumn(this) { Ok(ok__) => { @@ -8042,10 +6095,7 @@ impl IEnumCERTVIEWROW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumCertViewAttribute(this: *mut core::ffi::c_void, flags: i32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWROW_Impl, - { + unsafe extern "system" fn EnumCertViewAttribute(this: *mut core::ffi::c_void, flags: i32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCERTVIEWROW_Impl::EnumCertViewAttribute(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -8055,10 +6105,7 @@ impl IEnumCERTVIEWROW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumCertViewExtension(this: *mut core::ffi::c_void, flags: i32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWROW_Impl, - { + unsafe extern "system" fn EnumCertViewExtension(this: *mut core::ffi::c_void, flags: i32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCERTVIEWROW_Impl::EnumCertViewExtension(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -8068,24 +6115,15 @@ impl IEnumCERTVIEWROW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWROW_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWROW_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWROW_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWROW_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWROW_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCERTVIEWROW_Impl::Clone(this) { Ok(ok__) => { @@ -8095,10 +6133,7 @@ impl IEnumCERTVIEWROW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxIndex(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: IEnumCERTVIEWROW_Impl, - { + unsafe extern "system" fn GetMaxIndex(this: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCERTVIEWROW_Impl::GetMaxIndex(this, core::mem::transmute_copy(&pindex)).into() } @@ -8118,7 +6153,7 @@ impl IEnumCERTVIEWROW_Vtbl { iid == &::IID || iid == &::IID } } -pub trait INDESPolicy_Impl: Sized { +pub trait INDESPolicy_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result<()>; fn Uninitialize(&self) -> windows_core::Result<()>; fn GenerateChallenge(&self, pwsztemplate: &windows_core::PCWSTR, pwszparams: &windows_core::PCWSTR) -> windows_core::Result; @@ -8127,28 +6162,16 @@ pub trait INDESPolicy_Impl: Sized { } impl windows_core::RuntimeName for INDESPolicy {} impl INDESPolicy_Vtbl { - pub const fn new() -> INDESPolicy_Vtbl - where - Identity: INDESPolicy_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDESPolicy_Impl, - { + pub const fn new() -> INDESPolicy_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDESPolicy_Impl::Initialize(this).into() } - unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INDESPolicy_Impl, - { + unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDESPolicy_Impl::Uninitialize(this).into() } - unsafe extern "system" fn GenerateChallenge(this: *mut core::ffi::c_void, pwsztemplate: windows_core::PCWSTR, pwszparams: windows_core::PCWSTR, ppwszresponse: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INDESPolicy_Impl, - { + unsafe extern "system" fn GenerateChallenge(this: *mut core::ffi::c_void, pwsztemplate: windows_core::PCWSTR, pwszparams: windows_core::PCWSTR, ppwszresponse: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDESPolicy_Impl::GenerateChallenge(this, core::mem::transmute(&pwsztemplate), core::mem::transmute(&pwszparams)) { Ok(ok__) => { @@ -8158,10 +6181,7 @@ impl INDESPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VerifyRequest(this: *mut core::ffi::c_void, pctbrequest: *mut CERTTRANSBLOB, pctbsigningcertencoded: *mut CERTTRANSBLOB, pwsztemplate: windows_core::PCWSTR, pwsztransactionid: windows_core::PCWSTR, pfverified: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: INDESPolicy_Impl, - { + unsafe extern "system" fn VerifyRequest(this: *mut core::ffi::c_void, pctbrequest: *mut CERTTRANSBLOB, pctbsigningcertencoded: *mut CERTTRANSBLOB, pwsztemplate: windows_core::PCWSTR, pwsztransactionid: windows_core::PCWSTR, pfverified: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDESPolicy_Impl::VerifyRequest(this, core::mem::transmute_copy(&pctbrequest), core::mem::transmute_copy(&pctbsigningcertencoded), core::mem::transmute(&pwsztemplate), core::mem::transmute(&pwsztransactionid)) { Ok(ok__) => { @@ -8171,10 +6191,7 @@ impl INDESPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, pwszchallenge: windows_core::PCWSTR, pwsztransactionid: windows_core::PCWSTR, disposition: X509SCEPDisposition, lasthresult: i32, pctbissuedcertencoded: *mut CERTTRANSBLOB) -> windows_core::HRESULT - where - Identity: INDESPolicy_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, pwszchallenge: windows_core::PCWSTR, pwsztransactionid: windows_core::PCWSTR, disposition: X509SCEPDisposition, lasthresult: i32, pctbissuedcertencoded: *mut CERTTRANSBLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INDESPolicy_Impl::Notify(this, core::mem::transmute(&pwszchallenge), core::mem::transmute(&pwsztransactionid), core::mem::transmute_copy(&disposition), core::mem::transmute_copy(&lasthresult), core::mem::transmute_copy(&pctbissuedcertencoded)).into() } @@ -8208,14 +6225,8 @@ pub trait IOCSPAdmin_Impl: Sized + super::super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IOCSPAdmin {} #[cfg(feature = "Win32_System_Com")] impl IOCSPAdmin_Vtbl { - pub const fn new() -> IOCSPAdmin_Vtbl - where - Identity: IOCSPAdmin_Impl, - { - unsafe extern "system" fn OCSPServiceProperties(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOCSPAdmin_Impl, - { + pub const fn new() -> IOCSPAdmin_Vtbl { + unsafe extern "system" fn OCSPServiceProperties(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPAdmin_Impl::OCSPServiceProperties(this) { Ok(ok__) => { @@ -8225,10 +6236,7 @@ impl IOCSPAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OCSPCAConfigurationCollection(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOCSPAdmin_Impl, - { + unsafe extern "system" fn OCSPCAConfigurationCollection(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPAdmin_Impl::OCSPCAConfigurationCollection(this) { Ok(ok__) => { @@ -8238,24 +6246,15 @@ impl IOCSPAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConfiguration(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bforce: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IOCSPAdmin_Impl, - { + unsafe extern "system" fn GetConfiguration(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bforce: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPAdmin_Impl::GetConfiguration(this, core::mem::transmute(&bstrservername), core::mem::transmute_copy(&bforce)).into() } - unsafe extern "system" fn SetConfiguration(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bforce: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IOCSPAdmin_Impl, - { + unsafe extern "system" fn SetConfiguration(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bforce: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPAdmin_Impl::SetConfiguration(this, core::mem::transmute(&bstrservername), core::mem::transmute_copy(&bforce)).into() } - unsafe extern "system" fn GetMyRoles(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, proles: *mut i32) -> windows_core::HRESULT - where - Identity: IOCSPAdmin_Impl, - { + unsafe extern "system" fn GetMyRoles(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, proles: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPAdmin_Impl::GetMyRoles(this, core::mem::transmute(&bstrservername)) { Ok(ok__) => { @@ -8265,24 +6264,15 @@ impl IOCSPAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Ping(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPAdmin_Impl, - { + unsafe extern "system" fn Ping(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPAdmin_Impl::Ping(this, core::mem::transmute(&bstrservername)).into() } - unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPAdmin_Impl, - { + unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPAdmin_Impl::SetSecurity(this, core::mem::transmute(&bstrservername), core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn GetSecurity(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPAdmin_Impl, - { + unsafe extern "system" fn GetSecurity(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPAdmin_Impl::GetSecurity(this, core::mem::transmute(&bstrservername)) { Ok(ok__) => { @@ -8292,10 +6282,7 @@ impl IOCSPAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSigningCertificates(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, pcacertvar: *const core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPAdmin_Impl, - { + unsafe extern "system" fn GetSigningCertificates(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, pcacertvar: *const core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPAdmin_Impl::GetSigningCertificates(this, core::mem::transmute(&bstrservername), core::mem::transmute_copy(&pcacertvar)) { Ok(ok__) => { @@ -8305,10 +6292,7 @@ impl IOCSPAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHashAlgorithms(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bstrcaid: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPAdmin_Impl, - { + unsafe extern "system" fn GetHashAlgorithms(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bstrcaid: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPAdmin_Impl::GetHashAlgorithms(this, core::mem::transmute(&bstrservername), core::mem::transmute(&bstrcaid)) { Ok(ok__) => { @@ -8367,14 +6351,8 @@ pub trait IOCSPCAConfiguration_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for IOCSPCAConfiguration {} #[cfg(feature = "Win32_System_Com")] impl IOCSPCAConfiguration_Vtbl { - pub const fn new() -> IOCSPCAConfiguration_Vtbl - where - Identity: IOCSPCAConfiguration_Impl, - { - unsafe extern "system" fn Identifier(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + pub const fn new() -> IOCSPCAConfiguration_Vtbl { + unsafe extern "system" fn Identifier(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::Identifier(this) { Ok(ok__) => { @@ -8384,10 +6362,7 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CACertificate(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn CACertificate(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::CACertificate(this) { Ok(ok__) => { @@ -8397,10 +6372,7 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::HashAlgorithm(this) { Ok(ok__) => { @@ -8410,17 +6382,11 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPCAConfiguration_Impl::SetHashAlgorithm(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn SigningFlags(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SigningFlags(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::SigningFlags(this) { Ok(ok__) => { @@ -8430,17 +6396,11 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSigningFlags(this: *mut core::ffi::c_void, newval: u32) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SetSigningFlags(this: *mut core::ffi::c_void, newval: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPCAConfiguration_Impl::SetSigningFlags(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn SigningCertificate(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SigningCertificate(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::SigningCertificate(this) { Ok(ok__) => { @@ -8450,17 +6410,11 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSigningCertificate(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SetSigningCertificate(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPCAConfiguration_Impl::SetSigningCertificate(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn ReminderDuration(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn ReminderDuration(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::ReminderDuration(this) { Ok(ok__) => { @@ -8470,17 +6424,11 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReminderDuration(this: *mut core::ffi::c_void, newval: u32) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SetReminderDuration(this: *mut core::ffi::c_void, newval: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPCAConfiguration_Impl::SetReminderDuration(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn ErrorCode(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn ErrorCode(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::ErrorCode(this) { Ok(ok__) => { @@ -8490,10 +6438,7 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CSPName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn CSPName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::CSPName(this) { Ok(ok__) => { @@ -8503,10 +6448,7 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::KeySpec(this) { Ok(ok__) => { @@ -8516,10 +6458,7 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProviderCLSID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn ProviderCLSID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::ProviderCLSID(this) { Ok(ok__) => { @@ -8529,17 +6468,11 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderCLSID(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SetProviderCLSID(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPCAConfiguration_Impl::SetProviderCLSID(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn ProviderProperties(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn ProviderProperties(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::ProviderProperties(this) { Ok(ok__) => { @@ -8549,17 +6482,11 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderProperties(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SetProviderProperties(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPCAConfiguration_Impl::SetProviderProperties(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::Modified(this) { Ok(ok__) => { @@ -8569,10 +6496,7 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalRevocationInformation(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn LocalRevocationInformation(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::LocalRevocationInformation(this) { Ok(ok__) => { @@ -8582,17 +6506,11 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalRevocationInformation(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SetLocalRevocationInformation(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPCAConfiguration_Impl::SetLocalRevocationInformation(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn SigningCertificateTemplate(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SigningCertificateTemplate(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::SigningCertificateTemplate(this) { Ok(ok__) => { @@ -8602,17 +6520,11 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSigningCertificateTemplate(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SetSigningCertificateTemplate(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPCAConfiguration_Impl::SetSigningCertificateTemplate(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn CAConfig(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn CAConfig(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfiguration_Impl::CAConfig(this) { Ok(ok__) => { @@ -8622,10 +6534,7 @@ impl IOCSPCAConfiguration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCAConfig(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfiguration_Impl, - { + unsafe extern "system" fn SetCAConfig(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPCAConfiguration_Impl::SetCAConfig(this, core::mem::transmute(&newval)).into() } @@ -8674,14 +6583,8 @@ pub trait IOCSPCAConfigurationCollection_Impl: Sized + super::super::super::Syst impl windows_core::RuntimeName for IOCSPCAConfigurationCollection {} #[cfg(feature = "Win32_System_Com")] impl IOCSPCAConfigurationCollection_Vtbl { - pub const fn new() -> IOCSPCAConfigurationCollection_Vtbl - where - Identity: IOCSPCAConfigurationCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOCSPCAConfigurationCollection_Impl, - { + pub const fn new() -> IOCSPCAConfigurationCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfigurationCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -8691,10 +6594,7 @@ impl IOCSPCAConfigurationCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfigurationCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfigurationCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -8704,10 +6604,7 @@ impl IOCSPCAConfigurationCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IOCSPCAConfigurationCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfigurationCollection_Impl::Count(this) { Ok(ok__) => { @@ -8717,10 +6614,7 @@ impl IOCSPCAConfigurationCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, bstridentifier: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfigurationCollection_Impl, - { + unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, bstridentifier: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfigurationCollection_Impl::get_ItemByName(this, core::mem::transmute(&bstridentifier)) { Ok(ok__) => { @@ -8730,10 +6624,7 @@ impl IOCSPCAConfigurationCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCAConfiguration(this: *mut core::ffi::c_void, bstridentifier: core::mem::MaybeUninit, varcacert: core::mem::MaybeUninit, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOCSPCAConfigurationCollection_Impl, - { + unsafe extern "system" fn CreateCAConfiguration(this: *mut core::ffi::c_void, bstridentifier: core::mem::MaybeUninit, varcacert: core::mem::MaybeUninit, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPCAConfigurationCollection_Impl::CreateCAConfiguration(this, core::mem::transmute(&bstridentifier), core::mem::transmute(&varcacert)) { Ok(ok__) => { @@ -8743,10 +6634,7 @@ impl IOCSPCAConfigurationCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteCAConfiguration(this: *mut core::ffi::c_void, bstridentifier: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPCAConfigurationCollection_Impl, - { + unsafe extern "system" fn DeleteCAConfiguration(this: *mut core::ffi::c_void, bstridentifier: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPCAConfigurationCollection_Impl::DeleteCAConfiguration(this, core::mem::transmute(&bstridentifier)).into() } @@ -8775,14 +6663,8 @@ pub trait IOCSPProperty_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for IOCSPProperty {} #[cfg(feature = "Win32_System_Com")] impl IOCSPProperty_Vtbl { - pub const fn new() -> IOCSPProperty_Vtbl - where - Identity: IOCSPProperty_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPProperty_Impl, - { + pub const fn new() -> IOCSPProperty_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPProperty_Impl::Name(this) { Ok(ok__) => { @@ -8792,10 +6674,7 @@ impl IOCSPProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPProperty_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPProperty_Impl::Value(this) { Ok(ok__) => { @@ -8805,17 +6684,11 @@ impl IOCSPProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPProperty_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPProperty_Impl::SetValue(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IOCSPProperty_Impl, - { + unsafe extern "system" fn Modified(this: *mut core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPProperty_Impl::Modified(this) { Ok(ok__) => { @@ -8852,14 +6725,8 @@ pub trait IOCSPPropertyCollection_Impl: Sized + super::super::super::System::Com impl windows_core::RuntimeName for IOCSPPropertyCollection {} #[cfg(feature = "Win32_System_Com")] impl IOCSPPropertyCollection_Vtbl { - pub const fn new() -> IOCSPPropertyCollection_Vtbl - where - Identity: IOCSPPropertyCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOCSPPropertyCollection_Impl, - { + pub const fn new() -> IOCSPPropertyCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPPropertyCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -8869,10 +6736,7 @@ impl IOCSPPropertyCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPPropertyCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPPropertyCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -8882,10 +6746,7 @@ impl IOCSPPropertyCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IOCSPPropertyCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPPropertyCollection_Impl::Count(this) { Ok(ok__) => { @@ -8895,10 +6756,7 @@ impl IOCSPPropertyCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPPropertyCollection_Impl, - { + unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPPropertyCollection_Impl::get_ItemByName(this, core::mem::transmute(&bstrpropname)) { Ok(ok__) => { @@ -8908,10 +6766,7 @@ impl IOCSPPropertyCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateProperty(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pvarpropvalue: *const core::mem::MaybeUninit, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOCSPPropertyCollection_Impl, - { + unsafe extern "system" fn CreateProperty(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pvarpropvalue: *const core::mem::MaybeUninit, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPPropertyCollection_Impl::CreateProperty(this, core::mem::transmute(&bstrpropname), core::mem::transmute_copy(&pvarpropvalue)) { Ok(ok__) => { @@ -8921,24 +6776,15 @@ impl IOCSPPropertyCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteProperty(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPPropertyCollection_Impl, - { + unsafe extern "system" fn DeleteProperty(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPPropertyCollection_Impl::DeleteProperty(this, core::mem::transmute(&bstrpropname)).into() } - unsafe extern "system" fn InitializeFromProperties(this: *mut core::ffi::c_void, pvarproperties: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPPropertyCollection_Impl, - { + unsafe extern "system" fn InitializeFromProperties(this: *mut core::ffi::c_void, pvarproperties: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOCSPPropertyCollection_Impl::InitializeFromProperties(this, core::mem::transmute_copy(&pvarproperties)).into() } - unsafe extern "system" fn GetAllProperties(this: *mut core::ffi::c_void, pvarproperties: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOCSPPropertyCollection_Impl, - { + unsafe extern "system" fn GetAllProperties(this: *mut core::ffi::c_void, pvarproperties: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOCSPPropertyCollection_Impl::GetAllProperties(this) { Ok(ok__) => { @@ -8979,35 +6825,20 @@ pub trait IObjectId_Impl: Sized + super::super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IObjectId {} #[cfg(feature = "Win32_System_Com")] impl IObjectId_Vtbl { - pub const fn new() -> IObjectId_Vtbl - where - Identity: IObjectId_Impl, - { - unsafe extern "system" fn InitializeFromName(this: *mut core::ffi::c_void, name: CERTENROLL_OBJECTID) -> windows_core::HRESULT - where - Identity: IObjectId_Impl, - { + pub const fn new() -> IObjectId_Vtbl { + unsafe extern "system" fn InitializeFromName(this: *mut core::ffi::c_void, name: CERTENROLL_OBJECTID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectId_Impl::InitializeFromName(this, core::mem::transmute_copy(&name)).into() } - unsafe extern "system" fn InitializeFromValue(this: *mut core::ffi::c_void, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IObjectId_Impl, - { + unsafe extern "system" fn InitializeFromValue(this: *mut core::ffi::c_void, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectId_Impl::InitializeFromValue(this, core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn InitializeFromAlgorithmName(this: *mut core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IObjectId_Impl, - { + unsafe extern "system" fn InitializeFromAlgorithmName(this: *mut core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectId_Impl::InitializeFromAlgorithmName(this, core::mem::transmute_copy(&groupid), core::mem::transmute_copy(&keyflags), core::mem::transmute_copy(&algflags), core::mem::transmute(&stralgorithmname)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvalue: *mut CERTENROLL_OBJECTID) -> windows_core::HRESULT - where - Identity: IObjectId_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvalue: *mut CERTENROLL_OBJECTID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectId_Impl::Name(this) { Ok(ok__) => { @@ -9017,10 +6848,7 @@ impl IObjectId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IObjectId_Impl, - { + unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectId_Impl::FriendlyName(this) { Ok(ok__) => { @@ -9030,17 +6858,11 @@ impl IObjectId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IObjectId_Impl, - { + unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectId_Impl::SetFriendlyName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IObjectId_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectId_Impl::Value(this) { Ok(ok__) => { @@ -9050,10 +6872,7 @@ impl IObjectId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAlgorithmName(this: *mut core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, pstralgorithmname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IObjectId_Impl, - { + unsafe extern "system" fn GetAlgorithmName(this: *mut core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, pstralgorithmname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectId_Impl::GetAlgorithmName(this, core::mem::transmute_copy(&groupid), core::mem::transmute_copy(&keyflags)) { Ok(ok__) => { @@ -9093,14 +6912,8 @@ pub trait IObjectIds_Impl: Sized + super::super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IObjectIds {} #[cfg(feature = "Win32_System_Com")] impl IObjectIds_Vtbl { - pub const fn new() -> IObjectIds_Vtbl - where - Identity: IObjectIds_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectIds_Impl, - { + pub const fn new() -> IObjectIds_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectIds_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -9110,10 +6923,7 @@ impl IObjectIds_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IObjectIds_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectIds_Impl::Count(this) { Ok(ok__) => { @@ -9123,10 +6933,7 @@ impl IObjectIds_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectIds_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectIds_Impl::_NewEnum(this) { Ok(ok__) => { @@ -9136,31 +6943,19 @@ impl IObjectIds_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectIds_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectIds_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IObjectIds_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectIds_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectIds_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectIds_Impl::Clear(this).into() } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectIds_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectIds_Impl::AddRange(this, windows_core::from_raw_borrowed(&pvalue)).into() } @@ -9191,21 +6986,12 @@ pub trait IPolicyQualifier_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for IPolicyQualifier {} #[cfg(feature = "Win32_System_Com")] impl IPolicyQualifier_Vtbl { - pub const fn new() -> IPolicyQualifier_Vtbl - where - Identity: IPolicyQualifier_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, strqualifier: core::mem::MaybeUninit, r#type: PolicyQualifierType) -> windows_core::HRESULT - where - Identity: IPolicyQualifier_Impl, - { + pub const fn new() -> IPolicyQualifier_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, strqualifier: core::mem::MaybeUninit, r#type: PolicyQualifierType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPolicyQualifier_Impl::InitializeEncode(this, core::mem::transmute(&strqualifier), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPolicyQualifier_Impl, - { + unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPolicyQualifier_Impl::ObjectId(this) { Ok(ok__) => { @@ -9215,10 +7001,7 @@ impl IPolicyQualifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Qualifier(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPolicyQualifier_Impl, - { + unsafe extern "system" fn Qualifier(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPolicyQualifier_Impl::Qualifier(this) { Ok(ok__) => { @@ -9228,10 +7011,7 @@ impl IPolicyQualifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pvalue: *mut PolicyQualifierType) -> windows_core::HRESULT - where - Identity: IPolicyQualifier_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pvalue: *mut PolicyQualifierType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPolicyQualifier_Impl::Type(this) { Ok(ok__) => { @@ -9241,10 +7021,7 @@ impl IPolicyQualifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPolicyQualifier_Impl, - { + unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPolicyQualifier_Impl::get_RawData(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -9280,14 +7057,8 @@ pub trait IPolicyQualifiers_Impl: Sized + super::super::super::System::Com::IDis impl windows_core::RuntimeName for IPolicyQualifiers {} #[cfg(feature = "Win32_System_Com")] impl IPolicyQualifiers_Vtbl { - pub const fn new() -> IPolicyQualifiers_Vtbl - where - Identity: IPolicyQualifiers_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPolicyQualifiers_Impl, - { + pub const fn new() -> IPolicyQualifiers_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPolicyQualifiers_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -9297,10 +7068,7 @@ impl IPolicyQualifiers_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IPolicyQualifiers_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPolicyQualifiers_Impl::Count(this) { Ok(ok__) => { @@ -9310,10 +7078,7 @@ impl IPolicyQualifiers_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPolicyQualifiers_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPolicyQualifiers_Impl::_NewEnum(this) { Ok(ok__) => { @@ -9323,24 +7088,15 @@ impl IPolicyQualifiers_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPolicyQualifiers_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPolicyQualifiers_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IPolicyQualifiers_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPolicyQualifiers_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPolicyQualifiers_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPolicyQualifiers_Impl::Clear(this).into() } @@ -9376,21 +7132,12 @@ pub trait ISignerCertificate_Impl: Sized + super::super::super::System::Com::IDi impl windows_core::RuntimeName for ISignerCertificate {} #[cfg(feature = "Win32_System_Com")] impl ISignerCertificate_Vtbl { - pub const fn new() -> ISignerCertificate_Vtbl - where - Identity: ISignerCertificate_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + pub const fn new() -> ISignerCertificate_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISignerCertificate_Impl::Initialize(this, 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(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + unsafe extern "system" fn get_Certificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignerCertificate_Impl::get_Certificate(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -9400,10 +7147,7 @@ impl ISignerCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateKey(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + unsafe extern "system" fn PrivateKey(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignerCertificate_Impl::PrivateKey(this) { Ok(ok__) => { @@ -9413,10 +7157,7 @@ impl ISignerCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignerCertificate_Impl::Silent(this) { Ok(ok__) => { @@ -9426,17 +7167,11 @@ impl ISignerCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISignerCertificate_Impl::SetSilent(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ParentWindow(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + unsafe extern "system" fn ParentWindow(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignerCertificate_Impl::ParentWindow(this) { Ok(ok__) => { @@ -9446,17 +7181,11 @@ impl ISignerCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParentWindow(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + unsafe extern "system" fn SetParentWindow(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISignerCertificate_Impl::SetParentWindow(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn UIContextMessage(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + unsafe extern "system" fn UIContextMessage(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignerCertificate_Impl::UIContextMessage(this) { Ok(ok__) => { @@ -9466,24 +7195,15 @@ impl ISignerCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUIContextMessage(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + unsafe extern "system" fn SetUIContextMessage(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISignerCertificate_Impl::SetUIContextMessage(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn SetPin(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + unsafe extern "system" fn SetPin(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISignerCertificate_Impl::SetPin(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn SignatureInformation(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISignerCertificate_Impl, - { + unsafe extern "system" fn SignatureInformation(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignerCertificate_Impl::SignatureInformation(this) { Ok(ok__) => { @@ -9526,14 +7246,8 @@ pub trait ISignerCertificates_Impl: Sized + super::super::super::System::Com::ID impl windows_core::RuntimeName for ISignerCertificates {} #[cfg(feature = "Win32_System_Com")] impl ISignerCertificates_Vtbl { - pub const fn new() -> ISignerCertificates_Vtbl - where - Identity: ISignerCertificates_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISignerCertificates_Impl, - { + pub const fn new() -> ISignerCertificates_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignerCertificates_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -9543,10 +7257,7 @@ impl ISignerCertificates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ISignerCertificates_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignerCertificates_Impl::Count(this) { Ok(ok__) => { @@ -9556,10 +7267,7 @@ impl ISignerCertificates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISignerCertificates_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignerCertificates_Impl::_NewEnum(this) { Ok(ok__) => { @@ -9569,31 +7277,19 @@ impl ISignerCertificates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISignerCertificates_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISignerCertificates_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ISignerCertificates_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISignerCertificates_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISignerCertificates_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISignerCertificates_Impl::Clear(this).into() } - unsafe extern "system" fn Find(this: *mut core::ffi::c_void, psignercert: *mut core::ffi::c_void, pisignercert: *mut i32) -> windows_core::HRESULT - where - Identity: ISignerCertificates_Impl, - { + unsafe extern "system" fn Find(this: *mut core::ffi::c_void, psignercert: *mut core::ffi::c_void, pisignercert: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISignerCertificates_Impl::Find(this, windows_core::from_raw_borrowed(&psignercert)) { Ok(ok__) => { @@ -9633,14 +7329,8 @@ pub trait ISmimeCapabilities_Impl: Sized + super::super::super::System::Com::IDi impl windows_core::RuntimeName for ISmimeCapabilities {} #[cfg(feature = "Win32_System_Com")] impl ISmimeCapabilities_Vtbl { - pub const fn new() -> ISmimeCapabilities_Vtbl - where - Identity: ISmimeCapabilities_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISmimeCapabilities_Impl, - { + pub const fn new() -> ISmimeCapabilities_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmimeCapabilities_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -9650,10 +7340,7 @@ impl ISmimeCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ISmimeCapabilities_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmimeCapabilities_Impl::Count(this) { Ok(ok__) => { @@ -9663,10 +7350,7 @@ impl ISmimeCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISmimeCapabilities_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmimeCapabilities_Impl::_NewEnum(this) { Ok(ok__) => { @@ -9676,38 +7360,23 @@ impl ISmimeCapabilities_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISmimeCapabilities_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmimeCapabilities_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ISmimeCapabilities_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmimeCapabilities_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISmimeCapabilities_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmimeCapabilities_Impl::Clear(this).into() } - unsafe extern "system" fn AddFromCsp(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISmimeCapabilities_Impl, - { + unsafe extern "system" fn AddFromCsp(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmimeCapabilities_Impl::AddFromCsp(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn AddAvailableSmimeCapabilities(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISmimeCapabilities_Impl, - { + unsafe extern "system" fn AddAvailableSmimeCapabilities(this: *mut core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmimeCapabilities_Impl::AddAvailableSmimeCapabilities(this, core::mem::transmute_copy(&machinecontext)).into() } @@ -9737,21 +7406,12 @@ pub trait ISmimeCapability_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for ISmimeCapability {} #[cfg(feature = "Win32_System_Com")] impl ISmimeCapability_Vtbl { - pub const fn new() -> ISmimeCapability_Vtbl - where - Identity: ISmimeCapability_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, bitcount: i32) -> windows_core::HRESULT - where - Identity: ISmimeCapability_Impl, - { + pub const fn new() -> ISmimeCapability_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, bitcount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISmimeCapability_Impl::Initialize(this, windows_core::from_raw_borrowed(&pobjectid), core::mem::transmute_copy(&bitcount)).into() } - unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISmimeCapability_Impl, - { + unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmimeCapability_Impl::ObjectId(this) { Ok(ok__) => { @@ -9761,10 +7421,7 @@ impl ISmimeCapability_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BitCount(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ISmimeCapability_Impl, - { + unsafe extern "system" fn BitCount(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISmimeCapability_Impl::BitCount(this) { Ok(ok__) => { @@ -9796,28 +7453,16 @@ pub trait IX500DistinguishedName_Impl: Sized + super::super::super::System::Com: impl windows_core::RuntimeName for IX500DistinguishedName {} #[cfg(feature = "Win32_System_Com")] impl IX500DistinguishedName_Vtbl { - pub const fn new() -> IX500DistinguishedName_Vtbl - where - Identity: IX500DistinguishedName_Impl, - { - unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strencodedname: core::mem::MaybeUninit, encoding: EncodingType, nameflags: X500NameFlags) -> windows_core::HRESULT - where - Identity: IX500DistinguishedName_Impl, - { + pub const fn new() -> IX500DistinguishedName_Vtbl { + unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, strencodedname: core::mem::MaybeUninit, encoding: EncodingType, nameflags: X500NameFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX500DistinguishedName_Impl::Decode(this, core::mem::transmute(&strencodedname), core::mem::transmute_copy(&encoding), core::mem::transmute_copy(&nameflags)).into() } - unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, nameflags: X500NameFlags) -> windows_core::HRESULT - where - Identity: IX500DistinguishedName_Impl, - { + unsafe extern "system" fn Encode(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, nameflags: X500NameFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX500DistinguishedName_Impl::Encode(this, core::mem::transmute(&strname), core::mem::transmute_copy(&nameflags)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX500DistinguishedName_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX500DistinguishedName_Impl::Name(this) { Ok(ok__) => { @@ -9827,10 +7472,7 @@ impl IX500DistinguishedName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_EncodedName(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX500DistinguishedName_Impl, - { + unsafe extern "system" fn get_EncodedName(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX500DistinguishedName_Impl::get_EncodedName(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -9862,21 +7504,12 @@ pub trait IX509Attribute_Impl: Sized + super::super::super::System::Com::IDispat impl windows_core::RuntimeName for IX509Attribute {} #[cfg(feature = "Win32_System_Com")] impl IX509Attribute_Vtbl { - pub const fn new() -> IX509Attribute_Vtbl - where - Identity: IX509Attribute_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Attribute_Impl, - { + pub const fn new() -> IX509Attribute_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Attribute_Impl::Initialize(this, windows_core::from_raw_borrowed(&pobjectid), core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Attribute_Impl, - { + unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Attribute_Impl::ObjectId(this) { Ok(ok__) => { @@ -9886,10 +7519,7 @@ impl IX509Attribute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Attribute_Impl, - { + unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Attribute_Impl::get_RawData(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -9922,28 +7552,16 @@ pub trait IX509AttributeArchiveKey_Impl: Sized + IX509Attribute_Impl { impl windows_core::RuntimeName for IX509AttributeArchiveKey {} #[cfg(feature = "Win32_System_Com")] impl IX509AttributeArchiveKey_Vtbl { - pub const fn new() -> IX509AttributeArchiveKey_Vtbl - where - Identity: IX509AttributeArchiveKey_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pkey: *mut core::ffi::c_void, encoding: EncodingType, strcaxcert: core::mem::MaybeUninit, palgorithm: *mut core::ffi::c_void, encryptionstrength: i32) -> windows_core::HRESULT - where - Identity: IX509AttributeArchiveKey_Impl, - { + pub const fn new() -> IX509AttributeArchiveKey_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pkey: *mut core::ffi::c_void, encoding: EncodingType, strcaxcert: core::mem::MaybeUninit, palgorithm: *mut core::ffi::c_void, encryptionstrength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeArchiveKey_Impl::InitializeEncode(this, windows_core::from_raw_borrowed(&pkey), core::mem::transmute_copy(&encoding), core::mem::transmute(&strcaxcert), windows_core::from_raw_borrowed(&palgorithm), core::mem::transmute_copy(&encryptionstrength)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeArchiveKey_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeArchiveKey_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn get_EncryptedKeyBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeArchiveKey_Impl, - { + unsafe extern "system" fn get_EncryptedKeyBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeArchiveKey_Impl::get_EncryptedKeyBlob(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -9953,10 +7571,7 @@ impl IX509AttributeArchiveKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EncryptionAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509AttributeArchiveKey_Impl, - { + unsafe extern "system" fn EncryptionAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeArchiveKey_Impl::EncryptionAlgorithm(this) { Ok(ok__) => { @@ -9966,10 +7581,7 @@ impl IX509AttributeArchiveKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EncryptionStrength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509AttributeArchiveKey_Impl, - { + unsafe extern "system" fn EncryptionStrength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeArchiveKey_Impl::EncryptionStrength(this) { Ok(ok__) => { @@ -10002,28 +7614,16 @@ pub trait IX509AttributeArchiveKeyHash_Impl: Sized + IX509Attribute_Impl { impl windows_core::RuntimeName for IX509AttributeArchiveKeyHash {} #[cfg(feature = "Win32_System_Com")] impl IX509AttributeArchiveKeyHash_Vtbl { - pub const fn new() -> IX509AttributeArchiveKeyHash_Vtbl - where - Identity: IX509AttributeArchiveKeyHash_Impl, - { - unsafe extern "system" fn InitializeEncodeFromEncryptedKeyBlob(this: *mut core::ffi::c_void, encoding: EncodingType, strencryptedkeyblob: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeArchiveKeyHash_Impl, - { + pub const fn new() -> IX509AttributeArchiveKeyHash_Vtbl { + unsafe extern "system" fn InitializeEncodeFromEncryptedKeyBlob(this: *mut core::ffi::c_void, encoding: EncodingType, strencryptedkeyblob: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeArchiveKeyHash_Impl::InitializeEncodeFromEncryptedKeyBlob(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencryptedkeyblob)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeArchiveKeyHash_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeArchiveKeyHash_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn get_EncryptedKeyHashBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeArchiveKeyHash_Impl, - { + unsafe extern "system" fn get_EncryptedKeyHashBlob(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeArchiveKeyHash_Impl::get_EncryptedKeyHashBlob(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -10057,28 +7657,16 @@ pub trait IX509AttributeClientId_Impl: Sized + IX509Attribute_Impl { impl windows_core::RuntimeName for IX509AttributeClientId {} #[cfg(feature = "Win32_System_Com")] impl IX509AttributeClientId_Vtbl { - pub const fn new() -> IX509AttributeClientId_Vtbl - where - Identity: IX509AttributeClientId_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, clientid: RequestClientInfoClientId, strmachinednsname: core::mem::MaybeUninit, strusersamname: core::mem::MaybeUninit, strprocessname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeClientId_Impl, - { + pub const fn new() -> IX509AttributeClientId_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, clientid: RequestClientInfoClientId, strmachinednsname: core::mem::MaybeUninit, strusersamname: core::mem::MaybeUninit, strprocessname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeClientId_Impl::InitializeEncode(this, core::mem::transmute_copy(&clientid), core::mem::transmute(&strmachinednsname), core::mem::transmute(&strusersamname), core::mem::transmute(&strprocessname)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeClientId_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeClientId_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn ClientId(this: *mut core::ffi::c_void, pvalue: *mut RequestClientInfoClientId) -> windows_core::HRESULT - where - Identity: IX509AttributeClientId_Impl, - { + unsafe extern "system" fn ClientId(this: *mut core::ffi::c_void, pvalue: *mut RequestClientInfoClientId) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeClientId_Impl::ClientId(this) { Ok(ok__) => { @@ -10088,10 +7676,7 @@ impl IX509AttributeClientId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MachineDnsName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeClientId_Impl, - { + unsafe extern "system" fn MachineDnsName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeClientId_Impl::MachineDnsName(this) { Ok(ok__) => { @@ -10101,10 +7686,7 @@ impl IX509AttributeClientId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserSamName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeClientId_Impl, - { + unsafe extern "system" fn UserSamName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeClientId_Impl::UserSamName(this) { Ok(ok__) => { @@ -10114,10 +7696,7 @@ impl IX509AttributeClientId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeClientId_Impl, - { + unsafe extern "system" fn ProcessName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeClientId_Impl::ProcessName(this) { Ok(ok__) => { @@ -10153,28 +7732,16 @@ pub trait IX509AttributeCspProvider_Impl: Sized + IX509Attribute_Impl { impl windows_core::RuntimeName for IX509AttributeCspProvider {} #[cfg(feature = "Win32_System_Com")] impl IX509AttributeCspProvider_Vtbl { - pub const fn new() -> IX509AttributeCspProvider_Vtbl - where - Identity: IX509AttributeCspProvider_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, keyspec: X509KeySpec, strprovidername: core::mem::MaybeUninit, encoding: EncodingType, strsignature: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeCspProvider_Impl, - { + pub const fn new() -> IX509AttributeCspProvider_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, keyspec: X509KeySpec, strprovidername: core::mem::MaybeUninit, encoding: EncodingType, strsignature: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeCspProvider_Impl::InitializeEncode(this, core::mem::transmute_copy(&keyspec), core::mem::transmute(&strprovidername), core::mem::transmute_copy(&encoding), core::mem::transmute(&strsignature)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeCspProvider_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeCspProvider_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pvalue: *mut X509KeySpec) -> windows_core::HRESULT - where - Identity: IX509AttributeCspProvider_Impl, - { + unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pvalue: *mut X509KeySpec) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeCspProvider_Impl::KeySpec(this) { Ok(ok__) => { @@ -10184,10 +7751,7 @@ impl IX509AttributeCspProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeCspProvider_Impl, - { + unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeCspProvider_Impl::ProviderName(this) { Ok(ok__) => { @@ -10197,10 +7761,7 @@ impl IX509AttributeCspProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Signature(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeCspProvider_Impl, - { + unsafe extern "system" fn get_Signature(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeCspProvider_Impl::get_Signature(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -10233,28 +7794,16 @@ pub trait IX509AttributeExtensions_Impl: Sized + IX509Attribute_Impl { impl windows_core::RuntimeName for IX509AttributeExtensions {} #[cfg(feature = "Win32_System_Com")] impl IX509AttributeExtensions_Vtbl { - pub const fn new() -> IX509AttributeExtensions_Vtbl - where - Identity: IX509AttributeExtensions_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pextensions: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509AttributeExtensions_Impl, - { + pub const fn new() -> IX509AttributeExtensions_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pextensions: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeExtensions_Impl::InitializeEncode(this, windows_core::from_raw_borrowed(&pextensions)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeExtensions_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeExtensions_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn X509Extensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509AttributeExtensions_Impl, - { + unsafe extern "system" fn X509Extensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeExtensions_Impl::X509Extensions(this) { Ok(ok__) => { @@ -10285,28 +7834,16 @@ pub trait IX509AttributeOSVersion_Impl: Sized + IX509Attribute_Impl { impl windows_core::RuntimeName for IX509AttributeOSVersion {} #[cfg(feature = "Win32_System_Com")] impl IX509AttributeOSVersion_Vtbl { - pub const fn new() -> IX509AttributeOSVersion_Vtbl - where - Identity: IX509AttributeOSVersion_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, strosversion: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeOSVersion_Impl, - { + pub const fn new() -> IX509AttributeOSVersion_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, strosversion: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeOSVersion_Impl::InitializeEncode(this, core::mem::transmute(&strosversion)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeOSVersion_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeOSVersion_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn OSVersion(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeOSVersion_Impl, - { + unsafe extern "system" fn OSVersion(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeOSVersion_Impl::OSVersion(this) { Ok(ok__) => { @@ -10337,28 +7874,16 @@ pub trait IX509AttributeRenewalCertificate_Impl: Sized + IX509Attribute_Impl { impl windows_core::RuntimeName for IX509AttributeRenewalCertificate {} #[cfg(feature = "Win32_System_Com")] impl IX509AttributeRenewalCertificate_Vtbl { - pub const fn new() -> IX509AttributeRenewalCertificate_Vtbl - where - Identity: IX509AttributeRenewalCertificate_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, encoding: EncodingType, strcert: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeRenewalCertificate_Impl, - { + pub const fn new() -> IX509AttributeRenewalCertificate_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, encoding: EncodingType, strcert: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeRenewalCertificate_Impl::InitializeEncode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strcert)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeRenewalCertificate_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509AttributeRenewalCertificate_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn get_RenewalCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509AttributeRenewalCertificate_Impl, - { + unsafe extern "system" fn get_RenewalCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509AttributeRenewalCertificate_Impl::get_RenewalCertificate(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -10392,14 +7917,8 @@ pub trait IX509Attributes_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IX509Attributes {} #[cfg(feature = "Win32_System_Com")] impl IX509Attributes_Vtbl { - pub const fn new() -> IX509Attributes_Vtbl - where - Identity: IX509Attributes_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Attributes_Impl, - { + pub const fn new() -> IX509Attributes_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Attributes_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -10409,10 +7928,7 @@ impl IX509Attributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IX509Attributes_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Attributes_Impl::Count(this) { Ok(ok__) => { @@ -10422,10 +7938,7 @@ impl IX509Attributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Attributes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Attributes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -10435,24 +7948,15 @@ impl IX509Attributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Attributes_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Attributes_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IX509Attributes_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Attributes_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Attributes_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Attributes_Impl::Clear(this).into() } @@ -10502,35 +8006,20 @@ pub trait IX509CertificateRequest_Impl: Sized + super::super::super::System::Com impl windows_core::RuntimeName for IX509CertificateRequest {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequest_Vtbl { - pub const fn new() -> IX509CertificateRequest_Vtbl - where - Identity: IX509CertificateRequest_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + pub const fn new() -> IX509CertificateRequest_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::Initialize(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn Encode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn Encode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::Encode(this).into() } - unsafe extern "system" fn ResetForEncode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn ResetForEncode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::ResetForEncode(this).into() } - unsafe extern "system" fn GetInnerRequest(this: *mut core::ffi::c_void, level: InnerRequestLevel, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn GetInnerRequest(this: *mut core::ffi::c_void, level: InnerRequestLevel, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::GetInnerRequest(this, core::mem::transmute_copy(&level)) { Ok(ok__) => { @@ -10540,10 +8029,7 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pvalue: *mut X509RequestType) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pvalue: *mut X509RequestType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::Type(this) { Ok(ok__) => { @@ -10553,10 +8039,7 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnrollmentContext(this: *mut core::ffi::c_void, pvalue: *mut X509CertificateEnrollmentContext) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn EnrollmentContext(this: *mut core::ffi::c_void, pvalue: *mut X509CertificateEnrollmentContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::EnrollmentContext(this) { Ok(ok__) => { @@ -10566,10 +8049,7 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::Silent(this) { Ok(ok__) => { @@ -10579,17 +8059,11 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::SetSilent(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ParentWindow(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn ParentWindow(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::ParentWindow(this) { Ok(ok__) => { @@ -10599,17 +8073,11 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParentWindow(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn SetParentWindow(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::SetParentWindow(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn UIContextMessage(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn UIContextMessage(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::UIContextMessage(this) { Ok(ok__) => { @@ -10619,17 +8087,11 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUIContextMessage(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn SetUIContextMessage(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::SetUIContextMessage(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn SuppressDefaults(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn SuppressDefaults(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::SuppressDefaults(this) { Ok(ok__) => { @@ -10639,17 +8101,11 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSuppressDefaults(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn SetSuppressDefaults(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::SetSuppressDefaults(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_RenewalCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn get_RenewalCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::get_RenewalCertificate(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -10659,17 +8115,11 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_RenewalCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn put_RenewalCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::put_RenewalCertificate(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } - unsafe extern "system" fn ClientId(this: *mut core::ffi::c_void, pvalue: *mut RequestClientInfoClientId) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn ClientId(this: *mut core::ffi::c_void, pvalue: *mut RequestClientInfoClientId) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::ClientId(this) { Ok(ok__) => { @@ -10679,17 +8129,11 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientId(this: *mut core::ffi::c_void, value: RequestClientInfoClientId) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn SetClientId(this: *mut core::ffi::c_void, value: RequestClientInfoClientId) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::SetClientId(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn CspInformations(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn CspInformations(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::CspInformations(this) { Ok(ok__) => { @@ -10699,17 +8143,11 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCspInformations(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn SetCspInformations(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::SetCspInformations(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::HashAlgorithm(this) { Ok(ok__) => { @@ -10719,17 +8157,11 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::SetHashAlgorithm(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn AlternateSignatureAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn AlternateSignatureAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::AlternateSignatureAlgorithm(this) { Ok(ok__) => { @@ -10739,17 +8171,11 @@ impl IX509CertificateRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlternateSignatureAlgorithm(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn SetAlternateSignatureAlgorithm(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequest_Impl::SetAlternateSignatureAlgorithm(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequest_Impl, - { + unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequest_Impl::get_RawData(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -10810,21 +8236,12 @@ pub trait IX509CertificateRequestCertificate_Impl: Sized + IX509CertificateReque impl windows_core::RuntimeName for IX509CertificateRequestCertificate {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestCertificate_Vtbl { - pub const fn new() -> IX509CertificateRequestCertificate_Vtbl - where - Identity: IX509CertificateRequestCertificate_Impl, - { - unsafe extern "system" fn CheckPublicKeySignature(this: *mut core::ffi::c_void, ppublickey: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + pub const fn new() -> IX509CertificateRequestCertificate_Vtbl { + unsafe extern "system" fn CheckPublicKeySignature(this: *mut core::ffi::c_void, ppublickey: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCertificate_Impl::CheckPublicKeySignature(this, windows_core::from_raw_borrowed(&ppublickey)).into() } - unsafe extern "system" fn Issuer(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + unsafe extern "system" fn Issuer(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCertificate_Impl::Issuer(this) { Ok(ok__) => { @@ -10834,17 +8251,11 @@ impl IX509CertificateRequestCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIssuer(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + unsafe extern "system" fn SetIssuer(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCertificate_Impl::SetIssuer(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn NotBefore(this: *mut core::ffi::c_void, pvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + unsafe extern "system" fn NotBefore(this: *mut core::ffi::c_void, pvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCertificate_Impl::NotBefore(this) { Ok(ok__) => { @@ -10854,17 +8265,11 @@ impl IX509CertificateRequestCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotBefore(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + unsafe extern "system" fn SetNotBefore(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCertificate_Impl::SetNotBefore(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn NotAfter(this: *mut core::ffi::c_void, pvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + unsafe extern "system" fn NotAfter(this: *mut core::ffi::c_void, pvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCertificate_Impl::NotAfter(this) { Ok(ok__) => { @@ -10874,17 +8279,11 @@ impl IX509CertificateRequestCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotAfter(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + unsafe extern "system" fn SetNotAfter(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCertificate_Impl::SetNotAfter(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_SerialNumber(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + unsafe extern "system" fn get_SerialNumber(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCertificate_Impl::get_SerialNumber(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -10894,17 +8293,11 @@ impl IX509CertificateRequestCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_SerialNumber(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + unsafe extern "system" fn put_SerialNumber(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCertificate_Impl::put_SerialNumber(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } - unsafe extern "system" fn SignerCertificate(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + unsafe extern "system" fn SignerCertificate(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCertificate_Impl::SignerCertificate(this) { Ok(ok__) => { @@ -10914,10 +8307,7 @@ impl IX509CertificateRequestCertificate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate_Impl, - { + unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCertificate_Impl::SetSignerCertificate(this, windows_core::from_raw_borrowed(&pvalue)).into() } @@ -10951,28 +8341,16 @@ pub trait IX509CertificateRequestCertificate2_Impl: Sized + IX509CertificateRequ impl windows_core::RuntimeName for IX509CertificateRequestCertificate2 {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestCertificate2_Vtbl { - pub const fn new() -> IX509CertificateRequestCertificate2_Vtbl - where - Identity: IX509CertificateRequestCertificate2_Impl, - { - unsafe extern "system" fn InitializeFromTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate2_Impl, - { + pub const fn new() -> IX509CertificateRequestCertificate2_Vtbl { + unsafe extern "system" fn InitializeFromTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCertificate2_Impl::InitializeFromTemplate(this, core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&ppolicyserver), windows_core::from_raw_borrowed(&ptemplate)).into() } - unsafe extern "system" fn InitializeFromPrivateKeyTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, pprivatekey: *mut core::ffi::c_void, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate2_Impl, - { + unsafe extern "system" fn InitializeFromPrivateKeyTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, pprivatekey: *mut core::ffi::c_void, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCertificate2_Impl::InitializeFromPrivateKeyTemplate(this, core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&pprivatekey), windows_core::from_raw_borrowed(&ppolicyserver), windows_core::from_raw_borrowed(&ptemplate)).into() } - unsafe extern "system" fn PolicyServer(this: *mut core::ffi::c_void, pppolicyserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate2_Impl, - { + unsafe extern "system" fn PolicyServer(this: *mut core::ffi::c_void, pppolicyserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCertificate2_Impl::PolicyServer(this) { Ok(ok__) => { @@ -10982,10 +8360,7 @@ impl IX509CertificateRequestCertificate2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Template(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCertificate2_Impl, - { + unsafe extern "system" fn Template(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCertificate2_Impl::Template(this) { Ok(ok__) => { @@ -11037,21 +8412,12 @@ pub trait IX509CertificateRequestCmc_Impl: Sized + IX509CertificateRequestPkcs7_ impl windows_core::RuntimeName for IX509CertificateRequestCmc {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestCmc_Vtbl { - pub const fn new() -> IX509CertificateRequestCmc_Vtbl - where - Identity: IX509CertificateRequestCmc_Impl, - { - unsafe extern "system" fn InitializeFromInnerRequestTemplateName(this: *mut core::ffi::c_void, pinnerrequest: *mut core::ffi::c_void, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + pub const fn new() -> IX509CertificateRequestCmc_Vtbl { + unsafe extern "system" fn InitializeFromInnerRequestTemplateName(this: *mut core::ffi::c_void, pinnerrequest: *mut core::ffi::c_void, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc_Impl::InitializeFromInnerRequestTemplateName(this, windows_core::from_raw_borrowed(&pinnerrequest), core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn TemplateObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn TemplateObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::TemplateObjectId(this) { Ok(ok__) => { @@ -11061,10 +8427,7 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NullSigned(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn NullSigned(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::NullSigned(this) { Ok(ok__) => { @@ -11074,10 +8437,7 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CryptAttributes(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn CryptAttributes(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::CryptAttributes(this) { Ok(ok__) => { @@ -11087,10 +8447,7 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NameValuePairs(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn NameValuePairs(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::NameValuePairs(this) { Ok(ok__) => { @@ -11100,10 +8457,7 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn X509Extensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn X509Extensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::X509Extensions(this) { Ok(ok__) => { @@ -11113,10 +8467,7 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CriticalExtensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn CriticalExtensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::CriticalExtensions(this) { Ok(ok__) => { @@ -11126,10 +8477,7 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SuppressOids(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn SuppressOids(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::SuppressOids(this) { Ok(ok__) => { @@ -11139,10 +8487,7 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransactionId(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn TransactionId(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::TransactionId(this) { Ok(ok__) => { @@ -11152,17 +8497,11 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransactionId(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn SetTransactionId(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc_Impl::SetTransactionId(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_SenderNonce(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn get_SenderNonce(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::get_SenderNonce(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -11172,17 +8511,11 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_SenderNonce(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn put_SenderNonce(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc_Impl::put_SenderNonce(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } - unsafe extern "system" fn SignatureInformation(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn SignatureInformation(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::SignatureInformation(this) { Ok(ok__) => { @@ -11192,10 +8525,7 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ArchivePrivateKey(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn ArchivePrivateKey(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::ArchivePrivateKey(this) { Ok(ok__) => { @@ -11205,17 +8535,11 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetArchivePrivateKey(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn SetArchivePrivateKey(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc_Impl::SetArchivePrivateKey(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_KeyArchivalCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn get_KeyArchivalCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::get_KeyArchivalCertificate(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -11225,17 +8549,11 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_KeyArchivalCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn put_KeyArchivalCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc_Impl::put_KeyArchivalCertificate(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } - unsafe extern "system" fn EncryptionAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn EncryptionAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::EncryptionAlgorithm(this) { Ok(ok__) => { @@ -11245,17 +8563,11 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncryptionAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn SetEncryptionAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc_Impl::SetEncryptionAlgorithm(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn EncryptionStrength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn EncryptionStrength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::EncryptionStrength(this) { Ok(ok__) => { @@ -11265,17 +8577,11 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncryptionStrength(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn SetEncryptionStrength(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc_Impl::SetEncryptionStrength(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_EncryptedKeyHash(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn get_EncryptedKeyHash(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::get_EncryptedKeyHash(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -11285,10 +8591,7 @@ impl IX509CertificateRequestCmc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SignerCertificates(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc_Impl, - { + unsafe extern "system" fn SignerCertificates(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc_Impl::SignerCertificates(this) { Ok(ok__) => { @@ -11342,28 +8645,16 @@ pub trait IX509CertificateRequestCmc2_Impl: Sized + IX509CertificateRequestCmc_I impl windows_core::RuntimeName for IX509CertificateRequestCmc2 {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestCmc2_Vtbl { - pub const fn new() -> IX509CertificateRequestCmc2_Vtbl - where - Identity: IX509CertificateRequestCmc2_Impl, - { - unsafe extern "system" fn InitializeFromTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc2_Impl, - { + pub const fn new() -> IX509CertificateRequestCmc2_Vtbl { + unsafe extern "system" fn InitializeFromTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc2_Impl::InitializeFromTemplate(this, core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&ppolicyserver), windows_core::from_raw_borrowed(&ptemplate)).into() } - unsafe extern "system" fn InitializeFromInnerRequestTemplate(this: *mut core::ffi::c_void, pinnerrequest: *mut core::ffi::c_void, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc2_Impl, - { + unsafe extern "system" fn InitializeFromInnerRequestTemplate(this: *mut core::ffi::c_void, pinnerrequest: *mut core::ffi::c_void, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc2_Impl::InitializeFromInnerRequestTemplate(this, windows_core::from_raw_borrowed(&pinnerrequest), windows_core::from_raw_borrowed(&ppolicyserver), windows_core::from_raw_borrowed(&ptemplate)).into() } - unsafe extern "system" fn PolicyServer(this: *mut core::ffi::c_void, pppolicyserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc2_Impl, - { + unsafe extern "system" fn PolicyServer(this: *mut core::ffi::c_void, pppolicyserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc2_Impl::PolicyServer(this) { Ok(ok__) => { @@ -11373,10 +8664,7 @@ impl IX509CertificateRequestCmc2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Template(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc2_Impl, - { + unsafe extern "system" fn Template(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestCmc2_Impl::Template(this) { Ok(ok__) => { @@ -11386,17 +8674,11 @@ impl IX509CertificateRequestCmc2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckSignature(this: *mut core::ffi::c_void, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc2_Impl, - { + unsafe extern "system" fn CheckSignature(this: *mut core::ffi::c_void, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc2_Impl::CheckSignature(this, core::mem::transmute_copy(&allowedsignaturetypes)).into() } - unsafe extern "system" fn CheckCertificateSignature(this: *mut core::ffi::c_void, psignercertificate: *mut core::ffi::c_void, validatecertificatechain: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestCmc2_Impl, - { + unsafe extern "system" fn CheckCertificateSignature(this: *mut core::ffi::c_void, psignercertificate: *mut core::ffi::c_void, validatecertificatechain: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestCmc2_Impl::CheckCertificateSignature(this, windows_core::from_raw_borrowed(&psignercertificate), core::mem::transmute_copy(&validatecertificatechain)).into() } @@ -11449,56 +8731,32 @@ pub trait IX509CertificateRequestPkcs10_Impl: Sized + IX509CertificateRequest_Im impl windows_core::RuntimeName for IX509CertificateRequestPkcs10 {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs10_Vtbl { - pub const fn new() -> IX509CertificateRequestPkcs10_Vtbl - where - Identity: IX509CertificateRequestPkcs10_Impl, - { - unsafe extern "system" fn InitializeFromTemplateName(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + pub const fn new() -> IX509CertificateRequestPkcs10_Vtbl { + unsafe extern "system" fn InitializeFromTemplateName(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10_Impl::InitializeFromTemplateName(this, core::mem::transmute_copy(&context), core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeFromPrivateKey(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, pprivatekey: *mut core::ffi::c_void, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn InitializeFromPrivateKey(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, pprivatekey: *mut core::ffi::c_void, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10_Impl::InitializeFromPrivateKey(this, core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&pprivatekey), core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeFromPublicKey(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppublickey: *mut core::ffi::c_void, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn InitializeFromPublicKey(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppublickey: *mut core::ffi::c_void, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10_Impl::InitializeFromPublicKey(this, core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&ppublickey), core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeFromCertificate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, strcertificate: core::mem::MaybeUninit, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn InitializeFromCertificate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, strcertificate: core::mem::MaybeUninit, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10_Impl::InitializeFromCertificate(this, 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(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10_Impl::InitializeDecode(this, core::mem::transmute(&strencodeddata), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn CheckSignature(this: *mut core::ffi::c_void, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn CheckSignature(this: *mut core::ffi::c_void, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10_Impl::CheckSignature(this, core::mem::transmute_copy(&allowedsignaturetypes)).into() } - unsafe extern "system" fn IsSmartCard(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn IsSmartCard(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::IsSmartCard(this) { Ok(ok__) => { @@ -11508,10 +8766,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TemplateObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn TemplateObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::TemplateObjectId(this) { Ok(ok__) => { @@ -11521,10 +8776,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PublicKey(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn PublicKey(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::PublicKey(this) { Ok(ok__) => { @@ -11534,10 +8786,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateKey(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn PrivateKey(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::PrivateKey(this) { Ok(ok__) => { @@ -11547,10 +8796,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NullSigned(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn NullSigned(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::NullSigned(this) { Ok(ok__) => { @@ -11560,10 +8806,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReuseKey(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn ReuseKey(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::ReuseKey(this) { Ok(ok__) => { @@ -11573,10 +8816,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_OldCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn get_OldCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::get_OldCertificate(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -11586,10 +8826,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::Subject(this) { Ok(ok__) => { @@ -11599,17 +8836,11 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubject(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn SetSubject(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10_Impl::SetSubject(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn CspStatuses(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn CspStatuses(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::CspStatuses(this) { Ok(ok__) => { @@ -11619,10 +8850,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SmimeCapabilities(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn SmimeCapabilities(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::SmimeCapabilities(this) { Ok(ok__) => { @@ -11632,17 +8860,11 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSmimeCapabilities(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn SetSmimeCapabilities(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10_Impl::SetSmimeCapabilities(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SignatureInformation(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn SignatureInformation(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::SignatureInformation(this) { Ok(ok__) => { @@ -11652,10 +8874,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeyContainerNamePrefix(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn KeyContainerNamePrefix(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::KeyContainerNamePrefix(this) { Ok(ok__) => { @@ -11665,17 +8884,11 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeyContainerNamePrefix(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn SetKeyContainerNamePrefix(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10_Impl::SetKeyContainerNamePrefix(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn CryptAttributes(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn CryptAttributes(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::CryptAttributes(this) { Ok(ok__) => { @@ -11685,10 +8898,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn X509Extensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn X509Extensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::X509Extensions(this) { Ok(ok__) => { @@ -11698,10 +8908,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CriticalExtensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn CriticalExtensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::CriticalExtensions(this) { Ok(ok__) => { @@ -11711,10 +8918,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SuppressOids(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn SuppressOids(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::SuppressOids(this) { Ok(ok__) => { @@ -11724,10 +8928,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_RawDataToBeSigned(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn get_RawDataToBeSigned(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::get_RawDataToBeSigned(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -11737,10 +8938,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Signature(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn get_Signature(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::get_Signature(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -11750,10 +8948,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCspStatuses(this: *mut core::ffi::c_void, keyspec: X509KeySpec, ppcspstatuses: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10_Impl, - { + unsafe extern "system" fn GetCspStatuses(this: *mut core::ffi::c_void, keyspec: X509KeySpec, ppcspstatuses: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10_Impl::GetCspStatuses(this, core::mem::transmute_copy(&keyspec)) { Ok(ok__) => { @@ -11811,35 +9006,20 @@ pub trait IX509CertificateRequestPkcs10V2_Impl: Sized + IX509CertificateRequestP impl windows_core::RuntimeName for IX509CertificateRequestPkcs10V2 {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs10V2_Vtbl { - pub const fn new() -> IX509CertificateRequestPkcs10V2_Vtbl - where - Identity: IX509CertificateRequestPkcs10V2_Impl, - { - unsafe extern "system" fn InitializeFromTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V2_Impl, - { + pub const fn new() -> IX509CertificateRequestPkcs10V2_Vtbl { + unsafe extern "system" fn InitializeFromTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10V2_Impl::InitializeFromTemplate(this, core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&ppolicyserver), windows_core::from_raw_borrowed(&ptemplate)).into() } - unsafe extern "system" fn InitializeFromPrivateKeyTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, pprivatekey: *mut core::ffi::c_void, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V2_Impl, - { + unsafe extern "system" fn InitializeFromPrivateKeyTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, pprivatekey: *mut core::ffi::c_void, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10V2_Impl::InitializeFromPrivateKeyTemplate(this, core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&pprivatekey), windows_core::from_raw_borrowed(&ppolicyserver), windows_core::from_raw_borrowed(&ptemplate)).into() } - unsafe extern "system" fn InitializeFromPublicKeyTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppublickey: *mut core::ffi::c_void, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V2_Impl, - { + unsafe extern "system" fn InitializeFromPublicKeyTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppublickey: *mut core::ffi::c_void, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10V2_Impl::InitializeFromPublicKeyTemplate(this, core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&ppublickey), windows_core::from_raw_borrowed(&ppolicyserver), windows_core::from_raw_borrowed(&ptemplate)).into() } - unsafe extern "system" fn PolicyServer(this: *mut core::ffi::c_void, pppolicyserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V2_Impl, - { + unsafe extern "system" fn PolicyServer(this: *mut core::ffi::c_void, pppolicyserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10V2_Impl::PolicyServer(this) { Ok(ok__) => { @@ -11849,10 +9029,7 @@ impl IX509CertificateRequestPkcs10V2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Template(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V2_Impl, - { + unsafe extern "system" fn Template(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10V2_Impl::Template(this) { Ok(ok__) => { @@ -11893,14 +9070,8 @@ pub trait IX509CertificateRequestPkcs10V3_Impl: Sized + IX509CertificateRequestP impl windows_core::RuntimeName for IX509CertificateRequestPkcs10V3 {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs10V3_Vtbl { - pub const fn new() -> IX509CertificateRequestPkcs10V3_Vtbl - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { - unsafe extern "system" fn AttestPrivateKey(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + pub const fn new() -> IX509CertificateRequestPkcs10V3_Vtbl { + unsafe extern "system" fn AttestPrivateKey(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10V3_Impl::AttestPrivateKey(this) { Ok(ok__) => { @@ -11910,17 +9081,11 @@ impl IX509CertificateRequestPkcs10V3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttestPrivateKey(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + unsafe extern "system" fn SetAttestPrivateKey(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10V3_Impl::SetAttestPrivateKey(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_AttestationEncryptionCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + unsafe extern "system" fn get_AttestationEncryptionCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10V3_Impl::get_AttestationEncryptionCertificate(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -11930,17 +9095,11 @@ impl IX509CertificateRequestPkcs10V3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_AttestationEncryptionCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + unsafe extern "system" fn put_AttestationEncryptionCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10V3_Impl::put_AttestationEncryptionCertificate(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } - unsafe extern "system" fn EncryptionAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + unsafe extern "system" fn EncryptionAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10V3_Impl::EncryptionAlgorithm(this) { Ok(ok__) => { @@ -11950,17 +9109,11 @@ impl IX509CertificateRequestPkcs10V3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncryptionAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + unsafe extern "system" fn SetEncryptionAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10V3_Impl::SetEncryptionAlgorithm(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn EncryptionStrength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + unsafe extern "system" fn EncryptionStrength(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10V3_Impl::EncryptionStrength(this) { Ok(ok__) => { @@ -11970,17 +9123,11 @@ impl IX509CertificateRequestPkcs10V3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncryptionStrength(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + unsafe extern "system" fn SetEncryptionStrength(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10V3_Impl::SetEncryptionStrength(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ChallengePassword(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + unsafe extern "system" fn ChallengePassword(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10V3_Impl::ChallengePassword(this) { Ok(ok__) => { @@ -11990,17 +9137,11 @@ impl IX509CertificateRequestPkcs10V3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChallengePassword(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + unsafe extern "system" fn SetChallengePassword(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10V3_Impl::SetChallengePassword(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn NameValuePairs(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V3_Impl, - { + unsafe extern "system" fn NameValuePairs(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10V3_Impl::NameValuePairs(this) { Ok(ok__) => { @@ -12040,14 +9181,8 @@ pub trait IX509CertificateRequestPkcs10V4_Impl: Sized + IX509CertificateRequestP impl windows_core::RuntimeName for IX509CertificateRequestPkcs10V4 {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs10V4_Vtbl { - pub const fn new() -> IX509CertificateRequestPkcs10V4_Vtbl - where - Identity: IX509CertificateRequestPkcs10V4_Impl, - { - unsafe extern "system" fn ClaimType(this: *mut core::ffi::c_void, pvalue: *mut KeyAttestationClaimType) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V4_Impl, - { + pub const fn new() -> IX509CertificateRequestPkcs10V4_Vtbl { + unsafe extern "system" fn ClaimType(this: *mut core::ffi::c_void, pvalue: *mut KeyAttestationClaimType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10V4_Impl::ClaimType(this) { Ok(ok__) => { @@ -12057,17 +9192,11 @@ impl IX509CertificateRequestPkcs10V4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClaimType(this: *mut core::ffi::c_void, value: KeyAttestationClaimType) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V4_Impl, - { + unsafe extern "system" fn SetClaimType(this: *mut core::ffi::c_void, value: KeyAttestationClaimType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10V4_Impl::SetClaimType(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn AttestPrivateKeyPreferred(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V4_Impl, - { + unsafe extern "system" fn AttestPrivateKeyPreferred(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs10V4_Impl::AttestPrivateKeyPreferred(this) { Ok(ok__) => { @@ -12077,10 +9206,7 @@ impl IX509CertificateRequestPkcs10V4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttestPrivateKeyPreferred(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs10V4_Impl, - { + unsafe extern "system" fn SetAttestPrivateKeyPreferred(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs10V4_Impl::SetAttestPrivateKeyPreferred(this, core::mem::transmute_copy(&value)).into() } @@ -12111,42 +9237,24 @@ pub trait IX509CertificateRequestPkcs7_Impl: Sized + IX509CertificateRequest_Imp impl windows_core::RuntimeName for IX509CertificateRequestPkcs7 {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs7_Vtbl { - pub const fn new() -> IX509CertificateRequestPkcs7_Vtbl - where - Identity: IX509CertificateRequestPkcs7_Impl, - { - unsafe extern "system" fn InitializeFromTemplateName(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7_Impl, - { + pub const fn new() -> IX509CertificateRequestPkcs7_Vtbl { + unsafe extern "system" fn InitializeFromTemplateName(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs7_Impl::InitializeFromTemplateName(this, core::mem::transmute_copy(&context), core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeFromCertificate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, renewalrequest: super::super::super::Foundation::VARIANT_BOOL, strcertificate: core::mem::MaybeUninit, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7_Impl, - { + unsafe extern "system" fn InitializeFromCertificate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, renewalrequest: super::super::super::Foundation::VARIANT_BOOL, strcertificate: core::mem::MaybeUninit, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs7_Impl::InitializeFromCertificate(this, 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() } - unsafe extern "system" fn InitializeFromInnerRequest(this: *mut core::ffi::c_void, pinnerrequest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7_Impl, - { + unsafe extern "system" fn InitializeFromInnerRequest(this: *mut core::ffi::c_void, pinnerrequest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs7_Impl::InitializeFromInnerRequest(this, windows_core::from_raw_borrowed(&pinnerrequest)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs7_Impl::InitializeDecode(this, core::mem::transmute(&strencodeddata), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn RequesterName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7_Impl, - { + unsafe extern "system" fn RequesterName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs7_Impl::RequesterName(this) { Ok(ok__) => { @@ -12156,17 +9264,11 @@ impl IX509CertificateRequestPkcs7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRequesterName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7_Impl, - { + unsafe extern "system" fn SetRequesterName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs7_Impl::SetRequesterName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn SignerCertificate(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7_Impl, - { + unsafe extern "system" fn SignerCertificate(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs7_Impl::SignerCertificate(this) { Ok(ok__) => { @@ -12176,10 +9278,7 @@ impl IX509CertificateRequestPkcs7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7_Impl, - { + unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs7_Impl::SetSignerCertificate(this, windows_core::from_raw_borrowed(&pvalue)).into() } @@ -12210,21 +9309,12 @@ pub trait IX509CertificateRequestPkcs7V2_Impl: Sized + IX509CertificateRequestPk impl windows_core::RuntimeName for IX509CertificateRequestPkcs7V2 {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs7V2_Vtbl { - pub const fn new() -> IX509CertificateRequestPkcs7V2_Vtbl - where - Identity: IX509CertificateRequestPkcs7V2_Impl, - { - unsafe extern "system" fn InitializeFromTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7V2_Impl, - { + pub const fn new() -> IX509CertificateRequestPkcs7V2_Vtbl { + unsafe extern "system" fn InitializeFromTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs7V2_Impl::InitializeFromTemplate(this, core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&ppolicyserver), windows_core::from_raw_borrowed(&ptemplate)).into() } - unsafe extern "system" fn PolicyServer(this: *mut core::ffi::c_void, pppolicyserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7V2_Impl, - { + unsafe extern "system" fn PolicyServer(this: *mut core::ffi::c_void, pppolicyserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs7V2_Impl::PolicyServer(this) { Ok(ok__) => { @@ -12234,10 +9324,7 @@ impl IX509CertificateRequestPkcs7V2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Template(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7V2_Impl, - { + unsafe extern "system" fn Template(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRequestPkcs7V2_Impl::Template(this) { Ok(ok__) => { @@ -12247,10 +9334,7 @@ impl IX509CertificateRequestPkcs7V2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CheckCertificateSignature(this: *mut core::ffi::c_void, validatecertificatechain: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRequestPkcs7V2_Impl, - { + unsafe extern "system" fn CheckCertificateSignature(this: *mut core::ffi::c_void, validatecertificatechain: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRequestPkcs7V2_Impl::CheckCertificateSignature(this, core::mem::transmute_copy(&validatecertificatechain)).into() } @@ -12304,56 +9388,32 @@ pub trait IX509CertificateRevocationList_Impl: Sized + super::super::super::Syst impl windows_core::RuntimeName for IX509CertificateRevocationList {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRevocationList_Vtbl { - pub const fn new() -> IX509CertificateRevocationList_Vtbl - where - Identity: IX509CertificateRevocationList_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + pub const fn new() -> IX509CertificateRevocationList_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::Initialize(this).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, strencodeddata: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::InitializeDecode(this, core::mem::transmute(&strencodeddata), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn Encode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn Encode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::Encode(this).into() } - unsafe extern "system" fn ResetForEncode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn ResetForEncode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::ResetForEncode(this).into() } - unsafe extern "system" fn CheckPublicKeySignature(this: *mut core::ffi::c_void, ppublickey: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn CheckPublicKeySignature(this: *mut core::ffi::c_void, ppublickey: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::CheckPublicKeySignature(this, windows_core::from_raw_borrowed(&ppublickey)).into() } - unsafe extern "system" fn CheckSignature(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn CheckSignature(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::CheckSignature(this).into() } - unsafe extern "system" fn Issuer(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn Issuer(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::Issuer(this) { Ok(ok__) => { @@ -12363,17 +9423,11 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIssuer(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn SetIssuer(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::SetIssuer(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn ThisUpdate(this: *mut core::ffi::c_void, pvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn ThisUpdate(this: *mut core::ffi::c_void, pvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::ThisUpdate(this) { Ok(ok__) => { @@ -12383,17 +9437,11 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetThisUpdate(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn SetThisUpdate(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::SetThisUpdate(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn NextUpdate(this: *mut core::ffi::c_void, pvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn NextUpdate(this: *mut core::ffi::c_void, pvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::NextUpdate(this) { Ok(ok__) => { @@ -12403,17 +9451,11 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNextUpdate(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn SetNextUpdate(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::SetNextUpdate(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn X509CRLEntries(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn X509CRLEntries(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::X509CRLEntries(this) { Ok(ok__) => { @@ -12423,10 +9465,7 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn X509Extensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn X509Extensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::X509Extensions(this) { Ok(ok__) => { @@ -12436,10 +9475,7 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CriticalExtensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn CriticalExtensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::CriticalExtensions(this) { Ok(ok__) => { @@ -12449,10 +9485,7 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SignerCertificate(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn SignerCertificate(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::SignerCertificate(this) { Ok(ok__) => { @@ -12462,17 +9495,11 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::SetSignerCertificate(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn get_CRLNumber(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn get_CRLNumber(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::get_CRLNumber(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -12482,17 +9509,11 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_CRLNumber(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn put_CRLNumber(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::put_CRLNumber(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } - unsafe extern "system" fn CAVersion(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn CAVersion(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::CAVersion(this) { Ok(ok__) => { @@ -12502,17 +9523,11 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCAVersion(this: *mut core::ffi::c_void, pvalue: i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn SetCAVersion(this: *mut core::ffi::c_void, pvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::SetCAVersion(this, core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn BaseCRL(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn BaseCRL(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::BaseCRL(this) { Ok(ok__) => { @@ -12522,10 +9537,7 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NullSigned(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn NullSigned(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::NullSigned(this) { Ok(ok__) => { @@ -12535,10 +9547,7 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::HashAlgorithm(this) { Ok(ok__) => { @@ -12548,17 +9557,11 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::SetHashAlgorithm(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn AlternateSignatureAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn AlternateSignatureAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::AlternateSignatureAlgorithm(this) { Ok(ok__) => { @@ -12568,17 +9571,11 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlternateSignatureAlgorithm(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn SetAlternateSignatureAlgorithm(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationList_Impl::SetAlternateSignatureAlgorithm(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SignatureInformation(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn SignatureInformation(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::SignatureInformation(this) { Ok(ok__) => { @@ -12588,10 +9585,7 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::get_RawData(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -12601,10 +9595,7 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_RawDataToBeSigned(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn get_RawDataToBeSigned(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::get_RawDataToBeSigned(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -12614,10 +9605,7 @@ impl IX509CertificateRevocationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Signature(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationList_Impl, - { + unsafe extern "system" fn get_Signature(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationList_Impl::get_Signature(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -12681,14 +9669,8 @@ pub trait IX509CertificateRevocationListEntries_Impl: Sized + super::super::supe impl windows_core::RuntimeName for IX509CertificateRevocationListEntries {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRevocationListEntries_Vtbl { - pub const fn new() -> IX509CertificateRevocationListEntries_Vtbl - where - Identity: IX509CertificateRevocationListEntries_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntries_Impl, - { + pub const fn new() -> IX509CertificateRevocationListEntries_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationListEntries_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -12698,10 +9680,7 @@ impl IX509CertificateRevocationListEntries_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntries_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationListEntries_Impl::Count(this) { Ok(ok__) => { @@ -12711,10 +9690,7 @@ impl IX509CertificateRevocationListEntries_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntries_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationListEntries_Impl::_NewEnum(this) { Ok(ok__) => { @@ -12724,31 +9700,19 @@ impl IX509CertificateRevocationListEntries_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntries_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationListEntries_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntries_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationListEntries_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntries_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationListEntries_Impl::Clear(this).into() } - unsafe extern "system" fn get_IndexBySerialNumber(this: *mut core::ffi::c_void, encoding: EncodingType, serialnumber: core::mem::MaybeUninit, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntries_Impl, - { + unsafe extern "system" fn get_IndexBySerialNumber(this: *mut core::ffi::c_void, encoding: EncodingType, serialnumber: core::mem::MaybeUninit, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationListEntries_Impl::get_IndexBySerialNumber(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&serialnumber)) { Ok(ok__) => { @@ -12758,10 +9722,7 @@ impl IX509CertificateRevocationListEntries_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntries_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationListEntries_Impl::AddRange(this, windows_core::from_raw_borrowed(&pvalue)).into() } @@ -12795,21 +9756,12 @@ pub trait IX509CertificateRevocationListEntry_Impl: Sized + super::super::super: impl windows_core::RuntimeName for IX509CertificateRevocationListEntry {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRevocationListEntry_Vtbl { - pub const fn new() -> IX509CertificateRevocationListEntry_Vtbl - where - Identity: IX509CertificateRevocationListEntry_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, encoding: EncodingType, serialnumber: core::mem::MaybeUninit, revocationdate: f64) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntry_Impl, - { + pub const fn new() -> IX509CertificateRevocationListEntry_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, encoding: EncodingType, serialnumber: core::mem::MaybeUninit, revocationdate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationListEntry_Impl::Initialize(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&serialnumber), core::mem::transmute_copy(&revocationdate)).into() } - unsafe extern "system" fn get_SerialNumber(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntry_Impl, - { + unsafe extern "system" fn get_SerialNumber(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationListEntry_Impl::get_SerialNumber(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -12819,10 +9771,7 @@ impl IX509CertificateRevocationListEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RevocationDate(this: *mut core::ffi::c_void, pvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntry_Impl, - { + unsafe extern "system" fn RevocationDate(this: *mut core::ffi::c_void, pvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationListEntry_Impl::RevocationDate(this) { Ok(ok__) => { @@ -12832,10 +9781,7 @@ impl IX509CertificateRevocationListEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RevocationReason(this: *mut core::ffi::c_void, pvalue: *mut CRLRevocationReason) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntry_Impl, - { + unsafe extern "system" fn RevocationReason(this: *mut core::ffi::c_void, pvalue: *mut CRLRevocationReason) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationListEntry_Impl::RevocationReason(this) { Ok(ok__) => { @@ -12845,17 +9791,11 @@ impl IX509CertificateRevocationListEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRevocationReason(this: *mut core::ffi::c_void, value: CRLRevocationReason) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntry_Impl, - { + unsafe extern "system" fn SetRevocationReason(this: *mut core::ffi::c_void, value: CRLRevocationReason) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateRevocationListEntry_Impl::SetRevocationReason(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn X509Extensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntry_Impl, - { + unsafe extern "system" fn X509Extensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationListEntry_Impl::X509Extensions(this) { Ok(ok__) => { @@ -12865,10 +9805,7 @@ impl IX509CertificateRevocationListEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CriticalExtensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateRevocationListEntry_Impl, - { + unsafe extern "system" fn CriticalExtensions(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateRevocationListEntry_Impl::CriticalExtensions(this) { Ok(ok__) => { @@ -12901,14 +9838,8 @@ pub trait IX509CertificateTemplate_Impl: Sized + super::super::super::System::Co impl windows_core::RuntimeName for IX509CertificateTemplate {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateTemplate_Vtbl { - pub const fn new() -> IX509CertificateTemplate_Vtbl - where - Identity: IX509CertificateTemplate_Impl, - { - unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, property: EnrollmentTemplateProperty, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplate_Impl, - { + pub const fn new() -> IX509CertificateTemplate_Vtbl { + unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, property: EnrollmentTemplateProperty, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateTemplate_Impl::get_Property(this, core::mem::transmute_copy(&property)) { Ok(ok__) => { @@ -12936,28 +9867,16 @@ pub trait IX509CertificateTemplateWritable_Impl: Sized + super::super::super::Sy impl windows_core::RuntimeName for IX509CertificateTemplateWritable {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateTemplateWritable_Vtbl { - pub const fn new() -> IX509CertificateTemplateWritable_Vtbl - where - Identity: IX509CertificateTemplateWritable_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplateWritable_Impl, - { + pub const fn new() -> IX509CertificateTemplateWritable_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateTemplateWritable_Impl::Initialize(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, commitflags: CommitTemplateFlags, strservercontext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplateWritable_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, commitflags: CommitTemplateFlags, strservercontext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateTemplateWritable_Impl::Commit(this, core::mem::transmute_copy(&commitflags), core::mem::transmute(&strservercontext)).into() } - unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, property: EnrollmentTemplateProperty, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplateWritable_Impl, - { + unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, property: EnrollmentTemplateProperty, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateTemplateWritable_Impl::get_Property(this, core::mem::transmute_copy(&property)) { Ok(ok__) => { @@ -12967,17 +9886,11 @@ impl IX509CertificateTemplateWritable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Property(this: *mut core::ffi::c_void, property: EnrollmentTemplateProperty, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplateWritable_Impl, - { + unsafe extern "system" fn put_Property(this: *mut core::ffi::c_void, property: EnrollmentTemplateProperty, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateTemplateWritable_Impl::put_Property(this, core::mem::transmute_copy(&property), core::mem::transmute(&value)).into() } - unsafe extern "system" fn Template(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplateWritable_Impl, - { + unsafe extern "system" fn Template(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateTemplateWritable_Impl::Template(this) { Ok(ok__) => { @@ -13015,14 +9928,8 @@ pub trait IX509CertificateTemplates_Impl: Sized + super::super::super::System::C impl windows_core::RuntimeName for IX509CertificateTemplates {} #[cfg(feature = "Win32_System_Com")] impl IX509CertificateTemplates_Vtbl { - pub const fn new() -> IX509CertificateTemplates_Vtbl - where - Identity: IX509CertificateTemplates_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplates_Impl, - { + pub const fn new() -> IX509CertificateTemplates_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateTemplates_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -13032,10 +9939,7 @@ impl IX509CertificateTemplates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplates_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateTemplates_Impl::Count(this) { Ok(ok__) => { @@ -13045,10 +9949,7 @@ impl IX509CertificateTemplates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplates_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateTemplates_Impl::_NewEnum(this) { Ok(ok__) => { @@ -13058,31 +9959,19 @@ impl IX509CertificateTemplates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplates_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateTemplates_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplates_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateTemplates_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplates_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509CertificateTemplates_Impl::Clear(this).into() } - unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplates_Impl, - { + unsafe extern "system" fn get_ItemByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateTemplates_Impl::get_ItemByName(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -13092,10 +9981,7 @@ impl IX509CertificateTemplates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ItemByOid(this: *mut core::ffi::c_void, poid: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509CertificateTemplates_Impl, - { + unsafe extern "system" fn get_ItemByOid(this: *mut core::ffi::c_void, poid: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509CertificateTemplates_Impl::get_ItemByOid(this, windows_core::from_raw_borrowed(&poid)) { Ok(ok__) => { @@ -13139,14 +10025,8 @@ pub trait IX509EndorsementKey_Impl: Sized + super::super::super::System::Com::ID impl windows_core::RuntimeName for IX509EndorsementKey {} #[cfg(feature = "Win32_System_Com")] impl IX509EndorsementKey_Vtbl { - pub const fn new() -> IX509EndorsementKey_Vtbl - where - Identity: IX509EndorsementKey_Impl, - { - unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + pub const fn new() -> IX509EndorsementKey_Vtbl { + unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EndorsementKey_Impl::ProviderName(this) { Ok(ok__) => { @@ -13156,17 +10036,11 @@ impl IX509EndorsementKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + unsafe extern "system" fn SetProviderName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EndorsementKey_Impl::SetProviderName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EndorsementKey_Impl::Length(this) { Ok(ok__) => { @@ -13176,10 +10050,7 @@ impl IX509EndorsementKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Opened(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + unsafe extern "system" fn Opened(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EndorsementKey_Impl::Opened(this) { Ok(ok__) => { @@ -13189,24 +10060,15 @@ impl IX509EndorsementKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + unsafe extern "system" fn AddCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EndorsementKey_Impl::AddCertificate(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn RemoveCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + unsafe extern "system" fn RemoveCertificate(this: *mut core::ffi::c_void, encoding: EncodingType, strcertificate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EndorsementKey_Impl::RemoveCertificate(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn GetCertificateByIndex(this: *mut core::ffi::c_void, manufactureronly: super::super::super::Foundation::VARIANT_BOOL, dwindex: i32, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + unsafe extern "system" fn GetCertificateByIndex(this: *mut core::ffi::c_void, manufactureronly: super::super::super::Foundation::VARIANT_BOOL, dwindex: i32, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EndorsementKey_Impl::GetCertificateByIndex(this, core::mem::transmute_copy(&manufactureronly), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -13216,10 +10078,7 @@ impl IX509EndorsementKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateCount(this: *mut core::ffi::c_void, manufactureronly: super::super::super::Foundation::VARIANT_BOOL, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + unsafe extern "system" fn GetCertificateCount(this: *mut core::ffi::c_void, manufactureronly: super::super::super::Foundation::VARIANT_BOOL, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EndorsementKey_Impl::GetCertificateCount(this, core::mem::transmute_copy(&manufactureronly)) { Ok(ok__) => { @@ -13229,10 +10088,7 @@ impl IX509EndorsementKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExportPublicKey(this: *mut core::ffi::c_void, pppublickey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + unsafe extern "system" fn ExportPublicKey(this: *mut core::ffi::c_void, pppublickey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EndorsementKey_Impl::ExportPublicKey(this) { Ok(ok__) => { @@ -13242,17 +10098,11 @@ impl IX509EndorsementKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EndorsementKey_Impl::Open(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509EndorsementKey_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EndorsementKey_Impl::Close(this).into() } @@ -13305,35 +10155,20 @@ pub trait IX509Enrollment_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IX509Enrollment {} #[cfg(feature = "Win32_System_Com")] impl IX509Enrollment_Vtbl { - pub const fn new() -> IX509Enrollment_Vtbl - where - Identity: IX509Enrollment_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + pub const fn new() -> IX509Enrollment_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment_Impl::Initialize(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn InitializeFromTemplateName(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn InitializeFromTemplateName(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment_Impl::InitializeFromTemplateName(this, core::mem::transmute_copy(&context), core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeFromRequest(this: *mut core::ffi::c_void, prequest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn InitializeFromRequest(this: *mut core::ffi::c_void, prequest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment_Impl::InitializeFromRequest(this, windows_core::from_raw_borrowed(&prequest)).into() } - unsafe extern "system" fn CreateRequest(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn CreateRequest(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::CreateRequest(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -13343,24 +10178,15 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enroll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn Enroll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment_Impl::Enroll(this).into() } - unsafe extern "system" fn InstallResponse(this: *mut core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: core::mem::MaybeUninit, encoding: EncodingType, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn InstallResponse(this: *mut core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: core::mem::MaybeUninit, encoding: EncodingType, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment_Impl::InstallResponse(this, core::mem::transmute_copy(&restrictions), core::mem::transmute(&strresponse), core::mem::transmute_copy(&encoding), core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn CreatePFX(this: *mut core::ffi::c_void, strpassword: core::mem::MaybeUninit, exportoptions: PFXExportOptions, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn CreatePFX(this: *mut core::ffi::c_void, strpassword: core::mem::MaybeUninit, exportoptions: PFXExportOptions, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::CreatePFX(this, core::mem::transmute(&strpassword), core::mem::transmute_copy(&exportoptions), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -13370,10 +10196,7 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Request(this: *mut core::ffi::c_void, pvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn Request(this: *mut core::ffi::c_void, pvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::Request(this) { Ok(ok__) => { @@ -13383,10 +10206,7 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::Silent(this) { Ok(ok__) => { @@ -13396,17 +10216,11 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment_Impl::SetSilent(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ParentWindow(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn ParentWindow(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::ParentWindow(this) { Ok(ok__) => { @@ -13416,17 +10230,11 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParentWindow(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn SetParentWindow(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment_Impl::SetParentWindow(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn NameValuePairs(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn NameValuePairs(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::NameValuePairs(this) { Ok(ok__) => { @@ -13436,10 +10244,7 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnrollmentContext(this: *mut core::ffi::c_void, pvalue: *mut X509CertificateEnrollmentContext) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn EnrollmentContext(this: *mut core::ffi::c_void, pvalue: *mut X509CertificateEnrollmentContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::EnrollmentContext(this) { Ok(ok__) => { @@ -13449,10 +10254,7 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::Status(this) { Ok(ok__) => { @@ -13462,10 +10264,7 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Certificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn get_Certificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::get_Certificate(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -13475,10 +10274,7 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Response(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn get_Response(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::get_Response(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -13488,10 +10284,7 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CertificateFriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn CertificateFriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::CertificateFriendlyName(this) { Ok(ok__) => { @@ -13501,17 +10294,11 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateFriendlyName(this: *mut core::ffi::c_void, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn SetCertificateFriendlyName(this: *mut core::ffi::c_void, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment_Impl::SetCertificateFriendlyName(this, core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn CertificateDescription(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn CertificateDescription(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::CertificateDescription(this) { Ok(ok__) => { @@ -13521,17 +10308,11 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateDescription(this: *mut core::ffi::c_void, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn SetCertificateDescription(this: *mut core::ffi::c_void, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment_Impl::SetCertificateDescription(this, core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn RequestId(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn RequestId(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::RequestId(this) { Ok(ok__) => { @@ -13541,10 +10322,7 @@ impl IX509Enrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CAConfigString(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment_Impl, - { + unsafe extern "system" fn CAConfigString(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment_Impl::CAConfigString(this) { Ok(ok__) => { @@ -13597,28 +10375,16 @@ pub trait IX509Enrollment2_Impl: Sized + IX509Enrollment_Impl { impl windows_core::RuntimeName for IX509Enrollment2 {} #[cfg(feature = "Win32_System_Com")] impl IX509Enrollment2_Vtbl { - pub const fn new() -> IX509Enrollment2_Vtbl - where - Identity: IX509Enrollment2_Impl, - { - unsafe extern "system" fn InitializeFromTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Enrollment2_Impl, - { + pub const fn new() -> IX509Enrollment2_Vtbl { + unsafe extern "system" fn InitializeFromTemplate(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment2_Impl::InitializeFromTemplate(this, core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&ppolicyserver), windows_core::from_raw_borrowed(&ptemplate)).into() } - unsafe extern "system" fn InstallResponse2(this: *mut core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: core::mem::MaybeUninit, encoding: EncodingType, strpassword: core::mem::MaybeUninit, strenrollmentpolicyserverurl: core::mem::MaybeUninit, strenrollmentpolicyserverid: core::mem::MaybeUninit, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> windows_core::HRESULT - where - Identity: IX509Enrollment2_Impl, - { + unsafe extern "system" fn InstallResponse2(this: *mut core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: core::mem::MaybeUninit, encoding: EncodingType, strpassword: core::mem::MaybeUninit, strenrollmentpolicyserverurl: core::mem::MaybeUninit, strenrollmentpolicyserverid: core::mem::MaybeUninit, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Enrollment2_Impl::InstallResponse2(this, 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() } - unsafe extern "system" fn PolicyServer(this: *mut core::ffi::c_void, pppolicyserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Enrollment2_Impl, - { + unsafe extern "system" fn PolicyServer(this: *mut core::ffi::c_void, pppolicyserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment2_Impl::PolicyServer(this) { Ok(ok__) => { @@ -13628,10 +10394,7 @@ impl IX509Enrollment2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Template(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Enrollment2_Impl, - { + unsafe extern "system" fn Template(this: *mut core::ffi::c_void, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment2_Impl::Template(this) { Ok(ok__) => { @@ -13641,10 +10404,7 @@ impl IX509Enrollment2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestIdString(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Enrollment2_Impl, - { + unsafe extern "system" fn RequestIdString(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Enrollment2_Impl::RequestIdString(this) { Ok(ok__) => { @@ -13678,28 +10438,16 @@ pub trait IX509EnrollmentHelper_Impl: Sized + super::super::super::System::Com:: impl windows_core::RuntimeName for IX509EnrollmentHelper {} #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentHelper_Vtbl { - pub const fn new() -> IX509EnrollmentHelper_Vtbl - where - Identity: IX509EnrollmentHelper_Impl, - { - unsafe extern "system" fn AddPolicyServer(this: *mut core::ffi::c_void, strenrollmentpolicyserveruri: core::mem::MaybeUninit, strenrollmentpolicyid: core::mem::MaybeUninit, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentHelper_Impl, - { + pub const fn new() -> IX509EnrollmentHelper_Vtbl { + unsafe extern "system" fn AddPolicyServer(this: *mut core::ffi::c_void, strenrollmentpolicyserveruri: core::mem::MaybeUninit, strenrollmentpolicyid: core::mem::MaybeUninit, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentHelper_Impl::AddPolicyServer(this, 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(this: *mut core::ffi::c_void, strenrollmentserveruri: core::mem::MaybeUninit, authflags: X509EnrollmentAuthFlags, strcredential: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentHelper_Impl, - { + unsafe extern "system" fn AddEnrollmentServer(this: *mut core::ffi::c_void, strenrollmentserveruri: core::mem::MaybeUninit, authflags: X509EnrollmentAuthFlags, strcredential: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentHelper_Impl::AddEnrollmentServer(this, core::mem::transmute(&strenrollmentserveruri), core::mem::transmute_copy(&authflags), core::mem::transmute(&strcredential), core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn Enroll(this: *mut core::ffi::c_void, strenrollmentpolicyserveruri: core::mem::MaybeUninit, strtemplatename: core::mem::MaybeUninit, encoding: EncodingType, enrollflags: WebEnrollmentFlags, pstrcertificate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentHelper_Impl, - { + unsafe extern "system" fn Enroll(this: *mut core::ffi::c_void, strenrollmentpolicyserveruri: core::mem::MaybeUninit, strtemplatename: core::mem::MaybeUninit, encoding: EncodingType, enrollflags: WebEnrollmentFlags, pstrcertificate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentHelper_Impl::Enroll(this, core::mem::transmute(&strenrollmentpolicyserveruri), core::mem::transmute(&strtemplatename), core::mem::transmute_copy(&encoding), core::mem::transmute_copy(&enrollflags)) { Ok(ok__) => { @@ -13709,10 +10457,7 @@ impl IX509EnrollmentHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT - where - Identity: IX509EnrollmentHelper_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentHelper_Impl::Initialize(this, core::mem::transmute_copy(&context)).into() } @@ -13759,28 +10504,16 @@ pub trait IX509EnrollmentPolicyServer_Impl: Sized + super::super::super::System: impl windows_core::RuntimeName for IX509EnrollmentPolicyServer {} #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentPolicyServer_Vtbl { - pub const fn new() -> IX509EnrollmentPolicyServer_Vtbl - where - Identity: IX509EnrollmentPolicyServer_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, bstrpolicyserverurl: core::mem::MaybeUninit, bstrpolicyserverid: core::mem::MaybeUninit, authflags: X509EnrollmentAuthFlags, fisuntrusted: super::super::super::Foundation::VARIANT_BOOL, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + pub const fn new() -> IX509EnrollmentPolicyServer_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, bstrpolicyserverurl: core::mem::MaybeUninit, bstrpolicyserverid: core::mem::MaybeUninit, authflags: X509EnrollmentAuthFlags, fisuntrusted: super::super::super::Foundation::VARIANT_BOOL, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentPolicyServer_Impl::Initialize(this, core::mem::transmute(&bstrpolicyserverurl), core::mem::transmute(&bstrpolicyserverid), core::mem::transmute_copy(&authflags), core::mem::transmute_copy(&fisuntrusted), core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn LoadPolicy(this: *mut core::ffi::c_void, option: X509EnrollmentPolicyLoadOption) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn LoadPolicy(this: *mut core::ffi::c_void, option: X509EnrollmentPolicyLoadOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentPolicyServer_Impl::LoadPolicy(this, core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn GetTemplates(this: *mut core::ffi::c_void, ptemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetTemplates(this: *mut core::ffi::c_void, ptemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetTemplates(this) { Ok(ok__) => { @@ -13790,10 +10523,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAsForTemplate(this: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void, ppcas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetCAsForTemplate(this: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void, ppcas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetCAsForTemplate(this, windows_core::from_raw_borrowed(&ptemplate)) { Ok(ok__) => { @@ -13803,10 +10533,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCAs(this: *mut core::ffi::c_void, ppcas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetCAs(this: *mut core::ffi::c_void, ppcas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetCAs(this) { Ok(ok__) => { @@ -13816,17 +10543,11 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Validate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn Validate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentPolicyServer_Impl::Validate(this).into() } - unsafe extern "system" fn GetCustomOids(this: *mut core::ffi::c_void, ppobjectids: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetCustomOids(this: *mut core::ffi::c_void, ppobjectids: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetCustomOids(this) { Ok(ok__) => { @@ -13836,10 +10557,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextUpdateTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetNextUpdateTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetNextUpdateTime(this) { Ok(ok__) => { @@ -13849,10 +10567,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastUpdateTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetLastUpdateTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetLastUpdateTime(this) { Ok(ok__) => { @@ -13862,10 +10577,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPolicyServerUrl(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetPolicyServerUrl(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetPolicyServerUrl(this) { Ok(ok__) => { @@ -13875,10 +10587,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPolicyServerId(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetPolicyServerId(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetPolicyServerId(this) { Ok(ok__) => { @@ -13888,10 +10597,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetFriendlyName(this) { Ok(ok__) => { @@ -13901,10 +10607,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIsDefaultCEP(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetIsDefaultCEP(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetIsDefaultCEP(this) { Ok(ok__) => { @@ -13914,10 +10617,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUseClientId(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetUseClientId(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetUseClientId(this) { Ok(ok__) => { @@ -13927,10 +10627,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllowUnTrustedCA(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetAllowUnTrustedCA(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetAllowUnTrustedCA(this) { Ok(ok__) => { @@ -13940,10 +10637,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachePath(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetCachePath(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetCachePath(this) { Ok(ok__) => { @@ -13953,10 +10647,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCacheDir(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetCacheDir(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetCacheDir(this) { Ok(ok__) => { @@ -13966,10 +10657,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAuthFlags(this: *mut core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn GetAuthFlags(this: *mut core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::GetAuthFlags(this) { Ok(ok__) => { @@ -13979,17 +10667,11 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCredential(this: *mut core::ffi::c_void, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn SetCredential(this: *mut core::ffi::c_void, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentPolicyServer_Impl::SetCredential(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&flag), core::mem::transmute(&strcredential), core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn QueryChanges(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn QueryChanges(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::QueryChanges(this) { Ok(ok__) => { @@ -13999,17 +10681,11 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeImport(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn InitializeImport(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentPolicyServer_Impl::InitializeImport(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn Export(this: *mut core::ffi::c_void, exportflags: X509EnrollmentPolicyExportFlags, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn Export(this: *mut core::ffi::c_void, exportflags: X509EnrollmentPolicyExportFlags, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::Export(this, core::mem::transmute_copy(&exportflags)) { Ok(ok__) => { @@ -14019,10 +10695,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cost(this: *mut core::ffi::c_void, pvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn Cost(this: *mut core::ffi::c_void, pvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentPolicyServer_Impl::Cost(this) { Ok(ok__) => { @@ -14032,10 +10705,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCost(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: IX509EnrollmentPolicyServer_Impl, - { + unsafe extern "system" fn SetCost(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentPolicyServer_Impl::SetCost(this, core::mem::transmute_copy(&value)).into() } @@ -14090,21 +10760,12 @@ pub trait IX509EnrollmentStatus_Impl: Sized + super::super::super::System::Com:: impl windows_core::RuntimeName for IX509EnrollmentStatus {} #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentStatus_Vtbl { - pub const fn new() -> IX509EnrollmentStatus_Vtbl - where - Identity: IX509EnrollmentStatus_Impl, - { - unsafe extern "system" fn AppendText(this: *mut core::ffi::c_void, strtext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + pub const fn new() -> IX509EnrollmentStatus_Vtbl { + unsafe extern "system" fn AppendText(this: *mut core::ffi::c_void, strtext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentStatus_Impl::AppendText(this, core::mem::transmute(&strtext)).into() } - unsafe extern "system" fn Text(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn Text(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentStatus_Impl::Text(this) { Ok(ok__) => { @@ -14114,17 +10775,11 @@ impl IX509EnrollmentStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentStatus_Impl::SetText(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Selected(this: *mut core::ffi::c_void, pvalue: *mut EnrollmentSelectionStatus) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn Selected(this: *mut core::ffi::c_void, pvalue: *mut EnrollmentSelectionStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentStatus_Impl::Selected(this) { Ok(ok__) => { @@ -14134,17 +10789,11 @@ impl IX509EnrollmentStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelected(this: *mut core::ffi::c_void, value: EnrollmentSelectionStatus) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn SetSelected(this: *mut core::ffi::c_void, value: EnrollmentSelectionStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentStatus_Impl::SetSelected(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Display(this: *mut core::ffi::c_void, pvalue: *mut EnrollmentDisplayStatus) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn Display(this: *mut core::ffi::c_void, pvalue: *mut EnrollmentDisplayStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentStatus_Impl::Display(this) { Ok(ok__) => { @@ -14154,17 +10803,11 @@ impl IX509EnrollmentStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplay(this: *mut core::ffi::c_void, value: EnrollmentDisplayStatus) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn SetDisplay(this: *mut core::ffi::c_void, value: EnrollmentDisplayStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentStatus_Impl::SetDisplay(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pvalue: *mut EnrollmentEnrollStatus) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pvalue: *mut EnrollmentEnrollStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentStatus_Impl::Status(this) { Ok(ok__) => { @@ -14174,17 +10817,11 @@ impl IX509EnrollmentStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, value: EnrollmentEnrollStatus) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, value: EnrollmentEnrollStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentStatus_Impl::SetStatus(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, pvalue: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, pvalue: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentStatus_Impl::Error(this) { Ok(ok__) => { @@ -14194,17 +10831,11 @@ impl IX509EnrollmentStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetError(this: *mut core::ffi::c_void, value: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn SetError(this: *mut core::ffi::c_void, value: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509EnrollmentStatus_Impl::SetError(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ErrorText(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509EnrollmentStatus_Impl, - { + unsafe extern "system" fn ErrorText(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentStatus_Impl::ErrorText(this) { Ok(ok__) => { @@ -14242,14 +10873,8 @@ pub trait IX509EnrollmentWebClassFactory_Impl: Sized + super::super::super::Syst impl windows_core::RuntimeName for IX509EnrollmentWebClassFactory {} #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentWebClassFactory_Vtbl { - pub const fn new() -> IX509EnrollmentWebClassFactory_Vtbl - where - Identity: IX509EnrollmentWebClassFactory_Impl, - { - unsafe extern "system" fn CreateObject(this: *mut core::ffi::c_void, strprogid: core::mem::MaybeUninit, ppiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509EnrollmentWebClassFactory_Impl, - { + pub const fn new() -> IX509EnrollmentWebClassFactory_Vtbl { + unsafe extern "system" fn CreateObject(this: *mut core::ffi::c_void, strprogid: core::mem::MaybeUninit, ppiunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509EnrollmentWebClassFactory_Impl::CreateObject(this, core::mem::transmute(&strprogid)) { Ok(ok__) => { @@ -14277,21 +10902,12 @@ pub trait IX509Extension_Impl: Sized + super::super::super::System::Com::IDispat impl windows_core::RuntimeName for IX509Extension {} #[cfg(feature = "Win32_System_Com")] impl IX509Extension_Vtbl { - pub const fn new() -> IX509Extension_Vtbl - where - Identity: IX509Extension_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Extension_Impl, - { + pub const fn new() -> IX509Extension_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Extension_Impl::Initialize(this, windows_core::from_raw_borrowed(&pobjectid), core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Extension_Impl, - { + unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Extension_Impl::ObjectId(this) { Ok(ok__) => { @@ -14301,10 +10917,7 @@ impl IX509Extension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509Extension_Impl, - { + unsafe extern "system" fn get_RawData(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Extension_Impl::get_RawData(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -14314,10 +10927,7 @@ impl IX509Extension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Critical(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509Extension_Impl, - { + unsafe extern "system" fn Critical(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Extension_Impl::Critical(this) { Ok(ok__) => { @@ -14327,10 +10937,7 @@ impl IX509Extension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCritical(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509Extension_Impl, - { + unsafe extern "system" fn SetCritical(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Extension_Impl::SetCritical(this, core::mem::transmute_copy(&value)).into() } @@ -14357,28 +10964,16 @@ pub trait IX509ExtensionAlternativeNames_Impl: Sized + IX509Extension_Impl { impl windows_core::RuntimeName for IX509ExtensionAlternativeNames {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionAlternativeNames_Vtbl { - pub const fn new() -> IX509ExtensionAlternativeNames_Vtbl - where - Identity: IX509ExtensionAlternativeNames_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionAlternativeNames_Impl, - { + pub const fn new() -> IX509ExtensionAlternativeNames_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionAlternativeNames_Impl::InitializeEncode(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionAlternativeNames_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionAlternativeNames_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn AlternativeNames(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionAlternativeNames_Impl, - { + unsafe extern "system" fn AlternativeNames(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionAlternativeNames_Impl::AlternativeNames(this) { Ok(ok__) => { @@ -14409,28 +11004,16 @@ pub trait IX509ExtensionAuthorityKeyIdentifier_Impl: Sized + IX509Extension_Impl impl windows_core::RuntimeName for IX509ExtensionAuthorityKeyIdentifier {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionAuthorityKeyIdentifier_Vtbl { - pub const fn new() -> IX509ExtensionAuthorityKeyIdentifier_Vtbl - where - Identity: IX509ExtensionAuthorityKeyIdentifier_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, encoding: EncodingType, strkeyidentifier: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionAuthorityKeyIdentifier_Impl, - { + pub const fn new() -> IX509ExtensionAuthorityKeyIdentifier_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, encoding: EncodingType, strkeyidentifier: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionAuthorityKeyIdentifier_Impl::InitializeEncode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strkeyidentifier)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionAuthorityKeyIdentifier_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionAuthorityKeyIdentifier_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn get_AuthorityKeyIdentifier(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionAuthorityKeyIdentifier_Impl, - { + unsafe extern "system" fn get_AuthorityKeyIdentifier(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionAuthorityKeyIdentifier_Impl::get_AuthorityKeyIdentifier(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -14462,28 +11045,16 @@ pub trait IX509ExtensionBasicConstraints_Impl: Sized + IX509Extension_Impl { impl windows_core::RuntimeName for IX509ExtensionBasicConstraints {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionBasicConstraints_Vtbl { - pub const fn new() -> IX509ExtensionBasicConstraints_Vtbl - where - Identity: IX509ExtensionBasicConstraints_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, isca: super::super::super::Foundation::VARIANT_BOOL, pathlenconstraint: i32) -> windows_core::HRESULT - where - Identity: IX509ExtensionBasicConstraints_Impl, - { + pub const fn new() -> IX509ExtensionBasicConstraints_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, isca: super::super::super::Foundation::VARIANT_BOOL, pathlenconstraint: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionBasicConstraints_Impl::InitializeEncode(this, core::mem::transmute_copy(&isca), core::mem::transmute_copy(&pathlenconstraint)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionBasicConstraints_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionBasicConstraints_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn IsCA(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509ExtensionBasicConstraints_Impl, - { + unsafe extern "system" fn IsCA(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionBasicConstraints_Impl::IsCA(this) { Ok(ok__) => { @@ -14493,10 +11064,7 @@ impl IX509ExtensionBasicConstraints_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PathLenConstraint(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509ExtensionBasicConstraints_Impl, - { + unsafe extern "system" fn PathLenConstraint(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionBasicConstraints_Impl::PathLenConstraint(this) { Ok(ok__) => { @@ -14528,28 +11096,16 @@ pub trait IX509ExtensionCertificatePolicies_Impl: Sized + IX509Extension_Impl { impl windows_core::RuntimeName for IX509ExtensionCertificatePolicies {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionCertificatePolicies_Vtbl { - pub const fn new() -> IX509ExtensionCertificatePolicies_Vtbl - where - Identity: IX509ExtensionCertificatePolicies_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionCertificatePolicies_Impl, - { + pub const fn new() -> IX509ExtensionCertificatePolicies_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionCertificatePolicies_Impl::InitializeEncode(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionCertificatePolicies_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionCertificatePolicies_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn Policies(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionCertificatePolicies_Impl, - { + unsafe extern "system" fn Policies(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionCertificatePolicies_Impl::Policies(this) { Ok(ok__) => { @@ -14580,28 +11136,16 @@ pub trait IX509ExtensionEnhancedKeyUsage_Impl: Sized + IX509Extension_Impl { impl windows_core::RuntimeName for IX509ExtensionEnhancedKeyUsage {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionEnhancedKeyUsage_Vtbl { - pub const fn new() -> IX509ExtensionEnhancedKeyUsage_Vtbl - where - Identity: IX509ExtensionEnhancedKeyUsage_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionEnhancedKeyUsage_Impl, - { + pub const fn new() -> IX509ExtensionEnhancedKeyUsage_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionEnhancedKeyUsage_Impl::InitializeEncode(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionEnhancedKeyUsage_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionEnhancedKeyUsage_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn EnhancedKeyUsage(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionEnhancedKeyUsage_Impl, - { + unsafe extern "system" fn EnhancedKeyUsage(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionEnhancedKeyUsage_Impl::EnhancedKeyUsage(this) { Ok(ok__) => { @@ -14632,28 +11176,16 @@ pub trait IX509ExtensionKeyUsage_Impl: Sized + IX509Extension_Impl { impl windows_core::RuntimeName for IX509ExtensionKeyUsage {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionKeyUsage_Vtbl { - pub const fn new() -> IX509ExtensionKeyUsage_Vtbl - where - Identity: IX509ExtensionKeyUsage_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, usageflags: X509KeyUsageFlags) -> windows_core::HRESULT - where - Identity: IX509ExtensionKeyUsage_Impl, - { + pub const fn new() -> IX509ExtensionKeyUsage_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, usageflags: X509KeyUsageFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionKeyUsage_Impl::InitializeEncode(this, core::mem::transmute_copy(&usageflags)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionKeyUsage_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionKeyUsage_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn KeyUsage(this: *mut core::ffi::c_void, pvalue: *mut X509KeyUsageFlags) -> windows_core::HRESULT - where - Identity: IX509ExtensionKeyUsage_Impl, - { + unsafe extern "system" fn KeyUsage(this: *mut core::ffi::c_void, pvalue: *mut X509KeyUsageFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionKeyUsage_Impl::KeyUsage(this) { Ok(ok__) => { @@ -14684,28 +11216,16 @@ pub trait IX509ExtensionMSApplicationPolicies_Impl: Sized + IX509Extension_Impl impl windows_core::RuntimeName for IX509ExtensionMSApplicationPolicies {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionMSApplicationPolicies_Vtbl { - pub const fn new() -> IX509ExtensionMSApplicationPolicies_Vtbl - where - Identity: IX509ExtensionMSApplicationPolicies_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionMSApplicationPolicies_Impl, - { + pub const fn new() -> IX509ExtensionMSApplicationPolicies_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionMSApplicationPolicies_Impl::InitializeEncode(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionMSApplicationPolicies_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionMSApplicationPolicies_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn Policies(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionMSApplicationPolicies_Impl, - { + unsafe extern "system" fn Policies(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionMSApplicationPolicies_Impl::Policies(this) { Ok(ok__) => { @@ -14736,28 +11256,16 @@ pub trait IX509ExtensionSmimeCapabilities_Impl: Sized + IX509Extension_Impl { impl windows_core::RuntimeName for IX509ExtensionSmimeCapabilities {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionSmimeCapabilities_Vtbl { - pub const fn new() -> IX509ExtensionSmimeCapabilities_Vtbl - where - Identity: IX509ExtensionSmimeCapabilities_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionSmimeCapabilities_Impl, - { + pub const fn new() -> IX509ExtensionSmimeCapabilities_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionSmimeCapabilities_Impl::InitializeEncode(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionSmimeCapabilities_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionSmimeCapabilities_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn SmimeCapabilities(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionSmimeCapabilities_Impl, - { + unsafe extern "system" fn SmimeCapabilities(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionSmimeCapabilities_Impl::SmimeCapabilities(this) { Ok(ok__) => { @@ -14788,28 +11296,16 @@ pub trait IX509ExtensionSubjectKeyIdentifier_Impl: Sized + IX509Extension_Impl { impl windows_core::RuntimeName for IX509ExtensionSubjectKeyIdentifier {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionSubjectKeyIdentifier_Vtbl { - pub const fn new() -> IX509ExtensionSubjectKeyIdentifier_Vtbl - where - Identity: IX509ExtensionSubjectKeyIdentifier_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, encoding: EncodingType, strkeyidentifier: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionSubjectKeyIdentifier_Impl, - { + pub const fn new() -> IX509ExtensionSubjectKeyIdentifier_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, encoding: EncodingType, strkeyidentifier: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionSubjectKeyIdentifier_Impl::InitializeEncode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strkeyidentifier)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionSubjectKeyIdentifier_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionSubjectKeyIdentifier_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn get_SubjectKeyIdentifier(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionSubjectKeyIdentifier_Impl, - { + unsafe extern "system" fn get_SubjectKeyIdentifier(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionSubjectKeyIdentifier_Impl::get_SubjectKeyIdentifier(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -14842,28 +11338,16 @@ pub trait IX509ExtensionTemplate_Impl: Sized + IX509Extension_Impl { impl windows_core::RuntimeName for IX509ExtensionTemplate {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionTemplate_Vtbl { - pub const fn new() -> IX509ExtensionTemplate_Vtbl - where - Identity: IX509ExtensionTemplate_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, ptemplateoid: *mut core::ffi::c_void, majorversion: i32, minorversion: i32) -> windows_core::HRESULT - where - Identity: IX509ExtensionTemplate_Impl, - { + pub const fn new() -> IX509ExtensionTemplate_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, ptemplateoid: *mut core::ffi::c_void, majorversion: i32, minorversion: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionTemplate_Impl::InitializeEncode(this, windows_core::from_raw_borrowed(&ptemplateoid), core::mem::transmute_copy(&majorversion), core::mem::transmute_copy(&minorversion)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionTemplate_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionTemplate_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn TemplateOid(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509ExtensionTemplate_Impl, - { + unsafe extern "system" fn TemplateOid(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionTemplate_Impl::TemplateOid(this) { Ok(ok__) => { @@ -14873,10 +11357,7 @@ impl IX509ExtensionTemplate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509ExtensionTemplate_Impl, - { + unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionTemplate_Impl::MajorVersion(this) { Ok(ok__) => { @@ -14886,10 +11367,7 @@ impl IX509ExtensionTemplate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509ExtensionTemplate_Impl, - { + unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionTemplate_Impl::MinorVersion(this) { Ok(ok__) => { @@ -14922,28 +11400,16 @@ pub trait IX509ExtensionTemplateName_Impl: Sized + IX509Extension_Impl { impl windows_core::RuntimeName for IX509ExtensionTemplateName {} #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionTemplateName_Vtbl { - pub const fn new() -> IX509ExtensionTemplateName_Vtbl - where - Identity: IX509ExtensionTemplateName_Impl, - { - unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionTemplateName_Impl, - { + pub const fn new() -> IX509ExtensionTemplateName_Vtbl { + unsafe extern "system" fn InitializeEncode(this: *mut core::ffi::c_void, strtemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionTemplateName_Impl::InitializeEncode(this, core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionTemplateName_Impl, - { + unsafe extern "system" fn InitializeDecode(this: *mut core::ffi::c_void, encoding: EncodingType, strencodeddata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509ExtensionTemplateName_Impl::InitializeDecode(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn TemplateName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509ExtensionTemplateName_Impl, - { + unsafe extern "system" fn TemplateName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509ExtensionTemplateName_Impl::TemplateName(this) { Ok(ok__) => { @@ -14979,14 +11445,8 @@ pub trait IX509Extensions_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IX509Extensions {} #[cfg(feature = "Win32_System_Com")] impl IX509Extensions_Vtbl { - pub const fn new() -> IX509Extensions_Vtbl - where - Identity: IX509Extensions_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Extensions_Impl, - { + pub const fn new() -> IX509Extensions_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Extensions_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -14996,10 +11456,7 @@ impl IX509Extensions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IX509Extensions_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Extensions_Impl::Count(this) { Ok(ok__) => { @@ -15009,10 +11466,7 @@ impl IX509Extensions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Extensions_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Extensions_Impl::_NewEnum(this) { Ok(ok__) => { @@ -15022,31 +11476,19 @@ impl IX509Extensions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Extensions_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Extensions_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IX509Extensions_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Extensions_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Extensions_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Extensions_Impl::Clear(this).into() } - unsafe extern "system" fn get_IndexByObjectId(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: IX509Extensions_Impl, - { + unsafe extern "system" fn get_IndexByObjectId(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509Extensions_Impl::get_IndexByObjectId(this, windows_core::from_raw_borrowed(&pobjectid)) { Ok(ok__) => { @@ -15056,10 +11498,7 @@ impl IX509Extensions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509Extensions_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509Extensions_Impl::AddRange(this, windows_core::from_raw_borrowed(&pvalue)).into() } @@ -15087,14 +11526,8 @@ pub trait IX509MachineEnrollmentFactory_Impl: Sized + super::super::super::Syste impl windows_core::RuntimeName for IX509MachineEnrollmentFactory {} #[cfg(feature = "Win32_System_Com")] impl IX509MachineEnrollmentFactory_Vtbl { - pub const fn new() -> IX509MachineEnrollmentFactory_Vtbl - where - Identity: IX509MachineEnrollmentFactory_Impl, - { - unsafe extern "system" fn CreateObject(this: *mut core::ffi::c_void, strprogid: core::mem::MaybeUninit, ppihelper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509MachineEnrollmentFactory_Impl, - { + pub const fn new() -> IX509MachineEnrollmentFactory_Vtbl { + unsafe extern "system" fn CreateObject(this: *mut core::ffi::c_void, strprogid: core::mem::MaybeUninit, ppihelper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509MachineEnrollmentFactory_Impl::CreateObject(this, core::mem::transmute(&strprogid)) { Ok(ok__) => { @@ -15120,21 +11553,12 @@ pub trait IX509NameValuePair_Impl: Sized + super::super::super::System::Com::IDi impl windows_core::RuntimeName for IX509NameValuePair {} #[cfg(feature = "Win32_System_Com")] impl IX509NameValuePair_Vtbl { - pub const fn new() -> IX509NameValuePair_Vtbl - where - Identity: IX509NameValuePair_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509NameValuePair_Impl, - { + pub const fn new() -> IX509NameValuePair_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509NameValuePair_Impl::Initialize(this, core::mem::transmute(&strname), core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509NameValuePair_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509NameValuePair_Impl::Value(this) { Ok(ok__) => { @@ -15144,10 +11568,7 @@ impl IX509NameValuePair_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509NameValuePair_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509NameValuePair_Impl::Name(this) { Ok(ok__) => { @@ -15181,14 +11602,8 @@ pub trait IX509NameValuePairs_Impl: Sized + super::super::super::System::Com::ID impl windows_core::RuntimeName for IX509NameValuePairs {} #[cfg(feature = "Win32_System_Com")] impl IX509NameValuePairs_Vtbl { - pub const fn new() -> IX509NameValuePairs_Vtbl - where - Identity: IX509NameValuePairs_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509NameValuePairs_Impl, - { + pub const fn new() -> IX509NameValuePairs_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509NameValuePairs_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -15198,10 +11613,7 @@ impl IX509NameValuePairs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IX509NameValuePairs_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509NameValuePairs_Impl::Count(this) { Ok(ok__) => { @@ -15211,10 +11623,7 @@ impl IX509NameValuePairs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509NameValuePairs_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509NameValuePairs_Impl::_NewEnum(this) { Ok(ok__) => { @@ -15224,24 +11633,15 @@ impl IX509NameValuePairs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509NameValuePairs_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509NameValuePairs_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IX509NameValuePairs_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509NameValuePairs_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509NameValuePairs_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509NameValuePairs_Impl::Clear(this).into() } @@ -15273,14 +11673,8 @@ pub trait IX509PolicyServerListManager_Impl: Sized + super::super::super::System impl windows_core::RuntimeName for IX509PolicyServerListManager {} #[cfg(feature = "Win32_System_Com")] impl IX509PolicyServerListManager_Vtbl { - pub const fn new() -> IX509PolicyServerListManager_Vtbl - where - Identity: IX509PolicyServerListManager_Impl, - { - unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PolicyServerListManager_Impl, - { + pub const fn new() -> IX509PolicyServerListManager_Vtbl { + unsafe extern "system" fn get_ItemByIndex(this: *mut core::ffi::c_void, index: i32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PolicyServerListManager_Impl::get_ItemByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -15290,10 +11684,7 @@ impl IX509PolicyServerListManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IX509PolicyServerListManager_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PolicyServerListManager_Impl::Count(this) { Ok(ok__) => { @@ -15303,10 +11694,7 @@ impl IX509PolicyServerListManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PolicyServerListManager_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PolicyServerListManager_Impl::_NewEnum(this) { Ok(ok__) => { @@ -15316,31 +11704,19 @@ impl IX509PolicyServerListManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PolicyServerListManager_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerListManager_Impl::Add(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IX509PolicyServerListManager_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerListManager_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PolicyServerListManager_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerListManager_Impl::Clear(this).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, flags: PolicyServerUrlFlags) -> windows_core::HRESULT - where - Identity: IX509PolicyServerListManager_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, flags: PolicyServerUrlFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerListManager_Impl::Initialize(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&flags)).into() } @@ -15381,21 +11757,12 @@ pub trait IX509PolicyServerUrl_Impl: Sized + super::super::super::System::Com::I impl windows_core::RuntimeName for IX509PolicyServerUrl {} #[cfg(feature = "Win32_System_Com")] impl IX509PolicyServerUrl_Vtbl { - pub const fn new() -> IX509PolicyServerUrl_Vtbl - where - Identity: IX509PolicyServerUrl_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + pub const fn new() -> IX509PolicyServerUrl_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerUrl_Impl::Initialize(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn Url(this: *mut core::ffi::c_void, ppvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn Url(this: *mut core::ffi::c_void, ppvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PolicyServerUrl_Impl::Url(this) { Ok(ok__) => { @@ -15405,17 +11772,11 @@ impl IX509PolicyServerUrl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUrl(this: *mut core::ffi::c_void, pvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn SetUrl(this: *mut core::ffi::c_void, pvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerUrl_Impl::SetUrl(this, core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn Default(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn Default(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PolicyServerUrl_Impl::Default(this) { Ok(ok__) => { @@ -15425,17 +11786,11 @@ impl IX509PolicyServerUrl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerUrl_Impl::SetDefault(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pvalue: *mut PolicyServerUrlFlags) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pvalue: *mut PolicyServerUrlFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PolicyServerUrl_Impl::Flags(this) { Ok(ok__) => { @@ -15445,17 +11800,11 @@ impl IX509PolicyServerUrl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: PolicyServerUrlFlags) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: PolicyServerUrlFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerUrl_Impl::SetFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn AuthFlags(this: *mut core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn AuthFlags(this: *mut core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PolicyServerUrl_Impl::AuthFlags(this) { Ok(ok__) => { @@ -15465,17 +11814,11 @@ impl IX509PolicyServerUrl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthFlags(this: *mut core::ffi::c_void, flags: X509EnrollmentAuthFlags) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn SetAuthFlags(this: *mut core::ffi::c_void, flags: X509EnrollmentAuthFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerUrl_Impl::SetAuthFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn Cost(this: *mut core::ffi::c_void, pvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn Cost(this: *mut core::ffi::c_void, pvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PolicyServerUrl_Impl::Cost(this) { Ok(ok__) => { @@ -15485,17 +11828,11 @@ impl IX509PolicyServerUrl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCost(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn SetCost(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerUrl_Impl::SetCost(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetStringProperty(this: *mut core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, ppvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn GetStringProperty(this: *mut core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, ppvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PolicyServerUrl_Impl::GetStringProperty(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -15505,24 +11842,15 @@ impl IX509PolicyServerUrl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStringProperty(this: *mut core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, pvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn SetStringProperty(this: *mut core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, pvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerUrl_Impl::SetStringProperty(this, core::mem::transmute_copy(&propertyid), core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn UpdateRegistry(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn UpdateRegistry(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerUrl_Impl::UpdateRegistry(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn RemoveFromRegistry(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT - where - Identity: IX509PolicyServerUrl_Impl, - { + unsafe extern "system" fn RemoveFromRegistry(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PolicyServerUrl_Impl::RemoveFromRegistry(this, core::mem::transmute_copy(&context)).into() } @@ -15614,56 +11942,32 @@ pub trait IX509PrivateKey_Impl: Sized + super::super::super::System::Com::IDispa impl windows_core::RuntimeName for IX509PrivateKey {} #[cfg(feature = "Win32_System_Com")] impl IX509PrivateKey_Vtbl { - pub const fn new() -> IX509PrivateKey_Vtbl - where - Identity: IX509PrivateKey_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + pub const fn new() -> IX509PrivateKey_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::Open(this).into() } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::Create(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::Close(this).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::Delete(this).into() } - unsafe extern "system" fn Verify(this: *mut core::ffi::c_void, verifytype: X509PrivateKeyVerify) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Verify(this: *mut core::ffi::c_void, verifytype: X509PrivateKeyVerify) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::Verify(this, core::mem::transmute_copy(&verifytype)).into() } - unsafe extern "system" fn Import(this: *mut core::ffi::c_void, strexporttype: core::mem::MaybeUninit, strencodedkey: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Import(this: *mut core::ffi::c_void, strexporttype: core::mem::MaybeUninit, strencodedkey: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::Import(this, core::mem::transmute(&strexporttype), core::mem::transmute(&strencodedkey), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn Export(this: *mut core::ffi::c_void, strexporttype: core::mem::MaybeUninit, encoding: EncodingType, pstrencodedkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Export(this: *mut core::ffi::c_void, strexporttype: core::mem::MaybeUninit, encoding: EncodingType, pstrencodedkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::Export(this, core::mem::transmute(&strexporttype), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -15673,10 +11977,7 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExportPublicKey(this: *mut core::ffi::c_void, pppublickey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn ExportPublicKey(this: *mut core::ffi::c_void, pppublickey: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::ExportPublicKey(this) { Ok(ok__) => { @@ -15686,10 +11987,7 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContainerName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn ContainerName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::ContainerName(this) { Ok(ok__) => { @@ -15699,17 +11997,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContainerName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetContainerName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetContainerName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ContainerNamePrefix(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn ContainerNamePrefix(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::ContainerNamePrefix(this) { Ok(ok__) => { @@ -15719,17 +12011,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContainerNamePrefix(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetContainerNamePrefix(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetContainerNamePrefix(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ReaderName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn ReaderName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::ReaderName(this) { Ok(ok__) => { @@ -15739,17 +12025,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReaderName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetReaderName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetReaderName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn CspInformations(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn CspInformations(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::CspInformations(this) { Ok(ok__) => { @@ -15759,17 +12039,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCspInformations(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetCspInformations(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetCspInformations(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn CspStatus(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn CspStatus(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::CspStatus(this) { Ok(ok__) => { @@ -15779,17 +12053,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCspStatus(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetCspStatus(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetCspStatus(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::ProviderName(this) { Ok(ok__) => { @@ -15799,17 +12067,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetProviderName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetProviderName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ProviderType(this: *mut core::ffi::c_void, pvalue: *mut X509ProviderType) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn ProviderType(this: *mut core::ffi::c_void, pvalue: *mut X509ProviderType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::ProviderType(this) { Ok(ok__) => { @@ -15819,17 +12081,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderType(this: *mut core::ffi::c_void, value: X509ProviderType) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetProviderType(this: *mut core::ffi::c_void, value: X509ProviderType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetProviderType(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn LegacyCsp(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn LegacyCsp(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::LegacyCsp(this) { Ok(ok__) => { @@ -15839,17 +12095,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLegacyCsp(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetLegacyCsp(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetLegacyCsp(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Algorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Algorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::Algorithm(this) { Ok(ok__) => { @@ -15859,17 +12109,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetAlgorithm(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pvalue: *mut X509KeySpec) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn KeySpec(this: *mut core::ffi::c_void, pvalue: *mut X509KeySpec) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::KeySpec(this) { Ok(ok__) => { @@ -15879,17 +12123,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeySpec(this: *mut core::ffi::c_void, value: X509KeySpec) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetKeySpec(this: *mut core::ffi::c_void, value: X509KeySpec) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetKeySpec(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::Length(this) { Ok(ok__) => { @@ -15899,17 +12137,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetLength(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ExportPolicy(this: *mut core::ffi::c_void, pvalue: *mut X509PrivateKeyExportFlags) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn ExportPolicy(this: *mut core::ffi::c_void, pvalue: *mut X509PrivateKeyExportFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::ExportPolicy(this) { Ok(ok__) => { @@ -15919,17 +12151,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExportPolicy(this: *mut core::ffi::c_void, value: X509PrivateKeyExportFlags) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetExportPolicy(this: *mut core::ffi::c_void, value: X509PrivateKeyExportFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetExportPolicy(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn KeyUsage(this: *mut core::ffi::c_void, pvalue: *mut X509PrivateKeyUsageFlags) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn KeyUsage(this: *mut core::ffi::c_void, pvalue: *mut X509PrivateKeyUsageFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::KeyUsage(this) { Ok(ok__) => { @@ -15939,17 +12165,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeyUsage(this: *mut core::ffi::c_void, value: X509PrivateKeyUsageFlags) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetKeyUsage(this: *mut core::ffi::c_void, value: X509PrivateKeyUsageFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetKeyUsage(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn KeyProtection(this: *mut core::ffi::c_void, pvalue: *mut X509PrivateKeyProtection) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn KeyProtection(this: *mut core::ffi::c_void, pvalue: *mut X509PrivateKeyProtection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::KeyProtection(this) { Ok(ok__) => { @@ -15959,17 +12179,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeyProtection(this: *mut core::ffi::c_void, value: X509PrivateKeyProtection) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetKeyProtection(this: *mut core::ffi::c_void, value: X509PrivateKeyProtection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetKeyProtection(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn MachineContext(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn MachineContext(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::MachineContext(this) { Ok(ok__) => { @@ -15979,17 +12193,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMachineContext(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetMachineContext(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetMachineContext(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SecurityDescriptor(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SecurityDescriptor(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::SecurityDescriptor(this) { Ok(ok__) => { @@ -15999,17 +12207,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetSecurityDescriptor(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn get_Certificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn get_Certificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::get_Certificate(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16019,17 +12221,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Certificate(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn put_Certificate(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::put_Certificate(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } - unsafe extern "system" fn UniqueContainerName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn UniqueContainerName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::UniqueContainerName(this) { Ok(ok__) => { @@ -16039,10 +12235,7 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Opened(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Opened(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::Opened(this) { Ok(ok__) => { @@ -16052,10 +12245,7 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultContainer(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn DefaultContainer(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::DefaultContainer(this) { Ok(ok__) => { @@ -16065,10 +12255,7 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Existing(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Existing(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::Existing(this) { Ok(ok__) => { @@ -16078,17 +12265,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExisting(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetExisting(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetExisting(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::Silent(this) { Ok(ok__) => { @@ -16098,17 +12279,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetSilent(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ParentWindow(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn ParentWindow(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::ParentWindow(this) { Ok(ok__) => { @@ -16118,17 +12293,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParentWindow(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetParentWindow(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetParentWindow(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn UIContextMessage(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn UIContextMessage(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::UIContextMessage(this) { Ok(ok__) => { @@ -16138,24 +12307,15 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUIContextMessage(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetUIContextMessage(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetUIContextMessage(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn SetPin(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetPin(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetPin(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::FriendlyName(this) { Ok(ok__) => { @@ -16165,17 +12325,11 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetFriendlyName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey_Impl::Description(this) { Ok(ok__) => { @@ -16185,10 +12339,7 @@ impl IX509PrivateKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey_Impl::SetDescription(this, core::mem::transmute(&value)).into() } @@ -16275,14 +12426,8 @@ pub trait IX509PrivateKey2_Impl: Sized + IX509PrivateKey_Impl { impl windows_core::RuntimeName for IX509PrivateKey2 {} #[cfg(feature = "Win32_System_Com")] impl IX509PrivateKey2_Vtbl { - pub const fn new() -> IX509PrivateKey2_Vtbl - where - Identity: IX509PrivateKey2_Impl, - { - unsafe extern "system" fn HardwareKeyUsage(this: *mut core::ffi::c_void, pvalue: *mut X509HardwareKeyUsageFlags) -> windows_core::HRESULT - where - Identity: IX509PrivateKey2_Impl, - { + pub const fn new() -> IX509PrivateKey2_Vtbl { + unsafe extern "system" fn HardwareKeyUsage(this: *mut core::ffi::c_void, pvalue: *mut X509HardwareKeyUsageFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey2_Impl::HardwareKeyUsage(this) { Ok(ok__) => { @@ -16292,17 +12437,11 @@ impl IX509PrivateKey2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHardwareKeyUsage(this: *mut core::ffi::c_void, value: X509HardwareKeyUsageFlags) -> windows_core::HRESULT - where - Identity: IX509PrivateKey2_Impl, - { + unsafe extern "system" fn SetHardwareKeyUsage(this: *mut core::ffi::c_void, value: X509HardwareKeyUsageFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey2_Impl::SetHardwareKeyUsage(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn AlternateStorageLocation(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey2_Impl, - { + unsafe extern "system" fn AlternateStorageLocation(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey2_Impl::AlternateStorageLocation(this) { Ok(ok__) => { @@ -16312,17 +12451,11 @@ impl IX509PrivateKey2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlternateStorageLocation(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey2_Impl, - { + unsafe extern "system" fn SetAlternateStorageLocation(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey2_Impl::SetAlternateStorageLocation(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn AlgorithmName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey2_Impl, - { + unsafe extern "system" fn AlgorithmName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey2_Impl::AlgorithmName(this) { Ok(ok__) => { @@ -16332,17 +12465,11 @@ impl IX509PrivateKey2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlgorithmName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey2_Impl, - { + unsafe extern "system" fn SetAlgorithmName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey2_Impl::SetAlgorithmName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn get_AlgorithmParameters(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey2_Impl, - { + unsafe extern "system" fn get_AlgorithmParameters(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey2_Impl::get_AlgorithmParameters(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16352,17 +12479,11 @@ impl IX509PrivateKey2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_AlgorithmParameters(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PrivateKey2_Impl, - { + unsafe extern "system" fn put_AlgorithmParameters(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey2_Impl::put_AlgorithmParameters(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } - unsafe extern "system" fn ParametersExportType(this: *mut core::ffi::c_void, pvalue: *mut X509KeyParametersExportType) -> windows_core::HRESULT - where - Identity: IX509PrivateKey2_Impl, - { + unsafe extern "system" fn ParametersExportType(this: *mut core::ffi::c_void, pvalue: *mut X509KeyParametersExportType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PrivateKey2_Impl::ParametersExportType(this) { Ok(ok__) => { @@ -16372,10 +12493,7 @@ impl IX509PrivateKey2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParametersExportType(this: *mut core::ffi::c_void, value: X509KeyParametersExportType) -> windows_core::HRESULT - where - Identity: IX509PrivateKey2_Impl, - { + unsafe extern "system" fn SetParametersExportType(this: *mut core::ffi::c_void, value: X509KeyParametersExportType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PrivateKey2_Impl::SetParametersExportType(this, core::mem::transmute_copy(&value)).into() } @@ -16411,28 +12529,16 @@ pub trait IX509PublicKey_Impl: Sized + super::super::super::System::Com::IDispat impl windows_core::RuntimeName for IX509PublicKey {} #[cfg(feature = "Win32_System_Com")] impl IX509PublicKey_Vtbl { - pub const fn new() -> IX509PublicKey_Vtbl - where - Identity: IX509PublicKey_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, strencodedkey: core::mem::MaybeUninit, strencodedparameters: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: IX509PublicKey_Impl, - { + pub const fn new() -> IX509PublicKey_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pobjectid: *mut core::ffi::c_void, strencodedkey: core::mem::MaybeUninit, strencodedparameters: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PublicKey_Impl::Initialize(this, windows_core::from_raw_borrowed(&pobjectid), core::mem::transmute(&strencodedkey), core::mem::transmute(&strencodedparameters), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn InitializeFromEncodedPublicKeyInfo(this: *mut core::ffi::c_void, strencodedpublickeyinfo: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: IX509PublicKey_Impl, - { + unsafe extern "system" fn InitializeFromEncodedPublicKeyInfo(this: *mut core::ffi::c_void, strencodedpublickeyinfo: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509PublicKey_Impl::InitializeFromEncodedPublicKeyInfo(this, core::mem::transmute(&strencodedpublickeyinfo), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn Algorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509PublicKey_Impl, - { + unsafe extern "system" fn Algorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PublicKey_Impl::Algorithm(this) { Ok(ok__) => { @@ -16442,10 +12548,7 @@ impl IX509PublicKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IX509PublicKey_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PublicKey_Impl::Length(this) { Ok(ok__) => { @@ -16455,10 +12558,7 @@ impl IX509PublicKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_EncodedKey(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PublicKey_Impl, - { + unsafe extern "system" fn get_EncodedKey(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PublicKey_Impl::get_EncodedKey(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16468,10 +12568,7 @@ impl IX509PublicKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_EncodedParameters(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PublicKey_Impl, - { + unsafe extern "system" fn get_EncodedParameters(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PublicKey_Impl::get_EncodedParameters(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16481,10 +12578,7 @@ impl IX509PublicKey_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputeKeyIdentifier(this: *mut core::ffi::c_void, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509PublicKey_Impl, - { + unsafe extern "system" fn ComputeKeyIdentifier(this: *mut core::ffi::c_void, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509PublicKey_Impl::ComputeKeyIdentifier(this, core::mem::transmute_copy(&algorithm), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16538,28 +12632,16 @@ pub trait IX509SCEPEnrollment_Impl: Sized + super::super::super::System::Com::ID impl windows_core::RuntimeName for IX509SCEPEnrollment {} #[cfg(feature = "Win32_System_Com")] impl IX509SCEPEnrollment_Vtbl { - pub const fn new() -> IX509SCEPEnrollment_Vtbl - where - Identity: IX509SCEPEnrollment_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, prequest: *mut core::ffi::c_void, strthumbprint: core::mem::MaybeUninit, thumprintencoding: EncodingType, strservercertificates: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + pub const fn new() -> IX509SCEPEnrollment_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, prequest: *mut core::ffi::c_void, strthumbprint: core::mem::MaybeUninit, thumprintencoding: EncodingType, strservercertificates: core::mem::MaybeUninit, encoding: EncodingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollment_Impl::Initialize(this, windows_core::from_raw_borrowed(&prequest), core::mem::transmute(&strthumbprint), core::mem::transmute_copy(&thumprintencoding), core::mem::transmute(&strservercertificates), core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn InitializeForPending(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn InitializeForPending(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollment_Impl::InitializeForPending(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn CreateRequestMessage(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn CreateRequestMessage(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::CreateRequestMessage(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16569,10 +12651,7 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRetrievePendingMessage(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn CreateRetrievePendingMessage(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::CreateRetrievePendingMessage(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16582,10 +12661,7 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRetrieveCertificateMessage(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, strissuer: core::mem::MaybeUninit, issuerencoding: EncodingType, strserialnumber: core::mem::MaybeUninit, serialnumberencoding: EncodingType, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn CreateRetrieveCertificateMessage(this: *mut core::ffi::c_void, context: X509CertificateEnrollmentContext, strissuer: core::mem::MaybeUninit, issuerencoding: EncodingType, strserialnumber: core::mem::MaybeUninit, serialnumberencoding: EncodingType, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::CreateRetrieveCertificateMessage(this, 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)) { Ok(ok__) => { @@ -16595,10 +12671,7 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessResponseMessage(this: *mut core::ffi::c_void, strresponse: core::mem::MaybeUninit, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn ProcessResponseMessage(this: *mut core::ffi::c_void, strresponse: core::mem::MaybeUninit, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::ProcessResponseMessage(this, core::mem::transmute(&strresponse), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16608,17 +12681,11 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerCapabilities(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn SetServerCapabilities(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollment_Impl::SetServerCapabilities(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn FailInfo(this: *mut core::ffi::c_void, pvalue: *mut X509SCEPFailInfo) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn FailInfo(this: *mut core::ffi::c_void, pvalue: *mut X509SCEPFailInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::FailInfo(this) { Ok(ok__) => { @@ -16628,10 +12695,7 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SignerCertificate(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn SignerCertificate(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::SignerCertificate(this) { Ok(ok__) => { @@ -16641,17 +12705,11 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn SetSignerCertificate(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollment_Impl::SetSignerCertificate(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn OldCertificate(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn OldCertificate(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::OldCertificate(this) { Ok(ok__) => { @@ -16661,17 +12719,11 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOldCertificate(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn SetOldCertificate(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollment_Impl::SetOldCertificate(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn get_TransactionId(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn get_TransactionId(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::get_TransactionId(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16681,17 +12733,11 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_TransactionId(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn put_TransactionId(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollment_Impl::put_TransactionId(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } - unsafe extern "system" fn Request(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn Request(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::Request(this) { Ok(ok__) => { @@ -16701,10 +12747,7 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CertificateFriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn CertificateFriendlyName(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::CertificateFriendlyName(this) { Ok(ok__) => { @@ -16714,17 +12757,11 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateFriendlyName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn SetCertificateFriendlyName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollment_Impl::SetCertificateFriendlyName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::Status(this) { Ok(ok__) => { @@ -16734,10 +12771,7 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Certificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn get_Certificate(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::get_Certificate(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16747,10 +12781,7 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment_Impl::Silent(this) { Ok(ok__) => { @@ -16760,17 +12791,11 @@ impl IX509SCEPEnrollment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollment_Impl::SetSilent(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn DeleteRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment_Impl, - { + unsafe extern "system" fn DeleteRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollment_Impl::DeleteRequest(this).into() } @@ -16817,14 +12842,8 @@ pub trait IX509SCEPEnrollment2_Impl: Sized + IX509SCEPEnrollment_Impl { impl windows_core::RuntimeName for IX509SCEPEnrollment2 {} #[cfg(feature = "Win32_System_Com")] impl IX509SCEPEnrollment2_Vtbl { - pub const fn new() -> IX509SCEPEnrollment2_Vtbl - where - Identity: IX509SCEPEnrollment2_Impl, - { - unsafe extern "system" fn CreateChallengeAnswerMessage(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment2_Impl, - { + pub const fn new() -> IX509SCEPEnrollment2_Vtbl { + unsafe extern "system" fn CreateChallengeAnswerMessage(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment2_Impl::CreateChallengeAnswerMessage(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16834,10 +12853,7 @@ impl IX509SCEPEnrollment2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessResponseMessage2(this: *mut core::ffi::c_void, flags: X509SCEPProcessMessageFlags, strresponse: core::mem::MaybeUninit, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment2_Impl, - { + unsafe extern "system" fn ProcessResponseMessage2(this: *mut core::ffi::c_void, flags: X509SCEPProcessMessageFlags, strresponse: core::mem::MaybeUninit, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment2_Impl::ProcessResponseMessage2(this, core::mem::transmute_copy(&flags), core::mem::transmute(&strresponse), core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -16847,10 +12863,7 @@ impl IX509SCEPEnrollment2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResultMessageText(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment2_Impl, - { + unsafe extern "system" fn ResultMessageText(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment2_Impl::ResultMessageText(this) { Ok(ok__) => { @@ -16860,10 +12873,7 @@ impl IX509SCEPEnrollment2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DelayRetry(this: *mut core::ffi::c_void, pvalue: *mut DelayRetryAction) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment2_Impl, - { + unsafe extern "system" fn DelayRetry(this: *mut core::ffi::c_void, pvalue: *mut DelayRetryAction) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment2_Impl::DelayRetry(this) { Ok(ok__) => { @@ -16873,10 +12883,7 @@ impl IX509SCEPEnrollment2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivityId(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment2_Impl, - { + unsafe extern "system" fn ActivityId(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollment2_Impl::ActivityId(this) { Ok(ok__) => { @@ -16886,10 +12893,7 @@ impl IX509SCEPEnrollment2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActivityId(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollment2_Impl, - { + unsafe extern "system" fn SetActivityId(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollment2_Impl::SetActivityId(this, core::mem::transmute(&value)).into() } @@ -16920,28 +12924,16 @@ pub trait IX509SCEPEnrollmentHelper_Impl: Sized + super::super::super::System::C impl windows_core::RuntimeName for IX509SCEPEnrollmentHelper {} #[cfg(feature = "Win32_System_Com")] impl IX509SCEPEnrollmentHelper_Vtbl { - pub const fn new() -> IX509SCEPEnrollmentHelper_Vtbl - where - Identity: IX509SCEPEnrollmentHelper_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strserverurl: core::mem::MaybeUninit, strrequestheaders: core::mem::MaybeUninit, prequest: *mut core::ffi::c_void, strcacertificatethumbprint: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollmentHelper_Impl, - { + pub const fn new() -> IX509SCEPEnrollmentHelper_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, strserverurl: core::mem::MaybeUninit, strrequestheaders: core::mem::MaybeUninit, prequest: *mut core::ffi::c_void, strcacertificatethumbprint: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollmentHelper_Impl::Initialize(this, core::mem::transmute(&strserverurl), core::mem::transmute(&strrequestheaders), windows_core::from_raw_borrowed(&prequest), core::mem::transmute(&strcacertificatethumbprint)).into() } - unsafe extern "system" fn InitializeForPending(this: *mut core::ffi::c_void, strserverurl: core::mem::MaybeUninit, strrequestheaders: core::mem::MaybeUninit, context: X509CertificateEnrollmentContext, strtransactionid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollmentHelper_Impl, - { + unsafe extern "system" fn InitializeForPending(this: *mut core::ffi::c_void, strserverurl: core::mem::MaybeUninit, strrequestheaders: core::mem::MaybeUninit, context: X509CertificateEnrollmentContext, strtransactionid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SCEPEnrollmentHelper_Impl::InitializeForPending(this, core::mem::transmute(&strserverurl), core::mem::transmute(&strrequestheaders), core::mem::transmute_copy(&context), core::mem::transmute(&strtransactionid)).into() } - unsafe extern "system" fn Enroll(this: *mut core::ffi::c_void, processflags: X509SCEPProcessMessageFlags, pdisposition: *mut X509SCEPDisposition) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollmentHelper_Impl, - { + unsafe extern "system" fn Enroll(this: *mut core::ffi::c_void, processflags: X509SCEPProcessMessageFlags, pdisposition: *mut X509SCEPDisposition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollmentHelper_Impl::Enroll(this, core::mem::transmute_copy(&processflags)) { Ok(ok__) => { @@ -16951,10 +12943,7 @@ impl IX509SCEPEnrollmentHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FetchPending(this: *mut core::ffi::c_void, processflags: X509SCEPProcessMessageFlags, pdisposition: *mut X509SCEPDisposition) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollmentHelper_Impl, - { + unsafe extern "system" fn FetchPending(this: *mut core::ffi::c_void, processflags: X509SCEPProcessMessageFlags, pdisposition: *mut X509SCEPDisposition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollmentHelper_Impl::FetchPending(this, core::mem::transmute_copy(&processflags)) { Ok(ok__) => { @@ -16964,10 +12953,7 @@ impl IX509SCEPEnrollmentHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn X509SCEPEnrollment(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollmentHelper_Impl, - { + unsafe extern "system" fn X509SCEPEnrollment(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollmentHelper_Impl::X509SCEPEnrollment(this) { Ok(ok__) => { @@ -16977,10 +12963,7 @@ impl IX509SCEPEnrollmentHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResultMessageText(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SCEPEnrollmentHelper_Impl, - { + unsafe extern "system" fn ResultMessageText(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SCEPEnrollmentHelper_Impl::ResultMessageText(this) { Ok(ok__) => { @@ -17024,14 +13007,8 @@ pub trait IX509SignatureInformation_Impl: Sized + super::super::super::System::C impl windows_core::RuntimeName for IX509SignatureInformation {} #[cfg(feature = "Win32_System_Com")] impl IX509SignatureInformation_Vtbl { - pub const fn new() -> IX509SignatureInformation_Vtbl - where - Identity: IX509SignatureInformation_Impl, - { - unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + pub const fn new() -> IX509SignatureInformation_Vtbl { + unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SignatureInformation_Impl::HashAlgorithm(this) { Ok(ok__) => { @@ -17041,17 +13018,11 @@ impl IX509SignatureInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SignatureInformation_Impl::SetHashAlgorithm(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn PublicKeyAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn PublicKeyAlgorithm(this: *mut core::ffi::c_void, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SignatureInformation_Impl::PublicKeyAlgorithm(this) { Ok(ok__) => { @@ -17061,17 +13032,11 @@ impl IX509SignatureInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPublicKeyAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn SetPublicKeyAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SignatureInformation_Impl::SetPublicKeyAlgorithm(this, windows_core::from_raw_borrowed(&pvalue)).into() } - unsafe extern "system" fn get_Parameters(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn get_Parameters(this: *mut core::ffi::c_void, encoding: EncodingType, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SignatureInformation_Impl::get_Parameters(this, core::mem::transmute_copy(&encoding)) { Ok(ok__) => { @@ -17081,17 +13046,11 @@ impl IX509SignatureInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Parameters(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn put_Parameters(this: *mut core::ffi::c_void, encoding: EncodingType, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SignatureInformation_Impl::put_Parameters(this, core::mem::transmute_copy(&encoding), core::mem::transmute(&value)).into() } - unsafe extern "system" fn AlternateSignatureAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn AlternateSignatureAlgorithm(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SignatureInformation_Impl::AlternateSignatureAlgorithm(this) { Ok(ok__) => { @@ -17101,17 +13060,11 @@ impl IX509SignatureInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlternateSignatureAlgorithm(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn SetAlternateSignatureAlgorithm(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SignatureInformation_Impl::SetAlternateSignatureAlgorithm(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn AlternateSignatureAlgorithmSet(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn AlternateSignatureAlgorithmSet(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SignatureInformation_Impl::AlternateSignatureAlgorithmSet(this) { Ok(ok__) => { @@ -17121,10 +13074,7 @@ impl IX509SignatureInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NullSigned(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn NullSigned(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SignatureInformation_Impl::NullSigned(this) { Ok(ok__) => { @@ -17134,17 +13084,11 @@ impl IX509SignatureInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNullSigned(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn SetNullSigned(this: *mut core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SignatureInformation_Impl::SetNullSigned(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSignatureAlgorithm(this: *mut core::ffi::c_void, pkcs7signature: super::super::super::Foundation::VARIANT_BOOL, signaturekey: super::super::super::Foundation::VARIANT_BOOL, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn GetSignatureAlgorithm(this: *mut core::ffi::c_void, pkcs7signature: super::super::super::Foundation::VARIANT_BOOL, signaturekey: super::super::super::Foundation::VARIANT_BOOL, ppvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IX509SignatureInformation_Impl::GetSignatureAlgorithm(this, core::mem::transmute_copy(&pkcs7signature), core::mem::transmute_copy(&signaturekey)) { Ok(ok__) => { @@ -17154,10 +13098,7 @@ impl IX509SignatureInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultValues(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IX509SignatureInformation_Impl, - { + unsafe extern "system" fn SetDefaultValues(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IX509SignatureInformation_Impl::SetDefaultValues(this).into() } 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 8024625465..208cdee9e7 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/impl.rs @@ -25,14 +25,8 @@ pub trait ICertSrvSetup_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for ICertSrvSetup {} #[cfg(feature = "Win32_System_Com")] impl ICertSrvSetup_Vtbl { - pub const fn new() -> ICertSrvSetup_Vtbl - where - Identity: ICertSrvSetup_Impl, - { - unsafe extern "system" fn CAErrorId(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + pub const fn new() -> ICertSrvSetup_Vtbl { + unsafe extern "system" fn CAErrorId(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::CAErrorId(this) { Ok(ok__) => { @@ -42,10 +36,7 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CAErrorString(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn CAErrorString(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::CAErrorString(this) { Ok(ok__) => { @@ -55,17 +46,11 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeDefaults(this: *mut core::ffi::c_void, bserver: super::super::Foundation::VARIANT_BOOL, bclient: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn InitializeDefaults(this: *mut core::ffi::c_void, bserver: super::super::Foundation::VARIANT_BOOL, bclient: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetup_Impl::InitializeDefaults(this, core::mem::transmute_copy(&bserver), core::mem::transmute_copy(&bclient)).into() } - unsafe extern "system" fn GetCASetupProperty(this: *mut core::ffi::c_void, propertyid: CASetupProperty, ppropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn GetCASetupProperty(this: *mut core::ffi::c_void, propertyid: CASetupProperty, ppropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::GetCASetupProperty(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -75,17 +60,11 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCASetupProperty(this: *mut core::ffi::c_void, propertyid: CASetupProperty, ppropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn SetCASetupProperty(this: *mut core::ffi::c_void, propertyid: CASetupProperty, ppropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetup_Impl::SetCASetupProperty(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&ppropertyvalue)).into() } - unsafe extern "system" fn IsPropertyEditable(this: *mut core::ffi::c_void, propertyid: CASetupProperty, pbeditable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn IsPropertyEditable(this: *mut core::ffi::c_void, propertyid: CASetupProperty, pbeditable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::IsPropertyEditable(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -95,10 +74,7 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedCATypes(this: *mut core::ffi::c_void, pcatypes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn GetSupportedCATypes(this: *mut core::ffi::c_void, pcatypes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::GetSupportedCATypes(this) { Ok(ok__) => { @@ -108,10 +84,7 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderNameList(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn GetProviderNameList(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::GetProviderNameList(this) { Ok(ok__) => { @@ -121,10 +94,7 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyLengthList(this: *mut core::ffi::c_void, bstrprovidername: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn GetKeyLengthList(this: *mut core::ffi::c_void, bstrprovidername: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::GetKeyLengthList(this, core::mem::transmute(&bstrprovidername)) { Ok(ok__) => { @@ -134,10 +104,7 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHashAlgorithmList(this: *mut core::ffi::c_void, bstrprovidername: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn GetHashAlgorithmList(this: *mut core::ffi::c_void, bstrprovidername: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::GetHashAlgorithmList(this, core::mem::transmute(&bstrprovidername)) { Ok(ok__) => { @@ -147,10 +114,7 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrivateKeyContainerList(this: *mut core::ffi::c_void, bstrprovidername: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn GetPrivateKeyContainerList(this: *mut core::ffi::c_void, bstrprovidername: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::GetPrivateKeyContainerList(this, core::mem::transmute(&bstrprovidername)) { Ok(ok__) => { @@ -160,10 +124,7 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExistingCACertificates(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn GetExistingCACertificates(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::GetExistingCACertificates(this) { Ok(ok__) => { @@ -173,10 +134,7 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CAImportPFX(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, bstrpasswd: core::mem::MaybeUninit, boverwriteexistingkey: super::super::Foundation::VARIANT_BOOL, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn CAImportPFX(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, bstrpasswd: core::mem::MaybeUninit, boverwriteexistingkey: super::super::Foundation::VARIANT_BOOL, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetup_Impl::CAImportPFX(this, core::mem::transmute(&bstrfilename), core::mem::transmute(&bstrpasswd), core::mem::transmute_copy(&boverwriteexistingkey)) { Ok(ok__) => { @@ -186,52 +144,31 @@ impl ICertSrvSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCADistinguishedName(this: *mut core::ffi::c_void, bstrcadn: core::mem::MaybeUninit, bignoreunicode: super::super::Foundation::VARIANT_BOOL, boverwriteexistingkey: super::super::Foundation::VARIANT_BOOL, boverwriteexistingcainds: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn SetCADistinguishedName(this: *mut core::ffi::c_void, bstrcadn: core::mem::MaybeUninit, bignoreunicode: super::super::Foundation::VARIANT_BOOL, boverwriteexistingkey: super::super::Foundation::VARIANT_BOOL, boverwriteexistingcainds: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetup_Impl::SetCADistinguishedName(this, 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(this: *mut core::ffi::c_void, bstrdbdirectory: core::mem::MaybeUninit, bstrlogdirectory: core::mem::MaybeUninit, bstrsharedfolder: core::mem::MaybeUninit, bforceoverwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn SetDatabaseInformation(this: *mut core::ffi::c_void, bstrdbdirectory: core::mem::MaybeUninit, bstrlogdirectory: core::mem::MaybeUninit, bstrsharedfolder: core::mem::MaybeUninit, bforceoverwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetup_Impl::SetDatabaseInformation(this, core::mem::transmute(&bstrdbdirectory), core::mem::transmute(&bstrlogdirectory), core::mem::transmute(&bstrsharedfolder), core::mem::transmute_copy(&bforceoverwrite)).into() } - unsafe extern "system" fn SetParentCAInformation(this: *mut core::ffi::c_void, bstrcaconfiguration: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn SetParentCAInformation(this: *mut core::ffi::c_void, bstrcaconfiguration: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetup_Impl::SetParentCAInformation(this, core::mem::transmute(&bstrcaconfiguration)).into() } - unsafe extern "system" fn SetWebCAInformation(this: *mut core::ffi::c_void, bstrcaconfiguration: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn SetWebCAInformation(this: *mut core::ffi::c_void, bstrcaconfiguration: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetup_Impl::SetWebCAInformation(this, core::mem::transmute(&bstrcaconfiguration)).into() } - unsafe extern "system" fn Install(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn Install(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetup_Impl::Install(this).into() } - unsafe extern "system" fn PreUnInstall(this: *mut core::ffi::c_void, bclientonly: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn PreUnInstall(this: *mut core::ffi::c_void, bclientonly: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetup_Impl::PreUnInstall(this, core::mem::transmute_copy(&bclientonly)).into() } - unsafe extern "system" fn PostUnInstall(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertSrvSetup_Impl, - { + unsafe extern "system" fn PostUnInstall(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetup_Impl::PostUnInstall(this).into() } @@ -282,14 +219,8 @@ pub trait ICertSrvSetupKeyInformation_Impl: Sized + super::super::System::Com::I impl windows_core::RuntimeName for ICertSrvSetupKeyInformation {} #[cfg(feature = "Win32_System_Com")] impl ICertSrvSetupKeyInformation_Vtbl { - pub const fn new() -> ICertSrvSetupKeyInformation_Vtbl - where - Identity: ICertSrvSetupKeyInformation_Impl, - { - unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + pub const fn new() -> ICertSrvSetupKeyInformation_Vtbl { + unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetupKeyInformation_Impl::ProviderName(this) { Ok(ok__) => { @@ -299,17 +230,11 @@ impl ICertSrvSetupKeyInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderName(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn SetProviderName(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetupKeyInformation_Impl::SetProviderName(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetupKeyInformation_Impl::Length(this) { Ok(ok__) => { @@ -319,17 +244,11 @@ impl ICertSrvSetupKeyInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, lval: i32) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn SetLength(this: *mut core::ffi::c_void, lval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetupKeyInformation_Impl::SetLength(this, core::mem::transmute_copy(&lval)).into() } - unsafe extern "system" fn Existing(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn Existing(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetupKeyInformation_Impl::Existing(this) { Ok(ok__) => { @@ -339,17 +258,11 @@ impl ICertSrvSetupKeyInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExisting(this: *mut core::ffi::c_void, bval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn SetExisting(this: *mut core::ffi::c_void, bval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetupKeyInformation_Impl::SetExisting(this, core::mem::transmute_copy(&bval)).into() } - unsafe extern "system" fn ContainerName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn ContainerName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetupKeyInformation_Impl::ContainerName(this) { Ok(ok__) => { @@ -359,17 +272,11 @@ impl ICertSrvSetupKeyInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContainerName(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn SetContainerName(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetupKeyInformation_Impl::SetContainerName(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetupKeyInformation_Impl::HashAlgorithm(this) { Ok(ok__) => { @@ -379,17 +286,11 @@ impl ICertSrvSetupKeyInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetupKeyInformation_Impl::SetHashAlgorithm(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn ExistingCACertificate(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn ExistingCACertificate(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetupKeyInformation_Impl::ExistingCACertificate(this) { Ok(ok__) => { @@ -399,10 +300,7 @@ impl ICertSrvSetupKeyInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExistingCACertificate(this: *mut core::ffi::c_void, varval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformation_Impl, - { + unsafe extern "system" fn SetExistingCACertificate(this: *mut core::ffi::c_void, varval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetupKeyInformation_Impl::SetExistingCACertificate(this, core::mem::transmute(&varval)).into() } @@ -437,14 +335,8 @@ pub trait ICertSrvSetupKeyInformationCollection_Impl: Sized + super::super::Syst impl windows_core::RuntimeName for ICertSrvSetupKeyInformationCollection {} #[cfg(feature = "Win32_System_Com")] impl ICertSrvSetupKeyInformationCollection_Vtbl { - pub const fn new() -> ICertSrvSetupKeyInformationCollection_Vtbl - where - Identity: ICertSrvSetupKeyInformationCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformationCollection_Impl, - { + pub const fn new() -> ICertSrvSetupKeyInformationCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetupKeyInformationCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -454,10 +346,7 @@ impl ICertSrvSetupKeyInformationCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformationCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetupKeyInformationCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -467,10 +356,7 @@ impl ICertSrvSetupKeyInformationCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformationCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertSrvSetupKeyInformationCollection_Impl::Count(this) { Ok(ok__) => { @@ -480,10 +366,7 @@ impl ICertSrvSetupKeyInformationCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pikeyinformation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertSrvSetupKeyInformationCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pikeyinformation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertSrvSetupKeyInformationCollection_Impl::Add(this, windows_core::from_raw_borrowed(&pikeyinformation)).into() } @@ -512,14 +395,8 @@ pub trait ICertificateEnrollmentPolicyServerSetup_Impl: Sized + super::super::Sy impl windows_core::RuntimeName for ICertificateEnrollmentPolicyServerSetup {} #[cfg(feature = "Win32_System_Com")] impl ICertificateEnrollmentPolicyServerSetup_Vtbl { - pub const fn new() -> ICertificateEnrollmentPolicyServerSetup_Vtbl - where - Identity: ICertificateEnrollmentPolicyServerSetup_Impl, - { - unsafe extern "system" fn ErrorString(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentPolicyServerSetup_Impl, - { + pub const fn new() -> ICertificateEnrollmentPolicyServerSetup_Vtbl { + unsafe extern "system" fn ErrorString(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificateEnrollmentPolicyServerSetup_Impl::ErrorString(this) { Ok(ok__) => { @@ -529,17 +406,11 @@ impl ICertificateEnrollmentPolicyServerSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeInstallDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentPolicyServerSetup_Impl, - { + unsafe extern "system" fn InitializeInstallDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateEnrollmentPolicyServerSetup_Impl::InitializeInstallDefaults(this).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propertyid: CEPSetupProperty, ppropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentPolicyServerSetup_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propertyid: CEPSetupProperty, ppropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificateEnrollmentPolicyServerSetup_Impl::GetProperty(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -549,24 +420,15 @@ impl ICertificateEnrollmentPolicyServerSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, propertyid: CEPSetupProperty, ppropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentPolicyServerSetup_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, propertyid: CEPSetupProperty, ppropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateEnrollmentPolicyServerSetup_Impl::SetProperty(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&ppropertyvalue)).into() } - unsafe extern "system" fn Install(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentPolicyServerSetup_Impl, - { + unsafe extern "system" fn Install(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateEnrollmentPolicyServerSetup_Impl::Install(this).into() } - unsafe extern "system" fn UnInstall(this: *mut core::ffi::c_void, pauthkeybasedrenewal: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentPolicyServerSetup_Impl, - { + unsafe extern "system" fn UnInstall(this: *mut core::ffi::c_void, pauthkeybasedrenewal: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateEnrollmentPolicyServerSetup_Impl::UnInstall(this, core::mem::transmute_copy(&pauthkeybasedrenewal)).into() } @@ -598,14 +460,8 @@ pub trait ICertificateEnrollmentServerSetup_Impl: Sized + super::super::System:: impl windows_core::RuntimeName for ICertificateEnrollmentServerSetup {} #[cfg(feature = "Win32_System_Com")] impl ICertificateEnrollmentServerSetup_Vtbl { - pub const fn new() -> ICertificateEnrollmentServerSetup_Vtbl - where - Identity: ICertificateEnrollmentServerSetup_Impl, - { - unsafe extern "system" fn ErrorString(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentServerSetup_Impl, - { + pub const fn new() -> ICertificateEnrollmentServerSetup_Vtbl { + unsafe extern "system" fn ErrorString(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificateEnrollmentServerSetup_Impl::ErrorString(this) { Ok(ok__) => { @@ -615,17 +471,11 @@ impl ICertificateEnrollmentServerSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeInstallDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentServerSetup_Impl, - { + unsafe extern "system" fn InitializeInstallDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateEnrollmentServerSetup_Impl::InitializeInstallDefaults(this).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propertyid: CESSetupProperty, ppropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentServerSetup_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propertyid: CESSetupProperty, ppropertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICertificateEnrollmentServerSetup_Impl::GetProperty(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -635,31 +485,19 @@ impl ICertificateEnrollmentServerSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, propertyid: CESSetupProperty, ppropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentServerSetup_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, propertyid: CESSetupProperty, ppropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateEnrollmentServerSetup_Impl::SetProperty(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&ppropertyvalue)).into() } - unsafe extern "system" fn SetApplicationPoolCredentials(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentServerSetup_Impl, - { + unsafe extern "system" fn SetApplicationPoolCredentials(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateEnrollmentServerSetup_Impl::SetApplicationPoolCredentials(this, core::mem::transmute(&bstrusername), core::mem::transmute(&bstrpassword)).into() } - unsafe extern "system" fn Install(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentServerSetup_Impl, - { + unsafe extern "system" fn Install(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateEnrollmentServerSetup_Impl::Install(this).into() } - unsafe extern "system" fn UnInstall(this: *mut core::ffi::c_void, pcaconfig: *const core::mem::MaybeUninit, pauthentication: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICertificateEnrollmentServerSetup_Impl, - { + unsafe extern "system" fn UnInstall(this: *mut core::ffi::c_void, pcaconfig: *const core::mem::MaybeUninit, pauthentication: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICertificateEnrollmentServerSetup_Impl::UnInstall(this, core::mem::transmute_copy(&pcaconfig), core::mem::transmute_copy(&pauthentication)).into() } @@ -697,14 +535,8 @@ pub trait IMSCEPSetup_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSCEPSetup {} #[cfg(feature = "Win32_System_Com")] impl IMSCEPSetup_Vtbl { - pub const fn new() -> IMSCEPSetup_Vtbl - where - Identity: IMSCEPSetup_Impl, - { - unsafe extern "system" fn MSCEPErrorId(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + pub const fn new() -> IMSCEPSetup_Vtbl { + unsafe extern "system" fn MSCEPErrorId(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSCEPSetup_Impl::MSCEPErrorId(this) { Ok(ok__) => { @@ -714,10 +546,7 @@ impl IMSCEPSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MSCEPErrorString(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn MSCEPErrorString(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSCEPSetup_Impl::MSCEPErrorString(this) { Ok(ok__) => { @@ -727,17 +556,11 @@ impl IMSCEPSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn InitializeDefaults(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSCEPSetup_Impl::InitializeDefaults(this).into() } - unsafe extern "system" fn GetMSCEPSetupProperty(this: *mut core::ffi::c_void, propertyid: MSCEPSetupProperty, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn GetMSCEPSetupProperty(this: *mut core::ffi::c_void, propertyid: MSCEPSetupProperty, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSCEPSetup_Impl::GetMSCEPSetupProperty(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -747,24 +570,15 @@ impl IMSCEPSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMSCEPSetupProperty(this: *mut core::ffi::c_void, propertyid: MSCEPSetupProperty, ppropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn SetMSCEPSetupProperty(this: *mut core::ffi::c_void, propertyid: MSCEPSetupProperty, ppropertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSCEPSetup_Impl::SetMSCEPSetupProperty(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&ppropertyvalue)).into() } - unsafe extern "system" fn SetAccountInformation(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn SetAccountInformation(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSCEPSetup_Impl::SetAccountInformation(this, core::mem::transmute(&bstrusername), core::mem::transmute(&bstrpassword)).into() } - unsafe extern "system" fn IsMSCEPStoreEmpty(this: *mut core::ffi::c_void, pbempty: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn IsMSCEPStoreEmpty(this: *mut core::ffi::c_void, pbempty: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSCEPSetup_Impl::IsMSCEPStoreEmpty(this) { Ok(ok__) => { @@ -774,10 +588,7 @@ impl IMSCEPSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderNameList(this: *mut core::ffi::c_void, bexchange: super::super::Foundation::VARIANT_BOOL, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn GetProviderNameList(this: *mut core::ffi::c_void, bexchange: super::super::Foundation::VARIANT_BOOL, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSCEPSetup_Impl::GetProviderNameList(this, core::mem::transmute_copy(&bexchange)) { Ok(ok__) => { @@ -787,10 +598,7 @@ impl IMSCEPSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyLengthList(this: *mut core::ffi::c_void, bexchange: super::super::Foundation::VARIANT_BOOL, bstrprovidername: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn GetKeyLengthList(this: *mut core::ffi::c_void, bexchange: super::super::Foundation::VARIANT_BOOL, bstrprovidername: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSCEPSetup_Impl::GetKeyLengthList(this, core::mem::transmute_copy(&bexchange), core::mem::transmute(&bstrprovidername)) { Ok(ok__) => { @@ -800,24 +608,15 @@ impl IMSCEPSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Install(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn Install(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSCEPSetup_Impl::Install(this).into() } - unsafe extern "system" fn PreUnInstall(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn PreUnInstall(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSCEPSetup_Impl::PreUnInstall(this).into() } - unsafe extern "system" fn PostUnInstall(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSCEPSetup_Impl, - { + unsafe extern "system" fn PostUnInstall(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSCEPSetup_Impl::PostUnInstall(this).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/impl.rs index d165f4de44..54a0b7c520 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/impl.rs @@ -1,24 +1,15 @@ -pub trait IProtectionPolicyManagerInterop_Impl: Sized { +pub trait IProtectionPolicyManagerInterop_Impl: Sized + windows_core::IUnknownImpl { fn RequestAccessForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetForWindow(&self, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, result: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IProtectionPolicyManagerInterop {} impl IProtectionPolicyManagerInterop_Vtbl { - pub const fn new() -> IProtectionPolicyManagerInterop_Vtbl - where - Identity: IProtectionPolicyManagerInterop_Impl, - { - unsafe extern "system" fn RequestAccessForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, targetidentity: core::mem::MaybeUninit, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop_Impl, - { + pub const fn new() -> IProtectionPolicyManagerInterop_Vtbl { + unsafe extern "system" fn RequestAccessForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, targetidentity: core::mem::MaybeUninit, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop_Impl::RequestAccessForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute(&sourceidentity), core::mem::transmute(&targetidentity), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop_Impl, - { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&result)).into() } @@ -32,7 +23,7 @@ impl IProtectionPolicyManagerInterop_Vtbl { iid == &::IID } } -pub trait IProtectionPolicyManagerInterop2_Impl: Sized { +pub trait IProtectionPolicyManagerInterop2_Impl: Sized + windows_core::IUnknownImpl { fn RequestAccessForAppWithWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RequestAccessWithAuditingInfoForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfounk: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RequestAccessWithMessageForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfounk: Option<&windows_core::IUnknown>, messagefromapp: &windows_core::HSTRING, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -41,42 +32,24 @@ pub trait IProtectionPolicyManagerInterop2_Impl: Sized { } impl windows_core::RuntimeName for IProtectionPolicyManagerInterop2 {} impl IProtectionPolicyManagerInterop2_Vtbl { - pub const fn new() -> IProtectionPolicyManagerInterop2_Vtbl - where - Identity: IProtectionPolicyManagerInterop2_Impl, - { - unsafe extern "system" fn RequestAccessForAppWithWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, apppackagefamilyname: core::mem::MaybeUninit, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop2_Impl, - { + pub const fn new() -> IProtectionPolicyManagerInterop2_Vtbl { + unsafe extern "system" fn RequestAccessForAppWithWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, apppackagefamilyname: core::mem::MaybeUninit, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop2_Impl::RequestAccessForAppWithWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute(&sourceidentity), core::mem::transmute(&apppackagefamilyname), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } - unsafe extern "system" fn RequestAccessWithAuditingInfoForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, targetidentity: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop2_Impl, - { + unsafe extern "system" fn RequestAccessWithAuditingInfoForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, targetidentity: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop2_Impl::RequestAccessWithAuditingInfoForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute(&sourceidentity), core::mem::transmute(&targetidentity), windows_core::from_raw_borrowed(&auditinfounk), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } - unsafe extern "system" fn RequestAccessWithMessageForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, targetidentity: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop2_Impl, - { + unsafe extern "system" fn RequestAccessWithMessageForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, targetidentity: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop2_Impl::RequestAccessWithMessageForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute(&sourceidentity), core::mem::transmute(&targetidentity), windows_core::from_raw_borrowed(&auditinfounk), core::mem::transmute(&messagefromapp), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } - unsafe extern "system" fn RequestAccessForAppWithAuditingInfoForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, apppackagefamilyname: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop2_Impl, - { + unsafe extern "system" fn RequestAccessForAppWithAuditingInfoForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, apppackagefamilyname: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop2_Impl::RequestAccessForAppWithAuditingInfoForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute(&sourceidentity), core::mem::transmute(&apppackagefamilyname), windows_core::from_raw_borrowed(&auditinfounk), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } - unsafe extern "system" fn RequestAccessForAppWithMessageForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, apppackagefamilyname: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop2_Impl, - { + unsafe extern "system" fn RequestAccessForAppWithMessageForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, apppackagefamilyname: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop2_Impl::RequestAccessForAppWithMessageForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute(&sourceidentity), core::mem::transmute(&apppackagefamilyname), windows_core::from_raw_borrowed(&auditinfounk), core::mem::transmute(&messagefromapp), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } @@ -93,7 +66,7 @@ impl IProtectionPolicyManagerInterop2_Vtbl { iid == &::IID } } -pub trait IProtectionPolicyManagerInterop3_Impl: Sized { +pub trait IProtectionPolicyManagerInterop3_Impl: Sized + windows_core::IUnknownImpl { fn RequestAccessWithBehaviorForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, targetidentity: &windows_core::HSTRING, auditinfounk: Option<&windows_core::IUnknown>, messagefromapp: &windows_core::HSTRING, behavior: u32, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RequestAccessForAppWithBehaviorForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceidentity: &windows_core::HSTRING, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: Option<&windows_core::IUnknown>, messagefromapp: &windows_core::HSTRING, behavior: u32, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RequestAccessToFilesForAppForWindowAsync(&self, appwindow: super::super::Foundation::HWND, sourceitemlistunk: Option<&windows_core::IUnknown>, apppackagefamilyname: &windows_core::HSTRING, auditinfounk: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -103,49 +76,28 @@ pub trait IProtectionPolicyManagerInterop3_Impl: Sized { } impl windows_core::RuntimeName for IProtectionPolicyManagerInterop3 {} impl IProtectionPolicyManagerInterop3_Vtbl { - pub const fn new() -> IProtectionPolicyManagerInterop3_Vtbl - where - Identity: IProtectionPolicyManagerInterop3_Impl, - { - unsafe extern "system" fn RequestAccessWithBehaviorForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, targetidentity: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, behavior: u32, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop3_Impl, - { + pub const fn new() -> IProtectionPolicyManagerInterop3_Vtbl { + unsafe extern "system" fn RequestAccessWithBehaviorForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, targetidentity: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, behavior: u32, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop3_Impl::RequestAccessWithBehaviorForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute(&sourceidentity), core::mem::transmute(&targetidentity), windows_core::from_raw_borrowed(&auditinfounk), core::mem::transmute(&messagefromapp), core::mem::transmute_copy(&behavior), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } - unsafe extern "system" fn RequestAccessForAppWithBehaviorForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, apppackagefamilyname: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, behavior: u32, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop3_Impl, - { + unsafe extern "system" fn RequestAccessForAppWithBehaviorForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: core::mem::MaybeUninit, apppackagefamilyname: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, behavior: u32, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop3_Impl::RequestAccessForAppWithBehaviorForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute(&sourceidentity), core::mem::transmute(&apppackagefamilyname), windows_core::from_raw_borrowed(&auditinfounk), core::mem::transmute(&messagefromapp), core::mem::transmute_copy(&behavior), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } - unsafe extern "system" fn RequestAccessToFilesForAppForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceitemlistunk: *mut core::ffi::c_void, apppackagefamilyname: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop3_Impl, - { + unsafe extern "system" fn RequestAccessToFilesForAppForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceitemlistunk: *mut core::ffi::c_void, apppackagefamilyname: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop3_Impl::RequestAccessToFilesForAppForWindowAsync(this, core::mem::transmute_copy(&appwindow), windows_core::from_raw_borrowed(&sourceitemlistunk), core::mem::transmute(&apppackagefamilyname), windows_core::from_raw_borrowed(&auditinfounk), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } - unsafe extern "system" fn RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceitemlistunk: *mut core::ffi::c_void, apppackagefamilyname: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, behavior: u32, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop3_Impl, - { + unsafe extern "system" fn RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceitemlistunk: *mut core::ffi::c_void, apppackagefamilyname: core::mem::MaybeUninit, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, behavior: u32, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop3_Impl::RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync(this, core::mem::transmute_copy(&appwindow), windows_core::from_raw_borrowed(&sourceitemlistunk), core::mem::transmute(&apppackagefamilyname), windows_core::from_raw_borrowed(&auditinfounk), core::mem::transmute(&messagefromapp), core::mem::transmute_copy(&behavior), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } - unsafe extern "system" fn RequestAccessToFilesForProcessForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceitemlistunk: *mut core::ffi::c_void, processid: u32, auditinfounk: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop3_Impl, - { + unsafe extern "system" fn RequestAccessToFilesForProcessForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceitemlistunk: *mut core::ffi::c_void, processid: u32, auditinfounk: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop3_Impl::RequestAccessToFilesForProcessForWindowAsync(this, core::mem::transmute_copy(&appwindow), windows_core::from_raw_borrowed(&sourceitemlistunk), core::mem::transmute_copy(&processid), windows_core::from_raw_borrowed(&auditinfounk), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } - unsafe extern "system" fn RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceitemlistunk: *mut core::ffi::c_void, processid: u32, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, behavior: u32, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtectionPolicyManagerInterop3_Impl, - { + unsafe extern "system" fn RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceitemlistunk: *mut core::ffi::c_void, processid: u32, auditinfounk: *mut core::ffi::c_void, messagefromapp: core::mem::MaybeUninit, behavior: u32, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProtectionPolicyManagerInterop3_Impl::RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync(this, core::mem::transmute_copy(&appwindow), windows_core::from_raw_borrowed(&sourceitemlistunk), core::mem::transmute_copy(&processid), windows_core::from_raw_borrowed(&auditinfounk), core::mem::transmute(&messagefromapp), core::mem::transmute_copy(&behavior), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/impl.rs index 8e05609a3e..47bc2ecfee 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/impl.rs @@ -1,4 +1,4 @@ -pub trait IAccountingProviderConfig_Impl: Sized { +pub trait IAccountingProviderConfig_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pszmachinename: &windows_core::PCWSTR) -> windows_core::Result; fn Uninitialize(&self, uconnectionparam: usize) -> windows_core::Result<()>; fn Configure(&self, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, dwflags: u32, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()>; @@ -7,14 +7,8 @@ pub trait IAccountingProviderConfig_Impl: Sized { } impl windows_core::RuntimeName for IAccountingProviderConfig {} impl IAccountingProviderConfig_Vtbl { - pub const fn new() -> IAccountingProviderConfig_Vtbl - where - Identity: IAccountingProviderConfig_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszmachinename: windows_core::PCWSTR, puconnectionparam: *mut usize) -> windows_core::HRESULT - where - Identity: IAccountingProviderConfig_Impl, - { + pub const fn new() -> IAccountingProviderConfig_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszmachinename: windows_core::PCWSTR, puconnectionparam: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccountingProviderConfig_Impl::Initialize(this, core::mem::transmute(&pszmachinename)) { Ok(ok__) => { @@ -24,31 +18,19 @@ impl IAccountingProviderConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void, uconnectionparam: usize) -> windows_core::HRESULT - where - Identity: IAccountingProviderConfig_Impl, - { + unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void, uconnectionparam: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccountingProviderConfig_Impl::Uninitialize(this, core::mem::transmute_copy(&uconnectionparam)).into() } - unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, dwflags: u32, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT - where - Identity: IAccountingProviderConfig_Impl, - { + unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, dwflags: u32, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccountingProviderConfig_Impl::Configure(this, core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ureserved1), core::mem::transmute_copy(&ureserved2)).into() } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT - where - Identity: IAccountingProviderConfig_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccountingProviderConfig_Impl::Activate(this, core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&ureserved1), core::mem::transmute_copy(&ureserved2)).into() } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT - where - Identity: IAccountingProviderConfig_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccountingProviderConfig_Impl::Deactivate(this, core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&ureserved1), core::mem::transmute_copy(&ureserved2)).into() } @@ -65,7 +47,7 @@ impl IAccountingProviderConfig_Vtbl { iid == &::IID } } -pub trait IAuthenticationProviderConfig_Impl: Sized { +pub trait IAuthenticationProviderConfig_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pszmachinename: &windows_core::PCWSTR) -> windows_core::Result; fn Uninitialize(&self, uconnectionparam: usize) -> windows_core::Result<()>; fn Configure(&self, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, dwflags: u32, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()>; @@ -74,14 +56,8 @@ pub trait IAuthenticationProviderConfig_Impl: Sized { } impl windows_core::RuntimeName for IAuthenticationProviderConfig {} impl IAuthenticationProviderConfig_Vtbl { - pub const fn new() -> IAuthenticationProviderConfig_Vtbl - where - Identity: IAuthenticationProviderConfig_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszmachinename: windows_core::PCWSTR, puconnectionparam: *mut usize) -> windows_core::HRESULT - where - Identity: IAuthenticationProviderConfig_Impl, - { + pub const fn new() -> IAuthenticationProviderConfig_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszmachinename: windows_core::PCWSTR, puconnectionparam: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAuthenticationProviderConfig_Impl::Initialize(this, core::mem::transmute(&pszmachinename)) { Ok(ok__) => { @@ -91,31 +67,19 @@ impl IAuthenticationProviderConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void, uconnectionparam: usize) -> windows_core::HRESULT - where - Identity: IAuthenticationProviderConfig_Impl, - { + unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void, uconnectionparam: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAuthenticationProviderConfig_Impl::Uninitialize(this, core::mem::transmute_copy(&uconnectionparam)).into() } - unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, dwflags: u32, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT - where - Identity: IAuthenticationProviderConfig_Impl, - { + unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, dwflags: u32, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAuthenticationProviderConfig_Impl::Configure(this, core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ureserved1), core::mem::transmute_copy(&ureserved2)).into() } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT - where - Identity: IAuthenticationProviderConfig_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAuthenticationProviderConfig_Impl::Activate(this, core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&ureserved1), core::mem::transmute_copy(&ureserved2)).into() } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT - where - Identity: IAuthenticationProviderConfig_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAuthenticationProviderConfig_Impl::Deactivate(this, core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&ureserved1), core::mem::transmute_copy(&ureserved2)).into() } @@ -132,7 +96,7 @@ impl IAuthenticationProviderConfig_Vtbl { iid == &::IID } } -pub trait IEAPProviderConfig_Impl: Sized { +pub trait IEAPProviderConfig_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pszmachinename: &windows_core::PCWSTR, dweaptypeid: u32) -> windows_core::Result; fn Uninitialize(&self, dweaptypeid: u32, uconnectionparam: usize) -> windows_core::Result<()>; fn ServerInvokeConfigUI(&self, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, ureserved1: usize, ureserved2: usize) -> windows_core::Result<()>; @@ -141,14 +105,8 @@ pub trait IEAPProviderConfig_Impl: Sized { } impl windows_core::RuntimeName for IEAPProviderConfig {} impl IEAPProviderConfig_Vtbl { - pub const fn new() -> IEAPProviderConfig_Vtbl - where - Identity: IEAPProviderConfig_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszmachinename: windows_core::PCWSTR, dweaptypeid: u32, puconnectionparam: *mut usize) -> windows_core::HRESULT - where - Identity: IEAPProviderConfig_Impl, - { + pub const fn new() -> IEAPProviderConfig_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszmachinename: windows_core::PCWSTR, dweaptypeid: u32, puconnectionparam: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEAPProviderConfig_Impl::Initialize(this, core::mem::transmute(&pszmachinename), core::mem::transmute_copy(&dweaptypeid)) { Ok(ok__) => { @@ -158,31 +116,19 @@ impl IEAPProviderConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize) -> windows_core::HRESULT - where - Identity: IEAPProviderConfig_Impl, - { + unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEAPProviderConfig_Impl::Uninitialize(this, core::mem::transmute_copy(&dweaptypeid), core::mem::transmute_copy(&uconnectionparam)).into() } - unsafe extern "system" fn ServerInvokeConfigUI(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT - where - Identity: IEAPProviderConfig_Impl, - { + unsafe extern "system" fn ServerInvokeConfigUI(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, ureserved1: usize, ureserved2: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEAPProviderConfig_Impl::ServerInvokeConfigUI(this, core::mem::transmute_copy(&dweaptypeid), core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&ureserved1), core::mem::transmute_copy(&ureserved2)).into() } - unsafe extern "system" fn RouterInvokeConfigUI(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwndparent: super::super::Foundation::HWND, dwflags: u32, pconnectiondatain: *const u8, dwsizeofconnectiondatain: u32, ppconnectiondataout: *mut *mut u8, pdwsizeofconnectiondataout: *mut u32) -> windows_core::HRESULT - where - Identity: IEAPProviderConfig_Impl, - { + unsafe extern "system" fn RouterInvokeConfigUI(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwndparent: super::super::Foundation::HWND, dwflags: u32, pconnectiondatain: *const u8, dwsizeofconnectiondatain: u32, ppconnectiondataout: *mut *mut u8, pdwsizeofconnectiondataout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEAPProviderConfig_Impl::RouterInvokeConfigUI(this, core::mem::transmute_copy(&dweaptypeid), core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pconnectiondatain), core::mem::transmute_copy(&dwsizeofconnectiondatain), core::mem::transmute_copy(&ppconnectiondataout), core::mem::transmute_copy(&pdwsizeofconnectiondataout)).into() } - unsafe extern "system" fn RouterInvokeCredentialsUI(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwndparent: super::super::Foundation::HWND, dwflags: u32, pconnectiondatain: *const u8, dwsizeofconnectiondatain: u32, puserdatain: *const u8, dwsizeofuserdatain: u32, ppuserdataout: *mut *mut u8, pdwsizeofuserdataout: *mut u32) -> windows_core::HRESULT - where - Identity: IEAPProviderConfig_Impl, - { + unsafe extern "system" fn RouterInvokeCredentialsUI(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwndparent: super::super::Foundation::HWND, dwflags: u32, pconnectiondatain: *const u8, dwsizeofconnectiondatain: u32, puserdatain: *const u8, dwsizeofuserdatain: u32, ppuserdataout: *mut *mut u8, pdwsizeofuserdataout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEAPProviderConfig_Impl::RouterInvokeCredentialsUI(this, core::mem::transmute_copy(&dweaptypeid), core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pconnectiondatain), core::mem::transmute_copy(&dwsizeofconnectiondatain), core::mem::transmute_copy(&puserdatain), core::mem::transmute_copy(&dwsizeofuserdatain), core::mem::transmute_copy(&ppuserdataout), core::mem::transmute_copy(&pdwsizeofuserdataout)).into() } @@ -205,21 +151,12 @@ pub trait IEAPProviderConfig2_Impl: Sized + IEAPProviderConfig_Impl { } impl windows_core::RuntimeName for IEAPProviderConfig2 {} impl IEAPProviderConfig2_Vtbl { - pub const fn new() -> IEAPProviderConfig2_Vtbl - where - Identity: IEAPProviderConfig2_Impl, - { - unsafe extern "system" fn ServerInvokeConfigUI2(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, pconfigdatain: *const u8, dwsizeofconfigdatain: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> windows_core::HRESULT - where - Identity: IEAPProviderConfig2_Impl, - { + pub const fn new() -> IEAPProviderConfig2_Vtbl { + unsafe extern "system" fn ServerInvokeConfigUI2(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, pconfigdatain: *const u8, dwsizeofconfigdatain: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEAPProviderConfig2_Impl::ServerInvokeConfigUI2(this, core::mem::transmute_copy(&dweaptypeid), core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&pconfigdatain), core::mem::transmute_copy(&dwsizeofconfigdatain), core::mem::transmute_copy(&ppconfigdataout), core::mem::transmute_copy(&pdwsizeofconfigdataout)).into() } - unsafe extern "system" fn GetGlobalConfig(this: *mut core::ffi::c_void, dweaptypeid: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> windows_core::HRESULT - where - Identity: IEAPProviderConfig2_Impl, - { + unsafe extern "system" fn GetGlobalConfig(this: *mut core::ffi::c_void, dweaptypeid: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEAPProviderConfig2_Impl::GetGlobalConfig(this, core::mem::transmute_copy(&dweaptypeid), core::mem::transmute_copy(&ppconfigdataout), core::mem::transmute_copy(&pdwsizeofconfigdataout)).into() } @@ -238,14 +175,8 @@ pub trait IEAPProviderConfig3_Impl: Sized + IEAPProviderConfig2_Impl { } impl windows_core::RuntimeName for IEAPProviderConfig3 {} impl IEAPProviderConfig3_Vtbl { - pub const fn new() -> IEAPProviderConfig3_Vtbl - where - Identity: IEAPProviderConfig3_Impl, - { - unsafe extern "system" fn ServerInvokeCertificateConfigUI(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, pconfigdatain: *const u8, dwsizeofconfigdatain: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32, ureserved: usize) -> windows_core::HRESULT - where - Identity: IEAPProviderConfig3_Impl, - { + pub const fn new() -> IEAPProviderConfig3_Vtbl { + unsafe extern "system" fn ServerInvokeCertificateConfigUI(this: *mut core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, pconfigdatain: *const u8, dwsizeofconfigdatain: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32, ureserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEAPProviderConfig3_Impl::ServerInvokeCertificateConfigUI(this, core::mem::transmute_copy(&dweaptypeid), core::mem::transmute_copy(&uconnectionparam), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&pconfigdatain), core::mem::transmute_copy(&dwsizeofconfigdatain), core::mem::transmute_copy(&ppconfigdataout), core::mem::transmute_copy(&pdwsizeofconfigdataout), core::mem::transmute_copy(&ureserved)).into() } @@ -258,27 +189,18 @@ impl IEAPProviderConfig3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IRouterProtocolConfig_Impl: Sized { +pub trait IRouterProtocolConfig_Impl: Sized + windows_core::IUnknownImpl { fn AddProtocol(&self, pszmachinename: &windows_core::PCWSTR, dwtransportid: u32, dwprotocolid: u32, hwnd: super::super::Foundation::HWND, dwflags: u32, prouter: Option<&windows_core::IUnknown>, ureserved1: usize) -> windows_core::Result<()>; fn RemoveProtocol(&self, pszmachinename: &windows_core::PCWSTR, dwtransportid: u32, dwprotocolid: u32, hwnd: super::super::Foundation::HWND, dwflags: u32, prouter: Option<&windows_core::IUnknown>, ureserved1: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRouterProtocolConfig {} impl IRouterProtocolConfig_Vtbl { - pub const fn new() -> IRouterProtocolConfig_Vtbl - where - Identity: IRouterProtocolConfig_Impl, - { - unsafe extern "system" fn AddProtocol(this: *mut core::ffi::c_void, pszmachinename: windows_core::PCWSTR, dwtransportid: u32, dwprotocolid: u32, hwnd: super::super::Foundation::HWND, dwflags: u32, prouter: *mut core::ffi::c_void, ureserved1: usize) -> windows_core::HRESULT - where - Identity: IRouterProtocolConfig_Impl, - { + pub const fn new() -> IRouterProtocolConfig_Vtbl { + unsafe extern "system" fn AddProtocol(this: *mut core::ffi::c_void, pszmachinename: windows_core::PCWSTR, dwtransportid: u32, dwprotocolid: u32, hwnd: super::super::Foundation::HWND, dwflags: u32, prouter: *mut core::ffi::c_void, ureserved1: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRouterProtocolConfig_Impl::AddProtocol(this, core::mem::transmute(&pszmachinename), core::mem::transmute_copy(&dwtransportid), core::mem::transmute_copy(&dwprotocolid), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&prouter), core::mem::transmute_copy(&ureserved1)).into() } - unsafe extern "system" fn RemoveProtocol(this: *mut core::ffi::c_void, pszmachinename: windows_core::PCWSTR, dwtransportid: u32, dwprotocolid: u32, hwnd: super::super::Foundation::HWND, dwflags: u32, prouter: *mut core::ffi::c_void, ureserved1: usize) -> windows_core::HRESULT - where - Identity: IRouterProtocolConfig_Impl, - { + unsafe extern "system" fn RemoveProtocol(this: *mut core::ffi::c_void, pszmachinename: windows_core::PCWSTR, dwtransportid: u32, dwprotocolid: u32, hwnd: super::super::Foundation::HWND, dwflags: u32, prouter: *mut core::ffi::c_void, ureserved1: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRouterProtocolConfig_Impl::RemoveProtocol(this, core::mem::transmute(&pszmachinename), core::mem::transmute_copy(&dwtransportid), core::mem::transmute_copy(&dwprotocolid), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&prouter), core::mem::transmute_copy(&ureserved1)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Security/Isolation/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Isolation/impl.rs index 5ee8bbe2eb..45fdecfefe 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Isolation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Isolation/impl.rs @@ -1,16 +1,10 @@ -pub trait IIsolatedAppLauncher_Impl: Sized { +pub trait IIsolatedAppLauncher_Impl: Sized + windows_core::IUnknownImpl { fn Launch(&self, appusermodelid: &windows_core::PCWSTR, arguments: &windows_core::PCWSTR, telemetryparameters: *const IsolatedAppLauncherTelemetryParameters) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IIsolatedAppLauncher {} impl IIsolatedAppLauncher_Vtbl { - pub const fn new() -> IIsolatedAppLauncher_Vtbl - where - Identity: IIsolatedAppLauncher_Impl, - { - unsafe extern "system" fn Launch(this: *mut core::ffi::c_void, appusermodelid: windows_core::PCWSTR, arguments: windows_core::PCWSTR, telemetryparameters: *const IsolatedAppLauncherTelemetryParameters) -> windows_core::HRESULT - where - Identity: IIsolatedAppLauncher_Impl, - { + pub const fn new() -> IIsolatedAppLauncher_Vtbl { + unsafe extern "system" fn Launch(this: *mut core::ffi::c_void, appusermodelid: windows_core::PCWSTR, arguments: windows_core::PCWSTR, telemetryparameters: *const IsolatedAppLauncherTelemetryParameters) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsolatedAppLauncher_Impl::Launch(this, core::mem::transmute(&appusermodelid), core::mem::transmute(&arguments), core::mem::transmute_copy(&telemetryparameters)).into() } @@ -20,7 +14,7 @@ impl IIsolatedAppLauncher_Vtbl { iid == &::IID } } -pub trait IIsolatedProcessLauncher_Impl: Sized { +pub trait IIsolatedProcessLauncher_Impl: Sized + windows_core::IUnknownImpl { fn LaunchProcess(&self, process: &windows_core::PCWSTR, arguments: &windows_core::PCWSTR, workingdirectory: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ShareDirectory(&self, hostpath: &windows_core::PCWSTR, containerpath: &windows_core::PCWSTR, readonly: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetContainerGuid(&self) -> windows_core::Result; @@ -29,28 +23,16 @@ pub trait IIsolatedProcessLauncher_Impl: Sized { } impl windows_core::RuntimeName for IIsolatedProcessLauncher {} impl IIsolatedProcessLauncher_Vtbl { - pub const fn new() -> IIsolatedProcessLauncher_Vtbl - where - Identity: IIsolatedProcessLauncher_Impl, - { - unsafe extern "system" fn LaunchProcess(this: *mut core::ffi::c_void, process: windows_core::PCWSTR, arguments: windows_core::PCWSTR, workingdirectory: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IIsolatedProcessLauncher_Impl, - { + pub const fn new() -> IIsolatedProcessLauncher_Vtbl { + unsafe extern "system" fn LaunchProcess(this: *mut core::ffi::c_void, process: windows_core::PCWSTR, arguments: windows_core::PCWSTR, workingdirectory: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsolatedProcessLauncher_Impl::LaunchProcess(this, core::mem::transmute(&process), core::mem::transmute(&arguments), core::mem::transmute(&workingdirectory)).into() } - unsafe extern "system" fn ShareDirectory(this: *mut core::ffi::c_void, hostpath: windows_core::PCWSTR, containerpath: windows_core::PCWSTR, readonly: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IIsolatedProcessLauncher_Impl, - { + unsafe extern "system" fn ShareDirectory(this: *mut core::ffi::c_void, hostpath: windows_core::PCWSTR, containerpath: windows_core::PCWSTR, readonly: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsolatedProcessLauncher_Impl::ShareDirectory(this, core::mem::transmute(&hostpath), core::mem::transmute(&containerpath), core::mem::transmute_copy(&readonly)).into() } - unsafe extern "system" fn GetContainerGuid(this: *mut core::ffi::c_void, guid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IIsolatedProcessLauncher_Impl, - { + unsafe extern "system" fn GetContainerGuid(this: *mut core::ffi::c_void, guid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsolatedProcessLauncher_Impl::GetContainerGuid(this) { Ok(ok__) => { @@ -60,17 +42,11 @@ impl IIsolatedProcessLauncher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AllowSetForegroundAccess(this: *mut core::ffi::c_void, pid: u32) -> windows_core::HRESULT - where - Identity: IIsolatedProcessLauncher_Impl, - { + unsafe extern "system" fn AllowSetForegroundAccess(this: *mut core::ffi::c_void, pid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsolatedProcessLauncher_Impl::AllowSetForegroundAccess(this, core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn IsContainerRunning(this: *mut core::ffi::c_void, running: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IIsolatedProcessLauncher_Impl, - { + unsafe extern "system" fn IsContainerRunning(this: *mut core::ffi::c_void, running: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsolatedProcessLauncher_Impl::IsContainerRunning(this) { Ok(ok__) => { @@ -98,14 +74,8 @@ pub trait IIsolatedProcessLauncher2_Impl: Sized + IIsolatedProcessLauncher_Impl } impl windows_core::RuntimeName for IIsolatedProcessLauncher2 {} impl IIsolatedProcessLauncher2_Vtbl { - pub const fn new() -> IIsolatedProcessLauncher2_Vtbl - where - Identity: IIsolatedProcessLauncher2_Impl, - { - unsafe extern "system" fn LaunchProcess2(this: *mut core::ffi::c_void, process: windows_core::PCWSTR, arguments: windows_core::PCWSTR, workingdirectory: windows_core::PCWSTR, correlationguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IIsolatedProcessLauncher2_Impl, - { + pub const fn new() -> IIsolatedProcessLauncher2_Vtbl { + unsafe extern "system" fn LaunchProcess2(this: *mut core::ffi::c_void, process: windows_core::PCWSTR, arguments: windows_core::PCWSTR, workingdirectory: windows_core::PCWSTR, correlationguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsolatedProcessLauncher2_Impl::LaunchProcess2(this, core::mem::transmute(&process), core::mem::transmute(&arguments), core::mem::transmute(&workingdirectory), core::mem::transmute_copy(&correlationguid)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Security/Tpm/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Tpm/impl.rs index 9d2ed85152..e8846d83b3 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Tpm/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Tpm/impl.rs @@ -1,17 +1,11 @@ -pub trait ITpmVirtualSmartCardManager_Impl: Sized { +pub trait ITpmVirtualSmartCardManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateVirtualSmartCard(&self, pszfriendlyname: &windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: Option<&ITpmVirtualSmartCardManagerStatusCallback>, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn DestroyVirtualSmartCard(&self, pszinstanceid: &windows_core::PCWSTR, pstatuscallback: Option<&ITpmVirtualSmartCardManagerStatusCallback>) -> windows_core::Result; } impl windows_core::RuntimeName for ITpmVirtualSmartCardManager {} impl ITpmVirtualSmartCardManager_Vtbl { - pub const fn new() -> ITpmVirtualSmartCardManager_Vtbl - where - Identity: ITpmVirtualSmartCardManager_Impl, - { - unsafe extern "system" fn CreateVirtualSmartCard(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITpmVirtualSmartCardManager_Impl, - { + pub const fn new() -> ITpmVirtualSmartCardManager_Vtbl { + unsafe extern "system" fn CreateVirtualSmartCard(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITpmVirtualSmartCardManager_Impl::CreateVirtualSmartCard( this, @@ -32,10 +26,7 @@ impl ITpmVirtualSmartCardManager_Vtbl { ) .into() } - unsafe extern "system" fn DestroyVirtualSmartCard(this: *mut core::ffi::c_void, pszinstanceid: windows_core::PCWSTR, pstatuscallback: *mut core::ffi::c_void, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITpmVirtualSmartCardManager_Impl, - { + unsafe extern "system" fn DestroyVirtualSmartCard(this: *mut core::ffi::c_void, pszinstanceid: windows_core::PCWSTR, pstatuscallback: *mut core::ffi::c_void, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITpmVirtualSmartCardManager_Impl::DestroyVirtualSmartCard(this, core::mem::transmute(&pszinstanceid), windows_core::from_raw_borrowed(&pstatuscallback)) { Ok(ok__) => { @@ -60,14 +51,8 @@ pub trait ITpmVirtualSmartCardManager2_Impl: Sized + ITpmVirtualSmartCardManager } impl windows_core::RuntimeName for ITpmVirtualSmartCardManager2 {} impl ITpmVirtualSmartCardManager2_Vtbl { - pub const fn new() -> ITpmVirtualSmartCardManager2_Vtbl - where - Identity: ITpmVirtualSmartCardManager2_Impl, - { - unsafe extern "system" fn CreateVirtualSmartCardWithPinPolicy(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITpmVirtualSmartCardManager2_Impl, - { + pub const fn new() -> ITpmVirtualSmartCardManager2_Vtbl { + unsafe extern "system" fn CreateVirtualSmartCardWithPinPolicy(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITpmVirtualSmartCardManager2_Impl::CreateVirtualSmartCardWithPinPolicy( this, @@ -104,14 +89,8 @@ pub trait ITpmVirtualSmartCardManager3_Impl: Sized + ITpmVirtualSmartCardManager } impl windows_core::RuntimeName for ITpmVirtualSmartCardManager3 {} impl ITpmVirtualSmartCardManager3_Vtbl { - pub const fn new() -> ITpmVirtualSmartCardManager3_Vtbl - where - Identity: ITpmVirtualSmartCardManager3_Impl, - { - unsafe extern "system" fn CreateVirtualSmartCardWithAttestation(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, attestationtype: TPMVSC_ATTESTATION_TYPE, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITpmVirtualSmartCardManager3_Impl, - { + pub const fn new() -> ITpmVirtualSmartCardManager3_Vtbl { + unsafe extern "system" fn CreateVirtualSmartCardWithAttestation(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, attestationtype: TPMVSC_ATTESTATION_TYPE, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITpmVirtualSmartCardManager3_Impl::CreateVirtualSmartCardWithAttestation( this, @@ -147,27 +126,18 @@ impl ITpmVirtualSmartCardManager3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ITpmVirtualSmartCardManagerStatusCallback_Impl: Sized { +pub trait ITpmVirtualSmartCardManagerStatusCallback_Impl: Sized + windows_core::IUnknownImpl { fn ReportProgress(&self, status: TPMVSCMGR_STATUS) -> windows_core::Result<()>; fn ReportError(&self, error: TPMVSCMGR_ERROR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITpmVirtualSmartCardManagerStatusCallback {} impl ITpmVirtualSmartCardManagerStatusCallback_Vtbl { - pub const fn new() -> ITpmVirtualSmartCardManagerStatusCallback_Vtbl - where - Identity: ITpmVirtualSmartCardManagerStatusCallback_Impl, - { - unsafe extern "system" fn ReportProgress(this: *mut core::ffi::c_void, status: TPMVSCMGR_STATUS) -> windows_core::HRESULT - where - Identity: ITpmVirtualSmartCardManagerStatusCallback_Impl, - { + pub const fn new() -> ITpmVirtualSmartCardManagerStatusCallback_Vtbl { + unsafe extern "system" fn ReportProgress(this: *mut core::ffi::c_void, status: TPMVSCMGR_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITpmVirtualSmartCardManagerStatusCallback_Impl::ReportProgress(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn ReportError(this: *mut core::ffi::c_void, error: TPMVSCMGR_ERROR) -> windows_core::HRESULT - where - Identity: ITpmVirtualSmartCardManagerStatusCallback_Impl, - { + unsafe extern "system" fn ReportError(this: *mut core::ffi::c_void, error: TPMVSCMGR_ERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITpmVirtualSmartCardManagerStatusCallback_Impl::ReportError(this, core::mem::transmute_copy(&error)).into() } 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 796992cf11..1cd7924f75 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/impl.rs @@ -1,16 +1,10 @@ -pub trait IDedupBackupSupport_Impl: Sized { +pub trait IDedupBackupSupport_Impl: Sized + windows_core::IUnknownImpl { fn RestoreFiles(&self, numberoffiles: u32, filefullpaths: *const windows_core::BSTR, store: Option<&IDedupReadFileCallback>, flags: u32, fileresults: *mut windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDedupBackupSupport {} impl IDedupBackupSupport_Vtbl { - pub const fn new() -> IDedupBackupSupport_Vtbl - where - Identity: IDedupBackupSupport_Impl, - { - unsafe extern "system" fn RestoreFiles(this: *mut core::ffi::c_void, numberoffiles: u32, filefullpaths: *const core::mem::MaybeUninit, store: *mut core::ffi::c_void, flags: u32, fileresults: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IDedupBackupSupport_Impl, - { + pub const fn new() -> IDedupBackupSupport_Vtbl { + unsafe extern "system" fn RestoreFiles(this: *mut core::ffi::c_void, numberoffiles: u32, filefullpaths: *const core::mem::MaybeUninit, store: *mut core::ffi::c_void, flags: u32, fileresults: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupBackupSupport_Impl::RestoreFiles(this, core::mem::transmute_copy(&numberoffiles), core::mem::transmute_copy(&filefullpaths), windows_core::from_raw_borrowed(&store), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&fileresults)).into() } @@ -20,7 +14,7 @@ impl IDedupBackupSupport_Vtbl { iid == &::IID } } -pub trait IDedupChunkLibrary_Impl: Sized { +pub trait IDedupChunkLibrary_Impl: Sized + windows_core::IUnknownImpl { fn InitializeForPushBuffers(&self) -> windows_core::Result<()>; fn Uninitialize(&self) -> windows_core::Result<()>; fn SetParameter(&self, dwparamtype: u32, vparamvalue: &windows_core::VARIANT) -> windows_core::Result<()>; @@ -28,35 +22,20 @@ pub trait IDedupChunkLibrary_Impl: Sized { } impl windows_core::RuntimeName for IDedupChunkLibrary {} impl IDedupChunkLibrary_Vtbl { - pub const fn new() -> IDedupChunkLibrary_Vtbl - where - Identity: IDedupChunkLibrary_Impl, - { - unsafe extern "system" fn InitializeForPushBuffers(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDedupChunkLibrary_Impl, - { + pub const fn new() -> IDedupChunkLibrary_Vtbl { + unsafe extern "system" fn InitializeForPushBuffers(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupChunkLibrary_Impl::InitializeForPushBuffers(this).into() } - unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDedupChunkLibrary_Impl, - { + unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupChunkLibrary_Impl::Uninitialize(this).into() } - unsafe extern "system" fn SetParameter(this: *mut core::ffi::c_void, dwparamtype: u32, vparamvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDedupChunkLibrary_Impl, - { + unsafe extern "system" fn SetParameter(this: *mut core::ffi::c_void, dwparamtype: u32, vparamvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupChunkLibrary_Impl::SetParameter(this, core::mem::transmute_copy(&dwparamtype), core::mem::transmute(&vparamvalue)).into() } - unsafe extern "system" fn StartChunking(this: *mut core::ffi::c_void, iiditeratorinterfaceid: windows_core::GUID, ppchunksenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDedupChunkLibrary_Impl, - { + unsafe extern "system" fn StartChunking(this: *mut core::ffi::c_void, iiditeratorinterfaceid: windows_core::GUID, ppchunksenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupChunkLibrary_Impl::StartChunking(this, core::mem::transmute(&iiditeratorinterfaceid)) { Ok(ok__) => { @@ -79,7 +58,7 @@ impl IDedupChunkLibrary_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDedupDataPort_Impl: Sized { +pub trait IDedupDataPort_Impl: Sized + windows_core::IUnknownImpl { fn GetStatus(&self, pstatus: *mut DedupDataPortVolumeStatus, pdataheadroommb: *mut u32) -> windows_core::Result<()>; fn LookupChunks(&self, count: u32, phashes: *const DedupHash) -> windows_core::Result; fn InsertChunks(&self, chunkcount: u32, pchunkmetadata: *const DedupChunk, databytecount: u32, pchunkdata: *const u8) -> windows_core::Result; @@ -97,21 +76,12 @@ pub trait IDedupDataPort_Impl: Sized { impl windows_core::RuntimeName for IDedupDataPort {} #[cfg(feature = "Win32_System_Com")] impl IDedupDataPort_Vtbl { - pub const fn new() -> IDedupDataPort_Vtbl - where - Identity: IDedupDataPort_Impl, - { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut DedupDataPortVolumeStatus, pdataheadroommb: *mut u32) -> windows_core::HRESULT - where - Identity: IDedupDataPort_Impl, - { + pub const fn new() -> IDedupDataPort_Vtbl { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pstatus: *mut DedupDataPortVolumeStatus, pdataheadroommb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupDataPort_Impl::GetStatus(this, core::mem::transmute_copy(&pstatus), core::mem::transmute_copy(&pdataheadroommb)).into() } - unsafe extern "system" fn LookupChunks(this: *mut core::ffi::c_void, count: u32, phashes: *const DedupHash, prequestid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn LookupChunks(this: *mut core::ffi::c_void, count: u32, phashes: *const DedupHash, prequestid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupDataPort_Impl::LookupChunks(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&phashes)) { Ok(ok__) => { @@ -121,10 +91,7 @@ impl IDedupDataPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertChunks(this: *mut core::ffi::c_void, chunkcount: u32, pchunkmetadata: *const DedupChunk, databytecount: u32, pchunkdata: *const u8, prequestid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn InsertChunks(this: *mut core::ffi::c_void, chunkcount: u32, pchunkmetadata: *const DedupChunk, databytecount: u32, pchunkdata: *const u8, prequestid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupDataPort_Impl::InsertChunks(this, core::mem::transmute_copy(&chunkcount), core::mem::transmute_copy(&pchunkmetadata), core::mem::transmute_copy(&databytecount), core::mem::transmute_copy(&pchunkdata)) { Ok(ok__) => { @@ -134,10 +101,7 @@ impl IDedupDataPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertChunksWithStream(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 - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn InsertChunksWithStream(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupDataPort_Impl::InsertChunksWithStream(this, core::mem::transmute_copy(&chunkcount), core::mem::transmute_copy(&pchunkmetadata), core::mem::transmute_copy(&databytecount), windows_core::from_raw_borrowed(&pchunkdatastream)) { Ok(ok__) => { @@ -147,10 +111,7 @@ impl IDedupDataPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommitStreams(this: *mut core::ffi::c_void, streamcount: u32, pstreams: *const DedupStream, entrycount: u32, pentries: *const DedupStreamEntry, prequestid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn CommitStreams(this: *mut core::ffi::c_void, streamcount: u32, pstreams: *const DedupStream, entrycount: u32, pentries: *const DedupStreamEntry, prequestid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupDataPort_Impl::CommitStreams(this, core::mem::transmute_copy(&streamcount), core::mem::transmute_copy(&pstreams), core::mem::transmute_copy(&entrycount), core::mem::transmute_copy(&pentries)) { Ok(ok__) => { @@ -160,10 +121,7 @@ impl IDedupDataPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommitStreamsWithStream(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 - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn CommitStreamsWithStream(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupDataPort_Impl::CommitStreamsWithStream(this, core::mem::transmute_copy(&streamcount), core::mem::transmute_copy(&pstreams), core::mem::transmute_copy(&entrycount), windows_core::from_raw_borrowed(&pentriesstream)) { Ok(ok__) => { @@ -173,10 +131,7 @@ impl IDedupDataPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreams(this: *mut core::ffi::c_void, streamcount: u32, pstreampaths: *const core::mem::MaybeUninit, prequestid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn GetStreams(this: *mut core::ffi::c_void, streamcount: u32, pstreampaths: *const core::mem::MaybeUninit, prequestid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupDataPort_Impl::GetStreams(this, core::mem::transmute_copy(&streamcount), core::mem::transmute_copy(&pstreampaths)) { Ok(ok__) => { @@ -186,17 +141,11 @@ impl IDedupDataPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStreamsResults(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 - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn GetStreamsResults(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupDataPort_Impl::GetStreamsResults(this, core::mem::transmute(&requestid), core::mem::transmute_copy(&maxwaitms), core::mem::transmute_copy(&streamentryindex), core::mem::transmute_copy(&pstreamcount), core::mem::transmute_copy(&ppstreams), core::mem::transmute_copy(&pentrycount), core::mem::transmute_copy(&ppentries), core::mem::transmute_copy(&pstatus), core::mem::transmute_copy(&ppitemresults)).into() } - unsafe extern "system" fn GetChunks(this: *mut core::ffi::c_void, count: u32, phashes: *const DedupHash, prequestid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn GetChunks(this: *mut core::ffi::c_void, count: u32, phashes: *const DedupHash, prequestid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupDataPort_Impl::GetChunks(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&phashes)) { Ok(ok__) => { @@ -206,17 +155,11 @@ impl IDedupDataPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChunksResults(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 - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn GetChunksResults(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupDataPort_Impl::GetChunksResults(this, core::mem::transmute(&requestid), core::mem::transmute_copy(&maxwaitms), core::mem::transmute_copy(&chunkindex), core::mem::transmute_copy(&pchunkcount), core::mem::transmute_copy(&ppchunkmetadata), core::mem::transmute_copy(&pdatabytecount), core::mem::transmute_copy(&ppchunkdata), core::mem::transmute_copy(&pstatus), core::mem::transmute_copy(&ppitemresults)).into() } - unsafe extern "system" fn GetRequestStatus(this: *mut core::ffi::c_void, requestid: windows_core::GUID, pstatus: *mut DedupDataPortRequestStatus) -> windows_core::HRESULT - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn GetRequestStatus(this: *mut core::ffi::c_void, requestid: windows_core::GUID, pstatus: *mut DedupDataPortRequestStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupDataPort_Impl::GetRequestStatus(this, core::mem::transmute(&requestid)) { Ok(ok__) => { @@ -226,10 +169,7 @@ impl IDedupDataPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRequestResults(this: *mut core::ffi::c_void, 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::HRESULT - where - Identity: IDedupDataPort_Impl, - { + unsafe extern "system" fn GetRequestResults(this: *mut core::ffi::c_void, 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::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupDataPort_Impl::GetRequestResults(this, core::mem::transmute(&requestid), core::mem::transmute_copy(&maxwaitms), core::mem::transmute_copy(&pbatchresult), core::mem::transmute_copy(&pbatchcount), core::mem::transmute_copy(&pstatus), core::mem::transmute_copy(&ppitemresults)).into() } @@ -253,28 +193,19 @@ impl IDedupDataPort_Vtbl { iid == &::IID } } -pub trait IDedupDataPortManager_Impl: Sized { +pub trait IDedupDataPortManager_Impl: Sized + windows_core::IUnknownImpl { 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: &windows_core::BSTR) -> windows_core::Result; fn GetVolumeDataPort(&self, options: u32, path: &windows_core::BSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IDedupDataPortManager {} impl IDedupDataPortManager_Vtbl { - pub const fn new() -> IDedupDataPortManager_Vtbl - where - Identity: IDedupDataPortManager_Impl, - { - unsafe extern "system" fn GetConfiguration(this: *mut core::ffi::c_void, pminchunksize: *mut u32, pmaxchunksize: *mut u32, pchunkingalgorithm: *mut DedupChunkingAlgorithm, phashingalgorithm: *mut DedupHashingAlgorithm, pcompressionalgorithm: *mut DedupCompressionAlgorithm) -> windows_core::HRESULT - where - Identity: IDedupDataPortManager_Impl, - { + pub const fn new() -> IDedupDataPortManager_Vtbl { + unsafe extern "system" fn GetConfiguration(this: *mut core::ffi::c_void, pminchunksize: *mut u32, pmaxchunksize: *mut u32, pchunkingalgorithm: *mut DedupChunkingAlgorithm, phashingalgorithm: *mut DedupHashingAlgorithm, pcompressionalgorithm: *mut DedupCompressionAlgorithm) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupDataPortManager_Impl::GetConfiguration(this, 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(this: *mut core::ffi::c_void, options: u32, path: core::mem::MaybeUninit, pstatus: *mut DedupDataPortVolumeStatus) -> windows_core::HRESULT - where - Identity: IDedupDataPortManager_Impl, - { + unsafe extern "system" fn GetVolumeStatus(this: *mut core::ffi::c_void, options: u32, path: core::mem::MaybeUninit, pstatus: *mut DedupDataPortVolumeStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupDataPortManager_Impl::GetVolumeStatus(this, core::mem::transmute_copy(&options), core::mem::transmute(&path)) { Ok(ok__) => { @@ -284,10 +215,7 @@ impl IDedupDataPortManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVolumeDataPort(this: *mut core::ffi::c_void, options: u32, path: core::mem::MaybeUninit, ppdataport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDedupDataPortManager_Impl, - { + unsafe extern "system" fn GetVolumeDataPort(this: *mut core::ffi::c_void, options: u32, path: core::mem::MaybeUninit, ppdataport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDedupDataPortManager_Impl::GetVolumeDataPort(this, core::mem::transmute_copy(&options), core::mem::transmute(&path)) { Ok(ok__) => { @@ -308,7 +236,7 @@ impl IDedupDataPortManager_Vtbl { iid == &::IID } } -pub trait IDedupIterateChunksHash32_Impl: Sized { +pub trait IDedupIterateChunksHash32_Impl: Sized + windows_core::IUnknownImpl { fn PushBuffer(&self, pbuffer: *const u8, ulbufferlength: u32) -> windows_core::Result<()>; fn Next(&self, ulmaxchunks: u32, parrchunks: *mut DEDUP_CHUNK_INFO_HASH32, pulfetched: *mut u32) -> windows_core::Result<()>; fn Drain(&self) -> windows_core::Result<()>; @@ -316,35 +244,20 @@ pub trait IDedupIterateChunksHash32_Impl: Sized { } impl windows_core::RuntimeName for IDedupIterateChunksHash32 {} impl IDedupIterateChunksHash32_Vtbl { - pub const fn new() -> IDedupIterateChunksHash32_Vtbl - where - Identity: IDedupIterateChunksHash32_Impl, - { - unsafe extern "system" fn PushBuffer(this: *mut core::ffi::c_void, pbuffer: *const u8, ulbufferlength: u32) -> windows_core::HRESULT - where - Identity: IDedupIterateChunksHash32_Impl, - { + pub const fn new() -> IDedupIterateChunksHash32_Vtbl { + unsafe extern "system" fn PushBuffer(this: *mut core::ffi::c_void, pbuffer: *const u8, ulbufferlength: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupIterateChunksHash32_Impl::PushBuffer(this, core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&ulbufferlength)).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulmaxchunks: u32, parrchunks: *mut DEDUP_CHUNK_INFO_HASH32, pulfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IDedupIterateChunksHash32_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulmaxchunks: u32, parrchunks: *mut DEDUP_CHUNK_INFO_HASH32, pulfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupIterateChunksHash32_Impl::Next(this, core::mem::transmute_copy(&ulmaxchunks), core::mem::transmute_copy(&parrchunks), core::mem::transmute_copy(&pulfetched)).into() } - unsafe extern "system" fn Drain(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDedupIterateChunksHash32_Impl, - { + unsafe extern "system" fn Drain(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupIterateChunksHash32_Impl::Drain(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDedupIterateChunksHash32_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupIterateChunksHash32_Impl::Reset(this).into() } @@ -360,35 +273,23 @@ impl IDedupIterateChunksHash32_Vtbl { iid == &::IID } } -pub trait IDedupReadFileCallback_Impl: Sized { +pub trait IDedupReadFileCallback_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IDedupReadFileCallback {} impl IDedupReadFileCallback_Vtbl { - pub const fn new() -> IDedupReadFileCallback_Vtbl - where - Identity: IDedupReadFileCallback_Impl, - { - unsafe extern "system" fn ReadBackupFile(this: *mut core::ffi::c_void, filefullpath: core::mem::MaybeUninit, fileoffset: i64, sizetoread: u32, filebuffer: *mut u8, returnedsize: *mut u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDedupReadFileCallback_Impl, - { + pub const fn new() -> IDedupReadFileCallback_Vtbl { + unsafe extern "system" fn ReadBackupFile(this: *mut core::ffi::c_void, filefullpath: core::mem::MaybeUninit, fileoffset: i64, sizetoread: u32, filebuffer: *mut u8, returnedsize: *mut u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupReadFileCallback_Impl::ReadBackupFile(this, 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(this: *mut core::ffi::c_void, numberofcontainers: u32, containerpaths: *const core::mem::MaybeUninit, readplanentries: *mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> windows_core::HRESULT - where - Identity: IDedupReadFileCallback_Impl, - { + unsafe extern "system" fn OrderContainersRestore(this: *mut core::ffi::c_void, numberofcontainers: u32, containerpaths: *const core::mem::MaybeUninit, readplanentries: *mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupReadFileCallback_Impl::OrderContainersRestore(this, 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(this: *mut core::ffi::c_void, filefullpath: core::mem::MaybeUninit, numberofreads: u32, readoffsets: *const DDP_FILE_EXTENT) -> windows_core::HRESULT - where - Identity: IDedupReadFileCallback_Impl, - { + unsafe extern "system" fn PreviewContainerRead(this: *mut core::ffi::c_void, filefullpath: core::mem::MaybeUninit, numberofreads: u32, readoffsets: *const DDP_FILE_EXTENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDedupReadFileCallback_Impl::PreviewContainerRead(this, 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/EnhancedStorage/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/impl.rs index 602d65c40a..440bdc6d40 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/impl.rs @@ -1,4 +1,4 @@ -pub trait IEnhancedStorageACT_Impl: Sized { +pub trait IEnhancedStorageACT_Impl: Sized + windows_core::IUnknownImpl { fn Authorize(&self, hwndparent: u32, dwflags: u32) -> windows_core::Result<()>; fn Unauthorize(&self) -> windows_core::Result<()>; fn GetAuthorizationState(&self) -> windows_core::Result; @@ -8,28 +8,16 @@ pub trait IEnhancedStorageACT_Impl: Sized { } impl windows_core::RuntimeName for IEnhancedStorageACT {} impl IEnhancedStorageACT_Vtbl { - pub const fn new() -> IEnhancedStorageACT_Vtbl - where - Identity: IEnhancedStorageACT_Impl, - { - unsafe extern "system" fn Authorize(this: *mut core::ffi::c_void, hwndparent: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT_Impl, - { + pub const fn new() -> IEnhancedStorageACT_Vtbl { + unsafe extern "system" fn Authorize(this: *mut core::ffi::c_void, hwndparent: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnhancedStorageACT_Impl::Authorize(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Unauthorize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT_Impl, - { + unsafe extern "system" fn Unauthorize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnhancedStorageACT_Impl::Unauthorize(this).into() } - unsafe extern "system" fn GetAuthorizationState(this: *mut core::ffi::c_void, pstate: *mut ACT_AUTHORIZATION_STATE) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT_Impl, - { + unsafe extern "system" fn GetAuthorizationState(this: *mut core::ffi::c_void, pstate: *mut ACT_AUTHORIZATION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageACT_Impl::GetAuthorizationState(this) { Ok(ok__) => { @@ -39,10 +27,7 @@ impl IEnhancedStorageACT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMatchingVolume(this: *mut core::ffi::c_void, ppwszvolume: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT_Impl, - { + unsafe extern "system" fn GetMatchingVolume(this: *mut core::ffi::c_void, ppwszvolume: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageACT_Impl::GetMatchingVolume(this) { Ok(ok__) => { @@ -52,10 +37,7 @@ impl IEnhancedStorageACT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUniqueIdentity(this: *mut core::ffi::c_void, ppwszidentity: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT_Impl, - { + unsafe extern "system" fn GetUniqueIdentity(this: *mut core::ffi::c_void, ppwszidentity: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageACT_Impl::GetUniqueIdentity(this) { Ok(ok__) => { @@ -65,10 +47,7 @@ impl IEnhancedStorageACT_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSilos(this: *mut core::ffi::c_void, pppienhancedstoragesilos: *mut *mut Option, pcenhancedstoragesilos: *mut u32) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT_Impl, - { + unsafe extern "system" fn GetSilos(this: *mut core::ffi::c_void, pppienhancedstoragesilos: *mut *mut Option, pcenhancedstoragesilos: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnhancedStorageACT_Impl::GetSilos(this, core::mem::transmute_copy(&pppienhancedstoragesilos), core::mem::transmute_copy(&pcenhancedstoragesilos)).into() } @@ -92,14 +71,8 @@ pub trait IEnhancedStorageACT2_Impl: Sized + IEnhancedStorageACT_Impl { } impl windows_core::RuntimeName for IEnhancedStorageACT2 {} impl IEnhancedStorageACT2_Vtbl { - pub const fn new() -> IEnhancedStorageACT2_Vtbl - where - Identity: IEnhancedStorageACT2_Impl, - { - unsafe extern "system" fn GetDeviceName(this: *mut core::ffi::c_void, ppwszdevicename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT2_Impl, - { + pub const fn new() -> IEnhancedStorageACT2_Vtbl { + unsafe extern "system" fn GetDeviceName(this: *mut core::ffi::c_void, ppwszdevicename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageACT2_Impl::GetDeviceName(this) { Ok(ok__) => { @@ -109,10 +82,7 @@ impl IEnhancedStorageACT2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDeviceRemovable(this: *mut core::ffi::c_void, pisdeviceremovable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT2_Impl, - { + unsafe extern "system" fn IsDeviceRemovable(this: *mut core::ffi::c_void, pisdeviceremovable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageACT2_Impl::IsDeviceRemovable(this) { Ok(ok__) => { @@ -139,21 +109,12 @@ pub trait IEnhancedStorageACT3_Impl: Sized + IEnhancedStorageACT2_Impl { } impl windows_core::RuntimeName for IEnhancedStorageACT3 {} impl IEnhancedStorageACT3_Vtbl { - pub const fn new() -> IEnhancedStorageACT3_Vtbl - where - Identity: IEnhancedStorageACT3_Impl, - { - unsafe extern "system" fn UnauthorizeEx(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT3_Impl, - { + pub const fn new() -> IEnhancedStorageACT3_Vtbl { + unsafe extern "system" fn UnauthorizeEx(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnhancedStorageACT3_Impl::UnauthorizeEx(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn IsQueueFrozen(this: *mut core::ffi::c_void, pisqueuefrozen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT3_Impl, - { + unsafe extern "system" fn IsQueueFrozen(this: *mut core::ffi::c_void, pisqueuefrozen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageACT3_Impl::IsQueueFrozen(this) { Ok(ok__) => { @@ -163,10 +124,7 @@ impl IEnhancedStorageACT3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetShellExtSupport(this: *mut core::ffi::c_void, pshellextsupport: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnhancedStorageACT3_Impl, - { + unsafe extern "system" fn GetShellExtSupport(this: *mut core::ffi::c_void, pshellextsupport: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageACT3_Impl::GetShellExtSupport(this) { Ok(ok__) => { @@ -188,7 +146,7 @@ impl IEnhancedStorageACT3_Vtbl { } } #[cfg(feature = "Win32_Devices_PortableDevices")] -pub trait IEnhancedStorageSilo_Impl: Sized { +pub trait IEnhancedStorageSilo_Impl: Sized + windows_core::IUnknownImpl { fn GetInfo(&self) -> windows_core::Result; fn GetActions(&self, pppienhancedstoragesiloactions: *mut *mut Option, pcenhancedstoragesiloactions: *mut u32) -> windows_core::Result<()>; fn SendCommand(&self, command: u8, pbcommandbuffer: *const u8, cbcommandbuffer: u32, pbresponsebuffer: *mut u8, pcbresponsebuffer: *mut u32) -> windows_core::Result<()>; @@ -199,14 +157,8 @@ pub trait IEnhancedStorageSilo_Impl: Sized { impl windows_core::RuntimeName for IEnhancedStorageSilo {} #[cfg(feature = "Win32_Devices_PortableDevices")] impl IEnhancedStorageSilo_Vtbl { - pub const fn new() -> IEnhancedStorageSilo_Vtbl - where - Identity: IEnhancedStorageSilo_Impl, - { - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, psiloinfo: *mut SILO_INFO) -> windows_core::HRESULT - where - Identity: IEnhancedStorageSilo_Impl, - { + pub const fn new() -> IEnhancedStorageSilo_Vtbl { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, psiloinfo: *mut SILO_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageSilo_Impl::GetInfo(this) { Ok(ok__) => { @@ -216,24 +168,15 @@ impl IEnhancedStorageSilo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActions(this: *mut core::ffi::c_void, pppienhancedstoragesiloactions: *mut *mut Option, pcenhancedstoragesiloactions: *mut u32) -> windows_core::HRESULT - where - Identity: IEnhancedStorageSilo_Impl, - { + unsafe extern "system" fn GetActions(this: *mut core::ffi::c_void, pppienhancedstoragesiloactions: *mut *mut Option, pcenhancedstoragesiloactions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnhancedStorageSilo_Impl::GetActions(this, core::mem::transmute_copy(&pppienhancedstoragesiloactions), core::mem::transmute_copy(&pcenhancedstoragesiloactions)).into() } - unsafe extern "system" fn SendCommand(this: *mut core::ffi::c_void, command: u8, pbcommandbuffer: *const u8, cbcommandbuffer: u32, pbresponsebuffer: *mut u8, pcbresponsebuffer: *mut u32) -> windows_core::HRESULT - where - Identity: IEnhancedStorageSilo_Impl, - { + unsafe extern "system" fn SendCommand(this: *mut core::ffi::c_void, command: u8, pbcommandbuffer: *const u8, cbcommandbuffer: u32, pbresponsebuffer: *mut u8, pcbresponsebuffer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnhancedStorageSilo_Impl::SendCommand(this, core::mem::transmute_copy(&command), core::mem::transmute_copy(&pbcommandbuffer), core::mem::transmute_copy(&cbcommandbuffer), core::mem::transmute_copy(&pbresponsebuffer), core::mem::transmute_copy(&pcbresponsebuffer)).into() } - unsafe extern "system" fn GetPortableDevice(this: *mut core::ffi::c_void, ppiportabledevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnhancedStorageSilo_Impl, - { + unsafe extern "system" fn GetPortableDevice(this: *mut core::ffi::c_void, ppiportabledevice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageSilo_Impl::GetPortableDevice(this) { Ok(ok__) => { @@ -243,10 +186,7 @@ impl IEnhancedStorageSilo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDevicePath(this: *mut core::ffi::c_void, ppwszsilodevicepath: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnhancedStorageSilo_Impl, - { + unsafe extern "system" fn GetDevicePath(this: *mut core::ffi::c_void, ppwszsilodevicepath: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageSilo_Impl::GetDevicePath(this) { Ok(ok__) => { @@ -269,21 +209,15 @@ impl IEnhancedStorageSilo_Vtbl { iid == &::IID } } -pub trait IEnhancedStorageSiloAction_Impl: Sized { +pub trait IEnhancedStorageSiloAction_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetDescription(&self) -> windows_core::Result; fn Invoke(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IEnhancedStorageSiloAction {} impl IEnhancedStorageSiloAction_Vtbl { - pub const fn new() -> IEnhancedStorageSiloAction_Vtbl - where - Identity: IEnhancedStorageSiloAction_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppwszactionname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnhancedStorageSiloAction_Impl, - { + pub const fn new() -> IEnhancedStorageSiloAction_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppwszactionname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageSiloAction_Impl::GetName(this) { Ok(ok__) => { @@ -293,10 +227,7 @@ impl IEnhancedStorageSiloAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, ppwszactiondescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEnhancedStorageSiloAction_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, ppwszactiondescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageSiloAction_Impl::GetDescription(this) { Ok(ok__) => { @@ -306,10 +237,7 @@ impl IEnhancedStorageSiloAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnhancedStorageSiloAction_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnhancedStorageSiloAction_Impl::Invoke(this).into() } @@ -324,27 +252,18 @@ impl IEnhancedStorageSiloAction_Vtbl { iid == &::IID } } -pub trait IEnumEnhancedStorageACT_Impl: Sized { +pub trait IEnumEnhancedStorageACT_Impl: Sized + windows_core::IUnknownImpl { fn GetACTs(&self, pppienhancedstorageacts: *mut *mut Option, pcenhancedstorageacts: *mut u32) -> windows_core::Result<()>; fn GetMatchingACT(&self, szvolume: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IEnumEnhancedStorageACT {} impl IEnumEnhancedStorageACT_Vtbl { - pub const fn new() -> IEnumEnhancedStorageACT_Vtbl - where - Identity: IEnumEnhancedStorageACT_Impl, - { - unsafe extern "system" fn GetACTs(this: *mut core::ffi::c_void, pppienhancedstorageacts: *mut *mut Option, pcenhancedstorageacts: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumEnhancedStorageACT_Impl, - { + pub const fn new() -> IEnumEnhancedStorageACT_Vtbl { + unsafe extern "system" fn GetACTs(this: *mut core::ffi::c_void, pppienhancedstorageacts: *mut *mut Option, pcenhancedstorageacts: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumEnhancedStorageACT_Impl::GetACTs(this, core::mem::transmute_copy(&pppienhancedstorageacts), core::mem::transmute_copy(&pcenhancedstorageacts)).into() } - unsafe extern "system" fn GetMatchingACT(this: *mut core::ffi::c_void, szvolume: windows_core::PCWSTR, ppienhancedstorageact: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumEnhancedStorageACT_Impl, - { + unsafe extern "system" fn GetMatchingACT(this: *mut core::ffi::c_void, szvolume: windows_core::PCWSTR, ppienhancedstorageact: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumEnhancedStorageACT_Impl::GetMatchingACT(this, core::mem::transmute(&szvolume)) { Ok(ok__) => { 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 2dad02783a..40b64c859a 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/impl.rs @@ -1,4 +1,4 @@ -pub trait IFhConfigMgr_Impl: Sized { +pub trait IFhConfigMgr_Impl: Sized + windows_core::IUnknownImpl { fn LoadConfiguration(&self) -> windows_core::Result<()>; fn CreateDefaultConfiguration(&self, overwriteifexists: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn SaveConfiguration(&self) -> windows_core::Result<()>; @@ -16,42 +16,24 @@ pub trait IFhConfigMgr_Impl: Sized { } impl windows_core::RuntimeName for IFhConfigMgr {} impl IFhConfigMgr_Vtbl { - pub const fn new() -> IFhConfigMgr_Vtbl - where - Identity: IFhConfigMgr_Impl, - { - unsafe extern "system" fn LoadConfiguration(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + pub const fn new() -> IFhConfigMgr_Vtbl { + unsafe extern "system" fn LoadConfiguration(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::LoadConfiguration(this).into() } - unsafe extern "system" fn CreateDefaultConfiguration(this: *mut core::ffi::c_void, overwriteifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn CreateDefaultConfiguration(this: *mut core::ffi::c_void, overwriteifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::CreateDefaultConfiguration(this, core::mem::transmute_copy(&overwriteifexists)).into() } - unsafe extern "system" fn SaveConfiguration(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn SaveConfiguration(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::SaveConfiguration(this).into() } - unsafe extern "system" fn AddRemoveExcludeRule(this: *mut core::ffi::c_void, add: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn AddRemoveExcludeRule(this: *mut core::ffi::c_void, add: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::AddRemoveExcludeRule(this, core::mem::transmute_copy(&add), core::mem::transmute_copy(&category), core::mem::transmute(&item)).into() } - unsafe extern "system" fn GetIncludeExcludeRules(this: *mut core::ffi::c_void, include: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, iterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn GetIncludeExcludeRules(this: *mut core::ffi::c_void, include: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, iterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFhConfigMgr_Impl::GetIncludeExcludeRules(this, core::mem::transmute_copy(&include), core::mem::transmute_copy(&category)) { Ok(ok__) => { @@ -61,10 +43,7 @@ impl IFhConfigMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalPolicy(this: *mut core::ffi::c_void, localpolicytype: FH_LOCAL_POLICY_TYPE, policyvalue: *mut u64) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn GetLocalPolicy(this: *mut core::ffi::c_void, localpolicytype: FH_LOCAL_POLICY_TYPE, policyvalue: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFhConfigMgr_Impl::GetLocalPolicy(this, core::mem::transmute_copy(&localpolicytype)) { Ok(ok__) => { @@ -74,17 +53,11 @@ impl IFhConfigMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalPolicy(this: *mut core::ffi::c_void, localpolicytype: FH_LOCAL_POLICY_TYPE, policyvalue: u64) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn SetLocalPolicy(this: *mut core::ffi::c_void, localpolicytype: FH_LOCAL_POLICY_TYPE, policyvalue: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::SetLocalPolicy(this, core::mem::transmute_copy(&localpolicytype), core::mem::transmute_copy(&policyvalue)).into() } - unsafe extern "system" fn GetBackupStatus(this: *mut core::ffi::c_void, backupstatus: *mut FH_BACKUP_STATUS) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn GetBackupStatus(this: *mut core::ffi::c_void, backupstatus: *mut FH_BACKUP_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFhConfigMgr_Impl::GetBackupStatus(this) { Ok(ok__) => { @@ -94,17 +67,11 @@ impl IFhConfigMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackupStatus(this: *mut core::ffi::c_void, backupstatus: FH_BACKUP_STATUS) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn SetBackupStatus(this: *mut core::ffi::c_void, backupstatus: FH_BACKUP_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::SetBackupStatus(this, core::mem::transmute_copy(&backupstatus)).into() } - unsafe extern "system" fn GetDefaultTarget(this: *mut core::ffi::c_void, defaulttarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn GetDefaultTarget(this: *mut core::ffi::c_void, defaulttarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFhConfigMgr_Impl::GetDefaultTarget(this) { Ok(ok__) => { @@ -114,10 +81,7 @@ impl IFhConfigMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ValidateTarget(this: *mut core::ffi::c_void, targeturl: core::mem::MaybeUninit, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn ValidateTarget(this: *mut core::ffi::c_void, targeturl: core::mem::MaybeUninit, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFhConfigMgr_Impl::ValidateTarget(this, core::mem::transmute(&targeturl)) { Ok(ok__) => { @@ -127,24 +91,15 @@ impl IFhConfigMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProvisionAndSetNewTarget(this: *mut core::ffi::c_void, targeturl: core::mem::MaybeUninit, targetname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn ProvisionAndSetNewTarget(this: *mut core::ffi::c_void, targeturl: core::mem::MaybeUninit, targetname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::ProvisionAndSetNewTarget(this, core::mem::transmute(&targeturl), core::mem::transmute(&targetname)).into() } - unsafe extern "system" fn ChangeDefaultTargetRecommendation(this: *mut core::ffi::c_void, recommend: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn ChangeDefaultTargetRecommendation(this: *mut core::ffi::c_void, recommend: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::ChangeDefaultTargetRecommendation(this, core::mem::transmute_copy(&recommend)).into() } - unsafe extern "system" fn QueryProtectionStatus(this: *mut core::ffi::c_void, protectionstate: *mut u32, protecteduntiltime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFhConfigMgr_Impl, - { + unsafe extern "system" fn QueryProtectionStatus(this: *mut core::ffi::c_void, protectionstate: *mut u32, protecteduntiltime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::QueryProtectionStatus(this, core::mem::transmute_copy(&protectionstate), core::mem::transmute_copy(&protecteduntiltime)).into() } @@ -170,7 +125,7 @@ impl IFhConfigMgr_Vtbl { iid == &::IID } } -pub trait IFhReassociation_Impl: Sized { +pub trait IFhReassociation_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -179,14 +134,8 @@ pub trait IFhReassociation_Impl: Sized { } impl windows_core::RuntimeName for IFhReassociation {} impl IFhReassociation_Vtbl { - pub const fn new() -> IFhReassociation_Vtbl - where - Identity: IFhReassociation_Impl, - { - unsafe extern "system" fn ValidateTarget(this: *mut core::ffi::c_void, targeturl: core::mem::MaybeUninit, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> windows_core::HRESULT - where - Identity: IFhReassociation_Impl, - { + pub const fn new() -> IFhReassociation_Vtbl { + unsafe extern "system" fn ValidateTarget(this: *mut core::ffi::c_void, targeturl: core::mem::MaybeUninit, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFhReassociation_Impl::ValidateTarget(this, core::mem::transmute(&targeturl)) { Ok(ok__) => { @@ -196,31 +145,19 @@ impl IFhReassociation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScanTargetForConfigurations(this: *mut core::ffi::c_void, targeturl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFhReassociation_Impl, - { + unsafe extern "system" fn ScanTargetForConfigurations(this: *mut core::ffi::c_void, targeturl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhReassociation_Impl::ScanTargetForConfigurations(this, core::mem::transmute(&targeturl)).into() } - unsafe extern "system" fn GetConfigurationDetails(this: *mut core::ffi::c_void, index: u32, username: *mut core::mem::MaybeUninit, pcname: *mut core::mem::MaybeUninit, backuptime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IFhReassociation_Impl, - { + unsafe extern "system" fn GetConfigurationDetails(this: *mut core::ffi::c_void, index: u32, username: *mut core::mem::MaybeUninit, pcname: *mut core::mem::MaybeUninit, backuptime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhReassociation_Impl::GetConfigurationDetails(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&username), core::mem::transmute_copy(&pcname), core::mem::transmute_copy(&backuptime)).into() } - unsafe extern "system" fn SelectConfiguration(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IFhReassociation_Impl, - { + unsafe extern "system" fn SelectConfiguration(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhReassociation_Impl::SelectConfiguration(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn PerformReassociation(this: *mut core::ffi::c_void, overwriteifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFhReassociation_Impl, - { + unsafe extern "system" fn PerformReassociation(this: *mut core::ffi::c_void, overwriteifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhReassociation_Impl::PerformReassociation(this, core::mem::transmute_copy(&overwriteifexists)).into() } @@ -237,27 +174,18 @@ impl IFhReassociation_Vtbl { iid == &::IID } } -pub trait IFhScopeIterator_Impl: Sized { +pub trait IFhScopeIterator_Impl: Sized + windows_core::IUnknownImpl { fn MoveToNextItem(&self) -> windows_core::Result<()>; fn GetItem(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IFhScopeIterator {} impl IFhScopeIterator_Vtbl { - pub const fn new() -> IFhScopeIterator_Vtbl - where - Identity: IFhScopeIterator_Impl, - { - unsafe extern "system" fn MoveToNextItem(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFhScopeIterator_Impl, - { + pub const fn new() -> IFhScopeIterator_Vtbl { + unsafe extern "system" fn MoveToNextItem(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhScopeIterator_Impl::MoveToNextItem(this).into() } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, item: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFhScopeIterator_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, item: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFhScopeIterator_Impl::GetItem(this) { Ok(ok__) => { @@ -277,20 +205,14 @@ impl IFhScopeIterator_Vtbl { iid == &::IID } } -pub trait IFhTarget_Impl: Sized { +pub trait IFhTarget_Impl: Sized + windows_core::IUnknownImpl { fn GetStringProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> windows_core::Result; fn GetNumericalProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> windows_core::Result; } impl windows_core::RuntimeName for IFhTarget {} impl IFhTarget_Vtbl { - pub const fn new() -> IFhTarget_Vtbl - where - Identity: IFhTarget_Impl, - { - unsafe extern "system" fn GetStringProperty(this: *mut core::ffi::c_void, propertytype: FH_TARGET_PROPERTY_TYPE, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFhTarget_Impl, - { + pub const fn new() -> IFhTarget_Vtbl { + unsafe extern "system" fn GetStringProperty(this: *mut core::ffi::c_void, propertytype: FH_TARGET_PROPERTY_TYPE, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFhTarget_Impl::GetStringProperty(this, core::mem::transmute_copy(&propertytype)) { Ok(ok__) => { @@ -300,10 +222,7 @@ impl IFhTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumericalProperty(this: *mut core::ffi::c_void, propertytype: FH_TARGET_PROPERTY_TYPE, propertyvalue: *mut u64) -> windows_core::HRESULT - where - Identity: IFhTarget_Impl, - { + unsafe extern "system" fn GetNumericalProperty(this: *mut core::ffi::c_void, propertytype: FH_TARGET_PROPERTY_TYPE, propertyvalue: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFhTarget_Impl::GetNumericalProperty(this, core::mem::transmute_copy(&propertytype)) { Ok(ok__) => { 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 ffb5ed8d38..93bb94be2c 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/impl.rs @@ -4,10 +4,7 @@ pub trait DIFsrmClassificationEvents_Impl: Sized + super::super::System::Com::ID impl windows_core::RuntimeName for DIFsrmClassificationEvents {} #[cfg(feature = "Win32_System_Com")] impl DIFsrmClassificationEvents_Vtbl { - pub const fn new() -> DIFsrmClassificationEvents_Vtbl - where - Identity: DIFsrmClassificationEvents_Impl, - { + pub const fn new() -> DIFsrmClassificationEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -22,14 +19,8 @@ pub trait IFsrmAccessDeniedRemediationClient_Impl: Sized + super::super::System: impl windows_core::RuntimeName for IFsrmAccessDeniedRemediationClient {} #[cfg(feature = "Win32_System_Com")] impl IFsrmAccessDeniedRemediationClient_Vtbl { - pub const fn new() -> IFsrmAccessDeniedRemediationClient_Vtbl - where - Identity: IFsrmAccessDeniedRemediationClient_Impl, - { - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, parentwnd: usize, accesspath: core::mem::MaybeUninit, errortype: AdrClientErrorType, flags: i32, windowtitle: core::mem::MaybeUninit, windowmessage: core::mem::MaybeUninit, result: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmAccessDeniedRemediationClient_Impl, - { + pub const fn new() -> IFsrmAccessDeniedRemediationClient_Vtbl { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, parentwnd: usize, accesspath: core::mem::MaybeUninit, errortype: AdrClientErrorType, flags: i32, windowtitle: core::mem::MaybeUninit, windowmessage: core::mem::MaybeUninit, result: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmAccessDeniedRemediationClient_Impl::Show(this, 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)) { Ok(ok__) => { @@ -57,14 +48,8 @@ pub trait IFsrmAction_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFsrmAction {} #[cfg(feature = "Win32_System_Com")] impl IFsrmAction_Vtbl { - pub const fn new() -> IFsrmAction_Vtbl - where - Identity: IFsrmAction_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFsrmAction_Impl, - { + pub const fn new() -> IFsrmAction_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmAction_Impl::Id(this) { Ok(ok__) => { @@ -74,10 +59,7 @@ impl IFsrmAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActionType(this: *mut core::ffi::c_void, actiontype: *mut FsrmActionType) -> windows_core::HRESULT - where - Identity: IFsrmAction_Impl, - { + unsafe extern "system" fn ActionType(this: *mut core::ffi::c_void, actiontype: *mut FsrmActionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmAction_Impl::ActionType(this) { Ok(ok__) => { @@ -87,10 +69,7 @@ impl IFsrmAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RunLimitInterval(this: *mut core::ffi::c_void, minutes: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmAction_Impl, - { + unsafe extern "system" fn RunLimitInterval(this: *mut core::ffi::c_void, minutes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmAction_Impl::RunLimitInterval(this) { Ok(ok__) => { @@ -100,17 +79,11 @@ impl IFsrmAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRunLimitInterval(this: *mut core::ffi::c_void, minutes: i32) -> windows_core::HRESULT - where - Identity: IFsrmAction_Impl, - { + unsafe extern "system" fn SetRunLimitInterval(this: *mut core::ffi::c_void, minutes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmAction_Impl::SetRunLimitInterval(this, core::mem::transmute_copy(&minutes)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmAction_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmAction_Impl::Delete(this).into() } @@ -148,14 +121,8 @@ pub trait IFsrmActionCommand_Impl: Sized + IFsrmAction_Impl { impl windows_core::RuntimeName for IFsrmActionCommand {} #[cfg(feature = "Win32_System_Com")] impl IFsrmActionCommand_Vtbl { - pub const fn new() -> IFsrmActionCommand_Vtbl - where - Identity: IFsrmActionCommand_Impl, - { - unsafe extern "system" fn ExecutablePath(this: *mut core::ffi::c_void, executablepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + pub const fn new() -> IFsrmActionCommand_Vtbl { + unsafe extern "system" fn ExecutablePath(this: *mut core::ffi::c_void, executablepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionCommand_Impl::ExecutablePath(this) { Ok(ok__) => { @@ -165,17 +132,11 @@ impl IFsrmActionCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExecutablePath(this: *mut core::ffi::c_void, executablepath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn SetExecutablePath(this: *mut core::ffi::c_void, executablepath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionCommand_Impl::SetExecutablePath(this, core::mem::transmute(&executablepath)).into() } - unsafe extern "system" fn Arguments(this: *mut core::ffi::c_void, arguments: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn Arguments(this: *mut core::ffi::c_void, arguments: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionCommand_Impl::Arguments(this) { Ok(ok__) => { @@ -185,17 +146,11 @@ impl IFsrmActionCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetArguments(this: *mut core::ffi::c_void, arguments: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn SetArguments(this: *mut core::ffi::c_void, arguments: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionCommand_Impl::SetArguments(this, core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn Account(this: *mut core::ffi::c_void, account: *mut FsrmAccountType) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn Account(this: *mut core::ffi::c_void, account: *mut FsrmAccountType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionCommand_Impl::Account(this) { Ok(ok__) => { @@ -205,17 +160,11 @@ impl IFsrmActionCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccount(this: *mut core::ffi::c_void, account: FsrmAccountType) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn SetAccount(this: *mut core::ffi::c_void, account: FsrmAccountType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionCommand_Impl::SetAccount(this, core::mem::transmute_copy(&account)).into() } - unsafe extern "system" fn WorkingDirectory(this: *mut core::ffi::c_void, workingdirectory: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn WorkingDirectory(this: *mut core::ffi::c_void, workingdirectory: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionCommand_Impl::WorkingDirectory(this) { Ok(ok__) => { @@ -225,17 +174,11 @@ impl IFsrmActionCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, workingdirectory: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, workingdirectory: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionCommand_Impl::SetWorkingDirectory(this, core::mem::transmute(&workingdirectory)).into() } - unsafe extern "system" fn MonitorCommand(this: *mut core::ffi::c_void, monitorcommand: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn MonitorCommand(this: *mut core::ffi::c_void, monitorcommand: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionCommand_Impl::MonitorCommand(this) { Ok(ok__) => { @@ -245,17 +188,11 @@ impl IFsrmActionCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMonitorCommand(this: *mut core::ffi::c_void, monitorcommand: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn SetMonitorCommand(this: *mut core::ffi::c_void, monitorcommand: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionCommand_Impl::SetMonitorCommand(this, core::mem::transmute_copy(&monitorcommand)).into() } - unsafe extern "system" fn KillTimeOut(this: *mut core::ffi::c_void, minutes: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn KillTimeOut(this: *mut core::ffi::c_void, minutes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionCommand_Impl::KillTimeOut(this) { Ok(ok__) => { @@ -265,17 +202,11 @@ impl IFsrmActionCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKillTimeOut(this: *mut core::ffi::c_void, minutes: i32) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn SetKillTimeOut(this: *mut core::ffi::c_void, minutes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionCommand_Impl::SetKillTimeOut(this, core::mem::transmute_copy(&minutes)).into() } - unsafe extern "system" fn LogResult(this: *mut core::ffi::c_void, logresults: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn LogResult(this: *mut core::ffi::c_void, logresults: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionCommand_Impl::LogResult(this) { Ok(ok__) => { @@ -285,10 +216,7 @@ impl IFsrmActionCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogResult(this: *mut core::ffi::c_void, logresults: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmActionCommand_Impl, - { + unsafe extern "system" fn SetLogResult(this: *mut core::ffi::c_void, logresults: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionCommand_Impl::SetLogResult(this, core::mem::transmute_copy(&logresults)).into() } @@ -335,14 +263,8 @@ pub trait IFsrmActionEmail_Impl: Sized + IFsrmAction_Impl { impl windows_core::RuntimeName for IFsrmActionEmail {} #[cfg(feature = "Win32_System_Com")] impl IFsrmActionEmail_Vtbl { - pub const fn new() -> IFsrmActionEmail_Vtbl - where - Identity: IFsrmActionEmail_Impl, - { - unsafe extern "system" fn MailFrom(this: *mut core::ffi::c_void, mailfrom: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + pub const fn new() -> IFsrmActionEmail_Vtbl { + unsafe extern "system" fn MailFrom(this: *mut core::ffi::c_void, mailfrom: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionEmail_Impl::MailFrom(this) { Ok(ok__) => { @@ -352,17 +274,11 @@ impl IFsrmActionEmail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMailFrom(this: *mut core::ffi::c_void, mailfrom: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn SetMailFrom(this: *mut core::ffi::c_void, mailfrom: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionEmail_Impl::SetMailFrom(this, core::mem::transmute(&mailfrom)).into() } - unsafe extern "system" fn MailReplyTo(this: *mut core::ffi::c_void, mailreplyto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn MailReplyTo(this: *mut core::ffi::c_void, mailreplyto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionEmail_Impl::MailReplyTo(this) { Ok(ok__) => { @@ -372,17 +288,11 @@ impl IFsrmActionEmail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMailReplyTo(this: *mut core::ffi::c_void, mailreplyto: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn SetMailReplyTo(this: *mut core::ffi::c_void, mailreplyto: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionEmail_Impl::SetMailReplyTo(this, core::mem::transmute(&mailreplyto)).into() } - unsafe extern "system" fn MailTo(this: *mut core::ffi::c_void, mailto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn MailTo(this: *mut core::ffi::c_void, mailto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionEmail_Impl::MailTo(this) { Ok(ok__) => { @@ -392,17 +302,11 @@ impl IFsrmActionEmail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMailTo(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn SetMailTo(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionEmail_Impl::SetMailTo(this, core::mem::transmute(&mailto)).into() } - unsafe extern "system" fn MailCc(this: *mut core::ffi::c_void, mailcc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn MailCc(this: *mut core::ffi::c_void, mailcc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionEmail_Impl::MailCc(this) { Ok(ok__) => { @@ -412,17 +316,11 @@ impl IFsrmActionEmail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMailCc(this: *mut core::ffi::c_void, mailcc: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn SetMailCc(this: *mut core::ffi::c_void, mailcc: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionEmail_Impl::SetMailCc(this, core::mem::transmute(&mailcc)).into() } - unsafe extern "system" fn MailBcc(this: *mut core::ffi::c_void, mailbcc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn MailBcc(this: *mut core::ffi::c_void, mailbcc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionEmail_Impl::MailBcc(this) { Ok(ok__) => { @@ -432,17 +330,11 @@ impl IFsrmActionEmail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMailBcc(this: *mut core::ffi::c_void, mailbcc: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn SetMailBcc(this: *mut core::ffi::c_void, mailbcc: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionEmail_Impl::SetMailBcc(this, core::mem::transmute(&mailbcc)).into() } - unsafe extern "system" fn MailSubject(this: *mut core::ffi::c_void, mailsubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn MailSubject(this: *mut core::ffi::c_void, mailsubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionEmail_Impl::MailSubject(this) { Ok(ok__) => { @@ -452,17 +344,11 @@ impl IFsrmActionEmail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMailSubject(this: *mut core::ffi::c_void, mailsubject: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn SetMailSubject(this: *mut core::ffi::c_void, mailsubject: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionEmail_Impl::SetMailSubject(this, core::mem::transmute(&mailsubject)).into() } - unsafe extern "system" fn MessageText(this: *mut core::ffi::c_void, messagetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn MessageText(this: *mut core::ffi::c_void, messagetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionEmail_Impl::MessageText(this) { Ok(ok__) => { @@ -472,10 +358,7 @@ impl IFsrmActionEmail_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMessageText(this: *mut core::ffi::c_void, messagetext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail_Impl, - { + unsafe extern "system" fn SetMessageText(this: *mut core::ffi::c_void, messagetext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionEmail_Impl::SetMessageText(this, core::mem::transmute(&messagetext)).into() } @@ -510,14 +393,8 @@ pub trait IFsrmActionEmail2_Impl: Sized + IFsrmActionEmail_Impl { impl windows_core::RuntimeName for IFsrmActionEmail2 {} #[cfg(feature = "Win32_System_Com")] impl IFsrmActionEmail2_Vtbl { - pub const fn new() -> IFsrmActionEmail2_Vtbl - where - Identity: IFsrmActionEmail2_Impl, - { - unsafe extern "system" fn AttachmentFileListSize(this: *mut core::ffi::c_void, attachmentfilelistsize: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail2_Impl, - { + pub const fn new() -> IFsrmActionEmail2_Vtbl { + unsafe extern "system" fn AttachmentFileListSize(this: *mut core::ffi::c_void, attachmentfilelistsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionEmail2_Impl::AttachmentFileListSize(this) { Ok(ok__) => { @@ -527,10 +404,7 @@ impl IFsrmActionEmail2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttachmentFileListSize(this: *mut core::ffi::c_void, attachmentfilelistsize: i32) -> windows_core::HRESULT - where - Identity: IFsrmActionEmail2_Impl, - { + unsafe extern "system" fn SetAttachmentFileListSize(this: *mut core::ffi::c_void, attachmentfilelistsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionEmail2_Impl::SetAttachmentFileListSize(this, core::mem::transmute_copy(&attachmentfilelistsize)).into() } @@ -555,14 +429,8 @@ pub trait IFsrmActionEventLog_Impl: Sized + IFsrmAction_Impl { impl windows_core::RuntimeName for IFsrmActionEventLog {} #[cfg(feature = "Win32_System_Com")] impl IFsrmActionEventLog_Vtbl { - pub const fn new() -> IFsrmActionEventLog_Vtbl - where - Identity: IFsrmActionEventLog_Impl, - { - unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, eventtype: *mut FsrmEventType) -> windows_core::HRESULT - where - Identity: IFsrmActionEventLog_Impl, - { + pub const fn new() -> IFsrmActionEventLog_Vtbl { + unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, eventtype: *mut FsrmEventType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionEventLog_Impl::EventType(this) { Ok(ok__) => { @@ -572,17 +440,11 @@ impl IFsrmActionEventLog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventType(this: *mut core::ffi::c_void, eventtype: FsrmEventType) -> windows_core::HRESULT - where - Identity: IFsrmActionEventLog_Impl, - { + unsafe extern "system" fn SetEventType(this: *mut core::ffi::c_void, eventtype: FsrmEventType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionEventLog_Impl::SetEventType(this, core::mem::transmute_copy(&eventtype)).into() } - unsafe extern "system" fn MessageText(this: *mut core::ffi::c_void, messagetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEventLog_Impl, - { + unsafe extern "system" fn MessageText(this: *mut core::ffi::c_void, messagetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionEventLog_Impl::MessageText(this) { Ok(ok__) => { @@ -592,10 +454,7 @@ impl IFsrmActionEventLog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMessageText(this: *mut core::ffi::c_void, messagetext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionEventLog_Impl, - { + unsafe extern "system" fn SetMessageText(this: *mut core::ffi::c_void, messagetext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionEventLog_Impl::SetMessageText(this, core::mem::transmute(&messagetext)).into() } @@ -622,14 +481,8 @@ pub trait IFsrmActionReport_Impl: Sized + IFsrmAction_Impl { impl windows_core::RuntimeName for IFsrmActionReport {} #[cfg(feature = "Win32_System_Com")] impl IFsrmActionReport_Vtbl { - pub const fn new() -> IFsrmActionReport_Vtbl - where - Identity: IFsrmActionReport_Impl, - { - unsafe extern "system" fn ReportTypes(this: *mut core::ffi::c_void, reporttypes: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmActionReport_Impl, - { + pub const fn new() -> IFsrmActionReport_Vtbl { + unsafe extern "system" fn ReportTypes(this: *mut core::ffi::c_void, reporttypes: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionReport_Impl::ReportTypes(this) { Ok(ok__) => { @@ -639,17 +492,11 @@ impl IFsrmActionReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReportTypes(this: *mut core::ffi::c_void, reporttypes: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmActionReport_Impl, - { + unsafe extern "system" fn SetReportTypes(this: *mut core::ffi::c_void, reporttypes: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionReport_Impl::SetReportTypes(this, core::mem::transmute_copy(&reporttypes)).into() } - unsafe extern "system" fn MailTo(this: *mut core::ffi::c_void, mailto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionReport_Impl, - { + unsafe extern "system" fn MailTo(this: *mut core::ffi::c_void, mailto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmActionReport_Impl::MailTo(this) { Ok(ok__) => { @@ -659,10 +506,7 @@ impl IFsrmActionReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMailTo(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmActionReport_Impl, - { + unsafe extern "system" fn SetMailTo(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmActionReport_Impl::SetMailTo(this, core::mem::transmute(&mailto)).into() } @@ -688,14 +532,8 @@ pub trait IFsrmAutoApplyQuota_Impl: Sized + IFsrmQuotaObject_Impl { impl windows_core::RuntimeName for IFsrmAutoApplyQuota {} #[cfg(feature = "Win32_System_Com")] impl IFsrmAutoApplyQuota_Vtbl { - pub const fn new() -> IFsrmAutoApplyQuota_Vtbl - where - Identity: IFsrmAutoApplyQuota_Impl, - { - unsafe extern "system" fn ExcludeFolders(this: *mut core::ffi::c_void, folders: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmAutoApplyQuota_Impl, - { + pub const fn new() -> IFsrmAutoApplyQuota_Vtbl { + unsafe extern "system" fn ExcludeFolders(this: *mut core::ffi::c_void, folders: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmAutoApplyQuota_Impl::ExcludeFolders(this) { Ok(ok__) => { @@ -705,17 +543,11 @@ impl IFsrmAutoApplyQuota_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExcludeFolders(this: *mut core::ffi::c_void, folders: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmAutoApplyQuota_Impl, - { + unsafe extern "system" fn SetExcludeFolders(this: *mut core::ffi::c_void, folders: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmAutoApplyQuota_Impl::SetExcludeFolders(this, core::mem::transmute_copy(&folders)).into() } - unsafe extern "system" fn CommitAndUpdateDerived(this: *mut core::ffi::c_void, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions, derivedobjectsresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmAutoApplyQuota_Impl, - { + unsafe extern "system" fn CommitAndUpdateDerived(this: *mut core::ffi::c_void, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions, derivedobjectsresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmAutoApplyQuota_Impl::CommitAndUpdateDerived(this, core::mem::transmute_copy(&commitoptions), core::mem::transmute_copy(&applyoptions)) { Ok(ok__) => { @@ -770,14 +602,8 @@ pub trait IFsrmClassificationManager_Impl: Sized + super::super::System::Com::ID impl windows_core::RuntimeName for IFsrmClassificationManager {} #[cfg(feature = "Win32_System_Com")] impl IFsrmClassificationManager_Vtbl { - pub const fn new() -> IFsrmClassificationManager_Vtbl - where - Identity: IFsrmClassificationManager_Impl, - { - unsafe extern "system" fn ClassificationReportFormats(this: *mut core::ffi::c_void, formats: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + pub const fn new() -> IFsrmClassificationManager_Vtbl { + unsafe extern "system" fn ClassificationReportFormats(this: *mut core::ffi::c_void, formats: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::ClassificationReportFormats(this) { Ok(ok__) => { @@ -787,17 +613,11 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClassificationReportFormats(this: *mut core::ffi::c_void, formats: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn SetClassificationReportFormats(this: *mut core::ffi::c_void, formats: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationManager_Impl::SetClassificationReportFormats(this, core::mem::transmute_copy(&formats)).into() } - unsafe extern "system" fn Logging(this: *mut core::ffi::c_void, logging: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn Logging(this: *mut core::ffi::c_void, logging: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::Logging(this) { Ok(ok__) => { @@ -807,17 +627,11 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogging(this: *mut core::ffi::c_void, logging: i32) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn SetLogging(this: *mut core::ffi::c_void, logging: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationManager_Impl::SetLogging(this, core::mem::transmute_copy(&logging)).into() } - unsafe extern "system" fn ClassificationReportMailTo(this: *mut core::ffi::c_void, mailto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn ClassificationReportMailTo(this: *mut core::ffi::c_void, mailto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::ClassificationReportMailTo(this) { Ok(ok__) => { @@ -827,17 +641,11 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClassificationReportMailTo(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn SetClassificationReportMailTo(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationManager_Impl::SetClassificationReportMailTo(this, core::mem::transmute(&mailto)).into() } - unsafe extern "system" fn ClassificationReportEnabled(this: *mut core::ffi::c_void, reportenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn ClassificationReportEnabled(this: *mut core::ffi::c_void, reportenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::ClassificationReportEnabled(this) { Ok(ok__) => { @@ -847,17 +655,11 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClassificationReportEnabled(this: *mut core::ffi::c_void, reportenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn SetClassificationReportEnabled(this: *mut core::ffi::c_void, reportenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationManager_Impl::SetClassificationReportEnabled(this, core::mem::transmute_copy(&reportenabled)).into() } - unsafe extern "system" fn ClassificationLastReportPathWithoutExtension(this: *mut core::ffi::c_void, lastreportpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn ClassificationLastReportPathWithoutExtension(this: *mut core::ffi::c_void, lastreportpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::ClassificationLastReportPathWithoutExtension(this) { Ok(ok__) => { @@ -867,10 +669,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClassificationLastError(this: *mut core::ffi::c_void, lasterror: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn ClassificationLastError(this: *mut core::ffi::c_void, lasterror: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::ClassificationLastError(this) { Ok(ok__) => { @@ -880,10 +679,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClassificationRunningStatus(this: *mut core::ffi::c_void, runningstatus: *mut FsrmReportRunningStatus) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn ClassificationRunningStatus(this: *mut core::ffi::c_void, runningstatus: *mut FsrmReportRunningStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::ClassificationRunningStatus(this) { Ok(ok__) => { @@ -893,10 +689,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumPropertyDefinitions(this: *mut core::ffi::c_void, options: FsrmEnumOptions, propertydefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn EnumPropertyDefinitions(this: *mut core::ffi::c_void, options: FsrmEnumOptions, propertydefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::EnumPropertyDefinitions(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -906,10 +699,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePropertyDefinition(this: *mut core::ffi::c_void, propertydefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn CreatePropertyDefinition(this: *mut core::ffi::c_void, propertydefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::CreatePropertyDefinition(this) { Ok(ok__) => { @@ -919,10 +709,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyDefinition(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, propertydefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn GetPropertyDefinition(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, propertydefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::GetPropertyDefinition(this, core::mem::transmute(&propertyname)) { Ok(ok__) => { @@ -932,10 +719,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumRules(this: *mut core::ffi::c_void, ruletype: FsrmRuleType, options: FsrmEnumOptions, rules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn EnumRules(this: *mut core::ffi::c_void, ruletype: FsrmRuleType, options: FsrmEnumOptions, rules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::EnumRules(this, core::mem::transmute_copy(&ruletype), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -945,10 +729,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRule(this: *mut core::ffi::c_void, ruletype: FsrmRuleType, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn CreateRule(this: *mut core::ffi::c_void, ruletype: FsrmRuleType, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::CreateRule(this, core::mem::transmute_copy(&ruletype)) { Ok(ok__) => { @@ -958,10 +739,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRule(this: *mut core::ffi::c_void, rulename: core::mem::MaybeUninit, ruletype: FsrmRuleType, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn GetRule(this: *mut core::ffi::c_void, rulename: core::mem::MaybeUninit, ruletype: FsrmRuleType, rule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::GetRule(this, core::mem::transmute(&rulename), core::mem::transmute_copy(&ruletype)) { Ok(ok__) => { @@ -971,10 +749,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumModuleDefinitions(this: *mut core::ffi::c_void, moduletype: FsrmPipelineModuleType, options: FsrmEnumOptions, moduledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn EnumModuleDefinitions(this: *mut core::ffi::c_void, moduletype: FsrmPipelineModuleType, options: FsrmEnumOptions, moduledefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::EnumModuleDefinitions(this, core::mem::transmute_copy(&moduletype), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -984,10 +759,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateModuleDefinition(this: *mut core::ffi::c_void, moduletype: FsrmPipelineModuleType, moduledefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn CreateModuleDefinition(this: *mut core::ffi::c_void, moduletype: FsrmPipelineModuleType, moduledefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::CreateModuleDefinition(this, core::mem::transmute_copy(&moduletype)) { Ok(ok__) => { @@ -997,10 +769,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModuleDefinition(this: *mut core::ffi::c_void, modulename: core::mem::MaybeUninit, moduletype: FsrmPipelineModuleType, moduledefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn GetModuleDefinition(this: *mut core::ffi::c_void, modulename: core::mem::MaybeUninit, moduletype: FsrmPipelineModuleType, moduledefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::GetModuleDefinition(this, core::mem::transmute(&modulename), core::mem::transmute_copy(&moduletype)) { Ok(ok__) => { @@ -1010,17 +779,11 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RunClassification(this: *mut core::ffi::c_void, context: FsrmReportGenerationContext, reserved: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn RunClassification(this: *mut core::ffi::c_void, context: FsrmReportGenerationContext, reserved: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationManager_Impl::RunClassification(this, core::mem::transmute_copy(&context), core::mem::transmute(&reserved)).into() } - unsafe extern "system" fn WaitForClassificationCompletion(this: *mut core::ffi::c_void, waitseconds: i32, completed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn WaitForClassificationCompletion(this: *mut core::ffi::c_void, waitseconds: i32, completed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::WaitForClassificationCompletion(this, core::mem::transmute_copy(&waitseconds)) { Ok(ok__) => { @@ -1030,17 +793,11 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CancelClassification(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn CancelClassification(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationManager_Impl::CancelClassification(this).into() } - unsafe extern "system" fn EnumFileProperties(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, options: FsrmGetFilePropertyOptions, fileproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn EnumFileProperties(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, options: FsrmGetFilePropertyOptions, fileproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::EnumFileProperties(this, core::mem::transmute(&filepath), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1050,10 +807,7 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileProperty(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, options: FsrmGetFilePropertyOptions, property: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn GetFileProperty(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, options: FsrmGetFilePropertyOptions, property: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationManager_Impl::GetFileProperty(this, core::mem::transmute(&filepath), core::mem::transmute(&propertyname), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1063,17 +817,11 @@ impl IFsrmClassificationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileProperty(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, propertyvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn SetFileProperty(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, propertyvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationManager_Impl::SetFileProperty(this, core::mem::transmute(&filepath), core::mem::transmute(&propertyname), core::mem::transmute(&propertyvalue)).into() } - unsafe extern "system" fn ClearFileProperty(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, property: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager_Impl, - { + unsafe extern "system" fn ClearFileProperty(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, property: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationManager_Impl::ClearFileProperty(this, core::mem::transmute(&filepath), core::mem::transmute(&property)).into() } @@ -1120,14 +868,8 @@ pub trait IFsrmClassificationManager2_Impl: Sized + IFsrmClassificationManager_I impl windows_core::RuntimeName for IFsrmClassificationManager2 {} #[cfg(feature = "Win32_System_Com")] impl IFsrmClassificationManager2_Vtbl { - pub const fn new() -> IFsrmClassificationManager2_Vtbl - where - Identity: IFsrmClassificationManager2_Impl, - { - unsafe extern "system" fn ClassifyFiles(this: *mut core::ffi::c_void, filepaths: *const super::super::System::Com::SAFEARRAY, propertynames: *const super::super::System::Com::SAFEARRAY, propertyvalues: *const super::super::System::Com::SAFEARRAY, options: FsrmGetFilePropertyOptions) -> windows_core::HRESULT - where - Identity: IFsrmClassificationManager2_Impl, - { + pub const fn new() -> IFsrmClassificationManager2_Vtbl { + unsafe extern "system" fn ClassifyFiles(this: *mut core::ffi::c_void, filepaths: *const super::super::System::Com::SAFEARRAY, propertynames: *const super::super::System::Com::SAFEARRAY, propertyvalues: *const super::super::System::Com::SAFEARRAY, options: FsrmGetFilePropertyOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationManager2_Impl::ClassifyFiles(this, core::mem::transmute_copy(&filepaths), core::mem::transmute_copy(&propertynames), core::mem::transmute_copy(&propertyvalues), core::mem::transmute_copy(&options)).into() } @@ -1150,14 +892,8 @@ pub trait IFsrmClassificationRule_Impl: Sized + IFsrmRule_Impl { impl windows_core::RuntimeName for IFsrmClassificationRule {} #[cfg(feature = "Win32_System_Com")] impl IFsrmClassificationRule_Vtbl { - pub const fn new() -> IFsrmClassificationRule_Vtbl - where - Identity: IFsrmClassificationRule_Impl, - { - unsafe extern "system" fn ExecutionOption(this: *mut core::ffi::c_void, executionoption: *mut FsrmExecutionOption) -> windows_core::HRESULT - where - Identity: IFsrmClassificationRule_Impl, - { + pub const fn new() -> IFsrmClassificationRule_Vtbl { + unsafe extern "system" fn ExecutionOption(this: *mut core::ffi::c_void, executionoption: *mut FsrmExecutionOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationRule_Impl::ExecutionOption(this) { Ok(ok__) => { @@ -1167,17 +903,11 @@ impl IFsrmClassificationRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExecutionOption(this: *mut core::ffi::c_void, executionoption: FsrmExecutionOption) -> windows_core::HRESULT - where - Identity: IFsrmClassificationRule_Impl, - { + unsafe extern "system" fn SetExecutionOption(this: *mut core::ffi::c_void, executionoption: FsrmExecutionOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationRule_Impl::SetExecutionOption(this, core::mem::transmute_copy(&executionoption)).into() } - unsafe extern "system" fn PropertyAffected(this: *mut core::ffi::c_void, property: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationRule_Impl, - { + unsafe extern "system" fn PropertyAffected(this: *mut core::ffi::c_void, property: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationRule_Impl::PropertyAffected(this) { Ok(ok__) => { @@ -1187,17 +917,11 @@ impl IFsrmClassificationRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertyAffected(this: *mut core::ffi::c_void, property: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationRule_Impl, - { + unsafe extern "system" fn SetPropertyAffected(this: *mut core::ffi::c_void, property: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationRule_Impl::SetPropertyAffected(this, core::mem::transmute(&property)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationRule_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassificationRule_Impl::Value(this) { Ok(ok__) => { @@ -1207,10 +931,7 @@ impl IFsrmClassificationRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassificationRule_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassificationRule_Impl::SetValue(this, core::mem::transmute(&value)).into() } @@ -1241,14 +962,8 @@ pub trait IFsrmClassifierModuleDefinition_Impl: Sized + IFsrmPipelineModuleDefin impl windows_core::RuntimeName for IFsrmClassifierModuleDefinition {} #[cfg(feature = "Win32_System_Com")] impl IFsrmClassifierModuleDefinition_Vtbl { - pub const fn new() -> IFsrmClassifierModuleDefinition_Vtbl - where - Identity: IFsrmClassifierModuleDefinition_Impl, - { - unsafe extern "system" fn PropertiesAffected(this: *mut core::ffi::c_void, propertiesaffected: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleDefinition_Impl, - { + pub const fn new() -> IFsrmClassifierModuleDefinition_Vtbl { + unsafe extern "system" fn PropertiesAffected(this: *mut core::ffi::c_void, propertiesaffected: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassifierModuleDefinition_Impl::PropertiesAffected(this) { Ok(ok__) => { @@ -1258,17 +973,11 @@ impl IFsrmClassifierModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertiesAffected(this: *mut core::ffi::c_void, propertiesaffected: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleDefinition_Impl, - { + unsafe extern "system" fn SetPropertiesAffected(this: *mut core::ffi::c_void, propertiesaffected: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassifierModuleDefinition_Impl::SetPropertiesAffected(this, core::mem::transmute_copy(&propertiesaffected)).into() } - unsafe extern "system" fn PropertiesUsed(this: *mut core::ffi::c_void, propertiesused: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleDefinition_Impl, - { + unsafe extern "system" fn PropertiesUsed(this: *mut core::ffi::c_void, propertiesused: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassifierModuleDefinition_Impl::PropertiesUsed(this) { Ok(ok__) => { @@ -1278,17 +987,11 @@ impl IFsrmClassifierModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertiesUsed(this: *mut core::ffi::c_void, propertiesused: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleDefinition_Impl, - { + unsafe extern "system" fn SetPropertiesUsed(this: *mut core::ffi::c_void, propertiesused: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassifierModuleDefinition_Impl::SetPropertiesUsed(this, core::mem::transmute_copy(&propertiesused)).into() } - unsafe extern "system" fn NeedsExplicitValue(this: *mut core::ffi::c_void, needsexplicitvalue: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleDefinition_Impl, - { + unsafe extern "system" fn NeedsExplicitValue(this: *mut core::ffi::c_void, needsexplicitvalue: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassifierModuleDefinition_Impl::NeedsExplicitValue(this) { Ok(ok__) => { @@ -1298,10 +1001,7 @@ impl IFsrmClassifierModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNeedsExplicitValue(this: *mut core::ffi::c_void, needsexplicitvalue: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleDefinition_Impl, - { + unsafe extern "system" fn SetNeedsExplicitValue(this: *mut core::ffi::c_void, needsexplicitvalue: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassifierModuleDefinition_Impl::SetNeedsExplicitValue(this, core::mem::transmute_copy(&needsexplicitvalue)).into() } @@ -1332,14 +1032,8 @@ pub trait IFsrmClassifierModuleImplementation_Impl: Sized + IFsrmPipelineModuleI impl windows_core::RuntimeName for IFsrmClassifierModuleImplementation {} #[cfg(feature = "Win32_System_Com")] impl IFsrmClassifierModuleImplementation_Vtbl { - pub const fn new() -> IFsrmClassifierModuleImplementation_Vtbl - where - Identity: IFsrmClassifierModuleImplementation_Impl, - { - unsafe extern "system" fn LastModified(this: *mut core::ffi::c_void, lastmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleImplementation_Impl, - { + pub const fn new() -> IFsrmClassifierModuleImplementation_Vtbl { + unsafe extern "system" fn LastModified(this: *mut core::ffi::c_void, lastmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmClassifierModuleImplementation_Impl::LastModified(this) { Ok(ok__) => { @@ -1349,38 +1043,23 @@ impl IFsrmClassifierModuleImplementation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UseRulesAndDefinitions(this: *mut core::ffi::c_void, rules: *mut core::ffi::c_void, propertydefinitions: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleImplementation_Impl, - { + unsafe extern "system" fn UseRulesAndDefinitions(this: *mut core::ffi::c_void, rules: *mut core::ffi::c_void, propertydefinitions: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassifierModuleImplementation_Impl::UseRulesAndDefinitions(this, windows_core::from_raw_borrowed(&rules), windows_core::from_raw_borrowed(&propertydefinitions)).into() } - unsafe extern "system" fn OnBeginFile(this: *mut core::ffi::c_void, propertybag: *mut core::ffi::c_void, arrayruleids: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleImplementation_Impl, - { + unsafe extern "system" fn OnBeginFile(this: *mut core::ffi::c_void, propertybag: *mut core::ffi::c_void, arrayruleids: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassifierModuleImplementation_Impl::OnBeginFile(this, windows_core::from_raw_borrowed(&propertybag), core::mem::transmute_copy(&arrayruleids)).into() } - unsafe extern "system" fn DoesPropertyValueApply(this: *mut core::ffi::c_void, property: core::mem::MaybeUninit, value: core::mem::MaybeUninit, applyvalue: *mut super::super::Foundation::VARIANT_BOOL, idrule: windows_core::GUID, idpropdef: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleImplementation_Impl, - { + unsafe extern "system" fn DoesPropertyValueApply(this: *mut core::ffi::c_void, property: core::mem::MaybeUninit, value: core::mem::MaybeUninit, applyvalue: *mut super::super::Foundation::VARIANT_BOOL, idrule: windows_core::GUID, idpropdef: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassifierModuleImplementation_Impl::DoesPropertyValueApply(this, 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(this: *mut core::ffi::c_void, property: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit, idrule: windows_core::GUID, idpropdef: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleImplementation_Impl, - { + unsafe extern "system" fn GetPropertyValueToApply(this: *mut core::ffi::c_void, property: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit, idrule: windows_core::GUID, idpropdef: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassifierModuleImplementation_Impl::GetPropertyValueToApply(this, core::mem::transmute(&property), core::mem::transmute_copy(&value), core::mem::transmute(&idrule), core::mem::transmute(&idpropdef)).into() } - unsafe extern "system" fn OnEndFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmClassifierModuleImplementation_Impl, - { + unsafe extern "system" fn OnEndFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmClassifierModuleImplementation_Impl::OnEndFile(this).into() } @@ -1412,14 +1091,8 @@ pub trait IFsrmCollection_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IFsrmCollection {} #[cfg(feature = "Win32_System_Com")] impl IFsrmCollection_Vtbl { - pub const fn new() -> IFsrmCollection_Vtbl - where - Identity: IFsrmCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, unknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmCollection_Impl, - { + pub const fn new() -> IFsrmCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, unknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1429,10 +1102,7 @@ impl IFsrmCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, item: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, item: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1442,10 +1112,7 @@ impl IFsrmCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmCollection_Impl::Count(this) { Ok(ok__) => { @@ -1455,10 +1122,7 @@ impl IFsrmCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, state: *mut FsrmCollectionState) -> windows_core::HRESULT - where - Identity: IFsrmCollection_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, state: *mut FsrmCollectionState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmCollection_Impl::State(this) { Ok(ok__) => { @@ -1468,17 +1132,11 @@ impl IFsrmCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmCollection_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmCollection_Impl::Cancel(this).into() } - unsafe extern "system" fn WaitForCompletion(this: *mut core::ffi::c_void, waitseconds: i32, completed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmCollection_Impl, - { + unsafe extern "system" fn WaitForCompletion(this: *mut core::ffi::c_void, waitseconds: i32, completed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmCollection_Impl::WaitForCompletion(this, core::mem::transmute_copy(&waitseconds)) { Ok(ok__) => { @@ -1488,10 +1146,7 @@ impl IFsrmCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetById(this: *mut core::ffi::c_void, id: windows_core::GUID, entry: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmCollection_Impl, - { + unsafe extern "system" fn GetById(this: *mut core::ffi::c_void, id: windows_core::GUID, entry: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmCollection_Impl::GetById(this, core::mem::transmute(&id)) { Ok(ok__) => { @@ -1524,14 +1179,8 @@ pub trait IFsrmCommittableCollection_Impl: Sized + IFsrmMutableCollection_Impl { impl windows_core::RuntimeName for IFsrmCommittableCollection {} #[cfg(feature = "Win32_System_Com")] impl IFsrmCommittableCollection_Vtbl { - pub const fn new() -> IFsrmCommittableCollection_Vtbl - where - Identity: IFsrmCommittableCollection_Impl, - { - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, options: FsrmCommitOptions, results: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmCommittableCollection_Impl, - { + pub const fn new() -> IFsrmCommittableCollection_Vtbl { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, options: FsrmCommitOptions, results: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmCommittableCollection_Impl::Commit(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1556,14 +1205,8 @@ pub trait IFsrmDerivedObjectsResult_Impl: Sized + super::super::System::Com::IDi impl windows_core::RuntimeName for IFsrmDerivedObjectsResult {} #[cfg(feature = "Win32_System_Com")] impl IFsrmDerivedObjectsResult_Vtbl { - pub const fn new() -> IFsrmDerivedObjectsResult_Vtbl - where - Identity: IFsrmDerivedObjectsResult_Impl, - { - unsafe extern "system" fn DerivedObjects(this: *mut core::ffi::c_void, derivedobjects: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmDerivedObjectsResult_Impl, - { + pub const fn new() -> IFsrmDerivedObjectsResult_Vtbl { + unsafe extern "system" fn DerivedObjects(this: *mut core::ffi::c_void, derivedobjects: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmDerivedObjectsResult_Impl::DerivedObjects(this) { Ok(ok__) => { @@ -1573,10 +1216,7 @@ impl IFsrmDerivedObjectsResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Results(this: *mut core::ffi::c_void, results: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmDerivedObjectsResult_Impl, - { + unsafe extern "system" fn Results(this: *mut core::ffi::c_void, results: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmDerivedObjectsResult_Impl::Results(this) { Ok(ok__) => { @@ -1609,21 +1249,12 @@ pub trait IFsrmExportImport_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IFsrmExportImport {} #[cfg(feature = "Win32_System_Com")] impl IFsrmExportImport_Vtbl { - pub const fn new() -> IFsrmExportImport_Vtbl - where - Identity: IFsrmExportImport_Impl, - { - unsafe extern "system" fn ExportFileGroups(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, filegroupnamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmExportImport_Impl, - { + pub const fn new() -> IFsrmExportImport_Vtbl { + unsafe extern "system" fn ExportFileGroups(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, filegroupnamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmExportImport_Impl::ExportFileGroups(this, core::mem::transmute(&filepath), core::mem::transmute_copy(&filegroupnamessafearray), core::mem::transmute(&remotehost)).into() } - unsafe extern "system" fn ImportFileGroups(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, filegroupnamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit, filegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmExportImport_Impl, - { + unsafe extern "system" fn ImportFileGroups(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, filegroupnamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit, filegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmExportImport_Impl::ImportFileGroups(this, core::mem::transmute(&filepath), core::mem::transmute_copy(&filegroupnamessafearray), core::mem::transmute(&remotehost)) { Ok(ok__) => { @@ -1633,17 +1264,11 @@ impl IFsrmExportImport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExportFileScreenTemplates(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, templatenamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmExportImport_Impl, - { + unsafe extern "system" fn ExportFileScreenTemplates(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, templatenamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmExportImport_Impl::ExportFileScreenTemplates(this, core::mem::transmute(&filepath), core::mem::transmute_copy(&templatenamessafearray), core::mem::transmute(&remotehost)).into() } - unsafe extern "system" fn ImportFileScreenTemplates(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, templatenamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit, templates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmExportImport_Impl, - { + unsafe extern "system" fn ImportFileScreenTemplates(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, templatenamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit, templates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmExportImport_Impl::ImportFileScreenTemplates(this, core::mem::transmute(&filepath), core::mem::transmute_copy(&templatenamessafearray), core::mem::transmute(&remotehost)) { Ok(ok__) => { @@ -1653,17 +1278,11 @@ impl IFsrmExportImport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExportQuotaTemplates(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, templatenamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmExportImport_Impl, - { + unsafe extern "system" fn ExportQuotaTemplates(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, templatenamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmExportImport_Impl::ExportQuotaTemplates(this, core::mem::transmute(&filepath), core::mem::transmute_copy(&templatenamessafearray), core::mem::transmute(&remotehost)).into() } - unsafe extern "system" fn ImportQuotaTemplates(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, templatenamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit, templates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmExportImport_Impl, - { + unsafe extern "system" fn ImportQuotaTemplates(this: *mut core::ffi::c_void, filepath: core::mem::MaybeUninit, templatenamessafearray: *const core::mem::MaybeUninit, remotehost: core::mem::MaybeUninit, templates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmExportImport_Impl::ImportQuotaTemplates(this, core::mem::transmute(&filepath), core::mem::transmute_copy(&templatenamessafearray), core::mem::transmute(&remotehost)) { Ok(ok__) => { @@ -1696,14 +1315,8 @@ pub trait IFsrmFileCondition_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IFsrmFileCondition {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileCondition_Vtbl { - pub const fn new() -> IFsrmFileCondition_Vtbl - where - Identity: IFsrmFileCondition_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pval: *mut FsrmFileConditionType) -> windows_core::HRESULT - where - Identity: IFsrmFileCondition_Impl, - { + pub const fn new() -> IFsrmFileCondition_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pval: *mut FsrmFileConditionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileCondition_Impl::Type(this) { Ok(ok__) => { @@ -1713,10 +1326,7 @@ impl IFsrmFileCondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileCondition_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileCondition_Impl::Delete(this).into() } @@ -1743,14 +1353,8 @@ pub trait IFsrmFileConditionProperty_Impl: Sized + IFsrmFileCondition_Impl { impl windows_core::RuntimeName for IFsrmFileConditionProperty {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileConditionProperty_Vtbl { - pub const fn new() -> IFsrmFileConditionProperty_Vtbl - where - Identity: IFsrmFileConditionProperty_Impl, - { - unsafe extern "system" fn PropertyName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileConditionProperty_Impl, - { + pub const fn new() -> IFsrmFileConditionProperty_Vtbl { + unsafe extern "system" fn PropertyName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileConditionProperty_Impl::PropertyName(this) { Ok(ok__) => { @@ -1760,17 +1364,11 @@ impl IFsrmFileConditionProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertyName(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileConditionProperty_Impl, - { + unsafe extern "system" fn SetPropertyName(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileConditionProperty_Impl::SetPropertyName(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn PropertyId(this: *mut core::ffi::c_void, pval: *mut FsrmFileSystemPropertyId) -> windows_core::HRESULT - where - Identity: IFsrmFileConditionProperty_Impl, - { + unsafe extern "system" fn PropertyId(this: *mut core::ffi::c_void, pval: *mut FsrmFileSystemPropertyId) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileConditionProperty_Impl::PropertyId(this) { Ok(ok__) => { @@ -1780,17 +1378,11 @@ impl IFsrmFileConditionProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertyId(this: *mut core::ffi::c_void, newval: FsrmFileSystemPropertyId) -> windows_core::HRESULT - where - Identity: IFsrmFileConditionProperty_Impl, - { + unsafe extern "system" fn SetPropertyId(this: *mut core::ffi::c_void, newval: FsrmFileSystemPropertyId) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileConditionProperty_Impl::SetPropertyId(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Operator(this: *mut core::ffi::c_void, pval: *mut FsrmPropertyConditionType) -> windows_core::HRESULT - where - Identity: IFsrmFileConditionProperty_Impl, - { + unsafe extern "system" fn Operator(this: *mut core::ffi::c_void, pval: *mut FsrmPropertyConditionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileConditionProperty_Impl::Operator(this) { Ok(ok__) => { @@ -1800,17 +1392,11 @@ impl IFsrmFileConditionProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOperator(this: *mut core::ffi::c_void, newval: FsrmPropertyConditionType) -> windows_core::HRESULT - where - Identity: IFsrmFileConditionProperty_Impl, - { + unsafe extern "system" fn SetOperator(this: *mut core::ffi::c_void, newval: FsrmPropertyConditionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileConditionProperty_Impl::SetOperator(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn ValueType(this: *mut core::ffi::c_void, pval: *mut FsrmPropertyValueType) -> windows_core::HRESULT - where - Identity: IFsrmFileConditionProperty_Impl, - { + unsafe extern "system" fn ValueType(this: *mut core::ffi::c_void, pval: *mut FsrmPropertyValueType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileConditionProperty_Impl::ValueType(this) { Ok(ok__) => { @@ -1820,17 +1406,11 @@ impl IFsrmFileConditionProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValueType(this: *mut core::ffi::c_void, newval: FsrmPropertyValueType) -> windows_core::HRESULT - where - Identity: IFsrmFileConditionProperty_Impl, - { + unsafe extern "system" fn SetValueType(this: *mut core::ffi::c_void, newval: FsrmPropertyValueType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileConditionProperty_Impl::SetValueType(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileConditionProperty_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileConditionProperty_Impl::Value(this) { Ok(ok__) => { @@ -1840,10 +1420,7 @@ impl IFsrmFileConditionProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileConditionProperty_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileConditionProperty_Impl::SetValue(this, core::mem::transmute(&newval)).into() } @@ -1878,14 +1455,8 @@ pub trait IFsrmFileGroup_Impl: Sized + IFsrmObject_Impl { impl windows_core::RuntimeName for IFsrmFileGroup {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileGroup_Vtbl { - pub const fn new() -> IFsrmFileGroup_Vtbl - where - Identity: IFsrmFileGroup_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileGroup_Impl, - { + pub const fn new() -> IFsrmFileGroup_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileGroup_Impl::Name(this) { Ok(ok__) => { @@ -1895,17 +1466,11 @@ impl IFsrmFileGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileGroup_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileGroup_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Members(this: *mut core::ffi::c_void, members: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileGroup_Impl, - { + unsafe extern "system" fn Members(this: *mut core::ffi::c_void, members: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileGroup_Impl::Members(this) { Ok(ok__) => { @@ -1915,17 +1480,11 @@ impl IFsrmFileGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMembers(this: *mut core::ffi::c_void, members: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileGroup_Impl, - { + unsafe extern "system" fn SetMembers(this: *mut core::ffi::c_void, members: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileGroup_Impl::SetMembers(this, windows_core::from_raw_borrowed(&members)).into() } - unsafe extern "system" fn NonMembers(this: *mut core::ffi::c_void, nonmembers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileGroup_Impl, - { + unsafe extern "system" fn NonMembers(this: *mut core::ffi::c_void, nonmembers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileGroup_Impl::NonMembers(this) { Ok(ok__) => { @@ -1935,10 +1494,7 @@ impl IFsrmFileGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNonMembers(this: *mut core::ffi::c_void, nonmembers: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileGroup_Impl, - { + unsafe extern "system" fn SetNonMembers(this: *mut core::ffi::c_void, nonmembers: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileGroup_Impl::SetNonMembers(this, windows_core::from_raw_borrowed(&nonmembers)).into() } @@ -1965,14 +1521,8 @@ pub trait IFsrmFileGroupImported_Impl: Sized + IFsrmFileGroup_Impl { impl windows_core::RuntimeName for IFsrmFileGroupImported {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileGroupImported_Vtbl { - pub const fn new() -> IFsrmFileGroupImported_Vtbl - where - Identity: IFsrmFileGroupImported_Impl, - { - unsafe extern "system" fn OverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmFileGroupImported_Impl, - { + pub const fn new() -> IFsrmFileGroupImported_Vtbl { + unsafe extern "system" fn OverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileGroupImported_Impl::OverwriteOnCommit(this) { Ok(ok__) => { @@ -1982,10 +1532,7 @@ impl IFsrmFileGroupImported_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmFileGroupImported_Impl, - { + unsafe extern "system" fn SetOverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileGroupImported_Impl::SetOverwriteOnCommit(this, core::mem::transmute_copy(&overwrite)).into() } @@ -2011,14 +1558,8 @@ pub trait IFsrmFileGroupManager_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for IFsrmFileGroupManager {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileGroupManager_Vtbl { - pub const fn new() -> IFsrmFileGroupManager_Vtbl - where - Identity: IFsrmFileGroupManager_Impl, - { - unsafe extern "system" fn CreateFileGroup(this: *mut core::ffi::c_void, filegroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileGroupManager_Impl, - { + pub const fn new() -> IFsrmFileGroupManager_Vtbl { + unsafe extern "system" fn CreateFileGroup(this: *mut core::ffi::c_void, filegroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileGroupManager_Impl::CreateFileGroup(this) { Ok(ok__) => { @@ -2028,10 +1569,7 @@ impl IFsrmFileGroupManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileGroup(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, filegroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileGroupManager_Impl, - { + unsafe extern "system" fn GetFileGroup(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, filegroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileGroupManager_Impl::GetFileGroup(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -2041,10 +1579,7 @@ impl IFsrmFileGroupManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumFileGroups(this: *mut core::ffi::c_void, options: FsrmEnumOptions, filegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileGroupManager_Impl, - { + unsafe extern "system" fn EnumFileGroups(this: *mut core::ffi::c_void, options: FsrmEnumOptions, filegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileGroupManager_Impl::EnumFileGroups(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -2054,10 +1589,7 @@ impl IFsrmFileGroupManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExportFileGroups(this: *mut core::ffi::c_void, filegroupnamesarray: *const core::mem::MaybeUninit, serializedfilegroups: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileGroupManager_Impl, - { + unsafe extern "system" fn ExportFileGroups(this: *mut core::ffi::c_void, filegroupnamesarray: *const core::mem::MaybeUninit, serializedfilegroups: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileGroupManager_Impl::ExportFileGroups(this, core::mem::transmute_copy(&filegroupnamesarray)) { Ok(ok__) => { @@ -2067,10 +1599,7 @@ impl IFsrmFileGroupManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImportFileGroups(this: *mut core::ffi::c_void, serializedfilegroups: core::mem::MaybeUninit, filegroupnamesarray: *const core::mem::MaybeUninit, filegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileGroupManager_Impl, - { + unsafe extern "system" fn ImportFileGroups(this: *mut core::ffi::c_void, serializedfilegroups: core::mem::MaybeUninit, filegroupnamesarray: *const core::mem::MaybeUninit, filegroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileGroupManager_Impl::ImportFileGroups(this, core::mem::transmute(&serializedfilegroups), core::mem::transmute_copy(&filegroupnamesarray)) { Ok(ok__) => { @@ -2149,14 +1678,8 @@ pub trait IFsrmFileManagementJob_Impl: Sized + IFsrmObject_Impl { impl windows_core::RuntimeName for IFsrmFileManagementJob {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileManagementJob_Vtbl { - pub const fn new() -> IFsrmFileManagementJob_Vtbl - where - Identity: IFsrmFileManagementJob_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + pub const fn new() -> IFsrmFileManagementJob_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::Name(this) { Ok(ok__) => { @@ -2166,17 +1689,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn NamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn NamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::NamespaceRoots(this) { Ok(ok__) => { @@ -2186,17 +1703,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetNamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetNamespaceRoots(this, core::mem::transmute_copy(&namespaceroots)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::Enabled(this) { Ok(ok__) => { @@ -2206,17 +1717,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn OperationType(this: *mut core::ffi::c_void, operationtype: *mut FsrmFileManagementType) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn OperationType(this: *mut core::ffi::c_void, operationtype: *mut FsrmFileManagementType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::OperationType(this) { Ok(ok__) => { @@ -2226,17 +1731,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOperationType(this: *mut core::ffi::c_void, operationtype: FsrmFileManagementType) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetOperationType(this: *mut core::ffi::c_void, operationtype: FsrmFileManagementType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetOperationType(this, core::mem::transmute_copy(&operationtype)).into() } - unsafe extern "system" fn ExpirationDirectory(this: *mut core::ffi::c_void, expirationdirectory: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn ExpirationDirectory(this: *mut core::ffi::c_void, expirationdirectory: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::ExpirationDirectory(this) { Ok(ok__) => { @@ -2246,17 +1745,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExpirationDirectory(this: *mut core::ffi::c_void, expirationdirectory: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetExpirationDirectory(this: *mut core::ffi::c_void, expirationdirectory: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetExpirationDirectory(this, core::mem::transmute(&expirationdirectory)).into() } - unsafe extern "system" fn CustomAction(this: *mut core::ffi::c_void, action: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn CustomAction(this: *mut core::ffi::c_void, action: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::CustomAction(this) { Ok(ok__) => { @@ -2266,10 +1759,7 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Notifications(this: *mut core::ffi::c_void, notifications: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn Notifications(this: *mut core::ffi::c_void, notifications: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::Notifications(this) { Ok(ok__) => { @@ -2279,10 +1769,7 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Logging(this: *mut core::ffi::c_void, loggingflags: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn Logging(this: *mut core::ffi::c_void, loggingflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::Logging(this) { Ok(ok__) => { @@ -2292,17 +1779,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogging(this: *mut core::ffi::c_void, loggingflags: i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetLogging(this: *mut core::ffi::c_void, loggingflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetLogging(this, core::mem::transmute_copy(&loggingflags)).into() } - unsafe extern "system" fn ReportEnabled(this: *mut core::ffi::c_void, reportenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn ReportEnabled(this: *mut core::ffi::c_void, reportenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::ReportEnabled(this) { Ok(ok__) => { @@ -2312,17 +1793,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReportEnabled(this: *mut core::ffi::c_void, reportenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetReportEnabled(this: *mut core::ffi::c_void, reportenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetReportEnabled(this, core::mem::transmute_copy(&reportenabled)).into() } - unsafe extern "system" fn Formats(this: *mut core::ffi::c_void, formats: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn Formats(this: *mut core::ffi::c_void, formats: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::Formats(this) { Ok(ok__) => { @@ -2332,17 +1807,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormats(this: *mut core::ffi::c_void, formats: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetFormats(this: *mut core::ffi::c_void, formats: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetFormats(this, core::mem::transmute_copy(&formats)).into() } - unsafe extern "system" fn MailTo(this: *mut core::ffi::c_void, mailto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn MailTo(this: *mut core::ffi::c_void, mailto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::MailTo(this) { Ok(ok__) => { @@ -2352,17 +1821,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMailTo(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetMailTo(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetMailTo(this, core::mem::transmute(&mailto)).into() } - unsafe extern "system" fn DaysSinceFileCreated(this: *mut core::ffi::c_void, dayssincecreation: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn DaysSinceFileCreated(this: *mut core::ffi::c_void, dayssincecreation: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::DaysSinceFileCreated(this) { Ok(ok__) => { @@ -2372,17 +1835,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDaysSinceFileCreated(this: *mut core::ffi::c_void, dayssincecreation: i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetDaysSinceFileCreated(this: *mut core::ffi::c_void, dayssincecreation: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetDaysSinceFileCreated(this, core::mem::transmute_copy(&dayssincecreation)).into() } - unsafe extern "system" fn DaysSinceFileLastAccessed(this: *mut core::ffi::c_void, dayssinceaccess: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn DaysSinceFileLastAccessed(this: *mut core::ffi::c_void, dayssinceaccess: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::DaysSinceFileLastAccessed(this) { Ok(ok__) => { @@ -2392,17 +1849,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDaysSinceFileLastAccessed(this: *mut core::ffi::c_void, dayssinceaccess: i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetDaysSinceFileLastAccessed(this: *mut core::ffi::c_void, dayssinceaccess: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetDaysSinceFileLastAccessed(this, core::mem::transmute_copy(&dayssinceaccess)).into() } - unsafe extern "system" fn DaysSinceFileLastModified(this: *mut core::ffi::c_void, dayssincemodify: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn DaysSinceFileLastModified(this: *mut core::ffi::c_void, dayssincemodify: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::DaysSinceFileLastModified(this) { Ok(ok__) => { @@ -2412,17 +1863,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDaysSinceFileLastModified(this: *mut core::ffi::c_void, dayssincemodify: i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetDaysSinceFileLastModified(this: *mut core::ffi::c_void, dayssincemodify: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetDaysSinceFileLastModified(this, core::mem::transmute_copy(&dayssincemodify)).into() } - unsafe extern "system" fn PropertyConditions(this: *mut core::ffi::c_void, propertyconditions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn PropertyConditions(this: *mut core::ffi::c_void, propertyconditions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::PropertyConditions(this) { Ok(ok__) => { @@ -2432,10 +1877,7 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FromDate(this: *mut core::ffi::c_void, fromdate: *mut f64) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn FromDate(this: *mut core::ffi::c_void, fromdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::FromDate(this) { Ok(ok__) => { @@ -2445,17 +1887,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFromDate(this: *mut core::ffi::c_void, fromdate: f64) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetFromDate(this: *mut core::ffi::c_void, fromdate: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetFromDate(this, core::mem::transmute_copy(&fromdate)).into() } - unsafe extern "system" fn Task(this: *mut core::ffi::c_void, taskname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn Task(this: *mut core::ffi::c_void, taskname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::Task(this) { Ok(ok__) => { @@ -2465,17 +1901,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTask(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetTask(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetTask(this, core::mem::transmute(&taskname)).into() } - unsafe extern "system" fn Parameters(this: *mut core::ffi::c_void, parameters: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn Parameters(this: *mut core::ffi::c_void, parameters: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::Parameters(this) { Ok(ok__) => { @@ -2485,17 +1915,11 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetParameters(this, core::mem::transmute_copy(¶meters)).into() } - unsafe extern "system" fn RunningStatus(this: *mut core::ffi::c_void, runningstatus: *mut FsrmReportRunningStatus) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn RunningStatus(this: *mut core::ffi::c_void, runningstatus: *mut FsrmReportRunningStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::RunningStatus(this) { Ok(ok__) => { @@ -2505,10 +1929,7 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastError(this: *mut core::ffi::c_void, lasterror: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn LastError(this: *mut core::ffi::c_void, lasterror: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::LastError(this) { Ok(ok__) => { @@ -2518,10 +1939,7 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastReportPathWithoutExtension(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn LastReportPathWithoutExtension(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::LastReportPathWithoutExtension(this) { Ok(ok__) => { @@ -2531,10 +1949,7 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastRun(this: *mut core::ffi::c_void, lastrun: *mut f64) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn LastRun(this: *mut core::ffi::c_void, lastrun: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::LastRun(this) { Ok(ok__) => { @@ -2544,10 +1959,7 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FileNamePattern(this: *mut core::ffi::c_void, filenamepattern: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn FileNamePattern(this: *mut core::ffi::c_void, filenamepattern: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::FileNamePattern(this) { Ok(ok__) => { @@ -2557,24 +1969,15 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileNamePattern(this: *mut core::ffi::c_void, filenamepattern: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn SetFileNamePattern(this: *mut core::ffi::c_void, filenamepattern: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::SetFileNamePattern(this, core::mem::transmute(&filenamepattern)).into() } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void, context: FsrmReportGenerationContext) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void, context: FsrmReportGenerationContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::Run(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn WaitForCompletion(this: *mut core::ffi::c_void, waitseconds: i32, completed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn WaitForCompletion(this: *mut core::ffi::c_void, waitseconds: i32, completed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::WaitForCompletion(this, core::mem::transmute_copy(&waitseconds)) { Ok(ok__) => { @@ -2584,38 +1987,23 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::Cancel(this).into() } - unsafe extern "system" fn AddNotification(this: *mut core::ffi::c_void, days: i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn AddNotification(this: *mut core::ffi::c_void, days: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::AddNotification(this, core::mem::transmute_copy(&days)).into() } - unsafe extern "system" fn DeleteNotification(this: *mut core::ffi::c_void, days: i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn DeleteNotification(this: *mut core::ffi::c_void, days: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::DeleteNotification(this, core::mem::transmute_copy(&days)).into() } - unsafe extern "system" fn ModifyNotification(this: *mut core::ffi::c_void, days: i32, newdays: i32) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn ModifyNotification(this: *mut core::ffi::c_void, days: i32, newdays: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileManagementJob_Impl::ModifyNotification(this, core::mem::transmute_copy(&days), core::mem::transmute_copy(&newdays)).into() } - unsafe extern "system" fn CreateNotificationAction(this: *mut core::ffi::c_void, days: i32, actiontype: FsrmActionType, action: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn CreateNotificationAction(this: *mut core::ffi::c_void, days: i32, actiontype: FsrmActionType, action: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::CreateNotificationAction(this, core::mem::transmute_copy(&days), core::mem::transmute_copy(&actiontype)) { Ok(ok__) => { @@ -2625,10 +2013,7 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumNotificationActions(this: *mut core::ffi::c_void, days: i32, actions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn EnumNotificationActions(this: *mut core::ffi::c_void, days: i32, actions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::EnumNotificationActions(this, core::mem::transmute_copy(&days)) { Ok(ok__) => { @@ -2638,10 +2023,7 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePropertyCondition(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, propertycondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn CreatePropertyCondition(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, propertycondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::CreatePropertyCondition(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -2651,10 +2033,7 @@ impl IFsrmFileManagementJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCustomAction(this: *mut core::ffi::c_void, customaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJob_Impl, - { + unsafe extern "system" fn CreateCustomAction(this: *mut core::ffi::c_void, customaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJob_Impl::CreateCustomAction(this) { Ok(ok__) => { @@ -2733,14 +2112,8 @@ pub trait IFsrmFileManagementJobManager_Impl: Sized + super::super::System::Com: impl windows_core::RuntimeName for IFsrmFileManagementJobManager {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileManagementJobManager_Vtbl { - pub const fn new() -> IFsrmFileManagementJobManager_Vtbl - where - Identity: IFsrmFileManagementJobManager_Impl, - { - unsafe extern "system" fn ActionVariables(this: *mut core::ffi::c_void, variables: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJobManager_Impl, - { + pub const fn new() -> IFsrmFileManagementJobManager_Vtbl { + unsafe extern "system" fn ActionVariables(this: *mut core::ffi::c_void, variables: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJobManager_Impl::ActionVariables(this) { Ok(ok__) => { @@ -2750,10 +2123,7 @@ impl IFsrmFileManagementJobManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActionVariableDescriptions(this: *mut core::ffi::c_void, descriptions: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJobManager_Impl, - { + unsafe extern "system" fn ActionVariableDescriptions(this: *mut core::ffi::c_void, descriptions: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJobManager_Impl::ActionVariableDescriptions(this) { Ok(ok__) => { @@ -2763,10 +2133,7 @@ impl IFsrmFileManagementJobManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumFileManagementJobs(this: *mut core::ffi::c_void, options: FsrmEnumOptions, filemanagementjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJobManager_Impl, - { + unsafe extern "system" fn EnumFileManagementJobs(this: *mut core::ffi::c_void, options: FsrmEnumOptions, filemanagementjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJobManager_Impl::EnumFileManagementJobs(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -2776,10 +2143,7 @@ impl IFsrmFileManagementJobManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileManagementJob(this: *mut core::ffi::c_void, filemanagementjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJobManager_Impl, - { + unsafe extern "system" fn CreateFileManagementJob(this: *mut core::ffi::c_void, filemanagementjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJobManager_Impl::CreateFileManagementJob(this) { Ok(ok__) => { @@ -2789,10 +2153,7 @@ impl IFsrmFileManagementJobManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileManagementJob(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, filemanagementjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileManagementJobManager_Impl, - { + unsafe extern "system" fn GetFileManagementJob(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, filemanagementjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileManagementJobManager_Impl::GetFileManagementJob(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -2828,14 +2189,8 @@ pub trait IFsrmFileScreen_Impl: Sized + IFsrmFileScreenBase_Impl { impl windows_core::RuntimeName for IFsrmFileScreen {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreen_Vtbl { - pub const fn new() -> IFsrmFileScreen_Vtbl - where - Identity: IFsrmFileScreen_Impl, - { - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileScreen_Impl, - { + pub const fn new() -> IFsrmFileScreen_Vtbl { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreen_Impl::Path(this) { Ok(ok__) => { @@ -2845,10 +2200,7 @@ impl IFsrmFileScreen_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SourceTemplateName(this: *mut core::ffi::c_void, filescreentemplatename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileScreen_Impl, - { + unsafe extern "system" fn SourceTemplateName(this: *mut core::ffi::c_void, filescreentemplatename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreen_Impl::SourceTemplateName(this) { Ok(ok__) => { @@ -2858,10 +2210,7 @@ impl IFsrmFileScreen_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MatchesSourceTemplate(this: *mut core::ffi::c_void, matches: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmFileScreen_Impl, - { + unsafe extern "system" fn MatchesSourceTemplate(this: *mut core::ffi::c_void, matches: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreen_Impl::MatchesSourceTemplate(this) { Ok(ok__) => { @@ -2871,10 +2220,7 @@ impl IFsrmFileScreen_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserSid(this: *mut core::ffi::c_void, usersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileScreen_Impl, - { + unsafe extern "system" fn UserSid(this: *mut core::ffi::c_void, usersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreen_Impl::UserSid(this) { Ok(ok__) => { @@ -2884,10 +2230,7 @@ impl IFsrmFileScreen_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserAccount(this: *mut core::ffi::c_void, useraccount: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileScreen_Impl, - { + unsafe extern "system" fn UserAccount(this: *mut core::ffi::c_void, useraccount: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreen_Impl::UserAccount(this) { Ok(ok__) => { @@ -2897,10 +2240,7 @@ impl IFsrmFileScreen_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplyTemplate(this: *mut core::ffi::c_void, filescreentemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileScreen_Impl, - { + unsafe extern "system" fn ApplyTemplate(this: *mut core::ffi::c_void, filescreentemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileScreen_Impl::ApplyTemplate(this, core::mem::transmute(&filescreentemplatename)).into() } @@ -2931,14 +2271,8 @@ pub trait IFsrmFileScreenBase_Impl: Sized + IFsrmObject_Impl { impl windows_core::RuntimeName for IFsrmFileScreenBase {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenBase_Vtbl { - pub const fn new() -> IFsrmFileScreenBase_Vtbl - where - Identity: IFsrmFileScreenBase_Impl, - { - unsafe extern "system" fn BlockedFileGroups(this: *mut core::ffi::c_void, blocklist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenBase_Impl, - { + pub const fn new() -> IFsrmFileScreenBase_Vtbl { + unsafe extern "system" fn BlockedFileGroups(this: *mut core::ffi::c_void, blocklist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenBase_Impl::BlockedFileGroups(this) { Ok(ok__) => { @@ -2948,17 +2282,11 @@ impl IFsrmFileScreenBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBlockedFileGroups(this: *mut core::ffi::c_void, blocklist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenBase_Impl, - { + unsafe extern "system" fn SetBlockedFileGroups(this: *mut core::ffi::c_void, blocklist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileScreenBase_Impl::SetBlockedFileGroups(this, windows_core::from_raw_borrowed(&blocklist)).into() } - unsafe extern "system" fn FileScreenFlags(this: *mut core::ffi::c_void, filescreenflags: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenBase_Impl, - { + unsafe extern "system" fn FileScreenFlags(this: *mut core::ffi::c_void, filescreenflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenBase_Impl::FileScreenFlags(this) { Ok(ok__) => { @@ -2968,17 +2296,11 @@ impl IFsrmFileScreenBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileScreenFlags(this: *mut core::ffi::c_void, filescreenflags: i32) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenBase_Impl, - { + unsafe extern "system" fn SetFileScreenFlags(this: *mut core::ffi::c_void, filescreenflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileScreenBase_Impl::SetFileScreenFlags(this, core::mem::transmute_copy(&filescreenflags)).into() } - unsafe extern "system" fn CreateAction(this: *mut core::ffi::c_void, actiontype: FsrmActionType, action: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenBase_Impl, - { + unsafe extern "system" fn CreateAction(this: *mut core::ffi::c_void, actiontype: FsrmActionType, action: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenBase_Impl::CreateAction(this, core::mem::transmute_copy(&actiontype)) { Ok(ok__) => { @@ -2988,10 +2310,7 @@ impl IFsrmFileScreenBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumActions(this: *mut core::ffi::c_void, actions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenBase_Impl, - { + unsafe extern "system" fn EnumActions(this: *mut core::ffi::c_void, actions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenBase_Impl::EnumActions(this) { Ok(ok__) => { @@ -3025,14 +2344,8 @@ pub trait IFsrmFileScreenException_Impl: Sized + IFsrmObject_Impl { impl windows_core::RuntimeName for IFsrmFileScreenException {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenException_Vtbl { - pub const fn new() -> IFsrmFileScreenException_Vtbl - where - Identity: IFsrmFileScreenException_Impl, - { - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenException_Impl, - { + pub const fn new() -> IFsrmFileScreenException_Vtbl { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenException_Impl::Path(this) { Ok(ok__) => { @@ -3042,10 +2355,7 @@ impl IFsrmFileScreenException_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AllowedFileGroups(this: *mut core::ffi::c_void, allowlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenException_Impl, - { + unsafe extern "system" fn AllowedFileGroups(this: *mut core::ffi::c_void, allowlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenException_Impl::AllowedFileGroups(this) { Ok(ok__) => { @@ -3055,10 +2365,7 @@ impl IFsrmFileScreenException_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowedFileGroups(this: *mut core::ffi::c_void, allowlist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenException_Impl, - { + unsafe extern "system" fn SetAllowedFileGroups(this: *mut core::ffi::c_void, allowlist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileScreenException_Impl::SetAllowedFileGroups(this, windows_core::from_raw_borrowed(&allowlist)).into() } @@ -3089,14 +2396,8 @@ pub trait IFsrmFileScreenManager_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IFsrmFileScreenManager {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenManager_Vtbl { - pub const fn new() -> IFsrmFileScreenManager_Vtbl - where - Identity: IFsrmFileScreenManager_Impl, - { - unsafe extern "system" fn ActionVariables(this: *mut core::ffi::c_void, variables: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenManager_Impl, - { + pub const fn new() -> IFsrmFileScreenManager_Vtbl { + unsafe extern "system" fn ActionVariables(this: *mut core::ffi::c_void, variables: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenManager_Impl::ActionVariables(this) { Ok(ok__) => { @@ -3106,10 +2407,7 @@ impl IFsrmFileScreenManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActionVariableDescriptions(this: *mut core::ffi::c_void, descriptions: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenManager_Impl, - { + unsafe extern "system" fn ActionVariableDescriptions(this: *mut core::ffi::c_void, descriptions: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenManager_Impl::ActionVariableDescriptions(this) { Ok(ok__) => { @@ -3119,10 +2417,7 @@ impl IFsrmFileScreenManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileScreen(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, filescreen: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenManager_Impl, - { + unsafe extern "system" fn CreateFileScreen(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, filescreen: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenManager_Impl::CreateFileScreen(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -3132,10 +2427,7 @@ impl IFsrmFileScreenManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileScreen(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, filescreen: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenManager_Impl, - { + unsafe extern "system" fn GetFileScreen(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, filescreen: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenManager_Impl::GetFileScreen(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -3145,10 +2437,7 @@ impl IFsrmFileScreenManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumFileScreens(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, filescreens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenManager_Impl, - { + unsafe extern "system" fn EnumFileScreens(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, filescreens: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenManager_Impl::EnumFileScreens(this, core::mem::transmute(&path), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -3158,10 +2447,7 @@ impl IFsrmFileScreenManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileScreenException(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, filescreenexception: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenManager_Impl, - { + unsafe extern "system" fn CreateFileScreenException(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, filescreenexception: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenManager_Impl::CreateFileScreenException(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -3171,10 +2457,7 @@ impl IFsrmFileScreenManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileScreenException(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, filescreenexception: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenManager_Impl, - { + unsafe extern "system" fn GetFileScreenException(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, filescreenexception: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenManager_Impl::GetFileScreenException(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -3184,10 +2467,7 @@ impl IFsrmFileScreenManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumFileScreenExceptions(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, filescreenexceptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenManager_Impl, - { + unsafe extern "system" fn EnumFileScreenExceptions(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, filescreenexceptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenManager_Impl::EnumFileScreenExceptions(this, core::mem::transmute(&path), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -3197,10 +2477,7 @@ impl IFsrmFileScreenManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileScreenCollection(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenManager_Impl, - { + unsafe extern "system" fn CreateFileScreenCollection(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenManager_Impl::CreateFileScreenCollection(this) { Ok(ok__) => { @@ -3238,14 +2515,8 @@ pub trait IFsrmFileScreenTemplate_Impl: Sized + IFsrmFileScreenBase_Impl { impl windows_core::RuntimeName for IFsrmFileScreenTemplate {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenTemplate_Vtbl { - pub const fn new() -> IFsrmFileScreenTemplate_Vtbl - where - Identity: IFsrmFileScreenTemplate_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplate_Impl, - { + pub const fn new() -> IFsrmFileScreenTemplate_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenTemplate_Impl::Name(this) { Ok(ok__) => { @@ -3255,24 +2526,15 @@ impl IFsrmFileScreenTemplate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplate_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileScreenTemplate_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn CopyTemplate(this: *mut core::ffi::c_void, filescreentemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplate_Impl, - { + unsafe extern "system" fn CopyTemplate(this: *mut core::ffi::c_void, filescreentemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileScreenTemplate_Impl::CopyTemplate(this, core::mem::transmute(&filescreentemplatename)).into() } - unsafe extern "system" fn CommitAndUpdateDerived(this: *mut core::ffi::c_void, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions, derivedobjectsresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplate_Impl, - { + unsafe extern "system" fn CommitAndUpdateDerived(this: *mut core::ffi::c_void, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions, derivedobjectsresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenTemplate_Impl::CommitAndUpdateDerived(this, core::mem::transmute_copy(&commitoptions), core::mem::transmute_copy(&applyoptions)) { Ok(ok__) => { @@ -3303,14 +2565,8 @@ pub trait IFsrmFileScreenTemplateImported_Impl: Sized + IFsrmFileScreenTemplate_ impl windows_core::RuntimeName for IFsrmFileScreenTemplateImported {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenTemplateImported_Vtbl { - pub const fn new() -> IFsrmFileScreenTemplateImported_Vtbl - where - Identity: IFsrmFileScreenTemplateImported_Impl, - { - unsafe extern "system" fn OverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplateImported_Impl, - { + pub const fn new() -> IFsrmFileScreenTemplateImported_Vtbl { + unsafe extern "system" fn OverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenTemplateImported_Impl::OverwriteOnCommit(this) { Ok(ok__) => { @@ -3320,10 +2576,7 @@ impl IFsrmFileScreenTemplateImported_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplateImported_Impl, - { + unsafe extern "system" fn SetOverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmFileScreenTemplateImported_Impl::SetOverwriteOnCommit(this, core::mem::transmute_copy(&overwrite)).into() } @@ -3349,14 +2602,8 @@ pub trait IFsrmFileScreenTemplateManager_Impl: Sized + super::super::System::Com impl windows_core::RuntimeName for IFsrmFileScreenTemplateManager {} #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenTemplateManager_Vtbl { - pub const fn new() -> IFsrmFileScreenTemplateManager_Vtbl - where - Identity: IFsrmFileScreenTemplateManager_Impl, - { - unsafe extern "system" fn CreateTemplate(this: *mut core::ffi::c_void, filescreentemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplateManager_Impl, - { + pub const fn new() -> IFsrmFileScreenTemplateManager_Vtbl { + unsafe extern "system" fn CreateTemplate(this: *mut core::ffi::c_void, filescreentemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenTemplateManager_Impl::CreateTemplate(this) { Ok(ok__) => { @@ -3366,10 +2613,7 @@ impl IFsrmFileScreenTemplateManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTemplate(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, filescreentemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplateManager_Impl, - { + unsafe extern "system" fn GetTemplate(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, filescreentemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenTemplateManager_Impl::GetTemplate(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -3379,10 +2623,7 @@ impl IFsrmFileScreenTemplateManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumTemplates(this: *mut core::ffi::c_void, options: FsrmEnumOptions, filescreentemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplateManager_Impl, - { + unsafe extern "system" fn EnumTemplates(this: *mut core::ffi::c_void, options: FsrmEnumOptions, filescreentemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenTemplateManager_Impl::EnumTemplates(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -3392,10 +2633,7 @@ impl IFsrmFileScreenTemplateManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExportTemplates(this: *mut core::ffi::c_void, filescreentemplatenamesarray: *const core::mem::MaybeUninit, serializedfilescreentemplates: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplateManager_Impl, - { + unsafe extern "system" fn ExportTemplates(this: *mut core::ffi::c_void, filescreentemplatenamesarray: *const core::mem::MaybeUninit, serializedfilescreentemplates: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenTemplateManager_Impl::ExportTemplates(this, core::mem::transmute_copy(&filescreentemplatenamesarray)) { Ok(ok__) => { @@ -3405,10 +2643,7 @@ impl IFsrmFileScreenTemplateManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImportTemplates(this: *mut core::ffi::c_void, serializedfilescreentemplates: core::mem::MaybeUninit, filescreentemplatenamesarray: *const core::mem::MaybeUninit, filescreentemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmFileScreenTemplateManager_Impl, - { + unsafe extern "system" fn ImportTemplates(this: *mut core::ffi::c_void, serializedfilescreentemplates: core::mem::MaybeUninit, filescreentemplatenamesarray: *const core::mem::MaybeUninit, filescreentemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmFileScreenTemplateManager_Impl::ImportTemplates(this, core::mem::transmute(&serializedfilescreentemplates), core::mem::transmute_copy(&filescreentemplatenamesarray)) { Ok(ok__) => { @@ -3442,35 +2677,20 @@ pub trait IFsrmMutableCollection_Impl: Sized + IFsrmCollection_Impl { impl windows_core::RuntimeName for IFsrmMutableCollection {} #[cfg(feature = "Win32_System_Com")] impl IFsrmMutableCollection_Vtbl { - pub const fn new() -> IFsrmMutableCollection_Vtbl - where - Identity: IFsrmMutableCollection_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, item: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmMutableCollection_Impl, - { + pub const fn new() -> IFsrmMutableCollection_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, item: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmMutableCollection_Impl::Add(this, core::mem::transmute(&item)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IFsrmMutableCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmMutableCollection_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn RemoveById(this: *mut core::ffi::c_void, id: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFsrmMutableCollection_Impl, - { + unsafe extern "system" fn RemoveById(this: *mut core::ffi::c_void, id: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmMutableCollection_Impl::RemoveById(this, core::mem::transmute(&id)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmMutableCollection_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmMutableCollection_Impl::Clone(this) { Ok(ok__) => { @@ -3504,14 +2724,8 @@ pub trait IFsrmObject_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFsrmObject {} #[cfg(feature = "Win32_System_Com")] impl IFsrmObject_Vtbl { - pub const fn new() -> IFsrmObject_Vtbl - where - Identity: IFsrmObject_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFsrmObject_Impl, - { + pub const fn new() -> IFsrmObject_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmObject_Impl::Id(this) { Ok(ok__) => { @@ -3521,10 +2735,7 @@ impl IFsrmObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmObject_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmObject_Impl::Description(this) { Ok(ok__) => { @@ -3534,24 +2745,15 @@ impl IFsrmObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmObject_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmObject_Impl::SetDescription(this, core::mem::transmute(&description)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmObject_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmObject_Impl::Delete(this).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmObject_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmObject_Impl::Commit(this).into() } @@ -3576,14 +2778,8 @@ pub trait IFsrmPathMapper_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IFsrmPathMapper {} #[cfg(feature = "Win32_System_Com")] impl IFsrmPathMapper_Vtbl { - pub const fn new() -> IFsrmPathMapper_Vtbl - where - Identity: IFsrmPathMapper_Impl, - { - unsafe extern "system" fn GetSharePathsForLocalPath(this: *mut core::ffi::c_void, localpath: core::mem::MaybeUninit, sharepaths: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPathMapper_Impl, - { + pub const fn new() -> IFsrmPathMapper_Vtbl { + unsafe extern "system" fn GetSharePathsForLocalPath(this: *mut core::ffi::c_void, localpath: core::mem::MaybeUninit, sharepaths: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPathMapper_Impl::GetSharePathsForLocalPath(this, core::mem::transmute(&localpath)) { Ok(ok__) => { @@ -3614,14 +2810,8 @@ pub trait IFsrmPipelineModuleConnector_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for IFsrmPipelineModuleConnector {} #[cfg(feature = "Win32_System_Com")] impl IFsrmPipelineModuleConnector_Vtbl { - pub const fn new() -> IFsrmPipelineModuleConnector_Vtbl - where - Identity: IFsrmPipelineModuleConnector_Impl, - { - unsafe extern "system" fn ModuleImplementation(this: *mut core::ffi::c_void, pipelinemoduleimplementation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleConnector_Impl, - { + pub const fn new() -> IFsrmPipelineModuleConnector_Vtbl { + unsafe extern "system" fn ModuleImplementation(this: *mut core::ffi::c_void, pipelinemoduleimplementation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleConnector_Impl::ModuleImplementation(this) { Ok(ok__) => { @@ -3631,10 +2821,7 @@ impl IFsrmPipelineModuleConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModuleName(this: *mut core::ffi::c_void, username: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleConnector_Impl, - { + unsafe extern "system" fn ModuleName(this: *mut core::ffi::c_void, username: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleConnector_Impl::ModuleName(this) { Ok(ok__) => { @@ -3644,10 +2831,7 @@ impl IFsrmPipelineModuleConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HostingUserAccount(this: *mut core::ffi::c_void, useraccount: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleConnector_Impl, - { + unsafe extern "system" fn HostingUserAccount(this: *mut core::ffi::c_void, useraccount: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleConnector_Impl::HostingUserAccount(this) { Ok(ok__) => { @@ -3657,10 +2841,7 @@ impl IFsrmPipelineModuleConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HostingProcessPid(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleConnector_Impl, - { + unsafe extern "system" fn HostingProcessPid(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleConnector_Impl::HostingProcessPid(this) { Ok(ok__) => { @@ -3670,10 +2851,7 @@ impl IFsrmPipelineModuleConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, moduledefinition: *mut core::ffi::c_void, moduleimplementation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleConnector_Impl, - { + unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, moduledefinition: *mut core::ffi::c_void, moduleimplementation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleConnector_Impl::Bind(this, windows_core::from_raw_borrowed(&moduledefinition), windows_core::from_raw_borrowed(&moduleimplementation)).into() } @@ -3716,14 +2894,8 @@ pub trait IFsrmPipelineModuleDefinition_Impl: Sized + IFsrmObject_Impl { impl windows_core::RuntimeName for IFsrmPipelineModuleDefinition {} #[cfg(feature = "Win32_System_Com")] impl IFsrmPipelineModuleDefinition_Vtbl { - pub const fn new() -> IFsrmPipelineModuleDefinition_Vtbl - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { - unsafe extern "system" fn ModuleClsid(this: *mut core::ffi::c_void, moduleclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + pub const fn new() -> IFsrmPipelineModuleDefinition_Vtbl { + unsafe extern "system" fn ModuleClsid(this: *mut core::ffi::c_void, moduleclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleDefinition_Impl::ModuleClsid(this) { Ok(ok__) => { @@ -3733,17 +2905,11 @@ impl IFsrmPipelineModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetModuleClsid(this: *mut core::ffi::c_void, moduleclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn SetModuleClsid(this: *mut core::ffi::c_void, moduleclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleDefinition_Impl::SetModuleClsid(this, core::mem::transmute(&moduleclsid)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleDefinition_Impl::Name(this) { Ok(ok__) => { @@ -3753,17 +2919,11 @@ impl IFsrmPipelineModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleDefinition_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Company(this: *mut core::ffi::c_void, company: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn Company(this: *mut core::ffi::c_void, company: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleDefinition_Impl::Company(this) { Ok(ok__) => { @@ -3773,17 +2933,11 @@ impl IFsrmPipelineModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCompany(this: *mut core::ffi::c_void, company: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn SetCompany(this: *mut core::ffi::c_void, company: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleDefinition_Impl::SetCompany(this, core::mem::transmute(&company)).into() } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, version: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, version: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleDefinition_Impl::Version(this) { Ok(ok__) => { @@ -3793,17 +2947,11 @@ impl IFsrmPipelineModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, version: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, version: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleDefinition_Impl::SetVersion(this, core::mem::transmute(&version)).into() } - unsafe extern "system" fn ModuleType(this: *mut core::ffi::c_void, moduletype: *mut FsrmPipelineModuleType) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn ModuleType(this: *mut core::ffi::c_void, moduletype: *mut FsrmPipelineModuleType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleDefinition_Impl::ModuleType(this) { Ok(ok__) => { @@ -3813,10 +2961,7 @@ impl IFsrmPipelineModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleDefinition_Impl::Enabled(this) { Ok(ok__) => { @@ -3826,17 +2971,11 @@ impl IFsrmPipelineModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleDefinition_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn NeedsFileContent(this: *mut core::ffi::c_void, needsfilecontent: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn NeedsFileContent(this: *mut core::ffi::c_void, needsfilecontent: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleDefinition_Impl::NeedsFileContent(this) { Ok(ok__) => { @@ -3846,17 +2985,11 @@ impl IFsrmPipelineModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNeedsFileContent(this: *mut core::ffi::c_void, needsfilecontent: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn SetNeedsFileContent(this: *mut core::ffi::c_void, needsfilecontent: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleDefinition_Impl::SetNeedsFileContent(this, core::mem::transmute_copy(&needsfilecontent)).into() } - unsafe extern "system" fn Account(this: *mut core::ffi::c_void, retrievalaccount: *mut FsrmAccountType) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn Account(this: *mut core::ffi::c_void, retrievalaccount: *mut FsrmAccountType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleDefinition_Impl::Account(this) { Ok(ok__) => { @@ -3866,17 +2999,11 @@ impl IFsrmPipelineModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccount(this: *mut core::ffi::c_void, retrievalaccount: FsrmAccountType) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn SetAccount(this: *mut core::ffi::c_void, retrievalaccount: FsrmAccountType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleDefinition_Impl::SetAccount(this, core::mem::transmute_copy(&retrievalaccount)).into() } - unsafe extern "system" fn SupportedExtensions(this: *mut core::ffi::c_void, supportedextensions: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn SupportedExtensions(this: *mut core::ffi::c_void, supportedextensions: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleDefinition_Impl::SupportedExtensions(this) { Ok(ok__) => { @@ -3886,17 +3013,11 @@ impl IFsrmPipelineModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSupportedExtensions(this: *mut core::ffi::c_void, supportedextensions: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn SetSupportedExtensions(this: *mut core::ffi::c_void, supportedextensions: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleDefinition_Impl::SetSupportedExtensions(this, core::mem::transmute_copy(&supportedextensions)).into() } - unsafe extern "system" fn Parameters(this: *mut core::ffi::c_void, parameters: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn Parameters(this: *mut core::ffi::c_void, parameters: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleDefinition_Impl::Parameters(this) { Ok(ok__) => { @@ -3906,10 +3027,7 @@ impl IFsrmPipelineModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleDefinition_Impl, - { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleDefinition_Impl::SetParameters(this, core::mem::transmute_copy(¶meters)).into() } @@ -3949,14 +3067,8 @@ pub trait IFsrmPipelineModuleImplementation_Impl: Sized + super::super::System:: impl windows_core::RuntimeName for IFsrmPipelineModuleImplementation {} #[cfg(feature = "Win32_System_Com")] impl IFsrmPipelineModuleImplementation_Vtbl { - pub const fn new() -> IFsrmPipelineModuleImplementation_Vtbl - where - Identity: IFsrmPipelineModuleImplementation_Impl, - { - unsafe extern "system" fn OnLoad(this: *mut core::ffi::c_void, moduledefinition: *mut core::ffi::c_void, moduleconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleImplementation_Impl, - { + pub const fn new() -> IFsrmPipelineModuleImplementation_Vtbl { + unsafe extern "system" fn OnLoad(this: *mut core::ffi::c_void, moduledefinition: *mut core::ffi::c_void, moduleconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPipelineModuleImplementation_Impl::OnLoad(this, windows_core::from_raw_borrowed(&moduledefinition)) { Ok(ok__) => { @@ -3966,10 +3078,7 @@ impl IFsrmPipelineModuleImplementation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnUnload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmPipelineModuleImplementation_Impl, - { + unsafe extern "system" fn OnUnload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPipelineModuleImplementation_Impl::OnUnload(this).into() } @@ -3994,14 +3103,8 @@ pub trait IFsrmProperty_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IFsrmProperty {} #[cfg(feature = "Win32_System_Com")] impl IFsrmProperty_Vtbl { - pub const fn new() -> IFsrmProperty_Vtbl - where - Identity: IFsrmProperty_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmProperty_Impl, - { + pub const fn new() -> IFsrmProperty_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmProperty_Impl::Name(this) { Ok(ok__) => { @@ -4011,10 +3114,7 @@ impl IFsrmProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmProperty_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmProperty_Impl::Value(this) { Ok(ok__) => { @@ -4024,10 +3124,7 @@ impl IFsrmProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Sources(this: *mut core::ffi::c_void, sources: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmProperty_Impl, - { + unsafe extern "system" fn Sources(this: *mut core::ffi::c_void, sources: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmProperty_Impl::Sources(this) { Ok(ok__) => { @@ -4037,10 +3134,7 @@ impl IFsrmProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PropertyFlags(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmProperty_Impl, - { + unsafe extern "system" fn PropertyFlags(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmProperty_Impl::PropertyFlags(this) { Ok(ok__) => { @@ -4090,14 +3184,8 @@ pub trait IFsrmPropertyBag_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IFsrmPropertyBag {} #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyBag_Vtbl { - pub const fn new() -> IFsrmPropertyBag_Vtbl - where - Identity: IFsrmPropertyBag_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + pub const fn new() -> IFsrmPropertyBag_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::Name(this) { Ok(ok__) => { @@ -4107,10 +3195,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RelativePath(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn RelativePath(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::RelativePath(this) { Ok(ok__) => { @@ -4120,10 +3205,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumeName(this: *mut core::ffi::c_void, volumename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn VolumeName(this: *mut core::ffi::c_void, volumename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::VolumeName(this) { Ok(ok__) => { @@ -4133,10 +3215,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RelativeNamespaceRoot(this: *mut core::ffi::c_void, relativenamespaceroot: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn RelativeNamespaceRoot(this: *mut core::ffi::c_void, relativenamespaceroot: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::RelativeNamespaceRoot(this) { Ok(ok__) => { @@ -4146,10 +3225,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumeIndex(this: *mut core::ffi::c_void, volumeid: *mut u32) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn VolumeIndex(this: *mut core::ffi::c_void, volumeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::VolumeIndex(this) { Ok(ok__) => { @@ -4159,10 +3235,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FileId(this: *mut core::ffi::c_void, fileid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn FileId(this: *mut core::ffi::c_void, fileid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::FileId(this) { Ok(ok__) => { @@ -4172,10 +3245,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParentDirectoryId(this: *mut core::ffi::c_void, parentdirectoryid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn ParentDirectoryId(this: *mut core::ffi::c_void, parentdirectoryid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::ParentDirectoryId(this) { Ok(ok__) => { @@ -4185,10 +3255,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, size: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, size: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::Size(this) { Ok(ok__) => { @@ -4198,10 +3265,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SizeAllocated(this: *mut core::ffi::c_void, sizeallocated: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn SizeAllocated(this: *mut core::ffi::c_void, sizeallocated: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::SizeAllocated(this) { Ok(ok__) => { @@ -4211,10 +3275,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreationTime(this: *mut core::ffi::c_void, creationtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn CreationTime(this: *mut core::ffi::c_void, creationtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::CreationTime(this) { Ok(ok__) => { @@ -4224,10 +3285,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastAccessTime(this: *mut core::ffi::c_void, lastaccesstime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn LastAccessTime(this: *mut core::ffi::c_void, lastaccesstime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::LastAccessTime(this) { Ok(ok__) => { @@ -4237,10 +3295,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastModificationTime(this: *mut core::ffi::c_void, lastmodificationtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn LastModificationTime(this: *mut core::ffi::c_void, lastmodificationtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::LastModificationTime(this) { Ok(ok__) => { @@ -4250,10 +3305,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, attributes: *mut u32) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, attributes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::Attributes(this) { Ok(ok__) => { @@ -4263,10 +3315,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OwnerSid(this: *mut core::ffi::c_void, ownersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn OwnerSid(this: *mut core::ffi::c_void, ownersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::OwnerSid(this) { Ok(ok__) => { @@ -4276,10 +3325,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FilePropertyNames(this: *mut core::ffi::c_void, filepropertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn FilePropertyNames(this: *mut core::ffi::c_void, filepropertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::FilePropertyNames(this) { Ok(ok__) => { @@ -4289,10 +3335,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Messages(this: *mut core::ffi::c_void, messages: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn Messages(this: *mut core::ffi::c_void, messages: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::Messages(this) { Ok(ok__) => { @@ -4302,10 +3345,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PropertyBagFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn PropertyBagFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::PropertyBagFlags(this) { Ok(ok__) => { @@ -4315,10 +3355,7 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, fileproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn GetFileProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, fileproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::GetFileProperty(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -4328,24 +3365,15 @@ impl IFsrmPropertyBag_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn SetFileProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyBag_Impl::SetFileProperty(this, core::mem::transmute(&name), core::mem::transmute(&value)).into() } - unsafe extern "system" fn AddMessage(this: *mut core::ffi::c_void, message: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn AddMessage(this: *mut core::ffi::c_void, message: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyBag_Impl::AddMessage(this, core::mem::transmute(&message)).into() } - unsafe extern "system" fn GetFileStreamInterface(this: *mut core::ffi::c_void, accessmode: FsrmFileStreamingMode, interfacetype: FsrmFileStreamingInterfaceType, pstreaminterface: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag_Impl, - { + unsafe extern "system" fn GetFileStreamInterface(this: *mut core::ffi::c_void, accessmode: FsrmFileStreamingMode, interfacetype: FsrmFileStreamingInterfaceType, pstreaminterface: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag_Impl::GetFileStreamInterface(this, core::mem::transmute_copy(&accessmode), core::mem::transmute_copy(&interfacetype)) { Ok(ok__) => { @@ -4393,14 +3421,8 @@ pub trait IFsrmPropertyBag2_Impl: Sized + IFsrmPropertyBag_Impl { impl windows_core::RuntimeName for IFsrmPropertyBag2 {} #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyBag2_Vtbl { - pub const fn new() -> IFsrmPropertyBag2_Vtbl - where - Identity: IFsrmPropertyBag2_Impl, - { - unsafe extern "system" fn GetFieldValue(this: *mut core::ffi::c_void, field: FsrmPropertyBagField, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag2_Impl, - { + pub const fn new() -> IFsrmPropertyBag2_Vtbl { + unsafe extern "system" fn GetFieldValue(this: *mut core::ffi::c_void, field: FsrmPropertyBagField, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag2_Impl::GetFieldValue(this, core::mem::transmute_copy(&field)) { Ok(ok__) => { @@ -4410,10 +3432,7 @@ impl IFsrmPropertyBag2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUntrustedInFileProperties(this: *mut core::ffi::c_void, props: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmPropertyBag2_Impl, - { + unsafe extern "system" fn GetUntrustedInFileProperties(this: *mut core::ffi::c_void, props: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyBag2_Impl::GetUntrustedInFileProperties(this) { Ok(ok__) => { @@ -4447,14 +3466,8 @@ pub trait IFsrmPropertyCondition_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IFsrmPropertyCondition {} #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyCondition_Vtbl { - pub const fn new() -> IFsrmPropertyCondition_Vtbl - where - Identity: IFsrmPropertyCondition_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyCondition_Impl, - { + pub const fn new() -> IFsrmPropertyCondition_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyCondition_Impl::Name(this) { Ok(ok__) => { @@ -4464,17 +3477,11 @@ impl IFsrmPropertyCondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyCondition_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyCondition_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut FsrmPropertyConditionType) -> windows_core::HRESULT - where - Identity: IFsrmPropertyCondition_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut FsrmPropertyConditionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyCondition_Impl::Type(this) { Ok(ok__) => { @@ -4484,17 +3491,11 @@ impl IFsrmPropertyCondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, r#type: FsrmPropertyConditionType) -> windows_core::HRESULT - where - Identity: IFsrmPropertyCondition_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, r#type: FsrmPropertyConditionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyCondition_Impl::SetType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyCondition_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyCondition_Impl::Value(this) { Ok(ok__) => { @@ -4504,17 +3505,11 @@ impl IFsrmPropertyCondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyCondition_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyCondition_Impl::SetValue(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmPropertyCondition_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyCondition_Impl::Delete(this).into() } @@ -4550,14 +3545,8 @@ pub trait IFsrmPropertyDefinition_Impl: Sized + IFsrmObject_Impl { impl windows_core::RuntimeName for IFsrmPropertyDefinition {} #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyDefinition_Vtbl { - pub const fn new() -> IFsrmPropertyDefinition_Vtbl - where - Identity: IFsrmPropertyDefinition_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition_Impl, - { + pub const fn new() -> IFsrmPropertyDefinition_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinition_Impl::Name(this) { Ok(ok__) => { @@ -4567,17 +3556,11 @@ impl IFsrmPropertyDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyDefinition_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut FsrmPropertyDefinitionType) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut FsrmPropertyDefinitionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinition_Impl::Type(this) { Ok(ok__) => { @@ -4587,17 +3570,11 @@ impl IFsrmPropertyDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, r#type: FsrmPropertyDefinitionType) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, r#type: FsrmPropertyDefinitionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyDefinition_Impl::SetType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn PossibleValues(this: *mut core::ffi::c_void, possiblevalues: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition_Impl, - { + unsafe extern "system" fn PossibleValues(this: *mut core::ffi::c_void, possiblevalues: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinition_Impl::PossibleValues(this) { Ok(ok__) => { @@ -4607,17 +3584,11 @@ impl IFsrmPropertyDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPossibleValues(this: *mut core::ffi::c_void, possiblevalues: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition_Impl, - { + unsafe extern "system" fn SetPossibleValues(this: *mut core::ffi::c_void, possiblevalues: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyDefinition_Impl::SetPossibleValues(this, core::mem::transmute_copy(&possiblevalues)).into() } - unsafe extern "system" fn ValueDescriptions(this: *mut core::ffi::c_void, valuedescriptions: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition_Impl, - { + unsafe extern "system" fn ValueDescriptions(this: *mut core::ffi::c_void, valuedescriptions: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinition_Impl::ValueDescriptions(this) { Ok(ok__) => { @@ -4627,17 +3598,11 @@ impl IFsrmPropertyDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValueDescriptions(this: *mut core::ffi::c_void, valuedescriptions: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition_Impl, - { + unsafe extern "system" fn SetValueDescriptions(this: *mut core::ffi::c_void, valuedescriptions: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyDefinition_Impl::SetValueDescriptions(this, core::mem::transmute_copy(&valuedescriptions)).into() } - unsafe extern "system" fn Parameters(this: *mut core::ffi::c_void, parameters: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition_Impl, - { + unsafe extern "system" fn Parameters(this: *mut core::ffi::c_void, parameters: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinition_Impl::Parameters(this) { Ok(ok__) => { @@ -4647,10 +3612,7 @@ impl IFsrmPropertyDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition_Impl, - { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyDefinition_Impl::SetParameters(this, core::mem::transmute_copy(¶meters)).into() } @@ -4684,14 +3646,8 @@ pub trait IFsrmPropertyDefinition2_Impl: Sized + IFsrmPropertyDefinition_Impl { impl windows_core::RuntimeName for IFsrmPropertyDefinition2 {} #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyDefinition2_Vtbl { - pub const fn new() -> IFsrmPropertyDefinition2_Vtbl - where - Identity: IFsrmPropertyDefinition2_Impl, - { - unsafe extern "system" fn PropertyDefinitionFlags(this: *mut core::ffi::c_void, propertydefinitionflags: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition2_Impl, - { + pub const fn new() -> IFsrmPropertyDefinition2_Vtbl { + unsafe extern "system" fn PropertyDefinitionFlags(this: *mut core::ffi::c_void, propertydefinitionflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinition2_Impl::PropertyDefinitionFlags(this) { Ok(ok__) => { @@ -4701,10 +3657,7 @@ impl IFsrmPropertyDefinition2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition2_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinition2_Impl::DisplayName(this) { Ok(ok__) => { @@ -4714,17 +3667,11 @@ impl IFsrmPropertyDefinition2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition2_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmPropertyDefinition2_Impl::SetDisplayName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn AppliesTo(this: *mut core::ffi::c_void, appliesto: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition2_Impl, - { + unsafe extern "system" fn AppliesTo(this: *mut core::ffi::c_void, appliesto: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinition2_Impl::AppliesTo(this) { Ok(ok__) => { @@ -4734,10 +3681,7 @@ impl IFsrmPropertyDefinition2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ValueDefinitions(this: *mut core::ffi::c_void, valuedefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinition2_Impl, - { + unsafe extern "system" fn ValueDefinitions(this: *mut core::ffi::c_void, valuedefinitions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinition2_Impl::ValueDefinitions(this) { Ok(ok__) => { @@ -4771,14 +3715,8 @@ pub trait IFsrmPropertyDefinitionValue_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for IFsrmPropertyDefinitionValue {} #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyDefinitionValue_Vtbl { - pub const fn new() -> IFsrmPropertyDefinitionValue_Vtbl - where - Identity: IFsrmPropertyDefinitionValue_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinitionValue_Impl, - { + pub const fn new() -> IFsrmPropertyDefinitionValue_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinitionValue_Impl::Name(this) { Ok(ok__) => { @@ -4788,10 +3726,7 @@ impl IFsrmPropertyDefinitionValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinitionValue_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinitionValue_Impl::DisplayName(this) { Ok(ok__) => { @@ -4801,10 +3736,7 @@ impl IFsrmPropertyDefinitionValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinitionValue_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinitionValue_Impl::Description(this) { Ok(ok__) => { @@ -4814,10 +3746,7 @@ impl IFsrmPropertyDefinitionValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UniqueID(this: *mut core::ffi::c_void, uniqueid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmPropertyDefinitionValue_Impl, - { + unsafe extern "system" fn UniqueID(this: *mut core::ffi::c_void, uniqueid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmPropertyDefinitionValue_Impl::UniqueID(this) { Ok(ok__) => { @@ -4851,14 +3780,8 @@ pub trait IFsrmQuota_Impl: Sized + IFsrmQuotaObject_Impl { impl windows_core::RuntimeName for IFsrmQuota {} #[cfg(feature = "Win32_System_Com")] impl IFsrmQuota_Vtbl { - pub const fn new() -> IFsrmQuota_Vtbl - where - Identity: IFsrmQuota_Impl, - { - unsafe extern "system" fn QuotaUsed(this: *mut core::ffi::c_void, used: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuota_Impl, - { + pub const fn new() -> IFsrmQuota_Vtbl { + unsafe extern "system" fn QuotaUsed(this: *mut core::ffi::c_void, used: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuota_Impl::QuotaUsed(this) { Ok(ok__) => { @@ -4868,10 +3791,7 @@ impl IFsrmQuota_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QuotaPeakUsage(this: *mut core::ffi::c_void, peakusage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuota_Impl, - { + unsafe extern "system" fn QuotaPeakUsage(this: *mut core::ffi::c_void, peakusage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuota_Impl::QuotaPeakUsage(this) { Ok(ok__) => { @@ -4881,10 +3801,7 @@ impl IFsrmQuota_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QuotaPeakUsageTime(this: *mut core::ffi::c_void, peakusagedatetime: *mut f64) -> windows_core::HRESULT - where - Identity: IFsrmQuota_Impl, - { + unsafe extern "system" fn QuotaPeakUsageTime(this: *mut core::ffi::c_void, peakusagedatetime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuota_Impl::QuotaPeakUsageTime(this) { Ok(ok__) => { @@ -4894,17 +3811,11 @@ impl IFsrmQuota_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResetPeakUsage(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuota_Impl, - { + unsafe extern "system" fn ResetPeakUsage(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuota_Impl::ResetPeakUsage(this).into() } - unsafe extern "system" fn RefreshUsageProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuota_Impl, - { + unsafe extern "system" fn RefreshUsageProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuota_Impl::RefreshUsageProperties(this).into() } @@ -4938,14 +3849,8 @@ pub trait IFsrmQuotaBase_Impl: Sized + IFsrmObject_Impl { impl windows_core::RuntimeName for IFsrmQuotaBase {} #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaBase_Vtbl { - pub const fn new() -> IFsrmQuotaBase_Vtbl - where - Identity: IFsrmQuotaBase_Impl, - { - unsafe extern "system" fn QuotaLimit(this: *mut core::ffi::c_void, quotalimit: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaBase_Impl, - { + pub const fn new() -> IFsrmQuotaBase_Vtbl { + unsafe extern "system" fn QuotaLimit(this: *mut core::ffi::c_void, quotalimit: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaBase_Impl::QuotaLimit(this) { Ok(ok__) => { @@ -4955,17 +3860,11 @@ impl IFsrmQuotaBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuotaLimit(this: *mut core::ffi::c_void, quotalimit: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaBase_Impl, - { + unsafe extern "system" fn SetQuotaLimit(this: *mut core::ffi::c_void, quotalimit: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuotaBase_Impl::SetQuotaLimit(this, core::mem::transmute("alimit)).into() } - unsafe extern "system" fn QuotaFlags(this: *mut core::ffi::c_void, quotaflags: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmQuotaBase_Impl, - { + unsafe extern "system" fn QuotaFlags(this: *mut core::ffi::c_void, quotaflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaBase_Impl::QuotaFlags(this) { Ok(ok__) => { @@ -4975,17 +3874,11 @@ impl IFsrmQuotaBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuotaFlags(this: *mut core::ffi::c_void, quotaflags: i32) -> windows_core::HRESULT - where - Identity: IFsrmQuotaBase_Impl, - { + unsafe extern "system" fn SetQuotaFlags(this: *mut core::ffi::c_void, quotaflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuotaBase_Impl::SetQuotaFlags(this, core::mem::transmute_copy("aflags)).into() } - unsafe extern "system" fn Thresholds(this: *mut core::ffi::c_void, thresholds: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmQuotaBase_Impl, - { + unsafe extern "system" fn Thresholds(this: *mut core::ffi::c_void, thresholds: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaBase_Impl::Thresholds(this) { Ok(ok__) => { @@ -4995,31 +3888,19 @@ impl IFsrmQuotaBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddThreshold(this: *mut core::ffi::c_void, threshold: i32) -> windows_core::HRESULT - where - Identity: IFsrmQuotaBase_Impl, - { + unsafe extern "system" fn AddThreshold(this: *mut core::ffi::c_void, threshold: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuotaBase_Impl::AddThreshold(this, core::mem::transmute_copy(&threshold)).into() } - unsafe extern "system" fn DeleteThreshold(this: *mut core::ffi::c_void, threshold: i32) -> windows_core::HRESULT - where - Identity: IFsrmQuotaBase_Impl, - { + unsafe extern "system" fn DeleteThreshold(this: *mut core::ffi::c_void, threshold: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuotaBase_Impl::DeleteThreshold(this, core::mem::transmute_copy(&threshold)).into() } - unsafe extern "system" fn ModifyThreshold(this: *mut core::ffi::c_void, threshold: i32, newthreshold: i32) -> windows_core::HRESULT - where - Identity: IFsrmQuotaBase_Impl, - { + unsafe extern "system" fn ModifyThreshold(this: *mut core::ffi::c_void, threshold: i32, newthreshold: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuotaBase_Impl::ModifyThreshold(this, core::mem::transmute_copy(&threshold), core::mem::transmute_copy(&newthreshold)).into() } - unsafe extern "system" fn CreateThresholdAction(this: *mut core::ffi::c_void, threshold: i32, actiontype: FsrmActionType, action: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaBase_Impl, - { + unsafe extern "system" fn CreateThresholdAction(this: *mut core::ffi::c_void, threshold: i32, actiontype: FsrmActionType, action: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaBase_Impl::CreateThresholdAction(this, core::mem::transmute_copy(&threshold), core::mem::transmute_copy(&actiontype)) { Ok(ok__) => { @@ -5029,10 +3910,7 @@ impl IFsrmQuotaBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumThresholdActions(this: *mut core::ffi::c_void, threshold: i32, actions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaBase_Impl, - { + unsafe extern "system" fn EnumThresholdActions(this: *mut core::ffi::c_void, threshold: i32, actions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaBase_Impl::EnumThresholdActions(this, core::mem::transmute_copy(&threshold)) { Ok(ok__) => { @@ -5079,14 +3957,8 @@ pub trait IFsrmQuotaManager_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IFsrmQuotaManager {} #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaManager_Vtbl { - pub const fn new() -> IFsrmQuotaManager_Vtbl - where - Identity: IFsrmQuotaManager_Impl, - { - unsafe extern "system" fn ActionVariables(this: *mut core::ffi::c_void, variables: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + pub const fn new() -> IFsrmQuotaManager_Vtbl { + unsafe extern "system" fn ActionVariables(this: *mut core::ffi::c_void, variables: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::ActionVariables(this) { Ok(ok__) => { @@ -5096,10 +3968,7 @@ impl IFsrmQuotaManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActionVariableDescriptions(this: *mut core::ffi::c_void, descriptions: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn ActionVariableDescriptions(this: *mut core::ffi::c_void, descriptions: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::ActionVariableDescriptions(this) { Ok(ok__) => { @@ -5109,10 +3978,7 @@ impl IFsrmQuotaManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateQuota(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, quota: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn CreateQuota(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, quota: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::CreateQuota(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -5122,10 +3988,7 @@ impl IFsrmQuotaManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAutoApplyQuota(this: *mut core::ffi::c_void, quotatemplatename: core::mem::MaybeUninit, path: core::mem::MaybeUninit, quota: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn CreateAutoApplyQuota(this: *mut core::ffi::c_void, quotatemplatename: core::mem::MaybeUninit, path: core::mem::MaybeUninit, quota: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::CreateAutoApplyQuota(this, core::mem::transmute("atemplatename), core::mem::transmute(&path)) { Ok(ok__) => { @@ -5135,10 +3998,7 @@ impl IFsrmQuotaManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQuota(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, quota: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn GetQuota(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, quota: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::GetQuota(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -5148,10 +4008,7 @@ impl IFsrmQuotaManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAutoApplyQuota(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, quota: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn GetAutoApplyQuota(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, quota: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::GetAutoApplyQuota(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -5161,10 +4018,7 @@ impl IFsrmQuotaManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRestrictiveQuota(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, quota: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn GetRestrictiveQuota(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, quota: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::GetRestrictiveQuota(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -5174,10 +4028,7 @@ impl IFsrmQuotaManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumQuotas(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, quotas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn EnumQuotas(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, quotas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::EnumQuotas(this, core::mem::transmute(&path), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -5187,10 +4038,7 @@ impl IFsrmQuotaManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumAutoApplyQuotas(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, quotas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn EnumAutoApplyQuotas(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, quotas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::EnumAutoApplyQuotas(this, core::mem::transmute(&path), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -5200,10 +4048,7 @@ impl IFsrmQuotaManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumEffectiveQuotas(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, quotas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn EnumEffectiveQuotas(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, quotas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::EnumEffectiveQuotas(this, core::mem::transmute(&path), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -5213,17 +4058,11 @@ impl IFsrmQuotaManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Scan(this: *mut core::ffi::c_void, strpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn Scan(this: *mut core::ffi::c_void, strpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuotaManager_Impl::Scan(this, core::mem::transmute(&strpath)).into() } - unsafe extern "system" fn CreateQuotaCollection(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManager_Impl, - { + unsafe extern "system" fn CreateQuotaCollection(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManager_Impl::CreateQuotaCollection(this) { Ok(ok__) => { @@ -5261,14 +4100,8 @@ pub trait IFsrmQuotaManagerEx_Impl: Sized + IFsrmQuotaManager_Impl { impl windows_core::RuntimeName for IFsrmQuotaManagerEx {} #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaManagerEx_Vtbl { - pub const fn new() -> IFsrmQuotaManagerEx_Vtbl - where - Identity: IFsrmQuotaManagerEx_Impl, - { - unsafe extern "system" fn IsAffectedByQuota(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, affected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmQuotaManagerEx_Impl, - { + pub const fn new() -> IFsrmQuotaManagerEx_Vtbl { + unsafe extern "system" fn IsAffectedByQuota(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, options: FsrmEnumOptions, affected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaManagerEx_Impl::IsAffectedByQuota(this, core::mem::transmute(&path), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -5297,14 +4130,8 @@ pub trait IFsrmQuotaObject_Impl: Sized + IFsrmQuotaBase_Impl { impl windows_core::RuntimeName for IFsrmQuotaObject {} #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaObject_Vtbl { - pub const fn new() -> IFsrmQuotaObject_Vtbl - where - Identity: IFsrmQuotaObject_Impl, - { - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaObject_Impl, - { + pub const fn new() -> IFsrmQuotaObject_Vtbl { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaObject_Impl::Path(this) { Ok(ok__) => { @@ -5314,10 +4141,7 @@ impl IFsrmQuotaObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserSid(this: *mut core::ffi::c_void, usersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaObject_Impl, - { + unsafe extern "system" fn UserSid(this: *mut core::ffi::c_void, usersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaObject_Impl::UserSid(this) { Ok(ok__) => { @@ -5327,10 +4151,7 @@ impl IFsrmQuotaObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserAccount(this: *mut core::ffi::c_void, useraccount: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaObject_Impl, - { + unsafe extern "system" fn UserAccount(this: *mut core::ffi::c_void, useraccount: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaObject_Impl::UserAccount(this) { Ok(ok__) => { @@ -5340,10 +4161,7 @@ impl IFsrmQuotaObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SourceTemplateName(this: *mut core::ffi::c_void, quotatemplatename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaObject_Impl, - { + unsafe extern "system" fn SourceTemplateName(this: *mut core::ffi::c_void, quotatemplatename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaObject_Impl::SourceTemplateName(this) { Ok(ok__) => { @@ -5353,10 +4171,7 @@ impl IFsrmQuotaObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MatchesSourceTemplate(this: *mut core::ffi::c_void, matches: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmQuotaObject_Impl, - { + unsafe extern "system" fn MatchesSourceTemplate(this: *mut core::ffi::c_void, matches: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaObject_Impl::MatchesSourceTemplate(this) { Ok(ok__) => { @@ -5366,10 +4181,7 @@ impl IFsrmQuotaObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplyTemplate(this: *mut core::ffi::c_void, quotatemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaObject_Impl, - { + unsafe extern "system" fn ApplyTemplate(this: *mut core::ffi::c_void, quotatemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuotaObject_Impl::ApplyTemplate(this, core::mem::transmute("atemplatename)).into() } @@ -5398,14 +4210,8 @@ pub trait IFsrmQuotaTemplate_Impl: Sized + IFsrmQuotaBase_Impl { impl windows_core::RuntimeName for IFsrmQuotaTemplate {} #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaTemplate_Vtbl { - pub const fn new() -> IFsrmQuotaTemplate_Vtbl - where - Identity: IFsrmQuotaTemplate_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplate_Impl, - { + pub const fn new() -> IFsrmQuotaTemplate_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaTemplate_Impl::Name(this) { Ok(ok__) => { @@ -5415,24 +4221,15 @@ impl IFsrmQuotaTemplate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplate_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuotaTemplate_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn CopyTemplate(this: *mut core::ffi::c_void, quotatemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplate_Impl, - { + unsafe extern "system" fn CopyTemplate(this: *mut core::ffi::c_void, quotatemplatename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuotaTemplate_Impl::CopyTemplate(this, core::mem::transmute("atemplatename)).into() } - unsafe extern "system" fn CommitAndUpdateDerived(this: *mut core::ffi::c_void, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions, derivedobjectsresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplate_Impl, - { + unsafe extern "system" fn CommitAndUpdateDerived(this: *mut core::ffi::c_void, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions, derivedobjectsresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaTemplate_Impl::CommitAndUpdateDerived(this, core::mem::transmute_copy(&commitoptions), core::mem::transmute_copy(&applyoptions)) { Ok(ok__) => { @@ -5463,14 +4260,8 @@ pub trait IFsrmQuotaTemplateImported_Impl: Sized + IFsrmQuotaTemplate_Impl { impl windows_core::RuntimeName for IFsrmQuotaTemplateImported {} #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaTemplateImported_Vtbl { - pub const fn new() -> IFsrmQuotaTemplateImported_Vtbl - where - Identity: IFsrmQuotaTemplateImported_Impl, - { - unsafe extern "system" fn OverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplateImported_Impl, - { + pub const fn new() -> IFsrmQuotaTemplateImported_Vtbl { + unsafe extern "system" fn OverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaTemplateImported_Impl::OverwriteOnCommit(this) { Ok(ok__) => { @@ -5480,10 +4271,7 @@ impl IFsrmQuotaTemplateImported_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplateImported_Impl, - { + unsafe extern "system" fn SetOverwriteOnCommit(this: *mut core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmQuotaTemplateImported_Impl::SetOverwriteOnCommit(this, core::mem::transmute_copy(&overwrite)).into() } @@ -5509,14 +4297,8 @@ pub trait IFsrmQuotaTemplateManager_Impl: Sized + super::super::System::Com::IDi impl windows_core::RuntimeName for IFsrmQuotaTemplateManager {} #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaTemplateManager_Vtbl { - pub const fn new() -> IFsrmQuotaTemplateManager_Vtbl - where - Identity: IFsrmQuotaTemplateManager_Impl, - { - unsafe extern "system" fn CreateTemplate(this: *mut core::ffi::c_void, quotatemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplateManager_Impl, - { + pub const fn new() -> IFsrmQuotaTemplateManager_Vtbl { + unsafe extern "system" fn CreateTemplate(this: *mut core::ffi::c_void, quotatemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaTemplateManager_Impl::CreateTemplate(this) { Ok(ok__) => { @@ -5526,10 +4308,7 @@ impl IFsrmQuotaTemplateManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTemplate(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, quotatemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplateManager_Impl, - { + unsafe extern "system" fn GetTemplate(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, quotatemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaTemplateManager_Impl::GetTemplate(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -5539,10 +4318,7 @@ impl IFsrmQuotaTemplateManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumTemplates(this: *mut core::ffi::c_void, options: FsrmEnumOptions, quotatemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplateManager_Impl, - { + unsafe extern "system" fn EnumTemplates(this: *mut core::ffi::c_void, options: FsrmEnumOptions, quotatemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaTemplateManager_Impl::EnumTemplates(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -5552,10 +4328,7 @@ impl IFsrmQuotaTemplateManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExportTemplates(this: *mut core::ffi::c_void, quotatemplatenamesarray: *const core::mem::MaybeUninit, serializedquotatemplates: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplateManager_Impl, - { + unsafe extern "system" fn ExportTemplates(this: *mut core::ffi::c_void, quotatemplatenamesarray: *const core::mem::MaybeUninit, serializedquotatemplates: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaTemplateManager_Impl::ExportTemplates(this, core::mem::transmute_copy("atemplatenamesarray)) { Ok(ok__) => { @@ -5565,10 +4338,7 @@ impl IFsrmQuotaTemplateManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImportTemplates(this: *mut core::ffi::c_void, serializedquotatemplates: core::mem::MaybeUninit, quotatemplatenamesarray: *const core::mem::MaybeUninit, quotatemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmQuotaTemplateManager_Impl, - { + unsafe extern "system" fn ImportTemplates(this: *mut core::ffi::c_void, serializedquotatemplates: core::mem::MaybeUninit, quotatemplatenamesarray: *const core::mem::MaybeUninit, quotatemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmQuotaTemplateManager_Impl::ImportTemplates(this, core::mem::transmute(&serializedquotatemplates), core::mem::transmute_copy("atemplatenamesarray)) { Ok(ok__) => { @@ -5607,14 +4377,8 @@ pub trait IFsrmReport_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFsrmReport {} #[cfg(feature = "Win32_System_Com")] impl IFsrmReport_Vtbl { - pub const fn new() -> IFsrmReport_Vtbl - where - Identity: IFsrmReport_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, reporttype: *mut FsrmReportType) -> windows_core::HRESULT - where - Identity: IFsrmReport_Impl, - { + pub const fn new() -> IFsrmReport_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, reporttype: *mut FsrmReportType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReport_Impl::Type(this) { Ok(ok__) => { @@ -5624,10 +4388,7 @@ impl IFsrmReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReport_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReport_Impl::Name(this) { Ok(ok__) => { @@ -5637,17 +4398,11 @@ impl IFsrmReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReport_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReport_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReport_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReport_Impl::Description(this) { Ok(ok__) => { @@ -5657,17 +4412,11 @@ impl IFsrmReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReport_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReport_Impl::SetDescription(this, core::mem::transmute(&description)).into() } - unsafe extern "system" fn LastGeneratedFileNamePrefix(this: *mut core::ffi::c_void, prefix: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReport_Impl, - { + unsafe extern "system" fn LastGeneratedFileNamePrefix(this: *mut core::ffi::c_void, prefix: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReport_Impl::LastGeneratedFileNamePrefix(this) { Ok(ok__) => { @@ -5677,10 +4426,7 @@ impl IFsrmReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilter(this: *mut core::ffi::c_void, filter: FsrmReportFilter, filtervalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReport_Impl, - { + unsafe extern "system" fn GetFilter(this: *mut core::ffi::c_void, filter: FsrmReportFilter, filtervalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReport_Impl::GetFilter(this, core::mem::transmute_copy(&filter)) { Ok(ok__) => { @@ -5690,17 +4436,11 @@ impl IFsrmReport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, filter: FsrmReportFilter, filtervalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReport_Impl, - { + unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, filter: FsrmReportFilter, filtervalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReport_Impl::SetFilter(this, core::mem::transmute_copy(&filter), core::mem::transmute(&filtervalue)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmReport_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReport_Impl::Delete(this).into() } @@ -5745,14 +4485,8 @@ pub trait IFsrmReportJob_Impl: Sized + IFsrmObject_Impl { impl windows_core::RuntimeName for IFsrmReportJob {} #[cfg(feature = "Win32_System_Com")] impl IFsrmReportJob_Vtbl { - pub const fn new() -> IFsrmReportJob_Vtbl - where - Identity: IFsrmReportJob_Impl, - { - unsafe extern "system" fn Task(this: *mut core::ffi::c_void, taskname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + pub const fn new() -> IFsrmReportJob_Vtbl { + unsafe extern "system" fn Task(this: *mut core::ffi::c_void, taskname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::Task(this) { Ok(ok__) => { @@ -5762,17 +4496,11 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTask(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn SetTask(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportJob_Impl::SetTask(this, core::mem::transmute(&taskname)).into() } - unsafe extern "system" fn NamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn NamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::NamespaceRoots(this) { Ok(ok__) => { @@ -5782,17 +4510,11 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn SetNamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportJob_Impl::SetNamespaceRoots(this, core::mem::transmute_copy(&namespaceroots)).into() } - unsafe extern "system" fn Formats(this: *mut core::ffi::c_void, formats: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn Formats(this: *mut core::ffi::c_void, formats: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::Formats(this) { Ok(ok__) => { @@ -5802,17 +4524,11 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormats(this: *mut core::ffi::c_void, formats: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn SetFormats(this: *mut core::ffi::c_void, formats: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportJob_Impl::SetFormats(this, core::mem::transmute_copy(&formats)).into() } - unsafe extern "system" fn MailTo(this: *mut core::ffi::c_void, mailto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn MailTo(this: *mut core::ffi::c_void, mailto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::MailTo(this) { Ok(ok__) => { @@ -5822,17 +4538,11 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMailTo(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn SetMailTo(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportJob_Impl::SetMailTo(this, core::mem::transmute(&mailto)).into() } - unsafe extern "system" fn RunningStatus(this: *mut core::ffi::c_void, runningstatus: *mut FsrmReportRunningStatus) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn RunningStatus(this: *mut core::ffi::c_void, runningstatus: *mut FsrmReportRunningStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::RunningStatus(this) { Ok(ok__) => { @@ -5842,10 +4552,7 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastRun(this: *mut core::ffi::c_void, lastrun: *mut f64) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn LastRun(this: *mut core::ffi::c_void, lastrun: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::LastRun(this) { Ok(ok__) => { @@ -5855,10 +4562,7 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastError(this: *mut core::ffi::c_void, lasterror: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn LastError(this: *mut core::ffi::c_void, lasterror: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::LastError(this) { Ok(ok__) => { @@ -5868,10 +4572,7 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastGeneratedInDirectory(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn LastGeneratedInDirectory(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::LastGeneratedInDirectory(this) { Ok(ok__) => { @@ -5881,10 +4582,7 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumReports(this: *mut core::ffi::c_void, reports: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn EnumReports(this: *mut core::ffi::c_void, reports: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::EnumReports(this) { Ok(ok__) => { @@ -5894,10 +4592,7 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateReport(this: *mut core::ffi::c_void, reporttype: FsrmReportType, report: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn CreateReport(this: *mut core::ffi::c_void, reporttype: FsrmReportType, report: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::CreateReport(this, core::mem::transmute_copy(&reporttype)) { Ok(ok__) => { @@ -5907,17 +4602,11 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void, context: FsrmReportGenerationContext) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void, context: FsrmReportGenerationContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportJob_Impl::Run(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn WaitForCompletion(this: *mut core::ffi::c_void, waitseconds: i32, completed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn WaitForCompletion(this: *mut core::ffi::c_void, waitseconds: i32, completed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportJob_Impl::WaitForCompletion(this, core::mem::transmute_copy(&waitseconds)) { Ok(ok__) => { @@ -5927,10 +4616,7 @@ impl IFsrmReportJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmReportJob_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportJob_Impl::Cancel(this).into() } @@ -5976,14 +4662,8 @@ pub trait IFsrmReportManager_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IFsrmReportManager {} #[cfg(feature = "Win32_System_Com")] impl IFsrmReportManager_Vtbl { - pub const fn new() -> IFsrmReportManager_Vtbl - where - Identity: IFsrmReportManager_Impl, - { - unsafe extern "system" fn EnumReportJobs(this: *mut core::ffi::c_void, options: FsrmEnumOptions, reportjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmReportManager_Impl, - { + pub const fn new() -> IFsrmReportManager_Vtbl { + unsafe extern "system" fn EnumReportJobs(this: *mut core::ffi::c_void, options: FsrmEnumOptions, reportjobs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportManager_Impl::EnumReportJobs(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -5993,10 +4673,7 @@ impl IFsrmReportManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateReportJob(this: *mut core::ffi::c_void, reportjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmReportManager_Impl, - { + unsafe extern "system" fn CreateReportJob(this: *mut core::ffi::c_void, reportjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportManager_Impl::CreateReportJob(this) { Ok(ok__) => { @@ -6006,10 +4683,7 @@ impl IFsrmReportManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReportJob(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit, reportjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmReportManager_Impl, - { + unsafe extern "system" fn GetReportJob(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit, reportjob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportManager_Impl::GetReportJob(this, core::mem::transmute(&taskname)) { Ok(ok__) => { @@ -6019,10 +4693,7 @@ impl IFsrmReportManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputDirectory(this: *mut core::ffi::c_void, context: FsrmReportGenerationContext, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportManager_Impl, - { + unsafe extern "system" fn GetOutputDirectory(this: *mut core::ffi::c_void, context: FsrmReportGenerationContext, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportManager_Impl::GetOutputDirectory(this, core::mem::transmute_copy(&context)) { Ok(ok__) => { @@ -6032,17 +4703,11 @@ impl IFsrmReportManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputDirectory(this: *mut core::ffi::c_void, context: FsrmReportGenerationContext, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportManager_Impl, - { + unsafe extern "system" fn SetOutputDirectory(this: *mut core::ffi::c_void, context: FsrmReportGenerationContext, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportManager_Impl::SetOutputDirectory(this, core::mem::transmute_copy(&context), core::mem::transmute(&path)).into() } - unsafe extern "system" fn IsFilterValidForReportType(this: *mut core::ffi::c_void, reporttype: FsrmReportType, filter: FsrmReportFilter, valid: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmReportManager_Impl, - { + unsafe extern "system" fn IsFilterValidForReportType(this: *mut core::ffi::c_void, reporttype: FsrmReportType, filter: FsrmReportFilter, valid: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportManager_Impl::IsFilterValidForReportType(this, core::mem::transmute_copy(&reporttype), core::mem::transmute_copy(&filter)) { Ok(ok__) => { @@ -6052,10 +4717,7 @@ impl IFsrmReportManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultFilter(this: *mut core::ffi::c_void, reporttype: FsrmReportType, filter: FsrmReportFilter, filtervalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportManager_Impl, - { + unsafe extern "system" fn GetDefaultFilter(this: *mut core::ffi::c_void, reporttype: FsrmReportType, filter: FsrmReportFilter, filtervalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportManager_Impl::GetDefaultFilter(this, core::mem::transmute_copy(&reporttype), core::mem::transmute_copy(&filter)) { Ok(ok__) => { @@ -6065,17 +4727,11 @@ impl IFsrmReportManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultFilter(this: *mut core::ffi::c_void, reporttype: FsrmReportType, filter: FsrmReportFilter, filtervalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportManager_Impl, - { + unsafe extern "system" fn SetDefaultFilter(this: *mut core::ffi::c_void, reporttype: FsrmReportType, filter: FsrmReportFilter, filtervalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportManager_Impl::SetDefaultFilter(this, core::mem::transmute_copy(&reporttype), core::mem::transmute_copy(&filter), core::mem::transmute(&filtervalue)).into() } - unsafe extern "system" fn GetReportSizeLimit(this: *mut core::ffi::c_void, limit: FsrmReportLimit, limitvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportManager_Impl, - { + unsafe extern "system" fn GetReportSizeLimit(this: *mut core::ffi::c_void, limit: FsrmReportLimit, limitvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmReportManager_Impl::GetReportSizeLimit(this, core::mem::transmute_copy(&limit)) { Ok(ok__) => { @@ -6085,10 +4741,7 @@ impl IFsrmReportManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReportSizeLimit(this: *mut core::ffi::c_void, limit: FsrmReportLimit, limitvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportManager_Impl, - { + unsafe extern "system" fn SetReportSizeLimit(this: *mut core::ffi::c_void, limit: FsrmReportLimit, limitvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportManager_Impl::SetReportSizeLimit(this, core::mem::transmute_copy(&limit), core::mem::transmute(&limitvalue)).into() } @@ -6121,35 +4774,20 @@ pub trait IFsrmReportScheduler_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for IFsrmReportScheduler {} #[cfg(feature = "Win32_System_Com")] impl IFsrmReportScheduler_Vtbl { - pub const fn new() -> IFsrmReportScheduler_Vtbl - where - Identity: IFsrmReportScheduler_Impl, - { - unsafe extern "system" fn VerifyNamespaces(this: *mut core::ffi::c_void, namespacessafearray: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportScheduler_Impl, - { + pub const fn new() -> IFsrmReportScheduler_Vtbl { + unsafe extern "system" fn VerifyNamespaces(this: *mut core::ffi::c_void, namespacessafearray: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportScheduler_Impl::VerifyNamespaces(this, core::mem::transmute_copy(&namespacessafearray)).into() } - unsafe extern "system" fn CreateScheduleTask(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit, namespacessafearray: *const core::mem::MaybeUninit, serializedtask: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportScheduler_Impl, - { + unsafe extern "system" fn CreateScheduleTask(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit, namespacessafearray: *const core::mem::MaybeUninit, serializedtask: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportScheduler_Impl::CreateScheduleTask(this, core::mem::transmute(&taskname), core::mem::transmute_copy(&namespacessafearray), core::mem::transmute(&serializedtask)).into() } - unsafe extern "system" fn ModifyScheduleTask(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit, namespacessafearray: *const core::mem::MaybeUninit, serializedtask: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportScheduler_Impl, - { + unsafe extern "system" fn ModifyScheduleTask(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit, namespacessafearray: *const core::mem::MaybeUninit, serializedtask: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportScheduler_Impl::ModifyScheduleTask(this, core::mem::transmute(&taskname), core::mem::transmute_copy(&namespacessafearray), core::mem::transmute(&serializedtask)).into() } - unsafe extern "system" fn DeleteScheduleTask(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmReportScheduler_Impl, - { + unsafe extern "system" fn DeleteScheduleTask(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmReportScheduler_Impl::DeleteScheduleTask(this, core::mem::transmute(&taskname)).into() } @@ -6184,14 +4822,8 @@ pub trait IFsrmRule_Impl: Sized + IFsrmObject_Impl { impl windows_core::RuntimeName for IFsrmRule {} #[cfg(feature = "Win32_System_Com")] impl IFsrmRule_Vtbl { - pub const fn new() -> IFsrmRule_Vtbl - where - Identity: IFsrmRule_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + pub const fn new() -> IFsrmRule_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmRule_Impl::Name(this) { Ok(ok__) => { @@ -6201,17 +4833,11 @@ impl IFsrmRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmRule_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn RuleType(this: *mut core::ffi::c_void, ruletype: *mut FsrmRuleType) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn RuleType(this: *mut core::ffi::c_void, ruletype: *mut FsrmRuleType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmRule_Impl::RuleType(this) { Ok(ok__) => { @@ -6221,10 +4847,7 @@ impl IFsrmRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModuleDefinitionName(this: *mut core::ffi::c_void, moduledefinitionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn ModuleDefinitionName(this: *mut core::ffi::c_void, moduledefinitionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmRule_Impl::ModuleDefinitionName(this) { Ok(ok__) => { @@ -6234,17 +4857,11 @@ impl IFsrmRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetModuleDefinitionName(this: *mut core::ffi::c_void, moduledefinitionname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn SetModuleDefinitionName(this: *mut core::ffi::c_void, moduledefinitionname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmRule_Impl::SetModuleDefinitionName(this, core::mem::transmute(&moduledefinitionname)).into() } - unsafe extern "system" fn NamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn NamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmRule_Impl::NamespaceRoots(this) { Ok(ok__) => { @@ -6254,17 +4871,11 @@ impl IFsrmRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn SetNamespaceRoots(this: *mut core::ffi::c_void, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmRule_Impl::SetNamespaceRoots(this, core::mem::transmute_copy(&namespaceroots)).into() } - unsafe extern "system" fn RuleFlags(this: *mut core::ffi::c_void, ruleflags: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn RuleFlags(this: *mut core::ffi::c_void, ruleflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmRule_Impl::RuleFlags(this) { Ok(ok__) => { @@ -6274,17 +4885,11 @@ impl IFsrmRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRuleFlags(this: *mut core::ffi::c_void, ruleflags: i32) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn SetRuleFlags(this: *mut core::ffi::c_void, ruleflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmRule_Impl::SetRuleFlags(this, core::mem::transmute_copy(&ruleflags)).into() } - unsafe extern "system" fn Parameters(this: *mut core::ffi::c_void, parameters: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn Parameters(this: *mut core::ffi::c_void, parameters: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmRule_Impl::Parameters(this) { Ok(ok__) => { @@ -6294,17 +4899,11 @@ impl IFsrmRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, parameters: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmRule_Impl::SetParameters(this, core::mem::transmute_copy(¶meters)).into() } - unsafe extern "system" fn LastModified(this: *mut core::ffi::c_void, lastmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmRule_Impl, - { + unsafe extern "system" fn LastModified(this: *mut core::ffi::c_void, lastmodified: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmRule_Impl::LastModified(this) { Ok(ok__) => { @@ -6354,14 +4953,8 @@ pub trait IFsrmSetting_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFsrmSetting {} #[cfg(feature = "Win32_System_Com")] impl IFsrmSetting_Vtbl { - pub const fn new() -> IFsrmSetting_Vtbl - where - Identity: IFsrmSetting_Impl, - { - unsafe extern "system" fn SmtpServer(this: *mut core::ffi::c_void, smtpserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + pub const fn new() -> IFsrmSetting_Vtbl { + unsafe extern "system" fn SmtpServer(this: *mut core::ffi::c_void, smtpserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmSetting_Impl::SmtpServer(this) { Ok(ok__) => { @@ -6371,17 +4964,11 @@ impl IFsrmSetting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSmtpServer(this: *mut core::ffi::c_void, smtpserver: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn SetSmtpServer(this: *mut core::ffi::c_void, smtpserver: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmSetting_Impl::SetSmtpServer(this, core::mem::transmute(&smtpserver)).into() } - unsafe extern "system" fn MailFrom(this: *mut core::ffi::c_void, mailfrom: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn MailFrom(this: *mut core::ffi::c_void, mailfrom: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmSetting_Impl::MailFrom(this) { Ok(ok__) => { @@ -6391,17 +4978,11 @@ impl IFsrmSetting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMailFrom(this: *mut core::ffi::c_void, mailfrom: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn SetMailFrom(this: *mut core::ffi::c_void, mailfrom: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmSetting_Impl::SetMailFrom(this, core::mem::transmute(&mailfrom)).into() } - unsafe extern "system" fn AdminEmail(this: *mut core::ffi::c_void, adminemail: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn AdminEmail(this: *mut core::ffi::c_void, adminemail: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmSetting_Impl::AdminEmail(this) { Ok(ok__) => { @@ -6411,17 +4992,11 @@ impl IFsrmSetting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAdminEmail(this: *mut core::ffi::c_void, adminemail: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn SetAdminEmail(this: *mut core::ffi::c_void, adminemail: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmSetting_Impl::SetAdminEmail(this, core::mem::transmute(&adminemail)).into() } - unsafe extern "system" fn DisableCommandLine(this: *mut core::ffi::c_void, disablecommandline: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn DisableCommandLine(this: *mut core::ffi::c_void, disablecommandline: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmSetting_Impl::DisableCommandLine(this) { Ok(ok__) => { @@ -6431,17 +5006,11 @@ impl IFsrmSetting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisableCommandLine(this: *mut core::ffi::c_void, disablecommandline: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn SetDisableCommandLine(this: *mut core::ffi::c_void, disablecommandline: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmSetting_Impl::SetDisableCommandLine(this, core::mem::transmute_copy(&disablecommandline)).into() } - unsafe extern "system" fn EnableScreeningAudit(this: *mut core::ffi::c_void, enablescreeningaudit: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn EnableScreeningAudit(this: *mut core::ffi::c_void, enablescreeningaudit: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmSetting_Impl::EnableScreeningAudit(this) { Ok(ok__) => { @@ -6451,31 +5020,19 @@ impl IFsrmSetting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableScreeningAudit(this: *mut core::ffi::c_void, enablescreeningaudit: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn SetEnableScreeningAudit(this: *mut core::ffi::c_void, enablescreeningaudit: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmSetting_Impl::SetEnableScreeningAudit(this, core::mem::transmute_copy(&enablescreeningaudit)).into() } - unsafe extern "system" fn EmailTest(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn EmailTest(this: *mut core::ffi::c_void, mailto: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmSetting_Impl::EmailTest(this, core::mem::transmute(&mailto)).into() } - unsafe extern "system" fn SetActionRunLimitInterval(this: *mut core::ffi::c_void, actiontype: FsrmActionType, delaytimeminutes: i32) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn SetActionRunLimitInterval(this: *mut core::ffi::c_void, actiontype: FsrmActionType, delaytimeminutes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmSetting_Impl::SetActionRunLimitInterval(this, core::mem::transmute_copy(&actiontype), core::mem::transmute_copy(&delaytimeminutes)).into() } - unsafe extern "system" fn GetActionRunLimitInterval(this: *mut core::ffi::c_void, actiontype: FsrmActionType, delaytimeminutes: *mut i32) -> windows_core::HRESULT - where - Identity: IFsrmSetting_Impl, - { + unsafe extern "system" fn GetActionRunLimitInterval(this: *mut core::ffi::c_void, actiontype: FsrmActionType, delaytimeminutes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmSetting_Impl::GetActionRunLimitInterval(this, core::mem::transmute_copy(&actiontype)) { Ok(ok__) => { @@ -6519,14 +5076,8 @@ pub trait IFsrmStorageModuleDefinition_Impl: Sized + IFsrmPipelineModuleDefiniti impl windows_core::RuntimeName for IFsrmStorageModuleDefinition {} #[cfg(feature = "Win32_System_Com")] impl IFsrmStorageModuleDefinition_Vtbl { - pub const fn new() -> IFsrmStorageModuleDefinition_Vtbl - where - Identity: IFsrmStorageModuleDefinition_Impl, - { - unsafe extern "system" fn Capabilities(this: *mut core::ffi::c_void, capabilities: *mut FsrmStorageModuleCaps) -> windows_core::HRESULT - where - Identity: IFsrmStorageModuleDefinition_Impl, - { + pub const fn new() -> IFsrmStorageModuleDefinition_Vtbl { + unsafe extern "system" fn Capabilities(this: *mut core::ffi::c_void, capabilities: *mut FsrmStorageModuleCaps) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmStorageModuleDefinition_Impl::Capabilities(this) { Ok(ok__) => { @@ -6536,17 +5087,11 @@ impl IFsrmStorageModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCapabilities(this: *mut core::ffi::c_void, capabilities: FsrmStorageModuleCaps) -> windows_core::HRESULT - where - Identity: IFsrmStorageModuleDefinition_Impl, - { + unsafe extern "system" fn SetCapabilities(this: *mut core::ffi::c_void, capabilities: FsrmStorageModuleCaps) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmStorageModuleDefinition_Impl::SetCapabilities(this, core::mem::transmute_copy(&capabilities)).into() } - unsafe extern "system" fn StorageType(this: *mut core::ffi::c_void, storagetype: *mut FsrmStorageModuleType) -> windows_core::HRESULT - where - Identity: IFsrmStorageModuleDefinition_Impl, - { + unsafe extern "system" fn StorageType(this: *mut core::ffi::c_void, storagetype: *mut FsrmStorageModuleType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmStorageModuleDefinition_Impl::StorageType(this) { Ok(ok__) => { @@ -6556,17 +5101,11 @@ impl IFsrmStorageModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStorageType(this: *mut core::ffi::c_void, storagetype: FsrmStorageModuleType) -> windows_core::HRESULT - where - Identity: IFsrmStorageModuleDefinition_Impl, - { + unsafe extern "system" fn SetStorageType(this: *mut core::ffi::c_void, storagetype: FsrmStorageModuleType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmStorageModuleDefinition_Impl::SetStorageType(this, core::mem::transmute_copy(&storagetype)).into() } - unsafe extern "system" fn UpdatesFileContent(this: *mut core::ffi::c_void, updatesfilecontent: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmStorageModuleDefinition_Impl, - { + unsafe extern "system" fn UpdatesFileContent(this: *mut core::ffi::c_void, updatesfilecontent: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsrmStorageModuleDefinition_Impl::UpdatesFileContent(this) { Ok(ok__) => { @@ -6576,10 +5115,7 @@ impl IFsrmStorageModuleDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUpdatesFileContent(this: *mut core::ffi::c_void, updatesfilecontent: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsrmStorageModuleDefinition_Impl, - { + unsafe extern "system" fn SetUpdatesFileContent(this: *mut core::ffi::c_void, updatesfilecontent: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmStorageModuleDefinition_Impl::SetUpdatesFileContent(this, core::mem::transmute_copy(&updatesfilecontent)).into() } @@ -6607,28 +5143,16 @@ pub trait IFsrmStorageModuleImplementation_Impl: Sized + IFsrmPipelineModuleImpl impl windows_core::RuntimeName for IFsrmStorageModuleImplementation {} #[cfg(feature = "Win32_System_Com")] impl IFsrmStorageModuleImplementation_Vtbl { - pub const fn new() -> IFsrmStorageModuleImplementation_Vtbl - where - Identity: IFsrmStorageModuleImplementation_Impl, - { - unsafe extern "system" fn UseDefinitions(this: *mut core::ffi::c_void, propertydefinitions: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmStorageModuleImplementation_Impl, - { + pub const fn new() -> IFsrmStorageModuleImplementation_Vtbl { + unsafe extern "system" fn UseDefinitions(this: *mut core::ffi::c_void, propertydefinitions: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmStorageModuleImplementation_Impl::UseDefinitions(this, windows_core::from_raw_borrowed(&propertydefinitions)).into() } - unsafe extern "system" fn LoadProperties(this: *mut core::ffi::c_void, propertybag: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmStorageModuleImplementation_Impl, - { + unsafe extern "system" fn LoadProperties(this: *mut core::ffi::c_void, propertybag: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmStorageModuleImplementation_Impl::LoadProperties(this, windows_core::from_raw_borrowed(&propertybag)).into() } - unsafe extern "system" fn SaveProperties(this: *mut core::ffi::c_void, propertybag: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsrmStorageModuleImplementation_Impl, - { + unsafe extern "system" fn SaveProperties(this: *mut core::ffi::c_void, propertybag: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsrmStorageModuleImplementation_Impl::SaveProperties(this, windows_core::from_raw_borrowed(&propertybag)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/impl.rs index 90eb08cf70..44c8679cb1 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/impl.rs @@ -26,91 +26,52 @@ pub trait IDiskQuotaControl_Impl: Sized + super::super::System::Com::IConnection impl windows_core::RuntimeName for IDiskQuotaControl {} #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Com"))] impl IDiskQuotaControl_Vtbl { - pub const fn new() -> IDiskQuotaControl_Vtbl - where - Identity: IDiskQuotaControl_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, breadwrite: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + pub const fn new() -> IDiskQuotaControl_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, breadwrite: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::Initialize(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&breadwrite)).into() } - unsafe extern "system" fn SetQuotaState(this: *mut core::ffi::c_void, dwstate: u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn SetQuotaState(this: *mut core::ffi::c_void, dwstate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::SetQuotaState(this, core::mem::transmute_copy(&dwstate)).into() } - unsafe extern "system" fn GetQuotaState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn GetQuotaState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::GetQuotaState(this, core::mem::transmute_copy(&pdwstate)).into() } - unsafe extern "system" fn SetQuotaLogFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn SetQuotaLogFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::SetQuotaLogFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetQuotaLogFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn GetQuotaLogFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::GetQuotaLogFlags(this, core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn SetDefaultQuotaThreshold(this: *mut core::ffi::c_void, llthreshold: i64) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn SetDefaultQuotaThreshold(this: *mut core::ffi::c_void, llthreshold: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::SetDefaultQuotaThreshold(this, core::mem::transmute_copy(&llthreshold)).into() } - unsafe extern "system" fn GetDefaultQuotaThreshold(this: *mut core::ffi::c_void, pllthreshold: *mut i64) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn GetDefaultQuotaThreshold(this: *mut core::ffi::c_void, pllthreshold: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::GetDefaultQuotaThreshold(this, core::mem::transmute_copy(&pllthreshold)).into() } - unsafe extern "system" fn GetDefaultQuotaThresholdText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn GetDefaultQuotaThresholdText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::GetDefaultQuotaThresholdText(this, core::mem::transmute(&psztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn SetDefaultQuotaLimit(this: *mut core::ffi::c_void, lllimit: i64) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn SetDefaultQuotaLimit(this: *mut core::ffi::c_void, lllimit: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::SetDefaultQuotaLimit(this, core::mem::transmute_copy(&lllimit)).into() } - unsafe extern "system" fn GetDefaultQuotaLimit(this: *mut core::ffi::c_void, plllimit: *mut i64) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn GetDefaultQuotaLimit(this: *mut core::ffi::c_void, plllimit: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::GetDefaultQuotaLimit(this, core::mem::transmute_copy(&plllimit)).into() } - unsafe extern "system" fn GetDefaultQuotaLimitText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn GetDefaultQuotaLimitText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::GetDefaultQuotaLimitText(this, core::mem::transmute(&psztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn AddUserSid(this: *mut core::ffi::c_void, pusersid: super::super::Security::PSID, fnameresolution: DISKQUOTA_USERNAME_RESOLVE, ppuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn AddUserSid(this: *mut core::ffi::c_void, pusersid: super::super::Security::PSID, fnameresolution: DISKQUOTA_USERNAME_RESOLVE, ppuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiskQuotaControl_Impl::AddUserSid(this, core::mem::transmute_copy(&pusersid), core::mem::transmute_copy(&fnameresolution)) { Ok(ok__) => { @@ -120,10 +81,7 @@ impl IDiskQuotaControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddUserName(this: *mut core::ffi::c_void, pszlogonname: windows_core::PCWSTR, fnameresolution: DISKQUOTA_USERNAME_RESOLVE, ppuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn AddUserName(this: *mut core::ffi::c_void, pszlogonname: windows_core::PCWSTR, fnameresolution: DISKQUOTA_USERNAME_RESOLVE, ppuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiskQuotaControl_Impl::AddUserName(this, core::mem::transmute(&pszlogonname), core::mem::transmute_copy(&fnameresolution)) { Ok(ok__) => { @@ -133,17 +91,11 @@ impl IDiskQuotaControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteUser(this: *mut core::ffi::c_void, puser: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn DeleteUser(this: *mut core::ffi::c_void, puser: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::DeleteUser(this, windows_core::from_raw_borrowed(&puser)).into() } - unsafe extern "system" fn FindUserSid(this: *mut core::ffi::c_void, pusersid: super::super::Security::PSID, fnameresolution: DISKQUOTA_USERNAME_RESOLVE, ppuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn FindUserSid(this: *mut core::ffi::c_void, pusersid: super::super::Security::PSID, fnameresolution: DISKQUOTA_USERNAME_RESOLVE, ppuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiskQuotaControl_Impl::FindUserSid(this, core::mem::transmute_copy(&pusersid), core::mem::transmute_copy(&fnameresolution)) { Ok(ok__) => { @@ -153,10 +105,7 @@ impl IDiskQuotaControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindUserName(this: *mut core::ffi::c_void, pszlogonname: windows_core::PCWSTR, ppuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn FindUserName(this: *mut core::ffi::c_void, pszlogonname: windows_core::PCWSTR, ppuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiskQuotaControl_Impl::FindUserName(this, core::mem::transmute(&pszlogonname)) { Ok(ok__) => { @@ -166,17 +115,11 @@ impl IDiskQuotaControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEnumUsers(this: *mut core::ffi::c_void, rgpusersids: *mut super::super::Security::PSID, cpsids: u32, fnameresolution: DISKQUOTA_USERNAME_RESOLVE, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn CreateEnumUsers(this: *mut core::ffi::c_void, rgpusersids: *mut super::super::Security::PSID, cpsids: u32, fnameresolution: DISKQUOTA_USERNAME_RESOLVE, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::CreateEnumUsers(this, core::mem::transmute_copy(&rgpusersids), core::mem::transmute_copy(&cpsids), core::mem::transmute_copy(&fnameresolution), core::mem::transmute_copy(&ppenum)).into() } - unsafe extern "system" fn CreateUserBatch(this: *mut core::ffi::c_void, ppbatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn CreateUserBatch(this: *mut core::ffi::c_void, ppbatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiskQuotaControl_Impl::CreateUserBatch(this) { Ok(ok__) => { @@ -186,24 +129,15 @@ impl IDiskQuotaControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InvalidateSidNameCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn InvalidateSidNameCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::InvalidateSidNameCache(this).into() } - unsafe extern "system" fn GiveUserNameResolutionPriority(this: *mut core::ffi::c_void, puser: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn GiveUserNameResolutionPriority(this: *mut core::ffi::c_void, puser: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::GiveUserNameResolutionPriority(this, windows_core::from_raw_borrowed(&puser)).into() } - unsafe extern "system" fn ShutdownNameResolution(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaControl_Impl, - { + unsafe extern "system" fn ShutdownNameResolution(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::ShutdownNameResolution(this).into() } @@ -236,19 +170,13 @@ impl IDiskQuotaControl_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDiskQuotaEvents_Impl: Sized { +pub trait IDiskQuotaEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnUserNameChanged(&self, puser: Option<&IDiskQuotaUser>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDiskQuotaEvents {} impl IDiskQuotaEvents_Vtbl { - pub const fn new() -> IDiskQuotaEvents_Vtbl - where - Identity: IDiskQuotaEvents_Impl, - { - unsafe extern "system" fn OnUserNameChanged(this: *mut core::ffi::c_void, puser: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaEvents_Impl, - { + pub const fn new() -> IDiskQuotaEvents_Vtbl { + unsafe extern "system" fn OnUserNameChanged(this: *mut core::ffi::c_void, puser: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaEvents_Impl::OnUserNameChanged(this, windows_core::from_raw_borrowed(&puser)).into() } @@ -258,7 +186,7 @@ impl IDiskQuotaEvents_Vtbl { iid == &::IID } } -pub trait IDiskQuotaUser_Impl: Sized { +pub trait IDiskQuotaUser_Impl: Sized + windows_core::IUnknownImpl { fn GetID(&self, pulid: *mut u32) -> windows_core::Result<()>; fn GetName(&self, pszaccountcontainer: &windows_core::PCWSTR, cchaccountcontainer: u32, pszlogonname: &windows_core::PCWSTR, cchlogonname: u32, pszdisplayname: &windows_core::PCWSTR, cchdisplayname: u32) -> windows_core::Result<()>; fn GetSidLength(&self, pdwlength: *mut u32) -> windows_core::Result<()>; @@ -277,112 +205,64 @@ pub trait IDiskQuotaUser_Impl: Sized { } impl windows_core::RuntimeName for IDiskQuotaUser {} impl IDiskQuotaUser_Vtbl { - pub const fn new() -> IDiskQuotaUser_Vtbl - where - Identity: IDiskQuotaUser_Impl, - { - unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + pub const fn new() -> IDiskQuotaUser_Vtbl { + unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetID(this, core::mem::transmute_copy(&pulid)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pszaccountcontainer: windows_core::PCWSTR, cchaccountcontainer: u32, pszlogonname: windows_core::PCWSTR, cchlogonname: u32, pszdisplayname: windows_core::PCWSTR, cchdisplayname: u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pszaccountcontainer: windows_core::PCWSTR, cchaccountcontainer: u32, pszlogonname: windows_core::PCWSTR, cchlogonname: u32, pszdisplayname: windows_core::PCWSTR, cchdisplayname: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetName(this, core::mem::transmute(&pszaccountcontainer), core::mem::transmute_copy(&cchaccountcontainer), core::mem::transmute(&pszlogonname), core::mem::transmute_copy(&cchlogonname), core::mem::transmute(&pszdisplayname), core::mem::transmute_copy(&cchdisplayname)).into() } - unsafe extern "system" fn GetSidLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetSidLength(this: *mut core::ffi::c_void, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetSidLength(this, core::mem::transmute_copy(&pdwlength)).into() } - unsafe extern "system" fn GetSid(this: *mut core::ffi::c_void, pbsidbuffer: *mut u8, cbsidbuffer: u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetSid(this: *mut core::ffi::c_void, pbsidbuffer: *mut u8, cbsidbuffer: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetSid(this, core::mem::transmute_copy(&pbsidbuffer), core::mem::transmute_copy(&cbsidbuffer)).into() } - unsafe extern "system" fn GetQuotaThreshold(this: *mut core::ffi::c_void, pllthreshold: *mut i64) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetQuotaThreshold(this: *mut core::ffi::c_void, pllthreshold: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetQuotaThreshold(this, core::mem::transmute_copy(&pllthreshold)).into() } - unsafe extern "system" fn GetQuotaThresholdText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetQuotaThresholdText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetQuotaThresholdText(this, core::mem::transmute(&psztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn GetQuotaLimit(this: *mut core::ffi::c_void, plllimit: *mut i64) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetQuotaLimit(this: *mut core::ffi::c_void, plllimit: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetQuotaLimit(this, core::mem::transmute_copy(&plllimit)).into() } - unsafe extern "system" fn GetQuotaLimitText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetQuotaLimitText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetQuotaLimitText(this, core::mem::transmute(&psztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn GetQuotaUsed(this: *mut core::ffi::c_void, pllused: *mut i64) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetQuotaUsed(this: *mut core::ffi::c_void, pllused: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetQuotaUsed(this, core::mem::transmute_copy(&pllused)).into() } - unsafe extern "system" fn GetQuotaUsedText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetQuotaUsedText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetQuotaUsedText(this, core::mem::transmute(&psztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn GetQuotaInformation(this: *mut core::ffi::c_void, pbquotainfo: *mut core::ffi::c_void, cbquotainfo: u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetQuotaInformation(this: *mut core::ffi::c_void, pbquotainfo: *mut core::ffi::c_void, cbquotainfo: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetQuotaInformation(this, core::mem::transmute_copy(&pbquotainfo), core::mem::transmute_copy(&cbquotainfo)).into() } - unsafe extern "system" fn SetQuotaThreshold(this: *mut core::ffi::c_void, llthreshold: i64, fwritethrough: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn SetQuotaThreshold(this: *mut core::ffi::c_void, llthreshold: i64, fwritethrough: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::SetQuotaThreshold(this, core::mem::transmute_copy(&llthreshold), core::mem::transmute_copy(&fwritethrough)).into() } - unsafe extern "system" fn SetQuotaLimit(this: *mut core::ffi::c_void, lllimit: i64, fwritethrough: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn SetQuotaLimit(this: *mut core::ffi::c_void, lllimit: i64, fwritethrough: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::SetQuotaLimit(this, core::mem::transmute_copy(&lllimit), core::mem::transmute_copy(&fwritethrough)).into() } - unsafe extern "system" fn Invalidate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn Invalidate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::Invalidate(this).into() } - unsafe extern "system" fn GetAccountStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IDiskQuotaUser_Impl, - { + unsafe extern "system" fn GetAccountStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::GetAccountStatus(this, core::mem::transmute_copy(&pdwstatus)).into() } @@ -409,7 +289,7 @@ impl IDiskQuotaUser_Vtbl { iid == &::IID } } -pub trait IDiskQuotaUserBatch_Impl: Sized { +pub trait IDiskQuotaUserBatch_Impl: Sized + windows_core::IUnknownImpl { fn Add(&self, puser: Option<&IDiskQuotaUser>) -> windows_core::Result<()>; fn Remove(&self, puser: Option<&IDiskQuotaUser>) -> windows_core::Result<()>; fn RemoveAll(&self) -> windows_core::Result<()>; @@ -417,35 +297,20 @@ pub trait IDiskQuotaUserBatch_Impl: Sized { } impl windows_core::RuntimeName for IDiskQuotaUserBatch {} impl IDiskQuotaUserBatch_Vtbl { - pub const fn new() -> IDiskQuotaUserBatch_Vtbl - where - Identity: IDiskQuotaUserBatch_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, puser: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaUserBatch_Impl, - { + pub const fn new() -> IDiskQuotaUserBatch_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, puser: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUserBatch_Impl::Add(this, windows_core::from_raw_borrowed(&puser)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, puser: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaUserBatch_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, puser: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUserBatch_Impl::Remove(this, windows_core::from_raw_borrowed(&puser)).into() } - unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaUserBatch_Impl, - { + unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUserBatch_Impl::RemoveAll(this).into() } - unsafe extern "system" fn FlushToDisk(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiskQuotaUserBatch_Impl, - { + unsafe extern "system" fn FlushToDisk(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUserBatch_Impl::FlushToDisk(this).into() } @@ -461,7 +326,7 @@ impl IDiskQuotaUserBatch_Vtbl { iid == &::IID } } -pub trait IEnumDiskQuotaUsers_Impl: Sized { +pub trait IEnumDiskQuotaUsers_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cusers: u32, rgusers: *mut Option, pcusersfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cusers: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -469,35 +334,20 @@ pub trait IEnumDiskQuotaUsers_Impl: Sized { } impl windows_core::RuntimeName for IEnumDiskQuotaUsers {} impl IEnumDiskQuotaUsers_Vtbl { - pub const fn new() -> IEnumDiskQuotaUsers_Vtbl - where - Identity: IEnumDiskQuotaUsers_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cusers: u32, rgusers: *mut *mut core::ffi::c_void, pcusersfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDiskQuotaUsers_Impl, - { + pub const fn new() -> IEnumDiskQuotaUsers_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cusers: u32, rgusers: *mut *mut core::ffi::c_void, pcusersfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDiskQuotaUsers_Impl::Next(this, core::mem::transmute_copy(&cusers), core::mem::transmute_copy(&rgusers), core::mem::transmute_copy(&pcusersfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cusers: u32) -> windows_core::HRESULT - where - Identity: IEnumDiskQuotaUsers_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cusers: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDiskQuotaUsers_Impl::Skip(this, core::mem::transmute_copy(&cusers)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDiskQuotaUsers_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDiskQuotaUsers_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDiskQuotaUsers_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDiskQuotaUsers_Impl::Clone(this) { Ok(ok__) => { 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 140524777e..4bd8ff1959 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/impl.rs @@ -6,14 +6,8 @@ pub trait DDiscFormat2DataEvents_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for DDiscFormat2DataEvents {} #[cfg(feature = "Win32_System_Com")] impl DDiscFormat2DataEvents_Vtbl { - pub const fn new() -> DDiscFormat2DataEvents_Vtbl - where - Identity: DDiscFormat2DataEvents_Impl, - { - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, progress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: DDiscFormat2DataEvents_Impl, - { + pub const fn new() -> DDiscFormat2DataEvents_Vtbl { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, progress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DDiscFormat2DataEvents_Impl::Update(this, windows_core::from_raw_borrowed(&object), windows_core::from_raw_borrowed(&progress)).into() } @@ -31,14 +25,8 @@ pub trait DDiscFormat2EraseEvents_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for DDiscFormat2EraseEvents {} #[cfg(feature = "Win32_System_Com")] impl DDiscFormat2EraseEvents_Vtbl { - pub const fn new() -> DDiscFormat2EraseEvents_Vtbl - where - Identity: DDiscFormat2EraseEvents_Impl, - { - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, elapsedseconds: i32, estimatedtotalseconds: i32) -> windows_core::HRESULT - where - Identity: DDiscFormat2EraseEvents_Impl, - { + pub const fn new() -> DDiscFormat2EraseEvents_Vtbl { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, elapsedseconds: i32, estimatedtotalseconds: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DDiscFormat2EraseEvents_Impl::Update(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&elapsedseconds), core::mem::transmute_copy(&estimatedtotalseconds)).into() } @@ -56,14 +44,8 @@ pub trait DDiscFormat2RawCDEvents_Impl: Sized + super::super::System::Com::IDisp impl windows_core::RuntimeName for DDiscFormat2RawCDEvents {} #[cfg(feature = "Win32_System_Com")] impl DDiscFormat2RawCDEvents_Vtbl { - pub const fn new() -> DDiscFormat2RawCDEvents_Vtbl - where - Identity: DDiscFormat2RawCDEvents_Impl, - { - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, progress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: DDiscFormat2RawCDEvents_Impl, - { + pub const fn new() -> DDiscFormat2RawCDEvents_Vtbl { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, progress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DDiscFormat2RawCDEvents_Impl::Update(this, windows_core::from_raw_borrowed(&object), windows_core::from_raw_borrowed(&progress)).into() } @@ -81,14 +63,8 @@ pub trait DDiscFormat2TrackAtOnceEvents_Impl: Sized + super::super::System::Com: impl windows_core::RuntimeName for DDiscFormat2TrackAtOnceEvents {} #[cfg(feature = "Win32_System_Com")] impl DDiscFormat2TrackAtOnceEvents_Vtbl { - pub const fn new() -> DDiscFormat2TrackAtOnceEvents_Vtbl - where - Identity: DDiscFormat2TrackAtOnceEvents_Impl, - { - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, progress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: DDiscFormat2TrackAtOnceEvents_Impl, - { + pub const fn new() -> DDiscFormat2TrackAtOnceEvents_Vtbl { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, progress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DDiscFormat2TrackAtOnceEvents_Impl::Update(this, windows_core::from_raw_borrowed(&object), windows_core::from_raw_borrowed(&progress)).into() } @@ -107,21 +83,12 @@ pub trait DDiscMaster2Events_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for DDiscMaster2Events {} #[cfg(feature = "Win32_System_Com")] impl DDiscMaster2Events_Vtbl { - pub const fn new() -> DDiscMaster2Events_Vtbl - where - Identity: DDiscMaster2Events_Impl, - { - unsafe extern "system" fn NotifyDeviceAdded(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, uniqueid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: DDiscMaster2Events_Impl, - { + pub const fn new() -> DDiscMaster2Events_Vtbl { + unsafe extern "system" fn NotifyDeviceAdded(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, uniqueid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DDiscMaster2Events_Impl::NotifyDeviceAdded(this, windows_core::from_raw_borrowed(&object), core::mem::transmute(&uniqueid)).into() } - unsafe extern "system" fn NotifyDeviceRemoved(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, uniqueid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: DDiscMaster2Events_Impl, - { + unsafe extern "system" fn NotifyDeviceRemoved(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, uniqueid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DDiscMaster2Events_Impl::NotifyDeviceRemoved(this, windows_core::from_raw_borrowed(&object), core::mem::transmute(&uniqueid)).into() } @@ -143,14 +110,8 @@ pub trait DFileSystemImageEvents_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for DFileSystemImageEvents {} #[cfg(feature = "Win32_System_Com")] impl DFileSystemImageEvents_Vtbl { - pub const fn new() -> DFileSystemImageEvents_Vtbl - where - Identity: DFileSystemImageEvents_Impl, - { - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, currentfile: core::mem::MaybeUninit, copiedsectors: i32, totalsectors: i32) -> windows_core::HRESULT - where - Identity: DFileSystemImageEvents_Impl, - { + pub const fn new() -> DFileSystemImageEvents_Vtbl { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, currentfile: core::mem::MaybeUninit, copiedsectors: i32, totalsectors: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DFileSystemImageEvents_Impl::Update(this, windows_core::from_raw_borrowed(&object), core::mem::transmute(¤tfile), core::mem::transmute_copy(&copiedsectors), core::mem::transmute_copy(&totalsectors)).into() } @@ -168,14 +129,8 @@ pub trait DFileSystemImageImportEvents_Impl: Sized + super::super::System::Com:: impl windows_core::RuntimeName for DFileSystemImageImportEvents {} #[cfg(feature = "Win32_System_Com")] impl DFileSystemImageImportEvents_Vtbl { - pub const fn new() -> DFileSystemImageImportEvents_Vtbl - where - Identity: DFileSystemImageImportEvents_Impl, - { - unsafe extern "system" fn UpdateImport(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, filesystem: FsiFileSystems, currentitem: core::mem::MaybeUninit, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> windows_core::HRESULT - where - Identity: DFileSystemImageImportEvents_Impl, - { + pub const fn new() -> DFileSystemImageImportEvents_Vtbl { + unsafe extern "system" fn UpdateImport(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, filesystem: FsiFileSystems, currentitem: core::mem::MaybeUninit, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DFileSystemImageImportEvents_Impl::UpdateImport(this, windows_core::from_raw_borrowed(&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() } @@ -193,14 +148,8 @@ pub trait DWriteEngine2Events_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for DWriteEngine2Events {} #[cfg(feature = "Win32_System_Com")] impl DWriteEngine2Events_Vtbl { - pub const fn new() -> DWriteEngine2Events_Vtbl - where - Identity: DWriteEngine2Events_Impl, - { - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, progress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: DWriteEngine2Events_Impl, - { + pub const fn new() -> DWriteEngine2Events_Vtbl { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, progress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DWriteEngine2Events_Impl::Update(this, windows_core::from_raw_borrowed(&object), windows_core::from_raw_borrowed(&progress)).into() } @@ -219,14 +168,8 @@ pub trait IBlockRange_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IBlockRange {} #[cfg(feature = "Win32_System_Com")] impl IBlockRange_Vtbl { - pub const fn new() -> IBlockRange_Vtbl - where - Identity: IBlockRange_Impl, - { - unsafe extern "system" fn StartLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IBlockRange_Impl, - { + pub const fn new() -> IBlockRange_Vtbl { + unsafe extern "system" fn StartLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBlockRange_Impl::StartLba(this) { Ok(ok__) => { @@ -236,10 +179,7 @@ impl IBlockRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IBlockRange_Impl, - { + unsafe extern "system" fn EndLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBlockRange_Impl::EndLba(this) { Ok(ok__) => { @@ -267,14 +207,8 @@ pub trait IBlockRangeList_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IBlockRangeList {} #[cfg(feature = "Win32_System_Com")] impl IBlockRangeList_Vtbl { - pub const fn new() -> IBlockRangeList_Vtbl - where - Identity: IBlockRangeList_Impl, - { - unsafe extern "system" fn BlockRanges(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IBlockRangeList_Impl, - { + pub const fn new() -> IBlockRangeList_Vtbl { + unsafe extern "system" fn BlockRanges(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBlockRangeList_Impl::BlockRanges(this) { Ok(ok__) => { @@ -306,14 +240,8 @@ pub trait IBootOptions_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IBootOptions {} #[cfg(feature = "Win32_System_Com")] impl IBootOptions_Vtbl { - pub const fn new() -> IBootOptions_Vtbl - where - Identity: IBootOptions_Impl, - { - unsafe extern "system" fn BootImage(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBootOptions_Impl, - { + pub const fn new() -> IBootOptions_Vtbl { + unsafe extern "system" fn BootImage(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBootOptions_Impl::BootImage(this) { Ok(ok__) => { @@ -323,10 +251,7 @@ impl IBootOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Manufacturer(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBootOptions_Impl, - { + unsafe extern "system" fn Manufacturer(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBootOptions_Impl::Manufacturer(this) { Ok(ok__) => { @@ -336,17 +261,11 @@ impl IBootOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetManufacturer(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBootOptions_Impl, - { + unsafe extern "system" fn SetManufacturer(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBootOptions_Impl::SetManufacturer(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn PlatformId(this: *mut core::ffi::c_void, pval: *mut PlatformId) -> windows_core::HRESULT - where - Identity: IBootOptions_Impl, - { + unsafe extern "system" fn PlatformId(this: *mut core::ffi::c_void, pval: *mut PlatformId) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBootOptions_Impl::PlatformId(this) { Ok(ok__) => { @@ -356,17 +275,11 @@ impl IBootOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlatformId(this: *mut core::ffi::c_void, newval: PlatformId) -> windows_core::HRESULT - where - Identity: IBootOptions_Impl, - { + unsafe extern "system" fn SetPlatformId(this: *mut core::ffi::c_void, newval: PlatformId) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBootOptions_Impl::SetPlatformId(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Emulation(this: *mut core::ffi::c_void, pval: *mut EmulationType) -> windows_core::HRESULT - where - Identity: IBootOptions_Impl, - { + unsafe extern "system" fn Emulation(this: *mut core::ffi::c_void, pval: *mut EmulationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBootOptions_Impl::Emulation(this) { Ok(ok__) => { @@ -376,17 +289,11 @@ impl IBootOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEmulation(this: *mut core::ffi::c_void, newval: EmulationType) -> windows_core::HRESULT - where - Identity: IBootOptions_Impl, - { + unsafe extern "system" fn SetEmulation(this: *mut core::ffi::c_void, newval: EmulationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBootOptions_Impl::SetEmulation(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn ImageSize(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT - where - Identity: IBootOptions_Impl, - { + unsafe extern "system" fn ImageSize(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBootOptions_Impl::ImageSize(this) { Ok(ok__) => { @@ -396,10 +303,7 @@ impl IBootOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AssignBootImage(this: *mut core::ffi::c_void, newval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBootOptions_Impl, - { + unsafe extern "system" fn AssignBootImage(this: *mut core::ffi::c_void, newval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBootOptions_Impl::AssignBootImage(this, windows_core::from_raw_borrowed(&newval)).into() } @@ -420,27 +324,18 @@ impl IBootOptions_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IBurnVerification_Impl: Sized { +pub trait IBurnVerification_Impl: Sized + windows_core::IUnknownImpl { fn SetBurnVerificationLevel(&self, value: IMAPI_BURN_VERIFICATION_LEVEL) -> windows_core::Result<()>; fn BurnVerificationLevel(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IBurnVerification {} impl IBurnVerification_Vtbl { - pub const fn new() -> IBurnVerification_Vtbl - where - Identity: IBurnVerification_Impl, - { - unsafe extern "system" fn SetBurnVerificationLevel(this: *mut core::ffi::c_void, value: IMAPI_BURN_VERIFICATION_LEVEL) -> windows_core::HRESULT - where - Identity: IBurnVerification_Impl, - { + pub const fn new() -> IBurnVerification_Vtbl { + unsafe extern "system" fn SetBurnVerificationLevel(this: *mut core::ffi::c_void, value: IMAPI_BURN_VERIFICATION_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBurnVerification_Impl::SetBurnVerificationLevel(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn BurnVerificationLevel(this: *mut core::ffi::c_void, value: *mut IMAPI_BURN_VERIFICATION_LEVEL) -> windows_core::HRESULT - where - Identity: IBurnVerification_Impl, - { + unsafe extern "system" fn BurnVerificationLevel(this: *mut core::ffi::c_void, value: *mut IMAPI_BURN_VERIFICATION_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBurnVerification_Impl::BurnVerificationLevel(this) { Ok(ok__) => { @@ -472,14 +367,8 @@ pub trait IDiscFormat2_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDiscFormat2 {} #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2_Vtbl { - pub const fn new() -> IDiscFormat2_Vtbl - where - Identity: IDiscFormat2_Impl, - { - unsafe extern "system" fn IsRecorderSupported(this: *mut core::ffi::c_void, recorder: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2_Impl, - { + pub const fn new() -> IDiscFormat2_Vtbl { + unsafe extern "system" fn IsRecorderSupported(this: *mut core::ffi::c_void, recorder: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2_Impl::IsRecorderSupported(this, windows_core::from_raw_borrowed(&recorder)) { Ok(ok__) => { @@ -489,10 +378,7 @@ impl IDiscFormat2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCurrentMediaSupported(this: *mut core::ffi::c_void, recorder: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2_Impl, - { + unsafe extern "system" fn IsCurrentMediaSupported(this: *mut core::ffi::c_void, recorder: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2_Impl::IsCurrentMediaSupported(this, windows_core::from_raw_borrowed(&recorder)) { Ok(ok__) => { @@ -502,10 +388,7 @@ impl IDiscFormat2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MediaPhysicallyBlank(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2_Impl, - { + unsafe extern "system" fn MediaPhysicallyBlank(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2_Impl::MediaPhysicallyBlank(this) { Ok(ok__) => { @@ -515,10 +398,7 @@ impl IDiscFormat2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MediaHeuristicallyBlank(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2_Impl, - { + unsafe extern "system" fn MediaHeuristicallyBlank(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2_Impl::MediaHeuristicallyBlank(this) { Ok(ok__) => { @@ -528,10 +408,7 @@ impl IDiscFormat2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedMediaTypes(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscFormat2_Impl, - { + unsafe extern "system" fn SupportedMediaTypes(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2_Impl::SupportedMediaTypes(this) { Ok(ok__) => { @@ -593,21 +470,12 @@ pub trait IDiscFormat2Data_Impl: Sized + IDiscFormat2_Impl { impl windows_core::RuntimeName for IDiscFormat2Data {} #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2Data_Vtbl { - pub const fn new() -> IDiscFormat2Data_Vtbl - where - Identity: IDiscFormat2Data_Impl, - { - unsafe extern "system" fn SetRecorder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + pub const fn new() -> IDiscFormat2Data_Vtbl { + unsafe extern "system" fn SetRecorder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Data_Impl::SetRecorder(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn Recorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn Recorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::Recorder(this) { Ok(ok__) => { @@ -617,17 +485,11 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn SetBufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Data_Impl::SetBufferUnderrunFreeDisabled(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn BufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn BufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::BufferUnderrunFreeDisabled(this) { Ok(ok__) => { @@ -637,17 +499,11 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPostgapAlreadyInImage(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn SetPostgapAlreadyInImage(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Data_Impl::SetPostgapAlreadyInImage(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn PostgapAlreadyInImage(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn PostgapAlreadyInImage(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::PostgapAlreadyInImage(this) { Ok(ok__) => { @@ -657,10 +513,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentMediaStatus(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_DATA_MEDIA_STATE) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn CurrentMediaStatus(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_DATA_MEDIA_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::CurrentMediaStatus(this) { Ok(ok__) => { @@ -670,10 +523,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteProtectStatus(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_WRITE_PROTECT_STATE) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn WriteProtectStatus(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_WRITE_PROTECT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::WriteProtectStatus(this) { Ok(ok__) => { @@ -683,10 +533,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn TotalSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::TotalSectorsOnMedia(this) { Ok(ok__) => { @@ -696,10 +543,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FreeSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn FreeSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::FreeSectorsOnMedia(this) { Ok(ok__) => { @@ -709,10 +553,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NextWritableAddress(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn NextWritableAddress(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::NextWritableAddress(this) { Ok(ok__) => { @@ -722,10 +563,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartAddressOfPreviousSession(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn StartAddressOfPreviousSession(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::StartAddressOfPreviousSession(this) { Ok(ok__) => { @@ -735,10 +573,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastWrittenAddressOfPreviousSession(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn LastWrittenAddressOfPreviousSession(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::LastWrittenAddressOfPreviousSession(this) { Ok(ok__) => { @@ -748,17 +583,11 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetForceMediaToBeClosed(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn SetForceMediaToBeClosed(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Data_Impl::SetForceMediaToBeClosed(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ForceMediaToBeClosed(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn ForceMediaToBeClosed(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::ForceMediaToBeClosed(this) { Ok(ok__) => { @@ -768,17 +597,11 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisableConsumerDvdCompatibilityMode(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn SetDisableConsumerDvdCompatibilityMode(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Data_Impl::SetDisableConsumerDvdCompatibilityMode(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn DisableConsumerDvdCompatibilityMode(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn DisableConsumerDvdCompatibilityMode(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::DisableConsumerDvdCompatibilityMode(this) { Ok(ok__) => { @@ -788,10 +611,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentPhysicalMediaType(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn CurrentPhysicalMediaType(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::CurrentPhysicalMediaType(this) { Ok(ok__) => { @@ -801,17 +621,11 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn SetClientName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Data_Impl::SetClientName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ClientName(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn ClientName(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::ClientName(this) { Ok(ok__) => { @@ -821,10 +635,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestedWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn RequestedWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::RequestedWriteSpeed(this) { Ok(ok__) => { @@ -834,10 +645,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestedRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn RequestedRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::RequestedRotationTypeIsPureCAV(this) { Ok(ok__) => { @@ -847,10 +655,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn CurrentWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::CurrentWriteSpeed(this) { Ok(ok__) => { @@ -860,10 +665,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn CurrentRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::CurrentRotationTypeIsPureCAV(this) { Ok(ok__) => { @@ -873,10 +675,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedWriteSpeeds(this: *mut core::ffi::c_void, supportedspeeds: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn SupportedWriteSpeeds(this: *mut core::ffi::c_void, supportedspeeds: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::SupportedWriteSpeeds(this) { Ok(ok__) => { @@ -886,10 +685,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedWriteSpeedDescriptors(this: *mut core::ffi::c_void, supportedspeeddescriptors: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn SupportedWriteSpeedDescriptors(this: *mut core::ffi::c_void, supportedspeeddescriptors: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::SupportedWriteSpeedDescriptors(this) { Ok(ok__) => { @@ -899,17 +695,11 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetForceOverwrite(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn SetForceOverwrite(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Data_Impl::SetForceOverwrite(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ForceOverwrite(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn ForceOverwrite(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::ForceOverwrite(this) { Ok(ok__) => { @@ -919,10 +709,7 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MultisessionInterfaces(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn MultisessionInterfaces(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Data_Impl::MultisessionInterfaces(this) { Ok(ok__) => { @@ -932,24 +719,15 @@ impl IDiscFormat2Data_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Data_Impl::Write(this, windows_core::from_raw_borrowed(&data)).into() } - unsafe extern "system" fn CancelWrite(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn CancelWrite(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Data_Impl::CancelWrite(this).into() } - unsafe extern "system" fn SetWriteSpeed(this: *mut core::ffi::c_void, requestedsectorspersecond: i32, rotationtypeispurecav: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Data_Impl, - { + unsafe extern "system" fn SetWriteSpeed(this: *mut core::ffi::c_void, requestedsectorspersecond: i32, rotationtypeispurecav: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Data_Impl::SetWriteSpeed(this, core::mem::transmute_copy(&requestedsectorspersecond), core::mem::transmute_copy(&rotationtypeispurecav)).into() } @@ -1004,14 +782,8 @@ pub trait IDiscFormat2DataEventArgs_Impl: Sized + IWriteEngine2EventArgs_Impl { impl windows_core::RuntimeName for IDiscFormat2DataEventArgs {} #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2DataEventArgs_Vtbl { - pub const fn new() -> IDiscFormat2DataEventArgs_Vtbl - where - Identity: IDiscFormat2DataEventArgs_Impl, - { - unsafe extern "system" fn ElapsedTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2DataEventArgs_Impl, - { + pub const fn new() -> IDiscFormat2DataEventArgs_Vtbl { + unsafe extern "system" fn ElapsedTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2DataEventArgs_Impl::ElapsedTime(this) { Ok(ok__) => { @@ -1021,10 +793,7 @@ impl IDiscFormat2DataEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemainingTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2DataEventArgs_Impl, - { + unsafe extern "system" fn RemainingTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2DataEventArgs_Impl::RemainingTime(this) { Ok(ok__) => { @@ -1034,10 +803,7 @@ impl IDiscFormat2DataEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2DataEventArgs_Impl, - { + unsafe extern "system" fn TotalTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2DataEventArgs_Impl::TotalTime(this) { Ok(ok__) => { @@ -1047,10 +813,7 @@ impl IDiscFormat2DataEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAction(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_DATA_WRITE_ACTION) -> windows_core::HRESULT - where - Identity: IDiscFormat2DataEventArgs_Impl, - { + unsafe extern "system" fn CurrentAction(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_DATA_WRITE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2DataEventArgs_Impl::CurrentAction(this) { Ok(ok__) => { @@ -1087,21 +850,12 @@ pub trait IDiscFormat2Erase_Impl: Sized + IDiscFormat2_Impl { impl windows_core::RuntimeName for IDiscFormat2Erase {} #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2Erase_Vtbl { - pub const fn new() -> IDiscFormat2Erase_Vtbl - where - Identity: IDiscFormat2Erase_Impl, - { - unsafe extern "system" fn SetRecorder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2Erase_Impl, - { + pub const fn new() -> IDiscFormat2Erase_Vtbl { + unsafe extern "system" fn SetRecorder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Erase_Impl::SetRecorder(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn Recorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2Erase_Impl, - { + unsafe extern "system" fn Recorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Erase_Impl::Recorder(this) { Ok(ok__) => { @@ -1111,17 +865,11 @@ impl IDiscFormat2Erase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFullErase(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Erase_Impl, - { + unsafe extern "system" fn SetFullErase(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Erase_Impl::SetFullErase(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn FullErase(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2Erase_Impl, - { + unsafe extern "system" fn FullErase(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Erase_Impl::FullErase(this) { Ok(ok__) => { @@ -1131,10 +879,7 @@ impl IDiscFormat2Erase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentPhysicalMediaType(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT - where - Identity: IDiscFormat2Erase_Impl, - { + unsafe extern "system" fn CurrentPhysicalMediaType(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Erase_Impl::CurrentPhysicalMediaType(this) { Ok(ok__) => { @@ -1144,17 +889,11 @@ impl IDiscFormat2Erase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscFormat2Erase_Impl, - { + unsafe extern "system" fn SetClientName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Erase_Impl::SetClientName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ClientName(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscFormat2Erase_Impl, - { + unsafe extern "system" fn ClientName(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2Erase_Impl::ClientName(this) { Ok(ok__) => { @@ -1164,10 +903,7 @@ impl IDiscFormat2Erase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EraseMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2Erase_Impl, - { + unsafe extern "system" fn EraseMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2Erase_Impl::EraseMedia(this).into() } @@ -1218,63 +954,36 @@ pub trait IDiscFormat2RawCD_Impl: Sized + IDiscFormat2_Impl { impl windows_core::RuntimeName for IDiscFormat2RawCD {} #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2RawCD_Vtbl { - pub const fn new() -> IDiscFormat2RawCD_Vtbl - where - Identity: IDiscFormat2RawCD_Impl, - { - unsafe extern "system" fn PrepareMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + pub const fn new() -> IDiscFormat2RawCD_Vtbl { + unsafe extern "system" fn PrepareMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2RawCD_Impl::PrepareMedia(this).into() } - unsafe extern "system" fn WriteMedia(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn WriteMedia(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2RawCD_Impl::WriteMedia(this, windows_core::from_raw_borrowed(&data)).into() } - unsafe extern "system" fn WriteMedia2(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, streamleadinsectors: i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn WriteMedia2(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, streamleadinsectors: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2RawCD_Impl::WriteMedia2(this, windows_core::from_raw_borrowed(&data), core::mem::transmute_copy(&streamleadinsectors)).into() } - unsafe extern "system" fn CancelWrite(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn CancelWrite(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2RawCD_Impl::CancelWrite(this).into() } - unsafe extern "system" fn ReleaseMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn ReleaseMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2RawCD_Impl::ReleaseMedia(this).into() } - unsafe extern "system" fn SetWriteSpeed(this: *mut core::ffi::c_void, requestedsectorspersecond: i32, rotationtypeispurecav: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn SetWriteSpeed(this: *mut core::ffi::c_void, requestedsectorspersecond: i32, rotationtypeispurecav: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2RawCD_Impl::SetWriteSpeed(this, core::mem::transmute_copy(&requestedsectorspersecond), core::mem::transmute_copy(&rotationtypeispurecav)).into() } - unsafe extern "system" fn SetRecorder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn SetRecorder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2RawCD_Impl::SetRecorder(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn Recorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn Recorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::Recorder(this) { Ok(ok__) => { @@ -1284,17 +993,11 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn SetBufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2RawCD_Impl::SetBufferUnderrunFreeDisabled(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn BufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn BufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::BufferUnderrunFreeDisabled(this) { Ok(ok__) => { @@ -1304,10 +1007,7 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartOfNextSession(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn StartOfNextSession(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::StartOfNextSession(this) { Ok(ok__) => { @@ -1317,10 +1017,7 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastPossibleStartOfLeadout(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn LastPossibleStartOfLeadout(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::LastPossibleStartOfLeadout(this) { Ok(ok__) => { @@ -1330,10 +1027,7 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentPhysicalMediaType(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn CurrentPhysicalMediaType(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::CurrentPhysicalMediaType(this) { Ok(ok__) => { @@ -1343,10 +1037,7 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedSectorTypes(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn SupportedSectorTypes(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::SupportedSectorTypes(this) { Ok(ok__) => { @@ -1356,17 +1047,11 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRequestedSectorType(this: *mut core::ffi::c_void, value: IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn SetRequestedSectorType(this: *mut core::ffi::c_void, value: IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2RawCD_Impl::SetRequestedSectorType(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn RequestedSectorType(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn RequestedSectorType(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::RequestedSectorType(this) { Ok(ok__) => { @@ -1376,17 +1061,11 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn SetClientName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2RawCD_Impl::SetClientName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ClientName(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn ClientName(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::ClientName(this) { Ok(ok__) => { @@ -1396,10 +1075,7 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestedWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn RequestedWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::RequestedWriteSpeed(this) { Ok(ok__) => { @@ -1409,10 +1085,7 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestedRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn RequestedRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::RequestedRotationTypeIsPureCAV(this) { Ok(ok__) => { @@ -1422,10 +1095,7 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn CurrentWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::CurrentWriteSpeed(this) { Ok(ok__) => { @@ -1435,10 +1105,7 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn CurrentRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::CurrentRotationTypeIsPureCAV(this) { Ok(ok__) => { @@ -1448,10 +1115,7 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedWriteSpeeds(this: *mut core::ffi::c_void, supportedspeeds: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn SupportedWriteSpeeds(this: *mut core::ffi::c_void, supportedspeeds: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::SupportedWriteSpeeds(this) { Ok(ok__) => { @@ -1461,10 +1125,7 @@ impl IDiscFormat2RawCD_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedWriteSpeedDescriptors(this: *mut core::ffi::c_void, supportedspeeddescriptors: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCD_Impl, - { + unsafe extern "system" fn SupportedWriteSpeedDescriptors(this: *mut core::ffi::c_void, supportedspeeddescriptors: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCD_Impl::SupportedWriteSpeedDescriptors(this) { Ok(ok__) => { @@ -1516,14 +1177,8 @@ pub trait IDiscFormat2RawCDEventArgs_Impl: Sized + IWriteEngine2EventArgs_Impl { impl windows_core::RuntimeName for IDiscFormat2RawCDEventArgs {} #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2RawCDEventArgs_Vtbl { - pub const fn new() -> IDiscFormat2RawCDEventArgs_Vtbl - where - Identity: IDiscFormat2RawCDEventArgs_Impl, - { - unsafe extern "system" fn CurrentAction(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_RAW_CD_WRITE_ACTION) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCDEventArgs_Impl, - { + pub const fn new() -> IDiscFormat2RawCDEventArgs_Vtbl { + unsafe extern "system" fn CurrentAction(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_RAW_CD_WRITE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCDEventArgs_Impl::CurrentAction(this) { Ok(ok__) => { @@ -1533,10 +1188,7 @@ impl IDiscFormat2RawCDEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ElapsedTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCDEventArgs_Impl, - { + unsafe extern "system" fn ElapsedTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCDEventArgs_Impl::ElapsedTime(this) { Ok(ok__) => { @@ -1546,10 +1198,7 @@ impl IDiscFormat2RawCDEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemainingTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2RawCDEventArgs_Impl, - { + unsafe extern "system" fn RemainingTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2RawCDEventArgs_Impl::RemainingTime(this) { Ok(ok__) => { @@ -1602,56 +1251,32 @@ pub trait IDiscFormat2TrackAtOnce_Impl: Sized + IDiscFormat2_Impl { impl windows_core::RuntimeName for IDiscFormat2TrackAtOnce {} #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2TrackAtOnce_Vtbl { - pub const fn new() -> IDiscFormat2TrackAtOnce_Vtbl - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { - unsafe extern "system" fn PrepareMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + pub const fn new() -> IDiscFormat2TrackAtOnce_Vtbl { + unsafe extern "system" fn PrepareMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2TrackAtOnce_Impl::PrepareMedia(this).into() } - unsafe extern "system" fn AddAudioTrack(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn AddAudioTrack(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2TrackAtOnce_Impl::AddAudioTrack(this, windows_core::from_raw_borrowed(&data)).into() } - unsafe extern "system" fn CancelAddTrack(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn CancelAddTrack(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2TrackAtOnce_Impl::CancelAddTrack(this).into() } - unsafe extern "system" fn ReleaseMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn ReleaseMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2TrackAtOnce_Impl::ReleaseMedia(this).into() } - unsafe extern "system" fn SetWriteSpeed(this: *mut core::ffi::c_void, requestedsectorspersecond: i32, rotationtypeispurecav: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn SetWriteSpeed(this: *mut core::ffi::c_void, requestedsectorspersecond: i32, rotationtypeispurecav: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2TrackAtOnce_Impl::SetWriteSpeed(this, core::mem::transmute_copy(&requestedsectorspersecond), core::mem::transmute_copy(&rotationtypeispurecav)).into() } - unsafe extern "system" fn SetRecorder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn SetRecorder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2TrackAtOnce_Impl::SetRecorder(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn Recorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn Recorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::Recorder(this) { Ok(ok__) => { @@ -1661,17 +1286,11 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn SetBufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2TrackAtOnce_Impl::SetBufferUnderrunFreeDisabled(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn BufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn BufferUnderrunFreeDisabled(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::BufferUnderrunFreeDisabled(this) { Ok(ok__) => { @@ -1681,10 +1300,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfExistingTracks(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn NumberOfExistingTracks(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::NumberOfExistingTracks(this) { Ok(ok__) => { @@ -1694,10 +1310,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn TotalSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::TotalSectorsOnMedia(this) { Ok(ok__) => { @@ -1707,10 +1320,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FreeSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn FreeSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::FreeSectorsOnMedia(this) { Ok(ok__) => { @@ -1720,10 +1330,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UsedSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn UsedSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::UsedSectorsOnMedia(this) { Ok(ok__) => { @@ -1733,17 +1340,11 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDoNotFinalizeMedia(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn SetDoNotFinalizeMedia(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2TrackAtOnce_Impl::SetDoNotFinalizeMedia(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn DoNotFinalizeMedia(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn DoNotFinalizeMedia(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::DoNotFinalizeMedia(this) { Ok(ok__) => { @@ -1753,10 +1354,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpectedTableOfContents(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn ExpectedTableOfContents(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::ExpectedTableOfContents(this) { Ok(ok__) => { @@ -1766,10 +1364,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentPhysicalMediaType(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn CurrentPhysicalMediaType(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::CurrentPhysicalMediaType(this) { Ok(ok__) => { @@ -1779,17 +1374,11 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn SetClientName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscFormat2TrackAtOnce_Impl::SetClientName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ClientName(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn ClientName(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::ClientName(this) { Ok(ok__) => { @@ -1799,10 +1388,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestedWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn RequestedWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::RequestedWriteSpeed(this) { Ok(ok__) => { @@ -1812,10 +1398,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestedRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn RequestedRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::RequestedRotationTypeIsPureCAV(this) { Ok(ok__) => { @@ -1825,10 +1408,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn CurrentWriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::CurrentWriteSpeed(this) { Ok(ok__) => { @@ -1838,10 +1418,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn CurrentRotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::CurrentRotationTypeIsPureCAV(this) { Ok(ok__) => { @@ -1851,10 +1428,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedWriteSpeeds(this: *mut core::ffi::c_void, supportedspeeds: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn SupportedWriteSpeeds(this: *mut core::ffi::c_void, supportedspeeds: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::SupportedWriteSpeeds(this) { Ok(ok__) => { @@ -1864,10 +1438,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedWriteSpeedDescriptors(this: *mut core::ffi::c_void, supportedspeeddescriptors: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnce_Impl, - { + unsafe extern "system" fn SupportedWriteSpeedDescriptors(this: *mut core::ffi::c_void, supportedspeeddescriptors: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnce_Impl::SupportedWriteSpeedDescriptors(this) { Ok(ok__) => { @@ -1921,14 +1492,8 @@ pub trait IDiscFormat2TrackAtOnceEventArgs_Impl: Sized + IWriteEngine2EventArgs_ impl windows_core::RuntimeName for IDiscFormat2TrackAtOnceEventArgs {} #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2TrackAtOnceEventArgs_Vtbl { - pub const fn new() -> IDiscFormat2TrackAtOnceEventArgs_Vtbl - where - Identity: IDiscFormat2TrackAtOnceEventArgs_Impl, - { - unsafe extern "system" fn CurrentTrackNumber(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnceEventArgs_Impl, - { + pub const fn new() -> IDiscFormat2TrackAtOnceEventArgs_Vtbl { + unsafe extern "system" fn CurrentTrackNumber(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnceEventArgs_Impl::CurrentTrackNumber(this) { Ok(ok__) => { @@ -1938,10 +1503,7 @@ impl IDiscFormat2TrackAtOnceEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAction(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_TAO_WRITE_ACTION) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnceEventArgs_Impl, - { + unsafe extern "system" fn CurrentAction(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_TAO_WRITE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnceEventArgs_Impl::CurrentAction(this) { Ok(ok__) => { @@ -1951,10 +1513,7 @@ impl IDiscFormat2TrackAtOnceEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ElapsedTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnceEventArgs_Impl, - { + unsafe extern "system" fn ElapsedTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnceEventArgs_Impl::ElapsedTime(this) { Ok(ok__) => { @@ -1964,10 +1523,7 @@ impl IDiscFormat2TrackAtOnceEventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemainingTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscFormat2TrackAtOnceEventArgs_Impl, - { + unsafe extern "system" fn RemainingTime(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscFormat2TrackAtOnceEventArgs_Impl::RemainingTime(this) { Ok(ok__) => { @@ -1989,7 +1545,7 @@ impl IDiscFormat2TrackAtOnceEventArgs_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDiscMaster_Impl: Sized { +pub trait IDiscMaster_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self) -> windows_core::Result<()>; fn EnumDiscMasterFormats(&self) -> windows_core::Result; fn GetActiveDiscMasterFormat(&self) -> windows_core::Result; @@ -2005,21 +1561,12 @@ pub trait IDiscMaster_Impl: Sized { } impl windows_core::RuntimeName for IDiscMaster {} impl IDiscMaster_Vtbl { - pub const fn new() -> IDiscMaster_Vtbl - where - Identity: IDiscMaster_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + pub const fn new() -> IDiscMaster_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMaster_Impl::Open(this).into() } - unsafe extern "system" fn EnumDiscMasterFormats(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn EnumDiscMasterFormats(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscMaster_Impl::EnumDiscMasterFormats(this) { Ok(ok__) => { @@ -2029,10 +1576,7 @@ impl IDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActiveDiscMasterFormat(this: *mut core::ffi::c_void, lpiid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn GetActiveDiscMasterFormat(this: *mut core::ffi::c_void, lpiid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscMaster_Impl::GetActiveDiscMasterFormat(this) { Ok(ok__) => { @@ -2042,17 +1586,11 @@ impl IDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActiveDiscMasterFormat(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn SetActiveDiscMasterFormat(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMaster_Impl::SetActiveDiscMasterFormat(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn EnumDiscRecorders(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn EnumDiscRecorders(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscMaster_Impl::EnumDiscRecorders(this) { Ok(ok__) => { @@ -2062,10 +1600,7 @@ impl IDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActiveDiscRecorder(this: *mut core::ffi::c_void, pprecorder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn GetActiveDiscRecorder(this: *mut core::ffi::c_void, pprecorder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscMaster_Impl::GetActiveDiscRecorder(this) { Ok(ok__) => { @@ -2075,24 +1610,15 @@ impl IDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActiveDiscRecorder(this: *mut core::ffi::c_void, precorder: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn SetActiveDiscRecorder(this: *mut core::ffi::c_void, precorder: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMaster_Impl::SetActiveDiscRecorder(this, windows_core::from_raw_borrowed(&precorder)).into() } - unsafe extern "system" fn ClearFormatContent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn ClearFormatContent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMaster_Impl::ClearFormatContent(this).into() } - unsafe extern "system" fn ProgressAdvise(this: *mut core::ffi::c_void, pevents: *mut core::ffi::c_void, pvcookie: *mut usize) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn ProgressAdvise(this: *mut core::ffi::c_void, pevents: *mut core::ffi::c_void, pvcookie: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscMaster_Impl::ProgressAdvise(this, windows_core::from_raw_borrowed(&pevents)) { Ok(ok__) => { @@ -2102,24 +1628,15 @@ impl IDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProgressUnadvise(this: *mut core::ffi::c_void, vcookie: usize) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn ProgressUnadvise(this: *mut core::ffi::c_void, vcookie: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMaster_Impl::ProgressUnadvise(this, core::mem::transmute_copy(&vcookie)).into() } - unsafe extern "system" fn RecordDisc(this: *mut core::ffi::c_void, bsimulate: u8, bejectafterburn: u8) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn RecordDisc(this: *mut core::ffi::c_void, bsimulate: u8, bejectafterburn: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMaster_Impl::RecordDisc(this, core::mem::transmute_copy(&bsimulate), core::mem::transmute_copy(&bejectafterburn)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscMaster_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMaster_Impl::Close(this).into() } @@ -2154,14 +1671,8 @@ pub trait IDiscMaster2_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDiscMaster2 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IDiscMaster2_Vtbl { - pub const fn new() -> IDiscMaster2_Vtbl - where - Identity: IDiscMaster2_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscMaster2_Impl, - { + pub const fn new() -> IDiscMaster2_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscMaster2_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2171,10 +1682,7 @@ impl IDiscMaster2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscMaster2_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscMaster2_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2184,10 +1692,7 @@ impl IDiscMaster2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscMaster2_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscMaster2_Impl::Count(this) { Ok(ok__) => { @@ -2197,10 +1702,7 @@ impl IDiscMaster2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSupportedEnvironment(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscMaster2_Impl, - { + unsafe extern "system" fn IsSupportedEnvironment(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscMaster2_Impl::IsSupportedEnvironment(this) { Ok(ok__) => { @@ -2222,7 +1724,7 @@ impl IDiscMaster2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDiscMasterProgressEvents_Impl: Sized { +pub trait IDiscMasterProgressEvents_Impl: Sized + windows_core::IUnknownImpl { fn QueryCancel(&self) -> windows_core::Result; fn NotifyPnPActivity(&self) -> windows_core::Result<()>; fn NotifyAddProgress(&self, ncompletedsteps: i32, ntotalsteps: i32) -> windows_core::Result<()>; @@ -2235,14 +1737,8 @@ pub trait IDiscMasterProgressEvents_Impl: Sized { } impl windows_core::RuntimeName for IDiscMasterProgressEvents {} impl IDiscMasterProgressEvents_Vtbl { - pub const fn new() -> IDiscMasterProgressEvents_Vtbl - where - Identity: IDiscMasterProgressEvents_Impl, - { - unsafe extern "system" fn QueryCancel(this: *mut core::ffi::c_void, pbcancel: *mut u8) -> windows_core::HRESULT - where - Identity: IDiscMasterProgressEvents_Impl, - { + pub const fn new() -> IDiscMasterProgressEvents_Vtbl { + unsafe extern "system" fn QueryCancel(this: *mut core::ffi::c_void, pbcancel: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscMasterProgressEvents_Impl::QueryCancel(this) { Ok(ok__) => { @@ -2252,59 +1748,35 @@ impl IDiscMasterProgressEvents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyPnPActivity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscMasterProgressEvents_Impl, - { + unsafe extern "system" fn NotifyPnPActivity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMasterProgressEvents_Impl::NotifyPnPActivity(this).into() } - unsafe extern "system" fn NotifyAddProgress(this: *mut core::ffi::c_void, ncompletedsteps: i32, ntotalsteps: i32) -> windows_core::HRESULT - where - Identity: IDiscMasterProgressEvents_Impl, - { + unsafe extern "system" fn NotifyAddProgress(this: *mut core::ffi::c_void, ncompletedsteps: i32, ntotalsteps: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMasterProgressEvents_Impl::NotifyAddProgress(this, core::mem::transmute_copy(&ncompletedsteps), core::mem::transmute_copy(&ntotalsteps)).into() } - unsafe extern "system" fn NotifyBlockProgress(this: *mut core::ffi::c_void, ncompleted: i32, ntotal: i32) -> windows_core::HRESULT - where - Identity: IDiscMasterProgressEvents_Impl, - { + unsafe extern "system" fn NotifyBlockProgress(this: *mut core::ffi::c_void, ncompleted: i32, ntotal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMasterProgressEvents_Impl::NotifyBlockProgress(this, core::mem::transmute_copy(&ncompleted), core::mem::transmute_copy(&ntotal)).into() } - unsafe extern "system" fn NotifyTrackProgress(this: *mut core::ffi::c_void, ncurrenttrack: i32, ntotaltracks: i32) -> windows_core::HRESULT - where - Identity: IDiscMasterProgressEvents_Impl, - { + unsafe extern "system" fn NotifyTrackProgress(this: *mut core::ffi::c_void, ncurrenttrack: i32, ntotaltracks: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMasterProgressEvents_Impl::NotifyTrackProgress(this, core::mem::transmute_copy(&ncurrenttrack), core::mem::transmute_copy(&ntotaltracks)).into() } - unsafe extern "system" fn NotifyPreparingBurn(this: *mut core::ffi::c_void, nestimatedseconds: i32) -> windows_core::HRESULT - where - Identity: IDiscMasterProgressEvents_Impl, - { + unsafe extern "system" fn NotifyPreparingBurn(this: *mut core::ffi::c_void, nestimatedseconds: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMasterProgressEvents_Impl::NotifyPreparingBurn(this, core::mem::transmute_copy(&nestimatedseconds)).into() } - unsafe extern "system" fn NotifyClosingDisc(this: *mut core::ffi::c_void, nestimatedseconds: i32) -> windows_core::HRESULT - where - Identity: IDiscMasterProgressEvents_Impl, - { + unsafe extern "system" fn NotifyClosingDisc(this: *mut core::ffi::c_void, nestimatedseconds: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMasterProgressEvents_Impl::NotifyClosingDisc(this, core::mem::transmute_copy(&nestimatedseconds)).into() } - unsafe extern "system" fn NotifyBurnComplete(this: *mut core::ffi::c_void, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IDiscMasterProgressEvents_Impl, - { + unsafe extern "system" fn NotifyBurnComplete(this: *mut core::ffi::c_void, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMasterProgressEvents_Impl::NotifyBurnComplete(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn NotifyEraseComplete(this: *mut core::ffi::c_void, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IDiscMasterProgressEvents_Impl, - { + unsafe extern "system" fn NotifyEraseComplete(this: *mut core::ffi::c_void, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscMasterProgressEvents_Impl::NotifyEraseComplete(this, core::mem::transmute_copy(&status)).into() } @@ -2326,7 +1798,7 @@ impl IDiscMasterProgressEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IDiscRecorder_Impl: Sized { +pub trait IDiscRecorder_Impl: Sized + windows_core::IUnknownImpl { 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; @@ -2347,28 +1819,16 @@ pub trait IDiscRecorder_Impl: Sized { impl windows_core::RuntimeName for IDiscRecorder {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IDiscRecorder_Vtbl { - pub const fn new() -> IDiscRecorder_Vtbl - where - Identity: IDiscRecorder_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pbyuniqueid: *const u8, nulidsize: u32, nuldrivenumber: u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + pub const fn new() -> IDiscRecorder_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pbyuniqueid: *const u8, nulidsize: u32, nuldrivenumber: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder_Impl::Init(this, core::mem::transmute_copy(&pbyuniqueid), core::mem::transmute_copy(&nulidsize), core::mem::transmute_copy(&nuldrivenumber)).into() } - unsafe extern "system" fn GetRecorderGUID(this: *mut core::ffi::c_void, pbyuniqueid: *mut u8, ulbuffersize: u32, pulreturnsizerequired: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn GetRecorderGUID(this: *mut core::ffi::c_void, pbyuniqueid: *mut u8, ulbuffersize: u32, pulreturnsizerequired: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder_Impl::GetRecorderGUID(this, core::mem::transmute_copy(&pbyuniqueid), core::mem::transmute_copy(&ulbuffersize), core::mem::transmute_copy(&pulreturnsizerequired)).into() } - unsafe extern "system" fn GetRecorderType(this: *mut core::ffi::c_void, ftypecode: *mut RECORDER_TYPES) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn GetRecorderType(this: *mut core::ffi::c_void, ftypecode: *mut RECORDER_TYPES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder_Impl::GetRecorderType(this) { Ok(ok__) => { @@ -2378,17 +1838,11 @@ impl IDiscRecorder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayNames(this: *mut core::ffi::c_void, pbstrvendorid: *mut core::mem::MaybeUninit, pbstrproductid: *mut core::mem::MaybeUninit, pbstrrevision: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn GetDisplayNames(this: *mut core::ffi::c_void, pbstrvendorid: *mut core::mem::MaybeUninit, pbstrproductid: *mut core::mem::MaybeUninit, pbstrrevision: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder_Impl::GetDisplayNames(this, core::mem::transmute_copy(&pbstrvendorid), core::mem::transmute_copy(&pbstrproductid), core::mem::transmute_copy(&pbstrrevision)).into() } - unsafe extern "system" fn GetBasePnPID(this: *mut core::ffi::c_void, pbstrbasepnpid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn GetBasePnPID(this: *mut core::ffi::c_void, pbstrbasepnpid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder_Impl::GetBasePnPID(this) { Ok(ok__) => { @@ -2398,10 +1852,7 @@ impl IDiscRecorder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pbstrpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pbstrpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder_Impl::GetPath(this) { Ok(ok__) => { @@ -2411,10 +1862,7 @@ impl IDiscRecorder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecorderProperties(this: *mut core::ffi::c_void, pppropstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn GetRecorderProperties(this: *mut core::ffi::c_void, pppropstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder_Impl::GetRecorderProperties(this) { Ok(ok__) => { @@ -2424,17 +1872,11 @@ impl IDiscRecorder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRecorderProperties(this: *mut core::ffi::c_void, ppropstg: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn SetRecorderProperties(this: *mut core::ffi::c_void, ppropstg: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder_Impl::SetRecorderProperties(this, windows_core::from_raw_borrowed(&ppropstg)).into() } - unsafe extern "system" fn GetRecorderState(this: *mut core::ffi::c_void, puldevstateflags: *mut DISC_RECORDER_STATE_FLAGS) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn GetRecorderState(this: *mut core::ffi::c_void, puldevstateflags: *mut DISC_RECORDER_STATE_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder_Impl::GetRecorderState(this) { Ok(ok__) => { @@ -2444,45 +1886,27 @@ impl IDiscRecorder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenExclusive(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn OpenExclusive(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder_Impl::OpenExclusive(this).into() } - unsafe extern "system" fn QueryMediaType(this: *mut core::ffi::c_void, fmediatype: *mut MEDIA_TYPES, fmediaflags: *mut MEDIA_FLAGS) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn QueryMediaType(this: *mut core::ffi::c_void, fmediatype: *mut MEDIA_TYPES, fmediaflags: *mut MEDIA_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder_Impl::QueryMediaType(this, core::mem::transmute_copy(&fmediatype), core::mem::transmute_copy(&fmediaflags)).into() } - unsafe extern "system" fn QueryMediaInfo(this: *mut core::ffi::c_void, pbsessions: *mut u8, pblasttrack: *mut u8, ulstartaddress: *mut u32, ulnextwritable: *mut u32, ulfreeblocks: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn QueryMediaInfo(this: *mut core::ffi::c_void, pbsessions: *mut u8, pblasttrack: *mut u8, ulstartaddress: *mut u32, ulnextwritable: *mut u32, ulfreeblocks: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder_Impl::QueryMediaInfo(this, core::mem::transmute_copy(&pbsessions), core::mem::transmute_copy(&pblasttrack), core::mem::transmute_copy(&ulstartaddress), core::mem::transmute_copy(&ulnextwritable), core::mem::transmute_copy(&ulfreeblocks)).into() } - unsafe extern "system" fn Eject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn Eject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder_Impl::Eject(this).into() } - unsafe extern "system" fn Erase(this: *mut core::ffi::c_void, bfullerase: u8) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn Erase(this: *mut core::ffi::c_void, bfullerase: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder_Impl::Erase(this, core::mem::transmute_copy(&bfullerase)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscRecorder_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder_Impl::Close(this).into() } @@ -2537,63 +1961,36 @@ pub trait IDiscRecorder2_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IDiscRecorder2 {} #[cfg(feature = "Win32_System_Com")] impl IDiscRecorder2_Vtbl { - pub const fn new() -> IDiscRecorder2_Vtbl - where - Identity: IDiscRecorder2_Impl, - { - unsafe extern "system" fn EjectMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + pub const fn new() -> IDiscRecorder2_Vtbl { + unsafe extern "system" fn EjectMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2_Impl::EjectMedia(this).into() } - unsafe extern "system" fn CloseTray(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn CloseTray(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2_Impl::CloseTray(this).into() } - unsafe extern "system" fn AcquireExclusiveAccess(this: *mut core::ffi::c_void, force: super::super::Foundation::VARIANT_BOOL, __midl__idiscrecorder20000: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn AcquireExclusiveAccess(this: *mut core::ffi::c_void, force: super::super::Foundation::VARIANT_BOOL, __midl__idiscrecorder20000: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2_Impl::AcquireExclusiveAccess(this, core::mem::transmute_copy(&force), core::mem::transmute(&__midl__idiscrecorder20000)).into() } - unsafe extern "system" fn ReleaseExclusiveAccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn ReleaseExclusiveAccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2_Impl::ReleaseExclusiveAccess(this).into() } - unsafe extern "system" fn DisableMcn(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn DisableMcn(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2_Impl::DisableMcn(this).into() } - unsafe extern "system" fn EnableMcn(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn EnableMcn(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2_Impl::EnableMcn(this).into() } - unsafe extern "system" fn InitializeDiscRecorder(this: *mut core::ffi::c_void, recorderuniqueid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn InitializeDiscRecorder(this: *mut core::ffi::c_void, recorderuniqueid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2_Impl::InitializeDiscRecorder(this, core::mem::transmute(&recorderuniqueid)).into() } - unsafe extern "system" fn ActiveDiscRecorder(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn ActiveDiscRecorder(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::ActiveDiscRecorder(this) { Ok(ok__) => { @@ -2603,10 +2000,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VendorId(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn VendorId(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::VendorId(this) { Ok(ok__) => { @@ -2616,10 +2010,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProductId(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn ProductId(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::ProductId(this) { Ok(ok__) => { @@ -2629,10 +2020,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProductRevision(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn ProductRevision(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::ProductRevision(this) { Ok(ok__) => { @@ -2642,10 +2030,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumeName(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn VolumeName(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::VolumeName(this) { Ok(ok__) => { @@ -2655,10 +2040,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumePathNames(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn VolumePathNames(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::VolumePathNames(this) { Ok(ok__) => { @@ -2668,10 +2050,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceCanLoadMedia(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn DeviceCanLoadMedia(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::DeviceCanLoadMedia(this) { Ok(ok__) => { @@ -2681,10 +2060,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LegacyDeviceNumber(this: *mut core::ffi::c_void, legacydevicenumber: *mut i32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn LegacyDeviceNumber(this: *mut core::ffi::c_void, legacydevicenumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::LegacyDeviceNumber(this) { Ok(ok__) => { @@ -2694,10 +2070,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedFeaturePages(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn SupportedFeaturePages(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::SupportedFeaturePages(this) { Ok(ok__) => { @@ -2707,10 +2080,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentFeaturePages(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn CurrentFeaturePages(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::CurrentFeaturePages(this) { Ok(ok__) => { @@ -2720,10 +2090,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedProfiles(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn SupportedProfiles(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::SupportedProfiles(this) { Ok(ok__) => { @@ -2733,10 +2100,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentProfiles(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn CurrentProfiles(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::CurrentProfiles(this) { Ok(ok__) => { @@ -2746,10 +2110,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedModePages(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn SupportedModePages(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::SupportedModePages(this) { Ok(ok__) => { @@ -2759,10 +2120,7 @@ impl IDiscRecorder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExclusiveAccessOwner(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDiscRecorder2_Impl, - { + unsafe extern "system" fn ExclusiveAccessOwner(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2_Impl::ExclusiveAccessOwner(this) { Ok(ok__) => { @@ -2801,7 +2159,7 @@ impl IDiscRecorder2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDiscRecorder2Ex_Impl: Sized { +pub trait IDiscRecorder2Ex_Impl: Sized + windows_core::IUnknownImpl { fn SendCommandNoData(&self, cdb: *const u8, cdbsize: u32, sensebuffer: *mut u8, timeout: u32) -> windows_core::Result<()>; fn SendCommandSendDataToDevice(&self, cdb: *const u8, cdbsize: u32, sensebuffer: *mut u8, timeout: u32, buffer: *const u8, buffersize: u32) -> windows_core::Result<()>; fn SendCommandGetDataFromDevice(&self, cdb: *const u8, cdbsize: u32, sensebuffer: *mut u8, timeout: u32, buffer: *mut u8, buffersize: u32, bufferfetched: *mut u32) -> windows_core::Result<()>; @@ -2823,119 +2181,68 @@ pub trait IDiscRecorder2Ex_Impl: Sized { } impl windows_core::RuntimeName for IDiscRecorder2Ex {} impl IDiscRecorder2Ex_Vtbl { - pub const fn new() -> IDiscRecorder2Ex_Vtbl - where - Identity: IDiscRecorder2Ex_Impl, - { - unsafe extern "system" fn SendCommandNoData(this: *mut core::ffi::c_void, cdb: *const u8, cdbsize: u32, sensebuffer: *mut u8, timeout: u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + pub const fn new() -> IDiscRecorder2Ex_Vtbl { + unsafe extern "system" fn SendCommandNoData(this: *mut core::ffi::c_void, cdb: *const u8, cdbsize: u32, sensebuffer: *mut u8, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::SendCommandNoData(this, core::mem::transmute_copy(&cdb), core::mem::transmute_copy(&cdbsize), core::mem::transmute_copy(&sensebuffer), core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn SendCommandSendDataToDevice(this: *mut core::ffi::c_void, cdb: *const u8, cdbsize: u32, sensebuffer: *mut u8, timeout: u32, buffer: *const u8, buffersize: u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn SendCommandSendDataToDevice(this: *mut core::ffi::c_void, cdb: *const u8, cdbsize: u32, sensebuffer: *mut u8, timeout: u32, buffer: *const u8, buffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::SendCommandSendDataToDevice(this, core::mem::transmute_copy(&cdb), core::mem::transmute_copy(&cdbsize), core::mem::transmute_copy(&sensebuffer), core::mem::transmute_copy(&timeout), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize)).into() } - unsafe extern "system" fn SendCommandGetDataFromDevice(this: *mut core::ffi::c_void, cdb: *const u8, cdbsize: u32, sensebuffer: *mut u8, timeout: u32, buffer: *mut u8, buffersize: u32, bufferfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn SendCommandGetDataFromDevice(this: *mut core::ffi::c_void, cdb: *const u8, cdbsize: u32, sensebuffer: *mut u8, timeout: u32, buffer: *mut u8, buffersize: u32, bufferfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::SendCommandGetDataFromDevice(this, core::mem::transmute_copy(&cdb), core::mem::transmute_copy(&cdbsize), core::mem::transmute_copy(&sensebuffer), core::mem::transmute_copy(&timeout), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bufferfetched)).into() } - unsafe extern "system" fn ReadDvdStructure(this: *mut core::ffi::c_void, format: u32, address: u32, layer: u32, agid: u32, data: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn ReadDvdStructure(this: *mut core::ffi::c_void, format: u32, address: u32, layer: u32, agid: u32, data: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::ReadDvdStructure(this, core::mem::transmute_copy(&format), core::mem::transmute_copy(&address), core::mem::transmute_copy(&layer), core::mem::transmute_copy(&agid), core::mem::transmute_copy(&data), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn SendDvdStructure(this: *mut core::ffi::c_void, format: u32, data: *const u8, count: u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn SendDvdStructure(this: *mut core::ffi::c_void, format: u32, data: *const u8, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::SendDvdStructure(this, core::mem::transmute_copy(&format), core::mem::transmute_copy(&data), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn GetAdapterDescriptor(this: *mut core::ffi::c_void, data: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetAdapterDescriptor(this: *mut core::ffi::c_void, data: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetAdapterDescriptor(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn GetDeviceDescriptor(this: *mut core::ffi::c_void, data: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetDeviceDescriptor(this: *mut core::ffi::c_void, data: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetDeviceDescriptor(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn GetDiscInformation(this: *mut core::ffi::c_void, discinformation: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetDiscInformation(this: *mut core::ffi::c_void, discinformation: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetDiscInformation(this, core::mem::transmute_copy(&discinformation), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn GetTrackInformation(this: *mut core::ffi::c_void, address: u32, addresstype: IMAPI_READ_TRACK_ADDRESS_TYPE, trackinformation: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetTrackInformation(this: *mut core::ffi::c_void, address: u32, addresstype: IMAPI_READ_TRACK_ADDRESS_TYPE, trackinformation: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetTrackInformation(this, core::mem::transmute_copy(&address), core::mem::transmute_copy(&addresstype), core::mem::transmute_copy(&trackinformation), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn GetFeaturePage(this: *mut core::ffi::c_void, requestedfeature: IMAPI_FEATURE_PAGE_TYPE, currentfeatureonly: super::super::Foundation::BOOLEAN, featuredata: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetFeaturePage(this: *mut core::ffi::c_void, requestedfeature: IMAPI_FEATURE_PAGE_TYPE, currentfeatureonly: super::super::Foundation::BOOLEAN, featuredata: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetFeaturePage(this, core::mem::transmute_copy(&requestedfeature), core::mem::transmute_copy(¤tfeatureonly), core::mem::transmute_copy(&featuredata), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn GetModePage(this: *mut core::ffi::c_void, requestedmodepage: IMAPI_MODE_PAGE_TYPE, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, modepagedata: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetModePage(this: *mut core::ffi::c_void, requestedmodepage: IMAPI_MODE_PAGE_TYPE, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, modepagedata: *mut *mut u8, bytesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetModePage(this, core::mem::transmute_copy(&requestedmodepage), core::mem::transmute_copy(&requesttype), core::mem::transmute_copy(&modepagedata), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn SetModePage(this: *mut core::ffi::c_void, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, data: *const u8, bytesize: u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn SetModePage(this: *mut core::ffi::c_void, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, data: *const u8, bytesize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::SetModePage(this, core::mem::transmute_copy(&requesttype), core::mem::transmute_copy(&data), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn GetSupportedFeaturePages(this: *mut core::ffi::c_void, currentfeatureonly: super::super::Foundation::BOOLEAN, featuredata: *mut *mut IMAPI_FEATURE_PAGE_TYPE, bytesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetSupportedFeaturePages(this: *mut core::ffi::c_void, currentfeatureonly: super::super::Foundation::BOOLEAN, featuredata: *mut *mut IMAPI_FEATURE_PAGE_TYPE, bytesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetSupportedFeaturePages(this, core::mem::transmute_copy(¤tfeatureonly), core::mem::transmute_copy(&featuredata), core::mem::transmute_copy(&bytesize)).into() } - unsafe extern "system" fn GetSupportedProfiles(this: *mut core::ffi::c_void, currentonly: super::super::Foundation::BOOLEAN, profiletypes: *mut *mut IMAPI_PROFILE_TYPE, validprofiles: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetSupportedProfiles(this: *mut core::ffi::c_void, currentonly: super::super::Foundation::BOOLEAN, profiletypes: *mut *mut IMAPI_PROFILE_TYPE, validprofiles: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetSupportedProfiles(this, core::mem::transmute_copy(¤tonly), core::mem::transmute_copy(&profiletypes), core::mem::transmute_copy(&validprofiles)).into() } - unsafe extern "system" fn GetSupportedModePages(this: *mut core::ffi::c_void, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, modepagetypes: *mut *mut IMAPI_MODE_PAGE_TYPE, validpages: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetSupportedModePages(this: *mut core::ffi::c_void, requesttype: IMAPI_MODE_PAGE_REQUEST_TYPE, modepagetypes: *mut *mut IMAPI_MODE_PAGE_TYPE, validpages: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiscRecorder2Ex_Impl::GetSupportedModePages(this, core::mem::transmute_copy(&requesttype), core::mem::transmute_copy(&modepagetypes), core::mem::transmute_copy(&validpages)).into() } - unsafe extern "system" fn GetByteAlignmentMask(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetByteAlignmentMask(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2Ex_Impl::GetByteAlignmentMask(this) { Ok(ok__) => { @@ -2945,10 +2252,7 @@ impl IDiscRecorder2Ex_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaximumNonPageAlignedTransferSize(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetMaximumNonPageAlignedTransferSize(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2Ex_Impl::GetMaximumNonPageAlignedTransferSize(this) { Ok(ok__) => { @@ -2958,10 +2262,7 @@ impl IDiscRecorder2Ex_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaximumPageAlignedTransferSize(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT - where - Identity: IDiscRecorder2Ex_Impl, - { + unsafe extern "system" fn GetMaximumPageAlignedTransferSize(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDiscRecorder2Ex_Impl::GetMaximumPageAlignedTransferSize(this) { Ok(ok__) => { @@ -2997,7 +2298,7 @@ impl IDiscRecorder2Ex_Vtbl { iid == &::IID } } -pub trait IEnumDiscMasterFormats_Impl: Sized { +pub trait IEnumDiscMasterFormats_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cformats: u32, lpiidformatid: *mut windows_core::GUID, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cformats: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -3005,35 +2306,20 @@ pub trait IEnumDiscMasterFormats_Impl: Sized { } impl windows_core::RuntimeName for IEnumDiscMasterFormats {} impl IEnumDiscMasterFormats_Vtbl { - pub const fn new() -> IEnumDiscMasterFormats_Vtbl - where - Identity: IEnumDiscMasterFormats_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cformats: u32, lpiidformatid: *mut windows_core::GUID, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDiscMasterFormats_Impl, - { + pub const fn new() -> IEnumDiscMasterFormats_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cformats: u32, lpiidformatid: *mut windows_core::GUID, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDiscMasterFormats_Impl::Next(this, core::mem::transmute_copy(&cformats), core::mem::transmute_copy(&lpiidformatid), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cformats: u32) -> windows_core::HRESULT - where - Identity: IEnumDiscMasterFormats_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cformats: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDiscMasterFormats_Impl::Skip(this, core::mem::transmute_copy(&cformats)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDiscMasterFormats_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDiscMasterFormats_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDiscMasterFormats_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDiscMasterFormats_Impl::Clone(this) { Ok(ok__) => { @@ -3055,7 +2341,7 @@ impl IEnumDiscMasterFormats_Vtbl { iid == &::IID } } -pub trait IEnumDiscRecorders_Impl: Sized { +pub trait IEnumDiscRecorders_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, crecorders: u32, pprecorder: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, crecorders: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -3063,35 +2349,20 @@ pub trait IEnumDiscRecorders_Impl: Sized { } impl windows_core::RuntimeName for IEnumDiscRecorders {} impl IEnumDiscRecorders_Vtbl { - pub const fn new() -> IEnumDiscRecorders_Vtbl - where - Identity: IEnumDiscRecorders_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crecorders: u32, pprecorder: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDiscRecorders_Impl, - { + pub const fn new() -> IEnumDiscRecorders_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, crecorders: u32, pprecorder: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDiscRecorders_Impl::Next(this, core::mem::transmute_copy(&crecorders), core::mem::transmute_copy(&pprecorder), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, crecorders: u32) -> windows_core::HRESULT - where - Identity: IEnumDiscRecorders_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, crecorders: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDiscRecorders_Impl::Skip(this, core::mem::transmute_copy(&crecorders)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDiscRecorders_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDiscRecorders_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDiscRecorders_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDiscRecorders_Impl::Clone(this) { Ok(ok__) => { @@ -3114,7 +2385,7 @@ impl IEnumDiscRecorders_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumFsiItems_Impl: Sized { +pub trait IEnumFsiItems_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -3124,35 +2395,20 @@ pub trait IEnumFsiItems_Impl: Sized { impl windows_core::RuntimeName for IEnumFsiItems {} #[cfg(feature = "Win32_System_Com")] impl IEnumFsiItems_Vtbl { - pub const fn new() -> IEnumFsiItems_Vtbl - where - Identity: IEnumFsiItems_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumFsiItems_Impl, - { + pub const fn new() -> IEnumFsiItems_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFsiItems_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumFsiItems_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFsiItems_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumFsiItems_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFsiItems_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumFsiItems_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumFsiItems_Impl::Clone(this) { Ok(ok__) => { @@ -3175,7 +2431,7 @@ impl IEnumFsiItems_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumProgressItems_Impl: Sized { +pub trait IEnumProgressItems_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -3185,35 +2441,20 @@ pub trait IEnumProgressItems_Impl: Sized { impl windows_core::RuntimeName for IEnumProgressItems {} #[cfg(feature = "Win32_System_Com")] impl IEnumProgressItems_Vtbl { - pub const fn new() -> IEnumProgressItems_Vtbl - where - Identity: IEnumProgressItems_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumProgressItems_Impl, - { + pub const fn new() -> IEnumProgressItems_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumProgressItems_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumProgressItems_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumProgressItems_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumProgressItems_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumProgressItems_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumProgressItems_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumProgressItems_Impl::Clone(this) { Ok(ok__) => { @@ -3292,14 +2533,8 @@ pub trait IFileSystemImage_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IFileSystemImage {} #[cfg(feature = "Win32_System_Com")] impl IFileSystemImage_Vtbl { - pub const fn new() -> IFileSystemImage_Vtbl - where - Identity: IFileSystemImage_Impl, - { - unsafe extern "system" fn Root(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + pub const fn new() -> IFileSystemImage_Vtbl { + unsafe extern "system" fn Root(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::Root(this) { Ok(ok__) => { @@ -3309,10 +2544,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionStartBlock(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SessionStartBlock(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::SessionStartBlock(this) { Ok(ok__) => { @@ -3322,17 +2554,11 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSessionStartBlock(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetSessionStartBlock(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetSessionStartBlock(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn FreeMediaBlocks(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn FreeMediaBlocks(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::FreeMediaBlocks(this) { Ok(ok__) => { @@ -3342,24 +2568,15 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFreeMediaBlocks(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetFreeMediaBlocks(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetFreeMediaBlocks(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn SetMaxMediaBlocksFromDevice(this: *mut core::ffi::c_void, discrecorder: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetMaxMediaBlocksFromDevice(this: *mut core::ffi::c_void, discrecorder: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetMaxMediaBlocksFromDevice(this, windows_core::from_raw_borrowed(&discrecorder)).into() } - unsafe extern "system" fn UsedBlocks(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn UsedBlocks(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::UsedBlocks(this) { Ok(ok__) => { @@ -3369,10 +2586,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumeName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn VolumeName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::VolumeName(this) { Ok(ok__) => { @@ -3382,17 +2596,11 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVolumeName(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetVolumeName(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetVolumeName(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn ImportedVolumeName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn ImportedVolumeName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::ImportedVolumeName(this) { Ok(ok__) => { @@ -3402,10 +2610,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BootImageOptions(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn BootImageOptions(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::BootImageOptions(this) { Ok(ok__) => { @@ -3415,17 +2620,11 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBootImageOptions(this: *mut core::ffi::c_void, newval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetBootImageOptions(this: *mut core::ffi::c_void, newval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetBootImageOptions(this, windows_core::from_raw_borrowed(&newval)).into() } - unsafe extern "system" fn FileCount(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn FileCount(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::FileCount(this) { Ok(ok__) => { @@ -3435,10 +2634,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DirectoryCount(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn DirectoryCount(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::DirectoryCount(this) { Ok(ok__) => { @@ -3448,10 +2644,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WorkingDirectory(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn WorkingDirectory(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::WorkingDirectory(this) { Ok(ok__) => { @@ -3461,17 +2654,11 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetWorkingDirectory(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn ChangePoint(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn ChangePoint(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::ChangePoint(this) { Ok(ok__) => { @@ -3481,10 +2668,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StrictFileSystemCompliance(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn StrictFileSystemCompliance(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::StrictFileSystemCompliance(this) { Ok(ok__) => { @@ -3494,17 +2678,11 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrictFileSystemCompliance(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetStrictFileSystemCompliance(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetStrictFileSystemCompliance(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn UseRestrictedCharacterSet(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn UseRestrictedCharacterSet(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::UseRestrictedCharacterSet(this) { Ok(ok__) => { @@ -3514,17 +2692,11 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseRestrictedCharacterSet(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetUseRestrictedCharacterSet(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetUseRestrictedCharacterSet(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn FileSystemsToCreate(this: *mut core::ffi::c_void, pval: *mut FsiFileSystems) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn FileSystemsToCreate(this: *mut core::ffi::c_void, pval: *mut FsiFileSystems) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::FileSystemsToCreate(this) { Ok(ok__) => { @@ -3534,17 +2706,11 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileSystemsToCreate(this: *mut core::ffi::c_void, newval: FsiFileSystems) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetFileSystemsToCreate(this: *mut core::ffi::c_void, newval: FsiFileSystems) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetFileSystemsToCreate(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn FileSystemsSupported(this: *mut core::ffi::c_void, pval: *mut FsiFileSystems) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn FileSystemsSupported(this: *mut core::ffi::c_void, pval: *mut FsiFileSystems) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::FileSystemsSupported(this) { Ok(ok__) => { @@ -3554,17 +2720,11 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUDFRevision(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetUDFRevision(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetUDFRevision(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn UDFRevision(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn UDFRevision(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::UDFRevision(this) { Ok(ok__) => { @@ -3574,10 +2734,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UDFRevisionsSupported(this: *mut core::ffi::c_void, pval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn UDFRevisionsSupported(this: *mut core::ffi::c_void, pval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::UDFRevisionsSupported(this) { Ok(ok__) => { @@ -3587,31 +2744,19 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChooseImageDefaults(this: *mut core::ffi::c_void, discrecorder: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn ChooseImageDefaults(this: *mut core::ffi::c_void, discrecorder: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::ChooseImageDefaults(this, windows_core::from_raw_borrowed(&discrecorder)).into() } - unsafe extern "system" fn ChooseImageDefaultsForMediaType(this: *mut core::ffi::c_void, value: IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn ChooseImageDefaultsForMediaType(this: *mut core::ffi::c_void, value: IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::ChooseImageDefaultsForMediaType(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetISO9660InterchangeLevel(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetISO9660InterchangeLevel(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetISO9660InterchangeLevel(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn ISO9660InterchangeLevel(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn ISO9660InterchangeLevel(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::ISO9660InterchangeLevel(this) { Ok(ok__) => { @@ -3621,10 +2766,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ISO9660InterchangeLevelsSupported(this: *mut core::ffi::c_void, pval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn ISO9660InterchangeLevelsSupported(this: *mut core::ffi::c_void, pval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::ISO9660InterchangeLevelsSupported(this) { Ok(ok__) => { @@ -3634,10 +2776,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateResultImage(this: *mut core::ffi::c_void, resultstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn CreateResultImage(this: *mut core::ffi::c_void, resultstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::CreateResultImage(this) { Ok(ok__) => { @@ -3647,10 +2786,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Exists(this: *mut core::ffi::c_void, fullpath: core::mem::MaybeUninit, itemtype: *mut FsiItemType) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn Exists(this: *mut core::ffi::c_void, fullpath: core::mem::MaybeUninit, itemtype: *mut FsiItemType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::Exists(this, core::mem::transmute(&fullpath)) { Ok(ok__) => { @@ -3660,10 +2796,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CalculateDiscIdentifier(this: *mut core::ffi::c_void, discidentifier: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn CalculateDiscIdentifier(this: *mut core::ffi::c_void, discidentifier: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::CalculateDiscIdentifier(this) { Ok(ok__) => { @@ -3673,10 +2806,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IdentifyFileSystemsOnDisc(this: *mut core::ffi::c_void, discrecorder: *mut core::ffi::c_void, filesystems: *mut FsiFileSystems) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn IdentifyFileSystemsOnDisc(this: *mut core::ffi::c_void, discrecorder: *mut core::ffi::c_void, filesystems: *mut FsiFileSystems) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::IdentifyFileSystemsOnDisc(this, windows_core::from_raw_borrowed(&discrecorder)) { Ok(ok__) => { @@ -3686,10 +2816,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultFileSystemForImport(this: *mut core::ffi::c_void, filesystems: FsiFileSystems, importdefault: *mut FsiFileSystems) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn GetDefaultFileSystemForImport(this: *mut core::ffi::c_void, filesystems: FsiFileSystems, importdefault: *mut FsiFileSystems) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::GetDefaultFileSystemForImport(this, core::mem::transmute_copy(&filesystems)) { Ok(ok__) => { @@ -3699,10 +2826,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImportFileSystem(this: *mut core::ffi::c_void, importedfilesystem: *mut FsiFileSystems) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn ImportFileSystem(this: *mut core::ffi::c_void, importedfilesystem: *mut FsiFileSystems) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::ImportFileSystem(this) { Ok(ok__) => { @@ -3712,31 +2836,19 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImportSpecificFileSystem(this: *mut core::ffi::c_void, filesystemtouse: FsiFileSystems) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn ImportSpecificFileSystem(this: *mut core::ffi::c_void, filesystemtouse: FsiFileSystems) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::ImportSpecificFileSystem(this, core::mem::transmute_copy(&filesystemtouse)).into() } - unsafe extern "system" fn RollbackToChangePoint(this: *mut core::ffi::c_void, changepoint: i32) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn RollbackToChangePoint(this: *mut core::ffi::c_void, changepoint: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::RollbackToChangePoint(this, core::mem::transmute_copy(&changepoint)).into() } - unsafe extern "system" fn LockInChangePoint(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn LockInChangePoint(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::LockInChangePoint(this).into() } - unsafe extern "system" fn CreateDirectoryItem(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, newitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn CreateDirectoryItem(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, newitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::CreateDirectoryItem(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -3746,10 +2858,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileItem(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, newitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn CreateFileItem(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, newitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::CreateFileItem(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -3759,10 +2868,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumeNameUDF(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn VolumeNameUDF(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::VolumeNameUDF(this) { Ok(ok__) => { @@ -3772,10 +2878,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumeNameJoliet(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn VolumeNameJoliet(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::VolumeNameJoliet(this) { Ok(ok__) => { @@ -3785,10 +2888,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VolumeNameISO9660(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn VolumeNameISO9660(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::VolumeNameISO9660(this) { Ok(ok__) => { @@ -3798,10 +2898,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StageFiles(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn StageFiles(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::StageFiles(this) { Ok(ok__) => { @@ -3811,17 +2908,11 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStageFiles(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetStageFiles(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetStageFiles(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn MultisessionInterfaces(this: *mut core::ffi::c_void, pval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn MultisessionInterfaces(this: *mut core::ffi::c_void, pval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage_Impl::MultisessionInterfaces(this) { Ok(ok__) => { @@ -3831,10 +2922,7 @@ impl IFileSystemImage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMultisessionInterfaces(this: *mut core::ffi::c_void, newval: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFileSystemImage_Impl, - { + unsafe extern "system" fn SetMultisessionInterfaces(this: *mut core::ffi::c_void, newval: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage_Impl::SetMultisessionInterfaces(this, core::mem::transmute_copy(&newval)).into() } @@ -3905,14 +2993,8 @@ pub trait IFileSystemImage2_Impl: Sized + IFileSystemImage_Impl { impl windows_core::RuntimeName for IFileSystemImage2 {} #[cfg(feature = "Win32_System_Com")] impl IFileSystemImage2_Vtbl { - pub const fn new() -> IFileSystemImage2_Vtbl - where - Identity: IFileSystemImage2_Impl, - { - unsafe extern "system" fn BootImageOptionsArray(this: *mut core::ffi::c_void, pval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFileSystemImage2_Impl, - { + pub const fn new() -> IFileSystemImage2_Vtbl { + unsafe extern "system" fn BootImageOptionsArray(this: *mut core::ffi::c_void, pval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage2_Impl::BootImageOptionsArray(this) { Ok(ok__) => { @@ -3922,10 +3004,7 @@ impl IFileSystemImage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBootImageOptionsArray(this: *mut core::ffi::c_void, newval: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFileSystemImage2_Impl, - { + unsafe extern "system" fn SetBootImageOptionsArray(this: *mut core::ffi::c_void, newval: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage2_Impl::SetBootImageOptionsArray(this, core::mem::transmute_copy(&newval)).into() } @@ -3949,14 +3028,8 @@ pub trait IFileSystemImage3_Impl: Sized + IFileSystemImage2_Impl { impl windows_core::RuntimeName for IFileSystemImage3 {} #[cfg(feature = "Win32_System_Com")] impl IFileSystemImage3_Vtbl { - pub const fn new() -> IFileSystemImage3_Vtbl - where - Identity: IFileSystemImage3_Impl, - { - unsafe extern "system" fn CreateRedundantUdfMetadataFiles(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFileSystemImage3_Impl, - { + pub const fn new() -> IFileSystemImage3_Vtbl { + unsafe extern "system" fn CreateRedundantUdfMetadataFiles(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage3_Impl::CreateRedundantUdfMetadataFiles(this) { Ok(ok__) => { @@ -3966,17 +3039,11 @@ impl IFileSystemImage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCreateRedundantUdfMetadataFiles(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFileSystemImage3_Impl, - { + unsafe extern "system" fn SetCreateRedundantUdfMetadataFiles(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemImage3_Impl::SetCreateRedundantUdfMetadataFiles(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn ProbeSpecificFileSystem(this: *mut core::ffi::c_void, filesystemtoprobe: FsiFileSystems, isappendable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFileSystemImage3_Impl, - { + unsafe extern "system" fn ProbeSpecificFileSystem(this: *mut core::ffi::c_void, filesystemtoprobe: FsiFileSystems, isappendable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImage3_Impl::ProbeSpecificFileSystem(this, core::mem::transmute_copy(&filesystemtoprobe)) { Ok(ok__) => { @@ -4009,14 +3076,8 @@ pub trait IFileSystemImageResult_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IFileSystemImageResult {} #[cfg(feature = "Win32_System_Com")] impl IFileSystemImageResult_Vtbl { - pub const fn new() -> IFileSystemImageResult_Vtbl - where - Identity: IFileSystemImageResult_Impl, - { - unsafe extern "system" fn ImageStream(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImageResult_Impl, - { + pub const fn new() -> IFileSystemImageResult_Vtbl { + unsafe extern "system" fn ImageStream(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImageResult_Impl::ImageStream(this) { Ok(ok__) => { @@ -4026,10 +3087,7 @@ impl IFileSystemImageResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProgressItems(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImageResult_Impl, - { + unsafe extern "system" fn ProgressItems(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImageResult_Impl::ProgressItems(this) { Ok(ok__) => { @@ -4039,10 +3097,7 @@ impl IFileSystemImageResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalBlocks(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFileSystemImageResult_Impl, - { + unsafe extern "system" fn TotalBlocks(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImageResult_Impl::TotalBlocks(this) { Ok(ok__) => { @@ -4052,10 +3107,7 @@ impl IFileSystemImageResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BlockSize(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFileSystemImageResult_Impl, - { + unsafe extern "system" fn BlockSize(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImageResult_Impl::BlockSize(this) { Ok(ok__) => { @@ -4065,10 +3117,7 @@ impl IFileSystemImageResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DiscId(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSystemImageResult_Impl, - { + unsafe extern "system" fn DiscId(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImageResult_Impl::DiscId(this) { Ok(ok__) => { @@ -4099,14 +3148,8 @@ pub trait IFileSystemImageResult2_Impl: Sized + IFileSystemImageResult_Impl { impl windows_core::RuntimeName for IFileSystemImageResult2 {} #[cfg(feature = "Win32_System_Com")] impl IFileSystemImageResult2_Vtbl { - pub const fn new() -> IFileSystemImageResult2_Vtbl - where - Identity: IFileSystemImageResult2_Impl, - { - unsafe extern "system" fn ModifiedBlocks(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSystemImageResult2_Impl, - { + pub const fn new() -> IFileSystemImageResult2_Vtbl { + unsafe extern "system" fn ModifiedBlocks(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemImageResult2_Impl::ModifiedBlocks(this) { Ok(ok__) => { @@ -4139,14 +3182,8 @@ pub trait IFsiDirectoryItem_Impl: Sized + IFsiItem_Impl { impl windows_core::RuntimeName for IFsiDirectoryItem {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsiDirectoryItem_Vtbl { - pub const fn new() -> IFsiDirectoryItem_Vtbl - where - Identity: IFsiDirectoryItem_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem_Impl, - { + pub const fn new() -> IFsiDirectoryItem_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiDirectoryItem_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4156,10 +3193,7 @@ impl IFsiDirectoryItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiDirectoryItem_Impl::get_Item(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -4169,10 +3203,7 @@ impl IFsiDirectoryItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiDirectoryItem_Impl::Count(this) { Ok(ok__) => { @@ -4182,10 +3213,7 @@ impl IFsiDirectoryItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumFsiItems(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem_Impl, - { + unsafe extern "system" fn EnumFsiItems(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiDirectoryItem_Impl::EnumFsiItems(this) { Ok(ok__) => { @@ -4195,45 +3223,27 @@ impl IFsiDirectoryItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddDirectory(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem_Impl, - { + unsafe extern "system" fn AddDirectory(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiDirectoryItem_Impl::AddDirectory(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AddFile(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, filedata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem_Impl, - { + unsafe extern "system" fn AddFile(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, filedata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiDirectoryItem_Impl::AddFile(this, core::mem::transmute(&path), windows_core::from_raw_borrowed(&filedata)).into() } - unsafe extern "system" fn AddTree(this: *mut core::ffi::c_void, sourcedirectory: core::mem::MaybeUninit, includebasedirectory: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem_Impl, - { + unsafe extern "system" fn AddTree(this: *mut core::ffi::c_void, sourcedirectory: core::mem::MaybeUninit, includebasedirectory: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiDirectoryItem_Impl::AddTree(this, core::mem::transmute(&sourcedirectory), core::mem::transmute_copy(&includebasedirectory)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, item: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, item: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiDirectoryItem_Impl::Add(this, windows_core::from_raw_borrowed(&item)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiDirectoryItem_Impl::Remove(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn RemoveTree(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem_Impl, - { + unsafe extern "system" fn RemoveTree(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiDirectoryItem_Impl::RemoveTree(this, core::mem::transmute(&path)).into() } @@ -4263,14 +3273,8 @@ pub trait IFsiDirectoryItem2_Impl: Sized + IFsiDirectoryItem_Impl { impl windows_core::RuntimeName for IFsiDirectoryItem2 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsiDirectoryItem2_Vtbl { - pub const fn new() -> IFsiDirectoryItem2_Vtbl - where - Identity: IFsiDirectoryItem2_Impl, - { - unsafe extern "system" fn AddTreeWithNamedStreams(this: *mut core::ffi::c_void, sourcedirectory: core::mem::MaybeUninit, includebasedirectory: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsiDirectoryItem2_Impl, - { + pub const fn new() -> IFsiDirectoryItem2_Vtbl { + unsafe extern "system" fn AddTreeWithNamedStreams(this: *mut core::ffi::c_void, sourcedirectory: core::mem::MaybeUninit, includebasedirectory: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiDirectoryItem2_Impl::AddTreeWithNamedStreams(this, core::mem::transmute(&sourcedirectory), core::mem::transmute_copy(&includebasedirectory)).into() } @@ -4292,14 +3296,8 @@ pub trait IFsiFileItem_Impl: Sized + IFsiItem_Impl { impl windows_core::RuntimeName for IFsiFileItem {} #[cfg(feature = "Win32_System_Com")] impl IFsiFileItem_Vtbl { - pub const fn new() -> IFsiFileItem_Vtbl - where - Identity: IFsiFileItem_Impl, - { - unsafe extern "system" fn DataSize(this: *mut core::ffi::c_void, pval: *mut i64) -> windows_core::HRESULT - where - Identity: IFsiFileItem_Impl, - { + pub const fn new() -> IFsiFileItem_Vtbl { + unsafe extern "system" fn DataSize(this: *mut core::ffi::c_void, pval: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiFileItem_Impl::DataSize(this) { Ok(ok__) => { @@ -4309,10 +3307,7 @@ impl IFsiFileItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DataSize32BitLow(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFsiFileItem_Impl, - { + unsafe extern "system" fn DataSize32BitLow(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiFileItem_Impl::DataSize32BitLow(this) { Ok(ok__) => { @@ -4322,10 +3317,7 @@ impl IFsiFileItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DataSize32BitHigh(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IFsiFileItem_Impl, - { + unsafe extern "system" fn DataSize32BitHigh(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiFileItem_Impl::DataSize32BitHigh(this) { Ok(ok__) => { @@ -4335,10 +3327,7 @@ impl IFsiFileItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiFileItem_Impl, - { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiFileItem_Impl::Data(this) { Ok(ok__) => { @@ -4348,10 +3337,7 @@ impl IFsiFileItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, newval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiFileItem_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, newval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiFileItem_Impl::SetData(this, windows_core::from_raw_borrowed(&newval)).into() } @@ -4381,14 +3367,8 @@ pub trait IFsiFileItem2_Impl: Sized + IFsiFileItem_Impl { impl windows_core::RuntimeName for IFsiFileItem2 {} #[cfg(feature = "Win32_System_Com")] impl IFsiFileItem2_Vtbl { - pub const fn new() -> IFsiFileItem2_Vtbl - where - Identity: IFsiFileItem2_Impl, - { - unsafe extern "system" fn FsiNamedStreams(this: *mut core::ffi::c_void, streams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiFileItem2_Impl, - { + pub const fn new() -> IFsiFileItem2_Vtbl { + unsafe extern "system" fn FsiNamedStreams(this: *mut core::ffi::c_void, streams: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiFileItem2_Impl::FsiNamedStreams(this) { Ok(ok__) => { @@ -4398,10 +3378,7 @@ impl IFsiFileItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsNamedStream(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsiFileItem2_Impl, - { + unsafe extern "system" fn IsNamedStream(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiFileItem2_Impl::IsNamedStream(this) { Ok(ok__) => { @@ -4411,24 +3388,15 @@ impl IFsiFileItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, streamdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiFileItem2_Impl, - { + unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, streamdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiFileItem2_Impl::AddStream(this, core::mem::transmute(&name), windows_core::from_raw_borrowed(&streamdata)).into() } - unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsiFileItem2_Impl, - { + unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiFileItem2_Impl::RemoveStream(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn IsRealTime(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsiFileItem2_Impl, - { + unsafe extern "system" fn IsRealTime(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiFileItem2_Impl::IsRealTime(this) { Ok(ok__) => { @@ -4438,10 +3406,7 @@ impl IFsiFileItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsRealTime(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsiFileItem2_Impl, - { + unsafe extern "system" fn SetIsRealTime(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiFileItem2_Impl::SetIsRealTime(this, core::mem::transmute_copy(&newval)).into() } @@ -4478,14 +3443,8 @@ pub trait IFsiItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFsiItem {} #[cfg(feature = "Win32_System_Com")] impl IFsiItem_Vtbl { - pub const fn new() -> IFsiItem_Vtbl - where - Identity: IFsiItem_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + pub const fn new() -> IFsiItem_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiItem_Impl::Name(this) { Ok(ok__) => { @@ -4495,10 +3454,7 @@ impl IFsiItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FullPath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn FullPath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiItem_Impl::FullPath(this) { Ok(ok__) => { @@ -4508,10 +3464,7 @@ impl IFsiItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreationTime(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn CreationTime(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiItem_Impl::CreationTime(this) { Ok(ok__) => { @@ -4521,17 +3474,11 @@ impl IFsiItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCreationTime(this: *mut core::ffi::c_void, newval: f64) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn SetCreationTime(this: *mut core::ffi::c_void, newval: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiItem_Impl::SetCreationTime(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn LastAccessedTime(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn LastAccessedTime(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiItem_Impl::LastAccessedTime(this) { Ok(ok__) => { @@ -4541,17 +3488,11 @@ impl IFsiItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLastAccessedTime(this: *mut core::ffi::c_void, newval: f64) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn SetLastAccessedTime(this: *mut core::ffi::c_void, newval: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiItem_Impl::SetLastAccessedTime(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn LastModifiedTime(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn LastModifiedTime(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiItem_Impl::LastModifiedTime(this) { Ok(ok__) => { @@ -4561,17 +3502,11 @@ impl IFsiItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLastModifiedTime(this: *mut core::ffi::c_void, newval: f64) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn SetLastModifiedTime(this: *mut core::ffi::c_void, newval: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiItem_Impl::SetLastModifiedTime(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn IsHidden(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn IsHidden(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiItem_Impl::IsHidden(this) { Ok(ok__) => { @@ -4581,17 +3516,11 @@ impl IFsiItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsHidden(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn SetIsHidden(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFsiItem_Impl::SetIsHidden(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn FileSystemName(this: *mut core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn FileSystemName(this: *mut core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiItem_Impl::FileSystemName(this, core::mem::transmute_copy(&filesystem)) { Ok(ok__) => { @@ -4601,10 +3530,7 @@ impl IFsiItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FileSystemPath(this: *mut core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFsiItem_Impl, - { + unsafe extern "system" fn FileSystemPath(this: *mut core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiItem_Impl::FileSystemPath(this, core::mem::transmute_copy(&filesystem)) { Ok(ok__) => { @@ -4645,14 +3571,8 @@ pub trait IFsiNamedStreams_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IFsiNamedStreams {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsiNamedStreams_Vtbl { - pub const fn new() -> IFsiNamedStreams_Vtbl - where - Identity: IFsiNamedStreams_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiNamedStreams_Impl, - { + pub const fn new() -> IFsiNamedStreams_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiNamedStreams_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4662,10 +3582,7 @@ impl IFsiNamedStreams_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiNamedStreams_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiNamedStreams_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -4675,10 +3592,7 @@ impl IFsiNamedStreams_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IFsiNamedStreams_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiNamedStreams_Impl::Count(this) { Ok(ok__) => { @@ -4688,10 +3602,7 @@ impl IFsiNamedStreams_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumNamedStreams(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFsiNamedStreams_Impl, - { + unsafe extern "system" fn EnumNamedStreams(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFsiNamedStreams_Impl::EnumNamedStreams(this) { Ok(ok__) => { @@ -4725,14 +3636,8 @@ pub trait IIsoImageManager_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IIsoImageManager {} #[cfg(feature = "Win32_System_Com")] impl IIsoImageManager_Vtbl { - pub const fn new() -> IIsoImageManager_Vtbl - where - Identity: IIsoImageManager_Impl, - { - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIsoImageManager_Impl, - { + pub const fn new() -> IIsoImageManager_Vtbl { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsoImageManager_Impl::Path(this) { Ok(ok__) => { @@ -4742,10 +3647,7 @@ impl IIsoImageManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, data: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIsoImageManager_Impl, - { + unsafe extern "system" fn Stream(this: *mut core::ffi::c_void, data: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsoImageManager_Impl::Stream(this) { Ok(ok__) => { @@ -4755,24 +3657,15 @@ impl IIsoImageManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIsoImageManager_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsoImageManager_Impl::SetPath(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn SetStream(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIsoImageManager_Impl, - { + unsafe extern "system" fn SetStream(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsoImageManager_Impl::SetStream(this, windows_core::from_raw_borrowed(&data)).into() } - unsafe extern "system" fn Validate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIsoImageManager_Impl, - { + unsafe extern "system" fn Validate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsoImageManager_Impl::Validate(this).into() } @@ -4790,7 +3683,7 @@ impl IIsoImageManager_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IJolietDiscMaster_Impl: Sized { +pub trait IJolietDiscMaster_Impl: Sized + windows_core::IUnknownImpl { fn GetTotalDataBlocks(&self) -> windows_core::Result; fn GetUsedDataBlocks(&self) -> windows_core::Result; fn GetDataBlockSize(&self) -> windows_core::Result; @@ -4802,14 +3695,8 @@ pub trait IJolietDiscMaster_Impl: Sized { impl windows_core::RuntimeName for IJolietDiscMaster {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IJolietDiscMaster_Vtbl { - pub const fn new() -> IJolietDiscMaster_Vtbl - where - Identity: IJolietDiscMaster_Impl, - { - unsafe extern "system" fn GetTotalDataBlocks(this: *mut core::ffi::c_void, pnblocks: *mut i32) -> windows_core::HRESULT - where - Identity: IJolietDiscMaster_Impl, - { + pub const fn new() -> IJolietDiscMaster_Vtbl { + unsafe extern "system" fn GetTotalDataBlocks(this: *mut core::ffi::c_void, pnblocks: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJolietDiscMaster_Impl::GetTotalDataBlocks(this) { Ok(ok__) => { @@ -4819,10 +3706,7 @@ impl IJolietDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUsedDataBlocks(this: *mut core::ffi::c_void, pnblocks: *mut i32) -> windows_core::HRESULT - where - Identity: IJolietDiscMaster_Impl, - { + unsafe extern "system" fn GetUsedDataBlocks(this: *mut core::ffi::c_void, pnblocks: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJolietDiscMaster_Impl::GetUsedDataBlocks(this) { Ok(ok__) => { @@ -4832,10 +3716,7 @@ impl IJolietDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataBlockSize(this: *mut core::ffi::c_void, pnblockbytes: *mut i32) -> windows_core::HRESULT - where - Identity: IJolietDiscMaster_Impl, - { + unsafe extern "system" fn GetDataBlockSize(this: *mut core::ffi::c_void, pnblockbytes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJolietDiscMaster_Impl::GetDataBlockSize(this) { Ok(ok__) => { @@ -4845,17 +3726,11 @@ impl IJolietDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddData(this: *mut core::ffi::c_void, pstorage: *mut core::ffi::c_void, lfileoverwrite: i32) -> windows_core::HRESULT - where - Identity: IJolietDiscMaster_Impl, - { + unsafe extern "system" fn AddData(this: *mut core::ffi::c_void, pstorage: *mut core::ffi::c_void, lfileoverwrite: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJolietDiscMaster_Impl::AddData(this, windows_core::from_raw_borrowed(&pstorage), core::mem::transmute_copy(&lfileoverwrite)).into() } - unsafe extern "system" fn GetJolietProperties(this: *mut core::ffi::c_void, pppropstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJolietDiscMaster_Impl, - { + unsafe extern "system" fn GetJolietProperties(this: *mut core::ffi::c_void, pppropstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJolietDiscMaster_Impl::GetJolietProperties(this) { Ok(ok__) => { @@ -4865,10 +3740,7 @@ impl IJolietDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJolietProperties(this: *mut core::ffi::c_void, ppropstg: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJolietDiscMaster_Impl, - { + unsafe extern "system" fn SetJolietProperties(this: *mut core::ffi::c_void, ppropstg: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJolietDiscMaster_Impl::SetJolietProperties(this, windows_core::from_raw_borrowed(&ppropstg)).into() } @@ -4897,14 +3769,8 @@ pub trait IMultisession_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IMultisession {} #[cfg(feature = "Win32_System_Com")] impl IMultisession_Vtbl { - pub const fn new() -> IMultisession_Vtbl - where - Identity: IMultisession_Impl, - { - unsafe extern "system" fn IsSupportedOnCurrentMediaState(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMultisession_Impl, - { + pub const fn new() -> IMultisession_Vtbl { + unsafe extern "system" fn IsSupportedOnCurrentMediaState(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisession_Impl::IsSupportedOnCurrentMediaState(this) { Ok(ok__) => { @@ -4914,17 +3780,11 @@ impl IMultisession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInUse(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMultisession_Impl, - { + unsafe extern "system" fn SetInUse(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultisession_Impl::SetInUse(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn InUse(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMultisession_Impl, - { + unsafe extern "system" fn InUse(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisession_Impl::InUse(this) { Ok(ok__) => { @@ -4934,10 +3794,7 @@ impl IMultisession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImportRecorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultisession_Impl, - { + unsafe extern "system" fn ImportRecorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisession_Impl::ImportRecorder(this) { Ok(ok__) => { @@ -4969,14 +3826,8 @@ pub trait IMultisessionRandomWrite_Impl: Sized + IMultisession_Impl { impl windows_core::RuntimeName for IMultisessionRandomWrite {} #[cfg(feature = "Win32_System_Com")] impl IMultisessionRandomWrite_Vtbl { - pub const fn new() -> IMultisessionRandomWrite_Vtbl - where - Identity: IMultisessionRandomWrite_Impl, - { - unsafe extern "system" fn WriteUnitSize(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IMultisessionRandomWrite_Impl, - { + pub const fn new() -> IMultisessionRandomWrite_Vtbl { + unsafe extern "system" fn WriteUnitSize(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisessionRandomWrite_Impl::WriteUnitSize(this) { Ok(ok__) => { @@ -4986,10 +3837,7 @@ impl IMultisessionRandomWrite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastWrittenAddress(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IMultisessionRandomWrite_Impl, - { + unsafe extern "system" fn LastWrittenAddress(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisessionRandomWrite_Impl::LastWrittenAddress(this) { Ok(ok__) => { @@ -4999,10 +3847,7 @@ impl IMultisessionRandomWrite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IMultisessionRandomWrite_Impl, - { + unsafe extern "system" fn TotalSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisessionRandomWrite_Impl::TotalSectorsOnMedia(this) { Ok(ok__) => { @@ -5035,14 +3880,8 @@ pub trait IMultisessionSequential_Impl: Sized + IMultisession_Impl { impl windows_core::RuntimeName for IMultisessionSequential {} #[cfg(feature = "Win32_System_Com")] impl IMultisessionSequential_Vtbl { - pub const fn new() -> IMultisessionSequential_Vtbl - where - Identity: IMultisessionSequential_Impl, - { - unsafe extern "system" fn IsFirstDataSession(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMultisessionSequential_Impl, - { + pub const fn new() -> IMultisessionSequential_Vtbl { + unsafe extern "system" fn IsFirstDataSession(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisessionSequential_Impl::IsFirstDataSession(this) { Ok(ok__) => { @@ -5052,10 +3891,7 @@ impl IMultisessionSequential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartAddressOfPreviousSession(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IMultisessionSequential_Impl, - { + unsafe extern "system" fn StartAddressOfPreviousSession(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisessionSequential_Impl::StartAddressOfPreviousSession(this) { Ok(ok__) => { @@ -5065,10 +3901,7 @@ impl IMultisessionSequential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastWrittenAddressOfPreviousSession(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IMultisessionSequential_Impl, - { + unsafe extern "system" fn LastWrittenAddressOfPreviousSession(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisessionSequential_Impl::LastWrittenAddressOfPreviousSession(this) { Ok(ok__) => { @@ -5078,10 +3911,7 @@ impl IMultisessionSequential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NextWritableAddress(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IMultisessionSequential_Impl, - { + unsafe extern "system" fn NextWritableAddress(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisessionSequential_Impl::NextWritableAddress(this) { Ok(ok__) => { @@ -5091,10 +3921,7 @@ impl IMultisessionSequential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FreeSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IMultisessionSequential_Impl, - { + unsafe extern "system" fn FreeSectorsOnMedia(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisessionSequential_Impl::FreeSectorsOnMedia(this) { Ok(ok__) => { @@ -5125,14 +3952,8 @@ pub trait IMultisessionSequential2_Impl: Sized + IMultisessionSequential_Impl { impl windows_core::RuntimeName for IMultisessionSequential2 {} #[cfg(feature = "Win32_System_Com")] impl IMultisessionSequential2_Vtbl { - pub const fn new() -> IMultisessionSequential2_Vtbl - where - Identity: IMultisessionSequential2_Impl, - { - unsafe extern "system" fn WriteUnitSize(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IMultisessionSequential2_Impl, - { + pub const fn new() -> IMultisessionSequential2_Vtbl { + unsafe extern "system" fn WriteUnitSize(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultisessionSequential2_Impl::WriteUnitSize(this) { Ok(ok__) => { @@ -5159,14 +3980,8 @@ pub trait IProgressItem_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IProgressItem {} #[cfg(feature = "Win32_System_Com")] impl IProgressItem_Vtbl { - pub const fn new() -> IProgressItem_Vtbl - where - Identity: IProgressItem_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, desc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IProgressItem_Impl, - { + pub const fn new() -> IProgressItem_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, desc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProgressItem_Impl::Description(this) { Ok(ok__) => { @@ -5176,10 +3991,7 @@ impl IProgressItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FirstBlock(this: *mut core::ffi::c_void, block: *mut u32) -> windows_core::HRESULT - where - Identity: IProgressItem_Impl, - { + unsafe extern "system" fn FirstBlock(this: *mut core::ffi::c_void, block: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProgressItem_Impl::FirstBlock(this) { Ok(ok__) => { @@ -5189,10 +4001,7 @@ impl IProgressItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastBlock(this: *mut core::ffi::c_void, block: *mut u32) -> windows_core::HRESULT - where - Identity: IProgressItem_Impl, - { + unsafe extern "system" fn LastBlock(this: *mut core::ffi::c_void, block: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProgressItem_Impl::LastBlock(this) { Ok(ok__) => { @@ -5202,10 +4011,7 @@ impl IProgressItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BlockCount(this: *mut core::ffi::c_void, blocks: *mut u32) -> windows_core::HRESULT - where - Identity: IProgressItem_Impl, - { + unsafe extern "system" fn BlockCount(this: *mut core::ffi::c_void, blocks: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProgressItem_Impl::BlockCount(this) { Ok(ok__) => { @@ -5240,14 +4046,8 @@ pub trait IProgressItems_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IProgressItems {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IProgressItems_Vtbl { - pub const fn new() -> IProgressItems_Vtbl - where - Identity: IProgressItems_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProgressItems_Impl, - { + pub const fn new() -> IProgressItems_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProgressItems_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5257,10 +4057,7 @@ impl IProgressItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProgressItems_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProgressItems_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5270,10 +4067,7 @@ impl IProgressItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IProgressItems_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProgressItems_Impl::Count(this) { Ok(ok__) => { @@ -5283,10 +4077,7 @@ impl IProgressItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProgressItemFromBlock(this: *mut core::ffi::c_void, block: u32, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProgressItems_Impl, - { + unsafe extern "system" fn ProgressItemFromBlock(this: *mut core::ffi::c_void, block: u32, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProgressItems_Impl::ProgressItemFromBlock(this, core::mem::transmute_copy(&block)) { Ok(ok__) => { @@ -5296,10 +4087,7 @@ impl IProgressItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProgressItemFromDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProgressItems_Impl, - { + unsafe extern "system" fn ProgressItemFromDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProgressItems_Impl::ProgressItemFromDescription(this, core::mem::transmute(&description)) { Ok(ok__) => { @@ -5309,10 +4097,7 @@ impl IProgressItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumProgressItems(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProgressItems_Impl, - { + unsafe extern "system" fn EnumProgressItems(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProgressItems_Impl::EnumProgressItems(this) { Ok(ok__) => { @@ -5362,14 +4147,8 @@ pub trait IRawCDImageCreator_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IRawCDImageCreator {} #[cfg(feature = "Win32_System_Com")] impl IRawCDImageCreator_Vtbl { - pub const fn new() -> IRawCDImageCreator_Vtbl - where - Identity: IRawCDImageCreator_Impl, - { - unsafe extern "system" fn CreateResultImage(this: *mut core::ffi::c_void, resultstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + pub const fn new() -> IRawCDImageCreator_Vtbl { + unsafe extern "system" fn CreateResultImage(this: *mut core::ffi::c_void, resultstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::CreateResultImage(this) { Ok(ok__) => { @@ -5379,10 +4158,7 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTrack(this: *mut core::ffi::c_void, datatype: IMAPI_CD_SECTOR_TYPE, data: *mut core::ffi::c_void, trackindex: *mut i32) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn AddTrack(this: *mut core::ffi::c_void, datatype: IMAPI_CD_SECTOR_TYPE, data: *mut core::ffi::c_void, trackindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::AddTrack(this, core::mem::transmute_copy(&datatype), windows_core::from_raw_borrowed(&data)) { Ok(ok__) => { @@ -5392,31 +4168,19 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSpecialPregap(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn AddSpecialPregap(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageCreator_Impl::AddSpecialPregap(this, windows_core::from_raw_borrowed(&data)).into() } - unsafe extern "system" fn AddSubcodeRWGenerator(this: *mut core::ffi::c_void, subcode: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn AddSubcodeRWGenerator(this: *mut core::ffi::c_void, subcode: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageCreator_Impl::AddSubcodeRWGenerator(this, windows_core::from_raw_borrowed(&subcode)).into() } - unsafe extern "system" fn SetResultingImageType(this: *mut core::ffi::c_void, value: IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn SetResultingImageType(this: *mut core::ffi::c_void, value: IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageCreator_Impl::SetResultingImageType(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ResultingImageType(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn ResultingImageType(this: *mut core::ffi::c_void, value: *mut IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::ResultingImageType(this) { Ok(ok__) => { @@ -5426,10 +4190,7 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartOfLeadout(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn StartOfLeadout(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::StartOfLeadout(this) { Ok(ok__) => { @@ -5439,17 +4200,11 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartOfLeadoutLimit(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn SetStartOfLeadoutLimit(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageCreator_Impl::SetStartOfLeadoutLimit(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn StartOfLeadoutLimit(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn StartOfLeadoutLimit(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::StartOfLeadoutLimit(this) { Ok(ok__) => { @@ -5459,17 +4214,11 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisableGaplessAudio(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn SetDisableGaplessAudio(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageCreator_Impl::SetDisableGaplessAudio(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn DisableGaplessAudio(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn DisableGaplessAudio(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::DisableGaplessAudio(this) { Ok(ok__) => { @@ -5479,17 +4228,11 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaCatalogNumber(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn SetMediaCatalogNumber(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageCreator_Impl::SetMediaCatalogNumber(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn MediaCatalogNumber(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn MediaCatalogNumber(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::MediaCatalogNumber(this) { Ok(ok__) => { @@ -5499,17 +4242,11 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartingTrackNumber(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn SetStartingTrackNumber(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageCreator_Impl::SetStartingTrackNumber(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn StartingTrackNumber(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn StartingTrackNumber(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::StartingTrackNumber(this) { Ok(ok__) => { @@ -5519,10 +4256,7 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_TrackInfo(this: *mut core::ffi::c_void, trackindex: i32, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn get_TrackInfo(this: *mut core::ffi::c_void, trackindex: i32, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::get_TrackInfo(this, core::mem::transmute_copy(&trackindex)) { Ok(ok__) => { @@ -5532,10 +4266,7 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfExistingTracks(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn NumberOfExistingTracks(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::NumberOfExistingTracks(this) { Ok(ok__) => { @@ -5545,10 +4276,7 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastUsedUserSectorInImage(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn LastUsedUserSectorInImage(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::LastUsedUserSectorInImage(this) { Ok(ok__) => { @@ -5558,10 +4286,7 @@ impl IRawCDImageCreator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpectedTableOfContents(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IRawCDImageCreator_Impl, - { + unsafe extern "system" fn ExpectedTableOfContents(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageCreator_Impl::ExpectedTableOfContents(this) { Ok(ok__) => { @@ -5618,14 +4343,8 @@ pub trait IRawCDImageTrackInfo_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for IRawCDImageTrackInfo {} #[cfg(feature = "Win32_System_Com")] impl IRawCDImageTrackInfo_Vtbl { - pub const fn new() -> IRawCDImageTrackInfo_Vtbl - where - Identity: IRawCDImageTrackInfo_Impl, - { - unsafe extern "system" fn StartingLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + pub const fn new() -> IRawCDImageTrackInfo_Vtbl { + unsafe extern "system" fn StartingLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageTrackInfo_Impl::StartingLba(this) { Ok(ok__) => { @@ -5635,10 +4354,7 @@ impl IRawCDImageTrackInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SectorCount(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn SectorCount(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageTrackInfo_Impl::SectorCount(this) { Ok(ok__) => { @@ -5648,10 +4364,7 @@ impl IRawCDImageTrackInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TrackNumber(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn TrackNumber(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageTrackInfo_Impl::TrackNumber(this) { Ok(ok__) => { @@ -5661,10 +4374,7 @@ impl IRawCDImageTrackInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SectorType(this: *mut core::ffi::c_void, value: *mut IMAPI_CD_SECTOR_TYPE) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn SectorType(this: *mut core::ffi::c_void, value: *mut IMAPI_CD_SECTOR_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageTrackInfo_Impl::SectorType(this) { Ok(ok__) => { @@ -5674,10 +4384,7 @@ impl IRawCDImageTrackInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ISRC(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn ISRC(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageTrackInfo_Impl::ISRC(this) { Ok(ok__) => { @@ -5687,17 +4394,11 @@ impl IRawCDImageTrackInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetISRC(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn SetISRC(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageTrackInfo_Impl::SetISRC(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn DigitalAudioCopySetting(this: *mut core::ffi::c_void, value: *mut IMAPI_CD_TRACK_DIGITAL_COPY_SETTING) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn DigitalAudioCopySetting(this: *mut core::ffi::c_void, value: *mut IMAPI_CD_TRACK_DIGITAL_COPY_SETTING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageTrackInfo_Impl::DigitalAudioCopySetting(this) { Ok(ok__) => { @@ -5707,17 +4408,11 @@ impl IRawCDImageTrackInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDigitalAudioCopySetting(this: *mut core::ffi::c_void, value: IMAPI_CD_TRACK_DIGITAL_COPY_SETTING) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn SetDigitalAudioCopySetting(this: *mut core::ffi::c_void, value: IMAPI_CD_TRACK_DIGITAL_COPY_SETTING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageTrackInfo_Impl::SetDigitalAudioCopySetting(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn AudioHasPreemphasis(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn AudioHasPreemphasis(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageTrackInfo_Impl::AudioHasPreemphasis(this) { Ok(ok__) => { @@ -5727,17 +4422,11 @@ impl IRawCDImageTrackInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAudioHasPreemphasis(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn SetAudioHasPreemphasis(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageTrackInfo_Impl::SetAudioHasPreemphasis(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn TrackIndexes(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn TrackIndexes(this: *mut core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawCDImageTrackInfo_Impl::TrackIndexes(this) { Ok(ok__) => { @@ -5747,17 +4436,11 @@ impl IRawCDImageTrackInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTrackIndex(this: *mut core::ffi::c_void, lbaoffset: i32) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn AddTrackIndex(this: *mut core::ffi::c_void, lbaoffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageTrackInfo_Impl::AddTrackIndex(this, core::mem::transmute_copy(&lbaoffset)).into() } - unsafe extern "system" fn ClearTrackIndex(this: *mut core::ffi::c_void, lbaoffset: i32) -> windows_core::HRESULT - where - Identity: IRawCDImageTrackInfo_Impl, - { + unsafe extern "system" fn ClearTrackIndex(this: *mut core::ffi::c_void, lbaoffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawCDImageTrackInfo_Impl::ClearTrackIndex(this, core::mem::transmute_copy(&lbaoffset)).into() } @@ -5782,7 +4465,7 @@ impl IRawCDImageTrackInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRedbookDiscMaster_Impl: Sized { +pub trait IRedbookDiscMaster_Impl: Sized + windows_core::IUnknownImpl { fn GetTotalAudioTracks(&self) -> windows_core::Result; fn GetTotalAudioBlocks(&self) -> windows_core::Result; fn GetUsedAudioBlocks(&self) -> windows_core::Result; @@ -5794,14 +4477,8 @@ pub trait IRedbookDiscMaster_Impl: Sized { } impl windows_core::RuntimeName for IRedbookDiscMaster {} impl IRedbookDiscMaster_Vtbl { - pub const fn new() -> IRedbookDiscMaster_Vtbl - where - Identity: IRedbookDiscMaster_Impl, - { - unsafe extern "system" fn GetTotalAudioTracks(this: *mut core::ffi::c_void, pntracks: *mut i32) -> windows_core::HRESULT - where - Identity: IRedbookDiscMaster_Impl, - { + pub const fn new() -> IRedbookDiscMaster_Vtbl { + unsafe extern "system" fn GetTotalAudioTracks(this: *mut core::ffi::c_void, pntracks: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRedbookDiscMaster_Impl::GetTotalAudioTracks(this) { Ok(ok__) => { @@ -5811,10 +4488,7 @@ impl IRedbookDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTotalAudioBlocks(this: *mut core::ffi::c_void, pnblocks: *mut i32) -> windows_core::HRESULT - where - Identity: IRedbookDiscMaster_Impl, - { + unsafe extern "system" fn GetTotalAudioBlocks(this: *mut core::ffi::c_void, pnblocks: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRedbookDiscMaster_Impl::GetTotalAudioBlocks(this) { Ok(ok__) => { @@ -5824,10 +4498,7 @@ impl IRedbookDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUsedAudioBlocks(this: *mut core::ffi::c_void, pnblocks: *mut i32) -> windows_core::HRESULT - where - Identity: IRedbookDiscMaster_Impl, - { + unsafe extern "system" fn GetUsedAudioBlocks(this: *mut core::ffi::c_void, pnblocks: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRedbookDiscMaster_Impl::GetUsedAudioBlocks(this) { Ok(ok__) => { @@ -5837,10 +4508,7 @@ impl IRedbookDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAvailableAudioTrackBlocks(this: *mut core::ffi::c_void, pnblocks: *mut i32) -> windows_core::HRESULT - where - Identity: IRedbookDiscMaster_Impl, - { + unsafe extern "system" fn GetAvailableAudioTrackBlocks(this: *mut core::ffi::c_void, pnblocks: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRedbookDiscMaster_Impl::GetAvailableAudioTrackBlocks(this) { Ok(ok__) => { @@ -5850,10 +4518,7 @@ impl IRedbookDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAudioBlockSize(this: *mut core::ffi::c_void, pnblockbytes: *mut i32) -> windows_core::HRESULT - where - Identity: IRedbookDiscMaster_Impl, - { + unsafe extern "system" fn GetAudioBlockSize(this: *mut core::ffi::c_void, pnblockbytes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRedbookDiscMaster_Impl::GetAudioBlockSize(this) { Ok(ok__) => { @@ -5863,24 +4528,15 @@ impl IRedbookDiscMaster_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAudioTrack(this: *mut core::ffi::c_void, nblocks: i32) -> windows_core::HRESULT - where - Identity: IRedbookDiscMaster_Impl, - { + unsafe extern "system" fn CreateAudioTrack(this: *mut core::ffi::c_void, nblocks: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRedbookDiscMaster_Impl::CreateAudioTrack(this, core::mem::transmute_copy(&nblocks)).into() } - unsafe extern "system" fn AddAudioTrackBlocks(this: *mut core::ffi::c_void, pby: *const u8, cb: i32) -> windows_core::HRESULT - where - Identity: IRedbookDiscMaster_Impl, - { + unsafe extern "system" fn AddAudioTrackBlocks(this: *mut core::ffi::c_void, pby: *const u8, cb: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRedbookDiscMaster_Impl::AddAudioTrackBlocks(this, core::mem::transmute_copy(&pby), core::mem::transmute_copy(&cb)).into() } - unsafe extern "system" fn CloseAudioTrack(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRedbookDiscMaster_Impl, - { + unsafe extern "system" fn CloseAudioTrack(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRedbookDiscMaster_Impl::CloseAudioTrack(this).into() } @@ -5911,35 +4567,20 @@ pub trait IStreamConcatenate_Impl: Sized + super::super::System::Com::IStream_Im impl windows_core::RuntimeName for IStreamConcatenate {} #[cfg(feature = "Win32_System_Com")] impl IStreamConcatenate_Vtbl { - pub const fn new() -> IStreamConcatenate_Vtbl - where - Identity: IStreamConcatenate_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, stream1: *mut core::ffi::c_void, stream2: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamConcatenate_Impl, - { + pub const fn new() -> IStreamConcatenate_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, stream1: *mut core::ffi::c_void, stream2: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamConcatenate_Impl::Initialize(this, windows_core::from_raw_borrowed(&stream1), windows_core::from_raw_borrowed(&stream2)).into() } - unsafe extern "system" fn Initialize2(this: *mut core::ffi::c_void, streams: *const *mut core::ffi::c_void, streamcount: u32) -> windows_core::HRESULT - where - Identity: IStreamConcatenate_Impl, - { + unsafe extern "system" fn Initialize2(this: *mut core::ffi::c_void, streams: *const *mut core::ffi::c_void, streamcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamConcatenate_Impl::Initialize2(this, core::mem::transmute_copy(&streams), core::mem::transmute_copy(&streamcount)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamConcatenate_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamConcatenate_Impl::Append(this, windows_core::from_raw_borrowed(&stream)).into() } - unsafe extern "system" fn Append2(this: *mut core::ffi::c_void, streams: *const *mut core::ffi::c_void, streamcount: u32) -> windows_core::HRESULT - where - Identity: IStreamConcatenate_Impl, - { + unsafe extern "system" fn Append2(this: *mut core::ffi::c_void, streams: *const *mut core::ffi::c_void, streamcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamConcatenate_Impl::Append2(this, core::mem::transmute_copy(&streams), core::mem::transmute_copy(&streamcount)).into() } @@ -5963,14 +4604,8 @@ pub trait IStreamInterleave_Impl: Sized + super::super::System::Com::IStream_Imp impl windows_core::RuntimeName for IStreamInterleave {} #[cfg(feature = "Win32_System_Com")] impl IStreamInterleave_Vtbl { - pub const fn new() -> IStreamInterleave_Vtbl - where - Identity: IStreamInterleave_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, streams: *const *mut core::ffi::c_void, interleavesizes: *const u32, streamcount: u32) -> windows_core::HRESULT - where - Identity: IStreamInterleave_Impl, - { + pub const fn new() -> IStreamInterleave_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, streams: *const *mut core::ffi::c_void, interleavesizes: *const u32, streamcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamInterleave_Impl::Initialize(this, core::mem::transmute_copy(&streams), core::mem::transmute_copy(&interleavesizes), core::mem::transmute_copy(&streamcount)).into() } @@ -5991,21 +4626,12 @@ pub trait IStreamPseudoRandomBased_Impl: Sized + super::super::System::Com::IStr impl windows_core::RuntimeName for IStreamPseudoRandomBased {} #[cfg(feature = "Win32_System_Com")] impl IStreamPseudoRandomBased_Vtbl { - pub const fn new() -> IStreamPseudoRandomBased_Vtbl - where - Identity: IStreamPseudoRandomBased_Impl, - { - unsafe extern "system" fn SetSeed(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: IStreamPseudoRandomBased_Impl, - { + pub const fn new() -> IStreamPseudoRandomBased_Vtbl { + unsafe extern "system" fn SetSeed(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamPseudoRandomBased_Impl::SetSeed(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Seed(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT - where - Identity: IStreamPseudoRandomBased_Impl, - { + unsafe extern "system" fn Seed(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamPseudoRandomBased_Impl::Seed(this) { Ok(ok__) => { @@ -6015,17 +4641,11 @@ impl IStreamPseudoRandomBased_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_ExtendedSeed(this: *mut core::ffi::c_void, values: *const u32, ecount: u32) -> windows_core::HRESULT - where - Identity: IStreamPseudoRandomBased_Impl, - { + unsafe extern "system" fn put_ExtendedSeed(this: *mut core::ffi::c_void, values: *const u32, ecount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamPseudoRandomBased_Impl::put_ExtendedSeed(this, core::mem::transmute_copy(&values), core::mem::transmute_copy(&ecount)).into() } - unsafe extern "system" fn get_ExtendedSeed(this: *mut core::ffi::c_void, values: *mut *mut u32, ecount: *mut u32) -> windows_core::HRESULT - where - Identity: IStreamPseudoRandomBased_Impl, - { + unsafe extern "system" fn get_ExtendedSeed(this: *mut core::ffi::c_void, values: *mut *mut u32, ecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamPseudoRandomBased_Impl::get_ExtendedSeed(this, core::mem::transmute_copy(&values), core::mem::transmute_copy(&ecount)).into() } @@ -6061,35 +4681,20 @@ pub trait IWriteEngine2_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IWriteEngine2 {} #[cfg(feature = "Win32_System_Com")] impl IWriteEngine2_Vtbl { - pub const fn new() -> IWriteEngine2_Vtbl - where - Identity: IWriteEngine2_Impl, - { - unsafe extern "system" fn WriteSection(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, startingblockaddress: i32, numberofblocks: i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + pub const fn new() -> IWriteEngine2_Vtbl { + unsafe extern "system" fn WriteSection(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, startingblockaddress: i32, numberofblocks: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWriteEngine2_Impl::WriteSection(this, windows_core::from_raw_borrowed(&data), core::mem::transmute_copy(&startingblockaddress), core::mem::transmute_copy(&numberofblocks)).into() } - unsafe extern "system" fn CancelWrite(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn CancelWrite(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWriteEngine2_Impl::CancelWrite(this).into() } - unsafe extern "system" fn SetRecorder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn SetRecorder(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWriteEngine2_Impl::SetRecorder(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn Recorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn Recorder(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2_Impl::Recorder(this) { Ok(ok__) => { @@ -6099,17 +4704,11 @@ impl IWriteEngine2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseStreamingWrite12(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn SetUseStreamingWrite12(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWriteEngine2_Impl::SetUseStreamingWrite12(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn UseStreamingWrite12(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn UseStreamingWrite12(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2_Impl::UseStreamingWrite12(this) { Ok(ok__) => { @@ -6119,17 +4718,11 @@ impl IWriteEngine2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartingSectorsPerSecond(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn SetStartingSectorsPerSecond(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWriteEngine2_Impl::SetStartingSectorsPerSecond(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn StartingSectorsPerSecond(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn StartingSectorsPerSecond(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2_Impl::StartingSectorsPerSecond(this) { Ok(ok__) => { @@ -6139,17 +4732,11 @@ impl IWriteEngine2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEndingSectorsPerSecond(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn SetEndingSectorsPerSecond(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWriteEngine2_Impl::SetEndingSectorsPerSecond(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn EndingSectorsPerSecond(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn EndingSectorsPerSecond(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2_Impl::EndingSectorsPerSecond(this) { Ok(ok__) => { @@ -6159,17 +4746,11 @@ impl IWriteEngine2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBytesPerSector(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn SetBytesPerSector(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWriteEngine2_Impl::SetBytesPerSector(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn BytesPerSector(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn BytesPerSector(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2_Impl::BytesPerSector(this) { Ok(ok__) => { @@ -6179,10 +4760,7 @@ impl IWriteEngine2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteInProgress(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWriteEngine2_Impl, - { + unsafe extern "system" fn WriteInProgress(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2_Impl::WriteInProgress(this) { Ok(ok__) => { @@ -6227,14 +4805,8 @@ pub trait IWriteEngine2EventArgs_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IWriteEngine2EventArgs {} #[cfg(feature = "Win32_System_Com")] impl IWriteEngine2EventArgs_Vtbl { - pub const fn new() -> IWriteEngine2EventArgs_Vtbl - where - Identity: IWriteEngine2EventArgs_Impl, - { - unsafe extern "system" fn StartLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2EventArgs_Impl, - { + pub const fn new() -> IWriteEngine2EventArgs_Vtbl { + unsafe extern "system" fn StartLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2EventArgs_Impl::StartLba(this) { Ok(ok__) => { @@ -6244,10 +4816,7 @@ impl IWriteEngine2EventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SectorCount(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2EventArgs_Impl, - { + unsafe extern "system" fn SectorCount(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2EventArgs_Impl::SectorCount(this) { Ok(ok__) => { @@ -6257,10 +4826,7 @@ impl IWriteEngine2EventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastReadLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2EventArgs_Impl, - { + unsafe extern "system" fn LastReadLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2EventArgs_Impl::LastReadLba(this) { Ok(ok__) => { @@ -6270,10 +4836,7 @@ impl IWriteEngine2EventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastWrittenLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2EventArgs_Impl, - { + unsafe extern "system" fn LastWrittenLba(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2EventArgs_Impl::LastWrittenLba(this) { Ok(ok__) => { @@ -6283,10 +4846,7 @@ impl IWriteEngine2EventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalSystemBuffer(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2EventArgs_Impl, - { + unsafe extern "system" fn TotalSystemBuffer(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2EventArgs_Impl::TotalSystemBuffer(this) { Ok(ok__) => { @@ -6296,10 +4856,7 @@ impl IWriteEngine2EventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UsedSystemBuffer(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2EventArgs_Impl, - { + unsafe extern "system" fn UsedSystemBuffer(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2EventArgs_Impl::UsedSystemBuffer(this) { Ok(ok__) => { @@ -6309,10 +4866,7 @@ impl IWriteEngine2EventArgs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FreeSystemBuffer(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteEngine2EventArgs_Impl, - { + unsafe extern "system" fn FreeSystemBuffer(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteEngine2EventArgs_Impl::FreeSystemBuffer(this) { Ok(ok__) => { @@ -6347,14 +4901,8 @@ pub trait IWriteSpeedDescriptor_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for IWriteSpeedDescriptor {} #[cfg(feature = "Win32_System_Com")] impl IWriteSpeedDescriptor_Vtbl { - pub const fn new() -> IWriteSpeedDescriptor_Vtbl - where - Identity: IWriteSpeedDescriptor_Impl, - { - unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT - where - Identity: IWriteSpeedDescriptor_Impl, - { + pub const fn new() -> IWriteSpeedDescriptor_Vtbl { + unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteSpeedDescriptor_Impl::MediaType(this) { Ok(ok__) => { @@ -6364,10 +4912,7 @@ impl IWriteSpeedDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWriteSpeedDescriptor_Impl, - { + unsafe extern "system" fn RotationTypeIsPureCAV(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteSpeedDescriptor_Impl::RotationTypeIsPureCAV(this) { Ok(ok__) => { @@ -6377,10 +4922,7 @@ impl IWriteSpeedDescriptor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWriteSpeedDescriptor_Impl, - { + unsafe extern "system" fn WriteSpeed(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWriteSpeedDescriptor_Impl::WriteSpeed(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/impl.rs index b8a436ce96..c801409190 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IFilter_Impl: Sized { +pub trait IFilter_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, grfflags: u32, cattributes: u32, aattributes: *const FULLPROPSPEC, pflags: *mut u32) -> i32; fn GetChunk(&self, pstat: *mut STAT_CHUNK) -> i32; fn GetText(&self, pcwcbuffer: *mut u32, awcbuffer: windows_core::PWSTR) -> i32; @@ -10,42 +10,24 @@ pub trait IFilter_Impl: Sized { impl windows_core::RuntimeName for IFilter {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IFilter_Vtbl { - pub const fn new() -> IFilter_Vtbl - where - Identity: IFilter_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, grfflags: u32, cattributes: u32, aattributes: *const FULLPROPSPEC, pflags: *mut u32) -> i32 - where - Identity: IFilter_Impl, - { + pub const fn new() -> IFilter_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, grfflags: u32, cattributes: u32, aattributes: *const FULLPROPSPEC, pflags: *mut u32) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilter_Impl::Init(this, core::mem::transmute_copy(&grfflags), core::mem::transmute_copy(&cattributes), core::mem::transmute_copy(&aattributes), core::mem::transmute_copy(&pflags)) } - unsafe extern "system" fn GetChunk(this: *mut core::ffi::c_void, pstat: *mut STAT_CHUNK) -> i32 - where - Identity: IFilter_Impl, - { + unsafe extern "system" fn GetChunk(this: *mut core::ffi::c_void, pstat: *mut STAT_CHUNK) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilter_Impl::GetChunk(this, core::mem::transmute_copy(&pstat)) } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pcwcbuffer: *mut u32, awcbuffer: windows_core::PWSTR) -> i32 - where - Identity: IFilter_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pcwcbuffer: *mut u32, awcbuffer: windows_core::PWSTR) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilter_Impl::GetText(this, core::mem::transmute_copy(&pcwcbuffer), core::mem::transmute_copy(&awcbuffer)) } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pppropvalue: *mut *mut windows_core::PROPVARIANT) -> i32 - where - Identity: IFilter_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pppropvalue: *mut *mut windows_core::PROPVARIANT) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilter_Impl::GetValue(this, core::mem::transmute_copy(&pppropvalue)) } - unsafe extern "system" fn BindRegion(this: *mut core::ffi::c_void, origpos: FILTERREGION, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> i32 - where - Identity: IFilter_Impl, - { + unsafe extern "system" fn BindRegion(this: *mut core::ffi::c_void, origpos: FILTERREGION, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilter_Impl::BindRegion(this, core::mem::transmute(&origpos), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)) } @@ -62,27 +44,18 @@ impl IFilter_Vtbl { iid == &::IID } } -pub trait IPhraseSink_Impl: Sized { +pub trait IPhraseSink_Impl: Sized + windows_core::IUnknownImpl { fn PutSmallPhrase(&self, pwcnoun: &windows_core::PCWSTR, cwcnoun: u32, pwcmodifier: &windows_core::PCWSTR, cwcmodifier: u32, ulattachmenttype: u32) -> windows_core::Result<()>; fn PutPhrase(&self, pwcphrase: &windows_core::PCWSTR, cwcphrase: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPhraseSink {} impl IPhraseSink_Vtbl { - pub const fn new() -> IPhraseSink_Vtbl - where - Identity: IPhraseSink_Impl, - { - unsafe extern "system" fn PutSmallPhrase(this: *mut core::ffi::c_void, pwcnoun: windows_core::PCWSTR, cwcnoun: u32, pwcmodifier: windows_core::PCWSTR, cwcmodifier: u32, ulattachmenttype: u32) -> windows_core::HRESULT - where - Identity: IPhraseSink_Impl, - { + pub const fn new() -> IPhraseSink_Vtbl { + unsafe extern "system" fn PutSmallPhrase(this: *mut core::ffi::c_void, pwcnoun: windows_core::PCWSTR, cwcnoun: u32, pwcmodifier: windows_core::PCWSTR, cwcmodifier: u32, ulattachmenttype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhraseSink_Impl::PutSmallPhrase(this, core::mem::transmute(&pwcnoun), core::mem::transmute_copy(&cwcnoun), core::mem::transmute(&pwcmodifier), core::mem::transmute_copy(&cwcmodifier), core::mem::transmute_copy(&ulattachmenttype)).into() } - unsafe extern "system" fn PutPhrase(this: *mut core::ffi::c_void, pwcphrase: windows_core::PCWSTR, cwcphrase: u32) -> windows_core::HRESULT - where - Identity: IPhraseSink_Impl, - { + unsafe extern "system" fn PutPhrase(this: *mut core::ffi::c_void, pwcphrase: windows_core::PCWSTR, cwcphrase: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhraseSink_Impl::PutPhrase(this, core::mem::transmute(&pwcphrase), core::mem::transmute_copy(&cwcphrase)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/impl.rs index ae6ea3ef15..c0f574a2e0 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/impl.rs @@ -1,4 +1,4 @@ -pub trait IEnumOfflineFilesItems_Impl: Sized { +pub trait IEnumOfflineFilesItems_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -6,35 +6,20 @@ pub trait IEnumOfflineFilesItems_Impl: Sized { } impl windows_core::RuntimeName for IEnumOfflineFilesItems {} impl IEnumOfflineFilesItems_Vtbl { - pub const fn new() -> IEnumOfflineFilesItems_Vtbl - where - Identity: IEnumOfflineFilesItems_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumOfflineFilesItems_Impl, - { + pub const fn new() -> IEnumOfflineFilesItems_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOfflineFilesItems_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumOfflineFilesItems_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOfflineFilesItems_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOfflineFilesItems_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOfflineFilesItems_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOfflineFilesItems_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumOfflineFilesItems_Impl::Clone(this) { Ok(ok__) => { @@ -56,7 +41,7 @@ impl IEnumOfflineFilesItems_Vtbl { iid == &::IID } } -pub trait IEnumOfflineFilesSettings_Impl: Sized { +pub trait IEnumOfflineFilesSettings_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -64,35 +49,20 @@ pub trait IEnumOfflineFilesSettings_Impl: Sized { } impl windows_core::RuntimeName for IEnumOfflineFilesSettings {} impl IEnumOfflineFilesSettings_Vtbl { - pub const fn new() -> IEnumOfflineFilesSettings_Vtbl - where - Identity: IEnumOfflineFilesSettings_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumOfflineFilesSettings_Impl, - { + pub const fn new() -> IEnumOfflineFilesSettings_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOfflineFilesSettings_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumOfflineFilesSettings_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOfflineFilesSettings_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOfflineFilesSettings_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOfflineFilesSettings_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOfflineFilesSettings_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumOfflineFilesSettings_Impl::Clone(this) { Ok(ok__) => { @@ -114,7 +84,7 @@ impl IEnumOfflineFilesSettings_Vtbl { iid == &::IID } } -pub trait IOfflineFilesCache_Impl: Sized { +pub trait IOfflineFilesCache_Impl: Sized + windows_core::IUnknownImpl { fn Synchronize(&self, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, basync: super::super::Foundation::BOOL, dwsynccontrol: u32, pisyncconflicthandler: Option<&IOfflineFilesSyncConflictHandler>, piprogress: Option<&IOfflineFilesSyncProgress>, psyncid: *const windows_core::GUID) -> windows_core::Result<()>; fn DeleteItems(&self, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: super::super::Foundation::BOOL, piprogress: Option<&IOfflineFilesSimpleProgress>) -> windows_core::Result<()>; fn DeleteItemsForUser(&self, pszuser: &windows_core::PCWSTR, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: super::super::Foundation::BOOL, piprogress: Option<&IOfflineFilesSimpleProgress>) -> windows_core::Result<()>; @@ -135,63 +105,36 @@ pub trait IOfflineFilesCache_Impl: Sized { } impl windows_core::RuntimeName for IOfflineFilesCache {} impl IOfflineFilesCache_Vtbl { - pub const fn new() -> IOfflineFilesCache_Vtbl - where - Identity: IOfflineFilesCache_Impl, - { - unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, basync: super::super::Foundation::BOOL, dwsynccontrol: u32, pisyncconflicthandler: *mut core::ffi::c_void, piprogress: *mut core::ffi::c_void, psyncid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + pub const fn new() -> IOfflineFilesCache_Vtbl { + unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, basync: super::super::Foundation::BOOL, dwsynccontrol: u32, pisyncconflicthandler: *mut core::ffi::c_void, piprogress: *mut core::ffi::c_void, psyncid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::Synchronize(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&rgpszpaths), core::mem::transmute_copy(&cpaths), core::mem::transmute_copy(&basync), core::mem::transmute_copy(&dwsynccontrol), windows_core::from_raw_borrowed(&pisyncconflicthandler), windows_core::from_raw_borrowed(&piprogress), core::mem::transmute_copy(&psyncid)).into() } - unsafe extern "system" fn DeleteItems(this: *mut core::ffi::c_void, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: super::super::Foundation::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn DeleteItems(this: *mut core::ffi::c_void, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: super::super::Foundation::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::DeleteItems(this, core::mem::transmute_copy(&rgpszpaths), core::mem::transmute_copy(&cpaths), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&basync), windows_core::from_raw_borrowed(&piprogress)).into() } - unsafe extern "system" fn DeleteItemsForUser(this: *mut core::ffi::c_void, pszuser: windows_core::PCWSTR, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: super::super::Foundation::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn DeleteItemsForUser(this: *mut core::ffi::c_void, pszuser: windows_core::PCWSTR, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: super::super::Foundation::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::DeleteItemsForUser(this, core::mem::transmute(&pszuser), core::mem::transmute_copy(&rgpszpaths), core::mem::transmute_copy(&cpaths), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&basync), windows_core::from_raw_borrowed(&piprogress)).into() } - unsafe extern "system" fn Pin(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: super::super::Foundation::BOOL, basync: super::super::Foundation::BOOL, dwpincontrolflags: u32, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn Pin(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: super::super::Foundation::BOOL, basync: super::super::Foundation::BOOL, dwpincontrolflags: u32, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::Pin(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&rgpszpaths), core::mem::transmute_copy(&cpaths), core::mem::transmute_copy(&bdeep), core::mem::transmute_copy(&basync), core::mem::transmute_copy(&dwpincontrolflags), windows_core::from_raw_borrowed(&piprogress)).into() } - unsafe extern "system" fn Unpin(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: super::super::Foundation::BOOL, basync: super::super::Foundation::BOOL, dwpincontrolflags: u32, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn Unpin(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: super::super::Foundation::BOOL, basync: super::super::Foundation::BOOL, dwpincontrolflags: u32, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::Unpin(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&rgpszpaths), core::mem::transmute_copy(&cpaths), core::mem::transmute_copy(&bdeep), core::mem::transmute_copy(&basync), core::mem::transmute_copy(&dwpincontrolflags), windows_core::from_raw_borrowed(&piprogress)).into() } - unsafe extern "system" fn GetEncryptionStatus(this: *mut core::ffi::c_void, pbencrypted: *mut super::super::Foundation::BOOL, pbpartial: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn GetEncryptionStatus(this: *mut core::ffi::c_void, pbencrypted: *mut super::super::Foundation::BOOL, pbpartial: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::GetEncryptionStatus(this, core::mem::transmute_copy(&pbencrypted), core::mem::transmute_copy(&pbpartial)).into() } - unsafe extern "system" fn Encrypt(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, bencrypt: super::super::Foundation::BOOL, dwencryptioncontrolflags: u32, basync: super::super::Foundation::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn Encrypt(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, bencrypt: super::super::Foundation::BOOL, dwencryptioncontrolflags: u32, basync: super::super::Foundation::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::Encrypt(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&bencrypt), core::mem::transmute_copy(&dwencryptioncontrolflags), core::mem::transmute_copy(&basync), windows_core::from_raw_borrowed(&piprogress)).into() } - unsafe extern "system" fn FindItem(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, dwqueryflags: u32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn FindItem(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, dwqueryflags: u32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesCache_Impl::FindItem(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&dwqueryflags)) { Ok(ok__) => { @@ -201,10 +144,7 @@ impl IOfflineFilesCache_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindItemEx(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pincludefilefilter: *mut core::ffi::c_void, pincludedirfilter: *mut core::ffi::c_void, pexcludefilefilter: *mut core::ffi::c_void, pexcludedirfilter: *mut core::ffi::c_void, dwqueryflags: u32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn FindItemEx(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pincludefilefilter: *mut core::ffi::c_void, pincludedirfilter: *mut core::ffi::c_void, pexcludefilefilter: *mut core::ffi::c_void, pexcludedirfilter: *mut core::ffi::c_void, dwqueryflags: u32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesCache_Impl::FindItemEx(this, core::mem::transmute(&pszpath), windows_core::from_raw_borrowed(&pincludefilefilter), windows_core::from_raw_borrowed(&pincludedirfilter), windows_core::from_raw_borrowed(&pexcludefilefilter), windows_core::from_raw_borrowed(&pexcludedirfilter), core::mem::transmute_copy(&dwqueryflags)) { Ok(ok__) => { @@ -214,17 +154,11 @@ impl IOfflineFilesCache_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RenameItem(this: *mut core::ffi::c_void, pszpathoriginal: windows_core::PCWSTR, pszpathnew: windows_core::PCWSTR, breplaceifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn RenameItem(this: *mut core::ffi::c_void, pszpathoriginal: windows_core::PCWSTR, pszpathnew: windows_core::PCWSTR, breplaceifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::RenameItem(this, core::mem::transmute(&pszpathoriginal), core::mem::transmute(&pszpathnew), core::mem::transmute_copy(&breplaceifexists)).into() } - unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesCache_Impl::GetLocation(this) { Ok(ok__) => { @@ -234,31 +168,19 @@ impl IOfflineFilesCache_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDiskSpaceInformation(this: *mut core::ffi::c_void, pcbvolumetotal: *mut u64, pcblimit: *mut u64, pcbused: *mut u64, pcbunpinnedlimit: *mut u64, pcbunpinnedused: *mut u64) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn GetDiskSpaceInformation(this: *mut core::ffi::c_void, pcbvolumetotal: *mut u64, pcblimit: *mut u64, pcbused: *mut u64, pcbunpinnedlimit: *mut u64, pcbunpinnedused: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::GetDiskSpaceInformation(this, core::mem::transmute_copy(&pcbvolumetotal), core::mem::transmute_copy(&pcblimit), core::mem::transmute_copy(&pcbused), core::mem::transmute_copy(&pcbunpinnedlimit), core::mem::transmute_copy(&pcbunpinnedused)).into() } - unsafe extern "system" fn SetDiskSpaceLimits(this: *mut core::ffi::c_void, cblimit: u64, cbunpinnedlimit: u64) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn SetDiskSpaceLimits(this: *mut core::ffi::c_void, cblimit: u64, cbunpinnedlimit: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::SetDiskSpaceLimits(this, core::mem::transmute_copy(&cblimit), core::mem::transmute_copy(&cbunpinnedlimit)).into() } - unsafe extern "system" fn ProcessAdminPinPolicy(this: *mut core::ffi::c_void, ppinprogress: *mut core::ffi::c_void, punpinprogress: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn ProcessAdminPinPolicy(this: *mut core::ffi::c_void, ppinprogress: *mut core::ffi::c_void, punpinprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::ProcessAdminPinPolicy(this, windows_core::from_raw_borrowed(&ppinprogress), windows_core::from_raw_borrowed(&punpinprogress)).into() } - unsafe extern "system" fn GetSettingObject(this: *mut core::ffi::c_void, pszsettingname: windows_core::PCWSTR, ppsetting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn GetSettingObject(this: *mut core::ffi::c_void, pszsettingname: windows_core::PCWSTR, ppsetting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesCache_Impl::GetSettingObject(this, core::mem::transmute(&pszsettingname)) { Ok(ok__) => { @@ -268,10 +190,7 @@ impl IOfflineFilesCache_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumSettingObjects(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn EnumSettingObjects(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesCache_Impl::EnumSettingObjects(this) { Ok(ok__) => { @@ -281,10 +200,7 @@ impl IOfflineFilesCache_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPathCacheable(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbcacheable: *mut super::super::Foundation::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache_Impl, - { + unsafe extern "system" fn IsPathCacheable(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbcacheable: *mut super::super::Foundation::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::IsPathCacheable(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&pbcacheable), core::mem::transmute_copy(&psharecachingmode)).into() } @@ -318,14 +234,8 @@ pub trait IOfflineFilesCache2_Impl: Sized + IOfflineFilesCache_Impl { } impl windows_core::RuntimeName for IOfflineFilesCache2 {} impl IOfflineFilesCache2_Vtbl { - pub const fn new() -> IOfflineFilesCache2_Vtbl - where - Identity: IOfflineFilesCache2_Impl, - { - unsafe extern "system" fn RenameItemEx(this: *mut core::ffi::c_void, pszpathoriginal: windows_core::PCWSTR, pszpathnew: windows_core::PCWSTR, breplaceifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesCache2_Impl, - { + pub const fn new() -> IOfflineFilesCache2_Vtbl { + unsafe extern "system" fn RenameItemEx(this: *mut core::ffi::c_void, pszpathoriginal: windows_core::PCWSTR, pszpathnew: windows_core::PCWSTR, breplaceifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache2_Impl::RenameItemEx(this, core::mem::transmute(&pszpathoriginal), core::mem::transmute(&pszpathnew), core::mem::transmute_copy(&breplaceifexists)).into() } @@ -335,7 +245,7 @@ impl IOfflineFilesCache2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IOfflineFilesChangeInfo_Impl: Sized { +pub trait IOfflineFilesChangeInfo_Impl: Sized + windows_core::IUnknownImpl { fn IsDirty(&self, pbdirty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT; fn IsDeletedOffline(&self) -> windows_core::Result; fn IsCreatedOffline(&self) -> windows_core::Result; @@ -345,21 +255,12 @@ pub trait IOfflineFilesChangeInfo_Impl: Sized { } impl windows_core::RuntimeName for IOfflineFilesChangeInfo {} impl IOfflineFilesChangeInfo_Vtbl { - pub const fn new() -> IOfflineFilesChangeInfo_Vtbl - where - Identity: IOfflineFilesChangeInfo_Impl, - { - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void, pbdirty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesChangeInfo_Impl, - { + pub const fn new() -> IOfflineFilesChangeInfo_Vtbl { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void, pbdirty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesChangeInfo_Impl::IsDirty(this, core::mem::transmute_copy(&pbdirty)) } - unsafe extern "system" fn IsDeletedOffline(this: *mut core::ffi::c_void, pbdeletedoffline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesChangeInfo_Impl, - { + unsafe extern "system" fn IsDeletedOffline(this: *mut core::ffi::c_void, pbdeletedoffline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesChangeInfo_Impl::IsDeletedOffline(this) { Ok(ok__) => { @@ -369,10 +270,7 @@ impl IOfflineFilesChangeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCreatedOffline(this: *mut core::ffi::c_void, pbcreatedoffline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesChangeInfo_Impl, - { + unsafe extern "system" fn IsCreatedOffline(this: *mut core::ffi::c_void, pbcreatedoffline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesChangeInfo_Impl::IsCreatedOffline(this) { Ok(ok__) => { @@ -382,10 +280,7 @@ impl IOfflineFilesChangeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLocallyModifiedData(this: *mut core::ffi::c_void, pblocallymodifieddata: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesChangeInfo_Impl, - { + unsafe extern "system" fn IsLocallyModifiedData(this: *mut core::ffi::c_void, pblocallymodifieddata: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesChangeInfo_Impl::IsLocallyModifiedData(this) { Ok(ok__) => { @@ -395,10 +290,7 @@ impl IOfflineFilesChangeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLocallyModifiedAttributes(this: *mut core::ffi::c_void, pblocallymodifiedattributes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesChangeInfo_Impl, - { + unsafe extern "system" fn IsLocallyModifiedAttributes(this: *mut core::ffi::c_void, pblocallymodifiedattributes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesChangeInfo_Impl::IsLocallyModifiedAttributes(this) { Ok(ok__) => { @@ -408,10 +300,7 @@ impl IOfflineFilesChangeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLocallyModifiedTime(this: *mut core::ffi::c_void, pblocallymodifiedtime: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesChangeInfo_Impl, - { + unsafe extern "system" fn IsLocallyModifiedTime(this: *mut core::ffi::c_void, pblocallymodifiedtime: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesChangeInfo_Impl::IsLocallyModifiedTime(this) { Ok(ok__) => { @@ -435,7 +324,7 @@ impl IOfflineFilesChangeInfo_Vtbl { iid == &::IID } } -pub trait IOfflineFilesConnectionInfo_Impl: Sized { +pub trait IOfflineFilesConnectionInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetConnectState(&self, pconnectstate: *mut OFFLINEFILES_CONNECT_STATE, pofflinereason: *mut OFFLINEFILES_OFFLINE_REASON) -> windows_core::Result<()>; fn SetConnectState(&self, hwndparent: super::super::Foundation::HWND, dwflags: u32, connectstate: OFFLINEFILES_CONNECT_STATE) -> windows_core::Result<()>; fn TransitionOnline(&self, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()>; @@ -443,35 +332,20 @@ pub trait IOfflineFilesConnectionInfo_Impl: Sized { } impl windows_core::RuntimeName for IOfflineFilesConnectionInfo {} impl IOfflineFilesConnectionInfo_Vtbl { - pub const fn new() -> IOfflineFilesConnectionInfo_Vtbl - where - Identity: IOfflineFilesConnectionInfo_Impl, - { - unsafe extern "system" fn GetConnectState(this: *mut core::ffi::c_void, pconnectstate: *mut OFFLINEFILES_CONNECT_STATE, pofflinereason: *mut OFFLINEFILES_OFFLINE_REASON) -> windows_core::HRESULT - where - Identity: IOfflineFilesConnectionInfo_Impl, - { + pub const fn new() -> IOfflineFilesConnectionInfo_Vtbl { + unsafe extern "system" fn GetConnectState(this: *mut core::ffi::c_void, pconnectstate: *mut OFFLINEFILES_CONNECT_STATE, pofflinereason: *mut OFFLINEFILES_OFFLINE_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesConnectionInfo_Impl::GetConnectState(this, core::mem::transmute_copy(&pconnectstate), core::mem::transmute_copy(&pofflinereason)).into() } - unsafe extern "system" fn SetConnectState(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32, connectstate: OFFLINEFILES_CONNECT_STATE) -> windows_core::HRESULT - where - Identity: IOfflineFilesConnectionInfo_Impl, - { + unsafe extern "system" fn SetConnectState(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32, connectstate: OFFLINEFILES_CONNECT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesConnectionInfo_Impl::SetConnectState(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&connectstate)).into() } - unsafe extern "system" fn TransitionOnline(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesConnectionInfo_Impl, - { + unsafe extern "system" fn TransitionOnline(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesConnectionInfo_Impl::TransitionOnline(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn TransitionOffline(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32, bforceopenfilesclosed: super::super::Foundation::BOOL, pbopenfilespreventedtransition: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesConnectionInfo_Impl, - { + unsafe extern "system" fn TransitionOffline(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32, bforceopenfilesclosed: super::super::Foundation::BOOL, pbopenfilespreventedtransition: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesConnectionInfo_Impl::TransitionOffline(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&bforceopenfilesclosed)) { Ok(ok__) => { @@ -496,30 +370,21 @@ impl IOfflineFilesConnectionInfo_Vtbl { pub trait IOfflineFilesDirectoryItem_Impl: Sized + IOfflineFilesItem_Impl {} impl windows_core::RuntimeName for IOfflineFilesDirectoryItem {} impl IOfflineFilesDirectoryItem_Vtbl { - pub const fn new() -> IOfflineFilesDirectoryItem_Vtbl - where - Identity: IOfflineFilesDirectoryItem_Impl, - { + pub const fn new() -> IOfflineFilesDirectoryItem_Vtbl { Self { base__: IOfflineFilesItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IOfflineFilesDirtyInfo_Impl: Sized { +pub trait IOfflineFilesDirtyInfo_Impl: Sized + windows_core::IUnknownImpl { fn LocalDirtyByteCount(&self) -> windows_core::Result; fn RemoteDirtyByteCount(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOfflineFilesDirtyInfo {} impl IOfflineFilesDirtyInfo_Vtbl { - pub const fn new() -> IOfflineFilesDirtyInfo_Vtbl - where - Identity: IOfflineFilesDirtyInfo_Impl, - { - unsafe extern "system" fn LocalDirtyByteCount(this: *mut core::ffi::c_void, pdirtybytecount: *mut i64) -> windows_core::HRESULT - where - Identity: IOfflineFilesDirtyInfo_Impl, - { + pub const fn new() -> IOfflineFilesDirtyInfo_Vtbl { + unsafe extern "system" fn LocalDirtyByteCount(this: *mut core::ffi::c_void, pdirtybytecount: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesDirtyInfo_Impl::LocalDirtyByteCount(this) { Ok(ok__) => { @@ -529,10 +394,7 @@ impl IOfflineFilesDirtyInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoteDirtyByteCount(this: *mut core::ffi::c_void, pdirtybytecount: *mut i64) -> windows_core::HRESULT - where - Identity: IOfflineFilesDirtyInfo_Impl, - { + unsafe extern "system" fn RemoteDirtyByteCount(this: *mut core::ffi::c_void, pdirtybytecount: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesDirtyInfo_Impl::RemoteDirtyByteCount(this) { Ok(ok__) => { @@ -553,7 +415,7 @@ impl IOfflineFilesDirtyInfo_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOfflineFilesErrorInfo_Impl: Sized { +pub trait IOfflineFilesErrorInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetRawData(&self) -> windows_core::Result<*mut super::super::System::Com::BYTE_BLOB>; fn GetDescription(&self) -> windows_core::Result; } @@ -561,14 +423,8 @@ pub trait IOfflineFilesErrorInfo_Impl: Sized { impl windows_core::RuntimeName for IOfflineFilesErrorInfo {} #[cfg(feature = "Win32_System_Com")] impl IOfflineFilesErrorInfo_Vtbl { - pub const fn new() -> IOfflineFilesErrorInfo_Vtbl - where - Identity: IOfflineFilesErrorInfo_Impl, - { - unsafe extern "system" fn GetRawData(this: *mut core::ffi::c_void, ppblob: *mut *mut super::super::System::Com::BYTE_BLOB) -> windows_core::HRESULT - where - Identity: IOfflineFilesErrorInfo_Impl, - { + pub const fn new() -> IOfflineFilesErrorInfo_Vtbl { + unsafe extern "system" fn GetRawData(this: *mut core::ffi::c_void, ppblob: *mut *mut super::super::System::Com::BYTE_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesErrorInfo_Impl::GetRawData(this) { Ok(ok__) => { @@ -578,10 +434,7 @@ impl IOfflineFilesErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOfflineFilesErrorInfo_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesErrorInfo_Impl::GetDescription(this) { Ok(ok__) => { @@ -601,7 +454,7 @@ impl IOfflineFilesErrorInfo_Vtbl { iid == &::IID } } -pub trait IOfflineFilesEvents_Impl: Sized { +pub trait IOfflineFilesEvents_Impl: Sized + windows_core::IUnknownImpl { fn CacheMoved(&self, pszoldpath: &windows_core::PCWSTR, psznewpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn CacheIsFull(&self) -> windows_core::Result<()>; fn CacheIsCorrupted(&self) -> windows_core::Result<()>; @@ -630,182 +483,104 @@ pub trait IOfflineFilesEvents_Impl: Sized { } impl windows_core::RuntimeName for IOfflineFilesEvents {} impl IOfflineFilesEvents_Vtbl { - pub const fn new() -> IOfflineFilesEvents_Vtbl - where - Identity: IOfflineFilesEvents_Impl, - { - unsafe extern "system" fn CacheMoved(this: *mut core::ffi::c_void, pszoldpath: windows_core::PCWSTR, psznewpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + pub const fn new() -> IOfflineFilesEvents_Vtbl { + unsafe extern "system" fn CacheMoved(this: *mut core::ffi::c_void, pszoldpath: windows_core::PCWSTR, psznewpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::CacheMoved(this, core::mem::transmute(&pszoldpath), core::mem::transmute(&psznewpath)).into() } - unsafe extern "system" fn CacheIsFull(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn CacheIsFull(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::CacheIsFull(this).into() } - unsafe extern "system" fn CacheIsCorrupted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn CacheIsCorrupted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::CacheIsCorrupted(this).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::Enabled(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn EncryptionChanged(this: *mut core::ffi::c_void, bwasencrypted: super::super::Foundation::BOOL, bwaspartial: super::super::Foundation::BOOL, bisencrypted: super::super::Foundation::BOOL, bispartial: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn EncryptionChanged(this: *mut core::ffi::c_void, bwasencrypted: super::super::Foundation::BOOL, bwaspartial: super::super::Foundation::BOOL, bisencrypted: super::super::Foundation::BOOL, bispartial: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::EncryptionChanged(this, core::mem::transmute_copy(&bwasencrypted), core::mem::transmute_copy(&bwaspartial), core::mem::transmute_copy(&bisencrypted), core::mem::transmute_copy(&bispartial)).into() } - unsafe extern "system" fn SyncBegin(this: *mut core::ffi::c_void, rsyncid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn SyncBegin(this: *mut core::ffi::c_void, rsyncid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::SyncBegin(this, core::mem::transmute_copy(&rsyncid)).into() } - unsafe extern "system" fn SyncFileResult(this: *mut core::ffi::c_void, rsyncid: *const windows_core::GUID, pszfile: windows_core::PCWSTR, hrresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn SyncFileResult(this: *mut core::ffi::c_void, rsyncid: *const windows_core::GUID, pszfile: windows_core::PCWSTR, hrresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::SyncFileResult(this, core::mem::transmute_copy(&rsyncid), core::mem::transmute(&pszfile), core::mem::transmute_copy(&hrresult)).into() } - unsafe extern "system" fn SyncConflictRecAdded(this: *mut core::ffi::c_void, pszconflictpath: windows_core::PCWSTR, pftconflictdatetime: *const super::super::Foundation::FILETIME, conflictsyncstate: OFFLINEFILES_SYNC_STATE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn SyncConflictRecAdded(this: *mut core::ffi::c_void, pszconflictpath: windows_core::PCWSTR, pftconflictdatetime: *const super::super::Foundation::FILETIME, conflictsyncstate: OFFLINEFILES_SYNC_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::SyncConflictRecAdded(this, core::mem::transmute(&pszconflictpath), core::mem::transmute_copy(&pftconflictdatetime), core::mem::transmute_copy(&conflictsyncstate)).into() } - unsafe extern "system" fn SyncConflictRecUpdated(this: *mut core::ffi::c_void, pszconflictpath: windows_core::PCWSTR, pftconflictdatetime: *const super::super::Foundation::FILETIME, conflictsyncstate: OFFLINEFILES_SYNC_STATE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn SyncConflictRecUpdated(this: *mut core::ffi::c_void, pszconflictpath: windows_core::PCWSTR, pftconflictdatetime: *const super::super::Foundation::FILETIME, conflictsyncstate: OFFLINEFILES_SYNC_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::SyncConflictRecUpdated(this, core::mem::transmute(&pszconflictpath), core::mem::transmute_copy(&pftconflictdatetime), core::mem::transmute_copy(&conflictsyncstate)).into() } - unsafe extern "system" fn SyncConflictRecRemoved(this: *mut core::ffi::c_void, pszconflictpath: windows_core::PCWSTR, pftconflictdatetime: *const super::super::Foundation::FILETIME, conflictsyncstate: OFFLINEFILES_SYNC_STATE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn SyncConflictRecRemoved(this: *mut core::ffi::c_void, pszconflictpath: windows_core::PCWSTR, pftconflictdatetime: *const super::super::Foundation::FILETIME, conflictsyncstate: OFFLINEFILES_SYNC_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::SyncConflictRecRemoved(this, core::mem::transmute(&pszconflictpath), core::mem::transmute_copy(&pftconflictdatetime), core::mem::transmute_copy(&conflictsyncstate)).into() } - unsafe extern "system" fn SyncEnd(this: *mut core::ffi::c_void, rsyncid: *const windows_core::GUID, hrresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn SyncEnd(this: *mut core::ffi::c_void, rsyncid: *const windows_core::GUID, hrresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::SyncEnd(this, core::mem::transmute_copy(&rsyncid), core::mem::transmute_copy(&hrresult)).into() } - unsafe extern "system" fn NetTransportArrived(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn NetTransportArrived(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::NetTransportArrived(this).into() } - unsafe extern "system" fn NoNetTransports(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn NoNetTransports(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::NoNetTransports(this).into() } - unsafe extern "system" fn ItemDisconnected(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn ItemDisconnected(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemDisconnected(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype)).into() } - unsafe extern "system" fn ItemReconnected(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn ItemReconnected(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemReconnected(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype)).into() } - unsafe extern "system" fn ItemAvailableOffline(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn ItemAvailableOffline(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemAvailableOffline(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype)).into() } - unsafe extern "system" fn ItemNotAvailableOffline(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn ItemNotAvailableOffline(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemNotAvailableOffline(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype)).into() } - unsafe extern "system" fn ItemPinned(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn ItemPinned(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemPinned(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype)).into() } - unsafe extern "system" fn ItemNotPinned(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn ItemNotPinned(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemNotPinned(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype)).into() } - unsafe extern "system" fn ItemModified(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: super::super::Foundation::BOOL, bmodifiedattributes: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn ItemModified(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: super::super::Foundation::BOOL, bmodifiedattributes: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemModified(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype), core::mem::transmute_copy(&bmodifieddata), core::mem::transmute_copy(&bmodifiedattributes)).into() } - unsafe extern "system" fn ItemAddedToCache(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn ItemAddedToCache(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemAddedToCache(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype)).into() } - unsafe extern "system" fn ItemDeletedFromCache(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn ItemDeletedFromCache(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemDeletedFromCache(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype)).into() } - unsafe extern "system" fn ItemRenamed(this: *mut core::ffi::c_void, pszoldpath: windows_core::PCWSTR, psznewpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn ItemRenamed(this: *mut core::ffi::c_void, pszoldpath: windows_core::PCWSTR, psznewpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemRenamed(this, core::mem::transmute(&pszoldpath), core::mem::transmute(&psznewpath), core::mem::transmute_copy(&itemtype)).into() } - unsafe extern "system" fn DataLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn DataLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::DataLost(this).into() } - unsafe extern "system" fn Ping(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents_Impl, - { + unsafe extern "system" fn Ping(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::Ping(this).into() } @@ -855,70 +630,40 @@ pub trait IOfflineFilesEvents2_Impl: Sized + IOfflineFilesEvents_Impl { } impl windows_core::RuntimeName for IOfflineFilesEvents2 {} impl IOfflineFilesEvents2_Vtbl { - pub const fn new() -> IOfflineFilesEvents2_Vtbl - where - Identity: IOfflineFilesEvents2_Impl, - { - unsafe extern "system" fn ItemReconnectBegin(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents2_Impl, - { + pub const fn new() -> IOfflineFilesEvents2_Vtbl { + unsafe extern "system" fn ItemReconnectBegin(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents2_Impl::ItemReconnectBegin(this).into() } - unsafe extern "system" fn ItemReconnectEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents2_Impl, - { + unsafe extern "system" fn ItemReconnectEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents2_Impl::ItemReconnectEnd(this).into() } - unsafe extern "system" fn CacheEvictBegin(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents2_Impl, - { + unsafe extern "system" fn CacheEvictBegin(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents2_Impl::CacheEvictBegin(this).into() } - unsafe extern "system" fn CacheEvictEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents2_Impl, - { + unsafe extern "system" fn CacheEvictEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents2_Impl::CacheEvictEnd(this).into() } - unsafe extern "system" fn BackgroundSyncBegin(this: *mut core::ffi::c_void, dwsynccontrolflags: u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents2_Impl, - { + unsafe extern "system" fn BackgroundSyncBegin(this: *mut core::ffi::c_void, dwsynccontrolflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents2_Impl::BackgroundSyncBegin(this, core::mem::transmute_copy(&dwsynccontrolflags)).into() } - unsafe extern "system" fn BackgroundSyncEnd(this: *mut core::ffi::c_void, dwsynccontrolflags: u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents2_Impl, - { + unsafe extern "system" fn BackgroundSyncEnd(this: *mut core::ffi::c_void, dwsynccontrolflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents2_Impl::BackgroundSyncEnd(this, core::mem::transmute_copy(&dwsynccontrolflags)).into() } - unsafe extern "system" fn PolicyChangeDetected(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents2_Impl, - { + unsafe extern "system" fn PolicyChangeDetected(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents2_Impl::PolicyChangeDetected(this).into() } - unsafe extern "system" fn PreferenceChangeDetected(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents2_Impl, - { + unsafe extern "system" fn PreferenceChangeDetected(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents2_Impl::PreferenceChangeDetected(this).into() } - unsafe extern "system" fn SettingsChangesApplied(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents2_Impl, - { + unsafe extern "system" fn SettingsChangesApplied(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents2_Impl::SettingsChangesApplied(this).into() } @@ -946,28 +691,16 @@ pub trait IOfflineFilesEvents3_Impl: Sized + IOfflineFilesEvents2_Impl { } impl windows_core::RuntimeName for IOfflineFilesEvents3 {} impl IOfflineFilesEvents3_Vtbl { - pub const fn new() -> IOfflineFilesEvents3_Vtbl - where - Identity: IOfflineFilesEvents3_Impl, - { - unsafe extern "system" fn TransparentCacheItemNotify(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, eventtype: OFFLINEFILES_EVENTS, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: super::super::Foundation::BOOL, bmodifiedattributes: super::super::Foundation::BOOL, pzsoldpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents3_Impl, - { + pub const fn new() -> IOfflineFilesEvents3_Vtbl { + unsafe extern "system" fn TransparentCacheItemNotify(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, eventtype: OFFLINEFILES_EVENTS, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: super::super::Foundation::BOOL, bmodifiedattributes: super::super::Foundation::BOOL, pzsoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents3_Impl::TransparentCacheItemNotify(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&eventtype), core::mem::transmute_copy(&itemtype), core::mem::transmute_copy(&bmodifieddata), core::mem::transmute_copy(&bmodifiedattributes), core::mem::transmute(&pzsoldpath)).into() } - unsafe extern "system" fn PrefetchFileBegin(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents3_Impl, - { + unsafe extern "system" fn PrefetchFileBegin(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents3_Impl::PrefetchFileBegin(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn PrefetchFileEnd(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, hrresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents3_Impl, - { + unsafe extern "system" fn PrefetchFileEnd(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, hrresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents3_Impl::PrefetchFileEnd(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&hrresult)).into() } @@ -988,21 +721,12 @@ pub trait IOfflineFilesEvents4_Impl: Sized + IOfflineFilesEvents3_Impl { } impl windows_core::RuntimeName for IOfflineFilesEvents4 {} impl IOfflineFilesEvents4_Vtbl { - pub const fn new() -> IOfflineFilesEvents4_Vtbl - where - Identity: IOfflineFilesEvents4_Impl, - { - unsafe extern "system" fn PrefetchCloseHandleBegin(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents4_Impl, - { + pub const fn new() -> IOfflineFilesEvents4_Vtbl { + unsafe extern "system" fn PrefetchCloseHandleBegin(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents4_Impl::PrefetchCloseHandleBegin(this).into() } - unsafe extern "system" fn PrefetchCloseHandleEnd(this: *mut core::ffi::c_void, dwclosedhandlecount: u32, dwopenhandlecount: u32, hrresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IOfflineFilesEvents4_Impl, - { + unsafe extern "system" fn PrefetchCloseHandleEnd(this: *mut core::ffi::c_void, dwclosedhandlecount: u32, dwopenhandlecount: u32, hrresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents4_Impl::PrefetchCloseHandleEnd(this, core::mem::transmute_copy(&dwclosedhandlecount), core::mem::transmute_copy(&dwopenhandlecount), core::mem::transmute_copy(&hrresult)).into() } @@ -1016,35 +740,23 @@ impl IOfflineFilesEvents4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IOfflineFilesEventsFilter_Impl: Sized { +pub trait IOfflineFilesEventsFilter_Impl: Sized + windows_core::IUnknownImpl { fn GetPathFilter(&self, ppszfilter: *mut windows_core::PWSTR, pmatch: *mut OFFLINEFILES_PATHFILTER_MATCH) -> windows_core::Result<()>; fn GetIncludedEvents(&self, celements: u32, prgevents: *mut OFFLINEFILES_EVENTS, pcevents: *mut u32) -> windows_core::Result<()>; fn GetExcludedEvents(&self, celements: u32, prgevents: *mut OFFLINEFILES_EVENTS, pcevents: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOfflineFilesEventsFilter {} impl IOfflineFilesEventsFilter_Vtbl { - pub const fn new() -> IOfflineFilesEventsFilter_Vtbl - where - Identity: IOfflineFilesEventsFilter_Impl, - { - unsafe extern "system" fn GetPathFilter(this: *mut core::ffi::c_void, ppszfilter: *mut windows_core::PWSTR, pmatch: *mut OFFLINEFILES_PATHFILTER_MATCH) -> windows_core::HRESULT - where - Identity: IOfflineFilesEventsFilter_Impl, - { + pub const fn new() -> IOfflineFilesEventsFilter_Vtbl { + unsafe extern "system" fn GetPathFilter(this: *mut core::ffi::c_void, ppszfilter: *mut windows_core::PWSTR, pmatch: *mut OFFLINEFILES_PATHFILTER_MATCH) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEventsFilter_Impl::GetPathFilter(this, core::mem::transmute_copy(&ppszfilter), core::mem::transmute_copy(&pmatch)).into() } - unsafe extern "system" fn GetIncludedEvents(this: *mut core::ffi::c_void, celements: u32, prgevents: *mut OFFLINEFILES_EVENTS, pcevents: *mut u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesEventsFilter_Impl, - { + unsafe extern "system" fn GetIncludedEvents(this: *mut core::ffi::c_void, celements: u32, prgevents: *mut OFFLINEFILES_EVENTS, pcevents: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEventsFilter_Impl::GetIncludedEvents(this, core::mem::transmute_copy(&celements), core::mem::transmute_copy(&prgevents), core::mem::transmute_copy(&pcevents)).into() } - unsafe extern "system" fn GetExcludedEvents(this: *mut core::ffi::c_void, celements: u32, prgevents: *mut OFFLINEFILES_EVENTS, pcevents: *mut u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesEventsFilter_Impl, - { + unsafe extern "system" fn GetExcludedEvents(this: *mut core::ffi::c_void, celements: u32, prgevents: *mut OFFLINEFILES_EVENTS, pcevents: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEventsFilter_Impl::GetExcludedEvents(this, core::mem::transmute_copy(&celements), core::mem::transmute_copy(&prgevents), core::mem::transmute_copy(&pcevents)).into() } @@ -1065,14 +777,8 @@ pub trait IOfflineFilesFileItem_Impl: Sized + IOfflineFilesItem_Impl { } impl windows_core::RuntimeName for IOfflineFilesFileItem {} impl IOfflineFilesFileItem_Vtbl { - pub const fn new() -> IOfflineFilesFileItem_Vtbl - where - Identity: IOfflineFilesFileItem_Impl, - { - unsafe extern "system" fn IsSparse(this: *mut core::ffi::c_void, pbissparse: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesFileItem_Impl, - { + pub const fn new() -> IOfflineFilesFileItem_Vtbl { + unsafe extern "system" fn IsSparse(this: *mut core::ffi::c_void, pbissparse: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesFileItem_Impl::IsSparse(this) { Ok(ok__) => { @@ -1082,10 +788,7 @@ impl IOfflineFilesFileItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEncrypted(this: *mut core::ffi::c_void, pbisencrypted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesFileItem_Impl, - { + unsafe extern "system" fn IsEncrypted(this: *mut core::ffi::c_void, pbisencrypted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesFileItem_Impl::IsEncrypted(this) { Ok(ok__) => { @@ -1101,21 +804,15 @@ impl IOfflineFilesFileItem_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IOfflineFilesFileSysInfo_Impl: Sized { +pub trait IOfflineFilesFileSysInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetAttributes(&self, copy: OFFLINEFILES_ITEM_COPY) -> windows_core::Result; fn GetTimes(&self, copy: OFFLINEFILES_ITEM_COPY, pftcreationtime: *mut super::super::Foundation::FILETIME, pftlastwritetime: *mut super::super::Foundation::FILETIME, pftchangetime: *mut super::super::Foundation::FILETIME, pftlastaccesstime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()>; fn GetFileSize(&self, copy: OFFLINEFILES_ITEM_COPY) -> windows_core::Result; } impl windows_core::RuntimeName for IOfflineFilesFileSysInfo {} impl IOfflineFilesFileSysInfo_Vtbl { - pub const fn new() -> IOfflineFilesFileSysInfo_Vtbl - where - Identity: IOfflineFilesFileSysInfo_Impl, - { - unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, copy: OFFLINEFILES_ITEM_COPY, pdwattributes: *mut u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesFileSysInfo_Impl, - { + pub const fn new() -> IOfflineFilesFileSysInfo_Vtbl { + unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, copy: OFFLINEFILES_ITEM_COPY, pdwattributes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesFileSysInfo_Impl::GetAttributes(this, core::mem::transmute_copy(©)) { Ok(ok__) => { @@ -1125,17 +822,11 @@ impl IOfflineFilesFileSysInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimes(this: *mut core::ffi::c_void, copy: OFFLINEFILES_ITEM_COPY, pftcreationtime: *mut super::super::Foundation::FILETIME, pftlastwritetime: *mut super::super::Foundation::FILETIME, pftchangetime: *mut super::super::Foundation::FILETIME, pftlastaccesstime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IOfflineFilesFileSysInfo_Impl, - { + unsafe extern "system" fn GetTimes(this: *mut core::ffi::c_void, copy: OFFLINEFILES_ITEM_COPY, pftcreationtime: *mut super::super::Foundation::FILETIME, pftlastwritetime: *mut super::super::Foundation::FILETIME, pftchangetime: *mut super::super::Foundation::FILETIME, pftlastaccesstime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesFileSysInfo_Impl::GetTimes(this, core::mem::transmute_copy(©), core::mem::transmute_copy(&pftcreationtime), core::mem::transmute_copy(&pftlastwritetime), core::mem::transmute_copy(&pftchangetime), core::mem::transmute_copy(&pftlastaccesstime)).into() } - unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, copy: OFFLINEFILES_ITEM_COPY, psize: *mut i64) -> windows_core::HRESULT - where - Identity: IOfflineFilesFileSysInfo_Impl, - { + unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, copy: OFFLINEFILES_ITEM_COPY, psize: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesFileSysInfo_Impl::GetFileSize(this, core::mem::transmute_copy(©)) { Ok(ok__) => { @@ -1156,19 +847,13 @@ impl IOfflineFilesFileSysInfo_Vtbl { iid == &::IID } } -pub trait IOfflineFilesGhostInfo_Impl: Sized { +pub trait IOfflineFilesGhostInfo_Impl: Sized + windows_core::IUnknownImpl { fn IsGhosted(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOfflineFilesGhostInfo {} impl IOfflineFilesGhostInfo_Vtbl { - pub const fn new() -> IOfflineFilesGhostInfo_Vtbl - where - Identity: IOfflineFilesGhostInfo_Impl, - { - unsafe extern "system" fn IsGhosted(this: *mut core::ffi::c_void, pbghosted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesGhostInfo_Impl, - { + pub const fn new() -> IOfflineFilesGhostInfo_Vtbl { + unsafe extern "system" fn IsGhosted(this: *mut core::ffi::c_void, pbghosted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesGhostInfo_Impl::IsGhosted(this) { Ok(ok__) => { @@ -1184,7 +869,7 @@ impl IOfflineFilesGhostInfo_Vtbl { iid == &::IID } } -pub trait IOfflineFilesItem_Impl: Sized { +pub trait IOfflineFilesItem_Impl: Sized + windows_core::IUnknownImpl { fn GetItemType(&self) -> windows_core::Result; fn GetPath(&self) -> windows_core::Result; fn GetParentItem(&self) -> windows_core::Result; @@ -1193,14 +878,8 @@ pub trait IOfflineFilesItem_Impl: Sized { } impl windows_core::RuntimeName for IOfflineFilesItem {} impl IOfflineFilesItem_Vtbl { - pub const fn new() -> IOfflineFilesItem_Vtbl - where - Identity: IOfflineFilesItem_Impl, - { - unsafe extern "system" fn GetItemType(this: *mut core::ffi::c_void, pitemtype: *mut OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesItem_Impl, - { + pub const fn new() -> IOfflineFilesItem_Vtbl { + unsafe extern "system" fn GetItemType(this: *mut core::ffi::c_void, pitemtype: *mut OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesItem_Impl::GetItemType(this) { Ok(ok__) => { @@ -1210,10 +889,7 @@ impl IOfflineFilesItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOfflineFilesItem_Impl, - { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesItem_Impl::GetPath(this) { Ok(ok__) => { @@ -1223,10 +899,7 @@ impl IOfflineFilesItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentItem(this: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesItem_Impl, - { + unsafe extern "system" fn GetParentItem(this: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesItem_Impl::GetParentItem(this) { Ok(ok__) => { @@ -1236,17 +909,11 @@ impl IOfflineFilesItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void, dwqueryflags: u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesItem_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void, dwqueryflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesItem_Impl::Refresh(this, core::mem::transmute_copy(&dwqueryflags)).into() } - unsafe extern "system" fn IsMarkedForDeletion(this: *mut core::ffi::c_void, pbmarkedfordeletion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesItem_Impl, - { + unsafe extern "system" fn IsMarkedForDeletion(this: *mut core::ffi::c_void, pbmarkedfordeletion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesItem_Impl::IsMarkedForDeletion(this) { Ok(ok__) => { @@ -1269,20 +936,14 @@ impl IOfflineFilesItem_Vtbl { iid == &::IID } } -pub trait IOfflineFilesItemContainer_Impl: Sized { +pub trait IOfflineFilesItemContainer_Impl: Sized + windows_core::IUnknownImpl { fn EnumItems(&self, dwqueryflags: u32) -> windows_core::Result; fn EnumItemsEx(&self, pincludefilefilter: Option<&IOfflineFilesItemFilter>, pincludedirfilter: Option<&IOfflineFilesItemFilter>, pexcludefilefilter: Option<&IOfflineFilesItemFilter>, pexcludedirfilter: Option<&IOfflineFilesItemFilter>, dwenumflags: u32, dwqueryflags: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IOfflineFilesItemContainer {} impl IOfflineFilesItemContainer_Vtbl { - pub const fn new() -> IOfflineFilesItemContainer_Vtbl - where - Identity: IOfflineFilesItemContainer_Impl, - { - unsafe extern "system" fn EnumItems(this: *mut core::ffi::c_void, dwqueryflags: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesItemContainer_Impl, - { + pub const fn new() -> IOfflineFilesItemContainer_Vtbl { + unsafe extern "system" fn EnumItems(this: *mut core::ffi::c_void, dwqueryflags: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesItemContainer_Impl::EnumItems(this, core::mem::transmute_copy(&dwqueryflags)) { Ok(ok__) => { @@ -1292,10 +953,7 @@ impl IOfflineFilesItemContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumItemsEx(this: *mut core::ffi::c_void, pincludefilefilter: *mut core::ffi::c_void, pincludedirfilter: *mut core::ffi::c_void, pexcludefilefilter: *mut core::ffi::c_void, pexcludedirfilter: *mut core::ffi::c_void, dwenumflags: u32, dwqueryflags: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesItemContainer_Impl, - { + unsafe extern "system" fn EnumItemsEx(this: *mut core::ffi::c_void, pincludefilefilter: *mut core::ffi::c_void, pincludedirfilter: *mut core::ffi::c_void, pexcludefilefilter: *mut core::ffi::c_void, pexcludedirfilter: *mut core::ffi::c_void, dwenumflags: u32, dwqueryflags: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesItemContainer_Impl::EnumItemsEx(this, windows_core::from_raw_borrowed(&pincludefilefilter), windows_core::from_raw_borrowed(&pincludedirfilter), windows_core::from_raw_borrowed(&pexcludefilefilter), windows_core::from_raw_borrowed(&pexcludedirfilter), core::mem::transmute_copy(&dwenumflags), core::mem::transmute_copy(&dwqueryflags)) { Ok(ok__) => { @@ -1315,35 +973,23 @@ impl IOfflineFilesItemContainer_Vtbl { iid == &::IID } } -pub trait IOfflineFilesItemFilter_Impl: Sized { +pub trait IOfflineFilesItemFilter_Impl: Sized + windows_core::IUnknownImpl { fn GetFilterFlags(&self, pullflags: *mut u64, pullmask: *mut u64) -> windows_core::Result<()>; fn GetTimeFilter(&self, pfttime: *mut super::super::Foundation::FILETIME, pbevaltimeofday: *mut super::super::Foundation::BOOL, ptimetype: *mut OFFLINEFILES_ITEM_TIME, pcompare: *mut OFFLINEFILES_COMPARE) -> windows_core::Result<()>; fn GetPatternFilter(&self, pszpattern: windows_core::PWSTR, cchpattern: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOfflineFilesItemFilter {} impl IOfflineFilesItemFilter_Vtbl { - pub const fn new() -> IOfflineFilesItemFilter_Vtbl - where - Identity: IOfflineFilesItemFilter_Impl, - { - unsafe extern "system" fn GetFilterFlags(this: *mut core::ffi::c_void, pullflags: *mut u64, pullmask: *mut u64) -> windows_core::HRESULT - where - Identity: IOfflineFilesItemFilter_Impl, - { + pub const fn new() -> IOfflineFilesItemFilter_Vtbl { + unsafe extern "system" fn GetFilterFlags(this: *mut core::ffi::c_void, pullflags: *mut u64, pullmask: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesItemFilter_Impl::GetFilterFlags(this, core::mem::transmute_copy(&pullflags), core::mem::transmute_copy(&pullmask)).into() } - unsafe extern "system" fn GetTimeFilter(this: *mut core::ffi::c_void, pfttime: *mut super::super::Foundation::FILETIME, pbevaltimeofday: *mut super::super::Foundation::BOOL, ptimetype: *mut OFFLINEFILES_ITEM_TIME, pcompare: *mut OFFLINEFILES_COMPARE) -> windows_core::HRESULT - where - Identity: IOfflineFilesItemFilter_Impl, - { + unsafe extern "system" fn GetTimeFilter(this: *mut core::ffi::c_void, pfttime: *mut super::super::Foundation::FILETIME, pbevaltimeofday: *mut super::super::Foundation::BOOL, ptimetype: *mut OFFLINEFILES_ITEM_TIME, pcompare: *mut OFFLINEFILES_COMPARE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesItemFilter_Impl::GetTimeFilter(this, core::mem::transmute_copy(&pfttime), core::mem::transmute_copy(&pbevaltimeofday), core::mem::transmute_copy(&ptimetype), core::mem::transmute_copy(&pcompare)).into() } - unsafe extern "system" fn GetPatternFilter(this: *mut core::ffi::c_void, pszpattern: windows_core::PWSTR, cchpattern: u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesItemFilter_Impl, - { + unsafe extern "system" fn GetPatternFilter(this: *mut core::ffi::c_void, pszpattern: windows_core::PWSTR, cchpattern: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesItemFilter_Impl::GetPatternFilter(this, core::mem::transmute_copy(&pszpattern), core::mem::transmute_copy(&cchpattern)).into() } @@ -1358,7 +1004,7 @@ impl IOfflineFilesItemFilter_Vtbl { iid == &::IID } } -pub trait IOfflineFilesPinInfo_Impl: Sized { +pub trait IOfflineFilesPinInfo_Impl: Sized + windows_core::IUnknownImpl { fn IsPinned(&self) -> windows_core::Result; fn IsPinnedForUser(&self, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn IsPinnedForUserByPolicy(&self, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -1367,14 +1013,8 @@ pub trait IOfflineFilesPinInfo_Impl: Sized { } impl windows_core::RuntimeName for IOfflineFilesPinInfo {} impl IOfflineFilesPinInfo_Vtbl { - pub const fn new() -> IOfflineFilesPinInfo_Vtbl - where - Identity: IOfflineFilesPinInfo_Impl, - { - unsafe extern "system" fn IsPinned(this: *mut core::ffi::c_void, pbpinned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesPinInfo_Impl, - { + pub const fn new() -> IOfflineFilesPinInfo_Vtbl { + unsafe extern "system" fn IsPinned(this: *mut core::ffi::c_void, pbpinned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesPinInfo_Impl::IsPinned(this) { Ok(ok__) => { @@ -1384,31 +1024,19 @@ impl IOfflineFilesPinInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPinnedForUser(this: *mut core::ffi::c_void, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesPinInfo_Impl, - { + unsafe extern "system" fn IsPinnedForUser(this: *mut core::ffi::c_void, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesPinInfo_Impl::IsPinnedForUser(this, core::mem::transmute_copy(&pbpinnedforuser), core::mem::transmute_copy(&pbinherit)).into() } - unsafe extern "system" fn IsPinnedForUserByPolicy(this: *mut core::ffi::c_void, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesPinInfo_Impl, - { + unsafe extern "system" fn IsPinnedForUserByPolicy(this: *mut core::ffi::c_void, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesPinInfo_Impl::IsPinnedForUserByPolicy(this, core::mem::transmute_copy(&pbpinnedforuser), core::mem::transmute_copy(&pbinherit)).into() } - unsafe extern "system" fn IsPinnedForComputer(this: *mut core::ffi::c_void, pbpinnedforcomputer: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesPinInfo_Impl, - { + unsafe extern "system" fn IsPinnedForComputer(this: *mut core::ffi::c_void, pbpinnedforcomputer: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesPinInfo_Impl::IsPinnedForComputer(this, core::mem::transmute_copy(&pbpinnedforcomputer), core::mem::transmute_copy(&pbinherit)).into() } - unsafe extern "system" fn IsPinnedForFolderRedirection(this: *mut core::ffi::c_void, pbpinnedforfolderredirection: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesPinInfo_Impl, - { + unsafe extern "system" fn IsPinnedForFolderRedirection(this: *mut core::ffi::c_void, pbpinnedforfolderredirection: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesPinInfo_Impl::IsPinnedForFolderRedirection(this, core::mem::transmute_copy(&pbpinnedforfolderredirection), core::mem::transmute_copy(&pbinherit)).into() } @@ -1430,14 +1058,8 @@ pub trait IOfflineFilesPinInfo2_Impl: Sized + IOfflineFilesPinInfo_Impl { } impl windows_core::RuntimeName for IOfflineFilesPinInfo2 {} impl IOfflineFilesPinInfo2_Vtbl { - pub const fn new() -> IOfflineFilesPinInfo2_Vtbl - where - Identity: IOfflineFilesPinInfo2_Impl, - { - unsafe extern "system" fn IsPartlyPinned(this: *mut core::ffi::c_void, pbpartlypinned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesPinInfo2_Impl, - { + pub const fn new() -> IOfflineFilesPinInfo2_Vtbl { + unsafe extern "system" fn IsPartlyPinned(this: *mut core::ffi::c_void, pbpartlypinned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesPinInfo2_Impl::IsPartlyPinned(this) { Ok(ok__) => { @@ -1453,21 +1075,15 @@ impl IOfflineFilesPinInfo2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IOfflineFilesProgress_Impl: Sized { +pub trait IOfflineFilesProgress_Impl: Sized + windows_core::IUnknownImpl { fn Begin(&self) -> windows_core::Result; fn QueryAbort(&self) -> windows_core::Result; fn End(&self, hrresult: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOfflineFilesProgress {} impl IOfflineFilesProgress_Vtbl { - pub const fn new() -> IOfflineFilesProgress_Vtbl - where - Identity: IOfflineFilesProgress_Impl, - { - unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, pbabort: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesProgress_Impl, - { + pub const fn new() -> IOfflineFilesProgress_Vtbl { + unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, pbabort: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesProgress_Impl::Begin(this) { Ok(ok__) => { @@ -1477,10 +1093,7 @@ impl IOfflineFilesProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryAbort(this: *mut core::ffi::c_void, pbabort: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesProgress_Impl, - { + unsafe extern "system" fn QueryAbort(this: *mut core::ffi::c_void, pbabort: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesProgress_Impl::QueryAbort(this) { Ok(ok__) => { @@ -1490,10 +1103,7 @@ impl IOfflineFilesProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn End(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IOfflineFilesProgress_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesProgress_Impl::End(this, core::mem::transmute_copy(&hrresult)).into() } @@ -1511,17 +1121,14 @@ impl IOfflineFilesProgress_Vtbl { pub trait IOfflineFilesServerItem_Impl: Sized + IOfflineFilesItem_Impl {} impl windows_core::RuntimeName for IOfflineFilesServerItem {} impl IOfflineFilesServerItem_Vtbl { - pub const fn new() -> IOfflineFilesServerItem_Vtbl - where - Identity: IOfflineFilesServerItem_Impl, - { + pub const fn new() -> IOfflineFilesServerItem_Vtbl { Self { base__: IOfflineFilesItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IOfflineFilesSetting_Impl: Sized { +pub trait IOfflineFilesSetting_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetValueType(&self) -> windows_core::Result; fn GetPreference(&self, pvarvalue: *mut windows_core::VARIANT, dwscope: u32) -> windows_core::Result<()>; @@ -1534,14 +1141,8 @@ pub trait IOfflineFilesSetting_Impl: Sized { } impl windows_core::RuntimeName for IOfflineFilesSetting {} impl IOfflineFilesSetting_Vtbl { - pub const fn new() -> IOfflineFilesSetting_Vtbl - where - Identity: IOfflineFilesSetting_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOfflineFilesSetting_Impl, - { + pub const fn new() -> IOfflineFilesSetting_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSetting_Impl::GetName(this) { Ok(ok__) => { @@ -1551,10 +1152,7 @@ impl IOfflineFilesSetting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValueType(this: *mut core::ffi::c_void, ptype: *mut OFFLINEFILES_SETTING_VALUE_TYPE) -> windows_core::HRESULT - where - Identity: IOfflineFilesSetting_Impl, - { + unsafe extern "system" fn GetValueType(this: *mut core::ffi::c_void, ptype: *mut OFFLINEFILES_SETTING_VALUE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSetting_Impl::GetValueType(this) { Ok(ok__) => { @@ -1564,17 +1162,11 @@ impl IOfflineFilesSetting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreference(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit, dwscope: u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesSetting_Impl, - { + unsafe extern "system" fn GetPreference(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit, dwscope: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSetting_Impl::GetPreference(this, core::mem::transmute_copy(&pvarvalue), core::mem::transmute_copy(&dwscope)).into() } - unsafe extern "system" fn GetPreferenceScope(this: *mut core::ffi::c_void, pdwscope: *mut u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesSetting_Impl, - { + unsafe extern "system" fn GetPreferenceScope(this: *mut core::ffi::c_void, pdwscope: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSetting_Impl::GetPreferenceScope(this) { Ok(ok__) => { @@ -1584,31 +1176,19 @@ impl IOfflineFilesSetting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPreference(this: *mut core::ffi::c_void, pvarvalue: *const core::mem::MaybeUninit, dwscope: u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesSetting_Impl, - { + unsafe extern "system" fn SetPreference(this: *mut core::ffi::c_void, pvarvalue: *const core::mem::MaybeUninit, dwscope: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSetting_Impl::SetPreference(this, core::mem::transmute_copy(&pvarvalue), core::mem::transmute_copy(&dwscope)).into() } - unsafe extern "system" fn DeletePreference(this: *mut core::ffi::c_void, dwscope: u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesSetting_Impl, - { + unsafe extern "system" fn DeletePreference(this: *mut core::ffi::c_void, dwscope: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSetting_Impl::DeletePreference(this, core::mem::transmute_copy(&dwscope)).into() } - unsafe extern "system" fn GetPolicy(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit, dwscope: u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesSetting_Impl, - { + unsafe extern "system" fn GetPolicy(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit, dwscope: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSetting_Impl::GetPolicy(this, core::mem::transmute_copy(&pvarvalue), core::mem::transmute_copy(&dwscope)).into() } - unsafe extern "system" fn GetPolicyScope(this: *mut core::ffi::c_void, pdwscope: *mut u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesSetting_Impl, - { + unsafe extern "system" fn GetPolicyScope(this: *mut core::ffi::c_void, pdwscope: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSetting_Impl::GetPolicyScope(this) { Ok(ok__) => { @@ -1618,10 +1198,7 @@ impl IOfflineFilesSetting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit, pbsetbypolicy: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesSetting_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit, pbsetbypolicy: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSetting_Impl::GetValue(this, core::mem::transmute_copy(&pvarvalue), core::mem::transmute_copy(&pbsetbypolicy)).into() } @@ -1642,21 +1219,15 @@ impl IOfflineFilesSetting_Vtbl { iid == &::IID } } -pub trait IOfflineFilesShareInfo_Impl: Sized { +pub trait IOfflineFilesShareInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetShareItem(&self) -> windows_core::Result; fn GetShareCachingMode(&self) -> windows_core::Result; fn IsShareDfsJunction(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOfflineFilesShareInfo {} impl IOfflineFilesShareInfo_Vtbl { - pub const fn new() -> IOfflineFilesShareInfo_Vtbl - where - Identity: IOfflineFilesShareInfo_Impl, - { - unsafe extern "system" fn GetShareItem(this: *mut core::ffi::c_void, ppshareitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesShareInfo_Impl, - { + pub const fn new() -> IOfflineFilesShareInfo_Vtbl { + unsafe extern "system" fn GetShareItem(this: *mut core::ffi::c_void, ppshareitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesShareInfo_Impl::GetShareItem(this) { Ok(ok__) => { @@ -1666,10 +1237,7 @@ impl IOfflineFilesShareInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetShareCachingMode(this: *mut core::ffi::c_void, pcachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::HRESULT - where - Identity: IOfflineFilesShareInfo_Impl, - { + unsafe extern "system" fn GetShareCachingMode(this: *mut core::ffi::c_void, pcachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesShareInfo_Impl::GetShareCachingMode(this) { Ok(ok__) => { @@ -1679,10 +1247,7 @@ impl IOfflineFilesShareInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsShareDfsJunction(this: *mut core::ffi::c_void, pbisdfsjunction: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesShareInfo_Impl, - { + unsafe extern "system" fn IsShareDfsJunction(this: *mut core::ffi::c_void, pbisdfsjunction: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesShareInfo_Impl::IsShareDfsJunction(this) { Ok(ok__) => { @@ -1706,10 +1271,7 @@ impl IOfflineFilesShareInfo_Vtbl { pub trait IOfflineFilesShareItem_Impl: Sized + IOfflineFilesItem_Impl {} impl windows_core::RuntimeName for IOfflineFilesShareItem {} impl IOfflineFilesShareItem_Vtbl { - pub const fn new() -> IOfflineFilesShareItem_Vtbl - where - Identity: IOfflineFilesShareItem_Impl, - { + pub const fn new() -> IOfflineFilesShareItem_Vtbl { Self { base__: IOfflineFilesItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1722,14 +1284,8 @@ pub trait IOfflineFilesSimpleProgress_Impl: Sized + IOfflineFilesProgress_Impl { } impl windows_core::RuntimeName for IOfflineFilesSimpleProgress {} impl IOfflineFilesSimpleProgress_Vtbl { - pub const fn new() -> IOfflineFilesSimpleProgress_Vtbl - where - Identity: IOfflineFilesSimpleProgress_Impl, - { - unsafe extern "system" fn ItemBegin(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> windows_core::HRESULT - where - Identity: IOfflineFilesSimpleProgress_Impl, - { + pub const fn new() -> IOfflineFilesSimpleProgress_Vtbl { + unsafe extern "system" fn ItemBegin(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSimpleProgress_Impl::ItemBegin(this, core::mem::transmute(&pszfile)) { Ok(ok__) => { @@ -1739,10 +1295,7 @@ impl IOfflineFilesSimpleProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ItemResult(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, hrresult: windows_core::HRESULT, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> windows_core::HRESULT - where - Identity: IOfflineFilesSimpleProgress_Impl, - { + unsafe extern "system" fn ItemResult(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, hrresult: windows_core::HRESULT, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSimpleProgress_Impl::ItemResult(this, core::mem::transmute(&pszfile), core::mem::transmute_copy(&hrresult)) { Ok(ok__) => { @@ -1762,19 +1315,13 @@ impl IOfflineFilesSimpleProgress_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IOfflineFilesSuspend_Impl: Sized { +pub trait IOfflineFilesSuspend_Impl: Sized + windows_core::IUnknownImpl { fn SuspendRoot(&self, bsuspend: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOfflineFilesSuspend {} impl IOfflineFilesSuspend_Vtbl { - pub const fn new() -> IOfflineFilesSuspend_Vtbl - where - Identity: IOfflineFilesSuspend_Impl, - { - unsafe extern "system" fn SuspendRoot(this: *mut core::ffi::c_void, bsuspend: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesSuspend_Impl, - { + pub const fn new() -> IOfflineFilesSuspend_Vtbl { + unsafe extern "system" fn SuspendRoot(this: *mut core::ffi::c_void, bsuspend: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSuspend_Impl::SuspendRoot(this, core::mem::transmute_copy(&bsuspend)).into() } @@ -1784,19 +1331,13 @@ impl IOfflineFilesSuspend_Vtbl { iid == &::IID } } -pub trait IOfflineFilesSuspendInfo_Impl: Sized { +pub trait IOfflineFilesSuspendInfo_Impl: Sized + windows_core::IUnknownImpl { fn IsSuspended(&self, pbsuspended: *mut super::super::Foundation::BOOL, pbsuspendedroot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOfflineFilesSuspendInfo {} impl IOfflineFilesSuspendInfo_Vtbl { - pub const fn new() -> IOfflineFilesSuspendInfo_Vtbl - where - Identity: IOfflineFilesSuspendInfo_Impl, - { - unsafe extern "system" fn IsSuspended(this: *mut core::ffi::c_void, pbsuspended: *mut super::super::Foundation::BOOL, pbsuspendedroot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesSuspendInfo_Impl, - { + pub const fn new() -> IOfflineFilesSuspendInfo_Vtbl { + unsafe extern "system" fn IsSuspended(this: *mut core::ffi::c_void, pbsuspended: *mut super::super::Foundation::BOOL, pbsuspendedroot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSuspendInfo_Impl::IsSuspended(this, core::mem::transmute_copy(&pbsuspended), core::mem::transmute_copy(&pbsuspendedroot)).into() } @@ -1806,19 +1347,13 @@ impl IOfflineFilesSuspendInfo_Vtbl { iid == &::IID } } -pub trait IOfflineFilesSyncConflictHandler_Impl: Sized { +pub trait IOfflineFilesSyncConflictHandler_Impl: Sized + windows_core::IUnknownImpl { fn ResolveConflict(&self, pszpath: &windows_core::PCWSTR, fstateknown: u32, state: OFFLINEFILES_SYNC_STATE, fchangedetails: u32, pconflictresolution: *mut OFFLINEFILES_SYNC_CONFLICT_RESOLVE, ppsznewname: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOfflineFilesSyncConflictHandler {} impl IOfflineFilesSyncConflictHandler_Vtbl { - pub const fn new() -> IOfflineFilesSyncConflictHandler_Vtbl - where - Identity: IOfflineFilesSyncConflictHandler_Impl, - { - unsafe extern "system" fn ResolveConflict(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, fstateknown: u32, state: OFFLINEFILES_SYNC_STATE, fchangedetails: u32, pconflictresolution: *mut OFFLINEFILES_SYNC_CONFLICT_RESOLVE, ppsznewname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncConflictHandler_Impl, - { + pub const fn new() -> IOfflineFilesSyncConflictHandler_Vtbl { + unsafe extern "system" fn ResolveConflict(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, fstateknown: u32, state: OFFLINEFILES_SYNC_STATE, fchangedetails: u32, pconflictresolution: *mut OFFLINEFILES_SYNC_CONFLICT_RESOLVE, ppsznewname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSyncConflictHandler_Impl::ResolveConflict(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&fstateknown), core::mem::transmute_copy(&state), core::mem::transmute_copy(&fchangedetails), core::mem::transmute_copy(&pconflictresolution), core::mem::transmute_copy(&ppsznewname)).into() } @@ -1842,14 +1377,8 @@ pub trait IOfflineFilesSyncErrorInfo_Impl: Sized + IOfflineFilesErrorInfo_Impl { impl windows_core::RuntimeName for IOfflineFilesSyncErrorInfo {} #[cfg(feature = "Win32_System_Com")] impl IOfflineFilesSyncErrorInfo_Vtbl { - pub const fn new() -> IOfflineFilesSyncErrorInfo_Vtbl - where - Identity: IOfflineFilesSyncErrorInfo_Impl, - { - unsafe extern "system" fn GetSyncOperation(this: *mut core::ffi::c_void, psyncop: *mut OFFLINEFILES_SYNC_OPERATION) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncErrorInfo_Impl, - { + pub const fn new() -> IOfflineFilesSyncErrorInfo_Vtbl { + unsafe extern "system" fn GetSyncOperation(this: *mut core::ffi::c_void, psyncop: *mut OFFLINEFILES_SYNC_OPERATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSyncErrorInfo_Impl::GetSyncOperation(this) { Ok(ok__) => { @@ -1859,10 +1388,7 @@ impl IOfflineFilesSyncErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemChangeFlags(this: *mut core::ffi::c_void, pdwitemchangeflags: *mut u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncErrorInfo_Impl, - { + unsafe extern "system" fn GetItemChangeFlags(this: *mut core::ffi::c_void, pdwitemchangeflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSyncErrorInfo_Impl::GetItemChangeFlags(this) { Ok(ok__) => { @@ -1872,24 +1398,15 @@ impl IOfflineFilesSyncErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InfoEnumerated(this: *mut core::ffi::c_void, pblocalenumerated: *mut super::super::Foundation::BOOL, pbremoteenumerated: *mut super::super::Foundation::BOOL, pboriginalenumerated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncErrorInfo_Impl, - { + unsafe extern "system" fn InfoEnumerated(this: *mut core::ffi::c_void, pblocalenumerated: *mut super::super::Foundation::BOOL, pbremoteenumerated: *mut super::super::Foundation::BOOL, pboriginalenumerated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSyncErrorInfo_Impl::InfoEnumerated(this, core::mem::transmute_copy(&pblocalenumerated), core::mem::transmute_copy(&pbremoteenumerated), core::mem::transmute_copy(&pboriginalenumerated)).into() } - unsafe extern "system" fn InfoAvailable(this: *mut core::ffi::c_void, pblocalinfo: *mut super::super::Foundation::BOOL, pbremoteinfo: *mut super::super::Foundation::BOOL, pboriginalinfo: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncErrorInfo_Impl, - { + unsafe extern "system" fn InfoAvailable(this: *mut core::ffi::c_void, pblocalinfo: *mut super::super::Foundation::BOOL, pbremoteinfo: *mut super::super::Foundation::BOOL, pboriginalinfo: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSyncErrorInfo_Impl::InfoAvailable(this, core::mem::transmute_copy(&pblocalinfo), core::mem::transmute_copy(&pbremoteinfo), core::mem::transmute_copy(&pboriginalinfo)).into() } - unsafe extern "system" fn GetLocalInfo(this: *mut core::ffi::c_void, ppinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncErrorInfo_Impl, - { + unsafe extern "system" fn GetLocalInfo(this: *mut core::ffi::c_void, ppinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSyncErrorInfo_Impl::GetLocalInfo(this) { Ok(ok__) => { @@ -1899,10 +1416,7 @@ impl IOfflineFilesSyncErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteInfo(this: *mut core::ffi::c_void, ppinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncErrorInfo_Impl, - { + unsafe extern "system" fn GetRemoteInfo(this: *mut core::ffi::c_void, ppinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSyncErrorInfo_Impl::GetRemoteInfo(this) { Ok(ok__) => { @@ -1912,10 +1426,7 @@ impl IOfflineFilesSyncErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalInfo(this: *mut core::ffi::c_void, ppinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncErrorInfo_Impl, - { + unsafe extern "system" fn GetOriginalInfo(this: *mut core::ffi::c_void, ppinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSyncErrorInfo_Impl::GetOriginalInfo(this) { Ok(ok__) => { @@ -1940,21 +1451,15 @@ impl IOfflineFilesSyncErrorInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IOfflineFilesSyncErrorItemInfo_Impl: Sized { +pub trait IOfflineFilesSyncErrorItemInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetFileAttributes(&self) -> windows_core::Result; fn GetFileTimes(&self, pftlastwrite: *mut super::super::Foundation::FILETIME, pftchange: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()>; fn GetFileSize(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOfflineFilesSyncErrorItemInfo {} impl IOfflineFilesSyncErrorItemInfo_Vtbl { - pub const fn new() -> IOfflineFilesSyncErrorItemInfo_Vtbl - where - Identity: IOfflineFilesSyncErrorItemInfo_Impl, - { - unsafe extern "system" fn GetFileAttributes(this: *mut core::ffi::c_void, pdwattributes: *mut u32) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncErrorItemInfo_Impl, - { + pub const fn new() -> IOfflineFilesSyncErrorItemInfo_Vtbl { + unsafe extern "system" fn GetFileAttributes(this: *mut core::ffi::c_void, pdwattributes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSyncErrorItemInfo_Impl::GetFileAttributes(this) { Ok(ok__) => { @@ -1964,17 +1469,11 @@ impl IOfflineFilesSyncErrorItemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileTimes(this: *mut core::ffi::c_void, pftlastwrite: *mut super::super::Foundation::FILETIME, pftchange: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncErrorItemInfo_Impl, - { + unsafe extern "system" fn GetFileTimes(this: *mut core::ffi::c_void, pftlastwrite: *mut super::super::Foundation::FILETIME, pftchange: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSyncErrorItemInfo_Impl::GetFileTimes(this, core::mem::transmute_copy(&pftlastwrite), core::mem::transmute_copy(&pftchange)).into() } - unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, psize: *mut i64) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncErrorItemInfo_Impl, - { + unsafe extern "system" fn GetFileSize(this: *mut core::ffi::c_void, psize: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSyncErrorItemInfo_Impl::GetFileSize(this) { Ok(ok__) => { @@ -2001,14 +1500,8 @@ pub trait IOfflineFilesSyncProgress_Impl: Sized + IOfflineFilesProgress_Impl { } impl windows_core::RuntimeName for IOfflineFilesSyncProgress {} impl IOfflineFilesSyncProgress_Vtbl { - pub const fn new() -> IOfflineFilesSyncProgress_Vtbl - where - Identity: IOfflineFilesSyncProgress_Impl, - { - unsafe extern "system" fn SyncItemBegin(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncProgress_Impl, - { + pub const fn new() -> IOfflineFilesSyncProgress_Vtbl { + unsafe extern "system" fn SyncItemBegin(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSyncProgress_Impl::SyncItemBegin(this, core::mem::transmute(&pszfile)) { Ok(ok__) => { @@ -2018,10 +1511,7 @@ impl IOfflineFilesSyncProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SyncItemResult(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, hrresult: windows_core::HRESULT, perrorinfo: *mut core::ffi::c_void, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> windows_core::HRESULT - where - Identity: IOfflineFilesSyncProgress_Impl, - { + unsafe extern "system" fn SyncItemResult(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, hrresult: windows_core::HRESULT, perrorinfo: *mut core::ffi::c_void, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesSyncProgress_Impl::SyncItemResult(this, core::mem::transmute(&pszfile), core::mem::transmute_copy(&hrresult), windows_core::from_raw_borrowed(&perrorinfo)) { Ok(ok__) => { @@ -2041,19 +1531,13 @@ impl IOfflineFilesSyncProgress_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IOfflineFilesTransparentCacheInfo_Impl: Sized { +pub trait IOfflineFilesTransparentCacheInfo_Impl: Sized + windows_core::IUnknownImpl { fn IsTransparentlyCached(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOfflineFilesTransparentCacheInfo {} impl IOfflineFilesTransparentCacheInfo_Vtbl { - pub const fn new() -> IOfflineFilesTransparentCacheInfo_Vtbl - where - Identity: IOfflineFilesTransparentCacheInfo_Impl, - { - unsafe extern "system" fn IsTransparentlyCached(this: *mut core::ffi::c_void, pbtransparentlycached: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOfflineFilesTransparentCacheInfo_Impl, - { + pub const fn new() -> IOfflineFilesTransparentCacheInfo_Vtbl { + unsafe extern "system" fn IsTransparentlyCached(this: *mut core::ffi::c_void, pbtransparentlycached: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesTransparentCacheInfo_Impl::IsTransparentlyCached(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/impl.rs index 15ff4e55f6..1be6373b66 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/impl.rs @@ -1,19 +1,13 @@ #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] -pub trait IAppxAppInstallerReader_Impl: Sized { +pub trait IAppxAppInstallerReader_Impl: Sized + windows_core::IUnknownImpl { fn GetXmlDom(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for IAppxAppInstallerReader {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IAppxAppInstallerReader_Vtbl { - pub const fn new() -> IAppxAppInstallerReader_Vtbl - where - Identity: IAppxAppInstallerReader_Impl, - { - unsafe extern "system" fn GetXmlDom(this: *mut core::ffi::c_void, dom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxAppInstallerReader_Impl, - { + pub const fn new() -> IAppxAppInstallerReader_Vtbl { + unsafe extern "system" fn GetXmlDom(this: *mut core::ffi::c_void, dom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxAppInstallerReader_Impl::GetXmlDom(this) { Ok(ok__) => { @@ -29,20 +23,14 @@ impl IAppxAppInstallerReader_Vtbl { iid == &::IID } } -pub trait IAppxBlockMapBlock_Impl: Sized { +pub trait IAppxBlockMapBlock_Impl: Sized + windows_core::IUnknownImpl { fn GetHash(&self, buffersize: *mut u32) -> windows_core::Result<*mut u8>; fn GetCompressedSize(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxBlockMapBlock {} impl IAppxBlockMapBlock_Vtbl { - pub const fn new() -> IAppxBlockMapBlock_Vtbl - where - Identity: IAppxBlockMapBlock_Impl, - { - unsafe extern "system" fn GetHash(this: *mut core::ffi::c_void, buffersize: *mut u32, buffer: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IAppxBlockMapBlock_Impl, - { + pub const fn new() -> IAppxBlockMapBlock_Vtbl { + unsafe extern "system" fn GetHash(this: *mut core::ffi::c_void, buffersize: *mut u32, buffer: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapBlock_Impl::GetHash(this, core::mem::transmute_copy(&buffersize)) { Ok(ok__) => { @@ -52,10 +40,7 @@ impl IAppxBlockMapBlock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCompressedSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IAppxBlockMapBlock_Impl, - { + unsafe extern "system" fn GetCompressedSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapBlock_Impl::GetCompressedSize(this) { Ok(ok__) => { @@ -75,21 +60,15 @@ impl IAppxBlockMapBlock_Vtbl { iid == &::IID } } -pub trait IAppxBlockMapBlocksEnumerator_Impl: Sized { +pub trait IAppxBlockMapBlocksEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxBlockMapBlocksEnumerator {} impl IAppxBlockMapBlocksEnumerator_Vtbl { - pub const fn new() -> IAppxBlockMapBlocksEnumerator_Vtbl - where - Identity: IAppxBlockMapBlocksEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, block: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBlockMapBlocksEnumerator_Impl, - { + pub const fn new() -> IAppxBlockMapBlocksEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, block: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapBlocksEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -99,10 +78,7 @@ impl IAppxBlockMapBlocksEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBlockMapBlocksEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapBlocksEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -112,10 +88,7 @@ impl IAppxBlockMapBlocksEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBlockMapBlocksEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapBlocksEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -137,7 +110,7 @@ impl IAppxBlockMapBlocksEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxBlockMapFile_Impl: Sized { +pub trait IAppxBlockMapFile_Impl: Sized + windows_core::IUnknownImpl { fn GetBlocks(&self) -> windows_core::Result; fn GetLocalFileHeaderSize(&self) -> windows_core::Result; fn GetName(&self) -> windows_core::Result; @@ -148,14 +121,8 @@ pub trait IAppxBlockMapFile_Impl: Sized { impl windows_core::RuntimeName for IAppxBlockMapFile {} #[cfg(feature = "Win32_System_Com")] impl IAppxBlockMapFile_Vtbl { - pub const fn new() -> IAppxBlockMapFile_Vtbl - where - Identity: IAppxBlockMapFile_Impl, - { - unsafe extern "system" fn GetBlocks(this: *mut core::ffi::c_void, blocks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBlockMapFile_Impl, - { + pub const fn new() -> IAppxBlockMapFile_Vtbl { + unsafe extern "system" fn GetBlocks(this: *mut core::ffi::c_void, blocks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFile_Impl::GetBlocks(this) { Ok(ok__) => { @@ -165,10 +132,7 @@ impl IAppxBlockMapFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalFileHeaderSize(this: *mut core::ffi::c_void, lfhsize: *mut u32) -> windows_core::HRESULT - where - Identity: IAppxBlockMapFile_Impl, - { + unsafe extern "system" fn GetLocalFileHeaderSize(this: *mut core::ffi::c_void, lfhsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFile_Impl::GetLocalFileHeaderSize(this) { Ok(ok__) => { @@ -178,10 +142,7 @@ impl IAppxBlockMapFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxBlockMapFile_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFile_Impl::GetName(this) { Ok(ok__) => { @@ -191,10 +152,7 @@ impl IAppxBlockMapFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUncompressedSize(this: *mut core::ffi::c_void, size: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxBlockMapFile_Impl, - { + unsafe extern "system" fn GetUncompressedSize(this: *mut core::ffi::c_void, size: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFile_Impl::GetUncompressedSize(this) { Ok(ok__) => { @@ -204,10 +162,7 @@ impl IAppxBlockMapFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ValidateFileHash(this: *mut core::ffi::c_void, filestream: *mut core::ffi::c_void, isvalid: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBlockMapFile_Impl, - { + unsafe extern "system" fn ValidateFileHash(this: *mut core::ffi::c_void, filestream: *mut core::ffi::c_void, isvalid: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFile_Impl::ValidateFileHash(this, windows_core::from_raw_borrowed(&filestream)) { Ok(ok__) => { @@ -230,21 +185,15 @@ impl IAppxBlockMapFile_Vtbl { iid == &::IID } } -pub trait IAppxBlockMapFilesEnumerator_Impl: Sized { +pub trait IAppxBlockMapFilesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxBlockMapFilesEnumerator {} impl IAppxBlockMapFilesEnumerator_Vtbl { - pub const fn new() -> IAppxBlockMapFilesEnumerator_Vtbl - where - Identity: IAppxBlockMapFilesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, file: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBlockMapFilesEnumerator_Impl, - { + pub const fn new() -> IAppxBlockMapFilesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, file: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFilesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -254,10 +203,7 @@ impl IAppxBlockMapFilesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBlockMapFilesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFilesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -267,10 +213,7 @@ impl IAppxBlockMapFilesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBlockMapFilesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFilesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -292,7 +235,7 @@ impl IAppxBlockMapFilesEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxBlockMapReader_Impl: Sized { +pub trait IAppxBlockMapReader_Impl: Sized + windows_core::IUnknownImpl { fn GetFile(&self, filename: &windows_core::PCWSTR) -> windows_core::Result; fn GetFiles(&self) -> windows_core::Result; fn GetHashMethod(&self) -> windows_core::Result; @@ -302,14 +245,8 @@ pub trait IAppxBlockMapReader_Impl: Sized { impl windows_core::RuntimeName for IAppxBlockMapReader {} #[cfg(feature = "Win32_System_Com")] impl IAppxBlockMapReader_Vtbl { - pub const fn new() -> IAppxBlockMapReader_Vtbl - where - Identity: IAppxBlockMapReader_Impl, - { - unsafe extern "system" fn GetFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, file: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBlockMapReader_Impl, - { + pub const fn new() -> IAppxBlockMapReader_Vtbl { + unsafe extern "system" fn GetFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, file: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapReader_Impl::GetFile(this, core::mem::transmute(&filename)) { Ok(ok__) => { @@ -319,10 +256,7 @@ impl IAppxBlockMapReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFiles(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBlockMapReader_Impl, - { + unsafe extern "system" fn GetFiles(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapReader_Impl::GetFiles(this) { Ok(ok__) => { @@ -332,10 +266,7 @@ impl IAppxBlockMapReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHashMethod(this: *mut core::ffi::c_void, hashmethod: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBlockMapReader_Impl, - { + unsafe extern "system" fn GetHashMethod(this: *mut core::ffi::c_void, hashmethod: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapReader_Impl::GetHashMethod(this) { Ok(ok__) => { @@ -345,10 +276,7 @@ impl IAppxBlockMapReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, blockmapstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBlockMapReader_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, blockmapstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapReader_Impl::GetStream(this) { Ok(ok__) => { @@ -371,7 +299,7 @@ impl IAppxBlockMapReader_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxBundleFactory_Impl: Sized { +pub trait IAppxBundleFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateBundleWriter(&self, outputstream: Option<&super::super::super::System::Com::IStream>, bundleversion: u64) -> windows_core::Result; fn CreateBundleReader(&self, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result; fn CreateBundleManifestReader(&self, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result; @@ -380,14 +308,8 @@ pub trait IAppxBundleFactory_Impl: Sized { impl windows_core::RuntimeName for IAppxBundleFactory {} #[cfg(feature = "Win32_System_Com")] impl IAppxBundleFactory_Vtbl { - pub const fn new() -> IAppxBundleFactory_Vtbl - where - Identity: IAppxBundleFactory_Impl, - { - unsafe extern "system" fn CreateBundleWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, bundleversion: u64, bundlewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleFactory_Impl, - { + pub const fn new() -> IAppxBundleFactory_Vtbl { + unsafe extern "system" fn CreateBundleWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, bundleversion: u64, bundlewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleFactory_Impl::CreateBundleWriter(this, windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&bundleversion)) { Ok(ok__) => { @@ -397,10 +319,7 @@ impl IAppxBundleFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBundleReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, bundlereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleFactory_Impl, - { + unsafe extern "system" fn CreateBundleReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, bundlereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleFactory_Impl::CreateBundleReader(this, windows_core::from_raw_borrowed(&inputstream)) { Ok(ok__) => { @@ -410,10 +329,7 @@ impl IAppxBundleFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBundleManifestReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, manifestreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleFactory_Impl, - { + unsafe extern "system" fn CreateBundleManifestReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, manifestreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleFactory_Impl::CreateBundleManifestReader(this, windows_core::from_raw_borrowed(&inputstream)) { Ok(ok__) => { @@ -435,21 +351,15 @@ impl IAppxBundleFactory_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxBundleFactory2_Impl: Sized { +pub trait IAppxBundleFactory2_Impl: Sized + windows_core::IUnknownImpl { fn CreateBundleReader2(&self, inputstream: Option<&super::super::super::System::Com::IStream>, expecteddigest: &windows_core::PCWSTR) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IAppxBundleFactory2 {} #[cfg(feature = "Win32_System_Com")] impl IAppxBundleFactory2_Vtbl { - pub const fn new() -> IAppxBundleFactory2_Vtbl - where - Identity: IAppxBundleFactory2_Impl, - { - unsafe extern "system" fn CreateBundleReader2(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, expecteddigest: windows_core::PCWSTR, bundlereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleFactory2_Impl, - { + pub const fn new() -> IAppxBundleFactory2_Vtbl { + unsafe extern "system" fn CreateBundleReader2(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, expecteddigest: windows_core::PCWSTR, bundlereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleFactory2_Impl::CreateBundleReader2(this, windows_core::from_raw_borrowed(&inputstream), core::mem::transmute(&expecteddigest)) { Ok(ok__) => { @@ -465,21 +375,15 @@ impl IAppxBundleFactory2_Vtbl { iid == &::IID } } -pub trait IAppxBundleManifestOptionalBundleInfo_Impl: Sized { +pub trait IAppxBundleManifestOptionalBundleInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetPackageId(&self) -> windows_core::Result; fn GetFileName(&self) -> windows_core::Result; fn GetPackageInfoItems(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxBundleManifestOptionalBundleInfo {} impl IAppxBundleManifestOptionalBundleInfo_Vtbl { - pub const fn new() -> IAppxBundleManifestOptionalBundleInfo_Vtbl - where - Identity: IAppxBundleManifestOptionalBundleInfo_Impl, - { - unsafe extern "system" fn GetPackageId(this: *mut core::ffi::c_void, packageid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestOptionalBundleInfo_Impl, - { + pub const fn new() -> IAppxBundleManifestOptionalBundleInfo_Vtbl { + unsafe extern "system" fn GetPackageId(this: *mut core::ffi::c_void, packageid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestOptionalBundleInfo_Impl::GetPackageId(this) { Ok(ok__) => { @@ -489,10 +393,7 @@ impl IAppxBundleManifestOptionalBundleInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, filename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestOptionalBundleInfo_Impl, - { + unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, filename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestOptionalBundleInfo_Impl::GetFileName(this) { Ok(ok__) => { @@ -502,10 +403,7 @@ impl IAppxBundleManifestOptionalBundleInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPackageInfoItems(this: *mut core::ffi::c_void, packageinfoitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestOptionalBundleInfo_Impl, - { + unsafe extern "system" fn GetPackageInfoItems(this: *mut core::ffi::c_void, packageinfoitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestOptionalBundleInfo_Impl::GetPackageInfoItems(this) { Ok(ok__) => { @@ -526,21 +424,15 @@ impl IAppxBundleManifestOptionalBundleInfo_Vtbl { iid == &::IID } } -pub trait IAppxBundleManifestOptionalBundleInfoEnumerator_Impl: Sized { +pub trait IAppxBundleManifestOptionalBundleInfoEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxBundleManifestOptionalBundleInfoEnumerator {} impl IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { - pub const fn new() -> IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl - where - Identity: IAppxBundleManifestOptionalBundleInfoEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, optionalbundle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestOptionalBundleInfoEnumerator_Impl, - { + pub const fn new() -> IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, optionalbundle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestOptionalBundleInfoEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -550,10 +442,7 @@ impl IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestOptionalBundleInfoEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestOptionalBundleInfoEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -563,10 +452,7 @@ impl IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestOptionalBundleInfoEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestOptionalBundleInfoEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -587,7 +473,7 @@ impl IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxBundleManifestPackageInfo_Impl: Sized { +pub trait IAppxBundleManifestPackageInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetPackageType(&self) -> windows_core::Result; fn GetPackageId(&self) -> windows_core::Result; fn GetFileName(&self) -> windows_core::Result; @@ -597,14 +483,8 @@ pub trait IAppxBundleManifestPackageInfo_Impl: Sized { } impl windows_core::RuntimeName for IAppxBundleManifestPackageInfo {} impl IAppxBundleManifestPackageInfo_Vtbl { - pub const fn new() -> IAppxBundleManifestPackageInfo_Vtbl - where - Identity: IAppxBundleManifestPackageInfo_Impl, - { - unsafe extern "system" fn GetPackageType(this: *mut core::ffi::c_void, packagetype: *mut APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo_Impl, - { + pub const fn new() -> IAppxBundleManifestPackageInfo_Vtbl { + unsafe extern "system" fn GetPackageType(this: *mut core::ffi::c_void, packagetype: *mut APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo_Impl::GetPackageType(this) { Ok(ok__) => { @@ -614,10 +494,7 @@ impl IAppxBundleManifestPackageInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPackageId(this: *mut core::ffi::c_void, packageid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo_Impl, - { + unsafe extern "system" fn GetPackageId(this: *mut core::ffi::c_void, packageid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo_Impl::GetPackageId(this) { Ok(ok__) => { @@ -627,10 +504,7 @@ impl IAppxBundleManifestPackageInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, filename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo_Impl, - { + unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, filename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo_Impl::GetFileName(this) { Ok(ok__) => { @@ -640,10 +514,7 @@ impl IAppxBundleManifestPackageInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo_Impl, - { + unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo_Impl::GetOffset(this) { Ok(ok__) => { @@ -653,10 +524,7 @@ impl IAppxBundleManifestPackageInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, size: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, size: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo_Impl::GetSize(this) { Ok(ok__) => { @@ -666,10 +534,7 @@ impl IAppxBundleManifestPackageInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResources(this: *mut core::ffi::c_void, resources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo_Impl, - { + unsafe extern "system" fn GetResources(this: *mut core::ffi::c_void, resources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo_Impl::GetResources(this) { Ok(ok__) => { @@ -693,21 +558,15 @@ impl IAppxBundleManifestPackageInfo_Vtbl { iid == &::IID } } -pub trait IAppxBundleManifestPackageInfo2_Impl: Sized { +pub trait IAppxBundleManifestPackageInfo2_Impl: Sized + windows_core::IUnknownImpl { fn GetIsPackageReference(&self) -> windows_core::Result; fn GetIsNonQualifiedResourcePackage(&self) -> windows_core::Result; fn GetIsDefaultApplicablePackage(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxBundleManifestPackageInfo2 {} impl IAppxBundleManifestPackageInfo2_Vtbl { - pub const fn new() -> IAppxBundleManifestPackageInfo2_Vtbl - where - Identity: IAppxBundleManifestPackageInfo2_Impl, - { - unsafe extern "system" fn GetIsPackageReference(this: *mut core::ffi::c_void, ispackagereference: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo2_Impl, - { + pub const fn new() -> IAppxBundleManifestPackageInfo2_Vtbl { + unsafe extern "system" fn GetIsPackageReference(this: *mut core::ffi::c_void, ispackagereference: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo2_Impl::GetIsPackageReference(this) { Ok(ok__) => { @@ -717,10 +576,7 @@ impl IAppxBundleManifestPackageInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIsNonQualifiedResourcePackage(this: *mut core::ffi::c_void, isnonqualifiedresourcepackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo2_Impl, - { + unsafe extern "system" fn GetIsNonQualifiedResourcePackage(this: *mut core::ffi::c_void, isnonqualifiedresourcepackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo2_Impl::GetIsNonQualifiedResourcePackage(this) { Ok(ok__) => { @@ -730,10 +586,7 @@ impl IAppxBundleManifestPackageInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIsDefaultApplicablePackage(this: *mut core::ffi::c_void, isdefaultapplicablepackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo2_Impl, - { + unsafe extern "system" fn GetIsDefaultApplicablePackage(this: *mut core::ffi::c_void, isdefaultapplicablepackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo2_Impl::GetIsDefaultApplicablePackage(this) { Ok(ok__) => { @@ -754,19 +607,13 @@ impl IAppxBundleManifestPackageInfo2_Vtbl { iid == &::IID } } -pub trait IAppxBundleManifestPackageInfo3_Impl: Sized { +pub trait IAppxBundleManifestPackageInfo3_Impl: Sized + windows_core::IUnknownImpl { fn GetTargetDeviceFamilies(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxBundleManifestPackageInfo3 {} impl IAppxBundleManifestPackageInfo3_Vtbl { - pub const fn new() -> IAppxBundleManifestPackageInfo3_Vtbl - where - Identity: IAppxBundleManifestPackageInfo3_Impl, - { - unsafe extern "system" fn GetTargetDeviceFamilies(this: *mut core::ffi::c_void, targetdevicefamilies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo3_Impl, - { + pub const fn new() -> IAppxBundleManifestPackageInfo3_Vtbl { + unsafe extern "system" fn GetTargetDeviceFamilies(this: *mut core::ffi::c_void, targetdevicefamilies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo3_Impl::GetTargetDeviceFamilies(this) { Ok(ok__) => { @@ -782,19 +629,13 @@ impl IAppxBundleManifestPackageInfo3_Vtbl { iid == &::IID } } -pub trait IAppxBundleManifestPackageInfo4_Impl: Sized { +pub trait IAppxBundleManifestPackageInfo4_Impl: Sized + windows_core::IUnknownImpl { fn GetIsStub(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxBundleManifestPackageInfo4 {} impl IAppxBundleManifestPackageInfo4_Vtbl { - pub const fn new() -> IAppxBundleManifestPackageInfo4_Vtbl - where - Identity: IAppxBundleManifestPackageInfo4_Impl, - { - unsafe extern "system" fn GetIsStub(this: *mut core::ffi::c_void, isstub: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfo4_Impl, - { + pub const fn new() -> IAppxBundleManifestPackageInfo4_Vtbl { + unsafe extern "system" fn GetIsStub(this: *mut core::ffi::c_void, isstub: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo4_Impl::GetIsStub(this) { Ok(ok__) => { @@ -810,21 +651,15 @@ impl IAppxBundleManifestPackageInfo4_Vtbl { iid == &::IID } } -pub trait IAppxBundleManifestPackageInfoEnumerator_Impl: Sized { +pub trait IAppxBundleManifestPackageInfoEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxBundleManifestPackageInfoEnumerator {} impl IAppxBundleManifestPackageInfoEnumerator_Vtbl { - pub const fn new() -> IAppxBundleManifestPackageInfoEnumerator_Vtbl - where - Identity: IAppxBundleManifestPackageInfoEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, packageinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfoEnumerator_Impl, - { + pub const fn new() -> IAppxBundleManifestPackageInfoEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, packageinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfoEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -834,10 +669,7 @@ impl IAppxBundleManifestPackageInfoEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfoEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfoEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -847,10 +679,7 @@ impl IAppxBundleManifestPackageInfoEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestPackageInfoEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfoEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -872,7 +701,7 @@ impl IAppxBundleManifestPackageInfoEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxBundleManifestReader_Impl: Sized { +pub trait IAppxBundleManifestReader_Impl: Sized + windows_core::IUnknownImpl { fn GetPackageId(&self) -> windows_core::Result; fn GetPackageInfoItems(&self) -> windows_core::Result; fn GetStream(&self) -> windows_core::Result; @@ -881,14 +710,8 @@ pub trait IAppxBundleManifestReader_Impl: Sized { impl windows_core::RuntimeName for IAppxBundleManifestReader {} #[cfg(feature = "Win32_System_Com")] impl IAppxBundleManifestReader_Vtbl { - pub const fn new() -> IAppxBundleManifestReader_Vtbl - where - Identity: IAppxBundleManifestReader_Impl, - { - unsafe extern "system" fn GetPackageId(this: *mut core::ffi::c_void, packageid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestReader_Impl, - { + pub const fn new() -> IAppxBundleManifestReader_Vtbl { + unsafe extern "system" fn GetPackageId(this: *mut core::ffi::c_void, packageid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestReader_Impl::GetPackageId(this) { Ok(ok__) => { @@ -898,10 +721,7 @@ impl IAppxBundleManifestReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPackageInfoItems(this: *mut core::ffi::c_void, packageinfoitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestReader_Impl, - { + unsafe extern "system" fn GetPackageInfoItems(this: *mut core::ffi::c_void, packageinfoitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestReader_Impl::GetPackageInfoItems(this) { Ok(ok__) => { @@ -911,10 +731,7 @@ impl IAppxBundleManifestReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, manifeststream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestReader_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, manifeststream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestReader_Impl::GetStream(this) { Ok(ok__) => { @@ -935,19 +752,13 @@ impl IAppxBundleManifestReader_Vtbl { iid == &::IID } } -pub trait IAppxBundleManifestReader2_Impl: Sized { +pub trait IAppxBundleManifestReader2_Impl: Sized + windows_core::IUnknownImpl { fn GetOptionalBundles(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxBundleManifestReader2 {} impl IAppxBundleManifestReader2_Vtbl { - pub const fn new() -> IAppxBundleManifestReader2_Vtbl - where - Identity: IAppxBundleManifestReader2_Impl, - { - unsafe extern "system" fn GetOptionalBundles(this: *mut core::ffi::c_void, optionalbundles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleManifestReader2_Impl, - { + pub const fn new() -> IAppxBundleManifestReader2_Vtbl { + unsafe extern "system" fn GetOptionalBundles(this: *mut core::ffi::c_void, optionalbundles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestReader2_Impl::GetOptionalBundles(this) { Ok(ok__) => { @@ -963,7 +774,7 @@ impl IAppxBundleManifestReader2_Vtbl { iid == &::IID } } -pub trait IAppxBundleReader_Impl: Sized { +pub trait IAppxBundleReader_Impl: Sized + windows_core::IUnknownImpl { fn GetFootprintFile(&self, filetype: APPX_BUNDLE_FOOTPRINT_FILE_TYPE) -> windows_core::Result; fn GetBlockMap(&self) -> windows_core::Result; fn GetManifest(&self) -> windows_core::Result; @@ -972,14 +783,8 @@ pub trait IAppxBundleReader_Impl: Sized { } impl windows_core::RuntimeName for IAppxBundleReader {} impl IAppxBundleReader_Vtbl { - pub const fn new() -> IAppxBundleReader_Vtbl - where - Identity: IAppxBundleReader_Impl, - { - unsafe extern "system" fn GetFootprintFile(this: *mut core::ffi::c_void, filetype: APPX_BUNDLE_FOOTPRINT_FILE_TYPE, footprintfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleReader_Impl, - { + pub const fn new() -> IAppxBundleReader_Vtbl { + unsafe extern "system" fn GetFootprintFile(this: *mut core::ffi::c_void, filetype: APPX_BUNDLE_FOOTPRINT_FILE_TYPE, footprintfile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleReader_Impl::GetFootprintFile(this, core::mem::transmute_copy(&filetype)) { Ok(ok__) => { @@ -989,10 +794,7 @@ impl IAppxBundleReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBlockMap(this: *mut core::ffi::c_void, blockmapreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleReader_Impl, - { + unsafe extern "system" fn GetBlockMap(this: *mut core::ffi::c_void, blockmapreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleReader_Impl::GetBlockMap(this) { Ok(ok__) => { @@ -1002,10 +804,7 @@ impl IAppxBundleReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetManifest(this: *mut core::ffi::c_void, manifestreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleReader_Impl, - { + unsafe extern "system" fn GetManifest(this: *mut core::ffi::c_void, manifestreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleReader_Impl::GetManifest(this) { Ok(ok__) => { @@ -1015,10 +814,7 @@ impl IAppxBundleReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPayloadPackages(this: *mut core::ffi::c_void, payloadpackages: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleReader_Impl, - { + unsafe extern "system" fn GetPayloadPackages(this: *mut core::ffi::c_void, payloadpackages: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleReader_Impl::GetPayloadPackages(this) { Ok(ok__) => { @@ -1028,10 +824,7 @@ impl IAppxBundleReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPayloadPackage(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, payloadpackage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleReader_Impl, - { + unsafe extern "system" fn GetPayloadPackage(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, payloadpackage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleReader_Impl::GetPayloadPackage(this, core::mem::transmute(&filename)) { Ok(ok__) => { @@ -1055,7 +848,7 @@ impl IAppxBundleReader_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxBundleWriter_Impl: Sized { +pub trait IAppxBundleWriter_Impl: Sized + windows_core::IUnknownImpl { fn AddPayloadPackage(&self, filename: &windows_core::PCWSTR, packagestream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; } @@ -1063,21 +856,12 @@ pub trait IAppxBundleWriter_Impl: Sized { impl windows_core::RuntimeName for IAppxBundleWriter {} #[cfg(feature = "Win32_System_Com")] impl IAppxBundleWriter_Vtbl { - pub const fn new() -> IAppxBundleWriter_Vtbl - where - Identity: IAppxBundleWriter_Impl, - { - unsafe extern "system" fn AddPayloadPackage(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleWriter_Impl, - { + pub const fn new() -> IAppxBundleWriter_Vtbl { + unsafe extern "system" fn AddPayloadPackage(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter_Impl::AddPayloadPackage(this, core::mem::transmute(&filename), windows_core::from_raw_borrowed(&packagestream)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleWriter_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter_Impl::Close(this).into() } @@ -1092,21 +876,15 @@ impl IAppxBundleWriter_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxBundleWriter2_Impl: Sized { +pub trait IAppxBundleWriter2_Impl: Sized + windows_core::IUnknownImpl { fn AddExternalPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IAppxBundleWriter2 {} #[cfg(feature = "Win32_System_Com")] impl IAppxBundleWriter2_Vtbl { - pub const fn new() -> IAppxBundleWriter2_Vtbl - where - Identity: IAppxBundleWriter2_Impl, - { - unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleWriter2_Impl, - { + pub const fn new() -> IAppxBundleWriter2_Vtbl { + unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter2_Impl::AddExternalPackageReference(this, core::mem::transmute(&filename), windows_core::from_raw_borrowed(&inputstream)).into() } @@ -1117,7 +895,7 @@ impl IAppxBundleWriter2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxBundleWriter3_Impl: Sized { +pub trait IAppxBundleWriter3_Impl: Sized + windows_core::IUnknownImpl { fn AddPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; fn Close(&self, hashmethodstring: &windows_core::PCWSTR) -> windows_core::Result<()>; } @@ -1125,21 +903,12 @@ pub trait IAppxBundleWriter3_Impl: Sized { impl windows_core::RuntimeName for IAppxBundleWriter3 {} #[cfg(feature = "Win32_System_Com")] impl IAppxBundleWriter3_Vtbl { - pub const fn new() -> IAppxBundleWriter3_Vtbl - where - Identity: IAppxBundleWriter3_Impl, - { - unsafe extern "system" fn AddPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxBundleWriter3_Impl, - { + pub const fn new() -> IAppxBundleWriter3_Vtbl { + unsafe extern "system" fn AddPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter3_Impl::AddPackageReference(this, core::mem::transmute(&filename), windows_core::from_raw_borrowed(&inputstream)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, hashmethodstring: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAppxBundleWriter3_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, hashmethodstring: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter3_Impl::Close(this, core::mem::transmute(&hashmethodstring)).into() } @@ -1154,7 +923,7 @@ impl IAppxBundleWriter3_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxBundleWriter4_Impl: Sized { +pub trait IAppxBundleWriter4_Impl: Sized + windows_core::IUnknownImpl { fn AddPayloadPackage(&self, filename: &windows_core::PCWSTR, packagestream: Option<&super::super::super::System::Com::IStream>, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; fn AddPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: Option<&super::super::super::System::Com::IStream>, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; fn AddExternalPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: Option<&super::super::super::System::Com::IStream>, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -1163,28 +932,16 @@ pub trait IAppxBundleWriter4_Impl: Sized { impl windows_core::RuntimeName for IAppxBundleWriter4 {} #[cfg(feature = "Win32_System_Com")] impl IAppxBundleWriter4_Vtbl { - pub const fn new() -> IAppxBundleWriter4_Vtbl - where - Identity: IAppxBundleWriter4_Impl, - { - unsafe extern "system" fn AddPayloadPackage(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleWriter4_Impl, - { + pub const fn new() -> IAppxBundleWriter4_Vtbl { + unsafe extern "system" fn AddPayloadPackage(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter4_Impl::AddPayloadPackage(this, core::mem::transmute(&filename), windows_core::from_raw_borrowed(&packagestream), core::mem::transmute_copy(&isdefaultapplicablepackage)).into() } - unsafe extern "system" fn AddPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleWriter4_Impl, - { + unsafe extern "system" fn AddPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter4_Impl::AddPackageReference(this, core::mem::transmute(&filename), windows_core::from_raw_borrowed(&inputstream), core::mem::transmute_copy(&isdefaultapplicablepackage)).into() } - unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxBundleWriter4_Impl, - { + unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter4_Impl::AddExternalPackageReference(this, core::mem::transmute(&filename), windows_core::from_raw_borrowed(&inputstream), core::mem::transmute_copy(&isdefaultapplicablepackage)).into() } @@ -1199,20 +956,14 @@ impl IAppxBundleWriter4_Vtbl { iid == &::IID } } -pub trait IAppxContentGroup_Impl: Sized { +pub trait IAppxContentGroup_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetFiles(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxContentGroup {} impl IAppxContentGroup_Vtbl { - pub const fn new() -> IAppxContentGroup_Vtbl - where - Identity: IAppxContentGroup_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, groupname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxContentGroup_Impl, - { + pub const fn new() -> IAppxContentGroup_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, groupname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroup_Impl::GetName(this) { Ok(ok__) => { @@ -1222,10 +973,7 @@ impl IAppxContentGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFiles(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxContentGroup_Impl, - { + unsafe extern "system" fn GetFiles(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroup_Impl::GetFiles(this) { Ok(ok__) => { @@ -1241,21 +989,15 @@ impl IAppxContentGroup_Vtbl { iid == &::IID } } -pub trait IAppxContentGroupFilesEnumerator_Impl: Sized { +pub trait IAppxContentGroupFilesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxContentGroupFilesEnumerator {} impl IAppxContentGroupFilesEnumerator_Vtbl { - pub const fn new() -> IAppxContentGroupFilesEnumerator_Vtbl - where - Identity: IAppxContentGroupFilesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, file: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxContentGroupFilesEnumerator_Impl, - { + pub const fn new() -> IAppxContentGroupFilesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, file: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupFilesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -1265,10 +1007,7 @@ impl IAppxContentGroupFilesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxContentGroupFilesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupFilesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -1278,10 +1017,7 @@ impl IAppxContentGroupFilesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxContentGroupFilesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupFilesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -1302,20 +1038,14 @@ impl IAppxContentGroupFilesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxContentGroupMapReader_Impl: Sized { +pub trait IAppxContentGroupMapReader_Impl: Sized + windows_core::IUnknownImpl { fn GetRequiredGroup(&self) -> windows_core::Result; fn GetAutomaticGroups(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxContentGroupMapReader {} impl IAppxContentGroupMapReader_Vtbl { - pub const fn new() -> IAppxContentGroupMapReader_Vtbl - where - Identity: IAppxContentGroupMapReader_Impl, - { - unsafe extern "system" fn GetRequiredGroup(this: *mut core::ffi::c_void, requiredgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxContentGroupMapReader_Impl, - { + pub const fn new() -> IAppxContentGroupMapReader_Vtbl { + unsafe extern "system" fn GetRequiredGroup(this: *mut core::ffi::c_void, requiredgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupMapReader_Impl::GetRequiredGroup(this) { Ok(ok__) => { @@ -1325,10 +1055,7 @@ impl IAppxContentGroupMapReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAutomaticGroups(this: *mut core::ffi::c_void, automaticgroupsenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxContentGroupMapReader_Impl, - { + unsafe extern "system" fn GetAutomaticGroups(this: *mut core::ffi::c_void, automaticgroupsenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupMapReader_Impl::GetAutomaticGroups(this) { Ok(ok__) => { @@ -1348,35 +1075,23 @@ impl IAppxContentGroupMapReader_Vtbl { iid == &::IID } } -pub trait IAppxContentGroupMapWriter_Impl: Sized { +pub trait IAppxContentGroupMapWriter_Impl: Sized + windows_core::IUnknownImpl { fn AddAutomaticGroup(&self, groupname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn AddAutomaticFile(&self, filename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAppxContentGroupMapWriter {} impl IAppxContentGroupMapWriter_Vtbl { - pub const fn new() -> IAppxContentGroupMapWriter_Vtbl - where - Identity: IAppxContentGroupMapWriter_Impl, - { - unsafe extern "system" fn AddAutomaticGroup(this: *mut core::ffi::c_void, groupname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAppxContentGroupMapWriter_Impl, - { + pub const fn new() -> IAppxContentGroupMapWriter_Vtbl { + unsafe extern "system" fn AddAutomaticGroup(this: *mut core::ffi::c_void, groupname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxContentGroupMapWriter_Impl::AddAutomaticGroup(this, core::mem::transmute(&groupname)).into() } - unsafe extern "system" fn AddAutomaticFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAppxContentGroupMapWriter_Impl, - { + unsafe extern "system" fn AddAutomaticFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxContentGroupMapWriter_Impl::AddAutomaticFile(this, core::mem::transmute(&filename)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxContentGroupMapWriter_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxContentGroupMapWriter_Impl::Close(this).into() } @@ -1391,21 +1106,15 @@ impl IAppxContentGroupMapWriter_Vtbl { iid == &::IID } } -pub trait IAppxContentGroupsEnumerator_Impl: Sized { +pub trait IAppxContentGroupsEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxContentGroupsEnumerator {} impl IAppxContentGroupsEnumerator_Vtbl { - pub const fn new() -> IAppxContentGroupsEnumerator_Vtbl - where - Identity: IAppxContentGroupsEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxContentGroupsEnumerator_Impl, - { + pub const fn new() -> IAppxContentGroupsEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupsEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -1415,10 +1124,7 @@ impl IAppxContentGroupsEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxContentGroupsEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupsEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -1428,10 +1134,7 @@ impl IAppxContentGroupsEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxContentGroupsEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupsEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -1452,19 +1155,13 @@ impl IAppxContentGroupsEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxDigestProvider_Impl: Sized { +pub trait IAppxDigestProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetDigest(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxDigestProvider {} impl IAppxDigestProvider_Vtbl { - pub const fn new() -> IAppxDigestProvider_Vtbl - where - Identity: IAppxDigestProvider_Impl, - { - unsafe extern "system" fn GetDigest(this: *mut core::ffi::c_void, digest: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxDigestProvider_Impl, - { + pub const fn new() -> IAppxDigestProvider_Vtbl { + unsafe extern "system" fn GetDigest(this: *mut core::ffi::c_void, digest: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxDigestProvider_Impl::GetDigest(this) { Ok(ok__) => { @@ -1481,7 +1178,7 @@ impl IAppxDigestProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxEncryptedBundleWriter_Impl: Sized { +pub trait IAppxEncryptedBundleWriter_Impl: Sized + windows_core::IUnknownImpl { fn AddPayloadPackageEncrypted(&self, filename: &windows_core::PCWSTR, packagestream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; } @@ -1489,21 +1186,12 @@ pub trait IAppxEncryptedBundleWriter_Impl: Sized { impl windows_core::RuntimeName for IAppxEncryptedBundleWriter {} #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptedBundleWriter_Vtbl { - pub const fn new() -> IAppxEncryptedBundleWriter_Vtbl - where - Identity: IAppxEncryptedBundleWriter_Impl, - { - unsafe extern "system" fn AddPayloadPackageEncrypted(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptedBundleWriter_Impl, - { + pub const fn new() -> IAppxEncryptedBundleWriter_Vtbl { + unsafe extern "system" fn AddPayloadPackageEncrypted(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptedBundleWriter_Impl::AddPayloadPackageEncrypted(this, core::mem::transmute(&filename), windows_core::from_raw_borrowed(&packagestream)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptedBundleWriter_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptedBundleWriter_Impl::Close(this).into() } @@ -1518,21 +1206,15 @@ impl IAppxEncryptedBundleWriter_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxEncryptedBundleWriter2_Impl: Sized { +pub trait IAppxEncryptedBundleWriter2_Impl: Sized + windows_core::IUnknownImpl { fn AddExternalPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IAppxEncryptedBundleWriter2 {} #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptedBundleWriter2_Vtbl { - pub const fn new() -> IAppxEncryptedBundleWriter2_Vtbl - where - Identity: IAppxEncryptedBundleWriter2_Impl, - { - unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptedBundleWriter2_Impl, - { + pub const fn new() -> IAppxEncryptedBundleWriter2_Vtbl { + unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptedBundleWriter2_Impl::AddExternalPackageReference(this, core::mem::transmute(&filename), windows_core::from_raw_borrowed(&inputstream)).into() } @@ -1543,7 +1225,7 @@ impl IAppxEncryptedBundleWriter2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxEncryptedBundleWriter3_Impl: Sized { +pub trait IAppxEncryptedBundleWriter3_Impl: Sized + windows_core::IUnknownImpl { fn AddPayloadPackageEncrypted(&self, filename: &windows_core::PCWSTR, packagestream: Option<&super::super::super::System::Com::IStream>, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; fn AddExternalPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: Option<&super::super::super::System::Com::IStream>, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; } @@ -1551,21 +1233,12 @@ pub trait IAppxEncryptedBundleWriter3_Impl: Sized { impl windows_core::RuntimeName for IAppxEncryptedBundleWriter3 {} #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptedBundleWriter3_Vtbl { - pub const fn new() -> IAppxEncryptedBundleWriter3_Vtbl - where - Identity: IAppxEncryptedBundleWriter3_Impl, - { - unsafe extern "system" fn AddPayloadPackageEncrypted(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxEncryptedBundleWriter3_Impl, - { + pub const fn new() -> IAppxEncryptedBundleWriter3_Vtbl { + unsafe extern "system" fn AddPayloadPackageEncrypted(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptedBundleWriter3_Impl::AddPayloadPackageEncrypted(this, core::mem::transmute(&filename), windows_core::from_raw_borrowed(&packagestream), core::mem::transmute_copy(&isdefaultapplicablepackage)).into() } - unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxEncryptedBundleWriter3_Impl, - { + unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptedBundleWriter3_Impl::AddExternalPackageReference(this, core::mem::transmute(&filename), windows_core::from_raw_borrowed(&inputstream), core::mem::transmute_copy(&isdefaultapplicablepackage)).into() } @@ -1580,7 +1253,7 @@ impl IAppxEncryptedBundleWriter3_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxEncryptedPackageWriter_Impl: Sized { +pub trait IAppxEncryptedPackageWriter_Impl: Sized + windows_core::IUnknownImpl { fn AddPayloadFileEncrypted(&self, filename: &windows_core::PCWSTR, compressionoption: APPX_COMPRESSION_OPTION, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; } @@ -1588,21 +1261,12 @@ pub trait IAppxEncryptedPackageWriter_Impl: Sized { impl windows_core::RuntimeName for IAppxEncryptedPackageWriter {} #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptedPackageWriter_Vtbl { - pub const fn new() -> IAppxEncryptedPackageWriter_Vtbl - where - Identity: IAppxEncryptedPackageWriter_Impl, - { - unsafe extern "system" fn AddPayloadFileEncrypted(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, compressionoption: APPX_COMPRESSION_OPTION, inputstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptedPackageWriter_Impl, - { + pub const fn new() -> IAppxEncryptedPackageWriter_Vtbl { + unsafe extern "system" fn AddPayloadFileEncrypted(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, compressionoption: APPX_COMPRESSION_OPTION, inputstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptedPackageWriter_Impl::AddPayloadFileEncrypted(this, core::mem::transmute(&filename), core::mem::transmute_copy(&compressionoption), windows_core::from_raw_borrowed(&inputstream)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptedPackageWriter_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptedPackageWriter_Impl::Close(this).into() } @@ -1617,21 +1281,15 @@ impl IAppxEncryptedPackageWriter_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxEncryptedPackageWriter2_Impl: Sized { +pub trait IAppxEncryptedPackageWriter2_Impl: Sized + windows_core::IUnknownImpl { fn AddPayloadFilesEncrypted(&self, filecount: u32, payloadfiles: *const APPX_PACKAGE_WRITER_PAYLOAD_STREAM, memorylimit: u64) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IAppxEncryptedPackageWriter2 {} #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptedPackageWriter2_Vtbl { - pub const fn new() -> IAppxEncryptedPackageWriter2_Vtbl - where - Identity: IAppxEncryptedPackageWriter2_Impl, - { - unsafe extern "system" fn AddPayloadFilesEncrypted(this: *mut core::ffi::c_void, filecount: u32, payloadfiles: *const APPX_PACKAGE_WRITER_PAYLOAD_STREAM, memorylimit: u64) -> windows_core::HRESULT - where - Identity: IAppxEncryptedPackageWriter2_Impl, - { + pub const fn new() -> IAppxEncryptedPackageWriter2_Vtbl { + unsafe extern "system" fn AddPayloadFilesEncrypted(this: *mut core::ffi::c_void, filecount: u32, payloadfiles: *const APPX_PACKAGE_WRITER_PAYLOAD_STREAM, memorylimit: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptedPackageWriter2_Impl::AddPayloadFilesEncrypted(this, core::mem::transmute_copy(&filecount), core::mem::transmute_copy(&payloadfiles), core::mem::transmute_copy(&memorylimit)).into() } @@ -1642,7 +1300,7 @@ impl IAppxEncryptedPackageWriter2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxEncryptionFactory_Impl: Sized { +pub trait IAppxEncryptionFactory_Impl: Sized + windows_core::IUnknownImpl { fn EncryptPackage(&self, inputstream: Option<&super::super::super::System::Com::IStream>, outputstream: Option<&super::super::super::System::Com::IStream>, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result<()>; fn DecryptPackage(&self, inputstream: Option<&super::super::super::System::Com::IStream>, outputstream: Option<&super::super::super::System::Com::IStream>, keyinfo: *const APPX_KEY_INFO) -> windows_core::Result<()>; fn CreateEncryptedPackageWriter(&self, outputstream: Option<&super::super::super::System::Com::IStream>, manifeststream: Option<&super::super::super::System::Com::IStream>, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result; @@ -1656,28 +1314,16 @@ pub trait IAppxEncryptionFactory_Impl: Sized { impl windows_core::RuntimeName for IAppxEncryptionFactory {} #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptionFactory_Vtbl { - pub const fn new() -> IAppxEncryptionFactory_Vtbl - where - Identity: IAppxEncryptionFactory_Impl, - { - unsafe extern "system" fn EncryptPackage(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory_Impl, - { + pub const fn new() -> IAppxEncryptionFactory_Vtbl { + unsafe extern "system" fn EncryptPackage(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptionFactory_Impl::EncryptPackage(this, windows_core::from_raw_borrowed(&inputstream), windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo), core::mem::transmute_copy(&exemptedfiles)).into() } - unsafe extern "system" fn DecryptPackage(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory_Impl, - { + unsafe extern "system" fn DecryptPackage(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptionFactory_Impl::DecryptPackage(this, windows_core::from_raw_borrowed(&inputstream), windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&keyinfo)).into() } - unsafe extern "system" fn CreateEncryptedPackageWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, manifeststream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory_Impl, - { + unsafe extern "system" fn CreateEncryptedPackageWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, manifeststream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxEncryptionFactory_Impl::CreateEncryptedPackageWriter(this, windows_core::from_raw_borrowed(&outputstream), windows_core::from_raw_borrowed(&manifeststream), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo), core::mem::transmute_copy(&exemptedfiles)) { Ok(ok__) => { @@ -1687,10 +1333,7 @@ impl IAppxEncryptionFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEncryptedPackageReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO, packagereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory_Impl, - { + unsafe extern "system" fn CreateEncryptedPackageReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO, packagereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxEncryptionFactory_Impl::CreateEncryptedPackageReader(this, windows_core::from_raw_borrowed(&inputstream), core::mem::transmute_copy(&keyinfo)) { Ok(ok__) => { @@ -1700,24 +1343,15 @@ impl IAppxEncryptionFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EncryptBundle(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory_Impl, - { + unsafe extern "system" fn EncryptBundle(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptionFactory_Impl::EncryptBundle(this, windows_core::from_raw_borrowed(&inputstream), windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo), core::mem::transmute_copy(&exemptedfiles)).into() } - unsafe extern "system" fn DecryptBundle(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory_Impl, - { + unsafe extern "system" fn DecryptBundle(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptionFactory_Impl::DecryptBundle(this, windows_core::from_raw_borrowed(&inputstream), windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&keyinfo)).into() } - unsafe extern "system" fn CreateEncryptedBundleWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, bundleversion: u64, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, bundlewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory_Impl, - { + unsafe extern "system" fn CreateEncryptedBundleWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, bundleversion: u64, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, bundlewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxEncryptionFactory_Impl::CreateEncryptedBundleWriter(this, windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&bundleversion), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo), core::mem::transmute_copy(&exemptedfiles)) { Ok(ok__) => { @@ -1727,10 +1361,7 @@ impl IAppxEncryptionFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEncryptedBundleReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO, bundlereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory_Impl, - { + unsafe extern "system" fn CreateEncryptedBundleReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO, bundlereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxEncryptionFactory_Impl::CreateEncryptedBundleReader(this, windows_core::from_raw_borrowed(&inputstream), core::mem::transmute_copy(&keyinfo)) { Ok(ok__) => { @@ -1757,21 +1388,15 @@ impl IAppxEncryptionFactory_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxEncryptionFactory2_Impl: Sized { +pub trait IAppxEncryptionFactory2_Impl: Sized + windows_core::IUnknownImpl { fn CreateEncryptedPackageWriter(&self, outputstream: Option<&super::super::super::System::Com::IStream>, manifeststream: Option<&super::super::super::System::Com::IStream>, contentgroupmapstream: Option<&super::super::super::System::Com::IStream>, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IAppxEncryptionFactory2 {} #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptionFactory2_Vtbl { - pub const fn new() -> IAppxEncryptionFactory2_Vtbl - where - Identity: IAppxEncryptionFactory2_Impl, - { - unsafe extern "system" fn CreateEncryptedPackageWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, manifeststream: *mut core::ffi::c_void, contentgroupmapstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory2_Impl, - { + pub const fn new() -> IAppxEncryptionFactory2_Vtbl { + unsafe extern "system" fn CreateEncryptedPackageWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, manifeststream: *mut core::ffi::c_void, contentgroupmapstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxEncryptionFactory2_Impl::CreateEncryptedPackageWriter(this, windows_core::from_raw_borrowed(&outputstream), windows_core::from_raw_borrowed(&manifeststream), windows_core::from_raw_borrowed(&contentgroupmapstream), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo), core::mem::transmute_copy(&exemptedfiles)) { Ok(ok__) => { @@ -1788,7 +1413,7 @@ impl IAppxEncryptionFactory2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxEncryptionFactory3_Impl: Sized { +pub trait IAppxEncryptionFactory3_Impl: Sized + windows_core::IUnknownImpl { fn EncryptPackage(&self, inputstream: Option<&super::super::super::System::Com::IStream>, outputstream: Option<&super::super::super::System::Com::IStream>, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result<()>; fn CreateEncryptedPackageWriter(&self, outputstream: Option<&super::super::super::System::Com::IStream>, manifeststream: Option<&super::super::super::System::Com::IStream>, contentgroupmapstream: Option<&super::super::super::System::Com::IStream>, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result; fn EncryptBundle(&self, inputstream: Option<&super::super::super::System::Com::IStream>, outputstream: Option<&super::super::super::System::Com::IStream>, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::Result<()>; @@ -1798,21 +1423,12 @@ pub trait IAppxEncryptionFactory3_Impl: Sized { impl windows_core::RuntimeName for IAppxEncryptionFactory3 {} #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptionFactory3_Vtbl { - pub const fn new() -> IAppxEncryptionFactory3_Vtbl - where - Identity: IAppxEncryptionFactory3_Impl, - { - unsafe extern "system" fn EncryptPackage(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory3_Impl, - { + pub const fn new() -> IAppxEncryptionFactory3_Vtbl { + unsafe extern "system" fn EncryptPackage(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptionFactory3_Impl::EncryptPackage(this, windows_core::from_raw_borrowed(&inputstream), windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo), core::mem::transmute_copy(&exemptedfiles)).into() } - unsafe extern "system" fn CreateEncryptedPackageWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, manifeststream: *mut core::ffi::c_void, contentgroupmapstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory3_Impl, - { + unsafe extern "system" fn CreateEncryptedPackageWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, manifeststream: *mut core::ffi::c_void, contentgroupmapstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxEncryptionFactory3_Impl::CreateEncryptedPackageWriter(this, windows_core::from_raw_borrowed(&outputstream), windows_core::from_raw_borrowed(&manifeststream), windows_core::from_raw_borrowed(&contentgroupmapstream), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo), core::mem::transmute_copy(&exemptedfiles)) { Ok(ok__) => { @@ -1822,17 +1438,11 @@ impl IAppxEncryptionFactory3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EncryptBundle(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory3_Impl, - { + unsafe extern "system" fn EncryptBundle(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptionFactory3_Impl::EncryptBundle(this, windows_core::from_raw_borrowed(&inputstream), windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo), core::mem::transmute_copy(&exemptedfiles)).into() } - unsafe extern "system" fn CreateEncryptedBundleWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, bundleversion: u64, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, bundlewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory3_Impl, - { + unsafe extern "system" fn CreateEncryptedBundleWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, bundleversion: u64, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, bundlewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxEncryptionFactory3_Impl::CreateEncryptedBundleWriter(this, windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&bundleversion), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo), core::mem::transmute_copy(&exemptedfiles)) { Ok(ok__) => { @@ -1855,21 +1465,15 @@ impl IAppxEncryptionFactory3_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxEncryptionFactory4_Impl: Sized { +pub trait IAppxEncryptionFactory4_Impl: Sized + windows_core::IUnknownImpl { fn EncryptPackage(&self, inputstream: Option<&super::super::super::System::Com::IStream>, outputstream: Option<&super::super::super::System::Com::IStream>, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, memorylimit: u64) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IAppxEncryptionFactory4 {} #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptionFactory4_Vtbl { - pub const fn new() -> IAppxEncryptionFactory4_Vtbl - where - Identity: IAppxEncryptionFactory4_Impl, - { - unsafe extern "system" fn EncryptPackage(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, memorylimit: u64) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory4_Impl, - { + pub const fn new() -> IAppxEncryptionFactory4_Vtbl { + unsafe extern "system" fn EncryptPackage(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO, exemptedfiles: *const APPX_ENCRYPTED_EXEMPTIONS, memorylimit: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptionFactory4_Impl::EncryptPackage(this, windows_core::from_raw_borrowed(&inputstream), windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo), core::mem::transmute_copy(&exemptedfiles), core::mem::transmute_copy(&memorylimit)).into() } @@ -1880,7 +1484,7 @@ impl IAppxEncryptionFactory4_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxEncryptionFactory5_Impl: Sized { +pub trait IAppxEncryptionFactory5_Impl: Sized + windows_core::IUnknownImpl { fn CreateEncryptedPackageReader2(&self, inputstream: Option<&super::super::super::System::Com::IStream>, keyinfo: *const APPX_KEY_INFO, expecteddigest: &windows_core::PCWSTR) -> windows_core::Result; fn CreateEncryptedBundleReader2(&self, inputstream: Option<&super::super::super::System::Com::IStream>, keyinfo: *const APPX_KEY_INFO, expecteddigest: &windows_core::PCWSTR) -> windows_core::Result; } @@ -1888,14 +1492,8 @@ pub trait IAppxEncryptionFactory5_Impl: Sized { impl windows_core::RuntimeName for IAppxEncryptionFactory5 {} #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptionFactory5_Vtbl { - pub const fn new() -> IAppxEncryptionFactory5_Vtbl - where - Identity: IAppxEncryptionFactory5_Impl, - { - unsafe extern "system" fn CreateEncryptedPackageReader2(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO, expecteddigest: windows_core::PCWSTR, packagereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory5_Impl, - { + pub const fn new() -> IAppxEncryptionFactory5_Vtbl { + unsafe extern "system" fn CreateEncryptedPackageReader2(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO, expecteddigest: windows_core::PCWSTR, packagereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxEncryptionFactory5_Impl::CreateEncryptedPackageReader2(this, windows_core::from_raw_borrowed(&inputstream), core::mem::transmute_copy(&keyinfo), core::mem::transmute(&expecteddigest)) { Ok(ok__) => { @@ -1905,10 +1503,7 @@ impl IAppxEncryptionFactory5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEncryptedBundleReader2(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO, expecteddigest: windows_core::PCWSTR, bundlereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxEncryptionFactory5_Impl, - { + unsafe extern "system" fn CreateEncryptedBundleReader2(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, keyinfo: *const APPX_KEY_INFO, expecteddigest: windows_core::PCWSTR, bundlereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxEncryptionFactory5_Impl::CreateEncryptedBundleReader2(this, windows_core::from_raw_borrowed(&inputstream), core::mem::transmute_copy(&keyinfo), core::mem::transmute(&expecteddigest)) { Ok(ok__) => { @@ -1929,7 +1524,7 @@ impl IAppxEncryptionFactory5_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxFactory_Impl: Sized { +pub trait IAppxFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreatePackageWriter(&self, outputstream: Option<&super::super::super::System::Com::IStream>, settings: *const APPX_PACKAGE_SETTINGS) -> windows_core::Result; fn CreatePackageReader(&self, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result; fn CreateManifestReader(&self, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result; @@ -1940,14 +1535,8 @@ pub trait IAppxFactory_Impl: Sized { impl windows_core::RuntimeName for IAppxFactory {} #[cfg(feature = "Win32_System_Com")] impl IAppxFactory_Vtbl { - pub const fn new() -> IAppxFactory_Vtbl - where - Identity: IAppxFactory_Impl, - { - unsafe extern "system" fn CreatePackageWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_PACKAGE_SETTINGS, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory_Impl, - { + pub const fn new() -> IAppxFactory_Vtbl { + unsafe extern "system" fn CreatePackageWriter(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, settings: *const APPX_PACKAGE_SETTINGS, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory_Impl::CreatePackageWriter(this, windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&settings)) { Ok(ok__) => { @@ -1957,10 +1546,7 @@ impl IAppxFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePackageReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, packagereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory_Impl, - { + unsafe extern "system" fn CreatePackageReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, packagereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory_Impl::CreatePackageReader(this, windows_core::from_raw_borrowed(&inputstream)) { Ok(ok__) => { @@ -1970,10 +1556,7 @@ impl IAppxFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateManifestReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, manifestreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory_Impl, - { + unsafe extern "system" fn CreateManifestReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, manifestreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory_Impl::CreateManifestReader(this, windows_core::from_raw_borrowed(&inputstream)) { Ok(ok__) => { @@ -1983,10 +1566,7 @@ impl IAppxFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBlockMapReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, blockmapreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory_Impl, - { + unsafe extern "system" fn CreateBlockMapReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, blockmapreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory_Impl::CreateBlockMapReader(this, windows_core::from_raw_borrowed(&inputstream)) { Ok(ok__) => { @@ -1996,10 +1576,7 @@ impl IAppxFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateValidatedBlockMapReader(this: *mut core::ffi::c_void, blockmapstream: *mut core::ffi::c_void, signaturefilename: windows_core::PCWSTR, blockmapreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory_Impl, - { + unsafe extern "system" fn CreateValidatedBlockMapReader(this: *mut core::ffi::c_void, blockmapstream: *mut core::ffi::c_void, signaturefilename: windows_core::PCWSTR, blockmapreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory_Impl::CreateValidatedBlockMapReader(this, windows_core::from_raw_borrowed(&blockmapstream), core::mem::transmute(&signaturefilename)) { Ok(ok__) => { @@ -2023,7 +1600,7 @@ impl IAppxFactory_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxFactory2_Impl: Sized { +pub trait IAppxFactory2_Impl: Sized + windows_core::IUnknownImpl { fn CreateContentGroupMapReader(&self, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result; fn CreateSourceContentGroupMapReader(&self, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result; fn CreateContentGroupMapWriter(&self, stream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result; @@ -2032,14 +1609,8 @@ pub trait IAppxFactory2_Impl: Sized { impl windows_core::RuntimeName for IAppxFactory2 {} #[cfg(feature = "Win32_System_Com")] impl IAppxFactory2_Vtbl { - pub const fn new() -> IAppxFactory2_Vtbl - where - Identity: IAppxFactory2_Impl, - { - unsafe extern "system" fn CreateContentGroupMapReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, contentgroupmapreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory2_Impl, - { + pub const fn new() -> IAppxFactory2_Vtbl { + unsafe extern "system" fn CreateContentGroupMapReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, contentgroupmapreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory2_Impl::CreateContentGroupMapReader(this, windows_core::from_raw_borrowed(&inputstream)) { Ok(ok__) => { @@ -2049,10 +1620,7 @@ impl IAppxFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSourceContentGroupMapReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, reader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory2_Impl, - { + unsafe extern "system" fn CreateSourceContentGroupMapReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, reader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory2_Impl::CreateSourceContentGroupMapReader(this, windows_core::from_raw_borrowed(&inputstream)) { Ok(ok__) => { @@ -2062,10 +1630,7 @@ impl IAppxFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateContentGroupMapWriter(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, contentgroupmapwriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory2_Impl, - { + unsafe extern "system" fn CreateContentGroupMapWriter(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, contentgroupmapwriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory2_Impl::CreateContentGroupMapWriter(this, windows_core::from_raw_borrowed(&stream)) { Ok(ok__) => { @@ -2087,7 +1652,7 @@ impl IAppxFactory2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxFactory3_Impl: Sized { +pub trait IAppxFactory3_Impl: Sized + windows_core::IUnknownImpl { fn CreatePackageReader2(&self, inputstream: Option<&super::super::super::System::Com::IStream>, expecteddigest: &windows_core::PCWSTR) -> windows_core::Result; fn CreateManifestReader2(&self, inputstream: Option<&super::super::super::System::Com::IStream>, expecteddigest: &windows_core::PCWSTR) -> windows_core::Result; fn CreateAppInstallerReader(&self, inputstream: Option<&super::super::super::System::Com::IStream>, expecteddigest: &windows_core::PCWSTR) -> windows_core::Result; @@ -2096,14 +1661,8 @@ pub trait IAppxFactory3_Impl: Sized { impl windows_core::RuntimeName for IAppxFactory3 {} #[cfg(feature = "Win32_System_Com")] impl IAppxFactory3_Vtbl { - pub const fn new() -> IAppxFactory3_Vtbl - where - Identity: IAppxFactory3_Impl, - { - unsafe extern "system" fn CreatePackageReader2(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, expecteddigest: windows_core::PCWSTR, packagereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory3_Impl, - { + pub const fn new() -> IAppxFactory3_Vtbl { + unsafe extern "system" fn CreatePackageReader2(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, expecteddigest: windows_core::PCWSTR, packagereader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory3_Impl::CreatePackageReader2(this, windows_core::from_raw_borrowed(&inputstream), core::mem::transmute(&expecteddigest)) { Ok(ok__) => { @@ -2113,10 +1672,7 @@ impl IAppxFactory3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateManifestReader2(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, expecteddigest: windows_core::PCWSTR, manifestreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory3_Impl, - { + unsafe extern "system" fn CreateManifestReader2(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, expecteddigest: windows_core::PCWSTR, manifestreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory3_Impl::CreateManifestReader2(this, windows_core::from_raw_borrowed(&inputstream), core::mem::transmute(&expecteddigest)) { Ok(ok__) => { @@ -2126,10 +1682,7 @@ impl IAppxFactory3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAppInstallerReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, expecteddigest: windows_core::PCWSTR, appinstallerreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFactory3_Impl, - { + unsafe extern "system" fn CreateAppInstallerReader(this: *mut core::ffi::c_void, inputstream: *mut core::ffi::c_void, expecteddigest: windows_core::PCWSTR, appinstallerreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFactory3_Impl::CreateAppInstallerReader(this, windows_core::from_raw_borrowed(&inputstream), core::mem::transmute(&expecteddigest)) { Ok(ok__) => { @@ -2151,7 +1704,7 @@ impl IAppxFactory3_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxFile_Impl: Sized { +pub trait IAppxFile_Impl: Sized + windows_core::IUnknownImpl { fn GetCompressionOption(&self) -> windows_core::Result; fn GetContentType(&self) -> windows_core::Result; fn GetName(&self) -> windows_core::Result; @@ -2162,14 +1715,8 @@ pub trait IAppxFile_Impl: Sized { impl windows_core::RuntimeName for IAppxFile {} #[cfg(feature = "Win32_System_Com")] impl IAppxFile_Vtbl { - pub const fn new() -> IAppxFile_Vtbl - where - Identity: IAppxFile_Impl, - { - unsafe extern "system" fn GetCompressionOption(this: *mut core::ffi::c_void, compressionoption: *mut APPX_COMPRESSION_OPTION) -> windows_core::HRESULT - where - Identity: IAppxFile_Impl, - { + pub const fn new() -> IAppxFile_Vtbl { + unsafe extern "system" fn GetCompressionOption(this: *mut core::ffi::c_void, compressionoption: *mut APPX_COMPRESSION_OPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFile_Impl::GetCompressionOption(this) { Ok(ok__) => { @@ -2179,10 +1726,7 @@ impl IAppxFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContentType(this: *mut core::ffi::c_void, contenttype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxFile_Impl, - { + unsafe extern "system" fn GetContentType(this: *mut core::ffi::c_void, contenttype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFile_Impl::GetContentType(this) { Ok(ok__) => { @@ -2192,10 +1736,7 @@ impl IAppxFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, filename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxFile_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, filename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFile_Impl::GetName(this) { Ok(ok__) => { @@ -2205,10 +1746,7 @@ impl IAppxFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, size: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxFile_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, size: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFile_Impl::GetSize(this) { Ok(ok__) => { @@ -2218,10 +1756,7 @@ impl IAppxFile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFile_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFile_Impl::GetStream(this) { Ok(ok__) => { @@ -2244,21 +1779,15 @@ impl IAppxFile_Vtbl { iid == &::IID } } -pub trait IAppxFilesEnumerator_Impl: Sized { +pub trait IAppxFilesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxFilesEnumerator {} impl IAppxFilesEnumerator_Vtbl { - pub const fn new() -> IAppxFilesEnumerator_Vtbl - where - Identity: IAppxFilesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, file: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxFilesEnumerator_Impl, - { + pub const fn new() -> IAppxFilesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, file: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFilesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -2268,10 +1797,7 @@ impl IAppxFilesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxFilesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFilesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -2281,10 +1807,7 @@ impl IAppxFilesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxFilesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFilesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -2305,20 +1828,14 @@ impl IAppxFilesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestApplication_Impl: Sized { +pub trait IAppxManifestApplication_Impl: Sized + windows_core::IUnknownImpl { fn GetStringValue(&self, name: &windows_core::PCWSTR) -> windows_core::Result; fn GetAppUserModelId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestApplication {} impl IAppxManifestApplication_Vtbl { - pub const fn new() -> IAppxManifestApplication_Vtbl - where - Identity: IAppxManifestApplication_Impl, - { - unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestApplication_Impl, - { + pub const fn new() -> IAppxManifestApplication_Vtbl { + unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestApplication_Impl::GetStringValue(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -2328,10 +1845,7 @@ impl IAppxManifestApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAppUserModelId(this: *mut core::ffi::c_void, appusermodelid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestApplication_Impl, - { + unsafe extern "system" fn GetAppUserModelId(this: *mut core::ffi::c_void, appusermodelid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestApplication_Impl::GetAppUserModelId(this) { Ok(ok__) => { @@ -2351,21 +1865,15 @@ impl IAppxManifestApplication_Vtbl { iid == &::IID } } -pub trait IAppxManifestApplicationsEnumerator_Impl: Sized { +pub trait IAppxManifestApplicationsEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestApplicationsEnumerator {} impl IAppxManifestApplicationsEnumerator_Vtbl { - pub const fn new() -> IAppxManifestApplicationsEnumerator_Vtbl - where - Identity: IAppxManifestApplicationsEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, application: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestApplicationsEnumerator_Impl, - { + pub const fn new() -> IAppxManifestApplicationsEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, application: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestApplicationsEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -2375,10 +1883,7 @@ impl IAppxManifestApplicationsEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestApplicationsEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestApplicationsEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -2388,10 +1893,7 @@ impl IAppxManifestApplicationsEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestApplicationsEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestApplicationsEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -2412,21 +1914,15 @@ impl IAppxManifestApplicationsEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestCapabilitiesEnumerator_Impl: Sized { +pub trait IAppxManifestCapabilitiesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestCapabilitiesEnumerator {} impl IAppxManifestCapabilitiesEnumerator_Vtbl { - pub const fn new() -> IAppxManifestCapabilitiesEnumerator_Vtbl - where - Identity: IAppxManifestCapabilitiesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, capability: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestCapabilitiesEnumerator_Impl, - { + pub const fn new() -> IAppxManifestCapabilitiesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, capability: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestCapabilitiesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -2436,10 +1932,7 @@ impl IAppxManifestCapabilitiesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestCapabilitiesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestCapabilitiesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -2449,10 +1942,7 @@ impl IAppxManifestCapabilitiesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestCapabilitiesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestCapabilitiesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -2473,21 +1963,15 @@ impl IAppxManifestCapabilitiesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestDeviceCapabilitiesEnumerator_Impl: Sized { +pub trait IAppxManifestDeviceCapabilitiesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestDeviceCapabilitiesEnumerator {} impl IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { - pub const fn new() -> IAppxManifestDeviceCapabilitiesEnumerator_Vtbl - where - Identity: IAppxManifestDeviceCapabilitiesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, devicecapability: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestDeviceCapabilitiesEnumerator_Impl, - { + pub const fn new() -> IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, devicecapability: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDeviceCapabilitiesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -2497,10 +1981,7 @@ impl IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestDeviceCapabilitiesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDeviceCapabilitiesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -2510,10 +1991,7 @@ impl IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestDeviceCapabilitiesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDeviceCapabilitiesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -2534,21 +2012,15 @@ impl IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestDriverConstraint_Impl: Sized { +pub trait IAppxManifestDriverConstraint_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetMinVersion(&self) -> windows_core::Result; fn GetMinDate(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestDriverConstraint {} impl IAppxManifestDriverConstraint_Vtbl { - pub const fn new() -> IAppxManifestDriverConstraint_Vtbl - where - Identity: IAppxManifestDriverConstraint_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestDriverConstraint_Impl, - { + pub const fn new() -> IAppxManifestDriverConstraint_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverConstraint_Impl::GetName(this) { Ok(ok__) => { @@ -2558,10 +2030,7 @@ impl IAppxManifestDriverConstraint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMinVersion(this: *mut core::ffi::c_void, minversion: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxManifestDriverConstraint_Impl, - { + unsafe extern "system" fn GetMinVersion(this: *mut core::ffi::c_void, minversion: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverConstraint_Impl::GetMinVersion(this) { Ok(ok__) => { @@ -2571,10 +2040,7 @@ impl IAppxManifestDriverConstraint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMinDate(this: *mut core::ffi::c_void, mindate: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestDriverConstraint_Impl, - { + unsafe extern "system" fn GetMinDate(this: *mut core::ffi::c_void, mindate: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverConstraint_Impl::GetMinDate(this) { Ok(ok__) => { @@ -2595,21 +2061,15 @@ impl IAppxManifestDriverConstraint_Vtbl { iid == &::IID } } -pub trait IAppxManifestDriverConstraintsEnumerator_Impl: Sized { +pub trait IAppxManifestDriverConstraintsEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestDriverConstraintsEnumerator {} impl IAppxManifestDriverConstraintsEnumerator_Vtbl { - pub const fn new() -> IAppxManifestDriverConstraintsEnumerator_Vtbl - where - Identity: IAppxManifestDriverConstraintsEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, driverconstraint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestDriverConstraintsEnumerator_Impl, - { + pub const fn new() -> IAppxManifestDriverConstraintsEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, driverconstraint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverConstraintsEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -2619,10 +2079,7 @@ impl IAppxManifestDriverConstraintsEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestDriverConstraintsEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverConstraintsEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -2632,10 +2089,7 @@ impl IAppxManifestDriverConstraintsEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestDriverConstraintsEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverConstraintsEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -2656,21 +2110,15 @@ impl IAppxManifestDriverConstraintsEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestDriverDependenciesEnumerator_Impl: Sized { +pub trait IAppxManifestDriverDependenciesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestDriverDependenciesEnumerator {} impl IAppxManifestDriverDependenciesEnumerator_Vtbl { - pub const fn new() -> IAppxManifestDriverDependenciesEnumerator_Vtbl - where - Identity: IAppxManifestDriverDependenciesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, driverdependency: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestDriverDependenciesEnumerator_Impl, - { + pub const fn new() -> IAppxManifestDriverDependenciesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, driverdependency: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverDependenciesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -2680,10 +2128,7 @@ impl IAppxManifestDriverDependenciesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestDriverDependenciesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverDependenciesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -2693,10 +2138,7 @@ impl IAppxManifestDriverDependenciesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestDriverDependenciesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverDependenciesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -2717,19 +2159,13 @@ impl IAppxManifestDriverDependenciesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestDriverDependency_Impl: Sized { +pub trait IAppxManifestDriverDependency_Impl: Sized + windows_core::IUnknownImpl { fn GetDriverConstraints(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestDriverDependency {} impl IAppxManifestDriverDependency_Vtbl { - pub const fn new() -> IAppxManifestDriverDependency_Vtbl - where - Identity: IAppxManifestDriverDependency_Impl, - { - unsafe extern "system" fn GetDriverConstraints(this: *mut core::ffi::c_void, driverconstraints: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestDriverDependency_Impl, - { + pub const fn new() -> IAppxManifestDriverDependency_Vtbl { + unsafe extern "system" fn GetDriverConstraints(this: *mut core::ffi::c_void, driverconstraints: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverDependency_Impl::GetDriverConstraints(this) { Ok(ok__) => { @@ -2745,21 +2181,15 @@ impl IAppxManifestDriverDependency_Vtbl { iid == &::IID } } -pub trait IAppxManifestHostRuntimeDependenciesEnumerator_Impl: Sized { +pub trait IAppxManifestHostRuntimeDependenciesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestHostRuntimeDependenciesEnumerator {} impl IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { - pub const fn new() -> IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl - where - Identity: IAppxManifestHostRuntimeDependenciesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, hostruntimedependency: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestHostRuntimeDependenciesEnumerator_Impl, - { + pub const fn new() -> IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, hostruntimedependency: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestHostRuntimeDependenciesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -2769,10 +2199,7 @@ impl IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestHostRuntimeDependenciesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestHostRuntimeDependenciesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -2782,10 +2209,7 @@ impl IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestHostRuntimeDependenciesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestHostRuntimeDependenciesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -2806,21 +2230,15 @@ impl IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestHostRuntimeDependency_Impl: Sized { +pub trait IAppxManifestHostRuntimeDependency_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetPublisher(&self) -> windows_core::Result; fn GetMinVersion(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestHostRuntimeDependency {} impl IAppxManifestHostRuntimeDependency_Vtbl { - pub const fn new() -> IAppxManifestHostRuntimeDependency_Vtbl - where - Identity: IAppxManifestHostRuntimeDependency_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestHostRuntimeDependency_Impl, - { + pub const fn new() -> IAppxManifestHostRuntimeDependency_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestHostRuntimeDependency_Impl::GetName(this) { Ok(ok__) => { @@ -2830,10 +2248,7 @@ impl IAppxManifestHostRuntimeDependency_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPublisher(this: *mut core::ffi::c_void, publisher: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestHostRuntimeDependency_Impl, - { + unsafe extern "system" fn GetPublisher(this: *mut core::ffi::c_void, publisher: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestHostRuntimeDependency_Impl::GetPublisher(this) { Ok(ok__) => { @@ -2843,10 +2258,7 @@ impl IAppxManifestHostRuntimeDependency_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMinVersion(this: *mut core::ffi::c_void, minversion: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxManifestHostRuntimeDependency_Impl, - { + unsafe extern "system" fn GetMinVersion(this: *mut core::ffi::c_void, minversion: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestHostRuntimeDependency_Impl::GetMinVersion(this) { Ok(ok__) => { @@ -2867,19 +2279,13 @@ impl IAppxManifestHostRuntimeDependency_Vtbl { iid == &::IID } } -pub trait IAppxManifestHostRuntimeDependency2_Impl: Sized { +pub trait IAppxManifestHostRuntimeDependency2_Impl: Sized + windows_core::IUnknownImpl { fn GetPackageFamilyName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestHostRuntimeDependency2 {} impl IAppxManifestHostRuntimeDependency2_Vtbl { - pub const fn new() -> IAppxManifestHostRuntimeDependency2_Vtbl - where - Identity: IAppxManifestHostRuntimeDependency2_Impl, - { - unsafe extern "system" fn GetPackageFamilyName(this: *mut core::ffi::c_void, packagefamilyname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestHostRuntimeDependency2_Impl, - { + pub const fn new() -> IAppxManifestHostRuntimeDependency2_Vtbl { + unsafe extern "system" fn GetPackageFamilyName(this: *mut core::ffi::c_void, packagefamilyname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestHostRuntimeDependency2_Impl::GetPackageFamilyName(this) { Ok(ok__) => { @@ -2895,21 +2301,15 @@ impl IAppxManifestHostRuntimeDependency2_Vtbl { iid == &::IID } } -pub trait IAppxManifestMainPackageDependenciesEnumerator_Impl: Sized { +pub trait IAppxManifestMainPackageDependenciesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestMainPackageDependenciesEnumerator {} impl IAppxManifestMainPackageDependenciesEnumerator_Vtbl { - pub const fn new() -> IAppxManifestMainPackageDependenciesEnumerator_Vtbl - where - Identity: IAppxManifestMainPackageDependenciesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, mainpackagedependency: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestMainPackageDependenciesEnumerator_Impl, - { + pub const fn new() -> IAppxManifestMainPackageDependenciesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, mainpackagedependency: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestMainPackageDependenciesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -2919,10 +2319,7 @@ impl IAppxManifestMainPackageDependenciesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestMainPackageDependenciesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestMainPackageDependenciesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -2932,10 +2329,7 @@ impl IAppxManifestMainPackageDependenciesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestMainPackageDependenciesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestMainPackageDependenciesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -2956,21 +2350,15 @@ impl IAppxManifestMainPackageDependenciesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestMainPackageDependency_Impl: Sized { +pub trait IAppxManifestMainPackageDependency_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetPublisher(&self) -> windows_core::Result; fn GetPackageFamilyName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestMainPackageDependency {} impl IAppxManifestMainPackageDependency_Vtbl { - pub const fn new() -> IAppxManifestMainPackageDependency_Vtbl - where - Identity: IAppxManifestMainPackageDependency_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestMainPackageDependency_Impl, - { + pub const fn new() -> IAppxManifestMainPackageDependency_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestMainPackageDependency_Impl::GetName(this) { Ok(ok__) => { @@ -2980,10 +2368,7 @@ impl IAppxManifestMainPackageDependency_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPublisher(this: *mut core::ffi::c_void, publisher: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestMainPackageDependency_Impl, - { + unsafe extern "system" fn GetPublisher(this: *mut core::ffi::c_void, publisher: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestMainPackageDependency_Impl::GetPublisher(this) { Ok(ok__) => { @@ -2993,10 +2378,7 @@ impl IAppxManifestMainPackageDependency_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPackageFamilyName(this: *mut core::ffi::c_void, packagefamilyname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestMainPackageDependency_Impl, - { + unsafe extern "system" fn GetPackageFamilyName(this: *mut core::ffi::c_void, packagefamilyname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestMainPackageDependency_Impl::GetPackageFamilyName(this) { Ok(ok__) => { @@ -3017,21 +2399,15 @@ impl IAppxManifestMainPackageDependency_Vtbl { iid == &::IID } } -pub trait IAppxManifestOSPackageDependenciesEnumerator_Impl: Sized { +pub trait IAppxManifestOSPackageDependenciesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestOSPackageDependenciesEnumerator {} impl IAppxManifestOSPackageDependenciesEnumerator_Vtbl { - pub const fn new() -> IAppxManifestOSPackageDependenciesEnumerator_Vtbl - where - Identity: IAppxManifestOSPackageDependenciesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, ospackagedependency: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestOSPackageDependenciesEnumerator_Impl, - { + pub const fn new() -> IAppxManifestOSPackageDependenciesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, ospackagedependency: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestOSPackageDependenciesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -3041,10 +2417,7 @@ impl IAppxManifestOSPackageDependenciesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestOSPackageDependenciesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestOSPackageDependenciesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -3054,10 +2427,7 @@ impl IAppxManifestOSPackageDependenciesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestOSPackageDependenciesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestOSPackageDependenciesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -3078,20 +2448,14 @@ impl IAppxManifestOSPackageDependenciesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestOSPackageDependency_Impl: Sized { +pub trait IAppxManifestOSPackageDependency_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetVersion(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestOSPackageDependency {} impl IAppxManifestOSPackageDependency_Vtbl { - pub const fn new() -> IAppxManifestOSPackageDependency_Vtbl - where - Identity: IAppxManifestOSPackageDependency_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestOSPackageDependency_Impl, - { + pub const fn new() -> IAppxManifestOSPackageDependency_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestOSPackageDependency_Impl::GetName(this) { Ok(ok__) => { @@ -3101,10 +2465,7 @@ impl IAppxManifestOSPackageDependency_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, version: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxManifestOSPackageDependency_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, version: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestOSPackageDependency_Impl::GetVersion(this) { Ok(ok__) => { @@ -3120,20 +2481,14 @@ impl IAppxManifestOSPackageDependency_Vtbl { iid == &::IID } } -pub trait IAppxManifestOptionalPackageInfo_Impl: Sized { +pub trait IAppxManifestOptionalPackageInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetIsOptionalPackage(&self) -> windows_core::Result; fn GetMainPackageName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestOptionalPackageInfo {} impl IAppxManifestOptionalPackageInfo_Vtbl { - pub const fn new() -> IAppxManifestOptionalPackageInfo_Vtbl - where - Identity: IAppxManifestOptionalPackageInfo_Impl, - { - unsafe extern "system" fn GetIsOptionalPackage(this: *mut core::ffi::c_void, isoptionalpackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestOptionalPackageInfo_Impl, - { + pub const fn new() -> IAppxManifestOptionalPackageInfo_Vtbl { + unsafe extern "system" fn GetIsOptionalPackage(this: *mut core::ffi::c_void, isoptionalpackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestOptionalPackageInfo_Impl::GetIsOptionalPackage(this) { Ok(ok__) => { @@ -3143,10 +2498,7 @@ impl IAppxManifestOptionalPackageInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMainPackageName(this: *mut core::ffi::c_void, mainpackagename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestOptionalPackageInfo_Impl, - { + unsafe extern "system" fn GetMainPackageName(this: *mut core::ffi::c_void, mainpackagename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestOptionalPackageInfo_Impl::GetMainPackageName(this) { Ok(ok__) => { @@ -3166,21 +2518,15 @@ impl IAppxManifestOptionalPackageInfo_Vtbl { iid == &::IID } } -pub trait IAppxManifestPackageDependenciesEnumerator_Impl: Sized { +pub trait IAppxManifestPackageDependenciesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestPackageDependenciesEnumerator {} impl IAppxManifestPackageDependenciesEnumerator_Vtbl { - pub const fn new() -> IAppxManifestPackageDependenciesEnumerator_Vtbl - where - Identity: IAppxManifestPackageDependenciesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, dependency: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageDependenciesEnumerator_Impl, - { + pub const fn new() -> IAppxManifestPackageDependenciesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, dependency: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependenciesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -3190,10 +2536,7 @@ impl IAppxManifestPackageDependenciesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageDependenciesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependenciesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -3203,10 +2546,7 @@ impl IAppxManifestPackageDependenciesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageDependenciesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependenciesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -3227,21 +2567,15 @@ impl IAppxManifestPackageDependenciesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestPackageDependency_Impl: Sized { +pub trait IAppxManifestPackageDependency_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetPublisher(&self) -> windows_core::Result; fn GetMinVersion(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestPackageDependency {} impl IAppxManifestPackageDependency_Vtbl { - pub const fn new() -> IAppxManifestPackageDependency_Vtbl - where - Identity: IAppxManifestPackageDependency_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageDependency_Impl, - { + pub const fn new() -> IAppxManifestPackageDependency_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependency_Impl::GetName(this) { Ok(ok__) => { @@ -3251,10 +2585,7 @@ impl IAppxManifestPackageDependency_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPublisher(this: *mut core::ffi::c_void, publisher: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageDependency_Impl, - { + unsafe extern "system" fn GetPublisher(this: *mut core::ffi::c_void, publisher: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependency_Impl::GetPublisher(this) { Ok(ok__) => { @@ -3264,10 +2595,7 @@ impl IAppxManifestPackageDependency_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMinVersion(this: *mut core::ffi::c_void, minversion: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageDependency_Impl, - { + unsafe extern "system" fn GetMinVersion(this: *mut core::ffi::c_void, minversion: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependency_Impl::GetMinVersion(this) { Ok(ok__) => { @@ -3293,14 +2621,8 @@ pub trait IAppxManifestPackageDependency2_Impl: Sized + IAppxManifestPackageDepe } impl windows_core::RuntimeName for IAppxManifestPackageDependency2 {} impl IAppxManifestPackageDependency2_Vtbl { - pub const fn new() -> IAppxManifestPackageDependency2_Vtbl - where - Identity: IAppxManifestPackageDependency2_Impl, - { - unsafe extern "system" fn GetMaxMajorVersionTested(this: *mut core::ffi::c_void, maxmajorversiontested: *mut u16) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageDependency2_Impl, - { + pub const fn new() -> IAppxManifestPackageDependency2_Vtbl { + unsafe extern "system" fn GetMaxMajorVersionTested(this: *mut core::ffi::c_void, maxmajorversiontested: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependency2_Impl::GetMaxMajorVersionTested(this) { Ok(ok__) => { @@ -3316,19 +2638,13 @@ impl IAppxManifestPackageDependency2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAppxManifestPackageDependency3_Impl: Sized { +pub trait IAppxManifestPackageDependency3_Impl: Sized + windows_core::IUnknownImpl { fn GetIsOptional(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestPackageDependency3 {} impl IAppxManifestPackageDependency3_Vtbl { - pub const fn new() -> IAppxManifestPackageDependency3_Vtbl - where - Identity: IAppxManifestPackageDependency3_Impl, - { - unsafe extern "system" fn GetIsOptional(this: *mut core::ffi::c_void, isoptional: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageDependency3_Impl, - { + pub const fn new() -> IAppxManifestPackageDependency3_Vtbl { + unsafe extern "system" fn GetIsOptional(this: *mut core::ffi::c_void, isoptional: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependency3_Impl::GetIsOptional(this) { Ok(ok__) => { @@ -3344,7 +2660,7 @@ impl IAppxManifestPackageDependency3_Vtbl { iid == &::IID } } -pub trait IAppxManifestPackageId_Impl: Sized { +pub trait IAppxManifestPackageId_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetArchitecture(&self) -> windows_core::Result; fn GetPublisher(&self) -> windows_core::Result; @@ -3356,14 +2672,8 @@ pub trait IAppxManifestPackageId_Impl: Sized { } impl windows_core::RuntimeName for IAppxManifestPackageId {} impl IAppxManifestPackageId_Vtbl { - pub const fn new() -> IAppxManifestPackageId_Vtbl - where - Identity: IAppxManifestPackageId_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageId_Impl, - { + pub const fn new() -> IAppxManifestPackageId_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageId_Impl::GetName(this) { Ok(ok__) => { @@ -3373,10 +2683,7 @@ impl IAppxManifestPackageId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetArchitecture(this: *mut core::ffi::c_void, architecture: *mut APPX_PACKAGE_ARCHITECTURE) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageId_Impl, - { + unsafe extern "system" fn GetArchitecture(this: *mut core::ffi::c_void, architecture: *mut APPX_PACKAGE_ARCHITECTURE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageId_Impl::GetArchitecture(this) { Ok(ok__) => { @@ -3386,10 +2693,7 @@ impl IAppxManifestPackageId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPublisher(this: *mut core::ffi::c_void, publisher: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageId_Impl, - { + unsafe extern "system" fn GetPublisher(this: *mut core::ffi::c_void, publisher: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageId_Impl::GetPublisher(this) { Ok(ok__) => { @@ -3399,10 +2703,7 @@ impl IAppxManifestPackageId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, packageversion: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageId_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, packageversion: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageId_Impl::GetVersion(this) { Ok(ok__) => { @@ -3412,10 +2713,7 @@ impl IAppxManifestPackageId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResourceId(this: *mut core::ffi::c_void, resourceid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageId_Impl, - { + unsafe extern "system" fn GetResourceId(this: *mut core::ffi::c_void, resourceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageId_Impl::GetResourceId(this) { Ok(ok__) => { @@ -3425,10 +2723,7 @@ impl IAppxManifestPackageId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComparePublisher(this: *mut core::ffi::c_void, other: windows_core::PCWSTR, issame: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageId_Impl, - { + unsafe extern "system" fn ComparePublisher(this: *mut core::ffi::c_void, other: windows_core::PCWSTR, issame: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageId_Impl::ComparePublisher(this, core::mem::transmute(&other)) { Ok(ok__) => { @@ -3438,10 +2733,7 @@ impl IAppxManifestPackageId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPackageFullName(this: *mut core::ffi::c_void, packagefullname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageId_Impl, - { + unsafe extern "system" fn GetPackageFullName(this: *mut core::ffi::c_void, packagefullname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageId_Impl::GetPackageFullName(this) { Ok(ok__) => { @@ -3451,10 +2743,7 @@ impl IAppxManifestPackageId_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPackageFamilyName(this: *mut core::ffi::c_void, packagefamilyname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageId_Impl, - { + unsafe extern "system" fn GetPackageFamilyName(this: *mut core::ffi::c_void, packagefamilyname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageId_Impl::GetPackageFamilyName(this) { Ok(ok__) => { @@ -3485,14 +2774,8 @@ pub trait IAppxManifestPackageId2_Impl: Sized + IAppxManifestPackageId_Impl { } impl windows_core::RuntimeName for IAppxManifestPackageId2 {} impl IAppxManifestPackageId2_Vtbl { - pub const fn new() -> IAppxManifestPackageId2_Vtbl - where - Identity: IAppxManifestPackageId2_Impl, - { - unsafe extern "system" fn GetArchitecture2(this: *mut core::ffi::c_void, architecture: *mut APPX_PACKAGE_ARCHITECTURE2) -> windows_core::HRESULT - where - Identity: IAppxManifestPackageId2_Impl, - { + pub const fn new() -> IAppxManifestPackageId2_Vtbl { + unsafe extern "system" fn GetArchitecture2(this: *mut core::ffi::c_void, architecture: *mut APPX_PACKAGE_ARCHITECTURE2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageId2_Impl::GetArchitecture2(this) { Ok(ok__) => { @@ -3508,20 +2791,14 @@ impl IAppxManifestPackageId2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAppxManifestProperties_Impl: Sized { +pub trait IAppxManifestProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetBoolValue(&self, name: &windows_core::PCWSTR) -> windows_core::Result; fn GetStringValue(&self, name: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestProperties {} impl IAppxManifestProperties_Vtbl { - pub const fn new() -> IAppxManifestProperties_Vtbl - where - Identity: IAppxManifestProperties_Impl, - { - unsafe extern "system" fn GetBoolValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestProperties_Impl, - { + pub const fn new() -> IAppxManifestProperties_Vtbl { + unsafe extern "system" fn GetBoolValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestProperties_Impl::GetBoolValue(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -3531,10 +2808,7 @@ impl IAppxManifestProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestProperties_Impl, - { + unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestProperties_Impl::GetStringValue(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -3554,21 +2828,15 @@ impl IAppxManifestProperties_Vtbl { iid == &::IID } } -pub trait IAppxManifestQualifiedResource_Impl: Sized { +pub trait IAppxManifestQualifiedResource_Impl: Sized + windows_core::IUnknownImpl { fn GetLanguage(&self) -> windows_core::Result; fn GetScale(&self) -> windows_core::Result; fn GetDXFeatureLevel(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestQualifiedResource {} impl IAppxManifestQualifiedResource_Vtbl { - pub const fn new() -> IAppxManifestQualifiedResource_Vtbl - where - Identity: IAppxManifestQualifiedResource_Impl, - { - unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, language: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestQualifiedResource_Impl, - { + pub const fn new() -> IAppxManifestQualifiedResource_Vtbl { + unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, language: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestQualifiedResource_Impl::GetLanguage(this) { Ok(ok__) => { @@ -3578,10 +2846,7 @@ impl IAppxManifestQualifiedResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScale(this: *mut core::ffi::c_void, scale: *mut u32) -> windows_core::HRESULT - where - Identity: IAppxManifestQualifiedResource_Impl, - { + unsafe extern "system" fn GetScale(this: *mut core::ffi::c_void, scale: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestQualifiedResource_Impl::GetScale(this) { Ok(ok__) => { @@ -3591,10 +2856,7 @@ impl IAppxManifestQualifiedResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDXFeatureLevel(this: *mut core::ffi::c_void, dxfeaturelevel: *mut DX_FEATURE_LEVEL) -> windows_core::HRESULT - where - Identity: IAppxManifestQualifiedResource_Impl, - { + unsafe extern "system" fn GetDXFeatureLevel(this: *mut core::ffi::c_void, dxfeaturelevel: *mut DX_FEATURE_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestQualifiedResource_Impl::GetDXFeatureLevel(this) { Ok(ok__) => { @@ -3615,21 +2877,15 @@ impl IAppxManifestQualifiedResource_Vtbl { iid == &::IID } } -pub trait IAppxManifestQualifiedResourcesEnumerator_Impl: Sized { +pub trait IAppxManifestQualifiedResourcesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestQualifiedResourcesEnumerator {} impl IAppxManifestQualifiedResourcesEnumerator_Vtbl { - pub const fn new() -> IAppxManifestQualifiedResourcesEnumerator_Vtbl - where - Identity: IAppxManifestQualifiedResourcesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, resource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestQualifiedResourcesEnumerator_Impl, - { + pub const fn new() -> IAppxManifestQualifiedResourcesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, resource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestQualifiedResourcesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -3639,10 +2895,7 @@ impl IAppxManifestQualifiedResourcesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestQualifiedResourcesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestQualifiedResourcesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -3652,10 +2905,7 @@ impl IAppxManifestQualifiedResourcesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestQualifiedResourcesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestQualifiedResourcesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -3677,7 +2927,7 @@ impl IAppxManifestQualifiedResourcesEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxManifestReader_Impl: Sized { +pub trait IAppxManifestReader_Impl: Sized + windows_core::IUnknownImpl { fn GetPackageId(&self) -> windows_core::Result; fn GetProperties(&self) -> windows_core::Result; fn GetPackageDependencies(&self) -> windows_core::Result; @@ -3692,14 +2942,8 @@ pub trait IAppxManifestReader_Impl: Sized { impl windows_core::RuntimeName for IAppxManifestReader {} #[cfg(feature = "Win32_System_Com")] impl IAppxManifestReader_Vtbl { - pub const fn new() -> IAppxManifestReader_Vtbl - where - Identity: IAppxManifestReader_Impl, - { - unsafe extern "system" fn GetPackageId(this: *mut core::ffi::c_void, packageid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader_Impl, - { + pub const fn new() -> IAppxManifestReader_Vtbl { + unsafe extern "system" fn GetPackageId(this: *mut core::ffi::c_void, packageid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader_Impl::GetPackageId(this) { Ok(ok__) => { @@ -3709,10 +2953,7 @@ impl IAppxManifestReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, packageproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, packageproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader_Impl::GetProperties(this) { Ok(ok__) => { @@ -3722,10 +2963,7 @@ impl IAppxManifestReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPackageDependencies(this: *mut core::ffi::c_void, dependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader_Impl, - { + unsafe extern "system" fn GetPackageDependencies(this: *mut core::ffi::c_void, dependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader_Impl::GetPackageDependencies(this) { Ok(ok__) => { @@ -3735,10 +2973,7 @@ impl IAppxManifestReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, capabilities: *mut APPX_CAPABILITIES) -> windows_core::HRESULT - where - Identity: IAppxManifestReader_Impl, - { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, capabilities: *mut APPX_CAPABILITIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -3748,10 +2983,7 @@ impl IAppxManifestReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResources(this: *mut core::ffi::c_void, resources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader_Impl, - { + unsafe extern "system" fn GetResources(this: *mut core::ffi::c_void, resources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader_Impl::GetResources(this) { Ok(ok__) => { @@ -3761,10 +2993,7 @@ impl IAppxManifestReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceCapabilities(this: *mut core::ffi::c_void, devicecapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader_Impl, - { + unsafe extern "system" fn GetDeviceCapabilities(this: *mut core::ffi::c_void, devicecapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader_Impl::GetDeviceCapabilities(this) { Ok(ok__) => { @@ -3774,10 +3003,7 @@ impl IAppxManifestReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrerequisite(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxManifestReader_Impl, - { + unsafe extern "system" fn GetPrerequisite(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader_Impl::GetPrerequisite(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -3787,10 +3013,7 @@ impl IAppxManifestReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetApplications(this: *mut core::ffi::c_void, applications: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader_Impl, - { + unsafe extern "system" fn GetApplications(this: *mut core::ffi::c_void, applications: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader_Impl::GetApplications(this) { Ok(ok__) => { @@ -3800,10 +3023,7 @@ impl IAppxManifestReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, manifeststream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, manifeststream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader_Impl::GetStream(this) { Ok(ok__) => { @@ -3838,14 +3058,8 @@ pub trait IAppxManifestReader2_Impl: Sized + IAppxManifestReader_Impl { impl windows_core::RuntimeName for IAppxManifestReader2 {} #[cfg(feature = "Win32_System_Com")] impl IAppxManifestReader2_Vtbl { - pub const fn new() -> IAppxManifestReader2_Vtbl - where - Identity: IAppxManifestReader2_Impl, - { - unsafe extern "system" fn GetQualifiedResources(this: *mut core::ffi::c_void, resources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader2_Impl, - { + pub const fn new() -> IAppxManifestReader2_Vtbl { + unsafe extern "system" fn GetQualifiedResources(this: *mut core::ffi::c_void, resources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader2_Impl::GetQualifiedResources(this) { Ok(ok__) => { @@ -3870,14 +3084,8 @@ pub trait IAppxManifestReader3_Impl: Sized + IAppxManifestReader2_Impl { impl windows_core::RuntimeName for IAppxManifestReader3 {} #[cfg(feature = "Win32_System_Com")] impl IAppxManifestReader3_Vtbl { - pub const fn new() -> IAppxManifestReader3_Vtbl - where - Identity: IAppxManifestReader3_Impl, - { - unsafe extern "system" fn GetCapabilitiesByCapabilityClass(this: *mut core::ffi::c_void, capabilityclass: APPX_CAPABILITY_CLASS_TYPE, capabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader3_Impl, - { + pub const fn new() -> IAppxManifestReader3_Vtbl { + unsafe extern "system" fn GetCapabilitiesByCapabilityClass(this: *mut core::ffi::c_void, capabilityclass: APPX_CAPABILITY_CLASS_TYPE, capabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader3_Impl::GetCapabilitiesByCapabilityClass(this, core::mem::transmute_copy(&capabilityclass)) { Ok(ok__) => { @@ -3887,10 +3095,7 @@ impl IAppxManifestReader3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTargetDeviceFamilies(this: *mut core::ffi::c_void, targetdevicefamilies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader3_Impl, - { + unsafe extern "system" fn GetTargetDeviceFamilies(this: *mut core::ffi::c_void, targetdevicefamilies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader3_Impl::GetTargetDeviceFamilies(this) { Ok(ok__) => { @@ -3918,14 +3123,8 @@ pub trait IAppxManifestReader4_Impl: Sized + IAppxManifestReader3_Impl { impl windows_core::RuntimeName for IAppxManifestReader4 {} #[cfg(feature = "Win32_System_Com")] impl IAppxManifestReader4_Vtbl { - pub const fn new() -> IAppxManifestReader4_Vtbl - where - Identity: IAppxManifestReader4_Impl, - { - unsafe extern "system" fn GetOptionalPackageInfo(this: *mut core::ffi::c_void, optionalpackageinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader4_Impl, - { + pub const fn new() -> IAppxManifestReader4_Vtbl { + unsafe extern "system" fn GetOptionalPackageInfo(this: *mut core::ffi::c_void, optionalpackageinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader4_Impl::GetOptionalPackageInfo(this) { Ok(ok__) => { @@ -3941,19 +3140,13 @@ impl IAppxManifestReader4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IAppxManifestReader5_Impl: Sized { +pub trait IAppxManifestReader5_Impl: Sized + windows_core::IUnknownImpl { fn GetMainPackageDependencies(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestReader5 {} impl IAppxManifestReader5_Vtbl { - pub const fn new() -> IAppxManifestReader5_Vtbl - where - Identity: IAppxManifestReader5_Impl, - { - unsafe extern "system" fn GetMainPackageDependencies(this: *mut core::ffi::c_void, mainpackagedependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader5_Impl, - { + pub const fn new() -> IAppxManifestReader5_Vtbl { + unsafe extern "system" fn GetMainPackageDependencies(this: *mut core::ffi::c_void, mainpackagedependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader5_Impl::GetMainPackageDependencies(this) { Ok(ok__) => { @@ -3969,19 +3162,13 @@ impl IAppxManifestReader5_Vtbl { iid == &::IID } } -pub trait IAppxManifestReader6_Impl: Sized { +pub trait IAppxManifestReader6_Impl: Sized + windows_core::IUnknownImpl { fn GetIsNonQualifiedResourcePackage(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestReader6 {} impl IAppxManifestReader6_Vtbl { - pub const fn new() -> IAppxManifestReader6_Vtbl - where - Identity: IAppxManifestReader6_Impl, - { - unsafe extern "system" fn GetIsNonQualifiedResourcePackage(this: *mut core::ffi::c_void, isnonqualifiedresourcepackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestReader6_Impl, - { + pub const fn new() -> IAppxManifestReader6_Vtbl { + unsafe extern "system" fn GetIsNonQualifiedResourcePackage(this: *mut core::ffi::c_void, isnonqualifiedresourcepackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader6_Impl::GetIsNonQualifiedResourcePackage(this) { Ok(ok__) => { @@ -4000,21 +3187,15 @@ impl IAppxManifestReader6_Vtbl { iid == &::IID } } -pub trait IAppxManifestReader7_Impl: Sized { +pub trait IAppxManifestReader7_Impl: Sized + windows_core::IUnknownImpl { fn GetDriverDependencies(&self) -> windows_core::Result; fn GetOSPackageDependencies(&self) -> windows_core::Result; fn GetHostRuntimeDependencies(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestReader7 {} impl IAppxManifestReader7_Vtbl { - pub const fn new() -> IAppxManifestReader7_Vtbl - where - Identity: IAppxManifestReader7_Impl, - { - unsafe extern "system" fn GetDriverDependencies(this: *mut core::ffi::c_void, driverdependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader7_Impl, - { + pub const fn new() -> IAppxManifestReader7_Vtbl { + unsafe extern "system" fn GetDriverDependencies(this: *mut core::ffi::c_void, driverdependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader7_Impl::GetDriverDependencies(this) { Ok(ok__) => { @@ -4024,10 +3205,7 @@ impl IAppxManifestReader7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOSPackageDependencies(this: *mut core::ffi::c_void, ospackagedependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader7_Impl, - { + unsafe extern "system" fn GetOSPackageDependencies(this: *mut core::ffi::c_void, ospackagedependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader7_Impl::GetOSPackageDependencies(this) { Ok(ok__) => { @@ -4037,10 +3215,7 @@ impl IAppxManifestReader7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHostRuntimeDependencies(this: *mut core::ffi::c_void, hostruntimedependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestReader7_Impl, - { + unsafe extern "system" fn GetHostRuntimeDependencies(this: *mut core::ffi::c_void, hostruntimedependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader7_Impl::GetHostRuntimeDependencies(this) { Ok(ok__) => { @@ -4061,21 +3236,15 @@ impl IAppxManifestReader7_Vtbl { iid == &::IID } } -pub trait IAppxManifestResourcesEnumerator_Impl: Sized { +pub trait IAppxManifestResourcesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestResourcesEnumerator {} impl IAppxManifestResourcesEnumerator_Vtbl { - pub const fn new() -> IAppxManifestResourcesEnumerator_Vtbl - where - Identity: IAppxManifestResourcesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, resource: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestResourcesEnumerator_Impl, - { + pub const fn new() -> IAppxManifestResourcesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, resource: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestResourcesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -4085,10 +3254,7 @@ impl IAppxManifestResourcesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestResourcesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestResourcesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -4098,10 +3264,7 @@ impl IAppxManifestResourcesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestResourcesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestResourcesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -4122,21 +3285,15 @@ impl IAppxManifestResourcesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestTargetDeviceFamiliesEnumerator_Impl: Sized { +pub trait IAppxManifestTargetDeviceFamiliesEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; fn GetHasCurrent(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestTargetDeviceFamiliesEnumerator {} impl IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { - pub const fn new() -> IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl - where - Identity: IAppxManifestTargetDeviceFamiliesEnumerator_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, targetdevicefamily: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxManifestTargetDeviceFamiliesEnumerator_Impl, - { + pub const fn new() -> IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, targetdevicefamily: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestTargetDeviceFamiliesEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -4146,10 +3303,7 @@ impl IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestTargetDeviceFamiliesEnumerator_Impl, - { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestTargetDeviceFamiliesEnumerator_Impl::GetHasCurrent(this) { Ok(ok__) => { @@ -4159,10 +3313,7 @@ impl IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppxManifestTargetDeviceFamiliesEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestTargetDeviceFamiliesEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -4183,21 +3334,15 @@ impl IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { iid == &::IID } } -pub trait IAppxManifestTargetDeviceFamily_Impl: Sized { +pub trait IAppxManifestTargetDeviceFamily_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetMinVersion(&self) -> windows_core::Result; fn GetMaxVersionTested(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxManifestTargetDeviceFamily {} impl IAppxManifestTargetDeviceFamily_Vtbl { - pub const fn new() -> IAppxManifestTargetDeviceFamily_Vtbl - where - Identity: IAppxManifestTargetDeviceFamily_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAppxManifestTargetDeviceFamily_Impl, - { + pub const fn new() -> IAppxManifestTargetDeviceFamily_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestTargetDeviceFamily_Impl::GetName(this) { Ok(ok__) => { @@ -4207,10 +3352,7 @@ impl IAppxManifestTargetDeviceFamily_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMinVersion(this: *mut core::ffi::c_void, minversion: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxManifestTargetDeviceFamily_Impl, - { + unsafe extern "system" fn GetMinVersion(this: *mut core::ffi::c_void, minversion: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestTargetDeviceFamily_Impl::GetMinVersion(this) { Ok(ok__) => { @@ -4220,10 +3362,7 @@ impl IAppxManifestTargetDeviceFamily_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxVersionTested(this: *mut core::ffi::c_void, maxversiontested: *mut u64) -> windows_core::HRESULT - where - Identity: IAppxManifestTargetDeviceFamily_Impl, - { + unsafe extern "system" fn GetMaxVersionTested(this: *mut core::ffi::c_void, maxversiontested: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestTargetDeviceFamily_Impl::GetMaxVersionTested(this) { Ok(ok__) => { @@ -4245,7 +3384,7 @@ impl IAppxManifestTargetDeviceFamily_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxPackageEditor_Impl: Sized { +pub trait IAppxPackageEditor_Impl: Sized + windows_core::IUnknownImpl { fn SetWorkingDirectory(&self, workingdirectory: &windows_core::PCWSTR) -> windows_core::Result<()>; fn CreateDeltaPackage(&self, updatedpackagestream: Option<&super::super::super::System::Com::IStream>, baselinepackagestream: Option<&super::super::super::System::Com::IStream>, deltapackagestream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; fn CreateDeltaPackageUsingBaselineBlockMap(&self, updatedpackagestream: Option<&super::super::super::System::Com::IStream>, baselineblockmapstream: Option<&super::super::super::System::Com::IStream>, baselinepackagefullname: &windows_core::PCWSTR, deltapackagestream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; @@ -4257,49 +3396,28 @@ pub trait IAppxPackageEditor_Impl: Sized { impl windows_core::RuntimeName for IAppxPackageEditor {} #[cfg(feature = "Win32_System_Com")] impl IAppxPackageEditor_Vtbl { - pub const fn new() -> IAppxPackageEditor_Vtbl - where - Identity: IAppxPackageEditor_Impl, - { - unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, workingdirectory: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAppxPackageEditor_Impl, - { + pub const fn new() -> IAppxPackageEditor_Vtbl { + unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, workingdirectory: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageEditor_Impl::SetWorkingDirectory(this, core::mem::transmute(&workingdirectory)).into() } - unsafe extern "system" fn CreateDeltaPackage(this: *mut core::ffi::c_void, updatedpackagestream: *mut core::ffi::c_void, baselinepackagestream: *mut core::ffi::c_void, deltapackagestream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackageEditor_Impl, - { + unsafe extern "system" fn CreateDeltaPackage(this: *mut core::ffi::c_void, updatedpackagestream: *mut core::ffi::c_void, baselinepackagestream: *mut core::ffi::c_void, deltapackagestream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageEditor_Impl::CreateDeltaPackage(this, windows_core::from_raw_borrowed(&updatedpackagestream), windows_core::from_raw_borrowed(&baselinepackagestream), windows_core::from_raw_borrowed(&deltapackagestream)).into() } - unsafe extern "system" fn CreateDeltaPackageUsingBaselineBlockMap(this: *mut core::ffi::c_void, updatedpackagestream: *mut core::ffi::c_void, baselineblockmapstream: *mut core::ffi::c_void, baselinepackagefullname: windows_core::PCWSTR, deltapackagestream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackageEditor_Impl, - { + unsafe extern "system" fn CreateDeltaPackageUsingBaselineBlockMap(this: *mut core::ffi::c_void, updatedpackagestream: *mut core::ffi::c_void, baselineblockmapstream: *mut core::ffi::c_void, baselinepackagefullname: windows_core::PCWSTR, deltapackagestream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageEditor_Impl::CreateDeltaPackageUsingBaselineBlockMap(this, windows_core::from_raw_borrowed(&updatedpackagestream), windows_core::from_raw_borrowed(&baselineblockmapstream), core::mem::transmute(&baselinepackagefullname), windows_core::from_raw_borrowed(&deltapackagestream)).into() } - unsafe extern "system" fn UpdatePackage(this: *mut core::ffi::c_void, baselinepackagestream: *mut core::ffi::c_void, deltapackagestream: *mut core::ffi::c_void, updateoption: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION) -> windows_core::HRESULT - where - Identity: IAppxPackageEditor_Impl, - { + unsafe extern "system" fn UpdatePackage(this: *mut core::ffi::c_void, baselinepackagestream: *mut core::ffi::c_void, deltapackagestream: *mut core::ffi::c_void, updateoption: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageEditor_Impl::UpdatePackage(this, windows_core::from_raw_borrowed(&baselinepackagestream), windows_core::from_raw_borrowed(&deltapackagestream), core::mem::transmute_copy(&updateoption)).into() } - unsafe extern "system" fn UpdateEncryptedPackage(this: *mut core::ffi::c_void, baselineencryptedpackagestream: *mut core::ffi::c_void, deltapackagestream: *mut core::ffi::c_void, updateoption: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO) -> windows_core::HRESULT - where - Identity: IAppxPackageEditor_Impl, - { + unsafe extern "system" fn UpdateEncryptedPackage(this: *mut core::ffi::c_void, baselineencryptedpackagestream: *mut core::ffi::c_void, deltapackagestream: *mut core::ffi::c_void, updateoption: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageEditor_Impl::UpdateEncryptedPackage(this, windows_core::from_raw_borrowed(&baselineencryptedpackagestream), windows_core::from_raw_borrowed(&deltapackagestream), core::mem::transmute_copy(&updateoption), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo)).into() } - unsafe extern "system" fn UpdatePackageManifest(this: *mut core::ffi::c_void, packagestream: *mut core::ffi::c_void, updatedmanifeststream: *mut core::ffi::c_void, ispackageencrypted: super::super::super::Foundation::BOOL, options: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS) -> windows_core::HRESULT - where - Identity: IAppxPackageEditor_Impl, - { + unsafe extern "system" fn UpdatePackageManifest(this: *mut core::ffi::c_void, packagestream: *mut core::ffi::c_void, updatedmanifeststream: *mut core::ffi::c_void, ispackageencrypted: super::super::super::Foundation::BOOL, options: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageEditor_Impl::UpdatePackageManifest(this, windows_core::from_raw_borrowed(&packagestream), windows_core::from_raw_borrowed(&updatedmanifeststream), core::mem::transmute_copy(&ispackageencrypted), core::mem::transmute_copy(&options)).into() } @@ -4317,7 +3435,7 @@ impl IAppxPackageEditor_Vtbl { iid == &::IID } } -pub trait IAppxPackageReader_Impl: Sized { +pub trait IAppxPackageReader_Impl: Sized + windows_core::IUnknownImpl { fn GetBlockMap(&self) -> windows_core::Result; fn GetFootprintFile(&self, r#type: APPX_FOOTPRINT_FILE_TYPE) -> windows_core::Result; fn GetPayloadFile(&self, filename: &windows_core::PCWSTR) -> windows_core::Result; @@ -4326,14 +3444,8 @@ pub trait IAppxPackageReader_Impl: Sized { } impl windows_core::RuntimeName for IAppxPackageReader {} impl IAppxPackageReader_Vtbl { - pub const fn new() -> IAppxPackageReader_Vtbl - where - Identity: IAppxPackageReader_Impl, - { - unsafe extern "system" fn GetBlockMap(this: *mut core::ffi::c_void, blockmapreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackageReader_Impl, - { + pub const fn new() -> IAppxPackageReader_Vtbl { + unsafe extern "system" fn GetBlockMap(this: *mut core::ffi::c_void, blockmapreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxPackageReader_Impl::GetBlockMap(this) { Ok(ok__) => { @@ -4343,10 +3455,7 @@ impl IAppxPackageReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFootprintFile(this: *mut core::ffi::c_void, r#type: APPX_FOOTPRINT_FILE_TYPE, file: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackageReader_Impl, - { + unsafe extern "system" fn GetFootprintFile(this: *mut core::ffi::c_void, r#type: APPX_FOOTPRINT_FILE_TYPE, file: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxPackageReader_Impl::GetFootprintFile(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -4356,10 +3465,7 @@ impl IAppxPackageReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPayloadFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, file: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackageReader_Impl, - { + unsafe extern "system" fn GetPayloadFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, file: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxPackageReader_Impl::GetPayloadFile(this, core::mem::transmute(&filename)) { Ok(ok__) => { @@ -4369,10 +3475,7 @@ impl IAppxPackageReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPayloadFiles(this: *mut core::ffi::c_void, filesenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackageReader_Impl, - { + unsafe extern "system" fn GetPayloadFiles(this: *mut core::ffi::c_void, filesenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxPackageReader_Impl::GetPayloadFiles(this) { Ok(ok__) => { @@ -4382,10 +3485,7 @@ impl IAppxPackageReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetManifest(this: *mut core::ffi::c_void, manifestreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackageReader_Impl, - { + unsafe extern "system" fn GetManifest(this: *mut core::ffi::c_void, manifestreader: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxPackageReader_Impl::GetManifest(this) { Ok(ok__) => { @@ -4409,7 +3509,7 @@ impl IAppxPackageReader_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxPackageWriter_Impl: Sized { +pub trait IAppxPackageWriter_Impl: Sized + windows_core::IUnknownImpl { fn AddPayloadFile(&self, filename: &windows_core::PCWSTR, contenttype: &windows_core::PCWSTR, compressionoption: APPX_COMPRESSION_OPTION, inputstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; fn Close(&self, manifest: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; } @@ -4417,21 +3517,12 @@ pub trait IAppxPackageWriter_Impl: Sized { impl windows_core::RuntimeName for IAppxPackageWriter {} #[cfg(feature = "Win32_System_Com")] impl IAppxPackageWriter_Vtbl { - pub const fn new() -> IAppxPackageWriter_Vtbl - where - Identity: IAppxPackageWriter_Impl, - { - unsafe extern "system" fn AddPayloadFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, contenttype: windows_core::PCWSTR, compressionoption: APPX_COMPRESSION_OPTION, inputstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackageWriter_Impl, - { + pub const fn new() -> IAppxPackageWriter_Vtbl { + unsafe extern "system" fn AddPayloadFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, contenttype: windows_core::PCWSTR, compressionoption: APPX_COMPRESSION_OPTION, inputstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageWriter_Impl::AddPayloadFile(this, core::mem::transmute(&filename), core::mem::transmute(&contenttype), core::mem::transmute_copy(&compressionoption), windows_core::from_raw_borrowed(&inputstream)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, manifest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackageWriter_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, manifest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageWriter_Impl::Close(this, windows_core::from_raw_borrowed(&manifest)).into() } @@ -4446,21 +3537,15 @@ impl IAppxPackageWriter_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxPackageWriter2_Impl: Sized { +pub trait IAppxPackageWriter2_Impl: Sized + windows_core::IUnknownImpl { fn Close(&self, manifest: Option<&super::super::super::System::Com::IStream>, contentgroupmap: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IAppxPackageWriter2 {} #[cfg(feature = "Win32_System_Com")] impl IAppxPackageWriter2_Vtbl { - pub const fn new() -> IAppxPackageWriter2_Vtbl - where - Identity: IAppxPackageWriter2_Impl, - { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, manifest: *mut core::ffi::c_void, contentgroupmap: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackageWriter2_Impl, - { + pub const fn new() -> IAppxPackageWriter2_Vtbl { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, manifest: *mut core::ffi::c_void, contentgroupmap: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageWriter2_Impl::Close(this, windows_core::from_raw_borrowed(&manifest), windows_core::from_raw_borrowed(&contentgroupmap)).into() } @@ -4471,21 +3556,15 @@ impl IAppxPackageWriter2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAppxPackageWriter3_Impl: Sized { +pub trait IAppxPackageWriter3_Impl: Sized + windows_core::IUnknownImpl { fn AddPayloadFiles(&self, filecount: u32, payloadfiles: *const APPX_PACKAGE_WRITER_PAYLOAD_STREAM, memorylimit: u64) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IAppxPackageWriter3 {} #[cfg(feature = "Win32_System_Com")] impl IAppxPackageWriter3_Vtbl { - pub const fn new() -> IAppxPackageWriter3_Vtbl - where - Identity: IAppxPackageWriter3_Impl, - { - unsafe extern "system" fn AddPayloadFiles(this: *mut core::ffi::c_void, filecount: u32, payloadfiles: *const APPX_PACKAGE_WRITER_PAYLOAD_STREAM, memorylimit: u64) -> windows_core::HRESULT - where - Identity: IAppxPackageWriter3_Impl, - { + pub const fn new() -> IAppxPackageWriter3_Vtbl { + unsafe extern "system" fn AddPayloadFiles(this: *mut core::ffi::c_void, filecount: u32, payloadfiles: *const APPX_PACKAGE_WRITER_PAYLOAD_STREAM, memorylimit: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageWriter3_Impl::AddPayloadFiles(this, core::mem::transmute_copy(&filecount), core::mem::transmute_copy(&payloadfiles), core::mem::transmute_copy(&memorylimit)).into() } @@ -4495,27 +3574,18 @@ impl IAppxPackageWriter3_Vtbl { iid == &::IID } } -pub trait IAppxPackagingDiagnosticEventSink_Impl: Sized { +pub trait IAppxPackagingDiagnosticEventSink_Impl: Sized + windows_core::IUnknownImpl { fn ReportContextChange(&self, changetype: APPX_PACKAGING_CONTEXT_CHANGE_TYPE, contextid: i32, contextname: &windows_core::PCSTR, contextmessage: &windows_core::PCWSTR, detailsmessage: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ReportError(&self, errormessage: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAppxPackagingDiagnosticEventSink {} impl IAppxPackagingDiagnosticEventSink_Vtbl { - pub const fn new() -> IAppxPackagingDiagnosticEventSink_Vtbl - where - Identity: IAppxPackagingDiagnosticEventSink_Impl, - { - unsafe extern "system" fn ReportContextChange(this: *mut core::ffi::c_void, changetype: APPX_PACKAGING_CONTEXT_CHANGE_TYPE, contextid: i32, contextname: windows_core::PCSTR, contextmessage: windows_core::PCWSTR, detailsmessage: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAppxPackagingDiagnosticEventSink_Impl, - { + pub const fn new() -> IAppxPackagingDiagnosticEventSink_Vtbl { + unsafe extern "system" fn ReportContextChange(this: *mut core::ffi::c_void, changetype: APPX_PACKAGING_CONTEXT_CHANGE_TYPE, contextid: i32, contextname: windows_core::PCSTR, contextmessage: windows_core::PCWSTR, detailsmessage: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackagingDiagnosticEventSink_Impl::ReportContextChange(this, core::mem::transmute_copy(&changetype), core::mem::transmute_copy(&contextid), core::mem::transmute(&contextname), core::mem::transmute(&contextmessage), core::mem::transmute(&detailsmessage)).into() } - unsafe extern "system" fn ReportError(this: *mut core::ffi::c_void, errormessage: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAppxPackagingDiagnosticEventSink_Impl, - { + unsafe extern "system" fn ReportError(this: *mut core::ffi::c_void, errormessage: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackagingDiagnosticEventSink_Impl::ReportError(this, core::mem::transmute(&errormessage)).into() } @@ -4529,19 +3599,13 @@ impl IAppxPackagingDiagnosticEventSink_Vtbl { iid == &::IID } } -pub trait IAppxPackagingDiagnosticEventSinkManager_Impl: Sized { +pub trait IAppxPackagingDiagnosticEventSinkManager_Impl: Sized + windows_core::IUnknownImpl { fn SetSinkForProcess(&self, sink: Option<&IAppxPackagingDiagnosticEventSink>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAppxPackagingDiagnosticEventSinkManager {} impl IAppxPackagingDiagnosticEventSinkManager_Vtbl { - pub const fn new() -> IAppxPackagingDiagnosticEventSinkManager_Vtbl - where - Identity: IAppxPackagingDiagnosticEventSinkManager_Impl, - { - unsafe extern "system" fn SetSinkForProcess(this: *mut core::ffi::c_void, sink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxPackagingDiagnosticEventSinkManager_Impl, - { + pub const fn new() -> IAppxPackagingDiagnosticEventSinkManager_Vtbl { + unsafe extern "system" fn SetSinkForProcess(this: *mut core::ffi::c_void, sink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackagingDiagnosticEventSinkManager_Impl::SetSinkForProcess(this, windows_core::from_raw_borrowed(&sink)).into() } @@ -4551,20 +3615,14 @@ impl IAppxPackagingDiagnosticEventSinkManager_Vtbl { iid == &::IID } } -pub trait IAppxSourceContentGroupMapReader_Impl: Sized { +pub trait IAppxSourceContentGroupMapReader_Impl: Sized + windows_core::IUnknownImpl { fn GetRequiredGroup(&self) -> windows_core::Result; fn GetAutomaticGroups(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAppxSourceContentGroupMapReader {} impl IAppxSourceContentGroupMapReader_Vtbl { - pub const fn new() -> IAppxSourceContentGroupMapReader_Vtbl - where - Identity: IAppxSourceContentGroupMapReader_Impl, - { - unsafe extern "system" fn GetRequiredGroup(this: *mut core::ffi::c_void, requiredgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxSourceContentGroupMapReader_Impl, - { + pub const fn new() -> IAppxSourceContentGroupMapReader_Vtbl { + unsafe extern "system" fn GetRequiredGroup(this: *mut core::ffi::c_void, requiredgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxSourceContentGroupMapReader_Impl::GetRequiredGroup(this) { Ok(ok__) => { @@ -4574,10 +3632,7 @@ impl IAppxSourceContentGroupMapReader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAutomaticGroups(this: *mut core::ffi::c_void, automaticgroupsenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppxSourceContentGroupMapReader_Impl, - { + unsafe extern "system" fn GetAutomaticGroups(this: *mut core::ffi::c_void, automaticgroupsenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxSourceContentGroupMapReader_Impl::GetAutomaticGroups(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/impl.rs index ffb22865a8..1d47072bee 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_Security_Cryptography")] -pub trait IOpcCertificateEnumerator_Impl: Sized { +pub trait IOpcCertificateEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result<*mut super::super::super::Security::Cryptography::CERT_CONTEXT>; @@ -9,14 +9,8 @@ pub trait IOpcCertificateEnumerator_Impl: Sized { impl windows_core::RuntimeName for IOpcCertificateEnumerator {} #[cfg(feature = "Win32_Security_Cryptography")] impl IOpcCertificateEnumerator_Vtbl { - pub const fn new() -> IOpcCertificateEnumerator_Vtbl - where - Identity: IOpcCertificateEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcCertificateEnumerator_Impl, - { + pub const fn new() -> IOpcCertificateEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcCertificateEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl IOpcCertificateEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcCertificateEnumerator_Impl, - { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcCertificateEnumerator_Impl::MovePrevious(this) { Ok(ok__) => { @@ -39,10 +30,7 @@ impl IOpcCertificateEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, certificate: *mut *mut super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::HRESULT - where - Identity: IOpcCertificateEnumerator_Impl, - { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, certificate: *mut *mut super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcCertificateEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -52,10 +40,7 @@ impl IOpcCertificateEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcCertificateEnumerator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcCertificateEnumerator_Impl::Clone(this) { Ok(ok__) => { @@ -78,7 +63,7 @@ impl IOpcCertificateEnumerator_Vtbl { } } #[cfg(feature = "Win32_Security_Cryptography")] -pub trait IOpcCertificateSet_Impl: Sized { +pub trait IOpcCertificateSet_Impl: Sized + windows_core::IUnknownImpl { fn Add(&self, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::Result<()>; fn Remove(&self, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::Result<()>; fn GetEnumerator(&self) -> windows_core::Result; @@ -87,28 +72,16 @@ pub trait IOpcCertificateSet_Impl: Sized { impl windows_core::RuntimeName for IOpcCertificateSet {} #[cfg(feature = "Win32_Security_Cryptography")] impl IOpcCertificateSet_Vtbl { - pub const fn new() -> IOpcCertificateSet_Vtbl - where - Identity: IOpcCertificateSet_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::HRESULT - where - Identity: IOpcCertificateSet_Impl, - { + pub const fn new() -> IOpcCertificateSet_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcCertificateSet_Impl::Add(this, core::mem::transmute_copy(&certificate)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::HRESULT - where - Identity: IOpcCertificateSet_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcCertificateSet_Impl::Remove(this, core::mem::transmute_copy(&certificate)).into() } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, certificateenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcCertificateSet_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, certificateenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcCertificateSet_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -130,7 +103,7 @@ impl IOpcCertificateSet_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcDigitalSignature_Impl: Sized { +pub trait IOpcDigitalSignature_Impl: Sized + windows_core::IUnknownImpl { fn GetNamespaces(&self, prefixes: *mut *mut windows_core::PWSTR, namespaces: *mut *mut windows_core::PWSTR, count: *mut u32) -> windows_core::Result<()>; fn GetSignatureId(&self) -> windows_core::Result; fn GetSignaturePartName(&self) -> windows_core::Result; @@ -151,21 +124,12 @@ pub trait IOpcDigitalSignature_Impl: Sized { impl windows_core::RuntimeName for IOpcDigitalSignature {} #[cfg(feature = "Win32_System_Com")] impl IOpcDigitalSignature_Vtbl { - pub const fn new() -> IOpcDigitalSignature_Vtbl - where - Identity: IOpcDigitalSignature_Impl, - { - unsafe extern "system" fn GetNamespaces(this: *mut core::ffi::c_void, prefixes: *mut *mut windows_core::PWSTR, namespaces: *mut *mut windows_core::PWSTR, count: *mut u32) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + pub const fn new() -> IOpcDigitalSignature_Vtbl { + unsafe extern "system" fn GetNamespaces(this: *mut core::ffi::c_void, prefixes: *mut *mut windows_core::PWSTR, namespaces: *mut *mut windows_core::PWSTR, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcDigitalSignature_Impl::GetNamespaces(this, core::mem::transmute_copy(&prefixes), core::mem::transmute_copy(&namespaces), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn GetSignatureId(this: *mut core::ffi::c_void, signatureid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetSignatureId(this: *mut core::ffi::c_void, signatureid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetSignatureId(this) { Ok(ok__) => { @@ -175,10 +139,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetSignaturePartName(this) { Ok(ok__) => { @@ -188,10 +149,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignatureMethod(this: *mut core::ffi::c_void, signaturemethod: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetSignatureMethod(this: *mut core::ffi::c_void, signaturemethod: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetSignatureMethod(this) { Ok(ok__) => { @@ -201,10 +159,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCanonicalizationMethod(this: *mut core::ffi::c_void, canonicalizationmethod: *mut OPC_CANONICALIZATION_METHOD) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetCanonicalizationMethod(this: *mut core::ffi::c_void, canonicalizationmethod: *mut OPC_CANONICALIZATION_METHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetCanonicalizationMethod(this) { Ok(ok__) => { @@ -214,17 +169,11 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignatureValue(this: *mut core::ffi::c_void, signaturevalue: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetSignatureValue(this: *mut core::ffi::c_void, signaturevalue: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcDigitalSignature_Impl::GetSignatureValue(this, core::mem::transmute_copy(&signaturevalue), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn GetSignaturePartReferenceEnumerator(this: *mut core::ffi::c_void, partreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetSignaturePartReferenceEnumerator(this: *mut core::ffi::c_void, partreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetSignaturePartReferenceEnumerator(this) { Ok(ok__) => { @@ -234,10 +183,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignatureRelationshipReferenceEnumerator(this: *mut core::ffi::c_void, relationshipreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetSignatureRelationshipReferenceEnumerator(this: *mut core::ffi::c_void, relationshipreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetSignatureRelationshipReferenceEnumerator(this) { Ok(ok__) => { @@ -247,10 +193,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSigningTime(this: *mut core::ffi::c_void, signingtime: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetSigningTime(this: *mut core::ffi::c_void, signingtime: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetSigningTime(this) { Ok(ok__) => { @@ -260,10 +203,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimeFormat(this: *mut core::ffi::c_void, timeformat: *mut OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetTimeFormat(this: *mut core::ffi::c_void, timeformat: *mut OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetTimeFormat(this) { Ok(ok__) => { @@ -273,10 +213,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPackageObjectReference(this: *mut core::ffi::c_void, packageobjectreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetPackageObjectReference(this: *mut core::ffi::c_void, packageobjectreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetPackageObjectReference(this) { Ok(ok__) => { @@ -286,10 +223,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateEnumerator(this: *mut core::ffi::c_void, certificateenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetCertificateEnumerator(this: *mut core::ffi::c_void, certificateenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetCertificateEnumerator(this) { Ok(ok__) => { @@ -299,10 +233,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCustomReferenceEnumerator(this: *mut core::ffi::c_void, customreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetCustomReferenceEnumerator(this: *mut core::ffi::c_void, customreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetCustomReferenceEnumerator(this) { Ok(ok__) => { @@ -312,10 +243,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCustomObjectEnumerator(this: *mut core::ffi::c_void, customobjectenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetCustomObjectEnumerator(this: *mut core::ffi::c_void, customobjectenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignature_Impl::GetCustomObjectEnumerator(this) { Ok(ok__) => { @@ -325,10 +253,7 @@ impl IOpcDigitalSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignatureXml(this: *mut core::ffi::c_void, signaturexml: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignature_Impl, - { + unsafe extern "system" fn GetSignatureXml(this: *mut core::ffi::c_void, signaturexml: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcDigitalSignature_Impl::GetSignatureXml(this, core::mem::transmute_copy(&signaturexml), core::mem::transmute_copy(&count)).into() } @@ -355,7 +280,7 @@ impl IOpcDigitalSignature_Vtbl { iid == &::IID } } -pub trait IOpcDigitalSignatureEnumerator_Impl: Sized { +pub trait IOpcDigitalSignatureEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; @@ -363,14 +288,8 @@ pub trait IOpcDigitalSignatureEnumerator_Impl: Sized { } impl windows_core::RuntimeName for IOpcDigitalSignatureEnumerator {} impl IOpcDigitalSignatureEnumerator_Vtbl { - pub const fn new() -> IOpcDigitalSignatureEnumerator_Vtbl - where - Identity: IOpcDigitalSignatureEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureEnumerator_Impl, - { + pub const fn new() -> IOpcDigitalSignatureEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -380,10 +299,7 @@ impl IOpcDigitalSignatureEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureEnumerator_Impl, - { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureEnumerator_Impl::MovePrevious(this) { Ok(ok__) => { @@ -393,10 +309,7 @@ impl IOpcDigitalSignatureEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, digitalsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureEnumerator_Impl, - { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, digitalsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -406,10 +319,7 @@ impl IOpcDigitalSignatureEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureEnumerator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureEnumerator_Impl::Clone(this) { Ok(ok__) => { @@ -432,7 +342,7 @@ impl IOpcDigitalSignatureEnumerator_Vtbl { } } #[cfg(all(feature = "Win32_Security_Cryptography", feature = "Win32_System_Com"))] -pub trait IOpcDigitalSignatureManager_Impl: Sized { +pub trait IOpcDigitalSignatureManager_Impl: Sized + windows_core::IUnknownImpl { fn GetSignatureOriginPartName(&self) -> windows_core::Result; fn SetSignatureOriginPartName(&self, signatureoriginpartname: Option<&IOpcPartUri>) -> windows_core::Result<()>; fn GetSignatureEnumerator(&self) -> windows_core::Result; @@ -446,14 +356,8 @@ pub trait IOpcDigitalSignatureManager_Impl: Sized { impl windows_core::RuntimeName for IOpcDigitalSignatureManager {} #[cfg(all(feature = "Win32_Security_Cryptography", feature = "Win32_System_Com"))] impl IOpcDigitalSignatureManager_Vtbl { - pub const fn new() -> IOpcDigitalSignatureManager_Vtbl - where - Identity: IOpcDigitalSignatureManager_Impl, - { - unsafe extern "system" fn GetSignatureOriginPartName(this: *mut core::ffi::c_void, signatureoriginpartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureManager_Impl, - { + pub const fn new() -> IOpcDigitalSignatureManager_Vtbl { + unsafe extern "system" fn GetSignatureOriginPartName(this: *mut core::ffi::c_void, signatureoriginpartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureManager_Impl::GetSignatureOriginPartName(this) { Ok(ok__) => { @@ -463,17 +367,11 @@ impl IOpcDigitalSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignatureOriginPartName(this: *mut core::ffi::c_void, signatureoriginpartname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureManager_Impl, - { + unsafe extern "system" fn SetSignatureOriginPartName(this: *mut core::ffi::c_void, signatureoriginpartname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcDigitalSignatureManager_Impl::SetSignatureOriginPartName(this, windows_core::from_raw_borrowed(&signatureoriginpartname)).into() } - unsafe extern "system" fn GetSignatureEnumerator(this: *mut core::ffi::c_void, signatureenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureManager_Impl, - { + unsafe extern "system" fn GetSignatureEnumerator(this: *mut core::ffi::c_void, signatureenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureManager_Impl::GetSignatureEnumerator(this) { Ok(ok__) => { @@ -483,17 +381,11 @@ impl IOpcDigitalSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveSignature(this: *mut core::ffi::c_void, signaturepartname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureManager_Impl, - { + unsafe extern "system" fn RemoveSignature(this: *mut core::ffi::c_void, signaturepartname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcDigitalSignatureManager_Impl::RemoveSignature(this, windows_core::from_raw_borrowed(&signaturepartname)).into() } - unsafe extern "system" fn CreateSigningOptions(this: *mut core::ffi::c_void, signingoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureManager_Impl, - { + unsafe extern "system" fn CreateSigningOptions(this: *mut core::ffi::c_void, signingoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureManager_Impl::CreateSigningOptions(this) { Ok(ok__) => { @@ -503,10 +395,7 @@ impl IOpcDigitalSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, signature: *mut core::ffi::c_void, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT, validationresult: *mut OPC_SIGNATURE_VALIDATION_RESULT) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureManager_Impl, - { + unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, signature: *mut core::ffi::c_void, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT, validationresult: *mut OPC_SIGNATURE_VALIDATION_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureManager_Impl::Validate(this, windows_core::from_raw_borrowed(&signature), core::mem::transmute_copy(&certificate)) { Ok(ok__) => { @@ -516,10 +405,7 @@ impl IOpcDigitalSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Sign(this: *mut core::ffi::c_void, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT, signingoptions: *mut core::ffi::c_void, digitalsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureManager_Impl, - { + unsafe extern "system" fn Sign(this: *mut core::ffi::c_void, certificate: *const super::super::super::Security::Cryptography::CERT_CONTEXT, signingoptions: *mut core::ffi::c_void, digitalsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureManager_Impl::Sign(this, core::mem::transmute_copy(&certificate), windows_core::from_raw_borrowed(&signingoptions)) { Ok(ok__) => { @@ -529,10 +415,7 @@ impl IOpcDigitalSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReplaceSignatureXml(this: *mut core::ffi::c_void, signaturepartname: *mut core::ffi::c_void, newsignaturexml: *const u8, count: u32, digitalsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcDigitalSignatureManager_Impl, - { + unsafe extern "system" fn ReplaceSignatureXml(this: *mut core::ffi::c_void, signaturepartname: *mut core::ffi::c_void, newsignaturexml: *const u8, count: u32, digitalsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureManager_Impl::ReplaceSignatureXml(this, windows_core::from_raw_borrowed(&signaturepartname), core::mem::transmute_copy(&newsignaturexml), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -559,7 +442,7 @@ impl IOpcDigitalSignatureManager_Vtbl { } } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Com"))] -pub trait IOpcFactory_Impl: Sized { +pub trait IOpcFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreatePackageRootUri(&self) -> windows_core::Result; fn CreatePartUri(&self, pwzuri: &windows_core::PCWSTR) -> windows_core::Result; fn CreateStreamOnFile(&self, filename: &windows_core::PCWSTR, iomode: OPC_STREAM_IO_MODE, securityattributes: *const super::super::super::Security::SECURITY_ATTRIBUTES, dwflagsandattributes: u32) -> windows_core::Result; @@ -572,14 +455,8 @@ pub trait IOpcFactory_Impl: Sized { impl windows_core::RuntimeName for IOpcFactory {} #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Com"))] impl IOpcFactory_Vtbl { - pub const fn new() -> IOpcFactory_Vtbl - where - Identity: IOpcFactory_Impl, - { - unsafe extern "system" fn CreatePackageRootUri(this: *mut core::ffi::c_void, rooturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcFactory_Impl, - { + pub const fn new() -> IOpcFactory_Vtbl { + unsafe extern "system" fn CreatePackageRootUri(this: *mut core::ffi::c_void, rooturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcFactory_Impl::CreatePackageRootUri(this) { Ok(ok__) => { @@ -589,10 +466,7 @@ impl IOpcFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePartUri(this: *mut core::ffi::c_void, pwzuri: windows_core::PCWSTR, parturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcFactory_Impl, - { + unsafe extern "system" fn CreatePartUri(this: *mut core::ffi::c_void, pwzuri: windows_core::PCWSTR, parturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcFactory_Impl::CreatePartUri(this, core::mem::transmute(&pwzuri)) { Ok(ok__) => { @@ -602,10 +476,7 @@ impl IOpcFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStreamOnFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, iomode: OPC_STREAM_IO_MODE, securityattributes: *const super::super::super::Security::SECURITY_ATTRIBUTES, dwflagsandattributes: u32, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcFactory_Impl, - { + unsafe extern "system" fn CreateStreamOnFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, iomode: OPC_STREAM_IO_MODE, securityattributes: *const super::super::super::Security::SECURITY_ATTRIBUTES, dwflagsandattributes: u32, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcFactory_Impl::CreateStreamOnFile(this, core::mem::transmute(&filename), core::mem::transmute_copy(&iomode), core::mem::transmute_copy(&securityattributes), core::mem::transmute_copy(&dwflagsandattributes)) { Ok(ok__) => { @@ -615,10 +486,7 @@ impl IOpcFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePackage(this: *mut core::ffi::c_void, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcFactory_Impl, - { + unsafe extern "system" fn CreatePackage(this: *mut core::ffi::c_void, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcFactory_Impl::CreatePackage(this) { Ok(ok__) => { @@ -628,10 +496,7 @@ impl IOpcFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadPackageFromStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, flags: OPC_READ_FLAGS, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcFactory_Impl, - { + unsafe extern "system" fn ReadPackageFromStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, flags: OPC_READ_FLAGS, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcFactory_Impl::ReadPackageFromStream(this, windows_core::from_raw_borrowed(&stream), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -641,17 +506,11 @@ impl IOpcFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WritePackageToStream(this: *mut core::ffi::c_void, package: *mut core::ffi::c_void, flags: OPC_WRITE_FLAGS, stream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcFactory_Impl, - { + unsafe extern "system" fn WritePackageToStream(this: *mut core::ffi::c_void, package: *mut core::ffi::c_void, flags: OPC_WRITE_FLAGS, stream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcFactory_Impl::WritePackageToStream(this, windows_core::from_raw_borrowed(&package), core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&stream)).into() } - unsafe extern "system" fn CreateDigitalSignatureManager(this: *mut core::ffi::c_void, package: *mut core::ffi::c_void, signaturemanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcFactory_Impl, - { + unsafe extern "system" fn CreateDigitalSignatureManager(this: *mut core::ffi::c_void, package: *mut core::ffi::c_void, signaturemanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcFactory_Impl::CreateDigitalSignatureManager(this, windows_core::from_raw_borrowed(&package)) { Ok(ok__) => { @@ -676,20 +535,14 @@ impl IOpcFactory_Vtbl { iid == &::IID } } -pub trait IOpcPackage_Impl: Sized { +pub trait IOpcPackage_Impl: Sized + windows_core::IUnknownImpl { fn GetPartSet(&self) -> windows_core::Result; fn GetRelationshipSet(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOpcPackage {} impl IOpcPackage_Vtbl { - pub const fn new() -> IOpcPackage_Vtbl - where - Identity: IOpcPackage_Impl, - { - unsafe extern "system" fn GetPartSet(this: *mut core::ffi::c_void, partset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPackage_Impl, - { + pub const fn new() -> IOpcPackage_Vtbl { + unsafe extern "system" fn GetPartSet(this: *mut core::ffi::c_void, partset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPackage_Impl::GetPartSet(this) { Ok(ok__) => { @@ -699,10 +552,7 @@ impl IOpcPackage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRelationshipSet(this: *mut core::ffi::c_void, relationshipset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPackage_Impl, - { + unsafe extern "system" fn GetRelationshipSet(this: *mut core::ffi::c_void, relationshipset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPackage_Impl::GetRelationshipSet(this) { Ok(ok__) => { @@ -723,7 +573,7 @@ impl IOpcPackage_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcPart_Impl: Sized { +pub trait IOpcPart_Impl: Sized + windows_core::IUnknownImpl { fn GetRelationshipSet(&self) -> windows_core::Result; fn GetContentStream(&self) -> windows_core::Result; fn GetName(&self) -> windows_core::Result; @@ -734,14 +584,8 @@ pub trait IOpcPart_Impl: Sized { impl windows_core::RuntimeName for IOpcPart {} #[cfg(feature = "Win32_System_Com")] impl IOpcPart_Vtbl { - pub const fn new() -> IOpcPart_Vtbl - where - Identity: IOpcPart_Impl, - { - unsafe extern "system" fn GetRelationshipSet(this: *mut core::ffi::c_void, relationshipset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPart_Impl, - { + pub const fn new() -> IOpcPart_Vtbl { + unsafe extern "system" fn GetRelationshipSet(this: *mut core::ffi::c_void, relationshipset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPart_Impl::GetRelationshipSet(this) { Ok(ok__) => { @@ -751,10 +595,7 @@ impl IOpcPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContentStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPart_Impl, - { + unsafe extern "system" fn GetContentStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPart_Impl::GetContentStream(this) { Ok(ok__) => { @@ -764,10 +605,7 @@ impl IOpcPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPart_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPart_Impl::GetName(this) { Ok(ok__) => { @@ -777,10 +615,7 @@ impl IOpcPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContentType(this: *mut core::ffi::c_void, contenttype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcPart_Impl, - { + unsafe extern "system" fn GetContentType(this: *mut core::ffi::c_void, contenttype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPart_Impl::GetContentType(this) { Ok(ok__) => { @@ -790,10 +625,7 @@ impl IOpcPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCompressionOptions(this: *mut core::ffi::c_void, compressionoptions: *mut OPC_COMPRESSION_OPTIONS) -> windows_core::HRESULT - where - Identity: IOpcPart_Impl, - { + unsafe extern "system" fn GetCompressionOptions(this: *mut core::ffi::c_void, compressionoptions: *mut OPC_COMPRESSION_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPart_Impl::GetCompressionOptions(this) { Ok(ok__) => { @@ -816,7 +648,7 @@ impl IOpcPart_Vtbl { iid == &::IID } } -pub trait IOpcPartEnumerator_Impl: Sized { +pub trait IOpcPartEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; @@ -824,14 +656,8 @@ pub trait IOpcPartEnumerator_Impl: Sized { } impl windows_core::RuntimeName for IOpcPartEnumerator {} impl IOpcPartEnumerator_Vtbl { - pub const fn new() -> IOpcPartEnumerator_Vtbl - where - Identity: IOpcPartEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcPartEnumerator_Impl, - { + pub const fn new() -> IOpcPartEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -841,10 +667,7 @@ impl IOpcPartEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcPartEnumerator_Impl, - { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartEnumerator_Impl::MovePrevious(this) { Ok(ok__) => { @@ -854,10 +677,7 @@ impl IOpcPartEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPartEnumerator_Impl, - { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -867,10 +687,7 @@ impl IOpcPartEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPartEnumerator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartEnumerator_Impl::Clone(this) { Ok(ok__) => { @@ -893,7 +710,7 @@ impl IOpcPartEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcPartSet_Impl: Sized { +pub trait IOpcPartSet_Impl: Sized + windows_core::IUnknownImpl { fn GetPart(&self, name: Option<&IOpcPartUri>) -> windows_core::Result; fn CreatePart(&self, name: Option<&IOpcPartUri>, contenttype: &windows_core::PCWSTR, compressionoptions: OPC_COMPRESSION_OPTIONS) -> windows_core::Result; fn DeletePart(&self, name: Option<&IOpcPartUri>) -> windows_core::Result<()>; @@ -904,14 +721,8 @@ pub trait IOpcPartSet_Impl: Sized { impl windows_core::RuntimeName for IOpcPartSet {} #[cfg(feature = "Win32_System_Com")] impl IOpcPartSet_Vtbl { - pub const fn new() -> IOpcPartSet_Vtbl - where - Identity: IOpcPartSet_Impl, - { - unsafe extern "system" fn GetPart(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPartSet_Impl, - { + pub const fn new() -> IOpcPartSet_Vtbl { + unsafe extern "system" fn GetPart(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartSet_Impl::GetPart(this, windows_core::from_raw_borrowed(&name)) { Ok(ok__) => { @@ -921,10 +732,7 @@ impl IOpcPartSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePart(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void, contenttype: windows_core::PCWSTR, compressionoptions: OPC_COMPRESSION_OPTIONS, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPartSet_Impl, - { + unsafe extern "system" fn CreatePart(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void, contenttype: windows_core::PCWSTR, compressionoptions: OPC_COMPRESSION_OPTIONS, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartSet_Impl::CreatePart(this, windows_core::from_raw_borrowed(&name), core::mem::transmute(&contenttype), core::mem::transmute_copy(&compressionoptions)) { Ok(ok__) => { @@ -934,17 +742,11 @@ impl IOpcPartSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeletePart(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPartSet_Impl, - { + unsafe extern "system" fn DeletePart(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcPartSet_Impl::DeletePart(this, windows_core::from_raw_borrowed(&name)).into() } - unsafe extern "system" fn PartExists(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void, partexists: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcPartSet_Impl, - { + unsafe extern "system" fn PartExists(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void, partexists: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartSet_Impl::PartExists(this, windows_core::from_raw_borrowed(&name)) { Ok(ok__) => { @@ -954,10 +756,7 @@ impl IOpcPartSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, partenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPartSet_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, partenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartSet_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -990,14 +789,8 @@ pub trait IOpcPartUri_Impl: Sized + IOpcUri_Impl { impl windows_core::RuntimeName for IOpcPartUri {} #[cfg(feature = "Win32_System_Com")] impl IOpcPartUri_Vtbl { - pub const fn new() -> IOpcPartUri_Vtbl - where - Identity: IOpcPartUri_Impl, - { - unsafe extern "system" fn ComparePartUri(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, comparisonresult: *mut i32) -> windows_core::HRESULT - where - Identity: IOpcPartUri_Impl, - { + pub const fn new() -> IOpcPartUri_Vtbl { + unsafe extern "system" fn ComparePartUri(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, comparisonresult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartUri_Impl::ComparePartUri(this, windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -1007,10 +800,7 @@ impl IOpcPartUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceUri(this: *mut core::ffi::c_void, sourceuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcPartUri_Impl, - { + unsafe extern "system" fn GetSourceUri(this: *mut core::ffi::c_void, sourceuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartUri_Impl::GetSourceUri(this) { Ok(ok__) => { @@ -1020,10 +810,7 @@ impl IOpcPartUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRelationshipsPartUri(this: *mut core::ffi::c_void, isrelationshipuri: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcPartUri_Impl, - { + unsafe extern "system" fn IsRelationshipsPartUri(this: *mut core::ffi::c_void, isrelationshipuri: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartUri_Impl::IsRelationshipsPartUri(this) { Ok(ok__) => { @@ -1045,7 +832,7 @@ impl IOpcPartUri_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcRelationship_Impl: Sized { +pub trait IOpcRelationship_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> windows_core::Result; fn GetRelationshipType(&self) -> windows_core::Result; fn GetSourceUri(&self) -> windows_core::Result; @@ -1056,14 +843,8 @@ pub trait IOpcRelationship_Impl: Sized { impl windows_core::RuntimeName for IOpcRelationship {} #[cfg(feature = "Win32_System_Com")] impl IOpcRelationship_Vtbl { - pub const fn new() -> IOpcRelationship_Vtbl - where - Identity: IOpcRelationship_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, relationshipidentifier: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcRelationship_Impl, - { + pub const fn new() -> IOpcRelationship_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, relationshipidentifier: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationship_Impl::GetId(this) { Ok(ok__) => { @@ -1073,10 +854,7 @@ impl IOpcRelationship_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRelationshipType(this: *mut core::ffi::c_void, relationshiptype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcRelationship_Impl, - { + unsafe extern "system" fn GetRelationshipType(this: *mut core::ffi::c_void, relationshiptype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationship_Impl::GetRelationshipType(this) { Ok(ok__) => { @@ -1086,10 +864,7 @@ impl IOpcRelationship_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceUri(this: *mut core::ffi::c_void, sourceuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationship_Impl, - { + unsafe extern "system" fn GetSourceUri(this: *mut core::ffi::c_void, sourceuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationship_Impl::GetSourceUri(this) { Ok(ok__) => { @@ -1099,10 +874,7 @@ impl IOpcRelationship_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTargetUri(this: *mut core::ffi::c_void, targeturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationship_Impl, - { + unsafe extern "system" fn GetTargetUri(this: *mut core::ffi::c_void, targeturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationship_Impl::GetTargetUri(this) { Ok(ok__) => { @@ -1112,10 +884,7 @@ impl IOpcRelationship_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTargetMode(this: *mut core::ffi::c_void, targetmode: *mut OPC_URI_TARGET_MODE) -> windows_core::HRESULT - where - Identity: IOpcRelationship_Impl, - { + unsafe extern "system" fn GetTargetMode(this: *mut core::ffi::c_void, targetmode: *mut OPC_URI_TARGET_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationship_Impl::GetTargetMode(this) { Ok(ok__) => { @@ -1138,7 +907,7 @@ impl IOpcRelationship_Vtbl { iid == &::IID } } -pub trait IOpcRelationshipEnumerator_Impl: Sized { +pub trait IOpcRelationshipEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; @@ -1146,14 +915,8 @@ pub trait IOpcRelationshipEnumerator_Impl: Sized { } impl windows_core::RuntimeName for IOpcRelationshipEnumerator {} impl IOpcRelationshipEnumerator_Vtbl { - pub const fn new() -> IOpcRelationshipEnumerator_Vtbl - where - Identity: IOpcRelationshipEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcRelationshipEnumerator_Impl, - { + pub const fn new() -> IOpcRelationshipEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -1163,10 +926,7 @@ impl IOpcRelationshipEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcRelationshipEnumerator_Impl, - { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipEnumerator_Impl::MovePrevious(this) { Ok(ok__) => { @@ -1176,10 +936,7 @@ impl IOpcRelationshipEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, relationship: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipEnumerator_Impl, - { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, relationship: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -1189,10 +946,7 @@ impl IOpcRelationshipEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipEnumerator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipEnumerator_Impl::Clone(this) { Ok(ok__) => { @@ -1214,20 +968,14 @@ impl IOpcRelationshipEnumerator_Vtbl { iid == &::IID } } -pub trait IOpcRelationshipSelector_Impl: Sized { +pub trait IOpcRelationshipSelector_Impl: Sized + windows_core::IUnknownImpl { fn GetSelectorType(&self) -> windows_core::Result; fn GetSelectionCriterion(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOpcRelationshipSelector {} impl IOpcRelationshipSelector_Vtbl { - pub const fn new() -> IOpcRelationshipSelector_Vtbl - where - Identity: IOpcRelationshipSelector_Impl, - { - unsafe extern "system" fn GetSelectorType(this: *mut core::ffi::c_void, selector: *mut OPC_RELATIONSHIP_SELECTOR) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSelector_Impl, - { + pub const fn new() -> IOpcRelationshipSelector_Vtbl { + unsafe extern "system" fn GetSelectorType(this: *mut core::ffi::c_void, selector: *mut OPC_RELATIONSHIP_SELECTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSelector_Impl::GetSelectorType(this) { Ok(ok__) => { @@ -1237,10 +985,7 @@ impl IOpcRelationshipSelector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectionCriterion(this: *mut core::ffi::c_void, selectioncriterion: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSelector_Impl, - { + unsafe extern "system" fn GetSelectionCriterion(this: *mut core::ffi::c_void, selectioncriterion: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSelector_Impl::GetSelectionCriterion(this) { Ok(ok__) => { @@ -1260,7 +1005,7 @@ impl IOpcRelationshipSelector_Vtbl { iid == &::IID } } -pub trait IOpcRelationshipSelectorEnumerator_Impl: Sized { +pub trait IOpcRelationshipSelectorEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; @@ -1268,14 +1013,8 @@ pub trait IOpcRelationshipSelectorEnumerator_Impl: Sized { } impl windows_core::RuntimeName for IOpcRelationshipSelectorEnumerator {} impl IOpcRelationshipSelectorEnumerator_Vtbl { - pub const fn new() -> IOpcRelationshipSelectorEnumerator_Vtbl - where - Identity: IOpcRelationshipSelectorEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSelectorEnumerator_Impl, - { + pub const fn new() -> IOpcRelationshipSelectorEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSelectorEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -1285,10 +1024,7 @@ impl IOpcRelationshipSelectorEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSelectorEnumerator_Impl, - { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSelectorEnumerator_Impl::MovePrevious(this) { Ok(ok__) => { @@ -1298,10 +1034,7 @@ impl IOpcRelationshipSelectorEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, relationshipselector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSelectorEnumerator_Impl, - { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, relationshipselector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSelectorEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -1311,10 +1044,7 @@ impl IOpcRelationshipSelectorEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSelectorEnumerator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSelectorEnumerator_Impl::Clone(this) { Ok(ok__) => { @@ -1336,21 +1066,15 @@ impl IOpcRelationshipSelectorEnumerator_Vtbl { iid == &::IID } } -pub trait IOpcRelationshipSelectorSet_Impl: Sized { +pub trait IOpcRelationshipSelectorSet_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, selector: OPC_RELATIONSHIP_SELECTOR, selectioncriterion: &windows_core::PCWSTR) -> windows_core::Result; fn Delete(&self, relationshipselector: Option<&IOpcRelationshipSelector>) -> windows_core::Result<()>; fn GetEnumerator(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOpcRelationshipSelectorSet {} impl IOpcRelationshipSelectorSet_Vtbl { - pub const fn new() -> IOpcRelationshipSelectorSet_Vtbl - where - Identity: IOpcRelationshipSelectorSet_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, selector: OPC_RELATIONSHIP_SELECTOR, selectioncriterion: windows_core::PCWSTR, relationshipselector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSelectorSet_Impl, - { + pub const fn new() -> IOpcRelationshipSelectorSet_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, selector: OPC_RELATIONSHIP_SELECTOR, selectioncriterion: windows_core::PCWSTR, relationshipselector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSelectorSet_Impl::Create(this, core::mem::transmute_copy(&selector), core::mem::transmute(&selectioncriterion)) { Ok(ok__) => { @@ -1360,17 +1084,11 @@ impl IOpcRelationshipSelectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, relationshipselector: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSelectorSet_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, relationshipselector: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcRelationshipSelectorSet_Impl::Delete(this, windows_core::from_raw_borrowed(&relationshipselector)).into() } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, relationshipselectorenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSelectorSet_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, relationshipselectorenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSelectorSet_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -1392,7 +1110,7 @@ impl IOpcRelationshipSelectorSet_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcRelationshipSet_Impl: Sized { +pub trait IOpcRelationshipSet_Impl: Sized + windows_core::IUnknownImpl { fn GetRelationship(&self, relationshipidentifier: &windows_core::PCWSTR) -> windows_core::Result; fn CreateRelationship(&self, relationshipidentifier: &windows_core::PCWSTR, relationshiptype: &windows_core::PCWSTR, targeturi: Option<&super::super::super::System::Com::IUri>, targetmode: OPC_URI_TARGET_MODE) -> windows_core::Result; fn DeleteRelationship(&self, relationshipidentifier: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -1405,14 +1123,8 @@ pub trait IOpcRelationshipSet_Impl: Sized { impl windows_core::RuntimeName for IOpcRelationshipSet {} #[cfg(feature = "Win32_System_Com")] impl IOpcRelationshipSet_Vtbl { - pub const fn new() -> IOpcRelationshipSet_Vtbl - where - Identity: IOpcRelationshipSet_Impl, - { - unsafe extern "system" fn GetRelationship(this: *mut core::ffi::c_void, relationshipidentifier: windows_core::PCWSTR, relationship: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSet_Impl, - { + pub const fn new() -> IOpcRelationshipSet_Vtbl { + unsafe extern "system" fn GetRelationship(this: *mut core::ffi::c_void, relationshipidentifier: windows_core::PCWSTR, relationship: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSet_Impl::GetRelationship(this, core::mem::transmute(&relationshipidentifier)) { Ok(ok__) => { @@ -1422,10 +1134,7 @@ impl IOpcRelationshipSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRelationship(this: *mut core::ffi::c_void, relationshipidentifier: windows_core::PCWSTR, relationshiptype: windows_core::PCWSTR, targeturi: *mut core::ffi::c_void, targetmode: OPC_URI_TARGET_MODE, relationship: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSet_Impl, - { + unsafe extern "system" fn CreateRelationship(this: *mut core::ffi::c_void, relationshipidentifier: windows_core::PCWSTR, relationshiptype: windows_core::PCWSTR, targeturi: *mut core::ffi::c_void, targetmode: OPC_URI_TARGET_MODE, relationship: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSet_Impl::CreateRelationship(this, core::mem::transmute(&relationshipidentifier), core::mem::transmute(&relationshiptype), windows_core::from_raw_borrowed(&targeturi), core::mem::transmute_copy(&targetmode)) { Ok(ok__) => { @@ -1435,17 +1144,11 @@ impl IOpcRelationshipSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRelationship(this: *mut core::ffi::c_void, relationshipidentifier: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSet_Impl, - { + unsafe extern "system" fn DeleteRelationship(this: *mut core::ffi::c_void, relationshipidentifier: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcRelationshipSet_Impl::DeleteRelationship(this, core::mem::transmute(&relationshipidentifier)).into() } - unsafe extern "system" fn RelationshipExists(this: *mut core::ffi::c_void, relationshipidentifier: windows_core::PCWSTR, relationshipexists: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSet_Impl, - { + unsafe extern "system" fn RelationshipExists(this: *mut core::ffi::c_void, relationshipidentifier: windows_core::PCWSTR, relationshipexists: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSet_Impl::RelationshipExists(this, core::mem::transmute(&relationshipidentifier)) { Ok(ok__) => { @@ -1455,10 +1158,7 @@ impl IOpcRelationshipSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, relationshipenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSet_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, relationshipenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSet_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -1468,10 +1168,7 @@ impl IOpcRelationshipSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnumeratorForType(this: *mut core::ffi::c_void, relationshiptype: windows_core::PCWSTR, relationshipenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSet_Impl, - { + unsafe extern "system" fn GetEnumeratorForType(this: *mut core::ffi::c_void, relationshiptype: windows_core::PCWSTR, relationshipenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSet_Impl::GetEnumeratorForType(this, core::mem::transmute(&relationshiptype)) { Ok(ok__) => { @@ -1481,10 +1178,7 @@ impl IOpcRelationshipSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRelationshipsContentStream(this: *mut core::ffi::c_void, contents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcRelationshipSet_Impl, - { + unsafe extern "system" fn GetRelationshipsContentStream(this: *mut core::ffi::c_void, contents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSet_Impl::GetRelationshipsContentStream(this) { Ok(ok__) => { @@ -1509,19 +1203,13 @@ impl IOpcRelationshipSet_Vtbl { iid == &::IID } } -pub trait IOpcSignatureCustomObject_Impl: Sized { +pub trait IOpcSignatureCustomObject_Impl: Sized + windows_core::IUnknownImpl { fn GetXml(&self, xmlmarkup: *mut *mut u8, count: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOpcSignatureCustomObject {} impl IOpcSignatureCustomObject_Vtbl { - pub const fn new() -> IOpcSignatureCustomObject_Vtbl - where - Identity: IOpcSignatureCustomObject_Impl, - { - unsafe extern "system" fn GetXml(this: *mut core::ffi::c_void, xmlmarkup: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT - where - Identity: IOpcSignatureCustomObject_Impl, - { + pub const fn new() -> IOpcSignatureCustomObject_Vtbl { + unsafe extern "system" fn GetXml(this: *mut core::ffi::c_void, xmlmarkup: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSignatureCustomObject_Impl::GetXml(this, core::mem::transmute_copy(&xmlmarkup), core::mem::transmute_copy(&count)).into() } @@ -1531,7 +1219,7 @@ impl IOpcSignatureCustomObject_Vtbl { iid == &::IID } } -pub trait IOpcSignatureCustomObjectEnumerator_Impl: Sized { +pub trait IOpcSignatureCustomObjectEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; @@ -1539,14 +1227,8 @@ pub trait IOpcSignatureCustomObjectEnumerator_Impl: Sized { } impl windows_core::RuntimeName for IOpcSignatureCustomObjectEnumerator {} impl IOpcSignatureCustomObjectEnumerator_Vtbl { - pub const fn new() -> IOpcSignatureCustomObjectEnumerator_Vtbl - where - Identity: IOpcSignatureCustomObjectEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcSignatureCustomObjectEnumerator_Impl, - { + pub const fn new() -> IOpcSignatureCustomObjectEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureCustomObjectEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -1556,10 +1238,7 @@ impl IOpcSignatureCustomObjectEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcSignatureCustomObjectEnumerator_Impl, - { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureCustomObjectEnumerator_Impl::MovePrevious(this) { Ok(ok__) => { @@ -1569,10 +1248,7 @@ impl IOpcSignatureCustomObjectEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, customobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureCustomObjectEnumerator_Impl, - { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, customobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureCustomObjectEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -1582,10 +1258,7 @@ impl IOpcSignatureCustomObjectEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureCustomObjectEnumerator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureCustomObjectEnumerator_Impl::Clone(this) { Ok(ok__) => { @@ -1607,21 +1280,15 @@ impl IOpcSignatureCustomObjectEnumerator_Vtbl { iid == &::IID } } -pub trait IOpcSignatureCustomObjectSet_Impl: Sized { +pub trait IOpcSignatureCustomObjectSet_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, xmlmarkup: *const u8, count: u32) -> windows_core::Result; fn Delete(&self, customobject: Option<&IOpcSignatureCustomObject>) -> windows_core::Result<()>; fn GetEnumerator(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOpcSignatureCustomObjectSet {} impl IOpcSignatureCustomObjectSet_Vtbl { - pub const fn new() -> IOpcSignatureCustomObjectSet_Vtbl - where - Identity: IOpcSignatureCustomObjectSet_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, xmlmarkup: *const u8, count: u32, customobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureCustomObjectSet_Impl, - { + pub const fn new() -> IOpcSignatureCustomObjectSet_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, xmlmarkup: *const u8, count: u32, customobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureCustomObjectSet_Impl::Create(this, core::mem::transmute_copy(&xmlmarkup), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -1631,17 +1298,11 @@ impl IOpcSignatureCustomObjectSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, customobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureCustomObjectSet_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, customobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSignatureCustomObjectSet_Impl::Delete(this, windows_core::from_raw_borrowed(&customobject)).into() } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, customobjectenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureCustomObjectSet_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, customobjectenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureCustomObjectSet_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -1663,7 +1324,7 @@ impl IOpcSignatureCustomObjectSet_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcSignaturePartReference_Impl: Sized { +pub trait IOpcSignaturePartReference_Impl: Sized + windows_core::IUnknownImpl { fn GetPartName(&self) -> windows_core::Result; fn GetContentType(&self) -> windows_core::Result; fn GetDigestMethod(&self) -> windows_core::Result; @@ -1674,14 +1335,8 @@ pub trait IOpcSignaturePartReference_Impl: Sized { impl windows_core::RuntimeName for IOpcSignaturePartReference {} #[cfg(feature = "Win32_System_Com")] impl IOpcSignaturePartReference_Vtbl { - pub const fn new() -> IOpcSignaturePartReference_Vtbl - where - Identity: IOpcSignaturePartReference_Impl, - { - unsafe extern "system" fn GetPartName(this: *mut core::ffi::c_void, partname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReference_Impl, - { + pub const fn new() -> IOpcSignaturePartReference_Vtbl { + unsafe extern "system" fn GetPartName(this: *mut core::ffi::c_void, partname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReference_Impl::GetPartName(this) { Ok(ok__) => { @@ -1691,10 +1346,7 @@ impl IOpcSignaturePartReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContentType(this: *mut core::ffi::c_void, contenttype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReference_Impl, - { + unsafe extern "system" fn GetContentType(this: *mut core::ffi::c_void, contenttype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReference_Impl::GetContentType(this) { Ok(ok__) => { @@ -1704,10 +1356,7 @@ impl IOpcSignaturePartReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDigestMethod(this: *mut core::ffi::c_void, digestmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReference_Impl, - { + unsafe extern "system" fn GetDigestMethod(this: *mut core::ffi::c_void, digestmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReference_Impl::GetDigestMethod(this) { Ok(ok__) => { @@ -1717,17 +1366,11 @@ impl IOpcSignaturePartReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDigestValue(this: *mut core::ffi::c_void, digestvalue: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReference_Impl, - { + unsafe extern "system" fn GetDigestValue(this: *mut core::ffi::c_void, digestvalue: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSignaturePartReference_Impl::GetDigestValue(this, core::mem::transmute_copy(&digestvalue), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn GetTransformMethod(this: *mut core::ffi::c_void, transformmethod: *mut OPC_CANONICALIZATION_METHOD) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReference_Impl, - { + unsafe extern "system" fn GetTransformMethod(this: *mut core::ffi::c_void, transformmethod: *mut OPC_CANONICALIZATION_METHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReference_Impl::GetTransformMethod(this) { Ok(ok__) => { @@ -1750,7 +1393,7 @@ impl IOpcSignaturePartReference_Vtbl { iid == &::IID } } -pub trait IOpcSignaturePartReferenceEnumerator_Impl: Sized { +pub trait IOpcSignaturePartReferenceEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; @@ -1758,14 +1401,8 @@ pub trait IOpcSignaturePartReferenceEnumerator_Impl: Sized { } impl windows_core::RuntimeName for IOpcSignaturePartReferenceEnumerator {} impl IOpcSignaturePartReferenceEnumerator_Vtbl { - pub const fn new() -> IOpcSignaturePartReferenceEnumerator_Vtbl - where - Identity: IOpcSignaturePartReferenceEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReferenceEnumerator_Impl, - { + pub const fn new() -> IOpcSignaturePartReferenceEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReferenceEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -1775,10 +1412,7 @@ impl IOpcSignaturePartReferenceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReferenceEnumerator_Impl, - { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReferenceEnumerator_Impl::MovePrevious(this) { Ok(ok__) => { @@ -1788,10 +1422,7 @@ impl IOpcSignaturePartReferenceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, partreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReferenceEnumerator_Impl, - { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, partreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReferenceEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -1801,10 +1432,7 @@ impl IOpcSignaturePartReferenceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReferenceEnumerator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReferenceEnumerator_Impl::Clone(this) { Ok(ok__) => { @@ -1827,7 +1455,7 @@ impl IOpcSignaturePartReferenceEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcSignaturePartReferenceSet_Impl: Sized { +pub trait IOpcSignaturePartReferenceSet_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, parturi: Option<&IOpcPartUri>, digestmethod: &windows_core::PCWSTR, transformmethod: OPC_CANONICALIZATION_METHOD) -> windows_core::Result; fn Delete(&self, partreference: Option<&IOpcSignaturePartReference>) -> windows_core::Result<()>; fn GetEnumerator(&self) -> windows_core::Result; @@ -1836,14 +1464,8 @@ pub trait IOpcSignaturePartReferenceSet_Impl: Sized { impl windows_core::RuntimeName for IOpcSignaturePartReferenceSet {} #[cfg(feature = "Win32_System_Com")] impl IOpcSignaturePartReferenceSet_Vtbl { - pub const fn new() -> IOpcSignaturePartReferenceSet_Vtbl - where - Identity: IOpcSignaturePartReferenceSet_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, digestmethod: windows_core::PCWSTR, transformmethod: OPC_CANONICALIZATION_METHOD, partreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReferenceSet_Impl, - { + pub const fn new() -> IOpcSignaturePartReferenceSet_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, digestmethod: windows_core::PCWSTR, transformmethod: OPC_CANONICALIZATION_METHOD, partreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReferenceSet_Impl::Create(this, windows_core::from_raw_borrowed(&parturi), core::mem::transmute(&digestmethod), core::mem::transmute_copy(&transformmethod)) { Ok(ok__) => { @@ -1853,17 +1475,11 @@ impl IOpcSignaturePartReferenceSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, partreference: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReferenceSet_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, partreference: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSignaturePartReferenceSet_Impl::Delete(this, windows_core::from_raw_borrowed(&partreference)).into() } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, partreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignaturePartReferenceSet_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, partreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReferenceSet_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -1885,7 +1501,7 @@ impl IOpcSignaturePartReferenceSet_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcSignatureReference_Impl: Sized { +pub trait IOpcSignatureReference_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> windows_core::Result; fn GetUri(&self) -> windows_core::Result; fn GetType(&self) -> windows_core::Result; @@ -1897,14 +1513,8 @@ pub trait IOpcSignatureReference_Impl: Sized { impl windows_core::RuntimeName for IOpcSignatureReference {} #[cfg(feature = "Win32_System_Com")] impl IOpcSignatureReference_Vtbl { - pub const fn new() -> IOpcSignatureReference_Vtbl - where - Identity: IOpcSignatureReference_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, referenceid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcSignatureReference_Impl, - { + pub const fn new() -> IOpcSignatureReference_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, referenceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReference_Impl::GetId(this) { Ok(ok__) => { @@ -1914,10 +1524,7 @@ impl IOpcSignatureReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUri(this: *mut core::ffi::c_void, referenceuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureReference_Impl, - { + unsafe extern "system" fn GetUri(this: *mut core::ffi::c_void, referenceuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReference_Impl::GetUri(this) { Ok(ok__) => { @@ -1927,10 +1534,7 @@ impl IOpcSignatureReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, r#type: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcSignatureReference_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, r#type: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReference_Impl::GetType(this) { Ok(ok__) => { @@ -1940,10 +1544,7 @@ impl IOpcSignatureReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransformMethod(this: *mut core::ffi::c_void, transformmethod: *mut OPC_CANONICALIZATION_METHOD) -> windows_core::HRESULT - where - Identity: IOpcSignatureReference_Impl, - { + unsafe extern "system" fn GetTransformMethod(this: *mut core::ffi::c_void, transformmethod: *mut OPC_CANONICALIZATION_METHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReference_Impl::GetTransformMethod(this) { Ok(ok__) => { @@ -1953,10 +1554,7 @@ impl IOpcSignatureReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDigestMethod(this: *mut core::ffi::c_void, digestmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcSignatureReference_Impl, - { + unsafe extern "system" fn GetDigestMethod(this: *mut core::ffi::c_void, digestmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReference_Impl::GetDigestMethod(this) { Ok(ok__) => { @@ -1966,10 +1564,7 @@ impl IOpcSignatureReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDigestValue(this: *mut core::ffi::c_void, digestvalue: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT - where - Identity: IOpcSignatureReference_Impl, - { + unsafe extern "system" fn GetDigestValue(this: *mut core::ffi::c_void, digestvalue: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSignatureReference_Impl::GetDigestValue(this, core::mem::transmute_copy(&digestvalue), core::mem::transmute_copy(&count)).into() } @@ -1987,7 +1582,7 @@ impl IOpcSignatureReference_Vtbl { iid == &::IID } } -pub trait IOpcSignatureReferenceEnumerator_Impl: Sized { +pub trait IOpcSignatureReferenceEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; @@ -1995,14 +1590,8 @@ pub trait IOpcSignatureReferenceEnumerator_Impl: Sized { } impl windows_core::RuntimeName for IOpcSignatureReferenceEnumerator {} impl IOpcSignatureReferenceEnumerator_Vtbl { - pub const fn new() -> IOpcSignatureReferenceEnumerator_Vtbl - where - Identity: IOpcSignatureReferenceEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcSignatureReferenceEnumerator_Impl, - { + pub const fn new() -> IOpcSignatureReferenceEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReferenceEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -2012,10 +1601,7 @@ impl IOpcSignatureReferenceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcSignatureReferenceEnumerator_Impl, - { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReferenceEnumerator_Impl::MovePrevious(this) { Ok(ok__) => { @@ -2025,10 +1611,7 @@ impl IOpcSignatureReferenceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, reference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureReferenceEnumerator_Impl, - { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, reference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReferenceEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -2038,10 +1621,7 @@ impl IOpcSignatureReferenceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureReferenceEnumerator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReferenceEnumerator_Impl::Clone(this) { Ok(ok__) => { @@ -2064,7 +1644,7 @@ impl IOpcSignatureReferenceEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcSignatureReferenceSet_Impl: Sized { +pub trait IOpcSignatureReferenceSet_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, referenceuri: Option<&super::super::super::System::Com::IUri>, referenceid: &windows_core::PCWSTR, r#type: &windows_core::PCWSTR, digestmethod: &windows_core::PCWSTR, transformmethod: OPC_CANONICALIZATION_METHOD) -> windows_core::Result; fn Delete(&self, reference: Option<&IOpcSignatureReference>) -> windows_core::Result<()>; fn GetEnumerator(&self) -> windows_core::Result; @@ -2073,14 +1653,8 @@ pub trait IOpcSignatureReferenceSet_Impl: Sized { impl windows_core::RuntimeName for IOpcSignatureReferenceSet {} #[cfg(feature = "Win32_System_Com")] impl IOpcSignatureReferenceSet_Vtbl { - pub const fn new() -> IOpcSignatureReferenceSet_Vtbl - where - Identity: IOpcSignatureReferenceSet_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, referenceuri: *mut core::ffi::c_void, referenceid: windows_core::PCWSTR, r#type: windows_core::PCWSTR, digestmethod: windows_core::PCWSTR, transformmethod: OPC_CANONICALIZATION_METHOD, reference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureReferenceSet_Impl, - { + pub const fn new() -> IOpcSignatureReferenceSet_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, referenceuri: *mut core::ffi::c_void, referenceid: windows_core::PCWSTR, r#type: windows_core::PCWSTR, digestmethod: windows_core::PCWSTR, transformmethod: OPC_CANONICALIZATION_METHOD, reference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReferenceSet_Impl::Create(this, windows_core::from_raw_borrowed(&referenceuri), core::mem::transmute(&referenceid), core::mem::transmute(&r#type), core::mem::transmute(&digestmethod), core::mem::transmute_copy(&transformmethod)) { Ok(ok__) => { @@ -2090,17 +1664,11 @@ impl IOpcSignatureReferenceSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, reference: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureReferenceSet_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, reference: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSignatureReferenceSet_Impl::Delete(this, windows_core::from_raw_borrowed(&reference)).into() } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, referenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureReferenceSet_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, referenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReferenceSet_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -2122,7 +1690,7 @@ impl IOpcSignatureReferenceSet_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcSignatureRelationshipReference_Impl: Sized { +pub trait IOpcSignatureRelationshipReference_Impl: Sized + windows_core::IUnknownImpl { fn GetSourceUri(&self) -> windows_core::Result; fn GetDigestMethod(&self) -> windows_core::Result; fn GetDigestValue(&self, digestvalue: *mut *mut u8, count: *mut u32) -> windows_core::Result<()>; @@ -2134,14 +1702,8 @@ pub trait IOpcSignatureRelationshipReference_Impl: Sized { impl windows_core::RuntimeName for IOpcSignatureRelationshipReference {} #[cfg(feature = "Win32_System_Com")] impl IOpcSignatureRelationshipReference_Vtbl { - pub const fn new() -> IOpcSignatureRelationshipReference_Vtbl - where - Identity: IOpcSignatureRelationshipReference_Impl, - { - unsafe extern "system" fn GetSourceUri(this: *mut core::ffi::c_void, sourceuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReference_Impl, - { + pub const fn new() -> IOpcSignatureRelationshipReference_Vtbl { + unsafe extern "system" fn GetSourceUri(this: *mut core::ffi::c_void, sourceuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReference_Impl::GetSourceUri(this) { Ok(ok__) => { @@ -2151,10 +1713,7 @@ impl IOpcSignatureRelationshipReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDigestMethod(this: *mut core::ffi::c_void, digestmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReference_Impl, - { + unsafe extern "system" fn GetDigestMethod(this: *mut core::ffi::c_void, digestmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReference_Impl::GetDigestMethod(this) { Ok(ok__) => { @@ -2164,17 +1723,11 @@ impl IOpcSignatureRelationshipReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDigestValue(this: *mut core::ffi::c_void, digestvalue: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReference_Impl, - { + unsafe extern "system" fn GetDigestValue(this: *mut core::ffi::c_void, digestvalue: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSignatureRelationshipReference_Impl::GetDigestValue(this, core::mem::transmute_copy(&digestvalue), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn GetTransformMethod(this: *mut core::ffi::c_void, transformmethod: *mut OPC_CANONICALIZATION_METHOD) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReference_Impl, - { + unsafe extern "system" fn GetTransformMethod(this: *mut core::ffi::c_void, transformmethod: *mut OPC_CANONICALIZATION_METHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReference_Impl::GetTransformMethod(this) { Ok(ok__) => { @@ -2184,10 +1737,7 @@ impl IOpcSignatureRelationshipReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRelationshipSigningOption(this: *mut core::ffi::c_void, relationshipsigningoption: *mut OPC_RELATIONSHIPS_SIGNING_OPTION) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReference_Impl, - { + unsafe extern "system" fn GetRelationshipSigningOption(this: *mut core::ffi::c_void, relationshipsigningoption: *mut OPC_RELATIONSHIPS_SIGNING_OPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReference_Impl::GetRelationshipSigningOption(this) { Ok(ok__) => { @@ -2197,10 +1747,7 @@ impl IOpcSignatureRelationshipReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRelationshipSelectorEnumerator(this: *mut core::ffi::c_void, selectorenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReference_Impl, - { + unsafe extern "system" fn GetRelationshipSelectorEnumerator(this: *mut core::ffi::c_void, selectorenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReference_Impl::GetRelationshipSelectorEnumerator(this) { Ok(ok__) => { @@ -2224,7 +1771,7 @@ impl IOpcSignatureRelationshipReference_Vtbl { iid == &::IID } } -pub trait IOpcSignatureRelationshipReferenceEnumerator_Impl: Sized { +pub trait IOpcSignatureRelationshipReferenceEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result; fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; @@ -2232,14 +1779,8 @@ pub trait IOpcSignatureRelationshipReferenceEnumerator_Impl: Sized { } impl windows_core::RuntimeName for IOpcSignatureRelationshipReferenceEnumerator {} impl IOpcSignatureRelationshipReferenceEnumerator_Vtbl { - pub const fn new() -> IOpcSignatureRelationshipReferenceEnumerator_Vtbl - where - Identity: IOpcSignatureRelationshipReferenceEnumerator_Impl, - { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReferenceEnumerator_Impl, - { + pub const fn new() -> IOpcSignatureRelationshipReferenceEnumerator_Vtbl { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReferenceEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -2249,10 +1790,7 @@ impl IOpcSignatureRelationshipReferenceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReferenceEnumerator_Impl, - { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReferenceEnumerator_Impl::MovePrevious(this) { Ok(ok__) => { @@ -2262,10 +1800,7 @@ impl IOpcSignatureRelationshipReferenceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, relationshipreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReferenceEnumerator_Impl, - { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, relationshipreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReferenceEnumerator_Impl::GetCurrent(this) { Ok(ok__) => { @@ -2275,10 +1810,7 @@ impl IOpcSignatureRelationshipReferenceEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReferenceEnumerator_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, copy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReferenceEnumerator_Impl::Clone(this) { Ok(ok__) => { @@ -2301,7 +1833,7 @@ impl IOpcSignatureRelationshipReferenceEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcSignatureRelationshipReferenceSet_Impl: Sized { +pub trait IOpcSignatureRelationshipReferenceSet_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, sourceuri: Option<&IOpcUri>, digestmethod: &windows_core::PCWSTR, relationshipsigningoption: OPC_RELATIONSHIPS_SIGNING_OPTION, selectorset: Option<&IOpcRelationshipSelectorSet>, transformmethod: OPC_CANONICALIZATION_METHOD) -> windows_core::Result; fn CreateRelationshipSelectorSet(&self) -> windows_core::Result; fn Delete(&self, relationshipreference: Option<&IOpcSignatureRelationshipReference>) -> windows_core::Result<()>; @@ -2311,14 +1843,8 @@ pub trait IOpcSignatureRelationshipReferenceSet_Impl: Sized { impl windows_core::RuntimeName for IOpcSignatureRelationshipReferenceSet {} #[cfg(feature = "Win32_System_Com")] impl IOpcSignatureRelationshipReferenceSet_Vtbl { - pub const fn new() -> IOpcSignatureRelationshipReferenceSet_Vtbl - where - Identity: IOpcSignatureRelationshipReferenceSet_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, sourceuri: *mut core::ffi::c_void, digestmethod: windows_core::PCWSTR, relationshipsigningoption: OPC_RELATIONSHIPS_SIGNING_OPTION, selectorset: *mut core::ffi::c_void, transformmethod: OPC_CANONICALIZATION_METHOD, relationshipreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReferenceSet_Impl, - { + pub const fn new() -> IOpcSignatureRelationshipReferenceSet_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, sourceuri: *mut core::ffi::c_void, digestmethod: windows_core::PCWSTR, relationshipsigningoption: OPC_RELATIONSHIPS_SIGNING_OPTION, selectorset: *mut core::ffi::c_void, transformmethod: OPC_CANONICALIZATION_METHOD, relationshipreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReferenceSet_Impl::Create(this, windows_core::from_raw_borrowed(&sourceuri), core::mem::transmute(&digestmethod), core::mem::transmute_copy(&relationshipsigningoption), windows_core::from_raw_borrowed(&selectorset), core::mem::transmute_copy(&transformmethod)) { Ok(ok__) => { @@ -2328,10 +1854,7 @@ impl IOpcSignatureRelationshipReferenceSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRelationshipSelectorSet(this: *mut core::ffi::c_void, selectorset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReferenceSet_Impl, - { + unsafe extern "system" fn CreateRelationshipSelectorSet(this: *mut core::ffi::c_void, selectorset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReferenceSet_Impl::CreateRelationshipSelectorSet(this) { Ok(ok__) => { @@ -2341,17 +1864,11 @@ impl IOpcSignatureRelationshipReferenceSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, relationshipreference: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReferenceSet_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, relationshipreference: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSignatureRelationshipReferenceSet_Impl::Delete(this, windows_core::from_raw_borrowed(&relationshipreference)).into() } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, relationshipreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSignatureRelationshipReferenceSet_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, relationshipreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReferenceSet_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -2374,7 +1891,7 @@ impl IOpcSignatureRelationshipReferenceSet_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpcSigningOptions_Impl: Sized { +pub trait IOpcSigningOptions_Impl: Sized + windows_core::IUnknownImpl { fn GetSignatureId(&self) -> windows_core::Result; fn SetSignatureId(&self, signatureid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetSignatureMethod(&self) -> windows_core::Result; @@ -2397,14 +1914,8 @@ pub trait IOpcSigningOptions_Impl: Sized { impl windows_core::RuntimeName for IOpcSigningOptions {} #[cfg(feature = "Win32_System_Com")] impl IOpcSigningOptions_Vtbl { - pub const fn new() -> IOpcSigningOptions_Vtbl - where - Identity: IOpcSigningOptions_Impl, - { - unsafe extern "system" fn GetSignatureId(this: *mut core::ffi::c_void, signatureid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + pub const fn new() -> IOpcSigningOptions_Vtbl { + unsafe extern "system" fn GetSignatureId(this: *mut core::ffi::c_void, signatureid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetSignatureId(this) { Ok(ok__) => { @@ -2414,17 +1925,11 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignatureId(this: *mut core::ffi::c_void, signatureid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn SetSignatureId(this: *mut core::ffi::c_void, signatureid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSigningOptions_Impl::SetSignatureId(this, core::mem::transmute(&signatureid)).into() } - unsafe extern "system" fn GetSignatureMethod(this: *mut core::ffi::c_void, signaturemethod: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn GetSignatureMethod(this: *mut core::ffi::c_void, signaturemethod: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetSignatureMethod(this) { Ok(ok__) => { @@ -2434,17 +1939,11 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignatureMethod(this: *mut core::ffi::c_void, signaturemethod: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn SetSignatureMethod(this: *mut core::ffi::c_void, signaturemethod: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSigningOptions_Impl::SetSignatureMethod(this, core::mem::transmute(&signaturemethod)).into() } - unsafe extern "system" fn GetDefaultDigestMethod(this: *mut core::ffi::c_void, digestmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn GetDefaultDigestMethod(this: *mut core::ffi::c_void, digestmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetDefaultDigestMethod(this) { Ok(ok__) => { @@ -2454,17 +1953,11 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultDigestMethod(this: *mut core::ffi::c_void, digestmethod: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn SetDefaultDigestMethod(this: *mut core::ffi::c_void, digestmethod: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSigningOptions_Impl::SetDefaultDigestMethod(this, core::mem::transmute(&digestmethod)).into() } - unsafe extern "system" fn GetCertificateEmbeddingOption(this: *mut core::ffi::c_void, embeddingoption: *mut OPC_CERTIFICATE_EMBEDDING_OPTION) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn GetCertificateEmbeddingOption(this: *mut core::ffi::c_void, embeddingoption: *mut OPC_CERTIFICATE_EMBEDDING_OPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetCertificateEmbeddingOption(this) { Ok(ok__) => { @@ -2474,17 +1967,11 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateEmbeddingOption(this: *mut core::ffi::c_void, embeddingoption: OPC_CERTIFICATE_EMBEDDING_OPTION) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn SetCertificateEmbeddingOption(this: *mut core::ffi::c_void, embeddingoption: OPC_CERTIFICATE_EMBEDDING_OPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSigningOptions_Impl::SetCertificateEmbeddingOption(this, core::mem::transmute_copy(&embeddingoption)).into() } - unsafe extern "system" fn GetTimeFormat(this: *mut core::ffi::c_void, timeformat: *mut OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn GetTimeFormat(this: *mut core::ffi::c_void, timeformat: *mut OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetTimeFormat(this) { Ok(ok__) => { @@ -2494,17 +1981,11 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTimeFormat(this: *mut core::ffi::c_void, timeformat: OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn SetTimeFormat(this: *mut core::ffi::c_void, timeformat: OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSigningOptions_Impl::SetTimeFormat(this, core::mem::transmute_copy(&timeformat)).into() } - unsafe extern "system" fn GetSignaturePartReferenceSet(this: *mut core::ffi::c_void, partreferenceset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn GetSignaturePartReferenceSet(this: *mut core::ffi::c_void, partreferenceset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetSignaturePartReferenceSet(this) { Ok(ok__) => { @@ -2514,10 +1995,7 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignatureRelationshipReferenceSet(this: *mut core::ffi::c_void, relationshipreferenceset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn GetSignatureRelationshipReferenceSet(this: *mut core::ffi::c_void, relationshipreferenceset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetSignatureRelationshipReferenceSet(this) { Ok(ok__) => { @@ -2527,10 +2005,7 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCustomObjectSet(this: *mut core::ffi::c_void, customobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn GetCustomObjectSet(this: *mut core::ffi::c_void, customobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetCustomObjectSet(this) { Ok(ok__) => { @@ -2540,10 +2015,7 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCustomReferenceSet(this: *mut core::ffi::c_void, customreferenceset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn GetCustomReferenceSet(this: *mut core::ffi::c_void, customreferenceset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetCustomReferenceSet(this) { Ok(ok__) => { @@ -2553,10 +2025,7 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateSet(this: *mut core::ffi::c_void, certificateset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn GetCertificateSet(this: *mut core::ffi::c_void, certificateset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetCertificateSet(this) { Ok(ok__) => { @@ -2566,10 +2035,7 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn GetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSigningOptions_Impl::GetSignaturePartName(this) { Ok(ok__) => { @@ -2579,10 +2045,7 @@ impl IOpcSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcSigningOptions_Impl, - { + unsafe extern "system" fn SetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpcSigningOptions_Impl::SetSignaturePartName(this, windows_core::from_raw_borrowed(&signaturepartname)).into() } @@ -2621,14 +2084,8 @@ pub trait IOpcUri_Impl: Sized + super::super::super::System::Com::IUri_Impl { impl windows_core::RuntimeName for IOpcUri {} #[cfg(feature = "Win32_System_Com")] impl IOpcUri_Vtbl { - pub const fn new() -> IOpcUri_Vtbl - where - Identity: IOpcUri_Impl, - { - unsafe extern "system" fn GetRelationshipsPartUri(this: *mut core::ffi::c_void, relationshipparturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcUri_Impl, - { + pub const fn new() -> IOpcUri_Vtbl { + unsafe extern "system" fn GetRelationshipsPartUri(this: *mut core::ffi::c_void, relationshipparturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcUri_Impl::GetRelationshipsPartUri(this) { Ok(ok__) => { @@ -2638,10 +2095,7 @@ impl IOpcUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRelativeUri(this: *mut core::ffi::c_void, targetparturi: *mut core::ffi::c_void, relativeuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcUri_Impl, - { + unsafe extern "system" fn GetRelativeUri(this: *mut core::ffi::c_void, targetparturi: *mut core::ffi::c_void, relativeuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcUri_Impl::GetRelativeUri(this, windows_core::from_raw_borrowed(&targetparturi)) { Ok(ok__) => { @@ -2651,10 +2105,7 @@ impl IOpcUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CombinePartUri(this: *mut core::ffi::c_void, relativeuri: *mut core::ffi::c_void, combineduri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpcUri_Impl, - { + unsafe extern "system" fn CombinePartUri(this: *mut core::ffi::c_void, relativeuri: *mut core::ffi::c_void, combineduri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcUri_Impl::CombinePartUri(this, windows_core::from_raw_borrowed(&relativeuri)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/impl.rs index e7c7f5d601..db55a8473b 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/impl.rs @@ -1,4 +1,4 @@ -pub trait IEnumVdsObject_Impl: Sized { +pub trait IEnumVdsObject_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppobjectarray: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -6,35 +6,20 @@ pub trait IEnumVdsObject_Impl: Sized { } impl windows_core::RuntimeName for IEnumVdsObject {} impl IEnumVdsObject_Vtbl { - pub const fn new() -> IEnumVdsObject_Vtbl - where - Identity: IEnumVdsObject_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppobjectarray: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumVdsObject_Impl, - { + pub const fn new() -> IEnumVdsObject_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppobjectarray: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumVdsObject_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppobjectarray), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumVdsObject_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumVdsObject_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumVdsObject_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumVdsObject_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumVdsObject_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumVdsObject_Impl::Clone(this) { Ok(ok__) => { @@ -56,27 +41,18 @@ impl IEnumVdsObject_Vtbl { iid == &::IID } } -pub trait IVdsAdmin_Impl: Sized { +pub trait IVdsAdmin_Impl: Sized + windows_core::IUnknownImpl { fn RegisterProvider(&self, providerid: &windows_core::GUID, providerclsid: &windows_core::GUID, pwszname: &windows_core::PCWSTR, r#type: VDS_PROVIDER_TYPE, pwszmachinename: &windows_core::PCWSTR, pwszversion: &windows_core::PCWSTR, guidversionid: &windows_core::GUID) -> windows_core::Result<()>; fn UnregisterProvider(&self, providerid: &windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsAdmin {} impl IVdsAdmin_Vtbl { - pub const fn new() -> IVdsAdmin_Vtbl - where - Identity: IVdsAdmin_Impl, - { - unsafe extern "system" fn RegisterProvider(this: *mut core::ffi::c_void, providerid: windows_core::GUID, providerclsid: windows_core::GUID, pwszname: windows_core::PCWSTR, r#type: VDS_PROVIDER_TYPE, pwszmachinename: windows_core::PCWSTR, pwszversion: windows_core::PCWSTR, guidversionid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVdsAdmin_Impl, - { + pub const fn new() -> IVdsAdmin_Vtbl { + unsafe extern "system" fn RegisterProvider(this: *mut core::ffi::c_void, providerid: windows_core::GUID, providerclsid: windows_core::GUID, pwszname: windows_core::PCWSTR, r#type: VDS_PROVIDER_TYPE, pwszmachinename: windows_core::PCWSTR, pwszversion: windows_core::PCWSTR, guidversionid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdmin_Impl::RegisterProvider(this, core::mem::transmute(&providerid), core::mem::transmute(&providerclsid), core::mem::transmute(&pwszname), core::mem::transmute_copy(&r#type), core::mem::transmute(&pwszmachinename), core::mem::transmute(&pwszversion), core::mem::transmute(&guidversionid)).into() } - unsafe extern "system" fn UnregisterProvider(this: *mut core::ffi::c_void, providerid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVdsAdmin_Impl, - { + unsafe extern "system" fn UnregisterProvider(this: *mut core::ffi::c_void, providerid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdmin_Impl::UnregisterProvider(this, core::mem::transmute(&providerid)).into() } @@ -90,7 +66,7 @@ impl IVdsAdmin_Vtbl { iid == &::IID } } -pub trait IVdsAdvancedDisk_Impl: Sized { +pub trait IVdsAdvancedDisk_Impl: Sized + windows_core::IUnknownImpl { fn GetPartitionProperties(&self, ulloffset: u64, ppartitionprop: *mut VDS_PARTITION_PROP) -> windows_core::Result<()>; fn QueryPartitions(&self, pppartitionproparray: *mut *mut VDS_PARTITION_PROP, plnumberofpartitions: *mut i32) -> windows_core::Result<()>; fn CreatePartition(&self, ulloffset: u64, ullsize: u64, para: *const CREATE_PARTITION_PARAMETERS) -> windows_core::Result; @@ -104,28 +80,16 @@ pub trait IVdsAdvancedDisk_Impl: Sized { } impl windows_core::RuntimeName for IVdsAdvancedDisk {} impl IVdsAdvancedDisk_Vtbl { - pub const fn new() -> IVdsAdvancedDisk_Vtbl - where - Identity: IVdsAdvancedDisk_Impl, - { - unsafe extern "system" fn GetPartitionProperties(this: *mut core::ffi::c_void, ulloffset: u64, ppartitionprop: *mut VDS_PARTITION_PROP) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk_Impl, - { + pub const fn new() -> IVdsAdvancedDisk_Vtbl { + unsafe extern "system" fn GetPartitionProperties(this: *mut core::ffi::c_void, ulloffset: u64, ppartitionprop: *mut VDS_PARTITION_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk_Impl::GetPartitionProperties(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&ppartitionprop)).into() } - unsafe extern "system" fn QueryPartitions(this: *mut core::ffi::c_void, pppartitionproparray: *mut *mut VDS_PARTITION_PROP, plnumberofpartitions: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk_Impl, - { + unsafe extern "system" fn QueryPartitions(this: *mut core::ffi::c_void, pppartitionproparray: *mut *mut VDS_PARTITION_PROP, plnumberofpartitions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk_Impl::QueryPartitions(this, core::mem::transmute_copy(&pppartitionproparray), core::mem::transmute_copy(&plnumberofpartitions)).into() } - unsafe extern "system" fn CreatePartition(this: *mut core::ffi::c_void, ulloffset: u64, ullsize: u64, para: *const CREATE_PARTITION_PARAMETERS, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk_Impl, - { + unsafe extern "system" fn CreatePartition(this: *mut core::ffi::c_void, ulloffset: u64, ullsize: u64, para: *const CREATE_PARTITION_PARAMETERS, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsAdvancedDisk_Impl::CreatePartition(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&ullsize), core::mem::transmute_copy(¶)) { Ok(ok__) => { @@ -135,45 +99,27 @@ impl IVdsAdvancedDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeletePartition(this: *mut core::ffi::c_void, ulloffset: u64, bforce: super::super::Foundation::BOOL, bforceprotected: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk_Impl, - { + unsafe extern "system" fn DeletePartition(this: *mut core::ffi::c_void, ulloffset: u64, bforce: super::super::Foundation::BOOL, bforceprotected: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk_Impl::DeletePartition(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bforceprotected)).into() } - unsafe extern "system" fn ChangeAttributes(this: *mut core::ffi::c_void, ulloffset: u64, para: *const CHANGE_ATTRIBUTES_PARAMETERS) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk_Impl, - { + unsafe extern "system" fn ChangeAttributes(this: *mut core::ffi::c_void, ulloffset: u64, para: *const CHANGE_ATTRIBUTES_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk_Impl::ChangeAttributes(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(¶)).into() } - unsafe extern "system" fn AssignDriveLetter(this: *mut core::ffi::c_void, ulloffset: u64, wcletter: u16) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk_Impl, - { + unsafe extern "system" fn AssignDriveLetter(this: *mut core::ffi::c_void, ulloffset: u64, wcletter: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk_Impl::AssignDriveLetter(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&wcletter)).into() } - unsafe extern "system" fn DeleteDriveLetter(this: *mut core::ffi::c_void, ulloffset: u64, wcletter: u16) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk_Impl, - { + unsafe extern "system" fn DeleteDriveLetter(this: *mut core::ffi::c_void, ulloffset: u64, wcletter: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk_Impl::DeleteDriveLetter(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&wcletter)).into() } - unsafe extern "system" fn GetDriveLetter(this: *mut core::ffi::c_void, ulloffset: u64, pwcletter: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk_Impl, - { + unsafe extern "system" fn GetDriveLetter(this: *mut core::ffi::c_void, ulloffset: u64, pwcletter: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk_Impl::GetDriveLetter(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&pwcletter)).into() } - unsafe extern "system" fn FormatPartition(this: *mut core::ffi::c_void, ulloffset: u64, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: windows_core::PCWSTR, dwunitallocationsize: u32, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk_Impl, - { + unsafe extern "system" fn FormatPartition(this: *mut core::ffi::c_void, ulloffset: u64, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: windows_core::PCWSTR, dwunitallocationsize: u32, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsAdvancedDisk_Impl::FormatPartition(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&r#type), core::mem::transmute(&pwszlabel), core::mem::transmute_copy(&dwunitallocationsize), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bquickformat), core::mem::transmute_copy(&benablecompression)) { Ok(ok__) => { @@ -183,10 +129,7 @@ impl IVdsAdvancedDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clean(this: *mut core::ffi::c_void, bforce: super::super::Foundation::BOOL, bforceoem: super::super::Foundation::BOOL, bfullclean: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk_Impl, - { + unsafe extern "system" fn Clean(this: *mut core::ffi::c_void, bforce: super::super::Foundation::BOOL, bforceoem: super::super::Foundation::BOOL, bfullclean: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsAdvancedDisk_Impl::Clean(this, core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bforceoem), core::mem::transmute_copy(&bfullclean)) { Ok(ok__) => { @@ -214,19 +157,13 @@ impl IVdsAdvancedDisk_Vtbl { iid == &::IID } } -pub trait IVdsAdvancedDisk2_Impl: Sized { +pub trait IVdsAdvancedDisk2_Impl: Sized + windows_core::IUnknownImpl { fn ChangePartitionType(&self, ulloffset: u64, bforce: super::super::Foundation::BOOL, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsAdvancedDisk2 {} impl IVdsAdvancedDisk2_Vtbl { - pub const fn new() -> IVdsAdvancedDisk2_Vtbl - where - Identity: IVdsAdvancedDisk2_Impl, - { - unsafe extern "system" fn ChangePartitionType(this: *mut core::ffi::c_void, ulloffset: u64, bforce: super::super::Foundation::BOOL, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk2_Impl, - { + pub const fn new() -> IVdsAdvancedDisk2_Vtbl { + unsafe extern "system" fn ChangePartitionType(this: *mut core::ffi::c_void, ulloffset: u64, bforce: super::super::Foundation::BOOL, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk2_Impl::ChangePartitionType(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(¶)).into() } @@ -236,27 +173,18 @@ impl IVdsAdvancedDisk2_Vtbl { iid == &::IID } } -pub trait IVdsAdvancedDisk3_Impl: Sized { +pub trait IVdsAdvancedDisk3_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, padvdiskprop: *mut VDS_ADVANCEDDISK_PROP) -> windows_core::Result<()>; fn GetUniqueId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsAdvancedDisk3 {} impl IVdsAdvancedDisk3_Vtbl { - pub const fn new() -> IVdsAdvancedDisk3_Vtbl - where - Identity: IVdsAdvancedDisk3_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, padvdiskprop: *mut VDS_ADVANCEDDISK_PROP) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk3_Impl, - { + pub const fn new() -> IVdsAdvancedDisk3_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, padvdiskprop: *mut VDS_ADVANCEDDISK_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk3_Impl::GetProperties(this, core::mem::transmute_copy(&padvdiskprop)).into() } - unsafe extern "system" fn GetUniqueId(this: *mut core::ffi::c_void, ppwszid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IVdsAdvancedDisk3_Impl, - { + unsafe extern "system" fn GetUniqueId(this: *mut core::ffi::c_void, ppwszid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsAdvancedDisk3_Impl::GetUniqueId(this) { Ok(ok__) => { @@ -276,19 +204,13 @@ impl IVdsAdvancedDisk3_Vtbl { iid == &::IID } } -pub trait IVdsAdviseSink_Impl: Sized { +pub trait IVdsAdviseSink_Impl: Sized + windows_core::IUnknownImpl { fn OnNotify(&self, lnumberofnotifications: i32, pnotificationarray: *const VDS_NOTIFICATION) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsAdviseSink {} impl IVdsAdviseSink_Vtbl { - pub const fn new() -> IVdsAdviseSink_Vtbl - where - Identity: IVdsAdviseSink_Impl, - { - unsafe extern "system" fn OnNotify(this: *mut core::ffi::c_void, lnumberofnotifications: i32, pnotificationarray: *const VDS_NOTIFICATION) -> windows_core::HRESULT - where - Identity: IVdsAdviseSink_Impl, - { + pub const fn new() -> IVdsAdviseSink_Vtbl { + unsafe extern "system" fn OnNotify(this: *mut core::ffi::c_void, lnumberofnotifications: i32, pnotificationarray: *const VDS_NOTIFICATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdviseSink_Impl::OnNotify(this, core::mem::transmute_copy(&lnumberofnotifications), core::mem::transmute_copy(&pnotificationarray)).into() } @@ -298,35 +220,23 @@ impl IVdsAdviseSink_Vtbl { iid == &::IID } } -pub trait IVdsAsync_Impl: Sized { +pub trait IVdsAsync_Impl: Sized + windows_core::IUnknownImpl { fn Cancel(&self) -> windows_core::Result<()>; fn Wait(&self, phrresult: *mut windows_core::HRESULT, pasyncout: *mut VDS_ASYNC_OUTPUT) -> windows_core::Result<()>; fn QueryStatus(&self, phrresult: *mut windows_core::HRESULT, pulpercentcompleted: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsAsync {} impl IVdsAsync_Vtbl { - pub const fn new() -> IVdsAsync_Vtbl - where - Identity: IVdsAsync_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsAsync_Impl, - { + pub const fn new() -> IVdsAsync_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAsync_Impl::Cancel(this).into() } - unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, pasyncout: *mut VDS_ASYNC_OUTPUT) -> windows_core::HRESULT - where - Identity: IVdsAsync_Impl, - { + unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, pasyncout: *mut VDS_ASYNC_OUTPUT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAsync_Impl::Wait(this, core::mem::transmute_copy(&phrresult), core::mem::transmute_copy(&pasyncout)).into() } - unsafe extern "system" fn QueryStatus(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, pulpercentcompleted: *mut u32) -> windows_core::HRESULT - where - Identity: IVdsAsync_Impl, - { + unsafe extern "system" fn QueryStatus(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, pulpercentcompleted: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAsync_Impl::QueryStatus(this, core::mem::transmute_copy(&phrresult), core::mem::transmute_copy(&pulpercentcompleted)).into() } @@ -341,7 +251,7 @@ impl IVdsAsync_Vtbl { iid == &::IID } } -pub trait IVdsController_Impl: Sized { +pub trait IVdsController_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pcontrollerprop: *mut VDS_CONTROLLER_PROP) -> windows_core::Result<()>; fn GetSubSystem(&self) -> windows_core::Result; fn GetPortProperties(&self, sportnumber: i16, pportprop: *mut VDS_PORT_PROP) -> windows_core::Result<()>; @@ -353,21 +263,12 @@ pub trait IVdsController_Impl: Sized { } impl windows_core::RuntimeName for IVdsController {} impl IVdsController_Vtbl { - pub const fn new() -> IVdsController_Vtbl - where - Identity: IVdsController_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pcontrollerprop: *mut VDS_CONTROLLER_PROP) -> windows_core::HRESULT - where - Identity: IVdsController_Impl, - { + pub const fn new() -> IVdsController_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pcontrollerprop: *mut VDS_CONTROLLER_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsController_Impl::GetProperties(this, core::mem::transmute_copy(&pcontrollerprop)).into() } - unsafe extern "system" fn GetSubSystem(this: *mut core::ffi::c_void, ppsubsystem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsController_Impl, - { + unsafe extern "system" fn GetSubSystem(this: *mut core::ffi::c_void, ppsubsystem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsController_Impl::GetSubSystem(this) { Ok(ok__) => { @@ -377,38 +278,23 @@ impl IVdsController_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPortProperties(this: *mut core::ffi::c_void, sportnumber: i16, pportprop: *mut VDS_PORT_PROP) -> windows_core::HRESULT - where - Identity: IVdsController_Impl, - { + unsafe extern "system" fn GetPortProperties(this: *mut core::ffi::c_void, sportnumber: i16, pportprop: *mut VDS_PORT_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsController_Impl::GetPortProperties(this, core::mem::transmute_copy(&sportnumber), core::mem::transmute_copy(&pportprop)).into() } - unsafe extern "system" fn FlushCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsController_Impl, - { + unsafe extern "system" fn FlushCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsController_Impl::FlushCache(this).into() } - unsafe extern "system" fn InvalidateCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsController_Impl, - { + unsafe extern "system" fn InvalidateCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsController_Impl::InvalidateCache(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsController_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsController_Impl::Reset(this).into() } - unsafe extern "system" fn QueryAssociatedLuns(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsController_Impl, - { + unsafe extern "system" fn QueryAssociatedLuns(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsController_Impl::QueryAssociatedLuns(this) { Ok(ok__) => { @@ -418,10 +304,7 @@ impl IVdsController_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_CONTROLLER_STATUS) -> windows_core::HRESULT - where - Identity: IVdsController_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_CONTROLLER_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsController_Impl::SetStatus(this, core::mem::transmute_copy(&status)).into() } @@ -441,19 +324,13 @@ impl IVdsController_Vtbl { iid == &::IID } } -pub trait IVdsControllerControllerPort_Impl: Sized { +pub trait IVdsControllerControllerPort_Impl: Sized + windows_core::IUnknownImpl { fn QueryControllerPorts(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsControllerControllerPort {} impl IVdsControllerControllerPort_Vtbl { - pub const fn new() -> IVdsControllerControllerPort_Vtbl - where - Identity: IVdsControllerControllerPort_Impl, - { - unsafe extern "system" fn QueryControllerPorts(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsControllerControllerPort_Impl, - { + pub const fn new() -> IVdsControllerControllerPort_Vtbl { + unsafe extern "system" fn QueryControllerPorts(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsControllerControllerPort_Impl::QueryControllerPorts(this) { Ok(ok__) => { @@ -469,7 +346,7 @@ impl IVdsControllerControllerPort_Vtbl { iid == &::IID } } -pub trait IVdsControllerPort_Impl: Sized { +pub trait IVdsControllerPort_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pportprop: *mut VDS_PORT_PROP) -> windows_core::Result<()>; fn GetController(&self) -> windows_core::Result; fn QueryAssociatedLuns(&self) -> windows_core::Result; @@ -478,21 +355,12 @@ pub trait IVdsControllerPort_Impl: Sized { } impl windows_core::RuntimeName for IVdsControllerPort {} impl IVdsControllerPort_Vtbl { - pub const fn new() -> IVdsControllerPort_Vtbl - where - Identity: IVdsControllerPort_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pportprop: *mut VDS_PORT_PROP) -> windows_core::HRESULT - where - Identity: IVdsControllerPort_Impl, - { + pub const fn new() -> IVdsControllerPort_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pportprop: *mut VDS_PORT_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsControllerPort_Impl::GetProperties(this, core::mem::transmute_copy(&pportprop)).into() } - unsafe extern "system" fn GetController(this: *mut core::ffi::c_void, ppcontroller: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsControllerPort_Impl, - { + unsafe extern "system" fn GetController(this: *mut core::ffi::c_void, ppcontroller: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsControllerPort_Impl::GetController(this) { Ok(ok__) => { @@ -502,10 +370,7 @@ impl IVdsControllerPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryAssociatedLuns(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsControllerPort_Impl, - { + unsafe extern "system" fn QueryAssociatedLuns(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsControllerPort_Impl::QueryAssociatedLuns(this) { Ok(ok__) => { @@ -515,17 +380,11 @@ impl IVdsControllerPort_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsControllerPort_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsControllerPort_Impl::Reset(this).into() } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_PORT_STATUS) -> windows_core::HRESULT - where - Identity: IVdsControllerPort_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_PORT_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsControllerPort_Impl::SetStatus(this, core::mem::transmute_copy(&status)).into() } @@ -542,19 +401,13 @@ impl IVdsControllerPort_Vtbl { iid == &::IID } } -pub trait IVdsCreatePartitionEx_Impl: Sized { +pub trait IVdsCreatePartitionEx_Impl: Sized + windows_core::IUnknownImpl { fn CreatePartitionEx(&self, ulloffset: u64, ullsize: u64, ulalign: u32, para: *const CREATE_PARTITION_PARAMETERS) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsCreatePartitionEx {} impl IVdsCreatePartitionEx_Vtbl { - pub const fn new() -> IVdsCreatePartitionEx_Vtbl - where - Identity: IVdsCreatePartitionEx_Impl, - { - unsafe extern "system" fn CreatePartitionEx(this: *mut core::ffi::c_void, ulloffset: u64, ullsize: u64, ulalign: u32, para: *const CREATE_PARTITION_PARAMETERS, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsCreatePartitionEx_Impl, - { + pub const fn new() -> IVdsCreatePartitionEx_Vtbl { + unsafe extern "system" fn CreatePartitionEx(this: *mut core::ffi::c_void, ulloffset: u64, ullsize: u64, ulalign: u32, para: *const CREATE_PARTITION_PARAMETERS, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsCreatePartitionEx_Impl::CreatePartitionEx(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&ullsize), core::mem::transmute_copy(&ulalign), core::mem::transmute_copy(¶)) { Ok(ok__) => { @@ -570,7 +423,7 @@ impl IVdsCreatePartitionEx_Vtbl { iid == &::IID } } -pub trait IVdsDisk_Impl: Sized { +pub trait IVdsDisk_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pdiskproperties: *mut VDS_DISK_PROP) -> windows_core::Result<()>; fn GetPack(&self) -> windows_core::Result; fn GetIdentificationData(&self, pluninfo: *mut VDS_LUN_INFORMATION) -> windows_core::Result<()>; @@ -581,21 +434,12 @@ pub trait IVdsDisk_Impl: Sized { } impl windows_core::RuntimeName for IVdsDisk {} impl IVdsDisk_Vtbl { - pub const fn new() -> IVdsDisk_Vtbl - where - Identity: IVdsDisk_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pdiskproperties: *mut VDS_DISK_PROP) -> windows_core::HRESULT - where - Identity: IVdsDisk_Impl, - { + pub const fn new() -> IVdsDisk_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pdiskproperties: *mut VDS_DISK_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDisk_Impl::GetProperties(this, core::mem::transmute_copy(&pdiskproperties)).into() } - unsafe extern "system" fn GetPack(this: *mut core::ffi::c_void, pppack: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsDisk_Impl, - { + unsafe extern "system" fn GetPack(this: *mut core::ffi::c_void, pppack: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsDisk_Impl::GetPack(this) { Ok(ok__) => { @@ -605,38 +449,23 @@ impl IVdsDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIdentificationData(this: *mut core::ffi::c_void, pluninfo: *mut VDS_LUN_INFORMATION) -> windows_core::HRESULT - where - Identity: IVdsDisk_Impl, - { + unsafe extern "system" fn GetIdentificationData(this: *mut core::ffi::c_void, pluninfo: *mut VDS_LUN_INFORMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDisk_Impl::GetIdentificationData(this, core::mem::transmute_copy(&pluninfo)).into() } - unsafe extern "system" fn QueryExtents(this: *mut core::ffi::c_void, ppextentarray: *mut *mut VDS_DISK_EXTENT, plnumberofextents: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsDisk_Impl, - { + unsafe extern "system" fn QueryExtents(this: *mut core::ffi::c_void, ppextentarray: *mut *mut VDS_DISK_EXTENT, plnumberofextents: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDisk_Impl::QueryExtents(this, core::mem::transmute_copy(&ppextentarray), core::mem::transmute_copy(&plnumberofextents)).into() } - unsafe extern "system" fn ConvertStyle(this: *mut core::ffi::c_void, newstyle: VDS_PARTITION_STYLE) -> windows_core::HRESULT - where - Identity: IVdsDisk_Impl, - { + unsafe extern "system" fn ConvertStyle(this: *mut core::ffi::c_void, newstyle: VDS_PARTITION_STYLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDisk_Impl::ConvertStyle(this, core::mem::transmute_copy(&newstyle)).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IVdsDisk_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDisk_Impl::SetFlags(this, core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn ClearFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IVdsDisk_Impl, - { + unsafe extern "system" fn ClearFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDisk_Impl::ClearFlags(this, core::mem::transmute_copy(&ulflags)).into() } @@ -655,19 +484,13 @@ impl IVdsDisk_Vtbl { iid == &::IID } } -pub trait IVdsDisk2_Impl: Sized { +pub trait IVdsDisk2_Impl: Sized + windows_core::IUnknownImpl { fn SetSANMode(&self, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsDisk2 {} impl IVdsDisk2_Vtbl { - pub const fn new() -> IVdsDisk2_Vtbl - where - Identity: IVdsDisk2_Impl, - { - unsafe extern "system" fn SetSANMode(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVdsDisk2_Impl, - { + pub const fn new() -> IVdsDisk2_Vtbl { + unsafe extern "system" fn SetSANMode(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDisk2_Impl::SetSANMode(this, core::mem::transmute_copy(&benable)).into() } @@ -677,27 +500,18 @@ impl IVdsDisk2_Vtbl { iid == &::IID } } -pub trait IVdsDisk3_Impl: Sized { +pub trait IVdsDisk3_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties2(&self, pdiskproperties: *mut VDS_DISK_PROP2) -> windows_core::Result<()>; fn QueryFreeExtents(&self, ulalign: u32, ppfreeextentarray: *mut *mut VDS_DISK_FREE_EXTENT, plnumberoffreeextents: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsDisk3 {} impl IVdsDisk3_Vtbl { - pub const fn new() -> IVdsDisk3_Vtbl - where - Identity: IVdsDisk3_Impl, - { - unsafe extern "system" fn GetProperties2(this: *mut core::ffi::c_void, pdiskproperties: *mut VDS_DISK_PROP2) -> windows_core::HRESULT - where - Identity: IVdsDisk3_Impl, - { + pub const fn new() -> IVdsDisk3_Vtbl { + unsafe extern "system" fn GetProperties2(this: *mut core::ffi::c_void, pdiskproperties: *mut VDS_DISK_PROP2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDisk3_Impl::GetProperties2(this, core::mem::transmute_copy(&pdiskproperties)).into() } - unsafe extern "system" fn QueryFreeExtents(this: *mut core::ffi::c_void, ulalign: u32, ppfreeextentarray: *mut *mut VDS_DISK_FREE_EXTENT, plnumberoffreeextents: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsDisk3_Impl, - { + unsafe extern "system" fn QueryFreeExtents(this: *mut core::ffi::c_void, ulalign: u32, ppfreeextentarray: *mut *mut VDS_DISK_FREE_EXTENT, plnumberoffreeextents: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDisk3_Impl::QueryFreeExtents(this, core::mem::transmute_copy(&ulalign), core::mem::transmute_copy(&ppfreeextentarray), core::mem::transmute_copy(&plnumberoffreeextents)).into() } @@ -711,27 +525,18 @@ impl IVdsDisk3_Vtbl { iid == &::IID } } -pub trait IVdsDiskOnline_Impl: Sized { +pub trait IVdsDiskOnline_Impl: Sized + windows_core::IUnknownImpl { fn Online(&self) -> windows_core::Result<()>; fn Offline(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsDiskOnline {} impl IVdsDiskOnline_Vtbl { - pub const fn new() -> IVdsDiskOnline_Vtbl - where - Identity: IVdsDiskOnline_Impl, - { - unsafe extern "system" fn Online(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsDiskOnline_Impl, - { + pub const fn new() -> IVdsDiskOnline_Vtbl { + unsafe extern "system" fn Online(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDiskOnline_Impl::Online(this).into() } - unsafe extern "system" fn Offline(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsDiskOnline_Impl, - { + unsafe extern "system" fn Offline(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDiskOnline_Impl::Offline(this).into() } @@ -741,7 +546,7 @@ impl IVdsDiskOnline_Vtbl { iid == &::IID } } -pub trait IVdsDiskPartitionMF_Impl: Sized { +pub trait IVdsDiskPartitionMF_Impl: Sized + windows_core::IUnknownImpl { fn GetPartitionFileSystemProperties(&self, ulloffset: u64, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> windows_core::Result<()>; fn GetPartitionFileSystemTypeName(&self, ulloffset: u64) -> windows_core::Result; fn QueryPartitionFileSystemFormatSupport(&self, ulloffset: u64, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> windows_core::Result<()>; @@ -749,21 +554,12 @@ pub trait IVdsDiskPartitionMF_Impl: Sized { } impl windows_core::RuntimeName for IVdsDiskPartitionMF {} impl IVdsDiskPartitionMF_Vtbl { - pub const fn new() -> IVdsDiskPartitionMF_Vtbl - where - Identity: IVdsDiskPartitionMF_Impl, - { - unsafe extern "system" fn GetPartitionFileSystemProperties(this: *mut core::ffi::c_void, ulloffset: u64, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> windows_core::HRESULT - where - Identity: IVdsDiskPartitionMF_Impl, - { + pub const fn new() -> IVdsDiskPartitionMF_Vtbl { + unsafe extern "system" fn GetPartitionFileSystemProperties(this: *mut core::ffi::c_void, ulloffset: u64, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDiskPartitionMF_Impl::GetPartitionFileSystemProperties(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&pfilesystemprop)).into() } - unsafe extern "system" fn GetPartitionFileSystemTypeName(this: *mut core::ffi::c_void, ulloffset: u64, ppwszfilesystemtypename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IVdsDiskPartitionMF_Impl, - { + unsafe extern "system" fn GetPartitionFileSystemTypeName(this: *mut core::ffi::c_void, ulloffset: u64, ppwszfilesystemtypename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsDiskPartitionMF_Impl::GetPartitionFileSystemTypeName(this, core::mem::transmute_copy(&ulloffset)) { Ok(ok__) => { @@ -773,17 +569,11 @@ impl IVdsDiskPartitionMF_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryPartitionFileSystemFormatSupport(this: *mut core::ffi::c_void, ulloffset: u64, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsDiskPartitionMF_Impl, - { + unsafe extern "system" fn QueryPartitionFileSystemFormatSupport(this: *mut core::ffi::c_void, ulloffset: u64, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDiskPartitionMF_Impl::QueryPartitionFileSystemFormatSupport(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&ppfilesystemsupportprops), core::mem::transmute_copy(&plnumberoffilesystems)).into() } - unsafe extern "system" fn FormatPartitionEx(this: *mut core::ffi::c_void, ulloffset: u64, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsDiskPartitionMF_Impl, - { + unsafe extern "system" fn FormatPartitionEx(this: *mut core::ffi::c_void, ulloffset: u64, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsDiskPartitionMF_Impl::FormatPartitionEx(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute(&pwszfilesystemtypename), core::mem::transmute_copy(&usfilesystemrevision), core::mem::transmute_copy(&uldesiredunitallocationsize), core::mem::transmute(&pwszlabel), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bquickformat), core::mem::transmute_copy(&benablecompression)) { Ok(ok__) => { @@ -805,19 +595,13 @@ impl IVdsDiskPartitionMF_Vtbl { iid == &::IID } } -pub trait IVdsDiskPartitionMF2_Impl: Sized { +pub trait IVdsDiskPartitionMF2_Impl: Sized + windows_core::IUnknownImpl { fn FormatPartitionEx2(&self, ulloffset: u64, pwszfilesystemtypename: &windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: &windows_core::PCWSTR, options: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsDiskPartitionMF2 {} impl IVdsDiskPartitionMF2_Vtbl { - pub const fn new() -> IVdsDiskPartitionMF2_Vtbl - where - Identity: IVdsDiskPartitionMF2_Impl, - { - unsafe extern "system" fn FormatPartitionEx2(this: *mut core::ffi::c_void, ulloffset: u64, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, options: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsDiskPartitionMF2_Impl, - { + pub const fn new() -> IVdsDiskPartitionMF2_Vtbl { + unsafe extern "system" fn FormatPartitionEx2(this: *mut core::ffi::c_void, ulloffset: u64, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, options: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsDiskPartitionMF2_Impl::FormatPartitionEx2(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute(&pwszfilesystemtypename), core::mem::transmute_copy(&usfilesystemrevision), core::mem::transmute_copy(&uldesiredunitallocationsize), core::mem::transmute(&pwszlabel), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -833,7 +617,7 @@ impl IVdsDiskPartitionMF2_Vtbl { iid == &::IID } } -pub trait IVdsDrive_Impl: Sized { +pub trait IVdsDrive_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pdriveprop: *mut VDS_DRIVE_PROP) -> windows_core::Result<()>; fn GetSubSystem(&self) -> windows_core::Result; fn QueryExtents(&self, ppextentarray: *mut *mut VDS_DRIVE_EXTENT, plnumberofextents: *mut i32) -> windows_core::Result<()>; @@ -843,21 +627,12 @@ pub trait IVdsDrive_Impl: Sized { } impl windows_core::RuntimeName for IVdsDrive {} impl IVdsDrive_Vtbl { - pub const fn new() -> IVdsDrive_Vtbl - where - Identity: IVdsDrive_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pdriveprop: *mut VDS_DRIVE_PROP) -> windows_core::HRESULT - where - Identity: IVdsDrive_Impl, - { + pub const fn new() -> IVdsDrive_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pdriveprop: *mut VDS_DRIVE_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDrive_Impl::GetProperties(this, core::mem::transmute_copy(&pdriveprop)).into() } - unsafe extern "system" fn GetSubSystem(this: *mut core::ffi::c_void, ppsubsystem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsDrive_Impl, - { + unsafe extern "system" fn GetSubSystem(this: *mut core::ffi::c_void, ppsubsystem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsDrive_Impl::GetSubSystem(this) { Ok(ok__) => { @@ -867,31 +642,19 @@ impl IVdsDrive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryExtents(this: *mut core::ffi::c_void, ppextentarray: *mut *mut VDS_DRIVE_EXTENT, plnumberofextents: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsDrive_Impl, - { + unsafe extern "system" fn QueryExtents(this: *mut core::ffi::c_void, ppextentarray: *mut *mut VDS_DRIVE_EXTENT, plnumberofextents: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDrive_Impl::QueryExtents(this, core::mem::transmute_copy(&ppextentarray), core::mem::transmute_copy(&plnumberofextents)).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IVdsDrive_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDrive_Impl::SetFlags(this, core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn ClearFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IVdsDrive_Impl, - { + unsafe extern "system" fn ClearFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDrive_Impl::ClearFlags(this, core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_DRIVE_STATUS) -> windows_core::HRESULT - where - Identity: IVdsDrive_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_DRIVE_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDrive_Impl::SetStatus(this, core::mem::transmute_copy(&status)).into() } @@ -909,19 +672,13 @@ impl IVdsDrive_Vtbl { iid == &::IID } } -pub trait IVdsDrive2_Impl: Sized { +pub trait IVdsDrive2_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties2(&self, pdriveprop2: *mut VDS_DRIVE_PROP2) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsDrive2 {} impl IVdsDrive2_Vtbl { - pub const fn new() -> IVdsDrive2_Vtbl - where - Identity: IVdsDrive2_Impl, - { - unsafe extern "system" fn GetProperties2(this: *mut core::ffi::c_void, pdriveprop2: *mut VDS_DRIVE_PROP2) -> windows_core::HRESULT - where - Identity: IVdsDrive2_Impl, - { + pub const fn new() -> IVdsDrive2_Vtbl { + unsafe extern "system" fn GetProperties2(this: *mut core::ffi::c_void, pdriveprop2: *mut VDS_DRIVE_PROP2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDrive2_Impl::GetProperties2(this, core::mem::transmute_copy(&pdriveprop2)).into() } @@ -931,27 +688,18 @@ impl IVdsDrive2_Vtbl { iid == &::IID } } -pub trait IVdsHbaPort_Impl: Sized { +pub trait IVdsHbaPort_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, phbaportprop: *mut VDS_HBAPORT_PROP) -> windows_core::Result<()>; fn SetAllPathStatuses(&self, status: VDS_PATH_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsHbaPort {} impl IVdsHbaPort_Vtbl { - pub const fn new() -> IVdsHbaPort_Vtbl - where - Identity: IVdsHbaPort_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, phbaportprop: *mut VDS_HBAPORT_PROP) -> windows_core::HRESULT - where - Identity: IVdsHbaPort_Impl, - { + pub const fn new() -> IVdsHbaPort_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, phbaportprop: *mut VDS_HBAPORT_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsHbaPort_Impl::GetProperties(this, core::mem::transmute_copy(&phbaportprop)).into() } - unsafe extern "system" fn SetAllPathStatuses(this: *mut core::ffi::c_void, status: VDS_PATH_STATUS) -> windows_core::HRESULT - where - Identity: IVdsHbaPort_Impl, - { + unsafe extern "system" fn SetAllPathStatuses(this: *mut core::ffi::c_void, status: VDS_PATH_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsHbaPort_Impl::SetAllPathStatuses(this, core::mem::transmute_copy(&status)).into() } @@ -965,21 +713,15 @@ impl IVdsHbaPort_Vtbl { iid == &::IID } } -pub trait IVdsHwProvider_Impl: Sized { +pub trait IVdsHwProvider_Impl: Sized + windows_core::IUnknownImpl { fn QuerySubSystems(&self) -> windows_core::Result; fn Reenumerate(&self) -> windows_core::Result<()>; fn Refresh(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsHwProvider {} impl IVdsHwProvider_Vtbl { - pub const fn new() -> IVdsHwProvider_Vtbl - where - Identity: IVdsHwProvider_Impl, - { - unsafe extern "system" fn QuerySubSystems(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsHwProvider_Impl, - { + pub const fn new() -> IVdsHwProvider_Vtbl { + unsafe extern "system" fn QuerySubSystems(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsHwProvider_Impl::QuerySubSystems(this) { Ok(ok__) => { @@ -989,17 +731,11 @@ impl IVdsHwProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reenumerate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsHwProvider_Impl, - { + unsafe extern "system" fn Reenumerate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsHwProvider_Impl::Reenumerate(this).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsHwProvider_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsHwProvider_Impl::Refresh(this).into() } @@ -1014,19 +750,13 @@ impl IVdsHwProvider_Vtbl { iid == &::IID } } -pub trait IVdsHwProviderPrivate_Impl: Sized { +pub trait IVdsHwProviderPrivate_Impl: Sized + windows_core::IUnknownImpl { fn QueryIfCreatedLun(&self, pwszdevicepath: &windows_core::PCWSTR, pvdsluninformation: *const VDS_LUN_INFORMATION) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsHwProviderPrivate {} impl IVdsHwProviderPrivate_Vtbl { - pub const fn new() -> IVdsHwProviderPrivate_Vtbl - where - Identity: IVdsHwProviderPrivate_Impl, - { - unsafe extern "system" fn QueryIfCreatedLun(this: *mut core::ffi::c_void, pwszdevicepath: windows_core::PCWSTR, pvdsluninformation: *const VDS_LUN_INFORMATION, plunid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVdsHwProviderPrivate_Impl, - { + pub const fn new() -> IVdsHwProviderPrivate_Vtbl { + unsafe extern "system" fn QueryIfCreatedLun(this: *mut core::ffi::c_void, pwszdevicepath: windows_core::PCWSTR, pvdsluninformation: *const VDS_LUN_INFORMATION, plunid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsHwProviderPrivate_Impl::QueryIfCreatedLun(this, core::mem::transmute(&pwszdevicepath), core::mem::transmute_copy(&pvdsluninformation)) { Ok(ok__) => { @@ -1042,19 +772,13 @@ impl IVdsHwProviderPrivate_Vtbl { iid == &::IID } } -pub trait IVdsHwProviderPrivateMpio_Impl: Sized { +pub trait IVdsHwProviderPrivateMpio_Impl: Sized + windows_core::IUnknownImpl { fn SetAllPathStatusesFromHbaPort(&self, hbaportprop: &VDS_HBAPORT_PROP, status: VDS_PATH_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsHwProviderPrivateMpio {} impl IVdsHwProviderPrivateMpio_Vtbl { - pub const fn new() -> IVdsHwProviderPrivateMpio_Vtbl - where - Identity: IVdsHwProviderPrivateMpio_Impl, - { - unsafe extern "system" fn SetAllPathStatusesFromHbaPort(this: *mut core::ffi::c_void, hbaportprop: VDS_HBAPORT_PROP, status: VDS_PATH_STATUS) -> windows_core::HRESULT - where - Identity: IVdsHwProviderPrivateMpio_Impl, - { + pub const fn new() -> IVdsHwProviderPrivateMpio_Vtbl { + unsafe extern "system" fn SetAllPathStatusesFromHbaPort(this: *mut core::ffi::c_void, hbaportprop: VDS_HBAPORT_PROP, status: VDS_PATH_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsHwProviderPrivateMpio_Impl::SetAllPathStatusesFromHbaPort(this, core::mem::transmute(&hbaportprop), core::mem::transmute_copy(&status)).into() } @@ -1064,21 +788,15 @@ impl IVdsHwProviderPrivateMpio_Vtbl { iid == &::IID } } -pub trait IVdsHwProviderStoragePools_Impl: Sized { +pub trait IVdsHwProviderStoragePools_Impl: Sized + windows_core::IUnknownImpl { fn QueryStoragePools(&self, ulflags: u32, ullremainingfreespace: u64, ppoolattributes: *const VDS_POOL_ATTRIBUTES) -> windows_core::Result; fn CreateLunInStoragePool(&self, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, storagepoolid: &windows_core::GUID, pwszunmaskinglist: &windows_core::PCWSTR, phints2: *const VDS_HINTS2) -> windows_core::Result; fn QueryMaxLunCreateSizeInStoragePool(&self, r#type: VDS_LUN_TYPE, storagepoolid: &windows_core::GUID, phints2: *const VDS_HINTS2) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsHwProviderStoragePools {} impl IVdsHwProviderStoragePools_Vtbl { - pub const fn new() -> IVdsHwProviderStoragePools_Vtbl - where - Identity: IVdsHwProviderStoragePools_Impl, - { - unsafe extern "system" fn QueryStoragePools(this: *mut core::ffi::c_void, ulflags: u32, ullremainingfreespace: u64, ppoolattributes: *const VDS_POOL_ATTRIBUTES, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsHwProviderStoragePools_Impl, - { + pub const fn new() -> IVdsHwProviderStoragePools_Vtbl { + unsafe extern "system" fn QueryStoragePools(this: *mut core::ffi::c_void, ulflags: u32, ullremainingfreespace: u64, ppoolattributes: *const VDS_POOL_ATTRIBUTES, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsHwProviderStoragePools_Impl::QueryStoragePools(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&ullremainingfreespace), core::mem::transmute_copy(&ppoolattributes)) { Ok(ok__) => { @@ -1088,10 +806,7 @@ impl IVdsHwProviderStoragePools_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLunInStoragePool(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, storagepoolid: windows_core::GUID, pwszunmaskinglist: windows_core::PCWSTR, phints2: *const VDS_HINTS2, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsHwProviderStoragePools_Impl, - { + unsafe extern "system" fn CreateLunInStoragePool(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, storagepoolid: windows_core::GUID, pwszunmaskinglist: windows_core::PCWSTR, phints2: *const VDS_HINTS2, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsHwProviderStoragePools_Impl::CreateLunInStoragePool(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&ullsizeinbytes), core::mem::transmute(&storagepoolid), core::mem::transmute(&pwszunmaskinglist), core::mem::transmute_copy(&phints2)) { Ok(ok__) => { @@ -1101,10 +816,7 @@ impl IVdsHwProviderStoragePools_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryMaxLunCreateSizeInStoragePool(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, storagepoolid: windows_core::GUID, phints2: *const VDS_HINTS2, pullmaxlunsize: *mut u64) -> windows_core::HRESULT - where - Identity: IVdsHwProviderStoragePools_Impl, - { + unsafe extern "system" fn QueryMaxLunCreateSizeInStoragePool(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, storagepoolid: windows_core::GUID, phints2: *const VDS_HINTS2, pullmaxlunsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsHwProviderStoragePools_Impl::QueryMaxLunCreateSizeInStoragePool(this, core::mem::transmute_copy(&r#type), core::mem::transmute(&storagepoolid), core::mem::transmute_copy(&phints2)) { Ok(ok__) => { @@ -1125,19 +837,13 @@ impl IVdsHwProviderStoragePools_Vtbl { iid == &::IID } } -pub trait IVdsHwProviderType_Impl: Sized { +pub trait IVdsHwProviderType_Impl: Sized + windows_core::IUnknownImpl { fn GetProviderType(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsHwProviderType {} impl IVdsHwProviderType_Vtbl { - pub const fn new() -> IVdsHwProviderType_Vtbl - where - Identity: IVdsHwProviderType_Impl, - { - unsafe extern "system" fn GetProviderType(this: *mut core::ffi::c_void, ptype: *mut VDS_HWPROVIDER_TYPE) -> windows_core::HRESULT - where - Identity: IVdsHwProviderType_Impl, - { + pub const fn new() -> IVdsHwProviderType_Vtbl { + unsafe extern "system" fn GetProviderType(this: *mut core::ffi::c_void, ptype: *mut VDS_HWPROVIDER_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsHwProviderType_Impl::GetProviderType(this) { Ok(ok__) => { @@ -1153,19 +859,13 @@ impl IVdsHwProviderType_Vtbl { iid == &::IID } } -pub trait IVdsHwProviderType2_Impl: Sized { +pub trait IVdsHwProviderType2_Impl: Sized + windows_core::IUnknownImpl { fn GetProviderType2(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsHwProviderType2 {} impl IVdsHwProviderType2_Vtbl { - pub const fn new() -> IVdsHwProviderType2_Vtbl - where - Identity: IVdsHwProviderType2_Impl, - { - unsafe extern "system" fn GetProviderType2(this: *mut core::ffi::c_void, ptype: *mut VDS_HWPROVIDER_TYPE) -> windows_core::HRESULT - where - Identity: IVdsHwProviderType2_Impl, - { + pub const fn new() -> IVdsHwProviderType2_Vtbl { + unsafe extern "system" fn GetProviderType2(this: *mut core::ffi::c_void, ptype: *mut VDS_HWPROVIDER_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsHwProviderType2_Impl::GetProviderType2(this) { Ok(ok__) => { @@ -1181,7 +881,7 @@ impl IVdsHwProviderType2_Vtbl { iid == &::IID } } -pub trait IVdsIscsiInitiatorAdapter_Impl: Sized { +pub trait IVdsIscsiInitiatorAdapter_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pinitiatoradapterprop: *mut VDS_ISCSI_INITIATOR_ADAPTER_PROP) -> windows_core::Result<()>; fn QueryInitiatorPortals(&self) -> windows_core::Result; fn LoginToTarget(&self, logintype: VDS_ISCSI_LOGIN_TYPE, targetid: &windows_core::GUID, targetportalid: &windows_core::GUID, initiatorportalid: &windows_core::GUID, ulloginflags: u32, bheaderdigest: super::super::Foundation::BOOL, bdatadigest: super::super::Foundation::BOOL, authtype: VDS_ISCSI_AUTH_TYPE) -> windows_core::Result; @@ -1189,21 +889,12 @@ pub trait IVdsIscsiInitiatorAdapter_Impl: Sized { } impl windows_core::RuntimeName for IVdsIscsiInitiatorAdapter {} impl IVdsIscsiInitiatorAdapter_Vtbl { - pub const fn new() -> IVdsIscsiInitiatorAdapter_Vtbl - where - Identity: IVdsIscsiInitiatorAdapter_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pinitiatoradapterprop: *mut VDS_ISCSI_INITIATOR_ADAPTER_PROP) -> windows_core::HRESULT - where - Identity: IVdsIscsiInitiatorAdapter_Impl, - { + pub const fn new() -> IVdsIscsiInitiatorAdapter_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pinitiatoradapterprop: *mut VDS_ISCSI_INITIATOR_ADAPTER_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiInitiatorAdapter_Impl::GetProperties(this, core::mem::transmute_copy(&pinitiatoradapterprop)).into() } - unsafe extern "system" fn QueryInitiatorPortals(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiInitiatorAdapter_Impl, - { + unsafe extern "system" fn QueryInitiatorPortals(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiInitiatorAdapter_Impl::QueryInitiatorPortals(this) { Ok(ok__) => { @@ -1213,10 +904,7 @@ impl IVdsIscsiInitiatorAdapter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoginToTarget(this: *mut core::ffi::c_void, logintype: VDS_ISCSI_LOGIN_TYPE, targetid: windows_core::GUID, targetportalid: windows_core::GUID, initiatorportalid: windows_core::GUID, ulloginflags: u32, bheaderdigest: super::super::Foundation::BOOL, bdatadigest: super::super::Foundation::BOOL, authtype: VDS_ISCSI_AUTH_TYPE, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiInitiatorAdapter_Impl, - { + unsafe extern "system" fn LoginToTarget(this: *mut core::ffi::c_void, logintype: VDS_ISCSI_LOGIN_TYPE, targetid: windows_core::GUID, targetportalid: windows_core::GUID, initiatorportalid: windows_core::GUID, ulloginflags: u32, bheaderdigest: super::super::Foundation::BOOL, bdatadigest: super::super::Foundation::BOOL, authtype: VDS_ISCSI_AUTH_TYPE, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiInitiatorAdapter_Impl::LoginToTarget(this, core::mem::transmute_copy(&logintype), core::mem::transmute(&targetid), core::mem::transmute(&targetportalid), core::mem::transmute(&initiatorportalid), core::mem::transmute_copy(&ulloginflags), core::mem::transmute_copy(&bheaderdigest), core::mem::transmute_copy(&bdatadigest), core::mem::transmute_copy(&authtype)) { Ok(ok__) => { @@ -1226,10 +914,7 @@ impl IVdsIscsiInitiatorAdapter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LogoutFromTarget(this: *mut core::ffi::c_void, targetid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiInitiatorAdapter_Impl, - { + unsafe extern "system" fn LogoutFromTarget(this: *mut core::ffi::c_void, targetid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiInitiatorAdapter_Impl::LogoutFromTarget(this, core::mem::transmute(&targetid)) { Ok(ok__) => { @@ -1251,7 +936,7 @@ impl IVdsIscsiInitiatorAdapter_Vtbl { iid == &::IID } } -pub trait IVdsIscsiInitiatorPortal_Impl: Sized { +pub trait IVdsIscsiInitiatorPortal_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pinitiatorportalprop: *mut VDS_ISCSI_INITIATOR_PORTAL_PROP) -> windows_core::Result<()>; fn GetInitiatorAdapter(&self) -> windows_core::Result; fn SetIpsecTunnelAddress(&self, ptunneladdress: *const VDS_IPADDRESS, pdestinationaddress: *const VDS_IPADDRESS) -> windows_core::Result<()>; @@ -1260,21 +945,12 @@ pub trait IVdsIscsiInitiatorPortal_Impl: Sized { } impl windows_core::RuntimeName for IVdsIscsiInitiatorPortal {} impl IVdsIscsiInitiatorPortal_Vtbl { - pub const fn new() -> IVdsIscsiInitiatorPortal_Vtbl - where - Identity: IVdsIscsiInitiatorPortal_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pinitiatorportalprop: *mut VDS_ISCSI_INITIATOR_PORTAL_PROP) -> windows_core::HRESULT - where - Identity: IVdsIscsiInitiatorPortal_Impl, - { + pub const fn new() -> IVdsIscsiInitiatorPortal_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pinitiatorportalprop: *mut VDS_ISCSI_INITIATOR_PORTAL_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiInitiatorPortal_Impl::GetProperties(this, core::mem::transmute_copy(&pinitiatorportalprop)).into() } - unsafe extern "system" fn GetInitiatorAdapter(this: *mut core::ffi::c_void, ppinitiatoradapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiInitiatorPortal_Impl, - { + unsafe extern "system" fn GetInitiatorAdapter(this: *mut core::ffi::c_void, ppinitiatoradapter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiInitiatorPortal_Impl::GetInitiatorAdapter(this) { Ok(ok__) => { @@ -1284,17 +960,11 @@ impl IVdsIscsiInitiatorPortal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIpsecTunnelAddress(this: *mut core::ffi::c_void, ptunneladdress: *const VDS_IPADDRESS, pdestinationaddress: *const VDS_IPADDRESS) -> windows_core::HRESULT - where - Identity: IVdsIscsiInitiatorPortal_Impl, - { + unsafe extern "system" fn SetIpsecTunnelAddress(this: *mut core::ffi::c_void, ptunneladdress: *const VDS_IPADDRESS, pdestinationaddress: *const VDS_IPADDRESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiInitiatorPortal_Impl::SetIpsecTunnelAddress(this, core::mem::transmute_copy(&ptunneladdress), core::mem::transmute_copy(&pdestinationaddress)).into() } - unsafe extern "system" fn GetIpsecSecurity(this: *mut core::ffi::c_void, targetportalid: windows_core::GUID, pullsecurityflags: *mut u64) -> windows_core::HRESULT - where - Identity: IVdsIscsiInitiatorPortal_Impl, - { + unsafe extern "system" fn GetIpsecSecurity(this: *mut core::ffi::c_void, targetportalid: windows_core::GUID, pullsecurityflags: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiInitiatorPortal_Impl::GetIpsecSecurity(this, core::mem::transmute(&targetportalid)) { Ok(ok__) => { @@ -1304,10 +974,7 @@ impl IVdsIscsiInitiatorPortal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIpsecSecurity(this: *mut core::ffi::c_void, targetportalid: windows_core::GUID, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT - where - Identity: IVdsIscsiInitiatorPortal_Impl, - { + unsafe extern "system" fn SetIpsecSecurity(this: *mut core::ffi::c_void, targetportalid: windows_core::GUID, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiInitiatorPortal_Impl::SetIpsecSecurity(this, core::mem::transmute(&targetportalid), core::mem::transmute_copy(&ullsecurityflags), core::mem::transmute_copy(&pipseckey)).into() } @@ -1324,7 +991,7 @@ impl IVdsIscsiInitiatorPortal_Vtbl { iid == &::IID } } -pub trait IVdsIscsiPortal_Impl: Sized { +pub trait IVdsIscsiPortal_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pportalprop: *mut VDS_ISCSI_PORTAL_PROP) -> windows_core::Result<()>; fn GetSubSystem(&self) -> windows_core::Result; fn QueryAssociatedPortalGroups(&self) -> windows_core::Result; @@ -1335,21 +1002,12 @@ pub trait IVdsIscsiPortal_Impl: Sized { } impl windows_core::RuntimeName for IVdsIscsiPortal {} impl IVdsIscsiPortal_Vtbl { - pub const fn new() -> IVdsIscsiPortal_Vtbl - where - Identity: IVdsIscsiPortal_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pportalprop: *mut VDS_ISCSI_PORTAL_PROP) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortal_Impl, - { + pub const fn new() -> IVdsIscsiPortal_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pportalprop: *mut VDS_ISCSI_PORTAL_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiPortal_Impl::GetProperties(this, core::mem::transmute_copy(&pportalprop)).into() } - unsafe extern "system" fn GetSubSystem(this: *mut core::ffi::c_void, ppsubsystem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortal_Impl, - { + unsafe extern "system" fn GetSubSystem(this: *mut core::ffi::c_void, ppsubsystem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiPortal_Impl::GetSubSystem(this) { Ok(ok__) => { @@ -1359,10 +1017,7 @@ impl IVdsIscsiPortal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryAssociatedPortalGroups(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortal_Impl, - { + unsafe extern "system" fn QueryAssociatedPortalGroups(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiPortal_Impl::QueryAssociatedPortalGroups(this) { Ok(ok__) => { @@ -1372,24 +1027,15 @@ impl IVdsIscsiPortal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_ISCSI_PORTAL_STATUS) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortal_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_ISCSI_PORTAL_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiPortal_Impl::SetStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn SetIpsecTunnelAddress(this: *mut core::ffi::c_void, ptunneladdress: *const VDS_IPADDRESS, pdestinationaddress: *const VDS_IPADDRESS) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortal_Impl, - { + unsafe extern "system" fn SetIpsecTunnelAddress(this: *mut core::ffi::c_void, ptunneladdress: *const VDS_IPADDRESS, pdestinationaddress: *const VDS_IPADDRESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiPortal_Impl::SetIpsecTunnelAddress(this, core::mem::transmute_copy(&ptunneladdress), core::mem::transmute_copy(&pdestinationaddress)).into() } - unsafe extern "system" fn GetIpsecSecurity(this: *mut core::ffi::c_void, pinitiatorportaladdress: *const VDS_IPADDRESS, pullsecurityflags: *mut u64) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortal_Impl, - { + unsafe extern "system" fn GetIpsecSecurity(this: *mut core::ffi::c_void, pinitiatorportaladdress: *const VDS_IPADDRESS, pullsecurityflags: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiPortal_Impl::GetIpsecSecurity(this, core::mem::transmute_copy(&pinitiatorportaladdress)) { Ok(ok__) => { @@ -1399,10 +1045,7 @@ impl IVdsIscsiPortal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIpsecSecurity(this: *mut core::ffi::c_void, pinitiatorportaladdress: *const VDS_IPADDRESS, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortal_Impl, - { + unsafe extern "system" fn SetIpsecSecurity(this: *mut core::ffi::c_void, pinitiatorportaladdress: *const VDS_IPADDRESS, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiPortal_Impl::SetIpsecSecurity(this, core::mem::transmute_copy(&pinitiatorportaladdress), core::mem::transmute_copy(&ullsecurityflags), core::mem::transmute_copy(&pipseckey)).into() } @@ -1421,7 +1064,7 @@ impl IVdsIscsiPortal_Vtbl { iid == &::IID } } -pub trait IVdsIscsiPortalGroup_Impl: Sized { +pub trait IVdsIscsiPortalGroup_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pportalgroupprop: *mut VDS_ISCSI_PORTALGROUP_PROP) -> windows_core::Result<()>; fn GetTarget(&self) -> windows_core::Result; fn QueryAssociatedPortals(&self) -> windows_core::Result; @@ -1431,21 +1074,12 @@ pub trait IVdsIscsiPortalGroup_Impl: Sized { } impl windows_core::RuntimeName for IVdsIscsiPortalGroup {} impl IVdsIscsiPortalGroup_Vtbl { - pub const fn new() -> IVdsIscsiPortalGroup_Vtbl - where - Identity: IVdsIscsiPortalGroup_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pportalgroupprop: *mut VDS_ISCSI_PORTALGROUP_PROP) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortalGroup_Impl, - { + pub const fn new() -> IVdsIscsiPortalGroup_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pportalgroupprop: *mut VDS_ISCSI_PORTALGROUP_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiPortalGroup_Impl::GetProperties(this, core::mem::transmute_copy(&pportalgroupprop)).into() } - unsafe extern "system" fn GetTarget(this: *mut core::ffi::c_void, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortalGroup_Impl, - { + unsafe extern "system" fn GetTarget(this: *mut core::ffi::c_void, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiPortalGroup_Impl::GetTarget(this) { Ok(ok__) => { @@ -1455,10 +1089,7 @@ impl IVdsIscsiPortalGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryAssociatedPortals(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortalGroup_Impl, - { + unsafe extern "system" fn QueryAssociatedPortals(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiPortalGroup_Impl::QueryAssociatedPortals(this) { Ok(ok__) => { @@ -1468,10 +1099,7 @@ impl IVdsIscsiPortalGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPortal(this: *mut core::ffi::c_void, portalid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortalGroup_Impl, - { + unsafe extern "system" fn AddPortal(this: *mut core::ffi::c_void, portalid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiPortalGroup_Impl::AddPortal(this, core::mem::transmute(&portalid)) { Ok(ok__) => { @@ -1481,10 +1109,7 @@ impl IVdsIscsiPortalGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePortal(this: *mut core::ffi::c_void, portalid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortalGroup_Impl, - { + unsafe extern "system" fn RemovePortal(this: *mut core::ffi::c_void, portalid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiPortalGroup_Impl::RemovePortal(this, core::mem::transmute(&portalid)) { Ok(ok__) => { @@ -1494,10 +1119,7 @@ impl IVdsIscsiPortalGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortalGroup_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiPortalGroup_Impl::Delete(this) { Ok(ok__) => { @@ -1521,19 +1143,13 @@ impl IVdsIscsiPortalGroup_Vtbl { iid == &::IID } } -pub trait IVdsIscsiPortalLocal_Impl: Sized { +pub trait IVdsIscsiPortalLocal_Impl: Sized + windows_core::IUnknownImpl { fn SetIpsecSecurityLocal(&self, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsIscsiPortalLocal {} impl IVdsIscsiPortalLocal_Vtbl { - pub const fn new() -> IVdsIscsiPortalLocal_Vtbl - where - Identity: IVdsIscsiPortalLocal_Impl, - { - unsafe extern "system" fn SetIpsecSecurityLocal(this: *mut core::ffi::c_void, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT - where - Identity: IVdsIscsiPortalLocal_Impl, - { + pub const fn new() -> IVdsIscsiPortalLocal_Vtbl { + unsafe extern "system" fn SetIpsecSecurityLocal(this: *mut core::ffi::c_void, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiPortalLocal_Impl::SetIpsecSecurityLocal(this, core::mem::transmute_copy(&ullsecurityflags), core::mem::transmute_copy(&pipseckey)).into() } @@ -1543,7 +1159,7 @@ impl IVdsIscsiPortalLocal_Vtbl { iid == &::IID } } -pub trait IVdsIscsiTarget_Impl: Sized { +pub trait IVdsIscsiTarget_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, ptargetprop: *mut VDS_ISCSI_TARGET_PROP) -> windows_core::Result<()>; fn GetSubSystem(&self) -> windows_core::Result; fn QueryPortalGroups(&self) -> windows_core::Result; @@ -1557,21 +1173,12 @@ pub trait IVdsIscsiTarget_Impl: Sized { } impl windows_core::RuntimeName for IVdsIscsiTarget {} impl IVdsIscsiTarget_Vtbl { - pub const fn new() -> IVdsIscsiTarget_Vtbl - where - Identity: IVdsIscsiTarget_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, ptargetprop: *mut VDS_ISCSI_TARGET_PROP) -> windows_core::HRESULT - where - Identity: IVdsIscsiTarget_Impl, - { + pub const fn new() -> IVdsIscsiTarget_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, ptargetprop: *mut VDS_ISCSI_TARGET_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiTarget_Impl::GetProperties(this, core::mem::transmute_copy(&ptargetprop)).into() } - unsafe extern "system" fn GetSubSystem(this: *mut core::ffi::c_void, ppsubsystem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiTarget_Impl, - { + unsafe extern "system" fn GetSubSystem(this: *mut core::ffi::c_void, ppsubsystem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiTarget_Impl::GetSubSystem(this) { Ok(ok__) => { @@ -1581,10 +1188,7 @@ impl IVdsIscsiTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryPortalGroups(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiTarget_Impl, - { + unsafe extern "system" fn QueryPortalGroups(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiTarget_Impl::QueryPortalGroups(this) { Ok(ok__) => { @@ -1594,10 +1198,7 @@ impl IVdsIscsiTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryAssociatedLuns(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiTarget_Impl, - { + unsafe extern "system" fn QueryAssociatedLuns(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiTarget_Impl::QueryAssociatedLuns(this) { Ok(ok__) => { @@ -1607,10 +1208,7 @@ impl IVdsIscsiTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePortalGroup(this: *mut core::ffi::c_void, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiTarget_Impl, - { + unsafe extern "system" fn CreatePortalGroup(this: *mut core::ffi::c_void, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiTarget_Impl::CreatePortalGroup(this) { Ok(ok__) => { @@ -1620,10 +1218,7 @@ impl IVdsIscsiTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsIscsiTarget_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiTarget_Impl::Delete(this) { Ok(ok__) => { @@ -1633,31 +1228,19 @@ impl IVdsIscsiTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, pwszfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVdsIscsiTarget_Impl, - { + unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, pwszfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiTarget_Impl::SetFriendlyName(this, core::mem::transmute(&pwszfriendlyname)).into() } - unsafe extern "system" fn SetSharedSecret(this: *mut core::ffi::c_void, ptargetsharedsecret: *const VDS_ISCSI_SHARED_SECRET, pwszinitiatorname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVdsIscsiTarget_Impl, - { + unsafe extern "system" fn SetSharedSecret(this: *mut core::ffi::c_void, ptargetsharedsecret: *const VDS_ISCSI_SHARED_SECRET, pwszinitiatorname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiTarget_Impl::SetSharedSecret(this, core::mem::transmute_copy(&ptargetsharedsecret), core::mem::transmute(&pwszinitiatorname)).into() } - unsafe extern "system" fn RememberInitiatorSharedSecret(this: *mut core::ffi::c_void, pwszinitiatorname: windows_core::PCWSTR, pinitiatorsharedsecret: *const VDS_ISCSI_SHARED_SECRET) -> windows_core::HRESULT - where - Identity: IVdsIscsiTarget_Impl, - { + unsafe extern "system" fn RememberInitiatorSharedSecret(this: *mut core::ffi::c_void, pwszinitiatorname: windows_core::PCWSTR, pinitiatorsharedsecret: *const VDS_ISCSI_SHARED_SECRET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiTarget_Impl::RememberInitiatorSharedSecret(this, core::mem::transmute(&pwszinitiatorname), core::mem::transmute_copy(&pinitiatorsharedsecret)).into() } - unsafe extern "system" fn GetConnectedInitiators(this: *mut core::ffi::c_void, pppwszinitiatorlist: *mut *mut windows_core::PWSTR, plnumberofinitiators: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsIscsiTarget_Impl, - { + unsafe extern "system" fn GetConnectedInitiators(this: *mut core::ffi::c_void, pppwszinitiatorlist: *mut *mut windows_core::PWSTR, plnumberofinitiators: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsIscsiTarget_Impl::GetConnectedInitiators(this, core::mem::transmute_copy(&pppwszinitiatorlist), core::mem::transmute_copy(&plnumberofinitiators)).into() } @@ -1679,7 +1262,7 @@ impl IVdsIscsiTarget_Vtbl { iid == &::IID } } -pub trait IVdsLun_Impl: Sized { +pub trait IVdsLun_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, plunprop: *mut VDS_LUN_PROP) -> windows_core::Result<()>; fn GetSubSystem(&self) -> windows_core::Result; fn GetIdentificationData(&self, pluninfo: *mut VDS_LUN_INFORMATION) -> windows_core::Result<()>; @@ -1700,21 +1283,12 @@ pub trait IVdsLun_Impl: Sized { } impl windows_core::RuntimeName for IVdsLun {} impl IVdsLun_Vtbl { - pub const fn new() -> IVdsLun_Vtbl - where - Identity: IVdsLun_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, plunprop: *mut VDS_LUN_PROP) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + pub const fn new() -> IVdsLun_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, plunprop: *mut VDS_LUN_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLun_Impl::GetProperties(this, core::mem::transmute_copy(&plunprop)).into() } - unsafe extern "system" fn GetSubSystem(this: *mut core::ffi::c_void, ppsubsystem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn GetSubSystem(this: *mut core::ffi::c_void, ppsubsystem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLun_Impl::GetSubSystem(this) { Ok(ok__) => { @@ -1724,17 +1298,11 @@ impl IVdsLun_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIdentificationData(this: *mut core::ffi::c_void, pluninfo: *mut VDS_LUN_INFORMATION) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn GetIdentificationData(this: *mut core::ffi::c_void, pluninfo: *mut VDS_LUN_INFORMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLun_Impl::GetIdentificationData(this, core::mem::transmute_copy(&pluninfo)).into() } - unsafe extern "system" fn QueryActiveControllers(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn QueryActiveControllers(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLun_Impl::QueryActiveControllers(this) { Ok(ok__) => { @@ -1744,10 +1312,7 @@ impl IVdsLun_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Extend(this: *mut core::ffi::c_void, ullnumberofbytestoadd: u64, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn Extend(this: *mut core::ffi::c_void, ullnumberofbytestoadd: u64, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLun_Impl::Extend(this, core::mem::transmute_copy(&ullnumberofbytestoadd), core::mem::transmute_copy(&pdriveidarray), core::mem::transmute_copy(&lnumberofdrives)) { Ok(ok__) => { @@ -1757,10 +1322,7 @@ impl IVdsLun_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shrink(this: *mut core::ffi::c_void, ullnumberofbytestoremove: u64, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn Shrink(this: *mut core::ffi::c_void, ullnumberofbytestoremove: u64, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLun_Impl::Shrink(this, core::mem::transmute_copy(&ullnumberofbytestoremove)) { Ok(ok__) => { @@ -1770,10 +1332,7 @@ impl IVdsLun_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryPlexes(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn QueryPlexes(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLun_Impl::QueryPlexes(this) { Ok(ok__) => { @@ -1783,10 +1342,7 @@ impl IVdsLun_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPlex(this: *mut core::ffi::c_void, lunid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn AddPlex(this: *mut core::ffi::c_void, lunid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLun_Impl::AddPlex(this, core::mem::transmute(&lunid)) { Ok(ok__) => { @@ -1796,10 +1352,7 @@ impl IVdsLun_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePlex(this: *mut core::ffi::c_void, plexid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn RemovePlex(this: *mut core::ffi::c_void, plexid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLun_Impl::RemovePlex(this, core::mem::transmute(&plexid)) { Ok(ok__) => { @@ -1809,10 +1362,7 @@ impl IVdsLun_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Recover(this: *mut core::ffi::c_void, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn Recover(this: *mut core::ffi::c_void, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLun_Impl::Recover(this) { Ok(ok__) => { @@ -1822,52 +1372,31 @@ impl IVdsLun_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMask(this: *mut core::ffi::c_void, pwszunmaskinglist: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn SetMask(this: *mut core::ffi::c_void, pwszunmaskinglist: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLun_Impl::SetMask(this, core::mem::transmute(&pwszunmaskinglist)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLun_Impl::Delete(this).into() } - unsafe extern "system" fn AssociateControllers(this: *mut core::ffi::c_void, pactivecontrolleridarray: *const windows_core::GUID, lnumberofactivecontrollers: i32, pinactivecontrolleridarray: *const windows_core::GUID, lnumberofinactivecontrollers: i32) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn AssociateControllers(this: *mut core::ffi::c_void, pactivecontrolleridarray: *const windows_core::GUID, lnumberofactivecontrollers: i32, pinactivecontrolleridarray: *const windows_core::GUID, lnumberofinactivecontrollers: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLun_Impl::AssociateControllers(this, core::mem::transmute_copy(&pactivecontrolleridarray), core::mem::transmute_copy(&lnumberofactivecontrollers), core::mem::transmute_copy(&pinactivecontrolleridarray), core::mem::transmute_copy(&lnumberofinactivecontrollers)).into() } - unsafe extern "system" fn QueryHints(this: *mut core::ffi::c_void, phints: *mut VDS_HINTS) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn QueryHints(this: *mut core::ffi::c_void, phints: *mut VDS_HINTS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLun_Impl::QueryHints(this, core::mem::transmute_copy(&phints)).into() } - unsafe extern "system" fn ApplyHints(this: *mut core::ffi::c_void, phints: *const VDS_HINTS) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn ApplyHints(this: *mut core::ffi::c_void, phints: *const VDS_HINTS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLun_Impl::ApplyHints(this, core::mem::transmute_copy(&phints)).into() } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_LUN_STATUS) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_LUN_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLun_Impl::SetStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn QueryMaxLunExtendSize(this: *mut core::ffi::c_void, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, pullmaxbytestobeadded: *mut u64) -> windows_core::HRESULT - where - Identity: IVdsLun_Impl, - { + unsafe extern "system" fn QueryMaxLunExtendSize(this: *mut core::ffi::c_void, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, pullmaxbytestobeadded: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLun_Impl::QueryMaxLunExtendSize(this, core::mem::transmute_copy(&pdriveidarray), core::mem::transmute_copy(&lnumberofdrives)) { Ok(ok__) => { @@ -1902,27 +1431,18 @@ impl IVdsLun_Vtbl { iid == &::IID } } -pub trait IVdsLun2_Impl: Sized { +pub trait IVdsLun2_Impl: Sized + windows_core::IUnknownImpl { fn QueryHints2(&self, phints2: *mut VDS_HINTS2) -> windows_core::Result<()>; fn ApplyHints2(&self, phints2: *const VDS_HINTS2) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsLun2 {} impl IVdsLun2_Vtbl { - pub const fn new() -> IVdsLun2_Vtbl - where - Identity: IVdsLun2_Impl, - { - unsafe extern "system" fn QueryHints2(this: *mut core::ffi::c_void, phints2: *mut VDS_HINTS2) -> windows_core::HRESULT - where - Identity: IVdsLun2_Impl, - { + pub const fn new() -> IVdsLun2_Vtbl { + unsafe extern "system" fn QueryHints2(this: *mut core::ffi::c_void, phints2: *mut VDS_HINTS2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLun2_Impl::QueryHints2(this, core::mem::transmute_copy(&phints2)).into() } - unsafe extern "system" fn ApplyHints2(this: *mut core::ffi::c_void, phints2: *const VDS_HINTS2) -> windows_core::HRESULT - where - Identity: IVdsLun2_Impl, - { + unsafe extern "system" fn ApplyHints2(this: *mut core::ffi::c_void, phints2: *const VDS_HINTS2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLun2_Impl::ApplyHints2(this, core::mem::transmute_copy(&phints2)).into() } @@ -1936,27 +1456,18 @@ impl IVdsLun2_Vtbl { iid == &::IID } } -pub trait IVdsLunControllerPorts_Impl: Sized { +pub trait IVdsLunControllerPorts_Impl: Sized + windows_core::IUnknownImpl { fn AssociateControllerPorts(&self, pactivecontrollerportidarray: *const windows_core::GUID, lnumberofactivecontrollerports: i32, pinactivecontrollerportidarray: *const windows_core::GUID, lnumberofinactivecontrollerports: i32) -> windows_core::Result<()>; fn QueryActiveControllerPorts(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsLunControllerPorts {} impl IVdsLunControllerPorts_Vtbl { - pub const fn new() -> IVdsLunControllerPorts_Vtbl - where - Identity: IVdsLunControllerPorts_Impl, - { - unsafe extern "system" fn AssociateControllerPorts(this: *mut core::ffi::c_void, pactivecontrollerportidarray: *const windows_core::GUID, lnumberofactivecontrollerports: i32, pinactivecontrollerportidarray: *const windows_core::GUID, lnumberofinactivecontrollerports: i32) -> windows_core::HRESULT - where - Identity: IVdsLunControllerPorts_Impl, - { + pub const fn new() -> IVdsLunControllerPorts_Vtbl { + unsafe extern "system" fn AssociateControllerPorts(this: *mut core::ffi::c_void, pactivecontrollerportidarray: *const windows_core::GUID, lnumberofactivecontrollerports: i32, pinactivecontrollerportidarray: *const windows_core::GUID, lnumberofinactivecontrollerports: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLunControllerPorts_Impl::AssociateControllerPorts(this, core::mem::transmute_copy(&pactivecontrollerportidarray), core::mem::transmute_copy(&lnumberofactivecontrollerports), core::mem::transmute_copy(&pinactivecontrollerportidarray), core::mem::transmute_copy(&lnumberofinactivecontrollerports)).into() } - unsafe extern "system" fn QueryActiveControllerPorts(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLunControllerPorts_Impl, - { + unsafe extern "system" fn QueryActiveControllerPorts(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLunControllerPorts_Impl::QueryActiveControllerPorts(this) { Ok(ok__) => { @@ -1976,27 +1487,18 @@ impl IVdsLunControllerPorts_Vtbl { iid == &::IID } } -pub trait IVdsLunIscsi_Impl: Sized { +pub trait IVdsLunIscsi_Impl: Sized + windows_core::IUnknownImpl { fn AssociateTargets(&self, ptargetidarray: *const windows_core::GUID, lnumberoftargets: i32) -> windows_core::Result<()>; fn QueryAssociatedTargets(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsLunIscsi {} impl IVdsLunIscsi_Vtbl { - pub const fn new() -> IVdsLunIscsi_Vtbl - where - Identity: IVdsLunIscsi_Impl, - { - unsafe extern "system" fn AssociateTargets(this: *mut core::ffi::c_void, ptargetidarray: *const windows_core::GUID, lnumberoftargets: i32) -> windows_core::HRESULT - where - Identity: IVdsLunIscsi_Impl, - { + pub const fn new() -> IVdsLunIscsi_Vtbl { + unsafe extern "system" fn AssociateTargets(this: *mut core::ffi::c_void, ptargetidarray: *const windows_core::GUID, lnumberoftargets: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLunIscsi_Impl::AssociateTargets(this, core::mem::transmute_copy(&ptargetidarray), core::mem::transmute_copy(&lnumberoftargets)).into() } - unsafe extern "system" fn QueryAssociatedTargets(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLunIscsi_Impl, - { + unsafe extern "system" fn QueryAssociatedTargets(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLunIscsi_Impl::QueryAssociatedTargets(this) { Ok(ok__) => { @@ -2016,7 +1518,7 @@ impl IVdsLunIscsi_Vtbl { iid == &::IID } } -pub trait IVdsLunMpio_Impl: Sized { +pub trait IVdsLunMpio_Impl: Sized + windows_core::IUnknownImpl { fn GetPathInfo(&self, pppaths: *mut *mut VDS_PATH_INFO, plnumberofpaths: *mut i32) -> windows_core::Result<()>; fn GetLoadBalancePolicy(&self, ppolicy: *mut VDS_LOADBALANCE_POLICY_ENUM, pppaths: *mut *mut VDS_PATH_POLICY, plnumberofpaths: *mut i32) -> windows_core::Result<()>; fn SetLoadBalancePolicy(&self, policy: VDS_LOADBALANCE_POLICY_ENUM, ppaths: *const VDS_PATH_POLICY, lnumberofpaths: i32) -> windows_core::Result<()>; @@ -2024,35 +1526,20 @@ pub trait IVdsLunMpio_Impl: Sized { } impl windows_core::RuntimeName for IVdsLunMpio {} impl IVdsLunMpio_Vtbl { - pub const fn new() -> IVdsLunMpio_Vtbl - where - Identity: IVdsLunMpio_Impl, - { - unsafe extern "system" fn GetPathInfo(this: *mut core::ffi::c_void, pppaths: *mut *mut VDS_PATH_INFO, plnumberofpaths: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsLunMpio_Impl, - { + pub const fn new() -> IVdsLunMpio_Vtbl { + unsafe extern "system" fn GetPathInfo(this: *mut core::ffi::c_void, pppaths: *mut *mut VDS_PATH_INFO, plnumberofpaths: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLunMpio_Impl::GetPathInfo(this, core::mem::transmute_copy(&pppaths), core::mem::transmute_copy(&plnumberofpaths)).into() } - unsafe extern "system" fn GetLoadBalancePolicy(this: *mut core::ffi::c_void, ppolicy: *mut VDS_LOADBALANCE_POLICY_ENUM, pppaths: *mut *mut VDS_PATH_POLICY, plnumberofpaths: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsLunMpio_Impl, - { + unsafe extern "system" fn GetLoadBalancePolicy(this: *mut core::ffi::c_void, ppolicy: *mut VDS_LOADBALANCE_POLICY_ENUM, pppaths: *mut *mut VDS_PATH_POLICY, plnumberofpaths: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLunMpio_Impl::GetLoadBalancePolicy(this, core::mem::transmute_copy(&ppolicy), core::mem::transmute_copy(&pppaths), core::mem::transmute_copy(&plnumberofpaths)).into() } - unsafe extern "system" fn SetLoadBalancePolicy(this: *mut core::ffi::c_void, policy: VDS_LOADBALANCE_POLICY_ENUM, ppaths: *const VDS_PATH_POLICY, lnumberofpaths: i32) -> windows_core::HRESULT - where - Identity: IVdsLunMpio_Impl, - { + unsafe extern "system" fn SetLoadBalancePolicy(this: *mut core::ffi::c_void, policy: VDS_LOADBALANCE_POLICY_ENUM, ppaths: *const VDS_PATH_POLICY, lnumberofpaths: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLunMpio_Impl::SetLoadBalancePolicy(this, core::mem::transmute_copy(&policy), core::mem::transmute_copy(&ppaths), core::mem::transmute_copy(&lnumberofpaths)).into() } - unsafe extern "system" fn GetSupportedLbPolicies(this: *mut core::ffi::c_void, pullbflags: *mut u32) -> windows_core::HRESULT - where - Identity: IVdsLunMpio_Impl, - { + unsafe extern "system" fn GetSupportedLbPolicies(this: *mut core::ffi::c_void, pullbflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLunMpio_Impl::GetSupportedLbPolicies(this) { Ok(ok__) => { @@ -2074,19 +1561,13 @@ impl IVdsLunMpio_Vtbl { iid == &::IID } } -pub trait IVdsLunNaming_Impl: Sized { +pub trait IVdsLunNaming_Impl: Sized + windows_core::IUnknownImpl { fn SetFriendlyName(&self, pwszfriendlyname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsLunNaming {} impl IVdsLunNaming_Vtbl { - pub const fn new() -> IVdsLunNaming_Vtbl - where - Identity: IVdsLunNaming_Impl, - { - unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, pwszfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVdsLunNaming_Impl, - { + pub const fn new() -> IVdsLunNaming_Vtbl { + unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, pwszfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLunNaming_Impl::SetFriendlyName(this, core::mem::transmute(&pwszfriendlyname)).into() } @@ -2096,19 +1577,13 @@ impl IVdsLunNaming_Vtbl { iid == &::IID } } -pub trait IVdsLunNumber_Impl: Sized { +pub trait IVdsLunNumber_Impl: Sized + windows_core::IUnknownImpl { fn GetLunNumber(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsLunNumber {} impl IVdsLunNumber_Vtbl { - pub const fn new() -> IVdsLunNumber_Vtbl - where - Identity: IVdsLunNumber_Impl, - { - unsafe extern "system" fn GetLunNumber(this: *mut core::ffi::c_void, pullunnumber: *mut u32) -> windows_core::HRESULT - where - Identity: IVdsLunNumber_Impl, - { + pub const fn new() -> IVdsLunNumber_Vtbl { + unsafe extern "system" fn GetLunNumber(this: *mut core::ffi::c_void, pullunnumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLunNumber_Impl::GetLunNumber(this) { Ok(ok__) => { @@ -2124,7 +1599,7 @@ impl IVdsLunNumber_Vtbl { iid == &::IID } } -pub trait IVdsLunPlex_Impl: Sized { +pub trait IVdsLunPlex_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pplexprop: *mut VDS_LUN_PLEX_PROP) -> windows_core::Result<()>; fn GetLun(&self) -> windows_core::Result; fn QueryExtents(&self, ppextentarray: *mut *mut VDS_DRIVE_EXTENT, plnumberofextents: *mut i32) -> windows_core::Result<()>; @@ -2133,21 +1608,12 @@ pub trait IVdsLunPlex_Impl: Sized { } impl windows_core::RuntimeName for IVdsLunPlex {} impl IVdsLunPlex_Vtbl { - pub const fn new() -> IVdsLunPlex_Vtbl - where - Identity: IVdsLunPlex_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pplexprop: *mut VDS_LUN_PLEX_PROP) -> windows_core::HRESULT - where - Identity: IVdsLunPlex_Impl, - { + pub const fn new() -> IVdsLunPlex_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pplexprop: *mut VDS_LUN_PLEX_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLunPlex_Impl::GetProperties(this, core::mem::transmute_copy(&pplexprop)).into() } - unsafe extern "system" fn GetLun(this: *mut core::ffi::c_void, pplun: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsLunPlex_Impl, - { + unsafe extern "system" fn GetLun(this: *mut core::ffi::c_void, pplun: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsLunPlex_Impl::GetLun(this) { Ok(ok__) => { @@ -2157,24 +1623,15 @@ impl IVdsLunPlex_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryExtents(this: *mut core::ffi::c_void, ppextentarray: *mut *mut VDS_DRIVE_EXTENT, plnumberofextents: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsLunPlex_Impl, - { + unsafe extern "system" fn QueryExtents(this: *mut core::ffi::c_void, ppextentarray: *mut *mut VDS_DRIVE_EXTENT, plnumberofextents: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLunPlex_Impl::QueryExtents(this, core::mem::transmute_copy(&ppextentarray), core::mem::transmute_copy(&plnumberofextents)).into() } - unsafe extern "system" fn QueryHints(this: *mut core::ffi::c_void, phints: *mut VDS_HINTS) -> windows_core::HRESULT - where - Identity: IVdsLunPlex_Impl, - { + unsafe extern "system" fn QueryHints(this: *mut core::ffi::c_void, phints: *mut VDS_HINTS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLunPlex_Impl::QueryHints(this, core::mem::transmute_copy(&phints)).into() } - unsafe extern "system" fn ApplyHints(this: *mut core::ffi::c_void, phints: *const VDS_HINTS) -> windows_core::HRESULT - where - Identity: IVdsLunPlex_Impl, - { + unsafe extern "system" fn ApplyHints(this: *mut core::ffi::c_void, phints: *const VDS_HINTS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsLunPlex_Impl::ApplyHints(this, core::mem::transmute_copy(&phints)).into() } @@ -2191,35 +1648,23 @@ impl IVdsLunPlex_Vtbl { iid == &::IID } } -pub trait IVdsMaintenance_Impl: Sized { +pub trait IVdsMaintenance_Impl: Sized + windows_core::IUnknownImpl { fn StartMaintenance(&self, operation: VDS_MAINTENANCE_OPERATION) -> windows_core::Result<()>; fn StopMaintenance(&self, operation: VDS_MAINTENANCE_OPERATION) -> windows_core::Result<()>; fn PulseMaintenance(&self, operation: VDS_MAINTENANCE_OPERATION, ulcount: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsMaintenance {} impl IVdsMaintenance_Vtbl { - pub const fn new() -> IVdsMaintenance_Vtbl - where - Identity: IVdsMaintenance_Impl, - { - unsafe extern "system" fn StartMaintenance(this: *mut core::ffi::c_void, operation: VDS_MAINTENANCE_OPERATION) -> windows_core::HRESULT - where - Identity: IVdsMaintenance_Impl, - { + pub const fn new() -> IVdsMaintenance_Vtbl { + unsafe extern "system" fn StartMaintenance(this: *mut core::ffi::c_void, operation: VDS_MAINTENANCE_OPERATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsMaintenance_Impl::StartMaintenance(this, core::mem::transmute_copy(&operation)).into() } - unsafe extern "system" fn StopMaintenance(this: *mut core::ffi::c_void, operation: VDS_MAINTENANCE_OPERATION) -> windows_core::HRESULT - where - Identity: IVdsMaintenance_Impl, - { + unsafe extern "system" fn StopMaintenance(this: *mut core::ffi::c_void, operation: VDS_MAINTENANCE_OPERATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsMaintenance_Impl::StopMaintenance(this, core::mem::transmute_copy(&operation)).into() } - unsafe extern "system" fn PulseMaintenance(this: *mut core::ffi::c_void, operation: VDS_MAINTENANCE_OPERATION, ulcount: u32) -> windows_core::HRESULT - where - Identity: IVdsMaintenance_Impl, - { + unsafe extern "system" fn PulseMaintenance(this: *mut core::ffi::c_void, operation: VDS_MAINTENANCE_OPERATION, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsMaintenance_Impl::PulseMaintenance(this, core::mem::transmute_copy(&operation), core::mem::transmute_copy(&ulcount)).into() } @@ -2235,7 +1680,7 @@ impl IVdsMaintenance_Vtbl { } } #[cfg(feature = "Win32_Storage_Vhd")] -pub trait IVdsOpenVDisk_Impl: Sized { +pub trait IVdsOpenVDisk_Impl: Sized + windows_core::IUnknownImpl { fn Attach(&self, pstringsecuritydescriptor: &windows_core::PCWSTR, flags: super::Vhd::ATTACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32, timeoutinms: u32) -> windows_core::Result; fn Detach(&self, flags: super::Vhd::DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> windows_core::Result<()>; fn DetachAndDelete(&self, flags: super::Vhd::DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> windows_core::Result<()>; @@ -2247,14 +1692,8 @@ pub trait IVdsOpenVDisk_Impl: Sized { impl windows_core::RuntimeName for IVdsOpenVDisk {} #[cfg(feature = "Win32_Storage_Vhd")] impl IVdsOpenVDisk_Vtbl { - pub const fn new() -> IVdsOpenVDisk_Vtbl - where - Identity: IVdsOpenVDisk_Impl, - { - unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, pstringsecuritydescriptor: windows_core::PCWSTR, flags: super::Vhd::ATTACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32, timeoutinms: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsOpenVDisk_Impl, - { + pub const fn new() -> IVdsOpenVDisk_Vtbl { + unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, pstringsecuritydescriptor: windows_core::PCWSTR, flags: super::Vhd::ATTACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32, timeoutinms: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsOpenVDisk_Impl::Attach(this, core::mem::transmute(&pstringsecuritydescriptor), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&providerspecificflags), core::mem::transmute_copy(&timeoutinms)) { Ok(ok__) => { @@ -2264,24 +1703,15 @@ impl IVdsOpenVDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Detach(this: *mut core::ffi::c_void, flags: super::Vhd::DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> windows_core::HRESULT - where - Identity: IVdsOpenVDisk_Impl, - { + unsafe extern "system" fn Detach(this: *mut core::ffi::c_void, flags: super::Vhd::DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsOpenVDisk_Impl::Detach(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&providerspecificflags)).into() } - unsafe extern "system" fn DetachAndDelete(this: *mut core::ffi::c_void, flags: super::Vhd::DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> windows_core::HRESULT - where - Identity: IVdsOpenVDisk_Impl, - { + unsafe extern "system" fn DetachAndDelete(this: *mut core::ffi::c_void, flags: super::Vhd::DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsOpenVDisk_Impl::DetachAndDelete(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&providerspecificflags)).into() } - unsafe extern "system" fn Compact(this: *mut core::ffi::c_void, flags: super::Vhd::COMPACT_VIRTUAL_DISK_FLAG, reserved: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsOpenVDisk_Impl, - { + unsafe extern "system" fn Compact(this: *mut core::ffi::c_void, flags: super::Vhd::COMPACT_VIRTUAL_DISK_FLAG, reserved: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsOpenVDisk_Impl::Compact(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&reserved)) { Ok(ok__) => { @@ -2291,10 +1721,7 @@ impl IVdsOpenVDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, flags: super::Vhd::MERGE_VIRTUAL_DISK_FLAG, mergedepth: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsOpenVDisk_Impl, - { + unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, flags: super::Vhd::MERGE_VIRTUAL_DISK_FLAG, mergedepth: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsOpenVDisk_Impl::Merge(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&mergedepth)) { Ok(ok__) => { @@ -2304,10 +1731,7 @@ impl IVdsOpenVDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, flags: super::Vhd::EXPAND_VIRTUAL_DISK_FLAG, newsize: u64, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsOpenVDisk_Impl, - { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, flags: super::Vhd::EXPAND_VIRTUAL_DISK_FLAG, newsize: u64, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsOpenVDisk_Impl::Expand(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&newsize)) { Ok(ok__) => { @@ -2331,7 +1755,7 @@ impl IVdsOpenVDisk_Vtbl { iid == &::IID } } -pub trait IVdsPack_Impl: Sized { +pub trait IVdsPack_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, ppackprop: *mut VDS_PACK_PROP) -> windows_core::Result<()>; fn GetProvider(&self) -> windows_core::Result; fn QueryVolumes(&self) -> windows_core::Result; @@ -2345,21 +1769,12 @@ pub trait IVdsPack_Impl: Sized { } impl windows_core::RuntimeName for IVdsPack {} impl IVdsPack_Vtbl { - pub const fn new() -> IVdsPack_Vtbl - where - Identity: IVdsPack_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, ppackprop: *mut VDS_PACK_PROP) -> windows_core::HRESULT - where - Identity: IVdsPack_Impl, - { + pub const fn new() -> IVdsPack_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, ppackprop: *mut VDS_PACK_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsPack_Impl::GetProperties(this, core::mem::transmute_copy(&ppackprop)).into() } - unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, ppprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsPack_Impl, - { + unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, ppprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsPack_Impl::GetProvider(this) { Ok(ok__) => { @@ -2369,10 +1784,7 @@ impl IVdsPack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryVolumes(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsPack_Impl, - { + unsafe extern "system" fn QueryVolumes(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsPack_Impl::QueryVolumes(this) { Ok(ok__) => { @@ -2382,10 +1794,7 @@ impl IVdsPack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryDisks(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsPack_Impl, - { + unsafe extern "system" fn QueryDisks(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsPack_Impl::QueryDisks(this) { Ok(ok__) => { @@ -2395,10 +1804,7 @@ impl IVdsPack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVolume(this: *mut core::ffi::c_void, r#type: VDS_VOLUME_TYPE, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ulstripesize: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsPack_Impl, - { + unsafe extern "system" fn CreateVolume(this: *mut core::ffi::c_void, r#type: VDS_VOLUME_TYPE, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ulstripesize: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsPack_Impl::CreateVolume(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pinputdiskarray), core::mem::transmute_copy(&lnumberofdisks), core::mem::transmute_copy(&ulstripesize)) { Ok(ok__) => { @@ -2408,24 +1814,15 @@ impl IVdsPack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddDisk(this: *mut core::ffi::c_void, diskid: windows_core::GUID, partitionstyle: VDS_PARTITION_STYLE, bashotspare: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVdsPack_Impl, - { + unsafe extern "system" fn AddDisk(this: *mut core::ffi::c_void, diskid: windows_core::GUID, partitionstyle: VDS_PARTITION_STYLE, bashotspare: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsPack_Impl::AddDisk(this, core::mem::transmute(&diskid), core::mem::transmute_copy(&partitionstyle), core::mem::transmute_copy(&bashotspare)).into() } - unsafe extern "system" fn MigrateDisks(this: *mut core::ffi::c_void, pdiskarray: *const windows_core::GUID, lnumberofdisks: i32, targetpack: windows_core::GUID, bforce: super::super::Foundation::BOOL, bqueryonly: super::super::Foundation::BOOL, presults: *mut windows_core::HRESULT, pbrebootneeded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVdsPack_Impl, - { + unsafe extern "system" fn MigrateDisks(this: *mut core::ffi::c_void, pdiskarray: *const windows_core::GUID, lnumberofdisks: i32, targetpack: windows_core::GUID, bforce: super::super::Foundation::BOOL, bqueryonly: super::super::Foundation::BOOL, presults: *mut windows_core::HRESULT, pbrebootneeded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsPack_Impl::MigrateDisks(this, core::mem::transmute_copy(&pdiskarray), core::mem::transmute_copy(&lnumberofdisks), core::mem::transmute(&targetpack), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bqueryonly), core::mem::transmute_copy(&presults), core::mem::transmute_copy(&pbrebootneeded)).into() } - unsafe extern "system" fn ReplaceDisk(this: *mut core::ffi::c_void, olddiskid: windows_core::GUID, newdiskid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsPack_Impl, - { + unsafe extern "system" fn ReplaceDisk(this: *mut core::ffi::c_void, olddiskid: windows_core::GUID, newdiskid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsPack_Impl::ReplaceDisk(this, core::mem::transmute(&olddiskid), core::mem::transmute(&newdiskid)) { Ok(ok__) => { @@ -2435,17 +1832,11 @@ impl IVdsPack_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveMissingDisk(this: *mut core::ffi::c_void, diskid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVdsPack_Impl, - { + unsafe extern "system" fn RemoveMissingDisk(this: *mut core::ffi::c_void, diskid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsPack_Impl::RemoveMissingDisk(this, core::mem::transmute(&diskid)).into() } - unsafe extern "system" fn Recover(this: *mut core::ffi::c_void, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsPack_Impl, - { + unsafe extern "system" fn Recover(this: *mut core::ffi::c_void, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsPack_Impl::Recover(this) { Ok(ok__) => { @@ -2473,19 +1864,13 @@ impl IVdsPack_Vtbl { iid == &::IID } } -pub trait IVdsPack2_Impl: Sized { +pub trait IVdsPack2_Impl: Sized + windows_core::IUnknownImpl { fn CreateVolume2(&self, r#type: VDS_VOLUME_TYPE, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ulstripesize: u32, ulalign: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsPack2 {} impl IVdsPack2_Vtbl { - pub const fn new() -> IVdsPack2_Vtbl - where - Identity: IVdsPack2_Impl, - { - unsafe extern "system" fn CreateVolume2(this: *mut core::ffi::c_void, r#type: VDS_VOLUME_TYPE, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ulstripesize: u32, ulalign: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsPack2_Impl, - { + pub const fn new() -> IVdsPack2_Vtbl { + unsafe extern "system" fn CreateVolume2(this: *mut core::ffi::c_void, r#type: VDS_VOLUME_TYPE, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ulstripesize: u32, ulalign: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsPack2_Impl::CreateVolume2(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pinputdiskarray), core::mem::transmute_copy(&lnumberofdisks), core::mem::transmute_copy(&ulstripesize), core::mem::transmute_copy(&ulalign)) { Ok(ok__) => { @@ -2501,19 +1886,13 @@ impl IVdsPack2_Vtbl { iid == &::IID } } -pub trait IVdsProvider_Impl: Sized { +pub trait IVdsProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pproviderprop: *mut VDS_PROVIDER_PROP) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsProvider {} impl IVdsProvider_Vtbl { - pub const fn new() -> IVdsProvider_Vtbl - where - Identity: IVdsProvider_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pproviderprop: *mut VDS_PROVIDER_PROP) -> windows_core::HRESULT - where - Identity: IVdsProvider_Impl, - { + pub const fn new() -> IVdsProvider_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pproviderprop: *mut VDS_PROVIDER_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsProvider_Impl::GetProperties(this, core::mem::transmute_copy(&pproviderprop)).into() } @@ -2523,21 +1902,15 @@ impl IVdsProvider_Vtbl { iid == &::IID } } -pub trait IVdsProviderPrivate_Impl: Sized { +pub trait IVdsProviderPrivate_Impl: Sized + windows_core::IUnknownImpl { fn GetObject(&self, objectid: &windows_core::GUID, r#type: VDS_OBJECT_TYPE) -> windows_core::Result; fn OnLoad(&self, pwszmachinename: &windows_core::PCWSTR, pcallbackobject: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn OnUnload(&self, bforceunload: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsProviderPrivate {} impl IVdsProviderPrivate_Vtbl { - pub const fn new() -> IVdsProviderPrivate_Vtbl - where - Identity: IVdsProviderPrivate_Impl, - { - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, objectid: windows_core::GUID, r#type: VDS_OBJECT_TYPE, ppobjectunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsProviderPrivate_Impl, - { + pub const fn new() -> IVdsProviderPrivate_Vtbl { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, objectid: windows_core::GUID, r#type: VDS_OBJECT_TYPE, ppobjectunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsProviderPrivate_Impl::GetObject(this, core::mem::transmute(&objectid), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -2547,17 +1920,11 @@ impl IVdsProviderPrivate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnLoad(this: *mut core::ffi::c_void, pwszmachinename: windows_core::PCWSTR, pcallbackobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsProviderPrivate_Impl, - { + unsafe extern "system" fn OnLoad(this: *mut core::ffi::c_void, pwszmachinename: windows_core::PCWSTR, pcallbackobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsProviderPrivate_Impl::OnLoad(this, core::mem::transmute(&pwszmachinename), windows_core::from_raw_borrowed(&pcallbackobject)).into() } - unsafe extern "system" fn OnUnload(this: *mut core::ffi::c_void, bforceunload: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVdsProviderPrivate_Impl, - { + unsafe extern "system" fn OnUnload(this: *mut core::ffi::c_void, bforceunload: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsProviderPrivate_Impl::OnUnload(this, core::mem::transmute_copy(&bforceunload)).into() } @@ -2572,19 +1939,13 @@ impl IVdsProviderPrivate_Vtbl { iid == &::IID } } -pub trait IVdsProviderSupport_Impl: Sized { +pub trait IVdsProviderSupport_Impl: Sized + windows_core::IUnknownImpl { fn GetVersionSupport(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsProviderSupport {} impl IVdsProviderSupport_Vtbl { - pub const fn new() -> IVdsProviderSupport_Vtbl - where - Identity: IVdsProviderSupport_Impl, - { - unsafe extern "system" fn GetVersionSupport(this: *mut core::ffi::c_void, ulversionsupport: *mut u32) -> windows_core::HRESULT - where - Identity: IVdsProviderSupport_Impl, - { + pub const fn new() -> IVdsProviderSupport_Vtbl { + unsafe extern "system" fn GetVersionSupport(this: *mut core::ffi::c_void, ulversionsupport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsProviderSupport_Impl::GetVersionSupport(this) { Ok(ok__) => { @@ -2600,27 +1961,18 @@ impl IVdsProviderSupport_Vtbl { iid == &::IID } } -pub trait IVdsRemovable_Impl: Sized { +pub trait IVdsRemovable_Impl: Sized + windows_core::IUnknownImpl { fn QueryMedia(&self) -> windows_core::Result<()>; fn Eject(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsRemovable {} impl IVdsRemovable_Vtbl { - pub const fn new() -> IVdsRemovable_Vtbl - where - Identity: IVdsRemovable_Impl, - { - unsafe extern "system" fn QueryMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsRemovable_Impl, - { + pub const fn new() -> IVdsRemovable_Vtbl { + unsafe extern "system" fn QueryMedia(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsRemovable_Impl::QueryMedia(this).into() } - unsafe extern "system" fn Eject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsRemovable_Impl, - { + unsafe extern "system" fn Eject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsRemovable_Impl::Eject(this).into() } @@ -2630,7 +1982,7 @@ impl IVdsRemovable_Vtbl { iid == &::IID } } -pub trait IVdsService_Impl: Sized { +pub trait IVdsService_Impl: Sized + windows_core::IUnknownImpl { fn IsServiceReady(&self) -> windows_core::Result<()>; fn WaitForServiceReady(&self) -> windows_core::Result<()>; fn GetProperties(&self) -> windows_core::Result; @@ -2651,28 +2003,16 @@ pub trait IVdsService_Impl: Sized { } impl windows_core::RuntimeName for IVdsService {} impl IVdsService_Vtbl { - pub const fn new() -> IVdsService_Vtbl - where - Identity: IVdsService_Impl, - { - unsafe extern "system" fn IsServiceReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + pub const fn new() -> IVdsService_Vtbl { + unsafe extern "system" fn IsServiceReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::IsServiceReady(this).into() } - unsafe extern "system" fn WaitForServiceReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn WaitForServiceReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::WaitForServiceReady(this).into() } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pserviceprop: *mut VDS_SERVICE_PROP) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pserviceprop: *mut VDS_SERVICE_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsService_Impl::GetProperties(this) { Ok(ok__) => { @@ -2682,10 +2022,7 @@ impl IVdsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryProviders(this: *mut core::ffi::c_void, masks: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn QueryProviders(this: *mut core::ffi::c_void, masks: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsService_Impl::QueryProviders(this, core::mem::transmute_copy(&masks)) { Ok(ok__) => { @@ -2695,10 +2032,7 @@ impl IVdsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryMaskedDisks(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn QueryMaskedDisks(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsService_Impl::QueryMaskedDisks(this) { Ok(ok__) => { @@ -2708,10 +2042,7 @@ impl IVdsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryUnallocatedDisks(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn QueryUnallocatedDisks(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsService_Impl::QueryUnallocatedDisks(this) { Ok(ok__) => { @@ -2721,10 +2052,7 @@ impl IVdsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, objectid: windows_core::GUID, r#type: VDS_OBJECT_TYPE, ppobjectunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, objectid: windows_core::GUID, r#type: VDS_OBJECT_TYPE, ppobjectunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsService_Impl::GetObject(this, core::mem::transmute(&objectid), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -2734,45 +2062,27 @@ impl IVdsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryDriveLetters(this: *mut core::ffi::c_void, wcfirstletter: u16, count: u32, pdriveletterproparray: *mut VDS_DRIVE_LETTER_PROP) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn QueryDriveLetters(this: *mut core::ffi::c_void, wcfirstletter: u16, count: u32, pdriveletterproparray: *mut VDS_DRIVE_LETTER_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::QueryDriveLetters(this, core::mem::transmute_copy(&wcfirstletter), core::mem::transmute_copy(&count), core::mem::transmute_copy(&pdriveletterproparray)).into() } - unsafe extern "system" fn QueryFileSystemTypes(this: *mut core::ffi::c_void, ppfilesystemtypeprops: *mut *mut VDS_FILE_SYSTEM_TYPE_PROP, plnumberoffilesystems: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn QueryFileSystemTypes(this: *mut core::ffi::c_void, ppfilesystemtypeprops: *mut *mut VDS_FILE_SYSTEM_TYPE_PROP, plnumberoffilesystems: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::QueryFileSystemTypes(this, core::mem::transmute_copy(&ppfilesystemtypeprops), core::mem::transmute_copy(&plnumberoffilesystems)).into() } - unsafe extern "system" fn Reenumerate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn Reenumerate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::Reenumerate(this).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::Refresh(this).into() } - unsafe extern "system" fn CleanupObsoleteMountPoints(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn CleanupObsoleteMountPoints(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::CleanupObsoleteMountPoints(this).into() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsService_Impl::Advise(this, windows_core::from_raw_borrowed(&psink)) { Ok(ok__) => { @@ -2782,31 +2092,19 @@ impl IVdsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn Reboot(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn Reboot(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::Reboot(this).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::SetFlags(this, core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn ClearFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IVdsService_Impl, - { + unsafe extern "system" fn ClearFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsService_Impl::ClearFlags(this, core::mem::transmute_copy(&ulflags)).into() } @@ -2835,19 +2133,13 @@ impl IVdsService_Vtbl { iid == &::IID } } -pub trait IVdsServiceHba_Impl: Sized { +pub trait IVdsServiceHba_Impl: Sized + windows_core::IUnknownImpl { fn QueryHbaPorts(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsServiceHba {} impl IVdsServiceHba_Vtbl { - pub const fn new() -> IVdsServiceHba_Vtbl - where - Identity: IVdsServiceHba_Impl, - { - unsafe extern "system" fn QueryHbaPorts(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsServiceHba_Impl, - { + pub const fn new() -> IVdsServiceHba_Vtbl { + unsafe extern "system" fn QueryHbaPorts(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsServiceHba_Impl::QueryHbaPorts(this) { Ok(ok__) => { @@ -2863,19 +2155,13 @@ impl IVdsServiceHba_Vtbl { iid == &::IID } } -pub trait IVdsServiceInitialization_Impl: Sized { +pub trait IVdsServiceInitialization_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pwszmachinename: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsServiceInitialization {} impl IVdsServiceInitialization_Vtbl { - pub const fn new() -> IVdsServiceInitialization_Vtbl - where - Identity: IVdsServiceInitialization_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pwszmachinename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVdsServiceInitialization_Impl, - { + pub const fn new() -> IVdsServiceInitialization_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pwszmachinename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsServiceInitialization_Impl::Initialize(this, core::mem::transmute(&pwszmachinename)).into() } @@ -2885,7 +2171,7 @@ impl IVdsServiceInitialization_Vtbl { iid == &::IID } } -pub trait IVdsServiceIscsi_Impl: Sized { +pub trait IVdsServiceIscsi_Impl: Sized + windows_core::IUnknownImpl { fn GetInitiatorName(&self) -> windows_core::Result; fn QueryInitiatorAdapters(&self) -> windows_core::Result; fn SetIpsecGroupPresharedKey(&self, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::Result<()>; @@ -2896,14 +2182,8 @@ pub trait IVdsServiceIscsi_Impl: Sized { } impl windows_core::RuntimeName for IVdsServiceIscsi {} impl IVdsServiceIscsi_Vtbl { - pub const fn new() -> IVdsServiceIscsi_Vtbl - where - Identity: IVdsServiceIscsi_Impl, - { - unsafe extern "system" fn GetInitiatorName(this: *mut core::ffi::c_void, ppwsziscsiname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IVdsServiceIscsi_Impl, - { + pub const fn new() -> IVdsServiceIscsi_Vtbl { + unsafe extern "system" fn GetInitiatorName(this: *mut core::ffi::c_void, ppwsziscsiname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsServiceIscsi_Impl::GetInitiatorName(this) { Ok(ok__) => { @@ -2913,10 +2193,7 @@ impl IVdsServiceIscsi_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryInitiatorAdapters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsServiceIscsi_Impl, - { + unsafe extern "system" fn QueryInitiatorAdapters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsServiceIscsi_Impl::QueryInitiatorAdapters(this) { Ok(ok__) => { @@ -2926,38 +2203,23 @@ impl IVdsServiceIscsi_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIpsecGroupPresharedKey(this: *mut core::ffi::c_void, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT - where - Identity: IVdsServiceIscsi_Impl, - { + unsafe extern "system" fn SetIpsecGroupPresharedKey(this: *mut core::ffi::c_void, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsServiceIscsi_Impl::SetIpsecGroupPresharedKey(this, core::mem::transmute_copy(&pipseckey)).into() } - unsafe extern "system" fn SetAllIpsecTunnelAddresses(this: *mut core::ffi::c_void, ptunneladdress: *const VDS_IPADDRESS, pdestinationaddress: *const VDS_IPADDRESS) -> windows_core::HRESULT - where - Identity: IVdsServiceIscsi_Impl, - { + unsafe extern "system" fn SetAllIpsecTunnelAddresses(this: *mut core::ffi::c_void, ptunneladdress: *const VDS_IPADDRESS, pdestinationaddress: *const VDS_IPADDRESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsServiceIscsi_Impl::SetAllIpsecTunnelAddresses(this, core::mem::transmute_copy(&ptunneladdress), core::mem::transmute_copy(&pdestinationaddress)).into() } - unsafe extern "system" fn SetAllIpsecSecurity(this: *mut core::ffi::c_void, targetportalid: windows_core::GUID, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT - where - Identity: IVdsServiceIscsi_Impl, - { + unsafe extern "system" fn SetAllIpsecSecurity(this: *mut core::ffi::c_void, targetportalid: windows_core::GUID, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsServiceIscsi_Impl::SetAllIpsecSecurity(this, core::mem::transmute(&targetportalid), core::mem::transmute_copy(&ullsecurityflags), core::mem::transmute_copy(&pipseckey)).into() } - unsafe extern "system" fn SetInitiatorSharedSecret(this: *mut core::ffi::c_void, pinitiatorsharedsecret: *const VDS_ISCSI_SHARED_SECRET, targetid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVdsServiceIscsi_Impl, - { + unsafe extern "system" fn SetInitiatorSharedSecret(this: *mut core::ffi::c_void, pinitiatorsharedsecret: *const VDS_ISCSI_SHARED_SECRET, targetid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsServiceIscsi_Impl::SetInitiatorSharedSecret(this, core::mem::transmute_copy(&pinitiatorsharedsecret), core::mem::transmute(&targetid)).into() } - unsafe extern "system" fn RememberTargetSharedSecret(this: *mut core::ffi::c_void, targetid: windows_core::GUID, ptargetsharedsecret: *const VDS_ISCSI_SHARED_SECRET) -> windows_core::HRESULT - where - Identity: IVdsServiceIscsi_Impl, - { + unsafe extern "system" fn RememberTargetSharedSecret(this: *mut core::ffi::c_void, targetid: windows_core::GUID, ptargetsharedsecret: *const VDS_ISCSI_SHARED_SECRET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsServiceIscsi_Impl::RememberTargetSharedSecret(this, core::mem::transmute(&targetid), core::mem::transmute_copy(&ptargetsharedsecret)).into() } @@ -2976,19 +2238,13 @@ impl IVdsServiceIscsi_Vtbl { iid == &::IID } } -pub trait IVdsServiceLoader_Impl: Sized { +pub trait IVdsServiceLoader_Impl: Sized + windows_core::IUnknownImpl { fn LoadService(&self, pwszmachinename: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsServiceLoader {} impl IVdsServiceLoader_Vtbl { - pub const fn new() -> IVdsServiceLoader_Vtbl - where - Identity: IVdsServiceLoader_Impl, - { - unsafe extern "system" fn LoadService(this: *mut core::ffi::c_void, pwszmachinename: windows_core::PCWSTR, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsServiceLoader_Impl, - { + pub const fn new() -> IVdsServiceLoader_Vtbl { + unsafe extern "system" fn LoadService(this: *mut core::ffi::c_void, pwszmachinename: windows_core::PCWSTR, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsServiceLoader_Impl::LoadService(this, core::mem::transmute(&pwszmachinename)) { Ok(ok__) => { @@ -3004,20 +2260,14 @@ impl IVdsServiceLoader_Vtbl { iid == &::IID } } -pub trait IVdsServiceSAN_Impl: Sized { +pub trait IVdsServiceSAN_Impl: Sized + windows_core::IUnknownImpl { fn GetSANPolicy(&self) -> windows_core::Result; fn SetSANPolicy(&self, sanpolicy: VDS_SAN_POLICY) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsServiceSAN {} impl IVdsServiceSAN_Vtbl { - pub const fn new() -> IVdsServiceSAN_Vtbl - where - Identity: IVdsServiceSAN_Impl, - { - unsafe extern "system" fn GetSANPolicy(this: *mut core::ffi::c_void, psanpolicy: *mut VDS_SAN_POLICY) -> windows_core::HRESULT - where - Identity: IVdsServiceSAN_Impl, - { + pub const fn new() -> IVdsServiceSAN_Vtbl { + unsafe extern "system" fn GetSANPolicy(this: *mut core::ffi::c_void, psanpolicy: *mut VDS_SAN_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsServiceSAN_Impl::GetSANPolicy(this) { Ok(ok__) => { @@ -3027,10 +2277,7 @@ impl IVdsServiceSAN_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSANPolicy(this: *mut core::ffi::c_void, sanpolicy: VDS_SAN_POLICY) -> windows_core::HRESULT - where - Identity: IVdsServiceSAN_Impl, - { + unsafe extern "system" fn SetSANPolicy(this: *mut core::ffi::c_void, sanpolicy: VDS_SAN_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsServiceSAN_Impl::SetSANPolicy(this, core::mem::transmute_copy(&sanpolicy)).into() } @@ -3044,19 +2291,13 @@ impl IVdsServiceSAN_Vtbl { iid == &::IID } } -pub trait IVdsServiceSw_Impl: Sized { +pub trait IVdsServiceSw_Impl: Sized + windows_core::IUnknownImpl { fn GetDiskObject(&self, pwszdeviceid: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsServiceSw {} impl IVdsServiceSw_Vtbl { - pub const fn new() -> IVdsServiceSw_Vtbl - where - Identity: IVdsServiceSw_Impl, - { - unsafe extern "system" fn GetDiskObject(this: *mut core::ffi::c_void, pwszdeviceid: windows_core::PCWSTR, ppdiskunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsServiceSw_Impl, - { + pub const fn new() -> IVdsServiceSw_Vtbl { + unsafe extern "system" fn GetDiskObject(this: *mut core::ffi::c_void, pwszdeviceid: windows_core::PCWSTR, ppdiskunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsServiceSw_Impl::GetDiskObject(this, core::mem::transmute(&pwszdeviceid)) { Ok(ok__) => { @@ -3072,20 +2313,14 @@ impl IVdsServiceSw_Vtbl { iid == &::IID } } -pub trait IVdsServiceUninstallDisk_Impl: Sized { +pub trait IVdsServiceUninstallDisk_Impl: Sized + windows_core::IUnknownImpl { fn GetDiskIdFromLunInfo(&self, pluninfo: *const VDS_LUN_INFORMATION) -> windows_core::Result; fn UninstallDisks(&self, pdiskidarray: *const windows_core::GUID, ulcount: u32, bforce: super::super::Foundation::BOOLEAN, pbreboot: *mut u8, presults: *mut windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsServiceUninstallDisk {} impl IVdsServiceUninstallDisk_Vtbl { - pub const fn new() -> IVdsServiceUninstallDisk_Vtbl - where - Identity: IVdsServiceUninstallDisk_Impl, - { - unsafe extern "system" fn GetDiskIdFromLunInfo(this: *mut core::ffi::c_void, pluninfo: *const VDS_LUN_INFORMATION, pdiskid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVdsServiceUninstallDisk_Impl, - { + pub const fn new() -> IVdsServiceUninstallDisk_Vtbl { + unsafe extern "system" fn GetDiskIdFromLunInfo(this: *mut core::ffi::c_void, pluninfo: *const VDS_LUN_INFORMATION, pdiskid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsServiceUninstallDisk_Impl::GetDiskIdFromLunInfo(this, core::mem::transmute_copy(&pluninfo)) { Ok(ok__) => { @@ -3095,10 +2330,7 @@ impl IVdsServiceUninstallDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UninstallDisks(this: *mut core::ffi::c_void, pdiskidarray: *const windows_core::GUID, ulcount: u32, bforce: super::super::Foundation::BOOLEAN, pbreboot: *mut u8, presults: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IVdsServiceUninstallDisk_Impl, - { + unsafe extern "system" fn UninstallDisks(this: *mut core::ffi::c_void, pdiskidarray: *const windows_core::GUID, ulcount: u32, bforce: super::super::Foundation::BOOLEAN, pbreboot: *mut u8, presults: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsServiceUninstallDisk_Impl::UninstallDisks(this, core::mem::transmute_copy(&pdiskidarray), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&pbreboot), core::mem::transmute_copy(&presults)).into() } @@ -3112,7 +2344,7 @@ impl IVdsServiceUninstallDisk_Vtbl { iid == &::IID } } -pub trait IVdsStoragePool_Impl: Sized { +pub trait IVdsStoragePool_Impl: Sized + windows_core::IUnknownImpl { fn GetProvider(&self) -> windows_core::Result; fn GetProperties(&self, pstoragepoolprop: *mut VDS_STORAGE_POOL_PROP) -> windows_core::Result<()>; fn GetAttributes(&self, pstoragepoolattributes: *mut VDS_POOL_ATTRIBUTES) -> windows_core::Result<()>; @@ -3122,14 +2354,8 @@ pub trait IVdsStoragePool_Impl: Sized { } impl windows_core::RuntimeName for IVdsStoragePool {} impl IVdsStoragePool_Vtbl { - pub const fn new() -> IVdsStoragePool_Vtbl - where - Identity: IVdsStoragePool_Impl, - { - unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, ppprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsStoragePool_Impl, - { + pub const fn new() -> IVdsStoragePool_Vtbl { + unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, ppprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsStoragePool_Impl::GetProvider(this) { Ok(ok__) => { @@ -3139,31 +2365,19 @@ impl IVdsStoragePool_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pstoragepoolprop: *mut VDS_STORAGE_POOL_PROP) -> windows_core::HRESULT - where - Identity: IVdsStoragePool_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pstoragepoolprop: *mut VDS_STORAGE_POOL_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsStoragePool_Impl::GetProperties(this, core::mem::transmute_copy(&pstoragepoolprop)).into() } - unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pstoragepoolattributes: *mut VDS_POOL_ATTRIBUTES) -> windows_core::HRESULT - where - Identity: IVdsStoragePool_Impl, - { + unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pstoragepoolattributes: *mut VDS_POOL_ATTRIBUTES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsStoragePool_Impl::GetAttributes(this, core::mem::transmute_copy(&pstoragepoolattributes)).into() } - unsafe extern "system" fn QueryDriveExtents(this: *mut core::ffi::c_void, ppextentarray: *mut *mut VDS_STORAGE_POOL_DRIVE_EXTENT, plnumberofextents: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsStoragePool_Impl, - { + unsafe extern "system" fn QueryDriveExtents(this: *mut core::ffi::c_void, ppextentarray: *mut *mut VDS_STORAGE_POOL_DRIVE_EXTENT, plnumberofextents: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsStoragePool_Impl::QueryDriveExtents(this, core::mem::transmute_copy(&ppextentarray), core::mem::transmute_copy(&plnumberofextents)).into() } - unsafe extern "system" fn QueryAllocatedLuns(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsStoragePool_Impl, - { + unsafe extern "system" fn QueryAllocatedLuns(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsStoragePool_Impl::QueryAllocatedLuns(this) { Ok(ok__) => { @@ -3173,10 +2387,7 @@ impl IVdsStoragePool_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryAllocatedStoragePools(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsStoragePool_Impl, - { + unsafe extern "system" fn QueryAllocatedStoragePools(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsStoragePool_Impl::QueryAllocatedStoragePools(this) { Ok(ok__) => { @@ -3200,7 +2411,7 @@ impl IVdsStoragePool_Vtbl { iid == &::IID } } -pub trait IVdsSubSystem_Impl: Sized { +pub trait IVdsSubSystem_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, psubsystemprop: *mut VDS_SUB_SYSTEM_PROP) -> windows_core::Result<()>; fn GetProvider(&self) -> windows_core::Result; fn QueryControllers(&self) -> windows_core::Result; @@ -3216,21 +2427,12 @@ pub trait IVdsSubSystem_Impl: Sized { } impl windows_core::RuntimeName for IVdsSubSystem {} impl IVdsSubSystem_Vtbl { - pub const fn new() -> IVdsSubSystem_Vtbl - where - Identity: IVdsSubSystem_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, psubsystemprop: *mut VDS_SUB_SYSTEM_PROP) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + pub const fn new() -> IVdsSubSystem_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, psubsystemprop: *mut VDS_SUB_SYSTEM_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsSubSystem_Impl::GetProperties(this, core::mem::transmute_copy(&psubsystemprop)).into() } - unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, ppprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, ppprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystem_Impl::GetProvider(this) { Ok(ok__) => { @@ -3240,10 +2442,7 @@ impl IVdsSubSystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryControllers(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn QueryControllers(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystem_Impl::QueryControllers(this) { Ok(ok__) => { @@ -3253,10 +2452,7 @@ impl IVdsSubSystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryLuns(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn QueryLuns(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystem_Impl::QueryLuns(this) { Ok(ok__) => { @@ -3266,10 +2462,7 @@ impl IVdsSubSystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryDrives(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn QueryDrives(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystem_Impl::QueryDrives(this) { Ok(ok__) => { @@ -3279,10 +2472,7 @@ impl IVdsSubSystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDrive(this: *mut core::ffi::c_void, sbusnumber: i16, sslotnumber: i16, ppdrive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn GetDrive(this: *mut core::ffi::c_void, sbusnumber: i16, sslotnumber: i16, ppdrive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystem_Impl::GetDrive(this, core::mem::transmute_copy(&sbusnumber), core::mem::transmute_copy(&sslotnumber)) { Ok(ok__) => { @@ -3292,24 +2482,15 @@ impl IVdsSubSystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reenumerate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn Reenumerate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsSubSystem_Impl::Reenumerate(this).into() } - unsafe extern "system" fn SetControllerStatus(this: *mut core::ffi::c_void, ponlinecontrolleridarray: *const windows_core::GUID, lnumberofonlinecontrollers: i32, pofflinecontrolleridarray: *const windows_core::GUID, lnumberofofflinecontrollers: i32) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn SetControllerStatus(this: *mut core::ffi::c_void, ponlinecontrolleridarray: *const windows_core::GUID, lnumberofonlinecontrollers: i32, pofflinecontrolleridarray: *const windows_core::GUID, lnumberofofflinecontrollers: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsSubSystem_Impl::SetControllerStatus(this, core::mem::transmute_copy(&ponlinecontrolleridarray), core::mem::transmute_copy(&lnumberofonlinecontrollers), core::mem::transmute_copy(&pofflinecontrolleridarray), core::mem::transmute_copy(&lnumberofofflinecontrollers)).into() } - unsafe extern "system" fn CreateLun(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, pwszunmaskinglist: windows_core::PCWSTR, phints: *const VDS_HINTS, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn CreateLun(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, pwszunmaskinglist: windows_core::PCWSTR, phints: *const VDS_HINTS, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystem_Impl::CreateLun(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&ullsizeinbytes), core::mem::transmute_copy(&pdriveidarray), core::mem::transmute_copy(&lnumberofdrives), core::mem::transmute(&pwszunmaskinglist), core::mem::transmute_copy(&phints)) { Ok(ok__) => { @@ -3319,24 +2500,15 @@ impl IVdsSubSystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReplaceDrive(this: *mut core::ffi::c_void, drivetobereplaced: windows_core::GUID, replacementdrive: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn ReplaceDrive(this: *mut core::ffi::c_void, drivetobereplaced: windows_core::GUID, replacementdrive: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsSubSystem_Impl::ReplaceDrive(this, core::mem::transmute(&drivetobereplaced), core::mem::transmute(&replacementdrive)).into() } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_SUB_SYSTEM_STATUS) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, status: VDS_SUB_SYSTEM_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsSubSystem_Impl::SetStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn QueryMaxLunCreateSize(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, phints: *const VDS_HINTS, pullmaxlunsize: *mut u64) -> windows_core::HRESULT - where - Identity: IVdsSubSystem_Impl, - { + unsafe extern "system" fn QueryMaxLunCreateSize(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, phints: *const VDS_HINTS, pullmaxlunsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystem_Impl::QueryMaxLunCreateSize(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdriveidarray), core::mem::transmute_copy(&lnumberofdrives), core::mem::transmute_copy(&phints)) { Ok(ok__) => { @@ -3366,7 +2538,7 @@ impl IVdsSubSystem_Vtbl { iid == &::IID } } -pub trait IVdsSubSystem2_Impl: Sized { +pub trait IVdsSubSystem2_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties2(&self, psubsystemprop2: *mut VDS_SUB_SYSTEM_PROP2) -> windows_core::Result<()>; fn GetDrive2(&self, sbusnumber: i16, sslotnumber: i16, ulenclosurenumber: u32) -> windows_core::Result; fn CreateLun2(&self, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, pwszunmaskinglist: &windows_core::PCWSTR, phints2: *const VDS_HINTS2) -> windows_core::Result; @@ -3374,21 +2546,12 @@ pub trait IVdsSubSystem2_Impl: Sized { } impl windows_core::RuntimeName for IVdsSubSystem2 {} impl IVdsSubSystem2_Vtbl { - pub const fn new() -> IVdsSubSystem2_Vtbl - where - Identity: IVdsSubSystem2_Impl, - { - unsafe extern "system" fn GetProperties2(this: *mut core::ffi::c_void, psubsystemprop2: *mut VDS_SUB_SYSTEM_PROP2) -> windows_core::HRESULT - where - Identity: IVdsSubSystem2_Impl, - { + pub const fn new() -> IVdsSubSystem2_Vtbl { + unsafe extern "system" fn GetProperties2(this: *mut core::ffi::c_void, psubsystemprop2: *mut VDS_SUB_SYSTEM_PROP2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsSubSystem2_Impl::GetProperties2(this, core::mem::transmute_copy(&psubsystemprop2)).into() } - unsafe extern "system" fn GetDrive2(this: *mut core::ffi::c_void, sbusnumber: i16, sslotnumber: i16, ulenclosurenumber: u32, ppdrive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystem2_Impl, - { + unsafe extern "system" fn GetDrive2(this: *mut core::ffi::c_void, sbusnumber: i16, sslotnumber: i16, ulenclosurenumber: u32, ppdrive: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystem2_Impl::GetDrive2(this, core::mem::transmute_copy(&sbusnumber), core::mem::transmute_copy(&sslotnumber), core::mem::transmute_copy(&ulenclosurenumber)) { Ok(ok__) => { @@ -3398,10 +2561,7 @@ impl IVdsSubSystem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLun2(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, pwszunmaskinglist: windows_core::PCWSTR, phints2: *const VDS_HINTS2, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystem2_Impl, - { + unsafe extern "system" fn CreateLun2(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, pwszunmaskinglist: windows_core::PCWSTR, phints2: *const VDS_HINTS2, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystem2_Impl::CreateLun2(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&ullsizeinbytes), core::mem::transmute_copy(&pdriveidarray), core::mem::transmute_copy(&lnumberofdrives), core::mem::transmute(&pwszunmaskinglist), core::mem::transmute_copy(&phints2)) { Ok(ok__) => { @@ -3411,10 +2571,7 @@ impl IVdsSubSystem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryMaxLunCreateSize2(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, phints2: *const VDS_HINTS2, pullmaxlunsize: *mut u64) -> windows_core::HRESULT - where - Identity: IVdsSubSystem2_Impl, - { + unsafe extern "system" fn QueryMaxLunCreateSize2(this: *mut core::ffi::c_void, r#type: VDS_LUN_TYPE, pdriveidarray: *const windows_core::GUID, lnumberofdrives: i32, phints2: *const VDS_HINTS2, pullmaxlunsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystem2_Impl::QueryMaxLunCreateSize2(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pdriveidarray), core::mem::transmute_copy(&lnumberofdrives), core::mem::transmute_copy(&phints2)) { Ok(ok__) => { @@ -3436,20 +2593,14 @@ impl IVdsSubSystem2_Vtbl { iid == &::IID } } -pub trait IVdsSubSystemImportTarget_Impl: Sized { +pub trait IVdsSubSystemImportTarget_Impl: Sized + windows_core::IUnknownImpl { fn GetImportTarget(&self) -> windows_core::Result; fn SetImportTarget(&self, pwsziscsiname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsSubSystemImportTarget {} impl IVdsSubSystemImportTarget_Vtbl { - pub const fn new() -> IVdsSubSystemImportTarget_Vtbl - where - Identity: IVdsSubSystemImportTarget_Impl, - { - unsafe extern "system" fn GetImportTarget(this: *mut core::ffi::c_void, ppwsziscsiname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IVdsSubSystemImportTarget_Impl, - { + pub const fn new() -> IVdsSubSystemImportTarget_Vtbl { + unsafe extern "system" fn GetImportTarget(this: *mut core::ffi::c_void, ppwsziscsiname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystemImportTarget_Impl::GetImportTarget(this) { Ok(ok__) => { @@ -3459,10 +2610,7 @@ impl IVdsSubSystemImportTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImportTarget(this: *mut core::ffi::c_void, pwsziscsiname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVdsSubSystemImportTarget_Impl, - { + unsafe extern "system" fn SetImportTarget(this: *mut core::ffi::c_void, pwsziscsiname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsSubSystemImportTarget_Impl::SetImportTarget(this, core::mem::transmute(&pwsziscsiname)).into() } @@ -3476,19 +2624,13 @@ impl IVdsSubSystemImportTarget_Vtbl { iid == &::IID } } -pub trait IVdsSubSystemInterconnect_Impl: Sized { +pub trait IVdsSubSystemInterconnect_Impl: Sized + windows_core::IUnknownImpl { fn GetSupportedInterconnects(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsSubSystemInterconnect {} impl IVdsSubSystemInterconnect_Vtbl { - pub const fn new() -> IVdsSubSystemInterconnect_Vtbl - where - Identity: IVdsSubSystemInterconnect_Impl, - { - unsafe extern "system" fn GetSupportedInterconnects(this: *mut core::ffi::c_void, pulsupportedinterconnectsflag: *mut u32) -> windows_core::HRESULT - where - Identity: IVdsSubSystemInterconnect_Impl, - { + pub const fn new() -> IVdsSubSystemInterconnect_Vtbl { + unsafe extern "system" fn GetSupportedInterconnects(this: *mut core::ffi::c_void, pulsupportedinterconnectsflag: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystemInterconnect_Impl::GetSupportedInterconnects(this) { Ok(ok__) => { @@ -3504,7 +2646,7 @@ impl IVdsSubSystemInterconnect_Vtbl { iid == &::IID } } -pub trait IVdsSubSystemIscsi_Impl: Sized { +pub trait IVdsSubSystemIscsi_Impl: Sized + windows_core::IUnknownImpl { fn QueryTargets(&self) -> windows_core::Result; fn QueryPortals(&self) -> windows_core::Result; fn CreateTarget(&self, pwsziscsiname: &windows_core::PCWSTR, pwszfriendlyname: &windows_core::PCWSTR) -> windows_core::Result; @@ -3512,14 +2654,8 @@ pub trait IVdsSubSystemIscsi_Impl: Sized { } impl windows_core::RuntimeName for IVdsSubSystemIscsi {} impl IVdsSubSystemIscsi_Vtbl { - pub const fn new() -> IVdsSubSystemIscsi_Vtbl - where - Identity: IVdsSubSystemIscsi_Impl, - { - unsafe extern "system" fn QueryTargets(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystemIscsi_Impl, - { + pub const fn new() -> IVdsSubSystemIscsi_Vtbl { + unsafe extern "system" fn QueryTargets(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystemIscsi_Impl::QueryTargets(this) { Ok(ok__) => { @@ -3529,10 +2665,7 @@ impl IVdsSubSystemIscsi_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryPortals(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystemIscsi_Impl, - { + unsafe extern "system" fn QueryPortals(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystemIscsi_Impl::QueryPortals(this) { Ok(ok__) => { @@ -3542,10 +2675,7 @@ impl IVdsSubSystemIscsi_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTarget(this: *mut core::ffi::c_void, pwsziscsiname: windows_core::PCWSTR, pwszfriendlyname: windows_core::PCWSTR, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSubSystemIscsi_Impl, - { + unsafe extern "system" fn CreateTarget(this: *mut core::ffi::c_void, pwsziscsiname: windows_core::PCWSTR, pwszfriendlyname: windows_core::PCWSTR, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSubSystemIscsi_Impl::CreateTarget(this, core::mem::transmute(&pwsziscsiname), core::mem::transmute(&pwszfriendlyname)) { Ok(ok__) => { @@ -3555,10 +2685,7 @@ impl IVdsSubSystemIscsi_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIpsecGroupPresharedKey(this: *mut core::ffi::c_void, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT - where - Identity: IVdsSubSystemIscsi_Impl, - { + unsafe extern "system" fn SetIpsecGroupPresharedKey(this: *mut core::ffi::c_void, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsSubSystemIscsi_Impl::SetIpsecGroupPresharedKey(this, core::mem::transmute_copy(&pipseckey)).into() } @@ -3574,19 +2701,13 @@ impl IVdsSubSystemIscsi_Vtbl { iid == &::IID } } -pub trait IVdsSubSystemNaming_Impl: Sized { +pub trait IVdsSubSystemNaming_Impl: Sized + windows_core::IUnknownImpl { fn SetFriendlyName(&self, pwszfriendlyname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsSubSystemNaming {} impl IVdsSubSystemNaming_Vtbl { - pub const fn new() -> IVdsSubSystemNaming_Vtbl - where - Identity: IVdsSubSystemNaming_Impl, - { - unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, pwszfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVdsSubSystemNaming_Impl, - { + pub const fn new() -> IVdsSubSystemNaming_Vtbl { + unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, pwszfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsSubSystemNaming_Impl::SetFriendlyName(this, core::mem::transmute(&pwszfriendlyname)).into() } @@ -3596,20 +2717,14 @@ impl IVdsSubSystemNaming_Vtbl { iid == &::IID } } -pub trait IVdsSwProvider_Impl: Sized { +pub trait IVdsSwProvider_Impl: Sized + windows_core::IUnknownImpl { fn QueryPacks(&self) -> windows_core::Result; fn CreatePack(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsSwProvider {} impl IVdsSwProvider_Vtbl { - pub const fn new() -> IVdsSwProvider_Vtbl - where - Identity: IVdsSwProvider_Impl, - { - unsafe extern "system" fn QueryPacks(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSwProvider_Impl, - { + pub const fn new() -> IVdsSwProvider_Vtbl { + unsafe extern "system" fn QueryPacks(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSwProvider_Impl::QueryPacks(this) { Ok(ok__) => { @@ -3619,10 +2734,7 @@ impl IVdsSwProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePack(this: *mut core::ffi::c_void, pppack: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsSwProvider_Impl, - { + unsafe extern "system" fn CreatePack(this: *mut core::ffi::c_void, pppack: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsSwProvider_Impl::CreatePack(this) { Ok(ok__) => { @@ -3643,7 +2755,7 @@ impl IVdsSwProvider_Vtbl { } } #[cfg(feature = "Win32_Storage_Vhd")] -pub trait IVdsVDisk_Impl: Sized { +pub trait IVdsVDisk_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, accessmask: super::Vhd::VIRTUAL_DISK_ACCESS_MASK, flags: super::Vhd::OPEN_VIRTUAL_DISK_FLAG, readwritedepth: u32) -> windows_core::Result; fn GetProperties(&self, pdiskproperties: *mut VDS_VDISK_PROPERTIES) -> windows_core::Result<()>; fn GetHostVolume(&self) -> windows_core::Result; @@ -3653,14 +2765,8 @@ pub trait IVdsVDisk_Impl: Sized { impl windows_core::RuntimeName for IVdsVDisk {} #[cfg(feature = "Win32_Storage_Vhd")] impl IVdsVDisk_Vtbl { - pub const fn new() -> IVdsVDisk_Vtbl - where - Identity: IVdsVDisk_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, accessmask: super::Vhd::VIRTUAL_DISK_ACCESS_MASK, flags: super::Vhd::OPEN_VIRTUAL_DISK_FLAG, readwritedepth: u32, ppopenvdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVDisk_Impl, - { + pub const fn new() -> IVdsVDisk_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, accessmask: super::Vhd::VIRTUAL_DISK_ACCESS_MASK, flags: super::Vhd::OPEN_VIRTUAL_DISK_FLAG, readwritedepth: u32, ppopenvdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVDisk_Impl::Open(this, core::mem::transmute_copy(&accessmask), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&readwritedepth)) { Ok(ok__) => { @@ -3670,17 +2776,11 @@ impl IVdsVDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pdiskproperties: *mut VDS_VDISK_PROPERTIES) -> windows_core::HRESULT - where - Identity: IVdsVDisk_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pdiskproperties: *mut VDS_VDISK_PROPERTIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVDisk_Impl::GetProperties(this, core::mem::transmute_copy(&pdiskproperties)).into() } - unsafe extern "system" fn GetHostVolume(this: *mut core::ffi::c_void, ppvolume: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVDisk_Impl, - { + unsafe extern "system" fn GetHostVolume(this: *mut core::ffi::c_void, ppvolume: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVDisk_Impl::GetHostVolume(this) { Ok(ok__) => { @@ -3690,10 +2790,7 @@ impl IVdsVDisk_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceName(this: *mut core::ffi::c_void, ppdevicename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IVdsVDisk_Impl, - { + unsafe extern "system" fn GetDeviceName(this: *mut core::ffi::c_void, ppdevicename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVDisk_Impl::GetDeviceName(this) { Ok(ok__) => { @@ -3716,7 +2813,7 @@ impl IVdsVDisk_Vtbl { } } #[cfg(feature = "Win32_Storage_Vhd")] -pub trait IVdsVdProvider_Impl: Sized { +pub trait IVdsVdProvider_Impl: Sized + windows_core::IUnknownImpl { fn QueryVDisks(&self) -> windows_core::Result; fn CreateVDisk(&self, virtualdevicetype: *const super::Vhd::VIRTUAL_STORAGE_TYPE, ppath: &windows_core::PCWSTR, pstringsecuritydescriptor: &windows_core::PCWSTR, flags: super::Vhd::CREATE_VIRTUAL_DISK_FLAG, providerspecificflags: u32, reserved: u32, pcreatediskparameters: *const VDS_CREATE_VDISK_PARAMETERS, ppasync: *mut Option) -> windows_core::Result<()>; fn AddVDisk(&self, virtualdevicetype: *const super::Vhd::VIRTUAL_STORAGE_TYPE, ppath: &windows_core::PCWSTR, ppvdisk: *mut Option) -> windows_core::Result<()>; @@ -3727,14 +2824,8 @@ pub trait IVdsVdProvider_Impl: Sized { impl windows_core::RuntimeName for IVdsVdProvider {} #[cfg(feature = "Win32_Storage_Vhd")] impl IVdsVdProvider_Vtbl { - pub const fn new() -> IVdsVdProvider_Vtbl - where - Identity: IVdsVdProvider_Impl, - { - unsafe extern "system" fn QueryVDisks(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVdProvider_Impl, - { + pub const fn new() -> IVdsVdProvider_Vtbl { + unsafe extern "system" fn QueryVDisks(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVdProvider_Impl::QueryVDisks(this) { Ok(ok__) => { @@ -3744,24 +2835,15 @@ impl IVdsVdProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVDisk(this: *mut core::ffi::c_void, virtualdevicetype: *const super::Vhd::VIRTUAL_STORAGE_TYPE, ppath: windows_core::PCWSTR, pstringsecuritydescriptor: windows_core::PCWSTR, flags: super::Vhd::CREATE_VIRTUAL_DISK_FLAG, providerspecificflags: u32, reserved: u32, pcreatediskparameters: *const VDS_CREATE_VDISK_PARAMETERS, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVdProvider_Impl, - { + unsafe extern "system" fn CreateVDisk(this: *mut core::ffi::c_void, virtualdevicetype: *const super::Vhd::VIRTUAL_STORAGE_TYPE, ppath: windows_core::PCWSTR, pstringsecuritydescriptor: windows_core::PCWSTR, flags: super::Vhd::CREATE_VIRTUAL_DISK_FLAG, providerspecificflags: u32, reserved: u32, pcreatediskparameters: *const VDS_CREATE_VDISK_PARAMETERS, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVdProvider_Impl::CreateVDisk(this, core::mem::transmute_copy(&virtualdevicetype), core::mem::transmute(&ppath), core::mem::transmute(&pstringsecuritydescriptor), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&providerspecificflags), core::mem::transmute_copy(&reserved), core::mem::transmute_copy(&pcreatediskparameters), core::mem::transmute_copy(&ppasync)).into() } - unsafe extern "system" fn AddVDisk(this: *mut core::ffi::c_void, virtualdevicetype: *const super::Vhd::VIRTUAL_STORAGE_TYPE, ppath: windows_core::PCWSTR, ppvdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVdProvider_Impl, - { + unsafe extern "system" fn AddVDisk(this: *mut core::ffi::c_void, virtualdevicetype: *const super::Vhd::VIRTUAL_STORAGE_TYPE, ppath: windows_core::PCWSTR, ppvdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVdProvider_Impl::AddVDisk(this, core::mem::transmute_copy(&virtualdevicetype), core::mem::transmute(&ppath), core::mem::transmute_copy(&ppvdisk)).into() } - unsafe extern "system" fn GetDiskFromVDisk(this: *mut core::ffi::c_void, pvdisk: *mut core::ffi::c_void, ppdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVdProvider_Impl, - { + unsafe extern "system" fn GetDiskFromVDisk(this: *mut core::ffi::c_void, pvdisk: *mut core::ffi::c_void, ppdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVdProvider_Impl::GetDiskFromVDisk(this, windows_core::from_raw_borrowed(&pvdisk)) { Ok(ok__) => { @@ -3771,10 +2853,7 @@ impl IVdsVdProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVDiskFromDisk(this: *mut core::ffi::c_void, pdisk: *mut core::ffi::c_void, ppvdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVdProvider_Impl, - { + unsafe extern "system" fn GetVDiskFromDisk(this: *mut core::ffi::c_void, pdisk: *mut core::ffi::c_void, ppvdisk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVdProvider_Impl::GetVDiskFromDisk(this, windows_core::from_raw_borrowed(&pdisk)) { Ok(ok__) => { @@ -3797,7 +2876,7 @@ impl IVdsVdProvider_Vtbl { iid == &::IID } } -pub trait IVdsVolume_Impl: Sized { +pub trait IVdsVolume_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pvolumeproperties: *mut VDS_VOLUME_PROP) -> windows_core::Result<()>; fn GetPack(&self) -> windows_core::Result; fn QueryPlexes(&self) -> windows_core::Result; @@ -3812,21 +2891,12 @@ pub trait IVdsVolume_Impl: Sized { } impl windows_core::RuntimeName for IVdsVolume {} impl IVdsVolume_Vtbl { - pub const fn new() -> IVdsVolume_Vtbl - where - Identity: IVdsVolume_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pvolumeproperties: *mut VDS_VOLUME_PROP) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + pub const fn new() -> IVdsVolume_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pvolumeproperties: *mut VDS_VOLUME_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolume_Impl::GetProperties(this, core::mem::transmute_copy(&pvolumeproperties)).into() } - unsafe extern "system" fn GetPack(this: *mut core::ffi::c_void, pppack: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + unsafe extern "system" fn GetPack(this: *mut core::ffi::c_void, pppack: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolume_Impl::GetPack(this) { Ok(ok__) => { @@ -3836,10 +2906,7 @@ impl IVdsVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryPlexes(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + unsafe extern "system" fn QueryPlexes(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolume_Impl::QueryPlexes(this) { Ok(ok__) => { @@ -3849,10 +2916,7 @@ impl IVdsVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Extend(this: *mut core::ffi::c_void, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + unsafe extern "system" fn Extend(this: *mut core::ffi::c_void, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolume_Impl::Extend(this, core::mem::transmute_copy(&pinputdiskarray), core::mem::transmute_copy(&lnumberofdisks)) { Ok(ok__) => { @@ -3862,10 +2926,7 @@ impl IVdsVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shrink(this: *mut core::ffi::c_void, ullnumberofbytestoremove: u64, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + unsafe extern "system" fn Shrink(this: *mut core::ffi::c_void, ullnumberofbytestoremove: u64, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolume_Impl::Shrink(this, core::mem::transmute_copy(&ullnumberofbytestoremove)) { Ok(ok__) => { @@ -3875,10 +2936,7 @@ impl IVdsVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPlex(this: *mut core::ffi::c_void, volumeid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + unsafe extern "system" fn AddPlex(this: *mut core::ffi::c_void, volumeid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolume_Impl::AddPlex(this, core::mem::transmute(&volumeid)) { Ok(ok__) => { @@ -3888,10 +2946,7 @@ impl IVdsVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BreakPlex(this: *mut core::ffi::c_void, plexid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + unsafe extern "system" fn BreakPlex(this: *mut core::ffi::c_void, plexid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolume_Impl::BreakPlex(this, core::mem::transmute(&plexid)) { Ok(ok__) => { @@ -3901,10 +2956,7 @@ impl IVdsVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemovePlex(this: *mut core::ffi::c_void, plexid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + unsafe extern "system" fn RemovePlex(this: *mut core::ffi::c_void, plexid: windows_core::GUID, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolume_Impl::RemovePlex(this, core::mem::transmute(&plexid)) { Ok(ok__) => { @@ -3914,24 +2966,15 @@ impl IVdsVolume_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, bforce: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, bforce: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolume_Impl::Delete(this, core::mem::transmute_copy(&bforce)).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u32, brevertonclose: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u32, brevertonclose: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolume_Impl::SetFlags(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&brevertonclose)).into() } - unsafe extern "system" fn ClearFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IVdsVolume_Impl, - { + unsafe extern "system" fn ClearFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolume_Impl::ClearFlags(this, core::mem::transmute_copy(&ulflags)).into() } @@ -3954,19 +2997,13 @@ impl IVdsVolume_Vtbl { iid == &::IID } } -pub trait IVdsVolume2_Impl: Sized { +pub trait IVdsVolume2_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties2(&self, pvolumeproperties: *mut VDS_VOLUME_PROP2) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsVolume2 {} impl IVdsVolume2_Vtbl { - pub const fn new() -> IVdsVolume2_Vtbl - where - Identity: IVdsVolume2_Impl, - { - unsafe extern "system" fn GetProperties2(this: *mut core::ffi::c_void, pvolumeproperties: *mut VDS_VOLUME_PROP2) -> windows_core::HRESULT - where - Identity: IVdsVolume2_Impl, - { + pub const fn new() -> IVdsVolume2_Vtbl { + unsafe extern "system" fn GetProperties2(this: *mut core::ffi::c_void, pvolumeproperties: *mut VDS_VOLUME_PROP2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolume2_Impl::GetProperties2(this, core::mem::transmute_copy(&pvolumeproperties)).into() } @@ -3976,7 +3013,7 @@ impl IVdsVolume2_Vtbl { iid == &::IID } } -pub trait IVdsVolumeMF_Impl: Sized { +pub trait IVdsVolumeMF_Impl: Sized + windows_core::IUnknownImpl { fn GetFileSystemProperties(&self, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> windows_core::Result<()>; fn Format(&self, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: &windows_core::PCWSTR, dwunitallocationsize: u32, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL) -> windows_core::Result; fn AddAccessPath(&self, pwszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -3990,21 +3027,12 @@ pub trait IVdsVolumeMF_Impl: Sized { } impl windows_core::RuntimeName for IVdsVolumeMF {} impl IVdsVolumeMF_Vtbl { - pub const fn new() -> IVdsVolumeMF_Vtbl - where - Identity: IVdsVolumeMF_Impl, - { - unsafe extern "system" fn GetFileSystemProperties(this: *mut core::ffi::c_void, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF_Impl, - { + pub const fn new() -> IVdsVolumeMF_Vtbl { + unsafe extern "system" fn GetFileSystemProperties(this: *mut core::ffi::c_void, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::GetFileSystemProperties(this, core::mem::transmute_copy(&pfilesystemprop)).into() } - unsafe extern "system" fn Format(this: *mut core::ffi::c_void, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: windows_core::PCWSTR, dwunitallocationsize: u32, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF_Impl, - { + unsafe extern "system" fn Format(this: *mut core::ffi::c_void, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: windows_core::PCWSTR, dwunitallocationsize: u32, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolumeMF_Impl::Format(this, core::mem::transmute_copy(&r#type), core::mem::transmute(&pwszlabel), core::mem::transmute_copy(&dwunitallocationsize), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bquickformat), core::mem::transmute_copy(&benablecompression)) { Ok(ok__) => { @@ -4014,59 +3042,35 @@ impl IVdsVolumeMF_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddAccessPath(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF_Impl, - { + unsafe extern "system" fn AddAccessPath(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::AddAccessPath(this, core::mem::transmute(&pwszpath)).into() } - unsafe extern "system" fn QueryAccessPaths(this: *mut core::ffi::c_void, pwszpatharray: *mut *mut windows_core::PWSTR, plnumberofaccesspaths: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF_Impl, - { + unsafe extern "system" fn QueryAccessPaths(this: *mut core::ffi::c_void, pwszpatharray: *mut *mut windows_core::PWSTR, plnumberofaccesspaths: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::QueryAccessPaths(this, core::mem::transmute_copy(&pwszpatharray), core::mem::transmute_copy(&plnumberofaccesspaths)).into() } - unsafe extern "system" fn QueryReparsePoints(this: *mut core::ffi::c_void, ppreparsepointprops: *mut *mut VDS_REPARSE_POINT_PROP, plnumberofreparsepointprops: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF_Impl, - { + unsafe extern "system" fn QueryReparsePoints(this: *mut core::ffi::c_void, ppreparsepointprops: *mut *mut VDS_REPARSE_POINT_PROP, plnumberofreparsepointprops: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::QueryReparsePoints(this, core::mem::transmute_copy(&ppreparsepointprops), core::mem::transmute_copy(&plnumberofreparsepointprops)).into() } - unsafe extern "system" fn DeleteAccessPath(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR, bforce: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF_Impl, - { + unsafe extern "system" fn DeleteAccessPath(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR, bforce: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::DeleteAccessPath(this, core::mem::transmute(&pwszpath), core::mem::transmute_copy(&bforce)).into() } - unsafe extern "system" fn Mount(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF_Impl, - { + unsafe extern "system" fn Mount(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::Mount(this).into() } - unsafe extern "system" fn Dismount(this: *mut core::ffi::c_void, bforce: super::super::Foundation::BOOL, bpermanent: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF_Impl, - { + unsafe extern "system" fn Dismount(this: *mut core::ffi::c_void, bforce: super::super::Foundation::BOOL, bpermanent: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::Dismount(this, core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bpermanent)).into() } - unsafe extern "system" fn SetFileSystemFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF_Impl, - { + unsafe extern "system" fn SetFileSystemFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::SetFileSystemFlags(this, core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn ClearFileSystemFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF_Impl, - { + unsafe extern "system" fn ClearFileSystemFlags(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::ClearFileSystemFlags(this, core::mem::transmute_copy(&ulflags)).into() } @@ -4088,21 +3092,15 @@ impl IVdsVolumeMF_Vtbl { iid == &::IID } } -pub trait IVdsVolumeMF2_Impl: Sized { +pub trait IVdsVolumeMF2_Impl: Sized + windows_core::IUnknownImpl { fn GetFileSystemTypeName(&self) -> windows_core::Result; fn QueryFileSystemFormatSupport(&self, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> windows_core::Result<()>; fn FormatEx(&self, pwszfilesystemtypename: &windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: &windows_core::PCWSTR, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsVolumeMF2 {} impl IVdsVolumeMF2_Vtbl { - pub const fn new() -> IVdsVolumeMF2_Vtbl - where - Identity: IVdsVolumeMF2_Impl, - { - unsafe extern "system" fn GetFileSystemTypeName(this: *mut core::ffi::c_void, ppwszfilesystemtypename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF2_Impl, - { + pub const fn new() -> IVdsVolumeMF2_Vtbl { + unsafe extern "system" fn GetFileSystemTypeName(this: *mut core::ffi::c_void, ppwszfilesystemtypename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolumeMF2_Impl::GetFileSystemTypeName(this) { Ok(ok__) => { @@ -4112,17 +3110,11 @@ impl IVdsVolumeMF2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryFileSystemFormatSupport(this: *mut core::ffi::c_void, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF2_Impl, - { + unsafe extern "system" fn QueryFileSystemFormatSupport(this: *mut core::ffi::c_void, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF2_Impl::QueryFileSystemFormatSupport(this, core::mem::transmute_copy(&ppfilesystemsupportprops), core::mem::transmute_copy(&plnumberoffilesystems)).into() } - unsafe extern "system" fn FormatEx(this: *mut core::ffi::c_void, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF2_Impl, - { + unsafe extern "system" fn FormatEx(this: *mut core::ffi::c_void, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolumeMF2_Impl::FormatEx(this, core::mem::transmute(&pwszfilesystemtypename), core::mem::transmute_copy(&usfilesystemrevision), core::mem::transmute_copy(&uldesiredunitallocationsize), core::mem::transmute(&pwszlabel), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bquickformat), core::mem::transmute_copy(&benablecompression)) { Ok(ok__) => { @@ -4143,28 +3135,19 @@ impl IVdsVolumeMF2_Vtbl { iid == &::IID } } -pub trait IVdsVolumeMF3_Impl: Sized { +pub trait IVdsVolumeMF3_Impl: Sized + windows_core::IUnknownImpl { fn QueryVolumeGuidPathnames(&self, pwszpatharray: *mut *mut windows_core::PWSTR, pulnumberofpaths: *mut u32) -> windows_core::Result<()>; fn FormatEx2(&self, pwszfilesystemtypename: &windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: &windows_core::PCWSTR, options: u32) -> windows_core::Result; fn OfflineVolume(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsVolumeMF3 {} impl IVdsVolumeMF3_Vtbl { - pub const fn new() -> IVdsVolumeMF3_Vtbl - where - Identity: IVdsVolumeMF3_Impl, - { - unsafe extern "system" fn QueryVolumeGuidPathnames(this: *mut core::ffi::c_void, pwszpatharray: *mut *mut windows_core::PWSTR, pulnumberofpaths: *mut u32) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF3_Impl, - { + pub const fn new() -> IVdsVolumeMF3_Vtbl { + unsafe extern "system" fn QueryVolumeGuidPathnames(this: *mut core::ffi::c_void, pwszpatharray: *mut *mut windows_core::PWSTR, pulnumberofpaths: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF3_Impl::QueryVolumeGuidPathnames(this, core::mem::transmute_copy(&pwszpatharray), core::mem::transmute_copy(&pulnumberofpaths)).into() } - unsafe extern "system" fn FormatEx2(this: *mut core::ffi::c_void, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, options: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF3_Impl, - { + unsafe extern "system" fn FormatEx2(this: *mut core::ffi::c_void, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, options: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolumeMF3_Impl::FormatEx2(this, core::mem::transmute(&pwszfilesystemtypename), core::mem::transmute_copy(&usfilesystemrevision), core::mem::transmute_copy(&uldesiredunitallocationsize), core::mem::transmute(&pwszlabel), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -4174,10 +3157,7 @@ impl IVdsVolumeMF3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OfflineVolume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolumeMF3_Impl, - { + unsafe extern "system" fn OfflineVolume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF3_Impl::OfflineVolume(this).into() } @@ -4192,19 +3172,13 @@ impl IVdsVolumeMF3_Vtbl { iid == &::IID } } -pub trait IVdsVolumeOnline_Impl: Sized { +pub trait IVdsVolumeOnline_Impl: Sized + windows_core::IUnknownImpl { fn Online(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVdsVolumeOnline {} impl IVdsVolumeOnline_Vtbl { - pub const fn new() -> IVdsVolumeOnline_Vtbl - where - Identity: IVdsVolumeOnline_Impl, - { - unsafe extern "system" fn Online(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolumeOnline_Impl, - { + pub const fn new() -> IVdsVolumeOnline_Vtbl { + unsafe extern "system" fn Online(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeOnline_Impl::Online(this).into() } @@ -4214,7 +3188,7 @@ impl IVdsVolumeOnline_Vtbl { iid == &::IID } } -pub trait IVdsVolumePlex_Impl: Sized { +pub trait IVdsVolumePlex_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, pplexproperties: *mut VDS_VOLUME_PLEX_PROP) -> windows_core::Result<()>; fn GetVolume(&self) -> windows_core::Result; fn QueryExtents(&self, ppextentarray: *mut *mut VDS_DISK_EXTENT, plnumberofextents: *mut i32) -> windows_core::Result<()>; @@ -4222,21 +3196,12 @@ pub trait IVdsVolumePlex_Impl: Sized { } impl windows_core::RuntimeName for IVdsVolumePlex {} impl IVdsVolumePlex_Vtbl { - pub const fn new() -> IVdsVolumePlex_Vtbl - where - Identity: IVdsVolumePlex_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pplexproperties: *mut VDS_VOLUME_PLEX_PROP) -> windows_core::HRESULT - where - Identity: IVdsVolumePlex_Impl, - { + pub const fn new() -> IVdsVolumePlex_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pplexproperties: *mut VDS_VOLUME_PLEX_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumePlex_Impl::GetProperties(this, core::mem::transmute_copy(&pplexproperties)).into() } - unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void, ppvolume: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolumePlex_Impl, - { + unsafe extern "system" fn GetVolume(this: *mut core::ffi::c_void, ppvolume: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolumePlex_Impl::GetVolume(this) { Ok(ok__) => { @@ -4246,17 +3211,11 @@ impl IVdsVolumePlex_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryExtents(this: *mut core::ffi::c_void, ppextentarray: *mut *mut VDS_DISK_EXTENT, plnumberofextents: *mut i32) -> windows_core::HRESULT - where - Identity: IVdsVolumePlex_Impl, - { + unsafe extern "system" fn QueryExtents(this: *mut core::ffi::c_void, ppextentarray: *mut *mut VDS_DISK_EXTENT, plnumberofextents: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumePlex_Impl::QueryExtents(this, core::mem::transmute_copy(&ppextentarray), core::mem::transmute_copy(&plnumberofextents)).into() } - unsafe extern "system" fn Repair(this: *mut core::ffi::c_void, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolumePlex_Impl, - { + unsafe extern "system" fn Repair(this: *mut core::ffi::c_void, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolumePlex_Impl::Repair(this, core::mem::transmute_copy(&pinputdiskarray), core::mem::transmute_copy(&lnumberofdisks)) { Ok(ok__) => { @@ -4278,20 +3237,14 @@ impl IVdsVolumePlex_Vtbl { iid == &::IID } } -pub trait IVdsVolumeShrink_Impl: Sized { +pub trait IVdsVolumeShrink_Impl: Sized + windows_core::IUnknownImpl { fn QueryMaxReclaimableBytes(&self) -> windows_core::Result; fn Shrink(&self, ulldesirednumberofreclaimablebytes: u64, ullminnumberofreclaimablebytes: u64) -> windows_core::Result; } impl windows_core::RuntimeName for IVdsVolumeShrink {} impl IVdsVolumeShrink_Vtbl { - pub const fn new() -> IVdsVolumeShrink_Vtbl - where - Identity: IVdsVolumeShrink_Impl, - { - unsafe extern "system" fn QueryMaxReclaimableBytes(this: *mut core::ffi::c_void, pullmaxnumberofreclaimablebytes: *mut u64) -> windows_core::HRESULT - where - Identity: IVdsVolumeShrink_Impl, - { + pub const fn new() -> IVdsVolumeShrink_Vtbl { + unsafe extern "system" fn QueryMaxReclaimableBytes(this: *mut core::ffi::c_void, pullmaxnumberofreclaimablebytes: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolumeShrink_Impl::QueryMaxReclaimableBytes(this) { Ok(ok__) => { @@ -4301,10 +3254,7 @@ impl IVdsVolumeShrink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shrink(this: *mut core::ffi::c_void, ulldesirednumberofreclaimablebytes: u64, ullminnumberofreclaimablebytes: u64, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVdsVolumeShrink_Impl, - { + unsafe extern "system" fn Shrink(this: *mut core::ffi::c_void, ulldesirednumberofreclaimablebytes: u64, ullminnumberofreclaimablebytes: u64, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolumeShrink_Impl::Shrink(this, core::mem::transmute_copy(&ulldesirednumberofreclaimablebytes), core::mem::transmute_copy(&ullminnumberofreclaimablebytes)) { Ok(ok__) => { 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 47d835f89f..df3f48cdd4 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs @@ -1,4 +1,4 @@ -pub trait IVssAdmin_Impl: Sized { +pub trait IVssAdmin_Impl: Sized + windows_core::IUnknownImpl { fn RegisterProvider(&self, pproviderid: &windows_core::GUID, classid: &windows_core::GUID, pwszprovidername: *const u16, eprovidertype: VSS_PROVIDER_TYPE, pwszproviderversion: *const u16, providerversionid: &windows_core::GUID) -> windows_core::Result<()>; fn UnregisterProvider(&self, providerid: &windows_core::GUID) -> windows_core::Result<()>; fn QueryProviders(&self) -> windows_core::Result; @@ -6,28 +6,16 @@ pub trait IVssAdmin_Impl: Sized { } impl windows_core::RuntimeName for IVssAdmin {} impl IVssAdmin_Vtbl { - pub const fn new() -> IVssAdmin_Vtbl - where - Identity: IVssAdmin_Impl, - { - unsafe extern "system" fn RegisterProvider(this: *mut core::ffi::c_void, pproviderid: windows_core::GUID, classid: windows_core::GUID, pwszprovidername: *const u16, eprovidertype: VSS_PROVIDER_TYPE, pwszproviderversion: *const u16, providerversionid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssAdmin_Impl, - { + pub const fn new() -> IVssAdmin_Vtbl { + unsafe extern "system" fn RegisterProvider(this: *mut core::ffi::c_void, pproviderid: windows_core::GUID, classid: windows_core::GUID, pwszprovidername: *const u16, eprovidertype: VSS_PROVIDER_TYPE, pwszproviderversion: *const u16, providerversionid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssAdmin_Impl::RegisterProvider(this, core::mem::transmute(&pproviderid), core::mem::transmute(&classid), core::mem::transmute_copy(&pwszprovidername), core::mem::transmute_copy(&eprovidertype), core::mem::transmute_copy(&pwszproviderversion), core::mem::transmute(&providerversionid)).into() } - unsafe extern "system" fn UnregisterProvider(this: *mut core::ffi::c_void, providerid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssAdmin_Impl, - { + unsafe extern "system" fn UnregisterProvider(this: *mut core::ffi::c_void, providerid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssAdmin_Impl::UnregisterProvider(this, core::mem::transmute(&providerid)).into() } - unsafe extern "system" fn QueryProviders(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssAdmin_Impl, - { + unsafe extern "system" fn QueryProviders(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssAdmin_Impl::QueryProviders(this) { Ok(ok__) => { @@ -37,10 +25,7 @@ impl IVssAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AbortAllSnapshotsInProgress(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssAdmin_Impl, - { + unsafe extern "system" fn AbortAllSnapshotsInProgress(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssAdmin_Impl::AbortAllSnapshotsInProgress(this).into() } @@ -63,14 +48,8 @@ pub trait IVssAdminEx_Impl: Sized + IVssAdmin_Impl { } impl windows_core::RuntimeName for IVssAdminEx {} impl IVssAdminEx_Vtbl { - pub const fn new() -> IVssAdminEx_Vtbl - where - Identity: IVssAdminEx_Impl, - { - unsafe extern "system" fn GetProviderCapability(this: *mut core::ffi::c_void, pproviderid: windows_core::GUID, plloriginalcapabilitymask: *mut u64) -> windows_core::HRESULT - where - Identity: IVssAdminEx_Impl, - { + pub const fn new() -> IVssAdminEx_Vtbl { + unsafe extern "system" fn GetProviderCapability(this: *mut core::ffi::c_void, pproviderid: windows_core::GUID, plloriginalcapabilitymask: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssAdminEx_Impl::GetProviderCapability(this, core::mem::transmute(&pproviderid)) { Ok(ok__) => { @@ -80,10 +59,7 @@ impl IVssAdminEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderContext(this: *mut core::ffi::c_void, providerid: windows_core::GUID, plcontext: *mut i32) -> windows_core::HRESULT - where - Identity: IVssAdminEx_Impl, - { + unsafe extern "system" fn GetProviderContext(this: *mut core::ffi::c_void, providerid: windows_core::GUID, plcontext: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssAdminEx_Impl::GetProviderContext(this, core::mem::transmute(&providerid)) { Ok(ok__) => { @@ -93,10 +69,7 @@ impl IVssAdminEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderContext(this: *mut core::ffi::c_void, providerid: windows_core::GUID, lcontext: i32) -> windows_core::HRESULT - where - Identity: IVssAdminEx_Impl, - { + unsafe extern "system" fn SetProviderContext(this: *mut core::ffi::c_void, providerid: windows_core::GUID, lcontext: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssAdminEx_Impl::SetProviderContext(this, core::mem::transmute(&providerid), core::mem::transmute_copy(&lcontext)).into() } @@ -111,35 +84,23 @@ impl IVssAdminEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IVssAsync_Impl: Sized { +pub trait IVssAsync_Impl: Sized + windows_core::IUnknownImpl { fn Cancel(&self) -> windows_core::Result<()>; fn Wait(&self, dwmilliseconds: u32) -> windows_core::Result<()>; fn QueryStatus(&self, phrresult: *mut windows_core::HRESULT, preserved: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVssAsync {} impl IVssAsync_Vtbl { - pub const fn new() -> IVssAsync_Vtbl - where - Identity: IVssAsync_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssAsync_Impl, - { + pub const fn new() -> IVssAsync_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssAsync_Impl::Cancel(this).into() } - unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwmilliseconds: u32) -> windows_core::HRESULT - where - Identity: IVssAsync_Impl, - { + unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwmilliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssAsync_Impl::Wait(this, core::mem::transmute_copy(&dwmilliseconds)).into() } - unsafe extern "system" fn QueryStatus(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, preserved: *mut i32) -> windows_core::HRESULT - where - Identity: IVssAsync_Impl, - { + unsafe extern "system" fn QueryStatus(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, preserved: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssAsync_Impl::QueryStatus(this, core::mem::transmute_copy(&phrresult), core::mem::transmute_copy(&preserved)).into() } @@ -154,7 +115,7 @@ impl IVssAsync_Vtbl { iid == &::IID } } -pub trait IVssComponent_Impl: Sized { +pub trait IVssComponent_Impl: Sized + windows_core::IUnknownImpl { 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 windows_core::BSTR) -> windows_core::Result<()>; @@ -196,49 +157,28 @@ pub trait IVssComponent_Impl: Sized { } impl windows_core::RuntimeName for IVssComponent {} impl IVssComponent_Vtbl { - pub const fn new() -> IVssComponent_Vtbl - where - Identity: IVssComponent_Impl, - { - unsafe extern "system" fn GetLogicalPath(this: *mut core::ffi::c_void, pbstrpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + pub const fn new() -> IVssComponent_Vtbl { + unsafe extern "system" fn GetLogicalPath(this: *mut core::ffi::c_void, pbstrpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetLogicalPath(this, core::mem::transmute_copy(&pbstrpath)).into() } - unsafe extern "system" fn GetComponentType(this: *mut core::ffi::c_void, pct: *mut VSS_COMPONENT_TYPE) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetComponentType(this: *mut core::ffi::c_void, pct: *mut VSS_COMPONENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetComponentType(this, core::mem::transmute_copy(&pct)).into() } - unsafe extern "system" fn GetComponentName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetComponentName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetComponentName(this, core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn GetBackupSucceeded(this: *mut core::ffi::c_void, pbsucceeded: *mut bool) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetBackupSucceeded(this: *mut core::ffi::c_void, pbsucceeded: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetBackupSucceeded(this, core::mem::transmute_copy(&pbsucceeded)).into() } - unsafe extern "system" fn GetAlternateLocationMappingCount(this: *mut core::ffi::c_void, pcmappings: *mut u32) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetAlternateLocationMappingCount(this: *mut core::ffi::c_void, pcmappings: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetAlternateLocationMappingCount(this, core::mem::transmute_copy(&pcmappings)).into() } - unsafe extern "system" fn GetAlternateLocationMapping(this: *mut core::ffi::c_void, imapping: u32, ppfiledesc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetAlternateLocationMapping(this: *mut core::ffi::c_void, imapping: u32, ppfiledesc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssComponent_Impl::GetAlternateLocationMapping(this, core::mem::transmute_copy(&imapping)) { Ok(ok__) => { @@ -248,66 +188,39 @@ impl IVssComponent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackupMetadata(this: *mut core::ffi::c_void, wszdata: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn SetBackupMetadata(this: *mut core::ffi::c_void, wszdata: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::SetBackupMetadata(this, core::mem::transmute(&wszdata)).into() } - unsafe extern "system" fn GetBackupMetadata(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetBackupMetadata(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetBackupMetadata(this, core::mem::transmute_copy(&pbstrdata)).into() } - unsafe extern "system" fn AddPartialFile(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 - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn AddPartialFile(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::AddPartialFile(this, core::mem::transmute(&wszpath), core::mem::transmute(&wszfilename), core::mem::transmute(&wszranges), core::mem::transmute(&wszmetadata)).into() } - unsafe extern "system" fn GetPartialFileCount(this: *mut core::ffi::c_void, pcpartialfiles: *mut u32) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetPartialFileCount(this: *mut core::ffi::c_void, pcpartialfiles: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetPartialFileCount(this, core::mem::transmute_copy(&pcpartialfiles)).into() } - unsafe extern "system" fn GetPartialFile(this: *mut core::ffi::c_void, ipartialfile: u32, pbstrpath: *mut core::mem::MaybeUninit, pbstrfilename: *mut core::mem::MaybeUninit, pbstrrange: *mut core::mem::MaybeUninit, pbstrmetadata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetPartialFile(this: *mut core::ffi::c_void, ipartialfile: u32, pbstrpath: *mut core::mem::MaybeUninit, pbstrfilename: *mut core::mem::MaybeUninit, pbstrrange: *mut core::mem::MaybeUninit, pbstrmetadata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetPartialFile(this, 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() } - unsafe extern "system" fn IsSelectedForRestore(this: *mut core::ffi::c_void, pbselectedforrestore: *mut bool) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn IsSelectedForRestore(this: *mut core::ffi::c_void, pbselectedforrestore: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::IsSelectedForRestore(this, core::mem::transmute_copy(&pbselectedforrestore)).into() } - unsafe extern "system" fn GetAdditionalRestores(this: *mut core::ffi::c_void, pbadditionalrestores: *mut bool) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetAdditionalRestores(this: *mut core::ffi::c_void, pbadditionalrestores: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetAdditionalRestores(this, core::mem::transmute_copy(&pbadditionalrestores)).into() } - unsafe extern "system" fn GetNewTargetCount(this: *mut core::ffi::c_void, pcnewtarget: *mut u32) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetNewTargetCount(this: *mut core::ffi::c_void, pcnewtarget: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetNewTargetCount(this, core::mem::transmute_copy(&pcnewtarget)).into() } - unsafe extern "system" fn GetNewTarget(this: *mut core::ffi::c_void, inewtarget: u32, ppfiledesc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetNewTarget(this: *mut core::ffi::c_void, inewtarget: u32, ppfiledesc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssComponent_Impl::GetNewTarget(this, core::mem::transmute_copy(&inewtarget)) { Ok(ok__) => { @@ -317,164 +230,95 @@ impl IVssComponent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddDirectedTarget(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 - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn AddDirectedTarget(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::AddDirectedTarget(this, core::mem::transmute(&wszsourcepath), core::mem::transmute(&wszsourcefilename), core::mem::transmute(&wszsourcerangelist), core::mem::transmute(&wszdestinationpath), core::mem::transmute(&wszdestinationfilename), core::mem::transmute(&wszdestinationrangelist)).into() } - unsafe extern "system" fn GetDirectedTargetCount(this: *mut core::ffi::c_void, pcdirectedtarget: *mut u32) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetDirectedTargetCount(this: *mut core::ffi::c_void, pcdirectedtarget: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetDirectedTargetCount(this, core::mem::transmute_copy(&pcdirectedtarget)).into() } - unsafe extern "system" fn GetDirectedTarget(this: *mut core::ffi::c_void, idirectedtarget: u32, pbstrsourcepath: *mut core::mem::MaybeUninit, pbstrsourcefilename: *mut core::mem::MaybeUninit, pbstrsourcerangelist: *mut core::mem::MaybeUninit, pbstrdestinationpath: *mut core::mem::MaybeUninit, pbstrdestinationfilename: *mut core::mem::MaybeUninit, pbstrdestinationrangelist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetDirectedTarget(this: *mut core::ffi::c_void, idirectedtarget: u32, pbstrsourcepath: *mut core::mem::MaybeUninit, pbstrsourcefilename: *mut core::mem::MaybeUninit, pbstrsourcerangelist: *mut core::mem::MaybeUninit, pbstrdestinationpath: *mut core::mem::MaybeUninit, pbstrdestinationfilename: *mut core::mem::MaybeUninit, pbstrdestinationrangelist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetDirectedTarget(this, 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() } - unsafe extern "system" fn SetRestoreMetadata(this: *mut core::ffi::c_void, wszrestoremetadata: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn SetRestoreMetadata(this: *mut core::ffi::c_void, wszrestoremetadata: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::SetRestoreMetadata(this, core::mem::transmute(&wszrestoremetadata)).into() } - unsafe extern "system" fn GetRestoreMetadata(this: *mut core::ffi::c_void, pbstrrestoremetadata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetRestoreMetadata(this: *mut core::ffi::c_void, pbstrrestoremetadata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetRestoreMetadata(this, core::mem::transmute_copy(&pbstrrestoremetadata)).into() } - unsafe extern "system" fn SetRestoreTarget(this: *mut core::ffi::c_void, target: VSS_RESTORE_TARGET) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn SetRestoreTarget(this: *mut core::ffi::c_void, target: VSS_RESTORE_TARGET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::SetRestoreTarget(this, core::mem::transmute_copy(&target)).into() } - unsafe extern "system" fn GetRestoreTarget(this: *mut core::ffi::c_void, ptarget: *mut VSS_RESTORE_TARGET) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetRestoreTarget(this: *mut core::ffi::c_void, ptarget: *mut VSS_RESTORE_TARGET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetRestoreTarget(this, core::mem::transmute_copy(&ptarget)).into() } - unsafe extern "system" fn SetPreRestoreFailureMsg(this: *mut core::ffi::c_void, wszprerestorefailuremsg: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn SetPreRestoreFailureMsg(this: *mut core::ffi::c_void, wszprerestorefailuremsg: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::SetPreRestoreFailureMsg(this, core::mem::transmute(&wszprerestorefailuremsg)).into() } - unsafe extern "system" fn GetPreRestoreFailureMsg(this: *mut core::ffi::c_void, pbstrprerestorefailuremsg: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetPreRestoreFailureMsg(this: *mut core::ffi::c_void, pbstrprerestorefailuremsg: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetPreRestoreFailureMsg(this, core::mem::transmute_copy(&pbstrprerestorefailuremsg)).into() } - unsafe extern "system" fn SetPostRestoreFailureMsg(this: *mut core::ffi::c_void, wszpostrestorefailuremsg: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn SetPostRestoreFailureMsg(this: *mut core::ffi::c_void, wszpostrestorefailuremsg: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::SetPostRestoreFailureMsg(this, core::mem::transmute(&wszpostrestorefailuremsg)).into() } - unsafe extern "system" fn GetPostRestoreFailureMsg(this: *mut core::ffi::c_void, pbstrpostrestorefailuremsg: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetPostRestoreFailureMsg(this: *mut core::ffi::c_void, pbstrpostrestorefailuremsg: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetPostRestoreFailureMsg(this, core::mem::transmute_copy(&pbstrpostrestorefailuremsg)).into() } - unsafe extern "system" fn SetBackupStamp(this: *mut core::ffi::c_void, wszbackupstamp: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn SetBackupStamp(this: *mut core::ffi::c_void, wszbackupstamp: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::SetBackupStamp(this, core::mem::transmute(&wszbackupstamp)).into() } - unsafe extern "system" fn GetBackupStamp(this: *mut core::ffi::c_void, pbstrbackupstamp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetBackupStamp(this: *mut core::ffi::c_void, pbstrbackupstamp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetBackupStamp(this, core::mem::transmute_copy(&pbstrbackupstamp)).into() } - unsafe extern "system" fn GetPreviousBackupStamp(this: *mut core::ffi::c_void, pbstrbackupstamp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetPreviousBackupStamp(this: *mut core::ffi::c_void, pbstrbackupstamp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetPreviousBackupStamp(this, core::mem::transmute_copy(&pbstrbackupstamp)).into() } - unsafe extern "system" fn GetBackupOptions(this: *mut core::ffi::c_void, pbstrbackupoptions: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetBackupOptions(this: *mut core::ffi::c_void, pbstrbackupoptions: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetBackupOptions(this, core::mem::transmute_copy(&pbstrbackupoptions)).into() } - unsafe extern "system" fn GetRestoreOptions(this: *mut core::ffi::c_void, pbstrrestoreoptions: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetRestoreOptions(this: *mut core::ffi::c_void, pbstrrestoreoptions: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetRestoreOptions(this, core::mem::transmute_copy(&pbstrrestoreoptions)).into() } - unsafe extern "system" fn GetRestoreSubcomponentCount(this: *mut core::ffi::c_void, pcrestoresubcomponent: *mut u32) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetRestoreSubcomponentCount(this: *mut core::ffi::c_void, pcrestoresubcomponent: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetRestoreSubcomponentCount(this, core::mem::transmute_copy(&pcrestoresubcomponent)).into() } - unsafe extern "system" fn GetRestoreSubcomponent(this: *mut core::ffi::c_void, icomponent: u32, pbstrlogicalpath: *mut core::mem::MaybeUninit, pbstrcomponentname: *mut core::mem::MaybeUninit, pbrepair: *mut bool) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetRestoreSubcomponent(this: *mut core::ffi::c_void, icomponent: u32, pbstrlogicalpath: *mut core::mem::MaybeUninit, pbstrcomponentname: *mut core::mem::MaybeUninit, pbrepair: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetRestoreSubcomponent(this, core::mem::transmute_copy(&icomponent), core::mem::transmute_copy(&pbstrlogicalpath), core::mem::transmute_copy(&pbstrcomponentname), core::mem::transmute_copy(&pbrepair)).into() } - unsafe extern "system" fn GetFileRestoreStatus(this: *mut core::ffi::c_void, pstatus: *mut VSS_FILE_RESTORE_STATUS) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetFileRestoreStatus(this: *mut core::ffi::c_void, pstatus: *mut VSS_FILE_RESTORE_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetFileRestoreStatus(this, core::mem::transmute_copy(&pstatus)).into() } - unsafe extern "system" fn AddDifferencedFilesByLastModifyTime(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 - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn AddDifferencedFilesByLastModifyTime(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::AddDifferencedFilesByLastModifyTime(this, core::mem::transmute(&wszpath), core::mem::transmute(&wszfilespec), core::mem::transmute_copy(&brecursive), core::mem::transmute(&ftlastmodifytime)).into() } - unsafe extern "system" fn AddDifferencedFilesByLastModifyLSN(this: *mut core::ffi::c_void, wszpath: windows_core::PCWSTR, wszfilespec: windows_core::PCWSTR, brecursive: super::super::Foundation::BOOL, bstrlsnstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn AddDifferencedFilesByLastModifyLSN(this: *mut core::ffi::c_void, wszpath: windows_core::PCWSTR, wszfilespec: windows_core::PCWSTR, brecursive: super::super::Foundation::BOOL, bstrlsnstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::AddDifferencedFilesByLastModifyLSN(this, core::mem::transmute(&wszpath), core::mem::transmute(&wszfilespec), core::mem::transmute_copy(&brecursive), core::mem::transmute(&bstrlsnstring)).into() } - unsafe extern "system" fn GetDifferencedFilesCount(this: *mut core::ffi::c_void, pcdifferencedfiles: *mut u32) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetDifferencedFilesCount(this: *mut core::ffi::c_void, pcdifferencedfiles: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetDifferencedFilesCount(this, core::mem::transmute_copy(&pcdifferencedfiles)).into() } - unsafe extern "system" fn GetDifferencedFile(this: *mut core::ffi::c_void, idifferencedfile: u32, pbstrpath: *mut core::mem::MaybeUninit, pbstrfilespec: *mut core::mem::MaybeUninit, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut core::mem::MaybeUninit, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IVssComponent_Impl, - { + unsafe extern "system" fn GetDifferencedFile(this: *mut core::ffi::c_void, idifferencedfile: u32, pbstrpath: *mut core::mem::MaybeUninit, pbstrfilespec: *mut core::mem::MaybeUninit, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut core::mem::MaybeUninit, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetDifferencedFile(this, 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() } @@ -535,28 +379,16 @@ pub trait IVssComponentEx_Impl: Sized + IVssComponent_Impl { } impl windows_core::RuntimeName for IVssComponentEx {} impl IVssComponentEx_Vtbl { - pub const fn new() -> IVssComponentEx_Vtbl - where - Identity: IVssComponentEx_Impl, - { - unsafe extern "system" fn SetPrepareForBackupFailureMsg(this: *mut core::ffi::c_void, wszfailuremsg: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVssComponentEx_Impl, - { + pub const fn new() -> IVssComponentEx_Vtbl { + unsafe extern "system" fn SetPrepareForBackupFailureMsg(this: *mut core::ffi::c_void, wszfailuremsg: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponentEx_Impl::SetPrepareForBackupFailureMsg(this, core::mem::transmute(&wszfailuremsg)).into() } - unsafe extern "system" fn SetPostSnapshotFailureMsg(this: *mut core::ffi::c_void, wszfailuremsg: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVssComponentEx_Impl, - { + unsafe extern "system" fn SetPostSnapshotFailureMsg(this: *mut core::ffi::c_void, wszfailuremsg: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponentEx_Impl::SetPostSnapshotFailureMsg(this, core::mem::transmute(&wszfailuremsg)).into() } - unsafe extern "system" fn GetPrepareForBackupFailureMsg(this: *mut core::ffi::c_void, pbstrfailuremsg: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponentEx_Impl, - { + unsafe extern "system" fn GetPrepareForBackupFailureMsg(this: *mut core::ffi::c_void, pbstrfailuremsg: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssComponentEx_Impl::GetPrepareForBackupFailureMsg(this) { Ok(ok__) => { @@ -566,10 +398,7 @@ impl IVssComponentEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPostSnapshotFailureMsg(this: *mut core::ffi::c_void, pbstrfailuremsg: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponentEx_Impl, - { + unsafe extern "system" fn GetPostSnapshotFailureMsg(this: *mut core::ffi::c_void, pbstrfailuremsg: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssComponentEx_Impl::GetPostSnapshotFailureMsg(this) { Ok(ok__) => { @@ -579,10 +408,7 @@ impl IVssComponentEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAuthoritativeRestore(this: *mut core::ffi::c_void, pbauth: *mut bool) -> windows_core::HRESULT - where - Identity: IVssComponentEx_Impl, - { + unsafe extern "system" fn GetAuthoritativeRestore(this: *mut core::ffi::c_void, pbauth: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssComponentEx_Impl::GetAuthoritativeRestore(this) { Ok(ok__) => { @@ -592,17 +418,11 @@ impl IVssComponentEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRollForward(this: *mut core::ffi::c_void, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponentEx_Impl, - { + unsafe extern "system" fn GetRollForward(this: *mut core::ffi::c_void, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponentEx_Impl::GetRollForward(this, core::mem::transmute_copy(&prolltype), core::mem::transmute_copy(&pbstrpoint)).into() } - unsafe extern "system" fn GetRestoreName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssComponentEx_Impl, - { + unsafe extern "system" fn GetRestoreName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssComponentEx_Impl::GetRestoreName(this) { Ok(ok__) => { @@ -633,21 +453,12 @@ pub trait IVssComponentEx2_Impl: Sized + IVssComponentEx_Impl { } impl windows_core::RuntimeName for IVssComponentEx2 {} impl IVssComponentEx2_Vtbl { - pub const fn new() -> IVssComponentEx2_Vtbl - where - Identity: IVssComponentEx2_Impl, - { - unsafe extern "system" fn SetFailure(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, hrapplication: windows_core::HRESULT, wszapplicationmessage: windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IVssComponentEx2_Impl, - { + pub const fn new() -> IVssComponentEx2_Vtbl { + unsafe extern "system" fn SetFailure(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, hrapplication: windows_core::HRESULT, wszapplicationmessage: windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponentEx2_Impl::SetFailure(this, 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(this: *mut core::ffi::c_void, phr: *mut windows_core::HRESULT, phrapplication: *mut windows_core::HRESULT, pbstrapplicationmessage: *mut core::mem::MaybeUninit, pdwreserved: *mut u32) -> windows_core::HRESULT - where - Identity: IVssComponentEx2_Impl, - { + unsafe extern "system" fn GetFailure(this: *mut core::ffi::c_void, phr: *mut windows_core::HRESULT, phrapplication: *mut windows_core::HRESULT, pbstrapplicationmessage: *mut core::mem::MaybeUninit, pdwreserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponentEx2_Impl::GetFailure(this, core::mem::transmute_copy(&phr), core::mem::transmute_copy(&phrapplication), core::mem::transmute_copy(&pbstrapplicationmessage), core::mem::transmute_copy(&pdwreserved)).into() } @@ -657,7 +468,7 @@ impl IVssComponentEx2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IVssCreateExpressWriterMetadata_Impl: Sized { +pub trait IVssCreateExpressWriterMetadata_Impl: Sized + windows_core::IUnknownImpl { 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<()>; fn AddFilesToFileGroup(&self, wszlogicalpath: &windows_core::PCWSTR, wszgroupname: &windows_core::PCWSTR, wszpath: &windows_core::PCWSTR, wszfilespec: &windows_core::PCWSTR, brecursive: u8, wszalternatelocation: &windows_core::PCWSTR, dwbackuptypemask: u32) -> windows_core::Result<()>; @@ -668,56 +479,32 @@ pub trait IVssCreateExpressWriterMetadata_Impl: Sized { } impl windows_core::RuntimeName for IVssCreateExpressWriterMetadata {} impl IVssCreateExpressWriterMetadata_Vtbl { - pub const fn new() -> IVssCreateExpressWriterMetadata_Vtbl - where - Identity: IVssCreateExpressWriterMetadata_Impl, - { - unsafe extern "system" fn AddExcludeFiles(this: *mut core::ffi::c_void, wszpath: windows_core::PCWSTR, wszfilespec: windows_core::PCWSTR, brecursive: u8) -> windows_core::HRESULT - where - Identity: IVssCreateExpressWriterMetadata_Impl, - { + pub const fn new() -> IVssCreateExpressWriterMetadata_Vtbl { + unsafe extern "system" fn AddExcludeFiles(this: *mut core::ffi::c_void, wszpath: windows_core::PCWSTR, wszfilespec: windows_core::PCWSTR, brecursive: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssCreateExpressWriterMetadata_Impl::AddExcludeFiles(this, core::mem::transmute(&wszpath), core::mem::transmute(&wszfilespec), core::mem::transmute_copy(&brecursive)).into() } - unsafe extern "system" fn AddComponent(this: *mut core::ffi::c_void, 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::HRESULT - where - Identity: IVssCreateExpressWriterMetadata_Impl, - { + unsafe extern "system" fn AddComponent(this: *mut core::ffi::c_void, 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::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssCreateExpressWriterMetadata_Impl::AddComponent(this, core::mem::transmute_copy(&ct), core::mem::transmute(&wszlogicalpath), core::mem::transmute(&wszcomponentname), core::mem::transmute(&wszcaption), core::mem::transmute_copy(&pbicon), core::mem::transmute_copy(&cbicon), core::mem::transmute_copy(&brestoremetadata), core::mem::transmute_copy(&bnotifyonbackupcomplete), core::mem::transmute_copy(&bselectable), core::mem::transmute_copy(&bselectableforrestore), core::mem::transmute_copy(&dwcomponentflags)).into() } - unsafe extern "system" fn AddFilesToFileGroup(this: *mut core::ffi::c_void, wszlogicalpath: windows_core::PCWSTR, wszgroupname: windows_core::PCWSTR, wszpath: windows_core::PCWSTR, wszfilespec: windows_core::PCWSTR, brecursive: u8, wszalternatelocation: windows_core::PCWSTR, dwbackuptypemask: u32) -> windows_core::HRESULT - where - Identity: IVssCreateExpressWriterMetadata_Impl, - { + unsafe extern "system" fn AddFilesToFileGroup(this: *mut core::ffi::c_void, wszlogicalpath: windows_core::PCWSTR, wszgroupname: windows_core::PCWSTR, wszpath: windows_core::PCWSTR, wszfilespec: windows_core::PCWSTR, brecursive: u8, wszalternatelocation: windows_core::PCWSTR, dwbackuptypemask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssCreateExpressWriterMetadata_Impl::AddFilesToFileGroup(this, core::mem::transmute(&wszlogicalpath), core::mem::transmute(&wszgroupname), core::mem::transmute(&wszpath), core::mem::transmute(&wszfilespec), core::mem::transmute_copy(&brecursive), core::mem::transmute(&wszalternatelocation), core::mem::transmute_copy(&dwbackuptypemask)).into() } - unsafe extern "system" fn SetRestoreMethod(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 - where - Identity: IVssCreateExpressWriterMetadata_Impl, - { + unsafe extern "system" fn SetRestoreMethod(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssCreateExpressWriterMetadata_Impl::SetRestoreMethod(this, core::mem::transmute_copy(&method), core::mem::transmute(&wszservice), core::mem::transmute(&wszuserprocedure), core::mem::transmute_copy(&writerrestore), core::mem::transmute_copy(&brebootrequired)).into() } - unsafe extern "system" fn AddComponentDependency(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 - where - Identity: IVssCreateExpressWriterMetadata_Impl, - { + unsafe extern "system" fn AddComponentDependency(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssCreateExpressWriterMetadata_Impl::AddComponentDependency(this, core::mem::transmute(&wszforlogicalpath), core::mem::transmute(&wszforcomponentname), core::mem::transmute(&onwriterid), core::mem::transmute(&wszonlogicalpath), core::mem::transmute(&wszoncomponentname)).into() } - unsafe extern "system" fn SetBackupSchema(this: *mut core::ffi::c_void, dwschemamask: u32) -> windows_core::HRESULT - where - Identity: IVssCreateExpressWriterMetadata_Impl, - { + unsafe extern "system" fn SetBackupSchema(this: *mut core::ffi::c_void, dwschemamask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssCreateExpressWriterMetadata_Impl::SetBackupSchema(this, core::mem::transmute_copy(&dwschemamask)).into() } - unsafe extern "system" fn SaveAsXML(this: *mut core::ffi::c_void, pbstrxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssCreateExpressWriterMetadata_Impl, - { + unsafe extern "system" fn SaveAsXML(this: *mut core::ffi::c_void, pbstrxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssCreateExpressWriterMetadata_Impl::SaveAsXML(this) { Ok(ok__) => { @@ -857,7 +644,7 @@ impl IVssCreateWriterMetadata { unsafe { windows_core::ScopedInterface::new(core::mem::transmute(&this.vtable)) } } } -pub trait IVssDifferentialSoftwareSnapshotMgmt_Impl: Sized { +pub trait IVssDifferentialSoftwareSnapshotMgmt_Impl: Sized + windows_core::IUnknownImpl { fn AddDiffArea(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> windows_core::Result<()>; fn ChangeDiffAreaMaximumSize(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> windows_core::Result<()>; fn QueryVolumesSupportedForDiffAreas(&self, pwszoriginalvolumename: *const u16) -> windows_core::Result; @@ -867,28 +654,16 @@ pub trait IVssDifferentialSoftwareSnapshotMgmt_Impl: Sized { } impl windows_core::RuntimeName for IVssDifferentialSoftwareSnapshotMgmt {} impl IVssDifferentialSoftwareSnapshotMgmt_Vtbl { - pub const fn new() -> IVssDifferentialSoftwareSnapshotMgmt_Vtbl - where - Identity: IVssDifferentialSoftwareSnapshotMgmt_Impl, - { - unsafe extern "system" fn AddDiffArea(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt_Impl, - { + pub const fn new() -> IVssDifferentialSoftwareSnapshotMgmt_Vtbl { + unsafe extern "system" fn AddDiffArea(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt_Impl::AddDiffArea(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&pwszdiffareavolumename), core::mem::transmute_copy(&llmaximumdiffspace)).into() } - unsafe extern "system" fn ChangeDiffAreaMaximumSize(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt_Impl, - { + unsafe extern "system" fn ChangeDiffAreaMaximumSize(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt_Impl::ChangeDiffAreaMaximumSize(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&pwszdiffareavolumename), core::mem::transmute_copy(&llmaximumdiffspace)).into() } - unsafe extern "system" fn QueryVolumesSupportedForDiffAreas(this: *mut core::ffi::c_void, pwszoriginalvolumename: *const u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt_Impl, - { + unsafe extern "system" fn QueryVolumesSupportedForDiffAreas(this: *mut core::ffi::c_void, pwszoriginalvolumename: *const u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssDifferentialSoftwareSnapshotMgmt_Impl::QueryVolumesSupportedForDiffAreas(this, core::mem::transmute_copy(&pwszoriginalvolumename)) { Ok(ok__) => { @@ -898,10 +673,7 @@ impl IVssDifferentialSoftwareSnapshotMgmt_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryDiffAreasForVolume(this: *mut core::ffi::c_void, pwszvolumename: *const u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt_Impl, - { + unsafe extern "system" fn QueryDiffAreasForVolume(this: *mut core::ffi::c_void, pwszvolumename: *const u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssDifferentialSoftwareSnapshotMgmt_Impl::QueryDiffAreasForVolume(this, core::mem::transmute_copy(&pwszvolumename)) { Ok(ok__) => { @@ -911,10 +683,7 @@ impl IVssDifferentialSoftwareSnapshotMgmt_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryDiffAreasOnVolume(this: *mut core::ffi::c_void, pwszvolumename: *const u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt_Impl, - { + unsafe extern "system" fn QueryDiffAreasOnVolume(this: *mut core::ffi::c_void, pwszvolumename: *const u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssDifferentialSoftwareSnapshotMgmt_Impl::QueryDiffAreasOnVolume(this, core::mem::transmute_copy(&pwszvolumename)) { Ok(ok__) => { @@ -924,10 +693,7 @@ impl IVssDifferentialSoftwareSnapshotMgmt_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryDiffAreasForSnapshot(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt_Impl, - { + unsafe extern "system" fn QueryDiffAreasForSnapshot(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssDifferentialSoftwareSnapshotMgmt_Impl::QueryDiffAreasForSnapshot(this, core::mem::transmute(&snapshotid)) { Ok(ok__) => { @@ -959,28 +725,16 @@ pub trait IVssDifferentialSoftwareSnapshotMgmt2_Impl: Sized + IVssDifferentialSo } impl windows_core::RuntimeName for IVssDifferentialSoftwareSnapshotMgmt2 {} impl IVssDifferentialSoftwareSnapshotMgmt2_Vtbl { - pub const fn new() -> IVssDifferentialSoftwareSnapshotMgmt2_Vtbl - where - Identity: IVssDifferentialSoftwareSnapshotMgmt2_Impl, - { - unsafe extern "system" fn ChangeDiffAreaMaximumSizeEx(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64, bvolatile: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt2_Impl, - { + pub const fn new() -> IVssDifferentialSoftwareSnapshotMgmt2_Vtbl { + unsafe extern "system" fn ChangeDiffAreaMaximumSizeEx(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64, bvolatile: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt2_Impl::ChangeDiffAreaMaximumSizeEx(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&pwszdiffareavolumename), core::mem::transmute_copy(&llmaximumdiffspace), core::mem::transmute_copy(&bvolatile)).into() } - unsafe extern "system" fn MigrateDiffAreas(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, pwsznewdiffareavolumename: *const u16) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt2_Impl, - { + unsafe extern "system" fn MigrateDiffAreas(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, pwsznewdiffareavolumename: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt2_Impl::MigrateDiffAreas(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&pwszdiffareavolumename), core::mem::transmute_copy(&pwsznewdiffareavolumename)).into() } - unsafe extern "system" fn QueryMigrationStatus(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt2_Impl, - { + unsafe extern "system" fn QueryMigrationStatus(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssDifferentialSoftwareSnapshotMgmt2_Impl::QueryMigrationStatus(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&pwszdiffareavolumename)) { Ok(ok__) => { @@ -990,10 +744,7 @@ impl IVssDifferentialSoftwareSnapshotMgmt2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSnapshotPriority(this: *mut core::ffi::c_void, idsnapshot: windows_core::GUID, priority: u8) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt2_Impl, - { + unsafe extern "system" fn SetSnapshotPriority(this: *mut core::ffi::c_void, idsnapshot: windows_core::GUID, priority: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt2_Impl::SetSnapshotPriority(this, core::mem::transmute(&idsnapshot), core::mem::transmute_copy(&priority)).into() } @@ -1018,42 +769,24 @@ pub trait IVssDifferentialSoftwareSnapshotMgmt3_Impl: Sized + IVssDifferentialSo } impl windows_core::RuntimeName for IVssDifferentialSoftwareSnapshotMgmt3 {} impl IVssDifferentialSoftwareSnapshotMgmt3_Vtbl { - pub const fn new() -> IVssDifferentialSoftwareSnapshotMgmt3_Vtbl - where - Identity: IVssDifferentialSoftwareSnapshotMgmt3_Impl, - { - unsafe extern "system" fn SetVolumeProtectLevel(this: *mut core::ffi::c_void, pwszvolumename: *const u16, protectionlevel: VSS_PROTECTION_LEVEL) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt3_Impl, - { + pub const fn new() -> IVssDifferentialSoftwareSnapshotMgmt3_Vtbl { + unsafe extern "system" fn SetVolumeProtectLevel(this: *mut core::ffi::c_void, pwszvolumename: *const u16, protectionlevel: VSS_PROTECTION_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt3_Impl::SetVolumeProtectLevel(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&protectionlevel)).into() } - unsafe extern "system" fn GetVolumeProtectLevel(this: *mut core::ffi::c_void, pwszvolumename: *const u16, protectionlevel: *mut VSS_VOLUME_PROTECTION_INFO) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt3_Impl, - { + unsafe extern "system" fn GetVolumeProtectLevel(this: *mut core::ffi::c_void, pwszvolumename: *const u16, protectionlevel: *mut VSS_VOLUME_PROTECTION_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt3_Impl::GetVolumeProtectLevel(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&protectionlevel)).into() } - unsafe extern "system" fn ClearVolumeProtectFault(this: *mut core::ffi::c_void, pwszvolumename: *const u16) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt3_Impl, - { + unsafe extern "system" fn ClearVolumeProtectFault(this: *mut core::ffi::c_void, pwszvolumename: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt3_Impl::ClearVolumeProtectFault(this, core::mem::transmute_copy(&pwszvolumename)).into() } - unsafe extern "system" fn DeleteUnusedDiffAreas(this: *mut core::ffi::c_void, pwszdiffareavolumename: *const u16) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt3_Impl, - { + unsafe extern "system" fn DeleteUnusedDiffAreas(this: *mut core::ffi::c_void, pwszdiffareavolumename: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt3_Impl::DeleteUnusedDiffAreas(this, core::mem::transmute_copy(&pwszdiffareavolumename)).into() } - unsafe extern "system" fn QuerySnapshotDeltaBitmap(this: *mut core::ffi::c_void, idsnapshotolder: windows_core::GUID, idsnapshotyounger: windows_core::GUID, pcblocksizeperbit: *mut u32, pcbitmaplength: *mut u32, ppbbitmap: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IVssDifferentialSoftwareSnapshotMgmt3_Impl, - { + unsafe extern "system" fn QuerySnapshotDeltaBitmap(this: *mut core::ffi::c_void, idsnapshotolder: windows_core::GUID, idsnapshotyounger: windows_core::GUID, pcblocksizeperbit: *mut u32, pcbitmaplength: *mut u32, ppbbitmap: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt3_Impl::QuerySnapshotDeltaBitmap(this, core::mem::transmute(&idsnapshotolder), core::mem::transmute(&idsnapshotyounger), core::mem::transmute_copy(&pcblocksizeperbit), core::mem::transmute_copy(&pcbitmaplength), core::mem::transmute_copy(&ppbbitmap)).into() } @@ -1070,7 +803,7 @@ impl IVssDifferentialSoftwareSnapshotMgmt3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IVssEnumMgmtObject_Impl: Sized { +pub trait IVssEnumMgmtObject_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut VSS_MGMT_OBJECT_PROP, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1078,35 +811,20 @@ pub trait IVssEnumMgmtObject_Impl: Sized { } impl windows_core::RuntimeName for IVssEnumMgmtObject {} impl IVssEnumMgmtObject_Vtbl { - pub const fn new() -> IVssEnumMgmtObject_Vtbl - where - Identity: IVssEnumMgmtObject_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut VSS_MGMT_OBJECT_PROP, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IVssEnumMgmtObject_Impl, - { + pub const fn new() -> IVssEnumMgmtObject_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut VSS_MGMT_OBJECT_PROP, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssEnumMgmtObject_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IVssEnumMgmtObject_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssEnumMgmtObject_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssEnumMgmtObject_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssEnumMgmtObject_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssEnumMgmtObject_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssEnumMgmtObject_Impl::Clone(this, core::mem::transmute_copy(&ppenum)).into() } @@ -1122,7 +840,7 @@ impl IVssEnumMgmtObject_Vtbl { iid == &::IID } } -pub trait IVssEnumObject_Impl: Sized { +pub trait IVssEnumObject_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut VSS_OBJECT_PROP, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1130,35 +848,20 @@ pub trait IVssEnumObject_Impl: Sized { } impl windows_core::RuntimeName for IVssEnumObject {} impl IVssEnumObject_Vtbl { - pub const fn new() -> IVssEnumObject_Vtbl - where - Identity: IVssEnumObject_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut VSS_OBJECT_PROP, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IVssEnumObject_Impl, - { + pub const fn new() -> IVssEnumObject_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut VSS_OBJECT_PROP, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssEnumObject_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IVssEnumObject_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssEnumObject_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssEnumObject_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssEnumObject_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssEnumObject_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssEnumObject_Impl::Clone(this, core::mem::transmute_copy(&ppenum)).into() } @@ -1174,7 +877,7 @@ impl IVssEnumObject_Vtbl { iid == &::IID } } -pub trait IVssExpressWriter_Impl: Sized { +pub trait IVssExpressWriter_Impl: Sized + windows_core::IUnknownImpl { fn CreateMetadata(&self, writerid: &windows_core::GUID, writername: &windows_core::PCWSTR, usagetype: VSS_USAGE_TYPE, versionmajor: u32, versionminor: u32, reserved: u32) -> windows_core::Result; fn LoadMetadata(&self, metadata: &windows_core::PCWSTR, reserved: u32) -> windows_core::Result<()>; fn Register(&self) -> windows_core::Result<()>; @@ -1182,14 +885,8 @@ pub trait IVssExpressWriter_Impl: Sized { } impl windows_core::RuntimeName for IVssExpressWriter {} impl IVssExpressWriter_Vtbl { - pub const fn new() -> IVssExpressWriter_Vtbl - where - Identity: IVssExpressWriter_Impl, - { - unsafe extern "system" fn CreateMetadata(this: *mut core::ffi::c_void, writerid: windows_core::GUID, writername: windows_core::PCWSTR, usagetype: VSS_USAGE_TYPE, versionmajor: u32, versionminor: u32, reserved: u32, ppmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssExpressWriter_Impl, - { + pub const fn new() -> IVssExpressWriter_Vtbl { + unsafe extern "system" fn CreateMetadata(this: *mut core::ffi::c_void, writerid: windows_core::GUID, writername: windows_core::PCWSTR, usagetype: VSS_USAGE_TYPE, versionmajor: u32, versionminor: u32, reserved: u32, ppmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssExpressWriter_Impl::CreateMetadata(this, core::mem::transmute(&writerid), core::mem::transmute(&writername), core::mem::transmute_copy(&usagetype), core::mem::transmute_copy(&versionmajor), core::mem::transmute_copy(&versionminor), core::mem::transmute_copy(&reserved)) { Ok(ok__) => { @@ -1199,24 +896,15 @@ impl IVssExpressWriter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadMetadata(this: *mut core::ffi::c_void, metadata: windows_core::PCWSTR, reserved: u32) -> windows_core::HRESULT - where - Identity: IVssExpressWriter_Impl, - { + unsafe extern "system" fn LoadMetadata(this: *mut core::ffi::c_void, metadata: windows_core::PCWSTR, reserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssExpressWriter_Impl::LoadMetadata(this, core::mem::transmute(&metadata), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn Register(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssExpressWriter_Impl, - { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssExpressWriter_Impl::Register(this).into() } - unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void, writerid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssExpressWriter_Impl, - { + unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void, writerid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssExpressWriter_Impl::Unregister(this, core::mem::transmute(&writerid)).into() } @@ -1232,7 +920,7 @@ impl IVssExpressWriter_Vtbl { iid == &::IID } } -pub trait IVssFileShareSnapshotProvider_Impl: Sized { +pub trait IVssFileShareSnapshotProvider_Impl: Sized + windows_core::IUnknownImpl { fn SetContext(&self, lcontext: i32) -> windows_core::Result<()>; fn GetSnapshotProperties(&self, snapshotid: &windows_core::GUID, pprop: *mut VSS_SNAPSHOT_PROP) -> windows_core::Result<()>; fn Query(&self, queriedobjectid: &windows_core::GUID, equeriedobjecttype: VSS_OBJECT_TYPE, ereturnedobjectstype: VSS_OBJECT_TYPE) -> windows_core::Result; @@ -1244,28 +932,16 @@ pub trait IVssFileShareSnapshotProvider_Impl: Sized { } impl windows_core::RuntimeName for IVssFileShareSnapshotProvider {} impl IVssFileShareSnapshotProvider_Vtbl { - pub const fn new() -> IVssFileShareSnapshotProvider_Vtbl - where - Identity: IVssFileShareSnapshotProvider_Impl, - { - unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, lcontext: i32) -> windows_core::HRESULT - where - Identity: IVssFileShareSnapshotProvider_Impl, - { + pub const fn new() -> IVssFileShareSnapshotProvider_Vtbl { + unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, lcontext: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssFileShareSnapshotProvider_Impl::SetContext(this, core::mem::transmute_copy(&lcontext)).into() } - unsafe extern "system" fn GetSnapshotProperties(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID, pprop: *mut VSS_SNAPSHOT_PROP) -> windows_core::HRESULT - where - Identity: IVssFileShareSnapshotProvider_Impl, - { + unsafe extern "system" fn GetSnapshotProperties(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID, pprop: *mut VSS_SNAPSHOT_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssFileShareSnapshotProvider_Impl::GetSnapshotProperties(this, core::mem::transmute(&snapshotid), core::mem::transmute_copy(&pprop)).into() } - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, queriedobjectid: windows_core::GUID, equeriedobjecttype: VSS_OBJECT_TYPE, ereturnedobjectstype: VSS_OBJECT_TYPE, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssFileShareSnapshotProvider_Impl, - { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, queriedobjectid: windows_core::GUID, equeriedobjecttype: VSS_OBJECT_TYPE, ereturnedobjectstype: VSS_OBJECT_TYPE, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssFileShareSnapshotProvider_Impl::Query(this, core::mem::transmute(&queriedobjectid), core::mem::transmute_copy(&equeriedobjecttype), core::mem::transmute_copy(&ereturnedobjectstype)) { Ok(ok__) => { @@ -1275,24 +951,15 @@ impl IVssFileShareSnapshotProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteSnapshots(this: *mut core::ffi::c_void, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: super::super::Foundation::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssFileShareSnapshotProvider_Impl, - { + unsafe extern "system" fn DeleteSnapshots(this: *mut core::ffi::c_void, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: super::super::Foundation::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssFileShareSnapshotProvider_Impl::DeleteSnapshots(this, core::mem::transmute(&sourceobjectid), core::mem::transmute_copy(&esourceobjecttype), core::mem::transmute_copy(&bforcedelete), core::mem::transmute_copy(&pldeletedsnapshots), core::mem::transmute_copy(&pnondeletedsnapshotid)).into() } - unsafe extern "system" fn BeginPrepareSnapshot(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID, snapshotid: windows_core::GUID, pwszsharepath: *const u16, lnewcontext: i32, providerid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssFileShareSnapshotProvider_Impl, - { + unsafe extern "system" fn BeginPrepareSnapshot(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID, snapshotid: windows_core::GUID, pwszsharepath: *const u16, lnewcontext: i32, providerid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssFileShareSnapshotProvider_Impl::BeginPrepareSnapshot(this, core::mem::transmute(&snapshotsetid), core::mem::transmute(&snapshotid), core::mem::transmute_copy(&pwszsharepath), core::mem::transmute_copy(&lnewcontext), core::mem::transmute(&providerid)).into() } - unsafe extern "system" fn IsPathSupported(this: *mut core::ffi::c_void, pwszsharepath: *const u16, pbsupportedbythisprovider: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVssFileShareSnapshotProvider_Impl, - { + unsafe extern "system" fn IsPathSupported(this: *mut core::ffi::c_void, pwszsharepath: *const u16, pbsupportedbythisprovider: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssFileShareSnapshotProvider_Impl::IsPathSupported(this, core::mem::transmute_copy(&pwszsharepath)) { Ok(ok__) => { @@ -1302,17 +969,11 @@ impl IVssFileShareSnapshotProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPathSnapshotted(this: *mut core::ffi::c_void, pwszsharepath: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::HRESULT - where - Identity: IVssFileShareSnapshotProvider_Impl, - { + unsafe extern "system" fn IsPathSnapshotted(this: *mut core::ffi::c_void, pwszsharepath: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssFileShareSnapshotProvider_Impl::IsPathSnapshotted(this, core::mem::transmute_copy(&pwszsharepath), core::mem::transmute_copy(&pbsnapshotspresent), core::mem::transmute_copy(&plsnapshotcompatibility)).into() } - unsafe extern "system" fn SetSnapshotProperty(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID, esnapshotpropertyid: VSS_SNAPSHOT_PROPERTY_ID, vproperty: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssFileShareSnapshotProvider_Impl, - { + unsafe extern "system" fn SetSnapshotProperty(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID, esnapshotpropertyid: VSS_SNAPSHOT_PROPERTY_ID, vproperty: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssFileShareSnapshotProvider_Impl::SetSnapshotProperty(this, core::mem::transmute(&snapshotid), core::mem::transmute_copy(&esnapshotpropertyid), core::mem::transmute(&vproperty)).into() } @@ -1333,7 +994,7 @@ impl IVssFileShareSnapshotProvider_Vtbl { } } #[cfg(feature = "Win32_Storage_VirtualDiskService")] -pub trait IVssHardwareSnapshotProvider_Impl: Sized { +pub trait IVssHardwareSnapshotProvider_Impl: Sized + windows_core::IUnknownImpl { fn AreLunsSupported(&self, lluncount: i32, lcontext: i32, rgwszdevices: *const *const u16, pluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn FillInLunInfo(&self, wszdevicename: *const u16, pluninfo: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn BeginPrepareSnapshot(&self, snapshotsetid: &windows_core::GUID, snapshotid: &windows_core::GUID, lcontext: i32, lluncount: i32, rgdevicenames: *const *const u16, rgluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::Result<()>; @@ -1345,49 +1006,28 @@ pub trait IVssHardwareSnapshotProvider_Impl: Sized { impl windows_core::RuntimeName for IVssHardwareSnapshotProvider {} #[cfg(feature = "Win32_Storage_VirtualDiskService")] impl IVssHardwareSnapshotProvider_Vtbl { - pub const fn new() -> IVssHardwareSnapshotProvider_Vtbl - where - Identity: IVssHardwareSnapshotProvider_Impl, - { - unsafe extern "system" fn AreLunsSupported(this: *mut core::ffi::c_void, lluncount: i32, lcontext: i32, rgwszdevices: *const *const u16, pluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVssHardwareSnapshotProvider_Impl, - { + pub const fn new() -> IVssHardwareSnapshotProvider_Vtbl { + unsafe extern "system" fn AreLunsSupported(this: *mut core::ffi::c_void, lluncount: i32, lcontext: i32, rgwszdevices: *const *const u16, pluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssHardwareSnapshotProvider_Impl::AreLunsSupported(this, core::mem::transmute_copy(&lluncount), core::mem::transmute_copy(&lcontext), core::mem::transmute_copy(&rgwszdevices), core::mem::transmute_copy(&pluninformation), core::mem::transmute_copy(&pbissupported)).into() } - unsafe extern "system" fn FillInLunInfo(this: *mut core::ffi::c_void, wszdevicename: *const u16, pluninfo: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVssHardwareSnapshotProvider_Impl, - { + unsafe extern "system" fn FillInLunInfo(this: *mut core::ffi::c_void, wszdevicename: *const u16, pluninfo: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssHardwareSnapshotProvider_Impl::FillInLunInfo(this, core::mem::transmute_copy(&wszdevicename), core::mem::transmute_copy(&pluninfo), core::mem::transmute_copy(&pbissupported)).into() } - unsafe extern "system" fn BeginPrepareSnapshot(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID, snapshotid: windows_core::GUID, lcontext: i32, lluncount: i32, rgdevicenames: *const *const u16, rgluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::HRESULT - where - Identity: IVssHardwareSnapshotProvider_Impl, - { + unsafe extern "system" fn BeginPrepareSnapshot(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID, snapshotid: windows_core::GUID, lcontext: i32, lluncount: i32, rgdevicenames: *const *const u16, rgluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssHardwareSnapshotProvider_Impl::BeginPrepareSnapshot(this, core::mem::transmute(&snapshotsetid), core::mem::transmute(&snapshotid), core::mem::transmute_copy(&lcontext), core::mem::transmute_copy(&lluncount), core::mem::transmute_copy(&rgdevicenames), core::mem::transmute_copy(&rgluninformation)).into() } - unsafe extern "system" fn GetTargetLuns(this: *mut core::ffi::c_void, lluncount: i32, rgdevicenames: *const *const u16, rgsourceluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, rgdestinationluns: *mut super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::HRESULT - where - Identity: IVssHardwareSnapshotProvider_Impl, - { + unsafe extern "system" fn GetTargetLuns(this: *mut core::ffi::c_void, lluncount: i32, rgdevicenames: *const *const u16, rgsourceluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, rgdestinationluns: *mut super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssHardwareSnapshotProvider_Impl::GetTargetLuns(this, core::mem::transmute_copy(&lluncount), core::mem::transmute_copy(&rgdevicenames), core::mem::transmute_copy(&rgsourceluns), core::mem::transmute_copy(&rgdestinationluns)).into() } - unsafe extern "system" fn LocateLuns(this: *mut core::ffi::c_void, lluncount: i32, rgsourceluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::HRESULT - where - Identity: IVssHardwareSnapshotProvider_Impl, - { + unsafe extern "system" fn LocateLuns(this: *mut core::ffi::c_void, lluncount: i32, rgsourceluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssHardwareSnapshotProvider_Impl::LocateLuns(this, core::mem::transmute_copy(&lluncount), core::mem::transmute_copy(&rgsourceluns)).into() } - unsafe extern "system" fn OnLunEmpty(this: *mut core::ffi::c_void, wszdevicename: *const u16, pinformation: *const super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::HRESULT - where - Identity: IVssHardwareSnapshotProvider_Impl, - { + unsafe extern "system" fn OnLunEmpty(this: *mut core::ffi::c_void, wszdevicename: *const u16, pinformation: *const super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssHardwareSnapshotProvider_Impl::OnLunEmpty(this, core::mem::transmute_copy(&wszdevicename), core::mem::transmute_copy(&pinformation)).into() } @@ -1416,14 +1056,8 @@ pub trait IVssHardwareSnapshotProviderEx_Impl: Sized + IVssHardwareSnapshotProvi impl windows_core::RuntimeName for IVssHardwareSnapshotProviderEx {} #[cfg(feature = "Win32_Storage_VirtualDiskService")] impl IVssHardwareSnapshotProviderEx_Vtbl { - pub const fn new() -> IVssHardwareSnapshotProviderEx_Vtbl - where - Identity: IVssHardwareSnapshotProviderEx_Impl, - { - unsafe extern "system" fn GetProviderCapabilities(this: *mut core::ffi::c_void, plloriginalcapabilitymask: *mut u64) -> windows_core::HRESULT - where - Identity: IVssHardwareSnapshotProviderEx_Impl, - { + pub const fn new() -> IVssHardwareSnapshotProviderEx_Vtbl { + unsafe extern "system" fn GetProviderCapabilities(this: *mut core::ffi::c_void, plloriginalcapabilitymask: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssHardwareSnapshotProviderEx_Impl::GetProviderCapabilities(this) { Ok(ok__) => { @@ -1433,17 +1067,11 @@ impl IVssHardwareSnapshotProviderEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnLunStateChange(this: *mut core::ffi::c_void, psnapshotluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, poriginalluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, dwcount: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IVssHardwareSnapshotProviderEx_Impl, - { + unsafe extern "system" fn OnLunStateChange(this: *mut core::ffi::c_void, psnapshotluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, poriginalluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, dwcount: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssHardwareSnapshotProviderEx_Impl::OnLunStateChange(this, core::mem::transmute_copy(&psnapshotluns), core::mem::transmute_copy(&poriginalluns), core::mem::transmute_copy(&dwcount), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn ResyncLuns(this: *mut core::ffi::c_void, psourceluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, ptargetluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, dwcount: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssHardwareSnapshotProviderEx_Impl, - { + unsafe extern "system" fn ResyncLuns(this: *mut core::ffi::c_void, psourceluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, ptargetluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, dwcount: u32, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssHardwareSnapshotProviderEx_Impl::ResyncLuns(this, core::mem::transmute_copy(&psourceluns), core::mem::transmute_copy(&ptargetluns), core::mem::transmute_copy(&dwcount)) { Ok(ok__) => { @@ -1453,10 +1081,7 @@ impl IVssHardwareSnapshotProviderEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnReuseLuns(this: *mut core::ffi::c_void, psnapshotluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, poriginalluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, dwcount: u32) -> windows_core::HRESULT - where - Identity: IVssHardwareSnapshotProviderEx_Impl, - { + unsafe extern "system" fn OnReuseLuns(this: *mut core::ffi::c_void, psnapshotluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, poriginalluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, dwcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssHardwareSnapshotProviderEx_Impl::OnReuseLuns(this, core::mem::transmute_copy(&psnapshotluns), core::mem::transmute_copy(&poriginalluns), core::mem::transmute_copy(&dwcount)).into() } @@ -1472,7 +1097,7 @@ impl IVssHardwareSnapshotProviderEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IVssProviderCreateSnapshotSet_Impl: Sized { +pub trait IVssProviderCreateSnapshotSet_Impl: Sized + windows_core::IUnknownImpl { fn EndPrepareSnapshots(&self, snapshotsetid: &windows_core::GUID) -> windows_core::Result<()>; fn PreCommitSnapshots(&self, snapshotsetid: &windows_core::GUID) -> windows_core::Result<()>; fn CommitSnapshots(&self, snapshotsetid: &windows_core::GUID) -> windows_core::Result<()>; @@ -1483,56 +1108,32 @@ pub trait IVssProviderCreateSnapshotSet_Impl: Sized { } impl windows_core::RuntimeName for IVssProviderCreateSnapshotSet {} impl IVssProviderCreateSnapshotSet_Vtbl { - pub const fn new() -> IVssProviderCreateSnapshotSet_Vtbl - where - Identity: IVssProviderCreateSnapshotSet_Impl, - { - unsafe extern "system" fn EndPrepareSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssProviderCreateSnapshotSet_Impl, - { + pub const fn new() -> IVssProviderCreateSnapshotSet_Vtbl { + unsafe extern "system" fn EndPrepareSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssProviderCreateSnapshotSet_Impl::EndPrepareSnapshots(this, core::mem::transmute(&snapshotsetid)).into() } - unsafe extern "system" fn PreCommitSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssProviderCreateSnapshotSet_Impl, - { + unsafe extern "system" fn PreCommitSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssProviderCreateSnapshotSet_Impl::PreCommitSnapshots(this, core::mem::transmute(&snapshotsetid)).into() } - unsafe extern "system" fn CommitSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssProviderCreateSnapshotSet_Impl, - { + unsafe extern "system" fn CommitSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssProviderCreateSnapshotSet_Impl::CommitSnapshots(this, core::mem::transmute(&snapshotsetid)).into() } - unsafe extern "system" fn PostCommitSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID, lsnapshotscount: i32) -> windows_core::HRESULT - where - Identity: IVssProviderCreateSnapshotSet_Impl, - { + unsafe extern "system" fn PostCommitSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID, lsnapshotscount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssProviderCreateSnapshotSet_Impl::PostCommitSnapshots(this, core::mem::transmute(&snapshotsetid), core::mem::transmute_copy(&lsnapshotscount)).into() } - unsafe extern "system" fn PreFinalCommitSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssProviderCreateSnapshotSet_Impl, - { + unsafe extern "system" fn PreFinalCommitSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssProviderCreateSnapshotSet_Impl::PreFinalCommitSnapshots(this, core::mem::transmute(&snapshotsetid)).into() } - unsafe extern "system" fn PostFinalCommitSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssProviderCreateSnapshotSet_Impl, - { + unsafe extern "system" fn PostFinalCommitSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssProviderCreateSnapshotSet_Impl::PostFinalCommitSnapshots(this, core::mem::transmute(&snapshotsetid)).into() } - unsafe extern "system" fn AbortSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssProviderCreateSnapshotSet_Impl, - { + unsafe extern "system" fn AbortSnapshots(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssProviderCreateSnapshotSet_Impl::AbortSnapshots(this, core::mem::transmute(&snapshotsetid)).into() } @@ -1551,27 +1152,18 @@ impl IVssProviderCreateSnapshotSet_Vtbl { iid == &::IID } } -pub trait IVssProviderNotifications_Impl: Sized { +pub trait IVssProviderNotifications_Impl: Sized + windows_core::IUnknownImpl { fn OnLoad(&self, pcallback: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn OnUnload(&self, bforceunload: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVssProviderNotifications {} impl IVssProviderNotifications_Vtbl { - pub const fn new() -> IVssProviderNotifications_Vtbl - where - Identity: IVssProviderNotifications_Impl, - { - unsafe extern "system" fn OnLoad(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssProviderNotifications_Impl, - { + pub const fn new() -> IVssProviderNotifications_Vtbl { + unsafe extern "system" fn OnLoad(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssProviderNotifications_Impl::OnLoad(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn OnUnload(this: *mut core::ffi::c_void, bforceunload: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVssProviderNotifications_Impl, - { + unsafe extern "system" fn OnUnload(this: *mut core::ffi::c_void, bforceunload: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssProviderNotifications_Impl::OnUnload(this, core::mem::transmute_copy(&bforceunload)).into() } @@ -1581,21 +1173,15 @@ impl IVssProviderNotifications_Vtbl { iid == &::IID } } -pub trait IVssSnapshotMgmt_Impl: Sized { +pub trait IVssSnapshotMgmt_Impl: Sized + windows_core::IUnknownImpl { fn GetProviderMgmtInterface(&self, providerid: &windows_core::GUID, interfaceid: *const windows_core::GUID) -> windows_core::Result; fn QueryVolumesSupportedForSnapshots(&self, providerid: &windows_core::GUID, lcontext: i32) -> windows_core::Result; fn QuerySnapshotsByVolume(&self, pwszvolumename: *const u16, providerid: &windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IVssSnapshotMgmt {} impl IVssSnapshotMgmt_Vtbl { - pub const fn new() -> IVssSnapshotMgmt_Vtbl - where - Identity: IVssSnapshotMgmt_Impl, - { - unsafe extern "system" fn GetProviderMgmtInterface(this: *mut core::ffi::c_void, providerid: windows_core::GUID, interfaceid: *const windows_core::GUID, ppitf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssSnapshotMgmt_Impl, - { + pub const fn new() -> IVssSnapshotMgmt_Vtbl { + unsafe extern "system" fn GetProviderMgmtInterface(this: *mut core::ffi::c_void, providerid: windows_core::GUID, interfaceid: *const windows_core::GUID, ppitf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssSnapshotMgmt_Impl::GetProviderMgmtInterface(this, core::mem::transmute(&providerid), core::mem::transmute_copy(&interfaceid)) { Ok(ok__) => { @@ -1605,10 +1191,7 @@ impl IVssSnapshotMgmt_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryVolumesSupportedForSnapshots(this: *mut core::ffi::c_void, providerid: windows_core::GUID, lcontext: i32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssSnapshotMgmt_Impl, - { + unsafe extern "system" fn QueryVolumesSupportedForSnapshots(this: *mut core::ffi::c_void, providerid: windows_core::GUID, lcontext: i32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssSnapshotMgmt_Impl::QueryVolumesSupportedForSnapshots(this, core::mem::transmute(&providerid), core::mem::transmute_copy(&lcontext)) { Ok(ok__) => { @@ -1618,10 +1201,7 @@ impl IVssSnapshotMgmt_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QuerySnapshotsByVolume(this: *mut core::ffi::c_void, pwszvolumename: *const u16, providerid: windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssSnapshotMgmt_Impl, - { + unsafe extern "system" fn QuerySnapshotsByVolume(this: *mut core::ffi::c_void, pwszvolumename: *const u16, providerid: windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssSnapshotMgmt_Impl::QuerySnapshotsByVolume(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute(&providerid)) { Ok(ok__) => { @@ -1642,19 +1222,13 @@ impl IVssSnapshotMgmt_Vtbl { iid == &::IID } } -pub trait IVssSnapshotMgmt2_Impl: Sized { +pub trait IVssSnapshotMgmt2_Impl: Sized + windows_core::IUnknownImpl { fn GetMinDiffAreaSize(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IVssSnapshotMgmt2 {} impl IVssSnapshotMgmt2_Vtbl { - pub const fn new() -> IVssSnapshotMgmt2_Vtbl - where - Identity: IVssSnapshotMgmt2_Impl, - { - unsafe extern "system" fn GetMinDiffAreaSize(this: *mut core::ffi::c_void, pllmindiffareasize: *mut i64) -> windows_core::HRESULT - where - Identity: IVssSnapshotMgmt2_Impl, - { + pub const fn new() -> IVssSnapshotMgmt2_Vtbl { + unsafe extern "system" fn GetMinDiffAreaSize(this: *mut core::ffi::c_void, pllmindiffareasize: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssSnapshotMgmt2_Impl::GetMinDiffAreaSize(this) { Ok(ok__) => { @@ -1670,7 +1244,7 @@ impl IVssSnapshotMgmt2_Vtbl { iid == &::IID } } -pub trait IVssSoftwareSnapshotProvider_Impl: Sized { +pub trait IVssSoftwareSnapshotProvider_Impl: Sized + windows_core::IUnknownImpl { fn SetContext(&self, lcontext: i32) -> windows_core::Result<()>; fn GetSnapshotProperties(&self, snapshotid: &windows_core::GUID, pprop: *mut VSS_SNAPSHOT_PROP) -> windows_core::Result<()>; fn Query(&self, queriedobjectid: &windows_core::GUID, equeriedobjecttype: VSS_OBJECT_TYPE, ereturnedobjectstype: VSS_OBJECT_TYPE) -> windows_core::Result; @@ -1684,28 +1258,16 @@ pub trait IVssSoftwareSnapshotProvider_Impl: Sized { } impl windows_core::RuntimeName for IVssSoftwareSnapshotProvider {} impl IVssSoftwareSnapshotProvider_Vtbl { - pub const fn new() -> IVssSoftwareSnapshotProvider_Vtbl - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { - unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, lcontext: i32) -> windows_core::HRESULT - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { + pub const fn new() -> IVssSoftwareSnapshotProvider_Vtbl { + unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, lcontext: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssSoftwareSnapshotProvider_Impl::SetContext(this, core::mem::transmute_copy(&lcontext)).into() } - unsafe extern "system" fn GetSnapshotProperties(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID, pprop: *mut VSS_SNAPSHOT_PROP) -> windows_core::HRESULT - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { + unsafe extern "system" fn GetSnapshotProperties(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID, pprop: *mut VSS_SNAPSHOT_PROP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssSoftwareSnapshotProvider_Impl::GetSnapshotProperties(this, core::mem::transmute(&snapshotid), core::mem::transmute_copy(&pprop)).into() } - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, queriedobjectid: windows_core::GUID, equeriedobjecttype: VSS_OBJECT_TYPE, ereturnedobjectstype: VSS_OBJECT_TYPE, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, queriedobjectid: windows_core::GUID, equeriedobjecttype: VSS_OBJECT_TYPE, ereturnedobjectstype: VSS_OBJECT_TYPE, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssSoftwareSnapshotProvider_Impl::Query(this, core::mem::transmute(&queriedobjectid), core::mem::transmute_copy(&equeriedobjecttype), core::mem::transmute_copy(&ereturnedobjectstype)) { Ok(ok__) => { @@ -1715,24 +1277,15 @@ impl IVssSoftwareSnapshotProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteSnapshots(this: *mut core::ffi::c_void, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: super::super::Foundation::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { + unsafe extern "system" fn DeleteSnapshots(this: *mut core::ffi::c_void, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: super::super::Foundation::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssSoftwareSnapshotProvider_Impl::DeleteSnapshots(this, core::mem::transmute(&sourceobjectid), core::mem::transmute_copy(&esourceobjecttype), core::mem::transmute_copy(&bforcedelete), core::mem::transmute_copy(&pldeletedsnapshots), core::mem::transmute_copy(&pnondeletedsnapshotid)).into() } - unsafe extern "system" fn BeginPrepareSnapshot(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID, snapshotid: windows_core::GUID, pwszvolumename: *const u16, lnewcontext: i32) -> windows_core::HRESULT - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { + unsafe extern "system" fn BeginPrepareSnapshot(this: *mut core::ffi::c_void, snapshotsetid: windows_core::GUID, snapshotid: windows_core::GUID, pwszvolumename: *const u16, lnewcontext: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssSoftwareSnapshotProvider_Impl::BeginPrepareSnapshot(this, core::mem::transmute(&snapshotsetid), core::mem::transmute(&snapshotid), core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&lnewcontext)).into() } - unsafe extern "system" fn IsVolumeSupported(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pbsupportedbythisprovider: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { + unsafe extern "system" fn IsVolumeSupported(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pbsupportedbythisprovider: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssSoftwareSnapshotProvider_Impl::IsVolumeSupported(this, core::mem::transmute_copy(&pwszvolumename)) { Ok(ok__) => { @@ -1742,31 +1295,19 @@ impl IVssSoftwareSnapshotProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsVolumeSnapshotted(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::HRESULT - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { + unsafe extern "system" fn IsVolumeSnapshotted(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssSoftwareSnapshotProvider_Impl::IsVolumeSnapshotted(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&pbsnapshotspresent), core::mem::transmute_copy(&plsnapshotcompatibility)).into() } - unsafe extern "system" fn SetSnapshotProperty(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID, esnapshotpropertyid: VSS_SNAPSHOT_PROPERTY_ID, vproperty: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { + unsafe extern "system" fn SetSnapshotProperty(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID, esnapshotpropertyid: VSS_SNAPSHOT_PROPERTY_ID, vproperty: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssSoftwareSnapshotProvider_Impl::SetSnapshotProperty(this, core::mem::transmute(&snapshotid), core::mem::transmute_copy(&esnapshotpropertyid), core::mem::transmute(&vproperty)).into() } - unsafe extern "system" fn RevertToSnapshot(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { + unsafe extern "system" fn RevertToSnapshot(this: *mut core::ffi::c_void, snapshotid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssSoftwareSnapshotProvider_Impl::RevertToSnapshot(this, core::mem::transmute(&snapshotid)).into() } - unsafe extern "system" fn QueryRevertStatus(this: *mut core::ffi::c_void, pwszvolume: *const u16, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVssSoftwareSnapshotProvider_Impl, - { + unsafe extern "system" fn QueryRevertStatus(this: *mut core::ffi::c_void, pwszvolume: *const u16, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssSoftwareSnapshotProvider_Impl::QueryRevertStatus(this, core::mem::transmute_copy(&pwszvolume)) { Ok(ok__) => { @@ -1794,35 +1335,23 @@ impl IVssSoftwareSnapshotProvider_Vtbl { iid == &::IID } } -pub trait IVssWMDependency_Impl: Sized { +pub trait IVssWMDependency_Impl: Sized + windows_core::IUnknownImpl { fn GetWriterId(&self, pwriterid: *mut windows_core::GUID) -> 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<()>; } impl windows_core::RuntimeName for IVssWMDependency {} impl IVssWMDependency_Vtbl { - pub const fn new() -> IVssWMDependency_Vtbl - where - Identity: IVssWMDependency_Impl, - { - unsafe extern "system" fn GetWriterId(this: *mut core::ffi::c_void, pwriterid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVssWMDependency_Impl, - { + pub const fn new() -> IVssWMDependency_Vtbl { + unsafe extern "system" fn GetWriterId(this: *mut core::ffi::c_void, pwriterid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssWMDependency_Impl::GetWriterId(this, core::mem::transmute_copy(&pwriterid)).into() } - unsafe extern "system" fn GetLogicalPath(this: *mut core::ffi::c_void, pbstrlogicalpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssWMDependency_Impl, - { + unsafe extern "system" fn GetLogicalPath(this: *mut core::ffi::c_void, pbstrlogicalpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssWMDependency_Impl::GetLogicalPath(this, core::mem::transmute_copy(&pbstrlogicalpath)).into() } - unsafe extern "system" fn GetComponentName(this: *mut core::ffi::c_void, pbstrcomponentname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssWMDependency_Impl, - { + unsafe extern "system" fn GetComponentName(this: *mut core::ffi::c_void, pbstrcomponentname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssWMDependency_Impl::GetComponentName(this, core::mem::transmute_copy(&pbstrcomponentname)).into() } @@ -1837,7 +1366,7 @@ impl IVssWMDependency_Vtbl { iid == &::IID } } -pub trait IVssWMFiledesc_Impl: Sized { +pub trait IVssWMFiledesc_Impl: Sized + windows_core::IUnknownImpl { fn GetPath(&self) -> windows_core::Result; fn GetFilespec(&self) -> windows_core::Result; fn GetRecursive(&self) -> windows_core::Result; @@ -1846,14 +1375,8 @@ pub trait IVssWMFiledesc_Impl: Sized { } impl windows_core::RuntimeName for IVssWMFiledesc {} impl IVssWMFiledesc_Vtbl { - pub const fn new() -> IVssWMFiledesc_Vtbl - where - Identity: IVssWMFiledesc_Impl, - { - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pbstrpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssWMFiledesc_Impl, - { + pub const fn new() -> IVssWMFiledesc_Vtbl { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pbstrpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssWMFiledesc_Impl::GetPath(this) { Ok(ok__) => { @@ -1863,10 +1386,7 @@ impl IVssWMFiledesc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilespec(this: *mut core::ffi::c_void, pbstrfilespec: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssWMFiledesc_Impl, - { + unsafe extern "system" fn GetFilespec(this: *mut core::ffi::c_void, pbstrfilespec: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssWMFiledesc_Impl::GetFilespec(this) { Ok(ok__) => { @@ -1876,10 +1396,7 @@ impl IVssWMFiledesc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecursive(this: *mut core::ffi::c_void, pbrecursive: *mut bool) -> windows_core::HRESULT - where - Identity: IVssWMFiledesc_Impl, - { + unsafe extern "system" fn GetRecursive(this: *mut core::ffi::c_void, pbrecursive: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssWMFiledesc_Impl::GetRecursive(this) { Ok(ok__) => { @@ -1889,10 +1406,7 @@ impl IVssWMFiledesc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAlternateLocation(this: *mut core::ffi::c_void, pbstralternatelocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVssWMFiledesc_Impl, - { + unsafe extern "system" fn GetAlternateLocation(this: *mut core::ffi::c_void, pbstralternatelocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssWMFiledesc_Impl::GetAlternateLocation(this) { Ok(ok__) => { @@ -1902,10 +1416,7 @@ impl IVssWMFiledesc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBackupTypeMask(this: *mut core::ffi::c_void, pdwtypemask: *mut u32) -> windows_core::HRESULT - where - Identity: IVssWMFiledesc_Impl, - { + unsafe extern "system" fn GetBackupTypeMask(this: *mut core::ffi::c_void, pdwtypemask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssWMFiledesc_Impl::GetBackupTypeMask(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/impl.rs index ad3343cf91..5d10bc6f2c 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/impl.rs @@ -6,14 +6,8 @@ pub trait IPrintDocumentPackageStatusEvent_Impl: Sized + super::super::super::Sy impl windows_core::RuntimeName for IPrintDocumentPackageStatusEvent {} #[cfg(feature = "Win32_System_Com")] impl IPrintDocumentPackageStatusEvent_Vtbl { - pub const fn new() -> IPrintDocumentPackageStatusEvent_Vtbl - where - Identity: IPrintDocumentPackageStatusEvent_Impl, - { - unsafe extern "system" fn PackageStatusUpdated(this: *mut core::ffi::c_void, packagestatus: *const PrintDocumentPackageStatus) -> windows_core::HRESULT - where - Identity: IPrintDocumentPackageStatusEvent_Impl, - { + pub const fn new() -> IPrintDocumentPackageStatusEvent_Vtbl { + unsafe extern "system" fn PackageStatusUpdated(this: *mut core::ffi::c_void, packagestatus: *const PrintDocumentPackageStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDocumentPackageStatusEvent_Impl::PackageStatusUpdated(this, core::mem::transmute_copy(&packagestatus)).into() } @@ -26,35 +20,23 @@ impl IPrintDocumentPackageStatusEvent_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPrintDocumentPackageTarget_Impl: Sized { +pub trait IPrintDocumentPackageTarget_Impl: Sized + windows_core::IUnknownImpl { fn GetPackageTargetTypes(&self, targetcount: *mut u32, targettypes: *mut *mut windows_core::GUID) -> windows_core::Result<()>; fn GetPackageTarget(&self, guidtargettype: *const windows_core::GUID, riid: *const windows_core::GUID, ppvtarget: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Cancel(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintDocumentPackageTarget {} impl IPrintDocumentPackageTarget_Vtbl { - pub const fn new() -> IPrintDocumentPackageTarget_Vtbl - where - Identity: IPrintDocumentPackageTarget_Impl, - { - unsafe extern "system" fn GetPackageTargetTypes(this: *mut core::ffi::c_void, targetcount: *mut u32, targettypes: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPrintDocumentPackageTarget_Impl, - { + pub const fn new() -> IPrintDocumentPackageTarget_Vtbl { + unsafe extern "system" fn GetPackageTargetTypes(this: *mut core::ffi::c_void, targetcount: *mut u32, targettypes: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDocumentPackageTarget_Impl::GetPackageTargetTypes(this, core::mem::transmute_copy(&targetcount), core::mem::transmute_copy(&targettypes)).into() } - unsafe extern "system" fn GetPackageTarget(this: *mut core::ffi::c_void, guidtargettype: *const windows_core::GUID, riid: *const windows_core::GUID, ppvtarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintDocumentPackageTarget_Impl, - { + unsafe extern "system" fn GetPackageTarget(this: *mut core::ffi::c_void, guidtargettype: *const windows_core::GUID, riid: *const windows_core::GUID, ppvtarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDocumentPackageTarget_Impl::GetPackageTarget(this, core::mem::transmute_copy(&guidtargettype), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvtarget)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintDocumentPackageTarget_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDocumentPackageTarget_Impl::Cancel(this).into() } @@ -69,20 +51,14 @@ impl IPrintDocumentPackageTarget_Vtbl { iid == &::IID } } -pub trait IPrintDocumentPackageTarget2_Impl: Sized { +pub trait IPrintDocumentPackageTarget2_Impl: Sized + windows_core::IUnknownImpl { fn GetIsTargetIppPrinter(&self) -> windows_core::Result; fn GetTargetIppPrintDevice(&self, riid: *const windows_core::GUID, ppvtarget: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintDocumentPackageTarget2 {} impl IPrintDocumentPackageTarget2_Vtbl { - pub const fn new() -> IPrintDocumentPackageTarget2_Vtbl - where - Identity: IPrintDocumentPackageTarget2_Impl, - { - unsafe extern "system" fn GetIsTargetIppPrinter(this: *mut core::ffi::c_void, isippprinter: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPrintDocumentPackageTarget2_Impl, - { + pub const fn new() -> IPrintDocumentPackageTarget2_Vtbl { + unsafe extern "system" fn GetIsTargetIppPrinter(this: *mut core::ffi::c_void, isippprinter: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintDocumentPackageTarget2_Impl::GetIsTargetIppPrinter(this) { Ok(ok__) => { @@ -92,10 +68,7 @@ impl IPrintDocumentPackageTarget2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTargetIppPrintDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvtarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintDocumentPackageTarget2_Impl, - { + unsafe extern "system" fn GetTargetIppPrintDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvtarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDocumentPackageTarget2_Impl::GetTargetIppPrintDevice(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvtarget)).into() } @@ -110,21 +83,15 @@ impl IPrintDocumentPackageTarget2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IPrintDocumentPackageTargetFactory_Impl: Sized { +pub trait IPrintDocumentPackageTargetFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateDocumentPackageTargetForPrintJob(&self, printername: &windows_core::PCWSTR, jobname: &windows_core::PCWSTR, joboutputstream: Option<&super::super::super::System::Com::IStream>, jobprintticketstream: Option<&super::super::super::System::Com::IStream>) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IPrintDocumentPackageTargetFactory {} #[cfg(feature = "Win32_System_Com")] impl IPrintDocumentPackageTargetFactory_Vtbl { - pub const fn new() -> IPrintDocumentPackageTargetFactory_Vtbl - where - Identity: IPrintDocumentPackageTargetFactory_Impl, - { - unsafe extern "system" fn CreateDocumentPackageTargetForPrintJob(this: *mut core::ffi::c_void, printername: windows_core::PCWSTR, jobname: windows_core::PCWSTR, joboutputstream: *mut core::ffi::c_void, jobprintticketstream: *mut core::ffi::c_void, docpackagetarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintDocumentPackageTargetFactory_Impl, - { + pub const fn new() -> IPrintDocumentPackageTargetFactory_Vtbl { + unsafe extern "system" fn CreateDocumentPackageTargetForPrintJob(this: *mut core::ffi::c_void, printername: windows_core::PCWSTR, jobname: windows_core::PCWSTR, joboutputstream: *mut core::ffi::c_void, jobprintticketstream: *mut core::ffi::c_void, docpackagetarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintDocumentPackageTargetFactory_Impl::CreateDocumentPackageTargetForPrintJob(this, core::mem::transmute(&printername), core::mem::transmute(&jobname), windows_core::from_raw_borrowed(&joboutputstream), windows_core::from_raw_borrowed(&jobprintticketstream)) { Ok(ok__) => { @@ -143,27 +110,18 @@ impl IPrintDocumentPackageTargetFactory_Vtbl { iid == &::IID } } -pub trait IXpsPrintJob_Impl: Sized { +pub trait IXpsPrintJob_Impl: Sized + windows_core::IUnknownImpl { fn Cancel(&self) -> windows_core::Result<()>; fn GetJobStatus(&self, jobstatus: *mut XPS_JOB_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXpsPrintJob {} impl IXpsPrintJob_Vtbl { - pub const fn new() -> IXpsPrintJob_Vtbl - where - Identity: IXpsPrintJob_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsPrintJob_Impl, - { + pub const fn new() -> IXpsPrintJob_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsPrintJob_Impl::Cancel(this).into() } - unsafe extern "system" fn GetJobStatus(this: *mut core::ffi::c_void, jobstatus: *mut XPS_JOB_STATUS) -> windows_core::HRESULT - where - Identity: IXpsPrintJob_Impl, - { + unsafe extern "system" fn GetJobStatus(this: *mut core::ffi::c_void, jobstatus: *mut XPS_JOB_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsPrintJob_Impl::GetJobStatus(this, core::mem::transmute_copy(&jobstatus)).into() } @@ -185,14 +143,8 @@ pub trait IXpsPrintJobStream_Impl: Sized + super::super::super::System::Com::ISe impl windows_core::RuntimeName for IXpsPrintJobStream {} #[cfg(feature = "Win32_System_Com")] impl IXpsPrintJobStream_Vtbl { - pub const fn new() -> IXpsPrintJobStream_Vtbl - where - Identity: IXpsPrintJobStream_Impl, - { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsPrintJobStream_Impl, - { + pub const fn new() -> IXpsPrintJobStream_Vtbl { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsPrintJobStream_Impl::Close(this).into() } diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Xps/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Xps/impl.rs index f8fb19e6c9..95f1d8322f 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Xps/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Xps/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsDocumentPackageTarget_Impl: Sized { +pub trait IXpsDocumentPackageTarget_Impl: Sized + windows_core::IUnknownImpl { fn GetXpsOMPackageWriter(&self, documentsequencepartname: Option<&super::Packaging::Opc::IOpcPartUri>, discardcontrolpartname: Option<&super::Packaging::Opc::IOpcPartUri>) -> windows_core::Result; fn GetXpsOMFactory(&self) -> windows_core::Result; fn GetXpsType(&self) -> windows_core::Result; @@ -8,14 +8,8 @@ pub trait IXpsDocumentPackageTarget_Impl: Sized { impl windows_core::RuntimeName for IXpsDocumentPackageTarget {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsDocumentPackageTarget_Vtbl { - pub const fn new() -> IXpsDocumentPackageTarget_Vtbl - where - Identity: IXpsDocumentPackageTarget_Impl, - { - unsafe extern "system" fn GetXpsOMPackageWriter(this: *mut core::ffi::c_void, documentsequencepartname: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentPackageTarget_Impl, - { + pub const fn new() -> IXpsDocumentPackageTarget_Vtbl { + unsafe extern "system" fn GetXpsOMPackageWriter(this: *mut core::ffi::c_void, documentsequencepartname: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsDocumentPackageTarget_Impl::GetXpsOMPackageWriter(this, windows_core::from_raw_borrowed(&documentsequencepartname), windows_core::from_raw_borrowed(&discardcontrolpartname)) { Ok(ok__) => { @@ -25,10 +19,7 @@ impl IXpsDocumentPackageTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetXpsOMFactory(this: *mut core::ffi::c_void, xpsfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentPackageTarget_Impl, - { + unsafe extern "system" fn GetXpsOMFactory(this: *mut core::ffi::c_void, xpsfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsDocumentPackageTarget_Impl::GetXpsOMFactory(this) { Ok(ok__) => { @@ -38,10 +29,7 @@ impl IXpsDocumentPackageTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetXpsType(this: *mut core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsDocumentPackageTarget_Impl, - { + unsafe extern "system" fn GetXpsType(this: *mut core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsDocumentPackageTarget_Impl::GetXpsType(this) { Ok(ok__) => { @@ -63,7 +51,7 @@ impl IXpsDocumentPackageTarget_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsDocumentPackageTarget3D_Impl: Sized { +pub trait IXpsDocumentPackageTarget3D_Impl: Sized + windows_core::IUnknownImpl { fn GetXpsOMPackageWriter3D(&self, documentsequencepartname: Option<&super::Packaging::Opc::IOpcPartUri>, discardcontrolpartname: Option<&super::Packaging::Opc::IOpcPartUri>, modelpartname: Option<&super::Packaging::Opc::IOpcPartUri>, modeldata: Option<&super::super::System::Com::IStream>) -> windows_core::Result; fn GetXpsOMFactory(&self) -> windows_core::Result; } @@ -71,14 +59,8 @@ pub trait IXpsDocumentPackageTarget3D_Impl: Sized { impl windows_core::RuntimeName for IXpsDocumentPackageTarget3D {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsDocumentPackageTarget3D_Vtbl { - pub const fn new() -> IXpsDocumentPackageTarget3D_Vtbl - where - Identity: IXpsDocumentPackageTarget3D_Impl, - { - unsafe extern "system" fn GetXpsOMPackageWriter3D(this: *mut core::ffi::c_void, documentsequencepartname: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, modelpartname: *mut core::ffi::c_void, modeldata: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentPackageTarget3D_Impl, - { + pub const fn new() -> IXpsDocumentPackageTarget3D_Vtbl { + unsafe extern "system" fn GetXpsOMPackageWriter3D(this: *mut core::ffi::c_void, documentsequencepartname: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, modelpartname: *mut core::ffi::c_void, modeldata: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsDocumentPackageTarget3D_Impl::GetXpsOMPackageWriter3D(this, windows_core::from_raw_borrowed(&documentsequencepartname), windows_core::from_raw_borrowed(&discardcontrolpartname), windows_core::from_raw_borrowed(&modelpartname), windows_core::from_raw_borrowed(&modeldata)) { Ok(ok__) => { @@ -88,10 +70,7 @@ impl IXpsDocumentPackageTarget3D_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetXpsOMFactory(this: *mut core::ffi::c_void, xpsfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsDocumentPackageTarget3D_Impl, - { + unsafe extern "system" fn GetXpsOMFactory(this: *mut core::ffi::c_void, xpsfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsDocumentPackageTarget3D_Impl::GetXpsOMFactory(this) { Ok(ok__) => { @@ -117,14 +96,8 @@ pub trait IXpsOMBrush_Impl: Sized + IXpsOMShareable_Impl { } impl windows_core::RuntimeName for IXpsOMBrush {} impl IXpsOMBrush_Vtbl { - pub const fn new() -> IXpsOMBrush_Vtbl - where - Identity: IXpsOMBrush_Impl, - { - unsafe extern "system" fn GetOpacity(this: *mut core::ffi::c_void, opacity: *mut f32) -> windows_core::HRESULT - where - Identity: IXpsOMBrush_Impl, - { + pub const fn new() -> IXpsOMBrush_Vtbl { + unsafe extern "system" fn GetOpacity(this: *mut core::ffi::c_void, opacity: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMBrush_Impl::GetOpacity(this) { Ok(ok__) => { @@ -134,10 +107,7 @@ impl IXpsOMBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, opacity: f32) -> windows_core::HRESULT - where - Identity: IXpsOMBrush_Impl, - { + unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, opacity: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMBrush_Impl::SetOpacity(this, core::mem::transmute_copy(&opacity)).into() } @@ -167,14 +137,8 @@ pub trait IXpsOMCanvas_Impl: Sized + IXpsOMVisual_Impl { impl windows_core::RuntimeName for IXpsOMCanvas {} #[cfg(feature = "Win32_System_Com")] impl IXpsOMCanvas_Vtbl { - pub const fn new() -> IXpsOMCanvas_Vtbl - where - Identity: IXpsOMCanvas_Impl, - { - unsafe extern "system" fn GetVisuals(this: *mut core::ffi::c_void, visuals: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + pub const fn new() -> IXpsOMCanvas_Vtbl { + unsafe extern "system" fn GetVisuals(this: *mut core::ffi::c_void, visuals: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCanvas_Impl::GetVisuals(this) { Ok(ok__) => { @@ -184,10 +148,7 @@ impl IXpsOMCanvas_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUseAliasedEdgeMode(this: *mut core::ffi::c_void, usealiasededgemode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn GetUseAliasedEdgeMode(this: *mut core::ffi::c_void, usealiasededgemode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCanvas_Impl::GetUseAliasedEdgeMode(this) { Ok(ok__) => { @@ -197,17 +158,11 @@ impl IXpsOMCanvas_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseAliasedEdgeMode(this: *mut core::ffi::c_void, usealiasededgemode: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn SetUseAliasedEdgeMode(this: *mut core::ffi::c_void, usealiasededgemode: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCanvas_Impl::SetUseAliasedEdgeMode(this, core::mem::transmute_copy(&usealiasededgemode)).into() } - unsafe extern "system" fn GetAccessibilityShortDescription(this: *mut core::ffi::c_void, shortdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn GetAccessibilityShortDescription(this: *mut core::ffi::c_void, shortdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCanvas_Impl::GetAccessibilityShortDescription(this) { Ok(ok__) => { @@ -217,17 +172,11 @@ impl IXpsOMCanvas_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccessibilityShortDescription(this: *mut core::ffi::c_void, shortdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn SetAccessibilityShortDescription(this: *mut core::ffi::c_void, shortdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCanvas_Impl::SetAccessibilityShortDescription(this, core::mem::transmute(&shortdescription)).into() } - unsafe extern "system" fn GetAccessibilityLongDescription(this: *mut core::ffi::c_void, longdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn GetAccessibilityLongDescription(this: *mut core::ffi::c_void, longdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCanvas_Impl::GetAccessibilityLongDescription(this) { Ok(ok__) => { @@ -237,17 +186,11 @@ impl IXpsOMCanvas_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccessibilityLongDescription(this: *mut core::ffi::c_void, longdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn SetAccessibilityLongDescription(this: *mut core::ffi::c_void, longdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCanvas_Impl::SetAccessibilityLongDescription(this, core::mem::transmute(&longdescription)).into() } - unsafe extern "system" fn GetDictionary(this: *mut core::ffi::c_void, resourcedictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn GetDictionary(this: *mut core::ffi::c_void, resourcedictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCanvas_Impl::GetDictionary(this) { Ok(ok__) => { @@ -257,10 +200,7 @@ impl IXpsOMCanvas_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDictionaryLocal(this: *mut core::ffi::c_void, resourcedictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn GetDictionaryLocal(this: *mut core::ffi::c_void, resourcedictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCanvas_Impl::GetDictionaryLocal(this) { Ok(ok__) => { @@ -270,17 +210,11 @@ impl IXpsOMCanvas_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDictionaryLocal(this: *mut core::ffi::c_void, resourcedictionary: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn SetDictionaryLocal(this: *mut core::ffi::c_void, resourcedictionary: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCanvas_Impl::SetDictionaryLocal(this, windows_core::from_raw_borrowed(&resourcedictionary)).into() } - unsafe extern "system" fn GetDictionaryResource(this: *mut core::ffi::c_void, remotedictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn GetDictionaryResource(this: *mut core::ffi::c_void, remotedictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCanvas_Impl::GetDictionaryResource(this) { Ok(ok__) => { @@ -290,17 +224,11 @@ impl IXpsOMCanvas_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDictionaryResource(this: *mut core::ffi::c_void, remotedictionaryresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn SetDictionaryResource(this: *mut core::ffi::c_void, remotedictionaryresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCanvas_Impl::SetDictionaryResource(this, windows_core::from_raw_borrowed(&remotedictionaryresource)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, canvas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMCanvas_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, canvas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCanvas_Impl::Clone(this) { Ok(ok__) => { @@ -340,14 +268,8 @@ pub trait IXpsOMColorProfileResource_Impl: Sized + IXpsOMResource_Impl { impl windows_core::RuntimeName for IXpsOMColorProfileResource {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMColorProfileResource_Vtbl { - pub const fn new() -> IXpsOMColorProfileResource_Vtbl - where - Identity: IXpsOMColorProfileResource_Impl, - { - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMColorProfileResource_Impl, - { + pub const fn new() -> IXpsOMColorProfileResource_Vtbl { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMColorProfileResource_Impl::GetStream(this) { Ok(ok__) => { @@ -357,10 +279,7 @@ impl IXpsOMColorProfileResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, partname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMColorProfileResource_Impl, - { + unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, partname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMColorProfileResource_Impl::SetContent(this, windows_core::from_raw_borrowed(&sourcestream), windows_core::from_raw_borrowed(&partname)).into() } @@ -371,7 +290,7 @@ impl IXpsOMColorProfileResource_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMColorProfileResourceCollection_Impl: Sized { +pub trait IXpsOMColorProfileResourceCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, object: Option<&IXpsOMColorProfileResource>) -> windows_core::Result<()>; @@ -384,14 +303,8 @@ pub trait IXpsOMColorProfileResourceCollection_Impl: Sized { impl windows_core::RuntimeName for IXpsOMColorProfileResourceCollection {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMColorProfileResourceCollection_Vtbl { - pub const fn new() -> IXpsOMColorProfileResourceCollection_Vtbl - where - Identity: IXpsOMColorProfileResourceCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMColorProfileResourceCollection_Impl, - { + pub const fn new() -> IXpsOMColorProfileResourceCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMColorProfileResourceCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -401,10 +314,7 @@ impl IXpsOMColorProfileResourceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMColorProfileResourceCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMColorProfileResourceCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -414,38 +324,23 @@ impl IXpsOMColorProfileResourceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMColorProfileResourceCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMColorProfileResourceCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMColorProfileResourceCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMColorProfileResourceCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMColorProfileResourceCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMColorProfileResourceCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMColorProfileResourceCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMColorProfileResourceCollection_Impl::Append(this, windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn GetByPartName(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMColorProfileResourceCollection_Impl, - { + unsafe extern "system" fn GetByPartName(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMColorProfileResourceCollection_Impl::GetByPartName(this, windows_core::from_raw_borrowed(&partname)) { Ok(ok__) => { @@ -511,14 +406,8 @@ pub trait IXpsOMCoreProperties_Impl: Sized + IXpsOMPart_Impl { impl windows_core::RuntimeName for IXpsOMCoreProperties {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMCoreProperties_Vtbl { - pub const fn new() -> IXpsOMCoreProperties_Vtbl - where - Identity: IXpsOMCoreProperties_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + pub const fn new() -> IXpsOMCoreProperties_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetOwner(this) { Ok(ok__) => { @@ -528,10 +417,7 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, category: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, category: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetCategory(this) { Ok(ok__) => { @@ -541,17 +427,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCategory(this: *mut core::ffi::c_void, category: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetCategory(this: *mut core::ffi::c_void, category: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetCategory(this, core::mem::transmute(&category)).into() } - unsafe extern "system" fn GetContentStatus(this: *mut core::ffi::c_void, contentstatus: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetContentStatus(this: *mut core::ffi::c_void, contentstatus: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetContentStatus(this) { Ok(ok__) => { @@ -561,17 +441,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContentStatus(this: *mut core::ffi::c_void, contentstatus: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetContentStatus(this: *mut core::ffi::c_void, contentstatus: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetContentStatus(this, core::mem::transmute(&contentstatus)).into() } - unsafe extern "system" fn GetContentType(this: *mut core::ffi::c_void, contenttype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetContentType(this: *mut core::ffi::c_void, contenttype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetContentType(this) { Ok(ok__) => { @@ -581,17 +455,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContentType(this: *mut core::ffi::c_void, contenttype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetContentType(this: *mut core::ffi::c_void, contenttype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetContentType(this, core::mem::transmute(&contenttype)).into() } - unsafe extern "system" fn GetCreated(this: *mut core::ffi::c_void, created: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetCreated(this: *mut core::ffi::c_void, created: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetCreated(this) { Ok(ok__) => { @@ -601,17 +469,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCreated(this: *mut core::ffi::c_void, created: *const super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetCreated(this: *mut core::ffi::c_void, created: *const super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetCreated(this, core::mem::transmute_copy(&created)).into() } - unsafe extern "system" fn GetCreator(this: *mut core::ffi::c_void, creator: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetCreator(this: *mut core::ffi::c_void, creator: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetCreator(this) { Ok(ok__) => { @@ -621,17 +483,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCreator(this: *mut core::ffi::c_void, creator: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetCreator(this: *mut core::ffi::c_void, creator: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetCreator(this, core::mem::transmute(&creator)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, description: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, description: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetDescription(this) { Ok(ok__) => { @@ -641,17 +497,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetDescription(this, core::mem::transmute(&description)).into() } - unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, identifier: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, identifier: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetIdentifier(this) { Ok(ok__) => { @@ -661,17 +511,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIdentifier(this: *mut core::ffi::c_void, identifier: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetIdentifier(this: *mut core::ffi::c_void, identifier: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetIdentifier(this, core::mem::transmute(&identifier)).into() } - unsafe extern "system" fn GetKeywords(this: *mut core::ffi::c_void, keywords: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetKeywords(this: *mut core::ffi::c_void, keywords: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetKeywords(this) { Ok(ok__) => { @@ -681,17 +525,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeywords(this: *mut core::ffi::c_void, keywords: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetKeywords(this: *mut core::ffi::c_void, keywords: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetKeywords(this, core::mem::transmute(&keywords)).into() } - unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, language: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, language: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetLanguage(this) { Ok(ok__) => { @@ -701,17 +539,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, language: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, language: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetLanguage(this, core::mem::transmute(&language)).into() } - unsafe extern "system" fn GetLastModifiedBy(this: *mut core::ffi::c_void, lastmodifiedby: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetLastModifiedBy(this: *mut core::ffi::c_void, lastmodifiedby: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetLastModifiedBy(this) { Ok(ok__) => { @@ -721,17 +553,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLastModifiedBy(this: *mut core::ffi::c_void, lastmodifiedby: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetLastModifiedBy(this: *mut core::ffi::c_void, lastmodifiedby: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetLastModifiedBy(this, core::mem::transmute(&lastmodifiedby)).into() } - unsafe extern "system" fn GetLastPrinted(this: *mut core::ffi::c_void, lastprinted: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetLastPrinted(this: *mut core::ffi::c_void, lastprinted: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetLastPrinted(this) { Ok(ok__) => { @@ -741,17 +567,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLastPrinted(this: *mut core::ffi::c_void, lastprinted: *const super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetLastPrinted(this: *mut core::ffi::c_void, lastprinted: *const super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetLastPrinted(this, core::mem::transmute_copy(&lastprinted)).into() } - unsafe extern "system" fn GetModified(this: *mut core::ffi::c_void, modified: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetModified(this: *mut core::ffi::c_void, modified: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetModified(this) { Ok(ok__) => { @@ -761,17 +581,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetModified(this: *mut core::ffi::c_void, modified: *const super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetModified(this: *mut core::ffi::c_void, modified: *const super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetModified(this, core::mem::transmute_copy(&modified)).into() } - unsafe extern "system" fn GetRevision(this: *mut core::ffi::c_void, revision: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetRevision(this: *mut core::ffi::c_void, revision: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetRevision(this) { Ok(ok__) => { @@ -781,17 +595,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRevision(this: *mut core::ffi::c_void, revision: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetRevision(this: *mut core::ffi::c_void, revision: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetRevision(this, core::mem::transmute(&revision)).into() } - unsafe extern "system" fn GetSubject(this: *mut core::ffi::c_void, subject: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetSubject(this: *mut core::ffi::c_void, subject: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetSubject(this) { Ok(ok__) => { @@ -801,17 +609,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubject(this: *mut core::ffi::c_void, subject: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetSubject(this: *mut core::ffi::c_void, subject: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetSubject(this, core::mem::transmute(&subject)).into() } - unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, title: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, title: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetTitle(this) { Ok(ok__) => { @@ -821,17 +623,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, title: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, title: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetTitle(this, core::mem::transmute(&title)).into() } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, version: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, version: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::GetVersion(this) { Ok(ok__) => { @@ -841,17 +637,11 @@ impl IXpsOMCoreProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, version: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, version: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCoreProperties_Impl::SetVersion(this, core::mem::transmute(&version)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, coreproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMCoreProperties_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, coreproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCoreProperties_Impl::Clone(this) { Ok(ok__) => { @@ -903,7 +693,7 @@ impl IXpsOMCoreProperties_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IXpsOMDashCollection_Impl: Sized { +pub trait IXpsOMDashCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, dash: *const XPS_DASH) -> windows_core::Result<()>; @@ -913,14 +703,8 @@ pub trait IXpsOMDashCollection_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMDashCollection {} impl IXpsOMDashCollection_Vtbl { - pub const fn new() -> IXpsOMDashCollection_Vtbl - where - Identity: IXpsOMDashCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMDashCollection_Impl, - { + pub const fn new() -> IXpsOMDashCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDashCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -930,10 +714,7 @@ impl IXpsOMDashCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, dash: *mut XPS_DASH) -> windows_core::HRESULT - where - Identity: IXpsOMDashCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, dash: *mut XPS_DASH) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDashCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -943,31 +724,19 @@ impl IXpsOMDashCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, dash: *const XPS_DASH) -> windows_core::HRESULT - where - Identity: IXpsOMDashCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, dash: *const XPS_DASH) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDashCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&dash)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMDashCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDashCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, dash: *const XPS_DASH) -> windows_core::HRESULT - where - Identity: IXpsOMDashCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, dash: *const XPS_DASH) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDashCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&dash)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, dash: *const XPS_DASH) -> windows_core::HRESULT - where - Identity: IXpsOMDashCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, dash: *const XPS_DASH) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDashCollection_Impl::Append(this, core::mem::transmute_copy(&dash)).into() } @@ -985,7 +754,7 @@ impl IXpsOMDashCollection_Vtbl { iid == &::IID } } -pub trait IXpsOMDictionary_Impl: Sized { +pub trait IXpsOMDictionary_Impl: Sized + windows_core::IUnknownImpl { fn GetOwner(&self) -> windows_core::Result; fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32, key: *mut windows_core::PWSTR) -> windows_core::Result; @@ -999,14 +768,8 @@ pub trait IXpsOMDictionary_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMDictionary {} impl IXpsOMDictionary_Vtbl { - pub const fn new() -> IXpsOMDictionary_Vtbl - where - Identity: IXpsOMDictionary_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDictionary_Impl, - { + pub const fn new() -> IXpsOMDictionary_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDictionary_Impl::GetOwner(this) { Ok(ok__) => { @@ -1016,10 +779,7 @@ impl IXpsOMDictionary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMDictionary_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDictionary_Impl::GetCount(this) { Ok(ok__) => { @@ -1029,10 +789,7 @@ impl IXpsOMDictionary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, key: *mut windows_core::PWSTR, entry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDictionary_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, key: *mut windows_core::PWSTR, entry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDictionary_Impl::GetAt(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -1042,10 +799,7 @@ impl IXpsOMDictionary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetByKey(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, beforeentry: *mut core::ffi::c_void, entry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDictionary_Impl, - { + unsafe extern "system" fn GetByKey(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, beforeentry: *mut core::ffi::c_void, entry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDictionary_Impl::GetByKey(this, core::mem::transmute(&key), windows_core::from_raw_borrowed(&beforeentry)) { Ok(ok__) => { @@ -1055,10 +809,7 @@ impl IXpsOMDictionary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, entry: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMDictionary_Impl, - { + unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, entry: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDictionary_Impl::GetIndex(this, windows_core::from_raw_borrowed(&entry)) { Ok(ok__) => { @@ -1068,38 +819,23 @@ impl IXpsOMDictionary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, entry: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDictionary_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, entry: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDictionary_Impl::Append(this, core::mem::transmute(&key), windows_core::from_raw_borrowed(&entry)).into() } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, key: windows_core::PCWSTR, entry: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDictionary_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, key: windows_core::PCWSTR, entry: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDictionary_Impl::InsertAt(this, core::mem::transmute_copy(&index), core::mem::transmute(&key), windows_core::from_raw_borrowed(&entry)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMDictionary_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDictionary_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, key: windows_core::PCWSTR, entry: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDictionary_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, key: windows_core::PCWSTR, entry: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDictionary_Impl::SetAt(this, core::mem::transmute_copy(&index), core::mem::transmute(&key), windows_core::from_raw_borrowed(&entry)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, dictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDictionary_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, dictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDictionary_Impl::Clone(this) { Ok(ok__) => { @@ -1142,14 +878,8 @@ pub trait IXpsOMDocument_Impl: Sized + IXpsOMPart_Impl { impl windows_core::RuntimeName for IXpsOMDocument {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMDocument_Vtbl { - pub const fn new() -> IXpsOMDocument_Vtbl - where - Identity: IXpsOMDocument_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, documentsequence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocument_Impl, - { + pub const fn new() -> IXpsOMDocument_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, documentsequence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocument_Impl::GetOwner(this) { Ok(ok__) => { @@ -1159,10 +889,7 @@ impl IXpsOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPageReferences(this: *mut core::ffi::c_void, pagereferences: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocument_Impl, - { + unsafe extern "system" fn GetPageReferences(this: *mut core::ffi::c_void, pagereferences: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocument_Impl::GetPageReferences(this) { Ok(ok__) => { @@ -1172,10 +899,7 @@ impl IXpsOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocument_Impl, - { + unsafe extern "system" fn GetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocument_Impl::GetPrintTicketResource(this) { Ok(ok__) => { @@ -1185,17 +909,11 @@ impl IXpsOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocument_Impl, - { + unsafe extern "system" fn SetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDocument_Impl::SetPrintTicketResource(this, windows_core::from_raw_borrowed(&printticketresource)).into() } - unsafe extern "system" fn GetDocumentStructureResource(this: *mut core::ffi::c_void, documentstructureresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocument_Impl, - { + unsafe extern "system" fn GetDocumentStructureResource(this: *mut core::ffi::c_void, documentstructureresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocument_Impl::GetDocumentStructureResource(this) { Ok(ok__) => { @@ -1205,17 +923,11 @@ impl IXpsOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDocumentStructureResource(this: *mut core::ffi::c_void, documentstructureresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocument_Impl, - { + unsafe extern "system" fn SetDocumentStructureResource(this: *mut core::ffi::c_void, documentstructureresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDocument_Impl::SetDocumentStructureResource(this, windows_core::from_raw_borrowed(&documentstructureresource)).into() } - unsafe extern "system" fn GetSignatureBlockResources(this: *mut core::ffi::c_void, signatureblockresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocument_Impl, - { + unsafe extern "system" fn GetSignatureBlockResources(this: *mut core::ffi::c_void, signatureblockresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocument_Impl::GetSignatureBlockResources(this) { Ok(ok__) => { @@ -1225,10 +937,7 @@ impl IXpsOMDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocument_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocument_Impl::Clone(this) { Ok(ok__) => { @@ -1254,7 +963,7 @@ impl IXpsOMDocument_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IXpsOMDocumentCollection_Impl: Sized { +pub trait IXpsOMDocumentCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, document: Option<&IXpsOMDocument>) -> windows_core::Result<()>; @@ -1264,14 +973,8 @@ pub trait IXpsOMDocumentCollection_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMDocumentCollection {} impl IXpsOMDocumentCollection_Vtbl { - pub const fn new() -> IXpsOMDocumentCollection_Vtbl - where - Identity: IXpsOMDocumentCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentCollection_Impl, - { + pub const fn new() -> IXpsOMDocumentCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocumentCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -1281,10 +984,7 @@ impl IXpsOMDocumentCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocumentCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1294,31 +994,19 @@ impl IXpsOMDocumentCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, document: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, document: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDocumentCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&document)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDocumentCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, document: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, document: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDocumentCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&document)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDocumentCollection_Impl::Append(this, windows_core::from_raw_borrowed(&document)).into() } @@ -1347,14 +1035,8 @@ pub trait IXpsOMDocumentSequence_Impl: Sized + IXpsOMPart_Impl { impl windows_core::RuntimeName for IXpsOMDocumentSequence {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMDocumentSequence_Vtbl { - pub const fn new() -> IXpsOMDocumentSequence_Vtbl - where - Identity: IXpsOMDocumentSequence_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentSequence_Impl, - { + pub const fn new() -> IXpsOMDocumentSequence_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocumentSequence_Impl::GetOwner(this) { Ok(ok__) => { @@ -1364,10 +1046,7 @@ impl IXpsOMDocumentSequence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocuments(this: *mut core::ffi::c_void, documents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentSequence_Impl, - { + unsafe extern "system" fn GetDocuments(this: *mut core::ffi::c_void, documents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocumentSequence_Impl::GetDocuments(this) { Ok(ok__) => { @@ -1377,10 +1056,7 @@ impl IXpsOMDocumentSequence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentSequence_Impl, - { + unsafe extern "system" fn GetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocumentSequence_Impl::GetPrintTicketResource(this) { Ok(ok__) => { @@ -1390,10 +1066,7 @@ impl IXpsOMDocumentSequence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentSequence_Impl, - { + unsafe extern "system" fn SetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDocumentSequence_Impl::SetPrintTicketResource(this, windows_core::from_raw_borrowed(&printticketresource)).into() } @@ -1419,14 +1092,8 @@ pub trait IXpsOMDocumentStructureResource_Impl: Sized + IXpsOMResource_Impl { impl windows_core::RuntimeName for IXpsOMDocumentStructureResource {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMDocumentStructureResource_Vtbl { - pub const fn new() -> IXpsOMDocumentStructureResource_Vtbl - where - Identity: IXpsOMDocumentStructureResource_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentStructureResource_Impl, - { + pub const fn new() -> IXpsOMDocumentStructureResource_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocumentStructureResource_Impl::GetOwner(this) { Ok(ok__) => { @@ -1436,10 +1103,7 @@ impl IXpsOMDocumentStructureResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentStructureResource_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMDocumentStructureResource_Impl::GetStream(this) { Ok(ok__) => { @@ -1449,10 +1113,7 @@ impl IXpsOMDocumentStructureResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, partname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMDocumentStructureResource_Impl, - { + unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, partname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMDocumentStructureResource_Impl::SetContent(this, windows_core::from_raw_borrowed(&sourcestream), windows_core::from_raw_borrowed(&partname)).into() } @@ -1477,14 +1138,8 @@ pub trait IXpsOMFontResource_Impl: Sized + IXpsOMResource_Impl { impl windows_core::RuntimeName for IXpsOMFontResource {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMFontResource_Vtbl { - pub const fn new() -> IXpsOMFontResource_Vtbl - where - Identity: IXpsOMFontResource_Impl, - { - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, readerstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMFontResource_Impl, - { + pub const fn new() -> IXpsOMFontResource_Vtbl { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, readerstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMFontResource_Impl::GetStream(this) { Ok(ok__) => { @@ -1494,17 +1149,11 @@ impl IXpsOMFontResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, embeddingoption: XPS_FONT_EMBEDDING, partname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMFontResource_Impl, - { + unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, embeddingoption: XPS_FONT_EMBEDDING, partname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMFontResource_Impl::SetContent(this, windows_core::from_raw_borrowed(&sourcestream), core::mem::transmute_copy(&embeddingoption), windows_core::from_raw_borrowed(&partname)).into() } - unsafe extern "system" fn GetEmbeddingOption(this: *mut core::ffi::c_void, embeddingoption: *mut XPS_FONT_EMBEDDING) -> windows_core::HRESULT - where - Identity: IXpsOMFontResource_Impl, - { + unsafe extern "system" fn GetEmbeddingOption(this: *mut core::ffi::c_void, embeddingoption: *mut XPS_FONT_EMBEDDING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMFontResource_Impl::GetEmbeddingOption(this) { Ok(ok__) => { @@ -1526,7 +1175,7 @@ impl IXpsOMFontResource_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMFontResourceCollection_Impl: Sized { +pub trait IXpsOMFontResourceCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn SetAt(&self, index: u32, value: Option<&IXpsOMFontResource>) -> windows_core::Result<()>; @@ -1539,14 +1188,8 @@ pub trait IXpsOMFontResourceCollection_Impl: Sized { impl windows_core::RuntimeName for IXpsOMFontResourceCollection {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMFontResourceCollection_Vtbl { - pub const fn new() -> IXpsOMFontResourceCollection_Vtbl - where - Identity: IXpsOMFontResourceCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMFontResourceCollection_Impl, - { + pub const fn new() -> IXpsOMFontResourceCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMFontResourceCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -1556,10 +1199,7 @@ impl IXpsOMFontResourceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMFontResourceCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMFontResourceCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1569,38 +1209,23 @@ impl IXpsOMFontResourceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMFontResourceCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMFontResourceCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMFontResourceCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMFontResourceCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMFontResourceCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMFontResourceCollection_Impl::Append(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMFontResourceCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMFontResourceCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn GetByPartName(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMFontResourceCollection_Impl, - { + unsafe extern "system" fn GetByPartName(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMFontResourceCollection_Impl::GetByPartName(this, windows_core::from_raw_borrowed(&partname)) { Ok(ok__) => { @@ -1638,14 +1263,8 @@ pub trait IXpsOMGeometry_Impl: Sized + IXpsOMShareable_Impl { } impl windows_core::RuntimeName for IXpsOMGeometry {} impl IXpsOMGeometry_Vtbl { - pub const fn new() -> IXpsOMGeometry_Vtbl - where - Identity: IXpsOMGeometry_Impl, - { - unsafe extern "system" fn GetFigures(this: *mut core::ffi::c_void, figures: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometry_Impl, - { + pub const fn new() -> IXpsOMGeometry_Vtbl { + unsafe extern "system" fn GetFigures(this: *mut core::ffi::c_void, figures: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometry_Impl::GetFigures(this) { Ok(ok__) => { @@ -1655,10 +1274,7 @@ impl IXpsOMGeometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFillRule(this: *mut core::ffi::c_void, fillrule: *mut XPS_FILL_RULE) -> windows_core::HRESULT - where - Identity: IXpsOMGeometry_Impl, - { + unsafe extern "system" fn GetFillRule(this: *mut core::ffi::c_void, fillrule: *mut XPS_FILL_RULE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometry_Impl::GetFillRule(this) { Ok(ok__) => { @@ -1668,17 +1284,11 @@ impl IXpsOMGeometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFillRule(this: *mut core::ffi::c_void, fillrule: XPS_FILL_RULE) -> windows_core::HRESULT - where - Identity: IXpsOMGeometry_Impl, - { + unsafe extern "system" fn SetFillRule(this: *mut core::ffi::c_void, fillrule: XPS_FILL_RULE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometry_Impl::SetFillRule(this, core::mem::transmute_copy(&fillrule)).into() } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometry_Impl, - { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometry_Impl::GetTransform(this) { Ok(ok__) => { @@ -1688,10 +1298,7 @@ impl IXpsOMGeometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransformLocal(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometry_Impl, - { + unsafe extern "system" fn GetTransformLocal(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometry_Impl::GetTransformLocal(this) { Ok(ok__) => { @@ -1701,17 +1308,11 @@ impl IXpsOMGeometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransformLocal(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometry_Impl, - { + unsafe extern "system" fn SetTransformLocal(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometry_Impl::SetTransformLocal(this, windows_core::from_raw_borrowed(&transform)).into() } - unsafe extern "system" fn GetTransformLookup(this: *mut core::ffi::c_void, lookup: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGeometry_Impl, - { + unsafe extern "system" fn GetTransformLookup(this: *mut core::ffi::c_void, lookup: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometry_Impl::GetTransformLookup(this) { Ok(ok__) => { @@ -1721,17 +1322,11 @@ impl IXpsOMGeometry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransformLookup(this: *mut core::ffi::c_void, lookup: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGeometry_Impl, - { + unsafe extern "system" fn SetTransformLookup(this: *mut core::ffi::c_void, lookup: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometry_Impl::SetTransformLookup(this, core::mem::transmute(&lookup)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, geometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometry_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, geometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometry_Impl::Clone(this) { Ok(ok__) => { @@ -1758,7 +1353,7 @@ impl IXpsOMGeometry_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IXpsOMGeometryFigure_Impl: Sized { +pub trait IXpsOMGeometryFigure_Impl: Sized + windows_core::IUnknownImpl { fn GetOwner(&self) -> windows_core::Result; fn GetSegmentData(&self, datacount: *mut u32, segmentdata: *mut f32) -> windows_core::Result<()>; fn GetSegmentTypes(&self, segmentcount: *mut u32, segmenttypes: *mut XPS_SEGMENT_TYPE) -> windows_core::Result<()>; @@ -1777,14 +1372,8 @@ pub trait IXpsOMGeometryFigure_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMGeometryFigure {} impl IXpsOMGeometryFigure_Vtbl { - pub const fn new() -> IXpsOMGeometryFigure_Vtbl - where - Identity: IXpsOMGeometryFigure_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + pub const fn new() -> IXpsOMGeometryFigure_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigure_Impl::GetOwner(this) { Ok(ok__) => { @@ -1794,38 +1383,23 @@ impl IXpsOMGeometryFigure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSegmentData(this: *mut core::ffi::c_void, datacount: *mut u32, segmentdata: *mut f32) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn GetSegmentData(this: *mut core::ffi::c_void, datacount: *mut u32, segmentdata: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::GetSegmentData(this, core::mem::transmute_copy(&datacount), core::mem::transmute_copy(&segmentdata)).into() } - unsafe extern "system" fn GetSegmentTypes(this: *mut core::ffi::c_void, segmentcount: *mut u32, segmenttypes: *mut XPS_SEGMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn GetSegmentTypes(this: *mut core::ffi::c_void, segmentcount: *mut u32, segmenttypes: *mut XPS_SEGMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::GetSegmentTypes(this, core::mem::transmute_copy(&segmentcount), core::mem::transmute_copy(&segmenttypes)).into() } - unsafe extern "system" fn GetSegmentStrokes(this: *mut core::ffi::c_void, segmentcount: *mut u32, segmentstrokes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn GetSegmentStrokes(this: *mut core::ffi::c_void, segmentcount: *mut u32, segmentstrokes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::GetSegmentStrokes(this, core::mem::transmute_copy(&segmentcount), core::mem::transmute_copy(&segmentstrokes)).into() } - unsafe extern "system" fn SetSegments(this: *mut core::ffi::c_void, segmentcount: u32, segmentdatacount: u32, segmenttypes: *const XPS_SEGMENT_TYPE, segmentdata: *const f32, segmentstrokes: *const super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn SetSegments(this: *mut core::ffi::c_void, segmentcount: u32, segmentdatacount: u32, segmenttypes: *const XPS_SEGMENT_TYPE, segmentdata: *const f32, segmentstrokes: *const super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::SetSegments(this, core::mem::transmute_copy(&segmentcount), core::mem::transmute_copy(&segmentdatacount), core::mem::transmute_copy(&segmenttypes), core::mem::transmute_copy(&segmentdata), core::mem::transmute_copy(&segmentstrokes)).into() } - unsafe extern "system" fn GetStartPoint(this: *mut core::ffi::c_void, startpoint: *mut XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn GetStartPoint(this: *mut core::ffi::c_void, startpoint: *mut XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigure_Impl::GetStartPoint(this) { Ok(ok__) => { @@ -1835,17 +1409,11 @@ impl IXpsOMGeometryFigure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartPoint(this: *mut core::ffi::c_void, startpoint: *const XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn SetStartPoint(this: *mut core::ffi::c_void, startpoint: *const XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::SetStartPoint(this, core::mem::transmute_copy(&startpoint)).into() } - unsafe extern "system" fn GetIsClosed(this: *mut core::ffi::c_void, isclosed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn GetIsClosed(this: *mut core::ffi::c_void, isclosed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigure_Impl::GetIsClosed(this) { Ok(ok__) => { @@ -1855,17 +1423,11 @@ impl IXpsOMGeometryFigure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsClosed(this: *mut core::ffi::c_void, isclosed: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn SetIsClosed(this: *mut core::ffi::c_void, isclosed: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::SetIsClosed(this, core::mem::transmute_copy(&isclosed)).into() } - unsafe extern "system" fn GetIsFilled(this: *mut core::ffi::c_void, isfilled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn GetIsFilled(this: *mut core::ffi::c_void, isfilled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigure_Impl::GetIsFilled(this) { Ok(ok__) => { @@ -1875,17 +1437,11 @@ impl IXpsOMGeometryFigure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsFilled(this: *mut core::ffi::c_void, isfilled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn SetIsFilled(this: *mut core::ffi::c_void, isfilled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::SetIsFilled(this, core::mem::transmute_copy(&isfilled)).into() } - unsafe extern "system" fn GetSegmentCount(this: *mut core::ffi::c_void, segmentcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn GetSegmentCount(this: *mut core::ffi::c_void, segmentcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigure_Impl::GetSegmentCount(this) { Ok(ok__) => { @@ -1895,10 +1451,7 @@ impl IXpsOMGeometryFigure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSegmentDataCount(this: *mut core::ffi::c_void, segmentdatacount: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn GetSegmentDataCount(this: *mut core::ffi::c_void, segmentdatacount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigure_Impl::GetSegmentDataCount(this) { Ok(ok__) => { @@ -1908,10 +1461,7 @@ impl IXpsOMGeometryFigure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSegmentStrokePattern(this: *mut core::ffi::c_void, segmentstrokepattern: *mut XPS_SEGMENT_STROKE_PATTERN) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn GetSegmentStrokePattern(this: *mut core::ffi::c_void, segmentstrokepattern: *mut XPS_SEGMENT_STROKE_PATTERN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigure_Impl::GetSegmentStrokePattern(this) { Ok(ok__) => { @@ -1921,10 +1471,7 @@ impl IXpsOMGeometryFigure_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, geometryfigure: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigure_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, geometryfigure: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigure_Impl::Clone(this) { Ok(ok__) => { @@ -1957,7 +1504,7 @@ impl IXpsOMGeometryFigure_Vtbl { iid == &::IID } } -pub trait IXpsOMGeometryFigureCollection_Impl: Sized { +pub trait IXpsOMGeometryFigureCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, geometryfigure: Option<&IXpsOMGeometryFigure>) -> windows_core::Result<()>; @@ -1967,14 +1514,8 @@ pub trait IXpsOMGeometryFigureCollection_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMGeometryFigureCollection {} impl IXpsOMGeometryFigureCollection_Vtbl { - pub const fn new() -> IXpsOMGeometryFigureCollection_Vtbl - where - Identity: IXpsOMGeometryFigureCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigureCollection_Impl, - { + pub const fn new() -> IXpsOMGeometryFigureCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigureCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -1984,10 +1525,7 @@ impl IXpsOMGeometryFigureCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, geometryfigure: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigureCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, geometryfigure: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigureCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1997,31 +1535,19 @@ impl IXpsOMGeometryFigureCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, geometryfigure: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigureCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, geometryfigure: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigureCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&geometryfigure)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigureCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigureCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, geometryfigure: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigureCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, geometryfigure: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigureCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&geometryfigure)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, geometryfigure: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGeometryFigureCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, geometryfigure: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigureCollection_Impl::Append(this, windows_core::from_raw_borrowed(&geometryfigure)).into() } @@ -2073,14 +1599,8 @@ pub trait IXpsOMGlyphs_Impl: Sized + IXpsOMVisual_Impl { impl windows_core::RuntimeName for IXpsOMGlyphs {} #[cfg(feature = "Win32_System_Com")] impl IXpsOMGlyphs_Vtbl { - pub const fn new() -> IXpsOMGlyphs_Vtbl - where - Identity: IXpsOMGlyphs_Impl, - { - unsafe extern "system" fn GetUnicodeString(this: *mut core::ffi::c_void, unicodestring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + pub const fn new() -> IXpsOMGlyphs_Vtbl { + unsafe extern "system" fn GetUnicodeString(this: *mut core::ffi::c_void, unicodestring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetUnicodeString(this) { Ok(ok__) => { @@ -2090,10 +1610,7 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGlyphIndexCount(this: *mut core::ffi::c_void, indexcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetGlyphIndexCount(this: *mut core::ffi::c_void, indexcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetGlyphIndexCount(this) { Ok(ok__) => { @@ -2103,17 +1620,11 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGlyphIndices(this: *mut core::ffi::c_void, indexcount: *mut u32, glyphindices: *mut XPS_GLYPH_INDEX) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetGlyphIndices(this: *mut core::ffi::c_void, indexcount: *mut u32, glyphindices: *mut XPS_GLYPH_INDEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphs_Impl::GetGlyphIndices(this, core::mem::transmute_copy(&indexcount), core::mem::transmute_copy(&glyphindices)).into() } - unsafe extern "system" fn GetGlyphMappingCount(this: *mut core::ffi::c_void, glyphmappingcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetGlyphMappingCount(this: *mut core::ffi::c_void, glyphmappingcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetGlyphMappingCount(this) { Ok(ok__) => { @@ -2123,17 +1634,11 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGlyphMappings(this: *mut core::ffi::c_void, glyphmappingcount: *mut u32, glyphmappings: *mut XPS_GLYPH_MAPPING) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetGlyphMappings(this: *mut core::ffi::c_void, glyphmappingcount: *mut u32, glyphmappings: *mut XPS_GLYPH_MAPPING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphs_Impl::GetGlyphMappings(this, core::mem::transmute_copy(&glyphmappingcount), core::mem::transmute_copy(&glyphmappings)).into() } - unsafe extern "system" fn GetProhibitedCaretStopCount(this: *mut core::ffi::c_void, prohibitedcaretstopcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetProhibitedCaretStopCount(this: *mut core::ffi::c_void, prohibitedcaretstopcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetProhibitedCaretStopCount(this) { Ok(ok__) => { @@ -2143,17 +1648,11 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProhibitedCaretStops(this: *mut core::ffi::c_void, prohibitedcaretstopcount: *mut u32, prohibitedcaretstops: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetProhibitedCaretStops(this: *mut core::ffi::c_void, prohibitedcaretstopcount: *mut u32, prohibitedcaretstops: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphs_Impl::GetProhibitedCaretStops(this, core::mem::transmute_copy(&prohibitedcaretstopcount), core::mem::transmute_copy(&prohibitedcaretstops)).into() } - unsafe extern "system" fn GetBidiLevel(this: *mut core::ffi::c_void, bidilevel: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetBidiLevel(this: *mut core::ffi::c_void, bidilevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetBidiLevel(this) { Ok(ok__) => { @@ -2163,10 +1662,7 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIsSideways(this: *mut core::ffi::c_void, issideways: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetIsSideways(this: *mut core::ffi::c_void, issideways: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetIsSideways(this) { Ok(ok__) => { @@ -2176,10 +1672,7 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceFontName(this: *mut core::ffi::c_void, devicefontname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetDeviceFontName(this: *mut core::ffi::c_void, devicefontname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetDeviceFontName(this) { Ok(ok__) => { @@ -2189,10 +1682,7 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStyleSimulations(this: *mut core::ffi::c_void, stylesimulations: *mut XPS_STYLE_SIMULATION) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetStyleSimulations(this: *mut core::ffi::c_void, stylesimulations: *mut XPS_STYLE_SIMULATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetStyleSimulations(this) { Ok(ok__) => { @@ -2202,17 +1692,11 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStyleSimulations(this: *mut core::ffi::c_void, stylesimulations: XPS_STYLE_SIMULATION) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn SetStyleSimulations(this: *mut core::ffi::c_void, stylesimulations: XPS_STYLE_SIMULATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphs_Impl::SetStyleSimulations(this, core::mem::transmute_copy(&stylesimulations)).into() } - unsafe extern "system" fn GetOrigin(this: *mut core::ffi::c_void, origin: *mut XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetOrigin(this: *mut core::ffi::c_void, origin: *mut XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetOrigin(this) { Ok(ok__) => { @@ -2222,17 +1706,11 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOrigin(this: *mut core::ffi::c_void, origin: *const XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn SetOrigin(this: *mut core::ffi::c_void, origin: *const XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphs_Impl::SetOrigin(this, core::mem::transmute_copy(&origin)).into() } - unsafe extern "system" fn GetFontRenderingEmSize(this: *mut core::ffi::c_void, fontrenderingemsize: *mut f32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetFontRenderingEmSize(this: *mut core::ffi::c_void, fontrenderingemsize: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetFontRenderingEmSize(this) { Ok(ok__) => { @@ -2242,17 +1720,11 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFontRenderingEmSize(this: *mut core::ffi::c_void, fontrenderingemsize: f32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn SetFontRenderingEmSize(this: *mut core::ffi::c_void, fontrenderingemsize: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphs_Impl::SetFontRenderingEmSize(this, core::mem::transmute_copy(&fontrenderingemsize)).into() } - unsafe extern "system" fn GetFontResource(this: *mut core::ffi::c_void, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetFontResource(this: *mut core::ffi::c_void, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetFontResource(this) { Ok(ok__) => { @@ -2262,17 +1734,11 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFontResource(this: *mut core::ffi::c_void, fontresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn SetFontResource(this: *mut core::ffi::c_void, fontresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphs_Impl::SetFontResource(this, windows_core::from_raw_borrowed(&fontresource)).into() } - unsafe extern "system" fn GetFontFaceIndex(this: *mut core::ffi::c_void, fontfaceindex: *mut i16) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetFontFaceIndex(this: *mut core::ffi::c_void, fontfaceindex: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetFontFaceIndex(this) { Ok(ok__) => { @@ -2282,17 +1748,11 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFontFaceIndex(this: *mut core::ffi::c_void, fontfaceindex: i16) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn SetFontFaceIndex(this: *mut core::ffi::c_void, fontfaceindex: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphs_Impl::SetFontFaceIndex(this, core::mem::transmute_copy(&fontfaceindex)).into() } - unsafe extern "system" fn GetFillBrush(this: *mut core::ffi::c_void, fillbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetFillBrush(this: *mut core::ffi::c_void, fillbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetFillBrush(this) { Ok(ok__) => { @@ -2302,10 +1762,7 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFillBrushLocal(this: *mut core::ffi::c_void, fillbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetFillBrushLocal(this: *mut core::ffi::c_void, fillbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetFillBrushLocal(this) { Ok(ok__) => { @@ -2315,17 +1772,11 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFillBrushLocal(this: *mut core::ffi::c_void, fillbrush: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn SetFillBrushLocal(this: *mut core::ffi::c_void, fillbrush: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphs_Impl::SetFillBrushLocal(this, windows_core::from_raw_borrowed(&fillbrush)).into() } - unsafe extern "system" fn GetFillBrushLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetFillBrushLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetFillBrushLookup(this) { Ok(ok__) => { @@ -2335,17 +1786,11 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFillBrushLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn SetFillBrushLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphs_Impl::SetFillBrushLookup(this, core::mem::transmute(&key)).into() } - unsafe extern "system" fn GetGlyphsEditor(this: *mut core::ffi::c_void, editor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn GetGlyphsEditor(this: *mut core::ffi::c_void, editor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetGlyphsEditor(this) { Ok(ok__) => { @@ -2355,10 +1800,7 @@ impl IXpsOMGlyphs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, glyphs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphs_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, glyphs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::Clone(this) { Ok(ok__) => { @@ -2403,7 +1845,7 @@ impl IXpsOMGlyphs_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IXpsOMGlyphsEditor_Impl: Sized { +pub trait IXpsOMGlyphsEditor_Impl: Sized + windows_core::IUnknownImpl { fn ApplyEdits(&self) -> windows_core::Result<()>; fn GetUnicodeString(&self) -> windows_core::Result; fn SetUnicodeString(&self, unicodestring: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -2425,21 +1867,12 @@ pub trait IXpsOMGlyphsEditor_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMGlyphsEditor {} impl IXpsOMGlyphsEditor_Vtbl { - pub const fn new() -> IXpsOMGlyphsEditor_Vtbl - where - Identity: IXpsOMGlyphsEditor_Impl, - { - unsafe extern "system" fn ApplyEdits(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + pub const fn new() -> IXpsOMGlyphsEditor_Vtbl { + unsafe extern "system" fn ApplyEdits(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::ApplyEdits(this).into() } - unsafe extern "system" fn GetUnicodeString(this: *mut core::ffi::c_void, unicodestring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn GetUnicodeString(this: *mut core::ffi::c_void, unicodestring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphsEditor_Impl::GetUnicodeString(this) { Ok(ok__) => { @@ -2449,17 +1882,11 @@ impl IXpsOMGlyphsEditor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUnicodeString(this: *mut core::ffi::c_void, unicodestring: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn SetUnicodeString(this: *mut core::ffi::c_void, unicodestring: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::SetUnicodeString(this, core::mem::transmute(&unicodestring)).into() } - unsafe extern "system" fn GetGlyphIndexCount(this: *mut core::ffi::c_void, indexcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn GetGlyphIndexCount(this: *mut core::ffi::c_void, indexcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphsEditor_Impl::GetGlyphIndexCount(this) { Ok(ok__) => { @@ -2469,24 +1896,15 @@ impl IXpsOMGlyphsEditor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGlyphIndices(this: *mut core::ffi::c_void, indexcount: *mut u32, glyphindices: *mut XPS_GLYPH_INDEX) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn GetGlyphIndices(this: *mut core::ffi::c_void, indexcount: *mut u32, glyphindices: *mut XPS_GLYPH_INDEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::GetGlyphIndices(this, core::mem::transmute_copy(&indexcount), core::mem::transmute_copy(&glyphindices)).into() } - unsafe extern "system" fn SetGlyphIndices(this: *mut core::ffi::c_void, indexcount: u32, glyphindices: *const XPS_GLYPH_INDEX) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn SetGlyphIndices(this: *mut core::ffi::c_void, indexcount: u32, glyphindices: *const XPS_GLYPH_INDEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::SetGlyphIndices(this, core::mem::transmute_copy(&indexcount), core::mem::transmute_copy(&glyphindices)).into() } - unsafe extern "system" fn GetGlyphMappingCount(this: *mut core::ffi::c_void, glyphmappingcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn GetGlyphMappingCount(this: *mut core::ffi::c_void, glyphmappingcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphsEditor_Impl::GetGlyphMappingCount(this) { Ok(ok__) => { @@ -2496,24 +1914,15 @@ impl IXpsOMGlyphsEditor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGlyphMappings(this: *mut core::ffi::c_void, glyphmappingcount: *mut u32, glyphmappings: *mut XPS_GLYPH_MAPPING) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn GetGlyphMappings(this: *mut core::ffi::c_void, glyphmappingcount: *mut u32, glyphmappings: *mut XPS_GLYPH_MAPPING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::GetGlyphMappings(this, core::mem::transmute_copy(&glyphmappingcount), core::mem::transmute_copy(&glyphmappings)).into() } - unsafe extern "system" fn SetGlyphMappings(this: *mut core::ffi::c_void, glyphmappingcount: u32, glyphmappings: *const XPS_GLYPH_MAPPING) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn SetGlyphMappings(this: *mut core::ffi::c_void, glyphmappingcount: u32, glyphmappings: *const XPS_GLYPH_MAPPING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::SetGlyphMappings(this, core::mem::transmute_copy(&glyphmappingcount), core::mem::transmute_copy(&glyphmappings)).into() } - unsafe extern "system" fn GetProhibitedCaretStopCount(this: *mut core::ffi::c_void, prohibitedcaretstopcount: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn GetProhibitedCaretStopCount(this: *mut core::ffi::c_void, prohibitedcaretstopcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphsEditor_Impl::GetProhibitedCaretStopCount(this) { Ok(ok__) => { @@ -2523,24 +1932,15 @@ impl IXpsOMGlyphsEditor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProhibitedCaretStops(this: *mut core::ffi::c_void, count: *mut u32, prohibitedcaretstops: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn GetProhibitedCaretStops(this: *mut core::ffi::c_void, count: *mut u32, prohibitedcaretstops: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::GetProhibitedCaretStops(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&prohibitedcaretstops)).into() } - unsafe extern "system" fn SetProhibitedCaretStops(this: *mut core::ffi::c_void, count: u32, prohibitedcaretstops: *const u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn SetProhibitedCaretStops(this: *mut core::ffi::c_void, count: u32, prohibitedcaretstops: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::SetProhibitedCaretStops(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&prohibitedcaretstops)).into() } - unsafe extern "system" fn GetBidiLevel(this: *mut core::ffi::c_void, bidilevel: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn GetBidiLevel(this: *mut core::ffi::c_void, bidilevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphsEditor_Impl::GetBidiLevel(this) { Ok(ok__) => { @@ -2550,17 +1950,11 @@ impl IXpsOMGlyphsEditor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBidiLevel(this: *mut core::ffi::c_void, bidilevel: u32) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn SetBidiLevel(this: *mut core::ffi::c_void, bidilevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::SetBidiLevel(this, core::mem::transmute_copy(&bidilevel)).into() } - unsafe extern "system" fn GetIsSideways(this: *mut core::ffi::c_void, issideways: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn GetIsSideways(this: *mut core::ffi::c_void, issideways: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphsEditor_Impl::GetIsSideways(this) { Ok(ok__) => { @@ -2570,17 +1964,11 @@ impl IXpsOMGlyphsEditor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsSideways(this: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn SetIsSideways(this: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::SetIsSideways(this, core::mem::transmute_copy(&issideways)).into() } - unsafe extern "system" fn GetDeviceFontName(this: *mut core::ffi::c_void, devicefontname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn GetDeviceFontName(this: *mut core::ffi::c_void, devicefontname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphsEditor_Impl::GetDeviceFontName(this) { Ok(ok__) => { @@ -2590,10 +1978,7 @@ impl IXpsOMGlyphsEditor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDeviceFontName(this: *mut core::ffi::c_void, devicefontname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGlyphsEditor_Impl, - { + unsafe extern "system" fn SetDeviceFontName(this: *mut core::ffi::c_void, devicefontname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::SetDeviceFontName(this, core::mem::transmute(&devicefontname)).into() } @@ -2637,14 +2022,8 @@ pub trait IXpsOMGradientBrush_Impl: Sized + IXpsOMBrush_Impl { } impl windows_core::RuntimeName for IXpsOMGradientBrush {} impl IXpsOMGradientBrush_Vtbl { - pub const fn new() -> IXpsOMGradientBrush_Vtbl - where - Identity: IXpsOMGradientBrush_Impl, - { - unsafe extern "system" fn GetGradientStops(this: *mut core::ffi::c_void, gradientstops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientBrush_Impl, - { + pub const fn new() -> IXpsOMGradientBrush_Vtbl { + unsafe extern "system" fn GetGradientStops(this: *mut core::ffi::c_void, gradientstops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientBrush_Impl::GetGradientStops(this) { Ok(ok__) => { @@ -2654,10 +2033,7 @@ impl IXpsOMGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientBrush_Impl, - { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientBrush_Impl::GetTransform(this) { Ok(ok__) => { @@ -2667,10 +2043,7 @@ impl IXpsOMGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransformLocal(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientBrush_Impl, - { + unsafe extern "system" fn GetTransformLocal(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientBrush_Impl::GetTransformLocal(this) { Ok(ok__) => { @@ -2680,17 +2053,11 @@ impl IXpsOMGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransformLocal(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientBrush_Impl, - { + unsafe extern "system" fn SetTransformLocal(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGradientBrush_Impl::SetTransformLocal(this, windows_core::from_raw_borrowed(&transform)).into() } - unsafe extern "system" fn GetTransformLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGradientBrush_Impl, - { + unsafe extern "system" fn GetTransformLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientBrush_Impl::GetTransformLookup(this) { Ok(ok__) => { @@ -2700,17 +2067,11 @@ impl IXpsOMGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransformLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMGradientBrush_Impl, - { + unsafe extern "system" fn SetTransformLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGradientBrush_Impl::SetTransformLookup(this, core::mem::transmute(&key)).into() } - unsafe extern "system" fn GetSpreadMethod(this: *mut core::ffi::c_void, spreadmethod: *mut XPS_SPREAD_METHOD) -> windows_core::HRESULT - where - Identity: IXpsOMGradientBrush_Impl, - { + unsafe extern "system" fn GetSpreadMethod(this: *mut core::ffi::c_void, spreadmethod: *mut XPS_SPREAD_METHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientBrush_Impl::GetSpreadMethod(this) { Ok(ok__) => { @@ -2720,17 +2081,11 @@ impl IXpsOMGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpreadMethod(this: *mut core::ffi::c_void, spreadmethod: XPS_SPREAD_METHOD) -> windows_core::HRESULT - where - Identity: IXpsOMGradientBrush_Impl, - { + unsafe extern "system" fn SetSpreadMethod(this: *mut core::ffi::c_void, spreadmethod: XPS_SPREAD_METHOD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGradientBrush_Impl::SetSpreadMethod(this, core::mem::transmute_copy(&spreadmethod)).into() } - unsafe extern "system" fn GetColorInterpolationMode(this: *mut core::ffi::c_void, colorinterpolationmode: *mut XPS_COLOR_INTERPOLATION) -> windows_core::HRESULT - where - Identity: IXpsOMGradientBrush_Impl, - { + unsafe extern "system" fn GetColorInterpolationMode(this: *mut core::ffi::c_void, colorinterpolationmode: *mut XPS_COLOR_INTERPOLATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientBrush_Impl::GetColorInterpolationMode(this) { Ok(ok__) => { @@ -2740,10 +2095,7 @@ impl IXpsOMGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorInterpolationMode(this: *mut core::ffi::c_void, colorinterpolationmode: XPS_COLOR_INTERPOLATION) -> windows_core::HRESULT - where - Identity: IXpsOMGradientBrush_Impl, - { + unsafe extern "system" fn SetColorInterpolationMode(this: *mut core::ffi::c_void, colorinterpolationmode: XPS_COLOR_INTERPOLATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGradientBrush_Impl::SetColorInterpolationMode(this, core::mem::transmute_copy(&colorinterpolationmode)).into() } @@ -2765,7 +2117,7 @@ impl IXpsOMGradientBrush_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IXpsOMGradientStop_Impl: Sized { +pub trait IXpsOMGradientStop_Impl: Sized + windows_core::IUnknownImpl { fn GetOwner(&self) -> windows_core::Result; fn GetOffset(&self) -> windows_core::Result; fn SetOffset(&self, offset: f32) -> windows_core::Result<()>; @@ -2775,14 +2127,8 @@ pub trait IXpsOMGradientStop_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMGradientStop {} impl IXpsOMGradientStop_Vtbl { - pub const fn new() -> IXpsOMGradientStop_Vtbl - where - Identity: IXpsOMGradientStop_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStop_Impl, - { + pub const fn new() -> IXpsOMGradientStop_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientStop_Impl::GetOwner(this) { Ok(ok__) => { @@ -2792,10 +2138,7 @@ impl IXpsOMGradientStop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut f32) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStop_Impl, - { + unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientStop_Impl::GetOffset(this) { Ok(ok__) => { @@ -2805,17 +2148,11 @@ impl IXpsOMGradientStop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: f32) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStop_Impl, - { + unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGradientStop_Impl::SetOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, color: *mut XPS_COLOR, colorprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStop_Impl, - { + unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, color: *mut XPS_COLOR, colorprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientStop_Impl::GetColor(this, core::mem::transmute_copy(&color)) { Ok(ok__) => { @@ -2825,17 +2162,11 @@ impl IXpsOMGradientStop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const XPS_COLOR, colorprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStop_Impl, - { + unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const XPS_COLOR, colorprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGradientStop_Impl::SetColor(this, core::mem::transmute_copy(&color), windows_core::from_raw_borrowed(&colorprofile)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, gradientstop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStop_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, gradientstop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientStop_Impl::Clone(this) { Ok(ok__) => { @@ -2859,7 +2190,7 @@ impl IXpsOMGradientStop_Vtbl { iid == &::IID } } -pub trait IXpsOMGradientStopCollection_Impl: Sized { +pub trait IXpsOMGradientStopCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, stop: Option<&IXpsOMGradientStop>) -> windows_core::Result<()>; @@ -2869,14 +2200,8 @@ pub trait IXpsOMGradientStopCollection_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMGradientStopCollection {} impl IXpsOMGradientStopCollection_Vtbl { - pub const fn new() -> IXpsOMGradientStopCollection_Vtbl - where - Identity: IXpsOMGradientStopCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStopCollection_Impl, - { + pub const fn new() -> IXpsOMGradientStopCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientStopCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -2886,10 +2211,7 @@ impl IXpsOMGradientStopCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, stop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStopCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, stop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGradientStopCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2899,31 +2221,19 @@ impl IXpsOMGradientStopCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, stop: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStopCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, stop: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGradientStopCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&stop)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStopCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGradientStopCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, stop: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStopCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, stop: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGradientStopCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&stop)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, stop: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMGradientStopCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, stop: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGradientStopCollection_Impl::Append(this, windows_core::from_raw_borrowed(&stop)).into() } @@ -2950,14 +2260,8 @@ pub trait IXpsOMImageBrush_Impl: Sized + IXpsOMTileBrush_Impl { } impl windows_core::RuntimeName for IXpsOMImageBrush {} impl IXpsOMImageBrush_Vtbl { - pub const fn new() -> IXpsOMImageBrush_Vtbl - where - Identity: IXpsOMImageBrush_Impl, - { - unsafe extern "system" fn GetImageResource(this: *mut core::ffi::c_void, imageresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageBrush_Impl, - { + pub const fn new() -> IXpsOMImageBrush_Vtbl { + unsafe extern "system" fn GetImageResource(this: *mut core::ffi::c_void, imageresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMImageBrush_Impl::GetImageResource(this) { Ok(ok__) => { @@ -2967,17 +2271,11 @@ impl IXpsOMImageBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImageResource(this: *mut core::ffi::c_void, imageresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageBrush_Impl, - { + unsafe extern "system" fn SetImageResource(this: *mut core::ffi::c_void, imageresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMImageBrush_Impl::SetImageResource(this, windows_core::from_raw_borrowed(&imageresource)).into() } - unsafe extern "system" fn GetColorProfileResource(this: *mut core::ffi::c_void, colorprofileresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageBrush_Impl, - { + unsafe extern "system" fn GetColorProfileResource(this: *mut core::ffi::c_void, colorprofileresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMImageBrush_Impl::GetColorProfileResource(this) { Ok(ok__) => { @@ -2987,17 +2285,11 @@ impl IXpsOMImageBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorProfileResource(this: *mut core::ffi::c_void, colorprofileresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageBrush_Impl, - { + unsafe extern "system" fn SetColorProfileResource(this: *mut core::ffi::c_void, colorprofileresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMImageBrush_Impl::SetColorProfileResource(this, windows_core::from_raw_borrowed(&colorprofileresource)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, imagebrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageBrush_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, imagebrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMImageBrush_Impl::Clone(this) { Ok(ok__) => { @@ -3030,14 +2322,8 @@ pub trait IXpsOMImageResource_Impl: Sized + IXpsOMResource_Impl { impl windows_core::RuntimeName for IXpsOMImageResource {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMImageResource_Vtbl { - pub const fn new() -> IXpsOMImageResource_Vtbl - where - Identity: IXpsOMImageResource_Impl, - { - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, readerstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageResource_Impl, - { + pub const fn new() -> IXpsOMImageResource_Vtbl { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, readerstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMImageResource_Impl::GetStream(this) { Ok(ok__) => { @@ -3047,17 +2333,11 @@ impl IXpsOMImageResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, imagetype: XPS_IMAGE_TYPE, partname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageResource_Impl, - { + unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, imagetype: XPS_IMAGE_TYPE, partname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMImageResource_Impl::SetContent(this, windows_core::from_raw_borrowed(&sourcestream), core::mem::transmute_copy(&imagetype), windows_core::from_raw_borrowed(&partname)).into() } - unsafe extern "system" fn GetImageType(this: *mut core::ffi::c_void, imagetype: *mut XPS_IMAGE_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMImageResource_Impl, - { + unsafe extern "system" fn GetImageType(this: *mut core::ffi::c_void, imagetype: *mut XPS_IMAGE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMImageResource_Impl::GetImageType(this) { Ok(ok__) => { @@ -3079,7 +2359,7 @@ impl IXpsOMImageResource_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMImageResourceCollection_Impl: Sized { +pub trait IXpsOMImageResourceCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, object: Option<&IXpsOMImageResource>) -> windows_core::Result<()>; @@ -3092,14 +2372,8 @@ pub trait IXpsOMImageResourceCollection_Impl: Sized { impl windows_core::RuntimeName for IXpsOMImageResourceCollection {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMImageResourceCollection_Vtbl { - pub const fn new() -> IXpsOMImageResourceCollection_Vtbl - where - Identity: IXpsOMImageResourceCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMImageResourceCollection_Impl, - { + pub const fn new() -> IXpsOMImageResourceCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMImageResourceCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -3109,10 +2383,7 @@ impl IXpsOMImageResourceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageResourceCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMImageResourceCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3122,38 +2393,23 @@ impl IXpsOMImageResourceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageResourceCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMImageResourceCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMImageResourceCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMImageResourceCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageResourceCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMImageResourceCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageResourceCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMImageResourceCollection_Impl::Append(this, windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn GetByPartName(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMImageResourceCollection_Impl, - { + unsafe extern "system" fn GetByPartName(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, part: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMImageResourceCollection_Impl::GetByPartName(this, windows_core::from_raw_borrowed(&partname)) { Ok(ok__) => { @@ -3187,14 +2443,8 @@ pub trait IXpsOMLinearGradientBrush_Impl: Sized + IXpsOMGradientBrush_Impl { } impl windows_core::RuntimeName for IXpsOMLinearGradientBrush {} impl IXpsOMLinearGradientBrush_Vtbl { - pub const fn new() -> IXpsOMLinearGradientBrush_Vtbl - where - Identity: IXpsOMLinearGradientBrush_Impl, - { - unsafe extern "system" fn GetStartPoint(this: *mut core::ffi::c_void, startpoint: *mut XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMLinearGradientBrush_Impl, - { + pub const fn new() -> IXpsOMLinearGradientBrush_Vtbl { + unsafe extern "system" fn GetStartPoint(this: *mut core::ffi::c_void, startpoint: *mut XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMLinearGradientBrush_Impl::GetStartPoint(this) { Ok(ok__) => { @@ -3204,17 +2454,11 @@ impl IXpsOMLinearGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartPoint(this: *mut core::ffi::c_void, startpoint: *const XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMLinearGradientBrush_Impl, - { + unsafe extern "system" fn SetStartPoint(this: *mut core::ffi::c_void, startpoint: *const XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMLinearGradientBrush_Impl::SetStartPoint(this, core::mem::transmute_copy(&startpoint)).into() } - unsafe extern "system" fn GetEndPoint(this: *mut core::ffi::c_void, endpoint: *mut XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMLinearGradientBrush_Impl, - { + unsafe extern "system" fn GetEndPoint(this: *mut core::ffi::c_void, endpoint: *mut XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMLinearGradientBrush_Impl::GetEndPoint(this) { Ok(ok__) => { @@ -3224,17 +2468,11 @@ impl IXpsOMLinearGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEndPoint(this: *mut core::ffi::c_void, endpoint: *const XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMLinearGradientBrush_Impl, - { + unsafe extern "system" fn SetEndPoint(this: *mut core::ffi::c_void, endpoint: *const XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMLinearGradientBrush_Impl::SetEndPoint(this, core::mem::transmute_copy(&endpoint)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, lineargradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMLinearGradientBrush_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, lineargradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMLinearGradientBrush_Impl::Clone(this) { Ok(ok__) => { @@ -3264,14 +2502,8 @@ pub trait IXpsOMMatrixTransform_Impl: Sized + IXpsOMShareable_Impl { } impl windows_core::RuntimeName for IXpsOMMatrixTransform {} impl IXpsOMMatrixTransform_Vtbl { - pub const fn new() -> IXpsOMMatrixTransform_Vtbl - where - Identity: IXpsOMMatrixTransform_Impl, - { - unsafe extern "system" fn GetMatrix(this: *mut core::ffi::c_void, matrix: *mut XPS_MATRIX) -> windows_core::HRESULT - where - Identity: IXpsOMMatrixTransform_Impl, - { + pub const fn new() -> IXpsOMMatrixTransform_Vtbl { + unsafe extern "system" fn GetMatrix(this: *mut core::ffi::c_void, matrix: *mut XPS_MATRIX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMMatrixTransform_Impl::GetMatrix(this) { Ok(ok__) => { @@ -3281,17 +2513,11 @@ impl IXpsOMMatrixTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const XPS_MATRIX) -> windows_core::HRESULT - where - Identity: IXpsOMMatrixTransform_Impl, - { + unsafe extern "system" fn SetMatrix(this: *mut core::ffi::c_void, matrix: *const XPS_MATRIX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMMatrixTransform_Impl::SetMatrix(this, core::mem::transmute_copy(&matrix)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, matrixtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMMatrixTransform_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, matrixtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMMatrixTransform_Impl::Clone(this) { Ok(ok__) => { @@ -3312,20 +2538,14 @@ impl IXpsOMMatrixTransform_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IXpsOMNameCollection_Impl: Sized { +pub trait IXpsOMNameCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IXpsOMNameCollection {} impl IXpsOMNameCollection_Vtbl { - pub const fn new() -> IXpsOMNameCollection_Vtbl - where - Identity: IXpsOMNameCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMNameCollection_Impl, - { + pub const fn new() -> IXpsOMNameCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMNameCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -3335,10 +2555,7 @@ impl IXpsOMNameCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMNameCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMNameCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3355,7 +2572,7 @@ impl IXpsOMNameCollection_Vtbl { } } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMObjectFactory_Impl: Sized { +pub trait IXpsOMObjectFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreatePackage(&self) -> windows_core::Result; fn CreatePackageFromFile(&self, filename: &windows_core::PCWSTR, reuseobjects: super::super::Foundation::BOOL) -> windows_core::Result; fn CreatePackageFromStream(&self, stream: Option<&super::super::System::Com::IStream>, reuseobjects: super::super::Foundation::BOOL) -> windows_core::Result; @@ -3398,14 +2615,8 @@ pub trait IXpsOMObjectFactory_Impl: Sized { impl windows_core::RuntimeName for IXpsOMObjectFactory {} #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMObjectFactory_Vtbl { - pub const fn new() -> IXpsOMObjectFactory_Vtbl - where - Identity: IXpsOMObjectFactory_Impl, - { - unsafe extern "system" fn CreatePackage(this: *mut core::ffi::c_void, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + pub const fn new() -> IXpsOMObjectFactory_Vtbl { + unsafe extern "system" fn CreatePackage(this: *mut core::ffi::c_void, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePackage(this) { Ok(ok__) => { @@ -3415,10 +2626,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePackageFromFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePackageFromFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePackageFromFile(this, core::mem::transmute(&filename), core::mem::transmute_copy(&reuseobjects)) { Ok(ok__) => { @@ -3428,10 +2636,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePackageFromStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePackageFromStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePackageFromStream(this, windows_core::from_raw_borrowed(&stream), core::mem::transmute_copy(&reuseobjects)) { Ok(ok__) => { @@ -3441,10 +2646,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStoryFragmentsResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, storyfragmentsresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateStoryFragmentsResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, storyfragmentsresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateStoryFragmentsResource(this, windows_core::from_raw_borrowed(&acquiredstream), windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3454,10 +2656,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDocumentStructureResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, documentstructureresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateDocumentStructureResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, documentstructureresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateDocumentStructureResource(this, windows_core::from_raw_borrowed(&acquiredstream), windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3467,10 +2666,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSignatureBlockResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, signatureblockresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateSignatureBlockResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, signatureblockresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateSignatureBlockResource(this, windows_core::from_raw_borrowed(&acquiredstream), windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3480,10 +2676,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRemoteDictionaryResource(this: *mut core::ffi::c_void, dictionary: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, remotedictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateRemoteDictionaryResource(this: *mut core::ffi::c_void, dictionary: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, remotedictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateRemoteDictionaryResource(this, windows_core::from_raw_borrowed(&dictionary), windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3493,10 +2686,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRemoteDictionaryResourceFromStream(this: *mut core::ffi::c_void, dictionarymarkupstream: *mut core::ffi::c_void, dictionaryparturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, dictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateRemoteDictionaryResourceFromStream(this: *mut core::ffi::c_void, dictionarymarkupstream: *mut core::ffi::c_void, dictionaryparturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, dictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateRemoteDictionaryResourceFromStream(this, windows_core::from_raw_borrowed(&dictionarymarkupstream), windows_core::from_raw_borrowed(&dictionaryparturi), windows_core::from_raw_borrowed(&resources)) { Ok(ok__) => { @@ -3506,10 +2696,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePartResources(this: *mut core::ffi::c_void, partresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePartResources(this: *mut core::ffi::c_void, partresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePartResources(this) { Ok(ok__) => { @@ -3519,10 +2706,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDocumentSequence(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, documentsequence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateDocumentSequence(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, documentsequence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateDocumentSequence(this, windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3532,10 +2716,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDocument(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateDocument(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateDocument(this, windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3545,10 +2726,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePageReference(this: *mut core::ffi::c_void, advisorypagedimensions: *const XPS_SIZE, pagereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePageReference(this: *mut core::ffi::c_void, advisorypagedimensions: *const XPS_SIZE, pagereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePageReference(this, core::mem::transmute_copy(&advisorypagedimensions)) { Ok(ok__) => { @@ -3558,10 +2736,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePage(this: *mut core::ffi::c_void, pagedimensions: *const XPS_SIZE, language: windows_core::PCWSTR, parturi: *mut core::ffi::c_void, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePage(this: *mut core::ffi::c_void, pagedimensions: *const XPS_SIZE, language: windows_core::PCWSTR, parturi: *mut core::ffi::c_void, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePage(this, core::mem::transmute_copy(&pagedimensions), core::mem::transmute(&language), windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3571,10 +2746,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePageFromStream(this: *mut core::ffi::c_void, pagemarkupstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePageFromStream(this: *mut core::ffi::c_void, pagemarkupstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePageFromStream(this, windows_core::from_raw_borrowed(&pagemarkupstream), windows_core::from_raw_borrowed(&parturi), windows_core::from_raw_borrowed(&resources), core::mem::transmute_copy(&reuseobjects)) { Ok(ok__) => { @@ -3584,10 +2756,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCanvas(this: *mut core::ffi::c_void, canvas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateCanvas(this: *mut core::ffi::c_void, canvas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateCanvas(this) { Ok(ok__) => { @@ -3597,10 +2766,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGlyphs(this: *mut core::ffi::c_void, fontresource: *mut core::ffi::c_void, glyphs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateGlyphs(this: *mut core::ffi::c_void, fontresource: *mut core::ffi::c_void, glyphs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateGlyphs(this, windows_core::from_raw_borrowed(&fontresource)) { Ok(ok__) => { @@ -3610,10 +2776,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePath(this: *mut core::ffi::c_void, path: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePath(this: *mut core::ffi::c_void, path: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePath(this) { Ok(ok__) => { @@ -3623,10 +2786,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGeometry(this: *mut core::ffi::c_void, geometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateGeometry(this: *mut core::ffi::c_void, geometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateGeometry(this) { Ok(ok__) => { @@ -3636,10 +2796,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGeometryFigure(this: *mut core::ffi::c_void, startpoint: *const XPS_POINT, figure: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateGeometryFigure(this: *mut core::ffi::c_void, startpoint: *const XPS_POINT, figure: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateGeometryFigure(this, core::mem::transmute_copy(&startpoint)) { Ok(ok__) => { @@ -3649,10 +2806,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMatrixTransform(this: *mut core::ffi::c_void, matrix: *const XPS_MATRIX, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateMatrixTransform(this: *mut core::ffi::c_void, matrix: *const XPS_MATRIX, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateMatrixTransform(this, core::mem::transmute_copy(&matrix)) { Ok(ok__) => { @@ -3662,10 +2816,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSolidColorBrush(this: *mut core::ffi::c_void, color: *const XPS_COLOR, colorprofile: *mut core::ffi::c_void, solidcolorbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateSolidColorBrush(this: *mut core::ffi::c_void, color: *const XPS_COLOR, colorprofile: *mut core::ffi::c_void, solidcolorbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateSolidColorBrush(this, core::mem::transmute_copy(&color), windows_core::from_raw_borrowed(&colorprofile)) { Ok(ok__) => { @@ -3675,10 +2826,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateColorProfileResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, colorprofileresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateColorProfileResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, colorprofileresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateColorProfileResource(this, windows_core::from_raw_borrowed(&acquiredstream), windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3688,10 +2836,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateImageBrush(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, viewbox: *const XPS_RECT, viewport: *const XPS_RECT, imagebrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateImageBrush(this: *mut core::ffi::c_void, image: *mut core::ffi::c_void, viewbox: *const XPS_RECT, viewport: *const XPS_RECT, imagebrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateImageBrush(this, windows_core::from_raw_borrowed(&image), core::mem::transmute_copy(&viewbox), core::mem::transmute_copy(&viewport)) { Ok(ok__) => { @@ -3701,10 +2846,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVisualBrush(this: *mut core::ffi::c_void, viewbox: *const XPS_RECT, viewport: *const XPS_RECT, visualbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateVisualBrush(this: *mut core::ffi::c_void, viewbox: *const XPS_RECT, viewport: *const XPS_RECT, visualbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateVisualBrush(this, core::mem::transmute_copy(&viewbox), core::mem::transmute_copy(&viewport)) { Ok(ok__) => { @@ -3714,10 +2856,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateImageResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, contenttype: XPS_IMAGE_TYPE, parturi: *mut core::ffi::c_void, imageresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateImageResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, contenttype: XPS_IMAGE_TYPE, parturi: *mut core::ffi::c_void, imageresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateImageResource(this, windows_core::from_raw_borrowed(&acquiredstream), core::mem::transmute_copy(&contenttype), windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3727,10 +2866,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePrintTicketResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, printticketresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePrintTicketResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, printticketresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePrintTicketResource(this, windows_core::from_raw_borrowed(&acquiredstream), windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3740,10 +2876,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFontResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, fontembedding: XPS_FONT_EMBEDDING, parturi: *mut core::ffi::c_void, isobfsourcestream: super::super::Foundation::BOOL, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateFontResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, fontembedding: XPS_FONT_EMBEDDING, parturi: *mut core::ffi::c_void, isobfsourcestream: super::super::Foundation::BOOL, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateFontResource(this, windows_core::from_raw_borrowed(&acquiredstream), core::mem::transmute_copy(&fontembedding), windows_core::from_raw_borrowed(&parturi), core::mem::transmute_copy(&isobfsourcestream)) { Ok(ok__) => { @@ -3753,10 +2886,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGradientStop(this: *mut core::ffi::c_void, color: *const XPS_COLOR, colorprofile: *mut core::ffi::c_void, offset: f32, gradientstop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateGradientStop(this: *mut core::ffi::c_void, color: *const XPS_COLOR, colorprofile: *mut core::ffi::c_void, offset: f32, gradientstop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateGradientStop(this, core::mem::transmute_copy(&color), windows_core::from_raw_borrowed(&colorprofile), core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -3766,10 +2896,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLinearGradientBrush(this: *mut core::ffi::c_void, gradstop1: *mut core::ffi::c_void, gradstop2: *mut core::ffi::c_void, startpoint: *const XPS_POINT, endpoint: *const XPS_POINT, lineargradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateLinearGradientBrush(this: *mut core::ffi::c_void, gradstop1: *mut core::ffi::c_void, gradstop2: *mut core::ffi::c_void, startpoint: *const XPS_POINT, endpoint: *const XPS_POINT, lineargradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateLinearGradientBrush(this, windows_core::from_raw_borrowed(&gradstop1), windows_core::from_raw_borrowed(&gradstop2), core::mem::transmute_copy(&startpoint), core::mem::transmute_copy(&endpoint)) { Ok(ok__) => { @@ -3779,10 +2906,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRadialGradientBrush(this: *mut core::ffi::c_void, gradstop1: *mut core::ffi::c_void, gradstop2: *mut core::ffi::c_void, centerpoint: *const XPS_POINT, gradientorigin: *const XPS_POINT, radiisizes: *const XPS_SIZE, radialgradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateRadialGradientBrush(this: *mut core::ffi::c_void, gradstop1: *mut core::ffi::c_void, gradstop2: *mut core::ffi::c_void, centerpoint: *const XPS_POINT, gradientorigin: *const XPS_POINT, radiisizes: *const XPS_SIZE, radialgradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateRadialGradientBrush(this, windows_core::from_raw_borrowed(&gradstop1), windows_core::from_raw_borrowed(&gradstop2), core::mem::transmute_copy(¢erpoint), core::mem::transmute_copy(&gradientorigin), core::mem::transmute_copy(&radiisizes)) { Ok(ok__) => { @@ -3792,10 +2916,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCoreProperties(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, coreproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateCoreProperties(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, coreproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateCoreProperties(this, windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -3805,10 +2926,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDictionary(this: *mut core::ffi::c_void, dictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateDictionary(this: *mut core::ffi::c_void, dictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateDictionary(this) { Ok(ok__) => { @@ -3818,10 +2936,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePartUriCollection(this: *mut core::ffi::c_void, parturicollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePartUriCollection(this: *mut core::ffi::c_void, parturicollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePartUriCollection(this) { Ok(ok__) => { @@ -3831,10 +2946,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePackageWriterOnFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePackageWriterOnFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePackageWriterOnFile( this, @@ -3856,10 +2968,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePackageWriterOnStream(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePackageWriterOnStream(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePackageWriterOnStream(this, windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&interleaving), windows_core::from_raw_borrowed(&documentsequencepartname), windows_core::from_raw_borrowed(&coreproperties), windows_core::from_raw_borrowed(&packagethumbnail), windows_core::from_raw_borrowed(&documentsequenceprintticket), windows_core::from_raw_borrowed(&discardcontrolpartname)) { Ok(ok__) => { @@ -3869,10 +2978,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePartUri(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, parturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreatePartUri(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, parturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePartUri(this, core::mem::transmute(&uri)) { Ok(ok__) => { @@ -3882,10 +2988,7 @@ impl IXpsOMObjectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateReadOnlyStreamOnFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory_Impl, - { + unsafe extern "system" fn CreateReadOnlyStreamOnFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateReadOnlyStreamOnFile(this, core::mem::transmute(&filename)) { Ok(ok__) => { @@ -3959,14 +3062,8 @@ pub trait IXpsOMObjectFactory1_Impl: Sized + IXpsOMObjectFactory_Impl { impl windows_core::RuntimeName for IXpsOMObjectFactory1 {} #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMObjectFactory1_Vtbl { - pub const fn new() -> IXpsOMObjectFactory1_Vtbl - where - Identity: IXpsOMObjectFactory1_Impl, - { - unsafe extern "system" fn GetDocumentTypeFromFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + pub const fn new() -> IXpsOMObjectFactory1_Vtbl { + unsafe extern "system" fn GetDocumentTypeFromFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::GetDocumentTypeFromFile(this, core::mem::transmute(&filename)) { Ok(ok__) => { @@ -3976,10 +3073,7 @@ impl IXpsOMObjectFactory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentTypeFromStream(this: *mut core::ffi::c_void, xpsdocumentstream: *mut core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn GetDocumentTypeFromStream(this: *mut core::ffi::c_void, xpsdocumentstream: *mut core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::GetDocumentTypeFromStream(this, windows_core::from_raw_borrowed(&xpsdocumentstream)) { Ok(ok__) => { @@ -3989,24 +3083,15 @@ impl IXpsOMObjectFactory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertHDPhotoToJpegXR(this: *mut core::ffi::c_void, imageresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn ConvertHDPhotoToJpegXR(this: *mut core::ffi::c_void, imageresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMObjectFactory1_Impl::ConvertHDPhotoToJpegXR(this, windows_core::from_raw_borrowed(&imageresource)).into() } - unsafe extern "system" fn ConvertJpegXRToHDPhoto(this: *mut core::ffi::c_void, imageresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn ConvertJpegXRToHDPhoto(this: *mut core::ffi::c_void, imageresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMObjectFactory1_Impl::ConvertJpegXRToHDPhoto(this, windows_core::from_raw_borrowed(&imageresource)).into() } - unsafe extern "system" fn CreatePackageWriterOnFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, documenttype: XPS_DOCUMENT_TYPE, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn CreatePackageWriterOnFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, documenttype: XPS_DOCUMENT_TYPE, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePackageWriterOnFile1( this, @@ -4029,10 +3114,7 @@ impl IXpsOMObjectFactory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePackageWriterOnStream1(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, documenttype: XPS_DOCUMENT_TYPE, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn CreatePackageWriterOnStream1(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, documenttype: XPS_DOCUMENT_TYPE, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePackageWriterOnStream1(this, windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&interleaving), windows_core::from_raw_borrowed(&documentsequencepartname), windows_core::from_raw_borrowed(&coreproperties), windows_core::from_raw_borrowed(&packagethumbnail), windows_core::from_raw_borrowed(&documentsequenceprintticket), windows_core::from_raw_borrowed(&discardcontrolpartname), core::mem::transmute_copy(&documenttype)) { Ok(ok__) => { @@ -4042,10 +3124,7 @@ impl IXpsOMObjectFactory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePackage1(this: *mut core::ffi::c_void, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn CreatePackage1(this: *mut core::ffi::c_void, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePackage1(this) { Ok(ok__) => { @@ -4055,10 +3134,7 @@ impl IXpsOMObjectFactory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePackageFromStream1(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn CreatePackageFromStream1(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePackageFromStream1(this, windows_core::from_raw_borrowed(&stream), core::mem::transmute_copy(&reuseobjects)) { Ok(ok__) => { @@ -4068,10 +3144,7 @@ impl IXpsOMObjectFactory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePackageFromFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn CreatePackageFromFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePackageFromFile1(this, core::mem::transmute(&filename), core::mem::transmute_copy(&reuseobjects)) { Ok(ok__) => { @@ -4081,10 +3154,7 @@ impl IXpsOMObjectFactory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePage1(this: *mut core::ffi::c_void, pagedimensions: *const XPS_SIZE, language: windows_core::PCWSTR, parturi: *mut core::ffi::c_void, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn CreatePage1(this: *mut core::ffi::c_void, pagedimensions: *const XPS_SIZE, language: windows_core::PCWSTR, parturi: *mut core::ffi::c_void, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePage1(this, core::mem::transmute_copy(&pagedimensions), core::mem::transmute(&language), windows_core::from_raw_borrowed(&parturi)) { Ok(ok__) => { @@ -4094,10 +3164,7 @@ impl IXpsOMObjectFactory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePageFromStream1(this: *mut core::ffi::c_void, pagemarkupstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn CreatePageFromStream1(this: *mut core::ffi::c_void, pagemarkupstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePageFromStream1(this, windows_core::from_raw_borrowed(&pagemarkupstream), windows_core::from_raw_borrowed(&parturi), windows_core::from_raw_borrowed(&resources), core::mem::transmute_copy(&reuseobjects)) { Ok(ok__) => { @@ -4107,10 +3174,7 @@ impl IXpsOMObjectFactory1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRemoteDictionaryResourceFromStream1(this: *mut core::ffi::c_void, dictionarymarkupstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, dictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMObjectFactory1_Impl, - { + unsafe extern "system" fn CreateRemoteDictionaryResourceFromStream1(this: *mut core::ffi::c_void, dictionarymarkupstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, dictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreateRemoteDictionaryResourceFromStream1(this, windows_core::from_raw_borrowed(&dictionarymarkupstream), windows_core::from_raw_borrowed(&parturi), windows_core::from_raw_borrowed(&resources)) { Ok(ok__) => { @@ -4141,7 +3205,7 @@ impl IXpsOMObjectFactory1_Vtbl { } } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMPackage_Impl: Sized { +pub trait IXpsOMPackage_Impl: Sized + windows_core::IUnknownImpl { fn GetDocumentSequence(&self) -> windows_core::Result; fn SetDocumentSequence(&self, documentsequence: Option<&IXpsOMDocumentSequence>) -> windows_core::Result<()>; fn GetCoreProperties(&self) -> windows_core::Result; @@ -4157,14 +3221,8 @@ pub trait IXpsOMPackage_Impl: Sized { impl windows_core::RuntimeName for IXpsOMPackage {} #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPackage_Vtbl { - pub const fn new() -> IXpsOMPackage_Vtbl - where - Identity: IXpsOMPackage_Impl, - { - unsafe extern "system" fn GetDocumentSequence(this: *mut core::ffi::c_void, documentsequence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackage_Impl, - { + pub const fn new() -> IXpsOMPackage_Vtbl { + unsafe extern "system" fn GetDocumentSequence(this: *mut core::ffi::c_void, documentsequence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPackage_Impl::GetDocumentSequence(this) { Ok(ok__) => { @@ -4174,17 +3232,11 @@ impl IXpsOMPackage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDocumentSequence(this: *mut core::ffi::c_void, documentsequence: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackage_Impl, - { + unsafe extern "system" fn SetDocumentSequence(this: *mut core::ffi::c_void, documentsequence: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage_Impl::SetDocumentSequence(this, windows_core::from_raw_borrowed(&documentsequence)).into() } - unsafe extern "system" fn GetCoreProperties(this: *mut core::ffi::c_void, coreproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackage_Impl, - { + unsafe extern "system" fn GetCoreProperties(this: *mut core::ffi::c_void, coreproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPackage_Impl::GetCoreProperties(this) { Ok(ok__) => { @@ -4194,17 +3246,11 @@ impl IXpsOMPackage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCoreProperties(this: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackage_Impl, - { + unsafe extern "system" fn SetCoreProperties(this: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage_Impl::SetCoreProperties(this, windows_core::from_raw_borrowed(&coreproperties)).into() } - unsafe extern "system" fn GetDiscardControlPartName(this: *mut core::ffi::c_void, discardcontrolparturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackage_Impl, - { + unsafe extern "system" fn GetDiscardControlPartName(this: *mut core::ffi::c_void, discardcontrolparturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPackage_Impl::GetDiscardControlPartName(this) { Ok(ok__) => { @@ -4214,17 +3260,11 @@ impl IXpsOMPackage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDiscardControlPartName(this: *mut core::ffi::c_void, discardcontrolparturi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackage_Impl, - { + unsafe extern "system" fn SetDiscardControlPartName(this: *mut core::ffi::c_void, discardcontrolparturi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage_Impl::SetDiscardControlPartName(this, windows_core::from_raw_borrowed(&discardcontrolparturi)).into() } - unsafe extern "system" fn GetThumbnailResource(this: *mut core::ffi::c_void, imageresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackage_Impl, - { + unsafe extern "system" fn GetThumbnailResource(this: *mut core::ffi::c_void, imageresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPackage_Impl::GetThumbnailResource(this) { Ok(ok__) => { @@ -4234,24 +3274,15 @@ impl IXpsOMPackage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetThumbnailResource(this: *mut core::ffi::c_void, imageresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackage_Impl, - { + unsafe extern "system" fn SetThumbnailResource(this: *mut core::ffi::c_void, imageresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage_Impl::SetThumbnailResource(this, windows_core::from_raw_borrowed(&imageresource)).into() } - unsafe extern "system" fn WriteToFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMPackage_Impl, - { + unsafe extern "system" fn WriteToFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage_Impl::WriteToFile(this, core::mem::transmute(&filename), core::mem::transmute_copy(&securityattributes), core::mem::transmute_copy(&flagsandattributes), core::mem::transmute_copy(&optimizemarkupsize)).into() } - unsafe extern "system" fn WriteToStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMPackage_Impl, - { + unsafe extern "system" fn WriteToStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage_Impl::WriteToStream(this, windows_core::from_raw_borrowed(&stream), core::mem::transmute_copy(&optimizemarkupsize)).into() } @@ -4283,14 +3314,8 @@ pub trait IXpsOMPackage1_Impl: Sized + IXpsOMPackage_Impl { impl windows_core::RuntimeName for IXpsOMPackage1 {} #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPackage1_Vtbl { - pub const fn new() -> IXpsOMPackage1_Vtbl - where - Identity: IXpsOMPackage1_Impl, - { - unsafe extern "system" fn GetDocumentType(this: *mut core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMPackage1_Impl, - { + pub const fn new() -> IXpsOMPackage1_Vtbl { + unsafe extern "system" fn GetDocumentType(this: *mut core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPackage1_Impl::GetDocumentType(this) { Ok(ok__) => { @@ -4300,17 +3325,11 @@ impl IXpsOMPackage1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteToFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMPackage1_Impl, - { + unsafe extern "system" fn WriteToFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage1_Impl::WriteToFile1(this, core::mem::transmute(&filename), core::mem::transmute_copy(&securityattributes), core::mem::transmute_copy(&flagsandattributes), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&documenttype)).into() } - unsafe extern "system" fn WriteToStream1(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMPackage1_Impl, - { + unsafe extern "system" fn WriteToStream1(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage1_Impl::WriteToStream1(this, windows_core::from_raw_borrowed(&outputstream), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&documenttype)).into() } @@ -4326,21 +3345,15 @@ impl IXpsOMPackage1_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMPackageTarget_Impl: Sized { +pub trait IXpsOMPackageTarget_Impl: Sized + windows_core::IUnknownImpl { fn CreateXpsOMPackageWriter(&self, documentsequencepartname: Option<&super::Packaging::Opc::IOpcPartUri>, documentsequenceprintticket: Option<&IXpsOMPrintTicketResource>, discardcontrolpartname: Option<&super::Packaging::Opc::IOpcPartUri>) -> windows_core::Result; } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for IXpsOMPackageTarget {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPackageTarget_Vtbl { - pub const fn new() -> IXpsOMPackageTarget_Vtbl - where - Identity: IXpsOMPackageTarget_Impl, - { - unsafe extern "system" fn CreateXpsOMPackageWriter(this: *mut core::ffi::c_void, documentsequencepartname: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackageTarget_Impl, - { + pub const fn new() -> IXpsOMPackageTarget_Vtbl { + unsafe extern "system" fn CreateXpsOMPackageWriter(this: *mut core::ffi::c_void, documentsequencepartname: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPackageTarget_Impl::CreateXpsOMPackageWriter(this, windows_core::from_raw_borrowed(&documentsequencepartname), windows_core::from_raw_borrowed(&documentsequenceprintticket), windows_core::from_raw_borrowed(&discardcontrolpartname)) { Ok(ok__) => { @@ -4357,7 +3370,7 @@ impl IXpsOMPackageTarget_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMPackageWriter_Impl: Sized { +pub trait IXpsOMPackageWriter_Impl: Sized + windows_core::IUnknownImpl { fn StartNewDocument(&self, documentpartname: Option<&super::Packaging::Opc::IOpcPartUri>, documentprintticket: Option<&IXpsOMPrintTicketResource>, documentstructure: Option<&IXpsOMDocumentStructureResource>, signatureblockresources: Option<&IXpsOMSignatureBlockResourceCollection>, restrictedfonts: Option<&IXpsOMPartUriCollection>) -> windows_core::Result<()>; fn AddPage(&self, page: Option<&IXpsOMPage>, advisorypagedimensions: *const XPS_SIZE, discardableresourceparts: Option<&IXpsOMPartUriCollection>, storyfragments: Option<&IXpsOMStoryFragmentsResource>, pageprintticket: Option<&IXpsOMPrintTicketResource>, pagethumbnail: Option<&IXpsOMImageResource>) -> windows_core::Result<()>; fn AddResource(&self, resource: Option<&IXpsOMResource>) -> windows_core::Result<()>; @@ -4368,42 +3381,24 @@ pub trait IXpsOMPackageWriter_Impl: Sized { impl windows_core::RuntimeName for IXpsOMPackageWriter {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPackageWriter_Vtbl { - pub const fn new() -> IXpsOMPackageWriter_Vtbl - where - Identity: IXpsOMPackageWriter_Impl, - { - unsafe extern "system" fn StartNewDocument(this: *mut core::ffi::c_void, documentpartname: *mut core::ffi::c_void, documentprintticket: *mut core::ffi::c_void, documentstructure: *mut core::ffi::c_void, signatureblockresources: *mut core::ffi::c_void, restrictedfonts: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackageWriter_Impl, - { + pub const fn new() -> IXpsOMPackageWriter_Vtbl { + unsafe extern "system" fn StartNewDocument(this: *mut core::ffi::c_void, documentpartname: *mut core::ffi::c_void, documentprintticket: *mut core::ffi::c_void, documentstructure: *mut core::ffi::c_void, signatureblockresources: *mut core::ffi::c_void, restrictedfonts: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackageWriter_Impl::StartNewDocument(this, windows_core::from_raw_borrowed(&documentpartname), windows_core::from_raw_borrowed(&documentprintticket), windows_core::from_raw_borrowed(&documentstructure), windows_core::from_raw_borrowed(&signatureblockresources), windows_core::from_raw_borrowed(&restrictedfonts)).into() } - unsafe extern "system" fn AddPage(this: *mut core::ffi::c_void, page: *mut core::ffi::c_void, advisorypagedimensions: *const XPS_SIZE, discardableresourceparts: *mut core::ffi::c_void, storyfragments: *mut core::ffi::c_void, pageprintticket: *mut core::ffi::c_void, pagethumbnail: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackageWriter_Impl, - { + unsafe extern "system" fn AddPage(this: *mut core::ffi::c_void, page: *mut core::ffi::c_void, advisorypagedimensions: *const XPS_SIZE, discardableresourceparts: *mut core::ffi::c_void, storyfragments: *mut core::ffi::c_void, pageprintticket: *mut core::ffi::c_void, pagethumbnail: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackageWriter_Impl::AddPage(this, windows_core::from_raw_borrowed(&page), core::mem::transmute_copy(&advisorypagedimensions), windows_core::from_raw_borrowed(&discardableresourceparts), windows_core::from_raw_borrowed(&storyfragments), windows_core::from_raw_borrowed(&pageprintticket), windows_core::from_raw_borrowed(&pagethumbnail)).into() } - unsafe extern "system" fn AddResource(this: *mut core::ffi::c_void, resource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackageWriter_Impl, - { + unsafe extern "system" fn AddResource(this: *mut core::ffi::c_void, resource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackageWriter_Impl::AddResource(this, windows_core::from_raw_borrowed(&resource)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackageWriter_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackageWriter_Impl::Close(this).into() } - unsafe extern "system" fn IsClosed(this: *mut core::ffi::c_void, isclosed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMPackageWriter_Impl, - { + unsafe extern "system" fn IsClosed(this: *mut core::ffi::c_void, isclosed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPackageWriter_Impl::IsClosed(this) { Ok(ok__) => { @@ -4435,21 +3430,12 @@ pub trait IXpsOMPackageWriter3D_Impl: Sized + IXpsOMPackageWriter_Impl { impl windows_core::RuntimeName for IXpsOMPackageWriter3D {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPackageWriter3D_Vtbl { - pub const fn new() -> IXpsOMPackageWriter3D_Vtbl - where - Identity: IXpsOMPackageWriter3D_Impl, - { - unsafe extern "system" fn AddModelTexture(this: *mut core::ffi::c_void, texturepartname: *mut core::ffi::c_void, texturedata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackageWriter3D_Impl, - { + pub const fn new() -> IXpsOMPackageWriter3D_Vtbl { + unsafe extern "system" fn AddModelTexture(this: *mut core::ffi::c_void, texturepartname: *mut core::ffi::c_void, texturedata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackageWriter3D_Impl::AddModelTexture(this, windows_core::from_raw_borrowed(&texturepartname), windows_core::from_raw_borrowed(&texturedata)).into() } - unsafe extern "system" fn SetModelPrintTicket(this: *mut core::ffi::c_void, printticketpartname: *mut core::ffi::c_void, printticketdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPackageWriter3D_Impl, - { + unsafe extern "system" fn SetModelPrintTicket(this: *mut core::ffi::c_void, printticketpartname: *mut core::ffi::c_void, printticketdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackageWriter3D_Impl::SetModelPrintTicket(this, windows_core::from_raw_borrowed(&printticketpartname), windows_core::from_raw_borrowed(&printticketdata)).into() } @@ -4492,14 +3478,8 @@ pub trait IXpsOMPage_Impl: Sized + IXpsOMPart_Impl { impl windows_core::RuntimeName for IXpsOMPage {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPage_Vtbl { - pub const fn new() -> IXpsOMPage_Vtbl - where - Identity: IXpsOMPage_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, pagereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + pub const fn new() -> IXpsOMPage_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, pagereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetOwner(this) { Ok(ok__) => { @@ -4509,10 +3489,7 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVisuals(this: *mut core::ffi::c_void, visuals: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GetVisuals(this: *mut core::ffi::c_void, visuals: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetVisuals(this) { Ok(ok__) => { @@ -4522,10 +3499,7 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPageDimensions(this: *mut core::ffi::c_void, pagedimensions: *mut XPS_SIZE) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GetPageDimensions(this: *mut core::ffi::c_void, pagedimensions: *mut XPS_SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetPageDimensions(this) { Ok(ok__) => { @@ -4535,17 +3509,11 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPageDimensions(this: *mut core::ffi::c_void, pagedimensions: *const XPS_SIZE) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn SetPageDimensions(this: *mut core::ffi::c_void, pagedimensions: *const XPS_SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::SetPageDimensions(this, core::mem::transmute_copy(&pagedimensions)).into() } - unsafe extern "system" fn GetContentBox(this: *mut core::ffi::c_void, contentbox: *mut XPS_RECT) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GetContentBox(this: *mut core::ffi::c_void, contentbox: *mut XPS_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetContentBox(this) { Ok(ok__) => { @@ -4555,17 +3523,11 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContentBox(this: *mut core::ffi::c_void, contentbox: *const XPS_RECT) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn SetContentBox(this: *mut core::ffi::c_void, contentbox: *const XPS_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::SetContentBox(this, core::mem::transmute_copy(&contentbox)).into() } - unsafe extern "system" fn GetBleedBox(this: *mut core::ffi::c_void, bleedbox: *mut XPS_RECT) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GetBleedBox(this: *mut core::ffi::c_void, bleedbox: *mut XPS_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetBleedBox(this) { Ok(ok__) => { @@ -4575,17 +3537,11 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBleedBox(this: *mut core::ffi::c_void, bleedbox: *const XPS_RECT) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn SetBleedBox(this: *mut core::ffi::c_void, bleedbox: *const XPS_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::SetBleedBox(this, core::mem::transmute_copy(&bleedbox)).into() } - unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, language: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, language: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetLanguage(this) { Ok(ok__) => { @@ -4595,17 +3551,11 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, language: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, language: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::SetLanguage(this, core::mem::transmute(&language)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetName(this) { Ok(ok__) => { @@ -4615,17 +3565,11 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn GetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlinktarget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlinktarget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetIsHyperlinkTarget(this) { Ok(ok__) => { @@ -4635,17 +3579,11 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlinktarget: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn SetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlinktarget: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::SetIsHyperlinkTarget(this, core::mem::transmute_copy(&ishyperlinktarget)).into() } - unsafe extern "system" fn GetDictionary(this: *mut core::ffi::c_void, resourcedictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GetDictionary(this: *mut core::ffi::c_void, resourcedictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetDictionary(this) { Ok(ok__) => { @@ -4655,10 +3593,7 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDictionaryLocal(this: *mut core::ffi::c_void, resourcedictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GetDictionaryLocal(this: *mut core::ffi::c_void, resourcedictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetDictionaryLocal(this) { Ok(ok__) => { @@ -4668,17 +3603,11 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDictionaryLocal(this: *mut core::ffi::c_void, resourcedictionary: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn SetDictionaryLocal(this: *mut core::ffi::c_void, resourcedictionary: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::SetDictionaryLocal(this, windows_core::from_raw_borrowed(&resourcedictionary)).into() } - unsafe extern "system" fn GetDictionaryResource(this: *mut core::ffi::c_void, remotedictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GetDictionaryResource(this: *mut core::ffi::c_void, remotedictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetDictionaryResource(this) { Ok(ok__) => { @@ -4688,24 +3617,15 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDictionaryResource(this: *mut core::ffi::c_void, remotedictionaryresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn SetDictionaryResource(this: *mut core::ffi::c_void, remotedictionaryresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::SetDictionaryResource(this, windows_core::from_raw_borrowed(&remotedictionaryresource)).into() } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::Write(this, windows_core::from_raw_borrowed(&stream), core::mem::transmute_copy(&optimizemarkupsize)).into() } - unsafe extern "system" fn GenerateUnusedLookupKey(this: *mut core::ffi::c_void, r#type: XPS_OBJECT_TYPE, key: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn GenerateUnusedLookupKey(this: *mut core::ffi::c_void, r#type: XPS_OBJECT_TYPE, key: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GenerateUnusedLookupKey(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -4715,10 +3635,7 @@ impl IXpsOMPage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPage_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::Clone(this) { Ok(ok__) => { @@ -4767,14 +3684,8 @@ pub trait IXpsOMPage1_Impl: Sized + IXpsOMPage_Impl { impl windows_core::RuntimeName for IXpsOMPage1 {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPage1_Vtbl { - pub const fn new() -> IXpsOMPage1_Vtbl - where - Identity: IXpsOMPage1_Impl, - { - unsafe extern "system" fn GetDocumentType(this: *mut core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMPage1_Impl, - { + pub const fn new() -> IXpsOMPage1_Vtbl { + unsafe extern "system" fn GetDocumentType(this: *mut core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage1_Impl::GetDocumentType(this) { Ok(ok__) => { @@ -4784,10 +3695,7 @@ impl IXpsOMPage1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Write1(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMPage1_Impl, - { + unsafe extern "system" fn Write1(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage1_Impl::Write1(this, windows_core::from_raw_borrowed(&stream), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&documenttype)).into() } @@ -4797,7 +3705,7 @@ impl IXpsOMPage1_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IXpsOMPageReference_Impl: Sized { +pub trait IXpsOMPageReference_Impl: Sized + windows_core::IUnknownImpl { fn GetOwner(&self) -> windows_core::Result; fn GetPage(&self) -> windows_core::Result; fn SetPage(&self, page: Option<&IXpsOMPage>) -> windows_core::Result<()>; @@ -4818,14 +3726,8 @@ pub trait IXpsOMPageReference_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMPageReference {} impl IXpsOMPageReference_Vtbl { - pub const fn new() -> IXpsOMPageReference_Vtbl - where - Identity: IXpsOMPageReference_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + pub const fn new() -> IXpsOMPageReference_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::GetOwner(this) { Ok(ok__) => { @@ -4835,10 +3737,7 @@ impl IXpsOMPageReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPage(this: *mut core::ffi::c_void, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn GetPage(this: *mut core::ffi::c_void, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::GetPage(this) { Ok(ok__) => { @@ -4848,24 +3747,15 @@ impl IXpsOMPageReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPage(this: *mut core::ffi::c_void, page: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn SetPage(this: *mut core::ffi::c_void, page: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPageReference_Impl::SetPage(this, windows_core::from_raw_borrowed(&page)).into() } - unsafe extern "system" fn DiscardPage(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn DiscardPage(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPageReference_Impl::DiscardPage(this).into() } - unsafe extern "system" fn IsPageLoaded(this: *mut core::ffi::c_void, ispageloaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn IsPageLoaded(this: *mut core::ffi::c_void, ispageloaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::IsPageLoaded(this) { Ok(ok__) => { @@ -4875,10 +3765,7 @@ impl IXpsOMPageReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAdvisoryPageDimensions(this: *mut core::ffi::c_void, pagedimensions: *mut XPS_SIZE) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn GetAdvisoryPageDimensions(this: *mut core::ffi::c_void, pagedimensions: *mut XPS_SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::GetAdvisoryPageDimensions(this) { Ok(ok__) => { @@ -4888,17 +3775,11 @@ impl IXpsOMPageReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAdvisoryPageDimensions(this: *mut core::ffi::c_void, pagedimensions: *const XPS_SIZE) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn SetAdvisoryPageDimensions(this: *mut core::ffi::c_void, pagedimensions: *const XPS_SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPageReference_Impl::SetAdvisoryPageDimensions(this, core::mem::transmute_copy(&pagedimensions)).into() } - unsafe extern "system" fn GetStoryFragmentsResource(this: *mut core::ffi::c_void, storyfragmentsresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn GetStoryFragmentsResource(this: *mut core::ffi::c_void, storyfragmentsresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::GetStoryFragmentsResource(this) { Ok(ok__) => { @@ -4908,17 +3789,11 @@ impl IXpsOMPageReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStoryFragmentsResource(this: *mut core::ffi::c_void, storyfragmentsresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn SetStoryFragmentsResource(this: *mut core::ffi::c_void, storyfragmentsresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPageReference_Impl::SetStoryFragmentsResource(this, windows_core::from_raw_borrowed(&storyfragmentsresource)).into() } - unsafe extern "system" fn GetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn GetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::GetPrintTicketResource(this) { Ok(ok__) => { @@ -4928,17 +3803,11 @@ impl IXpsOMPageReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn SetPrintTicketResource(this: *mut core::ffi::c_void, printticketresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPageReference_Impl::SetPrintTicketResource(this, windows_core::from_raw_borrowed(&printticketresource)).into() } - unsafe extern "system" fn GetThumbnailResource(this: *mut core::ffi::c_void, imageresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn GetThumbnailResource(this: *mut core::ffi::c_void, imageresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::GetThumbnailResource(this) { Ok(ok__) => { @@ -4948,17 +3817,11 @@ impl IXpsOMPageReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetThumbnailResource(this: *mut core::ffi::c_void, imageresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn SetThumbnailResource(this: *mut core::ffi::c_void, imageresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPageReference_Impl::SetThumbnailResource(this, windows_core::from_raw_borrowed(&imageresource)).into() } - unsafe extern "system" fn CollectLinkTargets(this: *mut core::ffi::c_void, linktargets: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn CollectLinkTargets(this: *mut core::ffi::c_void, linktargets: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::CollectLinkTargets(this) { Ok(ok__) => { @@ -4968,10 +3831,7 @@ impl IXpsOMPageReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CollectPartResources(this: *mut core::ffi::c_void, partresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn CollectPartResources(this: *mut core::ffi::c_void, partresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::CollectPartResources(this) { Ok(ok__) => { @@ -4981,10 +3841,7 @@ impl IXpsOMPageReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasRestrictedFonts(this: *mut core::ffi::c_void, restrictedfonts: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn HasRestrictedFonts(this: *mut core::ffi::c_void, restrictedfonts: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::HasRestrictedFonts(this) { Ok(ok__) => { @@ -4994,10 +3851,7 @@ impl IXpsOMPageReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pagereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReference_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pagereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::Clone(this) { Ok(ok__) => { @@ -5032,7 +3886,7 @@ impl IXpsOMPageReference_Vtbl { iid == &::IID } } -pub trait IXpsOMPageReferenceCollection_Impl: Sized { +pub trait IXpsOMPageReferenceCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, pagereference: Option<&IXpsOMPageReference>) -> windows_core::Result<()>; @@ -5042,14 +3896,8 @@ pub trait IXpsOMPageReferenceCollection_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMPageReferenceCollection {} impl IXpsOMPageReferenceCollection_Vtbl { - pub const fn new() -> IXpsOMPageReferenceCollection_Vtbl - where - Identity: IXpsOMPageReferenceCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMPageReferenceCollection_Impl, - { + pub const fn new() -> IXpsOMPageReferenceCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReferenceCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -5059,10 +3907,7 @@ impl IXpsOMPageReferenceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, pagereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReferenceCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, pagereference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReferenceCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5072,31 +3917,19 @@ impl IXpsOMPageReferenceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, pagereference: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReferenceCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, pagereference: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPageReferenceCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&pagereference)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMPageReferenceCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPageReferenceCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, pagereference: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReferenceCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, pagereference: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPageReferenceCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&pagereference)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, pagereference: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPageReferenceCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, pagereference: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPageReferenceCollection_Impl::Append(this, windows_core::from_raw_borrowed(&pagereference)).into() } @@ -5115,7 +3948,7 @@ impl IXpsOMPageReferenceCollection_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMPart_Impl: Sized { +pub trait IXpsOMPart_Impl: Sized + windows_core::IUnknownImpl { fn GetPartName(&self) -> windows_core::Result; fn SetPartName(&self, parturi: Option<&super::Packaging::Opc::IOpcPartUri>) -> windows_core::Result<()>; } @@ -5123,14 +3956,8 @@ pub trait IXpsOMPart_Impl: Sized { impl windows_core::RuntimeName for IXpsOMPart {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPart_Vtbl { - pub const fn new() -> IXpsOMPart_Vtbl - where - Identity: IXpsOMPart_Impl, - { - unsafe extern "system" fn GetPartName(this: *mut core::ffi::c_void, parturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPart_Impl, - { + pub const fn new() -> IXpsOMPart_Vtbl { + unsafe extern "system" fn GetPartName(this: *mut core::ffi::c_void, parturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPart_Impl::GetPartName(this) { Ok(ok__) => { @@ -5140,10 +3967,7 @@ impl IXpsOMPart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPartName(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPart_Impl, - { + unsafe extern "system" fn SetPartName(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPart_Impl::SetPartName(this, windows_core::from_raw_borrowed(&parturi)).into() } @@ -5157,7 +3981,7 @@ impl IXpsOMPart_Vtbl { iid == &::IID } } -pub trait IXpsOMPartResources_Impl: Sized { +pub trait IXpsOMPartResources_Impl: Sized + windows_core::IUnknownImpl { fn GetFontResources(&self) -> windows_core::Result; fn GetImageResources(&self) -> windows_core::Result; fn GetColorProfileResources(&self) -> windows_core::Result; @@ -5165,14 +3989,8 @@ pub trait IXpsOMPartResources_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMPartResources {} impl IXpsOMPartResources_Vtbl { - pub const fn new() -> IXpsOMPartResources_Vtbl - where - Identity: IXpsOMPartResources_Impl, - { - unsafe extern "system" fn GetFontResources(this: *mut core::ffi::c_void, fontresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPartResources_Impl, - { + pub const fn new() -> IXpsOMPartResources_Vtbl { + unsafe extern "system" fn GetFontResources(this: *mut core::ffi::c_void, fontresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPartResources_Impl::GetFontResources(this) { Ok(ok__) => { @@ -5182,10 +4000,7 @@ impl IXpsOMPartResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImageResources(this: *mut core::ffi::c_void, imageresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPartResources_Impl, - { + unsafe extern "system" fn GetImageResources(this: *mut core::ffi::c_void, imageresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPartResources_Impl::GetImageResources(this) { Ok(ok__) => { @@ -5195,10 +4010,7 @@ impl IXpsOMPartResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColorProfileResources(this: *mut core::ffi::c_void, colorprofileresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPartResources_Impl, - { + unsafe extern "system" fn GetColorProfileResources(this: *mut core::ffi::c_void, colorprofileresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPartResources_Impl::GetColorProfileResources(this) { Ok(ok__) => { @@ -5208,10 +4020,7 @@ impl IXpsOMPartResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteDictionaryResources(this: *mut core::ffi::c_void, dictionaryresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPartResources_Impl, - { + unsafe extern "system" fn GetRemoteDictionaryResources(this: *mut core::ffi::c_void, dictionaryresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPartResources_Impl::GetRemoteDictionaryResources(this) { Ok(ok__) => { @@ -5234,7 +4043,7 @@ impl IXpsOMPartResources_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMPartUriCollection_Impl: Sized { +pub trait IXpsOMPartUriCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, parturi: Option<&super::Packaging::Opc::IOpcPartUri>) -> windows_core::Result<()>; @@ -5246,14 +4055,8 @@ pub trait IXpsOMPartUriCollection_Impl: Sized { impl windows_core::RuntimeName for IXpsOMPartUriCollection {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPartUriCollection_Vtbl { - pub const fn new() -> IXpsOMPartUriCollection_Vtbl - where - Identity: IXpsOMPartUriCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMPartUriCollection_Impl, - { + pub const fn new() -> IXpsOMPartUriCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPartUriCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -5263,10 +4066,7 @@ impl IXpsOMPartUriCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, parturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPartUriCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, parturi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPartUriCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5276,31 +4076,19 @@ impl IXpsOMPartUriCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, parturi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPartUriCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, parturi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPartUriCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&parturi)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMPartUriCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPartUriCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, parturi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPartUriCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, parturi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPartUriCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&parturi)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPartUriCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPartUriCollection_Impl::Append(this, windows_core::from_raw_borrowed(&parturi)).into() } @@ -5362,14 +4150,8 @@ pub trait IXpsOMPath_Impl: Sized + IXpsOMVisual_Impl { impl windows_core::RuntimeName for IXpsOMPath {} #[cfg(feature = "Win32_System_Com")] impl IXpsOMPath_Vtbl { - pub const fn new() -> IXpsOMPath_Vtbl - where - Identity: IXpsOMPath_Impl, - { - unsafe extern "system" fn GetGeometry(this: *mut core::ffi::c_void, geometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + pub const fn new() -> IXpsOMPath_Vtbl { + unsafe extern "system" fn GetGeometry(this: *mut core::ffi::c_void, geometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetGeometry(this) { Ok(ok__) => { @@ -5379,10 +4161,7 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGeometryLocal(this: *mut core::ffi::c_void, geometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetGeometryLocal(this: *mut core::ffi::c_void, geometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetGeometryLocal(this) { Ok(ok__) => { @@ -5392,17 +4171,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGeometryLocal(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetGeometryLocal(this: *mut core::ffi::c_void, geometry: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetGeometryLocal(this, windows_core::from_raw_borrowed(&geometry)).into() } - unsafe extern "system" fn GetGeometryLookup(this: *mut core::ffi::c_void, lookup: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetGeometryLookup(this: *mut core::ffi::c_void, lookup: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetGeometryLookup(this) { Ok(ok__) => { @@ -5412,17 +4185,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGeometryLookup(this: *mut core::ffi::c_void, lookup: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetGeometryLookup(this: *mut core::ffi::c_void, lookup: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetGeometryLookup(this, core::mem::transmute(&lookup)).into() } - unsafe extern "system" fn GetAccessibilityShortDescription(this: *mut core::ffi::c_void, shortdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetAccessibilityShortDescription(this: *mut core::ffi::c_void, shortdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetAccessibilityShortDescription(this) { Ok(ok__) => { @@ -5432,17 +4199,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccessibilityShortDescription(this: *mut core::ffi::c_void, shortdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetAccessibilityShortDescription(this: *mut core::ffi::c_void, shortdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetAccessibilityShortDescription(this, core::mem::transmute(&shortdescription)).into() } - unsafe extern "system" fn GetAccessibilityLongDescription(this: *mut core::ffi::c_void, longdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetAccessibilityLongDescription(this: *mut core::ffi::c_void, longdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetAccessibilityLongDescription(this) { Ok(ok__) => { @@ -5452,17 +4213,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccessibilityLongDescription(this: *mut core::ffi::c_void, longdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetAccessibilityLongDescription(this: *mut core::ffi::c_void, longdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetAccessibilityLongDescription(this, core::mem::transmute(&longdescription)).into() } - unsafe extern "system" fn GetSnapsToPixels(this: *mut core::ffi::c_void, snapstopixels: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetSnapsToPixels(this: *mut core::ffi::c_void, snapstopixels: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetSnapsToPixels(this) { Ok(ok__) => { @@ -5472,17 +4227,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSnapsToPixels(this: *mut core::ffi::c_void, snapstopixels: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetSnapsToPixels(this: *mut core::ffi::c_void, snapstopixels: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetSnapsToPixels(this, core::mem::transmute_copy(&snapstopixels)).into() } - unsafe extern "system" fn GetStrokeBrush(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeBrush(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeBrush(this) { Ok(ok__) => { @@ -5492,10 +4241,7 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStrokeBrushLocal(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeBrushLocal(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeBrushLocal(this) { Ok(ok__) => { @@ -5505,17 +4251,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrokeBrushLocal(this: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetStrokeBrushLocal(this: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetStrokeBrushLocal(this, windows_core::from_raw_borrowed(&brush)).into() } - unsafe extern "system" fn GetStrokeBrushLookup(this: *mut core::ffi::c_void, lookup: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeBrushLookup(this: *mut core::ffi::c_void, lookup: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeBrushLookup(this) { Ok(ok__) => { @@ -5525,17 +4265,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrokeBrushLookup(this: *mut core::ffi::c_void, lookup: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetStrokeBrushLookup(this: *mut core::ffi::c_void, lookup: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetStrokeBrushLookup(this, core::mem::transmute(&lookup)).into() } - unsafe extern "system" fn GetStrokeDashes(this: *mut core::ffi::c_void, strokedashes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeDashes(this: *mut core::ffi::c_void, strokedashes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeDashes(this) { Ok(ok__) => { @@ -5545,10 +4279,7 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStrokeDashCap(this: *mut core::ffi::c_void, strokedashcap: *mut XPS_DASH_CAP) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeDashCap(this: *mut core::ffi::c_void, strokedashcap: *mut XPS_DASH_CAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeDashCap(this) { Ok(ok__) => { @@ -5558,17 +4289,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrokeDashCap(this: *mut core::ffi::c_void, strokedashcap: XPS_DASH_CAP) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetStrokeDashCap(this: *mut core::ffi::c_void, strokedashcap: XPS_DASH_CAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetStrokeDashCap(this, core::mem::transmute_copy(&strokedashcap)).into() } - unsafe extern "system" fn GetStrokeDashOffset(this: *mut core::ffi::c_void, strokedashoffset: *mut f32) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeDashOffset(this: *mut core::ffi::c_void, strokedashoffset: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeDashOffset(this) { Ok(ok__) => { @@ -5578,17 +4303,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrokeDashOffset(this: *mut core::ffi::c_void, strokedashoffset: f32) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetStrokeDashOffset(this: *mut core::ffi::c_void, strokedashoffset: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetStrokeDashOffset(this, core::mem::transmute_copy(&strokedashoffset)).into() } - unsafe extern "system" fn GetStrokeStartLineCap(this: *mut core::ffi::c_void, strokestartlinecap: *mut XPS_LINE_CAP) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeStartLineCap(this: *mut core::ffi::c_void, strokestartlinecap: *mut XPS_LINE_CAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeStartLineCap(this) { Ok(ok__) => { @@ -5598,17 +4317,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrokeStartLineCap(this: *mut core::ffi::c_void, strokestartlinecap: XPS_LINE_CAP) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetStrokeStartLineCap(this: *mut core::ffi::c_void, strokestartlinecap: XPS_LINE_CAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetStrokeStartLineCap(this, core::mem::transmute_copy(&strokestartlinecap)).into() } - unsafe extern "system" fn GetStrokeEndLineCap(this: *mut core::ffi::c_void, strokeendlinecap: *mut XPS_LINE_CAP) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeEndLineCap(this: *mut core::ffi::c_void, strokeendlinecap: *mut XPS_LINE_CAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeEndLineCap(this) { Ok(ok__) => { @@ -5618,17 +4331,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrokeEndLineCap(this: *mut core::ffi::c_void, strokeendlinecap: XPS_LINE_CAP) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetStrokeEndLineCap(this: *mut core::ffi::c_void, strokeendlinecap: XPS_LINE_CAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetStrokeEndLineCap(this, core::mem::transmute_copy(&strokeendlinecap)).into() } - unsafe extern "system" fn GetStrokeLineJoin(this: *mut core::ffi::c_void, strokelinejoin: *mut XPS_LINE_JOIN) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeLineJoin(this: *mut core::ffi::c_void, strokelinejoin: *mut XPS_LINE_JOIN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeLineJoin(this) { Ok(ok__) => { @@ -5638,17 +4345,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrokeLineJoin(this: *mut core::ffi::c_void, strokelinejoin: XPS_LINE_JOIN) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetStrokeLineJoin(this: *mut core::ffi::c_void, strokelinejoin: XPS_LINE_JOIN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetStrokeLineJoin(this, core::mem::transmute_copy(&strokelinejoin)).into() } - unsafe extern "system" fn GetStrokeMiterLimit(this: *mut core::ffi::c_void, strokemiterlimit: *mut f32) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeMiterLimit(this: *mut core::ffi::c_void, strokemiterlimit: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeMiterLimit(this) { Ok(ok__) => { @@ -5658,17 +4359,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrokeMiterLimit(this: *mut core::ffi::c_void, strokemiterlimit: f32) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetStrokeMiterLimit(this: *mut core::ffi::c_void, strokemiterlimit: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetStrokeMiterLimit(this, core::mem::transmute_copy(&strokemiterlimit)).into() } - unsafe extern "system" fn GetStrokeThickness(this: *mut core::ffi::c_void, strokethickness: *mut f32) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetStrokeThickness(this: *mut core::ffi::c_void, strokethickness: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetStrokeThickness(this) { Ok(ok__) => { @@ -5678,17 +4373,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrokeThickness(this: *mut core::ffi::c_void, strokethickness: f32) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetStrokeThickness(this: *mut core::ffi::c_void, strokethickness: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetStrokeThickness(this, core::mem::transmute_copy(&strokethickness)).into() } - unsafe extern "system" fn GetFillBrush(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetFillBrush(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetFillBrush(this) { Ok(ok__) => { @@ -5698,10 +4387,7 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFillBrushLocal(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetFillBrushLocal(this: *mut core::ffi::c_void, brush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetFillBrushLocal(this) { Ok(ok__) => { @@ -5711,17 +4397,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFillBrushLocal(this: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetFillBrushLocal(this: *mut core::ffi::c_void, brush: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetFillBrushLocal(this, windows_core::from_raw_borrowed(&brush)).into() } - unsafe extern "system" fn GetFillBrushLookup(this: *mut core::ffi::c_void, lookup: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn GetFillBrushLookup(this: *mut core::ffi::c_void, lookup: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetFillBrushLookup(this) { Ok(ok__) => { @@ -5731,17 +4411,11 @@ impl IXpsOMPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFillBrushLookup(this: *mut core::ffi::c_void, lookup: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn SetFillBrushLookup(this: *mut core::ffi::c_void, lookup: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetFillBrushLookup(this, core::mem::transmute(&lookup)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, path: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPath_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, path: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::Clone(this) { Ok(ok__) => { @@ -5805,14 +4479,8 @@ pub trait IXpsOMPrintTicketResource_Impl: Sized + IXpsOMResource_Impl { impl windows_core::RuntimeName for IXpsOMPrintTicketResource {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPrintTicketResource_Vtbl { - pub const fn new() -> IXpsOMPrintTicketResource_Vtbl - where - Identity: IXpsOMPrintTicketResource_Impl, - { - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPrintTicketResource_Impl, - { + pub const fn new() -> IXpsOMPrintTicketResource_Vtbl { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPrintTicketResource_Impl::GetStream(this) { Ok(ok__) => { @@ -5822,10 +4490,7 @@ impl IXpsOMPrintTicketResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, partname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMPrintTicketResource_Impl, - { + unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, partname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPrintTicketResource_Impl::SetContent(this, windows_core::from_raw_borrowed(&sourcestream), windows_core::from_raw_borrowed(&partname)).into() } @@ -5846,14 +4511,8 @@ pub trait IXpsOMRadialGradientBrush_Impl: Sized + IXpsOMGradientBrush_Impl { } impl windows_core::RuntimeName for IXpsOMRadialGradientBrush {} impl IXpsOMRadialGradientBrush_Vtbl { - pub const fn new() -> IXpsOMRadialGradientBrush_Vtbl - where - Identity: IXpsOMRadialGradientBrush_Impl, - { - unsafe extern "system" fn GetCenter(this: *mut core::ffi::c_void, center: *mut XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMRadialGradientBrush_Impl, - { + pub const fn new() -> IXpsOMRadialGradientBrush_Vtbl { + unsafe extern "system" fn GetCenter(this: *mut core::ffi::c_void, center: *mut XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMRadialGradientBrush_Impl::GetCenter(this) { Ok(ok__) => { @@ -5863,17 +4522,11 @@ impl IXpsOMRadialGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCenter(this: *mut core::ffi::c_void, center: *const XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMRadialGradientBrush_Impl, - { + unsafe extern "system" fn SetCenter(this: *mut core::ffi::c_void, center: *const XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMRadialGradientBrush_Impl::SetCenter(this, core::mem::transmute_copy(¢er)).into() } - unsafe extern "system" fn GetRadiiSizes(this: *mut core::ffi::c_void, radiisizes: *mut XPS_SIZE) -> windows_core::HRESULT - where - Identity: IXpsOMRadialGradientBrush_Impl, - { + unsafe extern "system" fn GetRadiiSizes(this: *mut core::ffi::c_void, radiisizes: *mut XPS_SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMRadialGradientBrush_Impl::GetRadiiSizes(this) { Ok(ok__) => { @@ -5883,17 +4536,11 @@ impl IXpsOMRadialGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRadiiSizes(this: *mut core::ffi::c_void, radiisizes: *const XPS_SIZE) -> windows_core::HRESULT - where - Identity: IXpsOMRadialGradientBrush_Impl, - { + unsafe extern "system" fn SetRadiiSizes(this: *mut core::ffi::c_void, radiisizes: *const XPS_SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMRadialGradientBrush_Impl::SetRadiiSizes(this, core::mem::transmute_copy(&radiisizes)).into() } - unsafe extern "system" fn GetGradientOrigin(this: *mut core::ffi::c_void, origin: *mut XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMRadialGradientBrush_Impl, - { + unsafe extern "system" fn GetGradientOrigin(this: *mut core::ffi::c_void, origin: *mut XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMRadialGradientBrush_Impl::GetGradientOrigin(this) { Ok(ok__) => { @@ -5903,17 +4550,11 @@ impl IXpsOMRadialGradientBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGradientOrigin(this: *mut core::ffi::c_void, origin: *const XPS_POINT) -> windows_core::HRESULT - where - Identity: IXpsOMRadialGradientBrush_Impl, - { + unsafe extern "system" fn SetGradientOrigin(this: *mut core::ffi::c_void, origin: *const XPS_POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMRadialGradientBrush_Impl::SetGradientOrigin(this, core::mem::transmute_copy(&origin)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, radialgradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMRadialGradientBrush_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, radialgradientbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMRadialGradientBrush_Impl::Clone(this) { Ok(ok__) => { @@ -5947,14 +4588,8 @@ pub trait IXpsOMRemoteDictionaryResource_Impl: Sized + IXpsOMResource_Impl { impl windows_core::RuntimeName for IXpsOMRemoteDictionaryResource {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMRemoteDictionaryResource_Vtbl { - pub const fn new() -> IXpsOMRemoteDictionaryResource_Vtbl - where - Identity: IXpsOMRemoteDictionaryResource_Impl, - { - unsafe extern "system" fn GetDictionary(this: *mut core::ffi::c_void, dictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResource_Impl, - { + pub const fn new() -> IXpsOMRemoteDictionaryResource_Vtbl { + unsafe extern "system" fn GetDictionary(this: *mut core::ffi::c_void, dictionary: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMRemoteDictionaryResource_Impl::GetDictionary(this) { Ok(ok__) => { @@ -5964,10 +4599,7 @@ impl IXpsOMRemoteDictionaryResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDictionary(this: *mut core::ffi::c_void, dictionary: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResource_Impl, - { + unsafe extern "system" fn SetDictionary(this: *mut core::ffi::c_void, dictionary: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMRemoteDictionaryResource_Impl::SetDictionary(this, windows_core::from_raw_borrowed(&dictionary)).into() } @@ -5990,14 +4622,8 @@ pub trait IXpsOMRemoteDictionaryResource1_Impl: Sized + IXpsOMRemoteDictionaryRe impl windows_core::RuntimeName for IXpsOMRemoteDictionaryResource1 {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMRemoteDictionaryResource1_Vtbl { - pub const fn new() -> IXpsOMRemoteDictionaryResource1_Vtbl - where - Identity: IXpsOMRemoteDictionaryResource1_Impl, - { - unsafe extern "system" fn GetDocumentType(this: *mut core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResource1_Impl, - { + pub const fn new() -> IXpsOMRemoteDictionaryResource1_Vtbl { + unsafe extern "system" fn GetDocumentType(this: *mut core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMRemoteDictionaryResource1_Impl::GetDocumentType(this) { Ok(ok__) => { @@ -6007,10 +4633,7 @@ impl IXpsOMRemoteDictionaryResource1_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Write1(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResource1_Impl, - { + unsafe extern "system" fn Write1(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMRemoteDictionaryResource1_Impl::Write1(this, windows_core::from_raw_borrowed(&stream), core::mem::transmute_copy(&documenttype)).into() } @@ -6025,7 +4648,7 @@ impl IXpsOMRemoteDictionaryResource1_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMRemoteDictionaryResourceCollection_Impl: Sized { +pub trait IXpsOMRemoteDictionaryResourceCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, object: Option<&IXpsOMRemoteDictionaryResource>) -> windows_core::Result<()>; @@ -6038,14 +4661,8 @@ pub trait IXpsOMRemoteDictionaryResourceCollection_Impl: Sized { impl windows_core::RuntimeName for IXpsOMRemoteDictionaryResourceCollection {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMRemoteDictionaryResourceCollection_Vtbl { - pub const fn new() -> IXpsOMRemoteDictionaryResourceCollection_Vtbl - where - Identity: IXpsOMRemoteDictionaryResourceCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResourceCollection_Impl, - { + pub const fn new() -> IXpsOMRemoteDictionaryResourceCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMRemoteDictionaryResourceCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -6055,10 +4672,7 @@ impl IXpsOMRemoteDictionaryResourceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResourceCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMRemoteDictionaryResourceCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6068,38 +4682,23 @@ impl IXpsOMRemoteDictionaryResourceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResourceCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMRemoteDictionaryResourceCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResourceCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMRemoteDictionaryResourceCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResourceCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMRemoteDictionaryResourceCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResourceCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMRemoteDictionaryResourceCollection_Impl::Append(this, windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn GetByPartName(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, remotedictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMRemoteDictionaryResourceCollection_Impl, - { + unsafe extern "system" fn GetByPartName(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, remotedictionaryresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMRemoteDictionaryResourceCollection_Impl::GetByPartName(this, windows_core::from_raw_borrowed(&partname)) { Ok(ok__) => { @@ -6130,30 +4729,21 @@ pub trait IXpsOMResource_Impl: Sized + IXpsOMPart_Impl {} impl windows_core::RuntimeName for IXpsOMResource {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMResource_Vtbl { - pub const fn new() -> IXpsOMResource_Vtbl - where - Identity: IXpsOMResource_Impl, - { + pub const fn new() -> IXpsOMResource_Vtbl { Self { base__: IXpsOMPart_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IXpsOMShareable_Impl: Sized { +pub trait IXpsOMShareable_Impl: Sized + windows_core::IUnknownImpl { fn GetOwner(&self) -> windows_core::Result; fn GetType(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IXpsOMShareable {} impl IXpsOMShareable_Vtbl { - pub const fn new() -> IXpsOMShareable_Vtbl - where - Identity: IXpsOMShareable_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMShareable_Impl, - { + pub const fn new() -> IXpsOMShareable_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMShareable_Impl::GetOwner(this) { Ok(ok__) => { @@ -6163,10 +4753,7 @@ impl IXpsOMShareable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, r#type: *mut XPS_OBJECT_TYPE) -> windows_core::HRESULT - where - Identity: IXpsOMShareable_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, r#type: *mut XPS_OBJECT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMShareable_Impl::GetType(this) { Ok(ok__) => { @@ -6192,14 +4779,8 @@ pub trait IXpsOMSignatureBlockResource_Impl: Sized + IXpsOMResource_Impl { impl windows_core::RuntimeName for IXpsOMSignatureBlockResource {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMSignatureBlockResource_Vtbl { - pub const fn new() -> IXpsOMSignatureBlockResource_Vtbl - where - Identity: IXpsOMSignatureBlockResource_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSignatureBlockResource_Impl, - { + pub const fn new() -> IXpsOMSignatureBlockResource_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMSignatureBlockResource_Impl::GetOwner(this) { Ok(ok__) => { @@ -6209,10 +4790,7 @@ impl IXpsOMSignatureBlockResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSignatureBlockResource_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMSignatureBlockResource_Impl::GetStream(this) { Ok(ok__) => { @@ -6222,10 +4800,7 @@ impl IXpsOMSignatureBlockResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, partname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSignatureBlockResource_Impl, - { + unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, partname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMSignatureBlockResource_Impl::SetContent(this, windows_core::from_raw_borrowed(&sourcestream), windows_core::from_raw_borrowed(&partname)).into() } @@ -6241,7 +4816,7 @@ impl IXpsOMSignatureBlockResource_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMSignatureBlockResourceCollection_Impl: Sized { +pub trait IXpsOMSignatureBlockResourceCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, signatureblockresource: Option<&IXpsOMSignatureBlockResource>) -> windows_core::Result<()>; @@ -6254,14 +4829,8 @@ pub trait IXpsOMSignatureBlockResourceCollection_Impl: Sized { impl windows_core::RuntimeName for IXpsOMSignatureBlockResourceCollection {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMSignatureBlockResourceCollection_Vtbl { - pub const fn new() -> IXpsOMSignatureBlockResourceCollection_Vtbl - where - Identity: IXpsOMSignatureBlockResourceCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMSignatureBlockResourceCollection_Impl, - { + pub const fn new() -> IXpsOMSignatureBlockResourceCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMSignatureBlockResourceCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -6271,10 +4840,7 @@ impl IXpsOMSignatureBlockResourceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, signatureblockresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSignatureBlockResourceCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, signatureblockresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMSignatureBlockResourceCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6284,38 +4850,23 @@ impl IXpsOMSignatureBlockResourceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, signatureblockresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSignatureBlockResourceCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, signatureblockresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMSignatureBlockResourceCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&signatureblockresource)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMSignatureBlockResourceCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMSignatureBlockResourceCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, signatureblockresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSignatureBlockResourceCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, signatureblockresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMSignatureBlockResourceCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&signatureblockresource)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, signatureblockresource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSignatureBlockResourceCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, signatureblockresource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMSignatureBlockResourceCollection_Impl::Append(this, windows_core::from_raw_borrowed(&signatureblockresource)).into() } - unsafe extern "system" fn GetByPartName(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, signatureblockresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSignatureBlockResourceCollection_Impl, - { + unsafe extern "system" fn GetByPartName(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, signatureblockresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMSignatureBlockResourceCollection_Impl::GetByPartName(this, windows_core::from_raw_borrowed(&partname)) { Ok(ok__) => { @@ -6347,14 +4898,8 @@ pub trait IXpsOMSolidColorBrush_Impl: Sized + IXpsOMBrush_Impl { } impl windows_core::RuntimeName for IXpsOMSolidColorBrush {} impl IXpsOMSolidColorBrush_Vtbl { - pub const fn new() -> IXpsOMSolidColorBrush_Vtbl - where - Identity: IXpsOMSolidColorBrush_Impl, - { - unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, color: *mut XPS_COLOR, colorprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSolidColorBrush_Impl, - { + pub const fn new() -> IXpsOMSolidColorBrush_Vtbl { + unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, color: *mut XPS_COLOR, colorprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMSolidColorBrush_Impl::GetColor(this, core::mem::transmute_copy(&color)) { Ok(ok__) => { @@ -6364,17 +4909,11 @@ impl IXpsOMSolidColorBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const XPS_COLOR, colorprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSolidColorBrush_Impl, - { + unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: *const XPS_COLOR, colorprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMSolidColorBrush_Impl::SetColor(this, core::mem::transmute_copy(&color), windows_core::from_raw_borrowed(&colorprofile)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, solidcolorbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMSolidColorBrush_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, solidcolorbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMSolidColorBrush_Impl::Clone(this) { Ok(ok__) => { @@ -6405,14 +4944,8 @@ pub trait IXpsOMStoryFragmentsResource_Impl: Sized + IXpsOMResource_Impl { impl windows_core::RuntimeName for IXpsOMStoryFragmentsResource {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMStoryFragmentsResource_Vtbl { - pub const fn new() -> IXpsOMStoryFragmentsResource_Vtbl - where - Identity: IXpsOMStoryFragmentsResource_Impl, - { - unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMStoryFragmentsResource_Impl, - { + pub const fn new() -> IXpsOMStoryFragmentsResource_Vtbl { + unsafe extern "system" fn GetOwner(this: *mut core::ffi::c_void, owner: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMStoryFragmentsResource_Impl::GetOwner(this) { Ok(ok__) => { @@ -6422,10 +4955,7 @@ impl IXpsOMStoryFragmentsResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMStoryFragmentsResource_Impl, - { + unsafe extern "system" fn GetStream(this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMStoryFragmentsResource_Impl::GetStream(this) { Ok(ok__) => { @@ -6435,10 +4965,7 @@ impl IXpsOMStoryFragmentsResource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, partname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMStoryFragmentsResource_Impl, - { + unsafe extern "system" fn SetContent(this: *mut core::ffi::c_void, sourcestream: *mut core::ffi::c_void, partname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMStoryFragmentsResource_Impl::SetContent(this, windows_core::from_raw_borrowed(&sourcestream), windows_core::from_raw_borrowed(&partname)).into() } @@ -6454,21 +4981,15 @@ impl IXpsOMStoryFragmentsResource_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsOMThumbnailGenerator_Impl: Sized { +pub trait IXpsOMThumbnailGenerator_Impl: Sized + windows_core::IUnknownImpl { fn GenerateThumbnail(&self, page: Option<&IXpsOMPage>, thumbnailtype: XPS_IMAGE_TYPE, thumbnailsize: XPS_THUMBNAIL_SIZE, imageresourcepartname: Option<&super::Packaging::Opc::IOpcPartUri>) -> windows_core::Result; } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl windows_core::RuntimeName for IXpsOMThumbnailGenerator {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMThumbnailGenerator_Vtbl { - pub const fn new() -> IXpsOMThumbnailGenerator_Vtbl - where - Identity: IXpsOMThumbnailGenerator_Impl, - { - unsafe extern "system" fn GenerateThumbnail(this: *mut core::ffi::c_void, page: *mut core::ffi::c_void, thumbnailtype: XPS_IMAGE_TYPE, thumbnailsize: XPS_THUMBNAIL_SIZE, imageresourcepartname: *mut core::ffi::c_void, imageresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMThumbnailGenerator_Impl, - { + pub const fn new() -> IXpsOMThumbnailGenerator_Vtbl { + unsafe extern "system" fn GenerateThumbnail(this: *mut core::ffi::c_void, page: *mut core::ffi::c_void, thumbnailtype: XPS_IMAGE_TYPE, thumbnailsize: XPS_THUMBNAIL_SIZE, imageresourcepartname: *mut core::ffi::c_void, imageresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMThumbnailGenerator_Impl::GenerateThumbnail(this, windows_core::from_raw_borrowed(&page), core::mem::transmute_copy(&thumbnailtype), core::mem::transmute_copy(&thumbnailsize), windows_core::from_raw_borrowed(&imageresourcepartname)) { Ok(ok__) => { @@ -6499,14 +5020,8 @@ pub trait IXpsOMTileBrush_Impl: Sized + IXpsOMBrush_Impl { } impl windows_core::RuntimeName for IXpsOMTileBrush {} impl IXpsOMTileBrush_Vtbl { - pub const fn new() -> IXpsOMTileBrush_Vtbl - where - Identity: IXpsOMTileBrush_Impl, - { - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + pub const fn new() -> IXpsOMTileBrush_Vtbl { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMTileBrush_Impl::GetTransform(this) { Ok(ok__) => { @@ -6516,10 +5031,7 @@ impl IXpsOMTileBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransformLocal(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + unsafe extern "system" fn GetTransformLocal(this: *mut core::ffi::c_void, transform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMTileBrush_Impl::GetTransformLocal(this) { Ok(ok__) => { @@ -6529,17 +5041,11 @@ impl IXpsOMTileBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransformLocal(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + unsafe extern "system" fn SetTransformLocal(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMTileBrush_Impl::SetTransformLocal(this, windows_core::from_raw_borrowed(&transform)).into() } - unsafe extern "system" fn GetTransformLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + unsafe extern "system" fn GetTransformLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMTileBrush_Impl::GetTransformLookup(this) { Ok(ok__) => { @@ -6549,17 +5055,11 @@ impl IXpsOMTileBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransformLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + unsafe extern "system" fn SetTransformLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMTileBrush_Impl::SetTransformLookup(this, core::mem::transmute(&key)).into() } - unsafe extern "system" fn GetViewbox(this: *mut core::ffi::c_void, viewbox: *mut XPS_RECT) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + unsafe extern "system" fn GetViewbox(this: *mut core::ffi::c_void, viewbox: *mut XPS_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMTileBrush_Impl::GetViewbox(this) { Ok(ok__) => { @@ -6569,17 +5069,11 @@ impl IXpsOMTileBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetViewbox(this: *mut core::ffi::c_void, viewbox: *const XPS_RECT) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + unsafe extern "system" fn SetViewbox(this: *mut core::ffi::c_void, viewbox: *const XPS_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMTileBrush_Impl::SetViewbox(this, core::mem::transmute_copy(&viewbox)).into() } - unsafe extern "system" fn GetViewport(this: *mut core::ffi::c_void, viewport: *mut XPS_RECT) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + unsafe extern "system" fn GetViewport(this: *mut core::ffi::c_void, viewport: *mut XPS_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMTileBrush_Impl::GetViewport(this) { Ok(ok__) => { @@ -6589,17 +5083,11 @@ impl IXpsOMTileBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetViewport(this: *mut core::ffi::c_void, viewport: *const XPS_RECT) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + unsafe extern "system" fn SetViewport(this: *mut core::ffi::c_void, viewport: *const XPS_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMTileBrush_Impl::SetViewport(this, core::mem::transmute_copy(&viewport)).into() } - unsafe extern "system" fn GetTileMode(this: *mut core::ffi::c_void, tilemode: *mut XPS_TILE_MODE) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + unsafe extern "system" fn GetTileMode(this: *mut core::ffi::c_void, tilemode: *mut XPS_TILE_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMTileBrush_Impl::GetTileMode(this) { Ok(ok__) => { @@ -6609,10 +5097,7 @@ impl IXpsOMTileBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTileMode(this: *mut core::ffi::c_void, tilemode: XPS_TILE_MODE) -> windows_core::HRESULT - where - Identity: IXpsOMTileBrush_Impl, - { + unsafe extern "system" fn SetTileMode(this: *mut core::ffi::c_void, tilemode: XPS_TILE_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMTileBrush_Impl::SetTileMode(this, core::mem::transmute_copy(&tilemode)).into() } @@ -6667,14 +5152,8 @@ pub trait IXpsOMVisual_Impl: Sized + IXpsOMShareable_Impl { impl windows_core::RuntimeName for IXpsOMVisual {} #[cfg(feature = "Win32_System_Com")] impl IXpsOMVisual_Vtbl { - pub const fn new() -> IXpsOMVisual_Vtbl - where - Identity: IXpsOMVisual_Impl, - { - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, matrixtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + pub const fn new() -> IXpsOMVisual_Vtbl { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, matrixtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetTransform(this) { Ok(ok__) => { @@ -6684,10 +5163,7 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransformLocal(this: *mut core::ffi::c_void, matrixtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetTransformLocal(this: *mut core::ffi::c_void, matrixtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetTransformLocal(this) { Ok(ok__) => { @@ -6697,17 +5173,11 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransformLocal(this: *mut core::ffi::c_void, matrixtransform: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetTransformLocal(this: *mut core::ffi::c_void, matrixtransform: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetTransformLocal(this, windows_core::from_raw_borrowed(&matrixtransform)).into() } - unsafe extern "system" fn GetTransformLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetTransformLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetTransformLookup(this) { Ok(ok__) => { @@ -6717,17 +5187,11 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransformLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetTransformLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetTransformLookup(this, core::mem::transmute(&key)).into() } - unsafe extern "system" fn GetClipGeometry(this: *mut core::ffi::c_void, clipgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetClipGeometry(this: *mut core::ffi::c_void, clipgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetClipGeometry(this) { Ok(ok__) => { @@ -6737,10 +5201,7 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClipGeometryLocal(this: *mut core::ffi::c_void, clipgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetClipGeometryLocal(this: *mut core::ffi::c_void, clipgeometry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetClipGeometryLocal(this) { Ok(ok__) => { @@ -6750,17 +5211,11 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClipGeometryLocal(this: *mut core::ffi::c_void, clipgeometry: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetClipGeometryLocal(this: *mut core::ffi::c_void, clipgeometry: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetClipGeometryLocal(this, windows_core::from_raw_borrowed(&clipgeometry)).into() } - unsafe extern "system" fn GetClipGeometryLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetClipGeometryLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetClipGeometryLookup(this) { Ok(ok__) => { @@ -6770,17 +5225,11 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClipGeometryLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetClipGeometryLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetClipGeometryLookup(this, core::mem::transmute(&key)).into() } - unsafe extern "system" fn GetOpacity(this: *mut core::ffi::c_void, opacity: *mut f32) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetOpacity(this: *mut core::ffi::c_void, opacity: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetOpacity(this) { Ok(ok__) => { @@ -6790,17 +5239,11 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, opacity: f32) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetOpacity(this: *mut core::ffi::c_void, opacity: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetOpacity(this, core::mem::transmute_copy(&opacity)).into() } - unsafe extern "system" fn GetOpacityMaskBrush(this: *mut core::ffi::c_void, opacitymaskbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetOpacityMaskBrush(this: *mut core::ffi::c_void, opacitymaskbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetOpacityMaskBrush(this) { Ok(ok__) => { @@ -6810,10 +5253,7 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOpacityMaskBrushLocal(this: *mut core::ffi::c_void, opacitymaskbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetOpacityMaskBrushLocal(this: *mut core::ffi::c_void, opacitymaskbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetOpacityMaskBrushLocal(this) { Ok(ok__) => { @@ -6823,17 +5263,11 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOpacityMaskBrushLocal(this: *mut core::ffi::c_void, opacitymaskbrush: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetOpacityMaskBrushLocal(this: *mut core::ffi::c_void, opacitymaskbrush: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetOpacityMaskBrushLocal(this, windows_core::from_raw_borrowed(&opacitymaskbrush)).into() } - unsafe extern "system" fn GetOpacityMaskBrushLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetOpacityMaskBrushLookup(this: *mut core::ffi::c_void, key: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetOpacityMaskBrushLookup(this) { Ok(ok__) => { @@ -6843,17 +5277,11 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOpacityMaskBrushLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetOpacityMaskBrushLookup(this: *mut core::ffi::c_void, key: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetOpacityMaskBrushLookup(this, core::mem::transmute(&key)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetName(this) { Ok(ok__) => { @@ -6863,17 +5291,11 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn GetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlink: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlink: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetIsHyperlinkTarget(this) { Ok(ok__) => { @@ -6883,17 +5305,11 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlink: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlink: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetIsHyperlinkTarget(this, core::mem::transmute_copy(&ishyperlink)).into() } - unsafe extern "system" fn GetHyperlinkNavigateUri(this: *mut core::ffi::c_void, hyperlinkuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetHyperlinkNavigateUri(this: *mut core::ffi::c_void, hyperlinkuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetHyperlinkNavigateUri(this) { Ok(ok__) => { @@ -6903,17 +5319,11 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHyperlinkNavigateUri(this: *mut core::ffi::c_void, hyperlinkuri: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetHyperlinkNavigateUri(this: *mut core::ffi::c_void, hyperlinkuri: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetHyperlinkNavigateUri(this, windows_core::from_raw_borrowed(&hyperlinkuri)).into() } - unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, language: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, language: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetLanguage(this) { Ok(ok__) => { @@ -6923,10 +5333,7 @@ impl IXpsOMVisual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, language: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisual_Impl, - { + unsafe extern "system" fn SetLanguage(this: *mut core::ffi::c_void, language: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetLanguage(this, core::mem::transmute(&language)).into() } @@ -6973,14 +5380,8 @@ pub trait IXpsOMVisualBrush_Impl: Sized + IXpsOMTileBrush_Impl { } impl windows_core::RuntimeName for IXpsOMVisualBrush {} impl IXpsOMVisualBrush_Vtbl { - pub const fn new() -> IXpsOMVisualBrush_Vtbl - where - Identity: IXpsOMVisualBrush_Impl, - { - unsafe extern "system" fn GetVisual(this: *mut core::ffi::c_void, visual: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisualBrush_Impl, - { + pub const fn new() -> IXpsOMVisualBrush_Vtbl { + unsafe extern "system" fn GetVisual(this: *mut core::ffi::c_void, visual: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisualBrush_Impl::GetVisual(this) { Ok(ok__) => { @@ -6990,10 +5391,7 @@ impl IXpsOMVisualBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVisualLocal(this: *mut core::ffi::c_void, visual: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisualBrush_Impl, - { + unsafe extern "system" fn GetVisualLocal(this: *mut core::ffi::c_void, visual: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisualBrush_Impl::GetVisualLocal(this) { Ok(ok__) => { @@ -7003,17 +5401,11 @@ impl IXpsOMVisualBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVisualLocal(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisualBrush_Impl, - { + unsafe extern "system" fn SetVisualLocal(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisualBrush_Impl::SetVisualLocal(this, windows_core::from_raw_borrowed(&visual)).into() } - unsafe extern "system" fn GetVisualLookup(this: *mut core::ffi::c_void, lookup: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisualBrush_Impl, - { + unsafe extern "system" fn GetVisualLookup(this: *mut core::ffi::c_void, lookup: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisualBrush_Impl::GetVisualLookup(this) { Ok(ok__) => { @@ -7023,17 +5415,11 @@ impl IXpsOMVisualBrush_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVisualLookup(this: *mut core::ffi::c_void, lookup: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsOMVisualBrush_Impl, - { + unsafe extern "system" fn SetVisualLookup(this: *mut core::ffi::c_void, lookup: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisualBrush_Impl::SetVisualLookup(this, core::mem::transmute(&lookup)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, visualbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisualBrush_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, visualbrush: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisualBrush_Impl::Clone(this) { Ok(ok__) => { @@ -7057,7 +5443,7 @@ impl IXpsOMVisualBrush_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IXpsOMVisualCollection_Impl: Sized { +pub trait IXpsOMVisualCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn InsertAt(&self, index: u32, object: Option<&IXpsOMVisual>) -> windows_core::Result<()>; @@ -7067,14 +5453,8 @@ pub trait IXpsOMVisualCollection_Impl: Sized { } impl windows_core::RuntimeName for IXpsOMVisualCollection {} impl IXpsOMVisualCollection_Vtbl { - pub const fn new() -> IXpsOMVisualCollection_Vtbl - where - Identity: IXpsOMVisualCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsOMVisualCollection_Impl, - { + pub const fn new() -> IXpsOMVisualCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisualCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -7084,10 +5464,7 @@ impl IXpsOMVisualCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisualCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisualCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -7097,31 +5474,19 @@ impl IXpsOMVisualCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisualCollection_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisualCollection_Impl::InsertAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsOMVisualCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisualCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisualCollection_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, index: u32, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisualCollection_Impl::SetAt(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsOMVisualCollection_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisualCollection_Impl::Append(this, windows_core::from_raw_borrowed(&object)).into() } @@ -7140,7 +5505,7 @@ impl IXpsOMVisualCollection_Vtbl { } } #[cfg(all(feature = "Win32_Security_Cryptography", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsSignature_Impl: Sized { +pub trait IXpsSignature_Impl: Sized + windows_core::IUnknownImpl { fn GetSignatureId(&self) -> windows_core::Result; fn GetSignatureValue(&self, signaturehashvalue: *mut *mut u8, count: *mut u32) -> windows_core::Result<()>; fn GetCertificateEnumerator(&self) -> windows_core::Result; @@ -7158,14 +5523,8 @@ pub trait IXpsSignature_Impl: Sized { impl windows_core::RuntimeName for IXpsSignature {} #[cfg(all(feature = "Win32_Security_Cryptography", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsSignature_Vtbl { - pub const fn new() -> IXpsSignature_Vtbl - where - Identity: IXpsSignature_Impl, - { - unsafe extern "system" fn GetSignatureId(this: *mut core::ffi::c_void, sigid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + pub const fn new() -> IXpsSignature_Vtbl { + unsafe extern "system" fn GetSignatureId(this: *mut core::ffi::c_void, sigid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignature_Impl::GetSignatureId(this) { Ok(ok__) => { @@ -7175,17 +5534,11 @@ impl IXpsSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignatureValue(this: *mut core::ffi::c_void, signaturehashvalue: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn GetSignatureValue(this: *mut core::ffi::c_void, signaturehashvalue: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignature_Impl::GetSignatureValue(this, core::mem::transmute_copy(&signaturehashvalue), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn GetCertificateEnumerator(this: *mut core::ffi::c_void, certificateenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn GetCertificateEnumerator(this: *mut core::ffi::c_void, certificateenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignature_Impl::GetCertificateEnumerator(this) { Ok(ok__) => { @@ -7195,10 +5548,7 @@ impl IXpsSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSigningTime(this: *mut core::ffi::c_void, sigdatetimestring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn GetSigningTime(this: *mut core::ffi::c_void, sigdatetimestring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignature_Impl::GetSigningTime(this) { Ok(ok__) => { @@ -7208,10 +5558,7 @@ impl IXpsSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSigningTimeFormat(this: *mut core::ffi::c_void, timeformat: *mut super::Packaging::Opc::OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn GetSigningTimeFormat(this: *mut core::ffi::c_void, timeformat: *mut super::Packaging::Opc::OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignature_Impl::GetSigningTimeFormat(this) { Ok(ok__) => { @@ -7221,10 +5568,7 @@ impl IXpsSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn GetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignature_Impl::GetSignaturePartName(this) { Ok(ok__) => { @@ -7234,10 +5578,7 @@ impl IXpsSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Verify(this: *mut core::ffi::c_void, x509certificate: *const super::super::Security::Cryptography::CERT_CONTEXT, sigstatus: *mut XPS_SIGNATURE_STATUS) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn Verify(this: *mut core::ffi::c_void, x509certificate: *const super::super::Security::Cryptography::CERT_CONTEXT, sigstatus: *mut XPS_SIGNATURE_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignature_Impl::Verify(this, core::mem::transmute_copy(&x509certificate)) { Ok(ok__) => { @@ -7247,10 +5588,7 @@ impl IXpsSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPolicy(this: *mut core::ffi::c_void, policy: *mut XPS_SIGN_POLICY) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn GetPolicy(this: *mut core::ffi::c_void, policy: *mut XPS_SIGN_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignature_Impl::GetPolicy(this) { Ok(ok__) => { @@ -7260,10 +5598,7 @@ impl IXpsSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCustomObjectEnumerator(this: *mut core::ffi::c_void, customobjectenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn GetCustomObjectEnumerator(this: *mut core::ffi::c_void, customobjectenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignature_Impl::GetCustomObjectEnumerator(this) { Ok(ok__) => { @@ -7273,10 +5608,7 @@ impl IXpsSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCustomReferenceEnumerator(this: *mut core::ffi::c_void, customreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn GetCustomReferenceEnumerator(this: *mut core::ffi::c_void, customreferenceenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignature_Impl::GetCustomReferenceEnumerator(this) { Ok(ok__) => { @@ -7286,17 +5618,11 @@ impl IXpsSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignatureXml(this: *mut core::ffi::c_void, signaturexml: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn GetSignatureXml(this: *mut core::ffi::c_void, signaturexml: *mut *mut u8, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignature_Impl::GetSignatureXml(this, core::mem::transmute_copy(&signaturexml), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn SetSignatureXml(this: *mut core::ffi::c_void, signaturexml: *const u8, count: u32) -> windows_core::HRESULT - where - Identity: IXpsSignature_Impl, - { + unsafe extern "system" fn SetSignatureXml(this: *mut core::ffi::c_void, signaturexml: *const u8, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignature_Impl::SetSignatureXml(this, core::mem::transmute_copy(&signaturexml), core::mem::transmute_copy(&count)).into() } @@ -7321,7 +5647,7 @@ impl IXpsSignature_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsSignatureBlock_Impl: Sized { +pub trait IXpsSignatureBlock_Impl: Sized + windows_core::IUnknownImpl { fn GetRequests(&self) -> windows_core::Result; fn GetPartName(&self) -> windows_core::Result; fn GetDocumentIndex(&self) -> windows_core::Result; @@ -7332,14 +5658,8 @@ pub trait IXpsSignatureBlock_Impl: Sized { impl windows_core::RuntimeName for IXpsSignatureBlock {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsSignatureBlock_Vtbl { - pub const fn new() -> IXpsSignatureBlock_Vtbl - where - Identity: IXpsSignatureBlock_Impl, - { - unsafe extern "system" fn GetRequests(this: *mut core::ffi::c_void, requests: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureBlock_Impl, - { + pub const fn new() -> IXpsSignatureBlock_Vtbl { + unsafe extern "system" fn GetRequests(this: *mut core::ffi::c_void, requests: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureBlock_Impl::GetRequests(this) { Ok(ok__) => { @@ -7349,10 +5669,7 @@ impl IXpsSignatureBlock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPartName(this: *mut core::ffi::c_void, partname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureBlock_Impl, - { + unsafe extern "system" fn GetPartName(this: *mut core::ffi::c_void, partname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureBlock_Impl::GetPartName(this) { Ok(ok__) => { @@ -7362,10 +5679,7 @@ impl IXpsSignatureBlock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentIndex(this: *mut core::ffi::c_void, fixeddocumentindex: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsSignatureBlock_Impl, - { + unsafe extern "system" fn GetDocumentIndex(this: *mut core::ffi::c_void, fixeddocumentindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureBlock_Impl::GetDocumentIndex(this) { Ok(ok__) => { @@ -7375,10 +5689,7 @@ impl IXpsSignatureBlock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentName(this: *mut core::ffi::c_void, fixeddocumentname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureBlock_Impl, - { + unsafe extern "system" fn GetDocumentName(this: *mut core::ffi::c_void, fixeddocumentname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureBlock_Impl::GetDocumentName(this) { Ok(ok__) => { @@ -7388,10 +5699,7 @@ impl IXpsSignatureBlock_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRequest(this: *mut core::ffi::c_void, requestid: windows_core::PCWSTR, signaturerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureBlock_Impl, - { + unsafe extern "system" fn CreateRequest(this: *mut core::ffi::c_void, requestid: windows_core::PCWSTR, signaturerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureBlock_Impl::CreateRequest(this, core::mem::transmute(&requestid)) { Ok(ok__) => { @@ -7414,21 +5722,15 @@ impl IXpsSignatureBlock_Vtbl { iid == &::IID } } -pub trait IXpsSignatureBlockCollection_Impl: Sized { +pub trait IXpsSignatureBlockCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn RemoveAt(&self, index: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXpsSignatureBlockCollection {} impl IXpsSignatureBlockCollection_Vtbl { - pub const fn new() -> IXpsSignatureBlockCollection_Vtbl - where - Identity: IXpsSignatureBlockCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsSignatureBlockCollection_Impl, - { + pub const fn new() -> IXpsSignatureBlockCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureBlockCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -7438,10 +5740,7 @@ impl IXpsSignatureBlockCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, signatureblock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureBlockCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, signatureblock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureBlockCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -7451,10 +5750,7 @@ impl IXpsSignatureBlockCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsSignatureBlockCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureBlockCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } @@ -7469,21 +5765,15 @@ impl IXpsSignatureBlockCollection_Vtbl { iid == &::IID } } -pub trait IXpsSignatureCollection_Impl: Sized { +pub trait IXpsSignatureCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn RemoveAt(&self, index: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXpsSignatureCollection {} impl IXpsSignatureCollection_Vtbl { - pub const fn new() -> IXpsSignatureCollection_Vtbl - where - Identity: IXpsSignatureCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsSignatureCollection_Impl, - { + pub const fn new() -> IXpsSignatureCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -7493,10 +5783,7 @@ impl IXpsSignatureCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, signature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, signature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -7506,10 +5793,7 @@ impl IXpsSignatureCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsSignatureCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } @@ -7525,7 +5809,7 @@ impl IXpsSignatureCollection_Vtbl { } } #[cfg(all(feature = "Win32_Security_Cryptography", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsSignatureManager_Impl: Sized { +pub trait IXpsSignatureManager_Impl: Sized + windows_core::IUnknownImpl { fn LoadPackageFile(&self, filename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn LoadPackageStream(&self, stream: Option<&super::super::System::Com::IStream>) -> windows_core::Result<()>; fn Sign(&self, signoptions: Option<&IXpsSigningOptions>, x509certificate: *const super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::Result; @@ -7542,28 +5826,16 @@ pub trait IXpsSignatureManager_Impl: Sized { impl windows_core::RuntimeName for IXpsSignatureManager {} #[cfg(all(feature = "Win32_Security_Cryptography", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsSignatureManager_Vtbl { - pub const fn new() -> IXpsSignatureManager_Vtbl - where - Identity: IXpsSignatureManager_Impl, - { - unsafe extern "system" fn LoadPackageFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + pub const fn new() -> IXpsSignatureManager_Vtbl { + unsafe extern "system" fn LoadPackageFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureManager_Impl::LoadPackageFile(this, core::mem::transmute(&filename)).into() } - unsafe extern "system" fn LoadPackageStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + unsafe extern "system" fn LoadPackageStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureManager_Impl::LoadPackageStream(this, windows_core::from_raw_borrowed(&stream)).into() } - unsafe extern "system" fn Sign(this: *mut core::ffi::c_void, signoptions: *mut core::ffi::c_void, x509certificate: *const super::super::Security::Cryptography::CERT_CONTEXT, signature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + unsafe extern "system" fn Sign(this: *mut core::ffi::c_void, signoptions: *mut core::ffi::c_void, x509certificate: *const super::super::Security::Cryptography::CERT_CONTEXT, signature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureManager_Impl::Sign(this, windows_core::from_raw_borrowed(&signoptions), core::mem::transmute_copy(&x509certificate)) { Ok(ok__) => { @@ -7573,10 +5845,7 @@ impl IXpsSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignatureOriginPartName(this: *mut core::ffi::c_void, signatureoriginpartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + unsafe extern "system" fn GetSignatureOriginPartName(this: *mut core::ffi::c_void, signatureoriginpartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureManager_Impl::GetSignatureOriginPartName(this) { Ok(ok__) => { @@ -7586,17 +5855,11 @@ impl IXpsSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignatureOriginPartName(this: *mut core::ffi::c_void, signatureoriginpartname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + unsafe extern "system" fn SetSignatureOriginPartName(this: *mut core::ffi::c_void, signatureoriginpartname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureManager_Impl::SetSignatureOriginPartName(this, windows_core::from_raw_borrowed(&signatureoriginpartname)).into() } - unsafe extern "system" fn GetSignatures(this: *mut core::ffi::c_void, signatures: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + unsafe extern "system" fn GetSignatures(this: *mut core::ffi::c_void, signatures: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureManager_Impl::GetSignatures(this) { Ok(ok__) => { @@ -7606,10 +5869,7 @@ impl IXpsSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSignatureBlock(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, fixeddocumentindex: u32, signatureblock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + unsafe extern "system" fn AddSignatureBlock(this: *mut core::ffi::c_void, partname: *mut core::ffi::c_void, fixeddocumentindex: u32, signatureblock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureManager_Impl::AddSignatureBlock(this, windows_core::from_raw_borrowed(&partname), core::mem::transmute_copy(&fixeddocumentindex)) { Ok(ok__) => { @@ -7619,10 +5879,7 @@ impl IXpsSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignatureBlocks(this: *mut core::ffi::c_void, signatureblocks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + unsafe extern "system" fn GetSignatureBlocks(this: *mut core::ffi::c_void, signatureblocks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureManager_Impl::GetSignatureBlocks(this) { Ok(ok__) => { @@ -7632,10 +5889,7 @@ impl IXpsSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSigningOptions(this: *mut core::ffi::c_void, signingoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + unsafe extern "system" fn CreateSigningOptions(this: *mut core::ffi::c_void, signingoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureManager_Impl::CreateSigningOptions(this) { Ok(ok__) => { @@ -7645,17 +5899,11 @@ impl IXpsSignatureManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SavePackageToFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + unsafe extern "system" fn SavePackageToFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureManager_Impl::SavePackageToFile(this, core::mem::transmute(&filename), core::mem::transmute_copy(&securityattributes), core::mem::transmute_copy(&flagsandattributes)).into() } - unsafe extern "system" fn SavePackageToStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureManager_Impl, - { + unsafe extern "system" fn SavePackageToStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureManager_Impl::SavePackageToStream(this, windows_core::from_raw_borrowed(&stream)).into() } @@ -7679,7 +5927,7 @@ impl IXpsSignatureManager_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsSignatureRequest_Impl: Sized { +pub trait IXpsSignatureRequest_Impl: Sized + windows_core::IUnknownImpl { fn GetIntent(&self) -> windows_core::Result; fn SetIntent(&self, intent: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetRequestedSigner(&self) -> windows_core::Result; @@ -7697,14 +5945,8 @@ pub trait IXpsSignatureRequest_Impl: Sized { impl windows_core::RuntimeName for IXpsSignatureRequest {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsSignatureRequest_Vtbl { - pub const fn new() -> IXpsSignatureRequest_Vtbl - where - Identity: IXpsSignatureRequest_Impl, - { - unsafe extern "system" fn GetIntent(this: *mut core::ffi::c_void, intent: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + pub const fn new() -> IXpsSignatureRequest_Vtbl { + unsafe extern "system" fn GetIntent(this: *mut core::ffi::c_void, intent: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureRequest_Impl::GetIntent(this) { Ok(ok__) => { @@ -7714,17 +5956,11 @@ impl IXpsSignatureRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIntent(this: *mut core::ffi::c_void, intent: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn SetIntent(this: *mut core::ffi::c_void, intent: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureRequest_Impl::SetIntent(this, core::mem::transmute(&intent)).into() } - unsafe extern "system" fn GetRequestedSigner(this: *mut core::ffi::c_void, signername: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn GetRequestedSigner(this: *mut core::ffi::c_void, signername: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureRequest_Impl::GetRequestedSigner(this) { Ok(ok__) => { @@ -7734,17 +5970,11 @@ impl IXpsSignatureRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRequestedSigner(this: *mut core::ffi::c_void, signername: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn SetRequestedSigner(this: *mut core::ffi::c_void, signername: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureRequest_Impl::SetRequestedSigner(this, core::mem::transmute(&signername)).into() } - unsafe extern "system" fn GetRequestSignByDate(this: *mut core::ffi::c_void, datestring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn GetRequestSignByDate(this: *mut core::ffi::c_void, datestring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureRequest_Impl::GetRequestSignByDate(this) { Ok(ok__) => { @@ -7754,17 +5984,11 @@ impl IXpsSignatureRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRequestSignByDate(this: *mut core::ffi::c_void, datestring: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn SetRequestSignByDate(this: *mut core::ffi::c_void, datestring: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureRequest_Impl::SetRequestSignByDate(this, core::mem::transmute(&datestring)).into() } - unsafe extern "system" fn GetSigningLocale(this: *mut core::ffi::c_void, place: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn GetSigningLocale(this: *mut core::ffi::c_void, place: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureRequest_Impl::GetSigningLocale(this) { Ok(ok__) => { @@ -7774,31 +5998,19 @@ impl IXpsSignatureRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSigningLocale(this: *mut core::ffi::c_void, place: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn SetSigningLocale(this: *mut core::ffi::c_void, place: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureRequest_Impl::SetSigningLocale(this, core::mem::transmute(&place)).into() } - unsafe extern "system" fn GetSpotLocation(this: *mut core::ffi::c_void, pageindex: *mut i32, pagepartname: *mut *mut core::ffi::c_void, x: *mut f32, y: *mut f32) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn GetSpotLocation(this: *mut core::ffi::c_void, pageindex: *mut i32, pagepartname: *mut *mut core::ffi::c_void, x: *mut f32, y: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureRequest_Impl::GetSpotLocation(this, core::mem::transmute_copy(&pageindex), core::mem::transmute_copy(&pagepartname), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn SetSpotLocation(this: *mut core::ffi::c_void, pageindex: i32, x: f32, y: f32) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn SetSpotLocation(this: *mut core::ffi::c_void, pageindex: i32, x: f32, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureRequest_Impl::SetSpotLocation(this, core::mem::transmute_copy(&pageindex), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn GetRequestId(this: *mut core::ffi::c_void, requestid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn GetRequestId(this: *mut core::ffi::c_void, requestid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureRequest_Impl::GetRequestId(this) { Ok(ok__) => { @@ -7808,10 +6020,7 @@ impl IXpsSignatureRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSignature(this: *mut core::ffi::c_void, signature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequest_Impl, - { + unsafe extern "system" fn GetSignature(this: *mut core::ffi::c_void, signature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureRequest_Impl::GetSignature(this) { Ok(ok__) => { @@ -7841,21 +6050,15 @@ impl IXpsSignatureRequest_Vtbl { iid == &::IID } } -pub trait IXpsSignatureRequestCollection_Impl: Sized { +pub trait IXpsSignatureRequestCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32) -> windows_core::Result; fn RemoveAt(&self, index: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXpsSignatureRequestCollection {} impl IXpsSignatureRequestCollection_Vtbl { - pub const fn new() -> IXpsSignatureRequestCollection_Vtbl - where - Identity: IXpsSignatureRequestCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequestCollection_Impl, - { + pub const fn new() -> IXpsSignatureRequestCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureRequestCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -7865,10 +6068,7 @@ impl IXpsSignatureRequestCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, signaturerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequestCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, signaturerequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSignatureRequestCollection_Impl::GetAt(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -7878,10 +6078,7 @@ impl IXpsSignatureRequestCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IXpsSignatureRequestCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSignatureRequestCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } @@ -7897,7 +6094,7 @@ impl IXpsSignatureRequestCollection_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] -pub trait IXpsSigningOptions_Impl: Sized { +pub trait IXpsSigningOptions_Impl: Sized + windows_core::IUnknownImpl { fn GetSignatureId(&self) -> windows_core::Result; fn SetSignatureId(&self, signatureid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetSignatureMethod(&self) -> windows_core::Result; @@ -7920,14 +6117,8 @@ pub trait IXpsSigningOptions_Impl: Sized { impl windows_core::RuntimeName for IXpsSigningOptions {} #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsSigningOptions_Vtbl { - pub const fn new() -> IXpsSigningOptions_Vtbl - where - Identity: IXpsSigningOptions_Impl, - { - unsafe extern "system" fn GetSignatureId(this: *mut core::ffi::c_void, signatureid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + pub const fn new() -> IXpsSigningOptions_Vtbl { + unsafe extern "system" fn GetSignatureId(this: *mut core::ffi::c_void, signatureid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSigningOptions_Impl::GetSignatureId(this) { Ok(ok__) => { @@ -7937,17 +6128,11 @@ impl IXpsSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignatureId(this: *mut core::ffi::c_void, signatureid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn SetSignatureId(this: *mut core::ffi::c_void, signatureid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSigningOptions_Impl::SetSignatureId(this, core::mem::transmute(&signatureid)).into() } - unsafe extern "system" fn GetSignatureMethod(this: *mut core::ffi::c_void, signaturemethod: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn GetSignatureMethod(this: *mut core::ffi::c_void, signaturemethod: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSigningOptions_Impl::GetSignatureMethod(this) { Ok(ok__) => { @@ -7957,17 +6142,11 @@ impl IXpsSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignatureMethod(this: *mut core::ffi::c_void, signaturemethod: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn SetSignatureMethod(this: *mut core::ffi::c_void, signaturemethod: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSigningOptions_Impl::SetSignatureMethod(this, core::mem::transmute(&signaturemethod)).into() } - unsafe extern "system" fn GetDigestMethod(this: *mut core::ffi::c_void, digestmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn GetDigestMethod(this: *mut core::ffi::c_void, digestmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSigningOptions_Impl::GetDigestMethod(this) { Ok(ok__) => { @@ -7977,17 +6156,11 @@ impl IXpsSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDigestMethod(this: *mut core::ffi::c_void, digestmethod: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn SetDigestMethod(this: *mut core::ffi::c_void, digestmethod: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSigningOptions_Impl::SetDigestMethod(this, core::mem::transmute(&digestmethod)).into() } - unsafe extern "system" fn GetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn GetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSigningOptions_Impl::GetSignaturePartName(this) { Ok(ok__) => { @@ -7997,17 +6170,11 @@ impl IXpsSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn SetSignaturePartName(this: *mut core::ffi::c_void, signaturepartname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSigningOptions_Impl::SetSignaturePartName(this, windows_core::from_raw_borrowed(&signaturepartname)).into() } - unsafe extern "system" fn GetPolicy(this: *mut core::ffi::c_void, policy: *mut XPS_SIGN_POLICY) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn GetPolicy(this: *mut core::ffi::c_void, policy: *mut XPS_SIGN_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSigningOptions_Impl::GetPolicy(this) { Ok(ok__) => { @@ -8017,17 +6184,11 @@ impl IXpsSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPolicy(this: *mut core::ffi::c_void, policy: XPS_SIGN_POLICY) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn SetPolicy(this: *mut core::ffi::c_void, policy: XPS_SIGN_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSigningOptions_Impl::SetPolicy(this, core::mem::transmute_copy(&policy)).into() } - unsafe extern "system" fn GetSigningTimeFormat(this: *mut core::ffi::c_void, timeformat: *mut super::Packaging::Opc::OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn GetSigningTimeFormat(this: *mut core::ffi::c_void, timeformat: *mut super::Packaging::Opc::OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSigningOptions_Impl::GetSigningTimeFormat(this) { Ok(ok__) => { @@ -8037,17 +6198,11 @@ impl IXpsSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSigningTimeFormat(this: *mut core::ffi::c_void, timeformat: super::Packaging::Opc::OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn SetSigningTimeFormat(this: *mut core::ffi::c_void, timeformat: super::Packaging::Opc::OPC_SIGNATURE_TIME_FORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSigningOptions_Impl::SetSigningTimeFormat(this, core::mem::transmute_copy(&timeformat)).into() } - unsafe extern "system" fn GetCustomObjects(this: *mut core::ffi::c_void, customobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn GetCustomObjects(this: *mut core::ffi::c_void, customobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSigningOptions_Impl::GetCustomObjects(this) { Ok(ok__) => { @@ -8057,10 +6212,7 @@ impl IXpsSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCustomReferences(this: *mut core::ffi::c_void, customreferenceset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn GetCustomReferences(this: *mut core::ffi::c_void, customreferenceset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSigningOptions_Impl::GetCustomReferences(this) { Ok(ok__) => { @@ -8070,10 +6222,7 @@ impl IXpsSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateSet(this: *mut core::ffi::c_void, certificateset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn GetCertificateSet(this: *mut core::ffi::c_void, certificateset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSigningOptions_Impl::GetCertificateSet(this) { Ok(ok__) => { @@ -8083,10 +6232,7 @@ impl IXpsSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, flags: *mut XPS_SIGN_FLAGS) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, flags: *mut XPS_SIGN_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsSigningOptions_Impl::GetFlags(this) { Ok(ok__) => { @@ -8096,10 +6242,7 @@ impl IXpsSigningOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: XPS_SIGN_FLAGS) -> windows_core::HRESULT - where - Identity: IXpsSigningOptions_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: XPS_SIGN_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsSigningOptions_Impl::SetFlags(this, core::mem::transmute_copy(&flags)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs b/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs index 4e3b8a9877..70fe21cbf6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs @@ -9,14 +9,8 @@ pub trait IABContainer_Impl: Sized + IMAPIContainer_Impl { impl windows_core::RuntimeName for IABContainer {} #[cfg(feature = "Win32_System_Com")] impl IABContainer_Vtbl { - pub const fn new() -> IABContainer_Vtbl - where - Identity: IABContainer_Impl, - { - unsafe extern "system" fn CreateEntry(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, ulcreateflags: u32, lppmapipropentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IABContainer_Impl, - { + pub const fn new() -> IABContainer_Vtbl { + unsafe extern "system" fn CreateEntry(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, ulcreateflags: u32, lppmapipropentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IABContainer_Impl::CreateEntry(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&ulcreateflags)) { Ok(ok__) => { @@ -26,24 +20,15 @@ impl IABContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyEntries(this: *mut core::ffi::c_void, lpentries: *const SBinaryArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IABContainer_Impl, - { + unsafe extern "system" fn CopyEntries(this: *mut core::ffi::c_void, lpentries: *const SBinaryArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IABContainer_Impl::CopyEntries(this, core::mem::transmute_copy(&lpentries), core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn DeleteEntries(this: *mut core::ffi::c_void, lpentries: *const SBinaryArray, ulflags: u32) -> windows_core::HRESULT - where - Identity: IABContainer_Impl, - { + unsafe extern "system" fn DeleteEntries(this: *mut core::ffi::c_void, lpentries: *const SBinaryArray, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IABContainer_Impl::DeleteEntries(this, core::mem::transmute_copy(&lpentries), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn ResolveNames(this: *mut core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut FlagList) -> windows_core::HRESULT - where - Identity: IABContainer_Impl, - { + unsafe extern "system" fn ResolveNames(this: *mut core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut FlagList) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IABContainer_Impl::ResolveNames(this, core::mem::transmute_copy(&lpproptagarray), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpadrlist)) { Ok(ok__) => { @@ -90,133 +75,76 @@ pub trait IAddrBook_Impl: Sized + IMAPIProp_Impl { impl windows_core::RuntimeName for IAddrBook {} #[cfg(feature = "Win32_System_Com")] impl IAddrBook_Vtbl { - pub const fn new() -> IAddrBook_Vtbl - where - Identity: IAddrBook_Impl, - { - unsafe extern "system" fn OpenEntry(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *mut ENTRYID, lpinterface: *mut windows_core::GUID, ulflags: u32, lpulobjtype: *mut u32, lppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + pub const fn new() -> IAddrBook_Vtbl { + unsafe extern "system" fn OpenEntry(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *mut ENTRYID, lpinterface: *mut windows_core::GUID, ulflags: u32, lpulobjtype: *mut u32, lppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::OpenEntry(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpulobjtype), core::mem::transmute_copy(&lppunk)).into() } - unsafe extern "system" fn CompareEntryIDs(this: *mut core::ffi::c_void, cbentryid1: u32, lpentryid1: *mut ENTRYID, cbentryid2: u32, lpentryid2: *mut ENTRYID, ulflags: u32, lpulresult: *mut u32) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn CompareEntryIDs(this: *mut core::ffi::c_void, cbentryid1: u32, lpentryid1: *mut ENTRYID, cbentryid2: u32, lpentryid2: *mut ENTRYID, ulflags: u32, lpulresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::CompareEntryIDs(this, core::mem::transmute_copy(&cbentryid1), core::mem::transmute_copy(&lpentryid1), core::mem::transmute_copy(&cbentryid2), core::mem::transmute_copy(&lpentryid2), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpulresult)).into() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *mut ENTRYID, uleventmask: u32, lpadvisesink: *mut core::ffi::c_void, lpulconnection: *mut u32) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *mut ENTRYID, uleventmask: u32, lpadvisesink: *mut core::ffi::c_void, lpulconnection: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::Advise(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&uleventmask), windows_core::from_raw_borrowed(&lpadvisesink), core::mem::transmute_copy(&lpulconnection)).into() } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, ulconnection: u32) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, ulconnection: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::Unadvise(this, core::mem::transmute_copy(&ulconnection)).into() } - unsafe extern "system" fn CreateOneOff(this: *mut core::ffi::c_void, lpszname: *mut i8, lpszadrtype: *mut i8, lpszaddress: *mut i8, ulflags: u32, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn CreateOneOff(this: *mut core::ffi::c_void, lpszname: *mut i8, lpszadrtype: *mut i8, lpszaddress: *mut i8, ulflags: u32, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::CreateOneOff(this, core::mem::transmute_copy(&lpszname), core::mem::transmute_copy(&lpszadrtype), core::mem::transmute_copy(&lpszaddress), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpcbentryid), core::mem::transmute_copy(&lppentryid)).into() } - unsafe extern "system" fn NewEntry(this: *mut core::ffi::c_void, uluiparam: u32, ulflags: u32, cbeidcontainer: u32, lpeidcontainer: *mut ENTRYID, cbeidnewentrytpl: u32, lpeidnewentrytpl: *mut ENTRYID, lpcbeidnewentry: *mut u32, lppeidnewentry: *mut *mut ENTRYID) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn NewEntry(this: *mut core::ffi::c_void, uluiparam: u32, ulflags: u32, cbeidcontainer: u32, lpeidcontainer: *mut ENTRYID, cbeidnewentrytpl: u32, lpeidnewentrytpl: *mut ENTRYID, lpcbeidnewentry: *mut u32, lppeidnewentry: *mut *mut ENTRYID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::NewEntry(this, core::mem::transmute_copy(&uluiparam), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&cbeidcontainer), core::mem::transmute_copy(&lpeidcontainer), core::mem::transmute_copy(&cbeidnewentrytpl), core::mem::transmute_copy(&lpeidnewentrytpl), core::mem::transmute_copy(&lpcbeidnewentry), core::mem::transmute_copy(&lppeidnewentry)).into() } - unsafe extern "system" fn ResolveName(this: *mut core::ffi::c_void, uluiparam: usize, ulflags: u32, lpsznewentrytitle: *mut i8, lpadrlist: *mut ADRLIST) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn ResolveName(this: *mut core::ffi::c_void, uluiparam: usize, ulflags: u32, lpsznewentrytitle: *mut i8, lpadrlist: *mut ADRLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::ResolveName(this, core::mem::transmute_copy(&uluiparam), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpsznewentrytitle), core::mem::transmute_copy(&lpadrlist)).into() } - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, lpuluiparam: *mut u32, lpadrparms: *mut ADRPARM, lppadrlist: *mut *mut ADRLIST) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, lpuluiparam: *mut u32, lpadrparms: *mut ADRPARM, lppadrlist: *mut *mut ADRLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::Address(this, core::mem::transmute_copy(&lpuluiparam), core::mem::transmute_copy(&lpadrparms), core::mem::transmute_copy(&lppadrlist)).into() } - unsafe extern "system" fn Details(this: *mut core::ffi::c_void, lpuluiparam: *mut usize, lpfndismiss: LPFNDISMISS, lpvdismisscontext: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *mut ENTRYID, lpfbuttoncallback: LPFNBUTTON, lpvbuttoncontext: *mut core::ffi::c_void, lpszbuttontext: *mut i8, ulflags: u32) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn Details(this: *mut core::ffi::c_void, lpuluiparam: *mut usize, lpfndismiss: LPFNDISMISS, lpvdismisscontext: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *mut ENTRYID, lpfbuttoncallback: LPFNBUTTON, lpvbuttoncontext: *mut core::ffi::c_void, lpszbuttontext: *mut i8, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::Details(this, core::mem::transmute_copy(&lpuluiparam), core::mem::transmute_copy(&lpfndismiss), core::mem::transmute_copy(&lpvdismisscontext), core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&lpfbuttoncallback), core::mem::transmute_copy(&lpvbuttoncontext), core::mem::transmute_copy(&lpszbuttontext), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn RecipOptions(this: *mut core::ffi::c_void, uluiparam: u32, ulflags: u32, lprecip: *mut ADRENTRY) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn RecipOptions(this: *mut core::ffi::c_void, uluiparam: u32, ulflags: u32, lprecip: *mut ADRENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::RecipOptions(this, core::mem::transmute_copy(&uluiparam), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lprecip)).into() } - unsafe extern "system" fn QueryDefaultRecipOpt(this: *mut core::ffi::c_void, lpszadrtype: *mut i8, ulflags: u32, lpcvalues: *mut u32, lppoptions: *mut *mut SPropValue) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn QueryDefaultRecipOpt(this: *mut core::ffi::c_void, lpszadrtype: *mut i8, ulflags: u32, lpcvalues: *mut u32, lppoptions: *mut *mut SPropValue) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::QueryDefaultRecipOpt(this, core::mem::transmute_copy(&lpszadrtype), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpcvalues), core::mem::transmute_copy(&lppoptions)).into() } - unsafe extern "system" fn GetPAB(this: *mut core::ffi::c_void, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn GetPAB(this: *mut core::ffi::c_void, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::GetPAB(this, core::mem::transmute_copy(&lpcbentryid), core::mem::transmute_copy(&lppentryid)).into() } - unsafe extern "system" fn SetPAB(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *mut ENTRYID) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn SetPAB(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *mut ENTRYID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::SetPAB(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid)).into() } - unsafe extern "system" fn GetDefaultDir(this: *mut core::ffi::c_void, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn GetDefaultDir(this: *mut core::ffi::c_void, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::GetDefaultDir(this, core::mem::transmute_copy(&lpcbentryid), core::mem::transmute_copy(&lppentryid)).into() } - unsafe extern "system" fn SetDefaultDir(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *mut ENTRYID) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn SetDefaultDir(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *mut ENTRYID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::SetDefaultDir(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid)).into() } - unsafe extern "system" fn GetSearchPath(this: *mut core::ffi::c_void, ulflags: u32, lppsearchpath: *mut *mut SRowSet) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn GetSearchPath(this: *mut core::ffi::c_void, ulflags: u32, lppsearchpath: *mut *mut SRowSet) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::GetSearchPath(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lppsearchpath)).into() } - unsafe extern "system" fn SetSearchPath(this: *mut core::ffi::c_void, ulflags: u32, lpsearchpath: *mut SRowSet) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn SetSearchPath(this: *mut core::ffi::c_void, ulflags: u32, lpsearchpath: *mut SRowSet) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::SetSearchPath(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpsearchpath)).into() } - unsafe extern "system" fn PrepareRecips(this: *mut core::ffi::c_void, ulflags: u32, lpproptagarray: *mut SPropTagArray, lpreciplist: *mut ADRLIST) -> windows_core::HRESULT - where - Identity: IAddrBook_Impl, - { + unsafe extern "system" fn PrepareRecips(this: *mut core::ffi::c_void, ulflags: u32, lpproptagarray: *mut SPropTagArray, lpreciplist: *mut ADRLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrBook_Impl::PrepareRecips(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpproptagarray), core::mem::transmute_copy(&lpreciplist)).into() } @@ -252,10 +180,7 @@ pub trait IAttach_Impl: Sized + IMAPIProp_Impl {} impl windows_core::RuntimeName for IAttach {} #[cfg(feature = "Win32_System_Com")] impl IAttach_Vtbl { - pub const fn new() -> IAttach_Vtbl - where - Identity: IAttach_Impl, - { + pub const fn new() -> IAttach_Vtbl { Self { base__: IMAPIProp_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -273,14 +198,8 @@ pub trait IDistList_Impl: Sized + IMAPIContainer_Impl { impl windows_core::RuntimeName for IDistList {} #[cfg(feature = "Win32_System_Com")] impl IDistList_Vtbl { - pub const fn new() -> IDistList_Vtbl - where - Identity: IDistList_Impl, - { - unsafe extern "system" fn CreateEntry(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, ulcreateflags: u32, lppmapipropentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDistList_Impl, - { + pub const fn new() -> IDistList_Vtbl { + unsafe extern "system" fn CreateEntry(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, ulcreateflags: u32, lppmapipropentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDistList_Impl::CreateEntry(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&ulcreateflags)) { Ok(ok__) => { @@ -290,24 +209,15 @@ impl IDistList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyEntries(this: *mut core::ffi::c_void, lpentries: *const SBinaryArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IDistList_Impl, - { + unsafe extern "system" fn CopyEntries(this: *mut core::ffi::c_void, lpentries: *const SBinaryArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDistList_Impl::CopyEntries(this, core::mem::transmute_copy(&lpentries), core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn DeleteEntries(this: *mut core::ffi::c_void, lpentries: *const SBinaryArray, ulflags: u32) -> windows_core::HRESULT - where - Identity: IDistList_Impl, - { + unsafe extern "system" fn DeleteEntries(this: *mut core::ffi::c_void, lpentries: *const SBinaryArray, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDistList_Impl::DeleteEntries(this, core::mem::transmute_copy(&lpentries), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn ResolveNames(this: *mut core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut FlagList) -> windows_core::HRESULT - where - Identity: IDistList_Impl, - { + unsafe extern "system" fn ResolveNames(this: *mut core::ffi::c_void, lpproptagarray: *const SPropTagArray, ulflags: u32, lpadrlist: *const ADRLIST, lpflaglist: *mut FlagList) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDistList_Impl::ResolveNames(this, core::mem::transmute_copy(&lpproptagarray), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpadrlist)) { Ok(ok__) => { @@ -330,21 +240,15 @@ impl IDistList_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMAPIAdviseSink_Impl: Sized { +pub trait IMAPIAdviseSink_Impl: Sized + windows_core::IUnknownImpl { fn OnNotify(&self, cnotif: u32, lpnotifications: *mut NOTIFICATION) -> u32; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IMAPIAdviseSink {} #[cfg(feature = "Win32_System_Com")] impl IMAPIAdviseSink_Vtbl { - pub const fn new() -> IMAPIAdviseSink_Vtbl - where - Identity: IMAPIAdviseSink_Impl, - { - unsafe extern "system" fn OnNotify(this: *mut core::ffi::c_void, cnotif: u32, lpnotifications: *mut NOTIFICATION) -> u32 - where - Identity: IMAPIAdviseSink_Impl, - { + pub const fn new() -> IMAPIAdviseSink_Vtbl { + unsafe extern "system" fn OnNotify(this: *mut core::ffi::c_void, cnotif: u32, lpnotifications: *mut NOTIFICATION) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIAdviseSink_Impl::OnNotify(this, core::mem::transmute_copy(&cnotif), core::mem::transmute_copy(&lpnotifications)) } @@ -366,14 +270,8 @@ pub trait IMAPIContainer_Impl: Sized + IMAPIProp_Impl { impl windows_core::RuntimeName for IMAPIContainer {} #[cfg(feature = "Win32_System_Com")] impl IMAPIContainer_Vtbl { - pub const fn new() -> IMAPIContainer_Vtbl - where - Identity: IMAPIContainer_Impl, - { - unsafe extern "system" fn GetContentsTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMAPIContainer_Impl, - { + pub const fn new() -> IMAPIContainer_Vtbl { + unsafe extern "system" fn GetContentsTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMAPIContainer_Impl::GetContentsTable(this, core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -383,10 +281,7 @@ impl IMAPIContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHierarchyTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMAPIContainer_Impl, - { + unsafe extern "system" fn GetHierarchyTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMAPIContainer_Impl::GetHierarchyTable(this, core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -396,24 +291,15 @@ impl IMAPIContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenEntry(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, lpinterface: *mut windows_core::GUID, ulflags: u32, lpulobjtype: *mut u32, lppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMAPIContainer_Impl, - { + unsafe extern "system" fn OpenEntry(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, lpinterface: *mut windows_core::GUID, ulflags: u32, lpulobjtype: *mut u32, lppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIContainer_Impl::OpenEntry(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpulobjtype), core::mem::transmute_copy(&lppunk)).into() } - unsafe extern "system" fn SetSearchCriteria(this: *mut core::ffi::c_void, lprestriction: *const SRestriction, lpcontainerlist: *const SBinaryArray, ulsearchflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIContainer_Impl, - { + unsafe extern "system" fn SetSearchCriteria(this: *mut core::ffi::c_void, lprestriction: *const SRestriction, lpcontainerlist: *const SBinaryArray, ulsearchflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIContainer_Impl::SetSearchCriteria(this, core::mem::transmute_copy(&lprestriction), core::mem::transmute_copy(&lpcontainerlist), core::mem::transmute_copy(&ulsearchflags)).into() } - unsafe extern "system" fn GetSearchCriteria(this: *mut core::ffi::c_void, ulflags: u32, lpprestriction: *mut *mut SRestriction, lppcontainerlist: *mut *mut SBinaryArray, lpulsearchstate: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPIContainer_Impl, - { + unsafe extern "system" fn GetSearchCriteria(this: *mut core::ffi::c_void, ulflags: u32, lpprestriction: *mut *mut SRestriction, lppcontainerlist: *mut *mut SBinaryArray, lpulsearchstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIContainer_Impl::GetSearchCriteria(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpprestriction), core::mem::transmute_copy(&lppcontainerlist), core::mem::transmute_copy(&lpulsearchstate)).into() } @@ -430,21 +316,15 @@ impl IMAPIContainer_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMAPIControl_Impl: Sized { +pub trait IMAPIControl_Impl: Sized + windows_core::IUnknownImpl { fn GetLastError(&self, hresult: windows_core::HRESULT, ulflags: u32) -> windows_core::Result<*mut MAPIERROR>; fn Activate(&self, ulflags: u32, uluiparam: usize) -> windows_core::Result<()>; fn GetState(&self, ulflags: u32, lpulstate: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMAPIControl {} impl IMAPIControl_Vtbl { - pub const fn new() -> IMAPIControl_Vtbl - where - Identity: IMAPIControl_Impl, - { - unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::HRESULT - where - Identity: IMAPIControl_Impl, - { + pub const fn new() -> IMAPIControl_Vtbl { + unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMAPIControl_Impl::GetLastError(this, core::mem::transmute_copy(&hresult), core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -454,17 +334,11 @@ impl IMAPIControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, ulflags: u32, uluiparam: usize) -> windows_core::HRESULT - where - Identity: IMAPIControl_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, ulflags: u32, uluiparam: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIControl_Impl::Activate(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&uluiparam)).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, ulflags: u32, lpulstate: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPIControl_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, ulflags: u32, lpulstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIControl_Impl::GetState(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpulstate)).into() } @@ -497,35 +371,20 @@ pub trait IMAPIFolder_Impl: Sized + IMAPIContainer_Impl { impl windows_core::RuntimeName for IMAPIFolder {} #[cfg(feature = "Win32_System_Com")] impl IMAPIFolder_Vtbl { - pub const fn new() -> IMAPIFolder_Vtbl - where - Identity: IMAPIFolder_Impl, - { - unsafe extern "system" fn CreateMessage(this: *mut core::ffi::c_void, lpinterface: *mut windows_core::GUID, ulflags: u32, lppmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + pub const fn new() -> IMAPIFolder_Vtbl { + unsafe extern "system" fn CreateMessage(this: *mut core::ffi::c_void, lpinterface: *mut windows_core::GUID, ulflags: u32, lppmessage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIFolder_Impl::CreateMessage(this, core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lppmessage)).into() } - unsafe extern "system" fn CopyMessages(this: *mut core::ffi::c_void, lpmsglist: *const SBinaryArray, lpinterface: *const windows_core::GUID, lpdestfolder: *const core::ffi::c_void, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + unsafe extern "system" fn CopyMessages(this: *mut core::ffi::c_void, lpmsglist: *const SBinaryArray, lpinterface: *const windows_core::GUID, lpdestfolder: *const core::ffi::c_void, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIFolder_Impl::CopyMessages(this, core::mem::transmute_copy(&lpmsglist), core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&lpdestfolder), core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn DeleteMessages(this: *mut core::ffi::c_void, lpmsglist: *const SBinaryArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + unsafe extern "system" fn DeleteMessages(this: *mut core::ffi::c_void, lpmsglist: *const SBinaryArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIFolder_Impl::DeleteMessages(this, core::mem::transmute_copy(&lpmsglist), core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn CreateFolder(this: *mut core::ffi::c_void, ulfoldertype: u32, lpszfoldername: *const i8, lpszfoldercomment: *const i8, lpinterface: *const windows_core::GUID, ulflags: u32, lppfolder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + unsafe extern "system" fn CreateFolder(this: *mut core::ffi::c_void, ulfoldertype: u32, lpszfoldername: *const i8, lpszfoldercomment: *const i8, lpinterface: *const windows_core::GUID, ulflags: u32, lppfolder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMAPIFolder_Impl::CreateFolder(this, core::mem::transmute_copy(&ulfoldertype), core::mem::transmute_copy(&lpszfoldername), core::mem::transmute_copy(&lpszfoldercomment), core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -535,31 +394,19 @@ impl IMAPIFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyFolder(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, lpinterface: *const windows_core::GUID, lpdestfolder: *const core::ffi::c_void, lpsznewfoldername: *const i8, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + unsafe extern "system" fn CopyFolder(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, lpinterface: *const windows_core::GUID, lpdestfolder: *const core::ffi::c_void, lpsznewfoldername: *const i8, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIFolder_Impl::CopyFolder(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&lpdestfolder), core::mem::transmute_copy(&lpsznewfoldername), core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn DeleteFolder(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + unsafe extern "system" fn DeleteFolder(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIFolder_Impl::DeleteFolder(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn SetReadFlags(this: *mut core::ffi::c_void, lpmsglist: *const SBinaryArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + unsafe extern "system" fn SetReadFlags(this: *mut core::ffi::c_void, lpmsglist: *const SBinaryArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIFolder_Impl::SetReadFlags(this, core::mem::transmute_copy(&lpmsglist), core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn GetMessageStatus(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, ulflags: u32, lpulmessagestatus: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + unsafe extern "system" fn GetMessageStatus(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, ulflags: u32, lpulmessagestatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMAPIFolder_Impl::GetMessageStatus(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -569,10 +416,7 @@ impl IMAPIFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMessageStatus(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, ulnewstatus: u32, ulnewstatusmask: u32, lpuloldstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + unsafe extern "system" fn SetMessageStatus(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, ulnewstatus: u32, ulnewstatusmask: u32, lpuloldstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMAPIFolder_Impl::SetMessageStatus(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&ulnewstatus), core::mem::transmute_copy(&ulnewstatusmask)) { Ok(ok__) => { @@ -582,17 +426,11 @@ impl IMAPIFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveContentsSort(this: *mut core::ffi::c_void, lpsortcriteria: *const SSortOrderSet, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + unsafe extern "system" fn SaveContentsSort(this: *mut core::ffi::c_void, lpsortcriteria: *const SSortOrderSet, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIFolder_Impl::SaveContentsSort(this, core::mem::transmute_copy(&lpsortcriteria), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn EmptyFolder(this: *mut core::ffi::c_void, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIFolder_Impl, - { + unsafe extern "system" fn EmptyFolder(this: *mut core::ffi::c_void, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIFolder_Impl::EmptyFolder(this, core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&ulflags)).into() } @@ -615,7 +453,7 @@ impl IMAPIFolder_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMAPIProgress_Impl: Sized { +pub trait IMAPIProgress_Impl: Sized + windows_core::IUnknownImpl { fn Progress(&self, ulvalue: u32, ulcount: u32, ultotal: u32) -> windows_core::Result<()>; fn GetFlags(&self, lpulflags: *mut u32) -> windows_core::Result<()>; fn GetMax(&self, lpulmax: *mut u32) -> windows_core::Result<()>; @@ -624,42 +462,24 @@ pub trait IMAPIProgress_Impl: Sized { } impl windows_core::RuntimeName for IMAPIProgress {} impl IMAPIProgress_Vtbl { - pub const fn new() -> IMAPIProgress_Vtbl - where - Identity: IMAPIProgress_Impl, - { - unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, ulvalue: u32, ulcount: u32, ultotal: u32) -> windows_core::HRESULT - where - Identity: IMAPIProgress_Impl, - { + pub const fn new() -> IMAPIProgress_Vtbl { + unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, ulvalue: u32, ulcount: u32, ultotal: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProgress_Impl::Progress(this, core::mem::transmute_copy(&ulvalue), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&ultotal)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, lpulflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPIProgress_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, lpulflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProgress_Impl::GetFlags(this, core::mem::transmute_copy(&lpulflags)).into() } - unsafe extern "system" fn GetMax(this: *mut core::ffi::c_void, lpulmax: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPIProgress_Impl, - { + unsafe extern "system" fn GetMax(this: *mut core::ffi::c_void, lpulmax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProgress_Impl::GetMax(this, core::mem::transmute_copy(&lpulmax)).into() } - unsafe extern "system" fn GetMin(this: *mut core::ffi::c_void, lpulmin: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPIProgress_Impl, - { + unsafe extern "system" fn GetMin(this: *mut core::ffi::c_void, lpulmin: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProgress_Impl::GetMin(this, core::mem::transmute_copy(&lpulmin)).into() } - unsafe extern "system" fn SetLimits(this: *mut core::ffi::c_void, lpulmin: *mut u32, lpulmax: *mut u32, lpulflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPIProgress_Impl, - { + unsafe extern "system" fn SetLimits(this: *mut core::ffi::c_void, lpulmin: *mut u32, lpulmax: *mut u32, lpulflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProgress_Impl::SetLimits(this, core::mem::transmute_copy(&lpulmin), core::mem::transmute_copy(&lpulmax), core::mem::transmute_copy(&lpulflags)).into() } @@ -677,7 +497,7 @@ impl IMAPIProgress_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMAPIProp_Impl: Sized { +pub trait IMAPIProp_Impl: Sized + windows_core::IUnknownImpl { fn GetLastError(&self, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::Result<()>; fn SaveChanges(&self, ulflags: u32) -> windows_core::Result<()>; fn GetProps(&self, lpproptagarray: *mut SPropTagArray, ulflags: u32, lpcvalues: *mut u32, lppproparray: *mut *mut SPropValue) -> windows_core::Result<()>; @@ -694,84 +514,48 @@ pub trait IMAPIProp_Impl: Sized { impl windows_core::RuntimeName for IMAPIProp {} #[cfg(feature = "Win32_System_Com")] impl IMAPIProp_Vtbl { - pub const fn new() -> IMAPIProp_Vtbl - where - Identity: IMAPIProp_Impl, - { - unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + pub const fn new() -> IMAPIProp_Vtbl { + unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::GetLastError(this, core::mem::transmute_copy(&hresult), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lppmapierror)).into() } - unsafe extern "system" fn SaveChanges(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + unsafe extern "system" fn SaveChanges(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::SaveChanges(this, core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn GetProps(this: *mut core::ffi::c_void, lpproptagarray: *mut SPropTagArray, ulflags: u32, lpcvalues: *mut u32, lppproparray: *mut *mut SPropValue) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + unsafe extern "system" fn GetProps(this: *mut core::ffi::c_void, lpproptagarray: *mut SPropTagArray, ulflags: u32, lpcvalues: *mut u32, lppproparray: *mut *mut SPropValue) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::GetProps(this, core::mem::transmute_copy(&lpproptagarray), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpcvalues), core::mem::transmute_copy(&lppproparray)).into() } - unsafe extern "system" fn GetPropList(this: *mut core::ffi::c_void, ulflags: u32, lppproptagarray: *mut *mut SPropTagArray) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + unsafe extern "system" fn GetPropList(this: *mut core::ffi::c_void, ulflags: u32, lppproptagarray: *mut *mut SPropTagArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::GetPropList(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lppproptagarray)).into() } - unsafe extern "system" fn OpenProperty(this: *mut core::ffi::c_void, ulproptag: u32, lpiid: *mut windows_core::GUID, ulinterfaceoptions: u32, ulflags: u32, lppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + unsafe extern "system" fn OpenProperty(this: *mut core::ffi::c_void, ulproptag: u32, lpiid: *mut windows_core::GUID, ulinterfaceoptions: u32, ulflags: u32, lppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::OpenProperty(this, core::mem::transmute_copy(&ulproptag), core::mem::transmute_copy(&lpiid), core::mem::transmute_copy(&ulinterfaceoptions), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lppunk)).into() } - unsafe extern "system" fn SetProps(this: *mut core::ffi::c_void, cvalues: u32, lpproparray: *mut SPropValue, lppproblems: *mut *mut SPropProblemArray) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + unsafe extern "system" fn SetProps(this: *mut core::ffi::c_void, cvalues: u32, lpproparray: *mut SPropValue, lppproblems: *mut *mut SPropProblemArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::SetProps(this, core::mem::transmute_copy(&cvalues), core::mem::transmute_copy(&lpproparray), core::mem::transmute_copy(&lppproblems)).into() } - unsafe extern "system" fn DeleteProps(this: *mut core::ffi::c_void, lpproptagarray: *mut SPropTagArray, lppproblems: *mut *mut SPropProblemArray) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + unsafe extern "system" fn DeleteProps(this: *mut core::ffi::c_void, lpproptagarray: *mut SPropTagArray, lppproblems: *mut *mut SPropProblemArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::DeleteProps(this, core::mem::transmute_copy(&lpproptagarray), core::mem::transmute_copy(&lppproblems)).into() } - unsafe extern "system" fn CopyTo(this: *mut core::ffi::c_void, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + unsafe extern "system" fn CopyTo(this: *mut core::ffi::c_void, ciidexclude: u32, rgiidexclude: *mut windows_core::GUID, lpexcludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::CopyTo(this, core::mem::transmute_copy(&ciidexclude), core::mem::transmute_copy(&rgiidexclude), core::mem::transmute_copy(&lpexcludeprops), core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&lpdestobj), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lppproblems)).into() } - unsafe extern "system" fn CopyProps(this: *mut core::ffi::c_void, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + unsafe extern "system" fn CopyProps(this: *mut core::ffi::c_void, lpincludeprops: *mut SPropTagArray, uluiparam: usize, lpprogress: *mut core::ffi::c_void, lpinterface: *mut windows_core::GUID, lpdestobj: *mut core::ffi::c_void, ulflags: u32, lppproblems: *mut *mut SPropProblemArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::CopyProps(this, core::mem::transmute_copy(&lpincludeprops), core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&lpdestobj), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lppproblems)).into() } - unsafe extern "system" fn GetNamesFromIDs(this: *mut core::ffi::c_void, lppproptags: *mut *mut SPropTagArray, lppropsetguid: *mut windows_core::GUID, ulflags: u32, lpcpropnames: *mut u32, lppppropnames: *mut *mut *mut MAPINAMEID) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + unsafe extern "system" fn GetNamesFromIDs(this: *mut core::ffi::c_void, lppproptags: *mut *mut SPropTagArray, lppropsetguid: *mut windows_core::GUID, ulflags: u32, lpcpropnames: *mut u32, lppppropnames: *mut *mut *mut MAPINAMEID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::GetNamesFromIDs(this, core::mem::transmute_copy(&lppproptags), core::mem::transmute_copy(&lppropsetguid), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpcpropnames), core::mem::transmute_copy(&lppppropnames)).into() } - unsafe extern "system" fn GetIDsFromNames(this: *mut core::ffi::c_void, cpropnames: u32, lpppropnames: *mut *mut MAPINAMEID, ulflags: u32, lppproptags: *mut *mut SPropTagArray) -> windows_core::HRESULT - where - Identity: IMAPIProp_Impl, - { + unsafe extern "system" fn GetIDsFromNames(this: *mut core::ffi::c_void, cpropnames: u32, lpppropnames: *mut *mut MAPINAMEID, ulflags: u32, lppproptags: *mut *mut SPropTagArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIProp_Impl::GetIDsFromNames(this, core::mem::transmute_copy(&cpropnames), core::mem::transmute_copy(&lpppropnames), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lppproptags)).into() } @@ -805,35 +589,20 @@ pub trait IMAPIStatus_Impl: Sized + IMAPIProp_Impl { impl windows_core::RuntimeName for IMAPIStatus {} #[cfg(feature = "Win32_System_Com")] impl IMAPIStatus_Vtbl { - pub const fn new() -> IMAPIStatus_Vtbl - where - Identity: IMAPIStatus_Impl, - { - unsafe extern "system" fn ValidateState(this: *mut core::ffi::c_void, uluiparam: usize, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIStatus_Impl, - { + pub const fn new() -> IMAPIStatus_Vtbl { + unsafe extern "system" fn ValidateState(this: *mut core::ffi::c_void, uluiparam: usize, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIStatus_Impl::ValidateState(this, core::mem::transmute_copy(&uluiparam), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn SettingsDialog(this: *mut core::ffi::c_void, uluiparam: usize, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIStatus_Impl, - { + unsafe extern "system" fn SettingsDialog(this: *mut core::ffi::c_void, uluiparam: usize, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIStatus_Impl::SettingsDialog(this, core::mem::transmute_copy(&uluiparam), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn ChangePassword(this: *mut core::ffi::c_void, lpoldpass: *const i8, lpnewpass: *const i8, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIStatus_Impl, - { + unsafe extern "system" fn ChangePassword(this: *mut core::ffi::c_void, lpoldpass: *const i8, lpnewpass: *const i8, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIStatus_Impl::ChangePassword(this, core::mem::transmute_copy(&lpoldpass), core::mem::transmute_copy(&lpnewpass), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn FlushQueues(this: *mut core::ffi::c_void, uluiparam: usize, cbtargettransport: u32, lptargettransport: *const ENTRYID, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPIStatus_Impl, - { + unsafe extern "system" fn FlushQueues(this: *mut core::ffi::c_void, uluiparam: usize, cbtargettransport: u32, lptargettransport: *const ENTRYID, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPIStatus_Impl::FlushQueues(this, core::mem::transmute_copy(&uluiparam), core::mem::transmute_copy(&cbtargettransport), core::mem::transmute_copy(&lptargettransport), core::mem::transmute_copy(&ulflags)).into() } @@ -850,7 +619,7 @@ impl IMAPIStatus_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMAPITable_Impl: Sized { +pub trait IMAPITable_Impl: Sized + windows_core::IUnknownImpl { fn GetLastError(&self, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::Result<()>; fn Advise(&self, uleventmask: u32, lpadvisesink: Option<&IMAPIAdviseSink>, lpulconnection: *mut u32) -> windows_core::Result<()>; fn Unadvise(&self, ulconnection: u32) -> windows_core::Result<()>; @@ -879,168 +648,96 @@ pub trait IMAPITable_Impl: Sized { impl windows_core::RuntimeName for IMAPITable {} #[cfg(feature = "Win32_System_Com")] impl IMAPITable_Vtbl { - pub const fn new() -> IMAPITable_Vtbl - where - Identity: IMAPITable_Impl, - { - unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + pub const fn new() -> IMAPITable_Vtbl { + unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::GetLastError(this, core::mem::transmute_copy(&hresult), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lppmapierror)).into() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, uleventmask: u32, lpadvisesink: *mut core::ffi::c_void, lpulconnection: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, uleventmask: u32, lpadvisesink: *mut core::ffi::c_void, lpulconnection: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::Advise(this, core::mem::transmute_copy(&uleventmask), windows_core::from_raw_borrowed(&lpadvisesink), core::mem::transmute_copy(&lpulconnection)).into() } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, ulconnection: u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, ulconnection: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::Unadvise(this, core::mem::transmute_copy(&ulconnection)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, lpultablestatus: *mut u32, lpultabletype: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, lpultablestatus: *mut u32, lpultabletype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::GetStatus(this, core::mem::transmute_copy(&lpultablestatus), core::mem::transmute_copy(&lpultabletype)).into() } - unsafe extern "system" fn SetColumns(this: *mut core::ffi::c_void, lpproptagarray: *mut SPropTagArray, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn SetColumns(this: *mut core::ffi::c_void, lpproptagarray: *mut SPropTagArray, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::SetColumns(this, core::mem::transmute_copy(&lpproptagarray), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn QueryColumns(this: *mut core::ffi::c_void, ulflags: u32, lpproptagarray: *mut *mut SPropTagArray) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn QueryColumns(this: *mut core::ffi::c_void, ulflags: u32, lpproptagarray: *mut *mut SPropTagArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::QueryColumns(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpproptagarray)).into() } - unsafe extern "system" fn GetRowCount(this: *mut core::ffi::c_void, ulflags: u32, lpulcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn GetRowCount(this: *mut core::ffi::c_void, ulflags: u32, lpulcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::GetRowCount(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpulcount)).into() } - unsafe extern "system" fn SeekRow(this: *mut core::ffi::c_void, bkorigin: u32, lrowcount: i32, lplrowssought: *mut i32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn SeekRow(this: *mut core::ffi::c_void, bkorigin: u32, lrowcount: i32, lplrowssought: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::SeekRow(this, core::mem::transmute_copy(&bkorigin), core::mem::transmute_copy(&lrowcount), core::mem::transmute_copy(&lplrowssought)).into() } - unsafe extern "system" fn SeekRowApprox(this: *mut core::ffi::c_void, ulnumerator: u32, uldenominator: u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn SeekRowApprox(this: *mut core::ffi::c_void, ulnumerator: u32, uldenominator: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::SeekRowApprox(this, core::mem::transmute_copy(&ulnumerator), core::mem::transmute_copy(&uldenominator)).into() } - unsafe extern "system" fn QueryPosition(this: *mut core::ffi::c_void, lpulrow: *mut u32, lpulnumerator: *mut u32, lpuldenominator: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn QueryPosition(this: *mut core::ffi::c_void, lpulrow: *mut u32, lpulnumerator: *mut u32, lpuldenominator: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::QueryPosition(this, core::mem::transmute_copy(&lpulrow), core::mem::transmute_copy(&lpulnumerator), core::mem::transmute_copy(&lpuldenominator)).into() } - unsafe extern "system" fn FindRow(this: *mut core::ffi::c_void, lprestriction: *mut SRestriction, bkorigin: u32, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn FindRow(this: *mut core::ffi::c_void, lprestriction: *mut SRestriction, bkorigin: u32, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::FindRow(this, core::mem::transmute_copy(&lprestriction), core::mem::transmute_copy(&bkorigin), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn Restrict(this: *mut core::ffi::c_void, lprestriction: *mut SRestriction, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn Restrict(this: *mut core::ffi::c_void, lprestriction: *mut SRestriction, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::Restrict(this, core::mem::transmute_copy(&lprestriction), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn CreateBookmark(this: *mut core::ffi::c_void, lpbkposition: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn CreateBookmark(this: *mut core::ffi::c_void, lpbkposition: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::CreateBookmark(this, core::mem::transmute_copy(&lpbkposition)).into() } - unsafe extern "system" fn FreeBookmark(this: *mut core::ffi::c_void, bkposition: u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn FreeBookmark(this: *mut core::ffi::c_void, bkposition: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::FreeBookmark(this, core::mem::transmute_copy(&bkposition)).into() } - unsafe extern "system" fn SortTable(this: *mut core::ffi::c_void, lpsortcriteria: *mut SSortOrderSet, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn SortTable(this: *mut core::ffi::c_void, lpsortcriteria: *mut SSortOrderSet, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::SortTable(this, core::mem::transmute_copy(&lpsortcriteria), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn QuerySortOrder(this: *mut core::ffi::c_void, lppsortcriteria: *mut *mut SSortOrderSet) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn QuerySortOrder(this: *mut core::ffi::c_void, lppsortcriteria: *mut *mut SSortOrderSet) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::QuerySortOrder(this, core::mem::transmute_copy(&lppsortcriteria)).into() } - unsafe extern "system" fn QueryRows(this: *mut core::ffi::c_void, lrowcount: i32, ulflags: u32, lpprows: *mut *mut SRowSet) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn QueryRows(this: *mut core::ffi::c_void, lrowcount: i32, ulflags: u32, lpprows: *mut *mut SRowSet) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::QueryRows(this, core::mem::transmute_copy(&lrowcount), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpprows)).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::Abort(this).into() } - unsafe extern "system" fn ExpandRow(this: *mut core::ffi::c_void, cbinstancekey: u32, pbinstancekey: *mut u8, ulrowcount: u32, ulflags: u32, lpprows: *mut *mut SRowSet, lpulmorerows: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn ExpandRow(this: *mut core::ffi::c_void, cbinstancekey: u32, pbinstancekey: *mut u8, ulrowcount: u32, ulflags: u32, lpprows: *mut *mut SRowSet, lpulmorerows: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::ExpandRow(this, core::mem::transmute_copy(&cbinstancekey), core::mem::transmute_copy(&pbinstancekey), core::mem::transmute_copy(&ulrowcount), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpprows), core::mem::transmute_copy(&lpulmorerows)).into() } - unsafe extern "system" fn CollapseRow(this: *mut core::ffi::c_void, cbinstancekey: u32, pbinstancekey: *mut u8, ulflags: u32, lpulrowcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn CollapseRow(this: *mut core::ffi::c_void, cbinstancekey: u32, pbinstancekey: *mut u8, ulflags: u32, lpulrowcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::CollapseRow(this, core::mem::transmute_copy(&cbinstancekey), core::mem::transmute_copy(&pbinstancekey), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpulrowcount)).into() } - unsafe extern "system" fn WaitForCompletion(this: *mut core::ffi::c_void, ulflags: u32, ultimeout: u32, lpultablestatus: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn WaitForCompletion(this: *mut core::ffi::c_void, ulflags: u32, ultimeout: u32, lpultablestatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::WaitForCompletion(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&ultimeout), core::mem::transmute_copy(&lpultablestatus)).into() } - unsafe extern "system" fn GetCollapseState(this: *mut core::ffi::c_void, ulflags: u32, cbinstancekey: u32, lpbinstancekey: *mut u8, lpcbcollapsestate: *mut u32, lppbcollapsestate: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn GetCollapseState(this: *mut core::ffi::c_void, ulflags: u32, cbinstancekey: u32, lpbinstancekey: *mut u8, lpcbcollapsestate: *mut u32, lppbcollapsestate: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::GetCollapseState(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&cbinstancekey), core::mem::transmute_copy(&lpbinstancekey), core::mem::transmute_copy(&lpcbcollapsestate), core::mem::transmute_copy(&lppbcollapsestate)).into() } - unsafe extern "system" fn SetCollapseState(this: *mut core::ffi::c_void, ulflags: u32, cbcollapsestate: u32, pbcollapsestate: *mut u8, lpbklocation: *mut u32) -> windows_core::HRESULT - where - Identity: IMAPITable_Impl, - { + unsafe extern "system" fn SetCollapseState(this: *mut core::ffi::c_void, ulflags: u32, cbcollapsestate: u32, pbcollapsestate: *mut u8, lpbklocation: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMAPITable_Impl::SetCollapseState(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&cbcollapsestate), core::mem::transmute_copy(&pbcollapsestate), core::mem::transmute_copy(&lpbklocation)).into() } @@ -1081,10 +778,7 @@ pub trait IMailUser_Impl: Sized + IMAPIProp_Impl {} impl windows_core::RuntimeName for IMailUser {} #[cfg(feature = "Win32_System_Com")] impl IMailUser_Vtbl { - pub const fn new() -> IMailUser_Vtbl - where - Identity: IMailUser_Impl, - { + pub const fn new() -> IMailUser_Vtbl { Self { base__: IMAPIProp_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1106,14 +800,8 @@ pub trait IMessage_Impl: Sized + IMAPIProp_Impl { impl windows_core::RuntimeName for IMessage {} #[cfg(feature = "Win32_System_Com")] impl IMessage_Vtbl { - pub const fn new() -> IMessage_Vtbl - where - Identity: IMessage_Impl, - { - unsafe extern "system" fn GetAttachmentTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMessage_Impl, - { + pub const fn new() -> IMessage_Vtbl { + unsafe extern "system" fn GetAttachmentTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMessage_Impl::GetAttachmentTable(this, core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -1123,10 +811,7 @@ impl IMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenAttach(this: *mut core::ffi::c_void, ulattachmentnum: u32, lpinterface: *const windows_core::GUID, ulflags: u32, lppattach: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMessage_Impl, - { + unsafe extern "system" fn OpenAttach(this: *mut core::ffi::c_void, ulattachmentnum: u32, lpinterface: *const windows_core::GUID, ulflags: u32, lppattach: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMessage_Impl::OpenAttach(this, core::mem::transmute_copy(&ulattachmentnum), core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -1136,24 +821,15 @@ impl IMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAttach(this: *mut core::ffi::c_void, lpinterface: *const windows_core::GUID, ulflags: u32, lpulattachmentnum: *mut u32, lppattach: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMessage_Impl, - { + unsafe extern "system" fn CreateAttach(this: *mut core::ffi::c_void, lpinterface: *const windows_core::GUID, ulflags: u32, lpulattachmentnum: *mut u32, lppattach: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessage_Impl::CreateAttach(this, core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpulattachmentnum), core::mem::transmute_copy(&lppattach)).into() } - unsafe extern "system" fn DeleteAttach(this: *mut core::ffi::c_void, ulattachmentnum: u32, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMessage_Impl, - { + unsafe extern "system" fn DeleteAttach(this: *mut core::ffi::c_void, ulattachmentnum: u32, uluiparam: usize, lpprogress: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessage_Impl::DeleteAttach(this, core::mem::transmute_copy(&ulattachmentnum), core::mem::transmute_copy(&uluiparam), windows_core::from_raw_borrowed(&lpprogress), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn GetRecipientTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMessage_Impl, - { + unsafe extern "system" fn GetRecipientTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMessage_Impl::GetRecipientTable(this, core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -1163,24 +839,15 @@ impl IMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifyRecipients(this: *mut core::ffi::c_void, ulflags: u32, lpmods: *const ADRLIST) -> windows_core::HRESULT - where - Identity: IMessage_Impl, - { + unsafe extern "system" fn ModifyRecipients(this: *mut core::ffi::c_void, ulflags: u32, lpmods: *const ADRLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessage_Impl::ModifyRecipients(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpmods)).into() } - unsafe extern "system" fn SubmitMessage(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMessage_Impl, - { + unsafe extern "system" fn SubmitMessage(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessage_Impl::SubmitMessage(this, core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn SetReadFlag(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMessage_Impl, - { + unsafe extern "system" fn SetReadFlag(this: *mut core::ffi::c_void, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessage_Impl::SetReadFlag(this, core::mem::transmute_copy(&ulflags)).into() } @@ -1220,14 +887,8 @@ pub trait IMsgStore_Impl: Sized + IMAPIProp_Impl { impl windows_core::RuntimeName for IMsgStore {} #[cfg(feature = "Win32_System_Com")] impl IMsgStore_Vtbl { - pub const fn new() -> IMsgStore_Vtbl - where - Identity: IMsgStore_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, uleventmask: u32, lpadvisesink: *mut core::ffi::c_void, lpulconnection: *mut u32) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + pub const fn new() -> IMsgStore_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, uleventmask: u32, lpadvisesink: *mut core::ffi::c_void, lpulconnection: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsgStore_Impl::Advise(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&uleventmask), windows_core::from_raw_borrowed(&lpadvisesink)) { Ok(ok__) => { @@ -1237,17 +898,11 @@ impl IMsgStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, ulconnection: u32) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, ulconnection: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsgStore_Impl::Unadvise(this, core::mem::transmute_copy(&ulconnection)).into() } - unsafe extern "system" fn CompareEntryIDs(this: *mut core::ffi::c_void, cbentryid1: u32, lpentryid1: *const ENTRYID, cbentryid2: u32, lpentryid2: *const ENTRYID, ulflags: u32, lpulresult: *mut u32) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn CompareEntryIDs(this: *mut core::ffi::c_void, cbentryid1: u32, lpentryid1: *const ENTRYID, cbentryid2: u32, lpentryid2: *const ENTRYID, ulflags: u32, lpulresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsgStore_Impl::CompareEntryIDs(this, core::mem::transmute_copy(&cbentryid1), core::mem::transmute_copy(&lpentryid1), core::mem::transmute_copy(&cbentryid2), core::mem::transmute_copy(&lpentryid2), core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -1257,31 +912,19 @@ impl IMsgStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenEntry(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, lpinterface: *const windows_core::GUID, ulflags: u32, lpulobjtype: *mut u32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn OpenEntry(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, lpinterface: *const windows_core::GUID, ulflags: u32, lpulobjtype: *mut u32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsgStore_Impl::OpenEntry(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpulobjtype), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn SetReceiveFolder(this: *mut core::ffi::c_void, lpszmessageclass: *const i8, ulflags: u32, cbentryid: u32, lpentryid: *const ENTRYID) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn SetReceiveFolder(this: *mut core::ffi::c_void, lpszmessageclass: *const i8, ulflags: u32, cbentryid: u32, lpentryid: *const ENTRYID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsgStore_Impl::SetReceiveFolder(this, core::mem::transmute_copy(&lpszmessageclass), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid)).into() } - unsafe extern "system" fn GetReceiveFolder(this: *mut core::ffi::c_void, lpszmessageclass: *const i8, ulflags: u32, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID, lppszexplicitclass: *mut *mut i8) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn GetReceiveFolder(this: *mut core::ffi::c_void, lpszmessageclass: *const i8, ulflags: u32, lpcbentryid: *mut u32, lppentryid: *mut *mut ENTRYID, lppszexplicitclass: *mut *mut i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsgStore_Impl::GetReceiveFolder(this, core::mem::transmute_copy(&lpszmessageclass), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpcbentryid), core::mem::transmute_copy(&lppentryid), core::mem::transmute_copy(&lppszexplicitclass)).into() } - unsafe extern "system" fn GetReceiveFolderTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn GetReceiveFolderTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsgStore_Impl::GetReceiveFolderTable(this, core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -1291,24 +934,15 @@ impl IMsgStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StoreLogoff(this: *mut core::ffi::c_void, lpulflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn StoreLogoff(this: *mut core::ffi::c_void, lpulflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsgStore_Impl::StoreLogoff(this, core::mem::transmute_copy(&lpulflags)).into() } - unsafe extern "system" fn AbortSubmit(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, ulflags: u32) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn AbortSubmit(this: *mut core::ffi::c_void, cbentryid: u32, lpentryid: *const ENTRYID, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsgStore_Impl::AbortSubmit(this, core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid), core::mem::transmute_copy(&ulflags)).into() } - unsafe extern "system" fn GetOutgoingQueue(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn GetOutgoingQueue(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsgStore_Impl::GetOutgoingQueue(this, core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -1318,24 +952,15 @@ impl IMsgStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLockState(this: *mut core::ffi::c_void, lpmessage: *mut core::ffi::c_void, ullockstate: u32) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn SetLockState(this: *mut core::ffi::c_void, lpmessage: *mut core::ffi::c_void, ullockstate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsgStore_Impl::SetLockState(this, windows_core::from_raw_borrowed(&lpmessage), core::mem::transmute_copy(&ullockstate)).into() } - unsafe extern "system" fn FinishedMsg(this: *mut core::ffi::c_void, ulflags: u32, cbentryid: u32, lpentryid: *const ENTRYID) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn FinishedMsg(this: *mut core::ffi::c_void, ulflags: u32, cbentryid: u32, lpentryid: *const ENTRYID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsgStore_Impl::FinishedMsg(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&cbentryid), core::mem::transmute_copy(&lpentryid)).into() } - unsafe extern "system" fn NotifyNewMail(this: *mut core::ffi::c_void, lpnotification: *const NOTIFICATION) -> windows_core::HRESULT - where - Identity: IMsgStore_Impl, - { + unsafe extern "system" fn NotifyNewMail(this: *mut core::ffi::c_void, lpnotification: *const NOTIFICATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsgStore_Impl::NotifyNewMail(this, core::mem::transmute_copy(&lpnotification)).into() } @@ -1366,10 +991,7 @@ pub trait IProfSect_Impl: Sized + IMAPIProp_Impl {} impl windows_core::RuntimeName for IProfSect {} #[cfg(feature = "Win32_System_Com")] impl IProfSect_Vtbl { - pub const fn new() -> IProfSect_Vtbl - where - Identity: IProfSect_Impl, - { + pub const fn new() -> IProfSect_Vtbl { Self { base__: IMAPIProp_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1387,35 +1009,20 @@ pub trait IPropData_Impl: Sized + IMAPIProp_Impl { impl windows_core::RuntimeName for IPropData {} #[cfg(feature = "Win32_System_Com")] impl IPropData_Vtbl { - pub const fn new() -> IPropData_Vtbl - where - Identity: IPropData_Impl, - { - unsafe extern "system" fn HrSetObjAccess(this: *mut core::ffi::c_void, ulaccess: u32) -> windows_core::HRESULT - where - Identity: IPropData_Impl, - { + pub const fn new() -> IPropData_Vtbl { + unsafe extern "system" fn HrSetObjAccess(this: *mut core::ffi::c_void, ulaccess: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropData_Impl::HrSetObjAccess(this, core::mem::transmute_copy(&ulaccess)).into() } - unsafe extern "system" fn HrSetPropAccess(this: *mut core::ffi::c_void, lpproptagarray: *mut SPropTagArray, rgulaccess: *mut u32) -> windows_core::HRESULT - where - Identity: IPropData_Impl, - { + unsafe extern "system" fn HrSetPropAccess(this: *mut core::ffi::c_void, lpproptagarray: *mut SPropTagArray, rgulaccess: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropData_Impl::HrSetPropAccess(this, core::mem::transmute_copy(&lpproptagarray), core::mem::transmute_copy(&rgulaccess)).into() } - unsafe extern "system" fn HrGetPropAccess(this: *mut core::ffi::c_void, lppproptagarray: *mut *mut SPropTagArray, lprgulaccess: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IPropData_Impl, - { + unsafe extern "system" fn HrGetPropAccess(this: *mut core::ffi::c_void, lppproptagarray: *mut *mut SPropTagArray, lprgulaccess: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropData_Impl::HrGetPropAccess(this, core::mem::transmute_copy(&lppproptagarray), core::mem::transmute_copy(&lprgulaccess)).into() } - unsafe extern "system" fn HrAddObjProps(this: *mut core::ffi::c_void, lppproptagarray: *mut SPropTagArray, lprgulaccess: *mut *mut SPropProblemArray) -> windows_core::HRESULT - where - Identity: IPropData_Impl, - { + unsafe extern "system" fn HrAddObjProps(this: *mut core::ffi::c_void, lppproptagarray: *mut SPropTagArray, lprgulaccess: *mut *mut SPropProblemArray) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropData_Impl::HrAddObjProps(this, core::mem::transmute_copy(&lppproptagarray), core::mem::transmute_copy(&lprgulaccess)).into() } @@ -1432,7 +1039,7 @@ impl IPropData_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IProviderAdmin_Impl: Sized { +pub trait IProviderAdmin_Impl: Sized + windows_core::IUnknownImpl { fn GetLastError(&self, hresult: windows_core::HRESULT, ulflags: u32) -> windows_core::Result<*mut MAPIERROR>; fn GetProviderTable(&self, ulflags: u32) -> windows_core::Result; fn CreateProvider(&self, lpszprovider: *const i8, cvalues: u32, lpprops: *const SPropValue, uluiparam: usize, ulflags: u32) -> windows_core::Result; @@ -1443,14 +1050,8 @@ pub trait IProviderAdmin_Impl: Sized { impl windows_core::RuntimeName for IProviderAdmin {} #[cfg(feature = "Win32_System_Com")] impl IProviderAdmin_Vtbl { - pub const fn new() -> IProviderAdmin_Vtbl - where - Identity: IProviderAdmin_Impl, - { - unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::HRESULT - where - Identity: IProviderAdmin_Impl, - { + pub const fn new() -> IProviderAdmin_Vtbl { + unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProviderAdmin_Impl::GetLastError(this, core::mem::transmute_copy(&hresult), core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -1460,10 +1061,7 @@ impl IProviderAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProviderAdmin_Impl, - { + unsafe extern "system" fn GetProviderTable(this: *mut core::ffi::c_void, ulflags: u32, lpptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProviderAdmin_Impl::GetProviderTable(this, core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -1473,10 +1071,7 @@ impl IProviderAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateProvider(this: *mut core::ffi::c_void, lpszprovider: *const i8, cvalues: u32, lpprops: *const SPropValue, uluiparam: usize, ulflags: u32, lpuid: *mut MAPIUID) -> windows_core::HRESULT - where - Identity: IProviderAdmin_Impl, - { + unsafe extern "system" fn CreateProvider(this: *mut core::ffi::c_void, lpszprovider: *const i8, cvalues: u32, lpprops: *const SPropValue, uluiparam: usize, ulflags: u32, lpuid: *mut MAPIUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProviderAdmin_Impl::CreateProvider(this, core::mem::transmute_copy(&lpszprovider), core::mem::transmute_copy(&cvalues), core::mem::transmute_copy(&lpprops), core::mem::transmute_copy(&uluiparam), core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -1486,17 +1081,11 @@ impl IProviderAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteProvider(this: *mut core::ffi::c_void, lpuid: *const MAPIUID) -> windows_core::HRESULT - where - Identity: IProviderAdmin_Impl, - { + unsafe extern "system" fn DeleteProvider(this: *mut core::ffi::c_void, lpuid: *const MAPIUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderAdmin_Impl::DeleteProvider(this, core::mem::transmute_copy(&lpuid)).into() } - unsafe extern "system" fn OpenProfileSection(this: *mut core::ffi::c_void, lpuid: *const MAPIUID, lpinterface: *const windows_core::GUID, ulflags: u32, lppprofsect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProviderAdmin_Impl, - { + unsafe extern "system" fn OpenProfileSection(this: *mut core::ffi::c_void, lpuid: *const MAPIUID, lpinterface: *const windows_core::GUID, ulflags: u32, lppprofsect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProviderAdmin_Impl::OpenProfileSection(this, core::mem::transmute_copy(&lpuid), core::mem::transmute_copy(&lpinterface), core::mem::transmute_copy(&ulflags)) { Ok(ok__) => { @@ -1520,7 +1109,7 @@ impl IProviderAdmin_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITableData_Impl: Sized { +pub trait ITableData_Impl: Sized + windows_core::IUnknownImpl { fn HrGetView(&self, lpssortorderset: *mut SSortOrderSet, lpfcallerrelease: *mut CALLERRELEASE, ulcallerdata: u32, lppmapitable: *mut Option) -> windows_core::Result<()>; fn HrModifyRow(&self, param0: *mut SRow) -> windows_core::Result<()>; fn HrDeleteRow(&self, lpspropvalue: *mut SPropValue) -> windows_core::Result<()>; @@ -1535,70 +1124,40 @@ pub trait ITableData_Impl: Sized { impl windows_core::RuntimeName for ITableData {} #[cfg(feature = "Win32_System_Com")] impl ITableData_Vtbl { - pub const fn new() -> ITableData_Vtbl - where - Identity: ITableData_Impl, - { - unsafe extern "system" fn HrGetView(this: *mut core::ffi::c_void, lpssortorderset: *mut SSortOrderSet, lpfcallerrelease: *mut CALLERRELEASE, ulcallerdata: u32, lppmapitable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITableData_Impl, - { + pub const fn new() -> ITableData_Vtbl { + unsafe extern "system" fn HrGetView(this: *mut core::ffi::c_void, lpssortorderset: *mut SSortOrderSet, lpfcallerrelease: *mut CALLERRELEASE, ulcallerdata: u32, lppmapitable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableData_Impl::HrGetView(this, core::mem::transmute_copy(&lpssortorderset), core::mem::transmute_copy(&lpfcallerrelease), core::mem::transmute_copy(&ulcallerdata), core::mem::transmute_copy(&lppmapitable)).into() } - unsafe extern "system" fn HrModifyRow(this: *mut core::ffi::c_void, param0: *mut SRow) -> windows_core::HRESULT - where - Identity: ITableData_Impl, - { + unsafe extern "system" fn HrModifyRow(this: *mut core::ffi::c_void, param0: *mut SRow) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableData_Impl::HrModifyRow(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn HrDeleteRow(this: *mut core::ffi::c_void, lpspropvalue: *mut SPropValue) -> windows_core::HRESULT - where - Identity: ITableData_Impl, - { + unsafe extern "system" fn HrDeleteRow(this: *mut core::ffi::c_void, lpspropvalue: *mut SPropValue) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableData_Impl::HrDeleteRow(this, core::mem::transmute_copy(&lpspropvalue)).into() } - unsafe extern "system" fn HrQueryRow(this: *mut core::ffi::c_void, lpspropvalue: *mut SPropValue, lppsrow: *mut *mut SRow, lpulirow: *mut u32) -> windows_core::HRESULT - where - Identity: ITableData_Impl, - { + unsafe extern "system" fn HrQueryRow(this: *mut core::ffi::c_void, lpspropvalue: *mut SPropValue, lppsrow: *mut *mut SRow, lpulirow: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableData_Impl::HrQueryRow(this, core::mem::transmute_copy(&lpspropvalue), core::mem::transmute_copy(&lppsrow), core::mem::transmute_copy(&lpulirow)).into() } - unsafe extern "system" fn HrEnumRow(this: *mut core::ffi::c_void, ulrownumber: u32, lppsrow: *mut *mut SRow) -> windows_core::HRESULT - where - Identity: ITableData_Impl, - { + unsafe extern "system" fn HrEnumRow(this: *mut core::ffi::c_void, ulrownumber: u32, lppsrow: *mut *mut SRow) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableData_Impl::HrEnumRow(this, core::mem::transmute_copy(&ulrownumber), core::mem::transmute_copy(&lppsrow)).into() } - unsafe extern "system" fn HrNotify(this: *mut core::ffi::c_void, ulflags: u32, cvalues: u32, lpspropvalue: *mut SPropValue) -> windows_core::HRESULT - where - Identity: ITableData_Impl, - { + unsafe extern "system" fn HrNotify(this: *mut core::ffi::c_void, ulflags: u32, cvalues: u32, lpspropvalue: *mut SPropValue) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableData_Impl::HrNotify(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&cvalues), core::mem::transmute_copy(&lpspropvalue)).into() } - unsafe extern "system" fn HrInsertRow(this: *mut core::ffi::c_void, ulirow: u32, lpsrow: *mut SRow) -> windows_core::HRESULT - where - Identity: ITableData_Impl, - { + unsafe extern "system" fn HrInsertRow(this: *mut core::ffi::c_void, ulirow: u32, lpsrow: *mut SRow) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableData_Impl::HrInsertRow(this, core::mem::transmute_copy(&ulirow), core::mem::transmute_copy(&lpsrow)).into() } - unsafe extern "system" fn HrModifyRows(this: *mut core::ffi::c_void, ulflags: u32, lpsrowset: *mut SRowSet) -> windows_core::HRESULT - where - Identity: ITableData_Impl, - { + unsafe extern "system" fn HrModifyRows(this: *mut core::ffi::c_void, ulflags: u32, lpsrowset: *mut SRowSet) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableData_Impl::HrModifyRows(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpsrowset)).into() } - unsafe extern "system" fn HrDeleteRows(this: *mut core::ffi::c_void, ulflags: u32, lprowsettodelete: *mut SRowSet, crowsdeleted: *mut u32) -> windows_core::HRESULT - where - Identity: ITableData_Impl, - { + unsafe extern "system" fn HrDeleteRows(this: *mut core::ffi::c_void, ulflags: u32, lprowsettodelete: *mut SRowSet, crowsdeleted: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableData_Impl::HrDeleteRows(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lprowsettodelete), core::mem::transmute_copy(&crowsdeleted)).into() } @@ -1619,19 +1178,13 @@ impl ITableData_Vtbl { iid == &::IID } } -pub trait IWABExtInit_Impl: Sized { +pub trait IWABExtInit_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, lpwabextdisplay: *mut WABEXTDISPLAY) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWABExtInit {} impl IWABExtInit_Vtbl { - pub const fn new() -> IWABExtInit_Vtbl - where - Identity: IWABExtInit_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, lpwabextdisplay: *mut WABEXTDISPLAY) -> windows_core::HRESULT - where - Identity: IWABExtInit_Impl, - { + pub const fn new() -> IWABExtInit_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, lpwabextdisplay: *mut WABEXTDISPLAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABExtInit_Impl::Initialize(this, core::mem::transmute_copy(&lpwabextdisplay)).into() } @@ -1641,7 +1194,7 @@ impl IWABExtInit_Vtbl { iid == &::IID } } -pub trait IWABObject_Impl: Sized { +pub trait IWABObject_Impl: Sized + windows_core::IUnknownImpl { fn GetLastError(&self, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::Result<()>; fn AllocateBuffer(&self, cbsize: u32, lppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn AllocateMore(&self, cbsize: u32, lpobject: *const core::ffi::c_void, lppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -1658,70 +1211,40 @@ pub trait IWABObject_Impl: Sized { } impl windows_core::RuntimeName for IWABObject {} impl IWABObject_Vtbl { - pub const fn new() -> IWABObject_Vtbl - where - Identity: IWABObject_Impl, - { - unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + pub const fn new() -> IWABObject_Vtbl { + unsafe extern "system" fn GetLastError(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::GetLastError(this, core::mem::transmute_copy(&hresult), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lppmapierror)).into() } - unsafe extern "system" fn AllocateBuffer(this: *mut core::ffi::c_void, cbsize: u32, lppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn AllocateBuffer(this: *mut core::ffi::c_void, cbsize: u32, lppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::AllocateBuffer(this, core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&lppbuffer)).into() } - unsafe extern "system" fn AllocateMore(this: *mut core::ffi::c_void, cbsize: u32, lpobject: *const core::ffi::c_void, lppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn AllocateMore(this: *mut core::ffi::c_void, cbsize: u32, lpobject: *const core::ffi::c_void, lppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::AllocateMore(this, core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&lpobject), core::mem::transmute_copy(&lppbuffer)).into() } - unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::FreeBuffer(this, core::mem::transmute_copy(&lpbuffer)).into() } - unsafe extern "system" fn Backup(this: *mut core::ffi::c_void, lpfilename: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn Backup(this: *mut core::ffi::c_void, lpfilename: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::Backup(this, core::mem::transmute(&lpfilename)).into() } - unsafe extern "system" fn Import(this: *mut core::ffi::c_void, lpwip: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn Import(this: *mut core::ffi::c_void, lpwip: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::Import(this, core::mem::transmute(&lpwip)).into() } - unsafe extern "system" fn Find(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn Find(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::Find(this, windows_core::from_raw_borrowed(&lpiab), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn VCardDisplay(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, lpszfilename: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn VCardDisplay(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, lpszfilename: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::VCardDisplay(this, windows_core::from_raw_borrowed(&lpiab), core::mem::transmute_copy(&hwnd), core::mem::transmute(&lpszfilename)).into() } - unsafe extern "system" fn LDAPUrl(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ulflags: u32, lpszurl: windows_core::PCSTR, lppmailuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn LDAPUrl(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ulflags: u32, lpszurl: windows_core::PCSTR, lppmailuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWABObject_Impl::LDAPUrl(this, windows_core::from_raw_borrowed(&lpiab), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&ulflags), core::mem::transmute(&lpszurl)) { Ok(ok__) => { @@ -1731,17 +1254,11 @@ impl IWABObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VCardCreate(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, ulflags: u32, lpszvcard: windows_core::PCSTR, lpmailuser: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn VCardCreate(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, ulflags: u32, lpszvcard: windows_core::PCSTR, lpmailuser: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::VCardCreate(this, windows_core::from_raw_borrowed(&lpiab), core::mem::transmute_copy(&ulflags), core::mem::transmute(&lpszvcard), windows_core::from_raw_borrowed(&lpmailuser)).into() } - unsafe extern "system" fn VCardRetrieve(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, ulflags: u32, lpszvcard: windows_core::PCSTR, lppmailuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn VCardRetrieve(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, ulflags: u32, lpszvcard: windows_core::PCSTR, lppmailuser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWABObject_Impl::VCardRetrieve(this, windows_core::from_raw_borrowed(&lpiab), core::mem::transmute_copy(&ulflags), core::mem::transmute(&lpszvcard)) { Ok(ok__) => { @@ -1751,17 +1268,11 @@ impl IWABObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMe(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, ulflags: u32, lpdwaction: *mut u32, lpsbeid: *mut SBinary, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn GetMe(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, ulflags: u32, lpdwaction: *mut u32, lpsbeid: *mut SBinary, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::GetMe(this, windows_core::from_raw_borrowed(&lpiab), core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&lpdwaction), core::mem::transmute_copy(&lpsbeid), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn SetMe(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, ulflags: u32, sbeid: SBinary, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IWABObject_Impl, - { + unsafe extern "system" fn SetMe(this: *mut core::ffi::c_void, lpiab: *mut core::ffi::c_void, ulflags: u32, sbeid: SBinary, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWABObject_Impl::SetMe(this, windows_core::from_raw_borrowed(&lpiab), core::mem::transmute_copy(&ulflags), core::mem::transmute(&sbeid), core::mem::transmute_copy(&hwnd)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/Antimalware/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Antimalware/impl.rs index 87d1d3897d..bb90daa35b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Antimalware/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Antimalware/impl.rs @@ -1,24 +1,15 @@ -pub trait IAmsiStream_Impl: Sized { +pub trait IAmsiStream_Impl: Sized + windows_core::IUnknownImpl { fn GetAttribute(&self, attribute: AMSI_ATTRIBUTE, datasize: u32, data: *mut u8, retdata: *mut u32) -> windows_core::Result<()>; fn Read(&self, position: u64, size: u32, buffer: *mut u8, readsize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAmsiStream {} impl IAmsiStream_Vtbl { - pub const fn new() -> IAmsiStream_Vtbl - where - Identity: IAmsiStream_Impl, - { - unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, attribute: AMSI_ATTRIBUTE, datasize: u32, data: *mut u8, retdata: *mut u32) -> windows_core::HRESULT - where - Identity: IAmsiStream_Impl, - { + pub const fn new() -> IAmsiStream_Vtbl { + unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, attribute: AMSI_ATTRIBUTE, datasize: u32, data: *mut u8, retdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAmsiStream_Impl::GetAttribute(this, core::mem::transmute_copy(&attribute), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&data), core::mem::transmute_copy(&retdata)).into() } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, position: u64, size: u32, buffer: *mut u8, readsize: *mut u32) -> windows_core::HRESULT - where - Identity: IAmsiStream_Impl, - { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, position: u64, size: u32, buffer: *mut u8, readsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAmsiStream_Impl::Read(this, core::mem::transmute_copy(&position), core::mem::transmute_copy(&size), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&readsize)).into() } @@ -28,27 +19,18 @@ impl IAmsiStream_Vtbl { iid == &::IID } } -pub trait IAntimalware_Impl: Sized { +pub trait IAntimalware_Impl: Sized + windows_core::IUnknownImpl { fn Scan(&self, stream: Option<&IAmsiStream>, result: *mut AMSI_RESULT, provider: *mut Option) -> windows_core::Result<()>; fn CloseSession(&self, session: u64); } impl windows_core::RuntimeName for IAntimalware {} impl IAntimalware_Vtbl { - pub const fn new() -> IAntimalware_Vtbl - where - Identity: IAntimalware_Impl, - { - unsafe extern "system" fn Scan(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, result: *mut AMSI_RESULT, provider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAntimalware_Impl, - { + pub const fn new() -> IAntimalware_Vtbl { + unsafe extern "system" fn Scan(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, result: *mut AMSI_RESULT, provider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAntimalware_Impl::Scan(this, windows_core::from_raw_borrowed(&stream), core::mem::transmute_copy(&result), core::mem::transmute_copy(&provider)).into() } - unsafe extern "system" fn CloseSession(this: *mut core::ffi::c_void, session: u64) - where - Identity: IAntimalware_Impl, - { + unsafe extern "system" fn CloseSession(this: *mut core::ffi::c_void, session: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAntimalware_Impl::CloseSession(this, core::mem::transmute_copy(&session)) } @@ -63,14 +45,8 @@ pub trait IAntimalware2_Impl: Sized + IAntimalware_Impl { } impl windows_core::RuntimeName for IAntimalware2 {} impl IAntimalware2_Vtbl { - pub const fn new() -> IAntimalware2_Vtbl - where - Identity: IAntimalware2_Impl, - { - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, buffer: *const core::ffi::c_void, length: u32, contentname: windows_core::PCWSTR, appname: windows_core::PCWSTR, presult: *mut AMSI_RESULT) -> windows_core::HRESULT - where - Identity: IAntimalware2_Impl, - { + pub const fn new() -> IAntimalware2_Vtbl { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, buffer: *const core::ffi::c_void, length: u32, contentname: windows_core::PCWSTR, appname: windows_core::PCWSTR, presult: *mut AMSI_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAntimalware2_Impl::Notify(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&length), core::mem::transmute(&contentname), core::mem::transmute(&appname)) { Ok(ok__) => { @@ -86,21 +62,15 @@ impl IAntimalware2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAntimalwareProvider_Impl: Sized { +pub trait IAntimalwareProvider_Impl: Sized + windows_core::IUnknownImpl { fn Scan(&self, stream: Option<&IAmsiStream>) -> windows_core::Result; fn CloseSession(&self, session: u64); fn DisplayName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAntimalwareProvider {} impl IAntimalwareProvider_Vtbl { - pub const fn new() -> IAntimalwareProvider_Vtbl - where - Identity: IAntimalwareProvider_Impl, - { - unsafe extern "system" fn Scan(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, result: *mut AMSI_RESULT) -> windows_core::HRESULT - where - Identity: IAntimalwareProvider_Impl, - { + pub const fn new() -> IAntimalwareProvider_Vtbl { + unsafe extern "system" fn Scan(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, result: *mut AMSI_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAntimalwareProvider_Impl::Scan(this, windows_core::from_raw_borrowed(&stream)) { Ok(ok__) => { @@ -110,17 +80,11 @@ impl IAntimalwareProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseSession(this: *mut core::ffi::c_void, session: u64) - where - Identity: IAntimalwareProvider_Impl, - { + unsafe extern "system" fn CloseSession(this: *mut core::ffi::c_void, session: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAntimalwareProvider_Impl::CloseSession(this, core::mem::transmute_copy(&session)) } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAntimalwareProvider_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAntimalwareProvider_Impl::DisplayName(this) { Ok(ok__) => { @@ -146,14 +110,8 @@ pub trait IAntimalwareProvider2_Impl: Sized + IAntimalwareProvider_Impl { } impl windows_core::RuntimeName for IAntimalwareProvider2 {} impl IAntimalwareProvider2_Vtbl { - pub const fn new() -> IAntimalwareProvider2_Vtbl - where - Identity: IAntimalwareProvider2_Impl, - { - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, buffer: *const core::ffi::c_void, length: u32, contentname: windows_core::PCWSTR, appname: windows_core::PCWSTR, presult: *mut AMSI_RESULT) -> windows_core::HRESULT - where - Identity: IAntimalwareProvider2_Impl, - { + pub const fn new() -> IAntimalwareProvider2_Vtbl { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, buffer: *const core::ffi::c_void, length: u32, contentname: windows_core::PCWSTR, appname: windows_core::PCWSTR, presult: *mut AMSI_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAntimalwareProvider2_Impl::Notify(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&length), core::mem::transmute(&contentname), core::mem::transmute(&appname)) { Ok(ok__) => { @@ -169,20 +127,14 @@ impl IAntimalwareProvider2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAntimalwareUacProvider_Impl: Sized { +pub trait IAntimalwareUacProvider_Impl: Sized + windows_core::IUnknownImpl { fn UacScan(&self, context: *const AMSI_UAC_REQUEST_CONTEXT) -> windows_core::Result; fn DisplayName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAntimalwareUacProvider {} impl IAntimalwareUacProvider_Vtbl { - pub const fn new() -> IAntimalwareUacProvider_Vtbl - where - Identity: IAntimalwareUacProvider_Impl, - { - unsafe extern "system" fn UacScan(this: *mut core::ffi::c_void, context: *const AMSI_UAC_REQUEST_CONTEXT, result: *mut AMSI_RESULT) -> windows_core::HRESULT - where - Identity: IAntimalwareUacProvider_Impl, - { + pub const fn new() -> IAntimalwareUacProvider_Vtbl { + unsafe extern "system" fn UacScan(this: *mut core::ffi::c_void, context: *const AMSI_UAC_REQUEST_CONTEXT, result: *mut AMSI_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAntimalwareUacProvider_Impl::UacScan(this, core::mem::transmute_copy(&context)) { Ok(ok__) => { @@ -192,10 +144,7 @@ impl IAntimalwareUacProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAntimalwareUacProvider_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAntimalwareUacProvider_Impl::DisplayName(this) { Ok(ok__) => { 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 267d1e43ad..ef23bb16e8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/impl.rs @@ -1,4 +1,4 @@ -pub trait IAssemblyCache_Impl: Sized { +pub trait IAssemblyCache_Impl: Sized + windows_core::IUnknownImpl { fn UninstallAssembly(&self, dwflags: u32, pszassemblyname: &windows_core::PCWSTR, prefdata: *mut FUSION_INSTALL_REFERENCE, puldisposition: *mut IASSEMBLYCACHE_UNINSTALL_DISPOSITION) -> windows_core::Result<()>; fn QueryAssemblyInfo(&self, dwflags: QUERYASMINFO_FLAGS, pszassemblyname: &windows_core::PCWSTR, pasminfo: *mut ASSEMBLY_INFO) -> windows_core::Result<()>; fn CreateAssemblyCacheItem(&self, dwflags: u32, pvreserved: *mut core::ffi::c_void, ppasmitem: *mut Option, pszassemblyname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -7,35 +7,20 @@ pub trait IAssemblyCache_Impl: Sized { } impl windows_core::RuntimeName for IAssemblyCache {} impl IAssemblyCache_Vtbl { - pub const fn new() -> IAssemblyCache_Vtbl - where - Identity: IAssemblyCache_Impl, - { - unsafe extern "system" fn UninstallAssembly(this: *mut core::ffi::c_void, dwflags: u32, pszassemblyname: windows_core::PCWSTR, prefdata: *mut FUSION_INSTALL_REFERENCE, puldisposition: *mut IASSEMBLYCACHE_UNINSTALL_DISPOSITION) -> windows_core::HRESULT - where - Identity: IAssemblyCache_Impl, - { + pub const fn new() -> IAssemblyCache_Vtbl { + unsafe extern "system" fn UninstallAssembly(this: *mut core::ffi::c_void, dwflags: u32, pszassemblyname: windows_core::PCWSTR, prefdata: *mut FUSION_INSTALL_REFERENCE, puldisposition: *mut IASSEMBLYCACHE_UNINSTALL_DISPOSITION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyCache_Impl::UninstallAssembly(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszassemblyname), core::mem::transmute_copy(&prefdata), core::mem::transmute_copy(&puldisposition)).into() } - unsafe extern "system" fn QueryAssemblyInfo(this: *mut core::ffi::c_void, dwflags: QUERYASMINFO_FLAGS, pszassemblyname: windows_core::PCWSTR, pasminfo: *mut ASSEMBLY_INFO) -> windows_core::HRESULT - where - Identity: IAssemblyCache_Impl, - { + unsafe extern "system" fn QueryAssemblyInfo(this: *mut core::ffi::c_void, dwflags: QUERYASMINFO_FLAGS, pszassemblyname: windows_core::PCWSTR, pasminfo: *mut ASSEMBLY_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyCache_Impl::QueryAssemblyInfo(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszassemblyname), core::mem::transmute_copy(&pasminfo)).into() } - unsafe extern "system" fn CreateAssemblyCacheItem(this: *mut core::ffi::c_void, dwflags: u32, pvreserved: *mut core::ffi::c_void, ppasmitem: *mut *mut core::ffi::c_void, pszassemblyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAssemblyCache_Impl, - { + unsafe extern "system" fn CreateAssemblyCacheItem(this: *mut core::ffi::c_void, dwflags: u32, pvreserved: *mut core::ffi::c_void, ppasmitem: *mut *mut core::ffi::c_void, pszassemblyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyCache_Impl::CreateAssemblyCacheItem(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pvreserved), core::mem::transmute_copy(&ppasmitem), core::mem::transmute(&pszassemblyname)).into() } - unsafe extern "system" fn Reserved(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssemblyCache_Impl, - { + unsafe extern "system" fn Reserved(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAssemblyCache_Impl::Reserved(this) { Ok(ok__) => { @@ -45,10 +30,7 @@ impl IAssemblyCache_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallAssembly(this: *mut core::ffi::c_void, dwflags: u32, pszmanifestfilepath: windows_core::PCWSTR, prefdata: *mut FUSION_INSTALL_REFERENCE) -> windows_core::HRESULT - where - Identity: IAssemblyCache_Impl, - { + unsafe extern "system" fn InstallAssembly(this: *mut core::ffi::c_void, dwflags: u32, pszmanifestfilepath: windows_core::PCWSTR, prefdata: *mut FUSION_INSTALL_REFERENCE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyCache_Impl::InstallAssembly(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszmanifestfilepath), core::mem::transmute_copy(&prefdata)).into() } @@ -66,7 +48,7 @@ impl IAssemblyCache_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAssemblyCacheItem_Impl: Sized { +pub trait IAssemblyCacheItem_Impl: Sized + windows_core::IUnknownImpl { fn CreateStream(&self, dwflags: u32, pszstreamname: &windows_core::PCWSTR, dwformat: u32, dwformatflags: u32, ppistream: *mut Option, pulimaxsize: *mut u64) -> windows_core::Result<()>; fn Commit(&self, dwflags: u32, puldisposition: *mut u32) -> windows_core::Result<()>; fn AbortItem(&self) -> windows_core::Result<()>; @@ -75,28 +57,16 @@ pub trait IAssemblyCacheItem_Impl: Sized { impl windows_core::RuntimeName for IAssemblyCacheItem {} #[cfg(feature = "Win32_System_Com")] impl IAssemblyCacheItem_Vtbl { - pub const fn new() -> IAssemblyCacheItem_Vtbl - where - Identity: IAssemblyCacheItem_Impl, - { - unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, dwflags: u32, pszstreamname: windows_core::PCWSTR, dwformat: u32, dwformatflags: u32, ppistream: *mut *mut core::ffi::c_void, pulimaxsize: *mut u64) -> windows_core::HRESULT - where - Identity: IAssemblyCacheItem_Impl, - { + pub const fn new() -> IAssemblyCacheItem_Vtbl { + unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, dwflags: u32, pszstreamname: windows_core::PCWSTR, dwformat: u32, dwformatflags: u32, ppistream: *mut *mut core::ffi::c_void, pulimaxsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyCacheItem_Impl::CreateStream(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszstreamname), core::mem::transmute_copy(&dwformat), core::mem::transmute_copy(&dwformatflags), core::mem::transmute_copy(&ppistream), core::mem::transmute_copy(&pulimaxsize)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, dwflags: u32, puldisposition: *mut u32) -> windows_core::HRESULT - where - Identity: IAssemblyCacheItem_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, dwflags: u32, puldisposition: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyCacheItem_Impl::Commit(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&puldisposition)).into() } - unsafe extern "system" fn AbortItem(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssemblyCacheItem_Impl, - { + unsafe extern "system" fn AbortItem(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyCacheItem_Impl::AbortItem(this).into() } @@ -111,7 +81,7 @@ impl IAssemblyCacheItem_Vtbl { iid == &::IID } } -pub trait IAssemblyName_Impl: Sized { +pub trait IAssemblyName_Impl: Sized + windows_core::IUnknownImpl { fn SetProperty(&self, propertyid: u32, pvproperty: *mut core::ffi::c_void, cbproperty: u32) -> windows_core::Result<()>; fn GetProperty(&self, propertyid: u32, pvproperty: *mut core::ffi::c_void, pcbproperty: *mut u32) -> windows_core::Result<()>; fn Finalize(&self) -> windows_core::Result<()>; @@ -124,70 +94,40 @@ pub trait IAssemblyName_Impl: Sized { } impl windows_core::RuntimeName for IAssemblyName {} impl IAssemblyName_Vtbl { - pub const fn new() -> IAssemblyName_Vtbl - where - Identity: IAssemblyName_Impl, - { - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, propertyid: u32, pvproperty: *mut core::ffi::c_void, cbproperty: u32) -> windows_core::HRESULT - where - Identity: IAssemblyName_Impl, - { + pub const fn new() -> IAssemblyName_Vtbl { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, propertyid: u32, pvproperty: *mut core::ffi::c_void, cbproperty: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyName_Impl::SetProperty(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&pvproperty), core::mem::transmute_copy(&cbproperty)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propertyid: u32, pvproperty: *mut core::ffi::c_void, pcbproperty: *mut u32) -> windows_core::HRESULT - where - Identity: IAssemblyName_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propertyid: u32, pvproperty: *mut core::ffi::c_void, pcbproperty: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyName_Impl::GetProperty(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&pvproperty), core::mem::transmute_copy(&pcbproperty)).into() } - unsafe extern "system" fn Finalize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssemblyName_Impl, - { + unsafe extern "system" fn Finalize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyName_Impl::Finalize(this).into() } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, szdisplayname: windows_core::PWSTR, pccdisplayname: *mut u32, dwdisplayflags: u32) -> windows_core::HRESULT - where - Identity: IAssemblyName_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, szdisplayname: windows_core::PWSTR, pccdisplayname: *mut u32, dwdisplayflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyName_Impl::GetDisplayName(this, core::mem::transmute_copy(&szdisplayname), core::mem::transmute_copy(&pccdisplayname), core::mem::transmute_copy(&dwdisplayflags)).into() } - unsafe extern "system" fn Reserved(this: *mut core::ffi::c_void, refiid: *const windows_core::GUID, punkreserved1: *mut core::ffi::c_void, punkreserved2: *mut core::ffi::c_void, szreserved: windows_core::PCWSTR, llreserved: i64, pvreserved: *mut core::ffi::c_void, cbreserved: u32, ppreserved: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssemblyName_Impl, - { + unsafe extern "system" fn Reserved(this: *mut core::ffi::c_void, refiid: *const windows_core::GUID, punkreserved1: *mut core::ffi::c_void, punkreserved2: *mut core::ffi::c_void, szreserved: windows_core::PCWSTR, llreserved: i64, pvreserved: *mut core::ffi::c_void, cbreserved: u32, ppreserved: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyName_Impl::Reserved(this, core::mem::transmute_copy(&refiid), windows_core::from_raw_borrowed(&punkreserved1), windows_core::from_raw_borrowed(&punkreserved2), core::mem::transmute(&szreserved), core::mem::transmute_copy(&llreserved), core::mem::transmute_copy(&pvreserved), core::mem::transmute_copy(&cbreserved), core::mem::transmute_copy(&ppreserved)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, lpcwbuffer: *mut u32, pwzname: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAssemblyName_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, lpcwbuffer: *mut u32, pwzname: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyName_Impl::GetName(this, core::mem::transmute_copy(&lpcwbuffer), core::mem::transmute_copy(&pwzname)).into() } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pdwversionhi: *mut u32, pdwversionlow: *mut u32) -> windows_core::HRESULT - where - Identity: IAssemblyName_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pdwversionhi: *mut u32, pdwversionlow: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyName_Impl::GetVersion(this, core::mem::transmute_copy(&pdwversionhi), core::mem::transmute_copy(&pdwversionlow)).into() } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pname: *mut core::ffi::c_void, dwcmpflags: u32) -> windows_core::HRESULT - where - Identity: IAssemblyName_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pname: *mut core::ffi::c_void, dwcmpflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssemblyName_Impl::IsEqual(this, windows_core::from_raw_borrowed(&pname), core::mem::transmute_copy(&dwcmpflags)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssemblyName_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAssemblyName_Impl::Clone(this) { Ok(ok__) => { @@ -215,7 +155,7 @@ impl IAssemblyName_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumMsmDependency_Impl: Sized { +pub trait IEnumMsmDependency_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cfetch: u32, rgmsmdependencies: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cskip: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -225,35 +165,20 @@ pub trait IEnumMsmDependency_Impl: Sized { impl windows_core::RuntimeName for IEnumMsmDependency {} #[cfg(feature = "Win32_System_Com")] impl IEnumMsmDependency_Vtbl { - pub const fn new() -> IEnumMsmDependency_Vtbl - where - Identity: IEnumMsmDependency_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfetch: u32, rgmsmdependencies: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumMsmDependency_Impl, - { + pub const fn new() -> IEnumMsmDependency_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfetch: u32, rgmsmdependencies: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMsmDependency_Impl::Next(this, core::mem::transmute_copy(&cfetch), core::mem::transmute_copy(&rgmsmdependencies), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cskip: u32) -> windows_core::HRESULT - where - Identity: IEnumMsmDependency_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cskip: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMsmDependency_Impl::Skip(this, core::mem::transmute_copy(&cskip)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMsmDependency_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMsmDependency_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pemsmdependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMsmDependency_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pemsmdependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumMsmDependency_Impl::Clone(this) { Ok(ok__) => { @@ -276,7 +201,7 @@ impl IEnumMsmDependency_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IEnumMsmError_Impl: Sized { +pub trait IEnumMsmError_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cfetch: u32, rgmsmerrors: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cskip: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -286,35 +211,20 @@ pub trait IEnumMsmError_Impl: Sized { impl windows_core::RuntimeName for IEnumMsmError {} #[cfg(feature = "Win32_System_Com")] impl IEnumMsmError_Vtbl { - pub const fn new() -> IEnumMsmError_Vtbl - where - Identity: IEnumMsmError_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfetch: u32, rgmsmerrors: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumMsmError_Impl, - { + pub const fn new() -> IEnumMsmError_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfetch: u32, rgmsmerrors: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMsmError_Impl::Next(this, core::mem::transmute_copy(&cfetch), core::mem::transmute_copy(&rgmsmerrors), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cskip: u32) -> windows_core::HRESULT - where - Identity: IEnumMsmError_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cskip: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMsmError_Impl::Skip(this, core::mem::transmute_copy(&cskip)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMsmError_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMsmError_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pemsmerrors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMsmError_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pemsmerrors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumMsmError_Impl::Clone(this) { Ok(ok__) => { @@ -336,7 +246,7 @@ impl IEnumMsmError_Vtbl { iid == &::IID } } -pub trait IEnumMsmString_Impl: Sized { +pub trait IEnumMsmString_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -344,35 +254,20 @@ pub trait IEnumMsmString_Impl: Sized { } impl windows_core::RuntimeName for IEnumMsmString {} impl IEnumMsmString_Vtbl { - pub const fn new() -> IEnumMsmString_Vtbl - where - Identity: IEnumMsmString_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfetch: u32, rgbstrstrings: *mut core::mem::MaybeUninit, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumMsmString_Impl, - { + pub const fn new() -> IEnumMsmString_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfetch: u32, rgbstrstrings: *mut core::mem::MaybeUninit, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMsmString_Impl::Next(this, core::mem::transmute_copy(&cfetch), core::mem::transmute_copy(&rgbstrstrings), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cskip: u32) -> windows_core::HRESULT - where - Identity: IEnumMsmString_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cskip: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMsmString_Impl::Skip(this, core::mem::transmute_copy(&cskip)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMsmString_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMsmString_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pemsmstrings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMsmString_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pemsmstrings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumMsmString_Impl::Clone(this) { Ok(ok__) => { @@ -404,14 +299,8 @@ pub trait IMsmDependencies_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMsmDependencies {} #[cfg(feature = "Win32_System_Com")] impl IMsmDependencies_Vtbl { - pub const fn new() -> IMsmDependencies_Vtbl - where - Identity: IMsmDependencies_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: i32, r#return: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmDependencies_Impl, - { + pub const fn new() -> IMsmDependencies_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: i32, r#return: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsmDependencies_Impl::get_Item(this, core::mem::transmute_copy(&item)) { Ok(ok__) => { @@ -421,17 +310,11 @@ impl IMsmDependencies_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IMsmDependencies_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmDependencies_Impl::Count(this, core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmDependencies_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsmDependencies_Impl::_NewEnum(this) { Ok(ok__) => { @@ -462,28 +345,16 @@ pub trait IMsmDependency_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMsmDependency {} #[cfg(feature = "Win32_System_Com")] impl IMsmDependency_Vtbl { - pub const fn new() -> IMsmDependency_Vtbl - where - Identity: IMsmDependency_Impl, - { - unsafe extern "system" fn Module(this: *mut core::ffi::c_void, module: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmDependency_Impl, - { + pub const fn new() -> IMsmDependency_Vtbl { + unsafe extern "system" fn Module(this: *mut core::ffi::c_void, module: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmDependency_Impl::Module(this, core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn Language(this: *mut core::ffi::c_void, language: *mut i16) -> windows_core::HRESULT - where - Identity: IMsmDependency_Impl, - { + unsafe extern "system" fn Language(this: *mut core::ffi::c_void, language: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmDependency_Impl::Language(this, core::mem::transmute_copy(&language)).into() } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, version: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmDependency_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, version: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmDependency_Impl::Version(this, core::mem::transmute_copy(&version)).into() } @@ -512,42 +383,24 @@ pub trait IMsmError_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMsmError {} #[cfg(feature = "Win32_System_Com")] impl IMsmError_Vtbl { - pub const fn new() -> IMsmError_Vtbl - where - Identity: IMsmError_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, errortype: *mut msmErrorType) -> windows_core::HRESULT - where - Identity: IMsmError_Impl, - { + pub const fn new() -> IMsmError_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, errortype: *mut msmErrorType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmError_Impl::Type(this, core::mem::transmute_copy(&errortype)).into() } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, errorpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmError_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, errorpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmError_Impl::Path(this, core::mem::transmute_copy(&errorpath)).into() } - unsafe extern "system" fn Language(this: *mut core::ffi::c_void, errorlanguage: *mut i16) -> windows_core::HRESULT - where - Identity: IMsmError_Impl, - { + unsafe extern "system" fn Language(this: *mut core::ffi::c_void, errorlanguage: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmError_Impl::Language(this, core::mem::transmute_copy(&errorlanguage)).into() } - unsafe extern "system" fn DatabaseTable(this: *mut core::ffi::c_void, errortable: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmError_Impl, - { + unsafe extern "system" fn DatabaseTable(this: *mut core::ffi::c_void, errortable: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmError_Impl::DatabaseTable(this, core::mem::transmute_copy(&errortable)).into() } - unsafe extern "system" fn DatabaseKeys(this: *mut core::ffi::c_void, errorkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmError_Impl, - { + unsafe extern "system" fn DatabaseKeys(this: *mut core::ffi::c_void, errorkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsmError_Impl::DatabaseKeys(this) { Ok(ok__) => { @@ -557,17 +410,11 @@ impl IMsmError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModuleTable(this: *mut core::ffi::c_void, errortable: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmError_Impl, - { + unsafe extern "system" fn ModuleTable(this: *mut core::ffi::c_void, errortable: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmError_Impl::ModuleTable(this, core::mem::transmute_copy(&errortable)).into() } - unsafe extern "system" fn ModuleKeys(this: *mut core::ffi::c_void, errorkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmError_Impl, - { + unsafe extern "system" fn ModuleKeys(this: *mut core::ffi::c_void, errorkeys: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsmError_Impl::ModuleKeys(this) { Ok(ok__) => { @@ -602,14 +449,8 @@ pub trait IMsmErrors_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMsmErrors {} #[cfg(feature = "Win32_System_Com")] impl IMsmErrors_Vtbl { - pub const fn new() -> IMsmErrors_Vtbl - where - Identity: IMsmErrors_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: i32, r#return: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmErrors_Impl, - { + pub const fn new() -> IMsmErrors_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: i32, r#return: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsmErrors_Impl::get_Item(this, core::mem::transmute_copy(&item)) { Ok(ok__) => { @@ -619,17 +460,11 @@ impl IMsmErrors_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IMsmErrors_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmErrors_Impl::Count(this, core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmErrors_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsmErrors_Impl::_NewEnum(this) { Ok(ok__) => { @@ -658,14 +493,8 @@ pub trait IMsmGetFiles_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMsmGetFiles {} #[cfg(feature = "Win32_System_Com")] impl IMsmGetFiles_Vtbl { - pub const fn new() -> IMsmGetFiles_Vtbl - where - Identity: IMsmGetFiles_Impl, - { - unsafe extern "system" fn ModuleFiles(this: *mut core::ffi::c_void, files: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmGetFiles_Impl, - { + pub const fn new() -> IMsmGetFiles_Vtbl { + unsafe extern "system" fn ModuleFiles(this: *mut core::ffi::c_void, files: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsmGetFiles_Impl::ModuleFiles(this) { Ok(ok__) => { @@ -701,63 +530,36 @@ pub trait IMsmMerge_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMsmMerge {} #[cfg(feature = "Win32_System_Com")] impl IMsmMerge_Vtbl { - pub const fn new() -> IMsmMerge_Vtbl - where - Identity: IMsmMerge_Impl, - { - unsafe extern "system" fn OpenDatabase(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + pub const fn new() -> IMsmMerge_Vtbl { + unsafe extern "system" fn OpenDatabase(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::OpenDatabase(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn OpenModule(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, language: i16) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn OpenModule(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, language: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::OpenModule(this, core::mem::transmute(&path), core::mem::transmute_copy(&language)).into() } - unsafe extern "system" fn CloseDatabase(this: *mut core::ffi::c_void, commit: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn CloseDatabase(this: *mut core::ffi::c_void, commit: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::CloseDatabase(this, core::mem::transmute_copy(&commit)).into() } - unsafe extern "system" fn CloseModule(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn CloseModule(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::CloseModule(this).into() } - unsafe extern "system" fn OpenLog(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn OpenLog(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::OpenLog(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn CloseLog(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn CloseLog(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::CloseLog(this).into() } - unsafe extern "system" fn Log(this: *mut core::ffi::c_void, message: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn Log(this: *mut core::ffi::c_void, message: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::Log(this, core::mem::transmute(&message)).into() } - unsafe extern "system" fn Errors(this: *mut core::ffi::c_void, errors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn Errors(this: *mut core::ffi::c_void, errors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsmMerge_Impl::Errors(this) { Ok(ok__) => { @@ -767,10 +569,7 @@ impl IMsmMerge_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Dependencies(this: *mut core::ffi::c_void, dependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn Dependencies(this: *mut core::ffi::c_void, dependencies: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsmMerge_Impl::Dependencies(this) { Ok(ok__) => { @@ -780,31 +579,19 @@ impl IMsmMerge_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, feature: core::mem::MaybeUninit, redirectdir: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, feature: core::mem::MaybeUninit, redirectdir: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::Merge(this, core::mem::transmute(&feature), core::mem::transmute(&redirectdir)).into() } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, feature: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, feature: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::Connect(this, core::mem::transmute(&feature)).into() } - unsafe extern "system" fn ExtractCAB(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn ExtractCAB(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::ExtractCAB(this, core::mem::transmute(&filename)).into() } - unsafe extern "system" fn ExtractFiles(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmMerge_Impl, - { + unsafe extern "system" fn ExtractFiles(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmMerge_Impl::ExtractFiles(this, core::mem::transmute(&path)).into() } @@ -839,28 +626,16 @@ pub trait IMsmStrings_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMsmStrings {} #[cfg(feature = "Win32_System_Com")] impl IMsmStrings_Vtbl { - pub const fn new() -> IMsmStrings_Vtbl - where - Identity: IMsmStrings_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: i32, r#return: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMsmStrings_Impl, - { + pub const fn new() -> IMsmStrings_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: i32, r#return: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmStrings_Impl::get_Item(this, core::mem::transmute_copy(&item), core::mem::transmute_copy(&r#return)).into() } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IMsmStrings_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMsmStrings_Impl::Count(this, core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMsmStrings_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMsmStrings_Impl::_NewEnum(this) { Ok(ok__) => { @@ -881,7 +656,7 @@ impl IMsmStrings_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPMApplicationInfo_Impl: Sized { +pub trait IPMApplicationInfo_Impl: Sized + windows_core::IUnknownImpl { fn ProductID(&self) -> windows_core::Result; fn InstanceID(&self) -> windows_core::Result; fn OfferID(&self) -> windows_core::Result; @@ -940,14 +715,8 @@ pub trait IPMApplicationInfo_Impl: Sized { } impl windows_core::RuntimeName for IPMApplicationInfo {} impl IPMApplicationInfo_Vtbl { - pub const fn new() -> IPMApplicationInfo_Vtbl - where - Identity: IPMApplicationInfo_Impl, - { - unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + pub const fn new() -> IPMApplicationInfo_Vtbl { + unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::ProductID(this) { Ok(ok__) => { @@ -957,10 +726,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstanceID(this: *mut core::ffi::c_void, pinstanceid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn InstanceID(this: *mut core::ffi::c_void, pinstanceid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::InstanceID(this) { Ok(ok__) => { @@ -970,10 +736,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OfferID(this: *mut core::ffi::c_void, pofferid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn OfferID(this: *mut core::ffi::c_void, pofferid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::OfferID(this) { Ok(ok__) => { @@ -983,31 +746,19 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultTask(this: *mut core::ffi::c_void, pdefaulttask: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn DefaultTask(this: *mut core::ffi::c_void, pdefaulttask: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::DefaultTask(this, core::mem::transmute_copy(&pdefaulttask)).into() } - unsafe extern "system" fn AppTitle(this: *mut core::ffi::c_void, papptitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn AppTitle(this: *mut core::ffi::c_void, papptitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::AppTitle(this, core::mem::transmute_copy(&papptitle)).into() } - unsafe extern "system" fn IconPath(this: *mut core::ffi::c_void, pappiconpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IconPath(this: *mut core::ffi::c_void, pappiconpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::IconPath(this, core::mem::transmute_copy(&pappiconpath)).into() } - unsafe extern "system" fn NotificationState(this: *mut core::ffi::c_void, pisnotified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn NotificationState(this: *mut core::ffi::c_void, pisnotified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::NotificationState(this) { Ok(ok__) => { @@ -1017,10 +768,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppInstallType(this: *mut core::ffi::c_void, pappinstalltype: *mut PM_APPLICATION_INSTALL_TYPE) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn AppInstallType(this: *mut core::ffi::c_void, pappinstalltype: *mut PM_APPLICATION_INSTALL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::AppInstallType(this) { Ok(ok__) => { @@ -1030,10 +778,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut PM_APPLICATION_STATE) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut PM_APPLICATION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::State(this) { Ok(ok__) => { @@ -1043,10 +788,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRevoked(this: *mut core::ffi::c_void, pisrevoked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsRevoked(this: *mut core::ffi::c_void, pisrevoked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsRevoked(this) { Ok(ok__) => { @@ -1056,10 +798,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateAvailable(this: *mut core::ffi::c_void, pisupdateavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn UpdateAvailable(this: *mut core::ffi::c_void, pisupdateavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::UpdateAvailable(this) { Ok(ok__) => { @@ -1069,10 +808,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallDate(this: *mut core::ffi::c_void, pinstalldate: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn InstallDate(this: *mut core::ffi::c_void, pinstalldate: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::InstallDate(this) { Ok(ok__) => { @@ -1082,10 +818,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsUninstallable(this: *mut core::ffi::c_void, pisuninstallable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsUninstallable(this: *mut core::ffi::c_void, pisuninstallable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsUninstallable(this) { Ok(ok__) => { @@ -1095,10 +828,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsThemable(this: *mut core::ffi::c_void, pisthemable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsThemable(this: *mut core::ffi::c_void, pisthemable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsThemable(this) { Ok(ok__) => { @@ -1108,10 +838,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsTrial(this: *mut core::ffi::c_void, pistrial: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsTrial(this: *mut core::ffi::c_void, pistrial: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsTrial(this) { Ok(ok__) => { @@ -1121,24 +848,15 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallPath(this: *mut core::ffi::c_void, pinstallpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn InstallPath(this: *mut core::ffi::c_void, pinstallpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::InstallPath(this, core::mem::transmute_copy(&pinstallpath)).into() } - unsafe extern "system" fn DataRoot(this: *mut core::ffi::c_void, pdataroot: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn DataRoot(this: *mut core::ffi::c_void, pdataroot: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::DataRoot(this, core::mem::transmute_copy(&pdataroot)).into() } - unsafe extern "system" fn Genre(this: *mut core::ffi::c_void, pgenre: *mut PM_APP_GENRE) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn Genre(this: *mut core::ffi::c_void, pgenre: *mut PM_APP_GENRE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::Genre(this) { Ok(ok__) => { @@ -1148,45 +866,27 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Publisher(this: *mut core::ffi::c_void, ppublisher: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn Publisher(this: *mut core::ffi::c_void, ppublisher: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::Publisher(this, core::mem::transmute_copy(&ppublisher)).into() } - unsafe extern "system" fn Author(this: *mut core::ffi::c_void, pauthor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn Author(this: *mut core::ffi::c_void, pauthor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::Author(this, core::mem::transmute_copy(&pauthor)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::Description(this, core::mem::transmute_copy(&pdescription)).into() } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::Version(this, core::mem::transmute_copy(&pversion)).into() } - unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::get_InvocationInfo(this, core::mem::transmute_copy(&pimageurn), core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn AppPlatMajorVersion(this: *mut core::ffi::c_void, pmajorver: *mut u8) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn AppPlatMajorVersion(this: *mut core::ffi::c_void, pmajorver: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::AppPlatMajorVersion(this) { Ok(ok__) => { @@ -1196,10 +896,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppPlatMinorVersion(this: *mut core::ffi::c_void, pminorver: *mut u8) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn AppPlatMinorVersion(this: *mut core::ffi::c_void, pminorver: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::AppPlatMinorVersion(this) { Ok(ok__) => { @@ -1209,10 +906,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PublisherID(this: *mut core::ffi::c_void, ppublisherid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn PublisherID(this: *mut core::ffi::c_void, ppublisherid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::PublisherID(this) { Ok(ok__) => { @@ -1222,10 +916,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsMultiCore(this: *mut core::ffi::c_void, pismulticore: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsMultiCore(this: *mut core::ffi::c_void, pismulticore: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsMultiCore(this) { Ok(ok__) => { @@ -1235,17 +926,11 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SID(this: *mut core::ffi::c_void, psid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn SID(this: *mut core::ffi::c_void, psid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::SID(this, core::mem::transmute_copy(&psid)).into() } - unsafe extern "system" fn AppPlatMajorVersionLightUp(this: *mut core::ffi::c_void, pmajorver: *mut u8) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn AppPlatMajorVersionLightUp(this: *mut core::ffi::c_void, pmajorver: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::AppPlatMajorVersionLightUp(this) { Ok(ok__) => { @@ -1255,10 +940,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AppPlatMinorVersionLightUp(this: *mut core::ffi::c_void, pminorver: *mut u8) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn AppPlatMinorVersionLightUp(this: *mut core::ffi::c_void, pminorver: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::AppPlatMinorVersionLightUp(this) { Ok(ok__) => { @@ -1268,38 +950,23 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_UpdateAvailable(this: *mut core::ffi::c_void, isupdateavailable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn set_UpdateAvailable(this: *mut core::ffi::c_void, isupdateavailable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_UpdateAvailable(this, core::mem::transmute_copy(&isupdateavailable)).into() } - unsafe extern "system" fn set_NotificationState(this: *mut core::ffi::c_void, isnotified: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn set_NotificationState(this: *mut core::ffi::c_void, isnotified: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_NotificationState(this, core::mem::transmute_copy(&isnotified)).into() } - unsafe extern "system" fn set_IconPath(this: *mut core::ffi::c_void, appiconpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn set_IconPath(this: *mut core::ffi::c_void, appiconpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_IconPath(this, core::mem::transmute(&appiconpath)).into() } - unsafe extern "system" fn set_UninstallableState(this: *mut core::ffi::c_void, isuninstallable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn set_UninstallableState(this: *mut core::ffi::c_void, isuninstallable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_UninstallableState(this, core::mem::transmute_copy(&isuninstallable)).into() } - unsafe extern "system" fn IsPinableOnKidZone(this: *mut core::ffi::c_void, pispinable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsPinableOnKidZone(this: *mut core::ffi::c_void, pispinable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsPinableOnKidZone(this) { Ok(ok__) => { @@ -1309,10 +976,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOriginallyPreInstalled(this: *mut core::ffi::c_void, pispreinstalled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsOriginallyPreInstalled(this: *mut core::ffi::c_void, pispreinstalled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsOriginallyPreInstalled(this) { Ok(ok__) => { @@ -1322,10 +986,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsInstallOnSD(this: *mut core::ffi::c_void, pisinstallonsd: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsInstallOnSD(this: *mut core::ffi::c_void, pisinstallonsd: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsInstallOnSD(this) { Ok(ok__) => { @@ -1335,10 +996,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOptoutOnSD(this: *mut core::ffi::c_void, pisoptoutonsd: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsOptoutOnSD(this: *mut core::ffi::c_void, pisoptoutonsd: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsOptoutOnSD(this) { Ok(ok__) => { @@ -1348,10 +1006,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOptoutBackupRestore(this: *mut core::ffi::c_void, pisoptoutbackuprestore: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsOptoutBackupRestore(this: *mut core::ffi::c_void, pisoptoutbackuprestore: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsOptoutBackupRestore(this) { Ok(ok__) => { @@ -1361,24 +1016,15 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_EnterpriseDisabled(this: *mut core::ffi::c_void, isdisabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn set_EnterpriseDisabled(this: *mut core::ffi::c_void, isdisabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_EnterpriseDisabled(this, core::mem::transmute_copy(&isdisabled)).into() } - unsafe extern "system" fn set_EnterpriseUninstallable(this: *mut core::ffi::c_void, isuninstallable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn set_EnterpriseUninstallable(this: *mut core::ffi::c_void, isuninstallable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_EnterpriseUninstallable(this, core::mem::transmute_copy(&isuninstallable)).into() } - unsafe extern "system" fn EnterpriseDisabled(this: *mut core::ffi::c_void, isdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn EnterpriseDisabled(this: *mut core::ffi::c_void, isdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::EnterpriseDisabled(this) { Ok(ok__) => { @@ -1388,10 +1034,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnterpriseUninstallable(this: *mut core::ffi::c_void, isuninstallable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn EnterpriseUninstallable(this: *mut core::ffi::c_void, isuninstallable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::EnterpriseUninstallable(this) { Ok(ok__) => { @@ -1401,10 +1044,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsVisibleOnAppList(this: *mut core::ffi::c_void, pisvisible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsVisibleOnAppList(this: *mut core::ffi::c_void, pisvisible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsVisibleOnAppList(this) { Ok(ok__) => { @@ -1414,10 +1054,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsInboxApp(this: *mut core::ffi::c_void, pisinboxapp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsInboxApp(this: *mut core::ffi::c_void, pisinboxapp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsInboxApp(this) { Ok(ok__) => { @@ -1427,10 +1064,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StorageID(this: *mut core::ffi::c_void, pstorageid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn StorageID(this: *mut core::ffi::c_void, pstorageid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::StorageID(this) { Ok(ok__) => { @@ -1440,17 +1074,11 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartAppBlob(this: *mut core::ffi::c_void, pblob: *mut PM_STARTAPPBLOB) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn StartAppBlob(this: *mut core::ffi::c_void, pblob: *mut PM_STARTAPPBLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::StartAppBlob(this, core::mem::transmute_copy(&pblob)).into() } - unsafe extern "system" fn IsMovable(this: *mut core::ffi::c_void, pismovable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsMovable(this: *mut core::ffi::c_void, pismovable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsMovable(this) { Ok(ok__) => { @@ -1460,10 +1088,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeploymentAppEnumerationHubFilter(this: *mut core::ffi::c_void, hubtype: *mut PM_TILE_HUBTYPE) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn DeploymentAppEnumerationHubFilter(this: *mut core::ffi::c_void, hubtype: *mut PM_TILE_HUBTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::DeploymentAppEnumerationHubFilter(this) { Ok(ok__) => { @@ -1473,10 +1098,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifiedDate(this: *mut core::ffi::c_void, pmodifieddate: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn ModifiedDate(this: *mut core::ffi::c_void, pmodifieddate: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::ModifiedDate(this) { Ok(ok__) => { @@ -1486,10 +1108,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOriginallyRestored(this: *mut core::ffi::c_void, pisrestored: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsOriginallyRestored(this: *mut core::ffi::c_void, pisrestored: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsOriginallyRestored(this) { Ok(ok__) => { @@ -1499,10 +1118,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShouldDeferMdilBind(this: *mut core::ffi::c_void, pfdefermdilbind: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn ShouldDeferMdilBind(this: *mut core::ffi::c_void, pfdefermdilbind: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::ShouldDeferMdilBind(this) { Ok(ok__) => { @@ -1512,10 +1128,7 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFullyPreInstall(this: *mut core::ffi::c_void, pfisfullypreinstall: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn IsFullyPreInstall(this: *mut core::ffi::c_void, pfisfullypreinstall: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsFullyPreInstall(this) { Ok(ok__) => { @@ -1525,17 +1138,11 @@ impl IPMApplicationInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_IsMdilMaintenanceNeeded(this: *mut core::ffi::c_void, fismdilmaintenanceneeded: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn set_IsMdilMaintenanceNeeded(this: *mut core::ffi::c_void, fismdilmaintenanceneeded: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_IsMdilMaintenanceNeeded(this, core::mem::transmute_copy(&fismdilmaintenanceneeded)).into() } - unsafe extern "system" fn set_Title(this: *mut core::ffi::c_void, apptitle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMApplicationInfo_Impl, - { + unsafe extern "system" fn set_Title(this: *mut core::ffi::c_void, apptitle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_Title(this, core::mem::transmute(&apptitle)).into() } @@ -1602,19 +1209,13 @@ impl IPMApplicationInfo_Vtbl { iid == &::IID } } -pub trait IPMApplicationInfoEnumerator_Impl: Sized { +pub trait IPMApplicationInfoEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMApplicationInfoEnumerator {} impl IPMApplicationInfoEnumerator_Vtbl { - pub const fn new() -> IPMApplicationInfoEnumerator_Vtbl - where - Identity: IPMApplicationInfoEnumerator_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppappinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMApplicationInfoEnumerator_Impl, - { + pub const fn new() -> IPMApplicationInfoEnumerator_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppappinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfoEnumerator_Impl::Next(this) { Ok(ok__) => { @@ -1630,7 +1231,7 @@ impl IPMApplicationInfoEnumerator_Vtbl { iid == &::IID } } -pub trait IPMBackgroundServiceAgentInfo_Impl: Sized { +pub trait IPMBackgroundServiceAgentInfo_Impl: Sized + windows_core::IUnknownImpl { fn ProductID(&self) -> windows_core::Result; fn TaskID(&self, ptaskid: *mut windows_core::BSTR) -> windows_core::Result<()>; fn BSAID(&self) -> windows_core::Result; @@ -1648,14 +1249,8 @@ pub trait IPMBackgroundServiceAgentInfo_Impl: Sized { } impl windows_core::RuntimeName for IPMBackgroundServiceAgentInfo {} impl IPMBackgroundServiceAgentInfo_Vtbl { - pub const fn new() -> IPMBackgroundServiceAgentInfo_Vtbl - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { - unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + pub const fn new() -> IPMBackgroundServiceAgentInfo_Vtbl { + unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfo_Impl::ProductID(this) { Ok(ok__) => { @@ -1665,17 +1260,11 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TaskID(this: *mut core::ffi::c_void, ptaskid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn TaskID(this: *mut core::ffi::c_void, ptaskid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundServiceAgentInfo_Impl::TaskID(this, core::mem::transmute_copy(&ptaskid)).into() } - unsafe extern "system" fn BSAID(this: *mut core::ffi::c_void, pbsaid: *mut u32) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn BSAID(this: *mut core::ffi::c_void, pbsaid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfo_Impl::BSAID(this) { Ok(ok__) => { @@ -1685,38 +1274,23 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BGSpecifier(this: *mut core::ffi::c_void, pbgspecifier: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn BGSpecifier(this: *mut core::ffi::c_void, pbgspecifier: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundServiceAgentInfo_Impl::BGSpecifier(this, core::mem::transmute_copy(&pbgspecifier)).into() } - unsafe extern "system" fn BGName(this: *mut core::ffi::c_void, pbgname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn BGName(this: *mut core::ffi::c_void, pbgname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundServiceAgentInfo_Impl::BGName(this, core::mem::transmute_copy(&pbgname)).into() } - unsafe extern "system" fn BGSource(this: *mut core::ffi::c_void, pbgsource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn BGSource(this: *mut core::ffi::c_void, pbgsource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundServiceAgentInfo_Impl::BGSource(this, core::mem::transmute_copy(&pbgsource)).into() } - unsafe extern "system" fn BGType(this: *mut core::ffi::c_void, pbgtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn BGType(this: *mut core::ffi::c_void, pbgtype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundServiceAgentInfo_Impl::BGType(this, core::mem::transmute_copy(&pbgtype)).into() } - unsafe extern "system" fn IsPeriodic(this: *mut core::ffi::c_void, pisperiodic: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn IsPeriodic(this: *mut core::ffi::c_void, pisperiodic: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfo_Impl::IsPeriodic(this) { Ok(ok__) => { @@ -1726,10 +1300,7 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsScheduled(this: *mut core::ffi::c_void, pisscheduled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn IsScheduled(this: *mut core::ffi::c_void, pisscheduled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfo_Impl::IsScheduled(this) { Ok(ok__) => { @@ -1739,10 +1310,7 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsScheduleAllowed(this: *mut core::ffi::c_void, pisscheduleallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn IsScheduleAllowed(this: *mut core::ffi::c_void, pisscheduleallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfo_Impl::IsScheduleAllowed(this) { Ok(ok__) => { @@ -1752,17 +1320,11 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundServiceAgentInfo_Impl::Description(this, core::mem::transmute_copy(&pdescription)).into() } - unsafe extern "system" fn IsLaunchOnBoot(this: *mut core::ffi::c_void, plaunchonboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn IsLaunchOnBoot(this: *mut core::ffi::c_void, plaunchonboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfo_Impl::IsLaunchOnBoot(this) { Ok(ok__) => { @@ -1772,17 +1334,11 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_IsScheduled(this: *mut core::ffi::c_void, isscheduled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn set_IsScheduled(this: *mut core::ffi::c_void, isscheduled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundServiceAgentInfo_Impl::set_IsScheduled(this, core::mem::transmute_copy(&isscheduled)).into() } - unsafe extern "system" fn set_IsScheduleAllowed(this: *mut core::ffi::c_void, isscheduleallowed: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfo_Impl, - { + unsafe extern "system" fn set_IsScheduleAllowed(this: *mut core::ffi::c_void, isscheduleallowed: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundServiceAgentInfo_Impl::set_IsScheduleAllowed(this, core::mem::transmute_copy(&isscheduleallowed)).into() } @@ -1808,19 +1364,13 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { iid == &::IID } } -pub trait IPMBackgroundServiceAgentInfoEnumerator_Impl: Sized { +pub trait IPMBackgroundServiceAgentInfoEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMBackgroundServiceAgentInfoEnumerator {} impl IPMBackgroundServiceAgentInfoEnumerator_Vtbl { - pub const fn new() -> IPMBackgroundServiceAgentInfoEnumerator_Vtbl - where - Identity: IPMBackgroundServiceAgentInfoEnumerator_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppbsainfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMBackgroundServiceAgentInfoEnumerator_Impl, - { + pub const fn new() -> IPMBackgroundServiceAgentInfoEnumerator_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppbsainfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfoEnumerator_Impl::Next(this) { Ok(ok__) => { @@ -1836,7 +1386,7 @@ impl IPMBackgroundServiceAgentInfoEnumerator_Vtbl { iid == &::IID } } -pub trait IPMBackgroundWorkerInfo_Impl: Sized { +pub trait IPMBackgroundWorkerInfo_Impl: Sized + windows_core::IUnknownImpl { fn ProductID(&self) -> 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<()>; @@ -1846,14 +1396,8 @@ pub trait IPMBackgroundWorkerInfo_Impl: Sized { } impl windows_core::RuntimeName for IPMBackgroundWorkerInfo {} impl IPMBackgroundWorkerInfo_Vtbl { - pub const fn new() -> IPMBackgroundWorkerInfo_Vtbl - where - Identity: IPMBackgroundWorkerInfo_Impl, - { - unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMBackgroundWorkerInfo_Impl, - { + pub const fn new() -> IPMBackgroundWorkerInfo_Vtbl { + unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundWorkerInfo_Impl::ProductID(this) { Ok(ok__) => { @@ -1863,24 +1407,15 @@ impl IPMBackgroundWorkerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TaskID(this: *mut core::ffi::c_void, ptaskid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMBackgroundWorkerInfo_Impl, - { + unsafe extern "system" fn TaskID(this: *mut core::ffi::c_void, ptaskid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundWorkerInfo_Impl::TaskID(this, core::mem::transmute_copy(&ptaskid)).into() } - unsafe extern "system" fn BGName(this: *mut core::ffi::c_void, pbgname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMBackgroundWorkerInfo_Impl, - { + unsafe extern "system" fn BGName(this: *mut core::ffi::c_void, pbgname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundWorkerInfo_Impl::BGName(this, core::mem::transmute_copy(&pbgname)).into() } - unsafe extern "system" fn MaxStartupLatency(this: *mut core::ffi::c_void, pmaxstartuplatency: *mut u32) -> windows_core::HRESULT - where - Identity: IPMBackgroundWorkerInfo_Impl, - { + unsafe extern "system" fn MaxStartupLatency(this: *mut core::ffi::c_void, pmaxstartuplatency: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundWorkerInfo_Impl::MaxStartupLatency(this) { Ok(ok__) => { @@ -1890,10 +1425,7 @@ impl IPMBackgroundWorkerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpectedRuntime(this: *mut core::ffi::c_void, pexpectedruntime: *mut u32) -> windows_core::HRESULT - where - Identity: IPMBackgroundWorkerInfo_Impl, - { + unsafe extern "system" fn ExpectedRuntime(this: *mut core::ffi::c_void, pexpectedruntime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundWorkerInfo_Impl::ExpectedRuntime(this) { Ok(ok__) => { @@ -1903,10 +1435,7 @@ impl IPMBackgroundWorkerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsBootWorker(this: *mut core::ffi::c_void, pisbootworker: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMBackgroundWorkerInfo_Impl, - { + unsafe extern "system" fn IsBootWorker(this: *mut core::ffi::c_void, pisbootworker: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundWorkerInfo_Impl::IsBootWorker(this) { Ok(ok__) => { @@ -1930,19 +1459,13 @@ impl IPMBackgroundWorkerInfo_Vtbl { iid == &::IID } } -pub trait IPMBackgroundWorkerInfoEnumerator_Impl: Sized { +pub trait IPMBackgroundWorkerInfoEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMBackgroundWorkerInfoEnumerator {} impl IPMBackgroundWorkerInfoEnumerator_Vtbl { - pub const fn new() -> IPMBackgroundWorkerInfoEnumerator_Vtbl - where - Identity: IPMBackgroundWorkerInfoEnumerator_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppbwinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMBackgroundWorkerInfoEnumerator_Impl, - { + pub const fn new() -> IPMBackgroundWorkerInfoEnumerator_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppbwinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundWorkerInfoEnumerator_Impl::Next(this) { Ok(ok__) => { @@ -1959,7 +1482,7 @@ impl IPMBackgroundWorkerInfoEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IPMDeploymentManager_Impl: Sized { +pub trait IPMDeploymentManager_Impl: Sized + windows_core::IUnknownImpl { fn ReportDownloadBegin(&self, productid: &windows_core::GUID) -> windows_core::Result<()>; fn ReportDownloadProgress(&self, productid: &windows_core::GUID, usprogress: u16) -> windows_core::Result<()>; fn ReportDownloadComplete(&self, productid: &windows_core::GUID, hrresult: windows_core::HRESULT) -> windows_core::Result<()>; @@ -2000,168 +1523,96 @@ pub trait IPMDeploymentManager_Impl: Sized { impl windows_core::RuntimeName for IPMDeploymentManager {} #[cfg(feature = "Win32_System_Com")] impl IPMDeploymentManager_Vtbl { - pub const fn new() -> IPMDeploymentManager_Vtbl - where - Identity: IPMDeploymentManager_Impl, - { - unsafe extern "system" fn ReportDownloadBegin(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + pub const fn new() -> IPMDeploymentManager_Vtbl { + unsafe extern "system" fn ReportDownloadBegin(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::ReportDownloadBegin(this, core::mem::transmute(&productid)).into() } - unsafe extern "system" fn ReportDownloadProgress(this: *mut core::ffi::c_void, productid: windows_core::GUID, usprogress: u16) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn ReportDownloadProgress(this: *mut core::ffi::c_void, productid: windows_core::GUID, usprogress: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::ReportDownloadProgress(this, core::mem::transmute(&productid), core::mem::transmute_copy(&usprogress)).into() } - unsafe extern "system" fn ReportDownloadComplete(this: *mut core::ffi::c_void, productid: windows_core::GUID, hrresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn ReportDownloadComplete(this: *mut core::ffi::c_void, productid: windows_core::GUID, hrresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::ReportDownloadComplete(this, core::mem::transmute(&productid), core::mem::transmute_copy(&hrresult)).into() } - unsafe extern "system" fn BeginInstall(this: *mut core::ffi::c_void, pinstallinfo: *const PM_INSTALLINFO) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginInstall(this: *mut core::ffi::c_void, pinstallinfo: *const PM_INSTALLINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginInstall(this, core::mem::transmute_copy(&pinstallinfo)).into() } - unsafe extern "system" fn BeginUpdate(this: *mut core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginUpdate(this: *mut core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginUpdate(this, core::mem::transmute_copy(&pupdateinfo)).into() } - unsafe extern "system" fn BeginDeployPackage(this: *mut core::ffi::c_void, pinstallinfo: *const PM_INSTALLINFO) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginDeployPackage(this: *mut core::ffi::c_void, pinstallinfo: *const PM_INSTALLINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginDeployPackage(this, core::mem::transmute_copy(&pinstallinfo)).into() } - unsafe extern "system" fn BeginUpdateDeployedPackageLegacy(this: *mut core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO_LEGACY) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginUpdateDeployedPackageLegacy(this: *mut core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO_LEGACY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginUpdateDeployedPackageLegacy(this, core::mem::transmute_copy(&pupdateinfo)).into() } - unsafe extern "system" fn BeginUninstall(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginUninstall(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginUninstall(this, core::mem::transmute(&productid)).into() } - unsafe extern "system" fn BeginEnterpriseAppInstall(this: *mut core::ffi::c_void, pinstallinfo: *const PM_INSTALLINFO) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginEnterpriseAppInstall(this: *mut core::ffi::c_void, pinstallinfo: *const PM_INSTALLINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginEnterpriseAppInstall(this, core::mem::transmute_copy(&pinstallinfo)).into() } - unsafe extern "system" fn BeginEnterpriseAppUpdate(this: *mut core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginEnterpriseAppUpdate(this: *mut core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginEnterpriseAppUpdate(this, core::mem::transmute_copy(&pupdateinfo)).into() } - unsafe extern "system" fn BeginUpdateLicense(this: *mut core::ffi::c_void, productid: windows_core::GUID, offerid: windows_core::GUID, pblicense: *const u8, cblicense: u32) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginUpdateLicense(this: *mut core::ffi::c_void, productid: windows_core::GUID, offerid: windows_core::GUID, pblicense: *const u8, cblicense: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginUpdateLicense(this, core::mem::transmute(&productid), core::mem::transmute(&offerid), core::mem::transmute_copy(&pblicense), core::mem::transmute_copy(&cblicense)).into() } - unsafe extern "system" fn GetLicenseChallenge(this: *mut core::ffi::c_void, packagepath: core::mem::MaybeUninit, 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 - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn GetLicenseChallenge(this: *mut core::ffi::c_void, packagepath: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::GetLicenseChallenge(this, 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)).into() } - unsafe extern "system" fn GetLicenseChallengeByProductID(this: *mut core::ffi::c_void, productid: windows_core::GUID, ppbchallenge: *mut *mut u8, pcblicense: *mut u32) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn GetLicenseChallengeByProductID(this: *mut core::ffi::c_void, productid: windows_core::GUID, ppbchallenge: *mut *mut u8, pcblicense: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::GetLicenseChallengeByProductID(this, core::mem::transmute(&productid), core::mem::transmute_copy(&ppbchallenge), core::mem::transmute_copy(&pcblicense)).into() } - unsafe extern "system" fn GetLicenseChallengeByProductID2(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 - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn GetLicenseChallengeByProductID2(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::GetLicenseChallengeByProductID2(this, core::mem::transmute(&productid), core::mem::transmute_copy(&ppbchallenge), core::mem::transmute_copy(&pcblicense), 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)).into() } - unsafe extern "system" fn RevokeLicense(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn RevokeLicense(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::RevokeLicense(this, core::mem::transmute(&productid)).into() } - unsafe extern "system" fn RebindMdilBinaries(this: *mut core::ffi::c_void, productid: windows_core::GUID, filenames: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn RebindMdilBinaries(this: *mut core::ffi::c_void, productid: windows_core::GUID, filenames: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::RebindMdilBinaries(this, core::mem::transmute(&productid), core::mem::transmute_copy(&filenames)).into() } - unsafe extern "system" fn RebindAllMdilBinaries(this: *mut core::ffi::c_void, productid: windows_core::GUID, instanceid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn RebindAllMdilBinaries(this: *mut core::ffi::c_void, productid: windows_core::GUID, instanceid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::RebindAllMdilBinaries(this, core::mem::transmute(&productid), core::mem::transmute(&instanceid)).into() } - unsafe extern "system" fn RegenerateXbf(this: *mut core::ffi::c_void, productid: windows_core::GUID, assemblypaths: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn RegenerateXbf(this: *mut core::ffi::c_void, productid: windows_core::GUID, assemblypaths: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::RegenerateXbf(this, core::mem::transmute(&productid), core::mem::transmute_copy(&assemblypaths)).into() } - unsafe extern "system" fn GenerateXbfForCurrentLocale(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn GenerateXbfForCurrentLocale(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::GenerateXbfForCurrentLocale(this, core::mem::transmute(&productid)).into() } - unsafe extern "system" fn BeginProvision(this: *mut core::ffi::c_void, productid: windows_core::GUID, xmlpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginProvision(this: *mut core::ffi::c_void, productid: windows_core::GUID, xmlpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginProvision(this, core::mem::transmute(&productid), core::mem::transmute(&xmlpath)).into() } - unsafe extern "system" fn BeginDeprovision(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginDeprovision(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginDeprovision(this, core::mem::transmute(&productid)).into() } - unsafe extern "system" fn ReindexSQLCEDatabases(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn ReindexSQLCEDatabases(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::ReindexSQLCEDatabases(this, core::mem::transmute(&productid)).into() } - unsafe extern "system" fn SetApplicationsNeedMaintenance(this: *mut core::ffi::c_void, requiredmaintenanceoperations: u32, pcapplications: *mut u32) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn SetApplicationsNeedMaintenance(this: *mut core::ffi::c_void, requiredmaintenanceoperations: u32, pcapplications: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMDeploymentManager_Impl::SetApplicationsNeedMaintenance(this, core::mem::transmute_copy(&requiredmaintenanceoperations)) { Ok(ok__) => { @@ -2171,17 +1622,11 @@ impl IPMDeploymentManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateChamberProfile(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn UpdateChamberProfile(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::UpdateChamberProfile(this, core::mem::transmute(&productid)).into() } - unsafe extern "system" fn EnterprisePolicyIsApplicationAllowed(this: *mut core::ffi::c_void, productid: windows_core::GUID, publishername: windows_core::PCWSTR, pisallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn EnterprisePolicyIsApplicationAllowed(this: *mut core::ffi::c_void, productid: windows_core::GUID, publishername: windows_core::PCWSTR, pisallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMDeploymentManager_Impl::EnterprisePolicyIsApplicationAllowed(this, core::mem::transmute(&productid), core::mem::transmute(&publishername)) { Ok(ok__) => { @@ -2191,73 +1636,43 @@ impl IPMDeploymentManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginUpdateDeployedPackage(this: *mut core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginUpdateDeployedPackage(this: *mut core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginUpdateDeployedPackage(this, core::mem::transmute_copy(&pupdateinfo)).into() } - unsafe extern "system" fn ReportRestoreCancelled(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn ReportRestoreCancelled(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::ReportRestoreCancelled(this, core::mem::transmute(&productid)).into() } - unsafe extern "system" fn ResolveResourceString(this: *mut core::ffi::c_void, resourcestring: windows_core::PCWSTR, presolvedresourcestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn ResolveResourceString(this: *mut core::ffi::c_void, resourcestring: windows_core::PCWSTR, presolvedresourcestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::ResolveResourceString(this, core::mem::transmute(&resourcestring), core::mem::transmute_copy(&presolvedresourcestring)).into() } - unsafe extern "system" fn UpdateCapabilitiesForModernApps(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn UpdateCapabilitiesForModernApps(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::UpdateCapabilitiesForModernApps(this).into() } - unsafe extern "system" fn ReportDownloadStatusUpdate(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn ReportDownloadStatusUpdate(this: *mut core::ffi::c_void, productid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::ReportDownloadStatusUpdate(this, core::mem::transmute(&productid)).into() } - unsafe extern "system" fn BeginUninstallWithOptions(this: *mut core::ffi::c_void, productid: windows_core::GUID, removaloptions: u32) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BeginUninstallWithOptions(this: *mut core::ffi::c_void, productid: windows_core::GUID, removaloptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BeginUninstallWithOptions(this, core::mem::transmute(&productid), core::mem::transmute_copy(&removaloptions)).into() } - unsafe extern "system" fn BindDeferredMdilBinaries(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn BindDeferredMdilBinaries(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::BindDeferredMdilBinaries(this).into() } - unsafe extern "system" fn GenerateXamlLightupXbfForCurrentLocale(this: *mut core::ffi::c_void, packagefamilyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn GenerateXamlLightupXbfForCurrentLocale(this: *mut core::ffi::c_void, packagefamilyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::GenerateXamlLightupXbfForCurrentLocale(this, core::mem::transmute(&packagefamilyname)).into() } - unsafe extern "system" fn AddLicenseForAppx(this: *mut core::ffi::c_void, productid: windows_core::GUID, pblicense: *const u8, cblicense: u32, pbplayreadyheader: *const u8, cbplayreadyheader: u32) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn AddLicenseForAppx(this: *mut core::ffi::c_void, productid: windows_core::GUID, pblicense: *const u8, cblicense: u32, pbplayreadyheader: *const u8, cbplayreadyheader: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::AddLicenseForAppx(this, core::mem::transmute(&productid), core::mem::transmute_copy(&pblicense), core::mem::transmute_copy(&cblicense), core::mem::transmute_copy(&pbplayreadyheader), core::mem::transmute_copy(&cbplayreadyheader)).into() } - unsafe extern "system" fn FixJunctionsForAppsOnSDCard(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMDeploymentManager_Impl, - { + unsafe extern "system" fn FixJunctionsForAppsOnSDCard(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMDeploymentManager_Impl::FixJunctionsForAppsOnSDCard(this).into() } @@ -2304,7 +1719,7 @@ impl IPMDeploymentManager_Vtbl { iid == &::IID } } -pub trait IPMEnumerationManager_Impl: Sized { +pub trait IPMEnumerationManager_Impl: Sized + windows_core::IUnknownImpl { fn get_AllApplications(&self, ppappenum: *mut Option, filter: &PM_ENUM_FILTER) -> windows_core::Result<()>; fn get_AllTiles(&self, pptileenum: *mut Option, filter: &PM_ENUM_FILTER) -> windows_core::Result<()>; fn get_AllTasks(&self, pptaskenum: *mut Option, filter: &PM_ENUM_FILTER) -> windows_core::Result<()>; @@ -2326,56 +1741,32 @@ pub trait IPMEnumerationManager_Impl: Sized { } impl windows_core::RuntimeName for IPMEnumerationManager {} impl IPMEnumerationManager_Vtbl { - pub const fn new() -> IPMEnumerationManager_Vtbl - where - Identity: IPMEnumerationManager_Impl, - { - unsafe extern "system" fn get_AllApplications(this: *mut core::ffi::c_void, ppappenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + pub const fn new() -> IPMEnumerationManager_Vtbl { + unsafe extern "system" fn get_AllApplications(this: *mut core::ffi::c_void, ppappenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMEnumerationManager_Impl::get_AllApplications(this, core::mem::transmute_copy(&ppappenum), core::mem::transmute(&filter)).into() } - unsafe extern "system" fn get_AllTiles(this: *mut core::ffi::c_void, pptileenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_AllTiles(this: *mut core::ffi::c_void, pptileenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMEnumerationManager_Impl::get_AllTiles(this, core::mem::transmute_copy(&pptileenum), core::mem::transmute(&filter)).into() } - unsafe extern "system" fn get_AllTasks(this: *mut core::ffi::c_void, pptaskenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_AllTasks(this: *mut core::ffi::c_void, pptaskenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMEnumerationManager_Impl::get_AllTasks(this, core::mem::transmute_copy(&pptaskenum), core::mem::transmute(&filter)).into() } - unsafe extern "system" fn get_AllExtensions(this: *mut core::ffi::c_void, ppextensionenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_AllExtensions(this: *mut core::ffi::c_void, ppextensionenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMEnumerationManager_Impl::get_AllExtensions(this, core::mem::transmute_copy(&ppextensionenum), core::mem::transmute(&filter)).into() } - unsafe extern "system" fn get_AllBackgroundServiceAgents(this: *mut core::ffi::c_void, ppbsaenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_AllBackgroundServiceAgents(this: *mut core::ffi::c_void, ppbsaenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMEnumerationManager_Impl::get_AllBackgroundServiceAgents(this, core::mem::transmute_copy(&ppbsaenum), core::mem::transmute(&filter)).into() } - unsafe extern "system" fn get_AllBackgroundWorkers(this: *mut core::ffi::c_void, ppbswenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_AllBackgroundWorkers(this: *mut core::ffi::c_void, ppbswenum: *mut *mut core::ffi::c_void, filter: PM_ENUM_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMEnumerationManager_Impl::get_AllBackgroundWorkers(this, core::mem::transmute_copy(&ppbswenum), core::mem::transmute(&filter)).into() } - unsafe extern "system" fn get_ApplicationInfo(this: *mut core::ffi::c_void, productid: windows_core::GUID, ppappinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_ApplicationInfo(this: *mut core::ffi::c_void, productid: windows_core::GUID, ppappinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMEnumerationManager_Impl::get_ApplicationInfo(this, core::mem::transmute(&productid)) { Ok(ok__) => { @@ -2385,10 +1776,7 @@ impl IPMEnumerationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_TileInfo(this: *mut core::ffi::c_void, productid: windows_core::GUID, tileid: core::mem::MaybeUninit, pptileinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_TileInfo(this: *mut core::ffi::c_void, productid: windows_core::GUID, tileid: core::mem::MaybeUninit, pptileinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMEnumerationManager_Impl::get_TileInfo(this, core::mem::transmute(&productid), core::mem::transmute(&tileid)) { Ok(ok__) => { @@ -2398,10 +1786,7 @@ impl IPMEnumerationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_TaskInfo(this: *mut core::ffi::c_void, productid: windows_core::GUID, taskid: core::mem::MaybeUninit, pptaskinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_TaskInfo(this: *mut core::ffi::c_void, productid: windows_core::GUID, taskid: core::mem::MaybeUninit, pptaskinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMEnumerationManager_Impl::get_TaskInfo(this, core::mem::transmute(&productid), core::mem::transmute(&taskid)) { Ok(ok__) => { @@ -2411,10 +1796,7 @@ impl IPMEnumerationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_TaskInfoEx(this: *mut core::ffi::c_void, productid: windows_core::GUID, taskid: windows_core::PCWSTR, pptaskinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_TaskInfoEx(this: *mut core::ffi::c_void, productid: windows_core::GUID, taskid: windows_core::PCWSTR, pptaskinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMEnumerationManager_Impl::get_TaskInfoEx(this, core::mem::transmute(&productid), core::mem::transmute(&taskid)) { Ok(ok__) => { @@ -2424,10 +1806,7 @@ impl IPMEnumerationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_BackgroundServiceAgentInfo(this: *mut core::ffi::c_void, bsaid: u32, pptaskinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_BackgroundServiceAgentInfo(this: *mut core::ffi::c_void, bsaid: u32, pptaskinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMEnumerationManager_Impl::get_BackgroundServiceAgentInfo(this, core::mem::transmute_copy(&bsaid)) { Ok(ok__) => { @@ -2437,10 +1816,7 @@ impl IPMEnumerationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AllLiveTileJobs(this: *mut core::ffi::c_void, pplivetilejobenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn AllLiveTileJobs(this: *mut core::ffi::c_void, pplivetilejobenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMEnumerationManager_Impl::AllLiveTileJobs(this) { Ok(ok__) => { @@ -2450,10 +1826,7 @@ impl IPMEnumerationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_LiveTileJob(this: *mut core::ffi::c_void, productid: windows_core::GUID, tileid: core::mem::MaybeUninit, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE, pplivetilejobinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_LiveTileJob(this: *mut core::ffi::c_void, productid: windows_core::GUID, tileid: core::mem::MaybeUninit, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE, pplivetilejobinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMEnumerationManager_Impl::get_LiveTileJob(this, core::mem::transmute(&productid), core::mem::transmute(&tileid), core::mem::transmute_copy(&recurrencetype)) { Ok(ok__) => { @@ -2463,10 +1836,7 @@ impl IPMEnumerationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ApplicationInfoExternal(this: *mut core::ffi::c_void, productid: windows_core::GUID, ppappinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_ApplicationInfoExternal(this: *mut core::ffi::c_void, productid: windows_core::GUID, ppappinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMEnumerationManager_Impl::get_ApplicationInfoExternal(this, core::mem::transmute(&productid)) { Ok(ok__) => { @@ -2476,17 +1846,11 @@ impl IPMEnumerationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_FileHandlerGenericLogo(this: *mut core::ffi::c_void, filetype: core::mem::MaybeUninit, logosize: PM_LOGO_SIZE, plogo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_FileHandlerGenericLogo(this: *mut core::ffi::c_void, filetype: core::mem::MaybeUninit, logosize: PM_LOGO_SIZE, plogo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMEnumerationManager_Impl::get_FileHandlerGenericLogo(this, core::mem::transmute(&filetype), core::mem::transmute_copy(&logosize), core::mem::transmute_copy(&plogo)).into() } - unsafe extern "system" fn get_ApplicationInfoFromAccessClaims(this: *mut core::ffi::c_void, sysappid0: core::mem::MaybeUninit, sysappid1: core::mem::MaybeUninit, ppappinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_ApplicationInfoFromAccessClaims(this: *mut core::ffi::c_void, sysappid0: core::mem::MaybeUninit, sysappid1: core::mem::MaybeUninit, ppappinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMEnumerationManager_Impl::get_ApplicationInfoFromAccessClaims(this, core::mem::transmute(&sysappid0), core::mem::transmute(&sysappid1)) { Ok(ok__) => { @@ -2496,17 +1860,11 @@ impl IPMEnumerationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_StartTileEnumeratorBlob(this: *mut core::ffi::c_void, filter: PM_ENUM_FILTER, pctiles: *mut u32, pptileblobs: *mut *mut PM_STARTTILEBLOB) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_StartTileEnumeratorBlob(this: *mut core::ffi::c_void, filter: PM_ENUM_FILTER, pctiles: *mut u32, pptileblobs: *mut *mut PM_STARTTILEBLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMEnumerationManager_Impl::get_StartTileEnumeratorBlob(this, core::mem::transmute(&filter), core::mem::transmute_copy(&pctiles), core::mem::transmute_copy(&pptileblobs)).into() } - unsafe extern "system" fn get_StartAppEnumeratorBlob(this: *mut core::ffi::c_void, filter: PM_ENUM_FILTER, pcapps: *mut u32, ppappblobs: *mut *mut PM_STARTAPPBLOB) -> windows_core::HRESULT - where - Identity: IPMEnumerationManager_Impl, - { + unsafe extern "system" fn get_StartAppEnumeratorBlob(this: *mut core::ffi::c_void, filter: PM_ENUM_FILTER, pcapps: *mut u32, ppappblobs: *mut *mut PM_STARTAPPBLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMEnumerationManager_Impl::get_StartAppEnumeratorBlob(this, core::mem::transmute(&filter), core::mem::transmute_copy(&pcapps), core::mem::transmute_copy(&ppappblobs)).into() } @@ -2536,19 +1894,13 @@ impl IPMEnumerationManager_Vtbl { iid == &::IID } } -pub trait IPMExtensionCachedFileUpdaterInfo_Impl: Sized { +pub trait IPMExtensionCachedFileUpdaterInfo_Impl: Sized + windows_core::IUnknownImpl { fn SupportsUpdates(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMExtensionCachedFileUpdaterInfo {} impl IPMExtensionCachedFileUpdaterInfo_Vtbl { - pub const fn new() -> IPMExtensionCachedFileUpdaterInfo_Vtbl - where - Identity: IPMExtensionCachedFileUpdaterInfo_Impl, - { - unsafe extern "system" fn SupportsUpdates(this: *mut core::ffi::c_void, psupportsupdates: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMExtensionCachedFileUpdaterInfo_Impl, - { + pub const fn new() -> IPMExtensionCachedFileUpdaterInfo_Vtbl { + unsafe extern "system" fn SupportsUpdates(this: *mut core::ffi::c_void, psupportsupdates: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMExtensionCachedFileUpdaterInfo_Impl::SupportsUpdates(this) { Ok(ok__) => { @@ -2564,19 +1916,13 @@ impl IPMExtensionCachedFileUpdaterInfo_Vtbl { iid == &::IID } } -pub trait IPMExtensionContractInfo_Impl: Sized { +pub trait IPMExtensionContractInfo_Impl: Sized + windows_core::IUnknownImpl { fn get_InvocationInfo(&self, paumid: *mut windows_core::BSTR, pargs: *mut windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPMExtensionContractInfo {} impl IPMExtensionContractInfo_Vtbl { - pub const fn new() -> IPMExtensionContractInfo_Vtbl - where - Identity: IPMExtensionContractInfo_Impl, - { - unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, paumid: *mut core::mem::MaybeUninit, pargs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionContractInfo_Impl, - { + pub const fn new() -> IPMExtensionContractInfo_Vtbl { + unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, paumid: *mut core::mem::MaybeUninit, pargs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionContractInfo_Impl::get_InvocationInfo(this, core::mem::transmute_copy(&paumid), core::mem::transmute_copy(&pargs)).into() } @@ -2586,7 +1932,7 @@ impl IPMExtensionContractInfo_Vtbl { iid == &::IID } } -pub trait IPMExtensionFileExtensionInfo_Impl: Sized { +pub trait IPMExtensionFileExtensionInfo_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -2597,56 +1943,32 @@ pub trait IPMExtensionFileExtensionInfo_Impl: Sized { } impl windows_core::RuntimeName for IPMExtensionFileExtensionInfo {} impl IPMExtensionFileExtensionInfo_Vtbl { - pub const fn new() -> IPMExtensionFileExtensionInfo_Vtbl - where - Identity: IPMExtensionFileExtensionInfo_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionFileExtensionInfo_Impl, - { + pub const fn new() -> IPMExtensionFileExtensionInfo_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionFileExtensionInfo_Impl::Name(this, core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionFileExtensionInfo_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionFileExtensionInfo_Impl::DisplayName(this, core::mem::transmute_copy(&pdisplayname)).into() } - unsafe extern "system" fn get_Logo(this: *mut core::ffi::c_void, logosize: PM_LOGO_SIZE, plogo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionFileExtensionInfo_Impl, - { + unsafe extern "system" fn get_Logo(this: *mut core::ffi::c_void, logosize: PM_LOGO_SIZE, plogo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionFileExtensionInfo_Impl::get_Logo(this, core::mem::transmute_copy(&logosize), core::mem::transmute_copy(&plogo)).into() } - unsafe extern "system" fn get_ContentType(this: *mut core::ffi::c_void, filetype: core::mem::MaybeUninit, pcontenttype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionFileExtensionInfo_Impl, - { + unsafe extern "system" fn get_ContentType(this: *mut core::ffi::c_void, filetype: core::mem::MaybeUninit, pcontenttype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionFileExtensionInfo_Impl::get_ContentType(this, core::mem::transmute(&filetype), core::mem::transmute_copy(&pcontenttype)).into() } - unsafe extern "system" fn get_FileType(this: *mut core::ffi::c_void, contenttype: core::mem::MaybeUninit, pfiletype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionFileExtensionInfo_Impl, - { + unsafe extern "system" fn get_FileType(this: *mut core::ffi::c_void, contenttype: core::mem::MaybeUninit, pfiletype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionFileExtensionInfo_Impl::get_FileType(this, core::mem::transmute(&contenttype), core::mem::transmute_copy(&pfiletype)).into() } - unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionFileExtensionInfo_Impl, - { + unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionFileExtensionInfo_Impl::get_InvocationInfo(this, core::mem::transmute_copy(&pimageurn), core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn get_AllFileTypes(this: *mut core::ffi::c_void, pcbtypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::HRESULT - where - Identity: IPMExtensionFileExtensionInfo_Impl, - { + unsafe extern "system" fn get_AllFileTypes(this: *mut core::ffi::c_void, pcbtypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionFileExtensionInfo_Impl::get_AllFileTypes(this, core::mem::transmute_copy(&pcbtypes), core::mem::transmute_copy(&pptypes)).into() } @@ -2665,27 +1987,18 @@ impl IPMExtensionFileExtensionInfo_Vtbl { iid == &::IID } } -pub trait IPMExtensionFileOpenPickerInfo_Impl: Sized { +pub trait IPMExtensionFileOpenPickerInfo_Impl: Sized + windows_core::IUnknownImpl { fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::Result<()>; fn SupportsAllFileTypes(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMExtensionFileOpenPickerInfo {} impl IPMExtensionFileOpenPickerInfo_Vtbl { - pub const fn new() -> IPMExtensionFileOpenPickerInfo_Vtbl - where - Identity: IPMExtensionFileOpenPickerInfo_Impl, - { - unsafe extern "system" fn get_AllFileTypes(this: *mut core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::HRESULT - where - Identity: IPMExtensionFileOpenPickerInfo_Impl, - { + pub const fn new() -> IPMExtensionFileOpenPickerInfo_Vtbl { + unsafe extern "system" fn get_AllFileTypes(this: *mut core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionFileOpenPickerInfo_Impl::get_AllFileTypes(this, core::mem::transmute_copy(&pctypes), core::mem::transmute_copy(&pptypes)).into() } - unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMExtensionFileOpenPickerInfo_Impl, - { + unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMExtensionFileOpenPickerInfo_Impl::SupportsAllFileTypes(this) { Ok(ok__) => { @@ -2705,27 +2018,18 @@ impl IPMExtensionFileOpenPickerInfo_Vtbl { iid == &::IID } } -pub trait IPMExtensionFileSavePickerInfo_Impl: Sized { +pub trait IPMExtensionFileSavePickerInfo_Impl: Sized + windows_core::IUnknownImpl { fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::Result<()>; fn SupportsAllFileTypes(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMExtensionFileSavePickerInfo {} impl IPMExtensionFileSavePickerInfo_Vtbl { - pub const fn new() -> IPMExtensionFileSavePickerInfo_Vtbl - where - Identity: IPMExtensionFileSavePickerInfo_Impl, - { - unsafe extern "system" fn get_AllFileTypes(this: *mut core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::HRESULT - where - Identity: IPMExtensionFileSavePickerInfo_Impl, - { + pub const fn new() -> IPMExtensionFileSavePickerInfo_Vtbl { + unsafe extern "system" fn get_AllFileTypes(this: *mut core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionFileSavePickerInfo_Impl::get_AllFileTypes(this, core::mem::transmute_copy(&pctypes), core::mem::transmute_copy(&pptypes)).into() } - unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMExtensionFileSavePickerInfo_Impl, - { + unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMExtensionFileSavePickerInfo_Impl::SupportsAllFileTypes(this) { Ok(ok__) => { @@ -2745,7 +2049,7 @@ impl IPMExtensionFileSavePickerInfo_Vtbl { iid == &::IID } } -pub trait IPMExtensionInfo_Impl: Sized { +pub trait IPMExtensionInfo_Impl: Sized + windows_core::IUnknownImpl { fn SupplierPID(&self) -> 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<()>; @@ -2755,14 +2059,8 @@ pub trait IPMExtensionInfo_Impl: Sized { } impl windows_core::RuntimeName for IPMExtensionInfo {} impl IPMExtensionInfo_Vtbl { - pub const fn new() -> IPMExtensionInfo_Vtbl - where - Identity: IPMExtensionInfo_Impl, - { - unsafe extern "system" fn SupplierPID(this: *mut core::ffi::c_void, psupplierpid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMExtensionInfo_Impl, - { + pub const fn new() -> IPMExtensionInfo_Vtbl { + unsafe extern "system" fn SupplierPID(this: *mut core::ffi::c_void, psupplierpid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMExtensionInfo_Impl::SupplierPID(this) { Ok(ok__) => { @@ -2772,38 +2070,23 @@ impl IPMExtensionInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupplierTaskID(this: *mut core::ffi::c_void, psuppliertid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionInfo_Impl, - { + unsafe extern "system" fn SupplierTaskID(this: *mut core::ffi::c_void, psuppliertid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionInfo_Impl::SupplierTaskID(this, core::mem::transmute_copy(&psuppliertid)).into() } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, ptitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionInfo_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, ptitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionInfo_Impl::Title(this, core::mem::transmute_copy(&ptitle)).into() } - unsafe extern "system" fn IconPath(this: *mut core::ffi::c_void, piconpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionInfo_Impl, - { + unsafe extern "system" fn IconPath(this: *mut core::ffi::c_void, piconpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionInfo_Impl::IconPath(this, core::mem::transmute_copy(&piconpath)).into() } - unsafe extern "system" fn ExtraFile(this: *mut core::ffi::c_void, pfilepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionInfo_Impl, - { + unsafe extern "system" fn ExtraFile(this: *mut core::ffi::c_void, pfilepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionInfo_Impl::ExtraFile(this, core::mem::transmute_copy(&pfilepath)).into() } - unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionInfo_Impl, - { + unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionInfo_Impl::get_InvocationInfo(this, core::mem::transmute_copy(&pimageurn), core::mem::transmute_copy(&pparameters)).into() } @@ -2821,19 +2104,13 @@ impl IPMExtensionInfo_Vtbl { iid == &::IID } } -pub trait IPMExtensionInfoEnumerator_Impl: Sized { +pub trait IPMExtensionInfoEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMExtensionInfoEnumerator {} impl IPMExtensionInfoEnumerator_Vtbl { - pub const fn new() -> IPMExtensionInfoEnumerator_Vtbl - where - Identity: IPMExtensionInfoEnumerator_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppextensioninfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMExtensionInfoEnumerator_Impl, - { + pub const fn new() -> IPMExtensionInfoEnumerator_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppextensioninfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMExtensionInfoEnumerator_Impl::Next(this) { Ok(ok__) => { @@ -2849,27 +2126,18 @@ impl IPMExtensionInfoEnumerator_Vtbl { iid == &::IID } } -pub trait IPMExtensionProtocolInfo_Impl: Sized { +pub trait IPMExtensionProtocolInfo_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IPMExtensionProtocolInfo {} impl IPMExtensionProtocolInfo_Vtbl { - pub const fn new() -> IPMExtensionProtocolInfo_Vtbl - where - Identity: IPMExtensionProtocolInfo_Impl, - { - unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, pprotocol: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionProtocolInfo_Impl, - { + pub const fn new() -> IPMExtensionProtocolInfo_Vtbl { + unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, pprotocol: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionProtocolInfo_Impl::Protocol(this, core::mem::transmute_copy(&pprotocol)).into() } - unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMExtensionProtocolInfo_Impl, - { + unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionProtocolInfo_Impl::get_InvocationInfo(this, core::mem::transmute_copy(&pimageurn), core::mem::transmute_copy(&pparameters)).into() } @@ -2883,35 +2151,23 @@ impl IPMExtensionProtocolInfo_Vtbl { iid == &::IID } } -pub trait IPMExtensionShareTargetInfo_Impl: Sized { +pub trait IPMExtensionShareTargetInfo_Impl: Sized + windows_core::IUnknownImpl { 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; } impl windows_core::RuntimeName for IPMExtensionShareTargetInfo {} impl IPMExtensionShareTargetInfo_Vtbl { - pub const fn new() -> IPMExtensionShareTargetInfo_Vtbl - where - Identity: IPMExtensionShareTargetInfo_Impl, - { - unsafe extern "system" fn get_AllFileTypes(this: *mut core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::HRESULT - where - Identity: IPMExtensionShareTargetInfo_Impl, - { + pub const fn new() -> IPMExtensionShareTargetInfo_Vtbl { + unsafe extern "system" fn get_AllFileTypes(this: *mut core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionShareTargetInfo_Impl::get_AllFileTypes(this, core::mem::transmute_copy(&pctypes), core::mem::transmute_copy(&pptypes)).into() } - unsafe extern "system" fn get_AllDataFormats(this: *mut core::ffi::c_void, pcdataformats: *mut u32, ppdataformats: *mut *mut windows_core::BSTR) -> windows_core::HRESULT - where - Identity: IPMExtensionShareTargetInfo_Impl, - { + unsafe extern "system" fn get_AllDataFormats(this: *mut core::ffi::c_void, pcdataformats: *mut u32, ppdataformats: *mut *mut windows_core::BSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMExtensionShareTargetInfo_Impl::get_AllDataFormats(this, core::mem::transmute_copy(&pcdataformats), core::mem::transmute_copy(&ppdataformats)).into() } - unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMExtensionShareTargetInfo_Impl, - { + unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMExtensionShareTargetInfo_Impl::SupportsAllFileTypes(this) { Ok(ok__) => { @@ -2932,7 +2188,7 @@ impl IPMExtensionShareTargetInfo_Vtbl { iid == &::IID } } -pub trait IPMLiveTileJobInfo_Impl: Sized { +pub trait IPMLiveTileJobInfo_Impl: Sized + windows_core::IUnknownImpl { fn ProductID(&self) -> windows_core::Result; fn TileID(&self, ptileid: *mut windows_core::BSTR) -> windows_core::Result<()>; fn NextSchedule(&self) -> windows_core::Result; @@ -2960,14 +2216,8 @@ pub trait IPMLiveTileJobInfo_Impl: Sized { } impl windows_core::RuntimeName for IPMLiveTileJobInfo {} impl IPMLiveTileJobInfo_Vtbl { - pub const fn new() -> IPMLiveTileJobInfo_Vtbl - where - Identity: IPMLiveTileJobInfo_Impl, - { - unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + pub const fn new() -> IPMLiveTileJobInfo_Vtbl { + unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::ProductID(this) { Ok(ok__) => { @@ -2977,17 +2227,11 @@ impl IPMLiveTileJobInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TileID(this: *mut core::ffi::c_void, ptileid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn TileID(this: *mut core::ffi::c_void, ptileid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::TileID(this, core::mem::transmute_copy(&ptileid)).into() } - unsafe extern "system" fn NextSchedule(this: *mut core::ffi::c_void, pnextschedule: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn NextSchedule(this: *mut core::ffi::c_void, pnextschedule: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::NextSchedule(this) { Ok(ok__) => { @@ -2997,17 +2241,11 @@ impl IPMLiveTileJobInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_NextSchedule(this: *mut core::ffi::c_void, ftnextschedule: super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_NextSchedule(this: *mut core::ffi::c_void, ftnextschedule: super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_NextSchedule(this, core::mem::transmute(&ftnextschedule)).into() } - unsafe extern "system" fn StartSchedule(this: *mut core::ffi::c_void, pstartschedule: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn StartSchedule(this: *mut core::ffi::c_void, pstartschedule: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::StartSchedule(this) { Ok(ok__) => { @@ -3017,17 +2255,11 @@ impl IPMLiveTileJobInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_StartSchedule(this: *mut core::ffi::c_void, ftstartschedule: super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_StartSchedule(this: *mut core::ffi::c_void, ftstartschedule: super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_StartSchedule(this, core::mem::transmute(&ftstartschedule)).into() } - unsafe extern "system" fn IntervalDuration(this: *mut core::ffi::c_void, pintervalduration: *mut u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn IntervalDuration(this: *mut core::ffi::c_void, pintervalduration: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::IntervalDuration(this) { Ok(ok__) => { @@ -3037,17 +2269,11 @@ impl IPMLiveTileJobInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_IntervalDuration(this: *mut core::ffi::c_void, ulintervalduration: u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_IntervalDuration(this: *mut core::ffi::c_void, ulintervalduration: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_IntervalDuration(this, core::mem::transmute_copy(&ulintervalduration)).into() } - unsafe extern "system" fn RunForever(this: *mut core::ffi::c_void, isrunforever: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn RunForever(this: *mut core::ffi::c_void, isrunforever: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::RunForever(this) { Ok(ok__) => { @@ -3057,17 +2283,11 @@ impl IPMLiveTileJobInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_RunForever(this: *mut core::ffi::c_void, frunforever: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_RunForever(this: *mut core::ffi::c_void, frunforever: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_RunForever(this, core::mem::transmute_copy(&frunforever)).into() } - unsafe extern "system" fn MaxRunCount(this: *mut core::ffi::c_void, pmaxruncount: *mut u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn MaxRunCount(this: *mut core::ffi::c_void, pmaxruncount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::MaxRunCount(this) { Ok(ok__) => { @@ -3077,17 +2297,11 @@ impl IPMLiveTileJobInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_MaxRunCount(this: *mut core::ffi::c_void, ulmaxruncount: u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_MaxRunCount(this: *mut core::ffi::c_void, ulmaxruncount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_MaxRunCount(this, core::mem::transmute_copy(&ulmaxruncount)).into() } - unsafe extern "system" fn RunCount(this: *mut core::ffi::c_void, pruncount: *mut u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn RunCount(this: *mut core::ffi::c_void, pruncount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::RunCount(this) { Ok(ok__) => { @@ -3097,17 +2311,11 @@ impl IPMLiveTileJobInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_RunCount(this: *mut core::ffi::c_void, ulruncount: u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_RunCount(this: *mut core::ffi::c_void, ulruncount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_RunCount(this, core::mem::transmute_copy(&ulruncount)).into() } - unsafe extern "system" fn RecurrenceType(this: *mut core::ffi::c_void, precurrencetype: *mut u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn RecurrenceType(this: *mut core::ffi::c_void, precurrencetype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::RecurrenceType(this) { Ok(ok__) => { @@ -3117,45 +2325,27 @@ impl IPMLiveTileJobInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_RecurrenceType(this: *mut core::ffi::c_void, ulrecurrencetype: u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_RecurrenceType(this: *mut core::ffi::c_void, ulrecurrencetype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_RecurrenceType(this, core::mem::transmute_copy(&ulrecurrencetype)).into() } - unsafe extern "system" fn get_TileXML(this: *mut core::ffi::c_void, ptilexml: *mut *mut u8, pcbtilexml: *mut u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn get_TileXML(this: *mut core::ffi::c_void, ptilexml: *mut *mut u8, pcbtilexml: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::get_TileXML(this, core::mem::transmute_copy(&ptilexml), core::mem::transmute_copy(&pcbtilexml)).into() } - unsafe extern "system" fn set_TileXML(this: *mut core::ffi::c_void, ptilexml: *const u8, cbtilexml: u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_TileXML(this: *mut core::ffi::c_void, ptilexml: *const u8, cbtilexml: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_TileXML(this, core::mem::transmute_copy(&ptilexml), core::mem::transmute_copy(&cbtilexml)).into() } - unsafe extern "system" fn get_UrlXML(this: *mut core::ffi::c_void, purlxml: *mut *mut u8, pcburlxml: *mut u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn get_UrlXML(this: *mut core::ffi::c_void, purlxml: *mut *mut u8, pcburlxml: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::get_UrlXML(this, core::mem::transmute_copy(&purlxml), core::mem::transmute_copy(&pcburlxml)).into() } - unsafe extern "system" fn set_UrlXML(this: *mut core::ffi::c_void, purlxml: *const u8, cburlxml: u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_UrlXML(this: *mut core::ffi::c_void, purlxml: *const u8, cburlxml: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_UrlXML(this, core::mem::transmute_copy(&purlxml), core::mem::transmute_copy(&cburlxml)).into() } - unsafe extern "system" fn AttemptCount(this: *mut core::ffi::c_void, pattemptcount: *mut u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn AttemptCount(this: *mut core::ffi::c_void, pattemptcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::AttemptCount(this) { Ok(ok__) => { @@ -3165,17 +2355,11 @@ impl IPMLiveTileJobInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_AttemptCount(this: *mut core::ffi::c_void, ulattemptcount: u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_AttemptCount(this: *mut core::ffi::c_void, ulattemptcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_AttemptCount(this, core::mem::transmute_copy(&ulattemptcount)).into() } - unsafe extern "system" fn DownloadState(this: *mut core::ffi::c_void, pdownloadstate: *mut u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn DownloadState(this: *mut core::ffi::c_void, pdownloadstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::DownloadState(this) { Ok(ok__) => { @@ -3185,10 +2369,7 @@ impl IPMLiveTileJobInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_DownloadState(this: *mut core::ffi::c_void, uldownloadstate: u32) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfo_Impl, - { + unsafe extern "system" fn set_DownloadState(this: *mut core::ffi::c_void, uldownloadstate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_DownloadState(this, core::mem::transmute_copy(&uldownloadstate)).into() } @@ -3224,19 +2405,13 @@ impl IPMLiveTileJobInfo_Vtbl { iid == &::IID } } -pub trait IPMLiveTileJobInfoEnumerator_Impl: Sized { +pub trait IPMLiveTileJobInfoEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMLiveTileJobInfoEnumerator {} impl IPMLiveTileJobInfoEnumerator_Vtbl { - pub const fn new() -> IPMLiveTileJobInfoEnumerator_Vtbl - where - Identity: IPMLiveTileJobInfoEnumerator_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pplivetilejobinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMLiveTileJobInfoEnumerator_Impl, - { + pub const fn new() -> IPMLiveTileJobInfoEnumerator_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pplivetilejobinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfoEnumerator_Impl::Next(this) { Ok(ok__) => { @@ -3252,7 +2427,7 @@ impl IPMLiveTileJobInfoEnumerator_Vtbl { iid == &::IID } } -pub trait IPMTaskInfo_Impl: Sized { +pub trait IPMTaskInfo_Impl: Sized + windows_core::IUnknownImpl { fn ProductID(&self) -> 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<()>; @@ -3277,14 +2452,8 @@ pub trait IPMTaskInfo_Impl: Sized { } impl windows_core::RuntimeName for IPMTaskInfo {} impl IPMTaskInfo_Vtbl { - pub const fn new() -> IPMTaskInfo_Vtbl - where - Identity: IPMTaskInfo_Impl, - { - unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + pub const fn new() -> IPMTaskInfo_Vtbl { + unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::ProductID(this) { Ok(ok__) => { @@ -3294,24 +2463,15 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TaskID(this: *mut core::ffi::c_void, ptaskid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn TaskID(this: *mut core::ffi::c_void, ptaskid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTaskInfo_Impl::TaskID(this, core::mem::transmute_copy(&ptaskid)).into() } - unsafe extern "system" fn NavigationPage(this: *mut core::ffi::c_void, pnavigationpage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn NavigationPage(this: *mut core::ffi::c_void, pnavigationpage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTaskInfo_Impl::NavigationPage(this, core::mem::transmute_copy(&pnavigationpage)).into() } - unsafe extern "system" fn TaskTransition(this: *mut core::ffi::c_void, ptasktransition: *mut PM_TASK_TRANSITION) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn TaskTransition(this: *mut core::ffi::c_void, ptasktransition: *mut PM_TASK_TRANSITION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::TaskTransition(this) { Ok(ok__) => { @@ -3321,10 +2481,7 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RuntimeType(this: *mut core::ffi::c_void, pruntimetype: *mut PACKMAN_RUNTIME) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn RuntimeType(this: *mut core::ffi::c_void, pruntimetype: *mut PACKMAN_RUNTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::RuntimeType(this) { Ok(ok__) => { @@ -3334,10 +2491,7 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivationPolicy(this: *mut core::ffi::c_void, pactivationpolicy: *mut PM_ACTIVATION_POLICY) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn ActivationPolicy(this: *mut core::ffi::c_void, pactivationpolicy: *mut PM_ACTIVATION_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::ActivationPolicy(this) { Ok(ok__) => { @@ -3347,10 +2501,7 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TaskType(this: *mut core::ffi::c_void, ptasktype: *mut PM_TASK_TYPE) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn TaskType(this: *mut core::ffi::c_void, ptasktype: *mut PM_TASK_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::TaskType(this) { Ok(ok__) => { @@ -3360,45 +2511,27 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTaskInfo_Impl::get_InvocationInfo(this, core::mem::transmute_copy(&pimageurn), core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn ImagePath(this: *mut core::ffi::c_void, pimagepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn ImagePath(this: *mut core::ffi::c_void, pimagepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTaskInfo_Impl::ImagePath(this, core::mem::transmute_copy(&pimagepath)).into() } - unsafe extern "system" fn ImageParams(this: *mut core::ffi::c_void, pimageparams: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn ImageParams(this: *mut core::ffi::c_void, pimageparams: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTaskInfo_Impl::ImageParams(this, core::mem::transmute_copy(&pimageparams)).into() } - unsafe extern "system" fn InstallRootFolder(this: *mut core::ffi::c_void, pinstallrootfolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn InstallRootFolder(this: *mut core::ffi::c_void, pinstallrootfolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTaskInfo_Impl::InstallRootFolder(this, core::mem::transmute_copy(&pinstallrootfolder)).into() } - unsafe extern "system" fn DataRootFolder(this: *mut core::ffi::c_void, pdatarootfolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn DataRootFolder(this: *mut core::ffi::c_void, pdatarootfolder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTaskInfo_Impl::DataRootFolder(this, core::mem::transmute_copy(&pdatarootfolder)).into() } - unsafe extern "system" fn IsSingleInstanceHost(this: *mut core::ffi::c_void, pissingleinstancehost: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn IsSingleInstanceHost(this: *mut core::ffi::c_void, pissingleinstancehost: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::IsSingleInstanceHost(this) { Ok(ok__) => { @@ -3408,10 +2541,7 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsInteropEnabled(this: *mut core::ffi::c_void, pisinteropenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn IsInteropEnabled(this: *mut core::ffi::c_void, pisinteropenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::IsInteropEnabled(this) { Ok(ok__) => { @@ -3421,10 +2551,7 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplicationState(this: *mut core::ffi::c_void, papplicationstate: *mut PM_APPLICATION_STATE) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn ApplicationState(this: *mut core::ffi::c_void, papplicationstate: *mut PM_APPLICATION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::ApplicationState(this) { Ok(ok__) => { @@ -3434,10 +2561,7 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallType(this: *mut core::ffi::c_void, pinstalltype: *mut PM_APPLICATION_INSTALL_TYPE) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn InstallType(this: *mut core::ffi::c_void, pinstalltype: *mut PM_APPLICATION_INSTALL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::InstallType(this) { Ok(ok__) => { @@ -3447,17 +2571,11 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Version(this: *mut core::ffi::c_void, ptargetmajorversion: *mut u8, ptargetminorversion: *mut u8) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn get_Version(this: *mut core::ffi::c_void, ptargetmajorversion: *mut u8, ptargetminorversion: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTaskInfo_Impl::get_Version(this, core::mem::transmute_copy(&ptargetmajorversion), core::mem::transmute_copy(&ptargetminorversion)).into() } - unsafe extern "system" fn BitsPerPixel(this: *mut core::ffi::c_void, pbitsperpixel: *mut u16) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn BitsPerPixel(this: *mut core::ffi::c_void, pbitsperpixel: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::BitsPerPixel(this) { Ok(ok__) => { @@ -3467,10 +2585,7 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SuppressesDehydration(this: *mut core::ffi::c_void, psuppressesdehydration: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn SuppressesDehydration(this: *mut core::ffi::c_void, psuppressesdehydration: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::SuppressesDehydration(this) { Ok(ok__) => { @@ -3480,17 +2595,11 @@ impl IPMTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BackgroundExecutionAbilities(this: *mut core::ffi::c_void, pbackgroundexecutionabilities: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn BackgroundExecutionAbilities(this: *mut core::ffi::c_void, pbackgroundexecutionabilities: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTaskInfo_Impl::BackgroundExecutionAbilities(this, core::mem::transmute_copy(&pbackgroundexecutionabilities)).into() } - unsafe extern "system" fn IsOptedForExtendedMem(this: *mut core::ffi::c_void, pisoptedin: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTaskInfo_Impl, - { + unsafe extern "system" fn IsOptedForExtendedMem(this: *mut core::ffi::c_void, pisoptedin: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::IsOptedForExtendedMem(this) { Ok(ok__) => { @@ -3529,19 +2638,13 @@ impl IPMTaskInfo_Vtbl { iid == &::IID } } -pub trait IPMTaskInfoEnumerator_Impl: Sized { +pub trait IPMTaskInfoEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMTaskInfoEnumerator {} impl IPMTaskInfoEnumerator_Vtbl { - pub const fn new() -> IPMTaskInfoEnumerator_Vtbl - where - Identity: IPMTaskInfoEnumerator_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pptaskinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMTaskInfoEnumerator_Impl, - { + pub const fn new() -> IPMTaskInfoEnumerator_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pptaskinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfoEnumerator_Impl::Next(this) { Ok(ok__) => { @@ -3557,7 +2660,7 @@ impl IPMTaskInfoEnumerator_Vtbl { iid == &::IID } } -pub trait IPMTileInfo_Impl: Sized { +pub trait IPMTileInfo_Impl: Sized + windows_core::IUnknownImpl { fn ProductID(&self) -> windows_core::Result; fn TileID(&self, ptileid: *mut windows_core::BSTR) -> windows_core::Result<()>; fn TemplateType(&self) -> windows_core::Result; @@ -3585,14 +2688,8 @@ pub trait IPMTileInfo_Impl: Sized { } impl windows_core::RuntimeName for IPMTileInfo {} impl IPMTileInfo_Vtbl { - pub const fn new() -> IPMTileInfo_Vtbl - where - Identity: IPMTileInfo_Impl, - { - unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + pub const fn new() -> IPMTileInfo_Vtbl { + unsafe extern "system" fn ProductID(this: *mut core::ffi::c_void, pproductid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::ProductID(this) { Ok(ok__) => { @@ -3602,17 +2699,11 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TileID(this: *mut core::ffi::c_void, ptileid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn TileID(this: *mut core::ffi::c_void, ptileid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::TileID(this, core::mem::transmute_copy(&ptileid)).into() } - unsafe extern "system" fn TemplateType(this: *mut core::ffi::c_void, ptemplatetype: *mut TILE_TEMPLATE_TYPE) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn TemplateType(this: *mut core::ffi::c_void, ptemplatetype: *mut TILE_TEMPLATE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::TemplateType(this) { Ok(ok__) => { @@ -3622,10 +2713,7 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_HubPinnedState(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, ppinned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn get_HubPinnedState(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, ppinned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::get_HubPinnedState(this, core::mem::transmute_copy(&hubtype)) { Ok(ok__) => { @@ -3635,10 +2723,7 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_HubPosition(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, pposition: *mut u32) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn get_HubPosition(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, pposition: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::get_HubPosition(this, core::mem::transmute_copy(&hubtype)) { Ok(ok__) => { @@ -3648,10 +2733,7 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsNotified(this: *mut core::ffi::c_void, pisnotified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn IsNotified(this: *mut core::ffi::c_void, pisnotified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::IsNotified(this) { Ok(ok__) => { @@ -3661,10 +2743,7 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pisdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pisdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::IsDefault(this) { Ok(ok__) => { @@ -3674,17 +2753,11 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TaskID(this: *mut core::ffi::c_void, ptaskid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn TaskID(this: *mut core::ffi::c_void, ptaskid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::TaskID(this, core::mem::transmute_copy(&ptaskid)).into() } - unsafe extern "system" fn TileType(this: *mut core::ffi::c_void, pstarttiletype: *mut PM_STARTTILE_TYPE) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn TileType(this: *mut core::ffi::c_void, pstarttiletype: *mut PM_STARTTILE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::TileType(this) { Ok(ok__) => { @@ -3694,10 +2767,7 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsThemable(this: *mut core::ffi::c_void, pisthemable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn IsThemable(this: *mut core::ffi::c_void, pisthemable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::IsThemable(this) { Ok(ok__) => { @@ -3707,10 +2777,7 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_PropertyById(this: *mut core::ffi::c_void, propid: u32, pppropinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn get_PropertyById(this: *mut core::ffi::c_void, propid: u32, pppropinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::get_PropertyById(this, core::mem::transmute_copy(&propid)) { Ok(ok__) => { @@ -3720,17 +2787,11 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn get_InvocationInfo(this: *mut core::ffi::c_void, pimageurn: *mut core::mem::MaybeUninit, pparameters: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::get_InvocationInfo(this, core::mem::transmute_copy(&pimageurn), core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn PropertyEnum(this: *mut core::ffi::c_void, pptilepropenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn PropertyEnum(this: *mut core::ffi::c_void, pptilepropenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::PropertyEnum(this) { Ok(ok__) => { @@ -3740,10 +2801,7 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_HubTileSize(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, psize: *mut PM_TILE_SIZE) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn get_HubTileSize(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, psize: *mut PM_TILE_SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::get_HubTileSize(this, core::mem::transmute_copy(&hubtype)) { Ok(ok__) => { @@ -3753,52 +2811,31 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_HubPosition(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, position: u32) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn set_HubPosition(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, position: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_HubPosition(this, core::mem::transmute_copy(&hubtype), core::mem::transmute_copy(&position)).into() } - unsafe extern "system" fn set_NotifiedState(this: *mut core::ffi::c_void, notified: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn set_NotifiedState(this: *mut core::ffi::c_void, notified: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_NotifiedState(this, core::mem::transmute_copy(¬ified)).into() } - unsafe extern "system" fn set_HubPinnedState(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, pinned: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn set_HubPinnedState(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, pinned: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_HubPinnedState(this, core::mem::transmute_copy(&hubtype), core::mem::transmute_copy(&pinned)).into() } - unsafe extern "system" fn set_HubTileSize(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, size: PM_TILE_SIZE) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn set_HubTileSize(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, size: PM_TILE_SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_HubTileSize(this, core::mem::transmute_copy(&hubtype), core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn set_InvocationInfo(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit, taskparameters: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn set_InvocationInfo(this: *mut core::ffi::c_void, taskname: core::mem::MaybeUninit, taskparameters: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_InvocationInfo(this, core::mem::transmute(&taskname), core::mem::transmute(&taskparameters)).into() } - unsafe extern "system" fn StartTileBlob(this: *mut core::ffi::c_void, pblob: *mut PM_STARTTILEBLOB) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn StartTileBlob(this: *mut core::ffi::c_void, pblob: *mut PM_STARTTILEBLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::StartTileBlob(this, core::mem::transmute_copy(&pblob)).into() } - unsafe extern "system" fn IsRestoring(this: *mut core::ffi::c_void, pisrestoring: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn IsRestoring(this: *mut core::ffi::c_void, pisrestoring: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::IsRestoring(this) { Ok(ok__) => { @@ -3808,10 +2845,7 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsAutoRestoreDisabled(this: *mut core::ffi::c_void, pisautorestoredisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn IsAutoRestoreDisabled(this: *mut core::ffi::c_void, pisautorestoredisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::IsAutoRestoreDisabled(this) { Ok(ok__) => { @@ -3821,17 +2855,11 @@ impl IPMTileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn set_IsRestoring(this: *mut core::ffi::c_void, restoring: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn set_IsRestoring(this: *mut core::ffi::c_void, restoring: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_IsRestoring(this, core::mem::transmute_copy(&restoring)).into() } - unsafe extern "system" fn set_IsAutoRestoreDisabled(this: *mut core::ffi::c_void, autorestoredisabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPMTileInfo_Impl, - { + unsafe extern "system" fn set_IsAutoRestoreDisabled(this: *mut core::ffi::c_void, autorestoredisabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_IsAutoRestoreDisabled(this, core::mem::transmute_copy(&autorestoredisabled)).into() } @@ -3867,19 +2895,13 @@ impl IPMTileInfo_Vtbl { iid == &::IID } } -pub trait IPMTileInfoEnumerator_Impl: Sized { +pub trait IPMTileInfoEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMTileInfoEnumerator {} impl IPMTileInfoEnumerator_Vtbl { - pub const fn new() -> IPMTileInfoEnumerator_Vtbl - where - Identity: IPMTileInfoEnumerator_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pptileinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMTileInfoEnumerator_Impl, - { + pub const fn new() -> IPMTileInfoEnumerator_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pptileinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfoEnumerator_Impl::Next(this) { Ok(ok__) => { @@ -3895,19 +2917,13 @@ impl IPMTileInfoEnumerator_Vtbl { iid == &::IID } } -pub trait IPMTilePropertyEnumerator_Impl: Sized { +pub trait IPMTilePropertyEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPMTilePropertyEnumerator {} impl IPMTilePropertyEnumerator_Vtbl { - pub const fn new() -> IPMTilePropertyEnumerator_Vtbl - where - Identity: IPMTilePropertyEnumerator_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pppropinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPMTilePropertyEnumerator_Impl, - { + pub const fn new() -> IPMTilePropertyEnumerator_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pppropinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTilePropertyEnumerator_Impl::Next(this) { Ok(ok__) => { @@ -3923,21 +2939,15 @@ impl IPMTilePropertyEnumerator_Vtbl { iid == &::IID } } -pub trait IPMTilePropertyInfo_Impl: Sized { +pub trait IPMTilePropertyInfo_Impl: Sized + windows_core::IUnknownImpl { fn PropertyID(&self) -> 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<()>; } impl windows_core::RuntimeName for IPMTilePropertyInfo {} impl IPMTilePropertyInfo_Vtbl { - pub const fn new() -> IPMTilePropertyInfo_Vtbl - where - Identity: IPMTilePropertyInfo_Impl, - { - unsafe extern "system" fn PropertyID(this: *mut core::ffi::c_void, ppropid: *mut u32) -> windows_core::HRESULT - where - Identity: IPMTilePropertyInfo_Impl, - { + pub const fn new() -> IPMTilePropertyInfo_Vtbl { + unsafe extern "system" fn PropertyID(this: *mut core::ffi::c_void, ppropid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTilePropertyInfo_Impl::PropertyID(this) { Ok(ok__) => { @@ -3947,17 +2957,11 @@ impl IPMTilePropertyInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PropertyValue(this: *mut core::ffi::c_void, ppropvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTilePropertyInfo_Impl, - { + unsafe extern "system" fn PropertyValue(this: *mut core::ffi::c_void, ppropvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTilePropertyInfo_Impl::PropertyValue(this, core::mem::transmute_copy(&ppropvalue)).into() } - unsafe extern "system" fn set_Property(this: *mut core::ffi::c_void, propvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPMTilePropertyInfo_Impl, - { + unsafe extern "system" fn set_Property(this: *mut core::ffi::c_void, propvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTilePropertyInfo_Impl::set_Property(this, core::mem::transmute(&propvalue)).into() } @@ -3972,7 +2976,7 @@ impl IPMTilePropertyInfo_Vtbl { iid == &::IID } } -pub trait IValidate_Impl: Sized { +pub trait IValidate_Impl: Sized + windows_core::IUnknownImpl { fn OpenDatabase(&self, szdatabase: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OpenCUB(&self, szcubfile: &windows_core::PCWSTR) -> windows_core::Result<()>; fn CloseDatabase(&self) -> windows_core::Result<()>; @@ -3983,56 +2987,32 @@ pub trait IValidate_Impl: Sized { } impl windows_core::RuntimeName for IValidate {} impl IValidate_Vtbl { - pub const fn new() -> IValidate_Vtbl - where - Identity: IValidate_Impl, - { - unsafe extern "system" fn OpenDatabase(this: *mut core::ffi::c_void, szdatabase: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IValidate_Impl, - { + pub const fn new() -> IValidate_Vtbl { + unsafe extern "system" fn OpenDatabase(this: *mut core::ffi::c_void, szdatabase: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValidate_Impl::OpenDatabase(this, core::mem::transmute(&szdatabase)).into() } - unsafe extern "system" fn OpenCUB(this: *mut core::ffi::c_void, szcubfile: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IValidate_Impl, - { + unsafe extern "system" fn OpenCUB(this: *mut core::ffi::c_void, szcubfile: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValidate_Impl::OpenCUB(this, core::mem::transmute(&szcubfile)).into() } - unsafe extern "system" fn CloseDatabase(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IValidate_Impl, - { + unsafe extern "system" fn CloseDatabase(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValidate_Impl::CloseDatabase(this).into() } - unsafe extern "system" fn CloseCUB(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IValidate_Impl, - { + unsafe extern "system" fn CloseCUB(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValidate_Impl::CloseCUB(this).into() } - unsafe extern "system" fn SetDisplay(this: *mut core::ffi::c_void, pdisplayfunction: LPDISPLAYVAL, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IValidate_Impl, - { + unsafe extern "system" fn SetDisplay(this: *mut core::ffi::c_void, pdisplayfunction: LPDISPLAYVAL, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValidate_Impl::SetDisplay(this, core::mem::transmute_copy(&pdisplayfunction), core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, pstatusfunction: LPEVALCOMCALLBACK, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IValidate_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, pstatusfunction: LPEVALCOMCALLBACK, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValidate_Impl::SetStatus(this, core::mem::transmute_copy(&pstatusfunction), core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, wzices: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IValidate_Impl, - { + unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, wzices: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValidate_Impl::Validate(this, core::mem::transmute(&wzices)).into() } 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 f67182e0cc..ff9b18dd18 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs @@ -6,14 +6,8 @@ pub trait IAccessibleWinSAT_Impl: Sized + super::super::UI::Accessibility::IAcce impl windows_core::RuntimeName for IAccessibleWinSAT {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Accessibility"))] impl IAccessibleWinSAT_Vtbl { - pub const fn new() -> IAccessibleWinSAT_Vtbl - where - Identity: IAccessibleWinSAT_Impl, - { - unsafe extern "system" fn SetAccessiblityData(this: *mut core::ffi::c_void, wsname: windows_core::PCWSTR, wsvalue: windows_core::PCWSTR, wsdesc: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAccessibleWinSAT_Impl, - { + pub const fn new() -> IAccessibleWinSAT_Vtbl { + unsafe extern "system" fn SetAccessiblityData(this: *mut core::ffi::c_void, wsname: windows_core::PCWSTR, wsvalue: windows_core::PCWSTR, wsdesc: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessibleWinSAT_Impl::SetAccessiblityData(this, core::mem::transmute(&wsname), core::mem::transmute(&wsvalue), core::mem::transmute(&wsdesc)).into() } @@ -26,35 +20,23 @@ impl IAccessibleWinSAT_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IInitiateWinSATAssessment_Impl: Sized { +pub trait IInitiateWinSATAssessment_Impl: Sized + windows_core::IUnknownImpl { fn InitiateAssessment(&self, cmdline: &windows_core::PCWSTR, pcallbacks: Option<&IWinSATInitiateEvents>, callerhwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn InitiateFormalAssessment(&self, pcallbacks: Option<&IWinSATInitiateEvents>, callerhwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn CancelAssessment(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInitiateWinSATAssessment {} impl IInitiateWinSATAssessment_Vtbl { - pub const fn new() -> IInitiateWinSATAssessment_Vtbl - where - Identity: IInitiateWinSATAssessment_Impl, - { - unsafe extern "system" fn InitiateAssessment(this: *mut core::ffi::c_void, cmdline: windows_core::PCWSTR, pcallbacks: *mut core::ffi::c_void, callerhwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IInitiateWinSATAssessment_Impl, - { + pub const fn new() -> IInitiateWinSATAssessment_Vtbl { + unsafe extern "system" fn InitiateAssessment(this: *mut core::ffi::c_void, cmdline: windows_core::PCWSTR, pcallbacks: *mut core::ffi::c_void, callerhwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitiateWinSATAssessment_Impl::InitiateAssessment(this, core::mem::transmute(&cmdline), windows_core::from_raw_borrowed(&pcallbacks), core::mem::transmute_copy(&callerhwnd)).into() } - unsafe extern "system" fn InitiateFormalAssessment(this: *mut core::ffi::c_void, pcallbacks: *mut core::ffi::c_void, callerhwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IInitiateWinSATAssessment_Impl, - { + unsafe extern "system" fn InitiateFormalAssessment(this: *mut core::ffi::c_void, pcallbacks: *mut core::ffi::c_void, callerhwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitiateWinSATAssessment_Impl::InitiateFormalAssessment(this, windows_core::from_raw_borrowed(&pcallbacks), core::mem::transmute_copy(&callerhwnd)).into() } - unsafe extern "system" fn CancelAssessment(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInitiateWinSATAssessment_Impl, - { + unsafe extern "system" fn CancelAssessment(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitiateWinSATAssessment_Impl::CancelAssessment(this).into() } @@ -79,14 +61,8 @@ pub trait IProvideWinSATAssessmentInfo_Impl: Sized + super::Com::IDispatch_Impl impl windows_core::RuntimeName for IProvideWinSATAssessmentInfo {} #[cfg(feature = "Win32_System_Com")] impl IProvideWinSATAssessmentInfo_Vtbl { - pub const fn new() -> IProvideWinSATAssessmentInfo_Vtbl - where - Identity: IProvideWinSATAssessmentInfo_Impl, - { - unsafe extern "system" fn Score(this: *mut core::ffi::c_void, score: *mut f32) -> windows_core::HRESULT - where - Identity: IProvideWinSATAssessmentInfo_Impl, - { + pub const fn new() -> IProvideWinSATAssessmentInfo_Vtbl { + unsafe extern "system" fn Score(this: *mut core::ffi::c_void, score: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideWinSATAssessmentInfo_Impl::Score(this) { Ok(ok__) => { @@ -96,10 +72,7 @@ impl IProvideWinSATAssessmentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, title: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IProvideWinSATAssessmentInfo_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, title: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideWinSATAssessmentInfo_Impl::Title(this) { Ok(ok__) => { @@ -109,10 +82,7 @@ impl IProvideWinSATAssessmentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IProvideWinSATAssessmentInfo_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideWinSATAssessmentInfo_Impl::Description(this) { Ok(ok__) => { @@ -145,14 +115,8 @@ pub trait IProvideWinSATResultsInfo_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IProvideWinSATResultsInfo {} #[cfg(feature = "Win32_System_Com")] impl IProvideWinSATResultsInfo_Vtbl { - pub const fn new() -> IProvideWinSATResultsInfo_Vtbl - where - Identity: IProvideWinSATResultsInfo_Impl, - { - unsafe extern "system" fn GetAssessmentInfo(this: *mut core::ffi::c_void, assessment: WINSAT_ASSESSMENT_TYPE, ppinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProvideWinSATResultsInfo_Impl, - { + pub const fn new() -> IProvideWinSATResultsInfo_Vtbl { + unsafe extern "system" fn GetAssessmentInfo(this: *mut core::ffi::c_void, assessment: WINSAT_ASSESSMENT_TYPE, ppinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideWinSATResultsInfo_Impl::GetAssessmentInfo(this, core::mem::transmute_copy(&assessment)) { Ok(ok__) => { @@ -162,10 +126,7 @@ impl IProvideWinSATResultsInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AssessmentState(this: *mut core::ffi::c_void, state: *mut WINSAT_ASSESSMENT_STATE) -> windows_core::HRESULT - where - Identity: IProvideWinSATResultsInfo_Impl, - { + unsafe extern "system" fn AssessmentState(this: *mut core::ffi::c_void, state: *mut WINSAT_ASSESSMENT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideWinSATResultsInfo_Impl::AssessmentState(this) { Ok(ok__) => { @@ -175,10 +136,7 @@ impl IProvideWinSATResultsInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AssessmentDateTime(this: *mut core::ffi::c_void, filetime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IProvideWinSATResultsInfo_Impl, - { + unsafe extern "system" fn AssessmentDateTime(this: *mut core::ffi::c_void, filetime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideWinSATResultsInfo_Impl::AssessmentDateTime(this) { Ok(ok__) => { @@ -188,10 +146,7 @@ impl IProvideWinSATResultsInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SystemRating(this: *mut core::ffi::c_void, level: *mut f32) -> windows_core::HRESULT - where - Identity: IProvideWinSATResultsInfo_Impl, - { + unsafe extern "system" fn SystemRating(this: *mut core::ffi::c_void, level: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideWinSATResultsInfo_Impl::SystemRating(this) { Ok(ok__) => { @@ -201,10 +156,7 @@ impl IProvideWinSATResultsInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RatingStateDesc(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IProvideWinSATResultsInfo_Impl, - { + unsafe extern "system" fn RatingStateDesc(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideWinSATResultsInfo_Impl::RatingStateDesc(this) { Ok(ok__) => { @@ -228,21 +180,15 @@ impl IProvideWinSATResultsInfo_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IProvideWinSATVisuals_Impl: Sized { +pub trait IProvideWinSATVisuals_Impl: Sized + windows_core::IUnknownImpl { fn get_Bitmap(&self, bitmapsize: WINSAT_BITMAP_SIZE, state: WINSAT_ASSESSMENT_STATE, rating: f32) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] impl windows_core::RuntimeName for IProvideWinSATVisuals {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IProvideWinSATVisuals_Vtbl { - pub const fn new() -> IProvideWinSATVisuals_Vtbl - where - Identity: IProvideWinSATVisuals_Impl, - { - unsafe extern "system" fn get_Bitmap(this: *mut core::ffi::c_void, bitmapsize: WINSAT_BITMAP_SIZE, state: WINSAT_ASSESSMENT_STATE, rating: f32, pbitmap: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IProvideWinSATVisuals_Impl, - { + pub const fn new() -> IProvideWinSATVisuals_Vtbl { + unsafe extern "system" fn get_Bitmap(this: *mut core::ffi::c_void, bitmapsize: WINSAT_BITMAP_SIZE, state: WINSAT_ASSESSMENT_STATE, rating: f32, pbitmap: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideWinSATVisuals_Impl::get_Bitmap(this, core::mem::transmute_copy(&bitmapsize), core::mem::transmute_copy(&state), core::mem::transmute_copy(&rating)) { Ok(ok__) => { @@ -266,14 +212,8 @@ pub trait IQueryAllWinSATAssessments_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IQueryAllWinSATAssessments {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IQueryAllWinSATAssessments_Vtbl { - pub const fn new() -> IQueryAllWinSATAssessments_Vtbl - where - Identity: IQueryAllWinSATAssessments_Impl, - { - unsafe extern "system" fn get_AllXML(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, namespaces: core::mem::MaybeUninit, ppdomnodelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQueryAllWinSATAssessments_Impl, - { + pub const fn new() -> IQueryAllWinSATAssessments_Vtbl { + unsafe extern "system" fn get_AllXML(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, namespaces: core::mem::MaybeUninit, ppdomnodelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryAllWinSATAssessments_Impl::get_AllXML(this, core::mem::transmute(&xpath), core::mem::transmute(&namespaces)) { Ok(ok__) => { @@ -289,19 +229,13 @@ impl IQueryAllWinSATAssessments_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IQueryOEMWinSATCustomization_Impl: Sized { +pub trait IQueryOEMWinSATCustomization_Impl: Sized + windows_core::IUnknownImpl { fn GetOEMPrePopulationInfo(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IQueryOEMWinSATCustomization {} impl IQueryOEMWinSATCustomization_Vtbl { - pub const fn new() -> IQueryOEMWinSATCustomization_Vtbl - where - Identity: IQueryOEMWinSATCustomization_Impl, - { - unsafe extern "system" fn GetOEMPrePopulationInfo(this: *mut core::ffi::c_void, state: *mut WINSAT_OEM_CUSTOMIZATION_STATE) -> windows_core::HRESULT - where - Identity: IQueryOEMWinSATCustomization_Impl, - { + pub const fn new() -> IQueryOEMWinSATCustomization_Vtbl { + unsafe extern "system" fn GetOEMPrePopulationInfo(this: *mut core::ffi::c_void, state: *mut WINSAT_OEM_CUSTOMIZATION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryOEMWinSATCustomization_Impl::GetOEMPrePopulationInfo(this) { Ok(ok__) => { @@ -326,14 +260,8 @@ pub trait IQueryRecentWinSATAssessment_Impl: Sized + super::Com::IDispatch_Impl impl windows_core::RuntimeName for IQueryRecentWinSATAssessment {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IQueryRecentWinSATAssessment_Vtbl { - pub const fn new() -> IQueryRecentWinSATAssessment_Vtbl - where - Identity: IQueryRecentWinSATAssessment_Impl, - { - unsafe extern "system" fn get_XML(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, namespaces: core::mem::MaybeUninit, ppdomnodelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQueryRecentWinSATAssessment_Impl, - { + pub const fn new() -> IQueryRecentWinSATAssessment_Vtbl { + unsafe extern "system" fn get_XML(this: *mut core::ffi::c_void, xpath: core::mem::MaybeUninit, namespaces: core::mem::MaybeUninit, ppdomnodelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryRecentWinSATAssessment_Impl::get_XML(this, core::mem::transmute(&xpath), core::mem::transmute(&namespaces)) { Ok(ok__) => { @@ -343,10 +271,7 @@ impl IQueryRecentWinSATAssessment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Info(this: *mut core::ffi::c_void, ppwinsatassessmentinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQueryRecentWinSATAssessment_Impl, - { + unsafe extern "system" fn Info(this: *mut core::ffi::c_void, ppwinsatassessmentinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryRecentWinSATAssessment_Impl::Info(this) { Ok(ok__) => { @@ -362,27 +287,18 @@ impl IQueryRecentWinSATAssessment_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWinSATInitiateEvents_Impl: Sized { +pub trait IWinSATInitiateEvents_Impl: Sized + windows_core::IUnknownImpl { fn WinSATComplete(&self, hresult: windows_core::HRESULT, strdescription: &windows_core::PCWSTR) -> windows_core::Result<()>; fn WinSATUpdate(&self, ucurrenttick: u32, uticktotal: u32, strcurrentstate: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWinSATInitiateEvents {} impl IWinSATInitiateEvents_Vtbl { - pub const fn new() -> IWinSATInitiateEvents_Vtbl - where - Identity: IWinSATInitiateEvents_Impl, - { - unsafe extern "system" fn WinSATComplete(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, strdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWinSATInitiateEvents_Impl, - { + pub const fn new() -> IWinSATInitiateEvents_Vtbl { + unsafe extern "system" fn WinSATComplete(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, strdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinSATInitiateEvents_Impl::WinSATComplete(this, core::mem::transmute_copy(&hresult), core::mem::transmute(&strdescription)).into() } - unsafe extern "system" fn WinSATUpdate(this: *mut core::ffi::c_void, ucurrenttick: u32, uticktotal: u32, strcurrentstate: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWinSATInitiateEvents_Impl, - { + unsafe extern "system" fn WinSATUpdate(this: *mut core::ffi::c_void, ucurrenttick: u32, uticktotal: u32, strcurrentstate: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinSATInitiateEvents_Impl::WinSATUpdate(this, core::mem::transmute_copy(&ucurrenttick), core::mem::transmute_copy(&uticktotal), core::mem::transmute(&strcurrentstate)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/impl.rs b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/impl.rs index c5ac6b7ad0..b9dd2eb196 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/impl.rs @@ -1,16 +1,10 @@ -pub trait IActionOnCLREvent_Impl: Sized { +pub trait IActionOnCLREvent_Impl: Sized + windows_core::IUnknownImpl { fn OnEvent(&self, event: EClrEvent, data: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActionOnCLREvent {} impl IActionOnCLREvent_Vtbl { - pub const fn new() -> IActionOnCLREvent_Vtbl - where - Identity: IActionOnCLREvent_Impl, - { - unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, event: EClrEvent, data: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActionOnCLREvent_Impl, - { + pub const fn new() -> IActionOnCLREvent_Vtbl { + unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, event: EClrEvent, data: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionOnCLREvent_Impl::OnEvent(this, core::mem::transmute_copy(&event), core::mem::transmute_copy(&data)).into() } @@ -20,19 +14,13 @@ impl IActionOnCLREvent_Vtbl { iid == &::IID } } -pub trait IApartmentCallback_Impl: Sized { +pub trait IApartmentCallback_Impl: Sized + windows_core::IUnknownImpl { fn DoCallback(&self, pfunc: usize, pdata: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IApartmentCallback {} impl IApartmentCallback_Vtbl { - pub const fn new() -> IApartmentCallback_Vtbl - where - Identity: IApartmentCallback_Impl, - { - unsafe extern "system" fn DoCallback(this: *mut core::ffi::c_void, pfunc: usize, pdata: usize) -> windows_core::HRESULT - where - Identity: IApartmentCallback_Impl, - { + pub const fn new() -> IApartmentCallback_Vtbl { + unsafe extern "system" fn DoCallback(this: *mut core::ffi::c_void, pfunc: usize, pdata: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApartmentCallback_Impl::DoCallback(this, core::mem::transmute_copy(&pfunc), core::mem::transmute_copy(&pdata)).into() } @@ -42,19 +30,13 @@ impl IApartmentCallback_Vtbl { iid == &::IID } } -pub trait IAppDomainBinding_Impl: Sized { +pub trait IAppDomainBinding_Impl: Sized + windows_core::IUnknownImpl { fn OnAppDomain(&self, pappdomain: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAppDomainBinding {} impl IAppDomainBinding_Vtbl { - pub const fn new() -> IAppDomainBinding_Vtbl - where - Identity: IAppDomainBinding_Impl, - { - unsafe extern "system" fn OnAppDomain(this: *mut core::ffi::c_void, pappdomain: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppDomainBinding_Impl, - { + pub const fn new() -> IAppDomainBinding_Vtbl { + unsafe extern "system" fn OnAppDomain(this: *mut core::ffi::c_void, pappdomain: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppDomainBinding_Impl::OnAppDomain(this, windows_core::from_raw_borrowed(&pappdomain)).into() } @@ -64,35 +46,23 @@ impl IAppDomainBinding_Vtbl { iid == &::IID } } -pub trait ICLRAppDomainResourceMonitor_Impl: Sized { +pub trait ICLRAppDomainResourceMonitor_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentAllocated(&self, dwappdomainid: u32, pbytesallocated: *mut u64) -> windows_core::Result<()>; fn GetCurrentSurvived(&self, dwappdomainid: u32, pappdomainbytessurvived: *mut u64, ptotalbytessurvived: *mut u64) -> windows_core::Result<()>; fn GetCurrentCpuTime(&self, dwappdomainid: u32, pmilliseconds: *mut u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRAppDomainResourceMonitor {} impl ICLRAppDomainResourceMonitor_Vtbl { - pub const fn new() -> ICLRAppDomainResourceMonitor_Vtbl - where - Identity: ICLRAppDomainResourceMonitor_Impl, - { - unsafe extern "system" fn GetCurrentAllocated(this: *mut core::ffi::c_void, dwappdomainid: u32, pbytesallocated: *mut u64) -> windows_core::HRESULT - where - Identity: ICLRAppDomainResourceMonitor_Impl, - { + pub const fn new() -> ICLRAppDomainResourceMonitor_Vtbl { + unsafe extern "system" fn GetCurrentAllocated(this: *mut core::ffi::c_void, dwappdomainid: u32, pbytesallocated: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRAppDomainResourceMonitor_Impl::GetCurrentAllocated(this, core::mem::transmute_copy(&dwappdomainid), core::mem::transmute_copy(&pbytesallocated)).into() } - unsafe extern "system" fn GetCurrentSurvived(this: *mut core::ffi::c_void, dwappdomainid: u32, pappdomainbytessurvived: *mut u64, ptotalbytessurvived: *mut u64) -> windows_core::HRESULT - where - Identity: ICLRAppDomainResourceMonitor_Impl, - { + unsafe extern "system" fn GetCurrentSurvived(this: *mut core::ffi::c_void, dwappdomainid: u32, pappdomainbytessurvived: *mut u64, ptotalbytessurvived: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRAppDomainResourceMonitor_Impl::GetCurrentSurvived(this, core::mem::transmute_copy(&dwappdomainid), core::mem::transmute_copy(&pappdomainbytessurvived), core::mem::transmute_copy(&ptotalbytessurvived)).into() } - unsafe extern "system" fn GetCurrentCpuTime(this: *mut core::ffi::c_void, dwappdomainid: u32, pmilliseconds: *mut u64) -> windows_core::HRESULT - where - Identity: ICLRAppDomainResourceMonitor_Impl, - { + unsafe extern "system" fn GetCurrentCpuTime(this: *mut core::ffi::c_void, dwappdomainid: u32, pmilliseconds: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRAppDomainResourceMonitor_Impl::GetCurrentCpuTime(this, core::mem::transmute_copy(&dwappdomainid), core::mem::transmute_copy(&pmilliseconds)).into() } @@ -108,7 +78,7 @@ impl ICLRAppDomainResourceMonitor_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICLRAssemblyIdentityManager_Impl: Sized { +pub trait ICLRAssemblyIdentityManager_Impl: Sized + windows_core::IUnknownImpl { fn GetCLRAssemblyReferenceList(&self, ppwzassemblyreferences: *const windows_core::PCWSTR, dwnumofreferences: u32) -> windows_core::Result; fn GetBindingIdentityFromFile(&self, pwzfilepath: &windows_core::PCWSTR, dwflags: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::Result<()>; fn GetBindingIdentityFromStream(&self, pstream: Option<&super::Com::IStream>, dwflags: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::Result<()>; @@ -121,14 +91,8 @@ pub trait ICLRAssemblyIdentityManager_Impl: Sized { impl windows_core::RuntimeName for ICLRAssemblyIdentityManager {} #[cfg(feature = "Win32_System_Com")] impl ICLRAssemblyIdentityManager_Vtbl { - pub const fn new() -> ICLRAssemblyIdentityManager_Vtbl - where - Identity: ICLRAssemblyIdentityManager_Impl, - { - unsafe extern "system" fn GetCLRAssemblyReferenceList(this: *mut core::ffi::c_void, ppwzassemblyreferences: *const windows_core::PCWSTR, dwnumofreferences: u32, ppreferencelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRAssemblyIdentityManager_Impl, - { + pub const fn new() -> ICLRAssemblyIdentityManager_Vtbl { + unsafe extern "system" fn GetCLRAssemblyReferenceList(this: *mut core::ffi::c_void, ppwzassemblyreferences: *const windows_core::PCWSTR, dwnumofreferences: u32, ppreferencelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRAssemblyIdentityManager_Impl::GetCLRAssemblyReferenceList(this, core::mem::transmute_copy(&ppwzassemblyreferences), core::mem::transmute_copy(&dwnumofreferences)) { Ok(ok__) => { @@ -138,24 +102,15 @@ impl ICLRAssemblyIdentityManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBindingIdentityFromFile(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, dwflags: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRAssemblyIdentityManager_Impl, - { + unsafe extern "system" fn GetBindingIdentityFromFile(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, dwflags: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRAssemblyIdentityManager_Impl::GetBindingIdentityFromFile(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pwzbuffer), core::mem::transmute_copy(&pcchbuffersize)).into() } - unsafe extern "system" fn GetBindingIdentityFromStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, dwflags: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRAssemblyIdentityManager_Impl, - { + unsafe extern "system" fn GetBindingIdentityFromStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, dwflags: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRAssemblyIdentityManager_Impl::GetBindingIdentityFromStream(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pwzbuffer), core::mem::transmute_copy(&pcchbuffersize)).into() } - unsafe extern "system" fn GetReferencedAssembliesFromFile(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, dwflags: u32, pexcludeassemblieslist: *mut core::ffi::c_void, ppreferenceenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRAssemblyIdentityManager_Impl, - { + unsafe extern "system" fn GetReferencedAssembliesFromFile(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, dwflags: u32, pexcludeassemblieslist: *mut core::ffi::c_void, ppreferenceenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRAssemblyIdentityManager_Impl::GetReferencedAssembliesFromFile(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pexcludeassemblieslist)) { Ok(ok__) => { @@ -165,10 +120,7 @@ impl ICLRAssemblyIdentityManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReferencedAssembliesFromStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, dwflags: u32, pexcludeassemblieslist: *mut core::ffi::c_void, ppreferenceenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRAssemblyIdentityManager_Impl, - { + unsafe extern "system" fn GetReferencedAssembliesFromStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, dwflags: u32, pexcludeassemblieslist: *mut core::ffi::c_void, ppreferenceenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRAssemblyIdentityManager_Impl::GetReferencedAssembliesFromStream(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pexcludeassemblieslist)) { Ok(ok__) => { @@ -178,10 +130,7 @@ impl ICLRAssemblyIdentityManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProbingAssembliesFromReference(this: *mut core::ffi::c_void, dwmachinetype: u32, dwflags: u32, pwzreferenceidentity: windows_core::PCWSTR, ppprobingassemblyenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRAssemblyIdentityManager_Impl, - { + unsafe extern "system" fn GetProbingAssembliesFromReference(this: *mut core::ffi::c_void, dwmachinetype: u32, dwflags: u32, pwzreferenceidentity: windows_core::PCWSTR, ppprobingassemblyenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRAssemblyIdentityManager_Impl::GetProbingAssembliesFromReference(this, core::mem::transmute_copy(&dwmachinetype), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pwzreferenceidentity)) { Ok(ok__) => { @@ -191,10 +140,7 @@ impl ICLRAssemblyIdentityManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsStronglyNamed(this: *mut core::ffi::c_void, pwzassemblyidentity: windows_core::PCWSTR, pbisstronglynamed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICLRAssemblyIdentityManager_Impl, - { + unsafe extern "system" fn IsStronglyNamed(this: *mut core::ffi::c_void, pwzassemblyidentity: windows_core::PCWSTR, pbisstronglynamed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRAssemblyIdentityManager_Impl::IsStronglyNamed(this, core::mem::transmute(&pwzassemblyidentity)) { Ok(ok__) => { @@ -219,27 +165,18 @@ impl ICLRAssemblyIdentityManager_Vtbl { iid == &::IID } } -pub trait ICLRAssemblyReferenceList_Impl: Sized { +pub trait ICLRAssemblyReferenceList_Impl: Sized + windows_core::IUnknownImpl { fn IsStringAssemblyReferenceInList(&self, pwzassemblyname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn IsAssemblyReferenceInList(&self, pname: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRAssemblyReferenceList {} impl ICLRAssemblyReferenceList_Vtbl { - pub const fn new() -> ICLRAssemblyReferenceList_Vtbl - where - Identity: ICLRAssemblyReferenceList_Impl, - { - unsafe extern "system" fn IsStringAssemblyReferenceInList(this: *mut core::ffi::c_void, pwzassemblyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICLRAssemblyReferenceList_Impl, - { + pub const fn new() -> ICLRAssemblyReferenceList_Vtbl { + unsafe extern "system" fn IsStringAssemblyReferenceInList(this: *mut core::ffi::c_void, pwzassemblyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRAssemblyReferenceList_Impl::IsStringAssemblyReferenceInList(this, core::mem::transmute(&pwzassemblyname)).into() } - unsafe extern "system" fn IsAssemblyReferenceInList(this: *mut core::ffi::c_void, pname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRAssemblyReferenceList_Impl, - { + unsafe extern "system" fn IsAssemblyReferenceInList(this: *mut core::ffi::c_void, pname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRAssemblyReferenceList_Impl::IsAssemblyReferenceInList(this, windows_core::from_raw_borrowed(&pname)).into() } @@ -253,27 +190,18 @@ impl ICLRAssemblyReferenceList_Vtbl { iid == &::IID } } -pub trait ICLRControl_Impl: Sized { +pub trait ICLRControl_Impl: Sized + windows_core::IUnknownImpl { fn GetCLRManager(&self, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetAppDomainManagerType(&self, pwzappdomainmanagerassembly: &windows_core::PCWSTR, pwzappdomainmanagertype: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRControl {} impl ICLRControl_Vtbl { - pub const fn new() -> ICLRControl_Vtbl - where - Identity: ICLRControl_Impl, - { - unsafe extern "system" fn GetCLRManager(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRControl_Impl, - { + pub const fn new() -> ICLRControl_Vtbl { + unsafe extern "system" fn GetCLRManager(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRControl_Impl::GetCLRManager(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppobject)).into() } - unsafe extern "system" fn SetAppDomainManagerType(this: *mut core::ffi::c_void, pwzappdomainmanagerassembly: windows_core::PCWSTR, pwzappdomainmanagertype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICLRControl_Impl, - { + unsafe extern "system" fn SetAppDomainManagerType(this: *mut core::ffi::c_void, pwzappdomainmanagerassembly: windows_core::PCWSTR, pwzappdomainmanagertype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRControl_Impl::SetAppDomainManagerType(this, core::mem::transmute(&pwzappdomainmanagerassembly), core::mem::transmute(&pwzappdomainmanagertype)).into() } @@ -288,7 +216,7 @@ impl ICLRControl_Vtbl { } } #[cfg(feature = "Win32_Security")] -pub trait ICLRDebugManager_Impl: Sized { +pub trait ICLRDebugManager_Impl: Sized + windows_core::IUnknownImpl { fn BeginConnection(&self, dwconnectionid: u32, szconnectionname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetConnectionTasks(&self, id: u32, dwcount: u32, ppclrtask: *const Option) -> windows_core::Result<()>; fn EndConnection(&self, dwconnectionid: u32) -> windows_core::Result<()>; @@ -301,42 +229,24 @@ pub trait ICLRDebugManager_Impl: Sized { impl windows_core::RuntimeName for ICLRDebugManager {} #[cfg(feature = "Win32_Security")] impl ICLRDebugManager_Vtbl { - pub const fn new() -> ICLRDebugManager_Vtbl - where - Identity: ICLRDebugManager_Impl, - { - unsafe extern "system" fn BeginConnection(this: *mut core::ffi::c_void, dwconnectionid: u32, szconnectionname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICLRDebugManager_Impl, - { + pub const fn new() -> ICLRDebugManager_Vtbl { + unsafe extern "system" fn BeginConnection(this: *mut core::ffi::c_void, dwconnectionid: u32, szconnectionname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRDebugManager_Impl::BeginConnection(this, core::mem::transmute_copy(&dwconnectionid), core::mem::transmute(&szconnectionname)).into() } - unsafe extern "system" fn SetConnectionTasks(this: *mut core::ffi::c_void, id: u32, dwcount: u32, ppclrtask: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRDebugManager_Impl, - { + unsafe extern "system" fn SetConnectionTasks(this: *mut core::ffi::c_void, id: u32, dwcount: u32, ppclrtask: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRDebugManager_Impl::SetConnectionTasks(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&dwcount), core::mem::transmute_copy(&ppclrtask)).into() } - unsafe extern "system" fn EndConnection(this: *mut core::ffi::c_void, dwconnectionid: u32) -> windows_core::HRESULT - where - Identity: ICLRDebugManager_Impl, - { + unsafe extern "system" fn EndConnection(this: *mut core::ffi::c_void, dwconnectionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRDebugManager_Impl::EndConnection(this, core::mem::transmute_copy(&dwconnectionid)).into() } - unsafe extern "system" fn SetDacl(this: *mut core::ffi::c_void, pacl: *const super::super::Security::ACL) -> windows_core::HRESULT - where - Identity: ICLRDebugManager_Impl, - { + unsafe extern "system" fn SetDacl(this: *mut core::ffi::c_void, pacl: *const super::super::Security::ACL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRDebugManager_Impl::SetDacl(this, core::mem::transmute_copy(&pacl)).into() } - unsafe extern "system" fn GetDacl(this: *mut core::ffi::c_void, pacl: *mut *mut super::super::Security::ACL) -> windows_core::HRESULT - where - Identity: ICLRDebugManager_Impl, - { + unsafe extern "system" fn GetDacl(this: *mut core::ffi::c_void, pacl: *mut *mut super::super::Security::ACL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRDebugManager_Impl::GetDacl(this) { Ok(ok__) => { @@ -346,10 +256,7 @@ impl ICLRDebugManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDebuggerAttached(this: *mut core::ffi::c_void, pbattached: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICLRDebugManager_Impl, - { + unsafe extern "system" fn IsDebuggerAttached(this: *mut core::ffi::c_void, pbattached: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRDebugManager_Impl::IsDebuggerAttached(this) { Ok(ok__) => { @@ -359,10 +266,7 @@ impl ICLRDebugManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSymbolReadingPolicy(this: *mut core::ffi::c_void, policy: ESymbolReadingPolicy) -> windows_core::HRESULT - where - Identity: ICLRDebugManager_Impl, - { + unsafe extern "system" fn SetSymbolReadingPolicy(this: *mut core::ffi::c_void, policy: ESymbolReadingPolicy) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRDebugManager_Impl::SetSymbolReadingPolicy(this, core::mem::transmute_copy(&policy)).into() } @@ -381,27 +285,18 @@ impl ICLRDebugManager_Vtbl { iid == &::IID } } -pub trait ICLRDebugging_Impl: Sized { +pub trait ICLRDebugging_Impl: Sized + windows_core::IUnknownImpl { fn OpenVirtualProcess(&self, modulebaseaddress: u64, pdatatarget: Option<&windows_core::IUnknown>, plibraryprovider: Option<&ICLRDebuggingLibraryProvider>, pmaxdebuggersupportedversion: *const CLR_DEBUGGING_VERSION, riidprocess: *const windows_core::GUID, ppprocess: *mut Option, pversion: *mut CLR_DEBUGGING_VERSION, pdwflags: *mut CLR_DEBUGGING_PROCESS_FLAGS) -> windows_core::Result<()>; fn CanUnloadNow(&self, hmodule: super::super::Foundation::HMODULE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRDebugging {} impl ICLRDebugging_Vtbl { - pub const fn new() -> ICLRDebugging_Vtbl - where - Identity: ICLRDebugging_Impl, - { - unsafe extern "system" fn OpenVirtualProcess(this: *mut core::ffi::c_void, modulebaseaddress: u64, pdatatarget: *mut core::ffi::c_void, plibraryprovider: *mut core::ffi::c_void, pmaxdebuggersupportedversion: *const CLR_DEBUGGING_VERSION, riidprocess: *const windows_core::GUID, ppprocess: *mut *mut core::ffi::c_void, pversion: *mut CLR_DEBUGGING_VERSION, pdwflags: *mut CLR_DEBUGGING_PROCESS_FLAGS) -> windows_core::HRESULT - where - Identity: ICLRDebugging_Impl, - { + pub const fn new() -> ICLRDebugging_Vtbl { + unsafe extern "system" fn OpenVirtualProcess(this: *mut core::ffi::c_void, modulebaseaddress: u64, pdatatarget: *mut core::ffi::c_void, plibraryprovider: *mut core::ffi::c_void, pmaxdebuggersupportedversion: *const CLR_DEBUGGING_VERSION, riidprocess: *const windows_core::GUID, ppprocess: *mut *mut core::ffi::c_void, pversion: *mut CLR_DEBUGGING_VERSION, pdwflags: *mut CLR_DEBUGGING_PROCESS_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRDebugging_Impl::OpenVirtualProcess(this, core::mem::transmute_copy(&modulebaseaddress), windows_core::from_raw_borrowed(&pdatatarget), windows_core::from_raw_borrowed(&plibraryprovider), core::mem::transmute_copy(&pmaxdebuggersupportedversion), core::mem::transmute_copy(&riidprocess), core::mem::transmute_copy(&ppprocess), core::mem::transmute_copy(&pversion), core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn CanUnloadNow(this: *mut core::ffi::c_void, hmodule: super::super::Foundation::HMODULE) -> windows_core::HRESULT - where - Identity: ICLRDebugging_Impl, - { + unsafe extern "system" fn CanUnloadNow(this: *mut core::ffi::c_void, hmodule: super::super::Foundation::HMODULE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRDebugging_Impl::CanUnloadNow(this, core::mem::transmute_copy(&hmodule)).into() } @@ -415,19 +310,13 @@ impl ICLRDebugging_Vtbl { iid == &::IID } } -pub trait ICLRDebuggingLibraryProvider_Impl: Sized { +pub trait ICLRDebuggingLibraryProvider_Impl: Sized + windows_core::IUnknownImpl { fn ProvideLibrary(&self, pwszfilename: &windows_core::PCWSTR, dwtimestamp: u32, dwsizeofimage: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ICLRDebuggingLibraryProvider {} impl ICLRDebuggingLibraryProvider_Vtbl { - pub const fn new() -> ICLRDebuggingLibraryProvider_Vtbl - where - Identity: ICLRDebuggingLibraryProvider_Impl, - { - unsafe extern "system" fn ProvideLibrary(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR, dwtimestamp: u32, dwsizeofimage: u32, phmodule: *mut super::super::Foundation::HMODULE) -> windows_core::HRESULT - where - Identity: ICLRDebuggingLibraryProvider_Impl, - { + pub const fn new() -> ICLRDebuggingLibraryProvider_Vtbl { + unsafe extern "system" fn ProvideLibrary(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR, dwtimestamp: u32, dwsizeofimage: u32, phmodule: *mut super::super::Foundation::HMODULE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRDebuggingLibraryProvider_Impl::ProvideLibrary(this, core::mem::transmute(&pwszfilename), core::mem::transmute_copy(&dwtimestamp), core::mem::transmute_copy(&dwsizeofimage)) { Ok(ok__) => { @@ -443,27 +332,18 @@ impl ICLRDebuggingLibraryProvider_Vtbl { iid == &::IID } } -pub trait ICLRDomainManager_Impl: Sized { +pub trait ICLRDomainManager_Impl: Sized + windows_core::IUnknownImpl { fn SetAppDomainManagerType(&self, wszappdomainmanagerassembly: &windows_core::PCWSTR, wszappdomainmanagertype: &windows_core::PCWSTR, dwinitializedomainflags: EInitializeNewDomainFlags) -> windows_core::Result<()>; fn SetPropertiesForDefaultAppDomain(&self, nproperties: u32, pwszpropertynames: *const windows_core::PCWSTR, pwszpropertyvalues: *const windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRDomainManager {} impl ICLRDomainManager_Vtbl { - pub const fn new() -> ICLRDomainManager_Vtbl - where - Identity: ICLRDomainManager_Impl, - { - unsafe extern "system" fn SetAppDomainManagerType(this: *mut core::ffi::c_void, wszappdomainmanagerassembly: windows_core::PCWSTR, wszappdomainmanagertype: windows_core::PCWSTR, dwinitializedomainflags: EInitializeNewDomainFlags) -> windows_core::HRESULT - where - Identity: ICLRDomainManager_Impl, - { + pub const fn new() -> ICLRDomainManager_Vtbl { + unsafe extern "system" fn SetAppDomainManagerType(this: *mut core::ffi::c_void, wszappdomainmanagerassembly: windows_core::PCWSTR, wszappdomainmanagertype: windows_core::PCWSTR, dwinitializedomainflags: EInitializeNewDomainFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRDomainManager_Impl::SetAppDomainManagerType(this, core::mem::transmute(&wszappdomainmanagerassembly), core::mem::transmute(&wszappdomainmanagertype), core::mem::transmute_copy(&dwinitializedomainflags)).into() } - unsafe extern "system" fn SetPropertiesForDefaultAppDomain(this: *mut core::ffi::c_void, nproperties: u32, pwszpropertynames: *const windows_core::PCWSTR, pwszpropertyvalues: *const windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICLRDomainManager_Impl, - { + unsafe extern "system" fn SetPropertiesForDefaultAppDomain(this: *mut core::ffi::c_void, nproperties: u32, pwszpropertynames: *const windows_core::PCWSTR, pwszpropertyvalues: *const windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRDomainManager_Impl::SetPropertiesForDefaultAppDomain(this, core::mem::transmute_copy(&nproperties), core::mem::transmute_copy(&pwszpropertynames), core::mem::transmute_copy(&pwszpropertyvalues)).into() } @@ -477,35 +357,23 @@ impl ICLRDomainManager_Vtbl { iid == &::IID } } -pub trait ICLRErrorReportingManager_Impl: Sized { +pub trait ICLRErrorReportingManager_Impl: Sized + windows_core::IUnknownImpl { fn GetBucketParametersForCurrentException(&self, pparams: *mut BucketParameters) -> windows_core::Result<()>; fn BeginCustomDump(&self, dwflavor: ECustomDumpFlavor, dwnumitems: u32, items: *const CustomDumpItem, dwreserved: u32) -> windows_core::Result<()>; fn EndCustomDump(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRErrorReportingManager {} impl ICLRErrorReportingManager_Vtbl { - pub const fn new() -> ICLRErrorReportingManager_Vtbl - where - Identity: ICLRErrorReportingManager_Impl, - { - unsafe extern "system" fn GetBucketParametersForCurrentException(this: *mut core::ffi::c_void, pparams: *mut BucketParameters) -> windows_core::HRESULT - where - Identity: ICLRErrorReportingManager_Impl, - { + pub const fn new() -> ICLRErrorReportingManager_Vtbl { + unsafe extern "system" fn GetBucketParametersForCurrentException(this: *mut core::ffi::c_void, pparams: *mut BucketParameters) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRErrorReportingManager_Impl::GetBucketParametersForCurrentException(this, core::mem::transmute_copy(&pparams)).into() } - unsafe extern "system" fn BeginCustomDump(this: *mut core::ffi::c_void, dwflavor: ECustomDumpFlavor, dwnumitems: u32, items: *const CustomDumpItem, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ICLRErrorReportingManager_Impl, - { + unsafe extern "system" fn BeginCustomDump(this: *mut core::ffi::c_void, dwflavor: ECustomDumpFlavor, dwnumitems: u32, items: *const CustomDumpItem, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRErrorReportingManager_Impl::BeginCustomDump(this, core::mem::transmute_copy(&dwflavor), core::mem::transmute_copy(&dwnumitems), core::mem::transmute_copy(&items), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn EndCustomDump(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRErrorReportingManager_Impl, - { + unsafe extern "system" fn EndCustomDump(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRErrorReportingManager_Impl::EndCustomDump(this).into() } @@ -520,35 +388,23 @@ impl ICLRErrorReportingManager_Vtbl { iid == &::IID } } -pub trait ICLRGCManager_Impl: Sized { +pub trait ICLRGCManager_Impl: Sized + windows_core::IUnknownImpl { fn Collect(&self, generation: i32) -> windows_core::Result<()>; fn GetStats(&self, pstats: *mut COR_GC_STATS) -> windows_core::Result<()>; fn SetGCStartupLimits(&self, segmentsize: u32, maxgen0size: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRGCManager {} impl ICLRGCManager_Vtbl { - pub const fn new() -> ICLRGCManager_Vtbl - where - Identity: ICLRGCManager_Impl, - { - unsafe extern "system" fn Collect(this: *mut core::ffi::c_void, generation: i32) -> windows_core::HRESULT - where - Identity: ICLRGCManager_Impl, - { + pub const fn new() -> ICLRGCManager_Vtbl { + unsafe extern "system" fn Collect(this: *mut core::ffi::c_void, generation: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRGCManager_Impl::Collect(this, core::mem::transmute_copy(&generation)).into() } - unsafe extern "system" fn GetStats(this: *mut core::ffi::c_void, pstats: *mut COR_GC_STATS) -> windows_core::HRESULT - where - Identity: ICLRGCManager_Impl, - { + unsafe extern "system" fn GetStats(this: *mut core::ffi::c_void, pstats: *mut COR_GC_STATS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRGCManager_Impl::GetStats(this, core::mem::transmute_copy(&pstats)).into() } - unsafe extern "system" fn SetGCStartupLimits(this: *mut core::ffi::c_void, segmentsize: u32, maxgen0size: u32) -> windows_core::HRESULT - where - Identity: ICLRGCManager_Impl, - { + unsafe extern "system" fn SetGCStartupLimits(this: *mut core::ffi::c_void, segmentsize: u32, maxgen0size: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRGCManager_Impl::SetGCStartupLimits(this, core::mem::transmute_copy(&segmentsize), core::mem::transmute_copy(&maxgen0size)).into() } @@ -568,14 +424,8 @@ pub trait ICLRGCManager2_Impl: Sized + ICLRGCManager_Impl { } impl windows_core::RuntimeName for ICLRGCManager2 {} impl ICLRGCManager2_Vtbl { - pub const fn new() -> ICLRGCManager2_Vtbl - where - Identity: ICLRGCManager2_Impl, - { - unsafe extern "system" fn SetGCStartupLimitsEx(this: *mut core::ffi::c_void, segmentsize: usize, maxgen0size: usize) -> windows_core::HRESULT - where - Identity: ICLRGCManager2_Impl, - { + pub const fn new() -> ICLRGCManager2_Vtbl { + unsafe extern "system" fn SetGCStartupLimitsEx(this: *mut core::ffi::c_void, segmentsize: usize, maxgen0size: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRGCManager2_Impl::SetGCStartupLimitsEx(this, core::mem::transmute_copy(&segmentsize), core::mem::transmute_copy(&maxgen0size)).into() } @@ -585,27 +435,18 @@ impl ICLRGCManager2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ICLRHostBindingPolicyManager_Impl: Sized { +pub trait ICLRHostBindingPolicyManager_Impl: Sized + windows_core::IUnknownImpl { fn ModifyApplicationPolicy(&self, pwzsourceassemblyidentity: &windows_core::PCWSTR, pwztargetassemblyidentity: &windows_core::PCWSTR, pbapplicationpolicy: *const u8, cbapppolicysize: u32, dwpolicymodifyflags: u32, pbnewapplicationpolicy: *mut u8, pcbnewapppolicysize: *mut u32) -> windows_core::Result<()>; fn EvaluatePolicy(&self, pwzreferenceidentity: &windows_core::PCWSTR, pbapplicationpolicy: *const u8, cbapppolicysize: u32, pwzpostpolicyreferenceidentity: windows_core::PWSTR, pcchpostpolicyreferenceidentity: *mut u32, pdwpoliciesapplied: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRHostBindingPolicyManager {} impl ICLRHostBindingPolicyManager_Vtbl { - pub const fn new() -> ICLRHostBindingPolicyManager_Vtbl - where - Identity: ICLRHostBindingPolicyManager_Impl, - { - unsafe extern "system" fn ModifyApplicationPolicy(this: *mut core::ffi::c_void, pwzsourceassemblyidentity: windows_core::PCWSTR, pwztargetassemblyidentity: windows_core::PCWSTR, pbapplicationpolicy: *const u8, cbapppolicysize: u32, dwpolicymodifyflags: u32, pbnewapplicationpolicy: *mut u8, pcbnewapppolicysize: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRHostBindingPolicyManager_Impl, - { + pub const fn new() -> ICLRHostBindingPolicyManager_Vtbl { + unsafe extern "system" fn ModifyApplicationPolicy(this: *mut core::ffi::c_void, pwzsourceassemblyidentity: windows_core::PCWSTR, pwztargetassemblyidentity: windows_core::PCWSTR, pbapplicationpolicy: *const u8, cbapppolicysize: u32, dwpolicymodifyflags: u32, pbnewapplicationpolicy: *mut u8, pcbnewapppolicysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRHostBindingPolicyManager_Impl::ModifyApplicationPolicy(this, core::mem::transmute(&pwzsourceassemblyidentity), core::mem::transmute(&pwztargetassemblyidentity), core::mem::transmute_copy(&pbapplicationpolicy), core::mem::transmute_copy(&cbapppolicysize), core::mem::transmute_copy(&dwpolicymodifyflags), core::mem::transmute_copy(&pbnewapplicationpolicy), core::mem::transmute_copy(&pcbnewapppolicysize)).into() } - unsafe extern "system" fn EvaluatePolicy(this: *mut core::ffi::c_void, pwzreferenceidentity: windows_core::PCWSTR, pbapplicationpolicy: *const u8, cbapppolicysize: u32, pwzpostpolicyreferenceidentity: windows_core::PWSTR, pcchpostpolicyreferenceidentity: *mut u32, pdwpoliciesapplied: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRHostBindingPolicyManager_Impl, - { + unsafe extern "system" fn EvaluatePolicy(this: *mut core::ffi::c_void, pwzreferenceidentity: windows_core::PCWSTR, pbapplicationpolicy: *const u8, cbapppolicysize: u32, pwzpostpolicyreferenceidentity: windows_core::PWSTR, pcchpostpolicyreferenceidentity: *mut u32, pdwpoliciesapplied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRHostBindingPolicyManager_Impl::EvaluatePolicy(this, core::mem::transmute(&pwzreferenceidentity), core::mem::transmute_copy(&pbapplicationpolicy), core::mem::transmute_copy(&cbapppolicysize), core::mem::transmute_copy(&pwzpostpolicyreferenceidentity), core::mem::transmute_copy(&pcchpostpolicyreferenceidentity), core::mem::transmute_copy(&pdwpoliciesapplied)).into() } @@ -619,27 +460,18 @@ impl ICLRHostBindingPolicyManager_Vtbl { iid == &::IID } } -pub trait ICLRHostProtectionManager_Impl: Sized { +pub trait ICLRHostProtectionManager_Impl: Sized + windows_core::IUnknownImpl { fn SetProtectedCategories(&self, categories: EApiCategories) -> windows_core::Result<()>; fn SetEagerSerializeGrantSets(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRHostProtectionManager {} impl ICLRHostProtectionManager_Vtbl { - pub const fn new() -> ICLRHostProtectionManager_Vtbl - where - Identity: ICLRHostProtectionManager_Impl, - { - unsafe extern "system" fn SetProtectedCategories(this: *mut core::ffi::c_void, categories: EApiCategories) -> windows_core::HRESULT - where - Identity: ICLRHostProtectionManager_Impl, - { + pub const fn new() -> ICLRHostProtectionManager_Vtbl { + unsafe extern "system" fn SetProtectedCategories(this: *mut core::ffi::c_void, categories: EApiCategories) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRHostProtectionManager_Impl::SetProtectedCategories(this, core::mem::transmute_copy(&categories)).into() } - unsafe extern "system" fn SetEagerSerializeGrantSets(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRHostProtectionManager_Impl, - { + unsafe extern "system" fn SetEagerSerializeGrantSets(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRHostProtectionManager_Impl::SetEagerSerializeGrantSets(this).into() } @@ -653,19 +485,13 @@ impl ICLRHostProtectionManager_Vtbl { iid == &::IID } } -pub trait ICLRIoCompletionManager_Impl: Sized { +pub trait ICLRIoCompletionManager_Impl: Sized + windows_core::IUnknownImpl { fn OnComplete(&self, dwerrorcode: u32, numberofbytestransferred: u32, pvoverlapped: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRIoCompletionManager {} impl ICLRIoCompletionManager_Vtbl { - pub const fn new() -> ICLRIoCompletionManager_Vtbl - where - Identity: ICLRIoCompletionManager_Impl, - { - unsafe extern "system" fn OnComplete(this: *mut core::ffi::c_void, dwerrorcode: u32, numberofbytestransferred: u32, pvoverlapped: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRIoCompletionManager_Impl, - { + pub const fn new() -> ICLRIoCompletionManager_Vtbl { + unsafe extern "system" fn OnComplete(this: *mut core::ffi::c_void, dwerrorcode: u32, numberofbytestransferred: u32, pvoverlapped: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRIoCompletionManager_Impl::OnComplete(this, core::mem::transmute_copy(&dwerrorcode), core::mem::transmute_copy(&numberofbytestransferred), core::mem::transmute_copy(&pvoverlapped)).into() } @@ -675,19 +501,13 @@ impl ICLRIoCompletionManager_Vtbl { iid == &::IID } } -pub trait ICLRMemoryNotificationCallback_Impl: Sized { +pub trait ICLRMemoryNotificationCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnMemoryNotification(&self, ememoryavailable: EMemoryAvailable) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRMemoryNotificationCallback {} impl ICLRMemoryNotificationCallback_Vtbl { - pub const fn new() -> ICLRMemoryNotificationCallback_Vtbl - where - Identity: ICLRMemoryNotificationCallback_Impl, - { - unsafe extern "system" fn OnMemoryNotification(this: *mut core::ffi::c_void, ememoryavailable: EMemoryAvailable) -> windows_core::HRESULT - where - Identity: ICLRMemoryNotificationCallback_Impl, - { + pub const fn new() -> ICLRMemoryNotificationCallback_Vtbl { + unsafe extern "system" fn OnMemoryNotification(this: *mut core::ffi::c_void, ememoryavailable: EMemoryAvailable) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRMemoryNotificationCallback_Impl::OnMemoryNotification(this, core::mem::transmute_copy(&ememoryavailable)).into() } @@ -698,7 +518,7 @@ impl ICLRMemoryNotificationCallback_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICLRMetaHost_Impl: Sized { +pub trait ICLRMetaHost_Impl: Sized + windows_core::IUnknownImpl { fn GetRuntime(&self, pwzversion: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppruntime: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetVersionFromFile(&self, pwzfilepath: &windows_core::PCWSTR, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::Result<()>; fn EnumerateInstalledRuntimes(&self) -> windows_core::Result; @@ -711,28 +531,16 @@ pub trait ICLRMetaHost_Impl: Sized { impl windows_core::RuntimeName for ICLRMetaHost {} #[cfg(feature = "Win32_System_Com")] impl ICLRMetaHost_Vtbl { - pub const fn new() -> ICLRMetaHost_Vtbl - where - Identity: ICLRMetaHost_Impl, - { - unsafe extern "system" fn GetRuntime(this: *mut core::ffi::c_void, pwzversion: windows_core::PCWSTR, riid: *const windows_core::GUID, ppruntime: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRMetaHost_Impl, - { + pub const fn new() -> ICLRMetaHost_Vtbl { + unsafe extern "system" fn GetRuntime(this: *mut core::ffi::c_void, pwzversion: windows_core::PCWSTR, riid: *const windows_core::GUID, ppruntime: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRMetaHost_Impl::GetRuntime(this, core::mem::transmute(&pwzversion), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppruntime)).into() } - unsafe extern "system" fn GetVersionFromFile(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRMetaHost_Impl, - { + unsafe extern "system" fn GetVersionFromFile(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRMetaHost_Impl::GetVersionFromFile(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&pwzbuffer), core::mem::transmute_copy(&pcchbuffer)).into() } - unsafe extern "system" fn EnumerateInstalledRuntimes(this: *mut core::ffi::c_void, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRMetaHost_Impl, - { + unsafe extern "system" fn EnumerateInstalledRuntimes(this: *mut core::ffi::c_void, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRMetaHost_Impl::EnumerateInstalledRuntimes(this) { Ok(ok__) => { @@ -742,10 +550,7 @@ impl ICLRMetaHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateLoadedRuntimes(this: *mut core::ffi::c_void, hndprocess: super::super::Foundation::HANDLE, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRMetaHost_Impl, - { + unsafe extern "system" fn EnumerateLoadedRuntimes(this: *mut core::ffi::c_void, hndprocess: super::super::Foundation::HANDLE, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRMetaHost_Impl::EnumerateLoadedRuntimes(this, core::mem::transmute_copy(&hndprocess)) { Ok(ok__) => { @@ -755,24 +560,15 @@ impl ICLRMetaHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestRuntimeLoadedNotification(this: *mut core::ffi::c_void, pcallbackfunction: RuntimeLoadedCallbackFnPtr) -> windows_core::HRESULT - where - Identity: ICLRMetaHost_Impl, - { + unsafe extern "system" fn RequestRuntimeLoadedNotification(this: *mut core::ffi::c_void, pcallbackfunction: RuntimeLoadedCallbackFnPtr) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRMetaHost_Impl::RequestRuntimeLoadedNotification(this, core::mem::transmute_copy(&pcallbackfunction)).into() } - unsafe extern "system" fn QueryLegacyV2RuntimeBinding(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRMetaHost_Impl, - { + unsafe extern "system" fn QueryLegacyV2RuntimeBinding(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRMetaHost_Impl::QueryLegacyV2RuntimeBinding(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn ExitProcess(this: *mut core::ffi::c_void, iexitcode: i32) -> windows_core::HRESULT - where - Identity: ICLRMetaHost_Impl, - { + unsafe extern "system" fn ExitProcess(this: *mut core::ffi::c_void, iexitcode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRMetaHost_Impl::ExitProcess(this, core::mem::transmute_copy(&iexitcode)).into() } @@ -792,21 +588,15 @@ impl ICLRMetaHost_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICLRMetaHostPolicy_Impl: Sized { +pub trait ICLRMetaHostPolicy_Impl: Sized + windows_core::IUnknownImpl { fn GetRequestedRuntime(&self, dwpolicyflags: METAHOST_POLICY_FLAGS, pwzbinary: &windows_core::PCWSTR, pcfgstream: Option<&super::Com::IStream>, pwzversion: &windows_core::PWSTR, pcchversion: *mut u32, pwzimageversion: windows_core::PWSTR, pcchimageversion: *mut u32, pdwconfigflags: *mut u32, riid: *const windows_core::GUID, ppruntime: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ICLRMetaHostPolicy {} #[cfg(feature = "Win32_System_Com")] impl ICLRMetaHostPolicy_Vtbl { - pub const fn new() -> ICLRMetaHostPolicy_Vtbl - where - Identity: ICLRMetaHostPolicy_Impl, - { - unsafe extern "system" fn GetRequestedRuntime(this: *mut core::ffi::c_void, dwpolicyflags: METAHOST_POLICY_FLAGS, pwzbinary: windows_core::PCWSTR, pcfgstream: *mut core::ffi::c_void, pwzversion: windows_core::PWSTR, pcchversion: *mut u32, pwzimageversion: windows_core::PWSTR, pcchimageversion: *mut u32, pdwconfigflags: *mut u32, riid: *const windows_core::GUID, ppruntime: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRMetaHostPolicy_Impl, - { + pub const fn new() -> ICLRMetaHostPolicy_Vtbl { + unsafe extern "system" fn GetRequestedRuntime(this: *mut core::ffi::c_void, dwpolicyflags: METAHOST_POLICY_FLAGS, pwzbinary: windows_core::PCWSTR, pcfgstream: *mut core::ffi::c_void, pwzversion: windows_core::PWSTR, pcchversion: *mut u32, pwzimageversion: windows_core::PWSTR, pcchimageversion: *mut u32, pdwconfigflags: *mut u32, riid: *const windows_core::GUID, ppruntime: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRMetaHostPolicy_Impl::GetRequestedRuntime(this, core::mem::transmute_copy(&dwpolicyflags), core::mem::transmute(&pwzbinary), windows_core::from_raw_borrowed(&pcfgstream), core::mem::transmute(&pwzversion), core::mem::transmute_copy(&pcchversion), core::mem::transmute_copy(&pwzimageversion), core::mem::transmute_copy(&pcchimageversion), core::mem::transmute_copy(&pdwconfigflags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppruntime)).into() } @@ -816,27 +606,18 @@ impl ICLRMetaHostPolicy_Vtbl { iid == &::IID } } -pub trait ICLROnEventManager_Impl: Sized { +pub trait ICLROnEventManager_Impl: Sized + windows_core::IUnknownImpl { fn RegisterActionOnEvent(&self, event: EClrEvent, paction: Option<&IActionOnCLREvent>) -> windows_core::Result<()>; fn UnregisterActionOnEvent(&self, event: EClrEvent, paction: Option<&IActionOnCLREvent>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLROnEventManager {} impl ICLROnEventManager_Vtbl { - pub const fn new() -> ICLROnEventManager_Vtbl - where - Identity: ICLROnEventManager_Impl, - { - unsafe extern "system" fn RegisterActionOnEvent(this: *mut core::ffi::c_void, event: EClrEvent, paction: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLROnEventManager_Impl, - { + pub const fn new() -> ICLROnEventManager_Vtbl { + unsafe extern "system" fn RegisterActionOnEvent(this: *mut core::ffi::c_void, event: EClrEvent, paction: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLROnEventManager_Impl::RegisterActionOnEvent(this, core::mem::transmute_copy(&event), windows_core::from_raw_borrowed(&paction)).into() } - unsafe extern "system" fn UnregisterActionOnEvent(this: *mut core::ffi::c_void, event: EClrEvent, paction: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLROnEventManager_Impl, - { + unsafe extern "system" fn UnregisterActionOnEvent(this: *mut core::ffi::c_void, event: EClrEvent, paction: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLROnEventManager_Impl::UnregisterActionOnEvent(this, core::mem::transmute_copy(&event), windows_core::from_raw_borrowed(&paction)).into() } @@ -850,7 +631,7 @@ impl ICLROnEventManager_Vtbl { iid == &::IID } } -pub trait ICLRPolicyManager_Impl: Sized { +pub trait ICLRPolicyManager_Impl: Sized + windows_core::IUnknownImpl { fn SetDefaultAction(&self, operation: EClrOperation, action: EPolicyAction) -> windows_core::Result<()>; fn SetTimeout(&self, operation: EClrOperation, dwmilliseconds: u32) -> windows_core::Result<()>; fn SetActionOnTimeout(&self, operation: EClrOperation, action: EPolicyAction) -> windows_core::Result<()>; @@ -860,49 +641,28 @@ pub trait ICLRPolicyManager_Impl: Sized { } impl windows_core::RuntimeName for ICLRPolicyManager {} impl ICLRPolicyManager_Vtbl { - pub const fn new() -> ICLRPolicyManager_Vtbl - where - Identity: ICLRPolicyManager_Impl, - { - unsafe extern "system" fn SetDefaultAction(this: *mut core::ffi::c_void, operation: EClrOperation, action: EPolicyAction) -> windows_core::HRESULT - where - Identity: ICLRPolicyManager_Impl, - { + pub const fn new() -> ICLRPolicyManager_Vtbl { + unsafe extern "system" fn SetDefaultAction(this: *mut core::ffi::c_void, operation: EClrOperation, action: EPolicyAction) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRPolicyManager_Impl::SetDefaultAction(this, core::mem::transmute_copy(&operation), core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn SetTimeout(this: *mut core::ffi::c_void, operation: EClrOperation, dwmilliseconds: u32) -> windows_core::HRESULT - where - Identity: ICLRPolicyManager_Impl, - { + unsafe extern "system" fn SetTimeout(this: *mut core::ffi::c_void, operation: EClrOperation, dwmilliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRPolicyManager_Impl::SetTimeout(this, core::mem::transmute_copy(&operation), core::mem::transmute_copy(&dwmilliseconds)).into() } - unsafe extern "system" fn SetActionOnTimeout(this: *mut core::ffi::c_void, operation: EClrOperation, action: EPolicyAction) -> windows_core::HRESULT - where - Identity: ICLRPolicyManager_Impl, - { + unsafe extern "system" fn SetActionOnTimeout(this: *mut core::ffi::c_void, operation: EClrOperation, action: EPolicyAction) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRPolicyManager_Impl::SetActionOnTimeout(this, core::mem::transmute_copy(&operation), core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn SetTimeoutAndAction(this: *mut core::ffi::c_void, operation: EClrOperation, dwmilliseconds: u32, action: EPolicyAction) -> windows_core::HRESULT - where - Identity: ICLRPolicyManager_Impl, - { + unsafe extern "system" fn SetTimeoutAndAction(this: *mut core::ffi::c_void, operation: EClrOperation, dwmilliseconds: u32, action: EPolicyAction) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRPolicyManager_Impl::SetTimeoutAndAction(this, core::mem::transmute_copy(&operation), core::mem::transmute_copy(&dwmilliseconds), core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn SetActionOnFailure(this: *mut core::ffi::c_void, failure: EClrFailure, action: EPolicyAction) -> windows_core::HRESULT - where - Identity: ICLRPolicyManager_Impl, - { + unsafe extern "system" fn SetActionOnFailure(this: *mut core::ffi::c_void, failure: EClrFailure, action: EPolicyAction) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRPolicyManager_Impl::SetActionOnFailure(this, core::mem::transmute_copy(&failure), core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn SetUnhandledExceptionPolicy(this: *mut core::ffi::c_void, policy: EClrUnhandledException) -> windows_core::HRESULT - where - Identity: ICLRPolicyManager_Impl, - { + unsafe extern "system" fn SetUnhandledExceptionPolicy(this: *mut core::ffi::c_void, policy: EClrUnhandledException) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRPolicyManager_Impl::SetUnhandledExceptionPolicy(this, core::mem::transmute_copy(&policy)).into() } @@ -920,19 +680,13 @@ impl ICLRPolicyManager_Vtbl { iid == &::IID } } -pub trait ICLRProbingAssemblyEnum_Impl: Sized { +pub trait ICLRProbingAssemblyEnum_Impl: Sized + windows_core::IUnknownImpl { fn Get(&self, dwindex: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRProbingAssemblyEnum {} impl ICLRProbingAssemblyEnum_Vtbl { - pub const fn new() -> ICLRProbingAssemblyEnum_Vtbl - where - Identity: ICLRProbingAssemblyEnum_Impl, - { - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, dwindex: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRProbingAssemblyEnum_Impl, - { + pub const fn new() -> ICLRProbingAssemblyEnum_Vtbl { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, dwindex: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRProbingAssemblyEnum_Impl::Get(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pwzbuffer), core::mem::transmute_copy(&pcchbuffersize)).into() } @@ -942,19 +696,13 @@ impl ICLRProbingAssemblyEnum_Vtbl { iid == &::IID } } -pub trait ICLRProfiling_Impl: Sized { +pub trait ICLRProfiling_Impl: Sized + windows_core::IUnknownImpl { fn AttachProfiler(&self, dwprofileeprocessid: u32, dwmillisecondsmax: u32, pclsidprofiler: *const windows_core::GUID, wszprofilerpath: &windows_core::PCWSTR, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRProfiling {} impl ICLRProfiling_Vtbl { - pub const fn new() -> ICLRProfiling_Vtbl - where - Identity: ICLRProfiling_Impl, - { - unsafe extern "system" fn AttachProfiler(this: *mut core::ffi::c_void, dwprofileeprocessid: u32, dwmillisecondsmax: u32, pclsidprofiler: *const windows_core::GUID, wszprofilerpath: windows_core::PCWSTR, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::HRESULT - where - Identity: ICLRProfiling_Impl, - { + pub const fn new() -> ICLRProfiling_Vtbl { + unsafe extern "system" fn AttachProfiler(this: *mut core::ffi::c_void, dwprofileeprocessid: u32, dwmillisecondsmax: u32, pclsidprofiler: *const windows_core::GUID, wszprofilerpath: windows_core::PCWSTR, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRProfiling_Impl::AttachProfiler(this, core::mem::transmute_copy(&dwprofileeprocessid), core::mem::transmute_copy(&dwmillisecondsmax), core::mem::transmute_copy(&pclsidprofiler), core::mem::transmute(&wszprofilerpath), core::mem::transmute_copy(&pvclientdata), core::mem::transmute_copy(&cbclientdata)).into() } @@ -964,19 +712,13 @@ impl ICLRProfiling_Vtbl { iid == &::IID } } -pub trait ICLRReferenceAssemblyEnum_Impl: Sized { +pub trait ICLRReferenceAssemblyEnum_Impl: Sized + windows_core::IUnknownImpl { fn Get(&self, dwindex: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRReferenceAssemblyEnum {} impl ICLRReferenceAssemblyEnum_Vtbl { - pub const fn new() -> ICLRReferenceAssemblyEnum_Vtbl - where - Identity: ICLRReferenceAssemblyEnum_Impl, - { - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, dwindex: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRReferenceAssemblyEnum_Impl, - { + pub const fn new() -> ICLRReferenceAssemblyEnum_Vtbl { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, dwindex: u32, pwzbuffer: windows_core::PWSTR, pcchbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRReferenceAssemblyEnum_Impl::Get(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pwzbuffer), core::mem::transmute_copy(&pcchbuffersize)).into() } @@ -986,7 +728,7 @@ impl ICLRReferenceAssemblyEnum_Vtbl { iid == &::IID } } -pub trait ICLRRuntimeHost_Impl: Sized { +pub trait ICLRRuntimeHost_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; fn SetHostControl(&self, phostcontrol: Option<&IHostControl>) -> windows_core::Result<()>; @@ -999,35 +741,20 @@ pub trait ICLRRuntimeHost_Impl: Sized { } impl windows_core::RuntimeName for ICLRRuntimeHost {} impl ICLRRuntimeHost_Vtbl { - pub const fn new() -> ICLRRuntimeHost_Vtbl - where - Identity: ICLRRuntimeHost_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRRuntimeHost_Impl, - { + pub const fn new() -> ICLRRuntimeHost_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeHost_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRRuntimeHost_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeHost_Impl::Stop(this).into() } - unsafe extern "system" fn SetHostControl(this: *mut core::ffi::c_void, phostcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRRuntimeHost_Impl, - { + unsafe extern "system" fn SetHostControl(this: *mut core::ffi::c_void, phostcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeHost_Impl::SetHostControl(this, windows_core::from_raw_borrowed(&phostcontrol)).into() } - unsafe extern "system" fn GetCLRControl(this: *mut core::ffi::c_void, pclrcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRRuntimeHost_Impl, - { + unsafe extern "system" fn GetCLRControl(this: *mut core::ffi::c_void, pclrcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRRuntimeHost_Impl::GetCLRControl(this) { Ok(ok__) => { @@ -1037,24 +764,15 @@ impl ICLRRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnloadAppDomain(this: *mut core::ffi::c_void, dwappdomainid: u32, fwaituntildone: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICLRRuntimeHost_Impl, - { + unsafe extern "system" fn UnloadAppDomain(this: *mut core::ffi::c_void, dwappdomainid: u32, fwaituntildone: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeHost_Impl::UnloadAppDomain(this, core::mem::transmute_copy(&dwappdomainid), core::mem::transmute_copy(&fwaituntildone)).into() } - unsafe extern "system" fn ExecuteInAppDomain(this: *mut core::ffi::c_void, dwappdomainid: u32, pcallback: FExecuteInAppDomainCallback, cookie: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRRuntimeHost_Impl, - { + unsafe extern "system" fn ExecuteInAppDomain(this: *mut core::ffi::c_void, dwappdomainid: u32, pcallback: FExecuteInAppDomainCallback, cookie: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeHost_Impl::ExecuteInAppDomain(this, core::mem::transmute_copy(&dwappdomainid), core::mem::transmute_copy(&pcallback), core::mem::transmute_copy(&cookie)).into() } - unsafe extern "system" fn GetCurrentAppDomainId(this: *mut core::ffi::c_void, pdwappdomainid: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRRuntimeHost_Impl, - { + unsafe extern "system" fn GetCurrentAppDomainId(this: *mut core::ffi::c_void, pdwappdomainid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRRuntimeHost_Impl::GetCurrentAppDomainId(this) { Ok(ok__) => { @@ -1064,10 +782,7 @@ impl ICLRRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExecuteApplication(this: *mut core::ffi::c_void, pwzappfullname: windows_core::PCWSTR, dwmanifestpaths: u32, ppwzmanifestpaths: *const windows_core::PCWSTR, dwactivationdata: u32, ppwzactivationdata: *const windows_core::PCWSTR, preturnvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICLRRuntimeHost_Impl, - { + unsafe extern "system" fn ExecuteApplication(this: *mut core::ffi::c_void, pwzappfullname: windows_core::PCWSTR, dwmanifestpaths: u32, ppwzmanifestpaths: *const windows_core::PCWSTR, dwactivationdata: u32, ppwzactivationdata: *const windows_core::PCWSTR, preturnvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRRuntimeHost_Impl::ExecuteApplication(this, core::mem::transmute(&pwzappfullname), core::mem::transmute_copy(&dwmanifestpaths), core::mem::transmute_copy(&ppwzmanifestpaths), core::mem::transmute_copy(&dwactivationdata), core::mem::transmute_copy(&ppwzactivationdata)) { Ok(ok__) => { @@ -1077,10 +792,7 @@ impl ICLRRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExecuteInDefaultAppDomain(this: *mut core::ffi::c_void, pwzassemblypath: windows_core::PCWSTR, pwztypename: windows_core::PCWSTR, pwzmethodname: windows_core::PCWSTR, pwzargument: windows_core::PCWSTR, preturnvalue: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRRuntimeHost_Impl, - { + unsafe extern "system" fn ExecuteInDefaultAppDomain(this: *mut core::ffi::c_void, pwzassemblypath: windows_core::PCWSTR, pwztypename: windows_core::PCWSTR, pwzmethodname: windows_core::PCWSTR, pwzargument: windows_core::PCWSTR, preturnvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRRuntimeHost_Impl::ExecuteInDefaultAppDomain(this, core::mem::transmute(&pwzassemblypath), core::mem::transmute(&pwztypename), core::mem::transmute(&pwzmethodname), core::mem::transmute(&pwzargument)) { Ok(ok__) => { @@ -1107,7 +819,7 @@ impl ICLRRuntimeHost_Vtbl { iid == &::IID } } -pub trait ICLRRuntimeInfo_Impl: Sized { +pub trait ICLRRuntimeInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetVersionString(&self, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::Result<()>; fn GetRuntimeDirectory(&self, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::Result<()>; fn IsLoaded(&self, hndprocess: super::super::Foundation::HANDLE) -> windows_core::Result; @@ -1123,28 +835,16 @@ pub trait ICLRRuntimeInfo_Impl: Sized { } impl windows_core::RuntimeName for ICLRRuntimeInfo {} impl ICLRRuntimeInfo_Vtbl { - pub const fn new() -> ICLRRuntimeInfo_Vtbl - where - Identity: ICLRRuntimeInfo_Impl, - { - unsafe extern "system" fn GetVersionString(this: *mut core::ffi::c_void, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + pub const fn new() -> ICLRRuntimeInfo_Vtbl { + unsafe extern "system" fn GetVersionString(this: *mut core::ffi::c_void, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeInfo_Impl::GetVersionString(this, core::mem::transmute_copy(&pwzbuffer), core::mem::transmute_copy(&pcchbuffer)).into() } - unsafe extern "system" fn GetRuntimeDirectory(this: *mut core::ffi::c_void, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn GetRuntimeDirectory(this: *mut core::ffi::c_void, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeInfo_Impl::GetRuntimeDirectory(this, core::mem::transmute_copy(&pwzbuffer), core::mem::transmute_copy(&pcchbuffer)).into() } - unsafe extern "system" fn IsLoaded(this: *mut core::ffi::c_void, hndprocess: super::super::Foundation::HANDLE, pbloaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn IsLoaded(this: *mut core::ffi::c_void, hndprocess: super::super::Foundation::HANDLE, pbloaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRRuntimeInfo_Impl::IsLoaded(this, core::mem::transmute_copy(&hndprocess)) { Ok(ok__) => { @@ -1154,17 +854,11 @@ impl ICLRRuntimeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadErrorString(this: *mut core::ffi::c_void, iresourceid: u32, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32, ilocaleid: i32) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn LoadErrorString(this: *mut core::ffi::c_void, iresourceid: u32, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32, ilocaleid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeInfo_Impl::LoadErrorString(this, core::mem::transmute_copy(&iresourceid), core::mem::transmute_copy(&pwzbuffer), core::mem::transmute_copy(&pcchbuffer), core::mem::transmute_copy(&ilocaleid)).into() } - unsafe extern "system" fn LoadLibraryA(this: *mut core::ffi::c_void, pwzdllname: windows_core::PCWSTR, phndmodule: *mut super::super::Foundation::HMODULE) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn LoadLibraryA(this: *mut core::ffi::c_void, pwzdllname: windows_core::PCWSTR, phndmodule: *mut super::super::Foundation::HMODULE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRRuntimeInfo_Impl::LoadLibraryA(this, core::mem::transmute(&pwzdllname)) { Ok(ok__) => { @@ -1174,10 +868,7 @@ impl ICLRRuntimeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcAddress(this: *mut core::ffi::c_void, pszprocname: windows_core::PCSTR, ppproc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn GetProcAddress(this: *mut core::ffi::c_void, pszprocname: windows_core::PCSTR, ppproc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRRuntimeInfo_Impl::GetProcAddress(this, core::mem::transmute(&pszprocname)) { Ok(ok__) => { @@ -1187,17 +878,11 @@ impl ICLRRuntimeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInterface(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn GetInterface(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeInfo_Impl::GetInterface(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn IsLoadable(this: *mut core::ffi::c_void, pbloadable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn IsLoadable(this: *mut core::ffi::c_void, pbloadable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRRuntimeInfo_Impl::IsLoadable(this) { Ok(ok__) => { @@ -1207,31 +892,19 @@ impl ICLRRuntimeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultStartupFlags(this: *mut core::ffi::c_void, dwstartupflags: u32, pwzhostconfigfile: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn SetDefaultStartupFlags(this: *mut core::ffi::c_void, dwstartupflags: u32, pwzhostconfigfile: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeInfo_Impl::SetDefaultStartupFlags(this, core::mem::transmute_copy(&dwstartupflags), core::mem::transmute(&pwzhostconfigfile)).into() } - unsafe extern "system" fn GetDefaultStartupFlags(this: *mut core::ffi::c_void, pdwstartupflags: *mut u32, pwzhostconfigfile: windows_core::PWSTR, pcchhostconfigfile: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn GetDefaultStartupFlags(this: *mut core::ffi::c_void, pdwstartupflags: *mut u32, pwzhostconfigfile: windows_core::PWSTR, pcchhostconfigfile: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeInfo_Impl::GetDefaultStartupFlags(this, core::mem::transmute_copy(&pdwstartupflags), core::mem::transmute_copy(&pwzhostconfigfile), core::mem::transmute_copy(&pcchhostconfigfile)).into() } - unsafe extern "system" fn BindAsLegacyV2Runtime(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn BindAsLegacyV2Runtime(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeInfo_Impl::BindAsLegacyV2Runtime(this).into() } - unsafe extern "system" fn IsStarted(this: *mut core::ffi::c_void, pbstarted: *mut super::super::Foundation::BOOL, pdwstartupflags: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRRuntimeInfo_Impl, - { + unsafe extern "system" fn IsStarted(this: *mut core::ffi::c_void, pbstarted: *mut super::super::Foundation::BOOL, pdwstartupflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeInfo_Impl::IsStarted(this, core::mem::transmute_copy(&pbstarted), core::mem::transmute_copy(&pdwstartupflags)).into() } @@ -1255,7 +928,7 @@ impl ICLRRuntimeInfo_Vtbl { iid == &::IID } } -pub trait ICLRStrongName_Impl: Sized { +pub trait ICLRStrongName_Impl: Sized + windows_core::IUnknownImpl { fn GetHashFromAssemblyFile(&self, pszfilepath: &windows_core::PCSTR, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::Result<()>; fn GetHashFromAssemblyFileW(&self, pwzfilepath: &windows_core::PCWSTR, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::Result<()>; fn GetHashFromBlob(&self, pbblob: *const u8, cchblob: u32, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::Result<()>; @@ -1284,56 +957,32 @@ pub trait ICLRStrongName_Impl: Sized { } impl windows_core::RuntimeName for ICLRStrongName {} impl ICLRStrongName_Vtbl { - pub const fn new() -> ICLRStrongName_Vtbl - where - Identity: ICLRStrongName_Impl, - { - unsafe extern "system" fn GetHashFromAssemblyFile(this: *mut core::ffi::c_void, pszfilepath: windows_core::PCSTR, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + pub const fn new() -> ICLRStrongName_Vtbl { + unsafe extern "system" fn GetHashFromAssemblyFile(this: *mut core::ffi::c_void, pszfilepath: windows_core::PCSTR, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::GetHashFromAssemblyFile(this, core::mem::transmute(&pszfilepath), core::mem::transmute_copy(&pihashalg), core::mem::transmute_copy(&pbhash), core::mem::transmute_copy(&cchhash), core::mem::transmute_copy(&pchhash)).into() } - unsafe extern "system" fn GetHashFromAssemblyFileW(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn GetHashFromAssemblyFileW(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::GetHashFromAssemblyFileW(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&pihashalg), core::mem::transmute_copy(&pbhash), core::mem::transmute_copy(&cchhash), core::mem::transmute_copy(&pchhash)).into() } - unsafe extern "system" fn GetHashFromBlob(this: *mut core::ffi::c_void, pbblob: *const u8, cchblob: u32, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn GetHashFromBlob(this: *mut core::ffi::c_void, pbblob: *const u8, cchblob: u32, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::GetHashFromBlob(this, core::mem::transmute_copy(&pbblob), core::mem::transmute_copy(&cchblob), core::mem::transmute_copy(&pihashalg), core::mem::transmute_copy(&pbhash), core::mem::transmute_copy(&cchhash), core::mem::transmute_copy(&pchhash)).into() } - unsafe extern "system" fn GetHashFromFile(this: *mut core::ffi::c_void, pszfilepath: windows_core::PCSTR, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn GetHashFromFile(this: *mut core::ffi::c_void, pszfilepath: windows_core::PCSTR, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::GetHashFromFile(this, core::mem::transmute(&pszfilepath), core::mem::transmute_copy(&pihashalg), core::mem::transmute_copy(&pbhash), core::mem::transmute_copy(&cchhash), core::mem::transmute_copy(&pchhash)).into() } - unsafe extern "system" fn GetHashFromFileW(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn GetHashFromFileW(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::GetHashFromFileW(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&pihashalg), core::mem::transmute_copy(&pbhash), core::mem::transmute_copy(&cchhash), core::mem::transmute_copy(&pchhash)).into() } - unsafe extern "system" fn GetHashFromHandle(this: *mut core::ffi::c_void, hfile: super::super::Foundation::HANDLE, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn GetHashFromHandle(this: *mut core::ffi::c_void, hfile: super::super::Foundation::HANDLE, pihashalg: *mut u32, pbhash: *mut u8, cchhash: u32, pchhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::GetHashFromHandle(this, core::mem::transmute_copy(&hfile), core::mem::transmute_copy(&pihashalg), core::mem::transmute_copy(&pbhash), core::mem::transmute_copy(&cchhash), core::mem::transmute_copy(&pchhash)).into() } - unsafe extern "system" fn StrongNameCompareAssemblies(this: *mut core::ffi::c_void, pwzassembly1: windows_core::PCWSTR, pwzassembly2: windows_core::PCWSTR, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameCompareAssemblies(this: *mut core::ffi::c_void, pwzassembly1: windows_core::PCWSTR, pwzassembly2: windows_core::PCWSTR, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRStrongName_Impl::StrongNameCompareAssemblies(this, core::mem::transmute(&pwzassembly1), core::mem::transmute(&pwzassembly2)) { Ok(ok__) => { @@ -1343,38 +992,23 @@ impl ICLRStrongName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StrongNameFreeBuffer(this: *mut core::ffi::c_void, pbmemory: *const u8) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameFreeBuffer(this: *mut core::ffi::c_void, pbmemory: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameFreeBuffer(this, core::mem::transmute_copy(&pbmemory)).into() } - unsafe extern "system" fn StrongNameGetBlob(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, pbblob: *mut u8, pcbblob: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameGetBlob(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, pbblob: *mut u8, pcbblob: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameGetBlob(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&pbblob), core::mem::transmute_copy(&pcbblob)).into() } - unsafe extern "system" fn StrongNameGetBlobFromImage(this: *mut core::ffi::c_void, pbbase: *const u8, dwlength: u32, pbblob: *mut u8, pcbblob: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameGetBlobFromImage(this: *mut core::ffi::c_void, pbbase: *const u8, dwlength: u32, pbblob: *mut u8, pcbblob: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameGetBlobFromImage(this, core::mem::transmute_copy(&pbbase), core::mem::transmute_copy(&dwlength), core::mem::transmute_copy(&pbblob), core::mem::transmute_copy(&pcbblob)).into() } - unsafe extern "system" fn StrongNameGetPublicKey(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameGetPublicKey(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameGetPublicKey(this, core::mem::transmute(&pwzkeycontainer), core::mem::transmute_copy(&pbkeyblob), core::mem::transmute_copy(&cbkeyblob), core::mem::transmute_copy(&ppbpublickeyblob), core::mem::transmute_copy(&pcbpublickeyblob)).into() } - unsafe extern "system" fn StrongNameHashSize(this: *mut core::ffi::c_void, ulhashalg: u32, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameHashSize(this: *mut core::ffi::c_void, ulhashalg: u32, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRStrongName_Impl::StrongNameHashSize(this, core::mem::transmute_copy(&ulhashalg)) { Ok(ok__) => { @@ -1384,59 +1018,35 @@ impl ICLRStrongName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StrongNameKeyDelete(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameKeyDelete(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameKeyDelete(this, core::mem::transmute(&pwzkeycontainer)).into() } - unsafe extern "system" fn StrongNameKeyGen(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR, dwflags: u32, ppbkeyblob: *mut *mut u8, pcbkeyblob: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameKeyGen(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR, dwflags: u32, ppbkeyblob: *mut *mut u8, pcbkeyblob: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameKeyGen(this, core::mem::transmute(&pwzkeycontainer), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ppbkeyblob), core::mem::transmute_copy(&pcbkeyblob)).into() } - unsafe extern "system" fn StrongNameKeyGenEx(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR, dwflags: u32, dwkeysize: u32, ppbkeyblob: *mut *mut u8, pcbkeyblob: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameKeyGenEx(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR, dwflags: u32, dwkeysize: u32, ppbkeyblob: *mut *mut u8, pcbkeyblob: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameKeyGenEx(this, core::mem::transmute(&pwzkeycontainer), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwkeysize), core::mem::transmute_copy(&ppbkeyblob), core::mem::transmute_copy(&pcbkeyblob)).into() } - unsafe extern "system" fn StrongNameKeyInstall(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameKeyInstall(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameKeyInstall(this, core::mem::transmute(&pwzkeycontainer), core::mem::transmute_copy(&pbkeyblob), core::mem::transmute_copy(&cbkeyblob)).into() } - unsafe extern "system" fn StrongNameSignatureGeneration(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, pwzkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameSignatureGeneration(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, pwzkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameSignatureGeneration(this, core::mem::transmute(&pwzfilepath), core::mem::transmute(&pwzkeycontainer), core::mem::transmute_copy(&pbkeyblob), core::mem::transmute_copy(&cbkeyblob), core::mem::transmute_copy(&ppbsignatureblob), core::mem::transmute_copy(&pcbsignatureblob)).into() } - unsafe extern "system" fn StrongNameSignatureGenerationEx(this: *mut core::ffi::c_void, wszfilepath: windows_core::PCWSTR, wszkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameSignatureGenerationEx(this: *mut core::ffi::c_void, wszfilepath: windows_core::PCWSTR, wszkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameSignatureGenerationEx(this, core::mem::transmute(&wszfilepath), core::mem::transmute(&wszkeycontainer), core::mem::transmute_copy(&pbkeyblob), core::mem::transmute_copy(&cbkeyblob), core::mem::transmute_copy(&ppbsignatureblob), core::mem::transmute_copy(&pcbsignatureblob), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn StrongNameSignatureSize(this: *mut core::ffi::c_void, pbpublickeyblob: *const u8, cbpublickeyblob: u32, pcbsize: *const u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameSignatureSize(this: *mut core::ffi::c_void, pbpublickeyblob: *const u8, cbpublickeyblob: u32, pcbsize: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameSignatureSize(this, core::mem::transmute_copy(&pbpublickeyblob), core::mem::transmute_copy(&cbpublickeyblob), core::mem::transmute_copy(&pcbsize)).into() } - unsafe extern "system" fn StrongNameSignatureVerification(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, dwinflags: u32, pdwoutflags: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameSignatureVerification(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, dwinflags: u32, pdwoutflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRStrongName_Impl::StrongNameSignatureVerification(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&dwinflags)) { Ok(ok__) => { @@ -1446,10 +1056,7 @@ impl ICLRStrongName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StrongNameSignatureVerificationEx(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, fforceverification: super::super::Foundation::BOOLEAN, pfwasverified: *mut u8) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameSignatureVerificationEx(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, fforceverification: super::super::Foundation::BOOLEAN, pfwasverified: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRStrongName_Impl::StrongNameSignatureVerificationEx(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&fforceverification)) { Ok(ok__) => { @@ -1459,10 +1066,7 @@ impl ICLRStrongName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StrongNameSignatureVerificationFromImage(this: *mut core::ffi::c_void, pbbase: *const u8, dwlength: u32, dwinflags: u32, pdwoutflags: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameSignatureVerificationFromImage(this: *mut core::ffi::c_void, pbbase: *const u8, dwlength: u32, dwinflags: u32, pdwoutflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRStrongName_Impl::StrongNameSignatureVerificationFromImage(this, core::mem::transmute_copy(&pbbase), core::mem::transmute_copy(&dwlength), core::mem::transmute_copy(&dwinflags)) { Ok(ok__) => { @@ -1472,24 +1076,15 @@ impl ICLRStrongName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StrongNameTokenFromAssembly(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameTokenFromAssembly(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameTokenFromAssembly(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&ppbstrongnametoken), core::mem::transmute_copy(&pcbstrongnametoken)).into() } - unsafe extern "system" fn StrongNameTokenFromAssemblyEx(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameTokenFromAssemblyEx(this: *mut core::ffi::c_void, pwzfilepath: windows_core::PCWSTR, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameTokenFromAssemblyEx(this, core::mem::transmute(&pwzfilepath), core::mem::transmute_copy(&ppbstrongnametoken), core::mem::transmute_copy(&pcbstrongnametoken), core::mem::transmute_copy(&ppbpublickeyblob), core::mem::transmute_copy(&pcbpublickeyblob)).into() } - unsafe extern "system" fn StrongNameTokenFromPublicKey(this: *mut core::ffi::c_void, pbpublickeyblob: *const u8, cbpublickeyblob: u32, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName_Impl, - { + unsafe extern "system" fn StrongNameTokenFromPublicKey(this: *mut core::ffi::c_void, pbpublickeyblob: *const u8, cbpublickeyblob: u32, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName_Impl::StrongNameTokenFromPublicKey(this, core::mem::transmute_copy(&pbpublickeyblob), core::mem::transmute_copy(&cbpublickeyblob), core::mem::transmute_copy(&ppbstrongnametoken), core::mem::transmute_copy(&pcbstrongnametoken)).into() } @@ -1526,27 +1121,18 @@ impl ICLRStrongName_Vtbl { iid == &::IID } } -pub trait ICLRStrongName2_Impl: Sized { +pub trait ICLRStrongName2_Impl: Sized + windows_core::IUnknownImpl { fn StrongNameGetPublicKeyEx(&self, pwzkeycontainer: &windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32, uhashalgid: u32, ureserved: u32) -> windows_core::Result<()>; fn StrongNameSignatureVerificationEx2(&self, wszfilepath: &windows_core::PCWSTR, fforceverification: super::super::Foundation::BOOLEAN, pbecmapublickey: *const u8, cbecmapublickey: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ICLRStrongName2 {} impl ICLRStrongName2_Vtbl { - pub const fn new() -> ICLRStrongName2_Vtbl - where - Identity: ICLRStrongName2_Impl, - { - unsafe extern "system" fn StrongNameGetPublicKeyEx(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32, uhashalgid: u32, ureserved: u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName2_Impl, - { + pub const fn new() -> ICLRStrongName2_Vtbl { + unsafe extern "system" fn StrongNameGetPublicKeyEx(this: *mut core::ffi::c_void, pwzkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32, uhashalgid: u32, ureserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName2_Impl::StrongNameGetPublicKeyEx(this, core::mem::transmute(&pwzkeycontainer), core::mem::transmute_copy(&pbkeyblob), core::mem::transmute_copy(&cbkeyblob), core::mem::transmute_copy(&ppbpublickeyblob), core::mem::transmute_copy(&pcbpublickeyblob), core::mem::transmute_copy(&uhashalgid), core::mem::transmute_copy(&ureserved)).into() } - unsafe extern "system" fn StrongNameSignatureVerificationEx2(this: *mut core::ffi::c_void, wszfilepath: windows_core::PCWSTR, fforceverification: super::super::Foundation::BOOLEAN, pbecmapublickey: *const u8, cbecmapublickey: u32, pfwasverified: *mut u8) -> windows_core::HRESULT - where - Identity: ICLRStrongName2_Impl, - { + unsafe extern "system" fn StrongNameSignatureVerificationEx2(this: *mut core::ffi::c_void, wszfilepath: windows_core::PCWSTR, fforceverification: super::super::Foundation::BOOLEAN, pbecmapublickey: *const u8, cbecmapublickey: u32, pfwasverified: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRStrongName2_Impl::StrongNameSignatureVerificationEx2(this, core::mem::transmute(&wszfilepath), core::mem::transmute_copy(&fforceverification), core::mem::transmute_copy(&pbecmapublickey), core::mem::transmute_copy(&cbecmapublickey)) { Ok(ok__) => { @@ -1566,35 +1152,23 @@ impl ICLRStrongName2_Vtbl { iid == &::IID } } -pub trait ICLRStrongName3_Impl: Sized { +pub trait ICLRStrongName3_Impl: Sized + windows_core::IUnknownImpl { fn StrongNameDigestGenerate(&self, wszfilepath: &windows_core::PCWSTR, ppbdigestblob: *mut *mut u8, pcbdigestblob: *mut u32, dwflags: u32) -> windows_core::Result<()>; fn StrongNameDigestSign(&self, wszkeycontainer: &windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, pbdigestblob: *const u8, cbdigestblob: u32, hashalgid: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32, dwflags: u32) -> windows_core::Result<()>; fn StrongNameDigestEmbed(&self, wszfilepath: &windows_core::PCWSTR, pbsignatureblob: *const u8, cbsignatureblob: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICLRStrongName3 {} impl ICLRStrongName3_Vtbl { - pub const fn new() -> ICLRStrongName3_Vtbl - where - Identity: ICLRStrongName3_Impl, - { - unsafe extern "system" fn StrongNameDigestGenerate(this: *mut core::ffi::c_void, wszfilepath: windows_core::PCWSTR, ppbdigestblob: *mut *mut u8, pcbdigestblob: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName3_Impl, - { + pub const fn new() -> ICLRStrongName3_Vtbl { + unsafe extern "system" fn StrongNameDigestGenerate(this: *mut core::ffi::c_void, wszfilepath: windows_core::PCWSTR, ppbdigestblob: *mut *mut u8, pcbdigestblob: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName3_Impl::StrongNameDigestGenerate(this, core::mem::transmute(&wszfilepath), core::mem::transmute_copy(&ppbdigestblob), core::mem::transmute_copy(&pcbdigestblob), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn StrongNameDigestSign(this: *mut core::ffi::c_void, wszkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, pbdigestblob: *const u8, cbdigestblob: u32, hashalgid: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName3_Impl, - { + unsafe extern "system" fn StrongNameDigestSign(this: *mut core::ffi::c_void, wszkeycontainer: windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, pbdigestblob: *const u8, cbdigestblob: u32, hashalgid: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName3_Impl::StrongNameDigestSign(this, core::mem::transmute(&wszkeycontainer), core::mem::transmute_copy(&pbkeyblob), core::mem::transmute_copy(&cbkeyblob), core::mem::transmute_copy(&pbdigestblob), core::mem::transmute_copy(&cbdigestblob), core::mem::transmute_copy(&hashalgid), core::mem::transmute_copy(&ppbsignatureblob), core::mem::transmute_copy(&pcbsignatureblob), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn StrongNameDigestEmbed(this: *mut core::ffi::c_void, wszfilepath: windows_core::PCWSTR, pbsignatureblob: *const u8, cbsignatureblob: u32) -> windows_core::HRESULT - where - Identity: ICLRStrongName3_Impl, - { + unsafe extern "system" fn StrongNameDigestEmbed(this: *mut core::ffi::c_void, wszfilepath: windows_core::PCWSTR, pbsignatureblob: *const u8, cbsignatureblob: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRStrongName3_Impl::StrongNameDigestEmbed(this, core::mem::transmute(&wszfilepath), core::mem::transmute_copy(&pbsignatureblob), core::mem::transmute_copy(&cbsignatureblob)).into() } @@ -1609,7 +1183,7 @@ impl ICLRStrongName3_Vtbl { iid == &::IID } } -pub trait ICLRSyncManager_Impl: Sized { +pub trait ICLRSyncManager_Impl: Sized + windows_core::IUnknownImpl { fn GetMonitorOwner(&self, cookie: usize) -> windows_core::Result; fn CreateRWLockOwnerIterator(&self, cookie: usize) -> windows_core::Result; fn GetRWLockOwnerNext(&self, iterator: usize) -> windows_core::Result; @@ -1617,14 +1191,8 @@ pub trait ICLRSyncManager_Impl: Sized { } impl windows_core::RuntimeName for ICLRSyncManager {} impl ICLRSyncManager_Vtbl { - pub const fn new() -> ICLRSyncManager_Vtbl - where - Identity: ICLRSyncManager_Impl, - { - unsafe extern "system" fn GetMonitorOwner(this: *mut core::ffi::c_void, cookie: usize, ppownerhosttask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRSyncManager_Impl, - { + pub const fn new() -> ICLRSyncManager_Vtbl { + unsafe extern "system" fn GetMonitorOwner(this: *mut core::ffi::c_void, cookie: usize, ppownerhosttask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRSyncManager_Impl::GetMonitorOwner(this, core::mem::transmute_copy(&cookie)) { Ok(ok__) => { @@ -1634,10 +1202,7 @@ impl ICLRSyncManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRWLockOwnerIterator(this: *mut core::ffi::c_void, cookie: usize, piterator: *mut usize) -> windows_core::HRESULT - where - Identity: ICLRSyncManager_Impl, - { + unsafe extern "system" fn CreateRWLockOwnerIterator(this: *mut core::ffi::c_void, cookie: usize, piterator: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRSyncManager_Impl::CreateRWLockOwnerIterator(this, core::mem::transmute_copy(&cookie)) { Ok(ok__) => { @@ -1647,10 +1212,7 @@ impl ICLRSyncManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRWLockOwnerNext(this: *mut core::ffi::c_void, iterator: usize, ppownerhosttask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRSyncManager_Impl, - { + unsafe extern "system" fn GetRWLockOwnerNext(this: *mut core::ffi::c_void, iterator: usize, ppownerhosttask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRSyncManager_Impl::GetRWLockOwnerNext(this, core::mem::transmute_copy(&iterator)) { Ok(ok__) => { @@ -1660,10 +1222,7 @@ impl ICLRSyncManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRWLockOwnerIterator(this: *mut core::ffi::c_void, iterator: usize) -> windows_core::HRESULT - where - Identity: ICLRSyncManager_Impl, - { + unsafe extern "system" fn DeleteRWLockOwnerIterator(this: *mut core::ffi::c_void, iterator: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRSyncManager_Impl::DeleteRWLockOwnerIterator(this, core::mem::transmute_copy(&iterator)).into() } @@ -1679,7 +1238,7 @@ impl ICLRSyncManager_Vtbl { iid == &::IID } } -pub trait ICLRTask_Impl: Sized { +pub trait ICLRTask_Impl: Sized + windows_core::IUnknownImpl { fn SwitchIn(&self, threadhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn SwitchOut(&self) -> windows_core::Result<()>; fn GetMemStats(&self) -> windows_core::Result; @@ -1694,28 +1253,16 @@ pub trait ICLRTask_Impl: Sized { } impl windows_core::RuntimeName for ICLRTask {} impl ICLRTask_Vtbl { - pub const fn new() -> ICLRTask_Vtbl - where - Identity: ICLRTask_Impl, - { - unsafe extern "system" fn SwitchIn(this: *mut core::ffi::c_void, threadhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + pub const fn new() -> ICLRTask_Vtbl { + unsafe extern "system" fn SwitchIn(this: *mut core::ffi::c_void, threadhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask_Impl::SwitchIn(this, core::mem::transmute_copy(&threadhandle)).into() } - unsafe extern "system" fn SwitchOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + unsafe extern "system" fn SwitchOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask_Impl::SwitchOut(this).into() } - unsafe extern "system" fn GetMemStats(this: *mut core::ffi::c_void, memusage: *mut COR_GC_THREAD_STATS) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + unsafe extern "system" fn GetMemStats(this: *mut core::ffi::c_void, memusage: *mut COR_GC_THREAD_STATS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRTask_Impl::GetMemStats(this) { Ok(ok__) => { @@ -1725,38 +1272,23 @@ impl ICLRTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, ffull: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, ffull: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask_Impl::Reset(this, core::mem::transmute_copy(&ffull)).into() } - unsafe extern "system" fn ExitTask(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + unsafe extern "system" fn ExitTask(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask_Impl::ExitTask(this).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask_Impl::Abort(this).into() } - unsafe extern "system" fn RudeAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + unsafe extern "system" fn RudeAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask_Impl::RudeAbort(this).into() } - unsafe extern "system" fn NeedsPriorityScheduling(this: *mut core::ffi::c_void, pbneedspriorityscheduling: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + unsafe extern "system" fn NeedsPriorityScheduling(this: *mut core::ffi::c_void, pbneedspriorityscheduling: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRTask_Impl::NeedsPriorityScheduling(this) { Ok(ok__) => { @@ -1766,17 +1298,11 @@ impl ICLRTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn YieldTask(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + unsafe extern "system" fn YieldTask(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask_Impl::YieldTask(this).into() } - unsafe extern "system" fn LocksHeld(this: *mut core::ffi::c_void, plockcount: *mut usize) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + unsafe extern "system" fn LocksHeld(this: *mut core::ffi::c_void, plockcount: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRTask_Impl::LocksHeld(this) { Ok(ok__) => { @@ -1786,10 +1312,7 @@ impl ICLRTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskIdentifier(this: *mut core::ffi::c_void, asked: u64) -> windows_core::HRESULT - where - Identity: ICLRTask_Impl, - { + unsafe extern "system" fn SetTaskIdentifier(this: *mut core::ffi::c_void, asked: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask_Impl::SetTaskIdentifier(this, core::mem::transmute_copy(&asked)).into() } @@ -1818,21 +1341,12 @@ pub trait ICLRTask2_Impl: Sized + ICLRTask_Impl { } impl windows_core::RuntimeName for ICLRTask2 {} impl ICLRTask2_Vtbl { - pub const fn new() -> ICLRTask2_Vtbl - where - Identity: ICLRTask2_Impl, - { - unsafe extern "system" fn BeginPreventAsyncAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRTask2_Impl, - { + pub const fn new() -> ICLRTask2_Vtbl { + unsafe extern "system" fn BeginPreventAsyncAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask2_Impl::BeginPreventAsyncAbort(this).into() } - unsafe extern "system" fn EndPreventAsyncAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRTask2_Impl, - { + unsafe extern "system" fn EndPreventAsyncAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask2_Impl::EndPreventAsyncAbort(this).into() } @@ -1846,7 +1360,7 @@ impl ICLRTask2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ICLRTaskManager_Impl: Sized { +pub trait ICLRTaskManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateTask(&self) -> windows_core::Result; fn GetCurrentTask(&self) -> windows_core::Result; fn SetUILocale(&self, lcid: u32) -> windows_core::Result<()>; @@ -1855,14 +1369,8 @@ pub trait ICLRTaskManager_Impl: Sized { } impl windows_core::RuntimeName for ICLRTaskManager {} impl ICLRTaskManager_Vtbl { - pub const fn new() -> ICLRTaskManager_Vtbl - where - Identity: ICLRTaskManager_Impl, - { - unsafe extern "system" fn CreateTask(this: *mut core::ffi::c_void, ptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRTaskManager_Impl, - { + pub const fn new() -> ICLRTaskManager_Vtbl { + unsafe extern "system" fn CreateTask(this: *mut core::ffi::c_void, ptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRTaskManager_Impl::CreateTask(this) { Ok(ok__) => { @@ -1872,10 +1380,7 @@ impl ICLRTaskManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentTask(this: *mut core::ffi::c_void, ptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICLRTaskManager_Impl, - { + unsafe extern "system" fn GetCurrentTask(this: *mut core::ffi::c_void, ptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRTaskManager_Impl::GetCurrentTask(this) { Ok(ok__) => { @@ -1885,24 +1390,15 @@ impl ICLRTaskManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUILocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT - where - Identity: ICLRTaskManager_Impl, - { + unsafe extern "system" fn SetUILocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTaskManager_Impl::SetUILocale(this, core::mem::transmute_copy(&lcid)).into() } - unsafe extern "system" fn SetLocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT - where - Identity: ICLRTaskManager_Impl, - { + unsafe extern "system" fn SetLocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTaskManager_Impl::SetLocale(this, core::mem::transmute_copy(&lcid)).into() } - unsafe extern "system" fn GetCurrentTaskType(this: *mut core::ffi::c_void, ptasktype: *mut ETaskType) -> windows_core::HRESULT - where - Identity: ICLRTaskManager_Impl, - { + unsafe extern "system" fn GetCurrentTaskType(this: *mut core::ffi::c_void, ptasktype: *mut ETaskType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRTaskManager_Impl::GetCurrentTaskType(this) { Ok(ok__) => { @@ -1925,27 +1421,18 @@ impl ICLRTaskManager_Vtbl { iid == &::IID } } -pub trait ICatalogServices_Impl: Sized { +pub trait ICatalogServices_Impl: Sized + windows_core::IUnknownImpl { fn Autodone(&self) -> windows_core::Result<()>; fn NotAutodone(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICatalogServices {} impl ICatalogServices_Vtbl { - pub const fn new() -> ICatalogServices_Vtbl - where - Identity: ICatalogServices_Impl, - { - unsafe extern "system" fn Autodone(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalogServices_Impl, - { + pub const fn new() -> ICatalogServices_Vtbl { + unsafe extern "system" fn Autodone(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatalogServices_Impl::Autodone(this).into() } - unsafe extern "system" fn NotAutodone(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalogServices_Impl, - { + unsafe extern "system" fn NotAutodone(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatalogServices_Impl::NotAutodone(this).into() } @@ -1959,7 +1446,7 @@ impl ICatalogServices_Vtbl { iid == &::IID } } -pub trait ICorConfiguration_Impl: Sized { +pub trait ICorConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn SetGCThreadControl(&self, pgcthreadcontrol: Option<&IGCThreadControl>) -> windows_core::Result<()>; fn SetGCHostControl(&self, pgchostcontrol: Option<&IGCHostControl>) -> windows_core::Result<()>; fn SetDebuggerThreadControl(&self, pdebuggerthreadcontrol: Option<&IDebuggerThreadControl>) -> windows_core::Result<()>; @@ -1967,35 +1454,20 @@ pub trait ICorConfiguration_Impl: Sized { } impl windows_core::RuntimeName for ICorConfiguration {} impl ICorConfiguration_Vtbl { - pub const fn new() -> ICorConfiguration_Vtbl - where - Identity: ICorConfiguration_Impl, - { - unsafe extern "system" fn SetGCThreadControl(this: *mut core::ffi::c_void, pgcthreadcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorConfiguration_Impl, - { + pub const fn new() -> ICorConfiguration_Vtbl { + unsafe extern "system" fn SetGCThreadControl(this: *mut core::ffi::c_void, pgcthreadcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorConfiguration_Impl::SetGCThreadControl(this, windows_core::from_raw_borrowed(&pgcthreadcontrol)).into() } - unsafe extern "system" fn SetGCHostControl(this: *mut core::ffi::c_void, pgchostcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorConfiguration_Impl, - { + unsafe extern "system" fn SetGCHostControl(this: *mut core::ffi::c_void, pgchostcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorConfiguration_Impl::SetGCHostControl(this, windows_core::from_raw_borrowed(&pgchostcontrol)).into() } - unsafe extern "system" fn SetDebuggerThreadControl(this: *mut core::ffi::c_void, pdebuggerthreadcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorConfiguration_Impl, - { + unsafe extern "system" fn SetDebuggerThreadControl(this: *mut core::ffi::c_void, pdebuggerthreadcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorConfiguration_Impl::SetDebuggerThreadControl(this, windows_core::from_raw_borrowed(&pdebuggerthreadcontrol)).into() } - unsafe extern "system" fn AddDebuggerSpecialThread(this: *mut core::ffi::c_void, dwspecialthreadid: u32) -> windows_core::HRESULT - where - Identity: ICorConfiguration_Impl, - { + unsafe extern "system" fn AddDebuggerSpecialThread(this: *mut core::ffi::c_void, dwspecialthreadid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorConfiguration_Impl::AddDebuggerSpecialThread(this, core::mem::transmute_copy(&dwspecialthreadid)).into() } @@ -2011,7 +1483,7 @@ impl ICorConfiguration_Vtbl { iid == &::IID } } -pub trait ICorRuntimeHost_Impl: Sized { +pub trait ICorRuntimeHost_Impl: Sized + windows_core::IUnknownImpl { fn CreateLogicalThreadState(&self) -> windows_core::Result<()>; fn DeleteLogicalThreadState(&self) -> windows_core::Result<()>; fn SwitchInLogicalThreadState(&self, pfibercookie: *const u32) -> windows_core::Result<()>; @@ -2034,35 +1506,20 @@ pub trait ICorRuntimeHost_Impl: Sized { } impl windows_core::RuntimeName for ICorRuntimeHost {} impl ICorRuntimeHost_Vtbl { - pub const fn new() -> ICorRuntimeHost_Vtbl - where - Identity: ICorRuntimeHost_Impl, - { - unsafe extern "system" fn CreateLogicalThreadState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + pub const fn new() -> ICorRuntimeHost_Vtbl { + unsafe extern "system" fn CreateLogicalThreadState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorRuntimeHost_Impl::CreateLogicalThreadState(this).into() } - unsafe extern "system" fn DeleteLogicalThreadState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn DeleteLogicalThreadState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorRuntimeHost_Impl::DeleteLogicalThreadState(this).into() } - unsafe extern "system" fn SwitchInLogicalThreadState(this: *mut core::ffi::c_void, pfibercookie: *const u32) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn SwitchInLogicalThreadState(this: *mut core::ffi::c_void, pfibercookie: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorRuntimeHost_Impl::SwitchInLogicalThreadState(this, core::mem::transmute_copy(&pfibercookie)).into() } - unsafe extern "system" fn SwitchOutLogicalThreadState(this: *mut core::ffi::c_void, pfibercookie: *mut *mut u32) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn SwitchOutLogicalThreadState(this: *mut core::ffi::c_void, pfibercookie: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::SwitchOutLogicalThreadState(this) { Ok(ok__) => { @@ -2072,10 +1529,7 @@ impl ICorRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocksHeldByLogicalThread(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn LocksHeldByLogicalThread(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::LocksHeldByLogicalThread(this) { Ok(ok__) => { @@ -2085,10 +1539,7 @@ impl ICorRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MapFile(this: *mut core::ffi::c_void, hfile: super::super::Foundation::HANDLE, hmapaddress: *mut super::super::Foundation::HMODULE) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn MapFile(this: *mut core::ffi::c_void, hfile: super::super::Foundation::HANDLE, hmapaddress: *mut super::super::Foundation::HMODULE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::MapFile(this, core::mem::transmute_copy(&hfile)) { Ok(ok__) => { @@ -2098,10 +1549,7 @@ impl ICorRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConfiguration(this: *mut core::ffi::c_void, pconfiguration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn GetConfiguration(this: *mut core::ffi::c_void, pconfiguration: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::GetConfiguration(this) { Ok(ok__) => { @@ -2111,24 +1559,15 @@ impl ICorRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorRuntimeHost_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorRuntimeHost_Impl::Stop(this).into() } - unsafe extern "system" fn CreateDomain(this: *mut core::ffi::c_void, pwzfriendlyname: windows_core::PCWSTR, pidentityarray: *mut core::ffi::c_void, pappdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn CreateDomain(this: *mut core::ffi::c_void, pwzfriendlyname: windows_core::PCWSTR, pidentityarray: *mut core::ffi::c_void, pappdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::CreateDomain(this, core::mem::transmute(&pwzfriendlyname), windows_core::from_raw_borrowed(&pidentityarray)) { Ok(ok__) => { @@ -2138,10 +1577,7 @@ impl ICorRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultDomain(this: *mut core::ffi::c_void, pappdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn GetDefaultDomain(this: *mut core::ffi::c_void, pappdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::GetDefaultDomain(this) { Ok(ok__) => { @@ -2151,17 +1587,11 @@ impl ICorRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDomains(this: *mut core::ffi::c_void, henum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn EnumDomains(this: *mut core::ffi::c_void, henum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorRuntimeHost_Impl::EnumDomains(this, core::mem::transmute_copy(&henum)).into() } - unsafe extern "system" fn NextDomain(this: *mut core::ffi::c_void, henum: *const core::ffi::c_void, pappdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn NextDomain(this: *mut core::ffi::c_void, henum: *const core::ffi::c_void, pappdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::NextDomain(this, core::mem::transmute_copy(&henum)) { Ok(ok__) => { @@ -2171,17 +1601,11 @@ impl ICorRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseEnum(this: *mut core::ffi::c_void, henum: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn CloseEnum(this: *mut core::ffi::c_void, henum: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorRuntimeHost_Impl::CloseEnum(this, core::mem::transmute_copy(&henum)).into() } - unsafe extern "system" fn CreateDomainEx(this: *mut core::ffi::c_void, pwzfriendlyname: windows_core::PCWSTR, psetup: *mut core::ffi::c_void, pevidence: *mut core::ffi::c_void, pappdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn CreateDomainEx(this: *mut core::ffi::c_void, pwzfriendlyname: windows_core::PCWSTR, psetup: *mut core::ffi::c_void, pevidence: *mut core::ffi::c_void, pappdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::CreateDomainEx(this, core::mem::transmute(&pwzfriendlyname), windows_core::from_raw_borrowed(&psetup), windows_core::from_raw_borrowed(&pevidence)) { Ok(ok__) => { @@ -2191,10 +1615,7 @@ impl ICorRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDomainSetup(this: *mut core::ffi::c_void, pappdomainsetup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn CreateDomainSetup(this: *mut core::ffi::c_void, pappdomainsetup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::CreateDomainSetup(this) { Ok(ok__) => { @@ -2204,10 +1625,7 @@ impl ICorRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEvidence(this: *mut core::ffi::c_void, pevidence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn CreateEvidence(this: *mut core::ffi::c_void, pevidence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::CreateEvidence(this) { Ok(ok__) => { @@ -2217,17 +1635,11 @@ impl ICorRuntimeHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnloadDomain(this: *mut core::ffi::c_void, pappdomain: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn UnloadDomain(this: *mut core::ffi::c_void, pappdomain: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorRuntimeHost_Impl::UnloadDomain(this, windows_core::from_raw_borrowed(&pappdomain)).into() } - unsafe extern "system" fn CurrentDomain(this: *mut core::ffi::c_void, pappdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorRuntimeHost_Impl, - { + unsafe extern "system" fn CurrentDomain(this: *mut core::ffi::c_void, pappdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorRuntimeHost_Impl::CurrentDomain(this) { Ok(ok__) => { @@ -2265,7 +1677,7 @@ impl ICorRuntimeHost_Vtbl { } } #[cfg(all(feature = "Win32_System_IO", feature = "Win32_System_Threading"))] -pub trait ICorThreadpool_Impl: Sized { +pub trait ICorThreadpool_Impl: Sized + windows_core::IUnknownImpl { fn CorRegisterWaitForSingleObject(&self, phnewwaitobject: *const super::super::Foundation::HANDLE, hwaitobject: super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, context: *const core::ffi::c_void, timeout: u32, executeonlyonce: super::super::Foundation::BOOL) -> windows_core::Result; fn CorUnregisterWait(&self, hwaitobject: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result; fn CorQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, executeonlyonce: super::super::Foundation::BOOL) -> windows_core::Result; @@ -2282,14 +1694,8 @@ pub trait ICorThreadpool_Impl: Sized { impl windows_core::RuntimeName for ICorThreadpool {} #[cfg(all(feature = "Win32_System_IO", feature = "Win32_System_Threading"))] impl ICorThreadpool_Vtbl { - pub const fn new() -> ICorThreadpool_Vtbl - where - Identity: ICorThreadpool_Impl, - { - unsafe extern "system" fn CorRegisterWaitForSingleObject(this: *mut core::ffi::c_void, phnewwaitobject: *const super::super::Foundation::HANDLE, hwaitobject: super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, context: *const core::ffi::c_void, timeout: u32, executeonlyonce: super::super::Foundation::BOOL, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + pub const fn new() -> ICorThreadpool_Vtbl { + unsafe extern "system" fn CorRegisterWaitForSingleObject(this: *mut core::ffi::c_void, phnewwaitobject: *const super::super::Foundation::HANDLE, hwaitobject: super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, context: *const core::ffi::c_void, timeout: u32, executeonlyonce: super::super::Foundation::BOOL, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorRegisterWaitForSingleObject(this, core::mem::transmute_copy(&phnewwaitobject), core::mem::transmute_copy(&hwaitobject), core::mem::transmute_copy(&callback), core::mem::transmute_copy(&context), core::mem::transmute_copy(&timeout), core::mem::transmute_copy(&executeonlyonce)) { Ok(ok__) => { @@ -2299,10 +1705,7 @@ impl ICorThreadpool_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorUnregisterWait(this: *mut core::ffi::c_void, hwaitobject: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + unsafe extern "system" fn CorUnregisterWait(this: *mut core::ffi::c_void, hwaitobject: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorUnregisterWait(this, core::mem::transmute_copy(&hwaitobject), core::mem::transmute_copy(&completionevent)) { Ok(ok__) => { @@ -2312,10 +1715,7 @@ impl ICorThreadpool_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorQueueUserWorkItem(this: *mut core::ffi::c_void, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, executeonlyonce: super::super::Foundation::BOOL, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + unsafe extern "system" fn CorQueueUserWorkItem(this: *mut core::ffi::c_void, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, executeonlyonce: super::super::Foundation::BOOL, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorQueueUserWorkItem(this, core::mem::transmute_copy(&function), core::mem::transmute_copy(&context), core::mem::transmute_copy(&executeonlyonce)) { Ok(ok__) => { @@ -2325,10 +1725,7 @@ impl ICorThreadpool_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorCreateTimer(this: *mut core::ffi::c_void, phnewtimer: *const super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, parameter: *const core::ffi::c_void, duetime: u32, period: u32, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + unsafe extern "system" fn CorCreateTimer(this: *mut core::ffi::c_void, phnewtimer: *const super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, parameter: *const core::ffi::c_void, duetime: u32, period: u32, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorCreateTimer(this, core::mem::transmute_copy(&phnewtimer), core::mem::transmute_copy(&callback), core::mem::transmute_copy(¶meter), core::mem::transmute_copy(&duetime), core::mem::transmute_copy(&period)) { Ok(ok__) => { @@ -2338,10 +1735,7 @@ impl ICorThreadpool_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorChangeTimer(this: *mut core::ffi::c_void, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + unsafe extern "system" fn CorChangeTimer(this: *mut core::ffi::c_void, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorChangeTimer(this, core::mem::transmute_copy(&timer), core::mem::transmute_copy(&duetime), core::mem::transmute_copy(&period)) { Ok(ok__) => { @@ -2351,10 +1745,7 @@ impl ICorThreadpool_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorDeleteTimer(this: *mut core::ffi::c_void, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + unsafe extern "system" fn CorDeleteTimer(this: *mut core::ffi::c_void, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorDeleteTimer(this, core::mem::transmute_copy(&timer), core::mem::transmute_copy(&completionevent)) { Ok(ok__) => { @@ -2364,17 +1755,11 @@ impl ICorThreadpool_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorBindIoCompletionCallback(this: *mut core::ffi::c_void, filehandle: super::super::Foundation::HANDLE, callback: super::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + unsafe extern "system" fn CorBindIoCompletionCallback(this: *mut core::ffi::c_void, filehandle: super::super::Foundation::HANDLE, callback: super::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorThreadpool_Impl::CorBindIoCompletionCallback(this, core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&callback)).into() } - unsafe extern "system" fn CorCallOrQueueUserWorkItem(this: *mut core::ffi::c_void, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + unsafe extern "system" fn CorCallOrQueueUserWorkItem(this: *mut core::ffi::c_void, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorCallOrQueueUserWorkItem(this, core::mem::transmute_copy(&function), core::mem::transmute_copy(&context)) { Ok(ok__) => { @@ -2384,24 +1769,15 @@ impl ICorThreadpool_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorSetMaxThreads(this: *mut core::ffi::c_void, maxworkerthreads: u32, maxiocompletionthreads: u32) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + unsafe extern "system" fn CorSetMaxThreads(this: *mut core::ffi::c_void, maxworkerthreads: u32, maxiocompletionthreads: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorThreadpool_Impl::CorSetMaxThreads(this, core::mem::transmute_copy(&maxworkerthreads), core::mem::transmute_copy(&maxiocompletionthreads)).into() } - unsafe extern "system" fn CorGetMaxThreads(this: *mut core::ffi::c_void, maxworkerthreads: *mut u32, maxiocompletionthreads: *mut u32) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + unsafe extern "system" fn CorGetMaxThreads(this: *mut core::ffi::c_void, maxworkerthreads: *mut u32, maxiocompletionthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorThreadpool_Impl::CorGetMaxThreads(this, core::mem::transmute_copy(&maxworkerthreads), core::mem::transmute_copy(&maxiocompletionthreads)).into() } - unsafe extern "system" fn CorGetAvailableThreads(this: *mut core::ffi::c_void, availableworkerthreads: *mut u32, availableiocompletionthreads: *mut u32) -> windows_core::HRESULT - where - Identity: ICorThreadpool_Impl, - { + unsafe extern "system" fn CorGetAvailableThreads(this: *mut core::ffi::c_void, availableworkerthreads: *mut u32, availableiocompletionthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorThreadpool_Impl::CorGetAvailableThreads(this, core::mem::transmute_copy(&availableworkerthreads), core::mem::transmute_copy(&availableiocompletionthreads)).into() } @@ -2424,19 +1800,13 @@ impl ICorThreadpool_Vtbl { iid == &::IID } } -pub trait IDebuggerInfo_Impl: Sized { +pub trait IDebuggerInfo_Impl: Sized + windows_core::IUnknownImpl { fn IsDebuggerAttached(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDebuggerInfo {} impl IDebuggerInfo_Vtbl { - pub const fn new() -> IDebuggerInfo_Vtbl - where - Identity: IDebuggerInfo_Impl, - { - unsafe extern "system" fn IsDebuggerAttached(this: *mut core::ffi::c_void, pbattached: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebuggerInfo_Impl, - { + pub const fn new() -> IDebuggerInfo_Vtbl { + unsafe extern "system" fn IsDebuggerAttached(this: *mut core::ffi::c_void, pbattached: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebuggerInfo_Impl::IsDebuggerAttached(this) { Ok(ok__) => { @@ -2452,35 +1822,23 @@ impl IDebuggerInfo_Vtbl { iid == &::IID } } -pub trait IDebuggerThreadControl_Impl: Sized { +pub trait IDebuggerThreadControl_Impl: Sized + windows_core::IUnknownImpl { fn ThreadIsBlockingForDebugger(&self) -> windows_core::Result<()>; fn ReleaseAllRuntimeThreads(&self) -> windows_core::Result<()>; fn StartBlockingForDebugger(&self, dwunused: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebuggerThreadControl {} impl IDebuggerThreadControl_Vtbl { - pub const fn new() -> IDebuggerThreadControl_Vtbl - where - Identity: IDebuggerThreadControl_Impl, - { - unsafe extern "system" fn ThreadIsBlockingForDebugger(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebuggerThreadControl_Impl, - { + pub const fn new() -> IDebuggerThreadControl_Vtbl { + unsafe extern "system" fn ThreadIsBlockingForDebugger(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebuggerThreadControl_Impl::ThreadIsBlockingForDebugger(this).into() } - unsafe extern "system" fn ReleaseAllRuntimeThreads(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebuggerThreadControl_Impl, - { + unsafe extern "system" fn ReleaseAllRuntimeThreads(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebuggerThreadControl_Impl::ReleaseAllRuntimeThreads(this).into() } - unsafe extern "system" fn StartBlockingForDebugger(this: *mut core::ffi::c_void, dwunused: u32) -> windows_core::HRESULT - where - Identity: IDebuggerThreadControl_Impl, - { + unsafe extern "system" fn StartBlockingForDebugger(this: *mut core::ffi::c_void, dwunused: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebuggerThreadControl_Impl::StartBlockingForDebugger(this, core::mem::transmute_copy(&dwunused)).into() } @@ -2495,7 +1853,7 @@ impl IDebuggerThreadControl_Vtbl { iid == &::IID } } -pub trait IGCHost_Impl: Sized { +pub trait IGCHost_Impl: Sized + windows_core::IUnknownImpl { fn SetGCStartupLimits(&self, segmentsize: u32, maxgen0size: u32) -> windows_core::Result<()>; fn Collect(&self, generation: i32) -> windows_core::Result<()>; fn GetStats(&self, pstats: *mut COR_GC_STATS) -> windows_core::Result<()>; @@ -2504,42 +1862,24 @@ pub trait IGCHost_Impl: Sized { } impl windows_core::RuntimeName for IGCHost {} impl IGCHost_Vtbl { - pub const fn new() -> IGCHost_Vtbl - where - Identity: IGCHost_Impl, - { - unsafe extern "system" fn SetGCStartupLimits(this: *mut core::ffi::c_void, segmentsize: u32, maxgen0size: u32) -> windows_core::HRESULT - where - Identity: IGCHost_Impl, - { + pub const fn new() -> IGCHost_Vtbl { + unsafe extern "system" fn SetGCStartupLimits(this: *mut core::ffi::c_void, segmentsize: u32, maxgen0size: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGCHost_Impl::SetGCStartupLimits(this, core::mem::transmute_copy(&segmentsize), core::mem::transmute_copy(&maxgen0size)).into() } - unsafe extern "system" fn Collect(this: *mut core::ffi::c_void, generation: i32) -> windows_core::HRESULT - where - Identity: IGCHost_Impl, - { + unsafe extern "system" fn Collect(this: *mut core::ffi::c_void, generation: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGCHost_Impl::Collect(this, core::mem::transmute_copy(&generation)).into() } - unsafe extern "system" fn GetStats(this: *mut core::ffi::c_void, pstats: *mut COR_GC_STATS) -> windows_core::HRESULT - where - Identity: IGCHost_Impl, - { + unsafe extern "system" fn GetStats(this: *mut core::ffi::c_void, pstats: *mut COR_GC_STATS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGCHost_Impl::GetStats(this, core::mem::transmute_copy(&pstats)).into() } - unsafe extern "system" fn GetThreadStats(this: *mut core::ffi::c_void, pfibercookie: *const u32, pstats: *mut COR_GC_THREAD_STATS) -> windows_core::HRESULT - where - Identity: IGCHost_Impl, - { + unsafe extern "system" fn GetThreadStats(this: *mut core::ffi::c_void, pfibercookie: *const u32, pstats: *mut COR_GC_THREAD_STATS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGCHost_Impl::GetThreadStats(this, core::mem::transmute_copy(&pfibercookie), core::mem::transmute_copy(&pstats)).into() } - unsafe extern "system" fn SetVirtualMemLimit(this: *mut core::ffi::c_void, sztmaxvirtualmemmb: usize) -> windows_core::HRESULT - where - Identity: IGCHost_Impl, - { + unsafe extern "system" fn SetVirtualMemLimit(this: *mut core::ffi::c_void, sztmaxvirtualmemmb: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGCHost_Impl::SetVirtualMemLimit(this, core::mem::transmute_copy(&sztmaxvirtualmemmb)).into() } @@ -2561,14 +1901,8 @@ pub trait IGCHost2_Impl: Sized + IGCHost_Impl { } impl windows_core::RuntimeName for IGCHost2 {} impl IGCHost2_Vtbl { - pub const fn new() -> IGCHost2_Vtbl - where - Identity: IGCHost2_Impl, - { - unsafe extern "system" fn SetGCStartupLimitsEx(this: *mut core::ffi::c_void, segmentsize: usize, maxgen0size: usize) -> windows_core::HRESULT - where - Identity: IGCHost2_Impl, - { + pub const fn new() -> IGCHost2_Vtbl { + unsafe extern "system" fn SetGCStartupLimitsEx(this: *mut core::ffi::c_void, segmentsize: usize, maxgen0size: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGCHost2_Impl::SetGCStartupLimitsEx(this, core::mem::transmute_copy(&segmentsize), core::mem::transmute_copy(&maxgen0size)).into() } @@ -2578,19 +1912,13 @@ impl IGCHost2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IGCHostControl_Impl: Sized { +pub trait IGCHostControl_Impl: Sized + windows_core::IUnknownImpl { fn RequestVirtualMemLimit(&self, sztmaxvirtualmemmb: usize, psztnewmaxvirtualmemmb: *mut usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGCHostControl {} impl IGCHostControl_Vtbl { - pub const fn new() -> IGCHostControl_Vtbl - where - Identity: IGCHostControl_Impl, - { - unsafe extern "system" fn RequestVirtualMemLimit(this: *mut core::ffi::c_void, sztmaxvirtualmemmb: usize, psztnewmaxvirtualmemmb: *mut usize) -> windows_core::HRESULT - where - Identity: IGCHostControl_Impl, - { + pub const fn new() -> IGCHostControl_Vtbl { + unsafe extern "system" fn RequestVirtualMemLimit(this: *mut core::ffi::c_void, sztmaxvirtualmemmb: usize, psztnewmaxvirtualmemmb: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGCHostControl_Impl::RequestVirtualMemLimit(this, core::mem::transmute_copy(&sztmaxvirtualmemmb), core::mem::transmute_copy(&psztnewmaxvirtualmemmb)).into() } @@ -2600,35 +1928,23 @@ impl IGCHostControl_Vtbl { iid == &::IID } } -pub trait IGCThreadControl_Impl: Sized { +pub trait IGCThreadControl_Impl: Sized + windows_core::IUnknownImpl { fn ThreadIsBlockingForSuspension(&self) -> windows_core::Result<()>; fn SuspensionStarting(&self) -> windows_core::Result<()>; fn SuspensionEnding(&self, generation: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGCThreadControl {} impl IGCThreadControl_Vtbl { - pub const fn new() -> IGCThreadControl_Vtbl - where - Identity: IGCThreadControl_Impl, - { - unsafe extern "system" fn ThreadIsBlockingForSuspension(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGCThreadControl_Impl, - { + pub const fn new() -> IGCThreadControl_Vtbl { + unsafe extern "system" fn ThreadIsBlockingForSuspension(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGCThreadControl_Impl::ThreadIsBlockingForSuspension(this).into() } - unsafe extern "system" fn SuspensionStarting(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGCThreadControl_Impl, - { + unsafe extern "system" fn SuspensionStarting(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGCThreadControl_Impl::SuspensionStarting(this).into() } - unsafe extern "system" fn SuspensionEnding(this: *mut core::ffi::c_void, generation: u32) -> windows_core::HRESULT - where - Identity: IGCThreadControl_Impl, - { + unsafe extern "system" fn SuspensionEnding(this: *mut core::ffi::c_void, generation: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGCThreadControl_Impl::SuspensionEnding(this, core::mem::transmute_copy(&generation)).into() } @@ -2643,20 +1959,14 @@ impl IGCThreadControl_Vtbl { iid == &::IID } } -pub trait IHostAssemblyManager_Impl: Sized { +pub trait IHostAssemblyManager_Impl: Sized + windows_core::IUnknownImpl { fn GetNonHostStoreAssemblies(&self) -> windows_core::Result; fn GetAssemblyStore(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IHostAssemblyManager {} impl IHostAssemblyManager_Vtbl { - pub const fn new() -> IHostAssemblyManager_Vtbl - where - Identity: IHostAssemblyManager_Impl, - { - unsafe extern "system" fn GetNonHostStoreAssemblies(this: *mut core::ffi::c_void, ppreferencelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostAssemblyManager_Impl, - { + pub const fn new() -> IHostAssemblyManager_Vtbl { + unsafe extern "system" fn GetNonHostStoreAssemblies(this: *mut core::ffi::c_void, ppreferencelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostAssemblyManager_Impl::GetNonHostStoreAssemblies(this) { Ok(ok__) => { @@ -2666,10 +1976,7 @@ impl IHostAssemblyManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAssemblyStore(this: *mut core::ffi::c_void, ppassemblystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostAssemblyManager_Impl, - { + unsafe extern "system" fn GetAssemblyStore(this: *mut core::ffi::c_void, ppassemblystore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostAssemblyManager_Impl::GetAssemblyStore(this) { Ok(ok__) => { @@ -2690,7 +1997,7 @@ impl IHostAssemblyManager_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IHostAssemblyStore_Impl: Sized { +pub trait IHostAssemblyStore_Impl: Sized + windows_core::IUnknownImpl { fn ProvideAssembly(&self, pbindinfo: *const AssemblyBindInfo, passemblyid: *mut u64, pcontext: *mut u64, ppstmassemblyimage: *mut Option, ppstmpdb: *mut Option) -> windows_core::Result<()>; fn ProvideModule(&self, pbindinfo: *const ModuleBindInfo, pdwmoduleid: *mut u32, ppstmmoduleimage: *mut Option, ppstmpdb: *mut Option) -> windows_core::Result<()>; } @@ -2698,21 +2005,12 @@ pub trait IHostAssemblyStore_Impl: Sized { impl windows_core::RuntimeName for IHostAssemblyStore {} #[cfg(feature = "Win32_System_Com")] impl IHostAssemblyStore_Vtbl { - pub const fn new() -> IHostAssemblyStore_Vtbl - where - Identity: IHostAssemblyStore_Impl, - { - unsafe extern "system" fn ProvideAssembly(this: *mut core::ffi::c_void, pbindinfo: *const AssemblyBindInfo, passemblyid: *mut u64, pcontext: *mut u64, ppstmassemblyimage: *mut *mut core::ffi::c_void, ppstmpdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostAssemblyStore_Impl, - { + pub const fn new() -> IHostAssemblyStore_Vtbl { + unsafe extern "system" fn ProvideAssembly(this: *mut core::ffi::c_void, pbindinfo: *const AssemblyBindInfo, passemblyid: *mut u64, pcontext: *mut u64, ppstmassemblyimage: *mut *mut core::ffi::c_void, ppstmpdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostAssemblyStore_Impl::ProvideAssembly(this, core::mem::transmute_copy(&pbindinfo), core::mem::transmute_copy(&passemblyid), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&ppstmassemblyimage), core::mem::transmute_copy(&ppstmpdb)).into() } - unsafe extern "system" fn ProvideModule(this: *mut core::ffi::c_void, pbindinfo: *const ModuleBindInfo, pdwmoduleid: *mut u32, ppstmmoduleimage: *mut *mut core::ffi::c_void, ppstmpdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostAssemblyStore_Impl, - { + unsafe extern "system" fn ProvideModule(this: *mut core::ffi::c_void, pbindinfo: *const ModuleBindInfo, pdwmoduleid: *mut u32, ppstmmoduleimage: *mut *mut core::ffi::c_void, ppstmpdb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostAssemblyStore_Impl::ProvideModule(this, core::mem::transmute_copy(&pbindinfo), core::mem::transmute_copy(&pdwmoduleid), core::mem::transmute_copy(&ppstmmoduleimage), core::mem::transmute_copy(&ppstmpdb)).into() } @@ -2726,27 +2024,18 @@ impl IHostAssemblyStore_Vtbl { iid == &::IID } } -pub trait IHostAutoEvent_Impl: Sized { +pub trait IHostAutoEvent_Impl: Sized + windows_core::IUnknownImpl { fn Wait(&self, dwmilliseconds: u32, option: u32) -> windows_core::Result<()>; fn Set(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHostAutoEvent {} impl IHostAutoEvent_Vtbl { - pub const fn new() -> IHostAutoEvent_Vtbl - where - Identity: IHostAutoEvent_Impl, - { - unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwmilliseconds: u32, option: u32) -> windows_core::HRESULT - where - Identity: IHostAutoEvent_Impl, - { + pub const fn new() -> IHostAutoEvent_Vtbl { + unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwmilliseconds: u32, option: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostAutoEvent_Impl::Wait(this, core::mem::transmute_copy(&dwmilliseconds), core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn Set(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostAutoEvent_Impl, - { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostAutoEvent_Impl::Set(this).into() } @@ -2756,27 +2045,18 @@ impl IHostAutoEvent_Vtbl { iid == &::IID } } -pub trait IHostControl_Impl: Sized { +pub trait IHostControl_Impl: Sized + windows_core::IUnknownImpl { fn GetHostManager(&self, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetAppDomainManager(&self, dwappdomainid: u32, punkappdomainmanager: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHostControl {} impl IHostControl_Vtbl { - pub const fn new() -> IHostControl_Vtbl - where - Identity: IHostControl_Impl, - { - unsafe extern "system" fn GetHostManager(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostControl_Impl, - { + pub const fn new() -> IHostControl_Vtbl { + unsafe extern "system" fn GetHostManager(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostControl_Impl::GetHostManager(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppobject)).into() } - unsafe extern "system" fn SetAppDomainManager(this: *mut core::ffi::c_void, dwappdomainid: u32, punkappdomainmanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostControl_Impl, - { + unsafe extern "system" fn SetAppDomainManager(this: *mut core::ffi::c_void, dwappdomainid: u32, punkappdomainmanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostControl_Impl::SetAppDomainManager(this, core::mem::transmute_copy(&dwappdomainid), windows_core::from_raw_borrowed(&punkappdomainmanager)).into() } @@ -2790,7 +2070,7 @@ impl IHostControl_Vtbl { iid == &::IID } } -pub trait IHostCrst_Impl: Sized { +pub trait IHostCrst_Impl: Sized + windows_core::IUnknownImpl { fn Enter(&self, option: u32) -> windows_core::Result<()>; fn Leave(&self) -> windows_core::Result<()>; fn TryEnter(&self, option: u32) -> windows_core::Result; @@ -2798,28 +2078,16 @@ pub trait IHostCrst_Impl: Sized { } impl windows_core::RuntimeName for IHostCrst {} impl IHostCrst_Vtbl { - pub const fn new() -> IHostCrst_Vtbl - where - Identity: IHostCrst_Impl, - { - unsafe extern "system" fn Enter(this: *mut core::ffi::c_void, option: u32) -> windows_core::HRESULT - where - Identity: IHostCrst_Impl, - { + pub const fn new() -> IHostCrst_Vtbl { + unsafe extern "system" fn Enter(this: *mut core::ffi::c_void, option: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostCrst_Impl::Enter(this, core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn Leave(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostCrst_Impl, - { + unsafe extern "system" fn Leave(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostCrst_Impl::Leave(this).into() } - unsafe extern "system" fn TryEnter(this: *mut core::ffi::c_void, option: u32, pbsucceeded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IHostCrst_Impl, - { + unsafe extern "system" fn TryEnter(this: *mut core::ffi::c_void, option: u32, pbsucceeded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostCrst_Impl::TryEnter(this, core::mem::transmute_copy(&option)) { Ok(ok__) => { @@ -2829,10 +2097,7 @@ impl IHostCrst_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpinCount(this: *mut core::ffi::c_void, dwspincount: u32) -> windows_core::HRESULT - where - Identity: IHostCrst_Impl, - { + unsafe extern "system" fn SetSpinCount(this: *mut core::ffi::c_void, dwspincount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostCrst_Impl::SetSpinCount(this, core::mem::transmute_copy(&dwspincount)).into() } @@ -2848,35 +2113,23 @@ impl IHostCrst_Vtbl { iid == &::IID } } -pub trait IHostGCManager_Impl: Sized { +pub trait IHostGCManager_Impl: Sized + windows_core::IUnknownImpl { fn ThreadIsBlockingForSuspension(&self) -> windows_core::Result<()>; fn SuspensionStarting(&self) -> windows_core::Result<()>; fn SuspensionEnding(&self, generation: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHostGCManager {} impl IHostGCManager_Vtbl { - pub const fn new() -> IHostGCManager_Vtbl - where - Identity: IHostGCManager_Impl, - { - unsafe extern "system" fn ThreadIsBlockingForSuspension(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostGCManager_Impl, - { + pub const fn new() -> IHostGCManager_Vtbl { + unsafe extern "system" fn ThreadIsBlockingForSuspension(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostGCManager_Impl::ThreadIsBlockingForSuspension(this).into() } - unsafe extern "system" fn SuspensionStarting(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostGCManager_Impl, - { + unsafe extern "system" fn SuspensionStarting(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostGCManager_Impl::SuspensionStarting(this).into() } - unsafe extern "system" fn SuspensionEnding(this: *mut core::ffi::c_void, generation: u32) -> windows_core::HRESULT - where - Identity: IHostGCManager_Impl, - { + unsafe extern "system" fn SuspensionEnding(this: *mut core::ffi::c_void, generation: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostGCManager_Impl::SuspensionEnding(this, core::mem::transmute_copy(&generation)).into() } @@ -2891,7 +2144,7 @@ impl IHostGCManager_Vtbl { iid == &::IID } } -pub trait IHostIoCompletionManager_Impl: Sized { +pub trait IHostIoCompletionManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateIoCompletionPort(&self) -> windows_core::Result; fn CloseIoCompletionPort(&self, hport: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn SetMaxThreads(&self, dwmaxiocompletionthreads: u32) -> windows_core::Result<()>; @@ -2906,14 +2159,8 @@ pub trait IHostIoCompletionManager_Impl: Sized { } impl windows_core::RuntimeName for IHostIoCompletionManager {} impl IHostIoCompletionManager_Vtbl { - pub const fn new() -> IHostIoCompletionManager_Vtbl - where - Identity: IHostIoCompletionManager_Impl, - { - unsafe extern "system" fn CreateIoCompletionPort(this: *mut core::ffi::c_void, phport: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + pub const fn new() -> IHostIoCompletionManager_Vtbl { + unsafe extern "system" fn CreateIoCompletionPort(this: *mut core::ffi::c_void, phport: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostIoCompletionManager_Impl::CreateIoCompletionPort(this) { Ok(ok__) => { @@ -2923,24 +2170,15 @@ impl IHostIoCompletionManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseIoCompletionPort(this: *mut core::ffi::c_void, hport: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + unsafe extern "system" fn CloseIoCompletionPort(this: *mut core::ffi::c_void, hport: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostIoCompletionManager_Impl::CloseIoCompletionPort(this, core::mem::transmute_copy(&hport)).into() } - unsafe extern "system" fn SetMaxThreads(this: *mut core::ffi::c_void, dwmaxiocompletionthreads: u32) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + unsafe extern "system" fn SetMaxThreads(this: *mut core::ffi::c_void, dwmaxiocompletionthreads: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostIoCompletionManager_Impl::SetMaxThreads(this, core::mem::transmute_copy(&dwmaxiocompletionthreads)).into() } - unsafe extern "system" fn GetMaxThreads(this: *mut core::ffi::c_void, pdwmaxiocompletionthreads: *mut u32) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + unsafe extern "system" fn GetMaxThreads(this: *mut core::ffi::c_void, pdwmaxiocompletionthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostIoCompletionManager_Impl::GetMaxThreads(this) { Ok(ok__) => { @@ -2950,10 +2188,7 @@ impl IHostIoCompletionManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAvailableThreads(this: *mut core::ffi::c_void, pdwavailableiocompletionthreads: *mut u32) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + unsafe extern "system" fn GetAvailableThreads(this: *mut core::ffi::c_void, pdwavailableiocompletionthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostIoCompletionManager_Impl::GetAvailableThreads(this) { Ok(ok__) => { @@ -2963,10 +2198,7 @@ impl IHostIoCompletionManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHostOverlappedSize(this: *mut core::ffi::c_void, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + unsafe extern "system" fn GetHostOverlappedSize(this: *mut core::ffi::c_void, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostIoCompletionManager_Impl::GetHostOverlappedSize(this) { Ok(ok__) => { @@ -2976,38 +2208,23 @@ impl IHostIoCompletionManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCLRIoCompletionManager(this: *mut core::ffi::c_void, pmanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + unsafe extern "system" fn SetCLRIoCompletionManager(this: *mut core::ffi::c_void, pmanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostIoCompletionManager_Impl::SetCLRIoCompletionManager(this, windows_core::from_raw_borrowed(&pmanager)).into() } - unsafe extern "system" fn InitializeHostOverlapped(this: *mut core::ffi::c_void, pvoverlapped: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + unsafe extern "system" fn InitializeHostOverlapped(this: *mut core::ffi::c_void, pvoverlapped: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostIoCompletionManager_Impl::InitializeHostOverlapped(this, core::mem::transmute_copy(&pvoverlapped)).into() } - unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, hport: super::super::Foundation::HANDLE, hhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, hport: super::super::Foundation::HANDLE, hhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostIoCompletionManager_Impl::Bind(this, core::mem::transmute_copy(&hport), core::mem::transmute_copy(&hhandle)).into() } - unsafe extern "system" fn SetMinThreads(this: *mut core::ffi::c_void, dwminiocompletionthreads: u32) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + unsafe extern "system" fn SetMinThreads(this: *mut core::ffi::c_void, dwminiocompletionthreads: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostIoCompletionManager_Impl::SetMinThreads(this, core::mem::transmute_copy(&dwminiocompletionthreads)).into() } - unsafe extern "system" fn GetMinThreads(this: *mut core::ffi::c_void, pdwminiocompletionthreads: *mut u32) -> windows_core::HRESULT - where - Identity: IHostIoCompletionManager_Impl, - { + unsafe extern "system" fn GetMinThreads(this: *mut core::ffi::c_void, pdwminiocompletionthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostIoCompletionManager_Impl::GetMinThreads(this) { Ok(ok__) => { @@ -3036,35 +2253,23 @@ impl IHostIoCompletionManager_Vtbl { iid == &::IID } } -pub trait IHostMalloc_Impl: Sized { +pub trait IHostMalloc_Impl: Sized + windows_core::IUnknownImpl { fn Alloc(&self, cbsize: usize, ecriticallevel: EMemoryCriticalLevel, ppmem: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn DebugAlloc(&self, cbsize: usize, ecriticallevel: EMemoryCriticalLevel, pszfilename: *const u8, ilineno: i32, ppmem: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Free(&self, pmem: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHostMalloc {} impl IHostMalloc_Vtbl { - pub const fn new() -> IHostMalloc_Vtbl - where - Identity: IHostMalloc_Impl, - { - unsafe extern "system" fn Alloc(this: *mut core::ffi::c_void, cbsize: usize, ecriticallevel: EMemoryCriticalLevel, ppmem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostMalloc_Impl, - { + pub const fn new() -> IHostMalloc_Vtbl { + unsafe extern "system" fn Alloc(this: *mut core::ffi::c_void, cbsize: usize, ecriticallevel: EMemoryCriticalLevel, ppmem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMalloc_Impl::Alloc(this, core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&ecriticallevel), core::mem::transmute_copy(&ppmem)).into() } - unsafe extern "system" fn DebugAlloc(this: *mut core::ffi::c_void, cbsize: usize, ecriticallevel: EMemoryCriticalLevel, pszfilename: *const u8, ilineno: i32, ppmem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostMalloc_Impl, - { + unsafe extern "system" fn DebugAlloc(this: *mut core::ffi::c_void, cbsize: usize, ecriticallevel: EMemoryCriticalLevel, pszfilename: *const u8, ilineno: i32, ppmem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMalloc_Impl::DebugAlloc(this, core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&ecriticallevel), core::mem::transmute_copy(&pszfilename), core::mem::transmute_copy(&ilineno), core::mem::transmute_copy(&ppmem)).into() } - unsafe extern "system" fn Free(this: *mut core::ffi::c_void, pmem: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostMalloc_Impl, - { + unsafe extern "system" fn Free(this: *mut core::ffi::c_void, pmem: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMalloc_Impl::Free(this, core::mem::transmute_copy(&pmem)).into() } @@ -3079,35 +2284,23 @@ impl IHostMalloc_Vtbl { iid == &::IID } } -pub trait IHostManualEvent_Impl: Sized { +pub trait IHostManualEvent_Impl: Sized + windows_core::IUnknownImpl { fn Wait(&self, dwmilliseconds: u32, option: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Set(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHostManualEvent {} impl IHostManualEvent_Vtbl { - pub const fn new() -> IHostManualEvent_Vtbl - where - Identity: IHostManualEvent_Impl, - { - unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwmilliseconds: u32, option: u32) -> windows_core::HRESULT - where - Identity: IHostManualEvent_Impl, - { + pub const fn new() -> IHostManualEvent_Vtbl { + unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwmilliseconds: u32, option: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostManualEvent_Impl::Wait(this, core::mem::transmute_copy(&dwmilliseconds), core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostManualEvent_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostManualEvent_Impl::Reset(this).into() } - unsafe extern "system" fn Set(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostManualEvent_Impl, - { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostManualEvent_Impl::Set(this).into() } @@ -3122,7 +2315,7 @@ impl IHostManualEvent_Vtbl { iid == &::IID } } -pub trait IHostMemoryManager_Impl: Sized { +pub trait IHostMemoryManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateMalloc(&self, dwmalloctype: u32) -> windows_core::Result; fn VirtualAlloc(&self, paddress: *const core::ffi::c_void, dwsize: usize, flallocationtype: u32, flprotect: u32, ecriticallevel: EMemoryCriticalLevel, ppmem: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn VirtualFree(&self, lpaddress: *const core::ffi::c_void, dwsize: usize, dwfreetype: u32) -> windows_core::Result<()>; @@ -3136,14 +2329,8 @@ pub trait IHostMemoryManager_Impl: Sized { } impl windows_core::RuntimeName for IHostMemoryManager {} impl IHostMemoryManager_Vtbl { - pub const fn new() -> IHostMemoryManager_Vtbl - where - Identity: IHostMemoryManager_Impl, - { - unsafe extern "system" fn CreateMalloc(this: *mut core::ffi::c_void, dwmalloctype: u32, ppmalloc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostMemoryManager_Impl, - { + pub const fn new() -> IHostMemoryManager_Vtbl { + unsafe extern "system" fn CreateMalloc(this: *mut core::ffi::c_void, dwmalloctype: u32, ppmalloc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostMemoryManager_Impl::CreateMalloc(this, core::mem::transmute_copy(&dwmalloctype)) { Ok(ok__) => { @@ -3153,31 +2340,19 @@ impl IHostMemoryManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VirtualAlloc(this: *mut core::ffi::c_void, paddress: *const core::ffi::c_void, dwsize: usize, flallocationtype: u32, flprotect: u32, ecriticallevel: EMemoryCriticalLevel, ppmem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostMemoryManager_Impl, - { + unsafe extern "system" fn VirtualAlloc(this: *mut core::ffi::c_void, paddress: *const core::ffi::c_void, dwsize: usize, flallocationtype: u32, flprotect: u32, ecriticallevel: EMemoryCriticalLevel, ppmem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMemoryManager_Impl::VirtualAlloc(this, core::mem::transmute_copy(&paddress), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&flallocationtype), core::mem::transmute_copy(&flprotect), core::mem::transmute_copy(&ecriticallevel), core::mem::transmute_copy(&ppmem)).into() } - unsafe extern "system" fn VirtualFree(this: *mut core::ffi::c_void, lpaddress: *const core::ffi::c_void, dwsize: usize, dwfreetype: u32) -> windows_core::HRESULT - where - Identity: IHostMemoryManager_Impl, - { + unsafe extern "system" fn VirtualFree(this: *mut core::ffi::c_void, lpaddress: *const core::ffi::c_void, dwsize: usize, dwfreetype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMemoryManager_Impl::VirtualFree(this, core::mem::transmute_copy(&lpaddress), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&dwfreetype)).into() } - unsafe extern "system" fn VirtualQuery(this: *mut core::ffi::c_void, lpaddress: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, dwlength: usize, presult: *mut usize) -> windows_core::HRESULT - where - Identity: IHostMemoryManager_Impl, - { + unsafe extern "system" fn VirtualQuery(this: *mut core::ffi::c_void, lpaddress: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, dwlength: usize, presult: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMemoryManager_Impl::VirtualQuery(this, core::mem::transmute_copy(&lpaddress), core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&dwlength), core::mem::transmute_copy(&presult)).into() } - unsafe extern "system" fn VirtualProtect(this: *mut core::ffi::c_void, lpaddress: *const core::ffi::c_void, dwsize: usize, flnewprotect: u32, pfloldprotect: *mut u32) -> windows_core::HRESULT - where - Identity: IHostMemoryManager_Impl, - { + unsafe extern "system" fn VirtualProtect(this: *mut core::ffi::c_void, lpaddress: *const core::ffi::c_void, dwsize: usize, flnewprotect: u32, pfloldprotect: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostMemoryManager_Impl::VirtualProtect(this, core::mem::transmute_copy(&lpaddress), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&flnewprotect)) { Ok(ok__) => { @@ -3187,38 +2362,23 @@ impl IHostMemoryManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMemoryLoad(this: *mut core::ffi::c_void, pmemoryload: *mut u32, pavailablebytes: *mut usize) -> windows_core::HRESULT - where - Identity: IHostMemoryManager_Impl, - { + unsafe extern "system" fn GetMemoryLoad(this: *mut core::ffi::c_void, pmemoryload: *mut u32, pavailablebytes: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMemoryManager_Impl::GetMemoryLoad(this, core::mem::transmute_copy(&pmemoryload), core::mem::transmute_copy(&pavailablebytes)).into() } - unsafe extern "system" fn RegisterMemoryNotificationCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostMemoryManager_Impl, - { + unsafe extern "system" fn RegisterMemoryNotificationCallback(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMemoryManager_Impl::RegisterMemoryNotificationCallback(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn NeedsVirtualAddressSpace(this: *mut core::ffi::c_void, startaddress: *const core::ffi::c_void, size: usize) -> windows_core::HRESULT - where - Identity: IHostMemoryManager_Impl, - { + unsafe extern "system" fn NeedsVirtualAddressSpace(this: *mut core::ffi::c_void, startaddress: *const core::ffi::c_void, size: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMemoryManager_Impl::NeedsVirtualAddressSpace(this, core::mem::transmute_copy(&startaddress), core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn AcquiredVirtualAddressSpace(this: *mut core::ffi::c_void, startaddress: *const core::ffi::c_void, size: usize) -> windows_core::HRESULT - where - Identity: IHostMemoryManager_Impl, - { + unsafe extern "system" fn AcquiredVirtualAddressSpace(this: *mut core::ffi::c_void, startaddress: *const core::ffi::c_void, size: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMemoryManager_Impl::AcquiredVirtualAddressSpace(this, core::mem::transmute_copy(&startaddress), core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn ReleasedVirtualAddressSpace(this: *mut core::ffi::c_void, startaddress: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostMemoryManager_Impl, - { + unsafe extern "system" fn ReleasedVirtualAddressSpace(this: *mut core::ffi::c_void, startaddress: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostMemoryManager_Impl::ReleasedVirtualAddressSpace(this, core::mem::transmute_copy(&startaddress)).into() } @@ -3240,35 +2400,23 @@ impl IHostMemoryManager_Vtbl { iid == &::IID } } -pub trait IHostPolicyManager_Impl: Sized { +pub trait IHostPolicyManager_Impl: Sized + windows_core::IUnknownImpl { fn OnDefaultAction(&self, operation: EClrOperation, action: EPolicyAction) -> windows_core::Result<()>; fn OnTimeout(&self, operation: EClrOperation, action: EPolicyAction) -> windows_core::Result<()>; fn OnFailure(&self, failure: EClrFailure, action: EPolicyAction) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHostPolicyManager {} impl IHostPolicyManager_Vtbl { - pub const fn new() -> IHostPolicyManager_Vtbl - where - Identity: IHostPolicyManager_Impl, - { - unsafe extern "system" fn OnDefaultAction(this: *mut core::ffi::c_void, operation: EClrOperation, action: EPolicyAction) -> windows_core::HRESULT - where - Identity: IHostPolicyManager_Impl, - { + pub const fn new() -> IHostPolicyManager_Vtbl { + unsafe extern "system" fn OnDefaultAction(this: *mut core::ffi::c_void, operation: EClrOperation, action: EPolicyAction) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostPolicyManager_Impl::OnDefaultAction(this, core::mem::transmute_copy(&operation), core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn OnTimeout(this: *mut core::ffi::c_void, operation: EClrOperation, action: EPolicyAction) -> windows_core::HRESULT - where - Identity: IHostPolicyManager_Impl, - { + unsafe extern "system" fn OnTimeout(this: *mut core::ffi::c_void, operation: EClrOperation, action: EPolicyAction) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostPolicyManager_Impl::OnTimeout(this, core::mem::transmute_copy(&operation), core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn OnFailure(this: *mut core::ffi::c_void, failure: EClrFailure, action: EPolicyAction) -> windows_core::HRESULT - where - Identity: IHostPolicyManager_Impl, - { + unsafe extern "system" fn OnFailure(this: *mut core::ffi::c_void, failure: EClrFailure, action: EPolicyAction) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostPolicyManager_Impl::OnFailure(this, core::mem::transmute_copy(&failure), core::mem::transmute_copy(&action)).into() } @@ -3283,19 +2431,13 @@ impl IHostPolicyManager_Vtbl { iid == &::IID } } -pub trait IHostSecurityContext_Impl: Sized { +pub trait IHostSecurityContext_Impl: Sized + windows_core::IUnknownImpl { fn Capture(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IHostSecurityContext {} impl IHostSecurityContext_Vtbl { - pub const fn new() -> IHostSecurityContext_Vtbl - where - Identity: IHostSecurityContext_Impl, - { - unsafe extern "system" fn Capture(this: *mut core::ffi::c_void, ppclonedcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSecurityContext_Impl, - { + pub const fn new() -> IHostSecurityContext_Vtbl { + unsafe extern "system" fn Capture(this: *mut core::ffi::c_void, ppclonedcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSecurityContext_Impl::Capture(this) { Ok(ok__) => { @@ -3311,7 +2453,7 @@ impl IHostSecurityContext_Vtbl { iid == &::IID } } -pub trait IHostSecurityManager_Impl: Sized { +pub trait IHostSecurityManager_Impl: Sized + windows_core::IUnknownImpl { fn ImpersonateLoggedOnUser(&self, htoken: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn RevertToSelf(&self) -> windows_core::Result<()>; fn OpenThreadToken(&self, dwdesiredaccess: u32, bopenasself: super::super::Foundation::BOOL) -> windows_core::Result; @@ -3321,28 +2463,16 @@ pub trait IHostSecurityManager_Impl: Sized { } impl windows_core::RuntimeName for IHostSecurityManager {} impl IHostSecurityManager_Vtbl { - pub const fn new() -> IHostSecurityManager_Vtbl - where - Identity: IHostSecurityManager_Impl, - { - unsafe extern "system" fn ImpersonateLoggedOnUser(this: *mut core::ffi::c_void, htoken: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IHostSecurityManager_Impl, - { + pub const fn new() -> IHostSecurityManager_Vtbl { + unsafe extern "system" fn ImpersonateLoggedOnUser(this: *mut core::ffi::c_void, htoken: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostSecurityManager_Impl::ImpersonateLoggedOnUser(this, core::mem::transmute_copy(&htoken)).into() } - unsafe extern "system" fn RevertToSelf(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSecurityManager_Impl, - { + unsafe extern "system" fn RevertToSelf(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostSecurityManager_Impl::RevertToSelf(this).into() } - unsafe extern "system" fn OpenThreadToken(this: *mut core::ffi::c_void, dwdesiredaccess: u32, bopenasself: super::super::Foundation::BOOL, phthreadtoken: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IHostSecurityManager_Impl, - { + unsafe extern "system" fn OpenThreadToken(this: *mut core::ffi::c_void, dwdesiredaccess: u32, bopenasself: super::super::Foundation::BOOL, phthreadtoken: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSecurityManager_Impl::OpenThreadToken(this, core::mem::transmute_copy(&dwdesiredaccess), core::mem::transmute_copy(&bopenasself)) { Ok(ok__) => { @@ -3352,17 +2482,11 @@ impl IHostSecurityManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetThreadToken(this: *mut core::ffi::c_void, htoken: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IHostSecurityManager_Impl, - { + unsafe extern "system" fn SetThreadToken(this: *mut core::ffi::c_void, htoken: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostSecurityManager_Impl::SetThreadToken(this, core::mem::transmute_copy(&htoken)).into() } - unsafe extern "system" fn GetSecurityContext(this: *mut core::ffi::c_void, econtexttype: EContextType, ppsecuritycontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSecurityManager_Impl, - { + unsafe extern "system" fn GetSecurityContext(this: *mut core::ffi::c_void, econtexttype: EContextType, ppsecuritycontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSecurityManager_Impl::GetSecurityContext(this, core::mem::transmute_copy(&econtexttype)) { Ok(ok__) => { @@ -3372,10 +2496,7 @@ impl IHostSecurityManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityContext(this: *mut core::ffi::c_void, econtexttype: EContextType, psecuritycontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSecurityManager_Impl, - { + unsafe extern "system" fn SetSecurityContext(this: *mut core::ffi::c_void, econtexttype: EContextType, psecuritycontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostSecurityManager_Impl::SetSecurityContext(this, core::mem::transmute_copy(&econtexttype), windows_core::from_raw_borrowed(&psecuritycontext)).into() } @@ -3393,27 +2514,18 @@ impl IHostSecurityManager_Vtbl { iid == &::IID } } -pub trait IHostSemaphore_Impl: Sized { +pub trait IHostSemaphore_Impl: Sized + windows_core::IUnknownImpl { fn Wait(&self, dwmilliseconds: u32, option: u32) -> windows_core::Result<()>; fn ReleaseSemaphore(&self, lreleasecount: i32) -> windows_core::Result; } impl windows_core::RuntimeName for IHostSemaphore {} impl IHostSemaphore_Vtbl { - pub const fn new() -> IHostSemaphore_Vtbl - where - Identity: IHostSemaphore_Impl, - { - unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwmilliseconds: u32, option: u32) -> windows_core::HRESULT - where - Identity: IHostSemaphore_Impl, - { + pub const fn new() -> IHostSemaphore_Vtbl { + unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwmilliseconds: u32, option: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostSemaphore_Impl::Wait(this, core::mem::transmute_copy(&dwmilliseconds), core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn ReleaseSemaphore(this: *mut core::ffi::c_void, lreleasecount: i32, lppreviouscount: *mut i32) -> windows_core::HRESULT - where - Identity: IHostSemaphore_Impl, - { + unsafe extern "system" fn ReleaseSemaphore(this: *mut core::ffi::c_void, lreleasecount: i32, lppreviouscount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSemaphore_Impl::ReleaseSemaphore(this, core::mem::transmute_copy(&lreleasecount)) { Ok(ok__) => { @@ -3433,7 +2545,7 @@ impl IHostSemaphore_Vtbl { iid == &::IID } } -pub trait IHostSyncManager_Impl: Sized { +pub trait IHostSyncManager_Impl: Sized + windows_core::IUnknownImpl { fn SetCLRSyncManager(&self, pmanager: Option<&ICLRSyncManager>) -> windows_core::Result<()>; fn CreateCrst(&self) -> windows_core::Result; fn CreateCrstWithSpinCount(&self, dwspincount: u32) -> windows_core::Result; @@ -3446,21 +2558,12 @@ pub trait IHostSyncManager_Impl: Sized { } impl windows_core::RuntimeName for IHostSyncManager {} impl IHostSyncManager_Vtbl { - pub const fn new() -> IHostSyncManager_Vtbl - where - Identity: IHostSyncManager_Impl, - { - unsafe extern "system" fn SetCLRSyncManager(this: *mut core::ffi::c_void, pmanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSyncManager_Impl, - { + pub const fn new() -> IHostSyncManager_Vtbl { + unsafe extern "system" fn SetCLRSyncManager(this: *mut core::ffi::c_void, pmanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostSyncManager_Impl::SetCLRSyncManager(this, windows_core::from_raw_borrowed(&pmanager)).into() } - unsafe extern "system" fn CreateCrst(this: *mut core::ffi::c_void, ppcrst: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSyncManager_Impl, - { + unsafe extern "system" fn CreateCrst(this: *mut core::ffi::c_void, ppcrst: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSyncManager_Impl::CreateCrst(this) { Ok(ok__) => { @@ -3470,10 +2573,7 @@ impl IHostSyncManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCrstWithSpinCount(this: *mut core::ffi::c_void, dwspincount: u32, ppcrst: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSyncManager_Impl, - { + unsafe extern "system" fn CreateCrstWithSpinCount(this: *mut core::ffi::c_void, dwspincount: u32, ppcrst: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSyncManager_Impl::CreateCrstWithSpinCount(this, core::mem::transmute_copy(&dwspincount)) { Ok(ok__) => { @@ -3483,10 +2583,7 @@ impl IHostSyncManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAutoEvent(this: *mut core::ffi::c_void, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSyncManager_Impl, - { + unsafe extern "system" fn CreateAutoEvent(this: *mut core::ffi::c_void, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSyncManager_Impl::CreateAutoEvent(this) { Ok(ok__) => { @@ -3496,10 +2593,7 @@ impl IHostSyncManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateManualEvent(this: *mut core::ffi::c_void, binitialstate: super::super::Foundation::BOOL, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSyncManager_Impl, - { + unsafe extern "system" fn CreateManualEvent(this: *mut core::ffi::c_void, binitialstate: super::super::Foundation::BOOL, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSyncManager_Impl::CreateManualEvent(this, core::mem::transmute_copy(&binitialstate)) { Ok(ok__) => { @@ -3509,10 +2603,7 @@ impl IHostSyncManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMonitorEvent(this: *mut core::ffi::c_void, cookie: usize, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSyncManager_Impl, - { + unsafe extern "system" fn CreateMonitorEvent(this: *mut core::ffi::c_void, cookie: usize, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSyncManager_Impl::CreateMonitorEvent(this, core::mem::transmute_copy(&cookie)) { Ok(ok__) => { @@ -3522,10 +2613,7 @@ impl IHostSyncManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRWLockWriterEvent(this: *mut core::ffi::c_void, cookie: usize, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSyncManager_Impl, - { + unsafe extern "system" fn CreateRWLockWriterEvent(this: *mut core::ffi::c_void, cookie: usize, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSyncManager_Impl::CreateRWLockWriterEvent(this, core::mem::transmute_copy(&cookie)) { Ok(ok__) => { @@ -3535,10 +2623,7 @@ impl IHostSyncManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRWLockReaderEvent(this: *mut core::ffi::c_void, binitialstate: super::super::Foundation::BOOL, cookie: usize, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSyncManager_Impl, - { + unsafe extern "system" fn CreateRWLockReaderEvent(this: *mut core::ffi::c_void, binitialstate: super::super::Foundation::BOOL, cookie: usize, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSyncManager_Impl::CreateRWLockReaderEvent(this, core::mem::transmute_copy(&binitialstate), core::mem::transmute_copy(&cookie)) { Ok(ok__) => { @@ -3548,10 +2633,7 @@ impl IHostSyncManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSemaphoreA(this: *mut core::ffi::c_void, dwinitial: u32, dwmax: u32, ppsemaphore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostSyncManager_Impl, - { + unsafe extern "system" fn CreateSemaphoreA(this: *mut core::ffi::c_void, dwinitial: u32, dwmax: u32, ppsemaphore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSyncManager_Impl::CreateSemaphoreA(this, core::mem::transmute_copy(&dwinitial), core::mem::transmute_copy(&dwmax)) { Ok(ok__) => { @@ -3578,7 +2660,7 @@ impl IHostSyncManager_Vtbl { iid == &::IID } } -pub trait IHostTask_Impl: Sized { +pub trait IHostTask_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self) -> windows_core::Result<()>; fn Alert(&self) -> windows_core::Result<()>; fn Join(&self, dwmilliseconds: u32, option: u32) -> windows_core::Result<()>; @@ -3588,42 +2670,24 @@ pub trait IHostTask_Impl: Sized { } impl windows_core::RuntimeName for IHostTask {} impl IHostTask_Vtbl { - pub const fn new() -> IHostTask_Vtbl - where - Identity: IHostTask_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTask_Impl, - { + pub const fn new() -> IHostTask_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTask_Impl::Start(this).into() } - unsafe extern "system" fn Alert(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTask_Impl, - { + unsafe extern "system" fn Alert(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTask_Impl::Alert(this).into() } - unsafe extern "system" fn Join(this: *mut core::ffi::c_void, dwmilliseconds: u32, option: u32) -> windows_core::HRESULT - where - Identity: IHostTask_Impl, - { + unsafe extern "system" fn Join(this: *mut core::ffi::c_void, dwmilliseconds: u32, option: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTask_Impl::Join(this, core::mem::transmute_copy(&dwmilliseconds), core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, newpriority: i32) -> windows_core::HRESULT - where - Identity: IHostTask_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, newpriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTask_Impl::SetPriority(this, core::mem::transmute_copy(&newpriority)).into() } - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, ppriority: *mut i32) -> windows_core::HRESULT - where - Identity: IHostTask_Impl, - { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, ppriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostTask_Impl::GetPriority(this) { Ok(ok__) => { @@ -3633,10 +2697,7 @@ impl IHostTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCLRTask(this: *mut core::ffi::c_void, pclrtask: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTask_Impl, - { + unsafe extern "system" fn SetCLRTask(this: *mut core::ffi::c_void, pclrtask: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTask_Impl::SetCLRTask(this, windows_core::from_raw_borrowed(&pclrtask)).into() } @@ -3655,7 +2716,7 @@ impl IHostTask_Vtbl { } } #[cfg(feature = "Win32_System_Threading")] -pub trait IHostTaskManager_Impl: Sized { +pub trait IHostTaskManager_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentTask(&self) -> windows_core::Result; fn CreateTask(&self, dwstacksize: u32, pstartaddress: super::Threading::LPTHREAD_START_ROUTINE, pparameter: *const core::ffi::c_void) -> windows_core::Result; fn Sleep(&self, dwmilliseconds: u32, option: u32) -> windows_core::Result<()>; @@ -3679,14 +2740,8 @@ pub trait IHostTaskManager_Impl: Sized { impl windows_core::RuntimeName for IHostTaskManager {} #[cfg(feature = "Win32_System_Threading")] impl IHostTaskManager_Vtbl { - pub const fn new() -> IHostTaskManager_Vtbl - where - Identity: IHostTaskManager_Impl, - { - unsafe extern "system" fn GetCurrentTask(this: *mut core::ffi::c_void, ptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + pub const fn new() -> IHostTaskManager_Vtbl { + unsafe extern "system" fn GetCurrentTask(this: *mut core::ffi::c_void, ptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostTaskManager_Impl::GetCurrentTask(this) { Ok(ok__) => { @@ -3696,10 +2751,7 @@ impl IHostTaskManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTask(this: *mut core::ffi::c_void, dwstacksize: u32, pstartaddress: super::Threading::LPTHREAD_START_ROUTINE, pparameter: *const core::ffi::c_void, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn CreateTask(this: *mut core::ffi::c_void, dwstacksize: u32, pstartaddress: super::Threading::LPTHREAD_START_ROUTINE, pparameter: *const core::ffi::c_void, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostTaskManager_Impl::CreateTask(this, core::mem::transmute_copy(&dwstacksize), core::mem::transmute_copy(&pstartaddress), core::mem::transmute_copy(&pparameter)) { Ok(ok__) => { @@ -3709,38 +2761,23 @@ impl IHostTaskManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Sleep(this: *mut core::ffi::c_void, dwmilliseconds: u32, option: u32) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn Sleep(this: *mut core::ffi::c_void, dwmilliseconds: u32, option: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::Sleep(this, core::mem::transmute_copy(&dwmilliseconds), core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn SwitchToTask(this: *mut core::ffi::c_void, option: u32) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn SwitchToTask(this: *mut core::ffi::c_void, option: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::SwitchToTask(this, core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn SetUILocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn SetUILocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::SetUILocale(this, core::mem::transmute_copy(&lcid)).into() } - unsafe extern "system" fn SetLocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn SetLocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::SetLocale(this, core::mem::transmute_copy(&lcid)).into() } - unsafe extern "system" fn CallNeedsHostHook(this: *mut core::ffi::c_void, target: usize, pbcallneedshosthook: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn CallNeedsHostHook(this: *mut core::ffi::c_void, target: usize, pbcallneedshosthook: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostTaskManager_Impl::CallNeedsHostHook(this, core::mem::transmute_copy(&target)) { Ok(ok__) => { @@ -3750,73 +2787,43 @@ impl IHostTaskManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LeaveRuntime(this: *mut core::ffi::c_void, target: usize) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn LeaveRuntime(this: *mut core::ffi::c_void, target: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::LeaveRuntime(this, core::mem::transmute_copy(&target)).into() } - unsafe extern "system" fn EnterRuntime(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn EnterRuntime(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::EnterRuntime(this).into() } - unsafe extern "system" fn ReverseLeaveRuntime(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn ReverseLeaveRuntime(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::ReverseLeaveRuntime(this).into() } - unsafe extern "system" fn ReverseEnterRuntime(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn ReverseEnterRuntime(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::ReverseEnterRuntime(this).into() } - unsafe extern "system" fn BeginDelayAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn BeginDelayAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::BeginDelayAbort(this).into() } - unsafe extern "system" fn EndDelayAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn EndDelayAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::EndDelayAbort(this).into() } - unsafe extern "system" fn BeginThreadAffinity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn BeginThreadAffinity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::BeginThreadAffinity(this).into() } - unsafe extern "system" fn EndThreadAffinity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn EndThreadAffinity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::EndThreadAffinity(this).into() } - unsafe extern "system" fn SetStackGuarantee(this: *mut core::ffi::c_void, guarantee: u32) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn SetStackGuarantee(this: *mut core::ffi::c_void, guarantee: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::SetStackGuarantee(this, core::mem::transmute_copy(&guarantee)).into() } - unsafe extern "system" fn GetStackGuarantee(this: *mut core::ffi::c_void, pguarantee: *mut u32) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn GetStackGuarantee(this: *mut core::ffi::c_void, pguarantee: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostTaskManager_Impl::GetStackGuarantee(this) { Ok(ok__) => { @@ -3826,10 +2833,7 @@ impl IHostTaskManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCLRTaskManager(this: *mut core::ffi::c_void, ppmanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostTaskManager_Impl, - { + unsafe extern "system" fn SetCLRTaskManager(this: *mut core::ffi::c_void, ppmanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostTaskManager_Impl::SetCLRTaskManager(this, windows_core::from_raw_borrowed(&ppmanager)).into() } @@ -3860,7 +2864,7 @@ impl IHostTaskManager_Vtbl { } } #[cfg(feature = "Win32_System_Threading")] -pub trait IHostThreadpoolManager_Impl: Sized { +pub trait IHostThreadpoolManager_Impl: Sized + windows_core::IUnknownImpl { fn QueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, flags: u32) -> windows_core::Result<()>; fn SetMaxThreads(&self, dwmaxworkerthreads: u32) -> windows_core::Result<()>; fn GetMaxThreads(&self) -> windows_core::Result; @@ -3872,28 +2876,16 @@ pub trait IHostThreadpoolManager_Impl: Sized { impl windows_core::RuntimeName for IHostThreadpoolManager {} #[cfg(feature = "Win32_System_Threading")] impl IHostThreadpoolManager_Vtbl { - pub const fn new() -> IHostThreadpoolManager_Vtbl - where - Identity: IHostThreadpoolManager_Impl, - { - unsafe extern "system" fn QueueUserWorkItem(this: *mut core::ffi::c_void, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IHostThreadpoolManager_Impl, - { + pub const fn new() -> IHostThreadpoolManager_Vtbl { + unsafe extern "system" fn QueueUserWorkItem(this: *mut core::ffi::c_void, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostThreadpoolManager_Impl::QueueUserWorkItem(this, core::mem::transmute_copy(&function), core::mem::transmute_copy(&context), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetMaxThreads(this: *mut core::ffi::c_void, dwmaxworkerthreads: u32) -> windows_core::HRESULT - where - Identity: IHostThreadpoolManager_Impl, - { + unsafe extern "system" fn SetMaxThreads(this: *mut core::ffi::c_void, dwmaxworkerthreads: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostThreadpoolManager_Impl::SetMaxThreads(this, core::mem::transmute_copy(&dwmaxworkerthreads)).into() } - unsafe extern "system" fn GetMaxThreads(this: *mut core::ffi::c_void, pdwmaxworkerthreads: *mut u32) -> windows_core::HRESULT - where - Identity: IHostThreadpoolManager_Impl, - { + unsafe extern "system" fn GetMaxThreads(this: *mut core::ffi::c_void, pdwmaxworkerthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostThreadpoolManager_Impl::GetMaxThreads(this) { Ok(ok__) => { @@ -3903,10 +2895,7 @@ impl IHostThreadpoolManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAvailableThreads(this: *mut core::ffi::c_void, pdwavailableworkerthreads: *mut u32) -> windows_core::HRESULT - where - Identity: IHostThreadpoolManager_Impl, - { + unsafe extern "system" fn GetAvailableThreads(this: *mut core::ffi::c_void, pdwavailableworkerthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostThreadpoolManager_Impl::GetAvailableThreads(this) { Ok(ok__) => { @@ -3916,17 +2905,11 @@ impl IHostThreadpoolManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinThreads(this: *mut core::ffi::c_void, dwminiocompletionthreads: u32) -> windows_core::HRESULT - where - Identity: IHostThreadpoolManager_Impl, - { + unsafe extern "system" fn SetMinThreads(this: *mut core::ffi::c_void, dwminiocompletionthreads: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostThreadpoolManager_Impl::SetMinThreads(this, core::mem::transmute_copy(&dwminiocompletionthreads)).into() } - unsafe extern "system" fn GetMinThreads(this: *mut core::ffi::c_void, pdwminiocompletionthreads: *mut u32) -> windows_core::HRESULT - where - Identity: IHostThreadpoolManager_Impl, - { + unsafe extern "system" fn GetMinThreads(this: *mut core::ffi::c_void, pdwminiocompletionthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostThreadpoolManager_Impl::GetMinThreads(this) { Ok(ok__) => { @@ -3950,20 +2933,14 @@ impl IHostThreadpoolManager_Vtbl { iid == &::IID } } -pub trait IManagedObject_Impl: Sized { +pub trait IManagedObject_Impl: Sized + windows_core::IUnknownImpl { fn GetSerializedBuffer(&self) -> windows_core::Result; fn GetObjectIdentity(&self, pbstrguid: *mut windows_core::BSTR, appdomainid: *mut i32, pccw: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IManagedObject {} impl IManagedObject_Vtbl { - pub const fn new() -> IManagedObject_Vtbl - where - Identity: IManagedObject_Impl, - { - unsafe extern "system" fn GetSerializedBuffer(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IManagedObject_Impl, - { + pub const fn new() -> IManagedObject_Vtbl { + unsafe extern "system" fn GetSerializedBuffer(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManagedObject_Impl::GetSerializedBuffer(this) { Ok(ok__) => { @@ -3973,10 +2950,7 @@ impl IManagedObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectIdentity(this: *mut core::ffi::c_void, pbstrguid: *mut core::mem::MaybeUninit, appdomainid: *mut i32, pccw: *mut i32) -> windows_core::HRESULT - where - Identity: IManagedObject_Impl, - { + unsafe extern "system" fn GetObjectIdentity(this: *mut core::ffi::c_void, pbstrguid: *mut core::mem::MaybeUninit, appdomainid: *mut i32, pccw: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedObject_Impl::GetObjectIdentity(this, core::mem::transmute_copy(&pbstrguid), core::mem::transmute_copy(&appdomainid), core::mem::transmute_copy(&pccw)).into() } @@ -3990,19 +2964,13 @@ impl IManagedObject_Vtbl { iid == &::IID } } -pub trait IObjectHandle_Impl: Sized { +pub trait IObjectHandle_Impl: Sized + windows_core::IUnknownImpl { fn Unwrap(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IObjectHandle {} impl IObjectHandle_Vtbl { - pub const fn new() -> IObjectHandle_Vtbl - where - Identity: IObjectHandle_Impl, - { - unsafe extern "system" fn Unwrap(this: *mut core::ffi::c_void, ppv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IObjectHandle_Impl, - { + pub const fn new() -> IObjectHandle_Vtbl { + unsafe extern "system" fn Unwrap(this: *mut core::ffi::c_void, ppv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectHandle_Impl::Unwrap(this) { Ok(ok__) => { @@ -4018,7 +2986,7 @@ impl IObjectHandle_Vtbl { iid == &::IID } } -pub trait ITypeName_Impl: Sized { +pub trait ITypeName_Impl: Sized + windows_core::IUnknownImpl { fn GetNameCount(&self) -> windows_core::Result; fn GetNames(&self, count: u32, rgbsznames: *mut windows_core::BSTR) -> windows_core::Result; fn GetTypeArgumentCount(&self) -> windows_core::Result; @@ -4029,14 +2997,8 @@ pub trait ITypeName_Impl: Sized { } impl windows_core::RuntimeName for ITypeName {} impl ITypeName_Vtbl { - pub const fn new() -> ITypeName_Vtbl - where - Identity: ITypeName_Impl, - { - unsafe extern "system" fn GetNameCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeName_Impl, - { + pub const fn new() -> ITypeName_Vtbl { + unsafe extern "system" fn GetNameCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeName_Impl::GetNameCount(this) { Ok(ok__) => { @@ -4046,10 +3008,7 @@ impl ITypeName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, count: u32, rgbsznames: *mut core::mem::MaybeUninit, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeName_Impl, - { + unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, count: u32, rgbsznames: *mut core::mem::MaybeUninit, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeName_Impl::GetNames(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&rgbsznames)) { Ok(ok__) => { @@ -4059,10 +3018,7 @@ impl ITypeName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeArgumentCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeName_Impl, - { + unsafe extern "system" fn GetTypeArgumentCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeName_Impl::GetTypeArgumentCount(this) { Ok(ok__) => { @@ -4072,10 +3028,7 @@ impl ITypeName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeArguments(this: *mut core::ffi::c_void, count: u32, rgparguments: *mut *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeName_Impl, - { + unsafe extern "system" fn GetTypeArguments(this: *mut core::ffi::c_void, count: u32, rgparguments: *mut *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeName_Impl::GetTypeArguments(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&rgparguments)) { Ok(ok__) => { @@ -4085,10 +3038,7 @@ impl ITypeName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModifierLength(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeName_Impl, - { + unsafe extern "system" fn GetModifierLength(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeName_Impl::GetModifierLength(this) { Ok(ok__) => { @@ -4098,10 +3048,7 @@ impl ITypeName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModifiers(this: *mut core::ffi::c_void, count: u32, rgmodifiers: *mut u32, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeName_Impl, - { + unsafe extern "system" fn GetModifiers(this: *mut core::ffi::c_void, count: u32, rgmodifiers: *mut u32, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeName_Impl::GetModifiers(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&rgmodifiers)) { Ok(ok__) => { @@ -4111,10 +3058,7 @@ impl ITypeName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAssemblyName(this: *mut core::ffi::c_void, rgbszassemblynames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeName_Impl, - { + unsafe extern "system" fn GetAssemblyName(this: *mut core::ffi::c_void, rgbszassemblynames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeName_Impl::GetAssemblyName(this) { Ok(ok__) => { @@ -4139,7 +3083,7 @@ impl ITypeName_Vtbl { iid == &::IID } } -pub trait ITypeNameBuilder_Impl: Sized { +pub trait ITypeNameBuilder_Impl: Sized + windows_core::IUnknownImpl { fn OpenGenericArguments(&self) -> windows_core::Result<()>; fn CloseGenericArguments(&self) -> windows_core::Result<()>; fn OpenGenericArgument(&self) -> windows_core::Result<()>; @@ -4155,84 +3099,48 @@ pub trait ITypeNameBuilder_Impl: Sized { } impl windows_core::RuntimeName for ITypeNameBuilder {} impl ITypeNameBuilder_Vtbl { - pub const fn new() -> ITypeNameBuilder_Vtbl - where - Identity: ITypeNameBuilder_Impl, - { - unsafe extern "system" fn OpenGenericArguments(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + pub const fn new() -> ITypeNameBuilder_Vtbl { + unsafe extern "system" fn OpenGenericArguments(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::OpenGenericArguments(this).into() } - unsafe extern "system" fn CloseGenericArguments(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn CloseGenericArguments(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::CloseGenericArguments(this).into() } - unsafe extern "system" fn OpenGenericArgument(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn OpenGenericArgument(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::OpenGenericArgument(this).into() } - unsafe extern "system" fn CloseGenericArgument(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn CloseGenericArgument(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::CloseGenericArgument(this).into() } - unsafe extern "system" fn AddName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn AddName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::AddName(this, core::mem::transmute(&szname)).into() } - unsafe extern "system" fn AddPointer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn AddPointer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::AddPointer(this).into() } - unsafe extern "system" fn AddByRef(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn AddByRef(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::AddByRef(this).into() } - unsafe extern "system" fn AddSzArray(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn AddSzArray(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::AddSzArray(this).into() } - unsafe extern "system" fn AddArray(this: *mut core::ffi::c_void, rank: u32) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn AddArray(this: *mut core::ffi::c_void, rank: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::AddArray(this, core::mem::transmute_copy(&rank)).into() } - unsafe extern "system" fn AddAssemblySpec(this: *mut core::ffi::c_void, szassemblyspec: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn AddAssemblySpec(this: *mut core::ffi::c_void, szassemblyspec: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::AddAssemblySpec(this, core::mem::transmute(&szassemblyspec)).into() } - unsafe extern "system" fn ToString(this: *mut core::ffi::c_void, pszstringrepresentation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn ToString(this: *mut core::ffi::c_void, pszstringrepresentation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeNameBuilder_Impl::ToString(this) { Ok(ok__) => { @@ -4242,10 +3150,7 @@ impl ITypeNameBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeNameBuilder_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeNameBuilder_Impl::Clear(this).into() } @@ -4269,20 +3174,14 @@ impl ITypeNameBuilder_Vtbl { iid == &::IID } } -pub trait ITypeNameFactory_Impl: Sized { +pub trait ITypeNameFactory_Impl: Sized + windows_core::IUnknownImpl { fn ParseTypeName(&self, szname: &windows_core::PCWSTR, perror: *mut u32) -> windows_core::Result; fn GetTypeNameBuilder(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITypeNameFactory {} impl ITypeNameFactory_Vtbl { - pub const fn new() -> ITypeNameFactory_Vtbl - where - Identity: ITypeNameFactory_Impl, - { - unsafe extern "system" fn ParseTypeName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, perror: *mut u32, pptypename: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeNameFactory_Impl, - { + pub const fn new() -> ITypeNameFactory_Vtbl { + unsafe extern "system" fn ParseTypeName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, perror: *mut u32, pptypename: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeNameFactory_Impl::ParseTypeName(this, core::mem::transmute(&szname), core::mem::transmute_copy(&perror)) { Ok(ok__) => { @@ -4292,10 +3191,7 @@ impl ITypeNameFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeNameBuilder(this: *mut core::ffi::c_void, pptypebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeNameFactory_Impl, - { + unsafe extern "system" fn GetTypeNameBuilder(this: *mut core::ffi::c_void, pptypebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeNameFactory_Impl::GetTypeNameBuilder(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/impl.rs index 34b815ffaf..8765a436b0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/impl.rs @@ -1,4 +1,4 @@ -pub trait ICallFrame_Impl: Sized { +pub trait ICallFrame_Impl: Sized + windows_core::IUnknownImpl { fn GetInfo(&self, pinfo: *mut CALLFRAMEINFO) -> windows_core::Result<()>; fn GetIIDAndMethod(&self, piid: *mut windows_core::GUID, pimethod: *mut u32) -> windows_core::Result<()>; fn GetNames(&self, pwszinterface: *mut windows_core::PWSTR, pwszmethod: *mut windows_core::PWSTR) -> windows_core::Result<()>; @@ -21,63 +21,36 @@ pub trait ICallFrame_Impl: Sized { } impl windows_core::RuntimeName for ICallFrame {} impl ICallFrame_Vtbl { - pub const fn new() -> ICallFrame_Vtbl - where - Identity: ICallFrame_Impl, - { - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pinfo: *mut CALLFRAMEINFO) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + pub const fn new() -> ICallFrame_Vtbl { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pinfo: *mut CALLFRAMEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::GetInfo(this, core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn GetIIDAndMethod(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID, pimethod: *mut u32) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn GetIIDAndMethod(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID, pimethod: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::GetIIDAndMethod(this, core::mem::transmute_copy(&piid), core::mem::transmute_copy(&pimethod)).into() } - unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, pwszinterface: *mut windows_core::PWSTR, pwszmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, pwszinterface: *mut windows_core::PWSTR, pwszmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::GetNames(this, core::mem::transmute_copy(&pwszinterface), core::mem::transmute_copy(&pwszmethod)).into() } - unsafe extern "system" fn GetStackLocation(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn GetStackLocation(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::GetStackLocation(this) } - unsafe extern "system" fn SetStackLocation(this: *mut core::ffi::c_void, pvstack: *const core::ffi::c_void) - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn SetStackLocation(this: *mut core::ffi::c_void, pvstack: *const core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::SetStackLocation(this, core::mem::transmute_copy(&pvstack)) } - unsafe extern "system" fn SetReturnValue(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn SetReturnValue(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::SetReturnValue(this, core::mem::transmute_copy(&hr)) } - unsafe extern "system" fn GetReturnValue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn GetReturnValue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::GetReturnValue(this).into() } - unsafe extern "system" fn GetParamInfo(this: *mut core::ffi::c_void, iparam: u32, pinfo: *mut CALLFRAMEPARAMINFO) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn GetParamInfo(this: *mut core::ffi::c_void, iparam: u32, pinfo: *mut CALLFRAMEPARAMINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICallFrame_Impl::GetParamInfo(this, core::mem::transmute_copy(&iparam)) { Ok(ok__) => { @@ -87,17 +60,11 @@ impl ICallFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParam(this: *mut core::ffi::c_void, iparam: u32, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn SetParam(this: *mut core::ffi::c_void, iparam: u32, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::SetParam(this, core::mem::transmute_copy(&iparam), core::mem::transmute_copy(&pvar)).into() } - unsafe extern "system" fn GetParam(this: *mut core::ffi::c_void, iparam: u32, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn GetParam(this: *mut core::ffi::c_void, iparam: u32, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICallFrame_Impl::GetParam(this, core::mem::transmute_copy(&iparam)) { Ok(ok__) => { @@ -107,10 +74,7 @@ impl ICallFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, copycontrol: CALLFRAME_COPY, pwalker: *mut core::ffi::c_void, ppframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, copycontrol: CALLFRAME_COPY, pwalker: *mut core::ffi::c_void, ppframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICallFrame_Impl::Copy(this, core::mem::transmute_copy(©control), windows_core::from_raw_borrowed(&pwalker)) { Ok(ok__) => { @@ -120,31 +84,19 @@ impl ICallFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Free(this: *mut core::ffi::c_void, pframeargsdest: *mut core::ffi::c_void, pwalkerdestfree: *mut core::ffi::c_void, pwalkercopy: *mut core::ffi::c_void, freeflags: u32, pwalkerfree: *mut core::ffi::c_void, nullflags: u32) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn Free(this: *mut core::ffi::c_void, pframeargsdest: *mut core::ffi::c_void, pwalkerdestfree: *mut core::ffi::c_void, pwalkercopy: *mut core::ffi::c_void, freeflags: u32, pwalkerfree: *mut core::ffi::c_void, nullflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::Free(this, windows_core::from_raw_borrowed(&pframeargsdest), windows_core::from_raw_borrowed(&pwalkerdestfree), windows_core::from_raw_borrowed(&pwalkercopy), core::mem::transmute_copy(&freeflags), windows_core::from_raw_borrowed(&pwalkerfree), core::mem::transmute_copy(&nullflags)).into() } - unsafe extern "system" fn FreeParam(this: *mut core::ffi::c_void, iparam: u32, freeflags: u32, pwalkerfree: *mut core::ffi::c_void, nullflags: u32) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn FreeParam(this: *mut core::ffi::c_void, iparam: u32, freeflags: u32, pwalkerfree: *mut core::ffi::c_void, nullflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::FreeParam(this, core::mem::transmute_copy(&iparam), core::mem::transmute_copy(&freeflags), windows_core::from_raw_borrowed(&pwalkerfree), core::mem::transmute_copy(&nullflags)).into() } - unsafe extern "system" fn WalkFrame(this: *mut core::ffi::c_void, walkwhat: u32, pwalker: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn WalkFrame(this: *mut core::ffi::c_void, walkwhat: u32, pwalker: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::WalkFrame(this, core::mem::transmute_copy(&walkwhat), windows_core::from_raw_borrowed(&pwalker)).into() } - unsafe extern "system" fn GetMarshalSizeMax(this: *mut core::ffi::c_void, pmshlcontext: *const CALLFRAME_MARSHALCONTEXT, mshlflags: super::MSHLFLAGS, pcbbufferneeded: *mut u32) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn GetMarshalSizeMax(this: *mut core::ffi::c_void, pmshlcontext: *const CALLFRAME_MARSHALCONTEXT, mshlflags: super::MSHLFLAGS, pcbbufferneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICallFrame_Impl::GetMarshalSizeMax(this, core::mem::transmute_copy(&pmshlcontext), core::mem::transmute_copy(&mshlflags)) { Ok(ok__) => { @@ -154,17 +106,11 @@ impl ICallFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Marshal(this: *mut core::ffi::c_void, pmshlcontext: *const CALLFRAME_MARSHALCONTEXT, mshlflags: super::MSHLFLAGS, pbuffer: *const core::ffi::c_void, cbbuffer: u32, pcbbufferused: *mut u32, pdatarep: *mut u32, prpcflags: *mut u32) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn Marshal(this: *mut core::ffi::c_void, pmshlcontext: *const CALLFRAME_MARSHALCONTEXT, mshlflags: super::MSHLFLAGS, pbuffer: *const core::ffi::c_void, cbbuffer: u32, pcbbufferused: *mut u32, pdatarep: *mut u32, prpcflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::Marshal(this, core::mem::transmute_copy(&pmshlcontext), core::mem::transmute_copy(&mshlflags), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&pcbbufferused), core::mem::transmute_copy(&pdatarep), core::mem::transmute_copy(&prpcflags)).into() } - unsafe extern "system" fn Unmarshal(this: *mut core::ffi::c_void, pbuffer: *const core::ffi::c_void, cbbuffer: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn Unmarshal(this: *mut core::ffi::c_void, pbuffer: *const core::ffi::c_void, cbbuffer: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICallFrame_Impl::Unmarshal(this, core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&datarep), core::mem::transmute_copy(&pcontext)) { Ok(ok__) => { @@ -174,17 +120,11 @@ impl ICallFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseMarshalData(this: *mut core::ffi::c_void, pbuffer: *const core::ffi::c_void, cbbuffer: u32, ibfirstrelease: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn ReleaseMarshalData(this: *mut core::ffi::c_void, pbuffer: *const core::ffi::c_void, cbbuffer: u32, ibfirstrelease: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::ReleaseMarshalData(this, core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&ibfirstrelease), core::mem::transmute_copy(&datarep), core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, pvreceiver: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICallFrame_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, pvreceiver: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrame_Impl::Invoke(this, core::mem::transmute_copy(&pvreceiver)).into() } @@ -215,19 +155,13 @@ impl ICallFrame_Vtbl { iid == &::IID } } -pub trait ICallFrameEvents_Impl: Sized { +pub trait ICallFrameEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnCall(&self, pframe: Option<&ICallFrame>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICallFrameEvents {} impl ICallFrameEvents_Vtbl { - pub const fn new() -> ICallFrameEvents_Vtbl - where - Identity: ICallFrameEvents_Impl, - { - unsafe extern "system" fn OnCall(this: *mut core::ffi::c_void, pframe: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICallFrameEvents_Impl, - { + pub const fn new() -> ICallFrameEvents_Vtbl { + unsafe extern "system" fn OnCall(this: *mut core::ffi::c_void, pframe: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrameEvents_Impl::OnCall(this, windows_core::from_raw_borrowed(&pframe)).into() } @@ -237,19 +171,13 @@ impl ICallFrameEvents_Vtbl { iid == &::IID } } -pub trait ICallFrameWalker_Impl: Sized { +pub trait ICallFrameWalker_Impl: Sized + windows_core::IUnknownImpl { fn OnWalkInterface(&self, iid: *const windows_core::GUID, ppvinterface: *const *const core::ffi::c_void, fin: super::super::super::Foundation::BOOL, fout: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICallFrameWalker {} impl ICallFrameWalker_Vtbl { - pub const fn new() -> ICallFrameWalker_Vtbl - where - Identity: ICallFrameWalker_Impl, - { - unsafe extern "system" fn OnWalkInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, ppvinterface: *const *const core::ffi::c_void, fin: super::super::super::Foundation::BOOL, fout: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICallFrameWalker_Impl, - { + pub const fn new() -> ICallFrameWalker_Vtbl { + unsafe extern "system" fn OnWalkInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, ppvinterface: *const *const core::ffi::c_void, fin: super::super::super::Foundation::BOOL, fout: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrameWalker_Impl::OnWalkInterface(this, core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppvinterface), core::mem::transmute_copy(&fin), core::mem::transmute_copy(&fout)).into() } @@ -259,7 +187,7 @@ impl ICallFrameWalker_Vtbl { iid == &::IID } } -pub trait ICallIndirect_Impl: Sized { +pub trait ICallIndirect_Impl: Sized + windows_core::IUnknownImpl { fn CallIndirect(&self, phrreturn: *mut windows_core::HRESULT, imethod: u32, pvargs: *const core::ffi::c_void, cbargs: *mut u32) -> windows_core::Result<()>; fn GetMethodInfo(&self, imethod: u32, pinfo: *mut CALLFRAMEINFO, pwszmethod: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn GetStackSize(&self, imethod: u32) -> windows_core::Result; @@ -267,28 +195,16 @@ pub trait ICallIndirect_Impl: Sized { } impl windows_core::RuntimeName for ICallIndirect {} impl ICallIndirect_Vtbl { - pub const fn new() -> ICallIndirect_Vtbl - where - Identity: ICallIndirect_Impl, - { - unsafe extern "system" fn CallIndirect(this: *mut core::ffi::c_void, phrreturn: *mut windows_core::HRESULT, imethod: u32, pvargs: *const core::ffi::c_void, cbargs: *mut u32) -> windows_core::HRESULT - where - Identity: ICallIndirect_Impl, - { + pub const fn new() -> ICallIndirect_Vtbl { + unsafe extern "system" fn CallIndirect(this: *mut core::ffi::c_void, phrreturn: *mut windows_core::HRESULT, imethod: u32, pvargs: *const core::ffi::c_void, cbargs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallIndirect_Impl::CallIndirect(this, core::mem::transmute_copy(&phrreturn), core::mem::transmute_copy(&imethod), core::mem::transmute_copy(&pvargs), core::mem::transmute_copy(&cbargs)).into() } - unsafe extern "system" fn GetMethodInfo(this: *mut core::ffi::c_void, imethod: u32, pinfo: *mut CALLFRAMEINFO, pwszmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICallIndirect_Impl, - { + unsafe extern "system" fn GetMethodInfo(this: *mut core::ffi::c_void, imethod: u32, pinfo: *mut CALLFRAMEINFO, pwszmethod: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallIndirect_Impl::GetMethodInfo(this, core::mem::transmute_copy(&imethod), core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&pwszmethod)).into() } - unsafe extern "system" fn GetStackSize(this: *mut core::ffi::c_void, imethod: u32, cbargs: *mut u32) -> windows_core::HRESULT - where - Identity: ICallIndirect_Impl, - { + unsafe extern "system" fn GetStackSize(this: *mut core::ffi::c_void, imethod: u32, cbargs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICallIndirect_Impl::GetStackSize(this, core::mem::transmute_copy(&imethod)) { Ok(ok__) => { @@ -298,10 +214,7 @@ impl ICallIndirect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIID(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID, pfderivesfromidispatch: *mut super::super::super::Foundation::BOOL, pcmethod: *mut u32, pwszinterface: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICallIndirect_Impl, - { + unsafe extern "system" fn GetIID(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID, pfderivesfromidispatch: *mut super::super::super::Foundation::BOOL, pcmethod: *mut u32, pwszinterface: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallIndirect_Impl::GetIID(this, core::mem::transmute_copy(&piid), core::mem::transmute_copy(&pfderivesfromidispatch), core::mem::transmute_copy(&pcmethod), core::mem::transmute_copy(&pwszinterface)).into() } @@ -323,21 +236,12 @@ pub trait ICallInterceptor_Impl: Sized + ICallIndirect_Impl { } impl windows_core::RuntimeName for ICallInterceptor {} impl ICallInterceptor_Vtbl { - pub const fn new() -> ICallInterceptor_Vtbl - where - Identity: ICallInterceptor_Impl, - { - unsafe extern "system" fn RegisterSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICallInterceptor_Impl, - { + pub const fn new() -> ICallInterceptor_Vtbl { + unsafe extern "system" fn RegisterSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallInterceptor_Impl::RegisterSink(this, windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn GetRegisteredSink(this: *mut core::ffi::c_void, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICallInterceptor_Impl, - { + unsafe extern "system" fn GetRegisteredSink(this: *mut core::ffi::c_void, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICallInterceptor_Impl::GetRegisteredSink(this) { Ok(ok__) => { @@ -357,27 +261,18 @@ impl ICallInterceptor_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ICallUnmarshal_Impl: Sized { +pub trait ICallUnmarshal_Impl: Sized + windows_core::IUnknownImpl { fn Unmarshal(&self, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, fforcebuffercopy: super::super::super::Foundation::BOOL, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32, ppframe: *mut Option) -> windows_core::Result<()>; fn ReleaseMarshalData(&self, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, ibfirstrelease: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICallUnmarshal {} impl ICallUnmarshal_Vtbl { - pub const fn new() -> ICallUnmarshal_Vtbl - where - Identity: ICallUnmarshal_Impl, - { - unsafe extern "system" fn Unmarshal(this: *mut core::ffi::c_void, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, fforcebuffercopy: super::super::super::Foundation::BOOL, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32, ppframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICallUnmarshal_Impl, - { + pub const fn new() -> ICallUnmarshal_Vtbl { + unsafe extern "system" fn Unmarshal(this: *mut core::ffi::c_void, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, fforcebuffercopy: super::super::super::Foundation::BOOL, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32, ppframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallUnmarshal_Impl::Unmarshal(this, core::mem::transmute_copy(&imethod), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&fforcebuffercopy), core::mem::transmute_copy(&datarep), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&pcbunmarshalled), core::mem::transmute_copy(&ppframe)).into() } - unsafe extern "system" fn ReleaseMarshalData(this: *mut core::ffi::c_void, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, ibfirstrelease: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> windows_core::HRESULT - where - Identity: ICallUnmarshal_Impl, - { + unsafe extern "system" fn ReleaseMarshalData(this: *mut core::ffi::c_void, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, ibfirstrelease: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallUnmarshal_Impl::ReleaseMarshalData(this, core::mem::transmute_copy(&imethod), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&ibfirstrelease), core::mem::transmute_copy(&datarep), core::mem::transmute_copy(&pcontext)).into() } @@ -391,27 +286,18 @@ impl ICallUnmarshal_Vtbl { iid == &::IID } } -pub trait IInterfaceRelated_Impl: Sized { +pub trait IInterfaceRelated_Impl: Sized + windows_core::IUnknownImpl { fn SetIID(&self, iid: *const windows_core::GUID) -> windows_core::Result<()>; fn GetIID(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IInterfaceRelated {} impl IInterfaceRelated_Vtbl { - pub const fn new() -> IInterfaceRelated_Vtbl - where - Identity: IInterfaceRelated_Impl, - { - unsafe extern "system" fn SetIID(this: *mut core::ffi::c_void, iid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IInterfaceRelated_Impl, - { + pub const fn new() -> IInterfaceRelated_Vtbl { + unsafe extern "system" fn SetIID(this: *mut core::ffi::c_void, iid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInterfaceRelated_Impl::SetIID(this, core::mem::transmute_copy(&iid)).into() } - unsafe extern "system" fn GetIID(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IInterfaceRelated_Impl, - { + unsafe extern "system" fn GetIID(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInterfaceRelated_Impl::GetIID(this) { Ok(ok__) => { 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 678239fd67..40e1ca826d 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 @@ -12,77 +12,44 @@ pub trait IChannelCredentials_Impl: Sized + super::IDispatch_Impl { } impl windows_core::RuntimeName for IChannelCredentials {} impl IChannelCredentials_Vtbl { - pub const fn new() -> IChannelCredentials_Vtbl - where - Identity: IChannelCredentials_Impl, - { - unsafe extern "system" fn SetWindowsCredential(this: *mut core::ffi::c_void, domain: core::mem::MaybeUninit, username: core::mem::MaybeUninit, password: core::mem::MaybeUninit, impersonationlevel: i32, allowntlm: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IChannelCredentials_Impl, - { + pub const fn new() -> IChannelCredentials_Vtbl { + unsafe extern "system" fn SetWindowsCredential(this: *mut core::ffi::c_void, domain: core::mem::MaybeUninit, username: core::mem::MaybeUninit, password: core::mem::MaybeUninit, impersonationlevel: i32, allowntlm: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetWindowsCredential(this, 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(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, password: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelCredentials_Impl, - { + unsafe extern "system" fn SetUserNameCredential(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, password: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetUserNameCredential(this, core::mem::transmute(&username), core::mem::transmute(&password)).into() } - unsafe extern "system" fn SetClientCertificateFromStore(this: *mut core::ffi::c_void, storelocation: core::mem::MaybeUninit, storename: core::mem::MaybeUninit, findyype: core::mem::MaybeUninit, findvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelCredentials_Impl, - { + unsafe extern "system" fn SetClientCertificateFromStore(this: *mut core::ffi::c_void, storelocation: core::mem::MaybeUninit, storename: core::mem::MaybeUninit, findyype: core::mem::MaybeUninit, findvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetClientCertificateFromStore(this, core::mem::transmute(&storelocation), core::mem::transmute(&storename), core::mem::transmute(&findyype), core::mem::transmute(&findvalue)).into() } - unsafe extern "system" fn SetClientCertificateFromStoreByName(this: *mut core::ffi::c_void, subjectname: core::mem::MaybeUninit, storelocation: core::mem::MaybeUninit, storename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelCredentials_Impl, - { + unsafe extern "system" fn SetClientCertificateFromStoreByName(this: *mut core::ffi::c_void, subjectname: core::mem::MaybeUninit, storelocation: core::mem::MaybeUninit, storename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetClientCertificateFromStoreByName(this, core::mem::transmute(&subjectname), core::mem::transmute(&storelocation), core::mem::transmute(&storename)).into() } - unsafe extern "system" fn SetClientCertificateFromFile(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit, password: core::mem::MaybeUninit, keystorageflags: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelCredentials_Impl, - { + unsafe extern "system" fn SetClientCertificateFromFile(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit, password: core::mem::MaybeUninit, keystorageflags: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetClientCertificateFromFile(this, core::mem::transmute(&filename), core::mem::transmute(&password), core::mem::transmute(&keystorageflags)).into() } - unsafe extern "system" fn SetDefaultServiceCertificateFromStore(this: *mut core::ffi::c_void, storelocation: core::mem::MaybeUninit, storename: core::mem::MaybeUninit, findtype: core::mem::MaybeUninit, findvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelCredentials_Impl, - { + unsafe extern "system" fn SetDefaultServiceCertificateFromStore(this: *mut core::ffi::c_void, storelocation: core::mem::MaybeUninit, storename: core::mem::MaybeUninit, findtype: core::mem::MaybeUninit, findvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetDefaultServiceCertificateFromStore(this, core::mem::transmute(&storelocation), core::mem::transmute(&storename), core::mem::transmute(&findtype), core::mem::transmute(&findvalue)).into() } - unsafe extern "system" fn SetDefaultServiceCertificateFromStoreByName(this: *mut core::ffi::c_void, subjectname: core::mem::MaybeUninit, storelocation: core::mem::MaybeUninit, storename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelCredentials_Impl, - { + unsafe extern "system" fn SetDefaultServiceCertificateFromStoreByName(this: *mut core::ffi::c_void, subjectname: core::mem::MaybeUninit, storelocation: core::mem::MaybeUninit, storename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetDefaultServiceCertificateFromStoreByName(this, core::mem::transmute(&subjectname), core::mem::transmute(&storelocation), core::mem::transmute(&storename)).into() } - unsafe extern "system" fn SetDefaultServiceCertificateFromFile(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit, password: core::mem::MaybeUninit, keystorageflags: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelCredentials_Impl, - { + unsafe extern "system" fn SetDefaultServiceCertificateFromFile(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit, password: core::mem::MaybeUninit, keystorageflags: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetDefaultServiceCertificateFromFile(this, core::mem::transmute(&filename), core::mem::transmute(&password), core::mem::transmute(&keystorageflags)).into() } - unsafe extern "system" fn SetServiceCertificateAuthentication(this: *mut core::ffi::c_void, storelocation: core::mem::MaybeUninit, revocationmode: core::mem::MaybeUninit, certificatevalidationmode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelCredentials_Impl, - { + unsafe extern "system" fn SetServiceCertificateAuthentication(this: *mut core::ffi::c_void, storelocation: core::mem::MaybeUninit, revocationmode: core::mem::MaybeUninit, certificatevalidationmode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetServiceCertificateAuthentication(this, core::mem::transmute(&storelocation), core::mem::transmute(&revocationmode), core::mem::transmute(&certificatevalidationmode)).into() } - unsafe extern "system" fn SetIssuedToken(this: *mut core::ffi::c_void, localissueraddres: core::mem::MaybeUninit, localissuerbindingtype: core::mem::MaybeUninit, localissuerbinding: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IChannelCredentials_Impl, - { + unsafe extern "system" fn SetIssuedToken(this: *mut core::ffi::c_void, localissueraddres: core::mem::MaybeUninit, localissuerbindingtype: core::mem::MaybeUninit, localissuerbinding: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetIssuedToken(this, core::mem::transmute(&localissueraddres), core::mem::transmute(&localissuerbindingtype), core::mem::transmute(&localissuerbinding)).into() } 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 4c3bc31e11..a4306a33d5 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 @@ -1,17 +1,14 @@ -pub trait IDontSupportEventSubscription_Impl: Sized {} +pub trait IDontSupportEventSubscription_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IDontSupportEventSubscription {} impl IDontSupportEventSubscription_Vtbl { - pub const fn new() -> IDontSupportEventSubscription_Vtbl - where - Identity: IDontSupportEventSubscription_Impl, - { + pub const fn new() -> IDontSupportEventSubscription_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IEnumEventObject_Impl: Sized { +pub trait IEnumEventObject_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, creqelem: u32, ppinterface: *mut Option, cretelem: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::HRESULT; @@ -19,14 +16,8 @@ pub trait IEnumEventObject_Impl: Sized { } impl windows_core::RuntimeName for IEnumEventObject {} impl IEnumEventObject_Vtbl { - pub const fn new() -> IEnumEventObject_Vtbl - where - Identity: IEnumEventObject_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumEventObject_Impl, - { + pub const fn new() -> IEnumEventObject_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumEventObject_Impl::Clone(this) { Ok(ok__) => { @@ -36,24 +27,15 @@ impl IEnumEventObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, creqelem: u32, ppinterface: *mut *mut core::ffi::c_void, cretelem: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumEventObject_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, creqelem: u32, ppinterface: *mut *mut core::ffi::c_void, cretelem: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumEventObject_Impl::Next(this, core::mem::transmute_copy(&creqelem), core::mem::transmute_copy(&ppinterface), core::mem::transmute_copy(&cretelem)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumEventObject_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumEventObject_Impl::Reset(this) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cskipelem: u32) -> windows_core::HRESULT - where - Identity: IEnumEventObject_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cskipelem: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumEventObject_Impl::Skip(this, core::mem::transmute_copy(&cskipelem)).into() } @@ -87,14 +69,8 @@ pub trait IEventClass_Impl: Sized + super::IDispatch_Impl { } impl windows_core::RuntimeName for IEventClass {} impl IEventClass_Vtbl { - pub const fn new() -> IEventClass_Vtbl - where - Identity: IEventClass_Impl, - { - unsafe extern "system" fn EventClassID(this: *mut core::ffi::c_void, pbstreventclassid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + pub const fn new() -> IEventClass_Vtbl { + unsafe extern "system" fn EventClassID(this: *mut core::ffi::c_void, pbstreventclassid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass_Impl::EventClassID(this) { Ok(ok__) => { @@ -104,17 +80,11 @@ impl IEventClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventClassID(this: *mut core::ffi::c_void, bstreventclassid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn SetEventClassID(this: *mut core::ffi::c_void, bstreventclassid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass_Impl::SetEventClassID(this, core::mem::transmute(&bstreventclassid)).into() } - unsafe extern "system" fn EventClassName(this: *mut core::ffi::c_void, pbstreventclassname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn EventClassName(this: *mut core::ffi::c_void, pbstreventclassname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass_Impl::EventClassName(this) { Ok(ok__) => { @@ -124,17 +94,11 @@ impl IEventClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventClassName(this: *mut core::ffi::c_void, bstreventclassname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn SetEventClassName(this: *mut core::ffi::c_void, bstreventclassname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass_Impl::SetEventClassName(this, core::mem::transmute(&bstreventclassname)).into() } - unsafe extern "system" fn OwnerSID(this: *mut core::ffi::c_void, pbstrownersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn OwnerSID(this: *mut core::ffi::c_void, pbstrownersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass_Impl::OwnerSID(this) { Ok(ok__) => { @@ -144,17 +108,11 @@ impl IEventClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOwnerSID(this: *mut core::ffi::c_void, bstrownersid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn SetOwnerSID(this: *mut core::ffi::c_void, bstrownersid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass_Impl::SetOwnerSID(this, core::mem::transmute(&bstrownersid)).into() } - unsafe extern "system" fn FiringInterfaceID(this: *mut core::ffi::c_void, pbstrfiringinterfaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn FiringInterfaceID(this: *mut core::ffi::c_void, pbstrfiringinterfaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass_Impl::FiringInterfaceID(this) { Ok(ok__) => { @@ -164,17 +122,11 @@ impl IEventClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFiringInterfaceID(this: *mut core::ffi::c_void, bstrfiringinterfaceid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn SetFiringInterfaceID(this: *mut core::ffi::c_void, bstrfiringinterfaceid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass_Impl::SetFiringInterfaceID(this, core::mem::transmute(&bstrfiringinterfaceid)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass_Impl::Description(this) { Ok(ok__) => { @@ -184,17 +136,11 @@ impl IEventClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn CustomConfigCLSID(this: *mut core::ffi::c_void, pbstrcustomconfigclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn CustomConfigCLSID(this: *mut core::ffi::c_void, pbstrcustomconfigclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass_Impl::CustomConfigCLSID(this) { Ok(ok__) => { @@ -204,17 +150,11 @@ impl IEventClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCustomConfigCLSID(this: *mut core::ffi::c_void, bstrcustomconfigclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn SetCustomConfigCLSID(this: *mut core::ffi::c_void, bstrcustomconfigclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass_Impl::SetCustomConfigCLSID(this, core::mem::transmute(&bstrcustomconfigclsid)).into() } - unsafe extern "system" fn TypeLib(this: *mut core::ffi::c_void, pbstrtypelib: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn TypeLib(this: *mut core::ffi::c_void, pbstrtypelib: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass_Impl::TypeLib(this) { Ok(ok__) => { @@ -224,10 +164,7 @@ impl IEventClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTypeLib(this: *mut core::ffi::c_void, bstrtypelib: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass_Impl, - { + unsafe extern "system" fn SetTypeLib(this: *mut core::ffi::c_void, bstrtypelib: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass_Impl::SetTypeLib(this, core::mem::transmute(&bstrtypelib)).into() } @@ -265,14 +202,8 @@ pub trait IEventClass2_Impl: Sized + IEventClass_Impl { } impl windows_core::RuntimeName for IEventClass2 {} impl IEventClass2_Vtbl { - pub const fn new() -> IEventClass2_Vtbl - where - Identity: IEventClass2_Impl, - { - unsafe extern "system" fn PublisherID(this: *mut core::ffi::c_void, pbstrpublisherid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass2_Impl, - { + pub const fn new() -> IEventClass2_Vtbl { + unsafe extern "system" fn PublisherID(this: *mut core::ffi::c_void, pbstrpublisherid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass2_Impl::PublisherID(this) { Ok(ok__) => { @@ -282,17 +213,11 @@ impl IEventClass2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPublisherID(this: *mut core::ffi::c_void, bstrpublisherid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass2_Impl, - { + unsafe extern "system" fn SetPublisherID(this: *mut core::ffi::c_void, bstrpublisherid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass2_Impl::SetPublisherID(this, core::mem::transmute(&bstrpublisherid)).into() } - unsafe extern "system" fn MultiInterfacePublisherFilterCLSID(this: *mut core::ffi::c_void, pbstrpubfilclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass2_Impl, - { + unsafe extern "system" fn MultiInterfacePublisherFilterCLSID(this: *mut core::ffi::c_void, pbstrpubfilclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass2_Impl::MultiInterfacePublisherFilterCLSID(this) { Ok(ok__) => { @@ -302,17 +227,11 @@ impl IEventClass2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMultiInterfacePublisherFilterCLSID(this: *mut core::ffi::c_void, bstrpubfilclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventClass2_Impl, - { + unsafe extern "system" fn SetMultiInterfacePublisherFilterCLSID(this: *mut core::ffi::c_void, bstrpubfilclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass2_Impl::SetMultiInterfacePublisherFilterCLSID(this, core::mem::transmute(&bstrpubfilclsid)).into() } - unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEventClass2_Impl, - { + unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass2_Impl::AllowInprocActivation(this) { Ok(ok__) => { @@ -322,17 +241,11 @@ impl IEventClass2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEventClass2_Impl, - { + unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass2_Impl::SetAllowInprocActivation(this, core::mem::transmute_copy(&fallowinprocactivation)).into() } - unsafe extern "system" fn FireInParallel(this: *mut core::ffi::c_void, pffireinparallel: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEventClass2_Impl, - { + unsafe extern "system" fn FireInParallel(this: *mut core::ffi::c_void, pffireinparallel: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass2_Impl::FireInParallel(this) { Ok(ok__) => { @@ -342,10 +255,7 @@ impl IEventClass2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFireInParallel(this: *mut core::ffi::c_void, ffireinparallel: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEventClass2_Impl, - { + unsafe extern "system" fn SetFireInParallel(this: *mut core::ffi::c_void, ffireinparallel: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass2_Impl::SetFireInParallel(this, core::mem::transmute_copy(&ffireinparallel)).into() } @@ -374,21 +284,12 @@ pub trait IEventControl_Impl: Sized + super::IDispatch_Impl { } impl windows_core::RuntimeName for IEventControl {} impl IEventControl_Vtbl { - pub const fn new() -> IEventControl_Vtbl - where - Identity: IEventControl_Impl, - { - unsafe extern "system" fn SetPublisherFilter(this: *mut core::ffi::c_void, methodname: core::mem::MaybeUninit, ppublisherfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventControl_Impl, - { + pub const fn new() -> IEventControl_Vtbl { + unsafe extern "system" fn SetPublisherFilter(this: *mut core::ffi::c_void, methodname: core::mem::MaybeUninit, ppublisherfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventControl_Impl::SetPublisherFilter(this, core::mem::transmute(&methodname), windows_core::from_raw_borrowed(&ppublisherfilter)).into() } - unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEventControl_Impl, - { + unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventControl_Impl::AllowInprocActivation(this) { Ok(ok__) => { @@ -398,17 +299,11 @@ impl IEventControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEventControl_Impl, - { + unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventControl_Impl::SetAllowInprocActivation(this, core::mem::transmute_copy(&fallowinprocactivation)).into() } - unsafe extern "system" fn GetSubscriptions(this: *mut core::ffi::c_void, methodname: core::mem::MaybeUninit, optionalcriteria: core::mem::MaybeUninit, optionalerrorindex: *const i32, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventControl_Impl, - { + unsafe extern "system" fn GetSubscriptions(this: *mut core::ffi::c_void, methodname: core::mem::MaybeUninit, optionalcriteria: core::mem::MaybeUninit, optionalerrorindex: *const i32, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventControl_Impl::GetSubscriptions(this, core::mem::transmute(&methodname), core::mem::transmute(&optionalcriteria), core::mem::transmute_copy(&optionalerrorindex)) { Ok(ok__) => { @@ -418,10 +313,7 @@ impl IEventControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultQuery(this: *mut core::ffi::c_void, methodname: core::mem::MaybeUninit, criteria: core::mem::MaybeUninit, errorindex: *mut i32) -> windows_core::HRESULT - where - Identity: IEventControl_Impl, - { + unsafe extern "system" fn SetDefaultQuery(this: *mut core::ffi::c_void, methodname: core::mem::MaybeUninit, criteria: core::mem::MaybeUninit, errorindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventControl_Impl::SetDefaultQuery(this, core::mem::transmute(&methodname), core::mem::transmute(&criteria)) { Ok(ok__) => { @@ -444,35 +336,23 @@ impl IEventControl_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IEventObjectChange_Impl: Sized { +pub trait IEventObjectChange_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IEventObjectChange {} impl IEventObjectChange_Vtbl { - pub const fn new() -> IEventObjectChange_Vtbl - where - Identity: IEventObjectChange_Impl, - { - unsafe extern "system" fn ChangedSubscription(this: *mut core::ffi::c_void, changetype: EOC_ChangeType, bstrsubscriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventObjectChange_Impl, - { + pub const fn new() -> IEventObjectChange_Vtbl { + unsafe extern "system" fn ChangedSubscription(this: *mut core::ffi::c_void, changetype: EOC_ChangeType, bstrsubscriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventObjectChange_Impl::ChangedSubscription(this, core::mem::transmute_copy(&changetype), core::mem::transmute(&bstrsubscriptionid)).into() } - unsafe extern "system" fn ChangedEventClass(this: *mut core::ffi::c_void, changetype: EOC_ChangeType, bstreventclassid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventObjectChange_Impl, - { + unsafe extern "system" fn ChangedEventClass(this: *mut core::ffi::c_void, changetype: EOC_ChangeType, bstreventclassid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventObjectChange_Impl::ChangedEventClass(this, core::mem::transmute_copy(&changetype), core::mem::transmute(&bstreventclassid)).into() } - unsafe extern "system" fn ChangedPublisher(this: *mut core::ffi::c_void, changetype: EOC_ChangeType, bstrpublisherid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventObjectChange_Impl, - { + unsafe extern "system" fn ChangedPublisher(this: *mut core::ffi::c_void, changetype: EOC_ChangeType, bstrpublisherid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventObjectChange_Impl::ChangedPublisher(this, core::mem::transmute_copy(&changetype), core::mem::transmute(&bstrpublisherid)).into() } @@ -487,27 +367,18 @@ impl IEventObjectChange_Vtbl { iid == &::IID } } -pub trait IEventObjectChange2_Impl: Sized { +pub trait IEventObjectChange2_Impl: Sized + windows_core::IUnknownImpl { fn ChangedSubscription(&self, pinfo: *const COMEVENTSYSCHANGEINFO) -> windows_core::Result<()>; fn ChangedEventClass(&self, pinfo: *const COMEVENTSYSCHANGEINFO) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IEventObjectChange2 {} impl IEventObjectChange2_Vtbl { - pub const fn new() -> IEventObjectChange2_Vtbl - where - Identity: IEventObjectChange2_Impl, - { - unsafe extern "system" fn ChangedSubscription(this: *mut core::ffi::c_void, pinfo: *const COMEVENTSYSCHANGEINFO) -> windows_core::HRESULT - where - Identity: IEventObjectChange2_Impl, - { + pub const fn new() -> IEventObjectChange2_Vtbl { + unsafe extern "system" fn ChangedSubscription(this: *mut core::ffi::c_void, pinfo: *const COMEVENTSYSCHANGEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventObjectChange2_Impl::ChangedSubscription(this, core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn ChangedEventClass(this: *mut core::ffi::c_void, pinfo: *const COMEVENTSYSCHANGEINFO) -> windows_core::HRESULT - where - Identity: IEventObjectChange2_Impl, - { + unsafe extern "system" fn ChangedEventClass(this: *mut core::ffi::c_void, pinfo: *const COMEVENTSYSCHANGEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventObjectChange2_Impl::ChangedEventClass(this, core::mem::transmute_copy(&pinfo)).into() } @@ -531,14 +402,8 @@ pub trait IEventObjectCollection_Impl: Sized + super::IDispatch_Impl { } impl windows_core::RuntimeName for IEventObjectCollection {} impl IEventObjectCollection_Vtbl { - pub const fn new() -> IEventObjectCollection_Vtbl - where - Identity: IEventObjectCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunkenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventObjectCollection_Impl, - { + pub const fn new() -> IEventObjectCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunkenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventObjectCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -548,10 +413,7 @@ impl IEventObjectCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, objectid: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventObjectCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, objectid: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventObjectCollection_Impl::get_Item(this, core::mem::transmute(&objectid)) { Ok(ok__) => { @@ -561,10 +423,7 @@ impl IEventObjectCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventObjectCollection_Impl, - { + unsafe extern "system" fn NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventObjectCollection_Impl::NewEnum(this) { Ok(ok__) => { @@ -574,10 +433,7 @@ impl IEventObjectCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: IEventObjectCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventObjectCollection_Impl::Count(this) { Ok(ok__) => { @@ -587,17 +443,11 @@ impl IEventObjectCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, item: *const core::mem::MaybeUninit, objectid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventObjectCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, item: *const core::mem::MaybeUninit, objectid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventObjectCollection_Impl::Add(this, core::mem::transmute_copy(&item), core::mem::transmute(&objectid)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, objectid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventObjectCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, objectid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventObjectCollection_Impl::Remove(this, core::mem::transmute(&objectid)).into() } @@ -623,14 +473,8 @@ pub trait IEventProperty_Impl: Sized + super::IDispatch_Impl { } impl windows_core::RuntimeName for IEventProperty {} impl IEventProperty_Vtbl { - pub const fn new() -> IEventProperty_Vtbl - where - Identity: IEventProperty_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, propertyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventProperty_Impl, - { + pub const fn new() -> IEventProperty_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, propertyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventProperty_Impl::Name(this) { Ok(ok__) => { @@ -640,17 +484,11 @@ impl IEventProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventProperty_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventProperty_Impl::SetName(this, core::mem::transmute(&propertyname)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventProperty_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventProperty_Impl::Value(this) { Ok(ok__) => { @@ -660,10 +498,7 @@ impl IEventProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, propertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventProperty_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, propertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventProperty_Impl::SetValue(this, core::mem::transmute_copy(&propertyvalue)).into() } @@ -697,14 +532,8 @@ pub trait IEventPublisher_Impl: Sized + super::IDispatch_Impl { } impl windows_core::RuntimeName for IEventPublisher {} impl IEventPublisher_Vtbl { - pub const fn new() -> IEventPublisher_Vtbl - where - Identity: IEventPublisher_Impl, - { - unsafe extern "system" fn PublisherID(this: *mut core::ffi::c_void, pbstrpublisherid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + pub const fn new() -> IEventPublisher_Vtbl { + unsafe extern "system" fn PublisherID(this: *mut core::ffi::c_void, pbstrpublisherid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventPublisher_Impl::PublisherID(this) { Ok(ok__) => { @@ -714,17 +543,11 @@ impl IEventPublisher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPublisherID(this: *mut core::ffi::c_void, bstrpublisherid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn SetPublisherID(this: *mut core::ffi::c_void, bstrpublisherid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventPublisher_Impl::SetPublisherID(this, core::mem::transmute(&bstrpublisherid)).into() } - unsafe extern "system" fn PublisherName(this: *mut core::ffi::c_void, pbstrpublishername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn PublisherName(this: *mut core::ffi::c_void, pbstrpublishername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventPublisher_Impl::PublisherName(this) { Ok(ok__) => { @@ -734,17 +557,11 @@ impl IEventPublisher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPublisherName(this: *mut core::ffi::c_void, bstrpublishername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn SetPublisherName(this: *mut core::ffi::c_void, bstrpublishername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventPublisher_Impl::SetPublisherName(this, core::mem::transmute(&bstrpublishername)).into() } - unsafe extern "system" fn PublisherType(this: *mut core::ffi::c_void, pbstrpublishertype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn PublisherType(this: *mut core::ffi::c_void, pbstrpublishertype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventPublisher_Impl::PublisherType(this) { Ok(ok__) => { @@ -754,17 +571,11 @@ impl IEventPublisher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPublisherType(this: *mut core::ffi::c_void, bstrpublishertype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn SetPublisherType(this: *mut core::ffi::c_void, bstrpublishertype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventPublisher_Impl::SetPublisherType(this, core::mem::transmute(&bstrpublishertype)).into() } - unsafe extern "system" fn OwnerSID(this: *mut core::ffi::c_void, pbstrownersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn OwnerSID(this: *mut core::ffi::c_void, pbstrownersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventPublisher_Impl::OwnerSID(this) { Ok(ok__) => { @@ -774,17 +585,11 @@ impl IEventPublisher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOwnerSID(this: *mut core::ffi::c_void, bstrownersid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn SetOwnerSID(this: *mut core::ffi::c_void, bstrownersid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventPublisher_Impl::SetOwnerSID(this, core::mem::transmute(&bstrownersid)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventPublisher_Impl::Description(this) { Ok(ok__) => { @@ -794,17 +599,11 @@ impl IEventPublisher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventPublisher_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn GetDefaultProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn GetDefaultProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventPublisher_Impl::GetDefaultProperty(this, core::mem::transmute(&bstrpropertyname)) { Ok(ok__) => { @@ -814,24 +613,15 @@ impl IEventPublisher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutDefaultProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn PutDefaultProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventPublisher_Impl::PutDefaultProperty(this, core::mem::transmute(&bstrpropertyname), core::mem::transmute_copy(&propertyvalue)).into() } - unsafe extern "system" fn RemoveDefaultProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn RemoveDefaultProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventPublisher_Impl::RemoveDefaultProperty(this, core::mem::transmute(&bstrpropertyname)).into() } - unsafe extern "system" fn GetDefaultPropertyCollection(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventPublisher_Impl, - { + unsafe extern "system" fn GetDefaultPropertyCollection(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventPublisher_Impl::GetDefaultPropertyCollection(this) { Ok(ok__) => { @@ -901,14 +691,8 @@ pub trait IEventSubscription_Impl: Sized + super::IDispatch_Impl { } impl windows_core::RuntimeName for IEventSubscription {} impl IEventSubscription_Vtbl { - pub const fn new() -> IEventSubscription_Vtbl - where - Identity: IEventSubscription_Impl, - { - unsafe extern "system" fn SubscriptionID(this: *mut core::ffi::c_void, pbstrsubscriptionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + pub const fn new() -> IEventSubscription_Vtbl { + unsafe extern "system" fn SubscriptionID(this: *mut core::ffi::c_void, pbstrsubscriptionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::SubscriptionID(this) { Ok(ok__) => { @@ -918,17 +702,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubscriptionID(this: *mut core::ffi::c_void, bstrsubscriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetSubscriptionID(this: *mut core::ffi::c_void, bstrsubscriptionid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetSubscriptionID(this, core::mem::transmute(&bstrsubscriptionid)).into() } - unsafe extern "system" fn SubscriptionName(this: *mut core::ffi::c_void, pbstrsubscriptionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SubscriptionName(this: *mut core::ffi::c_void, pbstrsubscriptionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::SubscriptionName(this) { Ok(ok__) => { @@ -938,17 +716,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubscriptionName(this: *mut core::ffi::c_void, bstrsubscriptionname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetSubscriptionName(this: *mut core::ffi::c_void, bstrsubscriptionname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetSubscriptionName(this, core::mem::transmute(&bstrsubscriptionname)).into() } - unsafe extern "system" fn PublisherID(this: *mut core::ffi::c_void, pbstrpublisherid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn PublisherID(this: *mut core::ffi::c_void, pbstrpublisherid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::PublisherID(this) { Ok(ok__) => { @@ -958,17 +730,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPublisherID(this: *mut core::ffi::c_void, bstrpublisherid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetPublisherID(this: *mut core::ffi::c_void, bstrpublisherid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetPublisherID(this, core::mem::transmute(&bstrpublisherid)).into() } - unsafe extern "system" fn EventClassID(this: *mut core::ffi::c_void, pbstreventclassid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn EventClassID(this: *mut core::ffi::c_void, pbstreventclassid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::EventClassID(this) { Ok(ok__) => { @@ -978,17 +744,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventClassID(this: *mut core::ffi::c_void, bstreventclassid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetEventClassID(this: *mut core::ffi::c_void, bstreventclassid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetEventClassID(this, core::mem::transmute(&bstreventclassid)).into() } - unsafe extern "system" fn MethodName(this: *mut core::ffi::c_void, pbstrmethodname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn MethodName(this: *mut core::ffi::c_void, pbstrmethodname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::MethodName(this) { Ok(ok__) => { @@ -998,17 +758,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMethodName(this: *mut core::ffi::c_void, bstrmethodname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetMethodName(this: *mut core::ffi::c_void, bstrmethodname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetMethodName(this, core::mem::transmute(&bstrmethodname)).into() } - unsafe extern "system" fn SubscriberCLSID(this: *mut core::ffi::c_void, pbstrsubscriberclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SubscriberCLSID(this: *mut core::ffi::c_void, pbstrsubscriberclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::SubscriberCLSID(this) { Ok(ok__) => { @@ -1018,17 +772,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubscriberCLSID(this: *mut core::ffi::c_void, bstrsubscriberclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetSubscriberCLSID(this: *mut core::ffi::c_void, bstrsubscriberclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetSubscriberCLSID(this, core::mem::transmute(&bstrsubscriberclsid)).into() } - unsafe extern "system" fn SubscriberInterface(this: *mut core::ffi::c_void, ppsubscriberinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SubscriberInterface(this: *mut core::ffi::c_void, ppsubscriberinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::SubscriberInterface(this) { Ok(ok__) => { @@ -1038,17 +786,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubscriberInterface(this: *mut core::ffi::c_void, psubscriberinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetSubscriberInterface(this: *mut core::ffi::c_void, psubscriberinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetSubscriberInterface(this, windows_core::from_raw_borrowed(&psubscriberinterface)).into() } - unsafe extern "system" fn PerUser(this: *mut core::ffi::c_void, pfperuser: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn PerUser(this: *mut core::ffi::c_void, pfperuser: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::PerUser(this) { Ok(ok__) => { @@ -1058,17 +800,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPerUser(this: *mut core::ffi::c_void, fperuser: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetPerUser(this: *mut core::ffi::c_void, fperuser: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetPerUser(this, core::mem::transmute_copy(&fperuser)).into() } - unsafe extern "system" fn OwnerSID(this: *mut core::ffi::c_void, pbstrownersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn OwnerSID(this: *mut core::ffi::c_void, pbstrownersid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::OwnerSID(this) { Ok(ok__) => { @@ -1078,17 +814,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOwnerSID(this: *mut core::ffi::c_void, bstrownersid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetOwnerSID(this: *mut core::ffi::c_void, bstrownersid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetOwnerSID(this, core::mem::transmute(&bstrownersid)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::Enabled(this) { Ok(ok__) => { @@ -1098,17 +828,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenabled: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenabled: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetEnabled(this, core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::Description(this) { Ok(ok__) => { @@ -1118,17 +842,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bstrdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetDescription(this, core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn MachineName(this: *mut core::ffi::c_void, pbstrmachinename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn MachineName(this: *mut core::ffi::c_void, pbstrmachinename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::MachineName(this) { Ok(ok__) => { @@ -1138,17 +856,11 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMachineName(this: *mut core::ffi::c_void, bstrmachinename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetMachineName(this: *mut core::ffi::c_void, bstrmachinename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetMachineName(this, core::mem::transmute(&bstrmachinename)).into() } - unsafe extern "system" fn GetPublisherProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn GetPublisherProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::GetPublisherProperty(this, core::mem::transmute(&bstrpropertyname)) { Ok(ok__) => { @@ -1158,24 +870,15 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutPublisherProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn PutPublisherProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::PutPublisherProperty(this, core::mem::transmute(&bstrpropertyname), core::mem::transmute_copy(&propertyvalue)).into() } - unsafe extern "system" fn RemovePublisherProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn RemovePublisherProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::RemovePublisherProperty(this, core::mem::transmute(&bstrpropertyname)).into() } - unsafe extern "system" fn GetPublisherPropertyCollection(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn GetPublisherPropertyCollection(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::GetPublisherPropertyCollection(this) { Ok(ok__) => { @@ -1185,10 +888,7 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubscriberProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn GetSubscriberProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::GetSubscriberProperty(this, core::mem::transmute(&bstrpropertyname)) { Ok(ok__) => { @@ -1198,24 +898,15 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutSubscriberProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn PutSubscriberProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, propertyvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::PutSubscriberProperty(this, core::mem::transmute(&bstrpropertyname), core::mem::transmute_copy(&propertyvalue)).into() } - unsafe extern "system" fn RemoveSubscriberProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn RemoveSubscriberProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::RemoveSubscriberProperty(this, core::mem::transmute(&bstrpropertyname)).into() } - unsafe extern "system" fn GetSubscriberPropertyCollection(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn GetSubscriberPropertyCollection(this: *mut core::ffi::c_void, collection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::GetSubscriberPropertyCollection(this) { Ok(ok__) => { @@ -1225,10 +916,7 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InterfaceID(this: *mut core::ffi::c_void, pbstrinterfaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn InterfaceID(this: *mut core::ffi::c_void, pbstrinterfaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::InterfaceID(this) { Ok(ok__) => { @@ -1238,10 +926,7 @@ impl IEventSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterfaceID(this: *mut core::ffi::c_void, bstrinterfaceid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSubscription_Impl, - { + unsafe extern "system" fn SetInterfaceID(this: *mut core::ffi::c_void, bstrinterfaceid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetInterfaceID(this, core::mem::transmute(&bstrinterfaceid)).into() } @@ -1297,14 +982,8 @@ pub trait IEventSystem_Impl: Sized + super::IDispatch_Impl { } impl windows_core::RuntimeName for IEventSystem {} impl IEventSystem_Vtbl { - pub const fn new() -> IEventSystem_Vtbl - where - Identity: IEventSystem_Impl, - { - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, progid: core::mem::MaybeUninit, querycriteria: core::mem::MaybeUninit, errorindex: *mut i32, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventSystem_Impl, - { + pub const fn new() -> IEventSystem_Vtbl { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, progid: core::mem::MaybeUninit, querycriteria: core::mem::MaybeUninit, errorindex: *mut i32, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSystem_Impl::Query(this, core::mem::transmute(&progid), core::mem::transmute(&querycriteria), core::mem::transmute_copy(&errorindex)) { Ok(ok__) => { @@ -1314,17 +993,11 @@ impl IEventSystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Store(this: *mut core::ffi::c_void, progid: core::mem::MaybeUninit, pinterface: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventSystem_Impl, - { + unsafe extern "system" fn Store(this: *mut core::ffi::c_void, progid: core::mem::MaybeUninit, pinterface: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSystem_Impl::Store(this, core::mem::transmute(&progid), windows_core::from_raw_borrowed(&pinterface)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, progid: core::mem::MaybeUninit, querycriteria: core::mem::MaybeUninit, errorindex: *mut i32) -> windows_core::HRESULT - where - Identity: IEventSystem_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, progid: core::mem::MaybeUninit, querycriteria: core::mem::MaybeUninit, errorindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSystem_Impl::Remove(this, core::mem::transmute(&progid), core::mem::transmute(&querycriteria)) { Ok(ok__) => { @@ -1334,10 +1007,7 @@ impl IEventSystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventObjectChangeEventClassID(this: *mut core::ffi::c_void, pbstreventclassid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSystem_Impl, - { + unsafe extern "system" fn EventObjectChangeEventClassID(this: *mut core::ffi::c_void, pbstreventclassid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSystem_Impl::EventObjectChangeEventClassID(this) { Ok(ok__) => { @@ -1347,10 +1017,7 @@ impl IEventSystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryS(this: *mut core::ffi::c_void, progid: core::mem::MaybeUninit, querycriteria: core::mem::MaybeUninit, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventSystem_Impl, - { + unsafe extern "system" fn QueryS(this: *mut core::ffi::c_void, progid: core::mem::MaybeUninit, querycriteria: core::mem::MaybeUninit, ppinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSystem_Impl::QueryS(this, core::mem::transmute(&progid), core::mem::transmute(&querycriteria)) { Ok(ok__) => { @@ -1360,10 +1027,7 @@ impl IEventSystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveS(this: *mut core::ffi::c_void, progid: core::mem::MaybeUninit, querycriteria: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventSystem_Impl, - { + unsafe extern "system" fn RemoveS(this: *mut core::ffi::c_void, progid: core::mem::MaybeUninit, querycriteria: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSystem_Impl::RemoveS(this, core::mem::transmute(&progid), core::mem::transmute(&querycriteria)).into() } @@ -1386,14 +1050,8 @@ pub trait IFiringControl_Impl: Sized + super::IDispatch_Impl { } impl windows_core::RuntimeName for IFiringControl {} impl IFiringControl_Vtbl { - pub const fn new() -> IFiringControl_Vtbl - where - Identity: IFiringControl_Impl, - { - unsafe extern "system" fn FireSubscription(this: *mut core::ffi::c_void, subscription: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFiringControl_Impl, - { + pub const fn new() -> IFiringControl_Vtbl { + unsafe extern "system" fn FireSubscription(this: *mut core::ffi::c_void, subscription: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFiringControl_Impl::FireSubscription(this, windows_core::from_raw_borrowed(&subscription)).into() } @@ -1403,7 +1061,7 @@ impl IFiringControl_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMultiInterfaceEventControl_Impl: Sized { +pub trait IMultiInterfaceEventControl_Impl: Sized + windows_core::IUnknownImpl { fn SetMultiInterfacePublisherFilter(&self, classfilter: Option<&IMultiInterfacePublisherFilter>) -> 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; @@ -1414,21 +1072,12 @@ pub trait IMultiInterfaceEventControl_Impl: Sized { } impl windows_core::RuntimeName for IMultiInterfaceEventControl {} impl IMultiInterfaceEventControl_Vtbl { - pub const fn new() -> IMultiInterfaceEventControl_Vtbl - where - Identity: IMultiInterfaceEventControl_Impl, - { - unsafe extern "system" fn SetMultiInterfacePublisherFilter(this: *mut core::ffi::c_void, classfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiInterfaceEventControl_Impl, - { + pub const fn new() -> IMultiInterfaceEventControl_Vtbl { + unsafe extern "system" fn SetMultiInterfacePublisherFilter(this: *mut core::ffi::c_void, classfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiInterfaceEventControl_Impl::SetMultiInterfacePublisherFilter(this, windows_core::from_raw_borrowed(&classfilter)).into() } - unsafe extern "system" fn GetSubscriptions(this: *mut core::ffi::c_void, eventiid: *const windows_core::GUID, bstrmethodname: core::mem::MaybeUninit, optionalcriteria: core::mem::MaybeUninit, optionalerrorindex: *const i32, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiInterfaceEventControl_Impl, - { + unsafe extern "system" fn GetSubscriptions(this: *mut core::ffi::c_void, eventiid: *const windows_core::GUID, bstrmethodname: core::mem::MaybeUninit, optionalcriteria: core::mem::MaybeUninit, optionalerrorindex: *const i32, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiInterfaceEventControl_Impl::GetSubscriptions(this, core::mem::transmute_copy(&eventiid), core::mem::transmute(&bstrmethodname), core::mem::transmute(&optionalcriteria), core::mem::transmute_copy(&optionalerrorindex)) { Ok(ok__) => { @@ -1438,10 +1087,7 @@ impl IMultiInterfaceEventControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultQuery(this: *mut core::ffi::c_void, eventiid: *const windows_core::GUID, bstrmethodname: core::mem::MaybeUninit, bstrcriteria: core::mem::MaybeUninit, errorindex: *mut i32) -> windows_core::HRESULT - where - Identity: IMultiInterfaceEventControl_Impl, - { + unsafe extern "system" fn SetDefaultQuery(this: *mut core::ffi::c_void, eventiid: *const windows_core::GUID, bstrmethodname: core::mem::MaybeUninit, bstrcriteria: core::mem::MaybeUninit, errorindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiInterfaceEventControl_Impl::SetDefaultQuery(this, core::mem::transmute_copy(&eventiid), core::mem::transmute(&bstrmethodname), core::mem::transmute(&bstrcriteria)) { Ok(ok__) => { @@ -1451,10 +1097,7 @@ impl IMultiInterfaceEventControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMultiInterfaceEventControl_Impl, - { + unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiInterfaceEventControl_Impl::AllowInprocActivation(this) { Ok(ok__) => { @@ -1464,17 +1107,11 @@ impl IMultiInterfaceEventControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMultiInterfaceEventControl_Impl, - { + unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiInterfaceEventControl_Impl::SetAllowInprocActivation(this, core::mem::transmute_copy(&fallowinprocactivation)).into() } - unsafe extern "system" fn FireInParallel(this: *mut core::ffi::c_void, pffireinparallel: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMultiInterfaceEventControl_Impl, - { + unsafe extern "system" fn FireInParallel(this: *mut core::ffi::c_void, pffireinparallel: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiInterfaceEventControl_Impl::FireInParallel(this) { Ok(ok__) => { @@ -1484,10 +1121,7 @@ impl IMultiInterfaceEventControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFireInParallel(this: *mut core::ffi::c_void, ffireinparallel: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMultiInterfaceEventControl_Impl, - { + unsafe extern "system" fn SetFireInParallel(this: *mut core::ffi::c_void, ffireinparallel: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiInterfaceEventControl_Impl::SetFireInParallel(this, core::mem::transmute_copy(&ffireinparallel)).into() } @@ -1506,27 +1140,18 @@ impl IMultiInterfaceEventControl_Vtbl { iid == &::IID } } -pub trait IMultiInterfacePublisherFilter_Impl: Sized { +pub trait IMultiInterfacePublisherFilter_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, peic: Option<&IMultiInterfaceEventControl>) -> windows_core::Result<()>; fn PrepareToFire(&self, iid: *const windows_core::GUID, methodname: &windows_core::BSTR, firingcontrol: Option<&IFiringControl>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMultiInterfacePublisherFilter {} impl IMultiInterfacePublisherFilter_Vtbl { - pub const fn new() -> IMultiInterfacePublisherFilter_Vtbl - where - Identity: IMultiInterfacePublisherFilter_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, peic: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiInterfacePublisherFilter_Impl, - { + pub const fn new() -> IMultiInterfacePublisherFilter_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, peic: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiInterfacePublisherFilter_Impl::Initialize(this, windows_core::from_raw_borrowed(&peic)).into() } - unsafe extern "system" fn PrepareToFire(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, methodname: core::mem::MaybeUninit, firingcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultiInterfacePublisherFilter_Impl, - { + unsafe extern "system" fn PrepareToFire(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, methodname: core::mem::MaybeUninit, firingcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiInterfacePublisherFilter_Impl::PrepareToFire(this, core::mem::transmute_copy(&iid), core::mem::transmute(&methodname), windows_core::from_raw_borrowed(&firingcontrol)).into() } @@ -1540,27 +1165,18 @@ impl IMultiInterfacePublisherFilter_Vtbl { iid == &::IID } } -pub trait IPublisherFilter_Impl: Sized { +pub trait IPublisherFilter_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, methodname: &windows_core::BSTR, dispuserdefined: Option<&super::IDispatch>) -> windows_core::Result<()>; fn PrepareToFire(&self, methodname: &windows_core::BSTR, firingcontrol: Option<&IFiringControl>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPublisherFilter {} impl IPublisherFilter_Vtbl { - pub const fn new() -> IPublisherFilter_Vtbl - where - Identity: IPublisherFilter_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, methodname: core::mem::MaybeUninit, dispuserdefined: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPublisherFilter_Impl, - { + pub const fn new() -> IPublisherFilter_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, methodname: core::mem::MaybeUninit, dispuserdefined: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPublisherFilter_Impl::Initialize(this, core::mem::transmute(&methodname), windows_core::from_raw_borrowed(&dispuserdefined)).into() } - unsafe extern "system" fn PrepareToFire(this: *mut core::ffi::c_void, methodname: core::mem::MaybeUninit, firingcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPublisherFilter_Impl, - { + unsafe extern "system" fn PrepareToFire(this: *mut core::ffi::c_void, methodname: core::mem::MaybeUninit, firingcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPublisherFilter_Impl::PrepareToFire(this, core::mem::transmute(&methodname), windows_core::from_raw_borrowed(&firingcontrol)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/impl.rs index afd21fcb9f..53f5bf938b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/impl.rs @@ -1,4 +1,4 @@ -pub trait IMarshal_Impl: Sized { +pub trait IMarshal_Impl: Sized + windows_core::IUnknownImpl { fn GetUnmarshalClass(&self, riid: *const windows_core::GUID, pv: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, mshlflags: u32) -> windows_core::Result; fn GetMarshalSizeMax(&self, riid: *const windows_core::GUID, pv: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, mshlflags: u32) -> windows_core::Result; fn MarshalInterface(&self, pstm: Option<&super::IStream>, riid: *const windows_core::GUID, pv: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, mshlflags: u32) -> windows_core::Result<()>; @@ -8,14 +8,8 @@ pub trait IMarshal_Impl: Sized { } impl windows_core::RuntimeName for IMarshal {} impl IMarshal_Vtbl { - pub const fn new() -> IMarshal_Vtbl - where - Identity: IMarshal_Impl, - { - unsafe extern "system" fn GetUnmarshalClass(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pv: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, mshlflags: u32, pcid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMarshal_Impl, - { + pub const fn new() -> IMarshal_Vtbl { + unsafe extern "system" fn GetUnmarshalClass(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pv: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, mshlflags: u32, pcid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMarshal_Impl::GetUnmarshalClass(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pv), core::mem::transmute_copy(&dwdestcontext), core::mem::transmute_copy(&pvdestcontext), core::mem::transmute_copy(&mshlflags)) { Ok(ok__) => { @@ -25,10 +19,7 @@ impl IMarshal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMarshalSizeMax(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pv: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, mshlflags: u32, psize: *mut u32) -> windows_core::HRESULT - where - Identity: IMarshal_Impl, - { + unsafe extern "system" fn GetMarshalSizeMax(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pv: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, mshlflags: u32, psize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMarshal_Impl::GetMarshalSizeMax(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pv), core::mem::transmute_copy(&dwdestcontext), core::mem::transmute_copy(&pvdestcontext), core::mem::transmute_copy(&mshlflags)) { Ok(ok__) => { @@ -38,31 +29,19 @@ impl IMarshal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MarshalInterface(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, riid: *const windows_core::GUID, pv: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, mshlflags: u32) -> windows_core::HRESULT - where - Identity: IMarshal_Impl, - { + unsafe extern "system" fn MarshalInterface(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, riid: *const windows_core::GUID, pv: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, mshlflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMarshal_Impl::MarshalInterface(this, windows_core::from_raw_borrowed(&pstm), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pv), core::mem::transmute_copy(&dwdestcontext), core::mem::transmute_copy(&pvdestcontext), core::mem::transmute_copy(&mshlflags)).into() } - unsafe extern "system" fn UnmarshalInterface(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMarshal_Impl, - { + unsafe extern "system" fn UnmarshalInterface(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMarshal_Impl::UnmarshalInterface(this, windows_core::from_raw_borrowed(&pstm), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn ReleaseMarshalData(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMarshal_Impl, - { + unsafe extern "system" fn ReleaseMarshalData(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMarshal_Impl::ReleaseMarshalData(this, windows_core::from_raw_borrowed(&pstm)).into() } - unsafe extern "system" fn DisconnectObject(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IMarshal_Impl, - { + unsafe extern "system" fn DisconnectObject(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMarshal_Impl::DisconnectObject(this, core::mem::transmute_copy(&dwreserved)).into() } @@ -83,10 +62,7 @@ impl IMarshal_Vtbl { pub trait IMarshal2_Impl: Sized + IMarshal_Impl {} impl windows_core::RuntimeName for IMarshal2 {} impl IMarshal2_Vtbl { - pub const fn new() -> IMarshal2_Vtbl - where - Identity: IMarshal2_Impl, - { + pub const fn new() -> IMarshal2_Vtbl { Self { base__: IMarshal_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -98,14 +74,8 @@ pub trait IMarshalingStream_Impl: Sized + super::IStream_Impl { } impl windows_core::RuntimeName for IMarshalingStream {} impl IMarshalingStream_Vtbl { - pub const fn new() -> IMarshalingStream_Vtbl - where - Identity: IMarshalingStream_Impl, - { - unsafe extern "system" fn GetMarshalingContextAttribute(this: *mut core::ffi::c_void, attribute: super::CO_MARSHALING_CONTEXT_ATTRIBUTES, pattributevalue: *mut usize) -> windows_core::HRESULT - where - Identity: IMarshalingStream_Impl, - { + pub const fn new() -> IMarshalingStream_Vtbl { + unsafe extern "system" fn GetMarshalingContextAttribute(this: *mut core::ffi::c_void, attribute: super::CO_MARSHALING_CONTEXT_ATTRIBUTES, pattributevalue: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMarshalingStream_Impl::GetMarshalingContextAttribute(this, core::mem::transmute_copy(&attribute)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs index e533d905c9..1ffe6e4751 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs @@ -1,32 +1,20 @@ -pub trait IDirectWriterLock_Impl: Sized { +pub trait IDirectWriterLock_Impl: Sized + windows_core::IUnknownImpl { fn WaitForWriteAccess(&self, dwtimeout: u32) -> windows_core::Result<()>; fn ReleaseWriteAccess(&self) -> windows_core::Result<()>; fn HaveWriteAccess(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirectWriterLock {} impl IDirectWriterLock_Vtbl { - pub const fn new() -> IDirectWriterLock_Vtbl - where - Identity: IDirectWriterLock_Impl, - { - unsafe extern "system" fn WaitForWriteAccess(this: *mut core::ffi::c_void, dwtimeout: u32) -> windows_core::HRESULT - where - Identity: IDirectWriterLock_Impl, - { + pub const fn new() -> IDirectWriterLock_Vtbl { + unsafe extern "system" fn WaitForWriteAccess(this: *mut core::ffi::c_void, dwtimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectWriterLock_Impl::WaitForWriteAccess(this, core::mem::transmute_copy(&dwtimeout)).into() } - unsafe extern "system" fn ReleaseWriteAccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectWriterLock_Impl, - { + unsafe extern "system" fn ReleaseWriteAccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectWriterLock_Impl::ReleaseWriteAccess(this).into() } - unsafe extern "system" fn HaveWriteAccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirectWriterLock_Impl, - { + unsafe extern "system" fn HaveWriteAccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectWriterLock_Impl::HaveWriteAccess(this).into() } @@ -41,7 +29,7 @@ impl IDirectWriterLock_Vtbl { iid == &::IID } } -pub trait IEnumSTATPROPSETSTG_Impl: Sized { +pub trait IEnumSTATPROPSETSTG_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut STATPROPSETSTG, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::HRESULT; fn Reset(&self) -> windows_core::Result<()>; @@ -49,35 +37,20 @@ pub trait IEnumSTATPROPSETSTG_Impl: Sized { } impl windows_core::RuntimeName for IEnumSTATPROPSETSTG {} impl IEnumSTATPROPSETSTG_Vtbl { - pub const fn new() -> IEnumSTATPROPSETSTG_Vtbl - where - Identity: IEnumSTATPROPSETSTG_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut STATPROPSETSTG, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSTATPROPSETSTG_Impl, - { + pub const fn new() -> IEnumSTATPROPSETSTG_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut STATPROPSETSTG, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATPROPSETSTG_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSTATPROPSETSTG_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATPROPSETSTG_Impl::Skip(this, core::mem::transmute_copy(&celt)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSTATPROPSETSTG_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATPROPSETSTG_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSTATPROPSETSTG_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSTATPROPSETSTG_Impl::Clone(this) { Ok(ok__) => { @@ -100,7 +73,7 @@ impl IEnumSTATPROPSETSTG_Vtbl { } } #[cfg(feature = "Win32_System_Variant")] -pub trait IEnumSTATPROPSTG_Impl: Sized { +pub trait IEnumSTATPROPSTG_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut STATPROPSTG, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::HRESULT; fn Reset(&self) -> windows_core::Result<()>; @@ -110,35 +83,20 @@ pub trait IEnumSTATPROPSTG_Impl: Sized { impl windows_core::RuntimeName for IEnumSTATPROPSTG {} #[cfg(feature = "Win32_System_Variant")] impl IEnumSTATPROPSTG_Vtbl { - pub const fn new() -> IEnumSTATPROPSTG_Vtbl - where - Identity: IEnumSTATPROPSTG_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut STATPROPSTG, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSTATPROPSTG_Impl, - { + pub const fn new() -> IEnumSTATPROPSTG_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut STATPROPSTG, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATPROPSTG_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSTATPROPSTG_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATPROPSTG_Impl::Skip(this, core::mem::transmute_copy(&celt)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSTATPROPSTG_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATPROPSTG_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSTATPROPSTG_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSTATPROPSTG_Impl::Clone(this) { Ok(ok__) => { @@ -160,7 +118,7 @@ impl IEnumSTATPROPSTG_Vtbl { iid == &::IID } } -pub trait IEnumSTATSTG_Impl: Sized { +pub trait IEnumSTATSTG_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut super::STATSTG, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -168,35 +126,20 @@ pub trait IEnumSTATSTG_Impl: Sized { } impl windows_core::RuntimeName for IEnumSTATSTG {} impl IEnumSTATSTG_Vtbl { - pub const fn new() -> IEnumSTATSTG_Vtbl - where - Identity: IEnumSTATSTG_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut super::STATSTG, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSTATSTG_Impl, - { + pub const fn new() -> IEnumSTATSTG_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut super::STATSTG, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATSTG_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSTATSTG_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATSTG_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSTATSTG_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATSTG_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSTATSTG_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSTATSTG_Impl::Clone(this) { Ok(ok__) => { @@ -218,7 +161,7 @@ impl IEnumSTATSTG_Vtbl { iid == &::IID } } -pub trait IFillLockBytes_Impl: Sized { +pub trait IFillLockBytes_Impl: Sized + windows_core::IUnknownImpl { fn FillAppend(&self, pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result; fn FillAt(&self, uloffset: u64, pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result; fn SetFillSize(&self, ulsize: u64) -> windows_core::Result<()>; @@ -226,14 +169,8 @@ pub trait IFillLockBytes_Impl: Sized { } impl windows_core::RuntimeName for IFillLockBytes {} impl IFillLockBytes_Vtbl { - pub const fn new() -> IFillLockBytes_Vtbl - where - Identity: IFillLockBytes_Impl, - { - unsafe extern "system" fn FillAppend(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT - where - Identity: IFillLockBytes_Impl, - { + pub const fn new() -> IFillLockBytes_Vtbl { + unsafe extern "system" fn FillAppend(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFillLockBytes_Impl::FillAppend(this, core::mem::transmute_copy(&pv), core::mem::transmute_copy(&cb)) { Ok(ok__) => { @@ -243,10 +180,7 @@ impl IFillLockBytes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FillAt(this: *mut core::ffi::c_void, uloffset: u64, pv: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT - where - Identity: IFillLockBytes_Impl, - { + unsafe extern "system" fn FillAt(this: *mut core::ffi::c_void, uloffset: u64, pv: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFillLockBytes_Impl::FillAt(this, core::mem::transmute_copy(&uloffset), core::mem::transmute_copy(&pv), core::mem::transmute_copy(&cb)) { Ok(ok__) => { @@ -256,17 +190,11 @@ impl IFillLockBytes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFillSize(this: *mut core::ffi::c_void, ulsize: u64) -> windows_core::HRESULT - where - Identity: IFillLockBytes_Impl, - { + unsafe extern "system" fn SetFillSize(this: *mut core::ffi::c_void, ulsize: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFillLockBytes_Impl::SetFillSize(this, core::mem::transmute_copy(&ulsize)).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, bcanceled: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFillLockBytes_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, bcanceled: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFillLockBytes_Impl::Terminate(this, core::mem::transmute_copy(&bcanceled)).into() } @@ -282,7 +210,7 @@ impl IFillLockBytes_Vtbl { iid == &::IID } } -pub trait ILayoutStorage_Impl: Sized { +pub trait ILayoutStorage_Impl: Sized + windows_core::IUnknownImpl { fn LayoutScript(&self, pstoragelayout: *const super::StorageLayout, nentries: u32, glfinterleavedflag: u32) -> windows_core::Result<()>; fn BeginMonitor(&self) -> windows_core::Result<()>; fn EndMonitor(&self) -> windows_core::Result<()>; @@ -291,42 +219,24 @@ pub trait ILayoutStorage_Impl: Sized { } impl windows_core::RuntimeName for ILayoutStorage {} impl ILayoutStorage_Vtbl { - pub const fn new() -> ILayoutStorage_Vtbl - where - Identity: ILayoutStorage_Impl, - { - unsafe extern "system" fn LayoutScript(this: *mut core::ffi::c_void, pstoragelayout: *const super::StorageLayout, nentries: u32, glfinterleavedflag: u32) -> windows_core::HRESULT - where - Identity: ILayoutStorage_Impl, - { + pub const fn new() -> ILayoutStorage_Vtbl { + unsafe extern "system" fn LayoutScript(this: *mut core::ffi::c_void, pstoragelayout: *const super::StorageLayout, nentries: u32, glfinterleavedflag: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILayoutStorage_Impl::LayoutScript(this, core::mem::transmute_copy(&pstoragelayout), core::mem::transmute_copy(&nentries), core::mem::transmute_copy(&glfinterleavedflag)).into() } - unsafe extern "system" fn BeginMonitor(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILayoutStorage_Impl, - { + unsafe extern "system" fn BeginMonitor(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILayoutStorage_Impl::BeginMonitor(this).into() } - unsafe extern "system" fn EndMonitor(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILayoutStorage_Impl, - { + unsafe extern "system" fn EndMonitor(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILayoutStorage_Impl::EndMonitor(this).into() } - unsafe extern "system" fn ReLayoutDocfile(this: *mut core::ffi::c_void, pwcsnewdfname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ILayoutStorage_Impl, - { + unsafe extern "system" fn ReLayoutDocfile(this: *mut core::ffi::c_void, pwcsnewdfname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILayoutStorage_Impl::ReLayoutDocfile(this, core::mem::transmute(&pwcsnewdfname)).into() } - unsafe extern "system" fn ReLayoutDocfileOnILockBytes(this: *mut core::ffi::c_void, pilockbytes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILayoutStorage_Impl, - { + unsafe extern "system" fn ReLayoutDocfileOnILockBytes(this: *mut core::ffi::c_void, pilockbytes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILayoutStorage_Impl::ReLayoutDocfileOnILockBytes(this, windows_core::from_raw_borrowed(&pilockbytes)).into() } @@ -343,7 +253,7 @@ impl ILayoutStorage_Vtbl { iid == &::IID } } -pub trait ILockBytes_Impl: Sized { +pub trait ILockBytes_Impl: Sized + windows_core::IUnknownImpl { fn ReadAt(&self, uloffset: u64, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32) -> windows_core::Result<()>; fn WriteAt(&self, uloffset: u64, pv: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::Result<()>; fn Flush(&self) -> windows_core::Result<()>; @@ -354,56 +264,32 @@ pub trait ILockBytes_Impl: Sized { } impl windows_core::RuntimeName for ILockBytes {} impl ILockBytes_Vtbl { - pub const fn new() -> ILockBytes_Vtbl - where - Identity: ILockBytes_Impl, - { - unsafe extern "system" fn ReadAt(this: *mut core::ffi::c_void, uloffset: u64, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT - where - Identity: ILockBytes_Impl, - { + pub const fn new() -> ILockBytes_Vtbl { + unsafe extern "system" fn ReadAt(this: *mut core::ffi::c_void, uloffset: u64, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILockBytes_Impl::ReadAt(this, core::mem::transmute_copy(&uloffset), core::mem::transmute_copy(&pv), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbread)).into() } - unsafe extern "system" fn WriteAt(this: *mut core::ffi::c_void, uloffset: u64, pv: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT - where - Identity: ILockBytes_Impl, - { + unsafe extern "system" fn WriteAt(this: *mut core::ffi::c_void, uloffset: u64, pv: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILockBytes_Impl::WriteAt(this, core::mem::transmute_copy(&uloffset), core::mem::transmute_copy(&pv), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbwritten)).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILockBytes_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILockBytes_Impl::Flush(this).into() } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, cb: u64) -> windows_core::HRESULT - where - Identity: ILockBytes_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, cb: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILockBytes_Impl::SetSize(this, core::mem::transmute_copy(&cb)).into() } - unsafe extern "system" fn LockRegion(this: *mut core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::HRESULT - where - Identity: ILockBytes_Impl, - { + unsafe extern "system" fn LockRegion(this: *mut core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILockBytes_Impl::LockRegion(this, core::mem::transmute_copy(&liboffset), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&dwlocktype)).into() } - unsafe extern "system" fn UnlockRegion(this: *mut core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::HRESULT - where - Identity: ILockBytes_Impl, - { + unsafe extern "system" fn UnlockRegion(this: *mut core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILockBytes_Impl::UnlockRegion(this, core::mem::transmute_copy(&liboffset), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&dwlocktype)).into() } - unsafe extern "system" fn Stat(this: *mut core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> windows_core::HRESULT - where - Identity: ILockBytes_Impl, - { + unsafe extern "system" fn Stat(this: *mut core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILockBytes_Impl::Stat(this, core::mem::transmute_copy(&pstatstg), core::mem::transmute_copy(&grfstatflag)).into() } @@ -463,49 +349,28 @@ pub trait IPersistStorage_Impl: Sized + super::IPersist_Impl { } impl windows_core::RuntimeName for IPersistStorage {} impl IPersistStorage_Vtbl { - pub const fn new() -> IPersistStorage_Vtbl - where - Identity: IPersistStorage_Impl, - { - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistStorage_Impl, - { + pub const fn new() -> IPersistStorage_Vtbl { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStorage_Impl::IsDirty(this) } - unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistStorage_Impl, - { + unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStorage_Impl::InitNew(this, windows_core::from_raw_borrowed(&pstg)).into() } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistStorage_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStorage_Impl::Load(this, windows_core::from_raw_borrowed(&pstg)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstgsave: *mut core::ffi::c_void, fsameasload: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPersistStorage_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstgsave: *mut core::ffi::c_void, fsameasload: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStorage_Impl::Save(this, windows_core::from_raw_borrowed(&pstgsave), core::mem::transmute_copy(&fsameasload)).into() } - unsafe extern "system" fn SaveCompleted(this: *mut core::ffi::c_void, pstgnew: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistStorage_Impl, - { + unsafe extern "system" fn SaveCompleted(this: *mut core::ffi::c_void, pstgnew: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStorage_Impl::SaveCompleted(this, windows_core::from_raw_borrowed(&pstgnew)).into() } - unsafe extern "system" fn HandsOffStorage(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistStorage_Impl, - { + unsafe extern "system" fn HandsOffStorage(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStorage_Impl::HandsOffStorage(this).into() } @@ -523,27 +388,18 @@ impl IPersistStorage_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPropertyBag_Impl: Sized { +pub trait IPropertyBag_Impl: Sized + windows_core::IUnknownImpl { fn Read(&self, pszpropname: &windows_core::PCWSTR, pvar: *mut windows_core::VARIANT, perrorlog: Option<&super::IErrorLog>) -> windows_core::Result<()>; fn Write(&self, pszpropname: &windows_core::PCWSTR, pvar: *const windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPropertyBag {} impl IPropertyBag_Vtbl { - pub const fn new() -> IPropertyBag_Vtbl - where - Identity: IPropertyBag_Impl, - { - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pszpropname: windows_core::PCWSTR, pvar: *mut core::mem::MaybeUninit, perrorlog: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyBag_Impl, - { + pub const fn new() -> IPropertyBag_Vtbl { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pszpropname: windows_core::PCWSTR, pvar: *mut core::mem::MaybeUninit, perrorlog: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyBag_Impl::Read(this, core::mem::transmute(&pszpropname), core::mem::transmute_copy(&pvar), windows_core::from_raw_borrowed(&perrorlog)).into() } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pszpropname: windows_core::PCWSTR, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyBag_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pszpropname: windows_core::PCWSTR, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyBag_Impl::Write(this, core::mem::transmute(&pszpropname), core::mem::transmute_copy(&pvar)).into() } @@ -554,7 +410,7 @@ impl IPropertyBag_Vtbl { } } #[cfg(feature = "Win32_System_Variant")] -pub trait IPropertyBag2_Impl: Sized { +pub trait IPropertyBag2_Impl: Sized + windows_core::IUnknownImpl { fn Read(&self, cproperties: u32, ppropbag: *const PROPBAG2, perrlog: Option<&super::IErrorLog>, pvarvalue: *mut windows_core::VARIANT, phrerror: *mut windows_core::HRESULT) -> windows_core::Result<()>; fn Write(&self, cproperties: u32, ppropbag: *const PROPBAG2, pvarvalue: *const windows_core::VARIANT) -> windows_core::Result<()>; fn CountProperties(&self) -> windows_core::Result; @@ -565,28 +421,16 @@ pub trait IPropertyBag2_Impl: Sized { impl windows_core::RuntimeName for IPropertyBag2 {} #[cfg(feature = "Win32_System_Variant")] impl IPropertyBag2_Vtbl { - pub const fn new() -> IPropertyBag2_Vtbl - where - Identity: IPropertyBag2_Impl, - { - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, cproperties: u32, ppropbag: *const PROPBAG2, perrlog: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit, phrerror: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPropertyBag2_Impl, - { + pub const fn new() -> IPropertyBag2_Vtbl { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, cproperties: u32, ppropbag: *const PROPBAG2, perrlog: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit, phrerror: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyBag2_Impl::Read(this, core::mem::transmute_copy(&cproperties), core::mem::transmute_copy(&ppropbag), windows_core::from_raw_borrowed(&perrlog), core::mem::transmute_copy(&pvarvalue), core::mem::transmute_copy(&phrerror)).into() } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, cproperties: u32, ppropbag: *const PROPBAG2, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyBag2_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, cproperties: u32, ppropbag: *const PROPBAG2, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyBag2_Impl::Write(this, core::mem::transmute_copy(&cproperties), core::mem::transmute_copy(&ppropbag), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn CountProperties(this: *mut core::ffi::c_void, pcproperties: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyBag2_Impl, - { + unsafe extern "system" fn CountProperties(this: *mut core::ffi::c_void, pcproperties: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyBag2_Impl::CountProperties(this) { Ok(ok__) => { @@ -596,17 +440,11 @@ impl IPropertyBag2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, iproperty: u32, cproperties: u32, ppropbag: *mut PROPBAG2, pcproperties: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyBag2_Impl, - { + unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, iproperty: u32, cproperties: u32, ppropbag: *mut PROPBAG2, pcproperties: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyBag2_Impl::GetPropertyInfo(this, core::mem::transmute_copy(&iproperty), core::mem::transmute_copy(&cproperties), core::mem::transmute_copy(&ppropbag), core::mem::transmute_copy(&pcproperties)).into() } - unsafe extern "system" fn LoadObject(this: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR, dwhint: u32, punkobject: *mut core::ffi::c_void, perrlog: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyBag2_Impl, - { + unsafe extern "system" fn LoadObject(this: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR, dwhint: u32, punkobject: *mut core::ffi::c_void, perrlog: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyBag2_Impl::LoadObject(this, core::mem::transmute(&pstrname), core::mem::transmute_copy(&dwhint), windows_core::from_raw_borrowed(&punkobject), windows_core::from_raw_borrowed(&perrlog)).into() } @@ -623,7 +461,7 @@ impl IPropertyBag2_Vtbl { iid == &::IID } } -pub trait IPropertySetStorage_Impl: Sized { +pub trait IPropertySetStorage_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, rfmtid: *const windows_core::GUID, pclsid: *const windows_core::GUID, grfflags: u32, grfmode: u32) -> windows_core::Result; fn Open(&self, rfmtid: *const windows_core::GUID, grfmode: u32) -> windows_core::Result; fn Delete(&self, rfmtid: *const windows_core::GUID) -> windows_core::Result<()>; @@ -631,14 +469,8 @@ pub trait IPropertySetStorage_Impl: Sized { } impl windows_core::RuntimeName for IPropertySetStorage {} impl IPropertySetStorage_Vtbl { - pub const fn new() -> IPropertySetStorage_Vtbl - where - Identity: IPropertySetStorage_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, rfmtid: *const windows_core::GUID, pclsid: *const windows_core::GUID, grfflags: u32, grfmode: u32, ppprstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySetStorage_Impl, - { + pub const fn new() -> IPropertySetStorage_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, rfmtid: *const windows_core::GUID, pclsid: *const windows_core::GUID, grfflags: u32, grfmode: u32, ppprstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertySetStorage_Impl::Create(this, core::mem::transmute_copy(&rfmtid), core::mem::transmute_copy(&pclsid), core::mem::transmute_copy(&grfflags), core::mem::transmute_copy(&grfmode)) { Ok(ok__) => { @@ -648,10 +480,7 @@ impl IPropertySetStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, rfmtid: *const windows_core::GUID, grfmode: u32, ppprstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySetStorage_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, rfmtid: *const windows_core::GUID, grfmode: u32, ppprstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertySetStorage_Impl::Open(this, core::mem::transmute_copy(&rfmtid), core::mem::transmute_copy(&grfmode)) { Ok(ok__) => { @@ -661,17 +490,11 @@ impl IPropertySetStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, rfmtid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPropertySetStorage_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, rfmtid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySetStorage_Impl::Delete(this, core::mem::transmute_copy(&rfmtid)).into() } - unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySetStorage_Impl, - { + unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertySetStorage_Impl::Enum(this) { Ok(ok__) => { @@ -693,7 +516,7 @@ impl IPropertySetStorage_Vtbl { iid == &::IID } } -pub trait IPropertyStorage_Impl: Sized { +pub trait IPropertyStorage_Impl: Sized + windows_core::IUnknownImpl { fn ReadMultiple(&self, cpspec: u32, rgpspec: *const PROPSPEC, rgpropvar: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; fn WriteMultiple(&self, cpspec: u32, rgpspec: *const PROPSPEC, rgpropvar: *const windows_core::PROPVARIANT, propidnamefirst: u32) -> windows_core::Result<()>; fn DeleteMultiple(&self, cpspec: u32, rgpspec: *const PROPSPEC) -> windows_core::Result<()>; @@ -709,70 +532,40 @@ pub trait IPropertyStorage_Impl: Sized { } impl windows_core::RuntimeName for IPropertyStorage {} impl IPropertyStorage_Vtbl { - pub const fn new() -> IPropertyStorage_Vtbl - where - Identity: IPropertyStorage_Impl, - { - unsafe extern "system" fn ReadMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const PROPSPEC, rgpropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + pub const fn new() -> IPropertyStorage_Vtbl { + unsafe extern "system" fn ReadMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const PROPSPEC, rgpropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::ReadMultiple(this, core::mem::transmute_copy(&cpspec), core::mem::transmute_copy(&rgpspec), core::mem::transmute_copy(&rgpropvar)).into() } - unsafe extern "system" fn WriteMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const PROPSPEC, rgpropvar: *const core::mem::MaybeUninit, propidnamefirst: u32) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn WriteMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const PROPSPEC, rgpropvar: *const core::mem::MaybeUninit, propidnamefirst: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::WriteMultiple(this, core::mem::transmute_copy(&cpspec), core::mem::transmute_copy(&rgpspec), core::mem::transmute_copy(&rgpropvar), core::mem::transmute_copy(&propidnamefirst)).into() } - unsafe extern "system" fn DeleteMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const PROPSPEC) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn DeleteMultiple(this: *mut core::ffi::c_void, cpspec: u32, rgpspec: *const PROPSPEC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::DeleteMultiple(this, core::mem::transmute_copy(&cpspec), core::mem::transmute_copy(&rgpspec)).into() } - unsafe extern "system" fn ReadPropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32, rglpwstrname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn ReadPropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32, rglpwstrname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::ReadPropertyNames(this, core::mem::transmute_copy(&cpropid), core::mem::transmute_copy(&rgpropid), core::mem::transmute_copy(&rglpwstrname)).into() } - unsafe extern "system" fn WritePropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32, rglpwstrname: *const windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn WritePropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32, rglpwstrname: *const windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::WritePropertyNames(this, core::mem::transmute_copy(&cpropid), core::mem::transmute_copy(&rgpropid), core::mem::transmute_copy(&rglpwstrname)).into() } - unsafe extern "system" fn DeletePropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn DeletePropertyNames(this: *mut core::ffi::c_void, cpropid: u32, rgpropid: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::DeletePropertyNames(this, core::mem::transmute_copy(&cpropid), core::mem::transmute_copy(&rgpropid)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, grfcommitflags: u32) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, grfcommitflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::Commit(this, core::mem::transmute_copy(&grfcommitflags)).into() } - unsafe extern "system" fn Revert(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn Revert(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::Revert(this).into() } - unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyStorage_Impl::Enum(this) { Ok(ok__) => { @@ -782,24 +575,15 @@ impl IPropertyStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTimes(this: *mut core::ffi::c_void, pctime: *const super::super::super::Foundation::FILETIME, patime: *const super::super::super::Foundation::FILETIME, pmtime: *const super::super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn SetTimes(this: *mut core::ffi::c_void, pctime: *const super::super::super::Foundation::FILETIME, patime: *const super::super::super::Foundation::FILETIME, pmtime: *const super::super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::SetTimes(this, core::mem::transmute_copy(&pctime), core::mem::transmute_copy(&patime), core::mem::transmute_copy(&pmtime)).into() } - unsafe extern "system" fn SetClass(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn SetClass(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::SetClass(this, core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn Stat(this: *mut core::ffi::c_void, pstatpsstg: *mut STATPROPSETSTG) -> windows_core::HRESULT - where - Identity: IPropertyStorage_Impl, - { + unsafe extern "system" fn Stat(this: *mut core::ffi::c_void, pstatpsstg: *mut STATPROPSETSTG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStorage_Impl::Stat(this, core::mem::transmute_copy(&pstatpsstg)).into() } @@ -823,19 +607,13 @@ impl IPropertyStorage_Vtbl { iid == &::IID } } -pub trait IRootStorage_Impl: Sized { +pub trait IRootStorage_Impl: Sized + windows_core::IUnknownImpl { fn SwitchToFile(&self, pszfile: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRootStorage {} impl IRootStorage_Vtbl { - pub const fn new() -> IRootStorage_Vtbl - where - Identity: IRootStorage_Impl, - { - unsafe extern "system" fn SwitchToFile(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IRootStorage_Impl, - { + pub const fn new() -> IRootStorage_Vtbl { + unsafe extern "system" fn SwitchToFile(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRootStorage_Impl::SwitchToFile(this, core::mem::transmute(&pszfile)).into() } @@ -845,7 +623,7 @@ impl IRootStorage_Vtbl { iid == &::IID } } -pub trait IStorage_Impl: Sized { +pub trait IStorage_Impl: Sized + windows_core::IUnknownImpl { fn CreateStream(&self, pwcsname: &windows_core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32) -> windows_core::Result; fn OpenStream(&self, pwcsname: &windows_core::PCWSTR, reserved1: *const core::ffi::c_void, grfmode: super::STGM, reserved2: u32) -> windows_core::Result; fn CreateStorage(&self, pwcsname: &windows_core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32) -> windows_core::Result; @@ -864,14 +642,8 @@ pub trait IStorage_Impl: Sized { } impl windows_core::RuntimeName for IStorage {} impl IStorage_Vtbl { - pub const fn new() -> IStorage_Vtbl - where - Identity: IStorage_Impl, - { - unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32, ppstm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + pub const fn new() -> IStorage_Vtbl { + unsafe extern "system" fn CreateStream(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32, ppstm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorage_Impl::CreateStream(this, core::mem::transmute(&pwcsname), core::mem::transmute_copy(&grfmode), core::mem::transmute_copy(&reserved1), core::mem::transmute_copy(&reserved2)) { Ok(ok__) => { @@ -881,10 +653,7 @@ impl IStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenStream(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, reserved1: *const core::ffi::c_void, grfmode: super::STGM, reserved2: u32, ppstm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn OpenStream(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, reserved1: *const core::ffi::c_void, grfmode: super::STGM, reserved2: u32, ppstm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorage_Impl::OpenStream(this, core::mem::transmute(&pwcsname), core::mem::transmute_copy(&reserved1), core::mem::transmute_copy(&grfmode), core::mem::transmute_copy(&reserved2)) { Ok(ok__) => { @@ -894,10 +663,7 @@ impl IStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStorage(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32, ppstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn CreateStorage(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, grfmode: super::STGM, reserved1: u32, reserved2: u32, ppstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorage_Impl::CreateStorage(this, core::mem::transmute(&pwcsname), core::mem::transmute_copy(&grfmode), core::mem::transmute_copy(&reserved1), core::mem::transmute_copy(&reserved2)) { Ok(ok__) => { @@ -907,10 +673,7 @@ impl IStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenStorage(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, pstgpriority: *mut core::ffi::c_void, grfmode: super::STGM, snbexclude: *const *const u16, reserved: u32, ppstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn OpenStorage(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, pstgpriority: *mut core::ffi::c_void, grfmode: super::STGM, snbexclude: *const *const u16, reserved: u32, ppstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorage_Impl::OpenStorage(this, core::mem::transmute(&pwcsname), windows_core::from_raw_borrowed(&pstgpriority), core::mem::transmute_copy(&grfmode), core::mem::transmute_copy(&snbexclude), core::mem::transmute_copy(&reserved)) { Ok(ok__) => { @@ -920,38 +683,23 @@ impl IStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyTo(this: *mut core::ffi::c_void, ciidexclude: u32, rgiidexclude: *const windows_core::GUID, snbexclude: *const *const u16, pstgdest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn CopyTo(this: *mut core::ffi::c_void, ciidexclude: u32, rgiidexclude: *const windows_core::GUID, snbexclude: *const *const u16, pstgdest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorage_Impl::CopyTo(this, core::mem::transmute_copy(&ciidexclude), core::mem::transmute_copy(&rgiidexclude), core::mem::transmute_copy(&snbexclude), windows_core::from_raw_borrowed(&pstgdest)).into() } - unsafe extern "system" fn MoveElementTo(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, pstgdest: *mut core::ffi::c_void, pwcsnewname: windows_core::PCWSTR, grfflags: u32) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn MoveElementTo(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, pstgdest: *mut core::ffi::c_void, pwcsnewname: windows_core::PCWSTR, grfflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorage_Impl::MoveElementTo(this, core::mem::transmute(&pwcsname), windows_core::from_raw_borrowed(&pstgdest), core::mem::transmute(&pwcsnewname), core::mem::transmute(&grfflags)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, grfcommitflags: u32) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, grfcommitflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorage_Impl::Commit(this, core::mem::transmute_copy(&grfcommitflags)).into() } - unsafe extern "system" fn Revert(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn Revert(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorage_Impl::Revert(this).into() } - unsafe extern "system" fn EnumElements(this: *mut core::ffi::c_void, reserved1: u32, reserved2: *const core::ffi::c_void, reserved3: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn EnumElements(this: *mut core::ffi::c_void, reserved1: u32, reserved2: *const core::ffi::c_void, reserved3: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorage_Impl::EnumElements(this, core::mem::transmute_copy(&reserved1), core::mem::transmute_copy(&reserved2), core::mem::transmute_copy(&reserved3)) { Ok(ok__) => { @@ -961,45 +709,27 @@ impl IStorage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestroyElement(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn DestroyElement(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorage_Impl::DestroyElement(this, core::mem::transmute(&pwcsname)).into() } - unsafe extern "system" fn RenameElement(this: *mut core::ffi::c_void, pwcsoldname: windows_core::PCWSTR, pwcsnewname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn RenameElement(this: *mut core::ffi::c_void, pwcsoldname: windows_core::PCWSTR, pwcsnewname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorage_Impl::RenameElement(this, core::mem::transmute(&pwcsoldname), core::mem::transmute(&pwcsnewname)).into() } - unsafe extern "system" fn SetElementTimes(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, pctime: *const super::super::super::Foundation::FILETIME, patime: *const super::super::super::Foundation::FILETIME, pmtime: *const super::super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn SetElementTimes(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, pctime: *const super::super::super::Foundation::FILETIME, patime: *const super::super::super::Foundation::FILETIME, pmtime: *const super::super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorage_Impl::SetElementTimes(this, core::mem::transmute(&pwcsname), core::mem::transmute_copy(&pctime), core::mem::transmute_copy(&patime), core::mem::transmute_copy(&pmtime)).into() } - unsafe extern "system" fn SetClass(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn SetClass(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorage_Impl::SetClass(this, core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn SetStateBits(this: *mut core::ffi::c_void, grfstatebits: u32, grfmask: u32) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn SetStateBits(this: *mut core::ffi::c_void, grfstatebits: u32, grfmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorage_Impl::SetStateBits(this, core::mem::transmute_copy(&grfstatebits), core::mem::transmute_copy(&grfmask)).into() } - unsafe extern "system" fn Stat(this: *mut core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> windows_core::HRESULT - where - Identity: IStorage_Impl, - { + unsafe extern "system" fn Stat(this: *mut core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorage_Impl::Stat(this, core::mem::transmute_copy(&pstatstg), core::mem::transmute_copy(&grfstatflag)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/UI/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/UI/impl.rs index 129731ef2b..e13778ae57 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/UI/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/UI/impl.rs @@ -1,19 +1,13 @@ #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IDummyHICONIncluder_Impl: Sized { +pub trait IDummyHICONIncluder_Impl: Sized + windows_core::IUnknownImpl { fn Dummy(&self, h1: super::super::super::UI::WindowsAndMessaging::HICON, h2: super::super::super::Graphics::Gdi::HDC) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl windows_core::RuntimeName for IDummyHICONIncluder {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IDummyHICONIncluder_Vtbl { - pub const fn new() -> IDummyHICONIncluder_Vtbl - where - Identity: IDummyHICONIncluder_Impl, - { - unsafe extern "system" fn Dummy(this: *mut core::ffi::c_void, h1: super::super::super::UI::WindowsAndMessaging::HICON, h2: super::super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IDummyHICONIncluder_Impl, - { + pub const fn new() -> IDummyHICONIncluder_Vtbl { + unsafe extern "system" fn Dummy(this: *mut core::ffi::c_void, h1: super::super::super::UI::WindowsAndMessaging::HICON, h2: super::super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDummyHICONIncluder_Impl::Dummy(this, core::mem::transmute_copy(&h1), core::mem::transmute_copy(&h2)).into() } @@ -24,7 +18,7 @@ impl IDummyHICONIncluder_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IThumbnailExtractor_Impl: Sized { +pub trait IThumbnailExtractor_Impl: Sized + windows_core::IUnknownImpl { fn ExtractThumbnail(&self, pstg: Option<&super::StructuredStorage::IStorage>, ullength: u32, ulheight: u32, puloutputlength: *mut u32, puloutputheight: *mut u32, phoutputbitmap: *mut super::super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result<()>; fn OnFileUpdated(&self, pstg: Option<&super::StructuredStorage::IStorage>) -> windows_core::Result<()>; } @@ -32,21 +26,12 @@ pub trait IThumbnailExtractor_Impl: Sized { impl windows_core::RuntimeName for IThumbnailExtractor {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl IThumbnailExtractor_Vtbl { - pub const fn new() -> IThumbnailExtractor_Vtbl - where - Identity: IThumbnailExtractor_Impl, - { - unsafe extern "system" fn ExtractThumbnail(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void, ullength: u32, ulheight: u32, puloutputlength: *mut u32, puloutputheight: *mut u32, phoutputbitmap: *mut super::super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IThumbnailExtractor_Impl, - { + pub const fn new() -> IThumbnailExtractor_Vtbl { + unsafe extern "system" fn ExtractThumbnail(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void, ullength: u32, ulheight: u32, puloutputlength: *mut u32, puloutputheight: *mut u32, phoutputbitmap: *mut super::super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThumbnailExtractor_Impl::ExtractThumbnail(this, windows_core::from_raw_borrowed(&pstg), core::mem::transmute_copy(&ullength), core::mem::transmute_copy(&ulheight), core::mem::transmute_copy(&puloutputlength), core::mem::transmute_copy(&puloutputheight), core::mem::transmute_copy(&phoutputbitmap)).into() } - unsafe extern "system" fn OnFileUpdated(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IThumbnailExtractor_Impl, - { + unsafe extern "system" fn OnFileUpdated(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThumbnailExtractor_Impl::OnFileUpdated(this, windows_core::from_raw_borrowed(&pstg)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/impl.rs index b687793938..71610a7b77 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/impl.rs @@ -1,16 +1,10 @@ -pub trait IBindCallbackRedirect_Impl: Sized { +pub trait IBindCallbackRedirect_Impl: Sized + windows_core::IUnknownImpl { fn Redirect(&self, lpcurl: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IBindCallbackRedirect {} impl IBindCallbackRedirect_Vtbl { - pub const fn new() -> IBindCallbackRedirect_Vtbl - where - Identity: IBindCallbackRedirect_Impl, - { - unsafe extern "system" fn Redirect(this: *mut core::ffi::c_void, lpcurl: windows_core::PCWSTR, vbcancel: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IBindCallbackRedirect_Impl, - { + pub const fn new() -> IBindCallbackRedirect_Vtbl { + unsafe extern "system" fn Redirect(this: *mut core::ffi::c_void, lpcurl: windows_core::PCWSTR, vbcancel: *mut super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBindCallbackRedirect_Impl::Redirect(this, core::mem::transmute(&lpcurl)) { Ok(ok__) => { @@ -26,19 +20,13 @@ impl IBindCallbackRedirect_Vtbl { iid == &::IID } } -pub trait IBindHttpSecurity_Impl: Sized { +pub trait IBindHttpSecurity_Impl: Sized + windows_core::IUnknownImpl { fn GetIgnoreCertMask(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IBindHttpSecurity {} impl IBindHttpSecurity_Vtbl { - pub const fn new() -> IBindHttpSecurity_Vtbl - where - Identity: IBindHttpSecurity_Impl, - { - unsafe extern "system" fn GetIgnoreCertMask(this: *mut core::ffi::c_void, pdwignorecertmask: *mut u32) -> windows_core::HRESULT - where - Identity: IBindHttpSecurity_Impl, - { + pub const fn new() -> IBindHttpSecurity_Vtbl { + unsafe extern "system" fn GetIgnoreCertMask(this: *mut core::ffi::c_void, pdwignorecertmask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBindHttpSecurity_Impl::GetIgnoreCertMask(this) { Ok(ok__) => { @@ -54,19 +42,13 @@ impl IBindHttpSecurity_Vtbl { iid == &::IID } } -pub trait IBindProtocol_Impl: Sized { +pub trait IBindProtocol_Impl: Sized + windows_core::IUnknownImpl { fn CreateBinding(&self, szurl: &windows_core::PCWSTR, pbc: Option<&super::IBindCtx>) -> windows_core::Result; } impl windows_core::RuntimeName for IBindProtocol {} impl IBindProtocol_Vtbl { - pub const fn new() -> IBindProtocol_Vtbl - where - Identity: IBindProtocol_Impl, - { - unsafe extern "system" fn CreateBinding(this: *mut core::ffi::c_void, szurl: windows_core::PCWSTR, pbc: *mut core::ffi::c_void, ppb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindProtocol_Impl, - { + pub const fn new() -> IBindProtocol_Vtbl { + unsafe extern "system" fn CreateBinding(this: *mut core::ffi::c_void, szurl: windows_core::PCWSTR, pbc: *mut core::ffi::c_void, ppb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBindProtocol_Impl::CreateBinding(this, core::mem::transmute(&szurl), windows_core::from_raw_borrowed(&pbc)) { Ok(ok__) => { @@ -82,20 +64,14 @@ impl IBindProtocol_Vtbl { iid == &::IID } } -pub trait ICatalogFileInfo_Impl: Sized { +pub trait ICatalogFileInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetCatalogFile(&self) -> windows_core::Result; fn GetJavaTrust(&self, ppjavatrust: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICatalogFileInfo {} impl ICatalogFileInfo_Vtbl { - pub const fn new() -> ICatalogFileInfo_Vtbl - where - Identity: ICatalogFileInfo_Impl, - { - unsafe extern "system" fn GetCatalogFile(this: *mut core::ffi::c_void, ppszcatalogfile: *mut windows_core::PSTR) -> windows_core::HRESULT - where - Identity: ICatalogFileInfo_Impl, - { + pub const fn new() -> ICatalogFileInfo_Vtbl { + unsafe extern "system" fn GetCatalogFile(this: *mut core::ffi::c_void, ppszcatalogfile: *mut windows_core::PSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogFileInfo_Impl::GetCatalogFile(this) { Ok(ok__) => { @@ -105,10 +81,7 @@ impl ICatalogFileInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetJavaTrust(this: *mut core::ffi::c_void, ppjavatrust: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalogFileInfo_Impl, - { + unsafe extern "system" fn GetJavaTrust(this: *mut core::ffi::c_void, ppjavatrust: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatalogFileInfo_Impl::GetJavaTrust(this, core::mem::transmute_copy(&ppjavatrust)).into() } @@ -127,14 +100,8 @@ pub trait ICodeInstall_Impl: Sized + IWindowForBindingUI_Impl { } impl windows_core::RuntimeName for ICodeInstall {} impl ICodeInstall_Vtbl { - pub const fn new() -> ICodeInstall_Vtbl - where - Identity: ICodeInstall_Impl, - { - unsafe extern "system" fn OnCodeInstallProblem(this: *mut core::ffi::c_void, ulstatuscode: u32, szdestination: windows_core::PCWSTR, szsource: windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ICodeInstall_Impl, - { + pub const fn new() -> ICodeInstall_Vtbl { + unsafe extern "system" fn OnCodeInstallProblem(this: *mut core::ffi::c_void, ulstatuscode: u32, szdestination: windows_core::PCWSTR, szsource: windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICodeInstall_Impl::OnCodeInstallProblem(this, core::mem::transmute_copy(&ulstatuscode), core::mem::transmute(&szdestination), core::mem::transmute(&szsource), core::mem::transmute_copy(&dwreserved)).into() } @@ -144,35 +111,23 @@ impl ICodeInstall_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDataFilter_Impl: Sized { +pub trait IDataFilter_Impl: Sized + windows_core::IUnknownImpl { fn DoEncode(&self, dwflags: u32, linbuffersize: i32, pbinbuffer: *const u8, loutbuffersize: i32, pboutbuffer: *mut u8, linbytesavailable: i32, plinbytesread: *mut i32, ploutbyteswritten: *mut i32, dwreserved: u32) -> windows_core::Result<()>; fn DoDecode(&self, dwflags: u32, linbuffersize: i32, pbinbuffer: *const u8, loutbuffersize: i32, pboutbuffer: *mut u8, linbytesavailable: i32, plinbytesread: *mut i32, ploutbyteswritten: *mut i32, dwreserved: u32) -> windows_core::Result<()>; fn SetEncodingLevel(&self, dwenclevel: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDataFilter {} impl IDataFilter_Vtbl { - pub const fn new() -> IDataFilter_Vtbl - where - Identity: IDataFilter_Impl, - { - unsafe extern "system" fn DoEncode(this: *mut core::ffi::c_void, dwflags: u32, linbuffersize: i32, pbinbuffer: *const u8, loutbuffersize: i32, pboutbuffer: *mut u8, linbytesavailable: i32, plinbytesread: *mut i32, ploutbyteswritten: *mut i32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IDataFilter_Impl, - { + pub const fn new() -> IDataFilter_Vtbl { + unsafe extern "system" fn DoEncode(this: *mut core::ffi::c_void, dwflags: u32, linbuffersize: i32, pbinbuffer: *const u8, loutbuffersize: i32, pboutbuffer: *mut u8, linbytesavailable: i32, plinbytesread: *mut i32, ploutbyteswritten: *mut i32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataFilter_Impl::DoEncode(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&linbuffersize), core::mem::transmute_copy(&pbinbuffer), core::mem::transmute_copy(&loutbuffersize), core::mem::transmute_copy(&pboutbuffer), core::mem::transmute_copy(&linbytesavailable), core::mem::transmute_copy(&plinbytesread), core::mem::transmute_copy(&ploutbyteswritten), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn DoDecode(this: *mut core::ffi::c_void, dwflags: u32, linbuffersize: i32, pbinbuffer: *const u8, loutbuffersize: i32, pboutbuffer: *mut u8, linbytesavailable: i32, plinbytesread: *mut i32, ploutbyteswritten: *mut i32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IDataFilter_Impl, - { + unsafe extern "system" fn DoDecode(this: *mut core::ffi::c_void, dwflags: u32, linbuffersize: i32, pbinbuffer: *const u8, loutbuffersize: i32, pboutbuffer: *mut u8, linbytesavailable: i32, plinbytesread: *mut i32, ploutbyteswritten: *mut i32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataFilter_Impl::DoDecode(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&linbuffersize), core::mem::transmute_copy(&pbinbuffer), core::mem::transmute_copy(&loutbuffersize), core::mem::transmute_copy(&pboutbuffer), core::mem::transmute_copy(&linbytesavailable), core::mem::transmute_copy(&plinbytesread), core::mem::transmute_copy(&ploutbyteswritten), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn SetEncodingLevel(this: *mut core::ffi::c_void, dwenclevel: u32) -> windows_core::HRESULT - where - Identity: IDataFilter_Impl, - { + unsafe extern "system" fn SetEncodingLevel(this: *mut core::ffi::c_void, dwenclevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataFilter_Impl::SetEncodingLevel(this, core::mem::transmute_copy(&dwenclevel)).into() } @@ -187,20 +142,14 @@ impl IDataFilter_Vtbl { iid == &::IID } } -pub trait IEncodingFilterFactory_Impl: Sized { +pub trait IEncodingFilterFactory_Impl: Sized + windows_core::IUnknownImpl { fn FindBestFilter(&self, pwzcodein: &windows_core::PCWSTR, pwzcodeout: &windows_core::PCWSTR, info: &DATAINFO) -> windows_core::Result; fn GetDefaultFilter(&self, pwzcodein: &windows_core::PCWSTR, pwzcodeout: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IEncodingFilterFactory {} impl IEncodingFilterFactory_Vtbl { - pub const fn new() -> IEncodingFilterFactory_Vtbl - where - Identity: IEncodingFilterFactory_Impl, - { - unsafe extern "system" fn FindBestFilter(this: *mut core::ffi::c_void, pwzcodein: windows_core::PCWSTR, pwzcodeout: windows_core::PCWSTR, info: DATAINFO, ppdf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEncodingFilterFactory_Impl, - { + pub const fn new() -> IEncodingFilterFactory_Vtbl { + unsafe extern "system" fn FindBestFilter(this: *mut core::ffi::c_void, pwzcodein: windows_core::PCWSTR, pwzcodeout: windows_core::PCWSTR, info: DATAINFO, ppdf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEncodingFilterFactory_Impl::FindBestFilter(this, core::mem::transmute(&pwzcodein), core::mem::transmute(&pwzcodeout), core::mem::transmute(&info)) { Ok(ok__) => { @@ -210,10 +159,7 @@ impl IEncodingFilterFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultFilter(this: *mut core::ffi::c_void, pwzcodein: windows_core::PCWSTR, pwzcodeout: windows_core::PCWSTR, ppdf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEncodingFilterFactory_Impl, - { + unsafe extern "system" fn GetDefaultFilter(this: *mut core::ffi::c_void, pwzcodein: windows_core::PCWSTR, pwzcodeout: windows_core::PCWSTR, ppdf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEncodingFilterFactory_Impl::GetDefaultFilter(this, core::mem::transmute(&pwzcodein), core::mem::transmute(&pwzcodeout)) { Ok(ok__) => { @@ -233,19 +179,13 @@ impl IEncodingFilterFactory_Vtbl { iid == &::IID } } -pub trait IGetBindHandle_Impl: Sized { +pub trait IGetBindHandle_Impl: Sized + windows_core::IUnknownImpl { fn GetBindHandle(&self, enumrequestedhandle: BINDHANDLETYPES) -> windows_core::Result; } impl windows_core::RuntimeName for IGetBindHandle {} impl IGetBindHandle_Vtbl { - pub const fn new() -> IGetBindHandle_Vtbl - where - Identity: IGetBindHandle_Impl, - { - unsafe extern "system" fn GetBindHandle(this: *mut core::ffi::c_void, enumrequestedhandle: BINDHANDLETYPES, prethandle: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IGetBindHandle_Impl, - { + pub const fn new() -> IGetBindHandle_Vtbl { + unsafe extern "system" fn GetBindHandle(this: *mut core::ffi::c_void, enumrequestedhandle: BINDHANDLETYPES, prethandle: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetBindHandle_Impl::GetBindHandle(this, core::mem::transmute_copy(&enumrequestedhandle)) { Ok(ok__) => { @@ -261,20 +201,14 @@ impl IGetBindHandle_Vtbl { iid == &::IID } } -pub trait IHttpNegotiate_Impl: Sized { +pub trait IHttpNegotiate_Impl: Sized + windows_core::IUnknownImpl { fn BeginningTransaction(&self, szurl: &windows_core::PCWSTR, szheaders: &windows_core::PCWSTR, dwreserved: u32) -> windows_core::Result; fn OnResponse(&self, dwresponsecode: u32, szresponseheaders: &windows_core::PCWSTR, szrequestheaders: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IHttpNegotiate {} impl IHttpNegotiate_Vtbl { - pub const fn new() -> IHttpNegotiate_Vtbl - where - Identity: IHttpNegotiate_Impl, - { - unsafe extern "system" fn BeginningTransaction(this: *mut core::ffi::c_void, szurl: windows_core::PCWSTR, szheaders: windows_core::PCWSTR, dwreserved: u32, pszadditionalheaders: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHttpNegotiate_Impl, - { + pub const fn new() -> IHttpNegotiate_Vtbl { + unsafe extern "system" fn BeginningTransaction(this: *mut core::ffi::c_void, szurl: windows_core::PCWSTR, szheaders: windows_core::PCWSTR, dwreserved: u32, pszadditionalheaders: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHttpNegotiate_Impl::BeginningTransaction(this, core::mem::transmute(&szurl), core::mem::transmute(&szheaders), core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -284,10 +218,7 @@ impl IHttpNegotiate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnResponse(this: *mut core::ffi::c_void, dwresponsecode: u32, szresponseheaders: windows_core::PCWSTR, szrequestheaders: windows_core::PCWSTR, pszadditionalrequestheaders: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHttpNegotiate_Impl, - { + unsafe extern "system" fn OnResponse(this: *mut core::ffi::c_void, dwresponsecode: u32, szresponseheaders: windows_core::PCWSTR, szrequestheaders: windows_core::PCWSTR, pszadditionalrequestheaders: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHttpNegotiate_Impl::OnResponse(this, core::mem::transmute_copy(&dwresponsecode), core::mem::transmute(&szresponseheaders), core::mem::transmute(&szrequestheaders)) { Ok(ok__) => { @@ -312,14 +243,8 @@ pub trait IHttpNegotiate2_Impl: Sized + IHttpNegotiate_Impl { } impl windows_core::RuntimeName for IHttpNegotiate2 {} impl IHttpNegotiate2_Vtbl { - pub const fn new() -> IHttpNegotiate2_Vtbl - where - Identity: IHttpNegotiate2_Impl, - { - unsafe extern "system" fn GetRootSecurityId(this: *mut core::ffi::c_void, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::HRESULT - where - Identity: IHttpNegotiate2_Impl, - { + pub const fn new() -> IHttpNegotiate2_Vtbl { + unsafe extern "system" fn GetRootSecurityId(this: *mut core::ffi::c_void, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHttpNegotiate2_Impl::GetRootSecurityId(this, core::mem::transmute_copy(&pbsecurityid), core::mem::transmute_copy(&pcbsecurityid), core::mem::transmute_copy(&dwreserved)).into() } @@ -334,14 +259,8 @@ pub trait IHttpNegotiate3_Impl: Sized + IHttpNegotiate2_Impl { } impl windows_core::RuntimeName for IHttpNegotiate3 {} impl IHttpNegotiate3_Vtbl { - pub const fn new() -> IHttpNegotiate3_Vtbl - where - Identity: IHttpNegotiate3_Impl, - { - unsafe extern "system" fn GetSerializedClientCertContext(this: *mut core::ffi::c_void, ppbcert: *mut *mut u8, pcbcert: *mut u32) -> windows_core::HRESULT - where - Identity: IHttpNegotiate3_Impl, - { + pub const fn new() -> IHttpNegotiate3_Vtbl { + unsafe extern "system" fn GetSerializedClientCertContext(this: *mut core::ffi::c_void, ppbcert: *mut *mut u8, pcbcert: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHttpNegotiate3_Impl::GetSerializedClientCertContext(this, core::mem::transmute_copy(&ppbcert), core::mem::transmute_copy(&pcbcert)).into() } @@ -356,14 +275,8 @@ pub trait IHttpSecurity_Impl: Sized + IWindowForBindingUI_Impl { } impl windows_core::RuntimeName for IHttpSecurity {} impl IHttpSecurity_Vtbl { - pub const fn new() -> IHttpSecurity_Vtbl - where - Identity: IHttpSecurity_Impl, - { - unsafe extern "system" fn OnSecurityProblem(this: *mut core::ffi::c_void, dwproblem: u32) -> windows_core::HRESULT - where - Identity: IHttpSecurity_Impl, - { + pub const fn new() -> IHttpSecurity_Vtbl { + unsafe extern "system" fn OnSecurityProblem(this: *mut core::ffi::c_void, dwproblem: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHttpSecurity_Impl::OnSecurityProblem(this, core::mem::transmute_copy(&dwproblem)).into() } @@ -373,13 +286,10 @@ impl IHttpSecurity_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IInternet_Impl: Sized {} +pub trait IInternet_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IInternet {} impl IInternet_Vtbl { - pub const fn new() -> IInternet_Vtbl - where - Identity: IInternet_Impl, - { + pub const fn new() -> IInternet_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -387,7 +297,7 @@ impl IInternet_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IInternetBindInfo_Impl: Sized { +pub trait IInternetBindInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetBindInfo(&self, grfbindf: *mut u32, pbindinfo: *mut super::BINDINFO) -> windows_core::Result<()>; fn GetBindString(&self, ulstringtype: u32, ppwzstr: *mut windows_core::PWSTR, cel: u32, pcelfetched: *mut u32) -> windows_core::Result<()>; } @@ -395,21 +305,12 @@ pub trait IInternetBindInfo_Impl: Sized { impl windows_core::RuntimeName for IInternetBindInfo {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] impl IInternetBindInfo_Vtbl { - pub const fn new() -> IInternetBindInfo_Vtbl - where - Identity: IInternetBindInfo_Impl, - { - unsafe extern "system" fn GetBindInfo(this: *mut core::ffi::c_void, grfbindf: *mut u32, pbindinfo: *mut super::BINDINFO) -> windows_core::HRESULT - where - Identity: IInternetBindInfo_Impl, - { + pub const fn new() -> IInternetBindInfo_Vtbl { + unsafe extern "system" fn GetBindInfo(this: *mut core::ffi::c_void, grfbindf: *mut u32, pbindinfo: *mut super::BINDINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetBindInfo_Impl::GetBindInfo(this, core::mem::transmute_copy(&grfbindf), core::mem::transmute_copy(&pbindinfo)).into() } - unsafe extern "system" fn GetBindString(this: *mut core::ffi::c_void, ulstringtype: u32, ppwzstr: *mut windows_core::PWSTR, cel: u32, pcelfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IInternetBindInfo_Impl, - { + unsafe extern "system" fn GetBindString(this: *mut core::ffi::c_void, ulstringtype: u32, ppwzstr: *mut windows_core::PWSTR, cel: u32, pcelfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetBindInfo_Impl::GetBindString(this, core::mem::transmute_copy(&ulstringtype), core::mem::transmute_copy(&ppwzstr), core::mem::transmute_copy(&cel), core::mem::transmute_copy(&pcelfetched)).into() } @@ -431,14 +332,8 @@ pub trait IInternetBindInfoEx_Impl: Sized + IInternetBindInfo_Impl { impl windows_core::RuntimeName for IInternetBindInfoEx {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] impl IInternetBindInfoEx_Vtbl { - pub const fn new() -> IInternetBindInfoEx_Vtbl - where - Identity: IInternetBindInfoEx_Impl, - { - unsafe extern "system" fn GetBindInfoEx(this: *mut core::ffi::c_void, grfbindf: *mut u32, pbindinfo: *mut super::BINDINFO, grfbindf2: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT - where - Identity: IInternetBindInfoEx_Impl, - { + pub const fn new() -> IInternetBindInfoEx_Vtbl { + unsafe extern "system" fn GetBindInfoEx(this: *mut core::ffi::c_void, grfbindf: *mut u32, pbindinfo: *mut super::BINDINFO, grfbindf2: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetBindInfoEx_Impl::GetBindInfoEx(this, core::mem::transmute_copy(&grfbindf), core::mem::transmute_copy(&pbindinfo), core::mem::transmute_copy(&grfbindf2), core::mem::transmute_copy(&pdwreserved)).into() } @@ -448,35 +343,23 @@ impl IInternetBindInfoEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IInternetHostSecurityManager_Impl: Sized { +pub trait IInternetHostSecurityManager_Impl: Sized + windows_core::IUnknownImpl { fn GetSecurityId(&self, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::Result<()>; fn ProcessUrlAction(&self, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32) -> windows_core::Result<()>; fn QueryCustomPolicy(&self, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInternetHostSecurityManager {} impl IInternetHostSecurityManager_Vtbl { - pub const fn new() -> IInternetHostSecurityManager_Vtbl - where - Identity: IInternetHostSecurityManager_Impl, - { - unsafe extern "system" fn GetSecurityId(this: *mut core::ffi::c_void, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::HRESULT - where - Identity: IInternetHostSecurityManager_Impl, - { + pub const fn new() -> IInternetHostSecurityManager_Vtbl { + unsafe extern "system" fn GetSecurityId(this: *mut core::ffi::c_void, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetHostSecurityManager_Impl::GetSecurityId(this, core::mem::transmute_copy(&pbsecurityid), core::mem::transmute_copy(&pcbsecurityid), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn ProcessUrlAction(this: *mut core::ffi::c_void, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetHostSecurityManager_Impl, - { + unsafe extern "system" fn ProcessUrlAction(this: *mut core::ffi::c_void, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetHostSecurityManager_Impl::ProcessUrlAction(this, core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&ppolicy), core::mem::transmute_copy(&cbpolicy), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&cbcontext), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn QueryCustomPolicy(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetHostSecurityManager_Impl, - { + unsafe extern "system" fn QueryCustomPolicy(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetHostSecurityManager_Impl::QueryCustomPolicy(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&pppolicy), core::mem::transmute_copy(&pcbpolicy), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&cbcontext), core::mem::transmute_copy(&dwreserved)).into() } @@ -491,27 +374,18 @@ impl IInternetHostSecurityManager_Vtbl { iid == &::IID } } -pub trait IInternetPriority_Impl: Sized { +pub trait IInternetPriority_Impl: Sized + windows_core::IUnknownImpl { fn SetPriority(&self, npriority: i32) -> windows_core::Result<()>; fn GetPriority(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IInternetPriority {} impl IInternetPriority_Vtbl { - pub const fn new() -> IInternetPriority_Vtbl - where - Identity: IInternetPriority_Impl, - { - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, npriority: i32) -> windows_core::HRESULT - where - Identity: IInternetPriority_Impl, - { + pub const fn new() -> IInternetPriority_Vtbl { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, npriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetPriority_Impl::SetPriority(this, core::mem::transmute_copy(&npriority)).into() } - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pnpriority: *mut i32) -> windows_core::HRESULT - where - Identity: IInternetPriority_Impl, - { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pnpriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInternetPriority_Impl::GetPriority(this) { Ok(ok__) => { @@ -539,21 +413,12 @@ pub trait IInternetProtocol_Impl: Sized + IInternetProtocolRoot_Impl { } impl windows_core::RuntimeName for IInternetProtocol {} impl IInternetProtocol_Vtbl { - pub const fn new() -> IInternetProtocol_Vtbl - where - Identity: IInternetProtocol_Impl, - { - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT - where - Identity: IInternetProtocol_Impl, - { + pub const fn new() -> IInternetProtocol_Vtbl { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocol_Impl::Read(this, core::mem::transmute_copy(&pv), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbread)).into() } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, dlibmove: i64, dworigin: u32, plibnewposition: *mut u64) -> windows_core::HRESULT - where - Identity: IInternetProtocol_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, dlibmove: i64, dworigin: u32, plibnewposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInternetProtocol_Impl::Seek(this, core::mem::transmute_copy(&dlibmove), core::mem::transmute_copy(&dworigin)) { Ok(ok__) => { @@ -563,17 +428,11 @@ impl IInternetProtocol_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LockRequest(this: *mut core::ffi::c_void, dwoptions: u32) -> windows_core::HRESULT - where - Identity: IInternetProtocol_Impl, - { + unsafe extern "system" fn LockRequest(this: *mut core::ffi::c_void, dwoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocol_Impl::LockRequest(this, core::mem::transmute_copy(&dwoptions)).into() } - unsafe extern "system" fn UnlockRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetProtocol_Impl, - { + unsafe extern "system" fn UnlockRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocol_Impl::UnlockRequest(this).into() } @@ -594,14 +453,8 @@ pub trait IInternetProtocolEx_Impl: Sized + IInternetProtocol_Impl { } impl windows_core::RuntimeName for IInternetProtocolEx {} impl IInternetProtocolEx_Vtbl { - pub const fn new() -> IInternetProtocolEx_Vtbl - where - Identity: IInternetProtocolEx_Impl, - { - unsafe extern "system" fn StartEx(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, poiprotsink: *mut core::ffi::c_void, poibindinfo: *mut core::ffi::c_void, grfpi: u32, dwreserved: super::super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IInternetProtocolEx_Impl, - { + pub const fn new() -> IInternetProtocolEx_Vtbl { + unsafe extern "system" fn StartEx(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, poiprotsink: *mut core::ffi::c_void, poibindinfo: *mut core::ffi::c_void, grfpi: u32, dwreserved: super::super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolEx_Impl::StartEx(this, windows_core::from_raw_borrowed(&puri), windows_core::from_raw_borrowed(&poiprotsink), windows_core::from_raw_borrowed(&poibindinfo), core::mem::transmute_copy(&grfpi), core::mem::transmute_copy(&dwreserved)).into() } @@ -611,7 +464,7 @@ impl IInternetProtocolEx_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IInternetProtocolInfo_Impl: Sized { +pub trait IInternetProtocolInfo_Impl: Sized + windows_core::IUnknownImpl { fn ParseUrl(&self, pwzurl: &windows_core::PCWSTR, parseaction: PARSEACTION, dwparseflags: u32, pwzresult: windows_core::PWSTR, cchresult: u32, pcchresult: *mut u32, dwreserved: u32) -> windows_core::Result<()>; fn CombineUrl(&self, pwzbaseurl: &windows_core::PCWSTR, pwzrelativeurl: &windows_core::PCWSTR, dwcombineflags: u32, pwzresult: &windows_core::PCWSTR, cchresult: u32, pcchresult: *mut u32, dwreserved: u32) -> windows_core::Result<()>; fn CompareUrl(&self, pwzurl1: &windows_core::PCWSTR, pwzurl2: &windows_core::PCWSTR, dwcompareflags: u32) -> windows_core::Result<()>; @@ -619,35 +472,20 @@ pub trait IInternetProtocolInfo_Impl: Sized { } impl windows_core::RuntimeName for IInternetProtocolInfo {} impl IInternetProtocolInfo_Vtbl { - pub const fn new() -> IInternetProtocolInfo_Vtbl - where - Identity: IInternetProtocolInfo_Impl, - { - unsafe extern "system" fn ParseUrl(this: *mut core::ffi::c_void, pwzurl: windows_core::PCWSTR, parseaction: PARSEACTION, dwparseflags: u32, pwzresult: windows_core::PWSTR, cchresult: u32, pcchresult: *mut u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetProtocolInfo_Impl, - { + pub const fn new() -> IInternetProtocolInfo_Vtbl { + unsafe extern "system" fn ParseUrl(this: *mut core::ffi::c_void, pwzurl: windows_core::PCWSTR, parseaction: PARSEACTION, dwparseflags: u32, pwzresult: windows_core::PWSTR, cchresult: u32, pcchresult: *mut u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolInfo_Impl::ParseUrl(this, core::mem::transmute(&pwzurl), core::mem::transmute_copy(&parseaction), core::mem::transmute_copy(&dwparseflags), core::mem::transmute_copy(&pwzresult), core::mem::transmute_copy(&cchresult), core::mem::transmute_copy(&pcchresult), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn CombineUrl(this: *mut core::ffi::c_void, pwzbaseurl: windows_core::PCWSTR, pwzrelativeurl: windows_core::PCWSTR, dwcombineflags: u32, pwzresult: windows_core::PCWSTR, cchresult: u32, pcchresult: *mut u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetProtocolInfo_Impl, - { + unsafe extern "system" fn CombineUrl(this: *mut core::ffi::c_void, pwzbaseurl: windows_core::PCWSTR, pwzrelativeurl: windows_core::PCWSTR, dwcombineflags: u32, pwzresult: windows_core::PCWSTR, cchresult: u32, pcchresult: *mut u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolInfo_Impl::CombineUrl(this, core::mem::transmute(&pwzbaseurl), core::mem::transmute(&pwzrelativeurl), core::mem::transmute_copy(&dwcombineflags), core::mem::transmute(&pwzresult), core::mem::transmute_copy(&cchresult), core::mem::transmute_copy(&pcchresult), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn CompareUrl(this: *mut core::ffi::c_void, pwzurl1: windows_core::PCWSTR, pwzurl2: windows_core::PCWSTR, dwcompareflags: u32) -> windows_core::HRESULT - where - Identity: IInternetProtocolInfo_Impl, - { + unsafe extern "system" fn CompareUrl(this: *mut core::ffi::c_void, pwzurl1: windows_core::PCWSTR, pwzurl2: windows_core::PCWSTR, dwcompareflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolInfo_Impl::CompareUrl(this, core::mem::transmute(&pwzurl1), core::mem::transmute(&pwzurl2), core::mem::transmute_copy(&dwcompareflags)).into() } - unsafe extern "system" fn QueryInfo(this: *mut core::ffi::c_void, pwzurl: windows_core::PCWSTR, oueryoption: QUERYOPTION, dwqueryflags: u32, pbuffer: *mut core::ffi::c_void, cbbuffer: u32, pcbbuf: *mut u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetProtocolInfo_Impl, - { + unsafe extern "system" fn QueryInfo(this: *mut core::ffi::c_void, pwzurl: windows_core::PCWSTR, oueryoption: QUERYOPTION, dwqueryflags: u32, pbuffer: *mut core::ffi::c_void, cbbuffer: u32, pcbbuf: *mut u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolInfo_Impl::QueryInfo(this, core::mem::transmute(&pwzurl), core::mem::transmute_copy(&oueryoption), core::mem::transmute_copy(&dwqueryflags), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&pcbbuf), core::mem::transmute_copy(&dwreserved)).into() } @@ -663,7 +501,7 @@ impl IInternetProtocolInfo_Vtbl { iid == &::IID } } -pub trait IInternetProtocolRoot_Impl: Sized { +pub trait IInternetProtocolRoot_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self, szurl: &windows_core::PCWSTR, poiprotsink: Option<&IInternetProtocolSink>, poibindinfo: Option<&IInternetBindInfo>, grfpi: u32, dwreserved: super::super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()>; fn Continue(&self, pprotocoldata: *const PROTOCOLDATA) -> windows_core::Result<()>; fn Abort(&self, hrreason: windows_core::HRESULT, dwoptions: u32) -> windows_core::Result<()>; @@ -673,49 +511,28 @@ pub trait IInternetProtocolRoot_Impl: Sized { } impl windows_core::RuntimeName for IInternetProtocolRoot {} impl IInternetProtocolRoot_Vtbl { - pub const fn new() -> IInternetProtocolRoot_Vtbl - where - Identity: IInternetProtocolRoot_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, szurl: windows_core::PCWSTR, poiprotsink: *mut core::ffi::c_void, poibindinfo: *mut core::ffi::c_void, grfpi: u32, dwreserved: super::super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IInternetProtocolRoot_Impl, - { + pub const fn new() -> IInternetProtocolRoot_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, szurl: windows_core::PCWSTR, poiprotsink: *mut core::ffi::c_void, poibindinfo: *mut core::ffi::c_void, grfpi: u32, dwreserved: super::super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolRoot_Impl::Start(this, core::mem::transmute(&szurl), windows_core::from_raw_borrowed(&poiprotsink), windows_core::from_raw_borrowed(&poibindinfo), core::mem::transmute_copy(&grfpi), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn Continue(this: *mut core::ffi::c_void, pprotocoldata: *const PROTOCOLDATA) -> windows_core::HRESULT - where - Identity: IInternetProtocolRoot_Impl, - { + unsafe extern "system" fn Continue(this: *mut core::ffi::c_void, pprotocoldata: *const PROTOCOLDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolRoot_Impl::Continue(this, core::mem::transmute_copy(&pprotocoldata)).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void, hrreason: windows_core::HRESULT, dwoptions: u32) -> windows_core::HRESULT - where - Identity: IInternetProtocolRoot_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void, hrreason: windows_core::HRESULT, dwoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolRoot_Impl::Abort(this, core::mem::transmute_copy(&hrreason), core::mem::transmute_copy(&dwoptions)).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, dwoptions: u32) -> windows_core::HRESULT - where - Identity: IInternetProtocolRoot_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, dwoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolRoot_Impl::Terminate(this, core::mem::transmute_copy(&dwoptions)).into() } - unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetProtocolRoot_Impl, - { + unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolRoot_Impl::Suspend(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetProtocolRoot_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolRoot_Impl::Resume(this).into() } @@ -733,7 +550,7 @@ impl IInternetProtocolRoot_Vtbl { iid == &::IID } } -pub trait IInternetProtocolSink_Impl: Sized { +pub trait IInternetProtocolSink_Impl: Sized + windows_core::IUnknownImpl { fn Switch(&self, pprotocoldata: *const PROTOCOLDATA) -> windows_core::Result<()>; fn ReportProgress(&self, ulstatuscode: u32, szstatustext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ReportData(&self, grfbscf: u32, ulprogress: u32, ulprogressmax: u32) -> windows_core::Result<()>; @@ -741,35 +558,20 @@ pub trait IInternetProtocolSink_Impl: Sized { } impl windows_core::RuntimeName for IInternetProtocolSink {} impl IInternetProtocolSink_Vtbl { - pub const fn new() -> IInternetProtocolSink_Vtbl - where - Identity: IInternetProtocolSink_Impl, - { - unsafe extern "system" fn Switch(this: *mut core::ffi::c_void, pprotocoldata: *const PROTOCOLDATA) -> windows_core::HRESULT - where - Identity: IInternetProtocolSink_Impl, - { + pub const fn new() -> IInternetProtocolSink_Vtbl { + unsafe extern "system" fn Switch(this: *mut core::ffi::c_void, pprotocoldata: *const PROTOCOLDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolSink_Impl::Switch(this, core::mem::transmute_copy(&pprotocoldata)).into() } - unsafe extern "system" fn ReportProgress(this: *mut core::ffi::c_void, ulstatuscode: u32, szstatustext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IInternetProtocolSink_Impl, - { + unsafe extern "system" fn ReportProgress(this: *mut core::ffi::c_void, ulstatuscode: u32, szstatustext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolSink_Impl::ReportProgress(this, core::mem::transmute_copy(&ulstatuscode), core::mem::transmute(&szstatustext)).into() } - unsafe extern "system" fn ReportData(this: *mut core::ffi::c_void, grfbscf: u32, ulprogress: u32, ulprogressmax: u32) -> windows_core::HRESULT - where - Identity: IInternetProtocolSink_Impl, - { + unsafe extern "system" fn ReportData(this: *mut core::ffi::c_void, grfbscf: u32, ulprogress: u32, ulprogressmax: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolSink_Impl::ReportData(this, core::mem::transmute_copy(&grfbscf), core::mem::transmute_copy(&ulprogress), core::mem::transmute_copy(&ulprogressmax)).into() } - unsafe extern "system" fn ReportResult(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT, dwerror: u32, szresult: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IInternetProtocolSink_Impl, - { + unsafe extern "system" fn ReportResult(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT, dwerror: u32, szresult: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolSink_Impl::ReportResult(this, core::mem::transmute_copy(&hrresult), core::mem::transmute_copy(&dwerror), core::mem::transmute(&szresult)).into() } @@ -785,35 +587,23 @@ impl IInternetProtocolSink_Vtbl { iid == &::IID } } -pub trait IInternetProtocolSinkStackable_Impl: Sized { +pub trait IInternetProtocolSinkStackable_Impl: Sized + windows_core::IUnknownImpl { fn SwitchSink(&self, poiprotsink: Option<&IInternetProtocolSink>) -> windows_core::Result<()>; fn CommitSwitch(&self) -> windows_core::Result<()>; fn RollbackSwitch(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInternetProtocolSinkStackable {} impl IInternetProtocolSinkStackable_Vtbl { - pub const fn new() -> IInternetProtocolSinkStackable_Vtbl - where - Identity: IInternetProtocolSinkStackable_Impl, - { - unsafe extern "system" fn SwitchSink(this: *mut core::ffi::c_void, poiprotsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetProtocolSinkStackable_Impl, - { + pub const fn new() -> IInternetProtocolSinkStackable_Vtbl { + unsafe extern "system" fn SwitchSink(this: *mut core::ffi::c_void, poiprotsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolSinkStackable_Impl::SwitchSink(this, windows_core::from_raw_borrowed(&poiprotsink)).into() } - unsafe extern "system" fn CommitSwitch(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetProtocolSinkStackable_Impl, - { + unsafe extern "system" fn CommitSwitch(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolSinkStackable_Impl::CommitSwitch(this).into() } - unsafe extern "system" fn RollbackSwitch(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetProtocolSinkStackable_Impl, - { + unsafe extern "system" fn RollbackSwitch(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetProtocolSinkStackable_Impl::RollbackSwitch(this).into() } @@ -828,7 +618,7 @@ impl IInternetProtocolSinkStackable_Vtbl { iid == &::IID } } -pub trait IInternetSecurityManager_Impl: Sized { +pub trait IInternetSecurityManager_Impl: Sized + windows_core::IUnknownImpl { fn SetSecuritySite(&self, psite: Option<&IInternetSecurityMgrSite>) -> windows_core::Result<()>; fn GetSecuritySite(&self) -> windows_core::Result; fn MapUrlToZone(&self, pwszurl: &windows_core::PCWSTR, pdwzone: *mut u32, dwflags: u32) -> windows_core::Result<()>; @@ -840,21 +630,12 @@ pub trait IInternetSecurityManager_Impl: Sized { } impl windows_core::RuntimeName for IInternetSecurityManager {} impl IInternetSecurityManager_Vtbl { - pub const fn new() -> IInternetSecurityManager_Vtbl - where - Identity: IInternetSecurityManager_Impl, - { - unsafe extern "system" fn SetSecuritySite(this: *mut core::ffi::c_void, psite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetSecurityManager_Impl, - { + pub const fn new() -> IInternetSecurityManager_Vtbl { + unsafe extern "system" fn SetSecuritySite(this: *mut core::ffi::c_void, psite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManager_Impl::SetSecuritySite(this, windows_core::from_raw_borrowed(&psite)).into() } - unsafe extern "system" fn GetSecuritySite(this: *mut core::ffi::c_void, ppsite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetSecurityManager_Impl, - { + unsafe extern "system" fn GetSecuritySite(this: *mut core::ffi::c_void, ppsite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInternetSecurityManager_Impl::GetSecuritySite(this) { Ok(ok__) => { @@ -864,45 +645,27 @@ impl IInternetSecurityManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MapUrlToZone(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pdwzone: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IInternetSecurityManager_Impl, - { + unsafe extern "system" fn MapUrlToZone(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pdwzone: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManager_Impl::MapUrlToZone(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&pdwzone), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetSecurityId(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::HRESULT - where - Identity: IInternetSecurityManager_Impl, - { + unsafe extern "system" fn GetSecurityId(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManager_Impl::GetSecurityId(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&pbsecurityid), core::mem::transmute_copy(&pcbsecurityid), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn ProcessUrlAction(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetSecurityManager_Impl, - { + unsafe extern "system" fn ProcessUrlAction(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManager_Impl::ProcessUrlAction(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&ppolicy), core::mem::transmute_copy(&cbpolicy), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&cbcontext), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn QueryCustomPolicy(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetSecurityManager_Impl, - { + unsafe extern "system" fn QueryCustomPolicy(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManager_Impl::QueryCustomPolicy(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&pppolicy), core::mem::transmute_copy(&pcbpolicy), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&cbcontext), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn SetZoneMapping(this: *mut core::ffi::c_void, dwzone: u32, lpszpattern: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IInternetSecurityManager_Impl, - { + unsafe extern "system" fn SetZoneMapping(this: *mut core::ffi::c_void, dwzone: u32, lpszpattern: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManager_Impl::SetZoneMapping(this, core::mem::transmute_copy(&dwzone), core::mem::transmute(&lpszpattern), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetZoneMappings(this: *mut core::ffi::c_void, dwzone: u32, ppenumstring: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IInternetSecurityManager_Impl, - { + unsafe extern "system" fn GetZoneMappings(this: *mut core::ffi::c_void, dwzone: u32, ppenumstring: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManager_Impl::GetZoneMappings(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&ppenumstring), core::mem::transmute_copy(&dwflags)).into() } @@ -927,14 +690,8 @@ pub trait IInternetSecurityManagerEx_Impl: Sized + IInternetSecurityManager_Impl } impl windows_core::RuntimeName for IInternetSecurityManagerEx {} impl IInternetSecurityManagerEx_Vtbl { - pub const fn new() -> IInternetSecurityManagerEx_Vtbl - where - Identity: IInternetSecurityManagerEx_Impl, - { - unsafe extern "system" fn ProcessUrlActionEx(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32, pdwoutflags: *mut u32) -> windows_core::HRESULT - where - Identity: IInternetSecurityManagerEx_Impl, - { + pub const fn new() -> IInternetSecurityManagerEx_Vtbl { + unsafe extern "system" fn ProcessUrlActionEx(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32, pdwoutflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManagerEx_Impl::ProcessUrlActionEx(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&ppolicy), core::mem::transmute_copy(&cbpolicy), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&cbcontext), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&pdwoutflags)).into() } @@ -952,35 +709,20 @@ pub trait IInternetSecurityManagerEx2_Impl: Sized + IInternetSecurityManagerEx_I } impl windows_core::RuntimeName for IInternetSecurityManagerEx2 {} impl IInternetSecurityManagerEx2_Vtbl { - pub const fn new() -> IInternetSecurityManagerEx2_Vtbl - where - Identity: IInternetSecurityManagerEx2_Impl, - { - unsafe extern "system" fn MapUrlToZoneEx2(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, pdwzone: *mut u32, dwflags: u32, ppwszmappedurl: *mut windows_core::PWSTR, pdwoutflags: *mut u32) -> windows_core::HRESULT - where - Identity: IInternetSecurityManagerEx2_Impl, - { + pub const fn new() -> IInternetSecurityManagerEx2_Vtbl { + unsafe extern "system" fn MapUrlToZoneEx2(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, pdwzone: *mut u32, dwflags: u32, ppwszmappedurl: *mut windows_core::PWSTR, pdwoutflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManagerEx2_Impl::MapUrlToZoneEx2(this, windows_core::from_raw_borrowed(&puri), core::mem::transmute_copy(&pdwzone), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ppwszmappedurl), core::mem::transmute_copy(&pdwoutflags)).into() } - unsafe extern "system" fn ProcessUrlActionEx2(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: usize, pdwoutflags: *mut u32) -> windows_core::HRESULT - where - Identity: IInternetSecurityManagerEx2_Impl, - { + unsafe extern "system" fn ProcessUrlActionEx2(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: usize, pdwoutflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManagerEx2_Impl::ProcessUrlActionEx2(this, windows_core::from_raw_borrowed(&puri), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&ppolicy), core::mem::transmute_copy(&cbpolicy), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&cbcontext), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&pdwoutflags)).into() } - unsafe extern "system" fn GetSecurityIdEx2(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::HRESULT - where - Identity: IInternetSecurityManagerEx2_Impl, - { + unsafe extern "system" fn GetSecurityIdEx2(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManagerEx2_Impl::GetSecurityIdEx2(this, windows_core::from_raw_borrowed(&puri), core::mem::transmute_copy(&pbsecurityid), core::mem::transmute_copy(&pcbsecurityid), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn QueryCustomPolicyEx2(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: usize) -> windows_core::HRESULT - where - Identity: IInternetSecurityManagerEx2_Impl, - { + unsafe extern "system" fn QueryCustomPolicyEx2(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityManagerEx2_Impl::QueryCustomPolicyEx2(this, windows_core::from_raw_borrowed(&puri), core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&pppolicy), core::mem::transmute_copy(&pcbpolicy), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&cbcontext), core::mem::transmute_copy(&dwreserved)).into() } @@ -996,20 +738,14 @@ impl IInternetSecurityManagerEx2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IInternetSecurityMgrSite_Impl: Sized { +pub trait IInternetSecurityMgrSite_Impl: Sized + windows_core::IUnknownImpl { fn GetWindow(&self) -> windows_core::Result; fn EnableModeless(&self, fenable: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInternetSecurityMgrSite {} impl IInternetSecurityMgrSite_Vtbl { - pub const fn new() -> IInternetSecurityMgrSite_Vtbl - where - Identity: IInternetSecurityMgrSite_Impl, - { - unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IInternetSecurityMgrSite_Impl, - { + pub const fn new() -> IInternetSecurityMgrSite_Vtbl { + unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInternetSecurityMgrSite_Impl::GetWindow(this) { Ok(ok__) => { @@ -1019,10 +755,7 @@ impl IInternetSecurityMgrSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IInternetSecurityMgrSite_Impl, - { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityMgrSite_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() } @@ -1036,7 +769,7 @@ impl IInternetSecurityMgrSite_Vtbl { iid == &::IID } } -pub trait IInternetSession_Impl: Sized { +pub trait IInternetSession_Impl: Sized + windows_core::IUnknownImpl { fn RegisterNameSpace(&self, pcf: Option<&super::IClassFactory>, rclsid: *const windows_core::GUID, pwzprotocol: &windows_core::PCWSTR, cpatterns: u32, ppwzpatterns: *const windows_core::PCWSTR, dwreserved: u32) -> windows_core::Result<()>; fn UnregisterNameSpace(&self, pcf: Option<&super::IClassFactory>, pszprotocol: &windows_core::PCWSTR) -> windows_core::Result<()>; fn RegisterMimeFilter(&self, pcf: Option<&super::IClassFactory>, rclsid: *const windows_core::GUID, pwztype: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -1047,56 +780,32 @@ pub trait IInternetSession_Impl: Sized { } impl windows_core::RuntimeName for IInternetSession {} impl IInternetSession_Vtbl { - pub const fn new() -> IInternetSession_Vtbl - where - Identity: IInternetSession_Impl, - { - unsafe extern "system" fn RegisterNameSpace(this: *mut core::ffi::c_void, pcf: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, pwzprotocol: windows_core::PCWSTR, cpatterns: u32, ppwzpatterns: *const windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetSession_Impl, - { + pub const fn new() -> IInternetSession_Vtbl { + unsafe extern "system" fn RegisterNameSpace(this: *mut core::ffi::c_void, pcf: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, pwzprotocol: windows_core::PCWSTR, cpatterns: u32, ppwzpatterns: *const windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSession_Impl::RegisterNameSpace(this, windows_core::from_raw_borrowed(&pcf), core::mem::transmute_copy(&rclsid), core::mem::transmute(&pwzprotocol), core::mem::transmute_copy(&cpatterns), core::mem::transmute_copy(&ppwzpatterns), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn UnregisterNameSpace(this: *mut core::ffi::c_void, pcf: *mut core::ffi::c_void, pszprotocol: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IInternetSession_Impl, - { + unsafe extern "system" fn UnregisterNameSpace(this: *mut core::ffi::c_void, pcf: *mut core::ffi::c_void, pszprotocol: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSession_Impl::UnregisterNameSpace(this, windows_core::from_raw_borrowed(&pcf), core::mem::transmute(&pszprotocol)).into() } - unsafe extern "system" fn RegisterMimeFilter(this: *mut core::ffi::c_void, pcf: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, pwztype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IInternetSession_Impl, - { + unsafe extern "system" fn RegisterMimeFilter(this: *mut core::ffi::c_void, pcf: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, pwztype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSession_Impl::RegisterMimeFilter(this, windows_core::from_raw_borrowed(&pcf), core::mem::transmute_copy(&rclsid), core::mem::transmute(&pwztype)).into() } - unsafe extern "system" fn UnregisterMimeFilter(this: *mut core::ffi::c_void, pcf: *mut core::ffi::c_void, pwztype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IInternetSession_Impl, - { + unsafe extern "system" fn UnregisterMimeFilter(this: *mut core::ffi::c_void, pcf: *mut core::ffi::c_void, pwztype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSession_Impl::UnregisterMimeFilter(this, windows_core::from_raw_borrowed(&pcf), core::mem::transmute(&pwztype)).into() } - unsafe extern "system" fn CreateBinding(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, szurl: windows_core::PCWSTR, punkouter: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void, ppoinetprot: *mut *mut core::ffi::c_void, dwoption: u32) -> windows_core::HRESULT - where - Identity: IInternetSession_Impl, - { + unsafe extern "system" fn CreateBinding(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, szurl: windows_core::PCWSTR, punkouter: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void, ppoinetprot: *mut *mut core::ffi::c_void, dwoption: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSession_Impl::CreateBinding(this, windows_core::from_raw_borrowed(&pbc), core::mem::transmute(&szurl), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&ppunk), core::mem::transmute_copy(&ppoinetprot), core::mem::transmute_copy(&dwoption)).into() } - unsafe extern "system" fn SetSessionOption(this: *mut core::ffi::c_void, dwoption: u32, pbuffer: *const core::ffi::c_void, dwbufferlength: u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetSession_Impl, - { + unsafe extern "system" fn SetSessionOption(this: *mut core::ffi::c_void, dwoption: u32, pbuffer: *const core::ffi::c_void, dwbufferlength: u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSession_Impl::SetSessionOption(this, core::mem::transmute_copy(&dwoption), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&dwbufferlength), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn GetSessionOption(this: *mut core::ffi::c_void, dwoption: u32, pbuffer: *mut core::ffi::c_void, pdwbufferlength: *mut u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetSession_Impl, - { + unsafe extern "system" fn GetSessionOption(this: *mut core::ffi::c_void, dwoption: u32, pbuffer: *mut core::ffi::c_void, pdwbufferlength: *mut u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSession_Impl::GetSessionOption(this, core::mem::transmute_copy(&dwoption), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&pdwbufferlength), core::mem::transmute_copy(&dwreserved)).into() } @@ -1115,27 +824,18 @@ impl IInternetSession_Vtbl { iid == &::IID } } -pub trait IInternetThreadSwitch_Impl: Sized { +pub trait IInternetThreadSwitch_Impl: Sized + windows_core::IUnknownImpl { fn Prepare(&self) -> windows_core::Result<()>; fn Continue(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInternetThreadSwitch {} impl IInternetThreadSwitch_Vtbl { - pub const fn new() -> IInternetThreadSwitch_Vtbl - where - Identity: IInternetThreadSwitch_Impl, - { - unsafe extern "system" fn Prepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetThreadSwitch_Impl, - { + pub const fn new() -> IInternetThreadSwitch_Vtbl { + unsafe extern "system" fn Prepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetThreadSwitch_Impl::Prepare(this).into() } - unsafe extern "system" fn Continue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetThreadSwitch_Impl, - { + unsafe extern "system" fn Continue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetThreadSwitch_Impl::Continue(this).into() } @@ -1145,7 +845,7 @@ impl IInternetThreadSwitch_Vtbl { iid == &::IID } } -pub trait IInternetZoneManager_Impl: Sized { +pub trait IInternetZoneManager_Impl: Sized + windows_core::IUnknownImpl { fn GetZoneAttributes(&self, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES) -> windows_core::Result<()>; fn SetZoneAttributes(&self, dwzone: u32, pzoneattributes: *const ZONEATTRIBUTES) -> windows_core::Result<()>; fn GetZoneCustomPolicy(&self, dwzone: u32, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, urlzonereg: URLZONEREG) -> windows_core::Result<()>; @@ -1161,77 +861,44 @@ pub trait IInternetZoneManager_Impl: Sized { } impl windows_core::RuntimeName for IInternetZoneManager {} impl IInternetZoneManager_Vtbl { - pub const fn new() -> IInternetZoneManager_Vtbl - where - Identity: IInternetZoneManager_Impl, - { - unsafe extern "system" fn GetZoneAttributes(this: *mut core::ffi::c_void, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + pub const fn new() -> IInternetZoneManager_Vtbl { + unsafe extern "system" fn GetZoneAttributes(this: *mut core::ffi::c_void, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::GetZoneAttributes(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&pzoneattributes)).into() } - unsafe extern "system" fn SetZoneAttributes(this: *mut core::ffi::c_void, dwzone: u32, pzoneattributes: *const ZONEATTRIBUTES) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn SetZoneAttributes(this: *mut core::ffi::c_void, dwzone: u32, pzoneattributes: *const ZONEATTRIBUTES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::SetZoneAttributes(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&pzoneattributes)).into() } - unsafe extern "system" fn GetZoneCustomPolicy(this: *mut core::ffi::c_void, dwzone: u32, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, urlzonereg: URLZONEREG) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn GetZoneCustomPolicy(this: *mut core::ffi::c_void, dwzone: u32, guidkey: *const windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, urlzonereg: URLZONEREG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::GetZoneCustomPolicy(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&pppolicy), core::mem::transmute_copy(&pcbpolicy), core::mem::transmute_copy(&urlzonereg)).into() } - unsafe extern "system" fn SetZoneCustomPolicy(this: *mut core::ffi::c_void, dwzone: u32, guidkey: *const windows_core::GUID, ppolicy: *const u8, cbpolicy: u32, urlzonereg: URLZONEREG) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn SetZoneCustomPolicy(this: *mut core::ffi::c_void, dwzone: u32, guidkey: *const windows_core::GUID, ppolicy: *const u8, cbpolicy: u32, urlzonereg: URLZONEREG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::SetZoneCustomPolicy(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&ppolicy), core::mem::transmute_copy(&cbpolicy), core::mem::transmute_copy(&urlzonereg)).into() } - unsafe extern "system" fn GetZoneActionPolicy(this: *mut core::ffi::c_void, dwzone: u32, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, urlzonereg: URLZONEREG) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn GetZoneActionPolicy(this: *mut core::ffi::c_void, dwzone: u32, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, urlzonereg: URLZONEREG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::GetZoneActionPolicy(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&ppolicy), core::mem::transmute_copy(&cbpolicy), core::mem::transmute_copy(&urlzonereg)).into() } - unsafe extern "system" fn SetZoneActionPolicy(this: *mut core::ffi::c_void, dwzone: u32, dwaction: u32, ppolicy: *const u8, cbpolicy: u32, urlzonereg: URLZONEREG) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn SetZoneActionPolicy(this: *mut core::ffi::c_void, dwzone: u32, dwaction: u32, ppolicy: *const u8, cbpolicy: u32, urlzonereg: URLZONEREG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::SetZoneActionPolicy(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&ppolicy), core::mem::transmute_copy(&cbpolicy), core::mem::transmute_copy(&urlzonereg)).into() } - unsafe extern "system" fn PromptAction(this: *mut core::ffi::c_void, dwaction: u32, hwndparent: super::super::super::Foundation::HWND, pwszurl: windows_core::PCWSTR, pwsztext: windows_core::PCWSTR, dwpromptflags: u32) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn PromptAction(this: *mut core::ffi::c_void, dwaction: u32, hwndparent: super::super::super::Foundation::HWND, pwszurl: windows_core::PCWSTR, pwsztext: windows_core::PCWSTR, dwpromptflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::PromptAction(this, core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&hwndparent), core::mem::transmute(&pwszurl), core::mem::transmute(&pwsztext), core::mem::transmute_copy(&dwpromptflags)).into() } - unsafe extern "system" fn LogAction(this: *mut core::ffi::c_void, dwaction: u32, pwszurl: windows_core::PCWSTR, pwsztext: windows_core::PCWSTR, dwlogflags: u32) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn LogAction(this: *mut core::ffi::c_void, dwaction: u32, pwszurl: windows_core::PCWSTR, pwsztext: windows_core::PCWSTR, dwlogflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::LogAction(this, core::mem::transmute_copy(&dwaction), core::mem::transmute(&pwszurl), core::mem::transmute(&pwsztext), core::mem::transmute_copy(&dwlogflags)).into() } - unsafe extern "system" fn CreateZoneEnumerator(this: *mut core::ffi::c_void, pdwenum: *mut u32, pdwcount: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn CreateZoneEnumerator(this: *mut core::ffi::c_void, pdwenum: *mut u32, pdwcount: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::CreateZoneEnumerator(this, core::mem::transmute_copy(&pdwenum), core::mem::transmute_copy(&pdwcount), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetZoneAt(this: *mut core::ffi::c_void, dwenum: u32, dwindex: u32, pdwzone: *mut u32) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn GetZoneAt(this: *mut core::ffi::c_void, dwenum: u32, dwindex: u32, pdwzone: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInternetZoneManager_Impl::GetZoneAt(this, core::mem::transmute_copy(&dwenum), core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -1241,17 +908,11 @@ impl IInternetZoneManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestroyZoneEnumerator(this: *mut core::ffi::c_void, dwenum: u32) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn DestroyZoneEnumerator(this: *mut core::ffi::c_void, dwenum: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::DestroyZoneEnumerator(this, core::mem::transmute_copy(&dwenum)).into() } - unsafe extern "system" fn CopyTemplatePoliciesToZone(this: *mut core::ffi::c_void, dwtemplate: u32, dwzone: u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IInternetZoneManager_Impl, - { + unsafe extern "system" fn CopyTemplatePoliciesToZone(this: *mut core::ffi::c_void, dwtemplate: u32, dwzone: u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManager_Impl::CopyTemplatePoliciesToZone(this, core::mem::transmute_copy(&dwtemplate), core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&dwreserved)).into() } @@ -1281,21 +942,12 @@ pub trait IInternetZoneManagerEx_Impl: Sized + IInternetZoneManager_Impl { } impl windows_core::RuntimeName for IInternetZoneManagerEx {} impl IInternetZoneManagerEx_Vtbl { - pub const fn new() -> IInternetZoneManagerEx_Vtbl - where - Identity: IInternetZoneManagerEx_Impl, - { - unsafe extern "system" fn GetZoneActionPolicyEx(this: *mut core::ffi::c_void, dwzone: u32, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, urlzonereg: URLZONEREG, dwflags: u32) -> windows_core::HRESULT - where - Identity: IInternetZoneManagerEx_Impl, - { + pub const fn new() -> IInternetZoneManagerEx_Vtbl { + unsafe extern "system" fn GetZoneActionPolicyEx(this: *mut core::ffi::c_void, dwzone: u32, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, urlzonereg: URLZONEREG, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManagerEx_Impl::GetZoneActionPolicyEx(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&ppolicy), core::mem::transmute_copy(&cbpolicy), core::mem::transmute_copy(&urlzonereg), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SetZoneActionPolicyEx(this: *mut core::ffi::c_void, dwzone: u32, dwaction: u32, ppolicy: *const u8, cbpolicy: u32, urlzonereg: URLZONEREG, dwflags: u32) -> windows_core::HRESULT - where - Identity: IInternetZoneManagerEx_Impl, - { + unsafe extern "system" fn SetZoneActionPolicyEx(this: *mut core::ffi::c_void, dwzone: u32, dwaction: u32, ppolicy: *const u8, cbpolicy: u32, urlzonereg: URLZONEREG, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManagerEx_Impl::SetZoneActionPolicyEx(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&ppolicy), core::mem::transmute_copy(&cbpolicy), core::mem::transmute_copy(&urlzonereg), core::mem::transmute_copy(&dwflags)).into() } @@ -1317,35 +969,20 @@ pub trait IInternetZoneManagerEx2_Impl: Sized + IInternetZoneManagerEx_Impl { } impl windows_core::RuntimeName for IInternetZoneManagerEx2 {} impl IInternetZoneManagerEx2_Vtbl { - pub const fn new() -> IInternetZoneManagerEx2_Vtbl - where - Identity: IInternetZoneManagerEx2_Impl, - { - unsafe extern "system" fn GetZoneAttributesEx(this: *mut core::ffi::c_void, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES, dwflags: u32) -> windows_core::HRESULT - where - Identity: IInternetZoneManagerEx2_Impl, - { + pub const fn new() -> IInternetZoneManagerEx2_Vtbl { + unsafe extern "system" fn GetZoneAttributesEx(this: *mut core::ffi::c_void, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManagerEx2_Impl::GetZoneAttributesEx(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&pzoneattributes), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetZoneSecurityState(this: *mut core::ffi::c_void, dwzoneindex: u32, frespectpolicy: super::super::super::Foundation::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IInternetZoneManagerEx2_Impl, - { + unsafe extern "system" fn GetZoneSecurityState(this: *mut core::ffi::c_void, dwzoneindex: u32, frespectpolicy: super::super::super::Foundation::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManagerEx2_Impl::GetZoneSecurityState(this, core::mem::transmute_copy(&dwzoneindex), core::mem::transmute_copy(&frespectpolicy), core::mem::transmute_copy(&pdwstate), core::mem::transmute_copy(&pfpolicyencountered)).into() } - unsafe extern "system" fn GetIESecurityState(this: *mut core::ffi::c_void, frespectpolicy: super::super::super::Foundation::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL, fnocache: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IInternetZoneManagerEx2_Impl, - { + unsafe extern "system" fn GetIESecurityState(this: *mut core::ffi::c_void, frespectpolicy: super::super::super::Foundation::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL, fnocache: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManagerEx2_Impl::GetIESecurityState(this, core::mem::transmute_copy(&frespectpolicy), core::mem::transmute_copy(&pdwstate), core::mem::transmute_copy(&pfpolicyencountered), core::mem::transmute_copy(&fnocache)).into() } - unsafe extern "system" fn FixUnsecureSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetZoneManagerEx2_Impl, - { + unsafe extern "system" fn FixUnsecureSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManagerEx2_Impl::FixUnsecureSettings(this).into() } @@ -1361,19 +998,13 @@ impl IInternetZoneManagerEx2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMonikerProp_Impl: Sized { +pub trait IMonikerProp_Impl: Sized + windows_core::IUnknownImpl { fn PutProperty(&self, mkp: MONIKERPROPERTY, val: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMonikerProp {} impl IMonikerProp_Vtbl { - pub const fn new() -> IMonikerProp_Vtbl - where - Identity: IMonikerProp_Impl, - { - unsafe extern "system" fn PutProperty(this: *mut core::ffi::c_void, mkp: MONIKERPROPERTY, val: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMonikerProp_Impl, - { + pub const fn new() -> IMonikerProp_Vtbl { + unsafe extern "system" fn PutProperty(this: *mut core::ffi::c_void, mkp: MONIKERPROPERTY, val: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonikerProp_Impl::PutProperty(this, core::mem::transmute_copy(&mkp), core::mem::transmute(&val)).into() } @@ -1383,7 +1014,7 @@ impl IMonikerProp_Vtbl { iid == &::IID } } -pub trait IPersistMoniker_Impl: Sized { +pub trait IPersistMoniker_Impl: Sized + windows_core::IUnknownImpl { fn GetClassID(&self) -> windows_core::Result; fn IsDirty(&self) -> windows_core::HRESULT; fn Load(&self, ffullyavailable: super::super::super::Foundation::BOOL, pimkname: Option<&super::IMoniker>, pibc: Option<&super::IBindCtx>, grfmode: u32) -> windows_core::Result<()>; @@ -1393,14 +1024,8 @@ pub trait IPersistMoniker_Impl: Sized { } impl windows_core::RuntimeName for IPersistMoniker {} impl IPersistMoniker_Vtbl { - pub const fn new() -> IPersistMoniker_Vtbl - where - Identity: IPersistMoniker_Impl, - { - unsafe extern "system" fn GetClassID(this: *mut core::ffi::c_void, pclassid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPersistMoniker_Impl, - { + pub const fn new() -> IPersistMoniker_Vtbl { + unsafe extern "system" fn GetClassID(this: *mut core::ffi::c_void, pclassid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistMoniker_Impl::GetClassID(this) { Ok(ok__) => { @@ -1410,38 +1035,23 @@ impl IPersistMoniker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistMoniker_Impl, - { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMoniker_Impl::IsDirty(this) } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ffullyavailable: super::super::super::Foundation::BOOL, pimkname: *mut core::ffi::c_void, pibc: *mut core::ffi::c_void, grfmode: u32) -> windows_core::HRESULT - where - Identity: IPersistMoniker_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ffullyavailable: super::super::super::Foundation::BOOL, pimkname: *mut core::ffi::c_void, pibc: *mut core::ffi::c_void, grfmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMoniker_Impl::Load(this, core::mem::transmute_copy(&ffullyavailable), windows_core::from_raw_borrowed(&pimkname), windows_core::from_raw_borrowed(&pibc), core::mem::transmute_copy(&grfmode)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pimkname: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, fremember: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPersistMoniker_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pimkname: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, fremember: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMoniker_Impl::Save(this, windows_core::from_raw_borrowed(&pimkname), windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&fremember)).into() } - unsafe extern "system" fn SaveCompleted(this: *mut core::ffi::c_void, pimkname: *mut core::ffi::c_void, pibc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistMoniker_Impl, - { + unsafe extern "system" fn SaveCompleted(this: *mut core::ffi::c_void, pimkname: *mut core::ffi::c_void, pibc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMoniker_Impl::SaveCompleted(this, windows_core::from_raw_borrowed(&pimkname), windows_core::from_raw_borrowed(&pibc)).into() } - unsafe extern "system" fn GetCurMoniker(this: *mut core::ffi::c_void, ppimkname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistMoniker_Impl, - { + unsafe extern "system" fn GetCurMoniker(this: *mut core::ffi::c_void, ppimkname: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistMoniker_Impl::GetCurMoniker(this) { Ok(ok__) => { @@ -1466,7 +1076,7 @@ impl IPersistMoniker_Vtbl { } } #[cfg(feature = "Win32_Data_Xml_MsXml")] -pub trait ISoftDistExt_Impl: Sized { +pub trait ISoftDistExt_Impl: Sized + windows_core::IUnknownImpl { fn ProcessSoftDist(&self, szcdfurl: &windows_core::PCWSTR, psoftdistelement: Option<&super::super::super::Data::Xml::MsXml::IXMLElement>, lpsdi: *mut SOFTDISTINFO) -> windows_core::Result<()>; fn GetFirstCodeBase(&self, szcodebase: *const windows_core::PCWSTR, dwmaxsize: *const u32) -> windows_core::Result<()>; fn GetNextCodeBase(&self, szcodebase: *const windows_core::PCWSTR, dwmaxsize: *const u32) -> windows_core::Result<()>; @@ -1476,35 +1086,20 @@ pub trait ISoftDistExt_Impl: Sized { impl windows_core::RuntimeName for ISoftDistExt {} #[cfg(feature = "Win32_Data_Xml_MsXml")] impl ISoftDistExt_Vtbl { - pub const fn new() -> ISoftDistExt_Vtbl - where - Identity: ISoftDistExt_Impl, - { - unsafe extern "system" fn ProcessSoftDist(this: *mut core::ffi::c_void, szcdfurl: windows_core::PCWSTR, psoftdistelement: *mut core::ffi::c_void, lpsdi: *mut SOFTDISTINFO) -> windows_core::HRESULT - where - Identity: ISoftDistExt_Impl, - { + pub const fn new() -> ISoftDistExt_Vtbl { + unsafe extern "system" fn ProcessSoftDist(this: *mut core::ffi::c_void, szcdfurl: windows_core::PCWSTR, psoftdistelement: *mut core::ffi::c_void, lpsdi: *mut SOFTDISTINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISoftDistExt_Impl::ProcessSoftDist(this, core::mem::transmute(&szcdfurl), windows_core::from_raw_borrowed(&psoftdistelement), core::mem::transmute_copy(&lpsdi)).into() } - unsafe extern "system" fn GetFirstCodeBase(this: *mut core::ffi::c_void, szcodebase: *const windows_core::PCWSTR, dwmaxsize: *const u32) -> windows_core::HRESULT - where - Identity: ISoftDistExt_Impl, - { + unsafe extern "system" fn GetFirstCodeBase(this: *mut core::ffi::c_void, szcodebase: *const windows_core::PCWSTR, dwmaxsize: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISoftDistExt_Impl::GetFirstCodeBase(this, core::mem::transmute_copy(&szcodebase), core::mem::transmute_copy(&dwmaxsize)).into() } - unsafe extern "system" fn GetNextCodeBase(this: *mut core::ffi::c_void, szcodebase: *const windows_core::PCWSTR, dwmaxsize: *const u32) -> windows_core::HRESULT - where - Identity: ISoftDistExt_Impl, - { + unsafe extern "system" fn GetNextCodeBase(this: *mut core::ffi::c_void, szcodebase: *const windows_core::PCWSTR, dwmaxsize: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISoftDistExt_Impl::GetNextCodeBase(this, core::mem::transmute_copy(&szcodebase), core::mem::transmute_copy(&dwmaxsize)).into() } - unsafe extern "system" fn AsyncInstallDistributionUnit(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pvreserved: *const core::ffi::c_void, flags: u32, lpcbh: *const CODEBASEHOLD) -> windows_core::HRESULT - where - Identity: ISoftDistExt_Impl, - { + unsafe extern "system" fn AsyncInstallDistributionUnit(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pvreserved: *const core::ffi::c_void, flags: u32, lpcbh: *const CODEBASEHOLD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISoftDistExt_Impl::AsyncInstallDistributionUnit(this, windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&pvreserved), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&lpcbh)).into() } @@ -1520,20 +1115,14 @@ impl ISoftDistExt_Vtbl { iid == &::IID } } -pub trait IUriBuilderFactory_Impl: Sized { +pub trait IUriBuilderFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateIUriBuilder(&self, dwflags: u32, dwreserved: usize) -> windows_core::Result; fn CreateInitializedIUriBuilder(&self, dwflags: u32, dwreserved: usize) -> windows_core::Result; } impl windows_core::RuntimeName for IUriBuilderFactory {} impl IUriBuilderFactory_Vtbl { - pub const fn new() -> IUriBuilderFactory_Vtbl - where - Identity: IUriBuilderFactory_Impl, - { - unsafe extern "system" fn CreateIUriBuilder(this: *mut core::ffi::c_void, dwflags: u32, dwreserved: usize, ppiuribuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUriBuilderFactory_Impl, - { + pub const fn new() -> IUriBuilderFactory_Vtbl { + unsafe extern "system" fn CreateIUriBuilder(this: *mut core::ffi::c_void, dwflags: u32, dwreserved: usize, ppiuribuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUriBuilderFactory_Impl::CreateIUriBuilder(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -1543,10 +1132,7 @@ impl IUriBuilderFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInitializedIUriBuilder(this: *mut core::ffi::c_void, dwflags: u32, dwreserved: usize, ppiuribuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUriBuilderFactory_Impl, - { + unsafe extern "system" fn CreateInitializedIUriBuilder(this: *mut core::ffi::c_void, dwflags: u32, dwreserved: usize, ppiuribuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUriBuilderFactory_Impl::CreateInitializedIUriBuilder(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -1566,19 +1152,13 @@ impl IUriBuilderFactory_Vtbl { iid == &::IID } } -pub trait IUriContainer_Impl: Sized { +pub trait IUriContainer_Impl: Sized + windows_core::IUnknownImpl { fn GetIUri(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUriContainer {} impl IUriContainer_Vtbl { - pub const fn new() -> IUriContainer_Vtbl - where - Identity: IUriContainer_Impl, - { - unsafe extern "system" fn GetIUri(this: *mut core::ffi::c_void, ppiuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUriContainer_Impl, - { + pub const fn new() -> IUriContainer_Vtbl { + unsafe extern "system" fn GetIUri(this: *mut core::ffi::c_void, ppiuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUriContainer_Impl::GetIUri(this) { Ok(ok__) => { @@ -1594,19 +1174,13 @@ impl IUriContainer_Vtbl { iid == &::IID } } -pub trait IWinInetCacheHints_Impl: Sized { +pub trait IWinInetCacheHints_Impl: Sized + windows_core::IUnknownImpl { fn SetCacheExtension(&self, pwzext: &windows_core::PCWSTR, pszcachefile: *mut core::ffi::c_void, pcbcachefile: *mut u32, pdwwinineterror: *mut u32, pdwreserved: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWinInetCacheHints {} impl IWinInetCacheHints_Vtbl { - pub const fn new() -> IWinInetCacheHints_Vtbl - where - Identity: IWinInetCacheHints_Impl, - { - unsafe extern "system" fn SetCacheExtension(this: *mut core::ffi::c_void, pwzext: windows_core::PCWSTR, pszcachefile: *mut core::ffi::c_void, pcbcachefile: *mut u32, pdwwinineterror: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT - where - Identity: IWinInetCacheHints_Impl, - { + pub const fn new() -> IWinInetCacheHints_Vtbl { + unsafe extern "system" fn SetCacheExtension(this: *mut core::ffi::c_void, pwzext: windows_core::PCWSTR, pszcachefile: *mut core::ffi::c_void, pcbcachefile: *mut u32, pdwwinineterror: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinInetCacheHints_Impl::SetCacheExtension(this, core::mem::transmute(&pwzext), core::mem::transmute_copy(&pszcachefile), core::mem::transmute_copy(&pcbcachefile), core::mem::transmute_copy(&pdwwinineterror), core::mem::transmute_copy(&pdwreserved)).into() } @@ -1621,14 +1195,8 @@ pub trait IWinInetCacheHints2_Impl: Sized + IWinInetCacheHints_Impl { } impl windows_core::RuntimeName for IWinInetCacheHints2 {} impl IWinInetCacheHints2_Vtbl { - pub const fn new() -> IWinInetCacheHints2_Vtbl - where - Identity: IWinInetCacheHints2_Impl, - { - unsafe extern "system" fn SetCacheExtension2(this: *mut core::ffi::c_void, pwzext: windows_core::PCWSTR, pwzcachefile: windows_core::PWSTR, pcchcachefile: *mut u32, pdwwinineterror: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT - where - Identity: IWinInetCacheHints2_Impl, - { + pub const fn new() -> IWinInetCacheHints2_Vtbl { + unsafe extern "system" fn SetCacheExtension2(this: *mut core::ffi::c_void, pwzext: windows_core::PCWSTR, pwzcachefile: windows_core::PWSTR, pcchcachefile: *mut u32, pdwwinineterror: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinInetCacheHints2_Impl::SetCacheExtension2(this, core::mem::transmute(&pwzext), core::mem::transmute_copy(&pwzcachefile), core::mem::transmute_copy(&pcchcachefile), core::mem::transmute_copy(&pdwwinineterror), core::mem::transmute_copy(&pdwreserved)).into() } @@ -1638,27 +1206,18 @@ impl IWinInetCacheHints2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWinInetFileStream_Impl: Sized { +pub trait IWinInetFileStream_Impl: Sized + windows_core::IUnknownImpl { fn SetHandleForUnlock(&self, hwininetlockhandle: usize, dwreserved: usize) -> windows_core::Result<()>; fn SetDeleteFile(&self, dwreserved: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWinInetFileStream {} impl IWinInetFileStream_Vtbl { - pub const fn new() -> IWinInetFileStream_Vtbl - where - Identity: IWinInetFileStream_Impl, - { - unsafe extern "system" fn SetHandleForUnlock(this: *mut core::ffi::c_void, hwininetlockhandle: usize, dwreserved: usize) -> windows_core::HRESULT - where - Identity: IWinInetFileStream_Impl, - { + pub const fn new() -> IWinInetFileStream_Vtbl { + unsafe extern "system" fn SetHandleForUnlock(this: *mut core::ffi::c_void, hwininetlockhandle: usize, dwreserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinInetFileStream_Impl::SetHandleForUnlock(this, core::mem::transmute_copy(&hwininetlockhandle), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn SetDeleteFile(this: *mut core::ffi::c_void, dwreserved: usize) -> windows_core::HRESULT - where - Identity: IWinInetFileStream_Impl, - { + unsafe extern "system" fn SetDeleteFile(this: *mut core::ffi::c_void, dwreserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinInetFileStream_Impl::SetDeleteFile(this, core::mem::transmute_copy(&dwreserved)).into() } @@ -1677,14 +1236,8 @@ pub trait IWinInetHttpInfo_Impl: Sized + IWinInetInfo_Impl { } impl windows_core::RuntimeName for IWinInetHttpInfo {} impl IWinInetHttpInfo_Vtbl { - pub const fn new() -> IWinInetHttpInfo_Vtbl - where - Identity: IWinInetHttpInfo_Impl, - { - unsafe extern "system" fn QueryInfo(this: *mut core::ffi::c_void, dwoption: u32, pbuffer: *mut core::ffi::c_void, pcbbuf: *mut u32, pdwflags: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT - where - Identity: IWinInetHttpInfo_Impl, - { + pub const fn new() -> IWinInetHttpInfo_Vtbl { + unsafe extern "system" fn QueryInfo(this: *mut core::ffi::c_void, dwoption: u32, pbuffer: *mut core::ffi::c_void, pcbbuf: *mut u32, pdwflags: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinInetHttpInfo_Impl::QueryInfo(this, core::mem::transmute_copy(&dwoption), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&pcbbuf), core::mem::transmute_copy(&pdwflags), core::mem::transmute_copy(&pdwreserved)).into() } @@ -1694,19 +1247,13 @@ impl IWinInetHttpInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWinInetHttpTimeouts_Impl: Sized { +pub trait IWinInetHttpTimeouts_Impl: Sized + windows_core::IUnknownImpl { fn GetRequestTimeouts(&self, pdwconnecttimeout: *mut u32, pdwsendtimeout: *mut u32, pdwreceivetimeout: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWinInetHttpTimeouts {} impl IWinInetHttpTimeouts_Vtbl { - pub const fn new() -> IWinInetHttpTimeouts_Vtbl - where - Identity: IWinInetHttpTimeouts_Impl, - { - unsafe extern "system" fn GetRequestTimeouts(this: *mut core::ffi::c_void, pdwconnecttimeout: *mut u32, pdwsendtimeout: *mut u32, pdwreceivetimeout: *mut u32) -> windows_core::HRESULT - where - Identity: IWinInetHttpTimeouts_Impl, - { + pub const fn new() -> IWinInetHttpTimeouts_Vtbl { + unsafe extern "system" fn GetRequestTimeouts(this: *mut core::ffi::c_void, pdwconnecttimeout: *mut u32, pdwsendtimeout: *mut u32, pdwreceivetimeout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinInetHttpTimeouts_Impl::GetRequestTimeouts(this, core::mem::transmute_copy(&pdwconnecttimeout), core::mem::transmute_copy(&pdwsendtimeout), core::mem::transmute_copy(&pdwreceivetimeout)).into() } @@ -1716,19 +1263,13 @@ impl IWinInetHttpTimeouts_Vtbl { iid == &::IID } } -pub trait IWinInetInfo_Impl: Sized { +pub trait IWinInetInfo_Impl: Sized + windows_core::IUnknownImpl { fn QueryOption(&self, dwoption: u32, pbuffer: *mut core::ffi::c_void, pcbbuf: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWinInetInfo {} impl IWinInetInfo_Vtbl { - pub const fn new() -> IWinInetInfo_Vtbl - where - Identity: IWinInetInfo_Impl, - { - unsafe extern "system" fn QueryOption(this: *mut core::ffi::c_void, dwoption: u32, pbuffer: *mut core::ffi::c_void, pcbbuf: *mut u32) -> windows_core::HRESULT - where - Identity: IWinInetInfo_Impl, - { + pub const fn new() -> IWinInetInfo_Vtbl { + unsafe extern "system" fn QueryOption(this: *mut core::ffi::c_void, dwoption: u32, pbuffer: *mut core::ffi::c_void, pcbbuf: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWinInetInfo_Impl::QueryOption(this, core::mem::transmute_copy(&dwoption), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&pcbbuf)).into() } @@ -1738,19 +1279,13 @@ impl IWinInetInfo_Vtbl { iid == &::IID } } -pub trait IWindowForBindingUI_Impl: Sized { +pub trait IWindowForBindingUI_Impl: Sized + windows_core::IUnknownImpl { fn GetWindow(&self, rguidreason: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IWindowForBindingUI {} impl IWindowForBindingUI_Vtbl { - pub const fn new() -> IWindowForBindingUI_Vtbl - where - Identity: IWindowForBindingUI_Impl, - { - unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, rguidreason: *const windows_core::GUID, phwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IWindowForBindingUI_Impl, - { + pub const fn new() -> IWindowForBindingUI_Vtbl { + unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, rguidreason: *const windows_core::GUID, phwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowForBindingUI_Impl::GetWindow(this, core::mem::transmute_copy(&rguidreason)) { Ok(ok__) => { @@ -1766,19 +1301,13 @@ impl IWindowForBindingUI_Vtbl { iid == &::IID } } -pub trait IWrappedProtocol_Impl: Sized { +pub trait IWrappedProtocol_Impl: Sized + windows_core::IUnknownImpl { fn GetWrapperCode(&self, pncode: *mut i32, dwreserved: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWrappedProtocol {} impl IWrappedProtocol_Vtbl { - pub const fn new() -> IWrappedProtocol_Vtbl - where - Identity: IWrappedProtocol_Impl, - { - unsafe extern "system" fn GetWrapperCode(this: *mut core::ffi::c_void, pncode: *mut i32, dwreserved: usize) -> windows_core::HRESULT - where - Identity: IWrappedProtocol_Impl, - { + pub const fn new() -> IWrappedProtocol_Vtbl { + unsafe extern "system" fn GetWrapperCode(this: *mut core::ffi::c_void, pncode: *mut i32, dwreserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWrappedProtocol_Impl::GetWrapperCode(this, core::mem::transmute_copy(&pncode), core::mem::transmute_copy(&dwreserved)).into() } @@ -1788,21 +1317,15 @@ impl IWrappedProtocol_Vtbl { iid == &::IID } } -pub trait IZoneIdentifier_Impl: Sized { +pub trait IZoneIdentifier_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> windows_core::Result; fn SetId(&self, dwzone: u32) -> windows_core::Result<()>; fn Remove(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IZoneIdentifier {} impl IZoneIdentifier_Vtbl { - pub const fn new() -> IZoneIdentifier_Vtbl - where - Identity: IZoneIdentifier_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, pdwzone: *mut u32) -> windows_core::HRESULT - where - Identity: IZoneIdentifier_Impl, - { + pub const fn new() -> IZoneIdentifier_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, pdwzone: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IZoneIdentifier_Impl::GetId(this) { Ok(ok__) => { @@ -1812,17 +1335,11 @@ impl IZoneIdentifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, dwzone: u32) -> windows_core::HRESULT - where - Identity: IZoneIdentifier_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, dwzone: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IZoneIdentifier_Impl::SetId(this, core::mem::transmute_copy(&dwzone)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IZoneIdentifier_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IZoneIdentifier_Impl::Remove(this).into() } @@ -1847,14 +1364,8 @@ pub trait IZoneIdentifier2_Impl: Sized + IZoneIdentifier_Impl { } impl windows_core::RuntimeName for IZoneIdentifier2 {} impl IZoneIdentifier2_Vtbl { - pub const fn new() -> IZoneIdentifier2_Vtbl - where - Identity: IZoneIdentifier2_Impl, - { - unsafe extern "system" fn GetLastWriterPackageFamilyName(this: *mut core::ffi::c_void, packagefamilyname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IZoneIdentifier2_Impl, - { + pub const fn new() -> IZoneIdentifier2_Vtbl { + unsafe extern "system" fn GetLastWriterPackageFamilyName(this: *mut core::ffi::c_void, packagefamilyname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IZoneIdentifier2_Impl::GetLastWriterPackageFamilyName(this) { Ok(ok__) => { @@ -1864,24 +1375,15 @@ impl IZoneIdentifier2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLastWriterPackageFamilyName(this: *mut core::ffi::c_void, packagefamilyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IZoneIdentifier2_Impl, - { + unsafe extern "system" fn SetLastWriterPackageFamilyName(this: *mut core::ffi::c_void, packagefamilyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IZoneIdentifier2_Impl::SetLastWriterPackageFamilyName(this, core::mem::transmute(&packagefamilyname)).into() } - unsafe extern "system" fn RemoveLastWriterPackageFamilyName(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IZoneIdentifier2_Impl, - { + unsafe extern "system" fn RemoveLastWriterPackageFamilyName(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IZoneIdentifier2_Impl::RemoveLastWriterPackageFamilyName(this).into() } - unsafe extern "system" fn GetAppZoneId(this: *mut core::ffi::c_void, zone: *mut u32) -> windows_core::HRESULT - where - Identity: IZoneIdentifier2_Impl, - { + unsafe extern "system" fn GetAppZoneId(this: *mut core::ffi::c_void, zone: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IZoneIdentifier2_Impl::GetAppZoneId(this) { Ok(ok__) => { @@ -1891,17 +1393,11 @@ impl IZoneIdentifier2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAppZoneId(this: *mut core::ffi::c_void, zone: u32) -> windows_core::HRESULT - where - Identity: IZoneIdentifier2_Impl, - { + unsafe extern "system" fn SetAppZoneId(this: *mut core::ffi::c_void, zone: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IZoneIdentifier2_Impl::SetAppZoneId(this, core::mem::transmute_copy(&zone)).into() } - unsafe extern "system" fn RemoveAppZoneId(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IZoneIdentifier2_Impl, - { + unsafe extern "system" fn RemoveAppZoneId(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IZoneIdentifier2_Impl::RemoveAppZoneId(this).into() } 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 2a6ad54770..0b0fa91e04 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] -pub trait AsyncIAdviseSink_Impl: Sized { +pub trait AsyncIAdviseSink_Impl: Sized + windows_core::IUnknownImpl { fn Begin_OnDataChange(&self, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM); fn Finish_OnDataChange(&self); fn Begin_OnViewChange(&self, dwaspect: u32, lindex: i32); @@ -15,77 +15,44 @@ pub trait AsyncIAdviseSink_Impl: Sized { impl windows_core::RuntimeName for AsyncIAdviseSink {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl AsyncIAdviseSink_Vtbl { - pub const fn new() -> AsyncIAdviseSink_Vtbl - where - Identity: AsyncIAdviseSink_Impl, - { - unsafe extern "system" fn Begin_OnDataChange(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM) - where - Identity: AsyncIAdviseSink_Impl, - { + pub const fn new() -> AsyncIAdviseSink_Vtbl { + unsafe extern "system" fn Begin_OnDataChange(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink_Impl::Begin_OnDataChange(this, core::mem::transmute_copy(&pformatetc), core::mem::transmute_copy(&pstgmed)) } - unsafe extern "system" fn Finish_OnDataChange(this: *mut core::ffi::c_void) - where - Identity: AsyncIAdviseSink_Impl, - { + unsafe extern "system" fn Finish_OnDataChange(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink_Impl::Finish_OnDataChange(this) } - unsafe extern "system" fn Begin_OnViewChange(this: *mut core::ffi::c_void, dwaspect: u32, lindex: i32) - where - Identity: AsyncIAdviseSink_Impl, - { + unsafe extern "system" fn Begin_OnViewChange(this: *mut core::ffi::c_void, dwaspect: u32, lindex: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink_Impl::Begin_OnViewChange(this, core::mem::transmute_copy(&dwaspect), core::mem::transmute_copy(&lindex)) } - unsafe extern "system" fn Finish_OnViewChange(this: *mut core::ffi::c_void) - where - Identity: AsyncIAdviseSink_Impl, - { + unsafe extern "system" fn Finish_OnViewChange(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink_Impl::Finish_OnViewChange(this) } - unsafe extern "system" fn Begin_OnRename(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) - where - Identity: AsyncIAdviseSink_Impl, - { + unsafe extern "system" fn Begin_OnRename(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink_Impl::Begin_OnRename(this, windows_core::from_raw_borrowed(&pmk)) } - unsafe extern "system" fn Finish_OnRename(this: *mut core::ffi::c_void) - where - Identity: AsyncIAdviseSink_Impl, - { + unsafe extern "system" fn Finish_OnRename(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink_Impl::Finish_OnRename(this) } - unsafe extern "system" fn Begin_OnSave(this: *mut core::ffi::c_void) - where - Identity: AsyncIAdviseSink_Impl, - { + unsafe extern "system" fn Begin_OnSave(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink_Impl::Begin_OnSave(this) } - unsafe extern "system" fn Finish_OnSave(this: *mut core::ffi::c_void) - where - Identity: AsyncIAdviseSink_Impl, - { + unsafe extern "system" fn Finish_OnSave(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink_Impl::Finish_OnSave(this) } - unsafe extern "system" fn Begin_OnClose(this: *mut core::ffi::c_void) - where - Identity: AsyncIAdviseSink_Impl, - { + unsafe extern "system" fn Begin_OnClose(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink_Impl::Begin_OnClose(this) } - unsafe extern "system" fn Finish_OnClose(this: *mut core::ffi::c_void) - where - Identity: AsyncIAdviseSink_Impl, - { + unsafe extern "system" fn Finish_OnClose(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink_Impl::Finish_OnClose(this) } @@ -116,21 +83,12 @@ pub trait AsyncIAdviseSink2_Impl: Sized + AsyncIAdviseSink_Impl { impl windows_core::RuntimeName for AsyncIAdviseSink2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl AsyncIAdviseSink2_Vtbl { - pub const fn new() -> AsyncIAdviseSink2_Vtbl - where - Identity: AsyncIAdviseSink2_Impl, - { - unsafe extern "system" fn Begin_OnLinkSrcChange(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) - where - Identity: AsyncIAdviseSink2_Impl, - { + pub const fn new() -> AsyncIAdviseSink2_Vtbl { + unsafe extern "system" fn Begin_OnLinkSrcChange(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink2_Impl::Begin_OnLinkSrcChange(this, windows_core::from_raw_borrowed(&pmk)) } - unsafe extern "system" fn Finish_OnLinkSrcChange(this: *mut core::ffi::c_void) - where - Identity: AsyncIAdviseSink2_Impl, - { + unsafe extern "system" fn Finish_OnLinkSrcChange(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIAdviseSink2_Impl::Finish_OnLinkSrcChange(this) } @@ -144,27 +102,18 @@ impl AsyncIAdviseSink2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait AsyncIMultiQI_Impl: Sized { +pub trait AsyncIMultiQI_Impl: Sized + windows_core::IUnknownImpl { fn Begin_QueryMultipleInterfaces(&self, cmqis: u32, pmqis: *mut MULTI_QI) -> windows_core::Result<()>; fn Finish_QueryMultipleInterfaces(&self, pmqis: *mut MULTI_QI) -> windows_core::Result<()>; } impl windows_core::RuntimeName for AsyncIMultiQI {} impl AsyncIMultiQI_Vtbl { - pub const fn new() -> AsyncIMultiQI_Vtbl - where - Identity: AsyncIMultiQI_Impl, - { - unsafe extern "system" fn Begin_QueryMultipleInterfaces(this: *mut core::ffi::c_void, cmqis: u32, pmqis: *mut MULTI_QI) -> windows_core::HRESULT - where - Identity: AsyncIMultiQI_Impl, - { + pub const fn new() -> AsyncIMultiQI_Vtbl { + unsafe extern "system" fn Begin_QueryMultipleInterfaces(this: *mut core::ffi::c_void, cmqis: u32, pmqis: *mut MULTI_QI) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIMultiQI_Impl::Begin_QueryMultipleInterfaces(this, core::mem::transmute_copy(&cmqis), core::mem::transmute_copy(&pmqis)).into() } - unsafe extern "system" fn Finish_QueryMultipleInterfaces(this: *mut core::ffi::c_void, pmqis: *mut MULTI_QI) -> windows_core::HRESULT - where - Identity: AsyncIMultiQI_Impl, - { + unsafe extern "system" fn Finish_QueryMultipleInterfaces(this: *mut core::ffi::c_void, pmqis: *mut MULTI_QI) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIMultiQI_Impl::Finish_QueryMultipleInterfaces(this, core::mem::transmute_copy(&pmqis)).into() } @@ -178,7 +127,7 @@ impl AsyncIMultiQI_Vtbl { iid == &::IID } } -pub trait AsyncIPipeByte_Impl: Sized { +pub trait AsyncIPipeByte_Impl: Sized + windows_core::IUnknownImpl { fn Begin_Pull(&self, crequest: u32) -> windows_core::Result<()>; fn Finish_Pull(&self, buf: *mut u8, pcreturned: *mut u32) -> windows_core::Result<()>; fn Begin_Push(&self, buf: *const u8, csent: u32) -> windows_core::Result<()>; @@ -186,35 +135,20 @@ pub trait AsyncIPipeByte_Impl: Sized { } impl windows_core::RuntimeName for AsyncIPipeByte {} impl AsyncIPipeByte_Vtbl { - pub const fn new() -> AsyncIPipeByte_Vtbl - where - Identity: AsyncIPipeByte_Impl, - { - unsafe extern "system" fn Begin_Pull(this: *mut core::ffi::c_void, crequest: u32) -> windows_core::HRESULT - where - Identity: AsyncIPipeByte_Impl, - { + pub const fn new() -> AsyncIPipeByte_Vtbl { + unsafe extern "system" fn Begin_Pull(this: *mut core::ffi::c_void, crequest: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeByte_Impl::Begin_Pull(this, core::mem::transmute_copy(&crequest)).into() } - unsafe extern "system" fn Finish_Pull(this: *mut core::ffi::c_void, buf: *mut u8, pcreturned: *mut u32) -> windows_core::HRESULT - where - Identity: AsyncIPipeByte_Impl, - { + unsafe extern "system" fn Finish_Pull(this: *mut core::ffi::c_void, buf: *mut u8, pcreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeByte_Impl::Finish_Pull(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&pcreturned)).into() } - unsafe extern "system" fn Begin_Push(this: *mut core::ffi::c_void, buf: *const u8, csent: u32) -> windows_core::HRESULT - where - Identity: AsyncIPipeByte_Impl, - { + unsafe extern "system" fn Begin_Push(this: *mut core::ffi::c_void, buf: *const u8, csent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeByte_Impl::Begin_Push(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&csent)).into() } - unsafe extern "system" fn Finish_Push(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIPipeByte_Impl, - { + unsafe extern "system" fn Finish_Push(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeByte_Impl::Finish_Push(this).into() } @@ -230,7 +164,7 @@ impl AsyncIPipeByte_Vtbl { iid == &::IID } } -pub trait AsyncIPipeDouble_Impl: Sized { +pub trait AsyncIPipeDouble_Impl: Sized + windows_core::IUnknownImpl { fn Begin_Pull(&self, crequest: u32) -> windows_core::Result<()>; fn Finish_Pull(&self, buf: *mut f64, pcreturned: *mut u32) -> windows_core::Result<()>; fn Begin_Push(&self, buf: *const f64, csent: u32) -> windows_core::Result<()>; @@ -238,35 +172,20 @@ pub trait AsyncIPipeDouble_Impl: Sized { } impl windows_core::RuntimeName for AsyncIPipeDouble {} impl AsyncIPipeDouble_Vtbl { - pub const fn new() -> AsyncIPipeDouble_Vtbl - where - Identity: AsyncIPipeDouble_Impl, - { - unsafe extern "system" fn Begin_Pull(this: *mut core::ffi::c_void, crequest: u32) -> windows_core::HRESULT - where - Identity: AsyncIPipeDouble_Impl, - { + pub const fn new() -> AsyncIPipeDouble_Vtbl { + unsafe extern "system" fn Begin_Pull(this: *mut core::ffi::c_void, crequest: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeDouble_Impl::Begin_Pull(this, core::mem::transmute_copy(&crequest)).into() } - unsafe extern "system" fn Finish_Pull(this: *mut core::ffi::c_void, buf: *mut f64, pcreturned: *mut u32) -> windows_core::HRESULT - where - Identity: AsyncIPipeDouble_Impl, - { + unsafe extern "system" fn Finish_Pull(this: *mut core::ffi::c_void, buf: *mut f64, pcreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeDouble_Impl::Finish_Pull(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&pcreturned)).into() } - unsafe extern "system" fn Begin_Push(this: *mut core::ffi::c_void, buf: *const f64, csent: u32) -> windows_core::HRESULT - where - Identity: AsyncIPipeDouble_Impl, - { + unsafe extern "system" fn Begin_Push(this: *mut core::ffi::c_void, buf: *const f64, csent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeDouble_Impl::Begin_Push(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&csent)).into() } - unsafe extern "system" fn Finish_Push(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIPipeDouble_Impl, - { + unsafe extern "system" fn Finish_Push(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeDouble_Impl::Finish_Push(this).into() } @@ -282,7 +201,7 @@ impl AsyncIPipeDouble_Vtbl { iid == &::IID } } -pub trait AsyncIPipeLong_Impl: Sized { +pub trait AsyncIPipeLong_Impl: Sized + windows_core::IUnknownImpl { fn Begin_Pull(&self, crequest: u32) -> windows_core::Result<()>; fn Finish_Pull(&self, buf: *mut i32, pcreturned: *mut u32) -> windows_core::Result<()>; fn Begin_Push(&self, buf: *const i32, csent: u32) -> windows_core::Result<()>; @@ -290,35 +209,20 @@ pub trait AsyncIPipeLong_Impl: Sized { } impl windows_core::RuntimeName for AsyncIPipeLong {} impl AsyncIPipeLong_Vtbl { - pub const fn new() -> AsyncIPipeLong_Vtbl - where - Identity: AsyncIPipeLong_Impl, - { - unsafe extern "system" fn Begin_Pull(this: *mut core::ffi::c_void, crequest: u32) -> windows_core::HRESULT - where - Identity: AsyncIPipeLong_Impl, - { + pub const fn new() -> AsyncIPipeLong_Vtbl { + unsafe extern "system" fn Begin_Pull(this: *mut core::ffi::c_void, crequest: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeLong_Impl::Begin_Pull(this, core::mem::transmute_copy(&crequest)).into() } - unsafe extern "system" fn Finish_Pull(this: *mut core::ffi::c_void, buf: *mut i32, pcreturned: *mut u32) -> windows_core::HRESULT - where - Identity: AsyncIPipeLong_Impl, - { + unsafe extern "system" fn Finish_Pull(this: *mut core::ffi::c_void, buf: *mut i32, pcreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeLong_Impl::Finish_Pull(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&pcreturned)).into() } - unsafe extern "system" fn Begin_Push(this: *mut core::ffi::c_void, buf: *const i32, csent: u32) -> windows_core::HRESULT - where - Identity: AsyncIPipeLong_Impl, - { + unsafe extern "system" fn Begin_Push(this: *mut core::ffi::c_void, buf: *const i32, csent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeLong_Impl::Begin_Push(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&csent)).into() } - unsafe extern "system" fn Finish_Push(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIPipeLong_Impl, - { + unsafe extern "system" fn Finish_Push(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIPipeLong_Impl::Finish_Push(this).into() } @@ -334,7 +238,7 @@ impl AsyncIPipeLong_Vtbl { iid == &::IID } } -pub trait AsyncIUnknown_Impl: Sized { +pub trait AsyncIUnknown_Impl: Sized + windows_core::IUnknownImpl { fn Begin_QueryInterface(&self, riid: *const windows_core::GUID) -> windows_core::Result<()>; fn Finish_QueryInterface(&self, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Begin_AddRef(&self) -> windows_core::Result<()>; @@ -344,49 +248,28 @@ pub trait AsyncIUnknown_Impl: Sized { } impl windows_core::RuntimeName for AsyncIUnknown {} impl AsyncIUnknown_Vtbl { - pub const fn new() -> AsyncIUnknown_Vtbl - where - Identity: AsyncIUnknown_Impl, - { - unsafe extern "system" fn Begin_QueryInterface(this: *mut core::ffi::c_void, riid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: AsyncIUnknown_Impl, - { + pub const fn new() -> AsyncIUnknown_Vtbl { + unsafe extern "system" fn Begin_QueryInterface(this: *mut core::ffi::c_void, riid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIUnknown_Impl::Begin_QueryInterface(this, core::mem::transmute_copy(&riid)).into() } - unsafe extern "system" fn Finish_QueryInterface(this: *mut core::ffi::c_void, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIUnknown_Impl, - { + unsafe extern "system" fn Finish_QueryInterface(this: *mut core::ffi::c_void, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIUnknown_Impl::Finish_QueryInterface(this, core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn Begin_AddRef(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIUnknown_Impl, - { + unsafe extern "system" fn Begin_AddRef(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIUnknown_Impl::Begin_AddRef(this).into() } - unsafe extern "system" fn Finish_AddRef(this: *mut core::ffi::c_void) -> u32 - where - Identity: AsyncIUnknown_Impl, - { + unsafe extern "system" fn Finish_AddRef(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIUnknown_Impl::Finish_AddRef(this) } - unsafe extern "system" fn Begin_Release(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIUnknown_Impl, - { + unsafe extern "system" fn Begin_Release(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIUnknown_Impl::Begin_Release(this).into() } - unsafe extern "system" fn Finish_Release(this: *mut core::ffi::c_void) -> u32 - where - Identity: AsyncIUnknown_Impl, - { + unsafe extern "system" fn Finish_Release(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIUnknown_Impl::Finish_Release(this) } @@ -404,19 +287,13 @@ impl AsyncIUnknown_Vtbl { iid == &::IID } } -pub trait IActivationFilter_Impl: Sized { +pub trait IActivationFilter_Impl: Sized + windows_core::IUnknownImpl { fn HandleActivation(&self, dwactivationtype: u32, rclsid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IActivationFilter {} impl IActivationFilter_Vtbl { - pub const fn new() -> IActivationFilter_Vtbl - where - Identity: IActivationFilter_Impl, - { - unsafe extern "system" fn HandleActivation(this: *mut core::ffi::c_void, dwactivationtype: u32, rclsid: *const windows_core::GUID, preplacementclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IActivationFilter_Impl, - { + pub const fn new() -> IActivationFilter_Vtbl { + unsafe extern "system" fn HandleActivation(this: *mut core::ffi::c_void, dwactivationtype: u32, rclsid: *const windows_core::GUID, preplacementclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActivationFilter_Impl::HandleActivation(this, core::mem::transmute_copy(&dwactivationtype), core::mem::transmute_copy(&rclsid)) { Ok(ok__) => { @@ -432,27 +309,18 @@ impl IActivationFilter_Vtbl { iid == &::IID } } -pub trait IAddrExclusionControl_Impl: Sized { +pub trait IAddrExclusionControl_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentAddrExclusionList(&self, riid: *const windows_core::GUID, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn UpdateAddrExclusionList(&self, penumerator: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAddrExclusionControl {} impl IAddrExclusionControl_Vtbl { - pub const fn new() -> IAddrExclusionControl_Vtbl - where - Identity: IAddrExclusionControl_Impl, - { - unsafe extern "system" fn GetCurrentAddrExclusionList(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAddrExclusionControl_Impl, - { + pub const fn new() -> IAddrExclusionControl_Vtbl { + unsafe extern "system" fn GetCurrentAddrExclusionList(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrExclusionControl_Impl::GetCurrentAddrExclusionList(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppenumerator)).into() } - unsafe extern "system" fn UpdateAddrExclusionList(this: *mut core::ffi::c_void, penumerator: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAddrExclusionControl_Impl, - { + unsafe extern "system" fn UpdateAddrExclusionList(this: *mut core::ffi::c_void, penumerator: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrExclusionControl_Impl::UpdateAddrExclusionList(this, windows_core::from_raw_borrowed(&penumerator)).into() } @@ -466,27 +334,18 @@ impl IAddrExclusionControl_Vtbl { iid == &::IID } } -pub trait IAddrTrackingControl_Impl: Sized { +pub trait IAddrTrackingControl_Impl: Sized + windows_core::IUnknownImpl { fn EnableCOMDynamicAddrTracking(&self) -> windows_core::Result<()>; fn DisableCOMDynamicAddrTracking(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAddrTrackingControl {} impl IAddrTrackingControl_Vtbl { - pub const fn new() -> IAddrTrackingControl_Vtbl - where - Identity: IAddrTrackingControl_Impl, - { - unsafe extern "system" fn EnableCOMDynamicAddrTracking(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAddrTrackingControl_Impl, - { + pub const fn new() -> IAddrTrackingControl_Vtbl { + unsafe extern "system" fn EnableCOMDynamicAddrTracking(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrTrackingControl_Impl::EnableCOMDynamicAddrTracking(this).into() } - unsafe extern "system" fn DisableCOMDynamicAddrTracking(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAddrTrackingControl_Impl, - { + unsafe extern "system" fn DisableCOMDynamicAddrTracking(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAddrTrackingControl_Impl::DisableCOMDynamicAddrTracking(this).into() } @@ -501,7 +360,7 @@ impl IAddrTrackingControl_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IAdviseSink_Impl: Sized { +pub trait IAdviseSink_Impl: Sized + windows_core::IUnknownImpl { fn OnDataChange(&self, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM); fn OnViewChange(&self, dwaspect: u32, lindex: i32); fn OnRename(&self, pmk: Option<&IMoniker>); @@ -512,42 +371,24 @@ pub trait IAdviseSink_Impl: Sized { impl windows_core::RuntimeName for IAdviseSink {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl IAdviseSink_Vtbl { - pub const fn new() -> IAdviseSink_Vtbl - where - Identity: IAdviseSink_Impl, - { - unsafe extern "system" fn OnDataChange(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM) - where - Identity: IAdviseSink_Impl, - { + pub const fn new() -> IAdviseSink_Vtbl { + unsafe extern "system" fn OnDataChange(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdviseSink_Impl::OnDataChange(this, core::mem::transmute_copy(&pformatetc), core::mem::transmute_copy(&pstgmed)) } - unsafe extern "system" fn OnViewChange(this: *mut core::ffi::c_void, dwaspect: u32, lindex: i32) - where - Identity: IAdviseSink_Impl, - { + unsafe extern "system" fn OnViewChange(this: *mut core::ffi::c_void, dwaspect: u32, lindex: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdviseSink_Impl::OnViewChange(this, core::mem::transmute_copy(&dwaspect), core::mem::transmute_copy(&lindex)) } - unsafe extern "system" fn OnRename(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) - where - Identity: IAdviseSink_Impl, - { + unsafe extern "system" fn OnRename(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdviseSink_Impl::OnRename(this, windows_core::from_raw_borrowed(&pmk)) } - unsafe extern "system" fn OnSave(this: *mut core::ffi::c_void) - where - Identity: IAdviseSink_Impl, - { + unsafe extern "system" fn OnSave(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdviseSink_Impl::OnSave(this) } - unsafe extern "system" fn OnClose(this: *mut core::ffi::c_void) - where - Identity: IAdviseSink_Impl, - { + unsafe extern "system" fn OnClose(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdviseSink_Impl::OnClose(this) } @@ -572,14 +413,8 @@ pub trait IAdviseSink2_Impl: Sized + IAdviseSink_Impl { impl windows_core::RuntimeName for IAdviseSink2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl IAdviseSink2_Vtbl { - pub const fn new() -> IAdviseSink2_Vtbl - where - Identity: IAdviseSink2_Impl, - { - unsafe extern "system" fn OnLinkSrcChange(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) - where - Identity: IAdviseSink2_Impl, - { + pub const fn new() -> IAdviseSink2_Vtbl { + unsafe extern "system" fn OnLinkSrcChange(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdviseSink2_Impl::OnLinkSrcChange(this, windows_core::from_raw_borrowed(&pmk)) } @@ -589,48 +424,33 @@ impl IAdviseSink2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAgileObject_Impl: Sized {} +pub trait IAgileObject_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IAgileObject {} impl IAgileObject_Vtbl { - pub const fn new() -> IAgileObject_Vtbl - where - Identity: IAgileObject_Impl, - { + pub const fn new() -> IAgileObject_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IAsyncManager_Impl: Sized { +pub trait IAsyncManager_Impl: Sized + windows_core::IUnknownImpl { fn CompleteCall(&self, result: windows_core::HRESULT) -> windows_core::Result<()>; fn GetCallContext(&self, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetState(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IAsyncManager {} impl IAsyncManager_Vtbl { - pub const fn new() -> IAsyncManager_Vtbl - where - Identity: IAsyncManager_Impl, - { - unsafe extern "system" fn CompleteCall(this: *mut core::ffi::c_void, result: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IAsyncManager_Impl, - { + pub const fn new() -> IAsyncManager_Vtbl { + unsafe extern "system" fn CompleteCall(this: *mut core::ffi::c_void, result: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncManager_Impl::CompleteCall(this, core::mem::transmute_copy(&result)).into() } - unsafe extern "system" fn GetCallContext(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncManager_Impl, - { + unsafe extern "system" fn GetCallContext(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncManager_Impl::GetCallContext(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pinterface)).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pulstateflags: *mut u32) -> windows_core::HRESULT - where - Identity: IAsyncManager_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pulstateflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAsyncManager_Impl::GetState(this) { Ok(ok__) => { @@ -658,28 +478,16 @@ pub trait IAsyncRpcChannelBuffer_Impl: Sized + IRpcChannelBuffer2_Impl { } impl windows_core::RuntimeName for IAsyncRpcChannelBuffer {} impl IAsyncRpcChannelBuffer_Vtbl { - pub const fn new() -> IAsyncRpcChannelBuffer_Vtbl - where - Identity: IAsyncRpcChannelBuffer_Impl, - { - unsafe extern "system" fn Send(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, psync: *mut core::ffi::c_void, pulstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IAsyncRpcChannelBuffer_Impl, - { + pub const fn new() -> IAsyncRpcChannelBuffer_Vtbl { + unsafe extern "system" fn Send(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, psync: *mut core::ffi::c_void, pulstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncRpcChannelBuffer_Impl::Send(this, core::mem::transmute_copy(&pmsg), windows_core::from_raw_borrowed(&psync), core::mem::transmute_copy(&pulstatus)).into() } - unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, pulstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IAsyncRpcChannelBuffer_Impl, - { + unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, pulstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncRpcChannelBuffer_Impl::Receive(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&pulstatus)).into() } - unsafe extern "system" fn GetDestCtxEx(this: *mut core::ffi::c_void, pmsg: *const RPCOLEMESSAGE, pdwdestcontext: *mut u32, ppvdestcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsyncRpcChannelBuffer_Impl, - { + unsafe extern "system" fn GetDestCtxEx(this: *mut core::ffi::c_void, pmsg: *const RPCOLEMESSAGE, pdwdestcontext: *mut u32, ppvdestcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncRpcChannelBuffer_Impl::GetDestCtxEx(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&pdwdestcontext), core::mem::transmute_copy(&ppvdestcontext)).into() } @@ -694,19 +502,13 @@ impl IAsyncRpcChannelBuffer_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IAuthenticate_Impl: Sized { +pub trait IAuthenticate_Impl: Sized + windows_core::IUnknownImpl { fn Authenticate(&self, phwnd: *mut super::super::Foundation::HWND, pszusername: *mut windows_core::PWSTR, pszpassword: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAuthenticate {} impl IAuthenticate_Vtbl { - pub const fn new() -> IAuthenticate_Vtbl - where - Identity: IAuthenticate_Impl, - { - unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND, pszusername: *mut windows_core::PWSTR, pszpassword: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAuthenticate_Impl, - { + pub const fn new() -> IAuthenticate_Vtbl { + unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND, pszusername: *mut windows_core::PWSTR, pszpassword: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAuthenticate_Impl::Authenticate(this, core::mem::transmute_copy(&phwnd), core::mem::transmute_copy(&pszusername), core::mem::transmute_copy(&pszpassword)).into() } @@ -721,14 +523,8 @@ pub trait IAuthenticateEx_Impl: Sized + IAuthenticate_Impl { } impl windows_core::RuntimeName for IAuthenticateEx {} impl IAuthenticateEx_Vtbl { - pub const fn new() -> IAuthenticateEx_Vtbl - where - Identity: IAuthenticateEx_Impl, - { - unsafe extern "system" fn AuthenticateEx(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND, pszusername: *mut windows_core::PWSTR, pszpassword: *mut windows_core::PWSTR, pauthinfo: *const AUTHENTICATEINFO) -> windows_core::HRESULT - where - Identity: IAuthenticateEx_Impl, - { + pub const fn new() -> IAuthenticateEx_Vtbl { + unsafe extern "system" fn AuthenticateEx(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND, pszusername: *mut windows_core::PWSTR, pszpassword: *mut windows_core::PWSTR, pauthinfo: *const AUTHENTICATEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAuthenticateEx_Impl::AuthenticateEx(this, core::mem::transmute_copy(&phwnd), core::mem::transmute_copy(&pszusername), core::mem::transmute_copy(&pszpassword), core::mem::transmute_copy(&pauthinfo)).into() } @@ -738,7 +534,7 @@ impl IAuthenticateEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IBindCtx_Impl: Sized { +pub trait IBindCtx_Impl: Sized + windows_core::IUnknownImpl { fn RegisterObjectBound(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn RevokeObjectBound(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn ReleaseBoundObjects(&self) -> windows_core::Result<()>; @@ -752,49 +548,28 @@ pub trait IBindCtx_Impl: Sized { } impl windows_core::RuntimeName for IBindCtx {} impl IBindCtx_Vtbl { - pub const fn new() -> IBindCtx_Vtbl - where - Identity: IBindCtx_Impl, - { - unsafe extern "system" fn RegisterObjectBound(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindCtx_Impl, - { + pub const fn new() -> IBindCtx_Vtbl { + unsafe extern "system" fn RegisterObjectBound(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindCtx_Impl::RegisterObjectBound(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn RevokeObjectBound(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindCtx_Impl, - { + unsafe extern "system" fn RevokeObjectBound(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindCtx_Impl::RevokeObjectBound(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn ReleaseBoundObjects(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindCtx_Impl, - { + unsafe extern "system" fn ReleaseBoundObjects(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindCtx_Impl::ReleaseBoundObjects(this).into() } - unsafe extern "system" fn SetBindOptions(this: *mut core::ffi::c_void, pbindopts: *const BIND_OPTS) -> windows_core::HRESULT - where - Identity: IBindCtx_Impl, - { + unsafe extern "system" fn SetBindOptions(this: *mut core::ffi::c_void, pbindopts: *const BIND_OPTS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindCtx_Impl::SetBindOptions(this, core::mem::transmute_copy(&pbindopts)).into() } - unsafe extern "system" fn GetBindOptions(this: *mut core::ffi::c_void, pbindopts: *mut BIND_OPTS) -> windows_core::HRESULT - where - Identity: IBindCtx_Impl, - { + unsafe extern "system" fn GetBindOptions(this: *mut core::ffi::c_void, pbindopts: *mut BIND_OPTS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindCtx_Impl::GetBindOptions(this, core::mem::transmute_copy(&pbindopts)).into() } - unsafe extern "system" fn GetRunningObjectTable(this: *mut core::ffi::c_void, pprot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindCtx_Impl, - { + unsafe extern "system" fn GetRunningObjectTable(this: *mut core::ffi::c_void, pprot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBindCtx_Impl::GetRunningObjectTable(this) { Ok(ok__) => { @@ -804,17 +579,11 @@ impl IBindCtx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterObjectParam(this: *mut core::ffi::c_void, pszkey: windows_core::PCWSTR, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindCtx_Impl, - { + unsafe extern "system" fn RegisterObjectParam(this: *mut core::ffi::c_void, pszkey: windows_core::PCWSTR, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindCtx_Impl::RegisterObjectParam(this, core::mem::transmute(&pszkey), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn GetObjectParam(this: *mut core::ffi::c_void, pszkey: windows_core::PCWSTR, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindCtx_Impl, - { + unsafe extern "system" fn GetObjectParam(this: *mut core::ffi::c_void, pszkey: windows_core::PCWSTR, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBindCtx_Impl::GetObjectParam(this, core::mem::transmute(&pszkey)) { Ok(ok__) => { @@ -824,10 +593,7 @@ impl IBindCtx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumObjectParam(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindCtx_Impl, - { + unsafe extern "system" fn EnumObjectParam(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBindCtx_Impl::EnumObjectParam(this) { Ok(ok__) => { @@ -837,10 +603,7 @@ impl IBindCtx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RevokeObjectParam(this: *mut core::ffi::c_void, pszkey: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBindCtx_Impl, - { + unsafe extern "system" fn RevokeObjectParam(this: *mut core::ffi::c_void, pszkey: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindCtx_Impl::RevokeObjectParam(this, core::mem::transmute(&pszkey)).into() } @@ -862,35 +625,23 @@ impl IBindCtx_Vtbl { iid == &::IID } } -pub trait IBindHost_Impl: Sized { +pub trait IBindHost_Impl: Sized + windows_core::IUnknownImpl { fn CreateMoniker(&self, szname: &windows_core::PCWSTR, pbc: Option<&IBindCtx>, ppmk: *mut Option, dwreserved: u32) -> windows_core::Result<()>; fn MonikerBindToStorage(&self, pmk: Option<&IMoniker>, pbc: Option<&IBindCtx>, pbsc: Option<&IBindStatusCallback>, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn MonikerBindToObject(&self, pmk: Option<&IMoniker>, pbc: Option<&IBindCtx>, pbsc: Option<&IBindStatusCallback>, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBindHost {} impl IBindHost_Vtbl { - pub const fn new() -> IBindHost_Vtbl - where - Identity: IBindHost_Impl, - { - unsafe extern "system" fn CreateMoniker(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, pbc: *mut core::ffi::c_void, ppmk: *mut *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IBindHost_Impl, - { + pub const fn new() -> IBindHost_Vtbl { + unsafe extern "system" fn CreateMoniker(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, pbc: *mut core::ffi::c_void, ppmk: *mut *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindHost_Impl::CreateMoniker(this, core::mem::transmute(&szname), windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&ppmk), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn MonikerBindToStorage(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pbsc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindHost_Impl, - { + unsafe extern "system" fn MonikerBindToStorage(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pbsc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindHost_Impl::MonikerBindToStorage(this, windows_core::from_raw_borrowed(&pmk), windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pbsc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobj)).into() } - unsafe extern "system" fn MonikerBindToObject(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pbsc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindHost_Impl, - { + unsafe extern "system" fn MonikerBindToObject(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pbsc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindHost_Impl::MonikerBindToObject(this, windows_core::from_raw_borrowed(&pmk), windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pbsc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobj)).into() } @@ -906,7 +657,7 @@ impl IBindHost_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IBindStatusCallback_Impl: Sized { +pub trait IBindStatusCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnStartBinding(&self, dwreserved: u32, pib: Option<&IBinding>) -> windows_core::Result<()>; fn GetPriority(&self) -> windows_core::Result; fn OnLowResource(&self, reserved: u32) -> windows_core::Result<()>; @@ -920,21 +671,12 @@ pub trait IBindStatusCallback_Impl: Sized { impl windows_core::RuntimeName for IBindStatusCallback {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] impl IBindStatusCallback_Vtbl { - pub const fn new() -> IBindStatusCallback_Vtbl - where - Identity: IBindStatusCallback_Impl, - { - unsafe extern "system" fn OnStartBinding(this: *mut core::ffi::c_void, dwreserved: u32, pib: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindStatusCallback_Impl, - { + pub const fn new() -> IBindStatusCallback_Vtbl { + unsafe extern "system" fn OnStartBinding(this: *mut core::ffi::c_void, dwreserved: u32, pib: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindStatusCallback_Impl::OnStartBinding(this, core::mem::transmute_copy(&dwreserved), windows_core::from_raw_borrowed(&pib)).into() } - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pnpriority: *mut i32) -> windows_core::HRESULT - where - Identity: IBindStatusCallback_Impl, - { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pnpriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBindStatusCallback_Impl::GetPriority(this) { Ok(ok__) => { @@ -944,45 +686,27 @@ impl IBindStatusCallback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnLowResource(this: *mut core::ffi::c_void, reserved: u32) -> windows_core::HRESULT - where - Identity: IBindStatusCallback_Impl, - { + unsafe extern "system" fn OnLowResource(this: *mut core::ffi::c_void, reserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindStatusCallback_Impl::OnLowResource(this, core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, ulprogress: u32, ulprogressmax: u32, ulstatuscode: u32, szstatustext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBindStatusCallback_Impl, - { + unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, ulprogress: u32, ulprogressmax: u32, ulstatuscode: u32, szstatustext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindStatusCallback_Impl::OnProgress(this, core::mem::transmute_copy(&ulprogress), core::mem::transmute_copy(&ulprogressmax), core::mem::transmute_copy(&ulstatuscode), core::mem::transmute(&szstatustext)).into() } - unsafe extern "system" fn OnStopBinding(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, szerror: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBindStatusCallback_Impl, - { + unsafe extern "system" fn OnStopBinding(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, szerror: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindStatusCallback_Impl::OnStopBinding(this, core::mem::transmute_copy(&hresult), core::mem::transmute(&szerror)).into() } - unsafe extern "system" fn GetBindInfo(this: *mut core::ffi::c_void, grfbindf: *mut u32, pbindinfo: *mut BINDINFO) -> windows_core::HRESULT - where - Identity: IBindStatusCallback_Impl, - { + unsafe extern "system" fn GetBindInfo(this: *mut core::ffi::c_void, grfbindf: *mut u32, pbindinfo: *mut BINDINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindStatusCallback_Impl::GetBindInfo(this, core::mem::transmute_copy(&grfbindf), core::mem::transmute_copy(&pbindinfo)).into() } - unsafe extern "system" fn OnDataAvailable(this: *mut core::ffi::c_void, grfbscf: u32, dwsize: u32, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM) -> windows_core::HRESULT - where - Identity: IBindStatusCallback_Impl, - { + unsafe extern "system" fn OnDataAvailable(this: *mut core::ffi::c_void, grfbscf: u32, dwsize: u32, pformatetc: *const FORMATETC, pstgmed: *const STGMEDIUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindStatusCallback_Impl::OnDataAvailable(this, core::mem::transmute_copy(&grfbscf), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pformatetc), core::mem::transmute_copy(&pstgmed)).into() } - unsafe extern "system" fn OnObjectAvailable(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindStatusCallback_Impl, - { + unsafe extern "system" fn OnObjectAvailable(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindStatusCallback_Impl::OnObjectAvailable(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk)).into() } @@ -1010,14 +734,8 @@ pub trait IBindStatusCallbackEx_Impl: Sized + IBindStatusCallback_Impl { impl windows_core::RuntimeName for IBindStatusCallbackEx {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] impl IBindStatusCallbackEx_Vtbl { - pub const fn new() -> IBindStatusCallbackEx_Vtbl - where - Identity: IBindStatusCallbackEx_Impl, - { - unsafe extern "system" fn GetBindInfoEx(this: *mut core::ffi::c_void, grfbindf: *mut u32, pbindinfo: *mut BINDINFO, grfbindf2: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT - where - Identity: IBindStatusCallbackEx_Impl, - { + pub const fn new() -> IBindStatusCallbackEx_Vtbl { + unsafe extern "system" fn GetBindInfoEx(this: *mut core::ffi::c_void, grfbindf: *mut u32, pbindinfo: *mut BINDINFO, grfbindf2: *mut u32, pdwreserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindStatusCallbackEx_Impl::GetBindInfoEx(this, core::mem::transmute_copy(&grfbindf), core::mem::transmute_copy(&pbindinfo), core::mem::transmute_copy(&grfbindf2), core::mem::transmute_copy(&pdwreserved)).into() } @@ -1027,7 +745,7 @@ impl IBindStatusCallbackEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IBinding_Impl: Sized { +pub trait IBinding_Impl: Sized + windows_core::IUnknownImpl { fn Abort(&self) -> windows_core::Result<()>; fn Suspend(&self) -> windows_core::Result<()>; fn Resume(&self) -> windows_core::Result<()>; @@ -1037,42 +755,24 @@ pub trait IBinding_Impl: Sized { } impl windows_core::RuntimeName for IBinding {} impl IBinding_Vtbl { - pub const fn new() -> IBinding_Vtbl - where - Identity: IBinding_Impl, - { - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBinding_Impl, - { + pub const fn new() -> IBinding_Vtbl { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBinding_Impl::Abort(this).into() } - unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBinding_Impl, - { + unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBinding_Impl::Suspend(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBinding_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBinding_Impl::Resume(this).into() } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, npriority: i32) -> windows_core::HRESULT - where - Identity: IBinding_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, npriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBinding_Impl::SetPriority(this, core::mem::transmute_copy(&npriority)).into() } - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pnpriority: *mut i32) -> windows_core::HRESULT - where - Identity: IBinding_Impl, - { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pnpriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBinding_Impl::GetPriority(this) { Ok(ok__) => { @@ -1082,10 +782,7 @@ impl IBinding_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBindResult(this: *mut core::ffi::c_void, pclsidprotocol: *mut windows_core::GUID, pdwresult: *mut u32, pszresult: *mut windows_core::PWSTR, pdwreserved: *mut u32) -> windows_core::HRESULT - where - Identity: IBinding_Impl, - { + unsafe extern "system" fn GetBindResult(this: *mut core::ffi::c_void, pclsidprotocol: *mut windows_core::GUID, pdwresult: *mut u32, pszresult: *mut windows_core::PWSTR, pdwreserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBinding_Impl::GetBindResult(this, core::mem::transmute_copy(&pclsidprotocol), core::mem::transmute_copy(&pdwresult), core::mem::transmute_copy(&pszresult), core::mem::transmute_copy(&pdwreserved)).into() } @@ -1103,27 +800,18 @@ impl IBinding_Vtbl { iid == &::IID } } -pub trait IBlockingLock_Impl: Sized { +pub trait IBlockingLock_Impl: Sized + windows_core::IUnknownImpl { fn Lock(&self, dwtimeout: u32) -> windows_core::Result<()>; fn Unlock(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBlockingLock {} impl IBlockingLock_Vtbl { - pub const fn new() -> IBlockingLock_Vtbl - where - Identity: IBlockingLock_Impl, - { - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, dwtimeout: u32) -> windows_core::HRESULT - where - Identity: IBlockingLock_Impl, - { + pub const fn new() -> IBlockingLock_Vtbl { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, dwtimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBlockingLock_Impl::Lock(this, core::mem::transmute_copy(&dwtimeout)).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBlockingLock_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBlockingLock_Impl::Unlock(this).into() } @@ -1133,19 +821,13 @@ impl IBlockingLock_Vtbl { iid == &::IID } } -pub trait ICallFactory_Impl: Sized { +pub trait ICallFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateCall(&self, riid: *const windows_core::GUID, pctrlunk: Option<&windows_core::IUnknown>, riid2: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for ICallFactory {} impl ICallFactory_Vtbl { - pub const fn new() -> ICallFactory_Vtbl - where - Identity: ICallFactory_Impl, - { - unsafe extern "system" fn CreateCall(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pctrlunk: *mut core::ffi::c_void, riid2: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICallFactory_Impl, - { + pub const fn new() -> ICallFactory_Vtbl { + unsafe extern "system" fn CreateCall(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pctrlunk: *mut core::ffi::c_void, riid2: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICallFactory_Impl::CreateCall(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&pctrlunk), core::mem::transmute_copy(&riid2)) { Ok(ok__) => { @@ -1161,27 +843,18 @@ impl ICallFactory_Vtbl { iid == &::IID } } -pub trait ICancelMethodCalls_Impl: Sized { +pub trait ICancelMethodCalls_Impl: Sized + windows_core::IUnknownImpl { fn Cancel(&self, ulseconds: u32) -> windows_core::Result<()>; fn TestCancel(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICancelMethodCalls {} impl ICancelMethodCalls_Vtbl { - pub const fn new() -> ICancelMethodCalls_Vtbl - where - Identity: ICancelMethodCalls_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, ulseconds: u32) -> windows_core::HRESULT - where - Identity: ICancelMethodCalls_Impl, - { + pub const fn new() -> ICancelMethodCalls_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, ulseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICancelMethodCalls_Impl::Cancel(this, core::mem::transmute_copy(&ulseconds)).into() } - unsafe extern "system" fn TestCancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICancelMethodCalls_Impl, - { + unsafe extern "system" fn TestCancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICancelMethodCalls_Impl::TestCancel(this).into() } @@ -1191,7 +864,7 @@ impl ICancelMethodCalls_Vtbl { iid == &::IID } } -pub trait ICatInformation_Impl: Sized { +pub trait ICatInformation_Impl: Sized + windows_core::IUnknownImpl { fn EnumCategories(&self, lcid: u32) -> windows_core::Result; fn GetCategoryDesc(&self, rcatid: *const windows_core::GUID, lcid: u32) -> windows_core::Result; fn EnumClassesOfCategories(&self, cimplemented: u32, rgcatidimpl: *const windows_core::GUID, crequired: u32, rgcatidreq: *const windows_core::GUID) -> windows_core::Result; @@ -1201,14 +874,8 @@ pub trait ICatInformation_Impl: Sized { } impl windows_core::RuntimeName for ICatInformation {} impl ICatInformation_Vtbl { - pub const fn new() -> ICatInformation_Vtbl - where - Identity: ICatInformation_Impl, - { - unsafe extern "system" fn EnumCategories(this: *mut core::ffi::c_void, lcid: u32, ppenumcategoryinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatInformation_Impl, - { + pub const fn new() -> ICatInformation_Vtbl { + unsafe extern "system" fn EnumCategories(this: *mut core::ffi::c_void, lcid: u32, ppenumcategoryinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatInformation_Impl::EnumCategories(this, core::mem::transmute_copy(&lcid)) { Ok(ok__) => { @@ -1218,10 +885,7 @@ impl ICatInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCategoryDesc(this: *mut core::ffi::c_void, rcatid: *const windows_core::GUID, lcid: u32, pszdesc: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICatInformation_Impl, - { + unsafe extern "system" fn GetCategoryDesc(this: *mut core::ffi::c_void, rcatid: *const windows_core::GUID, lcid: u32, pszdesc: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatInformation_Impl::GetCategoryDesc(this, core::mem::transmute_copy(&rcatid), core::mem::transmute_copy(&lcid)) { Ok(ok__) => { @@ -1231,10 +895,7 @@ impl ICatInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumClassesOfCategories(this: *mut core::ffi::c_void, cimplemented: u32, rgcatidimpl: *const windows_core::GUID, crequired: u32, rgcatidreq: *const windows_core::GUID, ppenumclsid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatInformation_Impl, - { + unsafe extern "system" fn EnumClassesOfCategories(this: *mut core::ffi::c_void, cimplemented: u32, rgcatidimpl: *const windows_core::GUID, crequired: u32, rgcatidreq: *const windows_core::GUID, ppenumclsid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatInformation_Impl::EnumClassesOfCategories(this, core::mem::transmute_copy(&cimplemented), core::mem::transmute_copy(&rgcatidimpl), core::mem::transmute_copy(&crequired), core::mem::transmute_copy(&rgcatidreq)) { Ok(ok__) => { @@ -1244,17 +905,11 @@ impl ICatInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsClassOfCategories(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, cimplemented: u32, rgcatidimpl: *const windows_core::GUID, crequired: u32, rgcatidreq: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICatInformation_Impl, - { + unsafe extern "system" fn IsClassOfCategories(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, cimplemented: u32, rgcatidimpl: *const windows_core::GUID, crequired: u32, rgcatidreq: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatInformation_Impl::IsClassOfCategories(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&cimplemented), core::mem::transmute_copy(&rgcatidimpl), core::mem::transmute_copy(&crequired), core::mem::transmute_copy(&rgcatidreq)).into() } - unsafe extern "system" fn EnumImplCategoriesOfClass(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ppenumcatid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatInformation_Impl, - { + unsafe extern "system" fn EnumImplCategoriesOfClass(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ppenumcatid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatInformation_Impl::EnumImplCategoriesOfClass(this, core::mem::transmute_copy(&rclsid)) { Ok(ok__) => { @@ -1264,10 +919,7 @@ impl ICatInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumReqCategoriesOfClass(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ppenumcatid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatInformation_Impl, - { + unsafe extern "system" fn EnumReqCategoriesOfClass(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ppenumcatid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatInformation_Impl::EnumReqCategoriesOfClass(this, core::mem::transmute_copy(&rclsid)) { Ok(ok__) => { @@ -1291,7 +943,7 @@ impl ICatInformation_Vtbl { iid == &::IID } } -pub trait ICatRegister_Impl: Sized { +pub trait ICatRegister_Impl: Sized + windows_core::IUnknownImpl { fn RegisterCategories(&self, ccategories: u32, rgcategoryinfo: *const CATEGORYINFO) -> windows_core::Result<()>; fn UnRegisterCategories(&self, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::Result<()>; fn RegisterClassImplCategories(&self, rclsid: *const windows_core::GUID, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::Result<()>; @@ -1301,49 +953,28 @@ pub trait ICatRegister_Impl: Sized { } impl windows_core::RuntimeName for ICatRegister {} impl ICatRegister_Vtbl { - pub const fn new() -> ICatRegister_Vtbl - where - Identity: ICatRegister_Impl, - { - unsafe extern "system" fn RegisterCategories(this: *mut core::ffi::c_void, ccategories: u32, rgcategoryinfo: *const CATEGORYINFO) -> windows_core::HRESULT - where - Identity: ICatRegister_Impl, - { + pub const fn new() -> ICatRegister_Vtbl { + unsafe extern "system" fn RegisterCategories(this: *mut core::ffi::c_void, ccategories: u32, rgcategoryinfo: *const CATEGORYINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatRegister_Impl::RegisterCategories(this, core::mem::transmute_copy(&ccategories), core::mem::transmute_copy(&rgcategoryinfo)).into() } - unsafe extern "system" fn UnRegisterCategories(this: *mut core::ffi::c_void, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICatRegister_Impl, - { + unsafe extern "system" fn UnRegisterCategories(this: *mut core::ffi::c_void, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatRegister_Impl::UnRegisterCategories(this, core::mem::transmute_copy(&ccategories), core::mem::transmute_copy(&rgcatid)).into() } - unsafe extern "system" fn RegisterClassImplCategories(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICatRegister_Impl, - { + unsafe extern "system" fn RegisterClassImplCategories(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatRegister_Impl::RegisterClassImplCategories(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&ccategories), core::mem::transmute_copy(&rgcatid)).into() } - unsafe extern "system" fn UnRegisterClassImplCategories(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICatRegister_Impl, - { + unsafe extern "system" fn UnRegisterClassImplCategories(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatRegister_Impl::UnRegisterClassImplCategories(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&ccategories), core::mem::transmute_copy(&rgcatid)).into() } - unsafe extern "system" fn RegisterClassReqCategories(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICatRegister_Impl, - { + unsafe extern "system" fn RegisterClassReqCategories(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatRegister_Impl::RegisterClassReqCategories(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&ccategories), core::mem::transmute_copy(&rgcatid)).into() } - unsafe extern "system" fn UnRegisterClassReqCategories(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICatRegister_Impl, - { + unsafe extern "system" fn UnRegisterClassReqCategories(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ccategories: u32, rgcatid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatRegister_Impl::UnRegisterClassReqCategories(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&ccategories), core::mem::transmute_copy(&rgcatid)).into() } @@ -1361,7 +992,7 @@ impl ICatRegister_Vtbl { iid == &::IID } } -pub trait IChannelHook_Impl: Sized { +pub trait IChannelHook_Impl: Sized + windows_core::IUnknownImpl { fn ClientGetSize(&self, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, pdatasize: *mut u32); fn ClientFillBuffer(&self, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, pdatasize: *mut u32, pdatabuffer: *const core::ffi::c_void); fn ClientNotify(&self, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, cbdatasize: u32, pdatabuffer: *const core::ffi::c_void, ldatarep: u32, hrfault: windows_core::HRESULT); @@ -1371,49 +1002,28 @@ pub trait IChannelHook_Impl: Sized { } impl windows_core::RuntimeName for IChannelHook {} impl IChannelHook_Vtbl { - pub const fn new() -> IChannelHook_Vtbl - where - Identity: IChannelHook_Impl, - { - unsafe extern "system" fn ClientGetSize(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, pdatasize: *mut u32) - where - Identity: IChannelHook_Impl, - { + pub const fn new() -> IChannelHook_Vtbl { + unsafe extern "system" fn ClientGetSize(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, pdatasize: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelHook_Impl::ClientGetSize(this, core::mem::transmute_copy(&uextent), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pdatasize)) } - unsafe extern "system" fn ClientFillBuffer(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, pdatasize: *mut u32, pdatabuffer: *const core::ffi::c_void) - where - Identity: IChannelHook_Impl, - { + unsafe extern "system" fn ClientFillBuffer(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, pdatasize: *mut u32, pdatabuffer: *const core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelHook_Impl::ClientFillBuffer(this, core::mem::transmute_copy(&uextent), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pdatasize), core::mem::transmute_copy(&pdatabuffer)) } - unsafe extern "system" fn ClientNotify(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, cbdatasize: u32, pdatabuffer: *const core::ffi::c_void, ldatarep: u32, hrfault: windows_core::HRESULT) - where - Identity: IChannelHook_Impl, - { + unsafe extern "system" fn ClientNotify(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, cbdatasize: u32, pdatabuffer: *const core::ffi::c_void, ldatarep: u32, hrfault: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelHook_Impl::ClientNotify(this, core::mem::transmute_copy(&uextent), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cbdatasize), core::mem::transmute_copy(&pdatabuffer), core::mem::transmute_copy(&ldatarep), core::mem::transmute_copy(&hrfault)) } - unsafe extern "system" fn ServerNotify(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, cbdatasize: u32, pdatabuffer: *const core::ffi::c_void, ldatarep: u32) - where - Identity: IChannelHook_Impl, - { + unsafe extern "system" fn ServerNotify(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, cbdatasize: u32, pdatabuffer: *const core::ffi::c_void, ldatarep: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelHook_Impl::ServerNotify(this, core::mem::transmute_copy(&uextent), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cbdatasize), core::mem::transmute_copy(&pdatabuffer), core::mem::transmute_copy(&ldatarep)) } - unsafe extern "system" fn ServerGetSize(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, hrfault: windows_core::HRESULT, pdatasize: *mut u32) - where - Identity: IChannelHook_Impl, - { + unsafe extern "system" fn ServerGetSize(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, hrfault: windows_core::HRESULT, pdatasize: *mut u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelHook_Impl::ServerGetSize(this, core::mem::transmute_copy(&uextent), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&hrfault), core::mem::transmute_copy(&pdatasize)) } - unsafe extern "system" fn ServerFillBuffer(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, pdatasize: *mut u32, pdatabuffer: *const core::ffi::c_void, hrfault: windows_core::HRESULT) - where - Identity: IChannelHook_Impl, - { + unsafe extern "system" fn ServerFillBuffer(this: *mut core::ffi::c_void, uextent: *const windows_core::GUID, riid: *const windows_core::GUID, pdatasize: *mut u32, pdatabuffer: *const core::ffi::c_void, hrfault: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelHook_Impl::ServerFillBuffer(this, core::mem::transmute_copy(&uextent), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pdatasize), core::mem::transmute_copy(&pdatabuffer), core::mem::transmute_copy(&hrfault)) } @@ -1431,19 +1041,13 @@ impl IChannelHook_Vtbl { iid == &::IID } } -pub trait IClassActivator_Impl: Sized { +pub trait IClassActivator_Impl: Sized + windows_core::IUnknownImpl { fn GetClassObject(&self, rclsid: *const windows_core::GUID, dwclasscontext: u32, locale: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IClassActivator {} impl IClassActivator_Vtbl { - pub const fn new() -> IClassActivator_Vtbl - where - Identity: IClassActivator_Impl, - { - unsafe extern "system" fn GetClassObject(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, dwclasscontext: u32, locale: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IClassActivator_Impl, - { + pub const fn new() -> IClassActivator_Vtbl { + unsafe extern "system" fn GetClassObject(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, dwclasscontext: u32, locale: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClassActivator_Impl::GetClassObject(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&dwclasscontext), core::mem::transmute_copy(&locale), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -1453,27 +1057,18 @@ impl IClassActivator_Vtbl { iid == &::IID } } -pub trait IClassFactory_Impl: Sized { +pub trait IClassFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn LockServer(&self, flock: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IClassFactory {} impl IClassFactory_Vtbl { - pub const fn new() -> IClassFactory_Vtbl - where - Identity: IClassFactory_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IClassFactory_Impl, - { + pub const fn new() -> IClassFactory_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClassFactory_Impl::CreateInstance(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn LockServer(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IClassFactory_Impl, - { + unsafe extern "system" fn LockServer(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClassFactory_Impl::LockServer(this, core::mem::transmute_copy(&flock)).into() } @@ -1487,35 +1082,23 @@ impl IClassFactory_Vtbl { iid == &::IID } } -pub trait IClientSecurity_Impl: Sized { +pub trait IClientSecurity_Impl: Sized + windows_core::IUnknownImpl { fn QueryBlanket(&self, pproxy: Option<&windows_core::IUnknown>, pauthnsvc: *mut u32, pauthzsvc: *mut u32, pserverprincname: *mut *mut u16, pauthnlevel: *mut RPC_C_AUTHN_LEVEL, pimplevel: *mut RPC_C_IMP_LEVEL, pauthinfo: *mut *mut core::ffi::c_void, pcapabilites: *mut u32) -> windows_core::Result<()>; fn SetBlanket(&self, pproxy: Option<&windows_core::IUnknown>, dwauthnsvc: u32, dwauthzsvc: u32, pserverprincname: &windows_core::PCWSTR, dwauthnlevel: RPC_C_AUTHN_LEVEL, dwimplevel: RPC_C_IMP_LEVEL, pauthinfo: *const core::ffi::c_void, dwcapabilities: &EOLE_AUTHENTICATION_CAPABILITIES) -> windows_core::Result<()>; fn CopyProxy(&self, pproxy: Option<&windows_core::IUnknown>) -> windows_core::Result; } impl windows_core::RuntimeName for IClientSecurity {} impl IClientSecurity_Vtbl { - pub const fn new() -> IClientSecurity_Vtbl - where - Identity: IClientSecurity_Impl, - { - unsafe extern "system" fn QueryBlanket(this: *mut core::ffi::c_void, pproxy: *mut core::ffi::c_void, pauthnsvc: *mut u32, pauthzsvc: *mut u32, pserverprincname: *mut *mut u16, pauthnlevel: *mut RPC_C_AUTHN_LEVEL, pimplevel: *mut RPC_C_IMP_LEVEL, pauthinfo: *mut *mut core::ffi::c_void, pcapabilites: *mut u32) -> windows_core::HRESULT - where - Identity: IClientSecurity_Impl, - { + pub const fn new() -> IClientSecurity_Vtbl { + unsafe extern "system" fn QueryBlanket(this: *mut core::ffi::c_void, pproxy: *mut core::ffi::c_void, pauthnsvc: *mut u32, pauthzsvc: *mut u32, pserverprincname: *mut *mut u16, pauthnlevel: *mut RPC_C_AUTHN_LEVEL, pimplevel: *mut RPC_C_IMP_LEVEL, pauthinfo: *mut *mut core::ffi::c_void, pcapabilites: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClientSecurity_Impl::QueryBlanket(this, windows_core::from_raw_borrowed(&pproxy), core::mem::transmute_copy(&pauthnsvc), core::mem::transmute_copy(&pauthzsvc), core::mem::transmute_copy(&pserverprincname), core::mem::transmute_copy(&pauthnlevel), core::mem::transmute_copy(&pimplevel), core::mem::transmute_copy(&pauthinfo), core::mem::transmute_copy(&pcapabilites)).into() } - unsafe extern "system" fn SetBlanket(this: *mut core::ffi::c_void, pproxy: *mut core::ffi::c_void, dwauthnsvc: u32, dwauthzsvc: u32, pserverprincname: windows_core::PCWSTR, dwauthnlevel: RPC_C_AUTHN_LEVEL, dwimplevel: RPC_C_IMP_LEVEL, pauthinfo: *const core::ffi::c_void, dwcapabilities: u32) -> windows_core::HRESULT - where - Identity: IClientSecurity_Impl, - { + unsafe extern "system" fn SetBlanket(this: *mut core::ffi::c_void, pproxy: *mut core::ffi::c_void, dwauthnsvc: u32, dwauthzsvc: u32, pserverprincname: windows_core::PCWSTR, dwauthnlevel: RPC_C_AUTHN_LEVEL, dwimplevel: RPC_C_IMP_LEVEL, pauthinfo: *const core::ffi::c_void, dwcapabilities: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClientSecurity_Impl::SetBlanket(this, windows_core::from_raw_borrowed(&pproxy), core::mem::transmute_copy(&dwauthnsvc), core::mem::transmute_copy(&dwauthzsvc), core::mem::transmute(&pserverprincname), core::mem::transmute_copy(&dwauthnlevel), core::mem::transmute_copy(&dwimplevel), core::mem::transmute_copy(&pauthinfo), core::mem::transmute(&dwcapabilities)).into() } - unsafe extern "system" fn CopyProxy(this: *mut core::ffi::c_void, pproxy: *mut core::ffi::c_void, ppcopy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IClientSecurity_Impl, - { + unsafe extern "system" fn CopyProxy(this: *mut core::ffi::c_void, pproxy: *mut core::ffi::c_void, ppcopy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IClientSecurity_Impl::CopyProxy(this, windows_core::from_raw_borrowed(&pproxy)) { Ok(ok__) => { @@ -1536,7 +1119,7 @@ impl IClientSecurity_Vtbl { iid == &::IID } } -pub trait IComThreadingInfo_Impl: Sized { +pub trait IComThreadingInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentApartmentType(&self) -> windows_core::Result; fn GetCurrentThreadType(&self) -> windows_core::Result; fn GetCurrentLogicalThreadId(&self) -> windows_core::Result; @@ -1544,14 +1127,8 @@ pub trait IComThreadingInfo_Impl: Sized { } impl windows_core::RuntimeName for IComThreadingInfo {} impl IComThreadingInfo_Vtbl { - pub const fn new() -> IComThreadingInfo_Vtbl - where - Identity: IComThreadingInfo_Impl, - { - unsafe extern "system" fn GetCurrentApartmentType(this: *mut core::ffi::c_void, papttype: *mut APTTYPE) -> windows_core::HRESULT - where - Identity: IComThreadingInfo_Impl, - { + pub const fn new() -> IComThreadingInfo_Vtbl { + unsafe extern "system" fn GetCurrentApartmentType(this: *mut core::ffi::c_void, papttype: *mut APTTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComThreadingInfo_Impl::GetCurrentApartmentType(this) { Ok(ok__) => { @@ -1561,10 +1138,7 @@ impl IComThreadingInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadType(this: *mut core::ffi::c_void, pthreadtype: *mut THDTYPE) -> windows_core::HRESULT - where - Identity: IComThreadingInfo_Impl, - { + unsafe extern "system" fn GetCurrentThreadType(this: *mut core::ffi::c_void, pthreadtype: *mut THDTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComThreadingInfo_Impl::GetCurrentThreadType(this) { Ok(ok__) => { @@ -1574,10 +1148,7 @@ impl IComThreadingInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentLogicalThreadId(this: *mut core::ffi::c_void, pguidlogicalthreadid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComThreadingInfo_Impl, - { + unsafe extern "system" fn GetCurrentLogicalThreadId(this: *mut core::ffi::c_void, pguidlogicalthreadid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComThreadingInfo_Impl::GetCurrentLogicalThreadId(this) { Ok(ok__) => { @@ -1587,10 +1158,7 @@ impl IComThreadingInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentLogicalThreadId(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComThreadingInfo_Impl, - { + unsafe extern "system" fn SetCurrentLogicalThreadId(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadingInfo_Impl::SetCurrentLogicalThreadId(this, core::mem::transmute_copy(&rguid)).into() } @@ -1606,7 +1174,7 @@ impl IComThreadingInfo_Vtbl { iid == &::IID } } -pub trait IConnectionPoint_Impl: Sized { +pub trait IConnectionPoint_Impl: Sized + windows_core::IUnknownImpl { fn GetConnectionInterface(&self) -> windows_core::Result; fn GetConnectionPointContainer(&self) -> windows_core::Result; fn Advise(&self, punksink: Option<&windows_core::IUnknown>) -> windows_core::Result; @@ -1615,14 +1183,8 @@ pub trait IConnectionPoint_Impl: Sized { } impl windows_core::RuntimeName for IConnectionPoint {} impl IConnectionPoint_Vtbl { - pub const fn new() -> IConnectionPoint_Vtbl - where - Identity: IConnectionPoint_Impl, - { - unsafe extern "system" fn GetConnectionInterface(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IConnectionPoint_Impl, - { + pub const fn new() -> IConnectionPoint_Vtbl { + unsafe extern "system" fn GetConnectionInterface(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnectionPoint_Impl::GetConnectionInterface(this) { Ok(ok__) => { @@ -1632,10 +1194,7 @@ impl IConnectionPoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectionPointContainer(this: *mut core::ffi::c_void, ppcpc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConnectionPoint_Impl, - { + unsafe extern "system" fn GetConnectionPointContainer(this: *mut core::ffi::c_void, ppcpc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnectionPoint_Impl::GetConnectionPointContainer(this) { Ok(ok__) => { @@ -1645,10 +1204,7 @@ impl IConnectionPoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, punksink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IConnectionPoint_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, punksink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnectionPoint_Impl::Advise(this, windows_core::from_raw_borrowed(&punksink)) { Ok(ok__) => { @@ -1658,17 +1214,11 @@ impl IConnectionPoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IConnectionPoint_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConnectionPoint_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn EnumConnections(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConnectionPoint_Impl, - { + unsafe extern "system" fn EnumConnections(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnectionPoint_Impl::EnumConnections(this) { Ok(ok__) => { @@ -1691,20 +1241,14 @@ impl IConnectionPoint_Vtbl { iid == &::IID } } -pub trait IConnectionPointContainer_Impl: Sized { +pub trait IConnectionPointContainer_Impl: Sized + windows_core::IUnknownImpl { fn EnumConnectionPoints(&self) -> windows_core::Result; fn FindConnectionPoint(&self, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IConnectionPointContainer {} impl IConnectionPointContainer_Vtbl { - pub const fn new() -> IConnectionPointContainer_Vtbl - where - Identity: IConnectionPointContainer_Impl, - { - unsafe extern "system" fn EnumConnectionPoints(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConnectionPointContainer_Impl, - { + pub const fn new() -> IConnectionPointContainer_Vtbl { + unsafe extern "system" fn EnumConnectionPoints(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnectionPointContainer_Impl::EnumConnectionPoints(this) { Ok(ok__) => { @@ -1714,10 +1258,7 @@ impl IConnectionPointContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindConnectionPoint(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppcp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConnectionPointContainer_Impl, - { + unsafe extern "system" fn FindConnectionPoint(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppcp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnectionPointContainer_Impl::FindConnectionPoint(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -1737,7 +1278,7 @@ impl IConnectionPointContainer_Vtbl { iid == &::IID } } -pub trait IContext_Impl: Sized { +pub trait IContext_Impl: Sized + windows_core::IUnknownImpl { fn SetProperty(&self, rpolicyid: *const windows_core::GUID, flags: u32, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn RemoveProperty(&self, rpolicyid: *const windows_core::GUID) -> windows_core::Result<()>; fn GetProperty(&self, rguid: *const windows_core::GUID, pflags: *mut u32, ppunk: *mut Option) -> windows_core::Result<()>; @@ -1745,35 +1286,20 @@ pub trait IContext_Impl: Sized { } impl windows_core::RuntimeName for IContext {} impl IContext_Vtbl { - pub const fn new() -> IContext_Vtbl - where - Identity: IContext_Impl, - { - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, rpolicyid: *const windows_core::GUID, flags: u32, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContext_Impl, - { + pub const fn new() -> IContext_Vtbl { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, rpolicyid: *const windows_core::GUID, flags: u32, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContext_Impl::SetProperty(this, core::mem::transmute_copy(&rpolicyid), core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn RemoveProperty(this: *mut core::ffi::c_void, rpolicyid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IContext_Impl, - { + unsafe extern "system" fn RemoveProperty(this: *mut core::ffi::c_void, rpolicyid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContext_Impl::RemoveProperty(this, core::mem::transmute_copy(&rpolicyid)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pflags: *mut u32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContext_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pflags: *mut u32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContext_Impl::GetProperty(this, core::mem::transmute_copy(&rguid), core::mem::transmute_copy(&pflags), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn EnumContextProps(this: *mut core::ffi::c_void, ppenumcontextprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContext_Impl, - { + unsafe extern "system" fn EnumContextProps(this: *mut core::ffi::c_void, ppenumcontextprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContext_Impl::EnumContextProps(this) { Ok(ok__) => { @@ -1795,19 +1321,13 @@ impl IContext_Vtbl { iid == &::IID } } -pub trait IContextCallback_Impl: Sized { +pub trait IContextCallback_Impl: Sized + windows_core::IUnknownImpl { fn ContextCallback(&self, pfncallback: PFNCONTEXTCALL, pparam: *const ComCallData, riid: *const windows_core::GUID, imethod: i32, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IContextCallback {} impl IContextCallback_Vtbl { - pub const fn new() -> IContextCallback_Vtbl - where - Identity: IContextCallback_Impl, - { - unsafe extern "system" fn ContextCallback(this: *mut core::ffi::c_void, pfncallback: PFNCONTEXTCALL, pparam: *const ComCallData, riid: *const windows_core::GUID, imethod: i32, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContextCallback_Impl, - { + pub const fn new() -> IContextCallback_Vtbl { + unsafe extern "system" fn ContextCallback(this: *mut core::ffi::c_void, pfncallback: PFNCONTEXTCALL, pparam: *const ComCallData, riid: *const windows_core::GUID, imethod: i32, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextCallback_Impl::ContextCallback(this, core::mem::transmute_copy(&pfncallback), core::mem::transmute_copy(&pparam), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&imethod), windows_core::from_raw_borrowed(&punk)).into() } @@ -1817,7 +1337,7 @@ impl IContextCallback_Vtbl { iid == &::IID } } -pub trait IDataAdviseHolder_Impl: Sized { +pub trait IDataAdviseHolder_Impl: Sized + windows_core::IUnknownImpl { fn Advise(&self, pdataobject: Option<&IDataObject>, pfetc: *const FORMATETC, advf: u32, padvise: Option<&IAdviseSink>) -> windows_core::Result; fn Unadvise(&self, dwconnection: u32) -> windows_core::Result<()>; fn EnumAdvise(&self) -> windows_core::Result; @@ -1825,14 +1345,8 @@ pub trait IDataAdviseHolder_Impl: Sized { } impl windows_core::RuntimeName for IDataAdviseHolder {} impl IDataAdviseHolder_Vtbl { - pub const fn new() -> IDataAdviseHolder_Vtbl - where - Identity: IDataAdviseHolder_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, pfetc: *const FORMATETC, advf: u32, padvise: *mut core::ffi::c_void, pdwconnection: *mut u32) -> windows_core::HRESULT - where - Identity: IDataAdviseHolder_Impl, - { + pub const fn new() -> IDataAdviseHolder_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, pfetc: *const FORMATETC, advf: u32, padvise: *mut core::ffi::c_void, pdwconnection: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataAdviseHolder_Impl::Advise(this, windows_core::from_raw_borrowed(&pdataobject), core::mem::transmute_copy(&pfetc), core::mem::transmute_copy(&advf), windows_core::from_raw_borrowed(&padvise)) { Ok(ok__) => { @@ -1842,17 +1356,11 @@ impl IDataAdviseHolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwconnection: u32) -> windows_core::HRESULT - where - Identity: IDataAdviseHolder_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwconnection: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataAdviseHolder_Impl::Unadvise(this, core::mem::transmute_copy(&dwconnection)).into() } - unsafe extern "system" fn EnumAdvise(this: *mut core::ffi::c_void, ppenumadvise: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataAdviseHolder_Impl, - { + unsafe extern "system" fn EnumAdvise(this: *mut core::ffi::c_void, ppenumadvise: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataAdviseHolder_Impl::EnumAdvise(this) { Ok(ok__) => { @@ -1862,10 +1370,7 @@ impl IDataAdviseHolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendOnDataChange(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, dwreserved: u32, advf: u32) -> windows_core::HRESULT - where - Identity: IDataAdviseHolder_Impl, - { + unsafe extern "system" fn SendOnDataChange(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, dwreserved: u32, advf: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataAdviseHolder_Impl::SendOnDataChange(this, windows_core::from_raw_borrowed(&pdataobject), core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&advf)).into() } @@ -1882,7 +1387,7 @@ impl IDataAdviseHolder_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IDataObject_Impl: Sized { +pub trait IDataObject_Impl: Sized + windows_core::IUnknownImpl { fn GetData(&self, pformatetcin: *const FORMATETC) -> windows_core::Result; fn GetDataHere(&self, pformatetc: *const FORMATETC, pmedium: *mut STGMEDIUM) -> windows_core::Result<()>; fn QueryGetData(&self, pformatetc: *const FORMATETC) -> windows_core::HRESULT; @@ -1897,14 +1402,8 @@ pub trait IDataObject_Impl: Sized { impl windows_core::RuntimeName for IDataObject {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl IDataObject_Vtbl { - pub const fn new() -> IDataObject_Vtbl - where - Identity: IDataObject_Impl, - { - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pformatetcin: *const FORMATETC, pmedium: *mut STGMEDIUM) -> windows_core::HRESULT - where - Identity: IDataObject_Impl, - { + pub const fn new() -> IDataObject_Vtbl { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pformatetcin: *const FORMATETC, pmedium: *mut STGMEDIUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataObject_Impl::GetData(this, core::mem::transmute_copy(&pformatetcin)) { Ok(ok__) => { @@ -1914,38 +1413,23 @@ impl IDataObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataHere(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, pmedium: *mut STGMEDIUM) -> windows_core::HRESULT - where - Identity: IDataObject_Impl, - { + unsafe extern "system" fn GetDataHere(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, pmedium: *mut STGMEDIUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObject_Impl::GetDataHere(this, core::mem::transmute_copy(&pformatetc), core::mem::transmute_copy(&pmedium)).into() } - unsafe extern "system" fn QueryGetData(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC) -> windows_core::HRESULT - where - Identity: IDataObject_Impl, - { + unsafe extern "system" fn QueryGetData(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObject_Impl::QueryGetData(this, core::mem::transmute_copy(&pformatetc)) } - unsafe extern "system" fn GetCanonicalFormatEtc(this: *mut core::ffi::c_void, pformatectin: *const FORMATETC, pformatetcout: *mut FORMATETC) -> windows_core::HRESULT - where - Identity: IDataObject_Impl, - { + unsafe extern "system" fn GetCanonicalFormatEtc(this: *mut core::ffi::c_void, pformatectin: *const FORMATETC, pformatetcout: *mut FORMATETC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObject_Impl::GetCanonicalFormatEtc(this, core::mem::transmute_copy(&pformatectin), core::mem::transmute_copy(&pformatetcout)) } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, pmedium: *const STGMEDIUM, frelease: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDataObject_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, pmedium: *const STGMEDIUM, frelease: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObject_Impl::SetData(this, core::mem::transmute_copy(&pformatetc), core::mem::transmute_copy(&pmedium), core::mem::transmute_copy(&frelease)).into() } - unsafe extern "system" fn EnumFormatEtc(this: *mut core::ffi::c_void, dwdirection: u32, ppenumformatetc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataObject_Impl, - { + unsafe extern "system" fn EnumFormatEtc(this: *mut core::ffi::c_void, dwdirection: u32, ppenumformatetc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataObject_Impl::EnumFormatEtc(this, core::mem::transmute_copy(&dwdirection)) { Ok(ok__) => { @@ -1955,10 +1439,7 @@ impl IDataObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DAdvise(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, advf: u32, padvsink: *mut core::ffi::c_void, pdwconnection: *mut u32) -> windows_core::HRESULT - where - Identity: IDataObject_Impl, - { + unsafe extern "system" fn DAdvise(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, advf: u32, padvsink: *mut core::ffi::c_void, pdwconnection: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataObject_Impl::DAdvise(this, core::mem::transmute_copy(&pformatetc), core::mem::transmute_copy(&advf), windows_core::from_raw_borrowed(&padvsink)) { Ok(ok__) => { @@ -1968,17 +1449,11 @@ impl IDataObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DUnadvise(this: *mut core::ffi::c_void, dwconnection: u32) -> windows_core::HRESULT - where - Identity: IDataObject_Impl, - { + unsafe extern "system" fn DUnadvise(this: *mut core::ffi::c_void, dwconnection: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObject_Impl::DUnadvise(this, core::mem::transmute_copy(&dwconnection)).into() } - unsafe extern "system" fn EnumDAdvise(this: *mut core::ffi::c_void, ppenumadvise: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataObject_Impl, - { + unsafe extern "system" fn EnumDAdvise(this: *mut core::ffi::c_void, ppenumadvise: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataObject_Impl::EnumDAdvise(this) { Ok(ok__) => { @@ -2005,7 +1480,7 @@ impl IDataObject_Vtbl { iid == &::IID } } -pub trait IDispatch_Impl: Sized { +pub trait IDispatch_Impl: Sized + windows_core::IUnknownImpl { fn GetTypeInfoCount(&self) -> windows_core::Result; fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> windows_core::Result; fn GetIDsOfNames(&self, riid: *const windows_core::GUID, rgsznames: *const windows_core::PCWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> windows_core::Result<()>; @@ -2013,14 +1488,8 @@ pub trait IDispatch_Impl: Sized { } impl windows_core::RuntimeName for IDispatch {} impl IDispatch_Vtbl { - pub const fn new() -> IDispatch_Vtbl - where - Identity: IDispatch_Impl, - { - unsafe extern "system" fn GetTypeInfoCount(this: *mut core::ffi::c_void, pctinfo: *mut u32) -> windows_core::HRESULT - where - Identity: IDispatch_Impl, - { + pub const fn new() -> IDispatch_Vtbl { + unsafe extern "system" fn GetTypeInfoCount(this: *mut core::ffi::c_void, pctinfo: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispatch_Impl::GetTypeInfoCount(this) { Ok(ok__) => { @@ -2030,10 +1499,7 @@ impl IDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, itinfo: u32, lcid: u32, pptinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDispatch_Impl, - { + unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, itinfo: u32, lcid: u32, pptinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispatch_Impl::GetTypeInfo(this, core::mem::transmute_copy(&itinfo), core::mem::transmute_copy(&lcid)) { Ok(ok__) => { @@ -2043,17 +1509,11 @@ impl IDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIDsOfNames(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, rgsznames: *const windows_core::PCWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> windows_core::HRESULT - where - Identity: IDispatch_Impl, - { + unsafe extern "system" fn GetIDsOfNames(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, rgsznames: *const windows_core::PCWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispatch_Impl::GetIDsOfNames(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&rgsznames), core::mem::transmute_copy(&cnames), core::mem::transmute_copy(&lcid), core::mem::transmute_copy(&rgdispid)).into() } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, dispidmember: i32, riid: *const windows_core::GUID, lcid: u32, wflags: DISPATCH_FLAGS, pdispparams: *const DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT - where - Identity: IDispatch_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, dispidmember: i32, riid: *const windows_core::GUID, lcid: u32, wflags: DISPATCH_FLAGS, pdispparams: *const DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispatch_Impl::Invoke(this, core::mem::transmute_copy(&dispidmember), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&lcid), 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() } @@ -2069,7 +1529,7 @@ impl IDispatch_Vtbl { iid == &::IID } } -pub trait IEnumCATEGORYINFO_Impl: Sized { +pub trait IEnumCATEGORYINFO_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut CATEGORYINFO, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2077,35 +1537,20 @@ pub trait IEnumCATEGORYINFO_Impl: Sized { } impl windows_core::RuntimeName for IEnumCATEGORYINFO {} impl IEnumCATEGORYINFO_Vtbl { - pub const fn new() -> IEnumCATEGORYINFO_Vtbl - where - Identity: IEnumCATEGORYINFO_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut CATEGORYINFO, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumCATEGORYINFO_Impl, - { + pub const fn new() -> IEnumCATEGORYINFO_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut CATEGORYINFO, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCATEGORYINFO_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumCATEGORYINFO_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCATEGORYINFO_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCATEGORYINFO_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumCATEGORYINFO_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumCATEGORYINFO_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumCATEGORYINFO_Impl::Clone(this) { Ok(ok__) => { @@ -2127,7 +1572,7 @@ impl IEnumCATEGORYINFO_Vtbl { iid == &::IID } } -pub trait IEnumConnectionPoints_Impl: Sized { +pub trait IEnumConnectionPoints_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cconnections: u32, ppcp: *mut Option, pcfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, cconnections: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2135,35 +1580,20 @@ pub trait IEnumConnectionPoints_Impl: Sized { } impl windows_core::RuntimeName for IEnumConnectionPoints {} impl IEnumConnectionPoints_Vtbl { - pub const fn new() -> IEnumConnectionPoints_Vtbl - where - Identity: IEnumConnectionPoints_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cconnections: u32, ppcp: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumConnectionPoints_Impl, - { + pub const fn new() -> IEnumConnectionPoints_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cconnections: u32, ppcp: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumConnectionPoints_Impl::Next(this, core::mem::transmute_copy(&cconnections), core::mem::transmute_copy(&ppcp), core::mem::transmute_copy(&pcfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cconnections: u32) -> windows_core::HRESULT - where - Identity: IEnumConnectionPoints_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cconnections: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumConnectionPoints_Impl::Skip(this, core::mem::transmute_copy(&cconnections)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumConnectionPoints_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumConnectionPoints_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumConnectionPoints_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumConnectionPoints_Impl::Clone(this) { Ok(ok__) => { @@ -2185,7 +1615,7 @@ impl IEnumConnectionPoints_Vtbl { iid == &::IID } } -pub trait IEnumConnections_Impl: Sized { +pub trait IEnumConnections_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cconnections: u32, rgcd: *mut CONNECTDATA, pcfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, cconnections: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2193,35 +1623,20 @@ pub trait IEnumConnections_Impl: Sized { } impl windows_core::RuntimeName for IEnumConnections {} impl IEnumConnections_Vtbl { - pub const fn new() -> IEnumConnections_Vtbl - where - Identity: IEnumConnections_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cconnections: u32, rgcd: *mut CONNECTDATA, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumConnections_Impl, - { + pub const fn new() -> IEnumConnections_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cconnections: u32, rgcd: *mut CONNECTDATA, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumConnections_Impl::Next(this, core::mem::transmute_copy(&cconnections), core::mem::transmute_copy(&rgcd), core::mem::transmute_copy(&pcfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cconnections: u32) -> windows_core::HRESULT - where - Identity: IEnumConnections_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cconnections: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumConnections_Impl::Skip(this, core::mem::transmute_copy(&cconnections)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumConnections_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumConnections_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumConnections_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumConnections_Impl::Clone(this) { Ok(ok__) => { @@ -2243,7 +1658,7 @@ impl IEnumConnections_Vtbl { iid == &::IID } } -pub trait IEnumContextProps_Impl: Sized { +pub trait IEnumContextProps_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, pcontextproperties: *mut ContextProperty, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2252,35 +1667,20 @@ pub trait IEnumContextProps_Impl: Sized { } impl windows_core::RuntimeName for IEnumContextProps {} impl IEnumContextProps_Vtbl { - pub const fn new() -> IEnumContextProps_Vtbl - where - Identity: IEnumContextProps_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pcontextproperties: *mut ContextProperty, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumContextProps_Impl, - { + pub const fn new() -> IEnumContextProps_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pcontextproperties: *mut ContextProperty, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumContextProps_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&pcontextproperties), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumContextProps_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumContextProps_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumContextProps_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumContextProps_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumcontextprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumContextProps_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumcontextprops: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumContextProps_Impl::Clone(this) { Ok(ok__) => { @@ -2290,10 +1690,7 @@ impl IEnumContextProps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumContextProps_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumContextProps_Impl::Count(this) { Ok(ok__) => { @@ -2316,7 +1713,7 @@ impl IEnumContextProps_Vtbl { iid == &::IID } } -pub trait IEnumFORMATETC_Impl: Sized { +pub trait IEnumFORMATETC_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut FORMATETC, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2324,35 +1721,20 @@ pub trait IEnumFORMATETC_Impl: Sized { } impl windows_core::RuntimeName for IEnumFORMATETC {} impl IEnumFORMATETC_Vtbl { - pub const fn new() -> IEnumFORMATETC_Vtbl - where - Identity: IEnumFORMATETC_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut FORMATETC, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumFORMATETC_Impl, - { + pub const fn new() -> IEnumFORMATETC_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut FORMATETC, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFORMATETC_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumFORMATETC_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFORMATETC_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumFORMATETC_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFORMATETC_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumFORMATETC_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumFORMATETC_Impl::Clone(this) { Ok(ok__) => { @@ -2374,7 +1756,7 @@ impl IEnumFORMATETC_Vtbl { iid == &::IID } } -pub trait IEnumGUID_Impl: Sized { +pub trait IEnumGUID_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::HRESULT; fn Reset(&self) -> windows_core::Result<()>; @@ -2382,35 +1764,20 @@ pub trait IEnumGUID_Impl: Sized { } impl windows_core::RuntimeName for IEnumGUID {} impl IEnumGUID_Vtbl { - pub const fn new() -> IEnumGUID_Vtbl - where - Identity: IEnumGUID_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumGUID_Impl, - { + pub const fn new() -> IEnumGUID_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumGUID_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumGUID_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumGUID_Impl::Skip(this, core::mem::transmute_copy(&celt)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumGUID_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumGUID_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumGUID_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumGUID_Impl::Clone(this) { Ok(ok__) => { @@ -2432,7 +1799,7 @@ impl IEnumGUID_Vtbl { iid == &::IID } } -pub trait IEnumMoniker_Impl: Sized { +pub trait IEnumMoniker_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::HRESULT; fn Reset(&self) -> windows_core::Result<()>; @@ -2440,35 +1807,20 @@ pub trait IEnumMoniker_Impl: Sized { } impl windows_core::RuntimeName for IEnumMoniker {} impl IEnumMoniker_Vtbl { - pub const fn new() -> IEnumMoniker_Vtbl - where - Identity: IEnumMoniker_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumMoniker_Impl, - { + pub const fn new() -> IEnumMoniker_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMoniker_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumMoniker_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMoniker_Impl::Skip(this, core::mem::transmute_copy(&celt)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMoniker_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumMoniker_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumMoniker_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumMoniker_Impl::Clone(this) { Ok(ok__) => { @@ -2490,7 +1842,7 @@ impl IEnumMoniker_Vtbl { iid == &::IID } } -pub trait IEnumSTATDATA_Impl: Sized { +pub trait IEnumSTATDATA_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut STATDATA, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2498,35 +1850,20 @@ pub trait IEnumSTATDATA_Impl: Sized { } impl windows_core::RuntimeName for IEnumSTATDATA {} impl IEnumSTATDATA_Vtbl { - pub const fn new() -> IEnumSTATDATA_Vtbl - where - Identity: IEnumSTATDATA_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut STATDATA, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSTATDATA_Impl, - { + pub const fn new() -> IEnumSTATDATA_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut STATDATA, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATDATA_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSTATDATA_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATDATA_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSTATDATA_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATDATA_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSTATDATA_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSTATDATA_Impl::Clone(this) { Ok(ok__) => { @@ -2548,7 +1885,7 @@ impl IEnumSTATDATA_Vtbl { iid == &::IID } } -pub trait IEnumString_Impl: Sized { +pub trait IEnumString_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut windows_core::PWSTR, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::HRESULT; fn Reset(&self) -> windows_core::Result<()>; @@ -2556,35 +1893,20 @@ pub trait IEnumString_Impl: Sized { } impl windows_core::RuntimeName for IEnumString {} impl IEnumString_Vtbl { - pub const fn new() -> IEnumString_Vtbl - where - Identity: IEnumString_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut windows_core::PWSTR, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumString_Impl, - { + pub const fn new() -> IEnumString_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut windows_core::PWSTR, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumString_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumString_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumString_Impl::Skip(this, core::mem::transmute_copy(&celt)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumString_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumString_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumString_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumString_Impl::Clone(this) { Ok(ok__) => { @@ -2606,7 +1928,7 @@ impl IEnumString_Vtbl { iid == &::IID } } -pub trait IEnumUnknown_Impl: Sized { +pub trait IEnumUnknown_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2614,35 +1936,20 @@ pub trait IEnumUnknown_Impl: Sized { } impl windows_core::RuntimeName for IEnumUnknown {} impl IEnumUnknown_Vtbl { - pub const fn new() -> IEnumUnknown_Vtbl - where - Identity: IEnumUnknown_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumUnknown_Impl, - { + pub const fn new() -> IEnumUnknown_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumUnknown_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumUnknown_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumUnknown_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumUnknown_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumUnknown_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumUnknown_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumUnknown_Impl::Clone(this) { Ok(ok__) => { @@ -2664,7 +1971,7 @@ impl IEnumUnknown_Vtbl { iid == &::IID } } -pub trait IErrorInfo_Impl: Sized { +pub trait IErrorInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetGUID(&self) -> windows_core::Result; fn GetSource(&self) -> windows_core::Result; fn GetDescription(&self) -> windows_core::Result; @@ -2673,14 +1980,8 @@ pub trait IErrorInfo_Impl: Sized { } impl windows_core::RuntimeName for IErrorInfo {} impl IErrorInfo_Vtbl { - pub const fn new() -> IErrorInfo_Vtbl - where - Identity: IErrorInfo_Impl, - { - unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IErrorInfo_Impl, - { + pub const fn new() -> IErrorInfo_Vtbl { + unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IErrorInfo_Impl::GetGUID(this) { Ok(ok__) => { @@ -2690,10 +1991,7 @@ impl IErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, pbstrsource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IErrorInfo_Impl, - { + unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, pbstrsource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IErrorInfo_Impl::GetSource(this) { Ok(ok__) => { @@ -2703,10 +2001,7 @@ impl IErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IErrorInfo_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IErrorInfo_Impl::GetDescription(this) { Ok(ok__) => { @@ -2716,10 +2011,7 @@ impl IErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHelpFile(this: *mut core::ffi::c_void, pbstrhelpfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IErrorInfo_Impl, - { + unsafe extern "system" fn GetHelpFile(this: *mut core::ffi::c_void, pbstrhelpfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IErrorInfo_Impl::GetHelpFile(this) { Ok(ok__) => { @@ -2729,10 +2021,7 @@ impl IErrorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHelpContext(this: *mut core::ffi::c_void, pdwhelpcontext: *mut u32) -> windows_core::HRESULT - where - Identity: IErrorInfo_Impl, - { + unsafe extern "system" fn GetHelpContext(this: *mut core::ffi::c_void, pdwhelpcontext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IErrorInfo_Impl::GetHelpContext(this) { Ok(ok__) => { @@ -2755,19 +2044,13 @@ impl IErrorInfo_Vtbl { iid == &::IID } } -pub trait IErrorLog_Impl: Sized { +pub trait IErrorLog_Impl: Sized + windows_core::IUnknownImpl { fn AddError(&self, pszpropname: &windows_core::PCWSTR, pexcepinfo: *const EXCEPINFO) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IErrorLog {} impl IErrorLog_Vtbl { - pub const fn new() -> IErrorLog_Vtbl - where - Identity: IErrorLog_Impl, - { - unsafe extern "system" fn AddError(this: *mut core::ffi::c_void, pszpropname: windows_core::PCWSTR, pexcepinfo: *const EXCEPINFO) -> windows_core::HRESULT - where - Identity: IErrorLog_Impl, - { + pub const fn new() -> IErrorLog_Vtbl { + unsafe extern "system" fn AddError(this: *mut core::ffi::c_void, pszpropname: windows_core::PCWSTR, pexcepinfo: *const EXCEPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IErrorLog_Impl::AddError(this, core::mem::transmute(&pszpropname), core::mem::transmute_copy(&pexcepinfo)).into() } @@ -2777,27 +2060,18 @@ impl IErrorLog_Vtbl { iid == &::IID } } -pub trait IExternalConnection_Impl: Sized { +pub trait IExternalConnection_Impl: Sized + windows_core::IUnknownImpl { fn AddConnection(&self, extconn: u32, reserved: u32) -> u32; fn ReleaseConnection(&self, extconn: u32, reserved: u32, flastreleasecloses: super::super::Foundation::BOOL) -> u32; } impl windows_core::RuntimeName for IExternalConnection {} impl IExternalConnection_Vtbl { - pub const fn new() -> IExternalConnection_Vtbl - where - Identity: IExternalConnection_Impl, - { - unsafe extern "system" fn AddConnection(this: *mut core::ffi::c_void, extconn: u32, reserved: u32) -> u32 - where - Identity: IExternalConnection_Impl, - { + pub const fn new() -> IExternalConnection_Vtbl { + unsafe extern "system" fn AddConnection(this: *mut core::ffi::c_void, extconn: u32, reserved: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExternalConnection_Impl::AddConnection(this, core::mem::transmute_copy(&extconn), core::mem::transmute_copy(&reserved)) } - unsafe extern "system" fn ReleaseConnection(this: *mut core::ffi::c_void, extconn: u32, reserved: u32, flastreleasecloses: super::super::Foundation::BOOL) -> u32 - where - Identity: IExternalConnection_Impl, - { + unsafe extern "system" fn ReleaseConnection(this: *mut core::ffi::c_void, extconn: u32, reserved: u32, flastreleasecloses: super::super::Foundation::BOOL) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExternalConnection_Impl::ReleaseConnection(this, core::mem::transmute_copy(&extconn), core::mem::transmute_copy(&reserved), core::mem::transmute_copy(&flastreleasecloses)) } @@ -2811,32 +2085,23 @@ impl IExternalConnection_Vtbl { iid == &::IID } } -pub trait IFastRundown_Impl: Sized {} +pub trait IFastRundown_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IFastRundown {} impl IFastRundown_Vtbl { - pub const fn new() -> IFastRundown_Vtbl - where - Identity: IFastRundown_Impl, - { + pub const fn new() -> IFastRundown_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IForegroundTransfer_Impl: Sized { +pub trait IForegroundTransfer_Impl: Sized + windows_core::IUnknownImpl { fn AllowForegroundTransfer(&self, lpvreserved: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IForegroundTransfer {} impl IForegroundTransfer_Vtbl { - pub const fn new() -> IForegroundTransfer_Vtbl - where - Identity: IForegroundTransfer_Impl, - { - unsafe extern "system" fn AllowForegroundTransfer(this: *mut core::ffi::c_void, lpvreserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IForegroundTransfer_Impl, - { + pub const fn new() -> IForegroundTransfer_Vtbl { + unsafe extern "system" fn AllowForegroundTransfer(this: *mut core::ffi::c_void, lpvreserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IForegroundTransfer_Impl::AllowForegroundTransfer(this, core::mem::transmute_copy(&lpvreserved)).into() } @@ -2846,21 +2111,15 @@ impl IForegroundTransfer_Vtbl { iid == &::IID } } -pub trait IGlobalInterfaceTable_Impl: Sized { +pub trait IGlobalInterfaceTable_Impl: Sized + windows_core::IUnknownImpl { fn RegisterInterfaceInGlobal(&self, punk: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID) -> windows_core::Result; fn RevokeInterfaceFromGlobal(&self, dwcookie: u32) -> windows_core::Result<()>; fn GetInterfaceFromGlobal(&self, dwcookie: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGlobalInterfaceTable {} impl IGlobalInterfaceTable_Vtbl { - pub const fn new() -> IGlobalInterfaceTable_Vtbl - where - Identity: IGlobalInterfaceTable_Impl, - { - unsafe extern "system" fn RegisterInterfaceInGlobal(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, riid: *const windows_core::GUID, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IGlobalInterfaceTable_Impl, - { + pub const fn new() -> IGlobalInterfaceTable_Vtbl { + unsafe extern "system" fn RegisterInterfaceInGlobal(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, riid: *const windows_core::GUID, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGlobalInterfaceTable_Impl::RegisterInterfaceInGlobal(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -2870,17 +2129,11 @@ impl IGlobalInterfaceTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RevokeInterfaceFromGlobal(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IGlobalInterfaceTable_Impl, - { + unsafe extern "system" fn RevokeInterfaceFromGlobal(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGlobalInterfaceTable_Impl::RevokeInterfaceFromGlobal(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn GetInterfaceFromGlobal(this: *mut core::ffi::c_void, dwcookie: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGlobalInterfaceTable_Impl, - { + unsafe extern "system" fn GetInterfaceFromGlobal(this: *mut core::ffi::c_void, dwcookie: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGlobalInterfaceTable_Impl::GetInterfaceFromGlobal(this, core::mem::transmute_copy(&dwcookie), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -2895,27 +2148,18 @@ impl IGlobalInterfaceTable_Vtbl { iid == &::IID } } -pub trait IGlobalOptions_Impl: Sized { +pub trait IGlobalOptions_Impl: Sized + windows_core::IUnknownImpl { fn Set(&self, dwproperty: GLOBALOPT_PROPERTIES, dwvalue: usize) -> windows_core::Result<()>; fn Query(&self, dwproperty: GLOBALOPT_PROPERTIES) -> windows_core::Result; } impl windows_core::RuntimeName for IGlobalOptions {} impl IGlobalOptions_Vtbl { - pub const fn new() -> IGlobalOptions_Vtbl - where - Identity: IGlobalOptions_Impl, - { - unsafe extern "system" fn Set(this: *mut core::ffi::c_void, dwproperty: GLOBALOPT_PROPERTIES, dwvalue: usize) -> windows_core::HRESULT - where - Identity: IGlobalOptions_Impl, - { + pub const fn new() -> IGlobalOptions_Vtbl { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, dwproperty: GLOBALOPT_PROPERTIES, dwvalue: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGlobalOptions_Impl::Set(this, core::mem::transmute_copy(&dwproperty), core::mem::transmute_copy(&dwvalue)).into() } - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, dwproperty: GLOBALOPT_PROPERTIES, pdwvalue: *mut usize) -> windows_core::HRESULT - where - Identity: IGlobalOptions_Impl, - { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, dwproperty: GLOBALOPT_PROPERTIES, pdwvalue: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGlobalOptions_Impl::Query(this, core::mem::transmute_copy(&dwproperty)) { Ok(ok__) => { @@ -2931,7 +2175,7 @@ impl IGlobalOptions_Vtbl { iid == &::IID } } -pub trait IInitializeSpy_Impl: Sized { +pub trait IInitializeSpy_Impl: Sized + windows_core::IUnknownImpl { fn PreInitialize(&self, dwcoinit: u32, dwcurthreadaptrefs: u32) -> windows_core::Result<()>; fn PostInitialize(&self, hrcoinit: windows_core::HRESULT, dwcoinit: u32, dwnewthreadaptrefs: u32) -> windows_core::Result<()>; fn PreUninitialize(&self, dwcurthreadaptrefs: u32) -> windows_core::Result<()>; @@ -2939,35 +2183,20 @@ pub trait IInitializeSpy_Impl: Sized { } impl windows_core::RuntimeName for IInitializeSpy {} impl IInitializeSpy_Vtbl { - pub const fn new() -> IInitializeSpy_Vtbl - where - Identity: IInitializeSpy_Impl, - { - unsafe extern "system" fn PreInitialize(this: *mut core::ffi::c_void, dwcoinit: u32, dwcurthreadaptrefs: u32) -> windows_core::HRESULT - where - Identity: IInitializeSpy_Impl, - { + pub const fn new() -> IInitializeSpy_Vtbl { + unsafe extern "system" fn PreInitialize(this: *mut core::ffi::c_void, dwcoinit: u32, dwcurthreadaptrefs: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeSpy_Impl::PreInitialize(this, core::mem::transmute_copy(&dwcoinit), core::mem::transmute_copy(&dwcurthreadaptrefs)).into() } - unsafe extern "system" fn PostInitialize(this: *mut core::ffi::c_void, hrcoinit: windows_core::HRESULT, dwcoinit: u32, dwnewthreadaptrefs: u32) -> windows_core::HRESULT - where - Identity: IInitializeSpy_Impl, - { + unsafe extern "system" fn PostInitialize(this: *mut core::ffi::c_void, hrcoinit: windows_core::HRESULT, dwcoinit: u32, dwnewthreadaptrefs: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeSpy_Impl::PostInitialize(this, core::mem::transmute_copy(&hrcoinit), core::mem::transmute_copy(&dwcoinit), core::mem::transmute_copy(&dwnewthreadaptrefs)).into() } - unsafe extern "system" fn PreUninitialize(this: *mut core::ffi::c_void, dwcurthreadaptrefs: u32) -> windows_core::HRESULT - where - Identity: IInitializeSpy_Impl, - { + unsafe extern "system" fn PreUninitialize(this: *mut core::ffi::c_void, dwcurthreadaptrefs: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeSpy_Impl::PreUninitialize(this, core::mem::transmute_copy(&dwcurthreadaptrefs)).into() } - unsafe extern "system" fn PostUninitialize(this: *mut core::ffi::c_void, dwnewthreadaptrefs: u32) -> windows_core::HRESULT - where - Identity: IInitializeSpy_Impl, - { + unsafe extern "system" fn PostUninitialize(this: *mut core::ffi::c_void, dwnewthreadaptrefs: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeSpy_Impl::PostUninitialize(this, core::mem::transmute_copy(&dwnewthreadaptrefs)).into() } @@ -2983,19 +2212,13 @@ impl IInitializeSpy_Vtbl { iid == &::IID } } -pub trait IInternalUnknown_Impl: Sized { +pub trait IInternalUnknown_Impl: Sized + windows_core::IUnknownImpl { fn QueryInternalInterface(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInternalUnknown {} impl IInternalUnknown_Vtbl { - pub const fn new() -> IInternalUnknown_Vtbl - where - Identity: IInternalUnknown_Impl, - { - unsafe extern "system" fn QueryInternalInterface(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternalUnknown_Impl, - { + pub const fn new() -> IInternalUnknown_Vtbl { + unsafe extern "system" fn QueryInternalInterface(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternalUnknown_Impl::QueryInternalInterface(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -3005,21 +2228,15 @@ impl IInternalUnknown_Vtbl { iid == &::IID } } -pub trait IMachineGlobalObjectTable_Impl: Sized { +pub trait IMachineGlobalObjectTable_Impl: Sized + windows_core::IUnknownImpl { fn RegisterObject(&self, clsid: *const windows_core::GUID, identifier: &windows_core::PCWSTR, object: Option<&windows_core::IUnknown>) -> windows_core::Result; fn GetObject(&self, clsid: *const windows_core::GUID, identifier: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RevokeObject(&self, token: MachineGlobalObjectTableRegistrationToken) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMachineGlobalObjectTable {} impl IMachineGlobalObjectTable_Vtbl { - pub const fn new() -> IMachineGlobalObjectTable_Vtbl - where - Identity: IMachineGlobalObjectTable_Impl, - { - unsafe extern "system" fn RegisterObject(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, identifier: windows_core::PCWSTR, object: *mut core::ffi::c_void, token: *mut MachineGlobalObjectTableRegistrationToken) -> windows_core::HRESULT - where - Identity: IMachineGlobalObjectTable_Impl, - { + pub const fn new() -> IMachineGlobalObjectTable_Vtbl { + unsafe extern "system" fn RegisterObject(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, identifier: windows_core::PCWSTR, object: *mut core::ffi::c_void, token: *mut MachineGlobalObjectTableRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMachineGlobalObjectTable_Impl::RegisterObject(this, core::mem::transmute_copy(&clsid), core::mem::transmute(&identifier), windows_core::from_raw_borrowed(&object)) { Ok(ok__) => { @@ -3029,17 +2246,11 @@ impl IMachineGlobalObjectTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, identifier: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMachineGlobalObjectTable_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, identifier: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMachineGlobalObjectTable_Impl::GetObject(this, core::mem::transmute_copy(&clsid), core::mem::transmute(&identifier), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn RevokeObject(this: *mut core::ffi::c_void, token: MachineGlobalObjectTableRegistrationToken) -> windows_core::HRESULT - where - Identity: IMachineGlobalObjectTable_Impl, - { + unsafe extern "system" fn RevokeObject(this: *mut core::ffi::c_void, token: MachineGlobalObjectTableRegistrationToken) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMachineGlobalObjectTable_Impl::RevokeObject(this, core::mem::transmute_copy(&token)).into() } @@ -3054,7 +2265,7 @@ impl IMachineGlobalObjectTable_Vtbl { iid == &::IID } } -pub trait IMalloc_Impl: Sized { +pub trait IMalloc_Impl: Sized + windows_core::IUnknownImpl { fn Alloc(&self, cb: usize) -> *mut core::ffi::c_void; fn Realloc(&self, pv: *const core::ffi::c_void, cb: usize) -> *mut core::ffi::c_void; fn Free(&self, pv: *const core::ffi::c_void); @@ -3064,49 +2275,28 @@ pub trait IMalloc_Impl: Sized { } impl windows_core::RuntimeName for IMalloc {} impl IMalloc_Vtbl { - pub const fn new() -> IMalloc_Vtbl - where - Identity: IMalloc_Impl, - { - unsafe extern "system" fn Alloc(this: *mut core::ffi::c_void, cb: usize) -> *mut core::ffi::c_void - where - Identity: IMalloc_Impl, - { + pub const fn new() -> IMalloc_Vtbl { + unsafe extern "system" fn Alloc(this: *mut core::ffi::c_void, cb: usize) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMalloc_Impl::Alloc(this, core::mem::transmute_copy(&cb)) } - unsafe extern "system" fn Realloc(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void, cb: usize) -> *mut core::ffi::c_void - where - Identity: IMalloc_Impl, - { + unsafe extern "system" fn Realloc(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void, cb: usize) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMalloc_Impl::Realloc(this, core::mem::transmute_copy(&pv), core::mem::transmute_copy(&cb)) } - unsafe extern "system" fn Free(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void) - where - Identity: IMalloc_Impl, - { + unsafe extern "system" fn Free(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMalloc_Impl::Free(this, core::mem::transmute_copy(&pv)) } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void) -> usize - where - Identity: IMalloc_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMalloc_Impl::GetSize(this, core::mem::transmute_copy(&pv)) } - unsafe extern "system" fn DidAlloc(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void) -> i32 - where - Identity: IMalloc_Impl, - { + unsafe extern "system" fn DidAlloc(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMalloc_Impl::DidAlloc(this, core::mem::transmute_copy(&pv)) } - unsafe extern "system" fn HeapMinimize(this: *mut core::ffi::c_void) - where - Identity: IMalloc_Impl, - { + unsafe extern "system" fn HeapMinimize(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMalloc_Impl::HeapMinimize(this) } @@ -3124,7 +2314,7 @@ impl IMalloc_Vtbl { iid == &::IID } } -pub trait IMallocSpy_Impl: Sized { +pub trait IMallocSpy_Impl: Sized + windows_core::IUnknownImpl { fn PreAlloc(&self, cbrequest: usize) -> usize; fn PostAlloc(&self, pactual: *const core::ffi::c_void) -> *mut core::ffi::c_void; fn PreFree(&self, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void; @@ -3140,91 +2330,52 @@ pub trait IMallocSpy_Impl: Sized { } impl windows_core::RuntimeName for IMallocSpy {} impl IMallocSpy_Vtbl { - pub const fn new() -> IMallocSpy_Vtbl - where - Identity: IMallocSpy_Impl, - { - unsafe extern "system" fn PreAlloc(this: *mut core::ffi::c_void, cbrequest: usize) -> usize - where - Identity: IMallocSpy_Impl, - { + pub const fn new() -> IMallocSpy_Vtbl { + unsafe extern "system" fn PreAlloc(this: *mut core::ffi::c_void, cbrequest: usize) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PreAlloc(this, core::mem::transmute_copy(&cbrequest)) } - unsafe extern "system" fn PostAlloc(this: *mut core::ffi::c_void, pactual: *const core::ffi::c_void) -> *mut core::ffi::c_void - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PostAlloc(this: *mut core::ffi::c_void, pactual: *const core::ffi::c_void) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PostAlloc(this, core::mem::transmute_copy(&pactual)) } - unsafe extern "system" fn PreFree(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PreFree(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PreFree(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&fspyed)) } - unsafe extern "system" fn PostFree(this: *mut core::ffi::c_void, fspyed: super::super::Foundation::BOOL) - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PostFree(this: *mut core::ffi::c_void, fspyed: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PostFree(this, core::mem::transmute_copy(&fspyed)) } - unsafe extern "system" fn PreRealloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, cbrequest: usize, ppnewrequest: *mut *mut core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> usize - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PreRealloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, cbrequest: usize, ppnewrequest: *mut *mut core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PreRealloc(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&cbrequest), core::mem::transmute_copy(&ppnewrequest), core::mem::transmute_copy(&fspyed)) } - unsafe extern "system" fn PostRealloc(this: *mut core::ffi::c_void, pactual: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PostRealloc(this: *mut core::ffi::c_void, pactual: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PostRealloc(this, core::mem::transmute_copy(&pactual), core::mem::transmute_copy(&fspyed)) } - unsafe extern "system" fn PreGetSize(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PreGetSize(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PreGetSize(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&fspyed)) } - unsafe extern "system" fn PostGetSize(this: *mut core::ffi::c_void, cbactual: usize, fspyed: super::super::Foundation::BOOL) -> usize - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PostGetSize(this: *mut core::ffi::c_void, cbactual: usize, fspyed: super::super::Foundation::BOOL) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PostGetSize(this, core::mem::transmute_copy(&cbactual), core::mem::transmute_copy(&fspyed)) } - unsafe extern "system" fn PreDidAlloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PreDidAlloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PreDidAlloc(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&fspyed)) } - unsafe extern "system" fn PostDidAlloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL, factual: i32) -> i32 - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PostDidAlloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL, factual: i32) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PostDidAlloc(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&fspyed), core::mem::transmute_copy(&factual)) } - unsafe extern "system" fn PreHeapMinimize(this: *mut core::ffi::c_void) - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PreHeapMinimize(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PreHeapMinimize(this) } - unsafe extern "system" fn PostHeapMinimize(this: *mut core::ffi::c_void) - where - Identity: IMallocSpy_Impl, - { + unsafe extern "system" fn PostHeapMinimize(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PostHeapMinimize(this) } @@ -3267,35 +2418,20 @@ pub trait IMoniker_Impl: Sized + IPersistStream_Impl { } impl windows_core::RuntimeName for IMoniker {} impl IMoniker_Vtbl { - pub const fn new() -> IMoniker_Vtbl - where - Identity: IMoniker_Impl, - { - unsafe extern "system" fn BindToObject(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, riidresult: *const windows_core::GUID, ppvresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + pub const fn new() -> IMoniker_Vtbl { + unsafe extern "system" fn BindToObject(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, riidresult: *const windows_core::GUID, ppvresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMoniker_Impl::BindToObject(this, windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pmktoleft), core::mem::transmute_copy(&riidresult), core::mem::transmute_copy(&ppvresult)).into() } - unsafe extern "system" fn BindToStorage(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn BindToStorage(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMoniker_Impl::BindToStorage(this, windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pmktoleft), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobj)).into() } - unsafe extern "system" fn Reduce(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, dwreducehowfar: u32, ppmktoleft: *mut *mut core::ffi::c_void, ppmkreduced: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn Reduce(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, dwreducehowfar: u32, ppmktoleft: *mut *mut core::ffi::c_void, ppmkreduced: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMoniker_Impl::Reduce(this, windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&dwreducehowfar), core::mem::transmute_copy(&ppmktoleft), core::mem::transmute_copy(&ppmkreduced)).into() } - unsafe extern "system" fn ComposeWith(this: *mut core::ffi::c_void, pmkright: *mut core::ffi::c_void, fonlyifnotgeneric: super::super::Foundation::BOOL, ppmkcomposite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn ComposeWith(this: *mut core::ffi::c_void, pmkright: *mut core::ffi::c_void, fonlyifnotgeneric: super::super::Foundation::BOOL, ppmkcomposite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::ComposeWith(this, windows_core::from_raw_borrowed(&pmkright), core::mem::transmute_copy(&fonlyifnotgeneric)) { Ok(ok__) => { @@ -3305,10 +2441,7 @@ impl IMoniker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, fforward: super::super::Foundation::BOOL, ppenummoniker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, fforward: super::super::Foundation::BOOL, ppenummoniker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::Enum(this, core::mem::transmute_copy(&fforward)) { Ok(ok__) => { @@ -3318,17 +2451,11 @@ impl IMoniker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pmkothermoniker: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pmkothermoniker: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMoniker_Impl::IsEqual(this, windows_core::from_raw_borrowed(&pmkothermoniker)) } - unsafe extern "system" fn Hash(this: *mut core::ffi::c_void, pdwhash: *mut u32) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn Hash(this: *mut core::ffi::c_void, pdwhash: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::Hash(this) { Ok(ok__) => { @@ -3338,17 +2465,11 @@ impl IMoniker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, pmknewlyrunning: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, pmknewlyrunning: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMoniker_Impl::IsRunning(this, windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pmktoleft), windows_core::from_raw_borrowed(&pmknewlyrunning)).into() } - unsafe extern "system" fn GetTimeOfLastChange(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, pfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn GetTimeOfLastChange(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, pfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::GetTimeOfLastChange(this, windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pmktoleft)) { Ok(ok__) => { @@ -3358,10 +2479,7 @@ impl IMoniker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Inverse(this: *mut core::ffi::c_void, ppmk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn Inverse(this: *mut core::ffi::c_void, ppmk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::Inverse(this) { Ok(ok__) => { @@ -3371,10 +2489,7 @@ impl IMoniker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommonPrefixWith(this: *mut core::ffi::c_void, pmkother: *mut core::ffi::c_void, ppmkprefix: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn CommonPrefixWith(this: *mut core::ffi::c_void, pmkother: *mut core::ffi::c_void, ppmkprefix: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::CommonPrefixWith(this, windows_core::from_raw_borrowed(&pmkother)) { Ok(ok__) => { @@ -3384,10 +2499,7 @@ impl IMoniker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RelativePathTo(this: *mut core::ffi::c_void, pmkother: *mut core::ffi::c_void, ppmkrelpath: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn RelativePathTo(this: *mut core::ffi::c_void, pmkother: *mut core::ffi::c_void, ppmkrelpath: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::RelativePathTo(this, windows_core::from_raw_borrowed(&pmkother)) { Ok(ok__) => { @@ -3397,10 +2509,7 @@ impl IMoniker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, ppszdisplayname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, ppszdisplayname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::GetDisplayName(this, windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pmktoleft)) { Ok(ok__) => { @@ -3410,17 +2519,11 @@ impl IMoniker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParseDisplayName(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, pszdisplayname: windows_core::PCWSTR, pcheaten: *mut u32, ppmkout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn ParseDisplayName(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pmktoleft: *mut core::ffi::c_void, pszdisplayname: windows_core::PCWSTR, pcheaten: *mut u32, ppmkout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMoniker_Impl::ParseDisplayName(this, windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pmktoleft), core::mem::transmute(&pszdisplayname), core::mem::transmute_copy(&pcheaten), core::mem::transmute_copy(&ppmkout)).into() } - unsafe extern "system" fn IsSystemMoniker(this: *mut core::ffi::c_void, pdwmksys: *mut u32) -> windows_core::HRESULT - where - Identity: IMoniker_Impl, - { + unsafe extern "system" fn IsSystemMoniker(this: *mut core::ffi::c_void, pdwmksys: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::IsSystemMoniker(this) { Ok(ok__) => { @@ -3453,19 +2556,13 @@ impl IMoniker_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMultiQI_Impl: Sized { +pub trait IMultiQI_Impl: Sized + windows_core::IUnknownImpl { fn QueryMultipleInterfaces(&self, cmqis: u32, pmqis: *mut MULTI_QI) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMultiQI {} impl IMultiQI_Vtbl { - pub const fn new() -> IMultiQI_Vtbl - where - Identity: IMultiQI_Impl, - { - unsafe extern "system" fn QueryMultipleInterfaces(this: *mut core::ffi::c_void, cmqis: u32, pmqis: *mut MULTI_QI) -> windows_core::HRESULT - where - Identity: IMultiQI_Impl, - { + pub const fn new() -> IMultiQI_Vtbl { + unsafe extern "system" fn QueryMultipleInterfaces(this: *mut core::ffi::c_void, cmqis: u32, pmqis: *mut MULTI_QI) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiQI_Impl::QueryMultipleInterfaces(this, core::mem::transmute_copy(&cmqis), core::mem::transmute_copy(&pmqis)).into() } @@ -3475,40 +2572,28 @@ impl IMultiQI_Vtbl { iid == &::IID } } -pub trait INoMarshal_Impl: Sized {} +pub trait INoMarshal_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for INoMarshal {} impl INoMarshal_Vtbl { - pub const fn new() -> INoMarshal_Vtbl - where - Identity: INoMarshal_Impl, - { + pub const fn new() -> INoMarshal_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IOplockStorage_Impl: Sized { +pub trait IOplockStorage_Impl: Sized + windows_core::IUnknownImpl { fn CreateStorageEx(&self, pwcsname: &windows_core::PCWSTR, grfmode: u32, stgfmt: u32, grfattrs: u32, riid: *const windows_core::GUID, ppstgopen: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn OpenStorageEx(&self, pwcsname: &windows_core::PCWSTR, grfmode: u32, stgfmt: u32, grfattrs: u32, riid: *const windows_core::GUID, ppstgopen: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOplockStorage {} impl IOplockStorage_Vtbl { - pub const fn new() -> IOplockStorage_Vtbl - where - Identity: IOplockStorage_Impl, - { - unsafe extern "system" fn CreateStorageEx(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, grfmode: u32, stgfmt: u32, grfattrs: u32, riid: *const windows_core::GUID, ppstgopen: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOplockStorage_Impl, - { + pub const fn new() -> IOplockStorage_Vtbl { + unsafe extern "system" fn CreateStorageEx(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, grfmode: u32, stgfmt: u32, grfattrs: u32, riid: *const windows_core::GUID, ppstgopen: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOplockStorage_Impl::CreateStorageEx(this, core::mem::transmute(&pwcsname), core::mem::transmute_copy(&grfmode), core::mem::transmute_copy(&stgfmt), core::mem::transmute_copy(&grfattrs), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppstgopen)).into() } - unsafe extern "system" fn OpenStorageEx(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, grfmode: u32, stgfmt: u32, grfattrs: u32, riid: *const windows_core::GUID, ppstgopen: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOplockStorage_Impl, - { + unsafe extern "system" fn OpenStorageEx(this: *mut core::ffi::c_void, pwcsname: windows_core::PCWSTR, grfmode: u32, stgfmt: u32, grfattrs: u32, riid: *const windows_core::GUID, ppstgopen: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOplockStorage_Impl::OpenStorageEx(this, core::mem::transmute(&pwcsname), core::mem::transmute_copy(&grfmode), core::mem::transmute_copy(&stgfmt), core::mem::transmute_copy(&grfattrs), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppstgopen)).into() } @@ -3522,27 +2607,18 @@ impl IOplockStorage_Vtbl { iid == &::IID } } -pub trait IPSFactoryBuffer_Impl: Sized { +pub trait IPSFactoryBuffer_Impl: Sized + windows_core::IUnknownImpl { fn CreateProxy(&self, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID, ppproxy: *mut Option, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateStub(&self, riid: *const windows_core::GUID, punkserver: Option<&windows_core::IUnknown>) -> windows_core::Result; } impl windows_core::RuntimeName for IPSFactoryBuffer {} impl IPSFactoryBuffer_Vtbl { - pub const fn new() -> IPSFactoryBuffer_Vtbl - where - Identity: IPSFactoryBuffer_Impl, - { - unsafe extern "system" fn CreateProxy(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppproxy: *mut *mut core::ffi::c_void, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPSFactoryBuffer_Impl, - { + pub const fn new() -> IPSFactoryBuffer_Vtbl { + unsafe extern "system" fn CreateProxy(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppproxy: *mut *mut core::ffi::c_void, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPSFactoryBuffer_Impl::CreateProxy(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppproxy), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateStub(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punkserver: *mut core::ffi::c_void, ppstub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPSFactoryBuffer_Impl, - { + unsafe extern "system" fn CreateStub(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punkserver: *mut core::ffi::c_void, ppstub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPSFactoryBuffer_Impl::CreateStub(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punkserver)) { Ok(ok__) => { @@ -3562,19 +2638,13 @@ impl IPSFactoryBuffer_Vtbl { iid == &::IID } } -pub trait IPersist_Impl: Sized { +pub trait IPersist_Impl: Sized + windows_core::IUnknownImpl { fn GetClassID(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IPersist {} impl IPersist_Vtbl { - pub const fn new() -> IPersist_Vtbl - where - Identity: IPersist_Impl, - { - unsafe extern "system" fn GetClassID(this: *mut core::ffi::c_void, pclassid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPersist_Impl, - { + pub const fn new() -> IPersist_Vtbl { + unsafe extern "system" fn GetClassID(this: *mut core::ffi::c_void, pclassid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersist_Impl::GetClassID(this) { Ok(ok__) => { @@ -3599,42 +2669,24 @@ pub trait IPersistFile_Impl: Sized + IPersist_Impl { } impl windows_core::RuntimeName for IPersistFile {} impl IPersistFile_Vtbl { - pub const fn new() -> IPersistFile_Vtbl - where - Identity: IPersistFile_Impl, - { - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistFile_Impl, - { + pub const fn new() -> IPersistFile_Vtbl { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistFile_Impl::IsDirty(this) } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, dwmode: STGM) -> windows_core::HRESULT - where - Identity: IPersistFile_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, dwmode: STGM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistFile_Impl::Load(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&dwmode)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, fremember: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPersistFile_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, fremember: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistFile_Impl::Save(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&fremember)).into() } - unsafe extern "system" fn SaveCompleted(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPersistFile_Impl, - { + unsafe extern "system" fn SaveCompleted(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistFile_Impl::SaveCompleted(this, core::mem::transmute(&pszfilename)).into() } - unsafe extern "system" fn GetCurFile(this: *mut core::ffi::c_void, ppszfilename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPersistFile_Impl, - { + unsafe extern "system" fn GetCurFile(this: *mut core::ffi::c_void, ppszfilename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistFile_Impl::GetCurFile(this) { Ok(ok__) => { @@ -3666,35 +2718,20 @@ pub trait IPersistMemory_Impl: Sized + IPersist_Impl { } impl windows_core::RuntimeName for IPersistMemory {} impl IPersistMemory_Vtbl { - pub const fn new() -> IPersistMemory_Vtbl - where - Identity: IPersistMemory_Impl, - { - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistMemory_Impl, - { + pub const fn new() -> IPersistMemory_Vtbl { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMemory_Impl::IsDirty(this) } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pmem: *const core::ffi::c_void, cbsize: u32) -> windows_core::HRESULT - where - Identity: IPersistMemory_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pmem: *const core::ffi::c_void, cbsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMemory_Impl::Load(this, core::mem::transmute_copy(&pmem), core::mem::transmute_copy(&cbsize)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pmem: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, cbsize: u32) -> windows_core::HRESULT - where - Identity: IPersistMemory_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pmem: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, cbsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMemory_Impl::Save(this, core::mem::transmute_copy(&pmem), core::mem::transmute_copy(&fcleardirty), core::mem::transmute_copy(&cbsize)).into() } - unsafe extern "system" fn GetSizeMax(this: *mut core::ffi::c_void, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: IPersistMemory_Impl, - { + unsafe extern "system" fn GetSizeMax(this: *mut core::ffi::c_void, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistMemory_Impl::GetSizeMax(this) { Ok(ok__) => { @@ -3704,10 +2741,7 @@ impl IPersistMemory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistMemory_Impl, - { + unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMemory_Impl::InitNew(this).into() } @@ -3732,35 +2766,20 @@ pub trait IPersistStream_Impl: Sized + IPersist_Impl { } impl windows_core::RuntimeName for IPersistStream {} impl IPersistStream_Vtbl { - pub const fn new() -> IPersistStream_Vtbl - where - Identity: IPersistStream_Impl, - { - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistStream_Impl, - { + pub const fn new() -> IPersistStream_Vtbl { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStream_Impl::IsDirty(this) } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistStream_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStream_Impl::Load(this, windows_core::from_raw_borrowed(&pstm)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPersistStream_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStream_Impl::Save(this, windows_core::from_raw_borrowed(&pstm), core::mem::transmute_copy(&fcleardirty)).into() } - unsafe extern "system" fn GetSizeMax(this: *mut core::ffi::c_void, pcbsize: *mut u64) -> windows_core::HRESULT - where - Identity: IPersistStream_Impl, - { + unsafe extern "system" fn GetSizeMax(this: *mut core::ffi::c_void, pcbsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistStream_Impl::GetSizeMax(this) { Ok(ok__) => { @@ -3791,35 +2810,20 @@ pub trait IPersistStreamInit_Impl: Sized + IPersist_Impl { } impl windows_core::RuntimeName for IPersistStreamInit {} impl IPersistStreamInit_Vtbl { - pub const fn new() -> IPersistStreamInit_Vtbl - where - Identity: IPersistStreamInit_Impl, - { - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistStreamInit_Impl, - { + pub const fn new() -> IPersistStreamInit_Vtbl { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStreamInit_Impl::IsDirty(this) } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistStreamInit_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStreamInit_Impl::Load(this, windows_core::from_raw_borrowed(&pstm)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPersistStreamInit_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStreamInit_Impl::Save(this, windows_core::from_raw_borrowed(&pstm), core::mem::transmute_copy(&fcleardirty)).into() } - unsafe extern "system" fn GetSizeMax(this: *mut core::ffi::c_void, pcbsize: *mut u64) -> windows_core::HRESULT - where - Identity: IPersistStreamInit_Impl, - { + unsafe extern "system" fn GetSizeMax(this: *mut core::ffi::c_void, pcbsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistStreamInit_Impl::GetSizeMax(this) { Ok(ok__) => { @@ -3829,10 +2833,7 @@ impl IPersistStreamInit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistStreamInit_Impl, - { + unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStreamInit_Impl::InitNew(this).into() } @@ -3849,27 +2850,18 @@ impl IPersistStreamInit_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPipeByte_Impl: Sized { +pub trait IPipeByte_Impl: Sized + windows_core::IUnknownImpl { fn Pull(&self, buf: *mut u8, crequest: u32, pcreturned: *mut u32) -> windows_core::Result<()>; fn Push(&self, buf: *const u8, csent: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPipeByte {} impl IPipeByte_Vtbl { - pub const fn new() -> IPipeByte_Vtbl - where - Identity: IPipeByte_Impl, - { - unsafe extern "system" fn Pull(this: *mut core::ffi::c_void, buf: *mut u8, crequest: u32, pcreturned: *mut u32) -> windows_core::HRESULT - where - Identity: IPipeByte_Impl, - { + pub const fn new() -> IPipeByte_Vtbl { + unsafe extern "system" fn Pull(this: *mut core::ffi::c_void, buf: *mut u8, crequest: u32, pcreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPipeByte_Impl::Pull(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&crequest), core::mem::transmute_copy(&pcreturned)).into() } - unsafe extern "system" fn Push(this: *mut core::ffi::c_void, buf: *const u8, csent: u32) -> windows_core::HRESULT - where - Identity: IPipeByte_Impl, - { + unsafe extern "system" fn Push(this: *mut core::ffi::c_void, buf: *const u8, csent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPipeByte_Impl::Push(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&csent)).into() } @@ -3879,27 +2871,18 @@ impl IPipeByte_Vtbl { iid == &::IID } } -pub trait IPipeDouble_Impl: Sized { +pub trait IPipeDouble_Impl: Sized + windows_core::IUnknownImpl { fn Pull(&self, buf: *mut f64, crequest: u32, pcreturned: *mut u32) -> windows_core::Result<()>; fn Push(&self, buf: *const f64, csent: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPipeDouble {} impl IPipeDouble_Vtbl { - pub const fn new() -> IPipeDouble_Vtbl - where - Identity: IPipeDouble_Impl, - { - unsafe extern "system" fn Pull(this: *mut core::ffi::c_void, buf: *mut f64, crequest: u32, pcreturned: *mut u32) -> windows_core::HRESULT - where - Identity: IPipeDouble_Impl, - { + pub const fn new() -> IPipeDouble_Vtbl { + unsafe extern "system" fn Pull(this: *mut core::ffi::c_void, buf: *mut f64, crequest: u32, pcreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPipeDouble_Impl::Pull(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&crequest), core::mem::transmute_copy(&pcreturned)).into() } - unsafe extern "system" fn Push(this: *mut core::ffi::c_void, buf: *const f64, csent: u32) -> windows_core::HRESULT - where - Identity: IPipeDouble_Impl, - { + unsafe extern "system" fn Push(this: *mut core::ffi::c_void, buf: *const f64, csent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPipeDouble_Impl::Push(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&csent)).into() } @@ -3909,27 +2892,18 @@ impl IPipeDouble_Vtbl { iid == &::IID } } -pub trait IPipeLong_Impl: Sized { +pub trait IPipeLong_Impl: Sized + windows_core::IUnknownImpl { fn Pull(&self, buf: *mut i32, crequest: u32, pcreturned: *mut u32) -> windows_core::Result<()>; fn Push(&self, buf: *const i32, csent: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPipeLong {} impl IPipeLong_Vtbl { - pub const fn new() -> IPipeLong_Vtbl - where - Identity: IPipeLong_Impl, - { - unsafe extern "system" fn Pull(this: *mut core::ffi::c_void, buf: *mut i32, crequest: u32, pcreturned: *mut u32) -> windows_core::HRESULT - where - Identity: IPipeLong_Impl, - { + pub const fn new() -> IPipeLong_Vtbl { + unsafe extern "system" fn Pull(this: *mut core::ffi::c_void, buf: *mut i32, crequest: u32, pcreturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPipeLong_Impl::Pull(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&crequest), core::mem::transmute_copy(&pcreturned)).into() } - unsafe extern "system" fn Push(this: *mut core::ffi::c_void, buf: *const i32, csent: u32) -> windows_core::HRESULT - where - Identity: IPipeLong_Impl, - { + unsafe extern "system" fn Push(this: *mut core::ffi::c_void, buf: *const i32, csent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPipeLong_Impl::Push(this, core::mem::transmute_copy(&buf), core::mem::transmute_copy(&csent)).into() } @@ -3939,19 +2913,13 @@ impl IPipeLong_Vtbl { iid == &::IID } } -pub trait IProcessInitControl_Impl: Sized { +pub trait IProcessInitControl_Impl: Sized + windows_core::IUnknownImpl { fn ResetInitializerTimeout(&self, dwsecondsremaining: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IProcessInitControl {} impl IProcessInitControl_Vtbl { - pub const fn new() -> IProcessInitControl_Vtbl - where - Identity: IProcessInitControl_Impl, - { - unsafe extern "system" fn ResetInitializerTimeout(this: *mut core::ffi::c_void, dwsecondsremaining: u32) -> windows_core::HRESULT - where - Identity: IProcessInitControl_Impl, - { + pub const fn new() -> IProcessInitControl_Vtbl { + unsafe extern "system" fn ResetInitializerTimeout(this: *mut core::ffi::c_void, dwsecondsremaining: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProcessInitControl_Impl::ResetInitializerTimeout(this, core::mem::transmute_copy(&dwsecondsremaining)).into() } @@ -3961,27 +2929,18 @@ impl IProcessInitControl_Vtbl { iid == &::IID } } -pub trait IProcessLock_Impl: Sized { +pub trait IProcessLock_Impl: Sized + windows_core::IUnknownImpl { fn AddRefOnProcess(&self) -> u32; fn ReleaseRefOnProcess(&self) -> u32; } impl windows_core::RuntimeName for IProcessLock {} impl IProcessLock_Vtbl { - pub const fn new() -> IProcessLock_Vtbl - where - Identity: IProcessLock_Impl, - { - unsafe extern "system" fn AddRefOnProcess(this: *mut core::ffi::c_void) -> u32 - where - Identity: IProcessLock_Impl, - { + pub const fn new() -> IProcessLock_Vtbl { + unsafe extern "system" fn AddRefOnProcess(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProcessLock_Impl::AddRefOnProcess(this) } - unsafe extern "system" fn ReleaseRefOnProcess(this: *mut core::ffi::c_void) -> u32 - where - Identity: IProcessLock_Impl, - { + unsafe extern "system" fn ReleaseRefOnProcess(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProcessLock_Impl::ReleaseRefOnProcess(this) } @@ -3995,19 +2954,13 @@ impl IProcessLock_Vtbl { iid == &::IID } } -pub trait IProgressNotify_Impl: Sized { +pub trait IProgressNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnProgress(&self, dwprogresscurrent: u32, dwprogressmaximum: u32, faccurate: super::super::Foundation::BOOL, fowner: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IProgressNotify {} impl IProgressNotify_Vtbl { - pub const fn new() -> IProgressNotify_Vtbl - where - Identity: IProgressNotify_Impl, - { - unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, dwprogresscurrent: u32, dwprogressmaximum: u32, faccurate: super::super::Foundation::BOOL, fowner: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IProgressNotify_Impl, - { + pub const fn new() -> IProgressNotify_Vtbl { + unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, dwprogresscurrent: u32, dwprogressmaximum: u32, faccurate: super::super::Foundation::BOOL, fowner: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressNotify_Impl::OnProgress(this, core::mem::transmute_copy(&dwprogresscurrent), core::mem::transmute_copy(&dwprogressmaximum), core::mem::transmute_copy(&faccurate), core::mem::transmute_copy(&fowner)).into() } @@ -4017,19 +2970,13 @@ impl IProgressNotify_Vtbl { iid == &::IID } } -pub trait IROTData_Impl: Sized { +pub trait IROTData_Impl: Sized + windows_core::IUnknownImpl { fn GetComparisonData(&self, pbdata: *mut u8, cbmax: u32, pcbdata: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IROTData {} impl IROTData_Vtbl { - pub const fn new() -> IROTData_Vtbl - where - Identity: IROTData_Impl, - { - unsafe extern "system" fn GetComparisonData(this: *mut core::ffi::c_void, pbdata: *mut u8, cbmax: u32, pcbdata: *mut u32) -> windows_core::HRESULT - where - Identity: IROTData_Impl, - { + pub const fn new() -> IROTData_Vtbl { + unsafe extern "system" fn GetComparisonData(this: *mut core::ffi::c_void, pbdata: *mut u8, cbmax: u32, pcbdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IROTData_Impl::GetComparisonData(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbmax), core::mem::transmute_copy(&pcbdata)).into() } @@ -4039,19 +2986,13 @@ impl IROTData_Vtbl { iid == &::IID } } -pub trait IReleaseMarshalBuffers_Impl: Sized { +pub trait IReleaseMarshalBuffers_Impl: Sized + windows_core::IUnknownImpl { fn ReleaseMarshalBuffer(&self, pmsg: *mut RPCOLEMESSAGE, dwflags: u32, pchnl: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IReleaseMarshalBuffers {} impl IReleaseMarshalBuffers_Vtbl { - pub const fn new() -> IReleaseMarshalBuffers_Vtbl - where - Identity: IReleaseMarshalBuffers_Impl, - { - unsafe extern "system" fn ReleaseMarshalBuffer(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, dwflags: u32, pchnl: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IReleaseMarshalBuffers_Impl, - { + pub const fn new() -> IReleaseMarshalBuffers_Vtbl { + unsafe extern "system" fn ReleaseMarshalBuffer(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, dwflags: u32, pchnl: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReleaseMarshalBuffers_Impl::ReleaseMarshalBuffer(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pchnl)).into() } @@ -4061,7 +3002,7 @@ impl IReleaseMarshalBuffers_Vtbl { iid == &::IID } } -pub trait IRpcChannelBuffer_Impl: Sized { +pub trait IRpcChannelBuffer_Impl: Sized + windows_core::IUnknownImpl { fn GetBuffer(&self, pmessage: *mut RPCOLEMESSAGE, riid: *const windows_core::GUID) -> windows_core::Result<()>; fn SendReceive(&self, pmessage: *mut RPCOLEMESSAGE, pstatus: *mut u32) -> windows_core::Result<()>; fn FreeBuffer(&self, pmessage: *mut RPCOLEMESSAGE) -> windows_core::Result<()>; @@ -4070,42 +3011,24 @@ pub trait IRpcChannelBuffer_Impl: Sized { } impl windows_core::RuntimeName for IRpcChannelBuffer {} impl IRpcChannelBuffer_Vtbl { - pub const fn new() -> IRpcChannelBuffer_Vtbl - where - Identity: IRpcChannelBuffer_Impl, - { - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, pmessage: *mut RPCOLEMESSAGE, riid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer_Impl, - { + pub const fn new() -> IRpcChannelBuffer_Vtbl { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, pmessage: *mut RPCOLEMESSAGE, riid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer_Impl::GetBuffer(this, core::mem::transmute_copy(&pmessage), core::mem::transmute_copy(&riid)).into() } - unsafe extern "system" fn SendReceive(this: *mut core::ffi::c_void, pmessage: *mut RPCOLEMESSAGE, pstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer_Impl, - { + unsafe extern "system" fn SendReceive(this: *mut core::ffi::c_void, pmessage: *mut RPCOLEMESSAGE, pstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer_Impl::SendReceive(this, core::mem::transmute_copy(&pmessage), core::mem::transmute_copy(&pstatus)).into() } - unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void, pmessage: *mut RPCOLEMESSAGE) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer_Impl, - { + unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void, pmessage: *mut RPCOLEMESSAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer_Impl::FreeBuffer(this, core::mem::transmute_copy(&pmessage)).into() } - unsafe extern "system" fn GetDestCtx(this: *mut core::ffi::c_void, pdwdestcontext: *mut u32, ppvdestcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer_Impl, - { + unsafe extern "system" fn GetDestCtx(this: *mut core::ffi::c_void, pdwdestcontext: *mut u32, ppvdestcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer_Impl::GetDestCtx(this, core::mem::transmute_copy(&pdwdestcontext), core::mem::transmute_copy(&ppvdestcontext)).into() } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer_Impl, - { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer_Impl::IsConnected(this).into() } @@ -4127,14 +3050,8 @@ pub trait IRpcChannelBuffer2_Impl: Sized + IRpcChannelBuffer_Impl { } impl windows_core::RuntimeName for IRpcChannelBuffer2 {} impl IRpcChannelBuffer2_Vtbl { - pub const fn new() -> IRpcChannelBuffer2_Vtbl - where - Identity: IRpcChannelBuffer2_Impl, - { - unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer2_Impl, - { + pub const fn new() -> IRpcChannelBuffer2_Vtbl { + unsafe extern "system" fn GetProtocolVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRpcChannelBuffer2_Impl::GetProtocolVersion(this) { Ok(ok__) => { @@ -4161,49 +3078,28 @@ pub trait IRpcChannelBuffer3_Impl: Sized + IRpcChannelBuffer2_Impl { } impl windows_core::RuntimeName for IRpcChannelBuffer3 {} impl IRpcChannelBuffer3_Vtbl { - pub const fn new() -> IRpcChannelBuffer3_Vtbl - where - Identity: IRpcChannelBuffer3_Impl, - { - unsafe extern "system" fn Send(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, pulstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer3_Impl, - { + pub const fn new() -> IRpcChannelBuffer3_Vtbl { + unsafe extern "system" fn Send(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, pulstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer3_Impl::Send(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&pulstatus)).into() } - unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, ulsize: u32, pulstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer3_Impl, - { + unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, ulsize: u32, pulstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer3_Impl::Receive(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&ulsize), core::mem::transmute_copy(&pulstatus)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer3_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer3_Impl::Cancel(this, core::mem::transmute_copy(&pmsg)).into() } - unsafe extern "system" fn GetCallContext(this: *mut core::ffi::c_void, pmsg: *const RPCOLEMESSAGE, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer3_Impl, - { + unsafe extern "system" fn GetCallContext(this: *mut core::ffi::c_void, pmsg: *const RPCOLEMESSAGE, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer3_Impl::GetCallContext(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pinterface)).into() } - unsafe extern "system" fn GetDestCtxEx(this: *mut core::ffi::c_void, pmsg: *const RPCOLEMESSAGE, pdwdestcontext: *mut u32, ppvdestcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer3_Impl, - { + unsafe extern "system" fn GetDestCtxEx(this: *mut core::ffi::c_void, pmsg: *const RPCOLEMESSAGE, pdwdestcontext: *mut u32, ppvdestcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer3_Impl::GetDestCtxEx(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&pdwdestcontext), core::mem::transmute_copy(&ppvdestcontext)).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pmsg: *const RPCOLEMESSAGE, pstate: *mut u32) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer3_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pmsg: *const RPCOLEMESSAGE, pstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRpcChannelBuffer3_Impl::GetState(this, core::mem::transmute_copy(&pmsg)) { Ok(ok__) => { @@ -4213,10 +3109,7 @@ impl IRpcChannelBuffer3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterAsync(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, pasyncmgr: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRpcChannelBuffer3_Impl, - { + unsafe extern "system" fn RegisterAsync(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, pasyncmgr: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcChannelBuffer3_Impl::RegisterAsync(this, core::mem::transmute_copy(&pmsg), windows_core::from_raw_borrowed(&pasyncmgr)).into() } @@ -4235,20 +3128,14 @@ impl IRpcChannelBuffer3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IRpcHelper_Impl: Sized { +pub trait IRpcHelper_Impl: Sized + windows_core::IUnknownImpl { fn GetDCOMProtocolVersion(&self) -> windows_core::Result; fn GetIIDFromOBJREF(&self, pobjref: *const core::ffi::c_void) -> windows_core::Result<*mut windows_core::GUID>; } impl windows_core::RuntimeName for IRpcHelper {} impl IRpcHelper_Vtbl { - pub const fn new() -> IRpcHelper_Vtbl - where - Identity: IRpcHelper_Impl, - { - unsafe extern "system" fn GetDCOMProtocolVersion(this: *mut core::ffi::c_void, pcomversion: *mut u32) -> windows_core::HRESULT - where - Identity: IRpcHelper_Impl, - { + pub const fn new() -> IRpcHelper_Vtbl { + unsafe extern "system" fn GetDCOMProtocolVersion(this: *mut core::ffi::c_void, pcomversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRpcHelper_Impl::GetDCOMProtocolVersion(this) { Ok(ok__) => { @@ -4258,10 +3145,7 @@ impl IRpcHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIIDFromOBJREF(this: *mut core::ffi::c_void, pobjref: *const core::ffi::c_void, piid: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRpcHelper_Impl, - { + unsafe extern "system" fn GetIIDFromOBJREF(this: *mut core::ffi::c_void, pobjref: *const core::ffi::c_void, piid: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRpcHelper_Impl::GetIIDFromOBJREF(this, core::mem::transmute_copy(&pobjref)) { Ok(ok__) => { @@ -4281,27 +3165,18 @@ impl IRpcHelper_Vtbl { iid == &::IID } } -pub trait IRpcOptions_Impl: Sized { +pub trait IRpcOptions_Impl: Sized + windows_core::IUnknownImpl { fn Set(&self, pprx: Option<&windows_core::IUnknown>, dwproperty: RPCOPT_PROPERTIES, dwvalue: usize) -> windows_core::Result<()>; fn Query(&self, pprx: Option<&windows_core::IUnknown>, dwproperty: RPCOPT_PROPERTIES) -> windows_core::Result; } impl windows_core::RuntimeName for IRpcOptions {} impl IRpcOptions_Vtbl { - pub const fn new() -> IRpcOptions_Vtbl - where - Identity: IRpcOptions_Impl, - { - unsafe extern "system" fn Set(this: *mut core::ffi::c_void, pprx: *mut core::ffi::c_void, dwproperty: RPCOPT_PROPERTIES, dwvalue: usize) -> windows_core::HRESULT - where - Identity: IRpcOptions_Impl, - { + pub const fn new() -> IRpcOptions_Vtbl { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, pprx: *mut core::ffi::c_void, dwproperty: RPCOPT_PROPERTIES, dwvalue: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcOptions_Impl::Set(this, windows_core::from_raw_borrowed(&pprx), core::mem::transmute_copy(&dwproperty), core::mem::transmute_copy(&dwvalue)).into() } - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, pprx: *mut core::ffi::c_void, dwproperty: RPCOPT_PROPERTIES, pdwvalue: *mut usize) -> windows_core::HRESULT - where - Identity: IRpcOptions_Impl, - { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, pprx: *mut core::ffi::c_void, dwproperty: RPCOPT_PROPERTIES, pdwvalue: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRpcOptions_Impl::Query(this, windows_core::from_raw_borrowed(&pprx), core::mem::transmute_copy(&dwproperty)) { Ok(ok__) => { @@ -4317,27 +3192,18 @@ impl IRpcOptions_Vtbl { iid == &::IID } } -pub trait IRpcProxyBuffer_Impl: Sized { +pub trait IRpcProxyBuffer_Impl: Sized + windows_core::IUnknownImpl { fn Connect(&self, prpcchannelbuffer: Option<&IRpcChannelBuffer>) -> windows_core::Result<()>; fn Disconnect(&self); } impl windows_core::RuntimeName for IRpcProxyBuffer {} impl IRpcProxyBuffer_Vtbl { - pub const fn new() -> IRpcProxyBuffer_Vtbl - where - Identity: IRpcProxyBuffer_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, prpcchannelbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRpcProxyBuffer_Impl, - { + pub const fn new() -> IRpcProxyBuffer_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, prpcchannelbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcProxyBuffer_Impl::Connect(this, windows_core::from_raw_borrowed(&prpcchannelbuffer)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) - where - Identity: IRpcProxyBuffer_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcProxyBuffer_Impl::Disconnect(this) } @@ -4347,7 +3213,7 @@ impl IRpcProxyBuffer_Vtbl { iid == &::IID } } -pub trait IRpcStubBuffer_Impl: Sized { +pub trait IRpcStubBuffer_Impl: Sized + windows_core::IUnknownImpl { fn Connect(&self, punkserver: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Disconnect(&self); fn Invoke(&self, _prpcmsg: *mut RPCOLEMESSAGE, _prpcchannelbuffer: Option<&IRpcChannelBuffer>) -> windows_core::Result<()>; @@ -4358,56 +3224,32 @@ pub trait IRpcStubBuffer_Impl: Sized { } impl windows_core::RuntimeName for IRpcStubBuffer {} impl IRpcStubBuffer_Vtbl { - pub const fn new() -> IRpcStubBuffer_Vtbl - where - Identity: IRpcStubBuffer_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, punkserver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRpcStubBuffer_Impl, - { + pub const fn new() -> IRpcStubBuffer_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, punkserver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcStubBuffer_Impl::Connect(this, windows_core::from_raw_borrowed(&punkserver)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) - where - Identity: IRpcStubBuffer_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcStubBuffer_Impl::Disconnect(this) } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, _prpcmsg: *mut RPCOLEMESSAGE, _prpcchannelbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRpcStubBuffer_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, _prpcmsg: *mut RPCOLEMESSAGE, _prpcchannelbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcStubBuffer_Impl::Invoke(this, core::mem::transmute_copy(&_prpcmsg), windows_core::from_raw_borrowed(&_prpcchannelbuffer)).into() } - unsafe extern "system" fn IsIIDSupported(this: *mut core::ffi::c_void, riid: *const windows_core::GUID) -> Option - where - Identity: IRpcStubBuffer_Impl, - { + unsafe extern "system" fn IsIIDSupported(this: *mut core::ffi::c_void, riid: *const windows_core::GUID) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcStubBuffer_Impl::IsIIDSupported(this, core::mem::transmute_copy(&riid)) } - unsafe extern "system" fn CountRefs(this: *mut core::ffi::c_void) -> u32 - where - Identity: IRpcStubBuffer_Impl, - { + unsafe extern "system" fn CountRefs(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcStubBuffer_Impl::CountRefs(this) } - unsafe extern "system" fn DebugServerQueryInterface(this: *mut core::ffi::c_void, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRpcStubBuffer_Impl, - { + unsafe extern "system" fn DebugServerQueryInterface(this: *mut core::ffi::c_void, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcStubBuffer_Impl::DebugServerQueryInterface(this, core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn DebugServerRelease(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void) - where - Identity: IRpcStubBuffer_Impl, - { + unsafe extern "system" fn DebugServerRelease(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcStubBuffer_Impl::DebugServerRelease(this, core::mem::transmute_copy(&pv)) } @@ -4426,19 +3268,13 @@ impl IRpcStubBuffer_Vtbl { iid == &::IID } } -pub trait IRpcSyntaxNegotiate_Impl: Sized { +pub trait IRpcSyntaxNegotiate_Impl: Sized + windows_core::IUnknownImpl { fn NegotiateSyntax(&self, pmsg: *mut RPCOLEMESSAGE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRpcSyntaxNegotiate {} impl IRpcSyntaxNegotiate_Vtbl { - pub const fn new() -> IRpcSyntaxNegotiate_Vtbl - where - Identity: IRpcSyntaxNegotiate_Impl, - { - unsafe extern "system" fn NegotiateSyntax(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE) -> windows_core::HRESULT - where - Identity: IRpcSyntaxNegotiate_Impl, - { + pub const fn new() -> IRpcSyntaxNegotiate_Vtbl { + unsafe extern "system" fn NegotiateSyntax(this: *mut core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRpcSyntaxNegotiate_Impl::NegotiateSyntax(this, core::mem::transmute_copy(&pmsg)).into() } @@ -4448,7 +3284,7 @@ impl IRpcSyntaxNegotiate_Vtbl { iid == &::IID } } -pub trait IRunnableObject_Impl: Sized { +pub trait IRunnableObject_Impl: Sized + windows_core::IUnknownImpl { fn GetRunningClass(&self) -> windows_core::Result; fn Run(&self, pbc: Option<&IBindCtx>) -> windows_core::Result<()>; fn IsRunning(&self) -> super::super::Foundation::BOOL; @@ -4457,14 +3293,8 @@ pub trait IRunnableObject_Impl: Sized { } impl windows_core::RuntimeName for IRunnableObject {} impl IRunnableObject_Vtbl { - pub const fn new() -> IRunnableObject_Vtbl - where - Identity: IRunnableObject_Impl, - { - unsafe extern "system" fn GetRunningClass(this: *mut core::ffi::c_void, lpclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRunnableObject_Impl, - { + pub const fn new() -> IRunnableObject_Vtbl { + unsafe extern "system" fn GetRunningClass(this: *mut core::ffi::c_void, lpclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunnableObject_Impl::GetRunningClass(this) { Ok(ok__) => { @@ -4474,31 +3304,19 @@ impl IRunnableObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunnableObject_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableObject_Impl::Run(this, windows_core::from_raw_borrowed(&pbc)).into() } - unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IRunnableObject_Impl, - { + unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableObject_Impl::IsRunning(this) } - unsafe extern "system" fn LockRunning(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL, flastunlockcloses: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRunnableObject_Impl, - { + unsafe extern "system" fn LockRunning(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL, flastunlockcloses: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableObject_Impl::LockRunning(this, core::mem::transmute_copy(&flock), core::mem::transmute_copy(&flastunlockcloses)).into() } - unsafe extern "system" fn SetContainedObject(this: *mut core::ffi::c_void, fcontained: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRunnableObject_Impl, - { + unsafe extern "system" fn SetContainedObject(this: *mut core::ffi::c_void, fcontained: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableObject_Impl::SetContainedObject(this, core::mem::transmute_copy(&fcontained)).into() } @@ -4515,7 +3333,7 @@ impl IRunnableObject_Vtbl { iid == &::IID } } -pub trait IRunningObjectTable_Impl: Sized { +pub trait IRunningObjectTable_Impl: Sized + windows_core::IUnknownImpl { fn Register(&self, grfflags: ROT_FLAGS, punkobject: Option<&windows_core::IUnknown>, pmkobjectname: Option<&IMoniker>) -> windows_core::Result; fn Revoke(&self, dwregister: u32) -> windows_core::Result<()>; fn IsRunning(&self, pmkobjectname: Option<&IMoniker>) -> windows_core::Result<()>; @@ -4526,14 +3344,8 @@ pub trait IRunningObjectTable_Impl: Sized { } impl windows_core::RuntimeName for IRunningObjectTable {} impl IRunningObjectTable_Vtbl { - pub const fn new() -> IRunningObjectTable_Vtbl - where - Identity: IRunningObjectTable_Impl, - { - unsafe extern "system" fn Register(this: *mut core::ffi::c_void, grfflags: ROT_FLAGS, punkobject: *mut core::ffi::c_void, pmkobjectname: *mut core::ffi::c_void, pdwregister: *mut u32) -> windows_core::HRESULT - where - Identity: IRunningObjectTable_Impl, - { + pub const fn new() -> IRunningObjectTable_Vtbl { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void, grfflags: ROT_FLAGS, punkobject: *mut core::ffi::c_void, pmkobjectname: *mut core::ffi::c_void, pdwregister: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningObjectTable_Impl::Register(this, core::mem::transmute_copy(&grfflags), windows_core::from_raw_borrowed(&punkobject), windows_core::from_raw_borrowed(&pmkobjectname)) { Ok(ok__) => { @@ -4543,24 +3355,15 @@ impl IRunningObjectTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Revoke(this: *mut core::ffi::c_void, dwregister: u32) -> windows_core::HRESULT - where - Identity: IRunningObjectTable_Impl, - { + unsafe extern "system" fn Revoke(this: *mut core::ffi::c_void, dwregister: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunningObjectTable_Impl::Revoke(this, core::mem::transmute_copy(&dwregister)).into() } - unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void, pmkobjectname: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunningObjectTable_Impl, - { + unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void, pmkobjectname: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunningObjectTable_Impl::IsRunning(this, windows_core::from_raw_borrowed(&pmkobjectname)).into() } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, pmkobjectname: *mut core::ffi::c_void, ppunkobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunningObjectTable_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, pmkobjectname: *mut core::ffi::c_void, ppunkobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningObjectTable_Impl::GetObject(this, windows_core::from_raw_borrowed(&pmkobjectname)) { Ok(ok__) => { @@ -4570,17 +3373,11 @@ impl IRunningObjectTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NoteChangeTime(this: *mut core::ffi::c_void, dwregister: u32, pfiletime: *const super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IRunningObjectTable_Impl, - { + unsafe extern "system" fn NoteChangeTime(this: *mut core::ffi::c_void, dwregister: u32, pfiletime: *const super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunningObjectTable_Impl::NoteChangeTime(this, core::mem::transmute_copy(&dwregister), core::mem::transmute_copy(&pfiletime)).into() } - unsafe extern "system" fn GetTimeOfLastChange(this: *mut core::ffi::c_void, pmkobjectname: *mut core::ffi::c_void, pfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IRunningObjectTable_Impl, - { + unsafe extern "system" fn GetTimeOfLastChange(this: *mut core::ffi::c_void, pmkobjectname: *mut core::ffi::c_void, pfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningObjectTable_Impl::GetTimeOfLastChange(this, windows_core::from_raw_borrowed(&pmkobjectname)) { Ok(ok__) => { @@ -4590,10 +3387,7 @@ impl IRunningObjectTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumRunning(this: *mut core::ffi::c_void, ppenummoniker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunningObjectTable_Impl, - { + unsafe extern "system" fn EnumRunning(this: *mut core::ffi::c_void, ppenummoniker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningObjectTable_Impl::EnumRunning(this) { Ok(ok__) => { @@ -4618,27 +3412,18 @@ impl IRunningObjectTable_Vtbl { iid == &::IID } } -pub trait ISequentialStream_Impl: Sized { +pub trait ISequentialStream_Impl: Sized + windows_core::IUnknownImpl { fn Read(&self, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT; fn Write(&self, pv: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT; } impl windows_core::RuntimeName for ISequentialStream {} impl ISequentialStream_Vtbl { - pub const fn new() -> ISequentialStream_Vtbl - where - Identity: ISequentialStream_Impl, - { - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT - where - Identity: ISequentialStream_Impl, - { + pub const fn new() -> ISequentialStream_Vtbl { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISequentialStream_Impl::Read(this, core::mem::transmute_copy(&pv), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbread)) } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT - where - Identity: ISequentialStream_Impl, - { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, pv: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISequentialStream_Impl::Write(this, core::mem::transmute_copy(&pv), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbwritten)) } @@ -4648,7 +3433,7 @@ impl ISequentialStream_Vtbl { iid == &::IID } } -pub trait IServerSecurity_Impl: Sized { +pub trait IServerSecurity_Impl: Sized + windows_core::IUnknownImpl { fn QueryBlanket(&self, pauthnsvc: *mut u32, pauthzsvc: *mut u32, pserverprincname: *mut *mut u16, pauthnlevel: *mut u32, pimplevel: *mut u32, pprivs: *mut *mut core::ffi::c_void, pcapabilities: *mut u32) -> windows_core::Result<()>; fn ImpersonateClient(&self) -> windows_core::Result<()>; fn RevertToSelf(&self) -> windows_core::Result<()>; @@ -4656,35 +3441,20 @@ pub trait IServerSecurity_Impl: Sized { } impl windows_core::RuntimeName for IServerSecurity {} impl IServerSecurity_Vtbl { - pub const fn new() -> IServerSecurity_Vtbl - where - Identity: IServerSecurity_Impl, - { - unsafe extern "system" fn QueryBlanket(this: *mut core::ffi::c_void, pauthnsvc: *mut u32, pauthzsvc: *mut u32, pserverprincname: *mut *mut u16, pauthnlevel: *mut u32, pimplevel: *mut u32, pprivs: *mut *mut core::ffi::c_void, pcapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IServerSecurity_Impl, - { + pub const fn new() -> IServerSecurity_Vtbl { + unsafe extern "system" fn QueryBlanket(this: *mut core::ffi::c_void, pauthnsvc: *mut u32, pauthzsvc: *mut u32, pserverprincname: *mut *mut u16, pauthnlevel: *mut u32, pimplevel: *mut u32, pprivs: *mut *mut core::ffi::c_void, pcapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServerSecurity_Impl::QueryBlanket(this, core::mem::transmute_copy(&pauthnsvc), core::mem::transmute_copy(&pauthzsvc), core::mem::transmute_copy(&pserverprincname), core::mem::transmute_copy(&pauthnlevel), core::mem::transmute_copy(&pimplevel), core::mem::transmute_copy(&pprivs), core::mem::transmute_copy(&pcapabilities)).into() } - unsafe extern "system" fn ImpersonateClient(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServerSecurity_Impl, - { + unsafe extern "system" fn ImpersonateClient(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServerSecurity_Impl::ImpersonateClient(this).into() } - unsafe extern "system" fn RevertToSelf(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServerSecurity_Impl, - { + unsafe extern "system" fn RevertToSelf(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServerSecurity_Impl::RevertToSelf(this).into() } - unsafe extern "system" fn IsImpersonating(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IServerSecurity_Impl, - { + unsafe extern "system" fn IsImpersonating(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServerSecurity_Impl::IsImpersonating(this) } @@ -4700,19 +3470,13 @@ impl IServerSecurity_Vtbl { iid == &::IID } } -pub trait IServiceProvider_Impl: Sized { +pub trait IServiceProvider_Impl: Sized + windows_core::IUnknownImpl { fn QueryService(&self, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServiceProvider {} impl IServiceProvider_Vtbl { - pub const fn new() -> IServiceProvider_Vtbl - where - Identity: IServiceProvider_Impl, - { - unsafe extern "system" fn QueryService(this: *mut core::ffi::c_void, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServiceProvider_Impl, - { + pub const fn new() -> IServiceProvider_Vtbl { + unsafe extern "system" fn QueryService(this: *mut core::ffi::c_void, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceProvider_Impl::QueryService(this, core::mem::transmute_copy(&guidservice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } @@ -4722,19 +3486,13 @@ impl IServiceProvider_Vtbl { iid == &::IID } } -pub trait IStdMarshalInfo_Impl: Sized { +pub trait IStdMarshalInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetClassForHandler(&self, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void) -> windows_core::Result; } impl windows_core::RuntimeName for IStdMarshalInfo {} impl IStdMarshalInfo_Vtbl { - pub const fn new() -> IStdMarshalInfo_Vtbl - where - Identity: IStdMarshalInfo_Impl, - { - unsafe extern "system" fn GetClassForHandler(this: *mut core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IStdMarshalInfo_Impl, - { + pub const fn new() -> IStdMarshalInfo_Vtbl { + unsafe extern "system" fn GetClassForHandler(this: *mut core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStdMarshalInfo_Impl::GetClassForHandler(this, core::mem::transmute_copy(&dwdestcontext), core::mem::transmute_copy(&pvdestcontext)) { Ok(ok__) => { @@ -4763,70 +3521,40 @@ pub trait IStream_Impl: Sized + ISequentialStream_Impl { } impl windows_core::RuntimeName for IStream {} impl IStream_Vtbl { - pub const fn new() -> IStream_Vtbl - where - Identity: IStream_Impl, - { - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, dlibmove: i64, dworigin: STREAM_SEEK, plibnewposition: *mut u64) -> windows_core::HRESULT - where - Identity: IStream_Impl, - { + pub const fn new() -> IStream_Vtbl { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, dlibmove: i64, dworigin: STREAM_SEEK, plibnewposition: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStream_Impl::Seek(this, core::mem::transmute_copy(&dlibmove), core::mem::transmute_copy(&dworigin), core::mem::transmute_copy(&plibnewposition)).into() } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, libnewsize: u64) -> windows_core::HRESULT - where - Identity: IStream_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, libnewsize: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStream_Impl::SetSize(this, core::mem::transmute_copy(&libnewsize)).into() } - unsafe extern "system" fn CopyTo(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, cb: u64, pcbread: *mut u64, pcbwritten: *mut u64) -> windows_core::HRESULT - where - Identity: IStream_Impl, - { + unsafe extern "system" fn CopyTo(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, cb: u64, pcbread: *mut u64, pcbwritten: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStream_Impl::CopyTo(this, windows_core::from_raw_borrowed(&pstm), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbread), core::mem::transmute_copy(&pcbwritten)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, grfcommitflags: u32) -> windows_core::HRESULT - where - Identity: IStream_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, grfcommitflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStream_Impl::Commit(this, core::mem::transmute(&grfcommitflags)).into() } - unsafe extern "system" fn Revert(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStream_Impl, - { + unsafe extern "system" fn Revert(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStream_Impl::Revert(this).into() } - unsafe extern "system" fn LockRegion(this: *mut core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::HRESULT - where - Identity: IStream_Impl, - { + unsafe extern "system" fn LockRegion(this: *mut core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStream_Impl::LockRegion(this, core::mem::transmute_copy(&liboffset), core::mem::transmute_copy(&cb), core::mem::transmute(&dwlocktype)).into() } - unsafe extern "system" fn UnlockRegion(this: *mut core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::HRESULT - where - Identity: IStream_Impl, - { + unsafe extern "system" fn UnlockRegion(this: *mut core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStream_Impl::UnlockRegion(this, core::mem::transmute_copy(&liboffset), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&dwlocktype)).into() } - unsafe extern "system" fn Stat(this: *mut core::ffi::c_void, pstatstg: *mut STATSTG, grfstatflag: u32) -> windows_core::HRESULT - where - Identity: IStream_Impl, - { + unsafe extern "system" fn Stat(this: *mut core::ffi::c_void, pstatstg: *mut STATSTG, grfstatflag: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStream_Impl::Stat(this, core::mem::transmute_copy(&pstatstg), core::mem::transmute(&grfstatflag)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppstm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStream_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppstm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStream_Impl::Clone(this) { Ok(ok__) => { @@ -4853,32 +3581,23 @@ impl IStream_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISupportAllowLowerTrustActivation_Impl: Sized {} +pub trait ISupportAllowLowerTrustActivation_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for ISupportAllowLowerTrustActivation {} impl ISupportAllowLowerTrustActivation_Vtbl { - pub const fn new() -> ISupportAllowLowerTrustActivation_Vtbl - where - Identity: ISupportAllowLowerTrustActivation_Impl, - { + pub const fn new() -> ISupportAllowLowerTrustActivation_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait ISupportErrorInfo_Impl: Sized { +pub trait ISupportErrorInfo_Impl: Sized + windows_core::IUnknownImpl { fn InterfaceSupportsErrorInfo(&self, riid: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISupportErrorInfo {} impl ISupportErrorInfo_Vtbl { - pub const fn new() -> ISupportErrorInfo_Vtbl - where - Identity: ISupportErrorInfo_Impl, - { - unsafe extern "system" fn InterfaceSupportsErrorInfo(this: *mut core::ffi::c_void, riid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISupportErrorInfo_Impl, - { + pub const fn new() -> ISupportErrorInfo_Vtbl { + unsafe extern "system" fn InterfaceSupportsErrorInfo(this: *mut core::ffi::c_void, riid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISupportErrorInfo_Impl::InterfaceSupportsErrorInfo(this, core::mem::transmute_copy(&riid)).into() } @@ -4888,27 +3607,18 @@ impl ISupportErrorInfo_Vtbl { iid == &::IID } } -pub trait ISurrogate_Impl: Sized { +pub trait ISurrogate_Impl: Sized + windows_core::IUnknownImpl { fn LoadDllServer(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()>; fn FreeSurrogate(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISurrogate {} impl ISurrogate_Vtbl { - pub const fn new() -> ISurrogate_Vtbl - where - Identity: ISurrogate_Impl, - { - unsafe extern "system" fn LoadDllServer(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISurrogate_Impl, - { + pub const fn new() -> ISurrogate_Vtbl { + unsafe extern "system" fn LoadDllServer(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurrogate_Impl::LoadDllServer(this, core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn FreeSurrogate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISurrogate_Impl, - { + unsafe extern "system" fn FreeSurrogate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurrogate_Impl::FreeSurrogate(this).into() } @@ -4922,7 +3632,7 @@ impl ISurrogate_Vtbl { iid == &::IID } } -pub trait ISurrogateService_Impl: Sized { +pub trait ISurrogateService_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, rguidprocessid: *const windows_core::GUID, pprocesslock: Option<&IProcessLock>) -> windows_core::Result; fn ApplicationLaunch(&self, rguidapplid: *const windows_core::GUID, apptype: ApplicationType) -> windows_core::Result<()>; fn ApplicationFree(&self, rguidapplid: *const windows_core::GUID) -> windows_core::Result<()>; @@ -4931,14 +3641,8 @@ pub trait ISurrogateService_Impl: Sized { } impl windows_core::RuntimeName for ISurrogateService {} impl ISurrogateService_Vtbl { - pub const fn new() -> ISurrogateService_Vtbl - where - Identity: ISurrogateService_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, rguidprocessid: *const windows_core::GUID, pprocesslock: *mut core::ffi::c_void, pfapplicationaware: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISurrogateService_Impl, - { + pub const fn new() -> ISurrogateService_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, rguidprocessid: *const windows_core::GUID, pprocesslock: *mut core::ffi::c_void, pfapplicationaware: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISurrogateService_Impl::Init(this, core::mem::transmute_copy(&rguidprocessid), windows_core::from_raw_borrowed(&pprocesslock)) { Ok(ok__) => { @@ -4948,31 +3652,19 @@ impl ISurrogateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplicationLaunch(this: *mut core::ffi::c_void, rguidapplid: *const windows_core::GUID, apptype: ApplicationType) -> windows_core::HRESULT - where - Identity: ISurrogateService_Impl, - { + unsafe extern "system" fn ApplicationLaunch(this: *mut core::ffi::c_void, rguidapplid: *const windows_core::GUID, apptype: ApplicationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurrogateService_Impl::ApplicationLaunch(this, core::mem::transmute_copy(&rguidapplid), core::mem::transmute_copy(&apptype)).into() } - unsafe extern "system" fn ApplicationFree(this: *mut core::ffi::c_void, rguidapplid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISurrogateService_Impl, - { + unsafe extern "system" fn ApplicationFree(this: *mut core::ffi::c_void, rguidapplid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurrogateService_Impl::ApplicationFree(this, core::mem::transmute_copy(&rguidapplid)).into() } - unsafe extern "system" fn CatalogRefresh(this: *mut core::ffi::c_void, ulreserved: u32) -> windows_core::HRESULT - where - Identity: ISurrogateService_Impl, - { + unsafe extern "system" fn CatalogRefresh(this: *mut core::ffi::c_void, ulreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurrogateService_Impl::CatalogRefresh(this, core::mem::transmute_copy(&ulreserved)).into() } - unsafe extern "system" fn ProcessShutdown(this: *mut core::ffi::c_void, shutdowntype: ShutdownType) -> windows_core::HRESULT - where - Identity: ISurrogateService_Impl, - { + unsafe extern "system" fn ProcessShutdown(this: *mut core::ffi::c_void, shutdowntype: ShutdownType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurrogateService_Impl::ProcessShutdown(this, core::mem::transmute_copy(&shutdowntype)).into() } @@ -4989,35 +3681,23 @@ impl ISurrogateService_Vtbl { iid == &::IID } } -pub trait ISynchronize_Impl: Sized { +pub trait ISynchronize_Impl: Sized + windows_core::IUnknownImpl { fn Wait(&self, dwflags: u32, dwmilliseconds: u32) -> windows_core::Result<()>; fn Signal(&self) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISynchronize {} impl ISynchronize_Vtbl { - pub const fn new() -> ISynchronize_Vtbl - where - Identity: ISynchronize_Impl, - { - unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwflags: u32, dwmilliseconds: u32) -> windows_core::HRESULT - where - Identity: ISynchronize_Impl, - { + pub const fn new() -> ISynchronize_Vtbl { + unsafe extern "system" fn Wait(this: *mut core::ffi::c_void, dwflags: u32, dwmilliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISynchronize_Impl::Wait(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwmilliseconds)).into() } - unsafe extern "system" fn Signal(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISynchronize_Impl, - { + unsafe extern "system" fn Signal(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISynchronize_Impl::Signal(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISynchronize_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISynchronize_Impl::Reset(this).into() } @@ -5032,27 +3712,18 @@ impl ISynchronize_Vtbl { iid == &::IID } } -pub trait ISynchronizeContainer_Impl: Sized { +pub trait ISynchronizeContainer_Impl: Sized + windows_core::IUnknownImpl { fn AddSynchronize(&self, psync: Option<&ISynchronize>) -> windows_core::Result<()>; fn WaitMultiple(&self, dwflags: u32, dwtimeout: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ISynchronizeContainer {} impl ISynchronizeContainer_Vtbl { - pub const fn new() -> ISynchronizeContainer_Vtbl - where - Identity: ISynchronizeContainer_Impl, - { - unsafe extern "system" fn AddSynchronize(this: *mut core::ffi::c_void, psync: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISynchronizeContainer_Impl, - { + pub const fn new() -> ISynchronizeContainer_Vtbl { + unsafe extern "system" fn AddSynchronize(this: *mut core::ffi::c_void, psync: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISynchronizeContainer_Impl::AddSynchronize(this, windows_core::from_raw_borrowed(&psync)).into() } - unsafe extern "system" fn WaitMultiple(this: *mut core::ffi::c_void, dwflags: u32, dwtimeout: u32, ppsync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISynchronizeContainer_Impl, - { + unsafe extern "system" fn WaitMultiple(this: *mut core::ffi::c_void, dwflags: u32, dwtimeout: u32, ppsync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISynchronizeContainer_Impl::WaitMultiple(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -5077,14 +3748,8 @@ pub trait ISynchronizeEvent_Impl: Sized + ISynchronizeHandle_Impl { } impl windows_core::RuntimeName for ISynchronizeEvent {} impl ISynchronizeEvent_Vtbl { - pub const fn new() -> ISynchronizeEvent_Vtbl - where - Identity: ISynchronizeEvent_Impl, - { - unsafe extern "system" fn SetEventHandle(this: *mut core::ffi::c_void, ph: *const super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ISynchronizeEvent_Impl, - { + pub const fn new() -> ISynchronizeEvent_Vtbl { + unsafe extern "system" fn SetEventHandle(this: *mut core::ffi::c_void, ph: *const super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISynchronizeEvent_Impl::SetEventHandle(this, core::mem::transmute_copy(&ph)).into() } @@ -5094,19 +3759,13 @@ impl ISynchronizeEvent_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISynchronizeHandle_Impl: Sized { +pub trait ISynchronizeHandle_Impl: Sized + windows_core::IUnknownImpl { fn GetHandle(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISynchronizeHandle {} impl ISynchronizeHandle_Vtbl { - pub const fn new() -> ISynchronizeHandle_Vtbl - where - Identity: ISynchronizeHandle_Impl, - { - unsafe extern "system" fn GetHandle(this: *mut core::ffi::c_void, ph: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ISynchronizeHandle_Impl, - { + pub const fn new() -> ISynchronizeHandle_Vtbl { + unsafe extern "system" fn GetHandle(this: *mut core::ffi::c_void, ph: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISynchronizeHandle_Impl::GetHandle(this) { Ok(ok__) => { @@ -5127,14 +3786,8 @@ pub trait ISynchronizeMutex_Impl: Sized + ISynchronize_Impl { } impl windows_core::RuntimeName for ISynchronizeMutex {} impl ISynchronizeMutex_Vtbl { - pub const fn new() -> ISynchronizeMutex_Vtbl - where - Identity: ISynchronizeMutex_Impl, - { - unsafe extern "system" fn ReleaseMutex(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISynchronizeMutex_Impl, - { + pub const fn new() -> ISynchronizeMutex_Vtbl { + unsafe extern "system" fn ReleaseMutex(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISynchronizeMutex_Impl::ReleaseMutex(this).into() } @@ -5144,19 +3797,13 @@ impl ISynchronizeMutex_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITimeAndNoticeControl_Impl: Sized { +pub trait ITimeAndNoticeControl_Impl: Sized + windows_core::IUnknownImpl { fn SuppressChanges(&self, res1: u32, res2: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITimeAndNoticeControl {} impl ITimeAndNoticeControl_Vtbl { - pub const fn new() -> ITimeAndNoticeControl_Vtbl - where - Identity: ITimeAndNoticeControl_Impl, - { - unsafe extern "system" fn SuppressChanges(this: *mut core::ffi::c_void, res1: u32, res2: u32) -> windows_core::HRESULT - where - Identity: ITimeAndNoticeControl_Impl, - { + pub const fn new() -> ITimeAndNoticeControl_Vtbl { + unsafe extern "system" fn SuppressChanges(this: *mut core::ffi::c_void, res1: u32, res2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITimeAndNoticeControl_Impl::SuppressChanges(this, core::mem::transmute_copy(&res1), core::mem::transmute_copy(&res2)).into() } @@ -5167,7 +3814,7 @@ impl ITimeAndNoticeControl_Vtbl { } } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] -pub trait ITypeComp_Impl: Sized { +pub trait ITypeComp_Impl: Sized + windows_core::IUnknownImpl { fn Bind(&self, szname: &windows_core::PCWSTR, lhashval: u32, wflags: u16, pptinfo: *mut Option, pdesckind: *mut DESCKIND, pbindptr: *mut BINDPTR) -> windows_core::Result<()>; fn BindType(&self, szname: &windows_core::PCWSTR, lhashval: u32, pptinfo: *mut Option, pptcomp: *mut Option) -> windows_core::Result<()>; } @@ -5175,21 +3822,12 @@ pub trait ITypeComp_Impl: Sized { impl windows_core::RuntimeName for ITypeComp {} #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl ITypeComp_Vtbl { - pub const fn new() -> ITypeComp_Vtbl - where - Identity: ITypeComp_Impl, - { - unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, lhashval: u32, wflags: u16, pptinfo: *mut *mut core::ffi::c_void, pdesckind: *mut DESCKIND, pbindptr: *mut BINDPTR) -> windows_core::HRESULT - where - Identity: ITypeComp_Impl, - { + pub const fn new() -> ITypeComp_Vtbl { + unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, lhashval: u32, wflags: u16, pptinfo: *mut *mut core::ffi::c_void, pdesckind: *mut DESCKIND, pbindptr: *mut BINDPTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeComp_Impl::Bind(this, core::mem::transmute(&szname), core::mem::transmute_copy(&lhashval), core::mem::transmute_copy(&wflags), core::mem::transmute_copy(&pptinfo), core::mem::transmute_copy(&pdesckind), core::mem::transmute_copy(&pbindptr)).into() } - unsafe extern "system" fn BindType(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, lhashval: u32, pptinfo: *mut *mut core::ffi::c_void, pptcomp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeComp_Impl, - { + unsafe extern "system" fn BindType(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, lhashval: u32, pptinfo: *mut *mut core::ffi::c_void, pptcomp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeComp_Impl::BindType(this, core::mem::transmute(&szname), core::mem::transmute_copy(&lhashval), core::mem::transmute_copy(&pptinfo), core::mem::transmute_copy(&pptcomp)).into() } @@ -5200,7 +3838,7 @@ impl ITypeComp_Vtbl { } } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] -pub trait ITypeInfo_Impl: Sized { +pub trait ITypeInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetTypeAttr(&self) -> windows_core::Result<*mut TYPEATTR>; fn GetTypeComp(&self) -> windows_core::Result; fn GetFuncDesc(&self, index: u32) -> windows_core::Result<*mut FUNCDESC>; @@ -5225,14 +3863,8 @@ pub trait ITypeInfo_Impl: Sized { impl windows_core::RuntimeName for ITypeInfo {} #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl ITypeInfo_Vtbl { - pub const fn new() -> ITypeInfo_Vtbl - where - Identity: ITypeInfo_Impl, - { - unsafe extern "system" fn GetTypeAttr(this: *mut core::ffi::c_void, pptypeattr: *mut *mut TYPEATTR) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + pub const fn new() -> ITypeInfo_Vtbl { + unsafe extern "system" fn GetTypeAttr(this: *mut core::ffi::c_void, pptypeattr: *mut *mut TYPEATTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo_Impl::GetTypeAttr(this) { Ok(ok__) => { @@ -5242,10 +3874,7 @@ impl ITypeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeComp(this: *mut core::ffi::c_void, pptcomp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetTypeComp(this: *mut core::ffi::c_void, pptcomp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo_Impl::GetTypeComp(this) { Ok(ok__) => { @@ -5255,10 +3884,7 @@ impl ITypeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFuncDesc(this: *mut core::ffi::c_void, index: u32, ppfuncdesc: *mut *mut FUNCDESC) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetFuncDesc(this: *mut core::ffi::c_void, index: u32, ppfuncdesc: *mut *mut FUNCDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo_Impl::GetFuncDesc(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5268,10 +3894,7 @@ impl ITypeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVarDesc(this: *mut core::ffi::c_void, index: u32, ppvardesc: *mut *mut VARDESC) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetVarDesc(this: *mut core::ffi::c_void, index: u32, ppvardesc: *mut *mut VARDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo_Impl::GetVarDesc(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5281,17 +3904,11 @@ impl ITypeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, memid: i32, rgbstrnames: *mut core::mem::MaybeUninit, cmaxnames: u32, pcnames: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, memid: i32, rgbstrnames: *mut core::mem::MaybeUninit, cmaxnames: u32, pcnames: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::GetNames(this, core::mem::transmute_copy(&memid), core::mem::transmute_copy(&rgbstrnames), core::mem::transmute_copy(&cmaxnames), core::mem::transmute_copy(&pcnames)).into() } - unsafe extern "system" fn GetRefTypeOfImplType(this: *mut core::ffi::c_void, index: u32, preftype: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetRefTypeOfImplType(this: *mut core::ffi::c_void, index: u32, preftype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo_Impl::GetRefTypeOfImplType(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5301,10 +3918,7 @@ impl ITypeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImplTypeFlags(this: *mut core::ffi::c_void, index: u32, pimpltypeflags: *mut IMPLTYPEFLAGS) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetImplTypeFlags(this: *mut core::ffi::c_void, index: u32, pimpltypeflags: *mut IMPLTYPEFLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo_Impl::GetImplTypeFlags(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5314,38 +3928,23 @@ impl ITypeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIDsOfNames(this: *mut core::ffi::c_void, rgsznames: *const windows_core::PCWSTR, cnames: u32, pmemid: *mut i32) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetIDsOfNames(this: *mut core::ffi::c_void, rgsznames: *const windows_core::PCWSTR, cnames: u32, pmemid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::GetIDsOfNames(this, core::mem::transmute_copy(&rgsznames), core::mem::transmute_copy(&cnames), core::mem::transmute_copy(&pmemid)).into() } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, pvinstance: *const core::ffi::c_void, memid: i32, wflags: DISPATCH_FLAGS, pdispparams: *mut DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, pvinstance: *const core::ffi::c_void, memid: i32, wflags: DISPATCH_FLAGS, pdispparams: *mut DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::Invoke(this, 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(this: *mut core::ffi::c_void, memid: i32, pbstrname: *mut core::mem::MaybeUninit, pbstrdocstring: *mut core::mem::MaybeUninit, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetDocumentation(this: *mut core::ffi::c_void, memid: i32, pbstrname: *mut core::mem::MaybeUninit, pbstrdocstring: *mut core::mem::MaybeUninit, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::GetDocumentation(this, 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(this: *mut core::ffi::c_void, memid: i32, invkind: INVOKEKIND, pbstrdllname: *mut core::mem::MaybeUninit, pbstrname: *mut core::mem::MaybeUninit, pwordinal: *mut u16) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetDllEntry(this: *mut core::ffi::c_void, memid: i32, invkind: INVOKEKIND, pbstrdllname: *mut core::mem::MaybeUninit, pbstrname: *mut core::mem::MaybeUninit, pwordinal: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::GetDllEntry(this, 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() } - unsafe extern "system" fn GetRefTypeInfo(this: *mut core::ffi::c_void, hreftype: u32, pptinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetRefTypeInfo(this: *mut core::ffi::c_void, hreftype: u32, pptinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo_Impl::GetRefTypeInfo(this, core::mem::transmute_copy(&hreftype)) { Ok(ok__) => { @@ -5355,24 +3954,15 @@ impl ITypeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddressOfMember(this: *mut core::ffi::c_void, memid: i32, invkind: INVOKEKIND, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn AddressOfMember(this: *mut core::ffi::c_void, memid: i32, invkind: INVOKEKIND, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::AddressOfMember(this, core::mem::transmute_copy(&memid), core::mem::transmute_copy(&invkind), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateInstance(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 - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn CreateInstance(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::CreateInstance(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobj)).into() } - unsafe extern "system" fn GetMops(this: *mut core::ffi::c_void, memid: i32, pbstrmops: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetMops(this: *mut core::ffi::c_void, memid: i32, pbstrmops: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo_Impl::GetMops(this, core::mem::transmute_copy(&memid)) { Ok(ok__) => { @@ -5382,31 +3972,19 @@ impl ITypeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContainingTypeLib(this: *mut core::ffi::c_void, pptlib: *mut *mut core::ffi::c_void, pindex: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn GetContainingTypeLib(this: *mut core::ffi::c_void, pptlib: *mut *mut core::ffi::c_void, pindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::GetContainingTypeLib(this, core::mem::transmute_copy(&pptlib), core::mem::transmute_copy(&pindex)).into() } - unsafe extern "system" fn ReleaseTypeAttr(this: *mut core::ffi::c_void, ptypeattr: *const TYPEATTR) - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn ReleaseTypeAttr(this: *mut core::ffi::c_void, ptypeattr: *const TYPEATTR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::ReleaseTypeAttr(this, core::mem::transmute_copy(&ptypeattr)) } - unsafe extern "system" fn ReleaseFuncDesc(this: *mut core::ffi::c_void, pfuncdesc: *const FUNCDESC) - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn ReleaseFuncDesc(this: *mut core::ffi::c_void, pfuncdesc: *const FUNCDESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::ReleaseFuncDesc(this, core::mem::transmute_copy(&pfuncdesc)) } - unsafe extern "system" fn ReleaseVarDesc(this: *mut core::ffi::c_void, pvardesc: *const VARDESC) - where - Identity: ITypeInfo_Impl, - { + unsafe extern "system" fn ReleaseVarDesc(this: *mut core::ffi::c_void, pvardesc: *const VARDESC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo_Impl::ReleaseVarDesc(this, core::mem::transmute_copy(&pvardesc)) } @@ -5459,14 +4037,8 @@ pub trait ITypeInfo2_Impl: Sized + ITypeInfo_Impl { impl windows_core::RuntimeName for ITypeInfo2 {} #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl ITypeInfo2_Vtbl { - pub const fn new() -> ITypeInfo2_Vtbl - where - Identity: ITypeInfo2_Impl, - { - unsafe extern "system" fn GetTypeKind(this: *mut core::ffi::c_void, ptypekind: *mut TYPEKIND) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + pub const fn new() -> ITypeInfo2_Vtbl { + unsafe extern "system" fn GetTypeKind(this: *mut core::ffi::c_void, ptypekind: *mut TYPEKIND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetTypeKind(this) { Ok(ok__) => { @@ -5476,10 +4048,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeFlags(this: *mut core::ffi::c_void, ptypeflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetTypeFlags(this: *mut core::ffi::c_void, ptypeflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetTypeFlags(this) { Ok(ok__) => { @@ -5489,10 +4058,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFuncIndexOfMemId(this: *mut core::ffi::c_void, memid: i32, invkind: INVOKEKIND, pfuncindex: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetFuncIndexOfMemId(this: *mut core::ffi::c_void, memid: i32, invkind: INVOKEKIND, pfuncindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetFuncIndexOfMemId(this, core::mem::transmute_copy(&memid), core::mem::transmute_copy(&invkind)) { Ok(ok__) => { @@ -5502,10 +4068,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVarIndexOfMemId(this: *mut core::ffi::c_void, memid: i32, pvarindex: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetVarIndexOfMemId(this: *mut core::ffi::c_void, memid: i32, pvarindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetVarIndexOfMemId(this, core::mem::transmute_copy(&memid)) { Ok(ok__) => { @@ -5515,10 +4078,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCustData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetCustData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetCustData(this, core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -5528,10 +4088,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFuncCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetFuncCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetFuncCustData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -5541,10 +4098,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParamCustData(this: *mut core::ffi::c_void, indexfunc: u32, indexparam: u32, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetParamCustData(this: *mut core::ffi::c_void, indexfunc: u32, indexparam: u32, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetParamCustData(this, core::mem::transmute_copy(&indexfunc), core::mem::transmute_copy(&indexparam), core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -5554,10 +4108,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVarCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetVarCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetVarCustData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -5567,10 +4118,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImplTypeCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetImplTypeCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetImplTypeCustData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -5580,17 +4128,11 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentation2(this: *mut core::ffi::c_void, memid: i32, lcid: u32, pbstrhelpstring: *mut core::mem::MaybeUninit, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetDocumentation2(this: *mut core::ffi::c_void, memid: i32, lcid: u32, pbstrhelpstring: *mut core::mem::MaybeUninit, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeInfo2_Impl::GetDocumentation2(this, 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() } - unsafe extern "system" fn GetAllCustData(this: *mut core::ffi::c_void, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetAllCustData(this: *mut core::ffi::c_void, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetAllCustData(this) { Ok(ok__) => { @@ -5600,10 +4142,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllFuncCustData(this: *mut core::ffi::c_void, index: u32, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetAllFuncCustData(this: *mut core::ffi::c_void, index: u32, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetAllFuncCustData(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5613,10 +4152,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllParamCustData(this: *mut core::ffi::c_void, indexfunc: u32, indexparam: u32, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetAllParamCustData(this: *mut core::ffi::c_void, indexfunc: u32, indexparam: u32, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetAllParamCustData(this, core::mem::transmute_copy(&indexfunc), core::mem::transmute_copy(&indexparam)) { Ok(ok__) => { @@ -5626,10 +4162,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllVarCustData(this: *mut core::ffi::c_void, index: u32, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetAllVarCustData(this: *mut core::ffi::c_void, index: u32, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetAllVarCustData(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5639,10 +4172,7 @@ impl ITypeInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllImplTypeCustData(this: *mut core::ffi::c_void, index: u32, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT - where - Identity: ITypeInfo2_Impl, - { + unsafe extern "system" fn GetAllImplTypeCustData(this: *mut core::ffi::c_void, index: u32, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeInfo2_Impl::GetAllImplTypeCustData(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5675,7 +4205,7 @@ impl ITypeInfo2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITypeLib_Impl: Sized { +pub trait ITypeLib_Impl: Sized + windows_core::IUnknownImpl { fn GetTypeInfoCount(&self) -> u32; fn GetTypeInfo(&self, index: u32) -> windows_core::Result; fn GetTypeInfoType(&self, index: u32) -> windows_core::Result; @@ -5689,21 +4219,12 @@ pub trait ITypeLib_Impl: Sized { } impl windows_core::RuntimeName for ITypeLib {} impl ITypeLib_Vtbl { - pub const fn new() -> ITypeLib_Vtbl - where - Identity: ITypeLib_Impl, - { - unsafe extern "system" fn GetTypeInfoCount(this: *mut core::ffi::c_void) -> u32 - where - Identity: ITypeLib_Impl, - { + pub const fn new() -> ITypeLib_Vtbl { + unsafe extern "system" fn GetTypeInfoCount(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeLib_Impl::GetTypeInfoCount(this) } - unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, index: u32, pptinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeLib_Impl, - { + unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, index: u32, pptinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLib_Impl::GetTypeInfo(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5713,10 +4234,7 @@ impl ITypeLib_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeInfoType(this: *mut core::ffi::c_void, index: u32, ptkind: *mut TYPEKIND) -> windows_core::HRESULT - where - Identity: ITypeLib_Impl, - { + unsafe extern "system" fn GetTypeInfoType(this: *mut core::ffi::c_void, index: u32, ptkind: *mut TYPEKIND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLib_Impl::GetTypeInfoType(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5726,10 +4244,7 @@ impl ITypeLib_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeInfoOfGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pptinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeLib_Impl, - { + unsafe extern "system" fn GetTypeInfoOfGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pptinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLib_Impl::GetTypeInfoOfGuid(this, core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -5739,10 +4254,7 @@ impl ITypeLib_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLibAttr(this: *mut core::ffi::c_void, pptlibattr: *mut *mut TLIBATTR) -> windows_core::HRESULT - where - Identity: ITypeLib_Impl, - { + unsafe extern "system" fn GetLibAttr(this: *mut core::ffi::c_void, pptlibattr: *mut *mut TLIBATTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLib_Impl::GetLibAttr(this) { Ok(ok__) => { @@ -5752,10 +4264,7 @@ impl ITypeLib_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeComp(this: *mut core::ffi::c_void, pptcomp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeLib_Impl, - { + unsafe extern "system" fn GetTypeComp(this: *mut core::ffi::c_void, pptcomp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLib_Impl::GetTypeComp(this) { Ok(ok__) => { @@ -5765,31 +4274,19 @@ impl ITypeLib_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentation(this: *mut core::ffi::c_void, index: i32, pbstrname: *mut core::mem::MaybeUninit, pbstrdocstring: *mut core::mem::MaybeUninit, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeLib_Impl, - { + unsafe extern "system" fn GetDocumentation(this: *mut core::ffi::c_void, index: i32, pbstrname: *mut core::mem::MaybeUninit, pbstrdocstring: *mut core::mem::MaybeUninit, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeLib_Impl::GetDocumentation(this, 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() } - unsafe extern "system" fn IsName(this: *mut core::ffi::c_void, sznamebuf: windows_core::PWSTR, lhashval: u32, pfname: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITypeLib_Impl, - { + unsafe extern "system" fn IsName(this: *mut core::ffi::c_void, sznamebuf: windows_core::PWSTR, lhashval: u32, pfname: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeLib_Impl::IsName(this, core::mem::transmute(&sznamebuf), core::mem::transmute_copy(&lhashval), core::mem::transmute_copy(&pfname)).into() } - unsafe extern "system" fn FindName(this: *mut core::ffi::c_void, sznamebuf: windows_core::PWSTR, lhashval: u32, pptinfo: *mut *mut core::ffi::c_void, rgmemid: *mut i32, pcfound: *mut u16) -> windows_core::HRESULT - where - Identity: ITypeLib_Impl, - { + unsafe extern "system" fn FindName(this: *mut core::ffi::c_void, sznamebuf: windows_core::PWSTR, lhashval: u32, pptinfo: *mut *mut core::ffi::c_void, rgmemid: *mut i32, pcfound: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeLib_Impl::FindName(this, core::mem::transmute(&sznamebuf), core::mem::transmute_copy(&lhashval), core::mem::transmute_copy(&pptinfo), core::mem::transmute_copy(&rgmemid), core::mem::transmute_copy(&pcfound)).into() } - unsafe extern "system" fn ReleaseTLibAttr(this: *mut core::ffi::c_void, ptlibattr: *const TLIBATTR) - where - Identity: ITypeLib_Impl, - { + unsafe extern "system" fn ReleaseTLibAttr(this: *mut core::ffi::c_void, ptlibattr: *const TLIBATTR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeLib_Impl::ReleaseTLibAttr(this, core::mem::transmute_copy(&ptlibattr)) } @@ -5819,14 +4316,8 @@ pub trait ITypeLib2_Impl: Sized + ITypeLib_Impl { } impl windows_core::RuntimeName for ITypeLib2 {} impl ITypeLib2_Vtbl { - pub const fn new() -> ITypeLib2_Vtbl - where - Identity: ITypeLib2_Impl, - { - unsafe extern "system" fn GetCustData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeLib2_Impl, - { + pub const fn new() -> ITypeLib2_Vtbl { + unsafe extern "system" fn GetCustData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvarval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLib2_Impl::GetCustData(this, core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -5836,24 +4327,15 @@ impl ITypeLib2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLibStatistics(this: *mut core::ffi::c_void, pcuniquenames: *mut u32, pcchuniquenames: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeLib2_Impl, - { + unsafe extern "system" fn GetLibStatistics(this: *mut core::ffi::c_void, pcuniquenames: *mut u32, pcchuniquenames: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeLib2_Impl::GetLibStatistics(this, core::mem::transmute_copy(&pcuniquenames), core::mem::transmute_copy(&pcchuniquenames)).into() } - unsafe extern "system" fn GetDocumentation2(this: *mut core::ffi::c_void, index: i32, lcid: u32, pbstrhelpstring: *mut core::mem::MaybeUninit, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeLib2_Impl, - { + unsafe extern "system" fn GetDocumentation2(this: *mut core::ffi::c_void, index: i32, lcid: u32, pbstrhelpstring: *mut core::mem::MaybeUninit, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeLib2_Impl::GetDocumentation2(this, 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() } - unsafe extern "system" fn GetAllCustData(this: *mut core::ffi::c_void, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT - where - Identity: ITypeLib2_Impl, - { + unsafe extern "system" fn GetAllCustData(this: *mut core::ffi::c_void, pcustdata: *mut CUSTDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLib2_Impl::GetAllCustData(this) { Ok(ok__) => { @@ -5875,7 +4357,7 @@ impl ITypeLib2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITypeLibRegistration_Impl: Sized { +pub trait ITypeLibRegistration_Impl: Sized + windows_core::IUnknownImpl { fn GetGuid(&self) -> windows_core::Result; fn GetVersion(&self) -> windows_core::Result; fn GetLcid(&self) -> windows_core::Result; @@ -5887,14 +4369,8 @@ pub trait ITypeLibRegistration_Impl: Sized { } impl windows_core::RuntimeName for ITypeLibRegistration {} impl ITypeLibRegistration_Vtbl { - pub const fn new() -> ITypeLibRegistration_Vtbl - where - Identity: ITypeLibRegistration_Impl, - { - unsafe extern "system" fn GetGuid(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITypeLibRegistration_Impl, - { + pub const fn new() -> ITypeLibRegistration_Vtbl { + unsafe extern "system" fn GetGuid(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLibRegistration_Impl::GetGuid(this) { Ok(ok__) => { @@ -5904,10 +4380,7 @@ impl ITypeLibRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeLibRegistration_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLibRegistration_Impl::GetVersion(this) { Ok(ok__) => { @@ -5917,10 +4390,7 @@ impl ITypeLibRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLcid(this: *mut core::ffi::c_void, plcid: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeLibRegistration_Impl, - { + unsafe extern "system" fn GetLcid(this: *mut core::ffi::c_void, plcid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLibRegistration_Impl::GetLcid(this) { Ok(ok__) => { @@ -5930,10 +4400,7 @@ impl ITypeLibRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWin32Path(this: *mut core::ffi::c_void, pwin32path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeLibRegistration_Impl, - { + unsafe extern "system" fn GetWin32Path(this: *mut core::ffi::c_void, pwin32path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLibRegistration_Impl::GetWin32Path(this) { Ok(ok__) => { @@ -5943,10 +4410,7 @@ impl ITypeLibRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWin64Path(this: *mut core::ffi::c_void, pwin64path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeLibRegistration_Impl, - { + unsafe extern "system" fn GetWin64Path(this: *mut core::ffi::c_void, pwin64path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLibRegistration_Impl::GetWin64Path(this) { Ok(ok__) => { @@ -5956,10 +4420,7 @@ impl ITypeLibRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeLibRegistration_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLibRegistration_Impl::GetDisplayName(this) { Ok(ok__) => { @@ -5969,10 +4430,7 @@ impl ITypeLibRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeLibRegistration_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLibRegistration_Impl::GetFlags(this) { Ok(ok__) => { @@ -5982,10 +4440,7 @@ impl ITypeLibRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHelpDir(this: *mut core::ffi::c_void, phelpdir: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITypeLibRegistration_Impl, - { + unsafe extern "system" fn GetHelpDir(this: *mut core::ffi::c_void, phelpdir: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLibRegistration_Impl::GetHelpDir(this) { Ok(ok__) => { @@ -6011,19 +4466,13 @@ impl ITypeLibRegistration_Vtbl { iid == &::IID } } -pub trait ITypeLibRegistrationReader_Impl: Sized { +pub trait ITypeLibRegistrationReader_Impl: Sized + windows_core::IUnknownImpl { fn EnumTypeLibRegistrations(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITypeLibRegistrationReader {} impl ITypeLibRegistrationReader_Vtbl { - pub const fn new() -> ITypeLibRegistrationReader_Vtbl - where - Identity: ITypeLibRegistrationReader_Impl, - { - unsafe extern "system" fn EnumTypeLibRegistrations(this: *mut core::ffi::c_void, ppenumunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeLibRegistrationReader_Impl, - { + pub const fn new() -> ITypeLibRegistrationReader_Vtbl { + unsafe extern "system" fn EnumTypeLibRegistrations(this: *mut core::ffi::c_void, ppenumunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeLibRegistrationReader_Impl::EnumTypeLibRegistrations(this) { Ok(ok__) => { @@ -6039,7 +4488,7 @@ impl ITypeLibRegistrationReader_Vtbl { iid == &::IID } } -pub trait IUri_Impl: Sized { +pub trait IUri_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -6068,35 +4517,20 @@ pub trait IUri_Impl: Sized { } impl windows_core::RuntimeName for IUri {} impl IUri_Vtbl { - pub const fn new() -> IUri_Vtbl - where - Identity: IUri_Impl, - { - unsafe extern "system" fn GetPropertyBSTR(this: *mut core::ffi::c_void, uriprop: Uri_PROPERTY, pbstrproperty: *mut core::mem::MaybeUninit, dwflags: u32) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + pub const fn new() -> IUri_Vtbl { + unsafe extern "system" fn GetPropertyBSTR(this: *mut core::ffi::c_void, uriprop: Uri_PROPERTY, pbstrproperty: *mut core::mem::MaybeUninit, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUri_Impl::GetPropertyBSTR(this, core::mem::transmute_copy(&uriprop), core::mem::transmute_copy(&pbstrproperty), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetPropertyLength(this: *mut core::ffi::c_void, uriprop: Uri_PROPERTY, pcchproperty: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetPropertyLength(this: *mut core::ffi::c_void, uriprop: Uri_PROPERTY, pcchproperty: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUri_Impl::GetPropertyLength(this, core::mem::transmute_copy(&uriprop), core::mem::transmute_copy(&pcchproperty), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetPropertyDWORD(this: *mut core::ffi::c_void, uriprop: Uri_PROPERTY, pdwproperty: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetPropertyDWORD(this: *mut core::ffi::c_void, uriprop: Uri_PROPERTY, pdwproperty: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUri_Impl::GetPropertyDWORD(this, core::mem::transmute_copy(&uriprop), core::mem::transmute_copy(&pdwproperty), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn HasProperty(this: *mut core::ffi::c_void, uriprop: Uri_PROPERTY, pfhasproperty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn HasProperty(this: *mut core::ffi::c_void, uriprop: Uri_PROPERTY, pfhasproperty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::HasProperty(this, core::mem::transmute_copy(&uriprop)) { Ok(ok__) => { @@ -6106,10 +4540,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAbsoluteUri(this: *mut core::ffi::c_void, pbstrabsoluteuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetAbsoluteUri(this: *mut core::ffi::c_void, pbstrabsoluteuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetAbsoluteUri(this) { Ok(ok__) => { @@ -6119,10 +4550,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAuthority(this: *mut core::ffi::c_void, pbstrauthority: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetAuthority(this: *mut core::ffi::c_void, pbstrauthority: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetAuthority(this) { Ok(ok__) => { @@ -6132,10 +4560,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayUri(this: *mut core::ffi::c_void, pbstrdisplaystring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetDisplayUri(this: *mut core::ffi::c_void, pbstrdisplaystring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetDisplayUri(this) { Ok(ok__) => { @@ -6145,10 +4570,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDomain(this: *mut core::ffi::c_void, pbstrdomain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetDomain(this: *mut core::ffi::c_void, pbstrdomain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetDomain(this) { Ok(ok__) => { @@ -6158,10 +4580,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExtension(this: *mut core::ffi::c_void, pbstrextension: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetExtension(this: *mut core::ffi::c_void, pbstrextension: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetExtension(this) { Ok(ok__) => { @@ -6171,10 +4590,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFragment(this: *mut core::ffi::c_void, pbstrfragment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetFragment(this: *mut core::ffi::c_void, pbstrfragment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetFragment(this) { Ok(ok__) => { @@ -6184,10 +4600,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHost(this: *mut core::ffi::c_void, pbstrhost: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetHost(this: *mut core::ffi::c_void, pbstrhost: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetHost(this) { Ok(ok__) => { @@ -6197,10 +4610,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPassword(this: *mut core::ffi::c_void, pbstrpassword: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetPassword(this: *mut core::ffi::c_void, pbstrpassword: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetPassword(this) { Ok(ok__) => { @@ -6210,10 +4620,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pbstrpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pbstrpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetPath(this) { Ok(ok__) => { @@ -6223,10 +4630,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPathAndQuery(this: *mut core::ffi::c_void, pbstrpathandquery: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetPathAndQuery(this: *mut core::ffi::c_void, pbstrpathandquery: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetPathAndQuery(this) { Ok(ok__) => { @@ -6236,10 +4640,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQuery(this: *mut core::ffi::c_void, pbstrquery: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetQuery(this: *mut core::ffi::c_void, pbstrquery: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetQuery(this) { Ok(ok__) => { @@ -6249,10 +4650,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRawUri(this: *mut core::ffi::c_void, pbstrrawuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetRawUri(this: *mut core::ffi::c_void, pbstrrawuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetRawUri(this) { Ok(ok__) => { @@ -6262,10 +4660,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSchemeName(this: *mut core::ffi::c_void, pbstrschemename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetSchemeName(this: *mut core::ffi::c_void, pbstrschemename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetSchemeName(this) { Ok(ok__) => { @@ -6275,10 +4670,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserInfo(this: *mut core::ffi::c_void, pbstruserinfo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetUserInfo(this: *mut core::ffi::c_void, pbstruserinfo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetUserInfo(this) { Ok(ok__) => { @@ -6288,10 +4680,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserName(this: *mut core::ffi::c_void, pbstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetUserName(this: *mut core::ffi::c_void, pbstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetUserName(this) { Ok(ok__) => { @@ -6301,10 +4690,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHostType(this: *mut core::ffi::c_void, pdwhosttype: *mut u32) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetHostType(this: *mut core::ffi::c_void, pdwhosttype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetHostType(this) { Ok(ok__) => { @@ -6314,10 +4700,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPort(this: *mut core::ffi::c_void, pdwport: *mut u32) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetPort(this: *mut core::ffi::c_void, pdwport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetPort(this) { Ok(ok__) => { @@ -6327,10 +4710,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScheme(this: *mut core::ffi::c_void, pdwscheme: *mut u32) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetScheme(this: *mut core::ffi::c_void, pdwscheme: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetScheme(this) { Ok(ok__) => { @@ -6340,10 +4720,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetZone(this: *mut core::ffi::c_void, pdwzone: *mut u32) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetZone(this: *mut core::ffi::c_void, pdwzone: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetZone(this) { Ok(ok__) => { @@ -6353,10 +4730,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::GetProperties(this) { Ok(ok__) => { @@ -6366,10 +4740,7 @@ impl IUri_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUri_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::IsEqual(this, windows_core::from_raw_borrowed(&puri)) { Ok(ok__) => { @@ -6412,7 +4783,7 @@ impl IUri_Vtbl { iid == &::IID } } -pub trait IUriBuilder_Impl: Sized { +pub trait IUriBuilder_Impl: Sized + windows_core::IUnknownImpl { fn CreateUriSimple(&self, dwallowencodingpropertymask: u32, dwreserved: usize) -> windows_core::Result; fn CreateUri(&self, dwcreateflags: u32, dwallowencodingpropertymask: u32, dwreserved: usize) -> windows_core::Result; fn CreateUriWithFlags(&self, dwcreateflags: u32, dwuribuilderflags: u32, dwallowencodingpropertymask: u32, dwreserved: usize) -> windows_core::Result; @@ -6439,14 +4810,8 @@ pub trait IUriBuilder_Impl: Sized { } impl windows_core::RuntimeName for IUriBuilder {} impl IUriBuilder_Vtbl { - pub const fn new() -> IUriBuilder_Vtbl - where - Identity: IUriBuilder_Impl, - { - unsafe extern "system" fn CreateUriSimple(this: *mut core::ffi::c_void, dwallowencodingpropertymask: u32, dwreserved: usize, ppiuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + pub const fn new() -> IUriBuilder_Vtbl { + unsafe extern "system" fn CreateUriSimple(this: *mut core::ffi::c_void, dwallowencodingpropertymask: u32, dwreserved: usize, ppiuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUriBuilder_Impl::CreateUriSimple(this, core::mem::transmute_copy(&dwallowencodingpropertymask), core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -6456,10 +4821,7 @@ impl IUriBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateUri(this: *mut core::ffi::c_void, dwcreateflags: u32, dwallowencodingpropertymask: u32, dwreserved: usize, ppiuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn CreateUri(this: *mut core::ffi::c_void, dwcreateflags: u32, dwallowencodingpropertymask: u32, dwreserved: usize, ppiuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUriBuilder_Impl::CreateUri(this, core::mem::transmute_copy(&dwcreateflags), core::mem::transmute_copy(&dwallowencodingpropertymask), core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -6469,10 +4831,7 @@ impl IUriBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateUriWithFlags(this: *mut core::ffi::c_void, dwcreateflags: u32, dwuribuilderflags: u32, dwallowencodingpropertymask: u32, dwreserved: usize, ppiuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn CreateUriWithFlags(this: *mut core::ffi::c_void, dwcreateflags: u32, dwuribuilderflags: u32, dwallowencodingpropertymask: u32, dwreserved: usize, ppiuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUriBuilder_Impl::CreateUriWithFlags(this, core::mem::transmute_copy(&dwcreateflags), core::mem::transmute_copy(&dwuribuilderflags), core::mem::transmute_copy(&dwallowencodingpropertymask), core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -6482,10 +4841,7 @@ impl IUriBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIUri(this: *mut core::ffi::c_void, ppiuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn GetIUri(this: *mut core::ffi::c_void, ppiuri: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUriBuilder_Impl::GetIUri(this) { Ok(ok__) => { @@ -6495,136 +4851,79 @@ impl IUriBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIUri(this: *mut core::ffi::c_void, piuri: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn SetIUri(this: *mut core::ffi::c_void, piuri: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::SetIUri(this, windows_core::from_raw_borrowed(&piuri)).into() } - unsafe extern "system" fn GetFragment(this: *mut core::ffi::c_void, pcchfragment: *mut u32, ppwzfragment: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn GetFragment(this: *mut core::ffi::c_void, pcchfragment: *mut u32, ppwzfragment: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::GetFragment(this, core::mem::transmute_copy(&pcchfragment), core::mem::transmute_copy(&ppwzfragment)).into() } - unsafe extern "system" fn GetHost(this: *mut core::ffi::c_void, pcchhost: *mut u32, ppwzhost: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn GetHost(this: *mut core::ffi::c_void, pcchhost: *mut u32, ppwzhost: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::GetHost(this, core::mem::transmute_copy(&pcchhost), core::mem::transmute_copy(&ppwzhost)).into() } - unsafe extern "system" fn GetPassword(this: *mut core::ffi::c_void, pcchpassword: *mut u32, ppwzpassword: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn GetPassword(this: *mut core::ffi::c_void, pcchpassword: *mut u32, ppwzpassword: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::GetPassword(this, core::mem::transmute_copy(&pcchpassword), core::mem::transmute_copy(&ppwzpassword)).into() } - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pcchpath: *mut u32, ppwzpath: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pcchpath: *mut u32, ppwzpath: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::GetPath(this, core::mem::transmute_copy(&pcchpath), core::mem::transmute_copy(&ppwzpath)).into() } - unsafe extern "system" fn GetPort(this: *mut core::ffi::c_void, pfhasport: *mut super::super::Foundation::BOOL, pdwport: *mut u32) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn GetPort(this: *mut core::ffi::c_void, pfhasport: *mut super::super::Foundation::BOOL, pdwport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::GetPort(this, core::mem::transmute_copy(&pfhasport), core::mem::transmute_copy(&pdwport)).into() } - unsafe extern "system" fn GetQuery(this: *mut core::ffi::c_void, pcchquery: *mut u32, ppwzquery: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn GetQuery(this: *mut core::ffi::c_void, pcchquery: *mut u32, ppwzquery: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::GetQuery(this, core::mem::transmute_copy(&pcchquery), core::mem::transmute_copy(&ppwzquery)).into() } - unsafe extern "system" fn GetSchemeName(this: *mut core::ffi::c_void, pcchschemename: *mut u32, ppwzschemename: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn GetSchemeName(this: *mut core::ffi::c_void, pcchschemename: *mut u32, ppwzschemename: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::GetSchemeName(this, core::mem::transmute_copy(&pcchschemename), core::mem::transmute_copy(&ppwzschemename)).into() } - unsafe extern "system" fn GetUserName(this: *mut core::ffi::c_void, pcchusername: *mut u32, ppwzusername: *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn GetUserName(this: *mut core::ffi::c_void, pcchusername: *mut u32, ppwzusername: *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::GetUserName(this, core::mem::transmute_copy(&pcchusername), core::mem::transmute_copy(&ppwzusername)).into() } - unsafe extern "system" fn SetFragment(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn SetFragment(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::SetFragment(this, core::mem::transmute(&pwznewvalue)).into() } - unsafe extern "system" fn SetHost(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn SetHost(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::SetHost(this, core::mem::transmute(&pwznewvalue)).into() } - unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::SetPassword(this, core::mem::transmute(&pwznewvalue)).into() } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::SetPath(this, core::mem::transmute(&pwznewvalue)).into() } - unsafe extern "system" fn SetPort(this: *mut core::ffi::c_void, fhasport: super::super::Foundation::BOOL, dwnewvalue: u32) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn SetPort(this: *mut core::ffi::c_void, fhasport: super::super::Foundation::BOOL, dwnewvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::SetPort(this, core::mem::transmute_copy(&fhasport), core::mem::transmute_copy(&dwnewvalue)).into() } - unsafe extern "system" fn SetQuery(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn SetQuery(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::SetQuery(this, core::mem::transmute(&pwznewvalue)).into() } - unsafe extern "system" fn SetSchemeName(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn SetSchemeName(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::SetSchemeName(this, core::mem::transmute(&pwznewvalue)).into() } - unsafe extern "system" fn SetUserName(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn SetUserName(this: *mut core::ffi::c_void, pwznewvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::SetUserName(this, core::mem::transmute(&pwznewvalue)).into() } - unsafe extern "system" fn RemoveProperties(this: *mut core::ffi::c_void, dwpropertymask: u32) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn RemoveProperties(this: *mut core::ffi::c_void, dwpropertymask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::RemoveProperties(this, core::mem::transmute_copy(&dwpropertymask)).into() } - unsafe extern "system" fn HasBeenModified(this: *mut core::ffi::c_void, pfmodified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUriBuilder_Impl, - { + unsafe extern "system" fn HasBeenModified(this: *mut core::ffi::c_void, pfmodified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUriBuilder_Impl::HasBeenModified(this) { Ok(ok__) => { @@ -6665,19 +4964,13 @@ impl IUriBuilder_Vtbl { iid == &::IID } } -pub trait IUrlMon_Impl: Sized { +pub trait IUrlMon_Impl: Sized + windows_core::IUnknownImpl { fn AsyncGetClassBits(&self, rclsid: *const windows_core::GUID, psztype: &windows_core::PCWSTR, pszext: &windows_core::PCWSTR, dwfileversionms: u32, dwfileversionls: u32, pszcodebase: &windows_core::PCWSTR, pbc: Option<&IBindCtx>, dwclasscontext: u32, riid: *const windows_core::GUID, flags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUrlMon {} impl IUrlMon_Vtbl { - pub const fn new() -> IUrlMon_Vtbl - where - Identity: IUrlMon_Impl, - { - unsafe extern "system" fn AsyncGetClassBits(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, psztype: windows_core::PCWSTR, pszext: windows_core::PCWSTR, dwfileversionms: u32, dwfileversionls: u32, pszcodebase: windows_core::PCWSTR, pbc: *mut core::ffi::c_void, dwclasscontext: u32, riid: *const windows_core::GUID, flags: u32) -> windows_core::HRESULT - where - Identity: IUrlMon_Impl, - { + pub const fn new() -> IUrlMon_Vtbl { + unsafe extern "system" fn AsyncGetClassBits(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, psztype: windows_core::PCWSTR, pszext: windows_core::PCWSTR, dwfileversionms: u32, dwfileversionls: u32, pszcodebase: windows_core::PCWSTR, pbc: *mut core::ffi::c_void, dwclasscontext: u32, riid: *const windows_core::GUID, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlMon_Impl::AsyncGetClassBits(this, core::mem::transmute_copy(&rclsid), core::mem::transmute(&psztype), core::mem::transmute(&pszext), core::mem::transmute_copy(&dwfileversionms), core::mem::transmute_copy(&dwfileversionls), core::mem::transmute(&pszcodebase), windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&dwclasscontext), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&flags)).into() } @@ -6687,20 +4980,14 @@ impl IUrlMon_Vtbl { iid == &::IID } } -pub trait IWaitMultiple_Impl: Sized { +pub trait IWaitMultiple_Impl: Sized + windows_core::IUnknownImpl { fn WaitMultiple(&self, timeout: u32) -> windows_core::Result; fn AddSynchronize(&self, psync: Option<&ISynchronize>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWaitMultiple {} impl IWaitMultiple_Vtbl { - pub const fn new() -> IWaitMultiple_Vtbl - where - Identity: IWaitMultiple_Impl, - { - unsafe extern "system" fn WaitMultiple(this: *mut core::ffi::c_void, timeout: u32, psync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWaitMultiple_Impl, - { + pub const fn new() -> IWaitMultiple_Vtbl { + unsafe extern "system" fn WaitMultiple(this: *mut core::ffi::c_void, timeout: u32, psync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWaitMultiple_Impl::WaitMultiple(this, core::mem::transmute_copy(&timeout)) { Ok(ok__) => { @@ -6710,10 +4997,7 @@ impl IWaitMultiple_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSynchronize(this: *mut core::ffi::c_void, psync: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWaitMultiple_Impl, - { + unsafe extern "system" fn AddSynchronize(this: *mut core::ffi::c_void, psync: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWaitMultiple_Impl::AddSynchronize(this, windows_core::from_raw_borrowed(&psync)).into() } 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 5005f59e69..a8191038f6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/impl.rs @@ -10,14 +10,8 @@ pub trait ContextInfo_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ContextInfo {} #[cfg(feature = "Win32_System_Com")] impl ContextInfo_Vtbl { - pub const fn new() -> ContextInfo_Vtbl - where - Identity: ContextInfo_Impl, - { - unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void, pbisintx: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ContextInfo_Impl, - { + pub const fn new() -> ContextInfo_Vtbl { + unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void, pbisintx: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextInfo_Impl::IsInTransaction(this) { Ok(ok__) => { @@ -27,10 +21,7 @@ impl ContextInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransaction(this: *mut core::ffi::c_void, pptx: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ContextInfo_Impl, - { + unsafe extern "system" fn GetTransaction(this: *mut core::ffi::c_void, pptx: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextInfo_Impl::GetTransaction(this) { Ok(ok__) => { @@ -40,10 +31,7 @@ impl ContextInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransactionId(this: *mut core::ffi::c_void, pbstrtxid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ContextInfo_Impl, - { + unsafe extern "system" fn GetTransactionId(this: *mut core::ffi::c_void, pbstrtxid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextInfo_Impl::GetTransactionId(this) { Ok(ok__) => { @@ -53,10 +41,7 @@ impl ContextInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActivityId(this: *mut core::ffi::c_void, pbstractivityid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ContextInfo_Impl, - { + unsafe extern "system" fn GetActivityId(this: *mut core::ffi::c_void, pbstractivityid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextInfo_Impl::GetActivityId(this) { Ok(ok__) => { @@ -66,10 +51,7 @@ impl ContextInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContextId(this: *mut core::ffi::c_void, pbstrctxid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ContextInfo_Impl, - { + unsafe extern "system" fn GetContextId(this: *mut core::ffi::c_void, pbstrctxid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextInfo_Impl::GetContextId(this) { Ok(ok__) => { @@ -102,14 +84,8 @@ pub trait ContextInfo2_Impl: Sized + ContextInfo_Impl { impl windows_core::RuntimeName for ContextInfo2 {} #[cfg(feature = "Win32_System_Com")] impl ContextInfo2_Vtbl { - pub const fn new() -> ContextInfo2_Vtbl - where - Identity: ContextInfo2_Impl, - { - unsafe extern "system" fn GetPartitionId(this: *mut core::ffi::c_void, __midl__contextinfo20000: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ContextInfo2_Impl, - { + pub const fn new() -> ContextInfo2_Vtbl { + unsafe extern "system" fn GetPartitionId(this: *mut core::ffi::c_void, __midl__contextinfo20000: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextInfo2_Impl::GetPartitionId(this) { Ok(ok__) => { @@ -119,10 +95,7 @@ impl ContextInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetApplicationId(this: *mut core::ffi::c_void, __midl__contextinfo20001: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ContextInfo2_Impl, - { + unsafe extern "system" fn GetApplicationId(this: *mut core::ffi::c_void, __midl__contextinfo20001: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextInfo2_Impl::GetApplicationId(this) { Ok(ok__) => { @@ -132,10 +105,7 @@ impl ContextInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetApplicationInstanceId(this: *mut core::ffi::c_void, __midl__contextinfo20002: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ContextInfo2_Impl, - { + unsafe extern "system" fn GetApplicationInstanceId(this: *mut core::ffi::c_void, __midl__contextinfo20002: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextInfo2_Impl::GetApplicationInstanceId(this) { Ok(ok__) => { @@ -165,21 +135,12 @@ pub trait IAppDomainHelper_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAppDomainHelper {} #[cfg(feature = "Win32_System_Com")] impl IAppDomainHelper_Vtbl { - pub const fn new() -> IAppDomainHelper_Vtbl - where - Identity: IAppDomainHelper_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, punkad: *mut core::ffi::c_void, __midl__iappdomainhelper0000: isize, ppool: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppDomainHelper_Impl, - { + pub const fn new() -> IAppDomainHelper_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, punkad: *mut core::ffi::c_void, __midl__iappdomainhelper0000: isize, ppool: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppDomainHelper_Impl::Initialize(this, windows_core::from_raw_borrowed(&punkad), core::mem::transmute_copy(&__midl__iappdomainhelper0000), core::mem::transmute_copy(&ppool)).into() } - unsafe extern "system" fn DoCallback(this: *mut core::ffi::c_void, punkad: *mut core::ffi::c_void, __midl__iappdomainhelper0001: isize, ppool: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppDomainHelper_Impl, - { + unsafe extern "system" fn DoCallback(this: *mut core::ffi::c_void, punkad: *mut core::ffi::c_void, __midl__iappdomainhelper0001: isize, ppool: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppDomainHelper_Impl::DoCallback(this, windows_core::from_raw_borrowed(&punkad), core::mem::transmute_copy(&__midl__iappdomainhelper0001), core::mem::transmute_copy(&ppool)).into() } @@ -201,14 +162,8 @@ pub trait IAssemblyLocator_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAssemblyLocator {} #[cfg(feature = "Win32_System_Com")] impl IAssemblyLocator_Vtbl { - pub const fn new() -> IAssemblyLocator_Vtbl - where - Identity: IAssemblyLocator_Impl, - { - unsafe extern "system" fn GetModules(this: *mut core::ffi::c_void, applicationdir: core::mem::MaybeUninit, applicationname: core::mem::MaybeUninit, assemblyname: core::mem::MaybeUninit, pmodules: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IAssemblyLocator_Impl, - { + pub const fn new() -> IAssemblyLocator_Vtbl { + unsafe extern "system" fn GetModules(this: *mut core::ffi::c_void, applicationdir: core::mem::MaybeUninit, applicationname: core::mem::MaybeUninit, assemblyname: core::mem::MaybeUninit, pmodules: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAssemblyLocator_Impl::GetModules(this, core::mem::transmute(&applicationdir), core::mem::transmute(&applicationname), core::mem::transmute(&assemblyname)) { Ok(ok__) => { @@ -224,19 +179,13 @@ impl IAssemblyLocator_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAsyncErrorNotify_Impl: Sized { +pub trait IAsyncErrorNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnError(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAsyncErrorNotify {} impl IAsyncErrorNotify_Vtbl { - pub const fn new() -> IAsyncErrorNotify_Vtbl - where - Identity: IAsyncErrorNotify_Impl, - { - unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IAsyncErrorNotify_Impl, - { + pub const fn new() -> IAsyncErrorNotify_Vtbl { + unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncErrorNotify_Impl::OnError(this, core::mem::transmute_copy(&hr)).into() } @@ -279,14 +228,8 @@ pub trait ICOMAdminCatalog_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ICOMAdminCatalog {} #[cfg(feature = "Win32_System_Com")] impl ICOMAdminCatalog_Vtbl { - pub const fn new() -> ICOMAdminCatalog_Vtbl - where - Identity: ICOMAdminCatalog_Impl, - { - unsafe extern "system" fn GetCollection(this: *mut core::ffi::c_void, bstrcollname: core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + pub const fn new() -> ICOMAdminCatalog_Vtbl { + unsafe extern "system" fn GetCollection(this: *mut core::ffi::c_void, bstrcollname: core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog_Impl::GetCollection(this, core::mem::transmute(&bstrcollname)) { Ok(ok__) => { @@ -296,10 +239,7 @@ impl ICOMAdminCatalog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, bstrcatalogservername: core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, bstrcatalogservername: core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog_Impl::Connect(this, core::mem::transmute(&bstrcatalogservername)) { Ok(ok__) => { @@ -309,10 +249,7 @@ impl ICOMAdminCatalog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog_Impl::MajorVersion(this) { Ok(ok__) => { @@ -322,10 +259,7 @@ impl ICOMAdminCatalog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, plminorversion: *mut i32) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, plminorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog_Impl::MinorVersion(this) { Ok(ok__) => { @@ -335,10 +269,7 @@ impl ICOMAdminCatalog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCollectionByQuery(this: *mut core::ffi::c_void, bstrcollname: core::mem::MaybeUninit, ppsavarquery: *const *const super::Com::SAFEARRAY, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn GetCollectionByQuery(this: *mut core::ffi::c_void, bstrcollname: core::mem::MaybeUninit, ppsavarquery: *const *const super::Com::SAFEARRAY, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog_Impl::GetCollectionByQuery(this, core::mem::transmute(&bstrcollname), core::mem::transmute_copy(&ppsavarquery)) { Ok(ok__) => { @@ -348,129 +279,75 @@ impl ICOMAdminCatalog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImportComponent(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, bstrclsidorprogid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn ImportComponent(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, bstrclsidorprogid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::ImportComponent(this, core::mem::transmute(&bstrapplidorname), core::mem::transmute(&bstrclsidorprogid)).into() } - unsafe extern "system" fn InstallComponent(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, bstrdll: core::mem::MaybeUninit, bstrtlb: core::mem::MaybeUninit, bstrpsdll: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn InstallComponent(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, bstrdll: core::mem::MaybeUninit, bstrtlb: core::mem::MaybeUninit, bstrpsdll: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::InstallComponent(this, core::mem::transmute(&bstrapplidorname), core::mem::transmute(&bstrdll), core::mem::transmute(&bstrtlb), core::mem::transmute(&bstrpsdll)).into() } - unsafe extern "system" fn ShutdownApplication(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn ShutdownApplication(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::ShutdownApplication(this, core::mem::transmute(&bstrapplidorname)).into() } - unsafe extern "system" fn ExportApplication(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, bstrapplicationfile: core::mem::MaybeUninit, loptions: COMAdminApplicationExportOptions) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn ExportApplication(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, bstrapplicationfile: core::mem::MaybeUninit, loptions: COMAdminApplicationExportOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::ExportApplication(this, core::mem::transmute(&bstrapplidorname), core::mem::transmute(&bstrapplicationfile), core::mem::transmute_copy(&loptions)).into() } - unsafe extern "system" fn InstallApplication(this: *mut core::ffi::c_void, bstrapplicationfile: core::mem::MaybeUninit, bstrdestinationdirectory: core::mem::MaybeUninit, loptions: COMAdminApplicationInstallOptions, bstruserid: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bstrrsn: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn InstallApplication(this: *mut core::ffi::c_void, bstrapplicationfile: core::mem::MaybeUninit, bstrdestinationdirectory: core::mem::MaybeUninit, loptions: COMAdminApplicationInstallOptions, bstruserid: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bstrrsn: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::InstallApplication(this, 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() } - unsafe extern "system" fn StopRouter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn StopRouter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::StopRouter(this).into() } - unsafe extern "system" fn RefreshRouter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn RefreshRouter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::RefreshRouter(this).into() } - unsafe extern "system" fn StartRouter(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn StartRouter(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::StartRouter(this).into() } - unsafe extern "system" fn Reserved1(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn Reserved1(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::Reserved1(this).into() } - unsafe extern "system" fn Reserved2(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn Reserved2(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::Reserved2(this).into() } - unsafe extern "system" fn InstallMultipleComponents(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn InstallMultipleComponents(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::InstallMultipleComponents(this, core::mem::transmute(&bstrapplidorname), core::mem::transmute_copy(&ppsavarfilenames), core::mem::transmute_copy(&ppsavarclsids)).into() } - unsafe extern "system" fn GetMultipleComponentsInfo(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, 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 - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn GetMultipleComponentsInfo(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::GetMultipleComponentsInfo(this, 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() } - unsafe extern "system" fn RefreshComponents(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn RefreshComponents(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::RefreshComponents(this).into() } - unsafe extern "system" fn BackupREGDB(this: *mut core::ffi::c_void, bstrbackupfilepath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn BackupREGDB(this: *mut core::ffi::c_void, bstrbackupfilepath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::BackupREGDB(this, core::mem::transmute(&bstrbackupfilepath)).into() } - unsafe extern "system" fn RestoreREGDB(this: *mut core::ffi::c_void, bstrbackupfilepath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn RestoreREGDB(this: *mut core::ffi::c_void, bstrbackupfilepath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::RestoreREGDB(this, core::mem::transmute(&bstrbackupfilepath)).into() } - unsafe extern "system" fn QueryApplicationFile(this: *mut core::ffi::c_void, bstrapplicationfile: core::mem::MaybeUninit, pbstrapplicationname: *mut core::mem::MaybeUninit, pbstrapplicationdescription: *mut core::mem::MaybeUninit, pbhasusers: *mut super::super::Foundation::VARIANT_BOOL, pbisproxy: *mut super::super::Foundation::VARIANT_BOOL, ppsavarfilenames: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn QueryApplicationFile(this: *mut core::ffi::c_void, bstrapplicationfile: core::mem::MaybeUninit, pbstrapplicationname: *mut core::mem::MaybeUninit, pbstrapplicationdescription: *mut core::mem::MaybeUninit, pbhasusers: *mut super::super::Foundation::VARIANT_BOOL, pbisproxy: *mut super::super::Foundation::VARIANT_BOOL, ppsavarfilenames: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::QueryApplicationFile(this, 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(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn StartApplication(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::StartApplication(this, core::mem::transmute(&bstrapplidorname)).into() } - unsafe extern "system" fn ServiceCheck(this: *mut core::ffi::c_void, lservice: i32, plstatus: *mut i32) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn ServiceCheck(this: *mut core::ffi::c_void, lservice: i32, plstatus: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog_Impl::ServiceCheck(this, core::mem::transmute_copy(&lservice)) { Ok(ok__) => { @@ -480,24 +357,15 @@ impl ICOMAdminCatalog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallMultipleEventClasses(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn InstallMultipleEventClasses(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::InstallMultipleEventClasses(this, core::mem::transmute(&bstrapplidorname), core::mem::transmute_copy(&ppsavarfilenames), core::mem::transmute_copy(&ppsavarclsids)).into() } - unsafe extern "system" fn InstallEventClass(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, bstrdll: core::mem::MaybeUninit, bstrtlb: core::mem::MaybeUninit, bstrpsdll: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn InstallEventClass(this: *mut core::ffi::c_void, bstrapplidorname: core::mem::MaybeUninit, bstrdll: core::mem::MaybeUninit, bstrtlb: core::mem::MaybeUninit, bstrpsdll: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::InstallEventClass(this, core::mem::transmute(&bstrapplidorname), core::mem::transmute(&bstrdll), core::mem::transmute(&bstrtlb), core::mem::transmute(&bstrpsdll)).into() } - unsafe extern "system" fn GetEventClassesForIID(this: *mut core::ffi::c_void, bstriid: core::mem::MaybeUninit, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarprogids: *mut *mut super::Com::SAFEARRAY, ppsavardescriptions: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog_Impl, - { + unsafe extern "system" fn GetEventClassesForIID(this: *mut core::ffi::c_void, bstriid: core::mem::MaybeUninit, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarprogids: *mut *mut super::Com::SAFEARRAY, ppsavardescriptions: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog_Impl::GetEventClassesForIID(this, core::mem::transmute(&bstriid), core::mem::transmute_copy(&ppsavarclsids), core::mem::transmute_copy(&ppsavarprogids), core::mem::transmute_copy(&ppsavardescriptions)).into() } @@ -573,14 +441,8 @@ pub trait ICOMAdminCatalog2_Impl: Sized + ICOMAdminCatalog_Impl { impl windows_core::RuntimeName for ICOMAdminCatalog2 {} #[cfg(feature = "Win32_System_Com")] impl ICOMAdminCatalog2_Vtbl { - pub const fn new() -> ICOMAdminCatalog2_Vtbl - where - Identity: ICOMAdminCatalog2_Impl, - { - unsafe extern "system" fn GetCollectionByQuery2(this: *mut core::ffi::c_void, bstrcollectionname: core::mem::MaybeUninit, pvarquerystrings: *const core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + pub const fn new() -> ICOMAdminCatalog2_Vtbl { + unsafe extern "system" fn GetCollectionByQuery2(this: *mut core::ffi::c_void, bstrcollectionname: core::mem::MaybeUninit, pvarquerystrings: *const core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::GetCollectionByQuery2(this, core::mem::transmute(&bstrcollectionname), core::mem::transmute_copy(&pvarquerystrings)) { Ok(ok__) => { @@ -590,10 +452,7 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetApplicationInstanceIDFromProcessID(this: *mut core::ffi::c_void, lprocessid: i32, pbstrapplicationinstanceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn GetApplicationInstanceIDFromProcessID(this: *mut core::ffi::c_void, lprocessid: i32, pbstrapplicationinstanceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::GetApplicationInstanceIDFromProcessID(this, core::mem::transmute_copy(&lprocessid)) { Ok(ok__) => { @@ -603,38 +462,23 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShutdownApplicationInstances(this: *mut core::ffi::c_void, pvarapplicationinstanceid: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn ShutdownApplicationInstances(this: *mut core::ffi::c_void, pvarapplicationinstanceid: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::ShutdownApplicationInstances(this, core::mem::transmute_copy(&pvarapplicationinstanceid)).into() } - unsafe extern "system" fn PauseApplicationInstances(this: *mut core::ffi::c_void, pvarapplicationinstanceid: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn PauseApplicationInstances(this: *mut core::ffi::c_void, pvarapplicationinstanceid: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::PauseApplicationInstances(this, core::mem::transmute_copy(&pvarapplicationinstanceid)).into() } - unsafe extern "system" fn ResumeApplicationInstances(this: *mut core::ffi::c_void, pvarapplicationinstanceid: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn ResumeApplicationInstances(this: *mut core::ffi::c_void, pvarapplicationinstanceid: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::ResumeApplicationInstances(this, core::mem::transmute_copy(&pvarapplicationinstanceid)).into() } - unsafe extern "system" fn RecycleApplicationInstances(this: *mut core::ffi::c_void, pvarapplicationinstanceid: *const core::mem::MaybeUninit, lreasoncode: i32) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn RecycleApplicationInstances(this: *mut core::ffi::c_void, pvarapplicationinstanceid: *const core::mem::MaybeUninit, lreasoncode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::RecycleApplicationInstances(this, core::mem::transmute_copy(&pvarapplicationinstanceid), core::mem::transmute_copy(&lreasoncode)).into() } - unsafe extern "system" fn AreApplicationInstancesPaused(this: *mut core::ffi::c_void, pvarapplicationinstanceid: *const core::mem::MaybeUninit, pvarboolpaused: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn AreApplicationInstancesPaused(this: *mut core::ffi::c_void, pvarapplicationinstanceid: *const core::mem::MaybeUninit, pvarboolpaused: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::AreApplicationInstancesPaused(this, core::mem::transmute_copy(&pvarapplicationinstanceid)) { Ok(ok__) => { @@ -644,10 +488,7 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DumpApplicationInstance(this: *mut core::ffi::c_void, bstrapplicationinstanceid: core::mem::MaybeUninit, bstrdirectory: core::mem::MaybeUninit, lmaximages: i32, pbstrdumpfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn DumpApplicationInstance(this: *mut core::ffi::c_void, bstrapplicationinstanceid: core::mem::MaybeUninit, bstrdirectory: core::mem::MaybeUninit, lmaximages: i32, pbstrdumpfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::DumpApplicationInstance(this, core::mem::transmute(&bstrapplicationinstanceid), core::mem::transmute(&bstrdirectory), core::mem::transmute_copy(&lmaximages)) { Ok(ok__) => { @@ -657,10 +498,7 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsApplicationInstanceDumpSupported(this: *mut core::ffi::c_void, pvarbooldumpsupported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn IsApplicationInstanceDumpSupported(this: *mut core::ffi::c_void, pvarbooldumpsupported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::IsApplicationInstanceDumpSupported(this) { Ok(ok__) => { @@ -670,24 +508,15 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateServiceForApplication(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, bstrservicename: core::mem::MaybeUninit, bstrstarttype: core::mem::MaybeUninit, bstrerrorcontrol: core::mem::MaybeUninit, bstrdependencies: core::mem::MaybeUninit, bstrrunas: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bdesktopok: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn CreateServiceForApplication(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, bstrservicename: core::mem::MaybeUninit, bstrstarttype: core::mem::MaybeUninit, bstrerrorcontrol: core::mem::MaybeUninit, bstrdependencies: core::mem::MaybeUninit, bstrrunas: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bdesktopok: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::CreateServiceForApplication(this, 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(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn DeleteServiceForApplication(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::DeleteServiceForApplication(this, core::mem::transmute(&bstrapplicationidorname)).into() } - unsafe extern "system" fn GetPartitionID(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, pbstrpartitionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn GetPartitionID(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, pbstrpartitionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::GetPartitionID(this, core::mem::transmute(&bstrapplicationidorname)) { Ok(ok__) => { @@ -697,10 +526,7 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPartitionName(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, pbstrpartitionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn GetPartitionName(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, pbstrpartitionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::GetPartitionName(this, core::mem::transmute(&bstrapplicationidorname)) { Ok(ok__) => { @@ -710,17 +536,11 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentPartition(this: *mut core::ffi::c_void, bstrpartitionidorname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn SetCurrentPartition(this: *mut core::ffi::c_void, bstrpartitionidorname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::SetCurrentPartition(this, core::mem::transmute(&bstrpartitionidorname)).into() } - unsafe extern "system" fn CurrentPartitionID(this: *mut core::ffi::c_void, pbstrpartitionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn CurrentPartitionID(this: *mut core::ffi::c_void, pbstrpartitionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::CurrentPartitionID(this) { Ok(ok__) => { @@ -730,10 +550,7 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentPartitionName(this: *mut core::ffi::c_void, pbstrpartitionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn CurrentPartitionName(this: *mut core::ffi::c_void, pbstrpartitionname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::CurrentPartitionName(this) { Ok(ok__) => { @@ -743,10 +560,7 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GlobalPartitionID(this: *mut core::ffi::c_void, pbstrglobalpartitionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn GlobalPartitionID(this: *mut core::ffi::c_void, pbstrglobalpartitionid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::GlobalPartitionID(this) { Ok(ok__) => { @@ -756,45 +570,27 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FlushPartitionCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn FlushPartitionCache(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::FlushPartitionCache(this).into() } - unsafe extern "system" fn CopyApplications(this: *mut core::ffi::c_void, bstrsourcepartitionidorname: core::mem::MaybeUninit, pvarapplicationid: *const core::mem::MaybeUninit, bstrdestinationpartitionidorname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn CopyApplications(this: *mut core::ffi::c_void, bstrsourcepartitionidorname: core::mem::MaybeUninit, pvarapplicationid: *const core::mem::MaybeUninit, bstrdestinationpartitionidorname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::CopyApplications(this, core::mem::transmute(&bstrsourcepartitionidorname), core::mem::transmute_copy(&pvarapplicationid), core::mem::transmute(&bstrdestinationpartitionidorname)).into() } - unsafe extern "system" fn CopyComponents(this: *mut core::ffi::c_void, bstrsourceapplicationidorname: core::mem::MaybeUninit, pvarclsidorprogid: *const core::mem::MaybeUninit, bstrdestinationapplicationidorname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn CopyComponents(this: *mut core::ffi::c_void, bstrsourceapplicationidorname: core::mem::MaybeUninit, pvarclsidorprogid: *const core::mem::MaybeUninit, bstrdestinationapplicationidorname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::CopyComponents(this, core::mem::transmute(&bstrsourceapplicationidorname), core::mem::transmute_copy(&pvarclsidorprogid), core::mem::transmute(&bstrdestinationapplicationidorname)).into() } - unsafe extern "system" fn MoveComponents(this: *mut core::ffi::c_void, bstrsourceapplicationidorname: core::mem::MaybeUninit, pvarclsidorprogid: *const core::mem::MaybeUninit, bstrdestinationapplicationidorname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn MoveComponents(this: *mut core::ffi::c_void, bstrsourceapplicationidorname: core::mem::MaybeUninit, pvarclsidorprogid: *const core::mem::MaybeUninit, bstrdestinationapplicationidorname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::MoveComponents(this, core::mem::transmute(&bstrsourceapplicationidorname), core::mem::transmute_copy(&pvarclsidorprogid), core::mem::transmute(&bstrdestinationapplicationidorname)).into() } - unsafe extern "system" fn AliasComponent(this: *mut core::ffi::c_void, bstrsrcapplicationidorname: core::mem::MaybeUninit, bstrclsidorprogid: core::mem::MaybeUninit, bstrdestapplicationidorname: core::mem::MaybeUninit, bstrnewprogid: core::mem::MaybeUninit, bstrnewclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn AliasComponent(this: *mut core::ffi::c_void, bstrsrcapplicationidorname: core::mem::MaybeUninit, bstrclsidorprogid: core::mem::MaybeUninit, bstrdestapplicationidorname: core::mem::MaybeUninit, bstrnewprogid: core::mem::MaybeUninit, bstrnewclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::AliasComponent(this, 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(this: *mut core::ffi::c_void, bstrdllname: core::mem::MaybeUninit, pcomadmininuse: *mut COMAdminInUse) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn IsSafeToDelete(this: *mut core::ffi::c_void, bstrdllname: core::mem::MaybeUninit, pcomadmininuse: *mut COMAdminInUse) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::IsSafeToDelete(this, core::mem::transmute(&bstrdllname)) { Ok(ok__) => { @@ -804,31 +600,19 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImportUnconfiguredComponents(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, pvarclsidorprogid: *const core::mem::MaybeUninit, pvarcomponenttype: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn ImportUnconfiguredComponents(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, pvarclsidorprogid: *const core::mem::MaybeUninit, pvarcomponenttype: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::ImportUnconfiguredComponents(this, core::mem::transmute(&bstrapplicationidorname), core::mem::transmute_copy(&pvarclsidorprogid), core::mem::transmute_copy(&pvarcomponenttype)).into() } - unsafe extern "system" fn PromoteUnconfiguredComponents(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, pvarclsidorprogid: *const core::mem::MaybeUninit, pvarcomponenttype: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn PromoteUnconfiguredComponents(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, pvarclsidorprogid: *const core::mem::MaybeUninit, pvarcomponenttype: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::PromoteUnconfiguredComponents(this, core::mem::transmute(&bstrapplicationidorname), core::mem::transmute_copy(&pvarclsidorprogid), core::mem::transmute_copy(&pvarcomponenttype)).into() } - unsafe extern "system" fn ImportComponents(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, pvarclsidorprogid: *const core::mem::MaybeUninit, pvarcomponenttype: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn ImportComponents(this: *mut core::ffi::c_void, bstrapplicationidorname: core::mem::MaybeUninit, pvarclsidorprogid: *const core::mem::MaybeUninit, pvarcomponenttype: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::ImportComponents(this, core::mem::transmute(&bstrapplicationidorname), core::mem::transmute_copy(&pvarclsidorprogid), core::mem::transmute_copy(&pvarcomponenttype)).into() } - unsafe extern "system" fn Is64BitCatalogServer(this: *mut core::ffi::c_void, pbis64bit: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn Is64BitCatalogServer(this: *mut core::ffi::c_void, pbis64bit: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::Is64BitCatalogServer(this) { Ok(ok__) => { @@ -838,24 +622,15 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExportPartition(this: *mut core::ffi::c_void, bstrpartitionidorname: core::mem::MaybeUninit, bstrpartitionfilename: core::mem::MaybeUninit, loptions: COMAdminApplicationExportOptions) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn ExportPartition(this: *mut core::ffi::c_void, bstrpartitionidorname: core::mem::MaybeUninit, bstrpartitionfilename: core::mem::MaybeUninit, loptions: COMAdminApplicationExportOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::ExportPartition(this, core::mem::transmute(&bstrpartitionidorname), core::mem::transmute(&bstrpartitionfilename), core::mem::transmute_copy(&loptions)).into() } - unsafe extern "system" fn InstallPartition(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, bstrdestdirectory: core::mem::MaybeUninit, loptions: COMAdminApplicationInstallOptions, bstruserid: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bstrrsn: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn InstallPartition(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, bstrdestdirectory: core::mem::MaybeUninit, loptions: COMAdminApplicationInstallOptions, bstruserid: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bstrrsn: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMAdminCatalog2_Impl::InstallPartition(this, 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(this: *mut core::ffi::c_void, bstrapplicationfile: core::mem::MaybeUninit, ppfilesforimport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn QueryApplicationFile2(this: *mut core::ffi::c_void, bstrapplicationfile: core::mem::MaybeUninit, ppfilesforimport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::QueryApplicationFile2(this, core::mem::transmute(&bstrapplicationfile)) { Ok(ok__) => { @@ -865,10 +640,7 @@ impl ICOMAdminCatalog2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComponentVersionCount(this: *mut core::ffi::c_void, bstrclsidorprogid: core::mem::MaybeUninit, plversioncount: *mut i32) -> windows_core::HRESULT - where - Identity: ICOMAdminCatalog2_Impl, - { + unsafe extern "system" fn GetComponentVersionCount(this: *mut core::ffi::c_void, bstrclsidorprogid: core::mem::MaybeUninit, plversioncount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICOMAdminCatalog2_Impl::GetComponentVersionCount(this, core::mem::transmute(&bstrclsidorprogid)) { Ok(ok__) => { @@ -917,7 +689,7 @@ impl ICOMAdminCatalog2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ICOMLBArguments_Impl: Sized { +pub trait ICOMLBArguments_Impl: Sized + windows_core::IUnknownImpl { fn GetCLSID(&self, pclsid: *mut windows_core::GUID) -> windows_core::Result<()>; fn SetCLSID(&self, pclsid: *mut windows_core::GUID) -> windows_core::Result<()>; fn GetMachineName(&self, cchsvr: u32, szservername: windows_core::PWSTR) -> windows_core::Result<()>; @@ -925,35 +697,20 @@ pub trait ICOMLBArguments_Impl: Sized { } impl windows_core::RuntimeName for ICOMLBArguments {} impl ICOMLBArguments_Vtbl { - pub const fn new() -> ICOMLBArguments_Vtbl - where - Identity: ICOMLBArguments_Impl, - { - unsafe extern "system" fn GetCLSID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICOMLBArguments_Impl, - { + pub const fn new() -> ICOMLBArguments_Vtbl { + unsafe extern "system" fn GetCLSID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMLBArguments_Impl::GetCLSID(this, core::mem::transmute_copy(&pclsid)).into() } - unsafe extern "system" fn SetCLSID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICOMLBArguments_Impl, - { + unsafe extern "system" fn SetCLSID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMLBArguments_Impl::SetCLSID(this, core::mem::transmute_copy(&pclsid)).into() } - unsafe extern "system" fn GetMachineName(this: *mut core::ffi::c_void, cchsvr: u32, szservername: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICOMLBArguments_Impl, - { + unsafe extern "system" fn GetMachineName(this: *mut core::ffi::c_void, cchsvr: u32, szservername: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMLBArguments_Impl::GetMachineName(this, core::mem::transmute_copy(&cchsvr), core::mem::transmute_copy(&szservername)).into() } - unsafe extern "system" fn SetMachineName(this: *mut core::ffi::c_void, cchsvr: u32, szservername: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICOMLBArguments_Impl, - { + unsafe extern "system" fn SetMachineName(this: *mut core::ffi::c_void, cchsvr: u32, szservername: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICOMLBArguments_Impl::SetMachineName(this, core::mem::transmute_copy(&cchsvr), core::mem::transmute(&szservername)).into() } @@ -992,14 +749,8 @@ pub trait ICatalogCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ICatalogCollection {} #[cfg(feature = "Win32_System_Com")] impl ICatalogCollection_Vtbl { - pub const fn new() -> ICatalogCollection_Vtbl - where - Identity: ICatalogCollection_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + pub const fn new() -> ICatalogCollection_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenumvariant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1009,10 +760,7 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, ppcatalogobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, ppcatalogobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -1022,10 +770,7 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plobjectcount: *mut i32) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plobjectcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::Count(this) { Ok(ok__) => { @@ -1035,17 +780,11 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatalogCollection_Impl::Remove(this, core::mem::transmute_copy(&lindex)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, ppcatalogobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, ppcatalogobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::Add(this) { Ok(ok__) => { @@ -1055,17 +794,11 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Populate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn Populate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatalogCollection_Impl::Populate(this).into() } - unsafe extern "system" fn SaveChanges(this: *mut core::ffi::c_void, pcchanges: *mut i32) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn SaveChanges(this: *mut core::ffi::c_void, pcchanges: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::SaveChanges(this) { Ok(ok__) => { @@ -1075,10 +808,7 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCollection(this: *mut core::ffi::c_void, bstrcollname: core::mem::MaybeUninit, varobjectkey: core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn GetCollection(this: *mut core::ffi::c_void, bstrcollname: core::mem::MaybeUninit, varobjectkey: core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::GetCollection(this, core::mem::transmute(&bstrcollname), core::mem::transmute(&varobjectkey)) { Ok(ok__) => { @@ -1088,10 +818,7 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvarnamel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvarnamel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::Name(this) { Ok(ok__) => { @@ -1101,10 +828,7 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEnabled(this: *mut core::ffi::c_void, pvarbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn AddEnabled(this: *mut core::ffi::c_void, pvarbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::AddEnabled(this) { Ok(ok__) => { @@ -1114,10 +838,7 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveEnabled(this: *mut core::ffi::c_void, pvarbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn RemoveEnabled(this: *mut core::ffi::c_void, pvarbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::RemoveEnabled(this) { Ok(ok__) => { @@ -1127,10 +848,7 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUtilInterface(this: *mut core::ffi::c_void, ppidispatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn GetUtilInterface(this: *mut core::ffi::c_void, ppidispatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::GetUtilInterface(this) { Ok(ok__) => { @@ -1140,10 +858,7 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DataStoreMajorVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn DataStoreMajorVersion(this: *mut core::ffi::c_void, plmajorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::DataStoreMajorVersion(this) { Ok(ok__) => { @@ -1153,10 +868,7 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DataStoreMinorVersion(this: *mut core::ffi::c_void, plminorversionl: *mut i32) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn DataStoreMinorVersion(this: *mut core::ffi::c_void, plminorversionl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogCollection_Impl::DataStoreMinorVersion(this) { Ok(ok__) => { @@ -1166,17 +878,11 @@ impl ICatalogCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PopulateByKey(this: *mut core::ffi::c_void, psakeys: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn PopulateByKey(this: *mut core::ffi::c_void, psakeys: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatalogCollection_Impl::PopulateByKey(this, core::mem::transmute_copy(&psakeys)).into() } - unsafe extern "system" fn PopulateByQuery(this: *mut core::ffi::c_void, bstrquerystring: core::mem::MaybeUninit, lquerytype: i32) -> windows_core::HRESULT - where - Identity: ICatalogCollection_Impl, - { + unsafe extern "system" fn PopulateByQuery(this: *mut core::ffi::c_void, bstrquerystring: core::mem::MaybeUninit, lquerytype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatalogCollection_Impl::PopulateByQuery(this, core::mem::transmute(&bstrquerystring), core::mem::transmute_copy(&lquerytype)).into() } @@ -1218,14 +924,8 @@ pub trait ICatalogObject_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ICatalogObject {} #[cfg(feature = "Win32_System_Com")] impl ICatalogObject_Vtbl { - pub const fn new() -> ICatalogObject_Vtbl - where - Identity: ICatalogObject_Impl, - { - unsafe extern "system" fn get_Value(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pvarretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICatalogObject_Impl, - { + pub const fn new() -> ICatalogObject_Vtbl { + unsafe extern "system" fn get_Value(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pvarretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogObject_Impl::get_Value(this, core::mem::transmute(&bstrpropname)) { Ok(ok__) => { @@ -1235,17 +935,11 @@ impl ICatalogObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Value(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, val: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICatalogObject_Impl, - { + unsafe extern "system" fn put_Value(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, val: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatalogObject_Impl::put_Value(this, core::mem::transmute(&bstrpropname), core::mem::transmute(&val)).into() } - unsafe extern "system" fn Key(this: *mut core::ffi::c_void, pvarretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICatalogObject_Impl, - { + unsafe extern "system" fn Key(this: *mut core::ffi::c_void, pvarretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogObject_Impl::Key(this) { Ok(ok__) => { @@ -1255,10 +949,7 @@ impl ICatalogObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvarretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICatalogObject_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pvarretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogObject_Impl::Name(this) { Ok(ok__) => { @@ -1268,10 +959,7 @@ impl ICatalogObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPropertyReadOnly(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pbretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICatalogObject_Impl, - { + unsafe extern "system" fn IsPropertyReadOnly(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pbretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogObject_Impl::IsPropertyReadOnly(this, core::mem::transmute(&bstrpropname)) { Ok(ok__) => { @@ -1281,10 +969,7 @@ impl ICatalogObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Valid(this: *mut core::ffi::c_void, pbretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICatalogObject_Impl, - { + unsafe extern "system" fn Valid(this: *mut core::ffi::c_void, pbretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogObject_Impl::Valid(this) { Ok(ok__) => { @@ -1294,10 +979,7 @@ impl ICatalogObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPropertyWriteOnly(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pbretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICatalogObject_Impl, - { + unsafe extern "system" fn IsPropertyWriteOnly(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pbretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalogObject_Impl::IsPropertyWriteOnly(this, core::mem::transmute(&bstrpropname)) { Ok(ok__) => { @@ -1322,19 +1004,13 @@ impl ICatalogObject_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ICheckSxsConfig_Impl: Sized { +pub trait ICheckSxsConfig_Impl: Sized + windows_core::IUnknownImpl { fn IsSameSxsConfig(&self, wszsxsname: &windows_core::PCWSTR, wszsxsdirectory: &windows_core::PCWSTR, wszsxsappname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICheckSxsConfig {} impl ICheckSxsConfig_Vtbl { - pub const fn new() -> ICheckSxsConfig_Vtbl - where - Identity: ICheckSxsConfig_Impl, - { - unsafe extern "system" fn IsSameSxsConfig(this: *mut core::ffi::c_void, wszsxsname: windows_core::PCWSTR, wszsxsdirectory: windows_core::PCWSTR, wszsxsappname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICheckSxsConfig_Impl, - { + pub const fn new() -> ICheckSxsConfig_Vtbl { + unsafe extern "system" fn IsSameSxsConfig(this: *mut core::ffi::c_void, wszsxsname: windows_core::PCWSTR, wszsxsdirectory: windows_core::PCWSTR, wszsxsappname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICheckSxsConfig_Impl::IsSameSxsConfig(this, core::mem::transmute(&wszsxsname), core::mem::transmute(&wszsxsdirectory), core::mem::transmute(&wszsxsappname)).into() } @@ -1344,7 +1020,7 @@ impl ICheckSxsConfig_Vtbl { iid == &::IID } } -pub trait IComActivityEvents_Impl: Sized { +pub trait IComActivityEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnActivityCreate(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID) -> windows_core::Result<()>; fn OnActivityDestroy(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID) -> windows_core::Result<()>; fn OnActivityEnter(&self, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, guidentered: *const windows_core::GUID, dwthread: u32) -> windows_core::Result<()>; @@ -1355,56 +1031,32 @@ pub trait IComActivityEvents_Impl: Sized { } impl windows_core::RuntimeName for IComActivityEvents {} impl IComActivityEvents_Vtbl { - pub const fn new() -> IComActivityEvents_Vtbl - where - Identity: IComActivityEvents_Impl, - { - unsafe extern "system" fn OnActivityCreate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComActivityEvents_Impl, - { + pub const fn new() -> IComActivityEvents_Vtbl { + unsafe extern "system" fn OnActivityCreate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComActivityEvents_Impl::OnActivityCreate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity)).into() } - unsafe extern "system" fn OnActivityDestroy(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComActivityEvents_Impl, - { + unsafe extern "system" fn OnActivityDestroy(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComActivityEvents_Impl::OnActivityDestroy(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity)).into() } - unsafe extern "system" fn OnActivityEnter(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, guidentered: *const windows_core::GUID, dwthread: u32) -> windows_core::HRESULT - where - Identity: IComActivityEvents_Impl, - { + unsafe extern "system" fn OnActivityEnter(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, guidentered: *const windows_core::GUID, dwthread: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComActivityEvents_Impl::OnActivityEnter(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidcurrent), core::mem::transmute_copy(&guidentered), core::mem::transmute_copy(&dwthread)).into() } - unsafe extern "system" fn OnActivityTimeout(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, guidentered: *const windows_core::GUID, dwthread: u32, dwtimeout: u32) -> windows_core::HRESULT - where - Identity: IComActivityEvents_Impl, - { + unsafe extern "system" fn OnActivityTimeout(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, guidentered: *const windows_core::GUID, dwthread: u32, dwtimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComActivityEvents_Impl::OnActivityTimeout(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidcurrent), core::mem::transmute_copy(&guidentered), core::mem::transmute_copy(&dwthread), core::mem::transmute_copy(&dwtimeout)).into() } - unsafe extern "system" fn OnActivityReenter(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, dwthread: u32, dwcalldepth: u32) -> windows_core::HRESULT - where - Identity: IComActivityEvents_Impl, - { + unsafe extern "system" fn OnActivityReenter(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, dwthread: u32, dwcalldepth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComActivityEvents_Impl::OnActivityReenter(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidcurrent), core::mem::transmute_copy(&dwthread), core::mem::transmute_copy(&dwcalldepth)).into() } - unsafe extern "system" fn OnActivityLeave(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, guidleft: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComActivityEvents_Impl, - { + unsafe extern "system" fn OnActivityLeave(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, guidleft: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComActivityEvents_Impl::OnActivityLeave(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidcurrent), core::mem::transmute_copy(&guidleft)).into() } - unsafe extern "system" fn OnActivityLeaveSame(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, dwcalldepth: u32) -> windows_core::HRESULT - where - Identity: IComActivityEvents_Impl, - { + unsafe extern "system" fn OnActivityLeaveSame(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const windows_core::GUID, dwcalldepth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComActivityEvents_Impl::OnActivityLeaveSame(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidcurrent), core::mem::transmute_copy(&dwcalldepth)).into() } @@ -1423,7 +1075,7 @@ impl IComActivityEvents_Vtbl { iid == &::IID } } -pub trait IComApp2Events_Impl: Sized { +pub trait IComApp2Events_Impl: Sized + windows_core::IUnknownImpl { fn OnAppActivation2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID, guidprocess: &windows_core::GUID) -> windows_core::Result<()>; fn OnAppShutdown2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; fn OnAppForceShutdown2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; @@ -1432,42 +1084,24 @@ pub trait IComApp2Events_Impl: Sized { } impl windows_core::RuntimeName for IComApp2Events {} impl IComApp2Events_Vtbl { - pub const fn new() -> IComApp2Events_Vtbl - where - Identity: IComApp2Events_Impl, - { - unsafe extern "system" fn OnAppActivation2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, guidprocess: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComApp2Events_Impl, - { + pub const fn new() -> IComApp2Events_Vtbl { + unsafe extern "system" fn OnAppActivation2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, guidprocess: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComApp2Events_Impl::OnAppActivation2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp), core::mem::transmute(&guidprocess)).into() } - unsafe extern "system" fn OnAppShutdown2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComApp2Events_Impl, - { + unsafe extern "system" fn OnAppShutdown2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComApp2Events_Impl::OnAppShutdown2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp)).into() } - unsafe extern "system" fn OnAppForceShutdown2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComApp2Events_Impl, - { + unsafe extern "system" fn OnAppForceShutdown2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComApp2Events_Impl::OnAppForceShutdown2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp)).into() } - unsafe extern "system" fn OnAppPaused2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, bpaused: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComApp2Events_Impl, - { + unsafe extern "system" fn OnAppPaused2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, bpaused: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComApp2Events_Impl::OnAppPaused2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp), core::mem::transmute_copy(&bpaused)).into() } - unsafe extern "system" fn OnAppRecycle2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, guidprocess: windows_core::GUID, lreason: i32) -> windows_core::HRESULT - where - Identity: IComApp2Events_Impl, - { + unsafe extern "system" fn OnAppRecycle2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, guidprocess: windows_core::GUID, lreason: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComApp2Events_Impl::OnAppRecycle2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp), core::mem::transmute(&guidprocess), core::mem::transmute_copy(&lreason)).into() } @@ -1484,35 +1118,23 @@ impl IComApp2Events_Vtbl { iid == &::IID } } -pub trait IComAppEvents_Impl: Sized { +pub trait IComAppEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnAppActivation(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; fn OnAppShutdown(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; fn OnAppForceShutdown(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComAppEvents {} impl IComAppEvents_Vtbl { - pub const fn new() -> IComAppEvents_Vtbl - where - Identity: IComAppEvents_Impl, - { - unsafe extern "system" fn OnAppActivation(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComAppEvents_Impl, - { + pub const fn new() -> IComAppEvents_Vtbl { + unsafe extern "system" fn OnAppActivation(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComAppEvents_Impl::OnAppActivation(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp)).into() } - unsafe extern "system" fn OnAppShutdown(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComAppEvents_Impl, - { + unsafe extern "system" fn OnAppShutdown(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComAppEvents_Impl::OnAppShutdown(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp)).into() } - unsafe extern "system" fn OnAppForceShutdown(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComAppEvents_Impl, - { + unsafe extern "system" fn OnAppForceShutdown(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComAppEvents_Impl::OnAppForceShutdown(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp)).into() } @@ -1527,7 +1149,7 @@ impl IComAppEvents_Vtbl { iid == &::IID } } -pub trait IComCRMEvents_Impl: Sized { +pub trait IComCRMEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnCRMRecoveryStart(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; fn OnCRMRecoveryDone(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; fn OnCRMCheckpoint(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; @@ -1546,112 +1168,64 @@ pub trait IComCRMEvents_Impl: Sized { } impl windows_core::RuntimeName for IComCRMEvents {} impl IComCRMEvents_Vtbl { - pub const fn new() -> IComCRMEvents_Vtbl - where - Identity: IComCRMEvents_Impl, - { - unsafe extern "system" fn OnCRMRecoveryStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + pub const fn new() -> IComCRMEvents_Vtbl { + unsafe extern "system" fn OnCRMRecoveryStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMRecoveryStart(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp)).into() } - unsafe extern "system" fn OnCRMRecoveryDone(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMRecoveryDone(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMRecoveryDone(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp)).into() } - unsafe extern "system" fn OnCRMCheckpoint(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMCheckpoint(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMCheckpoint(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp)).into() } - unsafe extern "system" fn OnCRMBegin(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, guidactivity: windows_core::GUID, guidtx: windows_core::GUID, szprogidcompensator: windows_core::PCWSTR, szdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMBegin(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, guidactivity: windows_core::GUID, guidtx: windows_core::GUID, szprogidcompensator: windows_core::PCWSTR, szdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMBegin(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid), core::mem::transmute(&guidactivity), core::mem::transmute(&guidtx), core::mem::transmute(&szprogidcompensator), core::mem::transmute(&szdescription)).into() } - unsafe extern "system" fn OnCRMPrepare(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMPrepare(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMPrepare(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid)).into() } - unsafe extern "system" fn OnCRMCommit(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMCommit(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMCommit(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid)).into() } - unsafe extern "system" fn OnCRMAbort(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMAbort(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMAbort(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid)).into() } - unsafe extern "system" fn OnCRMIndoubt(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMIndoubt(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMIndoubt(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid)).into() } - unsafe extern "system" fn OnCRMDone(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMDone(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMDone(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid)).into() } - unsafe extern "system" fn OnCRMRelease(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMRelease(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMRelease(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid)).into() } - unsafe extern "system" fn OnCRMAnalyze(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, dwcrmrecordtype: u32, dwrecordsize: u32) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMAnalyze(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, dwcrmrecordtype: u32, dwrecordsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMAnalyze(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid), core::mem::transmute_copy(&dwcrmrecordtype), core::mem::transmute_copy(&dwrecordsize)).into() } - unsafe extern "system" fn OnCRMWrite(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: super::super::Foundation::BOOL, dwrecordsize: u32) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMWrite(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: super::super::Foundation::BOOL, dwrecordsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMWrite(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid), core::mem::transmute_copy(&fvariants), core::mem::transmute_copy(&dwrecordsize)).into() } - unsafe extern "system" fn OnCRMForget(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMForget(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMForget(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid)).into() } - unsafe extern "system" fn OnCRMForce(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMForce(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMForce(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid)).into() } - unsafe extern "system" fn OnCRMDeliver(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: super::super::Foundation::BOOL, dwrecordsize: u32) -> windows_core::HRESULT - where - Identity: IComCRMEvents_Impl, - { + unsafe extern "system" fn OnCRMDeliver(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: super::super::Foundation::BOOL, dwrecordsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMDeliver(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid), core::mem::transmute_copy(&fvariants), core::mem::transmute_copy(&dwrecordsize)).into() } @@ -1678,19 +1252,13 @@ impl IComCRMEvents_Vtbl { iid == &::IID } } -pub trait IComExceptionEvents_Impl: Sized { +pub trait IComExceptionEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnExceptionUser(&self, pinfo: *const COMSVCSEVENTINFO, code: u32, address: u64, pszstacktrace: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComExceptionEvents {} impl IComExceptionEvents_Vtbl { - pub const fn new() -> IComExceptionEvents_Vtbl - where - Identity: IComExceptionEvents_Impl, - { - unsafe extern "system" fn OnExceptionUser(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, code: u32, address: u64, pszstacktrace: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IComExceptionEvents_Impl, - { + pub const fn new() -> IComExceptionEvents_Vtbl { + unsafe extern "system" fn OnExceptionUser(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, code: u32, address: u64, pszstacktrace: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComExceptionEvents_Impl::OnExceptionUser(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&code), core::mem::transmute_copy(&address), core::mem::transmute(&pszstacktrace)).into() } @@ -1700,19 +1268,13 @@ impl IComExceptionEvents_Vtbl { iid == &::IID } } -pub trait IComIdentityEvents_Impl: Sized { +pub trait IComIdentityEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnIISRequestInfo(&self, pinfo: *const COMSVCSEVENTINFO, objid: u64, pszclientip: &windows_core::PCWSTR, pszserverip: &windows_core::PCWSTR, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComIdentityEvents {} impl IComIdentityEvents_Vtbl { - pub const fn new() -> IComIdentityEvents_Vtbl - where - Identity: IComIdentityEvents_Impl, - { - unsafe extern "system" fn OnIISRequestInfo(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objid: u64, pszclientip: windows_core::PCWSTR, pszserverip: windows_core::PCWSTR, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IComIdentityEvents_Impl, - { + pub const fn new() -> IComIdentityEvents_Vtbl { + unsafe extern "system" fn OnIISRequestInfo(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objid: u64, pszclientip: windows_core::PCWSTR, pszserverip: windows_core::PCWSTR, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComIdentityEvents_Impl::OnIISRequestInfo(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objid), core::mem::transmute(&pszclientip), core::mem::transmute(&pszserverip), core::mem::transmute(&pszurl)).into() } @@ -1722,27 +1284,18 @@ impl IComIdentityEvents_Vtbl { iid == &::IID } } -pub trait IComInstance2Events_Impl: Sized { +pub trait IComInstance2Events_Impl: Sized + windows_core::IUnknownImpl { fn OnObjectCreate2(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, clsid: *const windows_core::GUID, tsid: *const windows_core::GUID, ctxtid: u64, objectid: u64, guidpartition: *const windows_core::GUID) -> windows_core::Result<()>; fn OnObjectDestroy2(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComInstance2Events {} impl IComInstance2Events_Vtbl { - pub const fn new() -> IComInstance2Events_Vtbl - where - Identity: IComInstance2Events_Impl, - { - unsafe extern "system" fn OnObjectCreate2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, clsid: *const windows_core::GUID, tsid: *const windows_core::GUID, ctxtid: u64, objectid: u64, guidpartition: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComInstance2Events_Impl, - { + pub const fn new() -> IComInstance2Events_Vtbl { + unsafe extern "system" fn OnObjectCreate2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, clsid: *const windows_core::GUID, tsid: *const windows_core::GUID, ctxtid: u64, objectid: u64, guidpartition: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComInstance2Events_Impl::OnObjectCreate2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&tsid), core::mem::transmute_copy(&ctxtid), core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&guidpartition)).into() } - unsafe extern "system" fn OnObjectDestroy2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT - where - Identity: IComInstance2Events_Impl, - { + unsafe extern "system" fn OnObjectDestroy2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComInstance2Events_Impl::OnObjectDestroy2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&ctxtid)).into() } @@ -1756,27 +1309,18 @@ impl IComInstance2Events_Vtbl { iid == &::IID } } -pub trait IComInstanceEvents_Impl: Sized { +pub trait IComInstanceEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnObjectCreate(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, clsid: *const windows_core::GUID, tsid: *const windows_core::GUID, ctxtid: u64, objectid: u64) -> windows_core::Result<()>; fn OnObjectDestroy(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComInstanceEvents {} impl IComInstanceEvents_Vtbl { - pub const fn new() -> IComInstanceEvents_Vtbl - where - Identity: IComInstanceEvents_Impl, - { - unsafe extern "system" fn OnObjectCreate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, clsid: *const windows_core::GUID, tsid: *const windows_core::GUID, ctxtid: u64, objectid: u64) -> windows_core::HRESULT - where - Identity: IComInstanceEvents_Impl, - { + pub const fn new() -> IComInstanceEvents_Vtbl { + unsafe extern "system" fn OnObjectCreate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, clsid: *const windows_core::GUID, tsid: *const windows_core::GUID, ctxtid: u64, objectid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComInstanceEvents_Impl::OnObjectCreate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&tsid), core::mem::transmute_copy(&ctxtid), core::mem::transmute_copy(&objectid)).into() } - unsafe extern "system" fn OnObjectDestroy(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT - where - Identity: IComInstanceEvents_Impl, - { + unsafe extern "system" fn OnObjectDestroy(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComInstanceEvents_Impl::OnObjectDestroy(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&ctxtid)).into() } @@ -1790,7 +1334,7 @@ impl IComInstanceEvents_Vtbl { iid == &::IID } } -pub trait IComLTxEvents_Impl: Sized { +pub trait IComLTxEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnLtxTransactionStart(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: &windows_core::GUID, tsid: &windows_core::GUID, froot: super::super::Foundation::BOOL, nisolationlevel: i32) -> windows_core::Result<()>; fn OnLtxTransactionPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: &windows_core::GUID, fvote: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn OnLtxTransactionAbort(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: &windows_core::GUID) -> windows_core::Result<()>; @@ -1799,42 +1343,24 @@ pub trait IComLTxEvents_Impl: Sized { } impl windows_core::RuntimeName for IComLTxEvents {} impl IComLTxEvents_Vtbl { - pub const fn new() -> IComLTxEvents_Vtbl - where - Identity: IComLTxEvents_Impl, - { - unsafe extern "system" fn OnLtxTransactionStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, tsid: windows_core::GUID, froot: super::super::Foundation::BOOL, nisolationlevel: i32) -> windows_core::HRESULT - where - Identity: IComLTxEvents_Impl, - { + pub const fn new() -> IComLTxEvents_Vtbl { + unsafe extern "system" fn OnLtxTransactionStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, tsid: windows_core::GUID, froot: super::super::Foundation::BOOL, nisolationlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComLTxEvents_Impl::OnLtxTransactionStart(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidltx), core::mem::transmute(&tsid), core::mem::transmute_copy(&froot), core::mem::transmute_copy(&nisolationlevel)).into() } - unsafe extern "system" fn OnLtxTransactionPrepare(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, fvote: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComLTxEvents_Impl, - { + unsafe extern "system" fn OnLtxTransactionPrepare(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, fvote: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComLTxEvents_Impl::OnLtxTransactionPrepare(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidltx), core::mem::transmute_copy(&fvote)).into() } - unsafe extern "system" fn OnLtxTransactionAbort(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComLTxEvents_Impl, - { + unsafe extern "system" fn OnLtxTransactionAbort(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComLTxEvents_Impl::OnLtxTransactionAbort(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidltx)).into() } - unsafe extern "system" fn OnLtxTransactionCommit(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComLTxEvents_Impl, - { + unsafe extern "system" fn OnLtxTransactionCommit(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComLTxEvents_Impl::OnLtxTransactionCommit(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidltx)).into() } - unsafe extern "system" fn OnLtxTransactionPromote(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, txnid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComLTxEvents_Impl, - { + unsafe extern "system" fn OnLtxTransactionPromote(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, txnid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComLTxEvents_Impl::OnLtxTransactionPromote(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidltx), core::mem::transmute(&txnid)).into() } @@ -1851,35 +1377,23 @@ impl IComLTxEvents_Vtbl { iid == &::IID } } -pub trait IComMethod2Events_Impl: Sized { +pub trait IComMethod2Events_Impl: Sized + windows_core::IUnknownImpl { fn OnMethodCall2(&self, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, dwthread: u32, imeth: u32) -> windows_core::Result<()>; fn OnMethodReturn2(&self, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, dwthread: u32, imeth: u32, hresult: windows_core::HRESULT) -> windows_core::Result<()>; fn OnMethodException2(&self, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, dwthread: u32, imeth: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComMethod2Events {} impl IComMethod2Events_Vtbl { - pub const fn new() -> IComMethod2Events_Vtbl - where - Identity: IComMethod2Events_Impl, - { - unsafe extern "system" fn OnMethodCall2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, dwthread: u32, imeth: u32) -> windows_core::HRESULT - where - Identity: IComMethod2Events_Impl, - { + pub const fn new() -> IComMethod2Events_Vtbl { + unsafe extern "system" fn OnMethodCall2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, dwthread: u32, imeth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComMethod2Events_Impl::OnMethodCall2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&oid), core::mem::transmute_copy(&guidcid), core::mem::transmute_copy(&guidrid), core::mem::transmute_copy(&dwthread), core::mem::transmute_copy(&imeth)).into() } - unsafe extern "system" fn OnMethodReturn2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, dwthread: u32, imeth: u32, hresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IComMethod2Events_Impl, - { + unsafe extern "system" fn OnMethodReturn2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, dwthread: u32, imeth: u32, hresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComMethod2Events_Impl::OnMethodReturn2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&oid), core::mem::transmute_copy(&guidcid), core::mem::transmute_copy(&guidrid), core::mem::transmute_copy(&dwthread), core::mem::transmute_copy(&imeth), core::mem::transmute_copy(&hresult)).into() } - unsafe extern "system" fn OnMethodException2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, dwthread: u32, imeth: u32) -> windows_core::HRESULT - where - Identity: IComMethod2Events_Impl, - { + unsafe extern "system" fn OnMethodException2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, dwthread: u32, imeth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComMethod2Events_Impl::OnMethodException2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&oid), core::mem::transmute_copy(&guidcid), core::mem::transmute_copy(&guidrid), core::mem::transmute_copy(&dwthread), core::mem::transmute_copy(&imeth)).into() } @@ -1894,35 +1408,23 @@ impl IComMethod2Events_Vtbl { iid == &::IID } } -pub trait IComMethodEvents_Impl: Sized { +pub trait IComMethodEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnMethodCall(&self, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32) -> windows_core::Result<()>; fn OnMethodReturn(&self, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32, hresult: windows_core::HRESULT) -> windows_core::Result<()>; fn OnMethodException(&self, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComMethodEvents {} impl IComMethodEvents_Vtbl { - pub const fn new() -> IComMethodEvents_Vtbl - where - Identity: IComMethodEvents_Impl, - { - unsafe extern "system" fn OnMethodCall(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32) -> windows_core::HRESULT - where - Identity: IComMethodEvents_Impl, - { + pub const fn new() -> IComMethodEvents_Vtbl { + unsafe extern "system" fn OnMethodCall(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComMethodEvents_Impl::OnMethodCall(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&oid), core::mem::transmute_copy(&guidcid), core::mem::transmute_copy(&guidrid), core::mem::transmute_copy(&imeth)).into() } - unsafe extern "system" fn OnMethodReturn(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32, hresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IComMethodEvents_Impl, - { + unsafe extern "system" fn OnMethodReturn(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32, hresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComMethodEvents_Impl::OnMethodReturn(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&oid), core::mem::transmute_copy(&guidcid), core::mem::transmute_copy(&guidrid), core::mem::transmute_copy(&imeth), core::mem::transmute_copy(&hresult)).into() } - unsafe extern "system" fn OnMethodException(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32) -> windows_core::HRESULT - where - Identity: IComMethodEvents_Impl, - { + unsafe extern "system" fn OnMethodException(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const windows_core::GUID, guidrid: *const windows_core::GUID, imeth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComMethodEvents_Impl::OnMethodException(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&oid), core::mem::transmute_copy(&guidcid), core::mem::transmute_copy(&guidrid), core::mem::transmute_copy(&imeth)).into() } @@ -1937,7 +1439,7 @@ impl IComMethodEvents_Vtbl { iid == &::IID } } -pub trait IComMtaThreadPoolKnobs_Impl: Sized { +pub trait IComMtaThreadPoolKnobs_Impl: Sized + windows_core::IUnknownImpl { fn MTASetMaxThreadCount(&self, dwmaxthreads: u32) -> windows_core::Result<()>; fn MTAGetMaxThreadCount(&self) -> windows_core::Result; fn MTASetThrottleValue(&self, dwthrottle: u32) -> windows_core::Result<()>; @@ -1945,21 +1447,12 @@ pub trait IComMtaThreadPoolKnobs_Impl: Sized { } impl windows_core::RuntimeName for IComMtaThreadPoolKnobs {} impl IComMtaThreadPoolKnobs_Vtbl { - pub const fn new() -> IComMtaThreadPoolKnobs_Vtbl - where - Identity: IComMtaThreadPoolKnobs_Impl, - { - unsafe extern "system" fn MTASetMaxThreadCount(this: *mut core::ffi::c_void, dwmaxthreads: u32) -> windows_core::HRESULT - where - Identity: IComMtaThreadPoolKnobs_Impl, - { + pub const fn new() -> IComMtaThreadPoolKnobs_Vtbl { + unsafe extern "system" fn MTASetMaxThreadCount(this: *mut core::ffi::c_void, dwmaxthreads: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComMtaThreadPoolKnobs_Impl::MTASetMaxThreadCount(this, core::mem::transmute_copy(&dwmaxthreads)).into() } - unsafe extern "system" fn MTAGetMaxThreadCount(this: *mut core::ffi::c_void, pdwmaxthreads: *mut u32) -> windows_core::HRESULT - where - Identity: IComMtaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn MTAGetMaxThreadCount(this: *mut core::ffi::c_void, pdwmaxthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComMtaThreadPoolKnobs_Impl::MTAGetMaxThreadCount(this) { Ok(ok__) => { @@ -1969,17 +1462,11 @@ impl IComMtaThreadPoolKnobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MTASetThrottleValue(this: *mut core::ffi::c_void, dwthrottle: u32) -> windows_core::HRESULT - where - Identity: IComMtaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn MTASetThrottleValue(this: *mut core::ffi::c_void, dwthrottle: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComMtaThreadPoolKnobs_Impl::MTASetThrottleValue(this, core::mem::transmute_copy(&dwthrottle)).into() } - unsafe extern "system" fn MTAGetThrottleValue(this: *mut core::ffi::c_void, pdwthrottle: *mut u32) -> windows_core::HRESULT - where - Identity: IComMtaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn MTAGetThrottleValue(this: *mut core::ffi::c_void, pdwthrottle: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComMtaThreadPoolKnobs_Impl::MTAGetThrottleValue(this) { Ok(ok__) => { @@ -2001,19 +1488,13 @@ impl IComMtaThreadPoolKnobs_Vtbl { iid == &::IID } } -pub trait IComObjectConstruction2Events_Impl: Sized { +pub trait IComObjectConstruction2Events_Impl: Sized + windows_core::IUnknownImpl { fn OnObjectConstruct2(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, sconstructstring: &windows_core::PCWSTR, oid: u64, guidpartition: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComObjectConstruction2Events {} impl IComObjectConstruction2Events_Vtbl { - pub const fn new() -> IComObjectConstruction2Events_Vtbl - where - Identity: IComObjectConstruction2Events_Impl, - { - unsafe extern "system" fn OnObjectConstruct2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, sconstructstring: windows_core::PCWSTR, oid: u64, guidpartition: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComObjectConstruction2Events_Impl, - { + pub const fn new() -> IComObjectConstruction2Events_Vtbl { + unsafe extern "system" fn OnObjectConstruct2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, sconstructstring: windows_core::PCWSTR, oid: u64, guidpartition: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectConstruction2Events_Impl::OnObjectConstruct2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidobject), core::mem::transmute(&sconstructstring), core::mem::transmute_copy(&oid), core::mem::transmute_copy(&guidpartition)).into() } @@ -2023,19 +1504,13 @@ impl IComObjectConstruction2Events_Vtbl { iid == &::IID } } -pub trait IComObjectConstructionEvents_Impl: Sized { +pub trait IComObjectConstructionEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnObjectConstruct(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, sconstructstring: &windows_core::PCWSTR, oid: u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComObjectConstructionEvents {} impl IComObjectConstructionEvents_Vtbl { - pub const fn new() -> IComObjectConstructionEvents_Vtbl - where - Identity: IComObjectConstructionEvents_Impl, - { - unsafe extern "system" fn OnObjectConstruct(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, sconstructstring: windows_core::PCWSTR, oid: u64) -> windows_core::HRESULT - where - Identity: IComObjectConstructionEvents_Impl, - { + pub const fn new() -> IComObjectConstructionEvents_Vtbl { + unsafe extern "system" fn OnObjectConstruct(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, sconstructstring: windows_core::PCWSTR, oid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectConstructionEvents_Impl::OnObjectConstruct(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidobject), core::mem::transmute(&sconstructstring), core::mem::transmute_copy(&oid)).into() } @@ -2045,7 +1520,7 @@ impl IComObjectConstructionEvents_Vtbl { iid == &::IID } } -pub trait IComObjectEvents_Impl: Sized { +pub trait IComObjectEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnObjectActivate(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64, objectid: u64) -> windows_core::Result<()>; fn OnObjectDeactivate(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64, objectid: u64) -> windows_core::Result<()>; fn OnDisableCommit(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::Result<()>; @@ -2055,49 +1530,28 @@ pub trait IComObjectEvents_Impl: Sized { } impl windows_core::RuntimeName for IComObjectEvents {} impl IComObjectEvents_Vtbl { - pub const fn new() -> IComObjectEvents_Vtbl - where - Identity: IComObjectEvents_Impl, - { - unsafe extern "system" fn OnObjectActivate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64, objectid: u64) -> windows_core::HRESULT - where - Identity: IComObjectEvents_Impl, - { + pub const fn new() -> IComObjectEvents_Vtbl { + unsafe extern "system" fn OnObjectActivate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64, objectid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectEvents_Impl::OnObjectActivate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&ctxtid), core::mem::transmute_copy(&objectid)).into() } - unsafe extern "system" fn OnObjectDeactivate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64, objectid: u64) -> windows_core::HRESULT - where - Identity: IComObjectEvents_Impl, - { + unsafe extern "system" fn OnObjectDeactivate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64, objectid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectEvents_Impl::OnObjectDeactivate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&ctxtid), core::mem::transmute_copy(&objectid)).into() } - unsafe extern "system" fn OnDisableCommit(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT - where - Identity: IComObjectEvents_Impl, - { + unsafe extern "system" fn OnDisableCommit(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectEvents_Impl::OnDisableCommit(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&ctxtid)).into() } - unsafe extern "system" fn OnEnableCommit(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT - where - Identity: IComObjectEvents_Impl, - { + unsafe extern "system" fn OnEnableCommit(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectEvents_Impl::OnEnableCommit(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&ctxtid)).into() } - unsafe extern "system" fn OnSetComplete(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT - where - Identity: IComObjectEvents_Impl, - { + unsafe extern "system" fn OnSetComplete(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectEvents_Impl::OnSetComplete(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&ctxtid)).into() } - unsafe extern "system" fn OnSetAbort(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT - where - Identity: IComObjectEvents_Impl, - { + unsafe extern "system" fn OnSetAbort(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectEvents_Impl::OnSetAbort(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&ctxtid)).into() } @@ -2115,7 +1569,7 @@ impl IComObjectEvents_Vtbl { iid == &::IID } } -pub trait IComObjectPool2Events_Impl: Sized { +pub trait IComObjectPool2Events_Impl: Sized + windows_core::IUnknownImpl { fn OnObjPoolPutObject2(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, nreason: i32, dwavailable: u32, oid: u64) -> windows_core::Result<()>; fn OnObjPoolGetObject2(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, dwavailable: u32, oid: u64, guidpartition: *const windows_core::GUID) -> windows_core::Result<()>; fn OnObjPoolRecycleToTx2(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64) -> windows_core::Result<()>; @@ -2123,35 +1577,20 @@ pub trait IComObjectPool2Events_Impl: Sized { } impl windows_core::RuntimeName for IComObjectPool2Events {} impl IComObjectPool2Events_Vtbl { - pub const fn new() -> IComObjectPool2Events_Vtbl - where - Identity: IComObjectPool2Events_Impl, - { - unsafe extern "system" fn OnObjPoolPutObject2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, nreason: i32, dwavailable: u32, oid: u64) -> windows_core::HRESULT - where - Identity: IComObjectPool2Events_Impl, - { + pub const fn new() -> IComObjectPool2Events_Vtbl { + unsafe extern "system" fn OnObjPoolPutObject2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, nreason: i32, dwavailable: u32, oid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPool2Events_Impl::OnObjPoolPutObject2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&nreason), core::mem::transmute_copy(&dwavailable), core::mem::transmute_copy(&oid)).into() } - unsafe extern "system" fn OnObjPoolGetObject2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, dwavailable: u32, oid: u64, guidpartition: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComObjectPool2Events_Impl, - { + unsafe extern "system" fn OnObjPoolGetObject2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, dwavailable: u32, oid: u64, guidpartition: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPool2Events_Impl::OnObjPoolGetObject2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&dwavailable), core::mem::transmute_copy(&oid), core::mem::transmute_copy(&guidpartition)).into() } - unsafe extern "system" fn OnObjPoolRecycleToTx2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64) -> windows_core::HRESULT - where - Identity: IComObjectPool2Events_Impl, - { + unsafe extern "system" fn OnObjPoolRecycleToTx2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPool2Events_Impl::OnObjPoolRecycleToTx2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&objid)).into() } - unsafe extern "system" fn OnObjPoolGetFromTx2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64, guidpartition: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComObjectPool2Events_Impl, - { + unsafe extern "system" fn OnObjPoolGetFromTx2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64, guidpartition: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPool2Events_Impl::OnObjPoolGetFromTx2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&objid), core::mem::transmute_copy(&guidpartition)).into() } @@ -2167,7 +1606,7 @@ impl IComObjectPool2Events_Vtbl { iid == &::IID } } -pub trait IComObjectPoolEvents_Impl: Sized { +pub trait IComObjectPoolEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnObjPoolPutObject(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, nreason: i32, dwavailable: u32, oid: u64) -> windows_core::Result<()>; fn OnObjPoolGetObject(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, dwavailable: u32, oid: u64) -> windows_core::Result<()>; fn OnObjPoolRecycleToTx(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64) -> windows_core::Result<()>; @@ -2175,35 +1614,20 @@ pub trait IComObjectPoolEvents_Impl: Sized { } impl windows_core::RuntimeName for IComObjectPoolEvents {} impl IComObjectPoolEvents_Vtbl { - pub const fn new() -> IComObjectPoolEvents_Vtbl - where - Identity: IComObjectPoolEvents_Impl, - { - unsafe extern "system" fn OnObjPoolPutObject(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, nreason: i32, dwavailable: u32, oid: u64) -> windows_core::HRESULT - where - Identity: IComObjectPoolEvents_Impl, - { + pub const fn new() -> IComObjectPoolEvents_Vtbl { + unsafe extern "system" fn OnObjPoolPutObject(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, nreason: i32, dwavailable: u32, oid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPoolEvents_Impl::OnObjPoolPutObject(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&nreason), core::mem::transmute_copy(&dwavailable), core::mem::transmute_copy(&oid)).into() } - unsafe extern "system" fn OnObjPoolGetObject(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, dwavailable: u32, oid: u64) -> windows_core::HRESULT - where - Identity: IComObjectPoolEvents_Impl, - { + unsafe extern "system" fn OnObjPoolGetObject(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, dwavailable: u32, oid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPoolEvents_Impl::OnObjPoolGetObject(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&dwavailable), core::mem::transmute_copy(&oid)).into() } - unsafe extern "system" fn OnObjPoolRecycleToTx(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64) -> windows_core::HRESULT - where - Identity: IComObjectPoolEvents_Impl, - { + unsafe extern "system" fn OnObjPoolRecycleToTx(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPoolEvents_Impl::OnObjPoolRecycleToTx(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&objid)).into() } - unsafe extern "system" fn OnObjPoolGetFromTx(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64) -> windows_core::HRESULT - where - Identity: IComObjectPoolEvents_Impl, - { + unsafe extern "system" fn OnObjPoolGetFromTx(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, guidobject: *const windows_core::GUID, guidtx: *const windows_core::GUID, objid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPoolEvents_Impl::OnObjPoolGetFromTx(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&objid)).into() } @@ -2219,7 +1643,7 @@ impl IComObjectPoolEvents_Vtbl { iid == &::IID } } -pub trait IComObjectPoolEvents2_Impl: Sized { +pub trait IComObjectPoolEvents2_Impl: Sized + windows_core::IUnknownImpl { fn OnObjPoolCreateObject(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwobjscreated: u32, oid: u64) -> windows_core::Result<()>; fn OnObjPoolDestroyObject(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwobjscreated: u32, oid: u64) -> windows_core::Result<()>; fn OnObjPoolCreateDecision(&self, pinfo: *const COMSVCSEVENTINFO, dwthreadswaiting: u32, dwavail: u32, dwcreated: u32, dwmin: u32, dwmax: u32) -> windows_core::Result<()>; @@ -2228,42 +1652,24 @@ pub trait IComObjectPoolEvents2_Impl: Sized { } impl windows_core::RuntimeName for IComObjectPoolEvents2 {} impl IComObjectPoolEvents2_Vtbl { - pub const fn new() -> IComObjectPoolEvents2_Vtbl - where - Identity: IComObjectPoolEvents2_Impl, - { - unsafe extern "system" fn OnObjPoolCreateObject(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwobjscreated: u32, oid: u64) -> windows_core::HRESULT - where - Identity: IComObjectPoolEvents2_Impl, - { + pub const fn new() -> IComObjectPoolEvents2_Vtbl { + unsafe extern "system" fn OnObjPoolCreateObject(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwobjscreated: u32, oid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPoolEvents2_Impl::OnObjPoolCreateObject(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&dwobjscreated), core::mem::transmute_copy(&oid)).into() } - unsafe extern "system" fn OnObjPoolDestroyObject(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwobjscreated: u32, oid: u64) -> windows_core::HRESULT - where - Identity: IComObjectPoolEvents2_Impl, - { + unsafe extern "system" fn OnObjPoolDestroyObject(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwobjscreated: u32, oid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPoolEvents2_Impl::OnObjPoolDestroyObject(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&dwobjscreated), core::mem::transmute_copy(&oid)).into() } - unsafe extern "system" fn OnObjPoolCreateDecision(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, dwthreadswaiting: u32, dwavail: u32, dwcreated: u32, dwmin: u32, dwmax: u32) -> windows_core::HRESULT - where - Identity: IComObjectPoolEvents2_Impl, - { + unsafe extern "system" fn OnObjPoolCreateDecision(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, dwthreadswaiting: u32, dwavail: u32, dwcreated: u32, dwmin: u32, dwmax: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPoolEvents2_Impl::OnObjPoolCreateDecision(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&dwthreadswaiting), core::mem::transmute_copy(&dwavail), core::mem::transmute_copy(&dwcreated), core::mem::transmute_copy(&dwmin), core::mem::transmute_copy(&dwmax)).into() } - unsafe extern "system" fn OnObjPoolTimeout(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, guidactivity: *const windows_core::GUID, dwtimeout: u32) -> windows_core::HRESULT - where - Identity: IComObjectPoolEvents2_Impl, - { + unsafe extern "system" fn OnObjPoolTimeout(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, guidactivity: *const windows_core::GUID, dwtimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPoolEvents2_Impl::OnObjPoolTimeout(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&dwtimeout)).into() } - unsafe extern "system" fn OnObjPoolCreatePool(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwmin: u32, dwmax: u32, dwtimeout: u32) -> windows_core::HRESULT - where - Identity: IComObjectPoolEvents2_Impl, - { + unsafe extern "system" fn OnObjPoolCreatePool(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const windows_core::GUID, dwmin: u32, dwmax: u32, dwtimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComObjectPoolEvents2_Impl::OnObjPoolCreatePool(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&dwmin), core::mem::transmute_copy(&dwmax), core::mem::transmute_copy(&dwtimeout)).into() } @@ -2280,7 +1686,7 @@ impl IComObjectPoolEvents2_Vtbl { iid == &::IID } } -pub trait IComQCEvents_Impl: Sized { +pub trait IComQCEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnQCRecord(&self, pinfo: *const COMSVCSEVENTINFO, objid: u64, szqueue: &windows_core::PCWSTR, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, msmqhr: windows_core::HRESULT) -> windows_core::Result<()>; fn OnQCQueueOpen(&self, pinfo: *const COMSVCSEVENTINFO, szqueue: &windows_core::PCWSTR, queueid: u64, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn OnQCReceive(&self, pinfo: *const COMSVCSEVENTINFO, queueid: u64, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, hr: windows_core::HRESULT) -> windows_core::Result<()>; @@ -2291,56 +1697,32 @@ pub trait IComQCEvents_Impl: Sized { } impl windows_core::RuntimeName for IComQCEvents {} impl IComQCEvents_Vtbl { - pub const fn new() -> IComQCEvents_Vtbl - where - Identity: IComQCEvents_Impl, - { - unsafe extern "system" fn OnQCRecord(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objid: u64, szqueue: windows_core::PCWSTR, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, msmqhr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IComQCEvents_Impl, - { + pub const fn new() -> IComQCEvents_Vtbl { + unsafe extern "system" fn OnQCRecord(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objid: u64, szqueue: windows_core::PCWSTR, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, msmqhr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComQCEvents_Impl::OnQCRecord(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objid), core::mem::transmute(&szqueue), core::mem::transmute_copy(&guidmsgid), core::mem::transmute_copy(&guidworkflowid), core::mem::transmute_copy(&msmqhr)).into() } - unsafe extern "system" fn OnQCQueueOpen(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, szqueue: windows_core::PCWSTR, queueid: u64, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IComQCEvents_Impl, - { + unsafe extern "system" fn OnQCQueueOpen(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, szqueue: windows_core::PCWSTR, queueid: u64, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComQCEvents_Impl::OnQCQueueOpen(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&szqueue), core::mem::transmute_copy(&queueid), core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn OnQCReceive(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, queueid: u64, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IComQCEvents_Impl, - { + unsafe extern "system" fn OnQCReceive(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, queueid: u64, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComQCEvents_Impl::OnQCReceive(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&queueid), core::mem::transmute_copy(&guidmsgid), core::mem::transmute_copy(&guidworkflowid), core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn OnQCReceiveFail(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, queueid: u64, msmqhr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IComQCEvents_Impl, - { + unsafe extern "system" fn OnQCReceiveFail(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, queueid: u64, msmqhr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComQCEvents_Impl::OnQCReceiveFail(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&queueid), core::mem::transmute_copy(&msmqhr)).into() } - unsafe extern "system" fn OnQCMoveToReTryQueue(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, retryindex: u32) -> windows_core::HRESULT - where - Identity: IComQCEvents_Impl, - { + unsafe extern "system" fn OnQCMoveToReTryQueue(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, retryindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComQCEvents_Impl::OnQCMoveToReTryQueue(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidmsgid), core::mem::transmute_copy(&guidworkflowid), core::mem::transmute_copy(&retryindex)).into() } - unsafe extern "system" fn OnQCMoveToDeadQueue(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComQCEvents_Impl, - { + unsafe extern "system" fn OnQCMoveToDeadQueue(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComQCEvents_Impl::OnQCMoveToDeadQueue(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidmsgid), core::mem::transmute_copy(&guidworkflowid)).into() } - unsafe extern "system" fn OnQCPlayback(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objid: u64, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IComQCEvents_Impl, - { + unsafe extern "system" fn OnQCPlayback(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objid: u64, guidmsgid: *const windows_core::GUID, guidworkflowid: *const windows_core::GUID, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComQCEvents_Impl::OnQCPlayback(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objid), core::mem::transmute_copy(&guidmsgid), core::mem::transmute_copy(&guidworkflowid), core::mem::transmute_copy(&hr)).into() } @@ -2359,7 +1741,7 @@ impl IComQCEvents_Vtbl { iid == &::IID } } -pub trait IComResourceEvents_Impl: Sized { +pub trait IComResourceEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnResourceCreate(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: &windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn OnResourceAllocate(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: &windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL, numrated: u32, rating: u32) -> windows_core::Result<()>; fn OnResourceRecycle(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: &windows_core::PCWSTR, resid: u64) -> windows_core::Result<()>; @@ -2368,42 +1750,24 @@ pub trait IComResourceEvents_Impl: Sized { } impl windows_core::RuntimeName for IComResourceEvents {} impl IComResourceEvents_Vtbl { - pub const fn new() -> IComResourceEvents_Vtbl - where - Identity: IComResourceEvents_Impl, - { - unsafe extern "system" fn OnResourceCreate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComResourceEvents_Impl, - { + pub const fn new() -> IComResourceEvents_Vtbl { + unsafe extern "system" fn OnResourceCreate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComResourceEvents_Impl::OnResourceCreate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objectid), core::mem::transmute(&psztype), core::mem::transmute_copy(&resid), core::mem::transmute_copy(&enlisted)).into() } - unsafe extern "system" fn OnResourceAllocate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL, numrated: u32, rating: u32) -> windows_core::HRESULT - where - Identity: IComResourceEvents_Impl, - { + unsafe extern "system" fn OnResourceAllocate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL, numrated: u32, rating: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComResourceEvents_Impl::OnResourceAllocate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objectid), core::mem::transmute(&psztype), core::mem::transmute_copy(&resid), core::mem::transmute_copy(&enlisted), core::mem::transmute_copy(&numrated), core::mem::transmute_copy(&rating)).into() } - unsafe extern "system" fn OnResourceRecycle(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64) -> windows_core::HRESULT - where - Identity: IComResourceEvents_Impl, - { + unsafe extern "system" fn OnResourceRecycle(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComResourceEvents_Impl::OnResourceRecycle(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objectid), core::mem::transmute(&psztype), core::mem::transmute_copy(&resid)).into() } - unsafe extern "system" fn OnResourceDestroy(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, hr: windows_core::HRESULT, psztype: windows_core::PCWSTR, resid: u64) -> windows_core::HRESULT - where - Identity: IComResourceEvents_Impl, - { + unsafe extern "system" fn OnResourceDestroy(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, hr: windows_core::HRESULT, psztype: windows_core::PCWSTR, resid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComResourceEvents_Impl::OnResourceDestroy(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&hr), core::mem::transmute(&psztype), core::mem::transmute_copy(&resid)).into() } - unsafe extern "system" fn OnResourceTrack(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComResourceEvents_Impl, - { + unsafe extern "system" fn OnResourceTrack(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComResourceEvents_Impl::OnResourceTrack(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objectid), core::mem::transmute(&psztype), core::mem::transmute_copy(&resid), core::mem::transmute_copy(&enlisted)).into() } @@ -2420,27 +1784,18 @@ impl IComResourceEvents_Vtbl { iid == &::IID } } -pub trait IComSecurityEvents_Impl: Sized { +pub trait IComSecurityEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnAuthenticate(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn OnAuthenticateFail(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComSecurityEvents {} impl IComSecurityEvents_Vtbl { - pub const fn new() -> IComSecurityEvents_Vtbl - where - Identity: IComSecurityEvents_Impl, - { - unsafe extern "system" fn OnAuthenticate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComSecurityEvents_Impl, - { + pub const fn new() -> IComSecurityEvents_Vtbl { + unsafe extern "system" fn OnAuthenticate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComSecurityEvents_Impl::OnAuthenticate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&guidiid), core::mem::transmute_copy(&imeth), core::mem::transmute_copy(&cbbyteorig), core::mem::transmute_copy(&psidoriginaluser), core::mem::transmute_copy(&cbbytecur), core::mem::transmute_copy(&psidcurrentuser), core::mem::transmute_copy(&bcurrentuserinpersonatinginproc)).into() } - unsafe extern "system" fn OnAuthenticateFail(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComSecurityEvents_Impl, - { + unsafe extern "system" fn OnAuthenticateFail(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComSecurityEvents_Impl::OnAuthenticateFail(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&guidiid), core::mem::transmute_copy(&imeth), core::mem::transmute_copy(&cbbyteorig), core::mem::transmute_copy(&psidoriginaluser), core::mem::transmute_copy(&cbbytecur), core::mem::transmute_copy(&psidcurrentuser), core::mem::transmute_copy(&bcurrentuserinpersonatinginproc)).into() } @@ -2454,7 +1809,7 @@ impl IComSecurityEvents_Vtbl { iid == &::IID } } -pub trait IComStaThreadPoolKnobs_Impl: Sized { +pub trait IComStaThreadPoolKnobs_Impl: Sized + windows_core::IUnknownImpl { fn SetMinThreadCount(&self, minthreads: u32) -> windows_core::Result<()>; fn GetMinThreadCount(&self) -> windows_core::Result; fn SetMaxThreadCount(&self, maxthreads: u32) -> windows_core::Result<()>; @@ -2469,21 +1824,12 @@ pub trait IComStaThreadPoolKnobs_Impl: Sized { } impl windows_core::RuntimeName for IComStaThreadPoolKnobs {} impl IComStaThreadPoolKnobs_Vtbl { - pub const fn new() -> IComStaThreadPoolKnobs_Vtbl - where - Identity: IComStaThreadPoolKnobs_Impl, - { - unsafe extern "system" fn SetMinThreadCount(this: *mut core::ffi::c_void, minthreads: u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + pub const fn new() -> IComStaThreadPoolKnobs_Vtbl { + unsafe extern "system" fn SetMinThreadCount(this: *mut core::ffi::c_void, minthreads: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs_Impl::SetMinThreadCount(this, core::mem::transmute_copy(&minthreads)).into() } - unsafe extern "system" fn GetMinThreadCount(this: *mut core::ffi::c_void, minthreads: *mut u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn GetMinThreadCount(this: *mut core::ffi::c_void, minthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs_Impl::GetMinThreadCount(this) { Ok(ok__) => { @@ -2493,17 +1839,11 @@ impl IComStaThreadPoolKnobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxThreadCount(this: *mut core::ffi::c_void, maxthreads: u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn SetMaxThreadCount(this: *mut core::ffi::c_void, maxthreads: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs_Impl::SetMaxThreadCount(this, core::mem::transmute_copy(&maxthreads)).into() } - unsafe extern "system" fn GetMaxThreadCount(this: *mut core::ffi::c_void, maxthreads: *mut u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn GetMaxThreadCount(this: *mut core::ffi::c_void, maxthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs_Impl::GetMaxThreadCount(this) { Ok(ok__) => { @@ -2513,17 +1853,11 @@ impl IComStaThreadPoolKnobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActivityPerThread(this: *mut core::ffi::c_void, activitiesperthread: u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn SetActivityPerThread(this: *mut core::ffi::c_void, activitiesperthread: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs_Impl::SetActivityPerThread(this, core::mem::transmute_copy(&activitiesperthread)).into() } - unsafe extern "system" fn GetActivityPerThread(this: *mut core::ffi::c_void, activitiesperthread: *mut u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn GetActivityPerThread(this: *mut core::ffi::c_void, activitiesperthread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs_Impl::GetActivityPerThread(this) { Ok(ok__) => { @@ -2533,17 +1867,11 @@ impl IComStaThreadPoolKnobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActivityRatio(this: *mut core::ffi::c_void, activityratio: f64) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn SetActivityRatio(this: *mut core::ffi::c_void, activityratio: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs_Impl::SetActivityRatio(this, core::mem::transmute_copy(&activityratio)).into() } - unsafe extern "system" fn GetActivityRatio(this: *mut core::ffi::c_void, activityratio: *mut f64) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn GetActivityRatio(this: *mut core::ffi::c_void, activityratio: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs_Impl::GetActivityRatio(this) { Ok(ok__) => { @@ -2553,10 +1881,7 @@ impl IComStaThreadPoolKnobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadCount(this: *mut core::ffi::c_void, pdwthreads: *mut u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn GetThreadCount(this: *mut core::ffi::c_void, pdwthreads: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs_Impl::GetThreadCount(this) { Ok(ok__) => { @@ -2566,10 +1891,7 @@ impl IComStaThreadPoolKnobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQueueDepth(this: *mut core::ffi::c_void, pdwqdepth: *mut u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn GetQueueDepth(this: *mut core::ffi::c_void, pdwqdepth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs_Impl::GetQueueDepth(this) { Ok(ok__) => { @@ -2579,10 +1901,7 @@ impl IComStaThreadPoolKnobs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQueueDepth(this: *mut core::ffi::c_void, dwqdepth: i32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs_Impl, - { + unsafe extern "system" fn SetQueueDepth(this: *mut core::ffi::c_void, dwqdepth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs_Impl::SetQueueDepth(this, core::mem::transmute_copy(&dwqdepth)).into() } @@ -2619,14 +1938,8 @@ pub trait IComStaThreadPoolKnobs2_Impl: Sized + IComStaThreadPoolKnobs_Impl { } impl windows_core::RuntimeName for IComStaThreadPoolKnobs2 {} impl IComStaThreadPoolKnobs2_Vtbl { - pub const fn new() -> IComStaThreadPoolKnobs2_Vtbl - where - Identity: IComStaThreadPoolKnobs2_Impl, - { - unsafe extern "system" fn GetMaxCPULoad(this: *mut core::ffi::c_void, pdwload: *mut u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs2_Impl, - { + pub const fn new() -> IComStaThreadPoolKnobs2_Vtbl { + unsafe extern "system" fn GetMaxCPULoad(this: *mut core::ffi::c_void, pdwload: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs2_Impl::GetMaxCPULoad(this) { Ok(ok__) => { @@ -2636,17 +1949,11 @@ impl IComStaThreadPoolKnobs2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxCPULoad(this: *mut core::ffi::c_void, pdwload: i32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs2_Impl, - { + unsafe extern "system" fn SetMaxCPULoad(this: *mut core::ffi::c_void, pdwload: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs2_Impl::SetMaxCPULoad(this, core::mem::transmute_copy(&pdwload)).into() } - unsafe extern "system" fn GetCPUMetricEnabled(this: *mut core::ffi::c_void, pbmetricenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs2_Impl, - { + unsafe extern "system" fn GetCPUMetricEnabled(this: *mut core::ffi::c_void, pbmetricenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs2_Impl::GetCPUMetricEnabled(this) { Ok(ok__) => { @@ -2656,17 +1963,11 @@ impl IComStaThreadPoolKnobs2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCPUMetricEnabled(this: *mut core::ffi::c_void, bmetricenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs2_Impl, - { + unsafe extern "system" fn SetCPUMetricEnabled(this: *mut core::ffi::c_void, bmetricenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs2_Impl::SetCPUMetricEnabled(this, core::mem::transmute_copy(&bmetricenabled)).into() } - unsafe extern "system" fn GetCreateThreadsAggressively(this: *mut core::ffi::c_void, pbmetricenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs2_Impl, - { + unsafe extern "system" fn GetCreateThreadsAggressively(this: *mut core::ffi::c_void, pbmetricenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs2_Impl::GetCreateThreadsAggressively(this) { Ok(ok__) => { @@ -2676,17 +1977,11 @@ impl IComStaThreadPoolKnobs2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCreateThreadsAggressively(this: *mut core::ffi::c_void, bmetricenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs2_Impl, - { + unsafe extern "system" fn SetCreateThreadsAggressively(this: *mut core::ffi::c_void, bmetricenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs2_Impl::SetCreateThreadsAggressively(this, core::mem::transmute_copy(&bmetricenabled)).into() } - unsafe extern "system" fn GetMaxCSR(this: *mut core::ffi::c_void, pdwcsr: *mut u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs2_Impl, - { + unsafe extern "system" fn GetMaxCSR(this: *mut core::ffi::c_void, pdwcsr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs2_Impl::GetMaxCSR(this) { Ok(ok__) => { @@ -2696,17 +1991,11 @@ impl IComStaThreadPoolKnobs2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxCSR(this: *mut core::ffi::c_void, dwcsr: i32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs2_Impl, - { + unsafe extern "system" fn SetMaxCSR(this: *mut core::ffi::c_void, dwcsr: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs2_Impl::SetMaxCSR(this, core::mem::transmute_copy(&dwcsr)).into() } - unsafe extern "system" fn GetWaitTimeForThreadCleanup(this: *mut core::ffi::c_void, pdwthreadcleanupwaittime: *mut u32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs2_Impl, - { + unsafe extern "system" fn GetWaitTimeForThreadCleanup(this: *mut core::ffi::c_void, pdwthreadcleanupwaittime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs2_Impl::GetWaitTimeForThreadCleanup(this) { Ok(ok__) => { @@ -2716,10 +2005,7 @@ impl IComStaThreadPoolKnobs2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWaitTimeForThreadCleanup(this: *mut core::ffi::c_void, dwthreadcleanupwaittime: i32) -> windows_core::HRESULT - where - Identity: IComStaThreadPoolKnobs2_Impl, - { + unsafe extern "system" fn SetWaitTimeForThreadCleanup(this: *mut core::ffi::c_void, dwthreadcleanupwaittime: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs2_Impl::SetWaitTimeForThreadCleanup(this, core::mem::transmute_copy(&dwthreadcleanupwaittime)).into() } @@ -2741,7 +2027,7 @@ impl IComStaThreadPoolKnobs2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IComThreadEvents_Impl: Sized { +pub trait IComThreadEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnThreadStart(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, dwthread: u32, dwtheadcnt: u32) -> windows_core::Result<()>; fn OnThreadTerminate(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, dwthread: u32, dwtheadcnt: u32) -> windows_core::Result<()>; fn OnThreadBindToApartment(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, aptid: u64, dwactcnt: u32, dwlowcnt: u32) -> windows_core::Result<()>; @@ -2756,84 +2042,48 @@ pub trait IComThreadEvents_Impl: Sized { } impl windows_core::RuntimeName for IComThreadEvents {} impl IComThreadEvents_Vtbl { - pub const fn new() -> IComThreadEvents_Vtbl - where - Identity: IComThreadEvents_Impl, - { - unsafe extern "system" fn OnThreadStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, dwthread: u32, dwtheadcnt: u32) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + pub const fn new() -> IComThreadEvents_Vtbl { + unsafe extern "system" fn OnThreadStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, dwthread: u32, dwtheadcnt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadStart(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&dwthread), core::mem::transmute_copy(&dwtheadcnt)).into() } - unsafe extern "system" fn OnThreadTerminate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, dwthread: u32, dwtheadcnt: u32) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + unsafe extern "system" fn OnThreadTerminate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, dwthread: u32, dwtheadcnt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadTerminate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&dwthread), core::mem::transmute_copy(&dwtheadcnt)).into() } - unsafe extern "system" fn OnThreadBindToApartment(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, aptid: u64, dwactcnt: u32, dwlowcnt: u32) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + unsafe extern "system" fn OnThreadBindToApartment(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, aptid: u64, dwactcnt: u32, dwlowcnt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadBindToApartment(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&aptid), core::mem::transmute_copy(&dwactcnt), core::mem::transmute_copy(&dwlowcnt)).into() } - unsafe extern "system" fn OnThreadUnBind(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, aptid: u64, dwactcnt: u32) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + unsafe extern "system" fn OnThreadUnBind(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, aptid: u64, dwactcnt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadUnBind(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&aptid), core::mem::transmute_copy(&dwactcnt)).into() } - unsafe extern "system" fn OnThreadWorkEnque(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + unsafe extern "system" fn OnThreadWorkEnque(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadWorkEnque(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&msgworkid), core::mem::transmute_copy(&queuelen)).into() } - unsafe extern "system" fn OnThreadWorkPrivate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + unsafe extern "system" fn OnThreadWorkPrivate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadWorkPrivate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&msgworkid)).into() } - unsafe extern "system" fn OnThreadWorkPublic(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + unsafe extern "system" fn OnThreadWorkPublic(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadWorkPublic(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&msgworkid), core::mem::transmute_copy(&queuelen)).into() } - unsafe extern "system" fn OnThreadWorkRedirect(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32, threadnum: u64) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + unsafe extern "system" fn OnThreadWorkRedirect(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32, threadnum: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadWorkRedirect(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&msgworkid), core::mem::transmute_copy(&queuelen), core::mem::transmute_copy(&threadnum)).into() } - unsafe extern "system" fn OnThreadWorkReject(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + unsafe extern "system" fn OnThreadWorkReject(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, threadid: u64, msgworkid: u64, queuelen: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadWorkReject(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&msgworkid), core::mem::transmute_copy(&queuelen)).into() } - unsafe extern "system" fn OnThreadAssignApartment(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, aptid: u64) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + unsafe extern "system" fn OnThreadAssignApartment(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, aptid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadAssignApartment(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&aptid)).into() } - unsafe extern "system" fn OnThreadUnassignApartment(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, aptid: u64) -> windows_core::HRESULT - where - Identity: IComThreadEvents_Impl, - { + unsafe extern "system" fn OnThreadUnassignApartment(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, aptid: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComThreadEvents_Impl::OnThreadUnassignApartment(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&aptid)).into() } @@ -2856,21 +2106,15 @@ impl IComThreadEvents_Vtbl { iid == &::IID } } -pub trait IComTrackingInfoCollection_Impl: Sized { +pub trait IComTrackingInfoCollection_Impl: Sized + windows_core::IUnknownImpl { fn Type(&self) -> windows_core::Result; fn Count(&self) -> windows_core::Result; fn Item(&self, ulindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComTrackingInfoCollection {} impl IComTrackingInfoCollection_Vtbl { - pub const fn new() -> IComTrackingInfoCollection_Vtbl - where - Identity: IComTrackingInfoCollection_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut TRACKING_COLL_TYPE) -> windows_core::HRESULT - where - Identity: IComTrackingInfoCollection_Impl, - { + pub const fn new() -> IComTrackingInfoCollection_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut TRACKING_COLL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComTrackingInfoCollection_Impl::Type(this) { Ok(ok__) => { @@ -2880,10 +2124,7 @@ impl IComTrackingInfoCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IComTrackingInfoCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComTrackingInfoCollection_Impl::Count(this) { Ok(ok__) => { @@ -2893,10 +2134,7 @@ impl IComTrackingInfoCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, ulindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComTrackingInfoCollection_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, ulindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTrackingInfoCollection_Impl::Item(this, core::mem::transmute_copy(&ulindex), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -2911,19 +2149,13 @@ impl IComTrackingInfoCollection_Vtbl { iid == &::IID } } -pub trait IComTrackingInfoEvents_Impl: Sized { +pub trait IComTrackingInfoEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnNewTrackingInfo(&self, ptoplevelcollection: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComTrackingInfoEvents {} impl IComTrackingInfoEvents_Vtbl { - pub const fn new() -> IComTrackingInfoEvents_Vtbl - where - Identity: IComTrackingInfoEvents_Impl, - { - unsafe extern "system" fn OnNewTrackingInfo(this: *mut core::ffi::c_void, ptoplevelcollection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComTrackingInfoEvents_Impl, - { + pub const fn new() -> IComTrackingInfoEvents_Vtbl { + unsafe extern "system" fn OnNewTrackingInfo(this: *mut core::ffi::c_void, ptoplevelcollection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTrackingInfoEvents_Impl::OnNewTrackingInfo(this, windows_core::from_raw_borrowed(&ptoplevelcollection)).into() } @@ -2933,19 +2165,13 @@ impl IComTrackingInfoEvents_Vtbl { iid == &::IID } } -pub trait IComTrackingInfoObject_Impl: Sized { +pub trait IComTrackingInfoObject_Impl: Sized + windows_core::IUnknownImpl { fn GetValue(&self, szpropertyname: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IComTrackingInfoObject {} impl IComTrackingInfoObject_Vtbl { - pub const fn new() -> IComTrackingInfoObject_Vtbl - where - Identity: IComTrackingInfoObject_Impl, - { - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, szpropertyname: windows_core::PCWSTR, pvarout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComTrackingInfoObject_Impl, - { + pub const fn new() -> IComTrackingInfoObject_Vtbl { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, szpropertyname: windows_core::PCWSTR, pvarout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComTrackingInfoObject_Impl::GetValue(this, core::mem::transmute(&szpropertyname)) { Ok(ok__) => { @@ -2961,20 +2187,14 @@ impl IComTrackingInfoObject_Vtbl { iid == &::IID } } -pub trait IComTrackingInfoProperties_Impl: Sized { +pub trait IComTrackingInfoProperties_Impl: Sized + windows_core::IUnknownImpl { fn PropCount(&self) -> windows_core::Result; fn GetPropName(&self, ulindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IComTrackingInfoProperties {} impl IComTrackingInfoProperties_Vtbl { - pub const fn new() -> IComTrackingInfoProperties_Vtbl - where - Identity: IComTrackingInfoProperties_Impl, - { - unsafe extern "system" fn PropCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IComTrackingInfoProperties_Impl, - { + pub const fn new() -> IComTrackingInfoProperties_Vtbl { + unsafe extern "system" fn PropCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComTrackingInfoProperties_Impl::PropCount(this) { Ok(ok__) => { @@ -2984,10 +2204,7 @@ impl IComTrackingInfoProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropName(this: *mut core::ffi::c_void, ulindex: u32, ppszpropname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IComTrackingInfoProperties_Impl, - { + unsafe extern "system" fn GetPropName(this: *mut core::ffi::c_void, ulindex: u32, ppszpropname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComTrackingInfoProperties_Impl::GetPropName(this, core::mem::transmute_copy(&ulindex)) { Ok(ok__) => { @@ -3007,7 +2224,7 @@ impl IComTrackingInfoProperties_Vtbl { iid == &::IID } } -pub trait IComTransaction2Events_Impl: Sized { +pub trait IComTransaction2Events_Impl: Sized + windows_core::IUnknownImpl { fn OnTransactionStart2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: super::super::Foundation::BOOL, nisolationlevel: i32) -> windows_core::Result<()>; fn OnTransactionPrepare2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn OnTransactionAbort2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::Result<()>; @@ -3015,35 +2232,20 @@ pub trait IComTransaction2Events_Impl: Sized { } impl windows_core::RuntimeName for IComTransaction2Events {} impl IComTransaction2Events_Vtbl { - pub const fn new() -> IComTransaction2Events_Vtbl - where - Identity: IComTransaction2Events_Impl, - { - unsafe extern "system" fn OnTransactionStart2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: super::super::Foundation::BOOL, nisolationlevel: i32) -> windows_core::HRESULT - where - Identity: IComTransaction2Events_Impl, - { + pub const fn new() -> IComTransaction2Events_Vtbl { + unsafe extern "system" fn OnTransactionStart2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: super::super::Foundation::BOOL, nisolationlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransaction2Events_Impl::OnTransactionStart2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&tsid), core::mem::transmute_copy(&froot), core::mem::transmute_copy(&nisolationlevel)).into() } - unsafe extern "system" fn OnTransactionPrepare2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComTransaction2Events_Impl, - { + unsafe extern "system" fn OnTransactionPrepare2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransaction2Events_Impl::OnTransactionPrepare2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&fvoteyes)).into() } - unsafe extern "system" fn OnTransactionAbort2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComTransaction2Events_Impl, - { + unsafe extern "system" fn OnTransactionAbort2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransaction2Events_Impl::OnTransactionAbort2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx)).into() } - unsafe extern "system" fn OnTransactionCommit2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComTransaction2Events_Impl, - { + unsafe extern "system" fn OnTransactionCommit2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransaction2Events_Impl::OnTransactionCommit2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx)).into() } @@ -3059,7 +2261,7 @@ impl IComTransaction2Events_Vtbl { iid == &::IID } } -pub trait IComTransactionEvents_Impl: Sized { +pub trait IComTransactionEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnTransactionStart(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn OnTransactionPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn OnTransactionAbort(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::Result<()>; @@ -3067,35 +2269,20 @@ pub trait IComTransactionEvents_Impl: Sized { } impl windows_core::RuntimeName for IComTransactionEvents {} impl IComTransactionEvents_Vtbl { - pub const fn new() -> IComTransactionEvents_Vtbl - where - Identity: IComTransactionEvents_Impl, - { - unsafe extern "system" fn OnTransactionStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComTransactionEvents_Impl, - { + pub const fn new() -> IComTransactionEvents_Vtbl { + unsafe extern "system" fn OnTransactionStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransactionEvents_Impl::OnTransactionStart(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&tsid), core::mem::transmute_copy(&froot)).into() } - unsafe extern "system" fn OnTransactionPrepare(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IComTransactionEvents_Impl, - { + unsafe extern "system" fn OnTransactionPrepare(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransactionEvents_Impl::OnTransactionPrepare(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&fvoteyes)).into() } - unsafe extern "system" fn OnTransactionAbort(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComTransactionEvents_Impl, - { + unsafe extern "system" fn OnTransactionAbort(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransactionEvents_Impl::OnTransactionAbort(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx)).into() } - unsafe extern "system" fn OnTransactionCommit(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IComTransactionEvents_Impl, - { + unsafe extern "system" fn OnTransactionCommit(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransactionEvents_Impl::OnTransactionCommit(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx)).into() } @@ -3111,19 +2298,13 @@ impl IComTransactionEvents_Vtbl { iid == &::IID } } -pub trait IComUserEvent_Impl: Sized { +pub trait IComUserEvent_Impl: Sized + windows_core::IUnknownImpl { fn OnUserEvent(&self, pinfo: *const COMSVCSEVENTINFO, pvarevent: *const windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComUserEvent {} impl IComUserEvent_Vtbl { - pub const fn new() -> IComUserEvent_Vtbl - where - Identity: IComUserEvent_Impl, - { - unsafe extern "system" fn OnUserEvent(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, pvarevent: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComUserEvent_Impl, - { + pub const fn new() -> IComUserEvent_Vtbl { + unsafe extern "system" fn OnUserEvent(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, pvarevent: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComUserEvent_Impl::OnUserEvent(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&pvarevent)).into() } @@ -3133,7 +2314,7 @@ impl IComUserEvent_Vtbl { iid == &::IID } } -pub trait IContextProperties_Impl: Sized { +pub trait IContextProperties_Impl: Sized + windows_core::IUnknownImpl { fn Count(&self, plcount: *mut i32) -> windows_core::Result<()>; fn GetProperty(&self, name: &windows_core::BSTR, pproperty: *mut windows_core::VARIANT) -> windows_core::Result<()>; fn EnumNames(&self) -> windows_core::Result; @@ -3142,28 +2323,16 @@ pub trait IContextProperties_Impl: Sized { } impl windows_core::RuntimeName for IContextProperties {} impl IContextProperties_Vtbl { - pub const fn new() -> IContextProperties_Vtbl - where - Identity: IContextProperties_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IContextProperties_Impl, - { + pub const fn new() -> IContextProperties_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextProperties_Impl::Count(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContextProperties_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextProperties_Impl::GetProperty(this, core::mem::transmute(&name), core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn EnumNames(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContextProperties_Impl, - { + unsafe extern "system" fn EnumNames(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContextProperties_Impl::EnumNames(this) { Ok(ok__) => { @@ -3173,17 +2342,11 @@ impl IContextProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, property: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContextProperties_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, property: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextProperties_Impl::SetProperty(this, core::mem::transmute(&name), core::mem::transmute(&property)).into() } - unsafe extern "system" fn RemoveProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IContextProperties_Impl, - { + unsafe extern "system" fn RemoveProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextProperties_Impl::RemoveProperty(this, core::mem::transmute(&name)).into() } @@ -3200,27 +2363,18 @@ impl IContextProperties_Vtbl { iid == &::IID } } -pub trait IContextSecurityPerimeter_Impl: Sized { +pub trait IContextSecurityPerimeter_Impl: Sized + windows_core::IUnknownImpl { fn GetPerimeterFlag(&self, pflag: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn SetPerimeterFlag(&self, fflag: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IContextSecurityPerimeter {} impl IContextSecurityPerimeter_Vtbl { - pub const fn new() -> IContextSecurityPerimeter_Vtbl - where - Identity: IContextSecurityPerimeter_Impl, - { - unsafe extern "system" fn GetPerimeterFlag(this: *mut core::ffi::c_void, pflag: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IContextSecurityPerimeter_Impl, - { + pub const fn new() -> IContextSecurityPerimeter_Vtbl { + unsafe extern "system" fn GetPerimeterFlag(this: *mut core::ffi::c_void, pflag: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextSecurityPerimeter_Impl::GetPerimeterFlag(this, core::mem::transmute_copy(&pflag)).into() } - unsafe extern "system" fn SetPerimeterFlag(this: *mut core::ffi::c_void, fflag: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IContextSecurityPerimeter_Impl, - { + unsafe extern "system" fn SetPerimeterFlag(this: *mut core::ffi::c_void, fflag: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextSecurityPerimeter_Impl::SetPerimeterFlag(this, core::mem::transmute_copy(&fflag)).into() } @@ -3234,7 +2388,7 @@ impl IContextSecurityPerimeter_Vtbl { iid == &::IID } } -pub trait IContextState_Impl: Sized { +pub trait IContextState_Impl: Sized + windows_core::IUnknownImpl { fn SetDeactivateOnReturn(&self, bdeactivate: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; fn GetDeactivateOnReturn(&self, pbdeactivate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; fn SetMyTransactionVote(&self, txvote: TransactionVote) -> windows_core::Result<()>; @@ -3242,35 +2396,20 @@ pub trait IContextState_Impl: Sized { } impl windows_core::RuntimeName for IContextState {} impl IContextState_Vtbl { - pub const fn new() -> IContextState_Vtbl - where - Identity: IContextState_Impl, - { - unsafe extern "system" fn SetDeactivateOnReturn(this: *mut core::ffi::c_void, bdeactivate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IContextState_Impl, - { + pub const fn new() -> IContextState_Vtbl { + unsafe extern "system" fn SetDeactivateOnReturn(this: *mut core::ffi::c_void, bdeactivate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextState_Impl::SetDeactivateOnReturn(this, core::mem::transmute_copy(&bdeactivate)).into() } - unsafe extern "system" fn GetDeactivateOnReturn(this: *mut core::ffi::c_void, pbdeactivate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IContextState_Impl, - { + unsafe extern "system" fn GetDeactivateOnReturn(this: *mut core::ffi::c_void, pbdeactivate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextState_Impl::GetDeactivateOnReturn(this, core::mem::transmute_copy(&pbdeactivate)).into() } - unsafe extern "system" fn SetMyTransactionVote(this: *mut core::ffi::c_void, txvote: TransactionVote) -> windows_core::HRESULT - where - Identity: IContextState_Impl, - { + unsafe extern "system" fn SetMyTransactionVote(this: *mut core::ffi::c_void, txvote: TransactionVote) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextState_Impl::SetMyTransactionVote(this, core::mem::transmute_copy(&txvote)).into() } - unsafe extern "system" fn GetMyTransactionVote(this: *mut core::ffi::c_void, ptxvote: *mut TransactionVote) -> windows_core::HRESULT - where - Identity: IContextState_Impl, - { + unsafe extern "system" fn GetMyTransactionVote(this: *mut core::ffi::c_void, ptxvote: *mut TransactionVote) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextState_Impl::GetMyTransactionVote(this, core::mem::transmute_copy(&ptxvote)).into() } @@ -3286,19 +2425,13 @@ impl IContextState_Vtbl { iid == &::IID } } -pub trait ICreateWithLocalTransaction_Impl: Sized { +pub trait ICreateWithLocalTransaction_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstanceWithSysTx(&self, ptransaction: Option<&windows_core::IUnknown>, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICreateWithLocalTransaction {} impl ICreateWithLocalTransaction_Vtbl { - pub const fn new() -> ICreateWithLocalTransaction_Vtbl - where - Identity: ICreateWithLocalTransaction_Impl, - { - unsafe extern "system" fn CreateInstanceWithSysTx(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateWithLocalTransaction_Impl, - { + pub const fn new() -> ICreateWithLocalTransaction_Vtbl { + unsafe extern "system" fn CreateInstanceWithSysTx(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateWithLocalTransaction_Impl::CreateInstanceWithSysTx(this, windows_core::from_raw_borrowed(&ptransaction), core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pobject)).into() } @@ -3308,19 +2441,13 @@ impl ICreateWithLocalTransaction_Vtbl { iid == &::IID } } -pub trait ICreateWithTipTransactionEx_Impl: Sized { +pub trait ICreateWithTipTransactionEx_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for ICreateWithTipTransactionEx {} impl ICreateWithTipTransactionEx_Vtbl { - pub const fn new() -> ICreateWithTipTransactionEx_Vtbl - where - Identity: ICreateWithTipTransactionEx_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, bstrtipurl: core::mem::MaybeUninit, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateWithTipTransactionEx_Impl, - { + pub const fn new() -> ICreateWithTipTransactionEx_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, bstrtipurl: core::mem::MaybeUninit, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateWithTipTransactionEx_Impl::CreateInstance(this, core::mem::transmute(&bstrtipurl), core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pobject)).into() } @@ -3331,21 +2458,15 @@ impl ICreateWithTipTransactionEx_Vtbl { } } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] -pub trait ICreateWithTransactionEx_Impl: Sized { +pub trait ICreateWithTransactionEx_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, ptransaction: Option<&super::DistributedTransactionCoordinator::ITransaction>, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl windows_core::RuntimeName for ICreateWithTransactionEx {} #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl ICreateWithTransactionEx_Vtbl { - pub const fn new() -> ICreateWithTransactionEx_Vtbl - where - Identity: ICreateWithTransactionEx_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateWithTransactionEx_Impl, - { + pub const fn new() -> ICreateWithTransactionEx_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateWithTransactionEx_Impl::CreateInstance(this, windows_core::from_raw_borrowed(&ptransaction), core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pobject)).into() } @@ -3356,7 +2477,7 @@ impl ICreateWithTransactionEx_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICrmCompensator_Impl: Sized { +pub trait ICrmCompensator_Impl: Sized + windows_core::IUnknownImpl { fn SetLogControl(&self, plogcontrol: Option<&ICrmLogControl>) -> windows_core::Result<()>; fn BeginPrepare(&self) -> windows_core::Result<()>; fn PrepareRecord(&self, crmlogrec: &CrmLogRecordRead) -> windows_core::Result; @@ -3372,28 +2493,16 @@ pub trait ICrmCompensator_Impl: Sized { impl windows_core::RuntimeName for ICrmCompensator {} #[cfg(feature = "Win32_System_Com")] impl ICrmCompensator_Vtbl { - pub const fn new() -> ICrmCompensator_Vtbl - where - Identity: ICrmCompensator_Impl, - { - unsafe extern "system" fn SetLogControl(this: *mut core::ffi::c_void, plogcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmCompensator_Impl, - { + pub const fn new() -> ICrmCompensator_Vtbl { + unsafe extern "system" fn SetLogControl(this: *mut core::ffi::c_void, plogcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensator_Impl::SetLogControl(this, windows_core::from_raw_borrowed(&plogcontrol)).into() } - unsafe extern "system" fn BeginPrepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmCompensator_Impl, - { + unsafe extern "system" fn BeginPrepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensator_Impl::BeginPrepare(this).into() } - unsafe extern "system" fn PrepareRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensator_Impl, - { + unsafe extern "system" fn PrepareRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensator_Impl::PrepareRecord(this, core::mem::transmute(&crmlogrec)) { Ok(ok__) => { @@ -3403,10 +2512,7 @@ impl ICrmCompensator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndPrepare(this: *mut core::ffi::c_void, pfoktoprepare: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensator_Impl, - { + unsafe extern "system" fn EndPrepare(this: *mut core::ffi::c_void, pfoktoprepare: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensator_Impl::EndPrepare(this) { Ok(ok__) => { @@ -3416,17 +2522,11 @@ impl ICrmCompensator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginCommit(this: *mut core::ffi::c_void, frecovery: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensator_Impl, - { + unsafe extern "system" fn BeginCommit(this: *mut core::ffi::c_void, frecovery: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensator_Impl::BeginCommit(this, core::mem::transmute_copy(&frecovery)).into() } - unsafe extern "system" fn CommitRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensator_Impl, - { + unsafe extern "system" fn CommitRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensator_Impl::CommitRecord(this, core::mem::transmute(&crmlogrec)) { Ok(ok__) => { @@ -3436,24 +2536,15 @@ impl ICrmCompensator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmCompensator_Impl, - { + unsafe extern "system" fn EndCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensator_Impl::EndCommit(this).into() } - unsafe extern "system" fn BeginAbort(this: *mut core::ffi::c_void, frecovery: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensator_Impl, - { + unsafe extern "system" fn BeginAbort(this: *mut core::ffi::c_void, frecovery: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensator_Impl::BeginAbort(this, core::mem::transmute_copy(&frecovery)).into() } - unsafe extern "system" fn AbortRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensator_Impl, - { + unsafe extern "system" fn AbortRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensator_Impl::AbortRecord(this, core::mem::transmute(&crmlogrec)) { Ok(ok__) => { @@ -3463,10 +2554,7 @@ impl ICrmCompensator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmCompensator_Impl, - { + unsafe extern "system" fn EndAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensator_Impl::EndAbort(this).into() } @@ -3488,7 +2576,7 @@ impl ICrmCompensator_Vtbl { iid == &::IID } } -pub trait ICrmCompensatorVariants_Impl: Sized { +pub trait ICrmCompensatorVariants_Impl: Sized + windows_core::IUnknownImpl { fn SetLogControlVariants(&self, plogcontrol: Option<&ICrmLogControl>) -> windows_core::Result<()>; fn BeginPrepareVariants(&self) -> windows_core::Result<()>; fn PrepareRecordVariants(&self, plogrecord: *const windows_core::VARIANT) -> windows_core::Result; @@ -3502,28 +2590,16 @@ pub trait ICrmCompensatorVariants_Impl: Sized { } impl windows_core::RuntimeName for ICrmCompensatorVariants {} impl ICrmCompensatorVariants_Vtbl { - pub const fn new() -> ICrmCompensatorVariants_Vtbl - where - Identity: ICrmCompensatorVariants_Impl, - { - unsafe extern "system" fn SetLogControlVariants(this: *mut core::ffi::c_void, plogcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmCompensatorVariants_Impl, - { + pub const fn new() -> ICrmCompensatorVariants_Vtbl { + unsafe extern "system" fn SetLogControlVariants(this: *mut core::ffi::c_void, plogcontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensatorVariants_Impl::SetLogControlVariants(this, windows_core::from_raw_borrowed(&plogcontrol)).into() } - unsafe extern "system" fn BeginPrepareVariants(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmCompensatorVariants_Impl, - { + unsafe extern "system" fn BeginPrepareVariants(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensatorVariants_Impl::BeginPrepareVariants(this).into() } - unsafe extern "system" fn PrepareRecordVariants(this: *mut core::ffi::c_void, plogrecord: *const core::mem::MaybeUninit, pbforget: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensatorVariants_Impl, - { + unsafe extern "system" fn PrepareRecordVariants(this: *mut core::ffi::c_void, plogrecord: *const core::mem::MaybeUninit, pbforget: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensatorVariants_Impl::PrepareRecordVariants(this, core::mem::transmute_copy(&plogrecord)) { Ok(ok__) => { @@ -3533,10 +2609,7 @@ impl ICrmCompensatorVariants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndPrepareVariants(this: *mut core::ffi::c_void, pboktoprepare: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensatorVariants_Impl, - { + unsafe extern "system" fn EndPrepareVariants(this: *mut core::ffi::c_void, pboktoprepare: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensatorVariants_Impl::EndPrepareVariants(this) { Ok(ok__) => { @@ -3546,17 +2619,11 @@ impl ICrmCompensatorVariants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginCommitVariants(this: *mut core::ffi::c_void, brecovery: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensatorVariants_Impl, - { + unsafe extern "system" fn BeginCommitVariants(this: *mut core::ffi::c_void, brecovery: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensatorVariants_Impl::BeginCommitVariants(this, core::mem::transmute_copy(&brecovery)).into() } - unsafe extern "system" fn CommitRecordVariants(this: *mut core::ffi::c_void, plogrecord: *const core::mem::MaybeUninit, pbforget: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensatorVariants_Impl, - { + unsafe extern "system" fn CommitRecordVariants(this: *mut core::ffi::c_void, plogrecord: *const core::mem::MaybeUninit, pbforget: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensatorVariants_Impl::CommitRecordVariants(this, core::mem::transmute_copy(&plogrecord)) { Ok(ok__) => { @@ -3566,24 +2633,15 @@ impl ICrmCompensatorVariants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndCommitVariants(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmCompensatorVariants_Impl, - { + unsafe extern "system" fn EndCommitVariants(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensatorVariants_Impl::EndCommitVariants(this).into() } - unsafe extern "system" fn BeginAbortVariants(this: *mut core::ffi::c_void, brecovery: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensatorVariants_Impl, - { + unsafe extern "system" fn BeginAbortVariants(this: *mut core::ffi::c_void, brecovery: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensatorVariants_Impl::BeginAbortVariants(this, core::mem::transmute_copy(&brecovery)).into() } - unsafe extern "system" fn AbortRecordVariants(this: *mut core::ffi::c_void, plogrecord: *const core::mem::MaybeUninit, pbforget: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICrmCompensatorVariants_Impl, - { + unsafe extern "system" fn AbortRecordVariants(this: *mut core::ffi::c_void, plogrecord: *const core::mem::MaybeUninit, pbforget: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensatorVariants_Impl::AbortRecordVariants(this, core::mem::transmute_copy(&plogrecord)) { Ok(ok__) => { @@ -3593,10 +2651,7 @@ impl ICrmCompensatorVariants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndAbortVariants(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmCompensatorVariants_Impl, - { + unsafe extern "system" fn EndAbortVariants(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensatorVariants_Impl::EndAbortVariants(this).into() } @@ -3619,7 +2674,7 @@ impl ICrmCompensatorVariants_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICrmFormatLogRecords_Impl: Sized { +pub trait ICrmFormatLogRecords_Impl: Sized + windows_core::IUnknownImpl { fn GetColumnCount(&self) -> windows_core::Result; fn GetColumnHeaders(&self) -> windows_core::Result; fn GetColumn(&self, crmlogrec: &CrmLogRecordRead) -> windows_core::Result; @@ -3629,14 +2684,8 @@ pub trait ICrmFormatLogRecords_Impl: Sized { impl windows_core::RuntimeName for ICrmFormatLogRecords {} #[cfg(feature = "Win32_System_Com")] impl ICrmFormatLogRecords_Vtbl { - pub const fn new() -> ICrmFormatLogRecords_Vtbl - where - Identity: ICrmFormatLogRecords_Impl, - { - unsafe extern "system" fn GetColumnCount(this: *mut core::ffi::c_void, plcolumncount: *mut i32) -> windows_core::HRESULT - where - Identity: ICrmFormatLogRecords_Impl, - { + pub const fn new() -> ICrmFormatLogRecords_Vtbl { + unsafe extern "system" fn GetColumnCount(this: *mut core::ffi::c_void, plcolumncount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmFormatLogRecords_Impl::GetColumnCount(this) { Ok(ok__) => { @@ -3646,10 +2695,7 @@ impl ICrmFormatLogRecords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumnHeaders(this: *mut core::ffi::c_void, pheaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmFormatLogRecords_Impl, - { + unsafe extern "system" fn GetColumnHeaders(this: *mut core::ffi::c_void, pheaders: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmFormatLogRecords_Impl::GetColumnHeaders(this) { Ok(ok__) => { @@ -3659,10 +2705,7 @@ impl ICrmFormatLogRecords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pformattedlogrecord: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmFormatLogRecords_Impl, - { + unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pformattedlogrecord: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmFormatLogRecords_Impl::GetColumn(this, core::mem::transmute(&crmlogrec)) { Ok(ok__) => { @@ -3672,10 +2715,7 @@ impl ICrmFormatLogRecords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumnVariants(this: *mut core::ffi::c_void, logrecord: core::mem::MaybeUninit, pformattedlogrecord: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmFormatLogRecords_Impl, - { + unsafe extern "system" fn GetColumnVariants(this: *mut core::ffi::c_void, logrecord: core::mem::MaybeUninit, pformattedlogrecord: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmFormatLogRecords_Impl::GetColumnVariants(this, core::mem::transmute(&logrecord)) { Ok(ok__) => { @@ -3698,7 +2738,7 @@ impl ICrmFormatLogRecords_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICrmLogControl_Impl: Sized { +pub trait ICrmLogControl_Impl: Sized + windows_core::IUnknownImpl { fn TransactionUOW(&self) -> windows_core::Result; fn RegisterCompensator(&self, lpcwstrprogidcompensator: &windows_core::PCWSTR, lpcwstrdescription: &windows_core::PCWSTR, lcrmregflags: i32) -> windows_core::Result<()>; fn WriteLogRecordVariants(&self, plogrecord: *const windows_core::VARIANT) -> windows_core::Result<()>; @@ -3711,14 +2751,8 @@ pub trait ICrmLogControl_Impl: Sized { impl windows_core::RuntimeName for ICrmLogControl {} #[cfg(feature = "Win32_System_Com")] impl ICrmLogControl_Vtbl { - pub const fn new() -> ICrmLogControl_Vtbl - where - Identity: ICrmLogControl_Impl, - { - unsafe extern "system" fn TransactionUOW(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmLogControl_Impl, - { + pub const fn new() -> ICrmLogControl_Vtbl { + unsafe extern "system" fn TransactionUOW(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmLogControl_Impl::TransactionUOW(this) { Ok(ok__) => { @@ -3728,45 +2762,27 @@ impl ICrmLogControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterCompensator(this: *mut core::ffi::c_void, lpcwstrprogidcompensator: windows_core::PCWSTR, lpcwstrdescription: windows_core::PCWSTR, lcrmregflags: i32) -> windows_core::HRESULT - where - Identity: ICrmLogControl_Impl, - { + unsafe extern "system" fn RegisterCompensator(this: *mut core::ffi::c_void, lpcwstrprogidcompensator: windows_core::PCWSTR, lpcwstrdescription: windows_core::PCWSTR, lcrmregflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmLogControl_Impl::RegisterCompensator(this, core::mem::transmute(&lpcwstrprogidcompensator), core::mem::transmute(&lpcwstrdescription), core::mem::transmute_copy(&lcrmregflags)).into() } - unsafe extern "system" fn WriteLogRecordVariants(this: *mut core::ffi::c_void, plogrecord: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmLogControl_Impl, - { + unsafe extern "system" fn WriteLogRecordVariants(this: *mut core::ffi::c_void, plogrecord: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmLogControl_Impl::WriteLogRecordVariants(this, core::mem::transmute_copy(&plogrecord)).into() } - unsafe extern "system" fn ForceLog(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmLogControl_Impl, - { + unsafe extern "system" fn ForceLog(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmLogControl_Impl::ForceLog(this).into() } - unsafe extern "system" fn ForgetLogRecord(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmLogControl_Impl, - { + unsafe extern "system" fn ForgetLogRecord(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmLogControl_Impl::ForgetLogRecord(this).into() } - unsafe extern "system" fn ForceTransactionToAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmLogControl_Impl, - { + unsafe extern "system" fn ForceTransactionToAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmLogControl_Impl::ForceTransactionToAbort(this).into() } - unsafe extern "system" fn WriteLogRecord(this: *mut core::ffi::c_void, rgblob: *const super::Com::BLOB, cblob: u32) -> windows_core::HRESULT - where - Identity: ICrmLogControl_Impl, - { + unsafe extern "system" fn WriteLogRecord(this: *mut core::ffi::c_void, rgblob: *const super::Com::BLOB, cblob: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmLogControl_Impl::WriteLogRecord(this, core::mem::transmute_copy(&rgblob), core::mem::transmute_copy(&cblob)).into() } @@ -3786,7 +2802,7 @@ impl ICrmLogControl_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICrmMonitor_Impl: Sized { +pub trait ICrmMonitor_Impl: Sized + windows_core::IUnknownImpl { fn GetClerks(&self) -> windows_core::Result; fn HoldClerk(&self, index: &windows_core::VARIANT) -> windows_core::Result; } @@ -3794,14 +2810,8 @@ pub trait ICrmMonitor_Impl: Sized { impl windows_core::RuntimeName for ICrmMonitor {} #[cfg(feature = "Win32_System_Com")] impl ICrmMonitor_Vtbl { - pub const fn new() -> ICrmMonitor_Vtbl - where - Identity: ICrmMonitor_Impl, - { - unsafe extern "system" fn GetClerks(this: *mut core::ffi::c_void, pclerks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmMonitor_Impl, - { + pub const fn new() -> ICrmMonitor_Vtbl { + unsafe extern "system" fn GetClerks(this: *mut core::ffi::c_void, pclerks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitor_Impl::GetClerks(this) { Ok(ok__) => { @@ -3811,10 +2821,7 @@ impl ICrmMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HoldClerk(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmMonitor_Impl, - { + unsafe extern "system" fn HoldClerk(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitor_Impl::HoldClerk(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3848,14 +2855,8 @@ pub trait ICrmMonitorClerks_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ICrmMonitorClerks {} #[cfg(feature = "Win32_System_Com")] impl ICrmMonitorClerks_Vtbl { - pub const fn new() -> ICrmMonitorClerks_Vtbl - where - Identity: ICrmMonitorClerks_Impl, - { - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmMonitorClerks_Impl, - { + pub const fn new() -> ICrmMonitorClerks_Vtbl { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorClerks_Impl::Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3865,10 +2866,7 @@ impl ICrmMonitorClerks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICrmMonitorClerks_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorClerks_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3878,10 +2876,7 @@ impl ICrmMonitorClerks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICrmMonitorClerks_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorClerks_Impl::Count(this) { Ok(ok__) => { @@ -3891,10 +2886,7 @@ impl ICrmMonitorClerks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProgIdCompensator(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmMonitorClerks_Impl, - { + unsafe extern "system" fn ProgIdCompensator(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorClerks_Impl::ProgIdCompensator(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3904,10 +2896,7 @@ impl ICrmMonitorClerks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmMonitorClerks_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorClerks_Impl::Description(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3917,10 +2906,7 @@ impl ICrmMonitorClerks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransactionUOW(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmMonitorClerks_Impl, - { + unsafe extern "system" fn TransactionUOW(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorClerks_Impl::TransactionUOW(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3930,10 +2916,7 @@ impl ICrmMonitorClerks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivityId(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmMonitorClerks_Impl, - { + unsafe extern "system" fn ActivityId(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorClerks_Impl::ActivityId(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3959,7 +2942,7 @@ impl ICrmMonitorClerks_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICrmMonitorLogRecords_Impl: Sized { +pub trait ICrmMonitorLogRecords_Impl: Sized + windows_core::IUnknownImpl { fn Count(&self) -> windows_core::Result; fn TransactionState(&self) -> windows_core::Result; fn StructuredRecords(&self) -> windows_core::Result; @@ -3970,14 +2953,8 @@ pub trait ICrmMonitorLogRecords_Impl: Sized { impl windows_core::RuntimeName for ICrmMonitorLogRecords {} #[cfg(feature = "Win32_System_Com")] impl ICrmMonitorLogRecords_Vtbl { - pub const fn new() -> ICrmMonitorLogRecords_Vtbl - where - Identity: ICrmMonitorLogRecords_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: ICrmMonitorLogRecords_Impl, - { + pub const fn new() -> ICrmMonitorLogRecords_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorLogRecords_Impl::Count(this) { Ok(ok__) => { @@ -3987,10 +2964,7 @@ impl ICrmMonitorLogRecords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransactionState(this: *mut core::ffi::c_void, pval: *mut CrmTransactionState) -> windows_core::HRESULT - where - Identity: ICrmMonitorLogRecords_Impl, - { + unsafe extern "system" fn TransactionState(this: *mut core::ffi::c_void, pval: *mut CrmTransactionState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorLogRecords_Impl::TransactionState(this) { Ok(ok__) => { @@ -4000,10 +2974,7 @@ impl ICrmMonitorLogRecords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StructuredRecords(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICrmMonitorLogRecords_Impl, - { + unsafe extern "system" fn StructuredRecords(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorLogRecords_Impl::StructuredRecords(this) { Ok(ok__) => { @@ -4013,17 +2984,11 @@ impl ICrmMonitorLogRecords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLogRecord(this: *mut core::ffi::c_void, dwindex: u32, pcrmlogrec: *mut CrmLogRecordRead) -> windows_core::HRESULT - where - Identity: ICrmMonitorLogRecords_Impl, - { + unsafe extern "system" fn GetLogRecord(this: *mut core::ffi::c_void, dwindex: u32, pcrmlogrec: *mut CrmLogRecordRead) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmMonitorLogRecords_Impl::GetLogRecord(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pcrmlogrec)).into() } - unsafe extern "system" fn GetLogRecordVariants(this: *mut core::ffi::c_void, indexnumber: core::mem::MaybeUninit, plogrecord: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICrmMonitorLogRecords_Impl, - { + unsafe extern "system" fn GetLogRecordVariants(this: *mut core::ffi::c_void, indexnumber: core::mem::MaybeUninit, plogrecord: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmMonitorLogRecords_Impl::GetLogRecordVariants(this, core::mem::transmute(&indexnumber)) { Ok(ok__) => { @@ -4046,7 +3011,7 @@ impl ICrmMonitorLogRecords_Vtbl { iid == &::IID } } -pub trait IDispenserDriver_Impl: Sized { +pub trait IDispenserDriver_Impl: Sized + windows_core::IUnknownImpl { fn CreateResource(&self, restypid: usize, presid: *mut usize, psecsfreebeforedestroy: *mut i32) -> windows_core::Result<()>; fn RateResource(&self, restypid: usize, resid: usize, frequirestransactionenlistment: super::super::Foundation::BOOL, prating: *mut u32) -> windows_core::Result<()>; fn EnlistResource(&self, resid: usize, transid: usize) -> windows_core::Result<()>; @@ -4056,49 +3021,28 @@ pub trait IDispenserDriver_Impl: Sized { } impl windows_core::RuntimeName for IDispenserDriver {} impl IDispenserDriver_Vtbl { - pub const fn new() -> IDispenserDriver_Vtbl - where - Identity: IDispenserDriver_Impl, - { - unsafe extern "system" fn CreateResource(this: *mut core::ffi::c_void, restypid: usize, presid: *mut usize, psecsfreebeforedestroy: *mut i32) -> windows_core::HRESULT - where - Identity: IDispenserDriver_Impl, - { + pub const fn new() -> IDispenserDriver_Vtbl { + unsafe extern "system" fn CreateResource(this: *mut core::ffi::c_void, restypid: usize, presid: *mut usize, psecsfreebeforedestroy: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispenserDriver_Impl::CreateResource(this, core::mem::transmute_copy(&restypid), core::mem::transmute_copy(&presid), core::mem::transmute_copy(&psecsfreebeforedestroy)).into() } - unsafe extern "system" fn RateResource(this: *mut core::ffi::c_void, restypid: usize, resid: usize, frequirestransactionenlistment: super::super::Foundation::BOOL, prating: *mut u32) -> windows_core::HRESULT - where - Identity: IDispenserDriver_Impl, - { + unsafe extern "system" fn RateResource(this: *mut core::ffi::c_void, restypid: usize, resid: usize, frequirestransactionenlistment: super::super::Foundation::BOOL, prating: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispenserDriver_Impl::RateResource(this, core::mem::transmute_copy(&restypid), core::mem::transmute_copy(&resid), core::mem::transmute_copy(&frequirestransactionenlistment), core::mem::transmute_copy(&prating)).into() } - unsafe extern "system" fn EnlistResource(this: *mut core::ffi::c_void, resid: usize, transid: usize) -> windows_core::HRESULT - where - Identity: IDispenserDriver_Impl, - { + unsafe extern "system" fn EnlistResource(this: *mut core::ffi::c_void, resid: usize, transid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispenserDriver_Impl::EnlistResource(this, core::mem::transmute_copy(&resid), core::mem::transmute_copy(&transid)).into() } - unsafe extern "system" fn ResetResource(this: *mut core::ffi::c_void, resid: usize) -> windows_core::HRESULT - where - Identity: IDispenserDriver_Impl, - { + unsafe extern "system" fn ResetResource(this: *mut core::ffi::c_void, resid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispenserDriver_Impl::ResetResource(this, core::mem::transmute_copy(&resid)).into() } - unsafe extern "system" fn DestroyResource(this: *mut core::ffi::c_void, resid: usize) -> windows_core::HRESULT - where - Identity: IDispenserDriver_Impl, - { + unsafe extern "system" fn DestroyResource(this: *mut core::ffi::c_void, resid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispenserDriver_Impl::DestroyResource(this, core::mem::transmute_copy(&resid)).into() } - unsafe extern "system" fn DestroyResourceS(this: *mut core::ffi::c_void, resid: *mut u16) -> windows_core::HRESULT - where - Identity: IDispenserDriver_Impl, - { + unsafe extern "system" fn DestroyResourceS(this: *mut core::ffi::c_void, resid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispenserDriver_Impl::DestroyResourceS(this, core::mem::transmute_copy(&resid)).into() } @@ -4116,20 +3060,14 @@ impl IDispenserDriver_Vtbl { iid == &::IID } } -pub trait IDispenserManager_Impl: Sized { +pub trait IDispenserManager_Impl: Sized + windows_core::IUnknownImpl { fn RegisterDispenser(&self, __midl__idispensermanager0000: Option<&IDispenserDriver>, szdispensername: &windows_core::PCWSTR) -> windows_core::Result; fn GetContext(&self, __midl__idispensermanager0002: *mut usize, __midl__idispensermanager0003: *mut usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDispenserManager {} impl IDispenserManager_Vtbl { - pub const fn new() -> IDispenserManager_Vtbl - where - Identity: IDispenserManager_Impl, - { - unsafe extern "system" fn RegisterDispenser(this: *mut core::ffi::c_void, __midl__idispensermanager0000: *mut core::ffi::c_void, szdispensername: windows_core::PCWSTR, __midl__idispensermanager0001: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDispenserManager_Impl, - { + pub const fn new() -> IDispenserManager_Vtbl { + unsafe extern "system" fn RegisterDispenser(this: *mut core::ffi::c_void, __midl__idispensermanager0000: *mut core::ffi::c_void, szdispensername: windows_core::PCWSTR, __midl__idispensermanager0001: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispenserManager_Impl::RegisterDispenser(this, windows_core::from_raw_borrowed(&__midl__idispensermanager0000), core::mem::transmute(&szdispensername)) { Ok(ok__) => { @@ -4139,10 +3077,7 @@ impl IDispenserManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, __midl__idispensermanager0002: *mut usize, __midl__idispensermanager0003: *mut usize) -> windows_core::HRESULT - where - Identity: IDispenserManager_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, __midl__idispensermanager0002: *mut usize, __midl__idispensermanager0003: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispenserManager_Impl::GetContext(this, core::mem::transmute_copy(&__midl__idispensermanager0002), core::mem::transmute_copy(&__midl__idispensermanager0003)).into() } @@ -4156,7 +3091,7 @@ impl IDispenserManager_Vtbl { iid == &::IID } } -pub trait IEnumNames_Impl: Sized { +pub trait IEnumNames_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -4164,35 +3099,20 @@ pub trait IEnumNames_Impl: Sized { } impl windows_core::RuntimeName for IEnumNames {} impl IEnumNames_Vtbl { - pub const fn new() -> IEnumNames_Vtbl - where - Identity: IEnumNames_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgname: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumNames_Impl, - { + pub const fn new() -> IEnumNames_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgname: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNames_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgname), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumNames_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNames_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNames_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumNames_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumNames_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumNames_Impl::Clone(this) { Ok(ok__) => { @@ -4224,28 +3144,16 @@ pub trait IEventServerTrace_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IEventServerTrace {} #[cfg(feature = "Win32_System_Com")] impl IEventServerTrace_Vtbl { - pub const fn new() -> IEventServerTrace_Vtbl - where - Identity: IEventServerTrace_Impl, - { - unsafe extern "system" fn StartTraceGuid(this: *mut core::ffi::c_void, bstrguidevent: core::mem::MaybeUninit, bstrguidfilter: core::mem::MaybeUninit, lpidfilter: i32) -> windows_core::HRESULT - where - Identity: IEventServerTrace_Impl, - { + pub const fn new() -> IEventServerTrace_Vtbl { + unsafe extern "system" fn StartTraceGuid(this: *mut core::ffi::c_void, bstrguidevent: core::mem::MaybeUninit, bstrguidfilter: core::mem::MaybeUninit, lpidfilter: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventServerTrace_Impl::StartTraceGuid(this, core::mem::transmute(&bstrguidevent), core::mem::transmute(&bstrguidfilter), core::mem::transmute_copy(&lpidfilter)).into() } - unsafe extern "system" fn StopTraceGuid(this: *mut core::ffi::c_void, bstrguidevent: core::mem::MaybeUninit, bstrguidfilter: core::mem::MaybeUninit, lpidfilter: i32) -> windows_core::HRESULT - where - Identity: IEventServerTrace_Impl, - { + unsafe extern "system" fn StopTraceGuid(this: *mut core::ffi::c_void, bstrguidevent: core::mem::MaybeUninit, bstrguidfilter: core::mem::MaybeUninit, lpidfilter: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventServerTrace_Impl::StopTraceGuid(this, core::mem::transmute(&bstrguidevent), core::mem::transmute(&bstrguidfilter), core::mem::transmute_copy(&lpidfilter)).into() } - unsafe extern "system" fn EnumTraceGuid(this: *mut core::ffi::c_void, plcntguids: *mut i32, pbstrguidlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventServerTrace_Impl, - { + unsafe extern "system" fn EnumTraceGuid(this: *mut core::ffi::c_void, plcntguids: *mut i32, pbstrguidlist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventServerTrace_Impl::EnumTraceGuid(this, core::mem::transmute_copy(&plcntguids), core::mem::transmute_copy(&pbstrguidlist)).into() } @@ -4260,7 +3168,7 @@ impl IEventServerTrace_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IGetAppTrackerData_Impl: Sized { +pub trait IGetAppTrackerData_Impl: Sized + windows_core::IUnknownImpl { fn GetApplicationProcesses(&self, partitionid: *const windows_core::GUID, applicationid: *const windows_core::GUID, flags: u32, numapplicationprocesses: *mut u32, applicationprocesses: *mut *mut ApplicationProcessSummary) -> windows_core::Result<()>; fn GetApplicationProcessDetails(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, flags: u32, summary: *mut ApplicationProcessSummary, statistics: *mut ApplicationProcessStatistics, recycleinfo: *mut ApplicationProcessRecycleInfo, anycomponentshangmonitored: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetApplicationsInProcess(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, partitionid: *const windows_core::GUID, flags: u32, numapplicationsinprocess: *mut u32, applications: *mut *mut ApplicationSummary) -> windows_core::Result<()>; @@ -4271,49 +3179,28 @@ pub trait IGetAppTrackerData_Impl: Sized { } impl windows_core::RuntimeName for IGetAppTrackerData {} impl IGetAppTrackerData_Vtbl { - pub const fn new() -> IGetAppTrackerData_Vtbl - where - Identity: IGetAppTrackerData_Impl, - { - unsafe extern "system" fn GetApplicationProcesses(this: *mut core::ffi::c_void, partitionid: *const windows_core::GUID, applicationid: *const windows_core::GUID, flags: u32, numapplicationprocesses: *mut u32, applicationprocesses: *mut *mut ApplicationProcessSummary) -> windows_core::HRESULT - where - Identity: IGetAppTrackerData_Impl, - { + pub const fn new() -> IGetAppTrackerData_Vtbl { + unsafe extern "system" fn GetApplicationProcesses(this: *mut core::ffi::c_void, partitionid: *const windows_core::GUID, applicationid: *const windows_core::GUID, flags: u32, numapplicationprocesses: *mut u32, applicationprocesses: *mut *mut ApplicationProcessSummary) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetAppTrackerData_Impl::GetApplicationProcesses(this, core::mem::transmute_copy(&partitionid), core::mem::transmute_copy(&applicationid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&numapplicationprocesses), core::mem::transmute_copy(&applicationprocesses)).into() } - unsafe extern "system" fn GetApplicationProcessDetails(this: *mut core::ffi::c_void, applicationinstanceid: *const windows_core::GUID, processid: u32, flags: u32, summary: *mut ApplicationProcessSummary, statistics: *mut ApplicationProcessStatistics, recycleinfo: *mut ApplicationProcessRecycleInfo, anycomponentshangmonitored: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IGetAppTrackerData_Impl, - { + unsafe extern "system" fn GetApplicationProcessDetails(this: *mut core::ffi::c_void, applicationinstanceid: *const windows_core::GUID, processid: u32, flags: u32, summary: *mut ApplicationProcessSummary, statistics: *mut ApplicationProcessStatistics, recycleinfo: *mut ApplicationProcessRecycleInfo, anycomponentshangmonitored: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetAppTrackerData_Impl::GetApplicationProcessDetails(this, core::mem::transmute_copy(&applicationinstanceid), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&summary), core::mem::transmute_copy(&statistics), core::mem::transmute_copy(&recycleinfo), core::mem::transmute_copy(&anycomponentshangmonitored)).into() } - unsafe extern "system" fn GetApplicationsInProcess(this: *mut core::ffi::c_void, applicationinstanceid: *const windows_core::GUID, processid: u32, partitionid: *const windows_core::GUID, flags: u32, numapplicationsinprocess: *mut u32, applications: *mut *mut ApplicationSummary) -> windows_core::HRESULT - where - Identity: IGetAppTrackerData_Impl, - { + unsafe extern "system" fn GetApplicationsInProcess(this: *mut core::ffi::c_void, applicationinstanceid: *const windows_core::GUID, processid: u32, partitionid: *const windows_core::GUID, flags: u32, numapplicationsinprocess: *mut u32, applications: *mut *mut ApplicationSummary) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetAppTrackerData_Impl::GetApplicationsInProcess(this, core::mem::transmute_copy(&applicationinstanceid), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&partitionid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&numapplicationsinprocess), core::mem::transmute_copy(&applications)).into() } - unsafe extern "system" fn GetComponentsInProcess(this: *mut core::ffi::c_void, applicationinstanceid: *const windows_core::GUID, processid: u32, partitionid: *const windows_core::GUID, applicationid: *const windows_core::GUID, flags: u32, numcomponentsinprocess: *mut u32, components: *mut *mut ComponentSummary) -> windows_core::HRESULT - where - Identity: IGetAppTrackerData_Impl, - { + unsafe extern "system" fn GetComponentsInProcess(this: *mut core::ffi::c_void, applicationinstanceid: *const windows_core::GUID, processid: u32, partitionid: *const windows_core::GUID, applicationid: *const windows_core::GUID, flags: u32, numcomponentsinprocess: *mut u32, components: *mut *mut ComponentSummary) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetAppTrackerData_Impl::GetComponentsInProcess(this, core::mem::transmute_copy(&applicationinstanceid), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&partitionid), core::mem::transmute_copy(&applicationid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&numcomponentsinprocess), core::mem::transmute_copy(&components)).into() } - unsafe extern "system" fn GetComponentDetails(this: *mut core::ffi::c_void, applicationinstanceid: *const windows_core::GUID, processid: u32, clsid: *const windows_core::GUID, flags: u32, summary: *mut ComponentSummary, statistics: *mut ComponentStatistics, hangmonitorinfo: *mut ComponentHangMonitorInfo) -> windows_core::HRESULT - where - Identity: IGetAppTrackerData_Impl, - { + unsafe extern "system" fn GetComponentDetails(this: *mut core::ffi::c_void, applicationinstanceid: *const windows_core::GUID, processid: u32, clsid: *const windows_core::GUID, flags: u32, summary: *mut ComponentSummary, statistics: *mut ComponentStatistics, hangmonitorinfo: *mut ComponentHangMonitorInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetAppTrackerData_Impl::GetComponentDetails(this, core::mem::transmute_copy(&applicationinstanceid), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&summary), core::mem::transmute_copy(&statistics), core::mem::transmute_copy(&hangmonitorinfo)).into() } - unsafe extern "system" fn GetTrackerDataAsCollectionObject(this: *mut core::ffi::c_void, toplevelcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetAppTrackerData_Impl, - { + unsafe extern "system" fn GetTrackerDataAsCollectionObject(this: *mut core::ffi::c_void, toplevelcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetAppTrackerData_Impl::GetTrackerDataAsCollectionObject(this) { Ok(ok__) => { @@ -4323,10 +3210,7 @@ impl IGetAppTrackerData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSuggestedPollingInterval(this: *mut core::ffi::c_void, pollingintervalinseconds: *mut u32) -> windows_core::HRESULT - where - Identity: IGetAppTrackerData_Impl, - { + unsafe extern "system" fn GetSuggestedPollingInterval(this: *mut core::ffi::c_void, pollingintervalinseconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetAppTrackerData_Impl::GetSuggestedPollingInterval(this) { Ok(ok__) => { @@ -4351,35 +3235,23 @@ impl IGetAppTrackerData_Vtbl { iid == &::IID } } -pub trait IGetContextProperties_Impl: Sized { +pub trait IGetContextProperties_Impl: Sized + windows_core::IUnknownImpl { fn Count(&self, plcount: *mut i32) -> windows_core::Result<()>; fn GetProperty(&self, name: &windows_core::BSTR, pproperty: *mut windows_core::VARIANT) -> windows_core::Result<()>; fn EnumNames(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IGetContextProperties {} impl IGetContextProperties_Vtbl { - pub const fn new() -> IGetContextProperties_Vtbl - where - Identity: IGetContextProperties_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IGetContextProperties_Impl, - { + pub const fn new() -> IGetContextProperties_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetContextProperties_Impl::Count(this, core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGetContextProperties_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetContextProperties_Impl::GetProperty(this, core::mem::transmute(&name), core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn EnumNames(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetContextProperties_Impl, - { + unsafe extern "system" fn EnumNames(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetContextProperties_Impl::EnumNames(this) { Ok(ok__) => { @@ -4408,14 +3280,8 @@ pub trait IGetSecurityCallContext_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGetSecurityCallContext {} #[cfg(feature = "Win32_System_Com")] impl IGetSecurityCallContext_Vtbl { - pub const fn new() -> IGetSecurityCallContext_Vtbl - where - Identity: IGetSecurityCallContext_Impl, - { - unsafe extern "system" fn GetSecurityCallContext(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetSecurityCallContext_Impl, - { + pub const fn new() -> IGetSecurityCallContext_Vtbl { + unsafe extern "system" fn GetSecurityCallContext(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetSecurityCallContext_Impl::GetSecurityCallContext(this) { Ok(ok__) => { @@ -4431,7 +3297,7 @@ impl IGetSecurityCallContext_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IHolder_Impl: Sized { +pub trait IHolder_Impl: Sized + windows_core::IUnknownImpl { fn AllocResource(&self, __midl__iholder0000: usize, __midl__iholder0001: *mut usize) -> windows_core::Result<()>; fn FreeResource(&self, __midl__iholder0002: usize) -> windows_core::Result<()>; fn TrackResource(&self, __midl__iholder0003: usize) -> windows_core::Result<()>; @@ -4443,63 +3309,36 @@ pub trait IHolder_Impl: Sized { } impl windows_core::RuntimeName for IHolder {} impl IHolder_Vtbl { - pub const fn new() -> IHolder_Vtbl - where - Identity: IHolder_Impl, - { - unsafe extern "system" fn AllocResource(this: *mut core::ffi::c_void, __midl__iholder0000: usize, __midl__iholder0001: *mut usize) -> windows_core::HRESULT - where - Identity: IHolder_Impl, - { + pub const fn new() -> IHolder_Vtbl { + unsafe extern "system" fn AllocResource(this: *mut core::ffi::c_void, __midl__iholder0000: usize, __midl__iholder0001: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolder_Impl::AllocResource(this, core::mem::transmute_copy(&__midl__iholder0000), core::mem::transmute_copy(&__midl__iholder0001)).into() } - unsafe extern "system" fn FreeResource(this: *mut core::ffi::c_void, __midl__iholder0002: usize) -> windows_core::HRESULT - where - Identity: IHolder_Impl, - { + unsafe extern "system" fn FreeResource(this: *mut core::ffi::c_void, __midl__iholder0002: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolder_Impl::FreeResource(this, core::mem::transmute_copy(&__midl__iholder0002)).into() } - unsafe extern "system" fn TrackResource(this: *mut core::ffi::c_void, __midl__iholder0003: usize) -> windows_core::HRESULT - where - Identity: IHolder_Impl, - { + unsafe extern "system" fn TrackResource(this: *mut core::ffi::c_void, __midl__iholder0003: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolder_Impl::TrackResource(this, core::mem::transmute_copy(&__midl__iholder0003)).into() } - unsafe extern "system" fn TrackResourceS(this: *mut core::ffi::c_void, __midl__iholder0004: *mut u16) -> windows_core::HRESULT - where - Identity: IHolder_Impl, - { + unsafe extern "system" fn TrackResourceS(this: *mut core::ffi::c_void, __midl__iholder0004: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolder_Impl::TrackResourceS(this, core::mem::transmute_copy(&__midl__iholder0004)).into() } - unsafe extern "system" fn UntrackResource(this: *mut core::ffi::c_void, __midl__iholder0005: usize, __midl__iholder0006: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IHolder_Impl, - { + unsafe extern "system" fn UntrackResource(this: *mut core::ffi::c_void, __midl__iholder0005: usize, __midl__iholder0006: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolder_Impl::UntrackResource(this, core::mem::transmute_copy(&__midl__iholder0005), core::mem::transmute_copy(&__midl__iholder0006)).into() } - unsafe extern "system" fn UntrackResourceS(this: *mut core::ffi::c_void, __midl__iholder0007: *mut u16, __midl__iholder0008: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IHolder_Impl, - { + unsafe extern "system" fn UntrackResourceS(this: *mut core::ffi::c_void, __midl__iholder0007: *mut u16, __midl__iholder0008: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolder_Impl::UntrackResourceS(this, core::mem::transmute_copy(&__midl__iholder0007), core::mem::transmute_copy(&__midl__iholder0008)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHolder_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolder_Impl::Close(this).into() } - unsafe extern "system" fn RequestDestroyResource(this: *mut core::ffi::c_void, __midl__iholder0009: usize) -> windows_core::HRESULT - where - Identity: IHolder_Impl, - { + unsafe extern "system" fn RequestDestroyResource(this: *mut core::ffi::c_void, __midl__iholder0009: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolder_Impl::RequestDestroyResource(this, core::mem::transmute_copy(&__midl__iholder0009)).into() } @@ -4519,35 +3358,23 @@ impl IHolder_Vtbl { iid == &::IID } } -pub trait ILBEvents_Impl: Sized { +pub trait ILBEvents_Impl: Sized + windows_core::IUnknownImpl { 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 windows_core::VARIANT, bstrclsideng: &windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILBEvents {} impl ILBEvents_Vtbl { - pub const fn new() -> ILBEvents_Vtbl - where - Identity: ILBEvents_Impl, - { - unsafe extern "system" fn TargetUp(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bstrclsideng: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILBEvents_Impl, - { + pub const fn new() -> ILBEvents_Vtbl { + unsafe extern "system" fn TargetUp(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bstrclsideng: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILBEvents_Impl::TargetUp(this, core::mem::transmute(&bstrservername), core::mem::transmute(&bstrclsideng)).into() } - unsafe extern "system" fn TargetDown(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bstrclsideng: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILBEvents_Impl, - { + unsafe extern "system" fn TargetDown(this: *mut core::ffi::c_void, bstrservername: core::mem::MaybeUninit, bstrclsideng: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILBEvents_Impl::TargetDown(this, core::mem::transmute(&bstrservername), core::mem::transmute(&bstrclsideng)).into() } - unsafe extern "system" fn EngineDefined(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, varpropvalue: *const core::mem::MaybeUninit, bstrclsideng: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILBEvents_Impl, - { + unsafe extern "system" fn EngineDefined(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, varpropvalue: *const core::mem::MaybeUninit, bstrclsideng: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILBEvents_Impl::EngineDefined(this, core::mem::transmute(&bstrpropname), core::mem::transmute_copy(&varpropvalue), core::mem::transmute(&bstrclsideng)).into() } @@ -4562,7 +3389,7 @@ impl ILBEvents_Vtbl { iid == &::IID } } -pub trait IMTSActivity_Impl: Sized { +pub trait IMTSActivity_Impl: Sized + windows_core::IUnknownImpl { fn SynchronousCall(&self, pcall: Option<&IMTSCall>) -> windows_core::Result<()>; fn AsyncCall(&self, pcall: Option<&IMTSCall>) -> windows_core::Result<()>; fn Reserved1(&self); @@ -4571,42 +3398,24 @@ pub trait IMTSActivity_Impl: Sized { } impl windows_core::RuntimeName for IMTSActivity {} impl IMTSActivity_Vtbl { - pub const fn new() -> IMTSActivity_Vtbl - where - Identity: IMTSActivity_Impl, - { - unsafe extern "system" fn SynchronousCall(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMTSActivity_Impl, - { + pub const fn new() -> IMTSActivity_Vtbl { + unsafe extern "system" fn SynchronousCall(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMTSActivity_Impl::SynchronousCall(this, windows_core::from_raw_borrowed(&pcall)).into() } - unsafe extern "system" fn AsyncCall(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMTSActivity_Impl, - { + unsafe extern "system" fn AsyncCall(this: *mut core::ffi::c_void, pcall: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMTSActivity_Impl::AsyncCall(this, windows_core::from_raw_borrowed(&pcall)).into() } - unsafe extern "system" fn Reserved1(this: *mut core::ffi::c_void) - where - Identity: IMTSActivity_Impl, - { + unsafe extern "system" fn Reserved1(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMTSActivity_Impl::Reserved1(this) } - unsafe extern "system" fn BindToCurrentThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMTSActivity_Impl, - { + unsafe extern "system" fn BindToCurrentThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMTSActivity_Impl::BindToCurrentThread(this).into() } - unsafe extern "system" fn UnbindFromThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMTSActivity_Impl, - { + unsafe extern "system" fn UnbindFromThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMTSActivity_Impl::UnbindFromThread(this).into() } @@ -4623,19 +3432,13 @@ impl IMTSActivity_Vtbl { iid == &::IID } } -pub trait IMTSCall_Impl: Sized { +pub trait IMTSCall_Impl: Sized + windows_core::IUnknownImpl { fn OnCall(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMTSCall {} impl IMTSCall_Vtbl { - pub const fn new() -> IMTSCall_Vtbl - where - Identity: IMTSCall_Impl, - { - unsafe extern "system" fn OnCall(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMTSCall_Impl, - { + pub const fn new() -> IMTSCall_Vtbl { + unsafe extern "system" fn OnCall(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMTSCall_Impl::OnCall(this).into() } @@ -4653,14 +3456,8 @@ pub trait IMTSLocator_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMTSLocator {} #[cfg(feature = "Win32_System_Com")] impl IMTSLocator_Vtbl { - pub const fn new() -> IMTSLocator_Vtbl - where - Identity: IMTSLocator_Impl, - { - unsafe extern "system" fn GetEventDispatcher(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMTSLocator_Impl, - { + pub const fn new() -> IMTSLocator_Vtbl { + unsafe extern "system" fn GetEventDispatcher(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMTSLocator_Impl::GetEventDispatcher(this) { Ok(ok__) => { @@ -4676,27 +3473,18 @@ impl IMTSLocator_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IManagedActivationEvents_Impl: Sized { +pub trait IManagedActivationEvents_Impl: Sized + windows_core::IUnknownImpl { fn CreateManagedStub(&self, pinfo: Option<&IManagedObjectInfo>, fdist: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn DestroyManagedStub(&self, pinfo: Option<&IManagedObjectInfo>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IManagedActivationEvents {} impl IManagedActivationEvents_Vtbl { - pub const fn new() -> IManagedActivationEvents_Vtbl - where - Identity: IManagedActivationEvents_Impl, - { - unsafe extern "system" fn CreateManagedStub(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void, fdist: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IManagedActivationEvents_Impl, - { + pub const fn new() -> IManagedActivationEvents_Vtbl { + unsafe extern "system" fn CreateManagedStub(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void, fdist: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedActivationEvents_Impl::CreateManagedStub(this, windows_core::from_raw_borrowed(&pinfo), core::mem::transmute_copy(&fdist)).into() } - unsafe extern "system" fn DestroyManagedStub(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IManagedActivationEvents_Impl, - { + unsafe extern "system" fn DestroyManagedStub(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedActivationEvents_Impl::DestroyManagedStub(this, windows_core::from_raw_borrowed(&pinfo)).into() } @@ -4710,7 +3498,7 @@ impl IManagedActivationEvents_Vtbl { iid == &::IID } } -pub trait IManagedObjectInfo_Impl: Sized { +pub trait IManagedObjectInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetIUnknown(&self) -> windows_core::Result; fn GetIObjectControl(&self) -> windows_core::Result; fn SetInPool(&self, binpool: super::super::Foundation::BOOL, ppooledobj: Option<&IManagedPooledObj>) -> windows_core::Result<()>; @@ -4718,14 +3506,8 @@ pub trait IManagedObjectInfo_Impl: Sized { } impl windows_core::RuntimeName for IManagedObjectInfo {} impl IManagedObjectInfo_Vtbl { - pub const fn new() -> IManagedObjectInfo_Vtbl - where - Identity: IManagedObjectInfo_Impl, - { - unsafe extern "system" fn GetIUnknown(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IManagedObjectInfo_Impl, - { + pub const fn new() -> IManagedObjectInfo_Vtbl { + unsafe extern "system" fn GetIUnknown(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManagedObjectInfo_Impl::GetIUnknown(this) { Ok(ok__) => { @@ -4735,10 +3517,7 @@ impl IManagedObjectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIObjectControl(this: *mut core::ffi::c_void, pctrl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IManagedObjectInfo_Impl, - { + unsafe extern "system" fn GetIObjectControl(this: *mut core::ffi::c_void, pctrl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManagedObjectInfo_Impl::GetIObjectControl(this) { Ok(ok__) => { @@ -4748,17 +3527,11 @@ impl IManagedObjectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInPool(this: *mut core::ffi::c_void, binpool: super::super::Foundation::BOOL, ppooledobj: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IManagedObjectInfo_Impl, - { + unsafe extern "system" fn SetInPool(this: *mut core::ffi::c_void, binpool: super::super::Foundation::BOOL, ppooledobj: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedObjectInfo_Impl::SetInPool(this, core::mem::transmute_copy(&binpool), windows_core::from_raw_borrowed(&ppooledobj)).into() } - unsafe extern "system" fn SetWrapperStrength(this: *mut core::ffi::c_void, bstrong: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IManagedObjectInfo_Impl, - { + unsafe extern "system" fn SetWrapperStrength(this: *mut core::ffi::c_void, bstrong: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedObjectInfo_Impl::SetWrapperStrength(this, core::mem::transmute_copy(&bstrong)).into() } @@ -4774,19 +3547,13 @@ impl IManagedObjectInfo_Vtbl { iid == &::IID } } -pub trait IManagedPoolAction_Impl: Sized { +pub trait IManagedPoolAction_Impl: Sized + windows_core::IUnknownImpl { fn LastRelease(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IManagedPoolAction {} impl IManagedPoolAction_Vtbl { - pub const fn new() -> IManagedPoolAction_Vtbl - where - Identity: IManagedPoolAction_Impl, - { - unsafe extern "system" fn LastRelease(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IManagedPoolAction_Impl, - { + pub const fn new() -> IManagedPoolAction_Vtbl { + unsafe extern "system" fn LastRelease(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedPoolAction_Impl::LastRelease(this).into() } @@ -4796,19 +3563,13 @@ impl IManagedPoolAction_Vtbl { iid == &::IID } } -pub trait IManagedPooledObj_Impl: Sized { +pub trait IManagedPooledObj_Impl: Sized + windows_core::IUnknownImpl { fn SetHeld(&self, m_bheld: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IManagedPooledObj {} impl IManagedPooledObj_Vtbl { - pub const fn new() -> IManagedPooledObj_Vtbl - where - Identity: IManagedPooledObj_Impl, - { - unsafe extern "system" fn SetHeld(this: *mut core::ffi::c_void, m_bheld: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IManagedPooledObj_Impl, - { + pub const fn new() -> IManagedPooledObj_Vtbl { + unsafe extern "system" fn SetHeld(this: *mut core::ffi::c_void, m_bheld: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedPooledObj_Impl::SetHeld(this, core::mem::transmute_copy(&m_bheld)).into() } @@ -4832,14 +3593,8 @@ pub trait IMessageMover_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMessageMover {} #[cfg(feature = "Win32_System_Com")] impl IMessageMover_Vtbl { - pub const fn new() -> IMessageMover_Vtbl - where - Identity: IMessageMover_Impl, - { - unsafe extern "system" fn SourcePath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMessageMover_Impl, - { + pub const fn new() -> IMessageMover_Vtbl { + unsafe extern "system" fn SourcePath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMessageMover_Impl::SourcePath(this) { Ok(ok__) => { @@ -4849,17 +3604,11 @@ impl IMessageMover_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMessageMover_Impl, - { + unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageMover_Impl::SetSourcePath(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn DestPath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMessageMover_Impl, - { + unsafe extern "system" fn DestPath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMessageMover_Impl::DestPath(this) { Ok(ok__) => { @@ -4869,17 +3618,11 @@ impl IMessageMover_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDestPath(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMessageMover_Impl, - { + unsafe extern "system" fn SetDestPath(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageMover_Impl::SetDestPath(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn CommitBatchSize(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMessageMover_Impl, - { + unsafe extern "system" fn CommitBatchSize(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMessageMover_Impl::CommitBatchSize(this) { Ok(ok__) => { @@ -4889,17 +3632,11 @@ impl IMessageMover_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCommitBatchSize(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IMessageMover_Impl, - { + unsafe extern "system" fn SetCommitBatchSize(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageMover_Impl::SetCommitBatchSize(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn MoveMessages(this: *mut core::ffi::c_void, plmessagesmoved: *mut i32) -> windows_core::HRESULT - where - Identity: IMessageMover_Impl, - { + unsafe extern "system" fn MoveMessages(this: *mut core::ffi::c_void, plmessagesmoved: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMessageMover_Impl::MoveMessages(this) { Ok(ok__) => { @@ -4936,14 +3673,8 @@ pub trait IMtsEventInfo_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMtsEventInfo {} #[cfg(feature = "Win32_System_Com")] impl IMtsEventInfo_Vtbl { - pub const fn new() -> IMtsEventInfo_Vtbl - where - Identity: IMtsEventInfo_Impl, - { - unsafe extern "system" fn Names(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMtsEventInfo_Impl, - { + pub const fn new() -> IMtsEventInfo_Vtbl { + unsafe extern "system" fn Names(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsEventInfo_Impl::Names(this) { Ok(ok__) => { @@ -4953,10 +3684,7 @@ impl IMtsEventInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, sdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMtsEventInfo_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, sdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsEventInfo_Impl::DisplayName(this) { Ok(ok__) => { @@ -4966,10 +3694,7 @@ impl IMtsEventInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventID(this: *mut core::ffi::c_void, sguideventid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMtsEventInfo_Impl, - { + unsafe extern "system" fn EventID(this: *mut core::ffi::c_void, sguideventid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsEventInfo_Impl::EventID(this) { Ok(ok__) => { @@ -4979,10 +3704,7 @@ impl IMtsEventInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT - where - Identity: IMtsEventInfo_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsEventInfo_Impl::Count(this) { Ok(ok__) => { @@ -4992,10 +3714,7 @@ impl IMtsEventInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Value(this: *mut core::ffi::c_void, skey: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMtsEventInfo_Impl, - { + unsafe extern "system" fn get_Value(this: *mut core::ffi::c_void, skey: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsEventInfo_Impl::get_Value(this, core::mem::transmute(&skey)) { Ok(ok__) => { @@ -5030,14 +3749,8 @@ pub trait IMtsEvents_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMtsEvents {} #[cfg(feature = "Win32_System_Com")] impl IMtsEvents_Vtbl { - pub const fn new() -> IMtsEvents_Vtbl - where - Identity: IMtsEvents_Impl, - { - unsafe extern "system" fn PackageName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMtsEvents_Impl, - { + pub const fn new() -> IMtsEvents_Vtbl { + unsafe extern "system" fn PackageName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsEvents_Impl::PackageName(this) { Ok(ok__) => { @@ -5047,10 +3760,7 @@ impl IMtsEvents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PackageGuid(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMtsEvents_Impl, - { + unsafe extern "system" fn PackageGuid(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsEvents_Impl::PackageGuid(this) { Ok(ok__) => { @@ -5060,17 +3770,11 @@ impl IMtsEvents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PostEvent(this: *mut core::ffi::c_void, vevent: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMtsEvents_Impl, - { + unsafe extern "system" fn PostEvent(this: *mut core::ffi::c_void, vevent: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMtsEvents_Impl::PostEvent(this, core::mem::transmute_copy(&vevent)).into() } - unsafe extern "system" fn FireEvents(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMtsEvents_Impl, - { + unsafe extern "system" fn FireEvents(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsEvents_Impl::FireEvents(this) { Ok(ok__) => { @@ -5080,10 +3784,7 @@ impl IMtsEvents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessID(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT - where - Identity: IMtsEvents_Impl, - { + unsafe extern "system" fn GetProcessID(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsEvents_Impl::GetProcessID(this) { Ok(ok__) => { @@ -5116,14 +3817,8 @@ pub trait IMtsGrp_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMtsGrp {} #[cfg(feature = "Win32_System_Com")] impl IMtsGrp_Vtbl { - pub const fn new() -> IMtsGrp_Vtbl - where - Identity: IMtsGrp_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IMtsGrp_Impl, - { + pub const fn new() -> IMtsGrp_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsGrp_Impl::Count(this) { Ok(ok__) => { @@ -5133,10 +3828,7 @@ impl IMtsGrp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, lindex: i32, ppunkdispatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMtsGrp_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, lindex: i32, ppunkdispatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMtsGrp_Impl::Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -5146,10 +3838,7 @@ impl IMtsGrp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMtsGrp_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMtsGrp_Impl::Refresh(this).into() } @@ -5164,7 +3853,7 @@ impl IMtsGrp_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IObjPool_Impl: Sized { +pub trait IObjPool_Impl: Sized + windows_core::IUnknownImpl { fn Reserved1(&self); fn Reserved2(&self); fn Reserved3(&self); @@ -5175,56 +3864,32 @@ pub trait IObjPool_Impl: Sized { } impl windows_core::RuntimeName for IObjPool {} impl IObjPool_Vtbl { - pub const fn new() -> IObjPool_Vtbl - where - Identity: IObjPool_Impl, - { - unsafe extern "system" fn Reserved1(this: *mut core::ffi::c_void) - where - Identity: IObjPool_Impl, - { + pub const fn new() -> IObjPool_Vtbl { + unsafe extern "system" fn Reserved1(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjPool_Impl::Reserved1(this) } - unsafe extern "system" fn Reserved2(this: *mut core::ffi::c_void) - where - Identity: IObjPool_Impl, - { + unsafe extern "system" fn Reserved2(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjPool_Impl::Reserved2(this) } - unsafe extern "system" fn Reserved3(this: *mut core::ffi::c_void) - where - Identity: IObjPool_Impl, - { + unsafe extern "system" fn Reserved3(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjPool_Impl::Reserved3(this) } - unsafe extern "system" fn Reserved4(this: *mut core::ffi::c_void) - where - Identity: IObjPool_Impl, - { + unsafe extern "system" fn Reserved4(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjPool_Impl::Reserved4(this) } - unsafe extern "system" fn PutEndTx(this: *mut core::ffi::c_void, pobj: *mut core::ffi::c_void) - where - Identity: IObjPool_Impl, - { + unsafe extern "system" fn PutEndTx(this: *mut core::ffi::c_void, pobj: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjPool_Impl::PutEndTx(this, windows_core::from_raw_borrowed(&pobj)) } - unsafe extern "system" fn Reserved5(this: *mut core::ffi::c_void) - where - Identity: IObjPool_Impl, - { + unsafe extern "system" fn Reserved5(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjPool_Impl::Reserved5(this) } - unsafe extern "system" fn Reserved6(this: *mut core::ffi::c_void) - where - Identity: IObjPool_Impl, - { + unsafe extern "system" fn Reserved6(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjPool_Impl::Reserved6(this) } @@ -5244,21 +3909,15 @@ impl IObjPool_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IObjectConstruct_Impl: Sized { +pub trait IObjectConstruct_Impl: Sized + windows_core::IUnknownImpl { fn Construct(&self, pctorobj: Option<&super::Com::IDispatch>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IObjectConstruct {} #[cfg(feature = "Win32_System_Com")] impl IObjectConstruct_Vtbl { - pub const fn new() -> IObjectConstruct_Vtbl - where - Identity: IObjectConstruct_Impl, - { - unsafe extern "system" fn Construct(this: *mut core::ffi::c_void, pctorobj: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectConstruct_Impl, - { + pub const fn new() -> IObjectConstruct_Vtbl { + unsafe extern "system" fn Construct(this: *mut core::ffi::c_void, pctorobj: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectConstruct_Impl::Construct(this, windows_core::from_raw_borrowed(&pctorobj)).into() } @@ -5276,14 +3935,8 @@ pub trait IObjectConstructString_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IObjectConstructString {} #[cfg(feature = "Win32_System_Com")] impl IObjectConstructString_Vtbl { - pub const fn new() -> IObjectConstructString_Vtbl - where - Identity: IObjectConstructString_Impl, - { - unsafe extern "system" fn ConstructString(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IObjectConstructString_Impl, - { + pub const fn new() -> IObjectConstructString_Vtbl { + unsafe extern "system" fn ConstructString(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectConstructString_Impl::ConstructString(this, core::mem::transmute_copy(&pval)).into() } @@ -5293,7 +3946,7 @@ impl IObjectConstructString_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IObjectContext_Impl: Sized { +pub trait IObjectContext_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetComplete(&self) -> windows_core::Result<()>; fn SetAbort(&self) -> windows_core::Result<()>; @@ -5305,63 +3958,36 @@ pub trait IObjectContext_Impl: Sized { } impl windows_core::RuntimeName for IObjectContext {} impl IObjectContext_Vtbl { - pub const fn new() -> IObjectContext_Vtbl - where - Identity: IObjectContext_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectContext_Impl, - { + pub const fn new() -> IObjectContext_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::CreateInstance(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn SetComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectContext_Impl, - { + unsafe extern "system" fn SetComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::SetComplete(this).into() } - unsafe extern "system" fn SetAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectContext_Impl, - { + unsafe extern "system" fn SetAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::SetAbort(this).into() } - unsafe extern "system" fn EnableCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectContext_Impl, - { + unsafe extern "system" fn EnableCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::EnableCommit(this).into() } - unsafe extern "system" fn DisableCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectContext_Impl, - { + unsafe extern "system" fn DisableCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::DisableCommit(this).into() } - unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IObjectContext_Impl, - { + unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::IsInTransaction(this) } - unsafe extern "system" fn IsSecurityEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IObjectContext_Impl, - { + unsafe extern "system" fn IsSecurityEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::IsSecurityEnabled(this) } - unsafe extern "system" fn IsCallerInRole(this: *mut core::ffi::c_void, bstrrole: core::mem::MaybeUninit, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IObjectContext_Impl, - { + unsafe extern "system" fn IsCallerInRole(this: *mut core::ffi::c_void, bstrrole: core::mem::MaybeUninit, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::IsCallerInRole(this, core::mem::transmute(&bstrrole), core::mem::transmute_copy(&pfisinrole)).into() } @@ -5381,19 +4007,13 @@ impl IObjectContext_Vtbl { iid == &::IID } } -pub trait IObjectContextActivity_Impl: Sized { +pub trait IObjectContextActivity_Impl: Sized + windows_core::IUnknownImpl { fn GetActivityId(&self, pguid: *mut windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjectContextActivity {} impl IObjectContextActivity_Vtbl { - pub const fn new() -> IObjectContextActivity_Vtbl - where - Identity: IObjectContextActivity_Impl, - { - unsafe extern "system" fn GetActivityId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IObjectContextActivity_Impl, - { + pub const fn new() -> IObjectContextActivity_Vtbl { + unsafe extern "system" fn GetActivityId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContextActivity_Impl::GetActivityId(this, core::mem::transmute_copy(&pguid)).into() } @@ -5403,7 +4023,7 @@ impl IObjectContextActivity_Vtbl { iid == &::IID } } -pub trait IObjectContextInfo_Impl: Sized { +pub trait IObjectContextInfo_Impl: Sized + windows_core::IUnknownImpl { fn IsInTransaction(&self) -> super::super::Foundation::BOOL; fn GetTransaction(&self) -> windows_core::Result; fn GetTransactionId(&self, pguid: *mut windows_core::GUID) -> windows_core::Result<()>; @@ -5412,21 +4032,12 @@ pub trait IObjectContextInfo_Impl: Sized { } impl windows_core::RuntimeName for IObjectContextInfo {} impl IObjectContextInfo_Vtbl { - pub const fn new() -> IObjectContextInfo_Vtbl - where - Identity: IObjectContextInfo_Impl, - { - unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IObjectContextInfo_Impl, - { + pub const fn new() -> IObjectContextInfo_Vtbl { + unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContextInfo_Impl::IsInTransaction(this) } - unsafe extern "system" fn GetTransaction(this: *mut core::ffi::c_void, pptrans: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectContextInfo_Impl, - { + unsafe extern "system" fn GetTransaction(this: *mut core::ffi::c_void, pptrans: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectContextInfo_Impl::GetTransaction(this) { Ok(ok__) => { @@ -5436,24 +4047,15 @@ impl IObjectContextInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransactionId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IObjectContextInfo_Impl, - { + unsafe extern "system" fn GetTransactionId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContextInfo_Impl::GetTransactionId(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn GetActivityId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IObjectContextInfo_Impl, - { + unsafe extern "system" fn GetActivityId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContextInfo_Impl::GetActivityId(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn GetContextId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IObjectContextInfo_Impl, - { + unsafe extern "system" fn GetContextId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContextInfo_Impl::GetContextId(this, core::mem::transmute_copy(&pguid)).into() } @@ -5477,28 +4079,16 @@ pub trait IObjectContextInfo2_Impl: Sized + IObjectContextInfo_Impl { } impl windows_core::RuntimeName for IObjectContextInfo2 {} impl IObjectContextInfo2_Vtbl { - pub const fn new() -> IObjectContextInfo2_Vtbl - where - Identity: IObjectContextInfo2_Impl, - { - unsafe extern "system" fn GetPartitionId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IObjectContextInfo2_Impl, - { + pub const fn new() -> IObjectContextInfo2_Vtbl { + unsafe extern "system" fn GetPartitionId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContextInfo2_Impl::GetPartitionId(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn GetApplicationId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IObjectContextInfo2_Impl, - { + unsafe extern "system" fn GetApplicationId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContextInfo2_Impl::GetApplicationId(this, core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn GetApplicationInstanceId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IObjectContextInfo2_Impl, - { + unsafe extern "system" fn GetApplicationInstanceId(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContextInfo2_Impl::GetApplicationInstanceId(this, core::mem::transmute_copy(&pguid)).into() } @@ -5513,19 +4103,13 @@ impl IObjectContextInfo2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IObjectContextTip_Impl: Sized { +pub trait IObjectContextTip_Impl: Sized + windows_core::IUnknownImpl { fn GetTipUrl(&self, ptipurl: *mut windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjectContextTip {} impl IObjectContextTip_Vtbl { - pub const fn new() -> IObjectContextTip_Vtbl - where - Identity: IObjectContextTip_Impl, - { - unsafe extern "system" fn GetTipUrl(this: *mut core::ffi::c_void, ptipurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IObjectContextTip_Impl, - { + pub const fn new() -> IObjectContextTip_Vtbl { + unsafe extern "system" fn GetTipUrl(this: *mut core::ffi::c_void, ptipurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContextTip_Impl::GetTipUrl(this, core::mem::transmute_copy(&ptipurl)).into() } @@ -5535,35 +4119,23 @@ impl IObjectContextTip_Vtbl { iid == &::IID } } -pub trait IObjectControl_Impl: Sized { +pub trait IObjectControl_Impl: Sized + windows_core::IUnknownImpl { fn Activate(&self) -> windows_core::Result<()>; fn Deactivate(&self); fn CanBePooled(&self) -> super::super::Foundation::BOOL; } impl windows_core::RuntimeName for IObjectControl {} impl IObjectControl_Vtbl { - pub const fn new() -> IObjectControl_Vtbl - where - Identity: IObjectControl_Impl, - { - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectControl_Impl, - { + pub const fn new() -> IObjectControl_Vtbl { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectControl_Impl::Activate(this).into() } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) - where - Identity: IObjectControl_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectControl_Impl::Deactivate(this) } - unsafe extern "system" fn CanBePooled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IObjectControl_Impl, - { + unsafe extern "system" fn CanBePooled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectControl_Impl::CanBePooled(this) } @@ -5578,27 +4150,18 @@ impl IObjectControl_Vtbl { iid == &::IID } } -pub trait IPlaybackControl_Impl: Sized { +pub trait IPlaybackControl_Impl: Sized + windows_core::IUnknownImpl { fn FinalClientRetry(&self) -> windows_core::Result<()>; fn FinalServerRetry(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPlaybackControl {} impl IPlaybackControl_Vtbl { - pub const fn new() -> IPlaybackControl_Vtbl - where - Identity: IPlaybackControl_Impl, - { - unsafe extern "system" fn FinalClientRetry(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlaybackControl_Impl, - { + pub const fn new() -> IPlaybackControl_Vtbl { + unsafe extern "system" fn FinalClientRetry(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlaybackControl_Impl::FinalClientRetry(this).into() } - unsafe extern "system" fn FinalServerRetry(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlaybackControl_Impl, - { + unsafe extern "system" fn FinalServerRetry(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlaybackControl_Impl::FinalServerRetry(this).into() } @@ -5620,14 +4183,8 @@ pub trait IPoolManager_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IPoolManager {} #[cfg(feature = "Win32_System_Com")] impl IPoolManager_Vtbl { - pub const fn new() -> IPoolManager_Vtbl - where - Identity: IPoolManager_Impl, - { - unsafe extern "system" fn ShutdownPool(this: *mut core::ffi::c_void, clsidorprogid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPoolManager_Impl, - { + pub const fn new() -> IPoolManager_Vtbl { + unsafe extern "system" fn ShutdownPool(this: *mut core::ffi::c_void, clsidorprogid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPoolManager_Impl::ShutdownPool(this, core::mem::transmute(&clsidorprogid)).into() } @@ -5637,27 +4194,18 @@ impl IPoolManager_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IProcessInitializer_Impl: Sized { +pub trait IProcessInitializer_Impl: Sized + windows_core::IUnknownImpl { fn Startup(&self, punkprocesscontrol: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Shutdown(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IProcessInitializer {} impl IProcessInitializer_Vtbl { - pub const fn new() -> IProcessInitializer_Vtbl - where - Identity: IProcessInitializer_Impl, - { - unsafe extern "system" fn Startup(this: *mut core::ffi::c_void, punkprocesscontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProcessInitializer_Impl, - { + pub const fn new() -> IProcessInitializer_Vtbl { + unsafe extern "system" fn Startup(this: *mut core::ffi::c_void, punkprocesscontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProcessInitializer_Impl::Startup(this, windows_core::from_raw_borrowed(&punkprocesscontrol)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProcessInitializer_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProcessInitializer_Impl::Shutdown(this).into() } @@ -5680,14 +4228,8 @@ pub trait ISecurityCallContext_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISecurityCallContext {} #[cfg(feature = "Win32_System_Com")] impl ISecurityCallContext_Vtbl { - pub const fn new() -> ISecurityCallContext_Vtbl - where - Identity: ISecurityCallContext_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISecurityCallContext_Impl, - { + pub const fn new() -> ISecurityCallContext_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityCallContext_Impl::Count(this) { Ok(ok__) => { @@ -5697,10 +4239,7 @@ impl ISecurityCallContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISecurityCallContext_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityCallContext_Impl::get_Item(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -5710,10 +4249,7 @@ impl ISecurityCallContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISecurityCallContext_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityCallContext_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5723,10 +4259,7 @@ impl ISecurityCallContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCallerInRole(this: *mut core::ffi::c_void, bstrrole: core::mem::MaybeUninit, pfinrole: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISecurityCallContext_Impl, - { + unsafe extern "system" fn IsCallerInRole(this: *mut core::ffi::c_void, bstrrole: core::mem::MaybeUninit, pfinrole: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityCallContext_Impl::IsCallerInRole(this, core::mem::transmute(&bstrrole)) { Ok(ok__) => { @@ -5736,10 +4269,7 @@ impl ISecurityCallContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSecurityEnabled(this: *mut core::ffi::c_void, pfisenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISecurityCallContext_Impl, - { + unsafe extern "system" fn IsSecurityEnabled(this: *mut core::ffi::c_void, pfisenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityCallContext_Impl::IsSecurityEnabled(this) { Ok(ok__) => { @@ -5749,10 +4279,7 @@ impl ISecurityCallContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsUserInRole(this: *mut core::ffi::c_void, puser: *const core::mem::MaybeUninit, bstrrole: core::mem::MaybeUninit, pfinrole: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISecurityCallContext_Impl, - { + unsafe extern "system" fn IsUserInRole(this: *mut core::ffi::c_void, puser: *const core::mem::MaybeUninit, bstrrole: core::mem::MaybeUninit, pfinrole: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityCallContext_Impl::IsUserInRole(this, core::mem::transmute_copy(&puser), core::mem::transmute(&bstrrole)) { Ok(ok__) => { @@ -5786,14 +4313,8 @@ pub trait ISecurityCallersColl_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISecurityCallersColl {} #[cfg(feature = "Win32_System_Com")] impl ISecurityCallersColl_Vtbl { - pub const fn new() -> ISecurityCallersColl_Vtbl - where - Identity: ISecurityCallersColl_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISecurityCallersColl_Impl, - { + pub const fn new() -> ISecurityCallersColl_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityCallersColl_Impl::Count(this) { Ok(ok__) => { @@ -5803,10 +4324,7 @@ impl ISecurityCallersColl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISecurityCallersColl_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityCallersColl_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -5816,10 +4334,7 @@ impl ISecurityCallersColl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISecurityCallersColl_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityCallersColl_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5850,14 +4365,8 @@ pub trait ISecurityIdentityColl_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISecurityIdentityColl {} #[cfg(feature = "Win32_System_Com")] impl ISecurityIdentityColl_Vtbl { - pub const fn new() -> ISecurityIdentityColl_Vtbl - where - Identity: ISecurityIdentityColl_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISecurityIdentityColl_Impl, - { + pub const fn new() -> ISecurityIdentityColl_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityIdentityColl_Impl::Count(this) { Ok(ok__) => { @@ -5867,10 +4376,7 @@ impl ISecurityIdentityColl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISecurityIdentityColl_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityIdentityColl_Impl::get_Item(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -5880,10 +4386,7 @@ impl ISecurityIdentityColl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISecurityIdentityColl_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityIdentityColl_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5905,7 +4408,7 @@ impl ISecurityIdentityColl_Vtbl { } } #[cfg(feature = "Win32_Security")] -pub trait ISecurityProperty_Impl: Sized { +pub trait ISecurityProperty_Impl: Sized + windows_core::IUnknownImpl { fn GetDirectCreatorSID(&self, psid: *mut super::super::Security::PSID) -> windows_core::Result<()>; fn GetOriginalCreatorSID(&self, psid: *mut super::super::Security::PSID) -> windows_core::Result<()>; fn GetDirectCallerSID(&self, psid: *mut super::super::Security::PSID) -> windows_core::Result<()>; @@ -5916,42 +4419,24 @@ pub trait ISecurityProperty_Impl: Sized { impl windows_core::RuntimeName for ISecurityProperty {} #[cfg(feature = "Win32_Security")] impl ISecurityProperty_Vtbl { - pub const fn new() -> ISecurityProperty_Vtbl - where - Identity: ISecurityProperty_Impl, - { - unsafe extern "system" fn GetDirectCreatorSID(this: *mut core::ffi::c_void, psid: *mut super::super::Security::PSID) -> windows_core::HRESULT - where - Identity: ISecurityProperty_Impl, - { + pub const fn new() -> ISecurityProperty_Vtbl { + unsafe extern "system" fn GetDirectCreatorSID(this: *mut core::ffi::c_void, psid: *mut super::super::Security::PSID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityProperty_Impl::GetDirectCreatorSID(this, core::mem::transmute_copy(&psid)).into() } - unsafe extern "system" fn GetOriginalCreatorSID(this: *mut core::ffi::c_void, psid: *mut super::super::Security::PSID) -> windows_core::HRESULT - where - Identity: ISecurityProperty_Impl, - { + unsafe extern "system" fn GetOriginalCreatorSID(this: *mut core::ffi::c_void, psid: *mut super::super::Security::PSID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityProperty_Impl::GetOriginalCreatorSID(this, core::mem::transmute_copy(&psid)).into() } - unsafe extern "system" fn GetDirectCallerSID(this: *mut core::ffi::c_void, psid: *mut super::super::Security::PSID) -> windows_core::HRESULT - where - Identity: ISecurityProperty_Impl, - { + unsafe extern "system" fn GetDirectCallerSID(this: *mut core::ffi::c_void, psid: *mut super::super::Security::PSID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityProperty_Impl::GetDirectCallerSID(this, core::mem::transmute_copy(&psid)).into() } - unsafe extern "system" fn GetOriginalCallerSID(this: *mut core::ffi::c_void, psid: *mut super::super::Security::PSID) -> windows_core::HRESULT - where - Identity: ISecurityProperty_Impl, - { + unsafe extern "system" fn GetOriginalCallerSID(this: *mut core::ffi::c_void, psid: *mut super::super::Security::PSID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityProperty_Impl::GetOriginalCallerSID(this, core::mem::transmute_copy(&psid)).into() } - unsafe extern "system" fn ReleaseSID(this: *mut core::ffi::c_void, psid: super::super::Security::PSID) -> windows_core::HRESULT - where - Identity: ISecurityProperty_Impl, - { + unsafe extern "system" fn ReleaseSID(this: *mut core::ffi::c_void, psid: super::super::Security::PSID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityProperty_Impl::ReleaseSID(this, core::mem::transmute_copy(&psid)).into() } @@ -5968,27 +4453,18 @@ impl ISecurityProperty_Vtbl { iid == &::IID } } -pub trait ISelectCOMLBServer_Impl: Sized { +pub trait ISelectCOMLBServer_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self) -> windows_core::Result<()>; fn GetLBServer(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISelectCOMLBServer {} impl ISelectCOMLBServer_Vtbl { - pub const fn new() -> ISelectCOMLBServer_Vtbl - where - Identity: ISelectCOMLBServer_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISelectCOMLBServer_Impl, - { + pub const fn new() -> ISelectCOMLBServer_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISelectCOMLBServer_Impl::Init(this).into() } - unsafe extern "system" fn GetLBServer(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISelectCOMLBServer_Impl, - { + unsafe extern "system" fn GetLBServer(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISelectCOMLBServer_Impl::GetLBServer(this, windows_core::from_raw_borrowed(&punk)).into() } @@ -5998,27 +4474,18 @@ impl ISelectCOMLBServer_Vtbl { iid == &::IID } } -pub trait ISendMethodEvents_Impl: Sized { +pub trait ISendMethodEvents_Impl: Sized + windows_core::IUnknownImpl { fn SendMethodCall(&self, pidentity: *const core::ffi::c_void, riid: *const windows_core::GUID, dwmeth: u32) -> windows_core::Result<()>; fn SendMethodReturn(&self, pidentity: *const core::ffi::c_void, riid: *const windows_core::GUID, dwmeth: u32, hrcall: windows_core::HRESULT, hrserver: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISendMethodEvents {} impl ISendMethodEvents_Vtbl { - pub const fn new() -> ISendMethodEvents_Vtbl - where - Identity: ISendMethodEvents_Impl, - { - unsafe extern "system" fn SendMethodCall(this: *mut core::ffi::c_void, pidentity: *const core::ffi::c_void, riid: *const windows_core::GUID, dwmeth: u32) -> windows_core::HRESULT - where - Identity: ISendMethodEvents_Impl, - { + pub const fn new() -> ISendMethodEvents_Vtbl { + unsafe extern "system" fn SendMethodCall(this: *mut core::ffi::c_void, pidentity: *const core::ffi::c_void, riid: *const windows_core::GUID, dwmeth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISendMethodEvents_Impl::SendMethodCall(this, core::mem::transmute_copy(&pidentity), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&dwmeth)).into() } - unsafe extern "system" fn SendMethodReturn(this: *mut core::ffi::c_void, pidentity: *const core::ffi::c_void, riid: *const windows_core::GUID, dwmeth: u32, hrcall: windows_core::HRESULT, hrserver: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISendMethodEvents_Impl, - { + unsafe extern "system" fn SendMethodReturn(this: *mut core::ffi::c_void, pidentity: *const core::ffi::c_void, riid: *const windows_core::GUID, dwmeth: u32, hrcall: windows_core::HRESULT, hrserver: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISendMethodEvents_Impl::SendMethodReturn(this, core::mem::transmute_copy(&pidentity), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&dwmeth), core::mem::transmute_copy(&hrcall), core::mem::transmute_copy(&hrserver)).into() } @@ -6032,7 +4499,7 @@ impl ISendMethodEvents_Vtbl { iid == &::IID } } -pub trait IServiceActivity_Impl: Sized { +pub trait IServiceActivity_Impl: Sized + windows_core::IUnknownImpl { fn SynchronousCall(&self, piservicecall: Option<&IServiceCall>) -> windows_core::Result<()>; fn AsynchronousCall(&self, piservicecall: Option<&IServiceCall>) -> windows_core::Result<()>; fn BindToCurrentThread(&self) -> windows_core::Result<()>; @@ -6040,35 +4507,20 @@ pub trait IServiceActivity_Impl: Sized { } impl windows_core::RuntimeName for IServiceActivity {} impl IServiceActivity_Vtbl { - pub const fn new() -> IServiceActivity_Vtbl - where - Identity: IServiceActivity_Impl, - { - unsafe extern "system" fn SynchronousCall(this: *mut core::ffi::c_void, piservicecall: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServiceActivity_Impl, - { + pub const fn new() -> IServiceActivity_Vtbl { + unsafe extern "system" fn SynchronousCall(this: *mut core::ffi::c_void, piservicecall: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceActivity_Impl::SynchronousCall(this, windows_core::from_raw_borrowed(&piservicecall)).into() } - unsafe extern "system" fn AsynchronousCall(this: *mut core::ffi::c_void, piservicecall: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServiceActivity_Impl, - { + unsafe extern "system" fn AsynchronousCall(this: *mut core::ffi::c_void, piservicecall: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceActivity_Impl::AsynchronousCall(this, windows_core::from_raw_borrowed(&piservicecall)).into() } - unsafe extern "system" fn BindToCurrentThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServiceActivity_Impl, - { + unsafe extern "system" fn BindToCurrentThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceActivity_Impl::BindToCurrentThread(this).into() } - unsafe extern "system" fn UnbindFromThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServiceActivity_Impl, - { + unsafe extern "system" fn UnbindFromThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceActivity_Impl::UnbindFromThread(this).into() } @@ -6084,19 +4536,13 @@ impl IServiceActivity_Vtbl { iid == &::IID } } -pub trait IServiceCall_Impl: Sized { +pub trait IServiceCall_Impl: Sized + windows_core::IUnknownImpl { fn OnCall(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServiceCall {} impl IServiceCall_Vtbl { - pub const fn new() -> IServiceCall_Vtbl - where - Identity: IServiceCall_Impl, - { - unsafe extern "system" fn OnCall(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServiceCall_Impl, - { + pub const fn new() -> IServiceCall_Vtbl { + unsafe extern "system" fn OnCall(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceCall_Impl::OnCall(this).into() } @@ -6106,19 +4552,13 @@ impl IServiceCall_Vtbl { iid == &::IID } } -pub trait IServiceComTIIntrinsicsConfig_Impl: Sized { +pub trait IServiceComTIIntrinsicsConfig_Impl: Sized + windows_core::IUnknownImpl { fn ComTIIntrinsicsConfig(&self, comtiintrinsicsconfig: CSC_COMTIIntrinsicsConfig) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServiceComTIIntrinsicsConfig {} impl IServiceComTIIntrinsicsConfig_Vtbl { - pub const fn new() -> IServiceComTIIntrinsicsConfig_Vtbl - where - Identity: IServiceComTIIntrinsicsConfig_Impl, - { - unsafe extern "system" fn ComTIIntrinsicsConfig(this: *mut core::ffi::c_void, comtiintrinsicsconfig: CSC_COMTIIntrinsicsConfig) -> windows_core::HRESULT - where - Identity: IServiceComTIIntrinsicsConfig_Impl, - { + pub const fn new() -> IServiceComTIIntrinsicsConfig_Vtbl { + unsafe extern "system" fn ComTIIntrinsicsConfig(this: *mut core::ffi::c_void, comtiintrinsicsconfig: CSC_COMTIIntrinsicsConfig) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceComTIIntrinsicsConfig_Impl::ComTIIntrinsicsConfig(this, core::mem::transmute_copy(&comtiintrinsicsconfig)).into() } @@ -6128,19 +4568,13 @@ impl IServiceComTIIntrinsicsConfig_Vtbl { iid == &::IID } } -pub trait IServiceIISIntrinsicsConfig_Impl: Sized { +pub trait IServiceIISIntrinsicsConfig_Impl: Sized + windows_core::IUnknownImpl { fn IISIntrinsicsConfig(&self, iisintrinsicsconfig: CSC_IISIntrinsicsConfig) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServiceIISIntrinsicsConfig {} impl IServiceIISIntrinsicsConfig_Vtbl { - pub const fn new() -> IServiceIISIntrinsicsConfig_Vtbl - where - Identity: IServiceIISIntrinsicsConfig_Impl, - { - unsafe extern "system" fn IISIntrinsicsConfig(this: *mut core::ffi::c_void, iisintrinsicsconfig: CSC_IISIntrinsicsConfig) -> windows_core::HRESULT - where - Identity: IServiceIISIntrinsicsConfig_Impl, - { + pub const fn new() -> IServiceIISIntrinsicsConfig_Vtbl { + unsafe extern "system" fn IISIntrinsicsConfig(this: *mut core::ffi::c_void, iisintrinsicsconfig: CSC_IISIntrinsicsConfig) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceIISIntrinsicsConfig_Impl::IISIntrinsicsConfig(this, core::mem::transmute_copy(&iisintrinsicsconfig)).into() } @@ -6150,19 +4584,13 @@ impl IServiceIISIntrinsicsConfig_Vtbl { iid == &::IID } } -pub trait IServiceInheritanceConfig_Impl: Sized { +pub trait IServiceInheritanceConfig_Impl: Sized + windows_core::IUnknownImpl { fn ContainingContextTreatment(&self, inheritanceconfig: CSC_InheritanceConfig) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServiceInheritanceConfig {} impl IServiceInheritanceConfig_Vtbl { - pub const fn new() -> IServiceInheritanceConfig_Vtbl - where - Identity: IServiceInheritanceConfig_Impl, - { - unsafe extern "system" fn ContainingContextTreatment(this: *mut core::ffi::c_void, inheritanceconfig: CSC_InheritanceConfig) -> windows_core::HRESULT - where - Identity: IServiceInheritanceConfig_Impl, - { + pub const fn new() -> IServiceInheritanceConfig_Vtbl { + unsafe extern "system" fn ContainingContextTreatment(this: *mut core::ffi::c_void, inheritanceconfig: CSC_InheritanceConfig) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceInheritanceConfig_Impl::ContainingContextTreatment(this, core::mem::transmute_copy(&inheritanceconfig)).into() } @@ -6172,27 +4600,18 @@ impl IServiceInheritanceConfig_Vtbl { iid == &::IID } } -pub trait IServicePartitionConfig_Impl: Sized { +pub trait IServicePartitionConfig_Impl: Sized + windows_core::IUnknownImpl { fn PartitionConfig(&self, partitionconfig: CSC_PartitionConfig) -> windows_core::Result<()>; fn PartitionID(&self, guidpartitionid: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServicePartitionConfig {} impl IServicePartitionConfig_Vtbl { - pub const fn new() -> IServicePartitionConfig_Vtbl - where - Identity: IServicePartitionConfig_Impl, - { - unsafe extern "system" fn PartitionConfig(this: *mut core::ffi::c_void, partitionconfig: CSC_PartitionConfig) -> windows_core::HRESULT - where - Identity: IServicePartitionConfig_Impl, - { + pub const fn new() -> IServicePartitionConfig_Vtbl { + unsafe extern "system" fn PartitionConfig(this: *mut core::ffi::c_void, partitionconfig: CSC_PartitionConfig) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePartitionConfig_Impl::PartitionConfig(this, core::mem::transmute_copy(&partitionconfig)).into() } - unsafe extern "system" fn PartitionID(this: *mut core::ffi::c_void, guidpartitionid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IServicePartitionConfig_Impl, - { + unsafe extern "system" fn PartitionID(this: *mut core::ffi::c_void, guidpartitionid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePartitionConfig_Impl::PartitionID(this, core::mem::transmute_copy(&guidpartitionid)).into() } @@ -6206,35 +4625,23 @@ impl IServicePartitionConfig_Vtbl { iid == &::IID } } -pub trait IServicePool_Impl: Sized { +pub trait IServicePool_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, ppoolconfig: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetObject(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Shutdown(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServicePool {} impl IServicePool_Vtbl { - pub const fn new() -> IServicePool_Vtbl - where - Identity: IServicePool_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, ppoolconfig: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServicePool_Impl, - { + pub const fn new() -> IServicePool_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, ppoolconfig: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePool_Impl::Initialize(this, windows_core::from_raw_borrowed(&ppoolconfig)).into() } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServicePool_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePool_Impl::GetObject(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServicePool_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePool_Impl::Shutdown(this).into() } @@ -6250,7 +4657,7 @@ impl IServicePool_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IServicePoolConfig_Impl: Sized { +pub trait IServicePoolConfig_Impl: Sized + windows_core::IUnknownImpl { fn SetMaxPoolSize(&self, dwmaxpool: u32) -> windows_core::Result<()>; fn MaxPoolSize(&self, pdwmaxpool: *mut u32) -> windows_core::Result<()>; fn SetMinPoolSize(&self, dwminpool: u32) -> windows_core::Result<()>; @@ -6266,77 +4673,44 @@ pub trait IServicePoolConfig_Impl: Sized { impl windows_core::RuntimeName for IServicePoolConfig {} #[cfg(feature = "Win32_System_Com")] impl IServicePoolConfig_Vtbl { - pub const fn new() -> IServicePoolConfig_Vtbl - where - Identity: IServicePoolConfig_Impl, - { - unsafe extern "system" fn SetMaxPoolSize(this: *mut core::ffi::c_void, dwmaxpool: u32) -> windows_core::HRESULT - where - Identity: IServicePoolConfig_Impl, - { + pub const fn new() -> IServicePoolConfig_Vtbl { + unsafe extern "system" fn SetMaxPoolSize(this: *mut core::ffi::c_void, dwmaxpool: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::SetMaxPoolSize(this, core::mem::transmute_copy(&dwmaxpool)).into() } - unsafe extern "system" fn MaxPoolSize(this: *mut core::ffi::c_void, pdwmaxpool: *mut u32) -> windows_core::HRESULT - where - Identity: IServicePoolConfig_Impl, - { + unsafe extern "system" fn MaxPoolSize(this: *mut core::ffi::c_void, pdwmaxpool: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::MaxPoolSize(this, core::mem::transmute_copy(&pdwmaxpool)).into() } - unsafe extern "system" fn SetMinPoolSize(this: *mut core::ffi::c_void, dwminpool: u32) -> windows_core::HRESULT - where - Identity: IServicePoolConfig_Impl, - { + unsafe extern "system" fn SetMinPoolSize(this: *mut core::ffi::c_void, dwminpool: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::SetMinPoolSize(this, core::mem::transmute_copy(&dwminpool)).into() } - unsafe extern "system" fn MinPoolSize(this: *mut core::ffi::c_void, pdwminpool: *mut u32) -> windows_core::HRESULT - where - Identity: IServicePoolConfig_Impl, - { + unsafe extern "system" fn MinPoolSize(this: *mut core::ffi::c_void, pdwminpool: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::MinPoolSize(this, core::mem::transmute_copy(&pdwminpool)).into() } - unsafe extern "system" fn SetCreationTimeout(this: *mut core::ffi::c_void, dwcreationtimeout: u32) -> windows_core::HRESULT - where - Identity: IServicePoolConfig_Impl, - { + unsafe extern "system" fn SetCreationTimeout(this: *mut core::ffi::c_void, dwcreationtimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::SetCreationTimeout(this, core::mem::transmute_copy(&dwcreationtimeout)).into() } - unsafe extern "system" fn CreationTimeout(this: *mut core::ffi::c_void, pdwcreationtimeout: *mut u32) -> windows_core::HRESULT - where - Identity: IServicePoolConfig_Impl, - { + unsafe extern "system" fn CreationTimeout(this: *mut core::ffi::c_void, pdwcreationtimeout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::CreationTimeout(this, core::mem::transmute_copy(&pdwcreationtimeout)).into() } - unsafe extern "system" fn SetTransactionAffinity(this: *mut core::ffi::c_void, ftxaffinity: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IServicePoolConfig_Impl, - { + unsafe extern "system" fn SetTransactionAffinity(this: *mut core::ffi::c_void, ftxaffinity: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::SetTransactionAffinity(this, core::mem::transmute_copy(&ftxaffinity)).into() } - unsafe extern "system" fn TransactionAffinity(this: *mut core::ffi::c_void, pftxaffinity: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IServicePoolConfig_Impl, - { + unsafe extern "system" fn TransactionAffinity(this: *mut core::ffi::c_void, pftxaffinity: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::TransactionAffinity(this, core::mem::transmute_copy(&pftxaffinity)).into() } - unsafe extern "system" fn SetClassFactory(this: *mut core::ffi::c_void, pfactory: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServicePoolConfig_Impl, - { + unsafe extern "system" fn SetClassFactory(this: *mut core::ffi::c_void, pfactory: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::SetClassFactory(this, windows_core::from_raw_borrowed(&pfactory)).into() } - unsafe extern "system" fn ClassFactory(this: *mut core::ffi::c_void, pfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServicePoolConfig_Impl, - { + unsafe extern "system" fn ClassFactory(this: *mut core::ffi::c_void, pfactory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IServicePoolConfig_Impl::ClassFactory(this) { Ok(ok__) => { @@ -6364,35 +4738,23 @@ impl IServicePoolConfig_Vtbl { iid == &::IID } } -pub trait IServiceSxsConfig_Impl: Sized { +pub trait IServiceSxsConfig_Impl: Sized + windows_core::IUnknownImpl { fn SxsConfig(&self, scsconfig: CSC_SxsConfig) -> windows_core::Result<()>; fn SxsName(&self, szsxsname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SxsDirectory(&self, szsxsdirectory: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServiceSxsConfig {} impl IServiceSxsConfig_Vtbl { - pub const fn new() -> IServiceSxsConfig_Vtbl - where - Identity: IServiceSxsConfig_Impl, - { - unsafe extern "system" fn SxsConfig(this: *mut core::ffi::c_void, scsconfig: CSC_SxsConfig) -> windows_core::HRESULT - where - Identity: IServiceSxsConfig_Impl, - { + pub const fn new() -> IServiceSxsConfig_Vtbl { + unsafe extern "system" fn SxsConfig(this: *mut core::ffi::c_void, scsconfig: CSC_SxsConfig) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceSxsConfig_Impl::SxsConfig(this, core::mem::transmute_copy(&scsconfig)).into() } - unsafe extern "system" fn SxsName(this: *mut core::ffi::c_void, szsxsname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IServiceSxsConfig_Impl, - { + unsafe extern "system" fn SxsName(this: *mut core::ffi::c_void, szsxsname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceSxsConfig_Impl::SxsName(this, core::mem::transmute(&szsxsname)).into() } - unsafe extern "system" fn SxsDirectory(this: *mut core::ffi::c_void, szsxsdirectory: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IServiceSxsConfig_Impl, - { + unsafe extern "system" fn SxsDirectory(this: *mut core::ffi::c_void, szsxsdirectory: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceSxsConfig_Impl::SxsDirectory(this, core::mem::transmute(&szsxsdirectory)).into() } @@ -6407,19 +4769,13 @@ impl IServiceSxsConfig_Vtbl { iid == &::IID } } -pub trait IServiceSynchronizationConfig_Impl: Sized { +pub trait IServiceSynchronizationConfig_Impl: Sized + windows_core::IUnknownImpl { fn ConfigureSynchronization(&self, synchconfig: CSC_SynchronizationConfig) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServiceSynchronizationConfig {} impl IServiceSynchronizationConfig_Vtbl { - pub const fn new() -> IServiceSynchronizationConfig_Vtbl - where - Identity: IServiceSynchronizationConfig_Impl, - { - unsafe extern "system" fn ConfigureSynchronization(this: *mut core::ffi::c_void, synchconfig: CSC_SynchronizationConfig) -> windows_core::HRESULT - where - Identity: IServiceSynchronizationConfig_Impl, - { + pub const fn new() -> IServiceSynchronizationConfig_Vtbl { + unsafe extern "system" fn ConfigureSynchronization(this: *mut core::ffi::c_void, synchconfig: CSC_SynchronizationConfig) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceSynchronizationConfig_Impl::ConfigureSynchronization(this, core::mem::transmute_copy(&synchconfig)).into() } @@ -6437,14 +4793,8 @@ pub trait IServiceSysTxnConfig_Impl: Sized + IServiceTransactionConfig_Impl { impl windows_core::RuntimeName for IServiceSysTxnConfig {} #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl IServiceSysTxnConfig_Vtbl { - pub const fn new() -> IServiceSysTxnConfig_Vtbl - where - Identity: IServiceSysTxnConfig_Impl, - { - unsafe extern "system" fn ConfigureBYOTSysTxn(this: *mut core::ffi::c_void, ptxproxy: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServiceSysTxnConfig_Impl, - { + pub const fn new() -> IServiceSysTxnConfig_Vtbl { + unsafe extern "system" fn ConfigureBYOTSysTxn(this: *mut core::ffi::c_void, ptxproxy: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceSysTxnConfig_Impl::ConfigureBYOTSysTxn(this, windows_core::from_raw_borrowed(&ptxproxy)).into() } @@ -6454,27 +4804,18 @@ impl IServiceSysTxnConfig_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IServiceThreadPoolConfig_Impl: Sized { +pub trait IServiceThreadPoolConfig_Impl: Sized + windows_core::IUnknownImpl { fn SelectThreadPool(&self, threadpool: CSC_ThreadPool) -> windows_core::Result<()>; fn SetBindingInfo(&self, binding: CSC_Binding) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServiceThreadPoolConfig {} impl IServiceThreadPoolConfig_Vtbl { - pub const fn new() -> IServiceThreadPoolConfig_Vtbl - where - Identity: IServiceThreadPoolConfig_Impl, - { - unsafe extern "system" fn SelectThreadPool(this: *mut core::ffi::c_void, threadpool: CSC_ThreadPool) -> windows_core::HRESULT - where - Identity: IServiceThreadPoolConfig_Impl, - { + pub const fn new() -> IServiceThreadPoolConfig_Vtbl { + unsafe extern "system" fn SelectThreadPool(this: *mut core::ffi::c_void, threadpool: CSC_ThreadPool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceThreadPoolConfig_Impl::SelectThreadPool(this, core::mem::transmute_copy(&threadpool)).into() } - unsafe extern "system" fn SetBindingInfo(this: *mut core::ffi::c_void, binding: CSC_Binding) -> windows_core::HRESULT - where - Identity: IServiceThreadPoolConfig_Impl, - { + unsafe extern "system" fn SetBindingInfo(this: *mut core::ffi::c_void, binding: CSC_Binding) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceThreadPoolConfig_Impl::SetBindingInfo(this, core::mem::transmute_copy(&binding)).into() } @@ -6488,19 +4829,13 @@ impl IServiceThreadPoolConfig_Vtbl { iid == &::IID } } -pub trait IServiceTrackerConfig_Impl: Sized { +pub trait IServiceTrackerConfig_Impl: Sized + windows_core::IUnknownImpl { fn TrackerConfig(&self, trackerconfig: CSC_TrackerConfig, sztrackerappname: &windows_core::PCWSTR, sztrackerctxname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IServiceTrackerConfig {} impl IServiceTrackerConfig_Vtbl { - pub const fn new() -> IServiceTrackerConfig_Vtbl - where - Identity: IServiceTrackerConfig_Impl, - { - unsafe extern "system" fn TrackerConfig(this: *mut core::ffi::c_void, trackerconfig: CSC_TrackerConfig, sztrackerappname: windows_core::PCWSTR, sztrackerctxname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IServiceTrackerConfig_Impl, - { + pub const fn new() -> IServiceTrackerConfig_Vtbl { + unsafe extern "system" fn TrackerConfig(this: *mut core::ffi::c_void, trackerconfig: CSC_TrackerConfig, sztrackerappname: windows_core::PCWSTR, sztrackerctxname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceTrackerConfig_Impl::TrackerConfig(this, core::mem::transmute_copy(&trackerconfig), core::mem::transmute(&sztrackerappname), core::mem::transmute(&sztrackerctxname)).into() } @@ -6518,14 +4853,8 @@ pub trait IServiceTransactionConfig_Impl: Sized + IServiceTransactionConfigBase_ impl windows_core::RuntimeName for IServiceTransactionConfig {} #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl IServiceTransactionConfig_Vtbl { - pub const fn new() -> IServiceTransactionConfig_Vtbl - where - Identity: IServiceTransactionConfig_Impl, - { - unsafe extern "system" fn ConfigureBYOT(this: *mut core::ffi::c_void, pitxbyot: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IServiceTransactionConfig_Impl, - { + pub const fn new() -> IServiceTransactionConfig_Vtbl { + unsafe extern "system" fn ConfigureBYOT(this: *mut core::ffi::c_void, pitxbyot: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceTransactionConfig_Impl::ConfigureBYOT(this, windows_core::from_raw_borrowed(&pitxbyot)).into() } @@ -6535,7 +4864,7 @@ impl IServiceTransactionConfig_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IServiceTransactionConfigBase_Impl: Sized { +pub trait IServiceTransactionConfigBase_Impl: Sized + windows_core::IUnknownImpl { fn ConfigureTransaction(&self, transactionconfig: CSC_TransactionConfig) -> windows_core::Result<()>; fn IsolationLevel(&self, option: COMAdminTxIsolationLevelOptions) -> windows_core::Result<()>; fn TransactionTimeout(&self, ultimeoutsec: u32) -> windows_core::Result<()>; @@ -6544,42 +4873,24 @@ pub trait IServiceTransactionConfigBase_Impl: Sized { } impl windows_core::RuntimeName for IServiceTransactionConfigBase {} impl IServiceTransactionConfigBase_Vtbl { - pub const fn new() -> IServiceTransactionConfigBase_Vtbl - where - Identity: IServiceTransactionConfigBase_Impl, - { - unsafe extern "system" fn ConfigureTransaction(this: *mut core::ffi::c_void, transactionconfig: CSC_TransactionConfig) -> windows_core::HRESULT - where - Identity: IServiceTransactionConfigBase_Impl, - { + pub const fn new() -> IServiceTransactionConfigBase_Vtbl { + unsafe extern "system" fn ConfigureTransaction(this: *mut core::ffi::c_void, transactionconfig: CSC_TransactionConfig) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceTransactionConfigBase_Impl::ConfigureTransaction(this, core::mem::transmute_copy(&transactionconfig)).into() } - unsafe extern "system" fn IsolationLevel(this: *mut core::ffi::c_void, option: COMAdminTxIsolationLevelOptions) -> windows_core::HRESULT - where - Identity: IServiceTransactionConfigBase_Impl, - { + unsafe extern "system" fn IsolationLevel(this: *mut core::ffi::c_void, option: COMAdminTxIsolationLevelOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceTransactionConfigBase_Impl::IsolationLevel(this, core::mem::transmute_copy(&option)).into() } - unsafe extern "system" fn TransactionTimeout(this: *mut core::ffi::c_void, ultimeoutsec: u32) -> windows_core::HRESULT - where - Identity: IServiceTransactionConfigBase_Impl, - { + unsafe extern "system" fn TransactionTimeout(this: *mut core::ffi::c_void, ultimeoutsec: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceTransactionConfigBase_Impl::TransactionTimeout(this, core::mem::transmute_copy(&ultimeoutsec)).into() } - unsafe extern "system" fn BringYourOwnTransaction(this: *mut core::ffi::c_void, sztipurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IServiceTransactionConfigBase_Impl, - { + unsafe extern "system" fn BringYourOwnTransaction(this: *mut core::ffi::c_void, sztipurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceTransactionConfigBase_Impl::BringYourOwnTransaction(this, core::mem::transmute(&sztipurl)).into() } - unsafe extern "system" fn NewTransactionDescription(this: *mut core::ffi::c_void, sztxdesc: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IServiceTransactionConfigBase_Impl, - { + unsafe extern "system" fn NewTransactionDescription(this: *mut core::ffi::c_void, sztxdesc: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServiceTransactionConfigBase_Impl::NewTransactionDescription(this, core::mem::transmute(&sztxdesc)).into() } @@ -6605,14 +4916,8 @@ pub trait ISharedProperty_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISharedProperty {} #[cfg(feature = "Win32_System_Com")] impl ISharedProperty_Vtbl { - pub const fn new() -> ISharedProperty_Vtbl - where - Identity: ISharedProperty_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISharedProperty_Impl, - { + pub const fn new() -> ISharedProperty_Vtbl { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISharedProperty_Impl::Value(this) { Ok(ok__) => { @@ -6622,10 +4927,7 @@ impl ISharedProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISharedProperty_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharedProperty_Impl::SetValue(this, core::mem::transmute(&val)).into() } @@ -6646,21 +4948,12 @@ pub trait ISharedPropertyGroup_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISharedPropertyGroup {} #[cfg(feature = "Win32_System_Com")] impl ISharedPropertyGroup_Vtbl { - pub const fn new() -> ISharedPropertyGroup_Vtbl - where - Identity: ISharedPropertyGroup_Impl, - { - unsafe extern "system" fn CreatePropertyByPosition(this: *mut core::ffi::c_void, index: i32, fexists: *mut super::super::Foundation::VARIANT_BOOL, ppprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISharedPropertyGroup_Impl, - { + pub const fn new() -> ISharedPropertyGroup_Vtbl { + unsafe extern "system" fn CreatePropertyByPosition(this: *mut core::ffi::c_void, index: i32, fexists: *mut super::super::Foundation::VARIANT_BOOL, ppprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharedPropertyGroup_Impl::CreatePropertyByPosition(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&fexists), core::mem::transmute_copy(&ppprop)).into() } - unsafe extern "system" fn get_PropertyByPosition(this: *mut core::ffi::c_void, index: i32, ppproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISharedPropertyGroup_Impl, - { + unsafe extern "system" fn get_PropertyByPosition(this: *mut core::ffi::c_void, index: i32, ppproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISharedPropertyGroup_Impl::get_PropertyByPosition(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6670,17 +4963,11 @@ impl ISharedPropertyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, fexists: *mut super::super::Foundation::VARIANT_BOOL, ppprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISharedPropertyGroup_Impl, - { + unsafe extern "system" fn CreateProperty(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, fexists: *mut super::super::Foundation::VARIANT_BOOL, ppprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharedPropertyGroup_Impl::CreateProperty(this, core::mem::transmute(&name), core::mem::transmute_copy(&fexists), core::mem::transmute_copy(&ppprop)).into() } - unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, ppproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISharedPropertyGroup_Impl, - { + unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, ppproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISharedPropertyGroup_Impl::get_Property(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -6712,21 +4999,12 @@ pub trait ISharedPropertyGroupManager_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISharedPropertyGroupManager {} #[cfg(feature = "Win32_System_Com")] impl ISharedPropertyGroupManager_Vtbl { - pub const fn new() -> ISharedPropertyGroupManager_Vtbl - where - Identity: ISharedPropertyGroupManager_Impl, - { - unsafe extern "system" fn CreatePropertyGroup(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, dwisomode: *mut i32, dwrelmode: *mut i32, fexists: *mut super::super::Foundation::VARIANT_BOOL, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISharedPropertyGroupManager_Impl, - { + pub const fn new() -> ISharedPropertyGroupManager_Vtbl { + unsafe extern "system" fn CreatePropertyGroup(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, dwisomode: *mut i32, dwrelmode: *mut i32, fexists: *mut super::super::Foundation::VARIANT_BOOL, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharedPropertyGroupManager_Impl::CreatePropertyGroup(this, 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(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISharedPropertyGroupManager_Impl, - { + unsafe extern "system" fn get_Group(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISharedPropertyGroupManager_Impl::get_Group(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -6736,10 +5014,7 @@ impl ISharedPropertyGroupManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISharedPropertyGroupManager_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISharedPropertyGroupManager_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6760,27 +5035,18 @@ impl ISharedPropertyGroupManager_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISystemAppEventData_Impl: Sized { +pub trait ISystemAppEventData_Impl: Sized + windows_core::IUnknownImpl { fn Startup(&self) -> windows_core::Result<()>; fn OnDataChanged(&self, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: &windows_core::BSTR, dwreason: u32, u64tracehandle: u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISystemAppEventData {} impl ISystemAppEventData_Vtbl { - pub const fn new() -> ISystemAppEventData_Vtbl - where - Identity: ISystemAppEventData_Impl, - { - unsafe extern "system" fn Startup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemAppEventData_Impl, - { + pub const fn new() -> ISystemAppEventData_Vtbl { + unsafe extern "system" fn Startup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemAppEventData_Impl::Startup(this).into() } - unsafe extern "system" fn OnDataChanged(this: *mut core::ffi::c_void, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: core::mem::MaybeUninit, dwreason: u32, u64tracehandle: u64) -> windows_core::HRESULT - where - Identity: ISystemAppEventData_Impl, - { + unsafe extern "system" fn OnDataChanged(this: *mut core::ffi::c_void, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: core::mem::MaybeUninit, dwreason: u32, u64tracehandle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemAppEventData_Impl::OnDataChanged(this, 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() } @@ -6794,7 +5060,7 @@ impl ISystemAppEventData_Vtbl { iid == &::IID } } -pub trait IThreadPoolKnobs_Impl: Sized { +pub trait IThreadPoolKnobs_Impl: Sized + windows_core::IUnknownImpl { fn GetMaxThreads(&self, plcmaxthreads: *mut i32) -> windows_core::Result<()>; fn GetCurrentThreads(&self, plccurrentthreads: *mut i32) -> windows_core::Result<()>; fn SetMaxThreads(&self, lcmaxthreads: i32) -> windows_core::Result<()>; @@ -6808,77 +5074,44 @@ pub trait IThreadPoolKnobs_Impl: Sized { } impl windows_core::RuntimeName for IThreadPoolKnobs {} impl IThreadPoolKnobs_Vtbl { - pub const fn new() -> IThreadPoolKnobs_Vtbl - where - Identity: IThreadPoolKnobs_Impl, - { - unsafe extern "system" fn GetMaxThreads(this: *mut core::ffi::c_void, plcmaxthreads: *mut i32) -> windows_core::HRESULT - where - Identity: IThreadPoolKnobs_Impl, - { + pub const fn new() -> IThreadPoolKnobs_Vtbl { + unsafe extern "system" fn GetMaxThreads(this: *mut core::ffi::c_void, plcmaxthreads: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThreadPoolKnobs_Impl::GetMaxThreads(this, core::mem::transmute_copy(&plcmaxthreads)).into() } - unsafe extern "system" fn GetCurrentThreads(this: *mut core::ffi::c_void, plccurrentthreads: *mut i32) -> windows_core::HRESULT - where - Identity: IThreadPoolKnobs_Impl, - { + unsafe extern "system" fn GetCurrentThreads(this: *mut core::ffi::c_void, plccurrentthreads: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThreadPoolKnobs_Impl::GetCurrentThreads(this, core::mem::transmute_copy(&plccurrentthreads)).into() } - unsafe extern "system" fn SetMaxThreads(this: *mut core::ffi::c_void, lcmaxthreads: i32) -> windows_core::HRESULT - where - Identity: IThreadPoolKnobs_Impl, - { + unsafe extern "system" fn SetMaxThreads(this: *mut core::ffi::c_void, lcmaxthreads: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThreadPoolKnobs_Impl::SetMaxThreads(this, core::mem::transmute_copy(&lcmaxthreads)).into() } - unsafe extern "system" fn GetDeleteDelay(this: *mut core::ffi::c_void, pmsecdeletedelay: *mut i32) -> windows_core::HRESULT - where - Identity: IThreadPoolKnobs_Impl, - { + unsafe extern "system" fn GetDeleteDelay(this: *mut core::ffi::c_void, pmsecdeletedelay: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThreadPoolKnobs_Impl::GetDeleteDelay(this, core::mem::transmute_copy(&pmsecdeletedelay)).into() } - unsafe extern "system" fn SetDeleteDelay(this: *mut core::ffi::c_void, msecdeletedelay: i32) -> windows_core::HRESULT - where - Identity: IThreadPoolKnobs_Impl, - { + unsafe extern "system" fn SetDeleteDelay(this: *mut core::ffi::c_void, msecdeletedelay: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThreadPoolKnobs_Impl::SetDeleteDelay(this, core::mem::transmute_copy(&msecdeletedelay)).into() } - unsafe extern "system" fn GetMaxQueuedRequests(this: *mut core::ffi::c_void, plcmaxqueuedrequests: *mut i32) -> windows_core::HRESULT - where - Identity: IThreadPoolKnobs_Impl, - { + unsafe extern "system" fn GetMaxQueuedRequests(this: *mut core::ffi::c_void, plcmaxqueuedrequests: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThreadPoolKnobs_Impl::GetMaxQueuedRequests(this, core::mem::transmute_copy(&plcmaxqueuedrequests)).into() } - unsafe extern "system" fn GetCurrentQueuedRequests(this: *mut core::ffi::c_void, plccurrentqueuedrequests: *mut i32) -> windows_core::HRESULT - where - Identity: IThreadPoolKnobs_Impl, - { + unsafe extern "system" fn GetCurrentQueuedRequests(this: *mut core::ffi::c_void, plccurrentqueuedrequests: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThreadPoolKnobs_Impl::GetCurrentQueuedRequests(this, core::mem::transmute_copy(&plccurrentqueuedrequests)).into() } - unsafe extern "system" fn SetMaxQueuedRequests(this: *mut core::ffi::c_void, lcmaxqueuedrequests: i32) -> windows_core::HRESULT - where - Identity: IThreadPoolKnobs_Impl, - { + unsafe extern "system" fn SetMaxQueuedRequests(this: *mut core::ffi::c_void, lcmaxqueuedrequests: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThreadPoolKnobs_Impl::SetMaxQueuedRequests(this, core::mem::transmute_copy(&lcmaxqueuedrequests)).into() } - unsafe extern "system" fn SetMinThreads(this: *mut core::ffi::c_void, lcminthreads: i32) -> windows_core::HRESULT - where - Identity: IThreadPoolKnobs_Impl, - { + unsafe extern "system" fn SetMinThreads(this: *mut core::ffi::c_void, lcminthreads: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThreadPoolKnobs_Impl::SetMinThreads(this, core::mem::transmute_copy(&lcminthreads)).into() } - unsafe extern "system" fn SetQueueDepth(this: *mut core::ffi::c_void, lcqueuedepth: i32) -> windows_core::HRESULT - where - Identity: IThreadPoolKnobs_Impl, - { + unsafe extern "system" fn SetQueueDepth(this: *mut core::ffi::c_void, lcqueuedepth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThreadPoolKnobs_Impl::SetQueueDepth(this, core::mem::transmute_copy(&lcqueuedepth)).into() } @@ -6910,14 +5143,8 @@ pub trait ITransactionContext_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITransactionContext {} #[cfg(feature = "Win32_System_Com")] impl ITransactionContext_Vtbl { - pub const fn new() -> ITransactionContext_Vtbl - where - Identity: ITransactionContext_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, pszprogid: core::mem::MaybeUninit, pobject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITransactionContext_Impl, - { + pub const fn new() -> ITransactionContext_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, pszprogid: core::mem::MaybeUninit, pobject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionContext_Impl::CreateInstance(this, core::mem::transmute(&pszprogid)) { Ok(ok__) => { @@ -6927,17 +5154,11 @@ impl ITransactionContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionContext_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionContext_Impl::Commit(this).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionContext_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionContext_Impl::Abort(this).into() } @@ -6952,35 +5173,23 @@ impl ITransactionContext_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITransactionContextEx_Impl: Sized { +pub trait ITransactionContextEx_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Commit(&self) -> windows_core::Result<()>; fn Abort(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransactionContextEx {} impl ITransactionContextEx_Vtbl { - pub const fn new() -> ITransactionContextEx_Vtbl - where - Identity: ITransactionContextEx_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionContextEx_Impl, - { + pub const fn new() -> ITransactionContextEx_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, pobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionContextEx_Impl::CreateInstance(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pobject)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionContextEx_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionContextEx_Impl::Commit(this).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionContextEx_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionContextEx_Impl::Abort(this).into() } @@ -6995,7 +5204,7 @@ impl ITransactionContextEx_Vtbl { iid == &::IID } } -pub trait ITransactionProperty_Impl: Sized { +pub trait ITransactionProperty_Impl: Sized + windows_core::IUnknownImpl { fn Reserved1(&self); fn Reserved2(&self); fn Reserved3(&self); @@ -7017,77 +5226,44 @@ pub trait ITransactionProperty_Impl: Sized { } impl windows_core::RuntimeName for ITransactionProperty {} impl ITransactionProperty_Vtbl { - pub const fn new() -> ITransactionProperty_Vtbl - where - Identity: ITransactionProperty_Impl, - { - unsafe extern "system" fn Reserved1(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + pub const fn new() -> ITransactionProperty_Vtbl { + unsafe extern "system" fn Reserved1(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved1(this) } - unsafe extern "system" fn Reserved2(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved2(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved2(this) } - unsafe extern "system" fn Reserved3(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved3(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved3(this) } - unsafe extern "system" fn Reserved4(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved4(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved4(this) } - unsafe extern "system" fn Reserved5(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved5(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved5(this) } - unsafe extern "system" fn Reserved6(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved6(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved6(this) } - unsafe extern "system" fn Reserved7(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved7(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved7(this) } - unsafe extern "system" fn Reserved8(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved8(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved8(this) } - unsafe extern "system" fn Reserved9(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved9(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved9(this) } - unsafe extern "system" fn GetTransactionResourcePool(this: *mut core::ffi::c_void, pptxpool: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn GetTransactionResourcePool(this: *mut core::ffi::c_void, pptxpool: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionProperty_Impl::GetTransactionResourcePool(this) { Ok(ok__) => { @@ -7097,59 +5273,35 @@ impl ITransactionProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reserved10(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved10(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved10(this) } - unsafe extern "system" fn Reserved11(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved11(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved11(this) } - unsafe extern "system" fn Reserved12(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved12(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved12(this) } - unsafe extern "system" fn Reserved13(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved13(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved13(this) } - unsafe extern "system" fn Reserved14(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved14(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved14(this) } - unsafe extern "system" fn Reserved15(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved15(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved15(this) } - unsafe extern "system" fn Reserved16(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved16(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved16(this) } - unsafe extern "system" fn Reserved17(this: *mut core::ffi::c_void) - where - Identity: ITransactionProperty_Impl, - { + unsafe extern "system" fn Reserved17(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProperty_Impl::Reserved17(this) } @@ -7180,7 +5332,7 @@ impl ITransactionProperty_Vtbl { } } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] -pub trait ITransactionProxy_Impl: Sized { +pub trait ITransactionProxy_Impl: Sized + windows_core::IUnknownImpl { fn Commit(&self, guid: &windows_core::GUID) -> windows_core::Result<()>; fn Abort(&self) -> windows_core::Result<()>; fn Promote(&self) -> windows_core::Result; @@ -7193,28 +5345,16 @@ pub trait ITransactionProxy_Impl: Sized { impl windows_core::RuntimeName for ITransactionProxy {} #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl ITransactionProxy_Vtbl { - pub const fn new() -> ITransactionProxy_Vtbl - where - Identity: ITransactionProxy_Impl, - { - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITransactionProxy_Impl, - { + pub const fn new() -> ITransactionProxy_Vtbl { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProxy_Impl::Commit(this, core::mem::transmute(&guid)).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionProxy_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProxy_Impl::Abort(this).into() } - unsafe extern "system" fn Promote(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionProxy_Impl, - { + unsafe extern "system" fn Promote(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionProxy_Impl::Promote(this) { Ok(ok__) => { @@ -7224,10 +5364,7 @@ impl ITransactionProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVoter(this: *mut core::ffi::c_void, ptxasync: *mut core::ffi::c_void, ppballot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionProxy_Impl, - { + unsafe extern "system" fn CreateVoter(this: *mut core::ffi::c_void, ptxasync: *mut core::ffi::c_void, ppballot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionProxy_Impl::CreateVoter(this, windows_core::from_raw_borrowed(&ptxasync)) { Ok(ok__) => { @@ -7237,24 +5374,15 @@ impl ITransactionProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIsolationLevel(this: *mut core::ffi::c_void, __midl__itransactionproxy0000: *mut i32) -> windows_core::HRESULT - where - Identity: ITransactionProxy_Impl, - { + unsafe extern "system" fn GetIsolationLevel(this: *mut core::ffi::c_void, __midl__itransactionproxy0000: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProxy_Impl::GetIsolationLevel(this, core::mem::transmute_copy(&__midl__itransactionproxy0000)).into() } - unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, pbstridentifier: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITransactionProxy_Impl, - { + unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, pbstridentifier: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProxy_Impl::GetIdentifier(this, core::mem::transmute_copy(&pbstridentifier)).into() } - unsafe extern "system" fn IsReusable(this: *mut core::ffi::c_void, pfisreusable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITransactionProxy_Impl, - { + unsafe extern "system" fn IsReusable(this: *mut core::ffi::c_void, pfisreusable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProxy_Impl::IsReusable(this, core::mem::transmute_copy(&pfisreusable)).into() } @@ -7273,27 +5401,18 @@ impl ITransactionProxy_Vtbl { iid == &::IID } } -pub trait ITransactionResourcePool_Impl: Sized { +pub trait ITransactionResourcePool_Impl: Sized + windows_core::IUnknownImpl { fn PutResource(&self, ppool: Option<&IObjPool>, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetResource(&self, ppool: Option<&IObjPool>) -> windows_core::Result; } impl windows_core::RuntimeName for ITransactionResourcePool {} impl ITransactionResourcePool_Vtbl { - pub const fn new() -> ITransactionResourcePool_Vtbl - where - Identity: ITransactionResourcePool_Impl, - { - unsafe extern "system" fn PutResource(this: *mut core::ffi::c_void, ppool: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionResourcePool_Impl, - { + pub const fn new() -> ITransactionResourcePool_Vtbl { + unsafe extern "system" fn PutResource(this: *mut core::ffi::c_void, ppool: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResourcePool_Impl::PutResource(this, windows_core::from_raw_borrowed(&ppool), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, ppool: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionResourcePool_Impl, - { + unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, ppool: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionResourcePool_Impl::GetResource(this, windows_core::from_raw_borrowed(&ppool)) { Ok(ok__) => { @@ -7313,27 +5432,18 @@ impl ITransactionResourcePool_Vtbl { iid == &::IID } } -pub trait ITransactionStatus_Impl: Sized { +pub trait ITransactionStatus_Impl: Sized + windows_core::IUnknownImpl { fn SetTransactionStatus(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; fn GetTransactionStatus(&self, phrstatus: *mut windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransactionStatus {} impl ITransactionStatus_Vtbl { - pub const fn new() -> ITransactionStatus_Vtbl - where - Identity: ITransactionStatus_Impl, - { - unsafe extern "system" fn SetTransactionStatus(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITransactionStatus_Impl, - { + pub const fn new() -> ITransactionStatus_Vtbl { + unsafe extern "system" fn SetTransactionStatus(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionStatus_Impl::SetTransactionStatus(this, core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn GetTransactionStatus(this: *mut core::ffi::c_void, phrstatus: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITransactionStatus_Impl, - { + unsafe extern "system" fn GetTransactionStatus(this: *mut core::ffi::c_void, phrstatus: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionStatus_Impl::GetTransactionStatus(this, core::mem::transmute_copy(&phrstatus)).into() } @@ -7347,19 +5457,13 @@ impl ITransactionStatus_Vtbl { iid == &::IID } } -pub trait ITxProxyHolder_Impl: Sized { +pub trait ITxProxyHolder_Impl: Sized + windows_core::IUnknownImpl { fn GetIdentifier(&self, pguidltx: *mut windows_core::GUID); } impl windows_core::RuntimeName for ITxProxyHolder {} impl ITxProxyHolder_Vtbl { - pub const fn new() -> ITxProxyHolder_Vtbl - where - Identity: ITxProxyHolder_Impl, - { - unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, pguidltx: *mut windows_core::GUID) - where - Identity: ITxProxyHolder_Impl, - { + pub const fn new() -> ITxProxyHolder_Vtbl { + unsafe extern "system" fn GetIdentifier(this: *mut core::ffi::c_void, pguidltx: *mut windows_core::GUID) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITxProxyHolder_Impl::GetIdentifier(this, core::mem::transmute_copy(&pguidltx)) } @@ -7389,14 +5493,8 @@ pub trait ObjectContext_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ObjectContext {} #[cfg(feature = "Win32_System_Com")] impl ObjectContext_Vtbl { - pub const fn new() -> ObjectContext_Vtbl - where - Identity: ObjectContext_Impl, - { - unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, bstrprogid: core::mem::MaybeUninit, pobject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + pub const fn new() -> ObjectContext_Vtbl { + unsafe extern "system" fn CreateInstance(this: *mut core::ffi::c_void, bstrprogid: core::mem::MaybeUninit, pobject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ObjectContext_Impl::CreateInstance(this, core::mem::transmute(&bstrprogid)) { Ok(ok__) => { @@ -7406,38 +5504,23 @@ impl ObjectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn SetComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ObjectContext_Impl::SetComplete(this).into() } - unsafe extern "system" fn SetAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn SetAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ObjectContext_Impl::SetAbort(this).into() } - unsafe extern "system" fn EnableCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn EnableCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ObjectContext_Impl::EnableCommit(this).into() } - unsafe extern "system" fn DisableCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn DisableCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ObjectContext_Impl::DisableCommit(this).into() } - unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void, pbisintx: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void, pbisintx: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ObjectContext_Impl::IsInTransaction(this) { Ok(ok__) => { @@ -7447,10 +5530,7 @@ impl ObjectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSecurityEnabled(this: *mut core::ffi::c_void, pbisenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn IsSecurityEnabled(this: *mut core::ffi::c_void, pbisenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ObjectContext_Impl::IsSecurityEnabled(this) { Ok(ok__) => { @@ -7460,10 +5540,7 @@ impl ObjectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCallerInRole(this: *mut core::ffi::c_void, bstrrole: core::mem::MaybeUninit, pbinrole: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn IsCallerInRole(this: *mut core::ffi::c_void, bstrrole: core::mem::MaybeUninit, pbinrole: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ObjectContext_Impl::IsCallerInRole(this, core::mem::transmute(&bstrrole)) { Ok(ok__) => { @@ -7473,10 +5550,7 @@ impl ObjectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ObjectContext_Impl::Count(this) { Ok(ok__) => { @@ -7486,10 +5560,7 @@ impl ObjectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pitem: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ObjectContext_Impl::get_Item(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -7499,10 +5570,7 @@ impl ObjectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ObjectContext_Impl::_NewEnum(this) { Ok(ok__) => { @@ -7512,10 +5580,7 @@ impl ObjectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security(this: *mut core::ffi::c_void, ppsecurityproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn Security(this: *mut core::ffi::c_void, ppsecurityproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ObjectContext_Impl::Security(this) { Ok(ok__) => { @@ -7525,10 +5590,7 @@ impl ObjectContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContextInfo(this: *mut core::ffi::c_void, ppcontextinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ObjectContext_Impl, - { + unsafe extern "system" fn ContextInfo(this: *mut core::ffi::c_void, ppcontextinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ObjectContext_Impl::ContextInfo(this) { Ok(ok__) => { @@ -7559,35 +5621,23 @@ impl ObjectContext_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ObjectControl_Impl: Sized { +pub trait ObjectControl_Impl: Sized + windows_core::IUnknownImpl { fn Activate(&self) -> windows_core::Result<()>; fn Deactivate(&self) -> windows_core::Result<()>; fn CanBePooled(&self, pbpoolable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ObjectControl {} impl ObjectControl_Vtbl { - pub const fn new() -> ObjectControl_Vtbl - where - Identity: ObjectControl_Impl, - { - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ObjectControl_Impl, - { + pub const fn new() -> ObjectControl_Vtbl { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ObjectControl_Impl::Activate(this).into() } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ObjectControl_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ObjectControl_Impl::Deactivate(this).into() } - unsafe extern "system" fn CanBePooled(this: *mut core::ffi::c_void, pbpoolable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ObjectControl_Impl, - { + unsafe extern "system" fn CanBePooled(this: *mut core::ffi::c_void, pbpoolable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ObjectControl_Impl::CanBePooled(this, core::mem::transmute_copy(&pbpoolable)).into() } @@ -7613,14 +5663,8 @@ pub trait SecurityProperty_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for SecurityProperty {} #[cfg(feature = "Win32_System_Com")] impl SecurityProperty_Vtbl { - pub const fn new() -> SecurityProperty_Vtbl - where - Identity: SecurityProperty_Impl, - { - unsafe extern "system" fn GetDirectCallerName(this: *mut core::ffi::c_void, bstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: SecurityProperty_Impl, - { + pub const fn new() -> SecurityProperty_Vtbl { + unsafe extern "system" fn GetDirectCallerName(this: *mut core::ffi::c_void, bstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SecurityProperty_Impl::GetDirectCallerName(this) { Ok(ok__) => { @@ -7630,10 +5674,7 @@ impl SecurityProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDirectCreatorName(this: *mut core::ffi::c_void, bstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: SecurityProperty_Impl, - { + unsafe extern "system" fn GetDirectCreatorName(this: *mut core::ffi::c_void, bstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SecurityProperty_Impl::GetDirectCreatorName(this) { Ok(ok__) => { @@ -7643,10 +5684,7 @@ impl SecurityProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalCallerName(this: *mut core::ffi::c_void, bstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: SecurityProperty_Impl, - { + unsafe extern "system" fn GetOriginalCallerName(this: *mut core::ffi::c_void, bstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SecurityProperty_Impl::GetOriginalCallerName(this) { Ok(ok__) => { @@ -7656,10 +5694,7 @@ impl SecurityProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalCreatorName(this: *mut core::ffi::c_void, bstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: SecurityProperty_Impl, - { + unsafe extern "system" fn GetOriginalCreatorName(this: *mut core::ffi::c_void, bstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SecurityProperty_Impl::GetOriginalCreatorName(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/Contacts/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Contacts/impl.rs index 1adbd5cf16..4641982170 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Contacts/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Contacts/impl.rs @@ -1,32 +1,20 @@ -pub trait IContact_Impl: Sized { +pub trait IContact_Impl: Sized + windows_core::IUnknownImpl { fn GetContactID(&self, pszcontactid: &windows_core::PWSTR, cchcontactid: u32, pdwcchcontactidrequired: *mut u32) -> windows_core::Result<()>; fn GetPath(&self, pszpath: &windows_core::PWSTR, cchpath: u32, pdwcchpathrequired: *mut u32) -> windows_core::Result<()>; fn CommitChanges(&self, dwcommitflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IContact {} impl IContact_Vtbl { - pub const fn new() -> IContact_Vtbl - where - Identity: IContact_Impl, - { - unsafe extern "system" fn GetContactID(this: *mut core::ffi::c_void, pszcontactid: windows_core::PWSTR, cchcontactid: u32, pdwcchcontactidrequired: *mut u32) -> windows_core::HRESULT - where - Identity: IContact_Impl, - { + pub const fn new() -> IContact_Vtbl { + unsafe extern "system" fn GetContactID(this: *mut core::ffi::c_void, pszcontactid: windows_core::PWSTR, cchcontactid: u32, pdwcchcontactidrequired: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContact_Impl::GetContactID(this, core::mem::transmute(&pszcontactid), core::mem::transmute_copy(&cchcontactid), core::mem::transmute_copy(&pdwcchcontactidrequired)).into() } - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pszpath: windows_core::PWSTR, cchpath: u32, pdwcchpathrequired: *mut u32) -> windows_core::HRESULT - where - Identity: IContact_Impl, - { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pszpath: windows_core::PWSTR, cchpath: u32, pdwcchpathrequired: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContact_Impl::GetPath(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&cchpath), core::mem::transmute_copy(&pdwcchpathrequired)).into() } - unsafe extern "system" fn CommitChanges(this: *mut core::ffi::c_void, dwcommitflags: u32) -> windows_core::HRESULT - where - Identity: IContact_Impl, - { + unsafe extern "system" fn CommitChanges(this: *mut core::ffi::c_void, dwcommitflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContact_Impl::CommitChanges(this, core::mem::transmute_copy(&dwcommitflags)).into() } @@ -41,7 +29,7 @@ impl IContact_Vtbl { iid == &::IID } } -pub trait IContactAggregationAggregate_Impl: Sized { +pub trait IContactAggregationAggregate_Impl: Sized + windows_core::IUnknownImpl { fn Save(&self) -> windows_core::Result<()>; fn GetComponentItems(&self) -> windows_core::Result; fn Link(&self, paggregateid: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -54,21 +42,12 @@ pub trait IContactAggregationAggregate_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationAggregate {} impl IContactAggregationAggregate_Vtbl { - pub const fn new() -> IContactAggregationAggregate_Vtbl - where - Identity: IContactAggregationAggregate_Impl, - { - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregate_Impl, - { + pub const fn new() -> IContactAggregationAggregate_Vtbl { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationAggregate_Impl::Save(this).into() } - unsafe extern "system" fn GetComponentItems(this: *mut core::ffi::c_void, pcomponentitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregate_Impl, - { + unsafe extern "system" fn GetComponentItems(this: *mut core::ffi::c_void, pcomponentitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationAggregate_Impl::GetComponentItems(this) { Ok(ok__) => { @@ -78,17 +57,11 @@ impl IContactAggregationAggregate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Link(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregate_Impl, - { + unsafe extern "system" fn Link(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationAggregate_Impl::Link(this, core::mem::transmute(&paggregateid)).into() } - unsafe extern "system" fn get_Groups(this: *mut core::ffi::c_void, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS, ppgroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregate_Impl, - { + unsafe extern "system" fn get_Groups(this: *mut core::ffi::c_void, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS, ppgroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationAggregate_Impl::get_Groups(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -98,10 +71,7 @@ impl IContactAggregationAggregate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AntiLink(this: *mut core::ffi::c_void, ppantilink: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregate_Impl, - { + unsafe extern "system" fn AntiLink(this: *mut core::ffi::c_void, ppantilink: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationAggregate_Impl::AntiLink(this) { Ok(ok__) => { @@ -111,17 +81,11 @@ impl IContactAggregationAggregate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAntiLink(this: *mut core::ffi::c_void, pantilink: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregate_Impl, - { + unsafe extern "system" fn SetAntiLink(this: *mut core::ffi::c_void, pantilink: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationAggregate_Impl::SetAntiLink(this, core::mem::transmute(&pantilink)).into() } - unsafe extern "system" fn FavoriteOrder(this: *mut core::ffi::c_void, pfavoriteorder: *mut u32) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregate_Impl, - { + unsafe extern "system" fn FavoriteOrder(this: *mut core::ffi::c_void, pfavoriteorder: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationAggregate_Impl::FavoriteOrder(this) { Ok(ok__) => { @@ -131,17 +95,11 @@ impl IContactAggregationAggregate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFavoriteOrder(this: *mut core::ffi::c_void, favoriteorder: u32) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregate_Impl, - { + unsafe extern "system" fn SetFavoriteOrder(this: *mut core::ffi::c_void, favoriteorder: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationAggregate_Impl::SetFavoriteOrder(this, core::mem::transmute_copy(&favoriteorder)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, ppitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregate_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, ppitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationAggregate_Impl::Id(this) { Ok(ok__) => { @@ -168,7 +126,7 @@ impl IContactAggregationAggregate_Vtbl { iid == &::IID } } -pub trait IContactAggregationAggregateCollection_Impl: Sized { +pub trait IContactAggregationAggregateCollection_Impl: Sized + windows_core::IUnknownImpl { fn FindFirst(&self) -> windows_core::Result; fn FindFirstByAntiLinkId(&self, pantilinkid: &windows_core::PCWSTR) -> windows_core::Result; fn FindNext(&self) -> windows_core::Result; @@ -176,14 +134,8 @@ pub trait IContactAggregationAggregateCollection_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationAggregateCollection {} impl IContactAggregationAggregateCollection_Vtbl { - pub const fn new() -> IContactAggregationAggregateCollection_Vtbl - where - Identity: IContactAggregationAggregateCollection_Impl, - { - unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, ppaggregate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregateCollection_Impl, - { + pub const fn new() -> IContactAggregationAggregateCollection_Vtbl { + unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, ppaggregate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationAggregateCollection_Impl::FindFirst(this) { Ok(ok__) => { @@ -193,10 +145,7 @@ impl IContactAggregationAggregateCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstByAntiLinkId(this: *mut core::ffi::c_void, pantilinkid: windows_core::PCWSTR, ppaggregate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregateCollection_Impl, - { + unsafe extern "system" fn FindFirstByAntiLinkId(this: *mut core::ffi::c_void, pantilinkid: windows_core::PCWSTR, ppaggregate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationAggregateCollection_Impl::FindFirstByAntiLinkId(this, core::mem::transmute(&pantilinkid)) { Ok(ok__) => { @@ -206,10 +155,7 @@ impl IContactAggregationAggregateCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindNext(this: *mut core::ffi::c_void, ppaggregate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregateCollection_Impl, - { + unsafe extern "system" fn FindNext(this: *mut core::ffi::c_void, ppaggregate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationAggregateCollection_Impl::FindNext(this) { Ok(ok__) => { @@ -219,10 +165,7 @@ impl IContactAggregationAggregateCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: IContactAggregationAggregateCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationAggregateCollection_Impl::Count(this) { Ok(ok__) => { @@ -244,7 +187,7 @@ impl IContactAggregationAggregateCollection_Vtbl { iid == &::IID } } -pub trait IContactAggregationContact_Impl: Sized { +pub trait IContactAggregationContact_Impl: Sized + windows_core::IUnknownImpl { fn Delete(&self) -> windows_core::Result<()>; fn Save(&self) -> windows_core::Result<()>; fn MoveToAggregate(&self, paggregateid: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -266,42 +209,24 @@ pub trait IContactAggregationContact_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationContact {} impl IContactAggregationContact_Vtbl { - pub const fn new() -> IContactAggregationContact_Vtbl - where - Identity: IContactAggregationContact_Impl, - { - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + pub const fn new() -> IContactAggregationContact_Vtbl { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationContact_Impl::Delete(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationContact_Impl::Save(this).into() } - unsafe extern "system" fn MoveToAggregate(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn MoveToAggregate(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationContact_Impl::MoveToAggregate(this, core::mem::transmute(&paggregateid)).into() } - unsafe extern "system" fn Unlink(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn Unlink(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationContact_Impl::Unlink(this).into() } - unsafe extern "system" fn AccountId(this: *mut core::ffi::c_void, ppaccountid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn AccountId(this: *mut core::ffi::c_void, ppaccountid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::AccountId(this) { Ok(ok__) => { @@ -311,17 +236,11 @@ impl IContactAggregationContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccountId(this: *mut core::ffi::c_void, paccountid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn SetAccountId(this: *mut core::ffi::c_void, paccountid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationContact_Impl::SetAccountId(this, core::mem::transmute(&paccountid)).into() } - unsafe extern "system" fn AggregateId(this: *mut core::ffi::c_void, ppaggregateid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn AggregateId(this: *mut core::ffi::c_void, ppaggregateid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::AggregateId(this) { Ok(ok__) => { @@ -331,10 +250,7 @@ impl IContactAggregationContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, ppitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, ppitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::Id(this) { Ok(ok__) => { @@ -344,10 +260,7 @@ impl IContactAggregationContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsMe(this: *mut core::ffi::c_void, pisme: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn IsMe(this: *mut core::ffi::c_void, pisme: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::IsMe(this) { Ok(ok__) => { @@ -357,10 +270,7 @@ impl IContactAggregationContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsExternal(this: *mut core::ffi::c_void, pisexternal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn IsExternal(this: *mut core::ffi::c_void, pisexternal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::IsExternal(this) { Ok(ok__) => { @@ -370,10 +280,7 @@ impl IContactAggregationContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NetworkSourceId(this: *mut core::ffi::c_void, pnetworksourceid: *mut u32) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn NetworkSourceId(this: *mut core::ffi::c_void, pnetworksourceid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::NetworkSourceId(this) { Ok(ok__) => { @@ -383,17 +290,11 @@ impl IContactAggregationContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkSourceId(this: *mut core::ffi::c_void, networksourceid: u32) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn SetNetworkSourceId(this: *mut core::ffi::c_void, networksourceid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationContact_Impl::SetNetworkSourceId(this, core::mem::transmute_copy(&networksourceid)).into() } - unsafe extern "system" fn NetworkSourceIdString(this: *mut core::ffi::c_void, ppnetworksourceid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn NetworkSourceIdString(this: *mut core::ffi::c_void, ppnetworksourceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::NetworkSourceIdString(this) { Ok(ok__) => { @@ -403,17 +304,11 @@ impl IContactAggregationContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkSourceIdString(this: *mut core::ffi::c_void, pnetworksourceid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn SetNetworkSourceIdString(this: *mut core::ffi::c_void, pnetworksourceid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationContact_Impl::SetNetworkSourceIdString(this, core::mem::transmute(&pnetworksourceid)).into() } - unsafe extern "system" fn RemoteObjectId(this: *mut core::ffi::c_void, ppremoteobjectid: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn RemoteObjectId(this: *mut core::ffi::c_void, ppremoteobjectid: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::RemoteObjectId(this) { Ok(ok__) => { @@ -423,17 +318,11 @@ impl IContactAggregationContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteObjectId(this: *mut core::ffi::c_void, premoteobjectid: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn SetRemoteObjectId(this: *mut core::ffi::c_void, premoteobjectid: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationContact_Impl::SetRemoteObjectId(this, core::mem::transmute_copy(&premoteobjectid)).into() } - unsafe extern "system" fn SyncIdentityHash(this: *mut core::ffi::c_void, ppsyncidentityhash: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn SyncIdentityHash(this: *mut core::ffi::c_void, ppsyncidentityhash: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::SyncIdentityHash(this) { Ok(ok__) => { @@ -443,10 +332,7 @@ impl IContactAggregationContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSyncIdentityHash(this: *mut core::ffi::c_void, psyncidentityhash: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationContact_Impl, - { + unsafe extern "system" fn SetSyncIdentityHash(this: *mut core::ffi::c_void, psyncidentityhash: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationContact_Impl::SetSyncIdentityHash(this, core::mem::transmute_copy(&psyncidentityhash)).into() } @@ -476,7 +362,7 @@ impl IContactAggregationContact_Vtbl { iid == &::IID } } -pub trait IContactAggregationContactCollection_Impl: Sized { +pub trait IContactAggregationContactCollection_Impl: Sized + windows_core::IUnknownImpl { fn FindFirst(&self) -> windows_core::Result; fn FindNext(&self) -> windows_core::Result; fn FindFirstByIdentityHash(&self, psourcetype: &windows_core::PCWSTR, paccountid: &windows_core::PCWSTR, pidentityhash: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result; @@ -485,14 +371,8 @@ pub trait IContactAggregationContactCollection_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationContactCollection {} impl IContactAggregationContactCollection_Vtbl { - pub const fn new() -> IContactAggregationContactCollection_Vtbl - where - Identity: IContactAggregationContactCollection_Impl, - { - unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationContactCollection_Impl, - { + pub const fn new() -> IContactAggregationContactCollection_Vtbl { + unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContactCollection_Impl::FindFirst(this) { Ok(ok__) => { @@ -502,10 +382,7 @@ impl IContactAggregationContactCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindNext(this: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationContactCollection_Impl, - { + unsafe extern "system" fn FindNext(this: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContactCollection_Impl::FindNext(this) { Ok(ok__) => { @@ -515,10 +392,7 @@ impl IContactAggregationContactCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstByIdentityHash(this: *mut core::ffi::c_void, psourcetype: windows_core::PCWSTR, paccountid: windows_core::PCWSTR, pidentityhash: *const CONTACT_AGGREGATION_BLOB, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationContactCollection_Impl, - { + unsafe extern "system" fn FindFirstByIdentityHash(this: *mut core::ffi::c_void, psourcetype: windows_core::PCWSTR, paccountid: windows_core::PCWSTR, pidentityhash: *const CONTACT_AGGREGATION_BLOB, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContactCollection_Impl::FindFirstByIdentityHash(this, core::mem::transmute(&psourcetype), core::mem::transmute(&paccountid), core::mem::transmute_copy(&pidentityhash)) { Ok(ok__) => { @@ -528,10 +402,7 @@ impl IContactAggregationContactCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: IContactAggregationContactCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContactCollection_Impl::Count(this) { Ok(ok__) => { @@ -541,10 +412,7 @@ impl IContactAggregationContactCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstByRemoteId(this: *mut core::ffi::c_void, psourcetype: windows_core::PCWSTR, paccountid: windows_core::PCWSTR, premoteobjectid: *const CONTACT_AGGREGATION_BLOB, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationContactCollection_Impl, - { + unsafe extern "system" fn FindFirstByRemoteId(this: *mut core::ffi::c_void, psourcetype: windows_core::PCWSTR, paccountid: windows_core::PCWSTR, premoteobjectid: *const CONTACT_AGGREGATION_BLOB, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContactCollection_Impl::FindFirstByRemoteId(this, core::mem::transmute(&psourcetype), core::mem::transmute(&paccountid), core::mem::transmute_copy(&premoteobjectid)) { Ok(ok__) => { @@ -567,7 +435,7 @@ impl IContactAggregationContactCollection_Vtbl { iid == &::IID } } -pub trait IContactAggregationGroup_Impl: Sized { +pub trait IContactAggregationGroup_Impl: Sized + windows_core::IUnknownImpl { fn Delete(&self) -> windows_core::Result<()>; fn Save(&self) -> windows_core::Result<()>; fn Add(&self, paggregateid: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -581,42 +449,24 @@ pub trait IContactAggregationGroup_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationGroup {} impl IContactAggregationGroup_Vtbl { - pub const fn new() -> IContactAggregationGroup_Vtbl - where - Identity: IContactAggregationGroup_Impl, - { - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationGroup_Impl, - { + pub const fn new() -> IContactAggregationGroup_Vtbl { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationGroup_Impl::Delete(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationGroup_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationGroup_Impl::Save(this).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationGroup_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationGroup_Impl::Add(this, core::mem::transmute(&paggregateid)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationGroup_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationGroup_Impl::Remove(this, core::mem::transmute(&paggregateid)).into() } - unsafe extern "system" fn Members(this: *mut core::ffi::c_void, ppaggregatecontactcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationGroup_Impl, - { + unsafe extern "system" fn Members(this: *mut core::ffi::c_void, ppaggregatecontactcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationGroup_Impl::Members(this) { Ok(ok__) => { @@ -626,10 +476,7 @@ impl IContactAggregationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GlobalObjectId(this: *mut core::ffi::c_void, pglobalobjectid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IContactAggregationGroup_Impl, - { + unsafe extern "system" fn GlobalObjectId(this: *mut core::ffi::c_void, pglobalobjectid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationGroup_Impl::GlobalObjectId(this) { Ok(ok__) => { @@ -639,17 +486,11 @@ impl IContactAggregationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGlobalObjectId(this: *mut core::ffi::c_void, pglobalobjectid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IContactAggregationGroup_Impl, - { + unsafe extern "system" fn SetGlobalObjectId(this: *mut core::ffi::c_void, pglobalobjectid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationGroup_Impl::SetGlobalObjectId(this, core::mem::transmute_copy(&pglobalobjectid)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, ppitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationGroup_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, ppitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationGroup_Impl::Id(this) { Ok(ok__) => { @@ -659,10 +500,7 @@ impl IContactAggregationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationGroup_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationGroup_Impl::Name(this) { Ok(ok__) => { @@ -672,10 +510,7 @@ impl IContactAggregationGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationGroup_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationGroup_Impl::SetName(this, core::mem::transmute(&pname)).into() } @@ -697,7 +532,7 @@ impl IContactAggregationGroup_Vtbl { iid == &::IID } } -pub trait IContactAggregationGroupCollection_Impl: Sized { +pub trait IContactAggregationGroupCollection_Impl: Sized + windows_core::IUnknownImpl { fn FindFirst(&self) -> windows_core::Result; fn FindFirstByGlobalObjectId(&self, pglobalobjectid: *const windows_core::GUID) -> windows_core::Result; fn FindNext(&self) -> windows_core::Result; @@ -705,14 +540,8 @@ pub trait IContactAggregationGroupCollection_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationGroupCollection {} impl IContactAggregationGroupCollection_Vtbl { - pub const fn new() -> IContactAggregationGroupCollection_Vtbl - where - Identity: IContactAggregationGroupCollection_Impl, - { - unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationGroupCollection_Impl, - { + pub const fn new() -> IContactAggregationGroupCollection_Vtbl { + unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationGroupCollection_Impl::FindFirst(this) { Ok(ok__) => { @@ -722,10 +551,7 @@ impl IContactAggregationGroupCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstByGlobalObjectId(this: *mut core::ffi::c_void, pglobalobjectid: *const windows_core::GUID, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationGroupCollection_Impl, - { + unsafe extern "system" fn FindFirstByGlobalObjectId(this: *mut core::ffi::c_void, pglobalobjectid: *const windows_core::GUID, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationGroupCollection_Impl::FindFirstByGlobalObjectId(this, core::mem::transmute_copy(&pglobalobjectid)) { Ok(ok__) => { @@ -735,10 +561,7 @@ impl IContactAggregationGroupCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindNext(this: *mut core::ffi::c_void, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationGroupCollection_Impl, - { + unsafe extern "system" fn FindNext(this: *mut core::ffi::c_void, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationGroupCollection_Impl::FindNext(this) { Ok(ok__) => { @@ -748,10 +571,7 @@ impl IContactAggregationGroupCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IContactAggregationGroupCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationGroupCollection_Impl::Count(this) { Ok(ok__) => { @@ -773,7 +593,7 @@ impl IContactAggregationGroupCollection_Vtbl { iid == &::IID } } -pub trait IContactAggregationLink_Impl: Sized { +pub trait IContactAggregationLink_Impl: Sized + windows_core::IUnknownImpl { fn Delete(&self) -> windows_core::Result<()>; fn Save(&self) -> windows_core::Result<()>; fn AccountId(&self) -> windows_core::Result; @@ -794,28 +614,16 @@ pub trait IContactAggregationLink_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationLink {} impl IContactAggregationLink_Vtbl { - pub const fn new() -> IContactAggregationLink_Vtbl - where - Identity: IContactAggregationLink_Impl, - { - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + pub const fn new() -> IContactAggregationLink_Vtbl { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationLink_Impl::Delete(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationLink_Impl::Save(this).into() } - unsafe extern "system" fn AccountId(this: *mut core::ffi::c_void, ppaccountid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn AccountId(this: *mut core::ffi::c_void, ppaccountid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLink_Impl::AccountId(this) { Ok(ok__) => { @@ -825,17 +633,11 @@ impl IContactAggregationLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccountId(this: *mut core::ffi::c_void, paccountid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn SetAccountId(this: *mut core::ffi::c_void, paccountid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationLink_Impl::SetAccountId(this, core::mem::transmute(&paccountid)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, ppitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, ppitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLink_Impl::Id(this) { Ok(ok__) => { @@ -845,10 +647,7 @@ impl IContactAggregationLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLinkResolved(this: *mut core::ffi::c_void, pislinkresolved: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn IsLinkResolved(this: *mut core::ffi::c_void, pislinkresolved: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLink_Impl::IsLinkResolved(this) { Ok(ok__) => { @@ -858,17 +657,11 @@ impl IContactAggregationLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsLinkResolved(this: *mut core::ffi::c_void, islinkresolved: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn SetIsLinkResolved(this: *mut core::ffi::c_void, islinkresolved: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationLink_Impl::SetIsLinkResolved(this, core::mem::transmute_copy(&islinkresolved)).into() } - unsafe extern "system" fn NetworkSourceIdString(this: *mut core::ffi::c_void, ppnetworksourceid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn NetworkSourceIdString(this: *mut core::ffi::c_void, ppnetworksourceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLink_Impl::NetworkSourceIdString(this) { Ok(ok__) => { @@ -878,17 +671,11 @@ impl IContactAggregationLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkSourceIdString(this: *mut core::ffi::c_void, pnetworksourceid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn SetNetworkSourceIdString(this: *mut core::ffi::c_void, pnetworksourceid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationLink_Impl::SetNetworkSourceIdString(this, core::mem::transmute(&pnetworksourceid)).into() } - unsafe extern "system" fn RemoteObjectId(this: *mut core::ffi::c_void, ppremoteobjectid: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn RemoteObjectId(this: *mut core::ffi::c_void, ppremoteobjectid: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLink_Impl::RemoteObjectId(this) { Ok(ok__) => { @@ -898,17 +685,11 @@ impl IContactAggregationLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteObjectId(this: *mut core::ffi::c_void, premoteobjectid: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn SetRemoteObjectId(this: *mut core::ffi::c_void, premoteobjectid: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationLink_Impl::SetRemoteObjectId(this, core::mem::transmute_copy(&premoteobjectid)).into() } - unsafe extern "system" fn ServerPerson(this: *mut core::ffi::c_void, ppserverpersonid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn ServerPerson(this: *mut core::ffi::c_void, ppserverpersonid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLink_Impl::ServerPerson(this) { Ok(ok__) => { @@ -918,17 +699,11 @@ impl IContactAggregationLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerPerson(this: *mut core::ffi::c_void, pserverpersonid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn SetServerPerson(this: *mut core::ffi::c_void, pserverpersonid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationLink_Impl::SetServerPerson(this, core::mem::transmute(&pserverpersonid)).into() } - unsafe extern "system" fn ServerPersonBaseline(this: *mut core::ffi::c_void, ppserverpersonid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn ServerPersonBaseline(this: *mut core::ffi::c_void, ppserverpersonid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLink_Impl::ServerPersonBaseline(this) { Ok(ok__) => { @@ -938,17 +713,11 @@ impl IContactAggregationLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerPersonBaseline(this: *mut core::ffi::c_void, pserverpersonid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn SetServerPersonBaseline(this: *mut core::ffi::c_void, pserverpersonid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationLink_Impl::SetServerPersonBaseline(this, core::mem::transmute(&pserverpersonid)).into() } - unsafe extern "system" fn SyncIdentityHash(this: *mut core::ffi::c_void, ppsyncidentityhash: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn SyncIdentityHash(this: *mut core::ffi::c_void, ppsyncidentityhash: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLink_Impl::SyncIdentityHash(this) { Ok(ok__) => { @@ -958,10 +727,7 @@ impl IContactAggregationLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSyncIdentityHash(this: *mut core::ffi::c_void, psyncidentityhash: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationLink_Impl, - { + unsafe extern "system" fn SetSyncIdentityHash(this: *mut core::ffi::c_void, psyncidentityhash: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationLink_Impl::SetSyncIdentityHash(this, core::mem::transmute_copy(&psyncidentityhash)).into() } @@ -990,7 +756,7 @@ impl IContactAggregationLink_Vtbl { iid == &::IID } } -pub trait IContactAggregationLinkCollection_Impl: Sized { +pub trait IContactAggregationLinkCollection_Impl: Sized + windows_core::IUnknownImpl { fn FindFirst(&self) -> windows_core::Result; fn FindFirstByRemoteId(&self, psourcetype: &windows_core::PCWSTR, paccountid: &windows_core::PCWSTR, premoteid: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result; fn FindNext(&self) -> windows_core::Result; @@ -998,14 +764,8 @@ pub trait IContactAggregationLinkCollection_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationLinkCollection {} impl IContactAggregationLinkCollection_Vtbl { - pub const fn new() -> IContactAggregationLinkCollection_Vtbl - where - Identity: IContactAggregationLinkCollection_Impl, - { - unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, ppservercontactlink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationLinkCollection_Impl, - { + pub const fn new() -> IContactAggregationLinkCollection_Vtbl { + unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, ppservercontactlink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLinkCollection_Impl::FindFirst(this) { Ok(ok__) => { @@ -1015,10 +775,7 @@ impl IContactAggregationLinkCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstByRemoteId(this: *mut core::ffi::c_void, psourcetype: windows_core::PCWSTR, paccountid: windows_core::PCWSTR, premoteid: *const CONTACT_AGGREGATION_BLOB, ppservercontactlink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationLinkCollection_Impl, - { + unsafe extern "system" fn FindFirstByRemoteId(this: *mut core::ffi::c_void, psourcetype: windows_core::PCWSTR, paccountid: windows_core::PCWSTR, premoteid: *const CONTACT_AGGREGATION_BLOB, ppservercontactlink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLinkCollection_Impl::FindFirstByRemoteId(this, core::mem::transmute(&psourcetype), core::mem::transmute(&paccountid), core::mem::transmute_copy(&premoteid)) { Ok(ok__) => { @@ -1028,10 +785,7 @@ impl IContactAggregationLinkCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindNext(this: *mut core::ffi::c_void, ppservercontactlink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationLinkCollection_Impl, - { + unsafe extern "system" fn FindNext(this: *mut core::ffi::c_void, ppservercontactlink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLinkCollection_Impl::FindNext(this) { Ok(ok__) => { @@ -1041,10 +795,7 @@ impl IContactAggregationLinkCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IContactAggregationLinkCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLinkCollection_Impl::Count(this) { Ok(ok__) => { @@ -1066,7 +817,7 @@ impl IContactAggregationLinkCollection_Vtbl { iid == &::IID } } -pub trait IContactAggregationManager_Impl: Sized { +pub trait IContactAggregationManager_Impl: Sized + windows_core::IUnknownImpl { fn GetVersionInfo(&self, plmajorversion: *mut i32, plminorversion: *mut i32) -> windows_core::Result<()>; fn CreateOrOpenGroup(&self, pgroupname: &windows_core::PCWSTR, options: CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, pcreatedgroup: *mut super::super::Foundation::BOOL) -> windows_core::Result; fn CreateExternalContact(&self) -> windows_core::Result; @@ -1085,21 +836,12 @@ pub trait IContactAggregationManager_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationManager {} impl IContactAggregationManager_Vtbl { - pub const fn new() -> IContactAggregationManager_Vtbl - where - Identity: IContactAggregationManager_Impl, - { - unsafe extern "system" fn GetVersionInfo(this: *mut core::ffi::c_void, plmajorversion: *mut i32, plminorversion: *mut i32) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + pub const fn new() -> IContactAggregationManager_Vtbl { + unsafe extern "system" fn GetVersionInfo(this: *mut core::ffi::c_void, plmajorversion: *mut i32, plminorversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationManager_Impl::GetVersionInfo(this, core::mem::transmute_copy(&plmajorversion), core::mem::transmute_copy(&plminorversion)).into() } - unsafe extern "system" fn CreateOrOpenGroup(this: *mut core::ffi::c_void, pgroupname: windows_core::PCWSTR, options: CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, pcreatedgroup: *mut super::super::Foundation::BOOL, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn CreateOrOpenGroup(this: *mut core::ffi::c_void, pgroupname: windows_core::PCWSTR, options: CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, pcreatedgroup: *mut super::super::Foundation::BOOL, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::CreateOrOpenGroup(this, core::mem::transmute(&pgroupname), core::mem::transmute_copy(&options), core::mem::transmute_copy(&pcreatedgroup)) { Ok(ok__) => { @@ -1109,10 +851,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateExternalContact(this: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn CreateExternalContact(this: *mut core::ffi::c_void, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::CreateExternalContact(this) { Ok(ok__) => { @@ -1122,10 +861,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateServerPerson(this: *mut core::ffi::c_void, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn CreateServerPerson(this: *mut core::ffi::c_void, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::CreateServerPerson(this) { Ok(ok__) => { @@ -1135,10 +871,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateServerContactLink(this: *mut core::ffi::c_void, ppservercontactlink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn CreateServerContactLink(this: *mut core::ffi::c_void, ppservercontactlink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::CreateServerContactLink(this) { Ok(ok__) => { @@ -1148,17 +881,11 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationManager_Impl::Flush(this).into() } - unsafe extern "system" fn OpenAggregateContact(this: *mut core::ffi::c_void, pitemid: windows_core::PCWSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn OpenAggregateContact(this: *mut core::ffi::c_void, pitemid: windows_core::PCWSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::OpenAggregateContact(this, core::mem::transmute(&pitemid)) { Ok(ok__) => { @@ -1168,10 +895,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenContact(this: *mut core::ffi::c_void, pitemid: windows_core::PCWSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn OpenContact(this: *mut core::ffi::c_void, pitemid: windows_core::PCWSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::OpenContact(this, core::mem::transmute(&pitemid)) { Ok(ok__) => { @@ -1181,10 +905,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenServerContactLink(this: *mut core::ffi::c_void, pitemid: windows_core::PCWSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn OpenServerContactLink(this: *mut core::ffi::c_void, pitemid: windows_core::PCWSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::OpenServerContactLink(this, core::mem::transmute(&pitemid)) { Ok(ok__) => { @@ -1194,10 +915,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenServerPerson(this: *mut core::ffi::c_void, pitemid: windows_core::PCWSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn OpenServerPerson(this: *mut core::ffi::c_void, pitemid: windows_core::PCWSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::OpenServerPerson(this, core::mem::transmute(&pitemid)) { Ok(ok__) => { @@ -1207,10 +925,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Contacts(this: *mut core::ffi::c_void, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS, ppitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn get_Contacts(this: *mut core::ffi::c_void, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS, ppitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::get_Contacts(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1220,10 +935,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_AggregateContacts(this: *mut core::ffi::c_void, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS, ppaggregates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn get_AggregateContacts(this: *mut core::ffi::c_void, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS, ppaggregates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::get_AggregateContacts(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1233,10 +945,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Groups(this: *mut core::ffi::c_void, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS, ppgroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn get_Groups(this: *mut core::ffi::c_void, options: CONTACT_AGGREGATION_COLLECTION_OPTIONS, ppgroups: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::get_Groups(this, core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1246,10 +955,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServerPersons(this: *mut core::ffi::c_void, ppserverpersoncollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn ServerPersons(this: *mut core::ffi::c_void, ppserverpersoncollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::ServerPersons(this) { Ok(ok__) => { @@ -1259,10 +965,7 @@ impl IContactAggregationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ServerContactLinks(this: *mut core::ffi::c_void, ppersonitemid: windows_core::PCWSTR, ppservercontactlinkcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationManager_Impl, - { + unsafe extern "system" fn get_ServerContactLinks(this: *mut core::ffi::c_void, ppersonitemid: windows_core::PCWSTR, ppservercontactlinkcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::get_ServerContactLinks(this, core::mem::transmute(&ppersonitemid)) { Ok(ok__) => { @@ -1295,7 +998,7 @@ impl IContactAggregationManager_Vtbl { iid == &::IID } } -pub trait IContactAggregationServerPerson_Impl: Sized { +pub trait IContactAggregationServerPerson_Impl: Sized + windows_core::IUnknownImpl { fn Delete(&self) -> windows_core::Result<()>; fn Save(&self) -> windows_core::Result<()>; fn AggregateId(&self) -> windows_core::Result; @@ -1322,28 +1025,16 @@ pub trait IContactAggregationServerPerson_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationServerPerson {} impl IContactAggregationServerPerson_Vtbl { - pub const fn new() -> IContactAggregationServerPerson_Vtbl - where - Identity: IContactAggregationServerPerson_Impl, - { - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + pub const fn new() -> IContactAggregationServerPerson_Vtbl { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::Delete(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::Save(this).into() } - unsafe extern "system" fn AggregateId(this: *mut core::ffi::c_void, ppaggregateid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn AggregateId(this: *mut core::ffi::c_void, ppaggregateid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::AggregateId(this) { Ok(ok__) => { @@ -1353,17 +1044,11 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAggregateId(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn SetAggregateId(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetAggregateId(this, core::mem::transmute(&paggregateid)).into() } - unsafe extern "system" fn AntiLink(this: *mut core::ffi::c_void, ppantilink: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn AntiLink(this: *mut core::ffi::c_void, ppantilink: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::AntiLink(this) { Ok(ok__) => { @@ -1373,17 +1058,11 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAntiLink(this: *mut core::ffi::c_void, pantilink: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn SetAntiLink(this: *mut core::ffi::c_void, pantilink: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetAntiLink(this, core::mem::transmute(&pantilink)).into() } - unsafe extern "system" fn AntiLinkBaseline(this: *mut core::ffi::c_void, ppantilink: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn AntiLinkBaseline(this: *mut core::ffi::c_void, ppantilink: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::AntiLinkBaseline(this) { Ok(ok__) => { @@ -1393,17 +1072,11 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAntiLinkBaseline(this: *mut core::ffi::c_void, pantilink: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn SetAntiLinkBaseline(this: *mut core::ffi::c_void, pantilink: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetAntiLinkBaseline(this, core::mem::transmute(&pantilink)).into() } - unsafe extern "system" fn FavoriteOrder(this: *mut core::ffi::c_void, pfavoriteorder: *mut u32) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn FavoriteOrder(this: *mut core::ffi::c_void, pfavoriteorder: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::FavoriteOrder(this) { Ok(ok__) => { @@ -1413,17 +1086,11 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFavoriteOrder(this: *mut core::ffi::c_void, favoriteorder: u32) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn SetFavoriteOrder(this: *mut core::ffi::c_void, favoriteorder: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetFavoriteOrder(this, core::mem::transmute_copy(&favoriteorder)).into() } - unsafe extern "system" fn FavoriteOrderBaseline(this: *mut core::ffi::c_void, pfavoriteorder: *mut u32) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn FavoriteOrderBaseline(this: *mut core::ffi::c_void, pfavoriteorder: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::FavoriteOrderBaseline(this) { Ok(ok__) => { @@ -1433,17 +1100,11 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFavoriteOrderBaseline(this: *mut core::ffi::c_void, favoriteorder: u32) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn SetFavoriteOrderBaseline(this: *mut core::ffi::c_void, favoriteorder: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetFavoriteOrderBaseline(this, core::mem::transmute_copy(&favoriteorder)).into() } - unsafe extern "system" fn Groups(this: *mut core::ffi::c_void, pgroups: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn Groups(this: *mut core::ffi::c_void, pgroups: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::Groups(this) { Ok(ok__) => { @@ -1453,17 +1114,11 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGroups(this: *mut core::ffi::c_void, pgroups: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn SetGroups(this: *mut core::ffi::c_void, pgroups: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetGroups(this, core::mem::transmute_copy(&pgroups)).into() } - unsafe extern "system" fn GroupsBaseline(this: *mut core::ffi::c_void, ppgroups: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn GroupsBaseline(this: *mut core::ffi::c_void, ppgroups: *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::GroupsBaseline(this) { Ok(ok__) => { @@ -1473,17 +1128,11 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGroupsBaseline(this: *mut core::ffi::c_void, pgroups: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn SetGroupsBaseline(this: *mut core::ffi::c_void, pgroups: *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetGroupsBaseline(this, core::mem::transmute_copy(&pgroups)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, ppid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, ppid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::Id(this) { Ok(ok__) => { @@ -1493,10 +1142,7 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsTombstone(this: *mut core::ffi::c_void, pistombstone: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn IsTombstone(this: *mut core::ffi::c_void, pistombstone: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::IsTombstone(this) { Ok(ok__) => { @@ -1506,17 +1152,11 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsTombstone(this: *mut core::ffi::c_void, istombstone: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn SetIsTombstone(this: *mut core::ffi::c_void, istombstone: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetIsTombstone(this, core::mem::transmute_copy(&istombstone)).into() } - unsafe extern "system" fn LinkedAggregateId(this: *mut core::ffi::c_void, pplinkedaggregateid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn LinkedAggregateId(this: *mut core::ffi::c_void, pplinkedaggregateid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::LinkedAggregateId(this) { Ok(ok__) => { @@ -1526,17 +1166,11 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLinkedAggregateId(this: *mut core::ffi::c_void, plinkedaggregateid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn SetLinkedAggregateId(this: *mut core::ffi::c_void, plinkedaggregateid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetLinkedAggregateId(this, core::mem::transmute(&plinkedaggregateid)).into() } - unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppobjectid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn ObjectId(this: *mut core::ffi::c_void, ppobjectid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::ObjectId(this) { Ok(ok__) => { @@ -1546,10 +1180,7 @@ impl IContactAggregationServerPerson_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectId(this: *mut core::ffi::c_void, pobjectid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPerson_Impl, - { + unsafe extern "system" fn SetObjectId(this: *mut core::ffi::c_void, pobjectid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetObjectId(this, core::mem::transmute(&pobjectid)).into() } @@ -1584,7 +1215,7 @@ impl IContactAggregationServerPerson_Vtbl { iid == &::IID } } -pub trait IContactAggregationServerPersonCollection_Impl: Sized { +pub trait IContactAggregationServerPersonCollection_Impl: Sized + windows_core::IUnknownImpl { fn FindFirst(&self) -> windows_core::Result; fn FindFirstByServerId(&self, pserverid: &windows_core::PCWSTR) -> windows_core::Result; fn FindFirstByAggregateId(&self, paggregateid: &windows_core::PCWSTR) -> windows_core::Result; @@ -1594,14 +1225,8 @@ pub trait IContactAggregationServerPersonCollection_Impl: Sized { } impl windows_core::RuntimeName for IContactAggregationServerPersonCollection {} impl IContactAggregationServerPersonCollection_Vtbl { - pub const fn new() -> IContactAggregationServerPersonCollection_Vtbl - where - Identity: IContactAggregationServerPersonCollection_Impl, - { - unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPersonCollection_Impl, - { + pub const fn new() -> IContactAggregationServerPersonCollection_Vtbl { + unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPersonCollection_Impl::FindFirst(this) { Ok(ok__) => { @@ -1611,10 +1236,7 @@ impl IContactAggregationServerPersonCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstByServerId(this: *mut core::ffi::c_void, pserverid: windows_core::PCWSTR, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPersonCollection_Impl, - { + unsafe extern "system" fn FindFirstByServerId(this: *mut core::ffi::c_void, pserverid: windows_core::PCWSTR, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPersonCollection_Impl::FindFirstByServerId(this, core::mem::transmute(&pserverid)) { Ok(ok__) => { @@ -1624,10 +1246,7 @@ impl IContactAggregationServerPersonCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstByAggregateId(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPersonCollection_Impl, - { + unsafe extern "system" fn FindFirstByAggregateId(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPersonCollection_Impl::FindFirstByAggregateId(this, core::mem::transmute(&paggregateid)) { Ok(ok__) => { @@ -1637,10 +1256,7 @@ impl IContactAggregationServerPersonCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstByLinkedAggregateId(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPersonCollection_Impl, - { + unsafe extern "system" fn FindFirstByLinkedAggregateId(this: *mut core::ffi::c_void, paggregateid: windows_core::PCWSTR, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPersonCollection_Impl::FindFirstByLinkedAggregateId(this, core::mem::transmute(&paggregateid)) { Ok(ok__) => { @@ -1650,10 +1266,7 @@ impl IContactAggregationServerPersonCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindNext(this: *mut core::ffi::c_void, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPersonCollection_Impl, - { + unsafe extern "system" fn FindNext(this: *mut core::ffi::c_void, ppserverperson: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPersonCollection_Impl::FindNext(this) { Ok(ok__) => { @@ -1663,10 +1276,7 @@ impl IContactAggregationServerPersonCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IContactAggregationServerPersonCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPersonCollection_Impl::Count(this) { Ok(ok__) => { @@ -1690,35 +1300,23 @@ impl IContactAggregationServerPersonCollection_Vtbl { iid == &::IID } } -pub trait IContactCollection_Impl: Sized { +pub trait IContactCollection_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn Next(&self) -> windows_core::Result<()>; fn GetCurrent(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IContactCollection {} impl IContactCollection_Vtbl { - pub const fn new() -> IContactCollection_Vtbl - where - Identity: IContactCollection_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactCollection_Impl, - { + pub const fn new() -> IContactCollection_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactCollection_Impl::Reset(this).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactCollection_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactCollection_Impl::Next(this).into() } - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, ppcontact: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactCollection_Impl, - { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, ppcontact: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactCollection_Impl::GetCurrent(this) { Ok(ok__) => { @@ -1739,7 +1337,7 @@ impl IContactCollection_Vtbl { iid == &::IID } } -pub trait IContactManager_Impl: Sized { +pub trait IContactManager_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pszappname: &windows_core::PCWSTR, pszappversion: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Load(&self, pszcontactid: &windows_core::PCWSTR) -> windows_core::Result; fn MergeContactIDs(&self, psznewcontactid: &windows_core::PCWSTR, pszoldcontactid: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -1749,21 +1347,12 @@ pub trait IContactManager_Impl: Sized { } impl windows_core::RuntimeName for IContactManager {} impl IContactManager_Vtbl { - pub const fn new() -> IContactManager_Vtbl - where - Identity: IContactManager_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszappname: windows_core::PCWSTR, pszappversion: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactManager_Impl, - { + pub const fn new() -> IContactManager_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszappname: windows_core::PCWSTR, pszappversion: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactManager_Impl::Initialize(this, core::mem::transmute(&pszappname), core::mem::transmute(&pszappversion)).into() } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pszcontactid: windows_core::PCWSTR, ppcontact: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactManager_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, pszcontactid: windows_core::PCWSTR, ppcontact: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactManager_Impl::Load(this, core::mem::transmute(&pszcontactid)) { Ok(ok__) => { @@ -1773,17 +1362,11 @@ impl IContactManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MergeContactIDs(this: *mut core::ffi::c_void, psznewcontactid: windows_core::PCWSTR, pszoldcontactid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactManager_Impl, - { + unsafe extern "system" fn MergeContactIDs(this: *mut core::ffi::c_void, psznewcontactid: windows_core::PCWSTR, pszoldcontactid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactManager_Impl::MergeContactIDs(this, core::mem::transmute(&psznewcontactid), core::mem::transmute(&pszoldcontactid)).into() } - unsafe extern "system" fn GetMeContact(this: *mut core::ffi::c_void, ppmecontact: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactManager_Impl, - { + unsafe extern "system" fn GetMeContact(this: *mut core::ffi::c_void, ppmecontact: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactManager_Impl::GetMeContact(this) { Ok(ok__) => { @@ -1793,17 +1376,11 @@ impl IContactManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMeContact(this: *mut core::ffi::c_void, pmecontact: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactManager_Impl, - { + unsafe extern "system" fn SetMeContact(this: *mut core::ffi::c_void, pmecontact: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactManager_Impl::SetMeContact(this, windows_core::from_raw_borrowed(&pmecontact)).into() } - unsafe extern "system" fn GetContactCollection(this: *mut core::ffi::c_void, ppcontactcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactManager_Impl, - { + unsafe extern "system" fn GetContactCollection(this: *mut core::ffi::c_void, ppcontactcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactManager_Impl::GetContactCollection(this) { Ok(ok__) => { @@ -1828,7 +1405,7 @@ impl IContactManager_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IContactProperties_Impl: Sized { +pub trait IContactProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetString(&self, pszpropertyname: &windows_core::PCWSTR, dwflags: u32, pszvalue: &windows_core::PWSTR, cchvalue: u32, pdwcchpropertyvaluerequired: *mut u32) -> windows_core::Result<()>; fn GetDate(&self, pszpropertyname: &windows_core::PCWSTR, dwflags: u32, pftdatetime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()>; fn GetBinary(&self, pszpropertyname: &windows_core::PCWSTR, dwflags: u32, pszcontenttype: &windows_core::PWSTR, cchcontenttype: u32, pdwcchcontenttyperequired: *mut u32, ppstream: *mut Option) -> windows_core::Result<()>; @@ -1847,98 +1424,56 @@ pub trait IContactProperties_Impl: Sized { impl windows_core::RuntimeName for IContactProperties {} #[cfg(feature = "Win32_System_Com")] impl IContactProperties_Vtbl { - pub const fn new() -> IContactProperties_Vtbl - where - Identity: IContactProperties_Impl, - { - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, pszvalue: windows_core::PWSTR, cchvalue: u32, pdwcchpropertyvaluerequired: *mut u32) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + pub const fn new() -> IContactProperties_Vtbl { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, pszvalue: windows_core::PWSTR, cchvalue: u32, pdwcchpropertyvaluerequired: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::GetString(this, core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszvalue), core::mem::transmute_copy(&cchvalue), core::mem::transmute_copy(&pdwcchpropertyvaluerequired)).into() } - unsafe extern "system" fn GetDate(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, pftdatetime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn GetDate(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, pftdatetime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::GetDate(this, core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pftdatetime)).into() } - unsafe extern "system" fn GetBinary(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, pszcontenttype: windows_core::PWSTR, cchcontenttype: u32, pdwcchcontenttyperequired: *mut u32, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn GetBinary(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, pszcontenttype: windows_core::PWSTR, cchcontenttype: u32, pdwcchcontenttyperequired: *mut u32, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::GetBinary(this, core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszcontenttype), core::mem::transmute_copy(&cchcontenttype), core::mem::transmute_copy(&pdwcchcontenttyperequired), core::mem::transmute_copy(&ppstream)).into() } - unsafe extern "system" fn GetLabels(this: *mut core::ffi::c_void, pszarrayelementname: windows_core::PCWSTR, dwflags: u32, pszlabels: windows_core::PWSTR, cchlabels: u32, pdwcchlabelsrequired: *mut u32) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn GetLabels(this: *mut core::ffi::c_void, pszarrayelementname: windows_core::PCWSTR, dwflags: u32, pszlabels: windows_core::PWSTR, cchlabels: u32, pdwcchlabelsrequired: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::GetLabels(this, core::mem::transmute(&pszarrayelementname), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszlabels), core::mem::transmute_copy(&cchlabels), core::mem::transmute_copy(&pdwcchlabelsrequired)).into() } - unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, pszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, pszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::SetString(this, core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszvalue)).into() } - unsafe extern "system" fn SetDate(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, ftdatetime: super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn SetDate(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, ftdatetime: super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::SetDate(this, core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&dwflags), core::mem::transmute(&ftdatetime)).into() } - unsafe extern "system" fn SetBinary(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, pszcontenttype: windows_core::PCWSTR, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn SetBinary(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32, pszcontenttype: windows_core::PCWSTR, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::SetBinary(this, core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszcontenttype), windows_core::from_raw_borrowed(&pstream)).into() } - unsafe extern "system" fn SetLabels(this: *mut core::ffi::c_void, pszarrayelementname: windows_core::PCWSTR, dwflags: u32, dwlabelcount: u32, ppszlabels: *const windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn SetLabels(this: *mut core::ffi::c_void, pszarrayelementname: windows_core::PCWSTR, dwflags: u32, dwlabelcount: u32, ppszlabels: *const windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::SetLabels(this, core::mem::transmute(&pszarrayelementname), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwlabelcount), core::mem::transmute_copy(&ppszlabels)).into() } - unsafe extern "system" fn CreateArrayNode(this: *mut core::ffi::c_void, pszarrayname: windows_core::PCWSTR, dwflags: u32, fappend: super::super::Foundation::BOOL, psznewarrayelementname: windows_core::PWSTR, cchnewarrayelementname: u32, pdwcchnewarrayelementnamerequired: *mut u32) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn CreateArrayNode(this: *mut core::ffi::c_void, pszarrayname: windows_core::PCWSTR, dwflags: u32, fappend: super::super::Foundation::BOOL, psznewarrayelementname: windows_core::PWSTR, cchnewarrayelementname: u32, pdwcchnewarrayelementnamerequired: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::CreateArrayNode(this, core::mem::transmute(&pszarrayname), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&fappend), core::mem::transmute(&psznewarrayelementname), core::mem::transmute_copy(&cchnewarrayelementname), core::mem::transmute_copy(&pdwcchnewarrayelementnamerequired)).into() } - unsafe extern "system" fn DeleteProperty(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn DeleteProperty(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::DeleteProperty(this, core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn DeleteArrayNode(this: *mut core::ffi::c_void, pszarrayelementname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn DeleteArrayNode(this: *mut core::ffi::c_void, pszarrayelementname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::DeleteArrayNode(this, core::mem::transmute(&pszarrayelementname), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn DeleteLabels(this: *mut core::ffi::c_void, pszarrayelementname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn DeleteLabels(this: *mut core::ffi::c_void, pszarrayelementname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::DeleteLabels(this, core::mem::transmute(&pszarrayelementname), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetPropertyCollection(this: *mut core::ffi::c_void, pppropertycollection: *mut *mut core::ffi::c_void, dwflags: u32, pszmultivaluename: windows_core::PCWSTR, dwlabelcount: u32, ppszlabels: *const windows_core::PCWSTR, fanylabelmatches: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IContactProperties_Impl, - { + unsafe extern "system" fn GetPropertyCollection(this: *mut core::ffi::c_void, pppropertycollection: *mut *mut core::ffi::c_void, dwflags: u32, pszmultivaluename: windows_core::PCWSTR, dwlabelcount: u32, ppszlabels: *const windows_core::PCWSTR, fanylabelmatches: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::GetPropertyCollection(this, core::mem::transmute_copy(&pppropertycollection), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszmultivaluename), core::mem::transmute_copy(&dwlabelcount), core::mem::transmute_copy(&ppszlabels), core::mem::transmute_copy(&fanylabelmatches)).into() } @@ -1963,7 +1498,7 @@ impl IContactProperties_Vtbl { iid == &::IID } } -pub trait IContactPropertyCollection_Impl: Sized { +pub trait IContactPropertyCollection_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn Next(&self) -> windows_core::Result<()>; fn GetPropertyName(&self, pszpropertyname: &windows_core::PWSTR, cchpropertyname: u32, pdwcchpropertynamerequired: *mut u32) -> windows_core::Result<()>; @@ -1974,56 +1509,32 @@ pub trait IContactPropertyCollection_Impl: Sized { } impl windows_core::RuntimeName for IContactPropertyCollection {} impl IContactPropertyCollection_Vtbl { - pub const fn new() -> IContactPropertyCollection_Vtbl - where - Identity: IContactPropertyCollection_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactPropertyCollection_Impl, - { + pub const fn new() -> IContactPropertyCollection_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactPropertyCollection_Impl::Reset(this).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContactPropertyCollection_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactPropertyCollection_Impl::Next(this).into() } - unsafe extern "system" fn GetPropertyName(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PWSTR, cchpropertyname: u32, pdwcchpropertynamerequired: *mut u32) -> windows_core::HRESULT - where - Identity: IContactPropertyCollection_Impl, - { + unsafe extern "system" fn GetPropertyName(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PWSTR, cchpropertyname: u32, pdwcchpropertynamerequired: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactPropertyCollection_Impl::GetPropertyName(this, core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&cchpropertyname), core::mem::transmute_copy(&pdwcchpropertynamerequired)).into() } - unsafe extern "system" fn GetPropertyType(this: *mut core::ffi::c_void, pdwtype: *mut u32) -> windows_core::HRESULT - where - Identity: IContactPropertyCollection_Impl, - { + unsafe extern "system" fn GetPropertyType(this: *mut core::ffi::c_void, pdwtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactPropertyCollection_Impl::GetPropertyType(this, core::mem::transmute_copy(&pdwtype)).into() } - unsafe extern "system" fn GetPropertyVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT - where - Identity: IContactPropertyCollection_Impl, - { + unsafe extern "system" fn GetPropertyVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactPropertyCollection_Impl::GetPropertyVersion(this, core::mem::transmute_copy(&pdwversion)).into() } - unsafe extern "system" fn GetPropertyModificationDate(this: *mut core::ffi::c_void, pftmodificationdate: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IContactPropertyCollection_Impl, - { + unsafe extern "system" fn GetPropertyModificationDate(this: *mut core::ffi::c_void, pftmodificationdate: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactPropertyCollection_Impl::GetPropertyModificationDate(this, core::mem::transmute_copy(&pftmodificationdate)).into() } - unsafe extern "system" fn GetPropertyArrayElementID(this: *mut core::ffi::c_void, pszarrayelementid: windows_core::PWSTR, ccharrayelementid: u32, pdwccharrayelementidrequired: *mut u32) -> windows_core::HRESULT - where - Identity: IContactPropertyCollection_Impl, - { + unsafe extern "system" fn GetPropertyArrayElementID(this: *mut core::ffi::c_void, pszarrayelementid: windows_core::PWSTR, ccharrayelementid: u32, pdwccharrayelementidrequired: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactPropertyCollection_Impl::GetPropertyArrayElementID(this, core::mem::transmute(&pszarrayelementid), core::mem::transmute_copy(&ccharrayelementid), core::mem::transmute_copy(&pdwccharrayelementidrequired)).into() } 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 bebf4ed160..7bda76ebc6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/impl.rs @@ -9,14 +9,8 @@ pub trait IWdsTransportCacheable_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportCacheable {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportCacheable_Vtbl { - pub const fn new() -> IWdsTransportCacheable_Vtbl - where - Identity: IWdsTransportCacheable_Impl, - { - unsafe extern "system" fn Dirty(this: *mut core::ffi::c_void, pbdirty: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportCacheable_Impl, - { + pub const fn new() -> IWdsTransportCacheable_Vtbl { + unsafe extern "system" fn Dirty(this: *mut core::ffi::c_void, pbdirty: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportCacheable_Impl::Dirty(this) { Ok(ok__) => { @@ -26,24 +20,15 @@ impl IWdsTransportCacheable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Discard(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportCacheable_Impl, - { + unsafe extern "system" fn Discard(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportCacheable_Impl::Discard(this).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportCacheable_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportCacheable_Impl::Refresh(this).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportCacheable_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportCacheable_Impl::Commit(this).into() } @@ -78,14 +63,8 @@ pub trait IWdsTransportClient_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportClient {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportClient_Vtbl { - pub const fn new() -> IWdsTransportClient_Vtbl - where - Identity: IWdsTransportClient_Impl, - { - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppwdstransportsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + pub const fn new() -> IWdsTransportClient_Vtbl { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppwdstransportsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::Session(this) { Ok(ok__) => { @@ -95,10 +74,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::Id(this) { Ok(ok__) => { @@ -108,10 +84,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::Name(this) { Ok(ok__) => { @@ -121,10 +94,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MacAddress(this: *mut core::ffi::c_void, pbszmacaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn MacAddress(this: *mut core::ffi::c_void, pbszmacaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::MacAddress(this) { Ok(ok__) => { @@ -134,10 +104,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IpAddress(this: *mut core::ffi::c_void, pbszipaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn IpAddress(this: *mut core::ffi::c_void, pbszipaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::IpAddress(this) { Ok(ok__) => { @@ -147,10 +114,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PercentCompletion(this: *mut core::ffi::c_void, pulpercentcompletion: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn PercentCompletion(this: *mut core::ffi::c_void, pulpercentcompletion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::PercentCompletion(this) { Ok(ok__) => { @@ -160,10 +124,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn JoinDuration(this: *mut core::ffi::c_void, puljoinduration: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn JoinDuration(this: *mut core::ffi::c_void, puljoinduration: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::JoinDuration(this) { Ok(ok__) => { @@ -173,10 +134,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CpuUtilization(this: *mut core::ffi::c_void, pulcpuutilization: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn CpuUtilization(this: *mut core::ffi::c_void, pulcpuutilization: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::CpuUtilization(this) { Ok(ok__) => { @@ -186,10 +144,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MemoryUtilization(this: *mut core::ffi::c_void, pulmemoryutilization: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn MemoryUtilization(this: *mut core::ffi::c_void, pulmemoryutilization: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::MemoryUtilization(this) { Ok(ok__) => { @@ -199,10 +154,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NetworkUtilization(this: *mut core::ffi::c_void, pulnetworkutilization: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn NetworkUtilization(this: *mut core::ffi::c_void, pulnetworkutilization: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::NetworkUtilization(this) { Ok(ok__) => { @@ -212,10 +164,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserIdentity(this: *mut core::ffi::c_void, pbszuseridentity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn UserIdentity(this: *mut core::ffi::c_void, pbszuseridentity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportClient_Impl::UserIdentity(this) { Ok(ok__) => { @@ -225,10 +174,7 @@ impl IWdsTransportClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> windows_core::HRESULT - where - Identity: IWdsTransportClient_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportClient_Impl::Disconnect(this, core::mem::transmute_copy(&disconnectiontype)).into() } @@ -262,14 +208,8 @@ pub trait IWdsTransportCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportCollection {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportCollection_Vtbl { - pub const fn new() -> IWdsTransportCollection_Vtbl - where - Identity: IWdsTransportCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportCollection_Impl, - { + pub const fn new() -> IWdsTransportCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportCollection_Impl::Count(this) { Ok(ok__) => { @@ -279,10 +219,7 @@ impl IWdsTransportCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, ulindex: u32, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, ulindex: u32, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportCollection_Impl::get_Item(this, core::mem::transmute_copy(&ulindex)) { Ok(ok__) => { @@ -292,10 +229,7 @@ impl IWdsTransportCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -332,14 +266,8 @@ pub trait IWdsTransportConfigurationManager_Impl: Sized + super::Com::IDispatch_ impl windows_core::RuntimeName for IWdsTransportConfigurationManager {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportConfigurationManager_Vtbl { - pub const fn new() -> IWdsTransportConfigurationManager_Vtbl - where - Identity: IWdsTransportConfigurationManager_Impl, - { - unsafe extern "system" fn ServicePolicy(this: *mut core::ffi::c_void, ppwdstransportservicepolicy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportConfigurationManager_Impl, - { + pub const fn new() -> IWdsTransportConfigurationManager_Vtbl { + unsafe extern "system" fn ServicePolicy(this: *mut core::ffi::c_void, ppwdstransportservicepolicy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportConfigurationManager_Impl::ServicePolicy(this) { Ok(ok__) => { @@ -349,10 +277,7 @@ impl IWdsTransportConfigurationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DiagnosticsPolicy(this: *mut core::ffi::c_void, ppwdstransportdiagnosticspolicy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportConfigurationManager_Impl, - { + unsafe extern "system" fn DiagnosticsPolicy(this: *mut core::ffi::c_void, ppwdstransportdiagnosticspolicy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportConfigurationManager_Impl::DiagnosticsPolicy(this) { Ok(ok__) => { @@ -362,10 +287,7 @@ impl IWdsTransportConfigurationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_WdsTransportServicesRunning(this: *mut core::ffi::c_void, brealtimestatus: super::super::Foundation::VARIANT_BOOL, pbservicesrunning: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportConfigurationManager_Impl, - { + unsafe extern "system" fn get_WdsTransportServicesRunning(this: *mut core::ffi::c_void, brealtimestatus: super::super::Foundation::VARIANT_BOOL, pbservicesrunning: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportConfigurationManager_Impl::get_WdsTransportServicesRunning(this, core::mem::transmute_copy(&brealtimestatus)) { Ok(ok__) => { @@ -375,45 +297,27 @@ impl IWdsTransportConfigurationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableWdsTransportServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportConfigurationManager_Impl, - { + unsafe extern "system" fn EnableWdsTransportServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportConfigurationManager_Impl::EnableWdsTransportServices(this).into() } - unsafe extern "system" fn DisableWdsTransportServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportConfigurationManager_Impl, - { + unsafe extern "system" fn DisableWdsTransportServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportConfigurationManager_Impl::DisableWdsTransportServices(this).into() } - unsafe extern "system" fn StartWdsTransportServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportConfigurationManager_Impl, - { + unsafe extern "system" fn StartWdsTransportServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportConfigurationManager_Impl::StartWdsTransportServices(this).into() } - unsafe extern "system" fn StopWdsTransportServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportConfigurationManager_Impl, - { + unsafe extern "system" fn StopWdsTransportServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportConfigurationManager_Impl::StopWdsTransportServices(this).into() } - unsafe extern "system" fn RestartWdsTransportServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportConfigurationManager_Impl, - { + unsafe extern "system" fn RestartWdsTransportServices(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportConfigurationManager_Impl::RestartWdsTransportServices(this).into() } - unsafe extern "system" fn NotifyWdsTransportServices(this: *mut core::ffi::c_void, servicenotification: WDSTRANSPORT_SERVICE_NOTIFICATION) -> windows_core::HRESULT - where - Identity: IWdsTransportConfigurationManager_Impl, - { + unsafe extern "system" fn NotifyWdsTransportServices(this: *mut core::ffi::c_void, servicenotification: WDSTRANSPORT_SERVICE_NOTIFICATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportConfigurationManager_Impl::NotifyWdsTransportServices(this, core::mem::transmute_copy(&servicenotification)).into() } @@ -442,14 +346,8 @@ pub trait IWdsTransportConfigurationManager2_Impl: Sized + IWdsTransportConfigur impl windows_core::RuntimeName for IWdsTransportConfigurationManager2 {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportConfigurationManager2_Vtbl { - pub const fn new() -> IWdsTransportConfigurationManager2_Vtbl - where - Identity: IWdsTransportConfigurationManager2_Impl, - { - unsafe extern "system" fn MulticastSessionPolicy(this: *mut core::ffi::c_void, ppwdstransportmulticastsessionpolicy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportConfigurationManager2_Impl, - { + pub const fn new() -> IWdsTransportConfigurationManager2_Vtbl { + unsafe extern "system" fn MulticastSessionPolicy(this: *mut core::ffi::c_void, ppwdstransportmulticastsessionpolicy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportConfigurationManager2_Impl::MulticastSessionPolicy(this) { Ok(ok__) => { @@ -477,14 +375,8 @@ pub trait IWdsTransportContent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportContent {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportContent_Vtbl { - pub const fn new() -> IWdsTransportContent_Vtbl - where - Identity: IWdsTransportContent_Impl, - { - unsafe extern "system" fn Namespace(this: *mut core::ffi::c_void, ppwdstransportnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportContent_Impl, - { + pub const fn new() -> IWdsTransportContent_Vtbl { + unsafe extern "system" fn Namespace(this: *mut core::ffi::c_void, ppwdstransportnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportContent_Impl::Namespace(this) { Ok(ok__) => { @@ -494,10 +386,7 @@ impl IWdsTransportContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportContent_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportContent_Impl::Id(this) { Ok(ok__) => { @@ -507,10 +396,7 @@ impl IWdsTransportContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportContent_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportContent_Impl::Name(this) { Ok(ok__) => { @@ -520,10 +406,7 @@ impl IWdsTransportContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RetrieveSessions(this: *mut core::ffi::c_void, ppwdstransportsessions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportContent_Impl, - { + unsafe extern "system" fn RetrieveSessions(this: *mut core::ffi::c_void, ppwdstransportsessions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportContent_Impl::RetrieveSessions(this) { Ok(ok__) => { @@ -533,10 +416,7 @@ impl IWdsTransportContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportContent_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportContent_Impl::Terminate(this).into() } @@ -564,14 +444,8 @@ pub trait IWdsTransportContentProvider_Impl: Sized + super::Com::IDispatch_Impl impl windows_core::RuntimeName for IWdsTransportContentProvider {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportContentProvider_Vtbl { - pub const fn new() -> IWdsTransportContentProvider_Vtbl - where - Identity: IWdsTransportContentProvider_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportContentProvider_Impl, - { + pub const fn new() -> IWdsTransportContentProvider_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportContentProvider_Impl::Name(this) { Ok(ok__) => { @@ -581,10 +455,7 @@ impl IWdsTransportContentProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportContentProvider_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportContentProvider_Impl::Description(this) { Ok(ok__) => { @@ -594,10 +465,7 @@ impl IWdsTransportContentProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FilePath(this: *mut core::ffi::c_void, pbszfilepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportContentProvider_Impl, - { + unsafe extern "system" fn FilePath(this: *mut core::ffi::c_void, pbszfilepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportContentProvider_Impl::FilePath(this) { Ok(ok__) => { @@ -607,10 +475,7 @@ impl IWdsTransportContentProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializationRoutine(this: *mut core::ffi::c_void, pbszinitializationroutine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportContentProvider_Impl, - { + unsafe extern "system" fn InitializationRoutine(this: *mut core::ffi::c_void, pbszinitializationroutine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportContentProvider_Impl::InitializationRoutine(this) { Ok(ok__) => { @@ -643,14 +508,8 @@ pub trait IWdsTransportDiagnosticsPolicy_Impl: Sized + IWdsTransportCacheable_Im impl windows_core::RuntimeName for IWdsTransportDiagnosticsPolicy {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportDiagnosticsPolicy_Vtbl { - pub const fn new() -> IWdsTransportDiagnosticsPolicy_Vtbl - where - Identity: IWdsTransportDiagnosticsPolicy_Impl, - { - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportDiagnosticsPolicy_Impl, - { + pub const fn new() -> IWdsTransportDiagnosticsPolicy_Vtbl { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportDiagnosticsPolicy_Impl::Enabled(this) { Ok(ok__) => { @@ -660,17 +519,11 @@ impl IWdsTransportDiagnosticsPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportDiagnosticsPolicy_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportDiagnosticsPolicy_Impl::SetEnabled(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn Components(this: *mut core::ffi::c_void, pulcomponents: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportDiagnosticsPolicy_Impl, - { + unsafe extern "system" fn Components(this: *mut core::ffi::c_void, pulcomponents: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportDiagnosticsPolicy_Impl::Components(this) { Ok(ok__) => { @@ -680,10 +533,7 @@ impl IWdsTransportDiagnosticsPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetComponents(this: *mut core::ffi::c_void, ulcomponents: u32) -> windows_core::HRESULT - where - Identity: IWdsTransportDiagnosticsPolicy_Impl, - { + unsafe extern "system" fn SetComponents(this: *mut core::ffi::c_void, ulcomponents: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportDiagnosticsPolicy_Impl::SetComponents(this, core::mem::transmute_copy(&ulcomponents)).into() } @@ -707,14 +557,8 @@ pub trait IWdsTransportManager_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportManager {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportManager_Vtbl { - pub const fn new() -> IWdsTransportManager_Vtbl - where - Identity: IWdsTransportManager_Impl, - { - unsafe extern "system" fn GetWdsTransportServer(this: *mut core::ffi::c_void, bszservername: core::mem::MaybeUninit, ppwdstransportserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportManager_Impl, - { + pub const fn new() -> IWdsTransportManager_Vtbl { + unsafe extern "system" fn GetWdsTransportServer(this: *mut core::ffi::c_void, bszservername: core::mem::MaybeUninit, ppwdstransportserver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportManager_Impl::GetWdsTransportServer(this, core::mem::transmute(&bszservername)) { Ok(ok__) => { @@ -745,14 +589,8 @@ pub trait IWdsTransportMulticastSessionPolicy_Impl: Sized + IWdsTransportCacheab impl windows_core::RuntimeName for IWdsTransportMulticastSessionPolicy {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportMulticastSessionPolicy_Vtbl { - pub const fn new() -> IWdsTransportMulticastSessionPolicy_Vtbl - where - Identity: IWdsTransportMulticastSessionPolicy_Impl, - { - unsafe extern "system" fn SlowClientHandling(this: *mut core::ffi::c_void, pslowclienthandling: *mut WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) -> windows_core::HRESULT - where - Identity: IWdsTransportMulticastSessionPolicy_Impl, - { + pub const fn new() -> IWdsTransportMulticastSessionPolicy_Vtbl { + unsafe extern "system" fn SlowClientHandling(this: *mut core::ffi::c_void, pslowclienthandling: *mut WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportMulticastSessionPolicy_Impl::SlowClientHandling(this) { Ok(ok__) => { @@ -762,17 +600,11 @@ impl IWdsTransportMulticastSessionPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSlowClientHandling(this: *mut core::ffi::c_void, slowclienthandling: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) -> windows_core::HRESULT - where - Identity: IWdsTransportMulticastSessionPolicy_Impl, - { + unsafe extern "system" fn SetSlowClientHandling(this: *mut core::ffi::c_void, slowclienthandling: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportMulticastSessionPolicy_Impl::SetSlowClientHandling(this, core::mem::transmute_copy(&slowclienthandling)).into() } - unsafe extern "system" fn AutoDisconnectThreshold(this: *mut core::ffi::c_void, pulthreshold: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportMulticastSessionPolicy_Impl, - { + unsafe extern "system" fn AutoDisconnectThreshold(this: *mut core::ffi::c_void, pulthreshold: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportMulticastSessionPolicy_Impl::AutoDisconnectThreshold(this) { Ok(ok__) => { @@ -782,17 +614,11 @@ impl IWdsTransportMulticastSessionPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoDisconnectThreshold(this: *mut core::ffi::c_void, ulthreshold: u32) -> windows_core::HRESULT - where - Identity: IWdsTransportMulticastSessionPolicy_Impl, - { + unsafe extern "system" fn SetAutoDisconnectThreshold(this: *mut core::ffi::c_void, ulthreshold: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportMulticastSessionPolicy_Impl::SetAutoDisconnectThreshold(this, core::mem::transmute_copy(&ulthreshold)).into() } - unsafe extern "system" fn MultistreamStreamCount(this: *mut core::ffi::c_void, pulstreamcount: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportMulticastSessionPolicy_Impl, - { + unsafe extern "system" fn MultistreamStreamCount(this: *mut core::ffi::c_void, pulstreamcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportMulticastSessionPolicy_Impl::MultistreamStreamCount(this) { Ok(ok__) => { @@ -802,17 +628,11 @@ impl IWdsTransportMulticastSessionPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMultistreamStreamCount(this: *mut core::ffi::c_void, ulstreamcount: u32) -> windows_core::HRESULT - where - Identity: IWdsTransportMulticastSessionPolicy_Impl, - { + unsafe extern "system" fn SetMultistreamStreamCount(this: *mut core::ffi::c_void, ulstreamcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportMulticastSessionPolicy_Impl::SetMultistreamStreamCount(this, core::mem::transmute_copy(&ulstreamcount)).into() } - unsafe extern "system" fn SlowClientFallback(this: *mut core::ffi::c_void, pbclientfallback: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportMulticastSessionPolicy_Impl, - { + unsafe extern "system" fn SlowClientFallback(this: *mut core::ffi::c_void, pbclientfallback: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportMulticastSessionPolicy_Impl::SlowClientFallback(this) { Ok(ok__) => { @@ -822,10 +642,7 @@ impl IWdsTransportMulticastSessionPolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSlowClientFallback(this: *mut core::ffi::c_void, bclientfallback: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportMulticastSessionPolicy_Impl, - { + unsafe extern "system" fn SetSlowClientFallback(this: *mut core::ffi::c_void, bclientfallback: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportMulticastSessionPolicy_Impl::SetSlowClientFallback(this, core::mem::transmute_copy(&bclientfallback)).into() } @@ -873,14 +690,8 @@ pub trait IWdsTransportNamespace_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportNamespace {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespace_Vtbl { - pub const fn new() -> IWdsTransportNamespace_Vtbl - where - Identity: IWdsTransportNamespace_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut WDSTRANSPORT_NAMESPACE_TYPE) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + pub const fn new() -> IWdsTransportNamespace_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut WDSTRANSPORT_NAMESPACE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::Type(this) { Ok(ok__) => { @@ -890,10 +701,7 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::Id(this) { Ok(ok__) => { @@ -903,10 +711,7 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::Name(this) { Ok(ok__) => { @@ -916,17 +721,11 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bszname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bszname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespace_Impl::SetName(this, core::mem::transmute(&bszname)).into() } - unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pbszfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn FriendlyName(this: *mut core::ffi::c_void, pbszfriendlyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::FriendlyName(this) { Ok(ok__) => { @@ -936,17 +735,11 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, bszfriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, bszfriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespace_Impl::SetFriendlyName(this, core::mem::transmute(&bszfriendlyname)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::Description(this) { Ok(ok__) => { @@ -956,17 +749,11 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bszdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bszdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespace_Impl::SetDescription(this, core::mem::transmute(&bszdescription)).into() } - unsafe extern "system" fn ContentProvider(this: *mut core::ffi::c_void, pbszcontentprovider: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn ContentProvider(this: *mut core::ffi::c_void, pbszcontentprovider: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::ContentProvider(this) { Ok(ok__) => { @@ -976,17 +763,11 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContentProvider(this: *mut core::ffi::c_void, bszcontentprovider: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn SetContentProvider(this: *mut core::ffi::c_void, bszcontentprovider: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespace_Impl::SetContentProvider(this, core::mem::transmute(&bszcontentprovider)).into() } - unsafe extern "system" fn Configuration(this: *mut core::ffi::c_void, pbszconfiguration: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn Configuration(this: *mut core::ffi::c_void, pbszconfiguration: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::Configuration(this) { Ok(ok__) => { @@ -996,17 +777,11 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConfiguration(this: *mut core::ffi::c_void, bszconfiguration: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn SetConfiguration(this: *mut core::ffi::c_void, bszconfiguration: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespace_Impl::SetConfiguration(this, core::mem::transmute(&bszconfiguration)).into() } - unsafe extern "system" fn Registered(this: *mut core::ffi::c_void, pbregistered: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn Registered(this: *mut core::ffi::c_void, pbregistered: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::Registered(this) { Ok(ok__) => { @@ -1016,10 +791,7 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Tombstoned(this: *mut core::ffi::c_void, pbtombstoned: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn Tombstoned(this: *mut core::ffi::c_void, pbtombstoned: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::Tombstoned(this) { Ok(ok__) => { @@ -1029,10 +801,7 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TombstoneTime(this: *mut core::ffi::c_void, ptombstonetime: *mut f64) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn TombstoneTime(this: *mut core::ffi::c_void, ptombstonetime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::TombstoneTime(this) { Ok(ok__) => { @@ -1042,10 +811,7 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransmissionStarted(this: *mut core::ffi::c_void, pbtransmissionstarted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn TransmissionStarted(this: *mut core::ffi::c_void, pbtransmissionstarted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::TransmissionStarted(this) { Ok(ok__) => { @@ -1055,24 +821,15 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Register(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespace_Impl::Register(this).into() } - unsafe extern "system" fn Deregister(this: *mut core::ffi::c_void, bterminatesessions: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn Deregister(this: *mut core::ffi::c_void, bterminatesessions: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespace_Impl::Deregister(this, core::mem::transmute_copy(&bterminatesessions)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppwdstransportnamespaceclone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppwdstransportnamespaceclone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::Clone(this) { Ok(ok__) => { @@ -1082,17 +839,11 @@ impl IWdsTransportNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespace_Impl::Refresh(this).into() } - unsafe extern "system" fn RetrieveContents(this: *mut core::ffi::c_void, ppwdstransportcontents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespace_Impl, - { + unsafe extern "system" fn RetrieveContents(this: *mut core::ffi::c_void, ppwdstransportcontents: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespace_Impl::RetrieveContents(this) { Ok(ok__) => { @@ -1137,10 +888,7 @@ pub trait IWdsTransportNamespaceAutoCast_Impl: Sized + IWdsTransportNamespace_Im impl windows_core::RuntimeName for IWdsTransportNamespaceAutoCast {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceAutoCast_Vtbl { - pub const fn new() -> IWdsTransportNamespaceAutoCast_Vtbl - where - Identity: IWdsTransportNamespaceAutoCast_Impl, - { + pub const fn new() -> IWdsTransportNamespaceAutoCast_Vtbl { Self { base__: IWdsTransportNamespace_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1157,14 +905,8 @@ pub trait IWdsTransportNamespaceManager_Impl: Sized + super::Com::IDispatch_Impl impl windows_core::RuntimeName for IWdsTransportNamespaceManager {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceManager_Vtbl { - pub const fn new() -> IWdsTransportNamespaceManager_Vtbl - where - Identity: IWdsTransportNamespaceManager_Impl, - { - unsafe extern "system" fn CreateNamespace(this: *mut core::ffi::c_void, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: core::mem::MaybeUninit, bszcontentprovider: core::mem::MaybeUninit, bszconfiguration: core::mem::MaybeUninit, ppwdstransportnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespaceManager_Impl, - { + pub const fn new() -> IWdsTransportNamespaceManager_Vtbl { + unsafe extern "system" fn CreateNamespace(this: *mut core::ffi::c_void, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: core::mem::MaybeUninit, bszcontentprovider: core::mem::MaybeUninit, bszconfiguration: core::mem::MaybeUninit, ppwdstransportnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespaceManager_Impl::CreateNamespace(this, core::mem::transmute_copy(&namespacetype), core::mem::transmute(&bsznamespacename), core::mem::transmute(&bszcontentprovider), core::mem::transmute(&bszconfiguration)) { Ok(ok__) => { @@ -1174,10 +916,7 @@ impl IWdsTransportNamespaceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RetrieveNamespace(this: *mut core::ffi::c_void, bsznamespacename: core::mem::MaybeUninit, ppwdstransportnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespaceManager_Impl, - { + unsafe extern "system" fn RetrieveNamespace(this: *mut core::ffi::c_void, bsznamespacename: core::mem::MaybeUninit, ppwdstransportnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespaceManager_Impl::RetrieveNamespace(this, core::mem::transmute(&bsznamespacename)) { Ok(ok__) => { @@ -1187,10 +926,7 @@ impl IWdsTransportNamespaceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RetrieveNamespaces(this: *mut core::ffi::c_void, bszcontentprovider: core::mem::MaybeUninit, bsznamespacename: core::mem::MaybeUninit, bincludetombstones: super::super::Foundation::VARIANT_BOOL, ppwdstransportnamespaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespaceManager_Impl, - { + unsafe extern "system" fn RetrieveNamespaces(this: *mut core::ffi::c_void, bszcontentprovider: core::mem::MaybeUninit, bsznamespacename: core::mem::MaybeUninit, bincludetombstones: super::super::Foundation::VARIANT_BOOL, ppwdstransportnamespaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespaceManager_Impl::RetrieveNamespaces(this, core::mem::transmute(&bszcontentprovider), core::mem::transmute(&bsznamespacename), core::mem::transmute_copy(&bincludetombstones)) { Ok(ok__) => { @@ -1219,14 +955,8 @@ pub trait IWdsTransportNamespaceScheduledCast_Impl: Sized + IWdsTransportNamespa impl windows_core::RuntimeName for IWdsTransportNamespaceScheduledCast {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceScheduledCast_Vtbl { - pub const fn new() -> IWdsTransportNamespaceScheduledCast_Vtbl - where - Identity: IWdsTransportNamespaceScheduledCast_Impl, - { - unsafe extern "system" fn StartTransmission(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespaceScheduledCast_Impl, - { + pub const fn new() -> IWdsTransportNamespaceScheduledCast_Vtbl { + unsafe extern "system" fn StartTransmission(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespaceScheduledCast_Impl::StartTransmission(this).into() } @@ -1247,14 +977,8 @@ pub trait IWdsTransportNamespaceScheduledCastAutoStart_Impl: Sized + IWdsTranspo impl windows_core::RuntimeName for IWdsTransportNamespaceScheduledCastAutoStart {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceScheduledCastAutoStart_Vtbl { - pub const fn new() -> IWdsTransportNamespaceScheduledCastAutoStart_Vtbl - where - Identity: IWdsTransportNamespaceScheduledCastAutoStart_Impl, - { - unsafe extern "system" fn MinimumClients(this: *mut core::ffi::c_void, pulminimumclients: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespaceScheduledCastAutoStart_Impl, - { + pub const fn new() -> IWdsTransportNamespaceScheduledCastAutoStart_Vtbl { + unsafe extern "system" fn MinimumClients(this: *mut core::ffi::c_void, pulminimumclients: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespaceScheduledCastAutoStart_Impl::MinimumClients(this) { Ok(ok__) => { @@ -1264,17 +988,11 @@ impl IWdsTransportNamespaceScheduledCastAutoStart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinimumClients(this: *mut core::ffi::c_void, ulminimumclients: u32) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespaceScheduledCastAutoStart_Impl, - { + unsafe extern "system" fn SetMinimumClients(this: *mut core::ffi::c_void, ulminimumclients: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespaceScheduledCastAutoStart_Impl::SetMinimumClients(this, core::mem::transmute_copy(&ulminimumclients)).into() } - unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, pstarttime: *mut f64) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespaceScheduledCastAutoStart_Impl, - { + unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, pstarttime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportNamespaceScheduledCastAutoStart_Impl::StartTime(this) { Ok(ok__) => { @@ -1284,10 +1002,7 @@ impl IWdsTransportNamespaceScheduledCastAutoStart_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, starttime: f64) -> windows_core::HRESULT - where - Identity: IWdsTransportNamespaceScheduledCastAutoStart_Impl, - { + unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, starttime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportNamespaceScheduledCastAutoStart_Impl::SetStartTime(this, core::mem::transmute_copy(&starttime)).into() } @@ -1309,10 +1024,7 @@ pub trait IWdsTransportNamespaceScheduledCastManualStart_Impl: Sized + IWdsTrans impl windows_core::RuntimeName for IWdsTransportNamespaceScheduledCastManualStart {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceScheduledCastManualStart_Vtbl { - pub const fn new() -> IWdsTransportNamespaceScheduledCastManualStart_Vtbl - where - Identity: IWdsTransportNamespaceScheduledCastManualStart_Impl, - { + pub const fn new() -> IWdsTransportNamespaceScheduledCastManualStart_Vtbl { Self { base__: IWdsTransportNamespaceScheduledCast_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1331,14 +1043,8 @@ pub trait IWdsTransportServer_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportServer {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportServer_Vtbl { - pub const fn new() -> IWdsTransportServer_Vtbl - where - Identity: IWdsTransportServer_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportServer_Impl, - { + pub const fn new() -> IWdsTransportServer_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServer_Impl::Name(this) { Ok(ok__) => { @@ -1348,10 +1054,7 @@ impl IWdsTransportServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetupManager(this: *mut core::ffi::c_void, ppwdstransportsetupmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportServer_Impl, - { + unsafe extern "system" fn SetupManager(this: *mut core::ffi::c_void, ppwdstransportsetupmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServer_Impl::SetupManager(this) { Ok(ok__) => { @@ -1361,10 +1064,7 @@ impl IWdsTransportServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConfigurationManager(this: *mut core::ffi::c_void, ppwdstransportconfigurationmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportServer_Impl, - { + unsafe extern "system" fn ConfigurationManager(this: *mut core::ffi::c_void, ppwdstransportconfigurationmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServer_Impl::ConfigurationManager(this) { Ok(ok__) => { @@ -1374,10 +1074,7 @@ impl IWdsTransportServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NamespaceManager(this: *mut core::ffi::c_void, ppwdstransportnamespacemanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportServer_Impl, - { + unsafe extern "system" fn NamespaceManager(this: *mut core::ffi::c_void, ppwdstransportnamespacemanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServer_Impl::NamespaceManager(this) { Ok(ok__) => { @@ -1387,10 +1084,7 @@ impl IWdsTransportServer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisconnectClient(this: *mut core::ffi::c_void, ulclientid: u32, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> windows_core::HRESULT - where - Identity: IWdsTransportServer_Impl, - { + unsafe extern "system" fn DisconnectClient(this: *mut core::ffi::c_void, ulclientid: u32, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportServer_Impl::DisconnectClient(this, core::mem::transmute_copy(&ulclientid), core::mem::transmute_copy(&disconnectiontype)).into() } @@ -1415,14 +1109,8 @@ pub trait IWdsTransportServer2_Impl: Sized + IWdsTransportServer_Impl { impl windows_core::RuntimeName for IWdsTransportServer2 {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportServer2_Vtbl { - pub const fn new() -> IWdsTransportServer2_Vtbl - where - Identity: IWdsTransportServer2_Impl, - { - unsafe extern "system" fn TftpManager(this: *mut core::ffi::c_void, ppwdstransporttftpmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportServer2_Impl, - { + pub const fn new() -> IWdsTransportServer2_Vtbl { + unsafe extern "system" fn TftpManager(this: *mut core::ffi::c_void, ppwdstransporttftpmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServer2_Impl::TftpManager(this) { Ok(ok__) => { @@ -1457,14 +1145,8 @@ pub trait IWdsTransportServicePolicy_Impl: Sized + IWdsTransportCacheable_Impl { impl windows_core::RuntimeName for IWdsTransportServicePolicy {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportServicePolicy_Vtbl { - pub const fn new() -> IWdsTransportServicePolicy_Vtbl - where - Identity: IWdsTransportServicePolicy_Impl, - { - unsafe extern "system" fn get_IpAddressSource(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, psourcetype: *mut WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + pub const fn new() -> IWdsTransportServicePolicy_Vtbl { + unsafe extern "system" fn get_IpAddressSource(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, psourcetype: *mut WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServicePolicy_Impl::get_IpAddressSource(this, core::mem::transmute_copy(&addresstype)) { Ok(ok__) => { @@ -1474,17 +1156,11 @@ impl IWdsTransportServicePolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_IpAddressSource(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn put_IpAddressSource(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportServicePolicy_Impl::put_IpAddressSource(this, core::mem::transmute_copy(&addresstype), core::mem::transmute_copy(&sourcetype)).into() } - unsafe extern "system" fn get_StartIpAddress(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszstartipaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn get_StartIpAddress(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszstartipaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServicePolicy_Impl::get_StartIpAddress(this, core::mem::transmute_copy(&addresstype)) { Ok(ok__) => { @@ -1494,17 +1170,11 @@ impl IWdsTransportServicePolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_StartIpAddress(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn put_StartIpAddress(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportServicePolicy_Impl::put_StartIpAddress(this, core::mem::transmute_copy(&addresstype), core::mem::transmute(&bszstartipaddress)).into() } - unsafe extern "system" fn get_EndIpAddress(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszendipaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn get_EndIpAddress(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszendipaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServicePolicy_Impl::get_EndIpAddress(this, core::mem::transmute_copy(&addresstype)) { Ok(ok__) => { @@ -1514,17 +1184,11 @@ impl IWdsTransportServicePolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_EndIpAddress(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn put_EndIpAddress(this: *mut core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportServicePolicy_Impl::put_EndIpAddress(this, core::mem::transmute_copy(&addresstype), core::mem::transmute(&bszendipaddress)).into() } - unsafe extern "system" fn StartPort(this: *mut core::ffi::c_void, pulstartport: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn StartPort(this: *mut core::ffi::c_void, pulstartport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServicePolicy_Impl::StartPort(this) { Ok(ok__) => { @@ -1534,17 +1198,11 @@ impl IWdsTransportServicePolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartPort(this: *mut core::ffi::c_void, ulstartport: u32) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn SetStartPort(this: *mut core::ffi::c_void, ulstartport: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportServicePolicy_Impl::SetStartPort(this, core::mem::transmute_copy(&ulstartport)).into() } - unsafe extern "system" fn EndPort(this: *mut core::ffi::c_void, pulendport: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn EndPort(this: *mut core::ffi::c_void, pulendport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServicePolicy_Impl::EndPort(this) { Ok(ok__) => { @@ -1554,17 +1212,11 @@ impl IWdsTransportServicePolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEndPort(this: *mut core::ffi::c_void, ulendport: u32) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn SetEndPort(this: *mut core::ffi::c_void, ulendport: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportServicePolicy_Impl::SetEndPort(this, core::mem::transmute_copy(&ulendport)).into() } - unsafe extern "system" fn NetworkProfile(this: *mut core::ffi::c_void, pprofiletype: *mut WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn NetworkProfile(this: *mut core::ffi::c_void, pprofiletype: *mut WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServicePolicy_Impl::NetworkProfile(this) { Ok(ok__) => { @@ -1574,10 +1226,7 @@ impl IWdsTransportServicePolicy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkProfile(this: *mut core::ffi::c_void, profiletype: WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy_Impl, - { + unsafe extern "system" fn SetNetworkProfile(this: *mut core::ffi::c_void, profiletype: WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportServicePolicy_Impl::SetNetworkProfile(this, core::mem::transmute_copy(&profiletype)).into() } @@ -1614,14 +1263,8 @@ pub trait IWdsTransportServicePolicy2_Impl: Sized + IWdsTransportServicePolicy_I impl windows_core::RuntimeName for IWdsTransportServicePolicy2 {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportServicePolicy2_Vtbl { - pub const fn new() -> IWdsTransportServicePolicy2_Vtbl - where - Identity: IWdsTransportServicePolicy2_Impl, - { - unsafe extern "system" fn UdpPortPolicy(this: *mut core::ffi::c_void, pudpportpolicy: *mut WDSTRANSPORT_UDP_PORT_POLICY) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy2_Impl, - { + pub const fn new() -> IWdsTransportServicePolicy2_Vtbl { + unsafe extern "system" fn UdpPortPolicy(this: *mut core::ffi::c_void, pudpportpolicy: *mut WDSTRANSPORT_UDP_PORT_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServicePolicy2_Impl::UdpPortPolicy(this) { Ok(ok__) => { @@ -1631,17 +1274,11 @@ impl IWdsTransportServicePolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUdpPortPolicy(this: *mut core::ffi::c_void, udpportpolicy: WDSTRANSPORT_UDP_PORT_POLICY) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy2_Impl, - { + unsafe extern "system" fn SetUdpPortPolicy(this: *mut core::ffi::c_void, udpportpolicy: WDSTRANSPORT_UDP_PORT_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportServicePolicy2_Impl::SetUdpPortPolicy(this, core::mem::transmute_copy(&udpportpolicy)).into() } - unsafe extern "system" fn TftpMaximumBlockSize(this: *mut core::ffi::c_void, pultftpmaximumblocksize: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy2_Impl, - { + unsafe extern "system" fn TftpMaximumBlockSize(this: *mut core::ffi::c_void, pultftpmaximumblocksize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServicePolicy2_Impl::TftpMaximumBlockSize(this) { Ok(ok__) => { @@ -1651,17 +1288,11 @@ impl IWdsTransportServicePolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTftpMaximumBlockSize(this: *mut core::ffi::c_void, ultftpmaximumblocksize: u32) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy2_Impl, - { + unsafe extern "system" fn SetTftpMaximumBlockSize(this: *mut core::ffi::c_void, ultftpmaximumblocksize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportServicePolicy2_Impl::SetTftpMaximumBlockSize(this, core::mem::transmute_copy(&ultftpmaximumblocksize)).into() } - unsafe extern "system" fn EnableTftpVariableWindowExtension(this: *mut core::ffi::c_void, pbenabletftpvariablewindowextension: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy2_Impl, - { + unsafe extern "system" fn EnableTftpVariableWindowExtension(this: *mut core::ffi::c_void, pbenabletftpvariablewindowextension: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportServicePolicy2_Impl::EnableTftpVariableWindowExtension(this) { Ok(ok__) => { @@ -1671,10 +1302,7 @@ impl IWdsTransportServicePolicy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableTftpVariableWindowExtension(this: *mut core::ffi::c_void, benabletftpvariablewindowextension: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWdsTransportServicePolicy2_Impl, - { + unsafe extern "system" fn SetEnableTftpVariableWindowExtension(this: *mut core::ffi::c_void, benabletftpvariablewindowextension: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportServicePolicy2_Impl::SetEnableTftpVariableWindowExtension(this, core::mem::transmute_copy(&benabletftpvariablewindowextension)).into() } @@ -1707,14 +1335,8 @@ pub trait IWdsTransportSession_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportSession {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportSession_Vtbl { - pub const fn new() -> IWdsTransportSession_Vtbl - where - Identity: IWdsTransportSession_Impl, - { - unsafe extern "system" fn Content(this: *mut core::ffi::c_void, ppwdstransportcontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportSession_Impl, - { + pub const fn new() -> IWdsTransportSession_Vtbl { + unsafe extern "system" fn Content(this: *mut core::ffi::c_void, ppwdstransportcontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSession_Impl::Content(this) { Ok(ok__) => { @@ -1724,10 +1346,7 @@ impl IWdsTransportSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportSession_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pulid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSession_Impl::Id(this) { Ok(ok__) => { @@ -1737,10 +1356,7 @@ impl IWdsTransportSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NetworkInterfaceName(this: *mut core::ffi::c_void, pbsznetworkinterfacename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportSession_Impl, - { + unsafe extern "system" fn NetworkInterfaceName(this: *mut core::ffi::c_void, pbsznetworkinterfacename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSession_Impl::NetworkInterfaceName(this) { Ok(ok__) => { @@ -1750,10 +1366,7 @@ impl IWdsTransportSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NetworkInterfaceAddress(this: *mut core::ffi::c_void, pbsznetworkinterfaceaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportSession_Impl, - { + unsafe extern "system" fn NetworkInterfaceAddress(this: *mut core::ffi::c_void, pbsznetworkinterfaceaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSession_Impl::NetworkInterfaceAddress(this) { Ok(ok__) => { @@ -1763,10 +1376,7 @@ impl IWdsTransportSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransferRate(this: *mut core::ffi::c_void, pultransferrate: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportSession_Impl, - { + unsafe extern "system" fn TransferRate(this: *mut core::ffi::c_void, pultransferrate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSession_Impl::TransferRate(this) { Ok(ok__) => { @@ -1776,10 +1386,7 @@ impl IWdsTransportSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MasterClientId(this: *mut core::ffi::c_void, pulmasterclientid: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportSession_Impl, - { + unsafe extern "system" fn MasterClientId(this: *mut core::ffi::c_void, pulmasterclientid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSession_Impl::MasterClientId(this) { Ok(ok__) => { @@ -1789,10 +1396,7 @@ impl IWdsTransportSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RetrieveClients(this: *mut core::ffi::c_void, ppwdstransportclients: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportSession_Impl, - { + unsafe extern "system" fn RetrieveClients(this: *mut core::ffi::c_void, ppwdstransportclients: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSession_Impl::RetrieveClients(this) { Ok(ok__) => { @@ -1802,10 +1406,7 @@ impl IWdsTransportSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportSession_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportSession_Impl::Terminate(this).into() } @@ -1837,14 +1438,8 @@ pub trait IWdsTransportSetupManager_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportSetupManager {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportSetupManager_Vtbl { - pub const fn new() -> IWdsTransportSetupManager_Vtbl - where - Identity: IWdsTransportSetupManager_Impl, - { - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pullversion: *mut u64) -> windows_core::HRESULT - where - Identity: IWdsTransportSetupManager_Impl, - { + pub const fn new() -> IWdsTransportSetupManager_Vtbl { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pullversion: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSetupManager_Impl::Version(this) { Ok(ok__) => { @@ -1854,10 +1449,7 @@ impl IWdsTransportSetupManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstalledFeatures(this: *mut core::ffi::c_void, pulinstalledfeatures: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportSetupManager_Impl, - { + unsafe extern "system" fn InstalledFeatures(this: *mut core::ffi::c_void, pulinstalledfeatures: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSetupManager_Impl::InstalledFeatures(this) { Ok(ok__) => { @@ -1867,10 +1459,7 @@ impl IWdsTransportSetupManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Protocols(this: *mut core::ffi::c_void, pulprotocols: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportSetupManager_Impl, - { + unsafe extern "system" fn Protocols(this: *mut core::ffi::c_void, pulprotocols: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSetupManager_Impl::Protocols(this) { Ok(ok__) => { @@ -1880,17 +1469,11 @@ impl IWdsTransportSetupManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterContentProvider(this: *mut core::ffi::c_void, bszname: core::mem::MaybeUninit, bszdescription: core::mem::MaybeUninit, bszfilepath: core::mem::MaybeUninit, bszinitializationroutine: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportSetupManager_Impl, - { + unsafe extern "system" fn RegisterContentProvider(this: *mut core::ffi::c_void, bszname: core::mem::MaybeUninit, bszdescription: core::mem::MaybeUninit, bszfilepath: core::mem::MaybeUninit, bszinitializationroutine: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportSetupManager_Impl::RegisterContentProvider(this, core::mem::transmute(&bszname), core::mem::transmute(&bszdescription), core::mem::transmute(&bszfilepath), core::mem::transmute(&bszinitializationroutine)).into() } - unsafe extern "system" fn DeregisterContentProvider(this: *mut core::ffi::c_void, bszname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportSetupManager_Impl, - { + unsafe extern "system" fn DeregisterContentProvider(this: *mut core::ffi::c_void, bszname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWdsTransportSetupManager_Impl::DeregisterContentProvider(this, core::mem::transmute(&bszname)).into() } @@ -1916,14 +1499,8 @@ pub trait IWdsTransportSetupManager2_Impl: Sized + IWdsTransportSetupManager_Imp impl windows_core::RuntimeName for IWdsTransportSetupManager2 {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportSetupManager2_Vtbl { - pub const fn new() -> IWdsTransportSetupManager2_Vtbl - where - Identity: IWdsTransportSetupManager2_Impl, - { - unsafe extern "system" fn TftpCapabilities(this: *mut core::ffi::c_void, pultftpcapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportSetupManager2_Impl, - { + pub const fn new() -> IWdsTransportSetupManager2_Vtbl { + unsafe extern "system" fn TftpCapabilities(this: *mut core::ffi::c_void, pultftpcapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSetupManager2_Impl::TftpCapabilities(this) { Ok(ok__) => { @@ -1933,10 +1510,7 @@ impl IWdsTransportSetupManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContentProviders(this: *mut core::ffi::c_void, ppprovidercollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportSetupManager2_Impl, - { + unsafe extern "system" fn ContentProviders(this: *mut core::ffi::c_void, ppprovidercollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportSetupManager2_Impl::ContentProviders(this) { Ok(ok__) => { @@ -1970,14 +1544,8 @@ pub trait IWdsTransportTftpClient_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportTftpClient {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportTftpClient_Vtbl { - pub const fn new() -> IWdsTransportTftpClient_Vtbl - where - Identity: IWdsTransportTftpClient_Impl, - { - unsafe extern "system" fn FileName(this: *mut core::ffi::c_void, pbszfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportTftpClient_Impl, - { + pub const fn new() -> IWdsTransportTftpClient_Vtbl { + unsafe extern "system" fn FileName(this: *mut core::ffi::c_void, pbszfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportTftpClient_Impl::FileName(this) { Ok(ok__) => { @@ -1987,10 +1555,7 @@ impl IWdsTransportTftpClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IpAddress(this: *mut core::ffi::c_void, pbszipaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWdsTransportTftpClient_Impl, - { + unsafe extern "system" fn IpAddress(this: *mut core::ffi::c_void, pbszipaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportTftpClient_Impl::IpAddress(this) { Ok(ok__) => { @@ -2000,10 +1565,7 @@ impl IWdsTransportTftpClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Timeout(this: *mut core::ffi::c_void, pultimeout: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportTftpClient_Impl, - { + unsafe extern "system" fn Timeout(this: *mut core::ffi::c_void, pultimeout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportTftpClient_Impl::Timeout(this) { Ok(ok__) => { @@ -2013,10 +1575,7 @@ impl IWdsTransportTftpClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentFileOffset(this: *mut core::ffi::c_void, pul64currentoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IWdsTransportTftpClient_Impl, - { + unsafe extern "system" fn CurrentFileOffset(this: *mut core::ffi::c_void, pul64currentoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportTftpClient_Impl::CurrentFileOffset(this) { Ok(ok__) => { @@ -2026,10 +1585,7 @@ impl IWdsTransportTftpClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FileSize(this: *mut core::ffi::c_void, pul64filesize: *mut u64) -> windows_core::HRESULT - where - Identity: IWdsTransportTftpClient_Impl, - { + unsafe extern "system" fn FileSize(this: *mut core::ffi::c_void, pul64filesize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportTftpClient_Impl::FileSize(this) { Ok(ok__) => { @@ -2039,10 +1595,7 @@ impl IWdsTransportTftpClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BlockSize(this: *mut core::ffi::c_void, pulblocksize: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportTftpClient_Impl, - { + unsafe extern "system" fn BlockSize(this: *mut core::ffi::c_void, pulblocksize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportTftpClient_Impl::BlockSize(this) { Ok(ok__) => { @@ -2052,10 +1605,7 @@ impl IWdsTransportTftpClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WindowSize(this: *mut core::ffi::c_void, pulwindowsize: *mut u32) -> windows_core::HRESULT - where - Identity: IWdsTransportTftpClient_Impl, - { + unsafe extern "system" fn WindowSize(this: *mut core::ffi::c_void, pulwindowsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportTftpClient_Impl::WindowSize(this) { Ok(ok__) => { @@ -2088,14 +1638,8 @@ pub trait IWdsTransportTftpManager_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWdsTransportTftpManager {} #[cfg(feature = "Win32_System_Com")] impl IWdsTransportTftpManager_Vtbl { - pub const fn new() -> IWdsTransportTftpManager_Vtbl - where - Identity: IWdsTransportTftpManager_Impl, - { - unsafe extern "system" fn RetrieveTftpClients(this: *mut core::ffi::c_void, ppwdstransporttftpclients: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWdsTransportTftpManager_Impl, - { + pub const fn new() -> IWdsTransportTftpManager_Vtbl { + unsafe extern "system" fn RetrieveTftpClients(this: *mut core::ffi::c_void, ppwdstransporttftpclients: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWdsTransportTftpManager_Impl::RetrieveTftpClients(this) { Ok(ok__) => { 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 149066dd3a..02ffe2a803 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/impl.rs @@ -11,14 +11,8 @@ pub trait IRDPSRAPIApplication_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIApplication {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIApplication_Vtbl { - pub const fn new() -> IRDPSRAPIApplication_Vtbl - where - Identity: IRDPSRAPIApplication_Impl, - { - unsafe extern "system" fn Windows(this: *mut core::ffi::c_void, pwindowlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplication_Impl, - { + pub const fn new() -> IRDPSRAPIApplication_Vtbl { + unsafe extern "system" fn Windows(this: *mut core::ffi::c_void, pwindowlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIApplication_Impl::Windows(this) { Ok(ok__) => { @@ -28,10 +22,7 @@ impl IRDPSRAPIApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplication_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIApplication_Impl::Id(this) { Ok(ok__) => { @@ -41,10 +32,7 @@ impl IRDPSRAPIApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shared(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplication_Impl, - { + unsafe extern "system" fn Shared(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIApplication_Impl::Shared(this) { Ok(ok__) => { @@ -54,17 +42,11 @@ impl IRDPSRAPIApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShared(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplication_Impl, - { + unsafe extern "system" fn SetShared(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIApplication_Impl::SetShared(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplication_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIApplication_Impl::Name(this) { Ok(ok__) => { @@ -74,10 +56,7 @@ impl IRDPSRAPIApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplication_Impl, - { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIApplication_Impl::Flags(this) { Ok(ok__) => { @@ -112,14 +91,8 @@ pub trait IRDPSRAPIApplicationFilter_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIApplicationFilter {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIApplicationFilter_Vtbl { - pub const fn new() -> IRDPSRAPIApplicationFilter_Vtbl - where - Identity: IRDPSRAPIApplicationFilter_Impl, - { - unsafe extern "system" fn Applications(this: *mut core::ffi::c_void, papplications: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplicationFilter_Impl, - { + pub const fn new() -> IRDPSRAPIApplicationFilter_Vtbl { + unsafe extern "system" fn Applications(this: *mut core::ffi::c_void, papplications: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIApplicationFilter_Impl::Applications(this) { Ok(ok__) => { @@ -129,10 +102,7 @@ impl IRDPSRAPIApplicationFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Windows(this: *mut core::ffi::c_void, pwindows: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplicationFilter_Impl, - { + unsafe extern "system" fn Windows(this: *mut core::ffi::c_void, pwindows: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIApplicationFilter_Impl::Windows(this) { Ok(ok__) => { @@ -142,10 +112,7 @@ impl IRDPSRAPIApplicationFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplicationFilter_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIApplicationFilter_Impl::Enabled(this) { Ok(ok__) => { @@ -155,10 +122,7 @@ impl IRDPSRAPIApplicationFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplicationFilter_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIApplicationFilter_Impl::SetEnabled(this, core::mem::transmute_copy(&newval)).into() } @@ -183,14 +147,8 @@ pub trait IRDPSRAPIApplicationList_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIApplicationList {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIApplicationList_Vtbl { - pub const fn new() -> IRDPSRAPIApplicationList_Vtbl - where - Identity: IRDPSRAPIApplicationList_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplicationList_Impl, - { + pub const fn new() -> IRDPSRAPIApplicationList_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIApplicationList_Impl::_NewEnum(this) { Ok(ok__) => { @@ -200,10 +158,7 @@ impl IRDPSRAPIApplicationList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: i32, papplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIApplicationList_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: i32, papplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIApplicationList_Impl::get_Item(this, core::mem::transmute_copy(&item)) { Ok(ok__) => { @@ -234,14 +189,8 @@ pub trait IRDPSRAPIAttendee_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIAttendee {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIAttendee_Vtbl { - pub const fn new() -> IRDPSRAPIAttendee_Vtbl - where - Identity: IRDPSRAPIAttendee_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendee_Impl, - { + pub const fn new() -> IRDPSRAPIAttendee_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendee_Impl::Id(this) { Ok(ok__) => { @@ -251,10 +200,7 @@ impl IRDPSRAPIAttendee_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoteName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendee_Impl, - { + unsafe extern "system" fn RemoteName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendee_Impl::RemoteName(this) { Ok(ok__) => { @@ -264,10 +210,7 @@ impl IRDPSRAPIAttendee_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ControlLevel(this: *mut core::ffi::c_void, pval: *mut CTRL_LEVEL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendee_Impl, - { + unsafe extern "system" fn ControlLevel(this: *mut core::ffi::c_void, pval: *mut CTRL_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendee_Impl::ControlLevel(this) { Ok(ok__) => { @@ -277,17 +220,11 @@ impl IRDPSRAPIAttendee_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetControlLevel(this: *mut core::ffi::c_void, pnewval: CTRL_LEVEL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendee_Impl, - { + unsafe extern "system" fn SetControlLevel(this: *mut core::ffi::c_void, pnewval: CTRL_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIAttendee_Impl::SetControlLevel(this, core::mem::transmute_copy(&pnewval)).into() } - unsafe extern "system" fn Invitation(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendee_Impl, - { + unsafe extern "system" fn Invitation(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendee_Impl::Invitation(this) { Ok(ok__) => { @@ -297,17 +234,11 @@ impl IRDPSRAPIAttendee_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TerminateConnection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendee_Impl, - { + unsafe extern "system" fn TerminateConnection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIAttendee_Impl::TerminateConnection(this).into() } - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, plflags: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendee_Impl, - { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, plflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendee_Impl::Flags(this) { Ok(ok__) => { @@ -317,10 +248,7 @@ impl IRDPSRAPIAttendee_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectivityInfo(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendee_Impl, - { + unsafe extern "system" fn ConnectivityInfo(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendee_Impl::ConnectivityInfo(this) { Ok(ok__) => { @@ -356,14 +284,8 @@ pub trait IRDPSRAPIAttendeeDisconnectInfo_Impl: Sized + super::Com::IDispatch_Im impl windows_core::RuntimeName for IRDPSRAPIAttendeeDisconnectInfo {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIAttendeeDisconnectInfo_Vtbl { - pub const fn new() -> IRDPSRAPIAttendeeDisconnectInfo_Vtbl - where - Identity: IRDPSRAPIAttendeeDisconnectInfo_Impl, - { - unsafe extern "system" fn Attendee(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendeeDisconnectInfo_Impl, - { + pub const fn new() -> IRDPSRAPIAttendeeDisconnectInfo_Vtbl { + unsafe extern "system" fn Attendee(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendeeDisconnectInfo_Impl::Attendee(this) { Ok(ok__) => { @@ -373,10 +295,7 @@ impl IRDPSRAPIAttendeeDisconnectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reason(this: *mut core::ffi::c_void, preason: *mut ATTENDEE_DISCONNECT_REASON) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendeeDisconnectInfo_Impl, - { + unsafe extern "system" fn Reason(this: *mut core::ffi::c_void, preason: *mut ATTENDEE_DISCONNECT_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendeeDisconnectInfo_Impl::Reason(this) { Ok(ok__) => { @@ -386,10 +305,7 @@ impl IRDPSRAPIAttendeeDisconnectInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Code(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendeeDisconnectInfo_Impl, - { + unsafe extern "system" fn Code(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendeeDisconnectInfo_Impl::Code(this) { Ok(ok__) => { @@ -419,14 +335,8 @@ pub trait IRDPSRAPIAttendeeManager_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIAttendeeManager {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIAttendeeManager_Vtbl { - pub const fn new() -> IRDPSRAPIAttendeeManager_Vtbl - where - Identity: IRDPSRAPIAttendeeManager_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendeeManager_Impl, - { + pub const fn new() -> IRDPSRAPIAttendeeManager_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendeeManager_Impl::_NewEnum(this) { Ok(ok__) => { @@ -436,10 +346,7 @@ impl IRDPSRAPIAttendeeManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, id: i32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAttendeeManager_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, id: i32, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAttendeeManager_Impl::get_Item(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -455,7 +362,7 @@ impl IRDPSRAPIAttendeeManager_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRDPSRAPIAudioStream_Impl: Sized { +pub trait IRDPSRAPIAudioStream_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result; fn Start(&self) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; @@ -464,14 +371,8 @@ pub trait IRDPSRAPIAudioStream_Impl: Sized { } impl windows_core::RuntimeName for IRDPSRAPIAudioStream {} impl IRDPSRAPIAudioStream_Vtbl { - pub const fn new() -> IRDPSRAPIAudioStream_Vtbl - where - Identity: IRDPSRAPIAudioStream_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pnperiodinhundrednsintervals: *mut i64) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAudioStream_Impl, - { + pub const fn new() -> IRDPSRAPIAudioStream_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pnperiodinhundrednsintervals: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIAudioStream_Impl::Initialize(this) { Ok(ok__) => { @@ -481,31 +382,19 @@ impl IRDPSRAPIAudioStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAudioStream_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIAudioStream_Impl::Start(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAudioStream_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIAudioStream_Impl::Stop(this).into() } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, ppbdata: *mut *mut u8, pcbdata: *mut u32, ptimestamp: *mut u64) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAudioStream_Impl, - { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, ppbdata: *mut *mut u8, pcbdata: *mut u32, ptimestamp: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIAudioStream_Impl::GetBuffer(this, core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&ptimestamp)).into() } - unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIAudioStream_Impl, - { + unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIAudioStream_Impl::FreeBuffer(this).into() } @@ -523,21 +412,15 @@ impl IRDPSRAPIAudioStream_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRDPSRAPIClipboardUseEvents_Impl: Sized { +pub trait IRDPSRAPIClipboardUseEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnPasteFromClipboard(&self, clipboardformat: u32, pattendee: Option<&super::Com::IDispatch>) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IRDPSRAPIClipboardUseEvents {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIClipboardUseEvents_Vtbl { - pub const fn new() -> IRDPSRAPIClipboardUseEvents_Vtbl - where - Identity: IRDPSRAPIClipboardUseEvents_Impl, - { - unsafe extern "system" fn OnPasteFromClipboard(this: *mut core::ffi::c_void, clipboardformat: u32, pattendee: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIClipboardUseEvents_Impl, - { + pub const fn new() -> IRDPSRAPIClipboardUseEvents_Vtbl { + unsafe extern "system" fn OnPasteFromClipboard(this: *mut core::ffi::c_void, clipboardformat: u32, pattendee: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIClipboardUseEvents_Impl::OnPasteFromClipboard(this, core::mem::transmute_copy(&clipboardformat), windows_core::from_raw_borrowed(&pattendee)) { Ok(ok__) => { @@ -553,27 +436,18 @@ impl IRDPSRAPIClipboardUseEvents_Vtbl { iid == &::IID } } -pub trait IRDPSRAPIDebug_Impl: Sized { +pub trait IRDPSRAPIDebug_Impl: Sized + windows_core::IUnknownImpl { fn SetCLXCmdLine(&self, clxcmdline: &windows_core::BSTR) -> windows_core::Result<()>; fn CLXCmdLine(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IRDPSRAPIDebug {} impl IRDPSRAPIDebug_Vtbl { - pub const fn new() -> IRDPSRAPIDebug_Vtbl - where - Identity: IRDPSRAPIDebug_Impl, - { - unsafe extern "system" fn SetCLXCmdLine(this: *mut core::ffi::c_void, clxcmdline: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIDebug_Impl, - { + pub const fn new() -> IRDPSRAPIDebug_Vtbl { + unsafe extern "system" fn SetCLXCmdLine(this: *mut core::ffi::c_void, clxcmdline: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIDebug_Impl::SetCLXCmdLine(this, core::mem::transmute(&clxcmdline)).into() } - unsafe extern "system" fn CLXCmdLine(this: *mut core::ffi::c_void, pclxcmdline: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIDebug_Impl, - { + unsafe extern "system" fn CLXCmdLine(this: *mut core::ffi::c_void, pclxcmdline: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIDebug_Impl::CLXCmdLine(this) { Ok(ok__) => { @@ -604,14 +478,8 @@ pub trait IRDPSRAPIFrameBuffer_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIFrameBuffer {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIFrameBuffer_Vtbl { - pub const fn new() -> IRDPSRAPIFrameBuffer_Vtbl - where - Identity: IRDPSRAPIFrameBuffer_Impl, - { - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, plwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIFrameBuffer_Impl, - { + pub const fn new() -> IRDPSRAPIFrameBuffer_Vtbl { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, plwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIFrameBuffer_Impl::Width(this) { Ok(ok__) => { @@ -621,10 +489,7 @@ impl IRDPSRAPIFrameBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Height(this: *mut core::ffi::c_void, plheight: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIFrameBuffer_Impl, - { + unsafe extern "system" fn Height(this: *mut core::ffi::c_void, plheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIFrameBuffer_Impl::Height(this) { Ok(ok__) => { @@ -634,10 +499,7 @@ impl IRDPSRAPIFrameBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Bpp(this: *mut core::ffi::c_void, plbpp: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIFrameBuffer_Impl, - { + unsafe extern "system" fn Bpp(this: *mut core::ffi::c_void, plbpp: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIFrameBuffer_Impl::Bpp(this) { Ok(ok__) => { @@ -647,10 +509,7 @@ impl IRDPSRAPIFrameBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrameBufferBits(this: *mut core::ffi::c_void, x: i32, y: i32, width: i32, heigth: i32, ppbits: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IRDPSRAPIFrameBuffer_Impl, - { + unsafe extern "system" fn GetFrameBufferBits(this: *mut core::ffi::c_void, x: i32, y: i32, width: i32, heigth: i32, ppbits: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIFrameBuffer_Impl::GetFrameBufferBits(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&width), core::mem::transmute_copy(&heigth)) { Ok(ok__) => { @@ -686,14 +545,8 @@ pub trait IRDPSRAPIInvitation_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIInvitation {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIInvitation_Vtbl { - pub const fn new() -> IRDPSRAPIInvitation_Vtbl - where - Identity: IRDPSRAPIInvitation_Impl, - { - unsafe extern "system" fn ConnectionString(this: *mut core::ffi::c_void, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitation_Impl, - { + pub const fn new() -> IRDPSRAPIInvitation_Vtbl { + unsafe extern "system" fn ConnectionString(this: *mut core::ffi::c_void, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIInvitation_Impl::ConnectionString(this) { Ok(ok__) => { @@ -703,10 +556,7 @@ impl IRDPSRAPIInvitation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GroupName(this: *mut core::ffi::c_void, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitation_Impl, - { + unsafe extern "system" fn GroupName(this: *mut core::ffi::c_void, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIInvitation_Impl::GroupName(this) { Ok(ok__) => { @@ -716,10 +566,7 @@ impl IRDPSRAPIInvitation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Password(this: *mut core::ffi::c_void, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitation_Impl, - { + unsafe extern "system" fn Password(this: *mut core::ffi::c_void, pbstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIInvitation_Impl::Password(this) { Ok(ok__) => { @@ -729,10 +576,7 @@ impl IRDPSRAPIInvitation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AttendeeLimit(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitation_Impl, - { + unsafe extern "system" fn AttendeeLimit(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIInvitation_Impl::AttendeeLimit(this) { Ok(ok__) => { @@ -742,17 +586,11 @@ impl IRDPSRAPIInvitation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttendeeLimit(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitation_Impl, - { + unsafe extern "system" fn SetAttendeeLimit(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIInvitation_Impl::SetAttendeeLimit(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Revoked(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitation_Impl, - { + unsafe extern "system" fn Revoked(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIInvitation_Impl::Revoked(this) { Ok(ok__) => { @@ -762,10 +600,7 @@ impl IRDPSRAPIInvitation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRevoked(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitation_Impl, - { + unsafe extern "system" fn SetRevoked(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIInvitation_Impl::SetRevoked(this, core::mem::transmute_copy(&newval)).into() } @@ -795,14 +630,8 @@ pub trait IRDPSRAPIInvitationManager_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIInvitationManager {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIInvitationManager_Vtbl { - pub const fn new() -> IRDPSRAPIInvitationManager_Vtbl - where - Identity: IRDPSRAPIInvitationManager_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitationManager_Impl, - { + pub const fn new() -> IRDPSRAPIInvitationManager_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIInvitationManager_Impl::_NewEnum(this) { Ok(ok__) => { @@ -812,10 +641,7 @@ impl IRDPSRAPIInvitationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: core::mem::MaybeUninit, ppinvitation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitationManager_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: core::mem::MaybeUninit, ppinvitation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIInvitationManager_Impl::get_Item(this, core::mem::transmute(&item)) { Ok(ok__) => { @@ -825,10 +651,7 @@ impl IRDPSRAPIInvitationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitationManager_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIInvitationManager_Impl::Count(this) { Ok(ok__) => { @@ -838,10 +661,7 @@ impl IRDPSRAPIInvitationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInvitation(this: *mut core::ffi::c_void, bstrauthstring: core::mem::MaybeUninit, bstrgroupname: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, attendeelimit: i32, ppinvitation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIInvitationManager_Impl, - { + unsafe extern "system" fn CreateInvitation(this: *mut core::ffi::c_void, bstrauthstring: core::mem::MaybeUninit, bstrgroupname: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, attendeelimit: i32, ppinvitation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIInvitationManager_Impl::CreateInvitation(this, core::mem::transmute(&bstrauthstring), core::mem::transmute(&bstrgroupname), core::mem::transmute(&bstrpassword), core::mem::transmute_copy(&attendeelimit)) { Ok(ok__) => { @@ -863,19 +683,13 @@ impl IRDPSRAPIInvitationManager_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRDPSRAPIPerfCounterLogger_Impl: Sized { +pub trait IRDPSRAPIPerfCounterLogger_Impl: Sized + windows_core::IUnknownImpl { fn LogValue(&self, lvalue: i64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRDPSRAPIPerfCounterLogger {} impl IRDPSRAPIPerfCounterLogger_Vtbl { - pub const fn new() -> IRDPSRAPIPerfCounterLogger_Vtbl - where - Identity: IRDPSRAPIPerfCounterLogger_Impl, - { - unsafe extern "system" fn LogValue(this: *mut core::ffi::c_void, lvalue: i64) -> windows_core::HRESULT - where - Identity: IRDPSRAPIPerfCounterLogger_Impl, - { + pub const fn new() -> IRDPSRAPIPerfCounterLogger_Vtbl { + unsafe extern "system" fn LogValue(this: *mut core::ffi::c_void, lvalue: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIPerfCounterLogger_Impl::LogValue(this, core::mem::transmute_copy(&lvalue)).into() } @@ -885,19 +699,13 @@ impl IRDPSRAPIPerfCounterLogger_Vtbl { iid == &::IID } } -pub trait IRDPSRAPIPerfCounterLoggingManager_Impl: Sized { +pub trait IRDPSRAPIPerfCounterLoggingManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateLogger(&self, bstrcountername: &windows_core::BSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IRDPSRAPIPerfCounterLoggingManager {} impl IRDPSRAPIPerfCounterLoggingManager_Vtbl { - pub const fn new() -> IRDPSRAPIPerfCounterLoggingManager_Vtbl - where - Identity: IRDPSRAPIPerfCounterLoggingManager_Impl, - { - unsafe extern "system" fn CreateLogger(this: *mut core::ffi::c_void, bstrcountername: core::mem::MaybeUninit, pplogger: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIPerfCounterLoggingManager_Impl, - { + pub const fn new() -> IRDPSRAPIPerfCounterLoggingManager_Vtbl { + unsafe extern "system" fn CreateLogger(this: *mut core::ffi::c_void, bstrcountername: core::mem::MaybeUninit, pplogger: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIPerfCounterLoggingManager_Impl::CreateLogger(this, core::mem::transmute(&bstrcountername)) { Ok(ok__) => { @@ -922,14 +730,8 @@ pub trait IRDPSRAPISessionProperties_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPISessionProperties {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPISessionProperties_Vtbl { - pub const fn new() -> IRDPSRAPISessionProperties_Vtbl - where - Identity: IRDPSRAPISessionProperties_Impl, - { - unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPISessionProperties_Impl, - { + pub const fn new() -> IRDPSRAPISessionProperties_Vtbl { + unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPISessionProperties_Impl::get_Property(this, core::mem::transmute(&propertyname)) { Ok(ok__) => { @@ -939,10 +741,7 @@ impl IRDPSRAPISessionProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Property(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPISessionProperties_Impl, - { + unsafe extern "system" fn put_Property(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISessionProperties_Impl::put_Property(this, core::mem::transmute(&propertyname), core::mem::transmute(&newval)).into() } @@ -977,35 +776,20 @@ pub trait IRDPSRAPISharingSession_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPISharingSession {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPISharingSession_Vtbl { - pub const fn new() -> IRDPSRAPISharingSession_Vtbl - where - Identity: IRDPSRAPISharingSession_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + pub const fn new() -> IRDPSRAPISharingSession_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISharingSession_Impl::Open(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISharingSession_Impl::Close(this).into() } - unsafe extern "system" fn SetColorDepth(this: *mut core::ffi::c_void, colordepth: i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn SetColorDepth(this: *mut core::ffi::c_void, colordepth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISharingSession_Impl::SetColorDepth(this, core::mem::transmute_copy(&colordepth)).into() } - unsafe extern "system" fn ColorDepth(this: *mut core::ffi::c_void, pcolordepth: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn ColorDepth(this: *mut core::ffi::c_void, pcolordepth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPISharingSession_Impl::ColorDepth(this) { Ok(ok__) => { @@ -1015,10 +799,7 @@ impl IRDPSRAPISharingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPISharingSession_Impl::Properties(this) { Ok(ok__) => { @@ -1028,10 +809,7 @@ impl IRDPSRAPISharingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Attendees(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn Attendees(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPISharingSession_Impl::Attendees(this) { Ok(ok__) => { @@ -1041,10 +819,7 @@ impl IRDPSRAPISharingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Invitations(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn Invitations(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPISharingSession_Impl::Invitations(this) { Ok(ok__) => { @@ -1054,10 +829,7 @@ impl IRDPSRAPISharingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplicationFilter(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn ApplicationFilter(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPISharingSession_Impl::ApplicationFilter(this) { Ok(ok__) => { @@ -1067,10 +839,7 @@ impl IRDPSRAPISharingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VirtualChannelManager(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn VirtualChannelManager(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPISharingSession_Impl::VirtualChannelManager(this) { Ok(ok__) => { @@ -1080,38 +849,23 @@ impl IRDPSRAPISharingSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISharingSession_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISharingSession_Impl::Resume(this).into() } - unsafe extern "system" fn ConnectToClient(this: *mut core::ffi::c_void, bstrconnectionstring: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn ConnectToClient(this: *mut core::ffi::c_void, bstrconnectionstring: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISharingSession_Impl::ConnectToClient(this, core::mem::transmute(&bstrconnectionstring)).into() } - unsafe extern "system" fn SetDesktopSharedRect(this: *mut core::ffi::c_void, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn SetDesktopSharedRect(this: *mut core::ffi::c_void, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISharingSession_Impl::SetDesktopSharedRect(this, core::mem::transmute_copy(&left), core::mem::transmute_copy(&top), core::mem::transmute_copy(&right), core::mem::transmute_copy(&bottom)).into() } - unsafe extern "system" fn GetDesktopSharedRect(this: *mut core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession_Impl, - { + unsafe extern "system" fn GetDesktopSharedRect(this: *mut core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISharingSession_Impl::GetDesktopSharedRect(this, core::mem::transmute_copy(&pleft), core::mem::transmute_copy(&ptop), core::mem::transmute_copy(&pright), core::mem::transmute_copy(&pbottom)).into() } @@ -1147,21 +901,12 @@ pub trait IRDPSRAPISharingSession2_Impl: Sized + IRDPSRAPISharingSession_Impl { impl windows_core::RuntimeName for IRDPSRAPISharingSession2 {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPISharingSession2_Vtbl { - pub const fn new() -> IRDPSRAPISharingSession2_Vtbl - where - Identity: IRDPSRAPISharingSession2_Impl, - { - unsafe extern "system" fn ConnectUsingTransportStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, bstrgroup: core::mem::MaybeUninit, bstrauthenticatedattendeename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession2_Impl, - { + pub const fn new() -> IRDPSRAPISharingSession2_Vtbl { + unsafe extern "system" fn ConnectUsingTransportStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, bstrgroup: core::mem::MaybeUninit, bstrauthenticatedattendeename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISharingSession2_Impl::ConnectUsingTransportStream(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute(&bstrgroup), core::mem::transmute(&bstrauthenticatedattendeename)).into() } - unsafe extern "system" fn FrameBuffer(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession2_Impl, - { + unsafe extern "system" fn FrameBuffer(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPISharingSession2_Impl::FrameBuffer(this) { Ok(ok__) => { @@ -1171,10 +916,7 @@ impl IRDPSRAPISharingSession2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendControlLevelChangeResponse(this: *mut core::ffi::c_void, pattendee: *mut core::ffi::c_void, requestedlevel: CTRL_LEVEL, reasoncode: i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPISharingSession2_Impl, - { + unsafe extern "system" fn SendControlLevelChangeResponse(this: *mut core::ffi::c_void, pattendee: *mut core::ffi::c_void, requestedlevel: CTRL_LEVEL, reasoncode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPISharingSession2_Impl::SendControlLevelChangeResponse(this, windows_core::from_raw_borrowed(&pattendee), core::mem::transmute_copy(&requestedlevel), core::mem::transmute_copy(&reasoncode)).into() } @@ -1201,14 +943,8 @@ pub trait IRDPSRAPITcpConnectionInfo_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPITcpConnectionInfo {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPITcpConnectionInfo_Vtbl { - pub const fn new() -> IRDPSRAPITcpConnectionInfo_Vtbl - where - Identity: IRDPSRAPITcpConnectionInfo_Impl, - { - unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, plprotocol: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPITcpConnectionInfo_Impl, - { + pub const fn new() -> IRDPSRAPITcpConnectionInfo_Vtbl { + unsafe extern "system" fn Protocol(this: *mut core::ffi::c_void, plprotocol: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITcpConnectionInfo_Impl::Protocol(this) { Ok(ok__) => { @@ -1218,10 +954,7 @@ impl IRDPSRAPITcpConnectionInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalPort(this: *mut core::ffi::c_void, plport: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPITcpConnectionInfo_Impl, - { + unsafe extern "system" fn LocalPort(this: *mut core::ffi::c_void, plport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITcpConnectionInfo_Impl::LocalPort(this) { Ok(ok__) => { @@ -1231,10 +964,7 @@ impl IRDPSRAPITcpConnectionInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalIP(this: *mut core::ffi::c_void, pbsrlocalip: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPITcpConnectionInfo_Impl, - { + unsafe extern "system" fn LocalIP(this: *mut core::ffi::c_void, pbsrlocalip: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITcpConnectionInfo_Impl::LocalIP(this) { Ok(ok__) => { @@ -1244,10 +974,7 @@ impl IRDPSRAPITcpConnectionInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeerPort(this: *mut core::ffi::c_void, plport: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPITcpConnectionInfo_Impl, - { + unsafe extern "system" fn PeerPort(this: *mut core::ffi::c_void, plport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITcpConnectionInfo_Impl::PeerPort(this) { Ok(ok__) => { @@ -1257,10 +984,7 @@ impl IRDPSRAPITcpConnectionInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeerIP(this: *mut core::ffi::c_void, pbstrip: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPITcpConnectionInfo_Impl, - { + unsafe extern "system" fn PeerIP(this: *mut core::ffi::c_void, pbstrip: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITcpConnectionInfo_Impl::PeerIP(this) { Ok(ok__) => { @@ -1283,7 +1007,7 @@ impl IRDPSRAPITcpConnectionInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRDPSRAPITransportStream_Impl: Sized { +pub trait IRDPSRAPITransportStream_Impl: Sized + windows_core::IUnknownImpl { fn AllocBuffer(&self, maxpayload: i32) -> windows_core::Result; fn FreeBuffer(&self, pbuffer: Option<&IRDPSRAPITransportStreamBuffer>) -> windows_core::Result<()>; fn WriteBuffer(&self, pbuffer: Option<&IRDPSRAPITransportStreamBuffer>) -> windows_core::Result<()>; @@ -1293,14 +1017,8 @@ pub trait IRDPSRAPITransportStream_Impl: Sized { } impl windows_core::RuntimeName for IRDPSRAPITransportStream {} impl IRDPSRAPITransportStream_Vtbl { - pub const fn new() -> IRDPSRAPITransportStream_Vtbl - where - Identity: IRDPSRAPITransportStream_Impl, - { - unsafe extern "system" fn AllocBuffer(this: *mut core::ffi::c_void, maxpayload: i32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStream_Impl, - { + pub const fn new() -> IRDPSRAPITransportStream_Vtbl { + unsafe extern "system" fn AllocBuffer(this: *mut core::ffi::c_void, maxpayload: i32, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITransportStream_Impl::AllocBuffer(this, core::mem::transmute_copy(&maxpayload)) { Ok(ok__) => { @@ -1310,38 +1028,23 @@ impl IRDPSRAPITransportStream_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStream_Impl, - { + unsafe extern "system" fn FreeBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStream_Impl::FreeBuffer(this, windows_core::from_raw_borrowed(&pbuffer)).into() } - unsafe extern "system" fn WriteBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStream_Impl, - { + unsafe extern "system" fn WriteBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStream_Impl::WriteBuffer(this, windows_core::from_raw_borrowed(&pbuffer)).into() } - unsafe extern "system" fn ReadBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStream_Impl, - { + unsafe extern "system" fn ReadBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStream_Impl::ReadBuffer(this, windows_core::from_raw_borrowed(&pbuffer)).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pcallbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStream_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pcallbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStream_Impl::Open(this, windows_core::from_raw_borrowed(&pcallbacks)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStream_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStream_Impl::Close(this).into() } @@ -1359,7 +1062,7 @@ impl IRDPSRAPITransportStream_Vtbl { iid == &::IID } } -pub trait IRDPSRAPITransportStreamBuffer_Impl: Sized { +pub trait IRDPSRAPITransportStreamBuffer_Impl: Sized + windows_core::IUnknownImpl { fn Storage(&self) -> windows_core::Result<*mut u8>; fn StorageSize(&self) -> windows_core::Result; fn PayloadSize(&self) -> windows_core::Result; @@ -1373,14 +1076,8 @@ pub trait IRDPSRAPITransportStreamBuffer_Impl: Sized { } impl windows_core::RuntimeName for IRDPSRAPITransportStreamBuffer {} impl IRDPSRAPITransportStreamBuffer_Vtbl { - pub const fn new() -> IRDPSRAPITransportStreamBuffer_Vtbl - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { - unsafe extern "system" fn Storage(this: *mut core::ffi::c_void, ppbstorage: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { + pub const fn new() -> IRDPSRAPITransportStreamBuffer_Vtbl { + unsafe extern "system" fn Storage(this: *mut core::ffi::c_void, ppbstorage: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITransportStreamBuffer_Impl::Storage(this) { Ok(ok__) => { @@ -1390,10 +1087,7 @@ impl IRDPSRAPITransportStreamBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StorageSize(this: *mut core::ffi::c_void, plmaxstore: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { + unsafe extern "system" fn StorageSize(this: *mut core::ffi::c_void, plmaxstore: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITransportStreamBuffer_Impl::StorageSize(this) { Ok(ok__) => { @@ -1403,10 +1097,7 @@ impl IRDPSRAPITransportStreamBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PayloadSize(this: *mut core::ffi::c_void, plretval: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { + unsafe extern "system" fn PayloadSize(this: *mut core::ffi::c_void, plretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITransportStreamBuffer_Impl::PayloadSize(this) { Ok(ok__) => { @@ -1416,17 +1107,11 @@ impl IRDPSRAPITransportStreamBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPayloadSize(this: *mut core::ffi::c_void, lval: i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { + unsafe extern "system" fn SetPayloadSize(this: *mut core::ffi::c_void, lval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStreamBuffer_Impl::SetPayloadSize(this, core::mem::transmute_copy(&lval)).into() } - unsafe extern "system" fn PayloadOffset(this: *mut core::ffi::c_void, plretval: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { + unsafe extern "system" fn PayloadOffset(this: *mut core::ffi::c_void, plretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITransportStreamBuffer_Impl::PayloadOffset(this) { Ok(ok__) => { @@ -1436,17 +1121,11 @@ impl IRDPSRAPITransportStreamBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPayloadOffset(this: *mut core::ffi::c_void, lretval: i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { + unsafe extern "system" fn SetPayloadOffset(this: *mut core::ffi::c_void, lretval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStreamBuffer_Impl::SetPayloadOffset(this, core::mem::transmute_copy(&lretval)).into() } - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, plflags: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, plflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITransportStreamBuffer_Impl::Flags(this) { Ok(ok__) => { @@ -1456,17 +1135,11 @@ impl IRDPSRAPITransportStreamBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStreamBuffer_Impl::SetFlags(this, core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn Context(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { + unsafe extern "system" fn Context(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPITransportStreamBuffer_Impl::Context(this) { Ok(ok__) => { @@ -1476,10 +1149,7 @@ impl IRDPSRAPITransportStreamBuffer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPITransportStreamBuffer_Impl, - { + unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStreamBuffer_Impl::SetContext(this, windows_core::from_raw_borrowed(&pcontext)).into() } @@ -1501,35 +1171,23 @@ impl IRDPSRAPITransportStreamBuffer_Vtbl { iid == &::IID } } -pub trait IRDPSRAPITransportStreamEvents_Impl: Sized { +pub trait IRDPSRAPITransportStreamEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnWriteCompleted(&self, pbuffer: Option<&IRDPSRAPITransportStreamBuffer>); fn OnReadCompleted(&self, pbuffer: Option<&IRDPSRAPITransportStreamBuffer>); fn OnStreamClosed(&self, hrreason: windows_core::HRESULT); } impl windows_core::RuntimeName for IRDPSRAPITransportStreamEvents {} impl IRDPSRAPITransportStreamEvents_Vtbl { - pub const fn new() -> IRDPSRAPITransportStreamEvents_Vtbl - where - Identity: IRDPSRAPITransportStreamEvents_Impl, - { - unsafe extern "system" fn OnWriteCompleted(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) - where - Identity: IRDPSRAPITransportStreamEvents_Impl, - { + pub const fn new() -> IRDPSRAPITransportStreamEvents_Vtbl { + unsafe extern "system" fn OnWriteCompleted(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStreamEvents_Impl::OnWriteCompleted(this, windows_core::from_raw_borrowed(&pbuffer)) } - unsafe extern "system" fn OnReadCompleted(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) - where - Identity: IRDPSRAPITransportStreamEvents_Impl, - { + unsafe extern "system" fn OnReadCompleted(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStreamEvents_Impl::OnReadCompleted(this, windows_core::from_raw_borrowed(&pbuffer)) } - unsafe extern "system" fn OnStreamClosed(this: *mut core::ffi::c_void, hrreason: windows_core::HRESULT) - where - Identity: IRDPSRAPITransportStreamEvents_Impl, - { + unsafe extern "system" fn OnStreamClosed(this: *mut core::ffi::c_void, hrreason: windows_core::HRESULT) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPITransportStreamEvents_Impl::OnStreamClosed(this, core::mem::transmute_copy(&hrreason)) } @@ -1565,28 +1223,16 @@ pub trait IRDPSRAPIViewer_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIViewer {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIViewer_Vtbl { - pub const fn new() -> IRDPSRAPIViewer_Vtbl - where - Identity: IRDPSRAPIViewer_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, bstrconnectionstring: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + pub const fn new() -> IRDPSRAPIViewer_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, bstrconnectionstring: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIViewer_Impl::Connect(this, core::mem::transmute(&bstrconnectionstring), core::mem::transmute(&bstrname), core::mem::transmute(&bstrpassword)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIViewer_Impl::Disconnect(this).into() } - unsafe extern "system" fn Attendees(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn Attendees(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIViewer_Impl::Attendees(this) { Ok(ok__) => { @@ -1596,10 +1242,7 @@ impl IRDPSRAPIViewer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Invitations(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn Invitations(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIViewer_Impl::Invitations(this) { Ok(ok__) => { @@ -1609,10 +1252,7 @@ impl IRDPSRAPIViewer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplicationFilter(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn ApplicationFilter(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIViewer_Impl::ApplicationFilter(this) { Ok(ok__) => { @@ -1622,10 +1262,7 @@ impl IRDPSRAPIViewer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VirtualChannelManager(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn VirtualChannelManager(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIViewer_Impl::VirtualChannelManager(this) { Ok(ok__) => { @@ -1635,17 +1272,11 @@ impl IRDPSRAPIViewer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSmartSizing(this: *mut core::ffi::c_void, vbsmartsizing: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn SetSmartSizing(this: *mut core::ffi::c_void, vbsmartsizing: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIViewer_Impl::SetSmartSizing(this, core::mem::transmute_copy(&vbsmartsizing)).into() } - unsafe extern "system" fn SmartSizing(this: *mut core::ffi::c_void, pvbsmartsizing: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn SmartSizing(this: *mut core::ffi::c_void, pvbsmartsizing: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIViewer_Impl::SmartSizing(this) { Ok(ok__) => { @@ -1655,24 +1286,15 @@ impl IRDPSRAPIViewer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestControl(this: *mut core::ffi::c_void, ctrllevel: CTRL_LEVEL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn RequestControl(this: *mut core::ffi::c_void, ctrllevel: CTRL_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIViewer_Impl::RequestControl(this, core::mem::transmute_copy(&ctrllevel)).into() } - unsafe extern "system" fn SetDisconnectedText(this: *mut core::ffi::c_void, bstrdisconnectedtext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn SetDisconnectedText(this: *mut core::ffi::c_void, bstrdisconnectedtext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIViewer_Impl::SetDisconnectedText(this, core::mem::transmute(&bstrdisconnectedtext)).into() } - unsafe extern "system" fn DisconnectedText(this: *mut core::ffi::c_void, pbstrdisconnectedtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn DisconnectedText(this: *mut core::ffi::c_void, pbstrdisconnectedtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIViewer_Impl::DisconnectedText(this) { Ok(ok__) => { @@ -1682,17 +1304,11 @@ impl IRDPSRAPIViewer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestColorDepthChange(this: *mut core::ffi::c_void, bpp: i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn RequestColorDepthChange(this: *mut core::ffi::c_void, bpp: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIViewer_Impl::RequestColorDepthChange(this, core::mem::transmute_copy(&bpp)).into() } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIViewer_Impl::Properties(this) { Ok(ok__) => { @@ -1702,10 +1318,7 @@ impl IRDPSRAPIViewer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartReverseConnectListener(this: *mut core::ffi::c_void, bstrconnectionstring: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, pbstrreverseconnectstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIViewer_Impl, - { + unsafe extern "system" fn StartReverseConnectListener(this: *mut core::ffi::c_void, bstrconnectionstring: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, pbstrreverseconnectstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIViewer_Impl::StartReverseConnectListener(this, core::mem::transmute(&bstrconnectionstring), core::mem::transmute(&bstrusername), core::mem::transmute(&bstrpassword)) { Ok(ok__) => { @@ -1749,28 +1362,16 @@ pub trait IRDPSRAPIVirtualChannel_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIVirtualChannel {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIVirtualChannel_Vtbl { - pub const fn new() -> IRDPSRAPIVirtualChannel_Vtbl - where - Identity: IRDPSRAPIVirtualChannel_Impl, - { - unsafe extern "system" fn SendData(this: *mut core::ffi::c_void, bstrdata: core::mem::MaybeUninit, lattendeeid: i32, channelsendflags: u32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIVirtualChannel_Impl, - { + pub const fn new() -> IRDPSRAPIVirtualChannel_Vtbl { + unsafe extern "system" fn SendData(this: *mut core::ffi::c_void, bstrdata: core::mem::MaybeUninit, lattendeeid: i32, channelsendflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIVirtualChannel_Impl::SendData(this, core::mem::transmute(&bstrdata), core::mem::transmute_copy(&lattendeeid), core::mem::transmute_copy(&channelsendflags)).into() } - unsafe extern "system" fn SetAccess(this: *mut core::ffi::c_void, lattendeeid: i32, accesstype: CHANNEL_ACCESS_ENUM) -> windows_core::HRESULT - where - Identity: IRDPSRAPIVirtualChannel_Impl, - { + unsafe extern "system" fn SetAccess(this: *mut core::ffi::c_void, lattendeeid: i32, accesstype: CHANNEL_ACCESS_ENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIVirtualChannel_Impl::SetAccess(this, core::mem::transmute_copy(&lattendeeid), core::mem::transmute_copy(&accesstype)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIVirtualChannel_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIVirtualChannel_Impl::Name(this) { Ok(ok__) => { @@ -1780,10 +1381,7 @@ impl IRDPSRAPIVirtualChannel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, plflags: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIVirtualChannel_Impl, - { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, plflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIVirtualChannel_Impl::Flags(this) { Ok(ok__) => { @@ -1793,10 +1391,7 @@ impl IRDPSRAPIVirtualChannel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, ppriority: *mut CHANNEL_PRIORITY) -> windows_core::HRESULT - where - Identity: IRDPSRAPIVirtualChannel_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, ppriority: *mut CHANNEL_PRIORITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIVirtualChannel_Impl::Priority(this) { Ok(ok__) => { @@ -1829,14 +1424,8 @@ pub trait IRDPSRAPIVirtualChannelManager_Impl: Sized + super::Com::IDispatch_Imp impl windows_core::RuntimeName for IRDPSRAPIVirtualChannelManager {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIVirtualChannelManager_Vtbl { - pub const fn new() -> IRDPSRAPIVirtualChannelManager_Vtbl - where - Identity: IRDPSRAPIVirtualChannelManager_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIVirtualChannelManager_Impl, - { + pub const fn new() -> IRDPSRAPIVirtualChannelManager_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIVirtualChannelManager_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1846,10 +1435,7 @@ impl IRDPSRAPIVirtualChannelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: core::mem::MaybeUninit, pchannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIVirtualChannelManager_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: core::mem::MaybeUninit, pchannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIVirtualChannelManager_Impl::get_Item(this, core::mem::transmute(&item)) { Ok(ok__) => { @@ -1859,10 +1445,7 @@ impl IRDPSRAPIVirtualChannelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateVirtualChannel(this: *mut core::ffi::c_void, bstrchannelname: core::mem::MaybeUninit, priority: CHANNEL_PRIORITY, channelflags: u32, ppchannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIVirtualChannelManager_Impl, - { + unsafe extern "system" fn CreateVirtualChannel(this: *mut core::ffi::c_void, bstrchannelname: core::mem::MaybeUninit, priority: CHANNEL_PRIORITY, channelflags: u32, ppchannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIVirtualChannelManager_Impl::CreateVirtualChannel(this, core::mem::transmute(&bstrchannelname), core::mem::transmute_copy(&priority), core::mem::transmute_copy(&channelflags)) { Ok(ok__) => { @@ -1897,14 +1480,8 @@ pub trait IRDPSRAPIWindow_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIWindow {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIWindow_Vtbl { - pub const fn new() -> IRDPSRAPIWindow_Vtbl - where - Identity: IRDPSRAPIWindow_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIWindow_Impl, - { + pub const fn new() -> IRDPSRAPIWindow_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIWindow_Impl::Id(this) { Ok(ok__) => { @@ -1914,10 +1491,7 @@ impl IRDPSRAPIWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Application(this: *mut core::ffi::c_void, papplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIWindow_Impl, - { + unsafe extern "system" fn Application(this: *mut core::ffi::c_void, papplication: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIWindow_Impl::Application(this) { Ok(ok__) => { @@ -1927,10 +1501,7 @@ impl IRDPSRAPIWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shared(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIWindow_Impl, - { + unsafe extern "system" fn Shared(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIWindow_Impl::Shared(this) { Ok(ok__) => { @@ -1940,17 +1511,11 @@ impl IRDPSRAPIWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShared(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPSRAPIWindow_Impl, - { + unsafe extern "system" fn SetShared(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIWindow_Impl::SetShared(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRDPSRAPIWindow_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIWindow_Impl::Name(this) { Ok(ok__) => { @@ -1960,17 +1525,11 @@ impl IRDPSRAPIWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIWindow_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPSRAPIWindow_Impl::Show(this).into() } - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IRDPSRAPIWindow_Impl, - { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIWindow_Impl::Flags(this) { Ok(ok__) => { @@ -2004,14 +1563,8 @@ pub trait IRDPSRAPIWindowList_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRDPSRAPIWindowList {} #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIWindowList_Vtbl { - pub const fn new() -> IRDPSRAPIWindowList_Vtbl - where - Identity: IRDPSRAPIWindowList_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIWindowList_Impl, - { + pub const fn new() -> IRDPSRAPIWindowList_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIWindowList_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2021,10 +1574,7 @@ impl IRDPSRAPIWindowList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: i32, pwindow: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPSRAPIWindowList_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, item: i32, pwindow: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRDPSRAPIWindowList_Impl::get_Item(this, core::mem::transmute_copy(&item)) { Ok(ok__) => { @@ -2040,7 +1590,7 @@ impl IRDPSRAPIWindowList_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRDPViewerInputSink_Impl: Sized { +pub trait IRDPViewerInputSink_Impl: Sized + windows_core::IUnknownImpl { fn SendMouseButtonEvent(&self, buttontype: RDPSRAPI_MOUSE_BUTTON_TYPE, vbbuttondown: super::super::Foundation::VARIANT_BOOL, xpos: u32, ypos: u32) -> windows_core::Result<()>; fn SendMouseMoveEvent(&self, xpos: u32, ypos: u32) -> windows_core::Result<()>; fn SendMouseWheelEvent(&self, wheelrotation: u16) -> windows_core::Result<()>; @@ -2052,63 +1602,36 @@ pub trait IRDPViewerInputSink_Impl: Sized { } impl windows_core::RuntimeName for IRDPViewerInputSink {} impl IRDPViewerInputSink_Vtbl { - pub const fn new() -> IRDPViewerInputSink_Vtbl - where - Identity: IRDPViewerInputSink_Impl, - { - unsafe extern "system" fn SendMouseButtonEvent(this: *mut core::ffi::c_void, buttontype: RDPSRAPI_MOUSE_BUTTON_TYPE, vbbuttondown: super::super::Foundation::VARIANT_BOOL, xpos: u32, ypos: u32) -> windows_core::HRESULT - where - Identity: IRDPViewerInputSink_Impl, - { + pub const fn new() -> IRDPViewerInputSink_Vtbl { + unsafe extern "system" fn SendMouseButtonEvent(this: *mut core::ffi::c_void, buttontype: RDPSRAPI_MOUSE_BUTTON_TYPE, vbbuttondown: super::super::Foundation::VARIANT_BOOL, xpos: u32, ypos: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPViewerInputSink_Impl::SendMouseButtonEvent(this, core::mem::transmute_copy(&buttontype), core::mem::transmute_copy(&vbbuttondown), core::mem::transmute_copy(&xpos), core::mem::transmute_copy(&ypos)).into() } - unsafe extern "system" fn SendMouseMoveEvent(this: *mut core::ffi::c_void, xpos: u32, ypos: u32) -> windows_core::HRESULT - where - Identity: IRDPViewerInputSink_Impl, - { + unsafe extern "system" fn SendMouseMoveEvent(this: *mut core::ffi::c_void, xpos: u32, ypos: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPViewerInputSink_Impl::SendMouseMoveEvent(this, core::mem::transmute_copy(&xpos), core::mem::transmute_copy(&ypos)).into() } - unsafe extern "system" fn SendMouseWheelEvent(this: *mut core::ffi::c_void, wheelrotation: u16) -> windows_core::HRESULT - where - Identity: IRDPViewerInputSink_Impl, - { + unsafe extern "system" fn SendMouseWheelEvent(this: *mut core::ffi::c_void, wheelrotation: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPViewerInputSink_Impl::SendMouseWheelEvent(this, core::mem::transmute_copy(&wheelrotation)).into() } - unsafe extern "system" fn SendKeyboardEvent(this: *mut core::ffi::c_void, codetype: RDPSRAPI_KBD_CODE_TYPE, keycode: u16, vbkeyup: super::super::Foundation::VARIANT_BOOL, vbrepeat: super::super::Foundation::VARIANT_BOOL, vbextended: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRDPViewerInputSink_Impl, - { + unsafe extern "system" fn SendKeyboardEvent(this: *mut core::ffi::c_void, codetype: RDPSRAPI_KBD_CODE_TYPE, keycode: u16, vbkeyup: super::super::Foundation::VARIANT_BOOL, vbrepeat: super::super::Foundation::VARIANT_BOOL, vbextended: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPViewerInputSink_Impl::SendKeyboardEvent(this, core::mem::transmute_copy(&codetype), core::mem::transmute_copy(&keycode), core::mem::transmute_copy(&vbkeyup), core::mem::transmute_copy(&vbrepeat), core::mem::transmute_copy(&vbextended)).into() } - unsafe extern "system" fn SendSyncEvent(this: *mut core::ffi::c_void, syncflags: u32) -> windows_core::HRESULT - where - Identity: IRDPViewerInputSink_Impl, - { + unsafe extern "system" fn SendSyncEvent(this: *mut core::ffi::c_void, syncflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPViewerInputSink_Impl::SendSyncEvent(this, core::mem::transmute_copy(&syncflags)).into() } - unsafe extern "system" fn BeginTouchFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPViewerInputSink_Impl, - { + unsafe extern "system" fn BeginTouchFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPViewerInputSink_Impl::BeginTouchFrame(this).into() } - unsafe extern "system" fn AddTouchInput(this: *mut core::ffi::c_void, contactid: u32, event: u32, x: i32, y: i32) -> windows_core::HRESULT - where - Identity: IRDPViewerInputSink_Impl, - { + unsafe extern "system" fn AddTouchInput(this: *mut core::ffi::c_void, contactid: u32, event: u32, x: i32, y: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPViewerInputSink_Impl::AddTouchInput(this, core::mem::transmute_copy(&contactid), core::mem::transmute_copy(&event), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn EndTouchFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRDPViewerInputSink_Impl, - { + unsafe extern "system" fn EndTouchFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRDPViewerInputSink_Impl::EndTouchFrame(this).into() } @@ -2134,10 +1657,7 @@ pub trait _IRDPSessionEvents_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for _IRDPSessionEvents {} #[cfg(feature = "Win32_System_Com")] impl _IRDPSessionEvents_Vtbl { - pub const fn new() -> _IRDPSessionEvents_Vtbl - where - Identity: _IRDPSessionEvents_Impl, - { + pub const fn new() -> _IRDPSessionEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/impl.rs index c6aa6d50b5..928e5896ce 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/impl.rs @@ -1,19 +1,13 @@ #[cfg(feature = "Win32_System_WinRT_Metadata")] -pub trait ICorProfilerAssemblyReferenceProvider_Impl: Sized { +pub trait ICorProfilerAssemblyReferenceProvider_Impl: Sized + windows_core::IUnknownImpl { fn AddAssemblyReference(&self, passemblyrefinfo: *const COR_PRF_ASSEMBLY_REFERENCE_INFO) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_WinRT_Metadata")] impl windows_core::RuntimeName for ICorProfilerAssemblyReferenceProvider {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerAssemblyReferenceProvider_Vtbl { - pub const fn new() -> ICorProfilerAssemblyReferenceProvider_Vtbl - where - Identity: ICorProfilerAssemblyReferenceProvider_Impl, - { - unsafe extern "system" fn AddAssemblyReference(this: *mut core::ffi::c_void, passemblyrefinfo: *const COR_PRF_ASSEMBLY_REFERENCE_INFO) -> windows_core::HRESULT - where - Identity: ICorProfilerAssemblyReferenceProvider_Impl, - { + pub const fn new() -> ICorProfilerAssemblyReferenceProvider_Vtbl { + unsafe extern "system" fn AddAssemblyReference(this: *mut core::ffi::c_void, passemblyrefinfo: *const COR_PRF_ASSEMBLY_REFERENCE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerAssemblyReferenceProvider_Impl::AddAssemblyReference(this, core::mem::transmute_copy(&passemblyrefinfo)).into() } @@ -23,7 +17,7 @@ impl ICorProfilerAssemblyReferenceProvider_Vtbl { iid == &::IID } } -pub trait ICorProfilerCallback_Impl: Sized { +pub trait ICorProfilerCallback_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, picorprofilerinfounk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Shutdown(&self) -> windows_core::Result<()>; fn AppDomainCreationStarted(&self, appdomainid: usize) -> windows_core::Result<()>; @@ -96,168 +90,96 @@ pub trait ICorProfilerCallback_Impl: Sized { } impl windows_core::RuntimeName for ICorProfilerCallback {} impl ICorProfilerCallback_Vtbl { - pub const fn new() -> ICorProfilerCallback_Vtbl - where - Identity: ICorProfilerCallback_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picorprofilerinfounk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + pub const fn new() -> ICorProfilerCallback_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picorprofilerinfounk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::Initialize(this, windows_core::from_raw_borrowed(&picorprofilerinfounk)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::Shutdown(this).into() } - unsafe extern "system" fn AppDomainCreationStarted(this: *mut core::ffi::c_void, appdomainid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn AppDomainCreationStarted(this: *mut core::ffi::c_void, appdomainid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::AppDomainCreationStarted(this, core::mem::transmute_copy(&appdomainid)).into() } - unsafe extern "system" fn AppDomainCreationFinished(this: *mut core::ffi::c_void, appdomainid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn AppDomainCreationFinished(this: *mut core::ffi::c_void, appdomainid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::AppDomainCreationFinished(this, core::mem::transmute_copy(&appdomainid), core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn AppDomainShutdownStarted(this: *mut core::ffi::c_void, appdomainid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn AppDomainShutdownStarted(this: *mut core::ffi::c_void, appdomainid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::AppDomainShutdownStarted(this, core::mem::transmute_copy(&appdomainid)).into() } - unsafe extern "system" fn AppDomainShutdownFinished(this: *mut core::ffi::c_void, appdomainid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn AppDomainShutdownFinished(this: *mut core::ffi::c_void, appdomainid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::AppDomainShutdownFinished(this, core::mem::transmute_copy(&appdomainid), core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn AssemblyLoadStarted(this: *mut core::ffi::c_void, assemblyid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn AssemblyLoadStarted(this: *mut core::ffi::c_void, assemblyid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::AssemblyLoadStarted(this, core::mem::transmute_copy(&assemblyid)).into() } - unsafe extern "system" fn AssemblyLoadFinished(this: *mut core::ffi::c_void, assemblyid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn AssemblyLoadFinished(this: *mut core::ffi::c_void, assemblyid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::AssemblyLoadFinished(this, core::mem::transmute_copy(&assemblyid), core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn AssemblyUnloadStarted(this: *mut core::ffi::c_void, assemblyid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn AssemblyUnloadStarted(this: *mut core::ffi::c_void, assemblyid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::AssemblyUnloadStarted(this, core::mem::transmute_copy(&assemblyid)).into() } - unsafe extern "system" fn AssemblyUnloadFinished(this: *mut core::ffi::c_void, assemblyid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn AssemblyUnloadFinished(this: *mut core::ffi::c_void, assemblyid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::AssemblyUnloadFinished(this, core::mem::transmute_copy(&assemblyid), core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn ModuleLoadStarted(this: *mut core::ffi::c_void, moduleid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ModuleLoadStarted(this: *mut core::ffi::c_void, moduleid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ModuleLoadStarted(this, core::mem::transmute_copy(&moduleid)).into() } - unsafe extern "system" fn ModuleLoadFinished(this: *mut core::ffi::c_void, moduleid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ModuleLoadFinished(this: *mut core::ffi::c_void, moduleid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ModuleLoadFinished(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn ModuleUnloadStarted(this: *mut core::ffi::c_void, moduleid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ModuleUnloadStarted(this: *mut core::ffi::c_void, moduleid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ModuleUnloadStarted(this, core::mem::transmute_copy(&moduleid)).into() } - unsafe extern "system" fn ModuleUnloadFinished(this: *mut core::ffi::c_void, moduleid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ModuleUnloadFinished(this: *mut core::ffi::c_void, moduleid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ModuleUnloadFinished(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn ModuleAttachedToAssembly(this: *mut core::ffi::c_void, moduleid: usize, assemblyid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ModuleAttachedToAssembly(this: *mut core::ffi::c_void, moduleid: usize, assemblyid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ModuleAttachedToAssembly(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&assemblyid)).into() } - unsafe extern "system" fn ClassLoadStarted(this: *mut core::ffi::c_void, classid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ClassLoadStarted(this: *mut core::ffi::c_void, classid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ClassLoadStarted(this, core::mem::transmute_copy(&classid)).into() } - unsafe extern "system" fn ClassLoadFinished(this: *mut core::ffi::c_void, classid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ClassLoadFinished(this: *mut core::ffi::c_void, classid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ClassLoadFinished(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn ClassUnloadStarted(this: *mut core::ffi::c_void, classid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ClassUnloadStarted(this: *mut core::ffi::c_void, classid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ClassUnloadStarted(this, core::mem::transmute_copy(&classid)).into() } - unsafe extern "system" fn ClassUnloadFinished(this: *mut core::ffi::c_void, classid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ClassUnloadFinished(this: *mut core::ffi::c_void, classid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ClassUnloadFinished(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn FunctionUnloadStarted(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn FunctionUnloadStarted(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::FunctionUnloadStarted(this, core::mem::transmute_copy(&functionid)).into() } - unsafe extern "system" fn JITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn JITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::JITCompilationStarted(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&fissafetoblock)).into() } - unsafe extern "system" fn JITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn JITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::JITCompilationFinished(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&fissafetoblock)).into() } - unsafe extern "system" fn JITCachedFunctionSearchStarted(this: *mut core::ffi::c_void, functionid: usize, pbusecachedfunction: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn JITCachedFunctionSearchStarted(this: *mut core::ffi::c_void, functionid: usize, pbusecachedfunction: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerCallback_Impl::JITCachedFunctionSearchStarted(this, core::mem::transmute_copy(&functionid)) { Ok(ok__) => { @@ -267,24 +189,15 @@ impl ICorProfilerCallback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn JITCachedFunctionSearchFinished(this: *mut core::ffi::c_void, functionid: usize, result: COR_PRF_JIT_CACHE) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn JITCachedFunctionSearchFinished(this: *mut core::ffi::c_void, functionid: usize, result: COR_PRF_JIT_CACHE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::JITCachedFunctionSearchFinished(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&result)).into() } - unsafe extern "system" fn JITFunctionPitched(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn JITFunctionPitched(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::JITFunctionPitched(this, core::mem::transmute_copy(&functionid)).into() } - unsafe extern "system" fn JITInlining(this: *mut core::ffi::c_void, callerid: usize, calleeid: usize, pfshouldinline: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn JITInlining(this: *mut core::ffi::c_void, callerid: usize, calleeid: usize, pfshouldinline: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerCallback_Impl::JITInlining(this, core::mem::transmute_copy(&callerid), core::mem::transmute_copy(&calleeid)) { Ok(ok__) => { @@ -294,304 +207,175 @@ impl ICorProfilerCallback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ThreadCreated(this: *mut core::ffi::c_void, threadid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ThreadCreated(this: *mut core::ffi::c_void, threadid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ThreadCreated(this, core::mem::transmute_copy(&threadid)).into() } - unsafe extern "system" fn ThreadDestroyed(this: *mut core::ffi::c_void, threadid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ThreadDestroyed(this: *mut core::ffi::c_void, threadid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ThreadDestroyed(this, core::mem::transmute_copy(&threadid)).into() } - unsafe extern "system" fn ThreadAssignedToOSThread(this: *mut core::ffi::c_void, managedthreadid: usize, osthreadid: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ThreadAssignedToOSThread(this: *mut core::ffi::c_void, managedthreadid: usize, osthreadid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ThreadAssignedToOSThread(this, core::mem::transmute_copy(&managedthreadid), core::mem::transmute_copy(&osthreadid)).into() } - unsafe extern "system" fn RemotingClientInvocationStarted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RemotingClientInvocationStarted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingClientInvocationStarted(this).into() } - unsafe extern "system" fn RemotingClientSendingMessage(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RemotingClientSendingMessage(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingClientSendingMessage(this, core::mem::transmute_copy(&pcookie), core::mem::transmute_copy(&fisasync)).into() } - unsafe extern "system" fn RemotingClientReceivingReply(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RemotingClientReceivingReply(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingClientReceivingReply(this, core::mem::transmute_copy(&pcookie), core::mem::transmute_copy(&fisasync)).into() } - unsafe extern "system" fn RemotingClientInvocationFinished(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RemotingClientInvocationFinished(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingClientInvocationFinished(this).into() } - unsafe extern "system" fn RemotingServerReceivingMessage(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RemotingServerReceivingMessage(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingServerReceivingMessage(this, core::mem::transmute_copy(&pcookie), core::mem::transmute_copy(&fisasync)).into() } - unsafe extern "system" fn RemotingServerInvocationStarted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RemotingServerInvocationStarted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingServerInvocationStarted(this).into() } - unsafe extern "system" fn RemotingServerInvocationReturned(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RemotingServerInvocationReturned(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingServerInvocationReturned(this).into() } - unsafe extern "system" fn RemotingServerSendingReply(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RemotingServerSendingReply(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingServerSendingReply(this, core::mem::transmute_copy(&pcookie), core::mem::transmute_copy(&fisasync)).into() } - unsafe extern "system" fn UnmanagedToManagedTransition(this: *mut core::ffi::c_void, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn UnmanagedToManagedTransition(this: *mut core::ffi::c_void, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::UnmanagedToManagedTransition(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&reason)).into() } - unsafe extern "system" fn ManagedToUnmanagedTransition(this: *mut core::ffi::c_void, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ManagedToUnmanagedTransition(this: *mut core::ffi::c_void, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ManagedToUnmanagedTransition(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&reason)).into() } - unsafe extern "system" fn RuntimeSuspendStarted(this: *mut core::ffi::c_void, suspendreason: COR_PRF_SUSPEND_REASON) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RuntimeSuspendStarted(this: *mut core::ffi::c_void, suspendreason: COR_PRF_SUSPEND_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RuntimeSuspendStarted(this, core::mem::transmute_copy(&suspendreason)).into() } - unsafe extern "system" fn RuntimeSuspendFinished(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RuntimeSuspendFinished(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RuntimeSuspendFinished(this).into() } - unsafe extern "system" fn RuntimeSuspendAborted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RuntimeSuspendAborted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RuntimeSuspendAborted(this).into() } - unsafe extern "system" fn RuntimeResumeStarted(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RuntimeResumeStarted(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RuntimeResumeStarted(this).into() } - unsafe extern "system" fn RuntimeResumeFinished(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RuntimeResumeFinished(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RuntimeResumeFinished(this).into() } - unsafe extern "system" fn RuntimeThreadSuspended(this: *mut core::ffi::c_void, threadid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RuntimeThreadSuspended(this: *mut core::ffi::c_void, threadid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RuntimeThreadSuspended(this, core::mem::transmute_copy(&threadid)).into() } - unsafe extern "system" fn RuntimeThreadResumed(this: *mut core::ffi::c_void, threadid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RuntimeThreadResumed(this: *mut core::ffi::c_void, threadid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RuntimeThreadResumed(this, core::mem::transmute_copy(&threadid)).into() } - unsafe extern "system" fn MovedReferences(this: *mut core::ffi::c_void, cmovedobjectidranges: u32, oldobjectidrangestart: *const usize, newobjectidrangestart: *const usize, cobjectidrangelength: *const u32) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn MovedReferences(this: *mut core::ffi::c_void, cmovedobjectidranges: u32, oldobjectidrangestart: *const usize, newobjectidrangestart: *const usize, cobjectidrangelength: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::MovedReferences(this, core::mem::transmute_copy(&cmovedobjectidranges), core::mem::transmute_copy(&oldobjectidrangestart), core::mem::transmute_copy(&newobjectidrangestart), core::mem::transmute_copy(&cobjectidrangelength)).into() } - unsafe extern "system" fn ObjectAllocated(this: *mut core::ffi::c_void, objectid: usize, classid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ObjectAllocated(this: *mut core::ffi::c_void, objectid: usize, classid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ObjectAllocated(this, core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&classid)).into() } - unsafe extern "system" fn ObjectsAllocatedByClass(this: *mut core::ffi::c_void, cclasscount: u32, classids: *const usize, cobjects: *const u32) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ObjectsAllocatedByClass(this: *mut core::ffi::c_void, cclasscount: u32, classids: *const usize, cobjects: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ObjectsAllocatedByClass(this, core::mem::transmute_copy(&cclasscount), core::mem::transmute_copy(&classids), core::mem::transmute_copy(&cobjects)).into() } - unsafe extern "system" fn ObjectReferences(this: *mut core::ffi::c_void, objectid: usize, classid: usize, cobjectrefs: u32, objectrefids: *const usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ObjectReferences(this: *mut core::ffi::c_void, objectid: usize, classid: usize, cobjectrefs: u32, objectrefids: *const usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ObjectReferences(this, core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&classid), core::mem::transmute_copy(&cobjectrefs), core::mem::transmute_copy(&objectrefids)).into() } - unsafe extern "system" fn RootReferences(this: *mut core::ffi::c_void, crootrefs: u32, rootrefids: *const usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn RootReferences(this: *mut core::ffi::c_void, crootrefs: u32, rootrefids: *const usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RootReferences(this, core::mem::transmute_copy(&crootrefs), core::mem::transmute_copy(&rootrefids)).into() } - unsafe extern "system" fn ExceptionThrown(this: *mut core::ffi::c_void, thrownobjectid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionThrown(this: *mut core::ffi::c_void, thrownobjectid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionThrown(this, core::mem::transmute_copy(&thrownobjectid)).into() } - unsafe extern "system" fn ExceptionSearchFunctionEnter(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionSearchFunctionEnter(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionSearchFunctionEnter(this, core::mem::transmute_copy(&functionid)).into() } - unsafe extern "system" fn ExceptionSearchFunctionLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionSearchFunctionLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionSearchFunctionLeave(this).into() } - unsafe extern "system" fn ExceptionSearchFilterEnter(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionSearchFilterEnter(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionSearchFilterEnter(this, core::mem::transmute_copy(&functionid)).into() } - unsafe extern "system" fn ExceptionSearchFilterLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionSearchFilterLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionSearchFilterLeave(this).into() } - unsafe extern "system" fn ExceptionSearchCatcherFound(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionSearchCatcherFound(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionSearchCatcherFound(this, core::mem::transmute_copy(&functionid)).into() } - unsafe extern "system" fn ExceptionOSHandlerEnter(this: *mut core::ffi::c_void, __unused: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionOSHandlerEnter(this: *mut core::ffi::c_void, __unused: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionOSHandlerEnter(this, core::mem::transmute_copy(&__unused)).into() } - unsafe extern "system" fn ExceptionOSHandlerLeave(this: *mut core::ffi::c_void, __unused: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionOSHandlerLeave(this: *mut core::ffi::c_void, __unused: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionOSHandlerLeave(this, core::mem::transmute_copy(&__unused)).into() } - unsafe extern "system" fn ExceptionUnwindFunctionEnter(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionUnwindFunctionEnter(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionUnwindFunctionEnter(this, core::mem::transmute_copy(&functionid)).into() } - unsafe extern "system" fn ExceptionUnwindFunctionLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionUnwindFunctionLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionUnwindFunctionLeave(this).into() } - unsafe extern "system" fn ExceptionUnwindFinallyEnter(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionUnwindFinallyEnter(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionUnwindFinallyEnter(this, core::mem::transmute_copy(&functionid)).into() } - unsafe extern "system" fn ExceptionUnwindFinallyLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionUnwindFinallyLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionUnwindFinallyLeave(this).into() } - unsafe extern "system" fn ExceptionCatcherEnter(this: *mut core::ffi::c_void, functionid: usize, objectid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionCatcherEnter(this: *mut core::ffi::c_void, functionid: usize, objectid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionCatcherEnter(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&objectid)).into() } - unsafe extern "system" fn ExceptionCatcherLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionCatcherLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionCatcherLeave(this).into() } - unsafe extern "system" fn COMClassicVTableCreated(this: *mut core::ffi::c_void, wrappedclassid: usize, implementediid: *const windows_core::GUID, pvtable: *const core::ffi::c_void, cslots: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn COMClassicVTableCreated(this: *mut core::ffi::c_void, wrappedclassid: usize, implementediid: *const windows_core::GUID, pvtable: *const core::ffi::c_void, cslots: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::COMClassicVTableCreated(this, core::mem::transmute_copy(&wrappedclassid), core::mem::transmute_copy(&implementediid), core::mem::transmute_copy(&pvtable), core::mem::transmute_copy(&cslots)).into() } - unsafe extern "system" fn COMClassicVTableDestroyed(this: *mut core::ffi::c_void, wrappedclassid: usize, implementediid: *const windows_core::GUID, pvtable: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn COMClassicVTableDestroyed(this: *mut core::ffi::c_void, wrappedclassid: usize, implementediid: *const windows_core::GUID, pvtable: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::COMClassicVTableDestroyed(this, core::mem::transmute_copy(&wrappedclassid), core::mem::transmute_copy(&implementediid), core::mem::transmute_copy(&pvtable)).into() } - unsafe extern "system" fn ExceptionCLRCatcherFound(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionCLRCatcherFound(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionCLRCatcherFound(this).into() } - unsafe extern "system" fn ExceptionCLRCatcherExecute(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback_Impl, - { + unsafe extern "system" fn ExceptionCLRCatcherExecute(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::ExceptionCLRCatcherExecute(this).into() } @@ -678,14 +462,8 @@ pub trait ICorProfilerCallback10_Impl: Sized + ICorProfilerCallback9_Impl { } impl windows_core::RuntimeName for ICorProfilerCallback10 {} impl ICorProfilerCallback10_Vtbl { - pub const fn new() -> ICorProfilerCallback10_Vtbl - where - Identity: ICorProfilerCallback10_Impl, - { - unsafe extern "system" fn EventPipeEventDelivered(this: *mut core::ffi::c_void, provider: usize, eventid: u32, eventversion: u32, cbmetadatablob: u32, metadatablob: *const u8, cbeventdata: u32, eventdata: *const u8, pactivityid: *const windows_core::GUID, prelatedactivityid: *const windows_core::GUID, eventthread: usize, numstackframes: u32, stackframes: *const usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback10_Impl, - { + pub const fn new() -> ICorProfilerCallback10_Vtbl { + unsafe extern "system" fn EventPipeEventDelivered(this: *mut core::ffi::c_void, provider: usize, eventid: u32, eventversion: u32, cbmetadatablob: u32, metadatablob: *const u8, cbeventdata: u32, eventdata: *const u8, pactivityid: *const windows_core::GUID, prelatedactivityid: *const windows_core::GUID, eventthread: usize, numstackframes: u32, stackframes: *const usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback10_Impl::EventPipeEventDelivered( this, @@ -704,10 +482,7 @@ impl ICorProfilerCallback10_Vtbl { ) .into() } - unsafe extern "system" fn EventPipeProviderCreated(this: *mut core::ffi::c_void, provider: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback10_Impl, - { + unsafe extern "system" fn EventPipeProviderCreated(this: *mut core::ffi::c_void, provider: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback10_Impl::EventPipeProviderCreated(this, core::mem::transmute_copy(&provider)).into() } @@ -726,14 +501,8 @@ pub trait ICorProfilerCallback11_Impl: Sized + ICorProfilerCallback10_Impl { } impl windows_core::RuntimeName for ICorProfilerCallback11 {} impl ICorProfilerCallback11_Vtbl { - pub const fn new() -> ICorProfilerCallback11_Vtbl - where - Identity: ICorProfilerCallback11_Impl, - { - unsafe extern "system" fn LoadAsNotificationOnly(this: *mut core::ffi::c_void, pbnotificationonly: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback11_Impl, - { + pub const fn new() -> ICorProfilerCallback11_Vtbl { + unsafe extern "system" fn LoadAsNotificationOnly(this: *mut core::ffi::c_void, pbnotificationonly: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback11_Impl::LoadAsNotificationOnly(this, core::mem::transmute_copy(&pbnotificationonly)).into() } @@ -755,63 +524,36 @@ pub trait ICorProfilerCallback2_Impl: Sized + ICorProfilerCallback_Impl { } impl windows_core::RuntimeName for ICorProfilerCallback2 {} impl ICorProfilerCallback2_Vtbl { - pub const fn new() -> ICorProfilerCallback2_Vtbl - where - Identity: ICorProfilerCallback2_Impl, - { - unsafe extern "system" fn ThreadNameChanged(this: *mut core::ffi::c_void, threadid: usize, cchname: u32, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback2_Impl, - { + pub const fn new() -> ICorProfilerCallback2_Vtbl { + unsafe extern "system" fn ThreadNameChanged(this: *mut core::ffi::c_void, threadid: usize, cchname: u32, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback2_Impl::ThreadNameChanged(this, core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&cchname), core::mem::transmute(&name)).into() } - unsafe extern "system" fn GarbageCollectionStarted(this: *mut core::ffi::c_void, cgenerations: i32, generationcollected: *const super::super::super::Foundation::BOOL, reason: COR_PRF_GC_REASON) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback2_Impl, - { + unsafe extern "system" fn GarbageCollectionStarted(this: *mut core::ffi::c_void, cgenerations: i32, generationcollected: *const super::super::super::Foundation::BOOL, reason: COR_PRF_GC_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback2_Impl::GarbageCollectionStarted(this, core::mem::transmute_copy(&cgenerations), core::mem::transmute_copy(&generationcollected), core::mem::transmute_copy(&reason)).into() } - unsafe extern "system" fn SurvivingReferences(this: *mut core::ffi::c_void, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const u32) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback2_Impl, - { + unsafe extern "system" fn SurvivingReferences(this: *mut core::ffi::c_void, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback2_Impl::SurvivingReferences(this, core::mem::transmute_copy(&csurvivingobjectidranges), core::mem::transmute_copy(&objectidrangestart), core::mem::transmute_copy(&cobjectidrangelength)).into() } - unsafe extern "system" fn GarbageCollectionFinished(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback2_Impl, - { + unsafe extern "system" fn GarbageCollectionFinished(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback2_Impl::GarbageCollectionFinished(this).into() } - unsafe extern "system" fn FinalizeableObjectQueued(this: *mut core::ffi::c_void, finalizerflags: u32, objectid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback2_Impl, - { + unsafe extern "system" fn FinalizeableObjectQueued(this: *mut core::ffi::c_void, finalizerflags: u32, objectid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback2_Impl::FinalizeableObjectQueued(this, core::mem::transmute_copy(&finalizerflags), core::mem::transmute_copy(&objectid)).into() } - unsafe extern "system" fn RootReferences2(this: *mut core::ffi::c_void, crootrefs: u32, rootrefids: *const usize, rootkinds: *const COR_PRF_GC_ROOT_KIND, rootflags: *const COR_PRF_GC_ROOT_FLAGS, rootids: *const usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback2_Impl, - { + unsafe extern "system" fn RootReferences2(this: *mut core::ffi::c_void, crootrefs: u32, rootrefids: *const usize, rootkinds: *const COR_PRF_GC_ROOT_KIND, rootflags: *const COR_PRF_GC_ROOT_FLAGS, rootids: *const usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback2_Impl::RootReferences2(this, core::mem::transmute_copy(&crootrefs), core::mem::transmute_copy(&rootrefids), core::mem::transmute_copy(&rootkinds), core::mem::transmute_copy(&rootflags), core::mem::transmute_copy(&rootids)).into() } - unsafe extern "system" fn HandleCreated(this: *mut core::ffi::c_void, handleid: usize, initialobjectid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback2_Impl, - { + unsafe extern "system" fn HandleCreated(this: *mut core::ffi::c_void, handleid: usize, initialobjectid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback2_Impl::HandleCreated(this, core::mem::transmute_copy(&handleid), core::mem::transmute_copy(&initialobjectid)).into() } - unsafe extern "system" fn HandleDestroyed(this: *mut core::ffi::c_void, handleid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback2_Impl, - { + unsafe extern "system" fn HandleDestroyed(this: *mut core::ffi::c_void, handleid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback2_Impl::HandleDestroyed(this, core::mem::transmute_copy(&handleid)).into() } @@ -838,28 +580,16 @@ pub trait ICorProfilerCallback3_Impl: Sized + ICorProfilerCallback2_Impl { } impl windows_core::RuntimeName for ICorProfilerCallback3 {} impl ICorProfilerCallback3_Vtbl { - pub const fn new() -> ICorProfilerCallback3_Vtbl - where - Identity: ICorProfilerCallback3_Impl, - { - unsafe extern "system" fn InitializeForAttach(this: *mut core::ffi::c_void, pcorprofilerinfounk: *mut core::ffi::c_void, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback3_Impl, - { + pub const fn new() -> ICorProfilerCallback3_Vtbl { + unsafe extern "system" fn InitializeForAttach(this: *mut core::ffi::c_void, pcorprofilerinfounk: *mut core::ffi::c_void, pvclientdata: *const core::ffi::c_void, cbclientdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback3_Impl::InitializeForAttach(this, windows_core::from_raw_borrowed(&pcorprofilerinfounk), core::mem::transmute_copy(&pvclientdata), core::mem::transmute_copy(&cbclientdata)).into() } - unsafe extern "system" fn ProfilerAttachComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback3_Impl, - { + unsafe extern "system" fn ProfilerAttachComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback3_Impl::ProfilerAttachComplete(this).into() } - unsafe extern "system" fn ProfilerDetachSucceeded(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback3_Impl, - { + unsafe extern "system" fn ProfilerDetachSucceeded(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback3_Impl::ProfilerDetachSucceeded(this).into() } @@ -884,49 +614,28 @@ pub trait ICorProfilerCallback4_Impl: Sized + ICorProfilerCallback3_Impl { } impl windows_core::RuntimeName for ICorProfilerCallback4 {} impl ICorProfilerCallback4_Vtbl { - pub const fn new() -> ICorProfilerCallback4_Vtbl - where - Identity: ICorProfilerCallback4_Impl, - { - unsafe extern "system" fn ReJITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback4_Impl, - { + pub const fn new() -> ICorProfilerCallback4_Vtbl { + unsafe extern "system" fn ReJITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback4_Impl::ReJITCompilationStarted(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&rejitid), core::mem::transmute_copy(&fissafetoblock)).into() } - unsafe extern "system" fn GetReJITParameters(this: *mut core::ffi::c_void, moduleid: usize, methodid: u32, pfunctioncontrol: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback4_Impl, - { + unsafe extern "system" fn GetReJITParameters(this: *mut core::ffi::c_void, moduleid: usize, methodid: u32, pfunctioncontrol: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback4_Impl::GetReJITParameters(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&methodid), windows_core::from_raw_borrowed(&pfunctioncontrol)).into() } - unsafe extern "system" fn ReJITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback4_Impl, - { + unsafe extern "system" fn ReJITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback4_Impl::ReJITCompilationFinished(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&rejitid), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&fissafetoblock)).into() } - unsafe extern "system" fn ReJITError(this: *mut core::ffi::c_void, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback4_Impl, - { + unsafe extern "system" fn ReJITError(this: *mut core::ffi::c_void, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback4_Impl::ReJITError(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&methodid), core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn MovedReferences2(this: *mut core::ffi::c_void, cmovedobjectidranges: u32, oldobjectidrangestart: *const usize, newobjectidrangestart: *const usize, cobjectidrangelength: *const usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback4_Impl, - { + unsafe extern "system" fn MovedReferences2(this: *mut core::ffi::c_void, cmovedobjectidranges: u32, oldobjectidrangestart: *const usize, newobjectidrangestart: *const usize, cobjectidrangelength: *const usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback4_Impl::MovedReferences2(this, core::mem::transmute_copy(&cmovedobjectidranges), core::mem::transmute_copy(&oldobjectidrangestart), core::mem::transmute_copy(&newobjectidrangestart), core::mem::transmute_copy(&cobjectidrangelength)).into() } - unsafe extern "system" fn SurvivingReferences2(this: *mut core::ffi::c_void, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback4_Impl, - { + unsafe extern "system" fn SurvivingReferences2(this: *mut core::ffi::c_void, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback4_Impl::SurvivingReferences2(this, core::mem::transmute_copy(&csurvivingobjectidranges), core::mem::transmute_copy(&objectidrangestart), core::mem::transmute_copy(&cobjectidrangelength)).into() } @@ -949,14 +658,8 @@ pub trait ICorProfilerCallback5_Impl: Sized + ICorProfilerCallback4_Impl { } impl windows_core::RuntimeName for ICorProfilerCallback5 {} impl ICorProfilerCallback5_Vtbl { - pub const fn new() -> ICorProfilerCallback5_Vtbl - where - Identity: ICorProfilerCallback5_Impl, - { - unsafe extern "system" fn ConditionalWeakTableElementReferences(this: *mut core::ffi::c_void, crootrefs: u32, keyrefids: *const usize, valuerefids: *const usize, rootids: *const usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback5_Impl, - { + pub const fn new() -> ICorProfilerCallback5_Vtbl { + unsafe extern "system" fn ConditionalWeakTableElementReferences(this: *mut core::ffi::c_void, crootrefs: u32, keyrefids: *const usize, valuerefids: *const usize, rootids: *const usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback5_Impl::ConditionalWeakTableElementReferences(this, core::mem::transmute_copy(&crootrefs), core::mem::transmute_copy(&keyrefids), core::mem::transmute_copy(&valuerefids), core::mem::transmute_copy(&rootids)).into() } @@ -974,14 +677,8 @@ pub trait ICorProfilerCallback6_Impl: Sized + ICorProfilerCallback5_Impl { } impl windows_core::RuntimeName for ICorProfilerCallback6 {} impl ICorProfilerCallback6_Vtbl { - pub const fn new() -> ICorProfilerCallback6_Vtbl - where - Identity: ICorProfilerCallback6_Impl, - { - unsafe extern "system" fn GetAssemblyReferences(this: *mut core::ffi::c_void, wszassemblypath: windows_core::PCWSTR, pasmrefprovider: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback6_Impl, - { + pub const fn new() -> ICorProfilerCallback6_Vtbl { + unsafe extern "system" fn GetAssemblyReferences(this: *mut core::ffi::c_void, wszassemblypath: windows_core::PCWSTR, pasmrefprovider: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback6_Impl::GetAssemblyReferences(this, core::mem::transmute(&wszassemblypath), windows_core::from_raw_borrowed(&pasmrefprovider)).into() } @@ -996,14 +693,8 @@ pub trait ICorProfilerCallback7_Impl: Sized + ICorProfilerCallback6_Impl { } impl windows_core::RuntimeName for ICorProfilerCallback7 {} impl ICorProfilerCallback7_Vtbl { - pub const fn new() -> ICorProfilerCallback7_Vtbl - where - Identity: ICorProfilerCallback7_Impl, - { - unsafe extern "system" fn ModuleInMemorySymbolsUpdated(this: *mut core::ffi::c_void, moduleid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback7_Impl, - { + pub const fn new() -> ICorProfilerCallback7_Vtbl { + unsafe extern "system" fn ModuleInMemorySymbolsUpdated(this: *mut core::ffi::c_void, moduleid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback7_Impl::ModuleInMemorySymbolsUpdated(this, core::mem::transmute_copy(&moduleid)).into() } @@ -1019,21 +710,12 @@ pub trait ICorProfilerCallback8_Impl: Sized + ICorProfilerCallback7_Impl { } impl windows_core::RuntimeName for ICorProfilerCallback8 {} impl ICorProfilerCallback8_Vtbl { - pub const fn new() -> ICorProfilerCallback8_Vtbl - where - Identity: ICorProfilerCallback8_Impl, - { - unsafe extern "system" fn DynamicMethodJITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, fissafetoblock: super::super::super::Foundation::BOOL, pilheader: *const u8, cbilheader: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback8_Impl, - { + pub const fn new() -> ICorProfilerCallback8_Vtbl { + unsafe extern "system" fn DynamicMethodJITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, fissafetoblock: super::super::super::Foundation::BOOL, pilheader: *const u8, cbilheader: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback8_Impl::DynamicMethodJITCompilationStarted(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&fissafetoblock), core::mem::transmute_copy(&pilheader), core::mem::transmute_copy(&cbilheader)).into() } - unsafe extern "system" fn DynamicMethodJITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback8_Impl, - { + unsafe extern "system" fn DynamicMethodJITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback8_Impl::DynamicMethodJITCompilationFinished(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&fissafetoblock)).into() } @@ -1052,14 +734,8 @@ pub trait ICorProfilerCallback9_Impl: Sized + ICorProfilerCallback8_Impl { } impl windows_core::RuntimeName for ICorProfilerCallback9 {} impl ICorProfilerCallback9_Vtbl { - pub const fn new() -> ICorProfilerCallback9_Vtbl - where - Identity: ICorProfilerCallback9_Impl, - { - unsafe extern "system" fn DynamicMethodUnloaded(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerCallback9_Impl, - { + pub const fn new() -> ICorProfilerCallback9_Vtbl { + unsafe extern "system" fn DynamicMethodUnloaded(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback9_Impl::DynamicMethodUnloaded(this, core::mem::transmute_copy(&functionid)).into() } @@ -1069,35 +745,23 @@ impl ICorProfilerCallback9_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ICorProfilerFunctionControl_Impl: Sized { +pub trait ICorProfilerFunctionControl_Impl: Sized + windows_core::IUnknownImpl { fn SetCodegenFlags(&self, flags: u32) -> windows_core::Result<()>; fn SetILFunctionBody(&self, cbnewilmethodheader: u32, pbnewilmethodheader: *const u8) -> windows_core::Result<()>; fn SetILInstrumentedCodeMap(&self, cilmapentries: u32, rgilmapentries: *const COR_IL_MAP) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICorProfilerFunctionControl {} impl ICorProfilerFunctionControl_Vtbl { - pub const fn new() -> ICorProfilerFunctionControl_Vtbl - where - Identity: ICorProfilerFunctionControl_Impl, - { - unsafe extern "system" fn SetCodegenFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerFunctionControl_Impl, - { + pub const fn new() -> ICorProfilerFunctionControl_Vtbl { + unsafe extern "system" fn SetCodegenFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerFunctionControl_Impl::SetCodegenFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetILFunctionBody(this: *mut core::ffi::c_void, cbnewilmethodheader: u32, pbnewilmethodheader: *const u8) -> windows_core::HRESULT - where - Identity: ICorProfilerFunctionControl_Impl, - { + unsafe extern "system" fn SetILFunctionBody(this: *mut core::ffi::c_void, cbnewilmethodheader: u32, pbnewilmethodheader: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerFunctionControl_Impl::SetILFunctionBody(this, core::mem::transmute_copy(&cbnewilmethodheader), core::mem::transmute_copy(&pbnewilmethodheader)).into() } - unsafe extern "system" fn SetILInstrumentedCodeMap(this: *mut core::ffi::c_void, cilmapentries: u32, rgilmapentries: *const COR_IL_MAP) -> windows_core::HRESULT - where - Identity: ICorProfilerFunctionControl_Impl, - { + unsafe extern "system" fn SetILInstrumentedCodeMap(this: *mut core::ffi::c_void, cilmapentries: u32, rgilmapentries: *const COR_IL_MAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerFunctionControl_Impl::SetILInstrumentedCodeMap(this, core::mem::transmute_copy(&cilmapentries), core::mem::transmute_copy(&rgilmapentries)).into() } @@ -1112,7 +776,7 @@ impl ICorProfilerFunctionControl_Vtbl { iid == &::IID } } -pub trait ICorProfilerFunctionEnum_Impl: Sized { +pub trait ICorProfilerFunctionEnum_Impl: Sized + windows_core::IUnknownImpl { fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Clone(&self) -> windows_core::Result; @@ -1121,28 +785,16 @@ pub trait ICorProfilerFunctionEnum_Impl: Sized { } impl windows_core::RuntimeName for ICorProfilerFunctionEnum {} impl ICorProfilerFunctionEnum_Vtbl { - pub const fn new() -> ICorProfilerFunctionEnum_Vtbl - where - Identity: ICorProfilerFunctionEnum_Impl, - { - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerFunctionEnum_Impl, - { + pub const fn new() -> ICorProfilerFunctionEnum_Vtbl { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerFunctionEnum_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerFunctionEnum_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerFunctionEnum_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerFunctionEnum_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerFunctionEnum_Impl::Clone(this) { Ok(ok__) => { @@ -1152,10 +804,7 @@ impl ICorProfilerFunctionEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerFunctionEnum_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerFunctionEnum_Impl::GetCount(this) { Ok(ok__) => { @@ -1165,10 +814,7 @@ impl ICorProfilerFunctionEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ids: *mut COR_PRF_FUNCTION, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerFunctionEnum_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ids: *mut COR_PRF_FUNCTION, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerFunctionEnum_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&pceltfetched)).into() } @@ -1186,7 +832,7 @@ impl ICorProfilerFunctionEnum_Vtbl { } } #[cfg(feature = "Win32_System_WinRT_Metadata")] -pub trait ICorProfilerInfo_Impl: Sized { +pub trait ICorProfilerInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetClassFromObject(&self, objectid: usize) -> windows_core::Result; fn GetClassFromToken(&self, moduleid: usize, typedef: u32) -> windows_core::Result; fn GetCodeInfo(&self, functionid: usize, pstart: *mut *mut u8, pcsize: *mut u32) -> windows_core::Result<()>; @@ -1225,14 +871,8 @@ pub trait ICorProfilerInfo_Impl: Sized { impl windows_core::RuntimeName for ICorProfilerInfo {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo_Vtbl { - pub const fn new() -> ICorProfilerInfo_Vtbl - where - Identity: ICorProfilerInfo_Impl, - { - unsafe extern "system" fn GetClassFromObject(this: *mut core::ffi::c_void, objectid: usize, pclassid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + pub const fn new() -> ICorProfilerInfo_Vtbl { + unsafe extern "system" fn GetClassFromObject(this: *mut core::ffi::c_void, objectid: usize, pclassid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetClassFromObject(this, core::mem::transmute_copy(&objectid)) { Ok(ok__) => { @@ -1242,10 +882,7 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClassFromToken(this: *mut core::ffi::c_void, moduleid: usize, typedef: u32, pclassid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetClassFromToken(this: *mut core::ffi::c_void, moduleid: usize, typedef: u32, pclassid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetClassFromToken(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&typedef)) { Ok(ok__) => { @@ -1255,17 +892,11 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCodeInfo(this: *mut core::ffi::c_void, functionid: usize, pstart: *mut *mut u8, pcsize: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetCodeInfo(this: *mut core::ffi::c_void, functionid: usize, pstart: *mut *mut u8, pcsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::GetCodeInfo(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&pstart), core::mem::transmute_copy(&pcsize)).into() } - unsafe extern "system" fn GetEventMask(this: *mut core::ffi::c_void, pdwevents: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetEventMask(this: *mut core::ffi::c_void, pdwevents: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetEventMask(this) { Ok(ok__) => { @@ -1275,10 +906,7 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionFromIP(this: *mut core::ffi::c_void, ip: *const u8, pfunctionid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetFunctionFromIP(this: *mut core::ffi::c_void, ip: *const u8, pfunctionid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetFunctionFromIP(this, core::mem::transmute_copy(&ip)) { Ok(ok__) => { @@ -1288,10 +916,7 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionFromToken(this: *mut core::ffi::c_void, moduleid: usize, token: u32, pfunctionid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetFunctionFromToken(this: *mut core::ffi::c_void, moduleid: usize, token: u32, pfunctionid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetFunctionFromToken(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&token)) { Ok(ok__) => { @@ -1301,10 +926,7 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHandleFromThread(this: *mut core::ffi::c_void, threadid: usize, phthread: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetHandleFromThread(this: *mut core::ffi::c_void, threadid: usize, phthread: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetHandleFromThread(this, core::mem::transmute_copy(&threadid)) { Ok(ok__) => { @@ -1314,10 +936,7 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectSize(this: *mut core::ffi::c_void, objectid: usize, pcsize: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetObjectSize(this: *mut core::ffi::c_void, objectid: usize, pcsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetObjectSize(this, core::mem::transmute_copy(&objectid)) { Ok(ok__) => { @@ -1327,17 +946,11 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsArrayClass(this: *mut core::ffi::c_void, classid: usize, pbaseelemtype: *mut super::super::WinRT::Metadata::CorElementType, pbaseclassid: *mut usize, pcrank: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn IsArrayClass(this: *mut core::ffi::c_void, classid: usize, pbaseelemtype: *mut super::super::WinRT::Metadata::CorElementType, pbaseclassid: *mut usize, pcrank: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::IsArrayClass(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&pbaseelemtype), core::mem::transmute_copy(&pbaseclassid), core::mem::transmute_copy(&pcrank)).into() } - unsafe extern "system" fn GetThreadInfo(this: *mut core::ffi::c_void, threadid: usize, pdwwin32threadid: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetThreadInfo(this: *mut core::ffi::c_void, threadid: usize, pdwwin32threadid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetThreadInfo(this, core::mem::transmute_copy(&threadid)) { Ok(ok__) => { @@ -1347,10 +960,7 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadID(this: *mut core::ffi::c_void, pthreadid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetCurrentThreadID(this: *mut core::ffi::c_void, pthreadid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetCurrentThreadID(this) { Ok(ok__) => { @@ -1360,59 +970,35 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClassIDInfo(this: *mut core::ffi::c_void, classid: usize, pmoduleid: *mut usize, ptypedeftoken: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetClassIDInfo(this: *mut core::ffi::c_void, classid: usize, pmoduleid: *mut usize, ptypedeftoken: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::GetClassIDInfo(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&pmoduleid), core::mem::transmute_copy(&ptypedeftoken)).into() } - unsafe extern "system" fn GetFunctionInfo(this: *mut core::ffi::c_void, functionid: usize, pclassid: *mut usize, pmoduleid: *mut usize, ptoken: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetFunctionInfo(this: *mut core::ffi::c_void, functionid: usize, pclassid: *mut usize, pmoduleid: *mut usize, ptoken: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::GetFunctionInfo(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&pclassid), core::mem::transmute_copy(&pmoduleid), core::mem::transmute_copy(&ptoken)).into() } - unsafe extern "system" fn SetEventMask(this: *mut core::ffi::c_void, dwevents: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn SetEventMask(this: *mut core::ffi::c_void, dwevents: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::SetEventMask(this, core::mem::transmute_copy(&dwevents)).into() } - unsafe extern "system" fn SetEnterLeaveFunctionHooks(this: *mut core::ffi::c_void, pfuncenter: *const FunctionEnter, pfuncleave: *const FunctionLeave, pfunctailcall: *const FunctionTailcall) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn SetEnterLeaveFunctionHooks(this: *mut core::ffi::c_void, pfuncenter: *const FunctionEnter, pfuncleave: *const FunctionLeave, pfunctailcall: *const FunctionTailcall) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::SetEnterLeaveFunctionHooks(this, core::mem::transmute_copy(&pfuncenter), core::mem::transmute_copy(&pfuncleave), core::mem::transmute_copy(&pfunctailcall)).into() } - unsafe extern "system" fn SetFunctionIDMapper(this: *mut core::ffi::c_void, pfunc: *const FunctionIDMapper) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn SetFunctionIDMapper(this: *mut core::ffi::c_void, pfunc: *const FunctionIDMapper) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::SetFunctionIDMapper(this, core::mem::transmute_copy(&pfunc)).into() } - unsafe extern "system" fn GetTokenAndMetaDataFromFunction(this: *mut core::ffi::c_void, functionid: usize, riid: *const windows_core::GUID, ppimport: *mut *mut core::ffi::c_void, ptoken: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetTokenAndMetaDataFromFunction(this: *mut core::ffi::c_void, functionid: usize, riid: *const windows_core::GUID, ppimport: *mut *mut core::ffi::c_void, ptoken: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::GetTokenAndMetaDataFromFunction(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppimport), core::mem::transmute_copy(&ptoken)).into() } - unsafe extern "system" fn GetModuleInfo(this: *mut core::ffi::c_void, moduleid: usize, ppbaseloadaddress: *mut *mut u8, cchname: u32, pcchname: *mut u32, szname: windows_core::PWSTR, passemblyid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetModuleInfo(this: *mut core::ffi::c_void, moduleid: usize, ppbaseloadaddress: *mut *mut u8, cchname: u32, pcchname: *mut u32, szname: windows_core::PWSTR, passemblyid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::GetModuleInfo(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&ppbaseloadaddress), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pcchname), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&passemblyid)).into() } - unsafe extern "system" fn GetModuleMetaData(this: *mut core::ffi::c_void, moduleid: usize, dwopenflags: u32, riid: *const windows_core::GUID, ppout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetModuleMetaData(this: *mut core::ffi::c_void, moduleid: usize, dwopenflags: u32, riid: *const windows_core::GUID, ppout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetModuleMetaData(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&dwopenflags), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -1422,17 +1008,11 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetILFunctionBody(this: *mut core::ffi::c_void, moduleid: usize, methodid: u32, ppmethodheader: *mut *mut u8, pcbmethodsize: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetILFunctionBody(this: *mut core::ffi::c_void, moduleid: usize, methodid: u32, ppmethodheader: *mut *mut u8, pcbmethodsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::GetILFunctionBody(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&methodid), core::mem::transmute_copy(&ppmethodheader), core::mem::transmute_copy(&pcbmethodsize)).into() } - unsafe extern "system" fn GetILFunctionBodyAllocator(this: *mut core::ffi::c_void, moduleid: usize, ppmalloc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetILFunctionBodyAllocator(this: *mut core::ffi::c_void, moduleid: usize, ppmalloc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetILFunctionBodyAllocator(this, core::mem::transmute_copy(&moduleid)) { Ok(ok__) => { @@ -1442,52 +1022,31 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetILFunctionBody(this: *mut core::ffi::c_void, moduleid: usize, methodid: u32, pbnewilmethodheader: *const u8) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn SetILFunctionBody(this: *mut core::ffi::c_void, moduleid: usize, methodid: u32, pbnewilmethodheader: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::SetILFunctionBody(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&methodid), core::mem::transmute_copy(&pbnewilmethodheader)).into() } - unsafe extern "system" fn GetAppDomainInfo(this: *mut core::ffi::c_void, appdomainid: usize, cchname: u32, pcchname: *mut u32, szname: windows_core::PWSTR, pprocessid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetAppDomainInfo(this: *mut core::ffi::c_void, appdomainid: usize, cchname: u32, pcchname: *mut u32, szname: windows_core::PWSTR, pprocessid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::GetAppDomainInfo(this, core::mem::transmute_copy(&appdomainid), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pcchname), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&pprocessid)).into() } - unsafe extern "system" fn GetAssemblyInfo(this: *mut core::ffi::c_void, assemblyid: usize, cchname: u32, pcchname: *mut u32, szname: windows_core::PWSTR, pappdomainid: *mut usize, pmoduleid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetAssemblyInfo(this: *mut core::ffi::c_void, assemblyid: usize, cchname: u32, pcchname: *mut u32, szname: windows_core::PWSTR, pappdomainid: *mut usize, pmoduleid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::GetAssemblyInfo(this, core::mem::transmute_copy(&assemblyid), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pcchname), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&pappdomainid), core::mem::transmute_copy(&pmoduleid)).into() } - unsafe extern "system" fn SetFunctionReJIT(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn SetFunctionReJIT(this: *mut core::ffi::c_void, functionid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::SetFunctionReJIT(this, core::mem::transmute_copy(&functionid)).into() } - unsafe extern "system" fn ForceGC(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn ForceGC(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::ForceGC(this).into() } - unsafe extern "system" fn SetILInstrumentedCodeMap(this: *mut core::ffi::c_void, functionid: usize, fstartjit: super::super::super::Foundation::BOOL, cilmapentries: u32, rgilmapentries: *const COR_IL_MAP) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn SetILInstrumentedCodeMap(this: *mut core::ffi::c_void, functionid: usize, fstartjit: super::super::super::Foundation::BOOL, cilmapentries: u32, rgilmapentries: *const COR_IL_MAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::SetILInstrumentedCodeMap(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&fstartjit), core::mem::transmute_copy(&cilmapentries), core::mem::transmute_copy(&rgilmapentries)).into() } - unsafe extern "system" fn GetInprocInspectionInterface(this: *mut core::ffi::c_void, ppicd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetInprocInspectionInterface(this: *mut core::ffi::c_void, ppicd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetInprocInspectionInterface(this) { Ok(ok__) => { @@ -1497,10 +1056,7 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInprocInspectionIThisThread(this: *mut core::ffi::c_void, ppicd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetInprocInspectionIThisThread(this: *mut core::ffi::c_void, ppicd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetInprocInspectionIThisThread(this) { Ok(ok__) => { @@ -1510,10 +1066,7 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, threadid: usize, pcontextid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, threadid: usize, pcontextid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::GetThreadContext(this, core::mem::transmute_copy(&threadid)) { Ok(ok__) => { @@ -1523,10 +1076,7 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginInprocDebugging(this: *mut core::ffi::c_void, fthisthreadonly: super::super::super::Foundation::BOOL, pdwprofilercontext: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn BeginInprocDebugging(this: *mut core::ffi::c_void, fthisthreadonly: super::super::super::Foundation::BOOL, pdwprofilercontext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::BeginInprocDebugging(this, core::mem::transmute_copy(&fthisthreadonly)) { Ok(ok__) => { @@ -1536,17 +1086,11 @@ impl ICorProfilerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndInprocDebugging(this: *mut core::ffi::c_void, dwprofilercontext: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn EndInprocDebugging(this: *mut core::ffi::c_void, dwprofilercontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::EndInprocDebugging(this, core::mem::transmute_copy(&dwprofilercontext)).into() } - unsafe extern "system" fn GetILToNativeMapping(this: *mut core::ffi::c_void, functionid: usize, cmap: u32, pcmap: *mut u32, map: *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo_Impl, - { + unsafe extern "system" fn GetILToNativeMapping(this: *mut core::ffi::c_void, functionid: usize, cmap: u32, pcmap: *mut u32, map: *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::GetILToNativeMapping(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&cmap), core::mem::transmute_copy(&pcmap), core::mem::transmute_copy(&map)).into() } @@ -1604,49 +1148,28 @@ pub trait ICorProfilerInfo10_Impl: Sized + ICorProfilerInfo9_Impl { impl windows_core::RuntimeName for ICorProfilerInfo10 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo10_Vtbl { - pub const fn new() -> ICorProfilerInfo10_Vtbl - where - Identity: ICorProfilerInfo10_Impl, - { - unsafe extern "system" fn EnumerateObjectReferences(this: *mut core::ffi::c_void, objectid: usize, callback: ObjectReferenceCallback, clientdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo10_Impl, - { + pub const fn new() -> ICorProfilerInfo10_Vtbl { + unsafe extern "system" fn EnumerateObjectReferences(this: *mut core::ffi::c_void, objectid: usize, callback: ObjectReferenceCallback, clientdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo10_Impl::EnumerateObjectReferences(this, core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&callback), core::mem::transmute_copy(&clientdata)).into() } - unsafe extern "system" fn IsFrozenObject(this: *mut core::ffi::c_void, objectid: usize, pbfrozen: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo10_Impl, - { + unsafe extern "system" fn IsFrozenObject(this: *mut core::ffi::c_void, objectid: usize, pbfrozen: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo10_Impl::IsFrozenObject(this, core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&pbfrozen)).into() } - unsafe extern "system" fn GetLOHObjectSizeThreshold(this: *mut core::ffi::c_void, pthreshold: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo10_Impl, - { + unsafe extern "system" fn GetLOHObjectSizeThreshold(this: *mut core::ffi::c_void, pthreshold: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo10_Impl::GetLOHObjectSizeThreshold(this, core::mem::transmute_copy(&pthreshold)).into() } - unsafe extern "system" fn RequestReJITWithInliners(this: *mut core::ffi::c_void, dwrejitflags: u32, cfunctions: u32, moduleids: *const usize, methodids: *const u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo10_Impl, - { + unsafe extern "system" fn RequestReJITWithInliners(this: *mut core::ffi::c_void, dwrejitflags: u32, cfunctions: u32, moduleids: *const usize, methodids: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo10_Impl::RequestReJITWithInliners(this, core::mem::transmute_copy(&dwrejitflags), core::mem::transmute_copy(&cfunctions), core::mem::transmute_copy(&moduleids), core::mem::transmute_copy(&methodids)).into() } - unsafe extern "system" fn SuspendRuntime(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo10_Impl, - { + unsafe extern "system" fn SuspendRuntime(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo10_Impl::SuspendRuntime(this).into() } - unsafe extern "system" fn ResumeRuntime(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo10_Impl, - { + unsafe extern "system" fn ResumeRuntime(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo10_Impl::ResumeRuntime(this).into() } @@ -1673,21 +1196,12 @@ pub trait ICorProfilerInfo11_Impl: Sized + ICorProfilerInfo10_Impl { impl windows_core::RuntimeName for ICorProfilerInfo11 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo11_Vtbl { - pub const fn new() -> ICorProfilerInfo11_Vtbl - where - Identity: ICorProfilerInfo11_Impl, - { - unsafe extern "system" fn GetEnvironmentVariableA(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, cchvalue: u32, pcchvalue: *mut u32, szvalue: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo11_Impl, - { + pub const fn new() -> ICorProfilerInfo11_Vtbl { + unsafe extern "system" fn GetEnvironmentVariableA(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, cchvalue: u32, pcchvalue: *mut u32, szvalue: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo11_Impl::GetEnvironmentVariableA(this, core::mem::transmute(&szname), core::mem::transmute_copy(&cchvalue), core::mem::transmute_copy(&pcchvalue), core::mem::transmute_copy(&szvalue)).into() } - unsafe extern "system" fn SetEnvironmentVariable(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, szvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo11_Impl, - { + unsafe extern "system" fn SetEnvironmentVariable(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, szvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo11_Impl::SetEnvironmentVariable(this, core::mem::transmute(&szname), core::mem::transmute(&szvalue)).into() } @@ -1715,14 +1229,8 @@ pub trait ICorProfilerInfo12_Impl: Sized + ICorProfilerInfo11_Impl { impl windows_core::RuntimeName for ICorProfilerInfo12 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo12_Vtbl { - pub const fn new() -> ICorProfilerInfo12_Vtbl - where - Identity: ICorProfilerInfo12_Impl, - { - unsafe extern "system" fn EventPipeStartSession(this: *mut core::ffi::c_void, cproviderconfigs: u32, pproviderconfigs: *const COR_PRF_EVENTPIPE_PROVIDER_CONFIG, requestrundown: super::super::super::Foundation::BOOL, psession: *mut u64) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo12_Impl, - { + pub const fn new() -> ICorProfilerInfo12_Vtbl { + unsafe extern "system" fn EventPipeStartSession(this: *mut core::ffi::c_void, cproviderconfigs: u32, pproviderconfigs: *const COR_PRF_EVENTPIPE_PROVIDER_CONFIG, requestrundown: super::super::super::Foundation::BOOL, psession: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo12_Impl::EventPipeStartSession(this, core::mem::transmute_copy(&cproviderconfigs), core::mem::transmute_copy(&pproviderconfigs), core::mem::transmute_copy(&requestrundown)) { Ok(ok__) => { @@ -1732,24 +1240,15 @@ impl ICorProfilerInfo12_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventPipeAddProviderToSession(this: *mut core::ffi::c_void, session: u64, providerconfig: COR_PRF_EVENTPIPE_PROVIDER_CONFIG) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo12_Impl, - { + unsafe extern "system" fn EventPipeAddProviderToSession(this: *mut core::ffi::c_void, session: u64, providerconfig: COR_PRF_EVENTPIPE_PROVIDER_CONFIG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo12_Impl::EventPipeAddProviderToSession(this, core::mem::transmute_copy(&session), core::mem::transmute(&providerconfig)).into() } - unsafe extern "system" fn EventPipeStopSession(this: *mut core::ffi::c_void, session: u64) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo12_Impl, - { + unsafe extern "system" fn EventPipeStopSession(this: *mut core::ffi::c_void, session: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo12_Impl::EventPipeStopSession(this, core::mem::transmute_copy(&session)).into() } - unsafe extern "system" fn EventPipeCreateProvider(this: *mut core::ffi::c_void, providername: windows_core::PCWSTR, pprovider: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo12_Impl, - { + unsafe extern "system" fn EventPipeCreateProvider(this: *mut core::ffi::c_void, providername: windows_core::PCWSTR, pprovider: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo12_Impl::EventPipeCreateProvider(this, core::mem::transmute(&providername)) { Ok(ok__) => { @@ -1759,17 +1258,11 @@ impl ICorProfilerInfo12_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventPipeGetProviderInfo(this: *mut core::ffi::c_void, provider: usize, cchname: u32, pcchname: *mut u32, providername: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo12_Impl, - { + unsafe extern "system" fn EventPipeGetProviderInfo(this: *mut core::ffi::c_void, provider: usize, cchname: u32, pcchname: *mut u32, providername: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo12_Impl::EventPipeGetProviderInfo(this, core::mem::transmute_copy(&provider), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pcchname), core::mem::transmute_copy(&providername)).into() } - unsafe extern "system" fn EventPipeDefineEvent(this: *mut core::ffi::c_void, provider: usize, eventname: windows_core::PCWSTR, eventid: u32, keywords: u64, eventversion: u32, level: u32, opcode: u8, needstack: super::super::super::Foundation::BOOL, cparamdescs: u32, pparamdescs: *const COR_PRF_EVENTPIPE_PARAM_DESC, pevent: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo12_Impl, - { + unsafe extern "system" fn EventPipeDefineEvent(this: *mut core::ffi::c_void, provider: usize, eventname: windows_core::PCWSTR, eventid: u32, keywords: u64, eventversion: u32, level: u32, opcode: u8, needstack: super::super::super::Foundation::BOOL, cparamdescs: u32, pparamdescs: *const COR_PRF_EVENTPIPE_PARAM_DESC, pevent: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo12_Impl::EventPipeDefineEvent(this, core::mem::transmute_copy(&provider), core::mem::transmute(&eventname), core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&keywords), core::mem::transmute_copy(&eventversion), core::mem::transmute_copy(&level), core::mem::transmute_copy(&opcode), core::mem::transmute_copy(&needstack), core::mem::transmute_copy(&cparamdescs), core::mem::transmute_copy(&pparamdescs)) { Ok(ok__) => { @@ -1779,10 +1272,7 @@ impl ICorProfilerInfo12_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventPipeWriteEvent(this: *mut core::ffi::c_void, event: usize, cdata: u32, data: *const COR_PRF_EVENT_DATA, pactivityid: *const windows_core::GUID, prelatedactivityid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo12_Impl, - { + unsafe extern "system" fn EventPipeWriteEvent(this: *mut core::ffi::c_void, event: usize, cdata: u32, data: *const COR_PRF_EVENT_DATA, pactivityid: *const windows_core::GUID, prelatedactivityid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo12_Impl::EventPipeWriteEvent(this, core::mem::transmute_copy(&event), core::mem::transmute_copy(&cdata), core::mem::transmute_copy(&data), core::mem::transmute_copy(&pactivityid), core::mem::transmute_copy(&prelatedactivityid)).into() } @@ -1811,28 +1301,16 @@ pub trait ICorProfilerInfo13_Impl: Sized + ICorProfilerInfo12_Impl { impl windows_core::RuntimeName for ICorProfilerInfo13 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo13_Vtbl { - pub const fn new() -> ICorProfilerInfo13_Vtbl - where - Identity: ICorProfilerInfo13_Impl, - { - unsafe extern "system" fn CreateHandle(this: *mut core::ffi::c_void, object: usize, r#type: COR_PRF_HANDLE_TYPE, phandle: *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo13_Impl, - { + pub const fn new() -> ICorProfilerInfo13_Vtbl { + unsafe extern "system" fn CreateHandle(this: *mut core::ffi::c_void, object: usize, r#type: COR_PRF_HANDLE_TYPE, phandle: *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo13_Impl::CreateHandle(this, core::mem::transmute_copy(&object), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&phandle)).into() } - unsafe extern "system" fn DestroyHandle(this: *mut core::ffi::c_void, handle: *const *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo13_Impl, - { + unsafe extern "system" fn DestroyHandle(this: *mut core::ffi::c_void, handle: *const *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo13_Impl::DestroyHandle(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetObjectIDFromHandle(this: *mut core::ffi::c_void, handle: *const *const core::ffi::c_void, pobject: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo13_Impl, - { + unsafe extern "system" fn GetObjectIDFromHandle(this: *mut core::ffi::c_void, handle: *const *const core::ffi::c_void, pobject: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo13_Impl::GetObjectIDFromHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -1875,14 +1353,8 @@ pub trait ICorProfilerInfo14_Impl: Sized + ICorProfilerInfo13_Impl { impl windows_core::RuntimeName for ICorProfilerInfo14 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo14_Vtbl { - pub const fn new() -> ICorProfilerInfo14_Vtbl - where - Identity: ICorProfilerInfo14_Impl, - { - unsafe extern "system" fn EnumerateNonGCObjects(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo14_Impl, - { + pub const fn new() -> ICorProfilerInfo14_Vtbl { + unsafe extern "system" fn EnumerateNonGCObjects(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo14_Impl::EnumerateNonGCObjects(this) { Ok(ok__) => { @@ -1892,17 +1364,11 @@ impl ICorProfilerInfo14_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNonGCHeapBounds(this: *mut core::ffi::c_void, cobjectranges: u32, pcobjectranges: *mut u32, ranges: *mut COR_PRF_NONGC_HEAP_RANGE) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo14_Impl, - { + unsafe extern "system" fn GetNonGCHeapBounds(this: *mut core::ffi::c_void, cobjectranges: u32, pcobjectranges: *mut u32, ranges: *mut COR_PRF_NONGC_HEAP_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo14_Impl::GetNonGCHeapBounds(this, core::mem::transmute_copy(&cobjectranges), core::mem::transmute_copy(&pcobjectranges), core::mem::transmute_copy(&ranges)).into() } - unsafe extern "system" fn EventPipeCreateProvider2(this: *mut core::ffi::c_void, providername: windows_core::PCWSTR, pcallback: *const EventPipeProviderCallback, pprovider: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo14_Impl, - { + unsafe extern "system" fn EventPipeCreateProvider2(this: *mut core::ffi::c_void, providername: windows_core::PCWSTR, pcallback: *const EventPipeProviderCallback, pprovider: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo14_Impl::EventPipeCreateProvider2(this, core::mem::transmute(&providername), core::mem::transmute_copy(&pcallback)) { Ok(ok__) => { @@ -1964,63 +1430,36 @@ pub trait ICorProfilerInfo2_Impl: Sized + ICorProfilerInfo_Impl { impl windows_core::RuntimeName for ICorProfilerInfo2 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo2_Vtbl { - pub const fn new() -> ICorProfilerInfo2_Vtbl - where - Identity: ICorProfilerInfo2_Impl, - { - unsafe extern "system" fn DoStackSnapshot(this: *mut core::ffi::c_void, thread: usize, callback: *const StackSnapshotCallback, infoflags: u32, clientdata: *const core::ffi::c_void, context: *const u8, contextsize: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + pub const fn new() -> ICorProfilerInfo2_Vtbl { + unsafe extern "system" fn DoStackSnapshot(this: *mut core::ffi::c_void, thread: usize, callback: *const StackSnapshotCallback, infoflags: u32, clientdata: *const core::ffi::c_void, context: *const u8, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::DoStackSnapshot(this, core::mem::transmute_copy(&thread), core::mem::transmute_copy(&callback), core::mem::transmute_copy(&infoflags), core::mem::transmute_copy(&clientdata), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn SetEnterLeaveFunctionHooks2(this: *mut core::ffi::c_void, pfuncenter: *const FunctionEnter2, pfuncleave: *const FunctionLeave2, pfunctailcall: *const FunctionTailcall2) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn SetEnterLeaveFunctionHooks2(this: *mut core::ffi::c_void, pfuncenter: *const FunctionEnter2, pfuncleave: *const FunctionLeave2, pfunctailcall: *const FunctionTailcall2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::SetEnterLeaveFunctionHooks2(this, core::mem::transmute_copy(&pfuncenter), core::mem::transmute_copy(&pfuncleave), core::mem::transmute_copy(&pfunctailcall)).into() } - unsafe extern "system" fn GetFunctionInfo2(this: *mut core::ffi::c_void, funcid: usize, frameinfo: usize, pclassid: *mut usize, pmoduleid: *mut usize, ptoken: *mut u32, ctypeargs: u32, pctypeargs: *mut u32, typeargs: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetFunctionInfo2(this: *mut core::ffi::c_void, funcid: usize, frameinfo: usize, pclassid: *mut usize, pmoduleid: *mut usize, ptoken: *mut u32, ctypeargs: u32, pctypeargs: *mut u32, typeargs: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetFunctionInfo2(this, core::mem::transmute_copy(&funcid), core::mem::transmute_copy(&frameinfo), core::mem::transmute_copy(&pclassid), core::mem::transmute_copy(&pmoduleid), core::mem::transmute_copy(&ptoken), core::mem::transmute_copy(&ctypeargs), core::mem::transmute_copy(&pctypeargs), core::mem::transmute_copy(&typeargs)).into() } - unsafe extern "system" fn GetStringLayout(this: *mut core::ffi::c_void, pbufferlengthoffset: *mut u32, pstringlengthoffset: *mut u32, pbufferoffset: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetStringLayout(this: *mut core::ffi::c_void, pbufferlengthoffset: *mut u32, pstringlengthoffset: *mut u32, pbufferoffset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetStringLayout(this, core::mem::transmute_copy(&pbufferlengthoffset), core::mem::transmute_copy(&pstringlengthoffset), core::mem::transmute_copy(&pbufferoffset)).into() } - unsafe extern "system" fn GetClassLayout(this: *mut core::ffi::c_void, classid: usize, rfieldoffset: *mut super::super::WinRT::Metadata::COR_FIELD_OFFSET, cfieldoffset: u32, pcfieldoffset: *mut u32, pulclasssize: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetClassLayout(this: *mut core::ffi::c_void, classid: usize, rfieldoffset: *mut super::super::WinRT::Metadata::COR_FIELD_OFFSET, cfieldoffset: u32, pcfieldoffset: *mut u32, pulclasssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetClassLayout(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&rfieldoffset), core::mem::transmute_copy(&cfieldoffset), core::mem::transmute_copy(&pcfieldoffset), core::mem::transmute_copy(&pulclasssize)).into() } - unsafe extern "system" fn GetClassIDInfo2(this: *mut core::ffi::c_void, classid: usize, pmoduleid: *mut usize, ptypedeftoken: *mut u32, pparentclassid: *mut usize, cnumtypeargs: u32, pcnumtypeargs: *mut u32, typeargs: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetClassIDInfo2(this: *mut core::ffi::c_void, classid: usize, pmoduleid: *mut usize, ptypedeftoken: *mut u32, pparentclassid: *mut usize, cnumtypeargs: u32, pcnumtypeargs: *mut u32, typeargs: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetClassIDInfo2(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&pmoduleid), core::mem::transmute_copy(&ptypedeftoken), core::mem::transmute_copy(&pparentclassid), core::mem::transmute_copy(&cnumtypeargs), core::mem::transmute_copy(&pcnumtypeargs), core::mem::transmute_copy(&typeargs)).into() } - unsafe extern "system" fn GetCodeInfo2(this: *mut core::ffi::c_void, functionid: usize, ccodeinfos: u32, pccodeinfos: *mut u32, codeinfos: *mut COR_PRF_CODE_INFO) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetCodeInfo2(this: *mut core::ffi::c_void, functionid: usize, ccodeinfos: u32, pccodeinfos: *mut u32, codeinfos: *mut COR_PRF_CODE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetCodeInfo2(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&ccodeinfos), core::mem::transmute_copy(&pccodeinfos), core::mem::transmute_copy(&codeinfos)).into() } - unsafe extern "system" fn GetClassFromTokenAndTypeArgs(this: *mut core::ffi::c_void, moduleid: usize, typedef: u32, ctypeargs: u32, typeargs: *const usize, pclassid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetClassFromTokenAndTypeArgs(this: *mut core::ffi::c_void, moduleid: usize, typedef: u32, ctypeargs: u32, typeargs: *const usize, pclassid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo2_Impl::GetClassFromTokenAndTypeArgs(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&typedef), core::mem::transmute_copy(&ctypeargs), core::mem::transmute_copy(&typeargs)) { Ok(ok__) => { @@ -2030,10 +1469,7 @@ impl ICorProfilerInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionFromTokenAndTypeArgs(this: *mut core::ffi::c_void, moduleid: usize, funcdef: u32, classid: usize, ctypeargs: u32, typeargs: *const usize, pfunctionid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetFunctionFromTokenAndTypeArgs(this: *mut core::ffi::c_void, moduleid: usize, funcdef: u32, classid: usize, ctypeargs: u32, typeargs: *const usize, pfunctionid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo2_Impl::GetFunctionFromTokenAndTypeArgs(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&funcdef), core::mem::transmute_copy(&classid), core::mem::transmute_copy(&ctypeargs), core::mem::transmute_copy(&typeargs)) { Ok(ok__) => { @@ -2043,10 +1479,7 @@ impl ICorProfilerInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumModuleFrozenObjects(this: *mut core::ffi::c_void, moduleid: usize, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn EnumModuleFrozenObjects(this: *mut core::ffi::c_void, moduleid: usize, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo2_Impl::EnumModuleFrozenObjects(this, core::mem::transmute_copy(&moduleid)) { Ok(ok__) => { @@ -2056,17 +1489,11 @@ impl ICorProfilerInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetArrayObjectInfo(this: *mut core::ffi::c_void, objectid: usize, cdimensions: u32, pdimensionsizes: *mut u32, pdimensionlowerbounds: *mut i32, ppdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetArrayObjectInfo(this: *mut core::ffi::c_void, objectid: usize, cdimensions: u32, pdimensionsizes: *mut u32, pdimensionlowerbounds: *mut i32, ppdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetArrayObjectInfo(this, core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&cdimensions), core::mem::transmute_copy(&pdimensionsizes), core::mem::transmute_copy(&pdimensionlowerbounds), core::mem::transmute_copy(&ppdata)).into() } - unsafe extern "system" fn GetBoxClassLayout(this: *mut core::ffi::c_void, classid: usize, pbufferoffset: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetBoxClassLayout(this: *mut core::ffi::c_void, classid: usize, pbufferoffset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo2_Impl::GetBoxClassLayout(this, core::mem::transmute_copy(&classid)) { Ok(ok__) => { @@ -2076,10 +1503,7 @@ impl ICorProfilerInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadAppDomain(this: *mut core::ffi::c_void, threadid: usize, pappdomainid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetThreadAppDomain(this: *mut core::ffi::c_void, threadid: usize, pappdomainid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo2_Impl::GetThreadAppDomain(this, core::mem::transmute_copy(&threadid)) { Ok(ok__) => { @@ -2089,38 +1513,23 @@ impl ICorProfilerInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRVAStaticAddress(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetRVAStaticAddress(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetRVAStaticAddress(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&fieldtoken), core::mem::transmute_copy(&ppaddress)).into() } - unsafe extern "system" fn GetAppDomainStaticAddress(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, appdomainid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetAppDomainStaticAddress(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, appdomainid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetAppDomainStaticAddress(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&fieldtoken), core::mem::transmute_copy(&appdomainid), core::mem::transmute_copy(&ppaddress)).into() } - unsafe extern "system" fn GetThreadStaticAddress(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, threadid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetThreadStaticAddress(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, threadid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetThreadStaticAddress(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&fieldtoken), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&ppaddress)).into() } - unsafe extern "system" fn GetContextStaticAddress(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, contextid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetContextStaticAddress(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, contextid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetContextStaticAddress(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&fieldtoken), core::mem::transmute_copy(&contextid), core::mem::transmute_copy(&ppaddress)).into() } - unsafe extern "system" fn GetStaticFieldInfo(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, pfieldinfo: *mut COR_PRF_STATIC_TYPE) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetStaticFieldInfo(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, pfieldinfo: *mut COR_PRF_STATIC_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo2_Impl::GetStaticFieldInfo(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&fieldtoken)) { Ok(ok__) => { @@ -2130,17 +1539,11 @@ impl ICorProfilerInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGenerationBounds(this: *mut core::ffi::c_void, cobjectranges: u32, pcobjectranges: *mut u32, ranges: *mut COR_PRF_GC_GENERATION_RANGE) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetGenerationBounds(this: *mut core::ffi::c_void, cobjectranges: u32, pcobjectranges: *mut u32, ranges: *mut COR_PRF_GC_GENERATION_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo2_Impl::GetGenerationBounds(this, core::mem::transmute_copy(&cobjectranges), core::mem::transmute_copy(&pcobjectranges), core::mem::transmute_copy(&ranges)).into() } - unsafe extern "system" fn GetObjectGeneration(this: *mut core::ffi::c_void, objectid: usize, range: *mut COR_PRF_GC_GENERATION_RANGE) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetObjectGeneration(this: *mut core::ffi::c_void, objectid: usize, range: *mut COR_PRF_GC_GENERATION_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo2_Impl::GetObjectGeneration(this, core::mem::transmute_copy(&objectid)) { Ok(ok__) => { @@ -2150,10 +1553,7 @@ impl ICorProfilerInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNotifiedExceptionClauseInfo(this: *mut core::ffi::c_void, pinfo: *mut COR_PRF_EX_CLAUSE_INFO) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo2_Impl, - { + unsafe extern "system" fn GetNotifiedExceptionClauseInfo(this: *mut core::ffi::c_void, pinfo: *mut COR_PRF_EX_CLAUSE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo2_Impl::GetNotifiedExceptionClauseInfo(this) { Ok(ok__) => { @@ -2213,14 +1613,8 @@ pub trait ICorProfilerInfo3_Impl: Sized + ICorProfilerInfo2_Impl { impl windows_core::RuntimeName for ICorProfilerInfo3 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo3_Vtbl { - pub const fn new() -> ICorProfilerInfo3_Vtbl - where - Identity: ICorProfilerInfo3_Impl, - { - unsafe extern "system" fn EnumJITedFunctions(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + pub const fn new() -> ICorProfilerInfo3_Vtbl { + unsafe extern "system" fn EnumJITedFunctions(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo3_Impl::EnumJITedFunctions(this) { Ok(ok__) => { @@ -2230,59 +1624,35 @@ impl ICorProfilerInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestProfilerDetach(this: *mut core::ffi::c_void, dwexpectedcompletionmilliseconds: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn RequestProfilerDetach(this: *mut core::ffi::c_void, dwexpectedcompletionmilliseconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::RequestProfilerDetach(this, core::mem::transmute_copy(&dwexpectedcompletionmilliseconds)).into() } - unsafe extern "system" fn SetFunctionIDMapper2(this: *mut core::ffi::c_void, pfunc: *const FunctionIDMapper2, clientdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn SetFunctionIDMapper2(this: *mut core::ffi::c_void, pfunc: *const FunctionIDMapper2, clientdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::SetFunctionIDMapper2(this, core::mem::transmute_copy(&pfunc), core::mem::transmute_copy(&clientdata)).into() } - unsafe extern "system" fn GetStringLayout2(this: *mut core::ffi::c_void, pstringlengthoffset: *mut u32, pbufferoffset: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn GetStringLayout2(this: *mut core::ffi::c_void, pstringlengthoffset: *mut u32, pbufferoffset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::GetStringLayout2(this, core::mem::transmute_copy(&pstringlengthoffset), core::mem::transmute_copy(&pbufferoffset)).into() } - unsafe extern "system" fn SetEnterLeaveFunctionHooks3(this: *mut core::ffi::c_void, pfuncenter3: *const FunctionEnter3, pfuncleave3: *const FunctionLeave3, pfunctailcall3: *const FunctionTailcall3) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn SetEnterLeaveFunctionHooks3(this: *mut core::ffi::c_void, pfuncenter3: *const FunctionEnter3, pfuncleave3: *const FunctionLeave3, pfunctailcall3: *const FunctionTailcall3) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::SetEnterLeaveFunctionHooks3(this, core::mem::transmute_copy(&pfuncenter3), core::mem::transmute_copy(&pfuncleave3), core::mem::transmute_copy(&pfunctailcall3)).into() } - unsafe extern "system" fn SetEnterLeaveFunctionHooks3WithInfo(this: *mut core::ffi::c_void, pfuncenter3withinfo: *const FunctionEnter3WithInfo, pfuncleave3withinfo: *const FunctionLeave3WithInfo, pfunctailcall3withinfo: *const FunctionTailcall3WithInfo) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn SetEnterLeaveFunctionHooks3WithInfo(this: *mut core::ffi::c_void, pfuncenter3withinfo: *const FunctionEnter3WithInfo, pfuncleave3withinfo: *const FunctionLeave3WithInfo, pfunctailcall3withinfo: *const FunctionTailcall3WithInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::SetEnterLeaveFunctionHooks3WithInfo(this, core::mem::transmute_copy(&pfuncenter3withinfo), core::mem::transmute_copy(&pfuncleave3withinfo), core::mem::transmute_copy(&pfunctailcall3withinfo)).into() } - unsafe extern "system" fn GetFunctionEnter3Info(this: *mut core::ffi::c_void, functionid: usize, eltinfo: usize, pframeinfo: *mut usize, pcbargumentinfo: *mut u32, pargumentinfo: *mut COR_PRF_FUNCTION_ARGUMENT_INFO) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn GetFunctionEnter3Info(this: *mut core::ffi::c_void, functionid: usize, eltinfo: usize, pframeinfo: *mut usize, pcbargumentinfo: *mut u32, pargumentinfo: *mut COR_PRF_FUNCTION_ARGUMENT_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::GetFunctionEnter3Info(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&eltinfo), core::mem::transmute_copy(&pframeinfo), core::mem::transmute_copy(&pcbargumentinfo), core::mem::transmute_copy(&pargumentinfo)).into() } - unsafe extern "system" fn GetFunctionLeave3Info(this: *mut core::ffi::c_void, functionid: usize, eltinfo: usize, pframeinfo: *mut usize, pretvalrange: *mut COR_PRF_FUNCTION_ARGUMENT_RANGE) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn GetFunctionLeave3Info(this: *mut core::ffi::c_void, functionid: usize, eltinfo: usize, pframeinfo: *mut usize, pretvalrange: *mut COR_PRF_FUNCTION_ARGUMENT_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::GetFunctionLeave3Info(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&eltinfo), core::mem::transmute_copy(&pframeinfo), core::mem::transmute_copy(&pretvalrange)).into() } - unsafe extern "system" fn GetFunctionTailcall3Info(this: *mut core::ffi::c_void, functionid: usize, eltinfo: usize, pframeinfo: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn GetFunctionTailcall3Info(this: *mut core::ffi::c_void, functionid: usize, eltinfo: usize, pframeinfo: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo3_Impl::GetFunctionTailcall3Info(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&eltinfo)) { Ok(ok__) => { @@ -2292,10 +1662,7 @@ impl ICorProfilerInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumModules(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn EnumModules(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo3_Impl::EnumModules(this) { Ok(ok__) => { @@ -2305,31 +1672,19 @@ impl ICorProfilerInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRuntimeInformation(this: *mut core::ffi::c_void, pclrinstanceid: *mut u16, pruntimetype: *mut COR_PRF_RUNTIME_TYPE, pmajorversion: *mut u16, pminorversion: *mut u16, pbuildnumber: *mut u16, pqfeversion: *mut u16, cchversionstring: u32, pcchversionstring: *mut u32, szversionstring: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn GetRuntimeInformation(this: *mut core::ffi::c_void, pclrinstanceid: *mut u16, pruntimetype: *mut COR_PRF_RUNTIME_TYPE, pmajorversion: *mut u16, pminorversion: *mut u16, pbuildnumber: *mut u16, pqfeversion: *mut u16, cchversionstring: u32, pcchversionstring: *mut u32, szversionstring: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::GetRuntimeInformation(this, core::mem::transmute_copy(&pclrinstanceid), core::mem::transmute_copy(&pruntimetype), core::mem::transmute_copy(&pmajorversion), core::mem::transmute_copy(&pminorversion), core::mem::transmute_copy(&pbuildnumber), core::mem::transmute_copy(&pqfeversion), core::mem::transmute_copy(&cchversionstring), core::mem::transmute_copy(&pcchversionstring), core::mem::transmute_copy(&szversionstring)).into() } - unsafe extern "system" fn GetThreadStaticAddress2(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, appdomainid: usize, threadid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn GetThreadStaticAddress2(this: *mut core::ffi::c_void, classid: usize, fieldtoken: u32, appdomainid: usize, threadid: usize, ppaddress: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::GetThreadStaticAddress2(this, core::mem::transmute_copy(&classid), core::mem::transmute_copy(&fieldtoken), core::mem::transmute_copy(&appdomainid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&ppaddress)).into() } - unsafe extern "system" fn GetAppDomainsContainingModule(this: *mut core::ffi::c_void, moduleid: usize, cappdomainids: u32, pcappdomainids: *mut u32, appdomainids: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn GetAppDomainsContainingModule(this: *mut core::ffi::c_void, moduleid: usize, cappdomainids: u32, pcappdomainids: *mut u32, appdomainids: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::GetAppDomainsContainingModule(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&cappdomainids), core::mem::transmute_copy(&pcappdomainids), core::mem::transmute_copy(&appdomainids)).into() } - unsafe extern "system" fn GetModuleInfo2(this: *mut core::ffi::c_void, moduleid: usize, ppbaseloadaddress: *mut *mut u8, cchname: u32, pcchname: *mut u32, szname: windows_core::PWSTR, passemblyid: *mut usize, pdwmoduleflags: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo3_Impl, - { + unsafe extern "system" fn GetModuleInfo2(this: *mut core::ffi::c_void, moduleid: usize, ppbaseloadaddress: *mut *mut u8, cchname: u32, pcchname: *mut u32, szname: windows_core::PWSTR, passemblyid: *mut usize, pdwmoduleflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo3_Impl::GetModuleInfo2(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&ppbaseloadaddress), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pcchname), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&passemblyid), core::mem::transmute_copy(&pdwmoduleflags)).into() } @@ -2372,14 +1727,8 @@ pub trait ICorProfilerInfo4_Impl: Sized + ICorProfilerInfo3_Impl { impl windows_core::RuntimeName for ICorProfilerInfo4 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo4_Vtbl { - pub const fn new() -> ICorProfilerInfo4_Vtbl - where - Identity: ICorProfilerInfo4_Impl, - { - unsafe extern "system" fn EnumThreads(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo4_Impl, - { + pub const fn new() -> ICorProfilerInfo4_Vtbl { + unsafe extern "system" fn EnumThreads(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo4_Impl::EnumThreads(this) { Ok(ok__) => { @@ -2389,59 +1738,35 @@ impl ICorProfilerInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeCurrentThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo4_Impl, - { + unsafe extern "system" fn InitializeCurrentThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo4_Impl::InitializeCurrentThread(this).into() } - unsafe extern "system" fn RequestReJIT(this: *mut core::ffi::c_void, cfunctions: u32, moduleids: *const usize, methodids: *const u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo4_Impl, - { + unsafe extern "system" fn RequestReJIT(this: *mut core::ffi::c_void, cfunctions: u32, moduleids: *const usize, methodids: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo4_Impl::RequestReJIT(this, core::mem::transmute_copy(&cfunctions), core::mem::transmute_copy(&moduleids), core::mem::transmute_copy(&methodids)).into() } - unsafe extern "system" fn RequestRevert(this: *mut core::ffi::c_void, cfunctions: u32, moduleids: *const usize, methodids: *const u32, status: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo4_Impl, - { + unsafe extern "system" fn RequestRevert(this: *mut core::ffi::c_void, cfunctions: u32, moduleids: *const usize, methodids: *const u32, status: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo4_Impl::RequestRevert(this, core::mem::transmute_copy(&cfunctions), core::mem::transmute_copy(&moduleids), core::mem::transmute_copy(&methodids), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetCodeInfo3(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, ccodeinfos: u32, pccodeinfos: *mut u32, codeinfos: *mut COR_PRF_CODE_INFO) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo4_Impl, - { + unsafe extern "system" fn GetCodeInfo3(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, ccodeinfos: u32, pccodeinfos: *mut u32, codeinfos: *mut COR_PRF_CODE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo4_Impl::GetCodeInfo3(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&rejitid), core::mem::transmute_copy(&ccodeinfos), core::mem::transmute_copy(&pccodeinfos), core::mem::transmute_copy(&codeinfos)).into() } - unsafe extern "system" fn GetFunctionFromIP2(this: *mut core::ffi::c_void, ip: *const u8, pfunctionid: *mut usize, prejitid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo4_Impl, - { + unsafe extern "system" fn GetFunctionFromIP2(this: *mut core::ffi::c_void, ip: *const u8, pfunctionid: *mut usize, prejitid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo4_Impl::GetFunctionFromIP2(this, core::mem::transmute_copy(&ip), core::mem::transmute_copy(&pfunctionid), core::mem::transmute_copy(&prejitid)).into() } - unsafe extern "system" fn GetReJITIDs(this: *mut core::ffi::c_void, functionid: usize, crejitids: u32, pcrejitids: *mut u32, rejitids: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo4_Impl, - { + unsafe extern "system" fn GetReJITIDs(this: *mut core::ffi::c_void, functionid: usize, crejitids: u32, pcrejitids: *mut u32, rejitids: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo4_Impl::GetReJITIDs(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&crejitids), core::mem::transmute_copy(&pcrejitids), core::mem::transmute_copy(&rejitids)).into() } - unsafe extern "system" fn GetILToNativeMapping2(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, cmap: u32, pcmap: *mut u32, map: *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo4_Impl, - { + unsafe extern "system" fn GetILToNativeMapping2(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, cmap: u32, pcmap: *mut u32, map: *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo4_Impl::GetILToNativeMapping2(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&rejitid), core::mem::transmute_copy(&cmap), core::mem::transmute_copy(&pcmap), core::mem::transmute_copy(&map)).into() } - unsafe extern "system" fn EnumJITedFunctions2(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo4_Impl, - { + unsafe extern "system" fn EnumJITedFunctions2(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo4_Impl::EnumJITedFunctions2(this) { Ok(ok__) => { @@ -2451,10 +1776,7 @@ impl ICorProfilerInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectSize2(this: *mut core::ffi::c_void, objectid: usize, pcsize: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo4_Impl, - { + unsafe extern "system" fn GetObjectSize2(this: *mut core::ffi::c_void, objectid: usize, pcsize: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo4_Impl::GetObjectSize2(this, core::mem::transmute_copy(&objectid)) { Ok(ok__) => { @@ -2491,21 +1813,12 @@ pub trait ICorProfilerInfo5_Impl: Sized + ICorProfilerInfo4_Impl { impl windows_core::RuntimeName for ICorProfilerInfo5 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo5_Vtbl { - pub const fn new() -> ICorProfilerInfo5_Vtbl - where - Identity: ICorProfilerInfo5_Impl, - { - unsafe extern "system" fn GetEventMask2(this: *mut core::ffi::c_void, pdweventslow: *mut u32, pdweventshigh: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo5_Impl, - { + pub const fn new() -> ICorProfilerInfo5_Vtbl { + unsafe extern "system" fn GetEventMask2(this: *mut core::ffi::c_void, pdweventslow: *mut u32, pdweventshigh: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo5_Impl::GetEventMask2(this, core::mem::transmute_copy(&pdweventslow), core::mem::transmute_copy(&pdweventshigh)).into() } - unsafe extern "system" fn SetEventMask2(this: *mut core::ffi::c_void, dweventslow: u32, dweventshigh: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo5_Impl, - { + unsafe extern "system" fn SetEventMask2(this: *mut core::ffi::c_void, dweventslow: u32, dweventshigh: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo5_Impl::SetEventMask2(this, core::mem::transmute_copy(&dweventslow), core::mem::transmute_copy(&dweventshigh)).into() } @@ -2527,14 +1840,8 @@ pub trait ICorProfilerInfo6_Impl: Sized + ICorProfilerInfo5_Impl { impl windows_core::RuntimeName for ICorProfilerInfo6 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo6_Vtbl { - pub const fn new() -> ICorProfilerInfo6_Vtbl - where - Identity: ICorProfilerInfo6_Impl, - { - unsafe extern "system" fn EnumNgenModuleMethodsInliningThisMethod(this: *mut core::ffi::c_void, inlinersmoduleid: usize, inlineemoduleid: usize, inlineemethodid: u32, incompletedata: *mut super::super::super::Foundation::BOOL, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo6_Impl, - { + pub const fn new() -> ICorProfilerInfo6_Vtbl { + unsafe extern "system" fn EnumNgenModuleMethodsInliningThisMethod(this: *mut core::ffi::c_void, inlinersmoduleid: usize, inlineemoduleid: usize, inlineemethodid: u32, incompletedata: *mut super::super::super::Foundation::BOOL, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo6_Impl::EnumNgenModuleMethodsInliningThisMethod(this, core::mem::transmute_copy(&inlinersmoduleid), core::mem::transmute_copy(&inlineemoduleid), core::mem::transmute_copy(&inlineemethodid), core::mem::transmute_copy(&incompletedata), core::mem::transmute_copy(&ppenum)).into() } @@ -2557,21 +1864,12 @@ pub trait ICorProfilerInfo7_Impl: Sized + ICorProfilerInfo6_Impl { impl windows_core::RuntimeName for ICorProfilerInfo7 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo7_Vtbl { - pub const fn new() -> ICorProfilerInfo7_Vtbl - where - Identity: ICorProfilerInfo7_Impl, - { - unsafe extern "system" fn ApplyMetaData(this: *mut core::ffi::c_void, moduleid: usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo7_Impl, - { + pub const fn new() -> ICorProfilerInfo7_Vtbl { + unsafe extern "system" fn ApplyMetaData(this: *mut core::ffi::c_void, moduleid: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo7_Impl::ApplyMetaData(this, core::mem::transmute_copy(&moduleid)).into() } - unsafe extern "system" fn GetInMemorySymbolsLength(this: *mut core::ffi::c_void, moduleid: usize, pcountsymbolbytes: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo7_Impl, - { + unsafe extern "system" fn GetInMemorySymbolsLength(this: *mut core::ffi::c_void, moduleid: usize, pcountsymbolbytes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo7_Impl::GetInMemorySymbolsLength(this, core::mem::transmute_copy(&moduleid)) { Ok(ok__) => { @@ -2581,10 +1879,7 @@ impl ICorProfilerInfo7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadInMemorySymbols(this: *mut core::ffi::c_void, moduleid: usize, symbolsreadoffset: u32, psymbolbytes: *mut u8, countsymbolbytes: u32, pcountsymbolbytesread: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo7_Impl, - { + unsafe extern "system" fn ReadInMemorySymbols(this: *mut core::ffi::c_void, moduleid: usize, symbolsreadoffset: u32, psymbolbytes: *mut u8, countsymbolbytes: u32, pcountsymbolbytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo7_Impl::ReadInMemorySymbols(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&symbolsreadoffset), core::mem::transmute_copy(&psymbolbytes), core::mem::transmute_copy(&countsymbolbytes), core::mem::transmute_copy(&pcountsymbolbytesread)).into() } @@ -2609,14 +1904,8 @@ pub trait ICorProfilerInfo8_Impl: Sized + ICorProfilerInfo7_Impl { impl windows_core::RuntimeName for ICorProfilerInfo8 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo8_Vtbl { - pub const fn new() -> ICorProfilerInfo8_Vtbl - where - Identity: ICorProfilerInfo8_Impl, - { - unsafe extern "system" fn IsFunctionDynamic(this: *mut core::ffi::c_void, functionid: usize, isdynamic: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo8_Impl, - { + pub const fn new() -> ICorProfilerInfo8_Vtbl { + unsafe extern "system" fn IsFunctionDynamic(this: *mut core::ffi::c_void, functionid: usize, isdynamic: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo8_Impl::IsFunctionDynamic(this, core::mem::transmute_copy(&functionid)) { Ok(ok__) => { @@ -2626,17 +1915,11 @@ impl ICorProfilerInfo8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionFromIP3(this: *mut core::ffi::c_void, ip: *const u8, functionid: *mut usize, prejitid: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo8_Impl, - { + unsafe extern "system" fn GetFunctionFromIP3(this: *mut core::ffi::c_void, ip: *const u8, functionid: *mut usize, prejitid: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo8_Impl::GetFunctionFromIP3(this, core::mem::transmute_copy(&ip), core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&prejitid)).into() } - unsafe extern "system" fn GetDynamicFunctionInfo(this: *mut core::ffi::c_void, functionid: usize, moduleid: *mut usize, ppvsig: *mut *mut u8, pbsig: *mut u32, cchname: u32, pcchname: *mut u32, wszname: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo8_Impl, - { + unsafe extern "system" fn GetDynamicFunctionInfo(this: *mut core::ffi::c_void, functionid: usize, moduleid: *mut usize, ppvsig: *mut *mut u8, pbsig: *mut u32, cchname: u32, pcchname: *mut u32, wszname: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo8_Impl::GetDynamicFunctionInfo(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&ppvsig), core::mem::transmute_copy(&pbsig), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pcchname), core::mem::transmute_copy(&wszname)).into() } @@ -2661,28 +1944,16 @@ pub trait ICorProfilerInfo9_Impl: Sized + ICorProfilerInfo8_Impl { impl windows_core::RuntimeName for ICorProfilerInfo9 {} #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo9_Vtbl { - pub const fn new() -> ICorProfilerInfo9_Vtbl - where - Identity: ICorProfilerInfo9_Impl, - { - unsafe extern "system" fn GetNativeCodeStartAddresses(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, ccodestartaddresses: u32, pccodestartaddresses: *mut u32, codestartaddresses: *mut usize) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo9_Impl, - { + pub const fn new() -> ICorProfilerInfo9_Vtbl { + unsafe extern "system" fn GetNativeCodeStartAddresses(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, ccodestartaddresses: u32, pccodestartaddresses: *mut u32, codestartaddresses: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo9_Impl::GetNativeCodeStartAddresses(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&rejitid), core::mem::transmute_copy(&ccodestartaddresses), core::mem::transmute_copy(&pccodestartaddresses), core::mem::transmute_copy(&codestartaddresses)).into() } - unsafe extern "system" fn GetILToNativeMapping3(this: *mut core::ffi::c_void, pnativecodestartaddress: usize, cmap: u32, pcmap: *mut u32, map: *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo9_Impl, - { + unsafe extern "system" fn GetILToNativeMapping3(this: *mut core::ffi::c_void, pnativecodestartaddress: usize, cmap: u32, pcmap: *mut u32, map: *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo9_Impl::GetILToNativeMapping3(this, core::mem::transmute_copy(&pnativecodestartaddress), core::mem::transmute_copy(&cmap), core::mem::transmute_copy(&pcmap), core::mem::transmute_copy(&map)).into() } - unsafe extern "system" fn GetCodeInfo4(this: *mut core::ffi::c_void, pnativecodestartaddress: usize, ccodeinfos: u32, pccodeinfos: *mut u32, codeinfos: *mut COR_PRF_CODE_INFO) -> windows_core::HRESULT - where - Identity: ICorProfilerInfo9_Impl, - { + unsafe extern "system" fn GetCodeInfo4(this: *mut core::ffi::c_void, pnativecodestartaddress: usize, ccodeinfos: u32, pccodeinfos: *mut u32, codeinfos: *mut COR_PRF_CODE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo9_Impl::GetCodeInfo4(this, core::mem::transmute_copy(&pnativecodestartaddress), core::mem::transmute_copy(&ccodeinfos), core::mem::transmute_copy(&pccodeinfos), core::mem::transmute_copy(&codeinfos)).into() } @@ -2697,7 +1968,7 @@ impl ICorProfilerInfo9_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ICorProfilerMethodEnum_Impl: Sized { +pub trait ICorProfilerMethodEnum_Impl: Sized + windows_core::IUnknownImpl { fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Clone(&self) -> windows_core::Result; @@ -2706,28 +1977,16 @@ pub trait ICorProfilerMethodEnum_Impl: Sized { } impl windows_core::RuntimeName for ICorProfilerMethodEnum {} impl ICorProfilerMethodEnum_Vtbl { - pub const fn new() -> ICorProfilerMethodEnum_Vtbl - where - Identity: ICorProfilerMethodEnum_Impl, - { - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerMethodEnum_Impl, - { + pub const fn new() -> ICorProfilerMethodEnum_Vtbl { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerMethodEnum_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerMethodEnum_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerMethodEnum_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerMethodEnum_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerMethodEnum_Impl::Clone(this) { Ok(ok__) => { @@ -2737,10 +1996,7 @@ impl ICorProfilerMethodEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerMethodEnum_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerMethodEnum_Impl::GetCount(this) { Ok(ok__) => { @@ -2750,10 +2006,7 @@ impl ICorProfilerMethodEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, elements: *mut COR_PRF_METHOD, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerMethodEnum_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, elements: *mut COR_PRF_METHOD, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerMethodEnum_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&elements), core::mem::transmute_copy(&pceltfetched)).into() } @@ -2770,7 +2023,7 @@ impl ICorProfilerMethodEnum_Vtbl { iid == &::IID } } -pub trait ICorProfilerModuleEnum_Impl: Sized { +pub trait ICorProfilerModuleEnum_Impl: Sized + windows_core::IUnknownImpl { fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Clone(&self) -> windows_core::Result; @@ -2779,28 +2032,16 @@ pub trait ICorProfilerModuleEnum_Impl: Sized { } impl windows_core::RuntimeName for ICorProfilerModuleEnum {} impl ICorProfilerModuleEnum_Vtbl { - pub const fn new() -> ICorProfilerModuleEnum_Vtbl - where - Identity: ICorProfilerModuleEnum_Impl, - { - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerModuleEnum_Impl, - { + pub const fn new() -> ICorProfilerModuleEnum_Vtbl { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerModuleEnum_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerModuleEnum_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerModuleEnum_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerModuleEnum_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerModuleEnum_Impl::Clone(this) { Ok(ok__) => { @@ -2810,10 +2051,7 @@ impl ICorProfilerModuleEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerModuleEnum_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerModuleEnum_Impl::GetCount(this) { Ok(ok__) => { @@ -2823,10 +2061,7 @@ impl ICorProfilerModuleEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ids: *mut usize, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerModuleEnum_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ids: *mut usize, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerModuleEnum_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&pceltfetched)).into() } @@ -2843,7 +2078,7 @@ impl ICorProfilerModuleEnum_Vtbl { iid == &::IID } } -pub trait ICorProfilerObjectEnum_Impl: Sized { +pub trait ICorProfilerObjectEnum_Impl: Sized + windows_core::IUnknownImpl { fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Clone(&self) -> windows_core::Result; @@ -2852,28 +2087,16 @@ pub trait ICorProfilerObjectEnum_Impl: Sized { } impl windows_core::RuntimeName for ICorProfilerObjectEnum {} impl ICorProfilerObjectEnum_Vtbl { - pub const fn new() -> ICorProfilerObjectEnum_Vtbl - where - Identity: ICorProfilerObjectEnum_Impl, - { - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerObjectEnum_Impl, - { + pub const fn new() -> ICorProfilerObjectEnum_Vtbl { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerObjectEnum_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerObjectEnum_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerObjectEnum_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerObjectEnum_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerObjectEnum_Impl::Clone(this) { Ok(ok__) => { @@ -2883,10 +2106,7 @@ impl ICorProfilerObjectEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerObjectEnum_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerObjectEnum_Impl::GetCount(this) { Ok(ok__) => { @@ -2896,10 +2116,7 @@ impl ICorProfilerObjectEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, objects: *mut usize, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerObjectEnum_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, objects: *mut usize, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerObjectEnum_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&objects), core::mem::transmute_copy(&pceltfetched)).into() } @@ -2916,7 +2133,7 @@ impl ICorProfilerObjectEnum_Vtbl { iid == &::IID } } -pub trait ICorProfilerThreadEnum_Impl: Sized { +pub trait ICorProfilerThreadEnum_Impl: Sized + windows_core::IUnknownImpl { fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Clone(&self) -> windows_core::Result; @@ -2925,28 +2142,16 @@ pub trait ICorProfilerThreadEnum_Impl: Sized { } impl windows_core::RuntimeName for ICorProfilerThreadEnum {} impl ICorProfilerThreadEnum_Vtbl { - pub const fn new() -> ICorProfilerThreadEnum_Vtbl - where - Identity: ICorProfilerThreadEnum_Impl, - { - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: ICorProfilerThreadEnum_Impl, - { + pub const fn new() -> ICorProfilerThreadEnum_Vtbl { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerThreadEnum_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerThreadEnum_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerThreadEnum_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICorProfilerThreadEnum_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerThreadEnum_Impl::Clone(this) { Ok(ok__) => { @@ -2956,10 +2161,7 @@ impl ICorProfilerThreadEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerThreadEnum_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerThreadEnum_Impl::GetCount(this) { Ok(ok__) => { @@ -2969,10 +2171,7 @@ impl ICorProfilerThreadEnum_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ids: *mut usize, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ICorProfilerThreadEnum_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ids: *mut usize, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerThreadEnum_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&pceltfetched)).into() } @@ -2989,19 +2188,13 @@ impl ICorProfilerThreadEnum_Vtbl { iid == &::IID } } -pub trait IMethodMalloc_Impl: Sized { +pub trait IMethodMalloc_Impl: Sized + windows_core::IUnknownImpl { fn Alloc(&self, cb: u32) -> *mut core::ffi::c_void; } impl windows_core::RuntimeName for IMethodMalloc {} impl IMethodMalloc_Vtbl { - pub const fn new() -> IMethodMalloc_Vtbl - where - Identity: IMethodMalloc_Impl, - { - unsafe extern "system" fn Alloc(this: *mut core::ffi::c_void, cb: u32) -> *mut core::ffi::c_void - where - Identity: IMethodMalloc_Impl, - { + pub const fn new() -> IMethodMalloc_Vtbl { + unsafe extern "system" fn Alloc(this: *mut core::ffi::c_void, cb: u32) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMethodMalloc_Impl::Alloc(this, core::mem::transmute_copy(&cb)) } diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/impl.rs index e6b43f1f24..a78c31b5be 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/impl.rs @@ -1,4 +1,4 @@ -pub trait AsyncIDebugApplicationNodeEvents_Impl: Sized { +pub trait AsyncIDebugApplicationNodeEvents_Impl: Sized + windows_core::IUnknownImpl { fn Begin_onAddChild(&self, prddpchild: Option<&IDebugApplicationNode>) -> windows_core::Result<()>; fn Finish_onAddChild(&self) -> windows_core::Result<()>; fn Begin_onRemoveChild(&self, prddpchild: Option<&IDebugApplicationNode>) -> windows_core::Result<()>; @@ -10,63 +10,36 @@ pub trait AsyncIDebugApplicationNodeEvents_Impl: Sized { } impl windows_core::RuntimeName for AsyncIDebugApplicationNodeEvents {} impl AsyncIDebugApplicationNodeEvents_Vtbl { - pub const fn new() -> AsyncIDebugApplicationNodeEvents_Vtbl - where - Identity: AsyncIDebugApplicationNodeEvents_Impl, - { - unsafe extern "system" fn Begin_onAddChild(this: *mut core::ffi::c_void, prddpchild: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIDebugApplicationNodeEvents_Impl, - { + pub const fn new() -> AsyncIDebugApplicationNodeEvents_Vtbl { + unsafe extern "system" fn Begin_onAddChild(this: *mut core::ffi::c_void, prddpchild: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIDebugApplicationNodeEvents_Impl::Begin_onAddChild(this, windows_core::from_raw_borrowed(&prddpchild)).into() } - unsafe extern "system" fn Finish_onAddChild(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIDebugApplicationNodeEvents_Impl, - { + unsafe extern "system" fn Finish_onAddChild(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIDebugApplicationNodeEvents_Impl::Finish_onAddChild(this).into() } - unsafe extern "system" fn Begin_onRemoveChild(this: *mut core::ffi::c_void, prddpchild: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIDebugApplicationNodeEvents_Impl, - { + unsafe extern "system" fn Begin_onRemoveChild(this: *mut core::ffi::c_void, prddpchild: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIDebugApplicationNodeEvents_Impl::Begin_onRemoveChild(this, windows_core::from_raw_borrowed(&prddpchild)).into() } - unsafe extern "system" fn Finish_onRemoveChild(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIDebugApplicationNodeEvents_Impl, - { + unsafe extern "system" fn Finish_onRemoveChild(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIDebugApplicationNodeEvents_Impl::Finish_onRemoveChild(this).into() } - unsafe extern "system" fn Begin_onDetach(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIDebugApplicationNodeEvents_Impl, - { + unsafe extern "system" fn Begin_onDetach(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIDebugApplicationNodeEvents_Impl::Begin_onDetach(this).into() } - unsafe extern "system" fn Finish_onDetach(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIDebugApplicationNodeEvents_Impl, - { + unsafe extern "system" fn Finish_onDetach(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIDebugApplicationNodeEvents_Impl::Finish_onDetach(this).into() } - unsafe extern "system" fn Begin_onAttach(this: *mut core::ffi::c_void, prddpparent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIDebugApplicationNodeEvents_Impl, - { + unsafe extern "system" fn Begin_onAttach(this: *mut core::ffi::c_void, prddpparent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIDebugApplicationNodeEvents_Impl::Begin_onAttach(this, windows_core::from_raw_borrowed(&prddpparent)).into() } - unsafe extern "system" fn Finish_onAttach(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIDebugApplicationNodeEvents_Impl, - { + unsafe extern "system" fn Finish_onAttach(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIDebugApplicationNodeEvents_Impl::Finish_onAttach(this).into() } @@ -87,7 +60,7 @@ impl AsyncIDebugApplicationNodeEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScript_Impl: Sized { +pub trait IActiveScript_Impl: Sized + windows_core::IUnknownImpl { fn SetScriptSite(&self, pass: Option<&IActiveScriptSite>) -> windows_core::Result<()>; fn GetScriptSite(&self, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetScriptState(&self, ss: SCRIPTSTATE) -> windows_core::Result<()>; @@ -106,35 +79,20 @@ pub trait IActiveScript_Impl: Sized { impl windows_core::RuntimeName for IActiveScript {} #[cfg(feature = "Win32_System_Com")] impl IActiveScript_Vtbl { - pub const fn new() -> IActiveScript_Vtbl - where - Identity: IActiveScript_Impl, - { - unsafe extern "system" fn SetScriptSite(this: *mut core::ffi::c_void, pass: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + pub const fn new() -> IActiveScript_Vtbl { + unsafe extern "system" fn SetScriptSite(this: *mut core::ffi::c_void, pass: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScript_Impl::SetScriptSite(this, windows_core::from_raw_borrowed(&pass)).into() } - unsafe extern "system" fn GetScriptSite(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn GetScriptSite(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScript_Impl::GetScriptSite(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn SetScriptState(this: *mut core::ffi::c_void, ss: SCRIPTSTATE) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn SetScriptState(this: *mut core::ffi::c_void, ss: SCRIPTSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScript_Impl::SetScriptState(this, core::mem::transmute_copy(&ss)).into() } - unsafe extern "system" fn GetScriptState(this: *mut core::ffi::c_void, pssstate: *mut SCRIPTSTATE) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn GetScriptState(this: *mut core::ffi::c_void, pssstate: *mut SCRIPTSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScript_Impl::GetScriptState(this) { Ok(ok__) => { @@ -144,31 +102,19 @@ impl IActiveScript_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScript_Impl::Close(this).into() } - unsafe extern "system" fn AddNamedItem(this: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn AddNamedItem(this: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScript_Impl::AddNamedItem(this, core::mem::transmute(&pstrname), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn AddTypeLib(this: *mut core::ffi::c_void, rguidtypelib: *const windows_core::GUID, dwmajor: u32, dwminor: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn AddTypeLib(this: *mut core::ffi::c_void, rguidtypelib: *const windows_core::GUID, dwmajor: u32, dwminor: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScript_Impl::AddTypeLib(this, core::mem::transmute_copy(&rguidtypelib), core::mem::transmute_copy(&dwmajor), core::mem::transmute_copy(&dwminor), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetScriptDispatch(this: *mut core::ffi::c_void, pstritemname: windows_core::PCWSTR, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn GetScriptDispatch(this: *mut core::ffi::c_void, pstritemname: windows_core::PCWSTR, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScript_Impl::GetScriptDispatch(this, core::mem::transmute(&pstritemname)) { Ok(ok__) => { @@ -178,10 +124,7 @@ impl IActiveScript_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentScriptThreadID(this: *mut core::ffi::c_void, pstidthread: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn GetCurrentScriptThreadID(this: *mut core::ffi::c_void, pstidthread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScript_Impl::GetCurrentScriptThreadID(this) { Ok(ok__) => { @@ -191,10 +134,7 @@ impl IActiveScript_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScriptThreadID(this: *mut core::ffi::c_void, dwwin32threadid: u32, pstidthread: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn GetScriptThreadID(this: *mut core::ffi::c_void, dwwin32threadid: u32, pstidthread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScript_Impl::GetScriptThreadID(this, core::mem::transmute_copy(&dwwin32threadid)) { Ok(ok__) => { @@ -204,10 +144,7 @@ impl IActiveScript_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScriptThreadState(this: *mut core::ffi::c_void, stidthread: u32, pstsstate: *mut SCRIPTTHREADSTATE) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn GetScriptThreadState(this: *mut core::ffi::c_void, stidthread: u32, pstsstate: *mut SCRIPTTHREADSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScript_Impl::GetScriptThreadState(this, core::mem::transmute_copy(&stidthread)) { Ok(ok__) => { @@ -217,17 +154,11 @@ impl IActiveScript_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InterruptScriptThread(this: *mut core::ffi::c_void, stidthread: u32, pexcepinfo: *const super::super::super::Com::EXCEPINFO, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn InterruptScriptThread(this: *mut core::ffi::c_void, stidthread: u32, pexcepinfo: *const super::super::super::Com::EXCEPINFO, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScript_Impl::InterruptScriptThread(this, core::mem::transmute_copy(&stidthread), core::mem::transmute_copy(&pexcepinfo), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppscript: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScript_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppscript: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScript_Impl::Clone(this) { Ok(ok__) => { @@ -259,7 +190,7 @@ impl IActiveScript_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScriptAuthor_Impl: Sized { +pub trait IActiveScriptAuthor_Impl: Sized + windows_core::IUnknownImpl { fn AddNamedItem(&self, pszname: &windows_core::PCWSTR, dwflags: u32, pdisp: Option<&super::super::super::Com::IDispatch>) -> windows_core::Result<()>; fn AddScriptlet(&self, pszdefaultname: &windows_core::PCWSTR, pszcode: &windows_core::PCWSTR, pszitemname: &windows_core::PCWSTR, pszsubitemname: &windows_core::PCWSTR, pszeventname: &windows_core::PCWSTR, pszdelimiter: &windows_core::PCWSTR, dwcookie: u32, dwflags: u32) -> windows_core::Result<()>; fn ParseScriptText(&self, pszcode: &windows_core::PCWSTR, pszitemname: &windows_core::PCWSTR, pszdelimiter: &windows_core::PCWSTR, dwcookie: u32, dwflags: u32) -> windows_core::Result<()>; @@ -279,49 +210,28 @@ pub trait IActiveScriptAuthor_Impl: Sized { impl windows_core::RuntimeName for IActiveScriptAuthor {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptAuthor_Vtbl { - pub const fn new() -> IActiveScriptAuthor_Vtbl - where - Identity: IActiveScriptAuthor_Impl, - { - unsafe extern "system" fn AddNamedItem(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, dwflags: u32, pdisp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + pub const fn new() -> IActiveScriptAuthor_Vtbl { + unsafe extern "system" fn AddNamedItem(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, dwflags: u32, pdisp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptAuthor_Impl::AddNamedItem(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pdisp)).into() } - unsafe extern "system" fn AddScriptlet(this: *mut core::ffi::c_void, pszdefaultname: windows_core::PCWSTR, pszcode: windows_core::PCWSTR, pszitemname: windows_core::PCWSTR, pszsubitemname: windows_core::PCWSTR, pszeventname: windows_core::PCWSTR, pszdelimiter: windows_core::PCWSTR, dwcookie: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn AddScriptlet(this: *mut core::ffi::c_void, pszdefaultname: windows_core::PCWSTR, pszcode: windows_core::PCWSTR, pszitemname: windows_core::PCWSTR, pszsubitemname: windows_core::PCWSTR, pszeventname: windows_core::PCWSTR, pszdelimiter: windows_core::PCWSTR, dwcookie: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptAuthor_Impl::AddScriptlet(this, core::mem::transmute(&pszdefaultname), core::mem::transmute(&pszcode), core::mem::transmute(&pszitemname), core::mem::transmute(&pszsubitemname), core::mem::transmute(&pszeventname), core::mem::transmute(&pszdelimiter), core::mem::transmute_copy(&dwcookie), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn ParseScriptText(this: *mut core::ffi::c_void, pszcode: windows_core::PCWSTR, pszitemname: windows_core::PCWSTR, pszdelimiter: windows_core::PCWSTR, dwcookie: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn ParseScriptText(this: *mut core::ffi::c_void, pszcode: windows_core::PCWSTR, pszitemname: windows_core::PCWSTR, pszdelimiter: windows_core::PCWSTR, dwcookie: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptAuthor_Impl::ParseScriptText(this, core::mem::transmute(&pszcode), core::mem::transmute(&pszitemname), core::mem::transmute(&pszdelimiter), core::mem::transmute_copy(&dwcookie), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetScriptTextAttributes(this: *mut core::ffi::c_void, pszcode: windows_core::PCWSTR, cch: u32, pszdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn GetScriptTextAttributes(this: *mut core::ffi::c_void, pszcode: windows_core::PCWSTR, cch: u32, pszdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptAuthor_Impl::GetScriptTextAttributes(this, core::mem::transmute(&pszcode), core::mem::transmute_copy(&cch), core::mem::transmute(&pszdelimiter), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pattr)).into() } - unsafe extern "system" fn GetScriptletTextAttributes(this: *mut core::ffi::c_void, pszcode: windows_core::PCWSTR, cch: u32, pszdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn GetScriptletTextAttributes(this: *mut core::ffi::c_void, pszcode: windows_core::PCWSTR, cch: u32, pszdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptAuthor_Impl::GetScriptletTextAttributes(this, core::mem::transmute(&pszcode), core::mem::transmute_copy(&cch), core::mem::transmute(&pszdelimiter), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pattr)).into() } - unsafe extern "system" fn GetRoot(this: *mut core::ffi::c_void, ppsp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn GetRoot(this: *mut core::ffi::c_void, ppsp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptAuthor_Impl::GetRoot(this) { Ok(ok__) => { @@ -331,10 +241,7 @@ impl IActiveScriptAuthor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageFlags(this: *mut core::ffi::c_void, pgrfasa: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn GetLanguageFlags(this: *mut core::ffi::c_void, pgrfasa: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptAuthor_Impl::GetLanguageFlags(this) { Ok(ok__) => { @@ -344,10 +251,7 @@ impl IActiveScriptAuthor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventHandler(this: *mut core::ffi::c_void, pdisp: *mut core::ffi::c_void, pszitem: windows_core::PCWSTR, pszsubitem: windows_core::PCWSTR, pszevent: windows_core::PCWSTR, ppse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn GetEventHandler(this: *mut core::ffi::c_void, pdisp: *mut core::ffi::c_void, pszitem: windows_core::PCWSTR, pszsubitem: windows_core::PCWSTR, pszevent: windows_core::PCWSTR, ppse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptAuthor_Impl::GetEventHandler(this, windows_core::from_raw_borrowed(&pdisp), core::mem::transmute(&pszitem), core::mem::transmute(&pszsubitem), core::mem::transmute(&pszevent)) { Ok(ok__) => { @@ -357,31 +261,19 @@ impl IActiveScriptAuthor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveNamedItem(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn RemoveNamedItem(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptAuthor_Impl::RemoveNamedItem(this, core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn AddTypeLib(this: *mut core::ffi::c_void, rguidtypelib: *const windows_core::GUID, dwmajor: u32, dwminor: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn AddTypeLib(this: *mut core::ffi::c_void, rguidtypelib: *const windows_core::GUID, dwmajor: u32, dwminor: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptAuthor_Impl::AddTypeLib(this, core::mem::transmute_copy(&rguidtypelib), core::mem::transmute_copy(&dwmajor), core::mem::transmute_copy(&dwminor), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RemoveTypeLib(this: *mut core::ffi::c_void, rguidtypelib: *const windows_core::GUID, dwmajor: u32, dwminor: u32) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn RemoveTypeLib(this: *mut core::ffi::c_void, rguidtypelib: *const windows_core::GUID, dwmajor: u32, dwminor: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptAuthor_Impl::RemoveTypeLib(this, core::mem::transmute_copy(&rguidtypelib), core::mem::transmute_copy(&dwmajor), core::mem::transmute_copy(&dwminor)).into() } - unsafe extern "system" fn GetChars(this: *mut core::ffi::c_void, frequestedlist: u32, pbstrchars: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn GetChars(this: *mut core::ffi::c_void, frequestedlist: u32, pbstrchars: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptAuthor_Impl::GetChars(this, core::mem::transmute_copy(&frequestedlist)) { Ok(ok__) => { @@ -391,17 +283,11 @@ impl IActiveScriptAuthor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInfoFromContext(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 - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn GetInfoFromContext(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptAuthor_Impl::GetInfoFromContext(this, core::mem::transmute(&pszcode), core::mem::transmute_copy(&cchcode), core::mem::transmute_copy(&ichcurrentposition), core::mem::transmute_copy(&dwlisttypesrequested), core::mem::transmute_copy(&pdwlisttypesprovided), core::mem::transmute_copy(&pichlistanchorposition), core::mem::transmute_copy(&pichfuncanchorposition), core::mem::transmute_copy(&pmemid), core::mem::transmute_copy(&picurrentparameter), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn IsCommitChar(this: *mut core::ffi::c_void, ch: u16, pfcommit: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthor_Impl, - { + unsafe extern "system" fn IsCommitChar(this: *mut core::ffi::c_void, ch: u16, pfcommit: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptAuthor_Impl::IsCommitChar(this, core::mem::transmute_copy(&ch)) { Ok(ok__) => { @@ -434,21 +320,15 @@ impl IActiveScriptAuthor_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScriptAuthorProcedure_Impl: Sized { +pub trait IActiveScriptAuthorProcedure_Impl: Sized + windows_core::IUnknownImpl { fn ParseProcedureText(&self, pszcode: &windows_core::PCWSTR, pszformalparams: &windows_core::PCWSTR, pszprocedurename: &windows_core::PCWSTR, pszitemname: &windows_core::PCWSTR, pszdelimiter: &windows_core::PCWSTR, dwcookie: u32, dwflags: u32, pdispfor: Option<&super::super::super::Com::IDispatch>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IActiveScriptAuthorProcedure {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptAuthorProcedure_Vtbl { - pub const fn new() -> IActiveScriptAuthorProcedure_Vtbl - where - Identity: IActiveScriptAuthorProcedure_Impl, - { - unsafe extern "system" fn ParseProcedureText(this: *mut core::ffi::c_void, pszcode: windows_core::PCWSTR, pszformalparams: windows_core::PCWSTR, pszprocedurename: windows_core::PCWSTR, pszitemname: windows_core::PCWSTR, pszdelimiter: windows_core::PCWSTR, dwcookie: u32, dwflags: u32, pdispfor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptAuthorProcedure_Impl, - { + pub const fn new() -> IActiveScriptAuthorProcedure_Vtbl { + unsafe extern "system" fn ParseProcedureText(this: *mut core::ffi::c_void, pszcode: windows_core::PCWSTR, pszformalparams: windows_core::PCWSTR, pszprocedurename: windows_core::PCWSTR, pszitemname: windows_core::PCWSTR, pszdelimiter: windows_core::PCWSTR, dwcookie: u32, dwflags: u32, pdispfor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptAuthorProcedure_Impl::ParseProcedureText(this, core::mem::transmute(&pszcode), core::mem::transmute(&pszformalparams), core::mem::transmute(&pszprocedurename), core::mem::transmute(&pszitemname), core::mem::transmute(&pszdelimiter), core::mem::transmute_copy(&dwcookie), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pdispfor)).into() } @@ -458,35 +338,23 @@ impl IActiveScriptAuthorProcedure_Vtbl { iid == &::IID } } -pub trait IActiveScriptDebug32_Impl: Sized { +pub trait IActiveScriptDebug32_Impl: Sized + windows_core::IUnknownImpl { fn GetScriptTextAttributes(&self, pstrcode: &windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: &windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()>; fn GetScriptletTextAttributes(&self, pstrcode: &windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: &windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()>; fn EnumCodeContextsOfPosition(&self, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IActiveScriptDebug32 {} impl IActiveScriptDebug32_Vtbl { - pub const fn new() -> IActiveScriptDebug32_Vtbl - where - Identity: IActiveScriptDebug32_Impl, - { - unsafe extern "system" fn GetScriptTextAttributes(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT - where - Identity: IActiveScriptDebug32_Impl, - { + pub const fn new() -> IActiveScriptDebug32_Vtbl { + unsafe extern "system" fn GetScriptTextAttributes(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptDebug32_Impl::GetScriptTextAttributes(this, core::mem::transmute(&pstrcode), core::mem::transmute_copy(&unumcodechars), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pattr)).into() } - unsafe extern "system" fn GetScriptletTextAttributes(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT - where - Identity: IActiveScriptDebug32_Impl, - { + unsafe extern "system" fn GetScriptletTextAttributes(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptDebug32_Impl::GetScriptletTextAttributes(this, core::mem::transmute(&pstrcode), core::mem::transmute_copy(&unumcodechars), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pattr)).into() } - unsafe extern "system" fn EnumCodeContextsOfPosition(this: *mut core::ffi::c_void, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32, ppescc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptDebug32_Impl, - { + unsafe extern "system" fn EnumCodeContextsOfPosition(this: *mut core::ffi::c_void, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32, ppescc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptDebug32_Impl::EnumCodeContextsOfPosition(this, core::mem::transmute_copy(&dwsourcecontext), core::mem::transmute_copy(&ucharacteroffset), core::mem::transmute_copy(&unumchars)) { Ok(ok__) => { @@ -507,35 +375,23 @@ impl IActiveScriptDebug32_Vtbl { iid == &::IID } } -pub trait IActiveScriptDebug64_Impl: Sized { +pub trait IActiveScriptDebug64_Impl: Sized + windows_core::IUnknownImpl { fn GetScriptTextAttributes(&self, pstrcode: &windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: &windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()>; fn GetScriptletTextAttributes(&self, pstrcode: &windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: &windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()>; fn EnumCodeContextsOfPosition(&self, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IActiveScriptDebug64 {} impl IActiveScriptDebug64_Vtbl { - pub const fn new() -> IActiveScriptDebug64_Vtbl - where - Identity: IActiveScriptDebug64_Impl, - { - unsafe extern "system" fn GetScriptTextAttributes(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT - where - Identity: IActiveScriptDebug64_Impl, - { + pub const fn new() -> IActiveScriptDebug64_Vtbl { + unsafe extern "system" fn GetScriptTextAttributes(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptDebug64_Impl::GetScriptTextAttributes(this, core::mem::transmute(&pstrcode), core::mem::transmute_copy(&unumcodechars), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pattr)).into() } - unsafe extern "system" fn GetScriptletTextAttributes(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT - where - Identity: IActiveScriptDebug64_Impl, - { + unsafe extern "system" fn GetScriptletTextAttributes(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptDebug64_Impl::GetScriptletTextAttributes(this, core::mem::transmute(&pstrcode), core::mem::transmute_copy(&unumcodechars), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pattr)).into() } - unsafe extern "system" fn EnumCodeContextsOfPosition(this: *mut core::ffi::c_void, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32, ppescc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptDebug64_Impl, - { + unsafe extern "system" fn EnumCodeContextsOfPosition(this: *mut core::ffi::c_void, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32, ppescc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptDebug64_Impl::EnumCodeContextsOfPosition(this, core::mem::transmute_copy(&dwsourcecontext), core::mem::transmute_copy(&ucharacteroffset), core::mem::transmute_copy(&unumchars)) { Ok(ok__) => { @@ -556,35 +412,23 @@ impl IActiveScriptDebug64_Vtbl { iid == &::IID } } -pub trait IActiveScriptEncode_Impl: Sized { +pub trait IActiveScriptEncode_Impl: Sized + windows_core::IUnknownImpl { 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 windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveScriptEncode {} impl IActiveScriptEncode_Vtbl { - pub const fn new() -> IActiveScriptEncode_Vtbl - where - Identity: IActiveScriptEncode_Impl, - { - unsafe extern "system" fn EncodeSection(this: *mut core::ffi::c_void, pchin: windows_core::PCWSTR, cchin: u32, pchout: windows_core::PWSTR, cchout: u32, pcchret: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveScriptEncode_Impl, - { + pub const fn new() -> IActiveScriptEncode_Vtbl { + unsafe extern "system" fn EncodeSection(this: *mut core::ffi::c_void, pchin: windows_core::PCWSTR, cchin: u32, pchout: windows_core::PWSTR, cchout: u32, pcchret: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptEncode_Impl::EncodeSection(this, 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 DecodeScript(this: *mut core::ffi::c_void, pchin: windows_core::PCWSTR, cchin: u32, pchout: windows_core::PWSTR, cchout: u32, pcchret: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveScriptEncode_Impl, - { + unsafe extern "system" fn DecodeScript(this: *mut core::ffi::c_void, pchin: windows_core::PCWSTR, cchin: u32, pchout: windows_core::PWSTR, cchout: u32, pcchret: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptEncode_Impl::DecodeScript(this, 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(this: *mut core::ffi::c_void, pbstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActiveScriptEncode_Impl, - { + unsafe extern "system" fn GetEncodeProgId(this: *mut core::ffi::c_void, pbstrout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptEncode_Impl::GetEncodeProgId(this, core::mem::transmute_copy(&pbstrout)).into() } @@ -600,7 +444,7 @@ impl IActiveScriptEncode_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScriptError_Impl: Sized { +pub trait IActiveScriptError_Impl: Sized + windows_core::IUnknownImpl { fn GetExceptionInfo(&self, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()>; fn GetSourcePosition(&self, pdwsourcecontext: *mut u32, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> windows_core::Result<()>; fn GetSourceLineText(&self) -> windows_core::Result; @@ -609,28 +453,16 @@ pub trait IActiveScriptError_Impl: Sized { impl windows_core::RuntimeName for IActiveScriptError {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptError_Vtbl { - pub const fn new() -> IActiveScriptError_Vtbl - where - Identity: IActiveScriptError_Impl, - { - unsafe extern "system" fn GetExceptionInfo(this: *mut core::ffi::c_void, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT - where - Identity: IActiveScriptError_Impl, - { + pub const fn new() -> IActiveScriptError_Vtbl { + unsafe extern "system" fn GetExceptionInfo(this: *mut core::ffi::c_void, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptError_Impl::GetExceptionInfo(this, core::mem::transmute_copy(&pexcepinfo)).into() } - unsafe extern "system" fn GetSourcePosition(this: *mut core::ffi::c_void, pdwsourcecontext: *mut u32, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> windows_core::HRESULT - where - Identity: IActiveScriptError_Impl, - { + unsafe extern "system" fn GetSourcePosition(this: *mut core::ffi::c_void, pdwsourcecontext: *mut u32, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptError_Impl::GetSourcePosition(this, core::mem::transmute_copy(&pdwsourcecontext), core::mem::transmute_copy(&pullinenumber), core::mem::transmute_copy(&plcharacterposition)).into() } - unsafe extern "system" fn GetSourceLineText(this: *mut core::ffi::c_void, pbstrsourceline: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActiveScriptError_Impl, - { + unsafe extern "system" fn GetSourceLineText(this: *mut core::ffi::c_void, pbstrsourceline: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptError_Impl::GetSourceLineText(this) { Ok(ok__) => { @@ -659,14 +491,8 @@ pub trait IActiveScriptError64_Impl: Sized + IActiveScriptError_Impl { impl windows_core::RuntimeName for IActiveScriptError64 {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptError64_Vtbl { - pub const fn new() -> IActiveScriptError64_Vtbl - where - Identity: IActiveScriptError64_Impl, - { - unsafe extern "system" fn GetSourcePosition64(this: *mut core::ffi::c_void, pdwsourcecontext: *mut u64, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> windows_core::HRESULT - where - Identity: IActiveScriptError64_Impl, - { + pub const fn new() -> IActiveScriptError64_Vtbl { + unsafe extern "system" fn GetSourcePosition64(this: *mut core::ffi::c_void, pdwsourcecontext: *mut u64, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptError64_Impl::GetSourcePosition64(this, core::mem::transmute_copy(&pdwsourcecontext), core::mem::transmute_copy(&pullinenumber), core::mem::transmute_copy(&plcharacterposition)).into() } @@ -685,14 +511,8 @@ pub trait IActiveScriptErrorDebug_Impl: Sized + IActiveScriptError_Impl { impl windows_core::RuntimeName for IActiveScriptErrorDebug {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptErrorDebug_Vtbl { - pub const fn new() -> IActiveScriptErrorDebug_Vtbl - where - Identity: IActiveScriptErrorDebug_Impl, - { - unsafe extern "system" fn GetDocumentContext(this: *mut core::ffi::c_void, ppssc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptErrorDebug_Impl, - { + pub const fn new() -> IActiveScriptErrorDebug_Vtbl { + unsafe extern "system" fn GetDocumentContext(this: *mut core::ffi::c_void, ppssc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptErrorDebug_Impl::GetDocumentContext(this) { Ok(ok__) => { @@ -702,10 +522,7 @@ impl IActiveScriptErrorDebug_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackFrame(this: *mut core::ffi::c_void, ppdsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptErrorDebug_Impl, - { + unsafe extern "system" fn GetStackFrame(this: *mut core::ffi::c_void, ppdsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptErrorDebug_Impl::GetStackFrame(this) { Ok(ok__) => { @@ -725,19 +542,13 @@ impl IActiveScriptErrorDebug_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IActiveScriptErrorDebug110_Impl: Sized { +pub trait IActiveScriptErrorDebug110_Impl: Sized + windows_core::IUnknownImpl { fn GetExceptionThrownKind(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IActiveScriptErrorDebug110 {} impl IActiveScriptErrorDebug110_Vtbl { - pub const fn new() -> IActiveScriptErrorDebug110_Vtbl - where - Identity: IActiveScriptErrorDebug110_Impl, - { - unsafe extern "system" fn GetExceptionThrownKind(this: *mut core::ffi::c_void, pexceptionkind: *mut SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND) -> windows_core::HRESULT - where - Identity: IActiveScriptErrorDebug110_Impl, - { + pub const fn new() -> IActiveScriptErrorDebug110_Vtbl { + unsafe extern "system" fn GetExceptionThrownKind(this: *mut core::ffi::c_void, pexceptionkind: *mut SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptErrorDebug110_Impl::GetExceptionThrownKind(this) { Ok(ok__) => { @@ -753,19 +564,13 @@ impl IActiveScriptErrorDebug110_Vtbl { iid == &::IID } } -pub trait IActiveScriptGarbageCollector_Impl: Sized { +pub trait IActiveScriptGarbageCollector_Impl: Sized + windows_core::IUnknownImpl { fn CollectGarbage(&self, scriptgctype: SCRIPTGCTYPE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveScriptGarbageCollector {} impl IActiveScriptGarbageCollector_Vtbl { - pub const fn new() -> IActiveScriptGarbageCollector_Vtbl - where - Identity: IActiveScriptGarbageCollector_Impl, - { - unsafe extern "system" fn CollectGarbage(this: *mut core::ffi::c_void, scriptgctype: SCRIPTGCTYPE) -> windows_core::HRESULT - where - Identity: IActiveScriptGarbageCollector_Impl, - { + pub const fn new() -> IActiveScriptGarbageCollector_Vtbl { + unsafe extern "system" fn CollectGarbage(this: *mut core::ffi::c_void, scriptgctype: SCRIPTGCTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptGarbageCollector_Impl::CollectGarbage(this, core::mem::transmute_copy(&scriptgctype)).into() } @@ -775,19 +580,13 @@ impl IActiveScriptGarbageCollector_Vtbl { iid == &::IID } } -pub trait IActiveScriptHostEncode_Impl: Sized { +pub trait IActiveScriptHostEncode_Impl: Sized + windows_core::IUnknownImpl { fn EncodeScriptHostFile(&self, bstrinfile: &windows_core::BSTR, pbstroutfile: *mut windows_core::BSTR, cflags: u32, bstrdefaultlang: &windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveScriptHostEncode {} impl IActiveScriptHostEncode_Vtbl { - pub const fn new() -> IActiveScriptHostEncode_Vtbl - where - Identity: IActiveScriptHostEncode_Impl, - { - unsafe extern "system" fn EncodeScriptHostFile(this: *mut core::ffi::c_void, bstrinfile: core::mem::MaybeUninit, pbstroutfile: *mut core::mem::MaybeUninit, cflags: u32, bstrdefaultlang: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActiveScriptHostEncode_Impl, - { + pub const fn new() -> IActiveScriptHostEncode_Vtbl { + unsafe extern "system" fn EncodeScriptHostFile(this: *mut core::ffi::c_void, bstrinfile: core::mem::MaybeUninit, pbstroutfile: *mut core::mem::MaybeUninit, cflags: u32, bstrdefaultlang: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptHostEncode_Impl::EncodeScriptHostFile(this, core::mem::transmute(&bstrinfile), core::mem::transmute_copy(&pbstroutfile), core::mem::transmute_copy(&cflags), core::mem::transmute(&bstrdefaultlang)).into() } @@ -798,7 +597,7 @@ impl IActiveScriptHostEncode_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScriptParse32_Impl: Sized { +pub trait IActiveScriptParse32_Impl: Sized + windows_core::IUnknownImpl { 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 windows_core::BSTR, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()>; fn ParseScriptText(&self, pstrcode: &windows_core::PCWSTR, pstritemname: &windows_core::PCWSTR, punkcontext: Option<&windows_core::IUnknown>, pstrdelimiter: &windows_core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pvarresult: *mut windows_core::VARIANT, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()>; @@ -807,28 +606,16 @@ pub trait IActiveScriptParse32_Impl: Sized { impl windows_core::RuntimeName for IActiveScriptParse32 {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptParse32_Vtbl { - pub const fn new() -> IActiveScriptParse32_Vtbl - where - Identity: IActiveScriptParse32_Impl, - { - unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptParse32_Impl, - { + pub const fn new() -> IActiveScriptParse32_Vtbl { + unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptParse32_Impl::InitNew(this).into() } - unsafe extern "system" fn AddScriptlet(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::MaybeUninit, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT - where - Identity: IActiveScriptParse32_Impl, - { + unsafe extern "system" fn AddScriptlet(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::MaybeUninit, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptParse32_Impl::AddScriptlet(this, 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)).into() } - unsafe extern "system" fn ParseScriptText(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 core::mem::MaybeUninit, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT - where - Identity: IActiveScriptParse32_Impl, - { + unsafe extern "system" fn ParseScriptText(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 core::mem::MaybeUninit, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptParse32_Impl::ParseScriptText(this, core::mem::transmute(&pstrcode), core::mem::transmute(&pstritemname), windows_core::from_raw_borrowed(&punkcontext), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwsourcecontextcookie), core::mem::transmute_copy(&ulstartinglinenumber), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pvarresult), core::mem::transmute_copy(&pexcepinfo)).into() } @@ -844,7 +631,7 @@ impl IActiveScriptParse32_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScriptParse64_Impl: Sized { +pub trait IActiveScriptParse64_Impl: Sized + windows_core::IUnknownImpl { 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 windows_core::BSTR, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()>; fn ParseScriptText(&self, pstrcode: &windows_core::PCWSTR, pstritemname: &windows_core::PCWSTR, punkcontext: Option<&windows_core::IUnknown>, pstrdelimiter: &windows_core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pvarresult: *mut windows_core::VARIANT, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()>; @@ -853,28 +640,16 @@ pub trait IActiveScriptParse64_Impl: Sized { impl windows_core::RuntimeName for IActiveScriptParse64 {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptParse64_Vtbl { - pub const fn new() -> IActiveScriptParse64_Vtbl - where - Identity: IActiveScriptParse64_Impl, - { - unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptParse64_Impl, - { + pub const fn new() -> IActiveScriptParse64_Vtbl { + unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptParse64_Impl::InitNew(this).into() } - unsafe extern "system" fn AddScriptlet(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::MaybeUninit, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT - where - Identity: IActiveScriptParse64_Impl, - { + unsafe extern "system" fn AddScriptlet(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::MaybeUninit, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptParse64_Impl::AddScriptlet(this, 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)).into() } - unsafe extern "system" fn ParseScriptText(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 core::mem::MaybeUninit, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT - where - Identity: IActiveScriptParse64_Impl, - { + unsafe extern "system" fn ParseScriptText(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 core::mem::MaybeUninit, pexcepinfo: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptParse64_Impl::ParseScriptText(this, core::mem::transmute(&pstrcode), core::mem::transmute(&pstritemname), windows_core::from_raw_borrowed(&punkcontext), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwsourcecontextcookie), core::mem::transmute_copy(&ulstartinglinenumber), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pvarresult), core::mem::transmute_copy(&pexcepinfo)).into() } @@ -895,10 +670,7 @@ pub trait IActiveScriptParseProcedure2_32_Impl: Sized + IActiveScriptParseProced impl windows_core::RuntimeName for IActiveScriptParseProcedure2_32 {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptParseProcedure2_32_Vtbl { - pub const fn new() -> IActiveScriptParseProcedure2_32_Vtbl - where - Identity: IActiveScriptParseProcedure2_32_Impl, - { + pub const fn new() -> IActiveScriptParseProcedure2_32_Vtbl { Self { base__: IActiveScriptParseProcedure32_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -911,10 +683,7 @@ pub trait IActiveScriptParseProcedure2_64_Impl: Sized + IActiveScriptParseProced impl windows_core::RuntimeName for IActiveScriptParseProcedure2_64 {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptParseProcedure2_64_Vtbl { - pub const fn new() -> IActiveScriptParseProcedure2_64_Vtbl - where - Identity: IActiveScriptParseProcedure2_64_Impl, - { + pub const fn new() -> IActiveScriptParseProcedure2_64_Vtbl { Self { base__: IActiveScriptParseProcedure64_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -922,21 +691,15 @@ impl IActiveScriptParseProcedure2_64_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScriptParseProcedure32_Impl: Sized { +pub trait IActiveScriptParseProcedure32_Impl: Sized + windows_core::IUnknownImpl { fn ParseProcedureText(&self, pstrcode: &windows_core::PCWSTR, pstrformalparams: &windows_core::PCWSTR, pstrprocedurename: &windows_core::PCWSTR, pstritemname: &windows_core::PCWSTR, punkcontext: Option<&windows_core::IUnknown>, pstrdelimiter: &windows_core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IActiveScriptParseProcedure32 {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptParseProcedure32_Vtbl { - pub const fn new() -> IActiveScriptParseProcedure32_Vtbl - where - Identity: IActiveScriptParseProcedure32_Impl, - { - unsafe extern "system" fn ParseProcedureText(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, pstrformalparams: windows_core::PCWSTR, pstrprocedurename: windows_core::PCWSTR, pstritemname: windows_core::PCWSTR, punkcontext: *mut core::ffi::c_void, pstrdelimiter: windows_core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptParseProcedure32_Impl, - { + pub const fn new() -> IActiveScriptParseProcedure32_Vtbl { + unsafe extern "system" fn ParseProcedureText(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, pstrformalparams: windows_core::PCWSTR, pstrprocedurename: windows_core::PCWSTR, pstritemname: windows_core::PCWSTR, punkcontext: *mut core::ffi::c_void, pstrdelimiter: windows_core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptParseProcedure32_Impl::ParseProcedureText(this, core::mem::transmute(&pstrcode), core::mem::transmute(&pstrformalparams), core::mem::transmute(&pstrprocedurename), core::mem::transmute(&pstritemname), windows_core::from_raw_borrowed(&punkcontext), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwsourcecontextcookie), core::mem::transmute_copy(&ulstartinglinenumber), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -953,21 +716,15 @@ impl IActiveScriptParseProcedure32_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScriptParseProcedure64_Impl: Sized { +pub trait IActiveScriptParseProcedure64_Impl: Sized + windows_core::IUnknownImpl { fn ParseProcedureText(&self, pstrcode: &windows_core::PCWSTR, pstrformalparams: &windows_core::PCWSTR, pstrprocedurename: &windows_core::PCWSTR, pstritemname: &windows_core::PCWSTR, punkcontext: Option<&windows_core::IUnknown>, pstrdelimiter: &windows_core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IActiveScriptParseProcedure64 {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptParseProcedure64_Vtbl { - pub const fn new() -> IActiveScriptParseProcedure64_Vtbl - where - Identity: IActiveScriptParseProcedure64_Impl, - { - unsafe extern "system" fn ParseProcedureText(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, pstrformalparams: windows_core::PCWSTR, pstrprocedurename: windows_core::PCWSTR, pstritemname: windows_core::PCWSTR, punkcontext: *mut core::ffi::c_void, pstrdelimiter: windows_core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptParseProcedure64_Impl, - { + pub const fn new() -> IActiveScriptParseProcedure64_Vtbl { + unsafe extern "system" fn ParseProcedureText(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, pstrformalparams: windows_core::PCWSTR, pstrprocedurename: windows_core::PCWSTR, pstritemname: windows_core::PCWSTR, punkcontext: *mut core::ffi::c_void, pstrdelimiter: windows_core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptParseProcedure64_Impl::ParseProcedureText(this, core::mem::transmute(&pstrcode), core::mem::transmute(&pstrformalparams), core::mem::transmute(&pstrprocedurename), core::mem::transmute(&pstritemname), windows_core::from_raw_borrowed(&punkcontext), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwsourcecontextcookie), core::mem::transmute_copy(&ulstartinglinenumber), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -984,21 +741,15 @@ impl IActiveScriptParseProcedure64_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScriptParseProcedureOld32_Impl: Sized { +pub trait IActiveScriptParseProcedureOld32_Impl: Sized + windows_core::IUnknownImpl { fn ParseProcedureText(&self, pstrcode: &windows_core::PCWSTR, pstrformalparams: &windows_core::PCWSTR, pstritemname: &windows_core::PCWSTR, punkcontext: Option<&windows_core::IUnknown>, pstrdelimiter: &windows_core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IActiveScriptParseProcedureOld32 {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptParseProcedureOld32_Vtbl { - pub const fn new() -> IActiveScriptParseProcedureOld32_Vtbl - where - Identity: IActiveScriptParseProcedureOld32_Impl, - { - unsafe extern "system" fn ParseProcedureText(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, pstrformalparams: windows_core::PCWSTR, pstritemname: windows_core::PCWSTR, punkcontext: *mut core::ffi::c_void, pstrdelimiter: windows_core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptParseProcedureOld32_Impl, - { + pub const fn new() -> IActiveScriptParseProcedureOld32_Vtbl { + unsafe extern "system" fn ParseProcedureText(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, pstrformalparams: windows_core::PCWSTR, pstritemname: windows_core::PCWSTR, punkcontext: *mut core::ffi::c_void, pstrdelimiter: windows_core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptParseProcedureOld32_Impl::ParseProcedureText(this, core::mem::transmute(&pstrcode), core::mem::transmute(&pstrformalparams), core::mem::transmute(&pstritemname), windows_core::from_raw_borrowed(&punkcontext), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwsourcecontextcookie), core::mem::transmute_copy(&ulstartinglinenumber), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -1015,21 +766,15 @@ impl IActiveScriptParseProcedureOld32_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScriptParseProcedureOld64_Impl: Sized { +pub trait IActiveScriptParseProcedureOld64_Impl: Sized + windows_core::IUnknownImpl { fn ParseProcedureText(&self, pstrcode: &windows_core::PCWSTR, pstrformalparams: &windows_core::PCWSTR, pstritemname: &windows_core::PCWSTR, punkcontext: Option<&windows_core::IUnknown>, pstrdelimiter: &windows_core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IActiveScriptParseProcedureOld64 {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptParseProcedureOld64_Vtbl { - pub const fn new() -> IActiveScriptParseProcedureOld64_Vtbl - where - Identity: IActiveScriptParseProcedureOld64_Impl, - { - unsafe extern "system" fn ParseProcedureText(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, pstrformalparams: windows_core::PCWSTR, pstritemname: windows_core::PCWSTR, punkcontext: *mut core::ffi::c_void, pstrdelimiter: windows_core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptParseProcedureOld64_Impl, - { + pub const fn new() -> IActiveScriptParseProcedureOld64_Vtbl { + unsafe extern "system" fn ParseProcedureText(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, pstrformalparams: windows_core::PCWSTR, pstritemname: windows_core::PCWSTR, punkcontext: *mut core::ffi::c_void, pstrdelimiter: windows_core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptParseProcedureOld64_Impl::ParseProcedureText(this, core::mem::transmute(&pstrcode), core::mem::transmute(&pstrformalparams), core::mem::transmute(&pstritemname), windows_core::from_raw_borrowed(&punkcontext), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwsourcecontextcookie), core::mem::transmute_copy(&ulstartinglinenumber), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -1045,7 +790,7 @@ impl IActiveScriptParseProcedureOld64_Vtbl { iid == &::IID } } -pub trait IActiveScriptProfilerCallback_Impl: Sized { +pub trait IActiveScriptProfilerCallback_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, dwcontext: u32) -> windows_core::Result<()>; fn Shutdown(&self, hrreason: windows_core::HRESULT) -> windows_core::Result<()>; fn ScriptCompiled(&self, scriptid: i32, r#type: PROFILER_SCRIPT_TYPE, pidebugdocumentcontext: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -1055,49 +800,28 @@ pub trait IActiveScriptProfilerCallback_Impl: Sized { } impl windows_core::RuntimeName for IActiveScriptProfilerCallback {} impl IActiveScriptProfilerCallback_Vtbl { - pub const fn new() -> IActiveScriptProfilerCallback_Vtbl - where - Identity: IActiveScriptProfilerCallback_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, dwcontext: u32) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerCallback_Impl, - { + pub const fn new() -> IActiveScriptProfilerCallback_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, dwcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerCallback_Impl::Initialize(this, core::mem::transmute_copy(&dwcontext)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void, hrreason: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerCallback_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void, hrreason: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerCallback_Impl::Shutdown(this, core::mem::transmute_copy(&hrreason)).into() } - unsafe extern "system" fn ScriptCompiled(this: *mut core::ffi::c_void, scriptid: i32, r#type: PROFILER_SCRIPT_TYPE, pidebugdocumentcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerCallback_Impl, - { + unsafe extern "system" fn ScriptCompiled(this: *mut core::ffi::c_void, scriptid: i32, r#type: PROFILER_SCRIPT_TYPE, pidebugdocumentcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerCallback_Impl::ScriptCompiled(this, core::mem::transmute_copy(&scriptid), core::mem::transmute_copy(&r#type), windows_core::from_raw_borrowed(&pidebugdocumentcontext)).into() } - unsafe extern "system" fn FunctionCompiled(this: *mut core::ffi::c_void, functionid: i32, scriptid: i32, pwszfunctionname: windows_core::PCWSTR, pwszfunctionnamehint: windows_core::PCWSTR, pidebugdocumentcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerCallback_Impl, - { + unsafe extern "system" fn FunctionCompiled(this: *mut core::ffi::c_void, functionid: i32, scriptid: i32, pwszfunctionname: windows_core::PCWSTR, pwszfunctionnamehint: windows_core::PCWSTR, pidebugdocumentcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerCallback_Impl::FunctionCompiled(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&scriptid), core::mem::transmute(&pwszfunctionname), core::mem::transmute(&pwszfunctionnamehint), windows_core::from_raw_borrowed(&pidebugdocumentcontext)).into() } - unsafe extern "system" fn OnFunctionEnter(this: *mut core::ffi::c_void, scriptid: i32, functionid: i32) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerCallback_Impl, - { + unsafe extern "system" fn OnFunctionEnter(this: *mut core::ffi::c_void, scriptid: i32, functionid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerCallback_Impl::OnFunctionEnter(this, core::mem::transmute_copy(&scriptid), core::mem::transmute_copy(&functionid)).into() } - unsafe extern "system" fn OnFunctionExit(this: *mut core::ffi::c_void, scriptid: i32, functionid: i32) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerCallback_Impl, - { + unsafe extern "system" fn OnFunctionExit(this: *mut core::ffi::c_void, scriptid: i32, functionid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerCallback_Impl::OnFunctionExit(this, core::mem::transmute_copy(&scriptid), core::mem::transmute_copy(&functionid)).into() } @@ -1121,21 +845,12 @@ pub trait IActiveScriptProfilerCallback2_Impl: Sized + IActiveScriptProfilerCall } impl windows_core::RuntimeName for IActiveScriptProfilerCallback2 {} impl IActiveScriptProfilerCallback2_Vtbl { - pub const fn new() -> IActiveScriptProfilerCallback2_Vtbl - where - Identity: IActiveScriptProfilerCallback2_Impl, - { - unsafe extern "system" fn OnFunctionEnterByName(this: *mut core::ffi::c_void, pwszfunctionname: windows_core::PCWSTR, r#type: PROFILER_SCRIPT_TYPE) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerCallback2_Impl, - { + pub const fn new() -> IActiveScriptProfilerCallback2_Vtbl { + unsafe extern "system" fn OnFunctionEnterByName(this: *mut core::ffi::c_void, pwszfunctionname: windows_core::PCWSTR, r#type: PROFILER_SCRIPT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerCallback2_Impl::OnFunctionEnterByName(this, core::mem::transmute(&pwszfunctionname), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn OnFunctionExitByName(this: *mut core::ffi::c_void, pwszfunctionname: windows_core::PCWSTR, r#type: PROFILER_SCRIPT_TYPE) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerCallback2_Impl, - { + unsafe extern "system" fn OnFunctionExitByName(this: *mut core::ffi::c_void, pwszfunctionname: windows_core::PCWSTR, r#type: PROFILER_SCRIPT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerCallback2_Impl::OnFunctionExitByName(this, core::mem::transmute(&pwszfunctionname), core::mem::transmute_copy(&r#type)).into() } @@ -1154,14 +869,8 @@ pub trait IActiveScriptProfilerCallback3_Impl: Sized + IActiveScriptProfilerCall } impl windows_core::RuntimeName for IActiveScriptProfilerCallback3 {} impl IActiveScriptProfilerCallback3_Vtbl { - pub const fn new() -> IActiveScriptProfilerCallback3_Vtbl - where - Identity: IActiveScriptProfilerCallback3_Impl, - { - unsafe extern "system" fn SetWebWorkerId(this: *mut core::ffi::c_void, webworkerid: u32) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerCallback3_Impl, - { + pub const fn new() -> IActiveScriptProfilerCallback3_Vtbl { + unsafe extern "system" fn SetWebWorkerId(this: *mut core::ffi::c_void, webworkerid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerCallback3_Impl::SetWebWorkerId(this, core::mem::transmute_copy(&webworkerid)).into() } @@ -1171,35 +880,23 @@ impl IActiveScriptProfilerCallback3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IActiveScriptProfilerControl_Impl: Sized { +pub trait IActiveScriptProfilerControl_Impl: Sized + windows_core::IUnknownImpl { fn StartProfiling(&self, clsidprofilerobject: *const windows_core::GUID, dweventmask: u32, dwcontext: u32) -> windows_core::Result<()>; fn SetProfilerEventMask(&self, dweventmask: u32) -> windows_core::Result<()>; fn StopProfiling(&self, hrshutdownreason: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveScriptProfilerControl {} impl IActiveScriptProfilerControl_Vtbl { - pub const fn new() -> IActiveScriptProfilerControl_Vtbl - where - Identity: IActiveScriptProfilerControl_Impl, - { - unsafe extern "system" fn StartProfiling(this: *mut core::ffi::c_void, clsidprofilerobject: *const windows_core::GUID, dweventmask: u32, dwcontext: u32) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerControl_Impl, - { + pub const fn new() -> IActiveScriptProfilerControl_Vtbl { + unsafe extern "system" fn StartProfiling(this: *mut core::ffi::c_void, clsidprofilerobject: *const windows_core::GUID, dweventmask: u32, dwcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerControl_Impl::StartProfiling(this, core::mem::transmute_copy(&clsidprofilerobject), core::mem::transmute_copy(&dweventmask), core::mem::transmute_copy(&dwcontext)).into() } - unsafe extern "system" fn SetProfilerEventMask(this: *mut core::ffi::c_void, dweventmask: u32) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerControl_Impl, - { + unsafe extern "system" fn SetProfilerEventMask(this: *mut core::ffi::c_void, dweventmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerControl_Impl::SetProfilerEventMask(this, core::mem::transmute_copy(&dweventmask)).into() } - unsafe extern "system" fn StopProfiling(this: *mut core::ffi::c_void, hrshutdownreason: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerControl_Impl, - { + unsafe extern "system" fn StopProfiling(this: *mut core::ffi::c_void, hrshutdownreason: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerControl_Impl::StopProfiling(this, core::mem::transmute_copy(&hrshutdownreason)).into() } @@ -1220,21 +917,12 @@ pub trait IActiveScriptProfilerControl2_Impl: Sized + IActiveScriptProfilerContr } impl windows_core::RuntimeName for IActiveScriptProfilerControl2 {} impl IActiveScriptProfilerControl2_Vtbl { - pub const fn new() -> IActiveScriptProfilerControl2_Vtbl - where - Identity: IActiveScriptProfilerControl2_Impl, - { - unsafe extern "system" fn CompleteProfilerStart(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerControl2_Impl, - { + pub const fn new() -> IActiveScriptProfilerControl2_Vtbl { + unsafe extern "system" fn CompleteProfilerStart(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerControl2_Impl::CompleteProfilerStart(this).into() } - unsafe extern "system" fn PrepareProfilerStop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerControl2_Impl, - { + unsafe extern "system" fn PrepareProfilerStop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerControl2_Impl::PrepareProfilerStop(this).into() } @@ -1253,14 +941,8 @@ pub trait IActiveScriptProfilerControl3_Impl: Sized + IActiveScriptProfilerContr } impl windows_core::RuntimeName for IActiveScriptProfilerControl3 {} impl IActiveScriptProfilerControl3_Vtbl { - pub const fn new() -> IActiveScriptProfilerControl3_Vtbl - where - Identity: IActiveScriptProfilerControl3_Impl, - { - unsafe extern "system" fn EnumHeap(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerControl3_Impl, - { + pub const fn new() -> IActiveScriptProfilerControl3_Vtbl { + unsafe extern "system" fn EnumHeap(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptProfilerControl3_Impl::EnumHeap(this) { Ok(ok__) => { @@ -1281,14 +963,8 @@ pub trait IActiveScriptProfilerControl4_Impl: Sized + IActiveScriptProfilerContr } impl windows_core::RuntimeName for IActiveScriptProfilerControl4 {} impl IActiveScriptProfilerControl4_Vtbl { - pub const fn new() -> IActiveScriptProfilerControl4_Vtbl - where - Identity: IActiveScriptProfilerControl4_Impl, - { - unsafe extern "system" fn SummarizeHeap(this: *mut core::ffi::c_void, heapsummary: *mut PROFILER_HEAP_SUMMARY) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerControl4_Impl, - { + pub const fn new() -> IActiveScriptProfilerControl4_Vtbl { + unsafe extern "system" fn SummarizeHeap(this: *mut core::ffi::c_void, heapsummary: *mut PROFILER_HEAP_SUMMARY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerControl4_Impl::SummarizeHeap(this, core::mem::transmute_copy(&heapsummary)).into() } @@ -1303,14 +979,8 @@ pub trait IActiveScriptProfilerControl5_Impl: Sized + IActiveScriptProfilerContr } impl windows_core::RuntimeName for IActiveScriptProfilerControl5 {} impl IActiveScriptProfilerControl5_Vtbl { - pub const fn new() -> IActiveScriptProfilerControl5_Vtbl - where - Identity: IActiveScriptProfilerControl5_Impl, - { - unsafe extern "system" fn EnumHeap2(this: *mut core::ffi::c_void, enumflags: PROFILER_HEAP_ENUM_FLAGS, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerControl5_Impl, - { + pub const fn new() -> IActiveScriptProfilerControl5_Vtbl { + unsafe extern "system" fn EnumHeap2(this: *mut core::ffi::c_void, enumflags: PROFILER_HEAP_ENUM_FLAGS, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptProfilerControl5_Impl::EnumHeap2(this, core::mem::transmute_copy(&enumflags)) { Ok(ok__) => { @@ -1326,7 +996,7 @@ impl IActiveScriptProfilerControl5_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IActiveScriptProfilerHeapEnum_Impl: Sized { +pub trait IActiveScriptProfilerHeapEnum_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -1334,35 +1004,20 @@ pub trait IActiveScriptProfilerHeapEnum_Impl: Sized { } impl windows_core::RuntimeName for IActiveScriptProfilerHeapEnum {} impl IActiveScriptProfilerHeapEnum_Vtbl { - pub const fn new() -> IActiveScriptProfilerHeapEnum_Vtbl - where - Identity: IActiveScriptProfilerHeapEnum_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, heapobjects: *mut *mut PROFILER_HEAP_OBJECT, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerHeapEnum_Impl, - { + pub const fn new() -> IActiveScriptProfilerHeapEnum_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, heapobjects: *mut *mut PROFILER_HEAP_OBJECT, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerHeapEnum_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&heapobjects), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn GetOptionalInfo(this: *mut core::ffi::c_void, heapobject: *const PROFILER_HEAP_OBJECT, celt: u32, optionalinfo: *mut PROFILER_HEAP_OBJECT_OPTIONAL_INFO) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerHeapEnum_Impl, - { + unsafe extern "system" fn GetOptionalInfo(this: *mut core::ffi::c_void, heapobject: *const PROFILER_HEAP_OBJECT, celt: u32, optionalinfo: *mut PROFILER_HEAP_OBJECT_OPTIONAL_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerHeapEnum_Impl::GetOptionalInfo(this, core::mem::transmute_copy(&heapobject), core::mem::transmute_copy(&celt), core::mem::transmute_copy(&optionalinfo)).into() } - unsafe extern "system" fn FreeObjectAndOptionalInfo(this: *mut core::ffi::c_void, celt: u32, heapobjects: *const *const PROFILER_HEAP_OBJECT) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerHeapEnum_Impl, - { + unsafe extern "system" fn FreeObjectAndOptionalInfo(this: *mut core::ffi::c_void, celt: u32, heapobjects: *const *const PROFILER_HEAP_OBJECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerHeapEnum_Impl::FreeObjectAndOptionalInfo(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&heapobjects)).into() } - unsafe extern "system" fn GetNameIdMap(this: *mut core::ffi::c_void, pnamelist: *mut *mut *mut windows_core::PCWSTR, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveScriptProfilerHeapEnum_Impl, - { + unsafe extern "system" fn GetNameIdMap(this: *mut core::ffi::c_void, pnamelist: *mut *mut *mut windows_core::PCWSTR, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProfilerHeapEnum_Impl::GetNameIdMap(this, core::mem::transmute_copy(&pnamelist), core::mem::transmute_copy(&pcelt)).into() } @@ -1378,20 +1033,14 @@ impl IActiveScriptProfilerHeapEnum_Vtbl { iid == &::IID } } -pub trait IActiveScriptProperty_Impl: Sized { +pub trait IActiveScriptProperty_Impl: Sized + windows_core::IUnknownImpl { fn GetProperty(&self, dwproperty: u32, pvarindex: *const windows_core::VARIANT) -> windows_core::Result; fn SetProperty(&self, dwproperty: u32, pvarindex: *const windows_core::VARIANT, pvarvalue: *const windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveScriptProperty {} impl IActiveScriptProperty_Vtbl { - pub const fn new() -> IActiveScriptProperty_Vtbl - where - Identity: IActiveScriptProperty_Impl, - { - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, dwproperty: u32, pvarindex: *const core::mem::MaybeUninit, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActiveScriptProperty_Impl, - { + pub const fn new() -> IActiveScriptProperty_Vtbl { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, dwproperty: u32, pvarindex: *const core::mem::MaybeUninit, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptProperty_Impl::GetProperty(this, core::mem::transmute_copy(&dwproperty), core::mem::transmute_copy(&pvarindex)) { Ok(ok__) => { @@ -1401,10 +1050,7 @@ impl IActiveScriptProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, dwproperty: u32, pvarindex: *const core::mem::MaybeUninit, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActiveScriptProperty_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, dwproperty: u32, pvarindex: *const core::mem::MaybeUninit, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptProperty_Impl::SetProperty(this, core::mem::transmute_copy(&dwproperty), core::mem::transmute_copy(&pvarindex), core::mem::transmute_copy(&pvarvalue)).into() } @@ -1418,19 +1064,13 @@ impl IActiveScriptProperty_Vtbl { iid == &::IID } } -pub trait IActiveScriptSIPInfo_Impl: Sized { +pub trait IActiveScriptSIPInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetSIPOID(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IActiveScriptSIPInfo {} impl IActiveScriptSIPInfo_Vtbl { - pub const fn new() -> IActiveScriptSIPInfo_Vtbl - where - Identity: IActiveScriptSIPInfo_Impl, - { - unsafe extern "system" fn GetSIPOID(this: *mut core::ffi::c_void, poid_sip: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IActiveScriptSIPInfo_Impl, - { + pub const fn new() -> IActiveScriptSIPInfo_Vtbl { + unsafe extern "system" fn GetSIPOID(this: *mut core::ffi::c_void, poid_sip: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSIPInfo_Impl::GetSIPOID(this) { Ok(ok__) => { @@ -1447,7 +1087,7 @@ impl IActiveScriptSIPInfo_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IActiveScriptSite_Impl: Sized { +pub trait IActiveScriptSite_Impl: Sized + windows_core::IUnknownImpl { fn GetLCID(&self) -> windows_core::Result; fn GetItemInfo(&self, pstrname: &windows_core::PCWSTR, dwreturnmask: u32, ppiunkitem: *mut Option, ppti: *mut Option) -> windows_core::Result<()>; fn GetDocVersionString(&self) -> windows_core::Result; @@ -1461,14 +1101,8 @@ pub trait IActiveScriptSite_Impl: Sized { impl windows_core::RuntimeName for IActiveScriptSite {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptSite_Vtbl { - pub const fn new() -> IActiveScriptSite_Vtbl - where - Identity: IActiveScriptSite_Impl, - { - unsafe extern "system" fn GetLCID(this: *mut core::ffi::c_void, plcid: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveScriptSite_Impl, - { + pub const fn new() -> IActiveScriptSite_Vtbl { + unsafe extern "system" fn GetLCID(this: *mut core::ffi::c_void, plcid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSite_Impl::GetLCID(this) { Ok(ok__) => { @@ -1478,17 +1112,11 @@ impl IActiveScriptSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemInfo(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 - where - Identity: IActiveScriptSite_Impl, - { + unsafe extern "system" fn GetItemInfo(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSite_Impl::GetItemInfo(this, 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(this: *mut core::ffi::c_void, pbstrversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActiveScriptSite_Impl, - { + unsafe extern "system" fn GetDocVersionString(this: *mut core::ffi::c_void, pbstrversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSite_Impl::GetDocVersionString(this) { Ok(ok__) => { @@ -1498,38 +1126,23 @@ impl IActiveScriptSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnScriptTerminate(this: *mut core::ffi::c_void, pvarresult: *const core::mem::MaybeUninit, pexcepinfo: *const super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT - where - Identity: IActiveScriptSite_Impl, - { + unsafe extern "system" fn OnScriptTerminate(this: *mut core::ffi::c_void, pvarresult: *const core::mem::MaybeUninit, pexcepinfo: *const super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSite_Impl::OnScriptTerminate(this, core::mem::transmute_copy(&pvarresult), core::mem::transmute_copy(&pexcepinfo)).into() } - unsafe extern "system" fn OnStateChange(this: *mut core::ffi::c_void, ssscriptstate: SCRIPTSTATE) -> windows_core::HRESULT - where - Identity: IActiveScriptSite_Impl, - { + unsafe extern "system" fn OnStateChange(this: *mut core::ffi::c_void, ssscriptstate: SCRIPTSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSite_Impl::OnStateChange(this, core::mem::transmute_copy(&ssscriptstate)).into() } - unsafe extern "system" fn OnScriptError(this: *mut core::ffi::c_void, pscripterror: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptSite_Impl, - { + unsafe extern "system" fn OnScriptError(this: *mut core::ffi::c_void, pscripterror: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSite_Impl::OnScriptError(this, windows_core::from_raw_borrowed(&pscripterror)).into() } - unsafe extern "system" fn OnEnterScript(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptSite_Impl, - { + unsafe extern "system" fn OnEnterScript(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSite_Impl::OnEnterScript(this).into() } - unsafe extern "system" fn OnLeaveScript(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptSite_Impl, - { + unsafe extern "system" fn OnLeaveScript(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSite_Impl::OnLeaveScript(this).into() } @@ -1549,7 +1162,7 @@ impl IActiveScriptSite_Vtbl { iid == &::IID } } -pub trait IActiveScriptSiteDebug32_Impl: Sized { +pub trait IActiveScriptSiteDebug32_Impl: Sized + windows_core::IUnknownImpl { fn GetDocumentContextFromPosition(&self, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result; fn GetApplication(&self) -> windows_core::Result; fn GetRootApplicationNode(&self) -> windows_core::Result; @@ -1557,14 +1170,8 @@ pub trait IActiveScriptSiteDebug32_Impl: Sized { } impl windows_core::RuntimeName for IActiveScriptSiteDebug32 {} impl IActiveScriptSiteDebug32_Vtbl { - pub const fn new() -> IActiveScriptSiteDebug32_Vtbl - where - Identity: IActiveScriptSiteDebug32_Impl, - { - unsafe extern "system" fn GetDocumentContextFromPosition(this: *mut core::ffi::c_void, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32, ppsc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteDebug32_Impl, - { + pub const fn new() -> IActiveScriptSiteDebug32_Vtbl { + unsafe extern "system" fn GetDocumentContextFromPosition(this: *mut core::ffi::c_void, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32, ppsc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSiteDebug32_Impl::GetDocumentContextFromPosition(this, core::mem::transmute_copy(&dwsourcecontext), core::mem::transmute_copy(&ucharacteroffset), core::mem::transmute_copy(&unumchars)) { Ok(ok__) => { @@ -1574,10 +1181,7 @@ impl IActiveScriptSiteDebug32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteDebug32_Impl, - { + unsafe extern "system" fn GetApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSiteDebug32_Impl::GetApplication(this) { Ok(ok__) => { @@ -1587,10 +1191,7 @@ impl IActiveScriptSiteDebug32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRootApplicationNode(this: *mut core::ffi::c_void, ppdanroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteDebug32_Impl, - { + unsafe extern "system" fn GetRootApplicationNode(this: *mut core::ffi::c_void, ppdanroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSiteDebug32_Impl::GetRootApplicationNode(this) { Ok(ok__) => { @@ -1600,10 +1201,7 @@ impl IActiveScriptSiteDebug32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteDebug32_Impl, - { + unsafe extern "system" fn OnScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSiteDebug32_Impl::OnScriptErrorDebug(this, windows_core::from_raw_borrowed(&perrordebug), core::mem::transmute_copy(&pfenterdebugger), core::mem::transmute_copy(&pfcallonscripterrorwhencontinuing)).into() } @@ -1619,7 +1217,7 @@ impl IActiveScriptSiteDebug32_Vtbl { iid == &::IID } } -pub trait IActiveScriptSiteDebug64_Impl: Sized { +pub trait IActiveScriptSiteDebug64_Impl: Sized + windows_core::IUnknownImpl { fn GetDocumentContextFromPosition(&self, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result; fn GetApplication(&self) -> windows_core::Result; fn GetRootApplicationNode(&self) -> windows_core::Result; @@ -1627,14 +1225,8 @@ pub trait IActiveScriptSiteDebug64_Impl: Sized { } impl windows_core::RuntimeName for IActiveScriptSiteDebug64 {} impl IActiveScriptSiteDebug64_Vtbl { - pub const fn new() -> IActiveScriptSiteDebug64_Vtbl - where - Identity: IActiveScriptSiteDebug64_Impl, - { - unsafe extern "system" fn GetDocumentContextFromPosition(this: *mut core::ffi::c_void, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32, ppsc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteDebug64_Impl, - { + pub const fn new() -> IActiveScriptSiteDebug64_Vtbl { + unsafe extern "system" fn GetDocumentContextFromPosition(this: *mut core::ffi::c_void, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32, ppsc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSiteDebug64_Impl::GetDocumentContextFromPosition(this, core::mem::transmute_copy(&dwsourcecontext), core::mem::transmute_copy(&ucharacteroffset), core::mem::transmute_copy(&unumchars)) { Ok(ok__) => { @@ -1644,10 +1236,7 @@ impl IActiveScriptSiteDebug64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteDebug64_Impl, - { + unsafe extern "system" fn GetApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSiteDebug64_Impl::GetApplication(this) { Ok(ok__) => { @@ -1657,10 +1246,7 @@ impl IActiveScriptSiteDebug64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRootApplicationNode(this: *mut core::ffi::c_void, ppdanroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteDebug64_Impl, - { + unsafe extern "system" fn GetRootApplicationNode(this: *mut core::ffi::c_void, ppdanroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSiteDebug64_Impl::GetRootApplicationNode(this) { Ok(ok__) => { @@ -1670,10 +1256,7 @@ impl IActiveScriptSiteDebug64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteDebug64_Impl, - { + unsafe extern "system" fn OnScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSiteDebug64_Impl::OnScriptErrorDebug(this, windows_core::from_raw_borrowed(&perrordebug), core::mem::transmute_copy(&pfenterdebugger), core::mem::transmute_copy(&pfcallonscripterrorwhencontinuing)).into() } @@ -1689,19 +1272,13 @@ impl IActiveScriptSiteDebug64_Vtbl { iid == &::IID } } -pub trait IActiveScriptSiteDebugEx_Impl: Sized { +pub trait IActiveScriptSiteDebugEx_Impl: Sized + windows_core::IUnknownImpl { fn OnCanNotJITScriptErrorDebug(&self, perrordebug: Option<&IActiveScriptErrorDebug>) -> windows_core::Result; } impl windows_core::RuntimeName for IActiveScriptSiteDebugEx {} impl IActiveScriptSiteDebugEx_Vtbl { - pub const fn new() -> IActiveScriptSiteDebugEx_Vtbl - where - Identity: IActiveScriptSiteDebugEx_Impl, - { - unsafe extern "system" fn OnCanNotJITScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteDebugEx_Impl, - { + pub const fn new() -> IActiveScriptSiteDebugEx_Vtbl { + unsafe extern "system" fn OnCanNotJITScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSiteDebugEx_Impl::OnCanNotJITScriptErrorDebug(this, windows_core::from_raw_borrowed(&perrordebug)) { Ok(ok__) => { @@ -1717,19 +1294,13 @@ impl IActiveScriptSiteDebugEx_Vtbl { iid == &::IID } } -pub trait IActiveScriptSiteInterruptPoll_Impl: Sized { +pub trait IActiveScriptSiteInterruptPoll_Impl: Sized + windows_core::IUnknownImpl { fn QueryContinue(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveScriptSiteInterruptPoll {} impl IActiveScriptSiteInterruptPoll_Vtbl { - pub const fn new() -> IActiveScriptSiteInterruptPoll_Vtbl - where - Identity: IActiveScriptSiteInterruptPoll_Impl, - { - unsafe extern "system" fn QueryContinue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteInterruptPoll_Impl, - { + pub const fn new() -> IActiveScriptSiteInterruptPoll_Vtbl { + unsafe extern "system" fn QueryContinue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSiteInterruptPoll_Impl::QueryContinue(this).into() } @@ -1739,19 +1310,13 @@ impl IActiveScriptSiteInterruptPoll_Vtbl { iid == &::IID } } -pub trait IActiveScriptSiteTraceInfo_Impl: Sized { +pub trait IActiveScriptSiteTraceInfo_Impl: Sized + windows_core::IUnknownImpl { fn SendScriptTraceInfo(&self, stieventtype: SCRIPTTRACEINFO, guidcontextid: &windows_core::GUID, dwscriptcontextcookie: u32, lscriptstatementstart: i32, lscriptstatementend: i32, dwreserved: u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveScriptSiteTraceInfo {} impl IActiveScriptSiteTraceInfo_Vtbl { - pub const fn new() -> IActiveScriptSiteTraceInfo_Vtbl - where - Identity: IActiveScriptSiteTraceInfo_Impl, - { - unsafe extern "system" fn SendScriptTraceInfo(this: *mut core::ffi::c_void, stieventtype: SCRIPTTRACEINFO, guidcontextid: windows_core::GUID, dwscriptcontextcookie: u32, lscriptstatementstart: i32, lscriptstatementend: i32, dwreserved: u64) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteTraceInfo_Impl, - { + pub const fn new() -> IActiveScriptSiteTraceInfo_Vtbl { + unsafe extern "system" fn SendScriptTraceInfo(this: *mut core::ffi::c_void, stieventtype: SCRIPTTRACEINFO, guidcontextid: windows_core::GUID, dwscriptcontextcookie: u32, lscriptstatementstart: i32, lscriptstatementend: i32, dwreserved: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSiteTraceInfo_Impl::SendScriptTraceInfo(this, core::mem::transmute_copy(&stieventtype), core::mem::transmute(&guidcontextid), core::mem::transmute_copy(&dwscriptcontextcookie), core::mem::transmute_copy(&lscriptstatementstart), core::mem::transmute_copy(&lscriptstatementend), core::mem::transmute_copy(&dwreserved)).into() } @@ -1761,19 +1326,13 @@ impl IActiveScriptSiteTraceInfo_Vtbl { iid == &::IID } } -pub trait IActiveScriptSiteUIControl_Impl: Sized { +pub trait IActiveScriptSiteUIControl_Impl: Sized + windows_core::IUnknownImpl { fn GetUIBehavior(&self, uicitem: SCRIPTUICITEM) -> windows_core::Result; } impl windows_core::RuntimeName for IActiveScriptSiteUIControl {} impl IActiveScriptSiteUIControl_Vtbl { - pub const fn new() -> IActiveScriptSiteUIControl_Vtbl - where - Identity: IActiveScriptSiteUIControl_Impl, - { - unsafe extern "system" fn GetUIBehavior(this: *mut core::ffi::c_void, uicitem: SCRIPTUICITEM, puichandling: *mut SCRIPTUICHANDLING) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteUIControl_Impl, - { + pub const fn new() -> IActiveScriptSiteUIControl_Vtbl { + unsafe extern "system" fn GetUIBehavior(this: *mut core::ffi::c_void, uicitem: SCRIPTUICITEM, puichandling: *mut SCRIPTUICHANDLING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSiteUIControl_Impl::GetUIBehavior(this, core::mem::transmute_copy(&uicitem)) { Ok(ok__) => { @@ -1789,20 +1348,14 @@ impl IActiveScriptSiteUIControl_Vtbl { iid == &::IID } } -pub trait IActiveScriptSiteWindow_Impl: Sized { +pub trait IActiveScriptSiteWindow_Impl: Sized + windows_core::IUnknownImpl { fn GetWindow(&self) -> windows_core::Result; fn EnableModeless(&self, fenable: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveScriptSiteWindow {} impl IActiveScriptSiteWindow_Vtbl { - pub const fn new() -> IActiveScriptSiteWindow_Vtbl - where - Identity: IActiveScriptSiteWindow_Impl, - { - unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteWindow_Impl, - { + pub const fn new() -> IActiveScriptSiteWindow_Vtbl { + unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSiteWindow_Impl::GetWindow(this) { Ok(ok__) => { @@ -1812,10 +1365,7 @@ impl IActiveScriptSiteWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveScriptSiteWindow_Impl, - { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSiteWindow_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() } @@ -1829,35 +1379,23 @@ impl IActiveScriptSiteWindow_Vtbl { iid == &::IID } } -pub trait IActiveScriptStats_Impl: Sized { +pub trait IActiveScriptStats_Impl: Sized + windows_core::IUnknownImpl { fn GetStat(&self, stid: u32, pluhi: *mut u32, plulo: *mut u32) -> windows_core::Result<()>; fn GetStatEx(&self, guid: *const windows_core::GUID, pluhi: *mut u32, plulo: *mut u32) -> windows_core::Result<()>; fn ResetStats(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveScriptStats {} impl IActiveScriptStats_Vtbl { - pub const fn new() -> IActiveScriptStats_Vtbl - where - Identity: IActiveScriptStats_Impl, - { - unsafe extern "system" fn GetStat(this: *mut core::ffi::c_void, stid: u32, pluhi: *mut u32, plulo: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveScriptStats_Impl, - { + pub const fn new() -> IActiveScriptStats_Vtbl { + unsafe extern "system" fn GetStat(this: *mut core::ffi::c_void, stid: u32, pluhi: *mut u32, plulo: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptStats_Impl::GetStat(this, core::mem::transmute_copy(&stid), core::mem::transmute_copy(&pluhi), core::mem::transmute_copy(&plulo)).into() } - unsafe extern "system" fn GetStatEx(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pluhi: *mut u32, plulo: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveScriptStats_Impl, - { + unsafe extern "system" fn GetStatEx(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pluhi: *mut u32, plulo: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptStats_Impl::GetStatEx(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pluhi), core::mem::transmute_copy(&plulo)).into() } - unsafe extern "system" fn ResetStats(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptStats_Impl, - { + unsafe extern "system" fn ResetStats(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptStats_Impl::ResetStats(this).into() } @@ -1872,19 +1410,13 @@ impl IActiveScriptStats_Vtbl { iid == &::IID } } -pub trait IActiveScriptStringCompare_Impl: Sized { +pub trait IActiveScriptStringCompare_Impl: Sized + windows_core::IUnknownImpl { fn StrComp(&self, bszstr1: &windows_core::BSTR, bszstr2: &windows_core::BSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IActiveScriptStringCompare {} impl IActiveScriptStringCompare_Vtbl { - pub const fn new() -> IActiveScriptStringCompare_Vtbl - where - Identity: IActiveScriptStringCompare_Impl, - { - unsafe extern "system" fn StrComp(this: *mut core::ffi::c_void, bszstr1: core::mem::MaybeUninit, bszstr2: core::mem::MaybeUninit, iret: *mut i32) -> windows_core::HRESULT - where - Identity: IActiveScriptStringCompare_Impl, - { + pub const fn new() -> IActiveScriptStringCompare_Vtbl { + unsafe extern "system" fn StrComp(this: *mut core::ffi::c_void, bszstr1: core::mem::MaybeUninit, bszstr2: core::mem::MaybeUninit, iret: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptStringCompare_Impl::StrComp(this, core::mem::transmute(&bszstr1), core::mem::transmute(&bszstr2)) { Ok(ok__) => { @@ -1900,27 +1432,18 @@ impl IActiveScriptStringCompare_Vtbl { iid == &::IID } } -pub trait IActiveScriptTraceInfo_Impl: Sized { +pub trait IActiveScriptTraceInfo_Impl: Sized + windows_core::IUnknownImpl { fn StartScriptTracing(&self, psitetraceinfo: Option<&IActiveScriptSiteTraceInfo>, guidcontextid: &windows_core::GUID) -> windows_core::Result<()>; fn StopScriptTracing(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveScriptTraceInfo {} impl IActiveScriptTraceInfo_Vtbl { - pub const fn new() -> IActiveScriptTraceInfo_Vtbl - where - Identity: IActiveScriptTraceInfo_Impl, - { - unsafe extern "system" fn StartScriptTracing(this: *mut core::ffi::c_void, psitetraceinfo: *mut core::ffi::c_void, guidcontextid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IActiveScriptTraceInfo_Impl, - { + pub const fn new() -> IActiveScriptTraceInfo_Vtbl { + unsafe extern "system" fn StartScriptTracing(this: *mut core::ffi::c_void, psitetraceinfo: *mut core::ffi::c_void, guidcontextid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptTraceInfo_Impl::StartScriptTracing(this, windows_core::from_raw_borrowed(&psitetraceinfo), core::mem::transmute(&guidcontextid)).into() } - unsafe extern "system" fn StopScriptTracing(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveScriptTraceInfo_Impl, - { + unsafe extern "system" fn StopScriptTracing(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptTraceInfo_Impl::StopScriptTracing(this).into() } @@ -1944,14 +1467,8 @@ pub trait IActiveScriptWinRTErrorDebug_Impl: Sized + IActiveScriptError_Impl { impl windows_core::RuntimeName for IActiveScriptWinRTErrorDebug {} #[cfg(feature = "Win32_System_Com")] impl IActiveScriptWinRTErrorDebug_Vtbl { - pub const fn new() -> IActiveScriptWinRTErrorDebug_Vtbl - where - Identity: IActiveScriptWinRTErrorDebug_Impl, - { - unsafe extern "system" fn GetRestrictedErrorString(this: *mut core::ffi::c_void, errorstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActiveScriptWinRTErrorDebug_Impl, - { + pub const fn new() -> IActiveScriptWinRTErrorDebug_Vtbl { + unsafe extern "system" fn GetRestrictedErrorString(this: *mut core::ffi::c_void, errorstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptWinRTErrorDebug_Impl::GetRestrictedErrorString(this) { Ok(ok__) => { @@ -1961,10 +1478,7 @@ impl IActiveScriptWinRTErrorDebug_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRestrictedErrorReference(this: *mut core::ffi::c_void, referencestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActiveScriptWinRTErrorDebug_Impl, - { + unsafe extern "system" fn GetRestrictedErrorReference(this: *mut core::ffi::c_void, referencestring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptWinRTErrorDebug_Impl::GetRestrictedErrorReference(this) { Ok(ok__) => { @@ -1974,10 +1488,7 @@ impl IActiveScriptWinRTErrorDebug_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCapabilitySid(this: *mut core::ffi::c_void, capabilitysid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActiveScriptWinRTErrorDebug_Impl, - { + unsafe extern "system" fn GetCapabilitySid(this: *mut core::ffi::c_void, capabilitysid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptWinRTErrorDebug_Impl::GetCapabilitySid(this) { Ok(ok__) => { @@ -1998,7 +1509,7 @@ impl IActiveScriptWinRTErrorDebug_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IApplicationDebugger_Impl: Sized { +pub trait IApplicationDebugger_Impl: Sized + windows_core::IUnknownImpl { fn QueryAlive(&self) -> windows_core::Result<()>; fn CreateInstanceAtDebugger(&self, rclsid: *const windows_core::GUID, punkouter: Option<&windows_core::IUnknown>, dwclscontext: u32, riid: *const windows_core::GUID) -> windows_core::Result; fn onDebugOutput(&self, pstr: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -2008,21 +1519,12 @@ pub trait IApplicationDebugger_Impl: Sized { } impl windows_core::RuntimeName for IApplicationDebugger {} impl IApplicationDebugger_Vtbl { - pub const fn new() -> IApplicationDebugger_Vtbl - where - Identity: IApplicationDebugger_Impl, - { - unsafe extern "system" fn QueryAlive(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApplicationDebugger_Impl, - { + pub const fn new() -> IApplicationDebugger_Vtbl { + unsafe extern "system" fn QueryAlive(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDebugger_Impl::QueryAlive(this).into() } - unsafe extern "system" fn CreateInstanceAtDebugger(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 - where - Identity: IApplicationDebugger_Impl, - { + unsafe extern "system" fn CreateInstanceAtDebugger(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationDebugger_Impl::CreateInstanceAtDebugger(this, core::mem::transmute_copy(&rclsid), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&dwclscontext), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -2032,31 +1534,19 @@ impl IApplicationDebugger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn onDebugOutput(this: *mut core::ffi::c_void, pstr: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IApplicationDebugger_Impl, - { + unsafe extern "system" fn onDebugOutput(this: *mut core::ffi::c_void, pstr: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDebugger_Impl::onDebugOutput(this, core::mem::transmute(&pstr)).into() } - unsafe extern "system" fn onHandleBreakPoint(this: *mut core::ffi::c_void, prpt: *mut core::ffi::c_void, br: BREAKREASON, perror: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApplicationDebugger_Impl, - { + unsafe extern "system" fn onHandleBreakPoint(this: *mut core::ffi::c_void, prpt: *mut core::ffi::c_void, br: BREAKREASON, perror: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDebugger_Impl::onHandleBreakPoint(this, windows_core::from_raw_borrowed(&prpt), core::mem::transmute_copy(&br), windows_core::from_raw_borrowed(&perror)).into() } - unsafe extern "system" fn onClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApplicationDebugger_Impl, - { + unsafe extern "system" fn onClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDebugger_Impl::onClose(this).into() } - unsafe extern "system" fn onDebuggerEvent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApplicationDebugger_Impl, - { + unsafe extern "system" fn onDebuggerEvent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDebugger_Impl::onDebuggerEvent(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk)).into() } @@ -2074,27 +1564,18 @@ impl IApplicationDebugger_Vtbl { iid == &::IID } } -pub trait IApplicationDebuggerUI_Impl: Sized { +pub trait IApplicationDebuggerUI_Impl: Sized + windows_core::IUnknownImpl { fn BringDocumentToTop(&self, pddt: Option<&IDebugDocumentText>) -> windows_core::Result<()>; fn BringDocumentContextToTop(&self, pddc: Option<&IDebugDocumentContext>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IApplicationDebuggerUI {} impl IApplicationDebuggerUI_Vtbl { - pub const fn new() -> IApplicationDebuggerUI_Vtbl - where - Identity: IApplicationDebuggerUI_Impl, - { - unsafe extern "system" fn BringDocumentToTop(this: *mut core::ffi::c_void, pddt: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApplicationDebuggerUI_Impl, - { + pub const fn new() -> IApplicationDebuggerUI_Vtbl { + unsafe extern "system" fn BringDocumentToTop(this: *mut core::ffi::c_void, pddt: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDebuggerUI_Impl::BringDocumentToTop(this, windows_core::from_raw_borrowed(&pddt)).into() } - unsafe extern "system" fn BringDocumentContextToTop(this: *mut core::ffi::c_void, pddc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApplicationDebuggerUI_Impl, - { + unsafe extern "system" fn BringDocumentContextToTop(this: *mut core::ffi::c_void, pddc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDebuggerUI_Impl::BringDocumentContextToTop(this, windows_core::from_raw_borrowed(&pddc)).into() } @@ -2109,21 +1590,15 @@ impl IApplicationDebuggerUI_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IBindEventHandler_Impl: Sized { +pub trait IBindEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn BindHandler(&self, pstrevent: &windows_core::PCWSTR, pdisp: Option<&super::super::super::Com::IDispatch>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IBindEventHandler {} #[cfg(feature = "Win32_System_Com")] impl IBindEventHandler_Vtbl { - pub const fn new() -> IBindEventHandler_Vtbl - where - Identity: IBindEventHandler_Impl, - { - unsafe extern "system" fn BindHandler(this: *mut core::ffi::c_void, pstrevent: windows_core::PCWSTR, pdisp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindEventHandler_Impl, - { + pub const fn new() -> IBindEventHandler_Vtbl { + unsafe extern "system" fn BindHandler(this: *mut core::ffi::c_void, pstrevent: windows_core::PCWSTR, pdisp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindEventHandler_Impl::BindHandler(this, core::mem::transmute(&pstrevent), windows_core::from_raw_borrowed(&pdisp)).into() } @@ -2140,28 +1615,16 @@ pub trait IDebugApplication11032_Impl: Sized + IRemoteDebugApplication110_Impl { } impl windows_core::RuntimeName for IDebugApplication11032 {} impl IDebugApplication11032_Vtbl { - pub const fn new() -> IDebugApplication11032_Vtbl - where - Identity: IDebugApplication11032_Impl, - { - unsafe extern "system" fn SynchronousCallInMainThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT - where - Identity: IDebugApplication11032_Impl, - { + pub const fn new() -> IDebugApplication11032_Vtbl { + unsafe extern "system" fn SynchronousCallInMainThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication11032_Impl::SynchronousCallInMainThread(this, windows_core::from_raw_borrowed(&pptc), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } - unsafe extern "system" fn AsynchronousCallInMainThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT - where - Identity: IDebugApplication11032_Impl, - { + unsafe extern "system" fn AsynchronousCallInMainThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication11032_Impl::AsynchronousCallInMainThread(this, windows_core::from_raw_borrowed(&pptc), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } - unsafe extern "system" fn CallableWaitForHandles(this: *mut core::ffi::c_void, handlecount: u32, phandles: *const super::super::super::super::Foundation::HANDLE, pindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugApplication11032_Impl, - { + unsafe extern "system" fn CallableWaitForHandles(this: *mut core::ffi::c_void, handlecount: u32, phandles: *const super::super::super::super::Foundation::HANDLE, pindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication11032_Impl::CallableWaitForHandles(this, core::mem::transmute_copy(&handlecount), core::mem::transmute_copy(&phandles)) { Ok(ok__) => { @@ -2189,28 +1652,16 @@ pub trait IDebugApplication11064_Impl: Sized + IRemoteDebugApplication110_Impl { } impl windows_core::RuntimeName for IDebugApplication11064 {} impl IDebugApplication11064_Vtbl { - pub const fn new() -> IDebugApplication11064_Vtbl - where - Identity: IDebugApplication11064_Impl, - { - unsafe extern "system" fn SynchronousCallInMainThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT - where - Identity: IDebugApplication11064_Impl, - { + pub const fn new() -> IDebugApplication11064_Vtbl { + unsafe extern "system" fn SynchronousCallInMainThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication11064_Impl::SynchronousCallInMainThread(this, windows_core::from_raw_borrowed(&pptc), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } - unsafe extern "system" fn AsynchronousCallInMainThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT - where - Identity: IDebugApplication11064_Impl, - { + unsafe extern "system" fn AsynchronousCallInMainThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication11064_Impl::AsynchronousCallInMainThread(this, windows_core::from_raw_borrowed(&pptc), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } - unsafe extern "system" fn CallableWaitForHandles(this: *mut core::ffi::c_void, handlecount: u32, phandles: *const super::super::super::super::Foundation::HANDLE, pindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugApplication11064_Impl, - { + unsafe extern "system" fn CallableWaitForHandles(this: *mut core::ffi::c_void, handlecount: u32, phandles: *const super::super::super::super::Foundation::HANDLE, pindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication11064_Impl::CallableWaitForHandles(this, core::mem::transmute_copy(&handlecount), core::mem::transmute_copy(&phandles)) { Ok(ok__) => { @@ -2255,42 +1706,24 @@ pub trait IDebugApplication32_Impl: Sized + IRemoteDebugApplication_Impl { } impl windows_core::RuntimeName for IDebugApplication32 {} impl IDebugApplication32_Vtbl { - pub const fn new() -> IDebugApplication32_Vtbl - where - Identity: IDebugApplication32_Impl, - { - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + pub const fn new() -> IDebugApplication32_Vtbl { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::SetName(this, core::mem::transmute(&pstrname)).into() } - unsafe extern "system" fn StepOutComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn StepOutComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::StepOutComplete(this).into() } - unsafe extern "system" fn DebugOutput(this: *mut core::ffi::c_void, pstr: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn DebugOutput(this: *mut core::ffi::c_void, pstr: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::DebugOutput(this, core::mem::transmute(&pstr)).into() } - unsafe extern "system" fn StartDebugSession(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn StartDebugSession(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::StartDebugSession(this).into() } - unsafe extern "system" fn HandleBreakPoint(this: *mut core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUMEACTION) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn HandleBreakPoint(this: *mut core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUMEACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication32_Impl::HandleBreakPoint(this, core::mem::transmute_copy(&br)) { Ok(ok__) => { @@ -2300,24 +1733,15 @@ impl IDebugApplication32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::Close(this).into() } - unsafe extern "system" fn GetBreakFlags(this: *mut core::ffi::c_void, pabf: *mut u32, pprdatsteppingthread: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn GetBreakFlags(this: *mut core::ffi::c_void, pabf: *mut u32, pprdatsteppingthread: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::GetBreakFlags(this, core::mem::transmute_copy(&pabf), core::mem::transmute_copy(&pprdatsteppingthread)).into() } - unsafe extern "system" fn GetCurrentThread(this: *mut core::ffi::c_void, pat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn GetCurrentThread(this: *mut core::ffi::c_void, pat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication32_Impl::GetCurrentThread(this) { Ok(ok__) => { @@ -2327,10 +1751,7 @@ impl IDebugApplication32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAsyncDebugOperation(this: *mut core::ffi::c_void, psdo: *mut core::ffi::c_void, ppado: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn CreateAsyncDebugOperation(this: *mut core::ffi::c_void, psdo: *mut core::ffi::c_void, ppado: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication32_Impl::CreateAsyncDebugOperation(this, windows_core::from_raw_borrowed(&psdo)) { Ok(ok__) => { @@ -2340,10 +1761,7 @@ impl IDebugApplication32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStackFrameSniffer(this: *mut core::ffi::c_void, pdsfs: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn AddStackFrameSniffer(this: *mut core::ffi::c_void, pdsfs: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication32_Impl::AddStackFrameSniffer(this, windows_core::from_raw_borrowed(&pdsfs)) { Ok(ok__) => { @@ -2353,31 +1771,19 @@ impl IDebugApplication32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveStackFrameSniffer(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn RemoveStackFrameSniffer(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::RemoveStackFrameSniffer(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn QueryCurrentThreadIsDebuggerThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn QueryCurrentThreadIsDebuggerThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::QueryCurrentThreadIsDebuggerThread(this).into() } - unsafe extern "system" fn SynchronousCallInDebuggerThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn SynchronousCallInDebuggerThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::SynchronousCallInDebuggerThread(this, windows_core::from_raw_borrowed(&pptc), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } - unsafe extern "system" fn CreateApplicationNode(this: *mut core::ffi::c_void, ppdannew: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn CreateApplicationNode(this: *mut core::ffi::c_void, ppdannew: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication32_Impl::CreateApplicationNode(this) { Ok(ok__) => { @@ -2387,38 +1793,23 @@ impl IDebugApplication32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FireDebuggerEvent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn FireDebuggerEvent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::FireDebuggerEvent(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn HandleRuntimeError(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pscriptsite: *mut core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn HandleRuntimeError(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pscriptsite: *mut core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::HandleRuntimeError(this, windows_core::from_raw_borrowed(&perrordebug), windows_core::from_raw_borrowed(&pscriptsite), core::mem::transmute_copy(&pbra), core::mem::transmute_copy(&perra), core::mem::transmute_copy(&pfcallonscripterror)).into() } - unsafe extern "system" fn FCanJitDebug(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn FCanJitDebug(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::FCanJitDebug(this) } - unsafe extern "system" fn FIsAutoJitDebugEnabled(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn FIsAutoJitDebugEnabled(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::FIsAutoJitDebugEnabled(this) } - unsafe extern "system" fn AddGlobalExpressionContextProvider(this: *mut core::ffi::c_void, pdsfs: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn AddGlobalExpressionContextProvider(this: *mut core::ffi::c_void, pdsfs: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication32_Impl::AddGlobalExpressionContextProvider(this, windows_core::from_raw_borrowed(&pdsfs)) { Ok(ok__) => { @@ -2428,10 +1819,7 @@ impl IDebugApplication32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveGlobalExpressionContextProvider(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IDebugApplication32_Impl, - { + unsafe extern "system" fn RemoveGlobalExpressionContextProvider(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::RemoveGlobalExpressionContextProvider(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -2487,42 +1875,24 @@ pub trait IDebugApplication64_Impl: Sized + IRemoteDebugApplication_Impl { } impl windows_core::RuntimeName for IDebugApplication64 {} impl IDebugApplication64_Vtbl { - pub const fn new() -> IDebugApplication64_Vtbl - where - Identity: IDebugApplication64_Impl, - { - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + pub const fn new() -> IDebugApplication64_Vtbl { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::SetName(this, core::mem::transmute(&pstrname)).into() } - unsafe extern "system" fn StepOutComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn StepOutComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::StepOutComplete(this).into() } - unsafe extern "system" fn DebugOutput(this: *mut core::ffi::c_void, pstr: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn DebugOutput(this: *mut core::ffi::c_void, pstr: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::DebugOutput(this, core::mem::transmute(&pstr)).into() } - unsafe extern "system" fn StartDebugSession(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn StartDebugSession(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::StartDebugSession(this).into() } - unsafe extern "system" fn HandleBreakPoint(this: *mut core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUMEACTION) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn HandleBreakPoint(this: *mut core::ffi::c_void, br: BREAKREASON, pbra: *mut BREAKRESUMEACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication64_Impl::HandleBreakPoint(this, core::mem::transmute_copy(&br)) { Ok(ok__) => { @@ -2532,24 +1902,15 @@ impl IDebugApplication64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::Close(this).into() } - unsafe extern "system" fn GetBreakFlags(this: *mut core::ffi::c_void, pabf: *mut u32, pprdatsteppingthread: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn GetBreakFlags(this: *mut core::ffi::c_void, pabf: *mut u32, pprdatsteppingthread: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::GetBreakFlags(this, core::mem::transmute_copy(&pabf), core::mem::transmute_copy(&pprdatsteppingthread)).into() } - unsafe extern "system" fn GetCurrentThread(this: *mut core::ffi::c_void, pat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn GetCurrentThread(this: *mut core::ffi::c_void, pat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication64_Impl::GetCurrentThread(this) { Ok(ok__) => { @@ -2559,10 +1920,7 @@ impl IDebugApplication64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAsyncDebugOperation(this: *mut core::ffi::c_void, psdo: *mut core::ffi::c_void, ppado: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn CreateAsyncDebugOperation(this: *mut core::ffi::c_void, psdo: *mut core::ffi::c_void, ppado: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication64_Impl::CreateAsyncDebugOperation(this, windows_core::from_raw_borrowed(&psdo)) { Ok(ok__) => { @@ -2572,10 +1930,7 @@ impl IDebugApplication64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStackFrameSniffer(this: *mut core::ffi::c_void, pdsfs: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn AddStackFrameSniffer(this: *mut core::ffi::c_void, pdsfs: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication64_Impl::AddStackFrameSniffer(this, windows_core::from_raw_borrowed(&pdsfs)) { Ok(ok__) => { @@ -2585,31 +1940,19 @@ impl IDebugApplication64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveStackFrameSniffer(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn RemoveStackFrameSniffer(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::RemoveStackFrameSniffer(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn QueryCurrentThreadIsDebuggerThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn QueryCurrentThreadIsDebuggerThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::QueryCurrentThreadIsDebuggerThread(this).into() } - unsafe extern "system" fn SynchronousCallInDebuggerThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn SynchronousCallInDebuggerThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::SynchronousCallInDebuggerThread(this, windows_core::from_raw_borrowed(&pptc), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } - unsafe extern "system" fn CreateApplicationNode(this: *mut core::ffi::c_void, ppdannew: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn CreateApplicationNode(this: *mut core::ffi::c_void, ppdannew: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication64_Impl::CreateApplicationNode(this) { Ok(ok__) => { @@ -2619,38 +1962,23 @@ impl IDebugApplication64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FireDebuggerEvent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn FireDebuggerEvent(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::FireDebuggerEvent(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn HandleRuntimeError(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pscriptsite: *mut core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn HandleRuntimeError(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pscriptsite: *mut core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::HandleRuntimeError(this, windows_core::from_raw_borrowed(&perrordebug), windows_core::from_raw_borrowed(&pscriptsite), core::mem::transmute_copy(&pbra), core::mem::transmute_copy(&perra), core::mem::transmute_copy(&pfcallonscripterror)).into() } - unsafe extern "system" fn FCanJitDebug(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn FCanJitDebug(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::FCanJitDebug(this) } - unsafe extern "system" fn FIsAutoJitDebugEnabled(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn FIsAutoJitDebugEnabled(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::FIsAutoJitDebugEnabled(this) } - unsafe extern "system" fn AddGlobalExpressionContextProvider(this: *mut core::ffi::c_void, pdsfs: *mut core::ffi::c_void, pdwcookie: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn AddGlobalExpressionContextProvider(this: *mut core::ffi::c_void, pdsfs: *mut core::ffi::c_void, pdwcookie: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplication64_Impl::AddGlobalExpressionContextProvider(this, windows_core::from_raw_borrowed(&pdsfs)) { Ok(ok__) => { @@ -2660,10 +1988,7 @@ impl IDebugApplication64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveGlobalExpressionContextProvider(this: *mut core::ffi::c_void, dwcookie: u64) -> windows_core::HRESULT - where - Identity: IDebugApplication64_Impl, - { + unsafe extern "system" fn RemoveGlobalExpressionContextProvider(this: *mut core::ffi::c_void, dwcookie: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::RemoveGlobalExpressionContextProvider(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -2705,14 +2030,8 @@ pub trait IDebugApplicationNode_Impl: Sized + IDebugDocumentProvider_Impl { } impl windows_core::RuntimeName for IDebugApplicationNode {} impl IDebugApplicationNode_Vtbl { - pub const fn new() -> IDebugApplicationNode_Vtbl - where - Identity: IDebugApplicationNode_Impl, - { - unsafe extern "system" fn EnumChildren(this: *mut core::ffi::c_void, pperddp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNode_Impl, - { + pub const fn new() -> IDebugApplicationNode_Vtbl { + unsafe extern "system" fn EnumChildren(this: *mut core::ffi::c_void, pperddp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationNode_Impl::EnumChildren(this) { Ok(ok__) => { @@ -2722,10 +2041,7 @@ impl IDebugApplicationNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, pprddp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNode_Impl, - { + unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, pprddp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationNode_Impl::GetParent(this) { Ok(ok__) => { @@ -2735,31 +2051,19 @@ impl IDebugApplicationNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDocumentProvider(this: *mut core::ffi::c_void, pddp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNode_Impl, - { + unsafe extern "system" fn SetDocumentProvider(this: *mut core::ffi::c_void, pddp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationNode_Impl::SetDocumentProvider(this, windows_core::from_raw_borrowed(&pddp)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNode_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationNode_Impl::Close(this).into() } - unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, pdanparent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNode_Impl, - { + unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, pdanparent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationNode_Impl::Attach(this, windows_core::from_raw_borrowed(&pdanparent)).into() } - unsafe extern "system" fn Detach(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNode_Impl, - { + unsafe extern "system" fn Detach(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationNode_Impl::Detach(this).into() } @@ -2777,28 +2081,19 @@ impl IDebugApplicationNode_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDebugApplicationNode100_Impl: Sized { +pub trait IDebugApplicationNode100_Impl: Sized + windows_core::IUnknownImpl { fn SetFilterForEventSink(&self, dwcookie: u32, filter: APPLICATION_NODE_EVENT_FILTER) -> windows_core::Result<()>; fn GetExcludedDocuments(&self, filter: APPLICATION_NODE_EVENT_FILTER) -> windows_core::Result; fn QueryIsChildNode(&self, psearchkey: Option<&IDebugDocument>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugApplicationNode100 {} impl IDebugApplicationNode100_Vtbl { - pub const fn new() -> IDebugApplicationNode100_Vtbl - where - Identity: IDebugApplicationNode100_Impl, - { - unsafe extern "system" fn SetFilterForEventSink(this: *mut core::ffi::c_void, dwcookie: u32, filter: APPLICATION_NODE_EVENT_FILTER) -> windows_core::HRESULT - where - Identity: IDebugApplicationNode100_Impl, - { + pub const fn new() -> IDebugApplicationNode100_Vtbl { + unsafe extern "system" fn SetFilterForEventSink(this: *mut core::ffi::c_void, dwcookie: u32, filter: APPLICATION_NODE_EVENT_FILTER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationNode100_Impl::SetFilterForEventSink(this, core::mem::transmute_copy(&dwcookie), core::mem::transmute_copy(&filter)).into() } - unsafe extern "system" fn GetExcludedDocuments(this: *mut core::ffi::c_void, filter: APPLICATION_NODE_EVENT_FILTER, pdocuments: *mut TEXT_DOCUMENT_ARRAY) -> windows_core::HRESULT - where - Identity: IDebugApplicationNode100_Impl, - { + unsafe extern "system" fn GetExcludedDocuments(this: *mut core::ffi::c_void, filter: APPLICATION_NODE_EVENT_FILTER, pdocuments: *mut TEXT_DOCUMENT_ARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationNode100_Impl::GetExcludedDocuments(this, core::mem::transmute_copy(&filter)) { Ok(ok__) => { @@ -2808,10 +2103,7 @@ impl IDebugApplicationNode100_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryIsChildNode(this: *mut core::ffi::c_void, psearchkey: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNode100_Impl, - { + unsafe extern "system" fn QueryIsChildNode(this: *mut core::ffi::c_void, psearchkey: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationNode100_Impl::QueryIsChildNode(this, windows_core::from_raw_borrowed(&psearchkey)).into() } @@ -2826,7 +2118,7 @@ impl IDebugApplicationNode100_Vtbl { iid == &::IID } } -pub trait IDebugApplicationNodeEvents_Impl: Sized { +pub trait IDebugApplicationNodeEvents_Impl: Sized + windows_core::IUnknownImpl { fn onAddChild(&self, prddpchild: Option<&IDebugApplicationNode>) -> windows_core::Result<()>; fn onRemoveChild(&self, prddpchild: Option<&IDebugApplicationNode>) -> windows_core::Result<()>; fn onDetach(&self) -> windows_core::Result<()>; @@ -2834,35 +2126,20 @@ pub trait IDebugApplicationNodeEvents_Impl: Sized { } impl windows_core::RuntimeName for IDebugApplicationNodeEvents {} impl IDebugApplicationNodeEvents_Vtbl { - pub const fn new() -> IDebugApplicationNodeEvents_Vtbl - where - Identity: IDebugApplicationNodeEvents_Impl, - { - unsafe extern "system" fn onAddChild(this: *mut core::ffi::c_void, prddpchild: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNodeEvents_Impl, - { + pub const fn new() -> IDebugApplicationNodeEvents_Vtbl { + unsafe extern "system" fn onAddChild(this: *mut core::ffi::c_void, prddpchild: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationNodeEvents_Impl::onAddChild(this, windows_core::from_raw_borrowed(&prddpchild)).into() } - unsafe extern "system" fn onRemoveChild(this: *mut core::ffi::c_void, prddpchild: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNodeEvents_Impl, - { + unsafe extern "system" fn onRemoveChild(this: *mut core::ffi::c_void, prddpchild: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationNodeEvents_Impl::onRemoveChild(this, windows_core::from_raw_borrowed(&prddpchild)).into() } - unsafe extern "system" fn onDetach(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNodeEvents_Impl, - { + unsafe extern "system" fn onDetach(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationNodeEvents_Impl::onDetach(this).into() } - unsafe extern "system" fn onAttach(this: *mut core::ffi::c_void, prddpparent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationNodeEvents_Impl, - { + unsafe extern "system" fn onAttach(this: *mut core::ffi::c_void, prddpparent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationNodeEvents_Impl::onAttach(this, windows_core::from_raw_borrowed(&prddpparent)).into() } @@ -2887,42 +2164,24 @@ pub trait IDebugApplicationThread_Impl: Sized + IRemoteDebugApplicationThread_Im } impl windows_core::RuntimeName for IDebugApplicationThread {} impl IDebugApplicationThread_Vtbl { - pub const fn new() -> IDebugApplicationThread_Vtbl - where - Identity: IDebugApplicationThread_Impl, - { - unsafe extern "system" fn SynchronousCallIntoThread32(this: *mut core::ffi::c_void, pstcb: *mut core::ffi::c_void, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread_Impl, - { + pub const fn new() -> IDebugApplicationThread_Vtbl { + unsafe extern "system" fn SynchronousCallIntoThread32(this: *mut core::ffi::c_void, pstcb: *mut core::ffi::c_void, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThread_Impl::SynchronousCallIntoThread32(this, windows_core::from_raw_borrowed(&pstcb), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } - unsafe extern "system" fn QueryIsCurrentThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread_Impl, - { + unsafe extern "system" fn QueryIsCurrentThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThread_Impl::QueryIsCurrentThread(this).into() } - unsafe extern "system" fn QueryIsDebuggerThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread_Impl, - { + unsafe extern "system" fn QueryIsDebuggerThread(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThread_Impl::QueryIsDebuggerThread(this).into() } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pstrdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pstrdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThread_Impl::SetDescription(this, core::mem::transmute(&pstrdescription)).into() } - unsafe extern "system" fn SetStateString(this: *mut core::ffi::c_void, pstrstate: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread_Impl, - { + unsafe extern "system" fn SetStateString(this: *mut core::ffi::c_void, pstrstate: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThread_Impl::SetStateString(this, core::mem::transmute(&pstrstate)).into() } @@ -2939,7 +2198,7 @@ impl IDebugApplicationThread_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDebugApplicationThread11032_Impl: Sized { +pub trait IDebugApplicationThread11032_Impl: Sized + windows_core::IUnknownImpl { fn GetActiveThreadRequestCount(&self) -> windows_core::Result; fn IsSuspendedForBreakPoint(&self) -> windows_core::Result; fn IsThreadCallable(&self) -> windows_core::Result; @@ -2947,14 +2206,8 @@ pub trait IDebugApplicationThread11032_Impl: Sized { } impl windows_core::RuntimeName for IDebugApplicationThread11032 {} impl IDebugApplicationThread11032_Vtbl { - pub const fn new() -> IDebugApplicationThread11032_Vtbl - where - Identity: IDebugApplicationThread11032_Impl, - { - unsafe extern "system" fn GetActiveThreadRequestCount(this: *mut core::ffi::c_void, puithreadrequests: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread11032_Impl, - { + pub const fn new() -> IDebugApplicationThread11032_Vtbl { + unsafe extern "system" fn GetActiveThreadRequestCount(this: *mut core::ffi::c_void, puithreadrequests: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationThread11032_Impl::GetActiveThreadRequestCount(this) { Ok(ok__) => { @@ -2964,10 +2217,7 @@ impl IDebugApplicationThread11032_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSuspendedForBreakPoint(this: *mut core::ffi::c_void, pfissuspended: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread11032_Impl, - { + unsafe extern "system" fn IsSuspendedForBreakPoint(this: *mut core::ffi::c_void, pfissuspended: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationThread11032_Impl::IsSuspendedForBreakPoint(this) { Ok(ok__) => { @@ -2977,10 +2227,7 @@ impl IDebugApplicationThread11032_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsThreadCallable(this: *mut core::ffi::c_void, pfiscallable: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread11032_Impl, - { + unsafe extern "system" fn IsThreadCallable(this: *mut core::ffi::c_void, pfiscallable: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationThread11032_Impl::IsThreadCallable(this) { Ok(ok__) => { @@ -2990,10 +2237,7 @@ impl IDebugApplicationThread11032_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AsynchronousCallIntoThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread11032_Impl, - { + unsafe extern "system" fn AsynchronousCallIntoThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThread11032_Impl::AsynchronousCallIntoThread(this, windows_core::from_raw_borrowed(&pptc), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } @@ -3009,7 +2253,7 @@ impl IDebugApplicationThread11032_Vtbl { iid == &::IID } } -pub trait IDebugApplicationThread11064_Impl: Sized { +pub trait IDebugApplicationThread11064_Impl: Sized + windows_core::IUnknownImpl { fn GetActiveThreadRequestCount(&self) -> windows_core::Result; fn IsSuspendedForBreakPoint(&self) -> windows_core::Result; fn IsThreadCallable(&self) -> windows_core::Result; @@ -3017,14 +2261,8 @@ pub trait IDebugApplicationThread11064_Impl: Sized { } impl windows_core::RuntimeName for IDebugApplicationThread11064 {} impl IDebugApplicationThread11064_Vtbl { - pub const fn new() -> IDebugApplicationThread11064_Vtbl - where - Identity: IDebugApplicationThread11064_Impl, - { - unsafe extern "system" fn GetActiveThreadRequestCount(this: *mut core::ffi::c_void, puithreadrequests: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread11064_Impl, - { + pub const fn new() -> IDebugApplicationThread11064_Vtbl { + unsafe extern "system" fn GetActiveThreadRequestCount(this: *mut core::ffi::c_void, puithreadrequests: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationThread11064_Impl::GetActiveThreadRequestCount(this) { Ok(ok__) => { @@ -3034,10 +2272,7 @@ impl IDebugApplicationThread11064_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSuspendedForBreakPoint(this: *mut core::ffi::c_void, pfissuspended: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread11064_Impl, - { + unsafe extern "system" fn IsSuspendedForBreakPoint(this: *mut core::ffi::c_void, pfissuspended: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationThread11064_Impl::IsSuspendedForBreakPoint(this) { Ok(ok__) => { @@ -3047,10 +2282,7 @@ impl IDebugApplicationThread11064_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsThreadCallable(this: *mut core::ffi::c_void, pfiscallable: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread11064_Impl, - { + unsafe extern "system" fn IsThreadCallable(this: *mut core::ffi::c_void, pfiscallable: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationThread11064_Impl::IsThreadCallable(this) { Ok(ok__) => { @@ -3060,10 +2292,7 @@ impl IDebugApplicationThread11064_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AsynchronousCallIntoThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread11064_Impl, - { + unsafe extern "system" fn AsynchronousCallIntoThread(this: *mut core::ffi::c_void, pptc: *mut core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThread11064_Impl::AsynchronousCallIntoThread(this, windows_core::from_raw_borrowed(&pptc), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } @@ -3084,14 +2313,8 @@ pub trait IDebugApplicationThread64_Impl: Sized + IDebugApplicationThread_Impl { } impl windows_core::RuntimeName for IDebugApplicationThread64 {} impl IDebugApplicationThread64_Vtbl { - pub const fn new() -> IDebugApplicationThread64_Vtbl - where - Identity: IDebugApplicationThread64_Impl, - { - unsafe extern "system" fn SynchronousCallIntoThread64(this: *mut core::ffi::c_void, pstcb: *mut core::ffi::c_void, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::HRESULT - where - Identity: IDebugApplicationThread64_Impl, - { + pub const fn new() -> IDebugApplicationThread64_Vtbl { + unsafe extern "system" fn SynchronousCallIntoThread64(this: *mut core::ffi::c_void, pstcb: *mut core::ffi::c_void, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThread64_Impl::SynchronousCallIntoThread64(this, windows_core::from_raw_borrowed(&pstcb), core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } @@ -3101,7 +2324,7 @@ impl IDebugApplicationThread64_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDebugApplicationThreadEvents110_Impl: Sized { +pub trait IDebugApplicationThreadEvents110_Impl: Sized + windows_core::IUnknownImpl { fn OnSuspendForBreakPoint(&self) -> windows_core::Result<()>; fn OnResumeFromBreakPoint(&self) -> windows_core::Result<()>; fn OnThreadRequestComplete(&self) -> windows_core::Result<()>; @@ -3109,35 +2332,20 @@ pub trait IDebugApplicationThreadEvents110_Impl: Sized { } impl windows_core::RuntimeName for IDebugApplicationThreadEvents110 {} impl IDebugApplicationThreadEvents110_Vtbl { - pub const fn new() -> IDebugApplicationThreadEvents110_Vtbl - where - Identity: IDebugApplicationThreadEvents110_Impl, - { - unsafe extern "system" fn OnSuspendForBreakPoint(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationThreadEvents110_Impl, - { + pub const fn new() -> IDebugApplicationThreadEvents110_Vtbl { + unsafe extern "system" fn OnSuspendForBreakPoint(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThreadEvents110_Impl::OnSuspendForBreakPoint(this).into() } - unsafe extern "system" fn OnResumeFromBreakPoint(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationThreadEvents110_Impl, - { + unsafe extern "system" fn OnResumeFromBreakPoint(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThreadEvents110_Impl::OnResumeFromBreakPoint(this).into() } - unsafe extern "system" fn OnThreadRequestComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationThreadEvents110_Impl, - { + unsafe extern "system" fn OnThreadRequestComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThreadEvents110_Impl::OnThreadRequestComplete(this).into() } - unsafe extern "system" fn OnBeginThreadRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugApplicationThreadEvents110_Impl, - { + unsafe extern "system" fn OnBeginThreadRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplicationThreadEvents110_Impl::OnBeginThreadRequest(this).into() } @@ -3153,7 +2361,7 @@ impl IDebugApplicationThreadEvents110_Vtbl { iid == &::IID } } -pub trait IDebugAsyncOperation_Impl: Sized { +pub trait IDebugAsyncOperation_Impl: Sized + windows_core::IUnknownImpl { fn GetSyncDebugOperation(&self) -> windows_core::Result; fn Start(&self, padocb: Option<&IDebugAsyncOperationCallBack>) -> windows_core::Result<()>; fn Abort(&self) -> windows_core::Result<()>; @@ -3162,14 +2370,8 @@ pub trait IDebugAsyncOperation_Impl: Sized { } impl windows_core::RuntimeName for IDebugAsyncOperation {} impl IDebugAsyncOperation_Vtbl { - pub const fn new() -> IDebugAsyncOperation_Vtbl - where - Identity: IDebugAsyncOperation_Impl, - { - unsafe extern "system" fn GetSyncDebugOperation(this: *mut core::ffi::c_void, ppsdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugAsyncOperation_Impl, - { + pub const fn new() -> IDebugAsyncOperation_Vtbl { + unsafe extern "system" fn GetSyncDebugOperation(this: *mut core::ffi::c_void, ppsdo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugAsyncOperation_Impl::GetSyncDebugOperation(this) { Ok(ok__) => { @@ -3179,31 +2381,19 @@ impl IDebugAsyncOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, padocb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugAsyncOperation_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, padocb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAsyncOperation_Impl::Start(this, windows_core::from_raw_borrowed(&padocb)).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugAsyncOperation_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAsyncOperation_Impl::Abort(this).into() } - unsafe extern "system" fn QueryIsComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugAsyncOperation_Impl, - { + unsafe extern "system" fn QueryIsComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAsyncOperation_Impl::QueryIsComplete(this).into() } - unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, ppunkresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugAsyncOperation_Impl, - { + unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, ppunkresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAsyncOperation_Impl::GetResult(this, core::mem::transmute_copy(&phrresult), core::mem::transmute_copy(&ppunkresult)).into() } @@ -3220,19 +2410,13 @@ impl IDebugAsyncOperation_Vtbl { iid == &::IID } } -pub trait IDebugAsyncOperationCallBack_Impl: Sized { +pub trait IDebugAsyncOperationCallBack_Impl: Sized + windows_core::IUnknownImpl { fn onComplete(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugAsyncOperationCallBack {} impl IDebugAsyncOperationCallBack_Vtbl { - pub const fn new() -> IDebugAsyncOperationCallBack_Vtbl - where - Identity: IDebugAsyncOperationCallBack_Impl, - { - unsafe extern "system" fn onComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugAsyncOperationCallBack_Impl, - { + pub const fn new() -> IDebugAsyncOperationCallBack_Vtbl { + unsafe extern "system" fn onComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAsyncOperationCallBack_Impl::onComplete(this).into() } @@ -3242,20 +2426,14 @@ impl IDebugAsyncOperationCallBack_Vtbl { iid == &::IID } } -pub trait IDebugCodeContext_Impl: Sized { +pub trait IDebugCodeContext_Impl: Sized + windows_core::IUnknownImpl { fn GetDocumentContext(&self) -> windows_core::Result; fn SetBreakPoint(&self, bps: BREAKPOINT_STATE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugCodeContext {} impl IDebugCodeContext_Vtbl { - pub const fn new() -> IDebugCodeContext_Vtbl - where - Identity: IDebugCodeContext_Impl, - { - unsafe extern "system" fn GetDocumentContext(this: *mut core::ffi::c_void, ppsc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugCodeContext_Impl, - { + pub const fn new() -> IDebugCodeContext_Vtbl { + unsafe extern "system" fn GetDocumentContext(this: *mut core::ffi::c_void, ppsc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugCodeContext_Impl::GetDocumentContext(this) { Ok(ok__) => { @@ -3265,10 +2443,7 @@ impl IDebugCodeContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBreakPoint(this: *mut core::ffi::c_void, bps: BREAKPOINT_STATE) -> windows_core::HRESULT - where - Identity: IDebugCodeContext_Impl, - { + unsafe extern "system" fn SetBreakPoint(this: *mut core::ffi::c_void, bps: BREAKPOINT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugCodeContext_Impl::SetBreakPoint(this, core::mem::transmute_copy(&bps)).into() } @@ -3282,19 +2457,13 @@ impl IDebugCodeContext_Vtbl { iid == &::IID } } -pub trait IDebugCookie_Impl: Sized { +pub trait IDebugCookie_Impl: Sized + windows_core::IUnknownImpl { fn SetDebugCookie(&self, dwdebugappcookie: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugCookie {} impl IDebugCookie_Vtbl { - pub const fn new() -> IDebugCookie_Vtbl - where - Identity: IDebugCookie_Impl, - { - unsafe extern "system" fn SetDebugCookie(this: *mut core::ffi::c_void, dwdebugappcookie: u32) -> windows_core::HRESULT - where - Identity: IDebugCookie_Impl, - { + pub const fn new() -> IDebugCookie_Vtbl { + unsafe extern "system" fn SetDebugCookie(this: *mut core::ffi::c_void, dwdebugappcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugCookie_Impl::SetDebugCookie(this, core::mem::transmute_copy(&dwdebugappcookie)).into() } @@ -3307,30 +2476,21 @@ impl IDebugCookie_Vtbl { pub trait IDebugDocument_Impl: Sized + IDebugDocumentInfo_Impl {} impl windows_core::RuntimeName for IDebugDocument {} impl IDebugDocument_Vtbl { - pub const fn new() -> IDebugDocument_Vtbl - where - Identity: IDebugDocument_Impl, - { + pub const fn new() -> IDebugDocument_Vtbl { Self { base__: IDebugDocumentInfo_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IDebugDocumentContext_Impl: Sized { +pub trait IDebugDocumentContext_Impl: Sized + windows_core::IUnknownImpl { fn GetDocument(&self) -> windows_core::Result; fn EnumCodeContexts(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugDocumentContext {} impl IDebugDocumentContext_Vtbl { - pub const fn new() -> IDebugDocumentContext_Vtbl - where - Identity: IDebugDocumentContext_Impl, - { - unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, ppsd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentContext_Impl, - { + pub const fn new() -> IDebugDocumentContext_Vtbl { + unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, ppsd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentContext_Impl::GetDocument(this) { Ok(ok__) => { @@ -3340,10 +2500,7 @@ impl IDebugDocumentContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumCodeContexts(this: *mut core::ffi::c_void, ppescc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentContext_Impl, - { + unsafe extern "system" fn EnumCodeContexts(this: *mut core::ffi::c_void, ppescc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentContext_Impl::EnumCodeContexts(this) { Ok(ok__) => { @@ -3363,7 +2520,7 @@ impl IDebugDocumentContext_Vtbl { iid == &::IID } } -pub trait IDebugDocumentHelper32_Impl: Sized { +pub trait IDebugDocumentHelper32_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, pda: Option<&IDebugApplication32>, pszshortname: &windows_core::PCWSTR, pszlongname: &windows_core::PCWSTR, docattr: u32) -> windows_core::Result<()>; fn Attach(&self, pddhparent: Option<&IDebugDocumentHelper32>) -> windows_core::Result<()>; fn Detach(&self) -> windows_core::Result<()>; @@ -3385,63 +2542,36 @@ pub trait IDebugDocumentHelper32_Impl: Sized { } impl windows_core::RuntimeName for IDebugDocumentHelper32 {} impl IDebugDocumentHelper32_Vtbl { - pub const fn new() -> IDebugDocumentHelper32_Vtbl - where - Identity: IDebugDocumentHelper32_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, pszshortname: windows_core::PCWSTR, pszlongname: windows_core::PCWSTR, docattr: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + pub const fn new() -> IDebugDocumentHelper32_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, pszshortname: windows_core::PCWSTR, pszlongname: windows_core::PCWSTR, docattr: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::Init(this, windows_core::from_raw_borrowed(&pda), core::mem::transmute(&pszshortname), core::mem::transmute(&pszlongname), core::mem::transmute_copy(&docattr)).into() } - unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, pddhparent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, pddhparent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::Attach(this, windows_core::from_raw_borrowed(&pddhparent)).into() } - unsafe extern "system" fn Detach(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn Detach(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::Detach(this).into() } - unsafe extern "system" fn AddUnicodeText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn AddUnicodeText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::AddUnicodeText(this, core::mem::transmute(&psztext)).into() } - unsafe extern "system" fn AddDBCSText(this: *mut core::ffi::c_void, psztext: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn AddDBCSText(this: *mut core::ffi::c_void, psztext: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::AddDBCSText(this, core::mem::transmute(&psztext)).into() } - unsafe extern "system" fn SetDebugDocumentHost(this: *mut core::ffi::c_void, pddh: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn SetDebugDocumentHost(this: *mut core::ffi::c_void, pddh: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::SetDebugDocumentHost(this, windows_core::from_raw_borrowed(&pddh)).into() } - unsafe extern "system" fn AddDeferredText(this: *mut core::ffi::c_void, cchars: u32, dwtextstartcookie: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn AddDeferredText(this: *mut core::ffi::c_void, cchars: u32, dwtextstartcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::AddDeferredText(this, core::mem::transmute_copy(&cchars), core::mem::transmute_copy(&dwtextstartcookie)).into() } - unsafe extern "system" fn DefineScriptBlock(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pas: *mut core::ffi::c_void, fscriptlet: super::super::super::super::Foundation::BOOL, pdwsourcecontext: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn DefineScriptBlock(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pas: *mut core::ffi::c_void, fscriptlet: super::super::super::super::Foundation::BOOL, pdwsourcecontext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentHelper32_Impl::DefineScriptBlock(this, core::mem::transmute_copy(&ulcharoffset), core::mem::transmute_copy(&cchars), windows_core::from_raw_borrowed(&pas), core::mem::transmute_copy(&fscriptlet)) { Ok(ok__) => { @@ -3451,45 +2581,27 @@ impl IDebugDocumentHelper32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultTextAttr(this: *mut core::ffi::c_void, statextattr: u16) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn SetDefaultTextAttr(this: *mut core::ffi::c_void, statextattr: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::SetDefaultTextAttr(this, core::mem::transmute_copy(&statextattr)).into() } - unsafe extern "system" fn SetTextAttributes(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pstatextattr: *const u16) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn SetTextAttributes(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pstatextattr: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::SetTextAttributes(this, core::mem::transmute_copy(&ulcharoffset), core::mem::transmute_copy(&cchars), core::mem::transmute_copy(&pstatextattr)).into() } - unsafe extern "system" fn SetLongName(this: *mut core::ffi::c_void, pszlongname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn SetLongName(this: *mut core::ffi::c_void, pszlongname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::SetLongName(this, core::mem::transmute(&pszlongname)).into() } - unsafe extern "system" fn SetShortName(this: *mut core::ffi::c_void, pszshortname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn SetShortName(this: *mut core::ffi::c_void, pszshortname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::SetShortName(this, core::mem::transmute(&pszshortname)).into() } - unsafe extern "system" fn SetDocumentAttr(this: *mut core::ffi::c_void, pszattributes: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn SetDocumentAttr(this: *mut core::ffi::c_void, pszattributes: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::SetDocumentAttr(this, core::mem::transmute_copy(&pszattributes)).into() } - unsafe extern "system" fn GetDebugApplicationNode(this: *mut core::ffi::c_void, ppdan: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn GetDebugApplicationNode(this: *mut core::ffi::c_void, ppdan: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentHelper32_Impl::GetDebugApplicationNode(this) { Ok(ok__) => { @@ -3499,17 +2611,11 @@ impl IDebugDocumentHelper32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScriptBlockInfo(this: *mut core::ffi::c_void, dwsourcecontext: u32, ppasd: *mut *mut core::ffi::c_void, picharpos: *mut u32, pcchars: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn GetScriptBlockInfo(this: *mut core::ffi::c_void, dwsourcecontext: u32, ppasd: *mut *mut core::ffi::c_void, picharpos: *mut u32, pcchars: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::GetScriptBlockInfo(this, core::mem::transmute_copy(&dwsourcecontext), core::mem::transmute_copy(&ppasd), core::mem::transmute_copy(&picharpos), core::mem::transmute_copy(&pcchars)).into() } - unsafe extern "system" fn CreateDebugDocumentContext(this: *mut core::ffi::c_void, icharpos: u32, cchars: u32, ppddc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn CreateDebugDocumentContext(this: *mut core::ffi::c_void, icharpos: u32, cchars: u32, ppddc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentHelper32_Impl::CreateDebugDocumentContext(this, core::mem::transmute_copy(&icharpos), core::mem::transmute_copy(&cchars)) { Ok(ok__) => { @@ -3519,17 +2625,11 @@ impl IDebugDocumentHelper32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BringDocumentToTop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn BringDocumentToTop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::BringDocumentToTop(this).into() } - unsafe extern "system" fn BringDocumentContextToTop(this: *mut core::ffi::c_void, pddc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper32_Impl, - { + unsafe extern "system" fn BringDocumentContextToTop(this: *mut core::ffi::c_void, pddc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper32_Impl::BringDocumentContextToTop(this, windows_core::from_raw_borrowed(&pddc)).into() } @@ -3559,7 +2659,7 @@ impl IDebugDocumentHelper32_Vtbl { iid == &::IID } } -pub trait IDebugDocumentHelper64_Impl: Sized { +pub trait IDebugDocumentHelper64_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, pda: Option<&IDebugApplication64>, pszshortname: &windows_core::PCWSTR, pszlongname: &windows_core::PCWSTR, docattr: u32) -> windows_core::Result<()>; fn Attach(&self, pddhparent: Option<&IDebugDocumentHelper64>) -> windows_core::Result<()>; fn Detach(&self) -> windows_core::Result<()>; @@ -3581,63 +2681,36 @@ pub trait IDebugDocumentHelper64_Impl: Sized { } impl windows_core::RuntimeName for IDebugDocumentHelper64 {} impl IDebugDocumentHelper64_Vtbl { - pub const fn new() -> IDebugDocumentHelper64_Vtbl - where - Identity: IDebugDocumentHelper64_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, pszshortname: windows_core::PCWSTR, pszlongname: windows_core::PCWSTR, docattr: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + pub const fn new() -> IDebugDocumentHelper64_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, pszshortname: windows_core::PCWSTR, pszlongname: windows_core::PCWSTR, docattr: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::Init(this, windows_core::from_raw_borrowed(&pda), core::mem::transmute(&pszshortname), core::mem::transmute(&pszlongname), core::mem::transmute_copy(&docattr)).into() } - unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, pddhparent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, pddhparent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::Attach(this, windows_core::from_raw_borrowed(&pddhparent)).into() } - unsafe extern "system" fn Detach(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn Detach(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::Detach(this).into() } - unsafe extern "system" fn AddUnicodeText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn AddUnicodeText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::AddUnicodeText(this, core::mem::transmute(&psztext)).into() } - unsafe extern "system" fn AddDBCSText(this: *mut core::ffi::c_void, psztext: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn AddDBCSText(this: *mut core::ffi::c_void, psztext: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::AddDBCSText(this, core::mem::transmute(&psztext)).into() } - unsafe extern "system" fn SetDebugDocumentHost(this: *mut core::ffi::c_void, pddh: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn SetDebugDocumentHost(this: *mut core::ffi::c_void, pddh: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::SetDebugDocumentHost(this, windows_core::from_raw_borrowed(&pddh)).into() } - unsafe extern "system" fn AddDeferredText(this: *mut core::ffi::c_void, cchars: u32, dwtextstartcookie: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn AddDeferredText(this: *mut core::ffi::c_void, cchars: u32, dwtextstartcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::AddDeferredText(this, core::mem::transmute_copy(&cchars), core::mem::transmute_copy(&dwtextstartcookie)).into() } - unsafe extern "system" fn DefineScriptBlock(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pas: *mut core::ffi::c_void, fscriptlet: super::super::super::super::Foundation::BOOL, pdwsourcecontext: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn DefineScriptBlock(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pas: *mut core::ffi::c_void, fscriptlet: super::super::super::super::Foundation::BOOL, pdwsourcecontext: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentHelper64_Impl::DefineScriptBlock(this, core::mem::transmute_copy(&ulcharoffset), core::mem::transmute_copy(&cchars), windows_core::from_raw_borrowed(&pas), core::mem::transmute_copy(&fscriptlet)) { Ok(ok__) => { @@ -3647,45 +2720,27 @@ impl IDebugDocumentHelper64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultTextAttr(this: *mut core::ffi::c_void, statextattr: u16) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn SetDefaultTextAttr(this: *mut core::ffi::c_void, statextattr: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::SetDefaultTextAttr(this, core::mem::transmute_copy(&statextattr)).into() } - unsafe extern "system" fn SetTextAttributes(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pstatextattr: *const u16) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn SetTextAttributes(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pstatextattr: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::SetTextAttributes(this, core::mem::transmute_copy(&ulcharoffset), core::mem::transmute_copy(&cchars), core::mem::transmute_copy(&pstatextattr)).into() } - unsafe extern "system" fn SetLongName(this: *mut core::ffi::c_void, pszlongname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn SetLongName(this: *mut core::ffi::c_void, pszlongname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::SetLongName(this, core::mem::transmute(&pszlongname)).into() } - unsafe extern "system" fn SetShortName(this: *mut core::ffi::c_void, pszshortname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn SetShortName(this: *mut core::ffi::c_void, pszshortname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::SetShortName(this, core::mem::transmute(&pszshortname)).into() } - unsafe extern "system" fn SetDocumentAttr(this: *mut core::ffi::c_void, pszattributes: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn SetDocumentAttr(this: *mut core::ffi::c_void, pszattributes: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::SetDocumentAttr(this, core::mem::transmute_copy(&pszattributes)).into() } - unsafe extern "system" fn GetDebugApplicationNode(this: *mut core::ffi::c_void, ppdan: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn GetDebugApplicationNode(this: *mut core::ffi::c_void, ppdan: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentHelper64_Impl::GetDebugApplicationNode(this) { Ok(ok__) => { @@ -3695,17 +2750,11 @@ impl IDebugDocumentHelper64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScriptBlockInfo(this: *mut core::ffi::c_void, dwsourcecontext: u64, ppasd: *mut *mut core::ffi::c_void, picharpos: *mut u32, pcchars: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn GetScriptBlockInfo(this: *mut core::ffi::c_void, dwsourcecontext: u64, ppasd: *mut *mut core::ffi::c_void, picharpos: *mut u32, pcchars: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::GetScriptBlockInfo(this, core::mem::transmute_copy(&dwsourcecontext), core::mem::transmute_copy(&ppasd), core::mem::transmute_copy(&picharpos), core::mem::transmute_copy(&pcchars)).into() } - unsafe extern "system" fn CreateDebugDocumentContext(this: *mut core::ffi::c_void, icharpos: u32, cchars: u32, ppddc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn CreateDebugDocumentContext(this: *mut core::ffi::c_void, icharpos: u32, cchars: u32, ppddc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentHelper64_Impl::CreateDebugDocumentContext(this, core::mem::transmute_copy(&icharpos), core::mem::transmute_copy(&cchars)) { Ok(ok__) => { @@ -3715,17 +2764,11 @@ impl IDebugDocumentHelper64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BringDocumentToTop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn BringDocumentToTop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::BringDocumentToTop(this).into() } - unsafe extern "system" fn BringDocumentContextToTop(this: *mut core::ffi::c_void, pddc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHelper64_Impl, - { + unsafe extern "system" fn BringDocumentContextToTop(this: *mut core::ffi::c_void, pddc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHelper64_Impl::BringDocumentContextToTop(this, windows_core::from_raw_borrowed(&pddc)).into() } @@ -3755,7 +2798,7 @@ impl IDebugDocumentHelper64_Vtbl { iid == &::IID } } -pub trait IDebugDocumentHost_Impl: Sized { +pub trait IDebugDocumentHost_Impl: Sized + windows_core::IUnknownImpl { 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; @@ -3765,28 +2808,16 @@ pub trait IDebugDocumentHost_Impl: Sized { } impl windows_core::RuntimeName for IDebugDocumentHost {} impl IDebugDocumentHost_Vtbl { - pub const fn new() -> IDebugDocumentHost_Vtbl - where - Identity: IDebugDocumentHost_Impl, - { - unsafe extern "system" fn GetDeferredText(this: *mut core::ffi::c_void, dwtextstartcookie: u32, pchartext: windows_core::PWSTR, pstatextattr: *mut u16, pcnumchars: *mut u32, cmaxchars: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentHost_Impl, - { + pub const fn new() -> IDebugDocumentHost_Vtbl { + unsafe extern "system" fn GetDeferredText(this: *mut core::ffi::c_void, dwtextstartcookie: u32, pchartext: windows_core::PWSTR, pstatextattr: *mut u16, pcnumchars: *mut u32, cmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHost_Impl::GetDeferredText(this, core::mem::transmute_copy(&dwtextstartcookie), core::mem::transmute(&pchartext), core::mem::transmute_copy(&pstatextattr), core::mem::transmute_copy(&pcnumchars), core::mem::transmute_copy(&cmaxchars)).into() } - unsafe extern "system" fn GetScriptTextAttributes(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT - where - Identity: IDebugDocumentHost_Impl, - { + unsafe extern "system" fn GetScriptTextAttributes(this: *mut core::ffi::c_void, pstrcode: windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHost_Impl::GetScriptTextAttributes(this, core::mem::transmute(&pstrcode), core::mem::transmute_copy(&unumcodechars), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pattr)).into() } - unsafe extern "system" fn OnCreateDocumentContext(this: *mut core::ffi::c_void, ppunkouter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHost_Impl, - { + unsafe extern "system" fn OnCreateDocumentContext(this: *mut core::ffi::c_void, ppunkouter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentHost_Impl::OnCreateDocumentContext(this) { Ok(ok__) => { @@ -3796,17 +2827,11 @@ impl IDebugDocumentHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPathName(this: *mut core::ffi::c_void, pbstrlongname: *mut core::mem::MaybeUninit, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugDocumentHost_Impl, - { + unsafe extern "system" fn GetPathName(this: *mut core::ffi::c_void, pbstrlongname: *mut core::mem::MaybeUninit, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHost_Impl::GetPathName(this, core::mem::transmute_copy(&pbstrlongname), core::mem::transmute_copy(&pfisoriginalfile)).into() } - unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, pbstrshortname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugDocumentHost_Impl, - { + unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, pbstrshortname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentHost_Impl::GetFileName(this) { Ok(ok__) => { @@ -3816,10 +2841,7 @@ impl IDebugDocumentHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentHost_Impl, - { + unsafe extern "system" fn NotifyChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHost_Impl::NotifyChanged(this).into() } @@ -3837,20 +2859,14 @@ impl IDebugDocumentHost_Vtbl { iid == &::IID } } -pub trait IDebugDocumentInfo_Impl: Sized { +pub trait IDebugDocumentInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> windows_core::Result; fn GetDocumentClassId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugDocumentInfo {} impl IDebugDocumentInfo_Vtbl { - pub const fn new() -> IDebugDocumentInfo_Vtbl - where - Identity: IDebugDocumentInfo_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, dnt: DOCUMENTNAMETYPE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugDocumentInfo_Impl, - { + pub const fn new() -> IDebugDocumentInfo_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, dnt: DOCUMENTNAMETYPE, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentInfo_Impl::GetName(this, core::mem::transmute_copy(&dnt)) { Ok(ok__) => { @@ -3860,10 +2876,7 @@ impl IDebugDocumentInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentClassId(this: *mut core::ffi::c_void, pclsiddocument: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDebugDocumentInfo_Impl, - { + unsafe extern "system" fn GetDocumentClassId(this: *mut core::ffi::c_void, pclsiddocument: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentInfo_Impl::GetDocumentClassId(this) { Ok(ok__) => { @@ -3888,14 +2901,8 @@ pub trait IDebugDocumentProvider_Impl: Sized + IDebugDocumentInfo_Impl { } impl windows_core::RuntimeName for IDebugDocumentProvider {} impl IDebugDocumentProvider_Vtbl { - pub const fn new() -> IDebugDocumentProvider_Vtbl - where - Identity: IDebugDocumentProvider_Impl, - { - unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, ppssd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentProvider_Impl, - { + pub const fn new() -> IDebugDocumentProvider_Vtbl { + unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, ppssd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentProvider_Impl::GetDocument(this) { Ok(ok__) => { @@ -3922,14 +2929,8 @@ pub trait IDebugDocumentText_Impl: Sized + IDebugDocument_Impl { } impl windows_core::RuntimeName for IDebugDocumentText {} impl IDebugDocumentText_Vtbl { - pub const fn new() -> IDebugDocumentText_Vtbl - where - Identity: IDebugDocumentText_Impl, - { - unsafe extern "system" fn GetDocumentAttributes(this: *mut core::ffi::c_void, ptextdocattr: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentText_Impl, - { + pub const fn new() -> IDebugDocumentText_Vtbl { + unsafe extern "system" fn GetDocumentAttributes(this: *mut core::ffi::c_void, ptextdocattr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentText_Impl::GetDocumentAttributes(this) { Ok(ok__) => { @@ -3939,17 +2940,11 @@ impl IDebugDocumentText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pcnumlines: *mut u32, pcnumchars: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentText_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pcnumlines: *mut u32, pcnumchars: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentText_Impl::GetSize(this, core::mem::transmute_copy(&pcnumlines), core::mem::transmute_copy(&pcnumchars)).into() } - unsafe extern "system" fn GetPositionOfLine(this: *mut core::ffi::c_void, clinenumber: u32, pccharacterposition: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentText_Impl, - { + unsafe extern "system" fn GetPositionOfLine(this: *mut core::ffi::c_void, clinenumber: u32, pccharacterposition: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentText_Impl::GetPositionOfLine(this, core::mem::transmute_copy(&clinenumber)) { Ok(ok__) => { @@ -3959,31 +2954,19 @@ impl IDebugDocumentText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLineOfPosition(this: *mut core::ffi::c_void, ccharacterposition: u32, pclinenumber: *mut u32, pccharacteroffsetinline: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentText_Impl, - { + unsafe extern "system" fn GetLineOfPosition(this: *mut core::ffi::c_void, ccharacterposition: u32, pclinenumber: *mut u32, pccharacteroffsetinline: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentText_Impl::GetLineOfPosition(this, core::mem::transmute_copy(&ccharacterposition), core::mem::transmute_copy(&pclinenumber), core::mem::transmute_copy(&pccharacteroffsetinline)).into() } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, ccharacterposition: u32, pchartext: windows_core::PWSTR, pstatextattr: *mut u16, pcnumchars: *mut u32, cmaxchars: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentText_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, ccharacterposition: u32, pchartext: windows_core::PWSTR, pstatextattr: *mut u16, pcnumchars: *mut u32, cmaxchars: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentText_Impl::GetText(this, core::mem::transmute_copy(&ccharacterposition), core::mem::transmute(&pchartext), core::mem::transmute_copy(&pstatextattr), core::mem::transmute_copy(&pcnumchars), core::mem::transmute_copy(&cmaxchars)).into() } - unsafe extern "system" fn GetPositionOfContext(this: *mut core::ffi::c_void, psc: *mut core::ffi::c_void, pccharacterposition: *mut u32, cnumchars: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentText_Impl, - { + unsafe extern "system" fn GetPositionOfContext(this: *mut core::ffi::c_void, psc: *mut core::ffi::c_void, pccharacterposition: *mut u32, cnumchars: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentText_Impl::GetPositionOfContext(this, windows_core::from_raw_borrowed(&psc), core::mem::transmute_copy(&pccharacterposition), core::mem::transmute_copy(&cnumchars)).into() } - unsafe extern "system" fn GetContextOfPosition(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumchars: u32, ppsc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentText_Impl, - { + unsafe extern "system" fn GetContextOfPosition(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumchars: u32, ppsc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentText_Impl::GetContextOfPosition(this, core::mem::transmute_copy(&ccharacterposition), core::mem::transmute_copy(&cnumchars)) { Ok(ok__) => { @@ -4015,28 +2998,16 @@ pub trait IDebugDocumentTextAuthor_Impl: Sized + IDebugDocumentText_Impl { } impl windows_core::RuntimeName for IDebugDocumentTextAuthor {} impl IDebugDocumentTextAuthor_Vtbl { - pub const fn new() -> IDebugDocumentTextAuthor_Vtbl - where - Identity: IDebugDocumentTextAuthor_Impl, - { - unsafe extern "system" fn InsertText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoinsert: u32, pchartext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextAuthor_Impl, - { + pub const fn new() -> IDebugDocumentTextAuthor_Vtbl { + unsafe extern "system" fn InsertText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoinsert: u32, pchartext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextAuthor_Impl::InsertText(this, core::mem::transmute_copy(&ccharacterposition), core::mem::transmute_copy(&cnumtoinsert), core::mem::transmute(&pchartext)).into() } - unsafe extern "system" fn RemoveText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoremove: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextAuthor_Impl, - { + unsafe extern "system" fn RemoveText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoremove: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextAuthor_Impl::RemoveText(this, core::mem::transmute_copy(&ccharacterposition), core::mem::transmute_copy(&cnumtoremove)).into() } - unsafe extern "system" fn ReplaceText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoreplace: u32, pchartext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextAuthor_Impl, - { + unsafe extern "system" fn ReplaceText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoreplace: u32, pchartext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextAuthor_Impl::ReplaceText(this, core::mem::transmute_copy(&ccharacterposition), core::mem::transmute_copy(&cnumtoreplace), core::mem::transmute(&pchartext)).into() } @@ -4051,7 +3022,7 @@ impl IDebugDocumentTextAuthor_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDebugDocumentTextEvents_Impl: Sized { +pub trait IDebugDocumentTextEvents_Impl: Sized + windows_core::IUnknownImpl { fn onDestroy(&self) -> windows_core::Result<()>; fn onInsertText(&self, ccharacterposition: u32, cnumtoinsert: u32) -> windows_core::Result<()>; fn onRemoveText(&self, ccharacterposition: u32, cnumtoremove: u32) -> windows_core::Result<()>; @@ -4061,49 +3032,28 @@ pub trait IDebugDocumentTextEvents_Impl: Sized { } impl windows_core::RuntimeName for IDebugDocumentTextEvents {} impl IDebugDocumentTextEvents_Vtbl { - pub const fn new() -> IDebugDocumentTextEvents_Vtbl - where - Identity: IDebugDocumentTextEvents_Impl, - { - unsafe extern "system" fn onDestroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextEvents_Impl, - { + pub const fn new() -> IDebugDocumentTextEvents_Vtbl { + unsafe extern "system" fn onDestroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextEvents_Impl::onDestroy(this).into() } - unsafe extern "system" fn onInsertText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoinsert: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextEvents_Impl, - { + unsafe extern "system" fn onInsertText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoinsert: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextEvents_Impl::onInsertText(this, core::mem::transmute_copy(&ccharacterposition), core::mem::transmute_copy(&cnumtoinsert)).into() } - unsafe extern "system" fn onRemoveText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoremove: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextEvents_Impl, - { + unsafe extern "system" fn onRemoveText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoremove: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextEvents_Impl::onRemoveText(this, core::mem::transmute_copy(&ccharacterposition), core::mem::transmute_copy(&cnumtoremove)).into() } - unsafe extern "system" fn onReplaceText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoreplace: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextEvents_Impl, - { + unsafe extern "system" fn onReplaceText(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoreplace: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextEvents_Impl::onReplaceText(this, core::mem::transmute_copy(&ccharacterposition), core::mem::transmute_copy(&cnumtoreplace)).into() } - unsafe extern "system" fn onUpdateTextAttributes(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoupdate: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextEvents_Impl, - { + unsafe extern "system" fn onUpdateTextAttributes(this: *mut core::ffi::c_void, ccharacterposition: u32, cnumtoupdate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextEvents_Impl::onUpdateTextAttributes(this, core::mem::transmute_copy(&ccharacterposition), core::mem::transmute_copy(&cnumtoupdate)).into() } - unsafe extern "system" fn onUpdateDocumentAttributes(this: *mut core::ffi::c_void, textdocattr: u32) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextEvents_Impl, - { + unsafe extern "system" fn onUpdateDocumentAttributes(this: *mut core::ffi::c_void, textdocattr: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextEvents_Impl::onUpdateDocumentAttributes(this, core::mem::transmute_copy(&textdocattr)).into() } @@ -4121,28 +3071,19 @@ impl IDebugDocumentTextEvents_Vtbl { iid == &::IID } } -pub trait IDebugDocumentTextExternalAuthor_Impl: Sized { +pub trait IDebugDocumentTextExternalAuthor_Impl: Sized + windows_core::IUnknownImpl { fn GetPathName(&self, pbstrlongname: *mut windows_core::BSTR, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetFileName(&self) -> windows_core::Result; fn NotifyChanged(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugDocumentTextExternalAuthor {} impl IDebugDocumentTextExternalAuthor_Vtbl { - pub const fn new() -> IDebugDocumentTextExternalAuthor_Vtbl - where - Identity: IDebugDocumentTextExternalAuthor_Impl, - { - unsafe extern "system" fn GetPathName(this: *mut core::ffi::c_void, pbstrlongname: *mut core::mem::MaybeUninit, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextExternalAuthor_Impl, - { + pub const fn new() -> IDebugDocumentTextExternalAuthor_Vtbl { + unsafe extern "system" fn GetPathName(this: *mut core::ffi::c_void, pbstrlongname: *mut core::mem::MaybeUninit, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextExternalAuthor_Impl::GetPathName(this, core::mem::transmute_copy(&pbstrlongname), core::mem::transmute_copy(&pfisoriginalfile)).into() } - unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, pbstrshortname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextExternalAuthor_Impl, - { + unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, pbstrshortname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentTextExternalAuthor_Impl::GetFileName(this) { Ok(ok__) => { @@ -4152,10 +3093,7 @@ impl IDebugDocumentTextExternalAuthor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDocumentTextExternalAuthor_Impl, - { + unsafe extern "system" fn NotifyChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextExternalAuthor_Impl::NotifyChanged(this).into() } @@ -4170,7 +3108,7 @@ impl IDebugDocumentTextExternalAuthor_Vtbl { iid == &::IID } } -pub trait IDebugExpression_Impl: Sized { +pub trait IDebugExpression_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self, pdecb: Option<&IDebugExpressionCallBack>) -> windows_core::Result<()>; fn Abort(&self) -> windows_core::Result<()>; fn QueryIsComplete(&self) -> windows_core::Result<()>; @@ -4179,42 +3117,24 @@ pub trait IDebugExpression_Impl: Sized { } impl windows_core::RuntimeName for IDebugExpression {} impl IDebugExpression_Vtbl { - pub const fn new() -> IDebugExpression_Vtbl - where - Identity: IDebugExpression_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, pdecb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugExpression_Impl, - { + pub const fn new() -> IDebugExpression_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, pdecb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugExpression_Impl::Start(this, windows_core::from_raw_borrowed(&pdecb)).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugExpression_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugExpression_Impl::Abort(this).into() } - unsafe extern "system" fn QueryIsComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugExpression_Impl, - { + unsafe extern "system" fn QueryIsComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugExpression_Impl::QueryIsComplete(this).into() } - unsafe extern "system" fn GetResultAsString(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, pbstrresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugExpression_Impl, - { + unsafe extern "system" fn GetResultAsString(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, pbstrresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugExpression_Impl::GetResultAsString(this, core::mem::transmute_copy(&phrresult), core::mem::transmute_copy(&pbstrresult)).into() } - unsafe extern "system" fn GetResultAsDebugProperty(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, ppdp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugExpression_Impl, - { + unsafe extern "system" fn GetResultAsDebugProperty(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT, ppdp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugExpression_Impl::GetResultAsDebugProperty(this, core::mem::transmute_copy(&phrresult), core::mem::transmute_copy(&ppdp)).into() } @@ -4231,19 +3151,13 @@ impl IDebugExpression_Vtbl { iid == &::IID } } -pub trait IDebugExpressionCallBack_Impl: Sized { +pub trait IDebugExpressionCallBack_Impl: Sized + windows_core::IUnknownImpl { fn onComplete(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugExpressionCallBack {} impl IDebugExpressionCallBack_Vtbl { - pub const fn new() -> IDebugExpressionCallBack_Vtbl - where - Identity: IDebugExpressionCallBack_Impl, - { - unsafe extern "system" fn onComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugExpressionCallBack_Impl, - { + pub const fn new() -> IDebugExpressionCallBack_Vtbl { + unsafe extern "system" fn onComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugExpressionCallBack_Impl::onComplete(this).into() } @@ -4253,20 +3167,14 @@ impl IDebugExpressionCallBack_Vtbl { iid == &::IID } } -pub trait IDebugExpressionContext_Impl: Sized { +pub trait IDebugExpressionContext_Impl: Sized + windows_core::IUnknownImpl { fn ParseLanguageText(&self, pstrcode: &windows_core::PCWSTR, nradix: u32, pstrdelimiter: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result; fn GetLanguageInfo(&self, pbstrlanguagename: *mut windows_core::BSTR, planguageid: *mut windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugExpressionContext {} impl IDebugExpressionContext_Vtbl { - pub const fn new() -> IDebugExpressionContext_Vtbl - where - Identity: IDebugExpressionContext_Impl, - { - unsafe extern "system" fn ParseLanguageText(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 - where - Identity: IDebugExpressionContext_Impl, - { + pub const fn new() -> IDebugExpressionContext_Vtbl { + unsafe extern "system" fn ParseLanguageText(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugExpressionContext_Impl::ParseLanguageText(this, core::mem::transmute(&pstrcode), core::mem::transmute_copy(&nradix), core::mem::transmute(&pstrdelimiter), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -4276,10 +3184,7 @@ impl IDebugExpressionContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageInfo(this: *mut core::ffi::c_void, pbstrlanguagename: *mut core::mem::MaybeUninit, planguageid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDebugExpressionContext_Impl, - { + unsafe extern "system" fn GetLanguageInfo(this: *mut core::ffi::c_void, pbstrlanguagename: *mut core::mem::MaybeUninit, planguageid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugExpressionContext_Impl::GetLanguageInfo(this, core::mem::transmute_copy(&pbstrlanguagename), core::mem::transmute_copy(&planguageid)).into() } @@ -4294,7 +3199,7 @@ impl IDebugExpressionContext_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] -pub trait IDebugFormatter_Impl: Sized { +pub trait IDebugFormatter_Impl: Sized + windows_core::IUnknownImpl { fn GetStringForVariant(&self, pvar: *const windows_core::VARIANT, nradix: u32) -> windows_core::Result; fn GetVariantForString(&self, pwstrvalue: &windows_core::PCWSTR) -> windows_core::Result; fn GetStringForVarType(&self, vt: super::super::super::Variant::VARENUM, ptdescarraytype: *const super::super::super::Com::TYPEDESC) -> windows_core::Result; @@ -4303,14 +3208,8 @@ pub trait IDebugFormatter_Impl: Sized { impl windows_core::RuntimeName for IDebugFormatter {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IDebugFormatter_Vtbl { - pub const fn new() -> IDebugFormatter_Vtbl - where - Identity: IDebugFormatter_Impl, - { - unsafe extern "system" fn GetStringForVariant(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, nradix: u32, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFormatter_Impl, - { + pub const fn new() -> IDebugFormatter_Vtbl { + unsafe extern "system" fn GetStringForVariant(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, nradix: u32, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFormatter_Impl::GetStringForVariant(this, core::mem::transmute_copy(&pvar), core::mem::transmute_copy(&nradix)) { Ok(ok__) => { @@ -4320,10 +3219,7 @@ impl IDebugFormatter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVariantForString(this: *mut core::ffi::c_void, pwstrvalue: windows_core::PCWSTR, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFormatter_Impl, - { + unsafe extern "system" fn GetVariantForString(this: *mut core::ffi::c_void, pwstrvalue: windows_core::PCWSTR, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFormatter_Impl::GetVariantForString(this, core::mem::transmute(&pwstrvalue)) { Ok(ok__) => { @@ -4333,10 +3229,7 @@ impl IDebugFormatter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStringForVarType(this: *mut core::ffi::c_void, vt: super::super::super::Variant::VARENUM, ptdescarraytype: *const super::super::super::Com::TYPEDESC, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFormatter_Impl, - { + unsafe extern "system" fn GetStringForVarType(this: *mut core::ffi::c_void, vt: super::super::super::Variant::VARENUM, ptdescarraytype: *const super::super::super::Com::TYPEDESC, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFormatter_Impl::GetStringForVarType(this, core::mem::transmute_copy(&vt), core::mem::transmute_copy(&ptdescarraytype)) { Ok(ok__) => { @@ -4358,7 +3251,7 @@ impl IDebugFormatter_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDebugHelper_Impl: Sized { +pub trait IDebugHelper_Impl: Sized + windows_core::IUnknownImpl { fn CreatePropertyBrowser(&self, pvar: *const windows_core::VARIANT, bstrname: &windows_core::PCWSTR, pdat: Option<&IDebugApplicationThread>) -> windows_core::Result; fn CreatePropertyBrowserEx(&self, pvar: *const windows_core::VARIANT, bstrname: &windows_core::PCWSTR, pdat: Option<&IDebugApplicationThread>, pdf: Option<&IDebugFormatter>) -> windows_core::Result; fn CreateSimpleConnectionPoint(&self, pdisp: Option<&super::super::super::Com::IDispatch>) -> windows_core::Result; @@ -4367,14 +3260,8 @@ pub trait IDebugHelper_Impl: Sized { impl windows_core::RuntimeName for IDebugHelper {} #[cfg(feature = "Win32_System_Com")] impl IDebugHelper_Vtbl { - pub const fn new() -> IDebugHelper_Vtbl - where - Identity: IDebugHelper_Impl, - { - unsafe extern "system" fn CreatePropertyBrowser(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, bstrname: windows_core::PCWSTR, pdat: *mut core::ffi::c_void, ppdob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHelper_Impl, - { + pub const fn new() -> IDebugHelper_Vtbl { + unsafe extern "system" fn CreatePropertyBrowser(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, bstrname: windows_core::PCWSTR, pdat: *mut core::ffi::c_void, ppdob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHelper_Impl::CreatePropertyBrowser(this, core::mem::transmute_copy(&pvar), core::mem::transmute(&bstrname), windows_core::from_raw_borrowed(&pdat)) { Ok(ok__) => { @@ -4384,10 +3271,7 @@ impl IDebugHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePropertyBrowserEx(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, bstrname: windows_core::PCWSTR, pdat: *mut core::ffi::c_void, pdf: *mut core::ffi::c_void, ppdob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHelper_Impl, - { + unsafe extern "system" fn CreatePropertyBrowserEx(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, bstrname: windows_core::PCWSTR, pdat: *mut core::ffi::c_void, pdf: *mut core::ffi::c_void, ppdob: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHelper_Impl::CreatePropertyBrowserEx(this, core::mem::transmute_copy(&pvar), core::mem::transmute(&bstrname), windows_core::from_raw_borrowed(&pdat), windows_core::from_raw_borrowed(&pdf)) { Ok(ok__) => { @@ -4397,10 +3281,7 @@ impl IDebugHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSimpleConnectionPoint(this: *mut core::ffi::c_void, pdisp: *mut core::ffi::c_void, ppscp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHelper_Impl, - { + unsafe extern "system" fn CreateSimpleConnectionPoint(this: *mut core::ffi::c_void, pdisp: *mut core::ffi::c_void, ppscp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHelper_Impl::CreateSimpleConnectionPoint(this, windows_core::from_raw_borrowed(&pdisp)) { Ok(ok__) => { @@ -4421,19 +3302,13 @@ impl IDebugHelper_Vtbl { iid == &::IID } } -pub trait IDebugSessionProvider_Impl: Sized { +pub trait IDebugSessionProvider_Impl: Sized + windows_core::IUnknownImpl { fn StartDebugSession(&self, pda: Option<&IRemoteDebugApplication>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugSessionProvider {} impl IDebugSessionProvider_Vtbl { - pub const fn new() -> IDebugSessionProvider_Vtbl - where - Identity: IDebugSessionProvider_Impl, - { - unsafe extern "system" fn StartDebugSession(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSessionProvider_Impl, - { + pub const fn new() -> IDebugSessionProvider_Vtbl { + unsafe extern "system" fn StartDebugSession(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSessionProvider_Impl::StartDebugSession(this, windows_core::from_raw_borrowed(&pda)).into() } @@ -4443,7 +3318,7 @@ impl IDebugSessionProvider_Vtbl { iid == &::IID } } -pub trait IDebugStackFrame_Impl: Sized { +pub trait IDebugStackFrame_Impl: Sized + windows_core::IUnknownImpl { fn GetCodeContext(&self) -> windows_core::Result; fn GetDescriptionString(&self, flong: super::super::super::super::Foundation::BOOL) -> windows_core::Result; fn GetLanguageString(&self, flong: super::super::super::super::Foundation::BOOL) -> windows_core::Result; @@ -4452,14 +3327,8 @@ pub trait IDebugStackFrame_Impl: Sized { } impl windows_core::RuntimeName for IDebugStackFrame {} impl IDebugStackFrame_Vtbl { - pub const fn new() -> IDebugStackFrame_Vtbl - where - Identity: IDebugStackFrame_Impl, - { - unsafe extern "system" fn GetCodeContext(this: *mut core::ffi::c_void, ppcc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugStackFrame_Impl, - { + pub const fn new() -> IDebugStackFrame_Vtbl { + unsafe extern "system" fn GetCodeContext(this: *mut core::ffi::c_void, ppcc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrame_Impl::GetCodeContext(this) { Ok(ok__) => { @@ -4469,10 +3338,7 @@ impl IDebugStackFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescriptionString(this: *mut core::ffi::c_void, flong: super::super::super::super::Foundation::BOOL, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugStackFrame_Impl, - { + unsafe extern "system" fn GetDescriptionString(this: *mut core::ffi::c_void, flong: super::super::super::super::Foundation::BOOL, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrame_Impl::GetDescriptionString(this, core::mem::transmute_copy(&flong)) { Ok(ok__) => { @@ -4482,10 +3348,7 @@ impl IDebugStackFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageString(this: *mut core::ffi::c_void, flong: super::super::super::super::Foundation::BOOL, pbstrlanguage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugStackFrame_Impl, - { + unsafe extern "system" fn GetLanguageString(this: *mut core::ffi::c_void, flong: super::super::super::super::Foundation::BOOL, pbstrlanguage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrame_Impl::GetLanguageString(this, core::mem::transmute_copy(&flong)) { Ok(ok__) => { @@ -4495,10 +3358,7 @@ impl IDebugStackFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThread(this: *mut core::ffi::c_void, ppat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugStackFrame_Impl, - { + unsafe extern "system" fn GetThread(this: *mut core::ffi::c_void, ppat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrame_Impl::GetThread(this) { Ok(ok__) => { @@ -4508,10 +3368,7 @@ impl IDebugStackFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDebugProperty(this: *mut core::ffi::c_void, ppdebugprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugStackFrame_Impl, - { + unsafe extern "system" fn GetDebugProperty(this: *mut core::ffi::c_void, ppdebugprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrame_Impl::GetDebugProperty(this) { Ok(ok__) => { @@ -4540,14 +3397,8 @@ pub trait IDebugStackFrame110_Impl: Sized + IDebugStackFrame_Impl { } impl windows_core::RuntimeName for IDebugStackFrame110 {} impl IDebugStackFrame110_Vtbl { - pub const fn new() -> IDebugStackFrame110_Vtbl - where - Identity: IDebugStackFrame110_Impl, - { - unsafe extern "system" fn GetStackFrameType(this: *mut core::ffi::c_void, pstackframekind: *mut DEBUG_STACKFRAME_TYPE) -> windows_core::HRESULT - where - Identity: IDebugStackFrame110_Impl, - { + pub const fn new() -> IDebugStackFrame110_Vtbl { + unsafe extern "system" fn GetStackFrameType(this: *mut core::ffi::c_void, pstackframekind: *mut DEBUG_STACKFRAME_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrame110_Impl::GetStackFrameType(this) { Ok(ok__) => { @@ -4557,10 +3408,7 @@ impl IDebugStackFrame110_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetScriptInvocationContext(this: *mut core::ffi::c_void, ppinvocationcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugStackFrame110_Impl, - { + unsafe extern "system" fn GetScriptInvocationContext(this: *mut core::ffi::c_void, ppinvocationcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrame110_Impl::GetScriptInvocationContext(this) { Ok(ok__) => { @@ -4580,19 +3428,13 @@ impl IDebugStackFrame110_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDebugStackFrameSniffer_Impl: Sized { +pub trait IDebugStackFrameSniffer_Impl: Sized + windows_core::IUnknownImpl { fn EnumStackFrames(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugStackFrameSniffer {} impl IDebugStackFrameSniffer_Vtbl { - pub const fn new() -> IDebugStackFrameSniffer_Vtbl - where - Identity: IDebugStackFrameSniffer_Impl, - { - unsafe extern "system" fn EnumStackFrames(this: *mut core::ffi::c_void, ppedsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugStackFrameSniffer_Impl, - { + pub const fn new() -> IDebugStackFrameSniffer_Vtbl { + unsafe extern "system" fn EnumStackFrames(this: *mut core::ffi::c_void, ppedsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrameSniffer_Impl::EnumStackFrames(this) { Ok(ok__) => { @@ -4613,14 +3455,8 @@ pub trait IDebugStackFrameSnifferEx32_Impl: Sized + IDebugStackFrameSniffer_Impl } impl windows_core::RuntimeName for IDebugStackFrameSnifferEx32 {} impl IDebugStackFrameSnifferEx32_Vtbl { - pub const fn new() -> IDebugStackFrameSnifferEx32_Vtbl - where - Identity: IDebugStackFrameSnifferEx32_Impl, - { - unsafe extern "system" fn EnumStackFramesEx32(this: *mut core::ffi::c_void, dwspmin: u32, ppedsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugStackFrameSnifferEx32_Impl, - { + pub const fn new() -> IDebugStackFrameSnifferEx32_Vtbl { + unsafe extern "system" fn EnumStackFramesEx32(this: *mut core::ffi::c_void, dwspmin: u32, ppedsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrameSnifferEx32_Impl::EnumStackFramesEx32(this, core::mem::transmute_copy(&dwspmin)) { Ok(ok__) => { @@ -4641,14 +3477,8 @@ pub trait IDebugStackFrameSnifferEx64_Impl: Sized + IDebugStackFrameSniffer_Impl } impl windows_core::RuntimeName for IDebugStackFrameSnifferEx64 {} impl IDebugStackFrameSnifferEx64_Vtbl { - pub const fn new() -> IDebugStackFrameSnifferEx64_Vtbl - where - Identity: IDebugStackFrameSnifferEx64_Impl, - { - unsafe extern "system" fn EnumStackFramesEx64(this: *mut core::ffi::c_void, dwspmin: u64, ppedsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugStackFrameSnifferEx64_Impl, - { + pub const fn new() -> IDebugStackFrameSnifferEx64_Vtbl { + unsafe extern "system" fn EnumStackFramesEx64(this: *mut core::ffi::c_void, dwspmin: u64, ppedsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrameSnifferEx64_Impl::EnumStackFramesEx64(this, core::mem::transmute_copy(&dwspmin)) { Ok(ok__) => { @@ -4664,21 +3494,15 @@ impl IDebugStackFrameSnifferEx64_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDebugSyncOperation_Impl: Sized { +pub trait IDebugSyncOperation_Impl: Sized + windows_core::IUnknownImpl { fn GetTargetThread(&self) -> windows_core::Result; fn Execute(&self) -> windows_core::Result; fn InProgressAbort(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugSyncOperation {} impl IDebugSyncOperation_Vtbl { - pub const fn new() -> IDebugSyncOperation_Vtbl - where - Identity: IDebugSyncOperation_Impl, - { - unsafe extern "system" fn GetTargetThread(this: *mut core::ffi::c_void, ppattarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSyncOperation_Impl, - { + pub const fn new() -> IDebugSyncOperation_Vtbl { + unsafe extern "system" fn GetTargetThread(this: *mut core::ffi::c_void, ppattarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSyncOperation_Impl::GetTargetThread(this) { Ok(ok__) => { @@ -4688,10 +3512,7 @@ impl IDebugSyncOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, ppunkresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSyncOperation_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, ppunkresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSyncOperation_Impl::Execute(this) { Ok(ok__) => { @@ -4701,10 +3522,7 @@ impl IDebugSyncOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InProgressAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSyncOperation_Impl, - { + unsafe extern "system" fn InProgressAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSyncOperation_Impl::InProgressAbort(this).into() } @@ -4719,19 +3537,13 @@ impl IDebugSyncOperation_Vtbl { iid == &::IID } } -pub trait IDebugThreadCall32_Impl: Sized { +pub trait IDebugThreadCall32_Impl: Sized + windows_core::IUnknownImpl { fn ThreadCallHandler(&self, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugThreadCall32 {} impl IDebugThreadCall32_Vtbl { - pub const fn new() -> IDebugThreadCall32_Vtbl - where - Identity: IDebugThreadCall32_Impl, - { - unsafe extern "system" fn ThreadCallHandler(this: *mut core::ffi::c_void, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::HRESULT - where - Identity: IDebugThreadCall32_Impl, - { + pub const fn new() -> IDebugThreadCall32_Vtbl { + unsafe extern "system" fn ThreadCallHandler(this: *mut core::ffi::c_void, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugThreadCall32_Impl::ThreadCallHandler(this, core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } @@ -4741,19 +3553,13 @@ impl IDebugThreadCall32_Vtbl { iid == &::IID } } -pub trait IDebugThreadCall64_Impl: Sized { +pub trait IDebugThreadCall64_Impl: Sized + windows_core::IUnknownImpl { fn ThreadCallHandler(&self, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugThreadCall64 {} impl IDebugThreadCall64_Vtbl { - pub const fn new() -> IDebugThreadCall64_Vtbl - where - Identity: IDebugThreadCall64_Impl, - { - unsafe extern "system" fn ThreadCallHandler(this: *mut core::ffi::c_void, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::HRESULT - where - Identity: IDebugThreadCall64_Impl, - { + pub const fn new() -> IDebugThreadCall64_Vtbl { + unsafe extern "system" fn ThreadCallHandler(this: *mut core::ffi::c_void, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugThreadCall64_Impl::ThreadCallHandler(this, core::mem::transmute_copy(&dwparam1), core::mem::transmute_copy(&dwparam2), core::mem::transmute_copy(&dwparam3)).into() } @@ -4763,7 +3569,7 @@ impl IDebugThreadCall64_Vtbl { iid == &::IID } } -pub trait IEnumDebugApplicationNodes_Impl: Sized { +pub trait IEnumDebugApplicationNodes_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, pprddp: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -4771,35 +3577,20 @@ pub trait IEnumDebugApplicationNodes_Impl: Sized { } impl windows_core::RuntimeName for IEnumDebugApplicationNodes {} impl IEnumDebugApplicationNodes_Vtbl { - pub const fn new() -> IEnumDebugApplicationNodes_Vtbl - where - Identity: IEnumDebugApplicationNodes_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pprddp: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDebugApplicationNodes_Impl, - { + pub const fn new() -> IEnumDebugApplicationNodes_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pprddp: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugApplicationNodes_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&pprddp), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDebugApplicationNodes_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugApplicationNodes_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugApplicationNodes_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugApplicationNodes_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pperddp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugApplicationNodes_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pperddp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDebugApplicationNodes_Impl::Clone(this) { Ok(ok__) => { @@ -4821,7 +3612,7 @@ impl IEnumDebugApplicationNodes_Vtbl { iid == &::IID } } -pub trait IEnumDebugCodeContexts_Impl: Sized { +pub trait IEnumDebugCodeContexts_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, pscc: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -4829,35 +3620,20 @@ pub trait IEnumDebugCodeContexts_Impl: Sized { } impl windows_core::RuntimeName for IEnumDebugCodeContexts {} impl IEnumDebugCodeContexts_Vtbl { - pub const fn new() -> IEnumDebugCodeContexts_Vtbl - where - Identity: IEnumDebugCodeContexts_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pscc: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDebugCodeContexts_Impl, - { + pub const fn new() -> IEnumDebugCodeContexts_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pscc: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugCodeContexts_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&pscc), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDebugCodeContexts_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugCodeContexts_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugCodeContexts_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugCodeContexts_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppescc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugCodeContexts_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppescc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDebugCodeContexts_Impl::Clone(this) { Ok(ok__) => { @@ -4879,7 +3655,7 @@ impl IEnumDebugCodeContexts_Vtbl { iid == &::IID } } -pub trait IEnumDebugExpressionContexts_Impl: Sized { +pub trait IEnumDebugExpressionContexts_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppdec: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -4887,35 +3663,20 @@ pub trait IEnumDebugExpressionContexts_Impl: Sized { } impl windows_core::RuntimeName for IEnumDebugExpressionContexts {} impl IEnumDebugExpressionContexts_Vtbl { - pub const fn new() -> IEnumDebugExpressionContexts_Vtbl - where - Identity: IEnumDebugExpressionContexts_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppdec: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDebugExpressionContexts_Impl, - { + pub const fn new() -> IEnumDebugExpressionContexts_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppdec: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugExpressionContexts_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppdec), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDebugExpressionContexts_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugExpressionContexts_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugExpressionContexts_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugExpressionContexts_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppedec: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugExpressionContexts_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppedec: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDebugExpressionContexts_Impl::Clone(this) { Ok(ok__) => { @@ -4937,7 +3698,7 @@ impl IEnumDebugExpressionContexts_Vtbl { iid == &::IID } } -pub trait IEnumDebugStackFrames_Impl: Sized { +pub trait IEnumDebugStackFrames_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, prgdsfd: *mut DebugStackFrameDescriptor, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -4945,35 +3706,20 @@ pub trait IEnumDebugStackFrames_Impl: Sized { } impl windows_core::RuntimeName for IEnumDebugStackFrames {} impl IEnumDebugStackFrames_Vtbl { - pub const fn new() -> IEnumDebugStackFrames_Vtbl - where - Identity: IEnumDebugStackFrames_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, prgdsfd: *mut DebugStackFrameDescriptor, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDebugStackFrames_Impl, - { + pub const fn new() -> IEnumDebugStackFrames_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, prgdsfd: *mut DebugStackFrameDescriptor, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugStackFrames_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&prgdsfd), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDebugStackFrames_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugStackFrames_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugStackFrames_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugStackFrames_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppedsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugStackFrames_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppedsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDebugStackFrames_Impl::Clone(this) { Ok(ok__) => { @@ -5000,14 +3746,8 @@ pub trait IEnumDebugStackFrames64_Impl: Sized + IEnumDebugStackFrames_Impl { } impl windows_core::RuntimeName for IEnumDebugStackFrames64 {} impl IEnumDebugStackFrames64_Vtbl { - pub const fn new() -> IEnumDebugStackFrames64_Vtbl - where - Identity: IEnumDebugStackFrames64_Impl, - { - unsafe extern "system" fn Next64(this: *mut core::ffi::c_void, celt: u32, prgdsfd: *mut DebugStackFrameDescriptor64, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDebugStackFrames64_Impl, - { + pub const fn new() -> IEnumDebugStackFrames64_Vtbl { + unsafe extern "system" fn Next64(this: *mut core::ffi::c_void, celt: u32, prgdsfd: *mut DebugStackFrameDescriptor64, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugStackFrames64_Impl::Next64(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&prgdsfd), core::mem::transmute_copy(&pceltfetched)).into() } @@ -5017,27 +3757,18 @@ impl IEnumDebugStackFrames64_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IEnumJsStackFrames_Impl: Sized { +pub trait IEnumJsStackFrames_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cframecount: u32, pframes: *mut JS_NATIVE_FRAME, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IEnumJsStackFrames {} impl IEnumJsStackFrames_Vtbl { - pub const fn new() -> IEnumJsStackFrames_Vtbl - where - Identity: IEnumJsStackFrames_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cframecount: u32, pframes: *mut JS_NATIVE_FRAME, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumJsStackFrames_Impl, - { + pub const fn new() -> IEnumJsStackFrames_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cframecount: u32, pframes: *mut JS_NATIVE_FRAME, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumJsStackFrames_Impl::Next(this, core::mem::transmute_copy(&cframecount), core::mem::transmute_copy(&pframes), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumJsStackFrames_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumJsStackFrames_Impl::Reset(this).into() } @@ -5047,7 +3778,7 @@ impl IEnumJsStackFrames_Vtbl { iid == &::IID } } -pub trait IEnumRemoteDebugApplicationThreads_Impl: Sized { +pub trait IEnumRemoteDebugApplicationThreads_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, pprdat: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -5055,35 +3786,20 @@ pub trait IEnumRemoteDebugApplicationThreads_Impl: Sized { } impl windows_core::RuntimeName for IEnumRemoteDebugApplicationThreads {} impl IEnumRemoteDebugApplicationThreads_Vtbl { - pub const fn new() -> IEnumRemoteDebugApplicationThreads_Vtbl - where - Identity: IEnumRemoteDebugApplicationThreads_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pprdat: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumRemoteDebugApplicationThreads_Impl, - { + pub const fn new() -> IEnumRemoteDebugApplicationThreads_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pprdat: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRemoteDebugApplicationThreads_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&pprdat), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumRemoteDebugApplicationThreads_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRemoteDebugApplicationThreads_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRemoteDebugApplicationThreads_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRemoteDebugApplicationThreads_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pperdat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRemoteDebugApplicationThreads_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pperdat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumRemoteDebugApplicationThreads_Impl::Clone(this) { Ok(ok__) => { @@ -5105,7 +3821,7 @@ impl IEnumRemoteDebugApplicationThreads_Vtbl { iid == &::IID } } -pub trait IEnumRemoteDebugApplications_Impl: Sized { +pub trait IEnumRemoteDebugApplications_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppda: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -5113,35 +3829,20 @@ pub trait IEnumRemoteDebugApplications_Impl: Sized { } impl windows_core::RuntimeName for IEnumRemoteDebugApplications {} impl IEnumRemoteDebugApplications_Vtbl { - pub const fn new() -> IEnumRemoteDebugApplications_Vtbl - where - Identity: IEnumRemoteDebugApplications_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppda: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumRemoteDebugApplications_Impl, - { + pub const fn new() -> IEnumRemoteDebugApplications_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppda: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRemoteDebugApplications_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppda), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumRemoteDebugApplications_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRemoteDebugApplications_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRemoteDebugApplications_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRemoteDebugApplications_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppessd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRemoteDebugApplications_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppessd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumRemoteDebugApplications_Impl::Clone(this) { Ok(ok__) => { @@ -5163,19 +3864,13 @@ impl IEnumRemoteDebugApplications_Vtbl { iid == &::IID } } -pub trait IJsDebug_Impl: Sized { +pub trait IJsDebug_Impl: Sized + windows_core::IUnknownImpl { fn OpenVirtualProcess(&self, processid: u32, runtimejsbaseaddress: u64, pdatatarget: Option<&IJsDebugDataTarget>) -> windows_core::Result; } impl windows_core::RuntimeName for IJsDebug {} impl IJsDebug_Vtbl { - pub const fn new() -> IJsDebug_Vtbl - where - Identity: IJsDebug_Impl, - { - unsafe extern "system" fn OpenVirtualProcess(this: *mut core::ffi::c_void, processid: u32, runtimejsbaseaddress: u64, pdatatarget: *mut core::ffi::c_void, ppprocess: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebug_Impl, - { + pub const fn new() -> IJsDebug_Vtbl { + unsafe extern "system" fn OpenVirtualProcess(this: *mut core::ffi::c_void, processid: u32, runtimejsbaseaddress: u64, pdatatarget: *mut core::ffi::c_void, ppprocess: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebug_Impl::OpenVirtualProcess(this, core::mem::transmute_copy(&processid), core::mem::transmute_copy(&runtimejsbaseaddress), windows_core::from_raw_borrowed(&pdatatarget)) { Ok(ok__) => { @@ -5191,7 +3886,7 @@ impl IJsDebug_Vtbl { iid == &::IID } } -pub trait IJsDebugBreakPoint_Impl: Sized { +pub trait IJsDebugBreakPoint_Impl: Sized + windows_core::IUnknownImpl { fn IsEnabled(&self) -> windows_core::Result; fn Enable(&self) -> windows_core::Result<()>; fn Disable(&self) -> windows_core::Result<()>; @@ -5200,14 +3895,8 @@ pub trait IJsDebugBreakPoint_Impl: Sized { } impl windows_core::RuntimeName for IJsDebugBreakPoint {} impl IJsDebugBreakPoint_Vtbl { - pub const fn new() -> IJsDebugBreakPoint_Vtbl - where - Identity: IJsDebugBreakPoint_Impl, - { - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pisenabled: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IJsDebugBreakPoint_Impl, - { + pub const fn new() -> IJsDebugBreakPoint_Vtbl { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pisenabled: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugBreakPoint_Impl::IsEnabled(this) { Ok(ok__) => { @@ -5217,31 +3906,19 @@ impl IJsDebugBreakPoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebugBreakPoint_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugBreakPoint_Impl::Enable(this).into() } - unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebugBreakPoint_Impl, - { + unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugBreakPoint_Impl::Disable(this).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebugBreakPoint_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugBreakPoint_Impl::Delete(this).into() } - unsafe extern "system" fn GetDocumentPosition(this: *mut core::ffi::c_void, pdocumentid: *mut u64, pcharacteroffset: *mut u32, pstatementcharcount: *mut u32) -> windows_core::HRESULT - where - Identity: IJsDebugBreakPoint_Impl, - { + unsafe extern "system" fn GetDocumentPosition(this: *mut core::ffi::c_void, pdocumentid: *mut u64, pcharacteroffset: *mut u32, pstatementcharcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugBreakPoint_Impl::GetDocumentPosition(this, core::mem::transmute_copy(&pdocumentid), core::mem::transmute_copy(&pcharacteroffset), core::mem::transmute_copy(&pstatementcharcount)).into() } @@ -5258,7 +3935,7 @@ impl IJsDebugBreakPoint_Vtbl { iid == &::IID } } -pub trait IJsDebugDataTarget_Impl: Sized { +pub trait IJsDebugDataTarget_Impl: Sized + windows_core::IUnknownImpl { 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; @@ -5271,28 +3948,16 @@ pub trait IJsDebugDataTarget_Impl: Sized { } impl windows_core::RuntimeName for IJsDebugDataTarget {} impl IJsDebugDataTarget_Vtbl { - pub const fn new() -> IJsDebugDataTarget_Vtbl - where - Identity: IJsDebugDataTarget_Impl, - { - unsafe extern "system" fn ReadMemory(this: *mut core::ffi::c_void, address: u64, flags: JsDebugReadMemoryFlags, pbuffer: *mut u8, size: u32, pbytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IJsDebugDataTarget_Impl, - { + pub const fn new() -> IJsDebugDataTarget_Vtbl { + unsafe extern "system" fn ReadMemory(this: *mut core::ffi::c_void, address: u64, flags: JsDebugReadMemoryFlags, pbuffer: *mut u8, size: u32, pbytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugDataTarget_Impl::ReadMemory(this, core::mem::transmute_copy(&address), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&size), core::mem::transmute_copy(&pbytesread)).into() } - unsafe extern "system" fn WriteMemory(this: *mut core::ffi::c_void, address: u64, pmemory: *const u8, size: u32) -> windows_core::HRESULT - where - Identity: IJsDebugDataTarget_Impl, - { + unsafe extern "system" fn WriteMemory(this: *mut core::ffi::c_void, address: u64, pmemory: *const u8, size: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugDataTarget_Impl::WriteMemory(this, core::mem::transmute_copy(&address), core::mem::transmute_copy(&pmemory), core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn AllocateVirtualMemory(this: *mut core::ffi::c_void, address: u64, size: u32, allocationtype: u32, pageprotection: u32, pallocatedaddress: *mut u64) -> windows_core::HRESULT - where - Identity: IJsDebugDataTarget_Impl, - { + unsafe extern "system" fn AllocateVirtualMemory(this: *mut core::ffi::c_void, address: u64, size: u32, allocationtype: u32, pageprotection: u32, pallocatedaddress: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugDataTarget_Impl::AllocateVirtualMemory(this, core::mem::transmute_copy(&address), core::mem::transmute_copy(&size), core::mem::transmute_copy(&allocationtype), core::mem::transmute_copy(&pageprotection)) { Ok(ok__) => { @@ -5302,17 +3967,11 @@ impl IJsDebugDataTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FreeVirtualMemory(this: *mut core::ffi::c_void, address: u64, size: u32, freetype: u32) -> windows_core::HRESULT - where - Identity: IJsDebugDataTarget_Impl, - { + unsafe extern "system" fn FreeVirtualMemory(this: *mut core::ffi::c_void, address: u64, size: u32, freetype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugDataTarget_Impl::FreeVirtualMemory(this, core::mem::transmute_copy(&address), core::mem::transmute_copy(&size), core::mem::transmute_copy(&freetype)).into() } - unsafe extern "system" fn GetTlsValue(this: *mut core::ffi::c_void, threadid: u32, tlsindex: u32, pvalue: *mut u64) -> windows_core::HRESULT - where - Identity: IJsDebugDataTarget_Impl, - { + unsafe extern "system" fn GetTlsValue(this: *mut core::ffi::c_void, threadid: u32, tlsindex: u32, pvalue: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugDataTarget_Impl::GetTlsValue(this, core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&tlsindex)) { Ok(ok__) => { @@ -5322,10 +3981,7 @@ impl IJsDebugDataTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadBSTR(this: *mut core::ffi::c_void, address: u64, pstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IJsDebugDataTarget_Impl, - { + unsafe extern "system" fn ReadBSTR(this: *mut core::ffi::c_void, address: u64, pstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugDataTarget_Impl::ReadBSTR(this, core::mem::transmute_copy(&address)) { Ok(ok__) => { @@ -5335,10 +3991,7 @@ impl IJsDebugDataTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadNullTerminatedString(this: *mut core::ffi::c_void, address: u64, charactersize: u16, maxcharacters: u32, pstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IJsDebugDataTarget_Impl, - { + unsafe extern "system" fn ReadNullTerminatedString(this: *mut core::ffi::c_void, address: u64, charactersize: u16, maxcharacters: u32, pstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugDataTarget_Impl::ReadNullTerminatedString(this, core::mem::transmute_copy(&address), core::mem::transmute_copy(&charactersize), core::mem::transmute_copy(&maxcharacters)) { Ok(ok__) => { @@ -5348,10 +4001,7 @@ impl IJsDebugDataTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateStackFrameEnumerator(this: *mut core::ffi::c_void, threadid: u32, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebugDataTarget_Impl, - { + unsafe extern "system" fn CreateStackFrameEnumerator(this: *mut core::ffi::c_void, threadid: u32, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugDataTarget_Impl::CreateStackFrameEnumerator(this, core::mem::transmute_copy(&threadid)) { Ok(ok__) => { @@ -5361,10 +4011,7 @@ impl IJsDebugDataTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, threadid: u32, contextflags: u32, contextsize: u32, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebugDataTarget_Impl, - { + unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, threadid: u32, contextflags: u32, contextsize: u32, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugDataTarget_Impl::GetThreadContext(this, core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&contextflags), core::mem::transmute_copy(&contextsize), core::mem::transmute_copy(&pcontext)).into() } @@ -5385,7 +4032,7 @@ impl IJsDebugDataTarget_Vtbl { iid == &::IID } } -pub trait IJsDebugFrame_Impl: Sized { +pub trait IJsDebugFrame_Impl: Sized + windows_core::IUnknownImpl { fn GetStackRange(&self, pstart: *mut u64, pend: *mut u64) -> windows_core::Result<()>; fn GetName(&self) -> windows_core::Result; fn GetDocumentPositionWithId(&self, pdocumentid: *mut u64, pcharacteroffset: *mut u32, pstatementcharcount: *mut u32) -> windows_core::Result<()>; @@ -5396,21 +4043,12 @@ pub trait IJsDebugFrame_Impl: Sized { } impl windows_core::RuntimeName for IJsDebugFrame {} impl IJsDebugFrame_Vtbl { - pub const fn new() -> IJsDebugFrame_Vtbl - where - Identity: IJsDebugFrame_Impl, - { - unsafe extern "system" fn GetStackRange(this: *mut core::ffi::c_void, pstart: *mut u64, pend: *mut u64) -> windows_core::HRESULT - where - Identity: IJsDebugFrame_Impl, - { + pub const fn new() -> IJsDebugFrame_Vtbl { + unsafe extern "system" fn GetStackRange(this: *mut core::ffi::c_void, pstart: *mut u64, pend: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugFrame_Impl::GetStackRange(this, core::mem::transmute_copy(&pstart), core::mem::transmute_copy(&pend)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IJsDebugFrame_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugFrame_Impl::GetName(this) { Ok(ok__) => { @@ -5420,24 +4058,15 @@ impl IJsDebugFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentPositionWithId(this: *mut core::ffi::c_void, pdocumentid: *mut u64, pcharacteroffset: *mut u32, pstatementcharcount: *mut u32) -> windows_core::HRESULT - where - Identity: IJsDebugFrame_Impl, - { + unsafe extern "system" fn GetDocumentPositionWithId(this: *mut core::ffi::c_void, pdocumentid: *mut u64, pcharacteroffset: *mut u32, pstatementcharcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugFrame_Impl::GetDocumentPositionWithId(this, core::mem::transmute_copy(&pdocumentid), core::mem::transmute_copy(&pcharacteroffset), core::mem::transmute_copy(&pstatementcharcount)).into() } - unsafe extern "system" fn GetDocumentPositionWithName(this: *mut core::ffi::c_void, pdocumentname: *mut core::mem::MaybeUninit, pline: *mut u32, pcolumn: *mut u32) -> windows_core::HRESULT - where - Identity: IJsDebugFrame_Impl, - { + unsafe extern "system" fn GetDocumentPositionWithName(this: *mut core::ffi::c_void, pdocumentname: *mut core::mem::MaybeUninit, pline: *mut u32, pcolumn: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugFrame_Impl::GetDocumentPositionWithName(this, core::mem::transmute_copy(&pdocumentname), core::mem::transmute_copy(&pline), core::mem::transmute_copy(&pcolumn)).into() } - unsafe extern "system" fn GetDebugProperty(this: *mut core::ffi::c_void, ppdebugproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebugFrame_Impl, - { + unsafe extern "system" fn GetDebugProperty(this: *mut core::ffi::c_void, ppdebugproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugFrame_Impl::GetDebugProperty(this) { Ok(ok__) => { @@ -5447,10 +4076,7 @@ impl IJsDebugFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReturnAddress(this: *mut core::ffi::c_void, preturnaddress: *mut u64) -> windows_core::HRESULT - where - Identity: IJsDebugFrame_Impl, - { + unsafe extern "system" fn GetReturnAddress(this: *mut core::ffi::c_void, preturnaddress: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugFrame_Impl::GetReturnAddress(this) { Ok(ok__) => { @@ -5460,10 +4086,7 @@ impl IJsDebugFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, pexpressiontext: windows_core::PCWSTR, ppdebugproperty: *mut *mut core::ffi::c_void, perror: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IJsDebugFrame_Impl, - { + unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, pexpressiontext: windows_core::PCWSTR, ppdebugproperty: *mut *mut core::ffi::c_void, perror: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugFrame_Impl::Evaluate(this, core::mem::transmute(&pexpressiontext), core::mem::transmute_copy(&ppdebugproperty), core::mem::transmute_copy(&perror)).into() } @@ -5482,7 +4105,7 @@ impl IJsDebugFrame_Vtbl { iid == &::IID } } -pub trait IJsDebugProcess_Impl: Sized { +pub trait IJsDebugProcess_Impl: Sized + windows_core::IUnknownImpl { fn CreateStackWalker(&self, threadid: u32) -> windows_core::Result; fn CreateBreakPoint(&self, documentid: u64, characteroffset: u32, charactercount: u32, isenabled: super::super::super::super::Foundation::BOOL) -> windows_core::Result; fn PerformAsyncBreak(&self, threadid: u32) -> windows_core::Result<()>; @@ -5490,14 +4113,8 @@ pub trait IJsDebugProcess_Impl: Sized { } impl windows_core::RuntimeName for IJsDebugProcess {} impl IJsDebugProcess_Vtbl { - pub const fn new() -> IJsDebugProcess_Vtbl - where - Identity: IJsDebugProcess_Impl, - { - unsafe extern "system" fn CreateStackWalker(this: *mut core::ffi::c_void, threadid: u32, ppstackwalker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebugProcess_Impl, - { + pub const fn new() -> IJsDebugProcess_Vtbl { + unsafe extern "system" fn CreateStackWalker(this: *mut core::ffi::c_void, threadid: u32, ppstackwalker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugProcess_Impl::CreateStackWalker(this, core::mem::transmute_copy(&threadid)) { Ok(ok__) => { @@ -5507,10 +4124,7 @@ impl IJsDebugProcess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBreakPoint(this: *mut core::ffi::c_void, documentid: u64, characteroffset: u32, charactercount: u32, isenabled: super::super::super::super::Foundation::BOOL, ppdebugbreakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebugProcess_Impl, - { + unsafe extern "system" fn CreateBreakPoint(this: *mut core::ffi::c_void, documentid: u64, characteroffset: u32, charactercount: u32, isenabled: super::super::super::super::Foundation::BOOL, ppdebugbreakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugProcess_Impl::CreateBreakPoint(this, core::mem::transmute_copy(&documentid), core::mem::transmute_copy(&characteroffset), core::mem::transmute_copy(&charactercount), core::mem::transmute_copy(&isenabled)) { Ok(ok__) => { @@ -5520,17 +4134,11 @@ impl IJsDebugProcess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PerformAsyncBreak(this: *mut core::ffi::c_void, threadid: u32) -> windows_core::HRESULT - where - Identity: IJsDebugProcess_Impl, - { + unsafe extern "system" fn PerformAsyncBreak(this: *mut core::ffi::c_void, threadid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugProcess_Impl::PerformAsyncBreak(this, core::mem::transmute_copy(&threadid)).into() } - unsafe extern "system" fn GetExternalStepAddress(this: *mut core::ffi::c_void, pcodeaddress: *mut u64) -> windows_core::HRESULT - where - Identity: IJsDebugProcess_Impl, - { + unsafe extern "system" fn GetExternalStepAddress(this: *mut core::ffi::c_void, pcodeaddress: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugProcess_Impl::GetExternalStepAddress(this) { Ok(ok__) => { @@ -5552,27 +4160,18 @@ impl IJsDebugProcess_Vtbl { iid == &::IID } } -pub trait IJsDebugProperty_Impl: Sized { +pub trait IJsDebugProperty_Impl: Sized + windows_core::IUnknownImpl { fn GetPropertyInfo(&self, nradix: u32, ppropertyinfo: *mut JsDebugPropertyInfo) -> windows_core::Result<()>; fn GetMembers(&self, members: JS_PROPERTY_MEMBERS) -> windows_core::Result; } impl windows_core::RuntimeName for IJsDebugProperty {} impl IJsDebugProperty_Vtbl { - pub const fn new() -> IJsDebugProperty_Vtbl - where - Identity: IJsDebugProperty_Impl, - { - unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, nradix: u32, ppropertyinfo: *mut JsDebugPropertyInfo) -> windows_core::HRESULT - where - Identity: IJsDebugProperty_Impl, - { + pub const fn new() -> IJsDebugProperty_Vtbl { + unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, nradix: u32, ppropertyinfo: *mut JsDebugPropertyInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsDebugProperty_Impl::GetPropertyInfo(this, core::mem::transmute_copy(&nradix), core::mem::transmute_copy(&ppropertyinfo)).into() } - unsafe extern "system" fn GetMembers(this: *mut core::ffi::c_void, members: JS_PROPERTY_MEMBERS, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebugProperty_Impl, - { + unsafe extern "system" fn GetMembers(this: *mut core::ffi::c_void, members: JS_PROPERTY_MEMBERS, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugProperty_Impl::GetMembers(this, core::mem::transmute_copy(&members)) { Ok(ok__) => { @@ -5592,19 +4191,13 @@ impl IJsDebugProperty_Vtbl { iid == &::IID } } -pub trait IJsDebugStackWalker_Impl: Sized { +pub trait IJsDebugStackWalker_Impl: Sized + windows_core::IUnknownImpl { fn GetNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IJsDebugStackWalker {} impl IJsDebugStackWalker_Vtbl { - pub const fn new() -> IJsDebugStackWalker_Vtbl - where - Identity: IJsDebugStackWalker_Impl, - { - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, ppframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IJsDebugStackWalker_Impl, - { + pub const fn new() -> IJsDebugStackWalker_Vtbl { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, ppframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugStackWalker_Impl::GetNext(this) { Ok(ok__) => { @@ -5620,27 +4213,18 @@ impl IJsDebugStackWalker_Vtbl { iid == &::IID } } -pub trait IJsEnumDebugProperty_Impl: Sized { +pub trait IJsEnumDebugProperty_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, count: u32, ppdebugproperty: *mut Option, pactualcount: *mut u32) -> windows_core::Result<()>; fn GetCount(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IJsEnumDebugProperty {} impl IJsEnumDebugProperty_Vtbl { - pub const fn new() -> IJsEnumDebugProperty_Vtbl - where - Identity: IJsEnumDebugProperty_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, count: u32, ppdebugproperty: *mut *mut core::ffi::c_void, pactualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IJsEnumDebugProperty_Impl, - { + pub const fn new() -> IJsEnumDebugProperty_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, count: u32, ppdebugproperty: *mut *mut core::ffi::c_void, pactualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IJsEnumDebugProperty_Impl::Next(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&ppdebugproperty), core::mem::transmute_copy(&pactualcount)).into() } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IJsEnumDebugProperty_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsEnumDebugProperty_Impl::GetCount(this) { Ok(ok__) => { @@ -5656,21 +4240,15 @@ impl IJsEnumDebugProperty_Vtbl { iid == &::IID } } -pub trait IMachineDebugManager_Impl: Sized { +pub trait IMachineDebugManager_Impl: Sized + windows_core::IUnknownImpl { fn AddApplication(&self, pda: Option<&IRemoteDebugApplication>) -> windows_core::Result; fn RemoveApplication(&self, dwappcookie: u32) -> windows_core::Result<()>; fn EnumApplications(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMachineDebugManager {} impl IMachineDebugManager_Vtbl { - pub const fn new() -> IMachineDebugManager_Vtbl - where - Identity: IMachineDebugManager_Impl, - { - unsafe extern "system" fn AddApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, pdwappcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IMachineDebugManager_Impl, - { + pub const fn new() -> IMachineDebugManager_Vtbl { + unsafe extern "system" fn AddApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, pdwappcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMachineDebugManager_Impl::AddApplication(this, windows_core::from_raw_borrowed(&pda)) { Ok(ok__) => { @@ -5680,17 +4258,11 @@ impl IMachineDebugManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveApplication(this: *mut core::ffi::c_void, dwappcookie: u32) -> windows_core::HRESULT - where - Identity: IMachineDebugManager_Impl, - { + unsafe extern "system" fn RemoveApplication(this: *mut core::ffi::c_void, dwappcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMachineDebugManager_Impl::RemoveApplication(this, core::mem::transmute_copy(&dwappcookie)).into() } - unsafe extern "system" fn EnumApplications(this: *mut core::ffi::c_void, ppeda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMachineDebugManager_Impl, - { + unsafe extern "system" fn EnumApplications(this: *mut core::ffi::c_void, ppeda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMachineDebugManager_Impl::EnumApplications(this) { Ok(ok__) => { @@ -5711,21 +4283,15 @@ impl IMachineDebugManager_Vtbl { iid == &::IID } } -pub trait IMachineDebugManagerCookie_Impl: Sized { +pub trait IMachineDebugManagerCookie_Impl: Sized + windows_core::IUnknownImpl { fn AddApplication(&self, pda: Option<&IRemoteDebugApplication>, dwdebugappcookie: u32) -> windows_core::Result; fn RemoveApplication(&self, dwdebugappcookie: u32, dwappcookie: u32) -> windows_core::Result<()>; fn EnumApplications(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMachineDebugManagerCookie {} impl IMachineDebugManagerCookie_Vtbl { - pub const fn new() -> IMachineDebugManagerCookie_Vtbl - where - Identity: IMachineDebugManagerCookie_Impl, - { - unsafe extern "system" fn AddApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, dwdebugappcookie: u32, pdwappcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IMachineDebugManagerCookie_Impl, - { + pub const fn new() -> IMachineDebugManagerCookie_Vtbl { + unsafe extern "system" fn AddApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, dwdebugappcookie: u32, pdwappcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMachineDebugManagerCookie_Impl::AddApplication(this, windows_core::from_raw_borrowed(&pda), core::mem::transmute_copy(&dwdebugappcookie)) { Ok(ok__) => { @@ -5735,17 +4301,11 @@ impl IMachineDebugManagerCookie_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveApplication(this: *mut core::ffi::c_void, dwdebugappcookie: u32, dwappcookie: u32) -> windows_core::HRESULT - where - Identity: IMachineDebugManagerCookie_Impl, - { + unsafe extern "system" fn RemoveApplication(this: *mut core::ffi::c_void, dwdebugappcookie: u32, dwappcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMachineDebugManagerCookie_Impl::RemoveApplication(this, core::mem::transmute_copy(&dwdebugappcookie), core::mem::transmute_copy(&dwappcookie)).into() } - unsafe extern "system" fn EnumApplications(this: *mut core::ffi::c_void, ppeda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMachineDebugManagerCookie_Impl, - { + unsafe extern "system" fn EnumApplications(this: *mut core::ffi::c_void, ppeda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMachineDebugManagerCookie_Impl::EnumApplications(this) { Ok(ok__) => { @@ -5766,27 +4326,18 @@ impl IMachineDebugManagerCookie_Vtbl { iid == &::IID } } -pub trait IMachineDebugManagerEvents_Impl: Sized { +pub trait IMachineDebugManagerEvents_Impl: Sized + windows_core::IUnknownImpl { fn onAddApplication(&self, pda: Option<&IRemoteDebugApplication>, dwappcookie: u32) -> windows_core::Result<()>; fn onRemoveApplication(&self, pda: Option<&IRemoteDebugApplication>, dwappcookie: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMachineDebugManagerEvents {} impl IMachineDebugManagerEvents_Vtbl { - pub const fn new() -> IMachineDebugManagerEvents_Vtbl - where - Identity: IMachineDebugManagerEvents_Impl, - { - unsafe extern "system" fn onAddApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, dwappcookie: u32) -> windows_core::HRESULT - where - Identity: IMachineDebugManagerEvents_Impl, - { + pub const fn new() -> IMachineDebugManagerEvents_Vtbl { + unsafe extern "system" fn onAddApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, dwappcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMachineDebugManagerEvents_Impl::onAddApplication(this, windows_core::from_raw_borrowed(&pda), core::mem::transmute_copy(&dwappcookie)).into() } - unsafe extern "system" fn onRemoveApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, dwappcookie: u32) -> windows_core::HRESULT - where - Identity: IMachineDebugManagerEvents_Impl, - { + unsafe extern "system" fn onRemoveApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, dwappcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMachineDebugManagerEvents_Impl::onRemoveApplication(this, windows_core::from_raw_borrowed(&pda), core::mem::transmute_copy(&dwappcookie)).into() } @@ -5800,7 +4351,7 @@ impl IMachineDebugManagerEvents_Vtbl { iid == &::IID } } -pub trait IProcessDebugManager32_Impl: Sized { +pub trait IProcessDebugManager32_Impl: Sized + windows_core::IUnknownImpl { fn CreateApplication(&self) -> windows_core::Result; fn GetDefaultApplication(&self) -> windows_core::Result; fn AddApplication(&self, pda: Option<&IDebugApplication32>) -> windows_core::Result; @@ -5809,14 +4360,8 @@ pub trait IProcessDebugManager32_Impl: Sized { } impl windows_core::RuntimeName for IProcessDebugManager32 {} impl IProcessDebugManager32_Vtbl { - pub const fn new() -> IProcessDebugManager32_Vtbl - where - Identity: IProcessDebugManager32_Impl, - { - unsafe extern "system" fn CreateApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProcessDebugManager32_Impl, - { + pub const fn new() -> IProcessDebugManager32_Vtbl { + unsafe extern "system" fn CreateApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProcessDebugManager32_Impl::CreateApplication(this) { Ok(ok__) => { @@ -5826,10 +4371,7 @@ impl IProcessDebugManager32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProcessDebugManager32_Impl, - { + unsafe extern "system" fn GetDefaultApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProcessDebugManager32_Impl::GetDefaultApplication(this) { Ok(ok__) => { @@ -5839,10 +4381,7 @@ impl IProcessDebugManager32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, pdwappcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IProcessDebugManager32_Impl, - { + unsafe extern "system" fn AddApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, pdwappcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProcessDebugManager32_Impl::AddApplication(this, windows_core::from_raw_borrowed(&pda)) { Ok(ok__) => { @@ -5852,17 +4391,11 @@ impl IProcessDebugManager32_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveApplication(this: *mut core::ffi::c_void, dwappcookie: u32) -> windows_core::HRESULT - where - Identity: IProcessDebugManager32_Impl, - { + unsafe extern "system" fn RemoveApplication(this: *mut core::ffi::c_void, dwappcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProcessDebugManager32_Impl::RemoveApplication(this, core::mem::transmute_copy(&dwappcookie)).into() } - unsafe extern "system" fn CreateDebugDocumentHelper(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pddh: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProcessDebugManager32_Impl, - { + unsafe extern "system" fn CreateDebugDocumentHelper(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pddh: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProcessDebugManager32_Impl::CreateDebugDocumentHelper(this, windows_core::from_raw_borrowed(&punkouter)) { Ok(ok__) => { @@ -5885,7 +4418,7 @@ impl IProcessDebugManager32_Vtbl { iid == &::IID } } -pub trait IProcessDebugManager64_Impl: Sized { +pub trait IProcessDebugManager64_Impl: Sized + windows_core::IUnknownImpl { fn CreateApplication(&self) -> windows_core::Result; fn GetDefaultApplication(&self) -> windows_core::Result; fn AddApplication(&self, pda: Option<&IDebugApplication64>) -> windows_core::Result; @@ -5894,14 +4427,8 @@ pub trait IProcessDebugManager64_Impl: Sized { } impl windows_core::RuntimeName for IProcessDebugManager64 {} impl IProcessDebugManager64_Vtbl { - pub const fn new() -> IProcessDebugManager64_Vtbl - where - Identity: IProcessDebugManager64_Impl, - { - unsafe extern "system" fn CreateApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProcessDebugManager64_Impl, - { + pub const fn new() -> IProcessDebugManager64_Vtbl { + unsafe extern "system" fn CreateApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProcessDebugManager64_Impl::CreateApplication(this) { Ok(ok__) => { @@ -5911,10 +4438,7 @@ impl IProcessDebugManager64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProcessDebugManager64_Impl, - { + unsafe extern "system" fn GetDefaultApplication(this: *mut core::ffi::c_void, ppda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProcessDebugManager64_Impl::GetDefaultApplication(this) { Ok(ok__) => { @@ -5924,10 +4448,7 @@ impl IProcessDebugManager64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, pdwappcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IProcessDebugManager64_Impl, - { + unsafe extern "system" fn AddApplication(this: *mut core::ffi::c_void, pda: *mut core::ffi::c_void, pdwappcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProcessDebugManager64_Impl::AddApplication(this, windows_core::from_raw_borrowed(&pda)) { Ok(ok__) => { @@ -5937,17 +4458,11 @@ impl IProcessDebugManager64_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveApplication(this: *mut core::ffi::c_void, dwappcookie: u32) -> windows_core::HRESULT - where - Identity: IProcessDebugManager64_Impl, - { + unsafe extern "system" fn RemoveApplication(this: *mut core::ffi::c_void, dwappcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProcessDebugManager64_Impl::RemoveApplication(this, core::mem::transmute_copy(&dwappcookie)).into() } - unsafe extern "system" fn CreateDebugDocumentHelper(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pddh: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProcessDebugManager64_Impl, - { + unsafe extern "system" fn CreateDebugDocumentHelper(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pddh: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProcessDebugManager64_Impl::CreateDebugDocumentHelper(this, windows_core::from_raw_borrowed(&punkouter)) { Ok(ok__) => { @@ -5970,19 +4485,13 @@ impl IProcessDebugManager64_Vtbl { iid == &::IID } } -pub trait IProvideExpressionContexts_Impl: Sized { +pub trait IProvideExpressionContexts_Impl: Sized + windows_core::IUnknownImpl { fn EnumExpressionContexts(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IProvideExpressionContexts {} impl IProvideExpressionContexts_Vtbl { - pub const fn new() -> IProvideExpressionContexts_Vtbl - where - Identity: IProvideExpressionContexts_Impl, - { - unsafe extern "system" fn EnumExpressionContexts(this: *mut core::ffi::c_void, ppedec: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProvideExpressionContexts_Impl, - { + pub const fn new() -> IProvideExpressionContexts_Vtbl { + unsafe extern "system" fn EnumExpressionContexts(this: *mut core::ffi::c_void, ppedec: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideExpressionContexts_Impl::EnumExpressionContexts(this) { Ok(ok__) => { @@ -5998,7 +4507,7 @@ impl IProvideExpressionContexts_Vtbl { iid == &::IID } } -pub trait IRemoteDebugApplication_Impl: Sized { +pub trait IRemoteDebugApplication_Impl: Sized + windows_core::IUnknownImpl { fn ResumeFromBreakPoint(&self, prptfocus: Option<&IRemoteDebugApplicationThread>, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> windows_core::Result<()>; fn CauseBreak(&self) -> windows_core::Result<()>; fn ConnectDebugger(&self, pad: Option<&IApplicationDebugger>) -> windows_core::Result<()>; @@ -6013,42 +4522,24 @@ pub trait IRemoteDebugApplication_Impl: Sized { } impl windows_core::RuntimeName for IRemoteDebugApplication {} impl IRemoteDebugApplication_Vtbl { - pub const fn new() -> IRemoteDebugApplication_Vtbl - where - Identity: IRemoteDebugApplication_Impl, - { - unsafe extern "system" fn ResumeFromBreakPoint(this: *mut core::ffi::c_void, prptfocus: *mut core::ffi::c_void, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication_Impl, - { + pub const fn new() -> IRemoteDebugApplication_Vtbl { + unsafe extern "system" fn ResumeFromBreakPoint(this: *mut core::ffi::c_void, prptfocus: *mut core::ffi::c_void, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplication_Impl::ResumeFromBreakPoint(this, windows_core::from_raw_borrowed(&prptfocus), core::mem::transmute_copy(&bra), core::mem::transmute_copy(&era)).into() } - unsafe extern "system" fn CauseBreak(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication_Impl, - { + unsafe extern "system" fn CauseBreak(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplication_Impl::CauseBreak(this).into() } - unsafe extern "system" fn ConnectDebugger(this: *mut core::ffi::c_void, pad: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication_Impl, - { + unsafe extern "system" fn ConnectDebugger(this: *mut core::ffi::c_void, pad: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplication_Impl::ConnectDebugger(this, windows_core::from_raw_borrowed(&pad)).into() } - unsafe extern "system" fn DisconnectDebugger(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication_Impl, - { + unsafe extern "system" fn DisconnectDebugger(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplication_Impl::DisconnectDebugger(this).into() } - unsafe extern "system" fn GetDebugger(this: *mut core::ffi::c_void, pad: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication_Impl, - { + unsafe extern "system" fn GetDebugger(this: *mut core::ffi::c_void, pad: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplication_Impl::GetDebugger(this) { Ok(ok__) => { @@ -6058,10 +4549,7 @@ impl IRemoteDebugApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstanceAtApplication(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 - where - Identity: IRemoteDebugApplication_Impl, - { + unsafe extern "system" fn CreateInstanceAtApplication(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplication_Impl::CreateInstanceAtApplication(this, core::mem::transmute_copy(&rclsid), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&dwclscontext), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -6071,17 +4559,11 @@ impl IRemoteDebugApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryAlive(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication_Impl, - { + unsafe extern "system" fn QueryAlive(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplication_Impl::QueryAlive(this).into() } - unsafe extern "system" fn EnumThreads(this: *mut core::ffi::c_void, pperdat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication_Impl, - { + unsafe extern "system" fn EnumThreads(this: *mut core::ffi::c_void, pperdat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplication_Impl::EnumThreads(this) { Ok(ok__) => { @@ -6091,10 +4573,7 @@ impl IRemoteDebugApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplication_Impl::GetName(this) { Ok(ok__) => { @@ -6104,10 +4583,7 @@ impl IRemoteDebugApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRootNode(this: *mut core::ffi::c_void, ppdanroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication_Impl, - { + unsafe extern "system" fn GetRootNode(this: *mut core::ffi::c_void, ppdanroot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplication_Impl::GetRootNode(this) { Ok(ok__) => { @@ -6117,10 +4593,7 @@ impl IRemoteDebugApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumGlobalExpressionContexts(this: *mut core::ffi::c_void, ppedec: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication_Impl, - { + unsafe extern "system" fn EnumGlobalExpressionContexts(this: *mut core::ffi::c_void, ppedec: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplication_Impl::EnumGlobalExpressionContexts(this) { Ok(ok__) => { @@ -6149,28 +4622,19 @@ impl IRemoteDebugApplication_Vtbl { iid == &::IID } } -pub trait IRemoteDebugApplication110_Impl: Sized { +pub trait IRemoteDebugApplication110_Impl: Sized + windows_core::IUnknownImpl { fn SetDebuggerOptions(&self, mask: SCRIPT_DEBUGGER_OPTIONS, value: SCRIPT_DEBUGGER_OPTIONS) -> windows_core::Result<()>; fn GetCurrentDebuggerOptions(&self) -> windows_core::Result; fn GetMainThread(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IRemoteDebugApplication110 {} impl IRemoteDebugApplication110_Vtbl { - pub const fn new() -> IRemoteDebugApplication110_Vtbl - where - Identity: IRemoteDebugApplication110_Impl, - { - unsafe extern "system" fn SetDebuggerOptions(this: *mut core::ffi::c_void, mask: SCRIPT_DEBUGGER_OPTIONS, value: SCRIPT_DEBUGGER_OPTIONS) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication110_Impl, - { + pub const fn new() -> IRemoteDebugApplication110_Vtbl { + unsafe extern "system" fn SetDebuggerOptions(this: *mut core::ffi::c_void, mask: SCRIPT_DEBUGGER_OPTIONS, value: SCRIPT_DEBUGGER_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplication110_Impl::SetDebuggerOptions(this, core::mem::transmute_copy(&mask), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCurrentDebuggerOptions(this: *mut core::ffi::c_void, pcurrentoptions: *mut SCRIPT_DEBUGGER_OPTIONS) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication110_Impl, - { + unsafe extern "system" fn GetCurrentDebuggerOptions(this: *mut core::ffi::c_void, pcurrentoptions: *mut SCRIPT_DEBUGGER_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplication110_Impl::GetCurrentDebuggerOptions(this) { Ok(ok__) => { @@ -6180,10 +4644,7 @@ impl IRemoteDebugApplication110_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMainThread(this: *mut core::ffi::c_void, ppthread: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplication110_Impl, - { + unsafe extern "system" fn GetMainThread(this: *mut core::ffi::c_void, ppthread: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplication110_Impl::GetMainThread(this) { Ok(ok__) => { @@ -6204,7 +4665,7 @@ impl IRemoteDebugApplication110_Vtbl { iid == &::IID } } -pub trait IRemoteDebugApplicationEvents_Impl: Sized { +pub trait IRemoteDebugApplicationEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnConnectDebugger(&self, pad: Option<&IApplicationDebugger>) -> windows_core::Result<()>; fn OnDisconnectDebugger(&self) -> windows_core::Result<()>; fn OnSetName(&self, pstrname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -6218,77 +4679,44 @@ pub trait IRemoteDebugApplicationEvents_Impl: Sized { } impl windows_core::RuntimeName for IRemoteDebugApplicationEvents {} impl IRemoteDebugApplicationEvents_Vtbl { - pub const fn new() -> IRemoteDebugApplicationEvents_Vtbl - where - Identity: IRemoteDebugApplicationEvents_Impl, - { - unsafe extern "system" fn OnConnectDebugger(this: *mut core::ffi::c_void, pad: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationEvents_Impl, - { + pub const fn new() -> IRemoteDebugApplicationEvents_Vtbl { + unsafe extern "system" fn OnConnectDebugger(this: *mut core::ffi::c_void, pad: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationEvents_Impl::OnConnectDebugger(this, windows_core::from_raw_borrowed(&pad)).into() } - unsafe extern "system" fn OnDisconnectDebugger(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationEvents_Impl, - { + unsafe extern "system" fn OnDisconnectDebugger(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationEvents_Impl::OnDisconnectDebugger(this).into() } - unsafe extern "system" fn OnSetName(this: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationEvents_Impl, - { + unsafe extern "system" fn OnSetName(this: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationEvents_Impl::OnSetName(this, core::mem::transmute(&pstrname)).into() } - unsafe extern "system" fn OnDebugOutput(this: *mut core::ffi::c_void, pstr: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationEvents_Impl, - { + unsafe extern "system" fn OnDebugOutput(this: *mut core::ffi::c_void, pstr: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationEvents_Impl::OnDebugOutput(this, core::mem::transmute(&pstr)).into() } - unsafe extern "system" fn OnClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationEvents_Impl, - { + unsafe extern "system" fn OnClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationEvents_Impl::OnClose(this).into() } - unsafe extern "system" fn OnEnterBreakPoint(this: *mut core::ffi::c_void, prdat: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationEvents_Impl, - { + unsafe extern "system" fn OnEnterBreakPoint(this: *mut core::ffi::c_void, prdat: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationEvents_Impl::OnEnterBreakPoint(this, windows_core::from_raw_borrowed(&prdat)).into() } - unsafe extern "system" fn OnLeaveBreakPoint(this: *mut core::ffi::c_void, prdat: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationEvents_Impl, - { + unsafe extern "system" fn OnLeaveBreakPoint(this: *mut core::ffi::c_void, prdat: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationEvents_Impl::OnLeaveBreakPoint(this, windows_core::from_raw_borrowed(&prdat)).into() } - unsafe extern "system" fn OnCreateThread(this: *mut core::ffi::c_void, prdat: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationEvents_Impl, - { + unsafe extern "system" fn OnCreateThread(this: *mut core::ffi::c_void, prdat: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationEvents_Impl::OnCreateThread(this, windows_core::from_raw_borrowed(&prdat)).into() } - unsafe extern "system" fn OnDestroyThread(this: *mut core::ffi::c_void, prdat: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationEvents_Impl, - { + unsafe extern "system" fn OnDestroyThread(this: *mut core::ffi::c_void, prdat: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationEvents_Impl::OnDestroyThread(this, windows_core::from_raw_borrowed(&prdat)).into() } - unsafe extern "system" fn OnBreakFlagChange(this: *mut core::ffi::c_void, abf: u32, prdatsteppingthread: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationEvents_Impl, - { + unsafe extern "system" fn OnBreakFlagChange(this: *mut core::ffi::c_void, abf: u32, prdatsteppingthread: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationEvents_Impl::OnBreakFlagChange(this, core::mem::transmute_copy(&abf), windows_core::from_raw_borrowed(&prdatsteppingthread)).into() } @@ -6310,7 +4738,7 @@ impl IRemoteDebugApplicationEvents_Vtbl { iid == &::IID } } -pub trait IRemoteDebugApplicationThread_Impl: Sized { +pub trait IRemoteDebugApplicationThread_Impl: Sized + windows_core::IUnknownImpl { fn GetSystemThreadId(&self) -> windows_core::Result; fn GetApplication(&self) -> windows_core::Result; fn EnumStackFrames(&self) -> windows_core::Result; @@ -6323,14 +4751,8 @@ pub trait IRemoteDebugApplicationThread_Impl: Sized { } impl windows_core::RuntimeName for IRemoteDebugApplicationThread {} impl IRemoteDebugApplicationThread_Vtbl { - pub const fn new() -> IRemoteDebugApplicationThread_Vtbl - where - Identity: IRemoteDebugApplicationThread_Impl, - { - unsafe extern "system" fn GetSystemThreadId(this: *mut core::ffi::c_void, dwthreadid: *mut u32) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationThread_Impl, - { + pub const fn new() -> IRemoteDebugApplicationThread_Vtbl { + unsafe extern "system" fn GetSystemThreadId(this: *mut core::ffi::c_void, dwthreadid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplicationThread_Impl::GetSystemThreadId(this) { Ok(ok__) => { @@ -6340,10 +4762,7 @@ impl IRemoteDebugApplicationThread_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetApplication(this: *mut core::ffi::c_void, pprda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationThread_Impl, - { + unsafe extern "system" fn GetApplication(this: *mut core::ffi::c_void, pprda: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplicationThread_Impl::GetApplication(this) { Ok(ok__) => { @@ -6353,10 +4772,7 @@ impl IRemoteDebugApplicationThread_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumStackFrames(this: *mut core::ffi::c_void, ppedsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationThread_Impl, - { + unsafe extern "system" fn EnumStackFrames(this: *mut core::ffi::c_void, ppedsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplicationThread_Impl::EnumStackFrames(this) { Ok(ok__) => { @@ -6366,24 +4782,15 @@ impl IRemoteDebugApplicationThread_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit, pbstrstate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationThread_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit, pbstrstate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationThread_Impl::GetDescription(this, core::mem::transmute_copy(&pbstrdescription), core::mem::transmute_copy(&pbstrstate)).into() } - unsafe extern "system" fn SetNextStatement(this: *mut core::ffi::c_void, pstackframe: *mut core::ffi::c_void, pcodecontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationThread_Impl, - { + unsafe extern "system" fn SetNextStatement(this: *mut core::ffi::c_void, pstackframe: *mut core::ffi::c_void, pcodecontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugApplicationThread_Impl::SetNextStatement(this, windows_core::from_raw_borrowed(&pstackframe), windows_core::from_raw_borrowed(&pcodecontext)).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pstate: *mut u32) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationThread_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, pstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplicationThread_Impl::GetState(this) { Ok(ok__) => { @@ -6393,10 +4800,7 @@ impl IRemoteDebugApplicationThread_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationThread_Impl, - { + unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplicationThread_Impl::Suspend(this) { Ok(ok__) => { @@ -6406,10 +4810,7 @@ impl IRemoteDebugApplicationThread_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationThread_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplicationThread_Impl::Resume(this) { Ok(ok__) => { @@ -6419,10 +4820,7 @@ impl IRemoteDebugApplicationThread_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSuspendCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IRemoteDebugApplicationThread_Impl, - { + unsafe extern "system" fn GetSuspendCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDebugApplicationThread_Impl::GetSuspendCount(this) { Ok(ok__) => { @@ -6449,19 +4847,13 @@ impl IRemoteDebugApplicationThread_Vtbl { iid == &::IID } } -pub trait IRemoteDebugCriticalErrorEvent110_Impl: Sized { +pub trait IRemoteDebugCriticalErrorEvent110_Impl: Sized + windows_core::IUnknownImpl { fn GetErrorInfo(&self, pbstrsource: *mut windows_core::BSTR, pmessageid: *mut i32, pbstrmessage: *mut windows_core::BSTR, pplocation: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRemoteDebugCriticalErrorEvent110 {} impl IRemoteDebugCriticalErrorEvent110_Vtbl { - pub const fn new() -> IRemoteDebugCriticalErrorEvent110_Vtbl - where - Identity: IRemoteDebugCriticalErrorEvent110_Impl, - { - unsafe extern "system" fn GetErrorInfo(this: *mut core::ffi::c_void, pbstrsource: *mut core::mem::MaybeUninit, pmessageid: *mut i32, pbstrmessage: *mut core::mem::MaybeUninit, pplocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugCriticalErrorEvent110_Impl, - { + pub const fn new() -> IRemoteDebugCriticalErrorEvent110_Vtbl { + unsafe extern "system" fn GetErrorInfo(this: *mut core::ffi::c_void, pbstrsource: *mut core::mem::MaybeUninit, pmessageid: *mut i32, pbstrmessage: *mut core::mem::MaybeUninit, pplocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugCriticalErrorEvent110_Impl::GetErrorInfo(this, core::mem::transmute_copy(&pbstrsource), core::mem::transmute_copy(&pmessageid), core::mem::transmute_copy(&pbstrmessage), core::mem::transmute_copy(&pplocation)).into() } @@ -6471,19 +4863,13 @@ impl IRemoteDebugCriticalErrorEvent110_Vtbl { iid == &::IID } } -pub trait IRemoteDebugInfoEvent110_Impl: Sized { +pub trait IRemoteDebugInfoEvent110_Impl: Sized + windows_core::IUnknownImpl { fn GetEventInfo(&self, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut windows_core::BSTR, pbstrurl: *mut windows_core::BSTR, pplocation: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRemoteDebugInfoEvent110 {} impl IRemoteDebugInfoEvent110_Vtbl { - pub const fn new() -> IRemoteDebugInfoEvent110_Vtbl - where - Identity: IRemoteDebugInfoEvent110_Impl, - { - unsafe extern "system" fn GetEventInfo(this: *mut core::ffi::c_void, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut core::mem::MaybeUninit, pbstrurl: *mut core::mem::MaybeUninit, pplocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDebugInfoEvent110_Impl, - { + pub const fn new() -> IRemoteDebugInfoEvent110_Vtbl { + unsafe extern "system" fn GetEventInfo(this: *mut core::ffi::c_void, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut core::mem::MaybeUninit, pbstrurl: *mut core::mem::MaybeUninit, pplocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDebugInfoEvent110_Impl::GetEventInfo(this, core::mem::transmute_copy(&pmessagetype), core::mem::transmute_copy(&pbstrmessage), core::mem::transmute_copy(&pbstrurl), core::mem::transmute_copy(&pplocation)).into() } @@ -6511,14 +4897,8 @@ pub trait IScriptEntry_Impl: Sized + IScriptNode_Impl { impl windows_core::RuntimeName for IScriptEntry {} #[cfg(feature = "Win32_System_Com")] impl IScriptEntry_Vtbl { - pub const fn new() -> IScriptEntry_Vtbl - where - Identity: IScriptEntry_Impl, - { - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + pub const fn new() -> IScriptEntry_Vtbl { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptEntry_Impl::GetText(this) { Ok(ok__) => { @@ -6528,17 +4908,11 @@ impl IScriptEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptEntry_Impl::SetText(this, core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetBody(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + unsafe extern "system" fn GetBody(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptEntry_Impl::GetBody(this) { Ok(ok__) => { @@ -6548,17 +4922,11 @@ impl IScriptEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptEntry_Impl::SetBody(this, core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptEntry_Impl::GetName(this) { Ok(ok__) => { @@ -6568,17 +4936,11 @@ impl IScriptEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptEntry_Impl::SetName(this, core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetItemName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + unsafe extern "system" fn GetItemName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptEntry_Impl::GetItemName(this) { Ok(ok__) => { @@ -6588,31 +4950,19 @@ impl IScriptEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetItemName(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + unsafe extern "system" fn SetItemName(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptEntry_Impl::SetItemName(this, core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetSignature(this: *mut core::ffi::c_void, ppti: *mut *mut core::ffi::c_void, pimethod: *mut u32) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + unsafe extern "system" fn GetSignature(this: *mut core::ffi::c_void, ppti: *mut *mut core::ffi::c_void, pimethod: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptEntry_Impl::GetSignature(this, core::mem::transmute_copy(&ppti), core::mem::transmute_copy(&pimethod)).into() } - unsafe extern "system" fn SetSignature(this: *mut core::ffi::c_void, pti: *mut core::ffi::c_void, imethod: u32) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + unsafe extern "system" fn SetSignature(this: *mut core::ffi::c_void, pti: *mut core::ffi::c_void, imethod: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptEntry_Impl::SetSignature(this, windows_core::from_raw_borrowed(&pti), core::mem::transmute_copy(&imethod)).into() } - unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, pichmin: *mut u32, pcch: *mut u32) -> windows_core::HRESULT - where - Identity: IScriptEntry_Impl, - { + unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, pichmin: *mut u32, pcch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptEntry_Impl::GetRange(this, core::mem::transmute_copy(&pichmin), core::mem::transmute_copy(&pcch)).into() } @@ -6635,21 +4985,15 @@ impl IScriptEntry_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IScriptInvocationContext_Impl: Sized { +pub trait IScriptInvocationContext_Impl: Sized + windows_core::IUnknownImpl { fn GetContextType(&self) -> windows_core::Result; fn GetContextDescription(&self) -> windows_core::Result; fn GetContextObject(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IScriptInvocationContext {} impl IScriptInvocationContext_Vtbl { - pub const fn new() -> IScriptInvocationContext_Vtbl - where - Identity: IScriptInvocationContext_Impl, - { - unsafe extern "system" fn GetContextType(this: *mut core::ffi::c_void, pinvocationcontexttype: *mut SCRIPT_INVOCATION_CONTEXT_TYPE) -> windows_core::HRESULT - where - Identity: IScriptInvocationContext_Impl, - { + pub const fn new() -> IScriptInvocationContext_Vtbl { + unsafe extern "system" fn GetContextType(this: *mut core::ffi::c_void, pinvocationcontexttype: *mut SCRIPT_INVOCATION_CONTEXT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptInvocationContext_Impl::GetContextType(this) { Ok(ok__) => { @@ -6659,10 +5003,7 @@ impl IScriptInvocationContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContextDescription(this: *mut core::ffi::c_void, pdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptInvocationContext_Impl, - { + unsafe extern "system" fn GetContextDescription(this: *mut core::ffi::c_void, pdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptInvocationContext_Impl::GetContextDescription(this) { Ok(ok__) => { @@ -6672,10 +5013,7 @@ impl IScriptInvocationContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContextObject(this: *mut core::ffi::c_void, ppcontextobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScriptInvocationContext_Impl, - { + unsafe extern "system" fn GetContextObject(this: *mut core::ffi::c_void, ppcontextobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptInvocationContext_Impl::GetContextObject(this) { Ok(ok__) => { @@ -6697,7 +5035,7 @@ impl IScriptInvocationContext_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IScriptNode_Impl: Sized { +pub trait IScriptNode_Impl: Sized + windows_core::IUnknownImpl { fn Alive(&self) -> windows_core::Result<()>; fn Delete(&self) -> windows_core::Result<()>; fn GetParent(&self) -> windows_core::Result; @@ -6713,28 +5051,16 @@ pub trait IScriptNode_Impl: Sized { impl windows_core::RuntimeName for IScriptNode {} #[cfg(feature = "Win32_System_Com")] impl IScriptNode_Vtbl { - pub const fn new() -> IScriptNode_Vtbl - where - Identity: IScriptNode_Impl, - { - unsafe extern "system" fn Alive(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScriptNode_Impl, - { + pub const fn new() -> IScriptNode_Vtbl { + unsafe extern "system" fn Alive(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptNode_Impl::Alive(this).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScriptNode_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptNode_Impl::Delete(this).into() } - unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, ppsnparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScriptNode_Impl, - { + unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, ppsnparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptNode_Impl::GetParent(this) { Ok(ok__) => { @@ -6744,10 +5070,7 @@ impl IScriptNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIndexInParent(this: *mut core::ffi::c_void, pisn: *mut u32) -> windows_core::HRESULT - where - Identity: IScriptNode_Impl, - { + unsafe extern "system" fn GetIndexInParent(this: *mut core::ffi::c_void, pisn: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptNode_Impl::GetIndexInParent(this) { Ok(ok__) => { @@ -6757,10 +5080,7 @@ impl IScriptNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCookie(this: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IScriptNode_Impl, - { + unsafe extern "system" fn GetCookie(this: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptNode_Impl::GetCookie(this) { Ok(ok__) => { @@ -6770,10 +5090,7 @@ impl IScriptNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOfChildren(this: *mut core::ffi::c_void, pcsn: *mut u32) -> windows_core::HRESULT - where - Identity: IScriptNode_Impl, - { + unsafe extern "system" fn GetNumberOfChildren(this: *mut core::ffi::c_void, pcsn: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptNode_Impl::GetNumberOfChildren(this) { Ok(ok__) => { @@ -6783,10 +5100,7 @@ impl IScriptNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChild(this: *mut core::ffi::c_void, isn: u32, ppsn: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScriptNode_Impl, - { + unsafe extern "system" fn GetChild(this: *mut core::ffi::c_void, isn: u32, ppsn: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptNode_Impl::GetChild(this, core::mem::transmute_copy(&isn)) { Ok(ok__) => { @@ -6796,10 +5110,7 @@ impl IScriptNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptNode_Impl, - { + unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptNode_Impl::GetLanguage(this) { Ok(ok__) => { @@ -6809,10 +5120,7 @@ impl IScriptNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateChildEntry(this: *mut core::ffi::c_void, isn: u32, dwcookie: u32, pszdelimiter: windows_core::PCWSTR, ppse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScriptNode_Impl, - { + unsafe extern "system" fn CreateChildEntry(this: *mut core::ffi::c_void, isn: u32, dwcookie: u32, pszdelimiter: windows_core::PCWSTR, ppse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptNode_Impl::CreateChildEntry(this, core::mem::transmute_copy(&isn), core::mem::transmute_copy(&dwcookie), core::mem::transmute(&pszdelimiter)) { Ok(ok__) => { @@ -6822,10 +5130,7 @@ impl IScriptNode_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateChildHandler(this: *mut core::ffi::c_void, pszdefaultname: windows_core::PCWSTR, prgpsznames: *const windows_core::PCWSTR, 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 - where - Identity: IScriptNode_Impl, - { + unsafe extern "system" fn CreateChildHandler(this: *mut core::ffi::c_void, pszdefaultname: windows_core::PCWSTR, prgpsznames: *const windows_core::PCWSTR, 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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptNode_Impl::CreateChildHandler(this, core::mem::transmute(&pszdefaultname), core::mem::transmute_copy(&prgpsznames), core::mem::transmute_copy(&cpsznames), core::mem::transmute(&pszevent), core::mem::transmute(&pszdelimiter), windows_core::from_raw_borrowed(&ptisignature), core::mem::transmute_copy(&imethodsignature), core::mem::transmute_copy(&isn), core::mem::transmute_copy(&dwcookie)) { Ok(ok__) => { @@ -6866,14 +5171,8 @@ pub trait IScriptScriptlet_Impl: Sized + IScriptEntry_Impl { impl windows_core::RuntimeName for IScriptScriptlet {} #[cfg(feature = "Win32_System_Com")] impl IScriptScriptlet_Vtbl { - pub const fn new() -> IScriptScriptlet_Vtbl - where - Identity: IScriptScriptlet_Impl, - { - unsafe extern "system" fn GetSubItemName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptScriptlet_Impl, - { + pub const fn new() -> IScriptScriptlet_Vtbl { + unsafe extern "system" fn GetSubItemName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptScriptlet_Impl::GetSubItemName(this) { Ok(ok__) => { @@ -6883,17 +5182,11 @@ impl IScriptScriptlet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubItemName(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IScriptScriptlet_Impl, - { + unsafe extern "system" fn SetSubItemName(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptScriptlet_Impl::SetSubItemName(this, core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetEventName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptScriptlet_Impl, - { + unsafe extern "system" fn GetEventName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptScriptlet_Impl::GetEventName(this) { Ok(ok__) => { @@ -6903,17 +5196,11 @@ impl IScriptScriptlet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventName(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IScriptScriptlet_Impl, - { + unsafe extern "system" fn SetEventName(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptScriptlet_Impl::SetEventName(this, core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetSimpleEventName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptScriptlet_Impl, - { + unsafe extern "system" fn GetSimpleEventName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptScriptlet_Impl::GetSimpleEventName(this) { Ok(ok__) => { @@ -6923,10 +5210,7 @@ impl IScriptScriptlet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSimpleEventName(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IScriptScriptlet_Impl, - { + unsafe extern "system" fn SetSimpleEventName(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptScriptlet_Impl::SetSimpleEventName(this, core::mem::transmute(&psz)).into() } @@ -6945,7 +5229,7 @@ impl IScriptScriptlet_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISimpleConnectionPoint_Impl: Sized { +pub trait ISimpleConnectionPoint_Impl: Sized + windows_core::IUnknownImpl { fn GetEventCount(&self) -> 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: Option<&super::super::super::Com::IDispatch>) -> windows_core::Result; @@ -6955,14 +5239,8 @@ pub trait ISimpleConnectionPoint_Impl: Sized { impl windows_core::RuntimeName for ISimpleConnectionPoint {} #[cfg(feature = "Win32_System_Com")] impl ISimpleConnectionPoint_Vtbl { - pub const fn new() -> ISimpleConnectionPoint_Vtbl - where - Identity: ISimpleConnectionPoint_Impl, - { - unsafe extern "system" fn GetEventCount(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT - where - Identity: ISimpleConnectionPoint_Impl, - { + pub const fn new() -> ISimpleConnectionPoint_Vtbl { + unsafe extern "system" fn GetEventCount(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimpleConnectionPoint_Impl::GetEventCount(this) { Ok(ok__) => { @@ -6972,17 +5250,11 @@ impl ISimpleConnectionPoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DescribeEvents(this: *mut core::ffi::c_void, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut core::mem::MaybeUninit, pceventsfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ISimpleConnectionPoint_Impl, - { + unsafe extern "system" fn DescribeEvents(this: *mut core::ffi::c_void, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut core::mem::MaybeUninit, pceventsfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimpleConnectionPoint_Impl::DescribeEvents(this, 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() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pdisp: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ISimpleConnectionPoint_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pdisp: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimpleConnectionPoint_Impl::Advise(this, windows_core::from_raw_borrowed(&pdisp)) { Ok(ok__) => { @@ -6992,10 +5264,7 @@ impl ISimpleConnectionPoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ISimpleConnectionPoint_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimpleConnectionPoint_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -7012,21 +5281,15 @@ impl ISimpleConnectionPoint_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITridentEventSink_Impl: Sized { +pub trait ITridentEventSink_Impl: Sized + windows_core::IUnknownImpl { fn FireEvent(&self, pstrevent: &windows_core::PCWSTR, pdp: *const super::super::super::Com::DISPPARAMS, pvarres: *mut windows_core::VARIANT, pei: *mut super::super::super::Com::EXCEPINFO) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ITridentEventSink {} #[cfg(feature = "Win32_System_Com")] impl ITridentEventSink_Vtbl { - pub const fn new() -> ITridentEventSink_Vtbl - where - Identity: ITridentEventSink_Impl, - { - unsafe extern "system" fn FireEvent(this: *mut core::ffi::c_void, pstrevent: windows_core::PCWSTR, pdp: *const super::super::super::Com::DISPPARAMS, pvarres: *mut core::mem::MaybeUninit, pei: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT - where - Identity: ITridentEventSink_Impl, - { + pub const fn new() -> ITridentEventSink_Vtbl { + unsafe extern "system" fn FireEvent(this: *mut core::ffi::c_void, pstrevent: windows_core::PCWSTR, pdp: *const super::super::super::Com::DISPPARAMS, pvarres: *mut core::mem::MaybeUninit, pei: *mut super::super::super::Com::EXCEPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITridentEventSink_Impl::FireEvent(this, core::mem::transmute(&pstrevent), core::mem::transmute_copy(&pdp), core::mem::transmute_copy(&pvarres), core::mem::transmute_copy(&pei)).into() } @@ -7036,19 +5299,13 @@ impl ITridentEventSink_Vtbl { iid == &::IID } } -pub trait IWebAppDiagnosticsObjectInitialization_Impl: Sized { +pub trait IWebAppDiagnosticsObjectInitialization_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hpassedhandle: super::super::super::super::Foundation::HANDLE_PTR, pdebugapplication: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWebAppDiagnosticsObjectInitialization {} impl IWebAppDiagnosticsObjectInitialization_Vtbl { - pub const fn new() -> IWebAppDiagnosticsObjectInitialization_Vtbl - where - Identity: IWebAppDiagnosticsObjectInitialization_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hpassedhandle: super::super::super::super::Foundation::HANDLE_PTR, pdebugapplication: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAppDiagnosticsObjectInitialization_Impl, - { + pub const fn new() -> IWebAppDiagnosticsObjectInitialization_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hpassedhandle: super::super::super::super::Foundation::HANDLE_PTR, pdebugapplication: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebAppDiagnosticsObjectInitialization_Impl::Initialize(this, core::mem::transmute_copy(&hpassedhandle), windows_core::from_raw_borrowed(&pdebugapplication)).into() } @@ -7058,20 +5315,14 @@ impl IWebAppDiagnosticsObjectInitialization_Vtbl { iid == &::IID } } -pub trait IWebAppDiagnosticsSetup_Impl: Sized { +pub trait IWebAppDiagnosticsSetup_Impl: Sized + windows_core::IUnknownImpl { fn DiagnosticsSupported(&self) -> windows_core::Result; fn CreateObjectWithSiteAtWebApp(&self, rclsid: *const windows_core::GUID, dwclscontext: u32, riid: *const windows_core::GUID, hpasstoobject: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWebAppDiagnosticsSetup {} impl IWebAppDiagnosticsSetup_Vtbl { - pub const fn new() -> IWebAppDiagnosticsSetup_Vtbl - where - Identity: IWebAppDiagnosticsSetup_Impl, - { - unsafe extern "system" fn DiagnosticsSupported(this: *mut core::ffi::c_void, pretval: *mut super::super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebAppDiagnosticsSetup_Impl, - { + pub const fn new() -> IWebAppDiagnosticsSetup_Vtbl { + unsafe extern "system" fn DiagnosticsSupported(this: *mut core::ffi::c_void, pretval: *mut super::super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebAppDiagnosticsSetup_Impl::DiagnosticsSupported(this) { Ok(ok__) => { @@ -7081,10 +5332,7 @@ impl IWebAppDiagnosticsSetup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateObjectWithSiteAtWebApp(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, dwclscontext: u32, riid: *const windows_core::GUID, hpasstoobject: usize) -> windows_core::HRESULT - where - Identity: IWebAppDiagnosticsSetup_Impl, - { + unsafe extern "system" fn CreateObjectWithSiteAtWebApp(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, dwclscontext: u32, riid: *const windows_core::GUID, hpasstoobject: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebAppDiagnosticsSetup_Impl::CreateObjectWithSiteAtWebApp(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&dwclscontext), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&hpasstoobject)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/impl.rs index 3ed8c87b93..abc210efc7 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/impl.rs @@ -1,10 +1,7 @@ pub trait DebugBaseEventCallbacks_Impl: Sized + IDebugEventCallbacks_Impl {} impl windows_core::RuntimeName for DebugBaseEventCallbacks {} impl DebugBaseEventCallbacks_Vtbl { - pub const fn new() -> DebugBaseEventCallbacks_Vtbl - where - Identity: DebugBaseEventCallbacks_Impl, - { + pub const fn new() -> DebugBaseEventCallbacks_Vtbl { Self { base__: IDebugEventCallbacks_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -14,29 +11,20 @@ impl DebugBaseEventCallbacks_Vtbl { pub trait DebugBaseEventCallbacksWide_Impl: Sized + IDebugEventCallbacksWide_Impl {} impl windows_core::RuntimeName for DebugBaseEventCallbacksWide {} impl DebugBaseEventCallbacksWide_Vtbl { - pub const fn new() -> DebugBaseEventCallbacksWide_Vtbl - where - Identity: DebugBaseEventCallbacksWide_Impl, - { + pub const fn new() -> DebugBaseEventCallbacksWide_Vtbl { Self { base__: IDebugEventCallbacksWide_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait ICodeAddressConcept_Impl: Sized { +pub trait ICodeAddressConcept_Impl: Sized + windows_core::IUnknownImpl { fn GetContainingSymbol(&self, pcontextobject: Option<&IModelObject>) -> windows_core::Result; } impl windows_core::RuntimeName for ICodeAddressConcept {} impl ICodeAddressConcept_Vtbl { - pub const fn new() -> ICodeAddressConcept_Vtbl - where - Identity: ICodeAddressConcept_Impl, - { - unsafe extern "system" fn GetContainingSymbol(this: *mut core::ffi::c_void, pcontextobject: *mut core::ffi::c_void, ppsymbol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICodeAddressConcept_Impl, - { + pub const fn new() -> ICodeAddressConcept_Vtbl { + unsafe extern "system" fn GetContainingSymbol(this: *mut core::ffi::c_void, pcontextobject: *mut core::ffi::c_void, ppsymbol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICodeAddressConcept_Impl::GetContainingSymbol(this, windows_core::from_raw_borrowed(&pcontextobject)) { Ok(ok__) => { @@ -52,19 +40,13 @@ impl ICodeAddressConcept_Vtbl { iid == &::IID } } -pub trait IComparableConcept_Impl: Sized { +pub trait IComparableConcept_Impl: Sized + windows_core::IUnknownImpl { fn CompareObjects(&self, contextobject: Option<&IModelObject>, otherobject: Option<&IModelObject>) -> windows_core::Result; } impl windows_core::RuntimeName for IComparableConcept {} impl IComparableConcept_Vtbl { - pub const fn new() -> IComparableConcept_Vtbl - where - Identity: IComparableConcept_Impl, - { - unsafe extern "system" fn CompareObjects(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, otherobject: *mut core::ffi::c_void, comparisonresult: *mut i32) -> windows_core::HRESULT - where - Identity: IComparableConcept_Impl, - { + pub const fn new() -> IComparableConcept_Vtbl { + unsafe extern "system" fn CompareObjects(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, otherobject: *mut core::ffi::c_void, comparisonresult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComparableConcept_Impl::CompareObjects(this, windows_core::from_raw_borrowed(&contextobject), windows_core::from_raw_borrowed(&otherobject)) { Ok(ok__) => { @@ -80,27 +62,18 @@ impl IComparableConcept_Vtbl { iid == &::IID } } -pub trait IDataModelConcept_Impl: Sized { +pub trait IDataModelConcept_Impl: Sized + windows_core::IUnknownImpl { fn InitializeObject(&self, modelobject: Option<&IModelObject>, matchingtypesignature: Option<&IDebugHostTypeSignature>, wildcardmatches: Option<&IDebugHostSymbolEnumerator>) -> windows_core::Result<()>; fn GetName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDataModelConcept {} impl IDataModelConcept_Vtbl { - pub const fn new() -> IDataModelConcept_Vtbl - where - Identity: IDataModelConcept_Impl, - { - unsafe extern "system" fn InitializeObject(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 - where - Identity: IDataModelConcept_Impl, - { + pub const fn new() -> IDataModelConcept_Vtbl { + unsafe extern "system" fn InitializeObject(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelConcept_Impl::InitializeObject(this, windows_core::from_raw_borrowed(&modelobject), windows_core::from_raw_borrowed(&matchingtypesignature), windows_core::from_raw_borrowed(&wildcardmatches)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, modelname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataModelConcept_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, modelname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelConcept_Impl::GetName(this) { Ok(ok__) => { @@ -120,7 +93,7 @@ impl IDataModelConcept_Vtbl { iid == &::IID } } -pub trait IDataModelManager_Impl: Sized { +pub trait IDataModelManager_Impl: Sized + windows_core::IUnknownImpl { fn Close(&self) -> windows_core::Result<()>; fn CreateNoValue(&self) -> windows_core::Result; fn CreateErrorObject(&self, hrerror: windows_core::HRESULT, pwszmessage: &windows_core::PCWSTR) -> windows_core::Result; @@ -144,21 +117,12 @@ pub trait IDataModelManager_Impl: Sized { } impl windows_core::RuntimeName for IDataModelManager {} impl IDataModelManager_Vtbl { - pub const fn new() -> IDataModelManager_Vtbl - where - Identity: IDataModelManager_Impl, - { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + pub const fn new() -> IDataModelManager_Vtbl { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelManager_Impl::Close(this).into() } - unsafe extern "system" fn CreateNoValue(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn CreateNoValue(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::CreateNoValue(this) { Ok(ok__) => { @@ -168,10 +132,7 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateErrorObject(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, pwszmessage: windows_core::PCWSTR, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn CreateErrorObject(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, pwszmessage: windows_core::PCWSTR, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::CreateErrorObject(this, core::mem::transmute_copy(&hrerror), core::mem::transmute(&pwszmessage)) { Ok(ok__) => { @@ -181,10 +142,7 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTypedObject(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, objectlocation: Location, objecttype: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn CreateTypedObject(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, objectlocation: Location, objecttype: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::CreateTypedObject(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&objectlocation), windows_core::from_raw_borrowed(&objecttype)) { Ok(ok__) => { @@ -194,10 +152,7 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTypedObjectReference(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, objectlocation: Location, objecttype: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn CreateTypedObjectReference(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, objectlocation: Location, objecttype: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::CreateTypedObjectReference(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&objectlocation), windows_core::from_raw_borrowed(&objecttype)) { Ok(ok__) => { @@ -207,10 +162,7 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSyntheticObject(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn CreateSyntheticObject(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::CreateSyntheticObject(this, windows_core::from_raw_borrowed(&context)) { Ok(ok__) => { @@ -220,10 +172,7 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDataModelObject(this: *mut core::ffi::c_void, datamodel: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn CreateDataModelObject(this: *mut core::ffi::c_void, datamodel: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::CreateDataModelObject(this, windows_core::from_raw_borrowed(&datamodel)) { Ok(ok__) => { @@ -233,10 +182,7 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateIntrinsicObject(this: *mut core::ffi::c_void, objectkind: ModelObjectKind, intrinsicdata: *const core::mem::MaybeUninit, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn CreateIntrinsicObject(this: *mut core::ffi::c_void, objectkind: ModelObjectKind, intrinsicdata: *const core::mem::MaybeUninit, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::CreateIntrinsicObject(this, core::mem::transmute_copy(&objectkind), core::mem::transmute_copy(&intrinsicdata)) { Ok(ok__) => { @@ -246,10 +192,7 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTypedIntrinsicObject(this: *mut core::ffi::c_void, intrinsicdata: *const core::mem::MaybeUninit, r#type: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn CreateTypedIntrinsicObject(this: *mut core::ffi::c_void, intrinsicdata: *const core::mem::MaybeUninit, r#type: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::CreateTypedIntrinsicObject(this, core::mem::transmute_copy(&intrinsicdata), windows_core::from_raw_borrowed(&r#type)) { Ok(ok__) => { @@ -259,10 +202,7 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModelForTypeSignature(this: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void, datamodel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn GetModelForTypeSignature(this: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void, datamodel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::GetModelForTypeSignature(this, windows_core::from_raw_borrowed(&typesignature)) { Ok(ok__) => { @@ -272,45 +212,27 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModelForType(this: *mut core::ffi::c_void, r#type: *mut core::ffi::c_void, datamodel: *mut *mut core::ffi::c_void, typesignature: *mut *mut core::ffi::c_void, wildcardmatches: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn GetModelForType(this: *mut core::ffi::c_void, r#type: *mut core::ffi::c_void, datamodel: *mut *mut core::ffi::c_void, typesignature: *mut *mut core::ffi::c_void, wildcardmatches: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelManager_Impl::GetModelForType(this, windows_core::from_raw_borrowed(&r#type), core::mem::transmute_copy(&datamodel), core::mem::transmute_copy(&typesignature), core::mem::transmute_copy(&wildcardmatches)).into() } - unsafe extern "system" fn RegisterModelForTypeSignature(this: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void, datamodel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn RegisterModelForTypeSignature(this: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void, datamodel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelManager_Impl::RegisterModelForTypeSignature(this, windows_core::from_raw_borrowed(&typesignature), windows_core::from_raw_borrowed(&datamodel)).into() } - unsafe extern "system" fn UnregisterModelForTypeSignature(this: *mut core::ffi::c_void, datamodel: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn UnregisterModelForTypeSignature(this: *mut core::ffi::c_void, datamodel: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelManager_Impl::UnregisterModelForTypeSignature(this, windows_core::from_raw_borrowed(&datamodel), windows_core::from_raw_borrowed(&typesignature)).into() } - unsafe extern "system" fn RegisterExtensionForTypeSignature(this: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void, datamodel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn RegisterExtensionForTypeSignature(this: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void, datamodel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelManager_Impl::RegisterExtensionForTypeSignature(this, windows_core::from_raw_borrowed(&typesignature), windows_core::from_raw_borrowed(&datamodel)).into() } - unsafe extern "system" fn UnregisterExtensionForTypeSignature(this: *mut core::ffi::c_void, datamodel: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn UnregisterExtensionForTypeSignature(this: *mut core::ffi::c_void, datamodel: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelManager_Impl::UnregisterExtensionForTypeSignature(this, windows_core::from_raw_borrowed(&datamodel), windows_core::from_raw_borrowed(&typesignature)).into() } - unsafe extern "system" fn CreateMetadataStore(this: *mut core::ffi::c_void, parentstore: *mut core::ffi::c_void, metadatastore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn CreateMetadataStore(this: *mut core::ffi::c_void, parentstore: *mut core::ffi::c_void, metadatastore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::CreateMetadataStore(this, windows_core::from_raw_borrowed(&parentstore)) { Ok(ok__) => { @@ -320,10 +242,7 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRootNamespace(this: *mut core::ffi::c_void, rootnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn GetRootNamespace(this: *mut core::ffi::c_void, rootnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::GetRootNamespace(this) { Ok(ok__) => { @@ -333,24 +252,15 @@ impl IDataModelManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterNamedModel(this: *mut core::ffi::c_void, modelname: windows_core::PCWSTR, modeobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn RegisterNamedModel(this: *mut core::ffi::c_void, modelname: windows_core::PCWSTR, modeobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelManager_Impl::RegisterNamedModel(this, core::mem::transmute(&modelname), windows_core::from_raw_borrowed(&modeobject)).into() } - unsafe extern "system" fn UnregisterNamedModel(this: *mut core::ffi::c_void, modelname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn UnregisterNamedModel(this: *mut core::ffi::c_void, modelname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelManager_Impl::UnregisterNamedModel(this, core::mem::transmute(&modelname)).into() } - unsafe extern "system" fn AcquireNamedModel(this: *mut core::ffi::c_void, modelname: windows_core::PCWSTR, modelobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager_Impl, - { + unsafe extern "system" fn AcquireNamedModel(this: *mut core::ffi::c_void, modelname: windows_core::PCWSTR, modelobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager_Impl::AcquireNamedModel(this, core::mem::transmute(&modelname)) { Ok(ok__) => { @@ -394,14 +304,8 @@ pub trait IDataModelManager2_Impl: Sized + IDataModelManager_Impl { } impl windows_core::RuntimeName for IDataModelManager2 {} impl IDataModelManager2_Vtbl { - pub const fn new() -> IDataModelManager2_Vtbl - where - Identity: IDataModelManager2_Impl, - { - unsafe extern "system" fn AcquireSubNamespace(this: *mut core::ffi::c_void, modelname: windows_core::PCWSTR, subnamespacemodelname: windows_core::PCWSTR, accessname: windows_core::PCWSTR, metadata: *mut core::ffi::c_void, namespacemodelobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager2_Impl, - { + pub const fn new() -> IDataModelManager2_Vtbl { + unsafe extern "system" fn AcquireSubNamespace(this: *mut core::ffi::c_void, modelname: windows_core::PCWSTR, subnamespacemodelname: windows_core::PCWSTR, accessname: windows_core::PCWSTR, metadata: *mut core::ffi::c_void, namespacemodelobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager2_Impl::AcquireSubNamespace(this, core::mem::transmute(&modelname), core::mem::transmute(&subnamespacemodelname), core::mem::transmute(&accessname), windows_core::from_raw_borrowed(&metadata)) { Ok(ok__) => { @@ -411,10 +315,7 @@ impl IDataModelManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTypedIntrinsicObjectEx(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, intrinsicdata: *const core::mem::MaybeUninit, r#type: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelManager2_Impl, - { + unsafe extern "system" fn CreateTypedIntrinsicObjectEx(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, intrinsicdata: *const core::mem::MaybeUninit, r#type: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelManager2_Impl::CreateTypedIntrinsicObjectEx(this, windows_core::from_raw_borrowed(&context), core::mem::transmute_copy(&intrinsicdata), windows_core::from_raw_borrowed(&r#type)) { Ok(ok__) => { @@ -434,7 +335,7 @@ impl IDataModelManager2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDataModelNameBinder_Impl: Sized { +pub trait IDataModelNameBinder_Impl: Sized + windows_core::IUnknownImpl { fn BindValue(&self, contextobject: Option<&IModelObject>, name: &windows_core::PCWSTR, value: *mut Option, metadata: *mut Option) -> windows_core::Result<()>; fn BindReference(&self, contextobject: Option<&IModelObject>, name: &windows_core::PCWSTR, reference: *mut Option, metadata: *mut Option) -> windows_core::Result<()>; fn EnumerateValues(&self, contextobject: Option<&IModelObject>) -> windows_core::Result; @@ -442,28 +343,16 @@ pub trait IDataModelNameBinder_Impl: Sized { } impl windows_core::RuntimeName for IDataModelNameBinder {} impl IDataModelNameBinder_Vtbl { - pub const fn new() -> IDataModelNameBinder_Vtbl - where - Identity: IDataModelNameBinder_Impl, - { - unsafe extern "system" fn BindValue(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelNameBinder_Impl, - { + pub const fn new() -> IDataModelNameBinder_Vtbl { + unsafe extern "system" fn BindValue(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelNameBinder_Impl::BindValue(this, windows_core::from_raw_borrowed(&contextobject), core::mem::transmute(&name), core::mem::transmute_copy(&value), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn BindReference(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, name: windows_core::PCWSTR, reference: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelNameBinder_Impl, - { + unsafe extern "system" fn BindReference(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, name: windows_core::PCWSTR, reference: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelNameBinder_Impl::BindReference(this, windows_core::from_raw_borrowed(&contextobject), core::mem::transmute(&name), core::mem::transmute_copy(&reference), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn EnumerateValues(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelNameBinder_Impl, - { + unsafe extern "system" fn EnumerateValues(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelNameBinder_Impl::EnumerateValues(this, windows_core::from_raw_borrowed(&contextobject)) { Ok(ok__) => { @@ -473,10 +362,7 @@ impl IDataModelNameBinder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateReferences(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelNameBinder_Impl, - { + unsafe extern "system" fn EnumerateReferences(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelNameBinder_Impl::EnumerateReferences(this, windows_core::from_raw_borrowed(&contextobject)) { Ok(ok__) => { @@ -499,7 +385,7 @@ impl IDataModelNameBinder_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDataModelScript_Impl: Sized { +pub trait IDataModelScript_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn Rename(&self, scriptname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Populate(&self, contentstream: Option<&super::super::super::Com::IStream>) -> windows_core::Result<()>; @@ -512,14 +398,8 @@ pub trait IDataModelScript_Impl: Sized { impl windows_core::RuntimeName for IDataModelScript {} #[cfg(feature = "Win32_System_Com")] impl IDataModelScript_Vtbl { - pub const fn new() -> IDataModelScript_Vtbl - where - Identity: IDataModelScript_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, scriptname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataModelScript_Impl, - { + pub const fn new() -> IDataModelScript_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, scriptname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScript_Impl::GetName(this) { Ok(ok__) => { @@ -529,38 +409,23 @@ impl IDataModelScript_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, scriptname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDataModelScript_Impl, - { + unsafe extern "system" fn Rename(this: *mut core::ffi::c_void, scriptname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScript_Impl::Rename(this, core::mem::transmute(&scriptname)).into() } - unsafe extern "system" fn Populate(this: *mut core::ffi::c_void, contentstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScript_Impl, - { + unsafe extern "system" fn Populate(this: *mut core::ffi::c_void, contentstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScript_Impl::Populate(this, windows_core::from_raw_borrowed(&contentstream)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScript_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScript_Impl::Execute(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn Unlink(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScript_Impl, - { + unsafe extern "system" fn Unlink(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScript_Impl::Unlink(this).into() } - unsafe extern "system" fn IsInvocable(this: *mut core::ffi::c_void, isinvocable: *mut bool) -> windows_core::HRESULT - where - Identity: IDataModelScript_Impl, - { + unsafe extern "system" fn IsInvocable(this: *mut core::ffi::c_void, isinvocable: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScript_Impl::IsInvocable(this) { Ok(ok__) => { @@ -570,10 +435,7 @@ impl IDataModelScript_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InvokeMain(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScript_Impl, - { + unsafe extern "system" fn InvokeMain(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScript_Impl::InvokeMain(this, windows_core::from_raw_borrowed(&client)).into() } @@ -592,19 +454,13 @@ impl IDataModelScript_Vtbl { iid == &::IID } } -pub trait IDataModelScriptClient_Impl: Sized { +pub trait IDataModelScriptClient_Impl: Sized + windows_core::IUnknownImpl { fn ReportError(&self, errclass: ErrorClass, hrfail: windows_core::HRESULT, message: &windows_core::PCWSTR, line: u32, position: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDataModelScriptClient {} impl IDataModelScriptClient_Vtbl { - pub const fn new() -> IDataModelScriptClient_Vtbl - where - Identity: IDataModelScriptClient_Impl, - { - unsafe extern "system" fn ReportError(this: *mut core::ffi::c_void, errclass: ErrorClass, hrfail: windows_core::HRESULT, message: windows_core::PCWSTR, line: u32, position: u32) -> windows_core::HRESULT - where - Identity: IDataModelScriptClient_Impl, - { + pub const fn new() -> IDataModelScriptClient_Vtbl { + unsafe extern "system" fn ReportError(this: *mut core::ffi::c_void, errclass: ErrorClass, hrfail: windows_core::HRESULT, message: windows_core::PCWSTR, line: u32, position: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptClient_Impl::ReportError(this, core::mem::transmute_copy(&errclass), core::mem::transmute_copy(&hrfail), core::mem::transmute(&message), core::mem::transmute_copy(&line), core::mem::transmute_copy(&position)).into() } @@ -614,7 +470,7 @@ impl IDataModelScriptClient_Vtbl { iid == &::IID } } -pub trait IDataModelScriptDebug_Impl: Sized { +pub trait IDataModelScriptDebug_Impl: Sized + windows_core::IUnknownImpl { fn GetDebugState(&self) -> ScriptDebugState; fn GetCurrentPosition(&self, currentposition: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut windows_core::BSTR) -> windows_core::Result<()>; fn GetStack(&self) -> windows_core::Result; @@ -628,28 +484,16 @@ pub trait IDataModelScriptDebug_Impl: Sized { } impl windows_core::RuntimeName for IDataModelScriptDebug {} impl IDataModelScriptDebug_Vtbl { - pub const fn new() -> IDataModelScriptDebug_Vtbl - where - Identity: IDataModelScriptDebug_Impl, - { - unsafe extern "system" fn GetDebugState(this: *mut core::ffi::c_void) -> ScriptDebugState - where - Identity: IDataModelScriptDebug_Impl, - { + pub const fn new() -> IDataModelScriptDebug_Vtbl { + unsafe extern "system" fn GetDebugState(this: *mut core::ffi::c_void) -> ScriptDebugState { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebug_Impl::GetDebugState(this) } - unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, currentposition: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebug_Impl, - { + unsafe extern "system" fn GetCurrentPosition(this: *mut core::ffi::c_void, currentposition: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebug_Impl::GetCurrentPosition(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&positionspanend), core::mem::transmute_copy(&linetext)).into() } - unsafe extern "system" fn GetStack(this: *mut core::ffi::c_void, stack: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebug_Impl, - { + unsafe extern "system" fn GetStack(this: *mut core::ffi::c_void, stack: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebug_Impl::GetStack(this) { Ok(ok__) => { @@ -659,10 +503,7 @@ impl IDataModelScriptDebug_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBreakpoint(this: *mut core::ffi::c_void, lineposition: u32, columnposition: u32, breakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebug_Impl, - { + unsafe extern "system" fn SetBreakpoint(this: *mut core::ffi::c_void, lineposition: u32, columnposition: u32, breakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebug_Impl::SetBreakpoint(this, core::mem::transmute_copy(&lineposition), core::mem::transmute_copy(&columnposition)) { Ok(ok__) => { @@ -672,10 +513,7 @@ impl IDataModelScriptDebug_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindBreakpointById(this: *mut core::ffi::c_void, breakpointid: u64, breakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebug_Impl, - { + unsafe extern "system" fn FindBreakpointById(this: *mut core::ffi::c_void, breakpointid: u64, breakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebug_Impl::FindBreakpointById(this, core::mem::transmute_copy(&breakpointid)) { Ok(ok__) => { @@ -685,10 +523,7 @@ impl IDataModelScriptDebug_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateBreakpoints(this: *mut core::ffi::c_void, breakpointenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebug_Impl, - { + unsafe extern "system" fn EnumerateBreakpoints(this: *mut core::ffi::c_void, breakpointenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebug_Impl::EnumerateBreakpoints(this) { Ok(ok__) => { @@ -698,10 +533,7 @@ impl IDataModelScriptDebug_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventFilter(this: *mut core::ffi::c_void, eventfilter: ScriptDebugEventFilter, isbreakenabled: *mut bool) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebug_Impl, - { + unsafe extern "system" fn GetEventFilter(this: *mut core::ffi::c_void, eventfilter: ScriptDebugEventFilter, isbreakenabled: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebug_Impl::GetEventFilter(this, core::mem::transmute_copy(&eventfilter)) { Ok(ok__) => { @@ -711,24 +543,15 @@ impl IDataModelScriptDebug_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventFilter(this: *mut core::ffi::c_void, eventfilter: ScriptDebugEventFilter, isbreakenabled: u8) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebug_Impl, - { + unsafe extern "system" fn SetEventFilter(this: *mut core::ffi::c_void, eventfilter: ScriptDebugEventFilter, isbreakenabled: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebug_Impl::SetEventFilter(this, core::mem::transmute_copy(&eventfilter), core::mem::transmute_copy(&isbreakenabled)).into() } - unsafe extern "system" fn StartDebugging(this: *mut core::ffi::c_void, debugclient: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebug_Impl, - { + unsafe extern "system" fn StartDebugging(this: *mut core::ffi::c_void, debugclient: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebug_Impl::StartDebugging(this, windows_core::from_raw_borrowed(&debugclient)).into() } - unsafe extern "system" fn StopDebugging(this: *mut core::ffi::c_void, debugclient: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebug_Impl, - { + unsafe extern "system" fn StopDebugging(this: *mut core::ffi::c_void, debugclient: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebug_Impl::StopDebugging(this, windows_core::from_raw_borrowed(&debugclient)).into() } @@ -755,14 +578,8 @@ pub trait IDataModelScriptDebug2_Impl: Sized + IDataModelScriptDebug_Impl { } impl windows_core::RuntimeName for IDataModelScriptDebug2 {} impl IDataModelScriptDebug2_Vtbl { - pub const fn new() -> IDataModelScriptDebug2_Vtbl - where - Identity: IDataModelScriptDebug2_Impl, - { - unsafe extern "system" fn SetBreakpointAtFunction(this: *mut core::ffi::c_void, functionname: windows_core::PCWSTR, breakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebug2_Impl, - { + pub const fn new() -> IDataModelScriptDebug2_Vtbl { + unsafe extern "system" fn SetBreakpointAtFunction(this: *mut core::ffi::c_void, functionname: windows_core::PCWSTR, breakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebug2_Impl::SetBreakpointAtFunction(this, core::mem::transmute(&functionname)) { Ok(ok__) => { @@ -778,7 +595,7 @@ impl IDataModelScriptDebug2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDataModelScriptDebugBreakpoint_Impl: Sized { +pub trait IDataModelScriptDebugBreakpoint_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> u64; fn IsEnabled(&self) -> bool; fn Enable(&self); @@ -788,49 +605,28 @@ pub trait IDataModelScriptDebugBreakpoint_Impl: Sized { } impl windows_core::RuntimeName for IDataModelScriptDebugBreakpoint {} impl IDataModelScriptDebugBreakpoint_Vtbl { - pub const fn new() -> IDataModelScriptDebugBreakpoint_Vtbl - where - Identity: IDataModelScriptDebugBreakpoint_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void) -> u64 - where - Identity: IDataModelScriptDebugBreakpoint_Impl, - { + pub const fn new() -> IDataModelScriptDebugBreakpoint_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugBreakpoint_Impl::GetId(this) } - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> bool - where - Identity: IDataModelScriptDebugBreakpoint_Impl, - { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> bool { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugBreakpoint_Impl::IsEnabled(this) } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) - where - Identity: IDataModelScriptDebugBreakpoint_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugBreakpoint_Impl::Enable(this) } - unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) - where - Identity: IDataModelScriptDebugBreakpoint_Impl, - { + unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugBreakpoint_Impl::Disable(this) } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void) - where - Identity: IDataModelScriptDebugBreakpoint_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugBreakpoint_Impl::Remove(this) } - unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugBreakpoint_Impl::GetPosition(this, core::mem::transmute_copy(&position), core::mem::transmute_copy(&positionspanend), core::mem::transmute_copy(&linetext)).into() } @@ -848,27 +644,18 @@ impl IDataModelScriptDebugBreakpoint_Vtbl { iid == &::IID } } -pub trait IDataModelScriptDebugBreakpointEnumerator_Impl: Sized { +pub trait IDataModelScriptDebugBreakpointEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn GetNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDataModelScriptDebugBreakpointEnumerator {} impl IDataModelScriptDebugBreakpointEnumerator_Vtbl { - pub const fn new() -> IDataModelScriptDebugBreakpointEnumerator_Vtbl - where - Identity: IDataModelScriptDebugBreakpointEnumerator_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugBreakpointEnumerator_Impl, - { + pub const fn new() -> IDataModelScriptDebugBreakpointEnumerator_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugBreakpointEnumerator_Impl::Reset(this).into() } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, breakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugBreakpointEnumerator_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, breakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebugBreakpointEnumerator_Impl::GetNext(this) { Ok(ok__) => { @@ -884,19 +671,13 @@ impl IDataModelScriptDebugBreakpointEnumerator_Vtbl { iid == &::IID } } -pub trait IDataModelScriptDebugClient_Impl: Sized { +pub trait IDataModelScriptDebugClient_Impl: Sized + windows_core::IUnknownImpl { fn NotifyDebugEvent(&self, peventinfo: *const ScriptDebugEventInformation, pscript: Option<&IDataModelScript>, peventdataobject: Option<&IModelObject>, resumeeventkind: *mut ScriptExecutionKind) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDataModelScriptDebugClient {} impl IDataModelScriptDebugClient_Vtbl { - pub const fn new() -> IDataModelScriptDebugClient_Vtbl - where - Identity: IDataModelScriptDebugClient_Impl, - { - unsafe extern "system" fn NotifyDebugEvent(this: *mut core::ffi::c_void, peventinfo: *const ScriptDebugEventInformation, pscript: *mut core::ffi::c_void, peventdataobject: *mut core::ffi::c_void, resumeeventkind: *mut ScriptExecutionKind) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugClient_Impl, - { + pub const fn new() -> IDataModelScriptDebugClient_Vtbl { + unsafe extern "system" fn NotifyDebugEvent(this: *mut core::ffi::c_void, peventinfo: *const ScriptDebugEventInformation, pscript: *mut core::ffi::c_void, peventdataobject: *mut core::ffi::c_void, resumeeventkind: *mut ScriptExecutionKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugClient_Impl::NotifyDebugEvent(this, core::mem::transmute_copy(&peventinfo), windows_core::from_raw_borrowed(&pscript), windows_core::from_raw_borrowed(&peventdataobject), core::mem::transmute_copy(&resumeeventkind)).into() } @@ -906,27 +687,18 @@ impl IDataModelScriptDebugClient_Vtbl { iid == &::IID } } -pub trait IDataModelScriptDebugStack_Impl: Sized { +pub trait IDataModelScriptDebugStack_Impl: Sized + windows_core::IUnknownImpl { fn GetFrameCount(&self) -> u64; fn GetStackFrame(&self, framenumber: u64) -> windows_core::Result; } impl windows_core::RuntimeName for IDataModelScriptDebugStack {} impl IDataModelScriptDebugStack_Vtbl { - pub const fn new() -> IDataModelScriptDebugStack_Vtbl - where - Identity: IDataModelScriptDebugStack_Impl, - { - unsafe extern "system" fn GetFrameCount(this: *mut core::ffi::c_void) -> u64 - where - Identity: IDataModelScriptDebugStack_Impl, - { + pub const fn new() -> IDataModelScriptDebugStack_Vtbl { + unsafe extern "system" fn GetFrameCount(this: *mut core::ffi::c_void) -> u64 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugStack_Impl::GetFrameCount(this) } - unsafe extern "system" fn GetStackFrame(this: *mut core::ffi::c_void, framenumber: u64, stackframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugStack_Impl, - { + unsafe extern "system" fn GetStackFrame(this: *mut core::ffi::c_void, framenumber: u64, stackframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebugStack_Impl::GetStackFrame(this, core::mem::transmute_copy(&framenumber)) { Ok(ok__) => { @@ -946,7 +718,7 @@ impl IDataModelScriptDebugStack_Vtbl { iid == &::IID } } -pub trait IDataModelScriptDebugStackFrame_Impl: Sized { +pub trait IDataModelScriptDebugStackFrame_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetPosition(&self, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut windows_core::BSTR) -> windows_core::Result<()>; fn IsTransitionPoint(&self) -> windows_core::Result; @@ -957,14 +729,8 @@ pub trait IDataModelScriptDebugStackFrame_Impl: Sized { } impl windows_core::RuntimeName for IDataModelScriptDebugStackFrame {} impl IDataModelScriptDebugStackFrame_Vtbl { - pub const fn new() -> IDataModelScriptDebugStackFrame_Vtbl - where - Identity: IDataModelScriptDebugStackFrame_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugStackFrame_Impl, - { + pub const fn new() -> IDataModelScriptDebugStackFrame_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebugStackFrame_Impl::GetName(this) { Ok(ok__) => { @@ -974,17 +740,11 @@ impl IDataModelScriptDebugStackFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugStackFrame_Impl, - { + unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugStackFrame_Impl::GetPosition(this, core::mem::transmute_copy(&position), core::mem::transmute_copy(&positionspanend), core::mem::transmute_copy(&linetext)).into() } - unsafe extern "system" fn IsTransitionPoint(this: *mut core::ffi::c_void, istransitionpoint: *mut bool) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugStackFrame_Impl, - { + unsafe extern "system" fn IsTransitionPoint(this: *mut core::ffi::c_void, istransitionpoint: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebugStackFrame_Impl::IsTransitionPoint(this) { Ok(ok__) => { @@ -994,17 +754,11 @@ impl IDataModelScriptDebugStackFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransition(this: *mut core::ffi::c_void, transitionscript: *mut *mut core::ffi::c_void, istransitioncontiguous: *mut bool) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugStackFrame_Impl, - { + unsafe extern "system" fn GetTransition(this: *mut core::ffi::c_void, transitionscript: *mut *mut core::ffi::c_void, istransitioncontiguous: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugStackFrame_Impl::GetTransition(this, core::mem::transmute_copy(&transitionscript), core::mem::transmute_copy(&istransitioncontiguous)).into() } - unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, pwszexpression: windows_core::PCWSTR, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugStackFrame_Impl, - { + unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, pwszexpression: windows_core::PCWSTR, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebugStackFrame_Impl::Evaluate(this, core::mem::transmute(&pwszexpression)) { Ok(ok__) => { @@ -1014,10 +768,7 @@ impl IDataModelScriptDebugStackFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateLocals(this: *mut core::ffi::c_void, variablesenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugStackFrame_Impl, - { + unsafe extern "system" fn EnumerateLocals(this: *mut core::ffi::c_void, variablesenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebugStackFrame_Impl::EnumerateLocals(this) { Ok(ok__) => { @@ -1027,10 +778,7 @@ impl IDataModelScriptDebugStackFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateArguments(this: *mut core::ffi::c_void, variablesenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugStackFrame_Impl, - { + unsafe extern "system" fn EnumerateArguments(this: *mut core::ffi::c_void, variablesenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptDebugStackFrame_Impl::EnumerateArguments(this) { Ok(ok__) => { @@ -1055,27 +803,18 @@ impl IDataModelScriptDebugStackFrame_Vtbl { iid == &::IID } } -pub trait IDataModelScriptDebugVariableSetEnumerator_Impl: Sized { +pub trait IDataModelScriptDebugVariableSetEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn GetNext(&self, variablename: *mut windows_core::BSTR, variablevalue: *mut Option, variablemetadata: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDataModelScriptDebugVariableSetEnumerator {} impl IDataModelScriptDebugVariableSetEnumerator_Vtbl { - pub const fn new() -> IDataModelScriptDebugVariableSetEnumerator_Vtbl - where - Identity: IDataModelScriptDebugVariableSetEnumerator_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugVariableSetEnumerator_Impl, - { + pub const fn new() -> IDataModelScriptDebugVariableSetEnumerator_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugVariableSetEnumerator_Impl::Reset(this).into() } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, variablename: *mut core::mem::MaybeUninit, variablevalue: *mut *mut core::ffi::c_void, variablemetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptDebugVariableSetEnumerator_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, variablename: *mut core::mem::MaybeUninit, variablevalue: *mut *mut core::ffi::c_void, variablemetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptDebugVariableSetEnumerator_Impl::GetNext(this, core::mem::transmute_copy(&variablename), core::mem::transmute_copy(&variablevalue), core::mem::transmute_copy(&variablemetadata)).into() } @@ -1085,27 +824,18 @@ impl IDataModelScriptDebugVariableSetEnumerator_Vtbl { iid == &::IID } } -pub trait IDataModelScriptHostContext_Impl: Sized { +pub trait IDataModelScriptHostContext_Impl: Sized + windows_core::IUnknownImpl { fn NotifyScriptChange(&self, script: Option<&IDataModelScript>, changekind: ScriptChangeKind) -> windows_core::Result<()>; fn GetNamespaceObject(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDataModelScriptHostContext {} impl IDataModelScriptHostContext_Vtbl { - pub const fn new() -> IDataModelScriptHostContext_Vtbl - where - Identity: IDataModelScriptHostContext_Impl, - { - unsafe extern "system" fn NotifyScriptChange(this: *mut core::ffi::c_void, script: *mut core::ffi::c_void, changekind: ScriptChangeKind) -> windows_core::HRESULT - where - Identity: IDataModelScriptHostContext_Impl, - { + pub const fn new() -> IDataModelScriptHostContext_Vtbl { + unsafe extern "system" fn NotifyScriptChange(this: *mut core::ffi::c_void, script: *mut core::ffi::c_void, changekind: ScriptChangeKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptHostContext_Impl::NotifyScriptChange(this, windows_core::from_raw_borrowed(&script), core::mem::transmute_copy(&changekind)).into() } - unsafe extern "system" fn GetNamespaceObject(this: *mut core::ffi::c_void, namespaceobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptHostContext_Impl, - { + unsafe extern "system" fn GetNamespaceObject(this: *mut core::ffi::c_void, namespaceobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptHostContext_Impl::GetNamespaceObject(this) { Ok(ok__) => { @@ -1125,7 +855,7 @@ impl IDataModelScriptHostContext_Vtbl { iid == &::IID } } -pub trait IDataModelScriptManager_Impl: Sized { +pub trait IDataModelScriptManager_Impl: Sized + windows_core::IUnknownImpl { fn GetDefaultNameBinder(&self) -> windows_core::Result; fn RegisterScriptProvider(&self, provider: Option<&IDataModelScriptProvider>) -> windows_core::Result<()>; fn UnregisterScriptProvider(&self, provider: Option<&IDataModelScriptProvider>) -> windows_core::Result<()>; @@ -1135,14 +865,8 @@ pub trait IDataModelScriptManager_Impl: Sized { } impl windows_core::RuntimeName for IDataModelScriptManager {} impl IDataModelScriptManager_Vtbl { - pub const fn new() -> IDataModelScriptManager_Vtbl - where - Identity: IDataModelScriptManager_Impl, - { - unsafe extern "system" fn GetDefaultNameBinder(this: *mut core::ffi::c_void, ppnamebinder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptManager_Impl, - { + pub const fn new() -> IDataModelScriptManager_Vtbl { + unsafe extern "system" fn GetDefaultNameBinder(this: *mut core::ffi::c_void, ppnamebinder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptManager_Impl::GetDefaultNameBinder(this) { Ok(ok__) => { @@ -1152,24 +876,15 @@ impl IDataModelScriptManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterScriptProvider(this: *mut core::ffi::c_void, provider: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptManager_Impl, - { + unsafe extern "system" fn RegisterScriptProvider(this: *mut core::ffi::c_void, provider: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptManager_Impl::RegisterScriptProvider(this, windows_core::from_raw_borrowed(&provider)).into() } - unsafe extern "system" fn UnregisterScriptProvider(this: *mut core::ffi::c_void, provider: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptManager_Impl, - { + unsafe extern "system" fn UnregisterScriptProvider(this: *mut core::ffi::c_void, provider: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptManager_Impl::UnregisterScriptProvider(this, windows_core::from_raw_borrowed(&provider)).into() } - unsafe extern "system" fn FindProviderForScriptType(this: *mut core::ffi::c_void, scripttype: windows_core::PCWSTR, provider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptManager_Impl, - { + unsafe extern "system" fn FindProviderForScriptType(this: *mut core::ffi::c_void, scripttype: windows_core::PCWSTR, provider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptManager_Impl::FindProviderForScriptType(this, core::mem::transmute(&scripttype)) { Ok(ok__) => { @@ -1179,10 +894,7 @@ impl IDataModelScriptManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindProviderForScriptExtension(this: *mut core::ffi::c_void, scriptextension: windows_core::PCWSTR, provider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptManager_Impl, - { + unsafe extern "system" fn FindProviderForScriptExtension(this: *mut core::ffi::c_void, scriptextension: windows_core::PCWSTR, provider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptManager_Impl::FindProviderForScriptExtension(this, core::mem::transmute(&scriptextension)) { Ok(ok__) => { @@ -1192,10 +904,7 @@ impl IDataModelScriptManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateScriptProviders(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptManager_Impl, - { + unsafe extern "system" fn EnumerateScriptProviders(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptManager_Impl::EnumerateScriptProviders(this) { Ok(ok__) => { @@ -1219,7 +928,7 @@ impl IDataModelScriptManager_Vtbl { iid == &::IID } } -pub trait IDataModelScriptProvider_Impl: Sized { +pub trait IDataModelScriptProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetExtension(&self) -> windows_core::Result; fn CreateScript(&self) -> windows_core::Result; @@ -1228,14 +937,8 @@ pub trait IDataModelScriptProvider_Impl: Sized { } impl windows_core::RuntimeName for IDataModelScriptProvider {} impl IDataModelScriptProvider_Vtbl { - pub const fn new() -> IDataModelScriptProvider_Vtbl - where - Identity: IDataModelScriptProvider_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataModelScriptProvider_Impl, - { + pub const fn new() -> IDataModelScriptProvider_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptProvider_Impl::GetName(this) { Ok(ok__) => { @@ -1245,10 +948,7 @@ impl IDataModelScriptProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExtension(this: *mut core::ffi::c_void, extension: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataModelScriptProvider_Impl, - { + unsafe extern "system" fn GetExtension(this: *mut core::ffi::c_void, extension: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptProvider_Impl::GetExtension(this) { Ok(ok__) => { @@ -1258,10 +958,7 @@ impl IDataModelScriptProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateScript(this: *mut core::ffi::c_void, script: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptProvider_Impl, - { + unsafe extern "system" fn CreateScript(this: *mut core::ffi::c_void, script: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptProvider_Impl::CreateScript(this) { Ok(ok__) => { @@ -1271,10 +968,7 @@ impl IDataModelScriptProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultTemplateContent(this: *mut core::ffi::c_void, templatecontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptProvider_Impl, - { + unsafe extern "system" fn GetDefaultTemplateContent(this: *mut core::ffi::c_void, templatecontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptProvider_Impl::GetDefaultTemplateContent(this) { Ok(ok__) => { @@ -1284,10 +978,7 @@ impl IDataModelScriptProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateTemplates(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptProvider_Impl, - { + unsafe extern "system" fn EnumerateTemplates(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptProvider_Impl::EnumerateTemplates(this) { Ok(ok__) => { @@ -1310,27 +1001,18 @@ impl IDataModelScriptProvider_Vtbl { iid == &::IID } } -pub trait IDataModelScriptProviderEnumerator_Impl: Sized { +pub trait IDataModelScriptProviderEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn GetNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDataModelScriptProviderEnumerator {} impl IDataModelScriptProviderEnumerator_Vtbl { - pub const fn new() -> IDataModelScriptProviderEnumerator_Vtbl - where - Identity: IDataModelScriptProviderEnumerator_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptProviderEnumerator_Impl, - { + pub const fn new() -> IDataModelScriptProviderEnumerator_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptProviderEnumerator_Impl::Reset(this).into() } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, provider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptProviderEnumerator_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, provider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptProviderEnumerator_Impl::GetNext(this) { Ok(ok__) => { @@ -1347,7 +1029,7 @@ impl IDataModelScriptProviderEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDataModelScriptTemplate_Impl: Sized { +pub trait IDataModelScriptTemplate_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetDescription(&self) -> windows_core::Result; fn GetContent(&self) -> windows_core::Result; @@ -1356,14 +1038,8 @@ pub trait IDataModelScriptTemplate_Impl: Sized { impl windows_core::RuntimeName for IDataModelScriptTemplate {} #[cfg(feature = "Win32_System_Com")] impl IDataModelScriptTemplate_Vtbl { - pub const fn new() -> IDataModelScriptTemplate_Vtbl - where - Identity: IDataModelScriptTemplate_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, templatename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataModelScriptTemplate_Impl, - { + pub const fn new() -> IDataModelScriptTemplate_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, templatename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptTemplate_Impl::GetName(this) { Ok(ok__) => { @@ -1373,10 +1049,7 @@ impl IDataModelScriptTemplate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, templatedescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataModelScriptTemplate_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, templatedescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptTemplate_Impl::GetDescription(this) { Ok(ok__) => { @@ -1386,10 +1059,7 @@ impl IDataModelScriptTemplate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContent(this: *mut core::ffi::c_void, contentstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptTemplate_Impl, - { + unsafe extern "system" fn GetContent(this: *mut core::ffi::c_void, contentstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptTemplate_Impl::GetContent(this) { Ok(ok__) => { @@ -1410,27 +1080,18 @@ impl IDataModelScriptTemplate_Vtbl { iid == &::IID } } -pub trait IDataModelScriptTemplateEnumerator_Impl: Sized { +pub trait IDataModelScriptTemplateEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn GetNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDataModelScriptTemplateEnumerator {} impl IDataModelScriptTemplateEnumerator_Vtbl { - pub const fn new() -> IDataModelScriptTemplateEnumerator_Vtbl - where - Identity: IDataModelScriptTemplateEnumerator_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptTemplateEnumerator_Impl, - { + pub const fn new() -> IDataModelScriptTemplateEnumerator_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataModelScriptTemplateEnumerator_Impl::Reset(this).into() } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, templatecontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataModelScriptTemplateEnumerator_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, templatecontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataModelScriptTemplateEnumerator_Impl::GetNext(this) { Ok(ok__) => { @@ -1446,27 +1107,18 @@ impl IDataModelScriptTemplateEnumerator_Vtbl { iid == &::IID } } -pub trait IDebugAdvanced_Impl: Sized { +pub trait IDebugAdvanced_Impl: Sized + windows_core::IUnknownImpl { fn GetThreadContext(&self, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::Result<()>; fn SetThreadContext(&self, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugAdvanced {} impl IDebugAdvanced_Vtbl { - pub const fn new() -> IDebugAdvanced_Vtbl - where - Identity: IDebugAdvanced_Impl, - { - unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced_Impl, - { + pub const fn new() -> IDebugAdvanced_Vtbl { + unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced_Impl::GetThreadContext(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn SetThreadContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced_Impl, - { + unsafe extern "system" fn SetThreadContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced_Impl::SetThreadContext(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } @@ -1480,7 +1132,7 @@ impl IDebugAdvanced_Vtbl { iid == &::IID } } -pub trait IDebugAdvanced2_Impl: Sized { +pub trait IDebugAdvanced2_Impl: Sized + windows_core::IUnknownImpl { fn GetThreadContext(&self, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::Result<()>; fn SetThreadContext(&self, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()>; fn Request(&self, request: u32, inbuffer: *const core::ffi::c_void, inbuffersize: u32, outbuffer: *mut core::ffi::c_void, outbuffersize: u32, outsize: *mut u32) -> windows_core::Result<()>; @@ -1491,56 +1143,32 @@ pub trait IDebugAdvanced2_Impl: Sized { } impl windows_core::RuntimeName for IDebugAdvanced2 {} impl IDebugAdvanced2_Vtbl { - pub const fn new() -> IDebugAdvanced2_Vtbl - where - Identity: IDebugAdvanced2_Impl, - { - unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced2_Impl, - { + pub const fn new() -> IDebugAdvanced2_Vtbl { + unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced2_Impl::GetThreadContext(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn SetThreadContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced2_Impl, - { + unsafe extern "system" fn SetThreadContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced2_Impl::SetThreadContext(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn Request(this: *mut core::ffi::c_void, request: u32, inbuffer: *const core::ffi::c_void, inbuffersize: u32, outbuffer: *mut core::ffi::c_void, outbuffersize: u32, outsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced2_Impl, - { + unsafe extern "system" fn Request(this: *mut core::ffi::c_void, request: u32, inbuffer: *const core::ffi::c_void, inbuffersize: u32, outbuffer: *mut core::ffi::c_void, outbuffersize: u32, outsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced2_Impl::Request(this, core::mem::transmute_copy(&request), core::mem::transmute_copy(&inbuffer), core::mem::transmute_copy(&inbuffersize), core::mem::transmute_copy(&outbuffer), core::mem::transmute_copy(&outbuffersize), core::mem::transmute_copy(&outsize)).into() } - unsafe extern "system" fn GetSourceFileInformation(this: *mut core::ffi::c_void, which: u32, sourcefile: windows_core::PCSTR, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced2_Impl, - { + unsafe extern "system" fn GetSourceFileInformation(this: *mut core::ffi::c_void, which: u32, sourcefile: windows_core::PCSTR, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced2_Impl::GetSourceFileInformation(this, core::mem::transmute_copy(&which), core::mem::transmute(&sourcefile), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize)).into() } - unsafe extern "system" fn FindSourceFileAndToken(this: *mut core::ffi::c_void, startelement: u32, modaddr: u64, file: windows_core::PCSTR, flags: u32, filetoken: *const core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced2_Impl, - { + unsafe extern "system" fn FindSourceFileAndToken(this: *mut core::ffi::c_void, startelement: u32, modaddr: u64, file: windows_core::PCSTR, flags: u32, filetoken: *const core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced2_Impl::FindSourceFileAndToken(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&modaddr), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&filetoken), core::mem::transmute_copy(&filetokensize), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSymbolInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PSTR, stringbuffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced2_Impl, - { + unsafe extern "system" fn GetSymbolInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PSTR, stringbuffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced2_Impl::GetSymbolInformation(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize), core::mem::transmute_copy(&stringbuffer), core::mem::transmute_copy(&stringbuffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSystemObjectInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced2_Impl, - { + unsafe extern "system" fn GetSystemObjectInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced2_Impl::GetSystemObjectInformation(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize)).into() } @@ -1559,7 +1187,7 @@ impl IDebugAdvanced2_Vtbl { iid == &::IID } } -pub trait IDebugAdvanced3_Impl: Sized { +pub trait IDebugAdvanced3_Impl: Sized + windows_core::IUnknownImpl { fn GetThreadContext(&self, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::Result<()>; fn SetThreadContext(&self, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()>; fn Request(&self, request: u32, inbuffer: *const core::ffi::c_void, inbuffersize: u32, outbuffer: *mut core::ffi::c_void, outbuffersize: u32, outsize: *mut u32) -> windows_core::Result<()>; @@ -1573,77 +1201,44 @@ pub trait IDebugAdvanced3_Impl: Sized { } impl windows_core::RuntimeName for IDebugAdvanced3 {} impl IDebugAdvanced3_Vtbl { - pub const fn new() -> IDebugAdvanced3_Vtbl - where - Identity: IDebugAdvanced3_Impl, - { - unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced3_Impl, - { + pub const fn new() -> IDebugAdvanced3_Vtbl { + unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced3_Impl::GetThreadContext(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn SetThreadContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced3_Impl, - { + unsafe extern "system" fn SetThreadContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced3_Impl::SetThreadContext(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn Request(this: *mut core::ffi::c_void, request: u32, inbuffer: *const core::ffi::c_void, inbuffersize: u32, outbuffer: *mut core::ffi::c_void, outbuffersize: u32, outsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced3_Impl, - { + unsafe extern "system" fn Request(this: *mut core::ffi::c_void, request: u32, inbuffer: *const core::ffi::c_void, inbuffersize: u32, outbuffer: *mut core::ffi::c_void, outbuffersize: u32, outsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced3_Impl::Request(this, core::mem::transmute_copy(&request), core::mem::transmute_copy(&inbuffer), core::mem::transmute_copy(&inbuffersize), core::mem::transmute_copy(&outbuffer), core::mem::transmute_copy(&outbuffersize), core::mem::transmute_copy(&outsize)).into() } - unsafe extern "system" fn GetSourceFileInformation(this: *mut core::ffi::c_void, which: u32, sourcefile: windows_core::PCSTR, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced3_Impl, - { + unsafe extern "system" fn GetSourceFileInformation(this: *mut core::ffi::c_void, which: u32, sourcefile: windows_core::PCSTR, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced3_Impl::GetSourceFileInformation(this, core::mem::transmute_copy(&which), core::mem::transmute(&sourcefile), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize)).into() } - unsafe extern "system" fn FindSourceFileAndToken(this: *mut core::ffi::c_void, startelement: u32, modaddr: u64, file: windows_core::PCSTR, flags: u32, filetoken: *const core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced3_Impl, - { + unsafe extern "system" fn FindSourceFileAndToken(this: *mut core::ffi::c_void, startelement: u32, modaddr: u64, file: windows_core::PCSTR, flags: u32, filetoken: *const core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced3_Impl::FindSourceFileAndToken(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&modaddr), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&filetoken), core::mem::transmute_copy(&filetokensize), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSymbolInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PSTR, stringbuffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced3_Impl, - { + unsafe extern "system" fn GetSymbolInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PSTR, stringbuffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced3_Impl::GetSymbolInformation(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize), core::mem::transmute_copy(&stringbuffer), core::mem::transmute_copy(&stringbuffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSystemObjectInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced3_Impl, - { + unsafe extern "system" fn GetSystemObjectInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced3_Impl::GetSystemObjectInformation(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize)).into() } - unsafe extern "system" fn GetSourceFileInformationWide(this: *mut core::ffi::c_void, which: u32, sourcefile: windows_core::PCWSTR, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced3_Impl, - { + unsafe extern "system" fn GetSourceFileInformationWide(this: *mut core::ffi::c_void, which: u32, sourcefile: windows_core::PCWSTR, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced3_Impl::GetSourceFileInformationWide(this, core::mem::transmute_copy(&which), core::mem::transmute(&sourcefile), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize)).into() } - unsafe extern "system" fn FindSourceFileAndTokenWide(this: *mut core::ffi::c_void, startelement: u32, modaddr: u64, file: windows_core::PCWSTR, flags: u32, filetoken: *const core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced3_Impl, - { + unsafe extern "system" fn FindSourceFileAndTokenWide(this: *mut core::ffi::c_void, startelement: u32, modaddr: u64, file: windows_core::PCWSTR, flags: u32, filetoken: *const core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced3_Impl::FindSourceFileAndTokenWide(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&modaddr), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&filetoken), core::mem::transmute_copy(&filetokensize), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSymbolInformationWide(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PWSTR, stringbuffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced3_Impl, - { + unsafe extern "system" fn GetSymbolInformationWide(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PWSTR, stringbuffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced3_Impl::GetSymbolInformationWide(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize), core::mem::transmute_copy(&stringbuffer), core::mem::transmute_copy(&stringbuffersize), core::mem::transmute_copy(&stringsize)).into() } @@ -1665,7 +1260,7 @@ impl IDebugAdvanced3_Vtbl { iid == &::IID } } -pub trait IDebugAdvanced4_Impl: Sized { +pub trait IDebugAdvanced4_Impl: Sized + windows_core::IUnknownImpl { fn GetThreadContext(&self, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::Result<()>; fn SetThreadContext(&self, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()>; fn Request(&self, request: u32, inbuffer: *const core::ffi::c_void, inbuffersize: u32, outbuffer: *mut core::ffi::c_void, outbuffersize: u32, outsize: *mut u32) -> windows_core::Result<()>; @@ -1680,84 +1275,48 @@ pub trait IDebugAdvanced4_Impl: Sized { } impl windows_core::RuntimeName for IDebugAdvanced4 {} impl IDebugAdvanced4_Vtbl { - pub const fn new() -> IDebugAdvanced4_Vtbl - where - Identity: IDebugAdvanced4_Impl, - { - unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + pub const fn new() -> IDebugAdvanced4_Vtbl { + unsafe extern "system" fn GetThreadContext(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::GetThreadContext(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn SetThreadContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + unsafe extern "system" fn SetThreadContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::SetThreadContext(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn Request(this: *mut core::ffi::c_void, request: u32, inbuffer: *const core::ffi::c_void, inbuffersize: u32, outbuffer: *mut core::ffi::c_void, outbuffersize: u32, outsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + unsafe extern "system" fn Request(this: *mut core::ffi::c_void, request: u32, inbuffer: *const core::ffi::c_void, inbuffersize: u32, outbuffer: *mut core::ffi::c_void, outbuffersize: u32, outsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::Request(this, core::mem::transmute_copy(&request), core::mem::transmute_copy(&inbuffer), core::mem::transmute_copy(&inbuffersize), core::mem::transmute_copy(&outbuffer), core::mem::transmute_copy(&outbuffersize), core::mem::transmute_copy(&outsize)).into() } - unsafe extern "system" fn GetSourceFileInformation(this: *mut core::ffi::c_void, which: u32, sourcefile: windows_core::PCSTR, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + unsafe extern "system" fn GetSourceFileInformation(this: *mut core::ffi::c_void, which: u32, sourcefile: windows_core::PCSTR, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::GetSourceFileInformation(this, core::mem::transmute_copy(&which), core::mem::transmute(&sourcefile), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize)).into() } - unsafe extern "system" fn FindSourceFileAndToken(this: *mut core::ffi::c_void, startelement: u32, modaddr: u64, file: windows_core::PCSTR, flags: u32, filetoken: *const core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + unsafe extern "system" fn FindSourceFileAndToken(this: *mut core::ffi::c_void, startelement: u32, modaddr: u64, file: windows_core::PCSTR, flags: u32, filetoken: *const core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::FindSourceFileAndToken(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&modaddr), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&filetoken), core::mem::transmute_copy(&filetokensize), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSymbolInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PSTR, stringbuffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + unsafe extern "system" fn GetSymbolInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PSTR, stringbuffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::GetSymbolInformation(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize), core::mem::transmute_copy(&stringbuffer), core::mem::transmute_copy(&stringbuffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSystemObjectInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + unsafe extern "system" fn GetSystemObjectInformation(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::GetSystemObjectInformation(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize)).into() } - unsafe extern "system" fn GetSourceFileInformationWide(this: *mut core::ffi::c_void, which: u32, sourcefile: windows_core::PCWSTR, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + unsafe extern "system" fn GetSourceFileInformationWide(this: *mut core::ffi::c_void, which: u32, sourcefile: windows_core::PCWSTR, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::GetSourceFileInformationWide(this, core::mem::transmute_copy(&which), core::mem::transmute(&sourcefile), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize)).into() } - unsafe extern "system" fn FindSourceFileAndTokenWide(this: *mut core::ffi::c_void, startelement: u32, modaddr: u64, file: windows_core::PCWSTR, flags: u32, filetoken: *const core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + unsafe extern "system" fn FindSourceFileAndTokenWide(this: *mut core::ffi::c_void, startelement: u32, modaddr: u64, file: windows_core::PCWSTR, flags: u32, filetoken: *const core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::FindSourceFileAndTokenWide(this, core::mem::transmute_copy(&startelement), core::mem::transmute_copy(&modaddr), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&filetoken), core::mem::transmute_copy(&filetokensize), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSymbolInformationWide(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PWSTR, stringbuffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + unsafe extern "system" fn GetSymbolInformationWide(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PWSTR, stringbuffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::GetSymbolInformationWide(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize), core::mem::transmute_copy(&stringbuffer), core::mem::transmute_copy(&stringbuffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSymbolInformationWideEx(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PWSTR, stringbuffersize: u32, stringsize: *mut u32, pinfoex: *mut SYMBOL_INFO_EX) -> windows_core::HRESULT - where - Identity: IDebugAdvanced4_Impl, - { + unsafe extern "system" fn GetSymbolInformationWideEx(this: *mut core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: windows_core::PWSTR, stringbuffersize: u32, stringsize: *mut u32, pinfoex: *mut SYMBOL_INFO_EX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugAdvanced4_Impl::GetSymbolInformationWideEx(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&arg64), core::mem::transmute_copy(&arg32), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize), core::mem::transmute_copy(&stringbuffer), core::mem::transmute_copy(&stringbuffersize), core::mem::transmute_copy(&stringsize), core::mem::transmute_copy(&pinfoex)).into() } @@ -1780,7 +1339,7 @@ impl IDebugAdvanced4_Vtbl { iid == &::IID } } -pub trait IDebugBreakpoint_Impl: Sized { +pub trait IDebugBreakpoint_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> windows_core::Result; fn GetType(&self, breaktype: *mut u32, proctype: *mut u32) -> windows_core::Result<()>; fn GetAdder(&self) -> windows_core::Result; @@ -1805,14 +1364,8 @@ pub trait IDebugBreakpoint_Impl: Sized { } impl windows_core::RuntimeName for IDebugBreakpoint {} impl IDebugBreakpoint_Vtbl { - pub const fn new() -> IDebugBreakpoint_Vtbl - where - Identity: IDebugBreakpoint_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + pub const fn new() -> IDebugBreakpoint_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint_Impl::GetId(this) { Ok(ok__) => { @@ -1822,17 +1375,11 @@ impl IDebugBreakpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, breaktype: *mut u32, proctype: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, breaktype: *mut u32, proctype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::GetType(this, core::mem::transmute_copy(&breaktype), core::mem::transmute_copy(&proctype)).into() } - unsafe extern "system" fn GetAdder(this: *mut core::ffi::c_void, adder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetAdder(this: *mut core::ffi::c_void, adder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint_Impl::GetAdder(this) { Ok(ok__) => { @@ -1842,10 +1389,7 @@ impl IDebugBreakpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint_Impl::GetFlags(this) { Ok(ok__) => { @@ -1855,31 +1399,19 @@ impl IDebugBreakpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn AddFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::AddFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn RemoveFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn RemoveFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::RemoveFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::SetFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint_Impl::GetOffset(this) { Ok(ok__) => { @@ -1889,31 +1421,19 @@ impl IDebugBreakpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::SetOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetDataParameters(this: *mut core::ffi::c_void, size: *mut u32, accesstype: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetDataParameters(this: *mut core::ffi::c_void, size: *mut u32, accesstype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::GetDataParameters(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(&accesstype)).into() } - unsafe extern "system" fn SetDataParameters(this: *mut core::ffi::c_void, size: u32, accesstype: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn SetDataParameters(this: *mut core::ffi::c_void, size: u32, accesstype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::SetDataParameters(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(&accesstype)).into() } - unsafe extern "system" fn GetPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint_Impl::GetPassCount(this) { Ok(ok__) => { @@ -1923,17 +1443,11 @@ impl IDebugBreakpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPassCount(this: *mut core::ffi::c_void, count: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn SetPassCount(this: *mut core::ffi::c_void, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::SetPassCount(this, core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn GetCurrentPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetCurrentPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint_Impl::GetCurrentPassCount(this) { Ok(ok__) => { @@ -1943,10 +1457,7 @@ impl IDebugBreakpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMatchThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetMatchThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint_Impl::GetMatchThreadId(this) { Ok(ok__) => { @@ -1956,45 +1467,27 @@ impl IDebugBreakpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMatchThreadId(this: *mut core::ffi::c_void, thread: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn SetMatchThreadId(this: *mut core::ffi::c_void, thread: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::SetMatchThreadId(this, core::mem::transmute_copy(&thread)).into() } - unsafe extern "system" fn GetCommand(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetCommand(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::GetCommand(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetCommand(this: *mut core::ffi::c_void, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn SetCommand(this: *mut core::ffi::c_void, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::SetCommand(this, core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetOffsetExpression(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, expressionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetOffsetExpression(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, expressionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::GetOffsetExpression(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&expressionsize)).into() } - unsafe extern "system" fn SetOffsetExpression(this: *mut core::ffi::c_void, expression: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn SetOffsetExpression(this: *mut core::ffi::c_void, expression: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::SetOffsetExpression(this, core::mem::transmute(&expression)).into() } - unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint_Impl, - { + unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint_Impl::GetParameters(this, core::mem::transmute_copy(¶ms)).into() } @@ -2027,7 +1520,7 @@ impl IDebugBreakpoint_Vtbl { iid == &::IID } } -pub trait IDebugBreakpoint2_Impl: Sized { +pub trait IDebugBreakpoint2_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> windows_core::Result; fn GetType(&self, breaktype: *mut u32, proctype: *mut u32) -> windows_core::Result<()>; fn GetAdder(&self) -> windows_core::Result; @@ -2056,14 +1549,8 @@ pub trait IDebugBreakpoint2_Impl: Sized { } impl windows_core::RuntimeName for IDebugBreakpoint2 {} impl IDebugBreakpoint2_Vtbl { - pub const fn new() -> IDebugBreakpoint2_Vtbl - where - Identity: IDebugBreakpoint2_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + pub const fn new() -> IDebugBreakpoint2_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint2_Impl::GetId(this) { Ok(ok__) => { @@ -2073,17 +1560,11 @@ impl IDebugBreakpoint2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, breaktype: *mut u32, proctype: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, breaktype: *mut u32, proctype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::GetType(this, core::mem::transmute_copy(&breaktype), core::mem::transmute_copy(&proctype)).into() } - unsafe extern "system" fn GetAdder(this: *mut core::ffi::c_void, adder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetAdder(this: *mut core::ffi::c_void, adder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint2_Impl::GetAdder(this) { Ok(ok__) => { @@ -2093,10 +1574,7 @@ impl IDebugBreakpoint2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint2_Impl::GetFlags(this) { Ok(ok__) => { @@ -2106,31 +1584,19 @@ impl IDebugBreakpoint2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn AddFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::AddFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn RemoveFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn RemoveFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::RemoveFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::SetFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint2_Impl::GetOffset(this) { Ok(ok__) => { @@ -2140,31 +1606,19 @@ impl IDebugBreakpoint2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::SetOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetDataParameters(this: *mut core::ffi::c_void, size: *mut u32, accesstype: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetDataParameters(this: *mut core::ffi::c_void, size: *mut u32, accesstype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::GetDataParameters(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(&accesstype)).into() } - unsafe extern "system" fn SetDataParameters(this: *mut core::ffi::c_void, size: u32, accesstype: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn SetDataParameters(this: *mut core::ffi::c_void, size: u32, accesstype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::SetDataParameters(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(&accesstype)).into() } - unsafe extern "system" fn GetPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint2_Impl::GetPassCount(this) { Ok(ok__) => { @@ -2174,17 +1628,11 @@ impl IDebugBreakpoint2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPassCount(this: *mut core::ffi::c_void, count: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn SetPassCount(this: *mut core::ffi::c_void, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::SetPassCount(this, core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn GetCurrentPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetCurrentPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint2_Impl::GetCurrentPassCount(this) { Ok(ok__) => { @@ -2194,10 +1642,7 @@ impl IDebugBreakpoint2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMatchThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetMatchThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint2_Impl::GetMatchThreadId(this) { Ok(ok__) => { @@ -2207,73 +1652,43 @@ impl IDebugBreakpoint2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMatchThreadId(this: *mut core::ffi::c_void, thread: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn SetMatchThreadId(this: *mut core::ffi::c_void, thread: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::SetMatchThreadId(this, core::mem::transmute_copy(&thread)).into() } - unsafe extern "system" fn GetCommand(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetCommand(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::GetCommand(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetCommand(this: *mut core::ffi::c_void, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn SetCommand(this: *mut core::ffi::c_void, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::SetCommand(this, core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetOffsetExpression(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, expressionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetOffsetExpression(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, expressionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::GetOffsetExpression(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&expressionsize)).into() } - unsafe extern "system" fn SetOffsetExpression(this: *mut core::ffi::c_void, expression: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn SetOffsetExpression(this: *mut core::ffi::c_void, expression: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::SetOffsetExpression(this, core::mem::transmute(&expression)).into() } - unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::GetParameters(this, core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetCommandWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetCommandWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::GetCommandWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetCommandWide(this: *mut core::ffi::c_void, command: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn SetCommandWide(this: *mut core::ffi::c_void, command: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::SetCommandWide(this, core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetOffsetExpressionWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, expressionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn GetOffsetExpressionWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, expressionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::GetOffsetExpressionWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&expressionsize)).into() } - unsafe extern "system" fn SetOffsetExpressionWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint2_Impl, - { + unsafe extern "system" fn SetOffsetExpressionWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint2_Impl::SetOffsetExpressionWide(this, core::mem::transmute(&expression)).into() } @@ -2310,7 +1725,7 @@ impl IDebugBreakpoint2_Vtbl { iid == &::IID } } -pub trait IDebugBreakpoint3_Impl: Sized { +pub trait IDebugBreakpoint3_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> windows_core::Result; fn GetType(&self, breaktype: *mut u32, proctype: *mut u32) -> windows_core::Result<()>; fn GetAdder(&self) -> windows_core::Result; @@ -2340,14 +1755,8 @@ pub trait IDebugBreakpoint3_Impl: Sized { } impl windows_core::RuntimeName for IDebugBreakpoint3 {} impl IDebugBreakpoint3_Vtbl { - pub const fn new() -> IDebugBreakpoint3_Vtbl - where - Identity: IDebugBreakpoint3_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + pub const fn new() -> IDebugBreakpoint3_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint3_Impl::GetId(this) { Ok(ok__) => { @@ -2357,17 +1766,11 @@ impl IDebugBreakpoint3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, breaktype: *mut u32, proctype: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, breaktype: *mut u32, proctype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::GetType(this, core::mem::transmute_copy(&breaktype), core::mem::transmute_copy(&proctype)).into() } - unsafe extern "system" fn GetAdder(this: *mut core::ffi::c_void, adder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetAdder(this: *mut core::ffi::c_void, adder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint3_Impl::GetAdder(this) { Ok(ok__) => { @@ -2377,10 +1780,7 @@ impl IDebugBreakpoint3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint3_Impl::GetFlags(this) { Ok(ok__) => { @@ -2390,31 +1790,19 @@ impl IDebugBreakpoint3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn AddFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::AddFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn RemoveFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn RemoveFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::RemoveFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::SetFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint3_Impl::GetOffset(this) { Ok(ok__) => { @@ -2424,31 +1812,19 @@ impl IDebugBreakpoint3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn SetOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::SetOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetDataParameters(this: *mut core::ffi::c_void, size: *mut u32, accesstype: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetDataParameters(this: *mut core::ffi::c_void, size: *mut u32, accesstype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::GetDataParameters(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(&accesstype)).into() } - unsafe extern "system" fn SetDataParameters(this: *mut core::ffi::c_void, size: u32, accesstype: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn SetDataParameters(this: *mut core::ffi::c_void, size: u32, accesstype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::SetDataParameters(this, core::mem::transmute_copy(&size), core::mem::transmute_copy(&accesstype)).into() } - unsafe extern "system" fn GetPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint3_Impl::GetPassCount(this) { Ok(ok__) => { @@ -2458,17 +1834,11 @@ impl IDebugBreakpoint3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPassCount(this: *mut core::ffi::c_void, count: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn SetPassCount(this: *mut core::ffi::c_void, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::SetPassCount(this, core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn GetCurrentPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetCurrentPassCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint3_Impl::GetCurrentPassCount(this) { Ok(ok__) => { @@ -2478,10 +1848,7 @@ impl IDebugBreakpoint3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMatchThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetMatchThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint3_Impl::GetMatchThreadId(this) { Ok(ok__) => { @@ -2491,80 +1858,47 @@ impl IDebugBreakpoint3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMatchThreadId(this: *mut core::ffi::c_void, thread: u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn SetMatchThreadId(this: *mut core::ffi::c_void, thread: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::SetMatchThreadId(this, core::mem::transmute_copy(&thread)).into() } - unsafe extern "system" fn GetCommand(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetCommand(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::GetCommand(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetCommand(this: *mut core::ffi::c_void, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn SetCommand(this: *mut core::ffi::c_void, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::SetCommand(this, core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetOffsetExpression(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, expressionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetOffsetExpression(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, expressionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::GetOffsetExpression(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&expressionsize)).into() } - unsafe extern "system" fn SetOffsetExpression(this: *mut core::ffi::c_void, expression: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn SetOffsetExpression(this: *mut core::ffi::c_void, expression: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::SetOffsetExpression(this, core::mem::transmute(&expression)).into() } - unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::GetParameters(this, core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetCommandWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetCommandWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::GetCommandWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetCommandWide(this: *mut core::ffi::c_void, command: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn SetCommandWide(this: *mut core::ffi::c_void, command: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::SetCommandWide(this, core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetOffsetExpressionWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, expressionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetOffsetExpressionWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, expressionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::GetOffsetExpressionWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&expressionsize)).into() } - unsafe extern "system" fn SetOffsetExpressionWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn SetOffsetExpressionWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugBreakpoint3_Impl::SetOffsetExpressionWide(this, core::mem::transmute(&expression)).into() } - unsafe extern "system" fn GetGuid(this: *mut core::ffi::c_void, guid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDebugBreakpoint3_Impl, - { + unsafe extern "system" fn GetGuid(this: *mut core::ffi::c_void, guid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugBreakpoint3_Impl::GetGuid(this) { Ok(ok__) => { @@ -2608,7 +1942,7 @@ impl IDebugBreakpoint3_Vtbl { iid == &::IID } } -pub trait IDebugClient_Impl: Sized { +pub trait IDebugClient_Impl: Sized + windows_core::IUnknownImpl { fn AttachKernel(&self, flags: u32, connectoptions: &windows_core::PCSTR) -> windows_core::Result<()>; fn GetKernelConnectionOptions(&self, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::Result<()>; fn SetKernelConnectionOptions(&self, options: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -2657,42 +1991,24 @@ pub trait IDebugClient_Impl: Sized { } impl windows_core::RuntimeName for IDebugClient {} impl IDebugClient_Vtbl { - pub const fn new() -> IDebugClient_Vtbl - where - Identity: IDebugClient_Impl, - { - unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + pub const fn new() -> IDebugClient_Vtbl { + unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::AttachKernel(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::GetKernelConnectionOptions(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::SetKernelConnectionOptions(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::StartProcessServer(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::ConnectProcessServer(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -2702,24 +2018,15 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::DisconnectProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::GetRunningProcessSystemIds(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&count), core::mem::transmute_copy(&actualcount)).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::GetRunningProcessSystemIdByExecutableName(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -2729,38 +2036,23 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::GetRunningProcessDescription(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::AttachProcess(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::CreateProcessA(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::CreateProcessAndAttach(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::GetProcessOptions(this) { Ok(ok__) => { @@ -2770,87 +2062,51 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::AddProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::RemoveProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::SetProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::OpenDumpFile(this, core::mem::transmute(&dumpfile)).into() } - unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::WriteDumpFile(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::ConnectSession(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&historylimit)).into() } - unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::StartServer(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::OutputServers(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::TerminateProcesses(this).into() } - unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::DetachProcesses(this).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::EndSession(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::GetExitCode(this) { Ok(ok__) => { @@ -2860,24 +2116,15 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::DispatchCallbacks(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::ExitDispatch(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::CreateClient(this) { Ok(ok__) => { @@ -2887,10 +2134,7 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::GetInputCallbacks(this) { Ok(ok__) => { @@ -2900,17 +2144,11 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::SetInputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::GetOutputCallbacks(this) { Ok(ok__) => { @@ -2920,17 +2158,11 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::SetOutputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::GetOutputMask(this) { Ok(ok__) => { @@ -2940,17 +2172,11 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::SetOutputMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::GetOtherOutputMask(this, windows_core::from_raw_borrowed(&client)) { Ok(ok__) => { @@ -2960,17 +2186,11 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::SetOtherOutputMask(this, windows_core::from_raw_borrowed(&client), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::GetOutputWidth(this) { Ok(ok__) => { @@ -2980,45 +2200,27 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::SetOutputWidth(this, core::mem::transmute_copy(&columns)).into() } - unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::GetOutputLinePrefix(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::SetOutputLinePrefix(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::GetIdentity(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::OutputIdentity(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient_Impl::GetEventCallbacks(this) { Ok(ok__) => { @@ -3028,17 +2230,11 @@ impl IDebugClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::SetEventCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient_Impl, - { + unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient_Impl::FlushCallbacks(this).into() } @@ -3095,7 +2291,7 @@ impl IDebugClient_Vtbl { iid == &::IID } } -pub trait IDebugClient2_Impl: Sized { +pub trait IDebugClient2_Impl: Sized + windows_core::IUnknownImpl { fn AttachKernel(&self, flags: u32, connectoptions: &windows_core::PCSTR) -> windows_core::Result<()>; fn GetKernelConnectionOptions(&self, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::Result<()>; fn SetKernelConnectionOptions(&self, options: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -3152,42 +2348,24 @@ pub trait IDebugClient2_Impl: Sized { } impl windows_core::RuntimeName for IDebugClient2 {} impl IDebugClient2_Vtbl { - pub const fn new() -> IDebugClient2_Vtbl - where - Identity: IDebugClient2_Impl, - { - unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + pub const fn new() -> IDebugClient2_Vtbl { + unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::AttachKernel(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::GetKernelConnectionOptions(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::SetKernelConnectionOptions(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::StartProcessServer(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::ConnectProcessServer(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -3197,24 +2375,15 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::DisconnectProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::GetRunningProcessSystemIds(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&count), core::mem::transmute_copy(&actualcount)).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::GetRunningProcessSystemIdByExecutableName(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3224,38 +2393,23 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::GetRunningProcessDescription(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::AttachProcess(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::CreateProcessA(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::CreateProcessAndAttach(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::GetProcessOptions(this) { Ok(ok__) => { @@ -3265,87 +2419,51 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::AddProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::RemoveProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::SetProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::OpenDumpFile(this, core::mem::transmute(&dumpfile)).into() } - unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::WriteDumpFile(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::ConnectSession(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&historylimit)).into() } - unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::StartServer(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::OutputServers(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::TerminateProcesses(this).into() } - unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::DetachProcesses(this).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::EndSession(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::GetExitCode(this) { Ok(ok__) => { @@ -3355,24 +2473,15 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::DispatchCallbacks(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::ExitDispatch(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::CreateClient(this) { Ok(ok__) => { @@ -3382,10 +2491,7 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::GetInputCallbacks(this) { Ok(ok__) => { @@ -3395,17 +2501,11 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::SetInputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::GetOutputCallbacks(this) { Ok(ok__) => { @@ -3415,17 +2515,11 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::SetOutputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::GetOutputMask(this) { Ok(ok__) => { @@ -3435,17 +2529,11 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::SetOutputMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::GetOtherOutputMask(this, windows_core::from_raw_borrowed(&client)) { Ok(ok__) => { @@ -3455,17 +2543,11 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::SetOtherOutputMask(this, windows_core::from_raw_borrowed(&client), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::GetOutputWidth(this) { Ok(ok__) => { @@ -3475,45 +2557,27 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::SetOutputWidth(this, core::mem::transmute_copy(&columns)).into() } - unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::GetOutputLinePrefix(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::SetOutputLinePrefix(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::GetIdentity(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::OutputIdentity(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient2_Impl::GetEventCallbacks(this) { Ok(ok__) => { @@ -3523,73 +2587,43 @@ impl IDebugClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::SetEventCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::FlushCallbacks(this).into() } - unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::WriteDumpFile2(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::AddDumpInformationFile(this, core::mem::transmute(&infofile), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::EndProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::WaitForProcessServerEnd(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::IsKernelDebuggerEnabled(this).into() } - unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::TerminateCurrentProcess(this).into() } - unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::DetachCurrentProcess(this).into() } - unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient2_Impl, - { + unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient2_Impl::AbandonCurrentProcess(this).into() } @@ -3654,7 +2688,7 @@ impl IDebugClient2_Vtbl { iid == &::IID } } -pub trait IDebugClient3_Impl: Sized { +pub trait IDebugClient3_Impl: Sized + windows_core::IUnknownImpl { fn AttachKernel(&self, flags: u32, connectoptions: &windows_core::PCSTR) -> windows_core::Result<()>; fn GetKernelConnectionOptions(&self, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::Result<()>; fn SetKernelConnectionOptions(&self, options: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -3715,42 +2749,24 @@ pub trait IDebugClient3_Impl: Sized { } impl windows_core::RuntimeName for IDebugClient3 {} impl IDebugClient3_Vtbl { - pub const fn new() -> IDebugClient3_Vtbl - where - Identity: IDebugClient3_Impl, - { - unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + pub const fn new() -> IDebugClient3_Vtbl { + unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::AttachKernel(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::GetKernelConnectionOptions(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::SetKernelConnectionOptions(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::StartProcessServer(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::ConnectProcessServer(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -3760,24 +2776,15 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::DisconnectProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::GetRunningProcessSystemIds(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&count), core::mem::transmute_copy(&actualcount)).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::GetRunningProcessSystemIdByExecutableName(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3787,38 +2794,23 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::GetRunningProcessDescription(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::AttachProcess(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::CreateProcessA(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::CreateProcessAndAttach(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::GetProcessOptions(this) { Ok(ok__) => { @@ -3828,87 +2820,51 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::AddProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::RemoveProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::SetProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::OpenDumpFile(this, core::mem::transmute(&dumpfile)).into() } - unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::WriteDumpFile(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::ConnectSession(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&historylimit)).into() } - unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::StartServer(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::OutputServers(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::TerminateProcesses(this).into() } - unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::DetachProcesses(this).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::EndSession(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::GetExitCode(this) { Ok(ok__) => { @@ -3918,24 +2874,15 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::DispatchCallbacks(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::ExitDispatch(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::CreateClient(this) { Ok(ok__) => { @@ -3945,10 +2892,7 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::GetInputCallbacks(this) { Ok(ok__) => { @@ -3958,17 +2902,11 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::SetInputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::GetOutputCallbacks(this) { Ok(ok__) => { @@ -3978,17 +2916,11 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::SetOutputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::GetOutputMask(this) { Ok(ok__) => { @@ -3998,17 +2930,11 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::SetOutputMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::GetOtherOutputMask(this, windows_core::from_raw_borrowed(&client)) { Ok(ok__) => { @@ -4018,17 +2944,11 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::SetOtherOutputMask(this, windows_core::from_raw_borrowed(&client), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::GetOutputWidth(this) { Ok(ok__) => { @@ -4038,45 +2958,27 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::SetOutputWidth(this, core::mem::transmute_copy(&columns)).into() } - unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::GetOutputLinePrefix(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::SetOutputLinePrefix(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::GetIdentity(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::OutputIdentity(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::GetEventCallbacks(this) { Ok(ok__) => { @@ -4086,80 +2988,47 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::SetEventCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::FlushCallbacks(this).into() } - unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::WriteDumpFile2(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::AddDumpInformationFile(this, core::mem::transmute(&infofile), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::EndProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::WaitForProcessServerEnd(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::IsKernelDebuggerEnabled(this).into() } - unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::TerminateCurrentProcess(this).into() } - unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::DetachCurrentProcess(this).into() } - unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::AbandonCurrentProcess(this).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient3_Impl::GetRunningProcessSystemIdByExecutableNameWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4169,24 +3038,15 @@ impl IDebugClient3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::GetRunningProcessDescriptionWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::CreateProcessWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient3_Impl, - { + unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient3_Impl::CreateProcessAndAttachWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } @@ -4255,7 +3115,7 @@ impl IDebugClient3_Vtbl { iid == &::IID } } -pub trait IDebugClient4_Impl: Sized { +pub trait IDebugClient4_Impl: Sized + windows_core::IUnknownImpl { fn AttachKernel(&self, flags: u32, connectoptions: &windows_core::PCSTR) -> windows_core::Result<()>; fn GetKernelConnectionOptions(&self, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::Result<()>; fn SetKernelConnectionOptions(&self, options: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -4322,42 +3182,24 @@ pub trait IDebugClient4_Impl: Sized { } impl windows_core::RuntimeName for IDebugClient4 {} impl IDebugClient4_Vtbl { - pub const fn new() -> IDebugClient4_Vtbl - where - Identity: IDebugClient4_Impl, - { - unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + pub const fn new() -> IDebugClient4_Vtbl { + unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::AttachKernel(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::GetKernelConnectionOptions(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::SetKernelConnectionOptions(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::StartProcessServer(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::ConnectProcessServer(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -4367,24 +3209,15 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::DisconnectProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::GetRunningProcessSystemIds(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&count), core::mem::transmute_copy(&actualcount)).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetRunningProcessSystemIdByExecutableName(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4394,38 +3227,23 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::GetRunningProcessDescription(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::AttachProcess(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::CreateProcessA(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::CreateProcessAndAttach(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetProcessOptions(this) { Ok(ok__) => { @@ -4435,87 +3253,51 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::AddProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::RemoveProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::SetProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::OpenDumpFile(this, core::mem::transmute(&dumpfile)).into() } - unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::WriteDumpFile(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::ConnectSession(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&historylimit)).into() } - unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::StartServer(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::OutputServers(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::TerminateProcesses(this).into() } - unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::DetachProcesses(this).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::EndSession(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetExitCode(this) { Ok(ok__) => { @@ -4525,24 +3307,15 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::DispatchCallbacks(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::ExitDispatch(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::CreateClient(this) { Ok(ok__) => { @@ -4552,10 +3325,7 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetInputCallbacks(this) { Ok(ok__) => { @@ -4565,17 +3335,11 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::SetInputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetOutputCallbacks(this) { Ok(ok__) => { @@ -4585,17 +3349,11 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::SetOutputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetOutputMask(this) { Ok(ok__) => { @@ -4605,17 +3363,11 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::SetOutputMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetOtherOutputMask(this, windows_core::from_raw_borrowed(&client)) { Ok(ok__) => { @@ -4625,17 +3377,11 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::SetOtherOutputMask(this, windows_core::from_raw_borrowed(&client), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetOutputWidth(this) { Ok(ok__) => { @@ -4645,45 +3391,27 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::SetOutputWidth(this, core::mem::transmute_copy(&columns)).into() } - unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::GetOutputLinePrefix(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::SetOutputLinePrefix(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::GetIdentity(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::OutputIdentity(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetEventCallbacks(this) { Ok(ok__) => { @@ -4693,80 +3421,47 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::SetEventCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::FlushCallbacks(this).into() } - unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::WriteDumpFile2(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::AddDumpInformationFile(this, core::mem::transmute(&infofile), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::EndProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::WaitForProcessServerEnd(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::IsKernelDebuggerEnabled(this).into() } - unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::TerminateCurrentProcess(this).into() } - unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::DetachCurrentProcess(this).into() } - unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::AbandonCurrentProcess(this).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetRunningProcessSystemIdByExecutableNameWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4776,52 +3471,31 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::GetRunningProcessDescriptionWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::CreateProcessWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::CreateProcessAndAttachWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn OpenDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn OpenDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::OpenDumpFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle)).into() } - unsafe extern "system" fn WriteDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, qualifier: u32, formatflags: u32, comment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn WriteDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, qualifier: u32, formatflags: u32, comment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::WriteDumpFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn AddDumpInformationFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::AddDumpInformationFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetNumberDumpFiles(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetNumberDumpFiles(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient4_Impl::GetNumberDumpFiles(this) { Ok(ok__) => { @@ -4831,17 +3505,11 @@ impl IDebugClient4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFile(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetDumpFile(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::GetDumpFile(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetDumpFileWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient4_Impl, - { + unsafe extern "system" fn GetDumpFileWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient4_Impl::GetDumpFileWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&r#type)).into() } @@ -4916,7 +3584,7 @@ impl IDebugClient4_Vtbl { iid == &::IID } } -pub trait IDebugClient5_Impl: Sized { +pub trait IDebugClient5_Impl: Sized + windows_core::IUnknownImpl { fn AttachKernel(&self, flags: u32, connectoptions: &windows_core::PCSTR) -> windows_core::Result<()>; fn GetKernelConnectionOptions(&self, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::Result<()>; fn SetKernelConnectionOptions(&self, options: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -5012,42 +3680,24 @@ pub trait IDebugClient5_Impl: Sized { } impl windows_core::RuntimeName for IDebugClient5 {} impl IDebugClient5_Vtbl { - pub const fn new() -> IDebugClient5_Vtbl - where - Identity: IDebugClient5_Impl, - { - unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + pub const fn new() -> IDebugClient5_Vtbl { + unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::AttachKernel(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetKernelConnectionOptions(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetKernelConnectionOptions(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::StartProcessServer(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::ConnectProcessServer(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -5057,24 +3707,15 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::DisconnectProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetRunningProcessSystemIds(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&count), core::mem::transmute_copy(&actualcount)).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetRunningProcessSystemIdByExecutableName(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -5084,38 +3725,23 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetRunningProcessDescription(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::AttachProcess(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::CreateProcessA(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::CreateProcessAndAttach(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetProcessOptions(this) { Ok(ok__) => { @@ -5125,87 +3751,51 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::AddProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::RemoveProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::OpenDumpFile(this, core::mem::transmute(&dumpfile)).into() } - unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::WriteDumpFile(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::ConnectSession(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&historylimit)).into() } - unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::StartServer(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::OutputServers(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::TerminateProcesses(this).into() } - unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::DetachProcesses(this).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::EndSession(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetExitCode(this) { Ok(ok__) => { @@ -5215,24 +3805,15 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::DispatchCallbacks(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::ExitDispatch(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::CreateClient(this) { Ok(ok__) => { @@ -5242,10 +3823,7 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetInputCallbacks(this) { Ok(ok__) => { @@ -5255,17 +3833,11 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetInputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetOutputCallbacks(this) { Ok(ok__) => { @@ -5275,17 +3847,11 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetOutputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetOutputMask(this) { Ok(ok__) => { @@ -5295,17 +3861,11 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetOutputMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetOtherOutputMask(this, windows_core::from_raw_borrowed(&client)) { Ok(ok__) => { @@ -5315,17 +3875,11 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetOtherOutputMask(this, windows_core::from_raw_borrowed(&client), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetOutputWidth(this) { Ok(ok__) => { @@ -5335,45 +3889,27 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetOutputWidth(this, core::mem::transmute_copy(&columns)).into() } - unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetOutputLinePrefix(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetOutputLinePrefix(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetIdentity(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::OutputIdentity(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetEventCallbacks(this) { Ok(ok__) => { @@ -5383,80 +3919,47 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetEventCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::FlushCallbacks(this).into() } - unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::WriteDumpFile2(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::AddDumpInformationFile(this, core::mem::transmute(&infofile), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::EndProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::WaitForProcessServerEnd(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::IsKernelDebuggerEnabled(this).into() } - unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::TerminateCurrentProcess(this).into() } - unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::DetachCurrentProcess(this).into() } - unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::AbandonCurrentProcess(this).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetRunningProcessSystemIdByExecutableNameWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -5466,52 +3969,31 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetRunningProcessDescriptionWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::CreateProcessWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::CreateProcessAndAttachWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn OpenDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn OpenDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::OpenDumpFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle)).into() } - unsafe extern "system" fn WriteDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, qualifier: u32, formatflags: u32, comment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn WriteDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, qualifier: u32, formatflags: u32, comment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::WriteDumpFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn AddDumpInformationFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::AddDumpInformationFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetNumberDumpFiles(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetNumberDumpFiles(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetNumberDumpFiles(this) { Ok(ok__) => { @@ -5521,52 +4003,31 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFile(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetDumpFile(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetDumpFile(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetDumpFileWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetDumpFileWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetDumpFileWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn AttachKernelWide(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn AttachKernelWide(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::AttachKernelWide(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetKernelConnectionOptionsWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetKernelConnectionOptionsWide(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServerWide(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCWSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn StartProcessServerWide(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCWSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::StartProcessServerWide(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServerWide(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCWSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn ConnectProcessServerWide(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCWSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::ConnectProcessServerWide(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -5576,24 +4037,15 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartServerWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn StartServerWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::StartServerWide(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServersWide(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn OutputServersWide(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::OutputServersWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetOutputCallbacksWide(this) { Ok(ok__) => { @@ -5603,45 +4055,27 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetOutputCallbacksWide(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputLinePrefixWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetOutputLinePrefixWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetOutputLinePrefixWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefixWide(this: *mut core::ffi::c_void, prefix: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetOutputLinePrefixWide(this: *mut core::ffi::c_void, prefix: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetOutputLinePrefixWide(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentityWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetIdentityWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetIdentityWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentityWide(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn OutputIdentityWide(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::OutputIdentityWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetEventCallbacksWide(this) { Ok(ok__) => { @@ -5651,45 +4085,27 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetEventCallbacksWide(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn CreateProcess2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn CreateProcess2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::CreateProcess2(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment)).into() } - unsafe extern "system" fn CreateProcess2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn CreateProcess2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::CreateProcess2Wide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment)).into() } - unsafe extern "system" fn CreateProcessAndAttach2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::CreateProcessAndAttach2(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::CreateProcessAndAttach2Wide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn PushOutputLinePrefix(this: *mut core::ffi::c_void, newprefix: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn PushOutputLinePrefix(this: *mut core::ffi::c_void, newprefix: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::PushOutputLinePrefix(this, core::mem::transmute(&newprefix)) { Ok(ok__) => { @@ -5699,10 +4115,7 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PushOutputLinePrefixWide(this: *mut core::ffi::c_void, newprefix: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn PushOutputLinePrefixWide(this: *mut core::ffi::c_void, newprefix: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::PushOutputLinePrefixWide(this, core::mem::transmute(&newprefix)) { Ok(ok__) => { @@ -5712,17 +4125,11 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PopOutputLinePrefix(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn PopOutputLinePrefix(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::PopOutputLinePrefix(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetNumberInputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetNumberInputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetNumberInputCallbacks(this) { Ok(ok__) => { @@ -5732,10 +4139,7 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOutputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetNumberOutputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetNumberOutputCallbacks(this) { Ok(ok__) => { @@ -5745,10 +4149,7 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberEventCallbacks(this: *mut core::ffi::c_void, eventflags: u32, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetNumberEventCallbacks(this: *mut core::ffi::c_void, eventflags: u32, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient5_Impl::GetNumberEventCallbacks(this, core::mem::transmute_copy(&eventflags)) { Ok(ok__) => { @@ -5758,31 +4159,19 @@ impl IDebugClient5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQuitLockString(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetQuitLockString(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetQuitLockString(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn SetQuitLockString(this: *mut core::ffi::c_void, string: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetQuitLockString(this: *mut core::ffi::c_void, string: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetQuitLockString(this, core::mem::transmute(&string)).into() } - unsafe extern "system" fn GetQuitLockStringWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn GetQuitLockStringWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::GetQuitLockStringWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn SetQuitLockStringWide(this: *mut core::ffi::c_void, string: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient5_Impl, - { + unsafe extern "system" fn SetQuitLockStringWide(this: *mut core::ffi::c_void, string: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient5_Impl::SetQuitLockStringWide(this, core::mem::transmute(&string)).into() } @@ -5886,7 +4275,7 @@ impl IDebugClient5_Vtbl { iid == &::IID } } -pub trait IDebugClient6_Impl: Sized { +pub trait IDebugClient6_Impl: Sized + windows_core::IUnknownImpl { fn AttachKernel(&self, flags: u32, connectoptions: &windows_core::PCSTR) -> windows_core::Result<()>; fn GetKernelConnectionOptions(&self, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::Result<()>; fn SetKernelConnectionOptions(&self, options: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -5983,42 +4372,24 @@ pub trait IDebugClient6_Impl: Sized { } impl windows_core::RuntimeName for IDebugClient6 {} impl IDebugClient6_Vtbl { - pub const fn new() -> IDebugClient6_Vtbl - where - Identity: IDebugClient6_Impl, - { - unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + pub const fn new() -> IDebugClient6_Vtbl { + unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::AttachKernel(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetKernelConnectionOptions(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetKernelConnectionOptions(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::StartProcessServer(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::ConnectProcessServer(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -6028,24 +4399,15 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::DisconnectProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetRunningProcessSystemIds(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&count), core::mem::transmute_copy(&actualcount)).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetRunningProcessSystemIdByExecutableName(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -6055,38 +4417,23 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetRunningProcessDescription(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::AttachProcess(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::CreateProcessA(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::CreateProcessAndAttach(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetProcessOptions(this) { Ok(ok__) => { @@ -6096,87 +4443,51 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::AddProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::RemoveProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::OpenDumpFile(this, core::mem::transmute(&dumpfile)).into() } - unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::WriteDumpFile(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::ConnectSession(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&historylimit)).into() } - unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::StartServer(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::OutputServers(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::TerminateProcesses(this).into() } - unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::DetachProcesses(this).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::EndSession(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetExitCode(this) { Ok(ok__) => { @@ -6186,24 +4497,15 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::DispatchCallbacks(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::ExitDispatch(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::CreateClient(this) { Ok(ok__) => { @@ -6213,10 +4515,7 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetInputCallbacks(this) { Ok(ok__) => { @@ -6226,17 +4525,11 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetInputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetOutputCallbacks(this) { Ok(ok__) => { @@ -6246,17 +4539,11 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetOutputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetOutputMask(this) { Ok(ok__) => { @@ -6266,17 +4553,11 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetOutputMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetOtherOutputMask(this, windows_core::from_raw_borrowed(&client)) { Ok(ok__) => { @@ -6286,17 +4567,11 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetOtherOutputMask(this, windows_core::from_raw_borrowed(&client), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetOutputWidth(this) { Ok(ok__) => { @@ -6306,45 +4581,27 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetOutputWidth(this, core::mem::transmute_copy(&columns)).into() } - unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetOutputLinePrefix(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetOutputLinePrefix(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetIdentity(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::OutputIdentity(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetEventCallbacks(this) { Ok(ok__) => { @@ -6354,80 +4611,47 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetEventCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::FlushCallbacks(this).into() } - unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::WriteDumpFile2(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::AddDumpInformationFile(this, core::mem::transmute(&infofile), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::EndProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::WaitForProcessServerEnd(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::IsKernelDebuggerEnabled(this).into() } - unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::TerminateCurrentProcess(this).into() } - unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::DetachCurrentProcess(this).into() } - unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::AbandonCurrentProcess(this).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetRunningProcessSystemIdByExecutableNameWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -6437,52 +4661,31 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetRunningProcessDescriptionWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::CreateProcessWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::CreateProcessAndAttachWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn OpenDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn OpenDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::OpenDumpFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle)).into() } - unsafe extern "system" fn WriteDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, qualifier: u32, formatflags: u32, comment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn WriteDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, qualifier: u32, formatflags: u32, comment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::WriteDumpFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn AddDumpInformationFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::AddDumpInformationFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetNumberDumpFiles(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetNumberDumpFiles(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetNumberDumpFiles(this) { Ok(ok__) => { @@ -6492,52 +4695,31 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFile(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetDumpFile(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetDumpFile(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetDumpFileWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetDumpFileWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetDumpFileWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn AttachKernelWide(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn AttachKernelWide(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::AttachKernelWide(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetKernelConnectionOptionsWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetKernelConnectionOptionsWide(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServerWide(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCWSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn StartProcessServerWide(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCWSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::StartProcessServerWide(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServerWide(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCWSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn ConnectProcessServerWide(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCWSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::ConnectProcessServerWide(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -6547,24 +4729,15 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartServerWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn StartServerWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::StartServerWide(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServersWide(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn OutputServersWide(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::OutputServersWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetOutputCallbacksWide(this) { Ok(ok__) => { @@ -6574,45 +4747,27 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetOutputCallbacksWide(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputLinePrefixWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetOutputLinePrefixWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetOutputLinePrefixWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefixWide(this: *mut core::ffi::c_void, prefix: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetOutputLinePrefixWide(this: *mut core::ffi::c_void, prefix: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetOutputLinePrefixWide(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentityWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetIdentityWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetIdentityWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentityWide(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn OutputIdentityWide(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::OutputIdentityWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetEventCallbacksWide(this) { Ok(ok__) => { @@ -6622,45 +4777,27 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetEventCallbacksWide(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn CreateProcess2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn CreateProcess2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::CreateProcess2(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment)).into() } - unsafe extern "system" fn CreateProcess2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn CreateProcess2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::CreateProcess2Wide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment)).into() } - unsafe extern "system" fn CreateProcessAndAttach2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::CreateProcessAndAttach2(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::CreateProcessAndAttach2Wide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn PushOutputLinePrefix(this: *mut core::ffi::c_void, newprefix: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn PushOutputLinePrefix(this: *mut core::ffi::c_void, newprefix: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::PushOutputLinePrefix(this, core::mem::transmute(&newprefix)) { Ok(ok__) => { @@ -6670,10 +4807,7 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PushOutputLinePrefixWide(this: *mut core::ffi::c_void, newprefix: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn PushOutputLinePrefixWide(this: *mut core::ffi::c_void, newprefix: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::PushOutputLinePrefixWide(this, core::mem::transmute(&newprefix)) { Ok(ok__) => { @@ -6683,17 +4817,11 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PopOutputLinePrefix(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn PopOutputLinePrefix(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::PopOutputLinePrefix(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetNumberInputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetNumberInputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetNumberInputCallbacks(this) { Ok(ok__) => { @@ -6703,10 +4831,7 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOutputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetNumberOutputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetNumberOutputCallbacks(this) { Ok(ok__) => { @@ -6716,10 +4841,7 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberEventCallbacks(this: *mut core::ffi::c_void, eventflags: u32, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetNumberEventCallbacks(this: *mut core::ffi::c_void, eventflags: u32, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient6_Impl::GetNumberEventCallbacks(this, core::mem::transmute_copy(&eventflags)) { Ok(ok__) => { @@ -6729,38 +4851,23 @@ impl IDebugClient6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQuitLockString(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetQuitLockString(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetQuitLockString(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn SetQuitLockString(this: *mut core::ffi::c_void, string: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetQuitLockString(this: *mut core::ffi::c_void, string: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetQuitLockString(this, core::mem::transmute(&string)).into() } - unsafe extern "system" fn GetQuitLockStringWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn GetQuitLockStringWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::GetQuitLockStringWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn SetQuitLockStringWide(this: *mut core::ffi::c_void, string: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetQuitLockStringWide(this: *mut core::ffi::c_void, string: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetQuitLockStringWide(this, core::mem::transmute(&string)).into() } - unsafe extern "system" fn SetEventContextCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient6_Impl, - { + unsafe extern "system" fn SetEventContextCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient6_Impl::SetEventContextCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } @@ -6865,7 +4972,7 @@ impl IDebugClient6_Vtbl { iid == &::IID } } -pub trait IDebugClient7_Impl: Sized { +pub trait IDebugClient7_Impl: Sized + windows_core::IUnknownImpl { fn AttachKernel(&self, flags: u32, connectoptions: &windows_core::PCSTR) -> windows_core::Result<()>; fn GetKernelConnectionOptions(&self, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::Result<()>; fn SetKernelConnectionOptions(&self, options: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -6963,42 +5070,24 @@ pub trait IDebugClient7_Impl: Sized { } impl windows_core::RuntimeName for IDebugClient7 {} impl IDebugClient7_Vtbl { - pub const fn new() -> IDebugClient7_Vtbl - where - Identity: IDebugClient7_Impl, - { - unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + pub const fn new() -> IDebugClient7_Vtbl { + unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::AttachKernel(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetKernelConnectionOptions(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetKernelConnectionOptions(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::StartProcessServer(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::ConnectProcessServer(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -7008,24 +5097,15 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::DisconnectProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetRunningProcessSystemIds(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&count), core::mem::transmute_copy(&actualcount)).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetRunningProcessSystemIdByExecutableName(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -7035,38 +5115,23 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetRunningProcessDescription(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::AttachProcess(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::CreateProcessA(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::CreateProcessAndAttach(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetProcessOptions(this) { Ok(ok__) => { @@ -7076,87 +5141,51 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::AddProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::RemoveProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::OpenDumpFile(this, core::mem::transmute(&dumpfile)).into() } - unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::WriteDumpFile(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::ConnectSession(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&historylimit)).into() } - unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::StartServer(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::OutputServers(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::TerminateProcesses(this).into() } - unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::DetachProcesses(this).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::EndSession(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetExitCode(this) { Ok(ok__) => { @@ -7166,24 +5195,15 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::DispatchCallbacks(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::ExitDispatch(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::CreateClient(this) { Ok(ok__) => { @@ -7193,10 +5213,7 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetInputCallbacks(this) { Ok(ok__) => { @@ -7206,17 +5223,11 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetInputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetOutputCallbacks(this) { Ok(ok__) => { @@ -7226,17 +5237,11 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetOutputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetOutputMask(this) { Ok(ok__) => { @@ -7246,17 +5251,11 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetOutputMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetOtherOutputMask(this, windows_core::from_raw_borrowed(&client)) { Ok(ok__) => { @@ -7266,17 +5265,11 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetOtherOutputMask(this, windows_core::from_raw_borrowed(&client), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetOutputWidth(this) { Ok(ok__) => { @@ -7286,45 +5279,27 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetOutputWidth(this, core::mem::transmute_copy(&columns)).into() } - unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetOutputLinePrefix(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetOutputLinePrefix(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetIdentity(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::OutputIdentity(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetEventCallbacks(this) { Ok(ok__) => { @@ -7334,80 +5309,47 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetEventCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::FlushCallbacks(this).into() } - unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::WriteDumpFile2(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::AddDumpInformationFile(this, core::mem::transmute(&infofile), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::EndProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::WaitForProcessServerEnd(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::IsKernelDebuggerEnabled(this).into() } - unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::TerminateCurrentProcess(this).into() } - unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::DetachCurrentProcess(this).into() } - unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::AbandonCurrentProcess(this).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetRunningProcessSystemIdByExecutableNameWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -7417,52 +5359,31 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetRunningProcessDescriptionWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::CreateProcessWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::CreateProcessAndAttachWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn OpenDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn OpenDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::OpenDumpFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle)).into() } - unsafe extern "system" fn WriteDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, qualifier: u32, formatflags: u32, comment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn WriteDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, qualifier: u32, formatflags: u32, comment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::WriteDumpFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn AddDumpInformationFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::AddDumpInformationFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetNumberDumpFiles(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetNumberDumpFiles(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetNumberDumpFiles(this) { Ok(ok__) => { @@ -7472,52 +5393,31 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFile(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetDumpFile(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetDumpFile(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetDumpFileWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetDumpFileWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetDumpFileWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn AttachKernelWide(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn AttachKernelWide(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::AttachKernelWide(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetKernelConnectionOptionsWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetKernelConnectionOptionsWide(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServerWide(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCWSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn StartProcessServerWide(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCWSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::StartProcessServerWide(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServerWide(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCWSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn ConnectProcessServerWide(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCWSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::ConnectProcessServerWide(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -7527,24 +5427,15 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartServerWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn StartServerWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::StartServerWide(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServersWide(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn OutputServersWide(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::OutputServersWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetOutputCallbacksWide(this) { Ok(ok__) => { @@ -7554,45 +5445,27 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetOutputCallbacksWide(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputLinePrefixWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetOutputLinePrefixWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetOutputLinePrefixWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefixWide(this: *mut core::ffi::c_void, prefix: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetOutputLinePrefixWide(this: *mut core::ffi::c_void, prefix: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetOutputLinePrefixWide(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentityWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetIdentityWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetIdentityWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentityWide(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn OutputIdentityWide(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::OutputIdentityWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetEventCallbacksWide(this) { Ok(ok__) => { @@ -7602,45 +5475,27 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetEventCallbacksWide(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn CreateProcess2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn CreateProcess2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::CreateProcess2(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment)).into() } - unsafe extern "system" fn CreateProcess2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn CreateProcess2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::CreateProcess2Wide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment)).into() } - unsafe extern "system" fn CreateProcessAndAttach2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::CreateProcessAndAttach2(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::CreateProcessAndAttach2Wide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn PushOutputLinePrefix(this: *mut core::ffi::c_void, newprefix: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn PushOutputLinePrefix(this: *mut core::ffi::c_void, newprefix: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::PushOutputLinePrefix(this, core::mem::transmute(&newprefix)) { Ok(ok__) => { @@ -7650,10 +5505,7 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PushOutputLinePrefixWide(this: *mut core::ffi::c_void, newprefix: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn PushOutputLinePrefixWide(this: *mut core::ffi::c_void, newprefix: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::PushOutputLinePrefixWide(this, core::mem::transmute(&newprefix)) { Ok(ok__) => { @@ -7663,17 +5515,11 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PopOutputLinePrefix(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn PopOutputLinePrefix(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::PopOutputLinePrefix(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetNumberInputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetNumberInputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetNumberInputCallbacks(this) { Ok(ok__) => { @@ -7683,10 +5529,7 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOutputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetNumberOutputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetNumberOutputCallbacks(this) { Ok(ok__) => { @@ -7696,10 +5539,7 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberEventCallbacks(this: *mut core::ffi::c_void, eventflags: u32, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetNumberEventCallbacks(this: *mut core::ffi::c_void, eventflags: u32, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient7_Impl::GetNumberEventCallbacks(this, core::mem::transmute_copy(&eventflags)) { Ok(ok__) => { @@ -7709,45 +5549,27 @@ impl IDebugClient7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQuitLockString(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetQuitLockString(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetQuitLockString(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn SetQuitLockString(this: *mut core::ffi::c_void, string: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetQuitLockString(this: *mut core::ffi::c_void, string: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetQuitLockString(this, core::mem::transmute(&string)).into() } - unsafe extern "system" fn GetQuitLockStringWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn GetQuitLockStringWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::GetQuitLockStringWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn SetQuitLockStringWide(this: *mut core::ffi::c_void, string: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetQuitLockStringWide(this: *mut core::ffi::c_void, string: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetQuitLockStringWide(this, core::mem::transmute(&string)).into() } - unsafe extern "system" fn SetEventContextCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetEventContextCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetEventContextCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn SetClientContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugClient7_Impl, - { + unsafe extern "system" fn SetClientContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient7_Impl::SetClientContext(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } @@ -7853,7 +5675,7 @@ impl IDebugClient7_Vtbl { iid == &::IID } } -pub trait IDebugClient8_Impl: Sized { +pub trait IDebugClient8_Impl: Sized + windows_core::IUnknownImpl { fn AttachKernel(&self, flags: u32, connectoptions: &windows_core::PCSTR) -> windows_core::Result<()>; fn GetKernelConnectionOptions(&self, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::Result<()>; fn SetKernelConnectionOptions(&self, options: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -7952,42 +5774,24 @@ pub trait IDebugClient8_Impl: Sized { } impl windows_core::RuntimeName for IDebugClient8 {} impl IDebugClient8_Vtbl { - pub const fn new() -> IDebugClient8_Vtbl - where - Identity: IDebugClient8_Impl, - { - unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + pub const fn new() -> IDebugClient8_Vtbl { + unsafe extern "system" fn AttachKernel(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::AttachKernel(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptions(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetKernelConnectionOptions(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptions(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetKernelConnectionOptions(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn StartProcessServer(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::StartProcessServer(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn ConnectProcessServer(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::ConnectProcessServer(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -7997,24 +5801,15 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn DisconnectProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::DisconnectProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIds(this: *mut core::ffi::c_void, server: u64, ids: *mut u32, count: u32, actualcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetRunningProcessSystemIds(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&count), core::mem::transmute_copy(&actualcount)).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableName(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetRunningProcessSystemIdByExecutableName(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -8024,38 +5819,23 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetRunningProcessDescription(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetRunningProcessDescription(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn AttachProcess(this: *mut core::ffi::c_void, server: u64, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::AttachProcess(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::CreateProcessA(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::CreateProcessAndAttach(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetProcessOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetProcessOptions(this) { Ok(ok__) => { @@ -8065,87 +5845,51 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn AddProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::AddProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn RemoveProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::RemoveProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetProcessOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetProcessOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn OpenDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::OpenDumpFile(this, core::mem::transmute(&dumpfile)).into() } - unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn WriteDumpFile(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::WriteDumpFile(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn ConnectSession(this: *mut core::ffi::c_void, flags: u32, historylimit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::ConnectSession(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&historylimit)).into() } - unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn StartServer(this: *mut core::ffi::c_void, options: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::StartServer(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn OutputServers(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::OutputServers(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn TerminateProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::TerminateProcesses(this).into() } - unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn DetachProcesses(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::DetachProcesses(this).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::EndSession(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, code: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetExitCode(this) { Ok(ok__) => { @@ -8155,24 +5899,15 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn DispatchCallbacks(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::DispatchCallbacks(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn ExitDispatch(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::ExitDispatch(this, windows_core::from_raw_borrowed(&client)).into() } - unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn CreateClient(this: *mut core::ffi::c_void, client: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::CreateClient(this) { Ok(ok__) => { @@ -8182,10 +5917,7 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetInputCallbacks(this) { Ok(ok__) => { @@ -8195,17 +5927,11 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetInputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetInputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetOutputCallbacks(this) { Ok(ok__) => { @@ -8215,17 +5941,11 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetOutputCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetOutputCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetOutputMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetOutputMask(this) { Ok(ok__) => { @@ -8235,17 +5955,11 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetOutputMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetOutputMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetOtherOutputMask(this, windows_core::from_raw_borrowed(&client)) { Ok(ok__) => { @@ -8255,17 +5969,11 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetOtherOutputMask(this: *mut core::ffi::c_void, client: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetOtherOutputMask(this, windows_core::from_raw_borrowed(&client), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetOutputWidth(this: *mut core::ffi::c_void, columns: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetOutputWidth(this) { Ok(ok__) => { @@ -8275,45 +5983,27 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetOutputWidth(this: *mut core::ffi::c_void, columns: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetOutputWidth(this, core::mem::transmute_copy(&columns)).into() } - unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetOutputLinePrefix(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetOutputLinePrefix(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetOutputLinePrefix(this: *mut core::ffi::c_void, prefix: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetOutputLinePrefix(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetIdentity(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn OutputIdentity(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::OutputIdentity(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetEventCallbacks(this) { Ok(ok__) => { @@ -8323,80 +6013,47 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetEventCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetEventCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn FlushCallbacks(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::FlushCallbacks(this).into() } - unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn WriteDumpFile2(this: *mut core::ffi::c_void, dumpfile: windows_core::PCSTR, qualifier: u32, formatflags: u32, comment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::WriteDumpFile2(this, core::mem::transmute(&dumpfile), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn AddDumpInformationFile(this: *mut core::ffi::c_void, infofile: windows_core::PCSTR, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::AddDumpInformationFile(this, core::mem::transmute(&infofile), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn EndProcessServer(this: *mut core::ffi::c_void, server: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::EndProcessServer(this, core::mem::transmute_copy(&server)).into() } - unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn WaitForProcessServerEnd(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::WaitForProcessServerEnd(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn IsKernelDebuggerEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::IsKernelDebuggerEnabled(this).into() } - unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn TerminateCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::TerminateCurrentProcess(this).into() } - unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn DetachCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::DetachCurrentProcess(this).into() } - unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn AbandonCurrentProcess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::AbandonCurrentProcess(this).into() } - unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetRunningProcessSystemIdByExecutableNameWide(this: *mut core::ffi::c_void, server: u64, exename: windows_core::PCWSTR, flags: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetRunningProcessSystemIdByExecutableNameWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&exename), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -8406,52 +6063,31 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetRunningProcessDescriptionWide(this: *mut core::ffi::c_void, server: u64, systemid: u32, flags: u32, exename: windows_core::PWSTR, exenamesize: u32, actualexenamesize: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, actualdescriptionsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetRunningProcessDescriptionWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&systemid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&exename), core::mem::transmute_copy(&exenamesize), core::mem::transmute_copy(&actualexenamesize), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&actualdescriptionsize)).into() } - unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn CreateProcessWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::CreateProcessWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags)).into() } - unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn CreateProcessAndAttachWide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::CreateProcessAndAttachWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&createflags), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn OpenDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn OpenDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::OpenDumpFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle)).into() } - unsafe extern "system" fn WriteDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, qualifier: u32, formatflags: u32, comment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn WriteDumpFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, qualifier: u32, formatflags: u32, comment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::WriteDumpFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&qualifier), core::mem::transmute_copy(&formatflags), core::mem::transmute(&comment)).into() } - unsafe extern "system" fn AddDumpInformationFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn AddDumpInformationFileWide(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::AddDumpInformationFileWide(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetNumberDumpFiles(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetNumberDumpFiles(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetNumberDumpFiles(this) { Ok(ok__) => { @@ -8461,52 +6097,31 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFile(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetDumpFile(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetDumpFile(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetDumpFileWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetDumpFileWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetDumpFileWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn AttachKernelWide(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn AttachKernelWide(this: *mut core::ffi::c_void, flags: u32, connectoptions: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::AttachKernelWide(this, core::mem::transmute_copy(&flags), core::mem::transmute(&connectoptions)).into() } - unsafe extern "system" fn GetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, optionssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetKernelConnectionOptionsWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&optionssize)).into() } - unsafe extern "system" fn SetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetKernelConnectionOptionsWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetKernelConnectionOptionsWide(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn StartProcessServerWide(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCWSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn StartProcessServerWide(this: *mut core::ffi::c_void, flags: u32, options: windows_core::PCWSTR, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::StartProcessServerWide(this, core::mem::transmute_copy(&flags), core::mem::transmute(&options), core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ConnectProcessServerWide(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCWSTR, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn ConnectProcessServerWide(this: *mut core::ffi::c_void, remoteoptions: windows_core::PCWSTR, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::ConnectProcessServerWide(this, core::mem::transmute(&remoteoptions)) { Ok(ok__) => { @@ -8516,24 +6131,15 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartServerWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn StartServerWide(this: *mut core::ffi::c_void, options: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::StartServerWide(this, core::mem::transmute(&options)).into() } - unsafe extern "system" fn OutputServersWide(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn OutputServersWide(this: *mut core::ffi::c_void, outputcontrol: u32, machine: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::OutputServersWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&machine), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetOutputCallbacksWide(this) { Ok(ok__) => { @@ -8543,45 +6149,27 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetOutputCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetOutputCallbacksWide(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn GetOutputLinePrefixWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetOutputLinePrefixWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, prefixsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetOutputLinePrefixWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&prefixsize)).into() } - unsafe extern "system" fn SetOutputLinePrefixWide(this: *mut core::ffi::c_void, prefix: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetOutputLinePrefixWide(this: *mut core::ffi::c_void, prefix: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetOutputLinePrefixWide(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn GetIdentityWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetIdentityWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, identitysize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetIdentityWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&identitysize)).into() } - unsafe extern "system" fn OutputIdentityWide(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn OutputIdentityWide(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::OutputIdentityWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute(&format)).into() } - unsafe extern "system" fn GetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetEventCallbacksWide(this) { Ok(ok__) => { @@ -8591,45 +6179,27 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetEventCallbacksWide(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetEventCallbacksWide(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn CreateProcess2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn CreateProcess2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::CreateProcess2(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment)).into() } - unsafe extern "system" fn CreateProcess2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn CreateProcess2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::CreateProcess2Wide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment)).into() } - unsafe extern "system" fn CreateProcessAndAttach2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach2(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCSTR, environment: windows_core::PCSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::CreateProcessAndAttach2(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn CreateProcessAndAttach2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn CreateProcessAndAttach2Wide(this: *mut core::ffi::c_void, server: u64, commandline: windows_core::PCWSTR, optionsbuffer: *const core::ffi::c_void, optionsbuffersize: u32, initialdirectory: windows_core::PCWSTR, environment: windows_core::PCWSTR, processid: u32, attachflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::CreateProcessAndAttach2Wide(this, core::mem::transmute_copy(&server), core::mem::transmute(&commandline), core::mem::transmute_copy(&optionsbuffer), core::mem::transmute_copy(&optionsbuffersize), core::mem::transmute(&initialdirectory), core::mem::transmute(&environment), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&attachflags)).into() } - unsafe extern "system" fn PushOutputLinePrefix(this: *mut core::ffi::c_void, newprefix: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn PushOutputLinePrefix(this: *mut core::ffi::c_void, newprefix: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::PushOutputLinePrefix(this, core::mem::transmute(&newprefix)) { Ok(ok__) => { @@ -8639,10 +6209,7 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PushOutputLinePrefixWide(this: *mut core::ffi::c_void, newprefix: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn PushOutputLinePrefixWide(this: *mut core::ffi::c_void, newprefix: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::PushOutputLinePrefixWide(this, core::mem::transmute(&newprefix)) { Ok(ok__) => { @@ -8652,17 +6219,11 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PopOutputLinePrefix(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn PopOutputLinePrefix(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::PopOutputLinePrefix(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetNumberInputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetNumberInputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetNumberInputCallbacks(this) { Ok(ok__) => { @@ -8672,10 +6233,7 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOutputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetNumberOutputCallbacks(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetNumberOutputCallbacks(this) { Ok(ok__) => { @@ -8685,10 +6243,7 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberEventCallbacks(this: *mut core::ffi::c_void, eventflags: u32, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetNumberEventCallbacks(this: *mut core::ffi::c_void, eventflags: u32, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugClient8_Impl::GetNumberEventCallbacks(this, core::mem::transmute_copy(&eventflags)) { Ok(ok__) => { @@ -8698,52 +6253,31 @@ impl IDebugClient8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQuitLockString(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetQuitLockString(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetQuitLockString(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn SetQuitLockString(this: *mut core::ffi::c_void, string: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetQuitLockString(this: *mut core::ffi::c_void, string: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetQuitLockString(this, core::mem::transmute(&string)).into() } - unsafe extern "system" fn GetQuitLockStringWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn GetQuitLockStringWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::GetQuitLockStringWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn SetQuitLockStringWide(this: *mut core::ffi::c_void, string: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetQuitLockStringWide(this: *mut core::ffi::c_void, string: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetQuitLockStringWide(this, core::mem::transmute(&string)).into() } - unsafe extern "system" fn SetEventContextCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetEventContextCallbacks(this: *mut core::ffi::c_void, callbacks: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetEventContextCallbacks(this, windows_core::from_raw_borrowed(&callbacks)).into() } - unsafe extern "system" fn SetClientContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn SetClientContext(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::SetClientContext(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn OpenDumpFileWide2(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, alternatearch: u32) -> windows_core::HRESULT - where - Identity: IDebugClient8_Impl, - { + unsafe extern "system" fn OpenDumpFileWide2(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, filehandle: u64, alternatearch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugClient8_Impl::OpenDumpFileWide2(this, core::mem::transmute(&filename), core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&alternatearch)).into() } @@ -8851,7 +6385,7 @@ impl IDebugClient8_Vtbl { } } #[cfg(feature = "Win32_System_Kernel")] -pub trait IDebugControl_Impl: Sized { +pub trait IDebugControl_Impl: Sized + windows_core::IUnknownImpl { fn GetInterrupt(&self) -> windows_core::Result<()>; fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; @@ -8949,28 +6483,16 @@ pub trait IDebugControl_Impl: Sized { impl windows_core::RuntimeName for IDebugControl {} #[cfg(feature = "Win32_System_Kernel")] impl IDebugControl_Vtbl { - pub const fn new() -> IDebugControl_Vtbl - where - Identity: IDebugControl_Impl, - { - unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + pub const fn new() -> IDebugControl_Vtbl { + unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetInterrupt(this).into() } - unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetInterrupt(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetInterruptTimeout(this) { Ok(ok__) => { @@ -8980,38 +6502,23 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::CloseLogFile(this).into() } - unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetLogMask(this) { Ok(ok__) => { @@ -9021,94 +6528,55 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetLogMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::Input(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::ReturnInput(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::Output(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::OutputVaList(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::ControlledOutput(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::ControlledOutputVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::OutputPrompt(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::OutputPromptVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetPromptText(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::OutputCurrentState(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::OutputVersionInformation(this, core::mem::transmute_copy(&outputcontrol)).into() } - unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetNotifyEventHandle(this) { Ok(ok__) => { @@ -9118,17 +6586,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetNotifyEventHandle(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::Assemble(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -9138,17 +6600,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::Disassemble(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetDisassembleEffectiveOffset(this) { Ok(ok__) => { @@ -9158,10 +6614,7 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::OutputDisassembly(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -9171,17 +6624,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::OutputDisassemblyLines(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&previouslines), core::mem::transmute_copy(&totallines), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offsetline), core::mem::transmute_copy(&startoffset), core::mem::transmute_copy(&endoffset), core::mem::transmute_copy(&lineoffsets)).into() } - unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetNearInstruction(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta)) { Ok(ok__) => { @@ -9191,17 +6638,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetStackTrace(this, core::mem::transmute_copy(&frameoffset), core::mem::transmute_copy(&stackoffset), core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetReturnOffset(this) { Ok(ok__) => { @@ -9211,24 +6652,15 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::OutputStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetDebuggeeType(this, core::mem::transmute_copy(&class), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetActualProcessorType(this) { Ok(ok__) => { @@ -9238,10 +6670,7 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetExecutingProcessorType(this) { Ok(ok__) => { @@ -9251,10 +6680,7 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetNumberPossibleExecutingProcessorTypes(this) { Ok(ok__) => { @@ -9264,17 +6690,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetPossibleExecutingProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetNumberProcessors(this) { Ok(ok__) => { @@ -9284,17 +6704,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetSystemVersion(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&major), core::mem::transmute_copy(&minor), core::mem::transmute_copy(&servicepackstring), core::mem::transmute_copy(&servicepackstringsize), core::mem::transmute_copy(&servicepackstringused), core::mem::transmute_copy(&servicepacknumber), core::mem::transmute_copy(&buildstring), core::mem::transmute_copy(&buildstringsize), core::mem::transmute_copy(&buildstringused)).into() } - unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetPageSize(this) { Ok(ok__) => { @@ -9304,24 +6718,15 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::IsPointer64Bit(this).into() } - unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::ReadBugCheckData(this, core::mem::transmute_copy(&code), core::mem::transmute_copy(&arg1), core::mem::transmute_copy(&arg2), core::mem::transmute_copy(&arg3), core::mem::transmute_copy(&arg4)).into() } - unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetNumberSupportedProcessorTypes(this) { Ok(ok__) => { @@ -9331,24 +6736,15 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetSupportedProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetProcessorTypeNames(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetEffectiveProcessorType(this) { Ok(ok__) => { @@ -9358,17 +6754,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetEffectiveProcessorType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetExecutionStatus(this) { Ok(ok__) => { @@ -9378,17 +6768,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetExecutionStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetCodeLevel(this) { Ok(ok__) => { @@ -9398,17 +6782,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetCodeLevel(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetEngineOptions(this) { Ok(ok__) => { @@ -9418,59 +6796,35 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::AddEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::RemoveEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetRadix(this) { Ok(ok__) => { @@ -9480,52 +6834,31 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetRadix(this, core::mem::transmute_copy(&radix)).into() } - unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::Evaluate(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::CoerceValue(this, core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtype), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::CoerceValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtypes), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::Execute(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::ExecuteCommandFile(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetNumberBreakpoints(this) { Ok(ok__) => { @@ -9535,10 +6868,7 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetBreakpointByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -9548,10 +6878,7 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetBreakpointById(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -9561,17 +6888,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetBreakpointParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::AddBreakpoint(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -9581,17 +6902,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::RemoveBreakpoint(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::AddExtension(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -9601,17 +6916,11 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::RemoveExtension(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl_Impl::GetExtensionByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -9621,129 +6930,75 @@ impl IDebugControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::CallExtension(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetExtensionFunction(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetWindbgExtensionApis32(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetWindbgExtensionApis64(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetNumberEventFilters(this, core::mem::transmute_copy(&specificevents), core::mem::transmute_copy(&specificexceptions), core::mem::transmute_copy(&arbitraryexceptions)).into() } - unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetEventFilterText(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&codes), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::SetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::WaitForEvent(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl_Impl, - { + unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetLastEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } @@ -9848,7 +7103,7 @@ impl IDebugControl_Vtbl { } } #[cfg(feature = "Win32_System_Kernel")] -pub trait IDebugControl2_Impl: Sized { +pub trait IDebugControl2_Impl: Sized + windows_core::IUnknownImpl { fn GetInterrupt(&self) -> windows_core::Result<()>; fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; @@ -9954,28 +7209,16 @@ pub trait IDebugControl2_Impl: Sized { impl windows_core::RuntimeName for IDebugControl2 {} #[cfg(feature = "Win32_System_Kernel")] impl IDebugControl2_Vtbl { - pub const fn new() -> IDebugControl2_Vtbl - where - Identity: IDebugControl2_Impl, - { - unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + pub const fn new() -> IDebugControl2_Vtbl { + unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetInterrupt(this).into() } - unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetInterrupt(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetInterruptTimeout(this) { Ok(ok__) => { @@ -9985,38 +7228,23 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::CloseLogFile(this).into() } - unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetLogMask(this) { Ok(ok__) => { @@ -10026,94 +7254,55 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetLogMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::Input(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::ReturnInput(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::Output(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::OutputVaList(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::ControlledOutput(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::ControlledOutputVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::OutputPrompt(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::OutputPromptVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetPromptText(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::OutputCurrentState(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::OutputVersionInformation(this, core::mem::transmute_copy(&outputcontrol)).into() } - unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetNotifyEventHandle(this) { Ok(ok__) => { @@ -10123,17 +7312,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetNotifyEventHandle(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::Assemble(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -10143,17 +7326,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::Disassemble(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetDisassembleEffectiveOffset(this) { Ok(ok__) => { @@ -10163,10 +7340,7 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::OutputDisassembly(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -10176,17 +7350,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::OutputDisassemblyLines(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&previouslines), core::mem::transmute_copy(&totallines), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offsetline), core::mem::transmute_copy(&startoffset), core::mem::transmute_copy(&endoffset), core::mem::transmute_copy(&lineoffsets)).into() } - unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetNearInstruction(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta)) { Ok(ok__) => { @@ -10196,17 +7364,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetStackTrace(this, core::mem::transmute_copy(&frameoffset), core::mem::transmute_copy(&stackoffset), core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetReturnOffset(this) { Ok(ok__) => { @@ -10216,24 +7378,15 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::OutputStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetDebuggeeType(this, core::mem::transmute_copy(&class), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetActualProcessorType(this) { Ok(ok__) => { @@ -10243,10 +7396,7 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetExecutingProcessorType(this) { Ok(ok__) => { @@ -10256,10 +7406,7 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetNumberPossibleExecutingProcessorTypes(this) { Ok(ok__) => { @@ -10269,17 +7416,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetPossibleExecutingProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetNumberProcessors(this) { Ok(ok__) => { @@ -10289,17 +7430,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetSystemVersion(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&major), core::mem::transmute_copy(&minor), core::mem::transmute_copy(&servicepackstring), core::mem::transmute_copy(&servicepackstringsize), core::mem::transmute_copy(&servicepackstringused), core::mem::transmute_copy(&servicepacknumber), core::mem::transmute_copy(&buildstring), core::mem::transmute_copy(&buildstringsize), core::mem::transmute_copy(&buildstringused)).into() } - unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetPageSize(this) { Ok(ok__) => { @@ -10309,24 +7444,15 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::IsPointer64Bit(this).into() } - unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::ReadBugCheckData(this, core::mem::transmute_copy(&code), core::mem::transmute_copy(&arg1), core::mem::transmute_copy(&arg2), core::mem::transmute_copy(&arg3), core::mem::transmute_copy(&arg4)).into() } - unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetNumberSupportedProcessorTypes(this) { Ok(ok__) => { @@ -10336,24 +7462,15 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetSupportedProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetProcessorTypeNames(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetEffectiveProcessorType(this) { Ok(ok__) => { @@ -10363,17 +7480,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetEffectiveProcessorType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetExecutionStatus(this) { Ok(ok__) => { @@ -10383,17 +7494,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetExecutionStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetCodeLevel(this) { Ok(ok__) => { @@ -10403,17 +7508,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetCodeLevel(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetEngineOptions(this) { Ok(ok__) => { @@ -10423,59 +7522,35 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::AddEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::RemoveEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetRadix(this) { Ok(ok__) => { @@ -10485,52 +7560,31 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetRadix(this, core::mem::transmute_copy(&radix)).into() } - unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::Evaluate(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::CoerceValue(this, core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtype), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::CoerceValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtypes), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::Execute(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::ExecuteCommandFile(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetNumberBreakpoints(this) { Ok(ok__) => { @@ -10540,10 +7594,7 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetBreakpointByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -10553,10 +7604,7 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetBreakpointById(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -10566,17 +7614,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetBreakpointParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::AddBreakpoint(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -10586,17 +7628,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::RemoveBreakpoint(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::AddExtension(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -10606,17 +7642,11 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::RemoveExtension(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetExtensionByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -10626,136 +7656,79 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::CallExtension(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetExtensionFunction(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetWindbgExtensionApis32(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetWindbgExtensionApis64(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetNumberEventFilters(this, core::mem::transmute_copy(&specificevents), core::mem::transmute_copy(&specificexceptions), core::mem::transmute_copy(&arbitraryexceptions)).into() } - unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetEventFilterText(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&codes), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::WaitForEvent(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetLastEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } - unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetCurrentTimeDate(this) { Ok(ok__) => { @@ -10765,10 +7738,7 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetCurrentSystemUpTime(this) { Ok(ok__) => { @@ -10778,10 +7748,7 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetDumpFormatFlags(this) { Ok(ok__) => { @@ -10791,10 +7758,7 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl2_Impl::GetNumberTextReplacements(this) { Ok(ok__) => { @@ -10804,31 +7768,19 @@ impl IDebugControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute_copy(&index), core::mem::transmute_copy(&srcbuffer), core::mem::transmute_copy(&srcbuffersize), core::mem::transmute_copy(&srcsize), core::mem::transmute_copy(&dstbuffer), core::mem::transmute_copy(&dstbuffersize), core::mem::transmute_copy(&dstsize)).into() } - unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::SetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute(&dsttext)).into() } - unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::RemoveTextReplacements(this).into() } - unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl2_Impl, - { + unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::OutputTextReplacements(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } @@ -10941,7 +7893,7 @@ impl IDebugControl2_Vtbl { } } #[cfg(feature = "Win32_System_Kernel")] -pub trait IDebugControl3_Impl: Sized { +pub trait IDebugControl3_Impl: Sized + windows_core::IUnknownImpl { fn GetInterrupt(&self) -> windows_core::Result<()>; fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; @@ -11060,28 +8012,16 @@ pub trait IDebugControl3_Impl: Sized { impl windows_core::RuntimeName for IDebugControl3 {} #[cfg(feature = "Win32_System_Kernel")] impl IDebugControl3_Vtbl { - pub const fn new() -> IDebugControl3_Vtbl - where - Identity: IDebugControl3_Impl, - { - unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + pub const fn new() -> IDebugControl3_Vtbl { + unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetInterrupt(this).into() } - unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetInterrupt(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetInterruptTimeout(this) { Ok(ok__) => { @@ -11091,38 +8031,23 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::CloseLogFile(this).into() } - unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetLogMask(this) { Ok(ok__) => { @@ -11132,94 +8057,55 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetLogMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::Input(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::ReturnInput(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::Output(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::OutputVaList(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::ControlledOutput(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::ControlledOutputVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::OutputPrompt(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::OutputPromptVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetPromptText(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::OutputCurrentState(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::OutputVersionInformation(this, core::mem::transmute_copy(&outputcontrol)).into() } - unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetNotifyEventHandle(this) { Ok(ok__) => { @@ -11229,17 +8115,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetNotifyEventHandle(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::Assemble(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -11249,17 +8129,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::Disassemble(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetDisassembleEffectiveOffset(this) { Ok(ok__) => { @@ -11269,10 +8143,7 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::OutputDisassembly(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -11282,17 +8153,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::OutputDisassemblyLines(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&previouslines), core::mem::transmute_copy(&totallines), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offsetline), core::mem::transmute_copy(&startoffset), core::mem::transmute_copy(&endoffset), core::mem::transmute_copy(&lineoffsets)).into() } - unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetNearInstruction(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta)) { Ok(ok__) => { @@ -11302,17 +8167,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetStackTrace(this, core::mem::transmute_copy(&frameoffset), core::mem::transmute_copy(&stackoffset), core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetReturnOffset(this) { Ok(ok__) => { @@ -11322,24 +8181,15 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::OutputStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetDebuggeeType(this, core::mem::transmute_copy(&class), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetActualProcessorType(this) { Ok(ok__) => { @@ -11349,10 +8199,7 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetExecutingProcessorType(this) { Ok(ok__) => { @@ -11362,10 +8209,7 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetNumberPossibleExecutingProcessorTypes(this) { Ok(ok__) => { @@ -11375,17 +8219,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetPossibleExecutingProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetNumberProcessors(this) { Ok(ok__) => { @@ -11395,17 +8233,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetSystemVersion(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&major), core::mem::transmute_copy(&minor), core::mem::transmute_copy(&servicepackstring), core::mem::transmute_copy(&servicepackstringsize), core::mem::transmute_copy(&servicepackstringused), core::mem::transmute_copy(&servicepacknumber), core::mem::transmute_copy(&buildstring), core::mem::transmute_copy(&buildstringsize), core::mem::transmute_copy(&buildstringused)).into() } - unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetPageSize(this) { Ok(ok__) => { @@ -11415,24 +8247,15 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::IsPointer64Bit(this).into() } - unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::ReadBugCheckData(this, core::mem::transmute_copy(&code), core::mem::transmute_copy(&arg1), core::mem::transmute_copy(&arg2), core::mem::transmute_copy(&arg3), core::mem::transmute_copy(&arg4)).into() } - unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetNumberSupportedProcessorTypes(this) { Ok(ok__) => { @@ -11442,24 +8265,15 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetSupportedProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetProcessorTypeNames(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetEffectiveProcessorType(this) { Ok(ok__) => { @@ -11469,17 +8283,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetEffectiveProcessorType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetExecutionStatus(this) { Ok(ok__) => { @@ -11489,17 +8297,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetExecutionStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetCodeLevel(this) { Ok(ok__) => { @@ -11509,17 +8311,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetCodeLevel(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetEngineOptions(this) { Ok(ok__) => { @@ -11529,59 +8325,35 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::AddEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::RemoveEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetRadix(this) { Ok(ok__) => { @@ -11591,52 +8363,31 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetRadix(this, core::mem::transmute_copy(&radix)).into() } - unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::Evaluate(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::CoerceValue(this, core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtype), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::CoerceValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtypes), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::Execute(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::ExecuteCommandFile(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetNumberBreakpoints(this) { Ok(ok__) => { @@ -11646,10 +8397,7 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetBreakpointByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -11659,10 +8407,7 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetBreakpointById(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -11672,17 +8417,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetBreakpointParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::AddBreakpoint(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -11692,17 +8431,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::RemoveBreakpoint(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::AddExtension(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -11712,17 +8445,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::RemoveExtension(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetExtensionByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -11732,136 +8459,79 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::CallExtension(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetExtensionFunction(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetWindbgExtensionApis32(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetWindbgExtensionApis64(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetNumberEventFilters(this, core::mem::transmute_copy(&specificevents), core::mem::transmute_copy(&specificexceptions), core::mem::transmute_copy(&arbitraryexceptions)).into() } - unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetEventFilterText(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&codes), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::WaitForEvent(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetLastEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } - unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetCurrentTimeDate(this) { Ok(ok__) => { @@ -11871,10 +8541,7 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetCurrentSystemUpTime(this) { Ok(ok__) => { @@ -11884,10 +8551,7 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetDumpFormatFlags(this) { Ok(ok__) => { @@ -11897,10 +8561,7 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetNumberTextReplacements(this) { Ok(ok__) => { @@ -11910,38 +8571,23 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute_copy(&index), core::mem::transmute_copy(&srcbuffer), core::mem::transmute_copy(&srcbuffersize), core::mem::transmute_copy(&srcsize), core::mem::transmute_copy(&dstbuffer), core::mem::transmute_copy(&dstbuffersize), core::mem::transmute_copy(&dstsize)).into() } - unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute(&dsttext)).into() } - unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::RemoveTextReplacements(this).into() } - unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::OutputTextReplacements(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetAssemblyOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetAssemblyOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetAssemblyOptions(this) { Ok(ok__) => { @@ -11951,31 +8597,19 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn AddAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::AddAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn RemoveAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::RemoveAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetExpressionSyntax(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetExpressionSyntax(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetExpressionSyntax(this) { Ok(ok__) => { @@ -11985,24 +8619,15 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExpressionSyntax(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetExpressionSyntax(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetExpressionSyntax(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetExpressionSyntaxByName(this: *mut core::ffi::c_void, abbrevname: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetExpressionSyntaxByName(this: *mut core::ffi::c_void, abbrevname: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::SetExpressionSyntaxByName(this, core::mem::transmute(&abbrevname)).into() } - unsafe extern "system" fn GetNumberExpressionSyntaxes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetNumberExpressionSyntaxes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetNumberExpressionSyntaxes(this) { Ok(ok__) => { @@ -12012,17 +8637,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpressionSyntaxNames(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetExpressionSyntaxNames(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetExpressionSyntaxNames(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetNumberEvents(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetNumberEvents(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetNumberEvents(this) { Ok(ok__) => { @@ -12032,17 +8651,11 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventIndexDescription(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetEventIndexDescription(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetEventIndexDescription(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&which), core::mem::transmute(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&descsize)).into() } - unsafe extern "system" fn GetCurrentEventIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn GetCurrentEventIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::GetCurrentEventIndex(this) { Ok(ok__) => { @@ -12052,10 +8665,7 @@ impl IDebugControl3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNextEventIndex(this: *mut core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl3_Impl, - { + unsafe extern "system" fn SetNextEventIndex(this: *mut core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl3_Impl::SetNextEventIndex(this, core::mem::transmute_copy(&relation), core::mem::transmute_copy(&value)) { Ok(ok__) => { @@ -12187,7 +8797,7 @@ impl IDebugControl3_Vtbl { } } #[cfg(feature = "Win32_System_Kernel")] -pub trait IDebugControl4_Impl: Sized { +pub trait IDebugControl4_Impl: Sized + windows_core::IUnknownImpl { fn GetInterrupt(&self) -> windows_core::Result<()>; fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; @@ -12359,28 +8969,16 @@ pub trait IDebugControl4_Impl: Sized { impl windows_core::RuntimeName for IDebugControl4 {} #[cfg(feature = "Win32_System_Kernel")] impl IDebugControl4_Vtbl { - pub const fn new() -> IDebugControl4_Vtbl - where - Identity: IDebugControl4_Impl, - { - unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + pub const fn new() -> IDebugControl4_Vtbl { + unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetInterrupt(this).into() } - unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetInterrupt(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetInterruptTimeout(this) { Ok(ok__) => { @@ -12390,38 +8988,23 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::CloseLogFile(this).into() } - unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetLogMask(this) { Ok(ok__) => { @@ -12431,94 +9014,55 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetLogMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::Input(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ReturnInput(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::Output(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputVaList(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ControlledOutput(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ControlledOutputVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputPrompt(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputPromptVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetPromptText(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputCurrentState(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputVersionInformation(this, core::mem::transmute_copy(&outputcontrol)).into() } - unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetNotifyEventHandle(this) { Ok(ok__) => { @@ -12528,17 +9072,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetNotifyEventHandle(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::Assemble(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -12548,17 +9086,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::Disassemble(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetDisassembleEffectiveOffset(this) { Ok(ok__) => { @@ -12568,10 +9100,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::OutputDisassembly(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -12581,17 +9110,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputDisassemblyLines(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&previouslines), core::mem::transmute_copy(&totallines), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offsetline), core::mem::transmute_copy(&startoffset), core::mem::transmute_copy(&endoffset), core::mem::transmute_copy(&lineoffsets)).into() } - unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetNearInstruction(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta)) { Ok(ok__) => { @@ -12601,17 +9124,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetStackTrace(this, core::mem::transmute_copy(&frameoffset), core::mem::transmute_copy(&stackoffset), core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetReturnOffset(this) { Ok(ok__) => { @@ -12621,24 +9138,15 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetDebuggeeType(this, core::mem::transmute_copy(&class), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetActualProcessorType(this) { Ok(ok__) => { @@ -12648,10 +9156,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetExecutingProcessorType(this) { Ok(ok__) => { @@ -12661,10 +9166,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetNumberPossibleExecutingProcessorTypes(this) { Ok(ok__) => { @@ -12674,17 +9176,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetPossibleExecutingProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetNumberProcessors(this) { Ok(ok__) => { @@ -12694,17 +9190,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetSystemVersion(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&major), core::mem::transmute_copy(&minor), core::mem::transmute_copy(&servicepackstring), core::mem::transmute_copy(&servicepackstringsize), core::mem::transmute_copy(&servicepackstringused), core::mem::transmute_copy(&servicepacknumber), core::mem::transmute_copy(&buildstring), core::mem::transmute_copy(&buildstringsize), core::mem::transmute_copy(&buildstringused)).into() } - unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetPageSize(this) { Ok(ok__) => { @@ -12714,24 +9204,15 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::IsPointer64Bit(this).into() } - unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ReadBugCheckData(this, core::mem::transmute_copy(&code), core::mem::transmute_copy(&arg1), core::mem::transmute_copy(&arg2), core::mem::transmute_copy(&arg3), core::mem::transmute_copy(&arg4)).into() } - unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetNumberSupportedProcessorTypes(this) { Ok(ok__) => { @@ -12741,24 +9222,15 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetSupportedProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetProcessorTypeNames(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetEffectiveProcessorType(this) { Ok(ok__) => { @@ -12768,17 +9240,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetEffectiveProcessorType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetExecutionStatus(this) { Ok(ok__) => { @@ -12788,17 +9254,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetExecutionStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetCodeLevel(this) { Ok(ok__) => { @@ -12808,17 +9268,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetCodeLevel(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetEngineOptions(this) { Ok(ok__) => { @@ -12828,59 +9282,35 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::AddEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::RemoveEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetRadix(this) { Ok(ok__) => { @@ -12890,52 +9320,31 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetRadix(this, core::mem::transmute_copy(&radix)).into() } - unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::Evaluate(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::CoerceValue(this, core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtype), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::CoerceValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtypes), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::Execute(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ExecuteCommandFile(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetNumberBreakpoints(this) { Ok(ok__) => { @@ -12945,10 +9354,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetBreakpointByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -12958,10 +9364,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetBreakpointById(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -12971,17 +9374,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetBreakpointParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::AddBreakpoint(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -12991,17 +9388,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::RemoveBreakpoint(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::AddExtension(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -13011,17 +9402,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::RemoveExtension(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetExtensionByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -13031,136 +9416,79 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::CallExtension(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetExtensionFunction(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetWindbgExtensionApis32(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetWindbgExtensionApis64(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetNumberEventFilters(this, core::mem::transmute_copy(&specificevents), core::mem::transmute_copy(&specificexceptions), core::mem::transmute_copy(&arbitraryexceptions)).into() } - unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetEventFilterText(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&codes), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::WaitForEvent(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetLastEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } - unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetCurrentTimeDate(this) { Ok(ok__) => { @@ -13170,10 +9498,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetCurrentSystemUpTime(this) { Ok(ok__) => { @@ -13183,10 +9508,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetDumpFormatFlags(this) { Ok(ok__) => { @@ -13196,10 +9518,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetNumberTextReplacements(this) { Ok(ok__) => { @@ -13209,38 +9528,23 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute_copy(&index), core::mem::transmute_copy(&srcbuffer), core::mem::transmute_copy(&srcbuffersize), core::mem::transmute_copy(&srcsize), core::mem::transmute_copy(&dstbuffer), core::mem::transmute_copy(&dstbuffersize), core::mem::transmute_copy(&dstsize)).into() } - unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute(&dsttext)).into() } - unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::RemoveTextReplacements(this).into() } - unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputTextReplacements(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetAssemblyOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetAssemblyOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetAssemblyOptions(this) { Ok(ok__) => { @@ -13250,31 +9554,19 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn AddAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::AddAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn RemoveAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::RemoveAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetExpressionSyntax(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExpressionSyntax(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetExpressionSyntax(this) { Ok(ok__) => { @@ -13284,24 +9576,15 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExpressionSyntax(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetExpressionSyntax(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetExpressionSyntax(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetExpressionSyntaxByName(this: *mut core::ffi::c_void, abbrevname: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetExpressionSyntaxByName(this: *mut core::ffi::c_void, abbrevname: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetExpressionSyntaxByName(this, core::mem::transmute(&abbrevname)).into() } - unsafe extern "system" fn GetNumberExpressionSyntaxes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetNumberExpressionSyntaxes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetNumberExpressionSyntaxes(this) { Ok(ok__) => { @@ -13311,17 +9594,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpressionSyntaxNames(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExpressionSyntaxNames(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetExpressionSyntaxNames(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetNumberEvents(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetNumberEvents(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetNumberEvents(this) { Ok(ok__) => { @@ -13331,17 +9608,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventIndexDescription(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetEventIndexDescription(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetEventIndexDescription(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&which), core::mem::transmute(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&descsize)).into() } - unsafe extern "system" fn GetCurrentEventIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetCurrentEventIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetCurrentEventIndex(this) { Ok(ok__) => { @@ -13351,10 +9622,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNextEventIndex(this: *mut core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetNextEventIndex(this: *mut core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::SetNextEventIndex(this, core::mem::transmute_copy(&relation), core::mem::transmute_copy(&value)) { Ok(ok__) => { @@ -13364,87 +9632,51 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetLogFileWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OpenLogFileWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn InputWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn InputWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::InputWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInputWide(this: *mut core::ffi::c_void, buffer: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ReturnInputWide(this: *mut core::ffi::c_void, buffer: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ReturnInputWide(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn OutputWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputWide(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaListWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputVaListWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputVaListWide(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutputWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ControlledOutputWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ControlledOutputWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ControlledOutputVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ControlledOutputVaListWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPromptWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputPromptWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputPromptWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputPromptVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputPromptVaListWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptTextWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetPromptTextWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetPromptTextWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn AssembleWide(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCWSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn AssembleWide(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCWSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::AssembleWide(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -13454,59 +9686,35 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisassembleWide(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PWSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn DisassembleWide(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PWSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::DisassembleWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetProcessorTypeNamesWide(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetProcessorTypeNamesWide(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetProcessorTypeNamesWide(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PWSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PWSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetTextMacroWide(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetTextMacroWide(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn EvaluateWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn EvaluateWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::EvaluateWide(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn ExecuteWide(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ExecuteWide(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ExecuteWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFileWide(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ExecuteCommandFileWide(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ExecuteCommandFileWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetBreakpointByIndex2(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex2(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetBreakpointByIndex2(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -13516,10 +9724,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById2(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetBreakpointById2(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetBreakpointById2(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -13529,10 +9734,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddBreakpoint2(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn AddBreakpoint2(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::AddBreakpoint2(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -13542,17 +9744,11 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint2(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn RemoveBreakpoint2(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::RemoveBreakpoint2(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtensionWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn AddExtensionWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::AddExtensionWide(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -13562,10 +9758,7 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExtensionByPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExtensionByPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl4_Impl::GetExtensionByPathWide(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -13575,199 +9768,115 @@ impl IDebugControl4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtensionWide(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCWSTR, arguments: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn CallExtensionWide(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCWSTR, arguments: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::CallExtensionWide(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunctionWide(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCWSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExtensionFunctionWide(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCWSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetExtensionFunctionWide(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetEventFilterTextWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetEventFilterTextWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetEventFilterTextWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetEventFilterCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetEventFilterCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetSpecificFilterArgumentWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetSpecificFilterArgumentWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetExceptionFilterSecondCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetExceptionFilterSecondCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetLastEventInformationWide(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetLastEventInformationWide(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetLastEventInformationWide(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } - unsafe extern "system" fn GetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, index: u32, srcbuffer: windows_core::PWSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PWSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, index: u32, srcbuffer: windows_core::PWSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PWSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetTextReplacementWide(this, core::mem::transmute(&srctext), core::mem::transmute_copy(&index), core::mem::transmute_copy(&srcbuffer), core::mem::transmute_copy(&srcbuffersize), core::mem::transmute_copy(&srcsize), core::mem::transmute_copy(&dstbuffer), core::mem::transmute_copy(&dstbuffersize), core::mem::transmute_copy(&dstsize)).into() } - unsafe extern "system" fn SetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, dsttext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, dsttext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetTextReplacementWide(this, core::mem::transmute(&srctext), core::mem::transmute(&dsttext)).into() } - unsafe extern "system" fn SetExpressionSyntaxByNameWide(this: *mut core::ffi::c_void, abbrevname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn SetExpressionSyntaxByNameWide(this: *mut core::ffi::c_void, abbrevname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::SetExpressionSyntaxByNameWide(this, core::mem::transmute(&abbrevname)).into() } - unsafe extern "system" fn GetExpressionSyntaxNamesWide(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetExpressionSyntaxNamesWide(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetExpressionSyntaxNamesWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEventIndexDescriptionWide(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCWSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetEventIndexDescriptionWide(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCWSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetEventIndexDescriptionWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&which), core::mem::transmute(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&descsize)).into() } - unsafe extern "system" fn GetLogFile2(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetLogFile2(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetLogFile2(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OpenLogFile2(this: *mut core::ffi::c_void, file: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OpenLogFile2(this: *mut core::ffi::c_void, file: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OpenLogFile2(this, core::mem::transmute(&file), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetLogFile2Wide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetLogFile2Wide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetLogFile2Wide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OpenLogFile2Wide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OpenLogFile2Wide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OpenLogFile2Wide(this, core::mem::transmute(&file), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetSystemVersionValues(this: *mut core::ffi::c_void, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: *mut u32, kdminor: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetSystemVersionValues(this: *mut core::ffi::c_void, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: *mut u32, kdminor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetSystemVersionValues(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&win32major), core::mem::transmute_copy(&win32minor), core::mem::transmute_copy(&kdmajor), core::mem::transmute_copy(&kdminor)).into() } - unsafe extern "system" fn GetSystemVersionString(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetSystemVersionString(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetSystemVersionString(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSystemVersionStringWide(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetSystemVersionStringWide(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetSystemVersionStringWide(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetContextStackTrace(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetContextStackTrace(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetContextStackTrace(this, core::mem::transmute_copy(&startcontext), core::mem::transmute_copy(&startcontextsize), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn OutputContextStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn OutputContextStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OutputContextStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetStoredEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: *mut core::ffi::c_void, contextsize: u32, contextused: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetStoredEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: *mut core::ffi::c_void, contextsize: u32, contextused: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetStoredEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize), core::mem::transmute_copy(&contextused), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused)).into() } - unsafe extern "system" fn GetManagedStatus(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetManagedStatus(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetManagedStatus(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&whichstring), core::mem::transmute_copy(&string), core::mem::transmute_copy(&stringsize), core::mem::transmute_copy(&stringneeded)).into() } - unsafe extern "system" fn GetManagedStatusWide(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PWSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn GetManagedStatusWide(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PWSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetManagedStatusWide(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&whichstring), core::mem::transmute_copy(&string), core::mem::transmute_copy(&stringsize), core::mem::transmute_copy(&stringneeded)).into() } - unsafe extern "system" fn ResetManagedStatus(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl4_Impl, - { + unsafe extern "system" fn ResetManagedStatus(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::ResetManagedStatus(this, core::mem::transmute_copy(&flags)).into() } @@ -13946,7 +10055,7 @@ impl IDebugControl4_Vtbl { } } #[cfg(feature = "Win32_System_Kernel")] -pub trait IDebugControl5_Impl: Sized { +pub trait IDebugControl5_Impl: Sized + windows_core::IUnknownImpl { fn GetInterrupt(&self) -> windows_core::Result<()>; fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; @@ -14123,28 +10232,16 @@ pub trait IDebugControl5_Impl: Sized { impl windows_core::RuntimeName for IDebugControl5 {} #[cfg(feature = "Win32_System_Kernel")] impl IDebugControl5_Vtbl { - pub const fn new() -> IDebugControl5_Vtbl - where - Identity: IDebugControl5_Impl, - { - unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + pub const fn new() -> IDebugControl5_Vtbl { + unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetInterrupt(this).into() } - unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetInterrupt(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetInterruptTimeout(this) { Ok(ok__) => { @@ -14154,38 +10251,23 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::CloseLogFile(this).into() } - unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetLogMask(this) { Ok(ok__) => { @@ -14195,94 +10277,55 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetLogMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::Input(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ReturnInput(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::Output(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputVaList(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ControlledOutput(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ControlledOutputVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputPrompt(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputPromptVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetPromptText(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputCurrentState(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputVersionInformation(this, core::mem::transmute_copy(&outputcontrol)).into() } - unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetNotifyEventHandle(this) { Ok(ok__) => { @@ -14292,17 +10335,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetNotifyEventHandle(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::Assemble(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -14312,17 +10349,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::Disassemble(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetDisassembleEffectiveOffset(this) { Ok(ok__) => { @@ -14332,10 +10363,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::OutputDisassembly(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -14345,17 +10373,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputDisassemblyLines(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&previouslines), core::mem::transmute_copy(&totallines), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offsetline), core::mem::transmute_copy(&startoffset), core::mem::transmute_copy(&endoffset), core::mem::transmute_copy(&lineoffsets)).into() } - unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetNearInstruction(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta)) { Ok(ok__) => { @@ -14365,17 +10387,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetStackTrace(this, core::mem::transmute_copy(&frameoffset), core::mem::transmute_copy(&stackoffset), core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetReturnOffset(this) { Ok(ok__) => { @@ -14385,24 +10401,15 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetDebuggeeType(this, core::mem::transmute_copy(&class), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetActualProcessorType(this) { Ok(ok__) => { @@ -14412,10 +10419,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetExecutingProcessorType(this) { Ok(ok__) => { @@ -14425,10 +10429,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetNumberPossibleExecutingProcessorTypes(this) { Ok(ok__) => { @@ -14438,17 +10439,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetPossibleExecutingProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetNumberProcessors(this) { Ok(ok__) => { @@ -14458,17 +10453,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetSystemVersion(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&major), core::mem::transmute_copy(&minor), core::mem::transmute_copy(&servicepackstring), core::mem::transmute_copy(&servicepackstringsize), core::mem::transmute_copy(&servicepackstringused), core::mem::transmute_copy(&servicepacknumber), core::mem::transmute_copy(&buildstring), core::mem::transmute_copy(&buildstringsize), core::mem::transmute_copy(&buildstringused)).into() } - unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetPageSize(this) { Ok(ok__) => { @@ -14478,24 +10467,15 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::IsPointer64Bit(this).into() } - unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ReadBugCheckData(this, core::mem::transmute_copy(&code), core::mem::transmute_copy(&arg1), core::mem::transmute_copy(&arg2), core::mem::transmute_copy(&arg3), core::mem::transmute_copy(&arg4)).into() } - unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetNumberSupportedProcessorTypes(this) { Ok(ok__) => { @@ -14505,24 +10485,15 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetSupportedProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetProcessorTypeNames(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetEffectiveProcessorType(this) { Ok(ok__) => { @@ -14532,17 +10503,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetEffectiveProcessorType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetExecutionStatus(this) { Ok(ok__) => { @@ -14552,17 +10517,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetExecutionStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetCodeLevel(this) { Ok(ok__) => { @@ -14572,17 +10531,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetCodeLevel(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetEngineOptions(this) { Ok(ok__) => { @@ -14592,59 +10545,35 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::AddEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::RemoveEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetRadix(this) { Ok(ok__) => { @@ -14654,52 +10583,31 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetRadix(this, core::mem::transmute_copy(&radix)).into() } - unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::Evaluate(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::CoerceValue(this, core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtype), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::CoerceValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtypes), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::Execute(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ExecuteCommandFile(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetNumberBreakpoints(this) { Ok(ok__) => { @@ -14709,10 +10617,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetBreakpointByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -14722,10 +10627,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetBreakpointById(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -14735,17 +10637,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetBreakpointParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::AddBreakpoint(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -14755,17 +10651,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::RemoveBreakpoint(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::AddExtension(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -14775,17 +10665,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::RemoveExtension(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetExtensionByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -14795,136 +10679,79 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::CallExtension(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetExtensionFunction(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetWindbgExtensionApis32(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetWindbgExtensionApis64(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetNumberEventFilters(this, core::mem::transmute_copy(&specificevents), core::mem::transmute_copy(&specificexceptions), core::mem::transmute_copy(&arbitraryexceptions)).into() } - unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetEventFilterText(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&codes), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::WaitForEvent(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetLastEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } - unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetCurrentTimeDate(this) { Ok(ok__) => { @@ -14934,10 +10761,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetCurrentSystemUpTime(this) { Ok(ok__) => { @@ -14947,10 +10771,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetDumpFormatFlags(this) { Ok(ok__) => { @@ -14960,10 +10781,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetNumberTextReplacements(this) { Ok(ok__) => { @@ -14973,38 +10791,23 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute_copy(&index), core::mem::transmute_copy(&srcbuffer), core::mem::transmute_copy(&srcbuffersize), core::mem::transmute_copy(&srcsize), core::mem::transmute_copy(&dstbuffer), core::mem::transmute_copy(&dstbuffersize), core::mem::transmute_copy(&dstsize)).into() } - unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute(&dsttext)).into() } - unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::RemoveTextReplacements(this).into() } - unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputTextReplacements(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetAssemblyOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetAssemblyOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetAssemblyOptions(this) { Ok(ok__) => { @@ -15014,31 +10817,19 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn AddAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::AddAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn RemoveAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::RemoveAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetExpressionSyntax(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExpressionSyntax(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetExpressionSyntax(this) { Ok(ok__) => { @@ -15048,24 +10839,15 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExpressionSyntax(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetExpressionSyntax(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetExpressionSyntax(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetExpressionSyntaxByName(this: *mut core::ffi::c_void, abbrevname: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetExpressionSyntaxByName(this: *mut core::ffi::c_void, abbrevname: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetExpressionSyntaxByName(this, core::mem::transmute(&abbrevname)).into() } - unsafe extern "system" fn GetNumberExpressionSyntaxes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetNumberExpressionSyntaxes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetNumberExpressionSyntaxes(this) { Ok(ok__) => { @@ -15075,17 +10857,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpressionSyntaxNames(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExpressionSyntaxNames(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetExpressionSyntaxNames(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetNumberEvents(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetNumberEvents(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetNumberEvents(this) { Ok(ok__) => { @@ -15095,17 +10871,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventIndexDescription(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetEventIndexDescription(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetEventIndexDescription(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&which), core::mem::transmute(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&descsize)).into() } - unsafe extern "system" fn GetCurrentEventIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetCurrentEventIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetCurrentEventIndex(this) { Ok(ok__) => { @@ -15115,10 +10885,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNextEventIndex(this: *mut core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetNextEventIndex(this: *mut core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::SetNextEventIndex(this, core::mem::transmute_copy(&relation), core::mem::transmute_copy(&value)) { Ok(ok__) => { @@ -15128,87 +10895,51 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetLogFileWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OpenLogFileWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn InputWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn InputWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::InputWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInputWide(this: *mut core::ffi::c_void, buffer: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ReturnInputWide(this: *mut core::ffi::c_void, buffer: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ReturnInputWide(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn OutputWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputWide(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaListWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputVaListWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputVaListWide(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutputWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ControlledOutputWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ControlledOutputWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ControlledOutputVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ControlledOutputVaListWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPromptWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputPromptWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputPromptWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputPromptVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputPromptVaListWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptTextWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetPromptTextWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetPromptTextWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn AssembleWide(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCWSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn AssembleWide(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCWSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::AssembleWide(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -15218,59 +10949,35 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisassembleWide(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PWSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn DisassembleWide(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PWSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::DisassembleWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetProcessorTypeNamesWide(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetProcessorTypeNamesWide(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetProcessorTypeNamesWide(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PWSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PWSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetTextMacroWide(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetTextMacroWide(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn EvaluateWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn EvaluateWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::EvaluateWide(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn ExecuteWide(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ExecuteWide(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ExecuteWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFileWide(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ExecuteCommandFileWide(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ExecuteCommandFileWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetBreakpointByIndex2(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex2(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetBreakpointByIndex2(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -15280,10 +10987,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById2(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetBreakpointById2(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetBreakpointById2(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -15293,10 +10997,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddBreakpoint2(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn AddBreakpoint2(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::AddBreakpoint2(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -15306,17 +11007,11 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint2(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn RemoveBreakpoint2(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::RemoveBreakpoint2(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtensionWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn AddExtensionWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::AddExtensionWide(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -15326,10 +11021,7 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExtensionByPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExtensionByPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetExtensionByPathWide(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -15339,234 +11031,135 @@ impl IDebugControl5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtensionWide(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCWSTR, arguments: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn CallExtensionWide(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCWSTR, arguments: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::CallExtensionWide(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunctionWide(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCWSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExtensionFunctionWide(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCWSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetExtensionFunctionWide(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetEventFilterTextWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetEventFilterTextWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetEventFilterTextWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetEventFilterCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetEventFilterCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetSpecificFilterArgumentWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetSpecificFilterArgumentWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetExceptionFilterSecondCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetExceptionFilterSecondCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetLastEventInformationWide(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetLastEventInformationWide(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetLastEventInformationWide(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } - unsafe extern "system" fn GetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, index: u32, srcbuffer: windows_core::PWSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PWSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, index: u32, srcbuffer: windows_core::PWSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PWSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetTextReplacementWide(this, core::mem::transmute(&srctext), core::mem::transmute_copy(&index), core::mem::transmute_copy(&srcbuffer), core::mem::transmute_copy(&srcbuffersize), core::mem::transmute_copy(&srcsize), core::mem::transmute_copy(&dstbuffer), core::mem::transmute_copy(&dstbuffersize), core::mem::transmute_copy(&dstsize)).into() } - unsafe extern "system" fn SetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, dsttext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, dsttext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetTextReplacementWide(this, core::mem::transmute(&srctext), core::mem::transmute(&dsttext)).into() } - unsafe extern "system" fn SetExpressionSyntaxByNameWide(this: *mut core::ffi::c_void, abbrevname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn SetExpressionSyntaxByNameWide(this: *mut core::ffi::c_void, abbrevname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::SetExpressionSyntaxByNameWide(this, core::mem::transmute(&abbrevname)).into() } - unsafe extern "system" fn GetExpressionSyntaxNamesWide(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetExpressionSyntaxNamesWide(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetExpressionSyntaxNamesWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEventIndexDescriptionWide(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCWSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetEventIndexDescriptionWide(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCWSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetEventIndexDescriptionWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&which), core::mem::transmute(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&descsize)).into() } - unsafe extern "system" fn GetLogFile2(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetLogFile2(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetLogFile2(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OpenLogFile2(this: *mut core::ffi::c_void, file: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OpenLogFile2(this: *mut core::ffi::c_void, file: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OpenLogFile2(this, core::mem::transmute(&file), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetLogFile2Wide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetLogFile2Wide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetLogFile2Wide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OpenLogFile2Wide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OpenLogFile2Wide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OpenLogFile2Wide(this, core::mem::transmute(&file), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetSystemVersionValues(this: *mut core::ffi::c_void, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: *mut u32, kdminor: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetSystemVersionValues(this: *mut core::ffi::c_void, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: *mut u32, kdminor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetSystemVersionValues(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&win32major), core::mem::transmute_copy(&win32minor), core::mem::transmute_copy(&kdmajor), core::mem::transmute_copy(&kdminor)).into() } - unsafe extern "system" fn GetSystemVersionString(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetSystemVersionString(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetSystemVersionString(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSystemVersionStringWide(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetSystemVersionStringWide(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetSystemVersionStringWide(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetContextStackTrace(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetContextStackTrace(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetContextStackTrace(this, core::mem::transmute_copy(&startcontext), core::mem::transmute_copy(&startcontextsize), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn OutputContextStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputContextStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputContextStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetStoredEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: *mut core::ffi::c_void, contextsize: u32, contextused: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetStoredEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: *mut core::ffi::c_void, contextsize: u32, contextused: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetStoredEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize), core::mem::transmute_copy(&contextused), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused)).into() } - unsafe extern "system" fn GetManagedStatus(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetManagedStatus(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetManagedStatus(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&whichstring), core::mem::transmute_copy(&string), core::mem::transmute_copy(&stringsize), core::mem::transmute_copy(&stringneeded)).into() } - unsafe extern "system" fn GetManagedStatusWide(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PWSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetManagedStatusWide(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PWSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetManagedStatusWide(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&whichstring), core::mem::transmute_copy(&string), core::mem::transmute_copy(&stringsize), core::mem::transmute_copy(&stringneeded)).into() } - unsafe extern "system" fn ResetManagedStatus(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn ResetManagedStatus(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::ResetManagedStatus(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetStackTraceEx(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetStackTraceEx(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetStackTraceEx(this, core::mem::transmute_copy(&frameoffset), core::mem::transmute_copy(&stackoffset), core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn OutputStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputStackTraceEx(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetContextStackTraceEx(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetContextStackTraceEx(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetContextStackTraceEx(this, core::mem::transmute_copy(&startcontext), core::mem::transmute_copy(&startcontextsize), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn OutputContextStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn OutputContextStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OutputContextStackTraceEx(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetBreakpointByGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl5_Impl, - { + unsafe extern "system" fn GetBreakpointByGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl5_Impl::GetBreakpointByGuid(this, core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -15756,7 +11349,7 @@ impl IDebugControl5_Vtbl { } } #[cfg(feature = "Win32_System_Kernel")] -pub trait IDebugControl6_Impl: Sized { +pub trait IDebugControl6_Impl: Sized + windows_core::IUnknownImpl { fn GetInterrupt(&self) -> windows_core::Result<()>; fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; @@ -15935,28 +11528,16 @@ pub trait IDebugControl6_Impl: Sized { impl windows_core::RuntimeName for IDebugControl6 {} #[cfg(feature = "Win32_System_Kernel")] impl IDebugControl6_Vtbl { - pub const fn new() -> IDebugControl6_Vtbl - where - Identity: IDebugControl6_Impl, - { - unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + pub const fn new() -> IDebugControl6_Vtbl { + unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetInterrupt(this).into() } - unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetInterrupt(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetInterruptTimeout(this) { Ok(ok__) => { @@ -15966,38 +11547,23 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::CloseLogFile(this).into() } - unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetLogMask(this) { Ok(ok__) => { @@ -16007,94 +11573,55 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetLogMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::Input(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ReturnInput(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::Output(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputVaList(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ControlledOutput(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ControlledOutputVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputPrompt(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputPromptVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetPromptText(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputCurrentState(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputVersionInformation(this, core::mem::transmute_copy(&outputcontrol)).into() } - unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetNotifyEventHandle(this) { Ok(ok__) => { @@ -16104,17 +11631,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetNotifyEventHandle(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::Assemble(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -16124,17 +11645,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::Disassemble(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetDisassembleEffectiveOffset(this) { Ok(ok__) => { @@ -16144,10 +11659,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::OutputDisassembly(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -16157,17 +11669,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputDisassemblyLines(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&previouslines), core::mem::transmute_copy(&totallines), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offsetline), core::mem::transmute_copy(&startoffset), core::mem::transmute_copy(&endoffset), core::mem::transmute_copy(&lineoffsets)).into() } - unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetNearInstruction(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta)) { Ok(ok__) => { @@ -16177,17 +11683,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetStackTrace(this, core::mem::transmute_copy(&frameoffset), core::mem::transmute_copy(&stackoffset), core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetReturnOffset(this) { Ok(ok__) => { @@ -16197,24 +11697,15 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetDebuggeeType(this, core::mem::transmute_copy(&class), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetActualProcessorType(this) { Ok(ok__) => { @@ -16224,10 +11715,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetExecutingProcessorType(this) { Ok(ok__) => { @@ -16237,10 +11725,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetNumberPossibleExecutingProcessorTypes(this) { Ok(ok__) => { @@ -16250,17 +11735,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetPossibleExecutingProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetNumberProcessors(this) { Ok(ok__) => { @@ -16270,17 +11749,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetSystemVersion(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&major), core::mem::transmute_copy(&minor), core::mem::transmute_copy(&servicepackstring), core::mem::transmute_copy(&servicepackstringsize), core::mem::transmute_copy(&servicepackstringused), core::mem::transmute_copy(&servicepacknumber), core::mem::transmute_copy(&buildstring), core::mem::transmute_copy(&buildstringsize), core::mem::transmute_copy(&buildstringused)).into() } - unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetPageSize(this) { Ok(ok__) => { @@ -16290,24 +11763,15 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::IsPointer64Bit(this).into() } - unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ReadBugCheckData(this, core::mem::transmute_copy(&code), core::mem::transmute_copy(&arg1), core::mem::transmute_copy(&arg2), core::mem::transmute_copy(&arg3), core::mem::transmute_copy(&arg4)).into() } - unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetNumberSupportedProcessorTypes(this) { Ok(ok__) => { @@ -16317,24 +11781,15 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetSupportedProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetProcessorTypeNames(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetEffectiveProcessorType(this) { Ok(ok__) => { @@ -16344,17 +11799,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetEffectiveProcessorType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetExecutionStatus(this) { Ok(ok__) => { @@ -16364,17 +11813,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetExecutionStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetCodeLevel(this) { Ok(ok__) => { @@ -16384,17 +11827,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetCodeLevel(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetEngineOptions(this) { Ok(ok__) => { @@ -16404,59 +11841,35 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::AddEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::RemoveEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetRadix(this) { Ok(ok__) => { @@ -16466,52 +11879,31 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetRadix(this, core::mem::transmute_copy(&radix)).into() } - unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::Evaluate(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::CoerceValue(this, core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtype), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::CoerceValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtypes), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::Execute(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ExecuteCommandFile(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetNumberBreakpoints(this) { Ok(ok__) => { @@ -16521,10 +11913,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetBreakpointByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -16534,10 +11923,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetBreakpointById(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -16547,17 +11933,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetBreakpointParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::AddBreakpoint(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -16567,17 +11947,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::RemoveBreakpoint(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::AddExtension(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -16587,17 +11961,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::RemoveExtension(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetExtensionByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -16607,136 +11975,79 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::CallExtension(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetExtensionFunction(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetWindbgExtensionApis32(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetWindbgExtensionApis64(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetNumberEventFilters(this, core::mem::transmute_copy(&specificevents), core::mem::transmute_copy(&specificexceptions), core::mem::transmute_copy(&arbitraryexceptions)).into() } - unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetEventFilterText(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&codes), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::WaitForEvent(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetLastEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } - unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetCurrentTimeDate(this) { Ok(ok__) => { @@ -16746,10 +12057,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetCurrentSystemUpTime(this) { Ok(ok__) => { @@ -16759,10 +12067,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetDumpFormatFlags(this) { Ok(ok__) => { @@ -16772,10 +12077,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetNumberTextReplacements(this) { Ok(ok__) => { @@ -16785,38 +12087,23 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute_copy(&index), core::mem::transmute_copy(&srcbuffer), core::mem::transmute_copy(&srcbuffersize), core::mem::transmute_copy(&srcsize), core::mem::transmute_copy(&dstbuffer), core::mem::transmute_copy(&dstbuffersize), core::mem::transmute_copy(&dstsize)).into() } - unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute(&dsttext)).into() } - unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::RemoveTextReplacements(this).into() } - unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputTextReplacements(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetAssemblyOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetAssemblyOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetAssemblyOptions(this) { Ok(ok__) => { @@ -16826,31 +12113,19 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn AddAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::AddAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn RemoveAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::RemoveAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetExpressionSyntax(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExpressionSyntax(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetExpressionSyntax(this) { Ok(ok__) => { @@ -16860,24 +12135,15 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExpressionSyntax(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetExpressionSyntax(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetExpressionSyntax(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetExpressionSyntaxByName(this: *mut core::ffi::c_void, abbrevname: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetExpressionSyntaxByName(this: *mut core::ffi::c_void, abbrevname: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetExpressionSyntaxByName(this, core::mem::transmute(&abbrevname)).into() } - unsafe extern "system" fn GetNumberExpressionSyntaxes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetNumberExpressionSyntaxes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetNumberExpressionSyntaxes(this) { Ok(ok__) => { @@ -16887,17 +12153,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpressionSyntaxNames(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExpressionSyntaxNames(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetExpressionSyntaxNames(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetNumberEvents(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetNumberEvents(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetNumberEvents(this) { Ok(ok__) => { @@ -16907,17 +12167,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventIndexDescription(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetEventIndexDescription(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetEventIndexDescription(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&which), core::mem::transmute(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&descsize)).into() } - unsafe extern "system" fn GetCurrentEventIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetCurrentEventIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetCurrentEventIndex(this) { Ok(ok__) => { @@ -16927,10 +12181,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNextEventIndex(this: *mut core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetNextEventIndex(this: *mut core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::SetNextEventIndex(this, core::mem::transmute_copy(&relation), core::mem::transmute_copy(&value)) { Ok(ok__) => { @@ -16940,87 +12191,51 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetLogFileWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OpenLogFileWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn InputWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn InputWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::InputWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInputWide(this: *mut core::ffi::c_void, buffer: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ReturnInputWide(this: *mut core::ffi::c_void, buffer: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ReturnInputWide(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn OutputWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputWide(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaListWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputVaListWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputVaListWide(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutputWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ControlledOutputWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ControlledOutputWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ControlledOutputVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ControlledOutputVaListWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPromptWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputPromptWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputPromptWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputPromptVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputPromptVaListWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptTextWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetPromptTextWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetPromptTextWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn AssembleWide(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCWSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn AssembleWide(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCWSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::AssembleWide(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -17030,59 +12245,35 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisassembleWide(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PWSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn DisassembleWide(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PWSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::DisassembleWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetProcessorTypeNamesWide(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetProcessorTypeNamesWide(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetProcessorTypeNamesWide(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PWSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PWSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetTextMacroWide(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetTextMacroWide(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn EvaluateWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn EvaluateWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::EvaluateWide(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn ExecuteWide(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ExecuteWide(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ExecuteWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFileWide(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ExecuteCommandFileWide(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ExecuteCommandFileWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetBreakpointByIndex2(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex2(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetBreakpointByIndex2(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -17092,10 +12283,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById2(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetBreakpointById2(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetBreakpointById2(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -17105,10 +12293,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddBreakpoint2(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn AddBreakpoint2(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::AddBreakpoint2(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -17118,17 +12303,11 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint2(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn RemoveBreakpoint2(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::RemoveBreakpoint2(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtensionWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn AddExtensionWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::AddExtensionWide(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -17138,10 +12317,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExtensionByPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExtensionByPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetExtensionByPathWide(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -17151,234 +12327,135 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtensionWide(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCWSTR, arguments: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn CallExtensionWide(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCWSTR, arguments: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::CallExtensionWide(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunctionWide(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCWSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExtensionFunctionWide(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCWSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetExtensionFunctionWide(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetEventFilterTextWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetEventFilterTextWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetEventFilterTextWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetEventFilterCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetEventFilterCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetSpecificFilterArgumentWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetSpecificFilterArgumentWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetExceptionFilterSecondCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetExceptionFilterSecondCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetLastEventInformationWide(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetLastEventInformationWide(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetLastEventInformationWide(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } - unsafe extern "system" fn GetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, index: u32, srcbuffer: windows_core::PWSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PWSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, index: u32, srcbuffer: windows_core::PWSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PWSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetTextReplacementWide(this, core::mem::transmute(&srctext), core::mem::transmute_copy(&index), core::mem::transmute_copy(&srcbuffer), core::mem::transmute_copy(&srcbuffersize), core::mem::transmute_copy(&srcsize), core::mem::transmute_copy(&dstbuffer), core::mem::transmute_copy(&dstbuffersize), core::mem::transmute_copy(&dstsize)).into() } - unsafe extern "system" fn SetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, dsttext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, dsttext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetTextReplacementWide(this, core::mem::transmute(&srctext), core::mem::transmute(&dsttext)).into() } - unsafe extern "system" fn SetExpressionSyntaxByNameWide(this: *mut core::ffi::c_void, abbrevname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn SetExpressionSyntaxByNameWide(this: *mut core::ffi::c_void, abbrevname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::SetExpressionSyntaxByNameWide(this, core::mem::transmute(&abbrevname)).into() } - unsafe extern "system" fn GetExpressionSyntaxNamesWide(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExpressionSyntaxNamesWide(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetExpressionSyntaxNamesWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEventIndexDescriptionWide(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCWSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetEventIndexDescriptionWide(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCWSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetEventIndexDescriptionWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&which), core::mem::transmute(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&descsize)).into() } - unsafe extern "system" fn GetLogFile2(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetLogFile2(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetLogFile2(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OpenLogFile2(this: *mut core::ffi::c_void, file: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OpenLogFile2(this: *mut core::ffi::c_void, file: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OpenLogFile2(this, core::mem::transmute(&file), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetLogFile2Wide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetLogFile2Wide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetLogFile2Wide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OpenLogFile2Wide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OpenLogFile2Wide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OpenLogFile2Wide(this, core::mem::transmute(&file), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetSystemVersionValues(this: *mut core::ffi::c_void, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: *mut u32, kdminor: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetSystemVersionValues(this: *mut core::ffi::c_void, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: *mut u32, kdminor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetSystemVersionValues(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&win32major), core::mem::transmute_copy(&win32minor), core::mem::transmute_copy(&kdmajor), core::mem::transmute_copy(&kdminor)).into() } - unsafe extern "system" fn GetSystemVersionString(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetSystemVersionString(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetSystemVersionString(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSystemVersionStringWide(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetSystemVersionStringWide(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetSystemVersionStringWide(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetContextStackTrace(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetContextStackTrace(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetContextStackTrace(this, core::mem::transmute_copy(&startcontext), core::mem::transmute_copy(&startcontextsize), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn OutputContextStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputContextStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputContextStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetStoredEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: *mut core::ffi::c_void, contextsize: u32, contextused: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetStoredEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: *mut core::ffi::c_void, contextsize: u32, contextused: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetStoredEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize), core::mem::transmute_copy(&contextused), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused)).into() } - unsafe extern "system" fn GetManagedStatus(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetManagedStatus(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetManagedStatus(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&whichstring), core::mem::transmute_copy(&string), core::mem::transmute_copy(&stringsize), core::mem::transmute_copy(&stringneeded)).into() } - unsafe extern "system" fn GetManagedStatusWide(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PWSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetManagedStatusWide(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PWSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetManagedStatusWide(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&whichstring), core::mem::transmute_copy(&string), core::mem::transmute_copy(&stringsize), core::mem::transmute_copy(&stringneeded)).into() } - unsafe extern "system" fn ResetManagedStatus(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn ResetManagedStatus(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::ResetManagedStatus(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetStackTraceEx(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetStackTraceEx(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetStackTraceEx(this, core::mem::transmute_copy(&frameoffset), core::mem::transmute_copy(&stackoffset), core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn OutputStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputStackTraceEx(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetContextStackTraceEx(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetContextStackTraceEx(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetContextStackTraceEx(this, core::mem::transmute_copy(&startcontext), core::mem::transmute_copy(&startcontextsize), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn OutputContextStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn OutputContextStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OutputContextStackTraceEx(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetBreakpointByGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetBreakpointByGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetBreakpointByGuid(this, core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -17388,10 +12465,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutionStatusEx(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetExecutionStatusEx(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl6_Impl::GetExecutionStatusEx(this) { Ok(ok__) => { @@ -17401,10 +12475,7 @@ impl IDebugControl6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSynchronizationStatus(this: *mut core::ffi::c_void, sendsattempted: *mut u32, secondssincelastresponse: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl6_Impl, - { + unsafe extern "system" fn GetSynchronizationStatus(this: *mut core::ffi::c_void, sendsattempted: *mut u32, secondssincelastresponse: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetSynchronizationStatus(this, core::mem::transmute_copy(&sendsattempted), core::mem::transmute_copy(&secondssincelastresponse)).into() } @@ -17590,7 +12661,7 @@ impl IDebugControl6_Vtbl { } } #[cfg(feature = "Win32_System_Kernel")] -pub trait IDebugControl7_Impl: Sized { +pub trait IDebugControl7_Impl: Sized + windows_core::IUnknownImpl { fn GetInterrupt(&self) -> windows_core::Result<()>; fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; @@ -17770,28 +12841,16 @@ pub trait IDebugControl7_Impl: Sized { impl windows_core::RuntimeName for IDebugControl7 {} #[cfg(feature = "Win32_System_Kernel")] impl IDebugControl7_Vtbl { - pub const fn new() -> IDebugControl7_Vtbl - where - Identity: IDebugControl7_Impl, - { - unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + pub const fn new() -> IDebugControl7_Vtbl { + unsafe extern "system" fn GetInterrupt(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetInterrupt(this).into() } - unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetInterrupt(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetInterrupt(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetInterruptTimeout(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetInterruptTimeout(this) { Ok(ok__) => { @@ -17801,38 +12860,23 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetInterruptTimeout(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn CloseLogFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::CloseLogFile(this).into() } - unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetLogMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetLogMask(this) { Ok(ok__) => { @@ -17842,94 +12886,55 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetLogMask(this: *mut core::ffi::c_void, mask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetLogMask(this, core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn Input(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::Input(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ReturnInput(this: *mut core::ffi::c_void, buffer: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ReturnInput(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::Output(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputVaList(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputVaList(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ControlledOutput(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ControlledOutput(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ControlledOutputVaList(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ControlledOutputVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputPrompt(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputPrompt(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputPromptVaList(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputPromptVaList(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetPromptText(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetPromptText(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputCurrentState(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputCurrentState(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputVersionInformation(this: *mut core::ffi::c_void, outputcontrol: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputVersionInformation(this, core::mem::transmute_copy(&outputcontrol)).into() } - unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetNotifyEventHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetNotifyEventHandle(this) { Ok(ok__) => { @@ -17939,17 +12944,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetNotifyEventHandle(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetNotifyEventHandle(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn Assemble(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::Assemble(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -17959,17 +12958,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn Disassemble(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::Disassemble(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetDisassembleEffectiveOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetDisassembleEffectiveOffset(this) { Ok(ok__) => { @@ -17979,10 +12972,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputDisassembly(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, flags: u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::OutputDisassembly(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -17992,17 +12982,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputDisassemblyLines(this: *mut core::ffi::c_void, outputcontrol: u32, previouslines: u32, totallines: u32, offset: u64, flags: u32, offsetline: *mut u32, startoffset: *mut u64, endoffset: *mut u64, lineoffsets: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputDisassemblyLines(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&previouslines), core::mem::transmute_copy(&totallines), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offsetline), core::mem::transmute_copy(&startoffset), core::mem::transmute_copy(&endoffset), core::mem::transmute_copy(&lineoffsets)).into() } - unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetNearInstruction(this: *mut core::ffi::c_void, offset: u64, delta: i32, nearoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetNearInstruction(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta)) { Ok(ok__) => { @@ -18012,17 +12996,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetStackTrace(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetStackTrace(this, core::mem::transmute_copy(&frameoffset), core::mem::transmute_copy(&stackoffset), core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetReturnOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetReturnOffset(this) { Ok(ok__) => { @@ -18032,24 +13010,15 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetDebuggeeType(this: *mut core::ffi::c_void, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetDebuggeeType(this, core::mem::transmute_copy(&class), core::mem::transmute_copy(&qualifier)).into() } - unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetActualProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetActualProcessorType(this) { Ok(ok__) => { @@ -18059,10 +13028,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExecutingProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetExecutingProcessorType(this) { Ok(ok__) => { @@ -18072,10 +13038,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetNumberPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetNumberPossibleExecutingProcessorTypes(this) { Ok(ok__) => { @@ -18085,17 +13048,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetPossibleExecutingProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetPossibleExecutingProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetNumberProcessors(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetNumberProcessors(this) { Ok(ok__) => { @@ -18105,17 +13062,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetSystemVersion(this: *mut core::ffi::c_void, platformid: *mut u32, major: *mut u32, minor: *mut u32, servicepackstring: windows_core::PSTR, servicepackstringsize: u32, servicepackstringused: *mut u32, servicepacknumber: *mut u32, buildstring: windows_core::PSTR, buildstringsize: u32, buildstringused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetSystemVersion(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&major), core::mem::transmute_copy(&minor), core::mem::transmute_copy(&servicepackstring), core::mem::transmute_copy(&servicepackstringsize), core::mem::transmute_copy(&servicepackstringused), core::mem::transmute_copy(&servicepacknumber), core::mem::transmute_copy(&buildstring), core::mem::transmute_copy(&buildstringsize), core::mem::transmute_copy(&buildstringused)).into() } - unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetPageSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetPageSize(this) { Ok(ok__) => { @@ -18125,24 +13076,15 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn IsPointer64Bit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::IsPointer64Bit(this).into() } - unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ReadBugCheckData(this: *mut core::ffi::c_void, code: *mut u32, arg1: *mut u64, arg2: *mut u64, arg3: *mut u64, arg4: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ReadBugCheckData(this, core::mem::transmute_copy(&code), core::mem::transmute_copy(&arg1), core::mem::transmute_copy(&arg2), core::mem::transmute_copy(&arg3), core::mem::transmute_copy(&arg4)).into() } - unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetNumberSupportedProcessorTypes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetNumberSupportedProcessorTypes(this) { Ok(ok__) => { @@ -18152,24 +13094,15 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetSupportedProcessorTypes(this: *mut core::ffi::c_void, start: u32, count: u32, types: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetSupportedProcessorTypes(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&types)).into() } - unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetProcessorTypeNames(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetProcessorTypeNames(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetEffectiveProcessorType(this) { Ok(ok__) => { @@ -18179,17 +13112,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetEffectiveProcessorType(this: *mut core::ffi::c_void, r#type: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetEffectiveProcessorType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExecutionStatus(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetExecutionStatus(this) { Ok(ok__) => { @@ -18199,17 +13126,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetExecutionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetExecutionStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetCodeLevel(this: *mut core::ffi::c_void, level: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetCodeLevel(this) { Ok(ok__) => { @@ -18219,17 +13140,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetCodeLevel(this: *mut core::ffi::c_void, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetCodeLevel(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetEngineOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetEngineOptions(this) { Ok(ok__) => { @@ -18239,59 +13154,35 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn AddEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::AddEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn RemoveEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::RemoveEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetEngineOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetEngineOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: *mut u32, breaklevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetSystemErrorControl(this: *mut core::ffi::c_void, outputlevel: u32, breaklevel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetSystemErrorControl(this, core::mem::transmute_copy(&outputlevel), core::mem::transmute_copy(&breaklevel)).into() } - unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetTextMacro(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetTextMacro(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetTextMacro(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetRadix(this: *mut core::ffi::c_void, radix: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetRadix(this) { Ok(ok__) => { @@ -18301,52 +13192,31 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetRadix(this: *mut core::ffi::c_void, radix: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetRadix(this, core::mem::transmute_copy(&radix)).into() } - unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn Evaluate(this: *mut core::ffi::c_void, expression: windows_core::PCSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::Evaluate(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn CoerceValue(this: *mut core::ffi::c_void, r#in: *const DEBUG_VALUE, outtype: u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::CoerceValue(this, core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtype), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn CoerceValues(this: *mut core::ffi::c_void, count: u32, r#in: *const DEBUG_VALUE, outtypes: *const u32, out: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::CoerceValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&r#in), core::mem::transmute_copy(&outtypes), core::mem::transmute_copy(&out)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::Execute(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ExecuteCommandFile(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ExecuteCommandFile(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetNumberBreakpoints(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetNumberBreakpoints(this) { Ok(ok__) => { @@ -18356,10 +13226,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetBreakpointByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -18369,10 +13236,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetBreakpointById(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetBreakpointById(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -18382,17 +13246,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetBreakpointParameters(this: *mut core::ffi::c_void, count: u32, ids: *const u32, start: u32, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetBreakpointParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn AddBreakpoint(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::AddBreakpoint(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -18402,17 +13260,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn RemoveBreakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::RemoveBreakpoint(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, path: windows_core::PCSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::AddExtension(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -18422,17 +13274,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn RemoveExtension(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::RemoveExtension(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExtensionByPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetExtensionByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -18442,136 +13288,79 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn CallExtension(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCSTR, arguments: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::CallExtension(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExtensionFunction(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetExtensionFunction(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis32(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetWindbgExtensionApis32(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetWindbgExtensionApis64(this: *mut core::ffi::c_void, api: *mut WINDBG_EXTENSION_APIS64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetWindbgExtensionApis64(this, core::mem::transmute_copy(&api)).into() } - unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetNumberEventFilters(this: *mut core::ffi::c_void, specificevents: *mut u32, specificexceptions: *mut u32, arbitraryexceptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetNumberEventFilters(this, core::mem::transmute_copy(&specificevents), core::mem::transmute_copy(&specificexceptions), core::mem::transmute_copy(&arbitraryexceptions)).into() } - unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetEventFilterText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetEventFilterText(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetEventFilterCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetEventFilterCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetSpecificFilterParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *const DEBUG_SPECIFIC_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetSpecificFilterParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgument(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetSpecificFilterArgument(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, codes: *const u32, start: u32, params: *mut DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&codes), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetExceptionFilterParameters(this: *mut core::ffi::c_void, count: u32, params: *const DEBUG_EXCEPTION_FILTER_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetExceptionFilterParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommand(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetExceptionFilterSecondCommand(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn WaitForEvent(this: *mut core::ffi::c_void, flags: u32, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::WaitForEvent(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetLastEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetLastEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } - unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetCurrentTimeDate(this: *mut core::ffi::c_void, timedate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetCurrentTimeDate(this) { Ok(ok__) => { @@ -18581,10 +13370,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetCurrentSystemUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetCurrentSystemUpTime(this) { Ok(ok__) => { @@ -18594,10 +13380,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetDumpFormatFlags(this: *mut core::ffi::c_void, formatflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetDumpFormatFlags(this) { Ok(ok__) => { @@ -18607,10 +13390,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetNumberTextReplacements(this: *mut core::ffi::c_void, numrepl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetNumberTextReplacements(this) { Ok(ok__) => { @@ -18620,38 +13400,23 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, index: u32, srcbuffer: windows_core::PSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute_copy(&index), core::mem::transmute_copy(&srcbuffer), core::mem::transmute_copy(&srcbuffersize), core::mem::transmute_copy(&srcsize), core::mem::transmute_copy(&dstbuffer), core::mem::transmute_copy(&dstbuffersize), core::mem::transmute_copy(&dstsize)).into() } - unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetTextReplacement(this: *mut core::ffi::c_void, srctext: windows_core::PCSTR, dsttext: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetTextReplacement(this, core::mem::transmute(&srctext), core::mem::transmute(&dsttext)).into() } - unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn RemoveTextReplacements(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::RemoveTextReplacements(this).into() } - unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputTextReplacements(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputTextReplacements(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetAssemblyOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetAssemblyOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetAssemblyOptions(this) { Ok(ok__) => { @@ -18661,31 +13426,19 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn AddAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::AddAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn RemoveAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::RemoveAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetAssemblyOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetAssemblyOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetExpressionSyntax(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExpressionSyntax(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetExpressionSyntax(this) { Ok(ok__) => { @@ -18695,24 +13448,15 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExpressionSyntax(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetExpressionSyntax(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetExpressionSyntax(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetExpressionSyntaxByName(this: *mut core::ffi::c_void, abbrevname: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetExpressionSyntaxByName(this: *mut core::ffi::c_void, abbrevname: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetExpressionSyntaxByName(this, core::mem::transmute(&abbrevname)).into() } - unsafe extern "system" fn GetNumberExpressionSyntaxes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetNumberExpressionSyntaxes(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetNumberExpressionSyntaxes(this) { Ok(ok__) => { @@ -18722,17 +13466,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpressionSyntaxNames(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExpressionSyntaxNames(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetExpressionSyntaxNames(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetNumberEvents(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetNumberEvents(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetNumberEvents(this) { Ok(ok__) => { @@ -18742,17 +13480,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventIndexDescription(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetEventIndexDescription(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetEventIndexDescription(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&which), core::mem::transmute(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&descsize)).into() } - unsafe extern "system" fn GetCurrentEventIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetCurrentEventIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetCurrentEventIndex(this) { Ok(ok__) => { @@ -18762,10 +13494,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNextEventIndex(this: *mut core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetNextEventIndex(this: *mut core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::SetNextEventIndex(this, core::mem::transmute_copy(&relation), core::mem::transmute_copy(&value)) { Ok(ok__) => { @@ -18775,87 +13504,51 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetLogFileWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OpenLogFileWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn InputWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn InputWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::InputWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&inputsize)).into() } - unsafe extern "system" fn ReturnInputWide(this: *mut core::ffi::c_void, buffer: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ReturnInputWide(this: *mut core::ffi::c_void, buffer: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ReturnInputWide(this, core::mem::transmute(&buffer)).into() } - unsafe extern "system" fn OutputWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputWide(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputVaListWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputVaListWide(this: *mut core::ffi::c_void, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputVaListWide(this, core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn ControlledOutputWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ControlledOutputWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ControlledOutputWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format)).into() } - unsafe extern "system" fn ControlledOutputVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ControlledOutputVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, mask: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ControlledOutputVaListWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&mask), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn OutputPromptWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputPromptWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputPromptWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format)).into() } - unsafe extern "system" fn OutputPromptVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputPromptVaListWide(this: *mut core::ffi::c_void, outputcontrol: u32, format: windows_core::PCWSTR, args: *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputPromptVaListWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&format), core::mem::transmute_copy(&args)).into() } - unsafe extern "system" fn GetPromptTextWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetPromptTextWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetPromptTextWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn AssembleWide(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCWSTR, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn AssembleWide(this: *mut core::ffi::c_void, offset: u64, instr: windows_core::PCWSTR, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::AssembleWide(this, core::mem::transmute_copy(&offset), core::mem::transmute(&instr)) { Ok(ok__) => { @@ -18865,59 +13558,35 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisassembleWide(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PWSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn DisassembleWide(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: windows_core::PWSTR, buffersize: u32, disassemblysize: *mut u32, endoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::DisassembleWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&disassemblysize), core::mem::transmute_copy(&endoffset)).into() } - unsafe extern "system" fn GetProcessorTypeNamesWide(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetProcessorTypeNamesWide(this: *mut core::ffi::c_void, r#type: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetProcessorTypeNamesWide(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PWSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, buffer: windows_core::PWSTR, buffersize: u32, macrosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetTextMacroWide(this, core::mem::transmute_copy(&slot), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(¯osize)).into() } - unsafe extern "system" fn SetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetTextMacroWide(this: *mut core::ffi::c_void, slot: u32, r#macro: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetTextMacroWide(this, core::mem::transmute_copy(&slot), core::mem::transmute(&r#macro)).into() } - unsafe extern "system" fn EvaluateWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn EvaluateWide(this: *mut core::ffi::c_void, expression: windows_core::PCWSTR, desiredtype: u32, value: *mut DEBUG_VALUE, remainderindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::EvaluateWide(this, core::mem::transmute(&expression), core::mem::transmute_copy(&desiredtype), core::mem::transmute_copy(&value), core::mem::transmute_copy(&remainderindex)).into() } - unsafe extern "system" fn ExecuteWide(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ExecuteWide(this: *mut core::ffi::c_void, outputcontrol: u32, command: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ExecuteWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&command), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ExecuteCommandFileWide(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ExecuteCommandFileWide(this: *mut core::ffi::c_void, outputcontrol: u32, commandfile: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ExecuteCommandFileWide(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute(&commandfile), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetBreakpointByIndex2(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetBreakpointByIndex2(this: *mut core::ffi::c_void, index: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetBreakpointByIndex2(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -18927,10 +13596,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBreakpointById2(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetBreakpointById2(this: *mut core::ffi::c_void, id: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetBreakpointById2(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -18940,10 +13606,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddBreakpoint2(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn AddBreakpoint2(this: *mut core::ffi::c_void, r#type: u32, desiredid: u32, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::AddBreakpoint2(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&desiredid)) { Ok(ok__) => { @@ -18953,17 +13616,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBreakpoint2(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn RemoveBreakpoint2(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::RemoveBreakpoint2(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn AddExtensionWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn AddExtensionWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, flags: u32, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::AddExtensionWide(this, core::mem::transmute(&path), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -18973,10 +13630,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExtensionByPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExtensionByPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetExtensionByPathWide(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -18986,234 +13640,135 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CallExtensionWide(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCWSTR, arguments: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn CallExtensionWide(this: *mut core::ffi::c_void, handle: u64, function: windows_core::PCWSTR, arguments: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::CallExtensionWide(this, core::mem::transmute_copy(&handle), core::mem::transmute(&function), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn GetExtensionFunctionWide(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCWSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExtensionFunctionWide(this: *mut core::ffi::c_void, handle: u64, funcname: windows_core::PCWSTR, function: *mut super::super::super::super::Foundation::FARPROC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetExtensionFunctionWide(this, core::mem::transmute_copy(&handle), core::mem::transmute(&funcname), core::mem::transmute_copy(&function)).into() } - unsafe extern "system" fn GetEventFilterTextWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetEventFilterTextWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, textsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetEventFilterTextWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&textsize)).into() } - unsafe extern "system" fn GetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetEventFilterCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetEventFilterCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetEventFilterCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, argumentsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetSpecificFilterArgumentWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&argumentsize)).into() } - unsafe extern "system" fn SetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetSpecificFilterArgumentWide(this: *mut core::ffi::c_void, index: u32, argument: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetSpecificFilterArgumentWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&argument)).into() } - unsafe extern "system" fn GetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, commandsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetExceptionFilterSecondCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&commandsize)).into() } - unsafe extern "system" fn SetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetExceptionFilterSecondCommandWide(this: *mut core::ffi::c_void, index: u32, command: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetExceptionFilterSecondCommandWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&command)).into() } - unsafe extern "system" fn GetLastEventInformationWide(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetLastEventInformationWide(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: windows_core::PWSTR, descriptionsize: u32, descriptionused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetLastEventInformationWide(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused), core::mem::transmute_copy(&description), core::mem::transmute_copy(&descriptionsize), core::mem::transmute_copy(&descriptionused)).into() } - unsafe extern "system" fn GetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, index: u32, srcbuffer: windows_core::PWSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PWSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, index: u32, srcbuffer: windows_core::PWSTR, srcbuffersize: u32, srcsize: *mut u32, dstbuffer: windows_core::PWSTR, dstbuffersize: u32, dstsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetTextReplacementWide(this, core::mem::transmute(&srctext), core::mem::transmute_copy(&index), core::mem::transmute_copy(&srcbuffer), core::mem::transmute_copy(&srcbuffersize), core::mem::transmute_copy(&srcsize), core::mem::transmute_copy(&dstbuffer), core::mem::transmute_copy(&dstbuffersize), core::mem::transmute_copy(&dstsize)).into() } - unsafe extern "system" fn SetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, dsttext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetTextReplacementWide(this: *mut core::ffi::c_void, srctext: windows_core::PCWSTR, dsttext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetTextReplacementWide(this, core::mem::transmute(&srctext), core::mem::transmute(&dsttext)).into() } - unsafe extern "system" fn SetExpressionSyntaxByNameWide(this: *mut core::ffi::c_void, abbrevname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn SetExpressionSyntaxByNameWide(this: *mut core::ffi::c_void, abbrevname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::SetExpressionSyntaxByNameWide(this, core::mem::transmute(&abbrevname)).into() } - unsafe extern "system" fn GetExpressionSyntaxNamesWide(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExpressionSyntaxNamesWide(this: *mut core::ffi::c_void, index: u32, fullnamebuffer: windows_core::PWSTR, fullnamebuffersize: u32, fullnamesize: *mut u32, abbrevnamebuffer: windows_core::PWSTR, abbrevnamebuffersize: u32, abbrevnamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetExpressionSyntaxNamesWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&fullnamebuffer), core::mem::transmute_copy(&fullnamebuffersize), core::mem::transmute_copy(&fullnamesize), core::mem::transmute_copy(&abbrevnamebuffer), core::mem::transmute_copy(&abbrevnamebuffersize), core::mem::transmute_copy(&abbrevnamesize)).into() } - unsafe extern "system" fn GetEventIndexDescriptionWide(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCWSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetEventIndexDescriptionWide(this: *mut core::ffi::c_void, index: u32, which: u32, buffer: windows_core::PCWSTR, buffersize: u32, descsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetEventIndexDescriptionWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&which), core::mem::transmute(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&descsize)).into() } - unsafe extern "system" fn GetLogFile2(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetLogFile2(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetLogFile2(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OpenLogFile2(this: *mut core::ffi::c_void, file: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OpenLogFile2(this: *mut core::ffi::c_void, file: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OpenLogFile2(this, core::mem::transmute(&file), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetLogFile2Wide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetLogFile2Wide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetLogFile2Wide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OpenLogFile2Wide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OpenLogFile2Wide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OpenLogFile2Wide(this, core::mem::transmute(&file), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetSystemVersionValues(this: *mut core::ffi::c_void, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: *mut u32, kdminor: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetSystemVersionValues(this: *mut core::ffi::c_void, platformid: *mut u32, win32major: *mut u32, win32minor: *mut u32, kdmajor: *mut u32, kdminor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetSystemVersionValues(this, core::mem::transmute_copy(&platformid), core::mem::transmute_copy(&win32major), core::mem::transmute_copy(&win32minor), core::mem::transmute_copy(&kdmajor), core::mem::transmute_copy(&kdminor)).into() } - unsafe extern "system" fn GetSystemVersionString(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetSystemVersionString(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetSystemVersionString(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSystemVersionStringWide(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetSystemVersionStringWide(this: *mut core::ffi::c_void, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetSystemVersionStringWide(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetContextStackTrace(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetContextStackTrace(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetContextStackTrace(this, core::mem::transmute_copy(&startcontext), core::mem::transmute_copy(&startcontextsize), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn OutputContextStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputContextStackTrace(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputContextStackTrace(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetStoredEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: *mut core::ffi::c_void, contextsize: u32, contextused: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetStoredEventInformation(this: *mut core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, context: *mut core::ffi::c_void, contextsize: u32, contextused: *mut u32, extrainformation: *mut core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetStoredEventInformation(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize), core::mem::transmute_copy(&contextused), core::mem::transmute_copy(&extrainformation), core::mem::transmute_copy(&extrainformationsize), core::mem::transmute_copy(&extrainformationused)).into() } - unsafe extern "system" fn GetManagedStatus(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetManagedStatus(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetManagedStatus(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&whichstring), core::mem::transmute_copy(&string), core::mem::transmute_copy(&stringsize), core::mem::transmute_copy(&stringneeded)).into() } - unsafe extern "system" fn GetManagedStatusWide(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PWSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetManagedStatusWide(this: *mut core::ffi::c_void, flags: *mut u32, whichstring: u32, string: windows_core::PWSTR, stringsize: u32, stringneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetManagedStatusWide(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&whichstring), core::mem::transmute_copy(&string), core::mem::transmute_copy(&stringsize), core::mem::transmute_copy(&stringneeded)).into() } - unsafe extern "system" fn ResetManagedStatus(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn ResetManagedStatus(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::ResetManagedStatus(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetStackTraceEx(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetStackTraceEx(this: *mut core::ffi::c_void, frameoffset: u64, stackoffset: u64, instructionoffset: u64, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetStackTraceEx(this, core::mem::transmute_copy(&frameoffset), core::mem::transmute_copy(&stackoffset), core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn OutputStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputStackTraceEx(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetContextStackTraceEx(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetContextStackTraceEx(this: *mut core::ffi::c_void, startcontext: *const core::ffi::c_void, startcontextsize: u32, frames: *mut DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *mut core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, framesfilled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetContextStackTraceEx(this, core::mem::transmute_copy(&startcontext), core::mem::transmute_copy(&startcontextsize), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&framesfilled)).into() } - unsafe extern "system" fn OutputContextStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn OutputContextStackTraceEx(this: *mut core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *const core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OutputContextStackTraceEx(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&frames), core::mem::transmute_copy(&framessize), core::mem::transmute_copy(&framecontexts), core::mem::transmute_copy(&framecontextssize), core::mem::transmute_copy(&framecontextsentrysize), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetBreakpointByGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetBreakpointByGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, bp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetBreakpointByGuid(this, core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -19223,10 +13778,7 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExecutionStatusEx(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetExecutionStatusEx(this: *mut core::ffi::c_void, status: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugControl7_Impl::GetExecutionStatusEx(this) { Ok(ok__) => { @@ -19236,17 +13788,11 @@ impl IDebugControl7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSynchronizationStatus(this: *mut core::ffi::c_void, sendsattempted: *mut u32, secondssincelastresponse: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetSynchronizationStatus(this: *mut core::ffi::c_void, sendsattempted: *mut u32, secondssincelastresponse: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetSynchronizationStatus(this, core::mem::transmute_copy(&sendsattempted), core::mem::transmute_copy(&secondssincelastresponse)).into() } - unsafe extern "system" fn GetDebuggeeType2(this: *mut core::ffi::c_void, flags: u32, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugControl7_Impl, - { + unsafe extern "system" fn GetDebuggeeType2(this: *mut core::ffi::c_void, flags: u32, class: *mut u32, qualifier: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetDebuggeeType2(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&class), core::mem::transmute_copy(&qualifier)).into() } @@ -19432,7 +13978,7 @@ impl IDebugControl7_Vtbl { iid == &::IID } } -pub trait IDebugDataSpaces_Impl: Sized { +pub trait IDebugDataSpaces_Impl: Sized + windows_core::IUnknownImpl { fn ReadVirtual(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::Result<()>; fn WriteVirtual(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::Result<()>; fn SearchVirtual(&self, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32) -> windows_core::Result; @@ -19456,28 +14002,16 @@ pub trait IDebugDataSpaces_Impl: Sized { } impl windows_core::RuntimeName for IDebugDataSpaces {} impl IDebugDataSpaces_Vtbl { - pub const fn new() -> IDebugDataSpaces_Vtbl - where - Identity: IDebugDataSpaces_Impl, - { - unsafe extern "system" fn ReadVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + pub const fn new() -> IDebugDataSpaces_Vtbl { + unsafe extern "system" fn ReadVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::ReadVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn WriteVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::WriteVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn SearchVirtual(this: *mut core::ffi::c_void, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32, matchoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn SearchVirtual(this: *mut core::ffi::c_void, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32, matchoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces_Impl::SearchVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&length), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&patterngranularity)) { Ok(ok__) => { @@ -19487,80 +14021,47 @@ impl IDebugDataSpaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn ReadVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::ReadVirtualUncached(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn WriteVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::WriteVirtualUncached(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadPointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn ReadPointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::ReadPointersVirtual(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&ptrs)).into() } - unsafe extern "system" fn WritePointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *const u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn WritePointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *const u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::WritePointersVirtual(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&ptrs)).into() } - unsafe extern "system" fn ReadPhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn ReadPhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::ReadPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WritePhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn WritePhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::WritePhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn ReadControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::ReadControl(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn WriteControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::WriteControl(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn ReadIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::ReadIo(this, core::mem::transmute_copy(&interfacetype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&addressspace), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn WriteIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::WriteIo(this, core::mem::transmute_copy(&interfacetype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&addressspace), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadMsr(this: *mut core::ffi::c_void, msr: u32, value: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn ReadMsr(this: *mut core::ffi::c_void, msr: u32, value: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces_Impl::ReadMsr(this, core::mem::transmute_copy(&msr)) { Ok(ok__) => { @@ -19570,45 +14071,27 @@ impl IDebugDataSpaces_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteMsr(this: *mut core::ffi::c_void, msr: u32, value: u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn WriteMsr(this: *mut core::ffi::c_void, msr: u32, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::WriteMsr(this, core::mem::transmute_copy(&msr), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ReadBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn ReadBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::ReadBusData(this, core::mem::transmute_copy(&busdatatype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&slotnumber), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn WriteBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::WriteBusData(this, core::mem::transmute_copy(&busdatatype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&slotnumber), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn CheckLowMemory(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn CheckLowMemory(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::CheckLowMemory(this).into() } - unsafe extern "system" fn ReadDebuggerData(this: *mut core::ffi::c_void, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn ReadDebuggerData(this: *mut core::ffi::c_void, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::ReadDebuggerData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn ReadProcessorSystemData(this: *mut core::ffi::c_void, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces_Impl, - { + unsafe extern "system" fn ReadProcessorSystemData(this: *mut core::ffi::c_void, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces_Impl::ReadProcessorSystemData(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } @@ -19641,7 +14124,7 @@ impl IDebugDataSpaces_Vtbl { } } #[cfg(feature = "Win32_System_Memory")] -pub trait IDebugDataSpaces2_Impl: Sized { +pub trait IDebugDataSpaces2_Impl: Sized + windows_core::IUnknownImpl { fn ReadVirtual(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::Result<()>; fn WriteVirtual(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::Result<()>; fn SearchVirtual(&self, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32) -> windows_core::Result; @@ -19673,28 +14156,16 @@ pub trait IDebugDataSpaces2_Impl: Sized { impl windows_core::RuntimeName for IDebugDataSpaces2 {} #[cfg(feature = "Win32_System_Memory")] impl IDebugDataSpaces2_Vtbl { - pub const fn new() -> IDebugDataSpaces2_Vtbl - where - Identity: IDebugDataSpaces2_Impl, - { - unsafe extern "system" fn ReadVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + pub const fn new() -> IDebugDataSpaces2_Vtbl { + unsafe extern "system" fn ReadVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::ReadVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn WriteVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::WriteVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn SearchVirtual(this: *mut core::ffi::c_void, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32, matchoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn SearchVirtual(this: *mut core::ffi::c_void, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32, matchoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces2_Impl::SearchVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&length), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&patterngranularity)) { Ok(ok__) => { @@ -19704,80 +14175,47 @@ impl IDebugDataSpaces2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn ReadVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::ReadVirtualUncached(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn WriteVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::WriteVirtualUncached(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadPointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn ReadPointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::ReadPointersVirtual(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&ptrs)).into() } - unsafe extern "system" fn WritePointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *const u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn WritePointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *const u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::WritePointersVirtual(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&ptrs)).into() } - unsafe extern "system" fn ReadPhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn ReadPhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::ReadPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WritePhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn WritePhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::WritePhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn ReadControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::ReadControl(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn WriteControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::WriteControl(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn ReadIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::ReadIo(this, core::mem::transmute_copy(&interfacetype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&addressspace), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn WriteIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::WriteIo(this, core::mem::transmute_copy(&interfacetype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&addressspace), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadMsr(this: *mut core::ffi::c_void, msr: u32, value: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn ReadMsr(this: *mut core::ffi::c_void, msr: u32, value: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces2_Impl::ReadMsr(this, core::mem::transmute_copy(&msr)) { Ok(ok__) => { @@ -19787,52 +14225,31 @@ impl IDebugDataSpaces2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteMsr(this: *mut core::ffi::c_void, msr: u32, value: u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn WriteMsr(this: *mut core::ffi::c_void, msr: u32, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::WriteMsr(this, core::mem::transmute_copy(&msr), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ReadBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn ReadBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::ReadBusData(this, core::mem::transmute_copy(&busdatatype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&slotnumber), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn WriteBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::WriteBusData(this, core::mem::transmute_copy(&busdatatype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&slotnumber), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn CheckLowMemory(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn CheckLowMemory(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::CheckLowMemory(this).into() } - unsafe extern "system" fn ReadDebuggerData(this: *mut core::ffi::c_void, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn ReadDebuggerData(this: *mut core::ffi::c_void, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::ReadDebuggerData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn ReadProcessorSystemData(this: *mut core::ffi::c_void, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn ReadProcessorSystemData(this: *mut core::ffi::c_void, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::ReadProcessorSystemData(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn VirtualToPhysical(this: *mut core::ffi::c_void, r#virtual: u64, physical: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn VirtualToPhysical(this: *mut core::ffi::c_void, r#virtual: u64, physical: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces2_Impl::VirtualToPhysical(this, core::mem::transmute_copy(&r#virtual)) { Ok(ok__) => { @@ -19842,38 +14259,23 @@ impl IDebugDataSpaces2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVirtualTranslationPhysicalOffsets(this: *mut core::ffi::c_void, r#virtual: u64, offsets: *mut u64, offsetssize: u32, levels: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn GetVirtualTranslationPhysicalOffsets(this: *mut core::ffi::c_void, r#virtual: u64, offsets: *mut u64, offsetssize: u32, levels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::GetVirtualTranslationPhysicalOffsets(this, core::mem::transmute_copy(&r#virtual), core::mem::transmute_copy(&offsets), core::mem::transmute_copy(&offsetssize), core::mem::transmute_copy(&levels)).into() } - unsafe extern "system" fn ReadHandleData(this: *mut core::ffi::c_void, handle: u64, datatype: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn ReadHandleData(this: *mut core::ffi::c_void, handle: u64, datatype: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::ReadHandleData(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&datatype), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn FillVirtual(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn FillVirtual(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::FillVirtual(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&size), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&filled)).into() } - unsafe extern "system" fn FillPhysical(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn FillPhysical(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::FillPhysical(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&size), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&filled)).into() } - unsafe extern "system" fn QueryVirtual(this: *mut core::ffi::c_void, offset: u64, info: *mut super::super::super::Memory::MEMORY_BASIC_INFORMATION64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces2_Impl, - { + unsafe extern "system" fn QueryVirtual(this: *mut core::ffi::c_void, offset: u64, info: *mut super::super::super::Memory::MEMORY_BASIC_INFORMATION64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces2_Impl::QueryVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&info)).into() } @@ -19912,7 +14314,7 @@ impl IDebugDataSpaces2_Vtbl { } } #[cfg(all(feature = "Win32_System_Memory", feature = "Win32_System_SystemInformation"))] -pub trait IDebugDataSpaces3_Impl: Sized { +pub trait IDebugDataSpaces3_Impl: Sized + windows_core::IUnknownImpl { fn ReadVirtual(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::Result<()>; fn WriteVirtual(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::Result<()>; fn SearchVirtual(&self, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32) -> windows_core::Result; @@ -19949,28 +14351,16 @@ pub trait IDebugDataSpaces3_Impl: Sized { impl windows_core::RuntimeName for IDebugDataSpaces3 {} #[cfg(all(feature = "Win32_System_Memory", feature = "Win32_System_SystemInformation"))] impl IDebugDataSpaces3_Vtbl { - pub const fn new() -> IDebugDataSpaces3_Vtbl - where - Identity: IDebugDataSpaces3_Impl, - { - unsafe extern "system" fn ReadVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + pub const fn new() -> IDebugDataSpaces3_Vtbl { + unsafe extern "system" fn ReadVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn WriteVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::WriteVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn SearchVirtual(this: *mut core::ffi::c_void, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32, matchoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn SearchVirtual(this: *mut core::ffi::c_void, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32, matchoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces3_Impl::SearchVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&length), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&patterngranularity)) { Ok(ok__) => { @@ -19980,80 +14370,47 @@ impl IDebugDataSpaces3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadVirtualUncached(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn WriteVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::WriteVirtualUncached(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadPointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadPointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadPointersVirtual(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&ptrs)).into() } - unsafe extern "system" fn WritePointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *const u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn WritePointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *const u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::WritePointersVirtual(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&ptrs)).into() } - unsafe extern "system" fn ReadPhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadPhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WritePhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn WritePhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::WritePhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadControl(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn WriteControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::WriteControl(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadIo(this, core::mem::transmute_copy(&interfacetype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&addressspace), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn WriteIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::WriteIo(this, core::mem::transmute_copy(&interfacetype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&addressspace), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadMsr(this: *mut core::ffi::c_void, msr: u32, value: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadMsr(this: *mut core::ffi::c_void, msr: u32, value: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces3_Impl::ReadMsr(this, core::mem::transmute_copy(&msr)) { Ok(ok__) => { @@ -20063,52 +14420,31 @@ impl IDebugDataSpaces3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteMsr(this: *mut core::ffi::c_void, msr: u32, value: u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn WriteMsr(this: *mut core::ffi::c_void, msr: u32, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::WriteMsr(this, core::mem::transmute_copy(&msr), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ReadBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadBusData(this, core::mem::transmute_copy(&busdatatype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&slotnumber), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn WriteBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::WriteBusData(this, core::mem::transmute_copy(&busdatatype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&slotnumber), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn CheckLowMemory(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn CheckLowMemory(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::CheckLowMemory(this).into() } - unsafe extern "system" fn ReadDebuggerData(this: *mut core::ffi::c_void, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadDebuggerData(this: *mut core::ffi::c_void, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadDebuggerData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn ReadProcessorSystemData(this: *mut core::ffi::c_void, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadProcessorSystemData(this: *mut core::ffi::c_void, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadProcessorSystemData(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn VirtualToPhysical(this: *mut core::ffi::c_void, r#virtual: u64, physical: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn VirtualToPhysical(this: *mut core::ffi::c_void, r#virtual: u64, physical: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces3_Impl::VirtualToPhysical(this, core::mem::transmute_copy(&r#virtual)) { Ok(ok__) => { @@ -20118,59 +14454,35 @@ impl IDebugDataSpaces3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVirtualTranslationPhysicalOffsets(this: *mut core::ffi::c_void, r#virtual: u64, offsets: *mut u64, offsetssize: u32, levels: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn GetVirtualTranslationPhysicalOffsets(this: *mut core::ffi::c_void, r#virtual: u64, offsets: *mut u64, offsetssize: u32, levels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::GetVirtualTranslationPhysicalOffsets(this, core::mem::transmute_copy(&r#virtual), core::mem::transmute_copy(&offsets), core::mem::transmute_copy(&offsetssize), core::mem::transmute_copy(&levels)).into() } - unsafe extern "system" fn ReadHandleData(this: *mut core::ffi::c_void, handle: u64, datatype: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadHandleData(this: *mut core::ffi::c_void, handle: u64, datatype: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadHandleData(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&datatype), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn FillVirtual(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn FillVirtual(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::FillVirtual(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&size), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&filled)).into() } - unsafe extern "system" fn FillPhysical(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn FillPhysical(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::FillPhysical(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&size), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&filled)).into() } - unsafe extern "system" fn QueryVirtual(this: *mut core::ffi::c_void, offset: u64, info: *mut super::super::super::Memory::MEMORY_BASIC_INFORMATION64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn QueryVirtual(this: *mut core::ffi::c_void, offset: u64, info: *mut super::super::super::Memory::MEMORY_BASIC_INFORMATION64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::QueryVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&info)).into() } - unsafe extern "system" fn ReadImageNtHeaders(this: *mut core::ffi::c_void, imagebase: u64, headers: *mut super::IMAGE_NT_HEADERS64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadImageNtHeaders(this: *mut core::ffi::c_void, imagebase: u64, headers: *mut super::IMAGE_NT_HEADERS64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadImageNtHeaders(this, core::mem::transmute_copy(&imagebase), core::mem::transmute_copy(&headers)).into() } - unsafe extern "system" fn ReadTagged(this: *mut core::ffi::c_void, tag: *const windows_core::GUID, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, totalsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn ReadTagged(this: *mut core::ffi::c_void, tag: *const windows_core::GUID, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, totalsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::ReadTagged(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&totalsize)).into() } - unsafe extern "system" fn StartEnumTagged(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn StartEnumTagged(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces3_Impl::StartEnumTagged(this) { Ok(ok__) => { @@ -20180,17 +14492,11 @@ impl IDebugDataSpaces3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextTagged(this: *mut core::ffi::c_void, handle: u64, tag: *mut windows_core::GUID, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn GetNextTagged(this: *mut core::ffi::c_void, handle: u64, tag: *mut windows_core::GUID, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::GetNextTagged(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&tag), core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn EndEnumTagged(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces3_Impl, - { + unsafe extern "system" fn EndEnumTagged(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces3_Impl::EndEnumTagged(this, core::mem::transmute_copy(&handle)).into() } @@ -20234,7 +14540,7 @@ impl IDebugDataSpaces3_Vtbl { } } #[cfg(all(feature = "Win32_System_Memory", feature = "Win32_System_SystemInformation"))] -pub trait IDebugDataSpaces4_Impl: Sized { +pub trait IDebugDataSpaces4_Impl: Sized + windows_core::IUnknownImpl { fn ReadVirtual(&self, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::Result<()>; fn WriteVirtual(&self, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::Result<()>; fn SearchVirtual(&self, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32) -> windows_core::Result; @@ -20281,28 +14587,16 @@ pub trait IDebugDataSpaces4_Impl: Sized { impl windows_core::RuntimeName for IDebugDataSpaces4 {} #[cfg(all(feature = "Win32_System_Memory", feature = "Win32_System_SystemInformation"))] impl IDebugDataSpaces4_Vtbl { - pub const fn new() -> IDebugDataSpaces4_Vtbl - where - Identity: IDebugDataSpaces4_Impl, - { - unsafe extern "system" fn ReadVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + pub const fn new() -> IDebugDataSpaces4_Vtbl { + unsafe extern "system" fn ReadVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn WriteVirtual(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::WriteVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn SearchVirtual(this: *mut core::ffi::c_void, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32, matchoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn SearchVirtual(this: *mut core::ffi::c_void, offset: u64, length: u64, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32, matchoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces4_Impl::SearchVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&length), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&patterngranularity)) { Ok(ok__) => { @@ -20312,80 +14606,47 @@ impl IDebugDataSpaces4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadVirtualUncached(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn WriteVirtualUncached(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::WriteVirtualUncached(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadPointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadPointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadPointersVirtual(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&ptrs)).into() } - unsafe extern "system" fn WritePointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *const u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn WritePointersVirtual(this: *mut core::ffi::c_void, count: u32, offset: u64, ptrs: *const u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::WritePointersVirtual(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&ptrs)).into() } - unsafe extern "system" fn ReadPhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadPhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WritePhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn WritePhysical(this: *mut core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::WritePhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadControl(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn WriteControl(this: *mut core::ffi::c_void, processor: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::WriteControl(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadIo(this, core::mem::transmute_copy(&interfacetype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&addressspace), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn WriteIo(this: *mut core::ffi::c_void, interfacetype: u32, busnumber: u32, addressspace: u32, offset: u64, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::WriteIo(this, core::mem::transmute_copy(&interfacetype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&addressspace), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadMsr(this: *mut core::ffi::c_void, msr: u32, value: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadMsr(this: *mut core::ffi::c_void, msr: u32, value: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces4_Impl::ReadMsr(this, core::mem::transmute_copy(&msr)) { Ok(ok__) => { @@ -20395,52 +14656,31 @@ impl IDebugDataSpaces4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteMsr(this: *mut core::ffi::c_void, msr: u32, value: u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn WriteMsr(this: *mut core::ffi::c_void, msr: u32, value: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::WriteMsr(this, core::mem::transmute_copy(&msr), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ReadBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadBusData(this, core::mem::transmute_copy(&busdatatype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&slotnumber), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn WriteBusData(this: *mut core::ffi::c_void, busdatatype: u32, busnumber: u32, slotnumber: u32, offset: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::WriteBusData(this, core::mem::transmute_copy(&busdatatype), core::mem::transmute_copy(&busnumber), core::mem::transmute_copy(&slotnumber), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn CheckLowMemory(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn CheckLowMemory(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::CheckLowMemory(this).into() } - unsafe extern "system" fn ReadDebuggerData(this: *mut core::ffi::c_void, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadDebuggerData(this: *mut core::ffi::c_void, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadDebuggerData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn ReadProcessorSystemData(this: *mut core::ffi::c_void, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadProcessorSystemData(this: *mut core::ffi::c_void, processor: u32, index: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadProcessorSystemData(this, core::mem::transmute_copy(&processor), core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn VirtualToPhysical(this: *mut core::ffi::c_void, r#virtual: u64, physical: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn VirtualToPhysical(this: *mut core::ffi::c_void, r#virtual: u64, physical: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces4_Impl::VirtualToPhysical(this, core::mem::transmute_copy(&r#virtual)) { Ok(ok__) => { @@ -20450,59 +14690,35 @@ impl IDebugDataSpaces4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVirtualTranslationPhysicalOffsets(this: *mut core::ffi::c_void, r#virtual: u64, offsets: *mut u64, offsetssize: u32, levels: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn GetVirtualTranslationPhysicalOffsets(this: *mut core::ffi::c_void, r#virtual: u64, offsets: *mut u64, offsetssize: u32, levels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::GetVirtualTranslationPhysicalOffsets(this, core::mem::transmute_copy(&r#virtual), core::mem::transmute_copy(&offsets), core::mem::transmute_copy(&offsetssize), core::mem::transmute_copy(&levels)).into() } - unsafe extern "system" fn ReadHandleData(this: *mut core::ffi::c_void, handle: u64, datatype: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadHandleData(this: *mut core::ffi::c_void, handle: u64, datatype: u32, buffer: *mut core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadHandleData(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&datatype), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn FillVirtual(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn FillVirtual(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::FillVirtual(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&size), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&filled)).into() } - unsafe extern "system" fn FillPhysical(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn FillPhysical(this: *mut core::ffi::c_void, start: u64, size: u32, pattern: *const core::ffi::c_void, patternsize: u32, filled: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::FillPhysical(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&size), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&filled)).into() } - unsafe extern "system" fn QueryVirtual(this: *mut core::ffi::c_void, offset: u64, info: *mut super::super::super::Memory::MEMORY_BASIC_INFORMATION64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn QueryVirtual(this: *mut core::ffi::c_void, offset: u64, info: *mut super::super::super::Memory::MEMORY_BASIC_INFORMATION64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::QueryVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&info)).into() } - unsafe extern "system" fn ReadImageNtHeaders(this: *mut core::ffi::c_void, imagebase: u64, headers: *mut super::IMAGE_NT_HEADERS64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadImageNtHeaders(this: *mut core::ffi::c_void, imagebase: u64, headers: *mut super::IMAGE_NT_HEADERS64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadImageNtHeaders(this, core::mem::transmute_copy(&imagebase), core::mem::transmute_copy(&headers)).into() } - unsafe extern "system" fn ReadTagged(this: *mut core::ffi::c_void, tag: *const windows_core::GUID, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, totalsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadTagged(this: *mut core::ffi::c_void, tag: *const windows_core::GUID, offset: u32, buffer: *mut core::ffi::c_void, buffersize: u32, totalsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadTagged(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&totalsize)).into() } - unsafe extern "system" fn StartEnumTagged(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn StartEnumTagged(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces4_Impl::StartEnumTagged(this) { Ok(ok__) => { @@ -20512,31 +14728,19 @@ impl IDebugDataSpaces4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextTagged(this: *mut core::ffi::c_void, handle: u64, tag: *mut windows_core::GUID, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn GetNextTagged(this: *mut core::ffi::c_void, handle: u64, tag: *mut windows_core::GUID, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::GetNextTagged(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&tag), core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn EndEnumTagged(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn EndEnumTagged(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::EndEnumTagged(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn GetOffsetInformation(this: *mut core::ffi::c_void, space: u32, which: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn GetOffsetInformation(this: *mut core::ffi::c_void, space: u32, which: u32, offset: u64, buffer: *mut core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::GetOffsetInformation(this, core::mem::transmute_copy(&space), core::mem::transmute_copy(&which), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&infosize)).into() } - unsafe extern "system" fn GetNextDifferentlyValidOffsetVirtual(this: *mut core::ffi::c_void, offset: u64, nextoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn GetNextDifferentlyValidOffsetVirtual(this: *mut core::ffi::c_void, offset: u64, nextoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces4_Impl::GetNextDifferentlyValidOffsetVirtual(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -20546,17 +14750,11 @@ impl IDebugDataSpaces4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValidRegionVirtual(this: *mut core::ffi::c_void, base: u64, size: u32, validbase: *mut u64, validsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn GetValidRegionVirtual(this: *mut core::ffi::c_void, base: u64, size: u32, validbase: *mut u64, validsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::GetValidRegionVirtual(this, core::mem::transmute_copy(&base), core::mem::transmute_copy(&size), core::mem::transmute_copy(&validbase), core::mem::transmute_copy(&validsize)).into() } - unsafe extern "system" fn SearchVirtual2(this: *mut core::ffi::c_void, offset: u64, length: u64, flags: u32, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32, matchoffset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn SearchVirtual2(this: *mut core::ffi::c_void, offset: u64, length: u64, flags: u32, pattern: *const core::ffi::c_void, patternsize: u32, patterngranularity: u32, matchoffset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDataSpaces4_Impl::SearchVirtual2(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&length), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&patternsize), core::mem::transmute_copy(&patterngranularity)) { Ok(ok__) => { @@ -20566,45 +14764,27 @@ impl IDebugDataSpaces4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadMultiByteStringVirtual(this: *mut core::ffi::c_void, offset: u64, maxbytes: u32, buffer: windows_core::PSTR, buffersize: u32, stringbytes: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadMultiByteStringVirtual(this: *mut core::ffi::c_void, offset: u64, maxbytes: u32, buffer: windows_core::PSTR, buffersize: u32, stringbytes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadMultiByteStringVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&maxbytes), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringbytes)).into() } - unsafe extern "system" fn ReadMultiByteStringVirtualWide(this: *mut core::ffi::c_void, offset: u64, maxbytes: u32, codepage: u32, buffer: windows_core::PWSTR, buffersize: u32, stringbytes: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadMultiByteStringVirtualWide(this: *mut core::ffi::c_void, offset: u64, maxbytes: u32, codepage: u32, buffer: windows_core::PWSTR, buffersize: u32, stringbytes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadMultiByteStringVirtualWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&maxbytes), core::mem::transmute_copy(&codepage), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringbytes)).into() } - unsafe extern "system" fn ReadUnicodeStringVirtual(this: *mut core::ffi::c_void, offset: u64, maxbytes: u32, codepage: u32, buffer: windows_core::PSTR, buffersize: u32, stringbytes: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadUnicodeStringVirtual(this: *mut core::ffi::c_void, offset: u64, maxbytes: u32, codepage: u32, buffer: windows_core::PSTR, buffersize: u32, stringbytes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadUnicodeStringVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&maxbytes), core::mem::transmute_copy(&codepage), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringbytes)).into() } - unsafe extern "system" fn ReadUnicodeStringVirtualWide(this: *mut core::ffi::c_void, offset: u64, maxbytes: u32, buffer: windows_core::PWSTR, buffersize: u32, stringbytes: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadUnicodeStringVirtualWide(this: *mut core::ffi::c_void, offset: u64, maxbytes: u32, buffer: windows_core::PWSTR, buffersize: u32, stringbytes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadUnicodeStringVirtualWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&maxbytes), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringbytes)).into() } - unsafe extern "system" fn ReadPhysical2(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn ReadPhysical2(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::ReadPhysical2(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WritePhysical2(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugDataSpaces4_Impl, - { + unsafe extern "system" fn WritePhysical2(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDataSpaces4_Impl::WritePhysical2(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } @@ -20657,7 +14837,7 @@ impl IDebugDataSpaces4_Vtbl { iid == &::IID } } -pub trait IDebugEventCallbacks_Impl: Sized { +pub trait IDebugEventCallbacks_Impl: Sized + windows_core::IUnknownImpl { fn GetInterestMask(&self) -> windows_core::Result; fn Breakpoint(&self, bp: Option<&IDebugBreakpoint>) -> windows_core::Result<()>; fn Exception(&self, exception: *const super::EXCEPTION_RECORD64, firstchance: u32) -> windows_core::Result<()>; @@ -20675,14 +14855,8 @@ pub trait IDebugEventCallbacks_Impl: Sized { } impl windows_core::RuntimeName for IDebugEventCallbacks {} impl IDebugEventCallbacks_Vtbl { - pub const fn new() -> IDebugEventCallbacks_Vtbl - where - Identity: IDebugEventCallbacks_Impl, - { - unsafe extern "system" fn GetInterestMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + pub const fn new() -> IDebugEventCallbacks_Vtbl { + unsafe extern "system" fn GetInterestMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugEventCallbacks_Impl::GetInterestMask(this) { Ok(ok__) => { @@ -20692,94 +14866,55 @@ impl IDebugEventCallbacks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Breakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn Breakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::Breakpoint(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn Exception(this: *mut core::ffi::c_void, exception: *const super::EXCEPTION_RECORD64, firstchance: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn Exception(this: *mut core::ffi::c_void, exception: *const super::EXCEPTION_RECORD64, firstchance: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::Exception(this, core::mem::transmute_copy(&exception), core::mem::transmute_copy(&firstchance)).into() } - unsafe extern "system" fn CreateThread(this: *mut core::ffi::c_void, handle: u64, dataoffset: u64, startoffset: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn CreateThread(this: *mut core::ffi::c_void, handle: u64, dataoffset: u64, startoffset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::CreateThread(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&dataoffset), core::mem::transmute_copy(&startoffset)).into() } - unsafe extern "system" fn ExitThread(this: *mut core::ffi::c_void, exitcode: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn ExitThread(this: *mut core::ffi::c_void, exitcode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::ExitThread(this, core::mem::transmute_copy(&exitcode)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCSTR, imagename: windows_core::PCSTR, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCSTR, imagename: windows_core::PCSTR, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::CreateProcessA(this, core::mem::transmute_copy(&imagefilehandle), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&baseoffset), core::mem::transmute_copy(&modulesize), core::mem::transmute(&modulename), core::mem::transmute(&imagename), core::mem::transmute_copy(&checksum), core::mem::transmute_copy(&timedatestamp), core::mem::transmute_copy(&initialthreadhandle), core::mem::transmute_copy(&threaddataoffset), core::mem::transmute_copy(&startoffset)).into() } - unsafe extern "system" fn ExitProcess(this: *mut core::ffi::c_void, exitcode: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn ExitProcess(this: *mut core::ffi::c_void, exitcode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::ExitProcess(this, core::mem::transmute_copy(&exitcode)).into() } - unsafe extern "system" fn LoadModule(this: *mut core::ffi::c_void, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCSTR, imagename: windows_core::PCSTR, checksum: u32, timedatestamp: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn LoadModule(this: *mut core::ffi::c_void, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCSTR, imagename: windows_core::PCSTR, checksum: u32, timedatestamp: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::LoadModule(this, core::mem::transmute_copy(&imagefilehandle), core::mem::transmute_copy(&baseoffset), core::mem::transmute_copy(&modulesize), core::mem::transmute(&modulename), core::mem::transmute(&imagename), core::mem::transmute_copy(&checksum), core::mem::transmute_copy(&timedatestamp)).into() } - unsafe extern "system" fn UnloadModule(this: *mut core::ffi::c_void, imagebasename: windows_core::PCSTR, baseoffset: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn UnloadModule(this: *mut core::ffi::c_void, imagebasename: windows_core::PCSTR, baseoffset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::UnloadModule(this, core::mem::transmute(&imagebasename), core::mem::transmute_copy(&baseoffset)).into() } - unsafe extern "system" fn SystemError(this: *mut core::ffi::c_void, error: u32, level: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn SystemError(this: *mut core::ffi::c_void, error: u32, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::SystemError(this, core::mem::transmute_copy(&error), core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn SessionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn SessionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::SessionStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn ChangeDebuggeeState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn ChangeDebuggeeState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::ChangeDebuggeeState(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&argument)).into() } - unsafe extern "system" fn ChangeEngineState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn ChangeEngineState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::ChangeEngineState(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&argument)).into() } - unsafe extern "system" fn ChangeSymbolState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacks_Impl, - { + unsafe extern "system" fn ChangeSymbolState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacks_Impl::ChangeSymbolState(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&argument)).into() } @@ -20805,7 +14940,7 @@ impl IDebugEventCallbacks_Vtbl { iid == &::IID } } -pub trait IDebugEventCallbacksWide_Impl: Sized { +pub trait IDebugEventCallbacksWide_Impl: Sized + windows_core::IUnknownImpl { fn GetInterestMask(&self) -> windows_core::Result; fn Breakpoint(&self, bp: Option<&IDebugBreakpoint2>) -> windows_core::Result<()>; fn Exception(&self, exception: *const super::EXCEPTION_RECORD64, firstchance: u32) -> windows_core::Result<()>; @@ -20823,14 +14958,8 @@ pub trait IDebugEventCallbacksWide_Impl: Sized { } impl windows_core::RuntimeName for IDebugEventCallbacksWide {} impl IDebugEventCallbacksWide_Vtbl { - pub const fn new() -> IDebugEventCallbacksWide_Vtbl - where - Identity: IDebugEventCallbacksWide_Impl, - { - unsafe extern "system" fn GetInterestMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + pub const fn new() -> IDebugEventCallbacksWide_Vtbl { + unsafe extern "system" fn GetInterestMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugEventCallbacksWide_Impl::GetInterestMask(this) { Ok(ok__) => { @@ -20840,94 +14969,55 @@ impl IDebugEventCallbacksWide_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Breakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn Breakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::Breakpoint(this, windows_core::from_raw_borrowed(&bp)).into() } - unsafe extern "system" fn Exception(this: *mut core::ffi::c_void, exception: *const super::EXCEPTION_RECORD64, firstchance: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn Exception(this: *mut core::ffi::c_void, exception: *const super::EXCEPTION_RECORD64, firstchance: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::Exception(this, core::mem::transmute_copy(&exception), core::mem::transmute_copy(&firstchance)).into() } - unsafe extern "system" fn CreateThread(this: *mut core::ffi::c_void, handle: u64, dataoffset: u64, startoffset: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn CreateThread(this: *mut core::ffi::c_void, handle: u64, dataoffset: u64, startoffset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::CreateThread(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&dataoffset), core::mem::transmute_copy(&startoffset)).into() } - unsafe extern "system" fn ExitThread(this: *mut core::ffi::c_void, exitcode: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn ExitThread(this: *mut core::ffi::c_void, exitcode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::ExitThread(this, core::mem::transmute_copy(&exitcode)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCWSTR, imagename: windows_core::PCWSTR, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCWSTR, imagename: windows_core::PCWSTR, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::CreateProcessA(this, core::mem::transmute_copy(&imagefilehandle), core::mem::transmute_copy(&handle), core::mem::transmute_copy(&baseoffset), core::mem::transmute_copy(&modulesize), core::mem::transmute(&modulename), core::mem::transmute(&imagename), core::mem::transmute_copy(&checksum), core::mem::transmute_copy(&timedatestamp), core::mem::transmute_copy(&initialthreadhandle), core::mem::transmute_copy(&threaddataoffset), core::mem::transmute_copy(&startoffset)).into() } - unsafe extern "system" fn ExitProcess(this: *mut core::ffi::c_void, exitcode: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn ExitProcess(this: *mut core::ffi::c_void, exitcode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::ExitProcess(this, core::mem::transmute_copy(&exitcode)).into() } - unsafe extern "system" fn LoadModule(this: *mut core::ffi::c_void, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCWSTR, imagename: windows_core::PCWSTR, checksum: u32, timedatestamp: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn LoadModule(this: *mut core::ffi::c_void, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCWSTR, imagename: windows_core::PCWSTR, checksum: u32, timedatestamp: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::LoadModule(this, core::mem::transmute_copy(&imagefilehandle), core::mem::transmute_copy(&baseoffset), core::mem::transmute_copy(&modulesize), core::mem::transmute(&modulename), core::mem::transmute(&imagename), core::mem::transmute_copy(&checksum), core::mem::transmute_copy(&timedatestamp)).into() } - unsafe extern "system" fn UnloadModule(this: *mut core::ffi::c_void, imagebasename: windows_core::PCWSTR, baseoffset: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn UnloadModule(this: *mut core::ffi::c_void, imagebasename: windows_core::PCWSTR, baseoffset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::UnloadModule(this, core::mem::transmute(&imagebasename), core::mem::transmute_copy(&baseoffset)).into() } - unsafe extern "system" fn SystemError(this: *mut core::ffi::c_void, error: u32, level: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn SystemError(this: *mut core::ffi::c_void, error: u32, level: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::SystemError(this, core::mem::transmute_copy(&error), core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn SessionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn SessionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::SessionStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn ChangeDebuggeeState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn ChangeDebuggeeState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::ChangeDebuggeeState(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&argument)).into() } - unsafe extern "system" fn ChangeEngineState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn ChangeEngineState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::ChangeEngineState(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&argument)).into() } - unsafe extern "system" fn ChangeSymbolState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT - where - Identity: IDebugEventCallbacksWide_Impl, - { + unsafe extern "system" fn ChangeSymbolState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventCallbacksWide_Impl::ChangeSymbolState(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&argument)).into() } @@ -20953,7 +15043,7 @@ impl IDebugEventCallbacksWide_Vtbl { iid == &::IID } } -pub trait IDebugEventContextCallbacks_Impl: Sized { +pub trait IDebugEventContextCallbacks_Impl: Sized + windows_core::IUnknownImpl { fn GetInterestMask(&self) -> windows_core::Result; fn Breakpoint(&self, bp: Option<&IDebugBreakpoint2>, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()>; fn Exception(&self, exception: *const super::EXCEPTION_RECORD64, firstchance: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::Result<()>; @@ -20971,14 +15061,8 @@ pub trait IDebugEventContextCallbacks_Impl: Sized { } impl windows_core::RuntimeName for IDebugEventContextCallbacks {} impl IDebugEventContextCallbacks_Vtbl { - pub const fn new() -> IDebugEventContextCallbacks_Vtbl - where - Identity: IDebugEventContextCallbacks_Impl, - { - unsafe extern "system" fn GetInterestMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + pub const fn new() -> IDebugEventContextCallbacks_Vtbl { + unsafe extern "system" fn GetInterestMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugEventContextCallbacks_Impl::GetInterestMask(this) { Ok(ok__) => { @@ -20988,38 +15072,23 @@ impl IDebugEventContextCallbacks_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Breakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn Breakpoint(this: *mut core::ffi::c_void, bp: *mut core::ffi::c_void, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::Breakpoint(this, windows_core::from_raw_borrowed(&bp), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn Exception(this: *mut core::ffi::c_void, exception: *const super::EXCEPTION_RECORD64, firstchance: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn Exception(this: *mut core::ffi::c_void, exception: *const super::EXCEPTION_RECORD64, firstchance: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::Exception(this, core::mem::transmute_copy(&exception), core::mem::transmute_copy(&firstchance), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn CreateThread(this: *mut core::ffi::c_void, handle: u64, dataoffset: u64, startoffset: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn CreateThread(this: *mut core::ffi::c_void, handle: u64, dataoffset: u64, startoffset: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::CreateThread(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&dataoffset), core::mem::transmute_copy(&startoffset), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn ExitThread(this: *mut core::ffi::c_void, exitcode: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn ExitThread(this: *mut core::ffi::c_void, exitcode: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::ExitThread(this, core::mem::transmute_copy(&exitcode), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCWSTR, imagename: windows_core::PCWSTR, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn CreateProcessA(this: *mut core::ffi::c_void, imagefilehandle: u64, handle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCWSTR, imagename: windows_core::PCWSTR, checksum: u32, timedatestamp: u32, initialthreadhandle: u64, threaddataoffset: u64, startoffset: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::CreateProcessA( this, @@ -21039,59 +15108,35 @@ impl IDebugEventContextCallbacks_Vtbl { ) .into() } - unsafe extern "system" fn ExitProcess(this: *mut core::ffi::c_void, exitcode: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn ExitProcess(this: *mut core::ffi::c_void, exitcode: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::ExitProcess(this, core::mem::transmute_copy(&exitcode), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn LoadModule(this: *mut core::ffi::c_void, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCWSTR, imagename: windows_core::PCWSTR, checksum: u32, timedatestamp: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn LoadModule(this: *mut core::ffi::c_void, imagefilehandle: u64, baseoffset: u64, modulesize: u32, modulename: windows_core::PCWSTR, imagename: windows_core::PCWSTR, checksum: u32, timedatestamp: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::LoadModule(this, core::mem::transmute_copy(&imagefilehandle), core::mem::transmute_copy(&baseoffset), core::mem::transmute_copy(&modulesize), core::mem::transmute(&modulename), core::mem::transmute(&imagename), core::mem::transmute_copy(&checksum), core::mem::transmute_copy(&timedatestamp), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn UnloadModule(this: *mut core::ffi::c_void, imagebasename: windows_core::PCWSTR, baseoffset: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn UnloadModule(this: *mut core::ffi::c_void, imagebasename: windows_core::PCWSTR, baseoffset: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::UnloadModule(this, core::mem::transmute(&imagebasename), core::mem::transmute_copy(&baseoffset), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn SystemError(this: *mut core::ffi::c_void, error: u32, level: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn SystemError(this: *mut core::ffi::c_void, error: u32, level: u32, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::SystemError(this, core::mem::transmute_copy(&error), core::mem::transmute_copy(&level), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn SessionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn SessionStatus(this: *mut core::ffi::c_void, status: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::SessionStatus(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn ChangeDebuggeeState(this: *mut core::ffi::c_void, flags: u32, argument: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn ChangeDebuggeeState(this: *mut core::ffi::c_void, flags: u32, argument: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::ChangeDebuggeeState(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&argument), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn ChangeEngineState(this: *mut core::ffi::c_void, flags: u32, argument: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn ChangeEngineState(this: *mut core::ffi::c_void, flags: u32, argument: u64, context: *const core::ffi::c_void, contextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::ChangeEngineState(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&argument), core::mem::transmute_copy(&context), core::mem::transmute_copy(&contextsize)).into() } - unsafe extern "system" fn ChangeSymbolState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT - where - Identity: IDebugEventContextCallbacks_Impl, - { + unsafe extern "system" fn ChangeSymbolState(this: *mut core::ffi::c_void, flags: u32, argument: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugEventContextCallbacks_Impl::ChangeSymbolState(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&argument)).into() } @@ -21185,7 +15230,7 @@ impl IDebugFAEntryTags { unsafe { windows_core::ScopedInterface::new(core::mem::transmute(&this.vtable)) } } } -pub trait IDebugFailureAnalysis_Impl: Sized { +pub trait IDebugFailureAnalysis_Impl: Sized + windows_core::IUnknownImpl { fn GetFailureClass(&self) -> u32; fn GetFailureType(&self) -> DEBUG_FAILURE_TYPE; fn GetFailureCode(&self) -> u32; @@ -21199,77 +15244,44 @@ pub trait IDebugFailureAnalysis_Impl: Sized { } impl windows_core::RuntimeName for IDebugFailureAnalysis {} impl IDebugFailureAnalysis_Vtbl { - pub const fn new() -> IDebugFailureAnalysis_Vtbl - where - Identity: IDebugFailureAnalysis_Impl, - { - unsafe extern "system" fn GetFailureClass(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDebugFailureAnalysis_Impl, - { + pub const fn new() -> IDebugFailureAnalysis_Vtbl { + unsafe extern "system" fn GetFailureClass(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis_Impl::GetFailureClass(this) } - unsafe extern "system" fn GetFailureType(this: *mut core::ffi::c_void) -> DEBUG_FAILURE_TYPE - where - Identity: IDebugFailureAnalysis_Impl, - { + unsafe extern "system" fn GetFailureType(this: *mut core::ffi::c_void) -> DEBUG_FAILURE_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis_Impl::GetFailureType(this) } - unsafe extern "system" fn GetFailureCode(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDebugFailureAnalysis_Impl, - { + unsafe extern "system" fn GetFailureCode(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis_Impl::GetFailureCode(this) } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis_Impl::Get(this, core::mem::transmute_copy(&tag)) } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, entry: *mut FA_ENTRY, tag: DEBUG_FLR_PARAM_TYPE, tagmask: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, entry: *mut FA_ENTRY, tag: DEBUG_FLR_PARAM_TYPE, tagmask: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis_Impl::GetNext(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&tag), core::mem::transmute_copy(&tagmask)) } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PSTR, maxsize: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PSTR, maxsize: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis_Impl::GetString(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&str), core::mem::transmute_copy(&maxsize)) } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, buf: *mut core::ffi::c_void, size: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis_Impl, - { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, buf: *mut core::ffi::c_void, size: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis_Impl::GetBuffer(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&buf), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn GetUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis_Impl, - { + unsafe extern "system" fn GetUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis_Impl::GetUlong(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn GetUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u64) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis_Impl, - { + unsafe extern "system" fn GetUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u64) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis_Impl::GetUlong64(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn NextEntry(this: *mut core::ffi::c_void, entry: *const FA_ENTRY) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis_Impl, - { + unsafe extern "system" fn NextEntry(this: *mut core::ffi::c_void, entry: *const FA_ENTRY) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis_Impl::NextEntry(this, core::mem::transmute_copy(&entry)) } @@ -21292,7 +15304,7 @@ impl IDebugFailureAnalysis_Vtbl { } } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] -pub trait IDebugFailureAnalysis2_Impl: Sized { +pub trait IDebugFailureAnalysis2_Impl: Sized + windows_core::IUnknownImpl { fn GetFailureClass(&self) -> u32; fn GetFailureType(&self) -> DEBUG_FAILURE_TYPE; fn GetFailureCode(&self) -> u32; @@ -21321,154 +15333,88 @@ pub trait IDebugFailureAnalysis2_Impl: Sized { impl windows_core::RuntimeName for IDebugFailureAnalysis2 {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IDebugFailureAnalysis2_Vtbl { - pub const fn new() -> IDebugFailureAnalysis2_Vtbl - where - Identity: IDebugFailureAnalysis2_Impl, - { - unsafe extern "system" fn GetFailureClass(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDebugFailureAnalysis2_Impl, - { + pub const fn new() -> IDebugFailureAnalysis2_Vtbl { + unsafe extern "system" fn GetFailureClass(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::GetFailureClass(this) } - unsafe extern "system" fn GetFailureType(this: *mut core::ffi::c_void) -> DEBUG_FAILURE_TYPE - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn GetFailureType(this: *mut core::ffi::c_void) -> DEBUG_FAILURE_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::GetFailureType(this) } - unsafe extern "system" fn GetFailureCode(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn GetFailureCode(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::GetFailureCode(this) } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::Get(this, core::mem::transmute_copy(&tag)) } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, entry: *const FA_ENTRY, tag: DEBUG_FLR_PARAM_TYPE, tagmask: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, entry: *const FA_ENTRY, tag: DEBUG_FLR_PARAM_TYPE, tagmask: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::GetNext(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&tag), core::mem::transmute_copy(&tagmask)) } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PSTR, maxsize: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PSTR, maxsize: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::GetString(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&str), core::mem::transmute_copy(&maxsize)) } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, buf: *mut core::ffi::c_void, size: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, buf: *mut core::ffi::c_void, size: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::GetBuffer(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&buf), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn GetUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn GetUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::GetUlong(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn GetUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u64) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn GetUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u64) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::GetUlong64(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn NextEntry(this: *mut core::ffi::c_void, entry: *const FA_ENTRY) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn NextEntry(this: *mut core::ffi::c_void, entry: *const FA_ENTRY) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::NextEntry(this, core::mem::transmute_copy(&entry)) } - unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PCSTR) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PCSTR) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::SetString(this, core::mem::transmute_copy(&tag), core::mem::transmute(&str)) } - unsafe extern "system" fn SetExtensionCommand(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, extension: windows_core::PCSTR) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn SetExtensionCommand(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, extension: windows_core::PCSTR) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::SetExtensionCommand(this, core::mem::transmute_copy(&tag), core::mem::transmute(&extension)) } - unsafe extern "system" fn SetUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn SetUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::SetUlong(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn SetUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn SetUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::SetUlong64(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn SetBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn SetBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::SetBuffer(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&entrytype), core::mem::transmute_copy(&buf), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn AddString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PCSTR) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn AddString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PCSTR) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::AddString(this, core::mem::transmute_copy(&tag), core::mem::transmute(&str)) } - unsafe extern "system" fn AddExtensionCommand(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, extension: windows_core::PCSTR) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn AddExtensionCommand(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, extension: windows_core::PCSTR) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::AddExtensionCommand(this, core::mem::transmute_copy(&tag), core::mem::transmute(&extension)) } - unsafe extern "system" fn AddUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn AddUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::AddUlong(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn AddUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn AddUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::AddUlong64(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn AddBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn AddBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::AddBuffer(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&entrytype), core::mem::transmute_copy(&buf), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn GetDebugFATagControl(this: *mut core::ffi::c_void, fatagcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn GetDebugFATagControl(this: *mut core::ffi::c_void, fatagcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFailureAnalysis2_Impl::GetDebugFATagControl(this) { Ok(ok__) => { @@ -21478,10 +15424,7 @@ impl IDebugFailureAnalysis2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAnalysisXml(this: *mut core::ffi::c_void, ppxmldomelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn GetAnalysisXml(this: *mut core::ffi::c_void, ppxmldomelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFailureAnalysis2_Impl::GetAnalysisXml(this) { Ok(ok__) => { @@ -21491,10 +15434,7 @@ impl IDebugFailureAnalysis2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStructuredAnalysisData(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, analysis: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis2_Impl, - { + unsafe extern "system" fn AddStructuredAnalysisData(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, analysis: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis2_Impl::AddStructuredAnalysisData(this, core::mem::transmute_copy(&tag), windows_core::from_raw_borrowed(&analysis)).into() } @@ -21530,7 +15470,7 @@ impl IDebugFailureAnalysis2_Vtbl { } } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] -pub trait IDebugFailureAnalysis3_Impl: Sized { +pub trait IDebugFailureAnalysis3_Impl: Sized + windows_core::IUnknownImpl { fn GetFailureClass(&self) -> u32; fn GetFailureType(&self) -> DEBUG_FAILURE_TYPE; fn GetFailureCode(&self) -> u32; @@ -21576,154 +15516,88 @@ pub trait IDebugFailureAnalysis3_Impl: Sized { impl windows_core::RuntimeName for IDebugFailureAnalysis3 {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IDebugFailureAnalysis3_Vtbl { - pub const fn new() -> IDebugFailureAnalysis3_Vtbl - where - Identity: IDebugFailureAnalysis3_Impl, - { - unsafe extern "system" fn GetFailureClass(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDebugFailureAnalysis3_Impl, - { + pub const fn new() -> IDebugFailureAnalysis3_Vtbl { + unsafe extern "system" fn GetFailureClass(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::GetFailureClass(this) } - unsafe extern "system" fn GetFailureType(this: *mut core::ffi::c_void) -> DEBUG_FAILURE_TYPE - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn GetFailureType(this: *mut core::ffi::c_void) -> DEBUG_FAILURE_TYPE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::GetFailureType(this) } - unsafe extern "system" fn GetFailureCode(this: *mut core::ffi::c_void) -> u32 - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn GetFailureCode(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::GetFailureCode(this) } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::Get(this, core::mem::transmute_copy(&tag)) } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, entry: *const FA_ENTRY, tag: DEBUG_FLR_PARAM_TYPE, tagmask: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, entry: *const FA_ENTRY, tag: DEBUG_FLR_PARAM_TYPE, tagmask: DEBUG_FLR_PARAM_TYPE) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::GetNext(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&tag), core::mem::transmute_copy(&tagmask)) } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PSTR, maxsize: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PSTR, maxsize: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::GetString(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&str), core::mem::transmute_copy(&maxsize)) } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, buf: *mut core::ffi::c_void, size: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, buf: *mut core::ffi::c_void, size: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::GetBuffer(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&buf), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn GetUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn GetUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::GetUlong(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn GetUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u64) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn GetUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u64) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::GetUlong64(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn NextEntry(this: *mut core::ffi::c_void, entry: *const FA_ENTRY) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn NextEntry(this: *mut core::ffi::c_void, entry: *const FA_ENTRY) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::NextEntry(this, core::mem::transmute_copy(&entry)) } - unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PCSTR) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn SetString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PCSTR) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::SetString(this, core::mem::transmute_copy(&tag), core::mem::transmute(&str)) } - unsafe extern "system" fn SetExtensionCommand(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, extension: windows_core::PCSTR) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn SetExtensionCommand(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, extension: windows_core::PCSTR) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::SetExtensionCommand(this, core::mem::transmute_copy(&tag), core::mem::transmute(&extension)) } - unsafe extern "system" fn SetUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn SetUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::SetUlong(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn SetUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn SetUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::SetUlong64(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn SetBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn SetBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::SetBuffer(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&entrytype), core::mem::transmute_copy(&buf), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn AddString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PCSTR) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn AddString(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, str: windows_core::PCSTR) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::AddString(this, core::mem::transmute_copy(&tag), core::mem::transmute(&str)) } - unsafe extern "system" fn AddExtensionCommand(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, extension: windows_core::PCSTR) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn AddExtensionCommand(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, extension: windows_core::PCSTR) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::AddExtensionCommand(this, core::mem::transmute_copy(&tag), core::mem::transmute(&extension)) } - unsafe extern "system" fn AddUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn AddUlong(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::AddUlong(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn AddUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn AddUlong64(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: u64) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::AddUlong64(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&value)) } - unsafe extern "system" fn AddBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn AddBuffer(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, entrytype: FA_ENTRY_TYPE, buf: *const core::ffi::c_void, size: u32) -> *mut FA_ENTRY { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::AddBuffer(this, core::mem::transmute_copy(&tag), core::mem::transmute_copy(&entrytype), core::mem::transmute_copy(&buf), core::mem::transmute_copy(&size)) } - unsafe extern "system" fn GetDebugFATagControl(this: *mut core::ffi::c_void, fatagcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn GetDebugFATagControl(this: *mut core::ffi::c_void, fatagcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFailureAnalysis3_Impl::GetDebugFATagControl(this) { Ok(ok__) => { @@ -21733,10 +15607,7 @@ impl IDebugFailureAnalysis3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAnalysisXml(this: *mut core::ffi::c_void, ppxmldomelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn GetAnalysisXml(this: *mut core::ffi::c_void, ppxmldomelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFailureAnalysis3_Impl::GetAnalysisXml(this) { Ok(ok__) => { @@ -21746,24 +15617,15 @@ impl IDebugFailureAnalysis3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStructuredAnalysisData(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, analysis: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn AddStructuredAnalysisData(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, analysis: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::AddStructuredAnalysisData(this, core::mem::transmute_copy(&tag), windows_core::from_raw_borrowed(&analysis)).into() } - unsafe extern "system" fn AddThreads(this: *mut core::ffi::c_void, pdebugfailurethreadenum: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn AddThreads(this: *mut core::ffi::c_void, pdebugfailurethreadenum: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::AddThreads(this, windows_core::from_raw_borrowed(&pdebugfailurethreadenum)).into() } - unsafe extern "system" fn AttributeGet(this: *mut core::ffi::c_void, nindex: u32, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn AttributeGet(this: *mut core::ffi::c_void, nindex: u32, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFailureAnalysis3_Impl::AttributeGet(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -21773,10 +15635,7 @@ impl IDebugFailureAnalysis3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AttributeGetName(this: *mut core::ffi::c_void, nindex: u32, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn AttributeGetName(this: *mut core::ffi::c_void, nindex: u32, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFailureAnalysis3_Impl::AttributeGetName(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -21786,59 +15645,35 @@ impl IDebugFailureAnalysis3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AttributeSet(this: *mut core::ffi::c_void, nindex: u32, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn AttributeSet(this: *mut core::ffi::c_void, nindex: u32, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::AttributeSet(this, core::mem::transmute_copy(&nindex), core::mem::transmute(&value)).into() } - unsafe extern "system" fn BlameApplication(this: *mut core::ffi::c_void, postfix: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn BlameApplication(this: *mut core::ffi::c_void, postfix: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::BlameApplication(this, core::mem::transmute(&postfix)).into() } - unsafe extern "system" fn BlameProcess(this: *mut core::ffi::c_void, postfix: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn BlameProcess(this: *mut core::ffi::c_void, postfix: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::BlameProcess(this, core::mem::transmute(&postfix)).into() } - unsafe extern "system" fn BlameThread(this: *mut core::ffi::c_void, pthread: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn BlameThread(this: *mut core::ffi::c_void, pthread: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::BlameThread(this, windows_core::from_raw_borrowed(&pthread)).into() } - unsafe extern "system" fn BlameStitch(this: *mut core::ffi::c_void, pthread: *mut core::ffi::c_void, stitch: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn BlameStitch(this: *mut core::ffi::c_void, pthread: *mut core::ffi::c_void, stitch: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::BlameStitch(this, windows_core::from_raw_borrowed(&pthread), core::mem::transmute(&stitch)).into() } - unsafe extern "system" fn BlameTEB(this: *mut core::ffi::c_void, address: u64) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn BlameTEB(this: *mut core::ffi::c_void, address: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::BlameTEB(this, core::mem::transmute_copy(&address)).into() } - unsafe extern "system" fn BlameETHREAD(this: *mut core::ffi::c_void, address: u64) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn BlameETHREAD(this: *mut core::ffi::c_void, address: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::BlameETHREAD(this, core::mem::transmute_copy(&address)).into() } - unsafe extern "system" fn ProblemClassIsSet(this: *mut core::ffi::c_void, nindex: u32, pset: *mut super::super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn ProblemClassIsSet(this: *mut core::ffi::c_void, nindex: u32, pset: *mut super::super::super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFailureAnalysis3_Impl::ProblemClassIsSet(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -21848,38 +15683,23 @@ impl IDebugFailureAnalysis3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProblemClassDelete(this: *mut core::ffi::c_void, nindex: u32) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn ProblemClassDelete(this: *mut core::ffi::c_void, nindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::ProblemClassDelete(this, core::mem::transmute_copy(&nindex)).into() } - unsafe extern "system" fn ProblemClassSet(this: *mut core::ffi::c_void, nindex: u32) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn ProblemClassSet(this: *mut core::ffi::c_void, nindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::ProblemClassSet(this, core::mem::transmute_copy(&nindex)).into() } - unsafe extern "system" fn ProblemClassSetBSTR(this: *mut core::ffi::c_void, nindex: u32, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn ProblemClassSetBSTR(this: *mut core::ffi::c_void, nindex: u32, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::ProblemClassSetBSTR(this, core::mem::transmute_copy(&nindex), core::mem::transmute(&value)).into() } - unsafe extern "system" fn SetAdditionalXML(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit, pxmldomelement: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn SetAdditionalXML(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit, pxmldomelement: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::SetAdditionalXML(this, core::mem::transmute(&key), windows_core::from_raw_borrowed(&pxmldomelement)).into() } - unsafe extern "system" fn GetAdditionalXML(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit, ppxmldomelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn GetAdditionalXML(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit, ppxmldomelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugFailureAnalysis3_Impl::GetAdditionalXML(this, core::mem::transmute(&key)) { Ok(ok__) => { @@ -21889,10 +15709,7 @@ impl IDebugFailureAnalysis3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteAdditionalXML(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugFailureAnalysis3_Impl, - { + unsafe extern "system" fn DeleteAdditionalXML(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugFailureAnalysis3_Impl::DeleteAdditionalXML(this, core::mem::transmute(&key)).into() } @@ -21944,21 +15761,15 @@ impl IDebugFailureAnalysis3_Vtbl { iid == &::IID } } -pub trait IDebugHost_Impl: Sized { +pub trait IDebugHost_Impl: Sized + windows_core::IUnknownImpl { fn GetHostDefinedInterface(&self) -> windows_core::Result; fn GetCurrentContext(&self) -> windows_core::Result; fn GetDefaultMetadata(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugHost {} impl IDebugHost_Vtbl { - pub const fn new() -> IDebugHost_Vtbl - where - Identity: IDebugHost_Impl, - { - unsafe extern "system" fn GetHostDefinedInterface(this: *mut core::ffi::c_void, hostunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHost_Impl, - { + pub const fn new() -> IDebugHost_Vtbl { + unsafe extern "system" fn GetHostDefinedInterface(this: *mut core::ffi::c_void, hostunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHost_Impl::GetHostDefinedInterface(this) { Ok(ok__) => { @@ -21968,10 +15779,7 @@ impl IDebugHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentContext(this: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHost_Impl, - { + unsafe extern "system" fn GetCurrentContext(this: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHost_Impl::GetCurrentContext(this) { Ok(ok__) => { @@ -21981,10 +15789,7 @@ impl IDebugHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultMetadata(this: *mut core::ffi::c_void, defaultmetadatastore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHost_Impl, - { + unsafe extern "system" fn GetDefaultMetadata(this: *mut core::ffi::c_void, defaultmetadatastore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHost_Impl::GetDefaultMetadata(this) { Ok(ok__) => { @@ -22010,14 +15815,8 @@ pub trait IDebugHostBaseClass_Impl: Sized + IDebugHostSymbol_Impl { } impl windows_core::RuntimeName for IDebugHostBaseClass {} impl IDebugHostBaseClass_Vtbl { - pub const fn new() -> IDebugHostBaseClass_Vtbl - where - Identity: IDebugHostBaseClass_Impl, - { - unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugHostBaseClass_Impl, - { + pub const fn new() -> IDebugHostBaseClass_Vtbl { + unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostBaseClass_Impl::GetOffset(this) { Ok(ok__) => { @@ -22038,14 +15837,8 @@ pub trait IDebugHostConstant_Impl: Sized + IDebugHostSymbol_Impl { } impl windows_core::RuntimeName for IDebugHostConstant {} impl IDebugHostConstant_Vtbl { - pub const fn new() -> IDebugHostConstant_Vtbl - where - Identity: IDebugHostConstant_Impl, - { - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugHostConstant_Impl, - { + pub const fn new() -> IDebugHostConstant_Vtbl { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostConstant_Impl::GetValue(this) { Ok(ok__) => { @@ -22061,19 +15854,13 @@ impl IDebugHostConstant_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDebugHostContext_Impl: Sized { +pub trait IDebugHostContext_Impl: Sized + windows_core::IUnknownImpl { fn IsEqualTo(&self, pcontext: Option<&IDebugHostContext>) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugHostContext {} impl IDebugHostContext_Vtbl { - pub const fn new() -> IDebugHostContext_Vtbl - where - Identity: IDebugHostContext_Impl, - { - unsafe extern "system" fn IsEqualTo(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void, pisequal: *mut bool) -> windows_core::HRESULT - where - Identity: IDebugHostContext_Impl, - { + pub const fn new() -> IDebugHostContext_Vtbl { + unsafe extern "system" fn IsEqualTo(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void, pisequal: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostContext_Impl::IsEqualTo(this, windows_core::from_raw_borrowed(&pcontext)) { Ok(ok__) => { @@ -22096,14 +15883,8 @@ pub trait IDebugHostData_Impl: Sized + IDebugHostSymbol_Impl { } impl windows_core::RuntimeName for IDebugHostData {} impl IDebugHostData_Vtbl { - pub const fn new() -> IDebugHostData_Vtbl - where - Identity: IDebugHostData_Impl, - { - unsafe extern "system" fn GetLocationKind(this: *mut core::ffi::c_void, locationkind: *mut LocationKind) -> windows_core::HRESULT - where - Identity: IDebugHostData_Impl, - { + pub const fn new() -> IDebugHostData_Vtbl { + unsafe extern "system" fn GetLocationKind(this: *mut core::ffi::c_void, locationkind: *mut LocationKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostData_Impl::GetLocationKind(this) { Ok(ok__) => { @@ -22113,10 +15894,7 @@ impl IDebugHostData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, location: *mut Location) -> windows_core::HRESULT - where - Identity: IDebugHostData_Impl, - { + unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, location: *mut Location) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostData_Impl::GetLocation(this) { Ok(ok__) => { @@ -22126,10 +15904,7 @@ impl IDebugHostData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugHostData_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostData_Impl::GetValue(this) { Ok(ok__) => { @@ -22150,19 +15925,13 @@ impl IDebugHostData_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDebugHostErrorSink_Impl: Sized { +pub trait IDebugHostErrorSink_Impl: Sized + windows_core::IUnknownImpl { fn ReportError(&self, errclass: ErrorClass, hrerror: windows_core::HRESULT, message: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugHostErrorSink {} impl IDebugHostErrorSink_Vtbl { - pub const fn new() -> IDebugHostErrorSink_Vtbl - where - Identity: IDebugHostErrorSink_Impl, - { - unsafe extern "system" fn ReportError(this: *mut core::ffi::c_void, errclass: ErrorClass, hrerror: windows_core::HRESULT, message: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugHostErrorSink_Impl, - { + pub const fn new() -> IDebugHostErrorSink_Vtbl { + unsafe extern "system" fn ReportError(this: *mut core::ffi::c_void, errclass: ErrorClass, hrerror: windows_core::HRESULT, message: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostErrorSink_Impl::ReportError(this, core::mem::transmute_copy(&errclass), core::mem::transmute_copy(&hrerror), core::mem::transmute(&message)).into() } @@ -22172,27 +15941,18 @@ impl IDebugHostErrorSink_Vtbl { iid == &::IID } } -pub trait IDebugHostEvaluator_Impl: Sized { +pub trait IDebugHostEvaluator_Impl: Sized + windows_core::IUnknownImpl { fn EvaluateExpression(&self, context: Option<&IDebugHostContext>, expression: &windows_core::PCWSTR, bindingcontext: Option<&IModelObject>, result: *mut Option, metadata: *mut Option) -> windows_core::Result<()>; fn EvaluateExtendedExpression(&self, context: Option<&IDebugHostContext>, expression: &windows_core::PCWSTR, bindingcontext: Option<&IModelObject>, result: *mut Option, metadata: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugHostEvaluator {} impl IDebugHostEvaluator_Vtbl { - pub const fn new() -> IDebugHostEvaluator_Vtbl - where - Identity: IDebugHostEvaluator_Impl, - { - unsafe extern "system" fn EvaluateExpression(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, expression: windows_core::PCWSTR, bindingcontext: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostEvaluator_Impl, - { + pub const fn new() -> IDebugHostEvaluator_Vtbl { + unsafe extern "system" fn EvaluateExpression(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, expression: windows_core::PCWSTR, bindingcontext: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostEvaluator_Impl::EvaluateExpression(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&expression), windows_core::from_raw_borrowed(&bindingcontext), core::mem::transmute_copy(&result), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn EvaluateExtendedExpression(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, expression: windows_core::PCWSTR, bindingcontext: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostEvaluator_Impl, - { + unsafe extern "system" fn EvaluateExtendedExpression(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, expression: windows_core::PCWSTR, bindingcontext: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostEvaluator_Impl::EvaluateExtendedExpression(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&expression), windows_core::from_raw_borrowed(&bindingcontext), core::mem::transmute_copy(&result), core::mem::transmute_copy(&metadata)).into() } @@ -22211,14 +15971,8 @@ pub trait IDebugHostEvaluator2_Impl: Sized + IDebugHostEvaluator_Impl { } impl windows_core::RuntimeName for IDebugHostEvaluator2 {} impl IDebugHostEvaluator2_Vtbl { - pub const fn new() -> IDebugHostEvaluator2_Vtbl - where - Identity: IDebugHostEvaluator2_Impl, - { - unsafe extern "system" fn AssignTo(this: *mut core::ffi::c_void, assignmentreference: *mut core::ffi::c_void, assignmentvalue: *mut core::ffi::c_void, assignmentresult: *mut *mut core::ffi::c_void, assignmentmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostEvaluator2_Impl, - { + pub const fn new() -> IDebugHostEvaluator2_Vtbl { + unsafe extern "system" fn AssignTo(this: *mut core::ffi::c_void, assignmentreference: *mut core::ffi::c_void, assignmentvalue: *mut core::ffi::c_void, assignmentresult: *mut *mut core::ffi::c_void, assignmentmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostEvaluator2_Impl::AssignTo(this, windows_core::from_raw_borrowed(&assignmentreference), windows_core::from_raw_borrowed(&assignmentvalue), core::mem::transmute_copy(&assignmentresult), core::mem::transmute_copy(&assignmentmetadata)).into() } @@ -22228,27 +15982,18 @@ impl IDebugHostEvaluator2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDebugHostExtensibility_Impl: Sized { +pub trait IDebugHostExtensibility_Impl: Sized + windows_core::IUnknownImpl { fn CreateFunctionAlias(&self, aliasname: &windows_core::PCWSTR, functionobject: Option<&IModelObject>) -> windows_core::Result<()>; fn DestroyFunctionAlias(&self, aliasname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugHostExtensibility {} impl IDebugHostExtensibility_Vtbl { - pub const fn new() -> IDebugHostExtensibility_Vtbl - where - Identity: IDebugHostExtensibility_Impl, - { - unsafe extern "system" fn CreateFunctionAlias(this: *mut core::ffi::c_void, aliasname: windows_core::PCWSTR, functionobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostExtensibility_Impl, - { + pub const fn new() -> IDebugHostExtensibility_Vtbl { + unsafe extern "system" fn CreateFunctionAlias(this: *mut core::ffi::c_void, aliasname: windows_core::PCWSTR, functionobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostExtensibility_Impl::CreateFunctionAlias(this, core::mem::transmute(&aliasname), windows_core::from_raw_borrowed(&functionobject)).into() } - unsafe extern "system" fn DestroyFunctionAlias(this: *mut core::ffi::c_void, aliasname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugHostExtensibility_Impl, - { + unsafe extern "system" fn DestroyFunctionAlias(this: *mut core::ffi::c_void, aliasname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostExtensibility_Impl::DestroyFunctionAlias(this, core::mem::transmute(&aliasname)).into() } @@ -22270,14 +16015,8 @@ pub trait IDebugHostField_Impl: Sized + IDebugHostSymbol_Impl { } impl windows_core::RuntimeName for IDebugHostField {} impl IDebugHostField_Vtbl { - pub const fn new() -> IDebugHostField_Vtbl - where - Identity: IDebugHostField_Impl, - { - unsafe extern "system" fn GetLocationKind(this: *mut core::ffi::c_void, locationkind: *mut LocationKind) -> windows_core::HRESULT - where - Identity: IDebugHostField_Impl, - { + pub const fn new() -> IDebugHostField_Vtbl { + unsafe extern "system" fn GetLocationKind(this: *mut core::ffi::c_void, locationkind: *mut LocationKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostField_Impl::GetLocationKind(this) { Ok(ok__) => { @@ -22287,10 +16026,7 @@ impl IDebugHostField_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugHostField_Impl, - { + unsafe extern "system" fn GetOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostField_Impl::GetOffset(this) { Ok(ok__) => { @@ -22300,10 +16036,7 @@ impl IDebugHostField_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, location: *mut Location) -> windows_core::HRESULT - where - Identity: IDebugHostField_Impl, - { + unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, location: *mut Location) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostField_Impl::GetLocation(this) { Ok(ok__) => { @@ -22313,10 +16046,7 @@ impl IDebugHostField_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugHostField_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostField_Impl::GetValue(this) { Ok(ok__) => { @@ -22338,7 +16068,7 @@ impl IDebugHostField_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDebugHostMemory_Impl: Sized { +pub trait IDebugHostMemory_Impl: Sized + windows_core::IUnknownImpl { fn ReadBytes(&self, context: Option<&IDebugHostContext>, location: &Location, buffer: *mut core::ffi::c_void, buffersize: u64, bytesread: *mut u64) -> windows_core::Result<()>; fn WriteBytes(&self, context: Option<&IDebugHostContext>, location: &Location, buffer: *const core::ffi::c_void, buffersize: u64, byteswritten: *mut u64) -> windows_core::Result<()>; fn ReadPointers(&self, context: Option<&IDebugHostContext>, location: &Location, count: u64, pointers: *mut u64) -> windows_core::Result<()>; @@ -22347,42 +16077,24 @@ pub trait IDebugHostMemory_Impl: Sized { } impl windows_core::RuntimeName for IDebugHostMemory {} impl IDebugHostMemory_Vtbl { - pub const fn new() -> IDebugHostMemory_Vtbl - where - Identity: IDebugHostMemory_Impl, - { - unsafe extern "system" fn ReadBytes(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 - where - Identity: IDebugHostMemory_Impl, - { + pub const fn new() -> IDebugHostMemory_Vtbl { + unsafe extern "system" fn ReadBytes(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostMemory_Impl::ReadBytes(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&location), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteBytes(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 - where - Identity: IDebugHostMemory_Impl, - { + unsafe extern "system" fn WriteBytes(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostMemory_Impl::WriteBytes(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&location), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn ReadPointers(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, location: Location, count: u64, pointers: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugHostMemory_Impl, - { + unsafe extern "system" fn ReadPointers(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, location: Location, count: u64, pointers: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostMemory_Impl::ReadPointers(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&location), core::mem::transmute_copy(&count), core::mem::transmute_copy(&pointers)).into() } - unsafe extern "system" fn WritePointers(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, location: Location, count: u64, pointers: *const u64) -> windows_core::HRESULT - where - Identity: IDebugHostMemory_Impl, - { + unsafe extern "system" fn WritePointers(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, location: Location, count: u64, pointers: *const u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostMemory_Impl::WritePointers(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&location), core::mem::transmute_copy(&count), core::mem::transmute_copy(&pointers)).into() } - unsafe extern "system" fn GetDisplayStringForLocation(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, location: Location, verbose: u8, locationname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugHostMemory_Impl, - { + unsafe extern "system" fn GetDisplayStringForLocation(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, location: Location, verbose: u8, locationname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostMemory_Impl::GetDisplayStringForLocation(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&location), core::mem::transmute_copy(&verbose)) { Ok(ok__) => { @@ -22410,14 +16122,8 @@ pub trait IDebugHostMemory2_Impl: Sized + IDebugHostMemory_Impl { } impl windows_core::RuntimeName for IDebugHostMemory2 {} impl IDebugHostMemory2_Vtbl { - pub const fn new() -> IDebugHostMemory2_Vtbl - where - Identity: IDebugHostMemory2_Impl, - { - unsafe extern "system" fn LinearizeLocation(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, location: Location, plinearizedlocation: *mut Location) -> windows_core::HRESULT - where - Identity: IDebugHostMemory2_Impl, - { + pub const fn new() -> IDebugHostMemory2_Vtbl { + unsafe extern "system" fn LinearizeLocation(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, location: Location, plinearizedlocation: *mut Location) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostMemory2_Impl::LinearizeLocation(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&location)) { Ok(ok__) => { @@ -22443,14 +16149,8 @@ pub trait IDebugHostModule_Impl: Sized + IDebugHostSymbol_Impl { } impl windows_core::RuntimeName for IDebugHostModule {} impl IDebugHostModule_Vtbl { - pub const fn new() -> IDebugHostModule_Vtbl - where - Identity: IDebugHostModule_Impl, - { - unsafe extern "system" fn GetImageName(this: *mut core::ffi::c_void, allowpath: u8, imagename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugHostModule_Impl, - { + pub const fn new() -> IDebugHostModule_Vtbl { + unsafe extern "system" fn GetImageName(this: *mut core::ffi::c_void, allowpath: u8, imagename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostModule_Impl::GetImageName(this, core::mem::transmute_copy(&allowpath)) { Ok(ok__) => { @@ -22460,10 +16160,7 @@ impl IDebugHostModule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBaseLocation(this: *mut core::ffi::c_void, modulebaselocation: *mut Location) -> windows_core::HRESULT - where - Identity: IDebugHostModule_Impl, - { + unsafe extern "system" fn GetBaseLocation(this: *mut core::ffi::c_void, modulebaselocation: *mut Location) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostModule_Impl::GetBaseLocation(this) { Ok(ok__) => { @@ -22473,17 +16170,11 @@ impl IDebugHostModule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, fileversion: *mut u64, productversion: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugHostModule_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, fileversion: *mut u64, productversion: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostModule_Impl::GetVersion(this, core::mem::transmute_copy(&fileversion), core::mem::transmute_copy(&productversion)).into() } - unsafe extern "system" fn FindTypeByName(this: *mut core::ffi::c_void, typename: windows_core::PCWSTR, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostModule_Impl, - { + unsafe extern "system" fn FindTypeByName(this: *mut core::ffi::c_void, typename: windows_core::PCWSTR, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostModule_Impl::FindTypeByName(this, core::mem::transmute(&typename)) { Ok(ok__) => { @@ -22493,10 +16184,7 @@ impl IDebugHostModule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindSymbolByRVA(this: *mut core::ffi::c_void, rva: u64, symbol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostModule_Impl, - { + unsafe extern "system" fn FindSymbolByRVA(this: *mut core::ffi::c_void, rva: u64, symbol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostModule_Impl::FindSymbolByRVA(this, core::mem::transmute_copy(&rva)) { Ok(ok__) => { @@ -22506,10 +16194,7 @@ impl IDebugHostModule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindSymbolByName(this: *mut core::ffi::c_void, symbolname: windows_core::PCWSTR, symbol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostModule_Impl, - { + unsafe extern "system" fn FindSymbolByName(this: *mut core::ffi::c_void, symbolname: windows_core::PCWSTR, symbol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostModule_Impl::FindSymbolByName(this, core::mem::transmute(&symbolname)) { Ok(ok__) => { @@ -22538,14 +16223,8 @@ pub trait IDebugHostModule2_Impl: Sized + IDebugHostModule_Impl { } impl windows_core::RuntimeName for IDebugHostModule2 {} impl IDebugHostModule2_Vtbl { - pub const fn new() -> IDebugHostModule2_Vtbl - where - Identity: IDebugHostModule2_Impl, - { - unsafe extern "system" fn FindContainingSymbolByRVA(this: *mut core::ffi::c_void, rva: u64, symbol: *mut *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugHostModule2_Impl, - { + pub const fn new() -> IDebugHostModule2_Vtbl { + unsafe extern "system" fn FindContainingSymbolByRVA(this: *mut core::ffi::c_void, rva: u64, symbol: *mut *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostModule2_Impl::FindContainingSymbolByRVA(this, core::mem::transmute_copy(&rva), core::mem::transmute_copy(&symbol), core::mem::transmute_copy(&offset)).into() } @@ -22555,19 +16234,13 @@ impl IDebugHostModule2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDebugHostModuleSignature_Impl: Sized { +pub trait IDebugHostModuleSignature_Impl: Sized + windows_core::IUnknownImpl { fn IsMatch(&self, pmodule: Option<&IDebugHostModule>) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugHostModuleSignature {} impl IDebugHostModuleSignature_Vtbl { - pub const fn new() -> IDebugHostModuleSignature_Vtbl - where - Identity: IDebugHostModuleSignature_Impl, - { - unsafe extern "system" fn IsMatch(this: *mut core::ffi::c_void, pmodule: *mut core::ffi::c_void, ismatch: *mut bool) -> windows_core::HRESULT - where - Identity: IDebugHostModuleSignature_Impl, - { + pub const fn new() -> IDebugHostModuleSignature_Vtbl { + unsafe extern "system" fn IsMatch(this: *mut core::ffi::c_void, pmodule: *mut core::ffi::c_void, ismatch: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostModuleSignature_Impl::IsMatch(this, windows_core::from_raw_borrowed(&pmodule)) { Ok(ok__) => { @@ -22589,14 +16262,8 @@ pub trait IDebugHostPublic_Impl: Sized + IDebugHostSymbol_Impl { } impl windows_core::RuntimeName for IDebugHostPublic {} impl IDebugHostPublic_Vtbl { - pub const fn new() -> IDebugHostPublic_Vtbl - where - Identity: IDebugHostPublic_Impl, - { - unsafe extern "system" fn GetLocationKind(this: *mut core::ffi::c_void, locationkind: *mut LocationKind) -> windows_core::HRESULT - where - Identity: IDebugHostPublic_Impl, - { + pub const fn new() -> IDebugHostPublic_Vtbl { + unsafe extern "system" fn GetLocationKind(this: *mut core::ffi::c_void, locationkind: *mut LocationKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostPublic_Impl::GetLocationKind(this) { Ok(ok__) => { @@ -22606,10 +16273,7 @@ impl IDebugHostPublic_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, location: *mut Location) -> windows_core::HRESULT - where - Identity: IDebugHostPublic_Impl, - { + unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, location: *mut Location) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostPublic_Impl::GetLocation(this) { Ok(ok__) => { @@ -22629,19 +16293,13 @@ impl IDebugHostPublic_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDebugHostScriptHost_Impl: Sized { +pub trait IDebugHostScriptHost_Impl: Sized + windows_core::IUnknownImpl { fn CreateContext(&self, script: Option<&IDataModelScript>) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugHostScriptHost {} impl IDebugHostScriptHost_Vtbl { - pub const fn new() -> IDebugHostScriptHost_Vtbl - where - Identity: IDebugHostScriptHost_Impl, - { - unsafe extern "system" fn CreateContext(this: *mut core::ffi::c_void, script: *mut core::ffi::c_void, scriptcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostScriptHost_Impl, - { + pub const fn new() -> IDebugHostScriptHost_Vtbl { + unsafe extern "system" fn CreateContext(this: *mut core::ffi::c_void, script: *mut core::ffi::c_void, scriptcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostScriptHost_Impl::CreateContext(this, windows_core::from_raw_borrowed(&script)) { Ok(ok__) => { @@ -22657,19 +16315,13 @@ impl IDebugHostScriptHost_Vtbl { iid == &::IID } } -pub trait IDebugHostStatus_Impl: Sized { +pub trait IDebugHostStatus_Impl: Sized + windows_core::IUnknownImpl { fn PollUserInterrupt(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugHostStatus {} impl IDebugHostStatus_Vtbl { - pub const fn new() -> IDebugHostStatus_Vtbl - where - Identity: IDebugHostStatus_Impl, - { - unsafe extern "system" fn PollUserInterrupt(this: *mut core::ffi::c_void, interruptrequested: *mut bool) -> windows_core::HRESULT - where - Identity: IDebugHostStatus_Impl, - { + pub const fn new() -> IDebugHostStatus_Vtbl { + unsafe extern "system" fn PollUserInterrupt(this: *mut core::ffi::c_void, interruptrequested: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostStatus_Impl::PollUserInterrupt(this) { Ok(ok__) => { @@ -22685,7 +16337,7 @@ impl IDebugHostStatus_Vtbl { iid == &::IID } } -pub trait IDebugHostSymbol_Impl: Sized { +pub trait IDebugHostSymbol_Impl: Sized + windows_core::IUnknownImpl { fn GetContext(&self) -> windows_core::Result; fn EnumerateChildren(&self, kind: SymbolKind, name: &windows_core::PCWSTR) -> windows_core::Result; fn GetSymbolKind(&self) -> windows_core::Result; @@ -22696,14 +16348,8 @@ pub trait IDebugHostSymbol_Impl: Sized { } impl windows_core::RuntimeName for IDebugHostSymbol {} impl IDebugHostSymbol_Vtbl { - pub const fn new() -> IDebugHostSymbol_Vtbl - where - Identity: IDebugHostSymbol_Impl, - { - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbol_Impl, - { + pub const fn new() -> IDebugHostSymbol_Vtbl { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbol_Impl::GetContext(this) { Ok(ok__) => { @@ -22713,10 +16359,7 @@ impl IDebugHostSymbol_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateChildren(this: *mut core::ffi::c_void, kind: SymbolKind, name: windows_core::PCWSTR, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbol_Impl, - { + unsafe extern "system" fn EnumerateChildren(this: *mut core::ffi::c_void, kind: SymbolKind, name: windows_core::PCWSTR, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbol_Impl::EnumerateChildren(this, core::mem::transmute_copy(&kind), core::mem::transmute(&name)) { Ok(ok__) => { @@ -22726,10 +16369,7 @@ impl IDebugHostSymbol_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolKind(this: *mut core::ffi::c_void, kind: *mut SymbolKind) -> windows_core::HRESULT - where - Identity: IDebugHostSymbol_Impl, - { + unsafe extern "system" fn GetSymbolKind(this: *mut core::ffi::c_void, kind: *mut SymbolKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbol_Impl::GetSymbolKind(this) { Ok(ok__) => { @@ -22739,10 +16379,7 @@ impl IDebugHostSymbol_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, symbolname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugHostSymbol_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, symbolname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbol_Impl::GetName(this) { Ok(ok__) => { @@ -22752,10 +16389,7 @@ impl IDebugHostSymbol_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbol_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbol_Impl::GetType(this) { Ok(ok__) => { @@ -22765,10 +16399,7 @@ impl IDebugHostSymbol_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContainingModule(this: *mut core::ffi::c_void, containingmodule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbol_Impl, - { + unsafe extern "system" fn GetContainingModule(this: *mut core::ffi::c_void, containingmodule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbol_Impl::GetContainingModule(this) { Ok(ok__) => { @@ -22778,10 +16409,7 @@ impl IDebugHostSymbol_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareAgainst(this: *mut core::ffi::c_void, pcomparisonsymbol: *mut core::ffi::c_void, comparisonflags: u32, pmatches: *mut bool) -> windows_core::HRESULT - where - Identity: IDebugHostSymbol_Impl, - { + unsafe extern "system" fn CompareAgainst(this: *mut core::ffi::c_void, pcomparisonsymbol: *mut core::ffi::c_void, comparisonflags: u32, pmatches: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbol_Impl::CompareAgainst(this, windows_core::from_raw_borrowed(&pcomparisonsymbol), core::mem::transmute_copy(&comparisonflags)) { Ok(ok__) => { @@ -22811,14 +16439,8 @@ pub trait IDebugHostSymbol2_Impl: Sized + IDebugHostSymbol_Impl { } impl windows_core::RuntimeName for IDebugHostSymbol2 {} impl IDebugHostSymbol2_Vtbl { - pub const fn new() -> IDebugHostSymbol2_Vtbl - where - Identity: IDebugHostSymbol2_Impl, - { - unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, pkind: *mut LanguageKind) -> windows_core::HRESULT - where - Identity: IDebugHostSymbol2_Impl, - { + pub const fn new() -> IDebugHostSymbol2_Vtbl { + unsafe extern "system" fn GetLanguage(this: *mut core::ffi::c_void, pkind: *mut LanguageKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbol2_Impl::GetLanguage(this) { Ok(ok__) => { @@ -22834,27 +16456,18 @@ impl IDebugHostSymbol2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDebugHostSymbolEnumerator_Impl: Sized { +pub trait IDebugHostSymbolEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn GetNext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugHostSymbolEnumerator {} impl IDebugHostSymbolEnumerator_Vtbl { - pub const fn new() -> IDebugHostSymbolEnumerator_Vtbl - where - Identity: IDebugHostSymbolEnumerator_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbolEnumerator_Impl, - { + pub const fn new() -> IDebugHostSymbolEnumerator_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostSymbolEnumerator_Impl::Reset(this).into() } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, symbol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbolEnumerator_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, symbol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbolEnumerator_Impl::GetNext(this) { Ok(ok__) => { @@ -22870,7 +16483,7 @@ impl IDebugHostSymbolEnumerator_Vtbl { iid == &::IID } } -pub trait IDebugHostSymbols_Impl: Sized { +pub trait IDebugHostSymbols_Impl: Sized + windows_core::IUnknownImpl { fn CreateModuleSignature(&self, pwszmodulename: &windows_core::PCWSTR, pwszminversion: &windows_core::PCWSTR, pwszmaxversion: &windows_core::PCWSTR) -> windows_core::Result; fn CreateTypeSignature(&self, signaturespecification: &windows_core::PCWSTR, module: Option<&IDebugHostModule>) -> windows_core::Result; fn CreateTypeSignatureForModuleRange(&self, signaturespecification: &windows_core::PCWSTR, modulename: &windows_core::PCWSTR, minversion: &windows_core::PCWSTR, maxversion: &windows_core::PCWSTR) -> windows_core::Result; @@ -22881,14 +16494,8 @@ pub trait IDebugHostSymbols_Impl: Sized { } impl windows_core::RuntimeName for IDebugHostSymbols {} impl IDebugHostSymbols_Vtbl { - pub const fn new() -> IDebugHostSymbols_Vtbl - where - Identity: IDebugHostSymbols_Impl, - { - unsafe extern "system" fn CreateModuleSignature(this: *mut core::ffi::c_void, pwszmodulename: windows_core::PCWSTR, pwszminversion: windows_core::PCWSTR, pwszmaxversion: windows_core::PCWSTR, ppmodulesignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbols_Impl, - { + pub const fn new() -> IDebugHostSymbols_Vtbl { + unsafe extern "system" fn CreateModuleSignature(this: *mut core::ffi::c_void, pwszmodulename: windows_core::PCWSTR, pwszminversion: windows_core::PCWSTR, pwszmaxversion: windows_core::PCWSTR, ppmodulesignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbols_Impl::CreateModuleSignature(this, core::mem::transmute(&pwszmodulename), core::mem::transmute(&pwszminversion), core::mem::transmute(&pwszmaxversion)) { Ok(ok__) => { @@ -22898,10 +16505,7 @@ impl IDebugHostSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTypeSignature(this: *mut core::ffi::c_void, signaturespecification: windows_core::PCWSTR, module: *mut core::ffi::c_void, typesignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbols_Impl, - { + unsafe extern "system" fn CreateTypeSignature(this: *mut core::ffi::c_void, signaturespecification: windows_core::PCWSTR, module: *mut core::ffi::c_void, typesignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbols_Impl::CreateTypeSignature(this, core::mem::transmute(&signaturespecification), windows_core::from_raw_borrowed(&module)) { Ok(ok__) => { @@ -22911,10 +16515,7 @@ impl IDebugHostSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTypeSignatureForModuleRange(this: *mut core::ffi::c_void, signaturespecification: windows_core::PCWSTR, modulename: windows_core::PCWSTR, minversion: windows_core::PCWSTR, maxversion: windows_core::PCWSTR, typesignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbols_Impl, - { + unsafe extern "system" fn CreateTypeSignatureForModuleRange(this: *mut core::ffi::c_void, signaturespecification: windows_core::PCWSTR, modulename: windows_core::PCWSTR, minversion: windows_core::PCWSTR, maxversion: windows_core::PCWSTR, typesignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbols_Impl::CreateTypeSignatureForModuleRange(this, core::mem::transmute(&signaturespecification), core::mem::transmute(&modulename), core::mem::transmute(&minversion), core::mem::transmute(&maxversion)) { Ok(ok__) => { @@ -22924,10 +16525,7 @@ impl IDebugHostSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateModules(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, moduleenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbols_Impl, - { + unsafe extern "system" fn EnumerateModules(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, moduleenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbols_Impl::EnumerateModules(this, windows_core::from_raw_borrowed(&context)) { Ok(ok__) => { @@ -22937,10 +16535,7 @@ impl IDebugHostSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindModuleByName(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, modulename: windows_core::PCWSTR, module: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbols_Impl, - { + unsafe extern "system" fn FindModuleByName(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, modulename: windows_core::PCWSTR, module: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbols_Impl::FindModuleByName(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&modulename)) { Ok(ok__) => { @@ -22950,10 +16545,7 @@ impl IDebugHostSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindModuleByLocation(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, modulelocation: Location, module: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbols_Impl, - { + unsafe extern "system" fn FindModuleByLocation(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, modulelocation: Location, module: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostSymbols_Impl::FindModuleByLocation(this, windows_core::from_raw_borrowed(&context), core::mem::transmute(&modulelocation)) { Ok(ok__) => { @@ -22963,10 +16555,7 @@ impl IDebugHostSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMostDerivedObject(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void, location: Location, objecttype: *mut core::ffi::c_void, derivedlocation: *mut Location, derivedtype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostSymbols_Impl, - { + unsafe extern "system" fn GetMostDerivedObject(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void, location: Location, objecttype: *mut core::ffi::c_void, derivedlocation: *mut Location, derivedtype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostSymbols_Impl::GetMostDerivedObject(this, windows_core::from_raw_borrowed(&pcontext), core::mem::transmute(&location), windows_core::from_raw_borrowed(&objecttype), core::mem::transmute_copy(&derivedlocation), core::mem::transmute_copy(&derivedtype)).into() } @@ -23008,14 +16597,8 @@ pub trait IDebugHostType_Impl: Sized + IDebugHostSymbol_Impl { } impl windows_core::RuntimeName for IDebugHostType {} impl IDebugHostType_Vtbl { - pub const fn new() -> IDebugHostType_Vtbl - where - Identity: IDebugHostType_Impl, - { - unsafe extern "system" fn GetTypeKind(this: *mut core::ffi::c_void, kind: *mut TypeKind) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + pub const fn new() -> IDebugHostType_Vtbl { + unsafe extern "system" fn GetTypeKind(this: *mut core::ffi::c_void, kind: *mut TypeKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetTypeKind(this) { Ok(ok__) => { @@ -23025,10 +16608,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, size: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, size: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetSize(this) { Ok(ok__) => { @@ -23038,10 +16618,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBaseType(this: *mut core::ffi::c_void, basetype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetBaseType(this: *mut core::ffi::c_void, basetype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetBaseType(this) { Ok(ok__) => { @@ -23051,10 +16628,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHashCode(this: *mut core::ffi::c_void, hashcode: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetHashCode(this: *mut core::ffi::c_void, hashcode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetHashCode(this) { Ok(ok__) => { @@ -23064,24 +16638,15 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIntrinsicType(this: *mut core::ffi::c_void, intrinsickind: *mut IntrinsicKind, carriertype: *mut u16) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetIntrinsicType(this: *mut core::ffi::c_void, intrinsickind: *mut IntrinsicKind, carriertype: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostType_Impl::GetIntrinsicType(this, core::mem::transmute_copy(&intrinsickind), core::mem::transmute_copy(&carriertype)).into() } - unsafe extern "system" fn GetBitField(this: *mut core::ffi::c_void, lsboffield: *mut u32, lengthoffield: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetBitField(this: *mut core::ffi::c_void, lsboffield: *mut u32, lengthoffield: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostType_Impl::GetBitField(this, core::mem::transmute_copy(&lsboffield), core::mem::transmute_copy(&lengthoffield)).into() } - unsafe extern "system" fn GetPointerKind(this: *mut core::ffi::c_void, pointerkind: *mut PointerKind) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetPointerKind(this: *mut core::ffi::c_void, pointerkind: *mut PointerKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetPointerKind(this) { Ok(ok__) => { @@ -23091,10 +16656,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMemberType(this: *mut core::ffi::c_void, membertype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetMemberType(this: *mut core::ffi::c_void, membertype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetMemberType(this) { Ok(ok__) => { @@ -23104,10 +16666,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePointerTo(this: *mut core::ffi::c_void, kind: PointerKind, newtype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn CreatePointerTo(this: *mut core::ffi::c_void, kind: PointerKind, newtype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::CreatePointerTo(this, core::mem::transmute_copy(&kind)) { Ok(ok__) => { @@ -23117,10 +16676,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetArrayDimensionality(this: *mut core::ffi::c_void, arraydimensionality: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetArrayDimensionality(this: *mut core::ffi::c_void, arraydimensionality: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetArrayDimensionality(this) { Ok(ok__) => { @@ -23130,17 +16686,11 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetArrayDimensions(this: *mut core::ffi::c_void, dimensions: u64, pdimensions: *mut ArrayDimension) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetArrayDimensions(this: *mut core::ffi::c_void, dimensions: u64, pdimensions: *mut ArrayDimension) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostType_Impl::GetArrayDimensions(this, core::mem::transmute_copy(&dimensions), core::mem::transmute_copy(&pdimensions)).into() } - unsafe extern "system" fn CreateArrayOf(this: *mut core::ffi::c_void, dimensions: u64, pdimensions: *const ArrayDimension, newtype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn CreateArrayOf(this: *mut core::ffi::c_void, dimensions: u64, pdimensions: *const ArrayDimension, newtype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::CreateArrayOf(this, core::mem::transmute_copy(&dimensions), core::mem::transmute_copy(&pdimensions)) { Ok(ok__) => { @@ -23150,10 +16700,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionCallingConvention(this: *mut core::ffi::c_void, conventionkind: *mut CallingConventionKind) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetFunctionCallingConvention(this: *mut core::ffi::c_void, conventionkind: *mut CallingConventionKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetFunctionCallingConvention(this) { Ok(ok__) => { @@ -23163,10 +16710,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionReturnType(this: *mut core::ffi::c_void, returntype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetFunctionReturnType(this: *mut core::ffi::c_void, returntype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetFunctionReturnType(this) { Ok(ok__) => { @@ -23176,10 +16720,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionParameterTypeCount(this: *mut core::ffi::c_void, count: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetFunctionParameterTypeCount(this: *mut core::ffi::c_void, count: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetFunctionParameterTypeCount(this) { Ok(ok__) => { @@ -23189,10 +16730,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionParameterTypeAt(this: *mut core::ffi::c_void, i: u64, parametertype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetFunctionParameterTypeAt(this: *mut core::ffi::c_void, i: u64, parametertype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetFunctionParameterTypeAt(this, core::mem::transmute_copy(&i)) { Ok(ok__) => { @@ -23202,10 +16740,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsGeneric(this: *mut core::ffi::c_void, isgeneric: *mut bool) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn IsGeneric(this: *mut core::ffi::c_void, isgeneric: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::IsGeneric(this) { Ok(ok__) => { @@ -23215,10 +16750,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGenericArgumentCount(this: *mut core::ffi::c_void, argcount: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetGenericArgumentCount(this: *mut core::ffi::c_void, argcount: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetGenericArgumentCount(this) { Ok(ok__) => { @@ -23228,10 +16760,7 @@ impl IDebugHostType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGenericArgumentAt(this: *mut core::ffi::c_void, i: u64, argument: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostType_Impl, - { + unsafe extern "system" fn GetGenericArgumentAt(this: *mut core::ffi::c_void, i: u64, argument: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType_Impl::GetGenericArgumentAt(this, core::mem::transmute_copy(&i)) { Ok(ok__) => { @@ -23277,14 +16806,8 @@ pub trait IDebugHostType2_Impl: Sized + IDebugHostType_Impl { } impl windows_core::RuntimeName for IDebugHostType2 {} impl IDebugHostType2_Vtbl { - pub const fn new() -> IDebugHostType2_Vtbl - where - Identity: IDebugHostType2_Impl, - { - unsafe extern "system" fn IsTypedef(this: *mut core::ffi::c_void, istypedef: *mut bool) -> windows_core::HRESULT - where - Identity: IDebugHostType2_Impl, - { + pub const fn new() -> IDebugHostType2_Vtbl { + unsafe extern "system" fn IsTypedef(this: *mut core::ffi::c_void, istypedef: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType2_Impl::IsTypedef(this) { Ok(ok__) => { @@ -23294,10 +16817,7 @@ impl IDebugHostType2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypedefBaseType(this: *mut core::ffi::c_void, basetype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostType2_Impl, - { + unsafe extern "system" fn GetTypedefBaseType(this: *mut core::ffi::c_void, basetype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType2_Impl::GetTypedefBaseType(this) { Ok(ok__) => { @@ -23307,10 +16827,7 @@ impl IDebugHostType2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypedefFinalBaseType(this: *mut core::ffi::c_void, finalbasetype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostType2_Impl, - { + unsafe extern "system" fn GetTypedefFinalBaseType(this: *mut core::ffi::c_void, finalbasetype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType2_Impl::GetTypedefFinalBaseType(this) { Ok(ok__) => { @@ -23320,10 +16837,7 @@ impl IDebugHostType2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionVarArgsKind(this: *mut core::ffi::c_void, varargskind: *mut VarArgsKind) -> windows_core::HRESULT - where - Identity: IDebugHostType2_Impl, - { + unsafe extern "system" fn GetFunctionVarArgsKind(this: *mut core::ffi::c_void, varargskind: *mut VarArgsKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType2_Impl::GetFunctionVarArgsKind(this) { Ok(ok__) => { @@ -23333,10 +16847,7 @@ impl IDebugHostType2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionInstancePointerType(this: *mut core::ffi::c_void, instancepointertype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostType2_Impl, - { + unsafe extern "system" fn GetFunctionInstancePointerType(this: *mut core::ffi::c_void, instancepointertype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostType2_Impl::GetFunctionInstancePointerType(this) { Ok(ok__) => { @@ -23359,21 +16870,15 @@ impl IDebugHostType2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDebugHostTypeSignature_Impl: Sized { +pub trait IDebugHostTypeSignature_Impl: Sized + windows_core::IUnknownImpl { fn GetHashCode(&self) -> windows_core::Result; fn IsMatch(&self, r#type: Option<&IDebugHostType>, ismatch: *mut bool, wildcardmatches: *mut Option) -> windows_core::Result<()>; fn CompareAgainst(&self, typesignature: Option<&IDebugHostTypeSignature>) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugHostTypeSignature {} impl IDebugHostTypeSignature_Vtbl { - pub const fn new() -> IDebugHostTypeSignature_Vtbl - where - Identity: IDebugHostTypeSignature_Impl, - { - unsafe extern "system" fn GetHashCode(this: *mut core::ffi::c_void, hashcode: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugHostTypeSignature_Impl, - { + pub const fn new() -> IDebugHostTypeSignature_Vtbl { + unsafe extern "system" fn GetHashCode(this: *mut core::ffi::c_void, hashcode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostTypeSignature_Impl::GetHashCode(this) { Ok(ok__) => { @@ -23383,17 +16888,11 @@ impl IDebugHostTypeSignature_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsMatch(this: *mut core::ffi::c_void, r#type: *mut core::ffi::c_void, ismatch: *mut bool, wildcardmatches: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugHostTypeSignature_Impl, - { + unsafe extern "system" fn IsMatch(this: *mut core::ffi::c_void, r#type: *mut core::ffi::c_void, ismatch: *mut bool, wildcardmatches: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugHostTypeSignature_Impl::IsMatch(this, windows_core::from_raw_borrowed(&r#type), core::mem::transmute_copy(&ismatch), core::mem::transmute_copy(&wildcardmatches)).into() } - unsafe extern "system" fn CompareAgainst(this: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void, result: *mut SignatureComparison) -> windows_core::HRESULT - where - Identity: IDebugHostTypeSignature_Impl, - { + unsafe extern "system" fn CompareAgainst(this: *mut core::ffi::c_void, typesignature: *mut core::ffi::c_void, result: *mut SignatureComparison) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugHostTypeSignature_Impl::CompareAgainst(this, windows_core::from_raw_borrowed(&typesignature)) { Ok(ok__) => { @@ -23414,27 +16913,18 @@ impl IDebugHostTypeSignature_Vtbl { iid == &::IID } } -pub trait IDebugInputCallbacks_Impl: Sized { +pub trait IDebugInputCallbacks_Impl: Sized + windows_core::IUnknownImpl { fn StartInput(&self, buffersize: u32) -> windows_core::Result<()>; fn EndInput(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugInputCallbacks {} impl IDebugInputCallbacks_Vtbl { - pub const fn new() -> IDebugInputCallbacks_Vtbl - where - Identity: IDebugInputCallbacks_Impl, - { - unsafe extern "system" fn StartInput(this: *mut core::ffi::c_void, buffersize: u32) -> windows_core::HRESULT - where - Identity: IDebugInputCallbacks_Impl, - { + pub const fn new() -> IDebugInputCallbacks_Vtbl { + unsafe extern "system" fn StartInput(this: *mut core::ffi::c_void, buffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugInputCallbacks_Impl::StartInput(this, core::mem::transmute_copy(&buffersize)).into() } - unsafe extern "system" fn EndInput(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugInputCallbacks_Impl, - { + unsafe extern "system" fn EndInput(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugInputCallbacks_Impl::EndInput(this).into() } @@ -23448,19 +16938,13 @@ impl IDebugInputCallbacks_Vtbl { iid == &::IID } } -pub trait IDebugOutputCallbacks_Impl: Sized { +pub trait IDebugOutputCallbacks_Impl: Sized + windows_core::IUnknownImpl { fn Output(&self, mask: u32, text: &windows_core::PCSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugOutputCallbacks {} impl IDebugOutputCallbacks_Vtbl { - pub const fn new() -> IDebugOutputCallbacks_Vtbl - where - Identity: IDebugOutputCallbacks_Impl, - { - unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, text: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugOutputCallbacks_Impl, - { + pub const fn new() -> IDebugOutputCallbacks_Vtbl { + unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, text: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugOutputCallbacks_Impl::Output(this, core::mem::transmute_copy(&mask), core::mem::transmute(&text)).into() } @@ -23470,28 +16954,19 @@ impl IDebugOutputCallbacks_Vtbl { iid == &::IID } } -pub trait IDebugOutputCallbacks2_Impl: Sized { +pub trait IDebugOutputCallbacks2_Impl: Sized + windows_core::IUnknownImpl { fn Output(&self, mask: u32, text: &windows_core::PCSTR) -> windows_core::Result<()>; fn GetInterestMask(&self) -> windows_core::Result; fn Output2(&self, which: u32, flags: u32, arg: u64, text: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugOutputCallbacks2 {} impl IDebugOutputCallbacks2_Vtbl { - pub const fn new() -> IDebugOutputCallbacks2_Vtbl - where - Identity: IDebugOutputCallbacks2_Impl, - { - unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, text: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugOutputCallbacks2_Impl, - { + pub const fn new() -> IDebugOutputCallbacks2_Vtbl { + unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, text: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugOutputCallbacks2_Impl::Output(this, core::mem::transmute_copy(&mask), core::mem::transmute(&text)).into() } - unsafe extern "system" fn GetInterestMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugOutputCallbacks2_Impl, - { + unsafe extern "system" fn GetInterestMask(this: *mut core::ffi::c_void, mask: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugOutputCallbacks2_Impl::GetInterestMask(this) { Ok(ok__) => { @@ -23501,10 +16976,7 @@ impl IDebugOutputCallbacks2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Output2(this: *mut core::ffi::c_void, which: u32, flags: u32, arg: u64, text: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugOutputCallbacks2_Impl, - { + unsafe extern "system" fn Output2(this: *mut core::ffi::c_void, which: u32, flags: u32, arg: u64, text: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugOutputCallbacks2_Impl::Output2(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&arg), core::mem::transmute(&text)).into() } @@ -23519,19 +16991,13 @@ impl IDebugOutputCallbacks2_Vtbl { iid == &::IID } } -pub trait IDebugOutputCallbacksWide_Impl: Sized { +pub trait IDebugOutputCallbacksWide_Impl: Sized + windows_core::IUnknownImpl { fn Output(&self, mask: u32, text: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugOutputCallbacksWide {} impl IDebugOutputCallbacksWide_Vtbl { - pub const fn new() -> IDebugOutputCallbacksWide_Vtbl - where - Identity: IDebugOutputCallbacksWide_Impl, - { - unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, text: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugOutputCallbacksWide_Impl, - { + pub const fn new() -> IDebugOutputCallbacksWide_Vtbl { + unsafe extern "system" fn Output(this: *mut core::ffi::c_void, mask: u32, text: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugOutputCallbacksWide_Impl::Output(this, core::mem::transmute_copy(&mask), core::mem::transmute(&text)).into() } @@ -23541,19 +17007,13 @@ impl IDebugOutputCallbacksWide_Vtbl { iid == &::IID } } -pub trait IDebugOutputStream_Impl: Sized { +pub trait IDebugOutputStream_Impl: Sized + windows_core::IUnknownImpl { fn Write(&self, psz: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugOutputStream {} impl IDebugOutputStream_Vtbl { - pub const fn new() -> IDebugOutputStream_Vtbl - where - Identity: IDebugOutputStream_Impl, - { - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugOutputStream_Impl, - { + pub const fn new() -> IDebugOutputStream_Vtbl { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugOutputStream_Impl::Write(this, core::mem::transmute(&psz)).into() } @@ -23563,19 +17023,13 @@ impl IDebugOutputStream_Vtbl { iid == &::IID } } -pub trait IDebugPlmClient_Impl: Sized { +pub trait IDebugPlmClient_Impl: Sized + windows_core::IUnknownImpl { fn LaunchPlmPackageForDebugWide(&self, server: u64, timeout: u32, packagefullname: &windows_core::PCWSTR, appname: &windows_core::PCWSTR, arguments: &windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugPlmClient {} impl IDebugPlmClient_Vtbl { - pub const fn new() -> IDebugPlmClient_Vtbl - where - Identity: IDebugPlmClient_Impl, - { - unsafe extern "system" fn LaunchPlmPackageForDebugWide(this: *mut core::ffi::c_void, server: u64, timeout: u32, packagefullname: windows_core::PCWSTR, appname: windows_core::PCWSTR, arguments: windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugPlmClient_Impl, - { + pub const fn new() -> IDebugPlmClient_Vtbl { + unsafe extern "system" fn LaunchPlmPackageForDebugWide(this: *mut core::ffi::c_void, server: u64, timeout: u32, packagefullname: windows_core::PCWSTR, appname: windows_core::PCWSTR, arguments: windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient_Impl::LaunchPlmPackageForDebugWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&timeout), core::mem::transmute(&packagefullname), core::mem::transmute(&appname), core::mem::transmute(&arguments), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid)).into() } @@ -23585,27 +17039,18 @@ impl IDebugPlmClient_Vtbl { iid == &::IID } } -pub trait IDebugPlmClient2_Impl: Sized { +pub trait IDebugPlmClient2_Impl: Sized + windows_core::IUnknownImpl { fn LaunchPlmPackageForDebugWide(&self, server: u64, timeout: u32, packagefullname: &windows_core::PCWSTR, appname: &windows_core::PCWSTR, arguments: &windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()>; fn LaunchPlmBgTaskForDebugWide(&self, server: u64, timeout: u32, packagefullname: &windows_core::PCWSTR, backgroundtaskid: &windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDebugPlmClient2 {} impl IDebugPlmClient2_Vtbl { - pub const fn new() -> IDebugPlmClient2_Vtbl - where - Identity: IDebugPlmClient2_Impl, - { - unsafe extern "system" fn LaunchPlmPackageForDebugWide(this: *mut core::ffi::c_void, server: u64, timeout: u32, packagefullname: windows_core::PCWSTR, appname: windows_core::PCWSTR, arguments: windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugPlmClient2_Impl, - { + pub const fn new() -> IDebugPlmClient2_Vtbl { + unsafe extern "system" fn LaunchPlmPackageForDebugWide(this: *mut core::ffi::c_void, server: u64, timeout: u32, packagefullname: windows_core::PCWSTR, appname: windows_core::PCWSTR, arguments: windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient2_Impl::LaunchPlmPackageForDebugWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&timeout), core::mem::transmute(&packagefullname), core::mem::transmute(&appname), core::mem::transmute(&arguments), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid)).into() } - unsafe extern "system" fn LaunchPlmBgTaskForDebugWide(this: *mut core::ffi::c_void, server: u64, timeout: u32, packagefullname: windows_core::PCWSTR, backgroundtaskid: windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugPlmClient2_Impl, - { + unsafe extern "system" fn LaunchPlmBgTaskForDebugWide(this: *mut core::ffi::c_void, server: u64, timeout: u32, packagefullname: windows_core::PCWSTR, backgroundtaskid: windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient2_Impl::LaunchPlmBgTaskForDebugWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&timeout), core::mem::transmute(&packagefullname), core::mem::transmute(&backgroundtaskid), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid)).into() } @@ -23619,7 +17064,7 @@ impl IDebugPlmClient2_Vtbl { iid == &::IID } } -pub trait IDebugPlmClient3_Impl: Sized { +pub trait IDebugPlmClient3_Impl: Sized + windows_core::IUnknownImpl { fn LaunchPlmPackageForDebugWide(&self, server: u64, timeout: u32, packagefullname: &windows_core::PCWSTR, appname: &windows_core::PCWSTR, arguments: &windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()>; fn LaunchPlmBgTaskForDebugWide(&self, server: u64, timeout: u32, packagefullname: &windows_core::PCWSTR, backgroundtaskid: &windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::Result<()>; fn QueryPlmPackageWide(&self, server: u64, packagefullname: &windows_core::PCWSTR, stream: Option<&IDebugOutputStream>) -> windows_core::Result<()>; @@ -23634,84 +17079,48 @@ pub trait IDebugPlmClient3_Impl: Sized { } impl windows_core::RuntimeName for IDebugPlmClient3 {} impl IDebugPlmClient3_Vtbl { - pub const fn new() -> IDebugPlmClient3_Vtbl - where - Identity: IDebugPlmClient3_Impl, - { - unsafe extern "system" fn LaunchPlmPackageForDebugWide(this: *mut core::ffi::c_void, server: u64, timeout: u32, packagefullname: windows_core::PCWSTR, appname: windows_core::PCWSTR, arguments: windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + pub const fn new() -> IDebugPlmClient3_Vtbl { + unsafe extern "system" fn LaunchPlmPackageForDebugWide(this: *mut core::ffi::c_void, server: u64, timeout: u32, packagefullname: windows_core::PCWSTR, appname: windows_core::PCWSTR, arguments: windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::LaunchPlmPackageForDebugWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&timeout), core::mem::transmute(&packagefullname), core::mem::transmute(&appname), core::mem::transmute(&arguments), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid)).into() } - unsafe extern "system" fn LaunchPlmBgTaskForDebugWide(this: *mut core::ffi::c_void, server: u64, timeout: u32, packagefullname: windows_core::PCWSTR, backgroundtaskid: windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + unsafe extern "system" fn LaunchPlmBgTaskForDebugWide(this: *mut core::ffi::c_void, server: u64, timeout: u32, packagefullname: windows_core::PCWSTR, backgroundtaskid: windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::LaunchPlmBgTaskForDebugWide(this, core::mem::transmute_copy(&server), core::mem::transmute_copy(&timeout), core::mem::transmute(&packagefullname), core::mem::transmute(&backgroundtaskid), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&threadid)).into() } - unsafe extern "system" fn QueryPlmPackageWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR, stream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + unsafe extern "system" fn QueryPlmPackageWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR, stream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::QueryPlmPackageWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&packagefullname), windows_core::from_raw_borrowed(&stream)).into() } - unsafe extern "system" fn QueryPlmPackageList(this: *mut core::ffi::c_void, server: u64, stream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + unsafe extern "system" fn QueryPlmPackageList(this: *mut core::ffi::c_void, server: u64, stream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::QueryPlmPackageList(this, core::mem::transmute_copy(&server), windows_core::from_raw_borrowed(&stream)).into() } - unsafe extern "system" fn EnablePlmPackageDebugWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + unsafe extern "system" fn EnablePlmPackageDebugWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::EnablePlmPackageDebugWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn DisablePlmPackageDebugWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + unsafe extern "system" fn DisablePlmPackageDebugWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::DisablePlmPackageDebugWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn SuspendPlmPackageWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + unsafe extern "system" fn SuspendPlmPackageWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::SuspendPlmPackageWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn ResumePlmPackageWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + unsafe extern "system" fn ResumePlmPackageWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::ResumePlmPackageWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn TerminatePlmPackageWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + unsafe extern "system" fn TerminatePlmPackageWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::TerminatePlmPackageWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn LaunchAndDebugPlmAppWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR, appname: windows_core::PCWSTR, arguments: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + unsafe extern "system" fn LaunchAndDebugPlmAppWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR, appname: windows_core::PCWSTR, arguments: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::LaunchAndDebugPlmAppWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&packagefullname), core::mem::transmute(&appname), core::mem::transmute(&arguments)).into() } - unsafe extern "system" fn ActivateAndDebugPlmBgTaskWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR, backgroundtaskid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugPlmClient3_Impl, - { + unsafe extern "system" fn ActivateAndDebugPlmBgTaskWide(this: *mut core::ffi::c_void, server: u64, packagefullname: windows_core::PCWSTR, backgroundtaskid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugPlmClient3_Impl::ActivateAndDebugPlmBgTaskWide(this, core::mem::transmute_copy(&server), core::mem::transmute(&packagefullname), core::mem::transmute(&backgroundtaskid)).into() } @@ -23734,7 +17143,7 @@ impl IDebugPlmClient3_Vtbl { iid == &::IID } } -pub trait IDebugRegisters_Impl: Sized { +pub trait IDebugRegisters_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberRegisters(&self) -> windows_core::Result; fn GetDescription(&self, register: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, desc: *mut DEBUG_REGISTER_DESCRIPTION) -> windows_core::Result<()>; fn GetIndexByName(&self, name: &windows_core::PCSTR) -> windows_core::Result; @@ -23749,14 +17158,8 @@ pub trait IDebugRegisters_Impl: Sized { } impl windows_core::RuntimeName for IDebugRegisters {} impl IDebugRegisters_Vtbl { - pub const fn new() -> IDebugRegisters_Vtbl - where - Identity: IDebugRegisters_Impl, - { - unsafe extern "system" fn GetNumberRegisters(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + pub const fn new() -> IDebugRegisters_Vtbl { + unsafe extern "system" fn GetNumberRegisters(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters_Impl::GetNumberRegisters(this) { Ok(ok__) => { @@ -23766,17 +17169,11 @@ impl IDebugRegisters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, register: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, desc: *mut DEBUG_REGISTER_DESCRIPTION) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, register: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, desc: *mut DEBUG_REGISTER_DESCRIPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters_Impl::GetDescription(this, core::mem::transmute_copy(®ister), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&desc)).into() } - unsafe extern "system" fn GetIndexByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + unsafe extern "system" fn GetIndexByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters_Impl::GetIndexByName(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -23786,45 +17183,27 @@ impl IDebugRegisters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, register: u32, value: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, register: u32, value: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters_Impl::GetValue(this, core::mem::transmute_copy(®ister), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, register: u32, value: *const DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, register: u32, value: *const DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters_Impl::SetValue(this, core::mem::transmute_copy(®ister), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetValues(this: *mut core::ffi::c_void, count: u32, indices: *const u32, start: u32, values: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + unsafe extern "system" fn GetValues(this: *mut core::ffi::c_void, count: u32, indices: *const u32, start: u32, values: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters_Impl::GetValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&start), core::mem::transmute_copy(&values)).into() } - unsafe extern "system" fn SetValues(this: *mut core::ffi::c_void, count: u32, indices: *const u32, start: u32, values: *const DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + unsafe extern "system" fn SetValues(this: *mut core::ffi::c_void, count: u32, indices: *const u32, start: u32, values: *const DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters_Impl::SetValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&start), core::mem::transmute_copy(&values)).into() } - unsafe extern "system" fn OutputRegisters(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + unsafe extern "system" fn OutputRegisters(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters_Impl::OutputRegisters(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetInstructionOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + unsafe extern "system" fn GetInstructionOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters_Impl::GetInstructionOffset(this) { Ok(ok__) => { @@ -23834,10 +17213,7 @@ impl IDebugRegisters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + unsafe extern "system" fn GetStackOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters_Impl::GetStackOffset(this) { Ok(ok__) => { @@ -23847,10 +17223,7 @@ impl IDebugRegisters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrameOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugRegisters_Impl, - { + unsafe extern "system" fn GetFrameOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters_Impl::GetFrameOffset(this) { Ok(ok__) => { @@ -23879,7 +17252,7 @@ impl IDebugRegisters_Vtbl { iid == &::IID } } -pub trait IDebugRegisters2_Impl: Sized { +pub trait IDebugRegisters2_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberRegisters(&self) -> windows_core::Result; fn GetDescription(&self, register: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, desc: *mut DEBUG_REGISTER_DESCRIPTION) -> windows_core::Result<()>; fn GetIndexByName(&self, name: &windows_core::PCSTR) -> windows_core::Result; @@ -23909,14 +17282,8 @@ pub trait IDebugRegisters2_Impl: Sized { } impl windows_core::RuntimeName for IDebugRegisters2 {} impl IDebugRegisters2_Vtbl { - pub const fn new() -> IDebugRegisters2_Vtbl - where - Identity: IDebugRegisters2_Impl, - { - unsafe extern "system" fn GetNumberRegisters(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + pub const fn new() -> IDebugRegisters2_Vtbl { + unsafe extern "system" fn GetNumberRegisters(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetNumberRegisters(this) { Ok(ok__) => { @@ -23926,17 +17293,11 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, register: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, desc: *mut DEBUG_REGISTER_DESCRIPTION) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, register: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, desc: *mut DEBUG_REGISTER_DESCRIPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::GetDescription(this, core::mem::transmute_copy(®ister), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&desc)).into() } - unsafe extern "system" fn GetIndexByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetIndexByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetIndexByName(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -23946,45 +17307,27 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, register: u32, value: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, register: u32, value: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::GetValue(this, core::mem::transmute_copy(®ister), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, register: u32, value: *const DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, register: u32, value: *const DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::SetValue(this, core::mem::transmute_copy(®ister), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetValues(this: *mut core::ffi::c_void, count: u32, indices: *const u32, start: u32, values: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetValues(this: *mut core::ffi::c_void, count: u32, indices: *const u32, start: u32, values: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::GetValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&start), core::mem::transmute_copy(&values)).into() } - unsafe extern "system" fn SetValues(this: *mut core::ffi::c_void, count: u32, indices: *const u32, start: u32, values: *const DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn SetValues(this: *mut core::ffi::c_void, count: u32, indices: *const u32, start: u32, values: *const DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::SetValues(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&start), core::mem::transmute_copy(&values)).into() } - unsafe extern "system" fn OutputRegisters(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn OutputRegisters(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::OutputRegisters(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetInstructionOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetInstructionOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetInstructionOffset(this) { Ok(ok__) => { @@ -23994,10 +17337,7 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetStackOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetStackOffset(this) { Ok(ok__) => { @@ -24007,10 +17347,7 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrameOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetFrameOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetFrameOffset(this) { Ok(ok__) => { @@ -24020,17 +17357,11 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescriptionWide(this: *mut core::ffi::c_void, register: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, desc: *mut DEBUG_REGISTER_DESCRIPTION) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetDescriptionWide(this: *mut core::ffi::c_void, register: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, desc: *mut DEBUG_REGISTER_DESCRIPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::GetDescriptionWide(this, core::mem::transmute_copy(®ister), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&desc)).into() } - unsafe extern "system" fn GetIndexByNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetIndexByNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetIndexByNameWide(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -24040,10 +17371,7 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberPseudoRegisters(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetNumberPseudoRegisters(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetNumberPseudoRegisters(this) { Ok(ok__) => { @@ -24053,24 +17381,15 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPseudoDescription(this: *mut core::ffi::c_void, register: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, typemodule: *mut u64, typeid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetPseudoDescription(this: *mut core::ffi::c_void, register: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, typemodule: *mut u64, typeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::GetPseudoDescription(this, core::mem::transmute_copy(®ister), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&typemodule), core::mem::transmute_copy(&typeid)).into() } - unsafe extern "system" fn GetPseudoDescriptionWide(this: *mut core::ffi::c_void, register: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, typemodule: *mut u64, typeid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetPseudoDescriptionWide(this: *mut core::ffi::c_void, register: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, typemodule: *mut u64, typeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::GetPseudoDescriptionWide(this, core::mem::transmute_copy(®ister), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&typemodule), core::mem::transmute_copy(&typeid)).into() } - unsafe extern "system" fn GetPseudoIndexByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetPseudoIndexByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetPseudoIndexByName(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -24080,10 +17399,7 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPseudoIndexByNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetPseudoIndexByNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetPseudoIndexByNameWide(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -24093,45 +17409,27 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPseudoValues(this: *mut core::ffi::c_void, source: u32, count: u32, indices: *const u32, start: u32, values: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetPseudoValues(this: *mut core::ffi::c_void, source: u32, count: u32, indices: *const u32, start: u32, values: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::GetPseudoValues(this, core::mem::transmute_copy(&source), core::mem::transmute_copy(&count), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&start), core::mem::transmute_copy(&values)).into() } - unsafe extern "system" fn SetPseudoValues(this: *mut core::ffi::c_void, source: u32, count: u32, indices: *const u32, start: u32, values: *const DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn SetPseudoValues(this: *mut core::ffi::c_void, source: u32, count: u32, indices: *const u32, start: u32, values: *const DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::SetPseudoValues(this, core::mem::transmute_copy(&source), core::mem::transmute_copy(&count), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&start), core::mem::transmute_copy(&values)).into() } - unsafe extern "system" fn GetValues2(this: *mut core::ffi::c_void, source: u32, count: u32, indices: *const u32, start: u32, values: *mut DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetValues2(this: *mut core::ffi::c_void, source: u32, count: u32, indices: *const u32, start: u32, values: *mut DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::GetValues2(this, core::mem::transmute_copy(&source), core::mem::transmute_copy(&count), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&start), core::mem::transmute_copy(&values)).into() } - unsafe extern "system" fn SetValues2(this: *mut core::ffi::c_void, source: u32, count: u32, indices: *const u32, start: u32, values: *const DEBUG_VALUE) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn SetValues2(this: *mut core::ffi::c_void, source: u32, count: u32, indices: *const u32, start: u32, values: *const DEBUG_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::SetValues2(this, core::mem::transmute_copy(&source), core::mem::transmute_copy(&count), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&start), core::mem::transmute_copy(&values)).into() } - unsafe extern "system" fn OutputRegisters2(this: *mut core::ffi::c_void, outputcontrol: u32, source: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn OutputRegisters2(this: *mut core::ffi::c_void, outputcontrol: u32, source: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugRegisters2_Impl::OutputRegisters2(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&source), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetInstructionOffset2(this: *mut core::ffi::c_void, source: u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetInstructionOffset2(this: *mut core::ffi::c_void, source: u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetInstructionOffset2(this, core::mem::transmute_copy(&source)) { Ok(ok__) => { @@ -24141,10 +17439,7 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStackOffset2(this: *mut core::ffi::c_void, source: u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetStackOffset2(this: *mut core::ffi::c_void, source: u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetStackOffset2(this, core::mem::transmute_copy(&source)) { Ok(ok__) => { @@ -24154,10 +17449,7 @@ impl IDebugRegisters2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFrameOffset2(this: *mut core::ffi::c_void, source: u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugRegisters2_Impl, - { + unsafe extern "system" fn GetFrameOffset2(this: *mut core::ffi::c_void, source: u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugRegisters2_Impl::GetFrameOffset2(this, core::mem::transmute_copy(&source)) { Ok(ok__) => { @@ -24201,7 +17493,7 @@ impl IDebugRegisters2_Vtbl { iid == &::IID } } -pub trait IDebugSymbolGroup_Impl: Sized { +pub trait IDebugSymbolGroup_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberSymbols(&self) -> windows_core::Result; fn AddSymbol(&self, name: &windows_core::PCSTR, index: *mut u32) -> windows_core::Result<()>; fn RemoveSymbolByName(&self, name: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -24215,14 +17507,8 @@ pub trait IDebugSymbolGroup_Impl: Sized { } impl windows_core::RuntimeName for IDebugSymbolGroup {} impl IDebugSymbolGroup_Vtbl { - pub const fn new() -> IDebugSymbolGroup_Vtbl - where - Identity: IDebugSymbolGroup_Impl, - { - unsafe extern "system" fn GetNumberSymbols(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup_Impl, - { + pub const fn new() -> IDebugSymbolGroup_Vtbl { + unsafe extern "system" fn GetNumberSymbols(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbolGroup_Impl::GetNumberSymbols(this) { Ok(ok__) => { @@ -24232,66 +17518,39 @@ impl IDebugSymbolGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSymbol(this: *mut core::ffi::c_void, name: windows_core::PCSTR, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup_Impl, - { + unsafe extern "system" fn AddSymbol(this: *mut core::ffi::c_void, name: windows_core::PCSTR, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup_Impl::AddSymbol(this, core::mem::transmute(&name), core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn RemoveSymbolByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup_Impl, - { + unsafe extern "system" fn RemoveSymbolByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup_Impl::RemoveSymbolByName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn RemoveSymbolByIndex(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup_Impl, - { + unsafe extern "system" fn RemoveSymbolByIndex(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup_Impl::RemoveSymbolByIndex(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn GetSymbolName(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup_Impl, - { + unsafe extern "system" fn GetSymbolName(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup_Impl::GetSymbolName(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetSymbolParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SYMBOL_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup_Impl, - { + unsafe extern "system" fn GetSymbolParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SYMBOL_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup_Impl::GetSymbolParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn ExpandSymbol(this: *mut core::ffi::c_void, index: u32, expand: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup_Impl, - { + unsafe extern "system" fn ExpandSymbol(this: *mut core::ffi::c_void, index: u32, expand: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup_Impl::ExpandSymbol(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&expand)).into() } - unsafe extern "system" fn OutputSymbols(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, start: u32, count: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup_Impl, - { + unsafe extern "system" fn OutputSymbols(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, start: u32, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup_Impl::OutputSymbols(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&start), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn WriteSymbol(this: *mut core::ffi::c_void, index: u32, value: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup_Impl, - { + unsafe extern "system" fn WriteSymbol(this: *mut core::ffi::c_void, index: u32, value: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup_Impl::WriteSymbol(this, core::mem::transmute_copy(&index), core::mem::transmute(&value)).into() } - unsafe extern "system" fn OutputAsType(this: *mut core::ffi::c_void, index: u32, r#type: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup_Impl, - { + unsafe extern "system" fn OutputAsType(this: *mut core::ffi::c_void, index: u32, r#type: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup_Impl::OutputAsType(this, core::mem::transmute_copy(&index), core::mem::transmute(&r#type)).into() } @@ -24313,7 +17572,7 @@ impl IDebugSymbolGroup_Vtbl { iid == &::IID } } -pub trait IDebugSymbolGroup2_Impl: Sized { +pub trait IDebugSymbolGroup2_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberSymbols(&self) -> windows_core::Result; fn AddSymbol(&self, name: &windows_core::PCSTR, index: *mut u32) -> windows_core::Result<()>; fn RemoveSymbolByName(&self, name: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -24340,14 +17599,8 @@ pub trait IDebugSymbolGroup2_Impl: Sized { } impl windows_core::RuntimeName for IDebugSymbolGroup2 {} impl IDebugSymbolGroup2_Vtbl { - pub const fn new() -> IDebugSymbolGroup2_Vtbl - where - Identity: IDebugSymbolGroup2_Impl, - { - unsafe extern "system" fn GetNumberSymbols(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + pub const fn new() -> IDebugSymbolGroup2_Vtbl { + unsafe extern "system" fn GetNumberSymbols(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbolGroup2_Impl::GetNumberSymbols(this) { Ok(ok__) => { @@ -24357,122 +17610,71 @@ impl IDebugSymbolGroup2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSymbol(this: *mut core::ffi::c_void, name: windows_core::PCSTR, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn AddSymbol(this: *mut core::ffi::c_void, name: windows_core::PCSTR, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::AddSymbol(this, core::mem::transmute(&name), core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn RemoveSymbolByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn RemoveSymbolByName(this: *mut core::ffi::c_void, name: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::RemoveSymbolByName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn RemoveSymbolByIndex(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn RemoveSymbolByIndex(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::RemoveSymbolByIndex(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn GetSymbolName(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolName(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::GetSymbolName(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetSymbolParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SYMBOL_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolParameters(this: *mut core::ffi::c_void, start: u32, count: u32, params: *mut DEBUG_SYMBOL_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::GetSymbolParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn ExpandSymbol(this: *mut core::ffi::c_void, index: u32, expand: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn ExpandSymbol(this: *mut core::ffi::c_void, index: u32, expand: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::ExpandSymbol(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&expand)).into() } - unsafe extern "system" fn OutputSymbols(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, start: u32, count: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn OutputSymbols(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, start: u32, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::OutputSymbols(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&start), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn WriteSymbol(this: *mut core::ffi::c_void, index: u32, value: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn WriteSymbol(this: *mut core::ffi::c_void, index: u32, value: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::WriteSymbol(this, core::mem::transmute_copy(&index), core::mem::transmute(&value)).into() } - unsafe extern "system" fn OutputAsType(this: *mut core::ffi::c_void, index: u32, r#type: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn OutputAsType(this: *mut core::ffi::c_void, index: u32, r#type: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::OutputAsType(this, core::mem::transmute_copy(&index), core::mem::transmute(&r#type)).into() } - unsafe extern "system" fn AddSymbolWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn AddSymbolWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::AddSymbolWide(this, core::mem::transmute(&name), core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn RemoveSymbolByNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn RemoveSymbolByNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::RemoveSymbolByNameWide(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn GetSymbolNameWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolNameWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::GetSymbolNameWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn WriteSymbolWide(this: *mut core::ffi::c_void, index: u32, value: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn WriteSymbolWide(this: *mut core::ffi::c_void, index: u32, value: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::WriteSymbolWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&value)).into() } - unsafe extern "system" fn OutputAsTypeWide(this: *mut core::ffi::c_void, index: u32, r#type: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn OutputAsTypeWide(this: *mut core::ffi::c_void, index: u32, r#type: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::OutputAsTypeWide(this, core::mem::transmute_copy(&index), core::mem::transmute(&r#type)).into() } - unsafe extern "system" fn GetSymbolTypeName(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolTypeName(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::GetSymbolTypeName(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetSymbolTypeNameWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolTypeNameWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::GetSymbolTypeNameWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetSymbolSize(this: *mut core::ffi::c_void, index: u32, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolSize(this: *mut core::ffi::c_void, index: u32, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbolGroup2_Impl::GetSymbolSize(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -24482,10 +17684,7 @@ impl IDebugSymbolGroup2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolOffset(this: *mut core::ffi::c_void, index: u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolOffset(this: *mut core::ffi::c_void, index: u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbolGroup2_Impl::GetSymbolOffset(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -24495,10 +17694,7 @@ impl IDebugSymbolGroup2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolRegister(this: *mut core::ffi::c_void, index: u32, register: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolRegister(this: *mut core::ffi::c_void, index: u32, register: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbolGroup2_Impl::GetSymbolRegister(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -24508,24 +17704,15 @@ impl IDebugSymbolGroup2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolValueText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolValueText(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::GetSymbolValueText(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetSymbolValueTextWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolValueTextWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::GetSymbolValueTextWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetSymbolEntryInformation(this: *mut core::ffi::c_void, index: u32, entry: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::HRESULT - where - Identity: IDebugSymbolGroup2_Impl, - { + unsafe extern "system" fn GetSymbolEntryInformation(this: *mut core::ffi::c_void, index: u32, entry: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::GetSymbolEntryInformation(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&entry)).into() } @@ -24560,7 +17747,7 @@ impl IDebugSymbolGroup2_Vtbl { iid == &::IID } } -pub trait IDebugSymbols_Impl: Sized { +pub trait IDebugSymbols_Impl: Sized + windows_core::IUnknownImpl { fn GetSymbolOptions(&self) -> windows_core::Result; fn AddSymbolOptions(&self, options: u32) -> windows_core::Result<()>; fn RemoveSymbolOptions(&self, options: u32) -> windows_core::Result<()>; @@ -24613,14 +17800,8 @@ pub trait IDebugSymbols_Impl: Sized { } impl windows_core::RuntimeName for IDebugSymbols {} impl IDebugSymbols_Vtbl { - pub const fn new() -> IDebugSymbols_Vtbl - where - Identity: IDebugSymbols_Impl, - { - unsafe extern "system" fn GetSymbolOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + pub const fn new() -> IDebugSymbols_Vtbl { + unsafe extern "system" fn GetSymbolOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::GetSymbolOptions(this) { Ok(ok__) => { @@ -24630,38 +17811,23 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn AddSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::AddSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn RemoveSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::RemoveSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn SetSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::SetSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetNameByOffset(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetNameByOffset(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetNameByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetOffsetByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::GetOffsetByName(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -24671,24 +17837,15 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNearNameByOffset(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetNearNameByOffset(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetNearNameByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByOffset(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetLineByOffset(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetLineByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetOffsetByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::GetOffsetByLine(this, core::mem::transmute_copy(&line), core::mem::transmute(&file)) { Ok(ok__) => { @@ -24698,17 +17855,11 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberModules(this: *mut core::ffi::c_void, loaded: *mut u32, unloaded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetNumberModules(this: *mut core::ffi::c_void, loaded: *mut u32, unloaded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetNumberModules(this, core::mem::transmute_copy(&loaded), core::mem::transmute_copy(&unloaded)).into() } - unsafe extern "system" fn GetModuleByIndex(this: *mut core::ffi::c_void, index: u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetModuleByIndex(this: *mut core::ffi::c_void, index: u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::GetModuleByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -24718,24 +17869,15 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModuleByModuleName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetModuleByModuleName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetModuleByModuleName(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByOffset(this: *mut core::ffi::c_void, offset: u64, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetModuleByOffset(this: *mut core::ffi::c_void, offset: u64, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetModuleByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleNames(this: *mut core::ffi::c_void, index: u32, base: u64, imagenamebuffer: windows_core::PSTR, imagenamebuffersize: u32, imagenamesize: *mut u32, modulenamebuffer: windows_core::PSTR, modulenamebuffersize: u32, modulenamesize: *mut u32, loadedimagenamebuffer: windows_core::PSTR, loadedimagenamebuffersize: u32, loadedimagenamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetModuleNames(this: *mut core::ffi::c_void, index: u32, base: u64, imagenamebuffer: windows_core::PSTR, imagenamebuffersize: u32, imagenamesize: *mut u32, modulenamebuffer: windows_core::PSTR, modulenamebuffersize: u32, modulenamesize: *mut u32, loadedimagenamebuffer: windows_core::PSTR, loadedimagenamebuffersize: u32, loadedimagenamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetModuleNames( this, @@ -24753,17 +17895,11 @@ impl IDebugSymbols_Vtbl { ) .into() } - unsafe extern "system" fn GetModuleParameters(this: *mut core::ffi::c_void, count: u32, bases: *const u64, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetModuleParameters(this: *mut core::ffi::c_void, count: u32, bases: *const u64, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetModuleParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&bases), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSymbolModule(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetSymbolModule(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::GetSymbolModule(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -24773,17 +17909,11 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetTypeName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeId(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCSTR, typeid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetTypeId(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCSTR, typeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::GetTypeId(this, core::mem::transmute_copy(&module), core::mem::transmute(&name)) { Ok(ok__) => { @@ -24793,10 +17923,7 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeSize(this: *mut core::ffi::c_void, module: u64, typeid: u32, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetTypeSize(this: *mut core::ffi::c_void, module: u64, typeid: u32, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::GetTypeSize(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid)) { Ok(ok__) => { @@ -24806,10 +17933,7 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFieldOffset(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCSTR, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetFieldOffset(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCSTR, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::GetFieldOffset(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute(&field)) { Ok(ok__) => { @@ -24819,87 +17943,51 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolTypeId(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetSymbolTypeId(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetSymbolTypeId(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn GetOffsetTypeId(this: *mut core::ffi::c_void, offset: u64, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetOffsetTypeId(this: *mut core::ffi::c_void, offset: u64, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetOffsetTypeId(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn ReadTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn ReadTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::ReadTypedDataVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn WriteTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::WriteTypedDataVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn OutputTypedDataVirtual(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn OutputTypedDataVirtual(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::OutputTypedDataVirtual(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ReadTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn ReadTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::ReadTypedDataPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn WriteTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::WriteTypedDataPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn OutputTypedDataPhysical(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn OutputTypedDataPhysical(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::OutputTypedDataPhysical(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetScope(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::SetScope(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn ResetScope(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn ResetScope(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::ResetScope(this).into() } - unsafe extern "system" fn GetScopeSymbolGroup(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetScopeSymbolGroup(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::GetScopeSymbolGroup(this, core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&update)) { Ok(ok__) => { @@ -24909,10 +17997,7 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSymbolGroup(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn CreateSymbolGroup(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::CreateSymbolGroup(this) { Ok(ok__) => { @@ -24922,10 +18007,7 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartSymbolMatch(this: *mut core::ffi::c_void, pattern: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn StartSymbolMatch(this: *mut core::ffi::c_void, pattern: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols_Impl::StartSymbolMatch(this, core::mem::transmute(&pattern)) { Ok(ok__) => { @@ -24935,108 +18017,63 @@ impl IDebugSymbols_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSymbolMatch(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetNextSymbolMatch(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetNextSymbolMatch(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&matchsize), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn EndSymbolMatch(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn EndSymbolMatch(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::EndSymbolMatch(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Reload(this: *mut core::ffi::c_void, module: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn Reload(this: *mut core::ffi::c_void, module: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::Reload(this, core::mem::transmute(&module)).into() } - unsafe extern "system" fn GetSymbolPath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetSymbolPath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetSymbolPath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetSymbolPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn SetSymbolPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::SetSymbolPath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSymbolPath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn AppendSymbolPath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::AppendSymbolPath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetImagePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetImagePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetImagePath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetImagePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn SetImagePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::SetImagePath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendImagePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn AppendImagePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::AppendImagePath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetSourcePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetSourcePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetSourcePath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn GetSourcePathElement(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetSourcePathElement(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetSourcePathElement(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&elementsize)).into() } - unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::SetSourcePath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSourcePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn AppendSourcePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::AppendSourcePath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn FindSourceFile(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn FindSourceFile(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::FindSourceFile(this, core::mem::transmute_copy(&startelement), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSourceFileLineOffsets(this: *mut core::ffi::c_void, file: windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols_Impl, - { + unsafe extern "system" fn GetSourceFileLineOffsets(this: *mut core::ffi::c_void, file: windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols_Impl::GetSourceFileLineOffsets(this, core::mem::transmute(&file), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlines), core::mem::transmute_copy(&filelines)).into() } @@ -25097,7 +18134,7 @@ impl IDebugSymbols_Vtbl { iid == &::IID } } -pub trait IDebugSymbols2_Impl: Sized { +pub trait IDebugSymbols2_Impl: Sized + windows_core::IUnknownImpl { fn GetSymbolOptions(&self) -> windows_core::Result; fn AddSymbolOptions(&self, options: u32) -> windows_core::Result<()>; fn RemoveSymbolOptions(&self, options: u32) -> windows_core::Result<()>; @@ -25158,14 +18195,8 @@ pub trait IDebugSymbols2_Impl: Sized { } impl windows_core::RuntimeName for IDebugSymbols2 {} impl IDebugSymbols2_Vtbl { - pub const fn new() -> IDebugSymbols2_Vtbl - where - Identity: IDebugSymbols2_Impl, - { - unsafe extern "system" fn GetSymbolOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + pub const fn new() -> IDebugSymbols2_Vtbl { + unsafe extern "system" fn GetSymbolOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::GetSymbolOptions(this) { Ok(ok__) => { @@ -25175,38 +18206,23 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn AddSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::AddSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn RemoveSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::RemoveSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn SetSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::SetSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetNameByOffset(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetNameByOffset(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetNameByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetOffsetByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::GetOffsetByName(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -25216,24 +18232,15 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNearNameByOffset(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetNearNameByOffset(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetNearNameByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByOffset(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetLineByOffset(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetLineByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetOffsetByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::GetOffsetByLine(this, core::mem::transmute_copy(&line), core::mem::transmute(&file)) { Ok(ok__) => { @@ -25243,17 +18250,11 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberModules(this: *mut core::ffi::c_void, loaded: *mut u32, unloaded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetNumberModules(this: *mut core::ffi::c_void, loaded: *mut u32, unloaded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetNumberModules(this, core::mem::transmute_copy(&loaded), core::mem::transmute_copy(&unloaded)).into() } - unsafe extern "system" fn GetModuleByIndex(this: *mut core::ffi::c_void, index: u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetModuleByIndex(this: *mut core::ffi::c_void, index: u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::GetModuleByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -25263,24 +18264,15 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModuleByModuleName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetModuleByModuleName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetModuleByModuleName(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByOffset(this: *mut core::ffi::c_void, offset: u64, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetModuleByOffset(this: *mut core::ffi::c_void, offset: u64, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetModuleByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleNames(this: *mut core::ffi::c_void, index: u32, base: u64, imagenamebuffer: windows_core::PSTR, imagenamebuffersize: u32, imagenamesize: *mut u32, modulenamebuffer: windows_core::PSTR, modulenamebuffersize: u32, modulenamesize: *mut u32, loadedimagenamebuffer: windows_core::PSTR, loadedimagenamebuffersize: u32, loadedimagenamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetModuleNames(this: *mut core::ffi::c_void, index: u32, base: u64, imagenamebuffer: windows_core::PSTR, imagenamebuffersize: u32, imagenamesize: *mut u32, modulenamebuffer: windows_core::PSTR, modulenamebuffersize: u32, modulenamesize: *mut u32, loadedimagenamebuffer: windows_core::PSTR, loadedimagenamebuffersize: u32, loadedimagenamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetModuleNames( this, @@ -25298,17 +18290,11 @@ impl IDebugSymbols2_Vtbl { ) .into() } - unsafe extern "system" fn GetModuleParameters(this: *mut core::ffi::c_void, count: u32, bases: *const u64, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetModuleParameters(this: *mut core::ffi::c_void, count: u32, bases: *const u64, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetModuleParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&bases), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSymbolModule(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetSymbolModule(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::GetSymbolModule(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -25318,17 +18304,11 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetTypeName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeId(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCSTR, typeid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetTypeId(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCSTR, typeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::GetTypeId(this, core::mem::transmute_copy(&module), core::mem::transmute(&name)) { Ok(ok__) => { @@ -25338,10 +18318,7 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeSize(this: *mut core::ffi::c_void, module: u64, typeid: u32, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetTypeSize(this: *mut core::ffi::c_void, module: u64, typeid: u32, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::GetTypeSize(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid)) { Ok(ok__) => { @@ -25351,10 +18328,7 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFieldOffset(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCSTR, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetFieldOffset(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCSTR, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::GetFieldOffset(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute(&field)) { Ok(ok__) => { @@ -25364,87 +18338,51 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolTypeId(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetSymbolTypeId(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetSymbolTypeId(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn GetOffsetTypeId(this: *mut core::ffi::c_void, offset: u64, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetOffsetTypeId(this: *mut core::ffi::c_void, offset: u64, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetOffsetTypeId(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn ReadTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn ReadTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::ReadTypedDataVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn WriteTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::WriteTypedDataVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn OutputTypedDataVirtual(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn OutputTypedDataVirtual(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::OutputTypedDataVirtual(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ReadTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn ReadTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::ReadTypedDataPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn WriteTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::WriteTypedDataPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn OutputTypedDataPhysical(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn OutputTypedDataPhysical(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::OutputTypedDataPhysical(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetScope(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::SetScope(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn ResetScope(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn ResetScope(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::ResetScope(this).into() } - unsafe extern "system" fn GetScopeSymbolGroup(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetScopeSymbolGroup(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::GetScopeSymbolGroup(this, core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&update)) { Ok(ok__) => { @@ -25454,10 +18392,7 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSymbolGroup(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn CreateSymbolGroup(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::CreateSymbolGroup(this) { Ok(ok__) => { @@ -25467,10 +18402,7 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartSymbolMatch(this: *mut core::ffi::c_void, pattern: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn StartSymbolMatch(this: *mut core::ffi::c_void, pattern: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::StartSymbolMatch(this, core::mem::transmute(&pattern)) { Ok(ok__) => { @@ -25480,143 +18412,83 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSymbolMatch(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetNextSymbolMatch(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetNextSymbolMatch(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&matchsize), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn EndSymbolMatch(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn EndSymbolMatch(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::EndSymbolMatch(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Reload(this: *mut core::ffi::c_void, module: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn Reload(this: *mut core::ffi::c_void, module: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::Reload(this, core::mem::transmute(&module)).into() } - unsafe extern "system" fn GetSymbolPath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetSymbolPath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetSymbolPath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetSymbolPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn SetSymbolPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::SetSymbolPath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSymbolPath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn AppendSymbolPath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::AppendSymbolPath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetImagePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetImagePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetImagePath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetImagePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn SetImagePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::SetImagePath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendImagePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn AppendImagePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::AppendImagePath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetSourcePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetSourcePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetSourcePath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn GetSourcePathElement(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetSourcePathElement(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetSourcePathElement(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&elementsize)).into() } - unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::SetSourcePath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSourcePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn AppendSourcePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::AppendSourcePath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn FindSourceFile(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn FindSourceFile(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::FindSourceFile(this, core::mem::transmute_copy(&startelement), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSourceFileLineOffsets(this: *mut core::ffi::c_void, file: windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetSourceFileLineOffsets(this: *mut core::ffi::c_void, file: windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetSourceFileLineOffsets(this, core::mem::transmute(&file), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlines), core::mem::transmute_copy(&filelines)).into() } - unsafe extern "system" fn GetModuleVersionInformation(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetModuleVersionInformation(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetModuleVersionInformation(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute(&item), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&verinfosize)).into() } - unsafe extern "system" fn GetModuleNameString(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetModuleNameString(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetModuleNameString(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetConstantName(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetConstantName(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetConstantName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&value), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetFieldName(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetFieldName(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::GetFieldName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&fieldindex), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn GetTypeOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols2_Impl::GetTypeOptions(this) { Ok(ok__) => { @@ -25626,24 +18498,15 @@ impl IDebugSymbols2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn AddTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::AddTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn RemoveTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::RemoveTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols2_Impl, - { + unsafe extern "system" fn SetTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols2_Impl::SetTypeOptions(this, core::mem::transmute_copy(&options)).into() } @@ -25712,7 +18575,7 @@ impl IDebugSymbols2_Vtbl { iid == &::IID } } -pub trait IDebugSymbols3_Impl: Sized { +pub trait IDebugSymbols3_Impl: Sized + windows_core::IUnknownImpl { fn GetSymbolOptions(&self) -> windows_core::Result; fn AddSymbolOptions(&self, options: u32) -> windows_core::Result<()>; fn RemoveSymbolOptions(&self, options: u32) -> windows_core::Result<()>; @@ -25839,14 +18702,8 @@ pub trait IDebugSymbols3_Impl: Sized { } impl windows_core::RuntimeName for IDebugSymbols3 {} impl IDebugSymbols3_Vtbl { - pub const fn new() -> IDebugSymbols3_Vtbl - where - Identity: IDebugSymbols3_Impl, - { - unsafe extern "system" fn GetSymbolOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + pub const fn new() -> IDebugSymbols3_Vtbl { + unsafe extern "system" fn GetSymbolOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetSymbolOptions(this) { Ok(ok__) => { @@ -25856,38 +18713,23 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AddSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AddSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn RemoveSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::RemoveSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetNameByOffset(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetNameByOffset(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetNameByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetOffsetByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetOffsetByName(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -25897,24 +18739,15 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNearNameByOffset(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetNearNameByOffset(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetNearNameByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByOffset(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetLineByOffset(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetLineByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetOffsetByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetOffsetByLine(this, core::mem::transmute_copy(&line), core::mem::transmute(&file)) { Ok(ok__) => { @@ -25924,17 +18757,11 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberModules(this: *mut core::ffi::c_void, loaded: *mut u32, unloaded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetNumberModules(this: *mut core::ffi::c_void, loaded: *mut u32, unloaded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetNumberModules(this, core::mem::transmute_copy(&loaded), core::mem::transmute_copy(&unloaded)).into() } - unsafe extern "system" fn GetModuleByIndex(this: *mut core::ffi::c_void, index: u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleByIndex(this: *mut core::ffi::c_void, index: u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetModuleByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -25944,24 +18771,15 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModuleByModuleName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleByModuleName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleByModuleName(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByOffset(this: *mut core::ffi::c_void, offset: u64, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleByOffset(this: *mut core::ffi::c_void, offset: u64, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleNames(this: *mut core::ffi::c_void, index: u32, base: u64, imagenamebuffer: windows_core::PSTR, imagenamebuffersize: u32, imagenamesize: *mut u32, modulenamebuffer: windows_core::PSTR, modulenamebuffersize: u32, modulenamesize: *mut u32, loadedimagenamebuffer: windows_core::PSTR, loadedimagenamebuffersize: u32, loadedimagenamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleNames(this: *mut core::ffi::c_void, index: u32, base: u64, imagenamebuffer: windows_core::PSTR, imagenamebuffersize: u32, imagenamesize: *mut u32, modulenamebuffer: windows_core::PSTR, modulenamebuffersize: u32, modulenamesize: *mut u32, loadedimagenamebuffer: windows_core::PSTR, loadedimagenamebuffersize: u32, loadedimagenamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleNames( this, @@ -25979,17 +18797,11 @@ impl IDebugSymbols3_Vtbl { ) .into() } - unsafe extern "system" fn GetModuleParameters(this: *mut core::ffi::c_void, count: u32, bases: *const u64, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleParameters(this: *mut core::ffi::c_void, count: u32, bases: *const u64, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&bases), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSymbolModule(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolModule(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetSymbolModule(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -25999,17 +18811,11 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetTypeName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeId(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCSTR, typeid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetTypeId(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCSTR, typeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetTypeId(this, core::mem::transmute_copy(&module), core::mem::transmute(&name)) { Ok(ok__) => { @@ -26019,10 +18825,7 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeSize(this: *mut core::ffi::c_void, module: u64, typeid: u32, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetTypeSize(this: *mut core::ffi::c_void, module: u64, typeid: u32, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetTypeSize(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid)) { Ok(ok__) => { @@ -26032,10 +18835,7 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFieldOffset(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCSTR, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetFieldOffset(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCSTR, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetFieldOffset(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute(&field)) { Ok(ok__) => { @@ -26045,87 +18845,51 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolTypeId(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolTypeId(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolTypeId(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn GetOffsetTypeId(this: *mut core::ffi::c_void, offset: u64, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetOffsetTypeId(this: *mut core::ffi::c_void, offset: u64, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetOffsetTypeId(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn ReadTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn ReadTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::ReadTypedDataVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn WriteTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::WriteTypedDataVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn OutputTypedDataVirtual(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn OutputTypedDataVirtual(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::OutputTypedDataVirtual(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ReadTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn ReadTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::ReadTypedDataPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn WriteTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::WriteTypedDataPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn OutputTypedDataPhysical(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn OutputTypedDataPhysical(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::OutputTypedDataPhysical(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetScope(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetScope(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn ResetScope(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn ResetScope(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::ResetScope(this).into() } - unsafe extern "system" fn GetScopeSymbolGroup(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetScopeSymbolGroup(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetScopeSymbolGroup(this, core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&update)) { Ok(ok__) => { @@ -26135,10 +18899,7 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSymbolGroup(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn CreateSymbolGroup(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::CreateSymbolGroup(this) { Ok(ok__) => { @@ -26148,10 +18909,7 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartSymbolMatch(this: *mut core::ffi::c_void, pattern: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn StartSymbolMatch(this: *mut core::ffi::c_void, pattern: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::StartSymbolMatch(this, core::mem::transmute(&pattern)) { Ok(ok__) => { @@ -26161,143 +18919,83 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSymbolMatch(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetNextSymbolMatch(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetNextSymbolMatch(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&matchsize), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn EndSymbolMatch(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn EndSymbolMatch(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::EndSymbolMatch(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Reload(this: *mut core::ffi::c_void, module: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn Reload(this: *mut core::ffi::c_void, module: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::Reload(this, core::mem::transmute(&module)).into() } - unsafe extern "system" fn GetSymbolPath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolPath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolPath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetSymbolPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetSymbolPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetSymbolPath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSymbolPath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AppendSymbolPath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AppendSymbolPath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetImagePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetImagePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetImagePath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetImagePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetImagePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetImagePath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendImagePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AppendImagePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AppendImagePath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetSourcePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourcePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourcePath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn GetSourcePathElement(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourcePathElement(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourcePathElement(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&elementsize)).into() } - unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetSourcePath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSourcePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AppendSourcePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AppendSourcePath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn FindSourceFile(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn FindSourceFile(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::FindSourceFile(this, core::mem::transmute_copy(&startelement), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSourceFileLineOffsets(this: *mut core::ffi::c_void, file: windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourceFileLineOffsets(this: *mut core::ffi::c_void, file: windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourceFileLineOffsets(this, core::mem::transmute(&file), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlines), core::mem::transmute_copy(&filelines)).into() } - unsafe extern "system" fn GetModuleVersionInformation(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleVersionInformation(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleVersionInformation(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute(&item), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&verinfosize)).into() } - unsafe extern "system" fn GetModuleNameString(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleNameString(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleNameString(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetConstantName(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetConstantName(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetConstantName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&value), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetFieldName(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetFieldName(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetFieldName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&fieldindex), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetTypeOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetTypeOptions(this) { Ok(ok__) => { @@ -26307,38 +19005,23 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AddTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AddTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn RemoveTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::RemoveTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetNameByOffsetWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetOffsetByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetOffsetByNameWide(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -26348,24 +19031,15 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNearNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetNearNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetNearNameByOffsetWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByOffsetWide(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetLineByOffsetWide(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetLineByOffsetWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetOffsetByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetOffsetByLineWide(this, core::mem::transmute_copy(&line), core::mem::transmute(&file)) { Ok(ok__) => { @@ -26375,17 +19049,11 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModuleByModuleNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleByModuleNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleByModuleNameWide(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetSymbolModuleWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolModuleWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetSymbolModuleWide(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -26395,17 +19063,11 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetTypeNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetTypeNameWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeIdWide(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCWSTR, typeid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetTypeIdWide(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCWSTR, typeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetTypeIdWide(this, core::mem::transmute_copy(&module), core::mem::transmute(&name)) { Ok(ok__) => { @@ -26415,10 +19077,7 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFieldOffsetWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCWSTR, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetFieldOffsetWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCWSTR, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetFieldOffsetWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute(&field)) { Ok(ok__) => { @@ -26428,17 +19087,11 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolTypeIdWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolTypeIdWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolTypeIdWide(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn GetScopeSymbolGroup2(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetScopeSymbolGroup2(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetScopeSymbolGroup2(this, core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&update)) { Ok(ok__) => { @@ -26448,10 +19101,7 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSymbolGroup2(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn CreateSymbolGroup2(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::CreateSymbolGroup2(this) { Ok(ok__) => { @@ -26461,10 +19111,7 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartSymbolMatchWide(this: *mut core::ffi::c_void, pattern: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn StartSymbolMatchWide(this: *mut core::ffi::c_void, pattern: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::StartSymbolMatchWide(this, core::mem::transmute(&pattern)) { Ok(ok__) => { @@ -26474,185 +19121,107 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSymbolMatchWide(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PWSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetNextSymbolMatchWide(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PWSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetNextSymbolMatchWide(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&matchsize), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn ReloadWide(this: *mut core::ffi::c_void, module: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn ReloadWide(this: *mut core::ffi::c_void, module: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::ReloadWide(this, core::mem::transmute(&module)).into() } - unsafe extern "system" fn GetSymbolPathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolPathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolPathWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetSymbolPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetSymbolPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetSymbolPathWide(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSymbolPathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AppendSymbolPathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AppendSymbolPathWide(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetImagePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetImagePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetImagePathWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetImagePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetImagePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetImagePathWide(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendImagePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AppendImagePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AppendImagePathWide(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetSourcePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourcePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourcePathWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn GetSourcePathElementWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourcePathElementWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourcePathElementWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&elementsize)).into() } - unsafe extern "system" fn SetSourcePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetSourcePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetSourcePathWide(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSourcePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AppendSourcePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AppendSourcePathWide(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn FindSourceFileWide(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCWSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn FindSourceFileWide(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCWSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::FindSourceFileWide(this, core::mem::transmute_copy(&startelement), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSourceFileLineOffsetsWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourceFileLineOffsetsWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourceFileLineOffsetsWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlines), core::mem::transmute_copy(&filelines)).into() } - unsafe extern "system" fn GetModuleVersionInformationWide(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCWSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleVersionInformationWide(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCWSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleVersionInformationWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute(&item), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&verinfosize)).into() } - unsafe extern "system" fn GetModuleNameStringWide(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleNameStringWide(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleNameStringWide(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetConstantNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetConstantNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetConstantNameWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&value), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetFieldNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetFieldNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetFieldNameWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&fieldindex), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn IsManagedModule(this: *mut core::ffi::c_void, index: u32, base: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn IsManagedModule(this: *mut core::ffi::c_void, index: u32, base: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::IsManagedModule(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByModuleName2(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleByModuleName2(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleByModuleName2(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByModuleName2Wide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleByModuleName2Wide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleByModuleName2Wide(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByOffset2(this: *mut core::ffi::c_void, offset: u64, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetModuleByOffset2(this: *mut core::ffi::c_void, offset: u64, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetModuleByOffset2(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn AddSyntheticModule(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCSTR, modulename: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AddSyntheticModule(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCSTR, modulename: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AddSyntheticModule(this, core::mem::transmute_copy(&base), core::mem::transmute_copy(&size), core::mem::transmute(&imagepath), core::mem::transmute(&modulename), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn AddSyntheticModuleWide(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCWSTR, modulename: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AddSyntheticModuleWide(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCWSTR, modulename: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AddSyntheticModuleWide(this, core::mem::transmute_copy(&base), core::mem::transmute_copy(&size), core::mem::transmute(&imagepath), core::mem::transmute(&modulename), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn RemoveSyntheticModule(this: *mut core::ffi::c_void, base: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn RemoveSyntheticModule(this: *mut core::ffi::c_void, base: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::RemoveSyntheticModule(this, core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetCurrentScopeFrameIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetCurrentScopeFrameIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetCurrentScopeFrameIndex(this) { Ok(ok__) => { @@ -26662,101 +19231,59 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScopeFrameByIndex(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetScopeFrameByIndex(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetScopeFrameByIndex(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetScopeFromJitDebugInfo(this: *mut core::ffi::c_void, outputcontrol: u32, infooffset: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetScopeFromJitDebugInfo(this: *mut core::ffi::c_void, outputcontrol: u32, infooffset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetScopeFromJitDebugInfo(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&infooffset)).into() } - unsafe extern "system" fn SetScopeFromStoredEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn SetScopeFromStoredEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::SetScopeFromStoredEvent(this).into() } - unsafe extern "system" fn OutputSymbolByOffset(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn OutputSymbolByOffset(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::OutputSymbolByOffset(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetFunctionEntryByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bufferneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetFunctionEntryByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bufferneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetFunctionEntryByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bufferneeded)).into() } - unsafe extern "system" fn GetFieldTypeAndOffset(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetFieldTypeAndOffset(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetFieldTypeAndOffset(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&containertypeid), core::mem::transmute(&field), core::mem::transmute_copy(&fieldtypeid), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetFieldTypeAndOffsetWide(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCWSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetFieldTypeAndOffsetWide(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCWSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetFieldTypeAndOffsetWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&containertypeid), core::mem::transmute(&field), core::mem::transmute_copy(&fieldtypeid), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn AddSyntheticSymbol(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AddSyntheticSymbol(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AddSyntheticSymbol(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&size), core::mem::transmute(&name), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn AddSyntheticSymbolWide(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCWSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn AddSyntheticSymbolWide(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCWSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::AddSyntheticSymbolWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&size), core::mem::transmute(&name), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn RemoveSyntheticSymbol(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn RemoveSyntheticSymbol(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::RemoveSyntheticSymbol(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetSymbolEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, displacements: *mut u64, idscount: u32, entries: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, displacements: *mut u64, idscount: u32, entries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolEntriesByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&displacements), core::mem::transmute_copy(&idscount), core::mem::transmute_copy(&entries)).into() } - unsafe extern "system" fn GetSymbolEntriesByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolEntriesByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolEntriesByName(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&idscount), core::mem::transmute_copy(&entries)).into() } - unsafe extern "system" fn GetSymbolEntriesByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolEntriesByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolEntriesByNameWide(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&idscount), core::mem::transmute_copy(&entries)).into() } - unsafe extern "system" fn GetSymbolEntryByToken(this: *mut core::ffi::c_void, modulebase: u64, token: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolEntryByToken(this: *mut core::ffi::c_void, modulebase: u64, token: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetSymbolEntryByToken(this, core::mem::transmute_copy(&modulebase), core::mem::transmute_copy(&token)) { Ok(ok__) => { @@ -26766,38 +19293,23 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolEntryInformation(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, info: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolEntryInformation(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, info: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolEntryInformation(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&info)).into() } - unsafe extern "system" fn GetSymbolEntryString(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolEntryString(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolEntryString(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSymbolEntryStringWide(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolEntryStringWide(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolEntryStringWide(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSymbolEntryOffsetRegions(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolEntryOffsetRegions(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSymbolEntryOffsetRegions(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&flags), core::mem::transmute_copy(®ions), core::mem::transmute_copy(®ionscount), core::mem::transmute_copy(®ionsavail)).into() } - unsafe extern "system" fn GetSymbolEntryBySymbolEntry(this: *mut core::ffi::c_void, fromid: *const DEBUG_MODULE_AND_ID, flags: u32, toid: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSymbolEntryBySymbolEntry(this: *mut core::ffi::c_void, fromid: *const DEBUG_MODULE_AND_ID, flags: u32, toid: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols3_Impl::GetSymbolEntryBySymbolEntry(this, core::mem::transmute_copy(&fromid), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -26807,52 +19319,31 @@ impl IDebugSymbols3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourceEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourceEntriesByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&entries), core::mem::transmute_copy(&entriescount), core::mem::transmute_copy(&entriesavail)).into() } - unsafe extern "system" fn GetSourceEntriesByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourceEntriesByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourceEntriesByLine(this, core::mem::transmute_copy(&line), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&entries), core::mem::transmute_copy(&entriescount), core::mem::transmute_copy(&entriesavail)).into() } - unsafe extern "system" fn GetSourceEntriesByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourceEntriesByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourceEntriesByLineWide(this, core::mem::transmute_copy(&line), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&entries), core::mem::transmute_copy(&entriescount), core::mem::transmute_copy(&entriesavail)).into() } - unsafe extern "system" fn GetSourceEntryString(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourceEntryString(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourceEntryString(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSourceEntryStringWide(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourceEntryStringWide(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourceEntryStringWide(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSourceEntryOffsetRegions(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourceEntryOffsetRegions(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourceEntryOffsetRegions(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&flags), core::mem::transmute_copy(®ions), core::mem::transmute_copy(®ionscount), core::mem::transmute_copy(®ionsavail)).into() } - unsafe extern "system" fn GetSourceEntryBySourceEntry(this: *mut core::ffi::c_void, fromentry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, toentry: *mut DEBUG_SYMBOL_SOURCE_ENTRY) -> windows_core::HRESULT - where - Identity: IDebugSymbols3_Impl, - { + unsafe extern "system" fn GetSourceEntryBySourceEntry(this: *mut core::ffi::c_void, fromentry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, toentry: *mut DEBUG_SYMBOL_SOURCE_ENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols3_Impl::GetSourceEntryBySourceEntry(this, core::mem::transmute_copy(&fromentry), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&toentry)).into() } @@ -26987,7 +19478,7 @@ impl IDebugSymbols3_Vtbl { iid == &::IID } } -pub trait IDebugSymbols4_Impl: Sized { +pub trait IDebugSymbols4_Impl: Sized + windows_core::IUnknownImpl { fn GetSymbolOptions(&self) -> windows_core::Result; fn AddSymbolOptions(&self, options: u32) -> windows_core::Result<()>; fn RemoveSymbolOptions(&self, options: u32) -> windows_core::Result<()>; @@ -27121,14 +19612,8 @@ pub trait IDebugSymbols4_Impl: Sized { } impl windows_core::RuntimeName for IDebugSymbols4 {} impl IDebugSymbols4_Vtbl { - pub const fn new() -> IDebugSymbols4_Vtbl - where - Identity: IDebugSymbols4_Impl, - { - unsafe extern "system" fn GetSymbolOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + pub const fn new() -> IDebugSymbols4_Vtbl { + unsafe extern "system" fn GetSymbolOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetSymbolOptions(this) { Ok(ok__) => { @@ -27138,38 +19623,23 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AddSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AddSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn RemoveSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::RemoveSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetNameByOffset(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetNameByOffset(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetNameByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetOffsetByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetOffsetByName(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -27179,24 +19649,15 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNearNameByOffset(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetNearNameByOffset(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetNearNameByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByOffset(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetLineByOffset(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetLineByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetOffsetByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetOffsetByLine(this, core::mem::transmute_copy(&line), core::mem::transmute(&file)) { Ok(ok__) => { @@ -27206,17 +19667,11 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberModules(this: *mut core::ffi::c_void, loaded: *mut u32, unloaded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetNumberModules(this: *mut core::ffi::c_void, loaded: *mut u32, unloaded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetNumberModules(this, core::mem::transmute_copy(&loaded), core::mem::transmute_copy(&unloaded)).into() } - unsafe extern "system" fn GetModuleByIndex(this: *mut core::ffi::c_void, index: u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleByIndex(this: *mut core::ffi::c_void, index: u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetModuleByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -27226,24 +19681,15 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModuleByModuleName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleByModuleName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleByModuleName(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByOffset(this: *mut core::ffi::c_void, offset: u64, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleByOffset(this: *mut core::ffi::c_void, offset: u64, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleNames(this: *mut core::ffi::c_void, index: u32, base: u64, imagenamebuffer: windows_core::PSTR, imagenamebuffersize: u32, imagenamesize: *mut u32, modulenamebuffer: windows_core::PSTR, modulenamebuffersize: u32, modulenamesize: *mut u32, loadedimagenamebuffer: windows_core::PSTR, loadedimagenamebuffersize: u32, loadedimagenamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleNames(this: *mut core::ffi::c_void, index: u32, base: u64, imagenamebuffer: windows_core::PSTR, imagenamebuffersize: u32, imagenamesize: *mut u32, modulenamebuffer: windows_core::PSTR, modulenamebuffersize: u32, modulenamesize: *mut u32, loadedimagenamebuffer: windows_core::PSTR, loadedimagenamebuffersize: u32, loadedimagenamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleNames( this, @@ -27261,17 +19707,11 @@ impl IDebugSymbols4_Vtbl { ) .into() } - unsafe extern "system" fn GetModuleParameters(this: *mut core::ffi::c_void, count: u32, bases: *const u64, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleParameters(this: *mut core::ffi::c_void, count: u32, bases: *const u64, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&bases), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSymbolModule(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolModule(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetSymbolModule(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -27281,17 +19721,11 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetTypeName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeId(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCSTR, typeid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetTypeId(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCSTR, typeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetTypeId(this, core::mem::transmute_copy(&module), core::mem::transmute(&name)) { Ok(ok__) => { @@ -27301,10 +19735,7 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeSize(this: *mut core::ffi::c_void, module: u64, typeid: u32, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetTypeSize(this: *mut core::ffi::c_void, module: u64, typeid: u32, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetTypeSize(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid)) { Ok(ok__) => { @@ -27314,10 +19745,7 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFieldOffset(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCSTR, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetFieldOffset(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCSTR, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetFieldOffset(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute(&field)) { Ok(ok__) => { @@ -27327,87 +19755,51 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolTypeId(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolTypeId(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolTypeId(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn GetOffsetTypeId(this: *mut core::ffi::c_void, offset: u64, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetOffsetTypeId(this: *mut core::ffi::c_void, offset: u64, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetOffsetTypeId(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn ReadTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn ReadTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::ReadTypedDataVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn WriteTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::WriteTypedDataVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn OutputTypedDataVirtual(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn OutputTypedDataVirtual(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::OutputTypedDataVirtual(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ReadTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn ReadTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::ReadTypedDataPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn WriteTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::WriteTypedDataPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn OutputTypedDataPhysical(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn OutputTypedDataPhysical(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::OutputTypedDataPhysical(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetScope(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetScope(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn ResetScope(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn ResetScope(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::ResetScope(this).into() } - unsafe extern "system" fn GetScopeSymbolGroup(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetScopeSymbolGroup(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetScopeSymbolGroup(this, core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&update)) { Ok(ok__) => { @@ -27417,10 +19809,7 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSymbolGroup(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn CreateSymbolGroup(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::CreateSymbolGroup(this) { Ok(ok__) => { @@ -27430,10 +19819,7 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartSymbolMatch(this: *mut core::ffi::c_void, pattern: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn StartSymbolMatch(this: *mut core::ffi::c_void, pattern: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::StartSymbolMatch(this, core::mem::transmute(&pattern)) { Ok(ok__) => { @@ -27443,143 +19829,83 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSymbolMatch(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetNextSymbolMatch(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetNextSymbolMatch(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&matchsize), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn EndSymbolMatch(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn EndSymbolMatch(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::EndSymbolMatch(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Reload(this: *mut core::ffi::c_void, module: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn Reload(this: *mut core::ffi::c_void, module: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::Reload(this, core::mem::transmute(&module)).into() } - unsafe extern "system" fn GetSymbolPath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolPath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolPath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetSymbolPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetSymbolPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetSymbolPath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSymbolPath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AppendSymbolPath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AppendSymbolPath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetImagePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetImagePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetImagePath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetImagePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetImagePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetImagePath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendImagePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AppendImagePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AppendImagePath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetSourcePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourcePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourcePath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn GetSourcePathElement(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourcePathElement(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourcePathElement(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&elementsize)).into() } - unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetSourcePath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSourcePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AppendSourcePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AppendSourcePath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn FindSourceFile(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn FindSourceFile(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::FindSourceFile(this, core::mem::transmute_copy(&startelement), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSourceFileLineOffsets(this: *mut core::ffi::c_void, file: windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourceFileLineOffsets(this: *mut core::ffi::c_void, file: windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourceFileLineOffsets(this, core::mem::transmute(&file), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlines), core::mem::transmute_copy(&filelines)).into() } - unsafe extern "system" fn GetModuleVersionInformation(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleVersionInformation(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleVersionInformation(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute(&item), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&verinfosize)).into() } - unsafe extern "system" fn GetModuleNameString(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleNameString(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleNameString(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetConstantName(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetConstantName(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetConstantName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&value), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetFieldName(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetFieldName(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetFieldName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&fieldindex), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetTypeOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetTypeOptions(this) { Ok(ok__) => { @@ -27589,38 +19915,23 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AddTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AddTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn RemoveTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::RemoveTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetNameByOffsetWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetOffsetByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetOffsetByNameWide(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -27630,24 +19941,15 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNearNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetNearNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetNearNameByOffsetWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByOffsetWide(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetLineByOffsetWide(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetLineByOffsetWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetOffsetByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetOffsetByLineWide(this, core::mem::transmute_copy(&line), core::mem::transmute(&file)) { Ok(ok__) => { @@ -27657,17 +19959,11 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModuleByModuleNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleByModuleNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleByModuleNameWide(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetSymbolModuleWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolModuleWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetSymbolModuleWide(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -27677,17 +19973,11 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetTypeNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetTypeNameWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeIdWide(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCWSTR, typeid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetTypeIdWide(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCWSTR, typeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetTypeIdWide(this, core::mem::transmute_copy(&module), core::mem::transmute(&name)) { Ok(ok__) => { @@ -27697,10 +19987,7 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFieldOffsetWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCWSTR, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetFieldOffsetWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCWSTR, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetFieldOffsetWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute(&field)) { Ok(ok__) => { @@ -27710,17 +19997,11 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolTypeIdWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolTypeIdWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolTypeIdWide(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn GetScopeSymbolGroup2(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetScopeSymbolGroup2(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetScopeSymbolGroup2(this, core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&update)) { Ok(ok__) => { @@ -27730,10 +20011,7 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSymbolGroup2(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn CreateSymbolGroup2(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::CreateSymbolGroup2(this) { Ok(ok__) => { @@ -27743,10 +20021,7 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartSymbolMatchWide(this: *mut core::ffi::c_void, pattern: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn StartSymbolMatchWide(this: *mut core::ffi::c_void, pattern: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::StartSymbolMatchWide(this, core::mem::transmute(&pattern)) { Ok(ok__) => { @@ -27756,185 +20031,107 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSymbolMatchWide(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PWSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetNextSymbolMatchWide(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PWSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetNextSymbolMatchWide(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&matchsize), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn ReloadWide(this: *mut core::ffi::c_void, module: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn ReloadWide(this: *mut core::ffi::c_void, module: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::ReloadWide(this, core::mem::transmute(&module)).into() } - unsafe extern "system" fn GetSymbolPathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolPathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolPathWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetSymbolPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetSymbolPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetSymbolPathWide(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSymbolPathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AppendSymbolPathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AppendSymbolPathWide(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetImagePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetImagePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetImagePathWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetImagePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetImagePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetImagePathWide(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendImagePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AppendImagePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AppendImagePathWide(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetSourcePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourcePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourcePathWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn GetSourcePathElementWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourcePathElementWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourcePathElementWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&elementsize)).into() } - unsafe extern "system" fn SetSourcePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetSourcePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetSourcePathWide(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSourcePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AppendSourcePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AppendSourcePathWide(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn FindSourceFileWide(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCWSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn FindSourceFileWide(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCWSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::FindSourceFileWide(this, core::mem::transmute_copy(&startelement), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSourceFileLineOffsetsWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourceFileLineOffsetsWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourceFileLineOffsetsWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlines), core::mem::transmute_copy(&filelines)).into() } - unsafe extern "system" fn GetModuleVersionInformationWide(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCWSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleVersionInformationWide(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCWSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleVersionInformationWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute(&item), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&verinfosize)).into() } - unsafe extern "system" fn GetModuleNameStringWide(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleNameStringWide(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleNameStringWide(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetConstantNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetConstantNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetConstantNameWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&value), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetFieldNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetFieldNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetFieldNameWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&fieldindex), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn IsManagedModule(this: *mut core::ffi::c_void, index: u32, base: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn IsManagedModule(this: *mut core::ffi::c_void, index: u32, base: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::IsManagedModule(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByModuleName2(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleByModuleName2(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleByModuleName2(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByModuleName2Wide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleByModuleName2Wide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleByModuleName2Wide(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByOffset2(this: *mut core::ffi::c_void, offset: u64, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetModuleByOffset2(this: *mut core::ffi::c_void, offset: u64, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetModuleByOffset2(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn AddSyntheticModule(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCSTR, modulename: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AddSyntheticModule(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCSTR, modulename: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AddSyntheticModule(this, core::mem::transmute_copy(&base), core::mem::transmute_copy(&size), core::mem::transmute(&imagepath), core::mem::transmute(&modulename), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn AddSyntheticModuleWide(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCWSTR, modulename: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AddSyntheticModuleWide(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCWSTR, modulename: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AddSyntheticModuleWide(this, core::mem::transmute_copy(&base), core::mem::transmute_copy(&size), core::mem::transmute(&imagepath), core::mem::transmute(&modulename), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn RemoveSyntheticModule(this: *mut core::ffi::c_void, base: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn RemoveSyntheticModule(this: *mut core::ffi::c_void, base: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::RemoveSyntheticModule(this, core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetCurrentScopeFrameIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetCurrentScopeFrameIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetCurrentScopeFrameIndex(this) { Ok(ok__) => { @@ -27944,101 +20141,59 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScopeFrameByIndex(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetScopeFrameByIndex(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetScopeFrameByIndex(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetScopeFromJitDebugInfo(this: *mut core::ffi::c_void, outputcontrol: u32, infooffset: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetScopeFromJitDebugInfo(this: *mut core::ffi::c_void, outputcontrol: u32, infooffset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetScopeFromJitDebugInfo(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&infooffset)).into() } - unsafe extern "system" fn SetScopeFromStoredEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetScopeFromStoredEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetScopeFromStoredEvent(this).into() } - unsafe extern "system" fn OutputSymbolByOffset(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn OutputSymbolByOffset(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::OutputSymbolByOffset(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetFunctionEntryByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bufferneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetFunctionEntryByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bufferneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetFunctionEntryByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bufferneeded)).into() } - unsafe extern "system" fn GetFieldTypeAndOffset(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetFieldTypeAndOffset(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetFieldTypeAndOffset(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&containertypeid), core::mem::transmute(&field), core::mem::transmute_copy(&fieldtypeid), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetFieldTypeAndOffsetWide(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCWSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetFieldTypeAndOffsetWide(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCWSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetFieldTypeAndOffsetWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&containertypeid), core::mem::transmute(&field), core::mem::transmute_copy(&fieldtypeid), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn AddSyntheticSymbol(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AddSyntheticSymbol(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AddSyntheticSymbol(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&size), core::mem::transmute(&name), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn AddSyntheticSymbolWide(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCWSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn AddSyntheticSymbolWide(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCWSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::AddSyntheticSymbolWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&size), core::mem::transmute(&name), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn RemoveSyntheticSymbol(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn RemoveSyntheticSymbol(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::RemoveSyntheticSymbol(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetSymbolEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, displacements: *mut u64, idscount: u32, entries: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, displacements: *mut u64, idscount: u32, entries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolEntriesByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&displacements), core::mem::transmute_copy(&idscount), core::mem::transmute_copy(&entries)).into() } - unsafe extern "system" fn GetSymbolEntriesByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolEntriesByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolEntriesByName(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&idscount), core::mem::transmute_copy(&entries)).into() } - unsafe extern "system" fn GetSymbolEntriesByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolEntriesByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolEntriesByNameWide(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&idscount), core::mem::transmute_copy(&entries)).into() } - unsafe extern "system" fn GetSymbolEntryByToken(this: *mut core::ffi::c_void, modulebase: u64, token: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolEntryByToken(this: *mut core::ffi::c_void, modulebase: u64, token: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetSymbolEntryByToken(this, core::mem::transmute_copy(&modulebase), core::mem::transmute_copy(&token)) { Ok(ok__) => { @@ -28048,38 +20203,23 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolEntryInformation(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, info: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolEntryInformation(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, info: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolEntryInformation(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&info)).into() } - unsafe extern "system" fn GetSymbolEntryString(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolEntryString(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolEntryString(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSymbolEntryStringWide(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolEntryStringWide(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolEntryStringWide(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSymbolEntryOffsetRegions(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolEntryOffsetRegions(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSymbolEntryOffsetRegions(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&flags), core::mem::transmute_copy(®ions), core::mem::transmute_copy(®ionscount), core::mem::transmute_copy(®ionsavail)).into() } - unsafe extern "system" fn GetSymbolEntryBySymbolEntry(this: *mut core::ffi::c_void, fromid: *const DEBUG_MODULE_AND_ID, flags: u32, toid: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSymbolEntryBySymbolEntry(this: *mut core::ffi::c_void, fromid: *const DEBUG_MODULE_AND_ID, flags: u32, toid: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols4_Impl::GetSymbolEntryBySymbolEntry(this, core::mem::transmute_copy(&fromid), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -28089,101 +20229,59 @@ impl IDebugSymbols4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourceEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourceEntriesByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&entries), core::mem::transmute_copy(&entriescount), core::mem::transmute_copy(&entriesavail)).into() } - unsafe extern "system" fn GetSourceEntriesByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourceEntriesByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourceEntriesByLine(this, core::mem::transmute_copy(&line), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&entries), core::mem::transmute_copy(&entriescount), core::mem::transmute_copy(&entriesavail)).into() } - unsafe extern "system" fn GetSourceEntriesByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourceEntriesByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourceEntriesByLineWide(this, core::mem::transmute_copy(&line), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&entries), core::mem::transmute_copy(&entriescount), core::mem::transmute_copy(&entriesavail)).into() } - unsafe extern "system" fn GetSourceEntryString(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourceEntryString(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourceEntryString(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSourceEntryStringWide(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourceEntryStringWide(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourceEntryStringWide(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSourceEntryOffsetRegions(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourceEntryOffsetRegions(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourceEntryOffsetRegions(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&flags), core::mem::transmute_copy(®ions), core::mem::transmute_copy(®ionscount), core::mem::transmute_copy(®ionsavail)).into() } - unsafe extern "system" fn GetSourceEntryBySourceEntry(this: *mut core::ffi::c_void, fromentry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, toentry: *mut DEBUG_SYMBOL_SOURCE_ENTRY) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetSourceEntryBySourceEntry(this: *mut core::ffi::c_void, fromentry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, toentry: *mut DEBUG_SYMBOL_SOURCE_ENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetSourceEntryBySourceEntry(this, core::mem::transmute_copy(&fromentry), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&toentry)).into() } - unsafe extern "system" fn GetScopeEx(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME_EX, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetScopeEx(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME_EX, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetScopeEx(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn SetScopeEx(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME_EX, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn SetScopeEx(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME_EX, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::SetScopeEx(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn GetNameByInlineContext(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetNameByInlineContext(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetNameByInlineContext(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&inlinecontext), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetNameByInlineContextWide(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetNameByInlineContextWide(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetNameByInlineContextWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&inlinecontext), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByInlineContext(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetLineByInlineContext(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetLineByInlineContext(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&inlinecontext), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByInlineContextWide(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, line: *mut u32, filebuffer: windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn GetLineByInlineContextWide(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, line: *mut u32, filebuffer: windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::GetLineByInlineContextWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&inlinecontext), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn OutputSymbolByInlineContext(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64, inlinecontext: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols4_Impl, - { + unsafe extern "system" fn OutputSymbolByInlineContext(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64, inlinecontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols4_Impl::OutputSymbolByInlineContext(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&inlinecontext)).into() } @@ -28325,7 +20423,7 @@ impl IDebugSymbols4_Vtbl { iid == &::IID } } -pub trait IDebugSymbols5_Impl: Sized { +pub trait IDebugSymbols5_Impl: Sized + windows_core::IUnknownImpl { fn GetSymbolOptions(&self) -> windows_core::Result; fn AddSymbolOptions(&self, options: u32) -> windows_core::Result<()>; fn RemoveSymbolOptions(&self, options: u32) -> windows_core::Result<()>; @@ -28461,14 +20559,8 @@ pub trait IDebugSymbols5_Impl: Sized { } impl windows_core::RuntimeName for IDebugSymbols5 {} impl IDebugSymbols5_Vtbl { - pub const fn new() -> IDebugSymbols5_Vtbl - where - Identity: IDebugSymbols5_Impl, - { - unsafe extern "system" fn GetSymbolOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + pub const fn new() -> IDebugSymbols5_Vtbl { + unsafe extern "system" fn GetSymbolOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetSymbolOptions(this) { Ok(ok__) => { @@ -28478,38 +20570,23 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AddSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AddSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn RemoveSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::RemoveSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetSymbolOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetSymbolOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetNameByOffset(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetNameByOffset(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetNameByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetOffsetByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetOffsetByName(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -28519,24 +20596,15 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNearNameByOffset(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetNearNameByOffset(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetNearNameByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByOffset(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetLineByOffset(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetLineByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetOffsetByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetOffsetByLine(this, core::mem::transmute_copy(&line), core::mem::transmute(&file)) { Ok(ok__) => { @@ -28546,17 +20614,11 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberModules(this: *mut core::ffi::c_void, loaded: *mut u32, unloaded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetNumberModules(this: *mut core::ffi::c_void, loaded: *mut u32, unloaded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetNumberModules(this, core::mem::transmute_copy(&loaded), core::mem::transmute_copy(&unloaded)).into() } - unsafe extern "system" fn GetModuleByIndex(this: *mut core::ffi::c_void, index: u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleByIndex(this: *mut core::ffi::c_void, index: u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetModuleByIndex(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -28566,24 +20628,15 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModuleByModuleName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleByModuleName(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleByModuleName(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByOffset(this: *mut core::ffi::c_void, offset: u64, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleByOffset(this: *mut core::ffi::c_void, offset: u64, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleNames(this: *mut core::ffi::c_void, index: u32, base: u64, imagenamebuffer: windows_core::PSTR, imagenamebuffersize: u32, imagenamesize: *mut u32, modulenamebuffer: windows_core::PSTR, modulenamebuffersize: u32, modulenamesize: *mut u32, loadedimagenamebuffer: windows_core::PSTR, loadedimagenamebuffersize: u32, loadedimagenamesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleNames(this: *mut core::ffi::c_void, index: u32, base: u64, imagenamebuffer: windows_core::PSTR, imagenamebuffersize: u32, imagenamesize: *mut u32, modulenamebuffer: windows_core::PSTR, modulenamebuffersize: u32, modulenamesize: *mut u32, loadedimagenamebuffer: windows_core::PSTR, loadedimagenamebuffersize: u32, loadedimagenamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleNames( this, @@ -28601,17 +20654,11 @@ impl IDebugSymbols5_Vtbl { ) .into() } - unsafe extern "system" fn GetModuleParameters(this: *mut core::ffi::c_void, count: u32, bases: *const u64, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleParameters(this: *mut core::ffi::c_void, count: u32, bases: *const u64, start: u32, params: *mut DEBUG_MODULE_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleParameters(this, core::mem::transmute_copy(&count), core::mem::transmute_copy(&bases), core::mem::transmute_copy(&start), core::mem::transmute_copy(¶ms)).into() } - unsafe extern "system" fn GetSymbolModule(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolModule(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetSymbolModule(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -28621,17 +20668,11 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetTypeName(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetTypeName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeId(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCSTR, typeid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetTypeId(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCSTR, typeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetTypeId(this, core::mem::transmute_copy(&module), core::mem::transmute(&name)) { Ok(ok__) => { @@ -28641,10 +20682,7 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeSize(this: *mut core::ffi::c_void, module: u64, typeid: u32, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetTypeSize(this: *mut core::ffi::c_void, module: u64, typeid: u32, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetTypeSize(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid)) { Ok(ok__) => { @@ -28654,10 +20692,7 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFieldOffset(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCSTR, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetFieldOffset(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCSTR, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetFieldOffset(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute(&field)) { Ok(ok__) => { @@ -28667,87 +20702,51 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolTypeId(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolTypeId(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolTypeId(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn GetOffsetTypeId(this: *mut core::ffi::c_void, offset: u64, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetOffsetTypeId(this: *mut core::ffi::c_void, offset: u64, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetOffsetTypeId(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn ReadTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn ReadTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::ReadTypedDataVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn WriteTypedDataVirtual(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::WriteTypedDataVirtual(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn OutputTypedDataVirtual(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn OutputTypedDataVirtual(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::OutputTypedDataVirtual(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn ReadTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn ReadTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::ReadTypedDataPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bytesread)).into() } - unsafe extern "system" fn WriteTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn WriteTypedDataPhysical(this: *mut core::ffi::c_void, offset: u64, module: u64, typeid: u32, buffer: *const core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::WriteTypedDataPhysical(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&byteswritten)).into() } - unsafe extern "system" fn OutputTypedDataPhysical(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn OutputTypedDataPhysical(this: *mut core::ffi::c_void, outputcontrol: u32, offset: u64, module: u64, typeid: u32, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::OutputTypedDataPhysical(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetScope(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetScope(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn ResetScope(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn ResetScope(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::ResetScope(this).into() } - unsafe extern "system" fn GetScopeSymbolGroup(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetScopeSymbolGroup(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetScopeSymbolGroup(this, core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&update)) { Ok(ok__) => { @@ -28757,10 +20756,7 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSymbolGroup(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn CreateSymbolGroup(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::CreateSymbolGroup(this) { Ok(ok__) => { @@ -28770,10 +20766,7 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartSymbolMatch(this: *mut core::ffi::c_void, pattern: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn StartSymbolMatch(this: *mut core::ffi::c_void, pattern: windows_core::PCSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::StartSymbolMatch(this, core::mem::transmute(&pattern)) { Ok(ok__) => { @@ -28783,143 +20776,83 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSymbolMatch(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetNextSymbolMatch(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetNextSymbolMatch(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&matchsize), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn EndSymbolMatch(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn EndSymbolMatch(this: *mut core::ffi::c_void, handle: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::EndSymbolMatch(this, core::mem::transmute_copy(&handle)).into() } - unsafe extern "system" fn Reload(this: *mut core::ffi::c_void, module: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn Reload(this: *mut core::ffi::c_void, module: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::Reload(this, core::mem::transmute(&module)).into() } - unsafe extern "system" fn GetSymbolPath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolPath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolPath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetSymbolPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetSymbolPath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetSymbolPath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSymbolPath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AppendSymbolPath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AppendSymbolPath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetImagePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetImagePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetImagePath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetImagePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetImagePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetImagePath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendImagePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AppendImagePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AppendImagePath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetSourcePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourcePath(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourcePath(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn GetSourcePathElement(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourcePathElement(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourcePathElement(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&elementsize)).into() } - unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetSourcePath(this: *mut core::ffi::c_void, path: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetSourcePath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSourcePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AppendSourcePath(this: *mut core::ffi::c_void, addition: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AppendSourcePath(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn FindSourceFile(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn FindSourceFile(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::FindSourceFile(this, core::mem::transmute_copy(&startelement), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSourceFileLineOffsets(this: *mut core::ffi::c_void, file: windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourceFileLineOffsets(this: *mut core::ffi::c_void, file: windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourceFileLineOffsets(this, core::mem::transmute(&file), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlines), core::mem::transmute_copy(&filelines)).into() } - unsafe extern "system" fn GetModuleVersionInformation(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleVersionInformation(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleVersionInformation(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute(&item), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&verinfosize)).into() } - unsafe extern "system" fn GetModuleNameString(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleNameString(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleNameString(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetConstantName(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetConstantName(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetConstantName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&value), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetFieldName(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetFieldName(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetFieldName(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&fieldindex), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetTypeOptions(this: *mut core::ffi::c_void, options: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetTypeOptions(this) { Ok(ok__) => { @@ -28929,38 +20862,23 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AddTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AddTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn RemoveTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn RemoveTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::RemoveTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn SetTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetTypeOptions(this: *mut core::ffi::c_void, options: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetTypeOptions(this, core::mem::transmute_copy(&options)).into() } - unsafe extern "system" fn GetNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetNameByOffsetWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetOffsetByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetOffsetByNameWide(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -28970,24 +20888,15 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNearNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetNearNameByOffsetWide(this: *mut core::ffi::c_void, offset: u64, delta: i32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetNearNameByOffsetWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&delta), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByOffsetWide(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetLineByOffsetWide(this: *mut core::ffi::c_void, offset: u64, line: *mut u32, filebuffer: windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetLineByOffsetWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetOffsetByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetOffsetByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetOffsetByLineWide(this, core::mem::transmute_copy(&line), core::mem::transmute(&file)) { Ok(ok__) => { @@ -28997,17 +20906,11 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetModuleByModuleNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleByModuleNameWide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleByModuleNameWide(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetSymbolModuleWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolModuleWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetSymbolModuleWide(this, core::mem::transmute(&symbol)) { Ok(ok__) => { @@ -29017,17 +20920,11 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetTypeNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetTypeNameWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetTypeIdWide(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCWSTR, typeid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetTypeIdWide(this: *mut core::ffi::c_void, module: u64, name: windows_core::PCWSTR, typeid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetTypeIdWide(this, core::mem::transmute_copy(&module), core::mem::transmute(&name)) { Ok(ok__) => { @@ -29037,10 +20934,7 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFieldOffsetWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCWSTR, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetFieldOffsetWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, field: windows_core::PCWSTR, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetFieldOffsetWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute(&field)) { Ok(ok__) => { @@ -29050,17 +20944,11 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolTypeIdWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolTypeIdWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, typeid: *mut u32, module: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolTypeIdWide(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&module)).into() } - unsafe extern "system" fn GetScopeSymbolGroup2(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetScopeSymbolGroup2(this: *mut core::ffi::c_void, flags: u32, update: *mut core::ffi::c_void, symbols: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetScopeSymbolGroup2(this, core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&update)) { Ok(ok__) => { @@ -29070,10 +20958,7 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSymbolGroup2(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn CreateSymbolGroup2(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::CreateSymbolGroup2(this) { Ok(ok__) => { @@ -29083,10 +20968,7 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartSymbolMatchWide(this: *mut core::ffi::c_void, pattern: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn StartSymbolMatchWide(this: *mut core::ffi::c_void, pattern: windows_core::PCWSTR, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::StartSymbolMatchWide(this, core::mem::transmute(&pattern)) { Ok(ok__) => { @@ -29096,185 +20978,107 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSymbolMatchWide(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PWSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetNextSymbolMatchWide(this: *mut core::ffi::c_void, handle: u64, buffer: windows_core::PWSTR, buffersize: u32, matchsize: *mut u32, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetNextSymbolMatchWide(this, core::mem::transmute_copy(&handle), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&matchsize), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn ReloadWide(this: *mut core::ffi::c_void, module: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn ReloadWide(this: *mut core::ffi::c_void, module: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::ReloadWide(this, core::mem::transmute(&module)).into() } - unsafe extern "system" fn GetSymbolPathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolPathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolPathWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetSymbolPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetSymbolPathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetSymbolPathWide(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSymbolPathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AppendSymbolPathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AppendSymbolPathWide(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetImagePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetImagePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetImagePathWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn SetImagePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetImagePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetImagePathWide(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendImagePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AppendImagePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AppendImagePathWide(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn GetSourcePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourcePathWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, pathsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourcePathWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&pathsize)).into() } - unsafe extern "system" fn GetSourcePathElementWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourcePathElementWide(this: *mut core::ffi::c_void, index: u32, buffer: windows_core::PWSTR, buffersize: u32, elementsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourcePathElementWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&elementsize)).into() } - unsafe extern "system" fn SetSourcePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetSourcePathWide(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetSourcePathWide(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn AppendSourcePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AppendSourcePathWide(this: *mut core::ffi::c_void, addition: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AppendSourcePathWide(this, core::mem::transmute(&addition)).into() } - unsafe extern "system" fn FindSourceFileWide(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCWSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn FindSourceFileWide(this: *mut core::ffi::c_void, startelement: u32, file: windows_core::PCWSTR, flags: u32, foundelement: *mut u32, buffer: windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::FindSourceFileWide(this, core::mem::transmute_copy(&startelement), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&foundelement), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&foundsize)).into() } - unsafe extern "system" fn GetSourceFileLineOffsetsWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourceFileLineOffsetsWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourceFileLineOffsetsWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&bufferlines), core::mem::transmute_copy(&filelines)).into() } - unsafe extern "system" fn GetModuleVersionInformationWide(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCWSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleVersionInformationWide(this: *mut core::ffi::c_void, index: u32, base: u64, item: windows_core::PCWSTR, buffer: *mut core::ffi::c_void, buffersize: u32, verinfosize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleVersionInformationWide(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute(&item), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&verinfosize)).into() } - unsafe extern "system" fn GetModuleNameStringWide(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleNameStringWide(this: *mut core::ffi::c_void, which: u32, index: u32, base: u64, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleNameStringWide(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetConstantNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetConstantNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, value: u64, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetConstantNameWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&value), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetFieldNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetFieldNameWide(this: *mut core::ffi::c_void, module: u64, typeid: u32, fieldindex: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetFieldNameWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&typeid), core::mem::transmute_copy(&fieldindex), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn IsManagedModule(this: *mut core::ffi::c_void, index: u32, base: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn IsManagedModule(this: *mut core::ffi::c_void, index: u32, base: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::IsManagedModule(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByModuleName2(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleByModuleName2(this: *mut core::ffi::c_void, name: windows_core::PCSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleByModuleName2(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByModuleName2Wide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleByModuleName2Wide(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleByModuleName2Wide(this, core::mem::transmute(&name), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetModuleByOffset2(this: *mut core::ffi::c_void, offset: u64, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetModuleByOffset2(this: *mut core::ffi::c_void, offset: u64, startindex: u32, flags: u32, index: *mut u32, base: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetModuleByOffset2(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&index), core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn AddSyntheticModule(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCSTR, modulename: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AddSyntheticModule(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCSTR, modulename: windows_core::PCSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AddSyntheticModule(this, core::mem::transmute_copy(&base), core::mem::transmute_copy(&size), core::mem::transmute(&imagepath), core::mem::transmute(&modulename), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn AddSyntheticModuleWide(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCWSTR, modulename: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AddSyntheticModuleWide(this: *mut core::ffi::c_void, base: u64, size: u32, imagepath: windows_core::PCWSTR, modulename: windows_core::PCWSTR, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AddSyntheticModuleWide(this, core::mem::transmute_copy(&base), core::mem::transmute_copy(&size), core::mem::transmute(&imagepath), core::mem::transmute(&modulename), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn RemoveSyntheticModule(this: *mut core::ffi::c_void, base: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn RemoveSyntheticModule(this: *mut core::ffi::c_void, base: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::RemoveSyntheticModule(this, core::mem::transmute_copy(&base)).into() } - unsafe extern "system" fn GetCurrentScopeFrameIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetCurrentScopeFrameIndex(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetCurrentScopeFrameIndex(this) { Ok(ok__) => { @@ -29284,101 +21088,59 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScopeFrameByIndex(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetScopeFrameByIndex(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetScopeFrameByIndex(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetScopeFromJitDebugInfo(this: *mut core::ffi::c_void, outputcontrol: u32, infooffset: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetScopeFromJitDebugInfo(this: *mut core::ffi::c_void, outputcontrol: u32, infooffset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetScopeFromJitDebugInfo(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&infooffset)).into() } - unsafe extern "system" fn SetScopeFromStoredEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetScopeFromStoredEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetScopeFromStoredEvent(this).into() } - unsafe extern "system" fn OutputSymbolByOffset(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn OutputSymbolByOffset(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::OutputSymbolByOffset(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetFunctionEntryByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bufferneeded: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetFunctionEntryByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, buffer: *mut core::ffi::c_void, buffersize: u32, bufferneeded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetFunctionEntryByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&bufferneeded)).into() } - unsafe extern "system" fn GetFieldTypeAndOffset(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetFieldTypeAndOffset(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetFieldTypeAndOffset(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&containertypeid), core::mem::transmute(&field), core::mem::transmute_copy(&fieldtypeid), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetFieldTypeAndOffsetWide(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCWSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetFieldTypeAndOffsetWide(this: *mut core::ffi::c_void, module: u64, containertypeid: u32, field: windows_core::PCWSTR, fieldtypeid: *mut u32, offset: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetFieldTypeAndOffsetWide(this, core::mem::transmute_copy(&module), core::mem::transmute_copy(&containertypeid), core::mem::transmute(&field), core::mem::transmute_copy(&fieldtypeid), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn AddSyntheticSymbol(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AddSyntheticSymbol(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AddSyntheticSymbol(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&size), core::mem::transmute(&name), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn AddSyntheticSymbolWide(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCWSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn AddSyntheticSymbolWide(this: *mut core::ffi::c_void, offset: u64, size: u32, name: windows_core::PCWSTR, flags: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::AddSyntheticSymbolWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&size), core::mem::transmute(&name), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn RemoveSyntheticSymbol(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn RemoveSyntheticSymbol(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::RemoveSyntheticSymbol(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetSymbolEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, displacements: *mut u64, idscount: u32, entries: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, displacements: *mut u64, idscount: u32, entries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolEntriesByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&displacements), core::mem::transmute_copy(&idscount), core::mem::transmute_copy(&entries)).into() } - unsafe extern "system" fn GetSymbolEntriesByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolEntriesByName(this: *mut core::ffi::c_void, symbol: windows_core::PCSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolEntriesByName(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&idscount), core::mem::transmute_copy(&entries)).into() } - unsafe extern "system" fn GetSymbolEntriesByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolEntriesByNameWide(this: *mut core::ffi::c_void, symbol: windows_core::PCWSTR, flags: u32, ids: *mut DEBUG_MODULE_AND_ID, idscount: u32, entries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolEntriesByNameWide(this, core::mem::transmute(&symbol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&idscount), core::mem::transmute_copy(&entries)).into() } - unsafe extern "system" fn GetSymbolEntryByToken(this: *mut core::ffi::c_void, modulebase: u64, token: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolEntryByToken(this: *mut core::ffi::c_void, modulebase: u64, token: u32, id: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetSymbolEntryByToken(this, core::mem::transmute_copy(&modulebase), core::mem::transmute_copy(&token)) { Ok(ok__) => { @@ -29388,38 +21150,23 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSymbolEntryInformation(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, info: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolEntryInformation(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, info: *mut DEBUG_SYMBOL_ENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolEntryInformation(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&info)).into() } - unsafe extern "system" fn GetSymbolEntryString(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolEntryString(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolEntryString(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSymbolEntryStringWide(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolEntryStringWide(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolEntryStringWide(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSymbolEntryOffsetRegions(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolEntryOffsetRegions(this: *mut core::ffi::c_void, id: *const DEBUG_MODULE_AND_ID, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSymbolEntryOffsetRegions(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&flags), core::mem::transmute_copy(®ions), core::mem::transmute_copy(®ionscount), core::mem::transmute_copy(®ionsavail)).into() } - unsafe extern "system" fn GetSymbolEntryBySymbolEntry(this: *mut core::ffi::c_void, fromid: *const DEBUG_MODULE_AND_ID, flags: u32, toid: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSymbolEntryBySymbolEntry(this: *mut core::ffi::c_void, fromid: *const DEBUG_MODULE_AND_ID, flags: u32, toid: *mut DEBUG_MODULE_AND_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetSymbolEntryBySymbolEntry(this, core::mem::transmute_copy(&fromid), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -29429,108 +21176,63 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourceEntriesByOffset(this: *mut core::ffi::c_void, offset: u64, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourceEntriesByOffset(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&entries), core::mem::transmute_copy(&entriescount), core::mem::transmute_copy(&entriesavail)).into() } - unsafe extern "system" fn GetSourceEntriesByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourceEntriesByLine(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourceEntriesByLine(this, core::mem::transmute_copy(&line), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&entries), core::mem::transmute_copy(&entriescount), core::mem::transmute_copy(&entriesavail)).into() } - unsafe extern "system" fn GetSourceEntriesByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourceEntriesByLineWide(this: *mut core::ffi::c_void, line: u32, file: windows_core::PCWSTR, flags: u32, entries: *mut DEBUG_SYMBOL_SOURCE_ENTRY, entriescount: u32, entriesavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourceEntriesByLineWide(this, core::mem::transmute_copy(&line), core::mem::transmute(&file), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&entries), core::mem::transmute_copy(&entriescount), core::mem::transmute_copy(&entriesavail)).into() } - unsafe extern "system" fn GetSourceEntryString(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourceEntryString(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourceEntryString(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSourceEntryStringWide(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourceEntryStringWide(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, which: u32, buffer: windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourceEntryStringWide(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&which), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&stringsize)).into() } - unsafe extern "system" fn GetSourceEntryOffsetRegions(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourceEntryOffsetRegions(this: *mut core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourceEntryOffsetRegions(this, core::mem::transmute_copy(&entry), core::mem::transmute_copy(&flags), core::mem::transmute_copy(®ions), core::mem::transmute_copy(®ionscount), core::mem::transmute_copy(®ionsavail)).into() } - unsafe extern "system" fn GetSourceEntryBySourceEntry(this: *mut core::ffi::c_void, fromentry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, toentry: *mut DEBUG_SYMBOL_SOURCE_ENTRY) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetSourceEntryBySourceEntry(this: *mut core::ffi::c_void, fromentry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, toentry: *mut DEBUG_SYMBOL_SOURCE_ENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetSourceEntryBySourceEntry(this, core::mem::transmute_copy(&fromentry), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&toentry)).into() } - unsafe extern "system" fn GetScopeEx(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME_EX, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetScopeEx(this: *mut core::ffi::c_void, instructionoffset: *mut u64, scopeframe: *mut DEBUG_STACK_FRAME_EX, scopecontext: *mut core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetScopeEx(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn SetScopeEx(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME_EX, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetScopeEx(this: *mut core::ffi::c_void, instructionoffset: u64, scopeframe: *const DEBUG_STACK_FRAME_EX, scopecontext: *const core::ffi::c_void, scopecontextsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetScopeEx(this, core::mem::transmute_copy(&instructionoffset), core::mem::transmute_copy(&scopeframe), core::mem::transmute_copy(&scopecontext), core::mem::transmute_copy(&scopecontextsize)).into() } - unsafe extern "system" fn GetNameByInlineContext(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetNameByInlineContext(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, namebuffer: windows_core::PSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetNameByInlineContext(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&inlinecontext), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetNameByInlineContextWide(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetNameByInlineContextWide(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, namebuffer: windows_core::PWSTR, namebuffersize: u32, namesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetNameByInlineContextWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&inlinecontext), core::mem::transmute_copy(&namebuffer), core::mem::transmute_copy(&namebuffersize), core::mem::transmute_copy(&namesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByInlineContext(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetLineByInlineContext(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, line: *mut u32, filebuffer: windows_core::PSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetLineByInlineContext(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&inlinecontext), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn GetLineByInlineContextWide(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, line: *mut u32, filebuffer: windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetLineByInlineContextWide(this: *mut core::ffi::c_void, offset: u64, inlinecontext: u32, line: *mut u32, filebuffer: windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::GetLineByInlineContextWide(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&inlinecontext), core::mem::transmute_copy(&line), core::mem::transmute_copy(&filebuffer), core::mem::transmute_copy(&filebuffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn OutputSymbolByInlineContext(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64, inlinecontext: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn OutputSymbolByInlineContext(this: *mut core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64, inlinecontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::OutputSymbolByInlineContext(this, core::mem::transmute_copy(&outputcontrol), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&inlinecontext)).into() } - unsafe extern "system" fn GetCurrentScopeFrameIndexEx(this: *mut core::ffi::c_void, flags: u32, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn GetCurrentScopeFrameIndexEx(this: *mut core::ffi::c_void, flags: u32, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSymbols5_Impl::GetCurrentScopeFrameIndexEx(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -29540,10 +21242,7 @@ impl IDebugSymbols5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScopeFrameByIndexEx(this: *mut core::ffi::c_void, flags: u32, index: u32) -> windows_core::HRESULT - where - Identity: IDebugSymbols5_Impl, - { + unsafe extern "system" fn SetScopeFrameByIndexEx(this: *mut core::ffi::c_void, flags: u32, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbols5_Impl::SetScopeFrameByIndexEx(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&index)).into() } @@ -29687,7 +21386,7 @@ impl IDebugSymbols5_Vtbl { iid == &::IID } } -pub trait IDebugSystemObjects_Impl: Sized { +pub trait IDebugSystemObjects_Impl: Sized + windows_core::IUnknownImpl { fn GetEventThread(&self) -> windows_core::Result; fn GetEventProcess(&self) -> windows_core::Result; fn GetCurrentThreadId(&self) -> windows_core::Result; @@ -29720,14 +21419,8 @@ pub trait IDebugSystemObjects_Impl: Sized { } impl windows_core::RuntimeName for IDebugSystemObjects {} impl IDebugSystemObjects_Vtbl { - pub const fn new() -> IDebugSystemObjects_Vtbl - where - Identity: IDebugSystemObjects_Impl, - { - unsafe extern "system" fn GetEventThread(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + pub const fn new() -> IDebugSystemObjects_Vtbl { + unsafe extern "system" fn GetEventThread(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetEventThread(this) { Ok(ok__) => { @@ -29737,10 +21430,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventProcess(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetEventProcess(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetEventProcess(this) { Ok(ok__) => { @@ -29750,10 +21440,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetCurrentThreadId(this) { Ok(ok__) => { @@ -29763,17 +21450,11 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentThreadId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn SetCurrentThreadId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects_Impl::SetCurrentThreadId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetCurrentProcessId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentProcessId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetCurrentProcessId(this) { Ok(ok__) => { @@ -29783,17 +21464,11 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentProcessId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn SetCurrentProcessId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects_Impl::SetCurrentProcessId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetNumberThreads(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetNumberThreads(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetNumberThreads(this) { Ok(ok__) => { @@ -29803,24 +21478,15 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTotalNumberThreads(this: *mut core::ffi::c_void, total: *mut u32, largestprocess: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetTotalNumberThreads(this: *mut core::ffi::c_void, total: *mut u32, largestprocess: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects_Impl::GetTotalNumberThreads(this, core::mem::transmute_copy(&total), core::mem::transmute_copy(&largestprocess)).into() } - unsafe extern "system" fn GetThreadIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetThreadIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects_Impl::GetThreadIdsByIndex(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&sysids)).into() } - unsafe extern "system" fn GetThreadIdByProcessor(this: *mut core::ffi::c_void, processor: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetThreadIdByProcessor(this: *mut core::ffi::c_void, processor: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetThreadIdByProcessor(this, core::mem::transmute_copy(&processor)) { Ok(ok__) => { @@ -29830,10 +21496,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetCurrentThreadDataOffset(this) { Ok(ok__) => { @@ -29843,10 +21506,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetThreadIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetThreadIdByDataOffset(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -29856,10 +21516,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadTeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentThreadTeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetCurrentThreadTeb(this) { Ok(ok__) => { @@ -29869,10 +21526,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByTeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetThreadIdByTeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetThreadIdByTeb(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -29882,10 +21536,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentThreadSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetCurrentThreadSystemId(this) { Ok(ok__) => { @@ -29895,10 +21546,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetThreadIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetThreadIdBySystemId(this, core::mem::transmute_copy(&sysid)) { Ok(ok__) => { @@ -29908,10 +21556,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentThreadHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetCurrentThreadHandle(this) { Ok(ok__) => { @@ -29921,10 +21566,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetThreadIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetThreadIdByHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -29934,10 +21576,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberProcesses(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetNumberProcesses(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetNumberProcesses(this) { Ok(ok__) => { @@ -29947,17 +21586,11 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetProcessIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects_Impl::GetProcessIdsByIndex(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&sysids)).into() } - unsafe extern "system" fn GetCurrentProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetCurrentProcessDataOffset(this) { Ok(ok__) => { @@ -29967,10 +21600,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetProcessIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetProcessIdByDataOffset(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -29980,10 +21610,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessPeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentProcessPeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetCurrentProcessPeb(this) { Ok(ok__) => { @@ -29993,10 +21620,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByPeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetProcessIdByPeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetProcessIdByPeb(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -30006,10 +21630,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentProcessSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetCurrentProcessSystemId(this) { Ok(ok__) => { @@ -30019,10 +21640,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetProcessIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetProcessIdBySystemId(this, core::mem::transmute_copy(&sysid)) { Ok(ok__) => { @@ -30032,10 +21650,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentProcessHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetCurrentProcessHandle(this) { Ok(ok__) => { @@ -30045,10 +21660,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetProcessIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects_Impl::GetProcessIdByHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -30058,10 +21670,7 @@ impl IDebugSystemObjects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessExecutableName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, exesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects_Impl, - { + unsafe extern "system" fn GetCurrentProcessExecutableName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, exesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects_Impl::GetCurrentProcessExecutableName(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&exesize)).into() } @@ -30102,7 +21711,7 @@ impl IDebugSystemObjects_Vtbl { iid == &::IID } } -pub trait IDebugSystemObjects2_Impl: Sized { +pub trait IDebugSystemObjects2_Impl: Sized + windows_core::IUnknownImpl { fn GetEventThread(&self) -> windows_core::Result; fn GetEventProcess(&self) -> windows_core::Result; fn GetCurrentThreadId(&self) -> windows_core::Result; @@ -30140,14 +21749,8 @@ pub trait IDebugSystemObjects2_Impl: Sized { } impl windows_core::RuntimeName for IDebugSystemObjects2 {} impl IDebugSystemObjects2_Vtbl { - pub const fn new() -> IDebugSystemObjects2_Vtbl - where - Identity: IDebugSystemObjects2_Impl, - { - unsafe extern "system" fn GetEventThread(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + pub const fn new() -> IDebugSystemObjects2_Vtbl { + unsafe extern "system" fn GetEventThread(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetEventThread(this) { Ok(ok__) => { @@ -30157,10 +21760,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventProcess(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetEventProcess(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetEventProcess(this) { Ok(ok__) => { @@ -30170,10 +21770,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentThreadId(this) { Ok(ok__) => { @@ -30183,17 +21780,11 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentThreadId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn SetCurrentThreadId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects2_Impl::SetCurrentThreadId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetCurrentProcessId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentProcessId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentProcessId(this) { Ok(ok__) => { @@ -30203,17 +21794,11 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentProcessId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn SetCurrentProcessId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects2_Impl::SetCurrentProcessId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetNumberThreads(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetNumberThreads(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetNumberThreads(this) { Ok(ok__) => { @@ -30223,24 +21808,15 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTotalNumberThreads(this: *mut core::ffi::c_void, total: *mut u32, largestprocess: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetTotalNumberThreads(this: *mut core::ffi::c_void, total: *mut u32, largestprocess: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects2_Impl::GetTotalNumberThreads(this, core::mem::transmute_copy(&total), core::mem::transmute_copy(&largestprocess)).into() } - unsafe extern "system" fn GetThreadIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetThreadIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects2_Impl::GetThreadIdsByIndex(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&sysids)).into() } - unsafe extern "system" fn GetThreadIdByProcessor(this: *mut core::ffi::c_void, processor: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetThreadIdByProcessor(this: *mut core::ffi::c_void, processor: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetThreadIdByProcessor(this, core::mem::transmute_copy(&processor)) { Ok(ok__) => { @@ -30250,10 +21826,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentThreadDataOffset(this) { Ok(ok__) => { @@ -30263,10 +21836,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetThreadIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetThreadIdByDataOffset(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -30276,10 +21846,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadTeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentThreadTeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentThreadTeb(this) { Ok(ok__) => { @@ -30289,10 +21856,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByTeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetThreadIdByTeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetThreadIdByTeb(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -30302,10 +21866,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentThreadSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentThreadSystemId(this) { Ok(ok__) => { @@ -30315,10 +21876,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetThreadIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetThreadIdBySystemId(this, core::mem::transmute_copy(&sysid)) { Ok(ok__) => { @@ -30328,10 +21886,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentThreadHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentThreadHandle(this) { Ok(ok__) => { @@ -30341,10 +21896,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetThreadIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetThreadIdByHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -30354,10 +21906,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberProcesses(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetNumberProcesses(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetNumberProcesses(this) { Ok(ok__) => { @@ -30367,17 +21916,11 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetProcessIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects2_Impl::GetProcessIdsByIndex(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&sysids)).into() } - unsafe extern "system" fn GetCurrentProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentProcessDataOffset(this) { Ok(ok__) => { @@ -30387,10 +21930,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetProcessIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetProcessIdByDataOffset(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -30400,10 +21940,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessPeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentProcessPeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentProcessPeb(this) { Ok(ok__) => { @@ -30413,10 +21950,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByPeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetProcessIdByPeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetProcessIdByPeb(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -30426,10 +21960,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentProcessSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentProcessSystemId(this) { Ok(ok__) => { @@ -30439,10 +21970,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetProcessIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetProcessIdBySystemId(this, core::mem::transmute_copy(&sysid)) { Ok(ok__) => { @@ -30452,10 +21980,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentProcessHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentProcessHandle(this) { Ok(ok__) => { @@ -30465,10 +21990,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetProcessIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetProcessIdByHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -30478,17 +22000,11 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessExecutableName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, exesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentProcessExecutableName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, exesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects2_Impl::GetCurrentProcessExecutableName(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&exesize)).into() } - unsafe extern "system" fn GetCurrentProcessUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetCurrentProcessUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetCurrentProcessUpTime(this) { Ok(ok__) => { @@ -30498,10 +22014,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetImplicitThreadDataOffset(this) { Ok(ok__) => { @@ -30511,17 +22024,11 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn SetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects2_Impl::SetImplicitThreadDataOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn GetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects2_Impl::GetImplicitProcessDataOffset(this) { Ok(ok__) => { @@ -30531,10 +22038,7 @@ impl IDebugSystemObjects2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects2_Impl, - { + unsafe extern "system" fn SetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects2_Impl::SetImplicitProcessDataOffset(this, core::mem::transmute_copy(&offset)).into() } @@ -30580,7 +22084,7 @@ impl IDebugSystemObjects2_Vtbl { iid == &::IID } } -pub trait IDebugSystemObjects3_Impl: Sized { +pub trait IDebugSystemObjects3_Impl: Sized + windows_core::IUnknownImpl { fn GetEventThread(&self) -> windows_core::Result; fn GetEventProcess(&self) -> windows_core::Result; fn GetCurrentThreadId(&self) -> windows_core::Result; @@ -30627,14 +22131,8 @@ pub trait IDebugSystemObjects3_Impl: Sized { } impl windows_core::RuntimeName for IDebugSystemObjects3 {} impl IDebugSystemObjects3_Vtbl { - pub const fn new() -> IDebugSystemObjects3_Vtbl - where - Identity: IDebugSystemObjects3_Impl, - { - unsafe extern "system" fn GetEventThread(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + pub const fn new() -> IDebugSystemObjects3_Vtbl { + unsafe extern "system" fn GetEventThread(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetEventThread(this) { Ok(ok__) => { @@ -30644,10 +22142,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventProcess(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetEventProcess(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetEventProcess(this) { Ok(ok__) => { @@ -30657,10 +22152,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentThreadId(this) { Ok(ok__) => { @@ -30670,17 +22162,11 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentThreadId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn SetCurrentThreadId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::SetCurrentThreadId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetCurrentProcessId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentProcessId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentProcessId(this) { Ok(ok__) => { @@ -30690,17 +22176,11 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentProcessId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn SetCurrentProcessId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::SetCurrentProcessId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetNumberThreads(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetNumberThreads(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetNumberThreads(this) { Ok(ok__) => { @@ -30710,24 +22190,15 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTotalNumberThreads(this: *mut core::ffi::c_void, total: *mut u32, largestprocess: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetTotalNumberThreads(this: *mut core::ffi::c_void, total: *mut u32, largestprocess: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::GetTotalNumberThreads(this, core::mem::transmute_copy(&total), core::mem::transmute_copy(&largestprocess)).into() } - unsafe extern "system" fn GetThreadIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetThreadIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::GetThreadIdsByIndex(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&sysids)).into() } - unsafe extern "system" fn GetThreadIdByProcessor(this: *mut core::ffi::c_void, processor: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetThreadIdByProcessor(this: *mut core::ffi::c_void, processor: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetThreadIdByProcessor(this, core::mem::transmute_copy(&processor)) { Ok(ok__) => { @@ -30737,10 +22208,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentThreadDataOffset(this) { Ok(ok__) => { @@ -30750,10 +22218,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetThreadIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetThreadIdByDataOffset(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -30763,10 +22228,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadTeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentThreadTeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentThreadTeb(this) { Ok(ok__) => { @@ -30776,10 +22238,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByTeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetThreadIdByTeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetThreadIdByTeb(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -30789,10 +22248,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentThreadSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentThreadSystemId(this) { Ok(ok__) => { @@ -30802,10 +22258,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetThreadIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetThreadIdBySystemId(this, core::mem::transmute_copy(&sysid)) { Ok(ok__) => { @@ -30815,10 +22268,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentThreadHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentThreadHandle(this) { Ok(ok__) => { @@ -30828,10 +22278,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetThreadIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetThreadIdByHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -30841,10 +22288,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberProcesses(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetNumberProcesses(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetNumberProcesses(this) { Ok(ok__) => { @@ -30854,17 +22298,11 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetProcessIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::GetProcessIdsByIndex(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&sysids)).into() } - unsafe extern "system" fn GetCurrentProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentProcessDataOffset(this) { Ok(ok__) => { @@ -30874,10 +22312,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetProcessIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetProcessIdByDataOffset(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -30887,10 +22322,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessPeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentProcessPeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentProcessPeb(this) { Ok(ok__) => { @@ -30900,10 +22332,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByPeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetProcessIdByPeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetProcessIdByPeb(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -30913,10 +22342,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentProcessSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentProcessSystemId(this) { Ok(ok__) => { @@ -30926,10 +22352,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetProcessIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetProcessIdBySystemId(this, core::mem::transmute_copy(&sysid)) { Ok(ok__) => { @@ -30939,10 +22362,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentProcessHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentProcessHandle(this) { Ok(ok__) => { @@ -30952,10 +22372,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetProcessIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetProcessIdByHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -30965,17 +22382,11 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessExecutableName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, exesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentProcessExecutableName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, exesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::GetCurrentProcessExecutableName(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&exesize)).into() } - unsafe extern "system" fn GetCurrentProcessUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentProcessUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentProcessUpTime(this) { Ok(ok__) => { @@ -30985,10 +22396,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetImplicitThreadDataOffset(this) { Ok(ok__) => { @@ -30998,17 +22406,11 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn SetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::SetImplicitThreadDataOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetImplicitProcessDataOffset(this) { Ok(ok__) => { @@ -31018,17 +22420,11 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn SetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::SetImplicitProcessDataOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetEventSystem(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetEventSystem(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetEventSystem(this) { Ok(ok__) => { @@ -31038,10 +22434,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSystemId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentSystemId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentSystemId(this) { Ok(ok__) => { @@ -31051,17 +22444,11 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentSystemId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn SetCurrentSystemId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::SetCurrentSystemId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetNumberSystems(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetNumberSystems(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetNumberSystems(this) { Ok(ok__) => { @@ -31071,24 +22458,15 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetSystemIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::GetSystemIdsByIndex(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids)).into() } - unsafe extern "system" fn GetTotalNumberThreadsAndProcesses(this: *mut core::ffi::c_void, totalthreads: *mut u32, totalprocesses: *mut u32, largestprocessthreads: *mut u32, largestsystemthreads: *mut u32, largestsystemprocesses: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetTotalNumberThreadsAndProcesses(this: *mut core::ffi::c_void, totalthreads: *mut u32, totalprocesses: *mut u32, largestprocessthreads: *mut u32, largestsystemthreads: *mut u32, largestsystemprocesses: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::GetTotalNumberThreadsAndProcesses(this, core::mem::transmute_copy(&totalthreads), core::mem::transmute_copy(&totalprocesses), core::mem::transmute_copy(&largestprocessthreads), core::mem::transmute_copy(&largestsystemthreads), core::mem::transmute_copy(&largestsystemprocesses)).into() } - unsafe extern "system" fn GetCurrentSystemServer(this: *mut core::ffi::c_void, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentSystemServer(this: *mut core::ffi::c_void, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetCurrentSystemServer(this) { Ok(ok__) => { @@ -31098,10 +22476,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemByServer(this: *mut core::ffi::c_void, server: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetSystemByServer(this: *mut core::ffi::c_void, server: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects3_Impl::GetSystemByServer(this, core::mem::transmute_copy(&server)) { Ok(ok__) => { @@ -31111,10 +22486,7 @@ impl IDebugSystemObjects3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSystemServerName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects3_Impl, - { + unsafe extern "system" fn GetCurrentSystemServerName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects3_Impl::GetCurrentSystemServerName(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } @@ -31169,7 +22541,7 @@ impl IDebugSystemObjects3_Vtbl { iid == &::IID } } -pub trait IDebugSystemObjects4_Impl: Sized { +pub trait IDebugSystemObjects4_Impl: Sized + windows_core::IUnknownImpl { fn GetEventThread(&self) -> windows_core::Result; fn GetEventProcess(&self) -> windows_core::Result; fn GetCurrentThreadId(&self) -> windows_core::Result; @@ -31218,14 +22590,8 @@ pub trait IDebugSystemObjects4_Impl: Sized { } impl windows_core::RuntimeName for IDebugSystemObjects4 {} impl IDebugSystemObjects4_Vtbl { - pub const fn new() -> IDebugSystemObjects4_Vtbl - where - Identity: IDebugSystemObjects4_Impl, - { - unsafe extern "system" fn GetEventThread(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + pub const fn new() -> IDebugSystemObjects4_Vtbl { + unsafe extern "system" fn GetEventThread(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetEventThread(this) { Ok(ok__) => { @@ -31235,10 +22601,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventProcess(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetEventProcess(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetEventProcess(this) { Ok(ok__) => { @@ -31248,10 +22611,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentThreadId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentThreadId(this) { Ok(ok__) => { @@ -31261,17 +22621,11 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentThreadId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn SetCurrentThreadId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::SetCurrentThreadId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetCurrentProcessId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentProcessId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentProcessId(this) { Ok(ok__) => { @@ -31281,17 +22635,11 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentProcessId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn SetCurrentProcessId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::SetCurrentProcessId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetNumberThreads(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetNumberThreads(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetNumberThreads(this) { Ok(ok__) => { @@ -31301,24 +22649,15 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTotalNumberThreads(this: *mut core::ffi::c_void, total: *mut u32, largestprocess: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetTotalNumberThreads(this: *mut core::ffi::c_void, total: *mut u32, largestprocess: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::GetTotalNumberThreads(this, core::mem::transmute_copy(&total), core::mem::transmute_copy(&largestprocess)).into() } - unsafe extern "system" fn GetThreadIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetThreadIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::GetThreadIdsByIndex(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&sysids)).into() } - unsafe extern "system" fn GetThreadIdByProcessor(this: *mut core::ffi::c_void, processor: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetThreadIdByProcessor(this: *mut core::ffi::c_void, processor: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetThreadIdByProcessor(this, core::mem::transmute_copy(&processor)) { Ok(ok__) => { @@ -31328,10 +22667,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentThreadDataOffset(this) { Ok(ok__) => { @@ -31341,10 +22677,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetThreadIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetThreadIdByDataOffset(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -31354,10 +22687,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadTeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentThreadTeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentThreadTeb(this) { Ok(ok__) => { @@ -31367,10 +22697,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByTeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetThreadIdByTeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetThreadIdByTeb(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -31380,10 +22707,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentThreadSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentThreadSystemId(this) { Ok(ok__) => { @@ -31393,10 +22717,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetThreadIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetThreadIdBySystemId(this, core::mem::transmute_copy(&sysid)) { Ok(ok__) => { @@ -31406,10 +22727,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentThreadHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentThreadHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentThreadHandle(this) { Ok(ok__) => { @@ -31419,10 +22737,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetThreadIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetThreadIdByHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -31432,10 +22747,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberProcesses(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetNumberProcesses(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetNumberProcesses(this) { Ok(ok__) => { @@ -31445,17 +22757,11 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetProcessIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32, sysids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::GetProcessIdsByIndex(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids), core::mem::transmute_copy(&sysids)).into() } - unsafe extern "system" fn GetCurrentProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentProcessDataOffset(this) { Ok(ok__) => { @@ -31465,10 +22771,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetProcessIdByDataOffset(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetProcessIdByDataOffset(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -31478,10 +22781,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessPeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentProcessPeb(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentProcessPeb(this) { Ok(ok__) => { @@ -31491,10 +22791,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByPeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetProcessIdByPeb(this: *mut core::ffi::c_void, offset: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetProcessIdByPeb(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -31504,10 +22801,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentProcessSystemId(this: *mut core::ffi::c_void, sysid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentProcessSystemId(this) { Ok(ok__) => { @@ -31517,10 +22811,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetProcessIdBySystemId(this: *mut core::ffi::c_void, sysid: u32, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetProcessIdBySystemId(this, core::mem::transmute_copy(&sysid)) { Ok(ok__) => { @@ -31530,10 +22821,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentProcessHandle(this: *mut core::ffi::c_void, handle: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentProcessHandle(this) { Ok(ok__) => { @@ -31543,10 +22831,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetProcessIdByHandle(this: *mut core::ffi::c_void, handle: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetProcessIdByHandle(this, core::mem::transmute_copy(&handle)) { Ok(ok__) => { @@ -31556,17 +22841,11 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentProcessExecutableName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, exesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentProcessExecutableName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, exesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::GetCurrentProcessExecutableName(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&exesize)).into() } - unsafe extern "system" fn GetCurrentProcessUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentProcessUpTime(this: *mut core::ffi::c_void, uptime: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentProcessUpTime(this) { Ok(ok__) => { @@ -31576,10 +22855,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetImplicitThreadDataOffset(this) { Ok(ok__) => { @@ -31589,17 +22865,11 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn SetImplicitThreadDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::SetImplicitThreadDataOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetImplicitProcessDataOffset(this) { Ok(ok__) => { @@ -31609,17 +22879,11 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn SetImplicitProcessDataOffset(this: *mut core::ffi::c_void, offset: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::SetImplicitProcessDataOffset(this, core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetEventSystem(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetEventSystem(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetEventSystem(this) { Ok(ok__) => { @@ -31629,10 +22893,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSystemId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentSystemId(this: *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentSystemId(this) { Ok(ok__) => { @@ -31642,17 +22903,11 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentSystemId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn SetCurrentSystemId(this: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::SetCurrentSystemId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetNumberSystems(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetNumberSystems(this: *mut core::ffi::c_void, number: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetNumberSystems(this) { Ok(ok__) => { @@ -31662,24 +22917,15 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetSystemIdsByIndex(this: *mut core::ffi::c_void, start: u32, count: u32, ids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::GetSystemIdsByIndex(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(&ids)).into() } - unsafe extern "system" fn GetTotalNumberThreadsAndProcesses(this: *mut core::ffi::c_void, totalthreads: *mut u32, totalprocesses: *mut u32, largestprocessthreads: *mut u32, largestsystemthreads: *mut u32, largestsystemprocesses: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetTotalNumberThreadsAndProcesses(this: *mut core::ffi::c_void, totalthreads: *mut u32, totalprocesses: *mut u32, largestprocessthreads: *mut u32, largestsystemthreads: *mut u32, largestsystemprocesses: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::GetTotalNumberThreadsAndProcesses(this, core::mem::transmute_copy(&totalthreads), core::mem::transmute_copy(&totalprocesses), core::mem::transmute_copy(&largestprocessthreads), core::mem::transmute_copy(&largestsystemthreads), core::mem::transmute_copy(&largestsystemprocesses)).into() } - unsafe extern "system" fn GetCurrentSystemServer(this: *mut core::ffi::c_void, server: *mut u64) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentSystemServer(this: *mut core::ffi::c_void, server: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetCurrentSystemServer(this) { Ok(ok__) => { @@ -31689,10 +22935,7 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemByServer(this: *mut core::ffi::c_void, server: u64, id: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetSystemByServer(this: *mut core::ffi::c_void, server: u64, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugSystemObjects4_Impl::GetSystemByServer(this, core::mem::transmute_copy(&server)) { Ok(ok__) => { @@ -31702,24 +22945,15 @@ impl IDebugSystemObjects4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSystemServerName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentSystemServerName(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::GetCurrentSystemServerName(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } - unsafe extern "system" fn GetCurrentProcessExecutableNameWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, exesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentProcessExecutableNameWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, exesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::GetCurrentProcessExecutableNameWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&exesize)).into() } - unsafe extern "system" fn GetCurrentSystemServerNameWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT - where - Identity: IDebugSystemObjects4_Impl, - { + unsafe extern "system" fn GetCurrentSystemServerNameWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSystemObjects4_Impl::GetCurrentSystemServerNameWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&namesize)).into() } @@ -31776,7 +23010,7 @@ impl IDebugSystemObjects4_Vtbl { iid == &::IID } } -pub trait IDynamicConceptProviderConcept_Impl: Sized { +pub trait IDynamicConceptProviderConcept_Impl: Sized + windows_core::IUnknownImpl { fn GetConcept(&self, contextobject: Option<&IModelObject>, conceptid: *const windows_core::GUID, conceptinterface: *mut Option, conceptmetadata: *mut Option, hasconcept: *mut bool) -> windows_core::Result<()>; fn SetConcept(&self, contextobject: Option<&IModelObject>, conceptid: *const windows_core::GUID, conceptinterface: Option<&windows_core::IUnknown>, conceptmetadata: Option<&IKeyStore>) -> windows_core::Result<()>; fn NotifyParent(&self, parentmodel: Option<&IModelObject>) -> windows_core::Result<()>; @@ -31785,42 +23019,24 @@ pub trait IDynamicConceptProviderConcept_Impl: Sized { } impl windows_core::RuntimeName for IDynamicConceptProviderConcept {} impl IDynamicConceptProviderConcept_Vtbl { - pub const fn new() -> IDynamicConceptProviderConcept_Vtbl - where - Identity: IDynamicConceptProviderConcept_Impl, - { - unsafe extern "system" fn GetConcept(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, conceptid: *const windows_core::GUID, conceptinterface: *mut *mut core::ffi::c_void, conceptmetadata: *mut *mut core::ffi::c_void, hasconcept: *mut bool) -> windows_core::HRESULT - where - Identity: IDynamicConceptProviderConcept_Impl, - { + pub const fn new() -> IDynamicConceptProviderConcept_Vtbl { + unsafe extern "system" fn GetConcept(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, conceptid: *const windows_core::GUID, conceptinterface: *mut *mut core::ffi::c_void, conceptmetadata: *mut *mut core::ffi::c_void, hasconcept: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicConceptProviderConcept_Impl::GetConcept(this, windows_core::from_raw_borrowed(&contextobject), core::mem::transmute_copy(&conceptid), core::mem::transmute_copy(&conceptinterface), core::mem::transmute_copy(&conceptmetadata), core::mem::transmute_copy(&hasconcept)).into() } - unsafe extern "system" fn SetConcept(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, conceptid: *const windows_core::GUID, conceptinterface: *mut core::ffi::c_void, conceptmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicConceptProviderConcept_Impl, - { + unsafe extern "system" fn SetConcept(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, conceptid: *const windows_core::GUID, conceptinterface: *mut core::ffi::c_void, conceptmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicConceptProviderConcept_Impl::SetConcept(this, windows_core::from_raw_borrowed(&contextobject), core::mem::transmute_copy(&conceptid), windows_core::from_raw_borrowed(&conceptinterface), windows_core::from_raw_borrowed(&conceptmetadata)).into() } - unsafe extern "system" fn NotifyParent(this: *mut core::ffi::c_void, parentmodel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicConceptProviderConcept_Impl, - { + unsafe extern "system" fn NotifyParent(this: *mut core::ffi::c_void, parentmodel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicConceptProviderConcept_Impl::NotifyParent(this, windows_core::from_raw_borrowed(&parentmodel)).into() } - unsafe extern "system" fn NotifyParentChange(this: *mut core::ffi::c_void, parentmodel: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicConceptProviderConcept_Impl, - { + unsafe extern "system" fn NotifyParentChange(this: *mut core::ffi::c_void, parentmodel: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicConceptProviderConcept_Impl::NotifyParentChange(this, windows_core::from_raw_borrowed(&parentmodel)).into() } - unsafe extern "system" fn NotifyDestruct(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicConceptProviderConcept_Impl, - { + unsafe extern "system" fn NotifyDestruct(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicConceptProviderConcept_Impl::NotifyDestruct(this).into() } @@ -31837,35 +23053,23 @@ impl IDynamicConceptProviderConcept_Vtbl { iid == &::IID } } -pub trait IDynamicKeyProviderConcept_Impl: Sized { +pub trait IDynamicKeyProviderConcept_Impl: Sized + windows_core::IUnknownImpl { fn GetKey(&self, contextobject: Option<&IModelObject>, key: &windows_core::PCWSTR, keyvalue: *mut Option, metadata: *mut Option, haskey: *mut bool) -> windows_core::Result<()>; fn SetKey(&self, contextobject: Option<&IModelObject>, key: &windows_core::PCWSTR, keyvalue: Option<&IModelObject>, metadata: Option<&IKeyStore>) -> windows_core::Result<()>; fn EnumerateKeys(&self, contextobject: Option<&IModelObject>) -> windows_core::Result; } impl windows_core::RuntimeName for IDynamicKeyProviderConcept {} impl IDynamicKeyProviderConcept_Vtbl { - pub const fn new() -> IDynamicKeyProviderConcept_Vtbl - where - Identity: IDynamicKeyProviderConcept_Impl, - { - unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, key: windows_core::PCWSTR, keyvalue: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void, haskey: *mut bool) -> windows_core::HRESULT - where - Identity: IDynamicKeyProviderConcept_Impl, - { + pub const fn new() -> IDynamicKeyProviderConcept_Vtbl { + unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, key: windows_core::PCWSTR, keyvalue: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void, haskey: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicKeyProviderConcept_Impl::GetKey(this, windows_core::from_raw_borrowed(&contextobject), core::mem::transmute(&key), core::mem::transmute_copy(&keyvalue), core::mem::transmute_copy(&metadata), core::mem::transmute_copy(&haskey)).into() } - unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, key: windows_core::PCWSTR, keyvalue: *mut core::ffi::c_void, metadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicKeyProviderConcept_Impl, - { + unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, key: windows_core::PCWSTR, keyvalue: *mut core::ffi::c_void, metadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicKeyProviderConcept_Impl::SetKey(this, windows_core::from_raw_borrowed(&contextobject), core::mem::transmute(&key), windows_core::from_raw_borrowed(&keyvalue), windows_core::from_raw_borrowed(&metadata)).into() } - unsafe extern "system" fn EnumerateKeys(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicKeyProviderConcept_Impl, - { + unsafe extern "system" fn EnumerateKeys(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, ppenumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicKeyProviderConcept_Impl::EnumerateKeys(this, windows_core::from_raw_borrowed(&contextobject)) { Ok(ok__) => { @@ -31886,19 +23090,13 @@ impl IDynamicKeyProviderConcept_Vtbl { iid == &::IID } } -pub trait IEquatableConcept_Impl: Sized { +pub trait IEquatableConcept_Impl: Sized + windows_core::IUnknownImpl { fn AreObjectsEqual(&self, contextobject: Option<&IModelObject>, otherobject: Option<&IModelObject>) -> windows_core::Result; } impl windows_core::RuntimeName for IEquatableConcept {} impl IEquatableConcept_Vtbl { - pub const fn new() -> IEquatableConcept_Vtbl - where - Identity: IEquatableConcept_Impl, - { - unsafe extern "system" fn AreObjectsEqual(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, otherobject: *mut core::ffi::c_void, isequal: *mut bool) -> windows_core::HRESULT - where - Identity: IEquatableConcept_Impl, - { + pub const fn new() -> IEquatableConcept_Vtbl { + unsafe extern "system" fn AreObjectsEqual(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, otherobject: *mut core::ffi::c_void, isequal: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEquatableConcept_Impl::AreObjectsEqual(this, windows_core::from_raw_borrowed(&contextobject), windows_core::from_raw_borrowed(&otherobject)) { Ok(ok__) => { @@ -31914,19 +23112,13 @@ impl IEquatableConcept_Vtbl { iid == &::IID } } -pub trait IHostDataModelAccess_Impl: Sized { +pub trait IHostDataModelAccess_Impl: Sized + windows_core::IUnknownImpl { fn GetDataModel(&self, manager: *mut Option, host: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHostDataModelAccess {} impl IHostDataModelAccess_Vtbl { - pub const fn new() -> IHostDataModelAccess_Vtbl - where - Identity: IHostDataModelAccess_Impl, - { - unsafe extern "system" fn GetDataModel(this: *mut core::ffi::c_void, manager: *mut *mut core::ffi::c_void, host: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHostDataModelAccess_Impl, - { + pub const fn new() -> IHostDataModelAccess_Vtbl { + unsafe extern "system" fn GetDataModel(this: *mut core::ffi::c_void, manager: *mut *mut core::ffi::c_void, host: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostDataModelAccess_Impl::GetDataModel(this, core::mem::transmute_copy(&manager), core::mem::transmute_copy(&host)).into() } @@ -31936,21 +23128,15 @@ impl IHostDataModelAccess_Vtbl { iid == &::IID } } -pub trait IIndexableConcept_Impl: Sized { +pub trait IIndexableConcept_Impl: Sized + windows_core::IUnknownImpl { fn GetDimensionality(&self, contextobject: Option<&IModelObject>) -> windows_core::Result; fn GetAt(&self, contextobject: Option<&IModelObject>, indexercount: u64, indexers: *const Option, object: *mut Option, metadata: *mut Option) -> windows_core::Result<()>; fn SetAt(&self, contextobject: Option<&IModelObject>, indexercount: u64, indexers: *const Option, value: Option<&IModelObject>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IIndexableConcept {} impl IIndexableConcept_Vtbl { - pub const fn new() -> IIndexableConcept_Vtbl - where - Identity: IIndexableConcept_Impl, - { - unsafe extern "system" fn GetDimensionality(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, dimensionality: *mut u64) -> windows_core::HRESULT - where - Identity: IIndexableConcept_Impl, - { + pub const fn new() -> IIndexableConcept_Vtbl { + unsafe extern "system" fn GetDimensionality(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, dimensionality: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIndexableConcept_Impl::GetDimensionality(this, windows_core::from_raw_borrowed(&contextobject)) { Ok(ok__) => { @@ -31960,17 +23146,11 @@ impl IIndexableConcept_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, indexercount: u64, indexers: *const *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIndexableConcept_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, indexercount: u64, indexers: *const *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIndexableConcept_Impl::GetAt(this, windows_core::from_raw_borrowed(&contextobject), core::mem::transmute_copy(&indexercount), core::mem::transmute_copy(&indexers), core::mem::transmute_copy(&object), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, indexercount: u64, indexers: *const *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIndexableConcept_Impl, - { + unsafe extern "system" fn SetAt(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, indexercount: u64, indexers: *const *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIndexableConcept_Impl::SetAt(this, windows_core::from_raw_borrowed(&contextobject), core::mem::transmute_copy(&indexercount), core::mem::transmute_copy(&indexers), windows_core::from_raw_borrowed(&value)).into() } @@ -31985,20 +23165,14 @@ impl IIndexableConcept_Vtbl { iid == &::IID } } -pub trait IIterableConcept_Impl: Sized { +pub trait IIterableConcept_Impl: Sized + windows_core::IUnknownImpl { fn GetDefaultIndexDimensionality(&self, contextobject: Option<&IModelObject>) -> windows_core::Result; fn GetIterator(&self, contextobject: Option<&IModelObject>) -> windows_core::Result; } impl windows_core::RuntimeName for IIterableConcept {} impl IIterableConcept_Vtbl { - pub const fn new() -> IIterableConcept_Vtbl - where - Identity: IIterableConcept_Impl, - { - unsafe extern "system" fn GetDefaultIndexDimensionality(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, dimensionality: *mut u64) -> windows_core::HRESULT - where - Identity: IIterableConcept_Impl, - { + pub const fn new() -> IIterableConcept_Vtbl { + unsafe extern "system" fn GetDefaultIndexDimensionality(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, dimensionality: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIterableConcept_Impl::GetDefaultIndexDimensionality(this, windows_core::from_raw_borrowed(&contextobject)) { Ok(ok__) => { @@ -32008,10 +23182,7 @@ impl IIterableConcept_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIterator(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, iterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIterableConcept_Impl, - { + unsafe extern "system" fn GetIterator(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, iterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIterableConcept_Impl::GetIterator(this, windows_core::from_raw_borrowed(&contextobject)) { Ok(ok__) => { @@ -32031,27 +23202,18 @@ impl IIterableConcept_Vtbl { iid == &::IID } } -pub trait IKeyEnumerator_Impl: Sized { +pub trait IKeyEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn GetNext(&self, key: *mut windows_core::BSTR, value: *mut Option, metadata: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IKeyEnumerator {} impl IKeyEnumerator_Vtbl { - pub const fn new() -> IKeyEnumerator_Vtbl - where - Identity: IKeyEnumerator_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKeyEnumerator_Impl, - { + pub const fn new() -> IKeyEnumerator_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKeyEnumerator_Impl::Reset(this).into() } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, key: *mut core::mem::MaybeUninit, value: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKeyEnumerator_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, key: *mut core::mem::MaybeUninit, value: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKeyEnumerator_Impl::GetNext(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value), core::mem::transmute_copy(&metadata)).into() } @@ -32061,7 +23223,7 @@ impl IKeyEnumerator_Vtbl { iid == &::IID } } -pub trait IKeyStore_Impl: Sized { +pub trait IKeyStore_Impl: Sized + windows_core::IUnknownImpl { fn GetKey(&self, key: &windows_core::PCWSTR, object: *mut Option, metadata: *mut Option) -> windows_core::Result<()>; fn SetKey(&self, key: &windows_core::PCWSTR, object: Option<&IModelObject>, metadata: Option<&IKeyStore>) -> windows_core::Result<()>; fn GetKeyValue(&self, key: &windows_core::PCWSTR, object: *mut Option, metadata: *mut Option) -> windows_core::Result<()>; @@ -32070,42 +23232,24 @@ pub trait IKeyStore_Impl: Sized { } impl windows_core::RuntimeName for IKeyStore {} impl IKeyStore_Vtbl { - pub const fn new() -> IKeyStore_Vtbl - where - Identity: IKeyStore_Impl, - { - unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKeyStore_Impl, - { + pub const fn new() -> IKeyStore_Vtbl { + unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKeyStore_Impl::GetKey(this, core::mem::transmute(&key), core::mem::transmute_copy(&object), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut core::ffi::c_void, metadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKeyStore_Impl, - { + unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut core::ffi::c_void, metadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKeyStore_Impl::SetKey(this, core::mem::transmute(&key), windows_core::from_raw_borrowed(&object), windows_core::from_raw_borrowed(&metadata)).into() } - unsafe extern "system" fn GetKeyValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKeyStore_Impl, - { + unsafe extern "system" fn GetKeyValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKeyStore_Impl::GetKeyValue(this, core::mem::transmute(&key), core::mem::transmute_copy(&object), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn SetKeyValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKeyStore_Impl, - { + unsafe extern "system" fn SetKeyValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKeyStore_Impl::SetKeyValue(this, core::mem::transmute(&key), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn ClearKeys(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKeyStore_Impl, - { + unsafe extern "system" fn ClearKeys(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKeyStore_Impl::ClearKeys(this).into() } @@ -32122,27 +23266,18 @@ impl IKeyStore_Vtbl { iid == &::IID } } -pub trait IModelIterator_Impl: Sized { +pub trait IModelIterator_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn GetNext(&self, object: *mut Option, dimensions: u64, indexers: *mut Option, metadata: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IModelIterator {} impl IModelIterator_Vtbl { - pub const fn new() -> IModelIterator_Vtbl - where - Identity: IModelIterator_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelIterator_Impl, - { + pub const fn new() -> IModelIterator_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelIterator_Impl::Reset(this).into() } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, dimensions: u64, indexers: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelIterator_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, dimensions: u64, indexers: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelIterator_Impl::GetNext(this, core::mem::transmute_copy(&object), core::mem::transmute_copy(&dimensions), core::mem::transmute_copy(&indexers), core::mem::transmute_copy(&metadata)).into() } @@ -32152,7 +23287,7 @@ impl IModelIterator_Vtbl { iid == &::IID } } -pub trait IModelKeyReference_Impl: Sized { +pub trait IModelKeyReference_Impl: Sized + windows_core::IUnknownImpl { fn GetKeyName(&self) -> windows_core::Result; fn GetOriginalObject(&self) -> windows_core::Result; fn GetContextObject(&self) -> windows_core::Result; @@ -32163,14 +23298,8 @@ pub trait IModelKeyReference_Impl: Sized { } impl windows_core::RuntimeName for IModelKeyReference {} impl IModelKeyReference_Vtbl { - pub const fn new() -> IModelKeyReference_Vtbl - where - Identity: IModelKeyReference_Impl, - { - unsafe extern "system" fn GetKeyName(this: *mut core::ffi::c_void, keyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IModelKeyReference_Impl, - { + pub const fn new() -> IModelKeyReference_Vtbl { + unsafe extern "system" fn GetKeyName(this: *mut core::ffi::c_void, keyname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelKeyReference_Impl::GetKeyName(this) { Ok(ok__) => { @@ -32180,10 +23309,7 @@ impl IModelKeyReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalObject(this: *mut core::ffi::c_void, originalobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelKeyReference_Impl, - { + unsafe extern "system" fn GetOriginalObject(this: *mut core::ffi::c_void, originalobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelKeyReference_Impl::GetOriginalObject(this) { Ok(ok__) => { @@ -32193,10 +23319,7 @@ impl IModelKeyReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContextObject(this: *mut core::ffi::c_void, containingobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelKeyReference_Impl, - { + unsafe extern "system" fn GetContextObject(this: *mut core::ffi::c_void, containingobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelKeyReference_Impl::GetContextObject(this) { Ok(ok__) => { @@ -32206,31 +23329,19 @@ impl IModelKeyReference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelKeyReference_Impl, - { + unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelKeyReference_Impl::GetKey(this, core::mem::transmute_copy(&object), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn GetKeyValue(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelKeyReference_Impl, - { + unsafe extern "system" fn GetKeyValue(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelKeyReference_Impl::GetKeyValue(this, core::mem::transmute_copy(&object), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, metadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelKeyReference_Impl, - { + unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, metadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelKeyReference_Impl::SetKey(this, windows_core::from_raw_borrowed(&object), windows_core::from_raw_borrowed(&metadata)).into() } - unsafe extern "system" fn SetKeyValue(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelKeyReference_Impl, - { + unsafe extern "system" fn SetKeyValue(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelKeyReference_Impl::SetKeyValue(this, windows_core::from_raw_borrowed(&object)).into() } @@ -32254,14 +23365,8 @@ pub trait IModelKeyReference2_Impl: Sized + IModelKeyReference_Impl { } impl windows_core::RuntimeName for IModelKeyReference2 {} impl IModelKeyReference2_Vtbl { - pub const fn new() -> IModelKeyReference2_Vtbl - where - Identity: IModelKeyReference2_Impl, - { - unsafe extern "system" fn OverrideContextObject(this: *mut core::ffi::c_void, newcontextobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelKeyReference2_Impl, - { + pub const fn new() -> IModelKeyReference2_Vtbl { + unsafe extern "system" fn OverrideContextObject(this: *mut core::ffi::c_void, newcontextobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelKeyReference2_Impl::OverrideContextObject(this, windows_core::from_raw_borrowed(&newcontextobject)).into() } @@ -32271,19 +23376,13 @@ impl IModelKeyReference2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IModelMethod_Impl: Sized { +pub trait IModelMethod_Impl: Sized + windows_core::IUnknownImpl { fn Call(&self, pcontextobject: Option<&IModelObject>, argcount: u64, pparguments: *const Option, ppresult: *mut Option, ppmetadata: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IModelMethod {} impl IModelMethod_Vtbl { - pub const fn new() -> IModelMethod_Vtbl - where - Identity: IModelMethod_Impl, - { - unsafe extern "system" fn Call(this: *mut core::ffi::c_void, pcontextobject: *mut core::ffi::c_void, argcount: u64, pparguments: *const *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void, ppmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelMethod_Impl, - { + pub const fn new() -> IModelMethod_Vtbl { + unsafe extern "system" fn Call(this: *mut core::ffi::c_void, pcontextobject: *mut core::ffi::c_void, argcount: u64, pparguments: *const *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void, ppmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelMethod_Impl::Call(this, windows_core::from_raw_borrowed(&pcontextobject), core::mem::transmute_copy(&argcount), core::mem::transmute_copy(&pparguments), core::mem::transmute_copy(&ppresult), core::mem::transmute_copy(&ppmetadata)).into() } @@ -32294,7 +23393,7 @@ impl IModelMethod_Vtbl { } } #[cfg(feature = "Win32_System_Variant")] -pub trait IModelObject_Impl: Sized { +pub trait IModelObject_Impl: Sized + windows_core::IUnknownImpl { fn GetContext(&self) -> windows_core::Result; fn GetKind(&self) -> windows_core::Result; fn GetIntrinsicValue(&self) -> windows_core::Result; @@ -32333,14 +23432,8 @@ pub trait IModelObject_Impl: Sized { impl windows_core::RuntimeName for IModelObject {} #[cfg(feature = "Win32_System_Variant")] impl IModelObject_Vtbl { - pub const fn new() -> IModelObject_Vtbl - where - Identity: IModelObject_Impl, - { - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + pub const fn new() -> IModelObject_Vtbl { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::GetContext(this) { Ok(ok__) => { @@ -32350,10 +23443,7 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKind(this: *mut core::ffi::c_void, kind: *mut ModelObjectKind) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetKind(this: *mut core::ffi::c_void, kind: *mut ModelObjectKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::GetKind(this) { Ok(ok__) => { @@ -32363,10 +23453,7 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIntrinsicValue(this: *mut core::ffi::c_void, intrinsicdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetIntrinsicValue(this: *mut core::ffi::c_void, intrinsicdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::GetIntrinsicValue(this) { Ok(ok__) => { @@ -32376,10 +23463,7 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIntrinsicValueAs(this: *mut core::ffi::c_void, vt: super::super::super::Variant::VARENUM, intrinsicdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetIntrinsicValueAs(this: *mut core::ffi::c_void, vt: super::super::super::Variant::VARENUM, intrinsicdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::GetIntrinsicValueAs(this, core::mem::transmute_copy(&vt)) { Ok(ok__) => { @@ -32389,24 +23473,15 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetKeyValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::GetKeyValue(this, core::mem::transmute(&key), core::mem::transmute_copy(&object), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn SetKeyValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn SetKeyValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::SetKeyValue(this, core::mem::transmute(&key), windows_core::from_raw_borrowed(&object)).into() } - unsafe extern "system" fn EnumerateKeyValues(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn EnumerateKeyValues(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::EnumerateKeyValues(this) { Ok(ok__) => { @@ -32416,10 +23491,7 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRawValue(this: *mut core::ffi::c_void, kind: SymbolKind, name: windows_core::PCWSTR, searchflags: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetRawValue(this: *mut core::ffi::c_void, kind: SymbolKind, name: windows_core::PCWSTR, searchflags: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::GetRawValue(this, core::mem::transmute_copy(&kind), core::mem::transmute(&name), core::mem::transmute_copy(&searchflags)) { Ok(ok__) => { @@ -32429,10 +23501,7 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateRawValues(this: *mut core::ffi::c_void, kind: SymbolKind, searchflags: u32, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn EnumerateRawValues(this: *mut core::ffi::c_void, kind: SymbolKind, searchflags: u32, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::EnumerateRawValues(this, core::mem::transmute_copy(&kind), core::mem::transmute_copy(&searchflags)) { Ok(ok__) => { @@ -32442,10 +23511,7 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Dereference(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn Dereference(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::Dereference(this) { Ok(ok__) => { @@ -32455,10 +23521,7 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TryCastToRuntimeType(this: *mut core::ffi::c_void, runtimetypedobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn TryCastToRuntimeType(this: *mut core::ffi::c_void, runtimetypedobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::TryCastToRuntimeType(this) { Ok(ok__) => { @@ -32468,17 +23531,11 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConcept(this: *mut core::ffi::c_void, conceptid: *const windows_core::GUID, conceptinterface: *mut *mut core::ffi::c_void, conceptmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetConcept(this: *mut core::ffi::c_void, conceptid: *const windows_core::GUID, conceptinterface: *mut *mut core::ffi::c_void, conceptmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::GetConcept(this, core::mem::transmute_copy(&conceptid), core::mem::transmute_copy(&conceptinterface), core::mem::transmute_copy(&conceptmetadata)).into() } - unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, location: *mut Location) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, location: *mut Location) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::GetLocation(this) { Ok(ok__) => { @@ -32488,10 +23545,7 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::GetTypeInfo(this) { Ok(ok__) => { @@ -32501,17 +23555,11 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTargetInfo(this: *mut core::ffi::c_void, location: *mut Location, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetTargetInfo(this: *mut core::ffi::c_void, location: *mut Location, r#type: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::GetTargetInfo(this, core::mem::transmute_copy(&location), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetNumberOfParentModels(this: *mut core::ffi::c_void, nummodels: *mut u64) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetNumberOfParentModels(this: *mut core::ffi::c_void, nummodels: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::GetNumberOfParentModels(this) { Ok(ok__) => { @@ -32521,59 +23569,35 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentModel(this: *mut core::ffi::c_void, i: u64, model: *mut *mut core::ffi::c_void, contextobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetParentModel(this: *mut core::ffi::c_void, i: u64, model: *mut *mut core::ffi::c_void, contextobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::GetParentModel(this, core::mem::transmute_copy(&i), core::mem::transmute_copy(&model), core::mem::transmute_copy(&contextobject)).into() } - unsafe extern "system" fn AddParentModel(this: *mut core::ffi::c_void, model: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, r#override: u8) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn AddParentModel(this: *mut core::ffi::c_void, model: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, r#override: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::AddParentModel(this, windows_core::from_raw_borrowed(&model), windows_core::from_raw_borrowed(&contextobject), core::mem::transmute_copy(&r#override)).into() } - unsafe extern "system" fn RemoveParentModel(this: *mut core::ffi::c_void, model: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn RemoveParentModel(this: *mut core::ffi::c_void, model: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::RemoveParentModel(this, windows_core::from_raw_borrowed(&model)).into() } - unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::GetKey(this, core::mem::transmute(&key), core::mem::transmute_copy(&object), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn GetKeyReference(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, objectreference: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetKeyReference(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, objectreference: *mut *mut core::ffi::c_void, metadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::GetKeyReference(this, core::mem::transmute(&key), core::mem::transmute_copy(&objectreference), core::mem::transmute_copy(&metadata)).into() } - unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut core::ffi::c_void, metadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, object: *mut core::ffi::c_void, metadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::SetKey(this, core::mem::transmute(&key), windows_core::from_raw_borrowed(&object), windows_core::from_raw_borrowed(&metadata)).into() } - unsafe extern "system" fn ClearKeys(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn ClearKeys(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::ClearKeys(this).into() } - unsafe extern "system" fn EnumerateKeys(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn EnumerateKeys(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::EnumerateKeys(this) { Ok(ok__) => { @@ -32583,10 +23607,7 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateKeyReferences(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn EnumerateKeyReferences(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::EnumerateKeyReferences(this) { Ok(ok__) => { @@ -32596,24 +23617,15 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConcept(this: *mut core::ffi::c_void, conceptid: *const windows_core::GUID, conceptinterface: *mut core::ffi::c_void, conceptmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn SetConcept(this: *mut core::ffi::c_void, conceptid: *const windows_core::GUID, conceptinterface: *mut core::ffi::c_void, conceptmetadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::SetConcept(this, core::mem::transmute_copy(&conceptid), windows_core::from_raw_borrowed(&conceptinterface), windows_core::from_raw_borrowed(&conceptmetadata)).into() } - unsafe extern "system" fn ClearConcepts(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn ClearConcepts(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::ClearConcepts(this).into() } - unsafe extern "system" fn GetRawReference(this: *mut core::ffi::c_void, kind: SymbolKind, name: windows_core::PCWSTR, searchflags: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetRawReference(this: *mut core::ffi::c_void, kind: SymbolKind, name: windows_core::PCWSTR, searchflags: u32, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::GetRawReference(this, core::mem::transmute_copy(&kind), core::mem::transmute(&name), core::mem::transmute_copy(&searchflags)) { Ok(ok__) => { @@ -32623,10 +23635,7 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateRawReferences(this: *mut core::ffi::c_void, kind: SymbolKind, searchflags: u32, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn EnumerateRawReferences(this: *mut core::ffi::c_void, kind: SymbolKind, searchflags: u32, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::EnumerateRawReferences(this, core::mem::transmute_copy(&kind), core::mem::transmute_copy(&searchflags)) { Ok(ok__) => { @@ -32636,17 +23645,11 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetContextForDataModel(this: *mut core::ffi::c_void, datamodelobject: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn SetContextForDataModel(this: *mut core::ffi::c_void, datamodelobject: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::SetContextForDataModel(this, windows_core::from_raw_borrowed(&datamodelobject), windows_core::from_raw_borrowed(&context)).into() } - unsafe extern "system" fn GetContextForDataModel(this: *mut core::ffi::c_void, datamodelobject: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn GetContextForDataModel(this: *mut core::ffi::c_void, datamodelobject: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::GetContextForDataModel(this, windows_core::from_raw_borrowed(&datamodelobject)) { Ok(ok__) => { @@ -32656,17 +23659,11 @@ impl IModelObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, other: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, other: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelObject_Impl::Compare(this, windows_core::from_raw_borrowed(&other), core::mem::transmute_copy(&ppresult)).into() } - unsafe extern "system" fn IsEqualTo(this: *mut core::ffi::c_void, other: *mut core::ffi::c_void, equal: *mut bool) -> windows_core::HRESULT - where - Identity: IModelObject_Impl, - { + unsafe extern "system" fn IsEqualTo(this: *mut core::ffi::c_void, other: *mut core::ffi::c_void, equal: *mut bool) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelObject_Impl::IsEqualTo(this, windows_core::from_raw_borrowed(&other)) { Ok(ok__) => { @@ -32717,20 +23714,14 @@ impl IModelObject_Vtbl { iid == &::IID } } -pub trait IModelPropertyAccessor_Impl: Sized { +pub trait IModelPropertyAccessor_Impl: Sized + windows_core::IUnknownImpl { fn GetValue(&self, key: &windows_core::PCWSTR, contextobject: Option<&IModelObject>) -> windows_core::Result; fn SetValue(&self, key: &windows_core::PCWSTR, contextobject: Option<&IModelObject>, value: Option<&IModelObject>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IModelPropertyAccessor {} impl IModelPropertyAccessor_Vtbl { - pub const fn new() -> IModelPropertyAccessor_Vtbl - where - Identity: IModelPropertyAccessor_Impl, - { - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, contextobject: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelPropertyAccessor_Impl, - { + pub const fn new() -> IModelPropertyAccessor_Vtbl { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, contextobject: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IModelPropertyAccessor_Impl::GetValue(this, core::mem::transmute(&key), windows_core::from_raw_borrowed(&contextobject)) { Ok(ok__) => { @@ -32740,10 +23731,7 @@ impl IModelPropertyAccessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, contextobject: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IModelPropertyAccessor_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, key: windows_core::PCWSTR, contextobject: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModelPropertyAccessor_Impl::SetValue(this, core::mem::transmute(&key), windows_core::from_raw_borrowed(&contextobject), windows_core::from_raw_borrowed(&value)).into() } @@ -32753,19 +23741,13 @@ impl IModelPropertyAccessor_Vtbl { iid == &::IID } } -pub trait IPreferredRuntimeTypeConcept_Impl: Sized { +pub trait IPreferredRuntimeTypeConcept_Impl: Sized + windows_core::IUnknownImpl { fn CastToPreferredRuntimeType(&self, contextobject: Option<&IModelObject>) -> windows_core::Result; } impl windows_core::RuntimeName for IPreferredRuntimeTypeConcept {} impl IPreferredRuntimeTypeConcept_Vtbl { - pub const fn new() -> IPreferredRuntimeTypeConcept_Vtbl - where - Identity: IPreferredRuntimeTypeConcept_Impl, - { - unsafe extern "system" fn CastToPreferredRuntimeType(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPreferredRuntimeTypeConcept_Impl, - { + pub const fn new() -> IPreferredRuntimeTypeConcept_Vtbl { + unsafe extern "system" fn CastToPreferredRuntimeType(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPreferredRuntimeTypeConcept_Impl::CastToPreferredRuntimeType(this, windows_core::from_raw_borrowed(&contextobject)) { Ok(ok__) => { @@ -32781,27 +23763,18 @@ impl IPreferredRuntimeTypeConcept_Vtbl { iid == &::IID } } -pub trait IRawEnumerator_Impl: Sized { +pub trait IRawEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn GetNext(&self, name: *mut windows_core::BSTR, kind: *mut SymbolKind, value: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRawEnumerator {} impl IRawEnumerator_Vtbl { - pub const fn new() -> IRawEnumerator_Vtbl - where - Identity: IRawEnumerator_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawEnumerator_Impl, - { + pub const fn new() -> IRawEnumerator_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawEnumerator_Impl::Reset(this).into() } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit, kind: *mut SymbolKind, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawEnumerator_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit, kind: *mut SymbolKind, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawEnumerator_Impl::GetNext(this, core::mem::transmute_copy(&name), core::mem::transmute_copy(&kind), core::mem::transmute_copy(&value)).into() } @@ -32811,19 +23784,13 @@ impl IRawEnumerator_Vtbl { iid == &::IID } } -pub trait IStringDisplayableConcept_Impl: Sized { +pub trait IStringDisplayableConcept_Impl: Sized + windows_core::IUnknownImpl { fn ToDisplayString(&self, contextobject: Option<&IModelObject>, metadata: Option<&IKeyStore>) -> windows_core::Result; } impl windows_core::RuntimeName for IStringDisplayableConcept {} impl IStringDisplayableConcept_Vtbl { - pub const fn new() -> IStringDisplayableConcept_Vtbl - where - Identity: IStringDisplayableConcept_Impl, - { - unsafe extern "system" fn ToDisplayString(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, metadata: *mut core::ffi::c_void, displaystring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStringDisplayableConcept_Impl, - { + pub const fn new() -> IStringDisplayableConcept_Vtbl { + unsafe extern "system" fn ToDisplayString(this: *mut core::ffi::c_void, contextobject: *mut core::ffi::c_void, metadata: *mut core::ffi::c_void, displaystring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringDisplayableConcept_Impl::ToDisplayString(this, windows_core::from_raw_borrowed(&contextobject), windows_core::from_raw_borrowed(&metadata)) { Ok(ok__) => { 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 09cd330d78..01c42e8f06 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 @@ -7,21 +7,12 @@ pub trait IDebugExtendedProperty_Impl: Sized + IDebugProperty_Impl { impl windows_core::RuntimeName for IDebugExtendedProperty {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IDebugExtendedProperty_Vtbl { - pub const fn new() -> IDebugExtendedProperty_Vtbl - where - Identity: IDebugExtendedProperty_Impl, - { - unsafe extern "system" fn GetExtendedPropertyInfo(this: *mut core::ffi::c_void, dwfieldspec: u32, nradix: u32, pextendedpropertyinfo: *mut ExtendedDebugPropertyInfo) -> windows_core::HRESULT - where - Identity: IDebugExtendedProperty_Impl, - { + pub const fn new() -> IDebugExtendedProperty_Vtbl { + unsafe extern "system" fn GetExtendedPropertyInfo(this: *mut core::ffi::c_void, dwfieldspec: u32, nradix: u32, pextendedpropertyinfo: *mut ExtendedDebugPropertyInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugExtendedProperty_Impl::GetExtendedPropertyInfo(this, core::mem::transmute_copy(&dwfieldspec), core::mem::transmute_copy(&nradix), core::mem::transmute_copy(&pextendedpropertyinfo)).into() } - unsafe extern "system" fn EnumExtendedMembers(this: *mut core::ffi::c_void, dwfieldspec: u32, nradix: u32, ppeepi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugExtendedProperty_Impl, - { + unsafe extern "system" fn EnumExtendedMembers(this: *mut core::ffi::c_void, dwfieldspec: u32, nradix: u32, ppeepi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugExtendedProperty_Impl::EnumExtendedMembers(this, core::mem::transmute_copy(&dwfieldspec), core::mem::transmute_copy(&nradix)) { Ok(ok__) => { @@ -41,7 +32,7 @@ impl IDebugExtendedProperty_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDebugProperty_Impl: Sized { +pub trait IDebugProperty_Impl: Sized + windows_core::IUnknownImpl { fn GetPropertyInfo(&self, dwfieldspec: u32, nradix: u32, ppropertyinfo: *mut DebugPropertyInfo) -> windows_core::Result<()>; fn GetExtendedInfo(&self, cinfos: u32, rgguidextendedinfo: *const windows_core::GUID, rgvar: *mut windows_core::VARIANT) -> windows_core::Result<()>; fn SetValueAsString(&self, pszvalue: &windows_core::PCWSTR, nradix: u32) -> windows_core::Result<()>; @@ -50,35 +41,20 @@ pub trait IDebugProperty_Impl: Sized { } impl windows_core::RuntimeName for IDebugProperty {} impl IDebugProperty_Vtbl { - pub const fn new() -> IDebugProperty_Vtbl - where - Identity: IDebugProperty_Impl, - { - unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, dwfieldspec: u32, nradix: u32, ppropertyinfo: *mut DebugPropertyInfo) -> windows_core::HRESULT - where - Identity: IDebugProperty_Impl, - { + pub const fn new() -> IDebugProperty_Vtbl { + unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, dwfieldspec: u32, nradix: u32, ppropertyinfo: *mut DebugPropertyInfo) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugProperty_Impl::GetPropertyInfo(this, core::mem::transmute_copy(&dwfieldspec), core::mem::transmute_copy(&nradix), core::mem::transmute_copy(&ppropertyinfo)).into() } - unsafe extern "system" fn GetExtendedInfo(this: *mut core::ffi::c_void, cinfos: u32, rgguidextendedinfo: *const windows_core::GUID, rgvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugProperty_Impl, - { + unsafe extern "system" fn GetExtendedInfo(this: *mut core::ffi::c_void, cinfos: u32, rgguidextendedinfo: *const windows_core::GUID, rgvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugProperty_Impl::GetExtendedInfo(this, core::mem::transmute_copy(&cinfos), core::mem::transmute_copy(&rgguidextendedinfo), core::mem::transmute_copy(&rgvar)).into() } - unsafe extern "system" fn SetValueAsString(this: *mut core::ffi::c_void, pszvalue: windows_core::PCWSTR, nradix: u32) -> windows_core::HRESULT - where - Identity: IDebugProperty_Impl, - { + unsafe extern "system" fn SetValueAsString(this: *mut core::ffi::c_void, pszvalue: windows_core::PCWSTR, nradix: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugProperty_Impl::SetValueAsString(this, core::mem::transmute(&pszvalue), core::mem::transmute_copy(&nradix)).into() } - unsafe extern "system" fn EnumMembers(this: *mut core::ffi::c_void, dwfieldspec: u32, nradix: u32, refiid: *const windows_core::GUID, ppepi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugProperty_Impl, - { + unsafe extern "system" fn EnumMembers(this: *mut core::ffi::c_void, dwfieldspec: u32, nradix: u32, refiid: *const windows_core::GUID, ppepi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugProperty_Impl::EnumMembers(this, core::mem::transmute_copy(&dwfieldspec), core::mem::transmute_copy(&nradix), core::mem::transmute_copy(&refiid)) { Ok(ok__) => { @@ -88,10 +64,7 @@ impl IDebugProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, ppdebugprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDebugProperty_Impl, - { + unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, ppdebugprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugProperty_Impl::GetParent(this) { Ok(ok__) => { @@ -114,19 +87,13 @@ impl IDebugProperty_Vtbl { iid == &::IID } } -pub trait IDebugPropertyEnumType_All_Impl: Sized { +pub trait IDebugPropertyEnumType_All_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDebugPropertyEnumType_All {} impl IDebugPropertyEnumType_All_Vtbl { - pub const fn new() -> IDebugPropertyEnumType_All_Vtbl - where - Identity: IDebugPropertyEnumType_All_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, __midl__idebugpropertyenumtype_all0000: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDebugPropertyEnumType_All_Impl, - { + pub const fn new() -> IDebugPropertyEnumType_All_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, __midl__idebugpropertyenumtype_all0000: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugPropertyEnumType_All_Impl::GetName(this) { Ok(ok__) => { @@ -145,10 +112,7 @@ impl IDebugPropertyEnumType_All_Vtbl { pub trait IDebugPropertyEnumType_Arguments_Impl: Sized + IDebugPropertyEnumType_All_Impl {} impl windows_core::RuntimeName for IDebugPropertyEnumType_Arguments {} impl IDebugPropertyEnumType_Arguments_Vtbl { - pub const fn new() -> IDebugPropertyEnumType_Arguments_Vtbl - where - Identity: IDebugPropertyEnumType_Arguments_Impl, - { + pub const fn new() -> IDebugPropertyEnumType_Arguments_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -158,10 +122,7 @@ impl IDebugPropertyEnumType_Arguments_Vtbl { pub trait IDebugPropertyEnumType_Locals_Impl: Sized + IDebugPropertyEnumType_All_Impl {} impl windows_core::RuntimeName for IDebugPropertyEnumType_Locals {} impl IDebugPropertyEnumType_Locals_Vtbl { - pub const fn new() -> IDebugPropertyEnumType_Locals_Vtbl - where - Identity: IDebugPropertyEnumType_Locals_Impl, - { + pub const fn new() -> IDebugPropertyEnumType_Locals_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -171,10 +132,7 @@ impl IDebugPropertyEnumType_Locals_Vtbl { pub trait IDebugPropertyEnumType_LocalsPlusArgs_Impl: Sized + IDebugPropertyEnumType_All_Impl {} impl windows_core::RuntimeName for IDebugPropertyEnumType_LocalsPlusArgs {} impl IDebugPropertyEnumType_LocalsPlusArgs_Vtbl { - pub const fn new() -> IDebugPropertyEnumType_LocalsPlusArgs_Vtbl - where - Identity: IDebugPropertyEnumType_LocalsPlusArgs_Impl, - { + pub const fn new() -> IDebugPropertyEnumType_LocalsPlusArgs_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -184,10 +142,7 @@ impl IDebugPropertyEnumType_LocalsPlusArgs_Vtbl { pub trait IDebugPropertyEnumType_Registers_Impl: Sized + IDebugPropertyEnumType_All_Impl {} impl windows_core::RuntimeName for IDebugPropertyEnumType_Registers {} impl IDebugPropertyEnumType_Registers_Vtbl { - pub const fn new() -> IDebugPropertyEnumType_Registers_Vtbl - where - Identity: IDebugPropertyEnumType_Registers_Impl, - { + pub const fn new() -> IDebugPropertyEnumType_Registers_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -195,7 +150,7 @@ impl IDebugPropertyEnumType_Registers_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IEnumDebugExtendedPropertyInfo_Impl: Sized { +pub trait IEnumDebugExtendedPropertyInfo_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgextendedpropertyinfo: *mut ExtendedDebugPropertyInfo, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -206,35 +161,20 @@ pub trait IEnumDebugExtendedPropertyInfo_Impl: Sized { impl windows_core::RuntimeName for IEnumDebugExtendedPropertyInfo {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IEnumDebugExtendedPropertyInfo_Vtbl { - pub const fn new() -> IEnumDebugExtendedPropertyInfo_Vtbl - where - Identity: IEnumDebugExtendedPropertyInfo_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgextendedpropertyinfo: *mut ExtendedDebugPropertyInfo, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDebugExtendedPropertyInfo_Impl, - { + pub const fn new() -> IEnumDebugExtendedPropertyInfo_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgextendedpropertyinfo: *mut ExtendedDebugPropertyInfo, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugExtendedPropertyInfo_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgextendedpropertyinfo), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDebugExtendedPropertyInfo_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugExtendedPropertyInfo_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugExtendedPropertyInfo_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugExtendedPropertyInfo_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pedpe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugExtendedPropertyInfo_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pedpe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDebugExtendedPropertyInfo_Impl::Clone(this) { Ok(ok__) => { @@ -244,10 +184,7 @@ impl IEnumDebugExtendedPropertyInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDebugExtendedPropertyInfo_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDebugExtendedPropertyInfo_Impl::GetCount(this) { Ok(ok__) => { @@ -270,7 +207,7 @@ impl IEnumDebugExtendedPropertyInfo_Vtbl { iid == &::IID } } -pub trait IEnumDebugPropertyInfo_Impl: Sized { +pub trait IEnumDebugPropertyInfo_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, pi: *mut DebugPropertyInfo, pceltsfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -279,35 +216,20 @@ pub trait IEnumDebugPropertyInfo_Impl: Sized { } impl windows_core::RuntimeName for IEnumDebugPropertyInfo {} impl IEnumDebugPropertyInfo_Vtbl { - pub const fn new() -> IEnumDebugPropertyInfo_Vtbl - where - Identity: IEnumDebugPropertyInfo_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pi: *mut DebugPropertyInfo, pceltsfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDebugPropertyInfo_Impl, - { + pub const fn new() -> IEnumDebugPropertyInfo_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pi: *mut DebugPropertyInfo, pceltsfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugPropertyInfo_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&pi), core::mem::transmute_copy(&pceltsfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumDebugPropertyInfo_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugPropertyInfo_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugPropertyInfo_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumDebugPropertyInfo_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppepi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumDebugPropertyInfo_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppepi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDebugPropertyInfo_Impl::Clone(this) { Ok(ok__) => { @@ -317,10 +239,7 @@ impl IEnumDebugPropertyInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumDebugPropertyInfo_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumDebugPropertyInfo_Impl::GetCount(this) { Ok(ok__) => { @@ -343,27 +262,18 @@ impl IEnumDebugPropertyInfo_Vtbl { iid == &::IID } } -pub trait IObjectSafety_Impl: Sized { +pub trait IObjectSafety_Impl: Sized + windows_core::IUnknownImpl { fn GetInterfaceSafetyOptions(&self, riid: *const windows_core::GUID, pdwsupportedoptions: *mut u32, pdwenabledoptions: *mut u32) -> windows_core::Result<()>; fn SetInterfaceSafetyOptions(&self, riid: *const windows_core::GUID, dwoptionsetmask: u32, dwenabledoptions: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjectSafety {} impl IObjectSafety_Vtbl { - pub const fn new() -> IObjectSafety_Vtbl - where - Identity: IObjectSafety_Impl, - { - unsafe extern "system" fn GetInterfaceSafetyOptions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pdwsupportedoptions: *mut u32, pdwenabledoptions: *mut u32) -> windows_core::HRESULT - where - Identity: IObjectSafety_Impl, - { + pub const fn new() -> IObjectSafety_Vtbl { + unsafe extern "system" fn GetInterfaceSafetyOptions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pdwsupportedoptions: *mut u32, pdwenabledoptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectSafety_Impl::GetInterfaceSafetyOptions(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pdwsupportedoptions), core::mem::transmute_copy(&pdwenabledoptions)).into() } - unsafe extern "system" fn SetInterfaceSafetyOptions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, dwoptionsetmask: u32, dwenabledoptions: u32) -> windows_core::HRESULT - where - Identity: IObjectSafety_Impl, - { + unsafe extern "system" fn SetInterfaceSafetyOptions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, dwoptionsetmask: u32, dwenabledoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectSafety_Impl::SetInterfaceSafetyOptions(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&dwoptionsetmask), core::mem::transmute_copy(&dwenabledoptions)).into() } @@ -378,7 +288,7 @@ impl IObjectSafety_Vtbl { } } #[cfg(feature = "Win32_System_Ole")] -pub trait IPerPropertyBrowsing2_Impl: Sized { +pub trait IPerPropertyBrowsing2_Impl: Sized + windows_core::IUnknownImpl { fn GetDisplayString(&self, dispid: i32) -> windows_core::Result; fn MapPropertyToPage(&self, dispid: i32) -> windows_core::Result; fn GetPredefinedStrings(&self, dispid: i32, pcastrings: *mut super::super::Ole::CALPOLESTR, pcacookies: *mut super::super::Ole::CADWORD) -> windows_core::Result<()>; @@ -388,14 +298,8 @@ pub trait IPerPropertyBrowsing2_Impl: Sized { impl windows_core::RuntimeName for IPerPropertyBrowsing2 {} #[cfg(feature = "Win32_System_Ole")] impl IPerPropertyBrowsing2_Vtbl { - pub const fn new() -> IPerPropertyBrowsing2_Vtbl - where - Identity: IPerPropertyBrowsing2_Impl, - { - unsafe extern "system" fn GetDisplayString(this: *mut core::ffi::c_void, dispid: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPerPropertyBrowsing2_Impl, - { + pub const fn new() -> IPerPropertyBrowsing2_Vtbl { + unsafe extern "system" fn GetDisplayString(this: *mut core::ffi::c_void, dispid: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerPropertyBrowsing2_Impl::GetDisplayString(this, core::mem::transmute_copy(&dispid)) { Ok(ok__) => { @@ -405,10 +309,7 @@ impl IPerPropertyBrowsing2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MapPropertyToPage(this: *mut core::ffi::c_void, dispid: i32, pclsidproppage: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPerPropertyBrowsing2_Impl, - { + unsafe extern "system" fn MapPropertyToPage(this: *mut core::ffi::c_void, dispid: i32, pclsidproppage: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerPropertyBrowsing2_Impl::MapPropertyToPage(this, core::mem::transmute_copy(&dispid)) { Ok(ok__) => { @@ -418,17 +319,11 @@ impl IPerPropertyBrowsing2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPredefinedStrings(this: *mut core::ffi::c_void, dispid: i32, pcastrings: *mut super::super::Ole::CALPOLESTR, pcacookies: *mut super::super::Ole::CADWORD) -> windows_core::HRESULT - where - Identity: IPerPropertyBrowsing2_Impl, - { + unsafe extern "system" fn GetPredefinedStrings(this: *mut core::ffi::c_void, dispid: i32, pcastrings: *mut super::super::Ole::CALPOLESTR, pcacookies: *mut super::super::Ole::CADWORD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerPropertyBrowsing2_Impl::GetPredefinedStrings(this, core::mem::transmute_copy(&dispid), core::mem::transmute_copy(&pcastrings), core::mem::transmute_copy(&pcacookies)).into() } - unsafe extern "system" fn SetPredefinedValue(this: *mut core::ffi::c_void, dispid: i32, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IPerPropertyBrowsing2_Impl, - { + unsafe extern "system" fn SetPredefinedValue(this: *mut core::ffi::c_void, dispid: i32, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerPropertyBrowsing2_Impl::SetPredefinedValue(this, core::mem::transmute_copy(&dispid), core::mem::transmute_copy(&dwcookie)).into() } 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 118631ce14..fdaefcf023 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 @@ -1,4 +1,4 @@ -pub trait ITraceEvent_Impl: Sized { +pub trait ITraceEvent_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn GetUserContext(&self) -> windows_core::Result<*mut core::ffi::c_void>; fn GetEventRecord(&self) -> windows_core::Result<*mut EVENT_RECORD>; @@ -14,14 +14,8 @@ pub trait ITraceEvent_Impl: Sized { } impl windows_core::RuntimeName for ITraceEvent {} impl ITraceEvent_Vtbl { - pub const fn new() -> ITraceEvent_Vtbl - where - Identity: ITraceEvent_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + pub const fn new() -> ITraceEvent_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceEvent_Impl::Clone(this) { Ok(ok__) => { @@ -31,10 +25,7 @@ impl ITraceEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserContext(this: *mut core::ffi::c_void, usercontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn GetUserContext(this: *mut core::ffi::c_void, usercontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceEvent_Impl::GetUserContext(this) { Ok(ok__) => { @@ -44,10 +35,7 @@ impl ITraceEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventRecord(this: *mut core::ffi::c_void, eventrecord: *mut *mut EVENT_RECORD) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn GetEventRecord(this: *mut core::ffi::c_void, eventrecord: *mut *mut EVENT_RECORD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceEvent_Impl::GetEventRecord(this) { Ok(ok__) => { @@ -57,66 +45,39 @@ impl ITraceEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPayload(this: *mut core::ffi::c_void, payload: *const u8, payloadsize: u32) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn SetPayload(this: *mut core::ffi::c_void, payload: *const u8, payloadsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEvent_Impl::SetPayload(this, core::mem::transmute_copy(&payload), core::mem::transmute_copy(&payloadsize)).into() } - unsafe extern "system" fn SetEventDescriptor(this: *mut core::ffi::c_void, eventdescriptor: *const EVENT_DESCRIPTOR) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn SetEventDescriptor(this: *mut core::ffi::c_void, eventdescriptor: *const EVENT_DESCRIPTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEvent_Impl::SetEventDescriptor(this, core::mem::transmute_copy(&eventdescriptor)).into() } - unsafe extern "system" fn SetProcessId(this: *mut core::ffi::c_void, processid: u32) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn SetProcessId(this: *mut core::ffi::c_void, processid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEvent_Impl::SetProcessId(this, core::mem::transmute_copy(&processid)).into() } - unsafe extern "system" fn SetProcessorIndex(this: *mut core::ffi::c_void, processorindex: u32) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn SetProcessorIndex(this: *mut core::ffi::c_void, processorindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEvent_Impl::SetProcessorIndex(this, core::mem::transmute_copy(&processorindex)).into() } - unsafe extern "system" fn SetThreadId(this: *mut core::ffi::c_void, threadid: u32) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn SetThreadId(this: *mut core::ffi::c_void, threadid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEvent_Impl::SetThreadId(this, core::mem::transmute_copy(&threadid)).into() } - unsafe extern "system" fn SetThreadTimes(this: *mut core::ffi::c_void, kerneltime: u32, usertime: u32) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn SetThreadTimes(this: *mut core::ffi::c_void, kerneltime: u32, usertime: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEvent_Impl::SetThreadTimes(this, core::mem::transmute_copy(&kerneltime), core::mem::transmute_copy(&usertime)).into() } - unsafe extern "system" fn SetActivityId(this: *mut core::ffi::c_void, activityid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn SetActivityId(this: *mut core::ffi::c_void, activityid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEvent_Impl::SetActivityId(this, core::mem::transmute_copy(&activityid)).into() } - unsafe extern "system" fn SetTimeStamp(this: *mut core::ffi::c_void, timestamp: *const i64) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn SetTimeStamp(this: *mut core::ffi::c_void, timestamp: *const i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEvent_Impl::SetTimeStamp(this, core::mem::transmute_copy(×tamp)).into() } - unsafe extern "system" fn SetProviderId(this: *mut core::ffi::c_void, providerid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITraceEvent_Impl, - { + unsafe extern "system" fn SetProviderId(this: *mut core::ffi::c_void, providerid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEvent_Impl::SetProviderId(this, core::mem::transmute_copy(&providerid)).into() } @@ -140,35 +101,23 @@ impl ITraceEvent_Vtbl { iid == &::IID } } -pub trait ITraceEventCallback_Impl: Sized { +pub trait ITraceEventCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnBeginProcessTrace(&self, headerevent: Option<&ITraceEvent>, relogger: Option<&ITraceRelogger>) -> windows_core::Result<()>; fn OnFinalizeProcessTrace(&self, relogger: Option<&ITraceRelogger>) -> windows_core::Result<()>; fn OnEvent(&self, event: Option<&ITraceEvent>, relogger: Option<&ITraceRelogger>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITraceEventCallback {} impl ITraceEventCallback_Vtbl { - pub const fn new() -> ITraceEventCallback_Vtbl - where - Identity: ITraceEventCallback_Impl, - { - unsafe extern "system" fn OnBeginProcessTrace(this: *mut core::ffi::c_void, headerevent: *mut core::ffi::c_void, relogger: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceEventCallback_Impl, - { + pub const fn new() -> ITraceEventCallback_Vtbl { + unsafe extern "system" fn OnBeginProcessTrace(this: *mut core::ffi::c_void, headerevent: *mut core::ffi::c_void, relogger: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEventCallback_Impl::OnBeginProcessTrace(this, windows_core::from_raw_borrowed(&headerevent), windows_core::from_raw_borrowed(&relogger)).into() } - unsafe extern "system" fn OnFinalizeProcessTrace(this: *mut core::ffi::c_void, relogger: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceEventCallback_Impl, - { + unsafe extern "system" fn OnFinalizeProcessTrace(this: *mut core::ffi::c_void, relogger: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEventCallback_Impl::OnFinalizeProcessTrace(this, windows_core::from_raw_borrowed(&relogger)).into() } - unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void, relogger: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceEventCallback_Impl, - { + unsafe extern "system" fn OnEvent(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void, relogger: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceEventCallback_Impl::OnEvent(this, windows_core::from_raw_borrowed(&event), windows_core::from_raw_borrowed(&relogger)).into() } @@ -183,7 +132,7 @@ impl ITraceEventCallback_Vtbl { iid == &::IID } } -pub trait ITraceRelogger_Impl: Sized { +pub trait ITraceRelogger_Impl: Sized + windows_core::IUnknownImpl { 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: Option<&ITraceEventCallback>) -> windows_core::Result<()>; @@ -196,14 +145,8 @@ pub trait ITraceRelogger_Impl: Sized { } impl windows_core::RuntimeName for ITraceRelogger {} impl ITraceRelogger_Vtbl { - pub const fn new() -> ITraceRelogger_Vtbl - where - Identity: ITraceRelogger_Impl, - { - unsafe extern "system" fn AddLogfileTraceStream(this: *mut core::ffi::c_void, logfilename: core::mem::MaybeUninit, usercontext: *const core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> windows_core::HRESULT - where - Identity: ITraceRelogger_Impl, - { + pub const fn new() -> ITraceRelogger_Vtbl { + unsafe extern "system" fn AddLogfileTraceStream(this: *mut core::ffi::c_void, logfilename: core::mem::MaybeUninit, usercontext: *const core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceRelogger_Impl::AddLogfileTraceStream(this, core::mem::transmute(&logfilename), core::mem::transmute_copy(&usercontext)) { Ok(ok__) => { @@ -213,10 +156,7 @@ impl ITraceRelogger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddRealtimeTraceStream(this: *mut core::ffi::c_void, loggername: core::mem::MaybeUninit, usercontext: *const core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> windows_core::HRESULT - where - Identity: ITraceRelogger_Impl, - { + unsafe extern "system" fn AddRealtimeTraceStream(this: *mut core::ffi::c_void, loggername: core::mem::MaybeUninit, usercontext: *const core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceRelogger_Impl::AddRealtimeTraceStream(this, core::mem::transmute(&loggername), core::mem::transmute_copy(&usercontext)) { Ok(ok__) => { @@ -226,24 +166,15 @@ impl ITraceRelogger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterCallback(this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceRelogger_Impl, - { + unsafe extern "system" fn RegisterCallback(this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceRelogger_Impl::RegisterCallback(this, windows_core::from_raw_borrowed(&callback)).into() } - unsafe extern "system" fn Inject(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceRelogger_Impl, - { + unsafe extern "system" fn Inject(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceRelogger_Impl::Inject(this, windows_core::from_raw_borrowed(&event)).into() } - unsafe extern "system" fn CreateEventInstance(this: *mut core::ffi::c_void, tracehandle: RELOGSTREAM_HANDLE, flags: u32, event: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceRelogger_Impl, - { + unsafe extern "system" fn CreateEventInstance(this: *mut core::ffi::c_void, tracehandle: RELOGSTREAM_HANDLE, flags: u32, event: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceRelogger_Impl::CreateEventInstance(this, core::mem::transmute(&tracehandle), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -253,31 +184,19 @@ impl ITraceRelogger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessTrace(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceRelogger_Impl, - { + unsafe extern "system" fn ProcessTrace(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceRelogger_Impl::ProcessTrace(this).into() } - unsafe extern "system" fn SetOutputFilename(this: *mut core::ffi::c_void, logfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITraceRelogger_Impl, - { + unsafe extern "system" fn SetOutputFilename(this: *mut core::ffi::c_void, logfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceRelogger_Impl::SetOutputFilename(this, core::mem::transmute(&logfilename)).into() } - unsafe extern "system" fn SetCompressionMode(this: *mut core::ffi::c_void, compressionmode: super::super::super::Foundation::BOOLEAN) -> windows_core::HRESULT - where - Identity: ITraceRelogger_Impl, - { + unsafe extern "system" fn SetCompressionMode(this: *mut core::ffi::c_void, compressionmode: super::super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceRelogger_Impl::SetCompressionMode(this, core::mem::transmute_copy(&compressionmode)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceRelogger_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceRelogger_Impl::Cancel(this).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs index ed05af98de..d513bc5e94 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs @@ -1,24 +1,15 @@ -pub trait IDtcLuConfigure_Impl: Sized { +pub trait IDtcLuConfigure_Impl: Sized + windows_core::IUnknownImpl { fn Add(&self, puclupair: *const u8, cblupair: u32) -> windows_core::Result<()>; fn Delete(&self, puclupair: *const u8, cblupair: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDtcLuConfigure {} impl IDtcLuConfigure_Vtbl { - pub const fn new() -> IDtcLuConfigure_Vtbl - where - Identity: IDtcLuConfigure_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, puclupair: *const u8, cblupair: u32) -> windows_core::HRESULT - where - Identity: IDtcLuConfigure_Impl, - { + pub const fn new() -> IDtcLuConfigure_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, puclupair: *const u8, cblupair: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuConfigure_Impl::Add(this, core::mem::transmute_copy(&puclupair), core::mem::transmute_copy(&cblupair)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, puclupair: *const u8, cblupair: u32) -> windows_core::HRESULT - where - Identity: IDtcLuConfigure_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, puclupair: *const u8, cblupair: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuConfigure_Impl::Delete(this, core::mem::transmute_copy(&puclupair), core::mem::transmute_copy(&cblupair)).into() } @@ -28,32 +19,23 @@ impl IDtcLuConfigure_Vtbl { iid == &::IID } } -pub trait IDtcLuRecovery_Impl: Sized {} +pub trait IDtcLuRecovery_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IDtcLuRecovery {} impl IDtcLuRecovery_Vtbl { - pub const fn new() -> IDtcLuRecovery_Vtbl - where - Identity: IDtcLuRecovery_Impl, - { + pub const fn new() -> IDtcLuRecovery_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IDtcLuRecoveryFactory_Impl: Sized { +pub trait IDtcLuRecoveryFactory_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, puclupair: *const u8, cblupair: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IDtcLuRecoveryFactory {} impl IDtcLuRecoveryFactory_Vtbl { - pub const fn new() -> IDtcLuRecoveryFactory_Vtbl - where - Identity: IDtcLuRecoveryFactory_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, puclupair: *const u8, cblupair: u32, pprecovery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryFactory_Impl, - { + pub const fn new() -> IDtcLuRecoveryFactory_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, puclupair: *const u8, cblupair: u32, pprecovery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcLuRecoveryFactory_Impl::Create(this, core::mem::transmute_copy(&puclupair), core::mem::transmute_copy(&cblupair)) { Ok(ok__) => { @@ -69,19 +51,13 @@ impl IDtcLuRecoveryFactory_Vtbl { iid == &::IID } } -pub trait IDtcLuRecoveryInitiatedByDtc_Impl: Sized { +pub trait IDtcLuRecoveryInitiatedByDtc_Impl: Sized + windows_core::IUnknownImpl { fn GetWork(&self, pwork: *mut DTCINITIATEDRECOVERYWORK, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDtcLuRecoveryInitiatedByDtc {} impl IDtcLuRecoveryInitiatedByDtc_Vtbl { - pub const fn new() -> IDtcLuRecoveryInitiatedByDtc_Vtbl - where - Identity: IDtcLuRecoveryInitiatedByDtc_Impl, - { - unsafe extern "system" fn GetWork(this: *mut core::ffi::c_void, pwork: *mut DTCINITIATEDRECOVERYWORK, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtc_Impl, - { + pub const fn new() -> IDtcLuRecoveryInitiatedByDtc_Vtbl { + unsafe extern "system" fn GetWork(this: *mut core::ffi::c_void, pwork: *mut DTCINITIATEDRECOVERYWORK, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtc_Impl::GetWork(this, core::mem::transmute_copy(&pwork), core::mem::transmute_copy(&ppv)).into() } @@ -91,19 +67,13 @@ impl IDtcLuRecoveryInitiatedByDtc_Vtbl { iid == &::IID } } -pub trait IDtcLuRecoveryInitiatedByDtcStatusWork_Impl: Sized { +pub trait IDtcLuRecoveryInitiatedByDtcStatusWork_Impl: Sized + windows_core::IUnknownImpl { fn HandleCheckLuStatus(&self, lrecoveryseqnum: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDtcLuRecoveryInitiatedByDtcStatusWork {} impl IDtcLuRecoveryInitiatedByDtcStatusWork_Vtbl { - pub const fn new() -> IDtcLuRecoveryInitiatedByDtcStatusWork_Vtbl - where - Identity: IDtcLuRecoveryInitiatedByDtcStatusWork_Impl, - { - unsafe extern "system" fn HandleCheckLuStatus(this: *mut core::ffi::c_void, lrecoveryseqnum: i32) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcStatusWork_Impl, - { + pub const fn new() -> IDtcLuRecoveryInitiatedByDtcStatusWork_Vtbl { + unsafe extern "system" fn HandleCheckLuStatus(this: *mut core::ffi::c_void, lrecoveryseqnum: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcStatusWork_Impl::HandleCheckLuStatus(this, core::mem::transmute_copy(&lrecoveryseqnum)).into() } @@ -113,7 +83,7 @@ impl IDtcLuRecoveryInitiatedByDtcStatusWork_Vtbl { iid == &::IID } } -pub trait IDtcLuRecoveryInitiatedByDtcTransWork_Impl: Sized { +pub trait IDtcLuRecoveryInitiatedByDtcTransWork_Impl: Sized + windows_core::IUnknownImpl { fn GetLogNameSizes(&self, pcbourlogname: *mut u32, pcbremotelogname: *mut u32) -> windows_core::Result<()>; fn GetOurXln(&self, pxln: *mut DTCLUXLN, pourlogname: *mut u8, premotelogname: *mut u8, pdwprotocol: *mut u32) -> windows_core::Result<()>; fn HandleConfirmationFromOurXln(&self, confirmation: DTCLUXLNCONFIRMATION) -> windows_core::Result<()>; @@ -130,98 +100,56 @@ pub trait IDtcLuRecoveryInitiatedByDtcTransWork_Impl: Sized { } impl windows_core::RuntimeName for IDtcLuRecoveryInitiatedByDtcTransWork {} impl IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { - pub const fn new() -> IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { - unsafe extern "system" fn GetLogNameSizes(this: *mut core::ffi::c_void, pcbourlogname: *mut u32, pcbremotelogname: *mut u32) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + pub const fn new() -> IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { + unsafe extern "system" fn GetLogNameSizes(this: *mut core::ffi::c_void, pcbourlogname: *mut u32, pcbremotelogname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::GetLogNameSizes(this, core::mem::transmute_copy(&pcbourlogname), core::mem::transmute_copy(&pcbremotelogname)).into() } - unsafe extern "system" fn GetOurXln(this: *mut core::ffi::c_void, pxln: *mut DTCLUXLN, pourlogname: *mut u8, premotelogname: *mut u8, pdwprotocol: *mut u32) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn GetOurXln(this: *mut core::ffi::c_void, pxln: *mut DTCLUXLN, pourlogname: *mut u8, premotelogname: *mut u8, pdwprotocol: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::GetOurXln(this, core::mem::transmute_copy(&pxln), core::mem::transmute_copy(&pourlogname), core::mem::transmute_copy(&premotelogname), core::mem::transmute_copy(&pdwprotocol)).into() } - unsafe extern "system" fn HandleConfirmationFromOurXln(this: *mut core::ffi::c_void, confirmation: DTCLUXLNCONFIRMATION) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn HandleConfirmationFromOurXln(this: *mut core::ffi::c_void, confirmation: DTCLUXLNCONFIRMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::HandleConfirmationFromOurXln(this, core::mem::transmute_copy(&confirmation)).into() } - unsafe extern "system" fn HandleTheirXlnResponse(this: *mut core::ffi::c_void, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: *mut DTCLUXLNCONFIRMATION) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn HandleTheirXlnResponse(this: *mut core::ffi::c_void, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: *mut DTCLUXLNCONFIRMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::HandleTheirXlnResponse(this, core::mem::transmute_copy(&xln), core::mem::transmute_copy(&premotelogname), core::mem::transmute_copy(&cbremotelogname), core::mem::transmute_copy(&dwprotocol), core::mem::transmute_copy(&pconfirmation)).into() } - unsafe extern "system" fn HandleErrorFromOurXln(this: *mut core::ffi::c_void, error: DTCLUXLNERROR) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn HandleErrorFromOurXln(this: *mut core::ffi::c_void, error: DTCLUXLNERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::HandleErrorFromOurXln(this, core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn CheckForCompareStates(this: *mut core::ffi::c_void, fcomparestates: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn CheckForCompareStates(this: *mut core::ffi::c_void, fcomparestates: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::CheckForCompareStates(this, core::mem::transmute_copy(&fcomparestates)).into() } - unsafe extern "system" fn GetOurTransIdSize(this: *mut core::ffi::c_void, pcbourtransid: *mut u32) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn GetOurTransIdSize(this: *mut core::ffi::c_void, pcbourtransid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::GetOurTransIdSize(this, core::mem::transmute_copy(&pcbourtransid)).into() } - unsafe extern "system" fn GetOurCompareStates(this: *mut core::ffi::c_void, pourtransid: *mut u8, pcomparestate: *mut DTCLUCOMPARESTATE) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn GetOurCompareStates(this: *mut core::ffi::c_void, pourtransid: *mut u8, pcomparestate: *mut DTCLUCOMPARESTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::GetOurCompareStates(this, core::mem::transmute_copy(&pourtransid), core::mem::transmute_copy(&pcomparestate)).into() } - unsafe extern "system" fn HandleTheirCompareStatesResponse(this: *mut core::ffi::c_void, comparestate: DTCLUCOMPARESTATE, pconfirmation: *mut DTCLUCOMPARESTATESCONFIRMATION) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn HandleTheirCompareStatesResponse(this: *mut core::ffi::c_void, comparestate: DTCLUCOMPARESTATE, pconfirmation: *mut DTCLUCOMPARESTATESCONFIRMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::HandleTheirCompareStatesResponse(this, core::mem::transmute_copy(&comparestate), core::mem::transmute_copy(&pconfirmation)).into() } - unsafe extern "system" fn HandleErrorFromOurCompareStates(this: *mut core::ffi::c_void, error: DTCLUCOMPARESTATESERROR) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn HandleErrorFromOurCompareStates(this: *mut core::ffi::c_void, error: DTCLUCOMPARESTATESERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::HandleErrorFromOurCompareStates(this, core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn ConversationLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn ConversationLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::ConversationLost(this).into() } - unsafe extern "system" fn GetRecoverySeqNum(this: *mut core::ffi::c_void, plrecoveryseqnum: *mut i32) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn GetRecoverySeqNum(this: *mut core::ffi::c_void, plrecoveryseqnum: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::GetRecoverySeqNum(this, core::mem::transmute_copy(&plrecoveryseqnum)).into() } - unsafe extern "system" fn ObsoleteRecoverySeqNum(this: *mut core::ffi::c_void, lnewrecoveryseqnum: i32) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByDtcTransWork_Impl, - { + unsafe extern "system" fn ObsoleteRecoverySeqNum(this: *mut core::ffi::c_void, lnewrecoveryseqnum: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::ObsoleteRecoverySeqNum(this, core::mem::transmute_copy(&lnewrecoveryseqnum)).into() } @@ -246,19 +174,13 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { iid == &::IID } } -pub trait IDtcLuRecoveryInitiatedByLu_Impl: Sized { +pub trait IDtcLuRecoveryInitiatedByLu_Impl: Sized + windows_core::IUnknownImpl { fn GetObjectToHandleWorkFromLu(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDtcLuRecoveryInitiatedByLu {} impl IDtcLuRecoveryInitiatedByLu_Vtbl { - pub const fn new() -> IDtcLuRecoveryInitiatedByLu_Vtbl - where - Identity: IDtcLuRecoveryInitiatedByLu_Impl, - { - unsafe extern "system" fn GetObjectToHandleWorkFromLu(this: *mut core::ffi::c_void, ppwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByLu_Impl, - { + pub const fn new() -> IDtcLuRecoveryInitiatedByLu_Vtbl { + unsafe extern "system" fn GetObjectToHandleWorkFromLu(this: *mut core::ffi::c_void, ppwork: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcLuRecoveryInitiatedByLu_Impl::GetObjectToHandleWorkFromLu(this) { Ok(ok__) => { @@ -274,7 +196,7 @@ impl IDtcLuRecoveryInitiatedByLu_Vtbl { iid == &::IID } } -pub trait IDtcLuRecoveryInitiatedByLuWork_Impl: Sized { +pub trait IDtcLuRecoveryInitiatedByLuWork_Impl: Sized + windows_core::IUnknownImpl { fn HandleTheirXln(&self, lrecoveryseqnum: i32, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, pourlogname: *mut u8, cbourlogname: u32, dwprotocol: u32, presponse: *mut DTCLUXLNRESPONSE) -> windows_core::Result<()>; fn GetOurLogNameSize(&self, pcbourlogname: *mut u32) -> windows_core::Result<()>; fn GetOurXln(&self, pxln: *mut DTCLUXLN, pourlogname: *mut u8, pdwprotocol: *mut u32) -> windows_core::Result<()>; @@ -286,63 +208,36 @@ pub trait IDtcLuRecoveryInitiatedByLuWork_Impl: Sized { } impl windows_core::RuntimeName for IDtcLuRecoveryInitiatedByLuWork {} impl IDtcLuRecoveryInitiatedByLuWork_Vtbl { - pub const fn new() -> IDtcLuRecoveryInitiatedByLuWork_Vtbl - where - Identity: IDtcLuRecoveryInitiatedByLuWork_Impl, - { - unsafe extern "system" fn HandleTheirXln(this: *mut core::ffi::c_void, lrecoveryseqnum: i32, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, pourlogname: *mut u8, cbourlogname: u32, dwprotocol: u32, presponse: *mut DTCLUXLNRESPONSE) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByLuWork_Impl, - { + pub const fn new() -> IDtcLuRecoveryInitiatedByLuWork_Vtbl { + unsafe extern "system" fn HandleTheirXln(this: *mut core::ffi::c_void, lrecoveryseqnum: i32, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, pourlogname: *mut u8, cbourlogname: u32, dwprotocol: u32, presponse: *mut DTCLUXLNRESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByLuWork_Impl::HandleTheirXln(this, core::mem::transmute_copy(&lrecoveryseqnum), core::mem::transmute_copy(&xln), core::mem::transmute_copy(&premotelogname), core::mem::transmute_copy(&cbremotelogname), core::mem::transmute_copy(&pourlogname), core::mem::transmute_copy(&cbourlogname), core::mem::transmute_copy(&dwprotocol), core::mem::transmute_copy(&presponse)).into() } - unsafe extern "system" fn GetOurLogNameSize(this: *mut core::ffi::c_void, pcbourlogname: *mut u32) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByLuWork_Impl, - { + unsafe extern "system" fn GetOurLogNameSize(this: *mut core::ffi::c_void, pcbourlogname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByLuWork_Impl::GetOurLogNameSize(this, core::mem::transmute_copy(&pcbourlogname)).into() } - unsafe extern "system" fn GetOurXln(this: *mut core::ffi::c_void, pxln: *mut DTCLUXLN, pourlogname: *mut u8, pdwprotocol: *mut u32) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByLuWork_Impl, - { + unsafe extern "system" fn GetOurXln(this: *mut core::ffi::c_void, pxln: *mut DTCLUXLN, pourlogname: *mut u8, pdwprotocol: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByLuWork_Impl::GetOurXln(this, core::mem::transmute_copy(&pxln), core::mem::transmute_copy(&pourlogname), core::mem::transmute_copy(&pdwprotocol)).into() } - unsafe extern "system" fn HandleConfirmationOfOurXln(this: *mut core::ffi::c_void, confirmation: DTCLUXLNCONFIRMATION) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByLuWork_Impl, - { + unsafe extern "system" fn HandleConfirmationOfOurXln(this: *mut core::ffi::c_void, confirmation: DTCLUXLNCONFIRMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByLuWork_Impl::HandleConfirmationOfOurXln(this, core::mem::transmute_copy(&confirmation)).into() } - unsafe extern "system" fn HandleTheirCompareStates(this: *mut core::ffi::c_void, premotetransid: *mut u8, cbremotetransid: u32, comparestate: DTCLUCOMPARESTATE, presponse: *mut DTCLUCOMPARESTATESRESPONSE, pcomparestate: *mut DTCLUCOMPARESTATE) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByLuWork_Impl, - { + unsafe extern "system" fn HandleTheirCompareStates(this: *mut core::ffi::c_void, premotetransid: *mut u8, cbremotetransid: u32, comparestate: DTCLUCOMPARESTATE, presponse: *mut DTCLUCOMPARESTATESRESPONSE, pcomparestate: *mut DTCLUCOMPARESTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByLuWork_Impl::HandleTheirCompareStates(this, core::mem::transmute_copy(&premotetransid), core::mem::transmute_copy(&cbremotetransid), core::mem::transmute_copy(&comparestate), core::mem::transmute_copy(&presponse), core::mem::transmute_copy(&pcomparestate)).into() } - unsafe extern "system" fn HandleConfirmationOfOurCompareStates(this: *mut core::ffi::c_void, confirmation: DTCLUCOMPARESTATESCONFIRMATION) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByLuWork_Impl, - { + unsafe extern "system" fn HandleConfirmationOfOurCompareStates(this: *mut core::ffi::c_void, confirmation: DTCLUCOMPARESTATESCONFIRMATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByLuWork_Impl::HandleConfirmationOfOurCompareStates(this, core::mem::transmute_copy(&confirmation)).into() } - unsafe extern "system" fn HandleErrorFromOurCompareStates(this: *mut core::ffi::c_void, error: DTCLUCOMPARESTATESERROR) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByLuWork_Impl, - { + unsafe extern "system" fn HandleErrorFromOurCompareStates(this: *mut core::ffi::c_void, error: DTCLUCOMPARESTATESERROR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByLuWork_Impl::HandleErrorFromOurCompareStates(this, core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn ConversationLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRecoveryInitiatedByLuWork_Impl, - { + unsafe extern "system" fn ConversationLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByLuWork_Impl::ConversationLost(this).into() } @@ -362,7 +257,7 @@ impl IDtcLuRecoveryInitiatedByLuWork_Vtbl { iid == &::IID } } -pub trait IDtcLuRmEnlistment_Impl: Sized { +pub trait IDtcLuRmEnlistment_Impl: Sized + windows_core::IUnknownImpl { fn Unplug(&self, fconversationlost: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn BackedOut(&self) -> windows_core::Result<()>; fn BackOut(&self) -> windows_core::Result<()>; @@ -372,49 +267,28 @@ pub trait IDtcLuRmEnlistment_Impl: Sized { } impl windows_core::RuntimeName for IDtcLuRmEnlistment {} impl IDtcLuRmEnlistment_Vtbl { - pub const fn new() -> IDtcLuRmEnlistment_Vtbl - where - Identity: IDtcLuRmEnlistment_Impl, - { - unsafe extern "system" fn Unplug(this: *mut core::ffi::c_void, fconversationlost: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistment_Impl, - { + pub const fn new() -> IDtcLuRmEnlistment_Vtbl { + unsafe extern "system" fn Unplug(this: *mut core::ffi::c_void, fconversationlost: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistment_Impl::Unplug(this, core::mem::transmute_copy(&fconversationlost)).into() } - unsafe extern "system" fn BackedOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistment_Impl, - { + unsafe extern "system" fn BackedOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistment_Impl::BackedOut(this).into() } - unsafe extern "system" fn BackOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistment_Impl, - { + unsafe extern "system" fn BackOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistment_Impl::BackOut(this).into() } - unsafe extern "system" fn Committed(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistment_Impl, - { + unsafe extern "system" fn Committed(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistment_Impl::Committed(this).into() } - unsafe extern "system" fn Forget(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistment_Impl, - { + unsafe extern "system" fn Forget(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistment_Impl::Forget(this).into() } - unsafe extern "system" fn RequestCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistment_Impl, - { + unsafe extern "system" fn RequestCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistment_Impl::RequestCommit(this).into() } @@ -432,19 +306,13 @@ impl IDtcLuRmEnlistment_Vtbl { iid == &::IID } } -pub trait IDtcLuRmEnlistmentFactory_Impl: Sized { +pub trait IDtcLuRmEnlistmentFactory_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, puclupair: *mut u8, cblupair: u32, pitransaction: Option<&ITransaction>, ptransid: *mut u8, cbtransid: u32, prmenlistmentsink: Option<&IDtcLuRmEnlistmentSink>, pprmenlistment: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDtcLuRmEnlistmentFactory {} impl IDtcLuRmEnlistmentFactory_Vtbl { - pub const fn new() -> IDtcLuRmEnlistmentFactory_Vtbl - where - Identity: IDtcLuRmEnlistmentFactory_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, puclupair: *mut u8, cblupair: u32, pitransaction: *mut core::ffi::c_void, ptransid: *mut u8, cbtransid: u32, prmenlistmentsink: *mut core::ffi::c_void, pprmenlistment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistmentFactory_Impl, - { + pub const fn new() -> IDtcLuRmEnlistmentFactory_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, puclupair: *mut u8, cblupair: u32, pitransaction: *mut core::ffi::c_void, ptransid: *mut u8, cbtransid: u32, prmenlistmentsink: *mut core::ffi::c_void, pprmenlistment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistmentFactory_Impl::Create(this, core::mem::transmute_copy(&puclupair), core::mem::transmute_copy(&cblupair), windows_core::from_raw_borrowed(&pitransaction), core::mem::transmute_copy(&ptransid), core::mem::transmute_copy(&cbtransid), windows_core::from_raw_borrowed(&prmenlistmentsink), core::mem::transmute_copy(&pprmenlistment)).into() } @@ -454,7 +322,7 @@ impl IDtcLuRmEnlistmentFactory_Vtbl { iid == &::IID } } -pub trait IDtcLuRmEnlistmentSink_Impl: Sized { +pub trait IDtcLuRmEnlistmentSink_Impl: Sized + windows_core::IUnknownImpl { fn AckUnplug(&self) -> windows_core::Result<()>; fn TmDown(&self) -> windows_core::Result<()>; fn SessionLost(&self) -> windows_core::Result<()>; @@ -467,70 +335,40 @@ pub trait IDtcLuRmEnlistmentSink_Impl: Sized { } impl windows_core::RuntimeName for IDtcLuRmEnlistmentSink {} impl IDtcLuRmEnlistmentSink_Vtbl { - pub const fn new() -> IDtcLuRmEnlistmentSink_Vtbl - where - Identity: IDtcLuRmEnlistmentSink_Impl, - { - unsafe extern "system" fn AckUnplug(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistmentSink_Impl, - { + pub const fn new() -> IDtcLuRmEnlistmentSink_Vtbl { + unsafe extern "system" fn AckUnplug(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistmentSink_Impl::AckUnplug(this).into() } - unsafe extern "system" fn TmDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistmentSink_Impl, - { + unsafe extern "system" fn TmDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistmentSink_Impl::TmDown(this).into() } - unsafe extern "system" fn SessionLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistmentSink_Impl, - { + unsafe extern "system" fn SessionLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistmentSink_Impl::SessionLost(this).into() } - unsafe extern "system" fn BackedOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistmentSink_Impl, - { + unsafe extern "system" fn BackedOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistmentSink_Impl::BackedOut(this).into() } - unsafe extern "system" fn BackOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistmentSink_Impl, - { + unsafe extern "system" fn BackOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistmentSink_Impl::BackOut(this).into() } - unsafe extern "system" fn Committed(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistmentSink_Impl, - { + unsafe extern "system" fn Committed(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistmentSink_Impl::Committed(this).into() } - unsafe extern "system" fn Forget(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistmentSink_Impl, - { + unsafe extern "system" fn Forget(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistmentSink_Impl::Forget(this).into() } - unsafe extern "system" fn Prepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistmentSink_Impl, - { + unsafe extern "system" fn Prepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistmentSink_Impl::Prepare(this).into() } - unsafe extern "system" fn RequestCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuRmEnlistmentSink_Impl, - { + unsafe extern "system" fn RequestCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistmentSink_Impl::RequestCommit(this).into() } @@ -551,7 +389,7 @@ impl IDtcLuRmEnlistmentSink_Vtbl { iid == &::IID } } -pub trait IDtcLuSubordinateDtc_Impl: Sized { +pub trait IDtcLuSubordinateDtc_Impl: Sized + windows_core::IUnknownImpl { fn Unplug(&self, fconversationlost: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn BackedOut(&self) -> windows_core::Result<()>; fn BackOut(&self) -> windows_core::Result<()>; @@ -562,56 +400,32 @@ pub trait IDtcLuSubordinateDtc_Impl: Sized { } impl windows_core::RuntimeName for IDtcLuSubordinateDtc {} impl IDtcLuSubordinateDtc_Vtbl { - pub const fn new() -> IDtcLuSubordinateDtc_Vtbl - where - Identity: IDtcLuSubordinateDtc_Impl, - { - unsafe extern "system" fn Unplug(this: *mut core::ffi::c_void, fconversationlost: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtc_Impl, - { + pub const fn new() -> IDtcLuSubordinateDtc_Vtbl { + unsafe extern "system" fn Unplug(this: *mut core::ffi::c_void, fconversationlost: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtc_Impl::Unplug(this, core::mem::transmute_copy(&fconversationlost)).into() } - unsafe extern "system" fn BackedOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtc_Impl, - { + unsafe extern "system" fn BackedOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtc_Impl::BackedOut(this).into() } - unsafe extern "system" fn BackOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtc_Impl, - { + unsafe extern "system" fn BackOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtc_Impl::BackOut(this).into() } - unsafe extern "system" fn Committed(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtc_Impl, - { + unsafe extern "system" fn Committed(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtc_Impl::Committed(this).into() } - unsafe extern "system" fn Forget(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtc_Impl, - { + unsafe extern "system" fn Forget(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtc_Impl::Forget(this).into() } - unsafe extern "system" fn Prepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtc_Impl, - { + unsafe extern "system" fn Prepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtc_Impl::Prepare(this).into() } - unsafe extern "system" fn RequestCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtc_Impl, - { + unsafe extern "system" fn RequestCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtc_Impl::RequestCommit(this).into() } @@ -630,19 +444,13 @@ impl IDtcLuSubordinateDtc_Vtbl { iid == &::IID } } -pub trait IDtcLuSubordinateDtcFactory_Impl: Sized { +pub trait IDtcLuSubordinateDtcFactory_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, puclupair: *mut u8, cblupair: u32, punktransactionouter: Option<&windows_core::IUnknown>, isolevel: i32, isoflags: u32, poptions: Option<&ITransactionOptions>, pptransaction: *mut Option, ptransid: *mut u8, cbtransid: u32, psubordinatedtcsink: Option<&IDtcLuSubordinateDtcSink>, ppsubordinatedtc: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDtcLuSubordinateDtcFactory {} impl IDtcLuSubordinateDtcFactory_Vtbl { - pub const fn new() -> IDtcLuSubordinateDtcFactory_Vtbl - where - Identity: IDtcLuSubordinateDtcFactory_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, puclupair: *mut u8, cblupair: u32, punktransactionouter: *mut core::ffi::c_void, isolevel: i32, isoflags: u32, poptions: *mut core::ffi::c_void, pptransaction: *mut *mut core::ffi::c_void, ptransid: *mut u8, cbtransid: u32, psubordinatedtcsink: *mut core::ffi::c_void, ppsubordinatedtc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtcFactory_Impl, - { + pub const fn new() -> IDtcLuSubordinateDtcFactory_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, puclupair: *mut u8, cblupair: u32, punktransactionouter: *mut core::ffi::c_void, isolevel: i32, isoflags: u32, poptions: *mut core::ffi::c_void, pptransaction: *mut *mut core::ffi::c_void, ptransid: *mut u8, cbtransid: u32, psubordinatedtcsink: *mut core::ffi::c_void, ppsubordinatedtc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtcFactory_Impl::Create(this, core::mem::transmute_copy(&puclupair), core::mem::transmute_copy(&cblupair), windows_core::from_raw_borrowed(&punktransactionouter), core::mem::transmute_copy(&isolevel), core::mem::transmute_copy(&isoflags), windows_core::from_raw_borrowed(&poptions), core::mem::transmute_copy(&pptransaction), core::mem::transmute_copy(&ptransid), core::mem::transmute_copy(&cbtransid), windows_core::from_raw_borrowed(&psubordinatedtcsink), core::mem::transmute_copy(&ppsubordinatedtc)).into() } @@ -652,7 +460,7 @@ impl IDtcLuSubordinateDtcFactory_Vtbl { iid == &::IID } } -pub trait IDtcLuSubordinateDtcSink_Impl: Sized { +pub trait IDtcLuSubordinateDtcSink_Impl: Sized + windows_core::IUnknownImpl { fn AckUnplug(&self) -> windows_core::Result<()>; fn TmDown(&self) -> windows_core::Result<()>; fn SessionLost(&self) -> windows_core::Result<()>; @@ -664,63 +472,36 @@ pub trait IDtcLuSubordinateDtcSink_Impl: Sized { } impl windows_core::RuntimeName for IDtcLuSubordinateDtcSink {} impl IDtcLuSubordinateDtcSink_Vtbl { - pub const fn new() -> IDtcLuSubordinateDtcSink_Vtbl - where - Identity: IDtcLuSubordinateDtcSink_Impl, - { - unsafe extern "system" fn AckUnplug(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtcSink_Impl, - { + pub const fn new() -> IDtcLuSubordinateDtcSink_Vtbl { + unsafe extern "system" fn AckUnplug(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtcSink_Impl::AckUnplug(this).into() } - unsafe extern "system" fn TmDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtcSink_Impl, - { + unsafe extern "system" fn TmDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtcSink_Impl::TmDown(this).into() } - unsafe extern "system" fn SessionLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtcSink_Impl, - { + unsafe extern "system" fn SessionLost(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtcSink_Impl::SessionLost(this).into() } - unsafe extern "system" fn BackedOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtcSink_Impl, - { + unsafe extern "system" fn BackedOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtcSink_Impl::BackedOut(this).into() } - unsafe extern "system" fn BackOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtcSink_Impl, - { + unsafe extern "system" fn BackOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtcSink_Impl::BackOut(this).into() } - unsafe extern "system" fn Committed(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtcSink_Impl, - { + unsafe extern "system" fn Committed(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtcSink_Impl::Committed(this).into() } - unsafe extern "system" fn Forget(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtcSink_Impl, - { + unsafe extern "system" fn Forget(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtcSink_Impl::Forget(this).into() } - unsafe extern "system" fn RequestCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcLuSubordinateDtcSink_Impl, - { + unsafe extern "system" fn RequestCommit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtcSink_Impl::RequestCommit(this).into() } @@ -740,7 +521,7 @@ impl IDtcLuSubordinateDtcSink_Vtbl { iid == &::IID } } -pub trait IDtcNetworkAccessConfig_Impl: Sized { +pub trait IDtcNetworkAccessConfig_Impl: Sized + windows_core::IUnknownImpl { fn GetAnyNetworkAccess(&self) -> windows_core::Result; fn SetAnyNetworkAccess(&self, banynetworkaccess: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetNetworkAdministrationAccess(&self) -> windows_core::Result; @@ -757,14 +538,8 @@ pub trait IDtcNetworkAccessConfig_Impl: Sized { } impl windows_core::RuntimeName for IDtcNetworkAccessConfig {} impl IDtcNetworkAccessConfig_Vtbl { - pub const fn new() -> IDtcNetworkAccessConfig_Vtbl - where - Identity: IDtcNetworkAccessConfig_Impl, - { - unsafe extern "system" fn GetAnyNetworkAccess(this: *mut core::ffi::c_void, pbanynetworkaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + pub const fn new() -> IDtcNetworkAccessConfig_Vtbl { + unsafe extern "system" fn GetAnyNetworkAccess(this: *mut core::ffi::c_void, pbanynetworkaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetAnyNetworkAccess(this) { Ok(ok__) => { @@ -774,17 +549,11 @@ impl IDtcNetworkAccessConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAnyNetworkAccess(this: *mut core::ffi::c_void, banynetworkaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn SetAnyNetworkAccess(this: *mut core::ffi::c_void, banynetworkaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetAnyNetworkAccess(this, core::mem::transmute_copy(&banynetworkaccess)).into() } - unsafe extern "system" fn GetNetworkAdministrationAccess(this: *mut core::ffi::c_void, pbnetworkadministrationaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn GetNetworkAdministrationAccess(this: *mut core::ffi::c_void, pbnetworkadministrationaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetNetworkAdministrationAccess(this) { Ok(ok__) => { @@ -794,17 +563,11 @@ impl IDtcNetworkAccessConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkAdministrationAccess(this: *mut core::ffi::c_void, bnetworkadministrationaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn SetNetworkAdministrationAccess(this: *mut core::ffi::c_void, bnetworkadministrationaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetNetworkAdministrationAccess(this, core::mem::transmute_copy(&bnetworkadministrationaccess)).into() } - unsafe extern "system" fn GetNetworkTransactionAccess(this: *mut core::ffi::c_void, pbnetworktransactionaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn GetNetworkTransactionAccess(this: *mut core::ffi::c_void, pbnetworktransactionaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetNetworkTransactionAccess(this) { Ok(ok__) => { @@ -814,17 +577,11 @@ impl IDtcNetworkAccessConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkTransactionAccess(this: *mut core::ffi::c_void, bnetworktransactionaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn SetNetworkTransactionAccess(this: *mut core::ffi::c_void, bnetworktransactionaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetNetworkTransactionAccess(this, core::mem::transmute_copy(&bnetworktransactionaccess)).into() } - unsafe extern "system" fn GetNetworkClientAccess(this: *mut core::ffi::c_void, pbnetworkclientaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn GetNetworkClientAccess(this: *mut core::ffi::c_void, pbnetworkclientaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetNetworkClientAccess(this) { Ok(ok__) => { @@ -834,17 +591,11 @@ impl IDtcNetworkAccessConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkClientAccess(this: *mut core::ffi::c_void, bnetworkclientaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn SetNetworkClientAccess(this: *mut core::ffi::c_void, bnetworkclientaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetNetworkClientAccess(this, core::mem::transmute_copy(&bnetworkclientaccess)).into() } - unsafe extern "system" fn GetNetworkTIPAccess(this: *mut core::ffi::c_void, pbnetworktipaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn GetNetworkTIPAccess(this: *mut core::ffi::c_void, pbnetworktipaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetNetworkTIPAccess(this) { Ok(ok__) => { @@ -854,17 +605,11 @@ impl IDtcNetworkAccessConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkTIPAccess(this: *mut core::ffi::c_void, bnetworktipaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn SetNetworkTIPAccess(this: *mut core::ffi::c_void, bnetworktipaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetNetworkTIPAccess(this, core::mem::transmute_copy(&bnetworktipaccess)).into() } - unsafe extern "system" fn GetXAAccess(this: *mut core::ffi::c_void, pbxaaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn GetXAAccess(this: *mut core::ffi::c_void, pbxaaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetXAAccess(this) { Ok(ok__) => { @@ -874,17 +619,11 @@ impl IDtcNetworkAccessConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetXAAccess(this: *mut core::ffi::c_void, bxaaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn SetXAAccess(this: *mut core::ffi::c_void, bxaaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetXAAccess(this, core::mem::transmute_copy(&bxaaccess)).into() } - unsafe extern "system" fn RestartDtcService(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig_Impl, - { + unsafe extern "system" fn RestartDtcService(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::RestartDtcService(this).into() } @@ -919,14 +658,8 @@ pub trait IDtcNetworkAccessConfig2_Impl: Sized + IDtcNetworkAccessConfig_Impl { } impl windows_core::RuntimeName for IDtcNetworkAccessConfig2 {} impl IDtcNetworkAccessConfig2_Vtbl { - pub const fn new() -> IDtcNetworkAccessConfig2_Vtbl - where - Identity: IDtcNetworkAccessConfig2_Impl, - { - unsafe extern "system" fn GetNetworkInboundAccess(this: *mut core::ffi::c_void, pbinbound: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig2_Impl, - { + pub const fn new() -> IDtcNetworkAccessConfig2_Vtbl { + unsafe extern "system" fn GetNetworkInboundAccess(this: *mut core::ffi::c_void, pbinbound: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig2_Impl::GetNetworkInboundAccess(this) { Ok(ok__) => { @@ -936,10 +669,7 @@ impl IDtcNetworkAccessConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNetworkOutboundAccess(this: *mut core::ffi::c_void, pboutbound: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig2_Impl, - { + unsafe extern "system" fn GetNetworkOutboundAccess(this: *mut core::ffi::c_void, pboutbound: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig2_Impl::GetNetworkOutboundAccess(this) { Ok(ok__) => { @@ -949,24 +679,15 @@ impl IDtcNetworkAccessConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkInboundAccess(this: *mut core::ffi::c_void, binbound: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig2_Impl, - { + unsafe extern "system" fn SetNetworkInboundAccess(this: *mut core::ffi::c_void, binbound: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig2_Impl::SetNetworkInboundAccess(this, core::mem::transmute_copy(&binbound)).into() } - unsafe extern "system" fn SetNetworkOutboundAccess(this: *mut core::ffi::c_void, boutbound: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig2_Impl, - { + unsafe extern "system" fn SetNetworkOutboundAccess(this: *mut core::ffi::c_void, boutbound: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig2_Impl::SetNetworkOutboundAccess(this, core::mem::transmute_copy(&boutbound)).into() } - unsafe extern "system" fn GetAuthenticationLevel(this: *mut core::ffi::c_void, pauthlevel: *mut AUTHENTICATION_LEVEL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig2_Impl, - { + unsafe extern "system" fn GetAuthenticationLevel(this: *mut core::ffi::c_void, pauthlevel: *mut AUTHENTICATION_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig2_Impl::GetAuthenticationLevel(this) { Ok(ok__) => { @@ -976,10 +697,7 @@ impl IDtcNetworkAccessConfig2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationLevel(this: *mut core::ffi::c_void, authlevel: AUTHENTICATION_LEVEL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig2_Impl, - { + unsafe extern "system" fn SetAuthenticationLevel(this: *mut core::ffi::c_void, authlevel: AUTHENTICATION_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig2_Impl::SetAuthenticationLevel(this, core::mem::transmute_copy(&authlevel)).into() } @@ -1003,14 +721,8 @@ pub trait IDtcNetworkAccessConfig3_Impl: Sized + IDtcNetworkAccessConfig2_Impl { } impl windows_core::RuntimeName for IDtcNetworkAccessConfig3 {} impl IDtcNetworkAccessConfig3_Vtbl { - pub const fn new() -> IDtcNetworkAccessConfig3_Vtbl - where - Identity: IDtcNetworkAccessConfig3_Impl, - { - unsafe extern "system" fn GetLUAccess(this: *mut core::ffi::c_void, pbluaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig3_Impl, - { + pub const fn new() -> IDtcNetworkAccessConfig3_Vtbl { + unsafe extern "system" fn GetLUAccess(this: *mut core::ffi::c_void, pbluaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig3_Impl::GetLUAccess(this) { Ok(ok__) => { @@ -1020,10 +732,7 @@ impl IDtcNetworkAccessConfig3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLUAccess(this: *mut core::ffi::c_void, bluaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcNetworkAccessConfig3_Impl, - { + unsafe extern "system" fn SetLUAccess(this: *mut core::ffi::c_void, bluaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig3_Impl::SetLUAccess(this, core::mem::transmute_copy(&bluaccess)).into() } @@ -1037,27 +746,18 @@ impl IDtcNetworkAccessConfig3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDtcToXaHelper_Impl: Sized { +pub trait IDtcToXaHelper_Impl: Sized + windows_core::IUnknownImpl { fn Close(&self, i_fdorecovery: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn TranslateTridToXid(&self, pitransaction: Option<&ITransaction>, pguidbqual: *const windows_core::GUID, pxid: *mut XID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDtcToXaHelper {} impl IDtcToXaHelper_Vtbl { - pub const fn new() -> IDtcToXaHelper_Vtbl - where - Identity: IDtcToXaHelper_Impl, - { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, i_fdorecovery: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDtcToXaHelper_Impl, - { + pub const fn new() -> IDtcToXaHelper_Vtbl { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, i_fdorecovery: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaHelper_Impl::Close(this, core::mem::transmute_copy(&i_fdorecovery)).into() } - unsafe extern "system" fn TranslateTridToXid(this: *mut core::ffi::c_void, pitransaction: *mut core::ffi::c_void, pguidbqual: *const windows_core::GUID, pxid: *mut XID) -> windows_core::HRESULT - where - Identity: IDtcToXaHelper_Impl, - { + unsafe extern "system" fn TranslateTridToXid(this: *mut core::ffi::c_void, pitransaction: *mut core::ffi::c_void, pguidbqual: *const windows_core::GUID, pxid: *mut XID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaHelper_Impl::TranslateTridToXid(this, windows_core::from_raw_borrowed(&pitransaction), core::mem::transmute_copy(&pguidbqual), core::mem::transmute_copy(&pxid)).into() } @@ -1071,19 +771,13 @@ impl IDtcToXaHelper_Vtbl { iid == &::IID } } -pub trait IDtcToXaHelperFactory_Impl: Sized { +pub trait IDtcToXaHelperFactory_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, pszdsn: &windows_core::PCSTR, pszclientdllname: &windows_core::PCSTR, pguidrm: *mut windows_core::GUID, ppxahelper: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDtcToXaHelperFactory {} impl IDtcToXaHelperFactory_Vtbl { - pub const fn new() -> IDtcToXaHelperFactory_Vtbl - where - Identity: IDtcToXaHelperFactory_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, pszdsn: windows_core::PCSTR, pszclientdllname: windows_core::PCSTR, pguidrm: *mut windows_core::GUID, ppxahelper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcToXaHelperFactory_Impl, - { + pub const fn new() -> IDtcToXaHelperFactory_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, pszdsn: windows_core::PCSTR, pszclientdllname: windows_core::PCSTR, pguidrm: *mut windows_core::GUID, ppxahelper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaHelperFactory_Impl::Create(this, core::mem::transmute(&pszdsn), core::mem::transmute(&pszclientdllname), core::mem::transmute_copy(&pguidrm), core::mem::transmute_copy(&ppxahelper)).into() } @@ -1093,7 +787,7 @@ impl IDtcToXaHelperFactory_Vtbl { iid == &::IID } } -pub trait IDtcToXaHelperSinglePipe_Impl: Sized { +pub trait IDtcToXaHelperSinglePipe_Impl: Sized + windows_core::IUnknownImpl { fn XARMCreate(&self, pszdsn: &windows_core::PCSTR, pszclientdll: &windows_core::PCSTR, pdwrmcookie: *mut u32) -> windows_core::Result<()>; fn ConvertTridToXID(&self, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut XID) -> windows_core::Result<()>; fn EnlistWithRM(&self, dwrmcookie: u32, i_pitransaction: Option<&ITransaction>, i_pitransres: Option<&ITransactionResourceAsync>) -> windows_core::Result; @@ -1101,28 +795,16 @@ pub trait IDtcToXaHelperSinglePipe_Impl: Sized { } impl windows_core::RuntimeName for IDtcToXaHelperSinglePipe {} impl IDtcToXaHelperSinglePipe_Vtbl { - pub const fn new() -> IDtcToXaHelperSinglePipe_Vtbl - where - Identity: IDtcToXaHelperSinglePipe_Impl, - { - unsafe extern "system" fn XARMCreate(this: *mut core::ffi::c_void, pszdsn: windows_core::PCSTR, pszclientdll: windows_core::PCSTR, pdwrmcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDtcToXaHelperSinglePipe_Impl, - { + pub const fn new() -> IDtcToXaHelperSinglePipe_Vtbl { + unsafe extern "system" fn XARMCreate(this: *mut core::ffi::c_void, pszdsn: windows_core::PCSTR, pszclientdll: windows_core::PCSTR, pdwrmcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaHelperSinglePipe_Impl::XARMCreate(this, core::mem::transmute(&pszdsn), core::mem::transmute(&pszclientdll), core::mem::transmute_copy(&pdwrmcookie)).into() } - unsafe extern "system" fn ConvertTridToXID(this: *mut core::ffi::c_void, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut XID) -> windows_core::HRESULT - where - Identity: IDtcToXaHelperSinglePipe_Impl, - { + unsafe extern "system" fn ConvertTridToXID(this: *mut core::ffi::c_void, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut XID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaHelperSinglePipe_Impl::ConvertTridToXID(this, core::mem::transmute_copy(&pdwitrans), core::mem::transmute_copy(&dwrmcookie), core::mem::transmute_copy(&pxid)).into() } - unsafe extern "system" fn EnlistWithRM(this: *mut core::ffi::c_void, dwrmcookie: u32, i_pitransaction: *mut core::ffi::c_void, i_pitransres: *mut core::ffi::c_void, o_ppitransenslitment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDtcToXaHelperSinglePipe_Impl, - { + unsafe extern "system" fn EnlistWithRM(this: *mut core::ffi::c_void, dwrmcookie: u32, i_pitransaction: *mut core::ffi::c_void, i_pitransres: *mut core::ffi::c_void, o_ppitransenslitment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcToXaHelperSinglePipe_Impl::EnlistWithRM(this, core::mem::transmute_copy(&dwrmcookie), windows_core::from_raw_borrowed(&i_pitransaction), windows_core::from_raw_borrowed(&i_pitransres)) { Ok(ok__) => { @@ -1132,10 +814,7 @@ impl IDtcToXaHelperSinglePipe_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseRMCookie(this: *mut core::ffi::c_void, i_dwrmcookie: u32, i_fnormal: super::super::Foundation::BOOL) - where - Identity: IDtcToXaHelperSinglePipe_Impl, - { + unsafe extern "system" fn ReleaseRMCookie(this: *mut core::ffi::c_void, i_dwrmcookie: u32, i_fnormal: super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaHelperSinglePipe_Impl::ReleaseRMCookie(this, core::mem::transmute_copy(&i_dwrmcookie), core::mem::transmute_copy(&i_fnormal)) } @@ -1151,7 +830,7 @@ impl IDtcToXaHelperSinglePipe_Vtbl { iid == &::IID } } -pub trait IDtcToXaMapper_Impl: Sized { +pub trait IDtcToXaMapper_Impl: Sized + windows_core::IUnknownImpl { fn RequestNewResourceManager(&self, pszdsn: &windows_core::PCSTR, pszclientdllname: &windows_core::PCSTR, pdwrmcookie: *mut u32) -> windows_core::Result<()>; fn TranslateTridToXid(&self, pdwitransaction: *const u32, dwrmcookie: u32, pxid: *mut XID) -> windows_core::Result<()>; fn EnlistResourceManager(&self, dwrmcookie: u32, pdwitransaction: *const u32) -> windows_core::Result<()>; @@ -1159,35 +838,20 @@ pub trait IDtcToXaMapper_Impl: Sized { } impl windows_core::RuntimeName for IDtcToXaMapper {} impl IDtcToXaMapper_Vtbl { - pub const fn new() -> IDtcToXaMapper_Vtbl - where - Identity: IDtcToXaMapper_Impl, - { - unsafe extern "system" fn RequestNewResourceManager(this: *mut core::ffi::c_void, pszdsn: windows_core::PCSTR, pszclientdllname: windows_core::PCSTR, pdwrmcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IDtcToXaMapper_Impl, - { + pub const fn new() -> IDtcToXaMapper_Vtbl { + unsafe extern "system" fn RequestNewResourceManager(this: *mut core::ffi::c_void, pszdsn: windows_core::PCSTR, pszclientdllname: windows_core::PCSTR, pdwrmcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaMapper_Impl::RequestNewResourceManager(this, core::mem::transmute(&pszdsn), core::mem::transmute(&pszclientdllname), core::mem::transmute_copy(&pdwrmcookie)).into() } - unsafe extern "system" fn TranslateTridToXid(this: *mut core::ffi::c_void, pdwitransaction: *const u32, dwrmcookie: u32, pxid: *mut XID) -> windows_core::HRESULT - where - Identity: IDtcToXaMapper_Impl, - { + unsafe extern "system" fn TranslateTridToXid(this: *mut core::ffi::c_void, pdwitransaction: *const u32, dwrmcookie: u32, pxid: *mut XID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaMapper_Impl::TranslateTridToXid(this, core::mem::transmute_copy(&pdwitransaction), core::mem::transmute_copy(&dwrmcookie), core::mem::transmute_copy(&pxid)).into() } - unsafe extern "system" fn EnlistResourceManager(this: *mut core::ffi::c_void, dwrmcookie: u32, pdwitransaction: *const u32) -> windows_core::HRESULT - where - Identity: IDtcToXaMapper_Impl, - { + unsafe extern "system" fn EnlistResourceManager(this: *mut core::ffi::c_void, dwrmcookie: u32, pdwitransaction: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaMapper_Impl::EnlistResourceManager(this, core::mem::transmute_copy(&dwrmcookie), core::mem::transmute_copy(&pdwitransaction)).into() } - unsafe extern "system" fn ReleaseResourceManager(this: *mut core::ffi::c_void, dwrmcookie: u32) -> windows_core::HRESULT - where - Identity: IDtcToXaMapper_Impl, - { + unsafe extern "system" fn ReleaseResourceManager(this: *mut core::ffi::c_void, dwrmcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaMapper_Impl::ReleaseResourceManager(this, core::mem::transmute_copy(&dwrmcookie)).into() } @@ -1203,19 +867,13 @@ impl IDtcToXaMapper_Vtbl { iid == &::IID } } -pub trait IGetDispenser_Impl: Sized { +pub trait IGetDispenser_Impl: Sized + windows_core::IUnknownImpl { fn GetDispenser(&self, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGetDispenser {} impl IGetDispenser_Vtbl { - pub const fn new() -> IGetDispenser_Vtbl - where - Identity: IGetDispenser_Impl, - { - unsafe extern "system" fn GetDispenser(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetDispenser_Impl, - { + pub const fn new() -> IGetDispenser_Vtbl { + unsafe extern "system" fn GetDispenser(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetDispenser_Impl::GetDispenser(this, core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppvobject)).into() } @@ -1225,19 +883,13 @@ impl IGetDispenser_Vtbl { iid == &::IID } } -pub trait IKernelTransaction_Impl: Sized { +pub trait IKernelTransaction_Impl: Sized + windows_core::IUnknownImpl { fn GetHandle(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IKernelTransaction {} impl IKernelTransaction_Vtbl { - pub const fn new() -> IKernelTransaction_Vtbl - where - Identity: IKernelTransaction_Impl, - { - unsafe extern "system" fn GetHandle(this: *mut core::ffi::c_void, phandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IKernelTransaction_Impl, - { + pub const fn new() -> IKernelTransaction_Vtbl { + unsafe extern "system" fn GetHandle(this: *mut core::ffi::c_void, phandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKernelTransaction_Impl::GetHandle(this) { Ok(ok__) => { @@ -1253,27 +905,18 @@ impl IKernelTransaction_Vtbl { iid == &::IID } } -pub trait ILastResourceManager_Impl: Sized { +pub trait ILastResourceManager_Impl: Sized + windows_core::IUnknownImpl { fn TransactionCommitted(&self, pprepinfo: *const u8, cbprepinfo: u32) -> windows_core::Result<()>; fn RecoveryDone(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILastResourceManager {} impl ILastResourceManager_Vtbl { - pub const fn new() -> ILastResourceManager_Vtbl - where - Identity: ILastResourceManager_Impl, - { - unsafe extern "system" fn TransactionCommitted(this: *mut core::ffi::c_void, pprepinfo: *const u8, cbprepinfo: u32) -> windows_core::HRESULT - where - Identity: ILastResourceManager_Impl, - { + pub const fn new() -> ILastResourceManager_Vtbl { + unsafe extern "system" fn TransactionCommitted(this: *mut core::ffi::c_void, pprepinfo: *const u8, cbprepinfo: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILastResourceManager_Impl::TransactionCommitted(this, core::mem::transmute_copy(&pprepinfo), core::mem::transmute_copy(&cbprepinfo)).into() } - unsafe extern "system" fn RecoveryDone(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILastResourceManager_Impl, - { + unsafe extern "system" fn RecoveryDone(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILastResourceManager_Impl::RecoveryDone(this).into() } @@ -1287,27 +930,18 @@ impl ILastResourceManager_Vtbl { iid == &::IID } } -pub trait IPrepareInfo_Impl: Sized { +pub trait IPrepareInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetPrepareInfoSize(&self, pcbprepinfo: *mut u32) -> windows_core::Result<()>; fn GetPrepareInfo(&self, pprepinfo: *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrepareInfo {} impl IPrepareInfo_Vtbl { - pub const fn new() -> IPrepareInfo_Vtbl - where - Identity: IPrepareInfo_Impl, - { - unsafe extern "system" fn GetPrepareInfoSize(this: *mut core::ffi::c_void, pcbprepinfo: *mut u32) -> windows_core::HRESULT - where - Identity: IPrepareInfo_Impl, - { + pub const fn new() -> IPrepareInfo_Vtbl { + unsafe extern "system" fn GetPrepareInfoSize(this: *mut core::ffi::c_void, pcbprepinfo: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrepareInfo_Impl::GetPrepareInfoSize(this, core::mem::transmute_copy(&pcbprepinfo)).into() } - unsafe extern "system" fn GetPrepareInfo(this: *mut core::ffi::c_void, pprepinfo: *mut u8) -> windows_core::HRESULT - where - Identity: IPrepareInfo_Impl, - { + unsafe extern "system" fn GetPrepareInfo(this: *mut core::ffi::c_void, pprepinfo: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrepareInfo_Impl::GetPrepareInfo(this, core::mem::transmute_copy(&pprepinfo)).into() } @@ -1321,20 +955,14 @@ impl IPrepareInfo_Vtbl { iid == &::IID } } -pub trait IPrepareInfo2_Impl: Sized { +pub trait IPrepareInfo2_Impl: Sized + windows_core::IUnknownImpl { fn GetPrepareInfoSize(&self) -> windows_core::Result; fn GetPrepareInfo(&self, cbprepareinfo: u32, pprepinfo: *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrepareInfo2 {} impl IPrepareInfo2_Vtbl { - pub const fn new() -> IPrepareInfo2_Vtbl - where - Identity: IPrepareInfo2_Impl, - { - unsafe extern "system" fn GetPrepareInfoSize(this: *mut core::ffi::c_void, pcbprepinfo: *mut u32) -> windows_core::HRESULT - where - Identity: IPrepareInfo2_Impl, - { + pub const fn new() -> IPrepareInfo2_Vtbl { + unsafe extern "system" fn GetPrepareInfoSize(this: *mut core::ffi::c_void, pcbprepinfo: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrepareInfo2_Impl::GetPrepareInfoSize(this) { Ok(ok__) => { @@ -1344,10 +972,7 @@ impl IPrepareInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrepareInfo(this: *mut core::ffi::c_void, cbprepareinfo: u32, pprepinfo: *mut u8) -> windows_core::HRESULT - where - Identity: IPrepareInfo2_Impl, - { + unsafe extern "system" fn GetPrepareInfo(this: *mut core::ffi::c_void, cbprepareinfo: u32, pprepinfo: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrepareInfo2_Impl::GetPrepareInfo(this, core::mem::transmute_copy(&cbprepareinfo), core::mem::transmute_copy(&pprepinfo)).into() } @@ -1361,27 +986,18 @@ impl IPrepareInfo2_Vtbl { iid == &::IID } } -pub trait IRMHelper_Impl: Sized { +pub trait IRMHelper_Impl: Sized + windows_core::IUnknownImpl { fn RMCount(&self, dwctotalnumberofrms: u32) -> windows_core::Result<()>; fn RMInfo(&self, pxa_switch: *mut xa_switch_t, fcdeclcallingconv: super::super::Foundation::BOOL, pszopenstring: &windows_core::PCSTR, pszclosestring: &windows_core::PCSTR, guidrmrecovery: &windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRMHelper {} impl IRMHelper_Vtbl { - pub const fn new() -> IRMHelper_Vtbl - where - Identity: IRMHelper_Impl, - { - unsafe extern "system" fn RMCount(this: *mut core::ffi::c_void, dwctotalnumberofrms: u32) -> windows_core::HRESULT - where - Identity: IRMHelper_Impl, - { + pub const fn new() -> IRMHelper_Vtbl { + unsafe extern "system" fn RMCount(this: *mut core::ffi::c_void, dwctotalnumberofrms: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRMHelper_Impl::RMCount(this, core::mem::transmute_copy(&dwctotalnumberofrms)).into() } - unsafe extern "system" fn RMInfo(this: *mut core::ffi::c_void, pxa_switch: *mut xa_switch_t, fcdeclcallingconv: super::super::Foundation::BOOL, pszopenstring: windows_core::PCSTR, pszclosestring: windows_core::PCSTR, guidrmrecovery: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRMHelper_Impl, - { + unsafe extern "system" fn RMInfo(this: *mut core::ffi::c_void, pxa_switch: *mut xa_switch_t, fcdeclcallingconv: super::super::Foundation::BOOL, pszopenstring: windows_core::PCSTR, pszclosestring: windows_core::PCSTR, guidrmrecovery: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRMHelper_Impl::RMInfo(this, core::mem::transmute_copy(&pxa_switch), core::mem::transmute_copy(&fcdeclcallingconv), core::mem::transmute(&pszopenstring), core::mem::transmute(&pszclosestring), core::mem::transmute(&guidrmrecovery)).into() } @@ -1391,7 +1007,7 @@ impl IRMHelper_Vtbl { iid == &::IID } } -pub trait IResourceManager_Impl: Sized { +pub trait IResourceManager_Impl: Sized + windows_core::IUnknownImpl { fn Enlist(&self, ptransaction: Option<&ITransaction>, pres: Option<&ITransactionResourceAsync>, puow: *mut BOID, pisolevel: *mut i32, ppenlist: *mut Option) -> windows_core::Result<()>; fn Reenlist(&self, pprepinfo: *const u8, cbprepinfo: u32, ltimeout: u32) -> windows_core::Result; fn ReenlistmentComplete(&self) -> windows_core::Result<()>; @@ -1399,21 +1015,12 @@ pub trait IResourceManager_Impl: Sized { } impl windows_core::RuntimeName for IResourceManager {} impl IResourceManager_Vtbl { - pub const fn new() -> IResourceManager_Vtbl - where - Identity: IResourceManager_Impl, - { - unsafe extern "system" fn Enlist(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void, pres: *mut core::ffi::c_void, puow: *mut BOID, pisolevel: *mut i32, ppenlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + pub const fn new() -> IResourceManager_Vtbl { + unsafe extern "system" fn Enlist(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void, pres: *mut core::ffi::c_void, puow: *mut BOID, pisolevel: *mut i32, ppenlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager_Impl::Enlist(this, windows_core::from_raw_borrowed(&ptransaction), windows_core::from_raw_borrowed(&pres), core::mem::transmute_copy(&puow), core::mem::transmute_copy(&pisolevel), core::mem::transmute_copy(&ppenlist)).into() } - unsafe extern "system" fn Reenlist(this: *mut core::ffi::c_void, pprepinfo: *const u8, cbprepinfo: u32, ltimeout: u32, pxactstat: *mut XACTSTAT) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + unsafe extern "system" fn Reenlist(this: *mut core::ffi::c_void, pprepinfo: *const u8, cbprepinfo: u32, ltimeout: u32, pxactstat: *mut XACTSTAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IResourceManager_Impl::Reenlist(this, core::mem::transmute_copy(&pprepinfo), core::mem::transmute_copy(&cbprepinfo), core::mem::transmute_copy(<imeout)) { Ok(ok__) => { @@ -1423,17 +1030,11 @@ impl IResourceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReenlistmentComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + unsafe extern "system" fn ReenlistmentComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager_Impl::ReenlistmentComplete(this).into() } - unsafe extern "system" fn GetDistributedTransactionManager(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManager_Impl, - { + unsafe extern "system" fn GetDistributedTransactionManager(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager_Impl::GetDistributedTransactionManager(this, core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppvobject)).into() } @@ -1455,21 +1056,12 @@ pub trait IResourceManager2_Impl: Sized + IResourceManager_Impl { } impl windows_core::RuntimeName for IResourceManager2 {} impl IResourceManager2_Vtbl { - pub const fn new() -> IResourceManager2_Vtbl - where - Identity: IResourceManager2_Impl, - { - unsafe extern "system" fn Enlist2(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void, presasync: *mut core::ffi::c_void, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut XID, ppenlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManager2_Impl, - { + pub const fn new() -> IResourceManager2_Vtbl { + unsafe extern "system" fn Enlist2(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void, presasync: *mut core::ffi::c_void, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut XID, ppenlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager2_Impl::Enlist2(this, windows_core::from_raw_borrowed(&ptransaction), windows_core::from_raw_borrowed(&presasync), core::mem::transmute_copy(&puow), core::mem::transmute_copy(&pisolevel), core::mem::transmute_copy(&pxid), core::mem::transmute_copy(&ppenlist)).into() } - unsafe extern "system" fn Reenlist2(this: *mut core::ffi::c_void, pxid: *const XID, dwtimeout: u32, pxactstat: *mut XACTSTAT) -> windows_core::HRESULT - where - Identity: IResourceManager2_Impl, - { + unsafe extern "system" fn Reenlist2(this: *mut core::ffi::c_void, pxid: *const XID, dwtimeout: u32, pxactstat: *mut XACTSTAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IResourceManager2_Impl::Reenlist2(this, core::mem::transmute_copy(&pxid), core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -1485,19 +1077,13 @@ impl IResourceManager2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IResourceManagerFactory_Impl: Sized { +pub trait IResourceManagerFactory_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, pguidrm: *const windows_core::GUID, pszrmname: &windows_core::PCSTR, piresmgrsink: Option<&IResourceManagerSink>) -> windows_core::Result; } impl windows_core::RuntimeName for IResourceManagerFactory {} impl IResourceManagerFactory_Vtbl { - pub const fn new() -> IResourceManagerFactory_Vtbl - where - Identity: IResourceManagerFactory_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, pguidrm: *const windows_core::GUID, pszrmname: windows_core::PCSTR, piresmgrsink: *mut core::ffi::c_void, ppresmgr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManagerFactory_Impl, - { + pub const fn new() -> IResourceManagerFactory_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, pguidrm: *const windows_core::GUID, pszrmname: windows_core::PCSTR, piresmgrsink: *mut core::ffi::c_void, ppresmgr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IResourceManagerFactory_Impl::Create(this, core::mem::transmute_copy(&pguidrm), core::mem::transmute(&pszrmname), windows_core::from_raw_borrowed(&piresmgrsink)) { Ok(ok__) => { @@ -1518,14 +1104,8 @@ pub trait IResourceManagerFactory2_Impl: Sized + IResourceManagerFactory_Impl { } impl windows_core::RuntimeName for IResourceManagerFactory2 {} impl IResourceManagerFactory2_Vtbl { - pub const fn new() -> IResourceManagerFactory2_Vtbl - where - Identity: IResourceManagerFactory2_Impl, - { - unsafe extern "system" fn CreateEx(this: *mut core::ffi::c_void, pguidrm: *const windows_core::GUID, pszrmname: windows_core::PCSTR, piresmgrsink: *mut core::ffi::c_void, riidrequested: *const windows_core::GUID, ppvresmgr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManagerFactory2_Impl, - { + pub const fn new() -> IResourceManagerFactory2_Vtbl { + unsafe extern "system" fn CreateEx(this: *mut core::ffi::c_void, pguidrm: *const windows_core::GUID, pszrmname: windows_core::PCSTR, piresmgrsink: *mut core::ffi::c_void, riidrequested: *const windows_core::GUID, ppvresmgr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManagerFactory2_Impl::CreateEx(this, core::mem::transmute_copy(&pguidrm), core::mem::transmute(&pszrmname), windows_core::from_raw_borrowed(&piresmgrsink), core::mem::transmute_copy(&riidrequested), core::mem::transmute_copy(&ppvresmgr)).into() } @@ -1540,14 +1120,8 @@ pub trait IResourceManagerRejoinable_Impl: Sized + IResourceManager2_Impl { } impl windows_core::RuntimeName for IResourceManagerRejoinable {} impl IResourceManagerRejoinable_Vtbl { - pub const fn new() -> IResourceManagerRejoinable_Vtbl - where - Identity: IResourceManagerRejoinable_Impl, - { - unsafe extern "system" fn Rejoin(this: *mut core::ffi::c_void, pprepinfo: *const u8, cbprepinfo: u32, ltimeout: u32, pxactstat: *mut XACTSTAT) -> windows_core::HRESULT - where - Identity: IResourceManagerRejoinable_Impl, - { + pub const fn new() -> IResourceManagerRejoinable_Vtbl { + unsafe extern "system" fn Rejoin(this: *mut core::ffi::c_void, pprepinfo: *const u8, cbprepinfo: u32, ltimeout: u32, pxactstat: *mut XACTSTAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IResourceManagerRejoinable_Impl::Rejoin(this, core::mem::transmute_copy(&pprepinfo), core::mem::transmute_copy(&cbprepinfo), core::mem::transmute_copy(<imeout)) { Ok(ok__) => { @@ -1563,19 +1137,13 @@ impl IResourceManagerRejoinable_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IResourceManagerSink_Impl: Sized { +pub trait IResourceManagerSink_Impl: Sized + windows_core::IUnknownImpl { fn TMDown(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IResourceManagerSink {} impl IResourceManagerSink_Vtbl { - pub const fn new() -> IResourceManagerSink_Vtbl - where - Identity: IResourceManagerSink_Impl, - { - unsafe extern "system" fn TMDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResourceManagerSink_Impl, - { + pub const fn new() -> IResourceManagerSink_Vtbl { + unsafe extern "system" fn TMDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManagerSink_Impl::TMDown(this).into() } @@ -1585,21 +1153,15 @@ impl IResourceManagerSink_Vtbl { iid == &::IID } } -pub trait ITipHelper_Impl: Sized { +pub trait ITipHelper_Impl: Sized + windows_core::IUnknownImpl { fn Pull(&self, i_psztxurl: *const u8) -> windows_core::Result; fn PullAsync(&self, i_psztxurl: *const u8, i_ptippullsink: Option<&ITipPullSink>) -> windows_core::Result; fn GetLocalTmUrl(&self) -> windows_core::Result<*mut u8>; } impl windows_core::RuntimeName for ITipHelper {} impl ITipHelper_Vtbl { - pub const fn new() -> ITipHelper_Vtbl - where - Identity: ITipHelper_Impl, - { - unsafe extern "system" fn Pull(this: *mut core::ffi::c_void, i_psztxurl: *const u8, o_ppitransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITipHelper_Impl, - { + pub const fn new() -> ITipHelper_Vtbl { + unsafe extern "system" fn Pull(this: *mut core::ffi::c_void, i_psztxurl: *const u8, o_ppitransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITipHelper_Impl::Pull(this, core::mem::transmute_copy(&i_psztxurl)) { Ok(ok__) => { @@ -1609,10 +1171,7 @@ impl ITipHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PullAsync(this: *mut core::ffi::c_void, i_psztxurl: *const u8, i_ptippullsink: *mut core::ffi::c_void, o_ppitransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITipHelper_Impl, - { + unsafe extern "system" fn PullAsync(this: *mut core::ffi::c_void, i_psztxurl: *const u8, i_ptippullsink: *mut core::ffi::c_void, o_ppitransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITipHelper_Impl::PullAsync(this, core::mem::transmute_copy(&i_psztxurl), windows_core::from_raw_borrowed(&i_ptippullsink)) { Ok(ok__) => { @@ -1622,10 +1181,7 @@ impl ITipHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalTmUrl(this: *mut core::ffi::c_void, o_ppszlocaltmurl: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ITipHelper_Impl, - { + unsafe extern "system" fn GetLocalTmUrl(this: *mut core::ffi::c_void, o_ppszlocaltmurl: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITipHelper_Impl::GetLocalTmUrl(this) { Ok(ok__) => { @@ -1646,19 +1202,13 @@ impl ITipHelper_Vtbl { iid == &::IID } } -pub trait ITipPullSink_Impl: Sized { +pub trait ITipPullSink_Impl: Sized + windows_core::IUnknownImpl { fn PullComplete(&self, i_hrpull: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITipPullSink {} impl ITipPullSink_Vtbl { - pub const fn new() -> ITipPullSink_Vtbl - where - Identity: ITipPullSink_Impl, - { - unsafe extern "system" fn PullComplete(this: *mut core::ffi::c_void, i_hrpull: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITipPullSink_Impl, - { + pub const fn new() -> ITipPullSink_Vtbl { + unsafe extern "system" fn PullComplete(this: *mut core::ffi::c_void, i_hrpull: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITipPullSink_Impl::PullComplete(this, core::mem::transmute_copy(&i_hrpull)).into() } @@ -1668,20 +1218,14 @@ impl ITipPullSink_Vtbl { iid == &::IID } } -pub trait ITipTransaction_Impl: Sized { +pub trait ITipTransaction_Impl: Sized + windows_core::IUnknownImpl { fn Push(&self, i_pszremotetmurl: *const u8) -> windows_core::Result; fn GetTransactionUrl(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITipTransaction {} impl ITipTransaction_Vtbl { - pub const fn new() -> ITipTransaction_Vtbl - where - Identity: ITipTransaction_Impl, - { - unsafe extern "system" fn Push(this: *mut core::ffi::c_void, i_pszremotetmurl: *const u8, o_ppszremotetxurl: *mut windows_core::PSTR) -> windows_core::HRESULT - where - Identity: ITipTransaction_Impl, - { + pub const fn new() -> ITipTransaction_Vtbl { + unsafe extern "system" fn Push(this: *mut core::ffi::c_void, i_pszremotetmurl: *const u8, o_ppszremotetxurl: *mut windows_core::PSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITipTransaction_Impl::Push(this, core::mem::transmute_copy(&i_pszremotetmurl)) { Ok(ok__) => { @@ -1691,10 +1235,7 @@ impl ITipTransaction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransactionUrl(this: *mut core::ffi::c_void, o_ppszlocaltxurl: *mut windows_core::PSTR) -> windows_core::HRESULT - where - Identity: ITipTransaction_Impl, - { + unsafe extern "system" fn GetTransactionUrl(this: *mut core::ffi::c_void, o_ppszlocaltxurl: *mut windows_core::PSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITipTransaction_Impl::GetTransactionUrl(this) { Ok(ok__) => { @@ -1714,20 +1255,14 @@ impl ITipTransaction_Vtbl { iid == &::IID } } -pub trait ITmNodeName_Impl: Sized { +pub trait ITmNodeName_Impl: Sized + windows_core::IUnknownImpl { fn GetNodeNameSize(&self) -> windows_core::Result; fn GetNodeName(&self, cbnodenamebuffersize: u32, pnodenamebuffer: &windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITmNodeName {} impl ITmNodeName_Vtbl { - pub const fn new() -> ITmNodeName_Vtbl - where - Identity: ITmNodeName_Impl, - { - unsafe extern "system" fn GetNodeNameSize(this: *mut core::ffi::c_void, pcbnodenamesize: *mut u32) -> windows_core::HRESULT - where - Identity: ITmNodeName_Impl, - { + pub const fn new() -> ITmNodeName_Vtbl { + unsafe extern "system" fn GetNodeNameSize(this: *mut core::ffi::c_void, pcbnodenamesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITmNodeName_Impl::GetNodeNameSize(this) { Ok(ok__) => { @@ -1737,10 +1272,7 @@ impl ITmNodeName_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNodeName(this: *mut core::ffi::c_void, cbnodenamebuffersize: u32, pnodenamebuffer: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITmNodeName_Impl, - { + unsafe extern "system" fn GetNodeName(this: *mut core::ffi::c_void, cbnodenamebuffersize: u32, pnodenamebuffer: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITmNodeName_Impl::GetNodeName(this, core::mem::transmute_copy(&cbnodenamebuffersize), core::mem::transmute(&pnodenamebuffer)).into() } @@ -1754,35 +1286,23 @@ impl ITmNodeName_Vtbl { iid == &::IID } } -pub trait ITransaction_Impl: Sized { +pub trait ITransaction_Impl: Sized + windows_core::IUnknownImpl { fn Commit(&self, fretaining: super::super::Foundation::BOOL, grftc: u32, grfrm: u32) -> windows_core::Result<()>; fn Abort(&self, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, fasync: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetTransactionInfo(&self, pinfo: *mut XACTTRANSINFO) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransaction {} impl ITransaction_Vtbl { - pub const fn new() -> ITransaction_Vtbl - where - Identity: ITransaction_Impl, - { - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, grftc: u32, grfrm: u32) -> windows_core::HRESULT - where - Identity: ITransaction_Impl, - { + pub const fn new() -> ITransaction_Vtbl { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, grftc: u32, grfrm: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransaction_Impl::Commit(this, core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&grftc), core::mem::transmute_copy(&grfrm)).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, fasync: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITransaction_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, fasync: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransaction_Impl::Abort(this, core::mem::transmute_copy(&pboidreason), core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&fasync)).into() } - unsafe extern "system" fn GetTransactionInfo(this: *mut core::ffi::c_void, pinfo: *mut XACTTRANSINFO) -> windows_core::HRESULT - where - Identity: ITransaction_Impl, - { + unsafe extern "system" fn GetTransactionInfo(this: *mut core::ffi::c_void, pinfo: *mut XACTTRANSINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransaction_Impl::GetTransactionInfo(this, core::mem::transmute_copy(&pinfo)).into() } @@ -1802,14 +1322,8 @@ pub trait ITransaction2_Impl: Sized + ITransactionCloner_Impl { } impl windows_core::RuntimeName for ITransaction2 {} impl ITransaction2_Vtbl { - pub const fn new() -> ITransaction2_Vtbl - where - Identity: ITransaction2_Impl, - { - unsafe extern "system" fn GetTransactionInfo2(this: *mut core::ffi::c_void, pinfo: *mut XACTTRANSINFO) -> windows_core::HRESULT - where - Identity: ITransaction2_Impl, - { + pub const fn new() -> ITransaction2_Vtbl { + unsafe extern "system" fn GetTransactionInfo2(this: *mut core::ffi::c_void, pinfo: *mut XACTTRANSINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransaction2_Impl::GetTransactionInfo2(this, core::mem::transmute_copy(&pinfo)).into() } @@ -1824,14 +1338,8 @@ pub trait ITransactionCloner_Impl: Sized + ITransaction_Impl { } impl windows_core::RuntimeName for ITransactionCloner {} impl ITransactionCloner_Vtbl { - pub const fn new() -> ITransactionCloner_Vtbl - where - Identity: ITransactionCloner_Impl, - { - unsafe extern "system" fn CloneWithCommitDisabled(this: *mut core::ffi::c_void, ppitransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionCloner_Impl, - { + pub const fn new() -> ITransactionCloner_Vtbl { + unsafe extern "system" fn CloneWithCommitDisabled(this: *mut core::ffi::c_void, ppitransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionCloner_Impl::CloneWithCommitDisabled(this) { Ok(ok__) => { @@ -1847,20 +1355,14 @@ impl ITransactionCloner_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITransactionDispenser_Impl: Sized { +pub trait ITransactionDispenser_Impl: Sized + windows_core::IUnknownImpl { fn GetOptionsObject(&self) -> windows_core::Result; fn BeginTransaction(&self, punkouter: Option<&windows_core::IUnknown>, isolevel: i32, isoflags: u32, poptions: Option<&ITransactionOptions>) -> windows_core::Result; } impl windows_core::RuntimeName for ITransactionDispenser {} impl ITransactionDispenser_Vtbl { - pub const fn new() -> ITransactionDispenser_Vtbl - where - Identity: ITransactionDispenser_Impl, - { - unsafe extern "system" fn GetOptionsObject(this: *mut core::ffi::c_void, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionDispenser_Impl, - { + pub const fn new() -> ITransactionDispenser_Vtbl { + unsafe extern "system" fn GetOptionsObject(this: *mut core::ffi::c_void, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionDispenser_Impl::GetOptionsObject(this) { Ok(ok__) => { @@ -1870,10 +1372,7 @@ impl ITransactionDispenser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, isolevel: i32, isoflags: u32, poptions: *mut core::ffi::c_void, pptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionDispenser_Impl, - { + unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, isolevel: i32, isoflags: u32, poptions: *mut core::ffi::c_void, pptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionDispenser_Impl::BeginTransaction(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&isolevel), core::mem::transmute_copy(&isoflags), windows_core::from_raw_borrowed(&poptions)) { Ok(ok__) => { @@ -1894,7 +1393,7 @@ impl ITransactionDispenser_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITransactionEnlistmentAsync_Impl: Sized { +pub trait ITransactionEnlistmentAsync_Impl: Sized + windows_core::IUnknownImpl { fn PrepareRequestDone(&self, hr: windows_core::HRESULT, pmk: Option<&super::Com::IMoniker>, pboidreason: *const BOID) -> windows_core::Result<()>; fn CommitRequestDone(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn AbortRequestDone(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; @@ -1903,28 +1402,16 @@ pub trait ITransactionEnlistmentAsync_Impl: Sized { impl windows_core::RuntimeName for ITransactionEnlistmentAsync {} #[cfg(feature = "Win32_System_Com")] impl ITransactionEnlistmentAsync_Vtbl { - pub const fn new() -> ITransactionEnlistmentAsync_Vtbl - where - Identity: ITransactionEnlistmentAsync_Impl, - { - unsafe extern "system" fn PrepareRequestDone(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, pmk: *mut core::ffi::c_void, pboidreason: *const BOID) -> windows_core::HRESULT - where - Identity: ITransactionEnlistmentAsync_Impl, - { + pub const fn new() -> ITransactionEnlistmentAsync_Vtbl { + unsafe extern "system" fn PrepareRequestDone(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, pmk: *mut core::ffi::c_void, pboidreason: *const BOID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionEnlistmentAsync_Impl::PrepareRequestDone(this, core::mem::transmute_copy(&hr), windows_core::from_raw_borrowed(&pmk), core::mem::transmute_copy(&pboidreason)).into() } - unsafe extern "system" fn CommitRequestDone(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITransactionEnlistmentAsync_Impl, - { + unsafe extern "system" fn CommitRequestDone(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionEnlistmentAsync_Impl::CommitRequestDone(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn AbortRequestDone(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITransactionEnlistmentAsync_Impl, - { + unsafe extern "system" fn AbortRequestDone(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionEnlistmentAsync_Impl::AbortRequestDone(this, core::mem::transmute_copy(&hr)).into() } @@ -1939,20 +1426,14 @@ impl ITransactionEnlistmentAsync_Vtbl { iid == &::IID } } -pub trait ITransactionExport_Impl: Sized { +pub trait ITransactionExport_Impl: Sized + windows_core::IUnknownImpl { fn Export(&self, punktransaction: Option<&windows_core::IUnknown>) -> windows_core::Result; fn GetTransactionCookie(&self, punktransaction: Option<&windows_core::IUnknown>, cbtransactioncookie: u32, rgbtransactioncookie: *mut u8, pcbused: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransactionExport {} impl ITransactionExport_Vtbl { - pub const fn new() -> ITransactionExport_Vtbl - where - Identity: ITransactionExport_Impl, - { - unsafe extern "system" fn Export(this: *mut core::ffi::c_void, punktransaction: *mut core::ffi::c_void, pcbtransactioncookie: *mut u32) -> windows_core::HRESULT - where - Identity: ITransactionExport_Impl, - { + pub const fn new() -> ITransactionExport_Vtbl { + unsafe extern "system" fn Export(this: *mut core::ffi::c_void, punktransaction: *mut core::ffi::c_void, pcbtransactioncookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionExport_Impl::Export(this, windows_core::from_raw_borrowed(&punktransaction)) { Ok(ok__) => { @@ -1962,10 +1443,7 @@ impl ITransactionExport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransactionCookie(this: *mut core::ffi::c_void, punktransaction: *mut core::ffi::c_void, cbtransactioncookie: u32, rgbtransactioncookie: *mut u8, pcbused: *mut u32) -> windows_core::HRESULT - where - Identity: ITransactionExport_Impl, - { + unsafe extern "system" fn GetTransactionCookie(this: *mut core::ffi::c_void, punktransaction: *mut core::ffi::c_void, cbtransactioncookie: u32, rgbtransactioncookie: *mut u8, pcbused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionExport_Impl::GetTransactionCookie(this, windows_core::from_raw_borrowed(&punktransaction), core::mem::transmute_copy(&cbtransactioncookie), core::mem::transmute_copy(&rgbtransactioncookie), core::mem::transmute_copy(&pcbused)).into() } @@ -1979,20 +1457,14 @@ impl ITransactionExport_Vtbl { iid == &::IID } } -pub trait ITransactionExportFactory_Impl: Sized { +pub trait ITransactionExportFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetRemoteClassId(&self) -> windows_core::Result; fn Create(&self, cbwhereabouts: u32, rgbwhereabouts: *const u8) -> windows_core::Result; } impl windows_core::RuntimeName for ITransactionExportFactory {} impl ITransactionExportFactory_Vtbl { - pub const fn new() -> ITransactionExportFactory_Vtbl - where - Identity: ITransactionExportFactory_Impl, - { - unsafe extern "system" fn GetRemoteClassId(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITransactionExportFactory_Impl, - { + pub const fn new() -> ITransactionExportFactory_Vtbl { + unsafe extern "system" fn GetRemoteClassId(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionExportFactory_Impl::GetRemoteClassId(this) { Ok(ok__) => { @@ -2002,10 +1474,7 @@ impl ITransactionExportFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, cbwhereabouts: u32, rgbwhereabouts: *const u8, ppexport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionExportFactory_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, cbwhereabouts: u32, rgbwhereabouts: *const u8, ppexport: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionExportFactory_Impl::Create(this, core::mem::transmute_copy(&cbwhereabouts), core::mem::transmute_copy(&rgbwhereabouts)) { Ok(ok__) => { @@ -2025,19 +1494,13 @@ impl ITransactionExportFactory_Vtbl { iid == &::IID } } -pub trait ITransactionImport_Impl: Sized { +pub trait ITransactionImport_Impl: Sized + windows_core::IUnknownImpl { fn Import(&self, cbtransactioncookie: u32, rgbtransactioncookie: *const u8, piid: *const windows_core::GUID, ppvtransaction: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransactionImport {} impl ITransactionImport_Vtbl { - pub const fn new() -> ITransactionImport_Vtbl - where - Identity: ITransactionImport_Impl, - { - unsafe extern "system" fn Import(this: *mut core::ffi::c_void, cbtransactioncookie: u32, rgbtransactioncookie: *const u8, piid: *const windows_core::GUID, ppvtransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionImport_Impl, - { + pub const fn new() -> ITransactionImport_Vtbl { + unsafe extern "system" fn Import(this: *mut core::ffi::c_void, cbtransactioncookie: u32, rgbtransactioncookie: *const u8, piid: *const windows_core::GUID, ppvtransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionImport_Impl::Import(this, core::mem::transmute_copy(&cbtransactioncookie), core::mem::transmute_copy(&rgbtransactioncookie), core::mem::transmute_copy(&piid), core::mem::transmute_copy(&ppvtransaction)).into() } @@ -2047,20 +1510,14 @@ impl ITransactionImport_Vtbl { iid == &::IID } } -pub trait ITransactionImportWhereabouts_Impl: Sized { +pub trait ITransactionImportWhereabouts_Impl: Sized + windows_core::IUnknownImpl { fn GetWhereaboutsSize(&self) -> windows_core::Result; fn GetWhereabouts(&self, cbwhereabouts: u32, rgbwhereabouts: *mut u8, pcbused: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransactionImportWhereabouts {} impl ITransactionImportWhereabouts_Vtbl { - pub const fn new() -> ITransactionImportWhereabouts_Vtbl - where - Identity: ITransactionImportWhereabouts_Impl, - { - unsafe extern "system" fn GetWhereaboutsSize(this: *mut core::ffi::c_void, pcbwhereabouts: *mut u32) -> windows_core::HRESULT - where - Identity: ITransactionImportWhereabouts_Impl, - { + pub const fn new() -> ITransactionImportWhereabouts_Vtbl { + unsafe extern "system" fn GetWhereaboutsSize(this: *mut core::ffi::c_void, pcbwhereabouts: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionImportWhereabouts_Impl::GetWhereaboutsSize(this) { Ok(ok__) => { @@ -2070,10 +1527,7 @@ impl ITransactionImportWhereabouts_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWhereabouts(this: *mut core::ffi::c_void, cbwhereabouts: u32, rgbwhereabouts: *mut u8, pcbused: *mut u32) -> windows_core::HRESULT - where - Identity: ITransactionImportWhereabouts_Impl, - { + unsafe extern "system" fn GetWhereabouts(this: *mut core::ffi::c_void, cbwhereabouts: u32, rgbwhereabouts: *mut u8, pcbused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionImportWhereabouts_Impl::GetWhereabouts(this, core::mem::transmute_copy(&cbwhereabouts), core::mem::transmute_copy(&rgbwhereabouts), core::mem::transmute_copy(&pcbused)).into() } @@ -2087,19 +1541,13 @@ impl ITransactionImportWhereabouts_Vtbl { iid == &::IID } } -pub trait ITransactionLastEnlistmentAsync_Impl: Sized { +pub trait ITransactionLastEnlistmentAsync_Impl: Sized + windows_core::IUnknownImpl { fn TransactionOutcome(&self, xactstat: XACTSTAT, pboidreason: *const BOID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransactionLastEnlistmentAsync {} impl ITransactionLastEnlistmentAsync_Vtbl { - pub const fn new() -> ITransactionLastEnlistmentAsync_Vtbl - where - Identity: ITransactionLastEnlistmentAsync_Impl, - { - unsafe extern "system" fn TransactionOutcome(this: *mut core::ffi::c_void, xactstat: XACTSTAT, pboidreason: *const BOID) -> windows_core::HRESULT - where - Identity: ITransactionLastEnlistmentAsync_Impl, - { + pub const fn new() -> ITransactionLastEnlistmentAsync_Vtbl { + unsafe extern "system" fn TransactionOutcome(this: *mut core::ffi::c_void, xactstat: XACTSTAT, pboidreason: *const BOID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionLastEnlistmentAsync_Impl::TransactionOutcome(this, core::mem::transmute_copy(&xactstat), core::mem::transmute_copy(&pboidreason)).into() } @@ -2109,27 +1557,18 @@ impl ITransactionLastEnlistmentAsync_Vtbl { iid == &::IID } } -pub trait ITransactionLastResourceAsync_Impl: Sized { +pub trait ITransactionLastResourceAsync_Impl: Sized + windows_core::IUnknownImpl { fn DelegateCommit(&self, grfrm: u32) -> windows_core::Result<()>; fn ForgetRequest(&self, pnewuow: *const BOID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransactionLastResourceAsync {} impl ITransactionLastResourceAsync_Vtbl { - pub const fn new() -> ITransactionLastResourceAsync_Vtbl - where - Identity: ITransactionLastResourceAsync_Impl, - { - unsafe extern "system" fn DelegateCommit(this: *mut core::ffi::c_void, grfrm: u32) -> windows_core::HRESULT - where - Identity: ITransactionLastResourceAsync_Impl, - { + pub const fn new() -> ITransactionLastResourceAsync_Vtbl { + unsafe extern "system" fn DelegateCommit(this: *mut core::ffi::c_void, grfrm: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionLastResourceAsync_Impl::DelegateCommit(this, core::mem::transmute_copy(&grfrm)).into() } - unsafe extern "system" fn ForgetRequest(this: *mut core::ffi::c_void, pnewuow: *const BOID) -> windows_core::HRESULT - where - Identity: ITransactionLastResourceAsync_Impl, - { + unsafe extern "system" fn ForgetRequest(this: *mut core::ffi::c_void, pnewuow: *const BOID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionLastResourceAsync_Impl::ForgetRequest(this, core::mem::transmute_copy(&pnewuow)).into() } @@ -2143,27 +1582,18 @@ impl ITransactionLastResourceAsync_Vtbl { iid == &::IID } } -pub trait ITransactionOptions_Impl: Sized { +pub trait ITransactionOptions_Impl: Sized + windows_core::IUnknownImpl { fn SetOptions(&self, poptions: *const XACTOPT) -> windows_core::Result<()>; fn GetOptions(&self, poptions: *mut XACTOPT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransactionOptions {} impl ITransactionOptions_Vtbl { - pub const fn new() -> ITransactionOptions_Vtbl - where - Identity: ITransactionOptions_Impl, - { - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, poptions: *const XACTOPT) -> windows_core::HRESULT - where - Identity: ITransactionOptions_Impl, - { + pub const fn new() -> ITransactionOptions_Vtbl { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, poptions: *const XACTOPT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionOptions_Impl::SetOptions(this, core::mem::transmute_copy(&poptions)).into() } - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, poptions: *mut XACTOPT) -> windows_core::HRESULT - where - Identity: ITransactionOptions_Impl, - { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, poptions: *mut XACTOPT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionOptions_Impl::GetOptions(this, core::mem::transmute_copy(&poptions)).into() } @@ -2177,7 +1607,7 @@ impl ITransactionOptions_Vtbl { iid == &::IID } } -pub trait ITransactionOutcomeEvents_Impl: Sized { +pub trait ITransactionOutcomeEvents_Impl: Sized + windows_core::IUnknownImpl { fn Committed(&self, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn Aborted(&self, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn HeuristicDecision(&self, dwdecision: u32, pboidreason: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()>; @@ -2185,35 +1615,20 @@ pub trait ITransactionOutcomeEvents_Impl: Sized { } impl windows_core::RuntimeName for ITransactionOutcomeEvents {} impl ITransactionOutcomeEvents_Vtbl { - pub const fn new() -> ITransactionOutcomeEvents_Vtbl - where - Identity: ITransactionOutcomeEvents_Impl, - { - unsafe extern "system" fn Committed(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITransactionOutcomeEvents_Impl, - { + pub const fn new() -> ITransactionOutcomeEvents_Vtbl { + unsafe extern "system" fn Committed(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionOutcomeEvents_Impl::Committed(this, core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&pnewuow), core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn Aborted(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITransactionOutcomeEvents_Impl, - { + unsafe extern "system" fn Aborted(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionOutcomeEvents_Impl::Aborted(this, core::mem::transmute_copy(&pboidreason), core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&pnewuow), core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn HeuristicDecision(this: *mut core::ffi::c_void, dwdecision: u32, pboidreason: *const BOID, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITransactionOutcomeEvents_Impl, - { + unsafe extern "system" fn HeuristicDecision(this: *mut core::ffi::c_void, dwdecision: u32, pboidreason: *const BOID, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionOutcomeEvents_Impl::HeuristicDecision(this, core::mem::transmute_copy(&dwdecision), core::mem::transmute_copy(&pboidreason), core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn Indoubt(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionOutcomeEvents_Impl, - { + unsafe extern "system" fn Indoubt(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionOutcomeEvents_Impl::Indoubt(this).into() } @@ -2229,7 +1644,7 @@ impl ITransactionOutcomeEvents_Vtbl { iid == &::IID } } -pub trait ITransactionPhase0EnlistmentAsync_Impl: Sized { +pub trait ITransactionPhase0EnlistmentAsync_Impl: Sized + windows_core::IUnknownImpl { fn Enable(&self) -> windows_core::Result<()>; fn WaitForEnlistment(&self) -> windows_core::Result<()>; fn Phase0Done(&self) -> windows_core::Result<()>; @@ -2238,42 +1653,24 @@ pub trait ITransactionPhase0EnlistmentAsync_Impl: Sized { } impl windows_core::RuntimeName for ITransactionPhase0EnlistmentAsync {} impl ITransactionPhase0EnlistmentAsync_Vtbl { - pub const fn new() -> ITransactionPhase0EnlistmentAsync_Vtbl - where - Identity: ITransactionPhase0EnlistmentAsync_Impl, - { - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionPhase0EnlistmentAsync_Impl, - { + pub const fn new() -> ITransactionPhase0EnlistmentAsync_Vtbl { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionPhase0EnlistmentAsync_Impl::Enable(this).into() } - unsafe extern "system" fn WaitForEnlistment(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionPhase0EnlistmentAsync_Impl, - { + unsafe extern "system" fn WaitForEnlistment(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionPhase0EnlistmentAsync_Impl::WaitForEnlistment(this).into() } - unsafe extern "system" fn Phase0Done(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionPhase0EnlistmentAsync_Impl, - { + unsafe extern "system" fn Phase0Done(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionPhase0EnlistmentAsync_Impl::Phase0Done(this).into() } - unsafe extern "system" fn Unenlist(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionPhase0EnlistmentAsync_Impl, - { + unsafe extern "system" fn Unenlist(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionPhase0EnlistmentAsync_Impl::Unenlist(this).into() } - unsafe extern "system" fn GetTransaction(this: *mut core::ffi::c_void, ppitransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionPhase0EnlistmentAsync_Impl, - { + unsafe extern "system" fn GetTransaction(this: *mut core::ffi::c_void, ppitransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionPhase0EnlistmentAsync_Impl::GetTransaction(this) { Ok(ok__) => { @@ -2296,19 +1693,13 @@ impl ITransactionPhase0EnlistmentAsync_Vtbl { iid == &::IID } } -pub trait ITransactionPhase0Factory_Impl: Sized { +pub trait ITransactionPhase0Factory_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, pphase0notify: Option<&ITransactionPhase0NotifyAsync>) -> windows_core::Result; } impl windows_core::RuntimeName for ITransactionPhase0Factory {} impl ITransactionPhase0Factory_Vtbl { - pub const fn new() -> ITransactionPhase0Factory_Vtbl - where - Identity: ITransactionPhase0Factory_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, pphase0notify: *mut core::ffi::c_void, ppphase0enlistment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionPhase0Factory_Impl, - { + pub const fn new() -> ITransactionPhase0Factory_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, pphase0notify: *mut core::ffi::c_void, ppphase0enlistment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionPhase0Factory_Impl::Create(this, windows_core::from_raw_borrowed(&pphase0notify)) { Ok(ok__) => { @@ -2324,27 +1715,18 @@ impl ITransactionPhase0Factory_Vtbl { iid == &::IID } } -pub trait ITransactionPhase0NotifyAsync_Impl: Sized { +pub trait ITransactionPhase0NotifyAsync_Impl: Sized + windows_core::IUnknownImpl { fn Phase0Request(&self, fabortinghint: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn EnlistCompleted(&self, status: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransactionPhase0NotifyAsync {} impl ITransactionPhase0NotifyAsync_Vtbl { - pub const fn new() -> ITransactionPhase0NotifyAsync_Vtbl - where - Identity: ITransactionPhase0NotifyAsync_Impl, - { - unsafe extern "system" fn Phase0Request(this: *mut core::ffi::c_void, fabortinghint: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITransactionPhase0NotifyAsync_Impl, - { + pub const fn new() -> ITransactionPhase0NotifyAsync_Vtbl { + unsafe extern "system" fn Phase0Request(this: *mut core::ffi::c_void, fabortinghint: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionPhase0NotifyAsync_Impl::Phase0Request(this, core::mem::transmute_copy(&fabortinghint)).into() } - unsafe extern "system" fn EnlistCompleted(this: *mut core::ffi::c_void, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITransactionPhase0NotifyAsync_Impl, - { + unsafe extern "system" fn EnlistCompleted(this: *mut core::ffi::c_void, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionPhase0NotifyAsync_Impl::EnlistCompleted(this, core::mem::transmute_copy(&status)).into() } @@ -2358,7 +1740,7 @@ impl ITransactionPhase0NotifyAsync_Vtbl { iid == &::IID } } -pub trait ITransactionReceiver_Impl: Sized { +pub trait ITransactionReceiver_Impl: Sized + windows_core::IUnknownImpl { fn UnmarshalPropagationToken(&self, cbtoken: u32, rgbtoken: *const u8) -> windows_core::Result; fn GetReturnTokenSize(&self) -> windows_core::Result; fn MarshalReturnToken(&self, cbreturntoken: u32, rgbreturntoken: *mut u8, pcbused: *mut u32) -> windows_core::Result<()>; @@ -2366,14 +1748,8 @@ pub trait ITransactionReceiver_Impl: Sized { } impl windows_core::RuntimeName for ITransactionReceiver {} impl ITransactionReceiver_Vtbl { - pub const fn new() -> ITransactionReceiver_Vtbl - where - Identity: ITransactionReceiver_Impl, - { - unsafe extern "system" fn UnmarshalPropagationToken(this: *mut core::ffi::c_void, cbtoken: u32, rgbtoken: *const u8, pptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionReceiver_Impl, - { + pub const fn new() -> ITransactionReceiver_Vtbl { + unsafe extern "system" fn UnmarshalPropagationToken(this: *mut core::ffi::c_void, cbtoken: u32, rgbtoken: *const u8, pptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionReceiver_Impl::UnmarshalPropagationToken(this, core::mem::transmute_copy(&cbtoken), core::mem::transmute_copy(&rgbtoken)) { Ok(ok__) => { @@ -2383,10 +1759,7 @@ impl ITransactionReceiver_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReturnTokenSize(this: *mut core::ffi::c_void, pcbreturntoken: *mut u32) -> windows_core::HRESULT - where - Identity: ITransactionReceiver_Impl, - { + unsafe extern "system" fn GetReturnTokenSize(this: *mut core::ffi::c_void, pcbreturntoken: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionReceiver_Impl::GetReturnTokenSize(this) { Ok(ok__) => { @@ -2396,17 +1769,11 @@ impl ITransactionReceiver_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MarshalReturnToken(this: *mut core::ffi::c_void, cbreturntoken: u32, rgbreturntoken: *mut u8, pcbused: *mut u32) -> windows_core::HRESULT - where - Identity: ITransactionReceiver_Impl, - { + unsafe extern "system" fn MarshalReturnToken(this: *mut core::ffi::c_void, cbreturntoken: u32, rgbreturntoken: *mut u8, pcbused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionReceiver_Impl::MarshalReturnToken(this, core::mem::transmute_copy(&cbreturntoken), core::mem::transmute_copy(&rgbreturntoken), core::mem::transmute_copy(&pcbused)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionReceiver_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionReceiver_Impl::Reset(this).into() } @@ -2422,19 +1789,13 @@ impl ITransactionReceiver_Vtbl { iid == &::IID } } -pub trait ITransactionReceiverFactory_Impl: Sized { +pub trait ITransactionReceiverFactory_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITransactionReceiverFactory {} impl ITransactionReceiverFactory_Vtbl { - pub const fn new() -> ITransactionReceiverFactory_Vtbl - where - Identity: ITransactionReceiverFactory_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, ppreceiver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionReceiverFactory_Impl, - { + pub const fn new() -> ITransactionReceiverFactory_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, ppreceiver: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionReceiverFactory_Impl::Create(this) { Ok(ok__) => { @@ -2450,7 +1811,7 @@ impl ITransactionReceiverFactory_Vtbl { iid == &::IID } } -pub trait ITransactionResource_Impl: Sized { +pub trait ITransactionResource_Impl: Sized + windows_core::IUnknownImpl { fn PrepareRequest(&self, fretaining: super::super::Foundation::BOOL, grfrm: u32, fwantmoniker: super::super::Foundation::BOOL, fsinglephase: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn CommitRequest(&self, grfrm: u32, pnewuow: *const BOID) -> windows_core::Result<()>; fn AbortRequest(&self, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> windows_core::Result<()>; @@ -2458,35 +1819,20 @@ pub trait ITransactionResource_Impl: Sized { } impl windows_core::RuntimeName for ITransactionResource {} impl ITransactionResource_Vtbl { - pub const fn new() -> ITransactionResource_Vtbl - where - Identity: ITransactionResource_Impl, - { - unsafe extern "system" fn PrepareRequest(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, grfrm: u32, fwantmoniker: super::super::Foundation::BOOL, fsinglephase: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITransactionResource_Impl, - { + pub const fn new() -> ITransactionResource_Vtbl { + unsafe extern "system" fn PrepareRequest(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, grfrm: u32, fwantmoniker: super::super::Foundation::BOOL, fsinglephase: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResource_Impl::PrepareRequest(this, core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&grfrm), core::mem::transmute_copy(&fwantmoniker), core::mem::transmute_copy(&fsinglephase)).into() } - unsafe extern "system" fn CommitRequest(this: *mut core::ffi::c_void, grfrm: u32, pnewuow: *const BOID) -> windows_core::HRESULT - where - Identity: ITransactionResource_Impl, - { + unsafe extern "system" fn CommitRequest(this: *mut core::ffi::c_void, grfrm: u32, pnewuow: *const BOID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResource_Impl::CommitRequest(this, core::mem::transmute_copy(&grfrm), core::mem::transmute_copy(&pnewuow)).into() } - unsafe extern "system" fn AbortRequest(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> windows_core::HRESULT - where - Identity: ITransactionResource_Impl, - { + unsafe extern "system" fn AbortRequest(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResource_Impl::AbortRequest(this, core::mem::transmute_copy(&pboidreason), core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&pnewuow)).into() } - unsafe extern "system" fn TMDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionResource_Impl, - { + unsafe extern "system" fn TMDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResource_Impl::TMDown(this).into() } @@ -2502,7 +1848,7 @@ impl ITransactionResource_Vtbl { iid == &::IID } } -pub trait ITransactionResourceAsync_Impl: Sized { +pub trait ITransactionResourceAsync_Impl: Sized + windows_core::IUnknownImpl { fn PrepareRequest(&self, fretaining: super::super::Foundation::BOOL, grfrm: u32, fwantmoniker: super::super::Foundation::BOOL, fsinglephase: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn CommitRequest(&self, grfrm: u32, pnewuow: *const BOID) -> windows_core::Result<()>; fn AbortRequest(&self, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> windows_core::Result<()>; @@ -2510,35 +1856,20 @@ pub trait ITransactionResourceAsync_Impl: Sized { } impl windows_core::RuntimeName for ITransactionResourceAsync {} impl ITransactionResourceAsync_Vtbl { - pub const fn new() -> ITransactionResourceAsync_Vtbl - where - Identity: ITransactionResourceAsync_Impl, - { - unsafe extern "system" fn PrepareRequest(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, grfrm: u32, fwantmoniker: super::super::Foundation::BOOL, fsinglephase: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITransactionResourceAsync_Impl, - { + pub const fn new() -> ITransactionResourceAsync_Vtbl { + unsafe extern "system" fn PrepareRequest(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, grfrm: u32, fwantmoniker: super::super::Foundation::BOOL, fsinglephase: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResourceAsync_Impl::PrepareRequest(this, core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&grfrm), core::mem::transmute_copy(&fwantmoniker), core::mem::transmute_copy(&fsinglephase)).into() } - unsafe extern "system" fn CommitRequest(this: *mut core::ffi::c_void, grfrm: u32, pnewuow: *const BOID) -> windows_core::HRESULT - where - Identity: ITransactionResourceAsync_Impl, - { + unsafe extern "system" fn CommitRequest(this: *mut core::ffi::c_void, grfrm: u32, pnewuow: *const BOID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResourceAsync_Impl::CommitRequest(this, core::mem::transmute_copy(&grfrm), core::mem::transmute_copy(&pnewuow)).into() } - unsafe extern "system" fn AbortRequest(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> windows_core::HRESULT - where - Identity: ITransactionResourceAsync_Impl, - { + unsafe extern "system" fn AbortRequest(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResourceAsync_Impl::AbortRequest(this, core::mem::transmute_copy(&pboidreason), core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&pnewuow)).into() } - unsafe extern "system" fn TMDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionResourceAsync_Impl, - { + unsafe extern "system" fn TMDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResourceAsync_Impl::TMDown(this).into() } @@ -2554,7 +1885,7 @@ impl ITransactionResourceAsync_Vtbl { iid == &::IID } } -pub trait ITransactionTransmitter_Impl: Sized { +pub trait ITransactionTransmitter_Impl: Sized + windows_core::IUnknownImpl { fn Set(&self, ptransaction: Option<&ITransaction>) -> windows_core::Result<()>; fn GetPropagationTokenSize(&self) -> windows_core::Result; fn MarshalPropagationToken(&self, cbtoken: u32, rgbtoken: *mut u8, pcbused: *mut u32) -> windows_core::Result<()>; @@ -2563,21 +1894,12 @@ pub trait ITransactionTransmitter_Impl: Sized { } impl windows_core::RuntimeName for ITransactionTransmitter {} impl ITransactionTransmitter_Vtbl { - pub const fn new() -> ITransactionTransmitter_Vtbl - where - Identity: ITransactionTransmitter_Impl, - { - unsafe extern "system" fn Set(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionTransmitter_Impl, - { + pub const fn new() -> ITransactionTransmitter_Vtbl { + unsafe extern "system" fn Set(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionTransmitter_Impl::Set(this, windows_core::from_raw_borrowed(&ptransaction)).into() } - unsafe extern "system" fn GetPropagationTokenSize(this: *mut core::ffi::c_void, pcbtoken: *mut u32) -> windows_core::HRESULT - where - Identity: ITransactionTransmitter_Impl, - { + unsafe extern "system" fn GetPropagationTokenSize(this: *mut core::ffi::c_void, pcbtoken: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionTransmitter_Impl::GetPropagationTokenSize(this) { Ok(ok__) => { @@ -2587,24 +1909,15 @@ impl ITransactionTransmitter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MarshalPropagationToken(this: *mut core::ffi::c_void, cbtoken: u32, rgbtoken: *mut u8, pcbused: *mut u32) -> windows_core::HRESULT - where - Identity: ITransactionTransmitter_Impl, - { + unsafe extern "system" fn MarshalPropagationToken(this: *mut core::ffi::c_void, cbtoken: u32, rgbtoken: *mut u8, pcbused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionTransmitter_Impl::MarshalPropagationToken(this, core::mem::transmute_copy(&cbtoken), core::mem::transmute_copy(&rgbtoken), core::mem::transmute_copy(&pcbused)).into() } - unsafe extern "system" fn UnmarshalReturnToken(this: *mut core::ffi::c_void, cbreturntoken: u32, rgbreturntoken: *const u8) -> windows_core::HRESULT - where - Identity: ITransactionTransmitter_Impl, - { + unsafe extern "system" fn UnmarshalReturnToken(this: *mut core::ffi::c_void, cbreturntoken: u32, rgbreturntoken: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionTransmitter_Impl::UnmarshalReturnToken(this, core::mem::transmute_copy(&cbreturntoken), core::mem::transmute_copy(&rgbreturntoken)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionTransmitter_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionTransmitter_Impl::Reset(this).into() } @@ -2621,19 +1934,13 @@ impl ITransactionTransmitter_Vtbl { iid == &::IID } } -pub trait ITransactionTransmitterFactory_Impl: Sized { +pub trait ITransactionTransmitterFactory_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITransactionTransmitterFactory {} impl ITransactionTransmitterFactory_Vtbl { - pub const fn new() -> ITransactionTransmitterFactory_Vtbl - where - Identity: ITransactionTransmitterFactory_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, pptransmitter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionTransmitterFactory_Impl, - { + pub const fn new() -> ITransactionTransmitterFactory_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, pptransmitter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionTransmitterFactory_Impl::Create(this) { Ok(ok__) => { @@ -2649,19 +1956,13 @@ impl ITransactionTransmitterFactory_Vtbl { iid == &::IID } } -pub trait ITransactionVoterBallotAsync2_Impl: Sized { +pub trait ITransactionVoterBallotAsync2_Impl: Sized + windows_core::IUnknownImpl { fn VoteRequestDone(&self, hr: windows_core::HRESULT, pboidreason: *const BOID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransactionVoterBallotAsync2 {} impl ITransactionVoterBallotAsync2_Vtbl { - pub const fn new() -> ITransactionVoterBallotAsync2_Vtbl - where - Identity: ITransactionVoterBallotAsync2_Impl, - { - unsafe extern "system" fn VoteRequestDone(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, pboidreason: *const BOID) -> windows_core::HRESULT - where - Identity: ITransactionVoterBallotAsync2_Impl, - { + pub const fn new() -> ITransactionVoterBallotAsync2_Vtbl { + unsafe extern "system" fn VoteRequestDone(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, pboidreason: *const BOID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionVoterBallotAsync2_Impl::VoteRequestDone(this, core::mem::transmute_copy(&hr), core::mem::transmute_copy(&pboidreason)).into() } @@ -2671,19 +1972,13 @@ impl ITransactionVoterBallotAsync2_Vtbl { iid == &::IID } } -pub trait ITransactionVoterFactory2_Impl: Sized { +pub trait ITransactionVoterFactory2_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, ptransaction: Option<&ITransaction>, pvoternotify: Option<&ITransactionVoterNotifyAsync2>) -> windows_core::Result; } impl windows_core::RuntimeName for ITransactionVoterFactory2 {} impl ITransactionVoterFactory2_Vtbl { - pub const fn new() -> ITransactionVoterFactory2_Vtbl - where - Identity: ITransactionVoterFactory2_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void, pvoternotify: *mut core::ffi::c_void, ppvoterballot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionVoterFactory2_Impl, - { + pub const fn new() -> ITransactionVoterFactory2_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, ptransaction: *mut core::ffi::c_void, pvoternotify: *mut core::ffi::c_void, ppvoterballot: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionVoterFactory2_Impl::Create(this, windows_core::from_raw_borrowed(&ptransaction), windows_core::from_raw_borrowed(&pvoternotify)) { Ok(ok__) => { @@ -2704,14 +1999,8 @@ pub trait ITransactionVoterNotifyAsync2_Impl: Sized + ITransactionOutcomeEvents_ } impl windows_core::RuntimeName for ITransactionVoterNotifyAsync2 {} impl ITransactionVoterNotifyAsync2_Vtbl { - pub const fn new() -> ITransactionVoterNotifyAsync2_Vtbl - where - Identity: ITransactionVoterNotifyAsync2_Impl, - { - unsafe extern "system" fn VoteRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionVoterNotifyAsync2_Impl, - { + pub const fn new() -> ITransactionVoterNotifyAsync2_Vtbl { + unsafe extern "system" fn VoteRequest(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionVoterNotifyAsync2_Impl::VoteRequest(this).into() } @@ -2721,27 +2010,18 @@ impl ITransactionVoterNotifyAsync2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IXAConfig_Impl: Sized { +pub trait IXAConfig_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, clsidhelperdll: &windows_core::GUID) -> windows_core::Result<()>; fn Terminate(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXAConfig {} impl IXAConfig_Vtbl { - pub const fn new() -> IXAConfig_Vtbl - where - Identity: IXAConfig_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, clsidhelperdll: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IXAConfig_Impl, - { + pub const fn new() -> IXAConfig_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, clsidhelperdll: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAConfig_Impl::Initialize(this, core::mem::transmute(&clsidhelperdll)).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXAConfig_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAConfig_Impl::Terminate(this).into() } @@ -2755,19 +2035,13 @@ impl IXAConfig_Vtbl { iid == &::IID } } -pub trait IXAObtainRMInfo_Impl: Sized { +pub trait IXAObtainRMInfo_Impl: Sized + windows_core::IUnknownImpl { fn ObtainRMInfo(&self, pirmhelper: Option<&IRMHelper>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IXAObtainRMInfo {} impl IXAObtainRMInfo_Vtbl { - pub const fn new() -> IXAObtainRMInfo_Vtbl - where - Identity: IXAObtainRMInfo_Impl, - { - unsafe extern "system" fn ObtainRMInfo(this: *mut core::ffi::c_void, pirmhelper: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXAObtainRMInfo_Impl, - { + pub const fn new() -> IXAObtainRMInfo_Vtbl { + unsafe extern "system" fn ObtainRMInfo(this: *mut core::ffi::c_void, pirmhelper: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAObtainRMInfo_Impl::ObtainRMInfo(this, windows_core::from_raw_borrowed(&pirmhelper)).into() } @@ -2777,19 +2051,13 @@ impl IXAObtainRMInfo_Vtbl { iid == &::IID } } -pub trait IXATransLookup_Impl: Sized { +pub trait IXATransLookup_Impl: Sized + windows_core::IUnknownImpl { fn Lookup(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IXATransLookup {} impl IXATransLookup_Vtbl { - pub const fn new() -> IXATransLookup_Vtbl - where - Identity: IXATransLookup_Impl, - { - unsafe extern "system" fn Lookup(this: *mut core::ffi::c_void, pptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXATransLookup_Impl, - { + pub const fn new() -> IXATransLookup_Vtbl { + unsafe extern "system" fn Lookup(this: *mut core::ffi::c_void, pptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXATransLookup_Impl::Lookup(this) { Ok(ok__) => { @@ -2805,19 +2073,13 @@ impl IXATransLookup_Vtbl { iid == &::IID } } -pub trait IXATransLookup2_Impl: Sized { +pub trait IXATransLookup2_Impl: Sized + windows_core::IUnknownImpl { fn Lookup(&self, pxid: *const XID) -> windows_core::Result; } impl windows_core::RuntimeName for IXATransLookup2 {} impl IXATransLookup2_Vtbl { - pub const fn new() -> IXATransLookup2_Vtbl - where - Identity: IXATransLookup2_Impl, - { - unsafe extern "system" fn Lookup(this: *mut core::ffi::c_void, pxid: *const XID, pptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IXATransLookup2_Impl, - { + pub const fn new() -> IXATransLookup2_Vtbl { + unsafe extern "system" fn Lookup(this: *mut core::ffi::c_void, pxid: *const XID, pptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXATransLookup2_Impl::Lookup(this, core::mem::transmute_copy(&pxid)) { Ok(ok__) => { 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 09293a76c3..8cee6cd8d6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/impl.rs @@ -12,56 +12,32 @@ pub trait ISensLogon_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISensLogon {} #[cfg(feature = "Win32_System_Com")] impl ISensLogon_Vtbl { - pub const fn new() -> ISensLogon_Vtbl - where - Identity: ISensLogon_Impl, - { - unsafe extern "system" fn Logon(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISensLogon_Impl, - { + pub const fn new() -> ISensLogon_Vtbl { + unsafe extern "system" fn Logon(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon_Impl::Logon(this, core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn Logoff(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISensLogon_Impl, - { + unsafe extern "system" fn Logoff(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon_Impl::Logoff(this, core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn StartShell(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISensLogon_Impl, - { + unsafe extern "system" fn StartShell(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon_Impl::StartShell(this, core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn DisplayLock(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISensLogon_Impl, - { + unsafe extern "system" fn DisplayLock(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon_Impl::DisplayLock(this, core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn DisplayUnlock(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISensLogon_Impl, - { + unsafe extern "system" fn DisplayUnlock(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon_Impl::DisplayUnlock(this, core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn StartScreenSaver(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISensLogon_Impl, - { + unsafe extern "system" fn StartScreenSaver(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon_Impl::StartScreenSaver(this, core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn StopScreenSaver(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISensLogon_Impl, - { + unsafe extern "system" fn StopScreenSaver(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon_Impl::StopScreenSaver(this, core::mem::transmute(&bstrusername)).into() } @@ -92,42 +68,24 @@ pub trait ISensLogon2_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISensLogon2 {} #[cfg(feature = "Win32_System_Com")] impl ISensLogon2_Vtbl { - pub const fn new() -> ISensLogon2_Vtbl - where - Identity: ISensLogon2_Impl, - { - unsafe extern "system" fn Logon(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, dwsessionid: u32) -> windows_core::HRESULT - where - Identity: ISensLogon2_Impl, - { + pub const fn new() -> ISensLogon2_Vtbl { + unsafe extern "system" fn Logon(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, dwsessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon2_Impl::Logon(this, core::mem::transmute(&bstrusername), core::mem::transmute_copy(&dwsessionid)).into() } - unsafe extern "system" fn Logoff(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, dwsessionid: u32) -> windows_core::HRESULT - where - Identity: ISensLogon2_Impl, - { + unsafe extern "system" fn Logoff(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, dwsessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon2_Impl::Logoff(this, core::mem::transmute(&bstrusername), core::mem::transmute_copy(&dwsessionid)).into() } - unsafe extern "system" fn SessionDisconnect(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, dwsessionid: u32) -> windows_core::HRESULT - where - Identity: ISensLogon2_Impl, - { + unsafe extern "system" fn SessionDisconnect(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, dwsessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon2_Impl::SessionDisconnect(this, core::mem::transmute(&bstrusername), core::mem::transmute_copy(&dwsessionid)).into() } - unsafe extern "system" fn SessionReconnect(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, dwsessionid: u32) -> windows_core::HRESULT - where - Identity: ISensLogon2_Impl, - { + unsafe extern "system" fn SessionReconnect(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, dwsessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon2_Impl::SessionReconnect(this, core::mem::transmute(&bstrusername), core::mem::transmute_copy(&dwsessionid)).into() } - unsafe extern "system" fn PostShell(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, dwsessionid: u32) -> windows_core::HRESULT - where - Identity: ISensLogon2_Impl, - { + unsafe extern "system" fn PostShell(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit, dwsessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensLogon2_Impl::PostShell(this, core::mem::transmute(&bstrusername), core::mem::transmute_copy(&dwsessionid)).into() } @@ -156,42 +114,24 @@ pub trait ISensNetwork_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISensNetwork {} #[cfg(feature = "Win32_System_Com")] impl ISensNetwork_Vtbl { - pub const fn new() -> ISensNetwork_Vtbl - where - Identity: ISensNetwork_Impl, - { - unsafe extern "system" fn ConnectionMade(this: *mut core::ffi::c_void, bstrconnection: core::mem::MaybeUninit, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> windows_core::HRESULT - where - Identity: ISensNetwork_Impl, - { + pub const fn new() -> ISensNetwork_Vtbl { + unsafe extern "system" fn ConnectionMade(this: *mut core::ffi::c_void, bstrconnection: core::mem::MaybeUninit, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensNetwork_Impl::ConnectionMade(this, core::mem::transmute(&bstrconnection), core::mem::transmute_copy(&ultype), core::mem::transmute_copy(&lpqocinfo)).into() } - unsafe extern "system" fn ConnectionMadeNoQOCInfo(this: *mut core::ffi::c_void, bstrconnection: core::mem::MaybeUninit, ultype: u32) -> windows_core::HRESULT - where - Identity: ISensNetwork_Impl, - { + unsafe extern "system" fn ConnectionMadeNoQOCInfo(this: *mut core::ffi::c_void, bstrconnection: core::mem::MaybeUninit, ultype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensNetwork_Impl::ConnectionMadeNoQOCInfo(this, core::mem::transmute(&bstrconnection), core::mem::transmute_copy(&ultype)).into() } - unsafe extern "system" fn ConnectionLost(this: *mut core::ffi::c_void, bstrconnection: core::mem::MaybeUninit, ultype: SENS_CONNECTION_TYPE) -> windows_core::HRESULT - where - Identity: ISensNetwork_Impl, - { + unsafe extern "system" fn ConnectionLost(this: *mut core::ffi::c_void, bstrconnection: core::mem::MaybeUninit, ultype: SENS_CONNECTION_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensNetwork_Impl::ConnectionLost(this, core::mem::transmute(&bstrconnection), core::mem::transmute_copy(&ultype)).into() } - unsafe extern "system" fn DestinationReachable(this: *mut core::ffi::c_void, bstrdestination: core::mem::MaybeUninit, bstrconnection: core::mem::MaybeUninit, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> windows_core::HRESULT - where - Identity: ISensNetwork_Impl, - { + unsafe extern "system" fn DestinationReachable(this: *mut core::ffi::c_void, bstrdestination: core::mem::MaybeUninit, bstrconnection: core::mem::MaybeUninit, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensNetwork_Impl::DestinationReachable(this, core::mem::transmute(&bstrdestination), core::mem::transmute(&bstrconnection), core::mem::transmute_copy(&ultype), core::mem::transmute_copy(&lpqocinfo)).into() } - unsafe extern "system" fn DestinationReachableNoQOCInfo(this: *mut core::ffi::c_void, bstrdestination: core::mem::MaybeUninit, bstrconnection: core::mem::MaybeUninit, ultype: u32) -> windows_core::HRESULT - where - Identity: ISensNetwork_Impl, - { + unsafe extern "system" fn DestinationReachableNoQOCInfo(this: *mut core::ffi::c_void, bstrdestination: core::mem::MaybeUninit, bstrconnection: core::mem::MaybeUninit, ultype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensNetwork_Impl::DestinationReachableNoQOCInfo(this, core::mem::transmute(&bstrdestination), core::mem::transmute(&bstrconnection), core::mem::transmute_copy(&ultype)).into() } @@ -218,28 +158,16 @@ pub trait ISensOnNow_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISensOnNow {} #[cfg(feature = "Win32_System_Com")] impl ISensOnNow_Vtbl { - pub const fn new() -> ISensOnNow_Vtbl - where - Identity: ISensOnNow_Impl, - { - unsafe extern "system" fn OnACPower(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISensOnNow_Impl, - { + pub const fn new() -> ISensOnNow_Vtbl { + unsafe extern "system" fn OnACPower(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensOnNow_Impl::OnACPower(this).into() } - unsafe extern "system" fn OnBatteryPower(this: *mut core::ffi::c_void, dwbatterylifepercent: u32) -> windows_core::HRESULT - where - Identity: ISensOnNow_Impl, - { + unsafe extern "system" fn OnBatteryPower(this: *mut core::ffi::c_void, dwbatterylifepercent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensOnNow_Impl::OnBatteryPower(this, core::mem::transmute_copy(&dwbatterylifepercent)).into() } - unsafe extern "system" fn BatteryLow(this: *mut core::ffi::c_void, dwbatterylifepercent: u32) -> windows_core::HRESULT - where - Identity: ISensOnNow_Impl, - { + unsafe extern "system" fn BatteryLow(this: *mut core::ffi::c_void, dwbatterylifepercent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensOnNow_Impl::BatteryLow(this, core::mem::transmute_copy(&dwbatterylifepercent)).into() } 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 ea7fd751dd..e85179c87e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_System_Registry")] -pub trait IGPEInformation_Impl: Sized { +pub trait IGPEInformation_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::Result<()>; fn GetDisplayName(&self, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::Result<()>; fn GetRegistryKey(&self, dwsection: u32, hkey: *mut super::Registry::HKEY) -> windows_core::Result<()>; @@ -14,70 +14,40 @@ pub trait IGPEInformation_Impl: Sized { impl windows_core::RuntimeName for IGPEInformation {} #[cfg(feature = "Win32_System_Registry")] impl IGPEInformation_Vtbl { - pub const fn new() -> IGPEInformation_Vtbl - where - Identity: IGPEInformation_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT - where - Identity: IGPEInformation_Impl, - { + pub const fn new() -> IGPEInformation_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPEInformation_Impl::GetName(this, core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchmaxlength)).into() } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT - where - Identity: IGPEInformation_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPEInformation_Impl::GetDisplayName(this, core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchmaxlength)).into() } - unsafe extern "system" fn GetRegistryKey(this: *mut core::ffi::c_void, dwsection: u32, hkey: *mut super::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IGPEInformation_Impl, - { + unsafe extern "system" fn GetRegistryKey(this: *mut core::ffi::c_void, dwsection: u32, hkey: *mut super::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPEInformation_Impl::GetRegistryKey(this, core::mem::transmute_copy(&dwsection), core::mem::transmute_copy(&hkey)).into() } - unsafe extern "system" fn GetDSPath(this: *mut core::ffi::c_void, dwsection: u32, pszpath: windows_core::PWSTR, cchmaxpath: i32) -> windows_core::HRESULT - where - Identity: IGPEInformation_Impl, - { + unsafe extern "system" fn GetDSPath(this: *mut core::ffi::c_void, dwsection: u32, pszpath: windows_core::PWSTR, cchmaxpath: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPEInformation_Impl::GetDSPath(this, core::mem::transmute_copy(&dwsection), core::mem::transmute_copy(&pszpath), core::mem::transmute_copy(&cchmaxpath)).into() } - unsafe extern "system" fn GetFileSysPath(this: *mut core::ffi::c_void, dwsection: u32, pszpath: windows_core::PWSTR, cchmaxpath: i32) -> windows_core::HRESULT - where - Identity: IGPEInformation_Impl, - { + unsafe extern "system" fn GetFileSysPath(this: *mut core::ffi::c_void, dwsection: u32, pszpath: windows_core::PWSTR, cchmaxpath: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPEInformation_Impl::GetFileSysPath(this, core::mem::transmute_copy(&dwsection), core::mem::transmute_copy(&pszpath), core::mem::transmute_copy(&cchmaxpath)).into() } - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, dwoptions: *mut u32) -> windows_core::HRESULT - where - Identity: IGPEInformation_Impl, - { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, dwoptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPEInformation_Impl::GetOptions(this, core::mem::transmute_copy(&dwoptions)).into() } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, gpotype: *mut GROUP_POLICY_OBJECT_TYPE) -> windows_core::HRESULT - where - Identity: IGPEInformation_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, gpotype: *mut GROUP_POLICY_OBJECT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPEInformation_Impl::GetType(this, core::mem::transmute_copy(&gpotype)).into() } - unsafe extern "system" fn GetHint(this: *mut core::ffi::c_void, gphint: *mut GROUP_POLICY_HINT_TYPE) -> windows_core::HRESULT - where - Identity: IGPEInformation_Impl, - { + unsafe extern "system" fn GetHint(this: *mut core::ffi::c_void, gphint: *mut GROUP_POLICY_HINT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPEInformation_Impl::GetHint(this, core::mem::transmute_copy(&gphint)).into() } - unsafe extern "system" fn PolicyChanged(this: *mut core::ffi::c_void, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut windows_core::GUID, pguidsnapin: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IGPEInformation_Impl, - { + unsafe extern "system" fn PolicyChanged(this: *mut core::ffi::c_void, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut windows_core::GUID, pguidsnapin: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPEInformation_Impl::PolicyChanged(this, core::mem::transmute_copy(&bmachine), core::mem::transmute_copy(&badd), core::mem::transmute_copy(&pguidextension), core::mem::transmute_copy(&pguidsnapin)).into() } @@ -117,14 +87,8 @@ pub trait IGPM_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPM {} #[cfg(feature = "Win32_System_Com")] impl IGPM_Vtbl { - pub const fn new() -> IGPM_Vtbl - where - Identity: IGPM_Impl, - { - unsafe extern "system" fn GetDomain(this: *mut core::ffi::c_void, bstrdomain: core::mem::MaybeUninit, bstrdomaincontroller: core::mem::MaybeUninit, ldcflags: i32, pigpmdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + pub const fn new() -> IGPM_Vtbl { + unsafe extern "system" fn GetDomain(this: *mut core::ffi::c_void, bstrdomain: core::mem::MaybeUninit, bstrdomaincontroller: core::mem::MaybeUninit, ldcflags: i32, pigpmdomain: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::GetDomain(this, core::mem::transmute(&bstrdomain), core::mem::transmute(&bstrdomaincontroller), core::mem::transmute_copy(&ldcflags)) { Ok(ok__) => { @@ -134,10 +98,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBackupDir(this: *mut core::ffi::c_void, bstrbackupdir: core::mem::MaybeUninit, pigpmbackupdir: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn GetBackupDir(this: *mut core::ffi::c_void, bstrbackupdir: core::mem::MaybeUninit, pigpmbackupdir: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::GetBackupDir(this, core::mem::transmute(&bstrbackupdir)) { Ok(ok__) => { @@ -147,10 +108,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSitesContainer(this: *mut core::ffi::c_void, bstrforest: core::mem::MaybeUninit, bstrdomain: core::mem::MaybeUninit, bstrdomaincontroller: core::mem::MaybeUninit, ldcflags: i32, ppigpmsitescontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn GetSitesContainer(this: *mut core::ffi::c_void, bstrforest: core::mem::MaybeUninit, bstrdomain: core::mem::MaybeUninit, bstrdomaincontroller: core::mem::MaybeUninit, ldcflags: i32, ppigpmsitescontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::GetSitesContainer(this, core::mem::transmute(&bstrforest), core::mem::transmute(&bstrdomain), core::mem::transmute(&bstrdomaincontroller), core::mem::transmute_copy(&ldcflags)) { Ok(ok__) => { @@ -160,10 +118,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRSOP(this: *mut core::ffi::c_void, gpmrsopmode: GPMRSOPMode, bstrnamespace: core::mem::MaybeUninit, lflags: i32, ppigpmrsop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn GetRSOP(this: *mut core::ffi::c_void, gpmrsopmode: GPMRSOPMode, bstrnamespace: core::mem::MaybeUninit, lflags: i32, ppigpmrsop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::GetRSOP(this, core::mem::transmute_copy(&gpmrsopmode), core::mem::transmute(&bstrnamespace), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -173,10 +128,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePermission(this: *mut core::ffi::c_void, bstrtrustee: core::mem::MaybeUninit, perm: GPMPermissionType, binheritable: super::super::Foundation::VARIANT_BOOL, ppperm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn CreatePermission(this: *mut core::ffi::c_void, bstrtrustee: core::mem::MaybeUninit, perm: GPMPermissionType, binheritable: super::super::Foundation::VARIANT_BOOL, ppperm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::CreatePermission(this, core::mem::transmute(&bstrtrustee), core::mem::transmute_copy(&perm), core::mem::transmute_copy(&binheritable)) { Ok(ok__) => { @@ -186,10 +138,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSearchCriteria(this: *mut core::ffi::c_void, ppigpmsearchcriteria: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn CreateSearchCriteria(this: *mut core::ffi::c_void, ppigpmsearchcriteria: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::CreateSearchCriteria(this) { Ok(ok__) => { @@ -199,10 +148,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTrustee(this: *mut core::ffi::c_void, bstrtrustee: core::mem::MaybeUninit, ppigpmtrustee: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn CreateTrustee(this: *mut core::ffi::c_void, bstrtrustee: core::mem::MaybeUninit, ppigpmtrustee: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::CreateTrustee(this, core::mem::transmute(&bstrtrustee)) { Ok(ok__) => { @@ -212,10 +158,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClientSideExtensions(this: *mut core::ffi::c_void, ppigpmcsecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn GetClientSideExtensions(this: *mut core::ffi::c_void, ppigpmcsecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::GetClientSideExtensions(this) { Ok(ok__) => { @@ -225,10 +168,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConstants(this: *mut core::ffi::c_void, ppigpmconstants: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn GetConstants(this: *mut core::ffi::c_void, ppigpmconstants: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::GetConstants(this) { Ok(ok__) => { @@ -238,10 +178,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMigrationTable(this: *mut core::ffi::c_void, bstrmigrationtablepath: core::mem::MaybeUninit, ppmigrationtable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn GetMigrationTable(this: *mut core::ffi::c_void, bstrmigrationtablepath: core::mem::MaybeUninit, ppmigrationtable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::GetMigrationTable(this, core::mem::transmute(&bstrmigrationtablepath)) { Ok(ok__) => { @@ -251,10 +188,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateMigrationTable(this: *mut core::ffi::c_void, ppmigrationtable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn CreateMigrationTable(this: *mut core::ffi::c_void, ppmigrationtable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM_Impl::CreateMigrationTable(this) { Ok(ok__) => { @@ -264,10 +198,7 @@ impl IGPM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeReporting(this: *mut core::ffi::c_void, bstradmpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPM_Impl, - { + unsafe extern "system" fn InitializeReporting(this: *mut core::ffi::c_void, bstradmpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPM_Impl::InitializeReporting(this, core::mem::transmute(&bstradmpath)).into() } @@ -300,14 +231,8 @@ pub trait IGPM2_Impl: Sized + IGPM_Impl { impl windows_core::RuntimeName for IGPM2 {} #[cfg(feature = "Win32_System_Com")] impl IGPM2_Vtbl { - pub const fn new() -> IGPM2_Vtbl - where - Identity: IGPM2_Impl, - { - unsafe extern "system" fn GetBackupDirEx(this: *mut core::ffi::c_void, bstrbackupdir: core::mem::MaybeUninit, backupdirtype: GPMBackupType, ppigpmbackupdirex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPM2_Impl, - { + pub const fn new() -> IGPM2_Vtbl { + unsafe extern "system" fn GetBackupDirEx(this: *mut core::ffi::c_void, bstrbackupdir: core::mem::MaybeUninit, backupdirtype: GPMBackupType, ppigpmbackupdirex: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPM2_Impl::GetBackupDirEx(this, core::mem::transmute(&bstrbackupdir), core::mem::transmute_copy(&backupdirtype)) { Ok(ok__) => { @@ -317,10 +242,7 @@ impl IGPM2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeReportingEx(this: *mut core::ffi::c_void, bstradmpath: core::mem::MaybeUninit, reportingoptions: i32) -> windows_core::HRESULT - where - Identity: IGPM2_Impl, - { + unsafe extern "system" fn InitializeReportingEx(this: *mut core::ffi::c_void, bstradmpath: core::mem::MaybeUninit, reportingoptions: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPM2_Impl::InitializeReportingEx(this, core::mem::transmute(&bstradmpath), core::mem::transmute_copy(&reportingoptions)).into() } @@ -342,14 +264,8 @@ pub trait IGPMAsyncCancel_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMAsyncCancel {} #[cfg(feature = "Win32_System_Com")] impl IGPMAsyncCancel_Vtbl { - pub const fn new() -> IGPMAsyncCancel_Vtbl - where - Identity: IGPMAsyncCancel_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMAsyncCancel_Impl, - { + pub const fn new() -> IGPMAsyncCancel_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMAsyncCancel_Impl::Cancel(this).into() } @@ -367,14 +283,8 @@ pub trait IGPMAsyncProgress_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMAsyncProgress {} #[cfg(feature = "Win32_System_Com")] impl IGPMAsyncProgress_Vtbl { - pub const fn new() -> IGPMAsyncProgress_Vtbl - where - Identity: IGPMAsyncProgress_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, lprogressnumerator: i32, lprogressdenominator: i32, hrstatus: windows_core::HRESULT, presult: *const core::mem::MaybeUninit, ppigpmstatusmsgcollection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMAsyncProgress_Impl, - { + pub const fn new() -> IGPMAsyncProgress_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, lprogressnumerator: i32, lprogressdenominator: i32, hrstatus: windows_core::HRESULT, presult: *const core::mem::MaybeUninit, ppigpmstatusmsgcollection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMAsyncProgress_Impl::Status(this, core::mem::transmute_copy(&lprogressnumerator), core::mem::transmute_copy(&lprogressdenominator), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&presult), windows_core::from_raw_borrowed(&ppigpmstatusmsgcollection)).into() } @@ -401,14 +311,8 @@ pub trait IGPMBackup_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMBackup {} #[cfg(feature = "Win32_System_Com")] impl IGPMBackup_Vtbl { - pub const fn new() -> IGPMBackup_Vtbl - where - Identity: IGPMBackup_Impl, - { - unsafe extern "system" fn ID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackup_Impl, - { + pub const fn new() -> IGPMBackup_Vtbl { + unsafe extern "system" fn ID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackup_Impl::ID(this) { Ok(ok__) => { @@ -418,10 +322,7 @@ impl IGPMBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GPOID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackup_Impl, - { + unsafe extern "system" fn GPOID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackup_Impl::GPOID(this) { Ok(ok__) => { @@ -431,10 +332,7 @@ impl IGPMBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GPODomain(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackup_Impl, - { + unsafe extern "system" fn GPODomain(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackup_Impl::GPODomain(this) { Ok(ok__) => { @@ -444,10 +342,7 @@ impl IGPMBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GPODisplayName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackup_Impl, - { + unsafe extern "system" fn GPODisplayName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackup_Impl::GPODisplayName(this) { Ok(ok__) => { @@ -457,10 +352,7 @@ impl IGPMBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IGPMBackup_Impl, - { + unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackup_Impl::Timestamp(this) { Ok(ok__) => { @@ -470,10 +362,7 @@ impl IGPMBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Comment(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackup_Impl, - { + unsafe extern "system" fn Comment(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackup_Impl::Comment(this) { Ok(ok__) => { @@ -483,10 +372,7 @@ impl IGPMBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BackupDir(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackup_Impl, - { + unsafe extern "system" fn BackupDir(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackup_Impl::BackupDir(this) { Ok(ok__) => { @@ -496,17 +382,11 @@ impl IGPMBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMBackup_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMBackup_Impl::Delete(this).into() } - unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMBackup_Impl, - { + unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackup_Impl::GenerateReport(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -516,10 +396,7 @@ impl IGPMBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateReportToFile(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMBackup_Impl, - { + unsafe extern "system" fn GenerateReportToFile(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackup_Impl::GenerateReportToFile(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute(&bstrtargetfilepath)) { Ok(ok__) => { @@ -557,14 +434,8 @@ pub trait IGPMBackupCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMBackupCollection {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMBackupCollection_Vtbl { - pub const fn new() -> IGPMBackupCollection_Vtbl - where - Identity: IGPMBackupCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMBackupCollection_Impl, - { + pub const fn new() -> IGPMBackupCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackupCollection_Impl::Count(this) { Ok(ok__) => { @@ -574,10 +445,7 @@ impl IGPMBackupCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackupCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackupCollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -587,10 +455,7 @@ impl IGPMBackupCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmbackup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMBackupCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmbackup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackupCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -621,14 +486,8 @@ pub trait IGPMBackupDir_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMBackupDir {} #[cfg(feature = "Win32_System_Com")] impl IGPMBackupDir_Vtbl { - pub const fn new() -> IGPMBackupDir_Vtbl - where - Identity: IGPMBackupDir_Impl, - { - unsafe extern "system" fn BackupDirectory(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackupDir_Impl, - { + pub const fn new() -> IGPMBackupDir_Vtbl { + unsafe extern "system" fn BackupDirectory(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackupDir_Impl::BackupDirectory(this) { Ok(ok__) => { @@ -638,10 +497,7 @@ impl IGPMBackupDir_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBackup(this: *mut core::ffi::c_void, bstrid: core::mem::MaybeUninit, ppbackup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMBackupDir_Impl, - { + unsafe extern "system" fn GetBackup(this: *mut core::ffi::c_void, bstrid: core::mem::MaybeUninit, ppbackup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackupDir_Impl::GetBackup(this, core::mem::transmute(&bstrid)) { Ok(ok__) => { @@ -651,10 +507,7 @@ impl IGPMBackupDir_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchBackups(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmbackupcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMBackupDir_Impl, - { + unsafe extern "system" fn SearchBackups(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmbackupcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackupDir_Impl::SearchBackups(this, windows_core::from_raw_borrowed(&pigpmsearchcriteria)) { Ok(ok__) => { @@ -686,14 +539,8 @@ pub trait IGPMBackupDirEx_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMBackupDirEx {} #[cfg(feature = "Win32_System_Com")] impl IGPMBackupDirEx_Vtbl { - pub const fn new() -> IGPMBackupDirEx_Vtbl - where - Identity: IGPMBackupDirEx_Impl, - { - unsafe extern "system" fn BackupDir(this: *mut core::ffi::c_void, pbstrbackupdir: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackupDirEx_Impl, - { + pub const fn new() -> IGPMBackupDirEx_Vtbl { + unsafe extern "system" fn BackupDir(this: *mut core::ffi::c_void, pbstrbackupdir: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackupDirEx_Impl::BackupDir(this) { Ok(ok__) => { @@ -703,10 +550,7 @@ impl IGPMBackupDirEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BackupType(this: *mut core::ffi::c_void, pgpmbackuptype: *mut GPMBackupType) -> windows_core::HRESULT - where - Identity: IGPMBackupDirEx_Impl, - { + unsafe extern "system" fn BackupType(this: *mut core::ffi::c_void, pgpmbackuptype: *mut GPMBackupType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackupDirEx_Impl::BackupType(this) { Ok(ok__) => { @@ -716,10 +560,7 @@ impl IGPMBackupDirEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBackup(this: *mut core::ffi::c_void, bstrid: core::mem::MaybeUninit, pvarbackup: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackupDirEx_Impl, - { + unsafe extern "system" fn GetBackup(this: *mut core::ffi::c_void, bstrid: core::mem::MaybeUninit, pvarbackup: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackupDirEx_Impl::GetBackup(this, core::mem::transmute(&bstrid)) { Ok(ok__) => { @@ -729,10 +570,7 @@ impl IGPMBackupDirEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchBackups(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, pvarbackupcollection: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMBackupDirEx_Impl, - { + unsafe extern "system" fn SearchBackups(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, pvarbackupcollection: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMBackupDirEx_Impl::SearchBackups(this, windows_core::from_raw_borrowed(&pigpmsearchcriteria)) { Ok(ok__) => { @@ -764,14 +602,8 @@ pub trait IGPMCSECollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMCSECollection {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMCSECollection_Vtbl { - pub const fn new() -> IGPMCSECollection_Vtbl - where - Identity: IGPMCSECollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMCSECollection_Impl, - { + pub const fn new() -> IGPMCSECollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMCSECollection_Impl::Count(this) { Ok(ok__) => { @@ -781,10 +613,7 @@ impl IGPMCSECollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMCSECollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMCSECollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -794,10 +623,7 @@ impl IGPMCSECollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmcses: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMCSECollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmcses: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMCSECollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -829,14 +655,8 @@ pub trait IGPMClientSideExtension_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMClientSideExtension {} #[cfg(feature = "Win32_System_Com")] impl IGPMClientSideExtension_Vtbl { - pub const fn new() -> IGPMClientSideExtension_Vtbl - where - Identity: IGPMClientSideExtension_Impl, - { - unsafe extern "system" fn ID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMClientSideExtension_Impl, - { + pub const fn new() -> IGPMClientSideExtension_Vtbl { + unsafe extern "system" fn ID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMClientSideExtension_Impl::ID(this) { Ok(ok__) => { @@ -846,10 +666,7 @@ impl IGPMClientSideExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMClientSideExtension_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMClientSideExtension_Impl::DisplayName(this) { Ok(ok__) => { @@ -859,10 +676,7 @@ impl IGPMClientSideExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsUserEnabled(this: *mut core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMClientSideExtension_Impl, - { + unsafe extern "system" fn IsUserEnabled(this: *mut core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMClientSideExtension_Impl::IsUserEnabled(this) { Ok(ok__) => { @@ -872,10 +686,7 @@ impl IGPMClientSideExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsComputerEnabled(this: *mut core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMClientSideExtension_Impl, - { + unsafe extern "system" fn IsComputerEnabled(this: *mut core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMClientSideExtension_Impl::IsComputerEnabled(this) { Ok(ok__) => { @@ -964,14 +775,8 @@ pub trait IGPMConstants_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMConstants {} #[cfg(feature = "Win32_System_Com")] impl IGPMConstants_Vtbl { - pub const fn new() -> IGPMConstants_Vtbl - where - Identity: IGPMConstants_Impl, - { - unsafe extern "system" fn PermGPOApply(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + pub const fn new() -> IGPMConstants_Vtbl { + unsafe extern "system" fn PermGPOApply(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermGPOApply(this) { Ok(ok__) => { @@ -981,10 +786,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermGPORead(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermGPORead(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermGPORead(this) { Ok(ok__) => { @@ -994,10 +796,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermGPOEdit(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermGPOEdit(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermGPOEdit(this) { Ok(ok__) => { @@ -1007,10 +806,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermGPOEditSecurityAndDelete(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermGPOEditSecurityAndDelete(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermGPOEditSecurityAndDelete(this) { Ok(ok__) => { @@ -1020,10 +816,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermGPOCustom(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermGPOCustom(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermGPOCustom(this) { Ok(ok__) => { @@ -1033,10 +826,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermWMIFilterEdit(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermWMIFilterEdit(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermWMIFilterEdit(this) { Ok(ok__) => { @@ -1046,10 +836,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermWMIFilterFullControl(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermWMIFilterFullControl(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermWMIFilterFullControl(this) { Ok(ok__) => { @@ -1059,10 +846,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermWMIFilterCustom(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermWMIFilterCustom(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermWMIFilterCustom(this) { Ok(ok__) => { @@ -1072,10 +856,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermSOMLink(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermSOMLink(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermSOMLink(this) { Ok(ok__) => { @@ -1085,10 +866,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermSOMLogging(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermSOMLogging(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermSOMLogging(this) { Ok(ok__) => { @@ -1098,10 +876,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermSOMPlanning(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermSOMPlanning(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermSOMPlanning(this) { Ok(ok__) => { @@ -1111,10 +886,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermSOMGPOCreate(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermSOMGPOCreate(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermSOMGPOCreate(this) { Ok(ok__) => { @@ -1124,10 +896,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermSOMWMICreate(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermSOMWMICreate(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermSOMWMICreate(this) { Ok(ok__) => { @@ -1137,10 +906,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermSOMWMIFullControl(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn PermSOMWMIFullControl(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::PermSOMWMIFullControl(this) { Ok(ok__) => { @@ -1150,10 +916,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyGPOPermissions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchPropertyGPOPermissions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchPropertyGPOPermissions(this) { Ok(ok__) => { @@ -1163,10 +926,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyGPOEffectivePermissions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchPropertyGPOEffectivePermissions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchPropertyGPOEffectivePermissions(this) { Ok(ok__) => { @@ -1176,10 +936,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyGPODisplayName(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchPropertyGPODisplayName(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchPropertyGPODisplayName(this) { Ok(ok__) => { @@ -1189,10 +946,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyGPOWMIFilter(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchPropertyGPOWMIFilter(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchPropertyGPOWMIFilter(this) { Ok(ok__) => { @@ -1202,10 +956,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyGPOID(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchPropertyGPOID(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchPropertyGPOID(this) { Ok(ok__) => { @@ -1215,10 +966,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyGPOComputerExtensions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchPropertyGPOComputerExtensions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchPropertyGPOComputerExtensions(this) { Ok(ok__) => { @@ -1228,10 +976,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyGPOUserExtensions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchPropertyGPOUserExtensions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchPropertyGPOUserExtensions(this) { Ok(ok__) => { @@ -1241,10 +986,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertySOMLinks(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchPropertySOMLinks(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchPropertySOMLinks(this) { Ok(ok__) => { @@ -1254,10 +996,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyGPODomain(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchPropertyGPODomain(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchPropertyGPODomain(this) { Ok(ok__) => { @@ -1267,10 +1006,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyBackupMostRecent(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchPropertyBackupMostRecent(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchPropertyBackupMostRecent(this) { Ok(ok__) => { @@ -1280,10 +1016,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchOpEquals(this: *mut core::ffi::c_void, pval: *mut GPMSearchOperation) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchOpEquals(this: *mut core::ffi::c_void, pval: *mut GPMSearchOperation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchOpEquals(this) { Ok(ok__) => { @@ -1293,10 +1026,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchOpContains(this: *mut core::ffi::c_void, pval: *mut GPMSearchOperation) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchOpContains(this: *mut core::ffi::c_void, pval: *mut GPMSearchOperation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchOpContains(this) { Ok(ok__) => { @@ -1306,10 +1036,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchOpNotContains(this: *mut core::ffi::c_void, pval: *mut GPMSearchOperation) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchOpNotContains(this: *mut core::ffi::c_void, pval: *mut GPMSearchOperation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchOpNotContains(this) { Ok(ok__) => { @@ -1319,10 +1046,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchOpNotEquals(this: *mut core::ffi::c_void, pval: *mut GPMSearchOperation) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SearchOpNotEquals(this: *mut core::ffi::c_void, pval: *mut GPMSearchOperation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SearchOpNotEquals(this) { Ok(ok__) => { @@ -1332,10 +1056,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UsePDC(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn UsePDC(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::UsePDC(this) { Ok(ok__) => { @@ -1345,10 +1066,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UseAnyDC(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn UseAnyDC(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::UseAnyDC(this) { Ok(ok__) => { @@ -1358,10 +1076,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoNotUseW2KDC(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn DoNotUseW2KDC(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::DoNotUseW2KDC(this) { Ok(ok__) => { @@ -1371,10 +1086,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SOMSite(this: *mut core::ffi::c_void, pval: *mut GPMSOMType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SOMSite(this: *mut core::ffi::c_void, pval: *mut GPMSOMType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SOMSite(this) { Ok(ok__) => { @@ -1384,10 +1096,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SOMDomain(this: *mut core::ffi::c_void, pval: *mut GPMSOMType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SOMDomain(this: *mut core::ffi::c_void, pval: *mut GPMSOMType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SOMDomain(this) { Ok(ok__) => { @@ -1397,10 +1106,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SOMOU(this: *mut core::ffi::c_void, pval: *mut GPMSOMType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn SOMOU(this: *mut core::ffi::c_void, pval: *mut GPMSOMType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::SOMOU(this) { Ok(ok__) => { @@ -1410,10 +1116,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_SecurityFlags(this: *mut core::ffi::c_void, vbowner: super::super::Foundation::VARIANT_BOOL, vbgroup: super::super::Foundation::VARIANT_BOOL, vbdacl: super::super::Foundation::VARIANT_BOOL, vbsacl: super::super::Foundation::VARIANT_BOOL, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn get_SecurityFlags(this: *mut core::ffi::c_void, vbowner: super::super::Foundation::VARIANT_BOOL, vbgroup: super::super::Foundation::VARIANT_BOOL, vbdacl: super::super::Foundation::VARIANT_BOOL, vbsacl: super::super::Foundation::VARIANT_BOOL, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::get_SecurityFlags(this, core::mem::transmute_copy(&vbowner), core::mem::transmute_copy(&vbgroup), core::mem::transmute_copy(&vbdacl), core::mem::transmute_copy(&vbsacl)) { Ok(ok__) => { @@ -1423,10 +1126,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoNotValidateDC(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn DoNotValidateDC(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::DoNotValidateDC(this) { Ok(ok__) => { @@ -1436,10 +1136,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReportHTML(this: *mut core::ffi::c_void, pval: *mut GPMReportType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn ReportHTML(this: *mut core::ffi::c_void, pval: *mut GPMReportType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::ReportHTML(this) { Ok(ok__) => { @@ -1449,10 +1146,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReportXML(this: *mut core::ffi::c_void, pval: *mut GPMReportType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn ReportXML(this: *mut core::ffi::c_void, pval: *mut GPMReportType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::ReportXML(this) { Ok(ok__) => { @@ -1462,10 +1156,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RSOPModeUnknown(this: *mut core::ffi::c_void, pval: *mut GPMRSOPMode) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn RSOPModeUnknown(this: *mut core::ffi::c_void, pval: *mut GPMRSOPMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::RSOPModeUnknown(this) { Ok(ok__) => { @@ -1475,10 +1166,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RSOPModePlanning(this: *mut core::ffi::c_void, pval: *mut GPMRSOPMode) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn RSOPModePlanning(this: *mut core::ffi::c_void, pval: *mut GPMRSOPMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::RSOPModePlanning(this) { Ok(ok__) => { @@ -1488,10 +1176,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RSOPModeLogging(this: *mut core::ffi::c_void, pval: *mut GPMRSOPMode) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn RSOPModeLogging(this: *mut core::ffi::c_void, pval: *mut GPMRSOPMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::RSOPModeLogging(this) { Ok(ok__) => { @@ -1501,10 +1186,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EntryTypeUser(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn EntryTypeUser(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::EntryTypeUser(this) { Ok(ok__) => { @@ -1514,10 +1196,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EntryTypeComputer(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn EntryTypeComputer(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::EntryTypeComputer(this) { Ok(ok__) => { @@ -1527,10 +1206,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EntryTypeLocalGroup(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn EntryTypeLocalGroup(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::EntryTypeLocalGroup(this) { Ok(ok__) => { @@ -1540,10 +1216,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EntryTypeGlobalGroup(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn EntryTypeGlobalGroup(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::EntryTypeGlobalGroup(this) { Ok(ok__) => { @@ -1553,10 +1226,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EntryTypeUniversalGroup(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn EntryTypeUniversalGroup(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::EntryTypeUniversalGroup(this) { Ok(ok__) => { @@ -1566,10 +1236,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EntryTypeUNCPath(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn EntryTypeUNCPath(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::EntryTypeUNCPath(this) { Ok(ok__) => { @@ -1579,10 +1246,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EntryTypeUnknown(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn EntryTypeUnknown(this: *mut core::ffi::c_void, pval: *mut GPMEntryType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::EntryTypeUnknown(this) { Ok(ok__) => { @@ -1592,10 +1256,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationOptionSameAsSource(this: *mut core::ffi::c_void, pval: *mut GPMDestinationOption) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn DestinationOptionSameAsSource(this: *mut core::ffi::c_void, pval: *mut GPMDestinationOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::DestinationOptionSameAsSource(this) { Ok(ok__) => { @@ -1605,10 +1266,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationOptionNone(this: *mut core::ffi::c_void, pval: *mut GPMDestinationOption) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn DestinationOptionNone(this: *mut core::ffi::c_void, pval: *mut GPMDestinationOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::DestinationOptionNone(this) { Ok(ok__) => { @@ -1618,10 +1276,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationOptionByRelativeName(this: *mut core::ffi::c_void, pval: *mut GPMDestinationOption) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn DestinationOptionByRelativeName(this: *mut core::ffi::c_void, pval: *mut GPMDestinationOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::DestinationOptionByRelativeName(this) { Ok(ok__) => { @@ -1631,10 +1286,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationOptionSet(this: *mut core::ffi::c_void, pval: *mut GPMDestinationOption) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn DestinationOptionSet(this: *mut core::ffi::c_void, pval: *mut GPMDestinationOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::DestinationOptionSet(this) { Ok(ok__) => { @@ -1644,10 +1296,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MigrationTableOnly(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn MigrationTableOnly(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::MigrationTableOnly(this) { Ok(ok__) => { @@ -1657,10 +1306,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessSecurity(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn ProcessSecurity(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::ProcessSecurity(this) { Ok(ok__) => { @@ -1670,10 +1316,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RsopLoggingNoComputer(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn RsopLoggingNoComputer(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::RsopLoggingNoComputer(this) { Ok(ok__) => { @@ -1683,10 +1326,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RsopLoggingNoUser(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn RsopLoggingNoUser(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::RsopLoggingNoUser(this) { Ok(ok__) => { @@ -1696,10 +1336,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RsopPlanningAssumeSlowLink(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn RsopPlanningAssumeSlowLink(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::RsopPlanningAssumeSlowLink(this) { Ok(ok__) => { @@ -1709,10 +1346,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_RsopPlanningLoopbackOption(this: *mut core::ffi::c_void, vbmerge: super::super::Foundation::VARIANT_BOOL, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn get_RsopPlanningLoopbackOption(this: *mut core::ffi::c_void, vbmerge: super::super::Foundation::VARIANT_BOOL, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::get_RsopPlanningLoopbackOption(this, core::mem::transmute_copy(&vbmerge)) { Ok(ok__) => { @@ -1722,10 +1356,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RsopPlanningAssumeUserWQLFilterTrue(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn RsopPlanningAssumeUserWQLFilterTrue(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::RsopPlanningAssumeUserWQLFilterTrue(this) { Ok(ok__) => { @@ -1735,10 +1366,7 @@ impl IGPMConstants_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RsopPlanningAssumeCompWQLFilterTrue(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMConstants_Impl, - { + unsafe extern "system" fn RsopPlanningAssumeCompWQLFilterTrue(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants_Impl::RsopPlanningAssumeCompWQLFilterTrue(this) { Ok(ok__) => { @@ -1838,14 +1466,8 @@ pub trait IGPMConstants2_Impl: Sized + IGPMConstants_Impl { impl windows_core::RuntimeName for IGPMConstants2 {} #[cfg(feature = "Win32_System_Com")] impl IGPMConstants2_Vtbl { - pub const fn new() -> IGPMConstants2_Vtbl - where - Identity: IGPMConstants2_Impl, - { - unsafe extern "system" fn BackupTypeGPO(this: *mut core::ffi::c_void, pval: *mut GPMBackupType) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + pub const fn new() -> IGPMConstants2_Vtbl { + unsafe extern "system" fn BackupTypeGPO(this: *mut core::ffi::c_void, pval: *mut GPMBackupType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::BackupTypeGPO(this) { Ok(ok__) => { @@ -1855,10 +1477,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BackupTypeStarterGPO(this: *mut core::ffi::c_void, pval: *mut GPMBackupType) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn BackupTypeStarterGPO(this: *mut core::ffi::c_void, pval: *mut GPMBackupType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::BackupTypeStarterGPO(this) { Ok(ok__) => { @@ -1868,10 +1487,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StarterGPOTypeSystem(this: *mut core::ffi::c_void, pval: *mut GPMStarterGPOType) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn StarterGPOTypeSystem(this: *mut core::ffi::c_void, pval: *mut GPMStarterGPOType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::StarterGPOTypeSystem(this) { Ok(ok__) => { @@ -1881,10 +1497,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StarterGPOTypeCustom(this: *mut core::ffi::c_void, pval: *mut GPMStarterGPOType) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn StarterGPOTypeCustom(this: *mut core::ffi::c_void, pval: *mut GPMStarterGPOType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::StarterGPOTypeCustom(this) { Ok(ok__) => { @@ -1894,10 +1507,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyStarterGPOPermissions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn SearchPropertyStarterGPOPermissions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::SearchPropertyStarterGPOPermissions(this) { Ok(ok__) => { @@ -1907,10 +1517,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyStarterGPOEffectivePermissions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn SearchPropertyStarterGPOEffectivePermissions(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::SearchPropertyStarterGPOEffectivePermissions(this) { Ok(ok__) => { @@ -1920,10 +1527,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyStarterGPODisplayName(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn SearchPropertyStarterGPODisplayName(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::SearchPropertyStarterGPODisplayName(this) { Ok(ok__) => { @@ -1933,10 +1537,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyStarterGPOID(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn SearchPropertyStarterGPOID(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::SearchPropertyStarterGPOID(this) { Ok(ok__) => { @@ -1946,10 +1547,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchPropertyStarterGPODomain(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn SearchPropertyStarterGPODomain(this: *mut core::ffi::c_void, pval: *mut GPMSearchProperty) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::SearchPropertyStarterGPODomain(this) { Ok(ok__) => { @@ -1959,10 +1557,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermStarterGPORead(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn PermStarterGPORead(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::PermStarterGPORead(this) { Ok(ok__) => { @@ -1972,10 +1567,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermStarterGPOEdit(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn PermStarterGPOEdit(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::PermStarterGPOEdit(this) { Ok(ok__) => { @@ -1985,10 +1577,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermStarterGPOFullControl(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn PermStarterGPOFullControl(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::PermStarterGPOFullControl(this) { Ok(ok__) => { @@ -1998,10 +1587,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PermStarterGPOCustom(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn PermStarterGPOCustom(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::PermStarterGPOCustom(this) { Ok(ok__) => { @@ -2011,10 +1597,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReportLegacy(this: *mut core::ffi::c_void, pval: *mut GPMReportingOptions) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn ReportLegacy(this: *mut core::ffi::c_void, pval: *mut GPMReportingOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::ReportLegacy(this) { Ok(ok__) => { @@ -2024,10 +1607,7 @@ impl IGPMConstants2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReportComments(this: *mut core::ffi::c_void, pval: *mut GPMReportingOptions) -> windows_core::HRESULT - where - Identity: IGPMConstants2_Impl, - { + unsafe extern "system" fn ReportComments(this: *mut core::ffi::c_void, pval: *mut GPMReportingOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMConstants2_Impl::ReportComments(this) { Ok(ok__) => { @@ -2077,14 +1657,8 @@ pub trait IGPMDomain_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMDomain {} #[cfg(feature = "Win32_System_Com")] impl IGPMDomain_Vtbl { - pub const fn new() -> IGPMDomain_Vtbl - where - Identity: IGPMDomain_Impl, - { - unsafe extern "system" fn DomainController(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMDomain_Impl, - { + pub const fn new() -> IGPMDomain_Vtbl { + unsafe extern "system" fn DomainController(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain_Impl::DomainController(this) { Ok(ok__) => { @@ -2094,10 +1668,7 @@ impl IGPMDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Domain(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMDomain_Impl, - { + unsafe extern "system" fn Domain(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain_Impl::Domain(this) { Ok(ok__) => { @@ -2107,10 +1678,7 @@ impl IGPMDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGPO(this: *mut core::ffi::c_void, ppnewgpo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain_Impl, - { + unsafe extern "system" fn CreateGPO(this: *mut core::ffi::c_void, ppnewgpo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain_Impl::CreateGPO(this) { Ok(ok__) => { @@ -2120,10 +1688,7 @@ impl IGPMDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGPO(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, ppgpo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain_Impl, - { + unsafe extern "system" fn GetGPO(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, ppgpo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain_Impl::GetGPO(this, core::mem::transmute(&bstrguid)) { Ok(ok__) => { @@ -2133,10 +1698,7 @@ impl IGPMDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchGPOs(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmgpocollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain_Impl, - { + unsafe extern "system" fn SearchGPOs(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmgpocollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain_Impl::SearchGPOs(this, windows_core::from_raw_borrowed(&pigpmsearchcriteria)) { Ok(ok__) => { @@ -2146,10 +1708,7 @@ impl IGPMDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RestoreGPO(this: *mut core::ffi::c_void, pigpmbackup: *mut core::ffi::c_void, ldcflags: i32, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain_Impl, - { + unsafe extern "system" fn RestoreGPO(this: *mut core::ffi::c_void, pigpmbackup: *mut core::ffi::c_void, ldcflags: i32, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain_Impl::RestoreGPO(this, windows_core::from_raw_borrowed(&pigpmbackup), core::mem::transmute_copy(&ldcflags), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -2159,10 +1718,7 @@ impl IGPMDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSOM(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit, ppsom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain_Impl, - { + unsafe extern "system" fn GetSOM(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit, ppsom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain_Impl::GetSOM(this, core::mem::transmute(&bstrpath)) { Ok(ok__) => { @@ -2172,10 +1728,7 @@ impl IGPMDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchSOMs(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmsomcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain_Impl, - { + unsafe extern "system" fn SearchSOMs(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmsomcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain_Impl::SearchSOMs(this, windows_core::from_raw_borrowed(&pigpmsearchcriteria)) { Ok(ok__) => { @@ -2185,10 +1738,7 @@ impl IGPMDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWMIFilter(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit, ppwmifilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain_Impl, - { + unsafe extern "system" fn GetWMIFilter(this: *mut core::ffi::c_void, bstrpath: core::mem::MaybeUninit, ppwmifilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain_Impl::GetWMIFilter(this, core::mem::transmute(&bstrpath)) { Ok(ok__) => { @@ -2198,10 +1748,7 @@ impl IGPMDomain_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchWMIFilters(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmwmifiltercollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain_Impl, - { + unsafe extern "system" fn SearchWMIFilters(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmwmifiltercollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain_Impl::SearchWMIFilters(this, windows_core::from_raw_borrowed(&pigpmsearchcriteria)) { Ok(ok__) => { @@ -2242,14 +1789,8 @@ pub trait IGPMDomain2_Impl: Sized + IGPMDomain_Impl { impl windows_core::RuntimeName for IGPMDomain2 {} #[cfg(feature = "Win32_System_Com")] impl IGPMDomain2_Vtbl { - pub const fn new() -> IGPMDomain2_Vtbl - where - Identity: IGPMDomain2_Impl, - { - unsafe extern "system" fn CreateStarterGPO(this: *mut core::ffi::c_void, ppnewtemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain2_Impl, - { + pub const fn new() -> IGPMDomain2_Vtbl { + unsafe extern "system" fn CreateStarterGPO(this: *mut core::ffi::c_void, ppnewtemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain2_Impl::CreateStarterGPO(this) { Ok(ok__) => { @@ -2259,10 +1800,7 @@ impl IGPMDomain2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGPOFromStarterGPO(this: *mut core::ffi::c_void, pgpotemplate: *mut core::ffi::c_void, ppnewgpo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain2_Impl, - { + unsafe extern "system" fn CreateGPOFromStarterGPO(this: *mut core::ffi::c_void, pgpotemplate: *mut core::ffi::c_void, ppnewgpo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain2_Impl::CreateGPOFromStarterGPO(this, windows_core::from_raw_borrowed(&pgpotemplate)) { Ok(ok__) => { @@ -2272,10 +1810,7 @@ impl IGPMDomain2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStarterGPO(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain2_Impl, - { + unsafe extern "system" fn GetStarterGPO(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, pptemplate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain2_Impl::GetStarterGPO(this, core::mem::transmute(&bstrguid)) { Ok(ok__) => { @@ -2285,10 +1820,7 @@ impl IGPMDomain2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchStarterGPOs(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmtemplatecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain2_Impl, - { + unsafe extern "system" fn SearchStarterGPOs(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmtemplatecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain2_Impl::SearchStarterGPOs(this, windows_core::from_raw_borrowed(&pigpmsearchcriteria)) { Ok(ok__) => { @@ -2298,10 +1830,7 @@ impl IGPMDomain2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadStarterGPO(this: *mut core::ffi::c_void, bstrloadfile: core::mem::MaybeUninit, boverwrite: super::super::Foundation::VARIANT_BOOL, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain2_Impl, - { + unsafe extern "system" fn LoadStarterGPO(this: *mut core::ffi::c_void, bstrloadfile: core::mem::MaybeUninit, boverwrite: super::super::Foundation::VARIANT_BOOL, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain2_Impl::LoadStarterGPO(this, core::mem::transmute(&bstrloadfile), core::mem::transmute_copy(&boverwrite), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -2311,10 +1840,7 @@ impl IGPMDomain2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RestoreStarterGPO(this: *mut core::ffi::c_void, pigpmtmplbackup: *mut core::ffi::c_void, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain2_Impl, - { + unsafe extern "system" fn RestoreStarterGPO(this: *mut core::ffi::c_void, pigpmtmplbackup: *mut core::ffi::c_void, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain2_Impl::RestoreStarterGPO(this, windows_core::from_raw_borrowed(&pigpmtmplbackup), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -2349,14 +1875,8 @@ pub trait IGPMDomain3_Impl: Sized + IGPMDomain2_Impl { impl windows_core::RuntimeName for IGPMDomain3 {} #[cfg(feature = "Win32_System_Com")] impl IGPMDomain3_Vtbl { - pub const fn new() -> IGPMDomain3_Vtbl - where - Identity: IGPMDomain3_Impl, - { - unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMDomain3_Impl, - { + pub const fn new() -> IGPMDomain3_Vtbl { + unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain3_Impl::GenerateReport(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -2366,10 +1886,7 @@ impl IGPMDomain3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InfrastructureDC(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMDomain3_Impl, - { + unsafe extern "system" fn InfrastructureDC(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMDomain3_Impl::InfrastructureDC(this) { Ok(ok__) => { @@ -2379,17 +1896,11 @@ impl IGPMDomain3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInfrastructureDC(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMDomain3_Impl, - { + unsafe extern "system" fn SetInfrastructureDC(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMDomain3_Impl::SetInfrastructureDC(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn SetInfrastructureFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IGPMDomain3_Impl, - { + unsafe extern "system" fn SetInfrastructureFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMDomain3_Impl::SetInfrastructureFlags(this, core::mem::transmute_copy(&dwflags)).into() } @@ -2441,14 +1952,8 @@ pub trait IGPMGPO_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMGPO {} #[cfg(feature = "Win32_System_Com")] impl IGPMGPO_Vtbl { - pub const fn new() -> IGPMGPO_Vtbl - where - Identity: IGPMGPO_Impl, - { - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + pub const fn new() -> IGPMGPO_Vtbl { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::DisplayName(this) { Ok(ok__) => { @@ -2458,17 +1963,11 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO_Impl::SetDisplayName(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::Path(this) { Ok(ok__) => { @@ -2478,10 +1977,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn ID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::ID(this) { Ok(ok__) => { @@ -2491,10 +1987,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DomainName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn DomainName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::DomainName(this) { Ok(ok__) => { @@ -2504,10 +1997,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreationTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn CreationTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::CreationTime(this) { Ok(ok__) => { @@ -2517,10 +2007,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModificationTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn ModificationTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::ModificationTime(this) { Ok(ok__) => { @@ -2530,10 +2017,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserDSVersionNumber(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn UserDSVersionNumber(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::UserDSVersionNumber(this) { Ok(ok__) => { @@ -2543,10 +2027,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputerDSVersionNumber(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn ComputerDSVersionNumber(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::ComputerDSVersionNumber(this) { Ok(ok__) => { @@ -2556,10 +2037,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserSysvolVersionNumber(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn UserSysvolVersionNumber(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::UserSysvolVersionNumber(this) { Ok(ok__) => { @@ -2569,10 +2047,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputerSysvolVersionNumber(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn ComputerSysvolVersionNumber(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::ComputerSysvolVersionNumber(this) { Ok(ok__) => { @@ -2582,10 +2057,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWMIFilter(this: *mut core::ffi::c_void, ppigpmwmifilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn GetWMIFilter(this: *mut core::ffi::c_void, ppigpmwmifilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::GetWMIFilter(this) { Ok(ok__) => { @@ -2595,31 +2067,19 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWMIFilter(this: *mut core::ffi::c_void, pigpmwmifilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn SetWMIFilter(this: *mut core::ffi::c_void, pigpmwmifilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO_Impl::SetWMIFilter(this, windows_core::from_raw_borrowed(&pigpmwmifilter)).into() } - unsafe extern "system" fn SetUserEnabled(this: *mut core::ffi::c_void, vbenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn SetUserEnabled(this: *mut core::ffi::c_void, vbenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO_Impl::SetUserEnabled(this, core::mem::transmute_copy(&vbenabled)).into() } - unsafe extern "system" fn SetComputerEnabled(this: *mut core::ffi::c_void, vbenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn SetComputerEnabled(this: *mut core::ffi::c_void, vbenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO_Impl::SetComputerEnabled(this, core::mem::transmute_copy(&vbenabled)).into() } - unsafe extern "system" fn IsUserEnabled(this: *mut core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn IsUserEnabled(this: *mut core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::IsUserEnabled(this) { Ok(ok__) => { @@ -2629,10 +2089,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsComputerEnabled(this: *mut core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn IsComputerEnabled(this: *mut core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::IsComputerEnabled(this) { Ok(ok__) => { @@ -2642,10 +2099,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSecurityInfo(this: *mut core::ffi::c_void, ppsecurityinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn GetSecurityInfo(this: *mut core::ffi::c_void, ppsecurityinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::GetSecurityInfo(this) { Ok(ok__) => { @@ -2655,24 +2109,15 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityInfo(this: *mut core::ffi::c_void, psecurityinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn SetSecurityInfo(this: *mut core::ffi::c_void, psecurityinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO_Impl::SetSecurityInfo(this, windows_core::from_raw_borrowed(&psecurityinfo)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO_Impl::Delete(this).into() } - unsafe extern "system" fn Backup(this: *mut core::ffi::c_void, bstrbackupdir: core::mem::MaybeUninit, bstrcomment: core::mem::MaybeUninit, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn Backup(this: *mut core::ffi::c_void, bstrbackupdir: core::mem::MaybeUninit, bstrcomment: core::mem::MaybeUninit, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::Backup(this, core::mem::transmute(&bstrbackupdir), core::mem::transmute(&bstrcomment), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -2682,10 +2127,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Import(this: *mut core::ffi::c_void, lflags: i32, pigpmbackup: *mut core::ffi::c_void, pvarmigrationtable: *const core::mem::MaybeUninit, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn Import(this: *mut core::ffi::c_void, lflags: i32, pigpmbackup: *mut core::ffi::c_void, pvarmigrationtable: *const core::mem::MaybeUninit, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::Import(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pigpmbackup), core::mem::transmute_copy(&pvarmigrationtable), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -2695,10 +2137,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::GenerateReport(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -2708,10 +2147,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateReportToFile(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn GenerateReportToFile(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::GenerateReportToFile(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute(&bstrtargetfilepath)) { Ok(ok__) => { @@ -2721,10 +2157,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyTo(this: *mut core::ffi::c_void, lflags: i32, pigpmdomain: *mut core::ffi::c_void, pvarnewdisplayname: *const core::mem::MaybeUninit, pvarmigrationtable: *const core::mem::MaybeUninit, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn CopyTo(this: *mut core::ffi::c_void, lflags: i32, pigpmdomain: *mut core::ffi::c_void, pvarnewdisplayname: *const core::mem::MaybeUninit, pvarmigrationtable: *const core::mem::MaybeUninit, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::CopyTo(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pigpmdomain), core::mem::transmute_copy(&pvarnewdisplayname), core::mem::transmute_copy(&pvarmigrationtable), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -2734,17 +2167,11 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, lflags: i32, psd: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, lflags: i32, psd: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO_Impl::SetSecurityDescriptor(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&psd)).into() } - unsafe extern "system" fn GetSecurityDescriptor(this: *mut core::ffi::c_void, lflags: i32, ppsd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn GetSecurityDescriptor(this: *mut core::ffi::c_void, lflags: i32, ppsd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::GetSecurityDescriptor(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -2754,10 +2181,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsACLConsistent(this: *mut core::ffi::c_void, pvbconsistent: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn IsACLConsistent(this: *mut core::ffi::c_void, pvbconsistent: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO_Impl::IsACLConsistent(this) { Ok(ok__) => { @@ -2767,10 +2191,7 @@ impl IGPMGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MakeACLConsistent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPO_Impl, - { + unsafe extern "system" fn MakeACLConsistent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO_Impl::MakeACLConsistent(this).into() } @@ -2820,14 +2241,8 @@ pub trait IGPMGPO2_Impl: Sized + IGPMGPO_Impl { impl windows_core::RuntimeName for IGPMGPO2 {} #[cfg(feature = "Win32_System_Com")] impl IGPMGPO2_Vtbl { - pub const fn new() -> IGPMGPO2_Vtbl - where - Identity: IGPMGPO2_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPO2_Impl, - { + pub const fn new() -> IGPMGPO2_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO2_Impl::Description(this) { Ok(ok__) => { @@ -2837,10 +2252,7 @@ impl IGPMGPO2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPO2_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO2_Impl::SetDescription(this, core::mem::transmute(&newval)).into() } @@ -2864,14 +2276,8 @@ pub trait IGPMGPO3_Impl: Sized + IGPMGPO2_Impl { impl windows_core::RuntimeName for IGPMGPO3 {} #[cfg(feature = "Win32_System_Com")] impl IGPMGPO3_Vtbl { - pub const fn new() -> IGPMGPO3_Vtbl - where - Identity: IGPMGPO3_Impl, - { - unsafe extern "system" fn InfrastructureDC(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPO3_Impl, - { + pub const fn new() -> IGPMGPO3_Vtbl { + unsafe extern "system" fn InfrastructureDC(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPO3_Impl::InfrastructureDC(this) { Ok(ok__) => { @@ -2881,17 +2287,11 @@ impl IGPMGPO3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInfrastructureDC(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPO3_Impl, - { + unsafe extern "system" fn SetInfrastructureDC(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO3_Impl::SetInfrastructureDC(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn SetInfrastructureFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IGPMGPO3_Impl, - { + unsafe extern "system" fn SetInfrastructureFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPO3_Impl::SetInfrastructureFlags(this, core::mem::transmute_copy(&dwflags)).into() } @@ -2916,14 +2316,8 @@ pub trait IGPMGPOCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMGPOCollection {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMGPOCollection_Vtbl { - pub const fn new() -> IGPMGPOCollection_Vtbl - where - Identity: IGPMGPOCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMGPOCollection_Impl, - { + pub const fn new() -> IGPMGPOCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOCollection_Impl::Count(this) { Ok(ok__) => { @@ -2933,10 +2327,7 @@ impl IGPMGPOCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPOCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOCollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -2946,10 +2337,7 @@ impl IGPMGPOCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmgpos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPOCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmgpos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2986,14 +2374,8 @@ pub trait IGPMGPOLink_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMGPOLink {} #[cfg(feature = "Win32_System_Com")] impl IGPMGPOLink_Vtbl { - pub const fn new() -> IGPMGPOLink_Vtbl - where - Identity: IGPMGPOLink_Impl, - { - unsafe extern "system" fn GPOID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPOLink_Impl, - { + pub const fn new() -> IGPMGPOLink_Vtbl { + unsafe extern "system" fn GPOID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOLink_Impl::GPOID(this) { Ok(ok__) => { @@ -3003,10 +2385,7 @@ impl IGPMGPOLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GPODomain(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPOLink_Impl, - { + unsafe extern "system" fn GPODomain(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOLink_Impl::GPODomain(this) { Ok(ok__) => { @@ -3016,10 +2395,7 @@ impl IGPMGPOLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMGPOLink_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOLink_Impl::Enabled(this) { Ok(ok__) => { @@ -3029,17 +2405,11 @@ impl IGPMGPOLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMGPOLink_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPOLink_Impl::SetEnabled(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Enforced(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMGPOLink_Impl, - { + unsafe extern "system" fn Enforced(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOLink_Impl::Enforced(this) { Ok(ok__) => { @@ -3049,17 +2419,11 @@ impl IGPMGPOLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnforced(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMGPOLink_Impl, - { + unsafe extern "system" fn SetEnforced(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPOLink_Impl::SetEnforced(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn SOMLinkOrder(this: *mut core::ffi::c_void, lval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMGPOLink_Impl, - { + unsafe extern "system" fn SOMLinkOrder(this: *mut core::ffi::c_void, lval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOLink_Impl::SOMLinkOrder(this) { Ok(ok__) => { @@ -3069,10 +2433,7 @@ impl IGPMGPOLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SOM(this: *mut core::ffi::c_void, ppigpmsom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPOLink_Impl, - { + unsafe extern "system" fn SOM(this: *mut core::ffi::c_void, ppigpmsom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOLink_Impl::SOM(this) { Ok(ok__) => { @@ -3082,10 +2443,7 @@ impl IGPMGPOLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPOLink_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMGPOLink_Impl::Delete(this).into() } @@ -3116,14 +2474,8 @@ pub trait IGPMGPOLinksCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMGPOLinksCollection {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMGPOLinksCollection_Vtbl { - pub const fn new() -> IGPMGPOLinksCollection_Vtbl - where - Identity: IGPMGPOLinksCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMGPOLinksCollection_Impl, - { + pub const fn new() -> IGPMGPOLinksCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOLinksCollection_Impl::Count(this) { Ok(ok__) => { @@ -3133,10 +2485,7 @@ impl IGPMGPOLinksCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMGPOLinksCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOLinksCollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -3146,10 +2495,7 @@ impl IGPMGPOLinksCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmlinks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMGPOLinksCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmlinks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMGPOLinksCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3181,14 +2527,8 @@ pub trait IGPMMapEntry_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMMapEntry {} #[cfg(feature = "Win32_System_Com")] impl IGPMMapEntry_Vtbl { - pub const fn new() -> IGPMMapEntry_Vtbl - where - Identity: IGPMMapEntry_Impl, - { - unsafe extern "system" fn Source(this: *mut core::ffi::c_void, pbstrsource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMMapEntry_Impl, - { + pub const fn new() -> IGPMMapEntry_Vtbl { + unsafe extern "system" fn Source(this: *mut core::ffi::c_void, pbstrsource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMapEntry_Impl::Source(this) { Ok(ok__) => { @@ -3198,10 +2538,7 @@ impl IGPMMapEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Destination(this: *mut core::ffi::c_void, pbstrdestination: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMMapEntry_Impl, - { + unsafe extern "system" fn Destination(this: *mut core::ffi::c_void, pbstrdestination: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMapEntry_Impl::Destination(this) { Ok(ok__) => { @@ -3211,10 +2548,7 @@ impl IGPMMapEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationOption(this: *mut core::ffi::c_void, pgpmdestoption: *mut GPMDestinationOption) -> windows_core::HRESULT - where - Identity: IGPMMapEntry_Impl, - { + unsafe extern "system" fn DestinationOption(this: *mut core::ffi::c_void, pgpmdestoption: *mut GPMDestinationOption) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMapEntry_Impl::DestinationOption(this) { Ok(ok__) => { @@ -3224,10 +2558,7 @@ impl IGPMMapEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EntryType(this: *mut core::ffi::c_void, pgpmentrytype: *mut GPMEntryType) -> windows_core::HRESULT - where - Identity: IGPMMapEntry_Impl, - { + unsafe extern "system" fn EntryType(this: *mut core::ffi::c_void, pgpmentrytype: *mut GPMEntryType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMapEntry_Impl::EntryType(this) { Ok(ok__) => { @@ -3259,14 +2590,8 @@ pub trait IGPMMapEntryCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMMapEntryCollection {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMMapEntryCollection_Vtbl { - pub const fn new() -> IGPMMapEntryCollection_Vtbl - where - Identity: IGPMMapEntryCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMMapEntryCollection_Impl, - { + pub const fn new() -> IGPMMapEntryCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMapEntryCollection_Impl::Count(this) { Ok(ok__) => { @@ -3276,10 +2601,7 @@ impl IGPMMapEntryCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMMapEntryCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMapEntryCollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -3289,10 +2611,7 @@ impl IGPMMapEntryCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMMapEntryCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMapEntryCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3328,28 +2647,16 @@ pub trait IGPMMigrationTable_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMMigrationTable {} #[cfg(feature = "Win32_System_Com")] impl IGPMMigrationTable_Vtbl { - pub const fn new() -> IGPMMigrationTable_Vtbl - where - Identity: IGPMMigrationTable_Impl, - { - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, bstrmigrationtablepath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMMigrationTable_Impl, - { + pub const fn new() -> IGPMMigrationTable_Vtbl { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, bstrmigrationtablepath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMMigrationTable_Impl::Save(this, core::mem::transmute(&bstrmigrationtablepath)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, lflags: i32, var: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMMigrationTable_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, lflags: i32, var: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMMigrationTable_Impl::Add(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&var)).into() } - unsafe extern "system" fn AddEntry(this: *mut core::ffi::c_void, bstrsource: core::mem::MaybeUninit, gpmentrytype: GPMEntryType, pvardestination: *const core::mem::MaybeUninit, ppentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMMigrationTable_Impl, - { + unsafe extern "system" fn AddEntry(this: *mut core::ffi::c_void, bstrsource: core::mem::MaybeUninit, gpmentrytype: GPMEntryType, pvardestination: *const core::mem::MaybeUninit, ppentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMigrationTable_Impl::AddEntry(this, core::mem::transmute(&bstrsource), core::mem::transmute_copy(&gpmentrytype), core::mem::transmute_copy(&pvardestination)) { Ok(ok__) => { @@ -3359,10 +2666,7 @@ impl IGPMMigrationTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEntry(this: *mut core::ffi::c_void, bstrsource: core::mem::MaybeUninit, ppentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMMigrationTable_Impl, - { + unsafe extern "system" fn GetEntry(this: *mut core::ffi::c_void, bstrsource: core::mem::MaybeUninit, ppentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMigrationTable_Impl::GetEntry(this, core::mem::transmute(&bstrsource)) { Ok(ok__) => { @@ -3372,17 +2676,11 @@ impl IGPMMigrationTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteEntry(this: *mut core::ffi::c_void, bstrsource: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMMigrationTable_Impl, - { + unsafe extern "system" fn DeleteEntry(this: *mut core::ffi::c_void, bstrsource: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMMigrationTable_Impl::DeleteEntry(this, core::mem::transmute(&bstrsource)).into() } - unsafe extern "system" fn UpdateDestination(this: *mut core::ffi::c_void, bstrsource: core::mem::MaybeUninit, pvardestination: *const core::mem::MaybeUninit, ppentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMMigrationTable_Impl, - { + unsafe extern "system" fn UpdateDestination(this: *mut core::ffi::c_void, bstrsource: core::mem::MaybeUninit, pvardestination: *const core::mem::MaybeUninit, ppentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMigrationTable_Impl::UpdateDestination(this, core::mem::transmute(&bstrsource), core::mem::transmute_copy(&pvardestination)) { Ok(ok__) => { @@ -3392,10 +2690,7 @@ impl IGPMMigrationTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMMigrationTable_Impl, - { + unsafe extern "system" fn Validate(this: *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMigrationTable_Impl::Validate(this) { Ok(ok__) => { @@ -3405,10 +2700,7 @@ impl IGPMMigrationTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEntries(this: *mut core::ffi::c_void, ppentries: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMMigrationTable_Impl, - { + unsafe extern "system" fn GetEntries(this: *mut core::ffi::c_void, ppentries: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMMigrationTable_Impl::GetEntries(this) { Ok(ok__) => { @@ -3446,14 +2738,8 @@ pub trait IGPMPermission_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMPermission {} #[cfg(feature = "Win32_System_Com")] impl IGPMPermission_Vtbl { - pub const fn new() -> IGPMPermission_Vtbl - where - Identity: IGPMPermission_Impl, - { - unsafe extern "system" fn Inherited(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMPermission_Impl, - { + pub const fn new() -> IGPMPermission_Vtbl { + unsafe extern "system" fn Inherited(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMPermission_Impl::Inherited(this) { Ok(ok__) => { @@ -3463,10 +2749,7 @@ impl IGPMPermission_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Inheritable(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMPermission_Impl, - { + unsafe extern "system" fn Inheritable(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMPermission_Impl::Inheritable(this) { Ok(ok__) => { @@ -3476,10 +2759,7 @@ impl IGPMPermission_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Denied(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMPermission_Impl, - { + unsafe extern "system" fn Denied(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMPermission_Impl::Denied(this) { Ok(ok__) => { @@ -3489,10 +2769,7 @@ impl IGPMPermission_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Permission(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT - where - Identity: IGPMPermission_Impl, - { + unsafe extern "system" fn Permission(this: *mut core::ffi::c_void, pval: *mut GPMPermissionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMPermission_Impl::Permission(this) { Ok(ok__) => { @@ -3502,10 +2779,7 @@ impl IGPMPermission_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Trustee(this: *mut core::ffi::c_void, ppigpmtrustee: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMPermission_Impl, - { + unsafe extern "system" fn Trustee(this: *mut core::ffi::c_void, ppigpmtrustee: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMPermission_Impl::Trustee(this) { Ok(ok__) => { @@ -3570,14 +2844,8 @@ pub trait IGPMRSOP_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMRSOP {} #[cfg(feature = "Win32_System_Com")] impl IGPMRSOP_Vtbl { - pub const fn new() -> IGPMRSOP_Vtbl - where - Identity: IGPMRSOP_Impl, - { - unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, pval: *mut GPMRSOPMode) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + pub const fn new() -> IGPMRSOP_Vtbl { + unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, pval: *mut GPMRSOPMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::Mode(this) { Ok(ok__) => { @@ -3587,10 +2855,7 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Namespace(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn Namespace(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::Namespace(this) { Ok(ok__) => { @@ -3600,17 +2865,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLoggingComputer(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetLoggingComputer(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetLoggingComputer(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn LoggingComputer(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn LoggingComputer(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::LoggingComputer(this) { Ok(ok__) => { @@ -3620,17 +2879,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLoggingUser(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetLoggingUser(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetLoggingUser(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn LoggingUser(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn LoggingUser(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::LoggingUser(this) { Ok(ok__) => { @@ -3640,17 +2893,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLoggingFlags(this: *mut core::ffi::c_void, lval: i32) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetLoggingFlags(this: *mut core::ffi::c_void, lval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetLoggingFlags(this, core::mem::transmute_copy(&lval)).into() } - unsafe extern "system" fn LoggingFlags(this: *mut core::ffi::c_void, lval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn LoggingFlags(this: *mut core::ffi::c_void, lval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::LoggingFlags(this) { Ok(ok__) => { @@ -3660,17 +2907,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningFlags(this: *mut core::ffi::c_void, lval: i32) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningFlags(this: *mut core::ffi::c_void, lval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningFlags(this, core::mem::transmute_copy(&lval)).into() } - unsafe extern "system" fn PlanningFlags(this: *mut core::ffi::c_void, lval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningFlags(this: *mut core::ffi::c_void, lval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningFlags(this) { Ok(ok__) => { @@ -3680,17 +2921,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningDomainController(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningDomainController(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningDomainController(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningDomainController(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningDomainController(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningDomainController(this) { Ok(ok__) => { @@ -3700,17 +2935,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningSiteName(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningSiteName(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningSiteName(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningSiteName(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningSiteName(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningSiteName(this) { Ok(ok__) => { @@ -3720,17 +2949,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningUser(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningUser(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningUser(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningUser(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningUser(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningUser(this) { Ok(ok__) => { @@ -3740,17 +2963,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningUserSOM(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningUserSOM(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningUserSOM(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningUserSOM(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningUserSOM(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningUserSOM(this) { Ok(ok__) => { @@ -3760,17 +2977,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningUserWMIFilters(this: *mut core::ffi::c_void, varval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningUserWMIFilters(this: *mut core::ffi::c_void, varval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningUserWMIFilters(this, core::mem::transmute(&varval)).into() } - unsafe extern "system" fn PlanningUserWMIFilters(this: *mut core::ffi::c_void, varval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningUserWMIFilters(this: *mut core::ffi::c_void, varval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningUserWMIFilters(this) { Ok(ok__) => { @@ -3780,17 +2991,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningUserSecurityGroups(this: *mut core::ffi::c_void, varval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningUserSecurityGroups(this: *mut core::ffi::c_void, varval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningUserSecurityGroups(this, core::mem::transmute(&varval)).into() } - unsafe extern "system" fn PlanningUserSecurityGroups(this: *mut core::ffi::c_void, varval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningUserSecurityGroups(this: *mut core::ffi::c_void, varval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningUserSecurityGroups(this) { Ok(ok__) => { @@ -3800,17 +3005,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningComputer(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningComputer(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningComputer(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningComputer(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningComputer(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningComputer(this) { Ok(ok__) => { @@ -3820,17 +3019,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningComputerSOM(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningComputerSOM(this: *mut core::ffi::c_void, bstrval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningComputerSOM(this, core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningComputerSOM(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningComputerSOM(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningComputerSOM(this) { Ok(ok__) => { @@ -3840,17 +3033,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningComputerWMIFilters(this: *mut core::ffi::c_void, varval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningComputerWMIFilters(this: *mut core::ffi::c_void, varval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningComputerWMIFilters(this, core::mem::transmute(&varval)).into() } - unsafe extern "system" fn PlanningComputerWMIFilters(this: *mut core::ffi::c_void, varval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningComputerWMIFilters(this: *mut core::ffi::c_void, varval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningComputerWMIFilters(this) { Ok(ok__) => { @@ -3860,17 +3047,11 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningComputerSecurityGroups(this: *mut core::ffi::c_void, varval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn SetPlanningComputerSecurityGroups(this: *mut core::ffi::c_void, varval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::SetPlanningComputerSecurityGroups(this, core::mem::transmute(&varval)).into() } - unsafe extern "system" fn PlanningComputerSecurityGroups(this: *mut core::ffi::c_void, varval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn PlanningComputerSecurityGroups(this: *mut core::ffi::c_void, varval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::PlanningComputerSecurityGroups(this) { Ok(ok__) => { @@ -3880,10 +3061,7 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoggingEnumerateUsers(this: *mut core::ffi::c_void, varval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn LoggingEnumerateUsers(this: *mut core::ffi::c_void, varval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::LoggingEnumerateUsers(this) { Ok(ok__) => { @@ -3893,24 +3071,15 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateQueryResults(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn CreateQueryResults(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::CreateQueryResults(this).into() } - unsafe extern "system" fn ReleaseQueryResults(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn ReleaseQueryResults(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMRSOP_Impl::ReleaseQueryResults(this).into() } - unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::GenerateReport(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -3920,10 +3089,7 @@ impl IGPMRSOP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateReportToFile(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMRSOP_Impl, - { + unsafe extern "system" fn GenerateReportToFile(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMRSOP_Impl::GenerateReportToFile(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute(&bstrtargetfilepath)) { Ok(ok__) => { @@ -3986,14 +3152,8 @@ pub trait IGPMResult_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMResult {} #[cfg(feature = "Win32_System_Com")] impl IGPMResult_Vtbl { - pub const fn new() -> IGPMResult_Vtbl - where - Identity: IGPMResult_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, ppigpmstatusmsgcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMResult_Impl, - { + pub const fn new() -> IGPMResult_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, ppigpmstatusmsgcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMResult_Impl::Status(this) { Ok(ok__) => { @@ -4003,10 +3163,7 @@ impl IGPMResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Result(this: *mut core::ffi::c_void, pvarresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMResult_Impl, - { + unsafe extern "system" fn Result(this: *mut core::ffi::c_void, pvarresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMResult_Impl::Result(this) { Ok(ok__) => { @@ -4016,10 +3173,7 @@ impl IGPMResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OverallStatus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMResult_Impl, - { + unsafe extern "system" fn OverallStatus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMResult_Impl::OverallStatus(this).into() } @@ -4051,14 +3205,8 @@ pub trait IGPMSOM_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMSOM {} #[cfg(feature = "Win32_System_Com")] impl IGPMSOM_Vtbl { - pub const fn new() -> IGPMSOM_Vtbl - where - Identity: IGPMSOM_Impl, - { - unsafe extern "system" fn GPOInheritanceBlocked(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMSOM_Impl, - { + pub const fn new() -> IGPMSOM_Vtbl { + unsafe extern "system" fn GPOInheritanceBlocked(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOM_Impl::GPOInheritanceBlocked(this) { Ok(ok__) => { @@ -4068,17 +3216,11 @@ impl IGPMSOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGPOInheritanceBlocked(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IGPMSOM_Impl, - { + unsafe extern "system" fn SetGPOInheritanceBlocked(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMSOM_Impl::SetGPOInheritanceBlocked(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMSOM_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOM_Impl::Name(this) { Ok(ok__) => { @@ -4088,10 +3230,7 @@ impl IGPMSOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMSOM_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOM_Impl::Path(this) { Ok(ok__) => { @@ -4101,10 +3240,7 @@ impl IGPMSOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGPOLink(this: *mut core::ffi::c_void, llinkpos: i32, pgpo: *mut core::ffi::c_void, ppnewgpolink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSOM_Impl, - { + unsafe extern "system" fn CreateGPOLink(this: *mut core::ffi::c_void, llinkpos: i32, pgpo: *mut core::ffi::c_void, ppnewgpolink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOM_Impl::CreateGPOLink(this, core::mem::transmute_copy(&llinkpos), windows_core::from_raw_borrowed(&pgpo)) { Ok(ok__) => { @@ -4114,10 +3250,7 @@ impl IGPMSOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pval: *mut GPMSOMType) -> windows_core::HRESULT - where - Identity: IGPMSOM_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pval: *mut GPMSOMType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOM_Impl::Type(this) { Ok(ok__) => { @@ -4127,10 +3260,7 @@ impl IGPMSOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGPOLinks(this: *mut core::ffi::c_void, ppgpolinks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSOM_Impl, - { + unsafe extern "system" fn GetGPOLinks(this: *mut core::ffi::c_void, ppgpolinks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOM_Impl::GetGPOLinks(this) { Ok(ok__) => { @@ -4140,10 +3270,7 @@ impl IGPMSOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInheritedGPOLinks(this: *mut core::ffi::c_void, ppgpolinks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSOM_Impl, - { + unsafe extern "system" fn GetInheritedGPOLinks(this: *mut core::ffi::c_void, ppgpolinks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOM_Impl::GetInheritedGPOLinks(this) { Ok(ok__) => { @@ -4153,10 +3280,7 @@ impl IGPMSOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSecurityInfo(this: *mut core::ffi::c_void, ppsecurityinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSOM_Impl, - { + unsafe extern "system" fn GetSecurityInfo(this: *mut core::ffi::c_void, ppsecurityinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOM_Impl::GetSecurityInfo(this) { Ok(ok__) => { @@ -4166,10 +3290,7 @@ impl IGPMSOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityInfo(this: *mut core::ffi::c_void, psecurityinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSOM_Impl, - { + unsafe extern "system" fn SetSecurityInfo(this: *mut core::ffi::c_void, psecurityinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMSOM_Impl::SetSecurityInfo(this, windows_core::from_raw_borrowed(&psecurityinfo)).into() } @@ -4201,14 +3322,8 @@ pub trait IGPMSOMCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMSOMCollection {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMSOMCollection_Vtbl { - pub const fn new() -> IGPMSOMCollection_Vtbl - where - Identity: IGPMSOMCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMSOMCollection_Impl, - { + pub const fn new() -> IGPMSOMCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOMCollection_Impl::Count(this) { Ok(ok__) => { @@ -4218,10 +3333,7 @@ impl IGPMSOMCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMSOMCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOMCollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -4231,10 +3343,7 @@ impl IGPMSOMCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmsom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSOMCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmsom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSOMCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4263,14 +3372,8 @@ pub trait IGPMSearchCriteria_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMSearchCriteria {} #[cfg(feature = "Win32_System_Com")] impl IGPMSearchCriteria_Vtbl { - pub const fn new() -> IGPMSearchCriteria_Vtbl - where - Identity: IGPMSearchCriteria_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, searchproperty: GPMSearchProperty, searchoperation: GPMSearchOperation, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMSearchCriteria_Impl, - { + pub const fn new() -> IGPMSearchCriteria_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, searchproperty: GPMSearchProperty, searchoperation: GPMSearchOperation, varvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMSearchCriteria_Impl::Add(this, core::mem::transmute_copy(&searchproperty), core::mem::transmute_copy(&searchoperation), core::mem::transmute(&varvalue)).into() } @@ -4293,14 +3396,8 @@ pub trait IGPMSecurityInfo_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMSecurityInfo {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMSecurityInfo_Vtbl { - pub const fn new() -> IGPMSecurityInfo_Vtbl - where - Identity: IGPMSecurityInfo_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMSecurityInfo_Impl, - { + pub const fn new() -> IGPMSecurityInfo_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSecurityInfo_Impl::Count(this) { Ok(ok__) => { @@ -4310,10 +3407,7 @@ impl IGPMSecurityInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMSecurityInfo_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSecurityInfo_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -4323,10 +3417,7 @@ impl IGPMSecurityInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSecurityInfo_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSecurityInfo_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4336,24 +3427,15 @@ impl IGPMSecurityInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pperm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSecurityInfo_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pperm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMSecurityInfo_Impl::Add(this, windows_core::from_raw_borrowed(&pperm)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, pperm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSecurityInfo_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, pperm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMSecurityInfo_Impl::Remove(this, windows_core::from_raw_borrowed(&pperm)).into() } - unsafe extern "system" fn RemoveTrustee(this: *mut core::ffi::c_void, bstrtrustee: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMSecurityInfo_Impl, - { + unsafe extern "system" fn RemoveTrustee(this: *mut core::ffi::c_void, bstrtrustee: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMSecurityInfo_Impl::RemoveTrustee(this, core::mem::transmute(&bstrtrustee)).into() } @@ -4383,14 +3465,8 @@ pub trait IGPMSitesContainer_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMSitesContainer {} #[cfg(feature = "Win32_System_Com")] impl IGPMSitesContainer_Vtbl { - pub const fn new() -> IGPMSitesContainer_Vtbl - where - Identity: IGPMSitesContainer_Impl, - { - unsafe extern "system" fn DomainController(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMSitesContainer_Impl, - { + pub const fn new() -> IGPMSitesContainer_Vtbl { + unsafe extern "system" fn DomainController(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSitesContainer_Impl::DomainController(this) { Ok(ok__) => { @@ -4400,10 +3476,7 @@ impl IGPMSitesContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Domain(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMSitesContainer_Impl, - { + unsafe extern "system" fn Domain(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSitesContainer_Impl::Domain(this) { Ok(ok__) => { @@ -4413,10 +3486,7 @@ impl IGPMSitesContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Forest(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMSitesContainer_Impl, - { + unsafe extern "system" fn Forest(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSitesContainer_Impl::Forest(this) { Ok(ok__) => { @@ -4426,10 +3496,7 @@ impl IGPMSitesContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSite(this: *mut core::ffi::c_void, bstrsitename: core::mem::MaybeUninit, ppsom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSitesContainer_Impl, - { + unsafe extern "system" fn GetSite(this: *mut core::ffi::c_void, bstrsitename: core::mem::MaybeUninit, ppsom: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSitesContainer_Impl::GetSite(this, core::mem::transmute(&bstrsitename)) { Ok(ok__) => { @@ -4439,10 +3506,7 @@ impl IGPMSitesContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchSites(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmsomcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMSitesContainer_Impl, - { + unsafe extern "system" fn SearchSites(this: *mut core::ffi::c_void, pigpmsearchcriteria: *mut core::ffi::c_void, ppigpmsomcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMSitesContainer_Impl::SearchSites(this, windows_core::from_raw_borrowed(&pigpmsearchcriteria)) { Ok(ok__) => { @@ -4493,14 +3557,8 @@ pub trait IGPMStarterGPO_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMStarterGPO {} #[cfg(feature = "Win32_System_Com")] impl IGPMStarterGPO_Vtbl { - pub const fn new() -> IGPMStarterGPO_Vtbl - where - Identity: IGPMStarterGPO_Impl, - { - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + pub const fn new() -> IGPMStarterGPO_Vtbl { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::DisplayName(this) { Ok(ok__) => { @@ -4510,17 +3568,11 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMStarterGPO_Impl::SetDisplayName(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::Description(this) { Ok(ok__) => { @@ -4530,17 +3582,11 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMStarterGPO_Impl::SetDescription(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Author(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn Author(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::Author(this) { Ok(ok__) => { @@ -4550,10 +3596,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Product(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn Product(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::Product(this) { Ok(ok__) => { @@ -4563,10 +3606,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreationTime(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn CreationTime(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::CreationTime(this) { Ok(ok__) => { @@ -4576,10 +3616,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn ID(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::ID(this) { Ok(ok__) => { @@ -4589,10 +3626,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifiedTime(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn ModifiedTime(this: *mut core::ffi::c_void, pval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::ModifiedTime(this) { Ok(ok__) => { @@ -4602,10 +3636,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pval: *mut GPMStarterGPOType) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pval: *mut GPMStarterGPOType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::Type(this) { Ok(ok__) => { @@ -4615,10 +3646,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ComputerVersion(this: *mut core::ffi::c_void, pval: *mut u16) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn ComputerVersion(this: *mut core::ffi::c_void, pval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::ComputerVersion(this) { Ok(ok__) => { @@ -4628,10 +3656,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserVersion(this: *mut core::ffi::c_void, pval: *mut u16) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn UserVersion(this: *mut core::ffi::c_void, pval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::UserVersion(this) { Ok(ok__) => { @@ -4641,10 +3666,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StarterGPOVersion(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn StarterGPOVersion(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::StarterGPOVersion(this) { Ok(ok__) => { @@ -4654,14 +3676,11 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMStarterGPO_Impl::Delete(this).into() } - unsafe extern "system" fn Save( + unsafe extern "system" fn Save( this: *mut core::ffi::c_void, bstrsavefile: core::mem::MaybeUninit, boverwrite: super::super::Foundation::VARIANT_BOOL, @@ -4674,10 +3693,7 @@ impl IGPMStarterGPO_Vtbl { pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::Save(this, 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)) { Ok(ok__) => { @@ -4687,10 +3703,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Backup(this: *mut core::ffi::c_void, bstrbackupdir: core::mem::MaybeUninit, bstrcomment: core::mem::MaybeUninit, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn Backup(this: *mut core::ffi::c_void, bstrbackupdir: core::mem::MaybeUninit, bstrcomment: core::mem::MaybeUninit, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::Backup(this, core::mem::transmute(&bstrbackupdir), core::mem::transmute(&bstrcomment), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -4700,10 +3713,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyTo(this: *mut core::ffi::c_void, pvarnewdisplayname: *const core::mem::MaybeUninit, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *const core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn CopyTo(this: *mut core::ffi::c_void, pvarnewdisplayname: *const core::mem::MaybeUninit, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *const core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::CopyTo(this, core::mem::transmute_copy(&pvarnewdisplayname), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -4713,10 +3723,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *const core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *const core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::GenerateReport(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -4726,10 +3733,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateReportToFile(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn GenerateReportToFile(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::GenerateReportToFile(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute(&bstrtargetfilepath)) { Ok(ok__) => { @@ -4739,10 +3743,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSecurityInfo(this: *mut core::ffi::c_void, ppsecurityinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn GetSecurityInfo(this: *mut core::ffi::c_void, ppsecurityinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPO_Impl::GetSecurityInfo(this) { Ok(ok__) => { @@ -4752,10 +3753,7 @@ impl IGPMStarterGPO_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityInfo(this: *mut core::ffi::c_void, psecurityinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPO_Impl, - { + unsafe extern "system" fn SetSecurityInfo(this: *mut core::ffi::c_void, psecurityinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMStarterGPO_Impl::SetSecurityInfo(this, windows_core::from_raw_borrowed(&psecurityinfo)).into() } @@ -4806,14 +3804,8 @@ pub trait IGPMStarterGPOBackup_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMStarterGPOBackup {} #[cfg(feature = "Win32_System_Com")] impl IGPMStarterGPOBackup_Vtbl { - pub const fn new() -> IGPMStarterGPOBackup_Vtbl - where - Identity: IGPMStarterGPOBackup_Impl, - { - unsafe extern "system" fn BackupDir(this: *mut core::ffi::c_void, pbstrbackupdir: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + pub const fn new() -> IGPMStarterGPOBackup_Vtbl { + unsafe extern "system" fn BackupDir(this: *mut core::ffi::c_void, pbstrbackupdir: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackup_Impl::BackupDir(this) { Ok(ok__) => { @@ -4823,10 +3815,7 @@ impl IGPMStarterGPOBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Comment(this: *mut core::ffi::c_void, pbstrcomment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + unsafe extern "system" fn Comment(this: *mut core::ffi::c_void, pbstrcomment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackup_Impl::Comment(this) { Ok(ok__) => { @@ -4836,10 +3825,7 @@ impl IGPMStarterGPOBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pbstrdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pbstrdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackup_Impl::DisplayName(this) { Ok(ok__) => { @@ -4849,10 +3835,7 @@ impl IGPMStarterGPOBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Domain(this: *mut core::ffi::c_void, pbstrtemplatedomain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + unsafe extern "system" fn Domain(this: *mut core::ffi::c_void, pbstrtemplatedomain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackup_Impl::Domain(this) { Ok(ok__) => { @@ -4862,10 +3845,7 @@ impl IGPMStarterGPOBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StarterGPOID(this: *mut core::ffi::c_void, pbstrtemplateid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + unsafe extern "system" fn StarterGPOID(this: *mut core::ffi::c_void, pbstrtemplateid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackup_Impl::StarterGPOID(this) { Ok(ok__) => { @@ -4875,10 +3855,7 @@ impl IGPMStarterGPOBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ID(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + unsafe extern "system" fn ID(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackup_Impl::ID(this) { Ok(ok__) => { @@ -4888,10 +3865,7 @@ impl IGPMStarterGPOBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, ptimestamp: *mut f64) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, ptimestamp: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackup_Impl::Timestamp(this) { Ok(ok__) => { @@ -4901,10 +3875,7 @@ impl IGPMStarterGPOBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut GPMStarterGPOType) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut GPMStarterGPOType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackup_Impl::Type(this) { Ok(ok__) => { @@ -4914,17 +3885,11 @@ impl IGPMStarterGPOBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMStarterGPOBackup_Impl::Delete(this).into() } - unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + unsafe extern "system" fn GenerateReport(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const core::mem::MaybeUninit, pvargpmcancel: *mut core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackup_Impl::GenerateReport(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute_copy(&pvargpmprogress), core::mem::transmute_copy(&pvargpmcancel)) { Ok(ok__) => { @@ -4934,10 +3899,7 @@ impl IGPMStarterGPOBackup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateReportToFile(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackup_Impl, - { + unsafe extern "system" fn GenerateReportToFile(this: *mut core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: core::mem::MaybeUninit, ppigpmresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackup_Impl::GenerateReportToFile(this, core::mem::transmute_copy(&gpmreporttype), core::mem::transmute(&bstrtargetfilepath)) { Ok(ok__) => { @@ -4976,14 +3938,8 @@ pub trait IGPMStarterGPOBackupCollection_Impl: Sized + super::Com::IDispatch_Imp impl windows_core::RuntimeName for IGPMStarterGPOBackupCollection {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMStarterGPOBackupCollection_Vtbl { - pub const fn new() -> IGPMStarterGPOBackupCollection_Vtbl - where - Identity: IGPMStarterGPOBackupCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackupCollection_Impl, - { + pub const fn new() -> IGPMStarterGPOBackupCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackupCollection_Impl::Count(this) { Ok(ok__) => { @@ -4993,10 +3949,7 @@ impl IGPMStarterGPOBackupCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackupCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackupCollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -5006,10 +3959,7 @@ impl IGPMStarterGPOBackupCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmtmplbackup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOBackupCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmtmplbackup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOBackupCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5040,14 +3990,8 @@ pub trait IGPMStarterGPOCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMStarterGPOCollection {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMStarterGPOCollection_Vtbl { - pub const fn new() -> IGPMStarterGPOCollection_Vtbl - where - Identity: IGPMStarterGPOCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOCollection_Impl, - { + pub const fn new() -> IGPMStarterGPOCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOCollection_Impl::Count(this) { Ok(ok__) => { @@ -5057,10 +4001,7 @@ impl IGPMStarterGPOCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOCollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -5070,10 +4011,7 @@ impl IGPMStarterGPOCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmtemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStarterGPOCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppigpmtemplates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStarterGPOCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5107,14 +4045,8 @@ pub trait IGPMStatusMessage_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMStatusMessage {} #[cfg(feature = "Win32_System_Com")] impl IGPMStatusMessage_Vtbl { - pub const fn new() -> IGPMStatusMessage_Vtbl - where - Identity: IGPMStatusMessage_Impl, - { - unsafe extern "system" fn ObjectPath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStatusMessage_Impl, - { + pub const fn new() -> IGPMStatusMessage_Vtbl { + unsafe extern "system" fn ObjectPath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStatusMessage_Impl::ObjectPath(this) { Ok(ok__) => { @@ -5124,17 +4056,11 @@ impl IGPMStatusMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStatusMessage_Impl, - { + unsafe extern "system" fn ErrorCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMStatusMessage_Impl::ErrorCode(this).into() } - unsafe extern "system" fn ExtensionName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStatusMessage_Impl, - { + unsafe extern "system" fn ExtensionName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStatusMessage_Impl::ExtensionName(this) { Ok(ok__) => { @@ -5144,10 +4070,7 @@ impl IGPMStatusMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SettingsName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStatusMessage_Impl, - { + unsafe extern "system" fn SettingsName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStatusMessage_Impl::SettingsName(this) { Ok(ok__) => { @@ -5157,17 +4080,11 @@ impl IGPMStatusMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OperationCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStatusMessage_Impl, - { + unsafe extern "system" fn OperationCode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMStatusMessage_Impl::OperationCode(this).into() } - unsafe extern "system" fn Message(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStatusMessage_Impl, - { + unsafe extern "system" fn Message(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStatusMessage_Impl::Message(this) { Ok(ok__) => { @@ -5201,14 +4118,8 @@ pub trait IGPMStatusMsgCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMStatusMsgCollection {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMStatusMsgCollection_Vtbl { - pub const fn new() -> IGPMStatusMsgCollection_Vtbl - where - Identity: IGPMStatusMsgCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMStatusMsgCollection_Impl, - { + pub const fn new() -> IGPMStatusMsgCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStatusMsgCollection_Impl::Count(this) { Ok(ok__) => { @@ -5218,10 +4129,7 @@ impl IGPMStatusMsgCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMStatusMsgCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStatusMsgCollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -5231,10 +4139,7 @@ impl IGPMStatusMsgCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMStatusMsgCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMStatusMsgCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5267,14 +4172,8 @@ pub trait IGPMTrustee_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMTrustee {} #[cfg(feature = "Win32_System_Com")] impl IGPMTrustee_Vtbl { - pub const fn new() -> IGPMTrustee_Vtbl - where - Identity: IGPMTrustee_Impl, - { - unsafe extern "system" fn TrusteeSid(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMTrustee_Impl, - { + pub const fn new() -> IGPMTrustee_Vtbl { + unsafe extern "system" fn TrusteeSid(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMTrustee_Impl::TrusteeSid(this) { Ok(ok__) => { @@ -5284,10 +4183,7 @@ impl IGPMTrustee_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TrusteeName(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMTrustee_Impl, - { + unsafe extern "system" fn TrusteeName(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMTrustee_Impl::TrusteeName(this) { Ok(ok__) => { @@ -5297,10 +4193,7 @@ impl IGPMTrustee_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TrusteeDomain(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMTrustee_Impl, - { + unsafe extern "system" fn TrusteeDomain(this: *mut core::ffi::c_void, bstrval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMTrustee_Impl::TrusteeDomain(this) { Ok(ok__) => { @@ -5310,10 +4203,7 @@ impl IGPMTrustee_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TrusteeDSPath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMTrustee_Impl, - { + unsafe extern "system" fn TrusteeDSPath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMTrustee_Impl::TrusteeDSPath(this) { Ok(ok__) => { @@ -5323,10 +4213,7 @@ impl IGPMTrustee_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TrusteeType(this: *mut core::ffi::c_void, lval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMTrustee_Impl, - { + unsafe extern "system" fn TrusteeType(this: *mut core::ffi::c_void, lval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMTrustee_Impl::TrusteeType(this) { Ok(ok__) => { @@ -5364,14 +4251,8 @@ pub trait IGPMWMIFilter_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMWMIFilter {} #[cfg(feature = "Win32_System_Com")] impl IGPMWMIFilter_Vtbl { - pub const fn new() -> IGPMWMIFilter_Vtbl - where - Identity: IGPMWMIFilter_Impl, - { - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMWMIFilter_Impl, - { + pub const fn new() -> IGPMWMIFilter_Vtbl { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMWMIFilter_Impl::Path(this) { Ok(ok__) => { @@ -5381,17 +4262,11 @@ impl IGPMWMIFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMWMIFilter_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMWMIFilter_Impl::SetName(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMWMIFilter_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMWMIFilter_Impl::Name(this) { Ok(ok__) => { @@ -5401,17 +4276,11 @@ impl IGPMWMIFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMWMIFilter_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMWMIFilter_Impl::SetDescription(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMWMIFilter_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMWMIFilter_Impl::Description(this) { Ok(ok__) => { @@ -5421,10 +4290,7 @@ impl IGPMWMIFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQueryList(this: *mut core::ffi::c_void, pqrylist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMWMIFilter_Impl, - { + unsafe extern "system" fn GetQueryList(this: *mut core::ffi::c_void, pqrylist: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMWMIFilter_Impl::GetQueryList(this) { Ok(ok__) => { @@ -5434,10 +4300,7 @@ impl IGPMWMIFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSecurityInfo(this: *mut core::ffi::c_void, ppsecurityinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMWMIFilter_Impl, - { + unsafe extern "system" fn GetSecurityInfo(this: *mut core::ffi::c_void, ppsecurityinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMWMIFilter_Impl::GetSecurityInfo(this) { Ok(ok__) => { @@ -5447,10 +4310,7 @@ impl IGPMWMIFilter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityInfo(this: *mut core::ffi::c_void, psecurityinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMWMIFilter_Impl, - { + unsafe extern "system" fn SetSecurityInfo(this: *mut core::ffi::c_void, psecurityinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPMWMIFilter_Impl::SetSecurityInfo(this, windows_core::from_raw_borrowed(&psecurityinfo)).into() } @@ -5480,14 +4340,8 @@ pub trait IGPMWMIFilterCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IGPMWMIFilterCollection {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMWMIFilterCollection_Vtbl { - pub const fn new() -> IGPMWMIFilterCollection_Vtbl - where - Identity: IGPMWMIFilterCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IGPMWMIFilterCollection_Impl, - { + pub const fn new() -> IGPMWMIFilterCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMWMIFilterCollection_Impl::Count(this) { Ok(ok__) => { @@ -5497,10 +4351,7 @@ impl IGPMWMIFilterCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IGPMWMIFilterCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, lindex: i32, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMWMIFilterCollection_Impl::get_Item(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -5510,10 +4361,7 @@ impl IGPMWMIFilterCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGPMWMIFilterCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGPMWMIFilterCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5535,7 +4383,7 @@ impl IGPMWMIFilterCollection_Vtbl { } } #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Controls"))] -pub trait IGroupPolicyObject_Impl: Sized { +pub trait IGroupPolicyObject_Impl: Sized + windows_core::IUnknownImpl { fn New(&self, pszdomainname: &windows_core::PCWSTR, pszdisplayname: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; fn OpenDSGPO(&self, pszpath: &windows_core::PCWSTR, dwflags: GPO_OPEN_FLAGS) -> windows_core::Result<()>; fn OpenLocalMachineGPO(&self, dwflags: GPO_OPEN_FLAGS) -> windows_core::Result<()>; @@ -5559,133 +4407,76 @@ pub trait IGroupPolicyObject_Impl: Sized { impl windows_core::RuntimeName for IGroupPolicyObject {} #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Controls"))] impl IGroupPolicyObject_Vtbl { - pub const fn new() -> IGroupPolicyObject_Vtbl - where - Identity: IGroupPolicyObject_Impl, - { - unsafe extern "system" fn New(this: *mut core::ffi::c_void, pszdomainname: windows_core::PCWSTR, pszdisplayname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + pub const fn new() -> IGroupPolicyObject_Vtbl { + unsafe extern "system" fn New(this: *mut core::ffi::c_void, pszdomainname: windows_core::PCWSTR, pszdisplayname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::New(this, core::mem::transmute(&pszdomainname), core::mem::transmute(&pszdisplayname), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn OpenDSGPO(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, dwflags: GPO_OPEN_FLAGS) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn OpenDSGPO(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, dwflags: GPO_OPEN_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::OpenDSGPO(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn OpenLocalMachineGPO(this: *mut core::ffi::c_void, dwflags: GPO_OPEN_FLAGS) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn OpenLocalMachineGPO(this: *mut core::ffi::c_void, dwflags: GPO_OPEN_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::OpenLocalMachineGPO(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn OpenRemoteMachineGPO(this: *mut core::ffi::c_void, pszcomputername: windows_core::PCWSTR, dwflags: GPO_OPEN_FLAGS) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn OpenRemoteMachineGPO(this: *mut core::ffi::c_void, pszcomputername: windows_core::PCWSTR, dwflags: GPO_OPEN_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::OpenRemoteMachineGPO(this, core::mem::transmute(&pszcomputername), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut windows_core::GUID, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut windows_core::GUID, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::Save(this, core::mem::transmute_copy(&bmachine), core::mem::transmute_copy(&badd), core::mem::transmute_copy(&pguidextension), core::mem::transmute_copy(&pguid)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::Delete(this).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::GetName(this, core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchmaxlength)).into() } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::GetDisplayName(this, core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchmaxlength)).into() } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::SetDisplayName(this, core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pszpath: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pszpath: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::GetPath(this, core::mem::transmute_copy(&pszpath), core::mem::transmute_copy(&cchmaxlength)).into() } - unsafe extern "system" fn GetDSPath(this: *mut core::ffi::c_void, dwsection: u32, pszpath: windows_core::PWSTR, cchmaxpath: i32) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn GetDSPath(this: *mut core::ffi::c_void, dwsection: u32, pszpath: windows_core::PWSTR, cchmaxpath: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::GetDSPath(this, core::mem::transmute_copy(&dwsection), core::mem::transmute_copy(&pszpath), core::mem::transmute_copy(&cchmaxpath)).into() } - unsafe extern "system" fn GetFileSysPath(this: *mut core::ffi::c_void, dwsection: u32, pszpath: windows_core::PWSTR, cchmaxpath: i32) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn GetFileSysPath(this: *mut core::ffi::c_void, dwsection: u32, pszpath: windows_core::PWSTR, cchmaxpath: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::GetFileSysPath(this, core::mem::transmute_copy(&dwsection), core::mem::transmute_copy(&pszpath), core::mem::transmute_copy(&cchmaxpath)).into() } - unsafe extern "system" fn GetRegistryKey(this: *mut core::ffi::c_void, dwsection: GPO_SECTION, hkey: *mut super::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn GetRegistryKey(this: *mut core::ffi::c_void, dwsection: GPO_SECTION, hkey: *mut super::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::GetRegistryKey(this, core::mem::transmute_copy(&dwsection), core::mem::transmute_copy(&hkey)).into() } - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, dwoptions: *mut GPO_OPTIONS) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, dwoptions: *mut GPO_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::GetOptions(this, core::mem::transmute_copy(&dwoptions)).into() } - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, dwoptions: GPO_OPTIONS, dwmask: u32) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, dwoptions: GPO_OPTIONS, dwmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::SetOptions(this, core::mem::transmute_copy(&dwoptions), core::mem::transmute_copy(&dwmask)).into() } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, gpotype: *mut GROUP_POLICY_OBJECT_TYPE) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, gpotype: *mut GROUP_POLICY_OBJECT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::GetType(this, core::mem::transmute_copy(&gpotype)).into() } - unsafe extern "system" fn GetMachineName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn GetMachineName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::GetMachineName(this, core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchmaxlength)).into() } - unsafe extern "system" fn GetPropertySheetPages(this: *mut core::ffi::c_void, hpages: *mut *mut super::super::UI::Controls::HPROPSHEETPAGE, upagecount: *mut u32) -> windows_core::HRESULT - where - Identity: IGroupPolicyObject_Impl, - { + unsafe extern "system" fn GetPropertySheetPages(this: *mut core::ffi::c_void, hpages: *mut *mut super::super::UI::Controls::HPROPSHEETPAGE, upagecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::GetPropertySheetPages(this, core::mem::transmute_copy(&hpages), core::mem::transmute_copy(&upagecount)).into() } @@ -5715,35 +4506,23 @@ impl IGroupPolicyObject_Vtbl { iid == &::IID } } -pub trait IRSOPInformation_Impl: Sized { +pub trait IRSOPInformation_Impl: Sized + windows_core::IUnknownImpl { fn GetNamespace(&self, dwsection: u32, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::Result<()>; fn GetFlags(&self, pdwflags: *mut u32) -> windows_core::Result<()>; fn GetEventLogEntryText(&self, pszeventsource: &windows_core::PCWSTR, pszeventlogname: &windows_core::PCWSTR, pszeventtime: &windows_core::PCWSTR, dweventid: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IRSOPInformation {} impl IRSOPInformation_Vtbl { - pub const fn new() -> IRSOPInformation_Vtbl - where - Identity: IRSOPInformation_Impl, - { - unsafe extern "system" fn GetNamespace(this: *mut core::ffi::c_void, dwsection: u32, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT - where - Identity: IRSOPInformation_Impl, - { + pub const fn new() -> IRSOPInformation_Vtbl { + unsafe extern "system" fn GetNamespace(this: *mut core::ffi::c_void, dwsection: u32, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRSOPInformation_Impl::GetNamespace(this, core::mem::transmute_copy(&dwsection), core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchmaxlength)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IRSOPInformation_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRSOPInformation_Impl::GetFlags(this, core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn GetEventLogEntryText(this: *mut core::ffi::c_void, pszeventsource: windows_core::PCWSTR, pszeventlogname: windows_core::PCWSTR, pszeventtime: windows_core::PCWSTR, dweventid: u32, ppsztext: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IRSOPInformation_Impl, - { + unsafe extern "system" fn GetEventLogEntryText(this: *mut core::ffi::c_void, pszeventsource: windows_core::PCWSTR, pszeventlogname: windows_core::PCWSTR, pszeventtime: windows_core::PCWSTR, dweventid: u32, ppsztext: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRSOPInformation_Impl::GetEventLogEntryText(this, core::mem::transmute(&pszeventsource), core::mem::transmute(&pszeventlogname), core::mem::transmute(&pszeventtime), core::mem::transmute_copy(&dweventid)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/Iis/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Iis/impl.rs index 2cd622c10b..cfed38c8b6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Iis/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Iis/impl.rs @@ -1,24 +1,15 @@ -pub trait AsyncIFtpAuthenticationProvider_Impl: Sized { +pub trait AsyncIFtpAuthenticationProvider_Impl: Sized + windows_core::IUnknownImpl { fn Begin_AuthenticateUser(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszpassword: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Finish_AuthenticateUser(&self, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for AsyncIFtpAuthenticationProvider {} impl AsyncIFtpAuthenticationProvider_Vtbl { - pub const fn new() -> AsyncIFtpAuthenticationProvider_Vtbl - where - Identity: AsyncIFtpAuthenticationProvider_Impl, - { - unsafe extern "system" fn Begin_AuthenticateUser(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: AsyncIFtpAuthenticationProvider_Impl, - { + pub const fn new() -> AsyncIFtpAuthenticationProvider_Vtbl { + unsafe extern "system" fn Begin_AuthenticateUser(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIFtpAuthenticationProvider_Impl::Begin_AuthenticateUser(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszusername), core::mem::transmute(&pszpassword)).into() } - unsafe extern "system" fn Finish_AuthenticateUser(this: *mut core::ffi::c_void, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: AsyncIFtpAuthenticationProvider_Impl, - { + unsafe extern "system" fn Finish_AuthenticateUser(this: *mut core::ffi::c_void, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIFtpAuthenticationProvider_Impl::Finish_AuthenticateUser(this, core::mem::transmute_copy(&ppszcanonicalusername), core::mem::transmute_copy(&pfauthenticated)).into() } @@ -32,27 +23,18 @@ impl AsyncIFtpAuthenticationProvider_Vtbl { iid == &::IID } } -pub trait AsyncIFtpAuthorizationProvider_Impl: Sized { +pub trait AsyncIFtpAuthorizationProvider_Impl: Sized + windows_core::IUnknownImpl { fn Begin_GetUserAccessPermission(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszvirtualpath: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Finish_GetUserAccessPermission(&self) -> windows_core::Result; } impl windows_core::RuntimeName for AsyncIFtpAuthorizationProvider {} impl AsyncIFtpAuthorizationProvider_Vtbl { - pub const fn new() -> AsyncIFtpAuthorizationProvider_Vtbl - where - Identity: AsyncIFtpAuthorizationProvider_Impl, - { - unsafe extern "system" fn Begin_GetUserAccessPermission(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszvirtualpath: windows_core::PCWSTR, pszusername: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: AsyncIFtpAuthorizationProvider_Impl, - { + pub const fn new() -> AsyncIFtpAuthorizationProvider_Vtbl { + unsafe extern "system" fn Begin_GetUserAccessPermission(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszvirtualpath: windows_core::PCWSTR, pszusername: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIFtpAuthorizationProvider_Impl::Begin_GetUserAccessPermission(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszvirtualpath), core::mem::transmute(&pszusername)).into() } - unsafe extern "system" fn Finish_GetUserAccessPermission(this: *mut core::ffi::c_void, pftpaccess: *mut FTP_ACCESS) -> windows_core::HRESULT - where - Identity: AsyncIFtpAuthorizationProvider_Impl, - { + unsafe extern "system" fn Finish_GetUserAccessPermission(this: *mut core::ffi::c_void, pftpaccess: *mut FTP_ACCESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIFtpAuthorizationProvider_Impl::Finish_GetUserAccessPermission(this) { Ok(ok__) => { @@ -72,27 +54,18 @@ impl AsyncIFtpAuthorizationProvider_Vtbl { iid == &::IID } } -pub trait AsyncIFtpHomeDirectoryProvider_Impl: Sized { +pub trait AsyncIFtpHomeDirectoryProvider_Impl: Sized + windows_core::IUnknownImpl { fn Begin_GetUserHomeDirectoryData(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Finish_GetUserHomeDirectoryData(&self) -> windows_core::Result; } impl windows_core::RuntimeName for AsyncIFtpHomeDirectoryProvider {} impl AsyncIFtpHomeDirectoryProvider_Vtbl { - pub const fn new() -> AsyncIFtpHomeDirectoryProvider_Vtbl - where - Identity: AsyncIFtpHomeDirectoryProvider_Impl, - { - unsafe extern "system" fn Begin_GetUserHomeDirectoryData(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: AsyncIFtpHomeDirectoryProvider_Impl, - { + pub const fn new() -> AsyncIFtpHomeDirectoryProvider_Vtbl { + unsafe extern "system" fn Begin_GetUserHomeDirectoryData(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIFtpHomeDirectoryProvider_Impl::Begin_GetUserHomeDirectoryData(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszusername)).into() } - unsafe extern "system" fn Finish_GetUserHomeDirectoryData(this: *mut core::ffi::c_void, ppszhomedirectorydata: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: AsyncIFtpHomeDirectoryProvider_Impl, - { + unsafe extern "system" fn Finish_GetUserHomeDirectoryData(this: *mut core::ffi::c_void, ppszhomedirectorydata: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIFtpHomeDirectoryProvider_Impl::Finish_GetUserHomeDirectoryData(this) { Ok(ok__) => { @@ -112,27 +85,18 @@ impl AsyncIFtpHomeDirectoryProvider_Vtbl { iid == &::IID } } -pub trait AsyncIFtpLogProvider_Impl: Sized { +pub trait AsyncIFtpLogProvider_Impl: Sized + windows_core::IUnknownImpl { fn Begin_Log(&self, ploggingparameters: *const LOGGING_PARAMETERS) -> windows_core::Result<()>; fn Finish_Log(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for AsyncIFtpLogProvider {} impl AsyncIFtpLogProvider_Vtbl { - pub const fn new() -> AsyncIFtpLogProvider_Vtbl - where - Identity: AsyncIFtpLogProvider_Impl, - { - unsafe extern "system" fn Begin_Log(this: *mut core::ffi::c_void, ploggingparameters: *const LOGGING_PARAMETERS) -> windows_core::HRESULT - where - Identity: AsyncIFtpLogProvider_Impl, - { + pub const fn new() -> AsyncIFtpLogProvider_Vtbl { + unsafe extern "system" fn Begin_Log(this: *mut core::ffi::c_void, ploggingparameters: *const LOGGING_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIFtpLogProvider_Impl::Begin_Log(this, core::mem::transmute_copy(&ploggingparameters)).into() } - unsafe extern "system" fn Finish_Log(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIFtpLogProvider_Impl, - { + unsafe extern "system" fn Finish_Log(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIFtpLogProvider_Impl::Finish_Log(this).into() } @@ -146,27 +110,18 @@ impl AsyncIFtpLogProvider_Vtbl { iid == &::IID } } -pub trait AsyncIFtpPostprocessProvider_Impl: Sized { +pub trait AsyncIFtpPostprocessProvider_Impl: Sized + windows_core::IUnknownImpl { fn Begin_HandlePostprocess(&self, ppostprocessparameters: *const POST_PROCESS_PARAMETERS) -> windows_core::Result<()>; fn Finish_HandlePostprocess(&self) -> windows_core::Result; } impl windows_core::RuntimeName for AsyncIFtpPostprocessProvider {} impl AsyncIFtpPostprocessProvider_Vtbl { - pub const fn new() -> AsyncIFtpPostprocessProvider_Vtbl - where - Identity: AsyncIFtpPostprocessProvider_Impl, - { - unsafe extern "system" fn Begin_HandlePostprocess(this: *mut core::ffi::c_void, ppostprocessparameters: *const POST_PROCESS_PARAMETERS) -> windows_core::HRESULT - where - Identity: AsyncIFtpPostprocessProvider_Impl, - { + pub const fn new() -> AsyncIFtpPostprocessProvider_Vtbl { + unsafe extern "system" fn Begin_HandlePostprocess(this: *mut core::ffi::c_void, ppostprocessparameters: *const POST_PROCESS_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIFtpPostprocessProvider_Impl::Begin_HandlePostprocess(this, core::mem::transmute_copy(&ppostprocessparameters)).into() } - unsafe extern "system" fn Finish_HandlePostprocess(this: *mut core::ffi::c_void, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> windows_core::HRESULT - where - Identity: AsyncIFtpPostprocessProvider_Impl, - { + unsafe extern "system" fn Finish_HandlePostprocess(this: *mut core::ffi::c_void, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIFtpPostprocessProvider_Impl::Finish_HandlePostprocess(this) { Ok(ok__) => { @@ -186,27 +141,18 @@ impl AsyncIFtpPostprocessProvider_Vtbl { iid == &::IID } } -pub trait AsyncIFtpPreprocessProvider_Impl: Sized { +pub trait AsyncIFtpPreprocessProvider_Impl: Sized + windows_core::IUnknownImpl { fn Begin_HandlePreprocess(&self, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS) -> windows_core::Result<()>; fn Finish_HandlePreprocess(&self) -> windows_core::Result; } impl windows_core::RuntimeName for AsyncIFtpPreprocessProvider {} impl AsyncIFtpPreprocessProvider_Vtbl { - pub const fn new() -> AsyncIFtpPreprocessProvider_Vtbl - where - Identity: AsyncIFtpPreprocessProvider_Impl, - { - unsafe extern "system" fn Begin_HandlePreprocess(this: *mut core::ffi::c_void, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS) -> windows_core::HRESULT - where - Identity: AsyncIFtpPreprocessProvider_Impl, - { + pub const fn new() -> AsyncIFtpPreprocessProvider_Vtbl { + unsafe extern "system" fn Begin_HandlePreprocess(this: *mut core::ffi::c_void, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIFtpPreprocessProvider_Impl::Begin_HandlePreprocess(this, core::mem::transmute_copy(&ppreprocessparameters)).into() } - unsafe extern "system" fn Finish_HandlePreprocess(this: *mut core::ffi::c_void, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> windows_core::HRESULT - where - Identity: AsyncIFtpPreprocessProvider_Impl, - { + unsafe extern "system" fn Finish_HandlePreprocess(this: *mut core::ffi::c_void, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIFtpPreprocessProvider_Impl::Finish_HandlePreprocess(this) { Ok(ok__) => { @@ -226,27 +172,18 @@ impl AsyncIFtpPreprocessProvider_Vtbl { iid == &::IID } } -pub trait AsyncIFtpRoleProvider_Impl: Sized { +pub trait AsyncIFtpRoleProvider_Impl: Sized + windows_core::IUnknownImpl { fn Begin_IsUserInRole(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszrole: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Finish_IsUserInRole(&self) -> windows_core::Result; } impl windows_core::RuntimeName for AsyncIFtpRoleProvider {} impl AsyncIFtpRoleProvider_Vtbl { - pub const fn new() -> AsyncIFtpRoleProvider_Vtbl - where - Identity: AsyncIFtpRoleProvider_Impl, - { - unsafe extern "system" fn Begin_IsUserInRole(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszrole: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: AsyncIFtpRoleProvider_Impl, - { + pub const fn new() -> AsyncIFtpRoleProvider_Vtbl { + unsafe extern "system" fn Begin_IsUserInRole(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszrole: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIFtpRoleProvider_Impl::Begin_IsUserInRole(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszusername), core::mem::transmute(&pszrole)).into() } - unsafe extern "system" fn Finish_IsUserInRole(this: *mut core::ffi::c_void, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: AsyncIFtpRoleProvider_Impl, - { + unsafe extern "system" fn Finish_IsUserInRole(this: *mut core::ffi::c_void, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIFtpRoleProvider_Impl::Finish_IsUserInRole(this) { Ok(ok__) => { @@ -266,7 +203,7 @@ impl AsyncIFtpRoleProvider_Vtbl { iid == &::IID } } -pub trait AsyncIMSAdminBaseSinkW_Impl: Sized { +pub trait AsyncIMSAdminBaseSinkW_Impl: Sized + windows_core::IUnknownImpl { fn Begin_SinkNotify(&self, dwmdnumelements: u32, pcochangelist: *const MD_CHANGE_OBJECT_W) -> windows_core::Result<()>; fn Finish_SinkNotify(&self) -> windows_core::Result<()>; fn Begin_ShutdownNotify(&self) -> windows_core::Result<()>; @@ -274,35 +211,20 @@ pub trait AsyncIMSAdminBaseSinkW_Impl: Sized { } impl windows_core::RuntimeName for AsyncIMSAdminBaseSinkW {} impl AsyncIMSAdminBaseSinkW_Vtbl { - pub const fn new() -> AsyncIMSAdminBaseSinkW_Vtbl - where - Identity: AsyncIMSAdminBaseSinkW_Impl, - { - unsafe extern "system" fn Begin_SinkNotify(this: *mut core::ffi::c_void, dwmdnumelements: u32, pcochangelist: *const MD_CHANGE_OBJECT_W) -> windows_core::HRESULT - where - Identity: AsyncIMSAdminBaseSinkW_Impl, - { + pub const fn new() -> AsyncIMSAdminBaseSinkW_Vtbl { + unsafe extern "system" fn Begin_SinkNotify(this: *mut core::ffi::c_void, dwmdnumelements: u32, pcochangelist: *const MD_CHANGE_OBJECT_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIMSAdminBaseSinkW_Impl::Begin_SinkNotify(this, core::mem::transmute_copy(&dwmdnumelements), core::mem::transmute_copy(&pcochangelist)).into() } - unsafe extern "system" fn Finish_SinkNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIMSAdminBaseSinkW_Impl, - { + unsafe extern "system" fn Finish_SinkNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIMSAdminBaseSinkW_Impl::Finish_SinkNotify(this).into() } - unsafe extern "system" fn Begin_ShutdownNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIMSAdminBaseSinkW_Impl, - { + unsafe extern "system" fn Begin_ShutdownNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIMSAdminBaseSinkW_Impl::Begin_ShutdownNotify(this).into() } - unsafe extern "system" fn Finish_ShutdownNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: AsyncIMSAdminBaseSinkW_Impl, - { + unsafe extern "system" fn Finish_ShutdownNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIMSAdminBaseSinkW_Impl::Finish_ShutdownNotify(this).into() } @@ -318,35 +240,23 @@ impl AsyncIMSAdminBaseSinkW_Vtbl { iid == &::IID } } -pub trait IADMEXT_Impl: Sized { +pub trait IADMEXT_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result<()>; fn EnumDcomCLSIDs(&self, pclsiddcom: *mut windows_core::GUID, dwenumindex: u32) -> windows_core::Result<()>; fn Terminate(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IADMEXT {} impl IADMEXT_Vtbl { - pub const fn new() -> IADMEXT_Vtbl - where - Identity: IADMEXT_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADMEXT_Impl, - { + pub const fn new() -> IADMEXT_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADMEXT_Impl::Initialize(this).into() } - unsafe extern "system" fn EnumDcomCLSIDs(this: *mut core::ffi::c_void, pclsiddcom: *mut windows_core::GUID, dwenumindex: u32) -> windows_core::HRESULT - where - Identity: IADMEXT_Impl, - { + unsafe extern "system" fn EnumDcomCLSIDs(this: *mut core::ffi::c_void, pclsiddcom: *mut windows_core::GUID, dwenumindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADMEXT_Impl::EnumDcomCLSIDs(this, core::mem::transmute_copy(&pclsiddcom), core::mem::transmute_copy(&dwenumindex)).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADMEXT_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADMEXT_Impl::Terminate(this).into() } @@ -361,19 +271,13 @@ impl IADMEXT_Vtbl { iid == &::IID } } -pub trait IFtpAuthenticationProvider_Impl: Sized { +pub trait IFtpAuthenticationProvider_Impl: Sized + windows_core::IUnknownImpl { fn AuthenticateUser(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszpassword: &windows_core::PCWSTR, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFtpAuthenticationProvider {} impl IFtpAuthenticationProvider_Vtbl { - pub const fn new() -> IFtpAuthenticationProvider_Vtbl - where - Identity: IFtpAuthenticationProvider_Impl, - { - unsafe extern "system" fn AuthenticateUser(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFtpAuthenticationProvider_Impl, - { + pub const fn new() -> IFtpAuthenticationProvider_Vtbl { + unsafe extern "system" fn AuthenticateUser(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFtpAuthenticationProvider_Impl::AuthenticateUser(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszusername), core::mem::transmute(&pszpassword), core::mem::transmute_copy(&ppszcanonicalusername), core::mem::transmute_copy(&pfauthenticated)).into() } @@ -383,19 +287,13 @@ impl IFtpAuthenticationProvider_Vtbl { iid == &::IID } } -pub trait IFtpAuthorizationProvider_Impl: Sized { +pub trait IFtpAuthorizationProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetUserAccessPermission(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszvirtualpath: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IFtpAuthorizationProvider {} impl IFtpAuthorizationProvider_Vtbl { - pub const fn new() -> IFtpAuthorizationProvider_Vtbl - where - Identity: IFtpAuthorizationProvider_Impl, - { - unsafe extern "system" fn GetUserAccessPermission(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszvirtualpath: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pftpaccess: *mut FTP_ACCESS) -> windows_core::HRESULT - where - Identity: IFtpAuthorizationProvider_Impl, - { + pub const fn new() -> IFtpAuthorizationProvider_Vtbl { + unsafe extern "system" fn GetUserAccessPermission(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszvirtualpath: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pftpaccess: *mut FTP_ACCESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFtpAuthorizationProvider_Impl::GetUserAccessPermission(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszvirtualpath), core::mem::transmute(&pszusername)) { Ok(ok__) => { @@ -411,19 +309,13 @@ impl IFtpAuthorizationProvider_Vtbl { iid == &::IID } } -pub trait IFtpHomeDirectoryProvider_Impl: Sized { +pub trait IFtpHomeDirectoryProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetUserHomeDirectoryData(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IFtpHomeDirectoryProvider {} impl IFtpHomeDirectoryProvider_Vtbl { - pub const fn new() -> IFtpHomeDirectoryProvider_Vtbl - where - Identity: IFtpHomeDirectoryProvider_Impl, - { - unsafe extern "system" fn GetUserHomeDirectoryData(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, ppszhomedirectorydata: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IFtpHomeDirectoryProvider_Impl, - { + pub const fn new() -> IFtpHomeDirectoryProvider_Vtbl { + unsafe extern "system" fn GetUserHomeDirectoryData(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, ppszhomedirectorydata: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFtpHomeDirectoryProvider_Impl::GetUserHomeDirectoryData(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszusername)) { Ok(ok__) => { @@ -439,19 +331,13 @@ impl IFtpHomeDirectoryProvider_Vtbl { iid == &::IID } } -pub trait IFtpLogProvider_Impl: Sized { +pub trait IFtpLogProvider_Impl: Sized + windows_core::IUnknownImpl { fn Log(&self, ploggingparameters: *const LOGGING_PARAMETERS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFtpLogProvider {} impl IFtpLogProvider_Vtbl { - pub const fn new() -> IFtpLogProvider_Vtbl - where - Identity: IFtpLogProvider_Impl, - { - unsafe extern "system" fn Log(this: *mut core::ffi::c_void, ploggingparameters: *const LOGGING_PARAMETERS) -> windows_core::HRESULT - where - Identity: IFtpLogProvider_Impl, - { + pub const fn new() -> IFtpLogProvider_Vtbl { + unsafe extern "system" fn Log(this: *mut core::ffi::c_void, ploggingparameters: *const LOGGING_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFtpLogProvider_Impl::Log(this, core::mem::transmute_copy(&ploggingparameters)).into() } @@ -461,19 +347,13 @@ impl IFtpLogProvider_Vtbl { iid == &::IID } } -pub trait IFtpPostprocessProvider_Impl: Sized { +pub trait IFtpPostprocessProvider_Impl: Sized + windows_core::IUnknownImpl { fn HandlePostprocess(&self, ppostprocessparameters: *const POST_PROCESS_PARAMETERS) -> windows_core::Result; } impl windows_core::RuntimeName for IFtpPostprocessProvider {} impl IFtpPostprocessProvider_Vtbl { - pub const fn new() -> IFtpPostprocessProvider_Vtbl - where - Identity: IFtpPostprocessProvider_Impl, - { - unsafe extern "system" fn HandlePostprocess(this: *mut core::ffi::c_void, ppostprocessparameters: *const POST_PROCESS_PARAMETERS, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> windows_core::HRESULT - where - Identity: IFtpPostprocessProvider_Impl, - { + pub const fn new() -> IFtpPostprocessProvider_Vtbl { + unsafe extern "system" fn HandlePostprocess(this: *mut core::ffi::c_void, ppostprocessparameters: *const POST_PROCESS_PARAMETERS, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFtpPostprocessProvider_Impl::HandlePostprocess(this, core::mem::transmute_copy(&ppostprocessparameters)) { Ok(ok__) => { @@ -489,19 +369,13 @@ impl IFtpPostprocessProvider_Vtbl { iid == &::IID } } -pub trait IFtpPreprocessProvider_Impl: Sized { +pub trait IFtpPreprocessProvider_Impl: Sized + windows_core::IUnknownImpl { fn HandlePreprocess(&self, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS) -> windows_core::Result; } impl windows_core::RuntimeName for IFtpPreprocessProvider {} impl IFtpPreprocessProvider_Vtbl { - pub const fn new() -> IFtpPreprocessProvider_Vtbl - where - Identity: IFtpPreprocessProvider_Impl, - { - unsafe extern "system" fn HandlePreprocess(this: *mut core::ffi::c_void, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> windows_core::HRESULT - where - Identity: IFtpPreprocessProvider_Impl, - { + pub const fn new() -> IFtpPreprocessProvider_Vtbl { + unsafe extern "system" fn HandlePreprocess(this: *mut core::ffi::c_void, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFtpPreprocessProvider_Impl::HandlePreprocess(this, core::mem::transmute_copy(&ppreprocessparameters)) { Ok(ok__) => { @@ -518,21 +392,15 @@ impl IFtpPreprocessProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IFtpProviderConstruct_Impl: Sized { +pub trait IFtpProviderConstruct_Impl: Sized + windows_core::IUnknownImpl { fn Construct(&self, configurationentries: *const super::Com::SAFEARRAY) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IFtpProviderConstruct {} #[cfg(feature = "Win32_System_Com")] impl IFtpProviderConstruct_Vtbl { - pub const fn new() -> IFtpProviderConstruct_Vtbl - where - Identity: IFtpProviderConstruct_Impl, - { - unsafe extern "system" fn Construct(this: *mut core::ffi::c_void, configurationentries: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IFtpProviderConstruct_Impl, - { + pub const fn new() -> IFtpProviderConstruct_Vtbl { + unsafe extern "system" fn Construct(this: *mut core::ffi::c_void, configurationentries: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFtpProviderConstruct_Impl::Construct(this, core::mem::transmute_copy(&configurationentries)).into() } @@ -542,19 +410,13 @@ impl IFtpProviderConstruct_Vtbl { iid == &::IID } } -pub trait IFtpRoleProvider_Impl: Sized { +pub trait IFtpRoleProvider_Impl: Sized + windows_core::IUnknownImpl { fn IsUserInRole(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszrole: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IFtpRoleProvider {} impl IFtpRoleProvider_Vtbl { - pub const fn new() -> IFtpRoleProvider_Vtbl - where - Identity: IFtpRoleProvider_Impl, - { - unsafe extern "system" fn IsUserInRole(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszrole: windows_core::PCWSTR, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFtpRoleProvider_Impl, - { + pub const fn new() -> IFtpRoleProvider_Vtbl { + unsafe extern "system" fn IsUserInRole(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszrole: windows_core::PCWSTR, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFtpRoleProvider_Impl::IsUserInRole(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszusername), core::mem::transmute(&pszrole)) { Ok(ok__) => { @@ -580,49 +442,28 @@ pub trait IMSAdminBase2W_Impl: Sized + IMSAdminBaseW_Impl { } impl windows_core::RuntimeName for IMSAdminBase2W {} impl IMSAdminBase2W_Vtbl { - pub const fn new() -> IMSAdminBase2W_Vtbl - where - Identity: IMSAdminBase2W_Impl, - { - unsafe extern "system" fn BackupWithPasswd(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PCWSTR, dwmdversion: u32, dwmdflags: u32, pszpasswd: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMSAdminBase2W_Impl, - { + pub const fn new() -> IMSAdminBase2W_Vtbl { + unsafe extern "system" fn BackupWithPasswd(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PCWSTR, dwmdversion: u32, dwmdflags: u32, pszpasswd: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBase2W_Impl::BackupWithPasswd(this, core::mem::transmute(&pszmdbackuplocation), core::mem::transmute_copy(&dwmdversion), core::mem::transmute_copy(&dwmdflags), core::mem::transmute(&pszpasswd)).into() } - unsafe extern "system" fn RestoreWithPasswd(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PCWSTR, dwmdversion: u32, dwmdflags: u32, pszpasswd: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMSAdminBase2W_Impl, - { + unsafe extern "system" fn RestoreWithPasswd(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PCWSTR, dwmdversion: u32, dwmdflags: u32, pszpasswd: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBase2W_Impl::RestoreWithPasswd(this, core::mem::transmute(&pszmdbackuplocation), core::mem::transmute_copy(&dwmdversion), core::mem::transmute_copy(&dwmdflags), core::mem::transmute(&pszpasswd)).into() } - unsafe extern "system" fn Export(this: *mut core::ffi::c_void, pszpasswd: windows_core::PCWSTR, pszfilename: windows_core::PCWSTR, pszsourcepath: windows_core::PCWSTR, dwmdflags: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBase2W_Impl, - { + unsafe extern "system" fn Export(this: *mut core::ffi::c_void, pszpasswd: windows_core::PCWSTR, pszfilename: windows_core::PCWSTR, pszsourcepath: windows_core::PCWSTR, dwmdflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBase2W_Impl::Export(this, core::mem::transmute(&pszpasswd), core::mem::transmute(&pszfilename), core::mem::transmute(&pszsourcepath), core::mem::transmute_copy(&dwmdflags)).into() } - unsafe extern "system" fn Import(this: *mut core::ffi::c_void, pszpasswd: windows_core::PCWSTR, pszfilename: windows_core::PCWSTR, pszsourcepath: windows_core::PCWSTR, pszdestpath: windows_core::PCWSTR, dwmdflags: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBase2W_Impl, - { + unsafe extern "system" fn Import(this: *mut core::ffi::c_void, pszpasswd: windows_core::PCWSTR, pszfilename: windows_core::PCWSTR, pszsourcepath: windows_core::PCWSTR, pszdestpath: windows_core::PCWSTR, dwmdflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBase2W_Impl::Import(this, core::mem::transmute(&pszpasswd), core::mem::transmute(&pszfilename), core::mem::transmute(&pszsourcepath), core::mem::transmute(&pszdestpath), core::mem::transmute_copy(&dwmdflags)).into() } - unsafe extern "system" fn RestoreHistory(this: *mut core::ffi::c_void, pszmdhistorylocation: windows_core::PCWSTR, dwmdmajorversion: u32, dwmdminorversion: u32, dwmdflags: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBase2W_Impl, - { + unsafe extern "system" fn RestoreHistory(this: *mut core::ffi::c_void, pszmdhistorylocation: windows_core::PCWSTR, dwmdmajorversion: u32, dwmdminorversion: u32, dwmdflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBase2W_Impl::RestoreHistory(this, core::mem::transmute(&pszmdhistorylocation), core::mem::transmute_copy(&dwmdmajorversion), core::mem::transmute_copy(&dwmdminorversion), core::mem::transmute_copy(&dwmdflags)).into() } - unsafe extern "system" fn EnumHistory(this: *mut core::ffi::c_void, pszmdhistorylocation: windows_core::PWSTR, pdwmdmajorversion: *mut u32, pdwmdminorversion: *mut u32, pftmdhistorytime: *mut super::super::Foundation::FILETIME, dwmdenumindex: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBase2W_Impl, - { + unsafe extern "system" fn EnumHistory(this: *mut core::ffi::c_void, pszmdhistorylocation: windows_core::PWSTR, pdwmdmajorversion: *mut u32, pdwmdminorversion: *mut u32, pftmdhistorytime: *mut super::super::Foundation::FILETIME, dwmdenumindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBase2W_Impl::EnumHistory(this, core::mem::transmute(&pszmdhistorylocation), core::mem::transmute_copy(&pdwmdmajorversion), core::mem::transmute_copy(&pdwmdminorversion), core::mem::transmute_copy(&pftmdhistorytime), core::mem::transmute_copy(&dwmdenumindex)).into() } @@ -645,14 +486,8 @@ pub trait IMSAdminBase3W_Impl: Sized + IMSAdminBase2W_Impl { } impl windows_core::RuntimeName for IMSAdminBase3W {} impl IMSAdminBase3W_Vtbl { - pub const fn new() -> IMSAdminBase3W_Vtbl - where - Identity: IMSAdminBase3W_Impl, - { - unsafe extern "system" fn GetChildPaths(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, cchmdbuffersize: u32, pszbuffer: windows_core::PWSTR, pcchmdrequiredbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IMSAdminBase3W_Impl, - { + pub const fn new() -> IMSAdminBase3W_Vtbl { + unsafe extern "system" fn GetChildPaths(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, cchmdbuffersize: u32, pszbuffer: windows_core::PWSTR, pcchmdrequiredbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBase3W_Impl::GetChildPaths(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&cchmdbuffersize), core::mem::transmute(&pszbuffer), core::mem::transmute_copy(&pcchmdrequiredbuffersize)).into() } @@ -662,27 +497,18 @@ impl IMSAdminBase3W_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMSAdminBaseSinkW_Impl: Sized { +pub trait IMSAdminBaseSinkW_Impl: Sized + windows_core::IUnknownImpl { fn SinkNotify(&self, dwmdnumelements: u32, pcochangelist: *const MD_CHANGE_OBJECT_W) -> windows_core::Result<()>; fn ShutdownNotify(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMSAdminBaseSinkW {} impl IMSAdminBaseSinkW_Vtbl { - pub const fn new() -> IMSAdminBaseSinkW_Vtbl - where - Identity: IMSAdminBaseSinkW_Impl, - { - unsafe extern "system" fn SinkNotify(this: *mut core::ffi::c_void, dwmdnumelements: u32, pcochangelist: *const MD_CHANGE_OBJECT_W) -> windows_core::HRESULT - where - Identity: IMSAdminBaseSinkW_Impl, - { + pub const fn new() -> IMSAdminBaseSinkW_Vtbl { + unsafe extern "system" fn SinkNotify(this: *mut core::ffi::c_void, dwmdnumelements: u32, pcochangelist: *const MD_CHANGE_OBJECT_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseSinkW_Impl::SinkNotify(this, core::mem::transmute_copy(&dwmdnumelements), core::mem::transmute_copy(&pcochangelist)).into() } - unsafe extern "system" fn ShutdownNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSAdminBaseSinkW_Impl, - { + unsafe extern "system" fn ShutdownNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseSinkW_Impl::ShutdownNotify(this).into() } @@ -696,7 +522,7 @@ impl IMSAdminBaseSinkW_Vtbl { iid == &::IID } } -pub trait IMSAdminBaseW_Impl: Sized { +pub trait IMSAdminBaseW_Impl: Sized + windows_core::IUnknownImpl { fn AddKey(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn DeleteKey(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn DeleteChildKeys(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -731,112 +557,64 @@ pub trait IMSAdminBaseW_Impl: Sized { } impl windows_core::RuntimeName for IMSAdminBaseW {} impl IMSAdminBaseW_Vtbl { - pub const fn new() -> IMSAdminBaseW_Vtbl - where - Identity: IMSAdminBaseW_Impl, - { - unsafe extern "system" fn AddKey(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + pub const fn new() -> IMSAdminBaseW_Vtbl { + unsafe extern "system" fn AddKey(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::AddKey(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath)).into() } - unsafe extern "system" fn DeleteKey(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn DeleteKey(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::DeleteKey(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath)).into() } - unsafe extern "system" fn DeleteChildKeys(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn DeleteChildKeys(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::DeleteChildKeys(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath)).into() } - unsafe extern "system" fn EnumKeys(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pszmdname: windows_core::PWSTR, dwmdenumobjectindex: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn EnumKeys(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pszmdname: windows_core::PWSTR, dwmdenumobjectindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::EnumKeys(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&pszmdname), core::mem::transmute_copy(&dwmdenumobjectindex)).into() } - unsafe extern "system" fn CopyKey(this: *mut core::ffi::c_void, hmdsourcehandle: u32, pszmdsourcepath: windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: windows_core::PCWSTR, bmdoverwriteflag: super::super::Foundation::BOOL, bmdcopyflag: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn CopyKey(this: *mut core::ffi::c_void, hmdsourcehandle: u32, pszmdsourcepath: windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: windows_core::PCWSTR, bmdoverwriteflag: super::super::Foundation::BOOL, bmdcopyflag: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::CopyKey(this, core::mem::transmute_copy(&hmdsourcehandle), core::mem::transmute(&pszmdsourcepath), core::mem::transmute_copy(&hmddesthandle), core::mem::transmute(&pszmddestpath), core::mem::transmute_copy(&bmdoverwriteflag), core::mem::transmute_copy(&bmdcopyflag)).into() } - unsafe extern "system" fn RenameKey(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pszmdnewname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn RenameKey(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pszmdnewname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::RenameKey(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute(&pszmdnewname)).into() } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pmdrmddata: *mut METADATA_RECORD) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pmdrmddata: *mut METADATA_RECORD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::SetData(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&pmdrmddata)).into() } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pmdrmddata: *mut METADATA_RECORD, pdwmdrequireddatalen: *mut u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pmdrmddata: *mut METADATA_RECORD, pdwmdrequireddatalen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::GetData(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&pmdrmddata), core::mem::transmute_copy(&pdwmdrequireddatalen)).into() } - unsafe extern "system" fn DeleteData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, dwmdidentifier: u32, dwmddatatype: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn DeleteData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, dwmdidentifier: u32, dwmddatatype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::DeleteData(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&dwmdidentifier), core::mem::transmute_copy(&dwmddatatype)).into() } - unsafe extern "system" fn EnumData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pmdrmddata: *mut METADATA_RECORD, dwmdenumdataindex: u32, pdwmdrequireddatalen: *mut u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn EnumData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pmdrmddata: *mut METADATA_RECORD, dwmdenumdataindex: u32, pdwmdrequireddatalen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::EnumData(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&pmdrmddata), core::mem::transmute_copy(&dwmdenumdataindex), core::mem::transmute_copy(&pdwmdrequireddatalen)).into() } - unsafe extern "system" fn GetAllData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, pdwmdnumdataentries: *mut u32, pdwmddatasetnumber: *mut u32, dwmdbuffersize: u32, pbmdbuffer: *mut u8, pdwmdrequiredbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn GetAllData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, pdwmdnumdataentries: *mut u32, pdwmddatasetnumber: *mut u32, dwmdbuffersize: u32, pbmdbuffer: *mut u8, pdwmdrequiredbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::GetAllData(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&dwmdattributes), core::mem::transmute_copy(&dwmdusertype), core::mem::transmute_copy(&dwmddatatype), core::mem::transmute_copy(&pdwmdnumdataentries), core::mem::transmute_copy(&pdwmddatasetnumber), core::mem::transmute_copy(&dwmdbuffersize), core::mem::transmute_copy(&pbmdbuffer), core::mem::transmute_copy(&pdwmdrequiredbuffersize)).into() } - unsafe extern "system" fn DeleteAllData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, dwmdusertype: u32, dwmddatatype: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn DeleteAllData(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, dwmdusertype: u32, dwmddatatype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::DeleteAllData(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&dwmdusertype), core::mem::transmute_copy(&dwmddatatype)).into() } - unsafe extern "system" fn CopyData(this: *mut core::ffi::c_void, hmdsourcehandle: u32, pszmdsourcepath: windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: windows_core::PCWSTR, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, bmdcopyflag: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn CopyData(this: *mut core::ffi::c_void, hmdsourcehandle: u32, pszmdsourcepath: windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: windows_core::PCWSTR, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, bmdcopyflag: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::CopyData(this, core::mem::transmute_copy(&hmdsourcehandle), core::mem::transmute(&pszmdsourcepath), core::mem::transmute_copy(&hmddesthandle), core::mem::transmute(&pszmddestpath), core::mem::transmute_copy(&dwmdattributes), core::mem::transmute_copy(&dwmdusertype), core::mem::transmute_copy(&dwmddatatype), core::mem::transmute_copy(&bmdcopyflag)).into() } - unsafe extern "system" fn GetDataPaths(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, dwmdidentifier: u32, dwmddatatype: u32, dwmdbuffersize: u32, pszbuffer: windows_core::PWSTR, pdwmdrequiredbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn GetDataPaths(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, dwmdidentifier: u32, dwmddatatype: u32, dwmdbuffersize: u32, pszbuffer: windows_core::PWSTR, pdwmdrequiredbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::GetDataPaths(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&dwmdidentifier), core::mem::transmute_copy(&dwmddatatype), core::mem::transmute_copy(&dwmdbuffersize), core::mem::transmute_copy(&pszbuffer), core::mem::transmute_copy(&pdwmdrequiredbuffersize)).into() } - unsafe extern "system" fn OpenKey(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, dwmdaccessrequested: u32, dwmdtimeout: u32, phmdnewhandle: *mut u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn OpenKey(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, dwmdaccessrequested: u32, dwmdtimeout: u32, phmdnewhandle: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSAdminBaseW_Impl::OpenKey(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&dwmdaccessrequested), core::mem::transmute_copy(&dwmdtimeout)) { Ok(ok__) => { @@ -846,31 +624,19 @@ impl IMSAdminBaseW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseKey(this: *mut core::ffi::c_void, hmdhandle: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn CloseKey(this: *mut core::ffi::c_void, hmdhandle: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::CloseKey(this, core::mem::transmute_copy(&hmdhandle)).into() } - unsafe extern "system" fn ChangePermissions(this: *mut core::ffi::c_void, hmdhandle: u32, dwmdtimeout: u32, dwmdaccessrequested: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn ChangePermissions(this: *mut core::ffi::c_void, hmdhandle: u32, dwmdtimeout: u32, dwmdaccessrequested: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::ChangePermissions(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute_copy(&dwmdtimeout), core::mem::transmute_copy(&dwmdaccessrequested)).into() } - unsafe extern "system" fn SaveData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn SaveData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::SaveData(this).into() } - unsafe extern "system" fn GetHandleInfo(this: *mut core::ffi::c_void, hmdhandle: u32, pmdhiinfo: *mut METADATA_HANDLE_INFO) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn GetHandleInfo(this: *mut core::ffi::c_void, hmdhandle: u32, pmdhiinfo: *mut METADATA_HANDLE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSAdminBaseW_Impl::GetHandleInfo(this, core::mem::transmute_copy(&hmdhandle)) { Ok(ok__) => { @@ -880,10 +646,7 @@ impl IMSAdminBaseW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSystemChangeNumber(this: *mut core::ffi::c_void, pdwsystemchangenumber: *mut u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn GetSystemChangeNumber(this: *mut core::ffi::c_void, pdwsystemchangenumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSAdminBaseW_Impl::GetSystemChangeNumber(this) { Ok(ok__) => { @@ -893,10 +656,7 @@ impl IMSAdminBaseW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataSetNumber(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pdwmddatasetnumber: *mut u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn GetDataSetNumber(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pdwmddatasetnumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSAdminBaseW_Impl::GetDataSetNumber(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath)) { Ok(ok__) => { @@ -906,66 +666,39 @@ impl IMSAdminBaseW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLastChangeTime(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pftmdlastchangetime: *const super::super::Foundation::FILETIME, blocaltime: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn SetLastChangeTime(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pftmdlastchangetime: *const super::super::Foundation::FILETIME, blocaltime: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::SetLastChangeTime(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&pftmdlastchangetime), core::mem::transmute_copy(&blocaltime)).into() } - unsafe extern "system" fn GetLastChangeTime(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pftmdlastchangetime: *mut super::super::Foundation::FILETIME, blocaltime: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn GetLastChangeTime(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pftmdlastchangetime: *mut super::super::Foundation::FILETIME, blocaltime: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::GetLastChangeTime(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&pftmdlastchangetime), core::mem::transmute_copy(&blocaltime)).into() } - unsafe extern "system" fn KeyExchangePhase1(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn KeyExchangePhase1(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::KeyExchangePhase1(this).into() } - unsafe extern "system" fn KeyExchangePhase2(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn KeyExchangePhase2(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::KeyExchangePhase2(this).into() } - unsafe extern "system" fn Backup(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PCWSTR, dwmdversion: u32, dwmdflags: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn Backup(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PCWSTR, dwmdversion: u32, dwmdflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::Backup(this, core::mem::transmute(&pszmdbackuplocation), core::mem::transmute_copy(&dwmdversion), core::mem::transmute_copy(&dwmdflags)).into() } - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PCWSTR, dwmdversion: u32, dwmdflags: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PCWSTR, dwmdversion: u32, dwmdflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::Restore(this, core::mem::transmute(&pszmdbackuplocation), core::mem::transmute_copy(&dwmdversion), core::mem::transmute_copy(&dwmdflags)).into() } - unsafe extern "system" fn EnumBackups(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PWSTR, pdwmdversion: *mut u32, pftmdbackuptime: *mut super::super::Foundation::FILETIME, dwmdenumindex: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn EnumBackups(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PWSTR, pdwmdversion: *mut u32, pftmdbackuptime: *mut super::super::Foundation::FILETIME, dwmdenumindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::EnumBackups(this, core::mem::transmute(&pszmdbackuplocation), core::mem::transmute_copy(&pdwmdversion), core::mem::transmute_copy(&pftmdbackuptime), core::mem::transmute_copy(&dwmdenumindex)).into() } - unsafe extern "system" fn DeleteBackup(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PCWSTR, dwmdversion: u32) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn DeleteBackup(this: *mut core::ffi::c_void, pszmdbackuplocation: windows_core::PCWSTR, dwmdversion: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::DeleteBackup(this, core::mem::transmute(&pszmdbackuplocation), core::mem::transmute_copy(&dwmdversion)).into() } - unsafe extern "system" fn UnmarshalInterface(this: *mut core::ffi::c_void, piadmbwinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn UnmarshalInterface(this: *mut core::ffi::c_void, piadmbwinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSAdminBaseW_Impl::UnmarshalInterface(this) { Ok(ok__) => { @@ -975,10 +708,7 @@ impl IMSAdminBaseW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetServerGuid(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSAdminBaseW_Impl, - { + unsafe extern "system" fn GetServerGuid(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::GetServerGuid(this).into() } @@ -1021,19 +751,13 @@ impl IMSAdminBaseW_Vtbl { iid == &::IID } } -pub trait IMSImpExpHelpW_Impl: Sized { +pub trait IMSImpExpHelpW_Impl: Sized + windows_core::IUnknownImpl { fn EnumeratePathsInFile(&self, pszfilename: &windows_core::PCWSTR, pszkeytype: &windows_core::PCWSTR, dwmdbuffersize: u32, pszbuffer: &windows_core::PWSTR, pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMSImpExpHelpW {} impl IMSImpExpHelpW_Vtbl { - pub const fn new() -> IMSImpExpHelpW_Vtbl - where - Identity: IMSImpExpHelpW_Impl, - { - unsafe extern "system" fn EnumeratePathsInFile(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, pszkeytype: windows_core::PCWSTR, dwmdbuffersize: u32, pszbuffer: windows_core::PWSTR, pdwmdrequiredbuffersize: *mut u32) -> windows_core::HRESULT - where - Identity: IMSImpExpHelpW_Impl, - { + pub const fn new() -> IMSImpExpHelpW_Vtbl { + unsafe extern "system" fn EnumeratePathsInFile(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, pszkeytype: windows_core::PCWSTR, dwmdbuffersize: u32, pszbuffer: windows_core::PWSTR, pdwmdrequiredbuffersize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSImpExpHelpW_Impl::EnumeratePathsInFile(this, core::mem::transmute(&pszfilename), core::mem::transmute(&pszkeytype), core::mem::transmute_copy(&dwmdbuffersize), core::mem::transmute(&pszbuffer), core::mem::transmute_copy(&pdwmdrequiredbuffersize)).into() } 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 7517a354cb..1eae251072 100644 --- a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/impl.rs @@ -6,14 +6,8 @@ pub trait IMSMQApplication_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQApplication {} #[cfg(feature = "Win32_System_Com")] impl IMSMQApplication_Vtbl { - pub const fn new() -> IMSMQApplication_Vtbl - where - Identity: IMSMQApplication_Impl, - { - unsafe extern "system" fn MachineIdOfMachineName(this: *mut core::ffi::c_void, machinename: core::mem::MaybeUninit, pbstrguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQApplication_Impl, - { + pub const fn new() -> IMSMQApplication_Vtbl { + unsafe extern "system" fn MachineIdOfMachineName(this: *mut core::ffi::c_void, machinename: core::mem::MaybeUninit, pbstrguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication_Impl::MachineIdOfMachineName(this, core::mem::transmute(&machinename)) { Ok(ok__) => { @@ -43,21 +37,12 @@ pub trait IMSMQApplication2_Impl: Sized + IMSMQApplication_Impl { impl windows_core::RuntimeName for IMSMQApplication2 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQApplication2_Vtbl { - pub const fn new() -> IMSMQApplication2_Vtbl - where - Identity: IMSMQApplication2_Impl, - { - unsafe extern "system" fn RegisterCertificate(this: *mut core::ffi::c_void, flags: *const core::mem::MaybeUninit, externalcertificate: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQApplication2_Impl, - { + pub const fn new() -> IMSMQApplication2_Vtbl { + unsafe extern "system" fn RegisterCertificate(this: *mut core::ffi::c_void, flags: *const core::mem::MaybeUninit, externalcertificate: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQApplication2_Impl::RegisterCertificate(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&externalcertificate)).into() } - unsafe extern "system" fn MachineNameOfMachineId(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, pbstrmachinename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQApplication2_Impl, - { + unsafe extern "system" fn MachineNameOfMachineId(this: *mut core::ffi::c_void, bstrguid: core::mem::MaybeUninit, pbstrmachinename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication2_Impl::MachineNameOfMachineId(this, core::mem::transmute(&bstrguid)) { Ok(ok__) => { @@ -67,10 +52,7 @@ impl IMSMQApplication2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MSMQVersionMajor(this: *mut core::ffi::c_void, psmsmqversionmajor: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQApplication2_Impl, - { + unsafe extern "system" fn MSMQVersionMajor(this: *mut core::ffi::c_void, psmsmqversionmajor: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication2_Impl::MSMQVersionMajor(this) { Ok(ok__) => { @@ -80,10 +62,7 @@ impl IMSMQApplication2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MSMQVersionMinor(this: *mut core::ffi::c_void, psmsmqversionminor: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQApplication2_Impl, - { + unsafe extern "system" fn MSMQVersionMinor(this: *mut core::ffi::c_void, psmsmqversionminor: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication2_Impl::MSMQVersionMinor(this) { Ok(ok__) => { @@ -93,10 +72,7 @@ impl IMSMQApplication2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MSMQVersionBuild(this: *mut core::ffi::c_void, psmsmqversionbuild: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQApplication2_Impl, - { + unsafe extern "system" fn MSMQVersionBuild(this: *mut core::ffi::c_void, psmsmqversionbuild: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication2_Impl::MSMQVersionBuild(this) { Ok(ok__) => { @@ -106,10 +82,7 @@ impl IMSMQApplication2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDsEnabled(this: *mut core::ffi::c_void, pfisdsenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQApplication2_Impl, - { + unsafe extern "system" fn IsDsEnabled(this: *mut core::ffi::c_void, pfisdsenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication2_Impl::IsDsEnabled(this) { Ok(ok__) => { @@ -119,10 +92,7 @@ impl IMSMQApplication2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQApplication2_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication2_Impl::Properties(this) { Ok(ok__) => { @@ -164,14 +134,8 @@ pub trait IMSMQApplication3_Impl: Sized + IMSMQApplication2_Impl { impl windows_core::RuntimeName for IMSMQApplication3 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQApplication3_Vtbl { - pub const fn new() -> IMSMQApplication3_Vtbl - where - Identity: IMSMQApplication3_Impl, - { - unsafe extern "system" fn ActiveQueues(this: *mut core::ffi::c_void, pvactivequeues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQApplication3_Impl, - { + pub const fn new() -> IMSMQApplication3_Vtbl { + unsafe extern "system" fn ActiveQueues(this: *mut core::ffi::c_void, pvactivequeues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication3_Impl::ActiveQueues(this) { Ok(ok__) => { @@ -181,10 +145,7 @@ impl IMSMQApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivateQueues(this: *mut core::ffi::c_void, pvprivatequeues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQApplication3_Impl, - { + unsafe extern "system" fn PrivateQueues(this: *mut core::ffi::c_void, pvprivatequeues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication3_Impl::PrivateQueues(this) { Ok(ok__) => { @@ -194,10 +155,7 @@ impl IMSMQApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DirectoryServiceServer(this: *mut core::ffi::c_void, pbstrdirectoryserviceserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQApplication3_Impl, - { + unsafe extern "system" fn DirectoryServiceServer(this: *mut core::ffi::c_void, pbstrdirectoryserviceserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication3_Impl::DirectoryServiceServer(this) { Ok(ok__) => { @@ -207,10 +165,7 @@ impl IMSMQApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pfisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQApplication3_Impl, - { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pfisconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication3_Impl::IsConnected(this) { Ok(ok__) => { @@ -220,10 +175,7 @@ impl IMSMQApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BytesInAllQueues(this: *mut core::ffi::c_void, pvbytesinallqueues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQApplication3_Impl, - { + unsafe extern "system" fn BytesInAllQueues(this: *mut core::ffi::c_void, pvbytesinallqueues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication3_Impl::BytesInAllQueues(this) { Ok(ok__) => { @@ -233,17 +185,11 @@ impl IMSMQApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMachine(this: *mut core::ffi::c_void, bstrmachine: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQApplication3_Impl, - { + unsafe extern "system" fn SetMachine(this: *mut core::ffi::c_void, bstrmachine: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQApplication3_Impl::SetMachine(this, core::mem::transmute(&bstrmachine)).into() } - unsafe extern "system" fn Machine(this: *mut core::ffi::c_void, pbstrmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQApplication3_Impl, - { + unsafe extern "system" fn Machine(this: *mut core::ffi::c_void, pbstrmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQApplication3_Impl::Machine(this) { Ok(ok__) => { @@ -253,24 +199,15 @@ impl IMSMQApplication3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQApplication3_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQApplication3_Impl::Connect(this).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQApplication3_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQApplication3_Impl::Disconnect(this).into() } - unsafe extern "system" fn Tidy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQApplication3_Impl, - { + unsafe extern "system" fn Tidy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQApplication3_Impl::Tidy(this).into() } @@ -302,14 +239,8 @@ pub trait IMSMQCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQCollection {} #[cfg(feature = "Win32_System_Com")] impl IMSMQCollection_Vtbl { - pub const fn new() -> IMSMQCollection_Vtbl - where - Identity: IMSMQCollection_Impl, - { - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: *const core::mem::MaybeUninit, pvarret: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQCollection_Impl, - { + pub const fn new() -> IMSMQCollection_Vtbl { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: *const core::mem::MaybeUninit, pvarret: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQCollection_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -319,10 +250,7 @@ impl IMSMQCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQCollection_Impl::Count(this) { Ok(ok__) => { @@ -332,10 +260,7 @@ impl IMSMQCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -364,14 +289,8 @@ pub trait IMSMQCoordinatedTransactionDispenser_Impl: Sized + super::Com::IDispat impl windows_core::RuntimeName for IMSMQCoordinatedTransactionDispenser {} #[cfg(feature = "Win32_System_Com")] impl IMSMQCoordinatedTransactionDispenser_Vtbl { - pub const fn new() -> IMSMQCoordinatedTransactionDispenser_Vtbl - where - Identity: IMSMQCoordinatedTransactionDispenser_Impl, - { - unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQCoordinatedTransactionDispenser_Impl, - { + pub const fn new() -> IMSMQCoordinatedTransactionDispenser_Vtbl { + unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQCoordinatedTransactionDispenser_Impl::BeginTransaction(this) { Ok(ok__) => { @@ -396,14 +315,8 @@ pub trait IMSMQCoordinatedTransactionDispenser2_Impl: Sized + super::Com::IDispa impl windows_core::RuntimeName for IMSMQCoordinatedTransactionDispenser2 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQCoordinatedTransactionDispenser2_Vtbl { - pub const fn new() -> IMSMQCoordinatedTransactionDispenser2_Vtbl - where - Identity: IMSMQCoordinatedTransactionDispenser2_Impl, - { - unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQCoordinatedTransactionDispenser2_Impl, - { + pub const fn new() -> IMSMQCoordinatedTransactionDispenser2_Vtbl { + unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQCoordinatedTransactionDispenser2_Impl::BeginTransaction(this) { Ok(ok__) => { @@ -413,10 +326,7 @@ impl IMSMQCoordinatedTransactionDispenser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQCoordinatedTransactionDispenser2_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQCoordinatedTransactionDispenser2_Impl::Properties(this) { Ok(ok__) => { @@ -445,14 +355,8 @@ pub trait IMSMQCoordinatedTransactionDispenser3_Impl: Sized + super::Com::IDispa impl windows_core::RuntimeName for IMSMQCoordinatedTransactionDispenser3 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQCoordinatedTransactionDispenser3_Vtbl { - pub const fn new() -> IMSMQCoordinatedTransactionDispenser3_Vtbl - where - Identity: IMSMQCoordinatedTransactionDispenser3_Impl, - { - unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQCoordinatedTransactionDispenser3_Impl, - { + pub const fn new() -> IMSMQCoordinatedTransactionDispenser3_Vtbl { + unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQCoordinatedTransactionDispenser3_Impl::BeginTransaction(this) { Ok(ok__) => { @@ -462,10 +366,7 @@ impl IMSMQCoordinatedTransactionDispenser3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQCoordinatedTransactionDispenser3_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQCoordinatedTransactionDispenser3_Impl::Properties(this) { Ok(ok__) => { @@ -506,28 +407,16 @@ pub trait IMSMQDestination_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQDestination {} #[cfg(feature = "Win32_System_Com")] impl IMSMQDestination_Vtbl { - pub const fn new() -> IMSMQDestination_Vtbl - where - Identity: IMSMQDestination_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + pub const fn new() -> IMSMQDestination_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQDestination_Impl::Open(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQDestination_Impl::Close(this).into() } - unsafe extern "system" fn IsOpen(this: *mut core::ffi::c_void, pfisopen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn IsOpen(this: *mut core::ffi::c_void, pfisopen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQDestination_Impl::IsOpen(this) { Ok(ok__) => { @@ -537,10 +426,7 @@ impl IMSMQDestination_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IADs(this: *mut core::ffi::c_void, ppiads: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn IADs(this: *mut core::ffi::c_void, ppiads: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQDestination_Impl::IADs(this) { Ok(ok__) => { @@ -550,17 +436,11 @@ impl IMSMQDestination_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_IADs(this: *mut core::ffi::c_void, piads: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn putref_IADs(this: *mut core::ffi::c_void, piads: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQDestination_Impl::putref_IADs(this, windows_core::from_raw_borrowed(&piads)).into() } - unsafe extern "system" fn ADsPath(this: *mut core::ffi::c_void, pbstradspath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn ADsPath(this: *mut core::ffi::c_void, pbstradspath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQDestination_Impl::ADsPath(this) { Ok(ok__) => { @@ -570,17 +450,11 @@ impl IMSMQDestination_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetADsPath(this: *mut core::ffi::c_void, bstradspath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn SetADsPath(this: *mut core::ffi::c_void, bstradspath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQDestination_Impl::SetADsPath(this, core::mem::transmute(&bstradspath)).into() } - unsafe extern "system" fn PathName(this: *mut core::ffi::c_void, pbstrpathname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn PathName(this: *mut core::ffi::c_void, pbstrpathname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQDestination_Impl::PathName(this) { Ok(ok__) => { @@ -590,17 +464,11 @@ impl IMSMQDestination_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPathName(this: *mut core::ffi::c_void, bstrpathname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn SetPathName(this: *mut core::ffi::c_void, bstrpathname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQDestination_Impl::SetPathName(this, core::mem::transmute(&bstrpathname)).into() } - unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQDestination_Impl::FormatName(this) { Ok(ok__) => { @@ -610,17 +478,11 @@ impl IMSMQDestination_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatName(this: *mut core::ffi::c_void, bstrformatname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn SetFormatName(this: *mut core::ffi::c_void, bstrformatname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQDestination_Impl::SetFormatName(this, core::mem::transmute(&bstrformatname)).into() } - unsafe extern "system" fn Destinations(this: *mut core::ffi::c_void, ppdestinations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn Destinations(this: *mut core::ffi::c_void, ppdestinations: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQDestination_Impl::Destinations(this) { Ok(ok__) => { @@ -630,17 +492,11 @@ impl IMSMQDestination_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Destinations(this: *mut core::ffi::c_void, pdestinations: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn putref_Destinations(this: *mut core::ffi::c_void, pdestinations: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQDestination_Impl::putref_Destinations(this, windows_core::from_raw_borrowed(&pdestinations)).into() } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQDestination_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQDestination_Impl::Properties(this) { Ok(ok__) => { @@ -678,10 +534,7 @@ pub trait IMSMQEvent_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for IMSMQEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSMQEvent_Vtbl { - pub const fn new() -> IMSMQEvent_Vtbl - where - Identity: IMSMQEvent_Impl, - { + pub const fn new() -> IMSMQEvent_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -696,14 +549,8 @@ pub trait IMSMQEvent2_Impl: Sized + IMSMQEvent_Impl { impl windows_core::RuntimeName for IMSMQEvent2 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQEvent2_Vtbl { - pub const fn new() -> IMSMQEvent2_Vtbl - where - Identity: IMSMQEvent2_Impl, - { - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQEvent2_Impl, - { + pub const fn new() -> IMSMQEvent2_Vtbl { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQEvent2_Impl::Properties(this) { Ok(ok__) => { @@ -725,10 +572,7 @@ pub trait IMSMQEvent3_Impl: Sized + IMSMQEvent2_Impl {} impl windows_core::RuntimeName for IMSMQEvent3 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQEvent3_Vtbl { - pub const fn new() -> IMSMQEvent3_Vtbl - where - Identity: IMSMQEvent3_Impl, - { + pub const fn new() -> IMSMQEvent3_Vtbl { Self { base__: IMSMQEvent2_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -751,21 +595,12 @@ pub trait IMSMQManagement_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQManagement {} #[cfg(feature = "Win32_System_Com")] impl IMSMQManagement_Vtbl { - pub const fn new() -> IMSMQManagement_Vtbl - where - Identity: IMSMQManagement_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, machine: *const core::mem::MaybeUninit, pathname: *const core::mem::MaybeUninit, formatname: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQManagement_Impl, - { + pub const fn new() -> IMSMQManagement_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, machine: *const core::mem::MaybeUninit, pathname: *const core::mem::MaybeUninit, formatname: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQManagement_Impl::Init(this, core::mem::transmute_copy(&machine), core::mem::transmute_copy(&pathname), core::mem::transmute_copy(&formatname)).into() } - unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQManagement_Impl, - { + unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQManagement_Impl::FormatName(this) { Ok(ok__) => { @@ -775,10 +610,7 @@ impl IMSMQManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Machine(this: *mut core::ffi::c_void, pbstrmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQManagement_Impl, - { + unsafe extern "system" fn Machine(this: *mut core::ffi::c_void, pbstrmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQManagement_Impl::Machine(this) { Ok(ok__) => { @@ -788,10 +620,7 @@ impl IMSMQManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MessageCount(this: *mut core::ffi::c_void, plmessagecount: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQManagement_Impl, - { + unsafe extern "system" fn MessageCount(this: *mut core::ffi::c_void, plmessagecount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQManagement_Impl::MessageCount(this) { Ok(ok__) => { @@ -801,10 +630,7 @@ impl IMSMQManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ForeignStatus(this: *mut core::ffi::c_void, plforeignstatus: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQManagement_Impl, - { + unsafe extern "system" fn ForeignStatus(this: *mut core::ffi::c_void, plforeignstatus: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQManagement_Impl::ForeignStatus(this) { Ok(ok__) => { @@ -814,10 +640,7 @@ impl IMSMQManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueType(this: *mut core::ffi::c_void, plqueuetype: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQManagement_Impl, - { + unsafe extern "system" fn QueueType(this: *mut core::ffi::c_void, plqueuetype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQManagement_Impl::QueueType(this) { Ok(ok__) => { @@ -827,10 +650,7 @@ impl IMSMQManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLocal(this: *mut core::ffi::c_void, pfislocal: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQManagement_Impl, - { + unsafe extern "system" fn IsLocal(this: *mut core::ffi::c_void, pfislocal: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQManagement_Impl::IsLocal(this) { Ok(ok__) => { @@ -840,10 +660,7 @@ impl IMSMQManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransactionalStatus(this: *mut core::ffi::c_void, pltransactionalstatus: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQManagement_Impl, - { + unsafe extern "system" fn TransactionalStatus(this: *mut core::ffi::c_void, pltransactionalstatus: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQManagement_Impl::TransactionalStatus(this) { Ok(ok__) => { @@ -853,10 +670,7 @@ impl IMSMQManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BytesInQueue(this: *mut core::ffi::c_void, pvbytesinqueue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQManagement_Impl, - { + unsafe extern "system" fn BytesInQueue(this: *mut core::ffi::c_void, pvbytesinqueue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQManagement_Impl::BytesInQueue(this) { Ok(ok__) => { @@ -939,14 +753,8 @@ pub trait IMSMQMessage_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQMessage {} #[cfg(feature = "Win32_System_Com")] impl IMSMQMessage_Vtbl { - pub const fn new() -> IMSMQMessage_Vtbl - where - Identity: IMSMQMessage_Impl, - { - unsafe extern "system" fn Class(this: *mut core::ffi::c_void, plclass: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + pub const fn new() -> IMSMQMessage_Vtbl { + unsafe extern "system" fn Class(this: *mut core::ffi::c_void, plclass: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::Class(this) { Ok(ok__) => { @@ -956,10 +764,7 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::PrivLevel(this) { Ok(ok__) => { @@ -969,17 +774,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetPrivLevel(this, core::mem::transmute_copy(&lprivlevel)).into() } - unsafe extern "system" fn AuthLevel(this: *mut core::ffi::c_void, plauthlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn AuthLevel(this: *mut core::ffi::c_void, plauthlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::AuthLevel(this) { Ok(ok__) => { @@ -989,17 +788,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthLevel(this: *mut core::ffi::c_void, lauthlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetAuthLevel(this: *mut core::ffi::c_void, lauthlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetAuthLevel(this, core::mem::transmute_copy(&lauthlevel)).into() } - unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pisauthenticated: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pisauthenticated: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::IsAuthenticated(this) { Ok(ok__) => { @@ -1009,10 +802,7 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delivery(this: *mut core::ffi::c_void, pldelivery: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn Delivery(this: *mut core::ffi::c_void, pldelivery: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::Delivery(this) { Ok(ok__) => { @@ -1022,17 +812,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDelivery(this: *mut core::ffi::c_void, ldelivery: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetDelivery(this: *mut core::ffi::c_void, ldelivery: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetDelivery(this, core::mem::transmute_copy(&ldelivery)).into() } - unsafe extern "system" fn Trace(this: *mut core::ffi::c_void, pltrace: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn Trace(this: *mut core::ffi::c_void, pltrace: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::Trace(this) { Ok(ok__) => { @@ -1042,17 +826,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTrace(this: *mut core::ffi::c_void, ltrace: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetTrace(this: *mut core::ffi::c_void, ltrace: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetTrace(this, core::mem::transmute_copy(<race)).into() } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, plpriority: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, plpriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::Priority(this) { Ok(ok__) => { @@ -1062,17 +840,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lpriority: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lpriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetPriority(this, core::mem::transmute_copy(&lpriority)).into() } - unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::Journal(this) { Ok(ok__) => { @@ -1082,17 +854,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetJournal(this, core::mem::transmute_copy(&ljournal)).into() } - unsafe extern "system" fn ResponseQueueInfo(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn ResponseQueueInfo(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::ResponseQueueInfo(this) { Ok(ok__) => { @@ -1102,17 +868,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseQueueInfo(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn putref_ResponseQueueInfo(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::putref_ResponseQueueInfo(this, windows_core::from_raw_borrowed(&pqinforesponse)).into() } - unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::AppSpecific(this) { Ok(ok__) => { @@ -1122,17 +882,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAppSpecific(this: *mut core::ffi::c_void, lappspecific: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetAppSpecific(this: *mut core::ffi::c_void, lappspecific: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetAppSpecific(this, core::mem::transmute_copy(&lappspecific)).into() } - unsafe extern "system" fn SourceMachineGuid(this: *mut core::ffi::c_void, pbstrguidsrcmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SourceMachineGuid(this: *mut core::ffi::c_void, pbstrguidsrcmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::SourceMachineGuid(this) { Ok(ok__) => { @@ -1142,10 +896,7 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BodyLength(this: *mut core::ffi::c_void, pcbbody: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn BodyLength(this: *mut core::ffi::c_void, pcbbody: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::BodyLength(this) { Ok(ok__) => { @@ -1155,10 +906,7 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::Body(this) { Ok(ok__) => { @@ -1168,17 +916,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, varbody: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, varbody: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetBody(this, core::mem::transmute(&varbody)).into() } - unsafe extern "system" fn AdminQueueInfo(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn AdminQueueInfo(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::AdminQueueInfo(this) { Ok(ok__) => { @@ -1188,17 +930,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AdminQueueInfo(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn putref_AdminQueueInfo(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::putref_AdminQueueInfo(this, windows_core::from_raw_borrowed(&pqinfoadmin)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::Id(this) { Ok(ok__) => { @@ -1208,10 +944,7 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorrelationId(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn CorrelationId(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::CorrelationId(this) { Ok(ok__) => { @@ -1221,17 +954,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCorrelationId(this: *mut core::ffi::c_void, varmsgid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetCorrelationId(this: *mut core::ffi::c_void, varmsgid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetCorrelationId(this, core::mem::transmute(&varmsgid)).into() } - unsafe extern "system" fn Ack(this: *mut core::ffi::c_void, plack: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn Ack(this: *mut core::ffi::c_void, plack: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::Ack(this) { Ok(ok__) => { @@ -1241,17 +968,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAck(this: *mut core::ffi::c_void, lack: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetAck(this: *mut core::ffi::c_void, lack: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetAck(this, core::mem::transmute_copy(&lack)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::Label(this) { Ok(ok__) => { @@ -1261,17 +982,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetLabel(this, core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn MaxTimeToReachQueue(this: *mut core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn MaxTimeToReachQueue(this: *mut core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::MaxTimeToReachQueue(this) { Ok(ok__) => { @@ -1281,17 +996,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxTimeToReachQueue(this: *mut core::ffi::c_void, lmaxtimetoreachqueue: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetMaxTimeToReachQueue(this: *mut core::ffi::c_void, lmaxtimetoreachqueue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetMaxTimeToReachQueue(this, core::mem::transmute_copy(&lmaxtimetoreachqueue)).into() } - unsafe extern "system" fn MaxTimeToReceive(this: *mut core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn MaxTimeToReceive(this: *mut core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::MaxTimeToReceive(this) { Ok(ok__) => { @@ -1301,17 +1010,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxTimeToReceive(this: *mut core::ffi::c_void, lmaxtimetoreceive: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetMaxTimeToReceive(this: *mut core::ffi::c_void, lmaxtimetoreceive: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetMaxTimeToReceive(this, core::mem::transmute_copy(&lmaxtimetoreceive)).into() } - unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, plhashalg: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, plhashalg: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::HashAlgorithm(this) { Ok(ok__) => { @@ -1321,17 +1024,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, lhashalg: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, lhashalg: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetHashAlgorithm(this, core::mem::transmute_copy(&lhashalg)).into() } - unsafe extern "system" fn EncryptAlgorithm(this: *mut core::ffi::c_void, plencryptalg: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn EncryptAlgorithm(this: *mut core::ffi::c_void, plencryptalg: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::EncryptAlgorithm(this) { Ok(ok__) => { @@ -1341,17 +1038,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncryptAlgorithm(this: *mut core::ffi::c_void, lencryptalg: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetEncryptAlgorithm(this: *mut core::ffi::c_void, lencryptalg: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetEncryptAlgorithm(this, core::mem::transmute_copy(&lencryptalg)).into() } - unsafe extern "system" fn SentTime(this: *mut core::ffi::c_void, pvarsenttime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SentTime(this: *mut core::ffi::c_void, pvarsenttime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::SentTime(this) { Ok(ok__) => { @@ -1361,10 +1052,7 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ArrivedTime(this: *mut core::ffi::c_void, plarrivedtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn ArrivedTime(this: *mut core::ffi::c_void, plarrivedtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::ArrivedTime(this) { Ok(ok__) => { @@ -1374,10 +1062,7 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationQueueInfo(this: *mut core::ffi::c_void, ppqinfodest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn DestinationQueueInfo(this: *mut core::ffi::c_void, ppqinfodest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::DestinationQueueInfo(this) { Ok(ok__) => { @@ -1387,10 +1072,7 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SenderCertificate(this: *mut core::ffi::c_void, pvarsendercert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SenderCertificate(this: *mut core::ffi::c_void, pvarsendercert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::SenderCertificate(this) { Ok(ok__) => { @@ -1400,17 +1082,11 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderCertificate(this: *mut core::ffi::c_void, varsendercert: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetSenderCertificate(this: *mut core::ffi::c_void, varsendercert: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetSenderCertificate(this, core::mem::transmute(&varsendercert)).into() } - unsafe extern "system" fn SenderId(this: *mut core::ffi::c_void, pvarsenderid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SenderId(this: *mut core::ffi::c_void, pvarsenderid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::SenderId(this) { Ok(ok__) => { @@ -1420,10 +1096,7 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SenderIdType(this: *mut core::ffi::c_void, plsenderidtype: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SenderIdType(this: *mut core::ffi::c_void, plsenderidtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage_Impl::SenderIdType(this) { Ok(ok__) => { @@ -1433,24 +1106,15 @@ impl IMSMQMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderIdType(this: *mut core::ffi::c_void, lsenderidtype: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn SetSenderIdType(this: *mut core::ffi::c_void, lsenderidtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::SetSenderIdType(this, core::mem::transmute_copy(&lsenderidtype)).into() } - unsafe extern "system" fn Send(this: *mut core::ffi::c_void, destinationqueue: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn Send(this: *mut core::ffi::c_void, destinationqueue: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::Send(this, windows_core::from_raw_borrowed(&destinationqueue), core::mem::transmute_copy(&transaction)).into() } - unsafe extern "system" fn AttachCurrentSecurityContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage_Impl, - { + unsafe extern "system" fn AttachCurrentSecurityContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage_Impl::AttachCurrentSecurityContext(this).into() } @@ -1593,14 +1257,8 @@ pub trait IMSMQMessage2_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQMessage2 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQMessage2_Vtbl { - pub const fn new() -> IMSMQMessage2_Vtbl - where - Identity: IMSMQMessage2_Impl, - { - unsafe extern "system" fn Class(this: *mut core::ffi::c_void, plclass: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + pub const fn new() -> IMSMQMessage2_Vtbl { + unsafe extern "system" fn Class(this: *mut core::ffi::c_void, plclass: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Class(this) { Ok(ok__) => { @@ -1610,10 +1268,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::PrivLevel(this) { Ok(ok__) => { @@ -1623,17 +1278,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetPrivLevel(this, core::mem::transmute_copy(&lprivlevel)).into() } - unsafe extern "system" fn AuthLevel(this: *mut core::ffi::c_void, plauthlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn AuthLevel(this: *mut core::ffi::c_void, plauthlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::AuthLevel(this) { Ok(ok__) => { @@ -1643,17 +1292,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthLevel(this: *mut core::ffi::c_void, lauthlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetAuthLevel(this: *mut core::ffi::c_void, lauthlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetAuthLevel(this, core::mem::transmute_copy(&lauthlevel)).into() } - unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pisauthenticated: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pisauthenticated: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::IsAuthenticated(this) { Ok(ok__) => { @@ -1663,10 +1306,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delivery(this: *mut core::ffi::c_void, pldelivery: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Delivery(this: *mut core::ffi::c_void, pldelivery: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Delivery(this) { Ok(ok__) => { @@ -1676,17 +1316,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDelivery(this: *mut core::ffi::c_void, ldelivery: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetDelivery(this: *mut core::ffi::c_void, ldelivery: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetDelivery(this, core::mem::transmute_copy(&ldelivery)).into() } - unsafe extern "system" fn Trace(this: *mut core::ffi::c_void, pltrace: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Trace(this: *mut core::ffi::c_void, pltrace: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Trace(this) { Ok(ok__) => { @@ -1696,17 +1330,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTrace(this: *mut core::ffi::c_void, ltrace: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetTrace(this: *mut core::ffi::c_void, ltrace: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetTrace(this, core::mem::transmute_copy(<race)).into() } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, plpriority: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, plpriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Priority(this) { Ok(ok__) => { @@ -1716,17 +1344,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lpriority: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lpriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetPriority(this, core::mem::transmute_copy(&lpriority)).into() } - unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Journal(this) { Ok(ok__) => { @@ -1736,17 +1358,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetJournal(this, core::mem::transmute_copy(&ljournal)).into() } - unsafe extern "system" fn ResponseQueueInfo_v1(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn ResponseQueueInfo_v1(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::ResponseQueueInfo_v1(this) { Ok(ok__) => { @@ -1756,17 +1372,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseQueueInfo_v1(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn putref_ResponseQueueInfo_v1(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::putref_ResponseQueueInfo_v1(this, windows_core::from_raw_borrowed(&pqinforesponse)).into() } - unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::AppSpecific(this) { Ok(ok__) => { @@ -1776,17 +1386,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAppSpecific(this: *mut core::ffi::c_void, lappspecific: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetAppSpecific(this: *mut core::ffi::c_void, lappspecific: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetAppSpecific(this, core::mem::transmute_copy(&lappspecific)).into() } - unsafe extern "system" fn SourceMachineGuid(this: *mut core::ffi::c_void, pbstrguidsrcmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SourceMachineGuid(this: *mut core::ffi::c_void, pbstrguidsrcmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::SourceMachineGuid(this) { Ok(ok__) => { @@ -1796,10 +1400,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BodyLength(this: *mut core::ffi::c_void, pcbbody: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn BodyLength(this: *mut core::ffi::c_void, pcbbody: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::BodyLength(this) { Ok(ok__) => { @@ -1809,10 +1410,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Body(this) { Ok(ok__) => { @@ -1822,17 +1420,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, varbody: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, varbody: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetBody(this, core::mem::transmute(&varbody)).into() } - unsafe extern "system" fn AdminQueueInfo_v1(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn AdminQueueInfo_v1(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::AdminQueueInfo_v1(this) { Ok(ok__) => { @@ -1842,17 +1434,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AdminQueueInfo_v1(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn putref_AdminQueueInfo_v1(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::putref_AdminQueueInfo_v1(this, windows_core::from_raw_borrowed(&pqinfoadmin)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Id(this) { Ok(ok__) => { @@ -1862,10 +1448,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorrelationId(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn CorrelationId(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::CorrelationId(this) { Ok(ok__) => { @@ -1875,17 +1458,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCorrelationId(this: *mut core::ffi::c_void, varmsgid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetCorrelationId(this: *mut core::ffi::c_void, varmsgid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetCorrelationId(this, core::mem::transmute(&varmsgid)).into() } - unsafe extern "system" fn Ack(this: *mut core::ffi::c_void, plack: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Ack(this: *mut core::ffi::c_void, plack: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Ack(this) { Ok(ok__) => { @@ -1895,17 +1472,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAck(this: *mut core::ffi::c_void, lack: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetAck(this: *mut core::ffi::c_void, lack: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetAck(this, core::mem::transmute_copy(&lack)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Label(this) { Ok(ok__) => { @@ -1915,17 +1486,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetLabel(this, core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn MaxTimeToReachQueue(this: *mut core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn MaxTimeToReachQueue(this: *mut core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::MaxTimeToReachQueue(this) { Ok(ok__) => { @@ -1935,17 +1500,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxTimeToReachQueue(this: *mut core::ffi::c_void, lmaxtimetoreachqueue: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetMaxTimeToReachQueue(this: *mut core::ffi::c_void, lmaxtimetoreachqueue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetMaxTimeToReachQueue(this, core::mem::transmute_copy(&lmaxtimetoreachqueue)).into() } - unsafe extern "system" fn MaxTimeToReceive(this: *mut core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn MaxTimeToReceive(this: *mut core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::MaxTimeToReceive(this) { Ok(ok__) => { @@ -1955,17 +1514,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxTimeToReceive(this: *mut core::ffi::c_void, lmaxtimetoreceive: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetMaxTimeToReceive(this: *mut core::ffi::c_void, lmaxtimetoreceive: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetMaxTimeToReceive(this, core::mem::transmute_copy(&lmaxtimetoreceive)).into() } - unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, plhashalg: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, plhashalg: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::HashAlgorithm(this) { Ok(ok__) => { @@ -1975,17 +1528,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, lhashalg: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, lhashalg: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetHashAlgorithm(this, core::mem::transmute_copy(&lhashalg)).into() } - unsafe extern "system" fn EncryptAlgorithm(this: *mut core::ffi::c_void, plencryptalg: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn EncryptAlgorithm(this: *mut core::ffi::c_void, plencryptalg: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::EncryptAlgorithm(this) { Ok(ok__) => { @@ -1995,17 +1542,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncryptAlgorithm(this: *mut core::ffi::c_void, lencryptalg: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetEncryptAlgorithm(this: *mut core::ffi::c_void, lencryptalg: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetEncryptAlgorithm(this, core::mem::transmute_copy(&lencryptalg)).into() } - unsafe extern "system" fn SentTime(this: *mut core::ffi::c_void, pvarsenttime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SentTime(this: *mut core::ffi::c_void, pvarsenttime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::SentTime(this) { Ok(ok__) => { @@ -2015,10 +1556,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ArrivedTime(this: *mut core::ffi::c_void, plarrivedtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn ArrivedTime(this: *mut core::ffi::c_void, plarrivedtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::ArrivedTime(this) { Ok(ok__) => { @@ -2028,10 +1566,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationQueueInfo(this: *mut core::ffi::c_void, ppqinfodest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn DestinationQueueInfo(this: *mut core::ffi::c_void, ppqinfodest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::DestinationQueueInfo(this) { Ok(ok__) => { @@ -2041,10 +1576,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SenderCertificate(this: *mut core::ffi::c_void, pvarsendercert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SenderCertificate(this: *mut core::ffi::c_void, pvarsendercert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::SenderCertificate(this) { Ok(ok__) => { @@ -2054,17 +1586,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderCertificate(this: *mut core::ffi::c_void, varsendercert: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetSenderCertificate(this: *mut core::ffi::c_void, varsendercert: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetSenderCertificate(this, core::mem::transmute(&varsendercert)).into() } - unsafe extern "system" fn SenderId(this: *mut core::ffi::c_void, pvarsenderid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SenderId(this: *mut core::ffi::c_void, pvarsenderid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::SenderId(this) { Ok(ok__) => { @@ -2074,10 +1600,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SenderIdType(this: *mut core::ffi::c_void, plsenderidtype: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SenderIdType(this: *mut core::ffi::c_void, plsenderidtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::SenderIdType(this) { Ok(ok__) => { @@ -2087,31 +1610,19 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderIdType(this: *mut core::ffi::c_void, lsenderidtype: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetSenderIdType(this: *mut core::ffi::c_void, lsenderidtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetSenderIdType(this, core::mem::transmute_copy(&lsenderidtype)).into() } - unsafe extern "system" fn Send(this: *mut core::ffi::c_void, destinationqueue: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Send(this: *mut core::ffi::c_void, destinationqueue: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::Send(this, windows_core::from_raw_borrowed(&destinationqueue), core::mem::transmute_copy(&transaction)).into() } - unsafe extern "system" fn AttachCurrentSecurityContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn AttachCurrentSecurityContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::AttachCurrentSecurityContext(this).into() } - unsafe extern "system" fn SenderVersion(this: *mut core::ffi::c_void, plsenderversion: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SenderVersion(this: *mut core::ffi::c_void, plsenderversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::SenderVersion(this) { Ok(ok__) => { @@ -2121,10 +1632,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Extension(this: *mut core::ffi::c_void, pvarextension: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Extension(this: *mut core::ffi::c_void, pvarextension: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Extension(this) { Ok(ok__) => { @@ -2134,17 +1642,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExtension(this: *mut core::ffi::c_void, varextension: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetExtension(this: *mut core::ffi::c_void, varextension: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetExtension(this, core::mem::transmute(&varextension)).into() } - unsafe extern "system" fn ConnectorTypeGuid(this: *mut core::ffi::c_void, pbstrguidconnectortype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn ConnectorTypeGuid(this: *mut core::ffi::c_void, pbstrguidconnectortype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::ConnectorTypeGuid(this) { Ok(ok__) => { @@ -2154,17 +1656,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectorTypeGuid(this: *mut core::ffi::c_void, bstrguidconnectortype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetConnectorTypeGuid(this: *mut core::ffi::c_void, bstrguidconnectortype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetConnectorTypeGuid(this, core::mem::transmute(&bstrguidconnectortype)).into() } - unsafe extern "system" fn TransactionStatusQueueInfo(this: *mut core::ffi::c_void, ppqinfoxactstatus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn TransactionStatusQueueInfo(this: *mut core::ffi::c_void, ppqinfoxactstatus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::TransactionStatusQueueInfo(this) { Ok(ok__) => { @@ -2174,10 +1670,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationSymmetricKey(this: *mut core::ffi::c_void, pvardestsymmkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn DestinationSymmetricKey(this: *mut core::ffi::c_void, pvardestsymmkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::DestinationSymmetricKey(this) { Ok(ok__) => { @@ -2187,17 +1680,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDestinationSymmetricKey(this: *mut core::ffi::c_void, vardestsymmkey: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetDestinationSymmetricKey(this: *mut core::ffi::c_void, vardestsymmkey: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetDestinationSymmetricKey(this, core::mem::transmute(&vardestsymmkey)).into() } - unsafe extern "system" fn Signature(this: *mut core::ffi::c_void, pvarsignature: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Signature(this: *mut core::ffi::c_void, pvarsignature: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Signature(this) { Ok(ok__) => { @@ -2207,17 +1694,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignature(this: *mut core::ffi::c_void, varsignature: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetSignature(this: *mut core::ffi::c_void, varsignature: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetSignature(this, core::mem::transmute(&varsignature)).into() } - unsafe extern "system" fn AuthenticationProviderType(this: *mut core::ffi::c_void, plauthprovtype: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn AuthenticationProviderType(this: *mut core::ffi::c_void, plauthprovtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::AuthenticationProviderType(this) { Ok(ok__) => { @@ -2227,17 +1708,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationProviderType(this: *mut core::ffi::c_void, lauthprovtype: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetAuthenticationProviderType(this: *mut core::ffi::c_void, lauthprovtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetAuthenticationProviderType(this, core::mem::transmute_copy(&lauthprovtype)).into() } - unsafe extern "system" fn AuthenticationProviderName(this: *mut core::ffi::c_void, pbstrauthprovname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn AuthenticationProviderName(this: *mut core::ffi::c_void, pbstrauthprovname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::AuthenticationProviderName(this) { Ok(ok__) => { @@ -2247,24 +1722,15 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationProviderName(this: *mut core::ffi::c_void, bstrauthprovname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetAuthenticationProviderName(this: *mut core::ffi::c_void, bstrauthprovname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetAuthenticationProviderName(this, core::mem::transmute(&bstrauthprovname)).into() } - unsafe extern "system" fn SetSenderId(this: *mut core::ffi::c_void, varsenderid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetSenderId(this: *mut core::ffi::c_void, varsenderid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetSenderId(this, core::mem::transmute(&varsenderid)).into() } - unsafe extern "system" fn MsgClass(this: *mut core::ffi::c_void, plmsgclass: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn MsgClass(this: *mut core::ffi::c_void, plmsgclass: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::MsgClass(this) { Ok(ok__) => { @@ -2274,17 +1740,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMsgClass(this: *mut core::ffi::c_void, lmsgclass: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn SetMsgClass(this: *mut core::ffi::c_void, lmsgclass: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::SetMsgClass(this, core::mem::transmute_copy(&lmsgclass)).into() } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::Properties(this) { Ok(ok__) => { @@ -2294,10 +1754,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransactionId(this: *mut core::ffi::c_void, pvarxactid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn TransactionId(this: *mut core::ffi::c_void, pvarxactid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::TransactionId(this) { Ok(ok__) => { @@ -2307,10 +1764,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFirstInTransaction(this: *mut core::ffi::c_void, pisfirstinxact: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn IsFirstInTransaction(this: *mut core::ffi::c_void, pisfirstinxact: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::IsFirstInTransaction(this) { Ok(ok__) => { @@ -2320,10 +1774,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLastInTransaction(this: *mut core::ffi::c_void, pislastinxact: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn IsLastInTransaction(this: *mut core::ffi::c_void, pislastinxact: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::IsLastInTransaction(this) { Ok(ok__) => { @@ -2333,10 +1784,7 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResponseQueueInfo(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn ResponseQueueInfo(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::ResponseQueueInfo(this) { Ok(ok__) => { @@ -2346,17 +1794,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseQueueInfo(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn putref_ResponseQueueInfo(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::putref_ResponseQueueInfo(this, windows_core::from_raw_borrowed(&pqinforesponse)).into() } - unsafe extern "system" fn AdminQueueInfo(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn AdminQueueInfo(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::AdminQueueInfo(this) { Ok(ok__) => { @@ -2366,17 +1808,11 @@ impl IMSMQMessage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AdminQueueInfo(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn putref_AdminQueueInfo(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage2_Impl::putref_AdminQueueInfo(this, windows_core::from_raw_borrowed(&pqinfoadmin)).into() } - unsafe extern "system" fn ReceivedAuthenticationLevel(this: *mut core::ffi::c_void, psreceivedauthenticationlevel: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage2_Impl, - { + unsafe extern "system" fn ReceivedAuthenticationLevel(this: *mut core::ffi::c_void, psreceivedauthenticationlevel: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage2_Impl::ReceivedAuthenticationLevel(this) { Ok(ok__) => { @@ -2567,14 +2003,8 @@ pub trait IMSMQMessage3_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQMessage3 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQMessage3_Vtbl { - pub const fn new() -> IMSMQMessage3_Vtbl - where - Identity: IMSMQMessage3_Impl, - { - unsafe extern "system" fn Class(this: *mut core::ffi::c_void, plclass: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + pub const fn new() -> IMSMQMessage3_Vtbl { + unsafe extern "system" fn Class(this: *mut core::ffi::c_void, plclass: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Class(this) { Ok(ok__) => { @@ -2584,10 +2014,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::PrivLevel(this) { Ok(ok__) => { @@ -2597,17 +2024,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetPrivLevel(this, core::mem::transmute_copy(&lprivlevel)).into() } - unsafe extern "system" fn AuthLevel(this: *mut core::ffi::c_void, plauthlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn AuthLevel(this: *mut core::ffi::c_void, plauthlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::AuthLevel(this) { Ok(ok__) => { @@ -2617,17 +2038,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthLevel(this: *mut core::ffi::c_void, lauthlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetAuthLevel(this: *mut core::ffi::c_void, lauthlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetAuthLevel(this, core::mem::transmute_copy(&lauthlevel)).into() } - unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pisauthenticated: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pisauthenticated: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::IsAuthenticated(this) { Ok(ok__) => { @@ -2637,10 +2052,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delivery(this: *mut core::ffi::c_void, pldelivery: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Delivery(this: *mut core::ffi::c_void, pldelivery: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Delivery(this) { Ok(ok__) => { @@ -2650,17 +2062,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDelivery(this: *mut core::ffi::c_void, ldelivery: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetDelivery(this: *mut core::ffi::c_void, ldelivery: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetDelivery(this, core::mem::transmute_copy(&ldelivery)).into() } - unsafe extern "system" fn Trace(this: *mut core::ffi::c_void, pltrace: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Trace(this: *mut core::ffi::c_void, pltrace: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Trace(this) { Ok(ok__) => { @@ -2670,17 +2076,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTrace(this: *mut core::ffi::c_void, ltrace: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetTrace(this: *mut core::ffi::c_void, ltrace: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetTrace(this, core::mem::transmute_copy(<race)).into() } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, plpriority: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, plpriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Priority(this) { Ok(ok__) => { @@ -2690,17 +2090,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lpriority: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lpriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetPriority(this, core::mem::transmute_copy(&lpriority)).into() } - unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Journal(this) { Ok(ok__) => { @@ -2710,17 +2104,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetJournal(this, core::mem::transmute_copy(&ljournal)).into() } - unsafe extern "system" fn ResponseQueueInfo_v1(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn ResponseQueueInfo_v1(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::ResponseQueueInfo_v1(this) { Ok(ok__) => { @@ -2730,17 +2118,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseQueueInfo_v1(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn putref_ResponseQueueInfo_v1(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::putref_ResponseQueueInfo_v1(this, windows_core::from_raw_borrowed(&pqinforesponse)).into() } - unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::AppSpecific(this) { Ok(ok__) => { @@ -2750,17 +2132,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAppSpecific(this: *mut core::ffi::c_void, lappspecific: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetAppSpecific(this: *mut core::ffi::c_void, lappspecific: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetAppSpecific(this, core::mem::transmute_copy(&lappspecific)).into() } - unsafe extern "system" fn SourceMachineGuid(this: *mut core::ffi::c_void, pbstrguidsrcmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SourceMachineGuid(this: *mut core::ffi::c_void, pbstrguidsrcmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::SourceMachineGuid(this) { Ok(ok__) => { @@ -2770,10 +2146,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BodyLength(this: *mut core::ffi::c_void, pcbbody: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn BodyLength(this: *mut core::ffi::c_void, pcbbody: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::BodyLength(this) { Ok(ok__) => { @@ -2783,10 +2156,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Body(this) { Ok(ok__) => { @@ -2796,17 +2166,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, varbody: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, varbody: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetBody(this, core::mem::transmute(&varbody)).into() } - unsafe extern "system" fn AdminQueueInfo_v1(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn AdminQueueInfo_v1(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::AdminQueueInfo_v1(this) { Ok(ok__) => { @@ -2816,17 +2180,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AdminQueueInfo_v1(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn putref_AdminQueueInfo_v1(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::putref_AdminQueueInfo_v1(this, windows_core::from_raw_borrowed(&pqinfoadmin)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Id(this) { Ok(ok__) => { @@ -2836,10 +2194,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorrelationId(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn CorrelationId(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::CorrelationId(this) { Ok(ok__) => { @@ -2849,17 +2204,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCorrelationId(this: *mut core::ffi::c_void, varmsgid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetCorrelationId(this: *mut core::ffi::c_void, varmsgid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetCorrelationId(this, core::mem::transmute(&varmsgid)).into() } - unsafe extern "system" fn Ack(this: *mut core::ffi::c_void, plack: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Ack(this: *mut core::ffi::c_void, plack: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Ack(this) { Ok(ok__) => { @@ -2869,17 +2218,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAck(this: *mut core::ffi::c_void, lack: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetAck(this: *mut core::ffi::c_void, lack: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetAck(this, core::mem::transmute_copy(&lack)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Label(this) { Ok(ok__) => { @@ -2889,17 +2232,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetLabel(this, core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn MaxTimeToReachQueue(this: *mut core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn MaxTimeToReachQueue(this: *mut core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::MaxTimeToReachQueue(this) { Ok(ok__) => { @@ -2909,17 +2246,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxTimeToReachQueue(this: *mut core::ffi::c_void, lmaxtimetoreachqueue: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetMaxTimeToReachQueue(this: *mut core::ffi::c_void, lmaxtimetoreachqueue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetMaxTimeToReachQueue(this, core::mem::transmute_copy(&lmaxtimetoreachqueue)).into() } - unsafe extern "system" fn MaxTimeToReceive(this: *mut core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn MaxTimeToReceive(this: *mut core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::MaxTimeToReceive(this) { Ok(ok__) => { @@ -2929,17 +2260,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxTimeToReceive(this: *mut core::ffi::c_void, lmaxtimetoreceive: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetMaxTimeToReceive(this: *mut core::ffi::c_void, lmaxtimetoreceive: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetMaxTimeToReceive(this, core::mem::transmute_copy(&lmaxtimetoreceive)).into() } - unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, plhashalg: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, plhashalg: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::HashAlgorithm(this) { Ok(ok__) => { @@ -2949,17 +2274,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, lhashalg: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, lhashalg: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetHashAlgorithm(this, core::mem::transmute_copy(&lhashalg)).into() } - unsafe extern "system" fn EncryptAlgorithm(this: *mut core::ffi::c_void, plencryptalg: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn EncryptAlgorithm(this: *mut core::ffi::c_void, plencryptalg: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::EncryptAlgorithm(this) { Ok(ok__) => { @@ -2969,17 +2288,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncryptAlgorithm(this: *mut core::ffi::c_void, lencryptalg: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetEncryptAlgorithm(this: *mut core::ffi::c_void, lencryptalg: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetEncryptAlgorithm(this, core::mem::transmute_copy(&lencryptalg)).into() } - unsafe extern "system" fn SentTime(this: *mut core::ffi::c_void, pvarsenttime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SentTime(this: *mut core::ffi::c_void, pvarsenttime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::SentTime(this) { Ok(ok__) => { @@ -2989,10 +2302,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ArrivedTime(this: *mut core::ffi::c_void, plarrivedtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn ArrivedTime(this: *mut core::ffi::c_void, plarrivedtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::ArrivedTime(this) { Ok(ok__) => { @@ -3002,10 +2312,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationQueueInfo(this: *mut core::ffi::c_void, ppqinfodest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn DestinationQueueInfo(this: *mut core::ffi::c_void, ppqinfodest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::DestinationQueueInfo(this) { Ok(ok__) => { @@ -3015,10 +2322,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SenderCertificate(this: *mut core::ffi::c_void, pvarsendercert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SenderCertificate(this: *mut core::ffi::c_void, pvarsendercert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::SenderCertificate(this) { Ok(ok__) => { @@ -3028,17 +2332,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderCertificate(this: *mut core::ffi::c_void, varsendercert: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetSenderCertificate(this: *mut core::ffi::c_void, varsendercert: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetSenderCertificate(this, core::mem::transmute(&varsendercert)).into() } - unsafe extern "system" fn SenderId(this: *mut core::ffi::c_void, pvarsenderid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SenderId(this: *mut core::ffi::c_void, pvarsenderid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::SenderId(this) { Ok(ok__) => { @@ -3048,10 +2346,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SenderIdType(this: *mut core::ffi::c_void, plsenderidtype: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SenderIdType(this: *mut core::ffi::c_void, plsenderidtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::SenderIdType(this) { Ok(ok__) => { @@ -3061,31 +2356,19 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderIdType(this: *mut core::ffi::c_void, lsenderidtype: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetSenderIdType(this: *mut core::ffi::c_void, lsenderidtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetSenderIdType(this, core::mem::transmute_copy(&lsenderidtype)).into() } - unsafe extern "system" fn Send(this: *mut core::ffi::c_void, destinationqueue: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Send(this: *mut core::ffi::c_void, destinationqueue: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::Send(this, windows_core::from_raw_borrowed(&destinationqueue), core::mem::transmute_copy(&transaction)).into() } - unsafe extern "system" fn AttachCurrentSecurityContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn AttachCurrentSecurityContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::AttachCurrentSecurityContext(this).into() } - unsafe extern "system" fn SenderVersion(this: *mut core::ffi::c_void, plsenderversion: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SenderVersion(this: *mut core::ffi::c_void, plsenderversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::SenderVersion(this) { Ok(ok__) => { @@ -3095,10 +2378,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Extension(this: *mut core::ffi::c_void, pvarextension: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Extension(this: *mut core::ffi::c_void, pvarextension: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Extension(this) { Ok(ok__) => { @@ -3108,17 +2388,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExtension(this: *mut core::ffi::c_void, varextension: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetExtension(this: *mut core::ffi::c_void, varextension: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetExtension(this, core::mem::transmute(&varextension)).into() } - unsafe extern "system" fn ConnectorTypeGuid(this: *mut core::ffi::c_void, pbstrguidconnectortype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn ConnectorTypeGuid(this: *mut core::ffi::c_void, pbstrguidconnectortype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::ConnectorTypeGuid(this) { Ok(ok__) => { @@ -3128,17 +2402,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectorTypeGuid(this: *mut core::ffi::c_void, bstrguidconnectortype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetConnectorTypeGuid(this: *mut core::ffi::c_void, bstrguidconnectortype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetConnectorTypeGuid(this, core::mem::transmute(&bstrguidconnectortype)).into() } - unsafe extern "system" fn TransactionStatusQueueInfo(this: *mut core::ffi::c_void, ppqinfoxactstatus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn TransactionStatusQueueInfo(this: *mut core::ffi::c_void, ppqinfoxactstatus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::TransactionStatusQueueInfo(this) { Ok(ok__) => { @@ -3148,10 +2416,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationSymmetricKey(this: *mut core::ffi::c_void, pvardestsymmkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn DestinationSymmetricKey(this: *mut core::ffi::c_void, pvardestsymmkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::DestinationSymmetricKey(this) { Ok(ok__) => { @@ -3161,17 +2426,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDestinationSymmetricKey(this: *mut core::ffi::c_void, vardestsymmkey: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetDestinationSymmetricKey(this: *mut core::ffi::c_void, vardestsymmkey: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetDestinationSymmetricKey(this, core::mem::transmute(&vardestsymmkey)).into() } - unsafe extern "system" fn Signature(this: *mut core::ffi::c_void, pvarsignature: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Signature(this: *mut core::ffi::c_void, pvarsignature: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Signature(this) { Ok(ok__) => { @@ -3181,17 +2440,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignature(this: *mut core::ffi::c_void, varsignature: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetSignature(this: *mut core::ffi::c_void, varsignature: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetSignature(this, core::mem::transmute(&varsignature)).into() } - unsafe extern "system" fn AuthenticationProviderType(this: *mut core::ffi::c_void, plauthprovtype: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn AuthenticationProviderType(this: *mut core::ffi::c_void, plauthprovtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::AuthenticationProviderType(this) { Ok(ok__) => { @@ -3201,17 +2454,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationProviderType(this: *mut core::ffi::c_void, lauthprovtype: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetAuthenticationProviderType(this: *mut core::ffi::c_void, lauthprovtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetAuthenticationProviderType(this, core::mem::transmute_copy(&lauthprovtype)).into() } - unsafe extern "system" fn AuthenticationProviderName(this: *mut core::ffi::c_void, pbstrauthprovname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn AuthenticationProviderName(this: *mut core::ffi::c_void, pbstrauthprovname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::AuthenticationProviderName(this) { Ok(ok__) => { @@ -3221,24 +2468,15 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationProviderName(this: *mut core::ffi::c_void, bstrauthprovname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetAuthenticationProviderName(this: *mut core::ffi::c_void, bstrauthprovname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetAuthenticationProviderName(this, core::mem::transmute(&bstrauthprovname)).into() } - unsafe extern "system" fn SetSenderId(this: *mut core::ffi::c_void, varsenderid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetSenderId(this: *mut core::ffi::c_void, varsenderid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetSenderId(this, core::mem::transmute(&varsenderid)).into() } - unsafe extern "system" fn MsgClass(this: *mut core::ffi::c_void, plmsgclass: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn MsgClass(this: *mut core::ffi::c_void, plmsgclass: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::MsgClass(this) { Ok(ok__) => { @@ -3248,17 +2486,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMsgClass(this: *mut core::ffi::c_void, lmsgclass: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetMsgClass(this: *mut core::ffi::c_void, lmsgclass: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetMsgClass(this, core::mem::transmute_copy(&lmsgclass)).into() } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Properties(this) { Ok(ok__) => { @@ -3268,10 +2500,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransactionId(this: *mut core::ffi::c_void, pvarxactid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn TransactionId(this: *mut core::ffi::c_void, pvarxactid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::TransactionId(this) { Ok(ok__) => { @@ -3281,10 +2510,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFirstInTransaction(this: *mut core::ffi::c_void, pisfirstinxact: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn IsFirstInTransaction(this: *mut core::ffi::c_void, pisfirstinxact: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::IsFirstInTransaction(this) { Ok(ok__) => { @@ -3294,10 +2520,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLastInTransaction(this: *mut core::ffi::c_void, pislastinxact: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn IsLastInTransaction(this: *mut core::ffi::c_void, pislastinxact: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::IsLastInTransaction(this) { Ok(ok__) => { @@ -3307,10 +2530,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResponseQueueInfo_v2(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn ResponseQueueInfo_v2(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::ResponseQueueInfo_v2(this) { Ok(ok__) => { @@ -3320,17 +2540,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseQueueInfo_v2(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn putref_ResponseQueueInfo_v2(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::putref_ResponseQueueInfo_v2(this, windows_core::from_raw_borrowed(&pqinforesponse)).into() } - unsafe extern "system" fn AdminQueueInfo_v2(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn AdminQueueInfo_v2(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::AdminQueueInfo_v2(this) { Ok(ok__) => { @@ -3340,17 +2554,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AdminQueueInfo_v2(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn putref_AdminQueueInfo_v2(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::putref_AdminQueueInfo_v2(this, windows_core::from_raw_borrowed(&pqinfoadmin)).into() } - unsafe extern "system" fn ReceivedAuthenticationLevel(this: *mut core::ffi::c_void, psreceivedauthenticationlevel: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn ReceivedAuthenticationLevel(this: *mut core::ffi::c_void, psreceivedauthenticationlevel: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::ReceivedAuthenticationLevel(this) { Ok(ok__) => { @@ -3360,10 +2568,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResponseQueueInfo(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn ResponseQueueInfo(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::ResponseQueueInfo(this) { Ok(ok__) => { @@ -3373,17 +2578,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseQueueInfo(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn putref_ResponseQueueInfo(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::putref_ResponseQueueInfo(this, windows_core::from_raw_borrowed(&pqinforesponse)).into() } - unsafe extern "system" fn AdminQueueInfo(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn AdminQueueInfo(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::AdminQueueInfo(this) { Ok(ok__) => { @@ -3393,17 +2592,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AdminQueueInfo(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn putref_AdminQueueInfo(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::putref_AdminQueueInfo(this, windows_core::from_raw_borrowed(&pqinfoadmin)).into() } - unsafe extern "system" fn ResponseDestination(this: *mut core::ffi::c_void, ppdestresponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn ResponseDestination(this: *mut core::ffi::c_void, ppdestresponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::ResponseDestination(this) { Ok(ok__) => { @@ -3413,17 +2606,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseDestination(this: *mut core::ffi::c_void, pdestresponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn putref_ResponseDestination(this: *mut core::ffi::c_void, pdestresponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::putref_ResponseDestination(this, windows_core::from_raw_borrowed(&pdestresponse)).into() } - unsafe extern "system" fn Destination(this: *mut core::ffi::c_void, ppdestdestination: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn Destination(this: *mut core::ffi::c_void, ppdestdestination: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::Destination(this) { Ok(ok__) => { @@ -3433,10 +2620,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LookupId(this: *mut core::ffi::c_void, pvarlookupid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn LookupId(this: *mut core::ffi::c_void, pvarlookupid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::LookupId(this) { Ok(ok__) => { @@ -3446,10 +2630,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsAuthenticated2(this: *mut core::ffi::c_void, pisauthenticated: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn IsAuthenticated2(this: *mut core::ffi::c_void, pisauthenticated: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::IsAuthenticated2(this) { Ok(ok__) => { @@ -3459,10 +2640,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFirstInTransaction2(this: *mut core::ffi::c_void, pisfirstinxact: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn IsFirstInTransaction2(this: *mut core::ffi::c_void, pisfirstinxact: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::IsFirstInTransaction2(this) { Ok(ok__) => { @@ -3472,10 +2650,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLastInTransaction2(this: *mut core::ffi::c_void, pislastinxact: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn IsLastInTransaction2(this: *mut core::ffi::c_void, pislastinxact: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::IsLastInTransaction2(this) { Ok(ok__) => { @@ -3485,17 +2660,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AttachCurrentSecurityContext2(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn AttachCurrentSecurityContext2(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::AttachCurrentSecurityContext2(this).into() } - unsafe extern "system" fn SoapEnvelope(this: *mut core::ffi::c_void, pbstrsoapenvelope: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SoapEnvelope(this: *mut core::ffi::c_void, pbstrsoapenvelope: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::SoapEnvelope(this) { Ok(ok__) => { @@ -3505,10 +2674,7 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompoundMessage(this: *mut core::ffi::c_void, pvarcompoundmessage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn CompoundMessage(this: *mut core::ffi::c_void, pvarcompoundmessage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage3_Impl::CompoundMessage(this) { Ok(ok__) => { @@ -3518,17 +2684,11 @@ impl IMSMQMessage3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSoapHeader(this: *mut core::ffi::c_void, bstrsoapheader: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetSoapHeader(this: *mut core::ffi::c_void, bstrsoapheader: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetSoapHeader(this, core::mem::transmute(&bstrsoapheader)).into() } - unsafe extern "system" fn SetSoapBody(this: *mut core::ffi::c_void, bstrsoapbody: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage3_Impl, - { + unsafe extern "system" fn SetSoapBody(this: *mut core::ffi::c_void, bstrsoapbody: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage3_Impl::SetSoapBody(this, core::mem::transmute(&bstrsoapbody)).into() } @@ -3729,14 +2889,8 @@ pub trait IMSMQMessage4_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQMessage4 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQMessage4_Vtbl { - pub const fn new() -> IMSMQMessage4_Vtbl - where - Identity: IMSMQMessage4_Impl, - { - unsafe extern "system" fn Class(this: *mut core::ffi::c_void, plclass: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + pub const fn new() -> IMSMQMessage4_Vtbl { + unsafe extern "system" fn Class(this: *mut core::ffi::c_void, plclass: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Class(this) { Ok(ok__) => { @@ -3746,10 +2900,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::PrivLevel(this) { Ok(ok__) => { @@ -3759,17 +2910,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetPrivLevel(this, core::mem::transmute_copy(&lprivlevel)).into() } - unsafe extern "system" fn AuthLevel(this: *mut core::ffi::c_void, plauthlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn AuthLevel(this: *mut core::ffi::c_void, plauthlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::AuthLevel(this) { Ok(ok__) => { @@ -3779,17 +2924,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthLevel(this: *mut core::ffi::c_void, lauthlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetAuthLevel(this: *mut core::ffi::c_void, lauthlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetAuthLevel(this, core::mem::transmute_copy(&lauthlevel)).into() } - unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pisauthenticated: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pisauthenticated: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::IsAuthenticated(this) { Ok(ok__) => { @@ -3799,10 +2938,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delivery(this: *mut core::ffi::c_void, pldelivery: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Delivery(this: *mut core::ffi::c_void, pldelivery: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Delivery(this) { Ok(ok__) => { @@ -3812,17 +2948,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDelivery(this: *mut core::ffi::c_void, ldelivery: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetDelivery(this: *mut core::ffi::c_void, ldelivery: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetDelivery(this, core::mem::transmute_copy(&ldelivery)).into() } - unsafe extern "system" fn Trace(this: *mut core::ffi::c_void, pltrace: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Trace(this: *mut core::ffi::c_void, pltrace: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Trace(this) { Ok(ok__) => { @@ -3832,17 +2962,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTrace(this: *mut core::ffi::c_void, ltrace: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetTrace(this: *mut core::ffi::c_void, ltrace: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetTrace(this, core::mem::transmute_copy(<race)).into() } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, plpriority: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, plpriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Priority(this) { Ok(ok__) => { @@ -3852,17 +2976,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lpriority: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, lpriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetPriority(this, core::mem::transmute_copy(&lpriority)).into() } - unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Journal(this) { Ok(ok__) => { @@ -3872,17 +2990,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetJournal(this, core::mem::transmute_copy(&ljournal)).into() } - unsafe extern "system" fn ResponseQueueInfo_v1(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn ResponseQueueInfo_v1(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::ResponseQueueInfo_v1(this) { Ok(ok__) => { @@ -3892,17 +3004,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseQueueInfo_v1(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn putref_ResponseQueueInfo_v1(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::putref_ResponseQueueInfo_v1(this, windows_core::from_raw_borrowed(&pqinforesponse)).into() } - unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn AppSpecific(this: *mut core::ffi::c_void, plappspecific: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::AppSpecific(this) { Ok(ok__) => { @@ -3912,17 +3018,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAppSpecific(this: *mut core::ffi::c_void, lappspecific: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetAppSpecific(this: *mut core::ffi::c_void, lappspecific: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetAppSpecific(this, core::mem::transmute_copy(&lappspecific)).into() } - unsafe extern "system" fn SourceMachineGuid(this: *mut core::ffi::c_void, pbstrguidsrcmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SourceMachineGuid(this: *mut core::ffi::c_void, pbstrguidsrcmachine: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::SourceMachineGuid(this) { Ok(ok__) => { @@ -3932,10 +3032,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BodyLength(this: *mut core::ffi::c_void, pcbbody: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn BodyLength(this: *mut core::ffi::c_void, pcbbody: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::BodyLength(this) { Ok(ok__) => { @@ -3945,10 +3042,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pvarbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Body(this) { Ok(ok__) => { @@ -3958,17 +3052,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, varbody: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, varbody: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetBody(this, core::mem::transmute(&varbody)).into() } - unsafe extern "system" fn AdminQueueInfo_v1(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn AdminQueueInfo_v1(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::AdminQueueInfo_v1(this) { Ok(ok__) => { @@ -3978,17 +3066,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AdminQueueInfo_v1(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn putref_AdminQueueInfo_v1(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::putref_AdminQueueInfo_v1(this, windows_core::from_raw_borrowed(&pqinfoadmin)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Id(this) { Ok(ok__) => { @@ -3998,10 +3080,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CorrelationId(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn CorrelationId(this: *mut core::ffi::c_void, pvarmsgid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::CorrelationId(this) { Ok(ok__) => { @@ -4011,17 +3090,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCorrelationId(this: *mut core::ffi::c_void, varmsgid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetCorrelationId(this: *mut core::ffi::c_void, varmsgid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetCorrelationId(this, core::mem::transmute(&varmsgid)).into() } - unsafe extern "system" fn Ack(this: *mut core::ffi::c_void, plack: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Ack(this: *mut core::ffi::c_void, plack: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Ack(this) { Ok(ok__) => { @@ -4031,17 +3104,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAck(this: *mut core::ffi::c_void, lack: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetAck(this: *mut core::ffi::c_void, lack: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetAck(this, core::mem::transmute_copy(&lack)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Label(this) { Ok(ok__) => { @@ -4051,17 +3118,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetLabel(this, core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn MaxTimeToReachQueue(this: *mut core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn MaxTimeToReachQueue(this: *mut core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::MaxTimeToReachQueue(this) { Ok(ok__) => { @@ -4071,17 +3132,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxTimeToReachQueue(this: *mut core::ffi::c_void, lmaxtimetoreachqueue: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetMaxTimeToReachQueue(this: *mut core::ffi::c_void, lmaxtimetoreachqueue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetMaxTimeToReachQueue(this, core::mem::transmute_copy(&lmaxtimetoreachqueue)).into() } - unsafe extern "system" fn MaxTimeToReceive(this: *mut core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn MaxTimeToReceive(this: *mut core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::MaxTimeToReceive(this) { Ok(ok__) => { @@ -4091,17 +3146,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxTimeToReceive(this: *mut core::ffi::c_void, lmaxtimetoreceive: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetMaxTimeToReceive(this: *mut core::ffi::c_void, lmaxtimetoreceive: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetMaxTimeToReceive(this, core::mem::transmute_copy(&lmaxtimetoreceive)).into() } - unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, plhashalg: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn HashAlgorithm(this: *mut core::ffi::c_void, plhashalg: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::HashAlgorithm(this) { Ok(ok__) => { @@ -4111,17 +3160,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, lhashalg: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetHashAlgorithm(this: *mut core::ffi::c_void, lhashalg: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetHashAlgorithm(this, core::mem::transmute_copy(&lhashalg)).into() } - unsafe extern "system" fn EncryptAlgorithm(this: *mut core::ffi::c_void, plencryptalg: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn EncryptAlgorithm(this: *mut core::ffi::c_void, plencryptalg: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::EncryptAlgorithm(this) { Ok(ok__) => { @@ -4131,17 +3174,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEncryptAlgorithm(this: *mut core::ffi::c_void, lencryptalg: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetEncryptAlgorithm(this: *mut core::ffi::c_void, lencryptalg: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetEncryptAlgorithm(this, core::mem::transmute_copy(&lencryptalg)).into() } - unsafe extern "system" fn SentTime(this: *mut core::ffi::c_void, pvarsenttime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SentTime(this: *mut core::ffi::c_void, pvarsenttime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::SentTime(this) { Ok(ok__) => { @@ -4151,10 +3188,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ArrivedTime(this: *mut core::ffi::c_void, plarrivedtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn ArrivedTime(this: *mut core::ffi::c_void, plarrivedtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::ArrivedTime(this) { Ok(ok__) => { @@ -4164,10 +3198,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationQueueInfo(this: *mut core::ffi::c_void, ppqinfodest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn DestinationQueueInfo(this: *mut core::ffi::c_void, ppqinfodest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::DestinationQueueInfo(this) { Ok(ok__) => { @@ -4177,10 +3208,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SenderCertificate(this: *mut core::ffi::c_void, pvarsendercert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SenderCertificate(this: *mut core::ffi::c_void, pvarsendercert: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::SenderCertificate(this) { Ok(ok__) => { @@ -4190,17 +3218,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderCertificate(this: *mut core::ffi::c_void, varsendercert: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetSenderCertificate(this: *mut core::ffi::c_void, varsendercert: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetSenderCertificate(this, core::mem::transmute(&varsendercert)).into() } - unsafe extern "system" fn SenderId(this: *mut core::ffi::c_void, pvarsenderid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SenderId(this: *mut core::ffi::c_void, pvarsenderid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::SenderId(this) { Ok(ok__) => { @@ -4210,10 +3232,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SenderIdType(this: *mut core::ffi::c_void, plsenderidtype: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SenderIdType(this: *mut core::ffi::c_void, plsenderidtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::SenderIdType(this) { Ok(ok__) => { @@ -4223,31 +3242,19 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderIdType(this: *mut core::ffi::c_void, lsenderidtype: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetSenderIdType(this: *mut core::ffi::c_void, lsenderidtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetSenderIdType(this, core::mem::transmute_copy(&lsenderidtype)).into() } - unsafe extern "system" fn Send(this: *mut core::ffi::c_void, destinationqueue: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Send(this: *mut core::ffi::c_void, destinationqueue: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::Send(this, windows_core::from_raw_borrowed(&destinationqueue), core::mem::transmute_copy(&transaction)).into() } - unsafe extern "system" fn AttachCurrentSecurityContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn AttachCurrentSecurityContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::AttachCurrentSecurityContext(this).into() } - unsafe extern "system" fn SenderVersion(this: *mut core::ffi::c_void, plsenderversion: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SenderVersion(this: *mut core::ffi::c_void, plsenderversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::SenderVersion(this) { Ok(ok__) => { @@ -4257,10 +3264,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Extension(this: *mut core::ffi::c_void, pvarextension: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Extension(this: *mut core::ffi::c_void, pvarextension: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Extension(this) { Ok(ok__) => { @@ -4270,17 +3274,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExtension(this: *mut core::ffi::c_void, varextension: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetExtension(this: *mut core::ffi::c_void, varextension: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetExtension(this, core::mem::transmute(&varextension)).into() } - unsafe extern "system" fn ConnectorTypeGuid(this: *mut core::ffi::c_void, pbstrguidconnectortype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn ConnectorTypeGuid(this: *mut core::ffi::c_void, pbstrguidconnectortype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::ConnectorTypeGuid(this) { Ok(ok__) => { @@ -4290,17 +3288,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectorTypeGuid(this: *mut core::ffi::c_void, bstrguidconnectortype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetConnectorTypeGuid(this: *mut core::ffi::c_void, bstrguidconnectortype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetConnectorTypeGuid(this, core::mem::transmute(&bstrguidconnectortype)).into() } - unsafe extern "system" fn TransactionStatusQueueInfo(this: *mut core::ffi::c_void, ppqinfoxactstatus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn TransactionStatusQueueInfo(this: *mut core::ffi::c_void, ppqinfoxactstatus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::TransactionStatusQueueInfo(this) { Ok(ok__) => { @@ -4310,10 +3302,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestinationSymmetricKey(this: *mut core::ffi::c_void, pvardestsymmkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn DestinationSymmetricKey(this: *mut core::ffi::c_void, pvardestsymmkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::DestinationSymmetricKey(this) { Ok(ok__) => { @@ -4323,17 +3312,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDestinationSymmetricKey(this: *mut core::ffi::c_void, vardestsymmkey: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetDestinationSymmetricKey(this: *mut core::ffi::c_void, vardestsymmkey: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetDestinationSymmetricKey(this, core::mem::transmute(&vardestsymmkey)).into() } - unsafe extern "system" fn Signature(this: *mut core::ffi::c_void, pvarsignature: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Signature(this: *mut core::ffi::c_void, pvarsignature: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Signature(this) { Ok(ok__) => { @@ -4343,17 +3326,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSignature(this: *mut core::ffi::c_void, varsignature: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetSignature(this: *mut core::ffi::c_void, varsignature: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetSignature(this, core::mem::transmute(&varsignature)).into() } - unsafe extern "system" fn AuthenticationProviderType(this: *mut core::ffi::c_void, plauthprovtype: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn AuthenticationProviderType(this: *mut core::ffi::c_void, plauthprovtype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::AuthenticationProviderType(this) { Ok(ok__) => { @@ -4363,17 +3340,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationProviderType(this: *mut core::ffi::c_void, lauthprovtype: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetAuthenticationProviderType(this: *mut core::ffi::c_void, lauthprovtype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetAuthenticationProviderType(this, core::mem::transmute_copy(&lauthprovtype)).into() } - unsafe extern "system" fn AuthenticationProviderName(this: *mut core::ffi::c_void, pbstrauthprovname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn AuthenticationProviderName(this: *mut core::ffi::c_void, pbstrauthprovname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::AuthenticationProviderName(this) { Ok(ok__) => { @@ -4383,24 +3354,15 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationProviderName(this: *mut core::ffi::c_void, bstrauthprovname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetAuthenticationProviderName(this: *mut core::ffi::c_void, bstrauthprovname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetAuthenticationProviderName(this, core::mem::transmute(&bstrauthprovname)).into() } - unsafe extern "system" fn SetSenderId(this: *mut core::ffi::c_void, varsenderid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetSenderId(this: *mut core::ffi::c_void, varsenderid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetSenderId(this, core::mem::transmute(&varsenderid)).into() } - unsafe extern "system" fn MsgClass(this: *mut core::ffi::c_void, plmsgclass: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn MsgClass(this: *mut core::ffi::c_void, plmsgclass: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::MsgClass(this) { Ok(ok__) => { @@ -4410,17 +3372,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMsgClass(this: *mut core::ffi::c_void, lmsgclass: i32) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetMsgClass(this: *mut core::ffi::c_void, lmsgclass: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetMsgClass(this, core::mem::transmute_copy(&lmsgclass)).into() } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Properties(this) { Ok(ok__) => { @@ -4430,10 +3386,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransactionId(this: *mut core::ffi::c_void, pvarxactid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn TransactionId(this: *mut core::ffi::c_void, pvarxactid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::TransactionId(this) { Ok(ok__) => { @@ -4443,10 +3396,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFirstInTransaction(this: *mut core::ffi::c_void, pisfirstinxact: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn IsFirstInTransaction(this: *mut core::ffi::c_void, pisfirstinxact: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::IsFirstInTransaction(this) { Ok(ok__) => { @@ -4456,10 +3406,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLastInTransaction(this: *mut core::ffi::c_void, pislastinxact: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn IsLastInTransaction(this: *mut core::ffi::c_void, pislastinxact: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::IsLastInTransaction(this) { Ok(ok__) => { @@ -4469,10 +3416,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResponseQueueInfo_v2(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn ResponseQueueInfo_v2(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::ResponseQueueInfo_v2(this) { Ok(ok__) => { @@ -4482,17 +3426,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseQueueInfo_v2(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn putref_ResponseQueueInfo_v2(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::putref_ResponseQueueInfo_v2(this, windows_core::from_raw_borrowed(&pqinforesponse)).into() } - unsafe extern "system" fn AdminQueueInfo_v2(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn AdminQueueInfo_v2(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::AdminQueueInfo_v2(this) { Ok(ok__) => { @@ -4502,17 +3440,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AdminQueueInfo_v2(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn putref_AdminQueueInfo_v2(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::putref_AdminQueueInfo_v2(this, windows_core::from_raw_borrowed(&pqinfoadmin)).into() } - unsafe extern "system" fn ReceivedAuthenticationLevel(this: *mut core::ffi::c_void, psreceivedauthenticationlevel: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn ReceivedAuthenticationLevel(this: *mut core::ffi::c_void, psreceivedauthenticationlevel: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::ReceivedAuthenticationLevel(this) { Ok(ok__) => { @@ -4522,10 +3454,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResponseQueueInfo(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn ResponseQueueInfo(this: *mut core::ffi::c_void, ppqinforesponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::ResponseQueueInfo(this) { Ok(ok__) => { @@ -4535,17 +3464,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseQueueInfo(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn putref_ResponseQueueInfo(this: *mut core::ffi::c_void, pqinforesponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::putref_ResponseQueueInfo(this, windows_core::from_raw_borrowed(&pqinforesponse)).into() } - unsafe extern "system" fn AdminQueueInfo(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn AdminQueueInfo(this: *mut core::ffi::c_void, ppqinfoadmin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::AdminQueueInfo(this) { Ok(ok__) => { @@ -4555,17 +3478,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_AdminQueueInfo(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn putref_AdminQueueInfo(this: *mut core::ffi::c_void, pqinfoadmin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::putref_AdminQueueInfo(this, windows_core::from_raw_borrowed(&pqinfoadmin)).into() } - unsafe extern "system" fn ResponseDestination(this: *mut core::ffi::c_void, ppdestresponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn ResponseDestination(this: *mut core::ffi::c_void, ppdestresponse: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::ResponseDestination(this) { Ok(ok__) => { @@ -4575,17 +3492,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ResponseDestination(this: *mut core::ffi::c_void, pdestresponse: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn putref_ResponseDestination(this: *mut core::ffi::c_void, pdestresponse: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::putref_ResponseDestination(this, windows_core::from_raw_borrowed(&pdestresponse)).into() } - unsafe extern "system" fn Destination(this: *mut core::ffi::c_void, ppdestdestination: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn Destination(this: *mut core::ffi::c_void, ppdestdestination: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::Destination(this) { Ok(ok__) => { @@ -4595,10 +3506,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LookupId(this: *mut core::ffi::c_void, pvarlookupid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn LookupId(this: *mut core::ffi::c_void, pvarlookupid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::LookupId(this) { Ok(ok__) => { @@ -4608,10 +3516,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsAuthenticated2(this: *mut core::ffi::c_void, pisauthenticated: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn IsAuthenticated2(this: *mut core::ffi::c_void, pisauthenticated: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::IsAuthenticated2(this) { Ok(ok__) => { @@ -4621,10 +3526,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFirstInTransaction2(this: *mut core::ffi::c_void, pisfirstinxact: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn IsFirstInTransaction2(this: *mut core::ffi::c_void, pisfirstinxact: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::IsFirstInTransaction2(this) { Ok(ok__) => { @@ -4634,10 +3536,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLastInTransaction2(this: *mut core::ffi::c_void, pislastinxact: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn IsLastInTransaction2(this: *mut core::ffi::c_void, pislastinxact: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::IsLastInTransaction2(this) { Ok(ok__) => { @@ -4647,17 +3546,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AttachCurrentSecurityContext2(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn AttachCurrentSecurityContext2(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::AttachCurrentSecurityContext2(this).into() } - unsafe extern "system" fn SoapEnvelope(this: *mut core::ffi::c_void, pbstrsoapenvelope: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SoapEnvelope(this: *mut core::ffi::c_void, pbstrsoapenvelope: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::SoapEnvelope(this) { Ok(ok__) => { @@ -4667,10 +3560,7 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompoundMessage(this: *mut core::ffi::c_void, pvarcompoundmessage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn CompoundMessage(this: *mut core::ffi::c_void, pvarcompoundmessage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQMessage4_Impl::CompoundMessage(this) { Ok(ok__) => { @@ -4680,17 +3570,11 @@ impl IMSMQMessage4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSoapHeader(this: *mut core::ffi::c_void, bstrsoapheader: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetSoapHeader(this: *mut core::ffi::c_void, bstrsoapheader: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetSoapHeader(this, core::mem::transmute(&bstrsoapheader)).into() } - unsafe extern "system" fn SetSoapBody(this: *mut core::ffi::c_void, bstrsoapbody: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQMessage4_Impl, - { + unsafe extern "system" fn SetSoapBody(this: *mut core::ffi::c_void, bstrsoapbody: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQMessage4_Impl::SetSoapBody(this, core::mem::transmute(&bstrsoapbody)).into() } @@ -4806,14 +3690,8 @@ pub trait IMSMQOutgoingQueueManagement_Impl: Sized + IMSMQManagement_Impl { impl windows_core::RuntimeName for IMSMQOutgoingQueueManagement {} #[cfg(feature = "Win32_System_Com")] impl IMSMQOutgoingQueueManagement_Vtbl { - pub const fn new() -> IMSMQOutgoingQueueManagement_Vtbl - where - Identity: IMSMQOutgoingQueueManagement_Impl, - { - unsafe extern "system" fn State(this: *mut core::ffi::c_void, plstate: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQOutgoingQueueManagement_Impl, - { + pub const fn new() -> IMSMQOutgoingQueueManagement_Vtbl { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, plstate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQOutgoingQueueManagement_Impl::State(this) { Ok(ok__) => { @@ -4823,10 +3701,7 @@ impl IMSMQOutgoingQueueManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NextHops(this: *mut core::ffi::c_void, pvnexthops: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQOutgoingQueueManagement_Impl, - { + unsafe extern "system" fn NextHops(this: *mut core::ffi::c_void, pvnexthops: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQOutgoingQueueManagement_Impl::NextHops(this) { Ok(ok__) => { @@ -4836,10 +3711,7 @@ impl IMSMQOutgoingQueueManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EodGetSendInfo(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQOutgoingQueueManagement_Impl, - { + unsafe extern "system" fn EodGetSendInfo(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQOutgoingQueueManagement_Impl::EodGetSendInfo(this) { Ok(ok__) => { @@ -4849,24 +3721,15 @@ impl IMSMQOutgoingQueueManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQOutgoingQueueManagement_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQOutgoingQueueManagement_Impl::Resume(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQOutgoingQueueManagement_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQOutgoingQueueManagement_Impl::Pause(this).into() } - unsafe extern "system" fn EodResend(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQOutgoingQueueManagement_Impl, - { + unsafe extern "system" fn EodResend(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQOutgoingQueueManagement_Impl::EodResend(this).into() } @@ -4893,14 +3756,8 @@ pub trait IMSMQPrivateDestination_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQPrivateDestination {} #[cfg(feature = "Win32_System_Com")] impl IMSMQPrivateDestination_Vtbl { - pub const fn new() -> IMSMQPrivateDestination_Vtbl - where - Identity: IMSMQPrivateDestination_Impl, - { - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, pvarhandle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQPrivateDestination_Impl, - { + pub const fn new() -> IMSMQPrivateDestination_Vtbl { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, pvarhandle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQPrivateDestination_Impl::Handle(this) { Ok(ok__) => { @@ -4910,10 +3767,7 @@ impl IMSMQPrivateDestination_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHandle(this: *mut core::ffi::c_void, varhandle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQPrivateDestination_Impl, - { + unsafe extern "system" fn SetHandle(this: *mut core::ffi::c_void, varhandle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQPrivateDestination_Impl::SetHandle(this, core::mem::transmute(&varhandle)).into() } @@ -4933,14 +3787,8 @@ pub trait IMSMQPrivateEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQPrivateEvent {} #[cfg(feature = "Win32_System_Com")] impl IMSMQPrivateEvent_Vtbl { - pub const fn new() -> IMSMQPrivateEvent_Vtbl - where - Identity: IMSMQPrivateEvent_Impl, - { - unsafe extern "system" fn Hwnd(this: *mut core::ffi::c_void, phwnd: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQPrivateEvent_Impl, - { + pub const fn new() -> IMSMQPrivateEvent_Vtbl { + unsafe extern "system" fn Hwnd(this: *mut core::ffi::c_void, phwnd: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQPrivateEvent_Impl::Hwnd(this) { Ok(ok__) => { @@ -4950,17 +3798,11 @@ impl IMSMQPrivateEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FireArrivedEvent(this: *mut core::ffi::c_void, pq: *mut core::ffi::c_void, msgcursor: i32) -> windows_core::HRESULT - where - Identity: IMSMQPrivateEvent_Impl, - { + unsafe extern "system" fn FireArrivedEvent(this: *mut core::ffi::c_void, pq: *mut core::ffi::c_void, msgcursor: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQPrivateEvent_Impl::FireArrivedEvent(this, windows_core::from_raw_borrowed(&pq), core::mem::transmute_copy(&msgcursor)).into() } - unsafe extern "system" fn FireArrivedErrorEvent(this: *mut core::ffi::c_void, pq: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, msgcursor: i32) -> windows_core::HRESULT - where - Identity: IMSMQPrivateEvent_Impl, - { + unsafe extern "system" fn FireArrivedErrorEvent(this: *mut core::ffi::c_void, pq: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT, msgcursor: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQPrivateEvent_Impl::FireArrivedErrorEvent(this, windows_core::from_raw_borrowed(&pq), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&msgcursor)).into() } @@ -4983,14 +3825,8 @@ pub trait IMSMQQuery_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQuery {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQuery_Vtbl { - pub const fn new() -> IMSMQQuery_Vtbl - where - Identity: IMSMQQuery_Impl, - { - unsafe extern "system" fn LookupQueue(this: *mut core::ffi::c_void, queueguid: *const core::mem::MaybeUninit, servicetypeguid: *const core::mem::MaybeUninit, label: *const core::mem::MaybeUninit, createtime: *const core::mem::MaybeUninit, modifytime: *const core::mem::MaybeUninit, relservicetype: *const core::mem::MaybeUninit, rellabel: *const core::mem::MaybeUninit, relcreatetime: *const core::mem::MaybeUninit, relmodifytime: *const core::mem::MaybeUninit, ppqinfos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQuery_Impl, - { + pub const fn new() -> IMSMQQuery_Vtbl { + unsafe extern "system" fn LookupQueue(this: *mut core::ffi::c_void, queueguid: *const core::mem::MaybeUninit, servicetypeguid: *const core::mem::MaybeUninit, label: *const core::mem::MaybeUninit, createtime: *const core::mem::MaybeUninit, modifytime: *const core::mem::MaybeUninit, relservicetype: *const core::mem::MaybeUninit, rellabel: *const core::mem::MaybeUninit, relcreatetime: *const core::mem::MaybeUninit, relmodifytime: *const core::mem::MaybeUninit, ppqinfos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQuery_Impl::LookupQueue(this, core::mem::transmute_copy(&queueguid), core::mem::transmute_copy(&servicetypeguid), core::mem::transmute_copy(&label), core::mem::transmute_copy(&createtime), core::mem::transmute_copy(&modifytime), core::mem::transmute_copy(&relservicetype), core::mem::transmute_copy(&rellabel), core::mem::transmute_copy(&relcreatetime), core::mem::transmute_copy(&relmodifytime)) { Ok(ok__) => { @@ -5015,14 +3851,8 @@ pub trait IMSMQQuery2_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQuery2 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQuery2_Vtbl { - pub const fn new() -> IMSMQQuery2_Vtbl - where - Identity: IMSMQQuery2_Impl, - { - unsafe extern "system" fn LookupQueue(this: *mut core::ffi::c_void, queueguid: *const core::mem::MaybeUninit, servicetypeguid: *const core::mem::MaybeUninit, label: *const core::mem::MaybeUninit, createtime: *const core::mem::MaybeUninit, modifytime: *const core::mem::MaybeUninit, relservicetype: *const core::mem::MaybeUninit, rellabel: *const core::mem::MaybeUninit, relcreatetime: *const core::mem::MaybeUninit, relmodifytime: *const core::mem::MaybeUninit, ppqinfos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQuery2_Impl, - { + pub const fn new() -> IMSMQQuery2_Vtbl { + unsafe extern "system" fn LookupQueue(this: *mut core::ffi::c_void, queueguid: *const core::mem::MaybeUninit, servicetypeguid: *const core::mem::MaybeUninit, label: *const core::mem::MaybeUninit, createtime: *const core::mem::MaybeUninit, modifytime: *const core::mem::MaybeUninit, relservicetype: *const core::mem::MaybeUninit, rellabel: *const core::mem::MaybeUninit, relcreatetime: *const core::mem::MaybeUninit, relmodifytime: *const core::mem::MaybeUninit, ppqinfos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQuery2_Impl::LookupQueue(this, core::mem::transmute_copy(&queueguid), core::mem::transmute_copy(&servicetypeguid), core::mem::transmute_copy(&label), core::mem::transmute_copy(&createtime), core::mem::transmute_copy(&modifytime), core::mem::transmute_copy(&relservicetype), core::mem::transmute_copy(&rellabel), core::mem::transmute_copy(&relcreatetime), core::mem::transmute_copy(&relmodifytime)) { Ok(ok__) => { @@ -5032,10 +3862,7 @@ impl IMSMQQuery2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQuery2_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQuery2_Impl::Properties(this) { Ok(ok__) => { @@ -5065,26 +3892,8 @@ pub trait IMSMQQuery3_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQuery3 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQuery3_Vtbl { - pub const fn new() -> IMSMQQuery3_Vtbl - where - Identity: IMSMQQuery3_Impl, - { - unsafe extern "system" fn LookupQueue_v2( - this: *mut core::ffi::c_void, - queueguid: *const core::mem::MaybeUninit, - servicetypeguid: *const core::mem::MaybeUninit, - label: *const core::mem::MaybeUninit, - createtime: *const core::mem::MaybeUninit, - modifytime: *const core::mem::MaybeUninit, - relservicetype: *const core::mem::MaybeUninit, - rellabel: *const core::mem::MaybeUninit, - relcreatetime: *const core::mem::MaybeUninit, - relmodifytime: *const core::mem::MaybeUninit, - ppqinfos: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IMSMQQuery3_Impl, - { + pub const fn new() -> IMSMQQuery3_Vtbl { + unsafe extern "system" fn LookupQueue_v2(this: *mut core::ffi::c_void, queueguid: *const core::mem::MaybeUninit, servicetypeguid: *const core::mem::MaybeUninit, label: *const core::mem::MaybeUninit, createtime: *const core::mem::MaybeUninit, modifytime: *const core::mem::MaybeUninit, relservicetype: *const core::mem::MaybeUninit, rellabel: *const core::mem::MaybeUninit, relcreatetime: *const core::mem::MaybeUninit, relmodifytime: *const core::mem::MaybeUninit, ppqinfos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQuery3_Impl::LookupQueue_v2(this, core::mem::transmute_copy(&queueguid), core::mem::transmute_copy(&servicetypeguid), core::mem::transmute_copy(&label), core::mem::transmute_copy(&createtime), core::mem::transmute_copy(&modifytime), core::mem::transmute_copy(&relservicetype), core::mem::transmute_copy(&rellabel), core::mem::transmute_copy(&relcreatetime), core::mem::transmute_copy(&relmodifytime)) { Ok(ok__) => { @@ -5094,10 +3903,7 @@ impl IMSMQQuery3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQuery3_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQuery3_Impl::Properties(this) { Ok(ok__) => { @@ -5107,7 +3913,7 @@ impl IMSMQQuery3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LookupQueue( + unsafe extern "system" fn LookupQueue( this: *mut core::ffi::c_void, queueguid: *const core::mem::MaybeUninit, servicetypeguid: *const core::mem::MaybeUninit, @@ -5121,10 +3927,7 @@ impl IMSMQQuery3_Vtbl { multicastaddress: *const core::mem::MaybeUninit, relmulticastaddress: *const core::mem::MaybeUninit, ppqinfos: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IMSMQQuery3_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQuery3_Impl::LookupQueue(this, core::mem::transmute_copy(&queueguid), core::mem::transmute_copy(&servicetypeguid), core::mem::transmute_copy(&label), core::mem::transmute_copy(&createtime), core::mem::transmute_copy(&modifytime), core::mem::transmute_copy(&relservicetype), core::mem::transmute_copy(&rellabel), core::mem::transmute_copy(&relcreatetime), core::mem::transmute_copy(&relmodifytime), core::mem::transmute_copy(&multicastaddress), core::mem::transmute_copy(&relmulticastaddress)) { Ok(ok__) => { @@ -5155,26 +3958,8 @@ pub trait IMSMQQuery4_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQuery4 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQuery4_Vtbl { - pub const fn new() -> IMSMQQuery4_Vtbl - where - Identity: IMSMQQuery4_Impl, - { - unsafe extern "system" fn LookupQueue_v2( - this: *mut core::ffi::c_void, - queueguid: *const core::mem::MaybeUninit, - servicetypeguid: *const core::mem::MaybeUninit, - label: *const core::mem::MaybeUninit, - createtime: *const core::mem::MaybeUninit, - modifytime: *const core::mem::MaybeUninit, - relservicetype: *const core::mem::MaybeUninit, - rellabel: *const core::mem::MaybeUninit, - relcreatetime: *const core::mem::MaybeUninit, - relmodifytime: *const core::mem::MaybeUninit, - ppqinfos: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IMSMQQuery4_Impl, - { + pub const fn new() -> IMSMQQuery4_Vtbl { + unsafe extern "system" fn LookupQueue_v2(this: *mut core::ffi::c_void, queueguid: *const core::mem::MaybeUninit, servicetypeguid: *const core::mem::MaybeUninit, label: *const core::mem::MaybeUninit, createtime: *const core::mem::MaybeUninit, modifytime: *const core::mem::MaybeUninit, relservicetype: *const core::mem::MaybeUninit, rellabel: *const core::mem::MaybeUninit, relcreatetime: *const core::mem::MaybeUninit, relmodifytime: *const core::mem::MaybeUninit, ppqinfos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQuery4_Impl::LookupQueue_v2(this, core::mem::transmute_copy(&queueguid), core::mem::transmute_copy(&servicetypeguid), core::mem::transmute_copy(&label), core::mem::transmute_copy(&createtime), core::mem::transmute_copy(&modifytime), core::mem::transmute_copy(&relservicetype), core::mem::transmute_copy(&rellabel), core::mem::transmute_copy(&relcreatetime), core::mem::transmute_copy(&relmodifytime)) { Ok(ok__) => { @@ -5184,10 +3969,7 @@ impl IMSMQQuery4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQuery4_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQuery4_Impl::Properties(this) { Ok(ok__) => { @@ -5197,7 +3979,7 @@ impl IMSMQQuery4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LookupQueue( + unsafe extern "system" fn LookupQueue( this: *mut core::ffi::c_void, queueguid: *const core::mem::MaybeUninit, servicetypeguid: *const core::mem::MaybeUninit, @@ -5211,10 +3993,7 @@ impl IMSMQQuery4_Vtbl { multicastaddress: *const core::mem::MaybeUninit, relmulticastaddress: *const core::mem::MaybeUninit, ppqinfos: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IMSMQQuery4_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQuery4_Impl::LookupQueue(this, core::mem::transmute_copy(&queueguid), core::mem::transmute_copy(&servicetypeguid), core::mem::transmute_copy(&label), core::mem::transmute_copy(&createtime), core::mem::transmute_copy(&modifytime), core::mem::transmute_copy(&relservicetype), core::mem::transmute_copy(&rellabel), core::mem::transmute_copy(&relcreatetime), core::mem::transmute_copy(&relmodifytime), core::mem::transmute_copy(&multicastaddress), core::mem::transmute_copy(&relmulticastaddress)) { Ok(ok__) => { @@ -5255,14 +4034,8 @@ pub trait IMSMQQueue_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueue {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueue_Vtbl { - pub const fn new() -> IMSMQQueue_Vtbl - where - Identity: IMSMQQueue_Impl, - { - unsafe extern "system" fn Access(this: *mut core::ffi::c_void, placcess: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + pub const fn new() -> IMSMQQueue_Vtbl { + unsafe extern "system" fn Access(this: *mut core::ffi::c_void, placcess: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue_Impl::Access(this) { Ok(ok__) => { @@ -5272,10 +4045,7 @@ impl IMSMQQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShareMode(this: *mut core::ffi::c_void, plsharemode: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn ShareMode(this: *mut core::ffi::c_void, plsharemode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue_Impl::ShareMode(this) { Ok(ok__) => { @@ -5285,10 +4055,7 @@ impl IMSMQQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueInfo(this: *mut core::ffi::c_void, ppqinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn QueueInfo(this: *mut core::ffi::c_void, ppqinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue_Impl::QueueInfo(this) { Ok(ok__) => { @@ -5298,10 +4065,7 @@ impl IMSMQQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, plhandle: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, plhandle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue_Impl::Handle(this) { Ok(ok__) => { @@ -5311,10 +4075,7 @@ impl IMSMQQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOpen(this: *mut core::ffi::c_void, pisopen: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn IsOpen(this: *mut core::ffi::c_void, pisopen: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue_Impl::IsOpen(this) { Ok(ok__) => { @@ -5324,17 +4085,11 @@ impl IMSMQQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue_Impl::Close(this).into() } - unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue_Impl::Receive(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5344,10 +4099,7 @@ impl IMSMQQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Peek(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn Peek(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue_Impl::Peek(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5357,24 +4109,15 @@ impl IMSMQQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableNotification(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void, cursor: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn EnableNotification(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void, cursor: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue_Impl::EnableNotification(this, windows_core::from_raw_borrowed(&event), core::mem::transmute_copy(&cursor), core::mem::transmute_copy(&receivetimeout)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue_Impl::Reset(this).into() } - unsafe extern "system" fn ReceiveCurrent(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn ReceiveCurrent(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue_Impl::ReceiveCurrent(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5384,10 +4127,7 @@ impl IMSMQQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekNext(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn PeekNext(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue_Impl::PeekNext(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5397,10 +4137,7 @@ impl IMSMQQueue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekCurrent(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue_Impl, - { + unsafe extern "system" fn PeekCurrent(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue_Impl::PeekCurrent(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5457,14 +4194,8 @@ pub trait IMSMQQueue2_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueue2 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueue2_Vtbl { - pub const fn new() -> IMSMQQueue2_Vtbl - where - Identity: IMSMQQueue2_Impl, - { - unsafe extern "system" fn Access(this: *mut core::ffi::c_void, placcess: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + pub const fn new() -> IMSMQQueue2_Vtbl { + unsafe extern "system" fn Access(this: *mut core::ffi::c_void, placcess: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::Access(this) { Ok(ok__) => { @@ -5474,10 +4205,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShareMode(this: *mut core::ffi::c_void, plsharemode: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn ShareMode(this: *mut core::ffi::c_void, plsharemode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::ShareMode(this) { Ok(ok__) => { @@ -5487,10 +4215,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueInfo(this: *mut core::ffi::c_void, ppqinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn QueueInfo(this: *mut core::ffi::c_void, ppqinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::QueueInfo(this) { Ok(ok__) => { @@ -5500,10 +4225,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, plhandle: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, plhandle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::Handle(this) { Ok(ok__) => { @@ -5513,10 +4235,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOpen(this: *mut core::ffi::c_void, pisopen: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn IsOpen(this: *mut core::ffi::c_void, pisopen: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::IsOpen(this) { Ok(ok__) => { @@ -5526,17 +4245,11 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue2_Impl::Close(this).into() } - unsafe extern "system" fn Receive_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn Receive_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::Receive_v1(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5546,10 +4259,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Peek_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn Peek_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::Peek_v1(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5559,24 +4269,15 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableNotification(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void, cursor: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn EnableNotification(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void, cursor: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue2_Impl::EnableNotification(this, windows_core::from_raw_borrowed(&event), core::mem::transmute_copy(&cursor), core::mem::transmute_copy(&receivetimeout)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue2_Impl::Reset(this).into() } - unsafe extern "system" fn ReceiveCurrent_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn ReceiveCurrent_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::ReceiveCurrent_v1(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5586,10 +4287,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekNext_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn PeekNext_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::PeekNext_v1(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5599,10 +4297,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekCurrent_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn PeekCurrent_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::PeekCurrent_v1(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5612,10 +4307,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::Receive(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -5625,10 +4317,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Peek(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn Peek(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::Peek(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -5638,10 +4327,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveCurrent(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn ReceiveCurrent(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::ReceiveCurrent(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -5651,10 +4337,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekNext(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn PeekNext(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::PeekNext(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -5664,10 +4347,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekCurrent(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn PeekCurrent(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::PeekCurrent(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -5677,10 +4357,7 @@ impl IMSMQQueue2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue2_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue2_Impl::Properties(this) { Ok(ok__) => { @@ -5756,14 +4433,8 @@ pub trait IMSMQQueue3_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueue3 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueue3_Vtbl { - pub const fn new() -> IMSMQQueue3_Vtbl - where - Identity: IMSMQQueue3_Impl, - { - unsafe extern "system" fn Access(this: *mut core::ffi::c_void, placcess: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + pub const fn new() -> IMSMQQueue3_Vtbl { + unsafe extern "system" fn Access(this: *mut core::ffi::c_void, placcess: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::Access(this) { Ok(ok__) => { @@ -5773,10 +4444,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShareMode(this: *mut core::ffi::c_void, plsharemode: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn ShareMode(this: *mut core::ffi::c_void, plsharemode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::ShareMode(this) { Ok(ok__) => { @@ -5786,10 +4454,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueInfo(this: *mut core::ffi::c_void, ppqinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn QueueInfo(this: *mut core::ffi::c_void, ppqinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::QueueInfo(this) { Ok(ok__) => { @@ -5799,10 +4464,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, plhandle: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, plhandle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::Handle(this) { Ok(ok__) => { @@ -5812,10 +4474,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOpen(this: *mut core::ffi::c_void, pisopen: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn IsOpen(this: *mut core::ffi::c_void, pisopen: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::IsOpen(this) { Ok(ok__) => { @@ -5825,17 +4484,11 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue3_Impl::Close(this).into() } - unsafe extern "system" fn Receive_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn Receive_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::Receive_v1(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5845,10 +4498,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Peek_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn Peek_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::Peek_v1(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5858,24 +4508,15 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableNotification(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void, cursor: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn EnableNotification(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void, cursor: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue3_Impl::EnableNotification(this, windows_core::from_raw_borrowed(&event), core::mem::transmute_copy(&cursor), core::mem::transmute_copy(&receivetimeout)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue3_Impl::Reset(this).into() } - unsafe extern "system" fn ReceiveCurrent_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn ReceiveCurrent_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::ReceiveCurrent_v1(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5885,10 +4526,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekNext_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn PeekNext_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::PeekNext_v1(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5898,10 +4536,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekCurrent_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn PeekCurrent_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::PeekCurrent_v1(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -5911,10 +4546,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::Receive(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -5924,10 +4556,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Peek(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn Peek(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::Peek(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -5937,10 +4566,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveCurrent(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn ReceiveCurrent(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::ReceiveCurrent(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -5950,10 +4576,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekNext(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn PeekNext(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::PeekNext(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -5963,10 +4586,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekCurrent(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn PeekCurrent(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::PeekCurrent(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -5976,10 +4596,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::Properties(this) { Ok(ok__) => { @@ -5989,10 +4606,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle2(this: *mut core::ffi::c_void, pvarhandle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn Handle2(this: *mut core::ffi::c_void, pvarhandle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::Handle2(this) { Ok(ok__) => { @@ -6002,10 +4616,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn ReceiveByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::ReceiveByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6015,10 +4626,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveNextByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn ReceiveNextByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::ReceiveNextByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6028,10 +4636,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceivePreviousByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn ReceivePreviousByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::ReceivePreviousByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6041,10 +4646,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveFirstByLookupId(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn ReceiveFirstByLookupId(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::ReceiveFirstByLookupId(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6054,10 +4656,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveLastByLookupId(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn ReceiveLastByLookupId(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::ReceiveLastByLookupId(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6067,10 +4666,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn PeekByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::PeekByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6080,10 +4676,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekNextByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn PeekNextByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::PeekNextByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6093,10 +4686,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekPreviousByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn PeekPreviousByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::PeekPreviousByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6106,10 +4696,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekFirstByLookupId(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn PeekFirstByLookupId(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::PeekFirstByLookupId(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6119,10 +4706,7 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekLastByLookupId(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn PeekLastByLookupId(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::PeekLastByLookupId(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6132,17 +4716,11 @@ impl IMSMQQueue3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Purge(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn Purge(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue3_Impl::Purge(this).into() } - unsafe extern "system" fn IsOpen2(this: *mut core::ffi::c_void, pisopen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQQueue3_Impl, - { + unsafe extern "system" fn IsOpen2(this: *mut core::ffi::c_void, pisopen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue3_Impl::IsOpen2(this) { Ok(ok__) => { @@ -6232,14 +4810,8 @@ pub trait IMSMQQueue4_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueue4 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueue4_Vtbl { - pub const fn new() -> IMSMQQueue4_Vtbl - where - Identity: IMSMQQueue4_Impl, - { - unsafe extern "system" fn Access(this: *mut core::ffi::c_void, placcess: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + pub const fn new() -> IMSMQQueue4_Vtbl { + unsafe extern "system" fn Access(this: *mut core::ffi::c_void, placcess: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::Access(this) { Ok(ok__) => { @@ -6249,10 +4821,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShareMode(this: *mut core::ffi::c_void, plsharemode: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn ShareMode(this: *mut core::ffi::c_void, plsharemode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::ShareMode(this) { Ok(ok__) => { @@ -6262,10 +4831,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueueInfo(this: *mut core::ffi::c_void, ppqinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn QueueInfo(this: *mut core::ffi::c_void, ppqinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::QueueInfo(this) { Ok(ok__) => { @@ -6275,10 +4841,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, plhandle: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, plhandle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::Handle(this) { Ok(ok__) => { @@ -6288,10 +4851,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOpen(this: *mut core::ffi::c_void, pisopen: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn IsOpen(this: *mut core::ffi::c_void, pisopen: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::IsOpen(this) { Ok(ok__) => { @@ -6301,17 +4861,11 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue4_Impl::Close(this).into() } - unsafe extern "system" fn Receive_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn Receive_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::Receive_v1(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -6321,10 +4875,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Peek_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn Peek_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::Peek_v1(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -6334,24 +4885,15 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableNotification(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void, cursor: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn EnableNotification(this: *mut core::ffi::c_void, event: *mut core::ffi::c_void, cursor: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue4_Impl::EnableNotification(this, windows_core::from_raw_borrowed(&event), core::mem::transmute_copy(&cursor), core::mem::transmute_copy(&receivetimeout)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue4_Impl::Reset(this).into() } - unsafe extern "system" fn ReceiveCurrent_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn ReceiveCurrent_v1(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::ReceiveCurrent_v1(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -6361,10 +4903,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekNext_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn PeekNext_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::PeekNext_v1(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -6374,10 +4913,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekCurrent_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn PeekCurrent_v1(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::PeekCurrent_v1(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout)) { Ok(ok__) => { @@ -6387,10 +4923,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn Receive(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::Receive(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6400,10 +4933,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Peek(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn Peek(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::Peek(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6413,10 +4943,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveCurrent(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn ReceiveCurrent(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::ReceiveCurrent(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6426,10 +4953,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekNext(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn PeekNext(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::PeekNext(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6439,10 +4963,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekCurrent(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn PeekCurrent(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, receivetimeout: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::PeekCurrent(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&receivetimeout), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6452,10 +4973,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::Properties(this) { Ok(ok__) => { @@ -6465,10 +4983,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Handle2(this: *mut core::ffi::c_void, pvarhandle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn Handle2(this: *mut core::ffi::c_void, pvarhandle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::Handle2(this) { Ok(ok__) => { @@ -6478,10 +4993,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn ReceiveByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::ReceiveByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6491,10 +5003,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveNextByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn ReceiveNextByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::ReceiveNextByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6504,10 +5013,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceivePreviousByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn ReceivePreviousByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::ReceivePreviousByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6517,10 +5023,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveFirstByLookupId(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn ReceiveFirstByLookupId(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::ReceiveFirstByLookupId(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6530,10 +5033,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveLastByLookupId(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn ReceiveLastByLookupId(this: *mut core::ffi::c_void, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::ReceiveLastByLookupId(this, core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6543,10 +5043,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn PeekByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::PeekByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6556,10 +5053,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekNextByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn PeekNextByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::PeekNextByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6569,10 +5063,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekPreviousByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn PeekPreviousByLookupId(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::PeekPreviousByLookupId(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6582,10 +5073,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekFirstByLookupId(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn PeekFirstByLookupId(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::PeekFirstByLookupId(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6595,10 +5083,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PeekLastByLookupId(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn PeekLastByLookupId(this: *mut core::ffi::c_void, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::PeekLastByLookupId(this, core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6608,17 +5093,11 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Purge(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn Purge(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueue4_Impl::Purge(this).into() } - unsafe extern "system" fn IsOpen2(this: *mut core::ffi::c_void, pisopen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn IsOpen2(this: *mut core::ffi::c_void, pisopen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::IsOpen2(this) { Ok(ok__) => { @@ -6628,10 +5107,7 @@ impl IMSMQQueue4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReceiveByLookupIdAllowPeek(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueue4_Impl, - { + unsafe extern "system" fn ReceiveByLookupIdAllowPeek(this: *mut core::ffi::c_void, lookupid: core::mem::MaybeUninit, transaction: *const core::mem::MaybeUninit, wantdestinationqueue: *const core::mem::MaybeUninit, wantbody: *const core::mem::MaybeUninit, wantconnectortype: *const core::mem::MaybeUninit, ppmsg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueue4_Impl::ReceiveByLookupIdAllowPeek(this, core::mem::transmute(&lookupid), core::mem::transmute_copy(&transaction), core::mem::transmute_copy(&wantdestinationqueue), core::mem::transmute_copy(&wantbody), core::mem::transmute_copy(&wantconnectortype)) { Ok(ok__) => { @@ -6719,14 +5195,8 @@ pub trait IMSMQQueueInfo_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueueInfo {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo_Vtbl { - pub const fn new() -> IMSMQQueueInfo_Vtbl - where - Identity: IMSMQQueueInfo_Impl, - { - unsafe extern "system" fn QueueGuid(this: *mut core::ffi::c_void, pbstrguidqueue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + pub const fn new() -> IMSMQQueueInfo_Vtbl { + unsafe extern "system" fn QueueGuid(this: *mut core::ffi::c_void, pbstrguidqueue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::QueueGuid(this) { Ok(ok__) => { @@ -6736,10 +5206,7 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceTypeGuid(this: *mut core::ffi::c_void, pbstrguidservicetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn ServiceTypeGuid(this: *mut core::ffi::c_void, pbstrguidservicetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::ServiceTypeGuid(this) { Ok(ok__) => { @@ -6749,17 +5216,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceTypeGuid(this: *mut core::ffi::c_void, bstrguidservicetype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn SetServiceTypeGuid(this: *mut core::ffi::c_void, bstrguidservicetype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::SetServiceTypeGuid(this, core::mem::transmute(&bstrguidservicetype)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::Label(this) { Ok(ok__) => { @@ -6769,17 +5230,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::SetLabel(this, core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn PathName(this: *mut core::ffi::c_void, pbstrpathname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn PathName(this: *mut core::ffi::c_void, pbstrpathname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::PathName(this) { Ok(ok__) => { @@ -6789,17 +5244,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPathName(this: *mut core::ffi::c_void, bstrpathname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn SetPathName(this: *mut core::ffi::c_void, bstrpathname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::SetPathName(this, core::mem::transmute(&bstrpathname)).into() } - unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::FormatName(this) { Ok(ok__) => { @@ -6809,17 +5258,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatName(this: *mut core::ffi::c_void, bstrformatname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn SetFormatName(this: *mut core::ffi::c_void, bstrformatname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::SetFormatName(this, core::mem::transmute(&bstrformatname)).into() } - unsafe extern "system" fn IsTransactional(this: *mut core::ffi::c_void, pistransactional: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn IsTransactional(this: *mut core::ffi::c_void, pistransactional: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::IsTransactional(this) { Ok(ok__) => { @@ -6829,10 +5272,7 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::PrivLevel(this) { Ok(ok__) => { @@ -6842,17 +5282,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::SetPrivLevel(this, core::mem::transmute_copy(&lprivlevel)).into() } - unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::Journal(this) { Ok(ok__) => { @@ -6862,17 +5296,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::SetJournal(this, core::mem::transmute_copy(&ljournal)).into() } - unsafe extern "system" fn Quota(this: *mut core::ffi::c_void, plquota: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn Quota(this: *mut core::ffi::c_void, plquota: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::Quota(this) { Ok(ok__) => { @@ -6882,17 +5310,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuota(this: *mut core::ffi::c_void, lquota: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn SetQuota(this: *mut core::ffi::c_void, lquota: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::SetQuota(this, core::mem::transmute_copy(&lquota)).into() } - unsafe extern "system" fn BasePriority(this: *mut core::ffi::c_void, plbasepriority: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn BasePriority(this: *mut core::ffi::c_void, plbasepriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::BasePriority(this) { Ok(ok__) => { @@ -6902,17 +5324,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBasePriority(this: *mut core::ffi::c_void, lbasepriority: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn SetBasePriority(this: *mut core::ffi::c_void, lbasepriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::SetBasePriority(this, core::mem::transmute_copy(&lbasepriority)).into() } - unsafe extern "system" fn CreateTime(this: *mut core::ffi::c_void, pvarcreatetime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn CreateTime(this: *mut core::ffi::c_void, pvarcreatetime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::CreateTime(this) { Ok(ok__) => { @@ -6922,10 +5338,7 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifyTime(this: *mut core::ffi::c_void, pvarmodifytime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn ModifyTime(this: *mut core::ffi::c_void, pvarmodifytime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::ModifyTime(this) { Ok(ok__) => { @@ -6935,10 +5348,7 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, plauthenticate: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, plauthenticate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::Authenticate(this) { Ok(ok__) => { @@ -6948,17 +5358,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticate(this: *mut core::ffi::c_void, lauthenticate: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn SetAuthenticate(this: *mut core::ffi::c_void, lauthenticate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::SetAuthenticate(this, core::mem::transmute_copy(&lauthenticate)).into() } - unsafe extern "system" fn JournalQuota(this: *mut core::ffi::c_void, pljournalquota: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn JournalQuota(this: *mut core::ffi::c_void, pljournalquota: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::JournalQuota(this) { Ok(ok__) => { @@ -6968,17 +5372,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournalQuota(this: *mut core::ffi::c_void, ljournalquota: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn SetJournalQuota(this: *mut core::ffi::c_void, ljournalquota: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::SetJournalQuota(this, core::mem::transmute_copy(&ljournalquota)).into() } - unsafe extern "system" fn IsWorldReadable(this: *mut core::ffi::c_void, pisworldreadable: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn IsWorldReadable(this: *mut core::ffi::c_void, pisworldreadable: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::IsWorldReadable(this) { Ok(ok__) => { @@ -6988,24 +5386,15 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, istransactional: *const core::mem::MaybeUninit, isworldreadable: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, istransactional: *const core::mem::MaybeUninit, isworldreadable: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::Create(this, core::mem::transmute_copy(&istransactional), core::mem::transmute_copy(&isworldreadable)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::Delete(this).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, access: i32, sharemode: i32, ppq: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, access: i32, sharemode: i32, ppq: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo_Impl::Open(this, core::mem::transmute_copy(&access), core::mem::transmute_copy(&sharemode)) { Ok(ok__) => { @@ -7015,17 +5404,11 @@ impl IMSMQQueueInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::Refresh(this).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo_Impl::Update(this).into() } @@ -7108,14 +5491,8 @@ pub trait IMSMQQueueInfo2_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueueInfo2 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo2_Vtbl { - pub const fn new() -> IMSMQQueueInfo2_Vtbl - where - Identity: IMSMQQueueInfo2_Impl, - { - unsafe extern "system" fn QueueGuid(this: *mut core::ffi::c_void, pbstrguidqueue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + pub const fn new() -> IMSMQQueueInfo2_Vtbl { + unsafe extern "system" fn QueueGuid(this: *mut core::ffi::c_void, pbstrguidqueue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::QueueGuid(this) { Ok(ok__) => { @@ -7125,10 +5502,7 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceTypeGuid(this: *mut core::ffi::c_void, pbstrguidservicetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn ServiceTypeGuid(this: *mut core::ffi::c_void, pbstrguidservicetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::ServiceTypeGuid(this) { Ok(ok__) => { @@ -7138,17 +5512,11 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceTypeGuid(this: *mut core::ffi::c_void, bstrguidservicetype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetServiceTypeGuid(this: *mut core::ffi::c_void, bstrguidservicetype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetServiceTypeGuid(this, core::mem::transmute(&bstrguidservicetype)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::Label(this) { Ok(ok__) => { @@ -7158,17 +5526,11 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetLabel(this, core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn PathName(this: *mut core::ffi::c_void, pbstrpathname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn PathName(this: *mut core::ffi::c_void, pbstrpathname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::PathName(this) { Ok(ok__) => { @@ -7178,17 +5540,11 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPathName(this: *mut core::ffi::c_void, bstrpathname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetPathName(this: *mut core::ffi::c_void, bstrpathname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetPathName(this, core::mem::transmute(&bstrpathname)).into() } - unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::FormatName(this) { Ok(ok__) => { @@ -7198,17 +5554,11 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatName(this: *mut core::ffi::c_void, bstrformatname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetFormatName(this: *mut core::ffi::c_void, bstrformatname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetFormatName(this, core::mem::transmute(&bstrformatname)).into() } - unsafe extern "system" fn IsTransactional(this: *mut core::ffi::c_void, pistransactional: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn IsTransactional(this: *mut core::ffi::c_void, pistransactional: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::IsTransactional(this) { Ok(ok__) => { @@ -7218,10 +5568,7 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::PrivLevel(this) { Ok(ok__) => { @@ -7231,17 +5578,11 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetPrivLevel(this, core::mem::transmute_copy(&lprivlevel)).into() } - unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::Journal(this) { Ok(ok__) => { @@ -7251,17 +5592,11 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetJournal(this, core::mem::transmute_copy(&ljournal)).into() } - unsafe extern "system" fn Quota(this: *mut core::ffi::c_void, plquota: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Quota(this: *mut core::ffi::c_void, plquota: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::Quota(this) { Ok(ok__) => { @@ -7271,17 +5606,11 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuota(this: *mut core::ffi::c_void, lquota: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetQuota(this: *mut core::ffi::c_void, lquota: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetQuota(this, core::mem::transmute_copy(&lquota)).into() } - unsafe extern "system" fn BasePriority(this: *mut core::ffi::c_void, plbasepriority: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn BasePriority(this: *mut core::ffi::c_void, plbasepriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::BasePriority(this) { Ok(ok__) => { @@ -7291,17 +5620,11 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBasePriority(this: *mut core::ffi::c_void, lbasepriority: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetBasePriority(this: *mut core::ffi::c_void, lbasepriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetBasePriority(this, core::mem::transmute_copy(&lbasepriority)).into() } - unsafe extern "system" fn CreateTime(this: *mut core::ffi::c_void, pvarcreatetime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn CreateTime(this: *mut core::ffi::c_void, pvarcreatetime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::CreateTime(this) { Ok(ok__) => { @@ -7311,10 +5634,7 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifyTime(this: *mut core::ffi::c_void, pvarmodifytime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn ModifyTime(this: *mut core::ffi::c_void, pvarmodifytime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::ModifyTime(this) { Ok(ok__) => { @@ -7324,10 +5644,7 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, plauthenticate: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, plauthenticate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::Authenticate(this) { Ok(ok__) => { @@ -7337,17 +5654,11 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticate(this: *mut core::ffi::c_void, lauthenticate: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetAuthenticate(this: *mut core::ffi::c_void, lauthenticate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetAuthenticate(this, core::mem::transmute_copy(&lauthenticate)).into() } - unsafe extern "system" fn JournalQuota(this: *mut core::ffi::c_void, pljournalquota: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn JournalQuota(this: *mut core::ffi::c_void, pljournalquota: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::JournalQuota(this) { Ok(ok__) => { @@ -7357,17 +5668,11 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournalQuota(this: *mut core::ffi::c_void, ljournalquota: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetJournalQuota(this: *mut core::ffi::c_void, ljournalquota: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetJournalQuota(this, core::mem::transmute_copy(&ljournalquota)).into() } - unsafe extern "system" fn IsWorldReadable(this: *mut core::ffi::c_void, pisworldreadable: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn IsWorldReadable(this: *mut core::ffi::c_void, pisworldreadable: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::IsWorldReadable(this) { Ok(ok__) => { @@ -7377,24 +5682,15 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, istransactional: *const core::mem::MaybeUninit, isworldreadable: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, istransactional: *const core::mem::MaybeUninit, isworldreadable: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::Create(this, core::mem::transmute_copy(&istransactional), core::mem::transmute_copy(&isworldreadable)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::Delete(this).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, access: i32, sharemode: i32, ppq: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, access: i32, sharemode: i32, ppq: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::Open(this, core::mem::transmute_copy(&access), core::mem::transmute_copy(&sharemode)) { Ok(ok__) => { @@ -7404,24 +5700,15 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::Refresh(this).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::Update(this).into() } - unsafe extern "system" fn PathNameDNS(this: *mut core::ffi::c_void, pbstrpathnamedns: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn PathNameDNS(this: *mut core::ffi::c_void, pbstrpathnamedns: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::PathNameDNS(this) { Ok(ok__) => { @@ -7431,10 +5718,7 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::Properties(this) { Ok(ok__) => { @@ -7444,10 +5728,7 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security(this: *mut core::ffi::c_void, pvarsecurity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn Security(this: *mut core::ffi::c_void, pvarsecurity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo2_Impl::Security(this) { Ok(ok__) => { @@ -7457,10 +5738,7 @@ impl IMSMQQueueInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, varsecurity: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo2_Impl, - { + unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, varsecurity: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo2_Impl::SetSecurity(this, core::mem::transmute(&varsecurity)).into() } @@ -7552,14 +5830,8 @@ pub trait IMSMQQueueInfo3_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueueInfo3 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo3_Vtbl { - pub const fn new() -> IMSMQQueueInfo3_Vtbl - where - Identity: IMSMQQueueInfo3_Impl, - { - unsafe extern "system" fn QueueGuid(this: *mut core::ffi::c_void, pbstrguidqueue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + pub const fn new() -> IMSMQQueueInfo3_Vtbl { + unsafe extern "system" fn QueueGuid(this: *mut core::ffi::c_void, pbstrguidqueue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::QueueGuid(this) { Ok(ok__) => { @@ -7569,10 +5841,7 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceTypeGuid(this: *mut core::ffi::c_void, pbstrguidservicetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn ServiceTypeGuid(this: *mut core::ffi::c_void, pbstrguidservicetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::ServiceTypeGuid(this) { Ok(ok__) => { @@ -7582,17 +5851,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceTypeGuid(this: *mut core::ffi::c_void, bstrguidservicetype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetServiceTypeGuid(this: *mut core::ffi::c_void, bstrguidservicetype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetServiceTypeGuid(this, core::mem::transmute(&bstrguidservicetype)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::Label(this) { Ok(ok__) => { @@ -7602,17 +5865,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetLabel(this, core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn PathName(this: *mut core::ffi::c_void, pbstrpathname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn PathName(this: *mut core::ffi::c_void, pbstrpathname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::PathName(this) { Ok(ok__) => { @@ -7622,17 +5879,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPathName(this: *mut core::ffi::c_void, bstrpathname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetPathName(this: *mut core::ffi::c_void, bstrpathname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetPathName(this, core::mem::transmute(&bstrpathname)).into() } - unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::FormatName(this) { Ok(ok__) => { @@ -7642,17 +5893,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatName(this: *mut core::ffi::c_void, bstrformatname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetFormatName(this: *mut core::ffi::c_void, bstrformatname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetFormatName(this, core::mem::transmute(&bstrformatname)).into() } - unsafe extern "system" fn IsTransactional(this: *mut core::ffi::c_void, pistransactional: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn IsTransactional(this: *mut core::ffi::c_void, pistransactional: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::IsTransactional(this) { Ok(ok__) => { @@ -7662,10 +5907,7 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::PrivLevel(this) { Ok(ok__) => { @@ -7675,17 +5917,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetPrivLevel(this, core::mem::transmute_copy(&lprivlevel)).into() } - unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::Journal(this) { Ok(ok__) => { @@ -7695,17 +5931,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetJournal(this, core::mem::transmute_copy(&ljournal)).into() } - unsafe extern "system" fn Quota(this: *mut core::ffi::c_void, plquota: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Quota(this: *mut core::ffi::c_void, plquota: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::Quota(this) { Ok(ok__) => { @@ -7715,17 +5945,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuota(this: *mut core::ffi::c_void, lquota: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetQuota(this: *mut core::ffi::c_void, lquota: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetQuota(this, core::mem::transmute_copy(&lquota)).into() } - unsafe extern "system" fn BasePriority(this: *mut core::ffi::c_void, plbasepriority: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn BasePriority(this: *mut core::ffi::c_void, plbasepriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::BasePriority(this) { Ok(ok__) => { @@ -7735,17 +5959,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBasePriority(this: *mut core::ffi::c_void, lbasepriority: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetBasePriority(this: *mut core::ffi::c_void, lbasepriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetBasePriority(this, core::mem::transmute_copy(&lbasepriority)).into() } - unsafe extern "system" fn CreateTime(this: *mut core::ffi::c_void, pvarcreatetime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn CreateTime(this: *mut core::ffi::c_void, pvarcreatetime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::CreateTime(this) { Ok(ok__) => { @@ -7755,10 +5973,7 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifyTime(this: *mut core::ffi::c_void, pvarmodifytime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn ModifyTime(this: *mut core::ffi::c_void, pvarmodifytime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::ModifyTime(this) { Ok(ok__) => { @@ -7768,10 +5983,7 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, plauthenticate: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, plauthenticate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::Authenticate(this) { Ok(ok__) => { @@ -7781,17 +5993,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticate(this: *mut core::ffi::c_void, lauthenticate: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetAuthenticate(this: *mut core::ffi::c_void, lauthenticate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetAuthenticate(this, core::mem::transmute_copy(&lauthenticate)).into() } - unsafe extern "system" fn JournalQuota(this: *mut core::ffi::c_void, pljournalquota: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn JournalQuota(this: *mut core::ffi::c_void, pljournalquota: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::JournalQuota(this) { Ok(ok__) => { @@ -7801,17 +6007,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournalQuota(this: *mut core::ffi::c_void, ljournalquota: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetJournalQuota(this: *mut core::ffi::c_void, ljournalquota: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetJournalQuota(this, core::mem::transmute_copy(&ljournalquota)).into() } - unsafe extern "system" fn IsWorldReadable(this: *mut core::ffi::c_void, pisworldreadable: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn IsWorldReadable(this: *mut core::ffi::c_void, pisworldreadable: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::IsWorldReadable(this) { Ok(ok__) => { @@ -7821,24 +6021,15 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, istransactional: *const core::mem::MaybeUninit, isworldreadable: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, istransactional: *const core::mem::MaybeUninit, isworldreadable: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::Create(this, core::mem::transmute_copy(&istransactional), core::mem::transmute_copy(&isworldreadable)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::Delete(this).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, access: i32, sharemode: i32, ppq: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, access: i32, sharemode: i32, ppq: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::Open(this, core::mem::transmute_copy(&access), core::mem::transmute_copy(&sharemode)) { Ok(ok__) => { @@ -7848,24 +6039,15 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::Refresh(this).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::Update(this).into() } - unsafe extern "system" fn PathNameDNS(this: *mut core::ffi::c_void, pbstrpathnamedns: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn PathNameDNS(this: *mut core::ffi::c_void, pbstrpathnamedns: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::PathNameDNS(this) { Ok(ok__) => { @@ -7875,10 +6057,7 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::Properties(this) { Ok(ok__) => { @@ -7888,10 +6067,7 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security(this: *mut core::ffi::c_void, pvarsecurity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn Security(this: *mut core::ffi::c_void, pvarsecurity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::Security(this) { Ok(ok__) => { @@ -7901,17 +6077,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, varsecurity: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, varsecurity: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetSecurity(this, core::mem::transmute(&varsecurity)).into() } - unsafe extern "system" fn IsTransactional2(this: *mut core::ffi::c_void, pistransactional: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn IsTransactional2(this: *mut core::ffi::c_void, pistransactional: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::IsTransactional2(this) { Ok(ok__) => { @@ -7921,10 +6091,7 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsWorldReadable2(this: *mut core::ffi::c_void, pisworldreadable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn IsWorldReadable2(this: *mut core::ffi::c_void, pisworldreadable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::IsWorldReadable2(this) { Ok(ok__) => { @@ -7934,10 +6101,7 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MulticastAddress(this: *mut core::ffi::c_void, pbstrmulticastaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn MulticastAddress(this: *mut core::ffi::c_void, pbstrmulticastaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::MulticastAddress(this) { Ok(ok__) => { @@ -7947,17 +6111,11 @@ impl IMSMQQueueInfo3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMulticastAddress(this: *mut core::ffi::c_void, bstrmulticastaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn SetMulticastAddress(this: *mut core::ffi::c_void, bstrmulticastaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo3_Impl::SetMulticastAddress(this, core::mem::transmute(&bstrmulticastaddress)).into() } - unsafe extern "system" fn ADsPath(this: *mut core::ffi::c_void, pbstradspath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo3_Impl, - { + unsafe extern "system" fn ADsPath(this: *mut core::ffi::c_void, pbstradspath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo3_Impl::ADsPath(this) { Ok(ok__) => { @@ -8060,14 +6218,8 @@ pub trait IMSMQQueueInfo4_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueueInfo4 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo4_Vtbl { - pub const fn new() -> IMSMQQueueInfo4_Vtbl - where - Identity: IMSMQQueueInfo4_Impl, - { - unsafe extern "system" fn QueueGuid(this: *mut core::ffi::c_void, pbstrguidqueue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + pub const fn new() -> IMSMQQueueInfo4_Vtbl { + unsafe extern "system" fn QueueGuid(this: *mut core::ffi::c_void, pbstrguidqueue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::QueueGuid(this) { Ok(ok__) => { @@ -8077,10 +6229,7 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceTypeGuid(this: *mut core::ffi::c_void, pbstrguidservicetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn ServiceTypeGuid(this: *mut core::ffi::c_void, pbstrguidservicetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::ServiceTypeGuid(this) { Ok(ok__) => { @@ -8090,17 +6239,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceTypeGuid(this: *mut core::ffi::c_void, bstrguidservicetype: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetServiceTypeGuid(this: *mut core::ffi::c_void, bstrguidservicetype: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetServiceTypeGuid(this, core::mem::transmute(&bstrguidservicetype)).into() } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, pbstrlabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::Label(this) { Ok(ok__) => { @@ -8110,17 +6253,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetLabel(this: *mut core::ffi::c_void, bstrlabel: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetLabel(this, core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn PathName(this: *mut core::ffi::c_void, pbstrpathname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn PathName(this: *mut core::ffi::c_void, pbstrpathname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::PathName(this) { Ok(ok__) => { @@ -8130,17 +6267,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPathName(this: *mut core::ffi::c_void, bstrpathname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetPathName(this: *mut core::ffi::c_void, bstrpathname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetPathName(this, core::mem::transmute(&bstrpathname)).into() } - unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn FormatName(this: *mut core::ffi::c_void, pbstrformatname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::FormatName(this) { Ok(ok__) => { @@ -8150,17 +6281,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatName(this: *mut core::ffi::c_void, bstrformatname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetFormatName(this: *mut core::ffi::c_void, bstrformatname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetFormatName(this, core::mem::transmute(&bstrformatname)).into() } - unsafe extern "system" fn IsTransactional(this: *mut core::ffi::c_void, pistransactional: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn IsTransactional(this: *mut core::ffi::c_void, pistransactional: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::IsTransactional(this) { Ok(ok__) => { @@ -8170,10 +6295,7 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn PrivLevel(this: *mut core::ffi::c_void, plprivlevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::PrivLevel(this) { Ok(ok__) => { @@ -8183,17 +6305,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetPrivLevel(this: *mut core::ffi::c_void, lprivlevel: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetPrivLevel(this, core::mem::transmute_copy(&lprivlevel)).into() } - unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Journal(this: *mut core::ffi::c_void, pljournal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::Journal(this) { Ok(ok__) => { @@ -8203,17 +6319,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetJournal(this: *mut core::ffi::c_void, ljournal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetJournal(this, core::mem::transmute_copy(&ljournal)).into() } - unsafe extern "system" fn Quota(this: *mut core::ffi::c_void, plquota: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Quota(this: *mut core::ffi::c_void, plquota: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::Quota(this) { Ok(ok__) => { @@ -8223,17 +6333,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuota(this: *mut core::ffi::c_void, lquota: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetQuota(this: *mut core::ffi::c_void, lquota: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetQuota(this, core::mem::transmute_copy(&lquota)).into() } - unsafe extern "system" fn BasePriority(this: *mut core::ffi::c_void, plbasepriority: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn BasePriority(this: *mut core::ffi::c_void, plbasepriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::BasePriority(this) { Ok(ok__) => { @@ -8243,17 +6347,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBasePriority(this: *mut core::ffi::c_void, lbasepriority: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetBasePriority(this: *mut core::ffi::c_void, lbasepriority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetBasePriority(this, core::mem::transmute_copy(&lbasepriority)).into() } - unsafe extern "system" fn CreateTime(this: *mut core::ffi::c_void, pvarcreatetime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn CreateTime(this: *mut core::ffi::c_void, pvarcreatetime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::CreateTime(this) { Ok(ok__) => { @@ -8263,10 +6361,7 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifyTime(this: *mut core::ffi::c_void, pvarmodifytime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn ModifyTime(this: *mut core::ffi::c_void, pvarmodifytime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::ModifyTime(this) { Ok(ok__) => { @@ -8276,10 +6371,7 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, plauthenticate: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Authenticate(this: *mut core::ffi::c_void, plauthenticate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::Authenticate(this) { Ok(ok__) => { @@ -8289,17 +6381,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticate(this: *mut core::ffi::c_void, lauthenticate: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetAuthenticate(this: *mut core::ffi::c_void, lauthenticate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetAuthenticate(this, core::mem::transmute_copy(&lauthenticate)).into() } - unsafe extern "system" fn JournalQuota(this: *mut core::ffi::c_void, pljournalquota: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn JournalQuota(this: *mut core::ffi::c_void, pljournalquota: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::JournalQuota(this) { Ok(ok__) => { @@ -8309,17 +6395,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJournalQuota(this: *mut core::ffi::c_void, ljournalquota: i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetJournalQuota(this: *mut core::ffi::c_void, ljournalquota: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetJournalQuota(this, core::mem::transmute_copy(&ljournalquota)).into() } - unsafe extern "system" fn IsWorldReadable(this: *mut core::ffi::c_void, pisworldreadable: *mut i16) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn IsWorldReadable(this: *mut core::ffi::c_void, pisworldreadable: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::IsWorldReadable(this) { Ok(ok__) => { @@ -8329,24 +6409,15 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, istransactional: *const core::mem::MaybeUninit, isworldreadable: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, istransactional: *const core::mem::MaybeUninit, isworldreadable: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::Create(this, core::mem::transmute_copy(&istransactional), core::mem::transmute_copy(&isworldreadable)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::Delete(this).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, access: i32, sharemode: i32, ppq: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, access: i32, sharemode: i32, ppq: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::Open(this, core::mem::transmute_copy(&access), core::mem::transmute_copy(&sharemode)) { Ok(ok__) => { @@ -8356,24 +6427,15 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::Refresh(this).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::Update(this).into() } - unsafe extern "system" fn PathNameDNS(this: *mut core::ffi::c_void, pbstrpathnamedns: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn PathNameDNS(this: *mut core::ffi::c_void, pbstrpathnamedns: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::PathNameDNS(this) { Ok(ok__) => { @@ -8383,10 +6445,7 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::Properties(this) { Ok(ok__) => { @@ -8396,10 +6455,7 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security(this: *mut core::ffi::c_void, pvarsecurity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn Security(this: *mut core::ffi::c_void, pvarsecurity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::Security(this) { Ok(ok__) => { @@ -8409,17 +6465,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, varsecurity: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, varsecurity: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetSecurity(this, core::mem::transmute(&varsecurity)).into() } - unsafe extern "system" fn IsTransactional2(this: *mut core::ffi::c_void, pistransactional: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn IsTransactional2(this: *mut core::ffi::c_void, pistransactional: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::IsTransactional2(this) { Ok(ok__) => { @@ -8429,10 +6479,7 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsWorldReadable2(this: *mut core::ffi::c_void, pisworldreadable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn IsWorldReadable2(this: *mut core::ffi::c_void, pisworldreadable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::IsWorldReadable2(this) { Ok(ok__) => { @@ -8442,10 +6489,7 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MulticastAddress(this: *mut core::ffi::c_void, pbstrmulticastaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn MulticastAddress(this: *mut core::ffi::c_void, pbstrmulticastaddress: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::MulticastAddress(this) { Ok(ok__) => { @@ -8455,17 +6499,11 @@ impl IMSMQQueueInfo4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMulticastAddress(this: *mut core::ffi::c_void, bstrmulticastaddress: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn SetMulticastAddress(this: *mut core::ffi::c_void, bstrmulticastaddress: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfo4_Impl::SetMulticastAddress(this, core::mem::transmute(&bstrmulticastaddress)).into() } - unsafe extern "system" fn ADsPath(this: *mut core::ffi::c_void, pbstradspath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfo4_Impl, - { + unsafe extern "system" fn ADsPath(this: *mut core::ffi::c_void, pbstradspath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfo4_Impl::ADsPath(this) { Ok(ok__) => { @@ -8531,21 +6569,12 @@ pub trait IMSMQQueueInfos_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueueInfos {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfos_Vtbl { - pub const fn new() -> IMSMQQueueInfos_Vtbl - where - Identity: IMSMQQueueInfos_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos_Impl, - { + pub const fn new() -> IMSMQQueueInfos_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfos_Impl::Reset(this).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppqinfonext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppqinfonext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfos_Impl::Next(this) { Ok(ok__) => { @@ -8571,21 +6600,12 @@ pub trait IMSMQQueueInfos2_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueueInfos2 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfos2_Vtbl { - pub const fn new() -> IMSMQQueueInfos2_Vtbl - where - Identity: IMSMQQueueInfos2_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos2_Impl, - { + pub const fn new() -> IMSMQQueueInfos2_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfos2_Impl::Reset(this).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppqinfonext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos2_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppqinfonext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfos2_Impl::Next(this) { Ok(ok__) => { @@ -8595,10 +6615,7 @@ impl IMSMQQueueInfos2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos2_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfos2_Impl::Properties(this) { Ok(ok__) => { @@ -8629,21 +6646,12 @@ pub trait IMSMQQueueInfos3_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueueInfos3 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfos3_Vtbl { - pub const fn new() -> IMSMQQueueInfos3_Vtbl - where - Identity: IMSMQQueueInfos3_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos3_Impl, - { + pub const fn new() -> IMSMQQueueInfos3_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfos3_Impl::Reset(this).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppqinfonext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos3_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppqinfonext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfos3_Impl::Next(this) { Ok(ok__) => { @@ -8653,10 +6661,7 @@ impl IMSMQQueueInfos3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos3_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfos3_Impl::Properties(this) { Ok(ok__) => { @@ -8687,21 +6692,12 @@ pub trait IMSMQQueueInfos4_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQQueueInfos4 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfos4_Vtbl { - pub const fn new() -> IMSMQQueueInfos4_Vtbl - where - Identity: IMSMQQueueInfos4_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos4_Impl, - { + pub const fn new() -> IMSMQQueueInfos4_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQQueueInfos4_Impl::Reset(this).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppqinfonext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos4_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ppqinfonext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfos4_Impl::Next(this) { Ok(ok__) => { @@ -8711,10 +6707,7 @@ impl IMSMQQueueInfos4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQQueueInfos4_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueInfos4_Impl::Properties(this) { Ok(ok__) => { @@ -8745,14 +6738,8 @@ pub trait IMSMQQueueManagement_Impl: Sized + IMSMQManagement_Impl { impl windows_core::RuntimeName for IMSMQQueueManagement {} #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueManagement_Vtbl { - pub const fn new() -> IMSMQQueueManagement_Vtbl - where - Identity: IMSMQQueueManagement_Impl, - { - unsafe extern "system" fn JournalMessageCount(this: *mut core::ffi::c_void, pljournalmessagecount: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQQueueManagement_Impl, - { + pub const fn new() -> IMSMQQueueManagement_Vtbl { + unsafe extern "system" fn JournalMessageCount(this: *mut core::ffi::c_void, pljournalmessagecount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueManagement_Impl::JournalMessageCount(this) { Ok(ok__) => { @@ -8762,10 +6749,7 @@ impl IMSMQQueueManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BytesInJournal(this: *mut core::ffi::c_void, pvbytesinjournal: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueManagement_Impl, - { + unsafe extern "system" fn BytesInJournal(this: *mut core::ffi::c_void, pvbytesinjournal: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueManagement_Impl::BytesInJournal(this) { Ok(ok__) => { @@ -8775,10 +6759,7 @@ impl IMSMQQueueManagement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EodGetReceiveInfo(this: *mut core::ffi::c_void, pvcollection: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQQueueManagement_Impl, - { + unsafe extern "system" fn EodGetReceiveInfo(this: *mut core::ffi::c_void, pvcollection: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQQueueManagement_Impl::EodGetReceiveInfo(this) { Ok(ok__) => { @@ -8809,14 +6790,8 @@ pub trait IMSMQTransaction_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQTransaction {} #[cfg(feature = "Win32_System_Com")] impl IMSMQTransaction_Vtbl { - pub const fn new() -> IMSMQTransaction_Vtbl - where - Identity: IMSMQTransaction_Impl, - { - unsafe extern "system" fn Transaction(this: *mut core::ffi::c_void, pltransaction: *mut i32) -> windows_core::HRESULT - where - Identity: IMSMQTransaction_Impl, - { + pub const fn new() -> IMSMQTransaction_Vtbl { + unsafe extern "system" fn Transaction(this: *mut core::ffi::c_void, pltransaction: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQTransaction_Impl::Transaction(this) { Ok(ok__) => { @@ -8826,17 +6801,11 @@ impl IMSMQTransaction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, fretaining: *const core::mem::MaybeUninit, grftc: *const core::mem::MaybeUninit, grfrm: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQTransaction_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, fretaining: *const core::mem::MaybeUninit, grftc: *const core::mem::MaybeUninit, grfrm: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQTransaction_Impl::Commit(this, core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&grftc), core::mem::transmute_copy(&grfrm)).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void, fretaining: *const core::mem::MaybeUninit, fasync: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQTransaction_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void, fretaining: *const core::mem::MaybeUninit, fasync: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQTransaction_Impl::Abort(this, core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&fasync)).into() } @@ -8860,21 +6829,12 @@ pub trait IMSMQTransaction2_Impl: Sized + IMSMQTransaction_Impl { impl windows_core::RuntimeName for IMSMQTransaction2 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQTransaction2_Vtbl { - pub const fn new() -> IMSMQTransaction2_Vtbl - where - Identity: IMSMQTransaction2_Impl, - { - unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void, vartransaction: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQTransaction2_Impl, - { + pub const fn new() -> IMSMQTransaction2_Vtbl { + unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void, vartransaction: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSMQTransaction2_Impl::InitNew(this, core::mem::transmute(&vartransaction)).into() } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQTransaction2_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQTransaction2_Impl::Properties(this) { Ok(ok__) => { @@ -8898,14 +6858,8 @@ pub trait IMSMQTransaction3_Impl: Sized + IMSMQTransaction2_Impl { impl windows_core::RuntimeName for IMSMQTransaction3 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQTransaction3_Vtbl { - pub const fn new() -> IMSMQTransaction3_Vtbl - where - Identity: IMSMQTransaction3_Impl, - { - unsafe extern "system" fn ITransaction(this: *mut core::ffi::c_void, pvaritransaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMSMQTransaction3_Impl, - { + pub const fn new() -> IMSMQTransaction3_Vtbl { + unsafe extern "system" fn ITransaction(this: *mut core::ffi::c_void, pvaritransaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQTransaction3_Impl::ITransaction(this) { Ok(ok__) => { @@ -8929,14 +6883,8 @@ pub trait IMSMQTransactionDispenser_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQTransactionDispenser {} #[cfg(feature = "Win32_System_Com")] impl IMSMQTransactionDispenser_Vtbl { - pub const fn new() -> IMSMQTransactionDispenser_Vtbl - where - Identity: IMSMQTransactionDispenser_Impl, - { - unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQTransactionDispenser_Impl, - { + pub const fn new() -> IMSMQTransactionDispenser_Vtbl { + unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQTransactionDispenser_Impl::BeginTransaction(this) { Ok(ok__) => { @@ -8961,14 +6909,8 @@ pub trait IMSMQTransactionDispenser2_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQTransactionDispenser2 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQTransactionDispenser2_Vtbl { - pub const fn new() -> IMSMQTransactionDispenser2_Vtbl - where - Identity: IMSMQTransactionDispenser2_Impl, - { - unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQTransactionDispenser2_Impl, - { + pub const fn new() -> IMSMQTransactionDispenser2_Vtbl { + unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQTransactionDispenser2_Impl::BeginTransaction(this) { Ok(ok__) => { @@ -8978,10 +6920,7 @@ impl IMSMQTransactionDispenser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQTransactionDispenser2_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQTransactionDispenser2_Impl::Properties(this) { Ok(ok__) => { @@ -9010,14 +6949,8 @@ pub trait IMSMQTransactionDispenser3_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMSMQTransactionDispenser3 {} #[cfg(feature = "Win32_System_Com")] impl IMSMQTransactionDispenser3_Vtbl { - pub const fn new() -> IMSMQTransactionDispenser3_Vtbl - where - Identity: IMSMQTransactionDispenser3_Impl, - { - unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQTransactionDispenser3_Impl, - { + pub const fn new() -> IMSMQTransactionDispenser3_Vtbl { + unsafe extern "system" fn BeginTransaction(this: *mut core::ffi::c_void, ptransaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQTransactionDispenser3_Impl::BeginTransaction(this) { Ok(ok__) => { @@ -9027,10 +6960,7 @@ impl IMSMQTransactionDispenser3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMSMQTransactionDispenser3_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppcolproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMSMQTransactionDispenser3_Impl::Properties(this) { Ok(ok__) => { @@ -9056,10 +6986,7 @@ pub trait _DMSMQEventEvents_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for _DMSMQEventEvents {} #[cfg(feature = "Win32_System_Com")] impl _DMSMQEventEvents_Vtbl { - pub const fn new() -> _DMSMQEventEvents_Vtbl - where - Identity: _DMSMQEventEvents_Impl, - { + pub const fn new() -> _DMSMQEventEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { 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 f669cebea9..e3ea58c0a2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mmc/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mmc/impl.rs @@ -4,10 +4,7 @@ pub trait AppEvents_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for AppEvents {} #[cfg(feature = "Win32_System_Com")] impl AppEvents_Vtbl { - pub const fn new() -> AppEvents_Vtbl - where - Identity: AppEvents_Impl, - { + pub const fn new() -> AppEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30,14 +27,8 @@ pub trait Column_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Column {} #[cfg(feature = "Win32_System_Com")] impl Column_Vtbl { - pub const fn new() -> Column_Vtbl - where - Identity: Column_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Column_Impl, - { + pub const fn new() -> Column_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Column_Impl::Name(this) { Ok(ok__) => { @@ -47,10 +38,7 @@ impl Column_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, width: *mut i32) -> windows_core::HRESULT - where - Identity: Column_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, width: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Column_Impl::Width(this) { Ok(ok__) => { @@ -60,17 +48,11 @@ impl Column_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, width: i32) -> windows_core::HRESULT - where - Identity: Column_Impl, - { + unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, width: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Column_Impl::SetWidth(this, core::mem::transmute_copy(&width)).into() } - unsafe extern "system" fn DisplayPosition(this: *mut core::ffi::c_void, displayposition: *mut i32) -> windows_core::HRESULT - where - Identity: Column_Impl, - { + unsafe extern "system" fn DisplayPosition(this: *mut core::ffi::c_void, displayposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Column_Impl::DisplayPosition(this) { Ok(ok__) => { @@ -80,17 +62,11 @@ impl Column_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayPosition(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: Column_Impl, - { + unsafe extern "system" fn SetDisplayPosition(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Column_Impl::SetDisplayPosition(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Hidden(this: *mut core::ffi::c_void, hidden: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: Column_Impl, - { + unsafe extern "system" fn Hidden(this: *mut core::ffi::c_void, hidden: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Column_Impl::Hidden(this) { Ok(ok__) => { @@ -100,24 +76,15 @@ impl Column_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHidden(this: *mut core::ffi::c_void, hidden: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: Column_Impl, - { + unsafe extern "system" fn SetHidden(this: *mut core::ffi::c_void, hidden: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Column_Impl::SetHidden(this, core::mem::transmute_copy(&hidden)).into() } - unsafe extern "system" fn SetAsSortColumn(this: *mut core::ffi::c_void, sortorder: _ColumnSortOrder) -> windows_core::HRESULT - where - Identity: Column_Impl, - { + unsafe extern "system" fn SetAsSortColumn(this: *mut core::ffi::c_void, sortorder: _ColumnSortOrder) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Column_Impl::SetAsSortColumn(this, core::mem::transmute_copy(&sortorder)).into() } - unsafe extern "system" fn IsSortColumn(this: *mut core::ffi::c_void, issortcolumn: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: Column_Impl, - { + unsafe extern "system" fn IsSortColumn(this: *mut core::ffi::c_void, issortcolumn: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Column_Impl::IsSortColumn(this) { Ok(ok__) => { @@ -154,14 +121,8 @@ pub trait Columns_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Columns {} #[cfg(feature = "Win32_System_Com")] impl Columns_Vtbl { - pub const fn new() -> Columns_Vtbl - where - Identity: Columns_Impl, - { - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, column: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Columns_Impl, - { + pub const fn new() -> Columns_Vtbl { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, column: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Columns_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -171,10 +132,7 @@ impl Columns_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: Columns_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Columns_Impl::Count(this) { Ok(ok__) => { @@ -184,10 +142,7 @@ impl Columns_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Columns_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Columns_Impl::_NewEnum(this) { Ok(ok__) => { @@ -218,14 +173,8 @@ pub trait ContextMenu_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ContextMenu {} #[cfg(feature = "Win32_System_Com")] impl ContextMenu_Vtbl { - pub const fn new() -> ContextMenu_Vtbl - where - Identity: ContextMenu_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ContextMenu_Impl, - { + pub const fn new() -> ContextMenu_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextMenu_Impl::_NewEnum(this) { Ok(ok__) => { @@ -235,10 +184,7 @@ impl ContextMenu_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, indexorpath: core::mem::MaybeUninit, menuitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ContextMenu_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, indexorpath: core::mem::MaybeUninit, menuitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextMenu_Impl::get_Item(this, core::mem::transmute(&indexorpath)) { Ok(ok__) => { @@ -248,10 +194,7 @@ impl ContextMenu_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: ContextMenu_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ContextMenu_Impl::Count(this) { Ok(ok__) => { @@ -295,35 +238,20 @@ pub trait Document_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Document {} #[cfg(feature = "Win32_System_Com")] impl Document_Vtbl { - pub const fn new() -> Document_Vtbl - where - Identity: Document_Impl, - { - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + pub const fn new() -> Document_Vtbl { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Document_Impl::Save(this).into() } - unsafe extern "system" fn SaveAs(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn SaveAs(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Document_Impl::SaveAs(this, core::mem::transmute(&filename)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, savechanges: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, savechanges: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Document_Impl::Close(this, core::mem::transmute_copy(&savechanges)).into() } - unsafe extern "system" fn Views(this: *mut core::ffi::c_void, views: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn Views(this: *mut core::ffi::c_void, views: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::Views(this) { Ok(ok__) => { @@ -333,10 +261,7 @@ impl Document_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SnapIns(this: *mut core::ffi::c_void, snapins: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn SnapIns(this: *mut core::ffi::c_void, snapins: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::SnapIns(this) { Ok(ok__) => { @@ -346,10 +271,7 @@ impl Document_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActiveView(this: *mut core::ffi::c_void, view: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn ActiveView(this: *mut core::ffi::c_void, view: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::ActiveView(this) { Ok(ok__) => { @@ -359,10 +281,7 @@ impl Document_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::Name(this) { Ok(ok__) => { @@ -372,17 +291,11 @@ impl Document_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Document_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Location(this: *mut core::ffi::c_void, location: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn Location(this: *mut core::ffi::c_void, location: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::Location(this) { Ok(ok__) => { @@ -392,10 +305,7 @@ impl Document_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSaved(this: *mut core::ffi::c_void, issaved: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn IsSaved(this: *mut core::ffi::c_void, issaved: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::IsSaved(this) { Ok(ok__) => { @@ -405,10 +315,7 @@ impl Document_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, mode: *mut _DocumentMode) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, mode: *mut _DocumentMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::Mode(this) { Ok(ok__) => { @@ -418,17 +325,11 @@ impl Document_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: _DocumentMode) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: _DocumentMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Document_Impl::SetMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn RootNode(this: *mut core::ffi::c_void, node: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn RootNode(this: *mut core::ffi::c_void, node: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::RootNode(this) { Ok(ok__) => { @@ -438,10 +339,7 @@ impl Document_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScopeNamespace(this: *mut core::ffi::c_void, scopenamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn ScopeNamespace(this: *mut core::ffi::c_void, scopenamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::ScopeNamespace(this) { Ok(ok__) => { @@ -451,10 +349,7 @@ impl Document_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateProperties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn CreateProperties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::CreateProperties(this) { Ok(ok__) => { @@ -464,10 +359,7 @@ impl Document_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Application(this: *mut core::ffi::c_void, application: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Document_Impl, - { + unsafe extern "system" fn Application(this: *mut core::ffi::c_void, application: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::Application(this) { Ok(ok__) => { @@ -515,14 +407,8 @@ pub trait Extension_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Extension {} #[cfg(feature = "Win32_System_Com")] impl Extension_Vtbl { - pub const fn new() -> Extension_Vtbl - where - Identity: Extension_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Extension_Impl, - { + pub const fn new() -> Extension_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Extension_Impl::Name(this) { Ok(ok__) => { @@ -532,10 +418,7 @@ impl Extension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Vendor(this: *mut core::ffi::c_void, vendor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Extension_Impl, - { + unsafe extern "system" fn Vendor(this: *mut core::ffi::c_void, vendor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Extension_Impl::Vendor(this) { Ok(ok__) => { @@ -545,10 +428,7 @@ impl Extension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, version: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Extension_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, version: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Extension_Impl::Version(this) { Ok(ok__) => { @@ -558,10 +438,7 @@ impl Extension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Extensions(this: *mut core::ffi::c_void, extensions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Extension_Impl, - { + unsafe extern "system" fn Extensions(this: *mut core::ffi::c_void, extensions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Extension_Impl::Extensions(this) { Ok(ok__) => { @@ -571,10 +448,7 @@ impl Extension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SnapinCLSID(this: *mut core::ffi::c_void, snapinclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Extension_Impl, - { + unsafe extern "system" fn SnapinCLSID(this: *mut core::ffi::c_void, snapinclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Extension_Impl::SnapinCLSID(this) { Ok(ok__) => { @@ -584,17 +458,11 @@ impl Extension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableAllExtensions(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: Extension_Impl, - { + unsafe extern "system" fn EnableAllExtensions(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Extension_Impl::EnableAllExtensions(this, core::mem::transmute_copy(&enable)).into() } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: Extension_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Extension_Impl::Enable(this, core::mem::transmute_copy(&enable)).into() } @@ -623,14 +491,8 @@ pub trait Extensions_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Extensions {} #[cfg(feature = "Win32_System_Com")] impl Extensions_Vtbl { - pub const fn new() -> Extensions_Vtbl - where - Identity: Extensions_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Extensions_Impl, - { + pub const fn new() -> Extensions_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Extensions_Impl::_NewEnum(this) { Ok(ok__) => { @@ -640,10 +502,7 @@ impl Extensions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, extension: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Extensions_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, extension: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Extensions_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -653,10 +512,7 @@ impl Extensions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: Extensions_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Extensions_Impl::Count(this) { Ok(ok__) => { @@ -695,35 +551,20 @@ pub trait Frame_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Frame {} #[cfg(feature = "Win32_System_Com")] impl Frame_Vtbl { - pub const fn new() -> Frame_Vtbl - where - Identity: Frame_Impl, - { - unsafe extern "system" fn Maximize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + pub const fn new() -> Frame_Vtbl { + unsafe extern "system" fn Maximize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Frame_Impl::Maximize(this).into() } - unsafe extern "system" fn Minimize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + unsafe extern "system" fn Minimize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Frame_Impl::Minimize(this).into() } - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Frame_Impl::Restore(this).into() } - unsafe extern "system" fn Top(this: *mut core::ffi::c_void, top: *mut i32) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + unsafe extern "system" fn Top(this: *mut core::ffi::c_void, top: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Frame_Impl::Top(this) { Ok(ok__) => { @@ -733,17 +574,11 @@ impl Frame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, top: i32) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, top: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Frame_Impl::SetTop(this, core::mem::transmute_copy(&top)).into() } - unsafe extern "system" fn Bottom(this: *mut core::ffi::c_void, bottom: *mut i32) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + unsafe extern "system" fn Bottom(this: *mut core::ffi::c_void, bottom: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Frame_Impl::Bottom(this) { Ok(ok__) => { @@ -753,17 +588,11 @@ impl Frame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBottom(this: *mut core::ffi::c_void, bottom: i32) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + unsafe extern "system" fn SetBottom(this: *mut core::ffi::c_void, bottom: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Frame_Impl::SetBottom(this, core::mem::transmute_copy(&bottom)).into() } - unsafe extern "system" fn Left(this: *mut core::ffi::c_void, left: *mut i32) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + unsafe extern "system" fn Left(this: *mut core::ffi::c_void, left: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Frame_Impl::Left(this) { Ok(ok__) => { @@ -773,17 +602,11 @@ impl Frame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, left: i32) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, left: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Frame_Impl::SetLeft(this, core::mem::transmute_copy(&left)).into() } - unsafe extern "system" fn Right(this: *mut core::ffi::c_void, right: *mut i32) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + unsafe extern "system" fn Right(this: *mut core::ffi::c_void, right: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Frame_Impl::Right(this) { Ok(ok__) => { @@ -793,10 +616,7 @@ impl Frame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRight(this: *mut core::ffi::c_void, right: i32) -> windows_core::HRESULT - where - Identity: Frame_Impl, - { + unsafe extern "system" fn SetRight(this: *mut core::ffi::c_void, right: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Frame_Impl::SetRight(this, core::mem::transmute_copy(&right)).into() } @@ -819,7 +639,7 @@ impl Frame_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IColumnData_Impl: Sized { +pub trait IColumnData_Impl: Sized + windows_core::IUnknownImpl { fn SetColumnConfigData(&self, pcolid: *const SColumnSetID, pcolsetdata: *const MMC_COLUMN_SET_DATA) -> windows_core::Result<()>; fn GetColumnConfigData(&self, pcolid: *const SColumnSetID) -> windows_core::Result<*mut MMC_COLUMN_SET_DATA>; fn SetColumnSortData(&self, pcolid: *const SColumnSetID, pcolsortdata: *const MMC_SORT_SET_DATA) -> windows_core::Result<()>; @@ -827,21 +647,12 @@ pub trait IColumnData_Impl: Sized { } impl windows_core::RuntimeName for IColumnData {} impl IColumnData_Vtbl { - pub const fn new() -> IColumnData_Vtbl - where - Identity: IColumnData_Impl, - { - unsafe extern "system" fn SetColumnConfigData(this: *mut core::ffi::c_void, pcolid: *const SColumnSetID, pcolsetdata: *const MMC_COLUMN_SET_DATA) -> windows_core::HRESULT - where - Identity: IColumnData_Impl, - { + pub const fn new() -> IColumnData_Vtbl { + unsafe extern "system" fn SetColumnConfigData(this: *mut core::ffi::c_void, pcolid: *const SColumnSetID, pcolsetdata: *const MMC_COLUMN_SET_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnData_Impl::SetColumnConfigData(this, core::mem::transmute_copy(&pcolid), core::mem::transmute_copy(&pcolsetdata)).into() } - unsafe extern "system" fn GetColumnConfigData(this: *mut core::ffi::c_void, pcolid: *const SColumnSetID, ppcolsetdata: *mut *mut MMC_COLUMN_SET_DATA) -> windows_core::HRESULT - where - Identity: IColumnData_Impl, - { + unsafe extern "system" fn GetColumnConfigData(this: *mut core::ffi::c_void, pcolid: *const SColumnSetID, ppcolsetdata: *mut *mut MMC_COLUMN_SET_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IColumnData_Impl::GetColumnConfigData(this, core::mem::transmute_copy(&pcolid)) { Ok(ok__) => { @@ -851,17 +662,11 @@ impl IColumnData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColumnSortData(this: *mut core::ffi::c_void, pcolid: *const SColumnSetID, pcolsortdata: *const MMC_SORT_SET_DATA) -> windows_core::HRESULT - where - Identity: IColumnData_Impl, - { + unsafe extern "system" fn SetColumnSortData(this: *mut core::ffi::c_void, pcolid: *const SColumnSetID, pcolsortdata: *const MMC_SORT_SET_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnData_Impl::SetColumnSortData(this, core::mem::transmute_copy(&pcolid), core::mem::transmute_copy(&pcolsortdata)).into() } - unsafe extern "system" fn GetColumnSortData(this: *mut core::ffi::c_void, pcolid: *const SColumnSetID, ppcolsortdata: *mut *mut MMC_SORT_SET_DATA) -> windows_core::HRESULT - where - Identity: IColumnData_Impl, - { + unsafe extern "system" fn GetColumnSortData(this: *mut core::ffi::c_void, pcolid: *const SColumnSetID, ppcolsortdata: *mut *mut MMC_SORT_SET_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IColumnData_Impl::GetColumnSortData(this, core::mem::transmute_copy(&pcolid)) { Ok(ok__) => { @@ -884,7 +689,7 @@ impl IColumnData_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IComponent_Impl: Sized { +pub trait IComponent_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, lpconsole: Option<&IConsole>) -> windows_core::Result<()>; fn Notify(&self, lpdataobject: Option<&super::Com::IDataObject>, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param3: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn Destroy(&self, cookie: isize) -> windows_core::Result<()>; @@ -897,35 +702,20 @@ pub trait IComponent_Impl: Sized { impl windows_core::RuntimeName for IComponent {} #[cfg(feature = "Win32_System_Com")] impl IComponent_Vtbl { - pub const fn new() -> IComponent_Vtbl - where - Identity: IComponent_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, lpconsole: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + pub const fn new() -> IComponent_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, lpconsole: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent_Impl::Initialize(this, windows_core::from_raw_borrowed(&lpconsole)).into() } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, lpdataobject: *mut core::ffi::c_void, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param3: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, lpdataobject: *mut core::ffi::c_void, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param3: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent_Impl::Notify(this, windows_core::from_raw_borrowed(&lpdataobject), core::mem::transmute_copy(&event), core::mem::transmute_copy(&arg), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void, cookie: isize) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void, cookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent_Impl::Destroy(this, core::mem::transmute_copy(&cookie)).into() } - unsafe extern "system" fn QueryDataObject(this: *mut core::ffi::c_void, cookie: isize, r#type: DATA_OBJECT_TYPES, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn QueryDataObject(this: *mut core::ffi::c_void, cookie: isize, r#type: DATA_OBJECT_TYPES, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponent_Impl::QueryDataObject(this, core::mem::transmute_copy(&cookie), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -935,24 +725,15 @@ impl IComponent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResultViewType(this: *mut core::ffi::c_void, cookie: isize, ppviewtype: *mut windows_core::PWSTR, pviewoptions: *mut i32) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn GetResultViewType(this: *mut core::ffi::c_void, cookie: isize, ppviewtype: *mut windows_core::PWSTR, pviewoptions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent_Impl::GetResultViewType(this, core::mem::transmute_copy(&cookie), core::mem::transmute_copy(&ppviewtype), core::mem::transmute_copy(&pviewoptions)).into() } - unsafe extern "system" fn GetDisplayInfo(this: *mut core::ffi::c_void, presultdataitem: *mut RESULTDATAITEM) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn GetDisplayInfo(this: *mut core::ffi::c_void, presultdataitem: *mut RESULTDATAITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent_Impl::GetDisplayInfo(this, core::mem::transmute_copy(&presultdataitem)).into() } - unsafe extern "system" fn CompareObjects(this: *mut core::ffi::c_void, lpdataobjecta: *mut core::ffi::c_void, lpdataobjectb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponent_Impl, - { + unsafe extern "system" fn CompareObjects(this: *mut core::ffi::c_void, lpdataobjecta: *mut core::ffi::c_void, lpdataobjectb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent_Impl::CompareObjects(this, windows_core::from_raw_borrowed(&lpdataobjecta), windows_core::from_raw_borrowed(&lpdataobjectb)).into() } @@ -981,14 +762,8 @@ pub trait IComponent2_Impl: Sized + IComponent_Impl { impl windows_core::RuntimeName for IComponent2 {} #[cfg(feature = "Win32_System_Com")] impl IComponent2_Vtbl { - pub const fn new() -> IComponent2_Vtbl - where - Identity: IComponent2_Impl, - { - unsafe extern "system" fn QueryDispatch(this: *mut core::ffi::c_void, cookie: isize, r#type: DATA_OBJECT_TYPES, ppdispatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponent2_Impl, - { + pub const fn new() -> IComponent2_Vtbl { + unsafe extern "system" fn QueryDispatch(this: *mut core::ffi::c_void, cookie: isize, r#type: DATA_OBJECT_TYPES, ppdispatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponent2_Impl::QueryDispatch(this, core::mem::transmute_copy(&cookie), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -998,17 +773,11 @@ impl IComponent2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResultViewType2(this: *mut core::ffi::c_void, cookie: isize, presultviewtype: *mut RESULT_VIEW_TYPE_INFO) -> windows_core::HRESULT - where - Identity: IComponent2_Impl, - { + unsafe extern "system" fn GetResultViewType2(this: *mut core::ffi::c_void, cookie: isize, presultviewtype: *mut RESULT_VIEW_TYPE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent2_Impl::GetResultViewType2(this, core::mem::transmute_copy(&cookie), core::mem::transmute_copy(&presultviewtype)).into() } - unsafe extern "system" fn RestoreResultView(this: *mut core::ffi::c_void, cookie: isize, presultviewtype: *const RESULT_VIEW_TYPE_INFO) -> windows_core::HRESULT - where - Identity: IComponent2_Impl, - { + unsafe extern "system" fn RestoreResultView(this: *mut core::ffi::c_void, cookie: isize, presultviewtype: *const RESULT_VIEW_TYPE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponent2_Impl::RestoreResultView(this, core::mem::transmute_copy(&cookie), core::mem::transmute_copy(&presultviewtype)).into() } @@ -1024,7 +793,7 @@ impl IComponent2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IComponentData_Impl: Sized { +pub trait IComponentData_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, punknown: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn CreateComponent(&self) -> windows_core::Result; fn Notify(&self, lpdataobject: Option<&super::Com::IDataObject>, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param3: super::super::Foundation::LPARAM) -> windows_core::Result<()>; @@ -1037,21 +806,12 @@ pub trait IComponentData_Impl: Sized { impl windows_core::RuntimeName for IComponentData {} #[cfg(feature = "Win32_System_Com")] impl IComponentData_Vtbl { - pub const fn new() -> IComponentData_Vtbl - where - Identity: IComponentData_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentData_Impl, - { + pub const fn new() -> IComponentData_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, punknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentData_Impl::Initialize(this, windows_core::from_raw_borrowed(&punknown)).into() } - unsafe extern "system" fn CreateComponent(this: *mut core::ffi::c_void, ppcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentData_Impl, - { + unsafe extern "system" fn CreateComponent(this: *mut core::ffi::c_void, ppcomponent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentData_Impl::CreateComponent(this) { Ok(ok__) => { @@ -1061,24 +821,15 @@ impl IComponentData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, lpdataobject: *mut core::ffi::c_void, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param3: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IComponentData_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, lpdataobject: *mut core::ffi::c_void, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param3: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentData_Impl::Notify(this, windows_core::from_raw_borrowed(&lpdataobject), core::mem::transmute_copy(&event), core::mem::transmute_copy(&arg), core::mem::transmute_copy(¶m3)).into() } - unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentData_Impl, - { + unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentData_Impl::Destroy(this).into() } - unsafe extern "system" fn QueryDataObject(this: *mut core::ffi::c_void, cookie: isize, r#type: DATA_OBJECT_TYPES, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentData_Impl, - { + unsafe extern "system" fn QueryDataObject(this: *mut core::ffi::c_void, cookie: isize, r#type: DATA_OBJECT_TYPES, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentData_Impl::QueryDataObject(this, core::mem::transmute_copy(&cookie), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -1088,17 +839,11 @@ impl IComponentData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayInfo(this: *mut core::ffi::c_void, pscopedataitem: *mut SCOPEDATAITEM) -> windows_core::HRESULT - where - Identity: IComponentData_Impl, - { + unsafe extern "system" fn GetDisplayInfo(this: *mut core::ffi::c_void, pscopedataitem: *mut SCOPEDATAITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentData_Impl::GetDisplayInfo(this, core::mem::transmute_copy(&pscopedataitem)).into() } - unsafe extern "system" fn CompareObjects(this: *mut core::ffi::c_void, lpdataobjecta: *mut core::ffi::c_void, lpdataobjectb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentData_Impl, - { + unsafe extern "system" fn CompareObjects(this: *mut core::ffi::c_void, lpdataobjecta: *mut core::ffi::c_void, lpdataobjectb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentData_Impl::CompareObjects(this, windows_core::from_raw_borrowed(&lpdataobjecta), windows_core::from_raw_borrowed(&lpdataobjectb)).into() } @@ -1125,14 +870,8 @@ pub trait IComponentData2_Impl: Sized + IComponentData_Impl { impl windows_core::RuntimeName for IComponentData2 {} #[cfg(feature = "Win32_System_Com")] impl IComponentData2_Vtbl { - pub const fn new() -> IComponentData2_Vtbl - where - Identity: IComponentData2_Impl, - { - unsafe extern "system" fn QueryDispatch(this: *mut core::ffi::c_void, cookie: isize, r#type: DATA_OBJECT_TYPES, ppdispatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComponentData2_Impl, - { + pub const fn new() -> IComponentData2_Vtbl { + unsafe extern "system" fn QueryDispatch(this: *mut core::ffi::c_void, cookie: isize, r#type: DATA_OBJECT_TYPES, ppdispatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComponentData2_Impl::QueryDispatch(this, core::mem::transmute_copy(&cookie), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -1149,7 +888,7 @@ impl IComponentData2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IConsole_Impl: Sized { +pub trait IConsole_Impl: Sized + windows_core::IUnknownImpl { fn SetHeader(&self, pheader: Option<&IHeaderCtrl>) -> windows_core::Result<()>; fn SetToolbar(&self, ptoolbar: Option<&IToolbar>) -> windows_core::Result<()>; fn QueryResultView(&self) -> windows_core::Result; @@ -1166,28 +905,16 @@ pub trait IConsole_Impl: Sized { impl windows_core::RuntimeName for IConsole {} #[cfg(feature = "Win32_System_Com")] impl IConsole_Vtbl { - pub const fn new() -> IConsole_Vtbl - where - Identity: IConsole_Impl, - { - unsafe extern "system" fn SetHeader(this: *mut core::ffi::c_void, pheader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + pub const fn new() -> IConsole_Vtbl { + unsafe extern "system" fn SetHeader(this: *mut core::ffi::c_void, pheader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsole_Impl::SetHeader(this, windows_core::from_raw_borrowed(&pheader)).into() } - unsafe extern "system" fn SetToolbar(this: *mut core::ffi::c_void, ptoolbar: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + unsafe extern "system" fn SetToolbar(this: *mut core::ffi::c_void, ptoolbar: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsole_Impl::SetToolbar(this, windows_core::from_raw_borrowed(&ptoolbar)).into() } - unsafe extern "system" fn QueryResultView(this: *mut core::ffi::c_void, punknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + unsafe extern "system" fn QueryResultView(this: *mut core::ffi::c_void, punknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConsole_Impl::QueryResultView(this) { Ok(ok__) => { @@ -1197,10 +924,7 @@ impl IConsole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryScopeImageList(this: *mut core::ffi::c_void, ppimagelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + unsafe extern "system" fn QueryScopeImageList(this: *mut core::ffi::c_void, ppimagelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConsole_Impl::QueryScopeImageList(this) { Ok(ok__) => { @@ -1210,10 +934,7 @@ impl IConsole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryResultImageList(this: *mut core::ffi::c_void, ppimagelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + unsafe extern "system" fn QueryResultImageList(this: *mut core::ffi::c_void, ppimagelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConsole_Impl::QueryResultImageList(this) { Ok(ok__) => { @@ -1223,17 +944,11 @@ impl IConsole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateAllViews(this: *mut core::ffi::c_void, lpdataobject: *mut core::ffi::c_void, data: super::super::Foundation::LPARAM, hint: isize) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + unsafe extern "system" fn UpdateAllViews(this: *mut core::ffi::c_void, lpdataobject: *mut core::ffi::c_void, data: super::super::Foundation::LPARAM, hint: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsole_Impl::UpdateAllViews(this, windows_core::from_raw_borrowed(&lpdataobject), core::mem::transmute_copy(&data), core::mem::transmute_copy(&hint)).into() } - unsafe extern "system" fn MessageBox(this: *mut core::ffi::c_void, lpsztext: windows_core::PCWSTR, lpsztitle: windows_core::PCWSTR, fustyle: u32, piretval: *mut i32) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + unsafe extern "system" fn MessageBox(this: *mut core::ffi::c_void, lpsztext: windows_core::PCWSTR, lpsztitle: windows_core::PCWSTR, fustyle: u32, piretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConsole_Impl::MessageBox(this, core::mem::transmute(&lpsztext), core::mem::transmute(&lpsztitle), core::mem::transmute_copy(&fustyle)) { Ok(ok__) => { @@ -1243,10 +958,7 @@ impl IConsole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryConsoleVerb(this: *mut core::ffi::c_void, ppconsoleverb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + unsafe extern "system" fn QueryConsoleVerb(this: *mut core::ffi::c_void, ppconsoleverb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConsole_Impl::QueryConsoleVerb(this) { Ok(ok__) => { @@ -1256,17 +968,11 @@ impl IConsole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectScopeItem(this: *mut core::ffi::c_void, hscopeitem: isize) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + unsafe extern "system" fn SelectScopeItem(this: *mut core::ffi::c_void, hscopeitem: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsole_Impl::SelectScopeItem(this, core::mem::transmute_copy(&hscopeitem)).into() } - unsafe extern "system" fn GetMainWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + unsafe extern "system" fn GetMainWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConsole_Impl::GetMainWindow(this) { Ok(ok__) => { @@ -1276,10 +982,7 @@ impl IConsole_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NewWindow(this: *mut core::ffi::c_void, hscopeitem: isize, loptions: u32) -> windows_core::HRESULT - where - Identity: IConsole_Impl, - { + unsafe extern "system" fn NewWindow(this: *mut core::ffi::c_void, hscopeitem: isize, loptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsole_Impl::NewWindow(this, core::mem::transmute_copy(&hscopeitem), core::mem::transmute_copy(&loptions)).into() } @@ -1312,28 +1015,16 @@ pub trait IConsole2_Impl: Sized + IConsole_Impl { impl windows_core::RuntimeName for IConsole2 {} #[cfg(feature = "Win32_System_Com")] impl IConsole2_Vtbl { - pub const fn new() -> IConsole2_Vtbl - where - Identity: IConsole2_Impl, - { - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, hitem: isize, bexpand: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IConsole2_Impl, - { + pub const fn new() -> IConsole2_Vtbl { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, hitem: isize, bexpand: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsole2_Impl::Expand(this, core::mem::transmute_copy(&hitem), core::mem::transmute_copy(&bexpand)).into() } - unsafe extern "system" fn IsTaskpadViewPreferred(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConsole2_Impl, - { + unsafe extern "system" fn IsTaskpadViewPreferred(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsole2_Impl::IsTaskpadViewPreferred(this).into() } - unsafe extern "system" fn SetStatusText(this: *mut core::ffi::c_void, pszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IConsole2_Impl, - { + unsafe extern "system" fn SetStatusText(this: *mut core::ffi::c_void, pszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsole2_Impl::SetStatusText(this, core::mem::transmute(&pszstatustext)).into() } @@ -1356,14 +1047,8 @@ pub trait IConsole3_Impl: Sized + IConsole2_Impl { impl windows_core::RuntimeName for IConsole3 {} #[cfg(feature = "Win32_System_Com")] impl IConsole3_Vtbl { - pub const fn new() -> IConsole3_Vtbl - where - Identity: IConsole3_Impl, - { - unsafe extern "system" fn RenameScopeItem(this: *mut core::ffi::c_void, hscopeitem: isize) -> windows_core::HRESULT - where - Identity: IConsole3_Impl, - { + pub const fn new() -> IConsole3_Vtbl { + unsafe extern "system" fn RenameScopeItem(this: *mut core::ffi::c_void, hscopeitem: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsole3_Impl::RenameScopeItem(this, core::mem::transmute_copy(&hscopeitem)).into() } @@ -1373,7 +1058,7 @@ impl IConsole3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IConsoleNameSpace_Impl: Sized { +pub trait IConsoleNameSpace_Impl: Sized + windows_core::IUnknownImpl { fn InsertItem(&self, item: *mut SCOPEDATAITEM) -> windows_core::Result<()>; fn DeleteItem(&self, hitem: isize, fdeletethis: i32) -> windows_core::Result<()>; fn SetItem(&self, item: *const SCOPEDATAITEM) -> windows_core::Result<()>; @@ -1384,56 +1069,32 @@ pub trait IConsoleNameSpace_Impl: Sized { } impl windows_core::RuntimeName for IConsoleNameSpace {} impl IConsoleNameSpace_Vtbl { - pub const fn new() -> IConsoleNameSpace_Vtbl - where - Identity: IConsoleNameSpace_Impl, - { - unsafe extern "system" fn InsertItem(this: *mut core::ffi::c_void, item: *mut SCOPEDATAITEM) -> windows_core::HRESULT - where - Identity: IConsoleNameSpace_Impl, - { + pub const fn new() -> IConsoleNameSpace_Vtbl { + unsafe extern "system" fn InsertItem(this: *mut core::ffi::c_void, item: *mut SCOPEDATAITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleNameSpace_Impl::InsertItem(this, core::mem::transmute_copy(&item)).into() } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, hitem: isize, fdeletethis: i32) -> windows_core::HRESULT - where - Identity: IConsoleNameSpace_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, hitem: isize, fdeletethis: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleNameSpace_Impl::DeleteItem(this, core::mem::transmute_copy(&hitem), core::mem::transmute_copy(&fdeletethis)).into() } - unsafe extern "system" fn SetItem(this: *mut core::ffi::c_void, item: *const SCOPEDATAITEM) -> windows_core::HRESULT - where - Identity: IConsoleNameSpace_Impl, - { + unsafe extern "system" fn SetItem(this: *mut core::ffi::c_void, item: *const SCOPEDATAITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleNameSpace_Impl::SetItem(this, core::mem::transmute_copy(&item)).into() } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, item: *mut SCOPEDATAITEM) -> windows_core::HRESULT - where - Identity: IConsoleNameSpace_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, item: *mut SCOPEDATAITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleNameSpace_Impl::GetItem(this, core::mem::transmute_copy(&item)).into() } - unsafe extern "system" fn GetChildItem(this: *mut core::ffi::c_void, item: isize, pitemchild: *mut isize, pcookie: *mut isize) -> windows_core::HRESULT - where - Identity: IConsoleNameSpace_Impl, - { + unsafe extern "system" fn GetChildItem(this: *mut core::ffi::c_void, item: isize, pitemchild: *mut isize, pcookie: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleNameSpace_Impl::GetChildItem(this, core::mem::transmute_copy(&item), core::mem::transmute_copy(&pitemchild), core::mem::transmute_copy(&pcookie)).into() } - unsafe extern "system" fn GetNextItem(this: *mut core::ffi::c_void, item: isize, pitemnext: *mut isize, pcookie: *mut isize) -> windows_core::HRESULT - where - Identity: IConsoleNameSpace_Impl, - { + unsafe extern "system" fn GetNextItem(this: *mut core::ffi::c_void, item: isize, pitemnext: *mut isize, pcookie: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleNameSpace_Impl::GetNextItem(this, core::mem::transmute_copy(&item), core::mem::transmute_copy(&pitemnext), core::mem::transmute_copy(&pcookie)).into() } - unsafe extern "system" fn GetParentItem(this: *mut core::ffi::c_void, item: isize, pitemparent: *mut isize, pcookie: *mut isize) -> windows_core::HRESULT - where - Identity: IConsoleNameSpace_Impl, - { + unsafe extern "system" fn GetParentItem(this: *mut core::ffi::c_void, item: isize, pitemparent: *mut isize, pcookie: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleNameSpace_Impl::GetParentItem(this, core::mem::transmute_copy(&item), core::mem::transmute_copy(&pitemparent), core::mem::transmute_copy(&pcookie)).into() } @@ -1458,21 +1119,12 @@ pub trait IConsoleNameSpace2_Impl: Sized + IConsoleNameSpace_Impl { } impl windows_core::RuntimeName for IConsoleNameSpace2 {} impl IConsoleNameSpace2_Vtbl { - pub const fn new() -> IConsoleNameSpace2_Vtbl - where - Identity: IConsoleNameSpace2_Impl, - { - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, hitem: isize) -> windows_core::HRESULT - where - Identity: IConsoleNameSpace2_Impl, - { + pub const fn new() -> IConsoleNameSpace2_Vtbl { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, hitem: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleNameSpace2_Impl::Expand(this, core::mem::transmute_copy(&hitem)).into() } - unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, hitem: isize, lpclsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IConsoleNameSpace2_Impl, - { + unsafe extern "system" fn AddExtension(this: *mut core::ffi::c_void, hitem: isize, lpclsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleNameSpace2_Impl::AddExtension(this, core::mem::transmute_copy(&hitem), core::mem::transmute_copy(&lpclsid)).into() } @@ -1482,27 +1134,18 @@ impl IConsoleNameSpace2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IConsolePower_Impl: Sized { +pub trait IConsolePower_Impl: Sized + windows_core::IUnknownImpl { fn SetExecutionState(&self, dwadd: u32, dwremove: u32) -> windows_core::Result<()>; fn ResetIdleTimer(&self, dwflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IConsolePower {} impl IConsolePower_Vtbl { - pub const fn new() -> IConsolePower_Vtbl - where - Identity: IConsolePower_Impl, - { - unsafe extern "system" fn SetExecutionState(this: *mut core::ffi::c_void, dwadd: u32, dwremove: u32) -> windows_core::HRESULT - where - Identity: IConsolePower_Impl, - { + pub const fn new() -> IConsolePower_Vtbl { + unsafe extern "system" fn SetExecutionState(this: *mut core::ffi::c_void, dwadd: u32, dwremove: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsolePower_Impl::SetExecutionState(this, core::mem::transmute_copy(&dwadd), core::mem::transmute_copy(&dwremove)).into() } - unsafe extern "system" fn ResetIdleTimer(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IConsolePower_Impl, - { + unsafe extern "system" fn ResetIdleTimer(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsolePower_Impl::ResetIdleTimer(this, core::mem::transmute_copy(&dwflags)).into() } @@ -1516,19 +1159,13 @@ impl IConsolePower_Vtbl { iid == &::IID } } -pub trait IConsolePowerSink_Impl: Sized { +pub trait IConsolePowerSink_Impl: Sized + windows_core::IUnknownImpl { fn OnPowerBroadcast(&self, nevent: u32, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; } impl windows_core::RuntimeName for IConsolePowerSink {} impl IConsolePowerSink_Vtbl { - pub const fn new() -> IConsolePowerSink_Vtbl - where - Identity: IConsolePowerSink_Impl, - { - unsafe extern "system" fn OnPowerBroadcast(this: *mut core::ffi::c_void, nevent: u32, lparam: super::super::Foundation::LPARAM, plreturn: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IConsolePowerSink_Impl, - { + pub const fn new() -> IConsolePowerSink_Vtbl { + unsafe extern "system" fn OnPowerBroadcast(this: *mut core::ffi::c_void, nevent: u32, lparam: super::super::Foundation::LPARAM, plreturn: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConsolePowerSink_Impl::OnPowerBroadcast(this, core::mem::transmute_copy(&nevent), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -1544,7 +1181,7 @@ impl IConsolePowerSink_Vtbl { iid == &::IID } } -pub trait IConsoleVerb_Impl: Sized { +pub trait IConsoleVerb_Impl: Sized + windows_core::IUnknownImpl { fn GetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE) -> windows_core::Result; fn SetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn SetDefaultVerb(&self, ecmdid: MMC_CONSOLE_VERB) -> windows_core::Result<()>; @@ -1552,14 +1189,8 @@ pub trait IConsoleVerb_Impl: Sized { } impl windows_core::RuntimeName for IConsoleVerb {} impl IConsoleVerb_Vtbl { - pub const fn new() -> IConsoleVerb_Vtbl - where - Identity: IConsoleVerb_Impl, - { - unsafe extern "system" fn GetVerbState(this: *mut core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, pstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IConsoleVerb_Impl, - { + pub const fn new() -> IConsoleVerb_Vtbl { + unsafe extern "system" fn GetVerbState(this: *mut core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, pstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConsoleVerb_Impl::GetVerbState(this, core::mem::transmute_copy(&ecmdid), core::mem::transmute_copy(&nstate)) { Ok(ok__) => { @@ -1569,24 +1200,15 @@ impl IConsoleVerb_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVerbState(this: *mut core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IConsoleVerb_Impl, - { + unsafe extern "system" fn SetVerbState(this: *mut core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleVerb_Impl::SetVerbState(this, core::mem::transmute_copy(&ecmdid), core::mem::transmute_copy(&nstate), core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn SetDefaultVerb(this: *mut core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB) -> windows_core::HRESULT - where - Identity: IConsoleVerb_Impl, - { + unsafe extern "system" fn SetDefaultVerb(this: *mut core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleVerb_Impl::SetDefaultVerb(this, core::mem::transmute_copy(&ecmdid)).into() } - unsafe extern "system" fn GetDefaultVerb(this: *mut core::ffi::c_void, pecmdid: *mut MMC_CONSOLE_VERB) -> windows_core::HRESULT - where - Identity: IConsoleVerb_Impl, - { + unsafe extern "system" fn GetDefaultVerb(this: *mut core::ffi::c_void, pecmdid: *mut MMC_CONSOLE_VERB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConsoleVerb_Impl::GetDefaultVerb(this) { Ok(ok__) => { @@ -1608,19 +1230,13 @@ impl IConsoleVerb_Vtbl { iid == &::IID } } -pub trait IContextMenuCallback_Impl: Sized { +pub trait IContextMenuCallback_Impl: Sized + windows_core::IUnknownImpl { fn AddItem(&self, pitem: *const CONTEXTMENUITEM) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IContextMenuCallback {} impl IContextMenuCallback_Vtbl { - pub const fn new() -> IContextMenuCallback_Vtbl - where - Identity: IContextMenuCallback_Impl, - { - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, pitem: *const CONTEXTMENUITEM) -> windows_core::HRESULT - where - Identity: IContextMenuCallback_Impl, - { + pub const fn new() -> IContextMenuCallback_Vtbl { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, pitem: *const CONTEXTMENUITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenuCallback_Impl::AddItem(this, core::mem::transmute_copy(&pitem)).into() } @@ -1630,19 +1246,13 @@ impl IContextMenuCallback_Vtbl { iid == &::IID } } -pub trait IContextMenuCallback2_Impl: Sized { +pub trait IContextMenuCallback2_Impl: Sized + windows_core::IUnknownImpl { fn AddItem(&self, pitem: *const CONTEXTMENUITEM2) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IContextMenuCallback2 {} impl IContextMenuCallback2_Vtbl { - pub const fn new() -> IContextMenuCallback2_Vtbl - where - Identity: IContextMenuCallback2_Impl, - { - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, pitem: *const CONTEXTMENUITEM2) -> windows_core::HRESULT - where - Identity: IContextMenuCallback2_Impl, - { + pub const fn new() -> IContextMenuCallback2_Vtbl { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, pitem: *const CONTEXTMENUITEM2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenuCallback2_Impl::AddItem(this, core::mem::transmute_copy(&pitem)).into() } @@ -1663,35 +1273,20 @@ pub trait IContextMenuProvider_Impl: Sized + IContextMenuCallback_Impl { impl windows_core::RuntimeName for IContextMenuProvider {} #[cfg(feature = "Win32_System_Com")] impl IContextMenuProvider_Vtbl { - pub const fn new() -> IContextMenuProvider_Vtbl - where - Identity: IContextMenuProvider_Impl, - { - unsafe extern "system" fn EmptyMenuList(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContextMenuProvider_Impl, - { + pub const fn new() -> IContextMenuProvider_Vtbl { + unsafe extern "system" fn EmptyMenuList(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenuProvider_Impl::EmptyMenuList(this).into() } - unsafe extern "system" fn AddPrimaryExtensionItems(this: *mut core::ffi::c_void, piextension: *mut core::ffi::c_void, pidataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContextMenuProvider_Impl, - { + unsafe extern "system" fn AddPrimaryExtensionItems(this: *mut core::ffi::c_void, piextension: *mut core::ffi::c_void, pidataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenuProvider_Impl::AddPrimaryExtensionItems(this, windows_core::from_raw_borrowed(&piextension), windows_core::from_raw_borrowed(&pidataobject)).into() } - unsafe extern "system" fn AddThirdPartyExtensionItems(this: *mut core::ffi::c_void, pidataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContextMenuProvider_Impl, - { + unsafe extern "system" fn AddThirdPartyExtensionItems(this: *mut core::ffi::c_void, pidataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenuProvider_Impl::AddThirdPartyExtensionItems(this, windows_core::from_raw_borrowed(&pidataobject)).into() } - unsafe extern "system" fn ShowContextMenu(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, xpos: i32, ypos: i32, plselected: *mut i32) -> windows_core::HRESULT - where - Identity: IContextMenuProvider_Impl, - { + unsafe extern "system" fn ShowContextMenu(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, xpos: i32, ypos: i32, plselected: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContextMenuProvider_Impl::ShowContextMenu(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&xpos), core::mem::transmute_copy(&ypos)) { Ok(ok__) => { @@ -1713,21 +1308,15 @@ impl IContextMenuProvider_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IControlbar_Impl: Sized { +pub trait IControlbar_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, ntype: MMC_CONTROL_TYPE, pextendcontrolbar: Option<&IExtendControlbar>) -> windows_core::Result; fn Attach(&self, ntype: MMC_CONTROL_TYPE, lpunknown: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Detach(&self, lpunknown: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IControlbar {} impl IControlbar_Vtbl { - pub const fn new() -> IControlbar_Vtbl - where - Identity: IControlbar_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, ntype: MMC_CONTROL_TYPE, pextendcontrolbar: *mut core::ffi::c_void, ppunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IControlbar_Impl, - { + pub const fn new() -> IControlbar_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, ntype: MMC_CONTROL_TYPE, pextendcontrolbar: *mut core::ffi::c_void, ppunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IControlbar_Impl::Create(this, core::mem::transmute_copy(&ntype), windows_core::from_raw_borrowed(&pextendcontrolbar)) { Ok(ok__) => { @@ -1737,17 +1326,11 @@ impl IControlbar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, ntype: MMC_CONTROL_TYPE, lpunknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IControlbar_Impl, - { + unsafe extern "system" fn Attach(this: *mut core::ffi::c_void, ntype: MMC_CONTROL_TYPE, lpunknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IControlbar_Impl::Attach(this, core::mem::transmute_copy(&ntype), windows_core::from_raw_borrowed(&lpunknown)).into() } - unsafe extern "system" fn Detach(this: *mut core::ffi::c_void, lpunknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IControlbar_Impl, - { + unsafe extern "system" fn Detach(this: *mut core::ffi::c_void, lpunknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IControlbar_Impl::Detach(this, windows_core::from_raw_borrowed(&lpunknown)).into() } @@ -1762,19 +1345,13 @@ impl IControlbar_Vtbl { iid == &::IID } } -pub trait IDisplayHelp_Impl: Sized { +pub trait IDisplayHelp_Impl: Sized + windows_core::IUnknownImpl { fn ShowTopic(&self, pszhelptopic: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDisplayHelp {} impl IDisplayHelp_Vtbl { - pub const fn new() -> IDisplayHelp_Vtbl - where - Identity: IDisplayHelp_Impl, - { - unsafe extern "system" fn ShowTopic(this: *mut core::ffi::c_void, pszhelptopic: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDisplayHelp_Impl, - { + pub const fn new() -> IDisplayHelp_Vtbl { + unsafe extern "system" fn ShowTopic(this: *mut core::ffi::c_void, pszhelptopic: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDisplayHelp_Impl::ShowTopic(this, core::mem::transmute(&pszhelptopic)).into() } @@ -1784,7 +1361,7 @@ impl IDisplayHelp_Vtbl { iid == &::IID } } -pub trait IEnumTASK_Impl: Sized { +pub trait IEnumTASK_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut MMC_TASK, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1792,35 +1369,20 @@ pub trait IEnumTASK_Impl: Sized { } impl windows_core::RuntimeName for IEnumTASK {} impl IEnumTASK_Vtbl { - pub const fn new() -> IEnumTASK_Vtbl - where - Identity: IEnumTASK_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut MMC_TASK, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTASK_Impl, - { + pub const fn new() -> IEnumTASK_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut MMC_TASK, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTASK_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumTASK_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTASK_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTASK_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTASK_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTASK_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTASK_Impl::Clone(this) { Ok(ok__) => { @@ -1843,7 +1405,7 @@ impl IEnumTASK_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IExtendContextMenu_Impl: Sized { +pub trait IExtendContextMenu_Impl: Sized + windows_core::IUnknownImpl { fn AddMenuItems(&self, pidataobject: Option<&super::Com::IDataObject>, picallback: Option<&IContextMenuCallback>, pinsertionallowed: *mut i32) -> windows_core::Result<()>; fn Command(&self, lcommandid: i32, pidataobject: Option<&super::Com::IDataObject>) -> windows_core::Result<()>; } @@ -1851,21 +1413,12 @@ pub trait IExtendContextMenu_Impl: Sized { impl windows_core::RuntimeName for IExtendContextMenu {} #[cfg(feature = "Win32_System_Com")] impl IExtendContextMenu_Vtbl { - pub const fn new() -> IExtendContextMenu_Vtbl - where - Identity: IExtendContextMenu_Impl, - { - unsafe extern "system" fn AddMenuItems(this: *mut core::ffi::c_void, pidataobject: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void, pinsertionallowed: *mut i32) -> windows_core::HRESULT - where - Identity: IExtendContextMenu_Impl, - { + pub const fn new() -> IExtendContextMenu_Vtbl { + unsafe extern "system" fn AddMenuItems(this: *mut core::ffi::c_void, pidataobject: *mut core::ffi::c_void, picallback: *mut core::ffi::c_void, pinsertionallowed: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtendContextMenu_Impl::AddMenuItems(this, windows_core::from_raw_borrowed(&pidataobject), windows_core::from_raw_borrowed(&picallback), core::mem::transmute_copy(&pinsertionallowed)).into() } - unsafe extern "system" fn Command(this: *mut core::ffi::c_void, lcommandid: i32, pidataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExtendContextMenu_Impl, - { + unsafe extern "system" fn Command(this: *mut core::ffi::c_void, lcommandid: i32, pidataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtendContextMenu_Impl::Command(this, core::mem::transmute_copy(&lcommandid), windows_core::from_raw_borrowed(&pidataobject)).into() } @@ -1879,27 +1432,18 @@ impl IExtendContextMenu_Vtbl { iid == &::IID } } -pub trait IExtendControlbar_Impl: Sized { +pub trait IExtendControlbar_Impl: Sized + windows_core::IUnknownImpl { fn SetControlbar(&self, pcontrolbar: Option<&IControlbar>) -> windows_core::Result<()>; fn ControlbarNotify(&self, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param2: super::super::Foundation::LPARAM) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IExtendControlbar {} impl IExtendControlbar_Vtbl { - pub const fn new() -> IExtendControlbar_Vtbl - where - Identity: IExtendControlbar_Impl, - { - unsafe extern "system" fn SetControlbar(this: *mut core::ffi::c_void, pcontrolbar: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExtendControlbar_Impl, - { + pub const fn new() -> IExtendControlbar_Vtbl { + unsafe extern "system" fn SetControlbar(this: *mut core::ffi::c_void, pcontrolbar: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtendControlbar_Impl::SetControlbar(this, windows_core::from_raw_borrowed(&pcontrolbar)).into() } - unsafe extern "system" fn ControlbarNotify(this: *mut core::ffi::c_void, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param2: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IExtendControlbar_Impl, - { + unsafe extern "system" fn ControlbarNotify(this: *mut core::ffi::c_void, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param2: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtendControlbar_Impl::ControlbarNotify(this, core::mem::transmute_copy(&event), core::mem::transmute_copy(&arg), core::mem::transmute_copy(¶m2)).into() } @@ -1914,7 +1458,7 @@ impl IExtendControlbar_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IExtendPropertySheet_Impl: Sized { +pub trait IExtendPropertySheet_Impl: Sized + windows_core::IUnknownImpl { fn CreatePropertyPages(&self, lpprovider: Option<&IPropertySheetCallback>, handle: isize, lpidataobject: Option<&super::Com::IDataObject>) -> windows_core::Result<()>; fn QueryPagesFor(&self, lpdataobject: Option<&super::Com::IDataObject>) -> windows_core::Result<()>; } @@ -1922,21 +1466,12 @@ pub trait IExtendPropertySheet_Impl: Sized { impl windows_core::RuntimeName for IExtendPropertySheet {} #[cfg(feature = "Win32_System_Com")] impl IExtendPropertySheet_Vtbl { - pub const fn new() -> IExtendPropertySheet_Vtbl - where - Identity: IExtendPropertySheet_Impl, - { - unsafe extern "system" fn CreatePropertyPages(this: *mut core::ffi::c_void, lpprovider: *mut core::ffi::c_void, handle: isize, lpidataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExtendPropertySheet_Impl, - { + pub const fn new() -> IExtendPropertySheet_Vtbl { + unsafe extern "system" fn CreatePropertyPages(this: *mut core::ffi::c_void, lpprovider: *mut core::ffi::c_void, handle: isize, lpidataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtendPropertySheet_Impl::CreatePropertyPages(this, windows_core::from_raw_borrowed(&lpprovider), core::mem::transmute_copy(&handle), windows_core::from_raw_borrowed(&lpidataobject)).into() } - unsafe extern "system" fn QueryPagesFor(this: *mut core::ffi::c_void, lpdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExtendPropertySheet_Impl, - { + unsafe extern "system" fn QueryPagesFor(this: *mut core::ffi::c_void, lpdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtendPropertySheet_Impl::QueryPagesFor(this, windows_core::from_raw_borrowed(&lpdataobject)).into() } @@ -1958,14 +1493,8 @@ pub trait IExtendPropertySheet2_Impl: Sized + IExtendPropertySheet_Impl { impl windows_core::RuntimeName for IExtendPropertySheet2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IExtendPropertySheet2_Vtbl { - pub const fn new() -> IExtendPropertySheet2_Vtbl - where - Identity: IExtendPropertySheet2_Impl, - { - unsafe extern "system" fn GetWatermarks(this: *mut core::ffi::c_void, lpidataobject: *mut core::ffi::c_void, lphwatermark: *mut super::super::Graphics::Gdi::HBITMAP, lphheader: *mut super::super::Graphics::Gdi::HBITMAP, lphpalette: *mut super::super::Graphics::Gdi::HPALETTE, bstretch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IExtendPropertySheet2_Impl, - { + pub const fn new() -> IExtendPropertySheet2_Vtbl { + unsafe extern "system" fn GetWatermarks(this: *mut core::ffi::c_void, lpidataobject: *mut core::ffi::c_void, lphwatermark: *mut super::super::Graphics::Gdi::HBITMAP, lphheader: *mut super::super::Graphics::Gdi::HBITMAP, lphpalette: *mut super::super::Graphics::Gdi::HPALETTE, bstretch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtendPropertySheet2_Impl::GetWatermarks(this, windows_core::from_raw_borrowed(&lpidataobject), core::mem::transmute_copy(&lphwatermark), core::mem::transmute_copy(&lphheader), core::mem::transmute_copy(&lphpalette), core::mem::transmute_copy(&bstretch)).into() } @@ -1976,7 +1505,7 @@ impl IExtendPropertySheet2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IExtendTaskPad_Impl: Sized { +pub trait IExtendTaskPad_Impl: Sized + windows_core::IUnknownImpl { fn TaskNotify(&self, pdo: Option<&super::Com::IDataObject>, arg: *const windows_core::VARIANT, param2: *const windows_core::VARIANT) -> windows_core::Result<()>; fn EnumTasks(&self, pdo: Option<&super::Com::IDataObject>, sztaskgroup: &windows_core::PCWSTR) -> windows_core::Result; fn GetTitle(&self, pszgroup: &windows_core::PCWSTR) -> windows_core::Result; @@ -1988,21 +1517,12 @@ pub trait IExtendTaskPad_Impl: Sized { impl windows_core::RuntimeName for IExtendTaskPad {} #[cfg(feature = "Win32_System_Com")] impl IExtendTaskPad_Vtbl { - pub const fn new() -> IExtendTaskPad_Vtbl - where - Identity: IExtendTaskPad_Impl, - { - unsafe extern "system" fn TaskNotify(this: *mut core::ffi::c_void, pdo: *mut core::ffi::c_void, arg: *const core::mem::MaybeUninit, param2: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IExtendTaskPad_Impl, - { + pub const fn new() -> IExtendTaskPad_Vtbl { + unsafe extern "system" fn TaskNotify(this: *mut core::ffi::c_void, pdo: *mut core::ffi::c_void, arg: *const core::mem::MaybeUninit, param2: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtendTaskPad_Impl::TaskNotify(this, windows_core::from_raw_borrowed(&pdo), core::mem::transmute_copy(&arg), core::mem::transmute_copy(¶m2)).into() } - unsafe extern "system" fn EnumTasks(this: *mut core::ffi::c_void, pdo: *mut core::ffi::c_void, sztaskgroup: windows_core::PCWSTR, ppenumtask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExtendTaskPad_Impl, - { + unsafe extern "system" fn EnumTasks(this: *mut core::ffi::c_void, pdo: *mut core::ffi::c_void, sztaskgroup: windows_core::PCWSTR, ppenumtask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExtendTaskPad_Impl::EnumTasks(this, windows_core::from_raw_borrowed(&pdo), core::mem::transmute(&sztaskgroup)) { Ok(ok__) => { @@ -2012,10 +1532,7 @@ impl IExtendTaskPad_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, pszgroup: windows_core::PCWSTR, psztitle: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IExtendTaskPad_Impl, - { + unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, pszgroup: windows_core::PCWSTR, psztitle: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExtendTaskPad_Impl::GetTitle(this, core::mem::transmute(&pszgroup)) { Ok(ok__) => { @@ -2025,10 +1542,7 @@ impl IExtendTaskPad_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescriptiveText(this: *mut core::ffi::c_void, pszgroup: windows_core::PCWSTR, pszdescriptivetext: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IExtendTaskPad_Impl, - { + unsafe extern "system" fn GetDescriptiveText(this: *mut core::ffi::c_void, pszgroup: windows_core::PCWSTR, pszdescriptivetext: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExtendTaskPad_Impl::GetDescriptiveText(this, core::mem::transmute(&pszgroup)) { Ok(ok__) => { @@ -2038,10 +1552,7 @@ impl IExtendTaskPad_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBackground(this: *mut core::ffi::c_void, pszgroup: windows_core::PCWSTR, ptdo: *mut MMC_TASK_DISPLAY_OBJECT) -> windows_core::HRESULT - where - Identity: IExtendTaskPad_Impl, - { + unsafe extern "system" fn GetBackground(this: *mut core::ffi::c_void, pszgroup: windows_core::PCWSTR, ptdo: *mut MMC_TASK_DISPLAY_OBJECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExtendTaskPad_Impl::GetBackground(this, core::mem::transmute(&pszgroup)) { Ok(ok__) => { @@ -2051,10 +1562,7 @@ impl IExtendTaskPad_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetListPadInfo(this: *mut core::ffi::c_void, pszgroup: windows_core::PCWSTR, lplistpadinfo: *mut MMC_LISTPAD_INFO) -> windows_core::HRESULT - where - Identity: IExtendTaskPad_Impl, - { + unsafe extern "system" fn GetListPadInfo(this: *mut core::ffi::c_void, pszgroup: windows_core::PCWSTR, lplistpadinfo: *mut MMC_LISTPAD_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExtendTaskPad_Impl::GetListPadInfo(this, core::mem::transmute(&pszgroup)) { Ok(ok__) => { @@ -2079,21 +1587,15 @@ impl IExtendTaskPad_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IExtendView_Impl: Sized { +pub trait IExtendView_Impl: Sized + windows_core::IUnknownImpl { fn GetViews(&self, pdataobject: Option<&super::Com::IDataObject>, pviewextensioncallback: Option<&IViewExtensionCallback>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IExtendView {} #[cfg(feature = "Win32_System_Com")] impl IExtendView_Vtbl { - pub const fn new() -> IExtendView_Vtbl - where - Identity: IExtendView_Impl, - { - unsafe extern "system" fn GetViews(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, pviewextensioncallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExtendView_Impl, - { + pub const fn new() -> IExtendView_Vtbl { + unsafe extern "system" fn GetViews(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, pviewextensioncallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtendView_Impl::GetViews(this, windows_core::from_raw_borrowed(&pdataobject), windows_core::from_raw_borrowed(&pviewextensioncallback)).into() } @@ -2103,7 +1605,7 @@ impl IExtendView_Vtbl { iid == &::IID } } -pub trait IHeaderCtrl_Impl: Sized { +pub trait IHeaderCtrl_Impl: Sized + windows_core::IUnknownImpl { fn InsertColumn(&self, ncol: i32, title: &windows_core::PCWSTR, nformat: i32, nwidth: i32) -> windows_core::Result<()>; fn DeleteColumn(&self, ncol: i32) -> windows_core::Result<()>; fn SetColumnText(&self, ncol: i32, title: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -2113,35 +1615,20 @@ pub trait IHeaderCtrl_Impl: Sized { } impl windows_core::RuntimeName for IHeaderCtrl {} impl IHeaderCtrl_Vtbl { - pub const fn new() -> IHeaderCtrl_Vtbl - where - Identity: IHeaderCtrl_Impl, - { - unsafe extern "system" fn InsertColumn(this: *mut core::ffi::c_void, ncol: i32, title: windows_core::PCWSTR, nformat: i32, nwidth: i32) -> windows_core::HRESULT - where - Identity: IHeaderCtrl_Impl, - { + pub const fn new() -> IHeaderCtrl_Vtbl { + unsafe extern "system" fn InsertColumn(this: *mut core::ffi::c_void, ncol: i32, title: windows_core::PCWSTR, nformat: i32, nwidth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderCtrl_Impl::InsertColumn(this, core::mem::transmute_copy(&ncol), core::mem::transmute(&title), core::mem::transmute_copy(&nformat), core::mem::transmute_copy(&nwidth)).into() } - unsafe extern "system" fn DeleteColumn(this: *mut core::ffi::c_void, ncol: i32) -> windows_core::HRESULT - where - Identity: IHeaderCtrl_Impl, - { + unsafe extern "system" fn DeleteColumn(this: *mut core::ffi::c_void, ncol: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderCtrl_Impl::DeleteColumn(this, core::mem::transmute_copy(&ncol)).into() } - unsafe extern "system" fn SetColumnText(this: *mut core::ffi::c_void, ncol: i32, title: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHeaderCtrl_Impl, - { + unsafe extern "system" fn SetColumnText(this: *mut core::ffi::c_void, ncol: i32, title: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderCtrl_Impl::SetColumnText(this, core::mem::transmute_copy(&ncol), core::mem::transmute(&title)).into() } - unsafe extern "system" fn GetColumnText(this: *mut core::ffi::c_void, ncol: i32, ptext: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHeaderCtrl_Impl, - { + unsafe extern "system" fn GetColumnText(this: *mut core::ffi::c_void, ncol: i32, ptext: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderCtrl_Impl::GetColumnText(this, core::mem::transmute_copy(&ncol)) { Ok(ok__) => { @@ -2151,17 +1638,11 @@ impl IHeaderCtrl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColumnWidth(this: *mut core::ffi::c_void, ncol: i32, nwidth: i32) -> windows_core::HRESULT - where - Identity: IHeaderCtrl_Impl, - { + unsafe extern "system" fn SetColumnWidth(this: *mut core::ffi::c_void, ncol: i32, nwidth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderCtrl_Impl::SetColumnWidth(this, core::mem::transmute_copy(&ncol), core::mem::transmute_copy(&nwidth)).into() } - unsafe extern "system" fn GetColumnWidth(this: *mut core::ffi::c_void, ncol: i32, pwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IHeaderCtrl_Impl, - { + unsafe extern "system" fn GetColumnWidth(this: *mut core::ffi::c_void, ncol: i32, pwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderCtrl_Impl::GetColumnWidth(this, core::mem::transmute_copy(&ncol)) { Ok(ok__) => { @@ -2192,28 +1673,16 @@ pub trait IHeaderCtrl2_Impl: Sized + IHeaderCtrl_Impl { } impl windows_core::RuntimeName for IHeaderCtrl2 {} impl IHeaderCtrl2_Vtbl { - pub const fn new() -> IHeaderCtrl2_Vtbl - where - Identity: IHeaderCtrl2_Impl, - { - unsafe extern "system" fn SetChangeTimeOut(this: *mut core::ffi::c_void, utimeout: u32) -> windows_core::HRESULT - where - Identity: IHeaderCtrl2_Impl, - { + pub const fn new() -> IHeaderCtrl2_Vtbl { + unsafe extern "system" fn SetChangeTimeOut(this: *mut core::ffi::c_void, utimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderCtrl2_Impl::SetChangeTimeOut(this, core::mem::transmute_copy(&utimeout)).into() } - unsafe extern "system" fn SetColumnFilter(this: *mut core::ffi::c_void, ncolumn: u32, dwtype: u32, pfilterdata: *const MMC_FILTERDATA) -> windows_core::HRESULT - where - Identity: IHeaderCtrl2_Impl, - { + unsafe extern "system" fn SetColumnFilter(this: *mut core::ffi::c_void, ncolumn: u32, dwtype: u32, pfilterdata: *const MMC_FILTERDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderCtrl2_Impl::SetColumnFilter(this, core::mem::transmute_copy(&ncolumn), core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&pfilterdata)).into() } - unsafe extern "system" fn GetColumnFilter(this: *mut core::ffi::c_void, ncolumn: u32, pdwtype: *mut u32, pfilterdata: *mut MMC_FILTERDATA) -> windows_core::HRESULT - where - Identity: IHeaderCtrl2_Impl, - { + unsafe extern "system" fn GetColumnFilter(this: *mut core::ffi::c_void, ncolumn: u32, pdwtype: *mut u32, pfilterdata: *mut MMC_FILTERDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderCtrl2_Impl::GetColumnFilter(this, core::mem::transmute_copy(&ncolumn), core::mem::transmute_copy(&pdwtype), core::mem::transmute_copy(&pfilterdata)).into() } @@ -2228,27 +1697,18 @@ impl IHeaderCtrl2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IImageList_Impl: Sized { +pub trait IImageList_Impl: Sized + windows_core::IUnknownImpl { fn ImageListSetIcon(&self, picon: *const isize, nloc: i32) -> windows_core::Result<()>; fn ImageListSetStrip(&self, pbmapsm: *const isize, pbmaplg: *const isize, nstartloc: i32, cmask: super::super::Foundation::COLORREF) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IImageList {} impl IImageList_Vtbl { - pub const fn new() -> IImageList_Vtbl - where - Identity: IImageList_Impl, - { - unsafe extern "system" fn ImageListSetIcon(this: *mut core::ffi::c_void, picon: *const isize, nloc: i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + pub const fn new() -> IImageList_Vtbl { + unsafe extern "system" fn ImageListSetIcon(this: *mut core::ffi::c_void, picon: *const isize, nloc: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::ImageListSetIcon(this, core::mem::transmute_copy(&picon), core::mem::transmute_copy(&nloc)).into() } - unsafe extern "system" fn ImageListSetStrip(this: *mut core::ffi::c_void, pbmapsm: *const isize, pbmaplg: *const isize, nstartloc: i32, cmask: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn ImageListSetStrip(this: *mut core::ffi::c_void, pbmapsm: *const isize, pbmaplg: *const isize, nstartloc: i32, cmask: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::ImageListSetStrip(this, core::mem::transmute_copy(&pbmapsm), core::mem::transmute_copy(&pbmaplg), core::mem::transmute_copy(&nstartloc), core::mem::transmute_copy(&cmask)).into() } @@ -2262,19 +1722,13 @@ impl IImageList_Vtbl { iid == &::IID } } -pub trait IMMCVersionInfo_Impl: Sized { +pub trait IMMCVersionInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetMMCVersion(&self, pversionmajor: *mut i32, pversionminor: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMMCVersionInfo {} impl IMMCVersionInfo_Vtbl { - pub const fn new() -> IMMCVersionInfo_Vtbl - where - Identity: IMMCVersionInfo_Impl, - { - unsafe extern "system" fn GetMMCVersion(this: *mut core::ffi::c_void, pversionmajor: *mut i32, pversionminor: *mut i32) -> windows_core::HRESULT - where - Identity: IMMCVersionInfo_Impl, - { + pub const fn new() -> IMMCVersionInfo_Vtbl { + unsafe extern "system" fn GetMMCVersion(this: *mut core::ffi::c_void, pversionmajor: *mut i32, pversionminor: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMMCVersionInfo_Impl::GetMMCVersion(this, core::mem::transmute_copy(&pversionmajor), core::mem::transmute_copy(&pversionminor)).into() } @@ -2284,35 +1738,23 @@ impl IMMCVersionInfo_Vtbl { iid == &::IID } } -pub trait IMenuButton_Impl: Sized { +pub trait IMenuButton_Impl: Sized + windows_core::IUnknownImpl { fn AddButton(&self, idcommand: i32, lpbuttontext: &windows_core::PCWSTR, lptooltiptext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetButton(&self, idcommand: i32, lpbuttontext: &windows_core::PCWSTR, lptooltiptext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMenuButton {} impl IMenuButton_Vtbl { - pub const fn new() -> IMenuButton_Vtbl - where - Identity: IMenuButton_Impl, - { - unsafe extern "system" fn AddButton(this: *mut core::ffi::c_void, idcommand: i32, lpbuttontext: windows_core::PCWSTR, lptooltiptext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMenuButton_Impl, - { + pub const fn new() -> IMenuButton_Vtbl { + unsafe extern "system" fn AddButton(this: *mut core::ffi::c_void, idcommand: i32, lpbuttontext: windows_core::PCWSTR, lptooltiptext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMenuButton_Impl::AddButton(this, core::mem::transmute_copy(&idcommand), core::mem::transmute(&lpbuttontext), core::mem::transmute(&lptooltiptext)).into() } - unsafe extern "system" fn SetButton(this: *mut core::ffi::c_void, idcommand: i32, lpbuttontext: windows_core::PCWSTR, lptooltiptext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMenuButton_Impl, - { + unsafe extern "system" fn SetButton(this: *mut core::ffi::c_void, idcommand: i32, lpbuttontext: windows_core::PCWSTR, lptooltiptext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMenuButton_Impl::SetButton(this, core::mem::transmute_copy(&idcommand), core::mem::transmute(&lpbuttontext), core::mem::transmute(&lptooltiptext)).into() } - unsafe extern "system" fn SetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMenuButton_Impl, - { + unsafe extern "system" fn SetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMenuButton_Impl::SetButtonState(this, core::mem::transmute_copy(&idcommand), core::mem::transmute_copy(&nstate), core::mem::transmute_copy(&bstate)).into() } @@ -2327,7 +1769,7 @@ impl IMenuButton_Vtbl { iid == &::IID } } -pub trait IMessageView_Impl: Sized { +pub trait IMessageView_Impl: Sized + windows_core::IUnknownImpl { fn SetTitleText(&self, psztitletext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetBodyText(&self, pszbodytext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetIcon(&self, id: IconIdentifier) -> windows_core::Result<()>; @@ -2335,35 +1777,20 @@ pub trait IMessageView_Impl: Sized { } impl windows_core::RuntimeName for IMessageView {} impl IMessageView_Vtbl { - pub const fn new() -> IMessageView_Vtbl - where - Identity: IMessageView_Impl, - { - unsafe extern "system" fn SetTitleText(this: *mut core::ffi::c_void, psztitletext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMessageView_Impl, - { + pub const fn new() -> IMessageView_Vtbl { + unsafe extern "system" fn SetTitleText(this: *mut core::ffi::c_void, psztitletext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageView_Impl::SetTitleText(this, core::mem::transmute(&psztitletext)).into() } - unsafe extern "system" fn SetBodyText(this: *mut core::ffi::c_void, pszbodytext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMessageView_Impl, - { + unsafe extern "system" fn SetBodyText(this: *mut core::ffi::c_void, pszbodytext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageView_Impl::SetBodyText(this, core::mem::transmute(&pszbodytext)).into() } - unsafe extern "system" fn SetIcon(this: *mut core::ffi::c_void, id: IconIdentifier) -> windows_core::HRESULT - where - Identity: IMessageView_Impl, - { + unsafe extern "system" fn SetIcon(this: *mut core::ffi::c_void, id: IconIdentifier) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageView_Impl::SetIcon(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMessageView_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageView_Impl::Clear(this).into() } @@ -2380,21 +1807,15 @@ impl IMessageView_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait INodeProperties_Impl: Sized { +pub trait INodeProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetProperty(&self, pdataobject: Option<&super::Com::IDataObject>, szpropertyname: &windows_core::BSTR) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for INodeProperties {} #[cfg(feature = "Win32_System_Com")] impl INodeProperties_Vtbl { - pub const fn new() -> INodeProperties_Vtbl - where - Identity: INodeProperties_Impl, - { - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, szpropertyname: core::mem::MaybeUninit, pbstrproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INodeProperties_Impl, - { + pub const fn new() -> INodeProperties_Vtbl { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, szpropertyname: core::mem::MaybeUninit, pbstrproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INodeProperties_Impl::GetProperty(this, windows_core::from_raw_borrowed(&pdataobject), core::mem::transmute(&szpropertyname)) { Ok(ok__) => { @@ -2411,7 +1832,7 @@ impl INodeProperties_Vtbl { } } #[cfg(feature = "Win32_UI_Controls")] -pub trait IPropertySheetCallback_Impl: Sized { +pub trait IPropertySheetCallback_Impl: Sized + windows_core::IUnknownImpl { fn AddPage(&self, hpage: super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::Result<()>; fn RemovePage(&self, hpage: super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::Result<()>; } @@ -2419,21 +1840,12 @@ pub trait IPropertySheetCallback_Impl: Sized { impl windows_core::RuntimeName for IPropertySheetCallback {} #[cfg(feature = "Win32_UI_Controls")] impl IPropertySheetCallback_Vtbl { - pub const fn new() -> IPropertySheetCallback_Vtbl - where - Identity: IPropertySheetCallback_Impl, - { - unsafe extern "system" fn AddPage(this: *mut core::ffi::c_void, hpage: super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT - where - Identity: IPropertySheetCallback_Impl, - { + pub const fn new() -> IPropertySheetCallback_Vtbl { + unsafe extern "system" fn AddPage(this: *mut core::ffi::c_void, hpage: super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySheetCallback_Impl::AddPage(this, core::mem::transmute_copy(&hpage)).into() } - unsafe extern "system" fn RemovePage(this: *mut core::ffi::c_void, hpage: super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT - where - Identity: IPropertySheetCallback_Impl, - { + unsafe extern "system" fn RemovePage(this: *mut core::ffi::c_void, hpage: super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySheetCallback_Impl::RemovePage(this, core::mem::transmute_copy(&hpage)).into() } @@ -2444,7 +1856,7 @@ impl IPropertySheetCallback_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IPropertySheetProvider_Impl: Sized { +pub trait IPropertySheetProvider_Impl: Sized + windows_core::IUnknownImpl { fn CreatePropertySheet(&self, title: &windows_core::PCWSTR, r#type: u8, cookie: isize, pidataobjectm: Option<&super::Com::IDataObject>, dwoptions: u32) -> windows_core::Result<()>; fn FindPropertySheet(&self, hitem: isize, lpcomponent: Option<&IComponent>, lpdataobject: Option<&super::Com::IDataObject>) -> windows_core::Result<()>; fn AddPrimaryPages(&self, lpunknown: Option<&windows_core::IUnknown>, bcreatehandle: super::super::Foundation::BOOL, hnotifywindow: super::super::Foundation::HWND, bscopepane: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -2455,42 +1867,24 @@ pub trait IPropertySheetProvider_Impl: Sized { impl windows_core::RuntimeName for IPropertySheetProvider {} #[cfg(feature = "Win32_System_Com")] impl IPropertySheetProvider_Vtbl { - pub const fn new() -> IPropertySheetProvider_Vtbl - where - Identity: IPropertySheetProvider_Impl, - { - unsafe extern "system" fn CreatePropertySheet(this: *mut core::ffi::c_void, title: windows_core::PCWSTR, r#type: u8, cookie: isize, pidataobjectm: *mut core::ffi::c_void, dwoptions: u32) -> windows_core::HRESULT - where - Identity: IPropertySheetProvider_Impl, - { + pub const fn new() -> IPropertySheetProvider_Vtbl { + unsafe extern "system" fn CreatePropertySheet(this: *mut core::ffi::c_void, title: windows_core::PCWSTR, r#type: u8, cookie: isize, pidataobjectm: *mut core::ffi::c_void, dwoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySheetProvider_Impl::CreatePropertySheet(this, core::mem::transmute(&title), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&cookie), windows_core::from_raw_borrowed(&pidataobjectm), core::mem::transmute_copy(&dwoptions)).into() } - unsafe extern "system" fn FindPropertySheet(this: *mut core::ffi::c_void, hitem: isize, lpcomponent: *mut core::ffi::c_void, lpdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySheetProvider_Impl, - { + unsafe extern "system" fn FindPropertySheet(this: *mut core::ffi::c_void, hitem: isize, lpcomponent: *mut core::ffi::c_void, lpdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySheetProvider_Impl::FindPropertySheet(this, core::mem::transmute_copy(&hitem), windows_core::from_raw_borrowed(&lpcomponent), windows_core::from_raw_borrowed(&lpdataobject)).into() } - unsafe extern "system" fn AddPrimaryPages(this: *mut core::ffi::c_void, lpunknown: *mut core::ffi::c_void, bcreatehandle: super::super::Foundation::BOOL, hnotifywindow: super::super::Foundation::HWND, bscopepane: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPropertySheetProvider_Impl, - { + unsafe extern "system" fn AddPrimaryPages(this: *mut core::ffi::c_void, lpunknown: *mut core::ffi::c_void, bcreatehandle: super::super::Foundation::BOOL, hnotifywindow: super::super::Foundation::HWND, bscopepane: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySheetProvider_Impl::AddPrimaryPages(this, windows_core::from_raw_borrowed(&lpunknown), core::mem::transmute_copy(&bcreatehandle), core::mem::transmute_copy(&hnotifywindow), core::mem::transmute_copy(&bscopepane)).into() } - unsafe extern "system" fn AddExtensionPages(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySheetProvider_Impl, - { + unsafe extern "system" fn AddExtensionPages(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySheetProvider_Impl::AddExtensionPages(this).into() } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, window: isize, page: i32) -> windows_core::HRESULT - where - Identity: IPropertySheetProvider_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, window: isize, page: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySheetProvider_Impl::Show(this, core::mem::transmute_copy(&window), core::mem::transmute_copy(&page)).into() } @@ -2507,28 +1901,19 @@ impl IPropertySheetProvider_Vtbl { iid == &::IID } } -pub trait IRequiredExtensions_Impl: Sized { +pub trait IRequiredExtensions_Impl: Sized + windows_core::IUnknownImpl { fn EnableAllExtensions(&self) -> windows_core::Result<()>; fn GetFirstExtension(&self) -> windows_core::Result; fn GetNextExtension(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IRequiredExtensions {} impl IRequiredExtensions_Vtbl { - pub const fn new() -> IRequiredExtensions_Vtbl - where - Identity: IRequiredExtensions_Impl, - { - unsafe extern "system" fn EnableAllExtensions(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRequiredExtensions_Impl, - { + pub const fn new() -> IRequiredExtensions_Vtbl { + unsafe extern "system" fn EnableAllExtensions(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRequiredExtensions_Impl::EnableAllExtensions(this).into() } - unsafe extern "system" fn GetFirstExtension(this: *mut core::ffi::c_void, pextclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRequiredExtensions_Impl, - { + unsafe extern "system" fn GetFirstExtension(this: *mut core::ffi::c_void, pextclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRequiredExtensions_Impl::GetFirstExtension(this) { Ok(ok__) => { @@ -2538,10 +1923,7 @@ impl IRequiredExtensions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextExtension(this: *mut core::ffi::c_void, pextclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRequiredExtensions_Impl, - { + unsafe extern "system" fn GetNextExtension(this: *mut core::ffi::c_void, pextclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRequiredExtensions_Impl::GetNextExtension(this) { Ok(ok__) => { @@ -2562,7 +1944,7 @@ impl IRequiredExtensions_Vtbl { iid == &::IID } } -pub trait IResultData_Impl: Sized { +pub trait IResultData_Impl: Sized + windows_core::IUnknownImpl { fn InsertItem(&self, item: *mut RESULTDATAITEM) -> windows_core::Result<()>; fn DeleteItem(&self, itemid: isize, ncol: i32) -> windows_core::Result<()>; fn FindItemByLParam(&self, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; @@ -2581,28 +1963,16 @@ pub trait IResultData_Impl: Sized { } impl windows_core::RuntimeName for IResultData {} impl IResultData_Vtbl { - pub const fn new() -> IResultData_Vtbl - where - Identity: IResultData_Impl, - { - unsafe extern "system" fn InsertItem(this: *mut core::ffi::c_void, item: *mut RESULTDATAITEM) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + pub const fn new() -> IResultData_Vtbl { + unsafe extern "system" fn InsertItem(this: *mut core::ffi::c_void, item: *mut RESULTDATAITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::InsertItem(this, core::mem::transmute_copy(&item)).into() } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, itemid: isize, ncol: i32) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, itemid: isize, ncol: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::DeleteItem(this, core::mem::transmute_copy(&itemid), core::mem::transmute_copy(&ncol)).into() } - unsafe extern "system" fn FindItemByLParam(this: *mut core::ffi::c_void, lparam: super::super::Foundation::LPARAM, pitemid: *mut isize) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn FindItemByLParam(this: *mut core::ffi::c_void, lparam: super::super::Foundation::LPARAM, pitemid: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IResultData_Impl::FindItemByLParam(this, core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -2612,59 +1982,35 @@ impl IResultData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteAllRsltItems(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn DeleteAllRsltItems(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::DeleteAllRsltItems(this).into() } - unsafe extern "system" fn SetItem(this: *mut core::ffi::c_void, item: *const RESULTDATAITEM) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn SetItem(this: *mut core::ffi::c_void, item: *const RESULTDATAITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::SetItem(this, core::mem::transmute_copy(&item)).into() } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, item: *mut RESULTDATAITEM) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, item: *mut RESULTDATAITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::GetItem(this, core::mem::transmute_copy(&item)).into() } - unsafe extern "system" fn GetNextItem(this: *mut core::ffi::c_void, item: *mut RESULTDATAITEM) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn GetNextItem(this: *mut core::ffi::c_void, item: *mut RESULTDATAITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::GetNextItem(this, core::mem::transmute_copy(&item)).into() } - unsafe extern "system" fn ModifyItemState(this: *mut core::ffi::c_void, nindex: i32, itemid: isize, uadd: u32, uremove: u32) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn ModifyItemState(this: *mut core::ffi::c_void, nindex: i32, itemid: isize, uadd: u32, uremove: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::ModifyItemState(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&itemid), core::mem::transmute_copy(&uadd), core::mem::transmute_copy(&uremove)).into() } - unsafe extern "system" fn ModifyViewStyle(this: *mut core::ffi::c_void, add: MMC_RESULT_VIEW_STYLE, remove: MMC_RESULT_VIEW_STYLE) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn ModifyViewStyle(this: *mut core::ffi::c_void, add: MMC_RESULT_VIEW_STYLE, remove: MMC_RESULT_VIEW_STYLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::ModifyViewStyle(this, core::mem::transmute_copy(&add), core::mem::transmute_copy(&remove)).into() } - unsafe extern "system" fn SetViewMode(this: *mut core::ffi::c_void, lviewmode: i32) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn SetViewMode(this: *mut core::ffi::c_void, lviewmode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::SetViewMode(this, core::mem::transmute_copy(&lviewmode)).into() } - unsafe extern "system" fn GetViewMode(this: *mut core::ffi::c_void, lviewmode: *mut i32) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn GetViewMode(this: *mut core::ffi::c_void, lviewmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IResultData_Impl::GetViewMode(this) { Ok(ok__) => { @@ -2674,31 +2020,19 @@ impl IResultData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateItem(this: *mut core::ffi::c_void, itemid: isize) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn UpdateItem(this: *mut core::ffi::c_void, itemid: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::UpdateItem(this, core::mem::transmute_copy(&itemid)).into() } - unsafe extern "system" fn Sort(this: *mut core::ffi::c_void, ncolumn: i32, dwsortoptions: u32, luserparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn Sort(this: *mut core::ffi::c_void, ncolumn: i32, dwsortoptions: u32, luserparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::Sort(this, core::mem::transmute_copy(&ncolumn), core::mem::transmute_copy(&dwsortoptions), core::mem::transmute_copy(&luserparam)).into() } - unsafe extern "system" fn SetDescBarText(this: *mut core::ffi::c_void, desctext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn SetDescBarText(this: *mut core::ffi::c_void, desctext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::SetDescBarText(this, core::mem::transmute(&desctext)).into() } - unsafe extern "system" fn SetItemCount(this: *mut core::ffi::c_void, nitemcount: i32, dwoptions: u32) -> windows_core::HRESULT - where - Identity: IResultData_Impl, - { + unsafe extern "system" fn SetItemCount(this: *mut core::ffi::c_void, nitemcount: i32, dwoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData_Impl::SetItemCount(this, core::mem::transmute_copy(&nitemcount), core::mem::transmute_copy(&dwoptions)).into() } @@ -2730,14 +2064,8 @@ pub trait IResultData2_Impl: Sized + IResultData_Impl { } impl windows_core::RuntimeName for IResultData2 {} impl IResultData2_Vtbl { - pub const fn new() -> IResultData2_Vtbl - where - Identity: IResultData2_Impl, - { - unsafe extern "system" fn RenameResultItem(this: *mut core::ffi::c_void, itemid: isize) -> windows_core::HRESULT - where - Identity: IResultData2_Impl, - { + pub const fn new() -> IResultData2_Vtbl { + unsafe extern "system" fn RenameResultItem(this: *mut core::ffi::c_void, itemid: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultData2_Impl::RenameResultItem(this, core::mem::transmute_copy(&itemid)).into() } @@ -2747,19 +2075,13 @@ impl IResultData2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IResultDataCompare_Impl: Sized { +pub trait IResultDataCompare_Impl: Sized + windows_core::IUnknownImpl { fn Compare(&self, luserparam: super::super::Foundation::LPARAM, cookiea: isize, cookieb: isize, pnresult: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IResultDataCompare {} impl IResultDataCompare_Vtbl { - pub const fn new() -> IResultDataCompare_Vtbl - where - Identity: IResultDataCompare_Impl, - { - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, luserparam: super::super::Foundation::LPARAM, cookiea: isize, cookieb: isize, pnresult: *mut i32) -> windows_core::HRESULT - where - Identity: IResultDataCompare_Impl, - { + pub const fn new() -> IResultDataCompare_Vtbl { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, luserparam: super::super::Foundation::LPARAM, cookiea: isize, cookieb: isize, pnresult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultDataCompare_Impl::Compare(this, core::mem::transmute_copy(&luserparam), core::mem::transmute_copy(&cookiea), core::mem::transmute_copy(&cookieb), core::mem::transmute_copy(&pnresult)).into() } @@ -2769,19 +2091,13 @@ impl IResultDataCompare_Vtbl { iid == &::IID } } -pub trait IResultDataCompareEx_Impl: Sized { +pub trait IResultDataCompareEx_Impl: Sized + windows_core::IUnknownImpl { fn Compare(&self, prdc: *const RDCOMPARE) -> windows_core::Result; } impl windows_core::RuntimeName for IResultDataCompareEx {} impl IResultDataCompareEx_Vtbl { - pub const fn new() -> IResultDataCompareEx_Vtbl - where - Identity: IResultDataCompareEx_Impl, - { - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, prdc: *const RDCOMPARE, pnresult: *mut i32) -> windows_core::HRESULT - where - Identity: IResultDataCompareEx_Impl, - { + pub const fn new() -> IResultDataCompareEx_Vtbl { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, prdc: *const RDCOMPARE, pnresult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IResultDataCompareEx_Impl::Compare(this, core::mem::transmute_copy(&prdc)) { Ok(ok__) => { @@ -2797,21 +2113,15 @@ impl IResultDataCompareEx_Vtbl { iid == &::IID } } -pub trait IResultOwnerData_Impl: Sized { +pub trait IResultOwnerData_Impl: Sized + windows_core::IUnknownImpl { fn FindItem(&self, pfindinfo: *const RESULTFINDINFO) -> windows_core::Result; fn CacheHint(&self, nstartindex: i32, nendindex: i32) -> windows_core::Result<()>; fn SortItems(&self, ncolumn: i32, dwsortoptions: u32, luserparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IResultOwnerData {} impl IResultOwnerData_Vtbl { - pub const fn new() -> IResultOwnerData_Vtbl - where - Identity: IResultOwnerData_Impl, - { - unsafe extern "system" fn FindItem(this: *mut core::ffi::c_void, pfindinfo: *const RESULTFINDINFO, pnfoundindex: *mut i32) -> windows_core::HRESULT - where - Identity: IResultOwnerData_Impl, - { + pub const fn new() -> IResultOwnerData_Vtbl { + unsafe extern "system" fn FindItem(this: *mut core::ffi::c_void, pfindinfo: *const RESULTFINDINFO, pnfoundindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IResultOwnerData_Impl::FindItem(this, core::mem::transmute_copy(&pfindinfo)) { Ok(ok__) => { @@ -2821,17 +2131,11 @@ impl IResultOwnerData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CacheHint(this: *mut core::ffi::c_void, nstartindex: i32, nendindex: i32) -> windows_core::HRESULT - where - Identity: IResultOwnerData_Impl, - { + unsafe extern "system" fn CacheHint(this: *mut core::ffi::c_void, nstartindex: i32, nendindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultOwnerData_Impl::CacheHint(this, core::mem::transmute_copy(&nstartindex), core::mem::transmute_copy(&nendindex)).into() } - unsafe extern "system" fn SortItems(this: *mut core::ffi::c_void, ncolumn: i32, dwsortoptions: u32, luserparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IResultOwnerData_Impl, - { + unsafe extern "system" fn SortItems(this: *mut core::ffi::c_void, ncolumn: i32, dwsortoptions: u32, luserparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultOwnerData_Impl::SortItems(this, core::mem::transmute_copy(&ncolumn), core::mem::transmute_copy(&dwsortoptions), core::mem::transmute_copy(&luserparam)).into() } @@ -2847,7 +2151,7 @@ impl IResultOwnerData_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait ISnapinAbout_Impl: Sized { +pub trait ISnapinAbout_Impl: Sized + windows_core::IUnknownImpl { fn GetSnapinDescription(&self) -> windows_core::Result; fn GetProvider(&self) -> windows_core::Result; fn GetSnapinVersion(&self) -> windows_core::Result; @@ -2858,14 +2162,8 @@ pub trait ISnapinAbout_Impl: Sized { impl windows_core::RuntimeName for ISnapinAbout {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl ISnapinAbout_Vtbl { - pub const fn new() -> ISnapinAbout_Vtbl - where - Identity: ISnapinAbout_Impl, - { - unsafe extern "system" fn GetSnapinDescription(this: *mut core::ffi::c_void, lpdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISnapinAbout_Impl, - { + pub const fn new() -> ISnapinAbout_Vtbl { + unsafe extern "system" fn GetSnapinDescription(this: *mut core::ffi::c_void, lpdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISnapinAbout_Impl::GetSnapinDescription(this) { Ok(ok__) => { @@ -2875,10 +2173,7 @@ impl ISnapinAbout_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, lpname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISnapinAbout_Impl, - { + unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, lpname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISnapinAbout_Impl::GetProvider(this) { Ok(ok__) => { @@ -2888,10 +2183,7 @@ impl ISnapinAbout_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSnapinVersion(this: *mut core::ffi::c_void, lpversion: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISnapinAbout_Impl, - { + unsafe extern "system" fn GetSnapinVersion(this: *mut core::ffi::c_void, lpversion: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISnapinAbout_Impl::GetSnapinVersion(this) { Ok(ok__) => { @@ -2901,10 +2193,7 @@ impl ISnapinAbout_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSnapinImage(this: *mut core::ffi::c_void, happicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT - where - Identity: ISnapinAbout_Impl, - { + unsafe extern "system" fn GetSnapinImage(this: *mut core::ffi::c_void, happicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISnapinAbout_Impl::GetSnapinImage(this) { Ok(ok__) => { @@ -2914,10 +2203,7 @@ impl ISnapinAbout_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStaticFolderImage(this: *mut core::ffi::c_void, hsmallimage: *mut super::super::Graphics::Gdi::HBITMAP, hsmallimageopen: *mut super::super::Graphics::Gdi::HBITMAP, hlargeimage: *mut super::super::Graphics::Gdi::HBITMAP, cmask: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: ISnapinAbout_Impl, - { + unsafe extern "system" fn GetStaticFolderImage(this: *mut core::ffi::c_void, hsmallimage: *mut super::super::Graphics::Gdi::HBITMAP, hsmallimageopen: *mut super::super::Graphics::Gdi::HBITMAP, hlargeimage: *mut super::super::Graphics::Gdi::HBITMAP, cmask: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISnapinAbout_Impl::GetStaticFolderImage(this, core::mem::transmute_copy(&hsmallimage), core::mem::transmute_copy(&hsmallimageopen), core::mem::transmute_copy(&hlargeimage), core::mem::transmute_copy(&cmask)).into() } @@ -2934,19 +2220,13 @@ impl ISnapinAbout_Vtbl { iid == &::IID } } -pub trait ISnapinHelp_Impl: Sized { +pub trait ISnapinHelp_Impl: Sized + windows_core::IUnknownImpl { fn GetHelpTopic(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISnapinHelp {} impl ISnapinHelp_Vtbl { - pub const fn new() -> ISnapinHelp_Vtbl - where - Identity: ISnapinHelp_Impl, - { - unsafe extern "system" fn GetHelpTopic(this: *mut core::ffi::c_void, lpcompiledhelpfile: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISnapinHelp_Impl, - { + pub const fn new() -> ISnapinHelp_Vtbl { + unsafe extern "system" fn GetHelpTopic(this: *mut core::ffi::c_void, lpcompiledhelpfile: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISnapinHelp_Impl::GetHelpTopic(this) { Ok(ok__) => { @@ -2967,14 +2247,8 @@ pub trait ISnapinHelp2_Impl: Sized + ISnapinHelp_Impl { } impl windows_core::RuntimeName for ISnapinHelp2 {} impl ISnapinHelp2_Vtbl { - pub const fn new() -> ISnapinHelp2_Vtbl - where - Identity: ISnapinHelp2_Impl, - { - unsafe extern "system" fn GetLinkedTopics(this: *mut core::ffi::c_void, lpcompiledhelpfiles: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISnapinHelp2_Impl, - { + pub const fn new() -> ISnapinHelp2_Vtbl { + unsafe extern "system" fn GetLinkedTopics(this: *mut core::ffi::c_void, lpcompiledhelpfiles: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISnapinHelp2_Impl::GetLinkedTopics(this) { Ok(ok__) => { @@ -2991,7 +2265,7 @@ impl ISnapinHelp2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISnapinProperties_Impl: Sized { +pub trait ISnapinProperties_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pproperties: Option<&Properties>) -> windows_core::Result<()>; fn QueryPropertyNames(&self, pcallback: Option<&ISnapinPropertiesCallback>) -> windows_core::Result<()>; fn PropertiesChanged(&self, cproperties: i32, pproperties: *const MMC_SNAPIN_PROPERTY) -> windows_core::Result<()>; @@ -3000,28 +2274,16 @@ pub trait ISnapinProperties_Impl: Sized { impl windows_core::RuntimeName for ISnapinProperties {} #[cfg(feature = "Win32_System_Com")] impl ISnapinProperties_Vtbl { - pub const fn new() -> ISnapinProperties_Vtbl - where - Identity: ISnapinProperties_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pproperties: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISnapinProperties_Impl, - { + pub const fn new() -> ISnapinProperties_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pproperties: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISnapinProperties_Impl::Initialize(this, windows_core::from_raw_borrowed(&pproperties)).into() } - unsafe extern "system" fn QueryPropertyNames(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISnapinProperties_Impl, - { + unsafe extern "system" fn QueryPropertyNames(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISnapinProperties_Impl::QueryPropertyNames(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn PropertiesChanged(this: *mut core::ffi::c_void, cproperties: i32, pproperties: *const MMC_SNAPIN_PROPERTY) -> windows_core::HRESULT - where - Identity: ISnapinProperties_Impl, - { + unsafe extern "system" fn PropertiesChanged(this: *mut core::ffi::c_void, cproperties: i32, pproperties: *const MMC_SNAPIN_PROPERTY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISnapinProperties_Impl::PropertiesChanged(this, core::mem::transmute_copy(&cproperties), core::mem::transmute_copy(&pproperties)).into() } @@ -3036,19 +2298,13 @@ impl ISnapinProperties_Vtbl { iid == &::IID } } -pub trait ISnapinPropertiesCallback_Impl: Sized { +pub trait ISnapinPropertiesCallback_Impl: Sized + windows_core::IUnknownImpl { fn AddPropertyName(&self, pszpropname: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISnapinPropertiesCallback {} impl ISnapinPropertiesCallback_Vtbl { - pub const fn new() -> ISnapinPropertiesCallback_Vtbl - where - Identity: ISnapinPropertiesCallback_Impl, - { - unsafe extern "system" fn AddPropertyName(this: *mut core::ffi::c_void, pszpropname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: ISnapinPropertiesCallback_Impl, - { + pub const fn new() -> ISnapinPropertiesCallback_Vtbl { + unsafe extern "system" fn AddPropertyName(this: *mut core::ffi::c_void, pszpropname: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISnapinPropertiesCallback_Impl::AddPropertyName(this, core::mem::transmute(&pszpropname), core::mem::transmute_copy(&dwflags)).into() } @@ -3059,7 +2315,7 @@ impl ISnapinPropertiesCallback_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IStringTable_Impl: Sized { +pub trait IStringTable_Impl: Sized + windows_core::IUnknownImpl { fn AddString(&self, pszadd: &windows_core::PCWSTR) -> windows_core::Result; fn GetString(&self, stringid: u32, cchbuffer: u32, lpbuffer: windows_core::PWSTR, pcchout: *mut u32) -> windows_core::Result<()>; fn GetStringLength(&self, stringid: u32) -> windows_core::Result; @@ -3072,14 +2328,8 @@ pub trait IStringTable_Impl: Sized { impl windows_core::RuntimeName for IStringTable {} #[cfg(feature = "Win32_System_Com")] impl IStringTable_Vtbl { - pub const fn new() -> IStringTable_Vtbl - where - Identity: IStringTable_Impl, - { - unsafe extern "system" fn AddString(this: *mut core::ffi::c_void, pszadd: windows_core::PCWSTR, pstringid: *mut u32) -> windows_core::HRESULT - where - Identity: IStringTable_Impl, - { + pub const fn new() -> IStringTable_Vtbl { + unsafe extern "system" fn AddString(this: *mut core::ffi::c_void, pszadd: windows_core::PCWSTR, pstringid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringTable_Impl::AddString(this, core::mem::transmute(&pszadd)) { Ok(ok__) => { @@ -3089,17 +2339,11 @@ impl IStringTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, stringid: u32, cchbuffer: u32, lpbuffer: windows_core::PWSTR, pcchout: *mut u32) -> windows_core::HRESULT - where - Identity: IStringTable_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, stringid: u32, cchbuffer: u32, lpbuffer: windows_core::PWSTR, pcchout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStringTable_Impl::GetString(this, core::mem::transmute_copy(&stringid), core::mem::transmute_copy(&cchbuffer), core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&pcchout)).into() } - unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void, stringid: u32, pcchstring: *mut u32) -> windows_core::HRESULT - where - Identity: IStringTable_Impl, - { + unsafe extern "system" fn GetStringLength(this: *mut core::ffi::c_void, stringid: u32, pcchstring: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringTable_Impl::GetStringLength(this, core::mem::transmute_copy(&stringid)) { Ok(ok__) => { @@ -3109,24 +2353,15 @@ impl IStringTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteString(this: *mut core::ffi::c_void, stringid: u32) -> windows_core::HRESULT - where - Identity: IStringTable_Impl, - { + unsafe extern "system" fn DeleteString(this: *mut core::ffi::c_void, stringid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStringTable_Impl::DeleteString(this, core::mem::transmute_copy(&stringid)).into() } - unsafe extern "system" fn DeleteAllStrings(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStringTable_Impl, - { + unsafe extern "system" fn DeleteAllStrings(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStringTable_Impl::DeleteAllStrings(this).into() } - unsafe extern "system" fn FindString(this: *mut core::ffi::c_void, pszfind: windows_core::PCWSTR, pstringid: *mut u32) -> windows_core::HRESULT - where - Identity: IStringTable_Impl, - { + unsafe extern "system" fn FindString(this: *mut core::ffi::c_void, pszfind: windows_core::PCWSTR, pstringid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringTable_Impl::FindString(this, core::mem::transmute(&pszfind)) { Ok(ok__) => { @@ -3136,10 +2371,7 @@ impl IStringTable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enumerate(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStringTable_Impl, - { + unsafe extern "system" fn Enumerate(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringTable_Impl::Enumerate(this) { Ok(ok__) => { @@ -3165,7 +2397,7 @@ impl IStringTable_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IToolbar_Impl: Sized { +pub trait IToolbar_Impl: Sized + windows_core::IUnknownImpl { fn AddBitmap(&self, nimages: i32, hbmp: super::super::Graphics::Gdi::HBITMAP, cxsize: i32, cysize: i32, crmask: super::super::Foundation::COLORREF) -> windows_core::Result<()>; fn AddButtons(&self, nbuttons: i32, lpbuttons: *const MMCBUTTON) -> windows_core::Result<()>; fn InsertButton(&self, nindex: i32, lpbutton: *const MMCBUTTON) -> windows_core::Result<()>; @@ -3177,42 +2409,24 @@ pub trait IToolbar_Impl: Sized { impl windows_core::RuntimeName for IToolbar {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IToolbar_Vtbl { - pub const fn new() -> IToolbar_Vtbl - where - Identity: IToolbar_Impl, - { - unsafe extern "system" fn AddBitmap(this: *mut core::ffi::c_void, nimages: i32, hbmp: super::super::Graphics::Gdi::HBITMAP, cxsize: i32, cysize: i32, crmask: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IToolbar_Impl, - { + pub const fn new() -> IToolbar_Vtbl { + unsafe extern "system" fn AddBitmap(this: *mut core::ffi::c_void, nimages: i32, hbmp: super::super::Graphics::Gdi::HBITMAP, cxsize: i32, cysize: i32, crmask: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToolbar_Impl::AddBitmap(this, core::mem::transmute_copy(&nimages), core::mem::transmute_copy(&hbmp), core::mem::transmute_copy(&cxsize), core::mem::transmute_copy(&cysize), core::mem::transmute_copy(&crmask)).into() } - unsafe extern "system" fn AddButtons(this: *mut core::ffi::c_void, nbuttons: i32, lpbuttons: *const MMCBUTTON) -> windows_core::HRESULT - where - Identity: IToolbar_Impl, - { + unsafe extern "system" fn AddButtons(this: *mut core::ffi::c_void, nbuttons: i32, lpbuttons: *const MMCBUTTON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToolbar_Impl::AddButtons(this, core::mem::transmute_copy(&nbuttons), core::mem::transmute_copy(&lpbuttons)).into() } - unsafe extern "system" fn InsertButton(this: *mut core::ffi::c_void, nindex: i32, lpbutton: *const MMCBUTTON) -> windows_core::HRESULT - where - Identity: IToolbar_Impl, - { + unsafe extern "system" fn InsertButton(this: *mut core::ffi::c_void, nindex: i32, lpbutton: *const MMCBUTTON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToolbar_Impl::InsertButton(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&lpbutton)).into() } - unsafe extern "system" fn DeleteButton(this: *mut core::ffi::c_void, nindex: i32) -> windows_core::HRESULT - where - Identity: IToolbar_Impl, - { + unsafe extern "system" fn DeleteButton(this: *mut core::ffi::c_void, nindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToolbar_Impl::DeleteButton(this, core::mem::transmute_copy(&nindex)).into() } - unsafe extern "system" fn GetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, pstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IToolbar_Impl, - { + unsafe extern "system" fn GetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, pstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IToolbar_Impl::GetButtonState(this, core::mem::transmute_copy(&idcommand), core::mem::transmute_copy(&nstate)) { Ok(ok__) => { @@ -3222,10 +2436,7 @@ impl IToolbar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IToolbar_Impl, - { + unsafe extern "system" fn SetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToolbar_Impl::SetButtonState(this, core::mem::transmute_copy(&idcommand), core::mem::transmute_copy(&nstate), core::mem::transmute_copy(&bstate)).into() } @@ -3243,19 +2454,13 @@ impl IToolbar_Vtbl { iid == &::IID } } -pub trait IViewExtensionCallback_Impl: Sized { +pub trait IViewExtensionCallback_Impl: Sized + windows_core::IUnknownImpl { fn AddView(&self, pextviewdata: *const MMC_EXT_VIEW_DATA) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IViewExtensionCallback {} impl IViewExtensionCallback_Vtbl { - pub const fn new() -> IViewExtensionCallback_Vtbl - where - Identity: IViewExtensionCallback_Impl, - { - unsafe extern "system" fn AddView(this: *mut core::ffi::c_void, pextviewdata: *const MMC_EXT_VIEW_DATA) -> windows_core::HRESULT - where - Identity: IViewExtensionCallback_Impl, - { + pub const fn new() -> IViewExtensionCallback_Vtbl { + unsafe extern "system" fn AddView(this: *mut core::ffi::c_void, pextviewdata: *const MMC_EXT_VIEW_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewExtensionCallback_Impl::AddView(this, core::mem::transmute_copy(&pextviewdata)).into() } @@ -3278,14 +2483,8 @@ pub trait MenuItem_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for MenuItem {} #[cfg(feature = "Win32_System_Com")] impl MenuItem_Vtbl { - pub const fn new() -> MenuItem_Vtbl - where - Identity: MenuItem_Impl, - { - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: MenuItem_Impl, - { + pub const fn new() -> MenuItem_Vtbl { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match MenuItem_Impl::DisplayName(this) { Ok(ok__) => { @@ -3295,10 +2494,7 @@ impl MenuItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LanguageIndependentName(this: *mut core::ffi::c_void, languageindependentname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: MenuItem_Impl, - { + unsafe extern "system" fn LanguageIndependentName(this: *mut core::ffi::c_void, languageindependentname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match MenuItem_Impl::LanguageIndependentName(this) { Ok(ok__) => { @@ -3308,10 +2504,7 @@ impl MenuItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: MenuItem_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match MenuItem_Impl::Path(this) { Ok(ok__) => { @@ -3321,10 +2514,7 @@ impl MenuItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LanguageIndependentPath(this: *mut core::ffi::c_void, languageindependentpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: MenuItem_Impl, - { + unsafe extern "system" fn LanguageIndependentPath(this: *mut core::ffi::c_void, languageindependentpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match MenuItem_Impl::LanguageIndependentPath(this) { Ok(ok__) => { @@ -3334,17 +2524,11 @@ impl MenuItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: MenuItem_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); MenuItem_Impl::Execute(this).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: MenuItem_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match MenuItem_Impl::Enabled(this) { Ok(ok__) => { @@ -3380,14 +2564,8 @@ pub trait Node_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Node {} #[cfg(feature = "Win32_System_Com")] impl Node_Vtbl { - pub const fn new() -> Node_Vtbl - where - Identity: Node_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Node_Impl, - { + pub const fn new() -> Node_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Node_Impl::Name(this) { Ok(ok__) => { @@ -3397,10 +2575,7 @@ impl Node_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Node_Impl, - { + unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Node_Impl::get_Property(this, core::mem::transmute(&propertyname)) { Ok(ok__) => { @@ -3410,10 +2585,7 @@ impl Node_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Bookmark(this: *mut core::ffi::c_void, bookmark: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Node_Impl, - { + unsafe extern "system" fn Bookmark(this: *mut core::ffi::c_void, bookmark: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Node_Impl::Bookmark(this) { Ok(ok__) => { @@ -3423,10 +2595,7 @@ impl Node_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsScopeNode(this: *mut core::ffi::c_void, isscopenode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: Node_Impl, - { + unsafe extern "system" fn IsScopeNode(this: *mut core::ffi::c_void, isscopenode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Node_Impl::IsScopeNode(this) { Ok(ok__) => { @@ -3436,10 +2605,7 @@ impl Node_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Nodetype(this: *mut core::ffi::c_void, nodetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Node_Impl, - { + unsafe extern "system" fn Nodetype(this: *mut core::ffi::c_void, nodetype: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Node_Impl::Nodetype(this) { Ok(ok__) => { @@ -3472,14 +2638,8 @@ pub trait Nodes_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Nodes {} #[cfg(feature = "Win32_System_Com")] impl Nodes_Vtbl { - pub const fn new() -> Nodes_Vtbl - where - Identity: Nodes_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Nodes_Impl, - { + pub const fn new() -> Nodes_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Nodes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3489,10 +2649,7 @@ impl Nodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, node: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Nodes_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, node: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Nodes_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3502,10 +2659,7 @@ impl Nodes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: Nodes_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Nodes_Impl::Count(this) { Ok(ok__) => { @@ -3537,14 +2691,8 @@ pub trait Properties_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Properties {} #[cfg(feature = "Win32_System_Com")] impl Properties_Vtbl { - pub const fn new() -> Properties_Vtbl - where - Identity: Properties_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Properties_Impl, - { + pub const fn new() -> Properties_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Properties_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3554,10 +2702,7 @@ impl Properties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, property: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Properties_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, property: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Properties_Impl::Item(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -3567,10 +2712,7 @@ impl Properties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: Properties_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Properties_Impl::Count(this) { Ok(ok__) => { @@ -3580,10 +2722,7 @@ impl Properties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Properties_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Properties_Impl::Remove(this, core::mem::transmute(&name)).into() } @@ -3609,14 +2748,8 @@ pub trait Property_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Property {} #[cfg(feature = "Win32_System_Com")] impl Property_Vtbl { - pub const fn new() -> Property_Vtbl - where - Identity: Property_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Property_Impl, - { + pub const fn new() -> Property_Vtbl { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Property_Impl::Value(this) { Ok(ok__) => { @@ -3626,17 +2759,11 @@ impl Property_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Property_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Property_Impl::SetValue(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Property_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Property_Impl::Name(this) { Ok(ok__) => { @@ -3669,14 +2796,8 @@ pub trait ScopeNamespace_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ScopeNamespace {} #[cfg(feature = "Win32_System_Com")] impl ScopeNamespace_Vtbl { - pub const fn new() -> ScopeNamespace_Vtbl - where - Identity: ScopeNamespace_Impl, - { - unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ScopeNamespace_Impl, - { + pub const fn new() -> ScopeNamespace_Vtbl { + unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ScopeNamespace_Impl::GetParent(this, windows_core::from_raw_borrowed(&node)) { Ok(ok__) => { @@ -3686,10 +2807,7 @@ impl ScopeNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChild(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, child: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ScopeNamespace_Impl, - { + unsafe extern "system" fn GetChild(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, child: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ScopeNamespace_Impl::GetChild(this, windows_core::from_raw_borrowed(&node)) { Ok(ok__) => { @@ -3699,10 +2817,7 @@ impl ScopeNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, next: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ScopeNamespace_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, next: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ScopeNamespace_Impl::GetNext(this, windows_core::from_raw_borrowed(&node)) { Ok(ok__) => { @@ -3712,10 +2827,7 @@ impl ScopeNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRoot(this: *mut core::ffi::c_void, root: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ScopeNamespace_Impl, - { + unsafe extern "system" fn GetRoot(this: *mut core::ffi::c_void, root: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ScopeNamespace_Impl::GetRoot(this) { Ok(ok__) => { @@ -3725,10 +2837,7 @@ impl ScopeNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ScopeNamespace_Impl, - { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ScopeNamespace_Impl::Expand(this, windows_core::from_raw_borrowed(&node)).into() } @@ -3759,14 +2868,8 @@ pub trait SnapIn_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for SnapIn {} #[cfg(feature = "Win32_System_Com")] impl SnapIn_Vtbl { - pub const fn new() -> SnapIn_Vtbl - where - Identity: SnapIn_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: SnapIn_Impl, - { + pub const fn new() -> SnapIn_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SnapIn_Impl::Name(this) { Ok(ok__) => { @@ -3776,10 +2879,7 @@ impl SnapIn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Vendor(this: *mut core::ffi::c_void, vendor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: SnapIn_Impl, - { + unsafe extern "system" fn Vendor(this: *mut core::ffi::c_void, vendor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SnapIn_Impl::Vendor(this) { Ok(ok__) => { @@ -3789,10 +2889,7 @@ impl SnapIn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, version: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: SnapIn_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, version: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SnapIn_Impl::Version(this) { Ok(ok__) => { @@ -3802,10 +2899,7 @@ impl SnapIn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Extensions(this: *mut core::ffi::c_void, extensions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: SnapIn_Impl, - { + unsafe extern "system" fn Extensions(this: *mut core::ffi::c_void, extensions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SnapIn_Impl::Extensions(this) { Ok(ok__) => { @@ -3815,10 +2909,7 @@ impl SnapIn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SnapinCLSID(this: *mut core::ffi::c_void, snapinclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: SnapIn_Impl, - { + unsafe extern "system" fn SnapinCLSID(this: *mut core::ffi::c_void, snapinclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SnapIn_Impl::SnapinCLSID(this) { Ok(ok__) => { @@ -3828,10 +2919,7 @@ impl SnapIn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: SnapIn_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SnapIn_Impl::Properties(this) { Ok(ok__) => { @@ -3841,10 +2929,7 @@ impl SnapIn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableAllExtensions(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: SnapIn_Impl, - { + unsafe extern "system" fn EnableAllExtensions(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); SnapIn_Impl::EnableAllExtensions(this, core::mem::transmute_copy(&enable)).into() } @@ -3875,14 +2960,8 @@ pub trait SnapIns_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for SnapIns {} #[cfg(feature = "Win32_System_Com")] impl SnapIns_Vtbl { - pub const fn new() -> SnapIns_Vtbl - where - Identity: SnapIns_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: SnapIns_Impl, - { + pub const fn new() -> SnapIns_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SnapIns_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3892,10 +2971,7 @@ impl SnapIns_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, snapin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: SnapIns_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, snapin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SnapIns_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3905,10 +2981,7 @@ impl SnapIns_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: SnapIns_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SnapIns_Impl::Count(this) { Ok(ok__) => { @@ -3918,10 +2991,7 @@ impl SnapIns_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, snapinnameorclsid: core::mem::MaybeUninit, parentsnapin: core::mem::MaybeUninit, properties: core::mem::MaybeUninit, snapin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: SnapIns_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, snapinnameorclsid: core::mem::MaybeUninit, parentsnapin: core::mem::MaybeUninit, properties: core::mem::MaybeUninit, snapin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match SnapIns_Impl::Add(this, core::mem::transmute(&snapinnameorclsid), core::mem::transmute(&parentsnapin), core::mem::transmute(&properties)) { Ok(ok__) => { @@ -3931,10 +3001,7 @@ impl SnapIns_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, snapin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: SnapIns_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, snapin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); SnapIns_Impl::Remove(this, windows_core::from_raw_borrowed(&snapin)).into() } @@ -4000,14 +3067,8 @@ pub trait View_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for View {} #[cfg(feature = "Win32_System_Com")] impl View_Vtbl { - pub const fn new() -> View_Vtbl - where - Identity: View_Impl, - { - unsafe extern "system" fn ActiveScopeNode(this: *mut core::ffi::c_void, node: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + pub const fn new() -> View_Vtbl { + unsafe extern "system" fn ActiveScopeNode(this: *mut core::ffi::c_void, node: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::ActiveScopeNode(this) { Ok(ok__) => { @@ -4017,17 +3078,11 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActiveScopeNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn SetActiveScopeNode(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::SetActiveScopeNode(this, windows_core::from_raw_borrowed(&node)).into() } - unsafe extern "system" fn Selection(this: *mut core::ffi::c_void, nodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Selection(this: *mut core::ffi::c_void, nodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::Selection(this) { Ok(ok__) => { @@ -4037,10 +3092,7 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ListItems(this: *mut core::ffi::c_void, nodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn ListItems(this: *mut core::ffi::c_void, nodes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::ListItems(this) { Ok(ok__) => { @@ -4050,10 +3102,7 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SnapinScopeObject(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit, scopenodeobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn SnapinScopeObject(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit, scopenodeobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::SnapinScopeObject(this, core::mem::transmute(&scopenode)) { Ok(ok__) => { @@ -4063,10 +3112,7 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SnapinSelectionObject(this: *mut core::ffi::c_void, selectionobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn SnapinSelectionObject(this: *mut core::ffi::c_void, selectionobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::SnapinSelectionObject(this) { Ok(ok__) => { @@ -4076,10 +3122,7 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Is(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void, thesame: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Is(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void, thesame: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::Is(this, windows_core::from_raw_borrowed(&view)) { Ok(ok__) => { @@ -4089,10 +3132,7 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Document(this: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Document(this: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::Document(this) { Ok(ok__) => { @@ -4102,31 +3142,19 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn SelectAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::SelectAll(this).into() } - unsafe extern "system" fn Select(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::Select(this, windows_core::from_raw_borrowed(&node)).into() } - unsafe extern "system" fn Deselect(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Deselect(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::Deselect(this, windows_core::from_raw_borrowed(&node)).into() } - unsafe extern "system" fn IsSelected(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, isselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn IsSelected(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, isselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::IsSelected(this, windows_core::from_raw_borrowed(&node)) { Ok(ok__) => { @@ -4136,66 +3164,39 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayScopeNodePropertySheet(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn DisplayScopeNodePropertySheet(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::DisplayScopeNodePropertySheet(this, core::mem::transmute(&scopenode)).into() } - unsafe extern "system" fn DisplaySelectionPropertySheet(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn DisplaySelectionPropertySheet(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::DisplaySelectionPropertySheet(this).into() } - unsafe extern "system" fn CopyScopeNode(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn CopyScopeNode(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::CopyScopeNode(this, core::mem::transmute(&scopenode)).into() } - unsafe extern "system" fn CopySelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn CopySelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::CopySelection(this).into() } - unsafe extern "system" fn DeleteScopeNode(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn DeleteScopeNode(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::DeleteScopeNode(this, core::mem::transmute(&scopenode)).into() } - unsafe extern "system" fn DeleteSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn DeleteSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::DeleteSelection(this).into() } - unsafe extern "system" fn RenameScopeNode(this: *mut core::ffi::c_void, newname: core::mem::MaybeUninit, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn RenameScopeNode(this: *mut core::ffi::c_void, newname: core::mem::MaybeUninit, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::RenameScopeNode(this, core::mem::transmute(&newname), core::mem::transmute(&scopenode)).into() } - unsafe extern "system" fn RenameSelectedItem(this: *mut core::ffi::c_void, newname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn RenameSelectedItem(this: *mut core::ffi::c_void, newname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::RenameSelectedItem(this, core::mem::transmute(&newname)).into() } - unsafe extern "system" fn get_ScopeNodeContextMenu(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit, contextmenu: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn get_ScopeNodeContextMenu(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit, contextmenu: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::get_ScopeNodeContextMenu(this, core::mem::transmute(&scopenode)) { Ok(ok__) => { @@ -4205,10 +3206,7 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectionContextMenu(this: *mut core::ffi::c_void, contextmenu: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn SelectionContextMenu(this: *mut core::ffi::c_void, contextmenu: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::SelectionContextMenu(this) { Ok(ok__) => { @@ -4218,45 +3216,27 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RefreshScopeNode(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn RefreshScopeNode(this: *mut core::ffi::c_void, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::RefreshScopeNode(this, core::mem::transmute(&scopenode)).into() } - unsafe extern "system" fn RefreshSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn RefreshSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::RefreshSelection(this).into() } - unsafe extern "system" fn ExecuteSelectionMenuItem(this: *mut core::ffi::c_void, menuitempath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn ExecuteSelectionMenuItem(this: *mut core::ffi::c_void, menuitempath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::ExecuteSelectionMenuItem(this, core::mem::transmute(&menuitempath)).into() } - unsafe extern "system" fn ExecuteScopeNodeMenuItem(this: *mut core::ffi::c_void, menuitempath: core::mem::MaybeUninit, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn ExecuteScopeNodeMenuItem(this: *mut core::ffi::c_void, menuitempath: core::mem::MaybeUninit, scopenode: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::ExecuteScopeNodeMenuItem(this, core::mem::transmute(&menuitempath), core::mem::transmute(&scopenode)).into() } - unsafe extern "system" fn ExecuteShellCommand(this: *mut core::ffi::c_void, command: core::mem::MaybeUninit, directory: core::mem::MaybeUninit, parameters: core::mem::MaybeUninit, windowstate: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn ExecuteShellCommand(this: *mut core::ffi::c_void, command: core::mem::MaybeUninit, directory: core::mem::MaybeUninit, parameters: core::mem::MaybeUninit, windowstate: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::ExecuteShellCommand(this, core::mem::transmute(&command), core::mem::transmute(&directory), core::mem::transmute(¶meters), core::mem::transmute(&windowstate)).into() } - unsafe extern "system" fn Frame(this: *mut core::ffi::c_void, frame: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Frame(this: *mut core::ffi::c_void, frame: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::Frame(this) { Ok(ok__) => { @@ -4266,17 +3246,11 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::Close(this).into() } - unsafe extern "system" fn ScopeTreeVisible(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn ScopeTreeVisible(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::ScopeTreeVisible(this) { Ok(ok__) => { @@ -4286,38 +3260,23 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScopeTreeVisible(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn SetScopeTreeVisible(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::SetScopeTreeVisible(this, core::mem::transmute_copy(&visible)).into() } - unsafe extern "system" fn Back(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Back(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::Back(this).into() } - unsafe extern "system" fn Forward(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Forward(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::Forward(this).into() } - unsafe extern "system" fn SetStatusBarText(this: *mut core::ffi::c_void, statusbartext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn SetStatusBarText(this: *mut core::ffi::c_void, statusbartext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::SetStatusBarText(this, core::mem::transmute(&statusbartext)).into() } - unsafe extern "system" fn Memento(this: *mut core::ffi::c_void, memento: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Memento(this: *mut core::ffi::c_void, memento: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::Memento(this) { Ok(ok__) => { @@ -4327,17 +3286,11 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ViewMemento(this: *mut core::ffi::c_void, memento: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn ViewMemento(this: *mut core::ffi::c_void, memento: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::ViewMemento(this, core::mem::transmute(&memento)).into() } - unsafe extern "system" fn Columns(this: *mut core::ffi::c_void, columns: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn Columns(this: *mut core::ffi::c_void, columns: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::Columns(this) { Ok(ok__) => { @@ -4347,10 +3300,7 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_CellContents(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, column: i32, cellcontents: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn get_CellContents(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, column: i32, cellcontents: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::get_CellContents(this, windows_core::from_raw_borrowed(&node), core::mem::transmute_copy(&column)) { Ok(ok__) => { @@ -4360,17 +3310,11 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExportList(this: *mut core::ffi::c_void, file: core::mem::MaybeUninit, exportoptions: _ExportListOptions) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn ExportList(this: *mut core::ffi::c_void, file: core::mem::MaybeUninit, exportoptions: _ExportListOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::ExportList(this, core::mem::transmute(&file), core::mem::transmute_copy(&exportoptions)).into() } - unsafe extern "system" fn ListViewMode(this: *mut core::ffi::c_void, mode: *mut _ListViewMode) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn ListViewMode(this: *mut core::ffi::c_void, mode: *mut _ListViewMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::ListViewMode(this) { Ok(ok__) => { @@ -4380,17 +3324,11 @@ impl View_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListViewMode(this: *mut core::ffi::c_void, mode: _ListViewMode) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn SetListViewMode(this: *mut core::ffi::c_void, mode: _ListViewMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::SetListViewMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn ControlObject(this: *mut core::ffi::c_void, control: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: View_Impl, - { + unsafe extern "system" fn ControlObject(this: *mut core::ffi::c_void, control: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::ControlObject(this) { Ok(ok__) => { @@ -4461,14 +3399,8 @@ pub trait Views_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for Views {} #[cfg(feature = "Win32_System_Com")] impl Views_Vtbl { - pub const fn new() -> Views_Vtbl - where - Identity: Views_Impl, - { - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, view: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Views_Impl, - { + pub const fn new() -> Views_Vtbl { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, view: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Views_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -4478,10 +3410,7 @@ impl Views_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: Views_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Views_Impl::Count(this) { Ok(ok__) => { @@ -4491,17 +3420,11 @@ impl Views_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, viewoptions: _ViewOptions) -> windows_core::HRESULT - where - Identity: Views_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, viewoptions: _ViewOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Views_Impl::Add(this, windows_core::from_raw_borrowed(&node), core::mem::transmute_copy(&viewoptions)).into() } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Views_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Views_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4542,91 +3465,52 @@ pub trait _AppEvents_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for _AppEvents {} #[cfg(feature = "Win32_System_Com")] impl _AppEvents_Vtbl { - pub const fn new() -> _AppEvents_Vtbl - where - Identity: _AppEvents_Impl, - { - unsafe extern "system" fn OnQuit(this: *mut core::ffi::c_void, application: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + pub const fn new() -> _AppEvents_Vtbl { + unsafe extern "system" fn OnQuit(this: *mut core::ffi::c_void, application: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnQuit(this, windows_core::from_raw_borrowed(&application)).into() } - unsafe extern "system" fn OnDocumentOpen(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void, new: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnDocumentOpen(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void, new: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnDocumentOpen(this, windows_core::from_raw_borrowed(&document), core::mem::transmute_copy(&new)).into() } - unsafe extern "system" fn OnDocumentClose(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnDocumentClose(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnDocumentClose(this, windows_core::from_raw_borrowed(&document)).into() } - unsafe extern "system" fn OnSnapInAdded(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void, snapin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnSnapInAdded(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void, snapin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnSnapInAdded(this, windows_core::from_raw_borrowed(&document), windows_core::from_raw_borrowed(&snapin)).into() } - unsafe extern "system" fn OnSnapInRemoved(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void, snapin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnSnapInRemoved(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void, snapin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnSnapInRemoved(this, windows_core::from_raw_borrowed(&document), windows_core::from_raw_borrowed(&snapin)).into() } - unsafe extern "system" fn OnNewView(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnNewView(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnNewView(this, windows_core::from_raw_borrowed(&view)).into() } - unsafe extern "system" fn OnViewClose(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnViewClose(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnViewClose(this, windows_core::from_raw_borrowed(&view)).into() } - unsafe extern "system" fn OnViewChange(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void, newownernode: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnViewChange(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void, newownernode: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnViewChange(this, windows_core::from_raw_borrowed(&view), windows_core::from_raw_borrowed(&newownernode)).into() } - unsafe extern "system" fn OnSelectionChange(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void, newnodes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnSelectionChange(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void, newnodes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnSelectionChange(this, windows_core::from_raw_borrowed(&view), windows_core::from_raw_borrowed(&newnodes)).into() } - unsafe extern "system" fn OnContextMenuExecuted(this: *mut core::ffi::c_void, menuitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnContextMenuExecuted(this: *mut core::ffi::c_void, menuitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnContextMenuExecuted(this, windows_core::from_raw_borrowed(&menuitem)).into() } - unsafe extern "system" fn OnToolbarButtonClicked(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnToolbarButtonClicked(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnToolbarButtonClicked(this).into() } - unsafe extern "system" fn OnListUpdated(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _AppEvents_Impl, - { + unsafe extern "system" fn OnListUpdated(this: *mut core::ffi::c_void, view: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnListUpdated(this, windows_core::from_raw_borrowed(&view)).into() } @@ -4669,28 +3553,16 @@ pub trait _Application_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for _Application {} #[cfg(feature = "Win32_System_Com")] impl _Application_Vtbl { - pub const fn new() -> _Application_Vtbl - where - Identity: _Application_Impl, - { - unsafe extern "system" fn Help(this: *mut core::ffi::c_void) - where - Identity: _Application_Impl, - { + pub const fn new() -> _Application_Vtbl { + unsafe extern "system" fn Help(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _Application_Impl::Help(this) } - unsafe extern "system" fn Quit(this: *mut core::ffi::c_void) - where - Identity: _Application_Impl, - { + unsafe extern "system" fn Quit(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _Application_Impl::Quit(this) } - unsafe extern "system" fn Document(this: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _Application_Impl, - { + unsafe extern "system" fn Document(this: *mut core::ffi::c_void, document: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _Application_Impl::Document(this) { Ok(ok__) => { @@ -4700,17 +3572,11 @@ impl _Application_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _Application_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _Application_Impl::Load(this, core::mem::transmute(&filename)).into() } - unsafe extern "system" fn Frame(this: *mut core::ffi::c_void, frame: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _Application_Impl, - { + unsafe extern "system" fn Frame(this: *mut core::ffi::c_void, frame: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _Application_Impl::Frame(this) { Ok(ok__) => { @@ -4720,10 +3586,7 @@ impl _Application_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: _Application_Impl, - { + unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _Application_Impl::Visible(this) { Ok(ok__) => { @@ -4733,24 +3596,15 @@ impl _Application_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _Application_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _Application_Impl::Show(this).into() } - unsafe extern "system" fn Hide(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _Application_Impl, - { + unsafe extern "system" fn Hide(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _Application_Impl::Hide(this).into() } - unsafe extern "system" fn UserControl(this: *mut core::ffi::c_void, usercontrol: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: _Application_Impl, - { + unsafe extern "system" fn UserControl(this: *mut core::ffi::c_void, usercontrol: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _Application_Impl::UserControl(this) { Ok(ok__) => { @@ -4760,17 +3614,11 @@ impl _Application_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUserControl(this: *mut core::ffi::c_void, usercontrol: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: _Application_Impl, - { + unsafe extern "system" fn SetUserControl(this: *mut core::ffi::c_void, usercontrol: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _Application_Impl::SetUserControl(this, core::mem::transmute_copy(&usercontrol)).into() } - unsafe extern "system" fn VersionMajor(this: *mut core::ffi::c_void, versionmajor: *mut i32) -> windows_core::HRESULT - where - Identity: _Application_Impl, - { + unsafe extern "system" fn VersionMajor(this: *mut core::ffi::c_void, versionmajor: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _Application_Impl::VersionMajor(this) { Ok(ok__) => { @@ -4780,10 +3628,7 @@ impl _Application_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VersionMinor(this: *mut core::ffi::c_void, versionminor: *mut i32) -> windows_core::HRESULT - where - Identity: _Application_Impl, - { + unsafe extern "system" fn VersionMinor(this: *mut core::ffi::c_void, versionminor: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _Application_Impl::VersionMinor(this) { Ok(ok__) => { @@ -4822,21 +3667,12 @@ pub trait _EventConnector_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for _EventConnector {} #[cfg(feature = "Win32_System_Com")] impl _EventConnector_Vtbl { - pub const fn new() -> _EventConnector_Vtbl - where - Identity: _EventConnector_Impl, - { - unsafe extern "system" fn ConnectTo(this: *mut core::ffi::c_void, application: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _EventConnector_Impl, - { + pub const fn new() -> _EventConnector_Vtbl { + unsafe extern "system" fn ConnectTo(this: *mut core::ffi::c_void, application: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _EventConnector_Impl::ConnectTo(this, windows_core::from_raw_borrowed(&application)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _EventConnector_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _EventConnector_Impl::Disconnect(this).into() } 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 c754fb0cf2..3f6a32905e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs @@ -6,14 +6,8 @@ pub trait IAdviseSinkEx_Impl: Sized + super::Com::IAdviseSink_Impl { impl windows_core::RuntimeName for IAdviseSinkEx {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl IAdviseSinkEx_Vtbl { - pub const fn new() -> IAdviseSinkEx_Vtbl - where - Identity: IAdviseSinkEx_Impl, - { - unsafe extern "system" fn OnViewStatusChange(this: *mut core::ffi::c_void, dwviewstatus: u32) - where - Identity: IAdviseSinkEx_Impl, - { + pub const fn new() -> IAdviseSinkEx_Vtbl { + unsafe extern "system" fn OnViewStatusChange(this: *mut core::ffi::c_void, dwviewstatus: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAdviseSinkEx_Impl::OnViewStatusChange(this, core::mem::transmute_copy(&dwviewstatus)) } @@ -24,21 +18,15 @@ impl IAdviseSinkEx_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICanHandleException_Impl: Sized { +pub trait ICanHandleException_Impl: Sized + windows_core::IUnknownImpl { fn CanHandleException(&self, pexcepinfo: *const super::Com::EXCEPINFO, pvar: *const windows_core::VARIANT) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ICanHandleException {} #[cfg(feature = "Win32_System_Com")] impl ICanHandleException_Vtbl { - pub const fn new() -> ICanHandleException_Vtbl - where - Identity: ICanHandleException_Impl, - { - unsafe extern "system" fn CanHandleException(this: *mut core::ffi::c_void, pexcepinfo: *const super::Com::EXCEPINFO, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICanHandleException_Impl, - { + pub const fn new() -> ICanHandleException_Vtbl { + unsafe extern "system" fn CanHandleException(this: *mut core::ffi::c_void, pexcepinfo: *const super::Com::EXCEPINFO, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICanHandleException_Impl::CanHandleException(this, core::mem::transmute_copy(&pexcepinfo), core::mem::transmute_copy(&pvar)).into() } @@ -58,21 +46,12 @@ pub trait IClassFactory2_Impl: Sized + super::Com::IClassFactory_Impl { impl windows_core::RuntimeName for IClassFactory2 {} #[cfg(feature = "Win32_System_Com")] impl IClassFactory2_Vtbl { - pub const fn new() -> IClassFactory2_Vtbl - where - Identity: IClassFactory2_Impl, - { - unsafe extern "system" fn GetLicInfo(this: *mut core::ffi::c_void, plicinfo: *mut LICINFO) -> windows_core::HRESULT - where - Identity: IClassFactory2_Impl, - { + pub const fn new() -> IClassFactory2_Vtbl { + unsafe extern "system" fn GetLicInfo(this: *mut core::ffi::c_void, plicinfo: *mut LICINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClassFactory2_Impl::GetLicInfo(this, core::mem::transmute_copy(&plicinfo)).into() } - unsafe extern "system" fn RequestLicKey(this: *mut core::ffi::c_void, dwreserved: u32, pbstrkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IClassFactory2_Impl, - { + unsafe extern "system" fn RequestLicKey(this: *mut core::ffi::c_void, dwreserved: u32, pbstrkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IClassFactory2_Impl::RequestLicKey(this, core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -82,10 +61,7 @@ impl IClassFactory2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstanceLic(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::MaybeUninit, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IClassFactory2_Impl, - { + unsafe extern "system" fn CreateInstanceLic(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::MaybeUninit, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClassFactory2_Impl::CreateInstanceLic(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute(&punkreserved), core::mem::transmute_copy(&riid), core::mem::transmute(&bstrkey), core::mem::transmute_copy(&ppvobj)).into() } @@ -100,19 +76,13 @@ impl IClassFactory2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IContinue_Impl: Sized { +pub trait IContinue_Impl: Sized + windows_core::IUnknownImpl { fn FContinue(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IContinue {} impl IContinue_Vtbl { - pub const fn new() -> IContinue_Vtbl - where - Identity: IContinue_Impl, - { - unsafe extern "system" fn FContinue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContinue_Impl, - { + pub const fn new() -> IContinue_Vtbl { + unsafe extern "system" fn FContinue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContinue_Impl::FContinue(this).into() } @@ -122,27 +92,18 @@ impl IContinue_Vtbl { iid == &::IID } } -pub trait IContinueCallback_Impl: Sized { +pub trait IContinueCallback_Impl: Sized + windows_core::IUnknownImpl { fn FContinue(&self) -> windows_core::Result<()>; fn FContinuePrinting(&self, ncntprinted: i32, ncurpage: i32, pwszprintstatus: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IContinueCallback {} impl IContinueCallback_Vtbl { - pub const fn new() -> IContinueCallback_Vtbl - where - Identity: IContinueCallback_Impl, - { - unsafe extern "system" fn FContinue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IContinueCallback_Impl, - { + pub const fn new() -> IContinueCallback_Vtbl { + unsafe extern "system" fn FContinue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContinueCallback_Impl::FContinue(this).into() } - unsafe extern "system" fn FContinuePrinting(this: *mut core::ffi::c_void, ncntprinted: i32, ncurpage: i32, pwszprintstatus: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IContinueCallback_Impl, - { + unsafe extern "system" fn FContinuePrinting(this: *mut core::ffi::c_void, ncntprinted: i32, ncurpage: i32, pwszprintstatus: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContinueCallback_Impl::FContinuePrinting(this, core::mem::transmute_copy(&ncntprinted), core::mem::transmute_copy(&ncurpage), core::mem::transmute(&pwszprintstatus)).into() } @@ -156,7 +117,7 @@ impl IContinueCallback_Vtbl { iid == &::IID } } -pub trait ICreateErrorInfo_Impl: Sized { +pub trait ICreateErrorInfo_Impl: Sized + windows_core::IUnknownImpl { fn SetGUID(&self, rguid: *const windows_core::GUID) -> windows_core::Result<()>; fn SetSource(&self, szsource: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetDescription(&self, szdescription: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -165,42 +126,24 @@ pub trait ICreateErrorInfo_Impl: Sized { } impl windows_core::RuntimeName for ICreateErrorInfo {} impl ICreateErrorInfo_Vtbl { - pub const fn new() -> ICreateErrorInfo_Vtbl - where - Identity: ICreateErrorInfo_Impl, - { - unsafe extern "system" fn SetGUID(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICreateErrorInfo_Impl, - { + pub const fn new() -> ICreateErrorInfo_Vtbl { + unsafe extern "system" fn SetGUID(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateErrorInfo_Impl::SetGUID(this, core::mem::transmute_copy(&rguid)).into() } - unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, szsource: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateErrorInfo_Impl, - { + unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, szsource: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateErrorInfo_Impl::SetSource(this, core::mem::transmute(&szsource)).into() } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, szdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateErrorInfo_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, szdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateErrorInfo_Impl::SetDescription(this, core::mem::transmute(&szdescription)).into() } - unsafe extern "system" fn SetHelpFile(this: *mut core::ffi::c_void, szhelpfile: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateErrorInfo_Impl, - { + unsafe extern "system" fn SetHelpFile(this: *mut core::ffi::c_void, szhelpfile: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateErrorInfo_Impl::SetHelpFile(this, core::mem::transmute(&szhelpfile)).into() } - unsafe extern "system" fn SetHelpContext(this: *mut core::ffi::c_void, dwhelpcontext: u32) -> windows_core::HRESULT - where - Identity: ICreateErrorInfo_Impl, - { + unsafe extern "system" fn SetHelpContext(this: *mut core::ffi::c_void, dwhelpcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateErrorInfo_Impl::SetHelpContext(this, core::mem::transmute_copy(&dwhelpcontext)).into() } @@ -218,7 +161,7 @@ impl ICreateErrorInfo_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] -pub trait ICreateTypeInfo_Impl: Sized { +pub trait ICreateTypeInfo_Impl: Sized + windows_core::IUnknownImpl { fn SetGuid(&self, guid: *const windows_core::GUID) -> windows_core::Result<()>; fn SetTypeFlags(&self, utypeflags: u32) -> windows_core::Result<()>; fn SetDocString(&self, pstrdoc: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -247,168 +190,96 @@ pub trait ICreateTypeInfo_Impl: Sized { impl windows_core::RuntimeName for ICreateTypeInfo {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] impl ICreateTypeInfo_Vtbl { - pub const fn new() -> ICreateTypeInfo_Vtbl - where - Identity: ICreateTypeInfo_Impl, - { - unsafe extern "system" fn SetGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + pub const fn new() -> ICreateTypeInfo_Vtbl { + unsafe extern "system" fn SetGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetGuid(this, core::mem::transmute_copy(&guid)).into() } - unsafe extern "system" fn SetTypeFlags(this: *mut core::ffi::c_void, utypeflags: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetTypeFlags(this: *mut core::ffi::c_void, utypeflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetTypeFlags(this, core::mem::transmute_copy(&utypeflags)).into() } - unsafe extern "system" fn SetDocString(this: *mut core::ffi::c_void, pstrdoc: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetDocString(this: *mut core::ffi::c_void, pstrdoc: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetDocString(this, core::mem::transmute(&pstrdoc)).into() } - unsafe extern "system" fn SetHelpContext(this: *mut core::ffi::c_void, dwhelpcontext: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetHelpContext(this: *mut core::ffi::c_void, dwhelpcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetHelpContext(this, core::mem::transmute_copy(&dwhelpcontext)).into() } - unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, wmajorvernum: u16, wminorvernum: u16) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, wmajorvernum: u16, wminorvernum: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetVersion(this, core::mem::transmute_copy(&wmajorvernum), core::mem::transmute_copy(&wminorvernum)).into() } - unsafe extern "system" fn AddRefTypeInfo(this: *mut core::ffi::c_void, ptinfo: *mut core::ffi::c_void, phreftype: *const u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn AddRefTypeInfo(this: *mut core::ffi::c_void, ptinfo: *mut core::ffi::c_void, phreftype: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::AddRefTypeInfo(this, windows_core::from_raw_borrowed(&ptinfo), core::mem::transmute_copy(&phreftype)).into() } - unsafe extern "system" fn AddFuncDesc(this: *mut core::ffi::c_void, index: u32, pfuncdesc: *const super::Com::FUNCDESC) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn AddFuncDesc(this: *mut core::ffi::c_void, index: u32, pfuncdesc: *const super::Com::FUNCDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::AddFuncDesc(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pfuncdesc)).into() } - unsafe extern "system" fn AddImplType(this: *mut core::ffi::c_void, index: u32, hreftype: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn AddImplType(this: *mut core::ffi::c_void, index: u32, hreftype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::AddImplType(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&hreftype)).into() } - unsafe extern "system" fn SetImplTypeFlags(this: *mut core::ffi::c_void, index: u32, impltypeflags: super::Com::IMPLTYPEFLAGS) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetImplTypeFlags(this: *mut core::ffi::c_void, index: u32, impltypeflags: super::Com::IMPLTYPEFLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetImplTypeFlags(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&impltypeflags)).into() } - unsafe extern "system" fn SetAlignment(this: *mut core::ffi::c_void, cbalignment: u16) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetAlignment(this: *mut core::ffi::c_void, cbalignment: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetAlignment(this, core::mem::transmute_copy(&cbalignment)).into() } - unsafe extern "system" fn SetSchema(this: *mut core::ffi::c_void, pstrschema: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetSchema(this: *mut core::ffi::c_void, pstrschema: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetSchema(this, core::mem::transmute(&pstrschema)).into() } - unsafe extern "system" fn AddVarDesc(this: *mut core::ffi::c_void, index: u32, pvardesc: *const super::Com::VARDESC) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn AddVarDesc(this: *mut core::ffi::c_void, index: u32, pvardesc: *const super::Com::VARDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::AddVarDesc(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pvardesc)).into() } - unsafe extern "system" fn SetFuncAndParamNames(this: *mut core::ffi::c_void, index: u32, rgsznames: *const windows_core::PCWSTR, cnames: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetFuncAndParamNames(this: *mut core::ffi::c_void, index: u32, rgsznames: *const windows_core::PCWSTR, cnames: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetFuncAndParamNames(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&rgsznames), core::mem::transmute_copy(&cnames)).into() } - unsafe extern "system" fn SetVarName(this: *mut core::ffi::c_void, index: u32, szname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetVarName(this: *mut core::ffi::c_void, index: u32, szname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetVarName(this, core::mem::transmute_copy(&index), core::mem::transmute(&szname)).into() } - unsafe extern "system" fn SetTypeDescAlias(this: *mut core::ffi::c_void, ptdescalias: *const super::Com::TYPEDESC) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetTypeDescAlias(this: *mut core::ffi::c_void, ptdescalias: *const super::Com::TYPEDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetTypeDescAlias(this, core::mem::transmute_copy(&ptdescalias)).into() } - unsafe extern "system" fn DefineFuncAsDllEntry(this: *mut core::ffi::c_void, index: u32, szdllname: windows_core::PCWSTR, szprocname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn DefineFuncAsDllEntry(this: *mut core::ffi::c_void, index: u32, szdllname: windows_core::PCWSTR, szprocname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::DefineFuncAsDllEntry(this, core::mem::transmute_copy(&index), core::mem::transmute(&szdllname), core::mem::transmute(&szprocname)).into() } - unsafe extern "system" fn SetFuncDocString(this: *mut core::ffi::c_void, index: u32, szdocstring: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetFuncDocString(this: *mut core::ffi::c_void, index: u32, szdocstring: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetFuncDocString(this, core::mem::transmute_copy(&index), core::mem::transmute(&szdocstring)).into() } - unsafe extern "system" fn SetVarDocString(this: *mut core::ffi::c_void, index: u32, szdocstring: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetVarDocString(this: *mut core::ffi::c_void, index: u32, szdocstring: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetVarDocString(this, core::mem::transmute_copy(&index), core::mem::transmute(&szdocstring)).into() } - unsafe extern "system" fn SetFuncHelpContext(this: *mut core::ffi::c_void, index: u32, dwhelpcontext: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetFuncHelpContext(this: *mut core::ffi::c_void, index: u32, dwhelpcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetFuncHelpContext(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&dwhelpcontext)).into() } - unsafe extern "system" fn SetVarHelpContext(this: *mut core::ffi::c_void, index: u32, dwhelpcontext: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetVarHelpContext(this: *mut core::ffi::c_void, index: u32, dwhelpcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetVarHelpContext(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&dwhelpcontext)).into() } - unsafe extern "system" fn SetMops(this: *mut core::ffi::c_void, index: u32, bstrmops: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetMops(this: *mut core::ffi::c_void, index: u32, bstrmops: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetMops(this, core::mem::transmute_copy(&index), core::mem::transmute(&bstrmops)).into() } - unsafe extern "system" fn SetTypeIdldesc(this: *mut core::ffi::c_void, pidldesc: *const super::Com::IDLDESC) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn SetTypeIdldesc(this: *mut core::ffi::c_void, pidldesc: *const super::Com::IDLDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::SetTypeIdldesc(this, core::mem::transmute_copy(&pidldesc)).into() } - unsafe extern "system" fn LayOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo_Impl, - { + unsafe extern "system" fn LayOut(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo_Impl::LayOut(this).into() } @@ -465,112 +336,64 @@ pub trait ICreateTypeInfo2_Impl: Sized + ICreateTypeInfo_Impl { impl windows_core::RuntimeName for ICreateTypeInfo2 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] impl ICreateTypeInfo2_Vtbl { - pub const fn new() -> ICreateTypeInfo2_Vtbl - where - Identity: ICreateTypeInfo2_Impl, - { - unsafe extern "system" fn DeleteFuncDesc(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + pub const fn new() -> ICreateTypeInfo2_Vtbl { + unsafe extern "system" fn DeleteFuncDesc(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::DeleteFuncDesc(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn DeleteFuncDescByMemId(this: *mut core::ffi::c_void, memid: i32, invkind: super::Com::INVOKEKIND) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn DeleteFuncDescByMemId(this: *mut core::ffi::c_void, memid: i32, invkind: super::Com::INVOKEKIND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::DeleteFuncDescByMemId(this, core::mem::transmute_copy(&memid), core::mem::transmute_copy(&invkind)).into() } - unsafe extern "system" fn DeleteVarDesc(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn DeleteVarDesc(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::DeleteVarDesc(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn DeleteVarDescByMemId(this: *mut core::ffi::c_void, memid: i32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn DeleteVarDescByMemId(this: *mut core::ffi::c_void, memid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::DeleteVarDescByMemId(this, core::mem::transmute_copy(&memid)).into() } - unsafe extern "system" fn DeleteImplType(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn DeleteImplType(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::DeleteImplType(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn SetCustData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn SetCustData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::SetCustData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pvarval)).into() } - unsafe extern "system" fn SetFuncCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn SetFuncCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::SetFuncCustData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pvarval)).into() } - unsafe extern "system" fn SetParamCustData(this: *mut core::ffi::c_void, indexfunc: u32, indexparam: u32, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn SetParamCustData(this: *mut core::ffi::c_void, indexfunc: u32, indexparam: u32, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::SetParamCustData(this, core::mem::transmute_copy(&indexfunc), core::mem::transmute_copy(&indexparam), core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pvarval)).into() } - unsafe extern "system" fn SetVarCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn SetVarCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::SetVarCustData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pvarval)).into() } - unsafe extern "system" fn SetImplTypeCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn SetImplTypeCustData(this: *mut core::ffi::c_void, index: u32, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::SetImplTypeCustData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pvarval)).into() } - unsafe extern "system" fn SetHelpStringContext(this: *mut core::ffi::c_void, dwhelpstringcontext: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn SetHelpStringContext(this: *mut core::ffi::c_void, dwhelpstringcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::SetHelpStringContext(this, core::mem::transmute_copy(&dwhelpstringcontext)).into() } - unsafe extern "system" fn SetFuncHelpStringContext(this: *mut core::ffi::c_void, index: u32, dwhelpstringcontext: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn SetFuncHelpStringContext(this: *mut core::ffi::c_void, index: u32, dwhelpstringcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::SetFuncHelpStringContext(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&dwhelpstringcontext)).into() } - unsafe extern "system" fn SetVarHelpStringContext(this: *mut core::ffi::c_void, index: u32, dwhelpstringcontext: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn SetVarHelpStringContext(this: *mut core::ffi::c_void, index: u32, dwhelpstringcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::SetVarHelpStringContext(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&dwhelpstringcontext)).into() } - unsafe extern "system" fn Invalidate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn Invalidate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::Invalidate(this).into() } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeInfo2_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeInfo2_Impl::SetName(this, core::mem::transmute(&szname)).into() } @@ -598,7 +421,7 @@ impl ICreateTypeInfo2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICreateTypeLib_Impl: Sized { +pub trait ICreateTypeLib_Impl: Sized + windows_core::IUnknownImpl { fn CreateTypeInfo(&self, szname: &windows_core::PCWSTR, tkind: super::Com::TYPEKIND) -> windows_core::Result; fn SetName(&self, szname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetVersion(&self, wmajorvernum: u16, wminorvernum: u16) -> windows_core::Result<()>; @@ -614,14 +437,8 @@ pub trait ICreateTypeLib_Impl: Sized { impl windows_core::RuntimeName for ICreateTypeLib {} #[cfg(feature = "Win32_System_Com")] impl ICreateTypeLib_Vtbl { - pub const fn new() -> ICreateTypeLib_Vtbl - where - Identity: ICreateTypeLib_Impl, - { - unsafe extern "system" fn CreateTypeInfo(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, tkind: super::Com::TYPEKIND, ppctinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateTypeLib_Impl, - { + pub const fn new() -> ICreateTypeLib_Vtbl { + unsafe extern "system" fn CreateTypeInfo(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, tkind: super::Com::TYPEKIND, ppctinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICreateTypeLib_Impl::CreateTypeInfo(this, core::mem::transmute(&szname), core::mem::transmute_copy(&tkind)) { Ok(ok__) => { @@ -631,66 +448,39 @@ impl ICreateTypeLib_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeLib_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib_Impl::SetName(this, core::mem::transmute(&szname)).into() } - unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, wmajorvernum: u16, wminorvernum: u16) -> windows_core::HRESULT - where - Identity: ICreateTypeLib_Impl, - { + unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, wmajorvernum: u16, wminorvernum: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib_Impl::SetVersion(this, core::mem::transmute_copy(&wmajorvernum), core::mem::transmute_copy(&wminorvernum)).into() } - unsafe extern "system" fn SetGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICreateTypeLib_Impl, - { + unsafe extern "system" fn SetGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib_Impl::SetGuid(this, core::mem::transmute_copy(&guid)).into() } - unsafe extern "system" fn SetDocString(this: *mut core::ffi::c_void, szdoc: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeLib_Impl, - { + unsafe extern "system" fn SetDocString(this: *mut core::ffi::c_void, szdoc: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib_Impl::SetDocString(this, core::mem::transmute(&szdoc)).into() } - unsafe extern "system" fn SetHelpFileName(this: *mut core::ffi::c_void, szhelpfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeLib_Impl, - { + unsafe extern "system" fn SetHelpFileName(this: *mut core::ffi::c_void, szhelpfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib_Impl::SetHelpFileName(this, core::mem::transmute(&szhelpfilename)).into() } - unsafe extern "system" fn SetHelpContext(this: *mut core::ffi::c_void, dwhelpcontext: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeLib_Impl, - { + unsafe extern "system" fn SetHelpContext(this: *mut core::ffi::c_void, dwhelpcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib_Impl::SetHelpContext(this, core::mem::transmute_copy(&dwhelpcontext)).into() } - unsafe extern "system" fn SetLcid(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeLib_Impl, - { + unsafe extern "system" fn SetLcid(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib_Impl::SetLcid(this, core::mem::transmute_copy(&lcid)).into() } - unsafe extern "system" fn SetLibFlags(this: *mut core::ffi::c_void, ulibflags: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeLib_Impl, - { + unsafe extern "system" fn SetLibFlags(this: *mut core::ffi::c_void, ulibflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib_Impl::SetLibFlags(this, core::mem::transmute_copy(&ulibflags)).into() } - unsafe extern "system" fn SaveAllChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateTypeLib_Impl, - { + unsafe extern "system" fn SaveAllChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib_Impl::SaveAllChanges(this).into() } @@ -723,35 +513,20 @@ pub trait ICreateTypeLib2_Impl: Sized + ICreateTypeLib_Impl { impl windows_core::RuntimeName for ICreateTypeLib2 {} #[cfg(feature = "Win32_System_Com")] impl ICreateTypeLib2_Vtbl { - pub const fn new() -> ICreateTypeLib2_Vtbl - where - Identity: ICreateTypeLib2_Impl, - { - unsafe extern "system" fn DeleteTypeInfo(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeLib2_Impl, - { + pub const fn new() -> ICreateTypeLib2_Vtbl { + unsafe extern "system" fn DeleteTypeInfo(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib2_Impl::DeleteTypeInfo(this, core::mem::transmute(&szname)).into() } - unsafe extern "system" fn SetCustData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICreateTypeLib2_Impl, - { + unsafe extern "system" fn SetCustData(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, pvarval: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib2_Impl::SetCustData(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&pvarval)).into() } - unsafe extern "system" fn SetHelpStringContext(this: *mut core::ffi::c_void, dwhelpstringcontext: u32) -> windows_core::HRESULT - where - Identity: ICreateTypeLib2_Impl, - { + unsafe extern "system" fn SetHelpStringContext(this: *mut core::ffi::c_void, dwhelpstringcontext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib2_Impl::SetHelpStringContext(this, core::mem::transmute_copy(&dwhelpstringcontext)).into() } - unsafe extern "system" fn SetHelpStringDll(this: *mut core::ffi::c_void, szfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateTypeLib2_Impl, - { + unsafe extern "system" fn SetHelpStringDll(this: *mut core::ffi::c_void, szfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateTypeLib2_Impl::SetHelpStringDll(this, core::mem::transmute(&szfilename)).into() } @@ -767,7 +542,7 @@ impl ICreateTypeLib2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDispError_Impl: Sized { +pub trait IDispError_Impl: Sized + windows_core::IUnknownImpl { fn QueryErrorInfo(&self, guiderrortype: &windows_core::GUID) -> windows_core::Result; fn GetNext(&self) -> windows_core::Result; fn GetHresult(&self) -> windows_core::Result; @@ -777,14 +552,8 @@ pub trait IDispError_Impl: Sized { } impl windows_core::RuntimeName for IDispError {} impl IDispError_Vtbl { - pub const fn new() -> IDispError_Vtbl - where - Identity: IDispError_Impl, - { - unsafe extern "system" fn QueryErrorInfo(this: *mut core::ffi::c_void, guiderrortype: windows_core::GUID, ppde: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDispError_Impl, - { + pub const fn new() -> IDispError_Vtbl { + unsafe extern "system" fn QueryErrorInfo(this: *mut core::ffi::c_void, guiderrortype: windows_core::GUID, ppde: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispError_Impl::QueryErrorInfo(this, core::mem::transmute(&guiderrortype)) { Ok(ok__) => { @@ -794,10 +563,7 @@ impl IDispError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, ppde: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDispError_Impl, - { + unsafe extern "system" fn GetNext(this: *mut core::ffi::c_void, ppde: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispError_Impl::GetNext(this) { Ok(ok__) => { @@ -807,10 +573,7 @@ impl IDispError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHresult(this: *mut core::ffi::c_void, phr: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IDispError_Impl, - { + unsafe extern "system" fn GetHresult(this: *mut core::ffi::c_void, phr: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispError_Impl::GetHresult(this) { Ok(ok__) => { @@ -820,10 +583,7 @@ impl IDispError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, pbstrsource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDispError_Impl, - { + unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, pbstrsource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispError_Impl::GetSource(this) { Ok(ok__) => { @@ -833,17 +593,11 @@ impl IDispError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHelpInfo(this: *mut core::ffi::c_void, pbstrfilename: *mut core::mem::MaybeUninit, pdwcontext: *mut u32) -> windows_core::HRESULT - where - Identity: IDispError_Impl, - { + unsafe extern "system" fn GetHelpInfo(this: *mut core::ffi::c_void, pbstrfilename: *mut core::mem::MaybeUninit, pdwcontext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispError_Impl::GetHelpInfo(this, core::mem::transmute_copy(&pbstrfilename), core::mem::transmute_copy(&pdwcontext)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDispError_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispError_Impl::GetDescription(this) { Ok(ok__) => { @@ -882,14 +636,8 @@ pub trait IDispatchEx_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDispatchEx {} #[cfg(feature = "Win32_System_Com")] impl IDispatchEx_Vtbl { - pub const fn new() -> IDispatchEx_Vtbl - where - Identity: IDispatchEx_Impl, - { - unsafe extern "system" fn GetDispID(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, grfdex: u32, pid: *mut i32) -> windows_core::HRESULT - where - Identity: IDispatchEx_Impl, - { + pub const fn new() -> IDispatchEx_Vtbl { + unsafe extern "system" fn GetDispID(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, grfdex: u32, pid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispatchEx_Impl::GetDispID(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&grfdex)) { Ok(ok__) => { @@ -899,31 +647,19 @@ impl IDispatchEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InvokeEx(this: *mut core::ffi::c_void, id: i32, lcid: u32, wflags: u16, pdp: *const super::Com::DISPPARAMS, pvarres: *mut core::mem::MaybeUninit, pei: *mut super::Com::EXCEPINFO, pspcaller: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDispatchEx_Impl, - { + unsafe extern "system" fn InvokeEx(this: *mut core::ffi::c_void, id: i32, lcid: u32, wflags: u16, pdp: *const super::Com::DISPPARAMS, pvarres: *mut core::mem::MaybeUninit, pei: *mut super::Com::EXCEPINFO, pspcaller: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispatchEx_Impl::InvokeEx(this, 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), windows_core::from_raw_borrowed(&pspcaller)).into() } - unsafe extern "system" fn DeleteMemberByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, grfdex: u32) -> windows_core::HRESULT - where - Identity: IDispatchEx_Impl, - { + unsafe extern "system" fn DeleteMemberByName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, grfdex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispatchEx_Impl::DeleteMemberByName(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&grfdex)).into() } - unsafe extern "system" fn DeleteMemberByDispID(this: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT - where - Identity: IDispatchEx_Impl, - { + unsafe extern "system" fn DeleteMemberByDispID(this: *mut core::ffi::c_void, id: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispatchEx_Impl::DeleteMemberByDispID(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetMemberProperties(this: *mut core::ffi::c_void, id: i32, grfdexfetch: u32, pgrfdex: *mut FDEX_PROP_FLAGS) -> windows_core::HRESULT - where - Identity: IDispatchEx_Impl, - { + unsafe extern "system" fn GetMemberProperties(this: *mut core::ffi::c_void, id: i32, grfdexfetch: u32, pgrfdex: *mut FDEX_PROP_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispatchEx_Impl::GetMemberProperties(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&grfdexfetch)) { Ok(ok__) => { @@ -933,10 +669,7 @@ impl IDispatchEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMemberName(this: *mut core::ffi::c_void, id: i32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDispatchEx_Impl, - { + unsafe extern "system" fn GetMemberName(this: *mut core::ffi::c_void, id: i32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispatchEx_Impl::GetMemberName(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -946,10 +679,7 @@ impl IDispatchEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextDispID(this: *mut core::ffi::c_void, grfdex: u32, id: i32, pid: *mut i32) -> windows_core::HRESULT - where - Identity: IDispatchEx_Impl, - { + unsafe extern "system" fn GetNextDispID(this: *mut core::ffi::c_void, grfdex: u32, id: i32, pid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispatchEx_Impl::GetNextDispID(this, core::mem::transmute_copy(&grfdex), core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -959,10 +689,7 @@ impl IDispatchEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNameSpaceParent(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDispatchEx_Impl, - { + unsafe extern "system" fn GetNameSpaceParent(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDispatchEx_Impl::GetNameSpaceParent(this) { Ok(ok__) => { @@ -989,7 +716,7 @@ impl IDispatchEx_Vtbl { } } #[cfg(feature = "Win32_System_SystemServices")] -pub trait IDropSource_Impl: Sized { +pub trait IDropSource_Impl: Sized + windows_core::IUnknownImpl { fn QueryContinueDrag(&self, fescapepressed: super::super::Foundation::BOOL, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT; fn GiveFeedback(&self, dweffect: DROPEFFECT) -> windows_core::HRESULT; } @@ -997,21 +724,12 @@ pub trait IDropSource_Impl: Sized { impl windows_core::RuntimeName for IDropSource {} #[cfg(feature = "Win32_System_SystemServices")] impl IDropSource_Vtbl { - pub const fn new() -> IDropSource_Vtbl - where - Identity: IDropSource_Impl, - { - unsafe extern "system" fn QueryContinueDrag(this: *mut core::ffi::c_void, fescapepressed: super::super::Foundation::BOOL, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT - where - Identity: IDropSource_Impl, - { + pub const fn new() -> IDropSource_Vtbl { + unsafe extern "system" fn QueryContinueDrag(this: *mut core::ffi::c_void, fescapepressed: super::super::Foundation::BOOL, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropSource_Impl::QueryContinueDrag(this, core::mem::transmute_copy(&fescapepressed), core::mem::transmute_copy(&grfkeystate)) } - unsafe extern "system" fn GiveFeedback(this: *mut core::ffi::c_void, dweffect: DROPEFFECT) -> windows_core::HRESULT - where - Identity: IDropSource_Impl, - { + unsafe extern "system" fn GiveFeedback(this: *mut core::ffi::c_void, dweffect: DROPEFFECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropSource_Impl::GiveFeedback(this, core::mem::transmute_copy(&dweffect)) } @@ -1025,27 +743,18 @@ impl IDropSource_Vtbl { iid == &::IID } } -pub trait IDropSourceNotify_Impl: Sized { +pub trait IDropSourceNotify_Impl: Sized + windows_core::IUnknownImpl { fn DragEnterTarget(&self, hwndtarget: super::super::Foundation::HWND) -> windows_core::Result<()>; fn DragLeaveTarget(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDropSourceNotify {} impl IDropSourceNotify_Vtbl { - pub const fn new() -> IDropSourceNotify_Vtbl - where - Identity: IDropSourceNotify_Impl, - { - unsafe extern "system" fn DragEnterTarget(this: *mut core::ffi::c_void, hwndtarget: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDropSourceNotify_Impl, - { + pub const fn new() -> IDropSourceNotify_Vtbl { + unsafe extern "system" fn DragEnterTarget(this: *mut core::ffi::c_void, hwndtarget: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropSourceNotify_Impl::DragEnterTarget(this, core::mem::transmute_copy(&hwndtarget)).into() } - unsafe extern "system" fn DragLeaveTarget(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDropSourceNotify_Impl, - { + unsafe extern "system" fn DragLeaveTarget(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropSourceNotify_Impl::DragLeaveTarget(this).into() } @@ -1060,7 +769,7 @@ impl IDropSourceNotify_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] -pub trait IDropTarget_Impl: Sized { +pub trait IDropTarget_Impl: Sized + windows_core::IUnknownImpl { fn DragEnter(&self, pdataobj: Option<&super::Com::IDataObject>, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: &super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::Result<()>; fn DragOver(&self, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: &super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::Result<()>; fn DragLeave(&self) -> windows_core::Result<()>; @@ -1070,35 +779,20 @@ pub trait IDropTarget_Impl: Sized { impl windows_core::RuntimeName for IDropTarget {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] impl IDropTarget_Vtbl { - pub const fn new() -> IDropTarget_Vtbl - where - Identity: IDropTarget_Impl, - { - unsafe extern "system" fn DragEnter(this: *mut core::ffi::c_void, pdataobj: *mut core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::HRESULT - where - Identity: IDropTarget_Impl, - { + pub const fn new() -> IDropTarget_Vtbl { + unsafe extern "system" fn DragEnter(this: *mut core::ffi::c_void, pdataobj: *mut core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropTarget_Impl::DragEnter(this, windows_core::from_raw_borrowed(&pdataobj), core::mem::transmute_copy(&grfkeystate), core::mem::transmute(&pt), core::mem::transmute_copy(&pdweffect)).into() } - unsafe extern "system" fn DragOver(this: *mut core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::HRESULT - where - Identity: IDropTarget_Impl, - { + unsafe extern "system" fn DragOver(this: *mut core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropTarget_Impl::DragOver(this, core::mem::transmute_copy(&grfkeystate), core::mem::transmute(&pt), core::mem::transmute_copy(&pdweffect)).into() } - unsafe extern "system" fn DragLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDropTarget_Impl, - { + unsafe extern "system" fn DragLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropTarget_Impl::DragLeave(this).into() } - unsafe extern "system" fn Drop(this: *mut core::ffi::c_void, pdataobj: *mut core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::HRESULT - where - Identity: IDropTarget_Impl, - { + unsafe extern "system" fn Drop(this: *mut core::ffi::c_void, pdataobj: *mut core::ffi::c_void, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS, pt: super::super::Foundation::POINTL, pdweffect: *mut DROPEFFECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropTarget_Impl::Drop(this, windows_core::from_raw_borrowed(&pdataobj), core::mem::transmute_copy(&grfkeystate), core::mem::transmute(&pt), core::mem::transmute_copy(&pdweffect)).into() } @@ -1114,27 +808,18 @@ impl IDropTarget_Vtbl { iid == &::IID } } -pub trait IEnterpriseDropTarget_Impl: Sized { +pub trait IEnterpriseDropTarget_Impl: Sized + windows_core::IUnknownImpl { fn SetDropSourceEnterpriseId(&self, identity: &windows_core::PCWSTR) -> windows_core::Result<()>; fn IsEvaluatingEdpPolicy(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IEnterpriseDropTarget {} impl IEnterpriseDropTarget_Vtbl { - pub const fn new() -> IEnterpriseDropTarget_Vtbl - where - Identity: IEnterpriseDropTarget_Impl, - { - unsafe extern "system" fn SetDropSourceEnterpriseId(this: *mut core::ffi::c_void, identity: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEnterpriseDropTarget_Impl, - { + pub const fn new() -> IEnterpriseDropTarget_Vtbl { + unsafe extern "system" fn SetDropSourceEnterpriseId(this: *mut core::ffi::c_void, identity: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnterpriseDropTarget_Impl::SetDropSourceEnterpriseId(this, core::mem::transmute(&identity)).into() } - unsafe extern "system" fn IsEvaluatingEdpPolicy(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEnterpriseDropTarget_Impl, - { + unsafe extern "system" fn IsEvaluatingEdpPolicy(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnterpriseDropTarget_Impl::IsEvaluatingEdpPolicy(this) { Ok(ok__) => { @@ -1155,7 +840,7 @@ impl IEnterpriseDropTarget_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IEnumOLEVERB_Impl: Sized { +pub trait IEnumOLEVERB_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut OLEVERB, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1165,35 +850,20 @@ pub trait IEnumOLEVERB_Impl: Sized { impl windows_core::RuntimeName for IEnumOLEVERB {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IEnumOLEVERB_Vtbl { - pub const fn new() -> IEnumOLEVERB_Vtbl - where - Identity: IEnumOLEVERB_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut OLEVERB, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumOLEVERB_Impl, - { + pub const fn new() -> IEnumOLEVERB_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut OLEVERB, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOLEVERB_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumOLEVERB_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOLEVERB_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOLEVERB_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOLEVERB_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOLEVERB_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumOLEVERB_Impl::Clone(this) { Ok(ok__) => { @@ -1215,7 +885,7 @@ impl IEnumOLEVERB_Vtbl { iid == &::IID } } -pub trait IEnumOleDocumentViews_Impl: Sized { +pub trait IEnumOleDocumentViews_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cviews: u32, rgpview: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cviews: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1223,35 +893,20 @@ pub trait IEnumOleDocumentViews_Impl: Sized { } impl windows_core::RuntimeName for IEnumOleDocumentViews {} impl IEnumOleDocumentViews_Vtbl { - pub const fn new() -> IEnumOleDocumentViews_Vtbl - where - Identity: IEnumOleDocumentViews_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cviews: u32, rgpview: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumOleDocumentViews_Impl, - { + pub const fn new() -> IEnumOleDocumentViews_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cviews: u32, rgpview: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOleDocumentViews_Impl::Next(this, core::mem::transmute_copy(&cviews), core::mem::transmute_copy(&rgpview), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cviews: u32) -> windows_core::HRESULT - where - Identity: IEnumOleDocumentViews_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cviews: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOleDocumentViews_Impl::Skip(this, core::mem::transmute_copy(&cviews)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOleDocumentViews_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOleDocumentViews_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOleDocumentViews_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumOleDocumentViews_Impl::Clone(this) { Ok(ok__) => { @@ -1273,7 +928,7 @@ impl IEnumOleDocumentViews_Vtbl { iid == &::IID } } -pub trait IEnumOleUndoUnits_Impl: Sized { +pub trait IEnumOleUndoUnits_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1281,35 +936,20 @@ pub trait IEnumOleUndoUnits_Impl: Sized { } impl windows_core::RuntimeName for IEnumOleUndoUnits {} impl IEnumOleUndoUnits_Vtbl { - pub const fn new() -> IEnumOleUndoUnits_Vtbl - where - Identity: IEnumOleUndoUnits_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumOleUndoUnits_Impl, - { + pub const fn new() -> IEnumOleUndoUnits_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOleUndoUnits_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumOleUndoUnits_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOleUndoUnits_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOleUndoUnits_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOleUndoUnits_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOleUndoUnits_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumOleUndoUnits_Impl::Clone(this) { Ok(ok__) => { @@ -1331,7 +971,7 @@ impl IEnumOleUndoUnits_Vtbl { iid == &::IID } } -pub trait IEnumVARIANT_Impl: Sized { +pub trait IEnumVARIANT_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgvar: *mut windows_core::VARIANT, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::HRESULT; fn Reset(&self) -> windows_core::Result<()>; @@ -1339,35 +979,20 @@ pub trait IEnumVARIANT_Impl: Sized { } impl windows_core::RuntimeName for IEnumVARIANT {} impl IEnumVARIANT_Vtbl { - pub const fn new() -> IEnumVARIANT_Vtbl - where - Identity: IEnumVARIANT_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgvar: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumVARIANT_Impl, - { + pub const fn new() -> IEnumVARIANT_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgvar: *mut core::mem::MaybeUninit, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumVARIANT_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgvar), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumVARIANT_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumVARIANT_Impl::Skip(this, core::mem::transmute_copy(&celt)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumVARIANT_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumVARIANT_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumVARIANT_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumVARIANT_Impl::Clone(this) { Ok(ok__) => { @@ -1390,7 +1015,7 @@ impl IEnumVARIANT_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] -pub trait IFont_Impl: Sized { +pub trait IFont_Impl: Sized + windows_core::IUnknownImpl { fn Name(&self) -> windows_core::Result; fn SetName(&self, name: &windows_core::BSTR) -> windows_core::Result<()>; fn Size(&self) -> windows_core::Result; @@ -1420,14 +1045,8 @@ pub trait IFont_Impl: Sized { impl windows_core::RuntimeName for IFont {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IFont_Vtbl { - pub const fn new() -> IFont_Vtbl - where - Identity: IFont_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + pub const fn new() -> IFont_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Name(this) { Ok(ok__) => { @@ -1437,17 +1056,11 @@ impl IFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, psize: *mut super::Com::CY) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, psize: *mut super::Com::CY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Size(this) { Ok(ok__) => { @@ -1457,17 +1070,11 @@ impl IFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, size: super::Com::CY) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, size: super::Com::CY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetSize(this, core::mem::transmute(&size)).into() } - unsafe extern "system" fn Bold(this: *mut core::ffi::c_void, pbold: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn Bold(this: *mut core::ffi::c_void, pbold: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Bold(this) { Ok(ok__) => { @@ -1477,17 +1084,11 @@ impl IFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBold(this: *mut core::ffi::c_void, bold: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn SetBold(this: *mut core::ffi::c_void, bold: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetBold(this, core::mem::transmute_copy(&bold)).into() } - unsafe extern "system" fn Italic(this: *mut core::ffi::c_void, pitalic: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn Italic(this: *mut core::ffi::c_void, pitalic: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Italic(this) { Ok(ok__) => { @@ -1497,17 +1098,11 @@ impl IFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetItalic(this: *mut core::ffi::c_void, italic: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn SetItalic(this: *mut core::ffi::c_void, italic: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetItalic(this, core::mem::transmute_copy(&italic)).into() } - unsafe extern "system" fn Underline(this: *mut core::ffi::c_void, punderline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn Underline(this: *mut core::ffi::c_void, punderline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Underline(this) { Ok(ok__) => { @@ -1517,17 +1112,11 @@ impl IFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, underline: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, underline: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetUnderline(this, core::mem::transmute_copy(&underline)).into() } - unsafe extern "system" fn Strikethrough(this: *mut core::ffi::c_void, pstrikethrough: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn Strikethrough(this: *mut core::ffi::c_void, pstrikethrough: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Strikethrough(this) { Ok(ok__) => { @@ -1537,17 +1126,11 @@ impl IFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrikethrough(this: *mut core::ffi::c_void, strikethrough: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn SetStrikethrough(this: *mut core::ffi::c_void, strikethrough: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetStrikethrough(this, core::mem::transmute_copy(&strikethrough)).into() } - unsafe extern "system" fn Weight(this: *mut core::ffi::c_void, pweight: *mut i16) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn Weight(this: *mut core::ffi::c_void, pweight: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Weight(this) { Ok(ok__) => { @@ -1557,17 +1140,11 @@ impl IFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWeight(this: *mut core::ffi::c_void, weight: i16) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn SetWeight(this: *mut core::ffi::c_void, weight: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetWeight(this, core::mem::transmute_copy(&weight)).into() } - unsafe extern "system" fn Charset(this: *mut core::ffi::c_void, pcharset: *mut i16) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn Charset(this: *mut core::ffi::c_void, pcharset: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Charset(this) { Ok(ok__) => { @@ -1577,17 +1154,11 @@ impl IFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCharset(this: *mut core::ffi::c_void, charset: i16) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn SetCharset(this: *mut core::ffi::c_void, charset: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetCharset(this, core::mem::transmute_copy(&charset)).into() } - unsafe extern "system" fn hFont(this: *mut core::ffi::c_void, phfont: *mut super::super::Graphics::Gdi::HFONT) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn hFont(this: *mut core::ffi::c_void, phfont: *mut super::super::Graphics::Gdi::HFONT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::hFont(this) { Ok(ok__) => { @@ -1597,10 +1168,7 @@ impl IFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Clone(this) { Ok(ok__) => { @@ -1610,45 +1178,27 @@ impl IFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pfontother: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pfontother: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::IsEqual(this, windows_core::from_raw_borrowed(&pfontother)).into() } - unsafe extern "system" fn SetRatio(this: *mut core::ffi::c_void, cylogical: i32, cyhimetric: i32) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn SetRatio(this: *mut core::ffi::c_void, cylogical: i32, cyhimetric: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetRatio(this, core::mem::transmute_copy(&cylogical), core::mem::transmute_copy(&cyhimetric)).into() } - unsafe extern "system" fn QueryTextMetrics(this: *mut core::ffi::c_void, ptm: *mut super::super::Graphics::Gdi::TEXTMETRICW) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn QueryTextMetrics(this: *mut core::ffi::c_void, ptm: *mut super::super::Graphics::Gdi::TEXTMETRICW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::QueryTextMetrics(this, core::mem::transmute_copy(&ptm)).into() } - unsafe extern "system" fn AddRefHfont(this: *mut core::ffi::c_void, hfont: super::super::Graphics::Gdi::HFONT) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn AddRefHfont(this: *mut core::ffi::c_void, hfont: super::super::Graphics::Gdi::HFONT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::AddRefHfont(this, core::mem::transmute_copy(&hfont)).into() } - unsafe extern "system" fn ReleaseHfont(this: *mut core::ffi::c_void, hfont: super::super::Graphics::Gdi::HFONT) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn ReleaseHfont(this: *mut core::ffi::c_void, hfont: super::super::Graphics::Gdi::HFONT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::ReleaseHfont(this, core::mem::transmute_copy(&hfont)).into() } - unsafe extern "system" fn SetHdc(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IFont_Impl, - { + unsafe extern "system" fn SetHdc(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetHdc(this, core::mem::transmute_copy(&hdc)).into() } @@ -1690,10 +1240,7 @@ pub trait IFontDisp_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for IFontDisp {} #[cfg(feature = "Win32_System_Com")] impl IFontDisp_Vtbl { - pub const fn new() -> IFontDisp_Vtbl - where - Identity: IFontDisp_Impl, - { + pub const fn new() -> IFontDisp_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1706,29 +1253,20 @@ pub trait IFontEventsDisp_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for IFontEventsDisp {} #[cfg(feature = "Win32_System_Com")] impl IFontEventsDisp_Vtbl { - pub const fn new() -> IFontEventsDisp_Vtbl - where - Identity: IFontEventsDisp_Impl, - { + pub const fn new() -> IFontEventsDisp_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IGetOleObject_Impl: Sized { +pub trait IGetOleObject_Impl: Sized + windows_core::IUnknownImpl { fn GetOleObject(&self, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGetOleObject {} impl IGetOleObject_Vtbl { - pub const fn new() -> IGetOleObject_Vtbl - where - Identity: IGetOleObject_Impl, - { - unsafe extern "system" fn GetOleObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetOleObject_Impl, - { + pub const fn new() -> IGetOleObject_Vtbl { + unsafe extern "system" fn GetOleObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetOleObject_Impl::GetOleObject(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobj)).into() } @@ -1738,19 +1276,13 @@ impl IGetOleObject_Vtbl { iid == &::IID } } -pub trait IGetVBAObject_Impl: Sized { +pub trait IGetVBAObject_Impl: Sized + windows_core::IUnknownImpl { fn GetObject(&self, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void, dwreserved: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGetVBAObject {} impl IGetVBAObject_Vtbl { - pub const fn new() -> IGetVBAObject_Vtbl - where - Identity: IGetVBAObject_Impl, - { - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IGetVBAObject_Impl, - { + pub const fn new() -> IGetVBAObject_Vtbl { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetVBAObject_Impl::GetObject(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobj), core::mem::transmute_copy(&dwreserved)).into() } @@ -1760,19 +1292,13 @@ impl IGetVBAObject_Vtbl { iid == &::IID } } -pub trait IObjectIdentity_Impl: Sized { +pub trait IObjectIdentity_Impl: Sized + windows_core::IUnknownImpl { fn IsEqualObject(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjectIdentity {} impl IObjectIdentity_Vtbl { - pub const fn new() -> IObjectIdentity_Vtbl - where - Identity: IObjectIdentity_Impl, - { - unsafe extern "system" fn IsEqualObject(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectIdentity_Impl, - { + pub const fn new() -> IObjectIdentity_Vtbl { + unsafe extern "system" fn IsEqualObject(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectIdentity_Impl::IsEqualObject(this, windows_core::from_raw_borrowed(&punk)).into() } @@ -1782,27 +1308,18 @@ impl IObjectIdentity_Vtbl { iid == &::IID } } -pub trait IObjectWithSite_Impl: Sized { +pub trait IObjectWithSite_Impl: Sized + windows_core::IUnknownImpl { fn SetSite(&self, punksite: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetSite(&self, riid: *const windows_core::GUID, ppvsite: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjectWithSite {} impl IObjectWithSite_Vtbl { - pub const fn new() -> IObjectWithSite_Vtbl - where - Identity: IObjectWithSite_Impl, - { - unsafe extern "system" fn SetSite(this: *mut core::ffi::c_void, punksite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectWithSite_Impl, - { + pub const fn new() -> IObjectWithSite_Vtbl { + unsafe extern "system" fn SetSite(this: *mut core::ffi::c_void, punksite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectWithSite_Impl::SetSite(this, windows_core::from_raw_borrowed(&punksite)).into() } - unsafe extern "system" fn GetSite(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvsite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectWithSite_Impl, - { + unsafe extern "system" fn GetSite(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvsite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectWithSite_Impl::GetSite(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvsite)).into() } @@ -1813,7 +1330,7 @@ impl IObjectWithSite_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOleAdviseHolder_Impl: Sized { +pub trait IOleAdviseHolder_Impl: Sized + windows_core::IUnknownImpl { fn Advise(&self, padvise: Option<&super::Com::IAdviseSink>) -> windows_core::Result; fn Unadvise(&self, dwconnection: u32) -> windows_core::Result<()>; fn EnumAdvise(&self) -> windows_core::Result; @@ -1825,14 +1342,8 @@ pub trait IOleAdviseHolder_Impl: Sized { impl windows_core::RuntimeName for IOleAdviseHolder {} #[cfg(feature = "Win32_System_Com")] impl IOleAdviseHolder_Vtbl { - pub const fn new() -> IOleAdviseHolder_Vtbl - where - Identity: IOleAdviseHolder_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, padvise: *mut core::ffi::c_void, pdwconnection: *mut u32) -> windows_core::HRESULT - where - Identity: IOleAdviseHolder_Impl, - { + pub const fn new() -> IOleAdviseHolder_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, padvise: *mut core::ffi::c_void, pdwconnection: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleAdviseHolder_Impl::Advise(this, windows_core::from_raw_borrowed(&padvise)) { Ok(ok__) => { @@ -1842,17 +1353,11 @@ impl IOleAdviseHolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwconnection: u32) -> windows_core::HRESULT - where - Identity: IOleAdviseHolder_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwconnection: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleAdviseHolder_Impl::Unadvise(this, core::mem::transmute_copy(&dwconnection)).into() } - unsafe extern "system" fn EnumAdvise(this: *mut core::ffi::c_void, ppenumadvise: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleAdviseHolder_Impl, - { + unsafe extern "system" fn EnumAdvise(this: *mut core::ffi::c_void, ppenumadvise: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleAdviseHolder_Impl::EnumAdvise(this) { Ok(ok__) => { @@ -1862,24 +1367,15 @@ impl IOleAdviseHolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendOnRename(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleAdviseHolder_Impl, - { + unsafe extern "system" fn SendOnRename(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleAdviseHolder_Impl::SendOnRename(this, windows_core::from_raw_borrowed(&pmk)).into() } - unsafe extern "system" fn SendOnSave(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleAdviseHolder_Impl, - { + unsafe extern "system" fn SendOnSave(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleAdviseHolder_Impl::SendOnSave(this).into() } - unsafe extern "system" fn SendOnClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleAdviseHolder_Impl, - { + unsafe extern "system" fn SendOnClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleAdviseHolder_Impl::SendOnClose(this).into() } @@ -1898,7 +1394,7 @@ impl IOleAdviseHolder_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IOleCache_Impl: Sized { +pub trait IOleCache_Impl: Sized + windows_core::IUnknownImpl { fn Cache(&self, pformatetc: *const super::Com::FORMATETC, advf: u32) -> windows_core::Result; fn Uncache(&self, dwconnection: u32) -> windows_core::Result<()>; fn EnumCache(&self) -> windows_core::Result; @@ -1909,14 +1405,8 @@ pub trait IOleCache_Impl: Sized { impl windows_core::RuntimeName for IOleCache {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl IOleCache_Vtbl { - pub const fn new() -> IOleCache_Vtbl - where - Identity: IOleCache_Impl, - { - unsafe extern "system" fn Cache(this: *mut core::ffi::c_void, pformatetc: *const super::Com::FORMATETC, advf: u32, pdwconnection: *mut u32) -> windows_core::HRESULT - where - Identity: IOleCache_Impl, - { + pub const fn new() -> IOleCache_Vtbl { + unsafe extern "system" fn Cache(this: *mut core::ffi::c_void, pformatetc: *const super::Com::FORMATETC, advf: u32, pdwconnection: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleCache_Impl::Cache(this, core::mem::transmute_copy(&pformatetc), core::mem::transmute_copy(&advf)) { Ok(ok__) => { @@ -1926,17 +1416,11 @@ impl IOleCache_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Uncache(this: *mut core::ffi::c_void, dwconnection: u32) -> windows_core::HRESULT - where - Identity: IOleCache_Impl, - { + unsafe extern "system" fn Uncache(this: *mut core::ffi::c_void, dwconnection: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleCache_Impl::Uncache(this, core::mem::transmute_copy(&dwconnection)).into() } - unsafe extern "system" fn EnumCache(this: *mut core::ffi::c_void, ppenumstatdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleCache_Impl, - { + unsafe extern "system" fn EnumCache(this: *mut core::ffi::c_void, ppenumstatdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleCache_Impl::EnumCache(this) { Ok(ok__) => { @@ -1946,17 +1430,11 @@ impl IOleCache_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitCache(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleCache_Impl, - { + unsafe extern "system" fn InitCache(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleCache_Impl::InitCache(this, windows_core::from_raw_borrowed(&pdataobject)).into() } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pformatetc: *const super::Com::FORMATETC, pmedium: *const super::Com::STGMEDIUM, frelease: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleCache_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pformatetc: *const super::Com::FORMATETC, pmedium: *const super::Com::STGMEDIUM, frelease: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleCache_Impl::SetData(this, core::mem::transmute_copy(&pformatetc), core::mem::transmute_copy(&pmedium), core::mem::transmute_copy(&frelease)).into() } @@ -1982,21 +1460,12 @@ pub trait IOleCache2_Impl: Sized + IOleCache_Impl { impl windows_core::RuntimeName for IOleCache2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl IOleCache2_Vtbl { - pub const fn new() -> IOleCache2_Vtbl - where - Identity: IOleCache2_Impl, - { - unsafe extern "system" fn UpdateCache(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, grfupdf: UPDFCACHE_FLAGS, preserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleCache2_Impl, - { + pub const fn new() -> IOleCache2_Vtbl { + unsafe extern "system" fn UpdateCache(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, grfupdf: UPDFCACHE_FLAGS, preserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleCache2_Impl::UpdateCache(this, windows_core::from_raw_borrowed(&pdataobject), core::mem::transmute_copy(&grfupdf), core::mem::transmute_copy(&preserved)).into() } - unsafe extern "system" fn DiscardCache(this: *mut core::ffi::c_void, dwdiscardoptions: u32) -> windows_core::HRESULT - where - Identity: IOleCache2_Impl, - { + unsafe extern "system" fn DiscardCache(this: *mut core::ffi::c_void, dwdiscardoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleCache2_Impl::DiscardCache(this, core::mem::transmute_copy(&dwdiscardoptions)).into() } @@ -2007,7 +1476,7 @@ impl IOleCache2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOleCacheControl_Impl: Sized { +pub trait IOleCacheControl_Impl: Sized + windows_core::IUnknownImpl { fn OnRun(&self, pdataobject: Option<&super::Com::IDataObject>) -> windows_core::Result<()>; fn OnStop(&self) -> windows_core::Result<()>; } @@ -2015,21 +1484,12 @@ pub trait IOleCacheControl_Impl: Sized { impl windows_core::RuntimeName for IOleCacheControl {} #[cfg(feature = "Win32_System_Com")] impl IOleCacheControl_Vtbl { - pub const fn new() -> IOleCacheControl_Vtbl - where - Identity: IOleCacheControl_Impl, - { - unsafe extern "system" fn OnRun(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleCacheControl_Impl, - { + pub const fn new() -> IOleCacheControl_Vtbl { + unsafe extern "system" fn OnRun(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleCacheControl_Impl::OnRun(this, windows_core::from_raw_borrowed(&pdataobject)).into() } - unsafe extern "system" fn OnStop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleCacheControl_Impl, - { + unsafe extern "system" fn OnStop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleCacheControl_Impl::OnStop(this).into() } @@ -2040,7 +1500,7 @@ impl IOleCacheControl_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOleClientSite_Impl: Sized { +pub trait IOleClientSite_Impl: Sized + windows_core::IUnknownImpl { fn SaveObject(&self) -> windows_core::Result<()>; fn GetMoniker(&self, dwassign: &OLEGETMONIKER, dwwhichmoniker: &OLEWHICHMK) -> windows_core::Result; fn GetContainer(&self) -> windows_core::Result; @@ -2052,21 +1512,12 @@ pub trait IOleClientSite_Impl: Sized { impl windows_core::RuntimeName for IOleClientSite {} #[cfg(feature = "Win32_System_Com")] impl IOleClientSite_Vtbl { - pub const fn new() -> IOleClientSite_Vtbl - where - Identity: IOleClientSite_Impl, - { - unsafe extern "system" fn SaveObject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleClientSite_Impl, - { + pub const fn new() -> IOleClientSite_Vtbl { + unsafe extern "system" fn SaveObject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleClientSite_Impl::SaveObject(this).into() } - unsafe extern "system" fn GetMoniker(this: *mut core::ffi::c_void, dwassign: u32, dwwhichmoniker: u32, ppmk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleClientSite_Impl, - { + unsafe extern "system" fn GetMoniker(this: *mut core::ffi::c_void, dwassign: u32, dwwhichmoniker: u32, ppmk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleClientSite_Impl::GetMoniker(this, core::mem::transmute(&dwassign), core::mem::transmute(&dwwhichmoniker)) { Ok(ok__) => { @@ -2076,10 +1527,7 @@ impl IOleClientSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContainer(this: *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleClientSite_Impl, - { + unsafe extern "system" fn GetContainer(this: *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleClientSite_Impl::GetContainer(this) { Ok(ok__) => { @@ -2089,24 +1537,15 @@ impl IOleClientSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShowObject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleClientSite_Impl, - { + unsafe extern "system" fn ShowObject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleClientSite_Impl::ShowObject(this).into() } - unsafe extern "system" fn OnShowWindow(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleClientSite_Impl, - { + unsafe extern "system" fn OnShowWindow(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleClientSite_Impl::OnShowWindow(this, core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn RequestNewObjectLayout(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleClientSite_Impl, - { + unsafe extern "system" fn RequestNewObjectLayout(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleClientSite_Impl::RequestNewObjectLayout(this).into() } @@ -2124,27 +1563,18 @@ impl IOleClientSite_Vtbl { iid == &::IID } } -pub trait IOleCommandTarget_Impl: Sized { +pub trait IOleCommandTarget_Impl: Sized + windows_core::IUnknownImpl { fn QueryStatus(&self, pguidcmdgroup: *const windows_core::GUID, ccmds: u32, prgcmds: *mut OLECMD, pcmdtext: *mut OLECMDTEXT) -> windows_core::Result<()>; fn Exec(&self, pguidcmdgroup: *const windows_core::GUID, ncmdid: u32, ncmdexecopt: u32, pvain: *const windows_core::VARIANT, pvaout: *mut windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOleCommandTarget {} impl IOleCommandTarget_Vtbl { - pub const fn new() -> IOleCommandTarget_Vtbl - where - Identity: IOleCommandTarget_Impl, - { - unsafe extern "system" fn QueryStatus(this: *mut core::ffi::c_void, pguidcmdgroup: *const windows_core::GUID, ccmds: u32, prgcmds: *mut OLECMD, pcmdtext: *mut OLECMDTEXT) -> windows_core::HRESULT - where - Identity: IOleCommandTarget_Impl, - { + pub const fn new() -> IOleCommandTarget_Vtbl { + unsafe extern "system" fn QueryStatus(this: *mut core::ffi::c_void, pguidcmdgroup: *const windows_core::GUID, ccmds: u32, prgcmds: *mut OLECMD, pcmdtext: *mut OLECMDTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleCommandTarget_Impl::QueryStatus(this, core::mem::transmute_copy(&pguidcmdgroup), core::mem::transmute_copy(&ccmds), core::mem::transmute_copy(&prgcmds), core::mem::transmute_copy(&pcmdtext)).into() } - unsafe extern "system" fn Exec(this: *mut core::ffi::c_void, pguidcmdgroup: *const windows_core::GUID, ncmdid: u32, ncmdexecopt: u32, pvain: *const core::mem::MaybeUninit, pvaout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOleCommandTarget_Impl, - { + unsafe extern "system" fn Exec(this: *mut core::ffi::c_void, pguidcmdgroup: *const windows_core::GUID, ncmdid: u32, ncmdexecopt: u32, pvain: *const core::mem::MaybeUninit, pvaout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleCommandTarget_Impl::Exec(this, core::mem::transmute_copy(&pguidcmdgroup), core::mem::transmute_copy(&ncmdid), core::mem::transmute_copy(&ncmdexecopt), core::mem::transmute_copy(&pvain), core::mem::transmute_copy(&pvaout)).into() } @@ -2163,14 +1593,8 @@ pub trait IOleContainer_Impl: Sized + IParseDisplayName_Impl { impl windows_core::RuntimeName for IOleContainer {} #[cfg(feature = "Win32_System_Com")] impl IOleContainer_Vtbl { - pub const fn new() -> IOleContainer_Vtbl - where - Identity: IOleContainer_Impl, - { - unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, grfflags: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleContainer_Impl, - { + pub const fn new() -> IOleContainer_Vtbl { + unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, grfflags: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleContainer_Impl::EnumObjects(this, core::mem::transmute(&grfflags)) { Ok(ok__) => { @@ -2180,10 +1604,7 @@ impl IOleContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LockContainer(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleContainer_Impl, - { + unsafe extern "system" fn LockContainer(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleContainer_Impl::LockContainer(this, core::mem::transmute_copy(&flock)).into() } @@ -2198,7 +1619,7 @@ impl IOleContainer_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IOleControl_Impl: Sized { +pub trait IOleControl_Impl: Sized + windows_core::IUnknownImpl { fn GetControlInfo(&self, pci: *mut CONTROLINFO) -> windows_core::Result<()>; fn OnMnemonic(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result<()>; fn OnAmbientPropertyChange(&self, dispid: i32) -> windows_core::Result<()>; @@ -2208,35 +1629,20 @@ pub trait IOleControl_Impl: Sized { impl windows_core::RuntimeName for IOleControl {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IOleControl_Vtbl { - pub const fn new() -> IOleControl_Vtbl - where - Identity: IOleControl_Impl, - { - unsafe extern "system" fn GetControlInfo(this: *mut core::ffi::c_void, pci: *mut CONTROLINFO) -> windows_core::HRESULT - where - Identity: IOleControl_Impl, - { + pub const fn new() -> IOleControl_Vtbl { + unsafe extern "system" fn GetControlInfo(this: *mut core::ffi::c_void, pci: *mut CONTROLINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControl_Impl::GetControlInfo(this, core::mem::transmute_copy(&pci)).into() } - unsafe extern "system" fn OnMnemonic(this: *mut core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IOleControl_Impl, - { + unsafe extern "system" fn OnMnemonic(this: *mut core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControl_Impl::OnMnemonic(this, core::mem::transmute_copy(&pmsg)).into() } - unsafe extern "system" fn OnAmbientPropertyChange(this: *mut core::ffi::c_void, dispid: i32) -> windows_core::HRESULT - where - Identity: IOleControl_Impl, - { + unsafe extern "system" fn OnAmbientPropertyChange(this: *mut core::ffi::c_void, dispid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControl_Impl::OnAmbientPropertyChange(this, core::mem::transmute_copy(&dispid)).into() } - unsafe extern "system" fn FreezeEvents(this: *mut core::ffi::c_void, bfreeze: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleControl_Impl, - { + unsafe extern "system" fn FreezeEvents(this: *mut core::ffi::c_void, bfreeze: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControl_Impl::FreezeEvents(this, core::mem::transmute_copy(&bfreeze)).into() } @@ -2253,7 +1659,7 @@ impl IOleControl_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IOleControlSite_Impl: Sized { +pub trait IOleControlSite_Impl: Sized + windows_core::IUnknownImpl { fn OnControlInfoChanged(&self) -> windows_core::Result<()>; fn LockInPlaceActive(&self, flock: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetExtendedControl(&self) -> windows_core::Result; @@ -2266,28 +1672,16 @@ pub trait IOleControlSite_Impl: Sized { impl windows_core::RuntimeName for IOleControlSite {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] impl IOleControlSite_Vtbl { - pub const fn new() -> IOleControlSite_Vtbl - where - Identity: IOleControlSite_Impl, - { - unsafe extern "system" fn OnControlInfoChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleControlSite_Impl, - { + pub const fn new() -> IOleControlSite_Vtbl { + unsafe extern "system" fn OnControlInfoChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControlSite_Impl::OnControlInfoChanged(this).into() } - unsafe extern "system" fn LockInPlaceActive(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleControlSite_Impl, - { + unsafe extern "system" fn LockInPlaceActive(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControlSite_Impl::LockInPlaceActive(this, core::mem::transmute_copy(&flock)).into() } - unsafe extern "system" fn GetExtendedControl(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleControlSite_Impl, - { + unsafe extern "system" fn GetExtendedControl(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleControlSite_Impl::GetExtendedControl(this) { Ok(ok__) => { @@ -2297,31 +1691,19 @@ impl IOleControlSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransformCoords(this: *mut core::ffi::c_void, pptlhimetric: *mut super::super::Foundation::POINTL, pptfcontainer: *mut POINTF, dwflags: u32) -> windows_core::HRESULT - where - Identity: IOleControlSite_Impl, - { + unsafe extern "system" fn TransformCoords(this: *mut core::ffi::c_void, pptlhimetric: *mut super::super::Foundation::POINTL, pptfcontainer: *mut POINTF, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControlSite_Impl::TransformCoords(this, core::mem::transmute_copy(&pptlhimetric), core::mem::transmute_copy(&pptfcontainer), core::mem::transmute(&dwflags)).into() } - unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: KEYMODIFIERS) -> windows_core::HRESULT - where - Identity: IOleControlSite_Impl, - { + unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: KEYMODIFIERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControlSite_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&grfmodifiers)).into() } - unsafe extern "system" fn OnFocus(this: *mut core::ffi::c_void, fgotfocus: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleControlSite_Impl, - { + unsafe extern "system" fn OnFocus(this: *mut core::ffi::c_void, fgotfocus: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControlSite_Impl::OnFocus(this, core::mem::transmute_copy(&fgotfocus)).into() } - unsafe extern "system" fn ShowPropertyFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleControlSite_Impl, - { + unsafe extern "system" fn ShowPropertyFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControlSite_Impl::ShowPropertyFrame(this).into() } @@ -2341,7 +1723,7 @@ impl IOleControlSite_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOleDocument_Impl: Sized { +pub trait IOleDocument_Impl: Sized + windows_core::IUnknownImpl { fn CreateView(&self, pipsite: Option<&IOleInPlaceSite>, pstm: Option<&super::Com::IStream>, dwreserved: u32) -> windows_core::Result; fn GetDocMiscStatus(&self) -> windows_core::Result; fn EnumViews(&self, ppenum: *mut Option, ppview: *mut Option) -> windows_core::Result<()>; @@ -2350,14 +1732,8 @@ pub trait IOleDocument_Impl: Sized { impl windows_core::RuntimeName for IOleDocument {} #[cfg(feature = "Win32_System_Com")] impl IOleDocument_Vtbl { - pub const fn new() -> IOleDocument_Vtbl - where - Identity: IOleDocument_Impl, - { - unsafe extern "system" fn CreateView(this: *mut core::ffi::c_void, pipsite: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, dwreserved: u32, ppview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleDocument_Impl, - { + pub const fn new() -> IOleDocument_Vtbl { + unsafe extern "system" fn CreateView(this: *mut core::ffi::c_void, pipsite: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, dwreserved: u32, ppview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleDocument_Impl::CreateView(this, windows_core::from_raw_borrowed(&pipsite), windows_core::from_raw_borrowed(&pstm), core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -2367,10 +1743,7 @@ impl IOleDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocMiscStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IOleDocument_Impl, - { + unsafe extern "system" fn GetDocMiscStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleDocument_Impl::GetDocMiscStatus(this) { Ok(ok__) => { @@ -2380,10 +1753,7 @@ impl IOleDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumViews(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, ppview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleDocument_Impl, - { + unsafe extern "system" fn EnumViews(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, ppview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocument_Impl::EnumViews(this, core::mem::transmute_copy(&ppenum), core::mem::transmute_copy(&ppview)).into() } @@ -2398,19 +1768,13 @@ impl IOleDocument_Vtbl { iid == &::IID } } -pub trait IOleDocumentSite_Impl: Sized { +pub trait IOleDocumentSite_Impl: Sized + windows_core::IUnknownImpl { fn ActivateMe(&self, pviewtoactivate: Option<&IOleDocumentView>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOleDocumentSite {} impl IOleDocumentSite_Vtbl { - pub const fn new() -> IOleDocumentSite_Vtbl - where - Identity: IOleDocumentSite_Impl, - { - unsafe extern "system" fn ActivateMe(this: *mut core::ffi::c_void, pviewtoactivate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleDocumentSite_Impl, - { + pub const fn new() -> IOleDocumentSite_Vtbl { + unsafe extern "system" fn ActivateMe(this: *mut core::ffi::c_void, pviewtoactivate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentSite_Impl::ActivateMe(this, windows_core::from_raw_borrowed(&pviewtoactivate)).into() } @@ -2421,7 +1785,7 @@ impl IOleDocumentSite_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOleDocumentView_Impl: Sized { +pub trait IOleDocumentView_Impl: Sized + windows_core::IUnknownImpl { fn SetInPlaceSite(&self, pipsite: Option<&IOleInPlaceSite>) -> windows_core::Result<()>; fn GetInPlaceSite(&self) -> windows_core::Result; fn GetDocument(&self) -> windows_core::Result; @@ -2440,21 +1804,12 @@ pub trait IOleDocumentView_Impl: Sized { impl windows_core::RuntimeName for IOleDocumentView {} #[cfg(feature = "Win32_System_Com")] impl IOleDocumentView_Vtbl { - pub const fn new() -> IOleDocumentView_Vtbl - where - Identity: IOleDocumentView_Impl, - { - unsafe extern "system" fn SetInPlaceSite(this: *mut core::ffi::c_void, pipsite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + pub const fn new() -> IOleDocumentView_Vtbl { + unsafe extern "system" fn SetInPlaceSite(this: *mut core::ffi::c_void, pipsite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::SetInPlaceSite(this, windows_core::from_raw_borrowed(&pipsite)).into() } - unsafe extern "system" fn GetInPlaceSite(this: *mut core::ffi::c_void, ppipsite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn GetInPlaceSite(this: *mut core::ffi::c_void, ppipsite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleDocumentView_Impl::GetInPlaceSite(this) { Ok(ok__) => { @@ -2464,10 +1819,7 @@ impl IOleDocumentView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn GetDocument(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleDocumentView_Impl::GetDocument(this) { Ok(ok__) => { @@ -2477,17 +1829,11 @@ impl IOleDocumentView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRect(this: *mut core::ffi::c_void, prcview: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn SetRect(this: *mut core::ffi::c_void, prcview: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::SetRect(this, core::mem::transmute_copy(&prcview)).into() } - unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, prcview: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, prcview: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleDocumentView_Impl::GetRect(this) { Ok(ok__) => { @@ -2497,59 +1843,35 @@ impl IOleDocumentView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRectComplex(this: *mut core::ffi::c_void, prcview: *const super::super::Foundation::RECT, prchscroll: *const super::super::Foundation::RECT, prcvscroll: *const super::super::Foundation::RECT, prcsizebox: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn SetRectComplex(this: *mut core::ffi::c_void, prcview: *const super::super::Foundation::RECT, prchscroll: *const super::super::Foundation::RECT, prcvscroll: *const super::super::Foundation::RECT, prcsizebox: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::SetRectComplex(this, core::mem::transmute_copy(&prcview), core::mem::transmute_copy(&prchscroll), core::mem::transmute_copy(&prcvscroll), core::mem::transmute_copy(&prcsizebox)).into() } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::Show(this, core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn UIActivate(this: *mut core::ffi::c_void, fuiactivate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn UIActivate(this: *mut core::ffi::c_void, fuiactivate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::UIActivate(this, core::mem::transmute_copy(&fuiactivate)).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::Open(this).into() } - unsafe extern "system" fn CloseView(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn CloseView(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::CloseView(this, core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn SaveViewState(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn SaveViewState(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::SaveViewState(this, windows_core::from_raw_borrowed(&pstm)).into() } - unsafe extern "system" fn ApplyViewState(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn ApplyViewState(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::ApplyViewState(this, windows_core::from_raw_borrowed(&pstm)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pipsitenew: *mut core::ffi::c_void, ppviewnew: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleDocumentView_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pipsitenew: *mut core::ffi::c_void, ppviewnew: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleDocumentView_Impl::Clone(this, windows_core::from_raw_borrowed(&pipsitenew)) { Ok(ok__) => { @@ -2592,42 +1914,24 @@ pub trait IOleInPlaceActiveObject_Impl: Sized + IOleWindow_Impl { impl windows_core::RuntimeName for IOleInPlaceActiveObject {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IOleInPlaceActiveObject_Vtbl { - pub const fn new() -> IOleInPlaceActiveObject_Vtbl - where - Identity: IOleInPlaceActiveObject_Impl, - { - unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IOleInPlaceActiveObject_Impl, - { + pub const fn new() -> IOleInPlaceActiveObject_Vtbl { + unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceActiveObject_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&lpmsg)).into() } - unsafe extern "system" fn OnFrameWindowActivate(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceActiveObject_Impl, - { + unsafe extern "system" fn OnFrameWindowActivate(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceActiveObject_Impl::OnFrameWindowActivate(this, core::mem::transmute_copy(&factivate)).into() } - unsafe extern "system" fn OnDocWindowActivate(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceActiveObject_Impl, - { + unsafe extern "system" fn OnDocWindowActivate(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceActiveObject_Impl::OnDocWindowActivate(this, core::mem::transmute_copy(&factivate)).into() } - unsafe extern "system" fn ResizeBorder(this: *mut core::ffi::c_void, prcborder: *const super::super::Foundation::RECT, puiwindow: *mut core::ffi::c_void, fframewindow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceActiveObject_Impl, - { + unsafe extern "system" fn ResizeBorder(this: *mut core::ffi::c_void, prcborder: *const super::super::Foundation::RECT, puiwindow: *mut core::ffi::c_void, fframewindow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceActiveObject_Impl::ResizeBorder(this, core::mem::transmute_copy(&prcborder), windows_core::from_raw_borrowed(&puiwindow), core::mem::transmute_copy(&fframewindow)).into() } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceActiveObject_Impl, - { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceActiveObject_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() } @@ -2657,49 +1961,28 @@ pub trait IOleInPlaceFrame_Impl: Sized + IOleInPlaceUIWindow_Impl { impl windows_core::RuntimeName for IOleInPlaceFrame {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IOleInPlaceFrame_Vtbl { - pub const fn new() -> IOleInPlaceFrame_Vtbl - where - Identity: IOleInPlaceFrame_Impl, - { - unsafe extern "system" fn InsertMenus(this: *mut core::ffi::c_void, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *mut OLEMENUGROUPWIDTHS) -> windows_core::HRESULT - where - Identity: IOleInPlaceFrame_Impl, - { + pub const fn new() -> IOleInPlaceFrame_Vtbl { + unsafe extern "system" fn InsertMenus(this: *mut core::ffi::c_void, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, lpmenuwidths: *mut OLEMENUGROUPWIDTHS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceFrame_Impl::InsertMenus(this, core::mem::transmute_copy(&hmenushared), core::mem::transmute_copy(&lpmenuwidths)).into() } - unsafe extern "system" fn SetMenu(this: *mut core::ffi::c_void, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, holemenu: isize, hwndactiveobject: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IOleInPlaceFrame_Impl, - { + unsafe extern "system" fn SetMenu(this: *mut core::ffi::c_void, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, holemenu: isize, hwndactiveobject: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceFrame_Impl::SetMenu(this, core::mem::transmute_copy(&hmenushared), core::mem::transmute_copy(&holemenu), core::mem::transmute_copy(&hwndactiveobject)).into() } - unsafe extern "system" fn RemoveMenus(this: *mut core::ffi::c_void, hmenushared: super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::HRESULT - where - Identity: IOleInPlaceFrame_Impl, - { + unsafe extern "system" fn RemoveMenus(this: *mut core::ffi::c_void, hmenushared: super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceFrame_Impl::RemoveMenus(this, core::mem::transmute_copy(&hmenushared)).into() } - unsafe extern "system" fn SetStatusText(this: *mut core::ffi::c_void, pszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOleInPlaceFrame_Impl, - { + unsafe extern "system" fn SetStatusText(this: *mut core::ffi::c_void, pszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceFrame_Impl::SetStatusText(this, core::mem::transmute(&pszstatustext)).into() } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceFrame_Impl, - { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceFrame_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, wid: u16) -> windows_core::HRESULT - where - Identity: IOleInPlaceFrame_Impl, - { + unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, wid: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceFrame_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&lpmsg), core::mem::transmute_copy(&wid)).into() } @@ -2725,35 +2008,20 @@ pub trait IOleInPlaceObject_Impl: Sized + IOleWindow_Impl { } impl windows_core::RuntimeName for IOleInPlaceObject {} impl IOleInPlaceObject_Vtbl { - pub const fn new() -> IOleInPlaceObject_Vtbl - where - Identity: IOleInPlaceObject_Impl, - { - unsafe extern "system" fn InPlaceDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceObject_Impl, - { + pub const fn new() -> IOleInPlaceObject_Vtbl { + unsafe extern "system" fn InPlaceDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceObject_Impl::InPlaceDeactivate(this).into() } - unsafe extern "system" fn UIDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceObject_Impl, - { + unsafe extern "system" fn UIDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceObject_Impl::UIDeactivate(this).into() } - unsafe extern "system" fn SetObjectRects(this: *mut core::ffi::c_void, lprcposrect: *const super::super::Foundation::RECT, lprccliprect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleInPlaceObject_Impl, - { + unsafe extern "system" fn SetObjectRects(this: *mut core::ffi::c_void, lprcposrect: *const super::super::Foundation::RECT, lprccliprect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceObject_Impl::SetObjectRects(this, core::mem::transmute_copy(&lprcposrect), core::mem::transmute_copy(&lprccliprect)).into() } - unsafe extern "system" fn ReactivateAndUndo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceObject_Impl, - { + unsafe extern "system" fn ReactivateAndUndo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceObject_Impl::ReactivateAndUndo(this).into() } @@ -2775,14 +2043,8 @@ pub trait IOleInPlaceObjectWindowless_Impl: Sized + IOleInPlaceObject_Impl { } impl windows_core::RuntimeName for IOleInPlaceObjectWindowless {} impl IOleInPlaceObjectWindowless_Vtbl { - pub const fn new() -> IOleInPlaceObjectWindowless_Vtbl - where - Identity: IOleInPlaceObjectWindowless_Impl, - { - unsafe extern "system" fn OnWindowMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IOleInPlaceObjectWindowless_Impl, - { + pub const fn new() -> IOleInPlaceObjectWindowless_Vtbl { + unsafe extern "system" fn OnWindowMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleInPlaceObjectWindowless_Impl::OnWindowMessage(this, core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -2792,10 +2054,7 @@ impl IOleInPlaceObjectWindowless_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDropTarget(this: *mut core::ffi::c_void, ppdroptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceObjectWindowless_Impl, - { + unsafe extern "system" fn GetDropTarget(this: *mut core::ffi::c_void, ppdroptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleInPlaceObjectWindowless_Impl::GetDropTarget(this) { Ok(ok__) => { @@ -2832,77 +2091,44 @@ pub trait IOleInPlaceSite_Impl: Sized + IOleWindow_Impl { impl windows_core::RuntimeName for IOleInPlaceSite {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IOleInPlaceSite_Vtbl { - pub const fn new() -> IOleInPlaceSite_Vtbl - where - Identity: IOleInPlaceSite_Impl, - { - unsafe extern "system" fn CanInPlaceActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceSite_Impl, - { + pub const fn new() -> IOleInPlaceSite_Vtbl { + unsafe extern "system" fn CanInPlaceActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::CanInPlaceActivate(this).into() } - unsafe extern "system" fn OnInPlaceActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceSite_Impl, - { + unsafe extern "system" fn OnInPlaceActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::OnInPlaceActivate(this).into() } - unsafe extern "system" fn OnUIActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceSite_Impl, - { + unsafe extern "system" fn OnUIActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::OnUIActivate(this).into() } - unsafe extern "system" fn GetWindowContext(this: *mut core::ffi::c_void, ppframe: *mut *mut core::ffi::c_void, ppdoc: *mut *mut core::ffi::c_void, lprcposrect: *mut super::super::Foundation::RECT, lprccliprect: *mut super::super::Foundation::RECT, lpframeinfo: *mut OLEINPLACEFRAMEINFO) -> windows_core::HRESULT - where - Identity: IOleInPlaceSite_Impl, - { + unsafe extern "system" fn GetWindowContext(this: *mut core::ffi::c_void, ppframe: *mut *mut core::ffi::c_void, ppdoc: *mut *mut core::ffi::c_void, lprcposrect: *mut super::super::Foundation::RECT, lprccliprect: *mut super::super::Foundation::RECT, lpframeinfo: *mut OLEINPLACEFRAMEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::GetWindowContext(this, core::mem::transmute_copy(&ppframe), core::mem::transmute_copy(&ppdoc), core::mem::transmute_copy(&lprcposrect), core::mem::transmute_copy(&lprccliprect), core::mem::transmute_copy(&lpframeinfo)).into() } - unsafe extern "system" fn Scroll(this: *mut core::ffi::c_void, scrollextant: super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IOleInPlaceSite_Impl, - { + unsafe extern "system" fn Scroll(this: *mut core::ffi::c_void, scrollextant: super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::Scroll(this, core::mem::transmute(&scrollextant)).into() } - unsafe extern "system" fn OnUIDeactivate(this: *mut core::ffi::c_void, fundoable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceSite_Impl, - { + unsafe extern "system" fn OnUIDeactivate(this: *mut core::ffi::c_void, fundoable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::OnUIDeactivate(this, core::mem::transmute_copy(&fundoable)).into() } - unsafe extern "system" fn OnInPlaceDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceSite_Impl, - { + unsafe extern "system" fn OnInPlaceDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::OnInPlaceDeactivate(this).into() } - unsafe extern "system" fn DiscardUndoState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceSite_Impl, - { + unsafe extern "system" fn DiscardUndoState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::DiscardUndoState(this).into() } - unsafe extern "system" fn DeactivateAndUndo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceSite_Impl, - { + unsafe extern "system" fn DeactivateAndUndo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::DeactivateAndUndo(this).into() } - unsafe extern "system" fn OnPosRectChange(this: *mut core::ffi::c_void, lprcposrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleInPlaceSite_Impl, - { + unsafe extern "system" fn OnPosRectChange(this: *mut core::ffi::c_void, lprcposrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::OnPosRectChange(this, core::mem::transmute_copy(&lprcposrect)).into() } @@ -2934,28 +2160,16 @@ pub trait IOleInPlaceSiteEx_Impl: Sized + IOleInPlaceSite_Impl { impl windows_core::RuntimeName for IOleInPlaceSiteEx {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IOleInPlaceSiteEx_Vtbl { - pub const fn new() -> IOleInPlaceSiteEx_Vtbl - where - Identity: IOleInPlaceSiteEx_Impl, - { - unsafe extern "system" fn OnInPlaceActivateEx(this: *mut core::ffi::c_void, pfnoredraw: *mut super::super::Foundation::BOOL, dwflags: u32) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteEx_Impl, - { + pub const fn new() -> IOleInPlaceSiteEx_Vtbl { + unsafe extern "system" fn OnInPlaceActivateEx(this: *mut core::ffi::c_void, pfnoredraw: *mut super::super::Foundation::BOOL, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteEx_Impl::OnInPlaceActivateEx(this, core::mem::transmute_copy(&pfnoredraw), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn OnInPlaceDeactivateEx(this: *mut core::ffi::c_void, fnoredraw: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteEx_Impl, - { + unsafe extern "system" fn OnInPlaceDeactivateEx(this: *mut core::ffi::c_void, fnoredraw: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteEx_Impl::OnInPlaceDeactivateEx(this, core::mem::transmute_copy(&fnoredraw)).into() } - unsafe extern "system" fn RequestUIActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteEx_Impl, - { + unsafe extern "system" fn RequestUIActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteEx_Impl::RequestUIActivate(this).into() } @@ -2989,49 +2203,28 @@ pub trait IOleInPlaceSiteWindowless_Impl: Sized + IOleInPlaceSiteEx_Impl { impl windows_core::RuntimeName for IOleInPlaceSiteWindowless {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IOleInPlaceSiteWindowless_Vtbl { - pub const fn new() -> IOleInPlaceSiteWindowless_Vtbl - where - Identity: IOleInPlaceSiteWindowless_Impl, - { - unsafe extern "system" fn CanWindowlessActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + pub const fn new() -> IOleInPlaceSiteWindowless_Vtbl { + unsafe extern "system" fn CanWindowlessActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::CanWindowlessActivate(this).into() } - unsafe extern "system" fn GetCapture(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn GetCapture(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::GetCapture(this).into() } - unsafe extern "system" fn SetCapture(this: *mut core::ffi::c_void, fcapture: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn SetCapture(this: *mut core::ffi::c_void, fcapture: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::SetCapture(this, core::mem::transmute_copy(&fcapture)).into() } - unsafe extern "system" fn GetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn GetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::GetFocus(this).into() } - unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void, ffocus: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void, ffocus: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::SetFocus(this, core::mem::transmute_copy(&ffocus)).into() } - unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT, grfflags: u32, phdc: *mut super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT, grfflags: u32, phdc: *mut super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleInPlaceSiteWindowless_Impl::GetDC(this, core::mem::transmute_copy(&prect), core::mem::transmute_copy(&grfflags)) { Ok(ok__) => { @@ -3041,45 +2234,27 @@ impl IOleInPlaceSiteWindowless_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn ReleaseDC(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::ReleaseDC(this, core::mem::transmute_copy(&hdc)).into() } - unsafe extern "system" fn InvalidateRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT, ferase: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn InvalidateRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT, ferase: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::InvalidateRect(this, core::mem::transmute_copy(&prect), core::mem::transmute_copy(&ferase)).into() } - unsafe extern "system" fn InvalidateRgn(this: *mut core::ffi::c_void, hrgn: super::super::Graphics::Gdi::HRGN, ferase: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn InvalidateRgn(this: *mut core::ffi::c_void, hrgn: super::super::Graphics::Gdi::HRGN, ferase: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::InvalidateRgn(this, core::mem::transmute_copy(&hrgn), core::mem::transmute_copy(&ferase)).into() } - unsafe extern "system" fn ScrollRect(this: *mut core::ffi::c_void, dx: i32, dy: i32, prectscroll: *const super::super::Foundation::RECT, prectclip: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn ScrollRect(this: *mut core::ffi::c_void, dx: i32, dy: i32, prectscroll: *const super::super::Foundation::RECT, prectclip: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::ScrollRect(this, core::mem::transmute_copy(&dx), core::mem::transmute_copy(&dy), core::mem::transmute_copy(&prectscroll), core::mem::transmute_copy(&prectclip)).into() } - unsafe extern "system" fn AdjustRect(this: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn AdjustRect(this: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::AdjustRect(this, core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn OnDefWindowMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IOleInPlaceSiteWindowless_Impl, - { + unsafe extern "system" fn OnDefWindowMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleInPlaceSiteWindowless_Impl::OnDefWindowMessage(this, core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -3117,14 +2292,8 @@ pub trait IOleInPlaceUIWindow_Impl: Sized + IOleWindow_Impl { } impl windows_core::RuntimeName for IOleInPlaceUIWindow {} impl IOleInPlaceUIWindow_Vtbl { - pub const fn new() -> IOleInPlaceUIWindow_Vtbl - where - Identity: IOleInPlaceUIWindow_Impl, - { - unsafe extern "system" fn GetBorder(this: *mut core::ffi::c_void, lprectborder: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleInPlaceUIWindow_Impl, - { + pub const fn new() -> IOleInPlaceUIWindow_Vtbl { + unsafe extern "system" fn GetBorder(this: *mut core::ffi::c_void, lprectborder: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleInPlaceUIWindow_Impl::GetBorder(this) { Ok(ok__) => { @@ -3134,24 +2303,15 @@ impl IOleInPlaceUIWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestBorderSpace(this: *mut core::ffi::c_void, pborderwidths: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleInPlaceUIWindow_Impl, - { + unsafe extern "system" fn RequestBorderSpace(this: *mut core::ffi::c_void, pborderwidths: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceUIWindow_Impl::RequestBorderSpace(this, core::mem::transmute_copy(&pborderwidths)).into() } - unsafe extern "system" fn SetBorderSpace(this: *mut core::ffi::c_void, pborderwidths: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleInPlaceUIWindow_Impl, - { + unsafe extern "system" fn SetBorderSpace(this: *mut core::ffi::c_void, pborderwidths: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceUIWindow_Impl::SetBorderSpace(this, core::mem::transmute_copy(&pborderwidths)).into() } - unsafe extern "system" fn SetActiveObject(this: *mut core::ffi::c_void, pactiveobject: *mut core::ffi::c_void, pszobjname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOleInPlaceUIWindow_Impl, - { + unsafe extern "system" fn SetActiveObject(this: *mut core::ffi::c_void, pactiveobject: *mut core::ffi::c_void, pszobjname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceUIWindow_Impl::SetActiveObject(this, windows_core::from_raw_borrowed(&pactiveobject), core::mem::transmute(&pszobjname)).into() } @@ -3177,28 +2337,16 @@ pub trait IOleItemContainer_Impl: Sized + IOleContainer_Impl { impl windows_core::RuntimeName for IOleItemContainer {} #[cfg(feature = "Win32_System_Com")] impl IOleItemContainer_Vtbl { - pub const fn new() -> IOleItemContainer_Vtbl - where - Identity: IOleItemContainer_Impl, - { - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, pszitem: windows_core::PCWSTR, dwspeedneeded: u32, pbc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleItemContainer_Impl, - { + pub const fn new() -> IOleItemContainer_Vtbl { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, pszitem: windows_core::PCWSTR, dwspeedneeded: u32, pbc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleItemContainer_Impl::GetObject(this, core::mem::transmute(&pszitem), core::mem::transmute_copy(&dwspeedneeded), windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } - unsafe extern "system" fn GetObjectStorage(this: *mut core::ffi::c_void, pszitem: windows_core::PCWSTR, pbc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleItemContainer_Impl, - { + unsafe extern "system" fn GetObjectStorage(this: *mut core::ffi::c_void, pszitem: windows_core::PCWSTR, pbc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvstorage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleItemContainer_Impl::GetObjectStorage(this, core::mem::transmute(&pszitem), windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvstorage)).into() } - unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void, pszitem: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOleItemContainer_Impl, - { + unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void, pszitem: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleItemContainer_Impl::IsRunning(this, core::mem::transmute(&pszitem)).into() } @@ -3214,7 +2362,7 @@ impl IOleItemContainer_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOleLink_Impl: Sized { +pub trait IOleLink_Impl: Sized + windows_core::IUnknownImpl { fn SetUpdateOptions(&self, dwupdateopt: u32) -> windows_core::Result<()>; fn GetUpdateOptions(&self) -> windows_core::Result; fn SetSourceMoniker(&self, pmk: Option<&super::Com::IMoniker>, rclsid: *const windows_core::GUID) -> windows_core::Result<()>; @@ -3231,21 +2379,12 @@ pub trait IOleLink_Impl: Sized { impl windows_core::RuntimeName for IOleLink {} #[cfg(feature = "Win32_System_Com")] impl IOleLink_Vtbl { - pub const fn new() -> IOleLink_Vtbl - where - Identity: IOleLink_Impl, - { - unsafe extern "system" fn SetUpdateOptions(this: *mut core::ffi::c_void, dwupdateopt: u32) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + pub const fn new() -> IOleLink_Vtbl { + unsafe extern "system" fn SetUpdateOptions(this: *mut core::ffi::c_void, dwupdateopt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleLink_Impl::SetUpdateOptions(this, core::mem::transmute_copy(&dwupdateopt)).into() } - unsafe extern "system" fn GetUpdateOptions(this: *mut core::ffi::c_void, pdwupdateopt: *mut u32) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + unsafe extern "system" fn GetUpdateOptions(this: *mut core::ffi::c_void, pdwupdateopt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleLink_Impl::GetUpdateOptions(this) { Ok(ok__) => { @@ -3255,17 +2394,11 @@ impl IOleLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourceMoniker(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void, rclsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + unsafe extern "system" fn SetSourceMoniker(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void, rclsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleLink_Impl::SetSourceMoniker(this, windows_core::from_raw_borrowed(&pmk), core::mem::transmute_copy(&rclsid)).into() } - unsafe extern "system" fn GetSourceMoniker(this: *mut core::ffi::c_void, ppmk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + unsafe extern "system" fn GetSourceMoniker(this: *mut core::ffi::c_void, ppmk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleLink_Impl::GetSourceMoniker(this) { Ok(ok__) => { @@ -3275,17 +2408,11 @@ impl IOleLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSourceDisplayName(this: *mut core::ffi::c_void, pszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + unsafe extern "system" fn SetSourceDisplayName(this: *mut core::ffi::c_void, pszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleLink_Impl::SetSourceDisplayName(this, core::mem::transmute(&pszstatustext)).into() } - unsafe extern "system" fn GetSourceDisplayName(this: *mut core::ffi::c_void, ppszdisplayname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + unsafe extern "system" fn GetSourceDisplayName(this: *mut core::ffi::c_void, ppszdisplayname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleLink_Impl::GetSourceDisplayName(this) { Ok(ok__) => { @@ -3295,24 +2422,15 @@ impl IOleLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BindToSource(this: *mut core::ffi::c_void, bindflags: u32, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + unsafe extern "system" fn BindToSource(this: *mut core::ffi::c_void, bindflags: u32, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleLink_Impl::BindToSource(this, core::mem::transmute_copy(&bindflags), windows_core::from_raw_borrowed(&pbc)).into() } - unsafe extern "system" fn BindIfRunning(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + unsafe extern "system" fn BindIfRunning(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleLink_Impl::BindIfRunning(this).into() } - unsafe extern "system" fn GetBoundSource(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + unsafe extern "system" fn GetBoundSource(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleLink_Impl::GetBoundSource(this) { Ok(ok__) => { @@ -3322,17 +2440,11 @@ impl IOleLink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnbindSource(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + unsafe extern "system" fn UnbindSource(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleLink_Impl::UnbindSource(this).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleLink_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleLink_Impl::Update(this, windows_core::from_raw_borrowed(&pbc)).into() } @@ -3356,7 +2468,7 @@ impl IOleLink_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IOleObject_Impl: Sized { +pub trait IOleObject_Impl: Sized + windows_core::IUnknownImpl { fn SetClientSite(&self, pclientsite: Option<&IOleClientSite>) -> windows_core::Result<()>; fn GetClientSite(&self) -> windows_core::Result; fn SetHostNames(&self, szcontainerapp: &windows_core::PCWSTR, szcontainerobj: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -3383,21 +2495,12 @@ pub trait IOleObject_Impl: Sized { impl windows_core::RuntimeName for IOleObject {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] impl IOleObject_Vtbl { - pub const fn new() -> IOleObject_Vtbl - where - Identity: IOleObject_Impl, - { - unsafe extern "system" fn SetClientSite(this: *mut core::ffi::c_void, pclientsite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + pub const fn new() -> IOleObject_Vtbl { + unsafe extern "system" fn SetClientSite(this: *mut core::ffi::c_void, pclientsite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::SetClientSite(this, windows_core::from_raw_borrowed(&pclientsite)).into() } - unsafe extern "system" fn GetClientSite(this: *mut core::ffi::c_void, ppclientsite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn GetClientSite(this: *mut core::ffi::c_void, ppclientsite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleObject_Impl::GetClientSite(this) { Ok(ok__) => { @@ -3407,31 +2510,19 @@ impl IOleObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHostNames(this: *mut core::ffi::c_void, szcontainerapp: windows_core::PCWSTR, szcontainerobj: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn SetHostNames(this: *mut core::ffi::c_void, szcontainerapp: windows_core::PCWSTR, szcontainerobj: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::SetHostNames(this, core::mem::transmute(&szcontainerapp), core::mem::transmute(&szcontainerobj)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, dwsaveoption: u32) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, dwsaveoption: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::Close(this, core::mem::transmute(&dwsaveoption)).into() } - unsafe extern "system" fn SetMoniker(this: *mut core::ffi::c_void, dwwhichmoniker: u32, pmk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn SetMoniker(this: *mut core::ffi::c_void, dwwhichmoniker: u32, pmk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::SetMoniker(this, core::mem::transmute(&dwwhichmoniker), windows_core::from_raw_borrowed(&pmk)).into() } - unsafe extern "system" fn GetMoniker(this: *mut core::ffi::c_void, dwassign: u32, dwwhichmoniker: u32, ppmk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn GetMoniker(this: *mut core::ffi::c_void, dwassign: u32, dwwhichmoniker: u32, ppmk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleObject_Impl::GetMoniker(this, core::mem::transmute(&dwassign), core::mem::transmute(&dwwhichmoniker)) { Ok(ok__) => { @@ -3441,17 +2532,11 @@ impl IOleObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitFromData(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, fcreation: super::super::Foundation::BOOL, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn InitFromData(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, fcreation: super::super::Foundation::BOOL, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::InitFromData(this, windows_core::from_raw_borrowed(&pdataobject), core::mem::transmute_copy(&fcreation), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn GetClipboardData(this: *mut core::ffi::c_void, dwreserved: u32, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn GetClipboardData(this: *mut core::ffi::c_void, dwreserved: u32, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleObject_Impl::GetClipboardData(this, core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -3461,17 +2546,11 @@ impl IOleObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoVerb(this: *mut core::ffi::c_void, iverb: i32, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, pactivesite: *mut core::ffi::c_void, lindex: i32, hwndparent: super::super::Foundation::HWND, lprcposrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn DoVerb(this: *mut core::ffi::c_void, iverb: i32, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, pactivesite: *mut core::ffi::c_void, lindex: i32, hwndparent: super::super::Foundation::HWND, lprcposrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::DoVerb(this, core::mem::transmute_copy(&iverb), core::mem::transmute_copy(&lpmsg), windows_core::from_raw_borrowed(&pactivesite), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&lprcposrect)).into() } - unsafe extern "system" fn EnumVerbs(this: *mut core::ffi::c_void, ppenumoleverb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn EnumVerbs(this: *mut core::ffi::c_void, ppenumoleverb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleObject_Impl::EnumVerbs(this) { Ok(ok__) => { @@ -3481,24 +2560,15 @@ impl IOleObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::Update(this).into() } - unsafe extern "system" fn IsUpToDate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn IsUpToDate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::IsUpToDate(this).into() } - unsafe extern "system" fn GetUserClassID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn GetUserClassID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleObject_Impl::GetUserClassID(this) { Ok(ok__) => { @@ -3508,10 +2578,7 @@ impl IOleObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserType(this: *mut core::ffi::c_void, dwformoftype: u32, pszusertype: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn GetUserType(this: *mut core::ffi::c_void, dwformoftype: u32, pszusertype: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleObject_Impl::GetUserType(this, core::mem::transmute(&dwformoftype)) { Ok(ok__) => { @@ -3521,17 +2588,11 @@ impl IOleObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExtent(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, psizel: *const super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn SetExtent(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, psizel: *const super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::SetExtent(this, core::mem::transmute_copy(&dwdrawaspect), core::mem::transmute_copy(&psizel)).into() } - unsafe extern "system" fn GetExtent(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, psizel: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn GetExtent(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, psizel: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleObject_Impl::GetExtent(this, core::mem::transmute_copy(&dwdrawaspect)) { Ok(ok__) => { @@ -3541,10 +2602,7 @@ impl IOleObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, padvsink: *mut core::ffi::c_void, pdwconnection: *mut u32) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, padvsink: *mut core::ffi::c_void, pdwconnection: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleObject_Impl::Advise(this, windows_core::from_raw_borrowed(&padvsink)) { Ok(ok__) => { @@ -3554,17 +2612,11 @@ impl IOleObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwconnection: u32) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwconnection: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::Unadvise(this, core::mem::transmute_copy(&dwconnection)).into() } - unsafe extern "system" fn EnumAdvise(this: *mut core::ffi::c_void, ppenumadvise: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn EnumAdvise(this: *mut core::ffi::c_void, ppenumadvise: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleObject_Impl::EnumAdvise(this) { Ok(ok__) => { @@ -3574,10 +2626,7 @@ impl IOleObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMiscStatus(this: *mut core::ffi::c_void, dwaspect: super::Com::DVASPECT, pdwstatus: *mut OLEMISC) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn GetMiscStatus(this: *mut core::ffi::c_void, dwaspect: super::Com::DVASPECT, pdwstatus: *mut OLEMISC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleObject_Impl::GetMiscStatus(this, core::mem::transmute_copy(&dwaspect)) { Ok(ok__) => { @@ -3587,10 +2636,7 @@ impl IOleObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColorScheme(this: *mut core::ffi::c_void, plogpal: *const super::super::Graphics::Gdi::LOGPALETTE) -> windows_core::HRESULT - where - Identity: IOleObject_Impl, - { + unsafe extern "system" fn SetColorScheme(this: *mut core::ffi::c_void, plogpal: *const super::super::Graphics::Gdi::LOGPALETTE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::SetColorScheme(this, core::mem::transmute_copy(&plogpal)).into() } @@ -3632,42 +2678,24 @@ pub trait IOleParentUndoUnit_Impl: Sized + IOleUndoUnit_Impl { } impl windows_core::RuntimeName for IOleParentUndoUnit {} impl IOleParentUndoUnit_Vtbl { - pub const fn new() -> IOleParentUndoUnit_Vtbl - where - Identity: IOleParentUndoUnit_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleParentUndoUnit_Impl, - { + pub const fn new() -> IOleParentUndoUnit_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleParentUndoUnit_Impl::Open(this, windows_core::from_raw_borrowed(&ppuu)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void, fcommit: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleParentUndoUnit_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void, fcommit: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleParentUndoUnit_Impl::Close(this, windows_core::from_raw_borrowed(&ppuu), core::mem::transmute_copy(&fcommit)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleParentUndoUnit_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleParentUndoUnit_Impl::Add(this, windows_core::from_raw_borrowed(&puu)).into() } - unsafe extern "system" fn FindUnit(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleParentUndoUnit_Impl, - { + unsafe extern "system" fn FindUnit(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleParentUndoUnit_Impl::FindUnit(this, windows_core::from_raw_borrowed(&puu)).into() } - unsafe extern "system" fn GetParentState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT - where - Identity: IOleParentUndoUnit_Impl, - { + unsafe extern "system" fn GetParentState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleParentUndoUnit_Impl::GetParentState(this) { Ok(ok__) => { @@ -3690,7 +2718,7 @@ impl IOleParentUndoUnit_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IOleUILinkContainerA_Impl: Sized { +pub trait IOleUILinkContainerA_Impl: Sized + windows_core::IUnknownImpl { fn GetNextLink(&self, dwlink: u32) -> u32; fn SetLinkUpdateOptions(&self, dwlink: u32, dwupdateopt: u32) -> windows_core::Result<()>; fn GetLinkUpdateOptions(&self, dwlink: u32) -> windows_core::Result; @@ -3702,28 +2730,16 @@ pub trait IOleUILinkContainerA_Impl: Sized { } impl windows_core::RuntimeName for IOleUILinkContainerA {} impl IOleUILinkContainerA_Vtbl { - pub const fn new() -> IOleUILinkContainerA_Vtbl - where - Identity: IOleUILinkContainerA_Impl, - { - unsafe extern "system" fn GetNextLink(this: *mut core::ffi::c_void, dwlink: u32) -> u32 - where - Identity: IOleUILinkContainerA_Impl, - { + pub const fn new() -> IOleUILinkContainerA_Vtbl { + unsafe extern "system" fn GetNextLink(this: *mut core::ffi::c_void, dwlink: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerA_Impl::GetNextLink(this, core::mem::transmute_copy(&dwlink)) } - unsafe extern "system" fn SetLinkUpdateOptions(this: *mut core::ffi::c_void, dwlink: u32, dwupdateopt: u32) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerA_Impl, - { + unsafe extern "system" fn SetLinkUpdateOptions(this: *mut core::ffi::c_void, dwlink: u32, dwupdateopt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerA_Impl::SetLinkUpdateOptions(this, core::mem::transmute_copy(&dwlink), core::mem::transmute_copy(&dwupdateopt)).into() } - unsafe extern "system" fn GetLinkUpdateOptions(this: *mut core::ffi::c_void, dwlink: u32, lpdwupdateopt: *mut u32) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerA_Impl, - { + unsafe extern "system" fn GetLinkUpdateOptions(this: *mut core::ffi::c_void, dwlink: u32, lpdwupdateopt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleUILinkContainerA_Impl::GetLinkUpdateOptions(this, core::mem::transmute_copy(&dwlink)) { Ok(ok__) => { @@ -3733,38 +2749,23 @@ impl IOleUILinkContainerA_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lpszdisplayname: windows_core::PCSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerA_Impl, - { + unsafe extern "system" fn SetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lpszdisplayname: windows_core::PCSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerA_Impl::SetLinkSource(this, core::mem::transmute_copy(&dwlink), core::mem::transmute(&lpszdisplayname), core::mem::transmute_copy(&lenfilename), core::mem::transmute_copy(&pcheaten), core::mem::transmute_copy(&fvalidatesource)).into() } - unsafe extern "system" fn GetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lplpszdisplayname: *mut windows_core::PSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PSTR, lplpszshortlinktype: *mut windows_core::PSTR, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerA_Impl, - { + unsafe extern "system" fn GetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lplpszdisplayname: *mut windows_core::PSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PSTR, lplpszshortlinktype: *mut windows_core::PSTR, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerA_Impl::GetLinkSource(this, core::mem::transmute_copy(&dwlink), core::mem::transmute_copy(&lplpszdisplayname), core::mem::transmute_copy(&lplenfilename), core::mem::transmute_copy(&lplpszfulllinktype), core::mem::transmute_copy(&lplpszshortlinktype), core::mem::transmute_copy(&lpfsourceavailable), core::mem::transmute_copy(&lpfisselected)).into() } - unsafe extern "system" fn OpenLinkSource(this: *mut core::ffi::c_void, dwlink: u32) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerA_Impl, - { + unsafe extern "system" fn OpenLinkSource(this: *mut core::ffi::c_void, dwlink: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerA_Impl::OpenLinkSource(this, core::mem::transmute_copy(&dwlink)).into() } - unsafe extern "system" fn UpdateLink(this: *mut core::ffi::c_void, dwlink: u32, ferrormessage: super::super::Foundation::BOOL, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerA_Impl, - { + unsafe extern "system" fn UpdateLink(this: *mut core::ffi::c_void, dwlink: u32, ferrormessage: super::super::Foundation::BOOL, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerA_Impl::UpdateLink(this, core::mem::transmute_copy(&dwlink), core::mem::transmute_copy(&ferrormessage), core::mem::transmute_copy(&freserved)).into() } - unsafe extern "system" fn CancelLink(this: *mut core::ffi::c_void, dwlink: u32) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerA_Impl, - { + unsafe extern "system" fn CancelLink(this: *mut core::ffi::c_void, dwlink: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerA_Impl::CancelLink(this, core::mem::transmute_copy(&dwlink)).into() } @@ -3784,7 +2785,7 @@ impl IOleUILinkContainerA_Vtbl { iid == &::IID } } -pub trait IOleUILinkContainerW_Impl: Sized { +pub trait IOleUILinkContainerW_Impl: Sized + windows_core::IUnknownImpl { fn GetNextLink(&self, dwlink: u32) -> u32; fn SetLinkUpdateOptions(&self, dwlink: u32, dwupdateopt: u32) -> windows_core::Result<()>; fn GetLinkUpdateOptions(&self, dwlink: u32) -> windows_core::Result; @@ -3796,28 +2797,16 @@ pub trait IOleUILinkContainerW_Impl: Sized { } impl windows_core::RuntimeName for IOleUILinkContainerW {} impl IOleUILinkContainerW_Vtbl { - pub const fn new() -> IOleUILinkContainerW_Vtbl - where - Identity: IOleUILinkContainerW_Impl, - { - unsafe extern "system" fn GetNextLink(this: *mut core::ffi::c_void, dwlink: u32) -> u32 - where - Identity: IOleUILinkContainerW_Impl, - { + pub const fn new() -> IOleUILinkContainerW_Vtbl { + unsafe extern "system" fn GetNextLink(this: *mut core::ffi::c_void, dwlink: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerW_Impl::GetNextLink(this, core::mem::transmute_copy(&dwlink)) } - unsafe extern "system" fn SetLinkUpdateOptions(this: *mut core::ffi::c_void, dwlink: u32, dwupdateopt: u32) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerW_Impl, - { + unsafe extern "system" fn SetLinkUpdateOptions(this: *mut core::ffi::c_void, dwlink: u32, dwupdateopt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerW_Impl::SetLinkUpdateOptions(this, core::mem::transmute_copy(&dwlink), core::mem::transmute_copy(&dwupdateopt)).into() } - unsafe extern "system" fn GetLinkUpdateOptions(this: *mut core::ffi::c_void, dwlink: u32, lpdwupdateopt: *mut u32) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerW_Impl, - { + unsafe extern "system" fn GetLinkUpdateOptions(this: *mut core::ffi::c_void, dwlink: u32, lpdwupdateopt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleUILinkContainerW_Impl::GetLinkUpdateOptions(this, core::mem::transmute_copy(&dwlink)) { Ok(ok__) => { @@ -3827,38 +2816,23 @@ impl IOleUILinkContainerW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lpszdisplayname: windows_core::PCWSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerW_Impl, - { + unsafe extern "system" fn SetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lpszdisplayname: windows_core::PCWSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerW_Impl::SetLinkSource(this, core::mem::transmute_copy(&dwlink), core::mem::transmute(&lpszdisplayname), core::mem::transmute_copy(&lenfilename), core::mem::transmute_copy(&pcheaten), core::mem::transmute_copy(&fvalidatesource)).into() } - unsafe extern "system" fn GetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lplpszdisplayname: *mut windows_core::PWSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PWSTR, lplpszshortlinktype: *mut windows_core::PWSTR, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerW_Impl, - { + unsafe extern "system" fn GetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lplpszdisplayname: *mut windows_core::PWSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PWSTR, lplpszshortlinktype: *mut windows_core::PWSTR, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerW_Impl::GetLinkSource(this, core::mem::transmute_copy(&dwlink), core::mem::transmute_copy(&lplpszdisplayname), core::mem::transmute_copy(&lplenfilename), core::mem::transmute_copy(&lplpszfulllinktype), core::mem::transmute_copy(&lplpszshortlinktype), core::mem::transmute_copy(&lpfsourceavailable), core::mem::transmute_copy(&lpfisselected)).into() } - unsafe extern "system" fn OpenLinkSource(this: *mut core::ffi::c_void, dwlink: u32) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerW_Impl, - { + unsafe extern "system" fn OpenLinkSource(this: *mut core::ffi::c_void, dwlink: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerW_Impl::OpenLinkSource(this, core::mem::transmute_copy(&dwlink)).into() } - unsafe extern "system" fn UpdateLink(this: *mut core::ffi::c_void, dwlink: u32, ferrormessage: super::super::Foundation::BOOL, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerW_Impl, - { + unsafe extern "system" fn UpdateLink(this: *mut core::ffi::c_void, dwlink: u32, ferrormessage: super::super::Foundation::BOOL, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerW_Impl::UpdateLink(this, core::mem::transmute_copy(&dwlink), core::mem::transmute_copy(&ferrormessage), core::mem::transmute_copy(&freserved)).into() } - unsafe extern "system" fn CancelLink(this: *mut core::ffi::c_void, dwlink: u32) -> windows_core::HRESULT - where - Identity: IOleUILinkContainerW_Impl, - { + unsafe extern "system" fn CancelLink(this: *mut core::ffi::c_void, dwlink: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerW_Impl::CancelLink(this, core::mem::transmute_copy(&dwlink)).into() } @@ -3883,14 +2857,8 @@ pub trait IOleUILinkInfoA_Impl: Sized + IOleUILinkContainerA_Impl { } impl windows_core::RuntimeName for IOleUILinkInfoA {} impl IOleUILinkInfoA_Vtbl { - pub const fn new() -> IOleUILinkInfoA_Vtbl - where - Identity: IOleUILinkInfoA_Impl, - { - unsafe extern "system" fn GetLastUpdate(this: *mut core::ffi::c_void, dwlink: u32, lplastupdate: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IOleUILinkInfoA_Impl, - { + pub const fn new() -> IOleUILinkInfoA_Vtbl { + unsafe extern "system" fn GetLastUpdate(this: *mut core::ffi::c_void, dwlink: u32, lplastupdate: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleUILinkInfoA_Impl::GetLastUpdate(this, core::mem::transmute_copy(&dwlink)) { Ok(ok__) => { @@ -3911,14 +2879,8 @@ pub trait IOleUILinkInfoW_Impl: Sized + IOleUILinkContainerW_Impl { } impl windows_core::RuntimeName for IOleUILinkInfoW {} impl IOleUILinkInfoW_Vtbl { - pub const fn new() -> IOleUILinkInfoW_Vtbl - where - Identity: IOleUILinkInfoW_Impl, - { - unsafe extern "system" fn GetLastUpdate(this: *mut core::ffi::c_void, dwlink: u32, lplastupdate: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IOleUILinkInfoW_Impl, - { + pub const fn new() -> IOleUILinkInfoW_Vtbl { + unsafe extern "system" fn GetLastUpdate(this: *mut core::ffi::c_void, dwlink: u32, lplastupdate: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleUILinkInfoW_Impl::GetLastUpdate(this, core::mem::transmute_copy(&dwlink)) { Ok(ok__) => { @@ -3934,7 +2896,7 @@ impl IOleUILinkInfoW_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IOleUIObjInfoA_Impl: Sized { +pub trait IOleUIObjInfoA_Impl: Sized + windows_core::IUnknownImpl { fn GetObjectInfo(&self, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: *mut windows_core::PSTR, lplpsztype: *mut windows_core::PSTR, lplpszshorttype: *mut windows_core::PSTR, lplpszlocation: *mut windows_core::PSTR) -> windows_core::Result<()>; fn GetConvertInfo(&self, dwobject: u32, lpclassid: *mut windows_core::GUID, lpwformat: *mut u16, lpconvertdefaultclassid: *mut windows_core::GUID, lplpclsidexclude: *mut *mut windows_core::GUID, lpcclsidexclude: *mut u32) -> windows_core::Result<()>; fn ConvertObject(&self, dwobject: u32, clsidnew: *const windows_core::GUID) -> windows_core::Result<()>; @@ -3943,42 +2905,24 @@ pub trait IOleUIObjInfoA_Impl: Sized { } impl windows_core::RuntimeName for IOleUIObjInfoA {} impl IOleUIObjInfoA_Vtbl { - pub const fn new() -> IOleUIObjInfoA_Vtbl - where - Identity: IOleUIObjInfoA_Impl, - { - unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: *mut windows_core::PSTR, lplpsztype: *mut windows_core::PSTR, lplpszshorttype: *mut windows_core::PSTR, lplpszlocation: *mut windows_core::PSTR) -> windows_core::HRESULT - where - Identity: IOleUIObjInfoA_Impl, - { + pub const fn new() -> IOleUIObjInfoA_Vtbl { + unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: *mut windows_core::PSTR, lplpsztype: *mut windows_core::PSTR, lplpszshorttype: *mut windows_core::PSTR, lplpszlocation: *mut windows_core::PSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoA_Impl::GetObjectInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&lpdwobjsize), core::mem::transmute_copy(&lplpszlabel), core::mem::transmute_copy(&lplpsztype), core::mem::transmute_copy(&lplpszshorttype), core::mem::transmute_copy(&lplpszlocation)).into() } - unsafe extern "system" fn GetConvertInfo(this: *mut core::ffi::c_void, dwobject: u32, lpclassid: *mut windows_core::GUID, lpwformat: *mut u16, lpconvertdefaultclassid: *mut windows_core::GUID, lplpclsidexclude: *mut *mut windows_core::GUID, lpcclsidexclude: *mut u32) -> windows_core::HRESULT - where - Identity: IOleUIObjInfoA_Impl, - { + unsafe extern "system" fn GetConvertInfo(this: *mut core::ffi::c_void, dwobject: u32, lpclassid: *mut windows_core::GUID, lpwformat: *mut u16, lpconvertdefaultclassid: *mut windows_core::GUID, lplpclsidexclude: *mut *mut windows_core::GUID, lpcclsidexclude: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoA_Impl::GetConvertInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&lpclassid), core::mem::transmute_copy(&lpwformat), core::mem::transmute_copy(&lpconvertdefaultclassid), core::mem::transmute_copy(&lplpclsidexclude), core::mem::transmute_copy(&lpcclsidexclude)).into() } - unsafe extern "system" fn ConvertObject(this: *mut core::ffi::c_void, dwobject: u32, clsidnew: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IOleUIObjInfoA_Impl, - { + unsafe extern "system" fn ConvertObject(this: *mut core::ffi::c_void, dwobject: u32, clsidnew: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoA_Impl::ConvertObject(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&clsidnew)).into() } - unsafe extern "system" fn GetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, phmetapict: *const super::super::Foundation::HGLOBAL, pdvaspect: *const u32, pncurrentscale: *const i32) -> windows_core::HRESULT - where - Identity: IOleUIObjInfoA_Impl, - { + unsafe extern "system" fn GetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, phmetapict: *const super::super::Foundation::HGLOBAL, pdvaspect: *const u32, pncurrentscale: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoA_Impl::GetViewInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&phmetapict), core::mem::transmute_copy(&pdvaspect), core::mem::transmute_copy(&pncurrentscale)).into() } - unsafe extern "system" fn SetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleUIObjInfoA_Impl, - { + unsafe extern "system" fn SetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoA_Impl::SetViewInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&hmetapict), core::mem::transmute_copy(&dvaspect), core::mem::transmute_copy(&ncurrentscale), core::mem::transmute_copy(&brelativetoorig)).into() } @@ -3995,7 +2939,7 @@ impl IOleUIObjInfoA_Vtbl { iid == &::IID } } -pub trait IOleUIObjInfoW_Impl: Sized { +pub trait IOleUIObjInfoW_Impl: Sized + windows_core::IUnknownImpl { fn GetObjectInfo(&self, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: *mut windows_core::PWSTR, lplpsztype: *mut windows_core::PWSTR, lplpszshorttype: *mut windows_core::PWSTR, lplpszlocation: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn GetConvertInfo(&self, dwobject: u32, lpclassid: *mut windows_core::GUID, lpwformat: *mut u16, lpconvertdefaultclassid: *mut windows_core::GUID, lplpclsidexclude: *mut *mut windows_core::GUID, lpcclsidexclude: *mut u32) -> windows_core::Result<()>; fn ConvertObject(&self, dwobject: u32, clsidnew: *const windows_core::GUID) -> windows_core::Result<()>; @@ -4004,42 +2948,24 @@ pub trait IOleUIObjInfoW_Impl: Sized { } impl windows_core::RuntimeName for IOleUIObjInfoW {} impl IOleUIObjInfoW_Vtbl { - pub const fn new() -> IOleUIObjInfoW_Vtbl - where - Identity: IOleUIObjInfoW_Impl, - { - unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: *mut windows_core::PWSTR, lplpsztype: *mut windows_core::PWSTR, lplpszshorttype: *mut windows_core::PWSTR, lplpszlocation: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IOleUIObjInfoW_Impl, - { + pub const fn new() -> IOleUIObjInfoW_Vtbl { + unsafe extern "system" fn GetObjectInfo(this: *mut core::ffi::c_void, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: *mut windows_core::PWSTR, lplpsztype: *mut windows_core::PWSTR, lplpszshorttype: *mut windows_core::PWSTR, lplpszlocation: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoW_Impl::GetObjectInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&lpdwobjsize), core::mem::transmute_copy(&lplpszlabel), core::mem::transmute_copy(&lplpsztype), core::mem::transmute_copy(&lplpszshorttype), core::mem::transmute_copy(&lplpszlocation)).into() } - unsafe extern "system" fn GetConvertInfo(this: *mut core::ffi::c_void, dwobject: u32, lpclassid: *mut windows_core::GUID, lpwformat: *mut u16, lpconvertdefaultclassid: *mut windows_core::GUID, lplpclsidexclude: *mut *mut windows_core::GUID, lpcclsidexclude: *mut u32) -> windows_core::HRESULT - where - Identity: IOleUIObjInfoW_Impl, - { + unsafe extern "system" fn GetConvertInfo(this: *mut core::ffi::c_void, dwobject: u32, lpclassid: *mut windows_core::GUID, lpwformat: *mut u16, lpconvertdefaultclassid: *mut windows_core::GUID, lplpclsidexclude: *mut *mut windows_core::GUID, lpcclsidexclude: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoW_Impl::GetConvertInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&lpclassid), core::mem::transmute_copy(&lpwformat), core::mem::transmute_copy(&lpconvertdefaultclassid), core::mem::transmute_copy(&lplpclsidexclude), core::mem::transmute_copy(&lpcclsidexclude)).into() } - unsafe extern "system" fn ConvertObject(this: *mut core::ffi::c_void, dwobject: u32, clsidnew: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IOleUIObjInfoW_Impl, - { + unsafe extern "system" fn ConvertObject(this: *mut core::ffi::c_void, dwobject: u32, clsidnew: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoW_Impl::ConvertObject(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&clsidnew)).into() } - unsafe extern "system" fn GetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, phmetapict: *const super::super::Foundation::HGLOBAL, pdvaspect: *const u32, pncurrentscale: *const i32) -> windows_core::HRESULT - where - Identity: IOleUIObjInfoW_Impl, - { + unsafe extern "system" fn GetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, phmetapict: *const super::super::Foundation::HGLOBAL, pdvaspect: *const u32, pncurrentscale: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoW_Impl::GetViewInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&phmetapict), core::mem::transmute_copy(&pdvaspect), core::mem::transmute_copy(&pncurrentscale)).into() } - unsafe extern "system" fn SetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleUIObjInfoW_Impl, - { + unsafe extern "system" fn SetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoW_Impl::SetViewInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&hmetapict), core::mem::transmute_copy(&dvaspect), core::mem::transmute_copy(&ncurrentscale), core::mem::transmute_copy(&brelativetoorig)).into() } @@ -4056,7 +2982,7 @@ impl IOleUIObjInfoW_Vtbl { iid == &::IID } } -pub trait IOleUndoManager_Impl: Sized { +pub trait IOleUndoManager_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, ppuu: Option<&IOleParentUndoUnit>) -> windows_core::Result<()>; fn Close(&self, ppuu: Option<&IOleParentUndoUnit>, fcommit: super::super::Foundation::BOOL) -> windows_core::HRESULT; fn Add(&self, puu: Option<&IOleUndoUnit>) -> windows_core::Result<()>; @@ -4072,35 +2998,20 @@ pub trait IOleUndoManager_Impl: Sized { } impl windows_core::RuntimeName for IOleUndoManager {} impl IOleUndoManager_Vtbl { - pub const fn new() -> IOleUndoManager_Vtbl - where - Identity: IOleUndoManager_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + pub const fn new() -> IOleUndoManager_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoManager_Impl::Open(this, windows_core::from_raw_borrowed(&ppuu)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void, fcommit: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void, fcommit: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoManager_Impl::Close(this, windows_core::from_raw_borrowed(&ppuu), core::mem::transmute_copy(&fcommit)) } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoManager_Impl::Add(this, windows_core::from_raw_borrowed(&puu)).into() } - unsafe extern "system" fn GetOpenParentState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn GetOpenParentState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleUndoManager_Impl::GetOpenParentState(this) { Ok(ok__) => { @@ -4110,31 +3021,19 @@ impl IOleUndoManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DiscardFrom(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn DiscardFrom(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoManager_Impl::DiscardFrom(this, windows_core::from_raw_borrowed(&puu)).into() } - unsafe extern "system" fn UndoTo(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn UndoTo(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoManager_Impl::UndoTo(this, windows_core::from_raw_borrowed(&puu)).into() } - unsafe extern "system" fn RedoTo(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn RedoTo(this: *mut core::ffi::c_void, puu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoManager_Impl::RedoTo(this, windows_core::from_raw_borrowed(&puu)).into() } - unsafe extern "system" fn EnumUndoable(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn EnumUndoable(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleUndoManager_Impl::EnumUndoable(this) { Ok(ok__) => { @@ -4144,10 +3043,7 @@ impl IOleUndoManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumRedoable(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn EnumRedoable(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleUndoManager_Impl::EnumRedoable(this) { Ok(ok__) => { @@ -4157,10 +3053,7 @@ impl IOleUndoManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastUndoDescription(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn GetLastUndoDescription(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleUndoManager_Impl::GetLastUndoDescription(this) { Ok(ok__) => { @@ -4170,10 +3063,7 @@ impl IOleUndoManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastRedoDescription(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn GetLastRedoDescription(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleUndoManager_Impl::GetLastRedoDescription(this) { Ok(ok__) => { @@ -4183,10 +3073,7 @@ impl IOleUndoManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleUndoManager_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoManager_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() } @@ -4210,7 +3097,7 @@ impl IOleUndoManager_Vtbl { iid == &::IID } } -pub trait IOleUndoUnit_Impl: Sized { +pub trait IOleUndoUnit_Impl: Sized + windows_core::IUnknownImpl { fn Do(&self, pundomanager: Option<&IOleUndoManager>) -> windows_core::Result<()>; fn GetDescription(&self) -> windows_core::Result; fn GetUnitType(&self, pclsid: *mut windows_core::GUID, plid: *mut i32) -> windows_core::Result<()>; @@ -4218,21 +3105,12 @@ pub trait IOleUndoUnit_Impl: Sized { } impl windows_core::RuntimeName for IOleUndoUnit {} impl IOleUndoUnit_Vtbl { - pub const fn new() -> IOleUndoUnit_Vtbl - where - Identity: IOleUndoUnit_Impl, - { - unsafe extern "system" fn Do(this: *mut core::ffi::c_void, pundomanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleUndoUnit_Impl, - { + pub const fn new() -> IOleUndoUnit_Vtbl { + unsafe extern "system" fn Do(this: *mut core::ffi::c_void, pundomanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoUnit_Impl::Do(this, windows_core::from_raw_borrowed(&pundomanager)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOleUndoUnit_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleUndoUnit_Impl::GetDescription(this) { Ok(ok__) => { @@ -4242,17 +3120,11 @@ impl IOleUndoUnit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUnitType(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID, plid: *mut i32) -> windows_core::HRESULT - where - Identity: IOleUndoUnit_Impl, - { + unsafe extern "system" fn GetUnitType(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID, plid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoUnit_Impl::GetUnitType(this, core::mem::transmute_copy(&pclsid), core::mem::transmute_copy(&plid)).into() } - unsafe extern "system" fn OnNextAdd(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOleUndoUnit_Impl, - { + unsafe extern "system" fn OnNextAdd(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoUnit_Impl::OnNextAdd(this).into() } @@ -4268,20 +3140,14 @@ impl IOleUndoUnit_Vtbl { iid == &::IID } } -pub trait IOleWindow_Impl: Sized { +pub trait IOleWindow_Impl: Sized + windows_core::IUnknownImpl { fn GetWindow(&self) -> windows_core::Result; fn ContextSensitiveHelp(&self, fentermode: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOleWindow {} impl IOleWindow_Vtbl { - pub const fn new() -> IOleWindow_Vtbl - where - Identity: IOleWindow_Impl, - { - unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IOleWindow_Impl, - { + pub const fn new() -> IOleWindow_Vtbl { + unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOleWindow_Impl::GetWindow(this) { Ok(ok__) => { @@ -4291,10 +3157,7 @@ impl IOleWindow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOleWindow_Impl, - { + unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleWindow_Impl::ContextSensitiveHelp(this, core::mem::transmute_copy(&fentermode)).into() } @@ -4309,21 +3172,15 @@ impl IOleWindow_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IParseDisplayName_Impl: Sized { +pub trait IParseDisplayName_Impl: Sized + windows_core::IUnknownImpl { fn ParseDisplayName(&self, pbc: Option<&super::Com::IBindCtx>, pszdisplayname: &windows_core::PCWSTR, pcheaten: *mut u32, ppmkout: *mut Option) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IParseDisplayName {} #[cfg(feature = "Win32_System_Com")] impl IParseDisplayName_Vtbl { - pub const fn new() -> IParseDisplayName_Vtbl - where - Identity: IParseDisplayName_Impl, - { - unsafe extern "system" fn ParseDisplayName(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pszdisplayname: windows_core::PCWSTR, pcheaten: *mut u32, ppmkout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IParseDisplayName_Impl, - { + pub const fn new() -> IParseDisplayName_Vtbl { + unsafe extern "system" fn ParseDisplayName(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pszdisplayname: windows_core::PCWSTR, pcheaten: *mut u32, ppmkout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IParseDisplayName_Impl::ParseDisplayName(this, windows_core::from_raw_borrowed(&pbc), core::mem::transmute(&pszdisplayname), core::mem::transmute_copy(&pcheaten), core::mem::transmute_copy(&ppmkout)).into() } @@ -4333,7 +3190,7 @@ impl IParseDisplayName_Vtbl { iid == &::IID } } -pub trait IPerPropertyBrowsing_Impl: Sized { +pub trait IPerPropertyBrowsing_Impl: Sized + windows_core::IUnknownImpl { fn GetDisplayString(&self, dispid: i32) -> windows_core::Result; fn MapPropertyToPage(&self, dispid: i32) -> windows_core::Result; fn GetPredefinedStrings(&self, dispid: i32, pcastringsout: *mut CALPOLESTR, pcacookiesout: *mut CADWORD) -> windows_core::Result<()>; @@ -4341,14 +3198,8 @@ pub trait IPerPropertyBrowsing_Impl: Sized { } impl windows_core::RuntimeName for IPerPropertyBrowsing {} impl IPerPropertyBrowsing_Vtbl { - pub const fn new() -> IPerPropertyBrowsing_Vtbl - where - Identity: IPerPropertyBrowsing_Impl, - { - unsafe extern "system" fn GetDisplayString(this: *mut core::ffi::c_void, dispid: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPerPropertyBrowsing_Impl, - { + pub const fn new() -> IPerPropertyBrowsing_Vtbl { + unsafe extern "system" fn GetDisplayString(this: *mut core::ffi::c_void, dispid: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerPropertyBrowsing_Impl::GetDisplayString(this, core::mem::transmute_copy(&dispid)) { Ok(ok__) => { @@ -4358,10 +3209,7 @@ impl IPerPropertyBrowsing_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MapPropertyToPage(this: *mut core::ffi::c_void, dispid: i32, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPerPropertyBrowsing_Impl, - { + unsafe extern "system" fn MapPropertyToPage(this: *mut core::ffi::c_void, dispid: i32, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerPropertyBrowsing_Impl::MapPropertyToPage(this, core::mem::transmute_copy(&dispid)) { Ok(ok__) => { @@ -4371,17 +3219,11 @@ impl IPerPropertyBrowsing_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPredefinedStrings(this: *mut core::ffi::c_void, dispid: i32, pcastringsout: *mut CALPOLESTR, pcacookiesout: *mut CADWORD) -> windows_core::HRESULT - where - Identity: IPerPropertyBrowsing_Impl, - { + unsafe extern "system" fn GetPredefinedStrings(this: *mut core::ffi::c_void, dispid: i32, pcastringsout: *mut CALPOLESTR, pcacookiesout: *mut CADWORD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerPropertyBrowsing_Impl::GetPredefinedStrings(this, core::mem::transmute_copy(&dispid), core::mem::transmute_copy(&pcastringsout), core::mem::transmute_copy(&pcacookiesout)).into() } - unsafe extern "system" fn GetPredefinedValue(this: *mut core::ffi::c_void, dispid: i32, dwcookie: u32, pvarout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPerPropertyBrowsing_Impl, - { + unsafe extern "system" fn GetPredefinedValue(this: *mut core::ffi::c_void, dispid: i32, dwcookie: u32, pvarout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerPropertyBrowsing_Impl::GetPredefinedValue(this, core::mem::transmute_copy(&dispid), core::mem::transmute_copy(&dwcookie)) { Ok(ok__) => { @@ -4413,28 +3255,16 @@ pub trait IPersistPropertyBag_Impl: Sized + super::Com::IPersist_Impl { impl windows_core::RuntimeName for IPersistPropertyBag {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IPersistPropertyBag_Vtbl { - pub const fn new() -> IPersistPropertyBag_Vtbl - where - Identity: IPersistPropertyBag_Impl, - { - unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistPropertyBag_Impl, - { + pub const fn new() -> IPersistPropertyBag_Vtbl { + unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistPropertyBag_Impl::InitNew(this).into() } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, perrorlog: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistPropertyBag_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, perrorlog: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistPropertyBag_Impl::Load(this, windows_core::from_raw_borrowed(&ppropbag), windows_core::from_raw_borrowed(&perrorlog)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPersistPropertyBag_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistPropertyBag_Impl::Save(this, windows_core::from_raw_borrowed(&ppropbag), core::mem::transmute_copy(&fcleardirty), core::mem::transmute_copy(&fsaveallproperties)).into() } @@ -4460,35 +3290,20 @@ pub trait IPersistPropertyBag2_Impl: Sized + super::Com::IPersist_Impl { impl windows_core::RuntimeName for IPersistPropertyBag2 {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IPersistPropertyBag2_Vtbl { - pub const fn new() -> IPersistPropertyBag2_Vtbl - where - Identity: IPersistPropertyBag2_Impl, - { - unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistPropertyBag2_Impl, - { + pub const fn new() -> IPersistPropertyBag2_Vtbl { + unsafe extern "system" fn InitNew(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistPropertyBag2_Impl::InitNew(this).into() } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, perrlog: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistPropertyBag2_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, perrlog: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistPropertyBag2_Impl::Load(this, windows_core::from_raw_borrowed(&ppropbag), windows_core::from_raw_borrowed(&perrlog)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPersistPropertyBag2_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistPropertyBag2_Impl::Save(this, windows_core::from_raw_borrowed(&ppropbag), core::mem::transmute_copy(&fcleardirty), core::mem::transmute_copy(&fsaveallproperties)).into() } - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistPropertyBag2_Impl, - { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistPropertyBag2_Impl::IsDirty(this) } @@ -4505,7 +3320,7 @@ impl IPersistPropertyBag2_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] -pub trait IPicture_Impl: Sized { +pub trait IPicture_Impl: Sized + windows_core::IUnknownImpl { fn Handle(&self) -> windows_core::Result; fn hPal(&self) -> windows_core::Result; fn Type(&self) -> windows_core::Result; @@ -4525,14 +3340,8 @@ pub trait IPicture_Impl: Sized { impl windows_core::RuntimeName for IPicture {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IPicture_Vtbl { - pub const fn new() -> IPicture_Vtbl - where - Identity: IPicture_Impl, - { - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut OLE_HANDLE) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + pub const fn new() -> IPicture_Vtbl { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut OLE_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::Handle(this) { Ok(ok__) => { @@ -4542,10 +3351,7 @@ impl IPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn hPal(this: *mut core::ffi::c_void, phpal: *mut OLE_HANDLE) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn hPal(this: *mut core::ffi::c_void, phpal: *mut OLE_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::hPal(this) { Ok(ok__) => { @@ -4555,10 +3361,7 @@ impl IPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut PICTYPE) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut PICTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::Type(this) { Ok(ok__) => { @@ -4568,10 +3371,7 @@ impl IPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::Width(this) { Ok(ok__) => { @@ -4581,10 +3381,7 @@ impl IPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Height(this: *mut core::ffi::c_void, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn Height(this: *mut core::ffi::c_void, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::Height(this) { Ok(ok__) => { @@ -4594,24 +3391,15 @@ impl IPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Render(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, x: i32, y: i32, cx: i32, cy: i32, xsrc: i32, ysrc: i32, cxsrc: i32, cysrc: i32, prcwbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn Render(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, x: i32, y: i32, cx: i32, cy: i32, xsrc: i32, ysrc: i32, cxsrc: i32, cysrc: i32, prcwbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture_Impl::Render(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&cx), core::mem::transmute_copy(&cy), core::mem::transmute_copy(&xsrc), core::mem::transmute_copy(&ysrc), core::mem::transmute_copy(&cxsrc), core::mem::transmute_copy(&cysrc), core::mem::transmute_copy(&prcwbounds)).into() } - unsafe extern "system" fn set_hPal(this: *mut core::ffi::c_void, hpal: OLE_HANDLE) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn set_hPal(this: *mut core::ffi::c_void, hpal: OLE_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture_Impl::set_hPal(this, core::mem::transmute_copy(&hpal)).into() } - unsafe extern "system" fn CurDC(this: *mut core::ffi::c_void, phdc: *mut super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn CurDC(this: *mut core::ffi::c_void, phdc: *mut super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::CurDC(this) { Ok(ok__) => { @@ -4621,17 +3409,11 @@ impl IPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectPicture(this: *mut core::ffi::c_void, hdcin: super::super::Graphics::Gdi::HDC, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut OLE_HANDLE) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn SelectPicture(this: *mut core::ffi::c_void, hdcin: super::super::Graphics::Gdi::HDC, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut OLE_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture_Impl::SelectPicture(this, core::mem::transmute_copy(&hdcin), core::mem::transmute_copy(&phdcout), core::mem::transmute_copy(&phbmpout)).into() } - unsafe extern "system" fn KeepOriginalFormat(this: *mut core::ffi::c_void, pkeep: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn KeepOriginalFormat(this: *mut core::ffi::c_void, pkeep: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::KeepOriginalFormat(this) { Ok(ok__) => { @@ -4641,24 +3423,15 @@ impl IPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeepOriginalFormat(this: *mut core::ffi::c_void, keep: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn SetKeepOriginalFormat(this: *mut core::ffi::c_void, keep: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture_Impl::SetKeepOriginalFormat(this, core::mem::transmute_copy(&keep)).into() } - unsafe extern "system" fn PictureChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn PictureChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture_Impl::PictureChanged(this).into() } - unsafe extern "system" fn SaveAsFile(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsavememcopy: super::super::Foundation::BOOL, pcbsize: *mut i32) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn SaveAsFile(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsavememcopy: super::super::Foundation::BOOL, pcbsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::SaveAsFile(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&fsavememcopy)) { Ok(ok__) => { @@ -4668,10 +3441,7 @@ impl IPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, pdwattr: *mut u32) -> windows_core::HRESULT - where - Identity: IPicture_Impl, - { + unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, pdwattr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::Attributes(this) { Ok(ok__) => { @@ -4704,7 +3474,7 @@ impl IPicture_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] -pub trait IPicture2_Impl: Sized { +pub trait IPicture2_Impl: Sized + windows_core::IUnknownImpl { fn Handle(&self) -> windows_core::Result; fn hPal(&self) -> windows_core::Result; fn Type(&self) -> windows_core::Result; @@ -4724,14 +3494,8 @@ pub trait IPicture2_Impl: Sized { impl windows_core::RuntimeName for IPicture2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IPicture2_Vtbl { - pub const fn new() -> IPicture2_Vtbl - where - Identity: IPicture2_Impl, - { - unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + pub const fn new() -> IPicture2_Vtbl { + unsafe extern "system" fn Handle(this: *mut core::ffi::c_void, phandle: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::Handle(this) { Ok(ok__) => { @@ -4741,10 +3505,7 @@ impl IPicture2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn hPal(this: *mut core::ffi::c_void, phpal: *mut usize) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn hPal(this: *mut core::ffi::c_void, phpal: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::hPal(this) { Ok(ok__) => { @@ -4754,10 +3515,7 @@ impl IPicture2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut i16) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::Type(this) { Ok(ok__) => { @@ -4767,10 +3525,7 @@ impl IPicture2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::Width(this) { Ok(ok__) => { @@ -4780,10 +3535,7 @@ impl IPicture2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Height(this: *mut core::ffi::c_void, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn Height(this: *mut core::ffi::c_void, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::Height(this) { Ok(ok__) => { @@ -4793,24 +3545,15 @@ impl IPicture2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Render(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, x: i32, y: i32, cx: i32, cy: i32, xsrc: i32, ysrc: i32, cxsrc: i32, cysrc: i32, prcwbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn Render(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, x: i32, y: i32, cx: i32, cy: i32, xsrc: i32, ysrc: i32, cxsrc: i32, cysrc: i32, prcwbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture2_Impl::Render(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&cx), core::mem::transmute_copy(&cy), core::mem::transmute_copy(&xsrc), core::mem::transmute_copy(&ysrc), core::mem::transmute_copy(&cxsrc), core::mem::transmute_copy(&cysrc), core::mem::transmute_copy(&prcwbounds)).into() } - unsafe extern "system" fn set_hPal(this: *mut core::ffi::c_void, hpal: usize) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn set_hPal(this: *mut core::ffi::c_void, hpal: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture2_Impl::set_hPal(this, core::mem::transmute_copy(&hpal)).into() } - unsafe extern "system" fn CurDC(this: *mut core::ffi::c_void, phdc: *mut super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn CurDC(this: *mut core::ffi::c_void, phdc: *mut super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::CurDC(this) { Ok(ok__) => { @@ -4820,17 +3563,11 @@ impl IPicture2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectPicture(this: *mut core::ffi::c_void, hdcin: super::super::Graphics::Gdi::HDC, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut usize) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn SelectPicture(this: *mut core::ffi::c_void, hdcin: super::super::Graphics::Gdi::HDC, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture2_Impl::SelectPicture(this, core::mem::transmute_copy(&hdcin), core::mem::transmute_copy(&phdcout), core::mem::transmute_copy(&phbmpout)).into() } - unsafe extern "system" fn KeepOriginalFormat(this: *mut core::ffi::c_void, pkeep: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn KeepOriginalFormat(this: *mut core::ffi::c_void, pkeep: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::KeepOriginalFormat(this) { Ok(ok__) => { @@ -4840,24 +3577,15 @@ impl IPicture2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeepOriginalFormat(this: *mut core::ffi::c_void, keep: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn SetKeepOriginalFormat(this: *mut core::ffi::c_void, keep: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture2_Impl::SetKeepOriginalFormat(this, core::mem::transmute_copy(&keep)).into() } - unsafe extern "system" fn PictureChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn PictureChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture2_Impl::PictureChanged(this).into() } - unsafe extern "system" fn SaveAsFile(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsavememcopy: super::super::Foundation::BOOL, pcbsize: *mut i32) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn SaveAsFile(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsavememcopy: super::super::Foundation::BOOL, pcbsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::SaveAsFile(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&fsavememcopy)) { Ok(ok__) => { @@ -4867,10 +3595,7 @@ impl IPicture2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, pdwattr: *mut u32) -> windows_core::HRESULT - where - Identity: IPicture2_Impl, - { + unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, pdwattr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::Attributes(this) { Ok(ok__) => { @@ -4908,31 +3633,22 @@ pub trait IPictureDisp_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for IPictureDisp {} #[cfg(feature = "Win32_System_Com")] impl IPictureDisp_Vtbl { - pub const fn new() -> IPictureDisp_Vtbl - where - Identity: IPictureDisp_Impl, - { + pub const fn new() -> IPictureDisp_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IPointerInactive_Impl: Sized { +pub trait IPointerInactive_Impl: Sized + windows_core::IUnknownImpl { fn GetActivationPolicy(&self) -> windows_core::Result; fn OnInactiveMouseMove(&self, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, grfkeystate: u32) -> windows_core::Result<()>; fn OnInactiveSetCursor(&self, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPointerInactive {} impl IPointerInactive_Vtbl { - pub const fn new() -> IPointerInactive_Vtbl - where - Identity: IPointerInactive_Impl, - { - unsafe extern "system" fn GetActivationPolicy(this: *mut core::ffi::c_void, pdwpolicy: *mut POINTERINACTIVE) -> windows_core::HRESULT - where - Identity: IPointerInactive_Impl, - { + pub const fn new() -> IPointerInactive_Vtbl { + unsafe extern "system" fn GetActivationPolicy(this: *mut core::ffi::c_void, pdwpolicy: *mut POINTERINACTIVE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPointerInactive_Impl::GetActivationPolicy(this) { Ok(ok__) => { @@ -4942,17 +3658,11 @@ impl IPointerInactive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnInactiveMouseMove(this: *mut core::ffi::c_void, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, grfkeystate: u32) -> windows_core::HRESULT - where - Identity: IPointerInactive_Impl, - { + unsafe extern "system" fn OnInactiveMouseMove(this: *mut core::ffi::c_void, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, grfkeystate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPointerInactive_Impl::OnInactiveMouseMove(this, core::mem::transmute_copy(&prectbounds), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&grfkeystate)).into() } - unsafe extern "system" fn OnInactiveSetCursor(this: *mut core::ffi::c_void, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPointerInactive_Impl, - { + unsafe extern "system" fn OnInactiveSetCursor(this: *mut core::ffi::c_void, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPointerInactive_Impl::OnInactiveSetCursor(this, core::mem::transmute_copy(&prectbounds), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&dwmousemsg), core::mem::transmute_copy(&fsetalways)).into() } @@ -4968,7 +3678,7 @@ impl IPointerInactive_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IPrint_Impl: Sized { +pub trait IPrint_Impl: Sized + windows_core::IUnknownImpl { fn SetInitialPageNum(&self, nfirstpage: i32) -> windows_core::Result<()>; fn GetPageInfo(&self, pnfirstpage: *mut i32, pcpages: *mut i32) -> windows_core::Result<()>; fn Print(&self, grfflags: u32, pptd: *mut *mut super::Com::DVTARGETDEVICE, pppageset: *mut *mut PAGESET, pstgmoptions: *mut super::Com::STGMEDIUM, pcallback: Option<&IContinueCallback>, nfirstpage: i32, pcpagesprinted: *mut i32, pnlastpage: *mut i32) -> windows_core::Result<()>; @@ -4977,28 +3687,16 @@ pub trait IPrint_Impl: Sized { impl windows_core::RuntimeName for IPrint {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl IPrint_Vtbl { - pub const fn new() -> IPrint_Vtbl - where - Identity: IPrint_Impl, - { - unsafe extern "system" fn SetInitialPageNum(this: *mut core::ffi::c_void, nfirstpage: i32) -> windows_core::HRESULT - where - Identity: IPrint_Impl, - { + pub const fn new() -> IPrint_Vtbl { + unsafe extern "system" fn SetInitialPageNum(this: *mut core::ffi::c_void, nfirstpage: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrint_Impl::SetInitialPageNum(this, core::mem::transmute_copy(&nfirstpage)).into() } - unsafe extern "system" fn GetPageInfo(this: *mut core::ffi::c_void, pnfirstpage: *mut i32, pcpages: *mut i32) -> windows_core::HRESULT - where - Identity: IPrint_Impl, - { + unsafe extern "system" fn GetPageInfo(this: *mut core::ffi::c_void, pnfirstpage: *mut i32, pcpages: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrint_Impl::GetPageInfo(this, core::mem::transmute_copy(&pnfirstpage), core::mem::transmute_copy(&pcpages)).into() } - unsafe extern "system" fn Print(this: *mut core::ffi::c_void, grfflags: u32, pptd: *mut *mut super::Com::DVTARGETDEVICE, pppageset: *mut *mut PAGESET, pstgmoptions: *mut super::Com::STGMEDIUM, pcallback: *mut core::ffi::c_void, nfirstpage: i32, pcpagesprinted: *mut i32, pnlastpage: *mut i32) -> windows_core::HRESULT - where - Identity: IPrint_Impl, - { + unsafe extern "system" fn Print(this: *mut core::ffi::c_void, grfflags: u32, pptd: *mut *mut super::Com::DVTARGETDEVICE, pppageset: *mut *mut PAGESET, pstgmoptions: *mut super::Com::STGMEDIUM, pcallback: *mut core::ffi::c_void, nfirstpage: i32, pcpagesprinted: *mut i32, pnlastpage: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrint_Impl::Print(this, core::mem::transmute_copy(&grfflags), core::mem::transmute_copy(&pptd), core::mem::transmute_copy(&pppageset), core::mem::transmute_copy(&pstgmoptions), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&nfirstpage), core::mem::transmute_copy(&pcpagesprinted), core::mem::transmute_copy(&pnlastpage)).into() } @@ -5013,27 +3711,18 @@ impl IPrint_Vtbl { iid == &::IID } } -pub trait IPropertyNotifySink_Impl: Sized { +pub trait IPropertyNotifySink_Impl: Sized + windows_core::IUnknownImpl { fn OnChanged(&self, dispid: i32) -> windows_core::Result<()>; fn OnRequestEdit(&self, dispid: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPropertyNotifySink {} impl IPropertyNotifySink_Vtbl { - pub const fn new() -> IPropertyNotifySink_Vtbl - where - Identity: IPropertyNotifySink_Impl, - { - unsafe extern "system" fn OnChanged(this: *mut core::ffi::c_void, dispid: i32) -> windows_core::HRESULT - where - Identity: IPropertyNotifySink_Impl, - { + pub const fn new() -> IPropertyNotifySink_Vtbl { + unsafe extern "system" fn OnChanged(this: *mut core::ffi::c_void, dispid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyNotifySink_Impl::OnChanged(this, core::mem::transmute_copy(&dispid)).into() } - unsafe extern "system" fn OnRequestEdit(this: *mut core::ffi::c_void, dispid: i32) -> windows_core::HRESULT - where - Identity: IPropertyNotifySink_Impl, - { + unsafe extern "system" fn OnRequestEdit(this: *mut core::ffi::c_void, dispid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyNotifySink_Impl::OnRequestEdit(this, core::mem::transmute_copy(&dispid)).into() } @@ -5048,7 +3737,7 @@ impl IPropertyNotifySink_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IPropertyPage_Impl: Sized { +pub trait IPropertyPage_Impl: Sized + windows_core::IUnknownImpl { fn SetPageSite(&self, ppagesite: Option<&IPropertyPageSite>) -> windows_core::Result<()>; fn Activate(&self, hwndparent: super::super::Foundation::HWND, prect: *const super::super::Foundation::RECT, bmodal: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn Deactivate(&self) -> windows_core::Result<()>; @@ -5065,84 +3754,48 @@ pub trait IPropertyPage_Impl: Sized { impl windows_core::RuntimeName for IPropertyPage {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IPropertyPage_Vtbl { - pub const fn new() -> IPropertyPage_Vtbl - where - Identity: IPropertyPage_Impl, - { - unsafe extern "system" fn SetPageSite(this: *mut core::ffi::c_void, ppagesite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + pub const fn new() -> IPropertyPage_Vtbl { + unsafe extern "system" fn SetPageSite(this: *mut core::ffi::c_void, ppagesite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::SetPageSite(this, windows_core::from_raw_borrowed(&ppagesite)).into() } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, prect: *const super::super::Foundation::RECT, bmodal: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, prect: *const super::super::Foundation::RECT, bmodal: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::Activate(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&prect), core::mem::transmute_copy(&bmodal)).into() } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::Deactivate(this).into() } - unsafe extern "system" fn GetPageInfo(this: *mut core::ffi::c_void, ppageinfo: *mut PROPPAGEINFO) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + unsafe extern "system" fn GetPageInfo(this: *mut core::ffi::c_void, ppageinfo: *mut PROPPAGEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::GetPageInfo(this, core::mem::transmute_copy(&ppageinfo)).into() } - unsafe extern "system" fn SetObjects(this: *mut core::ffi::c_void, cobjects: u32, ppunk: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + unsafe extern "system" fn SetObjects(this: *mut core::ffi::c_void, cobjects: u32, ppunk: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::SetObjects(this, core::mem::transmute_copy(&cobjects), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, ncmdshow: u32) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, ncmdshow: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::Show(this, core::mem::transmute_copy(&ncmdshow)).into() } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::Move(this, core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn IsPageDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + unsafe extern "system" fn IsPageDirty(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::IsPageDirty(this).into() } - unsafe extern "system" fn Apply(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + unsafe extern "system" fn Apply(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::Apply(this).into() } - unsafe extern "system" fn Help(this: *mut core::ffi::c_void, pszhelpdir: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + unsafe extern "system" fn Help(this: *mut core::ffi::c_void, pszhelpdir: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::Help(this, core::mem::transmute(&pszhelpdir)).into() } - unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IPropertyPage_Impl, - { + unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&pmsg)).into() } @@ -5173,14 +3826,8 @@ pub trait IPropertyPage2_Impl: Sized + IPropertyPage_Impl { impl windows_core::RuntimeName for IPropertyPage2 {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IPropertyPage2_Vtbl { - pub const fn new() -> IPropertyPage2_Vtbl - where - Identity: IPropertyPage2_Impl, - { - unsafe extern "system" fn EditProperty(this: *mut core::ffi::c_void, dispid: i32) -> windows_core::HRESULT - where - Identity: IPropertyPage2_Impl, - { + pub const fn new() -> IPropertyPage2_Vtbl { + unsafe extern "system" fn EditProperty(this: *mut core::ffi::c_void, dispid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage2_Impl::EditProperty(this, core::mem::transmute_copy(&dispid)).into() } @@ -5191,7 +3838,7 @@ impl IPropertyPage2_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IPropertyPageSite_Impl: Sized { +pub trait IPropertyPageSite_Impl: Sized + windows_core::IUnknownImpl { fn OnStatusChange(&self, dwflags: &PROPPAGESTATUS) -> windows_core::Result<()>; fn GetLocaleID(&self) -> windows_core::Result; fn GetPageContainer(&self) -> windows_core::Result; @@ -5201,21 +3848,12 @@ pub trait IPropertyPageSite_Impl: Sized { impl windows_core::RuntimeName for IPropertyPageSite {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IPropertyPageSite_Vtbl { - pub const fn new() -> IPropertyPageSite_Vtbl - where - Identity: IPropertyPageSite_Impl, - { - unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IPropertyPageSite_Impl, - { + pub const fn new() -> IPropertyPageSite_Vtbl { + unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPageSite_Impl::OnStatusChange(this, core::mem::transmute(&dwflags)).into() } - unsafe extern "system" fn GetLocaleID(this: *mut core::ffi::c_void, plocaleid: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyPageSite_Impl, - { + unsafe extern "system" fn GetLocaleID(this: *mut core::ffi::c_void, plocaleid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyPageSite_Impl::GetLocaleID(this) { Ok(ok__) => { @@ -5225,10 +3863,7 @@ impl IPropertyPageSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPageContainer(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyPageSite_Impl, - { + unsafe extern "system" fn GetPageContainer(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyPageSite_Impl::GetPageContainer(this) { Ok(ok__) => { @@ -5238,10 +3873,7 @@ impl IPropertyPageSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IPropertyPageSite_Impl, - { + unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPageSite_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&pmsg)).into() } @@ -5257,19 +3889,13 @@ impl IPropertyPageSite_Vtbl { iid == &::IID } } -pub trait IProtectFocus_Impl: Sized { +pub trait IProtectFocus_Impl: Sized + windows_core::IUnknownImpl { fn AllowFocusChange(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IProtectFocus {} impl IProtectFocus_Vtbl { - pub const fn new() -> IProtectFocus_Vtbl - where - Identity: IProtectFocus_Impl, - { - unsafe extern "system" fn AllowFocusChange(this: *mut core::ffi::c_void, pfallow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IProtectFocus_Impl, - { + pub const fn new() -> IProtectFocus_Vtbl { + unsafe extern "system" fn AllowFocusChange(this: *mut core::ffi::c_void, pfallow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProtectFocus_Impl::AllowFocusChange(this) { Ok(ok__) => { @@ -5286,7 +3912,7 @@ impl IProtectFocus_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IProtectedModeMenuServices_Impl: Sized { +pub trait IProtectedModeMenuServices_Impl: Sized + windows_core::IUnknownImpl { fn CreateMenu(&self) -> windows_core::Result; fn LoadMenu(&self, pszmodulename: &windows_core::PCWSTR, pszmenuname: &windows_core::PCWSTR) -> windows_core::Result; fn LoadMenuID(&self, pszmodulename: &windows_core::PCWSTR, wresourceid: u16) -> windows_core::Result; @@ -5295,14 +3921,8 @@ pub trait IProtectedModeMenuServices_Impl: Sized { impl windows_core::RuntimeName for IProtectedModeMenuServices {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IProtectedModeMenuServices_Vtbl { - pub const fn new() -> IProtectedModeMenuServices_Vtbl - where - Identity: IProtectedModeMenuServices_Impl, - { - unsafe extern "system" fn CreateMenu(this: *mut core::ffi::c_void, phmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::HRESULT - where - Identity: IProtectedModeMenuServices_Impl, - { + pub const fn new() -> IProtectedModeMenuServices_Vtbl { + unsafe extern "system" fn CreateMenu(this: *mut core::ffi::c_void, phmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProtectedModeMenuServices_Impl::CreateMenu(this) { Ok(ok__) => { @@ -5312,10 +3932,7 @@ impl IProtectedModeMenuServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadMenu(this: *mut core::ffi::c_void, pszmodulename: windows_core::PCWSTR, pszmenuname: windows_core::PCWSTR, phmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::HRESULT - where - Identity: IProtectedModeMenuServices_Impl, - { + unsafe extern "system" fn LoadMenu(this: *mut core::ffi::c_void, pszmodulename: windows_core::PCWSTR, pszmenuname: windows_core::PCWSTR, phmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProtectedModeMenuServices_Impl::LoadMenu(this, core::mem::transmute(&pszmodulename), core::mem::transmute(&pszmenuname)) { Ok(ok__) => { @@ -5325,10 +3942,7 @@ impl IProtectedModeMenuServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadMenuID(this: *mut core::ffi::c_void, pszmodulename: windows_core::PCWSTR, wresourceid: u16, phmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::HRESULT - where - Identity: IProtectedModeMenuServices_Impl, - { + unsafe extern "system" fn LoadMenuID(this: *mut core::ffi::c_void, pszmodulename: windows_core::PCWSTR, wresourceid: u16, phmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProtectedModeMenuServices_Impl::LoadMenuID(this, core::mem::transmute(&pszmodulename), core::mem::transmute_copy(&wresourceid)) { Ok(ok__) => { @@ -5350,21 +3964,15 @@ impl IProtectedModeMenuServices_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IProvideClassInfo_Impl: Sized { +pub trait IProvideClassInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetClassInfo(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IProvideClassInfo {} #[cfg(feature = "Win32_System_Com")] impl IProvideClassInfo_Vtbl { - pub const fn new() -> IProvideClassInfo_Vtbl - where - Identity: IProvideClassInfo_Impl, - { - unsafe extern "system" fn GetClassInfo(this: *mut core::ffi::c_void, ppti: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProvideClassInfo_Impl, - { + pub const fn new() -> IProvideClassInfo_Vtbl { + unsafe extern "system" fn GetClassInfo(this: *mut core::ffi::c_void, ppti: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideClassInfo_Impl::GetClassInfo(this) { Ok(ok__) => { @@ -5388,14 +3996,8 @@ pub trait IProvideClassInfo2_Impl: Sized + IProvideClassInfo_Impl { impl windows_core::RuntimeName for IProvideClassInfo2 {} #[cfg(feature = "Win32_System_Com")] impl IProvideClassInfo2_Vtbl { - pub const fn new() -> IProvideClassInfo2_Vtbl - where - Identity: IProvideClassInfo2_Impl, - { - unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, dwguidkind: u32, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IProvideClassInfo2_Impl, - { + pub const fn new() -> IProvideClassInfo2_Vtbl { + unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, dwguidkind: u32, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideClassInfo2_Impl::GetGUID(this, core::mem::transmute_copy(&dwguidkind)) { Ok(ok__) => { @@ -5420,14 +4022,8 @@ pub trait IProvideMultipleClassInfo_Impl: Sized + IProvideClassInfo2_Impl { impl windows_core::RuntimeName for IProvideMultipleClassInfo {} #[cfg(feature = "Win32_System_Com")] impl IProvideMultipleClassInfo_Vtbl { - pub const fn new() -> IProvideMultipleClassInfo_Vtbl - where - Identity: IProvideMultipleClassInfo_Impl, - { - unsafe extern "system" fn GetMultiTypeInfoCount(this: *mut core::ffi::c_void, pcti: *mut u32) -> windows_core::HRESULT - where - Identity: IProvideMultipleClassInfo_Impl, - { + pub const fn new() -> IProvideMultipleClassInfo_Vtbl { + unsafe extern "system" fn GetMultiTypeInfoCount(this: *mut core::ffi::c_void, pcti: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideMultipleClassInfo_Impl::GetMultiTypeInfoCount(this) { Ok(ok__) => { @@ -5437,10 +4033,7 @@ impl IProvideMultipleClassInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInfoOfIndex(this: *mut core::ffi::c_void, iti: u32, dwflags: MULTICLASSINFO_FLAGS, ppticoclass: *mut *mut core::ffi::c_void, pdwtiflags: *mut u32, pcdispidreserved: *mut u32, piidprimary: *mut windows_core::GUID, piidsource: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IProvideMultipleClassInfo_Impl, - { + unsafe extern "system" fn GetInfoOfIndex(this: *mut core::ffi::c_void, iti: u32, dwflags: MULTICLASSINFO_FLAGS, ppticoclass: *mut *mut core::ffi::c_void, pdwtiflags: *mut u32, pcdispidreserved: *mut u32, piidprimary: *mut windows_core::GUID, piidsource: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProvideMultipleClassInfo_Impl::GetInfoOfIndex(this, core::mem::transmute_copy(&iti), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ppticoclass), core::mem::transmute_copy(&pdwtiflags), core::mem::transmute_copy(&pcdispidreserved), core::mem::transmute_copy(&piidprimary), core::mem::transmute_copy(&piidsource)).into() } @@ -5454,19 +4047,13 @@ impl IProvideMultipleClassInfo_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IProvideRuntimeContext_Impl: Sized { +pub trait IProvideRuntimeContext_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentSourceContext(&self, pdwcontext: *mut usize, pfexecutingglobalcode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IProvideRuntimeContext {} impl IProvideRuntimeContext_Vtbl { - pub const fn new() -> IProvideRuntimeContext_Vtbl - where - Identity: IProvideRuntimeContext_Impl, - { - unsafe extern "system" fn GetCurrentSourceContext(this: *mut core::ffi::c_void, pdwcontext: *mut usize, pfexecutingglobalcode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IProvideRuntimeContext_Impl, - { + pub const fn new() -> IProvideRuntimeContext_Vtbl { + unsafe extern "system" fn GetCurrentSourceContext(this: *mut core::ffi::c_void, pdwcontext: *mut usize, pfexecutingglobalcode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProvideRuntimeContext_Impl::GetCurrentSourceContext(this, core::mem::transmute_copy(&pdwcontext), core::mem::transmute_copy(&pfexecutingglobalcode)).into() } @@ -5477,7 +4064,7 @@ impl IProvideRuntimeContext_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] -pub trait IQuickActivate_Impl: Sized { +pub trait IQuickActivate_Impl: Sized + windows_core::IUnknownImpl { fn QuickActivate(&self, pqacontainer: *const QACONTAINER, pqacontrol: *mut QACONTROL) -> windows_core::Result<()>; fn SetContentExtent(&self, psizel: *const super::super::Foundation::SIZE) -> windows_core::Result<()>; fn GetContentExtent(&self) -> windows_core::Result; @@ -5486,28 +4073,16 @@ pub trait IQuickActivate_Impl: Sized { impl windows_core::RuntimeName for IQuickActivate {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IQuickActivate_Vtbl { - pub const fn new() -> IQuickActivate_Vtbl - where - Identity: IQuickActivate_Impl, - { - unsafe extern "system" fn QuickActivate(this: *mut core::ffi::c_void, pqacontainer: *const QACONTAINER, pqacontrol: *mut QACONTROL) -> windows_core::HRESULT - where - Identity: IQuickActivate_Impl, - { + pub const fn new() -> IQuickActivate_Vtbl { + unsafe extern "system" fn QuickActivate(this: *mut core::ffi::c_void, pqacontainer: *const QACONTAINER, pqacontrol: *mut QACONTROL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQuickActivate_Impl::QuickActivate(this, core::mem::transmute_copy(&pqacontainer), core::mem::transmute_copy(&pqacontrol)).into() } - unsafe extern "system" fn SetContentExtent(this: *mut core::ffi::c_void, psizel: *const super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IQuickActivate_Impl, - { + unsafe extern "system" fn SetContentExtent(this: *mut core::ffi::c_void, psizel: *const super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQuickActivate_Impl::SetContentExtent(this, core::mem::transmute_copy(&psizel)).into() } - unsafe extern "system" fn GetContentExtent(this: *mut core::ffi::c_void, psizel: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IQuickActivate_Impl, - { + unsafe extern "system" fn GetContentExtent(this: *mut core::ffi::c_void, psizel: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQuickActivate_Impl::GetContentExtent(this) { Ok(ok__) => { @@ -5529,7 +4104,7 @@ impl IQuickActivate_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRecordInfo_Impl: Sized { +pub trait IRecordInfo_Impl: Sized + windows_core::IUnknownImpl { fn RecordInit(&self, pvnew: *mut core::ffi::c_void) -> windows_core::Result<()>; 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<()>; @@ -5551,35 +4126,20 @@ pub trait IRecordInfo_Impl: Sized { impl windows_core::RuntimeName for IRecordInfo {} #[cfg(feature = "Win32_System_Com")] impl IRecordInfo_Vtbl { - pub const fn new() -> IRecordInfo_Vtbl - where - Identity: IRecordInfo_Impl, - { - unsafe extern "system" fn RecordInit(this: *mut core::ffi::c_void, pvnew: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + pub const fn new() -> IRecordInfo_Vtbl { + unsafe extern "system" fn RecordInit(this: *mut core::ffi::c_void, pvnew: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::RecordInit(this, core::mem::transmute_copy(&pvnew)).into() } - unsafe extern "system" fn RecordClear(this: *mut core::ffi::c_void, pvexisting: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn RecordClear(this: *mut core::ffi::c_void, pvexisting: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::RecordClear(this, core::mem::transmute_copy(&pvexisting)).into() } - unsafe extern "system" fn RecordCopy(this: *mut core::ffi::c_void, pvexisting: *const core::ffi::c_void, pvnew: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn RecordCopy(this: *mut core::ffi::c_void, pvexisting: *const core::ffi::c_void, pvnew: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::RecordCopy(this, core::mem::transmute_copy(&pvexisting), core::mem::transmute_copy(&pvnew)).into() } - unsafe extern "system" fn GetGuid(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn GetGuid(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRecordInfo_Impl::GetGuid(this) { Ok(ok__) => { @@ -5589,10 +4149,7 @@ impl IRecordInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRecordInfo_Impl::GetName(this) { Ok(ok__) => { @@ -5602,10 +4159,7 @@ impl IRecordInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRecordInfo_Impl::GetSize(this) { Ok(ok__) => { @@ -5615,10 +4169,7 @@ impl IRecordInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, pptypeinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn GetTypeInfo(this: *mut core::ffi::c_void, pptypeinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRecordInfo_Impl::GetTypeInfo(this) { Ok(ok__) => { @@ -5628,10 +4179,7 @@ impl IRecordInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetField(this: *mut core::ffi::c_void, pvdata: *const core::ffi::c_void, szfieldname: windows_core::PCWSTR, pvarfield: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn GetField(this: *mut core::ffi::c_void, pvdata: *const core::ffi::c_void, szfieldname: windows_core::PCWSTR, pvarfield: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRecordInfo_Impl::GetField(this, core::mem::transmute_copy(&pvdata), core::mem::transmute(&szfieldname)) { Ok(ok__) => { @@ -5641,59 +4189,35 @@ impl IRecordInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFieldNoCopy(this: *mut core::ffi::c_void, pvdata: *const core::ffi::c_void, szfieldname: windows_core::PCWSTR, pvarfield: *mut core::mem::MaybeUninit, ppvdatacarray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn GetFieldNoCopy(this: *mut core::ffi::c_void, pvdata: *const core::ffi::c_void, szfieldname: windows_core::PCWSTR, pvarfield: *mut core::mem::MaybeUninit, ppvdatacarray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::GetFieldNoCopy(this, core::mem::transmute_copy(&pvdata), core::mem::transmute(&szfieldname), core::mem::transmute_copy(&pvarfield), core::mem::transmute_copy(&ppvdatacarray)).into() } - unsafe extern "system" fn PutField(this: *mut core::ffi::c_void, wflags: u32, pvdata: *mut core::ffi::c_void, szfieldname: windows_core::PCWSTR, pvarfield: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn PutField(this: *mut core::ffi::c_void, wflags: u32, pvdata: *mut core::ffi::c_void, szfieldname: windows_core::PCWSTR, pvarfield: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::PutField(this, core::mem::transmute_copy(&wflags), core::mem::transmute_copy(&pvdata), core::mem::transmute(&szfieldname), core::mem::transmute_copy(&pvarfield)).into() } - unsafe extern "system" fn PutFieldNoCopy(this: *mut core::ffi::c_void, wflags: u32, pvdata: *mut core::ffi::c_void, szfieldname: windows_core::PCWSTR, pvarfield: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn PutFieldNoCopy(this: *mut core::ffi::c_void, wflags: u32, pvdata: *mut core::ffi::c_void, szfieldname: windows_core::PCWSTR, pvarfield: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::PutFieldNoCopy(this, 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(this: *mut core::ffi::c_void, pcnames: *mut u32, rgbstrnames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn GetFieldNames(this: *mut core::ffi::c_void, pcnames: *mut u32, rgbstrnames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::GetFieldNames(this, core::mem::transmute_copy(&pcnames), core::mem::transmute_copy(&rgbstrnames)).into() } - unsafe extern "system" fn IsMatchingType(this: *mut core::ffi::c_void, precordinfo: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn IsMatchingType(this: *mut core::ffi::c_void, precordinfo: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::IsMatchingType(this, windows_core::from_raw_borrowed(&precordinfo)) } - unsafe extern "system" fn RecordCreate(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn RecordCreate(this: *mut core::ffi::c_void) -> *mut core::ffi::c_void { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::RecordCreate(this) } - unsafe extern "system" fn RecordCreateCopy(this: *mut core::ffi::c_void, pvsource: *const core::ffi::c_void, ppvdest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn RecordCreateCopy(this: *mut core::ffi::c_void, pvsource: *const core::ffi::c_void, ppvdest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::RecordCreateCopy(this, core::mem::transmute_copy(&pvsource), core::mem::transmute_copy(&ppvdest)).into() } - unsafe extern "system" fn RecordDestroy(this: *mut core::ffi::c_void, pvrecord: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRecordInfo_Impl, - { + unsafe extern "system" fn RecordDestroy(this: *mut core::ffi::c_void, pvrecord: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::RecordDestroy(this, core::mem::transmute_copy(&pvrecord)).into() } @@ -5721,27 +4245,18 @@ impl IRecordInfo_Vtbl { iid == &::IID } } -pub trait ISimpleFrameSite_Impl: Sized { +pub trait ISimpleFrameSite_Impl: Sized + windows_core::IUnknownImpl { fn PreMessageFilter(&self, hwnd: super::super::Foundation::HWND, msg: u32, wp: super::super::Foundation::WPARAM, lp: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT, pdwcookie: *mut u32) -> windows_core::Result<()>; fn PostMessageFilter(&self, hwnd: super::super::Foundation::HWND, msg: u32, wp: super::super::Foundation::WPARAM, lp: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT, dwcookie: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISimpleFrameSite {} impl ISimpleFrameSite_Vtbl { - pub const fn new() -> ISimpleFrameSite_Vtbl - where - Identity: ISimpleFrameSite_Impl, - { - unsafe extern "system" fn PreMessageFilter(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wp: super::super::Foundation::WPARAM, lp: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ISimpleFrameSite_Impl, - { + pub const fn new() -> ISimpleFrameSite_Vtbl { + unsafe extern "system" fn PreMessageFilter(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wp: super::super::Foundation::WPARAM, lp: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimpleFrameSite_Impl::PreMessageFilter(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wp), core::mem::transmute_copy(&lp), core::mem::transmute_copy(&plresult), core::mem::transmute_copy(&pdwcookie)).into() } - unsafe extern "system" fn PostMessageFilter(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wp: super::super::Foundation::WPARAM, lp: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ISimpleFrameSite_Impl, - { + unsafe extern "system" fn PostMessageFilter(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wp: super::super::Foundation::WPARAM, lp: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimpleFrameSite_Impl::PostMessageFilter(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wp), core::mem::transmute_copy(&lp), core::mem::transmute_copy(&plresult), core::mem::transmute_copy(&dwcookie)).into() } @@ -5755,19 +4270,13 @@ impl ISimpleFrameSite_Vtbl { iid == &::IID } } -pub trait ISpecifyPropertyPages_Impl: Sized { +pub trait ISpecifyPropertyPages_Impl: Sized + windows_core::IUnknownImpl { fn GetPages(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISpecifyPropertyPages {} impl ISpecifyPropertyPages_Vtbl { - pub const fn new() -> ISpecifyPropertyPages_Vtbl - where - Identity: ISpecifyPropertyPages_Impl, - { - unsafe extern "system" fn GetPages(this: *mut core::ffi::c_void, ppages: *mut CAUUID) -> windows_core::HRESULT - where - Identity: ISpecifyPropertyPages_Impl, - { + pub const fn new() -> ISpecifyPropertyPages_Vtbl { + unsafe extern "system" fn GetPages(this: *mut core::ffi::c_void, ppages: *mut CAUUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpecifyPropertyPages_Impl::GetPages(this) { Ok(ok__) => { @@ -5784,7 +4293,7 @@ impl ISpecifyPropertyPages_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITypeChangeEvents_Impl: Sized { +pub trait ITypeChangeEvents_Impl: Sized + windows_core::IUnknownImpl { fn RequestTypeChange(&self, changekind: CHANGEKIND, ptinfobefore: Option<&super::Com::ITypeInfo>, pstrname: &windows_core::PCWSTR) -> windows_core::Result; fn AfterTypeChange(&self, changekind: CHANGEKIND, ptinfoafter: Option<&super::Com::ITypeInfo>, pstrname: &windows_core::PCWSTR) -> windows_core::Result<()>; } @@ -5792,14 +4301,8 @@ pub trait ITypeChangeEvents_Impl: Sized { impl windows_core::RuntimeName for ITypeChangeEvents {} #[cfg(feature = "Win32_System_Com")] impl ITypeChangeEvents_Vtbl { - pub const fn new() -> ITypeChangeEvents_Vtbl - where - Identity: ITypeChangeEvents_Impl, - { - unsafe extern "system" fn RequestTypeChange(this: *mut core::ffi::c_void, changekind: CHANGEKIND, ptinfobefore: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR, pfcancel: *mut i32) -> windows_core::HRESULT - where - Identity: ITypeChangeEvents_Impl, - { + pub const fn new() -> ITypeChangeEvents_Vtbl { + unsafe extern "system" fn RequestTypeChange(this: *mut core::ffi::c_void, changekind: CHANGEKIND, ptinfobefore: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR, pfcancel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeChangeEvents_Impl::RequestTypeChange(this, core::mem::transmute_copy(&changekind), windows_core::from_raw_borrowed(&ptinfobefore), core::mem::transmute(&pstrname)) { Ok(ok__) => { @@ -5809,10 +4312,7 @@ impl ITypeChangeEvents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AfterTypeChange(this: *mut core::ffi::c_void, changekind: CHANGEKIND, ptinfoafter: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITypeChangeEvents_Impl, - { + unsafe extern "system" fn AfterTypeChange(this: *mut core::ffi::c_void, changekind: CHANGEKIND, ptinfoafter: *mut core::ffi::c_void, pstrname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeChangeEvents_Impl::AfterTypeChange(this, core::mem::transmute_copy(&changekind), windows_core::from_raw_borrowed(&ptinfoafter), core::mem::transmute(&pstrname)).into() } @@ -5827,21 +4327,15 @@ impl ITypeChangeEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITypeFactory_Impl: Sized { +pub trait ITypeFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateFromTypeInfo(&self, ptypeinfo: Option<&super::Com::ITypeInfo>, riid: *const windows_core::GUID) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ITypeFactory {} #[cfg(feature = "Win32_System_Com")] impl ITypeFactory_Vtbl { - pub const fn new() -> ITypeFactory_Vtbl - where - Identity: ITypeFactory_Impl, - { - unsafe extern "system" fn CreateFromTypeInfo(this: *mut core::ffi::c_void, ptypeinfo: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeFactory_Impl, - { + pub const fn new() -> ITypeFactory_Vtbl { + unsafe extern "system" fn CreateFromTypeInfo(this: *mut core::ffi::c_void, ptypeinfo: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeFactory_Impl::CreateFromTypeInfo(this, windows_core::from_raw_borrowed(&ptypeinfo), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -5857,7 +4351,7 @@ impl ITypeFactory_Vtbl { iid == &::IID } } -pub trait ITypeMarshal_Impl: Sized { +pub trait ITypeMarshal_Impl: Sized + windows_core::IUnknownImpl { fn Size(&self, pvtype: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void) -> windows_core::Result; fn Marshal(&self, pvtype: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, cbbufferlength: u32, pbuffer: *mut u8, pcbwritten: *mut u32) -> windows_core::Result<()>; fn Unmarshal(&self, pvtype: *mut core::ffi::c_void, dwflags: u32, cbbufferlength: u32, pbuffer: *const u8, pcbread: *mut u32) -> windows_core::Result<()>; @@ -5865,14 +4359,8 @@ pub trait ITypeMarshal_Impl: Sized { } impl windows_core::RuntimeName for ITypeMarshal {} impl ITypeMarshal_Vtbl { - pub const fn new() -> ITypeMarshal_Vtbl - where - Identity: ITypeMarshal_Impl, - { - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, pvtype: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, psize: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeMarshal_Impl, - { + pub const fn new() -> ITypeMarshal_Vtbl { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, pvtype: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, psize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITypeMarshal_Impl::Size(this, core::mem::transmute_copy(&pvtype), core::mem::transmute_copy(&dwdestcontext), core::mem::transmute_copy(&pvdestcontext)) { Ok(ok__) => { @@ -5882,24 +4370,15 @@ impl ITypeMarshal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Marshal(this: *mut core::ffi::c_void, pvtype: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, cbbufferlength: u32, pbuffer: *mut u8, pcbwritten: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeMarshal_Impl, - { + unsafe extern "system" fn Marshal(this: *mut core::ffi::c_void, pvtype: *const core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const core::ffi::c_void, cbbufferlength: u32, pbuffer: *mut u8, pcbwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeMarshal_Impl::Marshal(this, core::mem::transmute_copy(&pvtype), core::mem::transmute_copy(&dwdestcontext), core::mem::transmute_copy(&pvdestcontext), core::mem::transmute_copy(&cbbufferlength), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&pcbwritten)).into() } - unsafe extern "system" fn Unmarshal(this: *mut core::ffi::c_void, pvtype: *mut core::ffi::c_void, dwflags: u32, cbbufferlength: u32, pbuffer: *const u8, pcbread: *mut u32) -> windows_core::HRESULT - where - Identity: ITypeMarshal_Impl, - { + unsafe extern "system" fn Unmarshal(this: *mut core::ffi::c_void, pvtype: *mut core::ffi::c_void, dwflags: u32, cbbufferlength: u32, pbuffer: *const u8, pcbread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeMarshal_Impl::Unmarshal(this, core::mem::transmute_copy(&pvtype), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&cbbufferlength), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&pcbread)).into() } - unsafe extern "system" fn Free(this: *mut core::ffi::c_void, pvtype: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITypeMarshal_Impl, - { + unsafe extern "system" fn Free(this: *mut core::ffi::c_void, pvtype: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeMarshal_Impl::Free(this, core::mem::transmute_copy(&pvtype)).into() } @@ -5915,19 +4394,13 @@ impl ITypeMarshal_Vtbl { iid == &::IID } } -pub trait IVBFormat_Impl: Sized { +pub trait IVBFormat_Impl: Sized + windows_core::IUnknownImpl { fn Format(&self, vdata: *mut windows_core::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<()>; } impl windows_core::RuntimeName for IVBFormat {} impl IVBFormat_Vtbl { - pub const fn new() -> IVBFormat_Vtbl - where - Identity: IVBFormat_Impl, - { - unsafe extern "system" fn Format(this: *mut core::ffi::c_void, vdata: *mut core::mem::MaybeUninit, bstrformat: core::mem::MaybeUninit, lpbuffer: *mut core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: *mut u16) -> windows_core::HRESULT - where - Identity: IVBFormat_Impl, - { + pub const fn new() -> IVBFormat_Vtbl { + unsafe extern "system" fn Format(this: *mut core::ffi::c_void, vdata: *mut core::mem::MaybeUninit, bstrformat: core::mem::MaybeUninit, lpbuffer: *mut core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVBFormat_Impl::Format(this, 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() } @@ -5938,21 +4411,15 @@ impl IVBFormat_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IVBGetControl_Impl: Sized { +pub trait IVBGetControl_Impl: Sized + windows_core::IUnknownImpl { fn EnumControls(&self, dwolecontf: &OLECONTF, dwwhich: ENUM_CONTROLS_WHICH_FLAGS) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IVBGetControl {} #[cfg(feature = "Win32_System_Com")] impl IVBGetControl_Vtbl { - pub const fn new() -> IVBGetControl_Vtbl - where - Identity: IVBGetControl_Impl, - { - unsafe extern "system" fn EnumControls(this: *mut core::ffi::c_void, dwolecontf: u32, dwwhich: ENUM_CONTROLS_WHICH_FLAGS, ppenumunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVBGetControl_Impl, - { + pub const fn new() -> IVBGetControl_Vtbl { + unsafe extern "system" fn EnumControls(this: *mut core::ffi::c_void, dwolecontf: u32, dwwhich: ENUM_CONTROLS_WHICH_FLAGS, ppenumunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVBGetControl_Impl::EnumControls(this, core::mem::transmute(&dwolecontf), core::mem::transmute_copy(&dwwhich)) { Ok(ok__) => { @@ -5969,21 +4436,15 @@ impl IVBGetControl_Vtbl { } } #[cfg(feature = "Win32_System_Variant")] -pub trait IVariantChangeType_Impl: Sized { +pub trait IVariantChangeType_Impl: Sized + windows_core::IUnknownImpl { fn ChangeType(&self, pvardst: *mut windows_core::VARIANT, pvarsrc: *const windows_core::VARIANT, lcid: u32, vtnew: super::Variant::VARENUM) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Variant")] impl windows_core::RuntimeName for IVariantChangeType {} #[cfg(feature = "Win32_System_Variant")] impl IVariantChangeType_Vtbl { - pub const fn new() -> IVariantChangeType_Vtbl - where - Identity: IVariantChangeType_Impl, - { - unsafe extern "system" fn ChangeType(this: *mut core::ffi::c_void, pvardst: *mut core::mem::MaybeUninit, pvarsrc: *const core::mem::MaybeUninit, lcid: u32, vtnew: super::Variant::VARENUM) -> windows_core::HRESULT - where - Identity: IVariantChangeType_Impl, - { + pub const fn new() -> IVariantChangeType_Vtbl { + unsafe extern "system" fn ChangeType(this: *mut core::ffi::c_void, pvardst: *mut core::mem::MaybeUninit, pvarsrc: *const core::mem::MaybeUninit, lcid: u32, vtnew: super::Variant::VARENUM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVariantChangeType_Impl::ChangeType(this, core::mem::transmute_copy(&pvardst), core::mem::transmute_copy(&pvarsrc), core::mem::transmute_copy(&lcid), core::mem::transmute_copy(&vtnew)).into() } @@ -5994,7 +4455,7 @@ impl IVariantChangeType_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] -pub trait IViewObject_Impl: Sized { +pub trait IViewObject_Impl: Sized + windows_core::IUnknownImpl { fn Draw(&self, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *const super::Com::DVTARGETDEVICE, hdctargetdev: super::super::Graphics::Gdi::HDC, hdcdraw: super::super::Graphics::Gdi::HDC, lprcbounds: *const super::super::Foundation::RECTL, lprcwbounds: *const super::super::Foundation::RECTL, pfncontinue: isize, dwcontinue: usize) -> windows_core::Result<()>; fn GetColorSet(&self, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, ppcolorset: *mut *mut super::super::Graphics::Gdi::LOGPALETTE) -> windows_core::Result<()>; fn Freeze(&self, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, pdwfreeze: *mut u32) -> windows_core::Result<()>; @@ -6006,49 +4467,28 @@ pub trait IViewObject_Impl: Sized { impl windows_core::RuntimeName for IViewObject {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IViewObject_Vtbl { - pub const fn new() -> IViewObject_Vtbl - where - Identity: IViewObject_Impl, - { - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *const super::Com::DVTARGETDEVICE, hdctargetdev: super::super::Graphics::Gdi::HDC, hdcdraw: super::super::Graphics::Gdi::HDC, lprcbounds: *const super::super::Foundation::RECTL, lprcwbounds: *const super::super::Foundation::RECTL, pfncontinue: isize, dwcontinue: usize) -> windows_core::HRESULT - where - Identity: IViewObject_Impl, - { + pub const fn new() -> IViewObject_Vtbl { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *const super::Com::DVTARGETDEVICE, hdctargetdev: super::super::Graphics::Gdi::HDC, hdcdraw: super::super::Graphics::Gdi::HDC, lprcbounds: *const super::super::Foundation::RECTL, lprcwbounds: *const super::super::Foundation::RECTL, pfncontinue: isize, dwcontinue: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObject_Impl::Draw(this, core::mem::transmute_copy(&dwdrawaspect), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pvaspect), core::mem::transmute_copy(&ptd), core::mem::transmute_copy(&hdctargetdev), core::mem::transmute_copy(&hdcdraw), core::mem::transmute_copy(&lprcbounds), core::mem::transmute_copy(&lprcwbounds), core::mem::transmute_copy(&pfncontinue), core::mem::transmute_copy(&dwcontinue)).into() } - unsafe extern "system" fn GetColorSet(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, ppcolorset: *mut *mut super::super::Graphics::Gdi::LOGPALETTE) -> windows_core::HRESULT - where - Identity: IViewObject_Impl, - { + unsafe extern "system" fn GetColorSet(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, ppcolorset: *mut *mut super::super::Graphics::Gdi::LOGPALETTE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObject_Impl::GetColorSet(this, core::mem::transmute_copy(&dwdrawaspect), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pvaspect), core::mem::transmute_copy(&ptd), core::mem::transmute_copy(&hictargetdev), core::mem::transmute_copy(&ppcolorset)).into() } - unsafe extern "system" fn Freeze(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, pdwfreeze: *mut u32) -> windows_core::HRESULT - where - Identity: IViewObject_Impl, - { + unsafe extern "system" fn Freeze(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, pdwfreeze: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObject_Impl::Freeze(this, core::mem::transmute_copy(&dwdrawaspect), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pvaspect), core::mem::transmute_copy(&pdwfreeze)).into() } - unsafe extern "system" fn Unfreeze(this: *mut core::ffi::c_void, dwfreeze: u32) -> windows_core::HRESULT - where - Identity: IViewObject_Impl, - { + unsafe extern "system" fn Unfreeze(this: *mut core::ffi::c_void, dwfreeze: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObject_Impl::Unfreeze(this, core::mem::transmute_copy(&dwfreeze)).into() } - unsafe extern "system" fn SetAdvise(this: *mut core::ffi::c_void, aspects: super::Com::DVASPECT, advf: u32, padvsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewObject_Impl, - { + unsafe extern "system" fn SetAdvise(this: *mut core::ffi::c_void, aspects: super::Com::DVASPECT, advf: u32, padvsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObject_Impl::SetAdvise(this, core::mem::transmute_copy(&aspects), core::mem::transmute_copy(&advf), windows_core::from_raw_borrowed(&padvsink)).into() } - unsafe extern "system" fn GetAdvise(this: *mut core::ffi::c_void, paspects: *mut u32, padvf: *mut u32, ppadvsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewObject_Impl, - { + unsafe extern "system" fn GetAdvise(this: *mut core::ffi::c_void, paspects: *mut u32, padvf: *mut u32, ppadvsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObject_Impl::GetAdvise(this, core::mem::transmute_copy(&paspects), core::mem::transmute_copy(&padvf), core::mem::transmute_copy(&ppadvsink)).into() } @@ -6074,14 +4514,8 @@ pub trait IViewObject2_Impl: Sized + IViewObject_Impl { impl windows_core::RuntimeName for IViewObject2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IViewObject2_Vtbl { - pub const fn new() -> IViewObject2_Vtbl - where - Identity: IViewObject2_Impl, - { - unsafe extern "system" fn GetExtent(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, lpsizel: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IViewObject2_Impl, - { + pub const fn new() -> IViewObject2_Vtbl { + unsafe extern "system" fn GetExtent(this: *mut core::ffi::c_void, dwdrawaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, lpsizel: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewObject2_Impl::GetExtent(this, core::mem::transmute_copy(&dwdrawaspect), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&ptd)) { Ok(ok__) => { @@ -6109,14 +4543,8 @@ pub trait IViewObjectEx_Impl: Sized + IViewObject2_Impl { impl windows_core::RuntimeName for IViewObjectEx {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IViewObjectEx_Vtbl { - pub const fn new() -> IViewObjectEx_Vtbl - where - Identity: IViewObjectEx_Impl, - { - unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, dwaspect: u32, prect: *mut super::super::Foundation::RECTL) -> windows_core::HRESULT - where - Identity: IViewObjectEx_Impl, - { + pub const fn new() -> IViewObjectEx_Vtbl { + unsafe extern "system" fn GetRect(this: *mut core::ffi::c_void, dwaspect: u32, prect: *mut super::super::Foundation::RECTL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewObjectEx_Impl::GetRect(this, core::mem::transmute_copy(&dwaspect)) { Ok(ok__) => { @@ -6126,10 +4554,7 @@ impl IViewObjectEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetViewStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IViewObjectEx_Impl, - { + unsafe extern "system" fn GetViewStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewObjectEx_Impl::GetViewStatus(this) { Ok(ok__) => { @@ -6139,10 +4564,7 @@ impl IViewObjectEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryHitPoint(this: *mut core::ffi::c_void, dwaspect: u32, prectbounds: *const super::super::Foundation::RECT, ptlloc: super::super::Foundation::POINT, lclosehint: i32, phitresult: *mut u32) -> windows_core::HRESULT - where - Identity: IViewObjectEx_Impl, - { + unsafe extern "system" fn QueryHitPoint(this: *mut core::ffi::c_void, dwaspect: u32, prectbounds: *const super::super::Foundation::RECT, ptlloc: super::super::Foundation::POINT, lclosehint: i32, phitresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewObjectEx_Impl::QueryHitPoint(this, core::mem::transmute_copy(&dwaspect), core::mem::transmute_copy(&prectbounds), core::mem::transmute(&ptlloc), core::mem::transmute_copy(&lclosehint)) { Ok(ok__) => { @@ -6152,10 +4574,7 @@ impl IViewObjectEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryHitRect(this: *mut core::ffi::c_void, dwaspect: u32, prectbounds: *const super::super::Foundation::RECT, prectloc: *const super::super::Foundation::RECT, lclosehint: i32, phitresult: *mut u32) -> windows_core::HRESULT - where - Identity: IViewObjectEx_Impl, - { + unsafe extern "system" fn QueryHitRect(this: *mut core::ffi::c_void, dwaspect: u32, prectbounds: *const super::super::Foundation::RECT, prectloc: *const super::super::Foundation::RECT, lclosehint: i32, phitresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewObjectEx_Impl::QueryHitRect(this, core::mem::transmute_copy(&dwaspect), core::mem::transmute_copy(&prectbounds), core::mem::transmute_copy(&prectloc), core::mem::transmute_copy(&lclosehint)) { Ok(ok__) => { @@ -6165,10 +4584,7 @@ impl IViewObjectEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNaturalExtent(this: *mut core::ffi::c_void, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, pextentinfo: *const DVEXTENTINFO, psizel: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IViewObjectEx_Impl, - { + unsafe extern "system" fn GetNaturalExtent(this: *mut core::ffi::c_void, dwaspect: super::Com::DVASPECT, lindex: i32, ptd: *const super::Com::DVTARGETDEVICE, hictargetdev: super::super::Graphics::Gdi::HDC, pextentinfo: *const DVEXTENTINFO, psizel: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewObjectEx_Impl::GetNaturalExtent(this, core::mem::transmute_copy(&dwaspect), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&ptd), core::mem::transmute_copy(&hictargetdev), core::mem::transmute_copy(&pextentinfo)) { Ok(ok__) => { @@ -6191,19 +4607,13 @@ impl IViewObjectEx_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IZoomEvents_Impl: Sized { +pub trait IZoomEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnZoomPercentChanged(&self, ulzoompercent: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IZoomEvents {} impl IZoomEvents_Vtbl { - pub const fn new() -> IZoomEvents_Vtbl - where - Identity: IZoomEvents_Impl, - { - unsafe extern "system" fn OnZoomPercentChanged(this: *mut core::ffi::c_void, ulzoompercent: u32) -> windows_core::HRESULT - where - Identity: IZoomEvents_Impl, - { + pub const fn new() -> IZoomEvents_Vtbl { + unsafe extern "system" fn OnZoomPercentChanged(this: *mut core::ffi::c_void, ulzoompercent: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IZoomEvents_Impl::OnZoomPercentChanged(this, core::mem::transmute_copy(&ulzoompercent)).into() } 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 39310997dc..ab31c37a0b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/impl.rs @@ -3,14 +3,8 @@ pub trait IWPCGamesSettings_Impl: Sized + IWPCSettings_Impl { } impl windows_core::RuntimeName for IWPCGamesSettings {} impl IWPCGamesSettings_Vtbl { - pub const fn new() -> IWPCGamesSettings_Vtbl - where - Identity: IWPCGamesSettings_Impl, - { - unsafe extern "system" fn IsBlocked(this: *mut core::ffi::c_void, guidappid: windows_core::GUID, pdwreasons: *mut u32) -> windows_core::HRESULT - where - Identity: IWPCGamesSettings_Impl, - { + pub const fn new() -> IWPCGamesSettings_Vtbl { + unsafe extern "system" fn IsBlocked(this: *mut core::ffi::c_void, guidappid: windows_core::GUID, pdwreasons: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWPCGamesSettings_Impl::IsBlocked(this, core::mem::transmute(&guidappid)) { Ok(ok__) => { @@ -26,21 +20,15 @@ impl IWPCGamesSettings_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWPCProviderConfig_Impl: Sized { +pub trait IWPCProviderConfig_Impl: Sized + windows_core::IUnknownImpl { fn GetUserSummary(&self, bstrsid: &windows_core::BSTR) -> windows_core::Result; 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<()>; } impl windows_core::RuntimeName for IWPCProviderConfig {} impl IWPCProviderConfig_Vtbl { - pub const fn new() -> IWPCProviderConfig_Vtbl - where - Identity: IWPCProviderConfig_Impl, - { - unsafe extern "system" fn GetUserSummary(this: *mut core::ffi::c_void, bstrsid: core::mem::MaybeUninit, pbstrusersummary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWPCProviderConfig_Impl, - { + pub const fn new() -> IWPCProviderConfig_Vtbl { + unsafe extern "system" fn GetUserSummary(this: *mut core::ffi::c_void, bstrsid: core::mem::MaybeUninit, pbstrusersummary: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWPCProviderConfig_Impl::GetUserSummary(this, core::mem::transmute(&bstrsid)) { Ok(ok__) => { @@ -50,17 +38,11 @@ impl IWPCProviderConfig_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWPCProviderConfig_Impl, - { + unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWPCProviderConfig_Impl::Configure(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&bstrsid)).into() } - unsafe extern "system" fn RequestOverride(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrpath: core::mem::MaybeUninit, dwflags: u32) -> windows_core::HRESULT - where - Identity: IWPCProviderConfig_Impl, - { + unsafe extern "system" fn RequestOverride(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrpath: core::mem::MaybeUninit, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWPCProviderConfig_Impl::RequestOverride(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&bstrpath), core::mem::transmute(&dwflags)).into() } @@ -75,27 +57,18 @@ impl IWPCProviderConfig_Vtbl { iid == &::IID } } -pub trait IWPCProviderState_Impl: Sized { +pub trait IWPCProviderState_Impl: Sized + windows_core::IUnknownImpl { fn Enable(&self) -> windows_core::Result<()>; fn Disable(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWPCProviderState {} impl IWPCProviderState_Vtbl { - pub const fn new() -> IWPCProviderState_Vtbl - where - Identity: IWPCProviderState_Impl, - { - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWPCProviderState_Impl, - { + pub const fn new() -> IWPCProviderState_Vtbl { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWPCProviderState_Impl::Enable(this).into() } - unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWPCProviderState_Impl, - { + unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWPCProviderState_Impl::Disable(this).into() } @@ -105,19 +78,13 @@ impl IWPCProviderState_Vtbl { iid == &::IID } } -pub trait IWPCProviderSupport_Impl: Sized { +pub trait IWPCProviderSupport_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWPCProviderSupport {} impl IWPCProviderSupport_Vtbl { - pub const fn new() -> IWPCProviderSupport_Vtbl - where - Identity: IWPCProviderSupport_Impl, - { - unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, pguidprovider: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWPCProviderSupport_Impl, - { + pub const fn new() -> IWPCProviderSupport_Vtbl { + unsafe extern "system" fn GetCurrent(this: *mut core::ffi::c_void, pguidprovider: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWPCProviderSupport_Impl::GetCurrent(this) { Ok(ok__) => { @@ -133,21 +100,15 @@ impl IWPCProviderSupport_Vtbl { iid == &::IID } } -pub trait IWPCSettings_Impl: Sized { +pub trait IWPCSettings_Impl: Sized + windows_core::IUnknownImpl { fn IsLoggingRequired(&self) -> windows_core::Result; fn GetLastSettingsChangeTime(&self) -> windows_core::Result; fn GetRestrictions(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWPCSettings {} impl IWPCSettings_Vtbl { - pub const fn new() -> IWPCSettings_Vtbl - where - Identity: IWPCSettings_Impl, - { - unsafe extern "system" fn IsLoggingRequired(this: *mut core::ffi::c_void, pfrequired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWPCSettings_Impl, - { + pub const fn new() -> IWPCSettings_Vtbl { + unsafe extern "system" fn IsLoggingRequired(this: *mut core::ffi::c_void, pfrequired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWPCSettings_Impl::IsLoggingRequired(this) { Ok(ok__) => { @@ -157,10 +118,7 @@ impl IWPCSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastSettingsChangeTime(this: *mut core::ffi::c_void, ptime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IWPCSettings_Impl, - { + unsafe extern "system" fn GetLastSettingsChangeTime(this: *mut core::ffi::c_void, ptime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWPCSettings_Impl::GetLastSettingsChangeTime(this) { Ok(ok__) => { @@ -170,10 +128,7 @@ impl IWPCSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRestrictions(this: *mut core::ffi::c_void, pdwrestrictions: *mut WPCFLAG_RESTRICTION) -> windows_core::HRESULT - where - Identity: IWPCSettings_Impl, - { + unsafe extern "system" fn GetRestrictions(this: *mut core::ffi::c_void, pdwrestrictions: *mut WPCFLAG_RESTRICTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWPCSettings_Impl::GetRestrictions(this) { Ok(ok__) => { @@ -200,14 +155,8 @@ pub trait IWPCWebSettings_Impl: Sized + IWPCSettings_Impl { } impl windows_core::RuntimeName for IWPCWebSettings {} impl IWPCWebSettings_Vtbl { - pub const fn new() -> IWPCWebSettings_Vtbl - where - Identity: IWPCWebSettings_Impl, - { - unsafe extern "system" fn GetSettings(this: *mut core::ffi::c_void, pdwsettings: *mut WPCFLAG_WEB_SETTING) -> windows_core::HRESULT - where - Identity: IWPCWebSettings_Impl, - { + pub const fn new() -> IWPCWebSettings_Vtbl { + unsafe extern "system" fn GetSettings(this: *mut core::ffi::c_void, pdwsettings: *mut WPCFLAG_WEB_SETTING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWPCWebSettings_Impl::GetSettings(this) { Ok(ok__) => { @@ -217,10 +166,7 @@ impl IWPCWebSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestURLOverride(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pcszurl: windows_core::PCWSTR, curls: u32, ppcszsuburls: *const windows_core::PCWSTR, pfchanged: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWPCWebSettings_Impl, - { + unsafe extern "system" fn RequestURLOverride(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pcszurl: windows_core::PCWSTR, curls: u32, ppcszsuburls: *const windows_core::PCWSTR, pfchanged: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWPCWebSettings_Impl::RequestURLOverride(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&pcszurl), core::mem::transmute_copy(&curls), core::mem::transmute_copy(&ppcszsuburls)) { Ok(ok__) => { @@ -245,14 +191,8 @@ pub trait IWindowsParentalControls_Impl: Sized + IWindowsParentalControlsCore_Im } impl windows_core::RuntimeName for IWindowsParentalControls {} impl IWindowsParentalControls_Vtbl { - pub const fn new() -> IWindowsParentalControls_Vtbl - where - Identity: IWindowsParentalControls_Impl, - { - unsafe extern "system" fn GetGamesSettings(this: *mut core::ffi::c_void, pcszsid: windows_core::PCWSTR, ppsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsParentalControls_Impl, - { + pub const fn new() -> IWindowsParentalControls_Vtbl { + unsafe extern "system" fn GetGamesSettings(this: *mut core::ffi::c_void, pcszsid: windows_core::PCWSTR, ppsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsParentalControls_Impl::GetGamesSettings(this, core::mem::transmute(&pcszsid)) { Ok(ok__) => { @@ -268,7 +208,7 @@ impl IWindowsParentalControls_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWindowsParentalControlsCore_Impl: Sized { +pub trait IWindowsParentalControlsCore_Impl: Sized + windows_core::IUnknownImpl { fn GetVisibility(&self) -> windows_core::Result; fn GetUserSettings(&self, pcszsid: &windows_core::PCWSTR) -> windows_core::Result; fn GetWebSettings(&self, pcszsid: &windows_core::PCWSTR) -> windows_core::Result; @@ -276,14 +216,8 @@ pub trait IWindowsParentalControlsCore_Impl: Sized { } impl windows_core::RuntimeName for IWindowsParentalControlsCore {} impl IWindowsParentalControlsCore_Vtbl { - pub const fn new() -> IWindowsParentalControlsCore_Vtbl - where - Identity: IWindowsParentalControlsCore_Impl, - { - unsafe extern "system" fn GetVisibility(this: *mut core::ffi::c_void, pevisibility: *mut WPCFLAG_VISIBILITY) -> windows_core::HRESULT - where - Identity: IWindowsParentalControlsCore_Impl, - { + pub const fn new() -> IWindowsParentalControlsCore_Vtbl { + unsafe extern "system" fn GetVisibility(this: *mut core::ffi::c_void, pevisibility: *mut WPCFLAG_VISIBILITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsParentalControlsCore_Impl::GetVisibility(this) { Ok(ok__) => { @@ -293,10 +227,7 @@ impl IWindowsParentalControlsCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUserSettings(this: *mut core::ffi::c_void, pcszsid: windows_core::PCWSTR, ppsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsParentalControlsCore_Impl, - { + unsafe extern "system" fn GetUserSettings(this: *mut core::ffi::c_void, pcszsid: windows_core::PCWSTR, ppsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsParentalControlsCore_Impl::GetUserSettings(this, core::mem::transmute(&pcszsid)) { Ok(ok__) => { @@ -306,10 +237,7 @@ impl IWindowsParentalControlsCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWebSettings(this: *mut core::ffi::c_void, pcszsid: windows_core::PCWSTR, ppsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsParentalControlsCore_Impl, - { + unsafe extern "system" fn GetWebSettings(this: *mut core::ffi::c_void, pcszsid: windows_core::PCWSTR, ppsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsParentalControlsCore_Impl::GetWebSettings(this, core::mem::transmute(&pcszsid)) { Ok(ok__) => { @@ -319,10 +247,7 @@ impl IWindowsParentalControlsCore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWebFilterInfo(this: *mut core::ffi::c_void, pguidid: *mut windows_core::GUID, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWindowsParentalControlsCore_Impl, - { + unsafe extern "system" fn GetWebFilterInfo(this: *mut core::ffi::c_void, pguidid: *mut windows_core::GUID, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsParentalControlsCore_Impl::GetWebFilterInfo(this, core::mem::transmute_copy(&pguidid), core::mem::transmute_copy(&ppszname)).into() } 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 7e71a82cd5..3d20be77b2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/impl.rs @@ -4,10 +4,7 @@ pub trait DICounterItem_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for DICounterItem {} #[cfg(feature = "Win32_System_Com")] impl DICounterItem_Vtbl { - pub const fn new() -> DICounterItem_Vtbl - where - Identity: DICounterItem_Impl, - { + pub const fn new() -> DICounterItem_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -20,10 +17,7 @@ pub trait DILogFileItem_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for DILogFileItem {} #[cfg(feature = "Win32_System_Com")] impl DILogFileItem_Vtbl { - pub const fn new() -> DILogFileItem_Vtbl - where - Identity: DILogFileItem_Impl, - { + pub const fn new() -> DILogFileItem_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36,10 +30,7 @@ pub trait DISystemMonitor_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for DISystemMonitor {} #[cfg(feature = "Win32_System_Com")] impl DISystemMonitor_Vtbl { - pub const fn new() -> DISystemMonitor_Vtbl - where - Identity: DISystemMonitor_Impl, - { + pub const fn new() -> DISystemMonitor_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -52,10 +43,7 @@ pub trait DISystemMonitorEvents_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for DISystemMonitorEvents {} #[cfg(feature = "Win32_System_Com")] impl DISystemMonitorEvents_Vtbl { - pub const fn new() -> DISystemMonitorEvents_Vtbl - where - Identity: DISystemMonitorEvents_Impl, - { + pub const fn new() -> DISystemMonitorEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -68,10 +56,7 @@ pub trait DISystemMonitorInternal_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for DISystemMonitorInternal {} #[cfg(feature = "Win32_System_Com")] impl DISystemMonitorInternal_Vtbl { - pub const fn new() -> DISystemMonitorInternal_Vtbl - where - Identity: DISystemMonitorInternal_Impl, - { + pub const fn new() -> DISystemMonitorInternal_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -101,14 +86,8 @@ pub trait IAlertDataCollector_Impl: Sized + IDataCollector_Impl { impl windows_core::RuntimeName for IAlertDataCollector {} #[cfg(feature = "Win32_System_Com")] impl IAlertDataCollector_Vtbl { - pub const fn new() -> IAlertDataCollector_Vtbl - where - Identity: IAlertDataCollector_Impl, - { - unsafe extern "system" fn AlertThresholds(this: *mut core::ffi::c_void, alerts: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + pub const fn new() -> IAlertDataCollector_Vtbl { + unsafe extern "system" fn AlertThresholds(this: *mut core::ffi::c_void, alerts: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlertDataCollector_Impl::AlertThresholds(this) { Ok(ok__) => { @@ -118,17 +97,11 @@ impl IAlertDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlertThresholds(this: *mut core::ffi::c_void, alerts: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn SetAlertThresholds(this: *mut core::ffi::c_void, alerts: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlertDataCollector_Impl::SetAlertThresholds(this, core::mem::transmute_copy(&alerts)).into() } - unsafe extern "system" fn EventLog(this: *mut core::ffi::c_void, log: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn EventLog(this: *mut core::ffi::c_void, log: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlertDataCollector_Impl::EventLog(this) { Ok(ok__) => { @@ -138,17 +111,11 @@ impl IAlertDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventLog(this: *mut core::ffi::c_void, log: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn SetEventLog(this: *mut core::ffi::c_void, log: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlertDataCollector_Impl::SetEventLog(this, core::mem::transmute_copy(&log)).into() } - unsafe extern "system" fn SampleInterval(this: *mut core::ffi::c_void, interval: *mut u32) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn SampleInterval(this: *mut core::ffi::c_void, interval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlertDataCollector_Impl::SampleInterval(this) { Ok(ok__) => { @@ -158,17 +125,11 @@ impl IAlertDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSampleInterval(this: *mut core::ffi::c_void, interval: u32) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn SetSampleInterval(this: *mut core::ffi::c_void, interval: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlertDataCollector_Impl::SetSampleInterval(this, core::mem::transmute_copy(&interval)).into() } - unsafe extern "system" fn Task(this: *mut core::ffi::c_void, task: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn Task(this: *mut core::ffi::c_void, task: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlertDataCollector_Impl::Task(this) { Ok(ok__) => { @@ -178,17 +139,11 @@ impl IAlertDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTask(this: *mut core::ffi::c_void, task: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn SetTask(this: *mut core::ffi::c_void, task: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlertDataCollector_Impl::SetTask(this, core::mem::transmute(&task)).into() } - unsafe extern "system" fn TaskRunAsSelf(this: *mut core::ffi::c_void, runasself: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn TaskRunAsSelf(this: *mut core::ffi::c_void, runasself: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlertDataCollector_Impl::TaskRunAsSelf(this) { Ok(ok__) => { @@ -198,17 +153,11 @@ impl IAlertDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskRunAsSelf(this: *mut core::ffi::c_void, runasself: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn SetTaskRunAsSelf(this: *mut core::ffi::c_void, runasself: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlertDataCollector_Impl::SetTaskRunAsSelf(this, core::mem::transmute_copy(&runasself)).into() } - unsafe extern "system" fn TaskArguments(this: *mut core::ffi::c_void, task: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn TaskArguments(this: *mut core::ffi::c_void, task: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlertDataCollector_Impl::TaskArguments(this) { Ok(ok__) => { @@ -218,17 +167,11 @@ impl IAlertDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskArguments(this: *mut core::ffi::c_void, task: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn SetTaskArguments(this: *mut core::ffi::c_void, task: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlertDataCollector_Impl::SetTaskArguments(this, core::mem::transmute(&task)).into() } - unsafe extern "system" fn TaskUserTextArguments(this: *mut core::ffi::c_void, task: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn TaskUserTextArguments(this: *mut core::ffi::c_void, task: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlertDataCollector_Impl::TaskUserTextArguments(this) { Ok(ok__) => { @@ -238,17 +181,11 @@ impl IAlertDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskUserTextArguments(this: *mut core::ffi::c_void, task: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn SetTaskUserTextArguments(this: *mut core::ffi::c_void, task: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlertDataCollector_Impl::SetTaskUserTextArguments(this, core::mem::transmute(&task)).into() } - unsafe extern "system" fn TriggerDataCollectorSet(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn TriggerDataCollectorSet(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAlertDataCollector_Impl::TriggerDataCollectorSet(this) { Ok(ok__) => { @@ -258,10 +195,7 @@ impl IAlertDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTriggerDataCollectorSet(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAlertDataCollector_Impl, - { + unsafe extern "system" fn SetTriggerDataCollectorSet(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlertDataCollector_Impl::SetTriggerDataCollectorSet(this, core::mem::transmute(&name)).into() } @@ -310,14 +244,8 @@ pub trait IApiTracingDataCollector_Impl: Sized + IDataCollector_Impl { impl windows_core::RuntimeName for IApiTracingDataCollector {} #[cfg(feature = "Win32_System_Com")] impl IApiTracingDataCollector_Vtbl { - pub const fn new() -> IApiTracingDataCollector_Vtbl - where - Identity: IApiTracingDataCollector_Impl, - { - unsafe extern "system" fn LogApiNamesOnly(this: *mut core::ffi::c_void, logapinames: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + pub const fn new() -> IApiTracingDataCollector_Vtbl { + unsafe extern "system" fn LogApiNamesOnly(this: *mut core::ffi::c_void, logapinames: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApiTracingDataCollector_Impl::LogApiNamesOnly(this) { Ok(ok__) => { @@ -327,17 +255,11 @@ impl IApiTracingDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogApiNamesOnly(this: *mut core::ffi::c_void, logapinames: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn SetLogApiNamesOnly(this: *mut core::ffi::c_void, logapinames: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApiTracingDataCollector_Impl::SetLogApiNamesOnly(this, core::mem::transmute_copy(&logapinames)).into() } - unsafe extern "system" fn LogApisRecursively(this: *mut core::ffi::c_void, logrecursively: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn LogApisRecursively(this: *mut core::ffi::c_void, logrecursively: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApiTracingDataCollector_Impl::LogApisRecursively(this) { Ok(ok__) => { @@ -347,17 +269,11 @@ impl IApiTracingDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogApisRecursively(this: *mut core::ffi::c_void, logrecursively: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn SetLogApisRecursively(this: *mut core::ffi::c_void, logrecursively: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApiTracingDataCollector_Impl::SetLogApisRecursively(this, core::mem::transmute_copy(&logrecursively)).into() } - unsafe extern "system" fn ExePath(this: *mut core::ffi::c_void, exepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn ExePath(this: *mut core::ffi::c_void, exepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApiTracingDataCollector_Impl::ExePath(this) { Ok(ok__) => { @@ -367,17 +283,11 @@ impl IApiTracingDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExePath(this: *mut core::ffi::c_void, exepath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn SetExePath(this: *mut core::ffi::c_void, exepath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApiTracingDataCollector_Impl::SetExePath(this, core::mem::transmute(&exepath)).into() } - unsafe extern "system" fn LogFilePath(this: *mut core::ffi::c_void, logfilepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn LogFilePath(this: *mut core::ffi::c_void, logfilepath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApiTracingDataCollector_Impl::LogFilePath(this) { Ok(ok__) => { @@ -387,17 +297,11 @@ impl IApiTracingDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogFilePath(this: *mut core::ffi::c_void, logfilepath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn SetLogFilePath(this: *mut core::ffi::c_void, logfilepath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApiTracingDataCollector_Impl::SetLogFilePath(this, core::mem::transmute(&logfilepath)).into() } - unsafe extern "system" fn IncludeModules(this: *mut core::ffi::c_void, includemodules: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn IncludeModules(this: *mut core::ffi::c_void, includemodules: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApiTracingDataCollector_Impl::IncludeModules(this) { Ok(ok__) => { @@ -407,17 +311,11 @@ impl IApiTracingDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIncludeModules(this: *mut core::ffi::c_void, includemodules: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn SetIncludeModules(this: *mut core::ffi::c_void, includemodules: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApiTracingDataCollector_Impl::SetIncludeModules(this, core::mem::transmute_copy(&includemodules)).into() } - unsafe extern "system" fn IncludeApis(this: *mut core::ffi::c_void, includeapis: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn IncludeApis(this: *mut core::ffi::c_void, includeapis: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApiTracingDataCollector_Impl::IncludeApis(this) { Ok(ok__) => { @@ -427,17 +325,11 @@ impl IApiTracingDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIncludeApis(this: *mut core::ffi::c_void, includeapis: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn SetIncludeApis(this: *mut core::ffi::c_void, includeapis: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApiTracingDataCollector_Impl::SetIncludeApis(this, core::mem::transmute_copy(&includeapis)).into() } - unsafe extern "system" fn ExcludeApis(this: *mut core::ffi::c_void, excludeapis: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn ExcludeApis(this: *mut core::ffi::c_void, excludeapis: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApiTracingDataCollector_Impl::ExcludeApis(this) { Ok(ok__) => { @@ -447,10 +339,7 @@ impl IApiTracingDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExcludeApis(this: *mut core::ffi::c_void, excludeapis: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IApiTracingDataCollector_Impl, - { + unsafe extern "system" fn SetExcludeApis(this: *mut core::ffi::c_void, excludeapis: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApiTracingDataCollector_Impl::SetExcludeApis(this, core::mem::transmute_copy(&excludeapis)).into() } @@ -501,14 +390,8 @@ pub trait IConfigurationDataCollector_Impl: Sized + IDataCollector_Impl { impl windows_core::RuntimeName for IConfigurationDataCollector {} #[cfg(feature = "Win32_System_Com")] impl IConfigurationDataCollector_Vtbl { - pub const fn new() -> IConfigurationDataCollector_Vtbl - where - Identity: IConfigurationDataCollector_Impl, - { - unsafe extern "system" fn FileMaxCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + pub const fn new() -> IConfigurationDataCollector_Vtbl { + unsafe extern "system" fn FileMaxCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigurationDataCollector_Impl::FileMaxCount(this) { Ok(ok__) => { @@ -518,17 +401,11 @@ impl IConfigurationDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileMaxCount(this: *mut core::ffi::c_void, count: u32) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn SetFileMaxCount(this: *mut core::ffi::c_void, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigurationDataCollector_Impl::SetFileMaxCount(this, core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn FileMaxRecursiveDepth(this: *mut core::ffi::c_void, depth: *mut u32) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn FileMaxRecursiveDepth(this: *mut core::ffi::c_void, depth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigurationDataCollector_Impl::FileMaxRecursiveDepth(this) { Ok(ok__) => { @@ -538,17 +415,11 @@ impl IConfigurationDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileMaxRecursiveDepth(this: *mut core::ffi::c_void, depth: u32) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn SetFileMaxRecursiveDepth(this: *mut core::ffi::c_void, depth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigurationDataCollector_Impl::SetFileMaxRecursiveDepth(this, core::mem::transmute_copy(&depth)).into() } - unsafe extern "system" fn FileMaxTotalSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn FileMaxTotalSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigurationDataCollector_Impl::FileMaxTotalSize(this) { Ok(ok__) => { @@ -558,17 +429,11 @@ impl IConfigurationDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileMaxTotalSize(this: *mut core::ffi::c_void, size: u32) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn SetFileMaxTotalSize(this: *mut core::ffi::c_void, size: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigurationDataCollector_Impl::SetFileMaxTotalSize(this, core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn Files(this: *mut core::ffi::c_void, files: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn Files(this: *mut core::ffi::c_void, files: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigurationDataCollector_Impl::Files(this) { Ok(ok__) => { @@ -578,17 +443,11 @@ impl IConfigurationDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFiles(this: *mut core::ffi::c_void, files: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn SetFiles(this: *mut core::ffi::c_void, files: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigurationDataCollector_Impl::SetFiles(this, core::mem::transmute_copy(&files)).into() } - unsafe extern "system" fn ManagementQueries(this: *mut core::ffi::c_void, queries: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn ManagementQueries(this: *mut core::ffi::c_void, queries: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigurationDataCollector_Impl::ManagementQueries(this) { Ok(ok__) => { @@ -598,17 +457,11 @@ impl IConfigurationDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetManagementQueries(this: *mut core::ffi::c_void, queries: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn SetManagementQueries(this: *mut core::ffi::c_void, queries: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigurationDataCollector_Impl::SetManagementQueries(this, core::mem::transmute_copy(&queries)).into() } - unsafe extern "system" fn QueryNetworkAdapters(this: *mut core::ffi::c_void, network: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn QueryNetworkAdapters(this: *mut core::ffi::c_void, network: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigurationDataCollector_Impl::QueryNetworkAdapters(this) { Ok(ok__) => { @@ -618,17 +471,11 @@ impl IConfigurationDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQueryNetworkAdapters(this: *mut core::ffi::c_void, network: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn SetQueryNetworkAdapters(this: *mut core::ffi::c_void, network: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigurationDataCollector_Impl::SetQueryNetworkAdapters(this, core::mem::transmute_copy(&network)).into() } - unsafe extern "system" fn RegistryKeys(this: *mut core::ffi::c_void, query: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn RegistryKeys(this: *mut core::ffi::c_void, query: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigurationDataCollector_Impl::RegistryKeys(this) { Ok(ok__) => { @@ -638,17 +485,11 @@ impl IConfigurationDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRegistryKeys(this: *mut core::ffi::c_void, query: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn SetRegistryKeys(this: *mut core::ffi::c_void, query: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigurationDataCollector_Impl::SetRegistryKeys(this, core::mem::transmute_copy(&query)).into() } - unsafe extern "system" fn RegistryMaxRecursiveDepth(this: *mut core::ffi::c_void, depth: *mut u32) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn RegistryMaxRecursiveDepth(this: *mut core::ffi::c_void, depth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigurationDataCollector_Impl::RegistryMaxRecursiveDepth(this) { Ok(ok__) => { @@ -658,17 +499,11 @@ impl IConfigurationDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRegistryMaxRecursiveDepth(this: *mut core::ffi::c_void, depth: u32) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn SetRegistryMaxRecursiveDepth(this: *mut core::ffi::c_void, depth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigurationDataCollector_Impl::SetRegistryMaxRecursiveDepth(this, core::mem::transmute_copy(&depth)).into() } - unsafe extern "system" fn SystemStateFile(this: *mut core::ffi::c_void, filename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn SystemStateFile(this: *mut core::ffi::c_void, filename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigurationDataCollector_Impl::SystemStateFile(this) { Ok(ok__) => { @@ -678,10 +513,7 @@ impl IConfigurationDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSystemStateFile(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IConfigurationDataCollector_Impl, - { + unsafe extern "system" fn SetSystemStateFile(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigurationDataCollector_Impl::SetSystemStateFile(this, core::mem::transmute(&filename)).into() } @@ -711,7 +543,7 @@ impl IConfigurationDataCollector_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ICounterItem_Impl: Sized { +pub trait ICounterItem_Impl: Sized + windows_core::IUnknownImpl { fn Value(&self) -> windows_core::Result; fn SetColor(&self, color: u32) -> windows_core::Result<()>; fn Color(&self) -> windows_core::Result; @@ -727,14 +559,8 @@ pub trait ICounterItem_Impl: Sized { } impl windows_core::RuntimeName for ICounterItem {} impl ICounterItem_Vtbl { - pub const fn new() -> ICounterItem_Vtbl - where - Identity: ICounterItem_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pdblvalue: *mut f64) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + pub const fn new() -> ICounterItem_Vtbl { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pdblvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounterItem_Impl::Value(this) { Ok(ok__) => { @@ -744,17 +570,11 @@ impl ICounterItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICounterItem_Impl::SetColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn Color(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn Color(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounterItem_Impl::Color(this) { Ok(ok__) => { @@ -764,17 +584,11 @@ impl ICounterItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, iwidth: i32) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, iwidth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICounterItem_Impl::SetWidth(this, core::mem::transmute_copy(&iwidth)).into() } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounterItem_Impl::Width(this) { Ok(ok__) => { @@ -784,17 +598,11 @@ impl ICounterItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLineStyle(this: *mut core::ffi::c_void, ilinestyle: i32) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn SetLineStyle(this: *mut core::ffi::c_void, ilinestyle: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICounterItem_Impl::SetLineStyle(this, core::mem::transmute_copy(&ilinestyle)).into() } - unsafe extern "system" fn LineStyle(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn LineStyle(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounterItem_Impl::LineStyle(this) { Ok(ok__) => { @@ -804,17 +612,11 @@ impl ICounterItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScaleFactor(this: *mut core::ffi::c_void, iscale: i32) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn SetScaleFactor(this: *mut core::ffi::c_void, iscale: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICounterItem_Impl::SetScaleFactor(this, core::mem::transmute_copy(&iscale)).into() } - unsafe extern "system" fn ScaleFactor(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn ScaleFactor(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounterItem_Impl::ScaleFactor(this) { Ok(ok__) => { @@ -824,10 +626,7 @@ impl ICounterItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounterItem_Impl::Path(this) { Ok(ok__) => { @@ -837,17 +636,11 @@ impl ICounterItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut f64, status: *mut i32) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut f64, status: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICounterItem_Impl::GetValue(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> windows_core::HRESULT - where - Identity: ICounterItem_Impl, - { + unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICounterItem_Impl::GetStatistics(this, core::mem::transmute_copy(&max), core::mem::transmute_copy(&min), core::mem::transmute_copy(&avg), core::mem::transmute_copy(&status)).into() } @@ -880,21 +673,12 @@ pub trait ICounterItem2_Impl: Sized + ICounterItem_Impl { } impl windows_core::RuntimeName for ICounterItem2 {} impl ICounterItem2_Vtbl { - pub const fn new() -> ICounterItem2_Vtbl - where - Identity: ICounterItem2_Impl, - { - unsafe extern "system" fn SetSelected(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICounterItem2_Impl, - { + pub const fn new() -> ICounterItem2_Vtbl { + unsafe extern "system" fn SetSelected(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICounterItem2_Impl::SetSelected(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn Selected(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICounterItem2_Impl, - { + unsafe extern "system" fn Selected(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounterItem2_Impl::Selected(this) { Ok(ok__) => { @@ -904,17 +688,11 @@ impl ICounterItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICounterItem2_Impl, - { + unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICounterItem2_Impl::SetVisible(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ICounterItem2_Impl, - { + unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounterItem2_Impl::Visible(this) { Ok(ok__) => { @@ -924,10 +702,7 @@ impl ICounterItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataAt(this: *mut core::ffi::c_void, iindex: i32, iwhich: SysmonDataType, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICounterItem2_Impl, - { + unsafe extern "system" fn GetDataAt(this: *mut core::ffi::c_void, iindex: i32, iwhich: SysmonDataType, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounterItem2_Impl::GetDataAt(this, core::mem::transmute_copy(&iindex), core::mem::transmute_copy(&iwhich)) { Ok(ok__) => { @@ -962,14 +737,8 @@ pub trait ICounters_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ICounters {} #[cfg(feature = "Win32_System_Com")] impl ICounters_Vtbl { - pub const fn new() -> ICounters_Vtbl - where - Identity: ICounters_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plong: *mut i32) -> windows_core::HRESULT - where - Identity: ICounters_Impl, - { + pub const fn new() -> ICounters_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plong: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounters_Impl::Count(this) { Ok(ok__) => { @@ -979,10 +748,7 @@ impl ICounters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICounters_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounters_Impl::_NewEnum(this) { Ok(ok__) => { @@ -992,10 +758,7 @@ impl ICounters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICounters_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounters_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -1005,10 +768,7 @@ impl ICounters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pathname: core::mem::MaybeUninit, ppi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICounters_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pathname: core::mem::MaybeUninit, ppi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICounters_Impl::Add(this, core::mem::transmute(&pathname)) { Ok(ok__) => { @@ -1018,10 +778,7 @@ impl ICounters_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICounters_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICounters_Impl::Remove(this, core::mem::transmute(&index)).into() } @@ -1070,14 +827,8 @@ pub trait IDataCollector_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDataCollector {} #[cfg(feature = "Win32_System_Com")] impl IDataCollector_Vtbl { - pub const fn new() -> IDataCollector_Vtbl - where - Identity: IDataCollector_Impl, - { - unsafe extern "system" fn DataCollectorSet(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + pub const fn new() -> IDataCollector_Vtbl { + unsafe extern "system" fn DataCollectorSet(this: *mut core::ffi::c_void, group: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::DataCollectorSet(this) { Ok(ok__) => { @@ -1087,17 +838,11 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDataCollectorSet(this: *mut core::ffi::c_void, group: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetDataCollectorSet(this: *mut core::ffi::c_void, group: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollector_Impl::SetDataCollectorSet(this, windows_core::from_raw_borrowed(&group)).into() } - unsafe extern "system" fn DataCollectorType(this: *mut core::ffi::c_void, r#type: *mut DataCollectorType) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn DataCollectorType(this: *mut core::ffi::c_void, r#type: *mut DataCollectorType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::DataCollectorType(this) { Ok(ok__) => { @@ -1107,10 +852,7 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FileName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn FileName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::FileName(this) { Ok(ok__) => { @@ -1120,17 +862,11 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollector_Impl::SetFileName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn FileNameFormat(this: *mut core::ffi::c_void, format: *mut AutoPathFormat) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn FileNameFormat(this: *mut core::ffi::c_void, format: *mut AutoPathFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::FileNameFormat(this) { Ok(ok__) => { @@ -1140,17 +876,11 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileNameFormat(this: *mut core::ffi::c_void, format: AutoPathFormat) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetFileNameFormat(this: *mut core::ffi::c_void, format: AutoPathFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollector_Impl::SetFileNameFormat(this, core::mem::transmute_copy(&format)).into() } - unsafe extern "system" fn FileNameFormatPattern(this: *mut core::ffi::c_void, pattern: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn FileNameFormatPattern(this: *mut core::ffi::c_void, pattern: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::FileNameFormatPattern(this) { Ok(ok__) => { @@ -1160,17 +890,11 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileNameFormatPattern(this: *mut core::ffi::c_void, pattern: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetFileNameFormatPattern(this: *mut core::ffi::c_void, pattern: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollector_Impl::SetFileNameFormatPattern(this, core::mem::transmute(&pattern)).into() } - unsafe extern "system" fn LatestOutputLocation(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn LatestOutputLocation(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::LatestOutputLocation(this) { Ok(ok__) => { @@ -1180,17 +904,11 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLatestOutputLocation(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetLatestOutputLocation(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollector_Impl::SetLatestOutputLocation(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn LogAppend(this: *mut core::ffi::c_void, append: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn LogAppend(this: *mut core::ffi::c_void, append: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::LogAppend(this) { Ok(ok__) => { @@ -1200,17 +918,11 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogAppend(this: *mut core::ffi::c_void, append: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetLogAppend(this: *mut core::ffi::c_void, append: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollector_Impl::SetLogAppend(this, core::mem::transmute_copy(&append)).into() } - unsafe extern "system" fn LogCircular(this: *mut core::ffi::c_void, circular: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn LogCircular(this: *mut core::ffi::c_void, circular: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::LogCircular(this) { Ok(ok__) => { @@ -1220,17 +932,11 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogCircular(this: *mut core::ffi::c_void, circular: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetLogCircular(this: *mut core::ffi::c_void, circular: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollector_Impl::SetLogCircular(this, core::mem::transmute_copy(&circular)).into() } - unsafe extern "system" fn LogOverwrite(this: *mut core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn LogOverwrite(this: *mut core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::LogOverwrite(this) { Ok(ok__) => { @@ -1240,17 +946,11 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogOverwrite(this: *mut core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetLogOverwrite(this: *mut core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollector_Impl::SetLogOverwrite(this, core::mem::transmute_copy(&overwrite)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::Name(this) { Ok(ok__) => { @@ -1260,17 +960,11 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollector_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn OutputLocation(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn OutputLocation(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::OutputLocation(this) { Ok(ok__) => { @@ -1280,10 +974,7 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Index(this: *mut core::ffi::c_void, index: *mut i32) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn Index(this: *mut core::ffi::c_void, index: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::Index(this) { Ok(ok__) => { @@ -1293,17 +984,11 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIndex(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetIndex(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollector_Impl::SetIndex(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, xml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, xml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::Xml(this) { Ok(ok__) => { @@ -1313,10 +998,7 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetXml(this: *mut core::ffi::c_void, xml: core::mem::MaybeUninit, validation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn SetXml(this: *mut core::ffi::c_void, xml: core::mem::MaybeUninit, validation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::SetXml(this, core::mem::transmute(&xml)) { Ok(ok__) => { @@ -1326,10 +1008,7 @@ impl IDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateOutputLocation(this: *mut core::ffi::c_void, latest: super::super::Foundation::VARIANT_BOOL, location: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollector_Impl, - { + unsafe extern "system" fn CreateOutputLocation(this: *mut core::ffi::c_void, latest: super::super::Foundation::VARIANT_BOOL, location: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollector_Impl::CreateOutputLocation(this, core::mem::transmute_copy(&latest)) { Ok(ok__) => { @@ -1388,14 +1067,8 @@ pub trait IDataCollectorCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDataCollectorCollection {} #[cfg(feature = "Win32_System_Com")] impl IDataCollectorCollection_Vtbl { - pub const fn new() -> IDataCollectorCollection_Vtbl - where - Identity: IDataCollectorCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IDataCollectorCollection_Impl, - { + pub const fn new() -> IDataCollectorCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorCollection_Impl::Count(this) { Ok(ok__) => { @@ -1405,10 +1078,7 @@ impl IDataCollectorCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, collector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, collector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorCollection_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -1418,10 +1088,7 @@ impl IDataCollectorCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1431,45 +1098,27 @@ impl IDataCollectorCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, collector: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, collector: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorCollection_Impl::Add(this, windows_core::from_raw_borrowed(&collector)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, collector: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, collector: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorCollection_Impl::Remove(this, core::mem::transmute(&collector)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorCollection_Impl::Clear(this).into() } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, collectors: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorCollection_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, collectors: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorCollection_Impl::AddRange(this, windows_core::from_raw_borrowed(&collectors)).into() } - unsafe extern "system" fn CreateDataCollectorFromXml(this: *mut core::ffi::c_void, bstrxml: core::mem::MaybeUninit, pvalidation: *mut *mut core::ffi::c_void, pcollector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorCollection_Impl, - { + unsafe extern "system" fn CreateDataCollectorFromXml(this: *mut core::ffi::c_void, bstrxml: core::mem::MaybeUninit, pvalidation: *mut *mut core::ffi::c_void, pcollector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorCollection_Impl::CreateDataCollectorFromXml(this, core::mem::transmute(&bstrxml), core::mem::transmute_copy(&pvalidation), core::mem::transmute_copy(&pcollector)).into() } - unsafe extern "system" fn CreateDataCollector(this: *mut core::ffi::c_void, r#type: DataCollectorType, collector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorCollection_Impl, - { + unsafe extern "system" fn CreateDataCollector(this: *mut core::ffi::c_void, r#type: DataCollectorType, collector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorCollection_Impl::CreateDataCollector(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -1563,14 +1212,8 @@ pub trait IDataCollectorSet_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDataCollectorSet {} #[cfg(feature = "Win32_System_Com")] impl IDataCollectorSet_Vtbl { - pub const fn new() -> IDataCollectorSet_Vtbl - where - Identity: IDataCollectorSet_Impl, - { - unsafe extern "system" fn DataCollectors(this: *mut core::ffi::c_void, collectors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + pub const fn new() -> IDataCollectorSet_Vtbl { + unsafe extern "system" fn DataCollectors(this: *mut core::ffi::c_void, collectors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::DataCollectors(this) { Ok(ok__) => { @@ -1580,10 +1223,7 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Duration(this) { Ok(ok__) => { @@ -1593,17 +1233,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetDuration(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Description(this) { Ok(ok__) => { @@ -1613,17 +1247,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetDescription(this, core::mem::transmute(&description)).into() } - unsafe extern "system" fn DescriptionUnresolved(this: *mut core::ffi::c_void, descr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn DescriptionUnresolved(this: *mut core::ffi::c_void, descr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::DescriptionUnresolved(this) { Ok(ok__) => { @@ -1633,10 +1261,7 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, displayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::DisplayName(this) { Ok(ok__) => { @@ -1646,17 +1271,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, displayname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, displayname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetDisplayName(this, core::mem::transmute(&displayname)).into() } - unsafe extern "system" fn DisplayNameUnresolved(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn DisplayNameUnresolved(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::DisplayNameUnresolved(this) { Ok(ok__) => { @@ -1666,10 +1285,7 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Keywords(this: *mut core::ffi::c_void, keywords: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Keywords(this: *mut core::ffi::c_void, keywords: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Keywords(this) { Ok(ok__) => { @@ -1679,17 +1295,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeywords(this: *mut core::ffi::c_void, keywords: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetKeywords(this: *mut core::ffi::c_void, keywords: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetKeywords(this, core::mem::transmute_copy(&keywords)).into() } - unsafe extern "system" fn LatestOutputLocation(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn LatestOutputLocation(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::LatestOutputLocation(this) { Ok(ok__) => { @@ -1699,17 +1309,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLatestOutputLocation(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetLatestOutputLocation(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetLatestOutputLocation(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Name(this) { Ok(ok__) => { @@ -1719,10 +1323,7 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutputLocation(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn OutputLocation(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::OutputLocation(this) { Ok(ok__) => { @@ -1732,10 +1333,7 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RootPath(this: *mut core::ffi::c_void, folder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn RootPath(this: *mut core::ffi::c_void, folder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::RootPath(this) { Ok(ok__) => { @@ -1745,17 +1343,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRootPath(this: *mut core::ffi::c_void, folder: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetRootPath(this: *mut core::ffi::c_void, folder: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetRootPath(this, core::mem::transmute(&folder)).into() } - unsafe extern "system" fn Segment(this: *mut core::ffi::c_void, segment: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Segment(this: *mut core::ffi::c_void, segment: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Segment(this) { Ok(ok__) => { @@ -1765,17 +1357,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSegment(this: *mut core::ffi::c_void, segment: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetSegment(this: *mut core::ffi::c_void, segment: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetSegment(this, core::mem::transmute_copy(&segment)).into() } - unsafe extern "system" fn SegmentMaxDuration(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SegmentMaxDuration(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::SegmentMaxDuration(this) { Ok(ok__) => { @@ -1785,17 +1371,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSegmentMaxDuration(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetSegmentMaxDuration(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetSegmentMaxDuration(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn SegmentMaxSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SegmentMaxSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::SegmentMaxSize(this) { Ok(ok__) => { @@ -1805,17 +1385,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSegmentMaxSize(this: *mut core::ffi::c_void, size: u32) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetSegmentMaxSize(this: *mut core::ffi::c_void, size: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetSegmentMaxSize(this, core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn SerialNumber(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SerialNumber(this: *mut core::ffi::c_void, index: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::SerialNumber(this) { Ok(ok__) => { @@ -1825,17 +1399,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSerialNumber(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetSerialNumber(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetSerialNumber(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Server(this: *mut core::ffi::c_void, server: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Server(this: *mut core::ffi::c_void, server: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Server(this) { Ok(ok__) => { @@ -1845,10 +1413,7 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut DataCollectorSetStatus) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, status: *mut DataCollectorSetStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Status(this) { Ok(ok__) => { @@ -1858,10 +1423,7 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Subdirectory(this: *mut core::ffi::c_void, folder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Subdirectory(this: *mut core::ffi::c_void, folder: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Subdirectory(this) { Ok(ok__) => { @@ -1871,17 +1433,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubdirectory(this: *mut core::ffi::c_void, folder: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetSubdirectory(this: *mut core::ffi::c_void, folder: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetSubdirectory(this, core::mem::transmute(&folder)).into() } - unsafe extern "system" fn SubdirectoryFormat(this: *mut core::ffi::c_void, format: *mut AutoPathFormat) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SubdirectoryFormat(this: *mut core::ffi::c_void, format: *mut AutoPathFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::SubdirectoryFormat(this) { Ok(ok__) => { @@ -1891,17 +1447,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubdirectoryFormat(this: *mut core::ffi::c_void, format: AutoPathFormat) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetSubdirectoryFormat(this: *mut core::ffi::c_void, format: AutoPathFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetSubdirectoryFormat(this, core::mem::transmute_copy(&format)).into() } - unsafe extern "system" fn SubdirectoryFormatPattern(this: *mut core::ffi::c_void, pattern: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SubdirectoryFormatPattern(this: *mut core::ffi::c_void, pattern: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::SubdirectoryFormatPattern(this) { Ok(ok__) => { @@ -1911,17 +1461,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubdirectoryFormatPattern(this: *mut core::ffi::c_void, pattern: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetSubdirectoryFormatPattern(this: *mut core::ffi::c_void, pattern: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetSubdirectoryFormatPattern(this, core::mem::transmute(&pattern)).into() } - unsafe extern "system" fn Task(this: *mut core::ffi::c_void, task: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Task(this: *mut core::ffi::c_void, task: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Task(this) { Ok(ok__) => { @@ -1931,17 +1475,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTask(this: *mut core::ffi::c_void, task: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetTask(this: *mut core::ffi::c_void, task: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetTask(this, core::mem::transmute(&task)).into() } - unsafe extern "system" fn TaskRunAsSelf(this: *mut core::ffi::c_void, runasself: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn TaskRunAsSelf(this: *mut core::ffi::c_void, runasself: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::TaskRunAsSelf(this) { Ok(ok__) => { @@ -1951,17 +1489,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskRunAsSelf(this: *mut core::ffi::c_void, runasself: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetTaskRunAsSelf(this: *mut core::ffi::c_void, runasself: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetTaskRunAsSelf(this, core::mem::transmute_copy(&runasself)).into() } - unsafe extern "system" fn TaskArguments(this: *mut core::ffi::c_void, task: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn TaskArguments(this: *mut core::ffi::c_void, task: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::TaskArguments(this) { Ok(ok__) => { @@ -1971,17 +1503,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskArguments(this: *mut core::ffi::c_void, task: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetTaskArguments(this: *mut core::ffi::c_void, task: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetTaskArguments(this, core::mem::transmute(&task)).into() } - unsafe extern "system" fn TaskUserTextArguments(this: *mut core::ffi::c_void, usertext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn TaskUserTextArguments(this: *mut core::ffi::c_void, usertext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::TaskUserTextArguments(this) { Ok(ok__) => { @@ -1991,17 +1517,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskUserTextArguments(this: *mut core::ffi::c_void, usertext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetTaskUserTextArguments(this: *mut core::ffi::c_void, usertext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetTaskUserTextArguments(this, core::mem::transmute(&usertext)).into() } - unsafe extern "system" fn Schedules(this: *mut core::ffi::c_void, ppschedules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Schedules(this: *mut core::ffi::c_void, ppschedules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Schedules(this) { Ok(ok__) => { @@ -2011,10 +1531,7 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SchedulesEnabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SchedulesEnabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::SchedulesEnabled(this) { Ok(ok__) => { @@ -2024,17 +1541,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSchedulesEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetSchedulesEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetSchedulesEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn UserAccount(this: *mut core::ffi::c_void, user: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn UserAccount(this: *mut core::ffi::c_void, user: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::UserAccount(this) { Ok(ok__) => { @@ -2044,10 +1555,7 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, xml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, xml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Xml(this) { Ok(ok__) => { @@ -2057,10 +1565,7 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security(this: *mut core::ffi::c_void, pbstrsecurity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Security(this: *mut core::ffi::c_void, pbstrsecurity: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Security(this) { Ok(ok__) => { @@ -2070,17 +1575,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, bstrsecurity: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, bstrsecurity: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetSecurity(this, core::mem::transmute(&bstrsecurity)).into() } - unsafe extern "system" fn StopOnCompletion(this: *mut core::ffi::c_void, stop: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn StopOnCompletion(this: *mut core::ffi::c_void, stop: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::StopOnCompletion(this) { Ok(ok__) => { @@ -2090,17 +1589,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStopOnCompletion(this: *mut core::ffi::c_void, stop: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetStopOnCompletion(this: *mut core::ffi::c_void, stop: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetStopOnCompletion(this, core::mem::transmute_copy(&stop)).into() } - unsafe extern "system" fn DataManager(this: *mut core::ffi::c_void, datamanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn DataManager(this: *mut core::ffi::c_void, datamanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::DataManager(this) { Ok(ok__) => { @@ -2110,24 +1603,15 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, user: core::mem::MaybeUninit, password: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, user: core::mem::MaybeUninit, password: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetCredentials(this, core::mem::transmute(&user), core::mem::transmute(&password)).into() } - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, server: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, server: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::Query(this, core::mem::transmute(&name), core::mem::transmute(&server)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, server: core::mem::MaybeUninit, mode: CommitMode, validation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, server: core::mem::MaybeUninit, mode: CommitMode, validation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::Commit(this, core::mem::transmute(&name), core::mem::transmute(&server), core::mem::transmute_copy(&mode)) { Ok(ok__) => { @@ -2137,31 +1621,19 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::Delete(this).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, synchronous: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, synchronous: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::Start(this, core::mem::transmute_copy(&synchronous)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, synchronous: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, synchronous: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::Stop(this, core::mem::transmute_copy(&synchronous)).into() } - unsafe extern "system" fn SetXml(this: *mut core::ffi::c_void, xml: core::mem::MaybeUninit, validation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetXml(this: *mut core::ffi::c_void, xml: core::mem::MaybeUninit, validation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::SetXml(this, core::mem::transmute(&xml)) { Ok(ok__) => { @@ -2171,17 +1643,11 @@ impl IDataCollectorSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSet_Impl::SetValue(this, core::mem::transmute(&key), core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSet_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSet_Impl::GetValue(this, core::mem::transmute(&key)) { Ok(ok__) => { @@ -2274,14 +1740,8 @@ pub trait IDataCollectorSetCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDataCollectorSetCollection {} #[cfg(feature = "Win32_System_Com")] impl IDataCollectorSetCollection_Vtbl { - pub const fn new() -> IDataCollectorSetCollection_Vtbl - where - Identity: IDataCollectorSetCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IDataCollectorSetCollection_Impl, - { + pub const fn new() -> IDataCollectorSetCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSetCollection_Impl::Count(this) { Ok(ok__) => { @@ -2291,10 +1751,7 @@ impl IDataCollectorSetCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, set: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSetCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, set: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSetCollection_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -2304,10 +1761,7 @@ impl IDataCollectorSetCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSetCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataCollectorSetCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2317,38 +1771,23 @@ impl IDataCollectorSetCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, set: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSetCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, set: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSetCollection_Impl::Add(this, windows_core::from_raw_borrowed(&set)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, set: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSetCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, set: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSetCollection_Impl::Remove(this, core::mem::transmute(&set)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSetCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSetCollection_Impl::Clear(this).into() } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, sets: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataCollectorSetCollection_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, sets: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSetCollection_Impl::AddRange(this, windows_core::from_raw_borrowed(&sets)).into() } - unsafe extern "system" fn GetDataCollectorSets(this: *mut core::ffi::c_void, server: core::mem::MaybeUninit, filter: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataCollectorSetCollection_Impl, - { + unsafe extern "system" fn GetDataCollectorSets(this: *mut core::ffi::c_void, server: core::mem::MaybeUninit, filter: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataCollectorSetCollection_Impl::GetDataCollectorSets(this, core::mem::transmute(&server), core::mem::transmute(&filter)).into() } @@ -2400,14 +1839,8 @@ pub trait IDataManager_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDataManager {} #[cfg(feature = "Win32_System_Com")] impl IDataManager_Vtbl { - pub const fn new() -> IDataManager_Vtbl - where - Identity: IDataManager_Impl, - { - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + pub const fn new() -> IDataManager_Vtbl { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::Enabled(this) { Ok(ok__) => { @@ -2417,17 +1850,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetEnabled(this, core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn CheckBeforeRunning(this: *mut core::ffi::c_void, pfcheck: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn CheckBeforeRunning(this: *mut core::ffi::c_void, pfcheck: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::CheckBeforeRunning(this) { Ok(ok__) => { @@ -2437,17 +1864,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCheckBeforeRunning(this: *mut core::ffi::c_void, fcheck: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetCheckBeforeRunning(this: *mut core::ffi::c_void, fcheck: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetCheckBeforeRunning(this, core::mem::transmute_copy(&fcheck)).into() } - unsafe extern "system" fn MinFreeDisk(this: *mut core::ffi::c_void, minfreedisk: *mut u32) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn MinFreeDisk(this: *mut core::ffi::c_void, minfreedisk: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::MinFreeDisk(this) { Ok(ok__) => { @@ -2457,17 +1878,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinFreeDisk(this: *mut core::ffi::c_void, minfreedisk: u32) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetMinFreeDisk(this: *mut core::ffi::c_void, minfreedisk: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetMinFreeDisk(this, core::mem::transmute_copy(&minfreedisk)).into() } - unsafe extern "system" fn MaxSize(this: *mut core::ffi::c_void, pulmaxsize: *mut u32) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn MaxSize(this: *mut core::ffi::c_void, pulmaxsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::MaxSize(this) { Ok(ok__) => { @@ -2477,17 +1892,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxSize(this: *mut core::ffi::c_void, ulmaxsize: u32) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetMaxSize(this: *mut core::ffi::c_void, ulmaxsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetMaxSize(this, core::mem::transmute_copy(&ulmaxsize)).into() } - unsafe extern "system" fn MaxFolderCount(this: *mut core::ffi::c_void, pulmaxfoldercount: *mut u32) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn MaxFolderCount(this: *mut core::ffi::c_void, pulmaxfoldercount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::MaxFolderCount(this) { Ok(ok__) => { @@ -2497,17 +1906,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxFolderCount(this: *mut core::ffi::c_void, ulmaxfoldercount: u32) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetMaxFolderCount(this: *mut core::ffi::c_void, ulmaxfoldercount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetMaxFolderCount(this, core::mem::transmute_copy(&ulmaxfoldercount)).into() } - unsafe extern "system" fn ResourcePolicy(this: *mut core::ffi::c_void, ppolicy: *mut ResourcePolicy) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn ResourcePolicy(this: *mut core::ffi::c_void, ppolicy: *mut ResourcePolicy) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::ResourcePolicy(this) { Ok(ok__) => { @@ -2517,17 +1920,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetResourcePolicy(this: *mut core::ffi::c_void, policy: ResourcePolicy) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetResourcePolicy(this: *mut core::ffi::c_void, policy: ResourcePolicy) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetResourcePolicy(this, core::mem::transmute_copy(&policy)).into() } - unsafe extern "system" fn FolderActions(this: *mut core::ffi::c_void, actions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn FolderActions(this: *mut core::ffi::c_void, actions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::FolderActions(this) { Ok(ok__) => { @@ -2537,10 +1934,7 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReportSchema(this: *mut core::ffi::c_void, reportschema: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn ReportSchema(this: *mut core::ffi::c_void, reportschema: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::ReportSchema(this) { Ok(ok__) => { @@ -2550,17 +1944,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReportSchema(this: *mut core::ffi::c_void, reportschema: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetReportSchema(this: *mut core::ffi::c_void, reportschema: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetReportSchema(this, core::mem::transmute(&reportschema)).into() } - unsafe extern "system" fn ReportFileName(this: *mut core::ffi::c_void, pbstrfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn ReportFileName(this: *mut core::ffi::c_void, pbstrfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::ReportFileName(this) { Ok(ok__) => { @@ -2570,17 +1958,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReportFileName(this: *mut core::ffi::c_void, pbstrfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetReportFileName(this: *mut core::ffi::c_void, pbstrfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetReportFileName(this, core::mem::transmute(&pbstrfilename)).into() } - unsafe extern "system" fn RuleTargetFileName(this: *mut core::ffi::c_void, filename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn RuleTargetFileName(this: *mut core::ffi::c_void, filename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::RuleTargetFileName(this) { Ok(ok__) => { @@ -2590,17 +1972,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRuleTargetFileName(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetRuleTargetFileName(this: *mut core::ffi::c_void, filename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetRuleTargetFileName(this, core::mem::transmute(&filename)).into() } - unsafe extern "system" fn EventsFileName(this: *mut core::ffi::c_void, pbstrfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn EventsFileName(this: *mut core::ffi::c_void, pbstrfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::EventsFileName(this) { Ok(ok__) => { @@ -2610,17 +1986,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventsFileName(this: *mut core::ffi::c_void, pbstrfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetEventsFileName(this: *mut core::ffi::c_void, pbstrfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetEventsFileName(this, core::mem::transmute(&pbstrfilename)).into() } - unsafe extern "system" fn Rules(this: *mut core::ffi::c_void, pbstrxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn Rules(this: *mut core::ffi::c_void, pbstrxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::Rules(this) { Ok(ok__) => { @@ -2630,17 +2000,11 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRules(this: *mut core::ffi::c_void, bstrxml: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn SetRules(this: *mut core::ffi::c_void, bstrxml: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::SetRules(this, core::mem::transmute(&bstrxml)).into() } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void, steps: DataManagerSteps, bstrfolder: core::mem::MaybeUninit, errors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void, steps: DataManagerSteps, bstrfolder: core::mem::MaybeUninit, errors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataManager_Impl::Run(this, core::mem::transmute_copy(&steps), core::mem::transmute(&bstrfolder)) { Ok(ok__) => { @@ -2650,10 +2014,7 @@ impl IDataManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Extract(this: *mut core::ffi::c_void, cabfilename: core::mem::MaybeUninit, destinationpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDataManager_Impl, - { + unsafe extern "system" fn Extract(this: *mut core::ffi::c_void, cabfilename: core::mem::MaybeUninit, destinationpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataManager_Impl::Extract(this, core::mem::transmute(&cabfilename), core::mem::transmute(&destinationpath)).into() } @@ -2705,14 +2066,8 @@ pub trait IFolderAction_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFolderAction {} #[cfg(feature = "Win32_System_Com")] impl IFolderAction_Vtbl { - pub const fn new() -> IFolderAction_Vtbl - where - Identity: IFolderAction_Impl, - { - unsafe extern "system" fn Age(this: *mut core::ffi::c_void, pulage: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderAction_Impl, - { + pub const fn new() -> IFolderAction_Vtbl { + unsafe extern "system" fn Age(this: *mut core::ffi::c_void, pulage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderAction_Impl::Age(this) { Ok(ok__) => { @@ -2722,17 +2077,11 @@ impl IFolderAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAge(this: *mut core::ffi::c_void, ulage: u32) -> windows_core::HRESULT - where - Identity: IFolderAction_Impl, - { + unsafe extern "system" fn SetAge(this: *mut core::ffi::c_void, ulage: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderAction_Impl::SetAge(this, core::mem::transmute_copy(&ulage)).into() } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, pulage: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderAction_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, pulage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderAction_Impl::Size(this) { Ok(ok__) => { @@ -2742,17 +2091,11 @@ impl IFolderAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, ulage: u32) -> windows_core::HRESULT - where - Identity: IFolderAction_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, ulage: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderAction_Impl::SetSize(this, core::mem::transmute_copy(&ulage)).into() } - unsafe extern "system" fn Actions(this: *mut core::ffi::c_void, steps: *mut FolderActionSteps) -> windows_core::HRESULT - where - Identity: IFolderAction_Impl, - { + unsafe extern "system" fn Actions(this: *mut core::ffi::c_void, steps: *mut FolderActionSteps) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderAction_Impl::Actions(this) { Ok(ok__) => { @@ -2762,17 +2105,11 @@ impl IFolderAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActions(this: *mut core::ffi::c_void, steps: FolderActionSteps) -> windows_core::HRESULT - where - Identity: IFolderAction_Impl, - { + unsafe extern "system" fn SetActions(this: *mut core::ffi::c_void, steps: FolderActionSteps) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderAction_Impl::SetActions(this, core::mem::transmute_copy(&steps)).into() } - unsafe extern "system" fn SendCabTo(this: *mut core::ffi::c_void, pbstrdestination: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFolderAction_Impl, - { + unsafe extern "system" fn SendCabTo(this: *mut core::ffi::c_void, pbstrdestination: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderAction_Impl::SendCabTo(this) { Ok(ok__) => { @@ -2782,10 +2119,7 @@ impl IFolderAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSendCabTo(this: *mut core::ffi::c_void, bstrdestination: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFolderAction_Impl, - { + unsafe extern "system" fn SetSendCabTo(this: *mut core::ffi::c_void, bstrdestination: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderAction_Impl::SetSendCabTo(this, core::mem::transmute(&bstrdestination)).into() } @@ -2820,14 +2154,8 @@ pub trait IFolderActionCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IFolderActionCollection {} #[cfg(feature = "Win32_System_Com")] impl IFolderActionCollection_Vtbl { - pub const fn new() -> IFolderActionCollection_Vtbl - where - Identity: IFolderActionCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderActionCollection_Impl, - { + pub const fn new() -> IFolderActionCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderActionCollection_Impl::Count(this) { Ok(ok__) => { @@ -2837,10 +2165,7 @@ impl IFolderActionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, action: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderActionCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, action: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderActionCollection_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -2850,10 +2175,7 @@ impl IFolderActionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, r#enum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderActionCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, r#enum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderActionCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2863,38 +2185,23 @@ impl IFolderActionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, action: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderActionCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, action: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderActionCollection_Impl::Add(this, windows_core::from_raw_borrowed(&action)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFolderActionCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderActionCollection_Impl::Remove(this, core::mem::transmute(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderActionCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderActionCollection_Impl::Clear(this).into() } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, actions: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderActionCollection_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, actions: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderActionCollection_Impl::AddRange(this, windows_core::from_raw_borrowed(&actions)).into() } - unsafe extern "system" fn CreateFolderAction(this: *mut core::ffi::c_void, folderaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderActionCollection_Impl, - { + unsafe extern "system" fn CreateFolderAction(this: *mut core::ffi::c_void, folderaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderActionCollection_Impl::CreateFolderAction(this) { Ok(ok__) => { @@ -2920,19 +2227,13 @@ impl IFolderActionCollection_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ILogFileItem_Impl: Sized { +pub trait ILogFileItem_Impl: Sized + windows_core::IUnknownImpl { fn Path(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ILogFileItem {} impl ILogFileItem_Vtbl { - pub const fn new() -> ILogFileItem_Vtbl - where - Identity: ILogFileItem_Impl, - { - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILogFileItem_Impl, - { + pub const fn new() -> ILogFileItem_Vtbl { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILogFileItem_Impl::Path(this) { Ok(ok__) => { @@ -2960,14 +2261,8 @@ pub trait ILogFiles_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ILogFiles {} #[cfg(feature = "Win32_System_Com")] impl ILogFiles_Vtbl { - pub const fn new() -> ILogFiles_Vtbl - where - Identity: ILogFiles_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plong: *mut i32) -> windows_core::HRESULT - where - Identity: ILogFiles_Impl, - { + pub const fn new() -> ILogFiles_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plong: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILogFiles_Impl::Count(this) { Ok(ok__) => { @@ -2977,10 +2272,7 @@ impl ILogFiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILogFiles_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILogFiles_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2990,10 +2282,7 @@ impl ILogFiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILogFiles_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILogFiles_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3003,10 +2292,7 @@ impl ILogFiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pathname: core::mem::MaybeUninit, ppi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILogFiles_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pathname: core::mem::MaybeUninit, ppi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILogFiles_Impl::Add(this, core::mem::transmute(&pathname)) { Ok(ok__) => { @@ -3016,10 +2302,7 @@ impl ILogFiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILogFiles_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILogFiles_Impl::Remove(this, core::mem::transmute(&index)).into() } @@ -3053,14 +2336,8 @@ pub trait IPerformanceCounterDataCollector_Impl: Sized + IDataCollector_Impl { impl windows_core::RuntimeName for IPerformanceCounterDataCollector {} #[cfg(feature = "Win32_System_Com")] impl IPerformanceCounterDataCollector_Vtbl { - pub const fn new() -> IPerformanceCounterDataCollector_Vtbl - where - Identity: IPerformanceCounterDataCollector_Impl, - { - unsafe extern "system" fn DataSourceName(this: *mut core::ffi::c_void, dsn: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPerformanceCounterDataCollector_Impl, - { + pub const fn new() -> IPerformanceCounterDataCollector_Vtbl { + unsafe extern "system" fn DataSourceName(this: *mut core::ffi::c_void, dsn: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerformanceCounterDataCollector_Impl::DataSourceName(this) { Ok(ok__) => { @@ -3070,17 +2347,11 @@ impl IPerformanceCounterDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDataSourceName(this: *mut core::ffi::c_void, dsn: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPerformanceCounterDataCollector_Impl, - { + unsafe extern "system" fn SetDataSourceName(this: *mut core::ffi::c_void, dsn: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerformanceCounterDataCollector_Impl::SetDataSourceName(this, core::mem::transmute(&dsn)).into() } - unsafe extern "system" fn PerformanceCounters(this: *mut core::ffi::c_void, counters: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IPerformanceCounterDataCollector_Impl, - { + unsafe extern "system" fn PerformanceCounters(this: *mut core::ffi::c_void, counters: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerformanceCounterDataCollector_Impl::PerformanceCounters(this) { Ok(ok__) => { @@ -3090,17 +2361,11 @@ impl IPerformanceCounterDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPerformanceCounters(this: *mut core::ffi::c_void, counters: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IPerformanceCounterDataCollector_Impl, - { + unsafe extern "system" fn SetPerformanceCounters(this: *mut core::ffi::c_void, counters: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerformanceCounterDataCollector_Impl::SetPerformanceCounters(this, core::mem::transmute_copy(&counters)).into() } - unsafe extern "system" fn LogFileFormat(this: *mut core::ffi::c_void, format: *mut FileFormat) -> windows_core::HRESULT - where - Identity: IPerformanceCounterDataCollector_Impl, - { + unsafe extern "system" fn LogFileFormat(this: *mut core::ffi::c_void, format: *mut FileFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerformanceCounterDataCollector_Impl::LogFileFormat(this) { Ok(ok__) => { @@ -3110,17 +2375,11 @@ impl IPerformanceCounterDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogFileFormat(this: *mut core::ffi::c_void, format: FileFormat) -> windows_core::HRESULT - where - Identity: IPerformanceCounterDataCollector_Impl, - { + unsafe extern "system" fn SetLogFileFormat(this: *mut core::ffi::c_void, format: FileFormat) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerformanceCounterDataCollector_Impl::SetLogFileFormat(this, core::mem::transmute_copy(&format)).into() } - unsafe extern "system" fn SampleInterval(this: *mut core::ffi::c_void, interval: *mut u32) -> windows_core::HRESULT - where - Identity: IPerformanceCounterDataCollector_Impl, - { + unsafe extern "system" fn SampleInterval(this: *mut core::ffi::c_void, interval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerformanceCounterDataCollector_Impl::SampleInterval(this) { Ok(ok__) => { @@ -3130,17 +2389,11 @@ impl IPerformanceCounterDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSampleInterval(this: *mut core::ffi::c_void, interval: u32) -> windows_core::HRESULT - where - Identity: IPerformanceCounterDataCollector_Impl, - { + unsafe extern "system" fn SetSampleInterval(this: *mut core::ffi::c_void, interval: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerformanceCounterDataCollector_Impl::SetSampleInterval(this, core::mem::transmute_copy(&interval)).into() } - unsafe extern "system" fn SegmentMaxRecords(this: *mut core::ffi::c_void, records: *mut u32) -> windows_core::HRESULT - where - Identity: IPerformanceCounterDataCollector_Impl, - { + unsafe extern "system" fn SegmentMaxRecords(this: *mut core::ffi::c_void, records: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPerformanceCounterDataCollector_Impl::SegmentMaxRecords(this) { Ok(ok__) => { @@ -3150,10 +2403,7 @@ impl IPerformanceCounterDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSegmentMaxRecords(this: *mut core::ffi::c_void, records: u32) -> windows_core::HRESULT - where - Identity: IPerformanceCounterDataCollector_Impl, - { + unsafe extern "system" fn SetSegmentMaxRecords(this: *mut core::ffi::c_void, records: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPerformanceCounterDataCollector_Impl::SetSegmentMaxRecords(this, core::mem::transmute_copy(&records)).into() } @@ -3190,14 +2440,8 @@ pub trait ISchedule_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISchedule {} #[cfg(feature = "Win32_System_Com")] impl ISchedule_Vtbl { - pub const fn new() -> ISchedule_Vtbl - where - Identity: ISchedule_Impl, - { - unsafe extern "system" fn StartDate(this: *mut core::ffi::c_void, start: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchedule_Impl, - { + pub const fn new() -> ISchedule_Vtbl { + unsafe extern "system" fn StartDate(this: *mut core::ffi::c_void, start: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchedule_Impl::StartDate(this) { Ok(ok__) => { @@ -3207,17 +2451,11 @@ impl ISchedule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartDate(this: *mut core::ffi::c_void, start: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchedule_Impl, - { + unsafe extern "system" fn SetStartDate(this: *mut core::ffi::c_void, start: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchedule_Impl::SetStartDate(this, core::mem::transmute(&start)).into() } - unsafe extern "system" fn EndDate(this: *mut core::ffi::c_void, end: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchedule_Impl, - { + unsafe extern "system" fn EndDate(this: *mut core::ffi::c_void, end: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchedule_Impl::EndDate(this) { Ok(ok__) => { @@ -3227,17 +2465,11 @@ impl ISchedule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEndDate(this: *mut core::ffi::c_void, end: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchedule_Impl, - { + unsafe extern "system" fn SetEndDate(this: *mut core::ffi::c_void, end: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchedule_Impl::SetEndDate(this, core::mem::transmute(&end)).into() } - unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, start: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchedule_Impl, - { + unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, start: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchedule_Impl::StartTime(this) { Ok(ok__) => { @@ -3247,17 +2479,11 @@ impl ISchedule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, start: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISchedule_Impl, - { + unsafe extern "system" fn SetStartTime(this: *mut core::ffi::c_void, start: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchedule_Impl::SetStartTime(this, core::mem::transmute(&start)).into() } - unsafe extern "system" fn Days(this: *mut core::ffi::c_void, days: *mut WeekDays) -> windows_core::HRESULT - where - Identity: ISchedule_Impl, - { + unsafe extern "system" fn Days(this: *mut core::ffi::c_void, days: *mut WeekDays) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchedule_Impl::Days(this) { Ok(ok__) => { @@ -3267,10 +2493,7 @@ impl ISchedule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDays(this: *mut core::ffi::c_void, days: WeekDays) -> windows_core::HRESULT - where - Identity: ISchedule_Impl, - { + unsafe extern "system" fn SetDays(this: *mut core::ffi::c_void, days: WeekDays) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchedule_Impl::SetDays(this, core::mem::transmute_copy(&days)).into() } @@ -3305,14 +2528,8 @@ pub trait IScheduleCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IScheduleCollection {} #[cfg(feature = "Win32_System_Com")] impl IScheduleCollection_Vtbl { - pub const fn new() -> IScheduleCollection_Vtbl - where - Identity: IScheduleCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IScheduleCollection_Impl, - { + pub const fn new() -> IScheduleCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduleCollection_Impl::Count(this) { Ok(ok__) => { @@ -3322,10 +2539,7 @@ impl IScheduleCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppschedule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScheduleCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppschedule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduleCollection_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3335,10 +2549,7 @@ impl IScheduleCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScheduleCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduleCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3348,38 +2559,23 @@ impl IScheduleCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pschedule: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScheduleCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pschedule: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduleCollection_Impl::Add(this, windows_core::from_raw_borrowed(&pschedule)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, vschedule: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScheduleCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, vschedule: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduleCollection_Impl::Remove(this, core::mem::transmute(&vschedule)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScheduleCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduleCollection_Impl::Clear(this).into() } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, pschedules: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScheduleCollection_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, pschedules: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduleCollection_Impl::AddRange(this, windows_core::from_raw_borrowed(&pschedules)).into() } - unsafe extern "system" fn CreateSchedule(this: *mut core::ffi::c_void, schedule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScheduleCollection_Impl, - { + unsafe extern "system" fn CreateSchedule(this: *mut core::ffi::c_void, schedule: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduleCollection_Impl::CreateSchedule(this) { Ok(ok__) => { @@ -3406,7 +2602,7 @@ impl IScheduleCollection_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] -pub trait ISystemMonitor_Impl: Sized { +pub trait ISystemMonitor_Impl: Sized + windows_core::IUnknownImpl { fn Appearance(&self) -> windows_core::Result; fn SetAppearance(&self, iappearance: i32) -> windows_core::Result<()>; fn BackColor(&self) -> windows_core::Result; @@ -3488,14 +2684,8 @@ pub trait ISystemMonitor_Impl: Sized { impl windows_core::RuntimeName for ISystemMonitor {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISystemMonitor_Vtbl { - pub const fn new() -> ISystemMonitor_Vtbl - where - Identity: ISystemMonitor_Impl, - { - unsafe extern "system" fn Appearance(this: *mut core::ffi::c_void, iappearance: *mut i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + pub const fn new() -> ISystemMonitor_Vtbl { + unsafe extern "system" fn Appearance(this: *mut core::ffi::c_void, iappearance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::Appearance(this) { Ok(ok__) => { @@ -3505,17 +2695,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAppearance(this: *mut core::ffi::c_void, iappearance: i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetAppearance(this: *mut core::ffi::c_void, iappearance: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetAppearance(this, core::mem::transmute_copy(&iappearance)).into() } - unsafe extern "system" fn BackColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn BackColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::BackColor(this) { Ok(ok__) => { @@ -3525,17 +2709,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetBackColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn BorderStyle(this: *mut core::ffi::c_void, iborderstyle: *mut i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn BorderStyle(this: *mut core::ffi::c_void, iborderstyle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::BorderStyle(this) { Ok(ok__) => { @@ -3545,17 +2723,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBorderStyle(this: *mut core::ffi::c_void, iborderstyle: i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetBorderStyle(this: *mut core::ffi::c_void, iborderstyle: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetBorderStyle(this, core::mem::transmute_copy(&iborderstyle)).into() } - unsafe extern "system" fn ForeColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn ForeColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::ForeColor(this) { Ok(ok__) => { @@ -3565,17 +2737,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetForeColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetForeColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetForeColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn Font(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn Font(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::Font(this) { Ok(ok__) => { @@ -3585,17 +2751,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Font(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn putref_Font(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::putref_Font(this, windows_core::from_raw_borrowed(&pfont)).into() } - unsafe extern "system" fn Counters(this: *mut core::ffi::c_void, ppicounters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn Counters(this: *mut core::ffi::c_void, ppicounters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::Counters(this) { Ok(ok__) => { @@ -3605,17 +2765,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowVerticalGrid(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetShowVerticalGrid(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetShowVerticalGrid(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowVerticalGrid(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn ShowVerticalGrid(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::ShowVerticalGrid(this) { Ok(ok__) => { @@ -3625,17 +2779,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowHorizontalGrid(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetShowHorizontalGrid(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetShowHorizontalGrid(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowHorizontalGrid(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn ShowHorizontalGrid(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::ShowHorizontalGrid(this) { Ok(ok__) => { @@ -3645,17 +2793,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowLegend(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetShowLegend(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetShowLegend(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowLegend(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn ShowLegend(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::ShowLegend(this) { Ok(ok__) => { @@ -3665,17 +2807,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowScaleLabels(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetShowScaleLabels(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetShowScaleLabels(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowScaleLabels(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn ShowScaleLabels(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::ShowScaleLabels(this) { Ok(ok__) => { @@ -3685,17 +2821,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowValueBar(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetShowValueBar(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetShowValueBar(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowValueBar(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn ShowValueBar(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::ShowValueBar(this) { Ok(ok__) => { @@ -3705,17 +2835,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaximumScale(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetMaximumScale(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetMaximumScale(this, core::mem::transmute_copy(&ivalue)).into() } - unsafe extern "system" fn MaximumScale(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn MaximumScale(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::MaximumScale(this) { Ok(ok__) => { @@ -3725,17 +2849,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinimumScale(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetMinimumScale(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetMinimumScale(this, core::mem::transmute_copy(&ivalue)).into() } - unsafe extern "system" fn MinimumScale(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn MinimumScale(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::MinimumScale(this) { Ok(ok__) => { @@ -3745,17 +2863,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUpdateInterval(this: *mut core::ffi::c_void, fvalue: f32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetUpdateInterval(this: *mut core::ffi::c_void, fvalue: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetUpdateInterval(this, core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn UpdateInterval(this: *mut core::ffi::c_void, pfvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn UpdateInterval(this: *mut core::ffi::c_void, pfvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::UpdateInterval(this) { Ok(ok__) => { @@ -3765,17 +2877,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayType(this: *mut core::ffi::c_void, edisplaytype: DisplayTypeConstants) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetDisplayType(this: *mut core::ffi::c_void, edisplaytype: DisplayTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetDisplayType(this, core::mem::transmute_copy(&edisplaytype)).into() } - unsafe extern "system" fn DisplayType(this: *mut core::ffi::c_void, pedisplaytype: *mut DisplayTypeConstants) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn DisplayType(this: *mut core::ffi::c_void, pedisplaytype: *mut DisplayTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::DisplayType(this) { Ok(ok__) => { @@ -3785,17 +2891,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetManualUpdate(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetManualUpdate(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetManualUpdate(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ManualUpdate(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn ManualUpdate(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::ManualUpdate(this) { Ok(ok__) => { @@ -3805,17 +2905,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGraphTitle(this: *mut core::ffi::c_void, bstitle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetGraphTitle(this: *mut core::ffi::c_void, bstitle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetGraphTitle(this, core::mem::transmute(&bstitle)).into() } - unsafe extern "system" fn GraphTitle(this: *mut core::ffi::c_void, pbstitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn GraphTitle(this: *mut core::ffi::c_void, pbstitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::GraphTitle(this) { Ok(ok__) => { @@ -3825,17 +2919,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetYAxisLabel(this: *mut core::ffi::c_void, bstitle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetYAxisLabel(this: *mut core::ffi::c_void, bstitle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetYAxisLabel(this, core::mem::transmute(&bstitle)).into() } - unsafe extern "system" fn YAxisLabel(this: *mut core::ffi::c_void, pbstitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn YAxisLabel(this: *mut core::ffi::c_void, pbstitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::YAxisLabel(this) { Ok(ok__) => { @@ -3845,38 +2933,23 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CollectSample(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn CollectSample(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::CollectSample(this).into() } - unsafe extern "system" fn UpdateGraph(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn UpdateGraph(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::UpdateGraph(this).into() } - unsafe extern "system" fn BrowseCounters(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn BrowseCounters(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::BrowseCounters(this).into() } - unsafe extern "system" fn DisplayProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn DisplayProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::DisplayProperties(this).into() } - unsafe extern "system" fn Counter(this: *mut core::ffi::c_void, iindex: i32, ppicounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn Counter(this: *mut core::ffi::c_void, iindex: i32, ppicounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::Counter(this, core::mem::transmute_copy(&iindex)) { Ok(ok__) => { @@ -3886,10 +2959,7 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddCounter(this: *mut core::ffi::c_void, bspath: core::mem::MaybeUninit, ppicounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn AddCounter(this: *mut core::ffi::c_void, bspath: core::mem::MaybeUninit, ppicounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::AddCounter(this, core::mem::transmute(&bspath)) { Ok(ok__) => { @@ -3899,17 +2969,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteCounter(this: *mut core::ffi::c_void, pctr: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn DeleteCounter(this: *mut core::ffi::c_void, pctr: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::DeleteCounter(this, windows_core::from_raw_borrowed(&pctr)).into() } - unsafe extern "system" fn BackColorCtl(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn BackColorCtl(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::BackColorCtl(this) { Ok(ok__) => { @@ -3919,24 +2983,15 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackColorCtl(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetBackColorCtl(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetBackColorCtl(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn SetLogFileName(this: *mut core::ffi::c_void, bsfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetLogFileName(this: *mut core::ffi::c_void, bsfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetLogFileName(this, core::mem::transmute(&bsfilename)).into() } - unsafe extern "system" fn LogFileName(this: *mut core::ffi::c_void, bsfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn LogFileName(this: *mut core::ffi::c_void, bsfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::LogFileName(this) { Ok(ok__) => { @@ -3946,17 +3001,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogViewStart(this: *mut core::ffi::c_void, starttime: f64) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetLogViewStart(this: *mut core::ffi::c_void, starttime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetLogViewStart(this, core::mem::transmute_copy(&starttime)).into() } - unsafe extern "system" fn LogViewStart(this: *mut core::ffi::c_void, starttime: *mut f64) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn LogViewStart(this: *mut core::ffi::c_void, starttime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::LogViewStart(this) { Ok(ok__) => { @@ -3966,17 +3015,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogViewStop(this: *mut core::ffi::c_void, stoptime: f64) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetLogViewStop(this: *mut core::ffi::c_void, stoptime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetLogViewStop(this, core::mem::transmute_copy(&stoptime)).into() } - unsafe extern "system" fn LogViewStop(this: *mut core::ffi::c_void, stoptime: *mut f64) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn LogViewStop(this: *mut core::ffi::c_void, stoptime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::LogViewStop(this) { Ok(ok__) => { @@ -3986,10 +3029,7 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GridColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn GridColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::GridColor(this) { Ok(ok__) => { @@ -3999,17 +3039,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGridColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetGridColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetGridColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn TimeBarColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn TimeBarColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::TimeBarColor(this) { Ok(ok__) => { @@ -4019,17 +3053,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTimeBarColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetTimeBarColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetTimeBarColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn Highlight(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn Highlight(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::Highlight(this) { Ok(ok__) => { @@ -4039,17 +3067,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHighlight(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetHighlight(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetHighlight(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowToolbar(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn ShowToolbar(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::ShowToolbar(this) { Ok(ok__) => { @@ -4059,45 +3081,27 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowToolbar(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetShowToolbar(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetShowToolbar(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn Paste(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn Paste(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::Paste(this).into() } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::Copy(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::Reset(this).into() } - unsafe extern "system" fn SetReadOnly(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetReadOnly(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetReadOnly(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::ReadOnly(this) { Ok(ok__) => { @@ -4107,17 +3111,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReportValueType(this: *mut core::ffi::c_void, ereportvaluetype: ReportValueTypeConstants) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetReportValueType(this: *mut core::ffi::c_void, ereportvaluetype: ReportValueTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetReportValueType(this, core::mem::transmute_copy(&ereportvaluetype)).into() } - unsafe extern "system" fn ReportValueType(this: *mut core::ffi::c_void, pereportvaluetype: *mut ReportValueTypeConstants) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn ReportValueType(this: *mut core::ffi::c_void, pereportvaluetype: *mut ReportValueTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::ReportValueType(this) { Ok(ok__) => { @@ -4127,17 +3125,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMonitorDuplicateInstances(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetMonitorDuplicateInstances(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetMonitorDuplicateInstances(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn MonitorDuplicateInstances(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn MonitorDuplicateInstances(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::MonitorDuplicateInstances(this) { Ok(ok__) => { @@ -4147,17 +3139,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayFilter(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetDisplayFilter(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetDisplayFilter(this, core::mem::transmute_copy(&ivalue)).into() } - unsafe extern "system" fn DisplayFilter(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn DisplayFilter(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::DisplayFilter(this) { Ok(ok__) => { @@ -4167,10 +3153,7 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LogFiles(this: *mut core::ffi::c_void, ppilogfiles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn LogFiles(this: *mut core::ffi::c_void, ppilogfiles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::LogFiles(this) { Ok(ok__) => { @@ -4180,17 +3163,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDataSourceType(this: *mut core::ffi::c_void, edatasourcetype: DataSourceTypeConstants) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetDataSourceType(this: *mut core::ffi::c_void, edatasourcetype: DataSourceTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetDataSourceType(this, core::mem::transmute_copy(&edatasourcetype)).into() } - unsafe extern "system" fn DataSourceType(this: *mut core::ffi::c_void, pedatasourcetype: *mut DataSourceTypeConstants) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn DataSourceType(this: *mut core::ffi::c_void, pedatasourcetype: *mut DataSourceTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::DataSourceType(this) { Ok(ok__) => { @@ -4200,17 +3177,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSqlDsnName(this: *mut core::ffi::c_void, bssqldsnname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetSqlDsnName(this: *mut core::ffi::c_void, bssqldsnname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetSqlDsnName(this, core::mem::transmute(&bssqldsnname)).into() } - unsafe extern "system" fn SqlDsnName(this: *mut core::ffi::c_void, bssqldsnname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SqlDsnName(this: *mut core::ffi::c_void, bssqldsnname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::SqlDsnName(this) { Ok(ok__) => { @@ -4220,17 +3191,11 @@ impl ISystemMonitor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSqlLogSetName(this: *mut core::ffi::c_void, bssqllogsetname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SetSqlLogSetName(this: *mut core::ffi::c_void, bssqllogsetname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor_Impl::SetSqlLogSetName(this, core::mem::transmute(&bssqllogsetname)).into() } - unsafe extern "system" fn SqlLogSetName(this: *mut core::ffi::c_void, bssqllogsetname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor_Impl, - { + unsafe extern "system" fn SqlLogSetName(this: *mut core::ffi::c_void, bssqllogsetname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor_Impl::SqlLogSetName(this) { Ok(ok__) => { @@ -4351,21 +3316,12 @@ pub trait ISystemMonitor2_Impl: Sized + ISystemMonitor_Impl { impl windows_core::RuntimeName for ISystemMonitor2 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISystemMonitor2_Vtbl { - pub const fn new() -> ISystemMonitor2_Vtbl - where - Identity: ISystemMonitor2_Impl, - { - unsafe extern "system" fn SetEnableDigitGrouping(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + pub const fn new() -> ISystemMonitor2_Vtbl { + unsafe extern "system" fn SetEnableDigitGrouping(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::SetEnableDigitGrouping(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn EnableDigitGrouping(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn EnableDigitGrouping(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor2_Impl::EnableDigitGrouping(this) { Ok(ok__) => { @@ -4375,17 +3331,11 @@ impl ISystemMonitor2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableToolTips(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn SetEnableToolTips(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::SetEnableToolTips(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn EnableToolTips(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn EnableToolTips(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor2_Impl::EnableToolTips(this) { Ok(ok__) => { @@ -4395,17 +3345,11 @@ impl ISystemMonitor2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowTimeAxisLabels(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn SetShowTimeAxisLabels(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::SetShowTimeAxisLabels(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowTimeAxisLabels(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn ShowTimeAxisLabels(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor2_Impl::ShowTimeAxisLabels(this) { Ok(ok__) => { @@ -4415,17 +3359,11 @@ impl ISystemMonitor2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChartScroll(this: *mut core::ffi::c_void, bscroll: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn SetChartScroll(this: *mut core::ffi::c_void, bscroll: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::SetChartScroll(this, core::mem::transmute_copy(&bscroll)).into() } - unsafe extern "system" fn ChartScroll(this: *mut core::ffi::c_void, pbscroll: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn ChartScroll(this: *mut core::ffi::c_void, pbscroll: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor2_Impl::ChartScroll(this) { Ok(ok__) => { @@ -4435,17 +3373,11 @@ impl ISystemMonitor2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDataPointCount(this: *mut core::ffi::c_void, inewcount: i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn SetDataPointCount(this: *mut core::ffi::c_void, inewcount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::SetDataPointCount(this, core::mem::transmute_copy(&inewcount)).into() } - unsafe extern "system" fn DataPointCount(this: *mut core::ffi::c_void, pidatapointcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn DataPointCount(this: *mut core::ffi::c_void, pidatapointcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor2_Impl::DataPointCount(this) { Ok(ok__) => { @@ -4455,38 +3387,23 @@ impl ISystemMonitor2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScaleToFit(this: *mut core::ffi::c_void, bselectedcountersonly: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn ScaleToFit(this: *mut core::ffi::c_void, bselectedcountersonly: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::ScaleToFit(this, core::mem::transmute_copy(&bselectedcountersonly)).into() } - unsafe extern "system" fn SaveAs(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, esysmonfiletype: SysmonFileType) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn SaveAs(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, esysmonfiletype: SysmonFileType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::SaveAs(this, core::mem::transmute(&bstrfilename), core::mem::transmute_copy(&esysmonfiletype)).into() } - unsafe extern "system" fn Relog(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, esysmonfiletype: SysmonFileType, ifilter: i32) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn Relog(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, esysmonfiletype: SysmonFileType, ifilter: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::Relog(this, core::mem::transmute(&bstrfilename), core::mem::transmute_copy(&esysmonfiletype), core::mem::transmute_copy(&ifilter)).into() } - unsafe extern "system" fn ClearData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn ClearData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::ClearData(this).into() } - unsafe extern "system" fn LogSourceStartTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn LogSourceStartTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor2_Impl::LogSourceStartTime(this) { Ok(ok__) => { @@ -4496,10 +3413,7 @@ impl ISystemMonitor2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LogSourceStopTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn LogSourceStopTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemMonitor2_Impl::LogSourceStopTime(this) { Ok(ok__) => { @@ -4509,31 +3423,19 @@ impl ISystemMonitor2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogViewRange(this: *mut core::ffi::c_void, starttime: f64, stoptime: f64) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn SetLogViewRange(this: *mut core::ffi::c_void, starttime: f64, stoptime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::SetLogViewRange(this, core::mem::transmute_copy(&starttime), core::mem::transmute_copy(&stoptime)).into() } - unsafe extern "system" fn GetLogViewRange(this: *mut core::ffi::c_void, starttime: *mut f64, stoptime: *mut f64) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn GetLogViewRange(this: *mut core::ffi::c_void, starttime: *mut f64, stoptime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::GetLogViewRange(this, core::mem::transmute_copy(&starttime), core::mem::transmute_copy(&stoptime)).into() } - unsafe extern "system" fn BatchingLock(this: *mut core::ffi::c_void, flock: super::super::Foundation::VARIANT_BOOL, ebatchreason: SysmonBatchReason) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn BatchingLock(this: *mut core::ffi::c_void, flock: super::super::Foundation::VARIANT_BOOL, ebatchreason: SysmonBatchReason) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::BatchingLock(this, core::mem::transmute_copy(&flock), core::mem::transmute_copy(&ebatchreason)).into() } - unsafe extern "system" fn LoadSettings(this: *mut core::ffi::c_void, bstrsettingfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemMonitor2_Impl, - { + unsafe extern "system" fn LoadSettings(this: *mut core::ffi::c_void, bstrsettingfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitor2_Impl::LoadSettings(this, core::mem::transmute(&bstrsettingfilename)).into() } @@ -4565,7 +3467,7 @@ impl ISystemMonitor2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISystemMonitorEvents_Impl: Sized { +pub trait ISystemMonitorEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnCounterSelected(&self, index: i32); fn OnCounterAdded(&self, index: i32); fn OnCounterDeleted(&self, index: i32); @@ -4574,42 +3476,24 @@ pub trait ISystemMonitorEvents_Impl: Sized { } impl windows_core::RuntimeName for ISystemMonitorEvents {} impl ISystemMonitorEvents_Vtbl { - pub const fn new() -> ISystemMonitorEvents_Vtbl - where - Identity: ISystemMonitorEvents_Impl, - { - unsafe extern "system" fn OnCounterSelected(this: *mut core::ffi::c_void, index: i32) - where - Identity: ISystemMonitorEvents_Impl, - { + pub const fn new() -> ISystemMonitorEvents_Vtbl { + unsafe extern "system" fn OnCounterSelected(this: *mut core::ffi::c_void, index: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitorEvents_Impl::OnCounterSelected(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn OnCounterAdded(this: *mut core::ffi::c_void, index: i32) - where - Identity: ISystemMonitorEvents_Impl, - { + unsafe extern "system" fn OnCounterAdded(this: *mut core::ffi::c_void, index: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitorEvents_Impl::OnCounterAdded(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn OnCounterDeleted(this: *mut core::ffi::c_void, index: i32) - where - Identity: ISystemMonitorEvents_Impl, - { + unsafe extern "system" fn OnCounterDeleted(this: *mut core::ffi::c_void, index: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitorEvents_Impl::OnCounterDeleted(this, core::mem::transmute_copy(&index)) } - unsafe extern "system" fn OnSampleCollected(this: *mut core::ffi::c_void) - where - Identity: ISystemMonitorEvents_Impl, - { + unsafe extern "system" fn OnSampleCollected(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitorEvents_Impl::OnSampleCollected(this) } - unsafe extern "system" fn OnDblClick(this: *mut core::ffi::c_void, index: i32) - where - Identity: ISystemMonitorEvents_Impl, - { + unsafe extern "system" fn OnDblClick(this: *mut core::ffi::c_void, index: i32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMonitorEvents_Impl::OnDblClick(this, core::mem::transmute_copy(&index)) } @@ -4673,14 +3557,8 @@ pub trait ITraceDataCollector_Impl: Sized + IDataCollector_Impl { impl windows_core::RuntimeName for ITraceDataCollector {} #[cfg(feature = "Win32_System_Com")] impl ITraceDataCollector_Vtbl { - pub const fn new() -> ITraceDataCollector_Vtbl - where - Identity: ITraceDataCollector_Impl, - { - unsafe extern "system" fn BufferSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + pub const fn new() -> ITraceDataCollector_Vtbl { + unsafe extern "system" fn BufferSize(this: *mut core::ffi::c_void, size: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::BufferSize(this) { Ok(ok__) => { @@ -4690,17 +3568,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBufferSize(this: *mut core::ffi::c_void, size: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetBufferSize(this: *mut core::ffi::c_void, size: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetBufferSize(this, core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn BuffersLost(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn BuffersLost(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::BuffersLost(this) { Ok(ok__) => { @@ -4710,17 +3582,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBuffersLost(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetBuffersLost(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetBuffersLost(this, core::mem::transmute_copy(&buffers)).into() } - unsafe extern "system" fn BuffersWritten(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn BuffersWritten(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::BuffersWritten(this) { Ok(ok__) => { @@ -4730,17 +3596,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBuffersWritten(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetBuffersWritten(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetBuffersWritten(this, core::mem::transmute_copy(&buffers)).into() } - unsafe extern "system" fn ClockType(this: *mut core::ffi::c_void, clock: *mut ClockType) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn ClockType(this: *mut core::ffi::c_void, clock: *mut ClockType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::ClockType(this) { Ok(ok__) => { @@ -4750,17 +3610,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClockType(this: *mut core::ffi::c_void, clock: ClockType) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetClockType(this: *mut core::ffi::c_void, clock: ClockType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetClockType(this, core::mem::transmute_copy(&clock)).into() } - unsafe extern "system" fn EventsLost(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn EventsLost(this: *mut core::ffi::c_void, events: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::EventsLost(this) { Ok(ok__) => { @@ -4770,17 +3624,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventsLost(this: *mut core::ffi::c_void, events: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetEventsLost(this: *mut core::ffi::c_void, events: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetEventsLost(this, core::mem::transmute_copy(&events)).into() } - unsafe extern "system" fn ExtendedModes(this: *mut core::ffi::c_void, mode: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn ExtendedModes(this: *mut core::ffi::c_void, mode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::ExtendedModes(this) { Ok(ok__) => { @@ -4790,17 +3638,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExtendedModes(this: *mut core::ffi::c_void, mode: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetExtendedModes(this: *mut core::ffi::c_void, mode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetExtendedModes(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn FlushTimer(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn FlushTimer(this: *mut core::ffi::c_void, seconds: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::FlushTimer(this) { Ok(ok__) => { @@ -4810,17 +3652,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlushTimer(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetFlushTimer(this: *mut core::ffi::c_void, seconds: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetFlushTimer(this, core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn FreeBuffers(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn FreeBuffers(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::FreeBuffers(this) { Ok(ok__) => { @@ -4830,17 +3666,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFreeBuffers(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetFreeBuffers(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetFreeBuffers(this, core::mem::transmute_copy(&buffers)).into() } - unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, guid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, guid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::Guid(this) { Ok(ok__) => { @@ -4850,17 +3680,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGuid(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetGuid(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetGuid(this, core::mem::transmute(&guid)).into() } - unsafe extern "system" fn IsKernelTrace(this: *mut core::ffi::c_void, kernel: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn IsKernelTrace(this: *mut core::ffi::c_void, kernel: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::IsKernelTrace(this) { Ok(ok__) => { @@ -4870,10 +3694,7 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaximumBuffers(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn MaximumBuffers(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::MaximumBuffers(this) { Ok(ok__) => { @@ -4883,17 +3704,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaximumBuffers(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetMaximumBuffers(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetMaximumBuffers(this, core::mem::transmute_copy(&buffers)).into() } - unsafe extern "system" fn MinimumBuffers(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn MinimumBuffers(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::MinimumBuffers(this) { Ok(ok__) => { @@ -4903,17 +3718,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinimumBuffers(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetMinimumBuffers(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetMinimumBuffers(this, core::mem::transmute_copy(&buffers)).into() } - unsafe extern "system" fn NumberOfBuffers(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn NumberOfBuffers(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::NumberOfBuffers(this) { Ok(ok__) => { @@ -4923,17 +3732,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNumberOfBuffers(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetNumberOfBuffers(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetNumberOfBuffers(this, core::mem::transmute_copy(&buffers)).into() } - unsafe extern "system" fn PreallocateFile(this: *mut core::ffi::c_void, allocate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn PreallocateFile(this: *mut core::ffi::c_void, allocate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::PreallocateFile(this) { Ok(ok__) => { @@ -4943,17 +3746,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPreallocateFile(this: *mut core::ffi::c_void, allocate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetPreallocateFile(this: *mut core::ffi::c_void, allocate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetPreallocateFile(this, core::mem::transmute_copy(&allocate)).into() } - unsafe extern "system" fn ProcessMode(this: *mut core::ffi::c_void, process: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn ProcessMode(this: *mut core::ffi::c_void, process: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::ProcessMode(this) { Ok(ok__) => { @@ -4963,17 +3760,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProcessMode(this: *mut core::ffi::c_void, process: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetProcessMode(this: *mut core::ffi::c_void, process: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetProcessMode(this, core::mem::transmute_copy(&process)).into() } - unsafe extern "system" fn RealTimeBuffersLost(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn RealTimeBuffersLost(this: *mut core::ffi::c_void, buffers: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::RealTimeBuffersLost(this) { Ok(ok__) => { @@ -4983,17 +3774,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRealTimeBuffersLost(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetRealTimeBuffersLost(this: *mut core::ffi::c_void, buffers: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetRealTimeBuffersLost(this, core::mem::transmute_copy(&buffers)).into() } - unsafe extern "system" fn SessionId(this: *mut core::ffi::c_void, id: *mut u64) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SessionId(this: *mut core::ffi::c_void, id: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::SessionId(this) { Ok(ok__) => { @@ -5003,17 +3788,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSessionId(this: *mut core::ffi::c_void, id: u64) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetSessionId(this: *mut core::ffi::c_void, id: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetSessionId(this, core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn SessionName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SessionName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::SessionName(this) { Ok(ok__) => { @@ -5023,17 +3802,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSessionName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetSessionName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetSessionName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn SessionThreadId(this: *mut core::ffi::c_void, tid: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SessionThreadId(this: *mut core::ffi::c_void, tid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::SessionThreadId(this) { Ok(ok__) => { @@ -5043,17 +3816,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSessionThreadId(this: *mut core::ffi::c_void, tid: u32) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetSessionThreadId(this: *mut core::ffi::c_void, tid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetSessionThreadId(this, core::mem::transmute_copy(&tid)).into() } - unsafe extern "system" fn StreamMode(this: *mut core::ffi::c_void, mode: *mut StreamMode) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn StreamMode(this: *mut core::ffi::c_void, mode: *mut StreamMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::StreamMode(this) { Ok(ok__) => { @@ -5063,17 +3830,11 @@ impl ITraceDataCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamMode(this: *mut core::ffi::c_void, mode: StreamMode) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn SetStreamMode(this: *mut core::ffi::c_void, mode: StreamMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataCollector_Impl::SetStreamMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn TraceDataProviders(this: *mut core::ffi::c_void, providers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataCollector_Impl, - { + unsafe extern "system" fn TraceDataProviders(this: *mut core::ffi::c_void, providers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataCollector_Impl::TraceDataProviders(this) { Ok(ok__) => { @@ -5157,14 +3918,8 @@ pub trait ITraceDataProvider_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITraceDataProvider {} #[cfg(feature = "Win32_System_Com")] impl ITraceDataProvider_Vtbl { - pub const fn new() -> ITraceDataProvider_Vtbl - where - Identity: ITraceDataProvider_Impl, - { - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + pub const fn new() -> ITraceDataProvider_Vtbl { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::DisplayName(this) { Ok(ok__) => { @@ -5174,17 +3929,11 @@ impl ITraceDataProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProvider_Impl::SetDisplayName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, guid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, guid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::Guid(this) { Ok(ok__) => { @@ -5194,17 +3943,11 @@ impl ITraceDataProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGuid(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn SetGuid(this: *mut core::ffi::c_void, guid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProvider_Impl::SetGuid(this, core::mem::transmute(&guid)).into() } - unsafe extern "system" fn Level(this: *mut core::ffi::c_void, pplevel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn Level(this: *mut core::ffi::c_void, pplevel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::Level(this) { Ok(ok__) => { @@ -5214,10 +3957,7 @@ impl ITraceDataProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeywordsAny(this: *mut core::ffi::c_void, ppkeywords: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn KeywordsAny(this: *mut core::ffi::c_void, ppkeywords: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::KeywordsAny(this) { Ok(ok__) => { @@ -5227,10 +3967,7 @@ impl ITraceDataProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeywordsAll(this: *mut core::ffi::c_void, ppkeywords: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn KeywordsAll(this: *mut core::ffi::c_void, ppkeywords: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::KeywordsAll(this) { Ok(ok__) => { @@ -5240,10 +3977,7 @@ impl ITraceDataProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, ppproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::Properties(this) { Ok(ok__) => { @@ -5253,10 +3987,7 @@ impl ITraceDataProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FilterEnabled(this: *mut core::ffi::c_void, filterenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn FilterEnabled(this: *mut core::ffi::c_void, filterenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::FilterEnabled(this) { Ok(ok__) => { @@ -5266,17 +3997,11 @@ impl ITraceDataProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFilterEnabled(this: *mut core::ffi::c_void, filterenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn SetFilterEnabled(this: *mut core::ffi::c_void, filterenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProvider_Impl::SetFilterEnabled(this, core::mem::transmute_copy(&filterenabled)).into() } - unsafe extern "system" fn FilterType(this: *mut core::ffi::c_void, pultype: *mut u32) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn FilterType(this: *mut core::ffi::c_void, pultype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::FilterType(this) { Ok(ok__) => { @@ -5286,17 +4011,11 @@ impl ITraceDataProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFilterType(this: *mut core::ffi::c_void, ultype: u32) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn SetFilterType(this: *mut core::ffi::c_void, ultype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProvider_Impl::SetFilterType(this, core::mem::transmute_copy(&ultype)).into() } - unsafe extern "system" fn FilterData(this: *mut core::ffi::c_void, ppdata: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn FilterData(this: *mut core::ffi::c_void, ppdata: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::FilterData(this) { Ok(ok__) => { @@ -5306,38 +4025,23 @@ impl ITraceDataProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFilterData(this: *mut core::ffi::c_void, pdata: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn SetFilterData(this: *mut core::ffi::c_void, pdata: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProvider_Impl::SetFilterData(this, core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrserver: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrserver: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProvider_Impl::Query(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrserver)).into() } - unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, pfrom: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, pfrom: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProvider_Impl::Resolve(this, windows_core::from_raw_borrowed(&pfrom)).into() } - unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, sddl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn SetSecurity(this: *mut core::ffi::c_void, sddl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProvider_Impl::SetSecurity(this, core::mem::transmute(&sddl)).into() } - unsafe extern "system" fn GetSecurity(this: *mut core::ffi::c_void, securityinfo: u32, sddl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn GetSecurity(this: *mut core::ffi::c_void, securityinfo: u32, sddl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::GetSecurity(this, core::mem::transmute_copy(&securityinfo)) { Ok(ok__) => { @@ -5347,10 +4051,7 @@ impl ITraceDataProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRegisteredProcesses(this: *mut core::ffi::c_void, processes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProvider_Impl, - { + unsafe extern "system" fn GetRegisteredProcesses(this: *mut core::ffi::c_void, processes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProvider_Impl::GetRegisteredProcesses(this) { Ok(ok__) => { @@ -5404,14 +4105,8 @@ pub trait ITraceDataProviderCollection_Impl: Sized + super::Com::IDispatch_Impl impl windows_core::RuntimeName for ITraceDataProviderCollection {} #[cfg(feature = "Win32_System_Com")] impl ITraceDataProviderCollection_Vtbl { - pub const fn new() -> ITraceDataProviderCollection_Vtbl - where - Identity: ITraceDataProviderCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: ITraceDataProviderCollection_Impl, - { + pub const fn new() -> ITraceDataProviderCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProviderCollection_Impl::Count(this) { Ok(ok__) => { @@ -5421,10 +4116,7 @@ impl ITraceDataProviderCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProviderCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProviderCollection_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -5434,10 +4126,7 @@ impl ITraceDataProviderCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProviderCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProviderCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5447,38 +4136,23 @@ impl ITraceDataProviderCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProviderCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProviderCollection_Impl::Add(this, windows_core::from_raw_borrowed(&pprovider)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, vprovider: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITraceDataProviderCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, vprovider: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProviderCollection_Impl::Remove(this, core::mem::transmute(&vprovider)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProviderCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProviderCollection_Impl::Clear(this).into() } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, providers: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProviderCollection_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, providers: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProviderCollection_Impl::AddRange(this, windows_core::from_raw_borrowed(&providers)).into() } - unsafe extern "system" fn CreateTraceDataProvider(this: *mut core::ffi::c_void, provider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITraceDataProviderCollection_Impl, - { + unsafe extern "system" fn CreateTraceDataProvider(this: *mut core::ffi::c_void, provider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITraceDataProviderCollection_Impl::CreateTraceDataProvider(this) { Ok(ok__) => { @@ -5488,17 +4162,11 @@ impl ITraceDataProviderCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTraceDataProviders(this: *mut core::ffi::c_void, server: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITraceDataProviderCollection_Impl, - { + unsafe extern "system" fn GetTraceDataProviders(this: *mut core::ffi::c_void, server: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProviderCollection_Impl::GetTraceDataProviders(this, core::mem::transmute(&server)).into() } - unsafe extern "system" fn GetTraceDataProvidersByProcess(this: *mut core::ffi::c_void, server: core::mem::MaybeUninit, pid: u32) -> windows_core::HRESULT - where - Identity: ITraceDataProviderCollection_Impl, - { + unsafe extern "system" fn GetTraceDataProvidersByProcess(this: *mut core::ffi::c_void, server: core::mem::MaybeUninit, pid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITraceDataProviderCollection_Impl::GetTraceDataProvidersByProcess(this, core::mem::transmute(&server), core::mem::transmute_copy(&pid)).into() } @@ -5541,14 +4209,8 @@ pub trait IValueMap_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IValueMap {} #[cfg(feature = "Win32_System_Com")] impl IValueMap_Vtbl { - pub const fn new() -> IValueMap_Vtbl - where - Identity: IValueMap_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + pub const fn new() -> IValueMap_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMap_Impl::Count(this) { Ok(ok__) => { @@ -5558,10 +4220,7 @@ impl IValueMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMap_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -5571,10 +4230,7 @@ impl IValueMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMap_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5584,10 +4240,7 @@ impl IValueMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMap_Impl::Description(this) { Ok(ok__) => { @@ -5597,17 +4250,11 @@ impl IValueMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMap_Impl::SetDescription(this, core::mem::transmute(&description)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMap_Impl::Value(this) { Ok(ok__) => { @@ -5617,17 +4264,11 @@ impl IValueMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMap_Impl::SetValue(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ValueMapType(this: *mut core::ffi::c_void, r#type: *mut ValueMapType) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn ValueMapType(this: *mut core::ffi::c_void, r#type: *mut ValueMapType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMap_Impl::ValueMapType(this) { Ok(ok__) => { @@ -5637,45 +4278,27 @@ impl IValueMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValueMapType(this: *mut core::ffi::c_void, r#type: ValueMapType) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn SetValueMapType(this: *mut core::ffi::c_void, r#type: ValueMapType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMap_Impl::SetValueMapType(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMap_Impl::Add(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMap_Impl::Remove(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMap_Impl::Clear(this).into() } - unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, map: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn AddRange(this: *mut core::ffi::c_void, map: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMap_Impl::AddRange(this, windows_core::from_raw_borrowed(&map)).into() } - unsafe extern "system" fn CreateValueMapItem(this: *mut core::ffi::c_void, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IValueMap_Impl, - { + unsafe extern "system" fn CreateValueMapItem(this: *mut core::ffi::c_void, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMap_Impl::CreateValueMapItem(this) { Ok(ok__) => { @@ -5724,14 +4347,8 @@ pub trait IValueMapItem_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IValueMapItem {} #[cfg(feature = "Win32_System_Com")] impl IValueMapItem_Vtbl { - pub const fn new() -> IValueMapItem_Vtbl - where - Identity: IValueMapItem_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMapItem_Impl, - { + pub const fn new() -> IValueMapItem_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMapItem_Impl::Description(this) { Ok(ok__) => { @@ -5741,17 +4358,11 @@ impl IValueMapItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMapItem_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMapItem_Impl::SetDescription(this, core::mem::transmute(&description)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IValueMapItem_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMapItem_Impl::Enabled(this) { Ok(ok__) => { @@ -5761,17 +4372,11 @@ impl IValueMapItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IValueMapItem_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMapItem_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn Key(this: *mut core::ffi::c_void, key: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMapItem_Impl, - { + unsafe extern "system" fn Key(this: *mut core::ffi::c_void, key: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMapItem_Impl::Key(this) { Ok(ok__) => { @@ -5781,17 +4386,11 @@ impl IValueMapItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMapItem_Impl, - { + unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, key: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMapItem_Impl::SetKey(this, core::mem::transmute(&key)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMapItem_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMapItem_Impl::Value(this) { Ok(ok__) => { @@ -5801,17 +4400,11 @@ impl IValueMapItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueMapItem_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMapItem_Impl::SetValue(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ValueMapType(this: *mut core::ffi::c_void, r#type: *mut ValueMapType) -> windows_core::HRESULT - where - Identity: IValueMapItem_Impl, - { + unsafe extern "system" fn ValueMapType(this: *mut core::ffi::c_void, r#type: *mut ValueMapType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueMapItem_Impl::ValueMapType(this) { Ok(ok__) => { @@ -5821,10 +4414,7 @@ impl IValueMapItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValueMapType(this: *mut core::ffi::c_void, r#type: ValueMapType) -> windows_core::HRESULT - where - Identity: IValueMapItem_Impl, - { + unsafe extern "system" fn SetValueMapType(this: *mut core::ffi::c_void, r#type: ValueMapType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueMapItem_Impl::SetValueMapType(this, core::mem::transmute_copy(&r#type)).into() } @@ -5846,7 +4436,7 @@ impl IValueMapItem_Vtbl { iid == &::IID || iid == &::IID } } -pub trait _ICounterItemUnion_Impl: Sized { +pub trait _ICounterItemUnion_Impl: Sized + windows_core::IUnknownImpl { fn Value(&self) -> windows_core::Result; fn SetColor(&self, color: u32) -> windows_core::Result<()>; fn Color(&self) -> windows_core::Result; @@ -5867,14 +4457,8 @@ pub trait _ICounterItemUnion_Impl: Sized { } impl windows_core::RuntimeName for _ICounterItemUnion {} impl _ICounterItemUnion_Vtbl { - pub const fn new() -> _ICounterItemUnion_Vtbl - where - Identity: _ICounterItemUnion_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pdblvalue: *mut f64) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + pub const fn new() -> _ICounterItemUnion_Vtbl { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pdblvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ICounterItemUnion_Impl::Value(this) { Ok(ok__) => { @@ -5884,17 +4468,11 @@ impl _ICounterItemUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ICounterItemUnion_Impl::SetColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn Color(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn Color(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ICounterItemUnion_Impl::Color(this) { Ok(ok__) => { @@ -5904,17 +4482,11 @@ impl _ICounterItemUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, iwidth: i32) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, iwidth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ICounterItemUnion_Impl::SetWidth(this, core::mem::transmute_copy(&iwidth)).into() } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ICounterItemUnion_Impl::Width(this) { Ok(ok__) => { @@ -5924,17 +4496,11 @@ impl _ICounterItemUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLineStyle(this: *mut core::ffi::c_void, ilinestyle: i32) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn SetLineStyle(this: *mut core::ffi::c_void, ilinestyle: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ICounterItemUnion_Impl::SetLineStyle(this, core::mem::transmute_copy(&ilinestyle)).into() } - unsafe extern "system" fn LineStyle(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn LineStyle(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ICounterItemUnion_Impl::LineStyle(this) { Ok(ok__) => { @@ -5944,17 +4510,11 @@ impl _ICounterItemUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScaleFactor(this: *mut core::ffi::c_void, iscale: i32) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn SetScaleFactor(this: *mut core::ffi::c_void, iscale: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ICounterItemUnion_Impl::SetScaleFactor(this, core::mem::transmute_copy(&iscale)).into() } - unsafe extern "system" fn ScaleFactor(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn ScaleFactor(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ICounterItemUnion_Impl::ScaleFactor(this) { Ok(ok__) => { @@ -5964,10 +4524,7 @@ impl _ICounterItemUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ICounterItemUnion_Impl::Path(this) { Ok(ok__) => { @@ -5977,31 +4534,19 @@ impl _ICounterItemUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut f64, status: *mut i32) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut f64, status: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ICounterItemUnion_Impl::GetValue(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ICounterItemUnion_Impl::GetStatistics(this, core::mem::transmute_copy(&max), core::mem::transmute_copy(&min), core::mem::transmute_copy(&avg), core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn SetSelected(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn SetSelected(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ICounterItemUnion_Impl::SetSelected(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn Selected(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn Selected(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ICounterItemUnion_Impl::Selected(this) { Ok(ok__) => { @@ -6011,17 +4556,11 @@ impl _ICounterItemUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ICounterItemUnion_Impl::SetVisible(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ICounterItemUnion_Impl::Visible(this) { Ok(ok__) => { @@ -6031,10 +4570,7 @@ impl _ICounterItemUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataAt(this: *mut core::ffi::c_void, iindex: i32, iwhich: SysmonDataType, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ICounterItemUnion_Impl, - { + unsafe extern "system" fn GetDataAt(this: *mut core::ffi::c_void, iindex: i32, iwhich: SysmonDataType, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ICounterItemUnion_Impl::GetDataAt(this, core::mem::transmute_copy(&iindex), core::mem::transmute_copy(&iwhich)) { Ok(ok__) => { @@ -6070,7 +4606,7 @@ impl _ICounterItemUnion_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] -pub trait _ISystemMonitorUnion_Impl: Sized { +pub trait _ISystemMonitorUnion_Impl: Sized + windows_core::IUnknownImpl { fn Appearance(&self) -> windows_core::Result; fn SetAppearance(&self, iappearance: i32) -> windows_core::Result<()>; fn BackColor(&self) -> windows_core::Result; @@ -6172,14 +4708,8 @@ pub trait _ISystemMonitorUnion_Impl: Sized { impl windows_core::RuntimeName for _ISystemMonitorUnion {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl _ISystemMonitorUnion_Vtbl { - pub const fn new() -> _ISystemMonitorUnion_Vtbl - where - Identity: _ISystemMonitorUnion_Impl, - { - unsafe extern "system" fn Appearance(this: *mut core::ffi::c_void, iappearance: *mut i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + pub const fn new() -> _ISystemMonitorUnion_Vtbl { + unsafe extern "system" fn Appearance(this: *mut core::ffi::c_void, iappearance: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::Appearance(this) { Ok(ok__) => { @@ -6189,17 +4719,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAppearance(this: *mut core::ffi::c_void, iappearance: i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetAppearance(this: *mut core::ffi::c_void, iappearance: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetAppearance(this, core::mem::transmute_copy(&iappearance)).into() } - unsafe extern "system" fn BackColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn BackColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::BackColor(this) { Ok(ok__) => { @@ -6209,17 +4733,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetBackColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn BorderStyle(this: *mut core::ffi::c_void, iborderstyle: *mut i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn BorderStyle(this: *mut core::ffi::c_void, iborderstyle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::BorderStyle(this) { Ok(ok__) => { @@ -6229,17 +4747,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBorderStyle(this: *mut core::ffi::c_void, iborderstyle: i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetBorderStyle(this: *mut core::ffi::c_void, iborderstyle: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetBorderStyle(this, core::mem::transmute_copy(&iborderstyle)).into() } - unsafe extern "system" fn ForeColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ForeColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ForeColor(this) { Ok(ok__) => { @@ -6249,17 +4761,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetForeColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetForeColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetForeColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn Font(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn Font(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::Font(this) { Ok(ok__) => { @@ -6269,17 +4775,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Font(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn putref_Font(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::putref_Font(this, windows_core::from_raw_borrowed(&pfont)).into() } - unsafe extern "system" fn Counters(this: *mut core::ffi::c_void, ppicounters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn Counters(this: *mut core::ffi::c_void, ppicounters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::Counters(this) { Ok(ok__) => { @@ -6289,17 +4789,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowVerticalGrid(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetShowVerticalGrid(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetShowVerticalGrid(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowVerticalGrid(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ShowVerticalGrid(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ShowVerticalGrid(this) { Ok(ok__) => { @@ -6309,17 +4803,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowHorizontalGrid(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetShowHorizontalGrid(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetShowHorizontalGrid(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowHorizontalGrid(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ShowHorizontalGrid(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ShowHorizontalGrid(this) { Ok(ok__) => { @@ -6329,17 +4817,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowLegend(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetShowLegend(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetShowLegend(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowLegend(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ShowLegend(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ShowLegend(this) { Ok(ok__) => { @@ -6349,17 +4831,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowScaleLabels(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetShowScaleLabels(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetShowScaleLabels(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowScaleLabels(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ShowScaleLabels(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ShowScaleLabels(this) { Ok(ok__) => { @@ -6369,17 +4845,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowValueBar(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetShowValueBar(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetShowValueBar(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowValueBar(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ShowValueBar(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ShowValueBar(this) { Ok(ok__) => { @@ -6389,17 +4859,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaximumScale(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetMaximumScale(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetMaximumScale(this, core::mem::transmute_copy(&ivalue)).into() } - unsafe extern "system" fn MaximumScale(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn MaximumScale(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::MaximumScale(this) { Ok(ok__) => { @@ -6409,17 +4873,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinimumScale(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetMinimumScale(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetMinimumScale(this, core::mem::transmute_copy(&ivalue)).into() } - unsafe extern "system" fn MinimumScale(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn MinimumScale(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::MinimumScale(this) { Ok(ok__) => { @@ -6429,17 +4887,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUpdateInterval(this: *mut core::ffi::c_void, fvalue: f32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetUpdateInterval(this: *mut core::ffi::c_void, fvalue: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetUpdateInterval(this, core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn UpdateInterval(this: *mut core::ffi::c_void, pfvalue: *mut f32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn UpdateInterval(this: *mut core::ffi::c_void, pfvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::UpdateInterval(this) { Ok(ok__) => { @@ -6449,17 +4901,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayType(this: *mut core::ffi::c_void, edisplaytype: DisplayTypeConstants) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetDisplayType(this: *mut core::ffi::c_void, edisplaytype: DisplayTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetDisplayType(this, core::mem::transmute_copy(&edisplaytype)).into() } - unsafe extern "system" fn DisplayType(this: *mut core::ffi::c_void, pedisplaytype: *mut DisplayTypeConstants) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn DisplayType(this: *mut core::ffi::c_void, pedisplaytype: *mut DisplayTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::DisplayType(this) { Ok(ok__) => { @@ -6469,17 +4915,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetManualUpdate(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetManualUpdate(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetManualUpdate(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ManualUpdate(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ManualUpdate(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ManualUpdate(this) { Ok(ok__) => { @@ -6489,17 +4929,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGraphTitle(this: *mut core::ffi::c_void, bstitle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetGraphTitle(this: *mut core::ffi::c_void, bstitle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetGraphTitle(this, core::mem::transmute(&bstitle)).into() } - unsafe extern "system" fn GraphTitle(this: *mut core::ffi::c_void, pbstitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn GraphTitle(this: *mut core::ffi::c_void, pbstitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::GraphTitle(this) { Ok(ok__) => { @@ -6509,17 +4943,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetYAxisLabel(this: *mut core::ffi::c_void, bstitle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetYAxisLabel(this: *mut core::ffi::c_void, bstitle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetYAxisLabel(this, core::mem::transmute(&bstitle)).into() } - unsafe extern "system" fn YAxisLabel(this: *mut core::ffi::c_void, pbstitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn YAxisLabel(this: *mut core::ffi::c_void, pbstitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::YAxisLabel(this) { Ok(ok__) => { @@ -6529,38 +4957,23 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CollectSample(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn CollectSample(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::CollectSample(this).into() } - unsafe extern "system" fn UpdateGraph(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn UpdateGraph(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::UpdateGraph(this).into() } - unsafe extern "system" fn BrowseCounters(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn BrowseCounters(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::BrowseCounters(this).into() } - unsafe extern "system" fn DisplayProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn DisplayProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::DisplayProperties(this).into() } - unsafe extern "system" fn Counter(this: *mut core::ffi::c_void, iindex: i32, ppicounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn Counter(this: *mut core::ffi::c_void, iindex: i32, ppicounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::Counter(this, core::mem::transmute_copy(&iindex)) { Ok(ok__) => { @@ -6570,10 +4983,7 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddCounter(this: *mut core::ffi::c_void, bspath: core::mem::MaybeUninit, ppicounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn AddCounter(this: *mut core::ffi::c_void, bspath: core::mem::MaybeUninit, ppicounter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::AddCounter(this, core::mem::transmute(&bspath)) { Ok(ok__) => { @@ -6583,17 +4993,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteCounter(this: *mut core::ffi::c_void, pctr: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn DeleteCounter(this: *mut core::ffi::c_void, pctr: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::DeleteCounter(this, windows_core::from_raw_borrowed(&pctr)).into() } - unsafe extern "system" fn BackColorCtl(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn BackColorCtl(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::BackColorCtl(this) { Ok(ok__) => { @@ -6603,24 +5007,15 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackColorCtl(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetBackColorCtl(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetBackColorCtl(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn SetLogFileName(this: *mut core::ffi::c_void, bsfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetLogFileName(this: *mut core::ffi::c_void, bsfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetLogFileName(this, core::mem::transmute(&bsfilename)).into() } - unsafe extern "system" fn LogFileName(this: *mut core::ffi::c_void, bsfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn LogFileName(this: *mut core::ffi::c_void, bsfilename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::LogFileName(this) { Ok(ok__) => { @@ -6630,17 +5025,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogViewStart(this: *mut core::ffi::c_void, starttime: f64) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetLogViewStart(this: *mut core::ffi::c_void, starttime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetLogViewStart(this, core::mem::transmute_copy(&starttime)).into() } - unsafe extern "system" fn LogViewStart(this: *mut core::ffi::c_void, starttime: *mut f64) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn LogViewStart(this: *mut core::ffi::c_void, starttime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::LogViewStart(this) { Ok(ok__) => { @@ -6650,17 +5039,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogViewStop(this: *mut core::ffi::c_void, stoptime: f64) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetLogViewStop(this: *mut core::ffi::c_void, stoptime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetLogViewStop(this, core::mem::transmute_copy(&stoptime)).into() } - unsafe extern "system" fn LogViewStop(this: *mut core::ffi::c_void, stoptime: *mut f64) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn LogViewStop(this: *mut core::ffi::c_void, stoptime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::LogViewStop(this) { Ok(ok__) => { @@ -6670,10 +5053,7 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GridColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn GridColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::GridColor(this) { Ok(ok__) => { @@ -6683,17 +5063,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGridColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetGridColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetGridColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn TimeBarColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn TimeBarColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::TimeBarColor(this) { Ok(ok__) => { @@ -6703,17 +5077,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTimeBarColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetTimeBarColor(this: *mut core::ffi::c_void, color: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetTimeBarColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn Highlight(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn Highlight(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::Highlight(this) { Ok(ok__) => { @@ -6723,17 +5091,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHighlight(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetHighlight(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetHighlight(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowToolbar(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ShowToolbar(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ShowToolbar(this) { Ok(ok__) => { @@ -6743,45 +5105,27 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowToolbar(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetShowToolbar(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetShowToolbar(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn Paste(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn Paste(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::Paste(this).into() } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::Copy(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::Reset(this).into() } - unsafe extern "system" fn SetReadOnly(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetReadOnly(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetReadOnly(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ReadOnly(this) { Ok(ok__) => { @@ -6791,17 +5135,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReportValueType(this: *mut core::ffi::c_void, ereportvaluetype: ReportValueTypeConstants) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetReportValueType(this: *mut core::ffi::c_void, ereportvaluetype: ReportValueTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetReportValueType(this, core::mem::transmute_copy(&ereportvaluetype)).into() } - unsafe extern "system" fn ReportValueType(this: *mut core::ffi::c_void, pereportvaluetype: *mut ReportValueTypeConstants) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ReportValueType(this: *mut core::ffi::c_void, pereportvaluetype: *mut ReportValueTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ReportValueType(this) { Ok(ok__) => { @@ -6811,17 +5149,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMonitorDuplicateInstances(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetMonitorDuplicateInstances(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetMonitorDuplicateInstances(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn MonitorDuplicateInstances(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn MonitorDuplicateInstances(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::MonitorDuplicateInstances(this) { Ok(ok__) => { @@ -6831,17 +5163,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayFilter(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetDisplayFilter(this: *mut core::ffi::c_void, ivalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetDisplayFilter(this, core::mem::transmute_copy(&ivalue)).into() } - unsafe extern "system" fn DisplayFilter(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn DisplayFilter(this: *mut core::ffi::c_void, pivalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::DisplayFilter(this) { Ok(ok__) => { @@ -6851,10 +5177,7 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LogFiles(this: *mut core::ffi::c_void, ppilogfiles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn LogFiles(this: *mut core::ffi::c_void, ppilogfiles: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::LogFiles(this) { Ok(ok__) => { @@ -6864,17 +5187,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDataSourceType(this: *mut core::ffi::c_void, edatasourcetype: DataSourceTypeConstants) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetDataSourceType(this: *mut core::ffi::c_void, edatasourcetype: DataSourceTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetDataSourceType(this, core::mem::transmute_copy(&edatasourcetype)).into() } - unsafe extern "system" fn DataSourceType(this: *mut core::ffi::c_void, pedatasourcetype: *mut DataSourceTypeConstants) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn DataSourceType(this: *mut core::ffi::c_void, pedatasourcetype: *mut DataSourceTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::DataSourceType(this) { Ok(ok__) => { @@ -6884,17 +5201,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSqlDsnName(this: *mut core::ffi::c_void, bssqldsnname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetSqlDsnName(this: *mut core::ffi::c_void, bssqldsnname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetSqlDsnName(this, core::mem::transmute(&bssqldsnname)).into() } - unsafe extern "system" fn SqlDsnName(this: *mut core::ffi::c_void, bssqldsnname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SqlDsnName(this: *mut core::ffi::c_void, bssqldsnname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::SqlDsnName(this) { Ok(ok__) => { @@ -6904,17 +5215,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSqlLogSetName(this: *mut core::ffi::c_void, bssqllogsetname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetSqlLogSetName(this: *mut core::ffi::c_void, bssqllogsetname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetSqlLogSetName(this, core::mem::transmute(&bssqllogsetname)).into() } - unsafe extern "system" fn SqlLogSetName(this: *mut core::ffi::c_void, bssqllogsetname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SqlLogSetName(this: *mut core::ffi::c_void, bssqllogsetname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::SqlLogSetName(this) { Ok(ok__) => { @@ -6924,17 +5229,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableDigitGrouping(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetEnableDigitGrouping(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetEnableDigitGrouping(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn EnableDigitGrouping(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn EnableDigitGrouping(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::EnableDigitGrouping(this) { Ok(ok__) => { @@ -6944,17 +5243,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableToolTips(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetEnableToolTips(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetEnableToolTips(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn EnableToolTips(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn EnableToolTips(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::EnableToolTips(this) { Ok(ok__) => { @@ -6964,17 +5257,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowTimeAxisLabels(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetShowTimeAxisLabels(this: *mut core::ffi::c_void, bstate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetShowTimeAxisLabels(this, core::mem::transmute_copy(&bstate)).into() } - unsafe extern "system" fn ShowTimeAxisLabels(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ShowTimeAxisLabels(this: *mut core::ffi::c_void, pbstate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ShowTimeAxisLabels(this) { Ok(ok__) => { @@ -6984,17 +5271,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChartScroll(this: *mut core::ffi::c_void, bscroll: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetChartScroll(this: *mut core::ffi::c_void, bscroll: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetChartScroll(this, core::mem::transmute_copy(&bscroll)).into() } - unsafe extern "system" fn ChartScroll(this: *mut core::ffi::c_void, pbscroll: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ChartScroll(this: *mut core::ffi::c_void, pbscroll: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::ChartScroll(this) { Ok(ok__) => { @@ -7004,17 +5285,11 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDataPointCount(this: *mut core::ffi::c_void, inewcount: i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetDataPointCount(this: *mut core::ffi::c_void, inewcount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetDataPointCount(this, core::mem::transmute_copy(&inewcount)).into() } - unsafe extern "system" fn DataPointCount(this: *mut core::ffi::c_void, pidatapointcount: *mut i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn DataPointCount(this: *mut core::ffi::c_void, pidatapointcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::DataPointCount(this) { Ok(ok__) => { @@ -7024,38 +5299,23 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScaleToFit(this: *mut core::ffi::c_void, bselectedcountersonly: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ScaleToFit(this: *mut core::ffi::c_void, bselectedcountersonly: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::ScaleToFit(this, core::mem::transmute_copy(&bselectedcountersonly)).into() } - unsafe extern "system" fn SaveAs(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, esysmonfiletype: SysmonFileType) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SaveAs(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, esysmonfiletype: SysmonFileType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SaveAs(this, core::mem::transmute(&bstrfilename), core::mem::transmute_copy(&esysmonfiletype)).into() } - unsafe extern "system" fn Relog(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, esysmonfiletype: SysmonFileType, ifilter: i32) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn Relog(this: *mut core::ffi::c_void, bstrfilename: core::mem::MaybeUninit, esysmonfiletype: SysmonFileType, ifilter: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::Relog(this, core::mem::transmute(&bstrfilename), core::mem::transmute_copy(&esysmonfiletype), core::mem::transmute_copy(&ifilter)).into() } - unsafe extern "system" fn ClearData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn ClearData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::ClearData(this).into() } - unsafe extern "system" fn LogSourceStartTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn LogSourceStartTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::LogSourceStartTime(this) { Ok(ok__) => { @@ -7065,10 +5325,7 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LogSourceStopTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn LogSourceStopTime(this: *mut core::ffi::c_void, pdate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _ISystemMonitorUnion_Impl::LogSourceStopTime(this) { Ok(ok__) => { @@ -7078,31 +5335,19 @@ impl _ISystemMonitorUnion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLogViewRange(this: *mut core::ffi::c_void, starttime: f64, stoptime: f64) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn SetLogViewRange(this: *mut core::ffi::c_void, starttime: f64, stoptime: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::SetLogViewRange(this, core::mem::transmute_copy(&starttime), core::mem::transmute_copy(&stoptime)).into() } - unsafe extern "system" fn GetLogViewRange(this: *mut core::ffi::c_void, starttime: *mut f64, stoptime: *mut f64) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn GetLogViewRange(this: *mut core::ffi::c_void, starttime: *mut f64, stoptime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::GetLogViewRange(this, core::mem::transmute_copy(&starttime), core::mem::transmute_copy(&stoptime)).into() } - unsafe extern "system" fn BatchingLock(this: *mut core::ffi::c_void, flock: super::super::Foundation::VARIANT_BOOL, ebatchreason: SysmonBatchReason) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn BatchingLock(this: *mut core::ffi::c_void, flock: super::super::Foundation::VARIANT_BOOL, ebatchreason: SysmonBatchReason) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::BatchingLock(this, core::mem::transmute_copy(&flock), core::mem::transmute_copy(&ebatchreason)).into() } - unsafe extern "system" fn LoadSettings(this: *mut core::ffi::c_void, bstrsettingfilename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: _ISystemMonitorUnion_Impl, - { + unsafe extern "system" fn LoadSettings(this: *mut core::ffi::c_void, bstrsettingfilename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _ISystemMonitorUnion_Impl::LoadSettings(this, core::mem::transmute(&bstrsettingfilename)).into() } 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 5a85486a63..f789ef0b1d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_Networking_WinSock")] -pub trait INetworkTransportSettings_Impl: Sized { +pub trait INetworkTransportSettings_Impl: Sized + windows_core::IUnknownImpl { fn ApplySetting(&self, settingid: *const super::super::Networking::WinSock::TRANSPORT_SETTING_ID, lengthin: u32, valuein: *const u8, lengthout: *mut u32, valueout: *mut *mut u8) -> windows_core::Result<()>; fn QuerySetting(&self, settingid: *const super::super::Networking::WinSock::TRANSPORT_SETTING_ID, lengthin: u32, valuein: *const u8, lengthout: *mut u32, valueout: *mut *mut u8) -> windows_core::Result<()>; } @@ -7,21 +7,12 @@ pub trait INetworkTransportSettings_Impl: Sized { impl windows_core::RuntimeName for INetworkTransportSettings {} #[cfg(feature = "Win32_Networking_WinSock")] impl INetworkTransportSettings_Vtbl { - pub const fn new() -> INetworkTransportSettings_Vtbl - where - Identity: INetworkTransportSettings_Impl, - { - unsafe extern "system" fn ApplySetting(this: *mut core::ffi::c_void, settingid: *const super::super::Networking::WinSock::TRANSPORT_SETTING_ID, lengthin: u32, valuein: *const u8, lengthout: *mut u32, valueout: *mut *mut u8) -> windows_core::HRESULT - where - Identity: INetworkTransportSettings_Impl, - { + pub const fn new() -> INetworkTransportSettings_Vtbl { + unsafe extern "system" fn ApplySetting(this: *mut core::ffi::c_void, settingid: *const super::super::Networking::WinSock::TRANSPORT_SETTING_ID, lengthin: u32, valuein: *const u8, lengthout: *mut u32, valueout: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkTransportSettings_Impl::ApplySetting(this, core::mem::transmute_copy(&settingid), core::mem::transmute_copy(&lengthin), core::mem::transmute_copy(&valuein), core::mem::transmute_copy(&lengthout), core::mem::transmute_copy(&valueout)).into() } - unsafe extern "system" fn QuerySetting(this: *mut core::ffi::c_void, settingid: *const super::super::Networking::WinSock::TRANSPORT_SETTING_ID, lengthin: u32, valuein: *const u8, lengthout: *mut u32, valueout: *mut *mut u8) -> windows_core::HRESULT - where - Identity: INetworkTransportSettings_Impl, - { + unsafe extern "system" fn QuerySetting(this: *mut core::ffi::c_void, settingid: *const super::super::Networking::WinSock::TRANSPORT_SETTING_ID, lengthin: u32, valuein: *const u8, lengthout: *mut u32, valueout: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkTransportSettings_Impl::QuerySetting(this, core::mem::transmute_copy(&settingid), core::mem::transmute_copy(&lengthin), core::mem::transmute_copy(&valuein), core::mem::transmute_copy(&lengthout), core::mem::transmute_copy(&valueout)).into() } @@ -35,27 +26,18 @@ impl INetworkTransportSettings_Vtbl { iid == &::IID } } -pub trait INotificationTransportSync_Impl: Sized { +pub trait INotificationTransportSync_Impl: Sized + windows_core::IUnknownImpl { fn CompleteDelivery(&self) -> windows_core::Result<()>; fn Flush(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INotificationTransportSync {} impl INotificationTransportSync_Vtbl { - pub const fn new() -> INotificationTransportSync_Vtbl - where - Identity: INotificationTransportSync_Impl, - { - unsafe extern "system" fn CompleteDelivery(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INotificationTransportSync_Impl, - { + pub const fn new() -> INotificationTransportSync_Vtbl { + unsafe extern "system" fn CompleteDelivery(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INotificationTransportSync_Impl::CompleteDelivery(this).into() } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INotificationTransportSync_Impl, - { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INotificationTransportSync_Impl::Flush(this).into() } @@ -75,14 +57,8 @@ pub trait IRTCBuddy_Impl: Sized + IRTCPresenceContact_Impl { } impl windows_core::RuntimeName for IRTCBuddy {} impl IRTCBuddy_Vtbl { - pub const fn new() -> IRTCBuddy_Vtbl - where - Identity: IRTCBuddy_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS) -> windows_core::HRESULT - where - Identity: IRTCBuddy_Impl, - { + pub const fn new() -> IRTCBuddy_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddy_Impl::Status(this) { Ok(ok__) => { @@ -92,10 +68,7 @@ impl IRTCBuddy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Notes(this: *mut core::ffi::c_void, pbstrnotes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCBuddy_Impl, - { + unsafe extern "system" fn Notes(this: *mut core::ffi::c_void, pbstrnotes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddy_Impl::Notes(this) { Ok(ok__) => { @@ -126,14 +99,8 @@ pub trait IRTCBuddy2_Impl: Sized + IRTCBuddy_Impl { impl windows_core::RuntimeName for IRTCBuddy2 {} #[cfg(feature = "Win32_System_Com")] impl IRTCBuddy2_Vtbl { - pub const fn new() -> IRTCBuddy2_Vtbl - where - Identity: IRTCBuddy2_Impl, - { - unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddy2_Impl, - { + pub const fn new() -> IRTCBuddy2_Vtbl { + unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddy2_Impl::Profile(this) { Ok(ok__) => { @@ -143,17 +110,11 @@ impl IRTCBuddy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddy2_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCBuddy2_Impl::Refresh(this).into() } - unsafe extern "system" fn EnumerateGroups(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddy2_Impl, - { + unsafe extern "system" fn EnumerateGroups(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddy2_Impl::EnumerateGroups(this) { Ok(ok__) => { @@ -163,10 +124,7 @@ impl IRTCBuddy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Groups(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddy2_Impl, - { + unsafe extern "system" fn Groups(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddy2_Impl::Groups(this) { Ok(ok__) => { @@ -176,10 +134,7 @@ impl IRTCBuddy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_PresenceProperty(this: *mut core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCBuddy2_Impl, - { + unsafe extern "system" fn get_PresenceProperty(this: *mut core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddy2_Impl::get_PresenceProperty(this, core::mem::transmute_copy(&enproperty)) { Ok(ok__) => { @@ -189,10 +144,7 @@ impl IRTCBuddy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumeratePresenceDevices(this: *mut core::ffi::c_void, ppenumdevices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddy2_Impl, - { + unsafe extern "system" fn EnumeratePresenceDevices(this: *mut core::ffi::c_void, ppenumdevices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddy2_Impl::EnumeratePresenceDevices(this) { Ok(ok__) => { @@ -202,10 +154,7 @@ impl IRTCBuddy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PresenceDevices(this: *mut core::ffi::c_void, ppdevicescollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddy2_Impl, - { + unsafe extern "system" fn PresenceDevices(this: *mut core::ffi::c_void, ppdevicescollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddy2_Impl::PresenceDevices(this) { Ok(ok__) => { @@ -215,10 +164,7 @@ impl IRTCBuddy2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubscriptionType(this: *mut core::ffi::c_void, pensubscriptiontype: *mut RTC_BUDDY_SUBSCRIPTION_TYPE) -> windows_core::HRESULT - where - Identity: IRTCBuddy2_Impl, - { + unsafe extern "system" fn SubscriptionType(this: *mut core::ffi::c_void, pensubscriptiontype: *mut RTC_BUDDY_SUBSCRIPTION_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddy2_Impl::SubscriptionType(this) { Ok(ok__) => { @@ -252,14 +198,8 @@ pub trait IRTCBuddyEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCBuddyEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCBuddyEvent_Vtbl { - pub const fn new() -> IRTCBuddyEvent_Vtbl - where - Identity: IRTCBuddyEvent_Impl, - { - unsafe extern "system" fn Buddy(this: *mut core::ffi::c_void, ppbuddy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddyEvent_Impl, - { + pub const fn new() -> IRTCBuddyEvent_Vtbl { + unsafe extern "system" fn Buddy(this: *mut core::ffi::c_void, ppbuddy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyEvent_Impl::Buddy(this) { Ok(ok__) => { @@ -285,14 +225,8 @@ pub trait IRTCBuddyEvent2_Impl: Sized + IRTCBuddyEvent_Impl { impl windows_core::RuntimeName for IRTCBuddyEvent2 {} #[cfg(feature = "Win32_System_Com")] impl IRTCBuddyEvent2_Vtbl { - pub const fn new() -> IRTCBuddyEvent2_Vtbl - where - Identity: IRTCBuddyEvent2_Impl, - { - unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peventtype: *mut RTC_BUDDY_EVENT_TYPE) -> windows_core::HRESULT - where - Identity: IRTCBuddyEvent2_Impl, - { + pub const fn new() -> IRTCBuddyEvent2_Vtbl { + unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peventtype: *mut RTC_BUDDY_EVENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyEvent2_Impl::EventType(this) { Ok(ok__) => { @@ -302,10 +236,7 @@ impl IRTCBuddyEvent2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCBuddyEvent2_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyEvent2_Impl::StatusCode(this) { Ok(ok__) => { @@ -315,10 +246,7 @@ impl IRTCBuddyEvent2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCBuddyEvent2_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyEvent2_Impl::StatusText(this) { Ok(ok__) => { @@ -340,7 +268,7 @@ impl IRTCBuddyEvent2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRTCBuddyGroup_Impl: Sized { +pub trait IRTCBuddyGroup_Impl: Sized + windows_core::IUnknownImpl { fn Name(&self) -> windows_core::Result; fn SetName(&self, bstrgroupname: &windows_core::BSTR) -> windows_core::Result<()>; fn AddBuddy(&self, pbuddy: Option<&IRTCBuddy>) -> windows_core::Result<()>; @@ -355,14 +283,8 @@ pub trait IRTCBuddyGroup_Impl: Sized { impl windows_core::RuntimeName for IRTCBuddyGroup {} #[cfg(feature = "Win32_System_Com")] impl IRTCBuddyGroup_Vtbl { - pub const fn new() -> IRTCBuddyGroup_Vtbl - where - Identity: IRTCBuddyGroup_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrgroupname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroup_Impl, - { + pub const fn new() -> IRTCBuddyGroup_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrgroupname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyGroup_Impl::Name(this) { Ok(ok__) => { @@ -372,31 +294,19 @@ impl IRTCBuddyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroup_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCBuddyGroup_Impl::SetName(this, core::mem::transmute(&bstrgroupname)).into() } - unsafe extern "system" fn AddBuddy(this: *mut core::ffi::c_void, pbuddy: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroup_Impl, - { + unsafe extern "system" fn AddBuddy(this: *mut core::ffi::c_void, pbuddy: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCBuddyGroup_Impl::AddBuddy(this, windows_core::from_raw_borrowed(&pbuddy)).into() } - unsafe extern "system" fn RemoveBuddy(this: *mut core::ffi::c_void, pbuddy: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroup_Impl, - { + unsafe extern "system" fn RemoveBuddy(this: *mut core::ffi::c_void, pbuddy: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCBuddyGroup_Impl::RemoveBuddy(this, windows_core::from_raw_borrowed(&pbuddy)).into() } - unsafe extern "system" fn EnumerateBuddies(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroup_Impl, - { + unsafe extern "system" fn EnumerateBuddies(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyGroup_Impl::EnumerateBuddies(this) { Ok(ok__) => { @@ -406,10 +316,7 @@ impl IRTCBuddyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Buddies(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroup_Impl, - { + unsafe extern "system" fn Buddies(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyGroup_Impl::Buddies(this) { Ok(ok__) => { @@ -419,10 +326,7 @@ impl IRTCBuddyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroup_Impl, - { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyGroup_Impl::Data(this) { Ok(ok__) => { @@ -432,17 +336,11 @@ impl IRTCBuddyGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, bstrdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroup_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, bstrdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCBuddyGroup_Impl::SetData(this, core::mem::transmute(&bstrdata)).into() } - unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroup_Impl, - { + unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyGroup_Impl::Profile(this) { Ok(ok__) => { @@ -480,14 +378,8 @@ pub trait IRTCBuddyGroupEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCBuddyGroupEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCBuddyGroupEvent_Vtbl { - pub const fn new() -> IRTCBuddyGroupEvent_Vtbl - where - Identity: IRTCBuddyGroupEvent_Impl, - { - unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peventtype: *mut RTC_GROUP_EVENT_TYPE) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroupEvent_Impl, - { + pub const fn new() -> IRTCBuddyGroupEvent_Vtbl { + unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peventtype: *mut RTC_GROUP_EVENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyGroupEvent_Impl::EventType(this) { Ok(ok__) => { @@ -497,10 +389,7 @@ impl IRTCBuddyGroupEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Group(this: *mut core::ffi::c_void, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroupEvent_Impl, - { + unsafe extern "system" fn Group(this: *mut core::ffi::c_void, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyGroupEvent_Impl::Group(this) { Ok(ok__) => { @@ -510,10 +399,7 @@ impl IRTCBuddyGroupEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Buddy(this: *mut core::ffi::c_void, ppbuddy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroupEvent_Impl, - { + unsafe extern "system" fn Buddy(this: *mut core::ffi::c_void, ppbuddy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyGroupEvent_Impl::Buddy(this) { Ok(ok__) => { @@ -523,10 +409,7 @@ impl IRTCBuddyGroupEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCBuddyGroupEvent_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCBuddyGroupEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -549,7 +432,7 @@ impl IRTCBuddyGroupEvent_Vtbl { } } #[cfg(all(feature = "Win32_Media_DirectShow", feature = "Win32_System_Com"))] -pub trait IRTCClient_Impl: Sized { +pub trait IRTCClient_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result<()>; fn Shutdown(&self) -> windows_core::Result<()>; fn PrepareForShutdown(&self) -> windows_core::Result<()>; @@ -597,42 +480,24 @@ pub trait IRTCClient_Impl: Sized { impl windows_core::RuntimeName for IRTCClient {} #[cfg(all(feature = "Win32_Media_DirectShow", feature = "Win32_System_Com"))] impl IRTCClient_Vtbl { - pub const fn new() -> IRTCClient_Vtbl - where - Identity: IRTCClient_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + pub const fn new() -> IRTCClient_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::Initialize(this).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::Shutdown(this).into() } - unsafe extern "system" fn PrepareForShutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn PrepareForShutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::PrepareForShutdown(this).into() } - unsafe extern "system" fn SetEventFilter(this: *mut core::ffi::c_void, lfilter: i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn SetEventFilter(this: *mut core::ffi::c_void, lfilter: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::SetEventFilter(this, core::mem::transmute_copy(&lfilter)).into() } - unsafe extern "system" fn EventFilter(this: *mut core::ffi::c_void, plfilter: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn EventFilter(this: *mut core::ffi::c_void, plfilter: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::EventFilter(this) { Ok(ok__) => { @@ -642,17 +507,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPreferredMediaTypes(this: *mut core::ffi::c_void, lmediatypes: i32, fpersistent: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn SetPreferredMediaTypes(this: *mut core::ffi::c_void, lmediatypes: i32, fpersistent: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::SetPreferredMediaTypes(this, core::mem::transmute_copy(&lmediatypes), core::mem::transmute_copy(&fpersistent)).into() } - unsafe extern "system" fn PreferredMediaTypes(this: *mut core::ffi::c_void, plmediatypes: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn PreferredMediaTypes(this: *mut core::ffi::c_void, plmediatypes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::PreferredMediaTypes(this) { Ok(ok__) => { @@ -662,10 +521,7 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MediaCapabilities(this: *mut core::ffi::c_void, plmediatypes: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn MediaCapabilities(this: *mut core::ffi::c_void, plmediatypes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::MediaCapabilities(this) { Ok(ok__) => { @@ -675,10 +531,7 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: core::mem::MaybeUninit, pprofile: *mut core::ffi::c_void, lflags: i32, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: core::mem::MaybeUninit, pprofile: *mut core::ffi::c_void, lflags: i32, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::CreateSession(this, core::mem::transmute_copy(&entype), core::mem::transmute(&bstrlocalphoneuri), windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -688,17 +541,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListenForIncomingSessions(this: *mut core::ffi::c_void, enlisten: RTC_LISTEN_MODE) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn SetListenForIncomingSessions(this: *mut core::ffi::c_void, enlisten: RTC_LISTEN_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::SetListenForIncomingSessions(this, core::mem::transmute_copy(&enlisten)).into() } - unsafe extern "system" fn ListenForIncomingSessions(this: *mut core::ffi::c_void, penlisten: *mut RTC_LISTEN_MODE) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn ListenForIncomingSessions(this: *mut core::ffi::c_void, penlisten: *mut RTC_LISTEN_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::ListenForIncomingSessions(this) { Ok(ok__) => { @@ -708,10 +555,7 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_NetworkAddresses(this: *mut core::ffi::c_void, ftcp: super::super::Foundation::VARIANT_BOOL, fexternal: super::super::Foundation::VARIANT_BOOL, pvaddresses: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn get_NetworkAddresses(this: *mut core::ffi::c_void, ftcp: super::super::Foundation::VARIANT_BOOL, fexternal: super::super::Foundation::VARIANT_BOOL, pvaddresses: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::get_NetworkAddresses(this, core::mem::transmute_copy(&ftcp), core::mem::transmute_copy(&fexternal)) { Ok(ok__) => { @@ -721,17 +565,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Volume(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn put_Volume(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::put_Volume(this, core::mem::transmute_copy(&endevice), core::mem::transmute_copy(&lvolume)).into() } - unsafe extern "system" fn get_Volume(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, plvolume: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn get_Volume(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, plvolume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::get_Volume(this, core::mem::transmute_copy(&endevice)) { Ok(ok__) => { @@ -741,17 +579,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_AudioMuted(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, fmuted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn put_AudioMuted(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, fmuted: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::put_AudioMuted(this, core::mem::transmute_copy(&endevice), core::mem::transmute_copy(&fmuted)).into() } - unsafe extern "system" fn get_AudioMuted(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, pfmuted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn get_AudioMuted(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, pfmuted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::get_AudioMuted(this, core::mem::transmute_copy(&endevice)) { Ok(ok__) => { @@ -761,10 +593,7 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_IVideoWindow(this: *mut core::ffi::c_void, endevice: RTC_VIDEO_DEVICE, ppivideowindow: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn get_IVideoWindow(this: *mut core::ffi::c_void, endevice: RTC_VIDEO_DEVICE, ppivideowindow: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::get_IVideoWindow(this, core::mem::transmute_copy(&endevice)) { Ok(ok__) => { @@ -774,17 +603,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_PreferredAudioDevice(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, bstrdevicename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn put_PreferredAudioDevice(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, bstrdevicename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::put_PreferredAudioDevice(this, core::mem::transmute_copy(&endevice), core::mem::transmute(&bstrdevicename)).into() } - unsafe extern "system" fn get_PreferredAudioDevice(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn get_PreferredAudioDevice(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::get_PreferredAudioDevice(this, core::mem::transmute_copy(&endevice)) { Ok(ok__) => { @@ -794,17 +617,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_PreferredVolume(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn put_PreferredVolume(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::put_PreferredVolume(this, core::mem::transmute_copy(&endevice), core::mem::transmute_copy(&lvolume)).into() } - unsafe extern "system" fn get_PreferredVolume(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, plvolume: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn get_PreferredVolume(this: *mut core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, plvolume: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::get_PreferredVolume(this, core::mem::transmute_copy(&endevice)) { Ok(ok__) => { @@ -814,17 +631,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPreferredAEC(this: *mut core::ffi::c_void, benable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn SetPreferredAEC(this: *mut core::ffi::c_void, benable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::SetPreferredAEC(this, core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn PreferredAEC(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn PreferredAEC(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::PreferredAEC(this) { Ok(ok__) => { @@ -834,17 +645,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPreferredVideoDevice(this: *mut core::ffi::c_void, bstrdevicename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn SetPreferredVideoDevice(this: *mut core::ffi::c_void, bstrdevicename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::SetPreferredVideoDevice(this, core::mem::transmute(&bstrdevicename)).into() } - unsafe extern "system" fn PreferredVideoDevice(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn PreferredVideoDevice(this: *mut core::ffi::c_void, pbstrdevicename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::PreferredVideoDevice(this) { Ok(ok__) => { @@ -854,10 +659,7 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActiveMedia(this: *mut core::ffi::c_void, plmediatype: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn ActiveMedia(this: *mut core::ffi::c_void, plmediatype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::ActiveMedia(this) { Ok(ok__) => { @@ -867,17 +669,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxBitrate(this: *mut core::ffi::c_void, lmaxbitrate: i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn SetMaxBitrate(this: *mut core::ffi::c_void, lmaxbitrate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::SetMaxBitrate(this, core::mem::transmute_copy(&lmaxbitrate)).into() } - unsafe extern "system" fn MaxBitrate(this: *mut core::ffi::c_void, plmaxbitrate: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn MaxBitrate(this: *mut core::ffi::c_void, plmaxbitrate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::MaxBitrate(this) { Ok(ok__) => { @@ -887,17 +683,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTemporalSpatialTradeOff(this: *mut core::ffi::c_void, lvalue: i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn SetTemporalSpatialTradeOff(this: *mut core::ffi::c_void, lvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::SetTemporalSpatialTradeOff(this, core::mem::transmute_copy(&lvalue)).into() } - unsafe extern "system" fn TemporalSpatialTradeOff(this: *mut core::ffi::c_void, plvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn TemporalSpatialTradeOff(this: *mut core::ffi::c_void, plvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::TemporalSpatialTradeOff(this) { Ok(ok__) => { @@ -907,10 +697,7 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NetworkQuality(this: *mut core::ffi::c_void, plnetworkquality: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn NetworkQuality(this: *mut core::ffi::c_void, plnetworkquality: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::NetworkQuality(this) { Ok(ok__) => { @@ -920,24 +707,15 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartT120Applet(this: *mut core::ffi::c_void, enapplet: RTC_T120_APPLET) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn StartT120Applet(this: *mut core::ffi::c_void, enapplet: RTC_T120_APPLET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::StartT120Applet(this, core::mem::transmute_copy(&enapplet)).into() } - unsafe extern "system" fn StopT120Applets(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn StopT120Applets(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::StopT120Applets(this).into() } - unsafe extern "system" fn get_IsT120AppletRunning(this: *mut core::ffi::c_void, enapplet: RTC_T120_APPLET, pfrunning: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn get_IsT120AppletRunning(this: *mut core::ffi::c_void, enapplet: RTC_T120_APPLET, pfrunning: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::get_IsT120AppletRunning(this, core::mem::transmute_copy(&enapplet)) { Ok(ok__) => { @@ -947,10 +725,7 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalUserURI(this: *mut core::ffi::c_void, pbstruseruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn LocalUserURI(this: *mut core::ffi::c_void, pbstruseruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::LocalUserURI(this) { Ok(ok__) => { @@ -960,17 +735,11 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalUserURI(this: *mut core::ffi::c_void, bstruseruri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn SetLocalUserURI(this: *mut core::ffi::c_void, bstruseruri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::SetLocalUserURI(this, core::mem::transmute(&bstruseruri)).into() } - unsafe extern "system" fn LocalUserName(this: *mut core::ffi::c_void, pbstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn LocalUserName(this: *mut core::ffi::c_void, pbstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::LocalUserName(this) { Ok(ok__) => { @@ -980,38 +749,23 @@ impl IRTCClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalUserName(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn SetLocalUserName(this: *mut core::ffi::c_void, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::SetLocalUserName(this, core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn PlayRing(this: *mut core::ffi::c_void, entype: RTC_RING_TYPE, bplay: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn PlayRing(this: *mut core::ffi::c_void, entype: RTC_RING_TYPE, bplay: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::PlayRing(this, core::mem::transmute_copy(&entype), core::mem::transmute_copy(&bplay)).into() } - unsafe extern "system" fn SendDTMF(this: *mut core::ffi::c_void, endtmf: RTC_DTMF) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn SendDTMF(this: *mut core::ffi::c_void, endtmf: RTC_DTMF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::SendDTMF(this, core::mem::transmute_copy(&endtmf)).into() } - unsafe extern "system" fn InvokeTuningWizard(this: *mut core::ffi::c_void, hwndparent: isize) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn InvokeTuningWizard(this: *mut core::ffi::c_void, hwndparent: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient_Impl::InvokeTuningWizard(this, core::mem::transmute_copy(&hwndparent)).into() } - unsafe extern "system" fn IsTuned(this: *mut core::ffi::c_void, pftuned: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCClient_Impl, - { + unsafe extern "system" fn IsTuned(this: *mut core::ffi::c_void, pftuned: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient_Impl::IsTuned(this) { Ok(ok__) => { @@ -1091,21 +845,12 @@ pub trait IRTCClient2_Impl: Sized + IRTCClient_Impl { impl windows_core::RuntimeName for IRTCClient2 {} #[cfg(all(feature = "Win32_Media_DirectShow", feature = "Win32_System_Com"))] impl IRTCClient2_Vtbl { - pub const fn new() -> IRTCClient2_Vtbl - where - Identity: IRTCClient2_Impl, - { - unsafe extern "system" fn put_AnswerMode(this: *mut core::ffi::c_void, entype: RTC_SESSION_TYPE, enmode: RTC_ANSWER_MODE) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + pub const fn new() -> IRTCClient2_Vtbl { + unsafe extern "system" fn put_AnswerMode(this: *mut core::ffi::c_void, entype: RTC_SESSION_TYPE, enmode: RTC_ANSWER_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient2_Impl::put_AnswerMode(this, core::mem::transmute_copy(&entype), core::mem::transmute_copy(&enmode)).into() } - unsafe extern "system" fn get_AnswerMode(this: *mut core::ffi::c_void, entype: RTC_SESSION_TYPE, penmode: *mut RTC_ANSWER_MODE) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn get_AnswerMode(this: *mut core::ffi::c_void, entype: RTC_SESSION_TYPE, penmode: *mut RTC_ANSWER_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient2_Impl::get_AnswerMode(this, core::mem::transmute_copy(&entype)) { Ok(ok__) => { @@ -1115,17 +860,11 @@ impl IRTCClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InvokeTuningWizardEx(this: *mut core::ffi::c_void, hwndparent: isize, fallowaudio: super::super::Foundation::VARIANT_BOOL, fallowvideo: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn InvokeTuningWizardEx(this: *mut core::ffi::c_void, hwndparent: isize, fallowaudio: super::super::Foundation::VARIANT_BOOL, fallowvideo: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient2_Impl::InvokeTuningWizardEx(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&fallowaudio), core::mem::transmute_copy(&fallowvideo)).into() } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, plversion: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, plversion: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient2_Impl::Version(this) { Ok(ok__) => { @@ -1135,31 +874,19 @@ impl IRTCClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientName(this: *mut core::ffi::c_void, bstrclientname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn SetClientName(this: *mut core::ffi::c_void, bstrclientname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient2_Impl::SetClientName(this, core::mem::transmute(&bstrclientname)).into() } - unsafe extern "system" fn SetClientCurVer(this: *mut core::ffi::c_void, bstrclientcurver: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn SetClientCurVer(this: *mut core::ffi::c_void, bstrclientcurver: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient2_Impl::SetClientCurVer(this, core::mem::transmute(&bstrclientcurver)).into() } - unsafe extern "system" fn InitializeEx(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn InitializeEx(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient2_Impl::InitializeEx(this, core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn CreateSessionWithDescription(this: *mut core::ffi::c_void, bstrcontenttype: core::mem::MaybeUninit, bstrsessiondescription: core::mem::MaybeUninit, pprofile: *mut core::ffi::c_void, lflags: i32, ppsession2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn CreateSessionWithDescription(this: *mut core::ffi::c_void, bstrcontenttype: core::mem::MaybeUninit, bstrsessiondescription: core::mem::MaybeUninit, pprofile: *mut core::ffi::c_void, lflags: i32, ppsession2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient2_Impl::CreateSessionWithDescription(this, core::mem::transmute(&bstrcontenttype), core::mem::transmute(&bstrsessiondescription), windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -1169,24 +896,15 @@ impl IRTCClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSessionDescriptionManager(this: *mut core::ffi::c_void, psessiondescriptionmanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn SetSessionDescriptionManager(this: *mut core::ffi::c_void, psessiondescriptionmanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient2_Impl::SetSessionDescriptionManager(this, windows_core::from_raw_borrowed(&psessiondescriptionmanager)).into() } - unsafe extern "system" fn put_PreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn put_PreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient2_Impl::put_PreferredSecurityLevel(this, core::mem::transmute_copy(&ensecuritytype), core::mem::transmute_copy(&ensecuritylevel)).into() } - unsafe extern "system" fn get_PreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn get_PreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient2_Impl::get_PreferredSecurityLevel(this, core::mem::transmute_copy(&ensecuritytype)) { Ok(ok__) => { @@ -1196,17 +914,11 @@ impl IRTCClient2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_AllowedPorts(this: *mut core::ffi::c_void, ltransport: i32, enlistenmode: RTC_LISTEN_MODE) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn put_AllowedPorts(this: *mut core::ffi::c_void, ltransport: i32, enlistenmode: RTC_LISTEN_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClient2_Impl::put_AllowedPorts(this, core::mem::transmute_copy(<ransport), core::mem::transmute_copy(&enlistenmode)).into() } - unsafe extern "system" fn get_AllowedPorts(this: *mut core::ffi::c_void, ltransport: i32, penlistenmode: *mut RTC_LISTEN_MODE) -> windows_core::HRESULT - where - Identity: IRTCClient2_Impl, - { + unsafe extern "system" fn get_AllowedPorts(this: *mut core::ffi::c_void, ltransport: i32, penlistenmode: *mut RTC_LISTEN_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClient2_Impl::get_AllowedPorts(this, core::mem::transmute_copy(<ransport)) { Ok(ok__) => { @@ -1246,14 +958,8 @@ pub trait IRTCClientEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCClientEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCClientEvent_Vtbl { - pub const fn new() -> IRTCClientEvent_Vtbl - where - Identity: IRTCClientEvent_Impl, - { - unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peneventtype: *mut RTC_CLIENT_EVENT_TYPE) -> windows_core::HRESULT - where - Identity: IRTCClientEvent_Impl, - { + pub const fn new() -> IRTCClientEvent_Vtbl { + unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peneventtype: *mut RTC_CLIENT_EVENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientEvent_Impl::EventType(this) { Ok(ok__) => { @@ -1263,10 +969,7 @@ impl IRTCClientEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Client(this: *mut core::ffi::c_void, ppclient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientEvent_Impl, - { + unsafe extern "system" fn Client(this: *mut core::ffi::c_void, ppclient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientEvent_Impl::Client(this) { Ok(ok__) => { @@ -1282,35 +985,23 @@ impl IRTCClientEvent_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRTCClientPortManagement_Impl: Sized { +pub trait IRTCClientPortManagement_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IRTCClientPortManagement {} impl IRTCClientPortManagement_Vtbl { - pub const fn new() -> IRTCClientPortManagement_Vtbl - where - Identity: IRTCClientPortManagement_Impl, - { - unsafe extern "system" fn StartListenAddressAndPort(this: *mut core::ffi::c_void, bstrinternallocaladdress: core::mem::MaybeUninit, linternallocalport: i32) -> windows_core::HRESULT - where - Identity: IRTCClientPortManagement_Impl, - { + pub const fn new() -> IRTCClientPortManagement_Vtbl { + unsafe extern "system" fn StartListenAddressAndPort(this: *mut core::ffi::c_void, bstrinternallocaladdress: core::mem::MaybeUninit, linternallocalport: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPortManagement_Impl::StartListenAddressAndPort(this, core::mem::transmute(&bstrinternallocaladdress), core::mem::transmute_copy(&linternallocalport)).into() } - unsafe extern "system" fn StopListenAddressAndPort(this: *mut core::ffi::c_void, bstrinternallocaladdress: core::mem::MaybeUninit, linternallocalport: i32) -> windows_core::HRESULT - where - Identity: IRTCClientPortManagement_Impl, - { + unsafe extern "system" fn StopListenAddressAndPort(this: *mut core::ffi::c_void, bstrinternallocaladdress: core::mem::MaybeUninit, linternallocalport: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPortManagement_Impl::StopListenAddressAndPort(this, core::mem::transmute(&bstrinternallocaladdress), core::mem::transmute_copy(&linternallocalport)).into() } - unsafe extern "system" fn GetPortRange(this: *mut core::ffi::c_void, enporttype: RTC_PORT_TYPE, plminvalue: *mut i32, plmaxvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClientPortManagement_Impl, - { + unsafe extern "system" fn GetPortRange(this: *mut core::ffi::c_void, enporttype: RTC_PORT_TYPE, plminvalue: *mut i32, plmaxvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPortManagement_Impl::GetPortRange(this, core::mem::transmute_copy(&enporttype), core::mem::transmute_copy(&plminvalue), core::mem::transmute_copy(&plmaxvalue)).into() } @@ -1326,7 +1017,7 @@ impl IRTCClientPortManagement_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRTCClientPresence_Impl: Sized { +pub trait IRTCClientPresence_Impl: Sized + windows_core::IUnknownImpl { fn EnablePresence(&self, fusestorage: super::super::Foundation::VARIANT_BOOL, varstorage: &windows_core::VARIANT) -> windows_core::Result<()>; fn Export(&self, varstorage: &windows_core::VARIANT) -> windows_core::Result<()>; fn Import(&self, varstorage: &windows_core::VARIANT, freplaceall: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; @@ -1350,35 +1041,20 @@ pub trait IRTCClientPresence_Impl: Sized { impl windows_core::RuntimeName for IRTCClientPresence {} #[cfg(feature = "Win32_System_Com")] impl IRTCClientPresence_Vtbl { - pub const fn new() -> IRTCClientPresence_Vtbl - where - Identity: IRTCClientPresence_Impl, - { - unsafe extern "system" fn EnablePresence(this: *mut core::ffi::c_void, fusestorage: super::super::Foundation::VARIANT_BOOL, varstorage: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + pub const fn new() -> IRTCClientPresence_Vtbl { + unsafe extern "system" fn EnablePresence(this: *mut core::ffi::c_void, fusestorage: super::super::Foundation::VARIANT_BOOL, varstorage: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence_Impl::EnablePresence(this, core::mem::transmute_copy(&fusestorage), core::mem::transmute(&varstorage)).into() } - unsafe extern "system" fn Export(this: *mut core::ffi::c_void, varstorage: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn Export(this: *mut core::ffi::c_void, varstorage: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence_Impl::Export(this, core::mem::transmute(&varstorage)).into() } - unsafe extern "system" fn Import(this: *mut core::ffi::c_void, varstorage: core::mem::MaybeUninit, freplaceall: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn Import(this: *mut core::ffi::c_void, varstorage: core::mem::MaybeUninit, freplaceall: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence_Impl::Import(this, core::mem::transmute(&varstorage), core::mem::transmute_copy(&freplaceall)).into() } - unsafe extern "system" fn EnumerateBuddies(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn EnumerateBuddies(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence_Impl::EnumerateBuddies(this) { Ok(ok__) => { @@ -1388,10 +1064,7 @@ impl IRTCClientPresence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Buddies(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn Buddies(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence_Impl::Buddies(this) { Ok(ok__) => { @@ -1401,10 +1074,7 @@ impl IRTCClientPresence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Buddy(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, ppbuddy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn get_Buddy(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, ppbuddy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence_Impl::get_Buddy(this, core::mem::transmute(&bstrpresentityuri)) { Ok(ok__) => { @@ -1414,10 +1084,7 @@ impl IRTCClientPresence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddBuddy(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit, fpersistent: super::super::Foundation::VARIANT_BOOL, pprofile: *mut core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn AddBuddy(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit, fpersistent: super::super::Foundation::VARIANT_BOOL, pprofile: *mut core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence_Impl::AddBuddy(this, core::mem::transmute(&bstrpresentityuri), core::mem::transmute(&bstrusername), core::mem::transmute(&bstrdata), core::mem::transmute_copy(&fpersistent), windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -1427,17 +1094,11 @@ impl IRTCClientPresence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveBuddy(this: *mut core::ffi::c_void, pbuddy: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn RemoveBuddy(this: *mut core::ffi::c_void, pbuddy: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence_Impl::RemoveBuddy(this, windows_core::from_raw_borrowed(&pbuddy)).into() } - unsafe extern "system" fn EnumerateWatchers(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn EnumerateWatchers(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence_Impl::EnumerateWatchers(this) { Ok(ok__) => { @@ -1447,10 +1108,7 @@ impl IRTCClientPresence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Watchers(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn Watchers(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence_Impl::Watchers(this) { Ok(ok__) => { @@ -1460,10 +1118,7 @@ impl IRTCClientPresence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Watcher(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, ppwatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn get_Watcher(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, ppwatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence_Impl::get_Watcher(this, core::mem::transmute(&bstrpresentityuri)) { Ok(ok__) => { @@ -1473,10 +1128,7 @@ impl IRTCClientPresence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddWatcher(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit, fblocked: super::super::Foundation::VARIANT_BOOL, fpersistent: super::super::Foundation::VARIANT_BOOL, ppwatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn AddWatcher(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit, fblocked: super::super::Foundation::VARIANT_BOOL, fpersistent: super::super::Foundation::VARIANT_BOOL, ppwatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence_Impl::AddWatcher(this, core::mem::transmute(&bstrpresentityuri), core::mem::transmute(&bstrusername), core::mem::transmute(&bstrdata), core::mem::transmute_copy(&fblocked), core::mem::transmute_copy(&fpersistent)) { Ok(ok__) => { @@ -1486,24 +1138,15 @@ impl IRTCClientPresence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveWatcher(this: *mut core::ffi::c_void, pwatcher: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn RemoveWatcher(this: *mut core::ffi::c_void, pwatcher: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence_Impl::RemoveWatcher(this, windows_core::from_raw_borrowed(&pwatcher)).into() } - unsafe extern "system" fn SetLocalPresenceInfo(this: *mut core::ffi::c_void, enstatus: RTC_PRESENCE_STATUS, bstrnotes: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn SetLocalPresenceInfo(this: *mut core::ffi::c_void, enstatus: RTC_PRESENCE_STATUS, bstrnotes: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence_Impl::SetLocalPresenceInfo(this, core::mem::transmute_copy(&enstatus), core::mem::transmute(&bstrnotes)).into() } - unsafe extern "system" fn OfferWatcherMode(this: *mut core::ffi::c_void, penmode: *mut RTC_OFFER_WATCHER_MODE) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn OfferWatcherMode(this: *mut core::ffi::c_void, penmode: *mut RTC_OFFER_WATCHER_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence_Impl::OfferWatcherMode(this) { Ok(ok__) => { @@ -1513,17 +1156,11 @@ impl IRTCClientPresence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOfferWatcherMode(this: *mut core::ffi::c_void, enmode: RTC_OFFER_WATCHER_MODE) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn SetOfferWatcherMode(this: *mut core::ffi::c_void, enmode: RTC_OFFER_WATCHER_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence_Impl::SetOfferWatcherMode(this, core::mem::transmute_copy(&enmode)).into() } - unsafe extern "system" fn PrivacyMode(this: *mut core::ffi::c_void, penmode: *mut RTC_PRIVACY_MODE) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn PrivacyMode(this: *mut core::ffi::c_void, penmode: *mut RTC_PRIVACY_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence_Impl::PrivacyMode(this) { Ok(ok__) => { @@ -1533,10 +1170,7 @@ impl IRTCClientPresence_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrivacyMode(this: *mut core::ffi::c_void, enmode: RTC_PRIVACY_MODE) -> windows_core::HRESULT - where - Identity: IRTCClientPresence_Impl, - { + unsafe extern "system" fn SetPrivacyMode(this: *mut core::ffi::c_void, enmode: RTC_PRIVACY_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence_Impl::SetPrivacyMode(this, core::mem::transmute_copy(&enmode)).into() } @@ -1588,28 +1222,16 @@ pub trait IRTCClientPresence2_Impl: Sized + IRTCClientPresence_Impl { impl windows_core::RuntimeName for IRTCClientPresence2 {} #[cfg(feature = "Win32_System_Com")] impl IRTCClientPresence2_Vtbl { - pub const fn new() -> IRTCClientPresence2_Vtbl - where - Identity: IRTCClientPresence2_Impl, - { - unsafe extern "system" fn EnablePresenceEx(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void, varstorage: core::mem::MaybeUninit, lflags: i32) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + pub const fn new() -> IRTCClientPresence2_Vtbl { + unsafe extern "system" fn EnablePresenceEx(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void, varstorage: core::mem::MaybeUninit, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence2_Impl::EnablePresenceEx(this, windows_core::from_raw_borrowed(&pprofile), core::mem::transmute(&varstorage), core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn DisablePresence(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn DisablePresence(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence2_Impl::DisablePresence(this).into() } - unsafe extern "system" fn AddGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit, pprofile: *mut core::ffi::c_void, lflags: i32, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn AddGroup(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit, pprofile: *mut core::ffi::c_void, lflags: i32, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence2_Impl::AddGroup(this, core::mem::transmute(&bstrgroupname), core::mem::transmute(&bstrdata), windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -1619,17 +1241,11 @@ impl IRTCClientPresence2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveGroup(this: *mut core::ffi::c_void, pgroup: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn RemoveGroup(this: *mut core::ffi::c_void, pgroup: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence2_Impl::RemoveGroup(this, windows_core::from_raw_borrowed(&pgroup)).into() } - unsafe extern "system" fn EnumerateGroups(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn EnumerateGroups(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence2_Impl::EnumerateGroups(this) { Ok(ok__) => { @@ -1639,10 +1255,7 @@ impl IRTCClientPresence2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Groups(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn Groups(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence2_Impl::Groups(this) { Ok(ok__) => { @@ -1652,10 +1265,7 @@ impl IRTCClientPresence2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Group(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn get_Group(this: *mut core::ffi::c_void, bstrgroupname: core::mem::MaybeUninit, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence2_Impl::get_Group(this, core::mem::transmute(&bstrgroupname)) { Ok(ok__) => { @@ -1665,10 +1275,7 @@ impl IRTCClientPresence2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddWatcherEx(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit, enstate: RTC_WATCHER_STATE, fpersistent: super::super::Foundation::VARIANT_BOOL, enscope: RTC_ACE_SCOPE, pprofile: *mut core::ffi::c_void, lflags: i32, ppwatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn AddWatcherEx(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit, enstate: RTC_WATCHER_STATE, fpersistent: super::super::Foundation::VARIANT_BOOL, enscope: RTC_ACE_SCOPE, pprofile: *mut core::ffi::c_void, lflags: i32, ppwatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence2_Impl::AddWatcherEx(this, 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), windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -1678,10 +1285,7 @@ impl IRTCClientPresence2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_WatcherEx(this: *mut core::ffi::c_void, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: core::mem::MaybeUninit, ppwatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn get_WatcherEx(this: *mut core::ffi::c_void, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: core::mem::MaybeUninit, ppwatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence2_Impl::get_WatcherEx(this, core::mem::transmute_copy(&enmode), core::mem::transmute(&bstrpresentityuri)) { Ok(ok__) => { @@ -1691,17 +1295,11 @@ impl IRTCClientPresence2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_PresenceProperty(this: *mut core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn put_PresenceProperty(this: *mut core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence2_Impl::put_PresenceProperty(this, core::mem::transmute_copy(&enproperty), core::mem::transmute(&bstrproperty)).into() } - unsafe extern "system" fn get_PresenceProperty(this: *mut core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn get_PresenceProperty(this: *mut core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence2_Impl::get_PresenceProperty(this, core::mem::transmute_copy(&enproperty)) { Ok(ok__) => { @@ -1711,31 +1309,19 @@ impl IRTCClientPresence2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPresenceData(this: *mut core::ffi::c_void, bstrnamespace: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn SetPresenceData(this: *mut core::ffi::c_void, bstrnamespace: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence2_Impl::SetPresenceData(this, core::mem::transmute(&bstrnamespace), core::mem::transmute(&bstrdata)).into() } - unsafe extern "system" fn GetPresenceData(this: *mut core::ffi::c_void, pbstrnamespace: *mut core::mem::MaybeUninit, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn GetPresenceData(this: *mut core::ffi::c_void, pbstrnamespace: *mut core::mem::MaybeUninit, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence2_Impl::GetPresenceData(this, core::mem::transmute_copy(&pbstrnamespace), core::mem::transmute_copy(&pbstrdata)).into() } - unsafe extern "system" fn GetLocalPresenceInfo(this: *mut core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn GetLocalPresenceInfo(this: *mut core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientPresence2_Impl::GetLocalPresenceInfo(this, core::mem::transmute_copy(&penstatus), core::mem::transmute_copy(&pbstrnotes)).into() } - unsafe extern "system" fn AddBuddyEx(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit, fpersistent: super::super::Foundation::VARIANT_BOOL, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: *mut core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientPresence2_Impl, - { + unsafe extern "system" fn AddBuddyEx(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrdata: core::mem::MaybeUninit, fpersistent: super::super::Foundation::VARIANT_BOOL, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientPresence2_Impl::AddBuddyEx(this, core::mem::transmute(&bstrpresentityuri), core::mem::transmute(&bstrusername), core::mem::transmute(&bstrdata), core::mem::transmute_copy(&fpersistent), core::mem::transmute_copy(&ensubscriptiontype), windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -1769,7 +1355,7 @@ impl IRTCClientPresence2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRTCClientProvisioning_Impl: Sized { +pub trait IRTCClientProvisioning_Impl: Sized + windows_core::IUnknownImpl { fn CreateProfile(&self, bstrprofilexml: &windows_core::BSTR) -> windows_core::Result; fn EnableProfile(&self, pprofile: Option<&IRTCProfile>, lregisterflags: i32) -> windows_core::Result<()>; fn DisableProfile(&self, pprofile: Option<&IRTCProfile>) -> windows_core::Result<()>; @@ -1782,14 +1368,8 @@ pub trait IRTCClientProvisioning_Impl: Sized { impl windows_core::RuntimeName for IRTCClientProvisioning {} #[cfg(feature = "Win32_System_Com")] impl IRTCClientProvisioning_Vtbl { - pub const fn new() -> IRTCClientProvisioning_Vtbl - where - Identity: IRTCClientProvisioning_Impl, - { - unsafe extern "system" fn CreateProfile(this: *mut core::ffi::c_void, bstrprofilexml: core::mem::MaybeUninit, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientProvisioning_Impl, - { + pub const fn new() -> IRTCClientProvisioning_Vtbl { + unsafe extern "system" fn CreateProfile(this: *mut core::ffi::c_void, bstrprofilexml: core::mem::MaybeUninit, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientProvisioning_Impl::CreateProfile(this, core::mem::transmute(&bstrprofilexml)) { Ok(ok__) => { @@ -1799,24 +1379,15 @@ impl IRTCClientProvisioning_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void, lregisterflags: i32) -> windows_core::HRESULT - where - Identity: IRTCClientProvisioning_Impl, - { + unsafe extern "system" fn EnableProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void, lregisterflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientProvisioning_Impl::EnableProfile(this, windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&lregisterflags)).into() } - unsafe extern "system" fn DisableProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientProvisioning_Impl, - { + unsafe extern "system" fn DisableProfile(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientProvisioning_Impl::DisableProfile(this, windows_core::from_raw_borrowed(&pprofile)).into() } - unsafe extern "system" fn EnumerateProfiles(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientProvisioning_Impl, - { + unsafe extern "system" fn EnumerateProfiles(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientProvisioning_Impl::EnumerateProfiles(this) { Ok(ok__) => { @@ -1826,10 +1397,7 @@ impl IRTCClientProvisioning_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Profiles(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCClientProvisioning_Impl, - { + unsafe extern "system" fn Profiles(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientProvisioning_Impl::Profiles(this) { Ok(ok__) => { @@ -1839,17 +1407,11 @@ impl IRTCClientProvisioning_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProfile(this: *mut core::ffi::c_void, bstruseraccount: core::mem::MaybeUninit, bstruserpassword: core::mem::MaybeUninit, bstruseruri: core::mem::MaybeUninit, bstrserver: core::mem::MaybeUninit, ltransport: i32, lcookie: isize) -> windows_core::HRESULT - where - Identity: IRTCClientProvisioning_Impl, - { + unsafe extern "system" fn GetProfile(this: *mut core::ffi::c_void, bstruseraccount: core::mem::MaybeUninit, bstruserpassword: core::mem::MaybeUninit, bstruseruri: core::mem::MaybeUninit, bstrserver: core::mem::MaybeUninit, ltransport: i32, lcookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientProvisioning_Impl::GetProfile(this, 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() } - unsafe extern "system" fn SessionCapabilities(this: *mut core::ffi::c_void, plsupportedsessions: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCClientProvisioning_Impl, - { + unsafe extern "system" fn SessionCapabilities(this: *mut core::ffi::c_void, plsupportedsessions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCClientProvisioning_Impl::SessionCapabilities(this) { Ok(ok__) => { @@ -1882,14 +1444,8 @@ pub trait IRTCClientProvisioning2_Impl: Sized + IRTCClientProvisioning_Impl { impl windows_core::RuntimeName for IRTCClientProvisioning2 {} #[cfg(feature = "Win32_System_Com")] impl IRTCClientProvisioning2_Vtbl { - pub const fn new() -> IRTCClientProvisioning2_Vtbl - where - Identity: IRTCClientProvisioning2_Impl, - { - unsafe extern "system" fn EnableProfileEx(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void, lregisterflags: i32, lroamingflags: i32) -> windows_core::HRESULT - where - Identity: IRTCClientProvisioning2_Impl, - { + pub const fn new() -> IRTCClientProvisioning2_Vtbl { + unsafe extern "system" fn EnableProfileEx(this: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void, lregisterflags: i32, lroamingflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCClientProvisioning2_Impl::EnableProfileEx(this, windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&lregisterflags), core::mem::transmute_copy(&lroamingflags)).into() } @@ -1909,14 +1465,8 @@ pub trait IRTCCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCCollection {} #[cfg(feature = "Win32_System_Com")] impl IRTCCollection_Vtbl { - pub const fn new() -> IRTCCollection_Vtbl - where - Identity: IRTCCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCCollection_Impl, - { + pub const fn new() -> IRTCCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, lcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCCollection_Impl::Count(this) { Ok(ok__) => { @@ -1926,10 +1476,7 @@ impl IRTCCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pvariant: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1939,10 +1486,7 @@ impl IRTCCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppnewenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1969,17 +1513,14 @@ pub trait IRTCDispatchEventNotification_Impl: Sized + super::Com::IDispatch_Impl impl windows_core::RuntimeName for IRTCDispatchEventNotification {} #[cfg(feature = "Win32_System_Com")] impl IRTCDispatchEventNotification_Vtbl { - pub const fn new() -> IRTCDispatchEventNotification_Vtbl - where - Identity: IRTCDispatchEventNotification_Impl, - { + pub const fn new() -> IRTCDispatchEventNotification_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IRTCEnumBuddies_Impl: Sized { +pub trait IRTCEnumBuddies_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -1987,35 +1528,20 @@ pub trait IRTCEnumBuddies_Impl: Sized { } impl windows_core::RuntimeName for IRTCEnumBuddies {} impl IRTCEnumBuddies_Vtbl { - pub const fn new() -> IRTCEnumBuddies_Vtbl - where - Identity: IRTCEnumBuddies_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IRTCEnumBuddies_Impl, - { + pub const fn new() -> IRTCEnumBuddies_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumBuddies_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumBuddies_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumBuddies_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IRTCEnumBuddies_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumBuddies_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumBuddies_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCEnumBuddies_Impl::Clone(this) { Ok(ok__) => { @@ -2037,7 +1563,7 @@ impl IRTCEnumBuddies_Vtbl { iid == &::IID } } -pub trait IRTCEnumGroups_Impl: Sized { +pub trait IRTCEnumGroups_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -2045,35 +1571,20 @@ pub trait IRTCEnumGroups_Impl: Sized { } impl windows_core::RuntimeName for IRTCEnumGroups {} impl IRTCEnumGroups_Vtbl { - pub const fn new() -> IRTCEnumGroups_Vtbl - where - Identity: IRTCEnumGroups_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IRTCEnumGroups_Impl, - { + pub const fn new() -> IRTCEnumGroups_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumGroups_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumGroups_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumGroups_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IRTCEnumGroups_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumGroups_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumGroups_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCEnumGroups_Impl::Clone(this) { Ok(ok__) => { @@ -2095,7 +1606,7 @@ impl IRTCEnumGroups_Vtbl { iid == &::IID } } -pub trait IRTCEnumParticipants_Impl: Sized { +pub trait IRTCEnumParticipants_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -2103,35 +1614,20 @@ pub trait IRTCEnumParticipants_Impl: Sized { } impl windows_core::RuntimeName for IRTCEnumParticipants {} impl IRTCEnumParticipants_Vtbl { - pub const fn new() -> IRTCEnumParticipants_Vtbl - where - Identity: IRTCEnumParticipants_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IRTCEnumParticipants_Impl, - { + pub const fn new() -> IRTCEnumParticipants_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumParticipants_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumParticipants_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumParticipants_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IRTCEnumParticipants_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumParticipants_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumParticipants_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCEnumParticipants_Impl::Clone(this) { Ok(ok__) => { @@ -2153,7 +1649,7 @@ impl IRTCEnumParticipants_Vtbl { iid == &::IID } } -pub trait IRTCEnumPresenceDevices_Impl: Sized { +pub trait IRTCEnumPresenceDevices_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -2161,35 +1657,20 @@ pub trait IRTCEnumPresenceDevices_Impl: Sized { } impl windows_core::RuntimeName for IRTCEnumPresenceDevices {} impl IRTCEnumPresenceDevices_Vtbl { - pub const fn new() -> IRTCEnumPresenceDevices_Vtbl - where - Identity: IRTCEnumPresenceDevices_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IRTCEnumPresenceDevices_Impl, - { + pub const fn new() -> IRTCEnumPresenceDevices_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumPresenceDevices_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumPresenceDevices_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumPresenceDevices_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IRTCEnumPresenceDevices_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumPresenceDevices_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumPresenceDevices_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCEnumPresenceDevices_Impl::Clone(this) { Ok(ok__) => { @@ -2211,7 +1692,7 @@ impl IRTCEnumPresenceDevices_Vtbl { iid == &::IID } } -pub trait IRTCEnumProfiles_Impl: Sized { +pub trait IRTCEnumProfiles_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -2219,35 +1700,20 @@ pub trait IRTCEnumProfiles_Impl: Sized { } impl windows_core::RuntimeName for IRTCEnumProfiles {} impl IRTCEnumProfiles_Vtbl { - pub const fn new() -> IRTCEnumProfiles_Vtbl - where - Identity: IRTCEnumProfiles_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IRTCEnumProfiles_Impl, - { + pub const fn new() -> IRTCEnumProfiles_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumProfiles_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumProfiles_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumProfiles_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IRTCEnumProfiles_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumProfiles_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumProfiles_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCEnumProfiles_Impl::Clone(this) { Ok(ok__) => { @@ -2269,7 +1735,7 @@ impl IRTCEnumProfiles_Vtbl { iid == &::IID } } -pub trait IRTCEnumUserSearchResults_Impl: Sized { +pub trait IRTCEnumUserSearchResults_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -2277,35 +1743,20 @@ pub trait IRTCEnumUserSearchResults_Impl: Sized { } impl windows_core::RuntimeName for IRTCEnumUserSearchResults {} impl IRTCEnumUserSearchResults_Vtbl { - pub const fn new() -> IRTCEnumUserSearchResults_Vtbl - where - Identity: IRTCEnumUserSearchResults_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IRTCEnumUserSearchResults_Impl, - { + pub const fn new() -> IRTCEnumUserSearchResults_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumUserSearchResults_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumUserSearchResults_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumUserSearchResults_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IRTCEnumUserSearchResults_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumUserSearchResults_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumUserSearchResults_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCEnumUserSearchResults_Impl::Clone(this) { Ok(ok__) => { @@ -2327,7 +1778,7 @@ impl IRTCEnumUserSearchResults_Vtbl { iid == &::IID } } -pub trait IRTCEnumWatchers_Impl: Sized { +pub trait IRTCEnumWatchers_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppelements: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -2335,35 +1786,20 @@ pub trait IRTCEnumWatchers_Impl: Sized { } impl windows_core::RuntimeName for IRTCEnumWatchers {} impl IRTCEnumWatchers_Vtbl { - pub const fn new() -> IRTCEnumWatchers_Vtbl - where - Identity: IRTCEnumWatchers_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IRTCEnumWatchers_Impl, - { + pub const fn new() -> IRTCEnumWatchers_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppelements: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumWatchers_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppelements), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumWatchers_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumWatchers_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IRTCEnumWatchers_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEnumWatchers_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEnumWatchers_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCEnumWatchers_Impl::Clone(this) { Ok(ok__) => { @@ -2386,21 +1822,15 @@ impl IRTCEnumWatchers_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRTCEventNotification_Impl: Sized { +pub trait IRTCEventNotification_Impl: Sized + windows_core::IUnknownImpl { fn Event(&self, rtcevent: RTC_EVENT, pevent: Option<&super::Com::IDispatch>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IRTCEventNotification {} #[cfg(feature = "Win32_System_Com")] impl IRTCEventNotification_Vtbl { - pub const fn new() -> IRTCEventNotification_Vtbl - where - Identity: IRTCEventNotification_Impl, - { - unsafe extern "system" fn Event(this: *mut core::ffi::c_void, rtcevent: RTC_EVENT, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCEventNotification_Impl, - { + pub const fn new() -> IRTCEventNotification_Vtbl { + unsafe extern "system" fn Event(this: *mut core::ffi::c_void, rtcevent: RTC_EVENT, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCEventNotification_Impl::Event(this, core::mem::transmute_copy(&rtcevent), windows_core::from_raw_borrowed(&pevent)).into() } @@ -2421,14 +1851,8 @@ pub trait IRTCInfoEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCInfoEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCInfoEvent_Vtbl { - pub const fn new() -> IRTCInfoEvent_Vtbl - where - Identity: IRTCInfoEvent_Impl, - { - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCInfoEvent_Impl, - { + pub const fn new() -> IRTCInfoEvent_Vtbl { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCInfoEvent_Impl::Session(this) { Ok(ok__) => { @@ -2438,10 +1862,7 @@ impl IRTCInfoEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Participant(this: *mut core::ffi::c_void, ppparticipant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCInfoEvent_Impl, - { + unsafe extern "system" fn Participant(this: *mut core::ffi::c_void, ppparticipant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCInfoEvent_Impl::Participant(this) { Ok(ok__) => { @@ -2451,10 +1872,7 @@ impl IRTCInfoEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Info(this: *mut core::ffi::c_void, pbstrinfo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCInfoEvent_Impl, - { + unsafe extern "system" fn Info(this: *mut core::ffi::c_void, pbstrinfo: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCInfoEvent_Impl::Info(this) { Ok(ok__) => { @@ -2464,10 +1882,7 @@ impl IRTCInfoEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InfoHeader(this: *mut core::ffi::c_void, pbstrinfoheader: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCInfoEvent_Impl, - { + unsafe extern "system" fn InfoHeader(this: *mut core::ffi::c_void, pbstrinfoheader: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCInfoEvent_Impl::InfoHeader(this) { Ok(ok__) => { @@ -2500,14 +1915,8 @@ pub trait IRTCIntensityEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCIntensityEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCIntensityEvent_Vtbl { - pub const fn new() -> IRTCIntensityEvent_Vtbl - where - Identity: IRTCIntensityEvent_Impl, - { - unsafe extern "system" fn Level(this: *mut core::ffi::c_void, pllevel: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCIntensityEvent_Impl, - { + pub const fn new() -> IRTCIntensityEvent_Vtbl { + unsafe extern "system" fn Level(this: *mut core::ffi::c_void, pllevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCIntensityEvent_Impl::Level(this) { Ok(ok__) => { @@ -2517,10 +1926,7 @@ impl IRTCIntensityEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Min(this: *mut core::ffi::c_void, plmin: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCIntensityEvent_Impl, - { + unsafe extern "system" fn Min(this: *mut core::ffi::c_void, plmin: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCIntensityEvent_Impl::Min(this) { Ok(ok__) => { @@ -2530,10 +1936,7 @@ impl IRTCIntensityEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Max(this: *mut core::ffi::c_void, plmax: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCIntensityEvent_Impl, - { + unsafe extern "system" fn Max(this: *mut core::ffi::c_void, plmax: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCIntensityEvent_Impl::Max(this) { Ok(ok__) => { @@ -2543,10 +1946,7 @@ impl IRTCIntensityEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, pendirection: *mut RTC_AUDIO_DEVICE) -> windows_core::HRESULT - where - Identity: IRTCIntensityEvent_Impl, - { + unsafe extern "system" fn Direction(this: *mut core::ffi::c_void, pendirection: *mut RTC_AUDIO_DEVICE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCIntensityEvent_Impl::Direction(this) { Ok(ok__) => { @@ -2578,14 +1978,8 @@ pub trait IRTCMediaEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCMediaEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCMediaEvent_Vtbl { - pub const fn new() -> IRTCMediaEvent_Vtbl - where - Identity: IRTCMediaEvent_Impl, - { - unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, pmediatype: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCMediaEvent_Impl, - { + pub const fn new() -> IRTCMediaEvent_Vtbl { + unsafe extern "system" fn MediaType(this: *mut core::ffi::c_void, pmediatype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMediaEvent_Impl::MediaType(this) { Ok(ok__) => { @@ -2595,10 +1989,7 @@ impl IRTCMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peneventtype: *mut RTC_MEDIA_EVENT_TYPE) -> windows_core::HRESULT - where - Identity: IRTCMediaEvent_Impl, - { + unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peneventtype: *mut RTC_MEDIA_EVENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMediaEvent_Impl::EventType(this) { Ok(ok__) => { @@ -2608,10 +1999,7 @@ impl IRTCMediaEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventReason(this: *mut core::ffi::c_void, peneventreason: *mut RTC_MEDIA_EVENT_REASON) -> windows_core::HRESULT - where - Identity: IRTCMediaEvent_Impl, - { + unsafe extern "system" fn EventReason(this: *mut core::ffi::c_void, peneventreason: *mut RTC_MEDIA_EVENT_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMediaEvent_Impl::EventReason(this) { Ok(ok__) => { @@ -2646,14 +2034,8 @@ pub trait IRTCMediaRequestEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCMediaRequestEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCMediaRequestEvent_Vtbl { - pub const fn new() -> IRTCMediaRequestEvent_Vtbl - where - Identity: IRTCMediaRequestEvent_Impl, - { - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCMediaRequestEvent_Impl, - { + pub const fn new() -> IRTCMediaRequestEvent_Vtbl { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMediaRequestEvent_Impl::Session(this) { Ok(ok__) => { @@ -2663,10 +2045,7 @@ impl IRTCMediaRequestEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProposedMedia(this: *mut core::ffi::c_void, plmediatypes: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCMediaRequestEvent_Impl, - { + unsafe extern "system" fn ProposedMedia(this: *mut core::ffi::c_void, plmediatypes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMediaRequestEvent_Impl::ProposedMedia(this) { Ok(ok__) => { @@ -2676,10 +2055,7 @@ impl IRTCMediaRequestEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentMedia(this: *mut core::ffi::c_void, plmediatypes: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCMediaRequestEvent_Impl, - { + unsafe extern "system" fn CurrentMedia(this: *mut core::ffi::c_void, plmediatypes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMediaRequestEvent_Impl::CurrentMedia(this) { Ok(ok__) => { @@ -2689,17 +2065,11 @@ impl IRTCMediaRequestEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Accept(this: *mut core::ffi::c_void, lmediatypes: i32) -> windows_core::HRESULT - where - Identity: IRTCMediaRequestEvent_Impl, - { + unsafe extern "system" fn Accept(this: *mut core::ffi::c_void, lmediatypes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCMediaRequestEvent_Impl::Accept(this, core::mem::transmute_copy(&lmediatypes)).into() } - unsafe extern "system" fn get_RemotePreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> windows_core::HRESULT - where - Identity: IRTCMediaRequestEvent_Impl, - { + unsafe extern "system" fn get_RemotePreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMediaRequestEvent_Impl::get_RemotePreferredSecurityLevel(this, core::mem::transmute_copy(&ensecuritytype)) { Ok(ok__) => { @@ -2709,17 +2079,11 @@ impl IRTCMediaRequestEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCMediaRequestEvent_Impl, - { + unsafe extern "system" fn Reject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCMediaRequestEvent_Impl::Reject(this).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut RTC_REINVITE_STATE) -> windows_core::HRESULT - where - Identity: IRTCMediaRequestEvent_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut RTC_REINVITE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMediaRequestEvent_Impl::State(this) { Ok(ok__) => { @@ -2757,14 +2121,8 @@ pub trait IRTCMessagingEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCMessagingEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCMessagingEvent_Vtbl { - pub const fn new() -> IRTCMessagingEvent_Vtbl - where - Identity: IRTCMessagingEvent_Impl, - { - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCMessagingEvent_Impl, - { + pub const fn new() -> IRTCMessagingEvent_Vtbl { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMessagingEvent_Impl::Session(this) { Ok(ok__) => { @@ -2774,10 +2132,7 @@ impl IRTCMessagingEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Participant(this: *mut core::ffi::c_void, ppparticipant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCMessagingEvent_Impl, - { + unsafe extern "system" fn Participant(this: *mut core::ffi::c_void, ppparticipant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMessagingEvent_Impl::Participant(this) { Ok(ok__) => { @@ -2787,10 +2142,7 @@ impl IRTCMessagingEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peneventtype: *mut RTC_MESSAGING_EVENT_TYPE) -> windows_core::HRESULT - where - Identity: IRTCMessagingEvent_Impl, - { + unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peneventtype: *mut RTC_MESSAGING_EVENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMessagingEvent_Impl::EventType(this) { Ok(ok__) => { @@ -2800,10 +2152,7 @@ impl IRTCMessagingEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Message(this: *mut core::ffi::c_void, pbstrmessage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCMessagingEvent_Impl, - { + unsafe extern "system" fn Message(this: *mut core::ffi::c_void, pbstrmessage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMessagingEvent_Impl::Message(this) { Ok(ok__) => { @@ -2813,10 +2162,7 @@ impl IRTCMessagingEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MessageHeader(this: *mut core::ffi::c_void, pbstrmessageheader: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCMessagingEvent_Impl, - { + unsafe extern "system" fn MessageHeader(this: *mut core::ffi::c_void, pbstrmessageheader: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMessagingEvent_Impl::MessageHeader(this) { Ok(ok__) => { @@ -2826,10 +2172,7 @@ impl IRTCMessagingEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserStatus(this: *mut core::ffi::c_void, penuserstatus: *mut RTC_MESSAGING_USER_STATUS) -> windows_core::HRESULT - where - Identity: IRTCMessagingEvent_Impl, - { + unsafe extern "system" fn UserStatus(this: *mut core::ffi::c_void, penuserstatus: *mut RTC_MESSAGING_USER_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCMessagingEvent_Impl::UserStatus(this) { Ok(ok__) => { @@ -2853,7 +2196,7 @@ impl IRTCMessagingEvent_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRTCParticipant_Impl: Sized { +pub trait IRTCParticipant_Impl: Sized + windows_core::IUnknownImpl { fn UserURI(&self) -> windows_core::Result; fn Name(&self) -> windows_core::Result; fn Removable(&self) -> windows_core::Result; @@ -2862,14 +2205,8 @@ pub trait IRTCParticipant_Impl: Sized { } impl windows_core::RuntimeName for IRTCParticipant {} impl IRTCParticipant_Vtbl { - pub const fn new() -> IRTCParticipant_Vtbl - where - Identity: IRTCParticipant_Impl, - { - unsafe extern "system" fn UserURI(this: *mut core::ffi::c_void, pbstruseruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCParticipant_Impl, - { + pub const fn new() -> IRTCParticipant_Vtbl { + unsafe extern "system" fn UserURI(this: *mut core::ffi::c_void, pbstruseruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCParticipant_Impl::UserURI(this) { Ok(ok__) => { @@ -2879,10 +2216,7 @@ impl IRTCParticipant_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCParticipant_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCParticipant_Impl::Name(this) { Ok(ok__) => { @@ -2892,10 +2226,7 @@ impl IRTCParticipant_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Removable(this: *mut core::ffi::c_void, pfremovable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCParticipant_Impl, - { + unsafe extern "system" fn Removable(this: *mut core::ffi::c_void, pfremovable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCParticipant_Impl::Removable(this) { Ok(ok__) => { @@ -2905,10 +2236,7 @@ impl IRTCParticipant_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_PARTICIPANT_STATE) -> windows_core::HRESULT - where - Identity: IRTCParticipant_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_PARTICIPANT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCParticipant_Impl::State(this) { Ok(ok__) => { @@ -2918,10 +2246,7 @@ impl IRTCParticipant_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCParticipant_Impl, - { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCParticipant_Impl::Session(this) { Ok(ok__) => { @@ -2954,14 +2279,8 @@ pub trait IRTCParticipantStateChangeEvent_Impl: Sized + super::Com::IDispatch_Im impl windows_core::RuntimeName for IRTCParticipantStateChangeEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCParticipantStateChangeEvent_Vtbl { - pub const fn new() -> IRTCParticipantStateChangeEvent_Vtbl - where - Identity: IRTCParticipantStateChangeEvent_Impl, - { - unsafe extern "system" fn Participant(this: *mut core::ffi::c_void, ppparticipant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCParticipantStateChangeEvent_Impl, - { + pub const fn new() -> IRTCParticipantStateChangeEvent_Vtbl { + unsafe extern "system" fn Participant(this: *mut core::ffi::c_void, ppparticipant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCParticipantStateChangeEvent_Impl::Participant(this) { Ok(ok__) => { @@ -2971,10 +2290,7 @@ impl IRTCParticipantStateChangeEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_PARTICIPANT_STATE) -> windows_core::HRESULT - where - Identity: IRTCParticipantStateChangeEvent_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_PARTICIPANT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCParticipantStateChangeEvent_Impl::State(this) { Ok(ok__) => { @@ -2984,10 +2300,7 @@ impl IRTCParticipantStateChangeEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCParticipantStateChangeEvent_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCParticipantStateChangeEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -3008,35 +2321,23 @@ impl IRTCParticipantStateChangeEvent_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRTCPortManager_Impl: Sized { +pub trait IRTCPortManager_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IRTCPortManager {} impl IRTCPortManager_Vtbl { - pub const fn new() -> IRTCPortManager_Vtbl - where - Identity: IRTCPortManager_Impl, - { - unsafe extern "system" fn GetMapping(this: *mut core::ffi::c_void, bstrremoteaddress: core::mem::MaybeUninit, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: *mut core::mem::MaybeUninit, plinternallocalport: *mut i32, pbstrexternallocaladdress: *mut core::mem::MaybeUninit, plexternallocalport: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCPortManager_Impl, - { + pub const fn new() -> IRTCPortManager_Vtbl { + unsafe extern "system" fn GetMapping(this: *mut core::ffi::c_void, bstrremoteaddress: core::mem::MaybeUninit, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: *mut core::mem::MaybeUninit, plinternallocalport: *mut i32, pbstrexternallocaladdress: *mut core::mem::MaybeUninit, plexternallocalport: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCPortManager_Impl::GetMapping(this, 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(this: *mut core::ffi::c_void, bstrremoteaddress: core::mem::MaybeUninit, bstrinternallocaladdress: core::mem::MaybeUninit, linternallocalport: i32, bstrexternallocaladdress: core::mem::MaybeUninit, lexternallocalport: i32) -> windows_core::HRESULT - where - Identity: IRTCPortManager_Impl, - { + unsafe extern "system" fn UpdateRemoteAddress(this: *mut core::ffi::c_void, bstrremoteaddress: core::mem::MaybeUninit, bstrinternallocaladdress: core::mem::MaybeUninit, linternallocalport: i32, bstrexternallocaladdress: core::mem::MaybeUninit, lexternallocalport: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCPortManager_Impl::UpdateRemoteAddress(this, 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(this: *mut core::ffi::c_void, bstrinternallocaladdress: core::mem::MaybeUninit, linternallocalport: i32, bstrexternallocaladdress: core::mem::MaybeUninit, lexternallocaladdress: i32) -> windows_core::HRESULT - where - Identity: IRTCPortManager_Impl, - { + unsafe extern "system" fn ReleaseMapping(this: *mut core::ffi::c_void, bstrinternallocaladdress: core::mem::MaybeUninit, linternallocalport: i32, bstrexternallocaladdress: core::mem::MaybeUninit, lexternallocaladdress: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCPortManager_Impl::ReleaseMapping(this, core::mem::transmute(&bstrinternallocaladdress), core::mem::transmute_copy(&linternallocalport), core::mem::transmute(&bstrexternallocaladdress), core::mem::transmute_copy(&lexternallocaladdress)).into() } @@ -3051,7 +2352,7 @@ impl IRTCPortManager_Vtbl { iid == &::IID } } -pub trait IRTCPresenceContact_Impl: Sized { +pub trait IRTCPresenceContact_Impl: Sized + windows_core::IUnknownImpl { fn PresentityURI(&self) -> windows_core::Result; fn SetPresentityURI(&self, bstrpresentityuri: &windows_core::BSTR) -> windows_core::Result<()>; fn Name(&self) -> windows_core::Result; @@ -3063,14 +2364,8 @@ pub trait IRTCPresenceContact_Impl: Sized { } impl windows_core::RuntimeName for IRTCPresenceContact {} impl IRTCPresenceContact_Vtbl { - pub const fn new() -> IRTCPresenceContact_Vtbl - where - Identity: IRTCPresenceContact_Impl, - { - unsafe extern "system" fn PresentityURI(this: *mut core::ffi::c_void, pbstrpresentityuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceContact_Impl, - { + pub const fn new() -> IRTCPresenceContact_Vtbl { + unsafe extern "system" fn PresentityURI(this: *mut core::ffi::c_void, pbstrpresentityuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceContact_Impl::PresentityURI(this) { Ok(ok__) => { @@ -3080,17 +2375,11 @@ impl IRTCPresenceContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPresentityURI(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceContact_Impl, - { + unsafe extern "system" fn SetPresentityURI(this: *mut core::ffi::c_void, bstrpresentityuri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCPresenceContact_Impl::SetPresentityURI(this, core::mem::transmute(&bstrpresentityuri)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceContact_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceContact_Impl::Name(this) { Ok(ok__) => { @@ -3100,17 +2389,11 @@ impl IRTCPresenceContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceContact_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCPresenceContact_Impl::SetName(this, core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceContact_Impl, - { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceContact_Impl::Data(this) { Ok(ok__) => { @@ -3120,17 +2403,11 @@ impl IRTCPresenceContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, bstrdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceContact_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, bstrdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCPresenceContact_Impl::SetData(this, core::mem::transmute(&bstrdata)).into() } - unsafe extern "system" fn Persistent(this: *mut core::ffi::c_void, pfpersistent: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCPresenceContact_Impl, - { + unsafe extern "system" fn Persistent(this: *mut core::ffi::c_void, pfpersistent: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceContact_Impl::Persistent(this) { Ok(ok__) => { @@ -3140,10 +2417,7 @@ impl IRTCPresenceContact_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPersistent(this: *mut core::ffi::c_void, fpersistent: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCPresenceContact_Impl, - { + unsafe extern "system" fn SetPersistent(this: *mut core::ffi::c_void, fpersistent: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCPresenceContact_Impl::SetPersistent(this, core::mem::transmute_copy(&fpersistent)).into() } @@ -3173,14 +2447,8 @@ pub trait IRTCPresenceDataEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCPresenceDataEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCPresenceDataEvent_Vtbl { - pub const fn new() -> IRTCPresenceDataEvent_Vtbl - where - Identity: IRTCPresenceDataEvent_Impl, - { - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCPresenceDataEvent_Impl, - { + pub const fn new() -> IRTCPresenceDataEvent_Vtbl { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceDataEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -3190,10 +2458,7 @@ impl IRTCPresenceDataEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceDataEvent_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceDataEvent_Impl::StatusText(this) { Ok(ok__) => { @@ -3203,10 +2468,7 @@ impl IRTCPresenceDataEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPresenceData(this: *mut core::ffi::c_void, pbstrnamespace: *mut core::mem::MaybeUninit, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceDataEvent_Impl, - { + unsafe extern "system" fn GetPresenceData(this: *mut core::ffi::c_void, pbstrnamespace: *mut core::mem::MaybeUninit, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCPresenceDataEvent_Impl::GetPresenceData(this, core::mem::transmute_copy(&pbstrnamespace), core::mem::transmute_copy(&pbstrdata)).into() } @@ -3221,7 +2483,7 @@ impl IRTCPresenceDataEvent_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRTCPresenceDevice_Impl: Sized { +pub trait IRTCPresenceDevice_Impl: Sized + windows_core::IUnknownImpl { fn Status(&self) -> windows_core::Result; fn Notes(&self) -> windows_core::Result; fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> windows_core::Result; @@ -3229,14 +2491,8 @@ pub trait IRTCPresenceDevice_Impl: Sized { } impl windows_core::RuntimeName for IRTCPresenceDevice {} impl IRTCPresenceDevice_Vtbl { - pub const fn new() -> IRTCPresenceDevice_Vtbl - where - Identity: IRTCPresenceDevice_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS) -> windows_core::HRESULT - where - Identity: IRTCPresenceDevice_Impl, - { + pub const fn new() -> IRTCPresenceDevice_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceDevice_Impl::Status(this) { Ok(ok__) => { @@ -3246,10 +2502,7 @@ impl IRTCPresenceDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Notes(this: *mut core::ffi::c_void, pbstrnotes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceDevice_Impl, - { + unsafe extern "system" fn Notes(this: *mut core::ffi::c_void, pbstrnotes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceDevice_Impl::Notes(this) { Ok(ok__) => { @@ -3259,10 +2512,7 @@ impl IRTCPresenceDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_PresenceProperty(this: *mut core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceDevice_Impl, - { + unsafe extern "system" fn get_PresenceProperty(this: *mut core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceDevice_Impl::get_PresenceProperty(this, core::mem::transmute_copy(&enproperty)) { Ok(ok__) => { @@ -3272,10 +2522,7 @@ impl IRTCPresenceDevice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPresenceData(this: *mut core::ffi::c_void, pbstrnamespace: *mut core::mem::MaybeUninit, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceDevice_Impl, - { + unsafe extern "system" fn GetPresenceData(this: *mut core::ffi::c_void, pbstrnamespace: *mut core::mem::MaybeUninit, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCPresenceDevice_Impl::GetPresenceData(this, core::mem::transmute_copy(&pbstrnamespace), core::mem::transmute_copy(&pbstrdata)).into() } @@ -3302,14 +2549,8 @@ pub trait IRTCPresencePropertyEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCPresencePropertyEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCPresencePropertyEvent_Vtbl { - pub const fn new() -> IRTCPresencePropertyEvent_Vtbl - where - Identity: IRTCPresencePropertyEvent_Impl, - { - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCPresencePropertyEvent_Impl, - { + pub const fn new() -> IRTCPresencePropertyEvent_Vtbl { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresencePropertyEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -3319,10 +2560,7 @@ impl IRTCPresencePropertyEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresencePropertyEvent_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresencePropertyEvent_Impl::StatusText(this) { Ok(ok__) => { @@ -3332,10 +2570,7 @@ impl IRTCPresencePropertyEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PresenceProperty(this: *mut core::ffi::c_void, penpresprop: *mut RTC_PRESENCE_PROPERTY) -> windows_core::HRESULT - where - Identity: IRTCPresencePropertyEvent_Impl, - { + unsafe extern "system" fn PresenceProperty(this: *mut core::ffi::c_void, penpresprop: *mut RTC_PRESENCE_PROPERTY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresencePropertyEvent_Impl::PresenceProperty(this) { Ok(ok__) => { @@ -3345,10 +2580,7 @@ impl IRTCPresencePropertyEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresencePropertyEvent_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresencePropertyEvent_Impl::Value(this) { Ok(ok__) => { @@ -3380,14 +2612,8 @@ pub trait IRTCPresenceStatusEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCPresenceStatusEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCPresenceStatusEvent_Vtbl { - pub const fn new() -> IRTCPresenceStatusEvent_Vtbl - where - Identity: IRTCPresenceStatusEvent_Impl, - { - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCPresenceStatusEvent_Impl, - { + pub const fn new() -> IRTCPresenceStatusEvent_Vtbl { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceStatusEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -3397,10 +2623,7 @@ impl IRTCPresenceStatusEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceStatusEvent_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCPresenceStatusEvent_Impl::StatusText(this) { Ok(ok__) => { @@ -3410,10 +2633,7 @@ impl IRTCPresenceStatusEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalPresenceInfo(this: *mut core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCPresenceStatusEvent_Impl, - { + unsafe extern "system" fn GetLocalPresenceInfo(this: *mut core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCPresenceStatusEvent_Impl::GetLocalPresenceInfo(this, core::mem::transmute_copy(&penstatus), core::mem::transmute_copy(&pbstrnotes)).into() } @@ -3428,7 +2648,7 @@ impl IRTCPresenceStatusEvent_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRTCProfile_Impl: Sized { +pub trait IRTCProfile_Impl: Sized + windows_core::IUnknownImpl { fn Key(&self) -> windows_core::Result; fn Name(&self) -> windows_core::Result; fn XML(&self) -> windows_core::Result; @@ -3450,14 +2670,8 @@ pub trait IRTCProfile_Impl: Sized { } impl windows_core::RuntimeName for IRTCProfile {} impl IRTCProfile_Vtbl { - pub const fn new() -> IRTCProfile_Vtbl - where - Identity: IRTCProfile_Impl, - { - unsafe extern "system" fn Key(this: *mut core::ffi::c_void, pbstrkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + pub const fn new() -> IRTCProfile_Vtbl { + unsafe extern "system" fn Key(this: *mut core::ffi::c_void, pbstrkey: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::Key(this) { Ok(ok__) => { @@ -3467,10 +2681,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::Name(this) { Ok(ok__) => { @@ -3480,10 +2691,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn XML(this: *mut core::ffi::c_void, pbstrxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn XML(this: *mut core::ffi::c_void, pbstrxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::XML(this) { Ok(ok__) => { @@ -3493,10 +2701,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn ProviderName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::ProviderName(this) { Ok(ok__) => { @@ -3506,10 +2711,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ProviderURI(this: *mut core::ffi::c_void, enuri: RTC_PROVIDER_URI, pbstruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn get_ProviderURI(this: *mut core::ffi::c_void, enuri: RTC_PROVIDER_URI, pbstruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::get_ProviderURI(this, core::mem::transmute_copy(&enuri)) { Ok(ok__) => { @@ -3519,10 +2721,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProviderData(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn ProviderData(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::ProviderData(this) { Ok(ok__) => { @@ -3532,10 +2731,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClientName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn ClientName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::ClientName(this) { Ok(ok__) => { @@ -3545,10 +2741,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClientBanner(this: *mut core::ffi::c_void, pfbanner: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn ClientBanner(this: *mut core::ffi::c_void, pfbanner: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::ClientBanner(this) { Ok(ok__) => { @@ -3558,10 +2751,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClientMinVer(this: *mut core::ffi::c_void, pbstrminver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn ClientMinVer(this: *mut core::ffi::c_void, pbstrminver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::ClientMinVer(this) { Ok(ok__) => { @@ -3571,10 +2761,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClientCurVer(this: *mut core::ffi::c_void, pbstrcurver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn ClientCurVer(this: *mut core::ffi::c_void, pbstrcurver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::ClientCurVer(this) { Ok(ok__) => { @@ -3584,10 +2771,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClientUpdateURI(this: *mut core::ffi::c_void, pbstrupdateuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn ClientUpdateURI(this: *mut core::ffi::c_void, pbstrupdateuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::ClientUpdateURI(this) { Ok(ok__) => { @@ -3597,10 +2781,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClientData(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn ClientData(this: *mut core::ffi::c_void, pbstrdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::ClientData(this) { Ok(ok__) => { @@ -3610,10 +2791,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserURI(this: *mut core::ffi::c_void, pbstruseruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn UserURI(this: *mut core::ffi::c_void, pbstruseruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::UserURI(this) { Ok(ok__) => { @@ -3623,10 +2801,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, pbstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, pbstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::UserName(this) { Ok(ok__) => { @@ -3636,10 +2811,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserAccount(this: *mut core::ffi::c_void, pbstruseraccount: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn UserAccount(this: *mut core::ffi::c_void, pbstruseraccount: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::UserAccount(this) { Ok(ok__) => { @@ -3649,17 +2821,11 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, bstruseruri: core::mem::MaybeUninit, bstruseraccount: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, bstruseruri: core::mem::MaybeUninit, bstruseraccount: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCProfile_Impl::SetCredentials(this, core::mem::transmute(&bstruseruri), core::mem::transmute(&bstruseraccount), core::mem::transmute(&bstrpassword)).into() } - unsafe extern "system" fn SessionCapabilities(this: *mut core::ffi::c_void, plsupportedsessions: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn SessionCapabilities(this: *mut core::ffi::c_void, plsupportedsessions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::SessionCapabilities(this) { Ok(ok__) => { @@ -3669,10 +2835,7 @@ impl IRTCProfile_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_REGISTRATION_STATE) -> windows_core::HRESULT - where - Identity: IRTCProfile_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_REGISTRATION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile_Impl::State(this) { Ok(ok__) => { @@ -3716,14 +2879,8 @@ pub trait IRTCProfile2_Impl: Sized + IRTCProfile_Impl { } impl windows_core::RuntimeName for IRTCProfile2 {} impl IRTCProfile2_Vtbl { - pub const fn new() -> IRTCProfile2_Vtbl - where - Identity: IRTCProfile2_Impl, - { - unsafe extern "system" fn Realm(this: *mut core::ffi::c_void, pbstrrealm: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile2_Impl, - { + pub const fn new() -> IRTCProfile2_Vtbl { + unsafe extern "system" fn Realm(this: *mut core::ffi::c_void, pbstrrealm: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile2_Impl::Realm(this) { Ok(ok__) => { @@ -3733,17 +2890,11 @@ impl IRTCProfile2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRealm(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCProfile2_Impl, - { + unsafe extern "system" fn SetRealm(this: *mut core::ffi::c_void, bstrrealm: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCProfile2_Impl::SetRealm(this, core::mem::transmute(&bstrrealm)).into() } - unsafe extern "system" fn AllowedAuth(this: *mut core::ffi::c_void, plallowedauth: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCProfile2_Impl, - { + unsafe extern "system" fn AllowedAuth(this: *mut core::ffi::c_void, plallowedauth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfile2_Impl::AllowedAuth(this) { Ok(ok__) => { @@ -3753,10 +2904,7 @@ impl IRTCProfile2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowedAuth(this: *mut core::ffi::c_void, lallowedauth: i32) -> windows_core::HRESULT - where - Identity: IRTCProfile2_Impl, - { + unsafe extern "system" fn SetAllowedAuth(this: *mut core::ffi::c_void, lallowedauth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCProfile2_Impl::SetAllowedAuth(this, core::mem::transmute_copy(&lallowedauth)).into() } @@ -3782,14 +2930,8 @@ pub trait IRTCProfileEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCProfileEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCProfileEvent_Vtbl { - pub const fn new() -> IRTCProfileEvent_Vtbl - where - Identity: IRTCProfileEvent_Impl, - { - unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCProfileEvent_Impl, - { + pub const fn new() -> IRTCProfileEvent_Vtbl { + unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfileEvent_Impl::Profile(this) { Ok(ok__) => { @@ -3799,10 +2941,7 @@ impl IRTCProfileEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cookie(this: *mut core::ffi::c_void, plcookie: *mut isize) -> windows_core::HRESULT - where - Identity: IRTCProfileEvent_Impl, - { + unsafe extern "system" fn Cookie(this: *mut core::ffi::c_void, plcookie: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfileEvent_Impl::Cookie(this) { Ok(ok__) => { @@ -3812,10 +2951,7 @@ impl IRTCProfileEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCProfileEvent_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfileEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -3844,14 +2980,8 @@ pub trait IRTCProfileEvent2_Impl: Sized + IRTCProfileEvent_Impl { impl windows_core::RuntimeName for IRTCProfileEvent2 {} #[cfg(feature = "Win32_System_Com")] impl IRTCProfileEvent2_Vtbl { - pub const fn new() -> IRTCProfileEvent2_Vtbl - where - Identity: IRTCProfileEvent2_Impl, - { - unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peventtype: *mut RTC_PROFILE_EVENT_TYPE) -> windows_core::HRESULT - where - Identity: IRTCProfileEvent2_Impl, - { + pub const fn new() -> IRTCProfileEvent2_Vtbl { + unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peventtype: *mut RTC_PROFILE_EVENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCProfileEvent2_Impl::EventType(this) { Ok(ok__) => { @@ -3879,14 +3009,8 @@ pub trait IRTCReInviteEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCReInviteEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCReInviteEvent_Vtbl { - pub const fn new() -> IRTCReInviteEvent_Vtbl - where - Identity: IRTCReInviteEvent_Impl, - { - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCReInviteEvent_Impl, - { + pub const fn new() -> IRTCReInviteEvent_Vtbl { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession2: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCReInviteEvent_Impl::Session(this) { Ok(ok__) => { @@ -3896,24 +3020,15 @@ impl IRTCReInviteEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Accept(this: *mut core::ffi::c_void, bstrcontenttype: core::mem::MaybeUninit, bstrsessiondescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCReInviteEvent_Impl, - { + unsafe extern "system" fn Accept(this: *mut core::ffi::c_void, bstrcontenttype: core::mem::MaybeUninit, bstrsessiondescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCReInviteEvent_Impl::Accept(this, core::mem::transmute(&bstrcontenttype), core::mem::transmute(&bstrsessiondescription)).into() } - unsafe extern "system" fn Reject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCReInviteEvent_Impl, - { + unsafe extern "system" fn Reject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCReInviteEvent_Impl::Reject(this).into() } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut RTC_REINVITE_STATE) -> windows_core::HRESULT - where - Identity: IRTCReInviteEvent_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut RTC_REINVITE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCReInviteEvent_Impl::State(this) { Ok(ok__) => { @@ -3923,10 +3038,7 @@ impl IRTCReInviteEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteSessionDescription(this: *mut core::ffi::c_void, pbstrcontenttype: *mut core::mem::MaybeUninit, pbstrsessiondescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCReInviteEvent_Impl, - { + unsafe extern "system" fn GetRemoteSessionDescription(this: *mut core::ffi::c_void, pbstrcontenttype: *mut core::mem::MaybeUninit, pbstrsessiondescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCReInviteEvent_Impl::GetRemoteSessionDescription(this, core::mem::transmute_copy(&pbstrcontenttype), core::mem::transmute_copy(&pbstrsessiondescription)).into() } @@ -3954,14 +3066,8 @@ pub trait IRTCRegistrationStateChangeEvent_Impl: Sized + super::Com::IDispatch_I impl windows_core::RuntimeName for IRTCRegistrationStateChangeEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCRegistrationStateChangeEvent_Vtbl { - pub const fn new() -> IRTCRegistrationStateChangeEvent_Vtbl - where - Identity: IRTCRegistrationStateChangeEvent_Impl, - { - unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCRegistrationStateChangeEvent_Impl, - { + pub const fn new() -> IRTCRegistrationStateChangeEvent_Vtbl { + unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCRegistrationStateChangeEvent_Impl::Profile(this) { Ok(ok__) => { @@ -3971,10 +3077,7 @@ impl IRTCRegistrationStateChangeEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_REGISTRATION_STATE) -> windows_core::HRESULT - where - Identity: IRTCRegistrationStateChangeEvent_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_REGISTRATION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCRegistrationStateChangeEvent_Impl::State(this) { Ok(ok__) => { @@ -3984,10 +3087,7 @@ impl IRTCRegistrationStateChangeEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCRegistrationStateChangeEvent_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCRegistrationStateChangeEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -3997,10 +3097,7 @@ impl IRTCRegistrationStateChangeEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCRegistrationStateChangeEvent_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCRegistrationStateChangeEvent_Impl::StatusText(this) { Ok(ok__) => { @@ -4033,14 +3130,8 @@ pub trait IRTCRoamingEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCRoamingEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCRoamingEvent_Vtbl { - pub const fn new() -> IRTCRoamingEvent_Vtbl - where - Identity: IRTCRoamingEvent_Impl, - { - unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peventtype: *mut RTC_ROAMING_EVENT_TYPE) -> windows_core::HRESULT - where - Identity: IRTCRoamingEvent_Impl, - { + pub const fn new() -> IRTCRoamingEvent_Vtbl { + unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peventtype: *mut RTC_ROAMING_EVENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCRoamingEvent_Impl::EventType(this) { Ok(ok__) => { @@ -4050,10 +3141,7 @@ impl IRTCRoamingEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCRoamingEvent_Impl, - { + unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCRoamingEvent_Impl::Profile(this) { Ok(ok__) => { @@ -4063,10 +3151,7 @@ impl IRTCRoamingEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCRoamingEvent_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCRoamingEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -4076,10 +3161,7 @@ impl IRTCRoamingEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCRoamingEvent_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCRoamingEvent_Impl::StatusText(this) { Ok(ok__) => { @@ -4102,7 +3184,7 @@ impl IRTCRoamingEvent_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRTCSession_Impl: Sized { +pub trait IRTCSession_Impl: Sized + windows_core::IUnknownImpl { fn Client(&self) -> windows_core::Result; fn State(&self) -> windows_core::Result; fn Type(&self) -> windows_core::Result; @@ -4128,14 +3210,8 @@ pub trait IRTCSession_Impl: Sized { impl windows_core::RuntimeName for IRTCSession {} #[cfg(feature = "Win32_System_Com")] impl IRTCSession_Vtbl { - pub const fn new() -> IRTCSession_Vtbl - where - Identity: IRTCSession_Impl, - { - unsafe extern "system" fn Client(this: *mut core::ffi::c_void, ppclient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + pub const fn new() -> IRTCSession_Vtbl { + unsafe extern "system" fn Client(this: *mut core::ffi::c_void, ppclient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession_Impl::Client(this) { Ok(ok__) => { @@ -4145,10 +3221,7 @@ impl IRTCSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_SESSION_STATE) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_SESSION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession_Impl::State(this) { Ok(ok__) => { @@ -4158,10 +3231,7 @@ impl IRTCSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pentype: *mut RTC_SESSION_TYPE) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pentype: *mut RTC_SESSION_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession_Impl::Type(this) { Ok(ok__) => { @@ -4171,10 +3241,7 @@ impl IRTCSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession_Impl::Profile(this) { Ok(ok__) => { @@ -4184,10 +3251,7 @@ impl IRTCSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Participants(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn Participants(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession_Impl::Participants(this) { Ok(ok__) => { @@ -4197,31 +3261,19 @@ impl IRTCSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Answer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn Answer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession_Impl::Answer(this).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, enreason: RTC_TERMINATE_REASON) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, enreason: RTC_TERMINATE_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession_Impl::Terminate(this, core::mem::transmute_copy(&enreason)).into() } - unsafe extern "system" fn Redirect(this: *mut core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: core::mem::MaybeUninit, pprofile: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn Redirect(this: *mut core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: core::mem::MaybeUninit, pprofile: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession_Impl::Redirect(this, core::mem::transmute_copy(&entype), core::mem::transmute(&bstrlocalphoneuri), windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn AddParticipant(this: *mut core::ffi::c_void, bstraddress: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, ppparticipant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn AddParticipant(this: *mut core::ffi::c_void, bstraddress: core::mem::MaybeUninit, bstrname: core::mem::MaybeUninit, ppparticipant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession_Impl::AddParticipant(this, core::mem::transmute(&bstraddress), core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -4231,17 +3283,11 @@ impl IRTCSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveParticipant(this: *mut core::ffi::c_void, pparticipant: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn RemoveParticipant(this: *mut core::ffi::c_void, pparticipant: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession_Impl::RemoveParticipant(this, windows_core::from_raw_borrowed(&pparticipant)).into() } - unsafe extern "system" fn EnumerateParticipants(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn EnumerateParticipants(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession_Impl::EnumerateParticipants(this) { Ok(ok__) => { @@ -4251,10 +3297,7 @@ impl IRTCSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanAddParticipants(this: *mut core::ffi::c_void, pfcanadd: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn CanAddParticipants(this: *mut core::ffi::c_void, pfcanadd: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession_Impl::CanAddParticipants(this) { Ok(ok__) => { @@ -4264,10 +3307,7 @@ impl IRTCSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RedirectedUserURI(this: *mut core::ffi::c_void, pbstruseruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn RedirectedUserURI(this: *mut core::ffi::c_void, pbstruseruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession_Impl::RedirectedUserURI(this) { Ok(ok__) => { @@ -4277,10 +3317,7 @@ impl IRTCSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RedirectedUserName(this: *mut core::ffi::c_void, pbstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn RedirectedUserName(this: *mut core::ffi::c_void, pbstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession_Impl::RedirectedUserName(this) { Ok(ok__) => { @@ -4290,45 +3327,27 @@ impl IRTCSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NextRedirectedUser(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn NextRedirectedUser(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession_Impl::NextRedirectedUser(this).into() } - unsafe extern "system" fn SendMessage(this: *mut core::ffi::c_void, bstrmessageheader: core::mem::MaybeUninit, bstrmessage: core::mem::MaybeUninit, lcookie: isize) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn SendMessage(this: *mut core::ffi::c_void, bstrmessageheader: core::mem::MaybeUninit, bstrmessage: core::mem::MaybeUninit, lcookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession_Impl::SendMessage(this, core::mem::transmute(&bstrmessageheader), core::mem::transmute(&bstrmessage), core::mem::transmute_copy(&lcookie)).into() } - unsafe extern "system" fn SendMessageStatus(this: *mut core::ffi::c_void, enuserstatus: RTC_MESSAGING_USER_STATUS, lcookie: isize) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn SendMessageStatus(this: *mut core::ffi::c_void, enuserstatus: RTC_MESSAGING_USER_STATUS, lcookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession_Impl::SendMessageStatus(this, core::mem::transmute_copy(&enuserstatus), core::mem::transmute_copy(&lcookie)).into() } - unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, lmediatype: i32, lcookie: isize) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn AddStream(this: *mut core::ffi::c_void, lmediatype: i32, lcookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession_Impl::AddStream(this, core::mem::transmute_copy(&lmediatype), core::mem::transmute_copy(&lcookie)).into() } - unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, lmediatype: i32, lcookie: isize) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn RemoveStream(this: *mut core::ffi::c_void, lmediatype: i32, lcookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession_Impl::RemoveStream(this, core::mem::transmute_copy(&lmediatype), core::mem::transmute_copy(&lcookie)).into() } - unsafe extern "system" fn put_EncryptionKey(this: *mut core::ffi::c_void, lmediatype: i32, encryptionkey: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSession_Impl, - { + unsafe extern "system" fn put_EncryptionKey(this: *mut core::ffi::c_void, lmediatype: i32, encryptionkey: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession_Impl::put_EncryptionKey(this, core::mem::transmute_copy(&lmediatype), core::mem::transmute(&encryptionkey)).into() } @@ -4373,28 +3392,16 @@ pub trait IRTCSession2_Impl: Sized + IRTCSession_Impl { impl windows_core::RuntimeName for IRTCSession2 {} #[cfg(feature = "Win32_System_Com")] impl IRTCSession2_Vtbl { - pub const fn new() -> IRTCSession2_Vtbl - where - Identity: IRTCSession2_Impl, - { - unsafe extern "system" fn SendInfo(this: *mut core::ffi::c_void, bstrinfoheader: core::mem::MaybeUninit, bstrinfo: core::mem::MaybeUninit, lcookie: isize) -> windows_core::HRESULT - where - Identity: IRTCSession2_Impl, - { + pub const fn new() -> IRTCSession2_Vtbl { + unsafe extern "system" fn SendInfo(this: *mut core::ffi::c_void, bstrinfoheader: core::mem::MaybeUninit, bstrinfo: core::mem::MaybeUninit, lcookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession2_Impl::SendInfo(this, core::mem::transmute(&bstrinfoheader), core::mem::transmute(&bstrinfo), core::mem::transmute_copy(&lcookie)).into() } - unsafe extern "system" fn put_PreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> windows_core::HRESULT - where - Identity: IRTCSession2_Impl, - { + unsafe extern "system" fn put_PreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession2_Impl::put_PreferredSecurityLevel(this, core::mem::transmute_copy(&ensecuritytype), core::mem::transmute_copy(&ensecuritylevel)).into() } - unsafe extern "system" fn get_PreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> windows_core::HRESULT - where - Identity: IRTCSession2_Impl, - { + unsafe extern "system" fn get_PreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession2_Impl::get_PreferredSecurityLevel(this, core::mem::transmute_copy(&ensecuritytype)) { Ok(ok__) => { @@ -4404,10 +3411,7 @@ impl IRTCSession2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSecurityEnabled(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pfsecurityenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCSession2_Impl, - { + unsafe extern "system" fn IsSecurityEnabled(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pfsecurityenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSession2_Impl::IsSecurityEnabled(this, core::mem::transmute_copy(&ensecuritytype)) { Ok(ok__) => { @@ -4417,17 +3421,11 @@ impl IRTCSession2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AnswerWithSessionDescription(this: *mut core::ffi::c_void, bstrcontenttype: core::mem::MaybeUninit, bstrsessiondescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSession2_Impl, - { + unsafe extern "system" fn AnswerWithSessionDescription(this: *mut core::ffi::c_void, bstrcontenttype: core::mem::MaybeUninit, bstrsessiondescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession2_Impl::AnswerWithSessionDescription(this, core::mem::transmute(&bstrcontenttype), core::mem::transmute(&bstrsessiondescription)).into() } - unsafe extern "system" fn ReInviteWithSessionDescription(this: *mut core::ffi::c_void, bstrcontenttype: core::mem::MaybeUninit, bstrsessiondescription: core::mem::MaybeUninit, lcookie: isize) -> windows_core::HRESULT - where - Identity: IRTCSession2_Impl, - { + unsafe extern "system" fn ReInviteWithSessionDescription(this: *mut core::ffi::c_void, bstrcontenttype: core::mem::MaybeUninit, bstrsessiondescription: core::mem::MaybeUninit, lcookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSession2_Impl::ReInviteWithSessionDescription(this, core::mem::transmute(&bstrcontenttype), core::mem::transmute(&bstrsessiondescription), core::mem::transmute_copy(&lcookie)).into() } @@ -4445,7 +3443,7 @@ impl IRTCSession2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRTCSessionCallControl_Impl: Sized { +pub trait IRTCSessionCallControl_Impl: Sized + windows_core::IUnknownImpl { fn Hold(&self, lcookie: isize) -> windows_core::Result<()>; fn UnHold(&self, lcookie: isize) -> windows_core::Result<()>; fn Forward(&self, bstrforwardtouri: &windows_core::BSTR) -> windows_core::Result<()>; @@ -4458,49 +3456,28 @@ pub trait IRTCSessionCallControl_Impl: Sized { } impl windows_core::RuntimeName for IRTCSessionCallControl {} impl IRTCSessionCallControl_Vtbl { - pub const fn new() -> IRTCSessionCallControl_Vtbl - where - Identity: IRTCSessionCallControl_Impl, - { - unsafe extern "system" fn Hold(this: *mut core::ffi::c_void, lcookie: isize) -> windows_core::HRESULT - where - Identity: IRTCSessionCallControl_Impl, - { + pub const fn new() -> IRTCSessionCallControl_Vtbl { + unsafe extern "system" fn Hold(this: *mut core::ffi::c_void, lcookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionCallControl_Impl::Hold(this, core::mem::transmute_copy(&lcookie)).into() } - unsafe extern "system" fn UnHold(this: *mut core::ffi::c_void, lcookie: isize) -> windows_core::HRESULT - where - Identity: IRTCSessionCallControl_Impl, - { + unsafe extern "system" fn UnHold(this: *mut core::ffi::c_void, lcookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionCallControl_Impl::UnHold(this, core::mem::transmute_copy(&lcookie)).into() } - unsafe extern "system" fn Forward(this: *mut core::ffi::c_void, bstrforwardtouri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionCallControl_Impl, - { + unsafe extern "system" fn Forward(this: *mut core::ffi::c_void, bstrforwardtouri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionCallControl_Impl::Forward(this, core::mem::transmute(&bstrforwardtouri)).into() } - unsafe extern "system" fn Refer(this: *mut core::ffi::c_void, bstrrefertouri: core::mem::MaybeUninit, bstrrefercookie: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionCallControl_Impl, - { + unsafe extern "system" fn Refer(this: *mut core::ffi::c_void, bstrrefertouri: core::mem::MaybeUninit, bstrrefercookie: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionCallControl_Impl::Refer(this, core::mem::transmute(&bstrrefertouri), core::mem::transmute(&bstrrefercookie)).into() } - unsafe extern "system" fn SetReferredByURI(this: *mut core::ffi::c_void, bstrreferredbyuri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionCallControl_Impl, - { + unsafe extern "system" fn SetReferredByURI(this: *mut core::ffi::c_void, bstrreferredbyuri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionCallControl_Impl::SetReferredByURI(this, core::mem::transmute(&bstrreferredbyuri)).into() } - unsafe extern "system" fn ReferredByURI(this: *mut core::ffi::c_void, pbstrreferredbyuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionCallControl_Impl, - { + unsafe extern "system" fn ReferredByURI(this: *mut core::ffi::c_void, pbstrreferredbyuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionCallControl_Impl::ReferredByURI(this) { Ok(ok__) => { @@ -4510,17 +3487,11 @@ impl IRTCSessionCallControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReferCookie(this: *mut core::ffi::c_void, bstrrefercookie: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionCallControl_Impl, - { + unsafe extern "system" fn SetReferCookie(this: *mut core::ffi::c_void, bstrrefercookie: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionCallControl_Impl::SetReferCookie(this, core::mem::transmute(&bstrrefercookie)).into() } - unsafe extern "system" fn ReferCookie(this: *mut core::ffi::c_void, pbstrrefercookie: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionCallControl_Impl, - { + unsafe extern "system" fn ReferCookie(this: *mut core::ffi::c_void, pbstrrefercookie: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionCallControl_Impl::ReferCookie(this) { Ok(ok__) => { @@ -4530,10 +3501,7 @@ impl IRTCSessionCallControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsReferred(this: *mut core::ffi::c_void, pfisreferred: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCSessionCallControl_Impl, - { + unsafe extern "system" fn IsReferred(this: *mut core::ffi::c_void, pfisreferred: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionCallControl_Impl::IsReferred(this) { Ok(ok__) => { @@ -4560,19 +3528,13 @@ impl IRTCSessionCallControl_Vtbl { iid == &::IID } } -pub trait IRTCSessionDescriptionManager_Impl: Sized { +pub trait IRTCSessionDescriptionManager_Impl: Sized + windows_core::IUnknownImpl { fn EvaluateSessionDescription(&self, bstrcontenttype: &windows_core::BSTR, bstrsessiondescription: &windows_core::BSTR, pfapplicationsession: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRTCSessionDescriptionManager {} impl IRTCSessionDescriptionManager_Vtbl { - pub const fn new() -> IRTCSessionDescriptionManager_Vtbl - where - Identity: IRTCSessionDescriptionManager_Impl, - { - unsafe extern "system" fn EvaluateSessionDescription(this: *mut core::ffi::c_void, bstrcontenttype: core::mem::MaybeUninit, bstrsessiondescription: core::mem::MaybeUninit, pfapplicationsession: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCSessionDescriptionManager_Impl, - { + pub const fn new() -> IRTCSessionDescriptionManager_Vtbl { + unsafe extern "system" fn EvaluateSessionDescription(this: *mut core::ffi::c_void, bstrcontenttype: core::mem::MaybeUninit, bstrsessiondescription: core::mem::MaybeUninit, pfapplicationsession: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionDescriptionManager_Impl::EvaluateSessionDescription(this, core::mem::transmute(&bstrcontenttype), core::mem::transmute(&bstrsessiondescription), core::mem::transmute_copy(&pfapplicationsession)).into() } @@ -4593,14 +3555,8 @@ pub trait IRTCSessionOperationCompleteEvent_Impl: Sized + super::Com::IDispatch_ impl windows_core::RuntimeName for IRTCSessionOperationCompleteEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCSessionOperationCompleteEvent_Vtbl { - pub const fn new() -> IRTCSessionOperationCompleteEvent_Vtbl - where - Identity: IRTCSessionOperationCompleteEvent_Impl, - { - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSessionOperationCompleteEvent_Impl, - { + pub const fn new() -> IRTCSessionOperationCompleteEvent_Vtbl { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionOperationCompleteEvent_Impl::Session(this) { Ok(ok__) => { @@ -4610,10 +3566,7 @@ impl IRTCSessionOperationCompleteEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cookie(this: *mut core::ffi::c_void, plcookie: *mut isize) -> windows_core::HRESULT - where - Identity: IRTCSessionOperationCompleteEvent_Impl, - { + unsafe extern "system" fn Cookie(this: *mut core::ffi::c_void, plcookie: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionOperationCompleteEvent_Impl::Cookie(this) { Ok(ok__) => { @@ -4623,10 +3576,7 @@ impl IRTCSessionOperationCompleteEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCSessionOperationCompleteEvent_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionOperationCompleteEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -4636,10 +3586,7 @@ impl IRTCSessionOperationCompleteEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionOperationCompleteEvent_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionOperationCompleteEvent_Impl::StatusText(this) { Ok(ok__) => { @@ -4670,14 +3617,8 @@ pub trait IRTCSessionOperationCompleteEvent2_Impl: Sized + IRTCSessionOperationC impl windows_core::RuntimeName for IRTCSessionOperationCompleteEvent2 {} #[cfg(feature = "Win32_System_Com")] impl IRTCSessionOperationCompleteEvent2_Vtbl { - pub const fn new() -> IRTCSessionOperationCompleteEvent2_Vtbl - where - Identity: IRTCSessionOperationCompleteEvent2_Impl, - { - unsafe extern "system" fn Participant(this: *mut core::ffi::c_void, ppparticipant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSessionOperationCompleteEvent2_Impl, - { + pub const fn new() -> IRTCSessionOperationCompleteEvent2_Vtbl { + unsafe extern "system" fn Participant(this: *mut core::ffi::c_void, ppparticipant: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionOperationCompleteEvent2_Impl::Participant(this) { Ok(ok__) => { @@ -4687,10 +3628,7 @@ impl IRTCSessionOperationCompleteEvent2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteSessionDescription(this: *mut core::ffi::c_void, pbstrcontenttype: *mut core::mem::MaybeUninit, pbstrsessiondescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionOperationCompleteEvent2_Impl, - { + unsafe extern "system" fn GetRemoteSessionDescription(this: *mut core::ffi::c_void, pbstrcontenttype: *mut core::mem::MaybeUninit, pbstrsessiondescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionOperationCompleteEvent2_Impl::GetRemoteSessionDescription(this, core::mem::transmute_copy(&pbstrcontenttype), core::mem::transmute_copy(&pbstrsessiondescription)).into() } @@ -4704,19 +3642,13 @@ impl IRTCSessionOperationCompleteEvent2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IRTCSessionPortManagement_Impl: Sized { +pub trait IRTCSessionPortManagement_Impl: Sized + windows_core::IUnknownImpl { fn SetPortManager(&self, pportmanager: Option<&IRTCPortManager>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRTCSessionPortManagement {} impl IRTCSessionPortManagement_Vtbl { - pub const fn new() -> IRTCSessionPortManagement_Vtbl - where - Identity: IRTCSessionPortManagement_Impl, - { - unsafe extern "system" fn SetPortManager(this: *mut core::ffi::c_void, pportmanager: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSessionPortManagement_Impl, - { + pub const fn new() -> IRTCSessionPortManagement_Vtbl { + unsafe extern "system" fn SetPortManager(this: *mut core::ffi::c_void, pportmanager: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionPortManagement_Impl::SetPortManager(this, windows_core::from_raw_borrowed(&pportmanager)).into() } @@ -4737,14 +3669,8 @@ pub trait IRTCSessionReferStatusEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCSessionReferStatusEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCSessionReferStatusEvent_Vtbl { - pub const fn new() -> IRTCSessionReferStatusEvent_Vtbl - where - Identity: IRTCSessionReferStatusEvent_Impl, - { - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSessionReferStatusEvent_Impl, - { + pub const fn new() -> IRTCSessionReferStatusEvent_Vtbl { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionReferStatusEvent_Impl::Session(this) { Ok(ok__) => { @@ -4754,10 +3680,7 @@ impl IRTCSessionReferStatusEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReferStatus(this: *mut core::ffi::c_void, penreferstatus: *mut RTC_SESSION_REFER_STATUS) -> windows_core::HRESULT - where - Identity: IRTCSessionReferStatusEvent_Impl, - { + unsafe extern "system" fn ReferStatus(this: *mut core::ffi::c_void, penreferstatus: *mut RTC_SESSION_REFER_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionReferStatusEvent_Impl::ReferStatus(this) { Ok(ok__) => { @@ -4767,10 +3690,7 @@ impl IRTCSessionReferStatusEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCSessionReferStatusEvent_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionReferStatusEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -4780,10 +3700,7 @@ impl IRTCSessionReferStatusEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionReferStatusEvent_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionReferStatusEvent_Impl::StatusText(this) { Ok(ok__) => { @@ -4819,14 +3736,8 @@ pub trait IRTCSessionReferredEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCSessionReferredEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCSessionReferredEvent_Vtbl { - pub const fn new() -> IRTCSessionReferredEvent_Vtbl - where - Identity: IRTCSessionReferredEvent_Impl, - { - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSessionReferredEvent_Impl, - { + pub const fn new() -> IRTCSessionReferredEvent_Vtbl { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionReferredEvent_Impl::Session(this) { Ok(ok__) => { @@ -4836,10 +3747,7 @@ impl IRTCSessionReferredEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReferredByURI(this: *mut core::ffi::c_void, pbstrreferredbyuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionReferredEvent_Impl, - { + unsafe extern "system" fn ReferredByURI(this: *mut core::ffi::c_void, pbstrreferredbyuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionReferredEvent_Impl::ReferredByURI(this) { Ok(ok__) => { @@ -4849,10 +3757,7 @@ impl IRTCSessionReferredEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReferToURI(this: *mut core::ffi::c_void, pbstrreferouri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionReferredEvent_Impl, - { + unsafe extern "system" fn ReferToURI(this: *mut core::ffi::c_void, pbstrreferouri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionReferredEvent_Impl::ReferToURI(this) { Ok(ok__) => { @@ -4862,10 +3767,7 @@ impl IRTCSessionReferredEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReferCookie(this: *mut core::ffi::c_void, pbstrrefercookie: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionReferredEvent_Impl, - { + unsafe extern "system" fn ReferCookie(this: *mut core::ffi::c_void, pbstrrefercookie: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionReferredEvent_Impl::ReferCookie(this) { Ok(ok__) => { @@ -4875,24 +3777,15 @@ impl IRTCSessionReferredEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Accept(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSessionReferredEvent_Impl, - { + unsafe extern "system" fn Accept(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionReferredEvent_Impl::Accept(this).into() } - unsafe extern "system" fn Reject(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSessionReferredEvent_Impl, - { + unsafe extern "system" fn Reject(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionReferredEvent_Impl::Reject(this).into() } - unsafe extern "system" fn SetReferredSessionState(this: *mut core::ffi::c_void, enstate: RTC_SESSION_STATE) -> windows_core::HRESULT - where - Identity: IRTCSessionReferredEvent_Impl, - { + unsafe extern "system" fn SetReferredSessionState(this: *mut core::ffi::c_void, enstate: RTC_SESSION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionReferredEvent_Impl::SetReferredSessionState(this, core::mem::transmute_copy(&enstate)).into() } @@ -4922,14 +3815,8 @@ pub trait IRTCSessionStateChangeEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCSessionStateChangeEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCSessionStateChangeEvent_Vtbl { - pub const fn new() -> IRTCSessionStateChangeEvent_Vtbl - where - Identity: IRTCSessionStateChangeEvent_Impl, - { - unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCSessionStateChangeEvent_Impl, - { + pub const fn new() -> IRTCSessionStateChangeEvent_Vtbl { + unsafe extern "system" fn Session(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionStateChangeEvent_Impl::Session(this) { Ok(ok__) => { @@ -4939,10 +3826,7 @@ impl IRTCSessionStateChangeEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_SESSION_STATE) -> windows_core::HRESULT - where - Identity: IRTCSessionStateChangeEvent_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_SESSION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionStateChangeEvent_Impl::State(this) { Ok(ok__) => { @@ -4952,10 +3836,7 @@ impl IRTCSessionStateChangeEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCSessionStateChangeEvent_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionStateChangeEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -4965,10 +3846,7 @@ impl IRTCSessionStateChangeEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionStateChangeEvent_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionStateChangeEvent_Impl::StatusText(this) { Ok(ok__) => { @@ -5001,14 +3879,8 @@ pub trait IRTCSessionStateChangeEvent2_Impl: Sized + IRTCSessionStateChangeEvent impl windows_core::RuntimeName for IRTCSessionStateChangeEvent2 {} #[cfg(feature = "Win32_System_Com")] impl IRTCSessionStateChangeEvent2_Vtbl { - pub const fn new() -> IRTCSessionStateChangeEvent2_Vtbl - where - Identity: IRTCSessionStateChangeEvent2_Impl, - { - unsafe extern "system" fn MediaTypes(this: *mut core::ffi::c_void, pmediatypes: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCSessionStateChangeEvent2_Impl, - { + pub const fn new() -> IRTCSessionStateChangeEvent2_Vtbl { + unsafe extern "system" fn MediaTypes(this: *mut core::ffi::c_void, pmediatypes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionStateChangeEvent2_Impl::MediaTypes(this) { Ok(ok__) => { @@ -5018,10 +3890,7 @@ impl IRTCSessionStateChangeEvent2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_RemotePreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> windows_core::HRESULT - where - Identity: IRTCSessionStateChangeEvent2_Impl, - { + unsafe extern "system" fn get_RemotePreferredSecurityLevel(this: *mut core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionStateChangeEvent2_Impl::get_RemotePreferredSecurityLevel(this, core::mem::transmute_copy(&ensecuritytype)) { Ok(ok__) => { @@ -5031,10 +3900,7 @@ impl IRTCSessionStateChangeEvent2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsForked(this: *mut core::ffi::c_void, pfisforked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCSessionStateChangeEvent2_Impl, - { + unsafe extern "system" fn IsForked(this: *mut core::ffi::c_void, pfisforked: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCSessionStateChangeEvent2_Impl::IsForked(this) { Ok(ok__) => { @@ -5044,10 +3910,7 @@ impl IRTCSessionStateChangeEvent2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteSessionDescription(this: *mut core::ffi::c_void, pbstrcontenttype: *mut core::mem::MaybeUninit, pbstrsessiondescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCSessionStateChangeEvent2_Impl, - { + unsafe extern "system" fn GetRemoteSessionDescription(this: *mut core::ffi::c_void, pbstrcontenttype: *mut core::mem::MaybeUninit, pbstrsessiondescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCSessionStateChangeEvent2_Impl::GetRemoteSessionDescription(this, core::mem::transmute_copy(&pbstrcontenttype), core::mem::transmute_copy(&pbstrsessiondescription)).into() } @@ -5063,20 +3926,14 @@ impl IRTCSessionStateChangeEvent2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IRTCUserSearch_Impl: Sized { +pub trait IRTCUserSearch_Impl: Sized + windows_core::IUnknownImpl { fn CreateQuery(&self) -> windows_core::Result; fn ExecuteSearch(&self, pquery: Option<&IRTCUserSearchQuery>, pprofile: Option<&IRTCProfile>, lcookie: isize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRTCUserSearch {} impl IRTCUserSearch_Vtbl { - pub const fn new() -> IRTCUserSearch_Vtbl - where - Identity: IRTCUserSearch_Impl, - { - unsafe extern "system" fn CreateQuery(this: *mut core::ffi::c_void, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCUserSearch_Impl, - { + pub const fn new() -> IRTCUserSearch_Vtbl { + unsafe extern "system" fn CreateQuery(this: *mut core::ffi::c_void, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearch_Impl::CreateQuery(this) { Ok(ok__) => { @@ -5086,10 +3943,7 @@ impl IRTCUserSearch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExecuteSearch(this: *mut core::ffi::c_void, pquery: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void, lcookie: isize) -> windows_core::HRESULT - where - Identity: IRTCUserSearch_Impl, - { + unsafe extern "system" fn ExecuteSearch(this: *mut core::ffi::c_void, pquery: *mut core::ffi::c_void, pprofile: *mut core::ffi::c_void, lcookie: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCUserSearch_Impl::ExecuteSearch(this, windows_core::from_raw_borrowed(&pquery), windows_core::from_raw_borrowed(&pprofile), core::mem::transmute_copy(&lcookie)).into() } @@ -5103,7 +3957,7 @@ impl IRTCUserSearch_Vtbl { iid == &::IID } } -pub trait IRTCUserSearchQuery_Impl: Sized { +pub trait IRTCUserSearchQuery_Impl: Sized + windows_core::IUnknownImpl { 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; fn SearchTerms(&self) -> windows_core::Result; @@ -5114,21 +3968,12 @@ pub trait IRTCUserSearchQuery_Impl: Sized { } impl windows_core::RuntimeName for IRTCUserSearchQuery {} impl IRTCUserSearchQuery_Vtbl { - pub const fn new() -> IRTCUserSearchQuery_Vtbl - where - Identity: IRTCUserSearchQuery_Impl, - { - unsafe extern "system" fn put_SearchTerm(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCUserSearchQuery_Impl, - { + pub const fn new() -> IRTCUserSearchQuery_Vtbl { + unsafe extern "system" fn put_SearchTerm(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstrvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCUserSearchQuery_Impl::put_SearchTerm(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn get_SearchTerm(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCUserSearchQuery_Impl, - { + unsafe extern "system" fn get_SearchTerm(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchQuery_Impl::get_SearchTerm(this, core::mem::transmute(&bstrname)) { Ok(ok__) => { @@ -5138,10 +3983,7 @@ impl IRTCUserSearchQuery_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchTerms(this: *mut core::ffi::c_void, pbstrnames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCUserSearchQuery_Impl, - { + unsafe extern "system" fn SearchTerms(this: *mut core::ffi::c_void, pbstrnames: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchQuery_Impl::SearchTerms(this) { Ok(ok__) => { @@ -5151,17 +3993,11 @@ impl IRTCUserSearchQuery_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_SearchPreference(this: *mut core::ffi::c_void, enpreference: RTC_USER_SEARCH_PREFERENCE, lvalue: i32) -> windows_core::HRESULT - where - Identity: IRTCUserSearchQuery_Impl, - { + unsafe extern "system" fn put_SearchPreference(this: *mut core::ffi::c_void, enpreference: RTC_USER_SEARCH_PREFERENCE, lvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCUserSearchQuery_Impl::put_SearchPreference(this, core::mem::transmute_copy(&enpreference), core::mem::transmute_copy(&lvalue)).into() } - unsafe extern "system" fn get_SearchPreference(this: *mut core::ffi::c_void, enpreference: RTC_USER_SEARCH_PREFERENCE, plvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCUserSearchQuery_Impl, - { + unsafe extern "system" fn get_SearchPreference(this: *mut core::ffi::c_void, enpreference: RTC_USER_SEARCH_PREFERENCE, plvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchQuery_Impl::get_SearchPreference(this, core::mem::transmute_copy(&enpreference)) { Ok(ok__) => { @@ -5171,17 +4007,11 @@ impl IRTCUserSearchQuery_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSearchDomain(this: *mut core::ffi::c_void, bstrdomain: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCUserSearchQuery_Impl, - { + unsafe extern "system" fn SetSearchDomain(this: *mut core::ffi::c_void, bstrdomain: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCUserSearchQuery_Impl::SetSearchDomain(this, core::mem::transmute(&bstrdomain)).into() } - unsafe extern "system" fn SearchDomain(this: *mut core::ffi::c_void, pbstrdomain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCUserSearchQuery_Impl, - { + unsafe extern "system" fn SearchDomain(this: *mut core::ffi::c_void, pbstrdomain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchQuery_Impl::SearchDomain(this) { Ok(ok__) => { @@ -5206,19 +4036,13 @@ impl IRTCUserSearchQuery_Vtbl { iid == &::IID } } -pub trait IRTCUserSearchResult_Impl: Sized { +pub trait IRTCUserSearchResult_Impl: Sized + windows_core::IUnknownImpl { fn get_Value(&self, encolumn: RTC_USER_SEARCH_COLUMN) -> windows_core::Result; } impl windows_core::RuntimeName for IRTCUserSearchResult {} impl IRTCUserSearchResult_Vtbl { - pub const fn new() -> IRTCUserSearchResult_Vtbl - where - Identity: IRTCUserSearchResult_Impl, - { - unsafe extern "system" fn get_Value(this: *mut core::ffi::c_void, encolumn: RTC_USER_SEARCH_COLUMN, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRTCUserSearchResult_Impl, - { + pub const fn new() -> IRTCUserSearchResult_Vtbl { + unsafe extern "system" fn get_Value(this: *mut core::ffi::c_void, encolumn: RTC_USER_SEARCH_COLUMN, pbstrvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchResult_Impl::get_Value(this, core::mem::transmute_copy(&encolumn)) { Ok(ok__) => { @@ -5248,14 +4072,8 @@ pub trait IRTCUserSearchResultsEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCUserSearchResultsEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCUserSearchResultsEvent_Vtbl { - pub const fn new() -> IRTCUserSearchResultsEvent_Vtbl - where - Identity: IRTCUserSearchResultsEvent_Impl, - { - unsafe extern "system" fn EnumerateResults(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCUserSearchResultsEvent_Impl, - { + pub const fn new() -> IRTCUserSearchResultsEvent_Vtbl { + unsafe extern "system" fn EnumerateResults(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchResultsEvent_Impl::EnumerateResults(this) { Ok(ok__) => { @@ -5265,10 +4083,7 @@ impl IRTCUserSearchResultsEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Results(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCUserSearchResultsEvent_Impl, - { + unsafe extern "system" fn Results(this: *mut core::ffi::c_void, ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchResultsEvent_Impl::Results(this) { Ok(ok__) => { @@ -5278,10 +4093,7 @@ impl IRTCUserSearchResultsEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCUserSearchResultsEvent_Impl, - { + unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchResultsEvent_Impl::Profile(this) { Ok(ok__) => { @@ -5291,10 +4103,7 @@ impl IRTCUserSearchResultsEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCUserSearchResultsEvent_Impl, - { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, ppquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchResultsEvent_Impl::Query(this) { Ok(ok__) => { @@ -5304,10 +4113,7 @@ impl IRTCUserSearchResultsEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cookie(this: *mut core::ffi::c_void, plcookie: *mut isize) -> windows_core::HRESULT - where - Identity: IRTCUserSearchResultsEvent_Impl, - { + unsafe extern "system" fn Cookie(this: *mut core::ffi::c_void, plcookie: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchResultsEvent_Impl::Cookie(this) { Ok(ok__) => { @@ -5317,10 +4123,7 @@ impl IRTCUserSearchResultsEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCUserSearchResultsEvent_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchResultsEvent_Impl::StatusCode(this) { Ok(ok__) => { @@ -5330,10 +4133,7 @@ impl IRTCUserSearchResultsEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoreAvailable(this: *mut core::ffi::c_void, pfmoreavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRTCUserSearchResultsEvent_Impl, - { + unsafe extern "system" fn MoreAvailable(this: *mut core::ffi::c_void, pfmoreavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCUserSearchResultsEvent_Impl::MoreAvailable(this) { Ok(ok__) => { @@ -5364,14 +4164,8 @@ pub trait IRTCWatcher_Impl: Sized + IRTCPresenceContact_Impl { } impl windows_core::RuntimeName for IRTCWatcher {} impl IRTCWatcher_Vtbl { - pub const fn new() -> IRTCWatcher_Vtbl - where - Identity: IRTCWatcher_Impl, - { - unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_WATCHER_STATE) -> windows_core::HRESULT - where - Identity: IRTCWatcher_Impl, - { + pub const fn new() -> IRTCWatcher_Vtbl { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, penstate: *mut RTC_WATCHER_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCWatcher_Impl::State(this) { Ok(ok__) => { @@ -5381,10 +4175,7 @@ impl IRTCWatcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, enstate: RTC_WATCHER_STATE) -> windows_core::HRESULT - where - Identity: IRTCWatcher_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, enstate: RTC_WATCHER_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRTCWatcher_Impl::SetState(this, core::mem::transmute_copy(&enstate)).into() } @@ -5400,14 +4191,8 @@ pub trait IRTCWatcher2_Impl: Sized + IRTCWatcher_Impl { } impl windows_core::RuntimeName for IRTCWatcher2 {} impl IRTCWatcher2_Vtbl { - pub const fn new() -> IRTCWatcher2_Vtbl - where - Identity: IRTCWatcher2_Impl, - { - unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCWatcher2_Impl, - { + pub const fn new() -> IRTCWatcher2_Vtbl { + unsafe extern "system" fn Profile(this: *mut core::ffi::c_void, ppprofile: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCWatcher2_Impl::Profile(this) { Ok(ok__) => { @@ -5417,10 +4202,7 @@ impl IRTCWatcher2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, penscope: *mut RTC_ACE_SCOPE) -> windows_core::HRESULT - where - Identity: IRTCWatcher2_Impl, - { + unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, penscope: *mut RTC_ACE_SCOPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCWatcher2_Impl::Scope(this) { Ok(ok__) => { @@ -5444,14 +4226,8 @@ pub trait IRTCWatcherEvent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRTCWatcherEvent {} #[cfg(feature = "Win32_System_Com")] impl IRTCWatcherEvent_Vtbl { - pub const fn new() -> IRTCWatcherEvent_Vtbl - where - Identity: IRTCWatcherEvent_Impl, - { - unsafe extern "system" fn Watcher(this: *mut core::ffi::c_void, ppwatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRTCWatcherEvent_Impl, - { + pub const fn new() -> IRTCWatcherEvent_Vtbl { + unsafe extern "system" fn Watcher(this: *mut core::ffi::c_void, ppwatcher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCWatcherEvent_Impl::Watcher(this) { Ok(ok__) => { @@ -5476,14 +4252,8 @@ pub trait IRTCWatcherEvent2_Impl: Sized + IRTCWatcherEvent_Impl { impl windows_core::RuntimeName for IRTCWatcherEvent2 {} #[cfg(feature = "Win32_System_Com")] impl IRTCWatcherEvent2_Vtbl { - pub const fn new() -> IRTCWatcherEvent2_Vtbl - where - Identity: IRTCWatcherEvent2_Impl, - { - unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peventtype: *mut RTC_WATCHER_EVENT_TYPE) -> windows_core::HRESULT - where - Identity: IRTCWatcherEvent2_Impl, - { + pub const fn new() -> IRTCWatcherEvent2_Vtbl { + unsafe extern "system" fn EventType(this: *mut core::ffi::c_void, peventtype: *mut RTC_WATCHER_EVENT_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCWatcherEvent2_Impl::EventType(this) { Ok(ok__) => { @@ -5493,10 +4263,7 @@ impl IRTCWatcherEvent2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT - where - Identity: IRTCWatcherEvent2_Impl, - { + unsafe extern "system" fn StatusCode(this: *mut core::ffi::c_void, plstatuscode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRTCWatcherEvent2_Impl::StatusCode(this) { Ok(ok__) => { @@ -5513,7 +4280,7 @@ impl IRTCWatcherEvent2_Vtbl { } } #[cfg(feature = "Win32_Networking_WinSock")] -pub trait ITransportSettingsInternal_Impl: Sized { +pub trait ITransportSettingsInternal_Impl: Sized + windows_core::IUnknownImpl { fn ApplySetting(&self, setting: *mut TRANSPORT_SETTING) -> windows_core::Result<()>; fn QuerySetting(&self, setting: *mut TRANSPORT_SETTING) -> windows_core::Result<()>; } @@ -5521,21 +4288,12 @@ pub trait ITransportSettingsInternal_Impl: Sized { impl windows_core::RuntimeName for ITransportSettingsInternal {} #[cfg(feature = "Win32_Networking_WinSock")] impl ITransportSettingsInternal_Vtbl { - pub const fn new() -> ITransportSettingsInternal_Vtbl - where - Identity: ITransportSettingsInternal_Impl, - { - unsafe extern "system" fn ApplySetting(this: *mut core::ffi::c_void, setting: *mut TRANSPORT_SETTING) -> windows_core::HRESULT - where - Identity: ITransportSettingsInternal_Impl, - { + pub const fn new() -> ITransportSettingsInternal_Vtbl { + unsafe extern "system" fn ApplySetting(this: *mut core::ffi::c_void, setting: *mut TRANSPORT_SETTING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransportSettingsInternal_Impl::ApplySetting(this, core::mem::transmute_copy(&setting)).into() } - unsafe extern "system" fn QuerySetting(this: *mut core::ffi::c_void, setting: *mut TRANSPORT_SETTING) -> windows_core::HRESULT - where - Identity: ITransportSettingsInternal_Impl, - { + unsafe extern "system" fn QuerySetting(this: *mut core::ffi::c_void, setting: *mut TRANSPORT_SETTING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransportSettingsInternal_Impl::QuerySetting(this, core::mem::transmute_copy(&setting)).into() } 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 1b57458d68..8a8f93c66e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/impl.rs @@ -4,29 +4,20 @@ pub trait DRendezvousSessionEvents_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for DRendezvousSessionEvents {} #[cfg(feature = "Win32_System_Com")] impl DRendezvousSessionEvents_Vtbl { - pub const fn new() -> DRendezvousSessionEvents_Vtbl - where - Identity: DRendezvousSessionEvents_Impl, - { + pub const fn new() -> DRendezvousSessionEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IRendezvousApplication_Impl: Sized { +pub trait IRendezvousApplication_Impl: Sized + windows_core::IUnknownImpl { fn SetRendezvousSession(&self, prendezvoussession: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRendezvousApplication {} impl IRendezvousApplication_Vtbl { - pub const fn new() -> IRendezvousApplication_Vtbl - where - Identity: IRendezvousApplication_Impl, - { - unsafe extern "system" fn SetRendezvousSession(this: *mut core::ffi::c_void, prendezvoussession: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRendezvousApplication_Impl, - { + pub const fn new() -> IRendezvousApplication_Vtbl { + unsafe extern "system" fn SetRendezvousSession(this: *mut core::ffi::c_void, prendezvoussession: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRendezvousApplication_Impl::SetRendezvousSession(this, windows_core::from_raw_borrowed(&prendezvoussession)).into() } @@ -36,7 +27,7 @@ impl IRendezvousApplication_Vtbl { iid == &::IID } } -pub trait IRendezvousSession_Impl: Sized { +pub trait IRendezvousSession_Impl: Sized + windows_core::IUnknownImpl { fn State(&self) -> windows_core::Result; fn RemoteUser(&self) -> windows_core::Result; fn Flags(&self) -> windows_core::Result; @@ -45,14 +36,8 @@ pub trait IRendezvousSession_Impl: Sized { } impl windows_core::RuntimeName for IRendezvousSession {} impl IRendezvousSession_Vtbl { - pub const fn new() -> IRendezvousSession_Vtbl - where - Identity: IRendezvousSession_Impl, - { - unsafe extern "system" fn State(this: *mut core::ffi::c_void, psessionstate: *mut RENDEZVOUS_SESSION_STATE) -> windows_core::HRESULT - where - Identity: IRendezvousSession_Impl, - { + pub const fn new() -> IRendezvousSession_Vtbl { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, psessionstate: *mut RENDEZVOUS_SESSION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRendezvousSession_Impl::State(this) { Ok(ok__) => { @@ -62,10 +47,7 @@ impl IRendezvousSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoteUser(this: *mut core::ffi::c_void, bstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRendezvousSession_Impl, - { + unsafe extern "system" fn RemoteUser(this: *mut core::ffi::c_void, bstrusername: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRendezvousSession_Impl::RemoteUser(this) { Ok(ok__) => { @@ -75,10 +57,7 @@ impl IRendezvousSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: IRendezvousSession_Impl, - { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRendezvousSession_Impl::Flags(this) { Ok(ok__) => { @@ -88,17 +67,11 @@ impl IRendezvousSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendContextData(this: *mut core::ffi::c_void, bstrdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRendezvousSession_Impl, - { + unsafe extern "system" fn SendContextData(this: *mut core::ffi::c_void, bstrdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRendezvousSession_Impl::SendContextData(this, core::mem::transmute(&bstrdata)).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, bstrappdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRendezvousSession_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, bstrappdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRendezvousSession_Impl::Terminate(this, core::mem::transmute_copy(&hr), core::mem::transmute(&bstrappdata)).into() } 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 a93a232f7e..94b883a812 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/impl.rs @@ -35,14 +35,8 @@ pub trait IADsTSUserEx_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IADsTSUserEx {} #[cfg(feature = "Win32_System_Com")] impl IADsTSUserEx_Vtbl { - pub const fn new() -> IADsTSUserEx_Vtbl - where - Identity: IADsTSUserEx_Impl, - { - unsafe extern "system" fn TerminalServicesProfilePath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + pub const fn new() -> IADsTSUserEx_Vtbl { + unsafe extern "system" fn TerminalServicesProfilePath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::TerminalServicesProfilePath(this) { Ok(ok__) => { @@ -52,17 +46,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTerminalServicesProfilePath(this: *mut core::ffi::c_void, pnewval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetTerminalServicesProfilePath(this: *mut core::ffi::c_void, pnewval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetTerminalServicesProfilePath(this, core::mem::transmute(&pnewval)).into() } - unsafe extern "system" fn TerminalServicesHomeDirectory(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn TerminalServicesHomeDirectory(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::TerminalServicesHomeDirectory(this) { Ok(ok__) => { @@ -72,17 +60,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTerminalServicesHomeDirectory(this: *mut core::ffi::c_void, pnewval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetTerminalServicesHomeDirectory(this: *mut core::ffi::c_void, pnewval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetTerminalServicesHomeDirectory(this, core::mem::transmute(&pnewval)).into() } - unsafe extern "system" fn TerminalServicesHomeDrive(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn TerminalServicesHomeDrive(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::TerminalServicesHomeDrive(this) { Ok(ok__) => { @@ -92,17 +74,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTerminalServicesHomeDrive(this: *mut core::ffi::c_void, pnewval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetTerminalServicesHomeDrive(this: *mut core::ffi::c_void, pnewval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetTerminalServicesHomeDrive(this, core::mem::transmute(&pnewval)).into() } - unsafe extern "system" fn AllowLogon(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn AllowLogon(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::AllowLogon(this) { Ok(ok__) => { @@ -112,17 +88,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowLogon(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetAllowLogon(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetAllowLogon(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn EnableRemoteControl(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn EnableRemoteControl(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::EnableRemoteControl(this) { Ok(ok__) => { @@ -132,17 +102,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnableRemoteControl(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetEnableRemoteControl(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetEnableRemoteControl(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn MaxDisconnectionTime(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn MaxDisconnectionTime(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::MaxDisconnectionTime(this) { Ok(ok__) => { @@ -152,17 +116,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxDisconnectionTime(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetMaxDisconnectionTime(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetMaxDisconnectionTime(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn MaxConnectionTime(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn MaxConnectionTime(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::MaxConnectionTime(this) { Ok(ok__) => { @@ -172,17 +130,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxConnectionTime(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetMaxConnectionTime(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetMaxConnectionTime(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn MaxIdleTime(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn MaxIdleTime(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::MaxIdleTime(this) { Ok(ok__) => { @@ -192,17 +144,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxIdleTime(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetMaxIdleTime(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetMaxIdleTime(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn ReconnectionAction(this: *mut core::ffi::c_void, pnewval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn ReconnectionAction(this: *mut core::ffi::c_void, pnewval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::ReconnectionAction(this) { Ok(ok__) => { @@ -212,17 +158,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReconnectionAction(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetReconnectionAction(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetReconnectionAction(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn BrokenConnectionAction(this: *mut core::ffi::c_void, pnewval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn BrokenConnectionAction(this: *mut core::ffi::c_void, pnewval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::BrokenConnectionAction(this) { Ok(ok__) => { @@ -232,17 +172,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBrokenConnectionAction(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetBrokenConnectionAction(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetBrokenConnectionAction(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn ConnectClientDrivesAtLogon(this: *mut core::ffi::c_void, pnewval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn ConnectClientDrivesAtLogon(this: *mut core::ffi::c_void, pnewval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::ConnectClientDrivesAtLogon(this) { Ok(ok__) => { @@ -252,17 +186,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectClientDrivesAtLogon(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetConnectClientDrivesAtLogon(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetConnectClientDrivesAtLogon(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn ConnectClientPrintersAtLogon(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn ConnectClientPrintersAtLogon(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::ConnectClientPrintersAtLogon(this) { Ok(ok__) => { @@ -272,17 +200,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectClientPrintersAtLogon(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetConnectClientPrintersAtLogon(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetConnectClientPrintersAtLogon(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn DefaultToMainPrinter(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn DefaultToMainPrinter(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::DefaultToMainPrinter(this) { Ok(ok__) => { @@ -292,17 +214,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultToMainPrinter(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetDefaultToMainPrinter(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetDefaultToMainPrinter(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn TerminalServicesWorkDirectory(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn TerminalServicesWorkDirectory(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::TerminalServicesWorkDirectory(this) { Ok(ok__) => { @@ -312,17 +228,11 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTerminalServicesWorkDirectory(this: *mut core::ffi::c_void, pnewval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetTerminalServicesWorkDirectory(this: *mut core::ffi::c_void, pnewval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetTerminalServicesWorkDirectory(this, core::mem::transmute(&pnewval)).into() } - unsafe extern "system" fn TerminalServicesInitialProgram(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn TerminalServicesInitialProgram(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IADsTSUserEx_Impl::TerminalServicesInitialProgram(this) { Ok(ok__) => { @@ -332,10 +242,7 @@ impl IADsTSUserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTerminalServicesInitialProgram(this: *mut core::ffi::c_void, pnewval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IADsTSUserEx_Impl, - { + unsafe extern "system" fn SetTerminalServicesInitialProgram(this: *mut core::ffi::c_void, pnewval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADsTSUserEx_Impl::SetTerminalServicesInitialProgram(this, core::mem::transmute(&pnewval)).into() } @@ -377,7 +284,7 @@ impl IADsTSUserEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAudioDeviceEndpoint_Impl: Sized { +pub trait IAudioDeviceEndpoint_Impl: Sized + windows_core::IUnknownImpl { fn SetBuffer(&self, maxperiod: i64, u32latencycoefficient: u32) -> windows_core::Result<()>; fn GetRTCaps(&self) -> windows_core::Result; fn GetEventDrivenCapable(&self) -> windows_core::Result; @@ -385,21 +292,12 @@ pub trait IAudioDeviceEndpoint_Impl: Sized { } impl windows_core::RuntimeName for IAudioDeviceEndpoint {} impl IAudioDeviceEndpoint_Vtbl { - pub const fn new() -> IAudioDeviceEndpoint_Vtbl - where - Identity: IAudioDeviceEndpoint_Impl, - { - unsafe extern "system" fn SetBuffer(this: *mut core::ffi::c_void, maxperiod: i64, u32latencycoefficient: u32) -> windows_core::HRESULT - where - Identity: IAudioDeviceEndpoint_Impl, - { + pub const fn new() -> IAudioDeviceEndpoint_Vtbl { + unsafe extern "system" fn SetBuffer(this: *mut core::ffi::c_void, maxperiod: i64, u32latencycoefficient: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioDeviceEndpoint_Impl::SetBuffer(this, core::mem::transmute_copy(&maxperiod), core::mem::transmute_copy(&u32latencycoefficient)).into() } - unsafe extern "system" fn GetRTCaps(this: *mut core::ffi::c_void, pbisrtcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioDeviceEndpoint_Impl, - { + unsafe extern "system" fn GetRTCaps(this: *mut core::ffi::c_void, pbisrtcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioDeviceEndpoint_Impl::GetRTCaps(this) { Ok(ok__) => { @@ -409,10 +307,7 @@ impl IAudioDeviceEndpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventDrivenCapable(this: *mut core::ffi::c_void, pbiseventcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAudioDeviceEndpoint_Impl, - { + unsafe extern "system" fn GetEventDrivenCapable(this: *mut core::ffi::c_void, pbiseventcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioDeviceEndpoint_Impl::GetEventDrivenCapable(this) { Ok(ok__) => { @@ -422,10 +317,7 @@ impl IAudioDeviceEndpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteExclusiveModeParametersToSharedMemory(this: *mut core::ffi::c_void, htargetprocess: usize, hnsperiod: i64, hnsbufferduration: i64, u32latencycoefficient: u32, pu32sharedmemorysize: *mut u32, phsharedmemory: *mut usize) -> windows_core::HRESULT - where - Identity: IAudioDeviceEndpoint_Impl, - { + unsafe extern "system" fn WriteExclusiveModeParametersToSharedMemory(this: *mut core::ffi::c_void, htargetprocess: usize, hnsperiod: i64, hnsbufferduration: i64, u32latencycoefficient: u32, pu32sharedmemorysize: *mut u32, phsharedmemory: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioDeviceEndpoint_Impl::WriteExclusiveModeParametersToSharedMemory(this, core::mem::transmute_copy(&htargetprocess), core::mem::transmute_copy(&hnsperiod), core::mem::transmute_copy(&hnsbufferduration), core::mem::transmute_copy(&u32latencycoefficient), core::mem::transmute_copy(&pu32sharedmemorysize), core::mem::transmute_copy(&phsharedmemory)).into() } @@ -442,7 +334,7 @@ impl IAudioDeviceEndpoint_Vtbl { } } #[cfg(feature = "Win32_Media_Audio")] -pub trait IAudioEndpoint_Impl: Sized { +pub trait IAudioEndpoint_Impl: Sized + windows_core::IUnknownImpl { fn GetFrameFormat(&self) -> windows_core::Result<*mut super::super::Media::Audio::WAVEFORMATEX>; fn GetFramesPerPacket(&self) -> windows_core::Result; fn GetLatency(&self) -> windows_core::Result; @@ -453,14 +345,8 @@ pub trait IAudioEndpoint_Impl: Sized { impl windows_core::RuntimeName for IAudioEndpoint {} #[cfg(feature = "Win32_Media_Audio")] impl IAudioEndpoint_Vtbl { - pub const fn new() -> IAudioEndpoint_Vtbl - where - Identity: IAudioEndpoint_Impl, - { - unsafe extern "system" fn GetFrameFormat(this: *mut core::ffi::c_void, ppformat: *mut *mut super::super::Media::Audio::WAVEFORMATEX) -> windows_core::HRESULT - where - Identity: IAudioEndpoint_Impl, - { + pub const fn new() -> IAudioEndpoint_Vtbl { + unsafe extern "system" fn GetFrameFormat(this: *mut core::ffi::c_void, ppformat: *mut *mut super::super::Media::Audio::WAVEFORMATEX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpoint_Impl::GetFrameFormat(this) { Ok(ok__) => { @@ -470,10 +356,7 @@ impl IAudioEndpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFramesPerPacket(this: *mut core::ffi::c_void, pframesperpacket: *mut u32) -> windows_core::HRESULT - where - Identity: IAudioEndpoint_Impl, - { + unsafe extern "system" fn GetFramesPerPacket(this: *mut core::ffi::c_void, pframesperpacket: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpoint_Impl::GetFramesPerPacket(this) { Ok(ok__) => { @@ -483,10 +366,7 @@ impl IAudioEndpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLatency(this: *mut core::ffi::c_void, platency: *mut i64) -> windows_core::HRESULT - where - Identity: IAudioEndpoint_Impl, - { + unsafe extern "system" fn GetLatency(this: *mut core::ffi::c_void, platency: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpoint_Impl::GetLatency(this) { Ok(ok__) => { @@ -496,17 +376,11 @@ impl IAudioEndpoint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStreamFlags(this: *mut core::ffi::c_void, streamflags: u32) -> windows_core::HRESULT - where - Identity: IAudioEndpoint_Impl, - { + unsafe extern "system" fn SetStreamFlags(this: *mut core::ffi::c_void, streamflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpoint_Impl::SetStreamFlags(this, core::mem::transmute_copy(&streamflags)).into() } - unsafe extern "system" fn SetEventHandle(this: *mut core::ffi::c_void, eventhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IAudioEndpoint_Impl, - { + unsafe extern "system" fn SetEventHandle(this: *mut core::ffi::c_void, eventhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpoint_Impl::SetEventHandle(this, core::mem::transmute_copy(&eventhandle)).into() } @@ -523,35 +397,23 @@ impl IAudioEndpoint_Vtbl { iid == &::IID } } -pub trait IAudioEndpointControl_Impl: Sized { +pub trait IAudioEndpointControl_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioEndpointControl {} impl IAudioEndpointControl_Vtbl { - pub const fn new() -> IAudioEndpointControl_Vtbl - where - Identity: IAudioEndpointControl_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEndpointControl_Impl, - { + pub const fn new() -> IAudioEndpointControl_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointControl_Impl::Start(this).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEndpointControl_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointControl_Impl::Reset(this).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEndpointControl_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointControl_Impl::Stop(this).into() } @@ -566,7 +428,7 @@ impl IAudioEndpointControl_Vtbl { iid == &::IID } } -pub trait IAudioEndpointRT_Impl: Sized { +pub trait IAudioEndpointRT_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentPadding(&self, ppadding: *mut i64, paecurrentposition: *mut AE_CURRENT_POSITION); fn ProcessingComplete(&self); fn SetPinInactive(&self) -> windows_core::Result<()>; @@ -574,35 +436,20 @@ pub trait IAudioEndpointRT_Impl: Sized { } impl windows_core::RuntimeName for IAudioEndpointRT {} impl IAudioEndpointRT_Vtbl { - pub const fn new() -> IAudioEndpointRT_Vtbl - where - Identity: IAudioEndpointRT_Impl, - { - unsafe extern "system" fn GetCurrentPadding(this: *mut core::ffi::c_void, ppadding: *mut i64, paecurrentposition: *mut AE_CURRENT_POSITION) - where - Identity: IAudioEndpointRT_Impl, - { + pub const fn new() -> IAudioEndpointRT_Vtbl { + unsafe extern "system" fn GetCurrentPadding(this: *mut core::ffi::c_void, ppadding: *mut i64, paecurrentposition: *mut AE_CURRENT_POSITION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointRT_Impl::GetCurrentPadding(this, core::mem::transmute_copy(&ppadding), core::mem::transmute_copy(&paecurrentposition)) } - unsafe extern "system" fn ProcessingComplete(this: *mut core::ffi::c_void) - where - Identity: IAudioEndpointRT_Impl, - { + unsafe extern "system" fn ProcessingComplete(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointRT_Impl::ProcessingComplete(this) } - unsafe extern "system" fn SetPinInactive(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEndpointRT_Impl, - { + unsafe extern "system" fn SetPinInactive(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointRT_Impl::SetPinInactive(this).into() } - unsafe extern "system" fn SetPinActive(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioEndpointRT_Impl, - { + unsafe extern "system" fn SetPinActive(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointRT_Impl::SetPinActive(this).into() } @@ -619,7 +466,7 @@ impl IAudioEndpointRT_Vtbl { } } #[cfg(feature = "Win32_Media_Audio_Apo")] -pub trait IAudioInputEndpointRT_Impl: Sized { +pub trait IAudioInputEndpointRT_Impl: Sized + windows_core::IUnknownImpl { fn GetInputDataPointer(&self, pconnectionproperty: *mut super::super::Media::Audio::Apo::APO_CONNECTION_PROPERTY, paetimestamp: *mut AE_CURRENT_POSITION); fn ReleaseInputDataPointer(&self, u32framecount: u32, pdatapointer: usize); fn PulseEndpoint(&self); @@ -628,28 +475,16 @@ pub trait IAudioInputEndpointRT_Impl: Sized { impl windows_core::RuntimeName for IAudioInputEndpointRT {} #[cfg(feature = "Win32_Media_Audio_Apo")] impl IAudioInputEndpointRT_Vtbl { - pub const fn new() -> IAudioInputEndpointRT_Vtbl - where - Identity: IAudioInputEndpointRT_Impl, - { - unsafe extern "system" fn GetInputDataPointer(this: *mut core::ffi::c_void, pconnectionproperty: *mut super::super::Media::Audio::Apo::APO_CONNECTION_PROPERTY, paetimestamp: *mut AE_CURRENT_POSITION) - where - Identity: IAudioInputEndpointRT_Impl, - { + pub const fn new() -> IAudioInputEndpointRT_Vtbl { + unsafe extern "system" fn GetInputDataPointer(this: *mut core::ffi::c_void, pconnectionproperty: *mut super::super::Media::Audio::Apo::APO_CONNECTION_PROPERTY, paetimestamp: *mut AE_CURRENT_POSITION) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioInputEndpointRT_Impl::GetInputDataPointer(this, core::mem::transmute_copy(&pconnectionproperty), core::mem::transmute_copy(&paetimestamp)) } - unsafe extern "system" fn ReleaseInputDataPointer(this: *mut core::ffi::c_void, u32framecount: u32, pdatapointer: usize) - where - Identity: IAudioInputEndpointRT_Impl, - { + unsafe extern "system" fn ReleaseInputDataPointer(this: *mut core::ffi::c_void, u32framecount: u32, pdatapointer: usize) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioInputEndpointRT_Impl::ReleaseInputDataPointer(this, core::mem::transmute_copy(&u32framecount), core::mem::transmute_copy(&pdatapointer)) } - unsafe extern "system" fn PulseEndpoint(this: *mut core::ffi::c_void) - where - Identity: IAudioInputEndpointRT_Impl, - { + unsafe extern "system" fn PulseEndpoint(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioInputEndpointRT_Impl::PulseEndpoint(this) } @@ -665,7 +500,7 @@ impl IAudioInputEndpointRT_Vtbl { } } #[cfg(feature = "Win32_Media_Audio_Apo")] -pub trait IAudioOutputEndpointRT_Impl: Sized { +pub trait IAudioOutputEndpointRT_Impl: Sized + windows_core::IUnknownImpl { fn GetOutputDataPointer(&self, u32framecount: u32, paetimestamp: *const AE_CURRENT_POSITION) -> usize; fn ReleaseOutputDataPointer(&self, pconnectionproperty: *const super::super::Media::Audio::Apo::APO_CONNECTION_PROPERTY); fn PulseEndpoint(&self); @@ -674,28 +509,16 @@ pub trait IAudioOutputEndpointRT_Impl: Sized { impl windows_core::RuntimeName for IAudioOutputEndpointRT {} #[cfg(feature = "Win32_Media_Audio_Apo")] impl IAudioOutputEndpointRT_Vtbl { - pub const fn new() -> IAudioOutputEndpointRT_Vtbl - where - Identity: IAudioOutputEndpointRT_Impl, - { - unsafe extern "system" fn GetOutputDataPointer(this: *mut core::ffi::c_void, u32framecount: u32, paetimestamp: *const AE_CURRENT_POSITION) -> usize - where - Identity: IAudioOutputEndpointRT_Impl, - { + pub const fn new() -> IAudioOutputEndpointRT_Vtbl { + unsafe extern "system" fn GetOutputDataPointer(this: *mut core::ffi::c_void, u32framecount: u32, paetimestamp: *const AE_CURRENT_POSITION) -> usize { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioOutputEndpointRT_Impl::GetOutputDataPointer(this, core::mem::transmute_copy(&u32framecount), core::mem::transmute_copy(&paetimestamp)) } - unsafe extern "system" fn ReleaseOutputDataPointer(this: *mut core::ffi::c_void, pconnectionproperty: *const super::super::Media::Audio::Apo::APO_CONNECTION_PROPERTY) - where - Identity: IAudioOutputEndpointRT_Impl, - { + unsafe extern "system" fn ReleaseOutputDataPointer(this: *mut core::ffi::c_void, pconnectionproperty: *const super::super::Media::Audio::Apo::APO_CONNECTION_PROPERTY) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioOutputEndpointRT_Impl::ReleaseOutputDataPointer(this, core::mem::transmute_copy(&pconnectionproperty)) } - unsafe extern "system" fn PulseEndpoint(this: *mut core::ffi::c_void) - where - Identity: IAudioOutputEndpointRT_Impl, - { + unsafe extern "system" fn PulseEndpoint(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioOutputEndpointRT_Impl::PulseEndpoint(this) } @@ -727,35 +550,20 @@ pub trait IRemoteDesktopClient_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRemoteDesktopClient {} #[cfg(feature = "Win32_System_Com")] impl IRemoteDesktopClient_Vtbl { - pub const fn new() -> IRemoteDesktopClient_Vtbl - where - Identity: IRemoteDesktopClient_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClient_Impl, - { + pub const fn new() -> IRemoteDesktopClient_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClient_Impl::Connect(this).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClient_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClient_Impl::Disconnect(this).into() } - unsafe extern "system" fn Reconnect(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClient_Impl, - { + unsafe extern "system" fn Reconnect(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClient_Impl::Reconnect(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn Settings(this: *mut core::ffi::c_void, settings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClient_Impl, - { + unsafe extern "system" fn Settings(this: *mut core::ffi::c_void, settings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDesktopClient_Impl::Settings(this) { Ok(ok__) => { @@ -765,10 +573,7 @@ impl IRemoteDesktopClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Actions(this: *mut core::ffi::c_void, actions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClient_Impl, - { + unsafe extern "system" fn Actions(this: *mut core::ffi::c_void, actions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDesktopClient_Impl::Actions(this) { Ok(ok__) => { @@ -778,10 +583,7 @@ impl IRemoteDesktopClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TouchPointer(this: *mut core::ffi::c_void, touchpointer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClient_Impl, - { + unsafe extern "system" fn TouchPointer(this: *mut core::ffi::c_void, touchpointer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDesktopClient_Impl::TouchPointer(this) { Ok(ok__) => { @@ -791,31 +593,19 @@ impl IRemoteDesktopClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteSavedCredentials(this: *mut core::ffi::c_void, servername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClient_Impl, - { + unsafe extern "system" fn DeleteSavedCredentials(this: *mut core::ffi::c_void, servername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClient_Impl::DeleteSavedCredentials(this, core::mem::transmute(&servername)).into() } - unsafe extern "system" fn UpdateSessionDisplaySettings(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClient_Impl, - { + unsafe extern "system" fn UpdateSessionDisplaySettings(this: *mut core::ffi::c_void, width: u32, height: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClient_Impl::UpdateSessionDisplaySettings(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn attachEvent(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, callback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClient_Impl, - { + unsafe extern "system" fn attachEvent(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, callback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClient_Impl::attachEvent(this, core::mem::transmute(&eventname), windows_core::from_raw_borrowed(&callback)).into() } - unsafe extern "system" fn detachEvent(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, callback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClient_Impl, - { + unsafe extern "system" fn detachEvent(this: *mut core::ffi::c_void, eventname: core::mem::MaybeUninit, callback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClient_Impl::detachEvent(this, core::mem::transmute(&eventname), windows_core::from_raw_borrowed(&callback)).into() } @@ -848,35 +638,20 @@ pub trait IRemoteDesktopClientActions_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRemoteDesktopClientActions {} #[cfg(feature = "Win32_System_Com")] impl IRemoteDesktopClientActions_Vtbl { - pub const fn new() -> IRemoteDesktopClientActions_Vtbl - where - Identity: IRemoteDesktopClientActions_Impl, - { - unsafe extern "system" fn SuspendScreenUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientActions_Impl, - { + pub const fn new() -> IRemoteDesktopClientActions_Vtbl { + unsafe extern "system" fn SuspendScreenUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClientActions_Impl::SuspendScreenUpdates(this).into() } - unsafe extern "system" fn ResumeScreenUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientActions_Impl, - { + unsafe extern "system" fn ResumeScreenUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClientActions_Impl::ResumeScreenUpdates(this).into() } - unsafe extern "system" fn ExecuteRemoteAction(this: *mut core::ffi::c_void, remoteaction: RemoteActionType) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientActions_Impl, - { + unsafe extern "system" fn ExecuteRemoteAction(this: *mut core::ffi::c_void, remoteaction: RemoteActionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClientActions_Impl::ExecuteRemoteAction(this, core::mem::transmute_copy(&remoteaction)).into() } - unsafe extern "system" fn GetSnapshot(this: *mut core::ffi::c_void, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32, snapshotdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientActions_Impl, - { + unsafe extern "system" fn GetSnapshot(this: *mut core::ffi::c_void, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32, snapshotdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDesktopClientActions_Impl::GetSnapshot(this, core::mem::transmute_copy(&snapshotencoding), core::mem::transmute_copy(&snapshotformat), core::mem::transmute_copy(&snapshotwidth), core::mem::transmute_copy(&snapshotheight)) { Ok(ok__) => { @@ -909,21 +684,12 @@ pub trait IRemoteDesktopClientSettings_Impl: Sized + super::Com::IDispatch_Impl impl windows_core::RuntimeName for IRemoteDesktopClientSettings {} #[cfg(feature = "Win32_System_Com")] impl IRemoteDesktopClientSettings_Vtbl { - pub const fn new() -> IRemoteDesktopClientSettings_Vtbl - where - Identity: IRemoteDesktopClientSettings_Impl, - { - unsafe extern "system" fn ApplySettings(this: *mut core::ffi::c_void, rdpfilecontents: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientSettings_Impl, - { + pub const fn new() -> IRemoteDesktopClientSettings_Vtbl { + unsafe extern "system" fn ApplySettings(this: *mut core::ffi::c_void, rdpfilecontents: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClientSettings_Impl::ApplySettings(this, core::mem::transmute(&rdpfilecontents)).into() } - unsafe extern "system" fn RetrieveSettings(this: *mut core::ffi::c_void, rdpfilecontents: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientSettings_Impl, - { + unsafe extern "system" fn RetrieveSettings(this: *mut core::ffi::c_void, rdpfilecontents: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDesktopClientSettings_Impl::RetrieveSettings(this) { Ok(ok__) => { @@ -933,10 +699,7 @@ impl IRemoteDesktopClientSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRdpProperty(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientSettings_Impl, - { + unsafe extern "system" fn GetRdpProperty(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDesktopClientSettings_Impl::GetRdpProperty(this, core::mem::transmute(&propertyname)) { Ok(ok__) => { @@ -946,10 +709,7 @@ impl IRemoteDesktopClientSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRdpProperty(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientSettings_Impl, - { + unsafe extern "system" fn SetRdpProperty(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClientSettings_Impl::SetRdpProperty(this, core::mem::transmute(&propertyname), core::mem::transmute(&value)).into() } @@ -978,21 +738,12 @@ pub trait IRemoteDesktopClientTouchPointer_Impl: Sized + super::Com::IDispatch_I impl windows_core::RuntimeName for IRemoteDesktopClientTouchPointer {} #[cfg(feature = "Win32_System_Com")] impl IRemoteDesktopClientTouchPointer_Vtbl { - pub const fn new() -> IRemoteDesktopClientTouchPointer_Vtbl - where - Identity: IRemoteDesktopClientTouchPointer_Impl, - { - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientTouchPointer_Impl, - { + pub const fn new() -> IRemoteDesktopClientTouchPointer_Vtbl { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClientTouchPointer_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientTouchPointer_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDesktopClientTouchPointer_Impl::Enabled(this) { Ok(ok__) => { @@ -1002,17 +753,11 @@ impl IRemoteDesktopClientTouchPointer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventsEnabled(this: *mut core::ffi::c_void, eventsenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientTouchPointer_Impl, - { + unsafe extern "system" fn SetEventsEnabled(this: *mut core::ffi::c_void, eventsenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClientTouchPointer_Impl::SetEventsEnabled(this, core::mem::transmute_copy(&eventsenabled)).into() } - unsafe extern "system" fn EventsEnabled(this: *mut core::ffi::c_void, eventsenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientTouchPointer_Impl, - { + unsafe extern "system" fn EventsEnabled(this: *mut core::ffi::c_void, eventsenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDesktopClientTouchPointer_Impl::EventsEnabled(this) { Ok(ok__) => { @@ -1022,17 +767,11 @@ impl IRemoteDesktopClientTouchPointer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPointerSpeed(this: *mut core::ffi::c_void, pointerspeed: u32) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientTouchPointer_Impl, - { + unsafe extern "system" fn SetPointerSpeed(this: *mut core::ffi::c_void, pointerspeed: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteDesktopClientTouchPointer_Impl::SetPointerSpeed(this, core::mem::transmute_copy(&pointerspeed)).into() } - unsafe extern "system" fn PointerSpeed(this: *mut core::ffi::c_void, pointerspeed: *mut u32) -> windows_core::HRESULT - where - Identity: IRemoteDesktopClientTouchPointer_Impl, - { + unsafe extern "system" fn PointerSpeed(this: *mut core::ffi::c_void, pointerspeed: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRemoteDesktopClientTouchPointer_Impl::PointerSpeed(this) { Ok(ok__) => { @@ -1056,19 +795,13 @@ impl IRemoteDesktopClientTouchPointer_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRemoteSystemAdditionalInfoProvider_Impl: Sized { +pub trait IRemoteSystemAdditionalInfoProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetAdditionalInfo(&self, deduplicationid: *mut windows_core::HSTRING, riid: *const windows_core::GUID, mapview: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRemoteSystemAdditionalInfoProvider {} impl IRemoteSystemAdditionalInfoProvider_Vtbl { - pub const fn new() -> IRemoteSystemAdditionalInfoProvider_Vtbl - where - Identity: IRemoteSystemAdditionalInfoProvider_Impl, - { - unsafe extern "system" fn GetAdditionalInfo(this: *mut core::ffi::c_void, deduplicationid: *mut core::mem::MaybeUninit, riid: *const windows_core::GUID, mapview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRemoteSystemAdditionalInfoProvider_Impl, - { + pub const fn new() -> IRemoteSystemAdditionalInfoProvider_Vtbl { + unsafe extern "system" fn GetAdditionalInfo(this: *mut core::ffi::c_void, deduplicationid: *mut core::mem::MaybeUninit, riid: *const windows_core::GUID, mapview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteSystemAdditionalInfoProvider_Impl::GetAdditionalInfo(this, core::mem::transmute_copy(&deduplicationid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&mapview)).into() } @@ -1078,19 +811,13 @@ impl IRemoteSystemAdditionalInfoProvider_Vtbl { iid == &::IID } } -pub trait ITSGAccountingEngine_Impl: Sized { +pub trait ITSGAccountingEngine_Impl: Sized + windows_core::IUnknownImpl { fn DoAccounting(&self, accountingdatatype: AAAccountingDataType, accountingdata: &AAAccountingData) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITSGAccountingEngine {} impl ITSGAccountingEngine_Vtbl { - pub const fn new() -> ITSGAccountingEngine_Vtbl - where - Identity: ITSGAccountingEngine_Impl, - { - unsafe extern "system" fn DoAccounting(this: *mut core::ffi::c_void, accountingdatatype: AAAccountingDataType, accountingdata: AAAccountingData) -> windows_core::HRESULT - where - Identity: ITSGAccountingEngine_Impl, - { + pub const fn new() -> ITSGAccountingEngine_Vtbl { + unsafe extern "system" fn DoAccounting(this: *mut core::ffi::c_void, accountingdatatype: AAAccountingDataType, accountingdata: AAAccountingData) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGAccountingEngine_Impl::DoAccounting(this, core::mem::transmute_copy(&accountingdatatype), core::mem::transmute(&accountingdata)).into() } @@ -1100,7 +827,7 @@ impl ITSGAccountingEngine_Vtbl { iid == &::IID } } -pub trait ITSGAuthenticateUserSink_Impl: Sized { +pub trait ITSGAuthenticateUserSink_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -1108,35 +835,20 @@ pub trait ITSGAuthenticateUserSink_Impl: Sized { } impl windows_core::RuntimeName for ITSGAuthenticateUserSink {} impl ITSGAuthenticateUserSink_Vtbl { - pub const fn new() -> ITSGAuthenticateUserSink_Vtbl - where - Identity: ITSGAuthenticateUserSink_Impl, - { - unsafe extern "system" fn OnUserAuthenticated(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, userdomain: core::mem::MaybeUninit, context: usize, usertoken: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: ITSGAuthenticateUserSink_Impl, - { + pub const fn new() -> ITSGAuthenticateUserSink_Vtbl { + unsafe extern "system" fn OnUserAuthenticated(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, userdomain: core::mem::MaybeUninit, context: usize, usertoken: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGAuthenticateUserSink_Impl::OnUserAuthenticated(this, core::mem::transmute(&username), core::mem::transmute(&userdomain), core::mem::transmute_copy(&context), core::mem::transmute_copy(&usertoken)).into() } - unsafe extern "system" fn OnUserAuthenticationFailed(this: *mut core::ffi::c_void, context: usize, genericerrorcode: windows_core::HRESULT, specificerrorcode: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITSGAuthenticateUserSink_Impl, - { + unsafe extern "system" fn OnUserAuthenticationFailed(this: *mut core::ffi::c_void, context: usize, genericerrorcode: windows_core::HRESULT, specificerrorcode: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGAuthenticateUserSink_Impl::OnUserAuthenticationFailed(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&genericerrorcode), core::mem::transmute_copy(&specificerrorcode)).into() } - unsafe extern "system" fn ReauthenticateUser(this: *mut core::ffi::c_void, context: usize) -> windows_core::HRESULT - where - Identity: ITSGAuthenticateUserSink_Impl, - { + unsafe extern "system" fn ReauthenticateUser(this: *mut core::ffi::c_void, context: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGAuthenticateUserSink_Impl::ReauthenticateUser(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn DisconnectUser(this: *mut core::ffi::c_void, context: usize) -> windows_core::HRESULT - where - Identity: ITSGAuthenticateUserSink_Impl, - { + unsafe extern "system" fn DisconnectUser(this: *mut core::ffi::c_void, context: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGAuthenticateUserSink_Impl::DisconnectUser(this, core::mem::transmute_copy(&context)).into() } @@ -1152,27 +864,18 @@ impl ITSGAuthenticateUserSink_Vtbl { iid == &::IID } } -pub trait ITSGAuthenticationEngine_Impl: Sized { +pub trait ITSGAuthenticationEngine_Impl: Sized + windows_core::IUnknownImpl { fn AuthenticateUser(&self, mainsessionid: &windows_core::GUID, cookiedata: *const u8, numcookiebytes: u32, context: usize, psink: Option<&ITSGAuthenticateUserSink>) -> windows_core::Result<()>; fn CancelAuthentication(&self, mainsessionid: &windows_core::GUID, context: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITSGAuthenticationEngine {} impl ITSGAuthenticationEngine_Vtbl { - pub const fn new() -> ITSGAuthenticationEngine_Vtbl - where - Identity: ITSGAuthenticationEngine_Impl, - { - unsafe extern "system" fn AuthenticateUser(this: *mut core::ffi::c_void, mainsessionid: windows_core::GUID, cookiedata: *const u8, numcookiebytes: u32, context: usize, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSGAuthenticationEngine_Impl, - { + pub const fn new() -> ITSGAuthenticationEngine_Vtbl { + unsafe extern "system" fn AuthenticateUser(this: *mut core::ffi::c_void, mainsessionid: windows_core::GUID, cookiedata: *const u8, numcookiebytes: u32, context: usize, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGAuthenticationEngine_Impl::AuthenticateUser(this, core::mem::transmute(&mainsessionid), core::mem::transmute_copy(&cookiedata), core::mem::transmute_copy(&numcookiebytes), core::mem::transmute_copy(&context), windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn CancelAuthentication(this: *mut core::ffi::c_void, mainsessionid: windows_core::GUID, context: usize) -> windows_core::HRESULT - where - Identity: ITSGAuthenticationEngine_Impl, - { + unsafe extern "system" fn CancelAuthentication(this: *mut core::ffi::c_void, mainsessionid: windows_core::GUID, context: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGAuthenticationEngine_Impl::CancelAuthentication(this, core::mem::transmute(&mainsessionid), core::mem::transmute_copy(&context)).into() } @@ -1186,19 +889,13 @@ impl ITSGAuthenticationEngine_Vtbl { iid == &::IID } } -pub trait ITSGAuthorizeConnectionSink_Impl: Sized { +pub trait ITSGAuthorizeConnectionSink_Impl: Sized + windows_core::IUnknownImpl { fn OnConnectionAuthorized(&self, hrin: windows_core::HRESULT, mainsessionid: &windows_core::GUID, cbsohresponse: u32, pbsohresponse: *const u8, idletimeout: u32, sessiontimeout: u32, sessiontimeoutaction: SESSION_TIMEOUT_ACTION_TYPE, trustclass: AATrustClassID, policyattributes: *const u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITSGAuthorizeConnectionSink {} impl ITSGAuthorizeConnectionSink_Vtbl { - pub const fn new() -> ITSGAuthorizeConnectionSink_Vtbl - where - Identity: ITSGAuthorizeConnectionSink_Impl, - { - unsafe extern "system" fn OnConnectionAuthorized(this: *mut core::ffi::c_void, hrin: windows_core::HRESULT, mainsessionid: windows_core::GUID, cbsohresponse: u32, pbsohresponse: *const u8, idletimeout: u32, sessiontimeout: u32, sessiontimeoutaction: SESSION_TIMEOUT_ACTION_TYPE, trustclass: AATrustClassID, policyattributes: *const u32) -> windows_core::HRESULT - where - Identity: ITSGAuthorizeConnectionSink_Impl, - { + pub const fn new() -> ITSGAuthorizeConnectionSink_Vtbl { + unsafe extern "system" fn OnConnectionAuthorized(this: *mut core::ffi::c_void, hrin: windows_core::HRESULT, mainsessionid: windows_core::GUID, cbsohresponse: u32, pbsohresponse: *const u8, idletimeout: u32, sessiontimeout: u32, sessiontimeoutaction: SESSION_TIMEOUT_ACTION_TYPE, trustclass: AATrustClassID, policyattributes: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGAuthorizeConnectionSink_Impl::OnConnectionAuthorized(this, core::mem::transmute_copy(&hrin), core::mem::transmute(&mainsessionid), core::mem::transmute_copy(&cbsohresponse), core::mem::transmute_copy(&pbsohresponse), core::mem::transmute_copy(&idletimeout), core::mem::transmute_copy(&sessiontimeout), core::mem::transmute_copy(&sessiontimeoutaction), core::mem::transmute_copy(&trustclass), core::mem::transmute_copy(&policyattributes)).into() } @@ -1208,19 +905,13 @@ impl ITSGAuthorizeConnectionSink_Vtbl { iid == &::IID } } -pub trait ITSGAuthorizeResourceSink_Impl: Sized { +pub trait ITSGAuthorizeResourceSink_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for ITSGAuthorizeResourceSink {} impl ITSGAuthorizeResourceSink_Vtbl { - pub const fn new() -> ITSGAuthorizeResourceSink_Vtbl - where - Identity: ITSGAuthorizeResourceSink_Impl, - { - unsafe extern "system" fn OnChannelAuthorized(this: *mut core::ffi::c_void, hrin: windows_core::HRESULT, mainsessionid: windows_core::GUID, subsessionid: i32, allowedresourcenames: *const core::mem::MaybeUninit, numallowedresourcenames: u32, failedresourcenames: *const core::mem::MaybeUninit, numfailedresourcenames: u32) -> windows_core::HRESULT - where - Identity: ITSGAuthorizeResourceSink_Impl, - { + pub const fn new() -> ITSGAuthorizeResourceSink_Vtbl { + unsafe extern "system" fn OnChannelAuthorized(this: *mut core::ffi::c_void, hrin: windows_core::HRESULT, mainsessionid: windows_core::GUID, subsessionid: i32, allowedresourcenames: *const core::mem::MaybeUninit, numallowedresourcenames: u32, failedresourcenames: *const core::mem::MaybeUninit, numfailedresourcenames: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGAuthorizeResourceSink_Impl::OnChannelAuthorized(this, 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() } @@ -1230,7 +921,7 @@ impl ITSGAuthorizeResourceSink_Vtbl { iid == &::IID } } -pub trait ITSGPolicyEngine_Impl: Sized { +pub trait ITSGPolicyEngine_Impl: Sized + windows_core::IUnknownImpl { 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: Option<&ITSGAuthorizeConnectionSink>) -> 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: Option<&ITSGAuthorizeResourceSink>) -> windows_core::Result<()>; fn Refresh(&self) -> windows_core::Result<()>; @@ -1238,21 +929,12 @@ pub trait ITSGPolicyEngine_Impl: Sized { } impl windows_core::RuntimeName for ITSGPolicyEngine {} impl ITSGPolicyEngine_Vtbl { - pub const fn new() -> ITSGPolicyEngine_Vtbl - where - Identity: ITSGPolicyEngine_Impl, - { - unsafe extern "system" fn AuthorizeConnection(this: *mut core::ffi::c_void, mainsessionid: windows_core::GUID, username: core::mem::MaybeUninit, authtype: AAAuthSchemes, clientmachineip: core::mem::MaybeUninit, clientmachinename: core::mem::MaybeUninit, 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 - where - Identity: ITSGPolicyEngine_Impl, - { + pub const fn new() -> ITSGPolicyEngine_Vtbl { + unsafe extern "system" fn AuthorizeConnection(this: *mut core::ffi::c_void, mainsessionid: windows_core::GUID, username: core::mem::MaybeUninit, authtype: AAAuthSchemes, clientmachineip: core::mem::MaybeUninit, clientmachinename: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGPolicyEngine_Impl::AuthorizeConnection(this, 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), windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn AuthorizeResource(this: *mut core::ffi::c_void, mainsessionid: windows_core::GUID, subsessionid: i32, username: core::mem::MaybeUninit, resourcenames: *const core::mem::MaybeUninit, numresources: u32, alternateresourcenames: *const core::mem::MaybeUninit, numalternateresourcename: u32, portnumber: u32, operation: core::mem::MaybeUninit, cookie: *const u8, numbytesincookie: u32, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSGPolicyEngine_Impl, - { + unsafe extern "system" fn AuthorizeResource(this: *mut core::ffi::c_void, mainsessionid: windows_core::GUID, subsessionid: i32, username: core::mem::MaybeUninit, resourcenames: *const core::mem::MaybeUninit, numresources: u32, alternateresourcenames: *const core::mem::MaybeUninit, numalternateresourcename: u32, portnumber: u32, operation: core::mem::MaybeUninit, cookie: *const u8, numbytesincookie: u32, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGPolicyEngine_Impl::AuthorizeResource( this, @@ -1271,17 +953,11 @@ impl ITSGPolicyEngine_Vtbl { ) .into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITSGPolicyEngine_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITSGPolicyEngine_Impl::Refresh(this).into() } - unsafe extern "system" fn IsQuarantineEnabled(this: *mut core::ffi::c_void, quarantineenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITSGPolicyEngine_Impl, - { + unsafe extern "system" fn IsQuarantineEnabled(this: *mut core::ffi::c_void, quarantineenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSGPolicyEngine_Impl::IsQuarantineEnabled(this) { Ok(ok__) => { @@ -1303,27 +979,18 @@ impl ITSGPolicyEngine_Vtbl { iid == &::IID } } -pub trait ITsSbBaseNotifySink_Impl: Sized { +pub trait ITsSbBaseNotifySink_Impl: Sized + windows_core::IUnknownImpl { fn OnError(&self, hrerror: windows_core::HRESULT) -> windows_core::Result<()>; fn OnReportStatus(&self, messagetype: CLIENT_MESSAGE_TYPE, messageid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITsSbBaseNotifySink {} impl ITsSbBaseNotifySink_Vtbl { - pub const fn new() -> ITsSbBaseNotifySink_Vtbl - where - Identity: ITsSbBaseNotifySink_Impl, - { - unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITsSbBaseNotifySink_Impl, - { + pub const fn new() -> ITsSbBaseNotifySink_Vtbl { + unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbBaseNotifySink_Impl::OnError(this, core::mem::transmute_copy(&hrerror)).into() } - unsafe extern "system" fn OnReportStatus(this: *mut core::ffi::c_void, messagetype: CLIENT_MESSAGE_TYPE, messageid: u32) -> windows_core::HRESULT - where - Identity: ITsSbBaseNotifySink_Impl, - { + unsafe extern "system" fn OnReportStatus(this: *mut core::ffi::c_void, messagetype: CLIENT_MESSAGE_TYPE, messageid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbBaseNotifySink_Impl::OnReportStatus(this, core::mem::transmute_copy(&messagetype), core::mem::transmute_copy(&messageid)).into() } @@ -1338,7 +1005,7 @@ impl ITsSbBaseNotifySink_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait ITsSbClientConnection_Impl: Sized { +pub trait ITsSbClientConnection_Impl: Sized + windows_core::IUnknownImpl { fn UserName(&self) -> windows_core::Result; fn Domain(&self) -> windows_core::Result; fn InitialProgram(&self) -> windows_core::Result; @@ -1359,14 +1026,8 @@ pub trait ITsSbClientConnection_Impl: Sized { impl windows_core::RuntimeName for ITsSbClientConnection {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbClientConnection_Vtbl { - pub const fn new() -> ITsSbClientConnection_Vtbl - where - Identity: ITsSbClientConnection_Impl, - { - unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + pub const fn new() -> ITsSbClientConnection_Vtbl { + unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::UserName(this) { Ok(ok__) => { @@ -1376,10 +1037,7 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Domain(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn Domain(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::Domain(this) { Ok(ok__) => { @@ -1389,10 +1047,7 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitialProgram(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn InitialProgram(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::InitialProgram(this) { Ok(ok__) => { @@ -1402,10 +1057,7 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadBalanceResult(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn LoadBalanceResult(this: *mut core::ffi::c_void, ppval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::LoadBalanceResult(this) { Ok(ok__) => { @@ -1415,10 +1067,7 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FarmName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn FarmName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::FarmName(this) { Ok(ok__) => { @@ -1428,17 +1077,11 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutContext(this: *mut core::ffi::c_void, contextid: core::mem::MaybeUninit, context: core::mem::MaybeUninit, existingcontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn PutContext(this: *mut core::ffi::c_void, contextid: core::mem::MaybeUninit, context: core::mem::MaybeUninit, existingcontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbClientConnection_Impl::PutContext(this, core::mem::transmute(&contextid), core::mem::transmute(&context), core::mem::transmute_copy(&existingcontext)).into() } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, contextid: core::mem::MaybeUninit, context: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, contextid: core::mem::MaybeUninit, context: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::GetContext(this, core::mem::transmute(&contextid)) { Ok(ok__) => { @@ -1448,10 +1091,7 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Environment(this: *mut core::ffi::c_void, ppenvironment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn Environment(this: *mut core::ffi::c_void, ppenvironment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::Environment(this) { Ok(ok__) => { @@ -1461,17 +1101,11 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_ConnectionError(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn get_ConnectionError(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbClientConnection_Impl::get_ConnectionError(this).into() } - unsafe extern "system" fn SamUserAccount(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn SamUserAccount(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::SamUserAccount(this) { Ok(ok__) => { @@ -1481,10 +1115,7 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClientConnectionPropertySet(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn ClientConnectionPropertySet(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::ClientConnectionPropertySet(this) { Ok(ok__) => { @@ -1494,10 +1125,7 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFirstAssignment(this: *mut core::ffi::c_void, ppval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn IsFirstAssignment(this: *mut core::ffi::c_void, ppval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::IsFirstAssignment(this) { Ok(ok__) => { @@ -1507,10 +1135,7 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RdFarmType(this: *mut core::ffi::c_void, prdfarmtype: *mut RD_FARM_TYPE) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn RdFarmType(this: *mut core::ffi::c_void, prdfarmtype: *mut RD_FARM_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::RdFarmType(this) { Ok(ok__) => { @@ -1520,10 +1145,7 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserSidString(this: *mut core::ffi::c_void, pszusersidstring: *mut *mut i8) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn UserSidString(this: *mut core::ffi::c_void, pszusersidstring: *mut *mut i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::UserSidString(this) { Ok(ok__) => { @@ -1533,10 +1155,7 @@ impl ITsSbClientConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisconnectedSession(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbClientConnection_Impl, - { + unsafe extern "system" fn GetDisconnectedSession(this: *mut core::ffi::c_void, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::GetDisconnectedSession(this) { Ok(ok__) => { @@ -1575,10 +1194,7 @@ pub trait ITsSbClientConnectionPropertySet_Impl: Sized + ITsSbPropertySet_Impl { impl windows_core::RuntimeName for ITsSbClientConnectionPropertySet {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbClientConnectionPropertySet_Vtbl { - pub const fn new() -> ITsSbClientConnectionPropertySet_Vtbl - where - Identity: ITsSbClientConnectionPropertySet_Impl, - { + pub const fn new() -> ITsSbClientConnectionPropertySet_Vtbl { Self { base__: ITsSbPropertySet_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1586,7 +1202,7 @@ impl ITsSbClientConnectionPropertySet_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait ITsSbEnvironment_Impl: Sized { +pub trait ITsSbEnvironment_Impl: Sized + windows_core::IUnknownImpl { fn Name(&self) -> windows_core::Result; fn ServerWeight(&self) -> windows_core::Result; fn EnvironmentPropertySet(&self) -> windows_core::Result; @@ -1596,14 +1212,8 @@ pub trait ITsSbEnvironment_Impl: Sized { impl windows_core::RuntimeName for ITsSbEnvironment {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbEnvironment_Vtbl { - pub const fn new() -> ITsSbEnvironment_Vtbl - where - Identity: ITsSbEnvironment_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbEnvironment_Impl, - { + pub const fn new() -> ITsSbEnvironment_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbEnvironment_Impl::Name(this) { Ok(ok__) => { @@ -1613,10 +1223,7 @@ impl ITsSbEnvironment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServerWeight(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT - where - Identity: ITsSbEnvironment_Impl, - { + unsafe extern "system" fn ServerWeight(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbEnvironment_Impl::ServerWeight(this) { Ok(ok__) => { @@ -1626,10 +1233,7 @@ impl ITsSbEnvironment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnvironmentPropertySet(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbEnvironment_Impl, - { + unsafe extern "system" fn EnvironmentPropertySet(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbEnvironment_Impl::EnvironmentPropertySet(this) { Ok(ok__) => { @@ -1639,10 +1243,7 @@ impl ITsSbEnvironment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnvironmentPropertySet(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbEnvironment_Impl, - { + unsafe extern "system" fn SetEnvironmentPropertySet(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbEnvironment_Impl::SetEnvironmentPropertySet(this, windows_core::from_raw_borrowed(&pval)).into() } @@ -1664,10 +1265,7 @@ pub trait ITsSbEnvironmentPropertySet_Impl: Sized + ITsSbPropertySet_Impl {} impl windows_core::RuntimeName for ITsSbEnvironmentPropertySet {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbEnvironmentPropertySet_Vtbl { - pub const fn new() -> ITsSbEnvironmentPropertySet_Vtbl - where - Identity: ITsSbEnvironmentPropertySet_Impl, - { + pub const fn new() -> ITsSbEnvironmentPropertySet_Vtbl { Self { base__: ITsSbPropertySet_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1675,7 +1273,7 @@ impl ITsSbEnvironmentPropertySet_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait ITsSbFilterPluginStore_Impl: Sized { +pub trait ITsSbFilterPluginStore_Impl: Sized + windows_core::IUnknownImpl { fn SaveProperties(&self, ppropertyset: Option<&ITsSbPropertySet>) -> windows_core::Result<()>; fn EnumerateProperties(&self) -> windows_core::Result; fn DeleteProperties(&self, propertyname: &windows_core::BSTR) -> windows_core::Result<()>; @@ -1684,21 +1282,12 @@ pub trait ITsSbFilterPluginStore_Impl: Sized { impl windows_core::RuntimeName for ITsSbFilterPluginStore {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbFilterPluginStore_Vtbl { - pub const fn new() -> ITsSbFilterPluginStore_Vtbl - where - Identity: ITsSbFilterPluginStore_Impl, - { - unsafe extern "system" fn SaveProperties(this: *mut core::ffi::c_void, ppropertyset: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbFilterPluginStore_Impl, - { + pub const fn new() -> ITsSbFilterPluginStore_Vtbl { + unsafe extern "system" fn SaveProperties(this: *mut core::ffi::c_void, ppropertyset: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbFilterPluginStore_Impl::SaveProperties(this, windows_core::from_raw_borrowed(&ppropertyset)).into() } - unsafe extern "system" fn EnumerateProperties(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbFilterPluginStore_Impl, - { + unsafe extern "system" fn EnumerateProperties(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbFilterPluginStore_Impl::EnumerateProperties(this) { Ok(ok__) => { @@ -1708,10 +1297,7 @@ impl ITsSbFilterPluginStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteProperties(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbFilterPluginStore_Impl, - { + unsafe extern "system" fn DeleteProperties(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbFilterPluginStore_Impl::DeleteProperties(this, core::mem::transmute(&propertyname)).into() } @@ -1726,27 +1312,18 @@ impl ITsSbFilterPluginStore_Vtbl { iid == &::IID } } -pub trait ITsSbGenericNotifySink_Impl: Sized { +pub trait ITsSbGenericNotifySink_Impl: Sized + windows_core::IUnknownImpl { fn OnCompleted(&self, status: windows_core::HRESULT) -> windows_core::Result<()>; fn GetWaitTimeout(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITsSbGenericNotifySink {} impl ITsSbGenericNotifySink_Vtbl { - pub const fn new() -> ITsSbGenericNotifySink_Vtbl - where - Identity: ITsSbGenericNotifySink_Impl, - { - unsafe extern "system" fn OnCompleted(this: *mut core::ffi::c_void, status: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITsSbGenericNotifySink_Impl, - { + pub const fn new() -> ITsSbGenericNotifySink_Vtbl { + unsafe extern "system" fn OnCompleted(this: *mut core::ffi::c_void, status: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbGenericNotifySink_Impl::OnCompleted(this, core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn GetWaitTimeout(this: *mut core::ffi::c_void, pfttimeout: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ITsSbGenericNotifySink_Impl, - { + unsafe extern "system" fn GetWaitTimeout(this: *mut core::ffi::c_void, pfttimeout: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbGenericNotifySink_Impl::GetWaitTimeout(this) { Ok(ok__) => { @@ -1767,7 +1344,7 @@ impl ITsSbGenericNotifySink_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITsSbGlobalStore_Impl: Sized { +pub trait ITsSbGlobalStore_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -1780,14 +1357,8 @@ pub trait ITsSbGlobalStore_Impl: Sized { impl windows_core::RuntimeName for ITsSbGlobalStore {} #[cfg(feature = "Win32_System_Com")] impl ITsSbGlobalStore_Vtbl { - pub const fn new() -> ITsSbGlobalStore_Vtbl - where - Identity: ITsSbGlobalStore_Impl, - { - unsafe extern "system" fn QueryTarget(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, targetname: core::mem::MaybeUninit, farmname: core::mem::MaybeUninit, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbGlobalStore_Impl, - { + pub const fn new() -> ITsSbGlobalStore_Vtbl { + unsafe extern "system" fn QueryTarget(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, targetname: core::mem::MaybeUninit, farmname: core::mem::MaybeUninit, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbGlobalStore_Impl::QueryTarget(this, core::mem::transmute(&providername), core::mem::transmute(&targetname), core::mem::transmute(&farmname)) { Ok(ok__) => { @@ -1797,10 +1368,7 @@ impl ITsSbGlobalStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QuerySessionBySessionId(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, dwsessionid: u32, targetname: core::mem::MaybeUninit, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbGlobalStore_Impl, - { + unsafe extern "system" fn QuerySessionBySessionId(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, dwsessionid: u32, targetname: core::mem::MaybeUninit, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbGlobalStore_Impl::QuerySessionBySessionId(this, core::mem::transmute(&providername), core::mem::transmute_copy(&dwsessionid), core::mem::transmute(&targetname)) { Ok(ok__) => { @@ -1810,38 +1378,23 @@ impl ITsSbGlobalStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateFarms(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITsSbGlobalStore_Impl, - { + unsafe extern "system" fn EnumerateFarms(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbGlobalStore_Impl::EnumerateFarms(this, core::mem::transmute(&providername), core::mem::transmute_copy(&pdwcount), core::mem::transmute_copy(&pval)).into() } - unsafe extern "system" fn EnumerateTargets(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, farmname: core::mem::MaybeUninit, envname: core::mem::MaybeUninit, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::HRESULT - where - Identity: ITsSbGlobalStore_Impl, - { + unsafe extern "system" fn EnumerateTargets(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, farmname: core::mem::MaybeUninit, envname: core::mem::MaybeUninit, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbGlobalStore_Impl::EnumerateTargets(this, 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(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::HRESULT - where - Identity: ITsSbGlobalStore_Impl, - { + unsafe extern "system" fn EnumerateEnvironmentsByProvider(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbGlobalStore_Impl::EnumerateEnvironmentsByProvider(this, core::mem::transmute(&providername), core::mem::transmute_copy(&pdwcount), core::mem::transmute_copy(&ppval)).into() } - unsafe extern "system" fn EnumerateSessions(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, targetname: core::mem::MaybeUninit, username: core::mem::MaybeUninit, userdomain: core::mem::MaybeUninit, poolname: core::mem::MaybeUninit, initialprogram: core::mem::MaybeUninit, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::HRESULT - where - Identity: ITsSbGlobalStore_Impl, - { + unsafe extern "system" fn EnumerateSessions(this: *mut core::ffi::c_void, providername: core::mem::MaybeUninit, targetname: core::mem::MaybeUninit, username: core::mem::MaybeUninit, userdomain: core::mem::MaybeUninit, poolname: core::mem::MaybeUninit, initialprogram: core::mem::MaybeUninit, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbGlobalStore_Impl::EnumerateSessions(this, 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(this: *mut core::ffi::c_void, farmname: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbGlobalStore_Impl, - { + unsafe extern "system" fn GetFarmProperty(this: *mut core::ffi::c_void, farmname: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbGlobalStore_Impl::GetFarmProperty(this, core::mem::transmute(&farmname), core::mem::transmute(&propertyname), core::mem::transmute_copy(&pvarvalue)).into() } @@ -1860,19 +1413,13 @@ impl ITsSbGlobalStore_Vtbl { iid == &::IID } } -pub trait ITsSbLoadBalanceResult_Impl: Sized { +pub trait ITsSbLoadBalanceResult_Impl: Sized + windows_core::IUnknownImpl { fn TargetName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITsSbLoadBalanceResult {} impl ITsSbLoadBalanceResult_Vtbl { - pub const fn new() -> ITsSbLoadBalanceResult_Vtbl - where - Identity: ITsSbLoadBalanceResult_Impl, - { - unsafe extern "system" fn TargetName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbLoadBalanceResult_Impl, - { + pub const fn new() -> ITsSbLoadBalanceResult_Vtbl { + unsafe extern "system" fn TargetName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbLoadBalanceResult_Impl::TargetName(this) { Ok(ok__) => { @@ -1896,14 +1443,8 @@ pub trait ITsSbLoadBalancing_Impl: Sized + ITsSbPlugin_Impl { impl windows_core::RuntimeName for ITsSbLoadBalancing {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbLoadBalancing_Vtbl { - pub const fn new() -> ITsSbLoadBalancing_Vtbl - where - Identity: ITsSbLoadBalancing_Impl, - { - unsafe extern "system" fn GetMostSuitableTarget(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, plbsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbLoadBalancing_Impl, - { + pub const fn new() -> ITsSbLoadBalancing_Vtbl { + unsafe extern "system" fn GetMostSuitableTarget(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, plbsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbLoadBalancing_Impl::GetMostSuitableTarget(this, windows_core::from_raw_borrowed(&pconnection), windows_core::from_raw_borrowed(&plbsink)).into() } @@ -1918,14 +1459,8 @@ pub trait ITsSbLoadBalancingNotifySink_Impl: Sized + ITsSbBaseNotifySink_Impl { } impl windows_core::RuntimeName for ITsSbLoadBalancingNotifySink {} impl ITsSbLoadBalancingNotifySink_Vtbl { - pub const fn new() -> ITsSbLoadBalancingNotifySink_Vtbl - where - Identity: ITsSbLoadBalancingNotifySink_Impl, - { - unsafe extern "system" fn OnGetMostSuitableTarget(this: *mut core::ffi::c_void, plbresult: *mut core::ffi::c_void, fisnewconnection: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITsSbLoadBalancingNotifySink_Impl, - { + pub const fn new() -> ITsSbLoadBalancingNotifySink_Vtbl { + unsafe extern "system" fn OnGetMostSuitableTarget(this: *mut core::ffi::c_void, plbresult: *mut core::ffi::c_void, fisnewconnection: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbLoadBalancingNotifySink_Impl::OnGetMostSuitableTarget(this, windows_core::from_raw_borrowed(&plbresult), core::mem::transmute_copy(&fisnewconnection)).into() } @@ -1943,14 +1478,8 @@ pub trait ITsSbOrchestration_Impl: Sized + ITsSbPlugin_Impl { impl windows_core::RuntimeName for ITsSbOrchestration {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbOrchestration_Vtbl { - pub const fn new() -> ITsSbOrchestration_Vtbl - where - Identity: ITsSbOrchestration_Impl, - { - unsafe extern "system" fn PrepareTargetForConnect(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, porchestrationnotifysink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbOrchestration_Impl, - { + pub const fn new() -> ITsSbOrchestration_Vtbl { + unsafe extern "system" fn PrepareTargetForConnect(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, porchestrationnotifysink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbOrchestration_Impl::PrepareTargetForConnect(this, windows_core::from_raw_borrowed(&pconnection), windows_core::from_raw_borrowed(&porchestrationnotifysink)).into() } @@ -1965,14 +1494,8 @@ pub trait ITsSbOrchestrationNotifySink_Impl: Sized + ITsSbBaseNotifySink_Impl { } impl windows_core::RuntimeName for ITsSbOrchestrationNotifySink {} impl ITsSbOrchestrationNotifySink_Vtbl { - pub const fn new() -> ITsSbOrchestrationNotifySink_Vtbl - where - Identity: ITsSbOrchestrationNotifySink_Impl, - { - unsafe extern "system" fn OnReadyToConnect(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbOrchestrationNotifySink_Impl, - { + pub const fn new() -> ITsSbOrchestrationNotifySink_Vtbl { + unsafe extern "system" fn OnReadyToConnect(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbOrchestrationNotifySink_Impl::OnReadyToConnect(this, windows_core::from_raw_borrowed(&ptarget)).into() } @@ -1990,14 +1513,8 @@ pub trait ITsSbPlacement_Impl: Sized + ITsSbPlugin_Impl { impl windows_core::RuntimeName for ITsSbPlacement {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbPlacement_Vtbl { - pub const fn new() -> ITsSbPlacement_Vtbl - where - Identity: ITsSbPlacement_Impl, - { - unsafe extern "system" fn QueryEnvironmentForTarget(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, pplacementsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbPlacement_Impl, - { + pub const fn new() -> ITsSbPlacement_Vtbl { + unsafe extern "system" fn QueryEnvironmentForTarget(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, pplacementsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbPlacement_Impl::QueryEnvironmentForTarget(this, windows_core::from_raw_borrowed(&pconnection), windows_core::from_raw_borrowed(&pplacementsink)).into() } @@ -2012,14 +1529,8 @@ pub trait ITsSbPlacementNotifySink_Impl: Sized + ITsSbBaseNotifySink_Impl { } impl windows_core::RuntimeName for ITsSbPlacementNotifySink {} impl ITsSbPlacementNotifySink_Vtbl { - pub const fn new() -> ITsSbPlacementNotifySink_Vtbl - where - Identity: ITsSbPlacementNotifySink_Impl, - { - unsafe extern "system" fn OnQueryEnvironmentCompleted(this: *mut core::ffi::c_void, penvironment: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbPlacementNotifySink_Impl, - { + pub const fn new() -> ITsSbPlacementNotifySink_Vtbl { + unsafe extern "system" fn OnQueryEnvironmentCompleted(this: *mut core::ffi::c_void, penvironment: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbPlacementNotifySink_Impl::OnQueryEnvironmentCompleted(this, windows_core::from_raw_borrowed(&penvironment)).into() } @@ -2030,7 +1541,7 @@ impl ITsSbPlacementNotifySink_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait ITsSbPlugin_Impl: Sized { +pub trait ITsSbPlugin_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pprovider: Option<&ITsSbProvider>, pnotifysink: Option<&ITsSbPluginNotifySink>, ppropertyset: Option<&ITsSbPluginPropertySet>) -> windows_core::Result<()>; fn Terminate(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; } @@ -2038,21 +1549,12 @@ pub trait ITsSbPlugin_Impl: Sized { impl windows_core::RuntimeName for ITsSbPlugin {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbPlugin_Vtbl { - pub const fn new() -> ITsSbPlugin_Vtbl - where - Identity: ITsSbPlugin_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void, pnotifysink: *mut core::ffi::c_void, ppropertyset: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbPlugin_Impl, - { + pub const fn new() -> ITsSbPlugin_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void, pnotifysink: *mut core::ffi::c_void, ppropertyset: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbPlugin_Impl::Initialize(this, windows_core::from_raw_borrowed(&pprovider), windows_core::from_raw_borrowed(&pnotifysink), windows_core::from_raw_borrowed(&ppropertyset)).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITsSbPlugin_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbPlugin_Impl::Terminate(this, core::mem::transmute_copy(&hr)).into() } @@ -2072,21 +1574,12 @@ pub trait ITsSbPluginNotifySink_Impl: Sized + ITsSbBaseNotifySink_Impl { } impl windows_core::RuntimeName for ITsSbPluginNotifySink {} impl ITsSbPluginNotifySink_Vtbl { - pub const fn new() -> ITsSbPluginNotifySink_Vtbl - where - Identity: ITsSbPluginNotifySink_Impl, - { - unsafe extern "system" fn OnInitialized(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITsSbPluginNotifySink_Impl, - { + pub const fn new() -> ITsSbPluginNotifySink_Vtbl { + unsafe extern "system" fn OnInitialized(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbPluginNotifySink_Impl::OnInitialized(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn OnTerminated(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbPluginNotifySink_Impl, - { + unsafe extern "system" fn OnTerminated(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbPluginNotifySink_Impl::OnTerminated(this).into() } @@ -2106,10 +1599,7 @@ pub trait ITsSbPluginPropertySet_Impl: Sized + ITsSbPropertySet_Impl {} impl windows_core::RuntimeName for ITsSbPluginPropertySet {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbPluginPropertySet_Vtbl { - pub const fn new() -> ITsSbPluginPropertySet_Vtbl - where - Identity: ITsSbPluginPropertySet_Impl, - { + pub const fn new() -> ITsSbPluginPropertySet_Vtbl { Self { base__: ITsSbPropertySet_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -2122,10 +1612,7 @@ pub trait ITsSbPropertySet_Impl: Sized + super::Com::StructuredStorage::IPropert impl windows_core::RuntimeName for ITsSbPropertySet {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbPropertySet_Vtbl { - pub const fn new() -> ITsSbPropertySet_Vtbl - where - Identity: ITsSbPropertySet_Impl, - { + pub const fn new() -> ITsSbPropertySet_Vtbl { Self { base__: super::Com::StructuredStorage::IPropertyBag_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -2133,7 +1620,7 @@ impl ITsSbPropertySet_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait ITsSbProvider_Impl: Sized { +pub trait ITsSbProvider_Impl: Sized + windows_core::IUnknownImpl { 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; @@ -2151,14 +1638,8 @@ pub trait ITsSbProvider_Impl: Sized { impl windows_core::RuntimeName for ITsSbProvider {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbProvider_Vtbl { - pub const fn new() -> ITsSbProvider_Vtbl - where - Identity: ITsSbProvider_Impl, - { - unsafe extern "system" fn CreateTargetObject(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, environmentname: core::mem::MaybeUninit, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + pub const fn new() -> ITsSbProvider_Vtbl { + unsafe extern "system" fn CreateTargetObject(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, environmentname: core::mem::MaybeUninit, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbProvider_Impl::CreateTargetObject(this, core::mem::transmute(&targetname), core::mem::transmute(&environmentname)) { Ok(ok__) => { @@ -2168,10 +1649,7 @@ impl ITsSbProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLoadBalanceResultObject(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, pplbresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn CreateLoadBalanceResultObject(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, pplbresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbProvider_Impl::CreateLoadBalanceResultObject(this, core::mem::transmute(&targetname)) { Ok(ok__) => { @@ -2181,10 +1659,7 @@ impl ITsSbProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSessionObject(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, username: core::mem::MaybeUninit, domain: core::mem::MaybeUninit, sessionid: u32, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn CreateSessionObject(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, username: core::mem::MaybeUninit, domain: core::mem::MaybeUninit, sessionid: u32, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbProvider_Impl::CreateSessionObject(this, core::mem::transmute(&targetname), core::mem::transmute(&username), core::mem::transmute(&domain), core::mem::transmute_copy(&sessionid)) { Ok(ok__) => { @@ -2194,10 +1669,7 @@ impl ITsSbProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePluginPropertySet(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn CreatePluginPropertySet(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbProvider_Impl::CreatePluginPropertySet(this) { Ok(ok__) => { @@ -2207,10 +1679,7 @@ impl ITsSbProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTargetPropertySetObject(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn CreateTargetPropertySetObject(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbProvider_Impl::CreateTargetPropertySetObject(this) { Ok(ok__) => { @@ -2220,10 +1689,7 @@ impl ITsSbProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEnvironmentObject(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, serverweight: u32, ppenvironment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn CreateEnvironmentObject(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, serverweight: u32, ppenvironment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbProvider_Impl::CreateEnvironmentObject(this, core::mem::transmute(&name), core::mem::transmute_copy(&serverweight)) { Ok(ok__) => { @@ -2233,10 +1699,7 @@ impl ITsSbProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResourcePluginStore(this: *mut core::ffi::c_void, ppstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn GetResourcePluginStore(this: *mut core::ffi::c_void, ppstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbProvider_Impl::GetResourcePluginStore(this) { Ok(ok__) => { @@ -2246,10 +1709,7 @@ impl ITsSbProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilterPluginStore(this: *mut core::ffi::c_void, ppstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn GetFilterPluginStore(this: *mut core::ffi::c_void, ppstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbProvider_Impl::GetFilterPluginStore(this) { Ok(ok__) => { @@ -2259,24 +1719,15 @@ impl ITsSbProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForNotification(this: *mut core::ffi::c_void, notificationtype: u32, resourcetomonitor: core::mem::MaybeUninit, ppluginnotification: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn RegisterForNotification(this: *mut core::ffi::c_void, notificationtype: u32, resourcetomonitor: core::mem::MaybeUninit, ppluginnotification: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvider_Impl::RegisterForNotification(this, core::mem::transmute_copy(¬ificationtype), core::mem::transmute(&resourcetomonitor), windows_core::from_raw_borrowed(&ppluginnotification)).into() } - unsafe extern "system" fn UnRegisterForNotification(this: *mut core::ffi::c_void, notificationtype: u32, resourcetomonitor: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn UnRegisterForNotification(this: *mut core::ffi::c_void, notificationtype: u32, resourcetomonitor: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvider_Impl::UnRegisterForNotification(this, core::mem::transmute_copy(¬ificationtype), core::mem::transmute(&resourcetomonitor)).into() } - unsafe extern "system" fn GetInstanceOfGlobalStore(this: *mut core::ffi::c_void, ppglobalstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn GetInstanceOfGlobalStore(this: *mut core::ffi::c_void, ppglobalstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbProvider_Impl::GetInstanceOfGlobalStore(this) { Ok(ok__) => { @@ -2286,10 +1737,7 @@ impl ITsSbProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEnvironmentPropertySetObject(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvider_Impl, - { + unsafe extern "system" fn CreateEnvironmentPropertySetObject(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbProvider_Impl::CreateEnvironmentPropertySetObject(this) { Ok(ok__) => { @@ -2330,35 +1778,20 @@ pub trait ITsSbProvisioning_Impl: Sized + ITsSbPlugin_Impl { impl windows_core::RuntimeName for ITsSbProvisioning {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbProvisioning_Vtbl { - pub const fn new() -> ITsSbProvisioning_Vtbl - where - Identity: ITsSbProvisioning_Impl, - { - unsafe extern "system" fn CreateVirtualMachines(this: *mut core::ffi::c_void, jobxmlstring: core::mem::MaybeUninit, jobguid: core::mem::MaybeUninit, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvisioning_Impl, - { + pub const fn new() -> ITsSbProvisioning_Vtbl { + unsafe extern "system" fn CreateVirtualMachines(this: *mut core::ffi::c_void, jobxmlstring: core::mem::MaybeUninit, jobguid: core::mem::MaybeUninit, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvisioning_Impl::CreateVirtualMachines(this, core::mem::transmute(&jobxmlstring), core::mem::transmute(&jobguid), windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn PatchVirtualMachines(this: *mut core::ffi::c_void, jobxmlstring: core::mem::MaybeUninit, jobguid: core::mem::MaybeUninit, psink: *mut core::ffi::c_void, pvmpatchinfo: *const VM_PATCH_INFO) -> windows_core::HRESULT - where - Identity: ITsSbProvisioning_Impl, - { + unsafe extern "system" fn PatchVirtualMachines(this: *mut core::ffi::c_void, jobxmlstring: core::mem::MaybeUninit, jobguid: core::mem::MaybeUninit, psink: *mut core::ffi::c_void, pvmpatchinfo: *const VM_PATCH_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvisioning_Impl::PatchVirtualMachines(this, core::mem::transmute(&jobxmlstring), core::mem::transmute(&jobguid), windows_core::from_raw_borrowed(&psink), core::mem::transmute_copy(&pvmpatchinfo)).into() } - unsafe extern "system" fn DeleteVirtualMachines(this: *mut core::ffi::c_void, jobxmlstring: core::mem::MaybeUninit, jobguid: core::mem::MaybeUninit, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvisioning_Impl, - { + unsafe extern "system" fn DeleteVirtualMachines(this: *mut core::ffi::c_void, jobxmlstring: core::mem::MaybeUninit, jobguid: core::mem::MaybeUninit, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvisioning_Impl::DeleteVirtualMachines(this, core::mem::transmute(&jobxmlstring), core::mem::transmute(&jobguid), windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn CancelJob(this: *mut core::ffi::c_void, jobguid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbProvisioning_Impl, - { + unsafe extern "system" fn CancelJob(this: *mut core::ffi::c_void, jobguid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvisioning_Impl::CancelJob(this, core::mem::transmute(&jobguid)).into() } @@ -2374,7 +1807,7 @@ impl ITsSbProvisioning_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITsSbProvisioningPluginNotifySink_Impl: Sized { +pub trait ITsSbProvisioningPluginNotifySink_Impl: Sized + windows_core::IUnknownImpl { 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: &windows_core::BSTR) -> windows_core::Result<()>; fn OnJobCompleted(&self, resultcode: windows_core::HRESULT, resultdescription: &windows_core::BSTR) -> windows_core::Result<()>; @@ -2384,49 +1817,28 @@ pub trait ITsSbProvisioningPluginNotifySink_Impl: Sized { } impl windows_core::RuntimeName for ITsSbProvisioningPluginNotifySink {} impl ITsSbProvisioningPluginNotifySink_Vtbl { - pub const fn new() -> ITsSbProvisioningPluginNotifySink_Vtbl - where - Identity: ITsSbProvisioningPluginNotifySink_Impl, - { - unsafe extern "system" fn OnJobCreated(this: *mut core::ffi::c_void, pvmnotifyinfo: *const VM_NOTIFY_INFO) -> windows_core::HRESULT - where - Identity: ITsSbProvisioningPluginNotifySink_Impl, - { + pub const fn new() -> ITsSbProvisioningPluginNotifySink_Vtbl { + unsafe extern "system" fn OnJobCreated(this: *mut core::ffi::c_void, pvmnotifyinfo: *const VM_NOTIFY_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvisioningPluginNotifySink_Impl::OnJobCreated(this, core::mem::transmute_copy(&pvmnotifyinfo)).into() } - unsafe extern "system" fn OnVirtualMachineStatusChanged(this: *mut core::ffi::c_void, pvmnotifyentry: *const VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: windows_core::HRESULT, errordescr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbProvisioningPluginNotifySink_Impl, - { + unsafe extern "system" fn OnVirtualMachineStatusChanged(this: *mut core::ffi::c_void, pvmnotifyentry: *const VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: windows_core::HRESULT, errordescr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvisioningPluginNotifySink_Impl::OnVirtualMachineStatusChanged(this, 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(this: *mut core::ffi::c_void, resultcode: windows_core::HRESULT, resultdescription: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbProvisioningPluginNotifySink_Impl, - { + unsafe extern "system" fn OnJobCompleted(this: *mut core::ffi::c_void, resultcode: windows_core::HRESULT, resultdescription: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvisioningPluginNotifySink_Impl::OnJobCompleted(this, core::mem::transmute_copy(&resultcode), core::mem::transmute(&resultdescription)).into() } - unsafe extern "system" fn OnJobCancelled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbProvisioningPluginNotifySink_Impl, - { + unsafe extern "system" fn OnJobCancelled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvisioningPluginNotifySink_Impl::OnJobCancelled(this).into() } - unsafe extern "system" fn LockVirtualMachine(this: *mut core::ffi::c_void, pvmnotifyentry: *const VM_NOTIFY_ENTRY) -> windows_core::HRESULT - where - Identity: ITsSbProvisioningPluginNotifySink_Impl, - { + unsafe extern "system" fn LockVirtualMachine(this: *mut core::ffi::c_void, pvmnotifyentry: *const VM_NOTIFY_ENTRY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvisioningPluginNotifySink_Impl::LockVirtualMachine(this, core::mem::transmute_copy(&pvmnotifyentry)).into() } - unsafe extern "system" fn OnVirtualMachineHostStatusChanged(this: *mut core::ffi::c_void, vmhost: core::mem::MaybeUninit, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: windows_core::HRESULT, errordescr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbProvisioningPluginNotifySink_Impl, - { + unsafe extern "system" fn OnVirtualMachineHostStatusChanged(this: *mut core::ffi::c_void, vmhost: core::mem::MaybeUninit, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: windows_core::HRESULT, errordescr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbProvisioningPluginNotifySink_Impl::OnVirtualMachineHostStatusChanged(this, core::mem::transmute(&vmhost), core::mem::transmute_copy(&vmhostnotifystatus), core::mem::transmute_copy(&errorcode), core::mem::transmute(&errordescr)).into() } @@ -2444,35 +1856,23 @@ impl ITsSbProvisioningPluginNotifySink_Vtbl { iid == &::IID } } -pub trait ITsSbResourceNotification_Impl: Sized { +pub trait ITsSbResourceNotification_Impl: Sized + windows_core::IUnknownImpl { fn NotifySessionChange(&self, changetype: TSSESSION_STATE, psession: Option<&ITsSbSession>) -> windows_core::Result<()>; fn NotifyTargetChange(&self, targetchangetype: u32, ptarget: Option<&ITsSbTarget>) -> windows_core::Result<()>; fn NotifyClientConnectionStateChange(&self, changetype: CONNECTION_CHANGE_NOTIFICATION, pconnection: Option<&ITsSbClientConnection>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITsSbResourceNotification {} impl ITsSbResourceNotification_Vtbl { - pub const fn new() -> ITsSbResourceNotification_Vtbl - where - Identity: ITsSbResourceNotification_Impl, - { - unsafe extern "system" fn NotifySessionChange(this: *mut core::ffi::c_void, changetype: TSSESSION_STATE, psession: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourceNotification_Impl, - { + pub const fn new() -> ITsSbResourceNotification_Vtbl { + unsafe extern "system" fn NotifySessionChange(this: *mut core::ffi::c_void, changetype: TSSESSION_STATE, psession: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourceNotification_Impl::NotifySessionChange(this, core::mem::transmute_copy(&changetype), windows_core::from_raw_borrowed(&psession)).into() } - unsafe extern "system" fn NotifyTargetChange(this: *mut core::ffi::c_void, targetchangetype: u32, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourceNotification_Impl, - { + unsafe extern "system" fn NotifyTargetChange(this: *mut core::ffi::c_void, targetchangetype: u32, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourceNotification_Impl::NotifyTargetChange(this, core::mem::transmute_copy(&targetchangetype), windows_core::from_raw_borrowed(&ptarget)).into() } - unsafe extern "system" fn NotifyClientConnectionStateChange(this: *mut core::ffi::c_void, changetype: CONNECTION_CHANGE_NOTIFICATION, pconnection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourceNotification_Impl, - { + unsafe extern "system" fn NotifyClientConnectionStateChange(this: *mut core::ffi::c_void, changetype: CONNECTION_CHANGE_NOTIFICATION, pconnection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourceNotification_Impl::NotifyClientConnectionStateChange(this, core::mem::transmute_copy(&changetype), windows_core::from_raw_borrowed(&pconnection)).into() } @@ -2487,35 +1887,23 @@ impl ITsSbResourceNotification_Vtbl { iid == &::IID } } -pub trait ITsSbResourceNotificationEx_Impl: Sized { +pub trait ITsSbResourceNotificationEx_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for ITsSbResourceNotificationEx {} impl ITsSbResourceNotificationEx_Vtbl { - pub const fn new() -> ITsSbResourceNotificationEx_Vtbl - where - Identity: ITsSbResourceNotificationEx_Impl, - { - unsafe extern "system" fn NotifySessionChangeEx(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, username: core::mem::MaybeUninit, domain: core::mem::MaybeUninit, sessionid: u32, sessionstate: TSSESSION_STATE) -> windows_core::HRESULT - where - Identity: ITsSbResourceNotificationEx_Impl, - { + pub const fn new() -> ITsSbResourceNotificationEx_Vtbl { + unsafe extern "system" fn NotifySessionChangeEx(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, username: core::mem::MaybeUninit, domain: core::mem::MaybeUninit, sessionid: u32, sessionstate: TSSESSION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourceNotificationEx_Impl::NotifySessionChangeEx(this, 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(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, targetchangetype: u32) -> windows_core::HRESULT - where - Identity: ITsSbResourceNotificationEx_Impl, - { + unsafe extern "system" fn NotifyTargetChangeEx(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, targetchangetype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourceNotificationEx_Impl::NotifyTargetChangeEx(this, core::mem::transmute(&targetname), core::mem::transmute_copy(&targetchangetype)).into() } - unsafe extern "system" fn NotifyClientConnectionStateChangeEx(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, domain: core::mem::MaybeUninit, initialprogram: core::mem::MaybeUninit, poolname: core::mem::MaybeUninit, targetname: core::mem::MaybeUninit, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> windows_core::HRESULT - where - Identity: ITsSbResourceNotificationEx_Impl, - { + unsafe extern "system" fn NotifyClientConnectionStateChangeEx(this: *mut core::ffi::c_void, username: core::mem::MaybeUninit, domain: core::mem::MaybeUninit, initialprogram: core::mem::MaybeUninit, poolname: core::mem::MaybeUninit, targetname: core::mem::MaybeUninit, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourceNotificationEx_Impl::NotifyClientConnectionStateChangeEx(this, 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() } @@ -2536,10 +1924,7 @@ pub trait ITsSbResourcePlugin_Impl: Sized + ITsSbPlugin_Impl {} impl windows_core::RuntimeName for ITsSbResourcePlugin {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbResourcePlugin_Vtbl { - pub const fn new() -> ITsSbResourcePlugin_Vtbl - where - Identity: ITsSbResourcePlugin_Impl, - { + pub const fn new() -> ITsSbResourcePlugin_Vtbl { Self { base__: ITsSbPlugin_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -2547,7 +1932,7 @@ impl ITsSbResourcePlugin_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITsSbResourcePluginStore_Impl: Sized { +pub trait ITsSbResourcePluginStore_Impl: Sized + windows_core::IUnknownImpl { 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: Option<&ITsSbTarget>) -> windows_core::Result<()>; @@ -2581,14 +1966,8 @@ pub trait ITsSbResourcePluginStore_Impl: Sized { impl windows_core::RuntimeName for ITsSbResourcePluginStore {} #[cfg(feature = "Win32_System_Com")] impl ITsSbResourcePluginStore_Vtbl { - pub const fn new() -> ITsSbResourcePluginStore_Vtbl - where - Identity: ITsSbResourcePluginStore_Impl, - { - unsafe extern "system" fn QueryTarget(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, farmname: core::mem::MaybeUninit, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + pub const fn new() -> ITsSbResourcePluginStore_Vtbl { + unsafe extern "system" fn QueryTarget(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, farmname: core::mem::MaybeUninit, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbResourcePluginStore_Impl::QueryTarget(this, core::mem::transmute(&targetname), core::mem::transmute(&farmname)) { Ok(ok__) => { @@ -2598,10 +1977,7 @@ impl ITsSbResourcePluginStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QuerySessionBySessionId(this: *mut core::ffi::c_void, dwsessionid: u32, targetname: core::mem::MaybeUninit, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn QuerySessionBySessionId(this: *mut core::ffi::c_void, dwsessionid: u32, targetname: core::mem::MaybeUninit, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbResourcePluginStore_Impl::QuerySessionBySessionId(this, core::mem::transmute_copy(&dwsessionid), core::mem::transmute(&targetname)) { Ok(ok__) => { @@ -2611,45 +1987,27 @@ impl ITsSbResourcePluginStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTargetToStore(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn AddTargetToStore(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::AddTargetToStore(this, windows_core::from_raw_borrowed(&ptarget)).into() } - unsafe extern "system" fn AddSessionToStore(this: *mut core::ffi::c_void, psession: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn AddSessionToStore(this: *mut core::ffi::c_void, psession: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::AddSessionToStore(this, windows_core::from_raw_borrowed(&psession)).into() } - unsafe extern "system" fn AddEnvironmentToStore(this: *mut core::ffi::c_void, penvironment: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn AddEnvironmentToStore(this: *mut core::ffi::c_void, penvironment: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::AddEnvironmentToStore(this, windows_core::from_raw_borrowed(&penvironment)).into() } - unsafe extern "system" fn RemoveEnvironmentFromStore(this: *mut core::ffi::c_void, environmentname: core::mem::MaybeUninit, bignoreowner: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn RemoveEnvironmentFromStore(this: *mut core::ffi::c_void, environmentname: core::mem::MaybeUninit, bignoreowner: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::RemoveEnvironmentFromStore(this, core::mem::transmute(&environmentname), core::mem::transmute_copy(&bignoreowner)).into() } - unsafe extern "system" fn EnumerateFarms(this: *mut core::ffi::c_void, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn EnumerateFarms(this: *mut core::ffi::c_void, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::EnumerateFarms(this, core::mem::transmute_copy(&pdwcount), core::mem::transmute_copy(&pval)).into() } - unsafe extern "system" fn QueryEnvironment(this: *mut core::ffi::c_void, environmentname: core::mem::MaybeUninit, ppenvironment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn QueryEnvironment(this: *mut core::ffi::c_void, environmentname: core::mem::MaybeUninit, ppenvironment: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbResourcePluginStore_Impl::QueryEnvironment(this, core::mem::transmute(&environmentname)) { Ok(ok__) => { @@ -2659,52 +2017,31 @@ impl ITsSbResourcePluginStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateEnvironments(this: *mut core::ffi::c_void, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn EnumerateEnvironments(this: *mut core::ffi::c_void, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::EnumerateEnvironments(this, core::mem::transmute_copy(&pdwcount), core::mem::transmute_copy(&pval)).into() } - unsafe extern "system" fn SaveTarget(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void, bforcewrite: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SaveTarget(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void, bforcewrite: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SaveTarget(this, windows_core::from_raw_borrowed(&ptarget), core::mem::transmute_copy(&bforcewrite)).into() } - unsafe extern "system" fn SaveEnvironment(this: *mut core::ffi::c_void, penvironment: *mut core::ffi::c_void, bforcewrite: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SaveEnvironment(this: *mut core::ffi::c_void, penvironment: *mut core::ffi::c_void, bforcewrite: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SaveEnvironment(this, windows_core::from_raw_borrowed(&penvironment), core::mem::transmute_copy(&bforcewrite)).into() } - unsafe extern "system" fn SaveSession(this: *mut core::ffi::c_void, psession: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SaveSession(this: *mut core::ffi::c_void, psession: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SaveSession(this, windows_core::from_raw_borrowed(&psession)).into() } - unsafe extern "system" fn SetTargetProperty(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, pproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SetTargetProperty(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, pproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SetTargetProperty(this, core::mem::transmute(&targetname), core::mem::transmute(&propertyname), core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn SetEnvironmentProperty(this: *mut core::ffi::c_void, environmentname: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, pproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SetEnvironmentProperty(this: *mut core::ffi::c_void, environmentname: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, pproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SetEnvironmentProperty(this, core::mem::transmute(&environmentname), core::mem::transmute(&propertyname), core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn SetTargetState(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, newstate: TARGET_STATE, poldstate: *mut TARGET_STATE) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SetTargetState(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, newstate: TARGET_STATE, poldstate: *mut TARGET_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbResourcePluginStore_Impl::SetTargetState(this, core::mem::transmute(&targetname), core::mem::transmute_copy(&newstate)) { Ok(ok__) => { @@ -2714,59 +2051,35 @@ impl ITsSbResourcePluginStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSessionState(this: *mut core::ffi::c_void, sbsession: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SetSessionState(this: *mut core::ffi::c_void, sbsession: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SetSessionState(this, windows_core::from_raw_borrowed(&sbsession)).into() } - unsafe extern "system" fn EnumerateTargets(this: *mut core::ffi::c_void, farmname: core::mem::MaybeUninit, envname: core::mem::MaybeUninit, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: core::mem::MaybeUninit, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn EnumerateTargets(this: *mut core::ffi::c_void, farmname: core::mem::MaybeUninit, envname: core::mem::MaybeUninit, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: core::mem::MaybeUninit, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::EnumerateTargets(this, 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(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, username: core::mem::MaybeUninit, userdomain: core::mem::MaybeUninit, poolname: core::mem::MaybeUninit, initialprogram: core::mem::MaybeUninit, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn EnumerateSessions(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, username: core::mem::MaybeUninit, userdomain: core::mem::MaybeUninit, poolname: core::mem::MaybeUninit, initialprogram: core::mem::MaybeUninit, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut Option) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::EnumerateSessions(this, 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(this: *mut core::ffi::c_void, farmname: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn GetFarmProperty(this: *mut core::ffi::c_void, farmname: core::mem::MaybeUninit, propertyname: core::mem::MaybeUninit, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::GetFarmProperty(this, core::mem::transmute(&farmname), core::mem::transmute(&propertyname), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn DeleteTarget(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, hostname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn DeleteTarget(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, hostname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::DeleteTarget(this, core::mem::transmute(&targetname), core::mem::transmute(&hostname)).into() } - unsafe extern "system" fn SetTargetPropertyWithVersionCheck(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, pproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SetTargetPropertyWithVersionCheck(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, pproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SetTargetPropertyWithVersionCheck(this, windows_core::from_raw_borrowed(&ptarget), core::mem::transmute(&propertyname), core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn SetEnvironmentPropertyWithVersionCheck(this: *mut core::ffi::c_void, penvironment: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, pproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SetEnvironmentPropertyWithVersionCheck(this: *mut core::ffi::c_void, penvironment: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, pproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SetEnvironmentPropertyWithVersionCheck(this, windows_core::from_raw_borrowed(&penvironment), core::mem::transmute(&propertyname), core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn AcquireTargetLock(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, dwtimeout: u32, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn AcquireTargetLock(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit, dwtimeout: u32, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbResourcePluginStore_Impl::AcquireTargetLock(this, core::mem::transmute(&targetname), core::mem::transmute_copy(&dwtimeout)) { Ok(ok__) => { @@ -2776,17 +2089,11 @@ impl ITsSbResourcePluginStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseTargetLock(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn ReleaseTargetLock(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::ReleaseTargetLock(this, windows_core::from_raw_borrowed(&pcontext)).into() } - unsafe extern "system" fn TestAndSetServerState(this: *mut core::ffi::c_void, poolname: core::mem::MaybeUninit, serverfqdn: core::mem::MaybeUninit, newstate: TARGET_STATE, teststate: TARGET_STATE, pinitstate: *mut TARGET_STATE) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn TestAndSetServerState(this: *mut core::ffi::c_void, poolname: core::mem::MaybeUninit, serverfqdn: core::mem::MaybeUninit, newstate: TARGET_STATE, teststate: TARGET_STATE, pinitstate: *mut TARGET_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbResourcePluginStore_Impl::TestAndSetServerState(this, core::mem::transmute(&poolname), core::mem::transmute(&serverfqdn), core::mem::transmute_copy(&newstate), core::mem::transmute_copy(&teststate)) { Ok(ok__) => { @@ -2796,17 +2103,11 @@ impl ITsSbResourcePluginStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerWaitingToStart(this: *mut core::ffi::c_void, poolname: core::mem::MaybeUninit, servername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SetServerWaitingToStart(this: *mut core::ffi::c_void, poolname: core::mem::MaybeUninit, servername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SetServerWaitingToStart(this, core::mem::transmute(&poolname), core::mem::transmute(&servername)).into() } - unsafe extern "system" fn GetServerState(this: *mut core::ffi::c_void, poolname: core::mem::MaybeUninit, serverfqdn: core::mem::MaybeUninit, pstate: *mut TARGET_STATE) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn GetServerState(this: *mut core::ffi::c_void, poolname: core::mem::MaybeUninit, serverfqdn: core::mem::MaybeUninit, pstate: *mut TARGET_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbResourcePluginStore_Impl::GetServerState(this, core::mem::transmute(&poolname), core::mem::transmute(&serverfqdn)) { Ok(ok__) => { @@ -2816,10 +2117,7 @@ impl ITsSbResourcePluginStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerDrainMode(this: *mut core::ffi::c_void, serverfqdn: core::mem::MaybeUninit, drainmode: u32) -> windows_core::HRESULT - where - Identity: ITsSbResourcePluginStore_Impl, - { + unsafe extern "system" fn SetServerDrainMode(this: *mut core::ffi::c_void, serverfqdn: core::mem::MaybeUninit, drainmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SetServerDrainMode(this, core::mem::transmute(&serverfqdn), core::mem::transmute_copy(&drainmode)).into() } @@ -2859,27 +2157,18 @@ impl ITsSbResourcePluginStore_Vtbl { iid == &::IID } } -pub trait ITsSbServiceNotification_Impl: Sized { +pub trait ITsSbServiceNotification_Impl: Sized + windows_core::IUnknownImpl { fn NotifyServiceFailure(&self) -> windows_core::Result<()>; fn NotifyServiceSuccess(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITsSbServiceNotification {} impl ITsSbServiceNotification_Vtbl { - pub const fn new() -> ITsSbServiceNotification_Vtbl - where - Identity: ITsSbServiceNotification_Impl, - { - unsafe extern "system" fn NotifyServiceFailure(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbServiceNotification_Impl, - { + pub const fn new() -> ITsSbServiceNotification_Vtbl { + unsafe extern "system" fn NotifyServiceFailure(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbServiceNotification_Impl::NotifyServiceFailure(this).into() } - unsafe extern "system" fn NotifyServiceSuccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbServiceNotification_Impl, - { + unsafe extern "system" fn NotifyServiceSuccess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbServiceNotification_Impl::NotifyServiceSuccess(this).into() } @@ -2893,7 +2182,7 @@ impl ITsSbServiceNotification_Vtbl { iid == &::IID } } -pub trait ITsSbSession_Impl: Sized { +pub trait ITsSbSession_Impl: Sized + windows_core::IUnknownImpl { fn SessionId(&self) -> windows_core::Result; fn TargetName(&self) -> windows_core::Result; fn SetTargetName(&self, targetname: &windows_core::BSTR) -> windows_core::Result<()>; @@ -2914,14 +2203,8 @@ pub trait ITsSbSession_Impl: Sized { } impl windows_core::RuntimeName for ITsSbSession {} impl ITsSbSession_Vtbl { - pub const fn new() -> ITsSbSession_Vtbl - where - Identity: ITsSbSession_Impl, - { - unsafe extern "system" fn SessionId(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + pub const fn new() -> ITsSbSession_Vtbl { + unsafe extern "system" fn SessionId(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbSession_Impl::SessionId(this) { Ok(ok__) => { @@ -2931,10 +2214,7 @@ impl ITsSbSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TargetName(this: *mut core::ffi::c_void, targetname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn TargetName(this: *mut core::ffi::c_void, targetname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbSession_Impl::TargetName(this) { Ok(ok__) => { @@ -2944,17 +2224,11 @@ impl ITsSbSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetName(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn SetTargetName(this: *mut core::ffi::c_void, targetname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbSession_Impl::SetTargetName(this, core::mem::transmute(&targetname)).into() } - unsafe extern "system" fn Username(this: *mut core::ffi::c_void, username: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn Username(this: *mut core::ffi::c_void, username: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbSession_Impl::Username(this) { Ok(ok__) => { @@ -2964,10 +2238,7 @@ impl ITsSbSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Domain(this: *mut core::ffi::c_void, domain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn Domain(this: *mut core::ffi::c_void, domain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbSession_Impl::Domain(this) { Ok(ok__) => { @@ -2977,10 +2248,7 @@ impl ITsSbSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut TSSESSION_STATE) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut TSSESSION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbSession_Impl::State(this) { Ok(ok__) => { @@ -2990,17 +2258,11 @@ impl ITsSbSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: TSSESSION_STATE) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, state: TSSESSION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbSession_Impl::SetState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn CreateTime(this: *mut core::ffi::c_void, ptime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn CreateTime(this: *mut core::ffi::c_void, ptime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbSession_Impl::CreateTime(this) { Ok(ok__) => { @@ -3010,17 +2272,11 @@ impl ITsSbSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCreateTime(this: *mut core::ffi::c_void, time: super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn SetCreateTime(this: *mut core::ffi::c_void, time: super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbSession_Impl::SetCreateTime(this, core::mem::transmute(&time)).into() } - unsafe extern "system" fn DisconnectTime(this: *mut core::ffi::c_void, ptime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn DisconnectTime(this: *mut core::ffi::c_void, ptime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbSession_Impl::DisconnectTime(this) { Ok(ok__) => { @@ -3030,17 +2286,11 @@ impl ITsSbSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisconnectTime(this: *mut core::ffi::c_void, time: super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn SetDisconnectTime(this: *mut core::ffi::c_void, time: super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbSession_Impl::SetDisconnectTime(this, core::mem::transmute(&time)).into() } - unsafe extern "system" fn InitialProgram(this: *mut core::ffi::c_void, app: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn InitialProgram(this: *mut core::ffi::c_void, app: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbSession_Impl::InitialProgram(this) { Ok(ok__) => { @@ -3050,17 +2300,11 @@ impl ITsSbSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialProgram(this: *mut core::ffi::c_void, application: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn SetInitialProgram(this: *mut core::ffi::c_void, application: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbSession_Impl::SetInitialProgram(this, core::mem::transmute(&application)).into() } - unsafe extern "system" fn ClientDisplay(this: *mut core::ffi::c_void, pclientdisplay: *mut CLIENT_DISPLAY) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn ClientDisplay(this: *mut core::ffi::c_void, pclientdisplay: *mut CLIENT_DISPLAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbSession_Impl::ClientDisplay(this) { Ok(ok__) => { @@ -3070,17 +2314,11 @@ impl ITsSbSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientDisplay(this: *mut core::ffi::c_void, pclientdisplay: CLIENT_DISPLAY) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn SetClientDisplay(this: *mut core::ffi::c_void, pclientdisplay: CLIENT_DISPLAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbSession_Impl::SetClientDisplay(this, core::mem::transmute(&pclientdisplay)).into() } - unsafe extern "system" fn ProtocolType(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn ProtocolType(this: *mut core::ffi::c_void, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbSession_Impl::ProtocolType(this) { Ok(ok__) => { @@ -3090,10 +2328,7 @@ impl ITsSbSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProtocolType(this: *mut core::ffi::c_void, val: u32) -> windows_core::HRESULT - where - Identity: ITsSbSession_Impl, - { + unsafe extern "system" fn SetProtocolType(this: *mut core::ffi::c_void, val: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbSession_Impl::SetProtocolType(this, core::mem::transmute_copy(&val)).into() } @@ -3123,7 +2358,7 @@ impl ITsSbSession_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait ITsSbTarget_Impl: Sized { +pub trait ITsSbTarget_Impl: Sized + windows_core::IUnknownImpl { fn TargetName(&self) -> windows_core::Result; fn SetTargetName(&self, val: &windows_core::BSTR) -> windows_core::Result<()>; fn FarmName(&self) -> windows_core::Result; @@ -3148,14 +2383,8 @@ pub trait ITsSbTarget_Impl: Sized { impl windows_core::RuntimeName for ITsSbTarget {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbTarget_Vtbl { - pub const fn new() -> ITsSbTarget_Vtbl - where - Identity: ITsSbTarget_Impl, - { - unsafe extern "system" fn TargetName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + pub const fn new() -> ITsSbTarget_Vtbl { + unsafe extern "system" fn TargetName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTarget_Impl::TargetName(this) { Ok(ok__) => { @@ -3165,17 +2394,11 @@ impl ITsSbTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetName(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn SetTargetName(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTarget_Impl::SetTargetName(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn FarmName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn FarmName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTarget_Impl::FarmName(this) { Ok(ok__) => { @@ -3185,17 +2408,11 @@ impl ITsSbTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFarmName(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn SetFarmName(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTarget_Impl::SetFarmName(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn TargetFQDN(this: *mut core::ffi::c_void, targetfqdnname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn TargetFQDN(this: *mut core::ffi::c_void, targetfqdnname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTarget_Impl::TargetFQDN(this) { Ok(ok__) => { @@ -3205,17 +2422,11 @@ impl ITsSbTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetFQDN(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn SetTargetFQDN(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTarget_Impl::SetTargetFQDN(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn TargetNetbios(this: *mut core::ffi::c_void, targetnetbiosname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn TargetNetbios(this: *mut core::ffi::c_void, targetnetbiosname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTarget_Impl::TargetNetbios(this) { Ok(ok__) => { @@ -3225,31 +2436,19 @@ impl ITsSbTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetNetbios(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn SetTargetNetbios(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTarget_Impl::SetTargetNetbios(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn get_IpAddresses(this: *mut core::ffi::c_void, sockaddr: *mut TSSD_ConnectionPoint, numaddresses: *mut u32) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn get_IpAddresses(this: *mut core::ffi::c_void, sockaddr: *mut TSSD_ConnectionPoint, numaddresses: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTarget_Impl::get_IpAddresses(this, core::mem::transmute_copy(&sockaddr), core::mem::transmute_copy(&numaddresses)).into() } - unsafe extern "system" fn put_IpAddresses(this: *mut core::ffi::c_void, sockaddr: *const TSSD_ConnectionPoint, numaddresses: u32) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn put_IpAddresses(this: *mut core::ffi::c_void, sockaddr: *const TSSD_ConnectionPoint, numaddresses: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTarget_Impl::put_IpAddresses(this, core::mem::transmute_copy(&sockaddr), core::mem::transmute_copy(&numaddresses)).into() } - unsafe extern "system" fn TargetState(this: *mut core::ffi::c_void, pstate: *mut TARGET_STATE) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn TargetState(this: *mut core::ffi::c_void, pstate: *mut TARGET_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTarget_Impl::TargetState(this) { Ok(ok__) => { @@ -3259,17 +2458,11 @@ impl ITsSbTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetState(this: *mut core::ffi::c_void, state: TARGET_STATE) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn SetTargetState(this: *mut core::ffi::c_void, state: TARGET_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTarget_Impl::SetTargetState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn TargetPropertySet(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn TargetPropertySet(this: *mut core::ffi::c_void, pppropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTarget_Impl::TargetPropertySet(this) { Ok(ok__) => { @@ -3279,17 +2472,11 @@ impl ITsSbTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetPropertySet(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn SetTargetPropertySet(this: *mut core::ffi::c_void, pval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTarget_Impl::SetTargetPropertySet(this, windows_core::from_raw_borrowed(&pval)).into() } - unsafe extern "system" fn EnvironmentName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn EnvironmentName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTarget_Impl::EnvironmentName(this) { Ok(ok__) => { @@ -3299,17 +2486,11 @@ impl ITsSbTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnvironmentName(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn SetEnvironmentName(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTarget_Impl::SetEnvironmentName(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn NumSessions(this: *mut core::ffi::c_void, pnumsessions: *mut u32) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn NumSessions(this: *mut core::ffi::c_void, pnumsessions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTarget_Impl::NumSessions(this) { Ok(ok__) => { @@ -3319,10 +2500,7 @@ impl ITsSbTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumPendingConnections(this: *mut core::ffi::c_void, pnumpendingconnections: *mut u32) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn NumPendingConnections(this: *mut core::ffi::c_void, pnumpendingconnections: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTarget_Impl::NumPendingConnections(this) { Ok(ok__) => { @@ -3332,10 +2510,7 @@ impl ITsSbTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TargetLoad(this: *mut core::ffi::c_void, ptargetload: *mut u32) -> windows_core::HRESULT - where - Identity: ITsSbTarget_Impl, - { + unsafe extern "system" fn TargetLoad(this: *mut core::ffi::c_void, ptargetload: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTarget_Impl::TargetLoad(this) { Ok(ok__) => { @@ -3378,10 +2553,7 @@ pub trait ITsSbTargetPropertySet_Impl: Sized + ITsSbPropertySet_Impl {} impl windows_core::RuntimeName for ITsSbTargetPropertySet {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbTargetPropertySet_Vtbl { - pub const fn new() -> ITsSbTargetPropertySet_Vtbl - where - Identity: ITsSbTargetPropertySet_Impl, - { + pub const fn new() -> ITsSbTargetPropertySet_Vtbl { Self { base__: ITsSbPropertySet_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -3389,7 +2561,7 @@ impl ITsSbTargetPropertySet_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITsSbTaskInfo_Impl: Sized { +pub trait ITsSbTaskInfo_Impl: Sized + windows_core::IUnknownImpl { fn TargetId(&self) -> windows_core::Result; fn StartTime(&self) -> windows_core::Result; fn EndTime(&self) -> windows_core::Result; @@ -3404,14 +2576,8 @@ pub trait ITsSbTaskInfo_Impl: Sized { impl windows_core::RuntimeName for ITsSbTaskInfo {} #[cfg(feature = "Win32_System_Com")] impl ITsSbTaskInfo_Vtbl { - pub const fn new() -> ITsSbTaskInfo_Vtbl - where - Identity: ITsSbTaskInfo_Impl, - { - unsafe extern "system" fn TargetId(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTaskInfo_Impl, - { + pub const fn new() -> ITsSbTaskInfo_Vtbl { + unsafe extern "system" fn TargetId(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTaskInfo_Impl::TargetId(this) { Ok(ok__) => { @@ -3421,10 +2587,7 @@ impl ITsSbTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, pstarttime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ITsSbTaskInfo_Impl, - { + unsafe extern "system" fn StartTime(this: *mut core::ffi::c_void, pstarttime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTaskInfo_Impl::StartTime(this) { Ok(ok__) => { @@ -3434,10 +2597,7 @@ impl ITsSbTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndTime(this: *mut core::ffi::c_void, pendtime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ITsSbTaskInfo_Impl, - { + unsafe extern "system" fn EndTime(this: *mut core::ffi::c_void, pendtime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTaskInfo_Impl::EndTime(this) { Ok(ok__) => { @@ -3447,10 +2607,7 @@ impl ITsSbTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Deadline(this: *mut core::ffi::c_void, pdeadline: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ITsSbTaskInfo_Impl, - { + unsafe extern "system" fn Deadline(this: *mut core::ffi::c_void, pdeadline: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTaskInfo_Impl::Deadline(this) { Ok(ok__) => { @@ -3460,10 +2617,7 @@ impl ITsSbTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Identifier(this: *mut core::ffi::c_void, pidentifier: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTaskInfo_Impl, - { + unsafe extern "system" fn Identifier(this: *mut core::ffi::c_void, pidentifier: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTaskInfo_Impl::Identifier(this) { Ok(ok__) => { @@ -3473,10 +2627,7 @@ impl ITsSbTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Label(this: *mut core::ffi::c_void, plabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTaskInfo_Impl, - { + unsafe extern "system" fn Label(this: *mut core::ffi::c_void, plabel: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTaskInfo_Impl::Label(this) { Ok(ok__) => { @@ -3486,10 +2637,7 @@ impl ITsSbTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Context(this: *mut core::ffi::c_void, pcontext: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITsSbTaskInfo_Impl, - { + unsafe extern "system" fn Context(this: *mut core::ffi::c_void, pcontext: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTaskInfo_Impl::Context(this) { Ok(ok__) => { @@ -3499,10 +2647,7 @@ impl ITsSbTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Plugin(this: *mut core::ffi::c_void, pplugin: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTaskInfo_Impl, - { + unsafe extern "system" fn Plugin(this: *mut core::ffi::c_void, pplugin: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTaskInfo_Impl::Plugin(this) { Ok(ok__) => { @@ -3512,10 +2657,7 @@ impl ITsSbTaskInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut RDV_TASK_STATUS) -> windows_core::HRESULT - where - Identity: ITsSbTaskInfo_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut RDV_TASK_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbTaskInfo_Impl::Status(this) { Ok(ok__) => { @@ -3551,21 +2693,12 @@ pub trait ITsSbTaskPlugin_Impl: Sized + ITsSbPlugin_Impl { impl windows_core::RuntimeName for ITsSbTaskPlugin {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbTaskPlugin_Vtbl { - pub const fn new() -> ITsSbTaskPlugin_Vtbl - where - Identity: ITsSbTaskPlugin_Impl, - { - unsafe extern "system" fn InitializeTaskPlugin(this: *mut core::ffi::c_void, pitssbtaskpluginnotifysink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbTaskPlugin_Impl, - { + pub const fn new() -> ITsSbTaskPlugin_Vtbl { + unsafe extern "system" fn InitializeTaskPlugin(this: *mut core::ffi::c_void, pitssbtaskpluginnotifysink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTaskPlugin_Impl::InitializeTaskPlugin(this, windows_core::from_raw_borrowed(&pitssbtaskpluginnotifysink)).into() } - unsafe extern "system" fn SetTaskQueue(this: *mut core::ffi::c_void, pszhostname: core::mem::MaybeUninit, sbtaskinfosize: u32, pitssbtaskinfo: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITsSbTaskPlugin_Impl, - { + unsafe extern "system" fn SetTaskQueue(this: *mut core::ffi::c_void, pszhostname: core::mem::MaybeUninit, sbtaskinfosize: u32, pitssbtaskinfo: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTaskPlugin_Impl::SetTaskQueue(this, core::mem::transmute(&pszhostname), core::mem::transmute_copy(&sbtaskinfosize), core::mem::transmute_copy(&pitssbtaskinfo)).into() } @@ -3590,35 +2723,20 @@ pub trait ITsSbTaskPluginNotifySink_Impl: Sized + ITsSbBaseNotifySink_Impl { impl windows_core::RuntimeName for ITsSbTaskPluginNotifySink {} #[cfg(feature = "Win32_System_Com")] impl ITsSbTaskPluginNotifySink_Vtbl { - pub const fn new() -> ITsSbTaskPluginNotifySink_Vtbl - where - Identity: ITsSbTaskPluginNotifySink_Impl, - { - unsafe extern "system" fn OnSetTaskTime(this: *mut core::ffi::c_void, sztargetname: core::mem::MaybeUninit, taskstarttime: super::super::Foundation::FILETIME, taskendtime: super::super::Foundation::FILETIME, taskdeadline: super::super::Foundation::FILETIME, sztasklabel: core::mem::MaybeUninit, sztaskidentifier: core::mem::MaybeUninit, sztaskplugin: core::mem::MaybeUninit, dwtaskstatus: u32, sacontext: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITsSbTaskPluginNotifySink_Impl, - { + pub const fn new() -> ITsSbTaskPluginNotifySink_Vtbl { + unsafe extern "system" fn OnSetTaskTime(this: *mut core::ffi::c_void, sztargetname: core::mem::MaybeUninit, taskstarttime: super::super::Foundation::FILETIME, taskendtime: super::super::Foundation::FILETIME, taskdeadline: super::super::Foundation::FILETIME, sztasklabel: core::mem::MaybeUninit, sztaskidentifier: core::mem::MaybeUninit, sztaskplugin: core::mem::MaybeUninit, dwtaskstatus: u32, sacontext: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTaskPluginNotifySink_Impl::OnSetTaskTime(this, 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(this: *mut core::ffi::c_void, sztargetname: core::mem::MaybeUninit, sztaskidentifier: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTaskPluginNotifySink_Impl, - { + unsafe extern "system" fn OnDeleteTaskTime(this: *mut core::ffi::c_void, sztargetname: core::mem::MaybeUninit, sztaskidentifier: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTaskPluginNotifySink_Impl::OnDeleteTaskTime(this, core::mem::transmute(&sztargetname), core::mem::transmute(&sztaskidentifier)).into() } - unsafe extern "system" fn OnUpdateTaskStatus(this: *mut core::ffi::c_void, sztargetname: core::mem::MaybeUninit, taskidentifier: core::mem::MaybeUninit, taskstatus: RDV_TASK_STATUS) -> windows_core::HRESULT - where - Identity: ITsSbTaskPluginNotifySink_Impl, - { + unsafe extern "system" fn OnUpdateTaskStatus(this: *mut core::ffi::c_void, sztargetname: core::mem::MaybeUninit, taskidentifier: core::mem::MaybeUninit, taskstatus: RDV_TASK_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTaskPluginNotifySink_Impl::OnUpdateTaskStatus(this, core::mem::transmute(&sztargetname), core::mem::transmute(&taskidentifier), core::mem::transmute_copy(&taskstatus)).into() } - unsafe extern "system" fn OnReportTasks(this: *mut core::ffi::c_void, szhostname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITsSbTaskPluginNotifySink_Impl, - { + unsafe extern "system" fn OnReportTasks(this: *mut core::ffi::c_void, szhostname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbTaskPluginNotifySink_Impl::OnReportTasks(this, core::mem::transmute(&szhostname)).into() } @@ -3634,19 +2752,13 @@ impl ITsSbTaskPluginNotifySink_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWRdsEnhancedFastReconnectArbitrator_Impl: Sized { +pub trait IWRdsEnhancedFastReconnectArbitrator_Impl: Sized + windows_core::IUnknownImpl { fn GetSessionForEnhancedFastReconnect(&self, psessionidarray: *const i32, dwsessioncount: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IWRdsEnhancedFastReconnectArbitrator {} impl IWRdsEnhancedFastReconnectArbitrator_Vtbl { - pub const fn new() -> IWRdsEnhancedFastReconnectArbitrator_Vtbl - where - Identity: IWRdsEnhancedFastReconnectArbitrator_Impl, - { - unsafe extern "system" fn GetSessionForEnhancedFastReconnect(this: *mut core::ffi::c_void, psessionidarray: *const i32, dwsessioncount: u32, presultsessionid: *mut i32) -> windows_core::HRESULT - where - Identity: IWRdsEnhancedFastReconnectArbitrator_Impl, - { + pub const fn new() -> IWRdsEnhancedFastReconnectArbitrator_Vtbl { + unsafe extern "system" fn GetSessionForEnhancedFastReconnect(this: *mut core::ffi::c_void, psessionidarray: *const i32, dwsessioncount: u32, presultsessionid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsEnhancedFastReconnectArbitrator_Impl::GetSessionForEnhancedFastReconnect(this, core::mem::transmute_copy(&psessionidarray), core::mem::transmute_copy(&dwsessioncount)) { Ok(ok__) => { @@ -3665,35 +2777,23 @@ impl IWRdsEnhancedFastReconnectArbitrator_Vtbl { iid == &::IID } } -pub trait IWRdsGraphicsChannel_Impl: Sized { +pub trait IWRdsGraphicsChannel_Impl: Sized + windows_core::IUnknownImpl { fn Write(&self, cbsize: u32, pbuffer: *const u8, pcontext: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn Open(&self, pchannelevents: Option<&IWRdsGraphicsChannelEvents>, popencontext: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWRdsGraphicsChannel {} impl IWRdsGraphicsChannel_Vtbl { - pub const fn new() -> IWRdsGraphicsChannel_Vtbl - where - Identity: IWRdsGraphicsChannel_Impl, - { - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, cbsize: u32, pbuffer: *const u8, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsGraphicsChannel_Impl, - { + pub const fn new() -> IWRdsGraphicsChannel_Vtbl { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, cbsize: u32, pbuffer: *const u8, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsGraphicsChannel_Impl::Write(this, core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pbuffer), windows_core::from_raw_borrowed(&pcontext)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsGraphicsChannel_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsGraphicsChannel_Impl::Close(this).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pchannelevents: *mut core::ffi::c_void, popencontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsGraphicsChannel_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pchannelevents: *mut core::ffi::c_void, popencontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsGraphicsChannel_Impl::Open(this, windows_core::from_raw_borrowed(&pchannelevents), windows_core::from_raw_borrowed(&popencontext)).into() } @@ -3708,7 +2808,7 @@ impl IWRdsGraphicsChannel_Vtbl { iid == &::IID } } -pub trait IWRdsGraphicsChannelEvents_Impl: Sized { +pub trait IWRdsGraphicsChannelEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnDataReceived(&self, cbsize: u32, pbuffer: *const u8) -> windows_core::Result<()>; fn OnClose(&self) -> windows_core::Result<()>; fn OnChannelOpened(&self, openresult: windows_core::HRESULT, popencontext: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -3717,42 +2817,24 @@ pub trait IWRdsGraphicsChannelEvents_Impl: Sized { } impl windows_core::RuntimeName for IWRdsGraphicsChannelEvents {} impl IWRdsGraphicsChannelEvents_Vtbl { - pub const fn new() -> IWRdsGraphicsChannelEvents_Vtbl - where - Identity: IWRdsGraphicsChannelEvents_Impl, - { - unsafe extern "system" fn OnDataReceived(this: *mut core::ffi::c_void, cbsize: u32, pbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IWRdsGraphicsChannelEvents_Impl, - { + pub const fn new() -> IWRdsGraphicsChannelEvents_Vtbl { + unsafe extern "system" fn OnDataReceived(this: *mut core::ffi::c_void, cbsize: u32, pbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsGraphicsChannelEvents_Impl::OnDataReceived(this, core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pbuffer)).into() } - unsafe extern "system" fn OnClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsGraphicsChannelEvents_Impl, - { + unsafe extern "system" fn OnClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsGraphicsChannelEvents_Impl::OnClose(this).into() } - unsafe extern "system" fn OnChannelOpened(this: *mut core::ffi::c_void, openresult: windows_core::HRESULT, popencontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsGraphicsChannelEvents_Impl, - { + unsafe extern "system" fn OnChannelOpened(this: *mut core::ffi::c_void, openresult: windows_core::HRESULT, popencontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsGraphicsChannelEvents_Impl::OnChannelOpened(this, core::mem::transmute_copy(&openresult), windows_core::from_raw_borrowed(&popencontext)).into() } - unsafe extern "system" fn OnDataSent(this: *mut core::ffi::c_void, pwritecontext: *mut core::ffi::c_void, bcancelled: super::super::Foundation::BOOL, pbuffer: *const u8, cbbuffer: u32) -> windows_core::HRESULT - where - Identity: IWRdsGraphicsChannelEvents_Impl, - { + unsafe extern "system" fn OnDataSent(this: *mut core::ffi::c_void, pwritecontext: *mut core::ffi::c_void, bcancelled: super::super::Foundation::BOOL, pbuffer: *const u8, cbbuffer: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsGraphicsChannelEvents_Impl::OnDataSent(this, windows_core::from_raw_borrowed(&pwritecontext), core::mem::transmute_copy(&bcancelled), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cbbuffer)).into() } - unsafe extern "system" fn OnMetricsUpdate(this: *mut core::ffi::c_void, bandwidth: u32, rtt: u32, lastsentbyteindex: u64) -> windows_core::HRESULT - where - Identity: IWRdsGraphicsChannelEvents_Impl, - { + unsafe extern "system" fn OnMetricsUpdate(this: *mut core::ffi::c_void, bandwidth: u32, rtt: u32, lastsentbyteindex: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsGraphicsChannelEvents_Impl::OnMetricsUpdate(this, core::mem::transmute_copy(&bandwidth), core::mem::transmute_copy(&rtt), core::mem::transmute_copy(&lastsentbyteindex)).into() } @@ -3769,19 +2851,13 @@ impl IWRdsGraphicsChannelEvents_Vtbl { iid == &::IID } } -pub trait IWRdsGraphicsChannelManager_Impl: Sized { +pub trait IWRdsGraphicsChannelManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateChannel(&self, pszchannelname: *const u8, channeltype: WRdsGraphicsChannelType) -> windows_core::Result; } impl windows_core::RuntimeName for IWRdsGraphicsChannelManager {} impl IWRdsGraphicsChannelManager_Vtbl { - pub const fn new() -> IWRdsGraphicsChannelManager_Vtbl - where - Identity: IWRdsGraphicsChannelManager_Impl, - { - unsafe extern "system" fn CreateChannel(this: *mut core::ffi::c_void, pszchannelname: *const u8, channeltype: WRdsGraphicsChannelType, ppvirtualchannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsGraphicsChannelManager_Impl, - { + pub const fn new() -> IWRdsGraphicsChannelManager_Vtbl { + unsafe extern "system" fn CreateChannel(this: *mut core::ffi::c_void, pszchannelname: *const u8, channeltype: WRdsGraphicsChannelType, ppvirtualchannel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsGraphicsChannelManager_Impl::CreateChannel(this, core::mem::transmute_copy(&pszchannelname), core::mem::transmute_copy(&channeltype)) { Ok(ok__) => { @@ -3797,7 +2873,7 @@ impl IWRdsGraphicsChannelManager_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolConnection_Impl: Sized { +pub trait IWRdsProtocolConnection_Impl: Sized + windows_core::IUnknownImpl { fn GetLogonErrorRedirector(&self) -> windows_core::Result; fn AcceptConnection(&self) -> windows_core::Result<()>; fn GetClientData(&self, pclientdata: *mut WTS_CLIENT_DATA) -> windows_core::Result<()>; @@ -3825,14 +2901,8 @@ pub trait IWRdsProtocolConnection_Impl: Sized { } impl windows_core::RuntimeName for IWRdsProtocolConnection {} impl IWRdsProtocolConnection_Vtbl { - pub const fn new() -> IWRdsProtocolConnection_Vtbl - where - Identity: IWRdsProtocolConnection_Impl, - { - unsafe extern "system" fn GetLogonErrorRedirector(this: *mut core::ffi::c_void, pplogonerrorredir: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + pub const fn new() -> IWRdsProtocolConnection_Vtbl { + unsafe extern "system" fn GetLogonErrorRedirector(this: *mut core::ffi::c_void, pplogonerrorredir: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolConnection_Impl::GetLogonErrorRedirector(this) { Ok(ok__) => { @@ -3842,38 +2912,23 @@ impl IWRdsProtocolConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AcceptConnection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn AcceptConnection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::AcceptConnection(this).into() } - unsafe extern "system" fn GetClientData(this: *mut core::ffi::c_void, pclientdata: *mut WTS_CLIENT_DATA) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn GetClientData(this: *mut core::ffi::c_void, pclientdata: *mut WTS_CLIENT_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::GetClientData(this, core::mem::transmute_copy(&pclientdata)).into() } - unsafe extern "system" fn GetClientMonitorData(this: *mut core::ffi::c_void, pnummonitors: *mut u32, pprimarymonitor: *mut u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn GetClientMonitorData(this: *mut core::ffi::c_void, pnummonitors: *mut u32, pprimarymonitor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::GetClientMonitorData(this, core::mem::transmute_copy(&pnummonitors), core::mem::transmute_copy(&pprimarymonitor)).into() } - unsafe extern "system" fn GetUserCredentials(this: *mut core::ffi::c_void, pusercreds: *mut WTS_USER_CREDENTIAL) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn GetUserCredentials(this: *mut core::ffi::c_void, pusercreds: *mut WTS_USER_CREDENTIAL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::GetUserCredentials(this, core::mem::transmute_copy(&pusercreds)).into() } - unsafe extern "system" fn GetLicenseConnection(this: *mut core::ffi::c_void, pplicenseconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn GetLicenseConnection(this: *mut core::ffi::c_void, pplicenseconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolConnection_Impl::GetLicenseConnection(this) { Ok(ok__) => { @@ -3883,31 +2938,19 @@ impl IWRdsProtocolConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AuthenticateClientToSession(this: *mut core::ffi::c_void, sessionid: *mut WTS_SESSION_ID) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn AuthenticateClientToSession(this: *mut core::ffi::c_void, sessionid: *mut WTS_SESSION_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::AuthenticateClientToSession(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn NotifySessionId(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID, sessionhandle: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn NotifySessionId(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID, sessionhandle: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::NotifySessionId(this, core::mem::transmute_copy(&sessionid), core::mem::transmute_copy(&sessionhandle)).into() } - unsafe extern "system" fn GetInputHandles(this: *mut core::ffi::c_void, pkeyboardhandle: *mut super::super::Foundation::HANDLE_PTR, pmousehandle: *mut super::super::Foundation::HANDLE_PTR, pbeephandle: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn GetInputHandles(this: *mut core::ffi::c_void, pkeyboardhandle: *mut super::super::Foundation::HANDLE_PTR, pmousehandle: *mut super::super::Foundation::HANDLE_PTR, pbeephandle: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::GetInputHandles(this, core::mem::transmute_copy(&pkeyboardhandle), core::mem::transmute_copy(&pmousehandle), core::mem::transmute_copy(&pbeephandle)).into() } - unsafe extern "system" fn GetVideoHandle(this: *mut core::ffi::c_void, pvideohandle: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn GetVideoHandle(this: *mut core::ffi::c_void, pvideohandle: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolConnection_Impl::GetVideoHandle(this) { Ok(ok__) => { @@ -3917,66 +2960,39 @@ impl IWRdsProtocolConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectNotify(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn ConnectNotify(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::ConnectNotify(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn IsUserAllowedToLogon(this: *mut core::ffi::c_void, sessionid: u32, usertoken: super::super::Foundation::HANDLE_PTR, pdomainname: windows_core::PCWSTR, pusername: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn IsUserAllowedToLogon(this: *mut core::ffi::c_void, sessionid: u32, usertoken: super::super::Foundation::HANDLE_PTR, pdomainname: windows_core::PCWSTR, pusername: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::IsUserAllowedToLogon(this, core::mem::transmute_copy(&sessionid), core::mem::transmute_copy(&usertoken), core::mem::transmute(&pdomainname), core::mem::transmute(&pusername)).into() } - unsafe extern "system" fn SessionArbitrationEnumeration(this: *mut core::ffi::c_void, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: super::super::Foundation::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn SessionArbitrationEnumeration(this: *mut core::ffi::c_void, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: super::super::Foundation::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::SessionArbitrationEnumeration(this, core::mem::transmute_copy(&husertoken), core::mem::transmute_copy(&bsinglesessionperuserenabled), core::mem::transmute_copy(&psessionidarray), core::mem::transmute_copy(&pdwsessionidentifiercount)).into() } - unsafe extern "system" fn LogonNotify(this: *mut core::ffi::c_void, hclienttoken: super::super::Foundation::HANDLE_PTR, wszusername: windows_core::PCWSTR, wszdomainname: windows_core::PCWSTR, sessionid: *const WTS_SESSION_ID, pwrdsconnectionsettings: *mut WRDS_CONNECTION_SETTINGS) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn LogonNotify(this: *mut core::ffi::c_void, hclienttoken: super::super::Foundation::HANDLE_PTR, wszusername: windows_core::PCWSTR, wszdomainname: windows_core::PCWSTR, sessionid: *const WTS_SESSION_ID, pwrdsconnectionsettings: *mut WRDS_CONNECTION_SETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::LogonNotify(this, core::mem::transmute_copy(&hclienttoken), core::mem::transmute(&wszusername), core::mem::transmute(&wszdomainname), core::mem::transmute_copy(&sessionid), core::mem::transmute_copy(&pwrdsconnectionsettings)).into() } - unsafe extern "system" fn PreDisconnect(this: *mut core::ffi::c_void, disconnectreason: u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn PreDisconnect(this: *mut core::ffi::c_void, disconnectreason: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::PreDisconnect(this, core::mem::transmute_copy(&disconnectreason)).into() } - unsafe extern "system" fn DisconnectNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn DisconnectNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::DisconnectNotify(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::Close(this).into() } - unsafe extern "system" fn GetProtocolStatus(this: *mut core::ffi::c_void, pprotocolstatus: *mut WTS_PROTOCOL_STATUS) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn GetProtocolStatus(this: *mut core::ffi::c_void, pprotocolstatus: *mut WTS_PROTOCOL_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::GetProtocolStatus(this, core::mem::transmute_copy(&pprotocolstatus)).into() } - unsafe extern "system" fn GetLastInputTime(this: *mut core::ffi::c_void, plastinputtime: *mut u64) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn GetLastInputTime(this: *mut core::ffi::c_void, plastinputtime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolConnection_Impl::GetLastInputTime(this) { Ok(ok__) => { @@ -3986,17 +3002,11 @@ impl IWRdsProtocolConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetErrorInfo(this: *mut core::ffi::c_void, ulerror: u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn SetErrorInfo(this: *mut core::ffi::c_void, ulerror: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::SetErrorInfo(this, core::mem::transmute_copy(&ulerror)).into() } - unsafe extern "system" fn CreateVirtualChannel(this: *mut core::ffi::c_void, szendpointname: windows_core::PCSTR, bstatic: super::super::Foundation::BOOL, requestedpriority: u32, phchannel: *mut usize) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn CreateVirtualChannel(this: *mut core::ffi::c_void, szendpointname: windows_core::PCSTR, bstatic: super::super::Foundation::BOOL, requestedpriority: u32, phchannel: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolConnection_Impl::CreateVirtualChannel(this, core::mem::transmute(&szendpointname), core::mem::transmute_copy(&bstatic), core::mem::transmute_copy(&requestedpriority)) { Ok(ok__) => { @@ -4006,17 +3016,11 @@ impl IWRdsProtocolConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryProperty(this: *mut core::ffi::c_void, querytype: windows_core::GUID, ulnumentriesin: u32, ulnumentriesout: u32, ppropertyentriesin: *const WTS_PROPERTY_VALUE, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn QueryProperty(this: *mut core::ffi::c_void, querytype: windows_core::GUID, ulnumentriesin: u32, ulnumentriesout: u32, ppropertyentriesin: *const WTS_PROPERTY_VALUE, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::QueryProperty(this, core::mem::transmute(&querytype), core::mem::transmute_copy(&ulnumentriesin), core::mem::transmute_copy(&ulnumentriesout), core::mem::transmute_copy(&ppropertyentriesin), core::mem::transmute_copy(&ppropertyentriesout)).into() } - unsafe extern "system" fn GetShadowConnection(this: *mut core::ffi::c_void, ppshadowconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn GetShadowConnection(this: *mut core::ffi::c_void, ppshadowconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolConnection_Impl::GetShadowConnection(this) { Ok(ok__) => { @@ -4026,10 +3030,7 @@ impl IWRdsProtocolConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyCommandProcessCreated(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnection_Impl, - { + unsafe extern "system" fn NotifyCommandProcessCreated(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::NotifyCommandProcessCreated(this, core::mem::transmute_copy(&sessionid)).into() } @@ -4065,7 +3066,7 @@ impl IWRdsProtocolConnection_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolConnectionCallback_Impl: Sized { +pub trait IWRdsProtocolConnectionCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnReady(&self) -> windows_core::Result<()>; fn BrokenConnection(&self, reason: u32, source: u32) -> windows_core::Result<()>; fn StopScreenUpdates(&self) -> windows_core::Result<()>; @@ -4074,42 +3075,24 @@ pub trait IWRdsProtocolConnectionCallback_Impl: Sized { } impl windows_core::RuntimeName for IWRdsProtocolConnectionCallback {} impl IWRdsProtocolConnectionCallback_Vtbl { - pub const fn new() -> IWRdsProtocolConnectionCallback_Vtbl - where - Identity: IWRdsProtocolConnectionCallback_Impl, - { - unsafe extern "system" fn OnReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnectionCallback_Impl, - { + pub const fn new() -> IWRdsProtocolConnectionCallback_Vtbl { + unsafe extern "system" fn OnReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnectionCallback_Impl::OnReady(this).into() } - unsafe extern "system" fn BrokenConnection(this: *mut core::ffi::c_void, reason: u32, source: u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnectionCallback_Impl, - { + unsafe extern "system" fn BrokenConnection(this: *mut core::ffi::c_void, reason: u32, source: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnectionCallback_Impl::BrokenConnection(this, core::mem::transmute_copy(&reason), core::mem::transmute_copy(&source)).into() } - unsafe extern "system" fn StopScreenUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnectionCallback_Impl, - { + unsafe extern "system" fn StopScreenUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnectionCallback_Impl::StopScreenUpdates(this).into() } - unsafe extern "system" fn RedrawWindow(this: *mut core::ffi::c_void, rect: *const WTS_SMALL_RECT) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnectionCallback_Impl, - { + unsafe extern "system" fn RedrawWindow(this: *mut core::ffi::c_void, rect: *const WTS_SMALL_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnectionCallback_Impl::RedrawWindow(this, core::mem::transmute_copy(&rect)).into() } - unsafe extern "system" fn GetConnectionId(this: *mut core::ffi::c_void, pconnectionid: *mut u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnectionCallback_Impl, - { + unsafe extern "system" fn GetConnectionId(this: *mut core::ffi::c_void, pconnectionid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolConnectionCallback_Impl::GetConnectionId(this) { Ok(ok__) => { @@ -4132,27 +3115,18 @@ impl IWRdsProtocolConnectionCallback_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolConnectionSettings_Impl: Sized { +pub trait IWRdsProtocolConnectionSettings_Impl: Sized + windows_core::IUnknownImpl { fn SetConnectionSetting(&self, propertyid: &windows_core::GUID, ppropertyentriesin: *const WTS_PROPERTY_VALUE) -> windows_core::Result<()>; fn GetConnectionSetting(&self, propertyid: &windows_core::GUID, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWRdsProtocolConnectionSettings {} impl IWRdsProtocolConnectionSettings_Vtbl { - pub const fn new() -> IWRdsProtocolConnectionSettings_Vtbl - where - Identity: IWRdsProtocolConnectionSettings_Impl, - { - unsafe extern "system" fn SetConnectionSetting(this: *mut core::ffi::c_void, propertyid: windows_core::GUID, ppropertyentriesin: *const WTS_PROPERTY_VALUE) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnectionSettings_Impl, - { + pub const fn new() -> IWRdsProtocolConnectionSettings_Vtbl { + unsafe extern "system" fn SetConnectionSetting(this: *mut core::ffi::c_void, propertyid: windows_core::GUID, ppropertyentriesin: *const WTS_PROPERTY_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnectionSettings_Impl::SetConnectionSetting(this, core::mem::transmute(&propertyid), core::mem::transmute_copy(&ppropertyentriesin)).into() } - unsafe extern "system" fn GetConnectionSetting(this: *mut core::ffi::c_void, propertyid: windows_core::GUID, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> windows_core::HRESULT - where - Identity: IWRdsProtocolConnectionSettings_Impl, - { + unsafe extern "system" fn GetConnectionSetting(this: *mut core::ffi::c_void, propertyid: windows_core::GUID, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnectionSettings_Impl::GetConnectionSetting(this, core::mem::transmute(&propertyid), core::mem::transmute_copy(&ppropertyentriesout)).into() } @@ -4166,7 +3140,7 @@ impl IWRdsProtocolConnectionSettings_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolLicenseConnection_Impl: Sized { +pub trait IWRdsProtocolLicenseConnection_Impl: Sized + windows_core::IUnknownImpl { fn RequestLicensingCapabilities(&self, pplicensecapabilities: *mut WTS_LICENSE_CAPABILITIES, pcblicensecapabilities: *mut u32) -> windows_core::Result<()>; fn SendClientLicense(&self, pclientlicense: *const u8, cbclientlicense: u32) -> windows_core::Result<()>; fn RequestClientLicense(&self, reserve1: *const u8, reserve2: u32, ppclientlicense: *mut u8, pcbclientlicense: *mut u32) -> windows_core::Result<()>; @@ -4174,35 +3148,20 @@ pub trait IWRdsProtocolLicenseConnection_Impl: Sized { } impl windows_core::RuntimeName for IWRdsProtocolLicenseConnection {} impl IWRdsProtocolLicenseConnection_Vtbl { - pub const fn new() -> IWRdsProtocolLicenseConnection_Vtbl - where - Identity: IWRdsProtocolLicenseConnection_Impl, - { - unsafe extern "system" fn RequestLicensingCapabilities(this: *mut core::ffi::c_void, pplicensecapabilities: *mut WTS_LICENSE_CAPABILITIES, pcblicensecapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolLicenseConnection_Impl, - { + pub const fn new() -> IWRdsProtocolLicenseConnection_Vtbl { + unsafe extern "system" fn RequestLicensingCapabilities(this: *mut core::ffi::c_void, pplicensecapabilities: *mut WTS_LICENSE_CAPABILITIES, pcblicensecapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolLicenseConnection_Impl::RequestLicensingCapabilities(this, core::mem::transmute_copy(&pplicensecapabilities), core::mem::transmute_copy(&pcblicensecapabilities)).into() } - unsafe extern "system" fn SendClientLicense(this: *mut core::ffi::c_void, pclientlicense: *const u8, cbclientlicense: u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolLicenseConnection_Impl, - { + unsafe extern "system" fn SendClientLicense(this: *mut core::ffi::c_void, pclientlicense: *const u8, cbclientlicense: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolLicenseConnection_Impl::SendClientLicense(this, core::mem::transmute_copy(&pclientlicense), core::mem::transmute_copy(&cbclientlicense)).into() } - unsafe extern "system" fn RequestClientLicense(this: *mut core::ffi::c_void, reserve1: *const u8, reserve2: u32, ppclientlicense: *mut u8, pcbclientlicense: *mut u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolLicenseConnection_Impl, - { + unsafe extern "system" fn RequestClientLicense(this: *mut core::ffi::c_void, reserve1: *const u8, reserve2: u32, ppclientlicense: *mut u8, pcbclientlicense: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolLicenseConnection_Impl::RequestClientLicense(this, core::mem::transmute_copy(&reserve1), core::mem::transmute_copy(&reserve2), core::mem::transmute_copy(&ppclientlicense), core::mem::transmute_copy(&pcbclientlicense)).into() } - unsafe extern "system" fn ProtocolComplete(this: *mut core::ffi::c_void, ulcomplete: u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolLicenseConnection_Impl, - { + unsafe extern "system" fn ProtocolComplete(this: *mut core::ffi::c_void, ulcomplete: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolLicenseConnection_Impl::ProtocolComplete(this, core::mem::transmute_copy(&ulcomplete)).into() } @@ -4218,21 +3177,15 @@ impl IWRdsProtocolLicenseConnection_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolListener_Impl: Sized { +pub trait IWRdsProtocolListener_Impl: Sized + windows_core::IUnknownImpl { fn GetSettings(&self, wrdslistenersettinglevel: WRDS_LISTENER_SETTING_LEVEL) -> windows_core::Result; fn StartListen(&self, pcallback: Option<&IWRdsProtocolListenerCallback>) -> windows_core::Result<()>; fn StopListen(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWRdsProtocolListener {} impl IWRdsProtocolListener_Vtbl { - pub const fn new() -> IWRdsProtocolListener_Vtbl - where - Identity: IWRdsProtocolListener_Impl, - { - unsafe extern "system" fn GetSettings(this: *mut core::ffi::c_void, wrdslistenersettinglevel: WRDS_LISTENER_SETTING_LEVEL, pwrdslistenersettings: *mut WRDS_LISTENER_SETTINGS) -> windows_core::HRESULT - where - Identity: IWRdsProtocolListener_Impl, - { + pub const fn new() -> IWRdsProtocolListener_Vtbl { + unsafe extern "system" fn GetSettings(this: *mut core::ffi::c_void, wrdslistenersettinglevel: WRDS_LISTENER_SETTING_LEVEL, pwrdslistenersettings: *mut WRDS_LISTENER_SETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolListener_Impl::GetSettings(this, core::mem::transmute_copy(&wrdslistenersettinglevel)) { Ok(ok__) => { @@ -4242,17 +3195,11 @@ impl IWRdsProtocolListener_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartListen(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolListener_Impl, - { + unsafe extern "system" fn StartListen(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolListener_Impl::StartListen(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn StopListen(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolListener_Impl, - { + unsafe extern "system" fn StopListen(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolListener_Impl::StopListen(this).into() } @@ -4267,19 +3214,13 @@ impl IWRdsProtocolListener_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolListenerCallback_Impl: Sized { +pub trait IWRdsProtocolListenerCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnConnected(&self, pconnection: Option<&IWRdsProtocolConnection>, pwrdsconnectionsettings: *const WRDS_CONNECTION_SETTINGS) -> windows_core::Result; } impl windows_core::RuntimeName for IWRdsProtocolListenerCallback {} impl IWRdsProtocolListenerCallback_Vtbl { - pub const fn new() -> IWRdsProtocolListenerCallback_Vtbl - where - Identity: IWRdsProtocolListenerCallback_Impl, - { - unsafe extern "system" fn OnConnected(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, pwrdsconnectionsettings: *const WRDS_CONNECTION_SETTINGS, pcallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolListenerCallback_Impl, - { + pub const fn new() -> IWRdsProtocolListenerCallback_Vtbl { + unsafe extern "system" fn OnConnected(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, pwrdsconnectionsettings: *const WRDS_CONNECTION_SETTINGS, pcallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolListenerCallback_Impl::OnConnected(this, windows_core::from_raw_borrowed(&pconnection), core::mem::transmute_copy(&pwrdsconnectionsettings)) { Ok(ok__) => { @@ -4295,7 +3236,7 @@ impl IWRdsProtocolListenerCallback_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolLogonErrorRedirector_Impl: Sized { +pub trait IWRdsProtocolLogonErrorRedirector_Impl: Sized + windows_core::IUnknownImpl { fn OnBeginPainting(&self) -> windows_core::Result<()>; fn RedirectStatus(&self, pszmessage: &windows_core::PCWSTR) -> windows_core::Result; fn RedirectMessage(&self, pszcaption: &windows_core::PCWSTR, pszmessage: &windows_core::PCWSTR, utype: u32) -> windows_core::Result; @@ -4303,21 +3244,12 @@ pub trait IWRdsProtocolLogonErrorRedirector_Impl: Sized { } impl windows_core::RuntimeName for IWRdsProtocolLogonErrorRedirector {} impl IWRdsProtocolLogonErrorRedirector_Vtbl { - pub const fn new() -> IWRdsProtocolLogonErrorRedirector_Vtbl - where - Identity: IWRdsProtocolLogonErrorRedirector_Impl, - { - unsafe extern "system" fn OnBeginPainting(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolLogonErrorRedirector_Impl, - { + pub const fn new() -> IWRdsProtocolLogonErrorRedirector_Vtbl { + unsafe extern "system" fn OnBeginPainting(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolLogonErrorRedirector_Impl::OnBeginPainting(this).into() } - unsafe extern "system" fn RedirectStatus(this: *mut core::ffi::c_void, pszmessage: windows_core::PCWSTR, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT - where - Identity: IWRdsProtocolLogonErrorRedirector_Impl, - { + unsafe extern "system" fn RedirectStatus(this: *mut core::ffi::c_void, pszmessage: windows_core::PCWSTR, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolLogonErrorRedirector_Impl::RedirectStatus(this, core::mem::transmute(&pszmessage)) { Ok(ok__) => { @@ -4327,10 +3259,7 @@ impl IWRdsProtocolLogonErrorRedirector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RedirectMessage(this: *mut core::ffi::c_void, pszcaption: windows_core::PCWSTR, pszmessage: windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT - where - Identity: IWRdsProtocolLogonErrorRedirector_Impl, - { + unsafe extern "system" fn RedirectMessage(this: *mut core::ffi::c_void, pszcaption: windows_core::PCWSTR, pszmessage: windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolLogonErrorRedirector_Impl::RedirectMessage(this, core::mem::transmute(&pszcaption), core::mem::transmute(&pszmessage), core::mem::transmute_copy(&utype)) { Ok(ok__) => { @@ -4340,10 +3269,7 @@ impl IWRdsProtocolLogonErrorRedirector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RedirectLogonError(this: *mut core::ffi::c_void, ntsstatus: i32, ntssubstatus: i32, pszcaption: windows_core::PCWSTR, pszmessage: windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT - where - Identity: IWRdsProtocolLogonErrorRedirector_Impl, - { + unsafe extern "system" fn RedirectLogonError(this: *mut core::ffi::c_void, ntsstatus: i32, ntssubstatus: i32, pszcaption: windows_core::PCWSTR, pszmessage: windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolLogonErrorRedirector_Impl::RedirectLogonError(this, core::mem::transmute_copy(&ntsstatus), core::mem::transmute_copy(&ntssubstatus), core::mem::transmute(&pszcaption), core::mem::transmute(&pszmessage), core::mem::transmute_copy(&utype)) { Ok(ok__) => { @@ -4365,7 +3291,7 @@ impl IWRdsProtocolLogonErrorRedirector_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolManager_Impl: Sized { +pub trait IWRdsProtocolManager_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, piwrdssettings: Option<&IWRdsProtocolSettings>, pwrdssettings: *const WRDS_SETTINGS) -> windows_core::Result<()>; fn CreateListener(&self, wszlistenername: &windows_core::PCWSTR) -> windows_core::Result; fn NotifyServiceStateChange(&self, ptsservicestatechange: *const WTS_SERVICE_STATE) -> windows_core::Result<()>; @@ -4377,21 +3303,12 @@ pub trait IWRdsProtocolManager_Impl: Sized { } impl windows_core::RuntimeName for IWRdsProtocolManager {} impl IWRdsProtocolManager_Vtbl { - pub const fn new() -> IWRdsProtocolManager_Vtbl - where - Identity: IWRdsProtocolManager_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, piwrdssettings: *mut core::ffi::c_void, pwrdssettings: *const WRDS_SETTINGS) -> windows_core::HRESULT - where - Identity: IWRdsProtocolManager_Impl, - { + pub const fn new() -> IWRdsProtocolManager_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, piwrdssettings: *mut core::ffi::c_void, pwrdssettings: *const WRDS_SETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolManager_Impl::Initialize(this, windows_core::from_raw_borrowed(&piwrdssettings), core::mem::transmute_copy(&pwrdssettings)).into() } - unsafe extern "system" fn CreateListener(this: *mut core::ffi::c_void, wszlistenername: windows_core::PCWSTR, pprotocollistener: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolManager_Impl, - { + unsafe extern "system" fn CreateListener(this: *mut core::ffi::c_void, wszlistenername: windows_core::PCWSTR, pprotocollistener: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolManager_Impl::CreateListener(this, core::mem::transmute(&wszlistenername)) { Ok(ok__) => { @@ -4401,45 +3318,27 @@ impl IWRdsProtocolManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyServiceStateChange(this: *mut core::ffi::c_void, ptsservicestatechange: *const WTS_SERVICE_STATE) -> windows_core::HRESULT - where - Identity: IWRdsProtocolManager_Impl, - { + unsafe extern "system" fn NotifyServiceStateChange(this: *mut core::ffi::c_void, ptsservicestatechange: *const WTS_SERVICE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolManager_Impl::NotifyServiceStateChange(this, core::mem::transmute_copy(&ptsservicestatechange)).into() } - unsafe extern "system" fn NotifySessionOfServiceStart(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT - where - Identity: IWRdsProtocolManager_Impl, - { + unsafe extern "system" fn NotifySessionOfServiceStart(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolManager_Impl::NotifySessionOfServiceStart(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn NotifySessionOfServiceStop(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT - where - Identity: IWRdsProtocolManager_Impl, - { + unsafe extern "system" fn NotifySessionOfServiceStop(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolManager_Impl::NotifySessionOfServiceStop(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn NotifySessionStateChange(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID, eventid: u32) -> windows_core::HRESULT - where - Identity: IWRdsProtocolManager_Impl, - { + unsafe extern "system" fn NotifySessionStateChange(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID, eventid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolManager_Impl::NotifySessionStateChange(this, core::mem::transmute_copy(&sessionid), core::mem::transmute_copy(&eventid)).into() } - unsafe extern "system" fn NotifySettingsChange(this: *mut core::ffi::c_void, pwrdssettings: *const WRDS_SETTINGS) -> windows_core::HRESULT - where - Identity: IWRdsProtocolManager_Impl, - { + unsafe extern "system" fn NotifySettingsChange(this: *mut core::ffi::c_void, pwrdssettings: *const WRDS_SETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolManager_Impl::NotifySettingsChange(this, core::mem::transmute_copy(&pwrdssettings)).into() } - unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolManager_Impl, - { + unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolManager_Impl::Uninitialize(this).into() } @@ -4459,27 +3358,18 @@ impl IWRdsProtocolManager_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolSettings_Impl: Sized { +pub trait IWRdsProtocolSettings_Impl: Sized + windows_core::IUnknownImpl { fn GetSettings(&self, wrdssettingtype: WRDS_SETTING_TYPE, wrdssettinglevel: WRDS_SETTING_LEVEL, pwrdssettings: *mut WRDS_SETTINGS) -> windows_core::Result<()>; fn MergeSettings(&self, pwrdssettings: *const WRDS_SETTINGS, wrdsconnectionsettinglevel: WRDS_CONNECTION_SETTING_LEVEL, pwrdsconnectionsettings: *mut WRDS_CONNECTION_SETTINGS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWRdsProtocolSettings {} impl IWRdsProtocolSettings_Vtbl { - pub const fn new() -> IWRdsProtocolSettings_Vtbl - where - Identity: IWRdsProtocolSettings_Impl, - { - unsafe extern "system" fn GetSettings(this: *mut core::ffi::c_void, wrdssettingtype: WRDS_SETTING_TYPE, wrdssettinglevel: WRDS_SETTING_LEVEL, pwrdssettings: *mut WRDS_SETTINGS) -> windows_core::HRESULT - where - Identity: IWRdsProtocolSettings_Impl, - { + pub const fn new() -> IWRdsProtocolSettings_Vtbl { + unsafe extern "system" fn GetSettings(this: *mut core::ffi::c_void, wrdssettingtype: WRDS_SETTING_TYPE, wrdssettinglevel: WRDS_SETTING_LEVEL, pwrdssettings: *mut WRDS_SETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolSettings_Impl::GetSettings(this, core::mem::transmute_copy(&wrdssettingtype), core::mem::transmute_copy(&wrdssettinglevel), core::mem::transmute_copy(&pwrdssettings)).into() } - unsafe extern "system" fn MergeSettings(this: *mut core::ffi::c_void, pwrdssettings: *const WRDS_SETTINGS, wrdsconnectionsettinglevel: WRDS_CONNECTION_SETTING_LEVEL, pwrdsconnectionsettings: *mut WRDS_CONNECTION_SETTINGS) -> windows_core::HRESULT - where - Identity: IWRdsProtocolSettings_Impl, - { + unsafe extern "system" fn MergeSettings(this: *mut core::ffi::c_void, pwrdssettings: *const WRDS_SETTINGS, wrdsconnectionsettinglevel: WRDS_CONNECTION_SETTING_LEVEL, pwrdsconnectionsettings: *mut WRDS_CONNECTION_SETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolSettings_Impl::MergeSettings(this, core::mem::transmute_copy(&pwrdssettings), core::mem::transmute_copy(&wrdsconnectionsettinglevel), core::mem::transmute_copy(&pwrdsconnectionsettings)).into() } @@ -4493,27 +3383,18 @@ impl IWRdsProtocolSettings_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolShadowCallback_Impl: Sized { +pub trait IWRdsProtocolShadowCallback_Impl: Sized + windows_core::IUnknownImpl { fn StopShadow(&self) -> windows_core::Result<()>; fn InvokeTargetShadow(&self, ptargetservername: &windows_core::PCWSTR, targetsessionid: u32, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWRdsProtocolShadowCallback {} impl IWRdsProtocolShadowCallback_Vtbl { - pub const fn new() -> IWRdsProtocolShadowCallback_Vtbl - where - Identity: IWRdsProtocolShadowCallback_Impl, - { - unsafe extern "system" fn StopShadow(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolShadowCallback_Impl, - { + pub const fn new() -> IWRdsProtocolShadowCallback_Vtbl { + unsafe extern "system" fn StopShadow(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolShadowCallback_Impl::StopShadow(this).into() } - unsafe extern "system" fn InvokeTargetShadow(this: *mut core::ffi::c_void, ptargetservername: windows_core::PCWSTR, targetsessionid: u32, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWRdsProtocolShadowCallback_Impl, - { + unsafe extern "system" fn InvokeTargetShadow(this: *mut core::ffi::c_void, ptargetservername: windows_core::PCWSTR, targetsessionid: u32, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolShadowCallback_Impl::InvokeTargetShadow(this, core::mem::transmute(&ptargetservername), core::mem::transmute_copy(&targetsessionid), core::mem::transmute_copy(&pparam1), core::mem::transmute_copy(¶m1size), core::mem::transmute_copy(&pparam2), core::mem::transmute_copy(¶m2size), core::mem::transmute_copy(&pparam3), core::mem::transmute_copy(¶m3size), core::mem::transmute_copy(&pparam4), core::mem::transmute_copy(¶m4size), core::mem::transmute(&pclientname)).into() } @@ -4527,35 +3408,23 @@ impl IWRdsProtocolShadowCallback_Vtbl { iid == &::IID } } -pub trait IWRdsProtocolShadowConnection_Impl: Sized { +pub trait IWRdsProtocolShadowConnection_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self, ptargetservername: &windows_core::PCWSTR, targetsessionid: u32, hotkeyvk: u8, hotkeymodifiers: u16, pshadowcallback: Option<&IWRdsProtocolShadowCallback>) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; fn DoTarget(&self, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWRdsProtocolShadowConnection {} impl IWRdsProtocolShadowConnection_Vtbl { - pub const fn new() -> IWRdsProtocolShadowConnection_Vtbl - where - Identity: IWRdsProtocolShadowConnection_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, ptargetservername: windows_core::PCWSTR, targetsessionid: u32, hotkeyvk: u8, hotkeymodifiers: u16, pshadowcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolShadowConnection_Impl, - { + pub const fn new() -> IWRdsProtocolShadowConnection_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, ptargetservername: windows_core::PCWSTR, targetsessionid: u32, hotkeyvk: u8, hotkeymodifiers: u16, pshadowcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolShadowConnection_Impl::Start(this, core::mem::transmute(&ptargetservername), core::mem::transmute_copy(&targetsessionid), core::mem::transmute_copy(&hotkeyvk), core::mem::transmute_copy(&hotkeymodifiers), windows_core::from_raw_borrowed(&pshadowcallback)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWRdsProtocolShadowConnection_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolShadowConnection_Impl::Stop(this).into() } - unsafe extern "system" fn DoTarget(this: *mut core::ffi::c_void, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWRdsProtocolShadowConnection_Impl, - { + unsafe extern "system" fn DoTarget(this: *mut core::ffi::c_void, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolShadowConnection_Impl::DoTarget(this, core::mem::transmute_copy(&pparam1), core::mem::transmute_copy(¶m1size), core::mem::transmute_copy(&pparam2), core::mem::transmute_copy(¶m2size), core::mem::transmute_copy(&pparam3), core::mem::transmute_copy(¶m3size), core::mem::transmute_copy(&pparam4), core::mem::transmute_copy(¶m4size), core::mem::transmute(&pclientname)).into() } @@ -4570,7 +3439,7 @@ impl IWRdsProtocolShadowConnection_Vtbl { iid == &::IID } } -pub trait IWRdsWddmIddProps_Impl: Sized { +pub trait IWRdsWddmIddProps_Impl: Sized + windows_core::IUnknownImpl { fn GetHardwareId(&self, pdisplaydriverhardwareid: &windows_core::PCWSTR, count: u32) -> windows_core::Result<()>; fn OnDriverLoad(&self, sessionid: u32, driverhandle: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()>; fn OnDriverUnload(&self, sessionid: u32) -> windows_core::Result<()>; @@ -4578,35 +3447,20 @@ pub trait IWRdsWddmIddProps_Impl: Sized { } impl windows_core::RuntimeName for IWRdsWddmIddProps {} impl IWRdsWddmIddProps_Vtbl { - pub const fn new() -> IWRdsWddmIddProps_Vtbl - where - Identity: IWRdsWddmIddProps_Impl, - { - unsafe extern "system" fn GetHardwareId(this: *mut core::ffi::c_void, pdisplaydriverhardwareid: windows_core::PCWSTR, count: u32) -> windows_core::HRESULT - where - Identity: IWRdsWddmIddProps_Impl, - { + pub const fn new() -> IWRdsWddmIddProps_Vtbl { + unsafe extern "system" fn GetHardwareId(this: *mut core::ffi::c_void, pdisplaydriverhardwareid: windows_core::PCWSTR, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsWddmIddProps_Impl::GetHardwareId(this, core::mem::transmute(&pdisplaydriverhardwareid), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn OnDriverLoad(this: *mut core::ffi::c_void, sessionid: u32, driverhandle: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IWRdsWddmIddProps_Impl, - { + unsafe extern "system" fn OnDriverLoad(this: *mut core::ffi::c_void, sessionid: u32, driverhandle: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsWddmIddProps_Impl::OnDriverLoad(this, core::mem::transmute_copy(&sessionid), core::mem::transmute_copy(&driverhandle)).into() } - unsafe extern "system" fn OnDriverUnload(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT - where - Identity: IWRdsWddmIddProps_Impl, - { + unsafe extern "system" fn OnDriverUnload(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsWddmIddProps_Impl::OnDriverUnload(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn EnableWddmIdd(this: *mut core::ffi::c_void, enabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWRdsWddmIddProps_Impl, - { + unsafe extern "system" fn EnableWddmIdd(this: *mut core::ffi::c_void, enabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsWddmIddProps_Impl::EnableWddmIdd(this, core::mem::transmute_copy(&enabled)).into() } @@ -4622,35 +3476,23 @@ impl IWRdsWddmIddProps_Vtbl { iid == &::IID } } -pub trait IWRdsWddmIddProps1_Impl: Sized { +pub trait IWRdsWddmIddProps1_Impl: Sized + windows_core::IUnknownImpl { fn GetHardwareId(&self, pdisplaydriverhardwareid: &windows_core::PCWSTR, count: u32) -> windows_core::Result<()>; fn OnDriverLoad(&self, sessionid: u32, deviceinstance: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OnDriverUnload(&self, sessionid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWRdsWddmIddProps1 {} impl IWRdsWddmIddProps1_Vtbl { - pub const fn new() -> IWRdsWddmIddProps1_Vtbl - where - Identity: IWRdsWddmIddProps1_Impl, - { - unsafe extern "system" fn GetHardwareId(this: *mut core::ffi::c_void, pdisplaydriverhardwareid: windows_core::PCWSTR, count: u32) -> windows_core::HRESULT - where - Identity: IWRdsWddmIddProps1_Impl, - { + pub const fn new() -> IWRdsWddmIddProps1_Vtbl { + unsafe extern "system" fn GetHardwareId(this: *mut core::ffi::c_void, pdisplaydriverhardwareid: windows_core::PCWSTR, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsWddmIddProps1_Impl::GetHardwareId(this, core::mem::transmute(&pdisplaydriverhardwareid), core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn OnDriverLoad(this: *mut core::ffi::c_void, sessionid: u32, deviceinstance: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWRdsWddmIddProps1_Impl, - { + unsafe extern "system" fn OnDriverLoad(this: *mut core::ffi::c_void, sessionid: u32, deviceinstance: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsWddmIddProps1_Impl::OnDriverLoad(this, core::mem::transmute_copy(&sessionid), core::mem::transmute(&deviceinstance)).into() } - unsafe extern "system" fn OnDriverUnload(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT - where - Identity: IWRdsWddmIddProps1_Impl, - { + unsafe extern "system" fn OnDriverUnload(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsWddmIddProps1_Impl::OnDriverUnload(this, core::mem::transmute_copy(&sessionid)).into() } @@ -4665,19 +3507,13 @@ impl IWRdsWddmIddProps1_Vtbl { iid == &::IID } } -pub trait IWTSBitmapRenderService_Impl: Sized { +pub trait IWTSBitmapRenderService_Impl: Sized + windows_core::IUnknownImpl { fn GetMappedRenderer(&self, mappingid: u64, pmappedrenderercallback: Option<&IWTSBitmapRendererCallback>) -> windows_core::Result; } impl windows_core::RuntimeName for IWTSBitmapRenderService {} impl IWTSBitmapRenderService_Vtbl { - pub const fn new() -> IWTSBitmapRenderService_Vtbl - where - Identity: IWTSBitmapRenderService_Impl, - { - unsafe extern "system" fn GetMappedRenderer(this: *mut core::ffi::c_void, mappingid: u64, pmappedrenderercallback: *mut core::ffi::c_void, ppmappedrenderer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSBitmapRenderService_Impl, - { + pub const fn new() -> IWTSBitmapRenderService_Vtbl { + unsafe extern "system" fn GetMappedRenderer(this: *mut core::ffi::c_void, mappingid: u64, pmappedrenderercallback: *mut core::ffi::c_void, ppmappedrenderer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSBitmapRenderService_Impl::GetMappedRenderer(this, core::mem::transmute_copy(&mappingid), windows_core::from_raw_borrowed(&pmappedrenderercallback)) { Ok(ok__) => { @@ -4693,28 +3529,19 @@ impl IWTSBitmapRenderService_Vtbl { iid == &::IID } } -pub trait IWTSBitmapRenderer_Impl: Sized { +pub trait IWTSBitmapRenderer_Impl: Sized + windows_core::IUnknownImpl { fn Render(&self, imageformat: &windows_core::GUID, dwwidth: u32, dwheight: u32, cbstride: i32, cbimagebuffer: u32, pimagebuffer: *const u8) -> windows_core::Result<()>; fn GetRendererStatistics(&self) -> windows_core::Result; fn RemoveMapping(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWTSBitmapRenderer {} impl IWTSBitmapRenderer_Vtbl { - pub const fn new() -> IWTSBitmapRenderer_Vtbl - where - Identity: IWTSBitmapRenderer_Impl, - { - unsafe extern "system" fn Render(this: *mut core::ffi::c_void, imageformat: windows_core::GUID, dwwidth: u32, dwheight: u32, cbstride: i32, cbimagebuffer: u32, pimagebuffer: *const u8) -> windows_core::HRESULT - where - Identity: IWTSBitmapRenderer_Impl, - { + pub const fn new() -> IWTSBitmapRenderer_Vtbl { + unsafe extern "system" fn Render(this: *mut core::ffi::c_void, imageformat: windows_core::GUID, dwwidth: u32, dwheight: u32, cbstride: i32, cbimagebuffer: u32, pimagebuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSBitmapRenderer_Impl::Render(this, core::mem::transmute(&imageformat), core::mem::transmute_copy(&dwwidth), core::mem::transmute_copy(&dwheight), core::mem::transmute_copy(&cbstride), core::mem::transmute_copy(&cbimagebuffer), core::mem::transmute_copy(&pimagebuffer)).into() } - unsafe extern "system" fn GetRendererStatistics(this: *mut core::ffi::c_void, pstatistics: *mut BITMAP_RENDERER_STATISTICS) -> windows_core::HRESULT - where - Identity: IWTSBitmapRenderer_Impl, - { + unsafe extern "system" fn GetRendererStatistics(this: *mut core::ffi::c_void, pstatistics: *mut BITMAP_RENDERER_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSBitmapRenderer_Impl::GetRendererStatistics(this) { Ok(ok__) => { @@ -4724,10 +3551,7 @@ impl IWTSBitmapRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveMapping(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSBitmapRenderer_Impl, - { + unsafe extern "system" fn RemoveMapping(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSBitmapRenderer_Impl::RemoveMapping(this).into() } @@ -4742,19 +3566,13 @@ impl IWTSBitmapRenderer_Vtbl { iid == &::IID } } -pub trait IWTSBitmapRendererCallback_Impl: Sized { +pub trait IWTSBitmapRendererCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnTargetSizeChanged(&self, rcnewsize: &super::super::Foundation::RECT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWTSBitmapRendererCallback {} impl IWTSBitmapRendererCallback_Vtbl { - pub const fn new() -> IWTSBitmapRendererCallback_Vtbl - where - Identity: IWTSBitmapRendererCallback_Impl, - { - unsafe extern "system" fn OnTargetSizeChanged(this: *mut core::ffi::c_void, rcnewsize: super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IWTSBitmapRendererCallback_Impl, - { + pub const fn new() -> IWTSBitmapRendererCallback_Vtbl { + unsafe extern "system" fn OnTargetSizeChanged(this: *mut core::ffi::c_void, rcnewsize: super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSBitmapRendererCallback_Impl::OnTargetSizeChanged(this, core::mem::transmute(&rcnewsize)).into() } @@ -4765,21 +3583,15 @@ impl IWTSBitmapRendererCallback_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IWTSListener_Impl: Sized { +pub trait IWTSListener_Impl: Sized + windows_core::IUnknownImpl { fn GetConfiguration(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl windows_core::RuntimeName for IWTSListener {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IWTSListener_Vtbl { - pub const fn new() -> IWTSListener_Vtbl - where - Identity: IWTSListener_Impl, - { - unsafe extern "system" fn GetConfiguration(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSListener_Impl, - { + pub const fn new() -> IWTSListener_Vtbl { + unsafe extern "system" fn GetConfiguration(this: *mut core::ffi::c_void, pppropertybag: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSListener_Impl::GetConfiguration(this) { Ok(ok__) => { @@ -4795,19 +3607,13 @@ impl IWTSListener_Vtbl { iid == &::IID } } -pub trait IWTSListenerCallback_Impl: Sized { +pub trait IWTSListenerCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnNewChannelConnection(&self, pchannel: Option<&IWTSVirtualChannel>, data: &windows_core::BSTR, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWTSListenerCallback {} impl IWTSListenerCallback_Vtbl { - pub const fn new() -> IWTSListenerCallback_Vtbl - where - Identity: IWTSListenerCallback_Impl, - { - unsafe extern "system" fn OnNewChannelConnection(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, data: core::mem::MaybeUninit, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSListenerCallback_Impl, - { + pub const fn new() -> IWTSListenerCallback_Vtbl { + unsafe extern "system" fn OnNewChannelConnection(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, data: core::mem::MaybeUninit, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSListenerCallback_Impl::OnNewChannelConnection(this, windows_core::from_raw_borrowed(&pchannel), core::mem::transmute(&data), core::mem::transmute_copy(&pbaccept), core::mem::transmute_copy(&ppcallback)).into() } @@ -4817,7 +3623,7 @@ impl IWTSListenerCallback_Vtbl { iid == &::IID } } -pub trait IWTSPlugin_Impl: Sized { +pub trait IWTSPlugin_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pchannelmgr: Option<&IWTSVirtualChannelManager>) -> windows_core::Result<()>; fn Connected(&self) -> windows_core::Result<()>; fn Disconnected(&self, dwdisconnectcode: u32) -> windows_core::Result<()>; @@ -4825,35 +3631,20 @@ pub trait IWTSPlugin_Impl: Sized { } impl windows_core::RuntimeName for IWTSPlugin {} impl IWTSPlugin_Vtbl { - pub const fn new() -> IWTSPlugin_Vtbl - where - Identity: IWTSPlugin_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pchannelmgr: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSPlugin_Impl, - { + pub const fn new() -> IWTSPlugin_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pchannelmgr: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSPlugin_Impl::Initialize(this, windows_core::from_raw_borrowed(&pchannelmgr)).into() } - unsafe extern "system" fn Connected(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSPlugin_Impl, - { + unsafe extern "system" fn Connected(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSPlugin_Impl::Connected(this).into() } - unsafe extern "system" fn Disconnected(this: *mut core::ffi::c_void, dwdisconnectcode: u32) -> windows_core::HRESULT - where - Identity: IWTSPlugin_Impl, - { + unsafe extern "system" fn Disconnected(this: *mut core::ffi::c_void, dwdisconnectcode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSPlugin_Impl::Disconnected(this, core::mem::transmute_copy(&dwdisconnectcode)).into() } - unsafe extern "system" fn Terminated(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSPlugin_Impl, - { + unsafe extern "system" fn Terminated(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSPlugin_Impl::Terminated(this).into() } @@ -4869,19 +3660,13 @@ impl IWTSPlugin_Vtbl { iid == &::IID } } -pub trait IWTSPluginServiceProvider_Impl: Sized { +pub trait IWTSPluginServiceProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetService(&self, serviceid: &windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IWTSPluginServiceProvider {} impl IWTSPluginServiceProvider_Vtbl { - pub const fn new() -> IWTSPluginServiceProvider_Vtbl - where - Identity: IWTSPluginServiceProvider_Impl, - { - unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, serviceid: windows_core::GUID, ppunkobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSPluginServiceProvider_Impl, - { + pub const fn new() -> IWTSPluginServiceProvider_Vtbl { + unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, serviceid: windows_core::GUID, ppunkobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSPluginServiceProvider_Impl::GetService(this, core::mem::transmute(&serviceid)) { Ok(ok__) => { @@ -4897,7 +3682,7 @@ impl IWTSPluginServiceProvider_Vtbl { iid == &::IID } } -pub trait IWTSProtocolConnection_Impl: Sized { +pub trait IWTSProtocolConnection_Impl: Sized + windows_core::IUnknownImpl { fn GetLogonErrorRedirector(&self) -> windows_core::Result; fn SendPolicyData(&self, ppolicydata: *const WTS_POLICY_DATA) -> windows_core::Result<()>; fn AcceptConnection(&self) -> windows_core::Result<()>; @@ -4924,14 +3709,8 @@ pub trait IWTSProtocolConnection_Impl: Sized { } impl windows_core::RuntimeName for IWTSProtocolConnection {} impl IWTSProtocolConnection_Vtbl { - pub const fn new() -> IWTSProtocolConnection_Vtbl - where - Identity: IWTSProtocolConnection_Impl, - { - unsafe extern "system" fn GetLogonErrorRedirector(this: *mut core::ffi::c_void, pplogonerrorredir: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + pub const fn new() -> IWTSProtocolConnection_Vtbl { + unsafe extern "system" fn GetLogonErrorRedirector(this: *mut core::ffi::c_void, pplogonerrorredir: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolConnection_Impl::GetLogonErrorRedirector(this) { Ok(ok__) => { @@ -4941,38 +3720,23 @@ impl IWTSProtocolConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendPolicyData(this: *mut core::ffi::c_void, ppolicydata: *const WTS_POLICY_DATA) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn SendPolicyData(this: *mut core::ffi::c_void, ppolicydata: *const WTS_POLICY_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::SendPolicyData(this, core::mem::transmute_copy(&ppolicydata)).into() } - unsafe extern "system" fn AcceptConnection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn AcceptConnection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::AcceptConnection(this).into() } - unsafe extern "system" fn GetClientData(this: *mut core::ffi::c_void, pclientdata: *mut WTS_CLIENT_DATA) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn GetClientData(this: *mut core::ffi::c_void, pclientdata: *mut WTS_CLIENT_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::GetClientData(this, core::mem::transmute_copy(&pclientdata)).into() } - unsafe extern "system" fn GetUserCredentials(this: *mut core::ffi::c_void, pusercreds: *mut WTS_USER_CREDENTIAL) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn GetUserCredentials(this: *mut core::ffi::c_void, pusercreds: *mut WTS_USER_CREDENTIAL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::GetUserCredentials(this, core::mem::transmute_copy(&pusercreds)).into() } - unsafe extern "system" fn GetLicenseConnection(this: *mut core::ffi::c_void, pplicenseconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn GetLicenseConnection(this: *mut core::ffi::c_void, pplicenseconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolConnection_Impl::GetLicenseConnection(this) { Ok(ok__) => { @@ -4982,87 +3746,51 @@ impl IWTSProtocolConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AuthenticateClientToSession(this: *mut core::ffi::c_void, sessionid: *mut WTS_SESSION_ID) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn AuthenticateClientToSession(this: *mut core::ffi::c_void, sessionid: *mut WTS_SESSION_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::AuthenticateClientToSession(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn NotifySessionId(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn NotifySessionId(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::NotifySessionId(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn GetProtocolHandles(this: *mut core::ffi::c_void, pkeyboardhandle: *mut super::super::Foundation::HANDLE_PTR, pmousehandle: *mut super::super::Foundation::HANDLE_PTR, pbeephandle: *mut super::super::Foundation::HANDLE_PTR, pvideohandle: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn GetProtocolHandles(this: *mut core::ffi::c_void, pkeyboardhandle: *mut super::super::Foundation::HANDLE_PTR, pmousehandle: *mut super::super::Foundation::HANDLE_PTR, pbeephandle: *mut super::super::Foundation::HANDLE_PTR, pvideohandle: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::GetProtocolHandles(this, core::mem::transmute_copy(&pkeyboardhandle), core::mem::transmute_copy(&pmousehandle), core::mem::transmute_copy(&pbeephandle), core::mem::transmute_copy(&pvideohandle)).into() } - unsafe extern "system" fn ConnectNotify(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn ConnectNotify(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::ConnectNotify(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn IsUserAllowedToLogon(this: *mut core::ffi::c_void, sessionid: u32, usertoken: super::super::Foundation::HANDLE_PTR, pdomainname: windows_core::PCWSTR, pusername: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn IsUserAllowedToLogon(this: *mut core::ffi::c_void, sessionid: u32, usertoken: super::super::Foundation::HANDLE_PTR, pdomainname: windows_core::PCWSTR, pusername: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::IsUserAllowedToLogon(this, core::mem::transmute_copy(&sessionid), core::mem::transmute_copy(&usertoken), core::mem::transmute(&pdomainname), core::mem::transmute(&pusername)).into() } - unsafe extern "system" fn SessionArbitrationEnumeration(this: *mut core::ffi::c_void, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: super::super::Foundation::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn SessionArbitrationEnumeration(this: *mut core::ffi::c_void, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: super::super::Foundation::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::SessionArbitrationEnumeration(this, core::mem::transmute_copy(&husertoken), core::mem::transmute_copy(&bsinglesessionperuserenabled), core::mem::transmute_copy(&psessionidarray), core::mem::transmute_copy(&pdwsessionidentifiercount)).into() } - unsafe extern "system" fn LogonNotify(this: *mut core::ffi::c_void, hclienttoken: super::super::Foundation::HANDLE_PTR, wszusername: windows_core::PCWSTR, wszdomainname: windows_core::PCWSTR, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn LogonNotify(this: *mut core::ffi::c_void, hclienttoken: super::super::Foundation::HANDLE_PTR, wszusername: windows_core::PCWSTR, wszdomainname: windows_core::PCWSTR, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::LogonNotify(this, core::mem::transmute_copy(&hclienttoken), core::mem::transmute(&wszusername), core::mem::transmute(&wszdomainname), core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn GetUserData(this: *mut core::ffi::c_void, ppolicydata: *const WTS_POLICY_DATA, pclientdata: *mut WTS_USER_DATA) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn GetUserData(this: *mut core::ffi::c_void, ppolicydata: *const WTS_POLICY_DATA, pclientdata: *mut WTS_USER_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::GetUserData(this, core::mem::transmute_copy(&ppolicydata), core::mem::transmute_copy(&pclientdata)).into() } - unsafe extern "system" fn DisconnectNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn DisconnectNotify(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::DisconnectNotify(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::Close(this).into() } - unsafe extern "system" fn GetProtocolStatus(this: *mut core::ffi::c_void, pprotocolstatus: *mut WTS_PROTOCOL_STATUS) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn GetProtocolStatus(this: *mut core::ffi::c_void, pprotocolstatus: *mut WTS_PROTOCOL_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::GetProtocolStatus(this, core::mem::transmute_copy(&pprotocolstatus)).into() } - unsafe extern "system" fn GetLastInputTime(this: *mut core::ffi::c_void, plastinputtime: *mut u64) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn GetLastInputTime(this: *mut core::ffi::c_void, plastinputtime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolConnection_Impl::GetLastInputTime(this) { Ok(ok__) => { @@ -5072,24 +3800,15 @@ impl IWTSProtocolConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetErrorInfo(this: *mut core::ffi::c_void, ulerror: u32) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn SetErrorInfo(this: *mut core::ffi::c_void, ulerror: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::SetErrorInfo(this, core::mem::transmute_copy(&ulerror)).into() } - unsafe extern "system" fn SendBeep(this: *mut core::ffi::c_void, frequency: u32, duration: u32) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn SendBeep(this: *mut core::ffi::c_void, frequency: u32, duration: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::SendBeep(this, core::mem::transmute_copy(&frequency), core::mem::transmute_copy(&duration)).into() } - unsafe extern "system" fn CreateVirtualChannel(this: *mut core::ffi::c_void, szendpointname: windows_core::PCSTR, bstatic: super::super::Foundation::BOOL, requestedpriority: u32, phchannel: *mut usize) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn CreateVirtualChannel(this: *mut core::ffi::c_void, szendpointname: windows_core::PCSTR, bstatic: super::super::Foundation::BOOL, requestedpriority: u32, phchannel: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolConnection_Impl::CreateVirtualChannel(this, core::mem::transmute(&szendpointname), core::mem::transmute_copy(&bstatic), core::mem::transmute_copy(&requestedpriority)) { Ok(ok__) => { @@ -5099,17 +3818,11 @@ impl IWTSProtocolConnection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryProperty(this: *mut core::ffi::c_void, querytype: windows_core::GUID, ulnumentriesin: u32, ulnumentriesout: u32, ppropertyentriesin: *const WTS_PROPERTY_VALUE, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn QueryProperty(this: *mut core::ffi::c_void, querytype: windows_core::GUID, ulnumentriesin: u32, ulnumentriesout: u32, ppropertyentriesin: *const WTS_PROPERTY_VALUE, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::QueryProperty(this, core::mem::transmute(&querytype), core::mem::transmute_copy(&ulnumentriesin), core::mem::transmute_copy(&ulnumentriesout), core::mem::transmute_copy(&ppropertyentriesin), core::mem::transmute_copy(&ppropertyentriesout)).into() } - unsafe extern "system" fn GetShadowConnection(this: *mut core::ffi::c_void, ppshadowconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnection_Impl, - { + unsafe extern "system" fn GetShadowConnection(this: *mut core::ffi::c_void, ppshadowconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolConnection_Impl::GetShadowConnection(this) { Ok(ok__) => { @@ -5150,7 +3863,7 @@ impl IWTSProtocolConnection_Vtbl { iid == &::IID } } -pub trait IWTSProtocolConnectionCallback_Impl: Sized { +pub trait IWTSProtocolConnectionCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnReady(&self) -> windows_core::Result<()>; fn BrokenConnection(&self, reason: u32, source: u32) -> windows_core::Result<()>; fn StopScreenUpdates(&self) -> windows_core::Result<()>; @@ -5159,42 +3872,24 @@ pub trait IWTSProtocolConnectionCallback_Impl: Sized { } impl windows_core::RuntimeName for IWTSProtocolConnectionCallback {} impl IWTSProtocolConnectionCallback_Vtbl { - pub const fn new() -> IWTSProtocolConnectionCallback_Vtbl - where - Identity: IWTSProtocolConnectionCallback_Impl, - { - unsafe extern "system" fn OnReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnectionCallback_Impl, - { + pub const fn new() -> IWTSProtocolConnectionCallback_Vtbl { + unsafe extern "system" fn OnReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnectionCallback_Impl::OnReady(this).into() } - unsafe extern "system" fn BrokenConnection(this: *mut core::ffi::c_void, reason: u32, source: u32) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnectionCallback_Impl, - { + unsafe extern "system" fn BrokenConnection(this: *mut core::ffi::c_void, reason: u32, source: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnectionCallback_Impl::BrokenConnection(this, core::mem::transmute_copy(&reason), core::mem::transmute_copy(&source)).into() } - unsafe extern "system" fn StopScreenUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnectionCallback_Impl, - { + unsafe extern "system" fn StopScreenUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnectionCallback_Impl::StopScreenUpdates(this).into() } - unsafe extern "system" fn RedrawWindow(this: *mut core::ffi::c_void, rect: *const WTS_SMALL_RECT) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnectionCallback_Impl, - { + unsafe extern "system" fn RedrawWindow(this: *mut core::ffi::c_void, rect: *const WTS_SMALL_RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnectionCallback_Impl::RedrawWindow(this, core::mem::transmute_copy(&rect)).into() } - unsafe extern "system" fn DisplayIOCtl(this: *mut core::ffi::c_void, displayioctl: *const WTS_DISPLAY_IOCTL) -> windows_core::HRESULT - where - Identity: IWTSProtocolConnectionCallback_Impl, - { + unsafe extern "system" fn DisplayIOCtl(this: *mut core::ffi::c_void, displayioctl: *const WTS_DISPLAY_IOCTL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnectionCallback_Impl::DisplayIOCtl(this, core::mem::transmute_copy(&displayioctl)).into() } @@ -5211,7 +3906,7 @@ impl IWTSProtocolConnectionCallback_Vtbl { iid == &::IID } } -pub trait IWTSProtocolLicenseConnection_Impl: Sized { +pub trait IWTSProtocolLicenseConnection_Impl: Sized + windows_core::IUnknownImpl { fn RequestLicensingCapabilities(&self, pplicensecapabilities: *mut WTS_LICENSE_CAPABILITIES, pcblicensecapabilities: *mut u32) -> windows_core::Result<()>; fn SendClientLicense(&self, pclientlicense: *const u8, cbclientlicense: u32) -> windows_core::Result<()>; fn RequestClientLicense(&self, reserve1: *const u8, reserve2: u32, ppclientlicense: *mut u8, pcbclientlicense: *mut u32) -> windows_core::Result<()>; @@ -5219,35 +3914,20 @@ pub trait IWTSProtocolLicenseConnection_Impl: Sized { } impl windows_core::RuntimeName for IWTSProtocolLicenseConnection {} impl IWTSProtocolLicenseConnection_Vtbl { - pub const fn new() -> IWTSProtocolLicenseConnection_Vtbl - where - Identity: IWTSProtocolLicenseConnection_Impl, - { - unsafe extern "system" fn RequestLicensingCapabilities(this: *mut core::ffi::c_void, pplicensecapabilities: *mut WTS_LICENSE_CAPABILITIES, pcblicensecapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IWTSProtocolLicenseConnection_Impl, - { + pub const fn new() -> IWTSProtocolLicenseConnection_Vtbl { + unsafe extern "system" fn RequestLicensingCapabilities(this: *mut core::ffi::c_void, pplicensecapabilities: *mut WTS_LICENSE_CAPABILITIES, pcblicensecapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolLicenseConnection_Impl::RequestLicensingCapabilities(this, core::mem::transmute_copy(&pplicensecapabilities), core::mem::transmute_copy(&pcblicensecapabilities)).into() } - unsafe extern "system" fn SendClientLicense(this: *mut core::ffi::c_void, pclientlicense: *const u8, cbclientlicense: u32) -> windows_core::HRESULT - where - Identity: IWTSProtocolLicenseConnection_Impl, - { + unsafe extern "system" fn SendClientLicense(this: *mut core::ffi::c_void, pclientlicense: *const u8, cbclientlicense: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolLicenseConnection_Impl::SendClientLicense(this, core::mem::transmute_copy(&pclientlicense), core::mem::transmute_copy(&cbclientlicense)).into() } - unsafe extern "system" fn RequestClientLicense(this: *mut core::ffi::c_void, reserve1: *const u8, reserve2: u32, ppclientlicense: *mut u8, pcbclientlicense: *mut u32) -> windows_core::HRESULT - where - Identity: IWTSProtocolLicenseConnection_Impl, - { + unsafe extern "system" fn RequestClientLicense(this: *mut core::ffi::c_void, reserve1: *const u8, reserve2: u32, ppclientlicense: *mut u8, pcbclientlicense: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolLicenseConnection_Impl::RequestClientLicense(this, core::mem::transmute_copy(&reserve1), core::mem::transmute_copy(&reserve2), core::mem::transmute_copy(&ppclientlicense), core::mem::transmute_copy(&pcbclientlicense)).into() } - unsafe extern "system" fn ProtocolComplete(this: *mut core::ffi::c_void, ulcomplete: u32) -> windows_core::HRESULT - where - Identity: IWTSProtocolLicenseConnection_Impl, - { + unsafe extern "system" fn ProtocolComplete(this: *mut core::ffi::c_void, ulcomplete: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolLicenseConnection_Impl::ProtocolComplete(this, core::mem::transmute_copy(&ulcomplete)).into() } @@ -5263,27 +3943,18 @@ impl IWTSProtocolLicenseConnection_Vtbl { iid == &::IID } } -pub trait IWTSProtocolListener_Impl: Sized { +pub trait IWTSProtocolListener_Impl: Sized + windows_core::IUnknownImpl { fn StartListen(&self, pcallback: Option<&IWTSProtocolListenerCallback>) -> windows_core::Result<()>; fn StopListen(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWTSProtocolListener {} impl IWTSProtocolListener_Vtbl { - pub const fn new() -> IWTSProtocolListener_Vtbl - where - Identity: IWTSProtocolListener_Impl, - { - unsafe extern "system" fn StartListen(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolListener_Impl, - { + pub const fn new() -> IWTSProtocolListener_Vtbl { + unsafe extern "system" fn StartListen(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolListener_Impl::StartListen(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn StopListen(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolListener_Impl, - { + unsafe extern "system" fn StopListen(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolListener_Impl::StopListen(this).into() } @@ -5297,19 +3968,13 @@ impl IWTSProtocolListener_Vtbl { iid == &::IID } } -pub trait IWTSProtocolListenerCallback_Impl: Sized { +pub trait IWTSProtocolListenerCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnConnected(&self, pconnection: Option<&IWTSProtocolConnection>) -> windows_core::Result; } impl windows_core::RuntimeName for IWTSProtocolListenerCallback {} impl IWTSProtocolListenerCallback_Vtbl { - pub const fn new() -> IWTSProtocolListenerCallback_Vtbl - where - Identity: IWTSProtocolListenerCallback_Impl, - { - unsafe extern "system" fn OnConnected(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, pcallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolListenerCallback_Impl, - { + pub const fn new() -> IWTSProtocolListenerCallback_Vtbl { + unsafe extern "system" fn OnConnected(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void, pcallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolListenerCallback_Impl::OnConnected(this, windows_core::from_raw_borrowed(&pconnection)) { Ok(ok__) => { @@ -5325,7 +3990,7 @@ impl IWTSProtocolListenerCallback_Vtbl { iid == &::IID } } -pub trait IWTSProtocolLogonErrorRedirector_Impl: Sized { +pub trait IWTSProtocolLogonErrorRedirector_Impl: Sized + windows_core::IUnknownImpl { fn OnBeginPainting(&self) -> windows_core::Result<()>; fn RedirectStatus(&self, pszmessage: &windows_core::PCWSTR) -> windows_core::Result; fn RedirectMessage(&self, pszcaption: &windows_core::PCWSTR, pszmessage: &windows_core::PCWSTR, utype: u32) -> windows_core::Result; @@ -5333,21 +3998,12 @@ pub trait IWTSProtocolLogonErrorRedirector_Impl: Sized { } impl windows_core::RuntimeName for IWTSProtocolLogonErrorRedirector {} impl IWTSProtocolLogonErrorRedirector_Vtbl { - pub const fn new() -> IWTSProtocolLogonErrorRedirector_Vtbl - where - Identity: IWTSProtocolLogonErrorRedirector_Impl, - { - unsafe extern "system" fn OnBeginPainting(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolLogonErrorRedirector_Impl, - { + pub const fn new() -> IWTSProtocolLogonErrorRedirector_Vtbl { + unsafe extern "system" fn OnBeginPainting(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolLogonErrorRedirector_Impl::OnBeginPainting(this).into() } - unsafe extern "system" fn RedirectStatus(this: *mut core::ffi::c_void, pszmessage: windows_core::PCWSTR, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT - where - Identity: IWTSProtocolLogonErrorRedirector_Impl, - { + unsafe extern "system" fn RedirectStatus(this: *mut core::ffi::c_void, pszmessage: windows_core::PCWSTR, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolLogonErrorRedirector_Impl::RedirectStatus(this, core::mem::transmute(&pszmessage)) { Ok(ok__) => { @@ -5357,10 +4013,7 @@ impl IWTSProtocolLogonErrorRedirector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RedirectMessage(this: *mut core::ffi::c_void, pszcaption: windows_core::PCWSTR, pszmessage: windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT - where - Identity: IWTSProtocolLogonErrorRedirector_Impl, - { + unsafe extern "system" fn RedirectMessage(this: *mut core::ffi::c_void, pszcaption: windows_core::PCWSTR, pszmessage: windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolLogonErrorRedirector_Impl::RedirectMessage(this, core::mem::transmute(&pszcaption), core::mem::transmute(&pszmessage), core::mem::transmute_copy(&utype)) { Ok(ok__) => { @@ -5370,10 +4023,7 @@ impl IWTSProtocolLogonErrorRedirector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RedirectLogonError(this: *mut core::ffi::c_void, ntsstatus: i32, ntssubstatus: i32, pszcaption: windows_core::PCWSTR, pszmessage: windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT - where - Identity: IWTSProtocolLogonErrorRedirector_Impl, - { + unsafe extern "system" fn RedirectLogonError(this: *mut core::ffi::c_void, ntsstatus: i32, ntssubstatus: i32, pszcaption: windows_core::PCWSTR, pszmessage: windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolLogonErrorRedirector_Impl::RedirectLogonError(this, core::mem::transmute_copy(&ntsstatus), core::mem::transmute_copy(&ntssubstatus), core::mem::transmute(&pszcaption), core::mem::transmute(&pszmessage), core::mem::transmute_copy(&utype)) { Ok(ok__) => { @@ -5395,7 +4045,7 @@ impl IWTSProtocolLogonErrorRedirector_Vtbl { iid == &::IID } } -pub trait IWTSProtocolManager_Impl: Sized { +pub trait IWTSProtocolManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateListener(&self, wszlistenername: &windows_core::PCWSTR) -> windows_core::Result; fn NotifyServiceStateChange(&self, ptsservicestatechange: *const WTS_SERVICE_STATE) -> windows_core::Result<()>; fn NotifySessionOfServiceStart(&self, sessionid: *const WTS_SESSION_ID) -> windows_core::Result<()>; @@ -5404,14 +4054,8 @@ pub trait IWTSProtocolManager_Impl: Sized { } impl windows_core::RuntimeName for IWTSProtocolManager {} impl IWTSProtocolManager_Vtbl { - pub const fn new() -> IWTSProtocolManager_Vtbl - where - Identity: IWTSProtocolManager_Impl, - { - unsafe extern "system" fn CreateListener(this: *mut core::ffi::c_void, wszlistenername: windows_core::PCWSTR, pprotocollistener: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolManager_Impl, - { + pub const fn new() -> IWTSProtocolManager_Vtbl { + unsafe extern "system" fn CreateListener(this: *mut core::ffi::c_void, wszlistenername: windows_core::PCWSTR, pprotocollistener: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolManager_Impl::CreateListener(this, core::mem::transmute(&wszlistenername)) { Ok(ok__) => { @@ -5421,31 +4065,19 @@ impl IWTSProtocolManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyServiceStateChange(this: *mut core::ffi::c_void, ptsservicestatechange: *const WTS_SERVICE_STATE) -> windows_core::HRESULT - where - Identity: IWTSProtocolManager_Impl, - { + unsafe extern "system" fn NotifyServiceStateChange(this: *mut core::ffi::c_void, ptsservicestatechange: *const WTS_SERVICE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolManager_Impl::NotifyServiceStateChange(this, core::mem::transmute_copy(&ptsservicestatechange)).into() } - unsafe extern "system" fn NotifySessionOfServiceStart(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT - where - Identity: IWTSProtocolManager_Impl, - { + unsafe extern "system" fn NotifySessionOfServiceStart(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolManager_Impl::NotifySessionOfServiceStart(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn NotifySessionOfServiceStop(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT - where - Identity: IWTSProtocolManager_Impl, - { + unsafe extern "system" fn NotifySessionOfServiceStop(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolManager_Impl::NotifySessionOfServiceStop(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn NotifySessionStateChange(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID, eventid: u32) -> windows_core::HRESULT - where - Identity: IWTSProtocolManager_Impl, - { + unsafe extern "system" fn NotifySessionStateChange(this: *mut core::ffi::c_void, sessionid: *const WTS_SESSION_ID, eventid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolManager_Impl::NotifySessionStateChange(this, core::mem::transmute_copy(&sessionid), core::mem::transmute_copy(&eventid)).into() } @@ -5462,27 +4094,18 @@ impl IWTSProtocolManager_Vtbl { iid == &::IID } } -pub trait IWTSProtocolShadowCallback_Impl: Sized { +pub trait IWTSProtocolShadowCallback_Impl: Sized + windows_core::IUnknownImpl { fn StopShadow(&self) -> windows_core::Result<()>; fn InvokeTargetShadow(&self, ptargetservername: &windows_core::PCWSTR, targetsessionid: u32, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWTSProtocolShadowCallback {} impl IWTSProtocolShadowCallback_Vtbl { - pub const fn new() -> IWTSProtocolShadowCallback_Vtbl - where - Identity: IWTSProtocolShadowCallback_Impl, - { - unsafe extern "system" fn StopShadow(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolShadowCallback_Impl, - { + pub const fn new() -> IWTSProtocolShadowCallback_Vtbl { + unsafe extern "system" fn StopShadow(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolShadowCallback_Impl::StopShadow(this).into() } - unsafe extern "system" fn InvokeTargetShadow(this: *mut core::ffi::c_void, ptargetservername: windows_core::PCWSTR, targetsessionid: u32, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWTSProtocolShadowCallback_Impl, - { + unsafe extern "system" fn InvokeTargetShadow(this: *mut core::ffi::c_void, ptargetservername: windows_core::PCWSTR, targetsessionid: u32, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolShadowCallback_Impl::InvokeTargetShadow(this, core::mem::transmute(&ptargetservername), core::mem::transmute_copy(&targetsessionid), core::mem::transmute_copy(&pparam1), core::mem::transmute_copy(¶m1size), core::mem::transmute_copy(&pparam2), core::mem::transmute_copy(¶m2size), core::mem::transmute_copy(&pparam3), core::mem::transmute_copy(¶m3size), core::mem::transmute_copy(&pparam4), core::mem::transmute_copy(¶m4size), core::mem::transmute(&pclientname)).into() } @@ -5496,35 +4119,23 @@ impl IWTSProtocolShadowCallback_Vtbl { iid == &::IID } } -pub trait IWTSProtocolShadowConnection_Impl: Sized { +pub trait IWTSProtocolShadowConnection_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self, ptargetservername: &windows_core::PCWSTR, targetsessionid: u32, hotkeyvk: u8, hotkeymodifiers: u16, pshadowcallback: Option<&IWTSProtocolShadowCallback>) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; fn DoTarget(&self, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWTSProtocolShadowConnection {} impl IWTSProtocolShadowConnection_Vtbl { - pub const fn new() -> IWTSProtocolShadowConnection_Vtbl - where - Identity: IWTSProtocolShadowConnection_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, ptargetservername: windows_core::PCWSTR, targetsessionid: u32, hotkeyvk: u8, hotkeymodifiers: u16, pshadowcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolShadowConnection_Impl, - { + pub const fn new() -> IWTSProtocolShadowConnection_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, ptargetservername: windows_core::PCWSTR, targetsessionid: u32, hotkeyvk: u8, hotkeymodifiers: u16, pshadowcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolShadowConnection_Impl::Start(this, core::mem::transmute(&ptargetservername), core::mem::transmute_copy(&targetsessionid), core::mem::transmute_copy(&hotkeyvk), core::mem::transmute_copy(&hotkeymodifiers), windows_core::from_raw_borrowed(&pshadowcallback)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSProtocolShadowConnection_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolShadowConnection_Impl::Stop(this).into() } - unsafe extern "system" fn DoTarget(this: *mut core::ffi::c_void, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWTSProtocolShadowConnection_Impl, - { + unsafe extern "system" fn DoTarget(this: *mut core::ffi::c_void, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolShadowConnection_Impl::DoTarget(this, core::mem::transmute_copy(&pparam1), core::mem::transmute_copy(¶m1size), core::mem::transmute_copy(&pparam2), core::mem::transmute_copy(¶m2size), core::mem::transmute_copy(&pparam3), core::mem::transmute_copy(¶m3size), core::mem::transmute_copy(&pparam4), core::mem::transmute_copy(¶m4size), core::mem::transmute(&pclientname)).into() } @@ -5539,7 +4150,7 @@ impl IWTSProtocolShadowConnection_Vtbl { iid == &::IID } } -pub trait IWTSSBPlugin_Impl: Sized { +pub trait IWTSSBPlugin_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result; fn WTSSBX_MachineChangeNotification(&self, notificationtype: WTSSBX_NOTIFICATION_TYPE, machineid: i32, pmachineinfo: *const WTSSBX_MACHINE_INFO) -> windows_core::Result<()>; fn WTSSBX_SessionChangeNotification(&self, notificationtype: WTSSBX_NOTIFICATION_TYPE, machineid: i32, numofsessions: u32, sessioninfo: *const WTSSBX_SESSION_INFO) -> windows_core::Result<()>; @@ -5549,14 +4160,8 @@ pub trait IWTSSBPlugin_Impl: Sized { } impl windows_core::RuntimeName for IWTSSBPlugin {} impl IWTSSBPlugin_Vtbl { - pub const fn new() -> IWTSSBPlugin_Vtbl - where - Identity: IWTSSBPlugin_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, plugincapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IWTSSBPlugin_Impl, - { + pub const fn new() -> IWTSSBPlugin_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, plugincapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSSBPlugin_Impl::Initialize(this) { Ok(ok__) => { @@ -5566,38 +4171,23 @@ impl IWTSSBPlugin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WTSSBX_MachineChangeNotification(this: *mut core::ffi::c_void, notificationtype: WTSSBX_NOTIFICATION_TYPE, machineid: i32, pmachineinfo: *const WTSSBX_MACHINE_INFO) -> windows_core::HRESULT - where - Identity: IWTSSBPlugin_Impl, - { + unsafe extern "system" fn WTSSBX_MachineChangeNotification(this: *mut core::ffi::c_void, notificationtype: WTSSBX_NOTIFICATION_TYPE, machineid: i32, pmachineinfo: *const WTSSBX_MACHINE_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSSBPlugin_Impl::WTSSBX_MachineChangeNotification(this, core::mem::transmute_copy(¬ificationtype), core::mem::transmute_copy(&machineid), core::mem::transmute_copy(&pmachineinfo)).into() } - unsafe extern "system" fn WTSSBX_SessionChangeNotification(this: *mut core::ffi::c_void, notificationtype: WTSSBX_NOTIFICATION_TYPE, machineid: i32, numofsessions: u32, sessioninfo: *const WTSSBX_SESSION_INFO) -> windows_core::HRESULT - where - Identity: IWTSSBPlugin_Impl, - { + unsafe extern "system" fn WTSSBX_SessionChangeNotification(this: *mut core::ffi::c_void, notificationtype: WTSSBX_NOTIFICATION_TYPE, machineid: i32, numofsessions: u32, sessioninfo: *const WTSSBX_SESSION_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSSBPlugin_Impl::WTSSBX_SessionChangeNotification(this, core::mem::transmute_copy(¬ificationtype), core::mem::transmute_copy(&machineid), core::mem::transmute_copy(&numofsessions), core::mem::transmute_copy(&sessioninfo)).into() } - unsafe extern "system" fn WTSSBX_GetMostSuitableServer(this: *mut core::ffi::c_void, username: windows_core::PCWSTR, domainname: windows_core::PCWSTR, applicationtype: windows_core::PCWSTR, farmname: windows_core::PCWSTR, pmachineid: *mut i32) -> windows_core::HRESULT - where - Identity: IWTSSBPlugin_Impl, - { + unsafe extern "system" fn WTSSBX_GetMostSuitableServer(this: *mut core::ffi::c_void, username: windows_core::PCWSTR, domainname: windows_core::PCWSTR, applicationtype: windows_core::PCWSTR, farmname: windows_core::PCWSTR, pmachineid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSSBPlugin_Impl::WTSSBX_GetMostSuitableServer(this, core::mem::transmute(&username), core::mem::transmute(&domainname), core::mem::transmute(&applicationtype), core::mem::transmute(&farmname), core::mem::transmute_copy(&pmachineid)).into() } - unsafe extern "system" fn Terminated(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSSBPlugin_Impl, - { + unsafe extern "system" fn Terminated(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSSBPlugin_Impl::Terminated(this).into() } - unsafe extern "system" fn WTSSBX_GetUserExternalSession(this: *mut core::ffi::c_void, username: windows_core::PCWSTR, domainname: windows_core::PCWSTR, applicationtype: windows_core::PCWSTR, redirectorinternalip: *const WTSSBX_IP_ADDRESS, psessionid: *mut u32, pmachineconnectinfo: *mut WTSSBX_MACHINE_CONNECT_INFO) -> windows_core::HRESULT - where - Identity: IWTSSBPlugin_Impl, - { + unsafe extern "system" fn WTSSBX_GetUserExternalSession(this: *mut core::ffi::c_void, username: windows_core::PCWSTR, domainname: windows_core::PCWSTR, applicationtype: windows_core::PCWSTR, redirectorinternalip: *const WTSSBX_IP_ADDRESS, psessionid: *mut u32, pmachineconnectinfo: *mut WTSSBX_MACHINE_CONNECT_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSSBPlugin_Impl::WTSSBX_GetUserExternalSession(this, core::mem::transmute(&username), core::mem::transmute(&domainname), core::mem::transmute(&applicationtype), core::mem::transmute_copy(&redirectorinternalip), core::mem::transmute_copy(&psessionid), core::mem::transmute_copy(&pmachineconnectinfo)).into() } @@ -5615,27 +4205,18 @@ impl IWTSSBPlugin_Vtbl { iid == &::IID } } -pub trait IWTSVirtualChannel_Impl: Sized { +pub trait IWTSVirtualChannel_Impl: Sized + windows_core::IUnknownImpl { fn Write(&self, cbsize: u32, pbuffer: *const u8, preserved: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWTSVirtualChannel {} impl IWTSVirtualChannel_Vtbl { - pub const fn new() -> IWTSVirtualChannel_Vtbl - where - Identity: IWTSVirtualChannel_Impl, - { - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, cbsize: u32, pbuffer: *const u8, preserved: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSVirtualChannel_Impl, - { + pub const fn new() -> IWTSVirtualChannel_Vtbl { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, cbsize: u32, pbuffer: *const u8, preserved: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSVirtualChannel_Impl::Write(this, core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pbuffer), windows_core::from_raw_borrowed(&preserved)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSVirtualChannel_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSVirtualChannel_Impl::Close(this).into() } @@ -5645,27 +4226,18 @@ impl IWTSVirtualChannel_Vtbl { iid == &::IID } } -pub trait IWTSVirtualChannelCallback_Impl: Sized { +pub trait IWTSVirtualChannelCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnDataReceived(&self, cbsize: u32, pbuffer: *const u8) -> windows_core::Result<()>; fn OnClose(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWTSVirtualChannelCallback {} impl IWTSVirtualChannelCallback_Vtbl { - pub const fn new() -> IWTSVirtualChannelCallback_Vtbl - where - Identity: IWTSVirtualChannelCallback_Impl, - { - unsafe extern "system" fn OnDataReceived(this: *mut core::ffi::c_void, cbsize: u32, pbuffer: *const u8) -> windows_core::HRESULT - where - Identity: IWTSVirtualChannelCallback_Impl, - { + pub const fn new() -> IWTSVirtualChannelCallback_Vtbl { + unsafe extern "system" fn OnDataReceived(this: *mut core::ffi::c_void, cbsize: u32, pbuffer: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSVirtualChannelCallback_Impl::OnDataReceived(this, core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&pbuffer)).into() } - unsafe extern "system" fn OnClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSVirtualChannelCallback_Impl, - { + unsafe extern "system" fn OnClose(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSVirtualChannelCallback_Impl::OnClose(this).into() } @@ -5679,19 +4251,13 @@ impl IWTSVirtualChannelCallback_Vtbl { iid == &::IID } } -pub trait IWTSVirtualChannelManager_Impl: Sized { +pub trait IWTSVirtualChannelManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateListener(&self, pszchannelname: &windows_core::PCSTR, uflags: u32, plistenercallback: Option<&IWTSListenerCallback>) -> windows_core::Result; } impl windows_core::RuntimeName for IWTSVirtualChannelManager {} impl IWTSVirtualChannelManager_Vtbl { - pub const fn new() -> IWTSVirtualChannelManager_Vtbl - where - Identity: IWTSVirtualChannelManager_Impl, - { - unsafe extern "system" fn CreateListener(this: *mut core::ffi::c_void, pszchannelname: windows_core::PCSTR, uflags: u32, plistenercallback: *mut core::ffi::c_void, pplistener: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWTSVirtualChannelManager_Impl, - { + pub const fn new() -> IWTSVirtualChannelManager_Vtbl { + unsafe extern "system" fn CreateListener(this: *mut core::ffi::c_void, pszchannelname: windows_core::PCSTR, uflags: u32, plistenercallback: *mut core::ffi::c_void, pplistener: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSVirtualChannelManager_Impl::CreateListener(this, core::mem::transmute(&pszchannelname), core::mem::transmute_copy(&uflags), windows_core::from_raw_borrowed(&plistenercallback)) { Ok(ok__) => { @@ -5708,7 +4274,7 @@ impl IWTSVirtualChannelManager_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWorkspace_Impl: Sized { +pub trait IWorkspace_Impl: Sized + windows_core::IUnknownImpl { fn GetWorkspaceNames(&self) -> windows_core::Result<*mut super::Com::SAFEARRAY>; fn StartRemoteApplication(&self, bstrworkspaceid: &windows_core::BSTR, psaparams: *const super::Com::SAFEARRAY) -> windows_core::Result<()>; fn GetProcessId(&self) -> windows_core::Result; @@ -5717,14 +4283,8 @@ pub trait IWorkspace_Impl: Sized { impl windows_core::RuntimeName for IWorkspace {} #[cfg(feature = "Win32_System_Com")] impl IWorkspace_Vtbl { - pub const fn new() -> IWorkspace_Vtbl - where - Identity: IWorkspace_Impl, - { - unsafe extern "system" fn GetWorkspaceNames(this: *mut core::ffi::c_void, psawkspnames: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IWorkspace_Impl, - { + pub const fn new() -> IWorkspace_Vtbl { + unsafe extern "system" fn GetWorkspaceNames(this: *mut core::ffi::c_void, psawkspnames: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspace_Impl::GetWorkspaceNames(this) { Ok(ok__) => { @@ -5734,17 +4294,11 @@ impl IWorkspace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartRemoteApplication(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, psaparams: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IWorkspace_Impl, - { + unsafe extern "system" fn StartRemoteApplication(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, psaparams: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspace_Impl::StartRemoteApplication(this, core::mem::transmute(&bstrworkspaceid), core::mem::transmute_copy(&psaparams)).into() } - unsafe extern "system" fn GetProcessId(this: *mut core::ffi::c_void, pulprocessid: *mut u32) -> windows_core::HRESULT - where - Identity: IWorkspace_Impl, - { + unsafe extern "system" fn GetProcessId(this: *mut core::ffi::c_void, pulprocessid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspace_Impl::GetProcessId(this) { Ok(ok__) => { @@ -5773,14 +4327,8 @@ pub trait IWorkspace2_Impl: Sized + IWorkspace_Impl { impl windows_core::RuntimeName for IWorkspace2 {} #[cfg(feature = "Win32_System_Com")] impl IWorkspace2_Vtbl { - pub const fn new() -> IWorkspace2_Vtbl - where - Identity: IWorkspace2_Impl, - { - unsafe extern "system" fn StartRemoteApplicationEx(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrrequestingappid: core::mem::MaybeUninit, bstrrequestingappfamilyname: core::mem::MaybeUninit, blaunchintoimmersiveclient: super::super::Foundation::VARIANT_BOOL, bstrimmersiveclientactivationcontext: core::mem::MaybeUninit, psaparams: *const super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IWorkspace2_Impl, - { + pub const fn new() -> IWorkspace2_Vtbl { + unsafe extern "system" fn StartRemoteApplicationEx(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrrequestingappid: core::mem::MaybeUninit, bstrrequestingappfamilyname: core::mem::MaybeUninit, blaunchintoimmersiveclient: super::super::Foundation::VARIANT_BOOL, bstrimmersiveclientactivationcontext: core::mem::MaybeUninit, psaparams: *const super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspace2_Impl::StartRemoteApplicationEx(this, 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() } @@ -5799,14 +4347,8 @@ pub trait IWorkspace3_Impl: Sized + IWorkspace2_Impl { impl windows_core::RuntimeName for IWorkspace3 {} #[cfg(feature = "Win32_System_Com")] impl IWorkspace3_Vtbl { - pub const fn new() -> IWorkspace3_Vtbl - where - Identity: IWorkspace3_Impl, - { - unsafe extern "system" fn GetClaimsToken2(this: *mut core::ffi::c_void, bstrclaimshint: core::mem::MaybeUninit, bstruserhint: core::mem::MaybeUninit, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT, pbstraccesstoken: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspace3_Impl, - { + pub const fn new() -> IWorkspace3_Vtbl { + unsafe extern "system" fn GetClaimsToken2(this: *mut core::ffi::c_void, bstrclaimshint: core::mem::MaybeUninit, bstruserhint: core::mem::MaybeUninit, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT, pbstraccesstoken: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspace3_Impl::GetClaimsToken2(this, core::mem::transmute(&bstrclaimshint), core::mem::transmute(&bstruserhint), core::mem::transmute_copy(&claimcookie), core::mem::transmute_copy(&hwndcreduiparent), core::mem::transmute(&rectcreduiparent)) { Ok(ok__) => { @@ -5816,10 +4358,7 @@ impl IWorkspace3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClaimsToken(this: *mut core::ffi::c_void, bstraccesstoken: core::mem::MaybeUninit, ullaccesstokenexpiration: u64, bstrrefreshtoken: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspace3_Impl, - { + unsafe extern "system" fn SetClaimsToken(this: *mut core::ffi::c_void, bstraccesstoken: core::mem::MaybeUninit, ullaccesstokenexpiration: u64, bstrrefreshtoken: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspace3_Impl::SetClaimsToken(this, core::mem::transmute(&bstraccesstoken), core::mem::transmute_copy(&ullaccesstokenexpiration), core::mem::transmute(&bstrrefreshtoken)).into() } @@ -5833,21 +4372,15 @@ impl IWorkspace3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IWorkspaceClientExt_Impl: Sized { +pub trait IWorkspaceClientExt_Impl: Sized + windows_core::IUnknownImpl { fn GetResourceId(&self) -> windows_core::Result; fn GetResourceDisplayName(&self) -> windows_core::Result; fn IssueDisconnect(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWorkspaceClientExt {} impl IWorkspaceClientExt_Vtbl { - pub const fn new() -> IWorkspaceClientExt_Vtbl - where - Identity: IWorkspaceClientExt_Impl, - { - unsafe extern "system" fn GetResourceId(this: *mut core::ffi::c_void, bstrworkspaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceClientExt_Impl, - { + pub const fn new() -> IWorkspaceClientExt_Vtbl { + unsafe extern "system" fn GetResourceId(this: *mut core::ffi::c_void, bstrworkspaceid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspaceClientExt_Impl::GetResourceId(this) { Ok(ok__) => { @@ -5857,10 +4390,7 @@ impl IWorkspaceClientExt_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResourceDisplayName(this: *mut core::ffi::c_void, bstrworkspacedisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceClientExt_Impl, - { + unsafe extern "system" fn GetResourceDisplayName(this: *mut core::ffi::c_void, bstrworkspacedisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspaceClientExt_Impl::GetResourceDisplayName(this) { Ok(ok__) => { @@ -5870,10 +4400,7 @@ impl IWorkspaceClientExt_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IssueDisconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWorkspaceClientExt_Impl, - { + unsafe extern "system" fn IssueDisconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceClientExt_Impl::IssueDisconnect(this).into() } @@ -5888,20 +4415,14 @@ impl IWorkspaceClientExt_Vtbl { iid == &::IID } } -pub trait IWorkspaceRegistration_Impl: Sized { +pub trait IWorkspaceRegistration_Impl: Sized + windows_core::IUnknownImpl { fn AddResource(&self, punk: Option<&IWorkspaceClientExt>) -> windows_core::Result; fn RemoveResource(&self, dwcookieconnection: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWorkspaceRegistration {} impl IWorkspaceRegistration_Vtbl { - pub const fn new() -> IWorkspaceRegistration_Vtbl - where - Identity: IWorkspaceRegistration_Impl, - { - unsafe extern "system" fn AddResource(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IWorkspaceRegistration_Impl, - { + pub const fn new() -> IWorkspaceRegistration_Vtbl { + unsafe extern "system" fn AddResource(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspaceRegistration_Impl::AddResource(this, windows_core::from_raw_borrowed(&punk)) { Ok(ok__) => { @@ -5911,10 +4432,7 @@ impl IWorkspaceRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveResource(this: *mut core::ffi::c_void, dwcookieconnection: u32) -> windows_core::HRESULT - where - Identity: IWorkspaceRegistration_Impl, - { + unsafe extern "system" fn RemoveResource(this: *mut core::ffi::c_void, dwcookieconnection: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceRegistration_Impl::RemoveResource(this, core::mem::transmute_copy(&dwcookieconnection)).into() } @@ -5934,21 +4452,12 @@ pub trait IWorkspaceRegistration2_Impl: Sized + IWorkspaceRegistration_Impl { } impl windows_core::RuntimeName for IWorkspaceRegistration2 {} impl IWorkspaceRegistration2_Vtbl { - pub const fn new() -> IWorkspaceRegistration2_Vtbl - where - Identity: IWorkspaceRegistration2_Impl, - { - unsafe extern "system" fn AddResourceEx(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, bstreventloguploadaddress: core::mem::MaybeUninit, pdwcookie: *mut u32, correlationid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWorkspaceRegistration2_Impl, - { + pub const fn new() -> IWorkspaceRegistration2_Vtbl { + unsafe extern "system" fn AddResourceEx(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, bstreventloguploadaddress: core::mem::MaybeUninit, pdwcookie: *mut u32, correlationid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceRegistration2_Impl::AddResourceEx(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute(&bstreventloguploadaddress), core::mem::transmute_copy(&pdwcookie), core::mem::transmute(&correlationid)).into() } - unsafe extern "system" fn RemoveResourceEx(this: *mut core::ffi::c_void, dwcookieconnection: u32, correlationid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWorkspaceRegistration2_Impl, - { + unsafe extern "system" fn RemoveResourceEx(this: *mut core::ffi::c_void, dwcookieconnection: u32, correlationid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceRegistration2_Impl::RemoveResourceEx(this, core::mem::transmute_copy(&dwcookieconnection), core::mem::transmute(&correlationid)).into() } @@ -5962,28 +4471,19 @@ impl IWorkspaceRegistration2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWorkspaceReportMessage_Impl: Sized { +pub trait IWorkspaceReportMessage_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IWorkspaceReportMessage {} impl IWorkspaceReportMessage_Vtbl { - pub const fn new() -> IWorkspaceReportMessage_Vtbl - where - Identity: IWorkspaceReportMessage_Impl, - { - unsafe extern "system" fn RegisterErrorLogMessage(this: *mut core::ffi::c_void, bstrmessage: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceReportMessage_Impl, - { + pub const fn new() -> IWorkspaceReportMessage_Vtbl { + unsafe extern "system" fn RegisterErrorLogMessage(this: *mut core::ffi::c_void, bstrmessage: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceReportMessage_Impl::RegisterErrorLogMessage(this, core::mem::transmute(&bstrmessage)).into() } - unsafe extern "system" fn IsErrorMessageRegistered(this: *mut core::ffi::c_void, bstrwkspid: core::mem::MaybeUninit, dwerrortype: u32, bstrerrormessagetype: core::mem::MaybeUninit, dwerrorcode: u32, pferrorexist: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWorkspaceReportMessage_Impl, - { + unsafe extern "system" fn IsErrorMessageRegistered(this: *mut core::ffi::c_void, bstrwkspid: core::mem::MaybeUninit, dwerrortype: u32, bstrerrormessagetype: core::mem::MaybeUninit, dwerrorcode: u32, pferrorexist: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspaceReportMessage_Impl::IsErrorMessageRegistered(this, core::mem::transmute(&bstrwkspid), core::mem::transmute_copy(&dwerrortype), core::mem::transmute(&bstrerrormessagetype), core::mem::transmute_copy(&dwerrorcode)) { Ok(ok__) => { @@ -5993,10 +4493,7 @@ impl IWorkspaceReportMessage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterErrorEvent(this: *mut core::ffi::c_void, bstrwkspid: core::mem::MaybeUninit, dwerrortype: u32, bstrerrormessagetype: core::mem::MaybeUninit, dwerrorcode: u32) -> windows_core::HRESULT - where - Identity: IWorkspaceReportMessage_Impl, - { + unsafe extern "system" fn RegisterErrorEvent(this: *mut core::ffi::c_void, bstrwkspid: core::mem::MaybeUninit, dwerrortype: u32, bstrerrormessagetype: core::mem::MaybeUninit, dwerrorcode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceReportMessage_Impl::RegisterErrorEvent(this, core::mem::transmute(&bstrwkspid), core::mem::transmute_copy(&dwerrortype), core::mem::transmute(&bstrerrormessagetype), core::mem::transmute_copy(&dwerrorcode)).into() } @@ -6023,28 +4520,16 @@ pub trait IWorkspaceResTypeRegistry_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWorkspaceResTypeRegistry {} #[cfg(feature = "Win32_System_Com")] impl IWorkspaceResTypeRegistry_Vtbl { - pub const fn new() -> IWorkspaceResTypeRegistry_Vtbl - where - Identity: IWorkspaceResTypeRegistry_Impl, - { - unsafe extern "system" fn AddResourceType(this: *mut core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: core::mem::MaybeUninit, bstrlauncher: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceResTypeRegistry_Impl, - { + pub const fn new() -> IWorkspaceResTypeRegistry_Vtbl { + unsafe extern "system" fn AddResourceType(this: *mut core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: core::mem::MaybeUninit, bstrlauncher: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceResTypeRegistry_Impl::AddResourceType(this, core::mem::transmute_copy(&fmachinewide), core::mem::transmute(&bstrfileextension), core::mem::transmute(&bstrlauncher)).into() } - unsafe extern "system" fn DeleteResourceType(this: *mut core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceResTypeRegistry_Impl, - { + unsafe extern "system" fn DeleteResourceType(this: *mut core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceResTypeRegistry_Impl::DeleteResourceType(this, core::mem::transmute_copy(&fmachinewide), core::mem::transmute(&bstrfileextension)).into() } - unsafe extern "system" fn GetRegisteredFileExtensions(this: *mut core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, psafileextensions: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IWorkspaceResTypeRegistry_Impl, - { + unsafe extern "system" fn GetRegisteredFileExtensions(this: *mut core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, psafileextensions: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspaceResTypeRegistry_Impl::GetRegisteredFileExtensions(this, core::mem::transmute_copy(&fmachinewide)) { Ok(ok__) => { @@ -6054,10 +4539,7 @@ impl IWorkspaceResTypeRegistry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResourceTypeInfo(this: *mut core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: core::mem::MaybeUninit, pbstrlauncher: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceResTypeRegistry_Impl, - { + unsafe extern "system" fn GetResourceTypeInfo(this: *mut core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: core::mem::MaybeUninit, pbstrlauncher: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspaceResTypeRegistry_Impl::GetResourceTypeInfo(this, core::mem::transmute_copy(&fmachinewide), core::mem::transmute(&bstrfileextension)) { Ok(ok__) => { @@ -6067,10 +4549,7 @@ impl IWorkspaceResTypeRegistry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifyResourceType(this: *mut core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: core::mem::MaybeUninit, bstrlauncher: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceResTypeRegistry_Impl, - { + unsafe extern "system" fn ModifyResourceType(this: *mut core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: core::mem::MaybeUninit, bstrlauncher: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceResTypeRegistry_Impl::ModifyResourceType(this, core::mem::transmute_copy(&fmachinewide), core::mem::transmute(&bstrfileextension), core::mem::transmute(&bstrlauncher)).into() } @@ -6101,28 +4580,16 @@ pub trait IWorkspaceScriptable_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWorkspaceScriptable {} #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable_Vtbl { - pub const fn new() -> IWorkspaceScriptable_Vtbl - where - Identity: IWorkspaceScriptable_Impl, - { - unsafe extern "system" fn DisconnectWorkspace(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceScriptable_Impl, - { + pub const fn new() -> IWorkspaceScriptable_Vtbl { + unsafe extern "system" fn DisconnectWorkspace(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceScriptable_Impl::DisconnectWorkspace(this, core::mem::transmute(&bstrworkspaceid)).into() } - unsafe extern "system" fn StartWorkspace(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bstrworkspaceparams: core::mem::MaybeUninit, ltimeout: i32, lflags: i32) -> windows_core::HRESULT - where - Identity: IWorkspaceScriptable_Impl, - { + unsafe extern "system" fn StartWorkspace(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bstrworkspaceparams: core::mem::MaybeUninit, ltimeout: i32, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceScriptable_Impl::StartWorkspace(this, 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(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bcountunauthenticatedcredentials: super::super::Foundation::VARIANT_BOOL, pbcredexist: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWorkspaceScriptable_Impl, - { + unsafe extern "system" fn IsWorkspaceCredentialSpecified(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bcountunauthenticatedcredentials: super::super::Foundation::VARIANT_BOOL, pbcredexist: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspaceScriptable_Impl::IsWorkspaceCredentialSpecified(this, core::mem::transmute(&bstrworkspaceid), core::mem::transmute_copy(&bcountunauthenticatedcredentials)) { Ok(ok__) => { @@ -6132,10 +4599,7 @@ impl IWorkspaceScriptable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsWorkspaceSSOEnabled(this: *mut core::ffi::c_void, pbssoenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWorkspaceScriptable_Impl, - { + unsafe extern "system" fn IsWorkspaceSSOEnabled(this: *mut core::ffi::c_void, pbssoenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWorkspaceScriptable_Impl::IsWorkspaceSSOEnabled(this) { Ok(ok__) => { @@ -6145,24 +4609,15 @@ impl IWorkspaceScriptable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClearWorkspaceCredential(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceScriptable_Impl, - { + unsafe extern "system" fn ClearWorkspaceCredential(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceScriptable_Impl::ClearWorkspaceCredential(this, core::mem::transmute(&bstrworkspaceid)).into() } - unsafe extern "system" fn OnAuthenticated(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceScriptable_Impl, - { + unsafe extern "system" fn OnAuthenticated(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceScriptable_Impl::OnAuthenticated(this, core::mem::transmute(&bstrworkspaceid), core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn DisconnectWorkspaceByFriendlyName(this: *mut core::ffi::c_void, bstrworkspacefriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceScriptable_Impl, - { + unsafe extern "system" fn DisconnectWorkspaceByFriendlyName(this: *mut core::ffi::c_void, bstrworkspacefriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceScriptable_Impl::DisconnectWorkspaceByFriendlyName(this, core::mem::transmute(&bstrworkspacefriendlyname)).into() } @@ -6190,21 +4645,12 @@ pub trait IWorkspaceScriptable2_Impl: Sized + IWorkspaceScriptable_Impl { impl windows_core::RuntimeName for IWorkspaceScriptable2 {} #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable2_Vtbl { - pub const fn new() -> IWorkspaceScriptable2_Vtbl - where - Identity: IWorkspaceScriptable2_Impl, - { - unsafe extern "system" fn StartWorkspaceEx(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrworkspacefriendlyname: core::mem::MaybeUninit, bstrredirectorname: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bstrappcontainer: core::mem::MaybeUninit, bstrworkspaceparams: core::mem::MaybeUninit, ltimeout: i32, lflags: i32) -> windows_core::HRESULT - where - Identity: IWorkspaceScriptable2_Impl, - { + pub const fn new() -> IWorkspaceScriptable2_Vtbl { + unsafe extern "system" fn StartWorkspaceEx(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrworkspacefriendlyname: core::mem::MaybeUninit, bstrredirectorname: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bstrappcontainer: core::mem::MaybeUninit, bstrworkspaceparams: core::mem::MaybeUninit, ltimeout: i32, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceScriptable2_Impl::StartWorkspaceEx(this, 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(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrworkspacefriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWorkspaceScriptable2_Impl, - { + unsafe extern "system" fn ResourceDismissed(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrworkspacefriendlyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceScriptable2_Impl::ResourceDismissed(this, core::mem::transmute(&bstrworkspaceid), core::mem::transmute(&bstrworkspacefriendlyname)).into() } @@ -6226,14 +4672,8 @@ pub trait IWorkspaceScriptable3_Impl: Sized + IWorkspaceScriptable2_Impl { impl windows_core::RuntimeName for IWorkspaceScriptable3 {} #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable3_Vtbl { - pub const fn new() -> IWorkspaceScriptable3_Vtbl - where - Identity: IWorkspaceScriptable3_Impl, - { - unsafe extern "system" fn StartWorkspaceEx2(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrworkspacefriendlyname: core::mem::MaybeUninit, bstrredirectorname: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bstrappcontainer: core::mem::MaybeUninit, bstrworkspaceparams: core::mem::MaybeUninit, ltimeout: i32, lflags: i32, bstreventloguploadaddress: core::mem::MaybeUninit, correlationid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: IWorkspaceScriptable3_Impl, - { + pub const fn new() -> IWorkspaceScriptable3_Vtbl { + unsafe extern "system" fn StartWorkspaceEx2(this: *mut core::ffi::c_void, bstrworkspaceid: core::mem::MaybeUninit, bstrworkspacefriendlyname: core::mem::MaybeUninit, bstrredirectorname: core::mem::MaybeUninit, bstrusername: core::mem::MaybeUninit, bstrpassword: core::mem::MaybeUninit, bstrappcontainer: core::mem::MaybeUninit, bstrworkspaceparams: core::mem::MaybeUninit, ltimeout: i32, lflags: i32, bstreventloguploadaddress: core::mem::MaybeUninit, correlationid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWorkspaceScriptable3_Impl::StartWorkspaceEx2(this, 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), core::mem::transmute(&bstreventloguploadaddress), core::mem::transmute(&correlationid)).into() } @@ -6243,7 +4683,7 @@ impl IWorkspaceScriptable3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ItsPubPlugin_Impl: Sized { +pub trait ItsPubPlugin_Impl: Sized + windows_core::IUnknownImpl { 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, resource: *mut pluginResource) -> windows_core::Result<()>; fn GetCacheLastUpdateTime(&self) -> windows_core::Result; @@ -6253,28 +4693,16 @@ pub trait ItsPubPlugin_Impl: Sized { } impl windows_core::RuntimeName for ItsPubPlugin {} impl ItsPubPlugin_Vtbl { - pub const fn new() -> ItsPubPlugin_Vtbl - where - Identity: ItsPubPlugin_Impl, - { - unsafe extern "system" fn GetResourceList(this: *mut core::ffi::c_void, userid: windows_core::PCWSTR, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource) -> windows_core::HRESULT - where - Identity: ItsPubPlugin_Impl, - { + pub const fn new() -> ItsPubPlugin_Vtbl { + unsafe extern "system" fn GetResourceList(this: *mut core::ffi::c_void, userid: windows_core::PCWSTR, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ItsPubPlugin_Impl::GetResourceList(this, core::mem::transmute(&userid), core::mem::transmute_copy(&pceapplistsize), core::mem::transmute_copy(&resourcelist)).into() } - unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, alias: windows_core::PCWSTR, flags: i32, resource: *mut pluginResource) -> windows_core::HRESULT - where - Identity: ItsPubPlugin_Impl, - { + unsafe extern "system" fn GetResource(this: *mut core::ffi::c_void, alias: windows_core::PCWSTR, flags: i32, resource: *mut pluginResource) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ItsPubPlugin_Impl::GetResource(this, core::mem::transmute(&alias), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&resource)).into() } - unsafe extern "system" fn GetCacheLastUpdateTime(this: *mut core::ffi::c_void, lastupdatetime: *mut u64) -> windows_core::HRESULT - where - Identity: ItsPubPlugin_Impl, - { + unsafe extern "system" fn GetCacheLastUpdateTime(this: *mut core::ffi::c_void, lastupdatetime: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ItsPubPlugin_Impl::GetCacheLastUpdateTime(this) { Ok(ok__) => { @@ -6284,10 +4712,7 @@ impl ItsPubPlugin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn pluginName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ItsPubPlugin_Impl, - { + unsafe extern "system" fn pluginName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ItsPubPlugin_Impl::pluginName(this) { Ok(ok__) => { @@ -6297,10 +4722,7 @@ impl ItsPubPlugin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn pluginVersion(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ItsPubPlugin_Impl, - { + unsafe extern "system" fn pluginVersion(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ItsPubPlugin_Impl::pluginVersion(this) { Ok(ok__) => { @@ -6310,10 +4732,7 @@ impl ItsPubPlugin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResolveResource(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 - where - Identity: ItsPubPlugin_Impl, - { + unsafe extern "system" fn ResolveResource(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ItsPubPlugin_Impl::ResolveResource(this, core::mem::transmute_copy(&resourcetype), core::mem::transmute_copy(&resourcelocation), core::mem::transmute_copy(&endpointname), core::mem::transmute(&userid), core::mem::transmute(&alias)).into() } @@ -6339,35 +4758,20 @@ pub trait ItsPubPlugin2_Impl: Sized + ItsPubPlugin_Impl { } impl windows_core::RuntimeName for ItsPubPlugin2 {} impl ItsPubPlugin2_Vtbl { - pub const fn new() -> ItsPubPlugin2_Vtbl - where - Identity: ItsPubPlugin2_Impl, - { - unsafe extern "system" fn GetResource2List(this: *mut core::ffi::c_void, userid: windows_core::PCWSTR, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource2) -> windows_core::HRESULT - where - Identity: ItsPubPlugin2_Impl, - { + pub const fn new() -> ItsPubPlugin2_Vtbl { + unsafe extern "system" fn GetResource2List(this: *mut core::ffi::c_void, userid: windows_core::PCWSTR, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ItsPubPlugin2_Impl::GetResource2List(this, core::mem::transmute(&userid), core::mem::transmute_copy(&pceapplistsize), core::mem::transmute_copy(&resourcelist)).into() } - unsafe extern "system" fn GetResource2(this: *mut core::ffi::c_void, alias: windows_core::PCWSTR, flags: i32, resource: *mut pluginResource2) -> windows_core::HRESULT - where - Identity: ItsPubPlugin2_Impl, - { + unsafe extern "system" fn GetResource2(this: *mut core::ffi::c_void, alias: windows_core::PCWSTR, flags: i32, resource: *mut pluginResource2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ItsPubPlugin2_Impl::GetResource2(this, core::mem::transmute(&alias), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&resource)).into() } - unsafe extern "system" fn ResolvePersonalDesktop(this: *mut core::ffi::c_void, 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::HRESULT - where - Identity: ItsPubPlugin2_Impl, - { + unsafe extern "system" fn ResolvePersonalDesktop(this: *mut core::ffi::c_void, 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::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ItsPubPlugin2_Impl::ResolvePersonalDesktop(this, core::mem::transmute(&userid), core::mem::transmute(&poolid), core::mem::transmute_copy(&epdresolutiontype), core::mem::transmute_copy(&ppdassignmenttype), core::mem::transmute_copy(&endpointname)).into() } - unsafe extern "system" fn DeletePersonalDesktopAssignment(this: *mut core::ffi::c_void, userid: windows_core::PCWSTR, poolid: windows_core::PCWSTR, endpointname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ItsPubPlugin2_Impl, - { + unsafe extern "system" fn DeletePersonalDesktopAssignment(this: *mut core::ffi::c_void, userid: windows_core::PCWSTR, poolid: windows_core::PCWSTR, endpointname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ItsPubPlugin2_Impl::DeletePersonalDesktopAssignment(this, core::mem::transmute(&userid), core::mem::transmute(&poolid), core::mem::transmute(&endpointname)).into() } @@ -6389,10 +4793,7 @@ pub trait _ITSWkspEvents_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for _ITSWkspEvents {} #[cfg(feature = "Win32_System_Com")] impl _ITSWkspEvents_Vtbl { - pub const fn new() -> _ITSWkspEvents_Vtbl - where - Identity: _ITSWkspEvents_Impl, - { + pub const fn new() -> _ITSWkspEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { 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 6ab7fd5e55..b84dc280e2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/impl.rs @@ -9,14 +9,8 @@ pub trait IWSMan_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWSMan {} #[cfg(feature = "Win32_System_Com")] impl IWSMan_Vtbl { - pub const fn new() -> IWSMan_Vtbl - where - Identity: IWSMan_Impl, - { - unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, connection: core::mem::MaybeUninit, flags: i32, connectionoptions: *mut core::ffi::c_void, session: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSMan_Impl, - { + pub const fn new() -> IWSMan_Vtbl { + unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, connection: core::mem::MaybeUninit, flags: i32, connectionoptions: *mut core::ffi::c_void, session: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSMan_Impl::CreateSession(this, core::mem::transmute(&connection), core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&connectionoptions)) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl IWSMan_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateConnectionOptions(this: *mut core::ffi::c_void, connectionoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSMan_Impl, - { + unsafe extern "system" fn CreateConnectionOptions(this: *mut core::ffi::c_void, connectionoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSMan_Impl::CreateConnectionOptions(this) { Ok(ok__) => { @@ -39,10 +30,7 @@ impl IWSMan_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommandLine(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSMan_Impl, - { + unsafe extern "system" fn CommandLine(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSMan_Impl::CommandLine(this) { Ok(ok__) => { @@ -52,10 +40,7 @@ impl IWSMan_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSMan_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSMan_Impl::Error(this) { Ok(ok__) => { @@ -87,14 +72,8 @@ pub trait IWSManConnectionOptions_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWSManConnectionOptions {} #[cfg(feature = "Win32_System_Com")] impl IWSManConnectionOptions_Vtbl { - pub const fn new() -> IWSManConnectionOptions_Vtbl - where - Identity: IWSManConnectionOptions_Impl, - { - unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptions_Impl, - { + pub const fn new() -> IWSManConnectionOptions_Vtbl { + unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManConnectionOptions_Impl::UserName(this) { Ok(ok__) => { @@ -104,17 +83,11 @@ impl IWSManConnectionOptions_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUserName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptions_Impl, - { + unsafe extern "system" fn SetUserName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManConnectionOptions_Impl::SetUserName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, password: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptions_Impl, - { + unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, password: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManConnectionOptions_Impl::SetPassword(this, core::mem::transmute(&password)).into() } @@ -138,14 +111,8 @@ pub trait IWSManConnectionOptionsEx_Impl: Sized + IWSManConnectionOptions_Impl { impl windows_core::RuntimeName for IWSManConnectionOptionsEx {} #[cfg(feature = "Win32_System_Com")] impl IWSManConnectionOptionsEx_Vtbl { - pub const fn new() -> IWSManConnectionOptionsEx_Vtbl - where - Identity: IWSManConnectionOptionsEx_Impl, - { - unsafe extern "system" fn CertificateThumbprint(this: *mut core::ffi::c_void, thumbprint: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptionsEx_Impl, - { + pub const fn new() -> IWSManConnectionOptionsEx_Vtbl { + unsafe extern "system" fn CertificateThumbprint(this: *mut core::ffi::c_void, thumbprint: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManConnectionOptionsEx_Impl::CertificateThumbprint(this) { Ok(ok__) => { @@ -155,10 +122,7 @@ impl IWSManConnectionOptionsEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateThumbprint(this: *mut core::ffi::c_void, thumbprint: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptionsEx_Impl, - { + unsafe extern "system" fn SetCertificateThumbprint(this: *mut core::ffi::c_void, thumbprint: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManConnectionOptionsEx_Impl::SetCertificateThumbprint(this, core::mem::transmute(&thumbprint)).into() } @@ -187,21 +151,12 @@ pub trait IWSManConnectionOptionsEx2_Impl: Sized + IWSManConnectionOptionsEx_Imp impl windows_core::RuntimeName for IWSManConnectionOptionsEx2 {} #[cfg(feature = "Win32_System_Com")] impl IWSManConnectionOptionsEx2_Vtbl { - pub const fn new() -> IWSManConnectionOptionsEx2_Vtbl - where - Identity: IWSManConnectionOptionsEx2_Impl, - { - unsafe extern "system" fn SetProxy(this: *mut core::ffi::c_void, accesstype: i32, authenticationmechanism: i32, username: core::mem::MaybeUninit, password: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptionsEx2_Impl, - { + pub const fn new() -> IWSManConnectionOptionsEx2_Vtbl { + unsafe extern "system" fn SetProxy(this: *mut core::ffi::c_void, accesstype: i32, authenticationmechanism: i32, username: core::mem::MaybeUninit, password: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManConnectionOptionsEx2_Impl::SetProxy(this, core::mem::transmute_copy(&accesstype), core::mem::transmute_copy(&authenticationmechanism), core::mem::transmute(&username), core::mem::transmute(&password)).into() } - unsafe extern "system" fn ProxyIEConfig(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptionsEx2_Impl, - { + unsafe extern "system" fn ProxyIEConfig(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManConnectionOptionsEx2_Impl::ProxyIEConfig(this) { Ok(ok__) => { @@ -211,10 +166,7 @@ impl IWSManConnectionOptionsEx2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProxyWinHttpConfig(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptionsEx2_Impl, - { + unsafe extern "system" fn ProxyWinHttpConfig(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManConnectionOptionsEx2_Impl::ProxyWinHttpConfig(this) { Ok(ok__) => { @@ -224,10 +176,7 @@ impl IWSManConnectionOptionsEx2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProxyAutoDetect(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptionsEx2_Impl, - { + unsafe extern "system" fn ProxyAutoDetect(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManConnectionOptionsEx2_Impl::ProxyAutoDetect(this) { Ok(ok__) => { @@ -237,10 +186,7 @@ impl IWSManConnectionOptionsEx2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProxyNoProxyServer(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptionsEx2_Impl, - { + unsafe extern "system" fn ProxyNoProxyServer(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManConnectionOptionsEx2_Impl::ProxyNoProxyServer(this) { Ok(ok__) => { @@ -250,10 +196,7 @@ impl IWSManConnectionOptionsEx2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProxyAuthenticationUseNegotiate(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptionsEx2_Impl, - { + unsafe extern "system" fn ProxyAuthenticationUseNegotiate(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManConnectionOptionsEx2_Impl::ProxyAuthenticationUseNegotiate(this) { Ok(ok__) => { @@ -263,10 +206,7 @@ impl IWSManConnectionOptionsEx2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProxyAuthenticationUseBasic(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptionsEx2_Impl, - { + unsafe extern "system" fn ProxyAuthenticationUseBasic(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManConnectionOptionsEx2_Impl::ProxyAuthenticationUseBasic(this) { Ok(ok__) => { @@ -276,10 +216,7 @@ impl IWSManConnectionOptionsEx2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProxyAuthenticationUseDigest(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManConnectionOptionsEx2_Impl, - { + unsafe extern "system" fn ProxyAuthenticationUseDigest(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManConnectionOptionsEx2_Impl::ProxyAuthenticationUseDigest(this) { Ok(ok__) => { @@ -315,14 +252,8 @@ pub trait IWSManEnumerator_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWSManEnumerator {} #[cfg(feature = "Win32_System_Com")] impl IWSManEnumerator_Vtbl { - pub const fn new() -> IWSManEnumerator_Vtbl - where - Identity: IWSManEnumerator_Impl, - { - unsafe extern "system" fn ReadItem(this: *mut core::ffi::c_void, resource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManEnumerator_Impl, - { + pub const fn new() -> IWSManEnumerator_Vtbl { + unsafe extern "system" fn ReadItem(this: *mut core::ffi::c_void, resource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEnumerator_Impl::ReadItem(this) { Ok(ok__) => { @@ -332,10 +263,7 @@ impl IWSManEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AtEndOfStream(this: *mut core::ffi::c_void, eos: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWSManEnumerator_Impl, - { + unsafe extern "system" fn AtEndOfStream(this: *mut core::ffi::c_void, eos: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEnumerator_Impl::AtEndOfStream(this) { Ok(ok__) => { @@ -345,10 +273,7 @@ impl IWSManEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManEnumerator_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEnumerator_Impl::Error(this) { Ok(ok__) => { @@ -396,14 +321,8 @@ pub trait IWSManEx_Impl: Sized + IWSMan_Impl { impl windows_core::RuntimeName for IWSManEx {} #[cfg(feature = "Win32_System_Com")] impl IWSManEx_Vtbl { - pub const fn new() -> IWSManEx_Vtbl - where - Identity: IWSManEx_Impl, - { - unsafe extern "system" fn CreateResourceLocator(this: *mut core::ffi::c_void, strresourcelocator: core::mem::MaybeUninit, newresourcelocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + pub const fn new() -> IWSManEx_Vtbl { + unsafe extern "system" fn CreateResourceLocator(this: *mut core::ffi::c_void, strresourcelocator: core::mem::MaybeUninit, newresourcelocator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::CreateResourceLocator(this, core::mem::transmute(&strresourcelocator)) { Ok(ok__) => { @@ -413,10 +332,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagUTF8(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagUTF8(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagUTF8(this) { Ok(ok__) => { @@ -426,10 +342,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagCredUsernamePassword(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagCredUsernamePassword(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagCredUsernamePassword(this) { Ok(ok__) => { @@ -439,10 +352,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagSkipCACheck(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagSkipCACheck(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagSkipCACheck(this) { Ok(ok__) => { @@ -452,10 +362,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagSkipCNCheck(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagSkipCNCheck(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagSkipCNCheck(this) { Ok(ok__) => { @@ -465,10 +372,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagUseDigest(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagUseDigest(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagUseDigest(this) { Ok(ok__) => { @@ -478,10 +382,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagUseNegotiate(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagUseNegotiate(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagUseNegotiate(this) { Ok(ok__) => { @@ -491,10 +392,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagUseBasic(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagUseBasic(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagUseBasic(this) { Ok(ok__) => { @@ -504,10 +402,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagUseKerberos(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagUseKerberos(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagUseKerberos(this) { Ok(ok__) => { @@ -517,10 +412,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagNoEncryption(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagNoEncryption(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagNoEncryption(this) { Ok(ok__) => { @@ -530,10 +422,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagEnableSPNServerPort(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagEnableSPNServerPort(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagEnableSPNServerPort(this) { Ok(ok__) => { @@ -543,10 +432,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagUseNoAuthentication(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn SessionFlagUseNoAuthentication(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::SessionFlagUseNoAuthentication(this) { Ok(ok__) => { @@ -556,10 +442,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerationFlagNonXmlText(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn EnumerationFlagNonXmlText(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::EnumerationFlagNonXmlText(this) { Ok(ok__) => { @@ -569,10 +452,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerationFlagReturnEPR(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn EnumerationFlagReturnEPR(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::EnumerationFlagReturnEPR(this) { Ok(ok__) => { @@ -582,10 +462,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerationFlagReturnObjectAndEPR(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn EnumerationFlagReturnObjectAndEPR(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::EnumerationFlagReturnObjectAndEPR(this) { Ok(ok__) => { @@ -595,10 +472,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorMessage(this: *mut core::ffi::c_void, errornumber: u32, errormessage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn GetErrorMessage(this: *mut core::ffi::c_void, errornumber: u32, errormessage: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::GetErrorMessage(this, core::mem::transmute_copy(&errornumber)) { Ok(ok__) => { @@ -608,10 +482,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerationFlagHierarchyDeep(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn EnumerationFlagHierarchyDeep(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::EnumerationFlagHierarchyDeep(this) { Ok(ok__) => { @@ -621,10 +492,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerationFlagHierarchyShallow(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn EnumerationFlagHierarchyShallow(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::EnumerationFlagHierarchyShallow(this) { Ok(ok__) => { @@ -634,10 +502,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerationFlagHierarchyDeepBasePropsOnly(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn EnumerationFlagHierarchyDeepBasePropsOnly(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::EnumerationFlagHierarchyDeepBasePropsOnly(this) { Ok(ok__) => { @@ -647,10 +512,7 @@ impl IWSManEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerationFlagReturnObject(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx_Impl, - { + unsafe extern "system" fn EnumerationFlagReturnObject(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx_Impl::EnumerationFlagReturnObject(this) { Ok(ok__) => { @@ -696,14 +558,8 @@ pub trait IWSManEx2_Impl: Sized + IWSManEx_Impl { impl windows_core::RuntimeName for IWSManEx2 {} #[cfg(feature = "Win32_System_Com")] impl IWSManEx2_Vtbl { - pub const fn new() -> IWSManEx2_Vtbl - where - Identity: IWSManEx2_Impl, - { - unsafe extern "system" fn SessionFlagUseClientCertificate(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx2_Impl, - { + pub const fn new() -> IWSManEx2_Vtbl { + unsafe extern "system" fn SessionFlagUseClientCertificate(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx2_Impl::SessionFlagUseClientCertificate(this) { Ok(ok__) => { @@ -733,14 +589,8 @@ pub trait IWSManEx3_Impl: Sized + IWSManEx2_Impl { impl windows_core::RuntimeName for IWSManEx3 {} #[cfg(feature = "Win32_System_Com")] impl IWSManEx3_Vtbl { - pub const fn new() -> IWSManEx3_Vtbl - where - Identity: IWSManEx3_Impl, - { - unsafe extern "system" fn SessionFlagUTF16(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx3_Impl, - { + pub const fn new() -> IWSManEx3_Vtbl { + unsafe extern "system" fn SessionFlagUTF16(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx3_Impl::SessionFlagUTF16(this) { Ok(ok__) => { @@ -750,10 +600,7 @@ impl IWSManEx3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagUseCredSsp(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx3_Impl, - { + unsafe extern "system" fn SessionFlagUseCredSsp(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx3_Impl::SessionFlagUseCredSsp(this) { Ok(ok__) => { @@ -763,10 +610,7 @@ impl IWSManEx3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerationFlagAssociationInstance(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx3_Impl, - { + unsafe extern "system" fn EnumerationFlagAssociationInstance(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx3_Impl::EnumerationFlagAssociationInstance(this) { Ok(ok__) => { @@ -776,10 +620,7 @@ impl IWSManEx3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerationFlagAssociatedInstance(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx3_Impl, - { + unsafe extern "system" fn EnumerationFlagAssociatedInstance(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx3_Impl::EnumerationFlagAssociatedInstance(this) { Ok(ok__) => { @@ -789,10 +630,7 @@ impl IWSManEx3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagSkipRevocationCheck(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx3_Impl, - { + unsafe extern "system" fn SessionFlagSkipRevocationCheck(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx3_Impl::SessionFlagSkipRevocationCheck(this) { Ok(ok__) => { @@ -802,10 +640,7 @@ impl IWSManEx3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagAllowNegotiateImplicitCredentials(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx3_Impl, - { + unsafe extern "system" fn SessionFlagAllowNegotiateImplicitCredentials(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx3_Impl::SessionFlagAllowNegotiateImplicitCredentials(this) { Ok(ok__) => { @@ -815,10 +650,7 @@ impl IWSManEx3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SessionFlagUseSsl(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManEx3_Impl, - { + unsafe extern "system" fn SessionFlagUseSsl(this: *mut core::ffi::c_void, flags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManEx3_Impl::SessionFlagUseSsl(this) { Ok(ok__) => { @@ -851,14 +683,8 @@ pub trait IWSManInternal_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWSManInternal {} #[cfg(feature = "Win32_System_Com")] impl IWSManInternal_Vtbl { - pub const fn new() -> IWSManInternal_Vtbl - where - Identity: IWSManInternal_Impl, - { - unsafe extern "system" fn ConfigSDDL(this: *mut core::ffi::c_void, session: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, flags: i32, resource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManInternal_Impl, - { + pub const fn new() -> IWSManInternal_Vtbl { + unsafe extern "system" fn ConfigSDDL(this: *mut core::ffi::c_void, session: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, flags: i32, resource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManInternal_Impl::ConfigSDDL(this, windows_core::from_raw_borrowed(&session), core::mem::transmute(&resourceuri), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -894,21 +720,12 @@ pub trait IWSManResourceLocator_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWSManResourceLocator {} #[cfg(feature = "Win32_System_Com")] impl IWSManResourceLocator_Vtbl { - pub const fn new() -> IWSManResourceLocator_Vtbl - where - Identity: IWSManResourceLocator_Impl, - { - unsafe extern "system" fn SetResourceURI(this: *mut core::ffi::c_void, uri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + pub const fn new() -> IWSManResourceLocator_Vtbl { + unsafe extern "system" fn SetResourceURI(this: *mut core::ffi::c_void, uri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManResourceLocator_Impl::SetResourceURI(this, core::mem::transmute(&uri)).into() } - unsafe extern "system" fn ResourceURI(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn ResourceURI(this: *mut core::ffi::c_void, uri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManResourceLocator_Impl::ResourceURI(this) { Ok(ok__) => { @@ -918,24 +735,15 @@ impl IWSManResourceLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddSelector(this: *mut core::ffi::c_void, resourceselname: core::mem::MaybeUninit, selvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn AddSelector(this: *mut core::ffi::c_void, resourceselname: core::mem::MaybeUninit, selvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManResourceLocator_Impl::AddSelector(this, core::mem::transmute(&resourceselname), core::mem::transmute(&selvalue)).into() } - unsafe extern "system" fn ClearSelectors(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn ClearSelectors(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManResourceLocator_Impl::ClearSelectors(this).into() } - unsafe extern "system" fn FragmentPath(this: *mut core::ffi::c_void, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn FragmentPath(this: *mut core::ffi::c_void, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManResourceLocator_Impl::FragmentPath(this) { Ok(ok__) => { @@ -945,17 +753,11 @@ impl IWSManResourceLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFragmentPath(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn SetFragmentPath(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManResourceLocator_Impl::SetFragmentPath(this, core::mem::transmute(&text)).into() } - unsafe extern "system" fn FragmentDialect(this: *mut core::ffi::c_void, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn FragmentDialect(this: *mut core::ffi::c_void, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManResourceLocator_Impl::FragmentDialect(this) { Ok(ok__) => { @@ -965,31 +767,19 @@ impl IWSManResourceLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFragmentDialect(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn SetFragmentDialect(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManResourceLocator_Impl::SetFragmentDialect(this, core::mem::transmute(&text)).into() } - unsafe extern "system" fn AddOption(this: *mut core::ffi::c_void, optionname: core::mem::MaybeUninit, optionvalue: core::mem::MaybeUninit, mustcomply: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn AddOption(this: *mut core::ffi::c_void, optionname: core::mem::MaybeUninit, optionvalue: core::mem::MaybeUninit, mustcomply: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManResourceLocator_Impl::AddOption(this, core::mem::transmute(&optionname), core::mem::transmute(&optionvalue), core::mem::transmute_copy(&mustcomply)).into() } - unsafe extern "system" fn SetMustUnderstandOptions(this: *mut core::ffi::c_void, mustunderstand: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn SetMustUnderstandOptions(this: *mut core::ffi::c_void, mustunderstand: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManResourceLocator_Impl::SetMustUnderstandOptions(this, core::mem::transmute_copy(&mustunderstand)).into() } - unsafe extern "system" fn MustUnderstandOptions(this: *mut core::ffi::c_void, mustunderstand: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn MustUnderstandOptions(this: *mut core::ffi::c_void, mustunderstand: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManResourceLocator_Impl::MustUnderstandOptions(this) { Ok(ok__) => { @@ -999,17 +789,11 @@ impl IWSManResourceLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClearOptions(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn ClearOptions(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManResourceLocator_Impl::ClearOptions(this).into() } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManResourceLocator_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManResourceLocator_Impl::Error(this) { Ok(ok__) => { @@ -1040,13 +824,10 @@ impl IWSManResourceLocator_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWSManResourceLocatorInternal_Impl: Sized {} +pub trait IWSManResourceLocatorInternal_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IWSManResourceLocatorInternal {} impl IWSManResourceLocatorInternal_Vtbl { - pub const fn new() -> IWSManResourceLocatorInternal_Vtbl - where - Identity: IWSManResourceLocatorInternal_Impl, - { + pub const fn new() -> IWSManResourceLocatorInternal_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1072,14 +853,8 @@ pub trait IWSManSession_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWSManSession {} #[cfg(feature = "Win32_System_Com")] impl IWSManSession_Vtbl { - pub const fn new() -> IWSManSession_Vtbl - where - Identity: IWSManSession_Impl, - { - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, flags: i32, resource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + pub const fn new() -> IWSManSession_Vtbl { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, flags: i32, resource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManSession_Impl::Get(this, core::mem::transmute(&resourceuri), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1089,10 +864,7 @@ impl IWSManSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Put(this: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, resource: core::mem::MaybeUninit, flags: i32, resultresource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn Put(this: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, resource: core::mem::MaybeUninit, flags: i32, resultresource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManSession_Impl::Put(this, core::mem::transmute(&resourceuri), core::mem::transmute(&resource), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1102,10 +874,7 @@ impl IWSManSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, resource: core::mem::MaybeUninit, flags: i32, newuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, resource: core::mem::MaybeUninit, flags: i32, newuri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManSession_Impl::Create(this, core::mem::transmute(&resourceuri), core::mem::transmute(&resource), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1115,17 +884,11 @@ impl IWSManSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManSession_Impl::Delete(this, core::mem::transmute(&resourceuri), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, actionuri: core::mem::MaybeUninit, resourceuri: core::mem::MaybeUninit, parameters: core::mem::MaybeUninit, flags: i32, result: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, actionuri: core::mem::MaybeUninit, resourceuri: core::mem::MaybeUninit, parameters: core::mem::MaybeUninit, flags: i32, result: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManSession_Impl::Invoke(this, core::mem::transmute(&actionuri), core::mem::transmute(&resourceuri), core::mem::transmute(¶meters), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1135,10 +898,7 @@ impl IWSManSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enumerate(this: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, filter: core::mem::MaybeUninit, dialect: core::mem::MaybeUninit, flags: i32, resultset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn Enumerate(this: *mut core::ffi::c_void, resourceuri: core::mem::MaybeUninit, filter: core::mem::MaybeUninit, dialect: core::mem::MaybeUninit, flags: i32, resultset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManSession_Impl::Enumerate(this, core::mem::transmute(&resourceuri), core::mem::transmute(&filter), core::mem::transmute(&dialect), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1148,10 +908,7 @@ impl IWSManSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Identify(this: *mut core::ffi::c_void, flags: i32, result: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn Identify(this: *mut core::ffi::c_void, flags: i32, result: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManSession_Impl::Identify(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1161,10 +918,7 @@ impl IWSManSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManSession_Impl::Error(this) { Ok(ok__) => { @@ -1174,10 +928,7 @@ impl IWSManSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BatchItems(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn BatchItems(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManSession_Impl::BatchItems(this) { Ok(ok__) => { @@ -1187,17 +938,11 @@ impl IWSManSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBatchItems(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn SetBatchItems(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManSession_Impl::SetBatchItems(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Timeout(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn Timeout(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManSession_Impl::Timeout(this) { Ok(ok__) => { @@ -1207,10 +952,7 @@ impl IWSManSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTimeout(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IWSManSession_Impl, - { + unsafe extern "system" fn SetTimeout(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManSession_Impl::SetTimeout(this, core::mem::transmute_copy(&value)).into() } 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 c592a679a4..f690f549d1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs @@ -1,4 +1,4 @@ -pub trait DataSource_Impl: Sized { +pub trait DataSource_Impl: Sized + windows_core::IUnknownImpl { fn getDataMember(&self, bstrdm: *const u16, riid: *const windows_core::GUID) -> windows_core::Result; fn getDataMemberName(&self, lindex: i32) -> windows_core::Result<*mut u16>; fn getDataMemberCount(&self) -> windows_core::Result; @@ -7,14 +7,8 @@ pub trait DataSource_Impl: Sized { } impl windows_core::RuntimeName for DataSource {} impl DataSource_Vtbl { - pub const fn new() -> DataSource_Vtbl - where - Identity: DataSource_Impl, - { - unsafe extern "system" fn getDataMember(this: *mut core::ffi::c_void, bstrdm: *const u16, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: DataSource_Impl, - { + pub const fn new() -> DataSource_Vtbl { + unsafe extern "system" fn getDataMember(this: *mut core::ffi::c_void, bstrdm: *const u16, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match DataSource_Impl::getDataMember(this, core::mem::transmute_copy(&bstrdm), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -24,10 +18,7 @@ impl DataSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getDataMemberName(this: *mut core::ffi::c_void, lindex: i32, pbstrdm: *mut *mut u16) -> windows_core::HRESULT - where - Identity: DataSource_Impl, - { + unsafe extern "system" fn getDataMemberName(this: *mut core::ffi::c_void, lindex: i32, pbstrdm: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match DataSource_Impl::getDataMemberName(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -37,10 +28,7 @@ impl DataSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getDataMemberCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: DataSource_Impl, - { + unsafe extern "system" fn getDataMemberCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match DataSource_Impl::getDataMemberCount(this) { Ok(ok__) => { @@ -50,17 +38,11 @@ impl DataSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn addDataSourceListener(this: *mut core::ffi::c_void, pdsl: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: DataSource_Impl, - { + unsafe extern "system" fn addDataSourceListener(this: *mut core::ffi::c_void, pdsl: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DataSource_Impl::addDataSourceListener(this, windows_core::from_raw_borrowed(&pdsl)).into() } - unsafe extern "system" fn removeDataSourceListener(this: *mut core::ffi::c_void, pdsl: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: DataSource_Impl, - { + unsafe extern "system" fn removeDataSourceListener(this: *mut core::ffi::c_void, pdsl: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DataSource_Impl::removeDataSourceListener(this, windows_core::from_raw_borrowed(&pdsl)).into() } @@ -77,35 +59,23 @@ impl DataSource_Vtbl { iid == &::IID } } -pub trait DataSourceListener_Impl: Sized { +pub trait DataSourceListener_Impl: Sized + windows_core::IUnknownImpl { fn dataMemberChanged(&self, bstrdm: *const u16) -> windows_core::Result<()>; fn dataMemberAdded(&self, bstrdm: *const u16) -> windows_core::Result<()>; fn dataMemberRemoved(&self, bstrdm: *const u16) -> windows_core::Result<()>; } impl windows_core::RuntimeName for DataSourceListener {} impl DataSourceListener_Vtbl { - pub const fn new() -> DataSourceListener_Vtbl - where - Identity: DataSourceListener_Impl, - { - unsafe extern "system" fn dataMemberChanged(this: *mut core::ffi::c_void, bstrdm: *const u16) -> windows_core::HRESULT - where - Identity: DataSourceListener_Impl, - { + pub const fn new() -> DataSourceListener_Vtbl { + unsafe extern "system" fn dataMemberChanged(this: *mut core::ffi::c_void, bstrdm: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DataSourceListener_Impl::dataMemberChanged(this, core::mem::transmute_copy(&bstrdm)).into() } - unsafe extern "system" fn dataMemberAdded(this: *mut core::ffi::c_void, bstrdm: *const u16) -> windows_core::HRESULT - where - Identity: DataSourceListener_Impl, - { + unsafe extern "system" fn dataMemberAdded(this: *mut core::ffi::c_void, bstrdm: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DataSourceListener_Impl::dataMemberAdded(this, core::mem::transmute_copy(&bstrdm)).into() } - unsafe extern "system" fn dataMemberRemoved(this: *mut core::ffi::c_void, bstrdm: *const u16) -> windows_core::HRESULT - where - Identity: DataSourceListener_Impl, - { + unsafe extern "system" fn dataMemberRemoved(this: *mut core::ffi::c_void, bstrdm: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); DataSourceListener_Impl::dataMemberRemoved(this, core::mem::transmute_copy(&bstrdm)).into() } @@ -126,10 +96,7 @@ pub trait DataSourceObject_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for DataSourceObject {} #[cfg(feature = "Win32_System_Com")] impl DataSourceObject_Vtbl { - pub const fn new() -> DataSourceObject_Vtbl - where - Identity: DataSourceObject_Impl, - { + pub const fn new() -> DataSourceObject_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -137,7 +104,7 @@ impl DataSourceObject_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAccessor_Impl: Sized { +pub trait IAccessor_Impl: Sized + windows_core::IUnknownImpl { fn AddRefAccessor(&self, haccessor: HACCESSOR, pcrefcount: *mut u32) -> windows_core::Result<()>; fn CreateAccessor(&self, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: *mut HACCESSOR, rgstatus: *mut u32) -> windows_core::Result<()>; fn GetBindings(&self, haccessor: HACCESSOR, pdwaccessorflags: *mut u32, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> windows_core::Result<()>; @@ -147,35 +114,20 @@ pub trait IAccessor_Impl: Sized { impl windows_core::RuntimeName for IAccessor {} #[cfg(feature = "Win32_System_Com")] impl IAccessor_Vtbl { - pub const fn new() -> IAccessor_Vtbl - where - Identity: IAccessor_Impl, - { - unsafe extern "system" fn AddRefAccessor(this: *mut core::ffi::c_void, haccessor: HACCESSOR, pcrefcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAccessor_Impl, - { + pub const fn new() -> IAccessor_Vtbl { + unsafe extern "system" fn AddRefAccessor(this: *mut core::ffi::c_void, haccessor: HACCESSOR, pcrefcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessor_Impl::AddRefAccessor(this, core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pcrefcount)).into() } - unsafe extern "system" fn CreateAccessor(this: *mut core::ffi::c_void, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: *mut HACCESSOR, rgstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IAccessor_Impl, - { + unsafe extern "system" fn CreateAccessor(this: *mut core::ffi::c_void, dwaccessorflags: u32, cbindings: usize, rgbindings: *const DBBINDING, cbrowsize: usize, phaccessor: *mut HACCESSOR, rgstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessor_Impl::CreateAccessor(this, core::mem::transmute_copy(&dwaccessorflags), core::mem::transmute_copy(&cbindings), core::mem::transmute_copy(&rgbindings), core::mem::transmute_copy(&cbrowsize), core::mem::transmute_copy(&phaccessor), core::mem::transmute_copy(&rgstatus)).into() } - unsafe extern "system" fn GetBindings(this: *mut core::ffi::c_void, haccessor: HACCESSOR, pdwaccessorflags: *mut u32, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> windows_core::HRESULT - where - Identity: IAccessor_Impl, - { + unsafe extern "system" fn GetBindings(this: *mut core::ffi::c_void, haccessor: HACCESSOR, pdwaccessorflags: *mut u32, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessor_Impl::GetBindings(this, core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pdwaccessorflags), core::mem::transmute_copy(&pcbindings), core::mem::transmute_copy(&prgbindings)).into() } - unsafe extern "system" fn ReleaseAccessor(this: *mut core::ffi::c_void, haccessor: HACCESSOR, pcrefcount: *mut u32) -> windows_core::HRESULT - where - Identity: IAccessor_Impl, - { + unsafe extern "system" fn ReleaseAccessor(this: *mut core::ffi::c_void, haccessor: HACCESSOR, pcrefcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessor_Impl::ReleaseAccessor(this, core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pcrefcount)).into() } @@ -192,21 +144,15 @@ impl IAccessor_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IAlterIndex_Impl: Sized { +pub trait IAlterIndex_Impl: Sized + windows_core::IUnknownImpl { fn AlterIndex(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, pnewindexid: *const super::super::Storage::IndexServer::DBID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Storage_IndexServer")] impl windows_core::RuntimeName for IAlterIndex {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IAlterIndex_Vtbl { - pub const fn new() -> IAlterIndex_Vtbl - where - Identity: IAlterIndex_Impl, - { - unsafe extern "system" fn AlterIndex(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, pnewindexid: *const super::super::Storage::IndexServer::DBID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: IAlterIndex_Impl, - { + pub const fn new() -> IAlterIndex_Vtbl { + unsafe extern "system" fn AlterIndex(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, pnewindexid: *const super::super::Storage::IndexServer::DBID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlterIndex_Impl::AlterIndex(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pindexid), core::mem::transmute_copy(&pnewindexid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets)).into() } @@ -217,7 +163,7 @@ impl IAlterIndex_Vtbl { } } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] -pub trait IAlterTable_Impl: Sized { +pub trait IAlterTable_Impl: Sized + windows_core::IUnknownImpl { fn AlterColumn(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pcolumnid: *const super::super::Storage::IndexServer::DBID, dwcolumndescflags: u32, pcolumndesc: *const DBCOLUMNDESC) -> windows_core::Result<()>; fn AlterTable(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pnewtableid: *const super::super::Storage::IndexServer::DBID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::Result<()>; } @@ -225,21 +171,12 @@ pub trait IAlterTable_Impl: Sized { impl windows_core::RuntimeName for IAlterTable {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] impl IAlterTable_Vtbl { - pub const fn new() -> IAlterTable_Vtbl - where - Identity: IAlterTable_Impl, - { - unsafe extern "system" fn AlterColumn(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pcolumnid: *const super::super::Storage::IndexServer::DBID, dwcolumndescflags: u32, pcolumndesc: *const DBCOLUMNDESC) -> windows_core::HRESULT - where - Identity: IAlterTable_Impl, - { + pub const fn new() -> IAlterTable_Vtbl { + unsafe extern "system" fn AlterColumn(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pcolumnid: *const super::super::Storage::IndexServer::DBID, dwcolumndescflags: u32, pcolumndesc: *const DBCOLUMNDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlterTable_Impl::AlterColumn(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pcolumnid), core::mem::transmute_copy(&dwcolumndescflags), core::mem::transmute_copy(&pcolumndesc)).into() } - unsafe extern "system" fn AlterTable(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pnewtableid: *const super::super::Storage::IndexServer::DBID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: IAlterTable_Impl, - { + unsafe extern "system" fn AlterTable(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pnewtableid: *const super::super::Storage::IndexServer::DBID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAlterTable_Impl::AlterTable(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pnewtableid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets)).into() } @@ -254,21 +191,15 @@ impl IAlterTable_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IBindResource_Impl: Sized { +pub trait IBindResource_Impl: Sized + windows_core::IUnknownImpl { fn Bind(&self, punkouter: Option<&windows_core::IUnknown>, pwszurl: &windows_core::PCWSTR, dwbindurlflags: u32, rguid: *const windows_core::GUID, riid: *const windows_core::GUID, pauthenticate: Option<&super::Com::IAuthenticate>, pimplsession: *mut DBIMPLICITSESSION, pdwbindstatus: *mut u32, ppunk: *mut Option) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IBindResource {} #[cfg(feature = "Win32_System_Com")] impl IBindResource_Vtbl { - pub const fn new() -> IBindResource_Vtbl - where - Identity: IBindResource_Impl, - { - unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwbindurlflags: u32, rguid: *const windows_core::GUID, riid: *const windows_core::GUID, pauthenticate: *mut core::ffi::c_void, pimplsession: *mut DBIMPLICITSESSION, pdwbindstatus: *mut u32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBindResource_Impl, - { + pub const fn new() -> IBindResource_Vtbl { + unsafe extern "system" fn Bind(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwbindurlflags: u32, rguid: *const windows_core::GUID, riid: *const windows_core::GUID, pauthenticate: *mut core::ffi::c_void, pimplsession: *mut DBIMPLICITSESSION, pdwbindstatus: *mut u32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBindResource_Impl::Bind(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwbindurlflags), core::mem::transmute_copy(&rguid), core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&pauthenticate), core::mem::transmute_copy(&pimplsession), core::mem::transmute_copy(&pdwbindstatus), core::mem::transmute_copy(&ppunk)).into() } @@ -278,27 +209,18 @@ impl IBindResource_Vtbl { iid == &::IID } } -pub trait IChapteredRowset_Impl: Sized { +pub trait IChapteredRowset_Impl: Sized + windows_core::IUnknownImpl { fn AddRefChapter(&self, hchapter: usize, pcrefcount: *mut u32) -> windows_core::Result<()>; fn ReleaseChapter(&self, hchapter: usize, pcrefcount: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IChapteredRowset {} impl IChapteredRowset_Vtbl { - pub const fn new() -> IChapteredRowset_Vtbl - where - Identity: IChapteredRowset_Impl, - { - unsafe extern "system" fn AddRefChapter(this: *mut core::ffi::c_void, hchapter: usize, pcrefcount: *mut u32) -> windows_core::HRESULT - where - Identity: IChapteredRowset_Impl, - { + pub const fn new() -> IChapteredRowset_Vtbl { + unsafe extern "system" fn AddRefChapter(this: *mut core::ffi::c_void, hchapter: usize, pcrefcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChapteredRowset_Impl::AddRefChapter(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&pcrefcount)).into() } - unsafe extern "system" fn ReleaseChapter(this: *mut core::ffi::c_void, hchapter: usize, pcrefcount: *mut u32) -> windows_core::HRESULT - where - Identity: IChapteredRowset_Impl, - { + unsafe extern "system" fn ReleaseChapter(this: *mut core::ffi::c_void, hchapter: usize, pcrefcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChapteredRowset_Impl::ReleaseChapter(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&pcrefcount)).into() } @@ -313,7 +235,7 @@ impl IChapteredRowset_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IColumnMapper_Impl: Sized { +pub trait IColumnMapper_Impl: Sized + windows_core::IUnknownImpl { fn GetPropInfoFromName(&self, wcspropname: &windows_core::PCWSTR, pppropid: *mut *mut super::super::Storage::IndexServer::DBID, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::Result<()>; fn GetPropInfoFromId(&self, ppropid: *const super::super::Storage::IndexServer::DBID, pwcsname: *mut *mut u16, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::Result<()>; fn EnumPropInfo(&self, ientry: u32, pwcsname: *const *const u16, pppropid: *mut *mut super::super::Storage::IndexServer::DBID, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::Result<()>; @@ -323,35 +245,20 @@ pub trait IColumnMapper_Impl: Sized { impl windows_core::RuntimeName for IColumnMapper {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IColumnMapper_Vtbl { - pub const fn new() -> IColumnMapper_Vtbl - where - Identity: IColumnMapper_Impl, - { - unsafe extern "system" fn GetPropInfoFromName(this: *mut core::ffi::c_void, wcspropname: windows_core::PCWSTR, pppropid: *mut *mut super::super::Storage::IndexServer::DBID, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::HRESULT - where - Identity: IColumnMapper_Impl, - { + pub const fn new() -> IColumnMapper_Vtbl { + unsafe extern "system" fn GetPropInfoFromName(this: *mut core::ffi::c_void, wcspropname: windows_core::PCWSTR, pppropid: *mut *mut super::super::Storage::IndexServer::DBID, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnMapper_Impl::GetPropInfoFromName(this, core::mem::transmute(&wcspropname), core::mem::transmute_copy(&pppropid), core::mem::transmute_copy(&pproptype), core::mem::transmute_copy(&puiwidth)).into() } - unsafe extern "system" fn GetPropInfoFromId(this: *mut core::ffi::c_void, ppropid: *const super::super::Storage::IndexServer::DBID, pwcsname: *mut *mut u16, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::HRESULT - where - Identity: IColumnMapper_Impl, - { + unsafe extern "system" fn GetPropInfoFromId(this: *mut core::ffi::c_void, ppropid: *const super::super::Storage::IndexServer::DBID, pwcsname: *mut *mut u16, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnMapper_Impl::GetPropInfoFromId(this, core::mem::transmute_copy(&ppropid), core::mem::transmute_copy(&pwcsname), core::mem::transmute_copy(&pproptype), core::mem::transmute_copy(&puiwidth)).into() } - unsafe extern "system" fn EnumPropInfo(this: *mut core::ffi::c_void, ientry: u32, pwcsname: *const *const u16, pppropid: *mut *mut super::super::Storage::IndexServer::DBID, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::HRESULT - where - Identity: IColumnMapper_Impl, - { + unsafe extern "system" fn EnumPropInfo(this: *mut core::ffi::c_void, ientry: u32, pwcsname: *const *const u16, pppropid: *mut *mut super::super::Storage::IndexServer::DBID, pproptype: *mut u16, puiwidth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnMapper_Impl::EnumPropInfo(this, core::mem::transmute_copy(&ientry), core::mem::transmute_copy(&pwcsname), core::mem::transmute_copy(&pppropid), core::mem::transmute_copy(&pproptype), core::mem::transmute_copy(&puiwidth)).into() } - unsafe extern "system" fn IsMapUpToDate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IColumnMapper_Impl, - { + unsafe extern "system" fn IsMapUpToDate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnMapper_Impl::IsMapUpToDate(this).into() } @@ -367,19 +274,13 @@ impl IColumnMapper_Vtbl { iid == &::IID } } -pub trait IColumnMapperCreator_Impl: Sized { +pub trait IColumnMapperCreator_Impl: Sized + windows_core::IUnknownImpl { fn GetColumnMapper(&self, wcsmachinename: &windows_core::PCWSTR, wcscatalogname: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IColumnMapperCreator {} impl IColumnMapperCreator_Vtbl { - pub const fn new() -> IColumnMapperCreator_Vtbl - where - Identity: IColumnMapperCreator_Impl, - { - unsafe extern "system" fn GetColumnMapper(this: *mut core::ffi::c_void, wcsmachinename: windows_core::PCWSTR, wcscatalogname: windows_core::PCWSTR, ppcolumnmapper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IColumnMapperCreator_Impl, - { + pub const fn new() -> IColumnMapperCreator_Vtbl { + unsafe extern "system" fn GetColumnMapper(this: *mut core::ffi::c_void, wcsmachinename: windows_core::PCWSTR, wcscatalogname: windows_core::PCWSTR, ppcolumnmapper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IColumnMapperCreator_Impl::GetColumnMapper(this, core::mem::transmute(&wcsmachinename), core::mem::transmute(&wcscatalogname)) { Ok(ok__) => { @@ -396,7 +297,7 @@ impl IColumnMapperCreator_Vtbl { } } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] -pub trait IColumnsInfo_Impl: Sized { +pub trait IColumnsInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetColumnInfo(&self, pccolumns: *mut usize, prginfo: *mut *mut DBCOLUMNINFO, ppstringsbuffer: *mut *mut u16) -> windows_core::Result<()>; fn MapColumnIDs(&self, ccolumnids: usize, rgcolumnids: *const super::super::Storage::IndexServer::DBID, rgcolumns: *mut usize) -> windows_core::Result<()>; } @@ -404,21 +305,12 @@ pub trait IColumnsInfo_Impl: Sized { impl windows_core::RuntimeName for IColumnsInfo {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] impl IColumnsInfo_Vtbl { - pub const fn new() -> IColumnsInfo_Vtbl - where - Identity: IColumnsInfo_Impl, - { - unsafe extern "system" fn GetColumnInfo(this: *mut core::ffi::c_void, pccolumns: *mut usize, prginfo: *mut *mut DBCOLUMNINFO, ppstringsbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IColumnsInfo_Impl, - { + pub const fn new() -> IColumnsInfo_Vtbl { + unsafe extern "system" fn GetColumnInfo(this: *mut core::ffi::c_void, pccolumns: *mut usize, prginfo: *mut *mut DBCOLUMNINFO, ppstringsbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnsInfo_Impl::GetColumnInfo(this, core::mem::transmute_copy(&pccolumns), core::mem::transmute_copy(&prginfo), core::mem::transmute_copy(&ppstringsbuffer)).into() } - unsafe extern "system" fn MapColumnIDs(this: *mut core::ffi::c_void, ccolumnids: usize, rgcolumnids: *const super::super::Storage::IndexServer::DBID, rgcolumns: *mut usize) -> windows_core::HRESULT - where - Identity: IColumnsInfo_Impl, - { + unsafe extern "system" fn MapColumnIDs(this: *mut core::ffi::c_void, ccolumnids: usize, rgcolumnids: *const super::super::Storage::IndexServer::DBID, rgcolumns: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnsInfo_Impl::MapColumnIDs(this, core::mem::transmute_copy(&ccolumnids), core::mem::transmute_copy(&rgcolumnids), core::mem::transmute_copy(&rgcolumns)).into() } @@ -440,14 +332,8 @@ pub trait IColumnsInfo2_Impl: Sized + IColumnsInfo_Impl { impl windows_core::RuntimeName for IColumnsInfo2 {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] impl IColumnsInfo2_Vtbl { - pub const fn new() -> IColumnsInfo2_Vtbl - where - Identity: IColumnsInfo2_Impl, - { - unsafe extern "system" fn GetRestrictedColumnInfo(this: *mut core::ffi::c_void, ccolumnidmasks: usize, rgcolumnidmasks: *const super::super::Storage::IndexServer::DBID, dwflags: u32, pccolumns: *mut usize, prgcolumnids: *mut *mut super::super::Storage::IndexServer::DBID, prgcolumninfo: *mut *mut DBCOLUMNINFO, ppstringsbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IColumnsInfo2_Impl, - { + pub const fn new() -> IColumnsInfo2_Vtbl { + unsafe extern "system" fn GetRestrictedColumnInfo(this: *mut core::ffi::c_void, ccolumnidmasks: usize, rgcolumnidmasks: *const super::super::Storage::IndexServer::DBID, dwflags: u32, pccolumns: *mut usize, prgcolumnids: *mut *mut super::super::Storage::IndexServer::DBID, prgcolumninfo: *mut *mut DBCOLUMNINFO, ppstringsbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnsInfo2_Impl::GetRestrictedColumnInfo(this, core::mem::transmute_copy(&ccolumnidmasks), core::mem::transmute_copy(&rgcolumnidmasks), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pccolumns), core::mem::transmute_copy(&prgcolumnids), core::mem::transmute_copy(&prgcolumninfo), core::mem::transmute_copy(&ppstringsbuffer)).into() } @@ -458,7 +344,7 @@ impl IColumnsInfo2_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IColumnsRowset_Impl: Sized { +pub trait IColumnsRowset_Impl: Sized + windows_core::IUnknownImpl { fn GetAvailableColumns(&self, pcoptcolumns: *mut usize, prgoptcolumns: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::Result<()>; fn GetColumnsRowset(&self, punkouter: Option<&windows_core::IUnknown>, coptcolumns: usize, rgoptcolumns: *const super::super::Storage::IndexServer::DBID, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, ppcolrowset: *mut Option) -> windows_core::Result<()>; } @@ -466,21 +352,12 @@ pub trait IColumnsRowset_Impl: Sized { impl windows_core::RuntimeName for IColumnsRowset {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IColumnsRowset_Vtbl { - pub const fn new() -> IColumnsRowset_Vtbl - where - Identity: IColumnsRowset_Impl, - { - unsafe extern "system" fn GetAvailableColumns(this: *mut core::ffi::c_void, pcoptcolumns: *mut usize, prgoptcolumns: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: IColumnsRowset_Impl, - { + pub const fn new() -> IColumnsRowset_Vtbl { + unsafe extern "system" fn GetAvailableColumns(this: *mut core::ffi::c_void, pcoptcolumns: *mut usize, prgoptcolumns: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnsRowset_Impl::GetAvailableColumns(this, core::mem::transmute_copy(&pcoptcolumns), core::mem::transmute_copy(&prgoptcolumns)).into() } - unsafe extern "system" fn GetColumnsRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, coptcolumns: usize, rgoptcolumns: *const super::super::Storage::IndexServer::DBID, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, ppcolrowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IColumnsRowset_Impl, - { + unsafe extern "system" fn GetColumnsRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, coptcolumns: usize, rgoptcolumns: *const super::super::Storage::IndexServer::DBID, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, ppcolrowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnsRowset_Impl::GetColumnsRowset(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&coptcolumns), core::mem::transmute_copy(&rgoptcolumns), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets), core::mem::transmute_copy(&ppcolrowset)).into() } @@ -494,35 +371,23 @@ impl IColumnsRowset_Vtbl { iid == &::IID } } -pub trait ICommand_Impl: Sized { +pub trait ICommand_Impl: Sized + windows_core::IUnknownImpl { fn Cancel(&self) -> windows_core::Result<()>; fn Execute(&self, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID, pparams: *mut DBPARAMS, pcrowsaffected: *mut isize, pprowset: *mut Option) -> windows_core::Result<()>; fn GetDBSession(&self, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for ICommand {} impl ICommand_Vtbl { - pub const fn new() -> ICommand_Vtbl - where - Identity: ICommand_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommand_Impl, - { + pub const fn new() -> ICommand_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommand_Impl::Cancel(this).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, pparams: *mut DBPARAMS, pcrowsaffected: *mut isize, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommand_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, pparams: *mut DBPARAMS, pcrowsaffected: *mut isize, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommand_Impl::Execute(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pparams), core::mem::transmute_copy(&pcrowsaffected), core::mem::transmute_copy(&pprowset)).into() } - unsafe extern "system" fn GetDBSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommand_Impl, - { + unsafe extern "system" fn GetDBSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommand_Impl::GetDBSession(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -543,7 +408,7 @@ impl ICommand_Vtbl { iid == &::IID } } -pub trait ICommandCost_Impl: Sized { +pub trait ICommandCost_Impl: Sized + windows_core::IUnknownImpl { fn GetAccumulatedCost(&self, pwszrowsetname: &windows_core::PCWSTR, pccostlimits: *mut u32, prgcostlimits: *mut *mut DBCOST) -> windows_core::Result<()>; fn GetCostEstimate(&self, pwszrowsetname: &windows_core::PCWSTR, pccostestimates: *mut u32, prgcostestimates: *mut DBCOST) -> windows_core::Result<()>; fn GetCostGoals(&self, pwszrowsetname: &windows_core::PCWSTR, pccostgoals: *mut u32, prgcostgoals: *mut DBCOST) -> windows_core::Result<()>; @@ -553,49 +418,28 @@ pub trait ICommandCost_Impl: Sized { } impl windows_core::RuntimeName for ICommandCost {} impl ICommandCost_Vtbl { - pub const fn new() -> ICommandCost_Vtbl - where - Identity: ICommandCost_Impl, - { - unsafe extern "system" fn GetAccumulatedCost(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, pccostlimits: *mut u32, prgcostlimits: *mut *mut DBCOST) -> windows_core::HRESULT - where - Identity: ICommandCost_Impl, - { + pub const fn new() -> ICommandCost_Vtbl { + unsafe extern "system" fn GetAccumulatedCost(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, pccostlimits: *mut u32, prgcostlimits: *mut *mut DBCOST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandCost_Impl::GetAccumulatedCost(this, core::mem::transmute(&pwszrowsetname), core::mem::transmute_copy(&pccostlimits), core::mem::transmute_copy(&prgcostlimits)).into() } - unsafe extern "system" fn GetCostEstimate(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, pccostestimates: *mut u32, prgcostestimates: *mut DBCOST) -> windows_core::HRESULT - where - Identity: ICommandCost_Impl, - { + unsafe extern "system" fn GetCostEstimate(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, pccostestimates: *mut u32, prgcostestimates: *mut DBCOST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandCost_Impl::GetCostEstimate(this, core::mem::transmute(&pwszrowsetname), core::mem::transmute_copy(&pccostestimates), core::mem::transmute_copy(&prgcostestimates)).into() } - unsafe extern "system" fn GetCostGoals(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, pccostgoals: *mut u32, prgcostgoals: *mut DBCOST) -> windows_core::HRESULT - where - Identity: ICommandCost_Impl, - { + unsafe extern "system" fn GetCostGoals(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, pccostgoals: *mut u32, prgcostgoals: *mut DBCOST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandCost_Impl::GetCostGoals(this, core::mem::transmute(&pwszrowsetname), core::mem::transmute_copy(&pccostgoals), core::mem::transmute_copy(&prgcostgoals)).into() } - unsafe extern "system" fn GetCostLimits(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, pccostlimits: *mut u32, prgcostlimits: *mut DBCOST) -> windows_core::HRESULT - where - Identity: ICommandCost_Impl, - { + unsafe extern "system" fn GetCostLimits(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, pccostlimits: *mut u32, prgcostlimits: *mut DBCOST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandCost_Impl::GetCostLimits(this, core::mem::transmute(&pwszrowsetname), core::mem::transmute_copy(&pccostlimits), core::mem::transmute_copy(&prgcostlimits)).into() } - unsafe extern "system" fn SetCostGoals(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, ccostgoals: u32, rgcostgoals: *const DBCOST) -> windows_core::HRESULT - where - Identity: ICommandCost_Impl, - { + unsafe extern "system" fn SetCostGoals(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, ccostgoals: u32, rgcostgoals: *const DBCOST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandCost_Impl::SetCostGoals(this, core::mem::transmute(&pwszrowsetname), core::mem::transmute_copy(&ccostgoals), core::mem::transmute_copy(&rgcostgoals)).into() } - unsafe extern "system" fn SetCostLimits(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, ccostlimits: u32, prgcostlimits: *const DBCOST, dwexecutionflags: u32) -> windows_core::HRESULT - where - Identity: ICommandCost_Impl, - { + unsafe extern "system" fn SetCostLimits(this: *mut core::ffi::c_void, pwszrowsetname: windows_core::PCWSTR, ccostlimits: u32, prgcostlimits: *const DBCOST, dwexecutionflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandCost_Impl::SetCostLimits(this, core::mem::transmute(&pwszrowsetname), core::mem::transmute_copy(&ccostlimits), core::mem::transmute_copy(&prgcostlimits), core::mem::transmute_copy(&dwexecutionflags)).into() } @@ -614,7 +458,7 @@ impl ICommandCost_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait ICommandPersist_Impl: Sized { +pub trait ICommandPersist_Impl: Sized + windows_core::IUnknownImpl { fn DeleteCommand(&self, pcommandid: *const super::super::Storage::IndexServer::DBID) -> windows_core::Result<()>; fn GetCurrentCommand(&self) -> windows_core::Result<*mut super::super::Storage::IndexServer::DBID>; fn LoadCommand(&self, pcommandid: *const super::super::Storage::IndexServer::DBID, dwflags: u32) -> windows_core::Result<()>; @@ -624,21 +468,12 @@ pub trait ICommandPersist_Impl: Sized { impl windows_core::RuntimeName for ICommandPersist {} #[cfg(feature = "Win32_Storage_IndexServer")] impl ICommandPersist_Vtbl { - pub const fn new() -> ICommandPersist_Vtbl - where - Identity: ICommandPersist_Impl, - { - unsafe extern "system" fn DeleteCommand(this: *mut core::ffi::c_void, pcommandid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: ICommandPersist_Impl, - { + pub const fn new() -> ICommandPersist_Vtbl { + unsafe extern "system" fn DeleteCommand(this: *mut core::ffi::c_void, pcommandid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandPersist_Impl::DeleteCommand(this, core::mem::transmute_copy(&pcommandid)).into() } - unsafe extern "system" fn GetCurrentCommand(this: *mut core::ffi::c_void, ppcommandid: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: ICommandPersist_Impl, - { + unsafe extern "system" fn GetCurrentCommand(this: *mut core::ffi::c_void, ppcommandid: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommandPersist_Impl::GetCurrentCommand(this) { Ok(ok__) => { @@ -648,17 +483,11 @@ impl ICommandPersist_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadCommand(this: *mut core::ffi::c_void, pcommandid: *const super::super::Storage::IndexServer::DBID, dwflags: u32) -> windows_core::HRESULT - where - Identity: ICommandPersist_Impl, - { + unsafe extern "system" fn LoadCommand(this: *mut core::ffi::c_void, pcommandid: *const super::super::Storage::IndexServer::DBID, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandPersist_Impl::LoadCommand(this, core::mem::transmute_copy(&pcommandid), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SaveCommand(this: *mut core::ffi::c_void, pcommandid: *const super::super::Storage::IndexServer::DBID, dwflags: u32) -> windows_core::HRESULT - where - Identity: ICommandPersist_Impl, - { + unsafe extern "system" fn SaveCommand(this: *mut core::ffi::c_void, pcommandid: *const super::super::Storage::IndexServer::DBID, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandPersist_Impl::SaveCommand(this, core::mem::transmute_copy(&pcommandid), core::mem::transmute_copy(&dwflags)).into() } @@ -674,27 +503,18 @@ impl ICommandPersist_Vtbl { iid == &::IID } } -pub trait ICommandPrepare_Impl: Sized { +pub trait ICommandPrepare_Impl: Sized + windows_core::IUnknownImpl { fn Prepare(&self, cexpectedruns: u32) -> windows_core::Result<()>; fn Unprepare(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICommandPrepare {} impl ICommandPrepare_Vtbl { - pub const fn new() -> ICommandPrepare_Vtbl - where - Identity: ICommandPrepare_Impl, - { - unsafe extern "system" fn Prepare(this: *mut core::ffi::c_void, cexpectedruns: u32) -> windows_core::HRESULT - where - Identity: ICommandPrepare_Impl, - { + pub const fn new() -> ICommandPrepare_Vtbl { + unsafe extern "system" fn Prepare(this: *mut core::ffi::c_void, cexpectedruns: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandPrepare_Impl::Prepare(this, core::mem::transmute_copy(&cexpectedruns)).into() } - unsafe extern "system" fn Unprepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommandPrepare_Impl, - { + unsafe extern "system" fn Unprepare(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandPrepare_Impl::Unprepare(this).into() } @@ -705,7 +525,7 @@ impl ICommandPrepare_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait ICommandProperties_Impl: Sized { +pub trait ICommandProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::Result<()>; fn SetProperties(&self, cpropertysets: u32, rgpropertysets: *const DBPROPSET) -> windows_core::Result<()>; } @@ -713,21 +533,12 @@ pub trait ICommandProperties_Impl: Sized { impl windows_core::RuntimeName for ICommandProperties {} #[cfg(feature = "Win32_Storage_IndexServer")] impl ICommandProperties_Vtbl { - pub const fn new() -> ICommandProperties_Vtbl - where - Identity: ICommandProperties_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: ICommandProperties_Impl, - { + pub const fn new() -> ICommandProperties_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandProperties_Impl::GetProperties(this, core::mem::transmute_copy(&cpropertyidsets), core::mem::transmute_copy(&rgpropertyidsets), core::mem::transmute_copy(&pcpropertysets), core::mem::transmute_copy(&prgpropertysets)).into() } - unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, cpropertysets: u32, rgpropertysets: *const DBPROPSET) -> windows_core::HRESULT - where - Identity: ICommandProperties_Impl, - { + unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, cpropertysets: u32, rgpropertysets: *const DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandProperties_Impl::SetProperties(this, core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets)).into() } @@ -741,27 +552,18 @@ impl ICommandProperties_Vtbl { iid == &::IID } } -pub trait ICommandStream_Impl: Sized { +pub trait ICommandStream_Impl: Sized + windows_core::IUnknownImpl { fn GetCommandStream(&self, piid: *mut windows_core::GUID, pguiddialect: *mut windows_core::GUID, ppcommandstream: *mut Option) -> windows_core::Result<()>; fn SetCommandStream(&self, riid: *const windows_core::GUID, rguiddialect: *const windows_core::GUID, pcommandstream: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICommandStream {} impl ICommandStream_Vtbl { - pub const fn new() -> ICommandStream_Vtbl - where - Identity: ICommandStream_Impl, - { - unsafe extern "system" fn GetCommandStream(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID, pguiddialect: *mut windows_core::GUID, ppcommandstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommandStream_Impl, - { + pub const fn new() -> ICommandStream_Vtbl { + unsafe extern "system" fn GetCommandStream(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID, pguiddialect: *mut windows_core::GUID, ppcommandstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandStream_Impl::GetCommandStream(this, core::mem::transmute_copy(&piid), core::mem::transmute_copy(&pguiddialect), core::mem::transmute_copy(&ppcommandstream)).into() } - unsafe extern "system" fn SetCommandStream(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, rguiddialect: *const windows_core::GUID, pcommandstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommandStream_Impl, - { + unsafe extern "system" fn SetCommandStream(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, rguiddialect: *const windows_core::GUID, pcommandstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandStream_Impl::SetCommandStream(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&rguiddialect), windows_core::from_raw_borrowed(&pcommandstream)).into() } @@ -781,21 +583,12 @@ pub trait ICommandText_Impl: Sized + ICommand_Impl { } impl windows_core::RuntimeName for ICommandText {} impl ICommandText_Vtbl { - pub const fn new() -> ICommandText_Vtbl - where - Identity: ICommandText_Impl, - { - unsafe extern "system" fn GetCommandText(this: *mut core::ffi::c_void, pguiddialect: *mut windows_core::GUID, ppwszcommand: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICommandText_Impl, - { + pub const fn new() -> ICommandText_Vtbl { + unsafe extern "system" fn GetCommandText(this: *mut core::ffi::c_void, pguiddialect: *mut windows_core::GUID, ppwszcommand: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandText_Impl::GetCommandText(this, core::mem::transmute_copy(&pguiddialect), core::mem::transmute_copy(&ppwszcommand)).into() } - unsafe extern "system" fn SetCommandText(this: *mut core::ffi::c_void, rguiddialect: *const windows_core::GUID, pwszcommand: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICommandText_Impl, - { + unsafe extern "system" fn SetCommandText(this: *mut core::ffi::c_void, rguiddialect: *const windows_core::GUID, pwszcommand: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandText_Impl::SetCommandText(this, core::mem::transmute_copy(&rguiddialect), core::mem::transmute(&pwszcommand)).into() } @@ -809,27 +602,18 @@ impl ICommandText_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ICommandValidate_Impl: Sized { +pub trait ICommandValidate_Impl: Sized + windows_core::IUnknownImpl { fn ValidateCompletely(&self) -> windows_core::Result<()>; fn ValidateSyntax(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICommandValidate {} impl ICommandValidate_Vtbl { - pub const fn new() -> ICommandValidate_Vtbl - where - Identity: ICommandValidate_Impl, - { - unsafe extern "system" fn ValidateCompletely(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommandValidate_Impl, - { + pub const fn new() -> ICommandValidate_Vtbl { + unsafe extern "system" fn ValidateCompletely(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandValidate_Impl::ValidateCompletely(this).into() } - unsafe extern "system" fn ValidateSyntax(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommandValidate_Impl, - { + unsafe extern "system" fn ValidateSyntax(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandValidate_Impl::ValidateSyntax(this).into() } @@ -844,7 +628,7 @@ impl ICommandValidate_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICommandWithParameters_Impl: Sized { +pub trait ICommandWithParameters_Impl: Sized + windows_core::IUnknownImpl { fn GetParameterInfo(&self, pcparams: *mut usize, prgparaminfo: *mut *mut DBPARAMINFO, ppnamesbuffer: *mut *mut u16) -> windows_core::Result<()>; fn MapParameterNames(&self, cparamnames: usize, rgparamnames: *const windows_core::PCWSTR, rgparamordinals: *mut isize) -> windows_core::Result<()>; fn SetParameterInfo(&self, cparams: usize, rgparamordinals: *const usize, rgparambindinfo: *const DBPARAMBINDINFO) -> windows_core::Result<()>; @@ -853,28 +637,16 @@ pub trait ICommandWithParameters_Impl: Sized { impl windows_core::RuntimeName for ICommandWithParameters {} #[cfg(feature = "Win32_System_Com")] impl ICommandWithParameters_Vtbl { - pub const fn new() -> ICommandWithParameters_Vtbl - where - Identity: ICommandWithParameters_Impl, - { - unsafe extern "system" fn GetParameterInfo(this: *mut core::ffi::c_void, pcparams: *mut usize, prgparaminfo: *mut *mut DBPARAMINFO, ppnamesbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: ICommandWithParameters_Impl, - { + pub const fn new() -> ICommandWithParameters_Vtbl { + unsafe extern "system" fn GetParameterInfo(this: *mut core::ffi::c_void, pcparams: *mut usize, prgparaminfo: *mut *mut DBPARAMINFO, ppnamesbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandWithParameters_Impl::GetParameterInfo(this, core::mem::transmute_copy(&pcparams), core::mem::transmute_copy(&prgparaminfo), core::mem::transmute_copy(&ppnamesbuffer)).into() } - unsafe extern "system" fn MapParameterNames(this: *mut core::ffi::c_void, cparamnames: usize, rgparamnames: *const windows_core::PCWSTR, rgparamordinals: *mut isize) -> windows_core::HRESULT - where - Identity: ICommandWithParameters_Impl, - { + unsafe extern "system" fn MapParameterNames(this: *mut core::ffi::c_void, cparamnames: usize, rgparamnames: *const windows_core::PCWSTR, rgparamordinals: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandWithParameters_Impl::MapParameterNames(this, core::mem::transmute_copy(&cparamnames), core::mem::transmute_copy(&rgparamnames), core::mem::transmute_copy(&rgparamordinals)).into() } - unsafe extern "system" fn SetParameterInfo(this: *mut core::ffi::c_void, cparams: usize, rgparamordinals: *const usize, rgparambindinfo: *const DBPARAMBINDINFO) -> windows_core::HRESULT - where - Identity: ICommandWithParameters_Impl, - { + unsafe extern "system" fn SetParameterInfo(this: *mut core::ffi::c_void, cparams: usize, rgparamordinals: *const usize, rgparambindinfo: *const DBPARAMBINDINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommandWithParameters_Impl::SetParameterInfo(this, core::mem::transmute_copy(&cparams), core::mem::transmute_copy(&rgparamordinals), core::mem::transmute_copy(&rgparambindinfo)).into() } @@ -903,14 +675,8 @@ pub trait ICondition_Impl: Sized + super::Com::IPersistStream_Impl { impl windows_core::RuntimeName for ICondition {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] impl ICondition_Vtbl { - pub const fn new() -> ICondition_Vtbl - where - Identity: ICondition_Impl, - { - unsafe extern "system" fn GetConditionType(this: *mut core::ffi::c_void, pnodetype: *mut Common::CONDITION_TYPE) -> windows_core::HRESULT - where - Identity: ICondition_Impl, - { + pub const fn new() -> ICondition_Vtbl { + unsafe extern "system" fn GetConditionType(this: *mut core::ffi::c_void, pnodetype: *mut Common::CONDITION_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICondition_Impl::GetConditionType(this) { Ok(ok__) => { @@ -920,24 +686,15 @@ impl ICondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubConditions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICondition_Impl, - { + unsafe extern "system" fn GetSubConditions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICondition_Impl::GetSubConditions(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetComparisonInfo(this: *mut core::ffi::c_void, ppszpropertyname: *mut windows_core::PWSTR, pcop: *mut Common::CONDITION_OPERATION, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICondition_Impl, - { + unsafe extern "system" fn GetComparisonInfo(this: *mut core::ffi::c_void, ppszpropertyname: *mut windows_core::PWSTR, pcop: *mut Common::CONDITION_OPERATION, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICondition_Impl::GetComparisonInfo(this, core::mem::transmute_copy(&ppszpropertyname), core::mem::transmute_copy(&pcop), core::mem::transmute_copy(&ppropvar)).into() } - unsafe extern "system" fn GetValueType(this: *mut core::ffi::c_void, ppszvaluetypename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICondition_Impl, - { + unsafe extern "system" fn GetValueType(this: *mut core::ffi::c_void, ppszvaluetypename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICondition_Impl::GetValueType(this) { Ok(ok__) => { @@ -947,10 +704,7 @@ impl ICondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValueNormalization(this: *mut core::ffi::c_void, ppsznormalization: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICondition_Impl, - { + unsafe extern "system" fn GetValueNormalization(this: *mut core::ffi::c_void, ppsznormalization: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICondition_Impl::GetValueNormalization(this) { Ok(ok__) => { @@ -960,17 +714,11 @@ impl ICondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputTerms(this: *mut core::ffi::c_void, pppropertyterm: *mut *mut core::ffi::c_void, ppoperationterm: *mut *mut core::ffi::c_void, ppvalueterm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICondition_Impl, - { + unsafe extern "system" fn GetInputTerms(this: *mut core::ffi::c_void, pppropertyterm: *mut *mut core::ffi::c_void, ppoperationterm: *mut *mut core::ffi::c_void, ppvalueterm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICondition_Impl::GetInputTerms(this, core::mem::transmute_copy(&pppropertyterm), core::mem::transmute_copy(&ppoperationterm), core::mem::transmute_copy(&ppvalueterm)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICondition_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICondition_Impl::Clone(this) { Ok(ok__) => { @@ -1004,14 +752,8 @@ pub trait ICondition2_Impl: Sized + ICondition_Impl { impl windows_core::RuntimeName for ICondition2 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] impl ICondition2_Vtbl { - pub const fn new() -> ICondition2_Vtbl - where - Identity: ICondition2_Impl, - { - unsafe extern "system" fn GetLocale(this: *mut core::ffi::c_void, ppszlocalename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICondition2_Impl, - { + pub const fn new() -> ICondition2_Vtbl { + unsafe extern "system" fn GetLocale(this: *mut core::ffi::c_void, ppszlocalename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICondition2_Impl::GetLocale(this) { Ok(ok__) => { @@ -1021,10 +763,7 @@ impl ICondition2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLeafConditionInfo(this: *mut core::ffi::c_void, ppropkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pcop: *mut Common::CONDITION_OPERATION, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICondition2_Impl, - { + unsafe extern "system" fn GetLeafConditionInfo(this: *mut core::ffi::c_void, ppropkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pcop: *mut Common::CONDITION_OPERATION, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICondition2_Impl::GetLeafConditionInfo(this, core::mem::transmute_copy(&ppropkey), core::mem::transmute_copy(&pcop), core::mem::transmute_copy(&ppropvar)).into() } @@ -1039,7 +778,7 @@ impl ICondition2_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] -pub trait IConditionFactory_Impl: Sized { +pub trait IConditionFactory_Impl: Sized + windows_core::IUnknownImpl { fn MakeNot(&self, pcsub: Option<&ICondition>, fsimplify: super::super::Foundation::BOOL) -> windows_core::Result; fn MakeAndOr(&self, ct: Common::CONDITION_TYPE, peusubs: Option<&super::Com::IEnumUnknown>, fsimplify: super::super::Foundation::BOOL) -> windows_core::Result; fn MakeLeaf(&self, pszpropertyname: &windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: &windows_core::PCWSTR, ppropvar: *const windows_core::PROPVARIANT, ppropertynameterm: Option<&IRichChunk>, poperationterm: Option<&IRichChunk>, pvalueterm: Option<&IRichChunk>, fexpand: super::super::Foundation::BOOL) -> windows_core::Result; @@ -1049,14 +788,8 @@ pub trait IConditionFactory_Impl: Sized { impl windows_core::RuntimeName for IConditionFactory {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] impl IConditionFactory_Vtbl { - pub const fn new() -> IConditionFactory_Vtbl - where - Identity: IConditionFactory_Impl, - { - unsafe extern "system" fn MakeNot(this: *mut core::ffi::c_void, pcsub: *mut core::ffi::c_void, fsimplify: super::super::Foundation::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory_Impl, - { + pub const fn new() -> IConditionFactory_Vtbl { + unsafe extern "system" fn MakeNot(this: *mut core::ffi::c_void, pcsub: *mut core::ffi::c_void, fsimplify: super::super::Foundation::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConditionFactory_Impl::MakeNot(this, windows_core::from_raw_borrowed(&pcsub), core::mem::transmute_copy(&fsimplify)) { Ok(ok__) => { @@ -1066,10 +799,7 @@ impl IConditionFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MakeAndOr(this: *mut core::ffi::c_void, ct: Common::CONDITION_TYPE, peusubs: *mut core::ffi::c_void, fsimplify: super::super::Foundation::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory_Impl, - { + unsafe extern "system" fn MakeAndOr(this: *mut core::ffi::c_void, ct: Common::CONDITION_TYPE, peusubs: *mut core::ffi::c_void, fsimplify: super::super::Foundation::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConditionFactory_Impl::MakeAndOr(this, core::mem::transmute_copy(&ct), windows_core::from_raw_borrowed(&peusubs), core::mem::transmute_copy(&fsimplify)) { Ok(ok__) => { @@ -1079,10 +809,7 @@ impl IConditionFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MakeLeaf(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: windows_core::PCWSTR, ppropvar: *const core::mem::MaybeUninit, ppropertynameterm: *mut core::ffi::c_void, poperationterm: *mut core::ffi::c_void, pvalueterm: *mut core::ffi::c_void, fexpand: super::super::Foundation::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory_Impl, - { + unsafe extern "system" fn MakeLeaf(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: windows_core::PCWSTR, ppropvar: *const core::mem::MaybeUninit, ppropertynameterm: *mut core::ffi::c_void, poperationterm: *mut core::ffi::c_void, pvalueterm: *mut core::ffi::c_void, fexpand: super::super::Foundation::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConditionFactory_Impl::MakeLeaf(this, core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&cop), core::mem::transmute(&pszvaluetype), core::mem::transmute_copy(&ppropvar), windows_core::from_raw_borrowed(&ppropertynameterm), windows_core::from_raw_borrowed(&poperationterm), windows_core::from_raw_borrowed(&pvalueterm), core::mem::transmute_copy(&fexpand)) { Ok(ok__) => { @@ -1092,10 +819,7 @@ impl IConditionFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, pc: *mut core::ffi::c_void, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstreferencetime: *const super::super::Foundation::SYSTEMTIME, ppcresolved: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory_Impl, - { + unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, pc: *mut core::ffi::c_void, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstreferencetime: *const super::super::Foundation::SYSTEMTIME, ppcresolved: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConditionFactory_Impl::Resolve(this, windows_core::from_raw_borrowed(&pc), core::mem::transmute_copy(&sqro), core::mem::transmute_copy(&pstreferencetime)) { Ok(ok__) => { @@ -1133,70 +857,40 @@ pub trait IConditionFactory2_Impl: Sized + IConditionFactory_Impl { impl windows_core::RuntimeName for IConditionFactory2 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IConditionFactory2_Vtbl { - pub const fn new() -> IConditionFactory2_Vtbl - where - Identity: IConditionFactory2_Impl, - { - unsafe extern "system" fn CreateTrueFalse(this: *mut core::ffi::c_void, fval: super::super::Foundation::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory2_Impl, - { + pub const fn new() -> IConditionFactory2_Vtbl { + unsafe extern "system" fn CreateTrueFalse(this: *mut core::ffi::c_void, fval: super::super::Foundation::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::CreateTrueFalse(this, core::mem::transmute_copy(&fval), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateNegation(this: *mut core::ffi::c_void, pcsub: *mut core::ffi::c_void, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory2_Impl, - { + unsafe extern "system" fn CreateNegation(this: *mut core::ffi::c_void, pcsub: *mut core::ffi::c_void, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::CreateNegation(this, windows_core::from_raw_borrowed(&pcsub), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateCompoundFromObjectArray(this: *mut core::ffi::c_void, ct: Common::CONDITION_TYPE, poasubs: *mut core::ffi::c_void, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory2_Impl, - { + unsafe extern "system" fn CreateCompoundFromObjectArray(this: *mut core::ffi::c_void, ct: Common::CONDITION_TYPE, poasubs: *mut core::ffi::c_void, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::CreateCompoundFromObjectArray(this, core::mem::transmute_copy(&ct), windows_core::from_raw_borrowed(&poasubs), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateCompoundFromArray(this: *mut core::ffi::c_void, ct: Common::CONDITION_TYPE, ppcondsubs: *const *mut core::ffi::c_void, csubs: u32, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory2_Impl, - { + unsafe extern "system" fn CreateCompoundFromArray(this: *mut core::ffi::c_void, ct: Common::CONDITION_TYPE, ppcondsubs: *const *mut core::ffi::c_void, csubs: u32, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::CreateCompoundFromArray(this, core::mem::transmute_copy(&ct), core::mem::transmute_copy(&ppcondsubs), core::mem::transmute_copy(&csubs), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateStringLeaf(this: *mut core::ffi::c_void, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, pszvalue: windows_core::PCWSTR, pszlocalename: windows_core::PCWSTR, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory2_Impl, - { + unsafe extern "system" fn CreateStringLeaf(this: *mut core::ffi::c_void, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, pszvalue: windows_core::PCWSTR, pszlocalename: windows_core::PCWSTR, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::CreateStringLeaf(this, core::mem::transmute_copy(&propkey), core::mem::transmute_copy(&cop), core::mem::transmute(&pszvalue), core::mem::transmute(&pszlocalename), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateIntegerLeaf(this: *mut core::ffi::c_void, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, lvalue: i32, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory2_Impl, - { + unsafe extern "system" fn CreateIntegerLeaf(this: *mut core::ffi::c_void, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, lvalue: i32, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::CreateIntegerLeaf(this, core::mem::transmute_copy(&propkey), core::mem::transmute_copy(&cop), core::mem::transmute_copy(&lvalue), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateBooleanLeaf(this: *mut core::ffi::c_void, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, fvalue: super::super::Foundation::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory2_Impl, - { + unsafe extern "system" fn CreateBooleanLeaf(this: *mut core::ffi::c_void, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, fvalue: super::super::Foundation::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::CreateBooleanLeaf(this, core::mem::transmute_copy(&propkey), core::mem::transmute_copy(&cop), core::mem::transmute_copy(&fvalue), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateLeaf(this: *mut core::ffi::c_void, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, propvar: *const core::mem::MaybeUninit, pszsemantictype: windows_core::PCWSTR, pszlocalename: windows_core::PCWSTR, ppropertynameterm: *mut core::ffi::c_void, poperationterm: *mut core::ffi::c_void, pvalueterm: *mut core::ffi::c_void, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory2_Impl, - { + unsafe extern "system" fn CreateLeaf(this: *mut core::ffi::c_void, propkey: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, cop: Common::CONDITION_OPERATION, propvar: *const core::mem::MaybeUninit, pszsemantictype: windows_core::PCWSTR, pszlocalename: windows_core::PCWSTR, ppropertynameterm: *mut core::ffi::c_void, poperationterm: *mut core::ffi::c_void, pvalueterm: *mut core::ffi::c_void, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::CreateLeaf(this, core::mem::transmute_copy(&propkey), core::mem::transmute_copy(&cop), core::mem::transmute_copy(&propvar), core::mem::transmute(&pszsemantictype), core::mem::transmute(&pszlocalename), windows_core::from_raw_borrowed(&ppropertynameterm), windows_core::from_raw_borrowed(&poperationterm), windows_core::from_raw_borrowed(&pvalueterm), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn ResolveCondition(this: *mut core::ffi::c_void, pc: *mut core::ffi::c_void, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstreferencetime: *const super::super::Foundation::SYSTEMTIME, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionFactory2_Impl, - { + unsafe extern "system" fn ResolveCondition(this: *mut core::ffi::c_void, pc: *mut core::ffi::c_void, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstreferencetime: *const super::super::Foundation::SYSTEMTIME, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::ResolveCondition(this, windows_core::from_raw_borrowed(&pc), core::mem::transmute_copy(&sqro), core::mem::transmute_copy(&pstreferencetime), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -1218,7 +912,7 @@ impl IConditionFactory2_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] -pub trait IConditionGenerator_Impl: Sized { +pub trait IConditionGenerator_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pschemaprovider: Option<&ISchemaProvider>) -> windows_core::Result<()>; fn RecognizeNamedEntities(&self, pszinputstring: &windows_core::PCWSTR, lciduserlocale: u32, ptokencollection: Option<&ITokenCollection>, pnamedentities: Option<&INamedEntityCollector>) -> windows_core::Result<()>; fn GenerateForLeaf(&self, pconditionfactory: Option<&IConditionFactory>, pszpropertyname: &windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: &windows_core::PCWSTR, pszvalue: &windows_core::PCWSTR, pszvalue2: &windows_core::PCWSTR, ppropertynameterm: Option<&IRichChunk>, poperationterm: Option<&IRichChunk>, pvalueterm: Option<&IRichChunk>, automaticwildcard: super::super::Foundation::BOOL, pnostringquery: *mut super::super::Foundation::BOOL) -> windows_core::Result; @@ -1228,28 +922,16 @@ pub trait IConditionGenerator_Impl: Sized { impl windows_core::RuntimeName for IConditionGenerator {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] impl IConditionGenerator_Vtbl { - pub const fn new() -> IConditionGenerator_Vtbl - where - Identity: IConditionGenerator_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pschemaprovider: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionGenerator_Impl, - { + pub const fn new() -> IConditionGenerator_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pschemaprovider: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionGenerator_Impl::Initialize(this, windows_core::from_raw_borrowed(&pschemaprovider)).into() } - unsafe extern "system" fn RecognizeNamedEntities(this: *mut core::ffi::c_void, pszinputstring: windows_core::PCWSTR, lciduserlocale: u32, ptokencollection: *mut core::ffi::c_void, pnamedentities: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionGenerator_Impl, - { + unsafe extern "system" fn RecognizeNamedEntities(this: *mut core::ffi::c_void, pszinputstring: windows_core::PCWSTR, lciduserlocale: u32, ptokencollection: *mut core::ffi::c_void, pnamedentities: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionGenerator_Impl::RecognizeNamedEntities(this, core::mem::transmute(&pszinputstring), core::mem::transmute_copy(&lciduserlocale), windows_core::from_raw_borrowed(&ptokencollection), windows_core::from_raw_borrowed(&pnamedentities)).into() } - unsafe extern "system" fn GenerateForLeaf(this: *mut core::ffi::c_void, pconditionfactory: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: windows_core::PCWSTR, pszvalue: windows_core::PCWSTR, pszvalue2: windows_core::PCWSTR, ppropertynameterm: *mut core::ffi::c_void, poperationterm: *mut core::ffi::c_void, pvalueterm: *mut core::ffi::c_void, automaticwildcard: super::super::Foundation::BOOL, pnostringquery: *mut super::super::Foundation::BOOL, ppqueryexpression: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConditionGenerator_Impl, - { + unsafe extern "system" fn GenerateForLeaf(this: *mut core::ffi::c_void, pconditionfactory: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: windows_core::PCWSTR, pszvalue: windows_core::PCWSTR, pszvalue2: windows_core::PCWSTR, ppropertynameterm: *mut core::ffi::c_void, poperationterm: *mut core::ffi::c_void, pvalueterm: *mut core::ffi::c_void, automaticwildcard: super::super::Foundation::BOOL, pnostringquery: *mut super::super::Foundation::BOOL, ppqueryexpression: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConditionGenerator_Impl::GenerateForLeaf(this, windows_core::from_raw_borrowed(&pconditionfactory), core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&cop), core::mem::transmute(&pszvaluetype), core::mem::transmute(&pszvalue), core::mem::transmute(&pszvalue2), windows_core::from_raw_borrowed(&ppropertynameterm), windows_core::from_raw_borrowed(&poperationterm), windows_core::from_raw_borrowed(&pvalueterm), core::mem::transmute_copy(&automaticwildcard), core::mem::transmute_copy(&pnostringquery)) { Ok(ok__) => { @@ -1259,10 +941,7 @@ impl IConditionGenerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultPhrase(this: *mut core::ffi::c_void, pszvaluetype: windows_core::PCWSTR, ppropvar: *const core::mem::MaybeUninit, fuseenglish: super::super::Foundation::BOOL, ppszphrase: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IConditionGenerator_Impl, - { + unsafe extern "system" fn DefaultPhrase(this: *mut core::ffi::c_void, pszvaluetype: windows_core::PCWSTR, ppropvar: *const core::mem::MaybeUninit, fuseenglish: super::super::Foundation::BOOL, ppszphrase: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionGenerator_Impl::DefaultPhrase(this, core::mem::transmute(&pszvaluetype), core::mem::transmute_copy(&ppropvar), core::mem::transmute_copy(&fuseenglish), core::mem::transmute_copy(&ppszphrase)).into() } @@ -1278,19 +957,13 @@ impl IConditionGenerator_Vtbl { iid == &::IID } } -pub trait IConvertType_Impl: Sized { +pub trait IConvertType_Impl: Sized + windows_core::IUnknownImpl { fn CanConvert(&self, wfromtype: u16, wtotype: u16, dwconvertflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IConvertType {} impl IConvertType_Vtbl { - pub const fn new() -> IConvertType_Vtbl - where - Identity: IConvertType_Impl, - { - unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, wfromtype: u16, wtotype: u16, dwconvertflags: u32) -> windows_core::HRESULT - where - Identity: IConvertType_Impl, - { + pub const fn new() -> IConvertType_Vtbl { + unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, wfromtype: u16, wtotype: u16, dwconvertflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConvertType_Impl::CanConvert(this, core::mem::transmute_copy(&wfromtype), core::mem::transmute_copy(&wtotype), core::mem::transmute_copy(&dwconvertflags)).into() } @@ -1301,21 +974,15 @@ impl IConvertType_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ICreateRow_Impl: Sized { +pub trait ICreateRow_Impl: Sized + windows_core::IUnknownImpl { fn CreateRow(&self, punkouter: Option<&windows_core::IUnknown>, pwszurl: &windows_core::PCWSTR, dwbindurlflags: u32, rguid: *const windows_core::GUID, riid: *const windows_core::GUID, pauthenticate: Option<&super::Com::IAuthenticate>, pimplsession: *mut DBIMPLICITSESSION, pdwbindstatus: *mut u32, ppwsznewurl: *mut windows_core::PWSTR, ppunk: *mut Option) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ICreateRow {} #[cfg(feature = "Win32_System_Com")] impl ICreateRow_Vtbl { - pub const fn new() -> ICreateRow_Vtbl - where - Identity: ICreateRow_Impl, - { - unsafe extern "system" fn CreateRow(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwbindurlflags: u32, rguid: *const windows_core::GUID, riid: *const windows_core::GUID, pauthenticate: *mut core::ffi::c_void, pimplsession: *mut DBIMPLICITSESSION, pdwbindstatus: *mut u32, ppwsznewurl: *mut windows_core::PWSTR, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateRow_Impl, - { + pub const fn new() -> ICreateRow_Vtbl { + unsafe extern "system" fn CreateRow(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwbindurlflags: u32, rguid: *const windows_core::GUID, riid: *const windows_core::GUID, pauthenticate: *mut core::ffi::c_void, pimplsession: *mut DBIMPLICITSESSION, pdwbindstatus: *mut u32, ppwsznewurl: *mut windows_core::PWSTR, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateRow_Impl::CreateRow(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwbindurlflags), core::mem::transmute_copy(&rguid), core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&pauthenticate), core::mem::transmute_copy(&pimplsession), core::mem::transmute_copy(&pdwbindstatus), core::mem::transmute_copy(&ppwsznewurl), core::mem::transmute_copy(&ppunk)).into() } @@ -1325,35 +992,23 @@ impl ICreateRow_Vtbl { iid == &::IID } } -pub trait IDBAsynchNotify_Impl: Sized { +pub trait IDBAsynchNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnLowResource(&self, dwreserved: usize) -> windows_core::Result<()>; fn OnProgress(&self, hchapter: usize, eoperation: u32, ulprogress: usize, ulprogressmax: usize, easynchphase: u32, pwszstatustext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OnStop(&self, hchapter: usize, eoperation: u32, hrstatus: windows_core::HRESULT, pwszstatustext: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDBAsynchNotify {} impl IDBAsynchNotify_Vtbl { - pub const fn new() -> IDBAsynchNotify_Vtbl - where - Identity: IDBAsynchNotify_Impl, - { - unsafe extern "system" fn OnLowResource(this: *mut core::ffi::c_void, dwreserved: usize) -> windows_core::HRESULT - where - Identity: IDBAsynchNotify_Impl, - { + pub const fn new() -> IDBAsynchNotify_Vtbl { + unsafe extern "system" fn OnLowResource(this: *mut core::ffi::c_void, dwreserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBAsynchNotify_Impl::OnLowResource(this, core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, hchapter: usize, eoperation: u32, ulprogress: usize, ulprogressmax: usize, easynchphase: u32, pwszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDBAsynchNotify_Impl, - { + unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, hchapter: usize, eoperation: u32, ulprogress: usize, ulprogressmax: usize, easynchphase: u32, pwszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBAsynchNotify_Impl::OnProgress(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&eoperation), core::mem::transmute_copy(&ulprogress), core::mem::transmute_copy(&ulprogressmax), core::mem::transmute_copy(&easynchphase), core::mem::transmute(&pwszstatustext)).into() } - unsafe extern "system" fn OnStop(this: *mut core::ffi::c_void, hchapter: usize, eoperation: u32, hrstatus: windows_core::HRESULT, pwszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDBAsynchNotify_Impl, - { + unsafe extern "system" fn OnStop(this: *mut core::ffi::c_void, hchapter: usize, eoperation: u32, hrstatus: windows_core::HRESULT, pwszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBAsynchNotify_Impl::OnStop(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&eoperation), core::mem::transmute_copy(&hrstatus), core::mem::transmute(&pwszstatustext)).into() } @@ -1368,27 +1023,18 @@ impl IDBAsynchNotify_Vtbl { iid == &::IID } } -pub trait IDBAsynchStatus_Impl: Sized { +pub trait IDBAsynchStatus_Impl: Sized + windows_core::IUnknownImpl { fn Abort(&self, hchapter: usize, eoperation: u32) -> windows_core::Result<()>; fn GetStatus(&self, hchapter: usize, eoperation: u32, pulprogress: *mut usize, pulprogressmax: *mut usize, peasynchphase: *mut u32, ppwszstatustext: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDBAsynchStatus {} impl IDBAsynchStatus_Vtbl { - pub const fn new() -> IDBAsynchStatus_Vtbl - where - Identity: IDBAsynchStatus_Impl, - { - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void, hchapter: usize, eoperation: u32) -> windows_core::HRESULT - where - Identity: IDBAsynchStatus_Impl, - { + pub const fn new() -> IDBAsynchStatus_Vtbl { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void, hchapter: usize, eoperation: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBAsynchStatus_Impl::Abort(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&eoperation)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, hchapter: usize, eoperation: u32, pulprogress: *mut usize, pulprogressmax: *mut usize, peasynchphase: *mut u32, ppwszstatustext: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDBAsynchStatus_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, hchapter: usize, eoperation: u32, pulprogress: *mut usize, pulprogressmax: *mut usize, peasynchphase: *mut u32, ppwszstatustext: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBAsynchStatus_Impl::GetStatus(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&eoperation), core::mem::transmute_copy(&pulprogress), core::mem::transmute_copy(&pulprogressmax), core::mem::transmute_copy(&peasynchphase), core::mem::transmute_copy(&ppwszstatustext)).into() } @@ -1406,14 +1052,8 @@ pub trait IDBBinderProperties_Impl: Sized + IDBProperties_Impl { impl windows_core::RuntimeName for IDBBinderProperties {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Variant"))] impl IDBBinderProperties_Vtbl { - pub const fn new() -> IDBBinderProperties_Vtbl - where - Identity: IDBBinderProperties_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDBBinderProperties_Impl, - { + pub const fn new() -> IDBBinderProperties_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBBinderProperties_Impl::Reset(this).into() } @@ -1423,19 +1063,13 @@ impl IDBBinderProperties_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDBCreateCommand_Impl: Sized { +pub trait IDBCreateCommand_Impl: Sized + windows_core::IUnknownImpl { fn CreateCommand(&self, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IDBCreateCommand {} impl IDBCreateCommand_Vtbl { - pub const fn new() -> IDBCreateCommand_Vtbl - where - Identity: IDBCreateCommand_Impl, - { - unsafe extern "system" fn CreateCommand(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppcommand: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDBCreateCommand_Impl, - { + pub const fn new() -> IDBCreateCommand_Vtbl { + unsafe extern "system" fn CreateCommand(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppcommand: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDBCreateCommand_Impl::CreateCommand(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -1451,19 +1085,13 @@ impl IDBCreateCommand_Vtbl { iid == &::IID } } -pub trait IDBCreateSession_Impl: Sized { +pub trait IDBCreateSession_Impl: Sized + windows_core::IUnknownImpl { fn CreateSession(&self, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IDBCreateSession {} impl IDBCreateSession_Vtbl { - pub const fn new() -> IDBCreateSession_Vtbl - where - Identity: IDBCreateSession_Impl, - { - unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppdbsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDBCreateSession_Impl, - { + pub const fn new() -> IDBCreateSession_Vtbl { + unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppdbsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDBCreateSession_Impl::CreateSession(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -1480,7 +1108,7 @@ impl IDBCreateSession_Vtbl { } } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Variant"))] -pub trait IDBDataSourceAdmin_Impl: Sized { +pub trait IDBDataSourceAdmin_Impl: Sized + windows_core::IUnknownImpl { fn CreateDataSource(&self, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID, ppdbsession: *mut Option) -> windows_core::Result<()>; fn DestroyDataSource(&self) -> windows_core::Result<()>; fn GetCreationProperties(&self, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertyinfosets: *mut u32, prgpropertyinfosets: *mut *mut DBPROPINFOSET, ppdescbuffer: *mut *mut u16) -> windows_core::Result<()>; @@ -1490,35 +1118,20 @@ pub trait IDBDataSourceAdmin_Impl: Sized { impl windows_core::RuntimeName for IDBDataSourceAdmin {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Variant"))] impl IDBDataSourceAdmin_Vtbl { - pub const fn new() -> IDBDataSourceAdmin_Vtbl - where - Identity: IDBDataSourceAdmin_Impl, - { - unsafe extern "system" fn CreateDataSource(this: *mut core::ffi::c_void, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppdbsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDBDataSourceAdmin_Impl, - { + pub const fn new() -> IDBDataSourceAdmin_Vtbl { + unsafe extern "system" fn CreateDataSource(this: *mut core::ffi::c_void, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppdbsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBDataSourceAdmin_Impl::CreateDataSource(this, core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppdbsession)).into() } - unsafe extern "system" fn DestroyDataSource(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDBDataSourceAdmin_Impl, - { + unsafe extern "system" fn DestroyDataSource(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBDataSourceAdmin_Impl::DestroyDataSource(this).into() } - unsafe extern "system" fn GetCreationProperties(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertyinfosets: *mut u32, prgpropertyinfosets: *mut *mut DBPROPINFOSET, ppdescbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IDBDataSourceAdmin_Impl, - { + unsafe extern "system" fn GetCreationProperties(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertyinfosets: *mut u32, prgpropertyinfosets: *mut *mut DBPROPINFOSET, ppdescbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBDataSourceAdmin_Impl::GetCreationProperties(this, core::mem::transmute_copy(&cpropertyidsets), core::mem::transmute_copy(&rgpropertyidsets), core::mem::transmute_copy(&pcpropertyinfosets), core::mem::transmute_copy(&prgpropertyinfosets), core::mem::transmute_copy(&ppdescbuffer)).into() } - unsafe extern "system" fn ModifyDataSource(this: *mut core::ffi::c_void, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: IDBDataSourceAdmin_Impl, - { + unsafe extern "system" fn ModifyDataSource(this: *mut core::ffi::c_void, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBDataSourceAdmin_Impl::ModifyDataSource(this, core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets)).into() } @@ -1534,20 +1147,14 @@ impl IDBDataSourceAdmin_Vtbl { iid == &::IID } } -pub trait IDBInfo_Impl: Sized { +pub trait IDBInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetKeywords(&self) -> windows_core::Result; fn GetLiteralInfo(&self, cliterals: u32, rgliterals: *const u32, pcliteralinfo: *mut u32, prgliteralinfo: *mut *mut DBLITERALINFO, ppcharbuffer: *mut *mut u16) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDBInfo {} impl IDBInfo_Vtbl { - pub const fn new() -> IDBInfo_Vtbl - where - Identity: IDBInfo_Impl, - { - unsafe extern "system" fn GetKeywords(this: *mut core::ffi::c_void, ppwszkeywords: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDBInfo_Impl, - { + pub const fn new() -> IDBInfo_Vtbl { + unsafe extern "system" fn GetKeywords(this: *mut core::ffi::c_void, ppwszkeywords: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDBInfo_Impl::GetKeywords(this) { Ok(ok__) => { @@ -1557,10 +1164,7 @@ impl IDBInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLiteralInfo(this: *mut core::ffi::c_void, cliterals: u32, rgliterals: *const u32, pcliteralinfo: *mut u32, prgliteralinfo: *mut *mut DBLITERALINFO, ppcharbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IDBInfo_Impl, - { + unsafe extern "system" fn GetLiteralInfo(this: *mut core::ffi::c_void, cliterals: u32, rgliterals: *const u32, pcliteralinfo: *mut u32, prgliteralinfo: *mut *mut DBLITERALINFO, ppcharbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBInfo_Impl::GetLiteralInfo(this, core::mem::transmute_copy(&cliterals), core::mem::transmute_copy(&rgliterals), core::mem::transmute_copy(&pcliteralinfo), core::mem::transmute_copy(&prgliteralinfo), core::mem::transmute_copy(&ppcharbuffer)).into() } @@ -1574,27 +1178,18 @@ impl IDBInfo_Vtbl { iid == &::IID } } -pub trait IDBInitialize_Impl: Sized { +pub trait IDBInitialize_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result<()>; fn Uninitialize(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDBInitialize {} impl IDBInitialize_Vtbl { - pub const fn new() -> IDBInitialize_Vtbl - where - Identity: IDBInitialize_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDBInitialize_Impl, - { + pub const fn new() -> IDBInitialize_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBInitialize_Impl::Initialize(this).into() } - unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDBInitialize_Impl, - { + unsafe extern "system" fn Uninitialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBInitialize_Impl::Uninitialize(this).into() } @@ -1608,27 +1203,18 @@ impl IDBInitialize_Vtbl { iid == &::IID } } -pub trait IDBPromptInitialize_Impl: Sized { +pub trait IDBPromptInitialize_Impl: Sized + windows_core::IUnknownImpl { fn PromptDataSource(&self, punkouter: Option<&windows_core::IUnknown>, hwndparent: super::super::Foundation::HWND, dwpromptoptions: u32, csourcetypefilter: u32, rgsourcetypefilter: *const u32, pwszszzproviderfilter: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppdatasource: *mut Option) -> windows_core::Result<()>; fn PromptFileName(&self, hwndparent: super::super::Foundation::HWND, dwpromptoptions: u32, pwszinitialdirectory: &windows_core::PCWSTR, pwszinitialfile: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IDBPromptInitialize {} impl IDBPromptInitialize_Vtbl { - pub const fn new() -> IDBPromptInitialize_Vtbl - where - Identity: IDBPromptInitialize_Impl, - { - unsafe extern "system" fn PromptDataSource(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwpromptoptions: u32, csourcetypefilter: u32, rgsourcetypefilter: *const u32, pwszszzproviderfilter: windows_core::PCWSTR, riid: *const windows_core::GUID, ppdatasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDBPromptInitialize_Impl, - { + pub const fn new() -> IDBPromptInitialize_Vtbl { + unsafe extern "system" fn PromptDataSource(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwpromptoptions: u32, csourcetypefilter: u32, rgsourcetypefilter: *const u32, pwszszzproviderfilter: windows_core::PCWSTR, riid: *const windows_core::GUID, ppdatasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBPromptInitialize_Impl::PromptDataSource(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwpromptoptions), core::mem::transmute_copy(&csourcetypefilter), core::mem::transmute_copy(&rgsourcetypefilter), core::mem::transmute(&pwszszzproviderfilter), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppdatasource)).into() } - unsafe extern "system" fn PromptFileName(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwpromptoptions: u32, pwszinitialdirectory: windows_core::PCWSTR, pwszinitialfile: windows_core::PCWSTR, ppwszselectedfile: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDBPromptInitialize_Impl, - { + unsafe extern "system" fn PromptFileName(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwpromptoptions: u32, pwszinitialdirectory: windows_core::PCWSTR, pwszinitialfile: windows_core::PCWSTR, ppwszselectedfile: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDBPromptInitialize_Impl::PromptFileName(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwpromptoptions), core::mem::transmute(&pwszinitialdirectory), core::mem::transmute(&pwszinitialfile)) { Ok(ok__) => { @@ -1649,7 +1235,7 @@ impl IDBPromptInitialize_Vtbl { } } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Variant"))] -pub trait IDBProperties_Impl: Sized { +pub trait IDBProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::Result<()>; fn GetPropertyInfo(&self, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertyinfosets: *mut u32, prgpropertyinfosets: *mut *mut DBPROPINFOSET, ppdescbuffer: *mut *mut u16) -> windows_core::Result<()>; fn SetProperties(&self, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::Result<()>; @@ -1658,28 +1244,16 @@ pub trait IDBProperties_Impl: Sized { impl windows_core::RuntimeName for IDBProperties {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Variant"))] impl IDBProperties_Vtbl { - pub const fn new() -> IDBProperties_Vtbl - where - Identity: IDBProperties_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: IDBProperties_Impl, - { + pub const fn new() -> IDBProperties_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBProperties_Impl::GetProperties(this, core::mem::transmute_copy(&cpropertyidsets), core::mem::transmute_copy(&rgpropertyidsets), core::mem::transmute_copy(&pcpropertysets), core::mem::transmute_copy(&prgpropertysets)).into() } - unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertyinfosets: *mut u32, prgpropertyinfosets: *mut *mut DBPROPINFOSET, ppdescbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IDBProperties_Impl, - { + unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertyinfosets: *mut u32, prgpropertyinfosets: *mut *mut DBPROPINFOSET, ppdescbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBProperties_Impl::GetPropertyInfo(this, core::mem::transmute_copy(&cpropertyidsets), core::mem::transmute_copy(&rgpropertyidsets), core::mem::transmute_copy(&pcpropertyinfosets), core::mem::transmute_copy(&prgpropertyinfosets), core::mem::transmute_copy(&ppdescbuffer)).into() } - unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: IDBProperties_Impl, - { + unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBProperties_Impl::SetProperties(this, core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets)).into() } @@ -1694,20 +1268,14 @@ impl IDBProperties_Vtbl { iid == &::IID } } -pub trait IDBSchemaCommand_Impl: Sized { +pub trait IDBSchemaCommand_Impl: Sized + windows_core::IUnknownImpl { fn GetCommand(&self, punkouter: Option<&windows_core::IUnknown>, rguidschema: *const windows_core::GUID) -> windows_core::Result; fn GetSchemas(&self, pcschemas: *mut u32, prgschemas: *mut *mut windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDBSchemaCommand {} impl IDBSchemaCommand_Vtbl { - pub const fn new() -> IDBSchemaCommand_Vtbl - where - Identity: IDBSchemaCommand_Impl, - { - unsafe extern "system" fn GetCommand(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, rguidschema: *const windows_core::GUID, ppcommand: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDBSchemaCommand_Impl, - { + pub const fn new() -> IDBSchemaCommand_Vtbl { + unsafe extern "system" fn GetCommand(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, rguidschema: *const windows_core::GUID, ppcommand: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDBSchemaCommand_Impl::GetCommand(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&rguidschema)) { Ok(ok__) => { @@ -1717,10 +1285,7 @@ impl IDBSchemaCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSchemas(this: *mut core::ffi::c_void, pcschemas: *mut u32, prgschemas: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDBSchemaCommand_Impl, - { + unsafe extern "system" fn GetSchemas(this: *mut core::ffi::c_void, pcschemas: *mut u32, prgschemas: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBSchemaCommand_Impl::GetSchemas(this, core::mem::transmute_copy(&pcschemas), core::mem::transmute_copy(&prgschemas)).into() } @@ -1735,7 +1300,7 @@ impl IDBSchemaCommand_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IDBSchemaRowset_Impl: Sized { +pub trait IDBSchemaRowset_Impl: Sized + windows_core::IUnknownImpl { fn GetRowset(&self, punkouter: Option<&windows_core::IUnknown>, rguidschema: *const windows_core::GUID, crestrictions: u32, rgrestrictions: *const windows_core::VARIANT, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut Option) -> windows_core::Result<()>; fn GetSchemas(&self, pcschemas: *mut u32, prgschemas: *mut *mut windows_core::GUID, prgrestrictionsupport: *mut *mut u32) -> windows_core::Result<()>; } @@ -1743,21 +1308,12 @@ pub trait IDBSchemaRowset_Impl: Sized { impl windows_core::RuntimeName for IDBSchemaRowset {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IDBSchemaRowset_Vtbl { - pub const fn new() -> IDBSchemaRowset_Vtbl - where - Identity: IDBSchemaRowset_Impl, - { - unsafe extern "system" fn GetRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, rguidschema: *const windows_core::GUID, crestrictions: u32, rgrestrictions: *const core::mem::MaybeUninit, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDBSchemaRowset_Impl, - { + pub const fn new() -> IDBSchemaRowset_Vtbl { + unsafe extern "system" fn GetRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, rguidschema: *const windows_core::GUID, crestrictions: u32, rgrestrictions: *const core::mem::MaybeUninit, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBSchemaRowset_Impl::GetRowset(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&rguidschema), core::mem::transmute_copy(&crestrictions), core::mem::transmute_copy(&rgrestrictions), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets), core::mem::transmute_copy(&pprowset)).into() } - unsafe extern "system" fn GetSchemas(this: *mut core::ffi::c_void, pcschemas: *mut u32, prgschemas: *mut *mut windows_core::GUID, prgrestrictionsupport: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IDBSchemaRowset_Impl, - { + unsafe extern "system" fn GetSchemas(this: *mut core::ffi::c_void, pcschemas: *mut u32, prgschemas: *mut *mut windows_core::GUID, prgrestrictionsupport: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDBSchemaRowset_Impl::GetSchemas(this, core::mem::transmute_copy(&pcschemas), core::mem::transmute_copy(&prgschemas), core::mem::transmute_copy(&prgrestrictionsupport)).into() } @@ -1771,27 +1327,18 @@ impl IDBSchemaRowset_Vtbl { iid == &::IID } } -pub trait IDCInfo_Impl: Sized { +pub trait IDCInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetInfo(&self, cinfo: u32, rgeinfotype: *const u32, prginfo: *mut *mut DCINFO) -> windows_core::Result<()>; fn SetInfo(&self, cinfo: u32, rginfo: *const DCINFO) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDCInfo {} impl IDCInfo_Vtbl { - pub const fn new() -> IDCInfo_Vtbl - where - Identity: IDCInfo_Impl, - { - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, cinfo: u32, rgeinfotype: *const u32, prginfo: *mut *mut DCINFO) -> windows_core::HRESULT - where - Identity: IDCInfo_Impl, - { + pub const fn new() -> IDCInfo_Vtbl { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, cinfo: u32, rgeinfotype: *const u32, prginfo: *mut *mut DCINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCInfo_Impl::GetInfo(this, core::mem::transmute_copy(&cinfo), core::mem::transmute_copy(&rgeinfotype), core::mem::transmute_copy(&prginfo)).into() } - unsafe extern "system" fn SetInfo(this: *mut core::ffi::c_void, cinfo: u32, rginfo: *const DCINFO) -> windows_core::HRESULT - where - Identity: IDCInfo_Impl, - { + unsafe extern "system" fn SetInfo(this: *mut core::ffi::c_void, cinfo: u32, rginfo: *const DCINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCInfo_Impl::SetInfo(this, core::mem::transmute_copy(&cinfo), core::mem::transmute_copy(&rginfo)).into() } @@ -1801,35 +1348,23 @@ impl IDCInfo_Vtbl { iid == &::IID } } -pub trait IDataConvert_Impl: Sized { +pub trait IDataConvert_Impl: Sized + windows_core::IUnknownImpl { fn DataConvert(&self, wsrctype: u16, wdsttype: u16, cbsrclength: usize, pcbdstlength: *mut usize, psrc: *const core::ffi::c_void, pdst: *mut core::ffi::c_void, cbdstmaxlength: usize, dbssrcstatus: u32, pdbsstatus: *mut u32, bprecision: u8, bscale: u8, dwflags: u32) -> windows_core::Result<()>; fn CanConvert(&self, wsrctype: u16, wdsttype: u16) -> windows_core::Result<()>; fn GetConversionSize(&self, wsrctype: u16, wdsttype: u16, pcbsrclength: *const usize, pcbdstlength: *mut usize, psrc: *const core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDataConvert {} impl IDataConvert_Vtbl { - pub const fn new() -> IDataConvert_Vtbl - where - Identity: IDataConvert_Impl, - { - unsafe extern "system" fn DataConvert(this: *mut core::ffi::c_void, wsrctype: u16, wdsttype: u16, cbsrclength: usize, pcbdstlength: *mut usize, psrc: *const core::ffi::c_void, pdst: *mut core::ffi::c_void, cbdstmaxlength: usize, dbssrcstatus: u32, pdbsstatus: *mut u32, bprecision: u8, bscale: u8, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDataConvert_Impl, - { + pub const fn new() -> IDataConvert_Vtbl { + unsafe extern "system" fn DataConvert(this: *mut core::ffi::c_void, wsrctype: u16, wdsttype: u16, cbsrclength: usize, pcbdstlength: *mut usize, psrc: *const core::ffi::c_void, pdst: *mut core::ffi::c_void, cbdstmaxlength: usize, dbssrcstatus: u32, pdbsstatus: *mut u32, bprecision: u8, bscale: u8, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataConvert_Impl::DataConvert(this, core::mem::transmute_copy(&wsrctype), core::mem::transmute_copy(&wdsttype), core::mem::transmute_copy(&cbsrclength), core::mem::transmute_copy(&pcbdstlength), core::mem::transmute_copy(&psrc), core::mem::transmute_copy(&pdst), core::mem::transmute_copy(&cbdstmaxlength), core::mem::transmute_copy(&dbssrcstatus), core::mem::transmute_copy(&pdbsstatus), core::mem::transmute_copy(&bprecision), core::mem::transmute_copy(&bscale), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, wsrctype: u16, wdsttype: u16) -> windows_core::HRESULT - where - Identity: IDataConvert_Impl, - { + unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, wsrctype: u16, wdsttype: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataConvert_Impl::CanConvert(this, core::mem::transmute_copy(&wsrctype), core::mem::transmute_copy(&wdsttype)).into() } - unsafe extern "system" fn GetConversionSize(this: *mut core::ffi::c_void, wsrctype: u16, wdsttype: u16, pcbsrclength: *const usize, pcbdstlength: *mut usize, psrc: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataConvert_Impl, - { + unsafe extern "system" fn GetConversionSize(this: *mut core::ffi::c_void, wsrctype: u16, wdsttype: u16, pcbsrclength: *const usize, pcbdstlength: *mut usize, psrc: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataConvert_Impl::GetConversionSize(this, core::mem::transmute_copy(&wsrctype), core::mem::transmute_copy(&wdsttype), core::mem::transmute_copy(&pcbsrclength), core::mem::transmute_copy(&pcbdstlength), core::mem::transmute_copy(&psrc)).into() } @@ -1845,7 +1380,7 @@ impl IDataConvert_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDataInitialize_Impl: Sized { +pub trait IDataInitialize_Impl: Sized + windows_core::IUnknownImpl { fn GetDataSource(&self, punkouter: Option<&windows_core::IUnknown>, dwclsctx: u32, pwszinitializationstring: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppdatasource: *mut Option) -> windows_core::Result<()>; fn GetInitializationString(&self, pdatasource: Option<&windows_core::IUnknown>, fincludepassword: u8) -> windows_core::Result; fn CreateDBInstance(&self, clsidprovider: *const windows_core::GUID, punkouter: Option<&windows_core::IUnknown>, dwclsctx: u32, pwszreserved: &windows_core::PCWSTR, riid: *const windows_core::GUID) -> windows_core::Result; @@ -1857,21 +1392,12 @@ pub trait IDataInitialize_Impl: Sized { impl windows_core::RuntimeName for IDataInitialize {} #[cfg(feature = "Win32_System_Com")] impl IDataInitialize_Vtbl { - pub const fn new() -> IDataInitialize_Vtbl - where - Identity: IDataInitialize_Impl, - { - unsafe extern "system" fn GetDataSource(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, dwclsctx: u32, pwszinitializationstring: windows_core::PCWSTR, riid: *const windows_core::GUID, ppdatasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataInitialize_Impl, - { + pub const fn new() -> IDataInitialize_Vtbl { + unsafe extern "system" fn GetDataSource(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, dwclsctx: u32, pwszinitializationstring: windows_core::PCWSTR, riid: *const windows_core::GUID, ppdatasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataInitialize_Impl::GetDataSource(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&dwclsctx), core::mem::transmute(&pwszinitializationstring), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppdatasource)).into() } - unsafe extern "system" fn GetInitializationString(this: *mut core::ffi::c_void, pdatasource: *mut core::ffi::c_void, fincludepassword: u8, ppwszinitstring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDataInitialize_Impl, - { + unsafe extern "system" fn GetInitializationString(this: *mut core::ffi::c_void, pdatasource: *mut core::ffi::c_void, fincludepassword: u8, ppwszinitstring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataInitialize_Impl::GetInitializationString(this, windows_core::from_raw_borrowed(&pdatasource), core::mem::transmute_copy(&fincludepassword)) { Ok(ok__) => { @@ -1881,10 +1407,7 @@ impl IDataInitialize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDBInstance(this: *mut core::ffi::c_void, clsidprovider: *const windows_core::GUID, punkouter: *mut core::ffi::c_void, dwclsctx: u32, pwszreserved: windows_core::PCWSTR, riid: *const windows_core::GUID, ppdatasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataInitialize_Impl, - { + unsafe extern "system" fn CreateDBInstance(this: *mut core::ffi::c_void, clsidprovider: *const windows_core::GUID, punkouter: *mut core::ffi::c_void, dwclsctx: u32, pwszreserved: windows_core::PCWSTR, riid: *const windows_core::GUID, ppdatasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataInitialize_Impl::CreateDBInstance(this, core::mem::transmute_copy(&clsidprovider), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&dwclsctx), core::mem::transmute(&pwszreserved), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -1894,17 +1417,11 @@ impl IDataInitialize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDBInstanceEx(this: *mut core::ffi::c_void, clsidprovider: *const windows_core::GUID, punkouter: *mut core::ffi::c_void, dwclsctx: u32, pwszreserved: windows_core::PCWSTR, pserverinfo: *const super::Com::COSERVERINFO, cmq: u32, rgmqresults: *mut super::Com::MULTI_QI) -> windows_core::HRESULT - where - Identity: IDataInitialize_Impl, - { + unsafe extern "system" fn CreateDBInstanceEx(this: *mut core::ffi::c_void, clsidprovider: *const windows_core::GUID, punkouter: *mut core::ffi::c_void, dwclsctx: u32, pwszreserved: windows_core::PCWSTR, pserverinfo: *const super::Com::COSERVERINFO, cmq: u32, rgmqresults: *mut super::Com::MULTI_QI) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataInitialize_Impl::CreateDBInstanceEx(this, core::mem::transmute_copy(&clsidprovider), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&dwclsctx), core::mem::transmute(&pwszreserved), core::mem::transmute_copy(&pserverinfo), core::mem::transmute_copy(&cmq), core::mem::transmute_copy(&rgmqresults)).into() } - unsafe extern "system" fn LoadStringFromStorage(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR, ppwszinitializationstring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDataInitialize_Impl, - { + unsafe extern "system" fn LoadStringFromStorage(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR, ppwszinitializationstring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataInitialize_Impl::LoadStringFromStorage(this, core::mem::transmute(&pwszfilename)) { Ok(ok__) => { @@ -1914,10 +1431,7 @@ impl IDataInitialize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteStringToStorage(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR, pwszinitializationstring: windows_core::PCWSTR, dwcreationdisposition: u32) -> windows_core::HRESULT - where - Identity: IDataInitialize_Impl, - { + unsafe extern "system" fn WriteStringToStorage(this: *mut core::ffi::c_void, pwszfilename: windows_core::PCWSTR, pwszinitializationstring: windows_core::PCWSTR, dwcreationdisposition: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataInitialize_Impl::WriteStringToStorage(this, core::mem::transmute(&pwszfilename), core::mem::transmute(&pwszinitializationstring), core::mem::transmute_copy(&dwcreationdisposition)).into() } @@ -1946,14 +1460,8 @@ pub trait IDataSourceLocator_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDataSourceLocator {} #[cfg(feature = "Win32_System_Com")] impl IDataSourceLocator_Vtbl { - pub const fn new() -> IDataSourceLocator_Vtbl - where - Identity: IDataSourceLocator_Impl, - { - unsafe extern "system" fn hWnd(this: *mut core::ffi::c_void, phwndparent: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDataSourceLocator_Impl, - { + pub const fn new() -> IDataSourceLocator_Vtbl { + unsafe extern "system" fn hWnd(this: *mut core::ffi::c_void, phwndparent: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataSourceLocator_Impl::hWnd(this) { Ok(ok__) => { @@ -1963,17 +1471,11 @@ impl IDataSourceLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SethWnd(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDataSourceLocator_Impl, - { + unsafe extern "system" fn SethWnd(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataSourceLocator_Impl::SethWnd(this, core::mem::transmute_copy(&hwndparent)).into() } - unsafe extern "system" fn PromptNew(this: *mut core::ffi::c_void, ppadoconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataSourceLocator_Impl, - { + unsafe extern "system" fn PromptNew(this: *mut core::ffi::c_void, ppadoconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataSourceLocator_Impl::PromptNew(this) { Ok(ok__) => { @@ -1983,10 +1485,7 @@ impl IDataSourceLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PromptEdit(this: *mut core::ffi::c_void, ppadoconnection: *mut *mut core::ffi::c_void, pbsuccess: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDataSourceLocator_Impl, - { + unsafe extern "system" fn PromptEdit(this: *mut core::ffi::c_void, ppadoconnection: *mut *mut core::ffi::c_void, pbsuccess: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataSourceLocator_Impl::PromptEdit(this, core::mem::transmute_copy(&ppadoconnection), core::mem::transmute_copy(&pbsuccess)).into() } @@ -2002,7 +1501,7 @@ impl IDataSourceLocator_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IEntity_Impl: Sized { +pub trait IEntity_Impl: Sized + windows_core::IUnknownImpl { fn Name(&self, ppszname: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn Base(&self) -> windows_core::Result; fn Relationships(&self, riid: *const windows_core::GUID, prelationships: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -2014,21 +1513,12 @@ pub trait IEntity_Impl: Sized { } impl windows_core::RuntimeName for IEntity {} impl IEntity_Vtbl { - pub const fn new() -> IEntity_Vtbl - where - Identity: IEntity_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEntity_Impl, - { + pub const fn new() -> IEntity_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEntity_Impl::Name(this, core::mem::transmute_copy(&ppszname)).into() } - unsafe extern "system" fn Base(this: *mut core::ffi::c_void, pbaseentity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEntity_Impl, - { + unsafe extern "system" fn Base(this: *mut core::ffi::c_void, pbaseentity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEntity_Impl::Base(this) { Ok(ok__) => { @@ -2038,17 +1528,11 @@ impl IEntity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Relationships(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, prelationships: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEntity_Impl, - { + unsafe extern "system" fn Relationships(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, prelationships: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEntity_Impl::Relationships(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&prelationships)).into() } - unsafe extern "system" fn GetRelationship(this: *mut core::ffi::c_void, pszrelationname: windows_core::PCWSTR, prelationship: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEntity_Impl, - { + unsafe extern "system" fn GetRelationship(this: *mut core::ffi::c_void, pszrelationname: windows_core::PCWSTR, prelationship: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEntity_Impl::GetRelationship(this, core::mem::transmute(&pszrelationname)) { Ok(ok__) => { @@ -2058,24 +1542,15 @@ impl IEntity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MetaData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEntity_Impl, - { + unsafe extern "system" fn MetaData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEntity_Impl::MetaData(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pmetadata)).into() } - unsafe extern "system" fn NamedEntities(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pnamedentities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEntity_Impl, - { + unsafe extern "system" fn NamedEntities(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pnamedentities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEntity_Impl::NamedEntities(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pnamedentities)).into() } - unsafe extern "system" fn GetNamedEntity(this: *mut core::ffi::c_void, pszvalue: windows_core::PCWSTR, ppnamedentity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEntity_Impl, - { + unsafe extern "system" fn GetNamedEntity(this: *mut core::ffi::c_void, pszvalue: windows_core::PCWSTR, ppnamedentity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEntity_Impl::GetNamedEntity(this, core::mem::transmute(&pszvalue)) { Ok(ok__) => { @@ -2085,10 +1560,7 @@ impl IEntity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultPhrase(this: *mut core::ffi::c_void, ppszphrase: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEntity_Impl, - { + unsafe extern "system" fn DefaultPhrase(this: *mut core::ffi::c_void, ppszphrase: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEntity_Impl::DefaultPhrase(this, core::mem::transmute_copy(&ppszphrase)).into() } @@ -2108,7 +1580,7 @@ impl IEntity_Vtbl { iid == &::IID } } -pub trait IEnumItemProperties_Impl: Sized { +pub trait IEnumItemProperties_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut ITEMPROP, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2117,35 +1589,20 @@ pub trait IEnumItemProperties_Impl: Sized { } impl windows_core::RuntimeName for IEnumItemProperties {} impl IEnumItemProperties_Vtbl { - pub const fn new() -> IEnumItemProperties_Vtbl - where - Identity: IEnumItemProperties_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut ITEMPROP, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumItemProperties_Impl, - { + pub const fn new() -> IEnumItemProperties_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut ITEMPROP, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumItemProperties_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumItemProperties_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumItemProperties_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumItemProperties_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumItemProperties_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumItemProperties_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumItemProperties_Impl::Clone(this) { Ok(ok__) => { @@ -2155,10 +1612,7 @@ impl IEnumItemProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pncount: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumItemProperties_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pncount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumItemProperties_Impl::GetCount(this) { Ok(ok__) => { @@ -2181,7 +1635,7 @@ impl IEnumItemProperties_Vtbl { iid == &::IID } } -pub trait IEnumSearchRoots_Impl: Sized { +pub trait IEnumSearchRoots_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2189,35 +1643,20 @@ pub trait IEnumSearchRoots_Impl: Sized { } impl windows_core::RuntimeName for IEnumSearchRoots {} impl IEnumSearchRoots_Vtbl { - pub const fn new() -> IEnumSearchRoots_Vtbl - where - Identity: IEnumSearchRoots_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSearchRoots_Impl, - { + pub const fn new() -> IEnumSearchRoots_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSearchRoots_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSearchRoots_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSearchRoots_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSearchRoots_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSearchRoots_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSearchRoots_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSearchRoots_Impl::Clone(this) { Ok(ok__) => { @@ -2239,7 +1678,7 @@ impl IEnumSearchRoots_Vtbl { iid == &::IID } } -pub trait IEnumSearchScopeRules_Impl: Sized { +pub trait IEnumSearchScopeRules_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, pprgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2247,35 +1686,20 @@ pub trait IEnumSearchScopeRules_Impl: Sized { } impl windows_core::RuntimeName for IEnumSearchScopeRules {} impl IEnumSearchScopeRules_Vtbl { - pub const fn new() -> IEnumSearchScopeRules_Vtbl - where - Identity: IEnumSearchScopeRules_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pprgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSearchScopeRules_Impl, - { + pub const fn new() -> IEnumSearchScopeRules_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, pprgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSearchScopeRules_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&pprgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSearchScopeRules_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSearchScopeRules_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSearchScopeRules_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSearchScopeRules_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSearchScopeRules_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSearchScopeRules_Impl::Clone(this) { Ok(ok__) => { @@ -2297,7 +1721,7 @@ impl IEnumSearchScopeRules_Vtbl { iid == &::IID } } -pub trait IEnumSubscription_Impl: Sized { +pub trait IEnumSubscription_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2306,35 +1730,20 @@ pub trait IEnumSubscription_Impl: Sized { } impl windows_core::RuntimeName for IEnumSubscription {} impl IEnumSubscription_Vtbl { - pub const fn new() -> IEnumSubscription_Vtbl - where - Identity: IEnumSubscription_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSubscription_Impl, - { + pub const fn new() -> IEnumSubscription_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut windows_core::GUID, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSubscription_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSubscription_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSubscription_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSubscription_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSubscription_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSubscription_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSubscription_Impl::Clone(this) { Ok(ok__) => { @@ -2344,10 +1753,7 @@ impl IEnumSubscription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pncount: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSubscription_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pncount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSubscription_Impl::GetCount(this) { Ok(ok__) => { @@ -2371,7 +1777,7 @@ impl IEnumSubscription_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IErrorLookup_Impl: Sized { +pub trait IErrorLookup_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -2380,28 +1786,16 @@ pub trait IErrorLookup_Impl: Sized { impl windows_core::RuntimeName for IErrorLookup {} #[cfg(feature = "Win32_System_Com")] impl IErrorLookup_Vtbl { - pub const fn new() -> IErrorLookup_Vtbl - where - Identity: IErrorLookup_Impl, - { - unsafe extern "system" fn GetErrorDescription(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, lcid: u32, pbstrsource: *mut core::mem::MaybeUninit, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IErrorLookup_Impl, - { + pub const fn new() -> IErrorLookup_Vtbl { + unsafe extern "system" fn GetErrorDescription(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, lcid: u32, pbstrsource: *mut core::mem::MaybeUninit, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IErrorLookup_Impl::GetErrorDescription(this, 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(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: *mut core::mem::MaybeUninit, pdwhelpcontext: *mut u32) -> windows_core::HRESULT - where - Identity: IErrorLookup_Impl, - { + unsafe extern "system" fn GetHelpInfo(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: *mut core::mem::MaybeUninit, pdwhelpcontext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IErrorLookup_Impl::GetHelpInfo(this, 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() } - unsafe extern "system" fn ReleaseErrors(this: *mut core::ffi::c_void, dwdynamicerrorid: u32) -> windows_core::HRESULT - where - Identity: IErrorLookup_Impl, - { + unsafe extern "system" fn ReleaseErrors(this: *mut core::ffi::c_void, dwdynamicerrorid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IErrorLookup_Impl::ReleaseErrors(this, core::mem::transmute_copy(&dwdynamicerrorid)).into() } @@ -2417,7 +1811,7 @@ impl IErrorLookup_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IErrorRecords_Impl: Sized { +pub trait IErrorRecords_Impl: Sized + windows_core::IUnknownImpl { fn AddErrorRecord(&self, perrorinfo: *const ERRORINFO, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, punkcustomerror: Option<&windows_core::IUnknown>, dwdynamicerrorid: u32) -> windows_core::Result<()>; fn GetBasicErrorInfo(&self, ulrecordnum: u32, perrorinfo: *mut ERRORINFO) -> windows_core::Result<()>; fn GetCustomErrorObject(&self, ulrecordnum: u32, riid: *const windows_core::GUID) -> windows_core::Result; @@ -2429,28 +1823,16 @@ pub trait IErrorRecords_Impl: Sized { impl windows_core::RuntimeName for IErrorRecords {} #[cfg(feature = "Win32_System_Com")] impl IErrorRecords_Vtbl { - pub const fn new() -> IErrorRecords_Vtbl - where - Identity: IErrorRecords_Impl, - { - unsafe extern "system" fn AddErrorRecord(this: *mut core::ffi::c_void, perrorinfo: *const ERRORINFO, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, punkcustomerror: *mut core::ffi::c_void, dwdynamicerrorid: u32) -> windows_core::HRESULT - where - Identity: IErrorRecords_Impl, - { + pub const fn new() -> IErrorRecords_Vtbl { + unsafe extern "system" fn AddErrorRecord(this: *mut core::ffi::c_void, perrorinfo: *const ERRORINFO, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, punkcustomerror: *mut core::ffi::c_void, dwdynamicerrorid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IErrorRecords_Impl::AddErrorRecord(this, core::mem::transmute_copy(&perrorinfo), core::mem::transmute_copy(&dwlookupid), core::mem::transmute_copy(&pdispparams), windows_core::from_raw_borrowed(&punkcustomerror), core::mem::transmute_copy(&dwdynamicerrorid)).into() } - unsafe extern "system" fn GetBasicErrorInfo(this: *mut core::ffi::c_void, ulrecordnum: u32, perrorinfo: *mut ERRORINFO) -> windows_core::HRESULT - where - Identity: IErrorRecords_Impl, - { + unsafe extern "system" fn GetBasicErrorInfo(this: *mut core::ffi::c_void, ulrecordnum: u32, perrorinfo: *mut ERRORINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IErrorRecords_Impl::GetBasicErrorInfo(this, core::mem::transmute_copy(&ulrecordnum), core::mem::transmute_copy(&perrorinfo)).into() } - unsafe extern "system" fn GetCustomErrorObject(this: *mut core::ffi::c_void, ulrecordnum: u32, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IErrorRecords_Impl, - { + unsafe extern "system" fn GetCustomErrorObject(this: *mut core::ffi::c_void, ulrecordnum: u32, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IErrorRecords_Impl::GetCustomErrorObject(this, core::mem::transmute_copy(&ulrecordnum), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -2460,10 +1842,7 @@ impl IErrorRecords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorInfo(this: *mut core::ffi::c_void, ulrecordnum: u32, lcid: u32, pperrorinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IErrorRecords_Impl, - { + unsafe extern "system" fn GetErrorInfo(this: *mut core::ffi::c_void, ulrecordnum: u32, lcid: u32, pperrorinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IErrorRecords_Impl::GetErrorInfo(this, core::mem::transmute_copy(&ulrecordnum), core::mem::transmute_copy(&lcid)) { Ok(ok__) => { @@ -2473,10 +1852,7 @@ impl IErrorRecords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorParameters(this: *mut core::ffi::c_void, ulrecordnum: u32, pdispparams: *mut super::Com::DISPPARAMS) -> windows_core::HRESULT - where - Identity: IErrorRecords_Impl, - { + unsafe extern "system" fn GetErrorParameters(this: *mut core::ffi::c_void, ulrecordnum: u32, pdispparams: *mut super::Com::DISPPARAMS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IErrorRecords_Impl::GetErrorParameters(this, core::mem::transmute_copy(&ulrecordnum)) { Ok(ok__) => { @@ -2486,10 +1862,7 @@ impl IErrorRecords_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordCount(this: *mut core::ffi::c_void, pcrecords: *mut u32) -> windows_core::HRESULT - where - Identity: IErrorRecords_Impl, - { + unsafe extern "system" fn GetRecordCount(this: *mut core::ffi::c_void, pcrecords: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IErrorRecords_Impl::GetRecordCount(this) { Ok(ok__) => { @@ -2513,19 +1886,13 @@ impl IErrorRecords_Vtbl { iid == &::IID } } -pub trait IGetDataSource_Impl: Sized { +pub trait IGetDataSource_Impl: Sized + windows_core::IUnknownImpl { fn GetDataSource(&self, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IGetDataSource {} impl IGetDataSource_Vtbl { - pub const fn new() -> IGetDataSource_Vtbl - where - Identity: IGetDataSource_Impl, - { - unsafe extern "system" fn GetDataSource(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppdatasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetDataSource_Impl, - { + pub const fn new() -> IGetDataSource_Vtbl { + unsafe extern "system" fn GetDataSource(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppdatasource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetDataSource_Impl::GetDataSource(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -2541,20 +1908,14 @@ impl IGetDataSource_Vtbl { iid == &::IID } } -pub trait IGetRow_Impl: Sized { +pub trait IGetRow_Impl: Sized + windows_core::IUnknownImpl { fn GetRowFromHROW(&self, punkouter: Option<&windows_core::IUnknown>, hrow: usize, riid: *const windows_core::GUID) -> windows_core::Result; fn GetURLFromHROW(&self, hrow: usize) -> windows_core::Result; } impl windows_core::RuntimeName for IGetRow {} impl IGetRow_Vtbl { - pub const fn new() -> IGetRow_Vtbl - where - Identity: IGetRow_Impl, - { - unsafe extern "system" fn GetRowFromHROW(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, hrow: usize, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetRow_Impl, - { + pub const fn new() -> IGetRow_Vtbl { + unsafe extern "system" fn GetRowFromHROW(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, hrow: usize, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetRow_Impl::GetRowFromHROW(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -2564,10 +1925,7 @@ impl IGetRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetURLFromHROW(this: *mut core::ffi::c_void, hrow: usize, ppwszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IGetRow_Impl, - { + unsafe extern "system" fn GetURLFromHROW(this: *mut core::ffi::c_void, hrow: usize, ppwszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetRow_Impl::GetURLFromHROW(this, core::mem::transmute_copy(&hrow)) { Ok(ok__) => { @@ -2587,19 +1945,13 @@ impl IGetRow_Vtbl { iid == &::IID } } -pub trait IGetSession_Impl: Sized { +pub trait IGetSession_Impl: Sized + windows_core::IUnknownImpl { fn GetSession(&self, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IGetSession {} impl IGetSession_Vtbl { - pub const fn new() -> IGetSession_Vtbl - where - Identity: IGetSession_Impl, - { - unsafe extern "system" fn GetSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetSession_Impl, - { + pub const fn new() -> IGetSession_Vtbl { + unsafe extern "system" fn GetSession(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppsession: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetSession_Impl::GetSession(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -2615,19 +1967,13 @@ impl IGetSession_Vtbl { iid == &::IID } } -pub trait IGetSourceRow_Impl: Sized { +pub trait IGetSourceRow_Impl: Sized + windows_core::IUnknownImpl { fn GetSourceRow(&self, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IGetSourceRow {} impl IGetSourceRow_Vtbl { - pub const fn new() -> IGetSourceRow_Vtbl - where - Identity: IGetSourceRow_Impl, - { - unsafe extern "system" fn GetSourceRow(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pprow: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGetSourceRow_Impl, - { + pub const fn new() -> IGetSourceRow_Vtbl { + unsafe extern "system" fn GetSourceRow(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pprow: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGetSourceRow_Impl::GetSourceRow(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -2644,7 +1990,7 @@ impl IGetSourceRow_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IIndexDefinition_Impl: Sized { +pub trait IIndexDefinition_Impl: Sized + windows_core::IUnknownImpl { fn CreateIndex(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, cindexcolumndescs: usize, rgindexcolumndescs: *const DBINDEXCOLUMNDESC, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, ppindexid: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::Result<()>; fn DropIndex(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID) -> windows_core::Result<()>; } @@ -2652,21 +1998,12 @@ pub trait IIndexDefinition_Impl: Sized { impl windows_core::RuntimeName for IIndexDefinition {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IIndexDefinition_Vtbl { - pub const fn new() -> IIndexDefinition_Vtbl - where - Identity: IIndexDefinition_Impl, - { - unsafe extern "system" fn CreateIndex(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, cindexcolumndescs: usize, rgindexcolumndescs: *const DBINDEXCOLUMNDESC, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, ppindexid: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: IIndexDefinition_Impl, - { + pub const fn new() -> IIndexDefinition_Vtbl { + unsafe extern "system" fn CreateIndex(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, cindexcolumndescs: usize, rgindexcolumndescs: *const DBINDEXCOLUMNDESC, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, ppindexid: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIndexDefinition_Impl::CreateIndex(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pindexid), core::mem::transmute_copy(&cindexcolumndescs), core::mem::transmute_copy(&rgindexcolumndescs), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets), core::mem::transmute_copy(&ppindexid)).into() } - unsafe extern "system" fn DropIndex(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: IIndexDefinition_Impl, - { + unsafe extern "system" fn DropIndex(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIndexDefinition_Impl::DropIndex(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pindexid)).into() } @@ -2680,19 +2017,13 @@ impl IIndexDefinition_Vtbl { iid == &::IID } } -pub trait IInterval_Impl: Sized { +pub trait IInterval_Impl: Sized + windows_core::IUnknownImpl { fn GetLimits(&self, pilklower: *mut INTERVAL_LIMIT_KIND, ppropvarlower: *mut windows_core::PROPVARIANT, pilkupper: *mut INTERVAL_LIMIT_KIND, ppropvarupper: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInterval {} impl IInterval_Vtbl { - pub const fn new() -> IInterval_Vtbl - where - Identity: IInterval_Impl, - { - unsafe extern "system" fn GetLimits(this: *mut core::ffi::c_void, pilklower: *mut INTERVAL_LIMIT_KIND, ppropvarlower: *mut core::mem::MaybeUninit, pilkupper: *mut INTERVAL_LIMIT_KIND, ppropvarupper: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInterval_Impl, - { + pub const fn new() -> IInterval_Vtbl { + unsafe extern "system" fn GetLimits(this: *mut core::ffi::c_void, pilklower: *mut INTERVAL_LIMIT_KIND, ppropvarlower: *mut core::mem::MaybeUninit, pilkupper: *mut INTERVAL_LIMIT_KIND, ppropvarupper: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInterval_Impl::GetLimits(this, core::mem::transmute_copy(&pilklower), core::mem::transmute_copy(&ppropvarlower), core::mem::transmute_copy(&pilkupper), core::mem::transmute_copy(&ppropvarupper)).into() } @@ -2703,7 +2034,7 @@ impl IInterval_Vtbl { } } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] -pub trait ILoadFilter_Impl: Sized { +pub trait ILoadFilter_Impl: Sized + windows_core::IUnknownImpl { fn LoadIFilter(&self, pwcspath: &windows_core::PCWSTR, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: Option<&windows_core::IUnknown>, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut Option) -> windows_core::Result<()>; fn LoadIFilterFromStorage(&self, pstg: Option<&super::Com::StructuredStorage::IStorage>, punkouter: Option<&windows_core::IUnknown>, pwcsoverride: &windows_core::PCWSTR, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut Option) -> windows_core::Result<()>; fn LoadIFilterFromStream(&self, pstm: Option<&super::Com::IStream>, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: Option<&windows_core::IUnknown>, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut Option) -> windows_core::Result<()>; @@ -2712,28 +2043,16 @@ pub trait ILoadFilter_Impl: Sized { impl windows_core::RuntimeName for ILoadFilter {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] impl ILoadFilter_Vtbl { - pub const fn new() -> ILoadFilter_Vtbl - where - Identity: ILoadFilter_Impl, - { - unsafe extern "system" fn LoadIFilter(this: *mut core::ffi::c_void, pwcspath: windows_core::PCWSTR, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: *mut core::ffi::c_void, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoadFilter_Impl, - { + pub const fn new() -> ILoadFilter_Vtbl { + unsafe extern "system" fn LoadIFilter(this: *mut core::ffi::c_void, pwcspath: windows_core::PCWSTR, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: *mut core::ffi::c_void, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoadFilter_Impl::LoadIFilter(this, core::mem::transmute(&pwcspath), core::mem::transmute_copy(&pfilteredsources), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&fusedefault), core::mem::transmute_copy(&pfilterclsid), core::mem::transmute_copy(&searchdecsize), core::mem::transmute_copy(&pwcssearchdesc), core::mem::transmute_copy(&ppifilt)).into() } - unsafe extern "system" fn LoadIFilterFromStorage(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pwcsoverride: windows_core::PCWSTR, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoadFilter_Impl, - { + unsafe extern "system" fn LoadIFilterFromStorage(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pwcsoverride: windows_core::PCWSTR, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoadFilter_Impl::LoadIFilterFromStorage(this, windows_core::from_raw_borrowed(&pstg), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute(&pwcsoverride), core::mem::transmute_copy(&fusedefault), core::mem::transmute_copy(&pfilterclsid), core::mem::transmute_copy(&searchdecsize), core::mem::transmute_copy(&pwcssearchdesc), core::mem::transmute_copy(&ppifilt)).into() } - unsafe extern "system" fn LoadIFilterFromStream(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: *mut core::ffi::c_void, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoadFilter_Impl, - { + unsafe extern "system" fn LoadIFilterFromStream(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: *mut core::ffi::c_void, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoadFilter_Impl::LoadIFilterFromStream(this, windows_core::from_raw_borrowed(&pstm), core::mem::transmute_copy(&pfilteredsources), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&fusedefault), core::mem::transmute_copy(&pfilterclsid), core::mem::transmute_copy(&searchdecsize), core::mem::transmute_copy(&pwcssearchdesc), core::mem::transmute_copy(&ppifilt)).into() } @@ -2756,14 +2075,8 @@ pub trait ILoadFilterWithPrivateComActivation_Impl: Sized + ILoadFilter_Impl { impl windows_core::RuntimeName for ILoadFilterWithPrivateComActivation {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] impl ILoadFilterWithPrivateComActivation_Vtbl { - pub const fn new() -> ILoadFilterWithPrivateComActivation_Vtbl - where - Identity: ILoadFilterWithPrivateComActivation_Impl, - { - unsafe extern "system" fn LoadIFilterWithPrivateComActivation(this: *mut core::ffi::c_void, filteredsources: *const FILTERED_DATA_SOURCES, usedefault: super::super::Foundation::BOOL, filterclsid: *mut windows_core::GUID, isfilterprivatecomactivated: *mut super::super::Foundation::BOOL, filterobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoadFilterWithPrivateComActivation_Impl, - { + pub const fn new() -> ILoadFilterWithPrivateComActivation_Vtbl { + unsafe extern "system" fn LoadIFilterWithPrivateComActivation(this: *mut core::ffi::c_void, filteredsources: *const FILTERED_DATA_SOURCES, usedefault: super::super::Foundation::BOOL, filterclsid: *mut windows_core::GUID, isfilterprivatecomactivated: *mut super::super::Foundation::BOOL, filterobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoadFilterWithPrivateComActivation_Impl::LoadIFilterWithPrivateComActivation(this, core::mem::transmute_copy(&filteredsources), core::mem::transmute_copy(&usedefault), core::mem::transmute_copy(&filterclsid), core::mem::transmute_copy(&isfilterprivatecomactivated), core::mem::transmute_copy(&filterobj)).into() } @@ -2777,7 +2090,7 @@ impl ILoadFilterWithPrivateComActivation_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IMDDataset_Impl: Sized { +pub trait IMDDataset_Impl: Sized + windows_core::IUnknownImpl { fn FreeAxisInfo(&self, caxes: usize, rgaxisinfo: *const MDAXISINFO) -> windows_core::Result<()>; fn GetAxisInfo(&self, pcaxes: *mut usize, prgaxisinfo: *mut *mut MDAXISINFO) -> windows_core::Result<()>; fn GetAxisRowset(&self, punkouter: Option<&windows_core::IUnknown>, iaxis: usize, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut Option) -> windows_core::Result<()>; @@ -2788,42 +2101,24 @@ pub trait IMDDataset_Impl: Sized { impl windows_core::RuntimeName for IMDDataset {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IMDDataset_Vtbl { - pub const fn new() -> IMDDataset_Vtbl - where - Identity: IMDDataset_Impl, - { - unsafe extern "system" fn FreeAxisInfo(this: *mut core::ffi::c_void, caxes: usize, rgaxisinfo: *const MDAXISINFO) -> windows_core::HRESULT - where - Identity: IMDDataset_Impl, - { + pub const fn new() -> IMDDataset_Vtbl { + unsafe extern "system" fn FreeAxisInfo(this: *mut core::ffi::c_void, caxes: usize, rgaxisinfo: *const MDAXISINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDDataset_Impl::FreeAxisInfo(this, core::mem::transmute_copy(&caxes), core::mem::transmute_copy(&rgaxisinfo)).into() } - unsafe extern "system" fn GetAxisInfo(this: *mut core::ffi::c_void, pcaxes: *mut usize, prgaxisinfo: *mut *mut MDAXISINFO) -> windows_core::HRESULT - where - Identity: IMDDataset_Impl, - { + unsafe extern "system" fn GetAxisInfo(this: *mut core::ffi::c_void, pcaxes: *mut usize, prgaxisinfo: *mut *mut MDAXISINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDDataset_Impl::GetAxisInfo(this, core::mem::transmute_copy(&pcaxes), core::mem::transmute_copy(&prgaxisinfo)).into() } - unsafe extern "system" fn GetAxisRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, iaxis: usize, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDDataset_Impl, - { + unsafe extern "system" fn GetAxisRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, iaxis: usize, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDDataset_Impl::GetAxisRowset(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&iaxis), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets), core::mem::transmute_copy(&pprowset)).into() } - unsafe extern "system" fn GetCellData(this: *mut core::ffi::c_void, haccessor: HACCESSOR, ulstartcell: usize, ulendcell: usize, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDDataset_Impl, - { + unsafe extern "system" fn GetCellData(this: *mut core::ffi::c_void, haccessor: HACCESSOR, ulstartcell: usize, ulendcell: usize, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDDataset_Impl::GetCellData(this, core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&ulstartcell), core::mem::transmute_copy(&ulendcell), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn GetSpecification(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppspecification: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDDataset_Impl, - { + unsafe extern "system" fn GetSpecification(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppspecification: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDDataset_Impl::GetSpecification(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -2846,20 +2141,14 @@ impl IMDDataset_Vtbl { iid == &::IID } } -pub trait IMDFind_Impl: Sized { +pub trait IMDFind_Impl: Sized + windows_core::IUnknownImpl { fn FindCell(&self, ulstartingordinal: usize, cmembers: usize, rgpwszmember: *const windows_core::PCWSTR) -> windows_core::Result; fn FindTuple(&self, ulaxisidentifier: u32, ulstartingordinal: usize, cmembers: usize, rgpwszmember: *const windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IMDFind {} impl IMDFind_Vtbl { - pub const fn new() -> IMDFind_Vtbl - where - Identity: IMDFind_Impl, - { - unsafe extern "system" fn FindCell(this: *mut core::ffi::c_void, ulstartingordinal: usize, cmembers: usize, rgpwszmember: *const windows_core::PCWSTR, pulcellordinal: *mut usize) -> windows_core::HRESULT - where - Identity: IMDFind_Impl, - { + pub const fn new() -> IMDFind_Vtbl { + unsafe extern "system" fn FindCell(this: *mut core::ffi::c_void, ulstartingordinal: usize, cmembers: usize, rgpwszmember: *const windows_core::PCWSTR, pulcellordinal: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDFind_Impl::FindCell(this, core::mem::transmute_copy(&ulstartingordinal), core::mem::transmute_copy(&cmembers), core::mem::transmute_copy(&rgpwszmember)) { Ok(ok__) => { @@ -2869,10 +2158,7 @@ impl IMDFind_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindTuple(this: *mut core::ffi::c_void, ulaxisidentifier: u32, ulstartingordinal: usize, cmembers: usize, rgpwszmember: *const windows_core::PCWSTR, pultupleordinal: *mut u32) -> windows_core::HRESULT - where - Identity: IMDFind_Impl, - { + unsafe extern "system" fn FindTuple(this: *mut core::ffi::c_void, ulaxisidentifier: u32, ulstartingordinal: usize, cmembers: usize, rgpwszmember: *const windows_core::PCWSTR, pultupleordinal: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMDFind_Impl::FindTuple(this, core::mem::transmute_copy(&ulaxisidentifier), core::mem::transmute_copy(&ulstartingordinal), core::mem::transmute_copy(&cmembers), core::mem::transmute_copy(&rgpwszmember)) { Ok(ok__) => { @@ -2889,21 +2175,15 @@ impl IMDFind_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IMDRangeRowset_Impl: Sized { +pub trait IMDRangeRowset_Impl: Sized + windows_core::IUnknownImpl { fn GetRangeRowset(&self, punkouter: Option<&windows_core::IUnknown>, ulstartcell: usize, ulendcell: usize, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut Option) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Storage_IndexServer")] impl windows_core::RuntimeName for IMDRangeRowset {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IMDRangeRowset_Vtbl { - pub const fn new() -> IMDRangeRowset_Vtbl - where - Identity: IMDRangeRowset_Impl, - { - unsafe extern "system" fn GetRangeRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, ulstartcell: usize, ulendcell: usize, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMDRangeRowset_Impl, - { + pub const fn new() -> IMDRangeRowset_Vtbl { + unsafe extern "system" fn GetRangeRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, ulstartcell: usize, ulendcell: usize, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMDRangeRowset_Impl::GetRangeRowset(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&ulstartcell), core::mem::transmute_copy(&ulendcell), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets), core::mem::transmute_copy(&pprowset)).into() } @@ -2913,19 +2193,13 @@ impl IMDRangeRowset_Vtbl { iid == &::IID } } -pub trait IMetaData_Impl: Sized { +pub trait IMetaData_Impl: Sized + windows_core::IUnknownImpl { fn GetData(&self, ppszkey: *mut windows_core::PWSTR, ppszvalue: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMetaData {} impl IMetaData_Vtbl { - pub const fn new() -> IMetaData_Vtbl - where - Identity: IMetaData_Impl, - { - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, ppszkey: *mut windows_core::PWSTR, ppszvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IMetaData_Impl, - { + pub const fn new() -> IMetaData_Vtbl { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, ppszkey: *mut windows_core::PWSTR, ppszvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaData_Impl::GetData(this, core::mem::transmute_copy(&ppszkey), core::mem::transmute_copy(&ppszvalue)).into() } @@ -2935,19 +2209,13 @@ impl IMetaData_Vtbl { iid == &::IID } } -pub trait IMultipleResults_Impl: Sized { +pub trait IMultipleResults_Impl: Sized + windows_core::IUnknownImpl { fn GetResult(&self, punkouter: Option<&windows_core::IUnknown>, lresultflag: isize, riid: *const windows_core::GUID, pcrowsaffected: *mut isize, pprowset: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMultipleResults {} impl IMultipleResults_Vtbl { - pub const fn new() -> IMultipleResults_Vtbl - where - Identity: IMultipleResults_Impl, - { - unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, lresultflag: isize, riid: *const windows_core::GUID, pcrowsaffected: *mut isize, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMultipleResults_Impl, - { + pub const fn new() -> IMultipleResults_Vtbl { + unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, lresultflag: isize, riid: *const windows_core::GUID, pcrowsaffected: *mut isize, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultipleResults_Impl::GetResult(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&lresultflag), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pcrowsaffected), core::mem::transmute_copy(&pprowset)).into() } @@ -2957,20 +2225,14 @@ impl IMultipleResults_Vtbl { iid == &::IID } } -pub trait INamedEntity_Impl: Sized { +pub trait INamedEntity_Impl: Sized + windows_core::IUnknownImpl { fn GetValue(&self) -> windows_core::Result; fn DefaultPhrase(&self, ppszphrase: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INamedEntity {} impl INamedEntity_Vtbl { - pub const fn new() -> INamedEntity_Vtbl - where - Identity: INamedEntity_Impl, - { - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, ppszvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INamedEntity_Impl, - { + pub const fn new() -> INamedEntity_Vtbl { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, ppszvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INamedEntity_Impl::GetValue(this) { Ok(ok__) => { @@ -2980,10 +2242,7 @@ impl INamedEntity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultPhrase(this: *mut core::ffi::c_void, ppszphrase: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INamedEntity_Impl, - { + unsafe extern "system" fn DefaultPhrase(this: *mut core::ffi::c_void, ppszphrase: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamedEntity_Impl::DefaultPhrase(this, core::mem::transmute_copy(&ppszphrase)).into() } @@ -2997,19 +2256,13 @@ impl INamedEntity_Vtbl { iid == &::IID } } -pub trait INamedEntityCollector_Impl: Sized { +pub trait INamedEntityCollector_Impl: Sized + windows_core::IUnknownImpl { fn Add(&self, beginspan: u32, endspan: u32, beginactual: u32, endactual: u32, ptype: Option<&IEntity>, pszvalue: &windows_core::PCWSTR, certainty: NAMED_ENTITY_CERTAINTY) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INamedEntityCollector {} impl INamedEntityCollector_Vtbl { - pub const fn new() -> INamedEntityCollector_Vtbl - where - Identity: INamedEntityCollector_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, beginspan: u32, endspan: u32, beginactual: u32, endactual: u32, ptype: *mut core::ffi::c_void, pszvalue: windows_core::PCWSTR, certainty: NAMED_ENTITY_CERTAINTY) -> windows_core::HRESULT - where - Identity: INamedEntityCollector_Impl, - { + pub const fn new() -> INamedEntityCollector_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, beginspan: u32, endspan: u32, beginactual: u32, endactual: u32, ptype: *mut core::ffi::c_void, pszvalue: windows_core::PCWSTR, certainty: NAMED_ENTITY_CERTAINTY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamedEntityCollector_Impl::Add(this, core::mem::transmute_copy(&beginspan), core::mem::transmute_copy(&endspan), core::mem::transmute_copy(&beginactual), core::mem::transmute_copy(&endactual), windows_core::from_raw_borrowed(&ptype), core::mem::transmute(&pszvalue), core::mem::transmute_copy(&certainty)).into() } @@ -3020,7 +2273,7 @@ impl INamedEntityCollector_Vtbl { } } #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] -pub trait IObjectAccessControl_Impl: Sized { +pub trait IObjectAccessControl_Impl: Sized + windows_core::IUnknownImpl { fn GetObjectAccessRights(&self, pobject: *const SEC_OBJECT, pcaccessentries: *mut u32, prgaccessentries: *mut *mut super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result<()>; fn GetObjectOwner(&self, pobject: *const SEC_OBJECT) -> windows_core::Result<*mut super::super::Security::Authorization::TRUSTEE_W>; fn IsObjectAccessAllowed(&self, pobject: *const SEC_OBJECT, paccessentry: *const super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result; @@ -3031,21 +2284,12 @@ pub trait IObjectAccessControl_Impl: Sized { impl windows_core::RuntimeName for IObjectAccessControl {} #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] impl IObjectAccessControl_Vtbl { - pub const fn new() -> IObjectAccessControl_Vtbl - where - Identity: IObjectAccessControl_Impl, - { - unsafe extern "system" fn GetObjectAccessRights(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, pcaccessentries: *mut u32, prgaccessentries: *mut *mut super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::HRESULT - where - Identity: IObjectAccessControl_Impl, - { + pub const fn new() -> IObjectAccessControl_Vtbl { + unsafe extern "system" fn GetObjectAccessRights(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, pcaccessentries: *mut u32, prgaccessentries: *mut *mut super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectAccessControl_Impl::GetObjectAccessRights(this, core::mem::transmute_copy(&pobject), core::mem::transmute_copy(&pcaccessentries), core::mem::transmute_copy(&prgaccessentries)).into() } - unsafe extern "system" fn GetObjectOwner(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, ppowner: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT - where - Identity: IObjectAccessControl_Impl, - { + unsafe extern "system" fn GetObjectOwner(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, ppowner: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectAccessControl_Impl::GetObjectOwner(this, core::mem::transmute_copy(&pobject)) { Ok(ok__) => { @@ -3055,10 +2299,7 @@ impl IObjectAccessControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsObjectAccessAllowed(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, paccessentry: *const super::super::Security::Authorization::EXPLICIT_ACCESS_W, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IObjectAccessControl_Impl, - { + unsafe extern "system" fn IsObjectAccessAllowed(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, paccessentry: *const super::super::Security::Authorization::EXPLICIT_ACCESS_W, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectAccessControl_Impl::IsObjectAccessAllowed(this, core::mem::transmute_copy(&pobject), core::mem::transmute_copy(&paccessentry)) { Ok(ok__) => { @@ -3068,17 +2309,11 @@ impl IObjectAccessControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectAccessRights(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, caccessentries: u32, prgaccessentries: *mut super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::HRESULT - where - Identity: IObjectAccessControl_Impl, - { + unsafe extern "system" fn SetObjectAccessRights(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, caccessentries: u32, prgaccessentries: *mut super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectAccessControl_Impl::SetObjectAccessRights(this, core::mem::transmute_copy(&pobject), core::mem::transmute_copy(&caccessentries), core::mem::transmute_copy(&prgaccessentries)).into() } - unsafe extern "system" fn SetObjectOwner(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, powner: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT - where - Identity: IObjectAccessControl_Impl, - { + unsafe extern "system" fn SetObjectOwner(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, powner: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectAccessControl_Impl::SetObjectOwner(this, core::mem::transmute_copy(&pobject), core::mem::transmute_copy(&powner)).into() } @@ -3095,21 +2330,15 @@ impl IObjectAccessControl_Vtbl { iid == &::IID } } -pub trait IOpLockStatus_Impl: Sized { +pub trait IOpLockStatus_Impl: Sized + windows_core::IUnknownImpl { fn IsOplockValid(&self) -> windows_core::Result; fn IsOplockBroken(&self) -> windows_core::Result; fn GetOplockEventHandle(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOpLockStatus {} impl IOpLockStatus_Vtbl { - pub const fn new() -> IOpLockStatus_Vtbl - where - Identity: IOpLockStatus_Impl, - { - unsafe extern "system" fn IsOplockValid(this: *mut core::ffi::c_void, pfisoplockvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpLockStatus_Impl, - { + pub const fn new() -> IOpLockStatus_Vtbl { + unsafe extern "system" fn IsOplockValid(this: *mut core::ffi::c_void, pfisoplockvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpLockStatus_Impl::IsOplockValid(this) { Ok(ok__) => { @@ -3119,10 +2348,7 @@ impl IOpLockStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsOplockBroken(this: *mut core::ffi::c_void, pfisoplockbroken: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpLockStatus_Impl, - { + unsafe extern "system" fn IsOplockBroken(this: *mut core::ffi::c_void, pfisoplockbroken: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpLockStatus_Impl::IsOplockBroken(this) { Ok(ok__) => { @@ -3132,10 +2358,7 @@ impl IOpLockStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOplockEventHandle(this: *mut core::ffi::c_void, phoplockev: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IOpLockStatus_Impl, - { + unsafe extern "system" fn GetOplockEventHandle(this: *mut core::ffi::c_void, phoplockev: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpLockStatus_Impl::GetOplockEventHandle(this) { Ok(ok__) => { @@ -3157,21 +2380,15 @@ impl IOpLockStatus_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IOpenRowset_Impl: Sized { +pub trait IOpenRowset_Impl: Sized + windows_core::IUnknownImpl { fn OpenRowset(&self, punkouter: Option<&windows_core::IUnknown>, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut Option) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Storage_IndexServer")] impl windows_core::RuntimeName for IOpenRowset {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IOpenRowset_Vtbl { - pub const fn new() -> IOpenRowset_Vtbl - where - Identity: IOpenRowset_Impl, - { - unsafe extern "system" fn OpenRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenRowset_Impl, - { + pub const fn new() -> IOpenRowset_Vtbl { + unsafe extern "system" fn OpenRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenRowset_Impl::OpenRowset(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pindexid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets), core::mem::transmute_copy(&pprowset)).into() } @@ -3181,19 +2398,13 @@ impl IOpenRowset_Vtbl { iid == &::IID } } -pub trait IParentRowset_Impl: Sized { +pub trait IParentRowset_Impl: Sized + windows_core::IUnknownImpl { fn GetChildRowset(&self, punkouter: Option<&windows_core::IUnknown>, iordinal: usize, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IParentRowset {} impl IParentRowset_Vtbl { - pub const fn new() -> IParentRowset_Vtbl - where - Identity: IParentRowset_Impl, - { - unsafe extern "system" fn GetChildRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, iordinal: usize, riid: *const windows_core::GUID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IParentRowset_Impl, - { + pub const fn new() -> IParentRowset_Vtbl { + unsafe extern "system" fn GetChildRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, iordinal: usize, riid: *const windows_core::GUID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IParentRowset_Impl::GetChildRowset(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&iordinal), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -3210,21 +2421,15 @@ impl IParentRowset_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IProtocolHandlerSite_Impl: Sized { +pub trait IProtocolHandlerSite_Impl: Sized + windows_core::IUnknownImpl { fn GetFilter(&self, pclsidobj: *const windows_core::GUID, pcwszcontenttype: &windows_core::PCWSTR, pcwszextension: &windows_core::PCWSTR) -> windows_core::Result; } #[cfg(feature = "Win32_Storage_IndexServer")] impl windows_core::RuntimeName for IProtocolHandlerSite {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IProtocolHandlerSite_Vtbl { - pub const fn new() -> IProtocolHandlerSite_Vtbl - where - Identity: IProtocolHandlerSite_Impl, - { - unsafe extern "system" fn GetFilter(this: *mut core::ffi::c_void, pclsidobj: *const windows_core::GUID, pcwszcontenttype: windows_core::PCWSTR, pcwszextension: windows_core::PCWSTR, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProtocolHandlerSite_Impl, - { + pub const fn new() -> IProtocolHandlerSite_Vtbl { + unsafe extern "system" fn GetFilter(this: *mut core::ffi::c_void, pclsidobj: *const windows_core::GUID, pcwszcontenttype: windows_core::PCWSTR, pcwszextension: windows_core::PCWSTR, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProtocolHandlerSite_Impl::GetFilter(this, core::mem::transmute_copy(&pclsidobj), core::mem::transmute(&pcwszcontenttype), core::mem::transmute(&pcwszextension)) { Ok(ok__) => { @@ -3241,21 +2446,15 @@ impl IProtocolHandlerSite_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IProvideMoniker_Impl: Sized { +pub trait IProvideMoniker_Impl: Sized + windows_core::IUnknownImpl { fn GetMoniker(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IProvideMoniker {} #[cfg(feature = "Win32_System_Com")] impl IProvideMoniker_Vtbl { - pub const fn new() -> IProvideMoniker_Vtbl - where - Identity: IProvideMoniker_Impl, - { - unsafe extern "system" fn GetMoniker(this: *mut core::ffi::c_void, ppimoniker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProvideMoniker_Impl, - { + pub const fn new() -> IProvideMoniker_Vtbl { + unsafe extern "system" fn GetMoniker(this: *mut core::ffi::c_void, ppimoniker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideMoniker_Impl::GetMoniker(this) { Ok(ok__) => { @@ -3272,7 +2471,7 @@ impl IProvideMoniker_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IQueryParser_Impl: Sized { +pub trait IQueryParser_Impl: Sized + windows_core::IUnknownImpl { fn Parse(&self, pszinputstring: &windows_core::PCWSTR, pcustomproperties: Option<&super::Com::IEnumUnknown>) -> windows_core::Result; fn SetOption(&self, option: STRUCTURED_QUERY_SINGLE_OPTION, poptionvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; fn GetOption(&self, option: STRUCTURED_QUERY_SINGLE_OPTION) -> windows_core::Result; @@ -3286,14 +2485,8 @@ pub trait IQueryParser_Impl: Sized { impl windows_core::RuntimeName for IQueryParser {} #[cfg(feature = "Win32_System_Com")] impl IQueryParser_Vtbl { - pub const fn new() -> IQueryParser_Vtbl - where - Identity: IQueryParser_Impl, - { - unsafe extern "system" fn Parse(this: *mut core::ffi::c_void, pszinputstring: windows_core::PCWSTR, pcustomproperties: *mut core::ffi::c_void, ppsolution: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQueryParser_Impl, - { + pub const fn new() -> IQueryParser_Vtbl { + unsafe extern "system" fn Parse(this: *mut core::ffi::c_void, pszinputstring: windows_core::PCWSTR, pcustomproperties: *mut core::ffi::c_void, ppsolution: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryParser_Impl::Parse(this, core::mem::transmute(&pszinputstring), windows_core::from_raw_borrowed(&pcustomproperties)) { Ok(ok__) => { @@ -3303,17 +2496,11 @@ impl IQueryParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, option: STRUCTURED_QUERY_SINGLE_OPTION, poptionvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IQueryParser_Impl, - { + unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, option: STRUCTURED_QUERY_SINGLE_OPTION, poptionvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryParser_Impl::SetOption(this, core::mem::transmute_copy(&option), core::mem::transmute_copy(&poptionvalue)).into() } - unsafe extern "system" fn GetOption(this: *mut core::ffi::c_void, option: STRUCTURED_QUERY_SINGLE_OPTION, poptionvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IQueryParser_Impl, - { + unsafe extern "system" fn GetOption(this: *mut core::ffi::c_void, option: STRUCTURED_QUERY_SINGLE_OPTION, poptionvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryParser_Impl::GetOption(this, core::mem::transmute_copy(&option)) { Ok(ok__) => { @@ -3323,17 +2510,11 @@ impl IQueryParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMultiOption(this: *mut core::ffi::c_void, option: STRUCTURED_QUERY_MULTIOPTION, pszoptionkey: windows_core::PCWSTR, poptionvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IQueryParser_Impl, - { + unsafe extern "system" fn SetMultiOption(this: *mut core::ffi::c_void, option: STRUCTURED_QUERY_MULTIOPTION, pszoptionkey: windows_core::PCWSTR, poptionvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryParser_Impl::SetMultiOption(this, core::mem::transmute_copy(&option), core::mem::transmute(&pszoptionkey), core::mem::transmute_copy(&poptionvalue)).into() } - unsafe extern "system" fn GetSchemaProvider(this: *mut core::ffi::c_void, ppschemaprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQueryParser_Impl, - { + unsafe extern "system" fn GetSchemaProvider(this: *mut core::ffi::c_void, ppschemaprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryParser_Impl::GetSchemaProvider(this) { Ok(ok__) => { @@ -3343,10 +2524,7 @@ impl IQueryParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RestateToString(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void, fuseenglish: super::super::Foundation::BOOL, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IQueryParser_Impl, - { + unsafe extern "system" fn RestateToString(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void, fuseenglish: super::super::Foundation::BOOL, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryParser_Impl::RestateToString(this, windows_core::from_raw_borrowed(&pcondition), core::mem::transmute_copy(&fuseenglish)) { Ok(ok__) => { @@ -3356,10 +2534,7 @@ impl IQueryParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParsePropertyValue(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, pszinputstring: windows_core::PCWSTR, ppsolution: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQueryParser_Impl, - { + unsafe extern "system" fn ParsePropertyValue(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, pszinputstring: windows_core::PCWSTR, ppsolution: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryParser_Impl::ParsePropertyValue(this, core::mem::transmute(&pszpropertyname), core::mem::transmute(&pszinputstring)) { Ok(ok__) => { @@ -3369,10 +2544,7 @@ impl IQueryParser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RestatePropertyValueToString(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void, fuseenglish: super::super::Foundation::BOOL, ppszpropertyname: *mut windows_core::PWSTR, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IQueryParser_Impl, - { + unsafe extern "system" fn RestatePropertyValueToString(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void, fuseenglish: super::super::Foundation::BOOL, ppszpropertyname: *mut windows_core::PWSTR, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryParser_Impl::RestatePropertyValueToString(this, windows_core::from_raw_borrowed(&pcondition), core::mem::transmute_copy(&fuseenglish), core::mem::transmute_copy(&ppszpropertyname), core::mem::transmute_copy(&ppszquerystring)).into() } @@ -3392,35 +2564,23 @@ impl IQueryParser_Vtbl { iid == &::IID } } -pub trait IQueryParserManager_Impl: Sized { +pub trait IQueryParserManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateLoadedParser(&self, pszcatalog: &windows_core::PCWSTR, langidforkeywords: u16, riid: *const windows_core::GUID, ppqueryparser: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn InitializeOptions(&self, funderstandnqs: super::super::Foundation::BOOL, fautowildcard: super::super::Foundation::BOOL, pqueryparser: Option<&IQueryParser>) -> windows_core::Result<()>; fn SetOption(&self, option: QUERY_PARSER_MANAGER_OPTION, poptionvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IQueryParserManager {} impl IQueryParserManager_Vtbl { - pub const fn new() -> IQueryParserManager_Vtbl - where - Identity: IQueryParserManager_Impl, - { - unsafe extern "system" fn CreateLoadedParser(this: *mut core::ffi::c_void, pszcatalog: windows_core::PCWSTR, langidforkeywords: u16, riid: *const windows_core::GUID, ppqueryparser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQueryParserManager_Impl, - { + pub const fn new() -> IQueryParserManager_Vtbl { + unsafe extern "system" fn CreateLoadedParser(this: *mut core::ffi::c_void, pszcatalog: windows_core::PCWSTR, langidforkeywords: u16, riid: *const windows_core::GUID, ppqueryparser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryParserManager_Impl::CreateLoadedParser(this, core::mem::transmute(&pszcatalog), core::mem::transmute_copy(&langidforkeywords), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppqueryparser)).into() } - unsafe extern "system" fn InitializeOptions(this: *mut core::ffi::c_void, funderstandnqs: super::super::Foundation::BOOL, fautowildcard: super::super::Foundation::BOOL, pqueryparser: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQueryParserManager_Impl, - { + unsafe extern "system" fn InitializeOptions(this: *mut core::ffi::c_void, funderstandnqs: super::super::Foundation::BOOL, fautowildcard: super::super::Foundation::BOOL, pqueryparser: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryParserManager_Impl::InitializeOptions(this, core::mem::transmute_copy(&funderstandnqs), core::mem::transmute_copy(&fautowildcard), windows_core::from_raw_borrowed(&pqueryparser)).into() } - unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, option: QUERY_PARSER_MANAGER_OPTION, poptionvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IQueryParserManager_Impl, - { + unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, option: QUERY_PARSER_MANAGER_OPTION, poptionvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryParserManager_Impl::SetOption(this, core::mem::transmute_copy(&option), core::mem::transmute_copy(&poptionvalue)).into() } @@ -3445,28 +2605,16 @@ pub trait IQuerySolution_Impl: Sized + IConditionFactory_Impl { impl windows_core::RuntimeName for IQuerySolution {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] impl IQuerySolution_Vtbl { - pub const fn new() -> IQuerySolution_Vtbl - where - Identity: IQuerySolution_Impl, - { - unsafe extern "system" fn GetQuery(this: *mut core::ffi::c_void, ppquerynode: *mut *mut core::ffi::c_void, ppmaintype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQuerySolution_Impl, - { + pub const fn new() -> IQuerySolution_Vtbl { + unsafe extern "system" fn GetQuery(this: *mut core::ffi::c_void, ppquerynode: *mut *mut core::ffi::c_void, ppmaintype: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQuerySolution_Impl::GetQuery(this, core::mem::transmute_copy(&ppquerynode), core::mem::transmute_copy(&ppmaintype)).into() } - unsafe extern "system" fn GetErrors(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppparseerrors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQuerySolution_Impl, - { + unsafe extern "system" fn GetErrors(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppparseerrors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQuerySolution_Impl::GetErrors(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppparseerrors)).into() } - unsafe extern "system" fn GetLexicalData(this: *mut core::ffi::c_void, ppszinputstring: *mut windows_core::PWSTR, pptokens: *mut *mut core::ffi::c_void, plcid: *mut u32, ppwordbreaker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQuerySolution_Impl, - { + unsafe extern "system" fn GetLexicalData(this: *mut core::ffi::c_void, ppszinputstring: *mut windows_core::PWSTR, pptokens: *mut *mut core::ffi::c_void, plcid: *mut u32, ppwordbreaker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQuerySolution_Impl::GetLexicalData(this, core::mem::transmute_copy(&ppszinputstring), core::mem::transmute_copy(&pptokens), core::mem::transmute_copy(&plcid), core::mem::transmute_copy(&ppwordbreaker)).into() } @@ -3481,27 +2629,18 @@ impl IQuerySolution_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IReadData_Impl: Sized { +pub trait IReadData_Impl: Sized + windows_core::IUnknownImpl { fn ReadData(&self, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, haccessor: HACCESSOR, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> windows_core::Result<()>; fn ReleaseChapter(&self, hchapter: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IReadData {} impl IReadData_Vtbl { - pub const fn new() -> IReadData_Vtbl - where - Identity: IReadData_Impl, - { - unsafe extern "system" fn ReadData(this: *mut core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, haccessor: HACCESSOR, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IReadData_Impl, - { + pub const fn new() -> IReadData_Vtbl { + unsafe extern "system" fn ReadData(this: *mut core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, haccessor: HACCESSOR, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReadData_Impl::ReadData(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&cbbookmark), core::mem::transmute_copy(&pbookmark), core::mem::transmute_copy(&lrowsoffset), core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&pcrowsobtained), core::mem::transmute_copy(&ppfixeddata), core::mem::transmute_copy(&pcbvariabletotal), core::mem::transmute_copy(&ppvariabledata)).into() } - unsafe extern "system" fn ReleaseChapter(this: *mut core::ffi::c_void, hchapter: usize) -> windows_core::HRESULT - where - Identity: IReadData_Impl, - { + unsafe extern "system" fn ReleaseChapter(this: *mut core::ffi::c_void, hchapter: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReadData_Impl::ReleaseChapter(this, core::mem::transmute_copy(&hchapter)).into() } @@ -3515,21 +2654,15 @@ impl IReadData_Vtbl { iid == &::IID } } -pub trait IRegisterProvider_Impl: Sized { +pub trait IRegisterProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetURLMapping(&self, pwszurl: &windows_core::PCWSTR, dwreserved: usize) -> windows_core::Result; fn SetURLMapping(&self, pwszurl: &windows_core::PCWSTR, dwreserved: usize, rclsidprovider: *const windows_core::GUID) -> windows_core::Result<()>; fn UnregisterProvider(&self, pwszurl: &windows_core::PCWSTR, dwreserved: usize, rclsidprovider: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRegisterProvider {} impl IRegisterProvider_Vtbl { - pub const fn new() -> IRegisterProvider_Vtbl - where - Identity: IRegisterProvider_Impl, - { - unsafe extern "system" fn GetURLMapping(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwreserved: usize, pclsidprovider: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRegisterProvider_Impl, - { + pub const fn new() -> IRegisterProvider_Vtbl { + unsafe extern "system" fn GetURLMapping(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwreserved: usize, pclsidprovider: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisterProvider_Impl::GetURLMapping(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwreserved)) { Ok(ok__) => { @@ -3539,17 +2672,11 @@ impl IRegisterProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetURLMapping(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwreserved: usize, rclsidprovider: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRegisterProvider_Impl, - { + unsafe extern "system" fn SetURLMapping(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwreserved: usize, rclsidprovider: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisterProvider_Impl::SetURLMapping(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&rclsidprovider)).into() } - unsafe extern "system" fn UnregisterProvider(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwreserved: usize, rclsidprovider: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRegisterProvider_Impl, - { + unsafe extern "system" fn UnregisterProvider(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, dwreserved: usize, rclsidprovider: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisterProvider_Impl::UnregisterProvider(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&rclsidprovider)).into() } @@ -3564,7 +2691,7 @@ impl IRegisterProvider_Vtbl { iid == &::IID } } -pub trait IRelationship_Impl: Sized { +pub trait IRelationship_Impl: Sized + windows_core::IUnknownImpl { fn Name(&self, ppszname: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn IsReal(&self) -> windows_core::Result; fn Destination(&self) -> windows_core::Result; @@ -3573,21 +2700,12 @@ pub trait IRelationship_Impl: Sized { } impl windows_core::RuntimeName for IRelationship {} impl IRelationship_Vtbl { - pub const fn new() -> IRelationship_Vtbl - where - Identity: IRelationship_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IRelationship_Impl, - { + pub const fn new() -> IRelationship_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRelationship_Impl::Name(this, core::mem::transmute_copy(&ppszname)).into() } - unsafe extern "system" fn IsReal(this: *mut core::ffi::c_void, pisreal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRelationship_Impl, - { + unsafe extern "system" fn IsReal(this: *mut core::ffi::c_void, pisreal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRelationship_Impl::IsReal(this) { Ok(ok__) => { @@ -3597,10 +2715,7 @@ impl IRelationship_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Destination(this: *mut core::ffi::c_void, pdestinationentity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRelationship_Impl, - { + unsafe extern "system" fn Destination(this: *mut core::ffi::c_void, pdestinationentity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRelationship_Impl::Destination(this) { Ok(ok__) => { @@ -3610,17 +2725,11 @@ impl IRelationship_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MetaData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRelationship_Impl, - { + unsafe extern "system" fn MetaData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRelationship_Impl::MetaData(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pmetadata)).into() } - unsafe extern "system" fn DefaultPhrase(this: *mut core::ffi::c_void, ppszphrase: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IRelationship_Impl, - { + unsafe extern "system" fn DefaultPhrase(this: *mut core::ffi::c_void, ppszphrase: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRelationship_Impl::DefaultPhrase(this, core::mem::transmute_copy(&ppszphrase)).into() } @@ -3637,19 +2746,13 @@ impl IRelationship_Vtbl { iid == &::IID } } -pub trait IRichChunk_Impl: Sized { +pub trait IRichChunk_Impl: Sized + windows_core::IUnknownImpl { fn GetData(&self, pfirstpos: *mut u32, plength: *mut u32, ppsz: *mut windows_core::PWSTR, pvalue: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRichChunk {} impl IRichChunk_Vtbl { - pub const fn new() -> IRichChunk_Vtbl - where - Identity: IRichChunk_Impl, - { - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pfirstpos: *mut u32, plength: *mut u32, ppsz: *mut windows_core::PWSTR, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRichChunk_Impl, - { + pub const fn new() -> IRichChunk_Vtbl { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pfirstpos: *mut u32, plength: *mut u32, ppsz: *mut windows_core::PWSTR, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichChunk_Impl::GetData(this, core::mem::transmute_copy(&pfirstpos), core::mem::transmute_copy(&plength), core::mem::transmute_copy(&ppsz), core::mem::transmute_copy(&pvalue)).into() } @@ -3660,7 +2763,7 @@ impl IRichChunk_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IRow_Impl: Sized { +pub trait IRow_Impl: Sized + windows_core::IUnknownImpl { fn GetColumns(&self, ccolumns: usize, rgcolumns: *mut DBCOLUMNACCESS) -> windows_core::Result<()>; fn GetSourceRowset(&self, riid: *const windows_core::GUID, pprowset: *mut Option, phrow: *mut usize) -> windows_core::Result<()>; fn Open(&self, punkouter: Option<&windows_core::IUnknown>, pcolumnid: *const super::super::Storage::IndexServer::DBID, rguidcolumntype: *const windows_core::GUID, dwbindflags: u32, riid: *const windows_core::GUID, ppunk: *mut Option) -> windows_core::Result<()>; @@ -3669,28 +2772,16 @@ pub trait IRow_Impl: Sized { impl windows_core::RuntimeName for IRow {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IRow_Vtbl { - pub const fn new() -> IRow_Vtbl - where - Identity: IRow_Impl, - { - unsafe extern "system" fn GetColumns(this: *mut core::ffi::c_void, ccolumns: usize, rgcolumns: *mut DBCOLUMNACCESS) -> windows_core::HRESULT - where - Identity: IRow_Impl, - { + pub const fn new() -> IRow_Vtbl { + unsafe extern "system" fn GetColumns(this: *mut core::ffi::c_void, ccolumns: usize, rgcolumns: *mut DBCOLUMNACCESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRow_Impl::GetColumns(this, core::mem::transmute_copy(&ccolumns), core::mem::transmute_copy(&rgcolumns)).into() } - unsafe extern "system" fn GetSourceRowset(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pprowset: *mut *mut core::ffi::c_void, phrow: *mut usize) -> windows_core::HRESULT - where - Identity: IRow_Impl, - { + unsafe extern "system" fn GetSourceRowset(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pprowset: *mut *mut core::ffi::c_void, phrow: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRow_Impl::GetSourceRowset(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pprowset), core::mem::transmute_copy(&phrow)).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pcolumnid: *const super::super::Storage::IndexServer::DBID, rguidcolumntype: *const windows_core::GUID, dwbindflags: u32, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRow_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pcolumnid: *const super::super::Storage::IndexServer::DBID, rguidcolumntype: *const windows_core::GUID, dwbindflags: u32, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRow_Impl::Open(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&pcolumnid), core::mem::transmute_copy(&rguidcolumntype), core::mem::transmute_copy(&dwbindflags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } @@ -3706,21 +2797,15 @@ impl IRow_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IRowChange_Impl: Sized { +pub trait IRowChange_Impl: Sized + windows_core::IUnknownImpl { fn SetColumns(&self, ccolumns: usize, rgcolumns: *const DBCOLUMNACCESS) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Storage_IndexServer")] impl windows_core::RuntimeName for IRowChange {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IRowChange_Vtbl { - pub const fn new() -> IRowChange_Vtbl - where - Identity: IRowChange_Impl, - { - unsafe extern "system" fn SetColumns(this: *mut core::ffi::c_void, ccolumns: usize, rgcolumns: *const DBCOLUMNACCESS) -> windows_core::HRESULT - where - Identity: IRowChange_Impl, - { + pub const fn new() -> IRowChange_Vtbl { + unsafe extern "system" fn SetColumns(this: *mut core::ffi::c_void, ccolumns: usize, rgcolumns: *const DBCOLUMNACCESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowChange_Impl::SetColumns(this, core::mem::transmute_copy(&ccolumns), core::mem::transmute_copy(&rgcolumns)).into() } @@ -3730,7 +2815,7 @@ impl IRowChange_Vtbl { iid == &::IID } } -pub trait IRowPosition_Impl: Sized { +pub trait IRowPosition_Impl: Sized + windows_core::IUnknownImpl { fn ClearRowPosition(&self) -> windows_core::Result<()>; fn GetRowPosition(&self, phchapter: *mut usize, phrow: *mut usize, pdwpositionflags: *mut u32) -> windows_core::Result<()>; fn GetRowset(&self, riid: *const windows_core::GUID) -> windows_core::Result; @@ -3739,28 +2824,16 @@ pub trait IRowPosition_Impl: Sized { } impl windows_core::RuntimeName for IRowPosition {} impl IRowPosition_Vtbl { - pub const fn new() -> IRowPosition_Vtbl - where - Identity: IRowPosition_Impl, - { - unsafe extern "system" fn ClearRowPosition(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowPosition_Impl, - { + pub const fn new() -> IRowPosition_Vtbl { + unsafe extern "system" fn ClearRowPosition(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowPosition_Impl::ClearRowPosition(this).into() } - unsafe extern "system" fn GetRowPosition(this: *mut core::ffi::c_void, phchapter: *mut usize, phrow: *mut usize, pdwpositionflags: *mut u32) -> windows_core::HRESULT - where - Identity: IRowPosition_Impl, - { + unsafe extern "system" fn GetRowPosition(this: *mut core::ffi::c_void, phchapter: *mut usize, phrow: *mut usize, pdwpositionflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowPosition_Impl::GetRowPosition(this, core::mem::transmute_copy(&phchapter), core::mem::transmute_copy(&phrow), core::mem::transmute_copy(&pdwpositionflags)).into() } - unsafe extern "system" fn GetRowset(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowPosition_Impl, - { + unsafe extern "system" fn GetRowset(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowPosition_Impl::GetRowset(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -3770,17 +2843,11 @@ impl IRowPosition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowPosition_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowPosition_Impl::Initialize(this, windows_core::from_raw_borrowed(&prowset)).into() } - unsafe extern "system" fn SetRowPosition(this: *mut core::ffi::c_void, hchapter: usize, hrow: usize, dwpositionflags: u32) -> windows_core::HRESULT - where - Identity: IRowPosition_Impl, - { + unsafe extern "system" fn SetRowPosition(this: *mut core::ffi::c_void, hchapter: usize, hrow: usize, dwpositionflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowPosition_Impl::SetRowPosition(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&dwpositionflags)).into() } @@ -3797,19 +2864,13 @@ impl IRowPosition_Vtbl { iid == &::IID } } -pub trait IRowPositionChange_Impl: Sized { +pub trait IRowPositionChange_Impl: Sized + windows_core::IUnknownImpl { fn OnRowPositionChange(&self, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowPositionChange {} impl IRowPositionChange_Vtbl { - pub const fn new() -> IRowPositionChange_Vtbl - where - Identity: IRowPositionChange_Impl, - { - unsafe extern "system" fn OnRowPositionChange(this: *mut core::ffi::c_void, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRowPositionChange_Impl, - { + pub const fn new() -> IRowPositionChange_Vtbl { + unsafe extern "system" fn OnRowPositionChange(this: *mut core::ffi::c_void, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowPositionChange_Impl::OnRowPositionChange(this, core::mem::transmute_copy(&ereason), core::mem::transmute_copy(&ephase), core::mem::transmute_copy(&fcantdeny)).into() } @@ -3828,21 +2889,12 @@ pub trait IRowSchemaChange_Impl: Sized + IRowChange_Impl { impl windows_core::RuntimeName for IRowSchemaChange {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] impl IRowSchemaChange_Vtbl { - pub const fn new() -> IRowSchemaChange_Vtbl - where - Identity: IRowSchemaChange_Impl, - { - unsafe extern "system" fn DeleteColumns(this: *mut core::ffi::c_void, ccolumns: usize, rgcolumnids: *const super::super::Storage::IndexServer::DBID, rgdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRowSchemaChange_Impl, - { + pub const fn new() -> IRowSchemaChange_Vtbl { + unsafe extern "system" fn DeleteColumns(this: *mut core::ffi::c_void, ccolumns: usize, rgcolumnids: *const super::super::Storage::IndexServer::DBID, rgdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowSchemaChange_Impl::DeleteColumns(this, core::mem::transmute_copy(&ccolumns), core::mem::transmute_copy(&rgcolumnids), core::mem::transmute_copy(&rgdwstatus)).into() } - unsafe extern "system" fn AddColumns(this: *mut core::ffi::c_void, ccolumns: usize, rgnewcolumninfo: *const DBCOLUMNINFO, rgcolumns: *mut DBCOLUMNACCESS) -> windows_core::HRESULT - where - Identity: IRowSchemaChange_Impl, - { + unsafe extern "system" fn AddColumns(this: *mut core::ffi::c_void, ccolumns: usize, rgnewcolumninfo: *const DBCOLUMNINFO, rgcolumns: *mut DBCOLUMNACCESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowSchemaChange_Impl::AddColumns(this, core::mem::transmute_copy(&ccolumns), core::mem::transmute_copy(&rgnewcolumninfo), core::mem::transmute_copy(&rgcolumns)).into() } @@ -3852,7 +2904,7 @@ impl IRowSchemaChange_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRowset_Impl: Sized { +pub trait IRowset_Impl: Sized + windows_core::IUnknownImpl { fn AddRefRows(&self, crows: usize, rghrows: *const usize, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> windows_core::Result<()>; fn GetData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetNextRows(&self, hreserved: usize, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::Result<()>; @@ -3861,42 +2913,24 @@ pub trait IRowset_Impl: Sized { } impl windows_core::RuntimeName for IRowset {} impl IRowset_Vtbl { - pub const fn new() -> IRowset_Vtbl - where - Identity: IRowset_Impl, - { - unsafe extern "system" fn AddRefRows(this: *mut core::ffi::c_void, crows: usize, rghrows: *const usize, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRowset_Impl, - { + pub const fn new() -> IRowset_Vtbl { + unsafe extern "system" fn AddRefRows(this: *mut core::ffi::c_void, crows: usize, rghrows: *const usize, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowset_Impl::AddRefRows(this, core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&rgrefcounts), core::mem::transmute_copy(&rgrowstatus)).into() } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowset_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowset_Impl::GetData(this, core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn GetNextRows(this: *mut core::ffi::c_void, hreserved: usize, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::HRESULT - where - Identity: IRowset_Impl, - { + unsafe extern "system" fn GetNextRows(this: *mut core::ffi::c_void, hreserved: usize, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowset_Impl::GetNextRows(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&lrowsoffset), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&pcrowsobtained), core::mem::transmute_copy(&prghrows)).into() } - unsafe extern "system" fn ReleaseRows(this: *mut core::ffi::c_void, crows: usize, rghrows: *const usize, rgrowoptions: *const u32, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRowset_Impl, - { + unsafe extern "system" fn ReleaseRows(this: *mut core::ffi::c_void, crows: usize, rghrows: *const usize, rgrowoptions: *const u32, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowset_Impl::ReleaseRows(this, core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&rgrowoptions), core::mem::transmute_copy(&rgrefcounts), core::mem::transmute_copy(&rgrowstatus)).into() } - unsafe extern "system" fn RestartPosition(this: *mut core::ffi::c_void, hreserved: usize) -> windows_core::HRESULT - where - Identity: IRowset_Impl, - { + unsafe extern "system" fn RestartPosition(this: *mut core::ffi::c_void, hreserved: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowset_Impl::RestartPosition(this, core::mem::transmute_copy(&hreserved)).into() } @@ -3913,27 +2947,18 @@ impl IRowset_Vtbl { iid == &::IID } } -pub trait IRowsetAsynch_Impl: Sized { +pub trait IRowsetAsynch_Impl: Sized + windows_core::IUnknownImpl { fn RatioFinished(&self, puldenominator: *mut usize, pulnumerator: *mut usize, pcrows: *mut usize, pfnewrows: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetAsynch {} impl IRowsetAsynch_Vtbl { - pub const fn new() -> IRowsetAsynch_Vtbl - where - Identity: IRowsetAsynch_Impl, - { - unsafe extern "system" fn RatioFinished(this: *mut core::ffi::c_void, puldenominator: *mut usize, pulnumerator: *mut usize, pcrows: *mut usize, pfnewrows: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRowsetAsynch_Impl, - { + pub const fn new() -> IRowsetAsynch_Vtbl { + unsafe extern "system" fn RatioFinished(this: *mut core::ffi::c_void, puldenominator: *mut usize, pulnumerator: *mut usize, pcrows: *mut usize, pfnewrows: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetAsynch_Impl::RatioFinished(this, core::mem::transmute_copy(&puldenominator), core::mem::transmute_copy(&pulnumerator), core::mem::transmute_copy(&pcrows), core::mem::transmute_copy(&pfnewrows)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetAsynch_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetAsynch_Impl::Stop(this).into() } @@ -3943,19 +2968,13 @@ impl IRowsetAsynch_Vtbl { iid == &::IID } } -pub trait IRowsetBookmark_Impl: Sized { +pub trait IRowsetBookmark_Impl: Sized + windows_core::IUnknownImpl { fn PositionOnBookmark(&self, hchapter: usize, cbbookmark: usize, pbookmark: *const u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetBookmark {} impl IRowsetBookmark_Vtbl { - pub const fn new() -> IRowsetBookmark_Vtbl - where - Identity: IRowsetBookmark_Impl, - { - unsafe extern "system" fn PositionOnBookmark(this: *mut core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8) -> windows_core::HRESULT - where - Identity: IRowsetBookmark_Impl, - { + pub const fn new() -> IRowsetBookmark_Vtbl { + unsafe extern "system" fn PositionOnBookmark(this: *mut core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetBookmark_Impl::PositionOnBookmark(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&cbbookmark), core::mem::transmute_copy(&pbookmark)).into() } @@ -3965,35 +2984,23 @@ impl IRowsetBookmark_Vtbl { iid == &::IID } } -pub trait IRowsetChange_Impl: Sized { +pub trait IRowsetChange_Impl: Sized + windows_core::IUnknownImpl { fn DeleteRows(&self, hreserved: usize, crows: usize, rghrows: *const usize, rgrowstatus: *mut u32) -> windows_core::Result<()>; fn SetData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *const core::ffi::c_void) -> windows_core::Result<()>; fn InsertRow(&self, hreserved: usize, haccessor: HACCESSOR, pdata: *const core::ffi::c_void) -> windows_core::Result; } impl windows_core::RuntimeName for IRowsetChange {} impl IRowsetChange_Vtbl { - pub const fn new() -> IRowsetChange_Vtbl - where - Identity: IRowsetChange_Impl, - { - unsafe extern "system" fn DeleteRows(this: *mut core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, rgrowstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetChange_Impl, - { + pub const fn new() -> IRowsetChange_Vtbl { + unsafe extern "system" fn DeleteRows(this: *mut core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, rgrowstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetChange_Impl::DeleteRows(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&rgrowstatus)).into() } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetChange_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetChange_Impl::SetData(this, core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn InsertRow(this: *mut core::ffi::c_void, hreserved: usize, haccessor: HACCESSOR, pdata: *const core::ffi::c_void, phrow: *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetChange_Impl, - { + unsafe extern "system" fn InsertRow(this: *mut core::ffi::c_void, hreserved: usize, haccessor: HACCESSOR, pdata: *const core::ffi::c_void, phrow: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetChange_Impl::InsertRow(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pdata)) { Ok(ok__) => { @@ -4014,27 +3021,18 @@ impl IRowsetChange_Vtbl { iid == &::IID } } -pub trait IRowsetChangeExtInfo_Impl: Sized { +pub trait IRowsetChangeExtInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetOriginalRow(&self, hreserved: usize, hrow: usize, phroworiginal: *mut usize) -> windows_core::Result<()>; fn GetPendingColumns(&self, hreserved: usize, hrow: usize, ccolumnordinals: u32, rgiordinals: *const u32, rgcolumnstatus: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetChangeExtInfo {} impl IRowsetChangeExtInfo_Vtbl { - pub const fn new() -> IRowsetChangeExtInfo_Vtbl - where - Identity: IRowsetChangeExtInfo_Impl, - { - unsafe extern "system" fn GetOriginalRow(this: *mut core::ffi::c_void, hreserved: usize, hrow: usize, phroworiginal: *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetChangeExtInfo_Impl, - { + pub const fn new() -> IRowsetChangeExtInfo_Vtbl { + unsafe extern "system" fn GetOriginalRow(this: *mut core::ffi::c_void, hreserved: usize, hrow: usize, phroworiginal: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetChangeExtInfo_Impl::GetOriginalRow(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&phroworiginal)).into() } - unsafe extern "system" fn GetPendingColumns(this: *mut core::ffi::c_void, hreserved: usize, hrow: usize, ccolumnordinals: u32, rgiordinals: *const u32, rgcolumnstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetChangeExtInfo_Impl, - { + unsafe extern "system" fn GetPendingColumns(this: *mut core::ffi::c_void, hreserved: usize, hrow: usize, ccolumnordinals: u32, rgiordinals: *const u32, rgcolumnstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetChangeExtInfo_Impl::GetPendingColumns(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&ccolumnordinals), core::mem::transmute_copy(&rgiordinals), core::mem::transmute_copy(&rgcolumnstatus)).into() } @@ -4048,19 +3046,13 @@ impl IRowsetChangeExtInfo_Vtbl { iid == &::IID } } -pub trait IRowsetChapterMember_Impl: Sized { +pub trait IRowsetChapterMember_Impl: Sized + windows_core::IUnknownImpl { fn IsRowInChapter(&self, hchapter: usize, hrow: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetChapterMember {} impl IRowsetChapterMember_Vtbl { - pub const fn new() -> IRowsetChapterMember_Vtbl - where - Identity: IRowsetChapterMember_Impl, - { - unsafe extern "system" fn IsRowInChapter(this: *mut core::ffi::c_void, hchapter: usize, hrow: usize) -> windows_core::HRESULT - where - Identity: IRowsetChapterMember_Impl, - { + pub const fn new() -> IRowsetChapterMember_Vtbl { + unsafe extern "system" fn IsRowInChapter(this: *mut core::ffi::c_void, hchapter: usize, hrow: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetChapterMember_Impl::IsRowInChapter(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&hrow)).into() } @@ -4070,7 +3062,7 @@ impl IRowsetChapterMember_Vtbl { iid == &::IID } } -pub trait IRowsetCopyRows_Impl: Sized { +pub trait IRowsetCopyRows_Impl: Sized + windows_core::IUnknownImpl { fn CloseSource(&self, hsourceid: u16) -> windows_core::Result<()>; fn CopyByHROWS(&self, hsourceid: u16, hreserved: usize, crows: isize, rghrows: *const usize, bflags: u32) -> windows_core::Result<()>; fn CopyRows(&self, hsourceid: u16, hreserved: usize, crows: isize, bflags: u32) -> windows_core::Result; @@ -4078,28 +3070,16 @@ pub trait IRowsetCopyRows_Impl: Sized { } impl windows_core::RuntimeName for IRowsetCopyRows {} impl IRowsetCopyRows_Vtbl { - pub const fn new() -> IRowsetCopyRows_Vtbl - where - Identity: IRowsetCopyRows_Impl, - { - unsafe extern "system" fn CloseSource(this: *mut core::ffi::c_void, hsourceid: u16) -> windows_core::HRESULT - where - Identity: IRowsetCopyRows_Impl, - { + pub const fn new() -> IRowsetCopyRows_Vtbl { + unsafe extern "system" fn CloseSource(this: *mut core::ffi::c_void, hsourceid: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetCopyRows_Impl::CloseSource(this, core::mem::transmute_copy(&hsourceid)).into() } - unsafe extern "system" fn CopyByHROWS(this: *mut core::ffi::c_void, hsourceid: u16, hreserved: usize, crows: isize, rghrows: *const usize, bflags: u32) -> windows_core::HRESULT - where - Identity: IRowsetCopyRows_Impl, - { + unsafe extern "system" fn CopyByHROWS(this: *mut core::ffi::c_void, hsourceid: u16, hreserved: usize, crows: isize, rghrows: *const usize, bflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetCopyRows_Impl::CopyByHROWS(this, core::mem::transmute_copy(&hsourceid), core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&bflags)).into() } - unsafe extern "system" fn CopyRows(this: *mut core::ffi::c_void, hsourceid: u16, hreserved: usize, crows: isize, bflags: u32, pcrowscopied: *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetCopyRows_Impl, - { + unsafe extern "system" fn CopyRows(this: *mut core::ffi::c_void, hsourceid: u16, hreserved: usize, crows: isize, bflags: u32, pcrowscopied: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetCopyRows_Impl::CopyRows(this, core::mem::transmute_copy(&hsourceid), core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&bflags)) { Ok(ok__) => { @@ -4109,10 +3089,7 @@ impl IRowsetCopyRows_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefineSource(this: *mut core::ffi::c_void, prowsetsource: *mut core::ffi::c_void, ccolids: usize, rgsourcecolumns: *const isize, rgtargetcolumns: *const isize, phsourceid: *mut u16) -> windows_core::HRESULT - where - Identity: IRowsetCopyRows_Impl, - { + unsafe extern "system" fn DefineSource(this: *mut core::ffi::c_void, prowsetsource: *mut core::ffi::c_void, ccolids: usize, rgsourcecolumns: *const isize, rgtargetcolumns: *const isize, phsourceid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetCopyRows_Impl::DefineSource(this, windows_core::from_raw_borrowed(&prowsetsource), core::mem::transmute_copy(&ccolids), core::mem::transmute_copy(&rgsourcecolumns), core::mem::transmute_copy(&rgtargetcolumns)) { Ok(ok__) => { @@ -4143,14 +3120,8 @@ pub trait IRowsetCurrentIndex_Impl: Sized + IRowsetIndex_Impl { impl windows_core::RuntimeName for IRowsetCurrentIndex {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IRowsetCurrentIndex_Vtbl { - pub const fn new() -> IRowsetCurrentIndex_Vtbl - where - Identity: IRowsetCurrentIndex_Impl, - { - unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, ppindexid: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: IRowsetCurrentIndex_Impl, - { + pub const fn new() -> IRowsetCurrentIndex_Vtbl { + unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, ppindexid: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetCurrentIndex_Impl::GetIndex(this) { Ok(ok__) => { @@ -4160,10 +3131,7 @@ impl IRowsetCurrentIndex_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIndex(this: *mut core::ffi::c_void, pindexid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: IRowsetCurrentIndex_Impl, - { + unsafe extern "system" fn SetIndex(this: *mut core::ffi::c_void, pindexid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetCurrentIndex_Impl::SetIndex(this, core::mem::transmute_copy(&pindexid)).into() } @@ -4173,7 +3141,7 @@ impl IRowsetCurrentIndex_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRowsetEvents_Impl: Sized { +pub trait IRowsetEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnNewItem(&self, itemid: *const windows_core::PROPVARIANT, newitemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::Result<()>; fn OnChangedItem(&self, itemid: *const windows_core::PROPVARIANT, rowsetitemstate: ROWSETEVENT_ITEMSTATE, changeditemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::Result<()>; fn OnDeletedItem(&self, itemid: *const windows_core::PROPVARIANT, deleteditemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::Result<()>; @@ -4181,35 +3149,20 @@ pub trait IRowsetEvents_Impl: Sized { } impl windows_core::RuntimeName for IRowsetEvents {} impl IRowsetEvents_Vtbl { - pub const fn new() -> IRowsetEvents_Vtbl - where - Identity: IRowsetEvents_Impl, - { - unsafe extern "system" fn OnNewItem(this: *mut core::ffi::c_void, itemid: *const core::mem::MaybeUninit, newitemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::HRESULT - where - Identity: IRowsetEvents_Impl, - { + pub const fn new() -> IRowsetEvents_Vtbl { + unsafe extern "system" fn OnNewItem(this: *mut core::ffi::c_void, itemid: *const core::mem::MaybeUninit, newitemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetEvents_Impl::OnNewItem(this, core::mem::transmute_copy(&itemid), core::mem::transmute_copy(&newitemstate)).into() } - unsafe extern "system" fn OnChangedItem(this: *mut core::ffi::c_void, itemid: *const core::mem::MaybeUninit, rowsetitemstate: ROWSETEVENT_ITEMSTATE, changeditemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::HRESULT - where - Identity: IRowsetEvents_Impl, - { + unsafe extern "system" fn OnChangedItem(this: *mut core::ffi::c_void, itemid: *const core::mem::MaybeUninit, rowsetitemstate: ROWSETEVENT_ITEMSTATE, changeditemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetEvents_Impl::OnChangedItem(this, core::mem::transmute_copy(&itemid), core::mem::transmute_copy(&rowsetitemstate), core::mem::transmute_copy(&changeditemstate)).into() } - unsafe extern "system" fn OnDeletedItem(this: *mut core::ffi::c_void, itemid: *const core::mem::MaybeUninit, deleteditemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::HRESULT - where - Identity: IRowsetEvents_Impl, - { + unsafe extern "system" fn OnDeletedItem(this: *mut core::ffi::c_void, itemid: *const core::mem::MaybeUninit, deleteditemstate: ROWSETEVENT_ITEMSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetEvents_Impl::OnDeletedItem(this, core::mem::transmute_copy(&itemid), core::mem::transmute_copy(&deleteditemstate)).into() } - unsafe extern "system" fn OnRowsetEvent(this: *mut core::ffi::c_void, eventtype: ROWSETEVENT_TYPE, eventdata: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRowsetEvents_Impl, - { + unsafe extern "system" fn OnRowsetEvent(this: *mut core::ffi::c_void, eventtype: ROWSETEVENT_TYPE, eventdata: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetEvents_Impl::OnRowsetEvent(this, core::mem::transmute_copy(&eventtype), core::mem::transmute_copy(&eventdata)).into() } @@ -4230,14 +3183,8 @@ pub trait IRowsetExactScroll_Impl: Sized + IRowsetScroll_Impl { } impl windows_core::RuntimeName for IRowsetExactScroll {} impl IRowsetExactScroll_Vtbl { - pub const fn new() -> IRowsetExactScroll_Vtbl - where - Identity: IRowsetExactScroll_Impl, - { - unsafe extern "system" fn GetExactPosition(this: *mut core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, pulposition: *mut usize, pcrows: *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetExactScroll_Impl, - { + pub const fn new() -> IRowsetExactScroll_Vtbl { + unsafe extern "system" fn GetExactPosition(this: *mut core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, pulposition: *mut usize, pcrows: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetExactScroll_Impl::GetExactPosition(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&cbbookmark), core::mem::transmute_copy(&pbookmark), core::mem::transmute_copy(&pulposition), core::mem::transmute_copy(&pcrows)).into() } @@ -4247,27 +3194,18 @@ impl IRowsetExactScroll_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IRowsetFastLoad_Impl: Sized { +pub trait IRowsetFastLoad_Impl: Sized + windows_core::IUnknownImpl { fn InsertRow(&self, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; fn Commit(&self, fdone: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetFastLoad {} impl IRowsetFastLoad_Vtbl { - pub const fn new() -> IRowsetFastLoad_Vtbl - where - Identity: IRowsetFastLoad_Impl, - { - unsafe extern "system" fn InsertRow(this: *mut core::ffi::c_void, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetFastLoad_Impl, - { + pub const fn new() -> IRowsetFastLoad_Vtbl { + unsafe extern "system" fn InsertRow(this: *mut core::ffi::c_void, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetFastLoad_Impl::InsertRow(this, core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, fdone: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRowsetFastLoad_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, fdone: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetFastLoad_Impl::Commit(this, core::mem::transmute_copy(&fdone)).into() } @@ -4277,19 +3215,13 @@ impl IRowsetFastLoad_Vtbl { iid == &::IID } } -pub trait IRowsetFind_Impl: Sized { +pub trait IRowsetFind_Impl: Sized + windows_core::IUnknownImpl { fn FindNextRow(&self, hchapter: usize, haccessor: HACCESSOR, pfindvalue: *const core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetFind {} impl IRowsetFind_Vtbl { - pub const fn new() -> IRowsetFind_Vtbl - where - Identity: IRowsetFind_Impl, - { - unsafe extern "system" fn FindNextRow(this: *mut core::ffi::c_void, hchapter: usize, haccessor: HACCESSOR, pfindvalue: *const core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetFind_Impl, - { + pub const fn new() -> IRowsetFind_Vtbl { + unsafe extern "system" fn FindNextRow(this: *mut core::ffi::c_void, hchapter: usize, haccessor: HACCESSOR, pfindvalue: *const core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetFind_Impl::FindNextRow(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pfindvalue), core::mem::transmute_copy(&compareop), core::mem::transmute_copy(&cbbookmark), core::mem::transmute_copy(&pbookmark), core::mem::transmute_copy(&lrowsoffset), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&pcrowsobtained), core::mem::transmute_copy(&prghrows)).into() } @@ -4299,19 +3231,13 @@ impl IRowsetFind_Vtbl { iid == &::IID } } -pub trait IRowsetIdentity_Impl: Sized { +pub trait IRowsetIdentity_Impl: Sized + windows_core::IUnknownImpl { fn IsSameRow(&self, hthisrow: usize, hthatrow: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetIdentity {} impl IRowsetIdentity_Vtbl { - pub const fn new() -> IRowsetIdentity_Vtbl - where - Identity: IRowsetIdentity_Impl, - { - unsafe extern "system" fn IsSameRow(this: *mut core::ffi::c_void, hthisrow: usize, hthatrow: usize) -> windows_core::HRESULT - where - Identity: IRowsetIdentity_Impl, - { + pub const fn new() -> IRowsetIdentity_Vtbl { + unsafe extern "system" fn IsSameRow(this: *mut core::ffi::c_void, hthisrow: usize, hthatrow: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetIdentity_Impl::IsSameRow(this, core::mem::transmute_copy(&hthisrow), core::mem::transmute_copy(&hthatrow)).into() } @@ -4322,7 +3248,7 @@ impl IRowsetIdentity_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IRowsetIndex_Impl: Sized { +pub trait IRowsetIndex_Impl: Sized + windows_core::IUnknownImpl { fn GetIndexInfo(&self, pckeycolumns: *mut usize, prgindexcolumndesc: *mut *mut DBINDEXCOLUMNDESC, pcindexpropertysets: *mut u32, prgindexpropertysets: *mut *mut DBPROPSET) -> windows_core::Result<()>; fn Seek(&self, haccessor: HACCESSOR, ckeyvalues: usize, pdata: *const core::ffi::c_void, dwseekoptions: u32) -> windows_core::Result<()>; fn SetRange(&self, haccessor: HACCESSOR, cstartkeycolumns: usize, pstartdata: *const core::ffi::c_void, cendkeycolumns: usize, penddata: *const core::ffi::c_void, dwrangeoptions: u32) -> windows_core::Result<()>; @@ -4331,28 +3257,16 @@ pub trait IRowsetIndex_Impl: Sized { impl windows_core::RuntimeName for IRowsetIndex {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IRowsetIndex_Vtbl { - pub const fn new() -> IRowsetIndex_Vtbl - where - Identity: IRowsetIndex_Impl, - { - unsafe extern "system" fn GetIndexInfo(this: *mut core::ffi::c_void, pckeycolumns: *mut usize, prgindexcolumndesc: *mut *mut DBINDEXCOLUMNDESC, pcindexpropertysets: *mut u32, prgindexpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: IRowsetIndex_Impl, - { + pub const fn new() -> IRowsetIndex_Vtbl { + unsafe extern "system" fn GetIndexInfo(this: *mut core::ffi::c_void, pckeycolumns: *mut usize, prgindexcolumndesc: *mut *mut DBINDEXCOLUMNDESC, pcindexpropertysets: *mut u32, prgindexpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetIndex_Impl::GetIndexInfo(this, core::mem::transmute_copy(&pckeycolumns), core::mem::transmute_copy(&prgindexcolumndesc), core::mem::transmute_copy(&pcindexpropertysets), core::mem::transmute_copy(&prgindexpropertysets)).into() } - unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, haccessor: HACCESSOR, ckeyvalues: usize, pdata: *const core::ffi::c_void, dwseekoptions: u32) -> windows_core::HRESULT - where - Identity: IRowsetIndex_Impl, - { + unsafe extern "system" fn Seek(this: *mut core::ffi::c_void, haccessor: HACCESSOR, ckeyvalues: usize, pdata: *const core::ffi::c_void, dwseekoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetIndex_Impl::Seek(this, core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&ckeyvalues), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&dwseekoptions)).into() } - unsafe extern "system" fn SetRange(this: *mut core::ffi::c_void, haccessor: HACCESSOR, cstartkeycolumns: usize, pstartdata: *const core::ffi::c_void, cendkeycolumns: usize, penddata: *const core::ffi::c_void, dwrangeoptions: u32) -> windows_core::HRESULT - where - Identity: IRowsetIndex_Impl, - { + unsafe extern "system" fn SetRange(this: *mut core::ffi::c_void, haccessor: HACCESSOR, cstartkeycolumns: usize, pstartdata: *const core::ffi::c_void, cendkeycolumns: usize, penddata: *const core::ffi::c_void, dwrangeoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetIndex_Impl::SetRange(this, core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&cstartkeycolumns), core::mem::transmute_copy(&pstartdata), core::mem::transmute_copy(&cendkeycolumns), core::mem::transmute_copy(&penddata), core::mem::transmute_copy(&dwrangeoptions)).into() } @@ -4368,7 +3282,7 @@ impl IRowsetIndex_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IRowsetInfo_Impl: Sized { +pub trait IRowsetInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::Result<()>; fn GetReferencedRowset(&self, iordinal: usize, riid: *const windows_core::GUID) -> windows_core::Result; fn GetSpecification(&self, riid: *const windows_core::GUID) -> windows_core::Result; @@ -4377,21 +3291,12 @@ pub trait IRowsetInfo_Impl: Sized { impl windows_core::RuntimeName for IRowsetInfo {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IRowsetInfo_Vtbl { - pub const fn new() -> IRowsetInfo_Vtbl - where - Identity: IRowsetInfo_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: IRowsetInfo_Impl, - { + pub const fn new() -> IRowsetInfo_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetInfo_Impl::GetProperties(this, core::mem::transmute_copy(&cpropertyidsets), core::mem::transmute_copy(&rgpropertyidsets), core::mem::transmute_copy(&pcpropertysets), core::mem::transmute_copy(&prgpropertysets)).into() } - unsafe extern "system" fn GetReferencedRowset(this: *mut core::ffi::c_void, iordinal: usize, riid: *const windows_core::GUID, ppreferencedrowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetInfo_Impl, - { + unsafe extern "system" fn GetReferencedRowset(this: *mut core::ffi::c_void, iordinal: usize, riid: *const windows_core::GUID, ppreferencedrowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetInfo_Impl::GetReferencedRowset(this, core::mem::transmute_copy(&iordinal), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -4401,10 +3306,7 @@ impl IRowsetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSpecification(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppspecification: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetInfo_Impl, - { + unsafe extern "system" fn GetSpecification(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppspecification: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetInfo_Impl::GetSpecification(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -4425,19 +3327,13 @@ impl IRowsetInfo_Vtbl { iid == &::IID } } -pub trait IRowsetKeys_Impl: Sized { +pub trait IRowsetKeys_Impl: Sized + windows_core::IUnknownImpl { fn ListKeys(&self, pccolumns: *mut usize, prgcolumns: *mut *mut usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetKeys {} impl IRowsetKeys_Vtbl { - pub const fn new() -> IRowsetKeys_Vtbl - where - Identity: IRowsetKeys_Impl, - { - unsafe extern "system" fn ListKeys(this: *mut core::ffi::c_void, pccolumns: *mut usize, prgcolumns: *mut *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetKeys_Impl, - { + pub const fn new() -> IRowsetKeys_Vtbl { + unsafe extern "system" fn ListKeys(this: *mut core::ffi::c_void, pccolumns: *mut usize, prgcolumns: *mut *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetKeys_Impl::ListKeys(this, core::mem::transmute_copy(&pccolumns), core::mem::transmute_copy(&prgcolumns)).into() } @@ -4455,14 +3351,8 @@ pub trait IRowsetLocate_Impl: Sized + IRowset_Impl { } impl windows_core::RuntimeName for IRowsetLocate {} impl IRowsetLocate_Vtbl { - pub const fn new() -> IRowsetLocate_Vtbl - where - Identity: IRowsetLocate_Impl, - { - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, hreserved: usize, cbbookmark1: usize, pbookmark1: *const u8, cbbookmark2: usize, pbookmark2: *const u8, pcomparison: *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetLocate_Impl, - { + pub const fn new() -> IRowsetLocate_Vtbl { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, hreserved: usize, cbbookmark1: usize, pbookmark1: *const u8, cbbookmark2: usize, pbookmark2: *const u8, pcomparison: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetLocate_Impl::Compare(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&cbbookmark1), core::mem::transmute_copy(&pbookmark1), core::mem::transmute_copy(&cbbookmark2), core::mem::transmute_copy(&pbookmark2)) { Ok(ok__) => { @@ -4472,24 +3362,15 @@ impl IRowsetLocate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRowsAt(this: *mut core::ffi::c_void, hreserved1: usize, hreserved2: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetLocate_Impl, - { + unsafe extern "system" fn GetRowsAt(this: *mut core::ffi::c_void, hreserved1: usize, hreserved2: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetLocate_Impl::GetRowsAt(this, core::mem::transmute_copy(&hreserved1), core::mem::transmute_copy(&hreserved2), core::mem::transmute_copy(&cbbookmark), core::mem::transmute_copy(&pbookmark), core::mem::transmute_copy(&lrowsoffset), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&pcrowsobtained), core::mem::transmute_copy(&prghrows)).into() } - unsafe extern "system" fn GetRowsByBookmark(this: *mut core::ffi::c_void, hreserved: usize, crows: usize, rgcbbookmarks: *const usize, rgpbookmarks: *const *const u8, rghrows: *mut usize, rgrowstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetLocate_Impl, - { + unsafe extern "system" fn GetRowsByBookmark(this: *mut core::ffi::c_void, hreserved: usize, crows: usize, rgcbbookmarks: *const usize, rgpbookmarks: *const *const u8, rghrows: *mut usize, rgrowstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetLocate_Impl::GetRowsByBookmark(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rgcbbookmarks), core::mem::transmute_copy(&rgpbookmarks), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&rgrowstatus)).into() } - unsafe extern "system" fn Hash(this: *mut core::ffi::c_void, hreserved: usize, cbookmarks: usize, rgcbbookmarks: *const usize, rgpbookmarks: *const *const u8, rghashedvalues: *mut usize, rgbookmarkstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetLocate_Impl, - { + unsafe extern "system" fn Hash(this: *mut core::ffi::c_void, hreserved: usize, cbookmarks: usize, rgcbbookmarks: *const usize, rgpbookmarks: *const *const u8, rghashedvalues: *mut usize, rgbookmarkstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetLocate_Impl::Hash(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&cbookmarks), core::mem::transmute_copy(&rgcbbookmarks), core::mem::transmute_copy(&rgpbookmarks), core::mem::transmute_copy(&rghashedvalues), core::mem::transmute_copy(&rgbookmarkstatus)).into() } @@ -4505,19 +3386,13 @@ impl IRowsetLocate_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRowsetNewRowAfter_Impl: Sized { +pub trait IRowsetNewRowAfter_Impl: Sized + windows_core::IUnknownImpl { fn SetNewDataAfter(&self, hchapter: usize, cbbmprevious: u32, pbmprevious: *const u8, haccessor: HACCESSOR, pdata: *const u8) -> windows_core::Result; } impl windows_core::RuntimeName for IRowsetNewRowAfter {} impl IRowsetNewRowAfter_Vtbl { - pub const fn new() -> IRowsetNewRowAfter_Vtbl - where - Identity: IRowsetNewRowAfter_Impl, - { - unsafe extern "system" fn SetNewDataAfter(this: *mut core::ffi::c_void, hchapter: usize, cbbmprevious: u32, pbmprevious: *const u8, haccessor: HACCESSOR, pdata: *const u8, phrow: *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetNewRowAfter_Impl, - { + pub const fn new() -> IRowsetNewRowAfter_Vtbl { + unsafe extern "system" fn SetNewDataAfter(this: *mut core::ffi::c_void, hchapter: usize, cbbmprevious: u32, pbmprevious: *const u8, haccessor: HACCESSOR, pdata: *const u8, phrow: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetNewRowAfter_Impl::SetNewDataAfter(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&cbbmprevious), core::mem::transmute_copy(&pbmprevious), core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pdata)) { Ok(ok__) => { @@ -4533,19 +3408,13 @@ impl IRowsetNewRowAfter_Vtbl { iid == &::IID } } -pub trait IRowsetNextRowset_Impl: Sized { +pub trait IRowsetNextRowset_Impl: Sized + windows_core::IUnknownImpl { fn GetNextRowset(&self, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IRowsetNextRowset {} impl IRowsetNextRowset_Vtbl { - pub const fn new() -> IRowsetNextRowset_Vtbl - where - Identity: IRowsetNextRowset_Impl, - { - unsafe extern "system" fn GetNextRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppnextrowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetNextRowset_Impl, - { + pub const fn new() -> IRowsetNextRowset_Vtbl { + unsafe extern "system" fn GetNextRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppnextrowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetNextRowset_Impl::GetNextRowset(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -4561,35 +3430,23 @@ impl IRowsetNextRowset_Vtbl { iid == &::IID } } -pub trait IRowsetNotify_Impl: Sized { +pub trait IRowsetNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnFieldChange(&self, prowset: Option<&IRowset>, hrow: usize, ccolumns: usize, rgcolumns: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn OnRowChange(&self, prowset: Option<&IRowset>, crows: usize, rghrows: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn OnRowsetChange(&self, prowset: Option<&IRowset>, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetNotify {} impl IRowsetNotify_Vtbl { - pub const fn new() -> IRowsetNotify_Vtbl - where - Identity: IRowsetNotify_Impl, - { - unsafe extern "system" fn OnFieldChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, hrow: usize, ccolumns: usize, rgcolumns: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRowsetNotify_Impl, - { + pub const fn new() -> IRowsetNotify_Vtbl { + unsafe extern "system" fn OnFieldChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, hrow: usize, ccolumns: usize, rgcolumns: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetNotify_Impl::OnFieldChange(this, windows_core::from_raw_borrowed(&prowset), core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&ccolumns), core::mem::transmute_copy(&rgcolumns), core::mem::transmute_copy(&ereason), core::mem::transmute_copy(&ephase), core::mem::transmute_copy(&fcantdeny)).into() } - unsafe extern "system" fn OnRowChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, crows: usize, rghrows: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRowsetNotify_Impl, - { + unsafe extern "system" fn OnRowChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, crows: usize, rghrows: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetNotify_Impl::OnRowChange(this, windows_core::from_raw_borrowed(&prowset), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&ereason), core::mem::transmute_copy(&ephase), core::mem::transmute_copy(&fcantdeny)).into() } - unsafe extern "system" fn OnRowsetChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRowsetNotify_Impl, - { + unsafe extern "system" fn OnRowsetChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetNotify_Impl::OnRowsetChange(this, windows_core::from_raw_borrowed(&prowset), core::mem::transmute_copy(&ereason), core::mem::transmute_copy(&ephase), core::mem::transmute_copy(&fcantdeny)).into() } @@ -4604,35 +3461,23 @@ impl IRowsetNotify_Vtbl { iid == &::IID } } -pub trait IRowsetPrioritization_Impl: Sized { +pub trait IRowsetPrioritization_Impl: Sized + windows_core::IUnknownImpl { fn SetScopePriority(&self, priority: PRIORITY_LEVEL, scopestatisticseventfrequency: u32) -> windows_core::Result<()>; fn GetScopePriority(&self, priority: *mut PRIORITY_LEVEL, scopestatisticseventfrequency: *mut u32) -> windows_core::Result<()>; fn GetScopeStatistics(&self, indexeddocumentcount: *mut u32, oustandingaddcount: *mut u32, oustandingmodifycount: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetPrioritization {} impl IRowsetPrioritization_Vtbl { - pub const fn new() -> IRowsetPrioritization_Vtbl - where - Identity: IRowsetPrioritization_Impl, - { - unsafe extern "system" fn SetScopePriority(this: *mut core::ffi::c_void, priority: PRIORITY_LEVEL, scopestatisticseventfrequency: u32) -> windows_core::HRESULT - where - Identity: IRowsetPrioritization_Impl, - { + pub const fn new() -> IRowsetPrioritization_Vtbl { + unsafe extern "system" fn SetScopePriority(this: *mut core::ffi::c_void, priority: PRIORITY_LEVEL, scopestatisticseventfrequency: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetPrioritization_Impl::SetScopePriority(this, core::mem::transmute_copy(&priority), core::mem::transmute_copy(&scopestatisticseventfrequency)).into() } - unsafe extern "system" fn GetScopePriority(this: *mut core::ffi::c_void, priority: *mut PRIORITY_LEVEL, scopestatisticseventfrequency: *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetPrioritization_Impl, - { + unsafe extern "system" fn GetScopePriority(this: *mut core::ffi::c_void, priority: *mut PRIORITY_LEVEL, scopestatisticseventfrequency: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetPrioritization_Impl::GetScopePriority(this, core::mem::transmute_copy(&priority), core::mem::transmute_copy(&scopestatisticseventfrequency)).into() } - unsafe extern "system" fn GetScopeStatistics(this: *mut core::ffi::c_void, indexeddocumentcount: *mut u32, oustandingaddcount: *mut u32, oustandingmodifycount: *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetPrioritization_Impl, - { + unsafe extern "system" fn GetScopeStatistics(this: *mut core::ffi::c_void, indexeddocumentcount: *mut u32, oustandingaddcount: *mut u32, oustandingmodifycount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetPrioritization_Impl::GetScopeStatistics(this, core::mem::transmute_copy(&indexeddocumentcount), core::mem::transmute_copy(&oustandingaddcount), core::mem::transmute_copy(&oustandingmodifycount)).into() } @@ -4647,27 +3492,18 @@ impl IRowsetPrioritization_Vtbl { iid == &::IID } } -pub trait IRowsetQueryStatus_Impl: Sized { +pub trait IRowsetQueryStatus_Impl: Sized + windows_core::IUnknownImpl { fn GetStatus(&self, pdwstatus: *mut u32) -> windows_core::Result<()>; fn GetStatusEx(&self, pdwstatus: *mut u32, pcfiltereddocuments: *mut u32, pcdocumentstofilter: *mut u32, pdwratiofinisheddenominator: *mut usize, pdwratiofinishednumerator: *mut usize, cbbmk: usize, pbmk: *const u8, pirowbmk: *mut usize, pcrowstotal: *mut usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetQueryStatus {} impl IRowsetQueryStatus_Vtbl { - pub const fn new() -> IRowsetQueryStatus_Vtbl - where - Identity: IRowsetQueryStatus_Impl, - { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetQueryStatus_Impl, - { + pub const fn new() -> IRowsetQueryStatus_Vtbl { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetQueryStatus_Impl::GetStatus(this, core::mem::transmute_copy(&pdwstatus)).into() } - unsafe extern "system" fn GetStatusEx(this: *mut core::ffi::c_void, pdwstatus: *mut u32, pcfiltereddocuments: *mut u32, pcdocumentstofilter: *mut u32, pdwratiofinisheddenominator: *mut usize, pdwratiofinishednumerator: *mut usize, cbbmk: usize, pbmk: *const u8, pirowbmk: *mut usize, pcrowstotal: *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetQueryStatus_Impl, - { + unsafe extern "system" fn GetStatusEx(this: *mut core::ffi::c_void, pdwstatus: *mut u32, pcfiltereddocuments: *mut u32, pcdocumentstofilter: *mut u32, pdwratiofinisheddenominator: *mut usize, pdwratiofinishednumerator: *mut usize, cbbmk: usize, pbmk: *const u8, pirowbmk: *mut usize, pcrowstotal: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetQueryStatus_Impl::GetStatusEx(this, core::mem::transmute_copy(&pdwstatus), core::mem::transmute_copy(&pcfiltereddocuments), core::mem::transmute_copy(&pcdocumentstofilter), core::mem::transmute_copy(&pdwratiofinisheddenominator), core::mem::transmute_copy(&pdwratiofinishednumerator), core::mem::transmute_copy(&cbbmk), core::mem::transmute_copy(&pbmk), core::mem::transmute_copy(&pirowbmk), core::mem::transmute_copy(&pcrowstotal)).into() } @@ -4681,27 +3517,18 @@ impl IRowsetQueryStatus_Vtbl { iid == &::IID } } -pub trait IRowsetRefresh_Impl: Sized { +pub trait IRowsetRefresh_Impl: Sized + windows_core::IUnknownImpl { fn RefreshVisibleData(&self, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: super::super::Foundation::BOOL, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::Result<()>; fn GetLastVisibleData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetRefresh {} impl IRowsetRefresh_Vtbl { - pub const fn new() -> IRowsetRefresh_Vtbl - where - Identity: IRowsetRefresh_Impl, - { - unsafe extern "system" fn RefreshVisibleData(this: *mut core::ffi::c_void, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: super::super::Foundation::BOOL, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetRefresh_Impl, - { + pub const fn new() -> IRowsetRefresh_Vtbl { + unsafe extern "system" fn RefreshVisibleData(this: *mut core::ffi::c_void, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: super::super::Foundation::BOOL, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetRefresh_Impl::RefreshVisibleData(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&foverwrite), core::mem::transmute_copy(&pcrowsrefreshed), core::mem::transmute_copy(&prghrowsrefreshed), core::mem::transmute_copy(&prgrowstatus)).into() } - unsafe extern "system" fn GetLastVisibleData(this: *mut core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetRefresh_Impl, - { + unsafe extern "system" fn GetLastVisibleData(this: *mut core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetRefresh_Impl::GetLastVisibleData(this, core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pdata)).into() } @@ -4715,27 +3542,18 @@ impl IRowsetRefresh_Vtbl { iid == &::IID } } -pub trait IRowsetResynch_Impl: Sized { +pub trait IRowsetResynch_Impl: Sized + windows_core::IUnknownImpl { fn GetVisibleData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; fn ResynchRows(&self, crows: usize, rghrows: *const usize, pcrowsresynched: *mut usize, prghrowsresynched: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetResynch {} impl IRowsetResynch_Vtbl { - pub const fn new() -> IRowsetResynch_Vtbl - where - Identity: IRowsetResynch_Impl, - { - unsafe extern "system" fn GetVisibleData(this: *mut core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetResynch_Impl, - { + pub const fn new() -> IRowsetResynch_Vtbl { + unsafe extern "system" fn GetVisibleData(this: *mut core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetResynch_Impl::GetVisibleData(this, core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn ResynchRows(this: *mut core::ffi::c_void, crows: usize, rghrows: *const usize, pcrowsresynched: *mut usize, prghrowsresynched: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetResynch_Impl, - { + unsafe extern "system" fn ResynchRows(this: *mut core::ffi::c_void, crows: usize, rghrows: *const usize, pcrowsresynched: *mut usize, prghrowsresynched: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetResynch_Impl::ResynchRows(this, core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&pcrowsresynched), core::mem::transmute_copy(&prghrowsresynched), core::mem::transmute_copy(&prgrowstatus)).into() } @@ -4755,21 +3573,12 @@ pub trait IRowsetScroll_Impl: Sized + IRowsetLocate_Impl { } impl windows_core::RuntimeName for IRowsetScroll {} impl IRowsetScroll_Vtbl { - pub const fn new() -> IRowsetScroll_Vtbl - where - Identity: IRowsetScroll_Impl, - { - unsafe extern "system" fn GetApproximatePosition(this: *mut core::ffi::c_void, hreserved: usize, cbbookmark: usize, pbookmark: *const u8, pulposition: *mut usize, pcrows: *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetScroll_Impl, - { + pub const fn new() -> IRowsetScroll_Vtbl { + unsafe extern "system" fn GetApproximatePosition(this: *mut core::ffi::c_void, hreserved: usize, cbbookmark: usize, pbookmark: *const u8, pulposition: *mut usize, pcrows: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetScroll_Impl::GetApproximatePosition(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&cbbookmark), core::mem::transmute_copy(&pbookmark), core::mem::transmute_copy(&pulposition), core::mem::transmute_copy(&pcrows)).into() } - unsafe extern "system" fn GetRowsAtRatio(this: *mut core::ffi::c_void, hreserved1: usize, hreserved2: usize, ulnumerator: usize, uldenominator: usize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetScroll_Impl, - { + unsafe extern "system" fn GetRowsAtRatio(this: *mut core::ffi::c_void, hreserved1: usize, hreserved2: usize, ulnumerator: usize, uldenominator: usize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetScroll_Impl::GetRowsAtRatio(this, core::mem::transmute_copy(&hreserved1), core::mem::transmute_copy(&hreserved2), core::mem::transmute_copy(&ulnumerator), core::mem::transmute_copy(&uldenominator), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&pcrowsobtained), core::mem::transmute_copy(&prghrows)).into() } @@ -4792,42 +3601,24 @@ pub trait IRowsetUpdate_Impl: Sized + IRowsetChange_Impl { } impl windows_core::RuntimeName for IRowsetUpdate {} impl IRowsetUpdate_Vtbl { - pub const fn new() -> IRowsetUpdate_Vtbl - where - Identity: IRowsetUpdate_Impl, - { - unsafe extern "system" fn GetOriginalData(this: *mut core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetUpdate_Impl, - { + pub const fn new() -> IRowsetUpdate_Vtbl { + unsafe extern "system" fn GetOriginalData(this: *mut core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetUpdate_Impl::GetOriginalData(this, core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn GetPendingRows(this: *mut core::ffi::c_void, hreserved: usize, dwrowstatus: u32, pcpendingrows: *mut usize, prgpendingrows: *mut *mut usize, prgpendingstatus: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetUpdate_Impl, - { + unsafe extern "system" fn GetPendingRows(this: *mut core::ffi::c_void, hreserved: usize, dwrowstatus: u32, pcpendingrows: *mut usize, prgpendingrows: *mut *mut usize, prgpendingstatus: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetUpdate_Impl::GetPendingRows(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&dwrowstatus), core::mem::transmute_copy(&pcpendingrows), core::mem::transmute_copy(&prgpendingrows), core::mem::transmute_copy(&prgpendingstatus)).into() } - unsafe extern "system" fn GetRowStatus(this: *mut core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, rgpendingstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetUpdate_Impl, - { + unsafe extern "system" fn GetRowStatus(this: *mut core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, rgpendingstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetUpdate_Impl::GetRowStatus(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&rgpendingstatus)).into() } - unsafe extern "system" fn Undo(this: *mut core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, pcrowsundone: *mut usize, prgrowsundone: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetUpdate_Impl, - { + unsafe extern "system" fn Undo(this: *mut core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, pcrowsundone: *mut usize, prgrowsundone: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetUpdate_Impl::Undo(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&pcrowsundone), core::mem::transmute_copy(&prgrowsundone), core::mem::transmute_copy(&prgrowstatus)).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, pcrows: *mut usize, prgrows: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IRowsetUpdate_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, pcrows: *mut usize, prgrows: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetUpdate_Impl::Update(this, core::mem::transmute_copy(&hreserved), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&pcrows), core::mem::transmute_copy(&prgrows), core::mem::transmute_copy(&prgrowstatus)).into() } @@ -4844,20 +3635,14 @@ impl IRowsetUpdate_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IRowsetView_Impl: Sized { +pub trait IRowsetView_Impl: Sized + windows_core::IUnknownImpl { fn CreateView(&self, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID) -> windows_core::Result; fn GetView(&self, hchapter: usize, riid: *const windows_core::GUID, phchaptersource: *mut usize, ppview: *mut Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetView {} impl IRowsetView_Vtbl { - pub const fn new() -> IRowsetView_Vtbl - where - Identity: IRowsetView_Impl, - { - unsafe extern "system" fn CreateView(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetView_Impl, - { + pub const fn new() -> IRowsetView_Vtbl { + unsafe extern "system" fn CreateView(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetView_Impl::CreateView(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -4867,10 +3652,7 @@ impl IRowsetView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetView(this: *mut core::ffi::c_void, hchapter: usize, riid: *const windows_core::GUID, phchaptersource: *mut usize, ppview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetView_Impl, - { + unsafe extern "system" fn GetView(this: *mut core::ffi::c_void, hchapter: usize, riid: *const windows_core::GUID, phchaptersource: *mut usize, ppview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetView_Impl::GetView(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&phchaptersource), core::mem::transmute_copy(&ppview)).into() } @@ -4880,35 +3662,23 @@ impl IRowsetView_Vtbl { iid == &::IID } } -pub trait IRowsetWatchAll_Impl: Sized { +pub trait IRowsetWatchAll_Impl: Sized + windows_core::IUnknownImpl { fn Acknowledge(&self) -> windows_core::Result<()>; fn Start(&self) -> windows_core::Result<()>; fn StopWatching(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetWatchAll {} impl IRowsetWatchAll_Vtbl { - pub const fn new() -> IRowsetWatchAll_Vtbl - where - Identity: IRowsetWatchAll_Impl, - { - unsafe extern "system" fn Acknowledge(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetWatchAll_Impl, - { + pub const fn new() -> IRowsetWatchAll_Vtbl { + unsafe extern "system" fn Acknowledge(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWatchAll_Impl::Acknowledge(this).into() } - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetWatchAll_Impl, - { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWatchAll_Impl::Start(this).into() } - unsafe extern "system" fn StopWatching(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRowsetWatchAll_Impl, - { + unsafe extern "system" fn StopWatching(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWatchAll_Impl::StopWatching(this).into() } @@ -4923,19 +3693,13 @@ impl IRowsetWatchAll_Vtbl { iid == &::IID } } -pub trait IRowsetWatchNotify_Impl: Sized { +pub trait IRowsetWatchNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnChange(&self, prowset: Option<&IRowset>, echangereason: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRowsetWatchNotify {} impl IRowsetWatchNotify_Vtbl { - pub const fn new() -> IRowsetWatchNotify_Vtbl - where - Identity: IRowsetWatchNotify_Impl, - { - unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, echangereason: u32) -> windows_core::HRESULT - where - Identity: IRowsetWatchNotify_Impl, - { + pub const fn new() -> IRowsetWatchNotify_Vtbl { + unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, echangereason: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWatchNotify_Impl::OnChange(this, windows_core::from_raw_borrowed(&prowset), core::mem::transmute_copy(&echangereason)).into() } @@ -4955,14 +3719,8 @@ pub trait IRowsetWatchRegion_Impl: Sized + IRowsetWatchAll_Impl { } impl windows_core::RuntimeName for IRowsetWatchRegion {} impl IRowsetWatchRegion_Vtbl { - pub const fn new() -> IRowsetWatchRegion_Vtbl - where - Identity: IRowsetWatchRegion_Impl, - { - unsafe extern "system" fn CreateWatchRegion(this: *mut core::ffi::c_void, dwwatchmode: u32, phregion: *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetWatchRegion_Impl, - { + pub const fn new() -> IRowsetWatchRegion_Vtbl { + unsafe extern "system" fn CreateWatchRegion(this: *mut core::ffi::c_void, dwwatchmode: u32, phregion: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRowsetWatchRegion_Impl::CreateWatchRegion(this, core::mem::transmute_copy(&dwwatchmode)) { Ok(ok__) => { @@ -4972,38 +3730,23 @@ impl IRowsetWatchRegion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChangeWatchMode(this: *mut core::ffi::c_void, hregion: usize, dwwatchmode: u32) -> windows_core::HRESULT - where - Identity: IRowsetWatchRegion_Impl, - { + unsafe extern "system" fn ChangeWatchMode(this: *mut core::ffi::c_void, hregion: usize, dwwatchmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWatchRegion_Impl::ChangeWatchMode(this, core::mem::transmute_copy(&hregion), core::mem::transmute_copy(&dwwatchmode)).into() } - unsafe extern "system" fn DeleteWatchRegion(this: *mut core::ffi::c_void, hregion: usize) -> windows_core::HRESULT - where - Identity: IRowsetWatchRegion_Impl, - { + unsafe extern "system" fn DeleteWatchRegion(this: *mut core::ffi::c_void, hregion: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWatchRegion_Impl::DeleteWatchRegion(this, core::mem::transmute_copy(&hregion)).into() } - unsafe extern "system" fn GetWatchRegionInfo(this: *mut core::ffi::c_void, hregion: usize, pdwwatchmode: *mut u32, phchapter: *mut usize, pcbbookmark: *mut usize, ppbookmark: *mut *mut u8, pcrows: *mut isize) -> windows_core::HRESULT - where - Identity: IRowsetWatchRegion_Impl, - { + unsafe extern "system" fn GetWatchRegionInfo(this: *mut core::ffi::c_void, hregion: usize, pdwwatchmode: *mut u32, phchapter: *mut usize, pcbbookmark: *mut usize, ppbookmark: *mut *mut u8, pcrows: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWatchRegion_Impl::GetWatchRegionInfo(this, core::mem::transmute_copy(&hregion), core::mem::transmute_copy(&pdwwatchmode), core::mem::transmute_copy(&phchapter), core::mem::transmute_copy(&pcbbookmark), core::mem::transmute_copy(&ppbookmark), core::mem::transmute_copy(&pcrows)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void, pcchangesobtained: *mut usize, prgchanges: *mut *mut DBROWWATCHCHANGE) -> windows_core::HRESULT - where - Identity: IRowsetWatchRegion_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void, pcchangesobtained: *mut usize, prgchanges: *mut *mut DBROWWATCHCHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWatchRegion_Impl::Refresh(this, core::mem::transmute_copy(&pcchangesobtained), core::mem::transmute_copy(&prgchanges)).into() } - unsafe extern "system" fn ShrinkWatchRegion(this: *mut core::ffi::c_void, hregion: usize, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, crows: isize) -> windows_core::HRESULT - where - Identity: IRowsetWatchRegion_Impl, - { + unsafe extern "system" fn ShrinkWatchRegion(this: *mut core::ffi::c_void, hregion: usize, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, crows: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWatchRegion_Impl::ShrinkWatchRegion(this, core::mem::transmute_copy(&hregion), core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&cbbookmark), core::mem::transmute_copy(&pbookmark), core::mem::transmute_copy(&crows)).into() } @@ -5022,7 +3765,7 @@ impl IRowsetWatchRegion_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRowsetWithParameters_Impl: Sized { +pub trait IRowsetWithParameters_Impl: Sized + windows_core::IUnknownImpl { fn GetParameterInfo(&self, pcparams: *mut usize, prgparaminfo: *mut *mut DBPARAMINFO, ppnamesbuffer: *mut *mut u16) -> windows_core::Result<()>; fn Requery(&self, pparams: *const DBPARAMS, pulerrorparam: *mut u32, phreserved: *mut usize) -> windows_core::Result<()>; } @@ -5030,21 +3773,12 @@ pub trait IRowsetWithParameters_Impl: Sized { impl windows_core::RuntimeName for IRowsetWithParameters {} #[cfg(feature = "Win32_System_Com")] impl IRowsetWithParameters_Vtbl { - pub const fn new() -> IRowsetWithParameters_Vtbl - where - Identity: IRowsetWithParameters_Impl, - { - unsafe extern "system" fn GetParameterInfo(this: *mut core::ffi::c_void, pcparams: *mut usize, prgparaminfo: *mut *mut DBPARAMINFO, ppnamesbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IRowsetWithParameters_Impl, - { + pub const fn new() -> IRowsetWithParameters_Vtbl { + unsafe extern "system" fn GetParameterInfo(this: *mut core::ffi::c_void, pcparams: *mut usize, prgparaminfo: *mut *mut DBPARAMINFO, ppnamesbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWithParameters_Impl::GetParameterInfo(this, core::mem::transmute_copy(&pcparams), core::mem::transmute_copy(&prgparaminfo), core::mem::transmute_copy(&ppnamesbuffer)).into() } - unsafe extern "system" fn Requery(this: *mut core::ffi::c_void, pparams: *const DBPARAMS, pulerrorparam: *mut u32, phreserved: *mut usize) -> windows_core::HRESULT - where - Identity: IRowsetWithParameters_Impl, - { + unsafe extern "system" fn Requery(this: *mut core::ffi::c_void, pparams: *const DBPARAMS, pulerrorparam: *mut u32, phreserved: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetWithParameters_Impl::Requery(this, core::mem::transmute_copy(&pparams), core::mem::transmute_copy(&pulerrorparam), core::mem::transmute_copy(&phreserved)).into() } @@ -5058,19 +3792,13 @@ impl IRowsetWithParameters_Vtbl { iid == &::IID } } -pub trait ISQLErrorInfo_Impl: Sized { +pub trait ISQLErrorInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetSQLInfo(&self, pbstrsqlstate: *mut windows_core::BSTR, plnativeerror: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISQLErrorInfo {} impl ISQLErrorInfo_Vtbl { - pub const fn new() -> ISQLErrorInfo_Vtbl - where - Identity: ISQLErrorInfo_Impl, - { - unsafe extern "system" fn GetSQLInfo(this: *mut core::ffi::c_void, pbstrsqlstate: *mut core::mem::MaybeUninit, plnativeerror: *mut i32) -> windows_core::HRESULT - where - Identity: ISQLErrorInfo_Impl, - { + pub const fn new() -> ISQLErrorInfo_Vtbl { + unsafe extern "system" fn GetSQLInfo(this: *mut core::ffi::c_void, pbstrsqlstate: *mut core::mem::MaybeUninit, plnativeerror: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISQLErrorInfo_Impl::GetSQLInfo(this, core::mem::transmute_copy(&pbstrsqlstate), core::mem::transmute_copy(&plnativeerror)).into() } @@ -5080,19 +3808,13 @@ impl ISQLErrorInfo_Vtbl { iid == &::IID } } -pub trait ISQLGetDiagField_Impl: Sized { +pub trait ISQLGetDiagField_Impl: Sized + windows_core::IUnknownImpl { fn GetDiagField(&self, pdiaginfo: *mut KAGGETDIAG) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISQLGetDiagField {} impl ISQLGetDiagField_Vtbl { - pub const fn new() -> ISQLGetDiagField_Vtbl - where - Identity: ISQLGetDiagField_Impl, - { - unsafe extern "system" fn GetDiagField(this: *mut core::ffi::c_void, pdiaginfo: *mut KAGGETDIAG) -> windows_core::HRESULT - where - Identity: ISQLGetDiagField_Impl, - { + pub const fn new() -> ISQLGetDiagField_Vtbl { + unsafe extern "system" fn GetDiagField(this: *mut core::ffi::c_void, pdiaginfo: *mut KAGGETDIAG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISQLGetDiagField_Impl::GetDiagField(this, core::mem::transmute_copy(&pdiaginfo)).into() } @@ -5103,21 +3825,15 @@ impl ISQLGetDiagField_Vtbl { } } #[cfg(feature = "Win32_System_Variant")] -pub trait ISQLRequestDiagFields_Impl: Sized { +pub trait ISQLRequestDiagFields_Impl: Sized + windows_core::IUnknownImpl { fn RequestDiagFields(&self, cdiagfields: u32, rgdiagfields: *const KAGREQDIAG) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Variant")] impl windows_core::RuntimeName for ISQLRequestDiagFields {} #[cfg(feature = "Win32_System_Variant")] impl ISQLRequestDiagFields_Vtbl { - pub const fn new() -> ISQLRequestDiagFields_Vtbl - where - Identity: ISQLRequestDiagFields_Impl, - { - unsafe extern "system" fn RequestDiagFields(this: *mut core::ffi::c_void, cdiagfields: u32, rgdiagfields: *const KAGREQDIAG) -> windows_core::HRESULT - where - Identity: ISQLRequestDiagFields_Impl, - { + pub const fn new() -> ISQLRequestDiagFields_Vtbl { + unsafe extern "system" fn RequestDiagFields(this: *mut core::ffi::c_void, cdiagfields: u32, rgdiagfields: *const KAGREQDIAG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISQLRequestDiagFields_Impl::RequestDiagFields(this, core::mem::transmute_copy(&cdiagfields), core::mem::transmute_copy(&rgdiagfields)).into() } @@ -5127,19 +3843,13 @@ impl ISQLRequestDiagFields_Vtbl { iid == &::IID } } -pub trait ISQLServerErrorInfo_Impl: Sized { +pub trait ISQLServerErrorInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetErrorInfo(&self, pperrorinfo: *mut *mut SSERRORINFO, ppstringsbuffer: *mut *mut u16) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISQLServerErrorInfo {} impl ISQLServerErrorInfo_Vtbl { - pub const fn new() -> ISQLServerErrorInfo_Vtbl - where - Identity: ISQLServerErrorInfo_Impl, - { - unsafe extern "system" fn GetErrorInfo(this: *mut core::ffi::c_void, pperrorinfo: *mut *mut SSERRORINFO, ppstringsbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: ISQLServerErrorInfo_Impl, - { + pub const fn new() -> ISQLServerErrorInfo_Vtbl { + unsafe extern "system" fn GetErrorInfo(this: *mut core::ffi::c_void, pperrorinfo: *mut *mut SSERRORINFO, ppstringsbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISQLServerErrorInfo_Impl::GetErrorInfo(this, core::mem::transmute_copy(&pperrorinfo), core::mem::transmute_copy(&ppstringsbuffer)).into() } @@ -5149,19 +3859,13 @@ impl ISQLServerErrorInfo_Vtbl { iid == &::IID } } -pub trait ISchemaLocalizerSupport_Impl: Sized { +pub trait ISchemaLocalizerSupport_Impl: Sized + windows_core::IUnknownImpl { fn Localize(&self, pszglobalstring: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for ISchemaLocalizerSupport {} impl ISchemaLocalizerSupport_Vtbl { - pub const fn new() -> ISchemaLocalizerSupport_Vtbl - where - Identity: ISchemaLocalizerSupport_Impl, - { - unsafe extern "system" fn Localize(this: *mut core::ffi::c_void, pszglobalstring: windows_core::PCWSTR, ppszlocalstring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISchemaLocalizerSupport_Impl, - { + pub const fn new() -> ISchemaLocalizerSupport_Vtbl { + unsafe extern "system" fn Localize(this: *mut core::ffi::c_void, pszglobalstring: windows_core::PCWSTR, ppszlocalstring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaLocalizerSupport_Impl::Localize(this, core::mem::transmute(&pszglobalstring)) { Ok(ok__) => { @@ -5178,7 +3882,7 @@ impl ISchemaLocalizerSupport_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait ISchemaLock_Impl: Sized { +pub trait ISchemaLock_Impl: Sized + windows_core::IUnknownImpl { fn GetSchemaLock(&self, ptableid: *mut super::super::Storage::IndexServer::DBID, lmmode: u32, phlockhandle: *mut super::super::Foundation::HANDLE, ptableversion: *mut u64) -> windows_core::Result<()>; fn ReleaseSchemaLock(&self, hlockhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()>; } @@ -5186,21 +3890,12 @@ pub trait ISchemaLock_Impl: Sized { impl windows_core::RuntimeName for ISchemaLock {} #[cfg(feature = "Win32_Storage_IndexServer")] impl ISchemaLock_Vtbl { - pub const fn new() -> ISchemaLock_Vtbl - where - Identity: ISchemaLock_Impl, - { - unsafe extern "system" fn GetSchemaLock(this: *mut core::ffi::c_void, ptableid: *mut super::super::Storage::IndexServer::DBID, lmmode: u32, phlockhandle: *mut super::super::Foundation::HANDLE, ptableversion: *mut u64) -> windows_core::HRESULT - where - Identity: ISchemaLock_Impl, - { + pub const fn new() -> ISchemaLock_Vtbl { + unsafe extern "system" fn GetSchemaLock(this: *mut core::ffi::c_void, ptableid: *mut super::super::Storage::IndexServer::DBID, lmmode: u32, phlockhandle: *mut super::super::Foundation::HANDLE, ptableversion: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchemaLock_Impl::GetSchemaLock(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&lmmode), core::mem::transmute_copy(&phlockhandle), core::mem::transmute_copy(&ptableversion)).into() } - unsafe extern "system" fn ReleaseSchemaLock(this: *mut core::ffi::c_void, hlockhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ISchemaLock_Impl, - { + unsafe extern "system" fn ReleaseSchemaLock(this: *mut core::ffi::c_void, hlockhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchemaLock_Impl::ReleaseSchemaLock(this, core::mem::transmute_copy(&hlockhandle)).into() } @@ -5214,7 +3909,7 @@ impl ISchemaLock_Vtbl { iid == &::IID } } -pub trait ISchemaProvider_Impl: Sized { +pub trait ISchemaProvider_Impl: Sized + windows_core::IUnknownImpl { fn Entities(&self, riid: *const windows_core::GUID, pentities: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RootEntity(&self) -> windows_core::Result; fn GetEntity(&self, pszentityname: &windows_core::PCWSTR) -> windows_core::Result; @@ -5225,21 +3920,12 @@ pub trait ISchemaProvider_Impl: Sized { } impl windows_core::RuntimeName for ISchemaProvider {} impl ISchemaProvider_Vtbl { - pub const fn new() -> ISchemaProvider_Vtbl - where - Identity: ISchemaProvider_Impl, - { - unsafe extern "system" fn Entities(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pentities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaProvider_Impl, - { + pub const fn new() -> ISchemaProvider_Vtbl { + unsafe extern "system" fn Entities(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pentities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchemaProvider_Impl::Entities(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pentities)).into() } - unsafe extern "system" fn RootEntity(this: *mut core::ffi::c_void, prootentity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaProvider_Impl, - { + unsafe extern "system" fn RootEntity(this: *mut core::ffi::c_void, prootentity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaProvider_Impl::RootEntity(this) { Ok(ok__) => { @@ -5249,10 +3935,7 @@ impl ISchemaProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEntity(this: *mut core::ffi::c_void, pszentityname: windows_core::PCWSTR, pentity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaProvider_Impl, - { + unsafe extern "system" fn GetEntity(this: *mut core::ffi::c_void, pszentityname: windows_core::PCWSTR, pentity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISchemaProvider_Impl::GetEntity(this, core::mem::transmute(&pszentityname)) { Ok(ok__) => { @@ -5262,31 +3945,19 @@ impl ISchemaProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MetaData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaProvider_Impl, - { + unsafe extern "system" fn MetaData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pmetadata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchemaProvider_Impl::MetaData(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pmetadata)).into() } - unsafe extern "system" fn Localize(this: *mut core::ffi::c_void, lcid: u32, pschemalocalizersupport: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISchemaProvider_Impl, - { + unsafe extern "system" fn Localize(this: *mut core::ffi::c_void, lcid: u32, pschemalocalizersupport: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchemaProvider_Impl::Localize(this, core::mem::transmute_copy(&lcid), windows_core::from_raw_borrowed(&pschemalocalizersupport)).into() } - unsafe extern "system" fn SaveBinary(this: *mut core::ffi::c_void, pszschemabinarypath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISchemaProvider_Impl, - { + unsafe extern "system" fn SaveBinary(this: *mut core::ffi::c_void, pszschemabinarypath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchemaProvider_Impl::SaveBinary(this, core::mem::transmute(&pszschemabinarypath)).into() } - unsafe extern "system" fn LookupAuthoredNamedEntity(this: *mut core::ffi::c_void, pentity: *mut core::ffi::c_void, pszinputstring: windows_core::PCWSTR, ptokencollection: *mut core::ffi::c_void, ctokensbegin: u32, pctokenslength: *mut u32, ppszvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISchemaProvider_Impl, - { + unsafe extern "system" fn LookupAuthoredNamedEntity(this: *mut core::ffi::c_void, pentity: *mut core::ffi::c_void, pszinputstring: windows_core::PCWSTR, ptokencollection: *mut core::ffi::c_void, ctokensbegin: u32, pctokenslength: *mut u32, ppszvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISchemaProvider_Impl::LookupAuthoredNamedEntity(this, windows_core::from_raw_borrowed(&pentity), core::mem::transmute(&pszinputstring), windows_core::from_raw_borrowed(&ptokencollection), core::mem::transmute_copy(&ctokensbegin), core::mem::transmute_copy(&pctokenslength), core::mem::transmute_copy(&ppszvalue)).into() } @@ -5316,35 +3987,20 @@ pub trait IScopedOperations_Impl: Sized + IBindResource_Impl { impl windows_core::RuntimeName for IScopedOperations {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] impl IScopedOperations_Vtbl { - pub const fn new() -> IScopedOperations_Vtbl - where - Identity: IScopedOperations_Impl, - { - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, crows: usize, rgpwszsourceurls: *const windows_core::PCWSTR, rgpwszdesturls: *const windows_core::PCWSTR, dwcopyflags: u32, pauthenticate: *mut core::ffi::c_void, rgdwstatus: *mut u32, rgpwsznewurls: *mut windows_core::PWSTR, ppstringsbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IScopedOperations_Impl, - { + pub const fn new() -> IScopedOperations_Vtbl { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, crows: usize, rgpwszsourceurls: *const windows_core::PCWSTR, rgpwszdesturls: *const windows_core::PCWSTR, dwcopyflags: u32, pauthenticate: *mut core::ffi::c_void, rgdwstatus: *mut u32, rgpwsznewurls: *mut windows_core::PWSTR, ppstringsbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScopedOperations_Impl::Copy(this, core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rgpwszsourceurls), core::mem::transmute_copy(&rgpwszdesturls), core::mem::transmute_copy(&dwcopyflags), windows_core::from_raw_borrowed(&pauthenticate), core::mem::transmute_copy(&rgdwstatus), core::mem::transmute_copy(&rgpwsznewurls), core::mem::transmute_copy(&ppstringsbuffer)).into() } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, crows: usize, rgpwszsourceurls: *const windows_core::PCWSTR, rgpwszdesturls: *const windows_core::PCWSTR, dwmoveflags: u32, pauthenticate: *mut core::ffi::c_void, rgdwstatus: *mut u32, rgpwsznewurls: *mut windows_core::PWSTR, ppstringsbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IScopedOperations_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, crows: usize, rgpwszsourceurls: *const windows_core::PCWSTR, rgpwszdesturls: *const windows_core::PCWSTR, dwmoveflags: u32, pauthenticate: *mut core::ffi::c_void, rgdwstatus: *mut u32, rgpwsznewurls: *mut windows_core::PWSTR, ppstringsbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScopedOperations_Impl::Move(this, core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rgpwszsourceurls), core::mem::transmute_copy(&rgpwszdesturls), core::mem::transmute_copy(&dwmoveflags), windows_core::from_raw_borrowed(&pauthenticate), core::mem::transmute_copy(&rgdwstatus), core::mem::transmute_copy(&rgpwsznewurls), core::mem::transmute_copy(&ppstringsbuffer)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, crows: usize, rgpwszurls: *const windows_core::PCWSTR, dwdeleteflags: u32, rgdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IScopedOperations_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, crows: usize, rgpwszurls: *const windows_core::PCWSTR, dwdeleteflags: u32, rgdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScopedOperations_Impl::Delete(this, core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rgpwszurls), core::mem::transmute_copy(&dwdeleteflags), core::mem::transmute_copy(&rgdwstatus)).into() } - unsafe extern "system" fn OpenRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScopedOperations_Impl, - { + unsafe extern "system" fn OpenRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pindexid: *const super::super::Storage::IndexServer::DBID, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScopedOperations_Impl::OpenRowset(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pindexid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets), core::mem::transmute_copy(&pprowset)).into() } @@ -5361,7 +4017,7 @@ impl IScopedOperations_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISearchCatalogManager_Impl: Sized { +pub trait ISearchCatalogManager_Impl: Sized + windows_core::IUnknownImpl { fn Name(&self) -> windows_core::Result; fn GetParameter(&self, pszname: &windows_core::PCWSTR) -> windows_core::Result<*mut windows_core::PROPVARIANT>; fn SetParameter(&self, pszname: &windows_core::PCWSTR, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; @@ -5393,14 +4049,8 @@ pub trait ISearchCatalogManager_Impl: Sized { impl windows_core::RuntimeName for ISearchCatalogManager {} #[cfg(feature = "Win32_System_Com")] impl ISearchCatalogManager_Vtbl { - pub const fn new() -> ISearchCatalogManager_Vtbl - where - Identity: ISearchCatalogManager_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + pub const fn new() -> ISearchCatalogManager_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::Name(this) { Ok(ok__) => { @@ -5410,10 +4060,7 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParameter(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ppvalue: *mut *mut windows_core::PROPVARIANT) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn GetParameter(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ppvalue: *mut *mut windows_core::PROPVARIANT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::GetParameter(this, core::mem::transmute(&pszname)) { Ok(ok__) => { @@ -5423,59 +4070,35 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParameter(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn SetParameter(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::SetParameter(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetCatalogStatus(this: *mut core::ffi::c_void, pstatus: *mut CatalogStatus, ppausedreason: *mut CatalogPausedReason) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn GetCatalogStatus(this: *mut core::ffi::c_void, pstatus: *mut CatalogStatus, ppausedreason: *mut CatalogPausedReason) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::GetCatalogStatus(this, core::mem::transmute_copy(&pstatus), core::mem::transmute_copy(&ppausedreason)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::Reset(this).into() } - unsafe extern "system" fn Reindex(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn Reindex(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::Reindex(this).into() } - unsafe extern "system" fn ReindexMatchingURLs(this: *mut core::ffi::c_void, pszpattern: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn ReindexMatchingURLs(this: *mut core::ffi::c_void, pszpattern: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::ReindexMatchingURLs(this, core::mem::transmute(&pszpattern)).into() } - unsafe extern "system" fn ReindexSearchRoot(this: *mut core::ffi::c_void, pszrooturl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn ReindexSearchRoot(this: *mut core::ffi::c_void, pszrooturl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::ReindexSearchRoot(this, core::mem::transmute(&pszrooturl)).into() } - unsafe extern "system" fn SetConnectTimeout(this: *mut core::ffi::c_void, dwconnecttimeout: u32) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn SetConnectTimeout(this: *mut core::ffi::c_void, dwconnecttimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::SetConnectTimeout(this, core::mem::transmute_copy(&dwconnecttimeout)).into() } - unsafe extern "system" fn ConnectTimeout(this: *mut core::ffi::c_void, pdwconnecttimeout: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn ConnectTimeout(this: *mut core::ffi::c_void, pdwconnecttimeout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::ConnectTimeout(this) { Ok(ok__) => { @@ -5485,17 +4108,11 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDataTimeout(this: *mut core::ffi::c_void, dwdatatimeout: u32) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn SetDataTimeout(this: *mut core::ffi::c_void, dwdatatimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::SetDataTimeout(this, core::mem::transmute_copy(&dwdatatimeout)).into() } - unsafe extern "system" fn DataTimeout(this: *mut core::ffi::c_void, pdwdatatimeout: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn DataTimeout(this: *mut core::ffi::c_void, pdwdatatimeout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::DataTimeout(this) { Ok(ok__) => { @@ -5505,10 +4122,7 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfItems(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn NumberOfItems(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::NumberOfItems(this) { Ok(ok__) => { @@ -5518,17 +4132,11 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfItemsToIndex(this: *mut core::ffi::c_void, plincrementalcount: *mut i32, plnotificationqueue: *mut i32, plhighpriorityqueue: *mut i32) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn NumberOfItemsToIndex(this: *mut core::ffi::c_void, plincrementalcount: *mut i32, plnotificationqueue: *mut i32, plhighpriorityqueue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::NumberOfItemsToIndex(this, core::mem::transmute_copy(&plincrementalcount), core::mem::transmute_copy(&plnotificationqueue), core::mem::transmute_copy(&plhighpriorityqueue)).into() } - unsafe extern "system" fn URLBeingIndexed(this: *mut core::ffi::c_void, pszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn URLBeingIndexed(this: *mut core::ffi::c_void, pszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::URLBeingIndexed(this) { Ok(ok__) => { @@ -5538,10 +4146,7 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetURLIndexingState(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pdwstate: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn GetURLIndexingState(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pdwstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::GetURLIndexingState(this, core::mem::transmute(&pszurl)) { Ok(ok__) => { @@ -5551,10 +4156,7 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPersistentItemsChangedSink(this: *mut core::ffi::c_void, ppisearchpersistentitemschangedsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn GetPersistentItemsChangedSink(this: *mut core::ffi::c_void, ppisearchpersistentitemschangedsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::GetPersistentItemsChangedSink(this) { Ok(ok__) => { @@ -5564,10 +4166,7 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterViewForNotification(this: *mut core::ffi::c_void, pszview: windows_core::PCWSTR, pviewchangedsink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn RegisterViewForNotification(this: *mut core::ffi::c_void, pszview: windows_core::PCWSTR, pviewchangedsink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::RegisterViewForNotification(this, core::mem::transmute(&pszview), windows_core::from_raw_borrowed(&pviewchangedsink)) { Ok(ok__) => { @@ -5577,31 +4176,19 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemsChangedSink(this: *mut core::ffi::c_void, pisearchnotifyinlinesite: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void, pguidcatalogresetsignature: *mut windows_core::GUID, pguidcheckpointsignature: *mut windows_core::GUID, pdwlastcheckpointnumber: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn GetItemsChangedSink(this: *mut core::ffi::c_void, pisearchnotifyinlinesite: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void, pguidcatalogresetsignature: *mut windows_core::GUID, pguidcheckpointsignature: *mut windows_core::GUID, pdwlastcheckpointnumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::GetItemsChangedSink(this, windows_core::from_raw_borrowed(&pisearchnotifyinlinesite), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv), core::mem::transmute_copy(&pguidcatalogresetsignature), core::mem::transmute_copy(&pguidcheckpointsignature), core::mem::transmute_copy(&pdwlastcheckpointnumber)).into() } - unsafe extern "system" fn UnregisterViewForNotification(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn UnregisterViewForNotification(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::UnregisterViewForNotification(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn SetExtensionClusion(this: *mut core::ffi::c_void, pszextension: windows_core::PCWSTR, fexclude: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn SetExtensionClusion(this: *mut core::ffi::c_void, pszextension: windows_core::PCWSTR, fexclude: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::SetExtensionClusion(this, core::mem::transmute(&pszextension), core::mem::transmute_copy(&fexclude)).into() } - unsafe extern "system" fn EnumerateExcludedExtensions(this: *mut core::ffi::c_void, ppextensions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn EnumerateExcludedExtensions(this: *mut core::ffi::c_void, ppextensions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::EnumerateExcludedExtensions(this) { Ok(ok__) => { @@ -5611,10 +4198,7 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetQueryHelper(this: *mut core::ffi::c_void, ppsearchqueryhelper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn GetQueryHelper(this: *mut core::ffi::c_void, ppsearchqueryhelper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::GetQueryHelper(this) { Ok(ok__) => { @@ -5624,17 +4208,11 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDiacriticSensitivity(this: *mut core::ffi::c_void, fdiacriticsensitive: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn SetDiacriticSensitivity(this: *mut core::ffi::c_void, fdiacriticsensitive: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::SetDiacriticSensitivity(this, core::mem::transmute_copy(&fdiacriticsensitive)).into() } - unsafe extern "system" fn DiacriticSensitivity(this: *mut core::ffi::c_void, pfdiacriticsensitive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn DiacriticSensitivity(this: *mut core::ffi::c_void, pfdiacriticsensitive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::DiacriticSensitivity(this) { Ok(ok__) => { @@ -5644,10 +4222,7 @@ impl ISearchCatalogManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCrawlScopeManager(this: *mut core::ffi::c_void, ppcrawlscopemanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager_Impl, - { + unsafe extern "system" fn GetCrawlScopeManager(this: *mut core::ffi::c_void, ppcrawlscopemanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::GetCrawlScopeManager(this) { Ok(ok__) => { @@ -5699,14 +4274,8 @@ pub trait ISearchCatalogManager2_Impl: Sized + ISearchCatalogManager_Impl { impl windows_core::RuntimeName for ISearchCatalogManager2 {} #[cfg(feature = "Win32_System_Com")] impl ISearchCatalogManager2_Vtbl { - pub const fn new() -> ISearchCatalogManager2_Vtbl - where - Identity: ISearchCatalogManager2_Impl, - { - unsafe extern "system" fn PrioritizeMatchingURLs(this: *mut core::ffi::c_void, pszpattern: windows_core::PCWSTR, dwprioritizeflags: PRIORITIZE_FLAGS) -> windows_core::HRESULT - where - Identity: ISearchCatalogManager2_Impl, - { + pub const fn new() -> ISearchCatalogManager2_Vtbl { + unsafe extern "system" fn PrioritizeMatchingURLs(this: *mut core::ffi::c_void, pszpattern: windows_core::PCWSTR, dwprioritizeflags: PRIORITIZE_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager2_Impl::PrioritizeMatchingURLs(this, core::mem::transmute(&pszpattern), core::mem::transmute_copy(&dwprioritizeflags)).into() } @@ -5716,7 +4285,7 @@ impl ISearchCatalogManager2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISearchCrawlScopeManager_Impl: Sized { +pub trait ISearchCrawlScopeManager_Impl: Sized + windows_core::IUnknownImpl { fn AddDefaultScopeRule(&self, pszurl: &windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, ffollowflags: u32) -> windows_core::Result<()>; fn AddRoot(&self, psearchroot: Option<&ISearchRoot>) -> windows_core::Result<()>; fn RemoveRoot(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -5736,35 +4305,20 @@ pub trait ISearchCrawlScopeManager_Impl: Sized { } impl windows_core::RuntimeName for ISearchCrawlScopeManager {} impl ISearchCrawlScopeManager_Vtbl { - pub const fn new() -> ISearchCrawlScopeManager_Vtbl - where - Identity: ISearchCrawlScopeManager_Impl, - { - unsafe extern "system" fn AddDefaultScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, ffollowflags: u32) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + pub const fn new() -> ISearchCrawlScopeManager_Vtbl { + unsafe extern "system" fn AddDefaultScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, ffollowflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::AddDefaultScopeRule(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&finclude), core::mem::transmute_copy(&ffollowflags)).into() } - unsafe extern "system" fn AddRoot(this: *mut core::ffi::c_void, psearchroot: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn AddRoot(this: *mut core::ffi::c_void, psearchroot: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::AddRoot(this, windows_core::from_raw_borrowed(&psearchroot)).into() } - unsafe extern "system" fn RemoveRoot(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn RemoveRoot(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::RemoveRoot(this, core::mem::transmute(&pszurl)).into() } - unsafe extern "system" fn EnumerateRoots(this: *mut core::ffi::c_void, ppsearchroots: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn EnumerateRoots(this: *mut core::ffi::c_void, ppsearchroots: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCrawlScopeManager_Impl::EnumerateRoots(this) { Ok(ok__) => { @@ -5774,31 +4328,19 @@ impl ISearchCrawlScopeManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddHierarchicalScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, fdefault: super::super::Foundation::BOOL, foverridechildren: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn AddHierarchicalScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, fdefault: super::super::Foundation::BOOL, foverridechildren: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::AddHierarchicalScope(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&finclude), core::mem::transmute_copy(&fdefault), core::mem::transmute_copy(&foverridechildren)).into() } - unsafe extern "system" fn AddUserScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, foverridechildren: super::super::Foundation::BOOL, ffollowflags: u32) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn AddUserScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, foverridechildren: super::super::Foundation::BOOL, ffollowflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::AddUserScopeRule(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&finclude), core::mem::transmute_copy(&foverridechildren), core::mem::transmute_copy(&ffollowflags)).into() } - unsafe extern "system" fn RemoveScopeRule(this: *mut core::ffi::c_void, pszrule: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn RemoveScopeRule(this: *mut core::ffi::c_void, pszrule: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::RemoveScopeRule(this, core::mem::transmute(&pszrule)).into() } - unsafe extern "system" fn EnumerateScopeRules(this: *mut core::ffi::c_void, ppsearchscoperules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn EnumerateScopeRules(this: *mut core::ffi::c_void, ppsearchscoperules: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCrawlScopeManager_Impl::EnumerateScopeRules(this) { Ok(ok__) => { @@ -5808,10 +4350,7 @@ impl ISearchCrawlScopeManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasParentScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfhasparentrule: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn HasParentScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfhasparentrule: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCrawlScopeManager_Impl::HasParentScopeRule(this, core::mem::transmute(&pszurl)) { Ok(ok__) => { @@ -5821,10 +4360,7 @@ impl ISearchCrawlScopeManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasChildScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfhaschildrule: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn HasChildScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfhaschildrule: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCrawlScopeManager_Impl::HasChildScopeRule(this, core::mem::transmute(&pszurl)) { Ok(ok__) => { @@ -5834,10 +4370,7 @@ impl ISearchCrawlScopeManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IncludedInCrawlScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfisincluded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn IncludedInCrawlScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfisincluded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCrawlScopeManager_Impl::IncludedInCrawlScope(this, core::mem::transmute(&pszurl)) { Ok(ok__) => { @@ -5847,31 +4380,19 @@ impl ISearchCrawlScopeManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IncludedInCrawlScopeEx(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfisincluded: *mut super::super::Foundation::BOOL, preason: *mut CLUSION_REASON) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn IncludedInCrawlScopeEx(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfisincluded: *mut super::super::Foundation::BOOL, preason: *mut CLUSION_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::IncludedInCrawlScopeEx(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&pfisincluded), core::mem::transmute_copy(&preason)).into() } - unsafe extern "system" fn RevertToDefaultScopes(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn RevertToDefaultScopes(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::RevertToDefaultScopes(this).into() } - unsafe extern "system" fn SaveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn SaveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::SaveAll(this).into() } - unsafe extern "system" fn GetParentScopeVersionId(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, plscopeid: *mut i32) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn GetParentScopeVersionId(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, plscopeid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCrawlScopeManager_Impl::GetParentScopeVersionId(this, core::mem::transmute(&pszurl)) { Ok(ok__) => { @@ -5881,10 +4402,7 @@ impl ISearchCrawlScopeManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveDefaultScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager_Impl, - { + unsafe extern "system" fn RemoveDefaultScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::RemoveDefaultScopeRule(this, core::mem::transmute(&pszurl)).into() } @@ -5917,14 +4435,8 @@ pub trait ISearchCrawlScopeManager2_Impl: Sized + ISearchCrawlScopeManager_Impl } impl windows_core::RuntimeName for ISearchCrawlScopeManager2 {} impl ISearchCrawlScopeManager2_Vtbl { - pub const fn new() -> ISearchCrawlScopeManager2_Vtbl - where - Identity: ISearchCrawlScopeManager2_Impl, - { - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, plversion: *mut *mut i32, phfilemapping: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ISearchCrawlScopeManager2_Impl, - { + pub const fn new() -> ISearchCrawlScopeManager2_Vtbl { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, plversion: *mut *mut i32, phfilemapping: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager2_Impl::GetVersion(this, core::mem::transmute_copy(&plversion), core::mem::transmute_copy(&phfilemapping)).into() } @@ -5935,7 +4447,7 @@ impl ISearchCrawlScopeManager2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISearchItemsChangedSink_Impl: Sized { +pub trait ISearchItemsChangedSink_Impl: Sized + windows_core::IUnknownImpl { fn StartedMonitoringScope(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; fn StoppedMonitoringScope(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OnItemsChanged(&self, dwnumberofchanges: u32, rgdatachangeentries: *const SEARCH_ITEM_CHANGE, rgdwdocids: *mut u32, rghrcompletioncodes: *mut windows_core::HRESULT) -> windows_core::Result<()>; @@ -5944,28 +4456,16 @@ pub trait ISearchItemsChangedSink_Impl: Sized { impl windows_core::RuntimeName for ISearchItemsChangedSink {} #[cfg(feature = "Win32_System_Com")] impl ISearchItemsChangedSink_Vtbl { - pub const fn new() -> ISearchItemsChangedSink_Vtbl - where - Identity: ISearchItemsChangedSink_Impl, - { - unsafe extern "system" fn StartedMonitoringScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchItemsChangedSink_Impl, - { + pub const fn new() -> ISearchItemsChangedSink_Vtbl { + unsafe extern "system" fn StartedMonitoringScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchItemsChangedSink_Impl::StartedMonitoringScope(this, core::mem::transmute(&pszurl)).into() } - unsafe extern "system" fn StoppedMonitoringScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchItemsChangedSink_Impl, - { + unsafe extern "system" fn StoppedMonitoringScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchItemsChangedSink_Impl::StoppedMonitoringScope(this, core::mem::transmute(&pszurl)).into() } - unsafe extern "system" fn OnItemsChanged(this: *mut core::ffi::c_void, dwnumberofchanges: u32, rgdatachangeentries: *const SEARCH_ITEM_CHANGE, rgdwdocids: *mut u32, rghrcompletioncodes: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISearchItemsChangedSink_Impl, - { + unsafe extern "system" fn OnItemsChanged(this: *mut core::ffi::c_void, dwnumberofchanges: u32, rgdatachangeentries: *const SEARCH_ITEM_CHANGE, rgdwdocids: *mut u32, rghrcompletioncodes: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchItemsChangedSink_Impl::OnItemsChanged(this, core::mem::transmute_copy(&dwnumberofchanges), core::mem::transmute_copy(&rgdatachangeentries), core::mem::transmute_copy(&rgdwdocids), core::mem::transmute_copy(&rghrcompletioncodes)).into() } @@ -5980,7 +4480,7 @@ impl ISearchItemsChangedSink_Vtbl { iid == &::IID } } -pub trait ISearchLanguageSupport_Impl: Sized { +pub trait ISearchLanguageSupport_Impl: Sized + windows_core::IUnknownImpl { fn SetDiacriticSensitivity(&self, fdiacriticsensitive: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetDiacriticSensitivity(&self) -> windows_core::Result; fn LoadWordBreaker(&self, lcid: u32, riid: *const windows_core::GUID, ppwordbreaker: *mut *mut core::ffi::c_void, plcidused: *mut u32) -> windows_core::Result<()>; @@ -5989,21 +4489,12 @@ pub trait ISearchLanguageSupport_Impl: Sized { } impl windows_core::RuntimeName for ISearchLanguageSupport {} impl ISearchLanguageSupport_Vtbl { - pub const fn new() -> ISearchLanguageSupport_Vtbl - where - Identity: ISearchLanguageSupport_Impl, - { - unsafe extern "system" fn SetDiacriticSensitivity(this: *mut core::ffi::c_void, fdiacriticsensitive: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchLanguageSupport_Impl, - { + pub const fn new() -> ISearchLanguageSupport_Vtbl { + unsafe extern "system" fn SetDiacriticSensitivity(this: *mut core::ffi::c_void, fdiacriticsensitive: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchLanguageSupport_Impl::SetDiacriticSensitivity(this, core::mem::transmute_copy(&fdiacriticsensitive)).into() } - unsafe extern "system" fn GetDiacriticSensitivity(this: *mut core::ffi::c_void, pfdiacriticsensitive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchLanguageSupport_Impl, - { + unsafe extern "system" fn GetDiacriticSensitivity(this: *mut core::ffi::c_void, pfdiacriticsensitive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchLanguageSupport_Impl::GetDiacriticSensitivity(this) { Ok(ok__) => { @@ -6013,24 +4504,15 @@ impl ISearchLanguageSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadWordBreaker(this: *mut core::ffi::c_void, lcid: u32, riid: *const windows_core::GUID, ppwordbreaker: *mut *mut core::ffi::c_void, plcidused: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchLanguageSupport_Impl, - { + unsafe extern "system" fn LoadWordBreaker(this: *mut core::ffi::c_void, lcid: u32, riid: *const windows_core::GUID, ppwordbreaker: *mut *mut core::ffi::c_void, plcidused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchLanguageSupport_Impl::LoadWordBreaker(this, core::mem::transmute_copy(&lcid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppwordbreaker), core::mem::transmute_copy(&plcidused)).into() } - unsafe extern "system" fn LoadStemmer(this: *mut core::ffi::c_void, lcid: u32, riid: *const windows_core::GUID, ppstemmer: *mut *mut core::ffi::c_void, plcidused: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchLanguageSupport_Impl, - { + unsafe extern "system" fn LoadStemmer(this: *mut core::ffi::c_void, lcid: u32, riid: *const windows_core::GUID, ppstemmer: *mut *mut core::ffi::c_void, plcidused: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchLanguageSupport_Impl::LoadStemmer(this, core::mem::transmute_copy(&lcid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppstemmer), core::mem::transmute_copy(&plcidused)).into() } - unsafe extern "system" fn IsPrefixNormalized(this: *mut core::ffi::c_void, pwcsquerytoken: windows_core::PCWSTR, cwcquerytoken: u32, pwcsdocumenttoken: windows_core::PCWSTR, cwcdocumenttoken: u32, pulprefixlength: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchLanguageSupport_Impl, - { + unsafe extern "system" fn IsPrefixNormalized(this: *mut core::ffi::c_void, pwcsquerytoken: windows_core::PCWSTR, cwcquerytoken: u32, pwcsdocumenttoken: windows_core::PCWSTR, cwcdocumenttoken: u32, pulprefixlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchLanguageSupport_Impl::IsPrefixNormalized(this, core::mem::transmute(&pwcsquerytoken), core::mem::transmute_copy(&cwcquerytoken), core::mem::transmute(&pwcsdocumenttoken), core::mem::transmute_copy(&cwcdocumenttoken)) { Ok(ok__) => { @@ -6053,7 +4535,7 @@ impl ISearchLanguageSupport_Vtbl { iid == &::IID } } -pub trait ISearchManager_Impl: Sized { +pub trait ISearchManager_Impl: Sized + windows_core::IUnknownImpl { fn GetIndexerVersionStr(&self) -> windows_core::Result; fn GetIndexerVersion(&self, pdwmajor: *mut u32, pdwminor: *mut u32) -> windows_core::Result<()>; fn GetParameter(&self, pszname: &windows_core::PCWSTR) -> windows_core::Result<*mut windows_core::PROPVARIANT>; @@ -6070,14 +4552,8 @@ pub trait ISearchManager_Impl: Sized { } impl windows_core::RuntimeName for ISearchManager {} impl ISearchManager_Vtbl { - pub const fn new() -> ISearchManager_Vtbl - where - Identity: ISearchManager_Impl, - { - unsafe extern "system" fn GetIndexerVersionStr(this: *mut core::ffi::c_void, ppszversionstring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + pub const fn new() -> ISearchManager_Vtbl { + unsafe extern "system" fn GetIndexerVersionStr(this: *mut core::ffi::c_void, ppszversionstring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager_Impl::GetIndexerVersionStr(this) { Ok(ok__) => { @@ -6087,17 +4563,11 @@ impl ISearchManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIndexerVersion(this: *mut core::ffi::c_void, pdwmajor: *mut u32, pdwminor: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn GetIndexerVersion(this: *mut core::ffi::c_void, pdwmajor: *mut u32, pdwminor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchManager_Impl::GetIndexerVersion(this, core::mem::transmute_copy(&pdwmajor), core::mem::transmute_copy(&pdwminor)).into() } - unsafe extern "system" fn GetParameter(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ppvalue: *mut *mut windows_core::PROPVARIANT) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn GetParameter(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ppvalue: *mut *mut windows_core::PROPVARIANT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager_Impl::GetParameter(this, core::mem::transmute(&pszname)) { Ok(ok__) => { @@ -6107,17 +4577,11 @@ impl ISearchManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParameter(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn SetParameter(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchManager_Impl::SetParameter(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn ProxyName(this: *mut core::ffi::c_void, ppszproxyname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn ProxyName(this: *mut core::ffi::c_void, ppszproxyname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager_Impl::ProxyName(this) { Ok(ok__) => { @@ -6127,10 +4591,7 @@ impl ISearchManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BypassList(this: *mut core::ffi::c_void, ppszbypasslist: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn BypassList(this: *mut core::ffi::c_void, ppszbypasslist: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager_Impl::BypassList(this) { Ok(ok__) => { @@ -6140,17 +4601,11 @@ impl ISearchManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProxy(this: *mut core::ffi::c_void, suseproxy: PROXY_ACCESS, flocalbypassproxy: super::super::Foundation::BOOL, dwportnumber: u32, pszproxyname: windows_core::PCWSTR, pszbypasslist: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn SetProxy(this: *mut core::ffi::c_void, suseproxy: PROXY_ACCESS, flocalbypassproxy: super::super::Foundation::BOOL, dwportnumber: u32, pszproxyname: windows_core::PCWSTR, pszbypasslist: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchManager_Impl::SetProxy(this, core::mem::transmute_copy(&suseproxy), core::mem::transmute_copy(&flocalbypassproxy), core::mem::transmute_copy(&dwportnumber), core::mem::transmute(&pszproxyname), core::mem::transmute(&pszbypasslist)).into() } - unsafe extern "system" fn GetCatalog(this: *mut core::ffi::c_void, pszcatalog: windows_core::PCWSTR, ppcatalogmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn GetCatalog(this: *mut core::ffi::c_void, pszcatalog: windows_core::PCWSTR, ppcatalogmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager_Impl::GetCatalog(this, core::mem::transmute(&pszcatalog)) { Ok(ok__) => { @@ -6160,10 +4615,7 @@ impl ISearchManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserAgent(this: *mut core::ffi::c_void, ppszuseragent: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn UserAgent(this: *mut core::ffi::c_void, ppszuseragent: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager_Impl::UserAgent(this) { Ok(ok__) => { @@ -6173,17 +4625,11 @@ impl ISearchManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUserAgent(this: *mut core::ffi::c_void, pszuseragent: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn SetUserAgent(this: *mut core::ffi::c_void, pszuseragent: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchManager_Impl::SetUserAgent(this, core::mem::transmute(&pszuseragent)).into() } - unsafe extern "system" fn UseProxy(this: *mut core::ffi::c_void, puseproxy: *mut PROXY_ACCESS) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn UseProxy(this: *mut core::ffi::c_void, puseproxy: *mut PROXY_ACCESS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager_Impl::UseProxy(this) { Ok(ok__) => { @@ -6193,10 +4639,7 @@ impl ISearchManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocalBypass(this: *mut core::ffi::c_void, pflocalbypass: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn LocalBypass(this: *mut core::ffi::c_void, pflocalbypass: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager_Impl::LocalBypass(this) { Ok(ok__) => { @@ -6206,10 +4649,7 @@ impl ISearchManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PortNumber(this: *mut core::ffi::c_void, pdwportnumber: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchManager_Impl, - { + unsafe extern "system" fn PortNumber(this: *mut core::ffi::c_void, pdwportnumber: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager_Impl::PortNumber(this) { Ok(ok__) => { @@ -6246,14 +4686,8 @@ pub trait ISearchManager2_Impl: Sized + ISearchManager_Impl { } impl windows_core::RuntimeName for ISearchManager2 {} impl ISearchManager2_Vtbl { - pub const fn new() -> ISearchManager2_Vtbl - where - Identity: ISearchManager2_Impl, - { - unsafe extern "system" fn CreateCatalog(this: *mut core::ffi::c_void, pszcatalog: windows_core::PCWSTR, ppcatalogmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchManager2_Impl, - { + pub const fn new() -> ISearchManager2_Vtbl { + unsafe extern "system" fn CreateCatalog(this: *mut core::ffi::c_void, pszcatalog: windows_core::PCWSTR, ppcatalogmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager2_Impl::CreateCatalog(this, core::mem::transmute(&pszcatalog)) { Ok(ok__) => { @@ -6263,10 +4697,7 @@ impl ISearchManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteCatalog(this: *mut core::ffi::c_void, pszcatalog: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchManager2_Impl, - { + unsafe extern "system" fn DeleteCatalog(this: *mut core::ffi::c_void, pszcatalog: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchManager2_Impl::DeleteCatalog(this, core::mem::transmute(&pszcatalog)).into() } @@ -6280,27 +4711,18 @@ impl ISearchManager2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISearchNotifyInlineSite_Impl: Sized { +pub trait ISearchNotifyInlineSite_Impl: Sized + windows_core::IUnknownImpl { fn OnItemIndexedStatusChange(&self, sipstatus: SEARCH_INDEXING_PHASE, dwnumentries: u32, rgitemstatusentries: *const SEARCH_ITEM_INDEXING_STATUS) -> windows_core::Result<()>; fn OnCatalogStatusChange(&self, guidcatalogresetsignature: *const windows_core::GUID, guidcheckpointsignature: *const windows_core::GUID, dwlastcheckpointnumber: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISearchNotifyInlineSite {} impl ISearchNotifyInlineSite_Vtbl { - pub const fn new() -> ISearchNotifyInlineSite_Vtbl - where - Identity: ISearchNotifyInlineSite_Impl, - { - unsafe extern "system" fn OnItemIndexedStatusChange(this: *mut core::ffi::c_void, sipstatus: SEARCH_INDEXING_PHASE, dwnumentries: u32, rgitemstatusentries: *const SEARCH_ITEM_INDEXING_STATUS) -> windows_core::HRESULT - where - Identity: ISearchNotifyInlineSite_Impl, - { + pub const fn new() -> ISearchNotifyInlineSite_Vtbl { + unsafe extern "system" fn OnItemIndexedStatusChange(this: *mut core::ffi::c_void, sipstatus: SEARCH_INDEXING_PHASE, dwnumentries: u32, rgitemstatusentries: *const SEARCH_ITEM_INDEXING_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchNotifyInlineSite_Impl::OnItemIndexedStatusChange(this, core::mem::transmute_copy(&sipstatus), core::mem::transmute_copy(&dwnumentries), core::mem::transmute_copy(&rgitemstatusentries)).into() } - unsafe extern "system" fn OnCatalogStatusChange(this: *mut core::ffi::c_void, guidcatalogresetsignature: *const windows_core::GUID, guidcheckpointsignature: *const windows_core::GUID, dwlastcheckpointnumber: u32) -> windows_core::HRESULT - where - Identity: ISearchNotifyInlineSite_Impl, - { + unsafe extern "system" fn OnCatalogStatusChange(this: *mut core::ffi::c_void, guidcatalogresetsignature: *const windows_core::GUID, guidcheckpointsignature: *const windows_core::GUID, dwlastcheckpointnumber: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchNotifyInlineSite_Impl::OnCatalogStatusChange(this, core::mem::transmute_copy(&guidcatalogresetsignature), core::mem::transmute_copy(&guidcheckpointsignature), core::mem::transmute_copy(&dwlastcheckpointnumber)).into() } @@ -6314,35 +4736,23 @@ impl ISearchNotifyInlineSite_Vtbl { iid == &::IID } } -pub trait ISearchPersistentItemsChangedSink_Impl: Sized { +pub trait ISearchPersistentItemsChangedSink_Impl: Sized + windows_core::IUnknownImpl { fn StartedMonitoringScope(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; fn StoppedMonitoringScope(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OnItemsChanged(&self, dwnumberofchanges: u32, datachangeentries: *const SEARCH_ITEM_PERSISTENT_CHANGE, hrcompletioncodes: *mut windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISearchPersistentItemsChangedSink {} impl ISearchPersistentItemsChangedSink_Vtbl { - pub const fn new() -> ISearchPersistentItemsChangedSink_Vtbl - where - Identity: ISearchPersistentItemsChangedSink_Impl, - { - unsafe extern "system" fn StartedMonitoringScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchPersistentItemsChangedSink_Impl, - { + pub const fn new() -> ISearchPersistentItemsChangedSink_Vtbl { + unsafe extern "system" fn StartedMonitoringScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchPersistentItemsChangedSink_Impl::StartedMonitoringScope(this, core::mem::transmute(&pszurl)).into() } - unsafe extern "system" fn StoppedMonitoringScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchPersistentItemsChangedSink_Impl, - { + unsafe extern "system" fn StoppedMonitoringScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchPersistentItemsChangedSink_Impl::StoppedMonitoringScope(this, core::mem::transmute(&pszurl)).into() } - unsafe extern "system" fn OnItemsChanged(this: *mut core::ffi::c_void, dwnumberofchanges: u32, datachangeentries: *const SEARCH_ITEM_PERSISTENT_CHANGE, hrcompletioncodes: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISearchPersistentItemsChangedSink_Impl, - { + unsafe extern "system" fn OnItemsChanged(this: *mut core::ffi::c_void, dwnumberofchanges: u32, datachangeentries: *const SEARCH_ITEM_PERSISTENT_CHANGE, hrcompletioncodes: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchPersistentItemsChangedSink_Impl::OnItemsChanged(this, core::mem::transmute_copy(&dwnumberofchanges), core::mem::transmute_copy(&datachangeentries), core::mem::transmute_copy(&hrcompletioncodes)).into() } @@ -6357,7 +4767,7 @@ impl ISearchPersistentItemsChangedSink_Vtbl { iid == &::IID } } -pub trait ISearchProtocol_Impl: Sized { +pub trait ISearchProtocol_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, ptimeoutinfo: *const TIMEOUT_INFO, pprotocolhandlersite: Option<&IProtocolHandlerSite>, pproxyinfo: *const PROXY_INFO) -> windows_core::Result<()>; fn CreateAccessor(&self, pcwszurl: &windows_core::PCWSTR, pauthenticationinfo: *const AUTHENTICATION_INFO, pincrementalaccessinfo: *const INCREMENTAL_ACCESS_INFO, piteminfo: *const ITEM_INFO) -> windows_core::Result; fn CloseAccessor(&self, paccessor: Option<&IUrlAccessor>) -> windows_core::Result<()>; @@ -6365,21 +4775,12 @@ pub trait ISearchProtocol_Impl: Sized { } impl windows_core::RuntimeName for ISearchProtocol {} impl ISearchProtocol_Vtbl { - pub const fn new() -> ISearchProtocol_Vtbl - where - Identity: ISearchProtocol_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, ptimeoutinfo: *const TIMEOUT_INFO, pprotocolhandlersite: *mut core::ffi::c_void, pproxyinfo: *const PROXY_INFO) -> windows_core::HRESULT - where - Identity: ISearchProtocol_Impl, - { + pub const fn new() -> ISearchProtocol_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, ptimeoutinfo: *const TIMEOUT_INFO, pprotocolhandlersite: *mut core::ffi::c_void, pproxyinfo: *const PROXY_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchProtocol_Impl::Init(this, core::mem::transmute_copy(&ptimeoutinfo), windows_core::from_raw_borrowed(&pprotocolhandlersite), core::mem::transmute_copy(&pproxyinfo)).into() } - unsafe extern "system" fn CreateAccessor(this: *mut core::ffi::c_void, pcwszurl: windows_core::PCWSTR, pauthenticationinfo: *const AUTHENTICATION_INFO, pincrementalaccessinfo: *const INCREMENTAL_ACCESS_INFO, piteminfo: *const ITEM_INFO, ppaccessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchProtocol_Impl, - { + unsafe extern "system" fn CreateAccessor(this: *mut core::ffi::c_void, pcwszurl: windows_core::PCWSTR, pauthenticationinfo: *const AUTHENTICATION_INFO, pincrementalaccessinfo: *const INCREMENTAL_ACCESS_INFO, piteminfo: *const ITEM_INFO, ppaccessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchProtocol_Impl::CreateAccessor(this, core::mem::transmute(&pcwszurl), core::mem::transmute_copy(&pauthenticationinfo), core::mem::transmute_copy(&pincrementalaccessinfo), core::mem::transmute_copy(&piteminfo)) { Ok(ok__) => { @@ -6389,17 +4790,11 @@ impl ISearchProtocol_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseAccessor(this: *mut core::ffi::c_void, paccessor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchProtocol_Impl, - { + unsafe extern "system" fn CloseAccessor(this: *mut core::ffi::c_void, paccessor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchProtocol_Impl::CloseAccessor(this, windows_core::from_raw_borrowed(&paccessor)).into() } - unsafe extern "system" fn ShutDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchProtocol_Impl, - { + unsafe extern "system" fn ShutDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchProtocol_Impl::ShutDown(this).into() } @@ -6423,14 +4818,8 @@ pub trait ISearchProtocol2_Impl: Sized + ISearchProtocol_Impl { impl windows_core::RuntimeName for ISearchProtocol2 {} #[cfg(feature = "Win32_System_Com")] impl ISearchProtocol2_Vtbl { - pub const fn new() -> ISearchProtocol2_Vtbl - where - Identity: ISearchProtocol2_Impl, - { - unsafe extern "system" fn CreateAccessorEx(this: *mut core::ffi::c_void, pcwszurl: windows_core::PCWSTR, pauthenticationinfo: *const AUTHENTICATION_INFO, pincrementalaccessinfo: *const INCREMENTAL_ACCESS_INFO, piteminfo: *const ITEM_INFO, puserdata: *const super::Com::BLOB, ppaccessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchProtocol2_Impl, - { + pub const fn new() -> ISearchProtocol2_Vtbl { + unsafe extern "system" fn CreateAccessorEx(this: *mut core::ffi::c_void, pcwszurl: windows_core::PCWSTR, pauthenticationinfo: *const AUTHENTICATION_INFO, pincrementalaccessinfo: *const INCREMENTAL_ACCESS_INFO, piteminfo: *const ITEM_INFO, puserdata: *const super::Com::BLOB, ppaccessor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchProtocol2_Impl::CreateAccessorEx(this, core::mem::transmute(&pcwszurl), core::mem::transmute_copy(&pauthenticationinfo), core::mem::transmute_copy(&pincrementalaccessinfo), core::mem::transmute_copy(&piteminfo), core::mem::transmute_copy(&puserdata)) { Ok(ok__) => { @@ -6446,35 +4835,23 @@ impl ISearchProtocol2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISearchProtocolThreadContext_Impl: Sized { +pub trait ISearchProtocolThreadContext_Impl: Sized + windows_core::IUnknownImpl { fn ThreadInit(&self) -> windows_core::Result<()>; fn ThreadShutdown(&self) -> windows_core::Result<()>; fn ThreadIdle(&self, dwtimeelaspedsincelastcallinms: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISearchProtocolThreadContext {} impl ISearchProtocolThreadContext_Vtbl { - pub const fn new() -> ISearchProtocolThreadContext_Vtbl - where - Identity: ISearchProtocolThreadContext_Impl, - { - unsafe extern "system" fn ThreadInit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchProtocolThreadContext_Impl, - { + pub const fn new() -> ISearchProtocolThreadContext_Vtbl { + unsafe extern "system" fn ThreadInit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchProtocolThreadContext_Impl::ThreadInit(this).into() } - unsafe extern "system" fn ThreadShutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchProtocolThreadContext_Impl, - { + unsafe extern "system" fn ThreadShutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchProtocolThreadContext_Impl::ThreadShutdown(this).into() } - unsafe extern "system" fn ThreadIdle(this: *mut core::ffi::c_void, dwtimeelaspedsincelastcallinms: u32) -> windows_core::HRESULT - where - Identity: ISearchProtocolThreadContext_Impl, - { + unsafe extern "system" fn ThreadIdle(this: *mut core::ffi::c_void, dwtimeelaspedsincelastcallinms: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchProtocolThreadContext_Impl::ThreadIdle(this, core::mem::transmute_copy(&dwtimeelaspedsincelastcallinms)).into() } @@ -6490,7 +4867,7 @@ impl ISearchProtocolThreadContext_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ISearchQueryHelper_Impl: Sized { +pub trait ISearchQueryHelper_Impl: Sized + windows_core::IUnknownImpl { fn ConnectionString(&self) -> windows_core::Result; fn SetQueryContentLocale(&self, lcid: u32) -> windows_core::Result<()>; fn QueryContentLocale(&self) -> windows_core::Result; @@ -6517,14 +4894,8 @@ pub trait ISearchQueryHelper_Impl: Sized { impl windows_core::RuntimeName for ISearchQueryHelper {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISearchQueryHelper_Vtbl { - pub const fn new() -> ISearchQueryHelper_Vtbl - where - Identity: ISearchQueryHelper_Impl, - { - unsafe extern "system" fn ConnectionString(this: *mut core::ffi::c_void, pszconnectionstring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + pub const fn new() -> ISearchQueryHelper_Vtbl { + unsafe extern "system" fn ConnectionString(this: *mut core::ffi::c_void, pszconnectionstring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::ConnectionString(this) { Ok(ok__) => { @@ -6534,17 +4905,11 @@ impl ISearchQueryHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQueryContentLocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn SetQueryContentLocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHelper_Impl::SetQueryContentLocale(this, core::mem::transmute_copy(&lcid)).into() } - unsafe extern "system" fn QueryContentLocale(this: *mut core::ffi::c_void, plcid: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn QueryContentLocale(this: *mut core::ffi::c_void, plcid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::QueryContentLocale(this) { Ok(ok__) => { @@ -6554,17 +4919,11 @@ impl ISearchQueryHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQueryKeywordLocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn SetQueryKeywordLocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHelper_Impl::SetQueryKeywordLocale(this, core::mem::transmute_copy(&lcid)).into() } - unsafe extern "system" fn QueryKeywordLocale(this: *mut core::ffi::c_void, plcid: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn QueryKeywordLocale(this: *mut core::ffi::c_void, plcid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::QueryKeywordLocale(this) { Ok(ok__) => { @@ -6574,17 +4933,11 @@ impl ISearchQueryHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQueryTermExpansion(this: *mut core::ffi::c_void, expandterms: SEARCH_TERM_EXPANSION) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn SetQueryTermExpansion(this: *mut core::ffi::c_void, expandterms: SEARCH_TERM_EXPANSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHelper_Impl::SetQueryTermExpansion(this, core::mem::transmute_copy(&expandterms)).into() } - unsafe extern "system" fn QueryTermExpansion(this: *mut core::ffi::c_void, pexpandterms: *mut SEARCH_TERM_EXPANSION) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn QueryTermExpansion(this: *mut core::ffi::c_void, pexpandterms: *mut SEARCH_TERM_EXPANSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::QueryTermExpansion(this) { Ok(ok__) => { @@ -6594,17 +4947,11 @@ impl ISearchQueryHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuerySyntax(this: *mut core::ffi::c_void, querysyntax: SEARCH_QUERY_SYNTAX) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn SetQuerySyntax(this: *mut core::ffi::c_void, querysyntax: SEARCH_QUERY_SYNTAX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHelper_Impl::SetQuerySyntax(this, core::mem::transmute_copy(&querysyntax)).into() } - unsafe extern "system" fn QuerySyntax(this: *mut core::ffi::c_void, pquerysyntax: *mut SEARCH_QUERY_SYNTAX) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn QuerySyntax(this: *mut core::ffi::c_void, pquerysyntax: *mut SEARCH_QUERY_SYNTAX) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::QuerySyntax(this) { Ok(ok__) => { @@ -6614,17 +4961,11 @@ impl ISearchQueryHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQueryContentProperties(this: *mut core::ffi::c_void, pszcontentproperties: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn SetQueryContentProperties(this: *mut core::ffi::c_void, pszcontentproperties: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHelper_Impl::SetQueryContentProperties(this, core::mem::transmute(&pszcontentproperties)).into() } - unsafe extern "system" fn QueryContentProperties(this: *mut core::ffi::c_void, ppszcontentproperties: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn QueryContentProperties(this: *mut core::ffi::c_void, ppszcontentproperties: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::QueryContentProperties(this) { Ok(ok__) => { @@ -6634,17 +4975,11 @@ impl ISearchQueryHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuerySelectColumns(this: *mut core::ffi::c_void, pszselectcolumns: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn SetQuerySelectColumns(this: *mut core::ffi::c_void, pszselectcolumns: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHelper_Impl::SetQuerySelectColumns(this, core::mem::transmute(&pszselectcolumns)).into() } - unsafe extern "system" fn QuerySelectColumns(this: *mut core::ffi::c_void, ppszselectcolumns: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn QuerySelectColumns(this: *mut core::ffi::c_void, ppszselectcolumns: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::QuerySelectColumns(this) { Ok(ok__) => { @@ -6654,17 +4989,11 @@ impl ISearchQueryHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQueryWhereRestrictions(this: *mut core::ffi::c_void, pszrestrictions: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn SetQueryWhereRestrictions(this: *mut core::ffi::c_void, pszrestrictions: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHelper_Impl::SetQueryWhereRestrictions(this, core::mem::transmute(&pszrestrictions)).into() } - unsafe extern "system" fn QueryWhereRestrictions(this: *mut core::ffi::c_void, ppszrestrictions: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn QueryWhereRestrictions(this: *mut core::ffi::c_void, ppszrestrictions: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::QueryWhereRestrictions(this) { Ok(ok__) => { @@ -6674,17 +5003,11 @@ impl ISearchQueryHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetQuerySorting(this: *mut core::ffi::c_void, pszsorting: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn SetQuerySorting(this: *mut core::ffi::c_void, pszsorting: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHelper_Impl::SetQuerySorting(this, core::mem::transmute(&pszsorting)).into() } - unsafe extern "system" fn QuerySorting(this: *mut core::ffi::c_void, ppszsorting: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn QuerySorting(this: *mut core::ffi::c_void, ppszsorting: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::QuerySorting(this) { Ok(ok__) => { @@ -6694,10 +5017,7 @@ impl ISearchQueryHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateSQLFromUserQuery(this: *mut core::ffi::c_void, pszquery: windows_core::PCWSTR, ppszsql: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn GenerateSQLFromUserQuery(this: *mut core::ffi::c_void, pszquery: windows_core::PCWSTR, ppszsql: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::GenerateSQLFromUserQuery(this, core::mem::transmute(&pszquery)) { Ok(ok__) => { @@ -6707,24 +5027,15 @@ impl ISearchQueryHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteProperties(this: *mut core::ffi::c_void, itemid: i32, dwnumberofcolumns: u32, pcolumns: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalues: *const SEARCH_COLUMN_PROPERTIES, pftgathermodifiedtime: *const super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn WriteProperties(this: *mut core::ffi::c_void, itemid: i32, dwnumberofcolumns: u32, pcolumns: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pvalues: *const SEARCH_COLUMN_PROPERTIES, pftgathermodifiedtime: *const super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHelper_Impl::WriteProperties(this, core::mem::transmute_copy(&itemid), core::mem::transmute_copy(&dwnumberofcolumns), core::mem::transmute_copy(&pcolumns), core::mem::transmute_copy(&pvalues), core::mem::transmute_copy(&pftgathermodifiedtime)).into() } - unsafe extern "system" fn SetQueryMaxResults(this: *mut core::ffi::c_void, cmaxresults: i32) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn SetQueryMaxResults(this: *mut core::ffi::c_void, cmaxresults: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHelper_Impl::SetQueryMaxResults(this, core::mem::transmute_copy(&cmaxresults)).into() } - unsafe extern "system" fn QueryMaxResults(this: *mut core::ffi::c_void, pcmaxresults: *mut i32) -> windows_core::HRESULT - where - Identity: ISearchQueryHelper_Impl, - { + unsafe extern "system" fn QueryMaxResults(this: *mut core::ffi::c_void, pcmaxresults: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchQueryHelper_Impl::QueryMaxResults(this) { Ok(ok__) => { @@ -6764,7 +5075,7 @@ impl ISearchQueryHelper_Vtbl { } } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] -pub trait ISearchQueryHits_Impl: Sized { +pub trait ISearchQueryHits_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, pflt: Option<&super::super::Storage::IndexServer::IFilter>, ulflags: u32) -> i32; fn NextHitMoniker(&self, pcmnk: *mut u32, papmnk: *mut *mut Option) -> i32; fn NextHitOffset(&self, pcregion: *mut u32, paregion: *mut *mut super::super::Storage::IndexServer::FILTERREGION) -> i32; @@ -6773,28 +5084,16 @@ pub trait ISearchQueryHits_Impl: Sized { impl windows_core::RuntimeName for ISearchQueryHits {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] impl ISearchQueryHits_Vtbl { - pub const fn new() -> ISearchQueryHits_Vtbl - where - Identity: ISearchQueryHits_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pflt: *mut core::ffi::c_void, ulflags: u32) -> i32 - where - Identity: ISearchQueryHits_Impl, - { + pub const fn new() -> ISearchQueryHits_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pflt: *mut core::ffi::c_void, ulflags: u32) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHits_Impl::Init(this, windows_core::from_raw_borrowed(&pflt), core::mem::transmute_copy(&ulflags)) } - unsafe extern "system" fn NextHitMoniker(this: *mut core::ffi::c_void, pcmnk: *mut u32, papmnk: *mut *mut Option) -> i32 - where - Identity: ISearchQueryHits_Impl, - { + unsafe extern "system" fn NextHitMoniker(this: *mut core::ffi::c_void, pcmnk: *mut u32, papmnk: *mut *mut Option) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHits_Impl::NextHitMoniker(this, core::mem::transmute_copy(&pcmnk), core::mem::transmute_copy(&papmnk)) } - unsafe extern "system" fn NextHitOffset(this: *mut core::ffi::c_void, pcregion: *mut u32, paregion: *mut *mut super::super::Storage::IndexServer::FILTERREGION) -> i32 - where - Identity: ISearchQueryHits_Impl, - { + unsafe extern "system" fn NextHitOffset(this: *mut core::ffi::c_void, pcregion: *mut u32, paregion: *mut *mut super::super::Storage::IndexServer::FILTERREGION) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchQueryHits_Impl::NextHitOffset(this, core::mem::transmute_copy(&pcregion), core::mem::transmute_copy(&paregion)) } @@ -6809,7 +5108,7 @@ impl ISearchQueryHits_Vtbl { iid == &::IID } } -pub trait ISearchRoot_Impl: Sized { +pub trait ISearchRoot_Impl: Sized + windows_core::IUnknownImpl { fn SetSchedule(&self, psztaskarg: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Schedule(&self) -> windows_core::Result; fn SetRootURL(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -6835,21 +5134,12 @@ pub trait ISearchRoot_Impl: Sized { } impl windows_core::RuntimeName for ISearchRoot {} impl ISearchRoot_Vtbl { - pub const fn new() -> ISearchRoot_Vtbl - where - Identity: ISearchRoot_Impl, - { - unsafe extern "system" fn SetSchedule(this: *mut core::ffi::c_void, psztaskarg: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + pub const fn new() -> ISearchRoot_Vtbl { + unsafe extern "system" fn SetSchedule(this: *mut core::ffi::c_void, psztaskarg: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetSchedule(this, core::mem::transmute(&psztaskarg)).into() } - unsafe extern "system" fn Schedule(this: *mut core::ffi::c_void, ppsztaskarg: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn Schedule(this: *mut core::ffi::c_void, ppsztaskarg: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::Schedule(this) { Ok(ok__) => { @@ -6859,17 +5149,11 @@ impl ISearchRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRootURL(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn SetRootURL(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetRootURL(this, core::mem::transmute(&pszurl)).into() } - unsafe extern "system" fn RootURL(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn RootURL(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::RootURL(this) { Ok(ok__) => { @@ -6879,17 +5163,11 @@ impl ISearchRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsHierarchical(this: *mut core::ffi::c_void, fishierarchical: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn SetIsHierarchical(this: *mut core::ffi::c_void, fishierarchical: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetIsHierarchical(this, core::mem::transmute_copy(&fishierarchical)).into() } - unsafe extern "system" fn IsHierarchical(this: *mut core::ffi::c_void, pfishierarchical: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn IsHierarchical(this: *mut core::ffi::c_void, pfishierarchical: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::IsHierarchical(this) { Ok(ok__) => { @@ -6899,17 +5177,11 @@ impl ISearchRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProvidesNotifications(this: *mut core::ffi::c_void, fprovidesnotifications: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn SetProvidesNotifications(this: *mut core::ffi::c_void, fprovidesnotifications: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetProvidesNotifications(this, core::mem::transmute_copy(&fprovidesnotifications)).into() } - unsafe extern "system" fn ProvidesNotifications(this: *mut core::ffi::c_void, pfprovidesnotifications: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn ProvidesNotifications(this: *mut core::ffi::c_void, pfprovidesnotifications: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::ProvidesNotifications(this) { Ok(ok__) => { @@ -6919,17 +5191,11 @@ impl ISearchRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseNotificationsOnly(this: *mut core::ffi::c_void, fusenotificationsonly: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn SetUseNotificationsOnly(this: *mut core::ffi::c_void, fusenotificationsonly: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetUseNotificationsOnly(this, core::mem::transmute_copy(&fusenotificationsonly)).into() } - unsafe extern "system" fn UseNotificationsOnly(this: *mut core::ffi::c_void, pfusenotificationsonly: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn UseNotificationsOnly(this: *mut core::ffi::c_void, pfusenotificationsonly: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::UseNotificationsOnly(this) { Ok(ok__) => { @@ -6939,17 +5205,11 @@ impl ISearchRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnumerationDepth(this: *mut core::ffi::c_void, dwdepth: u32) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn SetEnumerationDepth(this: *mut core::ffi::c_void, dwdepth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetEnumerationDepth(this, core::mem::transmute_copy(&dwdepth)).into() } - unsafe extern "system" fn EnumerationDepth(this: *mut core::ffi::c_void, pdwdepth: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn EnumerationDepth(this: *mut core::ffi::c_void, pdwdepth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::EnumerationDepth(this) { Ok(ok__) => { @@ -6959,17 +5219,11 @@ impl ISearchRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHostDepth(this: *mut core::ffi::c_void, dwdepth: u32) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn SetHostDepth(this: *mut core::ffi::c_void, dwdepth: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetHostDepth(this, core::mem::transmute_copy(&dwdepth)).into() } - unsafe extern "system" fn HostDepth(this: *mut core::ffi::c_void, pdwdepth: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn HostDepth(this: *mut core::ffi::c_void, pdwdepth: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::HostDepth(this) { Ok(ok__) => { @@ -6979,17 +5233,11 @@ impl ISearchRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFollowDirectories(this: *mut core::ffi::c_void, ffollowdirectories: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn SetFollowDirectories(this: *mut core::ffi::c_void, ffollowdirectories: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetFollowDirectories(this, core::mem::transmute_copy(&ffollowdirectories)).into() } - unsafe extern "system" fn FollowDirectories(this: *mut core::ffi::c_void, pffollowdirectories: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn FollowDirectories(this: *mut core::ffi::c_void, pffollowdirectories: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::FollowDirectories(this) { Ok(ok__) => { @@ -6999,17 +5247,11 @@ impl ISearchRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationType(this: *mut core::ffi::c_void, authtype: AUTH_TYPE) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn SetAuthenticationType(this: *mut core::ffi::c_void, authtype: AUTH_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetAuthenticationType(this, core::mem::transmute_copy(&authtype)).into() } - unsafe extern "system" fn AuthenticationType(this: *mut core::ffi::c_void, pauthtype: *mut AUTH_TYPE) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn AuthenticationType(this: *mut core::ffi::c_void, pauthtype: *mut AUTH_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::AuthenticationType(this) { Ok(ok__) => { @@ -7019,17 +5261,11 @@ impl ISearchRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUser(this: *mut core::ffi::c_void, pszuser: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn SetUser(this: *mut core::ffi::c_void, pszuser: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetUser(this, core::mem::transmute(&pszuser)).into() } - unsafe extern "system" fn User(this: *mut core::ffi::c_void, ppszuser: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn User(this: *mut core::ffi::c_void, ppszuser: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::User(this) { Ok(ok__) => { @@ -7039,17 +5275,11 @@ impl ISearchRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, pszpassword: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, pszpassword: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetPassword(this, core::mem::transmute(&pszpassword)).into() } - unsafe extern "system" fn Password(this: *mut core::ffi::c_void, ppszpassword: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchRoot_Impl, - { + unsafe extern "system" fn Password(this: *mut core::ffi::c_void, ppszpassword: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::Password(this) { Ok(ok__) => { @@ -7089,7 +5319,7 @@ impl ISearchRoot_Vtbl { iid == &::IID } } -pub trait ISearchScopeRule_Impl: Sized { +pub trait ISearchScopeRule_Impl: Sized + windows_core::IUnknownImpl { fn PatternOrURL(&self) -> windows_core::Result; fn IsIncluded(&self) -> windows_core::Result; fn IsDefault(&self) -> windows_core::Result; @@ -7097,14 +5327,8 @@ pub trait ISearchScopeRule_Impl: Sized { } impl windows_core::RuntimeName for ISearchScopeRule {} impl ISearchScopeRule_Vtbl { - pub const fn new() -> ISearchScopeRule_Vtbl - where - Identity: ISearchScopeRule_Impl, - { - unsafe extern "system" fn PatternOrURL(this: *mut core::ffi::c_void, ppszpatternorurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchScopeRule_Impl, - { + pub const fn new() -> ISearchScopeRule_Vtbl { + unsafe extern "system" fn PatternOrURL(this: *mut core::ffi::c_void, ppszpatternorurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchScopeRule_Impl::PatternOrURL(this) { Ok(ok__) => { @@ -7114,10 +5338,7 @@ impl ISearchScopeRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsIncluded(this: *mut core::ffi::c_void, pfisincluded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchScopeRule_Impl, - { + unsafe extern "system" fn IsIncluded(this: *mut core::ffi::c_void, pfisincluded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchScopeRule_Impl::IsIncluded(this) { Ok(ok__) => { @@ -7127,10 +5348,7 @@ impl ISearchScopeRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pfisdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchScopeRule_Impl, - { + unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pfisdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchScopeRule_Impl::IsDefault(this) { Ok(ok__) => { @@ -7140,10 +5358,7 @@ impl ISearchScopeRule_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FollowFlags(this: *mut core::ffi::c_void, pfollowflags: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchScopeRule_Impl, - { + unsafe extern "system" fn FollowFlags(this: *mut core::ffi::c_void, pfollowflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchScopeRule_Impl::FollowFlags(this) { Ok(ok__) => { @@ -7166,21 +5381,15 @@ impl ISearchScopeRule_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISearchViewChangedSink_Impl: Sized { +pub trait ISearchViewChangedSink_Impl: Sized + windows_core::IUnknownImpl { fn OnChange(&self, pdwdocid: *const i32, pchange: *const SEARCH_ITEM_CHANGE, pfinview: *const super::super::Foundation::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ISearchViewChangedSink {} #[cfg(feature = "Win32_System_Com")] impl ISearchViewChangedSink_Vtbl { - pub const fn new() -> ISearchViewChangedSink_Vtbl - where - Identity: ISearchViewChangedSink_Impl, - { - unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, pdwdocid: *const i32, pchange: *const SEARCH_ITEM_CHANGE, pfinview: *const super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISearchViewChangedSink_Impl, - { + pub const fn new() -> ISearchViewChangedSink_Vtbl { + unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, pdwdocid: *const i32, pchange: *const SEARCH_ITEM_CHANGE, pfinview: *const super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchViewChangedSink_Impl::OnChange(this, core::mem::transmute_copy(&pdwdocid), core::mem::transmute_copy(&pchange), core::mem::transmute_copy(&pfinview)).into() } @@ -7191,7 +5400,7 @@ impl ISearchViewChangedSink_Vtbl { } } #[cfg(feature = "Win32_Security_Authorization")] -pub trait ISecurityInfo_Impl: Sized { +pub trait ISecurityInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentTrustee(&self) -> windows_core::Result<*mut super::super::Security::Authorization::TRUSTEE_W>; fn GetObjectTypes(&self, cobjecttypes: *mut u32, rgobjecttypes: *mut *mut windows_core::GUID) -> windows_core::Result<()>; fn GetPermissions(&self, objecttype: &windows_core::GUID) -> windows_core::Result; @@ -7200,14 +5409,8 @@ pub trait ISecurityInfo_Impl: Sized { impl windows_core::RuntimeName for ISecurityInfo {} #[cfg(feature = "Win32_Security_Authorization")] impl ISecurityInfo_Vtbl { - pub const fn new() -> ISecurityInfo_Vtbl - where - Identity: ISecurityInfo_Impl, - { - unsafe extern "system" fn GetCurrentTrustee(this: *mut core::ffi::c_void, pptrustee: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT - where - Identity: ISecurityInfo_Impl, - { + pub const fn new() -> ISecurityInfo_Vtbl { + unsafe extern "system" fn GetCurrentTrustee(this: *mut core::ffi::c_void, pptrustee: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityInfo_Impl::GetCurrentTrustee(this) { Ok(ok__) => { @@ -7217,17 +5420,11 @@ impl ISecurityInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectTypes(this: *mut core::ffi::c_void, cobjecttypes: *mut u32, rgobjecttypes: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISecurityInfo_Impl, - { + unsafe extern "system" fn GetObjectTypes(this: *mut core::ffi::c_void, cobjecttypes: *mut u32, rgobjecttypes: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInfo_Impl::GetObjectTypes(this, core::mem::transmute_copy(&cobjecttypes), core::mem::transmute_copy(&rgobjecttypes)).into() } - unsafe extern "system" fn GetPermissions(this: *mut core::ffi::c_void, objecttype: windows_core::GUID, ppermissions: *mut u32) -> windows_core::HRESULT - where - Identity: ISecurityInfo_Impl, - { + unsafe extern "system" fn GetPermissions(this: *mut core::ffi::c_void, objecttype: windows_core::GUID, ppermissions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISecurityInfo_Impl::GetPermissions(this, core::mem::transmute(&objecttype)) { Ok(ok__) => { @@ -7248,19 +5445,13 @@ impl ISecurityInfo_Vtbl { iid == &::IID } } -pub trait IService_Impl: Sized { +pub trait IService_Impl: Sized + windows_core::IUnknownImpl { fn InvokeService(&self, punkinner: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IService {} impl IService_Vtbl { - pub const fn new() -> IService_Vtbl - where - Identity: IService_Impl, - { - unsafe extern "system" fn InvokeService(this: *mut core::ffi::c_void, punkinner: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IService_Impl, - { + pub const fn new() -> IService_Vtbl { + unsafe extern "system" fn InvokeService(this: *mut core::ffi::c_void, punkinner: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IService_Impl::InvokeService(this, windows_core::from_raw_borrowed(&punkinner)).into() } @@ -7271,7 +5462,7 @@ impl IService_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait ISessionProperties_Impl: Sized { +pub trait ISessionProperties_Impl: Sized + windows_core::IUnknownImpl { fn GetProperties(&self, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::Result<()>; fn SetProperties(&self, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::Result<()>; } @@ -7279,21 +5470,12 @@ pub trait ISessionProperties_Impl: Sized { impl windows_core::RuntimeName for ISessionProperties {} #[cfg(feature = "Win32_Storage_IndexServer")] impl ISessionProperties_Vtbl { - pub const fn new() -> ISessionProperties_Vtbl - where - Identity: ISessionProperties_Impl, - { - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: ISessionProperties_Impl, - { + pub const fn new() -> ISessionProperties_Vtbl { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISessionProperties_Impl::GetProperties(this, core::mem::transmute_copy(&cpropertyidsets), core::mem::transmute_copy(&rgpropertyidsets), core::mem::transmute_copy(&pcpropertysets), core::mem::transmute_copy(&prgpropertysets)).into() } - unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: ISessionProperties_Impl, - { + unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISessionProperties_Impl::SetProperties(this, core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets)).into() } @@ -7307,35 +5489,23 @@ impl ISessionProperties_Vtbl { iid == &::IID } } -pub trait ISimpleCommandCreator_Impl: Sized { +pub trait ISimpleCommandCreator_Impl: Sized + windows_core::IUnknownImpl { fn CreateICommand(&self, ppiunknown: *mut Option, pouterunk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn VerifyCatalog(&self, pwszmachine: &windows_core::PCWSTR, pwszcatalogname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetDefaultCatalog(&self, pwszcatalogname: &windows_core::PCWSTR, cwcin: u32, pcwcout: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISimpleCommandCreator {} impl ISimpleCommandCreator_Vtbl { - pub const fn new() -> ISimpleCommandCreator_Vtbl - where - Identity: ISimpleCommandCreator_Impl, - { - unsafe extern "system" fn CreateICommand(this: *mut core::ffi::c_void, ppiunknown: *mut *mut core::ffi::c_void, pouterunk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISimpleCommandCreator_Impl, - { + pub const fn new() -> ISimpleCommandCreator_Vtbl { + unsafe extern "system" fn CreateICommand(this: *mut core::ffi::c_void, ppiunknown: *mut *mut core::ffi::c_void, pouterunk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimpleCommandCreator_Impl::CreateICommand(this, core::mem::transmute_copy(&ppiunknown), windows_core::from_raw_borrowed(&pouterunk)).into() } - unsafe extern "system" fn VerifyCatalog(this: *mut core::ffi::c_void, pwszmachine: windows_core::PCWSTR, pwszcatalogname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISimpleCommandCreator_Impl, - { + unsafe extern "system" fn VerifyCatalog(this: *mut core::ffi::c_void, pwszmachine: windows_core::PCWSTR, pwszcatalogname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimpleCommandCreator_Impl::VerifyCatalog(this, core::mem::transmute(&pwszmachine), core::mem::transmute(&pwszcatalogname)).into() } - unsafe extern "system" fn GetDefaultCatalog(this: *mut core::ffi::c_void, pwszcatalogname: windows_core::PCWSTR, cwcin: u32, pcwcout: *mut u32) -> windows_core::HRESULT - where - Identity: ISimpleCommandCreator_Impl, - { + unsafe extern "system" fn GetDefaultCatalog(this: *mut core::ffi::c_void, pwszcatalogname: windows_core::PCWSTR, cwcin: u32, pcwcout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimpleCommandCreator_Impl::GetDefaultCatalog(this, core::mem::transmute(&pwszcatalogname), core::mem::transmute_copy(&cwcin), core::mem::transmute_copy(&pcwcout)).into() } @@ -7351,21 +5521,15 @@ impl ISimpleCommandCreator_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait ISourcesRowset_Impl: Sized { +pub trait ISourcesRowset_Impl: Sized + windows_core::IUnknownImpl { fn GetSourcesRowset(&self, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID, cpropertysets: u32, rgproperties: *mut DBPROPSET, ppsourcesrowset: *mut Option) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Storage_IndexServer")] impl windows_core::RuntimeName for ISourcesRowset {} #[cfg(feature = "Win32_Storage_IndexServer")] impl ISourcesRowset_Vtbl { - pub const fn new() -> ISourcesRowset_Vtbl - where - Identity: ISourcesRowset_Impl, - { - unsafe extern "system" fn GetSourcesRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, cpropertysets: u32, rgproperties: *mut DBPROPSET, ppsourcesrowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISourcesRowset_Impl, - { + pub const fn new() -> ISourcesRowset_Vtbl { + unsafe extern "system" fn GetSourcesRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, cpropertysets: u32, rgproperties: *mut DBPROPSET, ppsourcesrowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISourcesRowset_Impl::GetSourcesRowset(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgproperties), core::mem::transmute_copy(&ppsourcesrowset)).into() } @@ -7375,35 +5539,23 @@ impl ISourcesRowset_Vtbl { iid == &::IID } } -pub trait IStemmer_Impl: Sized { +pub trait IStemmer_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GenerateWordForms(&self, pwcinbuf: &windows_core::PCWSTR, cwc: u32, pstemsink: Option<&IWordFormSink>) -> windows_core::Result<()>; fn GetLicenseToUse(&self, ppwcslicense: *const *const u16) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IStemmer {} impl IStemmer_Vtbl { - pub const fn new() -> IStemmer_Vtbl - where - Identity: IStemmer_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IStemmer_Impl, - { + pub const fn new() -> IStemmer_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemmer_Impl::Init(this, core::mem::transmute_copy(&ulmaxtokensize), core::mem::transmute_copy(&pflicense)).into() } - unsafe extern "system" fn GenerateWordForms(this: *mut core::ffi::c_void, pwcinbuf: windows_core::PCWSTR, cwc: u32, pstemsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStemmer_Impl, - { + unsafe extern "system" fn GenerateWordForms(this: *mut core::ffi::c_void, pwcinbuf: windows_core::PCWSTR, cwc: u32, pstemsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemmer_Impl::GenerateWordForms(this, core::mem::transmute(&pwcinbuf), core::mem::transmute_copy(&cwc), windows_core::from_raw_borrowed(&pstemsink)).into() } - unsafe extern "system" fn GetLicenseToUse(this: *mut core::ffi::c_void, ppwcslicense: *const *const u16) -> windows_core::HRESULT - where - Identity: IStemmer_Impl, - { + unsafe extern "system" fn GetLicenseToUse(this: *mut core::ffi::c_void, ppwcslicense: *const *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemmer_Impl::GetLicenseToUse(this, core::mem::transmute_copy(&ppwcslicense)).into() } @@ -7418,7 +5570,7 @@ impl IStemmer_Vtbl { iid == &::IID } } -pub trait ISubscriptionItem_Impl: Sized { +pub trait ISubscriptionItem_Impl: Sized + windows_core::IUnknownImpl { fn GetCookie(&self) -> windows_core::Result; fn GetSubscriptionItemInfo(&self, psubscriptioniteminfo: *mut SUBSCRIPTIONITEMINFO) -> windows_core::Result<()>; fn SetSubscriptionItemInfo(&self, psubscriptioniteminfo: *const SUBSCRIPTIONITEMINFO) -> windows_core::Result<()>; @@ -7429,14 +5581,8 @@ pub trait ISubscriptionItem_Impl: Sized { } impl windows_core::RuntimeName for ISubscriptionItem {} impl ISubscriptionItem_Vtbl { - pub const fn new() -> ISubscriptionItem_Vtbl - where - Identity: ISubscriptionItem_Impl, - { - unsafe extern "system" fn GetCookie(this: *mut core::ffi::c_void, pcookie: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISubscriptionItem_Impl, - { + pub const fn new() -> ISubscriptionItem_Vtbl { + unsafe extern "system" fn GetCookie(this: *mut core::ffi::c_void, pcookie: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISubscriptionItem_Impl::GetCookie(this) { Ok(ok__) => { @@ -7446,38 +5592,23 @@ impl ISubscriptionItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubscriptionItemInfo(this: *mut core::ffi::c_void, psubscriptioniteminfo: *mut SUBSCRIPTIONITEMINFO) -> windows_core::HRESULT - where - Identity: ISubscriptionItem_Impl, - { + unsafe extern "system" fn GetSubscriptionItemInfo(this: *mut core::ffi::c_void, psubscriptioniteminfo: *mut SUBSCRIPTIONITEMINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionItem_Impl::GetSubscriptionItemInfo(this, core::mem::transmute_copy(&psubscriptioniteminfo)).into() } - unsafe extern "system" fn SetSubscriptionItemInfo(this: *mut core::ffi::c_void, psubscriptioniteminfo: *const SUBSCRIPTIONITEMINFO) -> windows_core::HRESULT - where - Identity: ISubscriptionItem_Impl, - { + unsafe extern "system" fn SetSubscriptionItemInfo(this: *mut core::ffi::c_void, psubscriptioniteminfo: *const SUBSCRIPTIONITEMINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionItem_Impl::SetSubscriptionItemInfo(this, core::mem::transmute_copy(&psubscriptioniteminfo)).into() } - unsafe extern "system" fn ReadProperties(this: *mut core::ffi::c_void, ncount: u32, rgwszname: *const windows_core::PCWSTR, rgvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISubscriptionItem_Impl, - { + unsafe extern "system" fn ReadProperties(this: *mut core::ffi::c_void, ncount: u32, rgwszname: *const windows_core::PCWSTR, rgvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionItem_Impl::ReadProperties(this, core::mem::transmute_copy(&ncount), core::mem::transmute_copy(&rgwszname), core::mem::transmute_copy(&rgvalue)).into() } - unsafe extern "system" fn WriteProperties(this: *mut core::ffi::c_void, ncount: u32, rgwszname: *const windows_core::PCWSTR, rgvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISubscriptionItem_Impl, - { + unsafe extern "system" fn WriteProperties(this: *mut core::ffi::c_void, ncount: u32, rgwszname: *const windows_core::PCWSTR, rgvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionItem_Impl::WriteProperties(this, core::mem::transmute_copy(&ncount), core::mem::transmute_copy(&rgwszname), core::mem::transmute_copy(&rgvalue)).into() } - unsafe extern "system" fn EnumProperties(this: *mut core::ffi::c_void, ppenumitemproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISubscriptionItem_Impl, - { + unsafe extern "system" fn EnumProperties(this: *mut core::ffi::c_void, ppenumitemproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISubscriptionItem_Impl::EnumProperties(this) { Ok(ok__) => { @@ -7487,10 +5618,7 @@ impl ISubscriptionItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISubscriptionItem_Impl, - { + unsafe extern "system" fn NotifyChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionItem_Impl::NotifyChanged(this).into() } @@ -7509,7 +5637,7 @@ impl ISubscriptionItem_Vtbl { iid == &::IID } } -pub trait ISubscriptionMgr_Impl: Sized { +pub trait ISubscriptionMgr_Impl: Sized + windows_core::IUnknownImpl { fn DeleteSubscription(&self, pwszurl: &windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn UpdateSubscription(&self, pwszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; fn UpdateAll(&self) -> windows_core::Result<()>; @@ -7521,35 +5649,20 @@ pub trait ISubscriptionMgr_Impl: Sized { } impl windows_core::RuntimeName for ISubscriptionMgr {} impl ISubscriptionMgr_Vtbl { - pub const fn new() -> ISubscriptionMgr_Vtbl - where - Identity: ISubscriptionMgr_Impl, - { - unsafe extern "system" fn DeleteSubscription(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr_Impl, - { + pub const fn new() -> ISubscriptionMgr_Vtbl { + unsafe extern "system" fn DeleteSubscription(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr_Impl::DeleteSubscription(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn UpdateSubscription(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr_Impl, - { + unsafe extern "system" fn UpdateSubscription(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr_Impl::UpdateSubscription(this, core::mem::transmute(&pwszurl)).into() } - unsafe extern "system" fn UpdateAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr_Impl, - { + unsafe extern "system" fn UpdateAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr_Impl::UpdateAll(this).into() } - unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pfsubscribed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr_Impl, - { + unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pfsubscribed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISubscriptionMgr_Impl::IsSubscribed(this, core::mem::transmute(&pwszurl)) { Ok(ok__) => { @@ -7559,31 +5672,19 @@ impl ISubscriptionMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubscriptionInfo(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr_Impl, - { + unsafe extern "system" fn GetSubscriptionInfo(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr_Impl::GetSubscriptionInfo(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn GetDefaultInfo(this: *mut core::ffi::c_void, subtype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr_Impl, - { + unsafe extern "system" fn GetDefaultInfo(this: *mut core::ffi::c_void, subtype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr_Impl::GetDefaultInfo(this, core::mem::transmute_copy(&subtype), core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn ShowSubscriptionProperties(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr_Impl, - { + unsafe extern "system" fn ShowSubscriptionProperties(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr_Impl::ShowSubscriptionProperties(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn CreateSubscription(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pwszurl: windows_core::PCWSTR, pwszfriendlyname: windows_core::PCWSTR, dwflags: u32, substype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr_Impl, - { + unsafe extern "system" fn CreateSubscription(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pwszurl: windows_core::PCWSTR, pwszfriendlyname: windows_core::PCWSTR, dwflags: u32, substype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr_Impl::CreateSubscription(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&pwszurl), core::mem::transmute(&pwszfriendlyname), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&substype), core::mem::transmute_copy(&pinfo)).into() } @@ -7614,14 +5715,8 @@ pub trait ISubscriptionMgr2_Impl: Sized + ISubscriptionMgr_Impl { } impl windows_core::RuntimeName for ISubscriptionMgr2 {} impl ISubscriptionMgr2_Vtbl { - pub const fn new() -> ISubscriptionMgr2_Vtbl - where - Identity: ISubscriptionMgr2_Impl, - { - unsafe extern "system" fn GetItemFromURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, ppsubscriptionitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr2_Impl, - { + pub const fn new() -> ISubscriptionMgr2_Vtbl { + unsafe extern "system" fn GetItemFromURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, ppsubscriptionitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISubscriptionMgr2_Impl::GetItemFromURL(this, core::mem::transmute(&pwszurl)) { Ok(ok__) => { @@ -7631,10 +5726,7 @@ impl ISubscriptionMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemFromCookie(this: *mut core::ffi::c_void, psubscriptioncookie: *const windows_core::GUID, ppsubscriptionitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr2_Impl, - { + unsafe extern "system" fn GetItemFromCookie(this: *mut core::ffi::c_void, psubscriptioncookie: *const windows_core::GUID, ppsubscriptionitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISubscriptionMgr2_Impl::GetItemFromCookie(this, core::mem::transmute_copy(&psubscriptioncookie)) { Ok(ok__) => { @@ -7644,17 +5736,11 @@ impl ISubscriptionMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSubscriptionRunState(this: *mut core::ffi::c_void, dwnumcookies: u32, pcookies: *const windows_core::GUID, pdwrunstate: *mut u32) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr2_Impl, - { + unsafe extern "system" fn GetSubscriptionRunState(this: *mut core::ffi::c_void, dwnumcookies: u32, pcookies: *const windows_core::GUID, pdwrunstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr2_Impl::GetSubscriptionRunState(this, core::mem::transmute_copy(&dwnumcookies), core::mem::transmute_copy(&pcookies), core::mem::transmute_copy(&pdwrunstate)).into() } - unsafe extern "system" fn EnumSubscriptions(this: *mut core::ffi::c_void, dwflags: u32, ppenumsubscriptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr2_Impl, - { + unsafe extern "system" fn EnumSubscriptions(this: *mut core::ffi::c_void, dwflags: u32, ppenumsubscriptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISubscriptionMgr2_Impl::EnumSubscriptions(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -7664,24 +5750,15 @@ impl ISubscriptionMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateItems(this: *mut core::ffi::c_void, dwflags: u32, dwnumcookies: u32, pcookies: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr2_Impl, - { + unsafe extern "system" fn UpdateItems(this: *mut core::ffi::c_void, dwflags: u32, dwnumcookies: u32, pcookies: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr2_Impl::UpdateItems(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwnumcookies), core::mem::transmute_copy(&pcookies)).into() } - unsafe extern "system" fn AbortItems(this: *mut core::ffi::c_void, dwnumcookies: u32, pcookies: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr2_Impl, - { + unsafe extern "system" fn AbortItems(this: *mut core::ffi::c_void, dwnumcookies: u32, pcookies: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr2_Impl::AbortItems(this, core::mem::transmute_copy(&dwnumcookies), core::mem::transmute_copy(&pcookies)).into() } - unsafe extern "system" fn AbortAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISubscriptionMgr2_Impl, - { + unsafe extern "system" fn AbortAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISubscriptionMgr2_Impl::AbortAll(this).into() } @@ -7708,14 +5785,8 @@ pub trait ITableCreation_Impl: Sized + ITableDefinition_Impl { impl windows_core::RuntimeName for ITableCreation {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] impl ITableCreation_Vtbl { - pub const fn new() -> ITableCreation_Vtbl - where - Identity: ITableCreation_Impl, - { - unsafe extern "system" fn GetTableDefinition(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pccolumndescs: *mut usize, prgcolumndescs: *mut *mut DBCOLUMNDESC, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET, pcconstraintdescs: *mut u32, prgconstraintdescs: *mut *mut DBCONSTRAINTDESC, ppwszstringbuffer: *mut *mut u16) -> windows_core::HRESULT - where - Identity: ITableCreation_Impl, - { + pub const fn new() -> ITableCreation_Vtbl { + unsafe extern "system" fn GetTableDefinition(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pccolumndescs: *mut usize, prgcolumndescs: *mut *mut DBCOLUMNDESC, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET, pcconstraintdescs: *mut u32, prgconstraintdescs: *mut *mut DBCONSTRAINTDESC, ppwszstringbuffer: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableCreation_Impl::GetTableDefinition(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pccolumndescs), core::mem::transmute_copy(&prgcolumndescs), core::mem::transmute_copy(&pcpropertysets), core::mem::transmute_copy(&prgpropertysets), core::mem::transmute_copy(&pcconstraintdescs), core::mem::transmute_copy(&prgconstraintdescs), core::mem::transmute_copy(&ppwszstringbuffer)).into() } @@ -7726,7 +5797,7 @@ impl ITableCreation_Vtbl { } } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] -pub trait ITableDefinition_Impl: Sized { +pub trait ITableDefinition_Impl: Sized + windows_core::IUnknownImpl { fn CreateTable(&self, punkouter: Option<&windows_core::IUnknown>, ptableid: *const super::super::Storage::IndexServer::DBID, ccolumndescs: usize, rgcolumndescs: *const DBCOLUMNDESC, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pptableid: *mut *mut super::super::Storage::IndexServer::DBID, pprowset: *mut Option) -> windows_core::Result<()>; fn DropTable(&self, ptableid: *const super::super::Storage::IndexServer::DBID) -> windows_core::Result<()>; fn AddColumn(&self, ptableid: *const super::super::Storage::IndexServer::DBID, pcolumndesc: *const DBCOLUMNDESC, ppcolumnid: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::Result<()>; @@ -7736,35 +5807,20 @@ pub trait ITableDefinition_Impl: Sized { impl windows_core::RuntimeName for ITableDefinition {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] impl ITableDefinition_Vtbl { - pub const fn new() -> ITableDefinition_Vtbl - where - Identity: ITableDefinition_Impl, - { - unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, ccolumndescs: usize, rgcolumndescs: *const DBCOLUMNDESC, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pptableid: *mut *mut super::super::Storage::IndexServer::DBID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITableDefinition_Impl, - { + pub const fn new() -> ITableDefinition_Vtbl { + unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, ccolumndescs: usize, rgcolumndescs: *const DBCOLUMNDESC, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pptableid: *mut *mut super::super::Storage::IndexServer::DBID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableDefinition_Impl::CreateTable(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&ccolumndescs), core::mem::transmute_copy(&rgcolumndescs), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets), core::mem::transmute_copy(&pptableid), core::mem::transmute_copy(&pprowset)).into() } - unsafe extern "system" fn DropTable(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: ITableDefinition_Impl, - { + unsafe extern "system" fn DropTable(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableDefinition_Impl::DropTable(this, core::mem::transmute_copy(&ptableid)).into() } - unsafe extern "system" fn AddColumn(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pcolumndesc: *const DBCOLUMNDESC, ppcolumnid: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: ITableDefinition_Impl, - { + unsafe extern "system" fn AddColumn(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pcolumndesc: *const DBCOLUMNDESC, ppcolumnid: *mut *mut super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableDefinition_Impl::AddColumn(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pcolumndesc), core::mem::transmute_copy(&ppcolumnid)).into() } - unsafe extern "system" fn DropColumn(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pcolumnid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: ITableDefinition_Impl, - { + unsafe extern "system" fn DropColumn(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pcolumnid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableDefinition_Impl::DropColumn(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pcolumnid)).into() } @@ -7790,28 +5846,16 @@ pub trait ITableDefinitionWithConstraints_Impl: Sized + ITableCreation_Impl { impl windows_core::RuntimeName for ITableDefinitionWithConstraints {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] impl ITableDefinitionWithConstraints_Vtbl { - pub const fn new() -> ITableDefinitionWithConstraints_Vtbl - where - Identity: ITableDefinitionWithConstraints_Impl, - { - unsafe extern "system" fn AddConstraint(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pconstraintdesc: *const DBCONSTRAINTDESC) -> windows_core::HRESULT - where - Identity: ITableDefinitionWithConstraints_Impl, - { + pub const fn new() -> ITableDefinitionWithConstraints_Vtbl { + unsafe extern "system" fn AddConstraint(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pconstraintdesc: *const DBCONSTRAINTDESC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableDefinitionWithConstraints_Impl::AddConstraint(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pconstraintdesc)).into() } - unsafe extern "system" fn CreateTableWithConstraints(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, ccolumndescs: usize, rgcolumndescs: *mut DBCOLUMNDESC, cconstraintdescs: u32, rgconstraintdescs: *const DBCONSTRAINTDESC, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pptableid: *mut *mut super::super::Storage::IndexServer::DBID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITableDefinitionWithConstraints_Impl, - { + unsafe extern "system" fn CreateTableWithConstraints(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, ccolumndescs: usize, rgcolumndescs: *mut DBCOLUMNDESC, cconstraintdescs: u32, rgconstraintdescs: *const DBCONSTRAINTDESC, riid: *const windows_core::GUID, cpropertysets: u32, rgpropertysets: *mut DBPROPSET, pptableid: *mut *mut super::super::Storage::IndexServer::DBID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableDefinitionWithConstraints_Impl::CreateTableWithConstraints(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&ccolumndescs), core::mem::transmute_copy(&rgcolumndescs), core::mem::transmute_copy(&cconstraintdescs), core::mem::transmute_copy(&rgconstraintdescs), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets), core::mem::transmute_copy(&pptableid), core::mem::transmute_copy(&pprowset)).into() } - unsafe extern "system" fn DropConstraint(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pconstraintid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: ITableDefinitionWithConstraints_Impl, - { + unsafe extern "system" fn DropConstraint(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, pconstraintid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableDefinitionWithConstraints_Impl::DropConstraint(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&pconstraintid)).into() } @@ -7827,7 +5871,7 @@ impl ITableDefinitionWithConstraints_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait ITableRename_Impl: Sized { +pub trait ITableRename_Impl: Sized + windows_core::IUnknownImpl { fn RenameColumn(&self, ptableid: *const super::super::Storage::IndexServer::DBID, poldcolumnid: *const super::super::Storage::IndexServer::DBID, pnewcolumnid: *const super::super::Storage::IndexServer::DBID) -> windows_core::Result<()>; fn RenameTable(&self, poldtableid: *const super::super::Storage::IndexServer::DBID, poldindexid: *const super::super::Storage::IndexServer::DBID, pnewtableid: *const super::super::Storage::IndexServer::DBID, pnewindexid: *const super::super::Storage::IndexServer::DBID) -> windows_core::Result<()>; } @@ -7835,21 +5879,12 @@ pub trait ITableRename_Impl: Sized { impl windows_core::RuntimeName for ITableRename {} #[cfg(feature = "Win32_Storage_IndexServer")] impl ITableRename_Vtbl { - pub const fn new() -> ITableRename_Vtbl - where - Identity: ITableRename_Impl, - { - unsafe extern "system" fn RenameColumn(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, poldcolumnid: *const super::super::Storage::IndexServer::DBID, pnewcolumnid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: ITableRename_Impl, - { + pub const fn new() -> ITableRename_Vtbl { + unsafe extern "system" fn RenameColumn(this: *mut core::ffi::c_void, ptableid: *const super::super::Storage::IndexServer::DBID, poldcolumnid: *const super::super::Storage::IndexServer::DBID, pnewcolumnid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableRename_Impl::RenameColumn(this, core::mem::transmute_copy(&ptableid), core::mem::transmute_copy(&poldcolumnid), core::mem::transmute_copy(&pnewcolumnid)).into() } - unsafe extern "system" fn RenameTable(this: *mut core::ffi::c_void, poldtableid: *const super::super::Storage::IndexServer::DBID, poldindexid: *const super::super::Storage::IndexServer::DBID, pnewtableid: *const super::super::Storage::IndexServer::DBID, pnewindexid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT - where - Identity: ITableRename_Impl, - { + unsafe extern "system" fn RenameTable(this: *mut core::ffi::c_void, poldtableid: *const super::super::Storage::IndexServer::DBID, poldindexid: *const super::super::Storage::IndexServer::DBID, pnewtableid: *const super::super::Storage::IndexServer::DBID, pnewindexid: *const super::super::Storage::IndexServer::DBID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITableRename_Impl::RenameTable(this, core::mem::transmute_copy(&poldtableid), core::mem::transmute_copy(&poldindexid), core::mem::transmute_copy(&pnewtableid), core::mem::transmute_copy(&pnewindexid)).into() } @@ -7863,27 +5898,18 @@ impl ITableRename_Vtbl { iid == &::IID } } -pub trait ITokenCollection_Impl: Sized { +pub trait ITokenCollection_Impl: Sized + windows_core::IUnknownImpl { fn NumberOfTokens(&self, pcount: *const u32) -> windows_core::Result<()>; fn GetToken(&self, i: u32, pbegin: *mut u32, plength: *mut u32, ppsz: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITokenCollection {} impl ITokenCollection_Vtbl { - pub const fn new() -> ITokenCollection_Vtbl - where - Identity: ITokenCollection_Impl, - { - unsafe extern "system" fn NumberOfTokens(this: *mut core::ffi::c_void, pcount: *const u32) -> windows_core::HRESULT - where - Identity: ITokenCollection_Impl, - { + pub const fn new() -> ITokenCollection_Vtbl { + unsafe extern "system" fn NumberOfTokens(this: *mut core::ffi::c_void, pcount: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITokenCollection_Impl::NumberOfTokens(this, core::mem::transmute_copy(&pcount)).into() } - unsafe extern "system" fn GetToken(this: *mut core::ffi::c_void, i: u32, pbegin: *mut u32, plength: *mut u32, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITokenCollection_Impl, - { + unsafe extern "system" fn GetToken(this: *mut core::ffi::c_void, i: u32, pbegin: *mut u32, plength: *mut u32, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITokenCollection_Impl::GetToken(this, core::mem::transmute_copy(&i), core::mem::transmute_copy(&pbegin), core::mem::transmute_copy(&plength), core::mem::transmute_copy(&ppsz)).into() } @@ -7898,7 +5924,7 @@ impl ITokenCollection_Vtbl { } } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] -pub trait ITransactionJoin_Impl: Sized { +pub trait ITransactionJoin_Impl: Sized + windows_core::IUnknownImpl { fn GetOptionsObject(&self) -> windows_core::Result; fn JoinTransaction(&self, punktransactioncoord: Option<&windows_core::IUnknown>, isolevel: i32, isoflags: u32, potheroptions: Option<&super::DistributedTransactionCoordinator::ITransactionOptions>) -> windows_core::Result<()>; } @@ -7906,14 +5932,8 @@ pub trait ITransactionJoin_Impl: Sized { impl windows_core::RuntimeName for ITransactionJoin {} #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl ITransactionJoin_Vtbl { - pub const fn new() -> ITransactionJoin_Vtbl - where - Identity: ITransactionJoin_Impl, - { - unsafe extern "system" fn GetOptionsObject(this: *mut core::ffi::c_void, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionJoin_Impl, - { + pub const fn new() -> ITransactionJoin_Vtbl { + unsafe extern "system" fn GetOptionsObject(this: *mut core::ffi::c_void, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionJoin_Impl::GetOptionsObject(this) { Ok(ok__) => { @@ -7923,10 +5943,7 @@ impl ITransactionJoin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn JoinTransaction(this: *mut core::ffi::c_void, punktransactioncoord: *mut core::ffi::c_void, isolevel: i32, isoflags: u32, potheroptions: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionJoin_Impl, - { + unsafe extern "system" fn JoinTransaction(this: *mut core::ffi::c_void, punktransactioncoord: *mut core::ffi::c_void, isolevel: i32, isoflags: u32, potheroptions: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionJoin_Impl::JoinTransaction(this, windows_core::from_raw_borrowed(&punktransactioncoord), core::mem::transmute_copy(&isolevel), core::mem::transmute_copy(&isoflags), windows_core::from_raw_borrowed(&potheroptions)).into() } @@ -7949,14 +5966,8 @@ pub trait ITransactionLocal_Impl: Sized + super::DistributedTransactionCoordinat impl windows_core::RuntimeName for ITransactionLocal {} #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl ITransactionLocal_Vtbl { - pub const fn new() -> ITransactionLocal_Vtbl - where - Identity: ITransactionLocal_Impl, - { - unsafe extern "system" fn GetOptionsObject(this: *mut core::ffi::c_void, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionLocal_Impl, - { + pub const fn new() -> ITransactionLocal_Vtbl { + unsafe extern "system" fn GetOptionsObject(this: *mut core::ffi::c_void, ppoptions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionLocal_Impl::GetOptionsObject(this) { Ok(ok__) => { @@ -7966,10 +5977,7 @@ impl ITransactionLocal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartTransaction(this: *mut core::ffi::c_void, isolevel: i32, isoflags: u32, potheroptions: *mut core::ffi::c_void, pultransactionlevel: *mut u32) -> windows_core::HRESULT - where - Identity: ITransactionLocal_Impl, - { + unsafe extern "system" fn StartTransaction(this: *mut core::ffi::c_void, isolevel: i32, isoflags: u32, potheroptions: *mut core::ffi::c_void, pultransactionlevel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionLocal_Impl::StartTransaction(this, core::mem::transmute_copy(&isolevel), core::mem::transmute_copy(&isoflags), windows_core::from_raw_borrowed(&potheroptions), core::mem::transmute_copy(&pultransactionlevel)).into() } @@ -7984,21 +5992,15 @@ impl ITransactionLocal_Vtbl { } } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] -pub trait ITransactionObject_Impl: Sized { +pub trait ITransactionObject_Impl: Sized + windows_core::IUnknownImpl { fn GetTransactionObject(&self, ultransactionlevel: u32) -> windows_core::Result; } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl windows_core::RuntimeName for ITransactionObject {} #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl ITransactionObject_Vtbl { - pub const fn new() -> ITransactionObject_Vtbl - where - Identity: ITransactionObject_Impl, - { - unsafe extern "system" fn GetTransactionObject(this: *mut core::ffi::c_void, ultransactionlevel: u32, pptransactionobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransactionObject_Impl, - { + pub const fn new() -> ITransactionObject_Vtbl { + unsafe extern "system" fn GetTransactionObject(this: *mut core::ffi::c_void, ultransactionlevel: u32, pptransactionobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransactionObject_Impl::GetTransactionObject(this, core::mem::transmute_copy(&ultransactionlevel)) { Ok(ok__) => { @@ -8015,7 +6017,7 @@ impl ITransactionObject_Vtbl { } } #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] -pub trait ITrusteeAdmin_Impl: Sized { +pub trait ITrusteeAdmin_Impl: Sized + windows_core::IUnknownImpl { fn CompareTrustees(&self, ptrustee1: *const super::super::Security::Authorization::TRUSTEE_W, ptrustee2: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()>; fn CreateTrustee(&self, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::Result<()>; fn DeleteTrustee(&self, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()>; @@ -8026,42 +6028,24 @@ pub trait ITrusteeAdmin_Impl: Sized { impl windows_core::RuntimeName for ITrusteeAdmin {} #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] impl ITrusteeAdmin_Vtbl { - pub const fn new() -> ITrusteeAdmin_Vtbl - where - Identity: ITrusteeAdmin_Impl, - { - unsafe extern "system" fn CompareTrustees(this: *mut core::ffi::c_void, ptrustee1: *const super::super::Security::Authorization::TRUSTEE_W, ptrustee2: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT - where - Identity: ITrusteeAdmin_Impl, - { + pub const fn new() -> ITrusteeAdmin_Vtbl { + unsafe extern "system" fn CompareTrustees(this: *mut core::ffi::c_void, ptrustee1: *const super::super::Security::Authorization::TRUSTEE_W, ptrustee2: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrusteeAdmin_Impl::CompareTrustees(this, core::mem::transmute_copy(&ptrustee1), core::mem::transmute_copy(&ptrustee2)).into() } - unsafe extern "system" fn CreateTrustee(this: *mut core::ffi::c_void, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: ITrusteeAdmin_Impl, - { + unsafe extern "system" fn CreateTrustee(this: *mut core::ffi::c_void, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrusteeAdmin_Impl::CreateTrustee(this, core::mem::transmute_copy(&ptrustee), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets)).into() } - unsafe extern "system" fn DeleteTrustee(this: *mut core::ffi::c_void, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT - where - Identity: ITrusteeAdmin_Impl, - { + unsafe extern "system" fn DeleteTrustee(this: *mut core::ffi::c_void, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrusteeAdmin_Impl::DeleteTrustee(this, core::mem::transmute_copy(&ptrustee)).into() } - unsafe extern "system" fn SetTrusteeProperties(this: *mut core::ffi::c_void, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: ITrusteeAdmin_Impl, - { + unsafe extern "system" fn SetTrusteeProperties(this: *mut core::ffi::c_void, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, cpropertysets: u32, rgpropertysets: *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrusteeAdmin_Impl::SetTrusteeProperties(this, core::mem::transmute_copy(&ptrustee), core::mem::transmute_copy(&cpropertysets), core::mem::transmute_copy(&rgpropertysets)).into() } - unsafe extern "system" fn GetTrusteeProperties(this: *mut core::ffi::c_void, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT - where - Identity: ITrusteeAdmin_Impl, - { + unsafe extern "system" fn GetTrusteeProperties(this: *mut core::ffi::c_void, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, cpropertyidsets: u32, rgpropertyidsets: *const DBPROPIDSET, pcpropertysets: *mut u32, prgpropertysets: *mut *mut DBPROPSET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrusteeAdmin_Impl::GetTrusteeProperties(this, core::mem::transmute_copy(&ptrustee), core::mem::transmute_copy(&cpropertyidsets), core::mem::transmute_copy(&rgpropertyidsets), core::mem::transmute_copy(&pcpropertysets), core::mem::transmute_copy(&prgpropertysets)).into() } @@ -8079,7 +6063,7 @@ impl ITrusteeAdmin_Vtbl { } } #[cfg(feature = "Win32_Security_Authorization")] -pub trait ITrusteeGroupAdmin_Impl: Sized { +pub trait ITrusteeGroupAdmin_Impl: Sized + windows_core::IUnknownImpl { fn AddMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()>; fn DeleteMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()>; fn IsMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result; @@ -8090,28 +6074,16 @@ pub trait ITrusteeGroupAdmin_Impl: Sized { impl windows_core::RuntimeName for ITrusteeGroupAdmin {} #[cfg(feature = "Win32_Security_Authorization")] impl ITrusteeGroupAdmin_Vtbl { - pub const fn new() -> ITrusteeGroupAdmin_Vtbl - where - Identity: ITrusteeGroupAdmin_Impl, - { - unsafe extern "system" fn AddMember(this: *mut core::ffi::c_void, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT - where - Identity: ITrusteeGroupAdmin_Impl, - { + pub const fn new() -> ITrusteeGroupAdmin_Vtbl { + unsafe extern "system" fn AddMember(this: *mut core::ffi::c_void, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrusteeGroupAdmin_Impl::AddMember(this, core::mem::transmute_copy(&pmembershiptrustee), core::mem::transmute_copy(&pmembertrustee)).into() } - unsafe extern "system" fn DeleteMember(this: *mut core::ffi::c_void, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT - where - Identity: ITrusteeGroupAdmin_Impl, - { + unsafe extern "system" fn DeleteMember(this: *mut core::ffi::c_void, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrusteeGroupAdmin_Impl::DeleteMember(this, core::mem::transmute_copy(&pmembershiptrustee), core::mem::transmute_copy(&pmembertrustee)).into() } - unsafe extern "system" fn IsMember(this: *mut core::ffi::c_void, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W, pfstatus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITrusteeGroupAdmin_Impl, - { + unsafe extern "system" fn IsMember(this: *mut core::ffi::c_void, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W, pfstatus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITrusteeGroupAdmin_Impl::IsMember(this, core::mem::transmute_copy(&pmembershiptrustee), core::mem::transmute_copy(&pmembertrustee)) { Ok(ok__) => { @@ -8121,17 +6093,11 @@ impl ITrusteeGroupAdmin_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMembers(this: *mut core::ffi::c_void, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pcmembers: *mut u32, prgmembers: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT - where - Identity: ITrusteeGroupAdmin_Impl, - { + unsafe extern "system" fn GetMembers(this: *mut core::ffi::c_void, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pcmembers: *mut u32, prgmembers: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrusteeGroupAdmin_Impl::GetMembers(this, core::mem::transmute_copy(&pmembershiptrustee), core::mem::transmute_copy(&pcmembers), core::mem::transmute_copy(&prgmembers)).into() } - unsafe extern "system" fn GetMemberships(this: *mut core::ffi::c_void, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pcmemberships: *mut u32, prgmemberships: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT - where - Identity: ITrusteeGroupAdmin_Impl, - { + unsafe extern "system" fn GetMemberships(this: *mut core::ffi::c_void, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pcmemberships: *mut u32, prgmemberships: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrusteeGroupAdmin_Impl::GetMemberships(this, core::mem::transmute_copy(&ptrustee), core::mem::transmute_copy(&pcmemberships), core::mem::transmute_copy(&prgmemberships)).into() } @@ -8203,19 +6169,13 @@ impl IUMS { unsafe { windows_core::ScopedInterface::new(core::mem::transmute(&this.vtable)) } } } -pub trait IUMSInitialize_Impl: Sized { +pub trait IUMSInitialize_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pums: *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUMSInitialize {} impl IUMSInitialize_Vtbl { - pub const fn new() -> IUMSInitialize_Vtbl - where - Identity: IUMSInitialize_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pums: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUMSInitialize_Impl, - { + pub const fn new() -> IUMSInitialize_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pums: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUMSInitialize_Impl::Initialize(this, core::mem::transmute_copy(&pums)).into() } @@ -8226,7 +6186,7 @@ impl IUMSInitialize_Vtbl { } } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IUrlAccessor_Impl: Sized { +pub trait IUrlAccessor_Impl: Sized + windows_core::IUnknownImpl { fn AddRequestParameter(&self, pspec: *const super::Com::StructuredStorage::PROPSPEC, pvar: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; fn GetDocFormat(&self, wszdocformat: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::Result<()>; fn GetCLSID(&self) -> windows_core::Result; @@ -8245,28 +6205,16 @@ pub trait IUrlAccessor_Impl: Sized { impl windows_core::RuntimeName for IUrlAccessor {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] impl IUrlAccessor_Vtbl { - pub const fn new() -> IUrlAccessor_Vtbl - where - Identity: IUrlAccessor_Impl, - { - unsafe extern "system" fn AddRequestParameter(this: *mut core::ffi::c_void, pspec: *const super::Com::StructuredStorage::PROPSPEC, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + pub const fn new() -> IUrlAccessor_Vtbl { + unsafe extern "system" fn AddRequestParameter(this: *mut core::ffi::c_void, pspec: *const super::Com::StructuredStorage::PROPSPEC, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor_Impl::AddRequestParameter(this, core::mem::transmute_copy(&pspec), core::mem::transmute_copy(&pvar)).into() } - unsafe extern "system" fn GetDocFormat(this: *mut core::ffi::c_void, wszdocformat: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn GetDocFormat(this: *mut core::ffi::c_void, wszdocformat: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor_Impl::GetDocFormat(this, core::mem::transmute_copy(&wszdocformat), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwlength)).into() } - unsafe extern "system" fn GetCLSID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn GetCLSID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlAccessor_Impl::GetCLSID(this) { Ok(ok__) => { @@ -8276,24 +6224,15 @@ impl IUrlAccessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHost(this: *mut core::ffi::c_void, wszhost: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn GetHost(this: *mut core::ffi::c_void, wszhost: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor_Impl::GetHost(this, core::mem::transmute_copy(&wszhost), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwlength)).into() } - unsafe extern "system" fn IsDirectory(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn IsDirectory(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor_Impl::IsDirectory(this).into() } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pllsize: *mut u64) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pllsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlAccessor_Impl::GetSize(this) { Ok(ok__) => { @@ -8303,10 +6242,7 @@ impl IUrlAccessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastModified(this: *mut core::ffi::c_void, pftlastmodified: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn GetLastModified(this: *mut core::ffi::c_void, pftlastmodified: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlAccessor_Impl::GetLastModified(this) { Ok(ok__) => { @@ -8316,31 +6252,19 @@ impl IUrlAccessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, wszfilename: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, wszfilename: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor_Impl::GetFileName(this, core::mem::transmute_copy(&wszfilename), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwlength)).into() } - unsafe extern "system" fn GetSecurityDescriptor(this: *mut core::ffi::c_void, psd: *mut u8, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn GetSecurityDescriptor(this: *mut core::ffi::c_void, psd: *mut u8, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor_Impl::GetSecurityDescriptor(this, core::mem::transmute_copy(&psd), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwlength)).into() } - unsafe extern "system" fn GetRedirectedURL(this: *mut core::ffi::c_void, wszredirectedurl: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn GetRedirectedURL(this: *mut core::ffi::c_void, wszredirectedurl: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor_Impl::GetRedirectedURL(this, core::mem::transmute_copy(&wszredirectedurl), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwlength)).into() } - unsafe extern "system" fn GetSecurityProvider(this: *mut core::ffi::c_void, pspclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn GetSecurityProvider(this: *mut core::ffi::c_void, pspclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlAccessor_Impl::GetSecurityProvider(this) { Ok(ok__) => { @@ -8350,10 +6274,7 @@ impl IUrlAccessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BindToStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn BindToStream(this: *mut core::ffi::c_void, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlAccessor_Impl::BindToStream(this) { Ok(ok__) => { @@ -8363,10 +6284,7 @@ impl IUrlAccessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BindToFilter(this: *mut core::ffi::c_void, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUrlAccessor_Impl, - { + unsafe extern "system" fn BindToFilter(this: *mut core::ffi::c_void, ppfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlAccessor_Impl::BindToFilter(this) { Ok(ok__) => { @@ -8407,28 +6325,16 @@ pub trait IUrlAccessor2_Impl: Sized + IUrlAccessor_Impl { impl windows_core::RuntimeName for IUrlAccessor2 {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] impl IUrlAccessor2_Vtbl { - pub const fn new() -> IUrlAccessor2_Vtbl - where - Identity: IUrlAccessor2_Impl, - { - unsafe extern "system" fn GetDisplayUrl(this: *mut core::ffi::c_void, wszdocurl: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IUrlAccessor2_Impl, - { + pub const fn new() -> IUrlAccessor2_Vtbl { + unsafe extern "system" fn GetDisplayUrl(this: *mut core::ffi::c_void, wszdocurl: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor2_Impl::GetDisplayUrl(this, core::mem::transmute_copy(&wszdocurl), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwlength)).into() } - unsafe extern "system" fn IsDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUrlAccessor2_Impl, - { + unsafe extern "system" fn IsDocument(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor2_Impl::IsDocument(this).into() } - unsafe extern "system" fn GetCodePage(this: *mut core::ffi::c_void, wszcodepage: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT - where - Identity: IUrlAccessor2_Impl, - { + unsafe extern "system" fn GetCodePage(this: *mut core::ffi::c_void, wszcodepage: windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor2_Impl::GetCodePage(this, core::mem::transmute_copy(&wszcodepage), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwlength)).into() } @@ -8451,14 +6357,8 @@ pub trait IUrlAccessor3_Impl: Sized + IUrlAccessor2_Impl { impl windows_core::RuntimeName for IUrlAccessor3 {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] impl IUrlAccessor3_Vtbl { - pub const fn new() -> IUrlAccessor3_Vtbl - where - Identity: IUrlAccessor3_Impl, - { - unsafe extern "system" fn GetImpersonationSidBlobs(this: *mut core::ffi::c_void, pcwszurl: windows_core::PCWSTR, pcsidcount: *mut u32, ppsidblobs: *mut *mut super::Com::BLOB) -> windows_core::HRESULT - where - Identity: IUrlAccessor3_Impl, - { + pub const fn new() -> IUrlAccessor3_Vtbl { + unsafe extern "system" fn GetImpersonationSidBlobs(this: *mut core::ffi::c_void, pcwszurl: windows_core::PCWSTR, pcsidcount: *mut u32, ppsidblobs: *mut *mut super::Com::BLOB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlAccessor3_Impl::GetImpersonationSidBlobs(this, core::mem::transmute(&pcwszurl), core::mem::transmute_copy(&pcsidcount), core::mem::transmute_copy(&ppsidblobs)).into() } @@ -8477,14 +6377,8 @@ pub trait IUrlAccessor4_Impl: Sized + IUrlAccessor3_Impl { impl windows_core::RuntimeName for IUrlAccessor4 {} #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IUrlAccessor4_Vtbl { - pub const fn new() -> IUrlAccessor4_Vtbl - where - Identity: IUrlAccessor4_Impl, - { - unsafe extern "system" fn ShouldIndexItemContent(this: *mut core::ffi::c_void, pfindexcontent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUrlAccessor4_Impl, - { + pub const fn new() -> IUrlAccessor4_Vtbl { + unsafe extern "system" fn ShouldIndexItemContent(this: *mut core::ffi::c_void, pfindexcontent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlAccessor4_Impl::ShouldIndexItemContent(this) { Ok(ok__) => { @@ -8494,10 +6388,7 @@ impl IUrlAccessor4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShouldIndexProperty(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfindexproperty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUrlAccessor4_Impl, - { + unsafe extern "system" fn ShouldIndexProperty(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pfindexproperty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlAccessor4_Impl::ShouldIndexProperty(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -8517,20 +6408,14 @@ impl IUrlAccessor4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IViewChapter_Impl: Sized { +pub trait IViewChapter_Impl: Sized + windows_core::IUnknownImpl { fn GetSpecification(&self, riid: *const windows_core::GUID) -> windows_core::Result; fn OpenViewChapter(&self, hsource: usize, phviewchapter: *mut usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IViewChapter {} impl IViewChapter_Vtbl { - pub const fn new() -> IViewChapter_Vtbl - where - Identity: IViewChapter_Impl, - { - unsafe extern "system" fn GetSpecification(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewChapter_Impl, - { + pub const fn new() -> IViewChapter_Vtbl { + unsafe extern "system" fn GetSpecification(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewChapter_Impl::GetSpecification(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -8540,10 +6425,7 @@ impl IViewChapter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenViewChapter(this: *mut core::ffi::c_void, hsource: usize, phviewchapter: *mut usize) -> windows_core::HRESULT - where - Identity: IViewChapter_Impl, - { + unsafe extern "system" fn OpenViewChapter(this: *mut core::ffi::c_void, hsource: usize, phviewchapter: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewChapter_Impl::OpenViewChapter(this, core::mem::transmute_copy(&hsource), core::mem::transmute_copy(&phviewchapter)).into() } @@ -8558,7 +6440,7 @@ impl IViewChapter_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IViewFilter_Impl: Sized { +pub trait IViewFilter_Impl: Sized + windows_core::IUnknownImpl { fn GetFilter(&self, haccessor: HACCESSOR, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetFilterBindings(&self, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> windows_core::Result<()>; fn SetFilter(&self, haccessor: HACCESSOR, crows: usize, compareops: *const u32, pcriteriadata: *const core::ffi::c_void) -> windows_core::Result<()>; @@ -8567,28 +6449,16 @@ pub trait IViewFilter_Impl: Sized { impl windows_core::RuntimeName for IViewFilter {} #[cfg(feature = "Win32_System_Com")] impl IViewFilter_Vtbl { - pub const fn new() -> IViewFilter_Vtbl - where - Identity: IViewFilter_Impl, - { - unsafe extern "system" fn GetFilter(this: *mut core::ffi::c_void, haccessor: HACCESSOR, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewFilter_Impl, - { + pub const fn new() -> IViewFilter_Vtbl { + unsafe extern "system" fn GetFilter(this: *mut core::ffi::c_void, haccessor: HACCESSOR, pcrows: *mut usize, pcompareops: *mut *mut u32, pcriteriadata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewFilter_Impl::GetFilter(this, core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pcrows), core::mem::transmute_copy(&pcompareops), core::mem::transmute_copy(&pcriteriadata)).into() } - unsafe extern "system" fn GetFilterBindings(this: *mut core::ffi::c_void, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> windows_core::HRESULT - where - Identity: IViewFilter_Impl, - { + unsafe extern "system" fn GetFilterBindings(this: *mut core::ffi::c_void, pcbindings: *mut usize, prgbindings: *mut *mut DBBINDING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewFilter_Impl::GetFilterBindings(this, core::mem::transmute_copy(&pcbindings), core::mem::transmute_copy(&prgbindings)).into() } - unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, haccessor: HACCESSOR, crows: usize, compareops: *const u32, pcriteriadata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewFilter_Impl, - { + unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, haccessor: HACCESSOR, crows: usize, compareops: *const u32, pcriteriadata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewFilter_Impl::SetFilter(this, core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&compareops), core::mem::transmute_copy(&pcriteriadata)).into() } @@ -8603,20 +6473,14 @@ impl IViewFilter_Vtbl { iid == &::IID } } -pub trait IViewRowset_Impl: Sized { +pub trait IViewRowset_Impl: Sized + windows_core::IUnknownImpl { fn GetSpecification(&self, riid: *const windows_core::GUID) -> windows_core::Result; fn OpenViewRowset(&self, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IViewRowset {} impl IViewRowset_Vtbl { - pub const fn new() -> IViewRowset_Vtbl - where - Identity: IViewRowset_Impl, - { - unsafe extern "system" fn GetSpecification(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewRowset_Impl, - { + pub const fn new() -> IViewRowset_Vtbl { + unsafe extern "system" fn GetSpecification(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewRowset_Impl::GetSpecification(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -8626,10 +6490,7 @@ impl IViewRowset_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenViewRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewRowset_Impl, - { + unsafe extern "system" fn OpenViewRowset(this: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, pprowset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewRowset_Impl::OpenViewRowset(this, windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -8649,27 +6510,18 @@ impl IViewRowset_Vtbl { iid == &::IID } } -pub trait IViewSort_Impl: Sized { +pub trait IViewSort_Impl: Sized + windows_core::IUnknownImpl { fn GetSortOrder(&self, pcvalues: *mut usize, prgcolumns: *mut *mut usize, prgorders: *mut *mut u32) -> windows_core::Result<()>; fn SetSortOrder(&self, cvalues: usize, rgcolumns: *const usize, rgorders: *const u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IViewSort {} impl IViewSort_Vtbl { - pub const fn new() -> IViewSort_Vtbl - where - Identity: IViewSort_Impl, - { - unsafe extern "system" fn GetSortOrder(this: *mut core::ffi::c_void, pcvalues: *mut usize, prgcolumns: *mut *mut usize, prgorders: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IViewSort_Impl, - { + pub const fn new() -> IViewSort_Vtbl { + unsafe extern "system" fn GetSortOrder(this: *mut core::ffi::c_void, pcvalues: *mut usize, prgcolumns: *mut *mut usize, prgorders: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewSort_Impl::GetSortOrder(this, core::mem::transmute_copy(&pcvalues), core::mem::transmute_copy(&prgcolumns), core::mem::transmute_copy(&prgorders)).into() } - unsafe extern "system" fn SetSortOrder(this: *mut core::ffi::c_void, cvalues: usize, rgcolumns: *const usize, rgorders: *const u32) -> windows_core::HRESULT - where - Identity: IViewSort_Impl, - { + unsafe extern "system" fn SetSortOrder(this: *mut core::ffi::c_void, cvalues: usize, rgcolumns: *const usize, rgorders: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewSort_Impl::SetSortOrder(this, core::mem::transmute_copy(&cvalues), core::mem::transmute_copy(&rgcolumns), core::mem::transmute_copy(&rgorders)).into() } @@ -8684,7 +6536,7 @@ impl IViewSort_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IWordBreaker_Impl: Sized { +pub trait IWordBreaker_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, fquery: super::super::Foundation::BOOL, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn BreakText(&self, ptextsource: *mut TEXT_SOURCE, pwordsink: Option<&IWordSink>, pphrasesink: Option<&super::super::Storage::IndexServer::IPhraseSink>) -> windows_core::Result<()>; fn ComposePhrase(&self, pwcnoun: &windows_core::PCWSTR, cwcnoun: u32, pwcmodifier: &windows_core::PCWSTR, cwcmodifier: u32, ulattachmenttype: u32, pwcphrase: &windows_core::PCWSTR, pcwcphrase: *mut u32) -> windows_core::Result<()>; @@ -8694,35 +6546,20 @@ pub trait IWordBreaker_Impl: Sized { impl windows_core::RuntimeName for IWordBreaker {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IWordBreaker_Vtbl { - pub const fn new() -> IWordBreaker_Vtbl - where - Identity: IWordBreaker_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, fquery: super::super::Foundation::BOOL, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWordBreaker_Impl, - { + pub const fn new() -> IWordBreaker_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, fquery: super::super::Foundation::BOOL, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreaker_Impl::Init(this, core::mem::transmute_copy(&fquery), core::mem::transmute_copy(&ulmaxtokensize), core::mem::transmute_copy(&pflicense)).into() } - unsafe extern "system" fn BreakText(this: *mut core::ffi::c_void, ptextsource: *mut TEXT_SOURCE, pwordsink: *mut core::ffi::c_void, pphrasesink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWordBreaker_Impl, - { + unsafe extern "system" fn BreakText(this: *mut core::ffi::c_void, ptextsource: *mut TEXT_SOURCE, pwordsink: *mut core::ffi::c_void, pphrasesink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreaker_Impl::BreakText(this, core::mem::transmute_copy(&ptextsource), windows_core::from_raw_borrowed(&pwordsink), windows_core::from_raw_borrowed(&pphrasesink)).into() } - unsafe extern "system" fn ComposePhrase(this: *mut core::ffi::c_void, pwcnoun: windows_core::PCWSTR, cwcnoun: u32, pwcmodifier: windows_core::PCWSTR, cwcmodifier: u32, ulattachmenttype: u32, pwcphrase: windows_core::PCWSTR, pcwcphrase: *mut u32) -> windows_core::HRESULT - where - Identity: IWordBreaker_Impl, - { + unsafe extern "system" fn ComposePhrase(this: *mut core::ffi::c_void, pwcnoun: windows_core::PCWSTR, cwcnoun: u32, pwcmodifier: windows_core::PCWSTR, cwcmodifier: u32, ulattachmenttype: u32, pwcphrase: windows_core::PCWSTR, pcwcphrase: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreaker_Impl::ComposePhrase(this, core::mem::transmute(&pwcnoun), core::mem::transmute_copy(&cwcnoun), core::mem::transmute(&pwcmodifier), core::mem::transmute_copy(&cwcmodifier), core::mem::transmute_copy(&ulattachmenttype), core::mem::transmute(&pwcphrase), core::mem::transmute_copy(&pcwcphrase)).into() } - unsafe extern "system" fn GetLicenseToUse(this: *mut core::ffi::c_void, ppwcslicense: *const *const u16) -> windows_core::HRESULT - where - Identity: IWordBreaker_Impl, - { + unsafe extern "system" fn GetLicenseToUse(this: *mut core::ffi::c_void, ppwcslicense: *const *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreaker_Impl::GetLicenseToUse(this, core::mem::transmute_copy(&ppwcslicense)).into() } @@ -8738,27 +6575,18 @@ impl IWordBreaker_Vtbl { iid == &::IID } } -pub trait IWordFormSink_Impl: Sized { +pub trait IWordFormSink_Impl: Sized + windows_core::IUnknownImpl { fn PutAltWord(&self, pwcinbuf: &windows_core::PCWSTR, cwc: u32) -> windows_core::Result<()>; fn PutWord(&self, pwcinbuf: &windows_core::PCWSTR, cwc: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWordFormSink {} impl IWordFormSink_Vtbl { - pub const fn new() -> IWordFormSink_Vtbl - where - Identity: IWordFormSink_Impl, - { - unsafe extern "system" fn PutAltWord(this: *mut core::ffi::c_void, pwcinbuf: windows_core::PCWSTR, cwc: u32) -> windows_core::HRESULT - where - Identity: IWordFormSink_Impl, - { + pub const fn new() -> IWordFormSink_Vtbl { + unsafe extern "system" fn PutAltWord(this: *mut core::ffi::c_void, pwcinbuf: windows_core::PCWSTR, cwc: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordFormSink_Impl::PutAltWord(this, core::mem::transmute(&pwcinbuf), core::mem::transmute_copy(&cwc)).into() } - unsafe extern "system" fn PutWord(this: *mut core::ffi::c_void, pwcinbuf: windows_core::PCWSTR, cwc: u32) -> windows_core::HRESULT - where - Identity: IWordFormSink_Impl, - { + unsafe extern "system" fn PutWord(this: *mut core::ffi::c_void, pwcinbuf: windows_core::PCWSTR, cwc: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordFormSink_Impl::PutWord(this, core::mem::transmute(&pwcinbuf), core::mem::transmute_copy(&cwc)).into() } @@ -8769,7 +6597,7 @@ impl IWordFormSink_Vtbl { } } #[cfg(feature = "Win32_Storage_IndexServer")] -pub trait IWordSink_Impl: Sized { +pub trait IWordSink_Impl: Sized + windows_core::IUnknownImpl { fn PutWord(&self, cwc: u32, pwcinbuf: &windows_core::PCWSTR, cwcsrclen: u32, cwcsrcpos: u32) -> windows_core::Result<()>; fn PutAltWord(&self, cwc: u32, pwcinbuf: &windows_core::PCWSTR, cwcsrclen: u32, cwcsrcpos: u32) -> windows_core::Result<()>; fn StartAltPhrase(&self) -> windows_core::Result<()>; @@ -8780,42 +6608,24 @@ pub trait IWordSink_Impl: Sized { impl windows_core::RuntimeName for IWordSink {} #[cfg(feature = "Win32_Storage_IndexServer")] impl IWordSink_Vtbl { - pub const fn new() -> IWordSink_Vtbl - where - Identity: IWordSink_Impl, - { - unsafe extern "system" fn PutWord(this: *mut core::ffi::c_void, cwc: u32, pwcinbuf: windows_core::PCWSTR, cwcsrclen: u32, cwcsrcpos: u32) -> windows_core::HRESULT - where - Identity: IWordSink_Impl, - { + pub const fn new() -> IWordSink_Vtbl { + unsafe extern "system" fn PutWord(this: *mut core::ffi::c_void, cwc: u32, pwcinbuf: windows_core::PCWSTR, cwcsrclen: u32, cwcsrcpos: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordSink_Impl::PutWord(this, core::mem::transmute_copy(&cwc), core::mem::transmute(&pwcinbuf), core::mem::transmute_copy(&cwcsrclen), core::mem::transmute_copy(&cwcsrcpos)).into() } - unsafe extern "system" fn PutAltWord(this: *mut core::ffi::c_void, cwc: u32, pwcinbuf: windows_core::PCWSTR, cwcsrclen: u32, cwcsrcpos: u32) -> windows_core::HRESULT - where - Identity: IWordSink_Impl, - { + unsafe extern "system" fn PutAltWord(this: *mut core::ffi::c_void, cwc: u32, pwcinbuf: windows_core::PCWSTR, cwcsrclen: u32, cwcsrcpos: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordSink_Impl::PutAltWord(this, core::mem::transmute_copy(&cwc), core::mem::transmute(&pwcinbuf), core::mem::transmute_copy(&cwcsrclen), core::mem::transmute_copy(&cwcsrcpos)).into() } - unsafe extern "system" fn StartAltPhrase(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWordSink_Impl, - { + unsafe extern "system" fn StartAltPhrase(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordSink_Impl::StartAltPhrase(this).into() } - unsafe extern "system" fn EndAltPhrase(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWordSink_Impl, - { + unsafe extern "system" fn EndAltPhrase(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordSink_Impl::EndAltPhrase(this).into() } - unsafe extern "system" fn PutBreak(this: *mut core::ffi::c_void, breaktype: super::super::Storage::IndexServer::WORDREP_BREAK_TYPE) -> windows_core::HRESULT - where - Identity: IWordSink_Impl, - { + unsafe extern "system" fn PutBreak(this: *mut core::ffi::c_void, breaktype: super::super::Storage::IndexServer::WORDREP_BREAK_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordSink_Impl::PutBreak(this, core::mem::transmute_copy(&breaktype)).into() } @@ -8832,7 +6642,7 @@ impl IWordSink_Vtbl { iid == &::IID } } -pub trait OLEDBSimpleProvider_Impl: Sized { +pub trait OLEDBSimpleProvider_Impl: Sized + windows_core::IUnknownImpl { fn getRowCount(&self) -> windows_core::Result; fn getColumnCount(&self) -> windows_core::Result; fn getRWStatus(&self, irow: isize, icolumn: isize) -> windows_core::Result; @@ -8850,14 +6660,8 @@ pub trait OLEDBSimpleProvider_Impl: Sized { } impl windows_core::RuntimeName for OLEDBSimpleProvider {} impl OLEDBSimpleProvider_Vtbl { - pub const fn new() -> OLEDBSimpleProvider_Vtbl - where - Identity: OLEDBSimpleProvider_Impl, - { - unsafe extern "system" fn getRowCount(this: *mut core::ffi::c_void, pcrows: *mut isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + pub const fn new() -> OLEDBSimpleProvider_Vtbl { + unsafe extern "system" fn getRowCount(this: *mut core::ffi::c_void, pcrows: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::getRowCount(this) { Ok(ok__) => { @@ -8867,10 +6671,7 @@ impl OLEDBSimpleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getColumnCount(this: *mut core::ffi::c_void, pccolumns: *mut isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn getColumnCount(this: *mut core::ffi::c_void, pccolumns: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::getColumnCount(this) { Ok(ok__) => { @@ -8880,10 +6681,7 @@ impl OLEDBSimpleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getRWStatus(this: *mut core::ffi::c_void, irow: isize, icolumn: isize, prwstatus: *mut OSPRW) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn getRWStatus(this: *mut core::ffi::c_void, irow: isize, icolumn: isize, prwstatus: *mut OSPRW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::getRWStatus(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&icolumn)) { Ok(ok__) => { @@ -8893,10 +6691,7 @@ impl OLEDBSimpleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getVariant(this: *mut core::ffi::c_void, irow: isize, icolumn: isize, format: OSPFORMAT, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn getVariant(this: *mut core::ffi::c_void, irow: isize, icolumn: isize, format: OSPFORMAT, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::getVariant(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&icolumn), core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -8906,17 +6701,11 @@ impl OLEDBSimpleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setVariant(this: *mut core::ffi::c_void, irow: isize, icolumn: isize, format: OSPFORMAT, var: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn setVariant(this: *mut core::ffi::c_void, irow: isize, icolumn: isize, format: OSPFORMAT, var: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProvider_Impl::setVariant(this, 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(this: *mut core::ffi::c_void, pbstrlocale: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn getLocale(this: *mut core::ffi::c_void, pbstrlocale: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::getLocale(this) { Ok(ok__) => { @@ -8926,10 +6715,7 @@ impl OLEDBSimpleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn deleteRows(this: *mut core::ffi::c_void, irow: isize, crows: isize, pcrowsdeleted: *mut isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn deleteRows(this: *mut core::ffi::c_void, irow: isize, crows: isize, pcrowsdeleted: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::deleteRows(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&crows)) { Ok(ok__) => { @@ -8939,10 +6725,7 @@ impl OLEDBSimpleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn insertRows(this: *mut core::ffi::c_void, irow: isize, crows: isize, pcrowsinserted: *mut isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn insertRows(this: *mut core::ffi::c_void, irow: isize, crows: isize, pcrowsinserted: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::insertRows(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&crows)) { Ok(ok__) => { @@ -8952,10 +6735,7 @@ impl OLEDBSimpleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn find(this: *mut core::ffi::c_void, irowstart: isize, icolumn: isize, val: core::mem::MaybeUninit, findflags: OSPFIND, comptype: OSPCOMP, pirowfound: *mut isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn find(this: *mut core::ffi::c_void, irowstart: isize, icolumn: isize, val: core::mem::MaybeUninit, findflags: OSPFIND, comptype: OSPCOMP, pirowfound: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::find(this, core::mem::transmute_copy(&irowstart), core::mem::transmute_copy(&icolumn), core::mem::transmute(&val), core::mem::transmute_copy(&findflags), core::mem::transmute_copy(&comptype)) { Ok(ok__) => { @@ -8965,24 +6745,15 @@ impl OLEDBSimpleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn addOLEDBSimpleProviderListener(this: *mut core::ffi::c_void, pospilistener: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn addOLEDBSimpleProviderListener(this: *mut core::ffi::c_void, pospilistener: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProvider_Impl::addOLEDBSimpleProviderListener(this, windows_core::from_raw_borrowed(&pospilistener)).into() } - unsafe extern "system" fn removeOLEDBSimpleProviderListener(this: *mut core::ffi::c_void, pospilistener: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn removeOLEDBSimpleProviderListener(this: *mut core::ffi::c_void, pospilistener: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProvider_Impl::removeOLEDBSimpleProviderListener(this, windows_core::from_raw_borrowed(&pospilistener)).into() } - unsafe extern "system" fn isAsync(this: *mut core::ffi::c_void, pbasynch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn isAsync(this: *mut core::ffi::c_void, pbasynch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::isAsync(this) { Ok(ok__) => { @@ -8992,10 +6763,7 @@ impl OLEDBSimpleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getEstimatedRows(this: *mut core::ffi::c_void, pirows: *mut isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn getEstimatedRows(this: *mut core::ffi::c_void, pirows: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::getEstimatedRows(this) { Ok(ok__) => { @@ -9005,10 +6773,7 @@ impl OLEDBSimpleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn stopTransfer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProvider_Impl, - { + unsafe extern "system" fn stopTransfer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProvider_Impl::stopTransfer(this).into() } @@ -9034,7 +6799,7 @@ impl OLEDBSimpleProvider_Vtbl { iid == &::IID } } -pub trait OLEDBSimpleProviderListener_Impl: Sized { +pub trait OLEDBSimpleProviderListener_Impl: Sized + windows_core::IUnknownImpl { fn aboutToChangeCell(&self, irow: isize, icolumn: isize) -> windows_core::Result<()>; fn cellChanged(&self, irow: isize, icolumn: isize) -> windows_core::Result<()>; fn aboutToDeleteRows(&self, irow: isize, crows: isize) -> windows_core::Result<()>; @@ -9046,63 +6811,36 @@ pub trait OLEDBSimpleProviderListener_Impl: Sized { } impl windows_core::RuntimeName for OLEDBSimpleProviderListener {} impl OLEDBSimpleProviderListener_Vtbl { - pub const fn new() -> OLEDBSimpleProviderListener_Vtbl - where - Identity: OLEDBSimpleProviderListener_Impl, - { - unsafe extern "system" fn aboutToChangeCell(this: *mut core::ffi::c_void, irow: isize, icolumn: isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProviderListener_Impl, - { + pub const fn new() -> OLEDBSimpleProviderListener_Vtbl { + unsafe extern "system" fn aboutToChangeCell(this: *mut core::ffi::c_void, irow: isize, icolumn: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProviderListener_Impl::aboutToChangeCell(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&icolumn)).into() } - unsafe extern "system" fn cellChanged(this: *mut core::ffi::c_void, irow: isize, icolumn: isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProviderListener_Impl, - { + unsafe extern "system" fn cellChanged(this: *mut core::ffi::c_void, irow: isize, icolumn: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProviderListener_Impl::cellChanged(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&icolumn)).into() } - unsafe extern "system" fn aboutToDeleteRows(this: *mut core::ffi::c_void, irow: isize, crows: isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProviderListener_Impl, - { + unsafe extern "system" fn aboutToDeleteRows(this: *mut core::ffi::c_void, irow: isize, crows: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProviderListener_Impl::aboutToDeleteRows(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&crows)).into() } - unsafe extern "system" fn deletedRows(this: *mut core::ffi::c_void, irow: isize, crows: isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProviderListener_Impl, - { + unsafe extern "system" fn deletedRows(this: *mut core::ffi::c_void, irow: isize, crows: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProviderListener_Impl::deletedRows(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&crows)).into() } - unsafe extern "system" fn aboutToInsertRows(this: *mut core::ffi::c_void, irow: isize, crows: isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProviderListener_Impl, - { + unsafe extern "system" fn aboutToInsertRows(this: *mut core::ffi::c_void, irow: isize, crows: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProviderListener_Impl::aboutToInsertRows(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&crows)).into() } - unsafe extern "system" fn insertedRows(this: *mut core::ffi::c_void, irow: isize, crows: isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProviderListener_Impl, - { + unsafe extern "system" fn insertedRows(this: *mut core::ffi::c_void, irow: isize, crows: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProviderListener_Impl::insertedRows(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&crows)).into() } - unsafe extern "system" fn rowsAvailable(this: *mut core::ffi::c_void, irow: isize, crows: isize) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProviderListener_Impl, - { + unsafe extern "system" fn rowsAvailable(this: *mut core::ffi::c_void, irow: isize, crows: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProviderListener_Impl::rowsAvailable(this, core::mem::transmute_copy(&irow), core::mem::transmute_copy(&crows)).into() } - unsafe extern "system" fn transferComplete(this: *mut core::ffi::c_void, xfer: OSPXFER) -> windows_core::HRESULT - where - Identity: OLEDBSimpleProviderListener_Impl, - { + unsafe extern "system" fn transferComplete(this: *mut core::ffi::c_void, xfer: OSPXFER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); OLEDBSimpleProviderListener_Impl::transferComplete(this, core::mem::transmute_copy(&xfer)).into() } 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 7012edacd9..0d5b731374 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/impl.rs @@ -6,14 +6,8 @@ pub trait IWSCDefaultProduct_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWSCDefaultProduct {} #[cfg(feature = "Win32_System_Com")] impl IWSCDefaultProduct_Vtbl { - pub const fn new() -> IWSCDefaultProduct_Vtbl - where - Identity: IWSCDefaultProduct_Impl, - { - unsafe extern "system" fn SetDefaultProduct(this: *mut core::ffi::c_void, etype: SECURITY_PRODUCT_TYPE, pguid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWSCDefaultProduct_Impl, - { + pub const fn new() -> IWSCDefaultProduct_Vtbl { + unsafe extern "system" fn SetDefaultProduct(this: *mut core::ffi::c_void, etype: SECURITY_PRODUCT_TYPE, pguid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSCDefaultProduct_Impl::SetDefaultProduct(this, core::mem::transmute_copy(&etype), core::mem::transmute(&pguid)).into() } @@ -33,21 +27,12 @@ pub trait IWSCProductList_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWSCProductList {} #[cfg(feature = "Win32_System_Com")] impl IWSCProductList_Vtbl { - pub const fn new() -> IWSCProductList_Vtbl - where - Identity: IWSCProductList_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, provider: u32) -> windows_core::HRESULT - where - Identity: IWSCProductList_Impl, - { + pub const fn new() -> IWSCProductList_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, provider: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSCProductList_Impl::Initialize(this, core::mem::transmute(&provider)).into() } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IWSCProductList_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSCProductList_Impl::Count(this) { Ok(ok__) => { @@ -57,10 +42,7 @@ impl IWSCProductList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: u32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWSCProductList_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: u32, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSCProductList_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -95,14 +77,8 @@ pub trait IWscProduct_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWscProduct {} #[cfg(feature = "Win32_System_Com")] impl IWscProduct_Vtbl { - pub const fn new() -> IWscProduct_Vtbl - where - Identity: IWscProduct_Impl, - { - unsafe extern "system" fn ProductName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWscProduct_Impl, - { + pub const fn new() -> IWscProduct_Vtbl { + unsafe extern "system" fn ProductName(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct_Impl::ProductName(this) { Ok(ok__) => { @@ -112,10 +88,7 @@ impl IWscProduct_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProductState(this: *mut core::ffi::c_void, pval: *mut WSC_SECURITY_PRODUCT_STATE) -> windows_core::HRESULT - where - Identity: IWscProduct_Impl, - { + unsafe extern "system" fn ProductState(this: *mut core::ffi::c_void, pval: *mut WSC_SECURITY_PRODUCT_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct_Impl::ProductState(this) { Ok(ok__) => { @@ -125,10 +98,7 @@ impl IWscProduct_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SignatureStatus(this: *mut core::ffi::c_void, pval: *mut WSC_SECURITY_SIGNATURE_STATUS) -> windows_core::HRESULT - where - Identity: IWscProduct_Impl, - { + unsafe extern "system" fn SignatureStatus(this: *mut core::ffi::c_void, pval: *mut WSC_SECURITY_SIGNATURE_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct_Impl::SignatureStatus(this) { Ok(ok__) => { @@ -138,10 +108,7 @@ impl IWscProduct_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemediationPath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWscProduct_Impl, - { + unsafe extern "system" fn RemediationPath(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct_Impl::RemediationPath(this) { Ok(ok__) => { @@ -151,10 +118,7 @@ impl IWscProduct_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProductStateTimestamp(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWscProduct_Impl, - { + unsafe extern "system" fn ProductStateTimestamp(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct_Impl::ProductStateTimestamp(this) { Ok(ok__) => { @@ -164,10 +128,7 @@ impl IWscProduct_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProductGuid(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWscProduct_Impl, - { + unsafe extern "system" fn ProductGuid(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct_Impl::ProductGuid(this) { Ok(ok__) => { @@ -177,10 +138,7 @@ impl IWscProduct_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProductIsDefault(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWscProduct_Impl, - { + unsafe extern "system" fn ProductIsDefault(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct_Impl::ProductIsDefault(this) { Ok(ok__) => { @@ -218,14 +176,8 @@ pub trait IWscProduct2_Impl: Sized + IWscProduct_Impl { impl windows_core::RuntimeName for IWscProduct2 {} #[cfg(feature = "Win32_System_Com")] impl IWscProduct2_Vtbl { - pub const fn new() -> IWscProduct2_Vtbl - where - Identity: IWscProduct2_Impl, - { - unsafe extern "system" fn AntivirusScanSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT - where - Identity: IWscProduct2_Impl, - { + pub const fn new() -> IWscProduct2_Vtbl { + unsafe extern "system" fn AntivirusScanSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct2_Impl::AntivirusScanSubstatus(this) { Ok(ok__) => { @@ -235,10 +187,7 @@ impl IWscProduct2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AntivirusSettingsSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT - where - Identity: IWscProduct2_Impl, - { + unsafe extern "system" fn AntivirusSettingsSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct2_Impl::AntivirusSettingsSubstatus(this) { Ok(ok__) => { @@ -248,10 +197,7 @@ impl IWscProduct2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AntivirusProtectionUpdateSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT - where - Identity: IWscProduct2_Impl, - { + unsafe extern "system" fn AntivirusProtectionUpdateSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct2_Impl::AntivirusProtectionUpdateSubstatus(this) { Ok(ok__) => { @@ -261,10 +207,7 @@ impl IWscProduct2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FirewallDomainProfileSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT - where - Identity: IWscProduct2_Impl, - { + unsafe extern "system" fn FirewallDomainProfileSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct2_Impl::FirewallDomainProfileSubstatus(this) { Ok(ok__) => { @@ -274,10 +217,7 @@ impl IWscProduct2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FirewallPrivateProfileSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT - where - Identity: IWscProduct2_Impl, - { + unsafe extern "system" fn FirewallPrivateProfileSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct2_Impl::FirewallPrivateProfileSubstatus(this) { Ok(ok__) => { @@ -287,10 +227,7 @@ impl IWscProduct2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FirewallPublicProfileSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT - where - Identity: IWscProduct2_Impl, - { + unsafe extern "system" fn FirewallPublicProfileSubstatus(this: *mut core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct2_Impl::FirewallPublicProfileSubstatus(this) { Ok(ok__) => { @@ -322,14 +259,8 @@ pub trait IWscProduct3_Impl: Sized + IWscProduct2_Impl { impl windows_core::RuntimeName for IWscProduct3 {} #[cfg(feature = "Win32_System_Com")] impl IWscProduct3_Vtbl { - pub const fn new() -> IWscProduct3_Vtbl - where - Identity: IWscProduct3_Impl, - { - unsafe extern "system" fn AntivirusDaysUntilExpired(this: *mut core::ffi::c_void, pdwdays: *mut u32) -> windows_core::HRESULT - where - Identity: IWscProduct3_Impl, - { + pub const fn new() -> IWscProduct3_Vtbl { + unsafe extern "system" fn AntivirusDaysUntilExpired(this: *mut core::ffi::c_void, pdwdays: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct3_Impl::AntivirusDaysUntilExpired(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/ServerBackup/impl.rs b/crates/libs/windows/src/Windows/Win32/System/ServerBackup/impl.rs index 088ab26398..dd1129b4ae 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ServerBackup/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ServerBackup/impl.rs @@ -1,17 +1,11 @@ -pub trait IWsbApplicationAsync_Impl: Sized { +pub trait IWsbApplicationAsync_Impl: Sized + windows_core::IUnknownImpl { fn QueryStatus(&self) -> windows_core::Result; fn Abort(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWsbApplicationAsync {} impl IWsbApplicationAsync_Vtbl { - pub const fn new() -> IWsbApplicationAsync_Vtbl - where - Identity: IWsbApplicationAsync_Impl, - { - unsafe extern "system" fn QueryStatus(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IWsbApplicationAsync_Impl, - { + pub const fn new() -> IWsbApplicationAsync_Vtbl { + unsafe extern "system" fn QueryStatus(this: *mut core::ffi::c_void, phrresult: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWsbApplicationAsync_Impl::QueryStatus(this) { Ok(ok__) => { @@ -21,10 +15,7 @@ impl IWsbApplicationAsync_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWsbApplicationAsync_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWsbApplicationAsync_Impl::Abort(this).into() } @@ -34,19 +25,13 @@ impl IWsbApplicationAsync_Vtbl { iid == &::IID } } -pub trait IWsbApplicationBackupSupport_Impl: Sized { +pub trait IWsbApplicationBackupSupport_Impl: Sized + windows_core::IUnknownImpl { fn CheckConsistency(&self, wszwritermetadata: &windows_core::PCWSTR, wszcomponentname: &windows_core::PCWSTR, wszcomponentlogicalpath: &windows_core::PCWSTR, cvolumes: u32, rgwszsourcevolumepath: *const windows_core::PCWSTR, rgwszsnapshotvolumepath: *const windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IWsbApplicationBackupSupport {} impl IWsbApplicationBackupSupport_Vtbl { - pub const fn new() -> IWsbApplicationBackupSupport_Vtbl - where - Identity: IWsbApplicationBackupSupport_Impl, - { - unsafe extern "system" fn CheckConsistency(this: *mut core::ffi::c_void, wszwritermetadata: windows_core::PCWSTR, wszcomponentname: windows_core::PCWSTR, wszcomponentlogicalpath: windows_core::PCWSTR, cvolumes: u32, rgwszsourcevolumepath: *const windows_core::PCWSTR, rgwszsnapshotvolumepath: *const windows_core::PCWSTR, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWsbApplicationBackupSupport_Impl, - { + pub const fn new() -> IWsbApplicationBackupSupport_Vtbl { + unsafe extern "system" fn CheckConsistency(this: *mut core::ffi::c_void, wszwritermetadata: windows_core::PCWSTR, wszcomponentname: windows_core::PCWSTR, wszcomponentlogicalpath: windows_core::PCWSTR, cvolumes: u32, rgwszsourcevolumepath: *const windows_core::PCWSTR, rgwszsnapshotvolumepath: *const windows_core::PCWSTR, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWsbApplicationBackupSupport_Impl::CheckConsistency(this, core::mem::transmute(&wszwritermetadata), core::mem::transmute(&wszcomponentname), core::mem::transmute(&wszcomponentlogicalpath), core::mem::transmute_copy(&cvolumes), core::mem::transmute_copy(&rgwszsourcevolumepath), core::mem::transmute_copy(&rgwszsnapshotvolumepath)) { Ok(ok__) => { @@ -62,7 +47,7 @@ impl IWsbApplicationBackupSupport_Vtbl { iid == &::IID } } -pub trait IWsbApplicationRestoreSupport_Impl: Sized { +pub trait IWsbApplicationRestoreSupport_Impl: Sized + windows_core::IUnknownImpl { fn PreRestore(&self, wszwritermetadata: &windows_core::PCWSTR, wszcomponentname: &windows_core::PCWSTR, wszcomponentlogicalpath: &windows_core::PCWSTR, bnorollforward: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; fn PostRestore(&self, wszwritermetadata: &windows_core::PCWSTR, wszcomponentname: &windows_core::PCWSTR, wszcomponentlogicalpath: &windows_core::PCWSTR, bnorollforward: super::super::Foundation::BOOLEAN) -> windows_core::Result<()>; fn OrderComponents(&self, ccomponents: u32, rgcomponentname: *const windows_core::PCWSTR, rgcomponentlogicalpaths: *const windows_core::PCWSTR, prgcomponentname: *mut *mut windows_core::PWSTR, prgcomponentlogicalpath: *mut *mut windows_core::PWSTR) -> windows_core::Result<()>; @@ -70,35 +55,20 @@ pub trait IWsbApplicationRestoreSupport_Impl: Sized { } impl windows_core::RuntimeName for IWsbApplicationRestoreSupport {} impl IWsbApplicationRestoreSupport_Vtbl { - pub const fn new() -> IWsbApplicationRestoreSupport_Vtbl - where - Identity: IWsbApplicationRestoreSupport_Impl, - { - unsafe extern "system" fn PreRestore(this: *mut core::ffi::c_void, wszwritermetadata: windows_core::PCWSTR, wszcomponentname: windows_core::PCWSTR, wszcomponentlogicalpath: windows_core::PCWSTR, bnorollforward: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT - where - Identity: IWsbApplicationRestoreSupport_Impl, - { + pub const fn new() -> IWsbApplicationRestoreSupport_Vtbl { + unsafe extern "system" fn PreRestore(this: *mut core::ffi::c_void, wszwritermetadata: windows_core::PCWSTR, wszcomponentname: windows_core::PCWSTR, wszcomponentlogicalpath: windows_core::PCWSTR, bnorollforward: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWsbApplicationRestoreSupport_Impl::PreRestore(this, core::mem::transmute(&wszwritermetadata), core::mem::transmute(&wszcomponentname), core::mem::transmute(&wszcomponentlogicalpath), core::mem::transmute_copy(&bnorollforward)).into() } - unsafe extern "system" fn PostRestore(this: *mut core::ffi::c_void, wszwritermetadata: windows_core::PCWSTR, wszcomponentname: windows_core::PCWSTR, wszcomponentlogicalpath: windows_core::PCWSTR, bnorollforward: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT - where - Identity: IWsbApplicationRestoreSupport_Impl, - { + unsafe extern "system" fn PostRestore(this: *mut core::ffi::c_void, wszwritermetadata: windows_core::PCWSTR, wszcomponentname: windows_core::PCWSTR, wszcomponentlogicalpath: windows_core::PCWSTR, bnorollforward: super::super::Foundation::BOOLEAN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWsbApplicationRestoreSupport_Impl::PostRestore(this, core::mem::transmute(&wszwritermetadata), core::mem::transmute(&wszcomponentname), core::mem::transmute(&wszcomponentlogicalpath), core::mem::transmute_copy(&bnorollforward)).into() } - unsafe extern "system" fn OrderComponents(this: *mut core::ffi::c_void, ccomponents: u32, rgcomponentname: *const windows_core::PCWSTR, rgcomponentlogicalpaths: *const windows_core::PCWSTR, prgcomponentname: *mut *mut windows_core::PWSTR, prgcomponentlogicalpath: *mut *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWsbApplicationRestoreSupport_Impl, - { + unsafe extern "system" fn OrderComponents(this: *mut core::ffi::c_void, ccomponents: u32, rgcomponentname: *const windows_core::PCWSTR, rgcomponentlogicalpaths: *const windows_core::PCWSTR, prgcomponentname: *mut *mut windows_core::PWSTR, prgcomponentlogicalpath: *mut *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWsbApplicationRestoreSupport_Impl::OrderComponents(this, core::mem::transmute_copy(&ccomponents), core::mem::transmute_copy(&rgcomponentname), core::mem::transmute_copy(&rgcomponentlogicalpaths), core::mem::transmute_copy(&prgcomponentname), core::mem::transmute_copy(&prgcomponentlogicalpath)).into() } - unsafe extern "system" fn IsRollForwardSupported(this: *mut core::ffi::c_void, pbrollforwardsupported: *mut u8) -> windows_core::HRESULT - where - Identity: IWsbApplicationRestoreSupport_Impl, - { + unsafe extern "system" fn IsRollForwardSupported(this: *mut core::ffi::c_void, pbrollforwardsupported: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWsbApplicationRestoreSupport_Impl::IsRollForwardSupported(this) { Ok(ok__) => { 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 dcb862de0d..d39c4e28dc 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/impl.rs @@ -1,18 +1,12 @@ -pub trait IItemEnumerator_Impl: Sized { +pub trait IItemEnumerator_Impl: Sized + windows_core::IUnknownImpl { fn Current(&self) -> windows_core::Result; fn MoveNext(&self) -> windows_core::Result; fn Reset(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IItemEnumerator {} impl IItemEnumerator_Vtbl { - pub const fn new() -> IItemEnumerator_Vtbl - where - Identity: IItemEnumerator_Impl, - { - unsafe extern "system" fn Current(this: *mut core::ffi::c_void, item: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IItemEnumerator_Impl, - { + pub const fn new() -> IItemEnumerator_Vtbl { + unsafe extern "system" fn Current(this: *mut core::ffi::c_void, item: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IItemEnumerator_Impl::Current(this) { Ok(ok__) => { @@ -22,10 +16,7 @@ impl IItemEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, itemvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IItemEnumerator_Impl, - { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, itemvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IItemEnumerator_Impl::MoveNext(this) { Ok(ok__) => { @@ -35,10 +26,7 @@ impl IItemEnumerator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IItemEnumerator_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IItemEnumerator_Impl::Reset(this).into() } @@ -54,7 +42,7 @@ impl IItemEnumerator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISettingsContext_Impl: Sized { +pub trait ISettingsContext_Impl: Sized + windows_core::IUnknownImpl { fn Serialize(&self, pstream: Option<&super::Com::IStream>, ptarget: Option<&ITargetInfo>) -> windows_core::Result<()>; fn Deserialize(&self, pstream: Option<&super::Com::IStream>, ptarget: Option<&ITargetInfo>, pppresults: *mut *mut Option) -> windows_core::Result; fn SetUserData(&self, puserdata: *const core::ffi::c_void) -> windows_core::Result<()>; @@ -67,21 +55,12 @@ pub trait ISettingsContext_Impl: Sized { impl windows_core::RuntimeName for ISettingsContext {} #[cfg(feature = "Win32_System_Com")] impl ISettingsContext_Vtbl { - pub const fn new() -> ISettingsContext_Vtbl - where - Identity: ISettingsContext_Impl, - { - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsContext_Impl, - { + pub const fn new() -> ISettingsContext_Vtbl { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsContext_Impl::Serialize(this, windows_core::from_raw_borrowed(&pstream), windows_core::from_raw_borrowed(&ptarget)).into() } - unsafe extern "system" fn Deserialize(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void, pppresults: *mut *mut Option, pcresultcount: *mut usize) -> windows_core::HRESULT - where - Identity: ISettingsContext_Impl, - { + unsafe extern "system" fn Deserialize(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void, pppresults: *mut *mut Option, pcresultcount: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsContext_Impl::Deserialize(this, windows_core::from_raw_borrowed(&pstream), windows_core::from_raw_borrowed(&ptarget), core::mem::transmute_copy(&pppresults)) { Ok(ok__) => { @@ -91,17 +70,11 @@ impl ISettingsContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUserData(this: *mut core::ffi::c_void, puserdata: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsContext_Impl, - { + unsafe extern "system" fn SetUserData(this: *mut core::ffi::c_void, puserdata: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsContext_Impl::SetUserData(this, core::mem::transmute_copy(&puserdata)).into() } - unsafe extern "system" fn GetUserData(this: *mut core::ffi::c_void, puserdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsContext_Impl, - { + unsafe extern "system" fn GetUserData(this: *mut core::ffi::c_void, puserdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsContext_Impl::GetUserData(this) { Ok(ok__) => { @@ -111,10 +84,7 @@ impl ISettingsContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNamespaces(this: *mut core::ffi::c_void, ppnamespaceids: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsContext_Impl, - { + unsafe extern "system" fn GetNamespaces(this: *mut core::ffi::c_void, ppnamespaceids: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsContext_Impl::GetNamespaces(this) { Ok(ok__) => { @@ -124,17 +94,11 @@ impl ISettingsContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStoredSettings(this: *mut core::ffi::c_void, pidentity: *mut core::ffi::c_void, ppaddedsettings: *mut *mut core::ffi::c_void, ppmodifiedsettings: *mut *mut core::ffi::c_void, ppdeletedsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsContext_Impl, - { + unsafe extern "system" fn GetStoredSettings(this: *mut core::ffi::c_void, pidentity: *mut core::ffi::c_void, ppaddedsettings: *mut *mut core::ffi::c_void, ppmodifiedsettings: *mut *mut core::ffi::c_void, ppdeletedsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsContext_Impl::GetStoredSettings(this, windows_core::from_raw_borrowed(&pidentity), core::mem::transmute_copy(&ppaddedsettings), core::mem::transmute_copy(&ppmodifiedsettings), core::mem::transmute_copy(&ppdeletedsettings)).into() } - unsafe extern "system" fn RevertSetting(this: *mut core::ffi::c_void, pidentity: *mut core::ffi::c_void, pwzsetting: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISettingsContext_Impl, - { + unsafe extern "system" fn RevertSetting(this: *mut core::ffi::c_void, pidentity: *mut core::ffi::c_void, pwzsetting: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsContext_Impl::RevertSetting(this, windows_core::from_raw_borrowed(&pidentity), core::mem::transmute(&pwzsetting)).into() } @@ -154,7 +118,7 @@ impl ISettingsContext_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISettingsEngine_Impl: Sized { +pub trait ISettingsEngine_Impl: Sized + windows_core::IUnknownImpl { fn GetNamespaces(&self, flags: WcmNamespaceEnumerationFlags, reserved: *const core::ffi::c_void) -> windows_core::Result; fn GetNamespace(&self, settingsid: Option<&ISettingsIdentity>, access: WcmNamespaceAccess, reserved: *const core::ffi::c_void) -> windows_core::Result; fn GetErrorDescription(&self, hresult: i32) -> windows_core::Result; @@ -176,14 +140,8 @@ pub trait ISettingsEngine_Impl: Sized { impl windows_core::RuntimeName for ISettingsEngine {} #[cfg(feature = "Win32_System_Com")] impl ISettingsEngine_Vtbl { - pub const fn new() -> ISettingsEngine_Vtbl - where - Identity: ISettingsEngine_Impl, - { - unsafe extern "system" fn GetNamespaces(this: *mut core::ffi::c_void, flags: WcmNamespaceEnumerationFlags, reserved: *const core::ffi::c_void, namespaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + pub const fn new() -> ISettingsEngine_Vtbl { + unsafe extern "system" fn GetNamespaces(this: *mut core::ffi::c_void, flags: WcmNamespaceEnumerationFlags, reserved: *const core::ffi::c_void, namespaces: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::GetNamespaces(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&reserved)) { Ok(ok__) => { @@ -193,10 +151,7 @@ impl ISettingsEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNamespace(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 - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn GetNamespace(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::GetNamespace(this, windows_core::from_raw_borrowed(&settingsid), core::mem::transmute_copy(&access), core::mem::transmute_copy(&reserved)) { Ok(ok__) => { @@ -206,10 +161,7 @@ impl ISettingsEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorDescription(this: *mut core::ffi::c_void, hresult: i32, message: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn GetErrorDescription(this: *mut core::ffi::c_void, hresult: i32, message: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::GetErrorDescription(this, core::mem::transmute_copy(&hresult)) { Ok(ok__) => { @@ -219,10 +171,7 @@ impl ISettingsEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSettingsIdentity(this: *mut core::ffi::c_void, settingsid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn CreateSettingsIdentity(this: *mut core::ffi::c_void, settingsid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::CreateSettingsIdentity(this) { Ok(ok__) => { @@ -232,10 +181,7 @@ impl ISettingsEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStoreStatus(this: *mut core::ffi::c_void, reserved: *const core::ffi::c_void, status: *mut WcmUserStatus) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn GetStoreStatus(this: *mut core::ffi::c_void, reserved: *const core::ffi::c_void, status: *mut WcmUserStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::GetStoreStatus(this, core::mem::transmute_copy(&reserved)) { Ok(ok__) => { @@ -245,24 +191,15 @@ impl ISettingsEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadStore(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn LoadStore(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsEngine_Impl::LoadStore(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn UnloadStore(this: *mut core::ffi::c_void, reserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn UnloadStore(this: *mut core::ffi::c_void, reserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsEngine_Impl::UnloadStore(this, core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn RegisterNamespace(this: *mut core::ffi::c_void, settingsid: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, pushsettings: super::super::Foundation::BOOL, results: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn RegisterNamespace(this: *mut core::ffi::c_void, settingsid: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, pushsettings: super::super::Foundation::BOOL, results: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::RegisterNamespace(this, windows_core::from_raw_borrowed(&settingsid), windows_core::from_raw_borrowed(&stream), core::mem::transmute_copy(&pushsettings)) { Ok(ok__) => { @@ -272,17 +209,11 @@ impl ISettingsEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterNamespace(this: *mut core::ffi::c_void, settingsid: *mut core::ffi::c_void, removesettings: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn UnregisterNamespace(this: *mut core::ffi::c_void, settingsid: *mut core::ffi::c_void, removesettings: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsEngine_Impl::UnregisterNamespace(this, windows_core::from_raw_borrowed(&settingsid), core::mem::transmute_copy(&removesettings)).into() } - unsafe extern "system" fn CreateTargetInfo(this: *mut core::ffi::c_void, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn CreateTargetInfo(this: *mut core::ffi::c_void, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::CreateTargetInfo(this) { Ok(ok__) => { @@ -292,10 +223,7 @@ impl ISettingsEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTargetInfo(this: *mut core::ffi::c_void, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn GetTargetInfo(this: *mut core::ffi::c_void, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::GetTargetInfo(this) { Ok(ok__) => { @@ -305,17 +233,11 @@ impl ISettingsEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetInfo(this: *mut core::ffi::c_void, target: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn SetTargetInfo(this: *mut core::ffi::c_void, target: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsEngine_Impl::SetTargetInfo(this, windows_core::from_raw_borrowed(&target)).into() } - unsafe extern "system" fn CreateSettingsContext(this: *mut core::ffi::c_void, flags: u32, reserved: *const core::ffi::c_void, settingscontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn CreateSettingsContext(this: *mut core::ffi::c_void, flags: u32, reserved: *const core::ffi::c_void, settingscontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::CreateSettingsContext(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&reserved)) { Ok(ok__) => { @@ -325,17 +247,11 @@ impl ISettingsEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSettingsContext(this: *mut core::ffi::c_void, settingscontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn SetSettingsContext(this: *mut core::ffi::c_void, settingscontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsEngine_Impl::SetSettingsContext(this, windows_core::from_raw_borrowed(&settingscontext)).into() } - unsafe extern "system" fn ApplySettingsContext(this: *mut core::ffi::c_void, settingscontext: *mut core::ffi::c_void, pppwzidentities: *mut *mut windows_core::PWSTR, pcidentities: *mut usize) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn ApplySettingsContext(this: *mut core::ffi::c_void, settingscontext: *mut core::ffi::c_void, pppwzidentities: *mut *mut windows_core::PWSTR, pcidentities: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::ApplySettingsContext(this, windows_core::from_raw_borrowed(&settingscontext), core::mem::transmute_copy(&pppwzidentities)) { Ok(ok__) => { @@ -345,10 +261,7 @@ impl ISettingsEngine_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSettingsContext(this: *mut core::ffi::c_void, settingscontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsEngine_Impl, - { + unsafe extern "system" fn GetSettingsContext(this: *mut core::ffi::c_void, settingscontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::GetSettingsContext(this) { Ok(ok__) => { @@ -382,7 +295,7 @@ impl ISettingsEngine_Vtbl { iid == &::IID } } -pub trait ISettingsIdentity_Impl: Sized { +pub trait ISettingsIdentity_Impl: Sized + windows_core::IUnknownImpl { fn GetAttribute(&self, reserved: *const core::ffi::c_void, name: &windows_core::PCWSTR) -> windows_core::Result; 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; @@ -390,14 +303,8 @@ pub trait ISettingsIdentity_Impl: Sized { } impl windows_core::RuntimeName for ISettingsIdentity {} impl ISettingsIdentity_Vtbl { - pub const fn new() -> ISettingsIdentity_Vtbl - where - Identity: ISettingsIdentity_Impl, - { - unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, reserved: *const core::ffi::c_void, name: windows_core::PCWSTR, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsIdentity_Impl, - { + pub const fn new() -> ISettingsIdentity_Vtbl { + unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, reserved: *const core::ffi::c_void, name: windows_core::PCWSTR, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsIdentity_Impl::GetAttribute(this, core::mem::transmute_copy(&reserved), core::mem::transmute(&name)) { Ok(ok__) => { @@ -407,17 +314,11 @@ impl ISettingsIdentity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttribute(this: *mut core::ffi::c_void, reserved: *const core::ffi::c_void, name: windows_core::PCWSTR, value: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISettingsIdentity_Impl, - { + unsafe extern "system" fn SetAttribute(this: *mut core::ffi::c_void, reserved: *const core::ffi::c_void, name: windows_core::PCWSTR, value: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsIdentity_Impl::SetAttribute(this, core::mem::transmute_copy(&reserved), core::mem::transmute(&name), core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT - where - Identity: ISettingsIdentity_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, flags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsIdentity_Impl::GetFlags(this) { Ok(ok__) => { @@ -427,10 +328,7 @@ impl ISettingsIdentity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: ISettingsIdentity_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsIdentity_Impl::SetFlags(this, core::mem::transmute_copy(&flags)).into() } @@ -446,7 +344,7 @@ impl ISettingsIdentity_Vtbl { iid == &::IID } } -pub trait ISettingsItem_Impl: Sized { +pub trait ISettingsItem_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetValue(&self) -> windows_core::Result; fn SetValue(&self, value: *const windows_core::VARIANT) -> windows_core::Result<()>; @@ -472,14 +370,8 @@ pub trait ISettingsItem_Impl: Sized { } impl windows_core::RuntimeName for ISettingsItem {} impl ISettingsItem_Vtbl { - pub const fn new() -> ISettingsItem_Vtbl - where - Identity: ISettingsItem_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + pub const fn new() -> ISettingsItem_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetName(this) { Ok(ok__) => { @@ -489,10 +381,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetValue(this) { Ok(ok__) => { @@ -502,17 +391,11 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsItem_Impl::SetValue(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSettingType(this: *mut core::ffi::c_void, r#type: *mut WcmSettingType) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetSettingType(this: *mut core::ffi::c_void, r#type: *mut WcmSettingType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetSettingType(this) { Ok(ok__) => { @@ -522,10 +405,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataType(this: *mut core::ffi::c_void, r#type: *mut WcmDataType) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetDataType(this: *mut core::ffi::c_void, r#type: *mut WcmDataType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetDataType(this) { Ok(ok__) => { @@ -535,10 +415,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValueRaw(this: *mut core::ffi::c_void, data: *mut *mut u8, datasize: *mut u32) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetValueRaw(this: *mut core::ffi::c_void, data: *mut *mut u8, datasize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetValueRaw(this, core::mem::transmute_copy(&data)) { Ok(ok__) => { @@ -548,17 +425,11 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValueRaw(this: *mut core::ffi::c_void, datatype: i32, data: *const u8, datasize: u32) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn SetValueRaw(this: *mut core::ffi::c_void, datatype: i32, data: *const u8, datasize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsItem_Impl::SetValueRaw(this, core::mem::transmute_copy(&datatype), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datasize)).into() } - unsafe extern "system" fn HasChild(this: *mut core::ffi::c_void, itemhaschild: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn HasChild(this: *mut core::ffi::c_void, itemhaschild: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::HasChild(this) { Ok(ok__) => { @@ -568,10 +439,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Children(this: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn Children(this: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::Children(this) { Ok(ok__) => { @@ -581,10 +449,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChild(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, child: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetChild(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, child: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetChild(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -594,10 +459,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, setting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, setting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetSettingByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -607,10 +469,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, setting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn CreateSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, setting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::CreateSettingByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -620,17 +479,11 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn RemoveSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsItem_Impl::RemoveSettingByPath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn GetListKeyInformation(this: *mut core::ffi::c_void, keyname: *mut core::mem::MaybeUninit, datatype: *mut WcmDataType) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetListKeyInformation(this: *mut core::ffi::c_void, keyname: *mut core::mem::MaybeUninit, datatype: *mut WcmDataType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetListKeyInformation(this, core::mem::transmute_copy(&keyname)) { Ok(ok__) => { @@ -640,10 +493,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateListElement(this: *mut core::ffi::c_void, keydata: *const core::mem::MaybeUninit, child: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn CreateListElement(this: *mut core::ffi::c_void, keydata: *const core::mem::MaybeUninit, child: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::CreateListElement(this, core::mem::transmute_copy(&keydata)) { Ok(ok__) => { @@ -653,17 +503,11 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveListElement(this: *mut core::ffi::c_void, elementname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn RemoveListElement(this: *mut core::ffi::c_void, elementname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsItem_Impl::RemoveListElement(this, core::mem::transmute(&elementname)).into() } - unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn Attributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::Attributes(this) { Ok(ok__) => { @@ -673,10 +517,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetAttribute(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -686,10 +527,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetPath(this) { Ok(ok__) => { @@ -699,10 +537,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRestrictionFacets(this: *mut core::ffi::c_void, restrictionfacets: *mut WcmRestrictionFacets) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetRestrictionFacets(this: *mut core::ffi::c_void, restrictionfacets: *mut WcmRestrictionFacets) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetRestrictionFacets(this) { Ok(ok__) => { @@ -712,10 +547,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRestriction(this: *mut core::ffi::c_void, restrictionfacet: WcmRestrictionFacets, facetdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetRestriction(this: *mut core::ffi::c_void, restrictionfacet: WcmRestrictionFacets, facetdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetRestriction(this, core::mem::transmute_copy(&restrictionfacet)) { Ok(ok__) => { @@ -725,10 +557,7 @@ impl ISettingsItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsItem_Impl, - { + unsafe extern "system" fn GetKeyValue(this: *mut core::ffi::c_void, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::GetKeyValue(this) { Ok(ok__) => { @@ -768,7 +597,7 @@ impl ISettingsItem_Vtbl { iid == &::IID } } -pub trait ISettingsNamespace_Impl: Sized { +pub trait ISettingsNamespace_Impl: Sized + windows_core::IUnknownImpl { fn GetIdentity(&self) -> windows_core::Result; fn Settings(&self) -> windows_core::Result; fn Save(&self, pushsettings: super::super::Foundation::BOOL) -> windows_core::Result; @@ -779,14 +608,8 @@ pub trait ISettingsNamespace_Impl: Sized { } impl windows_core::RuntimeName for ISettingsNamespace {} impl ISettingsNamespace_Vtbl { - pub const fn new() -> ISettingsNamespace_Vtbl - where - Identity: ISettingsNamespace_Impl, - { - unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, settingsid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsNamespace_Impl, - { + pub const fn new() -> ISettingsNamespace_Vtbl { + unsafe extern "system" fn GetIdentity(this: *mut core::ffi::c_void, settingsid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsNamespace_Impl::GetIdentity(this) { Ok(ok__) => { @@ -796,10 +619,7 @@ impl ISettingsNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Settings(this: *mut core::ffi::c_void, settings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsNamespace_Impl, - { + unsafe extern "system" fn Settings(this: *mut core::ffi::c_void, settings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsNamespace_Impl::Settings(this) { Ok(ok__) => { @@ -809,10 +629,7 @@ impl ISettingsNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pushsettings: super::super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsNamespace_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pushsettings: super::super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsNamespace_Impl::Save(this, core::mem::transmute_copy(&pushsettings)) { Ok(ok__) => { @@ -822,10 +639,7 @@ impl ISettingsNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, setting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsNamespace_Impl, - { + unsafe extern "system" fn GetSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, setting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsNamespace_Impl::GetSettingByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -835,10 +649,7 @@ impl ISettingsNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, setting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISettingsNamespace_Impl, - { + unsafe extern "system" fn CreateSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, setting: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsNamespace_Impl::CreateSettingByPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -848,17 +659,11 @@ impl ISettingsNamespace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISettingsNamespace_Impl, - { + unsafe extern "system" fn RemoveSettingByPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsNamespace_Impl::RemoveSettingByPath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsNamespace_Impl, - { + unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsNamespace_Impl::GetAttribute(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -883,7 +688,7 @@ impl ISettingsNamespace_Vtbl { iid == &::IID } } -pub trait ISettingsResult_Impl: Sized { +pub trait ISettingsResult_Impl: Sized + windows_core::IUnknownImpl { fn GetDescription(&self) -> windows_core::Result; fn GetErrorCode(&self) -> windows_core::Result; fn GetContextDescription(&self) -> windows_core::Result; @@ -893,14 +698,8 @@ pub trait ISettingsResult_Impl: Sized { } impl windows_core::RuntimeName for ISettingsResult {} impl ISettingsResult_Vtbl { - pub const fn new() -> ISettingsResult_Vtbl - where - Identity: ISettingsResult_Impl, - { - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsResult_Impl, - { + pub const fn new() -> ISettingsResult_Vtbl { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsResult_Impl::GetDescription(this) { Ok(ok__) => { @@ -910,10 +709,7 @@ impl ISettingsResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorCode(this: *mut core::ffi::c_void, hrout: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISettingsResult_Impl, - { + unsafe extern "system" fn GetErrorCode(this: *mut core::ffi::c_void, hrout: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsResult_Impl::GetErrorCode(this) { Ok(ok__) => { @@ -923,10 +719,7 @@ impl ISettingsResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContextDescription(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsResult_Impl, - { + unsafe extern "system" fn GetContextDescription(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsResult_Impl::GetContextDescription(this) { Ok(ok__) => { @@ -936,10 +729,7 @@ impl ISettingsResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLine(this: *mut core::ffi::c_void, dwline: *mut u32) -> windows_core::HRESULT - where - Identity: ISettingsResult_Impl, - { + unsafe extern "system" fn GetLine(this: *mut core::ffi::c_void, dwline: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsResult_Impl::GetLine(this) { Ok(ok__) => { @@ -949,10 +739,7 @@ impl ISettingsResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, dwcolumn: *mut u32) -> windows_core::HRESULT - where - Identity: ISettingsResult_Impl, - { + unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, dwcolumn: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsResult_Impl::GetColumn(this) { Ok(ok__) => { @@ -962,10 +749,7 @@ impl ISettingsResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, file: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISettingsResult_Impl, - { + unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, file: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsResult_Impl::GetSource(this) { Ok(ok__) => { @@ -989,7 +773,7 @@ impl ISettingsResult_Vtbl { iid == &::IID } } -pub trait ITargetInfo_Impl: Sized { +pub trait ITargetInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetTargetMode(&self) -> windows_core::Result; fn SetTargetMode(&self, targetmode: WcmTargetMode) -> windows_core::Result<()>; fn GetTemporaryStoreLocation(&self) -> windows_core::Result; @@ -1014,14 +798,8 @@ pub trait ITargetInfo_Impl: Sized { } impl windows_core::RuntimeName for ITargetInfo {} impl ITargetInfo_Vtbl { - pub const fn new() -> ITargetInfo_Vtbl - where - Identity: ITargetInfo_Impl, - { - unsafe extern "system" fn GetTargetMode(this: *mut core::ffi::c_void, targetmode: *mut WcmTargetMode) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + pub const fn new() -> ITargetInfo_Vtbl { + unsafe extern "system" fn GetTargetMode(this: *mut core::ffi::c_void, targetmode: *mut WcmTargetMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::GetTargetMode(this) { Ok(ok__) => { @@ -1031,17 +809,11 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetMode(this: *mut core::ffi::c_void, targetmode: WcmTargetMode) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn SetTargetMode(this: *mut core::ffi::c_void, targetmode: WcmTargetMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetInfo_Impl::SetTargetMode(this, core::mem::transmute_copy(&targetmode)).into() } - unsafe extern "system" fn GetTemporaryStoreLocation(this: *mut core::ffi::c_void, temporarystorelocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn GetTemporaryStoreLocation(this: *mut core::ffi::c_void, temporarystorelocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::GetTemporaryStoreLocation(this) { Ok(ok__) => { @@ -1051,17 +823,11 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTemporaryStoreLocation(this: *mut core::ffi::c_void, temporarystorelocation: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn SetTemporaryStoreLocation(this: *mut core::ffi::c_void, temporarystorelocation: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetInfo_Impl::SetTemporaryStoreLocation(this, core::mem::transmute(&temporarystorelocation)).into() } - unsafe extern "system" fn GetTargetID(this: *mut core::ffi::c_void, targetid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn GetTargetID(this: *mut core::ffi::c_void, targetid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::GetTargetID(this) { Ok(ok__) => { @@ -1071,17 +837,11 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetID(this: *mut core::ffi::c_void, targetid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn SetTargetID(this: *mut core::ffi::c_void, targetid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetInfo_Impl::SetTargetID(this, core::mem::transmute(&targetid)).into() } - unsafe extern "system" fn GetTargetProcessorArchitecture(this: *mut core::ffi::c_void, processorarchitecture: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn GetTargetProcessorArchitecture(this: *mut core::ffi::c_void, processorarchitecture: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::GetTargetProcessorArchitecture(this) { Ok(ok__) => { @@ -1091,17 +851,11 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetProcessorArchitecture(this: *mut core::ffi::c_void, processorarchitecture: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn SetTargetProcessorArchitecture(this: *mut core::ffi::c_void, processorarchitecture: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetInfo_Impl::SetTargetProcessorArchitecture(this, core::mem::transmute(&processorarchitecture)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, property: windows_core::PCWSTR, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, property: windows_core::PCWSTR, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::GetProperty(this, core::mem::transmute_copy(&offline), core::mem::transmute(&property)) { Ok(ok__) => { @@ -1111,17 +865,11 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, property: windows_core::PCWSTR, value: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, property: windows_core::PCWSTR, value: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetInfo_Impl::SetProperty(this, core::mem::transmute_copy(&offline), core::mem::transmute(&property), core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn GetEnumerator(this: *mut core::ffi::c_void, enumerator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::GetEnumerator(this) { Ok(ok__) => { @@ -1131,10 +879,7 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpandTarget(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, location: windows_core::PCWSTR, expandedlocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn ExpandTarget(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, location: windows_core::PCWSTR, expandedlocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::ExpandTarget(this, core::mem::transmute_copy(&offline), core::mem::transmute(&location)) { Ok(ok__) => { @@ -1144,10 +889,7 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpandTargetPath(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, location: windows_core::PCWSTR, expandedlocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn ExpandTargetPath(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, location: windows_core::PCWSTR, expandedlocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::ExpandTargetPath(this, core::mem::transmute_copy(&offline), core::mem::transmute(&location)) { Ok(ok__) => { @@ -1157,17 +899,11 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetModulePath(this: *mut core::ffi::c_void, module: windows_core::PCWSTR, path: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn SetModulePath(this: *mut core::ffi::c_void, module: windows_core::PCWSTR, path: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetInfo_Impl::SetModulePath(this, core::mem::transmute(&module), core::mem::transmute(&path)).into() } - unsafe extern "system" fn LoadModule(this: *mut core::ffi::c_void, module: windows_core::PCWSTR, modulehandle: *mut super::super::Foundation::HMODULE) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn LoadModule(this: *mut core::ffi::c_void, module: windows_core::PCWSTR, modulehandle: *mut super::super::Foundation::HMODULE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::LoadModule(this, core::mem::transmute(&module)) { Ok(ok__) => { @@ -1177,17 +913,11 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWow64Context(this: *mut core::ffi::c_void, installermodule: windows_core::PCWSTR, wow64context: *const u8) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn SetWow64Context(this: *mut core::ffi::c_void, installermodule: windows_core::PCWSTR, wow64context: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetInfo_Impl::SetWow64Context(this, core::mem::transmute(&installermodule), core::mem::transmute_copy(&wow64context)).into() } - unsafe extern "system" fn TranslateWow64(this: *mut core::ffi::c_void, clientarchitecture: windows_core::PCWSTR, value: windows_core::PCWSTR, translatedvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn TranslateWow64(this: *mut core::ffi::c_void, clientarchitecture: windows_core::PCWSTR, value: windows_core::PCWSTR, translatedvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::TranslateWow64(this, core::mem::transmute(&clientarchitecture), core::mem::transmute(&value)) { Ok(ok__) => { @@ -1197,17 +927,11 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSchemaHiveLocation(this: *mut core::ffi::c_void, pwzhivedir: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn SetSchemaHiveLocation(this: *mut core::ffi::c_void, pwzhivedir: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetInfo_Impl::SetSchemaHiveLocation(this, core::mem::transmute(&pwzhivedir)).into() } - unsafe extern "system" fn GetSchemaHiveLocation(this: *mut core::ffi::c_void, phivelocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn GetSchemaHiveLocation(this: *mut core::ffi::c_void, phivelocation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::GetSchemaHiveLocation(this) { Ok(ok__) => { @@ -1217,17 +941,11 @@ impl ITargetInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSchemaHiveMountName(this: *mut core::ffi::c_void, pwzmountname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn SetSchemaHiveMountName(this: *mut core::ffi::c_void, pwzmountname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetInfo_Impl::SetSchemaHiveMountName(this, core::mem::transmute(&pwzmountname)).into() } - unsafe extern "system" fn GetSchemaHiveMountName(this: *mut core::ffi::c_void, pmountname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITargetInfo_Impl, - { + unsafe extern "system" fn GetSchemaHiveMountName(this: *mut core::ffi::c_void, pmountname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::GetSchemaHiveMountName(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/SideShow/impl.rs b/crates/libs/windows/src/Windows/Win32/System/SideShow/impl.rs index aa3691c528..e8dfbc5810 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SideShow/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SideShow/impl.rs @@ -6,14 +6,8 @@ pub trait ISideShowBulkCapabilities_Impl: Sized + ISideShowCapabilities_Impl { impl windows_core::RuntimeName for ISideShowBulkCapabilities {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISideShowBulkCapabilities_Vtbl { - pub const fn new() -> ISideShowBulkCapabilities_Vtbl - where - Identity: ISideShowBulkCapabilities_Impl, - { - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, in_keycollection: *mut core::ffi::c_void, inout_pvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowBulkCapabilities_Impl, - { + pub const fn new() -> ISideShowBulkCapabilities_Vtbl { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, in_keycollection: *mut core::ffi::c_void, inout_pvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowBulkCapabilities_Impl::GetCapabilities(this, windows_core::from_raw_borrowed(&in_keycollection), core::mem::transmute_copy(&inout_pvalues)).into() } @@ -24,21 +18,15 @@ impl ISideShowBulkCapabilities_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ISideShowCapabilities_Impl: Sized { +pub trait ISideShowCapabilities_Impl: Sized + windows_core::IUnknownImpl { fn GetCapability(&self, in_keycapability: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, inout_pvalue: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl windows_core::RuntimeName for ISideShowCapabilities {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISideShowCapabilities_Vtbl { - pub const fn new() -> ISideShowCapabilities_Vtbl - where - Identity: ISideShowCapabilities_Impl, - { - unsafe extern "system" fn GetCapability(this: *mut core::ffi::c_void, in_keycapability: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, inout_pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISideShowCapabilities_Impl, - { + pub const fn new() -> ISideShowCapabilities_Vtbl { + unsafe extern "system" fn GetCapability(this: *mut core::ffi::c_void, in_keycapability: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, inout_pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowCapabilities_Impl::GetCapability(this, core::mem::transmute_copy(&in_keycapability), core::mem::transmute_copy(&inout_pvalue)).into() } @@ -48,20 +36,14 @@ impl ISideShowCapabilities_Vtbl { iid == &::IID } } -pub trait ISideShowCapabilitiesCollection_Impl: Sized { +pub trait ISideShowCapabilitiesCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, in_dwindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ISideShowCapabilitiesCollection {} impl ISideShowCapabilitiesCollection_Vtbl { - pub const fn new() -> ISideShowCapabilitiesCollection_Vtbl - where - Identity: ISideShowCapabilitiesCollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, out_pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: ISideShowCapabilitiesCollection_Impl, - { + pub const fn new() -> ISideShowCapabilitiesCollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, out_pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowCapabilitiesCollection_Impl::GetCount(this) { Ok(ok__) => { @@ -71,10 +53,7 @@ impl ISideShowCapabilitiesCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, in_dwindex: u32, out_ppcapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowCapabilitiesCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, in_dwindex: u32, out_ppcapabilities: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowCapabilitiesCollection_Impl::GetAt(this, core::mem::transmute_copy(&in_dwindex)) { Ok(ok__) => { @@ -90,28 +69,19 @@ impl ISideShowCapabilitiesCollection_Vtbl { iid == &::IID } } -pub trait ISideShowContent_Impl: Sized { +pub trait ISideShowContent_Impl: Sized + windows_core::IUnknownImpl { fn GetContent(&self, in_picapabilities: Option<&ISideShowCapabilities>, out_pdwsize: *mut u32, out_ppbdata: *mut *mut u8) -> windows_core::Result<()>; fn ContentId(&self) -> windows_core::Result; fn DifferentiateContent(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISideShowContent {} impl ISideShowContent_Vtbl { - pub const fn new() -> ISideShowContent_Vtbl - where - Identity: ISideShowContent_Impl, - { - unsafe extern "system" fn GetContent(this: *mut core::ffi::c_void, in_picapabilities: *mut core::ffi::c_void, out_pdwsize: *mut u32, out_ppbdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ISideShowContent_Impl, - { + pub const fn new() -> ISideShowContent_Vtbl { + unsafe extern "system" fn GetContent(this: *mut core::ffi::c_void, in_picapabilities: *mut core::ffi::c_void, out_pdwsize: *mut u32, out_ppbdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowContent_Impl::GetContent(this, windows_core::from_raw_borrowed(&in_picapabilities), core::mem::transmute_copy(&out_pdwsize), core::mem::transmute_copy(&out_ppbdata)).into() } - unsafe extern "system" fn ContentId(this: *mut core::ffi::c_void, out_pcontentid: *mut u32) -> windows_core::HRESULT - where - Identity: ISideShowContent_Impl, - { + unsafe extern "system" fn ContentId(this: *mut core::ffi::c_void, out_pcontentid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowContent_Impl::ContentId(this) { Ok(ok__) => { @@ -121,10 +91,7 @@ impl ISideShowContent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DifferentiateContent(this: *mut core::ffi::c_void, out_pfdifferentiatecontent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISideShowContent_Impl, - { + unsafe extern "system" fn DifferentiateContent(this: *mut core::ffi::c_void, out_pfdifferentiatecontent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowContent_Impl::DifferentiateContent(this) { Ok(ok__) => { @@ -145,7 +112,7 @@ impl ISideShowContent_Vtbl { iid == &::IID } } -pub trait ISideShowContentManager_Impl: Sized { +pub trait ISideShowContentManager_Impl: Sized + windows_core::IUnknownImpl { fn Add(&self, in_picontent: Option<&ISideShowContent>) -> windows_core::Result<()>; fn Remove(&self, in_contentid: u32) -> windows_core::Result<()>; fn RemoveAll(&self) -> windows_core::Result<()>; @@ -154,42 +121,24 @@ pub trait ISideShowContentManager_Impl: Sized { } impl windows_core::RuntimeName for ISideShowContentManager {} impl ISideShowContentManager_Vtbl { - pub const fn new() -> ISideShowContentManager_Vtbl - where - Identity: ISideShowContentManager_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, in_picontent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowContentManager_Impl, - { + pub const fn new() -> ISideShowContentManager_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, in_picontent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowContentManager_Impl::Add(this, windows_core::from_raw_borrowed(&in_picontent)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, in_contentid: u32) -> windows_core::HRESULT - where - Identity: ISideShowContentManager_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, in_contentid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowContentManager_Impl::Remove(this, core::mem::transmute_copy(&in_contentid)).into() } - unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowContentManager_Impl, - { + unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowContentManager_Impl::RemoveAll(this).into() } - unsafe extern "system" fn SetEventSink(this: *mut core::ffi::c_void, in_pievents: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowContentManager_Impl, - { + unsafe extern "system" fn SetEventSink(this: *mut core::ffi::c_void, in_pievents: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowContentManager_Impl::SetEventSink(this, windows_core::from_raw_borrowed(&in_pievents)).into() } - unsafe extern "system" fn GetDeviceCapabilities(this: *mut core::ffi::c_void, out_ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowContentManager_Impl, - { + unsafe extern "system" fn GetDeviceCapabilities(this: *mut core::ffi::c_void, out_ppcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowContentManager_Impl::GetDeviceCapabilities(this) { Ok(ok__) => { @@ -212,7 +161,7 @@ impl ISideShowContentManager_Vtbl { iid == &::IID } } -pub trait ISideShowEvents_Impl: Sized { +pub trait ISideShowEvents_Impl: Sized + windows_core::IUnknownImpl { fn ContentMissing(&self, in_contentid: u32) -> windows_core::Result; fn ApplicationEvent(&self, in_picapabilities: Option<&ISideShowCapabilities>, in_dweventid: u32, in_dweventsize: u32, in_pbeventdata: *const u8) -> windows_core::Result<()>; fn DeviceAdded(&self, in_pidevice: Option<&ISideShowCapabilities>) -> windows_core::Result<()>; @@ -220,14 +169,8 @@ pub trait ISideShowEvents_Impl: Sized { } impl windows_core::RuntimeName for ISideShowEvents {} impl ISideShowEvents_Vtbl { - pub const fn new() -> ISideShowEvents_Vtbl - where - Identity: ISideShowEvents_Impl, - { - unsafe extern "system" fn ContentMissing(this: *mut core::ffi::c_void, in_contentid: u32, out_ppicontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowEvents_Impl, - { + pub const fn new() -> ISideShowEvents_Vtbl { + unsafe extern "system" fn ContentMissing(this: *mut core::ffi::c_void, in_contentid: u32, out_ppicontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowEvents_Impl::ContentMissing(this, core::mem::transmute_copy(&in_contentid)) { Ok(ok__) => { @@ -237,24 +180,15 @@ impl ISideShowEvents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplicationEvent(this: *mut core::ffi::c_void, in_picapabilities: *mut core::ffi::c_void, in_dweventid: u32, in_dweventsize: u32, in_pbeventdata: *const u8) -> windows_core::HRESULT - where - Identity: ISideShowEvents_Impl, - { + unsafe extern "system" fn ApplicationEvent(this: *mut core::ffi::c_void, in_picapabilities: *mut core::ffi::c_void, in_dweventid: u32, in_dweventsize: u32, in_pbeventdata: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowEvents_Impl::ApplicationEvent(this, windows_core::from_raw_borrowed(&in_picapabilities), core::mem::transmute_copy(&in_dweventid), core::mem::transmute_copy(&in_dweventsize), core::mem::transmute_copy(&in_pbeventdata)).into() } - unsafe extern "system" fn DeviceAdded(this: *mut core::ffi::c_void, in_pidevice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowEvents_Impl, - { + unsafe extern "system" fn DeviceAdded(this: *mut core::ffi::c_void, in_pidevice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowEvents_Impl::DeviceAdded(this, windows_core::from_raw_borrowed(&in_pidevice)).into() } - unsafe extern "system" fn DeviceRemoved(this: *mut core::ffi::c_void, in_pidevice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowEvents_Impl, - { + unsafe extern "system" fn DeviceRemoved(this: *mut core::ffi::c_void, in_pidevice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowEvents_Impl::DeviceRemoved(this, windows_core::from_raw_borrowed(&in_pidevice)).into() } @@ -271,7 +205,7 @@ impl ISideShowEvents_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ISideShowKeyCollection_Impl: Sized { +pub trait ISideShowKeyCollection_Impl: Sized + windows_core::IUnknownImpl { fn Add(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()>; fn Clear(&self) -> windows_core::Result<()>; fn GetAt(&self, dwindex: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()>; @@ -282,42 +216,24 @@ pub trait ISideShowKeyCollection_Impl: Sized { impl windows_core::RuntimeName for ISideShowKeyCollection {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISideShowKeyCollection_Vtbl { - pub const fn new() -> ISideShowKeyCollection_Vtbl - where - Identity: ISideShowKeyCollection_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: ISideShowKeyCollection_Impl, - { + pub const fn new() -> ISideShowKeyCollection_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowKeyCollection_Impl::Add(this, core::mem::transmute_copy(&key)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowKeyCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowKeyCollection_Impl::Clear(this).into() } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwindex: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: ISideShowKeyCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwindex: u32, pkey: *mut super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowKeyCollection_Impl::GetAt(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pkey)).into() } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelems: *const u32) -> windows_core::HRESULT - where - Identity: ISideShowKeyCollection_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelems: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowKeyCollection_Impl::GetCount(this, core::mem::transmute_copy(&pcelems)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT - where - Identity: ISideShowKeyCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowKeyCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&dwindex)).into() } @@ -335,7 +251,7 @@ impl ISideShowKeyCollection_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait ISideShowNotification_Impl: Sized { +pub trait ISideShowNotification_Impl: Sized + windows_core::IUnknownImpl { fn NotificationId(&self) -> windows_core::Result; fn SetNotificationId(&self, in_notificationid: u32) -> windows_core::Result<()>; fn Title(&self) -> windows_core::Result; @@ -351,14 +267,8 @@ pub trait ISideShowNotification_Impl: Sized { impl windows_core::RuntimeName for ISideShowNotification {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ISideShowNotification_Vtbl { - pub const fn new() -> ISideShowNotification_Vtbl - where - Identity: ISideShowNotification_Impl, - { - unsafe extern "system" fn NotificationId(this: *mut core::ffi::c_void, out_pnotificationid: *mut u32) -> windows_core::HRESULT - where - Identity: ISideShowNotification_Impl, - { + pub const fn new() -> ISideShowNotification_Vtbl { + unsafe extern "system" fn NotificationId(this: *mut core::ffi::c_void, out_pnotificationid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowNotification_Impl::NotificationId(this) { Ok(ok__) => { @@ -368,17 +278,11 @@ impl ISideShowNotification_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotificationId(this: *mut core::ffi::c_void, in_notificationid: u32) -> windows_core::HRESULT - where - Identity: ISideShowNotification_Impl, - { + unsafe extern "system" fn SetNotificationId(this: *mut core::ffi::c_void, in_notificationid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowNotification_Impl::SetNotificationId(this, core::mem::transmute_copy(&in_notificationid)).into() } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, out_ppwsztitle: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISideShowNotification_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, out_ppwsztitle: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowNotification_Impl::Title(this) { Ok(ok__) => { @@ -388,17 +292,11 @@ impl ISideShowNotification_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, in_pwsztitle: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISideShowNotification_Impl, - { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, in_pwsztitle: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowNotification_Impl::SetTitle(this, core::mem::transmute(&in_pwsztitle)).into() } - unsafe extern "system" fn Message(this: *mut core::ffi::c_void, out_ppwszmessage: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISideShowNotification_Impl, - { + unsafe extern "system" fn Message(this: *mut core::ffi::c_void, out_ppwszmessage: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowNotification_Impl::Message(this) { Ok(ok__) => { @@ -408,17 +306,11 @@ impl ISideShowNotification_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMessage(this: *mut core::ffi::c_void, in_pwszmessage: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISideShowNotification_Impl, - { + unsafe extern "system" fn SetMessage(this: *mut core::ffi::c_void, in_pwszmessage: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowNotification_Impl::SetMessage(this, core::mem::transmute(&in_pwszmessage)).into() } - unsafe extern "system" fn Image(this: *mut core::ffi::c_void, out_phicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT - where - Identity: ISideShowNotification_Impl, - { + unsafe extern "system" fn Image(this: *mut core::ffi::c_void, out_phicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowNotification_Impl::Image(this) { Ok(ok__) => { @@ -428,17 +320,11 @@ impl ISideShowNotification_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImage(this: *mut core::ffi::c_void, in_hicon: super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT - where - Identity: ISideShowNotification_Impl, - { + unsafe extern "system" fn SetImage(this: *mut core::ffi::c_void, in_hicon: super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowNotification_Impl::SetImage(this, core::mem::transmute_copy(&in_hicon)).into() } - unsafe extern "system" fn ExpirationTime(this: *mut core::ffi::c_void, out_ptime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: ISideShowNotification_Impl, - { + unsafe extern "system" fn ExpirationTime(this: *mut core::ffi::c_void, out_ptime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowNotification_Impl::ExpirationTime(this) { Ok(ok__) => { @@ -448,10 +334,7 @@ impl ISideShowNotification_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExpirationTime(this: *mut core::ffi::c_void, in_ptime: *const super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: ISideShowNotification_Impl, - { + unsafe extern "system" fn SetExpirationTime(this: *mut core::ffi::c_void, in_ptime: *const super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowNotification_Impl::SetExpirationTime(this, core::mem::transmute_copy(&in_ptime)).into() } @@ -473,35 +356,23 @@ impl ISideShowNotification_Vtbl { iid == &::IID } } -pub trait ISideShowNotificationManager_Impl: Sized { +pub trait ISideShowNotificationManager_Impl: Sized + windows_core::IUnknownImpl { fn Show(&self, in_pinotification: Option<&ISideShowNotification>) -> windows_core::Result<()>; fn Revoke(&self, in_notificationid: u32) -> windows_core::Result<()>; fn RevokeAll(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISideShowNotificationManager {} impl ISideShowNotificationManager_Vtbl { - pub const fn new() -> ISideShowNotificationManager_Vtbl - where - Identity: ISideShowNotificationManager_Impl, - { - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, in_pinotification: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowNotificationManager_Impl, - { + pub const fn new() -> ISideShowNotificationManager_Vtbl { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, in_pinotification: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowNotificationManager_Impl::Show(this, windows_core::from_raw_borrowed(&in_pinotification)).into() } - unsafe extern "system" fn Revoke(this: *mut core::ffi::c_void, in_notificationid: u32) -> windows_core::HRESULT - where - Identity: ISideShowNotificationManager_Impl, - { + unsafe extern "system" fn Revoke(this: *mut core::ffi::c_void, in_notificationid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowNotificationManager_Impl::Revoke(this, core::mem::transmute_copy(&in_notificationid)).into() } - unsafe extern "system" fn RevokeAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowNotificationManager_Impl, - { + unsafe extern "system" fn RevokeAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowNotificationManager_Impl::RevokeAll(this).into() } @@ -516,7 +387,7 @@ impl ISideShowNotificationManager_Vtbl { iid == &::IID } } -pub trait ISideShowPropVariantCollection_Impl: Sized { +pub trait ISideShowPropVariantCollection_Impl: Sized + windows_core::IUnknownImpl { fn Add(&self, pvalue: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; fn Clear(&self) -> windows_core::Result<()>; fn GetAt(&self, dwindex: u32, pvalue: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; @@ -525,42 +396,24 @@ pub trait ISideShowPropVariantCollection_Impl: Sized { } impl windows_core::RuntimeName for ISideShowPropVariantCollection {} impl ISideShowPropVariantCollection_Vtbl { - pub const fn new() -> ISideShowPropVariantCollection_Vtbl - where - Identity: ISideShowPropVariantCollection_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISideShowPropVariantCollection_Impl, - { + pub const fn new() -> ISideShowPropVariantCollection_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowPropVariantCollection_Impl::Add(this, core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowPropVariantCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowPropVariantCollection_Impl::Clear(this).into() } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwindex: u32, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISideShowPropVariantCollection_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, dwindex: u32, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowPropVariantCollection_Impl::GetAt(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelems: *const u32) -> windows_core::HRESULT - where - Identity: ISideShowPropVariantCollection_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelems: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowPropVariantCollection_Impl::GetCount(this, core::mem::transmute_copy(&pcelems)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT - where - Identity: ISideShowPropVariantCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, dwindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISideShowPropVariantCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&dwindex)).into() } @@ -577,20 +430,14 @@ impl ISideShowPropVariantCollection_Vtbl { iid == &::IID } } -pub trait ISideShowSession_Impl: Sized { +pub trait ISideShowSession_Impl: Sized + windows_core::IUnknownImpl { fn RegisterContent(&self, in_applicationid: *const windows_core::GUID, in_endpointid: *const windows_core::GUID) -> windows_core::Result; fn RegisterNotifications(&self, in_applicationid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for ISideShowSession {} impl ISideShowSession_Vtbl { - pub const fn new() -> ISideShowSession_Vtbl - where - Identity: ISideShowSession_Impl, - { - unsafe extern "system" fn RegisterContent(this: *mut core::ffi::c_void, in_applicationid: *const windows_core::GUID, in_endpointid: *const windows_core::GUID, out_ppicontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowSession_Impl, - { + pub const fn new() -> ISideShowSession_Vtbl { + unsafe extern "system" fn RegisterContent(this: *mut core::ffi::c_void, in_applicationid: *const windows_core::GUID, in_endpointid: *const windows_core::GUID, out_ppicontent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowSession_Impl::RegisterContent(this, core::mem::transmute_copy(&in_applicationid), core::mem::transmute_copy(&in_endpointid)) { Ok(ok__) => { @@ -600,10 +447,7 @@ impl ISideShowSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterNotifications(this: *mut core::ffi::c_void, in_applicationid: *const windows_core::GUID, out_ppinotification: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISideShowSession_Impl, - { + unsafe extern "system" fn RegisterNotifications(this: *mut core::ffi::c_void, in_applicationid: *const windows_core::GUID, out_ppinotification: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowSession_Impl::RegisterNotifications(this, core::mem::transmute_copy(&in_applicationid)) { Ok(ok__) => { 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 cabbfe9dc7..a1dad47346 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/impl.rs @@ -8,28 +8,16 @@ pub trait IAction_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAction {} #[cfg(feature = "Win32_System_Com")] impl IAction_Vtbl { - pub const fn new() -> IAction_Vtbl - where - Identity: IAction_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAction_Impl, - { + pub const fn new() -> IAction_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAction_Impl::Id(this, core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAction_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAction_Impl::SetId(this, core::mem::transmute(&id)).into() } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut TASK_ACTION_TYPE) -> windows_core::HRESULT - where - Identity: IAction_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut TASK_ACTION_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAction_Impl::Type(this, core::mem::transmute_copy(&ptype)).into() } @@ -61,21 +49,12 @@ pub trait IActionCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IActionCollection {} #[cfg(feature = "Win32_System_Com")] impl IActionCollection_Vtbl { - pub const fn new() -> IActionCollection_Vtbl - where - Identity: IActionCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: IActionCollection_Impl, - { + pub const fn new() -> IActionCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionCollection_Impl::Count(this, core::mem::transmute_copy(&pcount)).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, ppaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActionCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, ppaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActionCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -85,10 +64,7 @@ impl IActionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActionCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActionCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -98,24 +74,15 @@ impl IActionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn XmlText(this: *mut core::ffi::c_void, ptext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActionCollection_Impl, - { + unsafe extern "system" fn XmlText(this: *mut core::ffi::c_void, ptext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionCollection_Impl::XmlText(this, core::mem::transmute_copy(&ptext)).into() } - unsafe extern "system" fn SetXmlText(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActionCollection_Impl, - { + unsafe extern "system" fn SetXmlText(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionCollection_Impl::SetXmlText(this, core::mem::transmute(&text)).into() } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, r#type: TASK_ACTION_TYPE, ppaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActionCollection_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, r#type: TASK_ACTION_TYPE, ppaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActionCollection_Impl::Create(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -125,31 +92,19 @@ impl IActionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActionCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionCollection_Impl::Remove(this, core::mem::transmute(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActionCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionCollection_Impl::Clear(this).into() } - unsafe extern "system" fn Context(this: *mut core::ffi::c_void, pcontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActionCollection_Impl, - { + unsafe extern "system" fn Context(this: *mut core::ffi::c_void, pcontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionCollection_Impl::Context(this, core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, context: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IActionCollection_Impl, - { + unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, context: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionCollection_Impl::SetContext(this, core::mem::transmute(&context)).into() } @@ -180,21 +135,12 @@ pub trait IBootTrigger_Impl: Sized + ITrigger_Impl { impl windows_core::RuntimeName for IBootTrigger {} #[cfg(feature = "Win32_System_Com")] impl IBootTrigger_Vtbl { - pub const fn new() -> IBootTrigger_Vtbl - where - Identity: IBootTrigger_Impl, - { - unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBootTrigger_Impl, - { + pub const fn new() -> IBootTrigger_Vtbl { + unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBootTrigger_Impl::Delay(this, core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetDelay(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBootTrigger_Impl, - { + unsafe extern "system" fn SetDelay(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBootTrigger_Impl::SetDelay(this, core::mem::transmute(&delay)).into() } @@ -215,35 +161,20 @@ pub trait IComHandlerAction_Impl: Sized + IAction_Impl { impl windows_core::RuntimeName for IComHandlerAction {} #[cfg(feature = "Win32_System_Com")] impl IComHandlerAction_Vtbl { - pub const fn new() -> IComHandlerAction_Vtbl - where - Identity: IComHandlerAction_Impl, - { - unsafe extern "system" fn ClassId(this: *mut core::ffi::c_void, pclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComHandlerAction_Impl, - { + pub const fn new() -> IComHandlerAction_Vtbl { + unsafe extern "system" fn ClassId(this: *mut core::ffi::c_void, pclsid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComHandlerAction_Impl::ClassId(this, core::mem::transmute_copy(&pclsid)).into() } - unsafe extern "system" fn SetClassId(this: *mut core::ffi::c_void, clsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComHandlerAction_Impl, - { + unsafe extern "system" fn SetClassId(this: *mut core::ffi::c_void, clsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComHandlerAction_Impl::SetClassId(this, core::mem::transmute(&clsid)).into() } - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, pdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComHandlerAction_Impl, - { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, pdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComHandlerAction_Impl::Data(this, core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComHandlerAction_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComHandlerAction_Impl::SetData(this, core::mem::transmute(&data)).into() } @@ -270,35 +201,20 @@ pub trait IDailyTrigger_Impl: Sized + ITrigger_Impl { impl windows_core::RuntimeName for IDailyTrigger {} #[cfg(feature = "Win32_System_Com")] impl IDailyTrigger_Vtbl { - pub const fn new() -> IDailyTrigger_Vtbl - where - Identity: IDailyTrigger_Impl, - { - unsafe extern "system" fn DaysInterval(this: *mut core::ffi::c_void, pdays: *mut i16) -> windows_core::HRESULT - where - Identity: IDailyTrigger_Impl, - { + pub const fn new() -> IDailyTrigger_Vtbl { + unsafe extern "system" fn DaysInterval(this: *mut core::ffi::c_void, pdays: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDailyTrigger_Impl::DaysInterval(this, core::mem::transmute_copy(&pdays)).into() } - unsafe extern "system" fn SetDaysInterval(this: *mut core::ffi::c_void, days: i16) -> windows_core::HRESULT - where - Identity: IDailyTrigger_Impl, - { + unsafe extern "system" fn SetDaysInterval(this: *mut core::ffi::c_void, days: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDailyTrigger_Impl::SetDaysInterval(this, core::mem::transmute_copy(&days)).into() } - unsafe extern "system" fn RandomDelay(this: *mut core::ffi::c_void, prandomdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDailyTrigger_Impl, - { + unsafe extern "system" fn RandomDelay(this: *mut core::ffi::c_void, prandomdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDailyTrigger_Impl::RandomDelay(this, core::mem::transmute_copy(&prandomdelay)).into() } - unsafe extern "system" fn SetRandomDelay(this: *mut core::ffi::c_void, randomdelay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDailyTrigger_Impl, - { + unsafe extern "system" fn SetRandomDelay(this: *mut core::ffi::c_void, randomdelay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDailyTrigger_Impl::SetRandomDelay(this, core::mem::transmute(&randomdelay)).into() } @@ -341,112 +257,64 @@ pub trait IEmailAction_Impl: Sized + IAction_Impl { impl windows_core::RuntimeName for IEmailAction {} #[cfg(feature = "Win32_System_Com")] impl IEmailAction_Vtbl { - pub const fn new() -> IEmailAction_Vtbl - where - Identity: IEmailAction_Impl, - { - unsafe extern "system" fn Server(this: *mut core::ffi::c_void, pserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + pub const fn new() -> IEmailAction_Vtbl { + unsafe extern "system" fn Server(this: *mut core::ffi::c_void, pserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::Server(this, core::mem::transmute_copy(&pserver)).into() } - unsafe extern "system" fn SetServer(this: *mut core::ffi::c_void, server: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn SetServer(this: *mut core::ffi::c_void, server: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::SetServer(this, core::mem::transmute(&server)).into() } - unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, psubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn Subject(this: *mut core::ffi::c_void, psubject: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::Subject(this, core::mem::transmute_copy(&psubject)).into() } - unsafe extern "system" fn SetSubject(this: *mut core::ffi::c_void, subject: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn SetSubject(this: *mut core::ffi::c_void, subject: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::SetSubject(this, core::mem::transmute(&subject)).into() } - unsafe extern "system" fn To(this: *mut core::ffi::c_void, pto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn To(this: *mut core::ffi::c_void, pto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::To(this, core::mem::transmute_copy(&pto)).into() } - unsafe extern "system" fn SetTo(this: *mut core::ffi::c_void, to: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn SetTo(this: *mut core::ffi::c_void, to: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::SetTo(this, core::mem::transmute(&to)).into() } - unsafe extern "system" fn Cc(this: *mut core::ffi::c_void, pcc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn Cc(this: *mut core::ffi::c_void, pcc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::Cc(this, core::mem::transmute_copy(&pcc)).into() } - unsafe extern "system" fn SetCc(this: *mut core::ffi::c_void, cc: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn SetCc(this: *mut core::ffi::c_void, cc: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::SetCc(this, core::mem::transmute(&cc)).into() } - unsafe extern "system" fn Bcc(this: *mut core::ffi::c_void, pbcc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn Bcc(this: *mut core::ffi::c_void, pbcc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::Bcc(this, core::mem::transmute_copy(&pbcc)).into() } - unsafe extern "system" fn SetBcc(this: *mut core::ffi::c_void, bcc: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn SetBcc(this: *mut core::ffi::c_void, bcc: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::SetBcc(this, core::mem::transmute(&bcc)).into() } - unsafe extern "system" fn ReplyTo(this: *mut core::ffi::c_void, preplyto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn ReplyTo(this: *mut core::ffi::c_void, preplyto: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::ReplyTo(this, core::mem::transmute_copy(&preplyto)).into() } - unsafe extern "system" fn SetReplyTo(this: *mut core::ffi::c_void, replyto: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn SetReplyTo(this: *mut core::ffi::c_void, replyto: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::SetReplyTo(this, core::mem::transmute(&replyto)).into() } - unsafe extern "system" fn From(this: *mut core::ffi::c_void, pfrom: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn From(this: *mut core::ffi::c_void, pfrom: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::From(this, core::mem::transmute_copy(&pfrom)).into() } - unsafe extern "system" fn SetFrom(this: *mut core::ffi::c_void, from: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn SetFrom(this: *mut core::ffi::c_void, from: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::SetFrom(this, core::mem::transmute(&from)).into() } - unsafe extern "system" fn HeaderFields(this: *mut core::ffi::c_void, ppheaderfields: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn HeaderFields(this: *mut core::ffi::c_void, ppheaderfields: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEmailAction_Impl::HeaderFields(this) { Ok(ok__) => { @@ -456,38 +324,23 @@ impl IEmailAction_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHeaderFields(this: *mut core::ffi::c_void, pheaderfields: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn SetHeaderFields(this: *mut core::ffi::c_void, pheaderfields: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::SetHeaderFields(this, windows_core::from_raw_borrowed(&pheaderfields)).into() } - unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn Body(this: *mut core::ffi::c_void, pbody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::Body(this, core::mem::transmute_copy(&pbody)).into() } - unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, body: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn SetBody(this: *mut core::ffi::c_void, body: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::SetBody(this, core::mem::transmute(&body)).into() } - unsafe extern "system" fn Attachments(this: *mut core::ffi::c_void, pattachements: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn Attachments(this: *mut core::ffi::c_void, pattachements: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::Attachments(this, core::mem::transmute_copy(&pattachements)).into() } - unsafe extern "system" fn SetAttachments(this: *mut core::ffi::c_void, pattachements: *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IEmailAction_Impl, - { + unsafe extern "system" fn SetAttachments(this: *mut core::ffi::c_void, pattachements: *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmailAction_Impl::SetAttachments(this, core::mem::transmute_copy(&pattachements)).into() } @@ -519,7 +372,7 @@ impl IEmailAction_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IEnumWorkItems_Impl: Sized { +pub trait IEnumWorkItems_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgpwsznames: *mut *mut windows_core::PWSTR, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::HRESULT; fn Reset(&self) -> windows_core::Result<()>; @@ -527,35 +380,20 @@ pub trait IEnumWorkItems_Impl: Sized { } impl windows_core::RuntimeName for IEnumWorkItems {} impl IEnumWorkItems_Vtbl { - pub const fn new() -> IEnumWorkItems_Vtbl - where - Identity: IEnumWorkItems_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgpwsznames: *mut *mut windows_core::PWSTR, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWorkItems_Impl, - { + pub const fn new() -> IEnumWorkItems_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgpwsznames: *mut *mut windows_core::PWSTR, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWorkItems_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgpwsznames), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumWorkItems_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWorkItems_Impl::Skip(this, core::mem::transmute_copy(&celt)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWorkItems_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWorkItems_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumworkitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWorkItems_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumworkitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWorkItems_Impl::Clone(this) { Ok(ok__) => { @@ -590,42 +428,24 @@ pub trait IEventTrigger_Impl: Sized + ITrigger_Impl { impl windows_core::RuntimeName for IEventTrigger {} #[cfg(feature = "Win32_System_Com")] impl IEventTrigger_Vtbl { - pub const fn new() -> IEventTrigger_Vtbl - where - Identity: IEventTrigger_Impl, - { - unsafe extern "system" fn Subscription(this: *mut core::ffi::c_void, pquery: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventTrigger_Impl, - { + pub const fn new() -> IEventTrigger_Vtbl { + unsafe extern "system" fn Subscription(this: *mut core::ffi::c_void, pquery: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventTrigger_Impl::Subscription(this, core::mem::transmute_copy(&pquery)).into() } - unsafe extern "system" fn SetSubscription(this: *mut core::ffi::c_void, query: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventTrigger_Impl, - { + unsafe extern "system" fn SetSubscription(this: *mut core::ffi::c_void, query: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventTrigger_Impl::SetSubscription(this, core::mem::transmute(&query)).into() } - unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventTrigger_Impl, - { + unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventTrigger_Impl::Delay(this, core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetDelay(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEventTrigger_Impl, - { + unsafe extern "system" fn SetDelay(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventTrigger_Impl::SetDelay(this, core::mem::transmute(&delay)).into() } - unsafe extern "system" fn ValueQueries(this: *mut core::ffi::c_void, ppnamedxpaths: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventTrigger_Impl, - { + unsafe extern "system" fn ValueQueries(this: *mut core::ffi::c_void, ppnamedxpaths: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventTrigger_Impl::ValueQueries(this) { Ok(ok__) => { @@ -635,10 +455,7 @@ impl IEventTrigger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValueQueries(this: *mut core::ffi::c_void, pnamedxpaths: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEventTrigger_Impl, - { + unsafe extern "system" fn SetValueQueries(this: *mut core::ffi::c_void, pnamedxpaths: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventTrigger_Impl::SetValueQueries(this, windows_core::from_raw_borrowed(&pnamedxpaths)).into() } @@ -669,49 +486,28 @@ pub trait IExecAction_Impl: Sized + IAction_Impl { impl windows_core::RuntimeName for IExecAction {} #[cfg(feature = "Win32_System_Com")] impl IExecAction_Vtbl { - pub const fn new() -> IExecAction_Vtbl - where - Identity: IExecAction_Impl, - { - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IExecAction_Impl, - { + pub const fn new() -> IExecAction_Vtbl { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecAction_Impl::Path(this, core::mem::transmute_copy(&ppath)).into() } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IExecAction_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecAction_Impl::SetPath(this, core::mem::transmute(&path)).into() } - unsafe extern "system" fn Arguments(this: *mut core::ffi::c_void, pargument: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IExecAction_Impl, - { + unsafe extern "system" fn Arguments(this: *mut core::ffi::c_void, pargument: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecAction_Impl::Arguments(this, core::mem::transmute_copy(&pargument)).into() } - unsafe extern "system" fn SetArguments(this: *mut core::ffi::c_void, argument: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IExecAction_Impl, - { + unsafe extern "system" fn SetArguments(this: *mut core::ffi::c_void, argument: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecAction_Impl::SetArguments(this, core::mem::transmute(&argument)).into() } - unsafe extern "system" fn WorkingDirectory(this: *mut core::ffi::c_void, pworkingdirectory: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IExecAction_Impl, - { + unsafe extern "system" fn WorkingDirectory(this: *mut core::ffi::c_void, pworkingdirectory: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecAction_Impl::WorkingDirectory(this, core::mem::transmute_copy(&pworkingdirectory)).into() } - unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, workingdirectory: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IExecAction_Impl, - { + unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, workingdirectory: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecAction_Impl::SetWorkingDirectory(this, core::mem::transmute(&workingdirectory)).into() } @@ -738,21 +534,12 @@ pub trait IExecAction2_Impl: Sized + IExecAction_Impl { impl windows_core::RuntimeName for IExecAction2 {} #[cfg(feature = "Win32_System_Com")] impl IExecAction2_Vtbl { - pub const fn new() -> IExecAction2_Vtbl - where - Identity: IExecAction2_Impl, - { - unsafe extern "system" fn HideAppWindow(this: *mut core::ffi::c_void, phideappwindow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IExecAction2_Impl, - { + pub const fn new() -> IExecAction2_Vtbl { + unsafe extern "system" fn HideAppWindow(this: *mut core::ffi::c_void, phideappwindow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecAction2_Impl::HideAppWindow(this, core::mem::transmute_copy(&phideappwindow)).into() } - unsafe extern "system" fn SetHideAppWindow(this: *mut core::ffi::c_void, hideappwindow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IExecAction2_Impl, - { + unsafe extern "system" fn SetHideAppWindow(this: *mut core::ffi::c_void, hideappwindow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecAction2_Impl::SetHideAppWindow(this, core::mem::transmute_copy(&hideappwindow)).into() } @@ -781,63 +568,36 @@ pub trait IIdleSettings_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IIdleSettings {} #[cfg(feature = "Win32_System_Com")] impl IIdleSettings_Vtbl { - pub const fn new() -> IIdleSettings_Vtbl - where - Identity: IIdleSettings_Impl, - { - unsafe extern "system" fn IdleDuration(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIdleSettings_Impl, - { + pub const fn new() -> IIdleSettings_Vtbl { + unsafe extern "system" fn IdleDuration(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdleSettings_Impl::IdleDuration(this, core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetIdleDuration(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIdleSettings_Impl, - { + unsafe extern "system" fn SetIdleDuration(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdleSettings_Impl::SetIdleDuration(this, core::mem::transmute(&delay)).into() } - unsafe extern "system" fn WaitTimeout(this: *mut core::ffi::c_void, ptimeout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIdleSettings_Impl, - { + unsafe extern "system" fn WaitTimeout(this: *mut core::ffi::c_void, ptimeout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdleSettings_Impl::WaitTimeout(this, core::mem::transmute_copy(&ptimeout)).into() } - unsafe extern "system" fn SetWaitTimeout(this: *mut core::ffi::c_void, timeout: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIdleSettings_Impl, - { + unsafe extern "system" fn SetWaitTimeout(this: *mut core::ffi::c_void, timeout: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdleSettings_Impl::SetWaitTimeout(this, core::mem::transmute(&timeout)).into() } - unsafe extern "system" fn StopOnIdleEnd(this: *mut core::ffi::c_void, pstop: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IIdleSettings_Impl, - { + unsafe extern "system" fn StopOnIdleEnd(this: *mut core::ffi::c_void, pstop: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdleSettings_Impl::StopOnIdleEnd(this, core::mem::transmute_copy(&pstop)).into() } - unsafe extern "system" fn SetStopOnIdleEnd(this: *mut core::ffi::c_void, stop: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IIdleSettings_Impl, - { + unsafe extern "system" fn SetStopOnIdleEnd(this: *mut core::ffi::c_void, stop: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdleSettings_Impl::SetStopOnIdleEnd(this, core::mem::transmute_copy(&stop)).into() } - unsafe extern "system" fn RestartOnIdle(this: *mut core::ffi::c_void, prestart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IIdleSettings_Impl, - { + unsafe extern "system" fn RestartOnIdle(this: *mut core::ffi::c_void, prestart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdleSettings_Impl::RestartOnIdle(this, core::mem::transmute_copy(&prestart)).into() } - unsafe extern "system" fn SetRestartOnIdle(this: *mut core::ffi::c_void, restart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IIdleSettings_Impl, - { + unsafe extern "system" fn SetRestartOnIdle(this: *mut core::ffi::c_void, restart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIdleSettings_Impl::SetRestartOnIdle(this, core::mem::transmute_copy(&restart)).into() } @@ -863,10 +623,7 @@ pub trait IIdleTrigger_Impl: Sized + ITrigger_Impl {} impl windows_core::RuntimeName for IIdleTrigger {} #[cfg(feature = "Win32_System_Com")] impl IIdleTrigger_Vtbl { - pub const fn new() -> IIdleTrigger_Vtbl - where - Identity: IIdleTrigger_Impl, - { + pub const fn new() -> IIdleTrigger_Vtbl { Self { base__: ITrigger_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -884,35 +641,20 @@ pub trait ILogonTrigger_Impl: Sized + ITrigger_Impl { impl windows_core::RuntimeName for ILogonTrigger {} #[cfg(feature = "Win32_System_Com")] impl ILogonTrigger_Vtbl { - pub const fn new() -> ILogonTrigger_Vtbl - where - Identity: ILogonTrigger_Impl, - { - unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILogonTrigger_Impl, - { + pub const fn new() -> ILogonTrigger_Vtbl { + unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILogonTrigger_Impl::Delay(this, core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetDelay(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILogonTrigger_Impl, - { + unsafe extern "system" fn SetDelay(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILogonTrigger_Impl::SetDelay(this, core::mem::transmute(&delay)).into() } - unsafe extern "system" fn UserId(this: *mut core::ffi::c_void, puser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILogonTrigger_Impl, - { + unsafe extern "system" fn UserId(this: *mut core::ffi::c_void, puser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILogonTrigger_Impl::UserId(this, core::mem::transmute_copy(&puser)).into() } - unsafe extern "system" fn SetUserId(this: *mut core::ffi::c_void, user: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILogonTrigger_Impl, - { + unsafe extern "system" fn SetUserId(this: *mut core::ffi::c_void, user: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILogonTrigger_Impl::SetUserId(this, core::mem::transmute(&user)).into() } @@ -941,49 +683,28 @@ pub trait IMaintenanceSettings_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IMaintenanceSettings {} #[cfg(feature = "Win32_System_Com")] impl IMaintenanceSettings_Vtbl { - pub const fn new() -> IMaintenanceSettings_Vtbl - where - Identity: IMaintenanceSettings_Impl, - { - unsafe extern "system" fn SetPeriod(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMaintenanceSettings_Impl, - { + pub const fn new() -> IMaintenanceSettings_Vtbl { + unsafe extern "system" fn SetPeriod(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMaintenanceSettings_Impl::SetPeriod(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Period(this: *mut core::ffi::c_void, target: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMaintenanceSettings_Impl, - { + unsafe extern "system" fn Period(this: *mut core::ffi::c_void, target: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMaintenanceSettings_Impl::Period(this, core::mem::transmute_copy(&target)).into() } - unsafe extern "system" fn SetDeadline(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMaintenanceSettings_Impl, - { + unsafe extern "system" fn SetDeadline(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMaintenanceSettings_Impl::SetDeadline(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Deadline(this: *mut core::ffi::c_void, target: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMaintenanceSettings_Impl, - { + unsafe extern "system" fn Deadline(this: *mut core::ffi::c_void, target: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMaintenanceSettings_Impl::Deadline(this, core::mem::transmute_copy(&target)).into() } - unsafe extern "system" fn SetExclusive(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMaintenanceSettings_Impl, - { + unsafe extern "system" fn SetExclusive(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMaintenanceSettings_Impl::SetExclusive(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Exclusive(this: *mut core::ffi::c_void, target: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMaintenanceSettings_Impl, - { + unsafe extern "system" fn Exclusive(this: *mut core::ffi::c_void, target: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMaintenanceSettings_Impl::Exclusive(this, core::mem::transmute_copy(&target)).into() } @@ -1018,77 +739,44 @@ pub trait IMonthlyDOWTrigger_Impl: Sized + ITrigger_Impl { impl windows_core::RuntimeName for IMonthlyDOWTrigger {} #[cfg(feature = "Win32_System_Com")] impl IMonthlyDOWTrigger_Vtbl { - pub const fn new() -> IMonthlyDOWTrigger_Vtbl - where - Identity: IMonthlyDOWTrigger_Impl, - { - unsafe extern "system" fn DaysOfWeek(this: *mut core::ffi::c_void, pdays: *mut i16) -> windows_core::HRESULT - where - Identity: IMonthlyDOWTrigger_Impl, - { + pub const fn new() -> IMonthlyDOWTrigger_Vtbl { + unsafe extern "system" fn DaysOfWeek(this: *mut core::ffi::c_void, pdays: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyDOWTrigger_Impl::DaysOfWeek(this, core::mem::transmute_copy(&pdays)).into() } - unsafe extern "system" fn SetDaysOfWeek(this: *mut core::ffi::c_void, days: i16) -> windows_core::HRESULT - where - Identity: IMonthlyDOWTrigger_Impl, - { + unsafe extern "system" fn SetDaysOfWeek(this: *mut core::ffi::c_void, days: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyDOWTrigger_Impl::SetDaysOfWeek(this, core::mem::transmute_copy(&days)).into() } - unsafe extern "system" fn WeeksOfMonth(this: *mut core::ffi::c_void, pweeks: *mut i16) -> windows_core::HRESULT - where - Identity: IMonthlyDOWTrigger_Impl, - { + unsafe extern "system" fn WeeksOfMonth(this: *mut core::ffi::c_void, pweeks: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyDOWTrigger_Impl::WeeksOfMonth(this, core::mem::transmute_copy(&pweeks)).into() } - unsafe extern "system" fn SetWeeksOfMonth(this: *mut core::ffi::c_void, weeks: i16) -> windows_core::HRESULT - where - Identity: IMonthlyDOWTrigger_Impl, - { + unsafe extern "system" fn SetWeeksOfMonth(this: *mut core::ffi::c_void, weeks: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyDOWTrigger_Impl::SetWeeksOfMonth(this, core::mem::transmute_copy(&weeks)).into() } - unsafe extern "system" fn MonthsOfYear(this: *mut core::ffi::c_void, pmonths: *mut i16) -> windows_core::HRESULT - where - Identity: IMonthlyDOWTrigger_Impl, - { + unsafe extern "system" fn MonthsOfYear(this: *mut core::ffi::c_void, pmonths: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyDOWTrigger_Impl::MonthsOfYear(this, core::mem::transmute_copy(&pmonths)).into() } - unsafe extern "system" fn SetMonthsOfYear(this: *mut core::ffi::c_void, months: i16) -> windows_core::HRESULT - where - Identity: IMonthlyDOWTrigger_Impl, - { + unsafe extern "system" fn SetMonthsOfYear(this: *mut core::ffi::c_void, months: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyDOWTrigger_Impl::SetMonthsOfYear(this, core::mem::transmute_copy(&months)).into() } - unsafe extern "system" fn RunOnLastWeekOfMonth(this: *mut core::ffi::c_void, plastweek: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMonthlyDOWTrigger_Impl, - { + unsafe extern "system" fn RunOnLastWeekOfMonth(this: *mut core::ffi::c_void, plastweek: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyDOWTrigger_Impl::RunOnLastWeekOfMonth(this, core::mem::transmute_copy(&plastweek)).into() } - unsafe extern "system" fn SetRunOnLastWeekOfMonth(this: *mut core::ffi::c_void, lastweek: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMonthlyDOWTrigger_Impl, - { + unsafe extern "system" fn SetRunOnLastWeekOfMonth(this: *mut core::ffi::c_void, lastweek: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyDOWTrigger_Impl::SetRunOnLastWeekOfMonth(this, core::mem::transmute_copy(&lastweek)).into() } - unsafe extern "system" fn RandomDelay(this: *mut core::ffi::c_void, prandomdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMonthlyDOWTrigger_Impl, - { + unsafe extern "system" fn RandomDelay(this: *mut core::ffi::c_void, prandomdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyDOWTrigger_Impl::RandomDelay(this, core::mem::transmute_copy(&prandomdelay)).into() } - unsafe extern "system" fn SetRandomDelay(this: *mut core::ffi::c_void, randomdelay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMonthlyDOWTrigger_Impl, - { + unsafe extern "system" fn SetRandomDelay(this: *mut core::ffi::c_void, randomdelay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyDOWTrigger_Impl::SetRandomDelay(this, core::mem::transmute(&randomdelay)).into() } @@ -1125,63 +813,36 @@ pub trait IMonthlyTrigger_Impl: Sized + ITrigger_Impl { impl windows_core::RuntimeName for IMonthlyTrigger {} #[cfg(feature = "Win32_System_Com")] impl IMonthlyTrigger_Vtbl { - pub const fn new() -> IMonthlyTrigger_Vtbl - where - Identity: IMonthlyTrigger_Impl, - { - unsafe extern "system" fn DaysOfMonth(this: *mut core::ffi::c_void, pdays: *mut i32) -> windows_core::HRESULT - where - Identity: IMonthlyTrigger_Impl, - { + pub const fn new() -> IMonthlyTrigger_Vtbl { + unsafe extern "system" fn DaysOfMonth(this: *mut core::ffi::c_void, pdays: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyTrigger_Impl::DaysOfMonth(this, core::mem::transmute_copy(&pdays)).into() } - unsafe extern "system" fn SetDaysOfMonth(this: *mut core::ffi::c_void, days: i32) -> windows_core::HRESULT - where - Identity: IMonthlyTrigger_Impl, - { + unsafe extern "system" fn SetDaysOfMonth(this: *mut core::ffi::c_void, days: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyTrigger_Impl::SetDaysOfMonth(this, core::mem::transmute_copy(&days)).into() } - unsafe extern "system" fn MonthsOfYear(this: *mut core::ffi::c_void, pmonths: *mut i16) -> windows_core::HRESULT - where - Identity: IMonthlyTrigger_Impl, - { + unsafe extern "system" fn MonthsOfYear(this: *mut core::ffi::c_void, pmonths: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyTrigger_Impl::MonthsOfYear(this, core::mem::transmute_copy(&pmonths)).into() } - unsafe extern "system" fn SetMonthsOfYear(this: *mut core::ffi::c_void, months: i16) -> windows_core::HRESULT - where - Identity: IMonthlyTrigger_Impl, - { + unsafe extern "system" fn SetMonthsOfYear(this: *mut core::ffi::c_void, months: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyTrigger_Impl::SetMonthsOfYear(this, core::mem::transmute_copy(&months)).into() } - unsafe extern "system" fn RunOnLastDayOfMonth(this: *mut core::ffi::c_void, plastday: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMonthlyTrigger_Impl, - { + unsafe extern "system" fn RunOnLastDayOfMonth(this: *mut core::ffi::c_void, plastday: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyTrigger_Impl::RunOnLastDayOfMonth(this, core::mem::transmute_copy(&plastday)).into() } - unsafe extern "system" fn SetRunOnLastDayOfMonth(this: *mut core::ffi::c_void, lastday: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMonthlyTrigger_Impl, - { + unsafe extern "system" fn SetRunOnLastDayOfMonth(this: *mut core::ffi::c_void, lastday: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyTrigger_Impl::SetRunOnLastDayOfMonth(this, core::mem::transmute_copy(&lastday)).into() } - unsafe extern "system" fn RandomDelay(this: *mut core::ffi::c_void, prandomdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMonthlyTrigger_Impl, - { + unsafe extern "system" fn RandomDelay(this: *mut core::ffi::c_void, prandomdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyTrigger_Impl::RandomDelay(this, core::mem::transmute_copy(&prandomdelay)).into() } - unsafe extern "system" fn SetRandomDelay(this: *mut core::ffi::c_void, randomdelay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMonthlyTrigger_Impl, - { + unsafe extern "system" fn SetRandomDelay(this: *mut core::ffi::c_void, randomdelay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMonthlyTrigger_Impl::SetRandomDelay(this, core::mem::transmute(&randomdelay)).into() } @@ -1212,35 +873,20 @@ pub trait INetworkSettings_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for INetworkSettings {} #[cfg(feature = "Win32_System_Com")] impl INetworkSettings_Vtbl { - pub const fn new() -> INetworkSettings_Vtbl - where - Identity: INetworkSettings_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetworkSettings_Impl, - { + pub const fn new() -> INetworkSettings_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkSettings_Impl::Name(this, core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetworkSettings_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkSettings_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetworkSettings_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkSettings_Impl::Id(this, core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INetworkSettings_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkSettings_Impl::SetId(this, core::mem::transmute(&id)).into() } @@ -1275,91 +921,52 @@ pub trait IPrincipal_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IPrincipal {} #[cfg(feature = "Win32_System_Com")] impl IPrincipal_Vtbl { - pub const fn new() -> IPrincipal_Vtbl - where - Identity: IPrincipal_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + pub const fn new() -> IPrincipal_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::Id(this, core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::SetId(this, core::mem::transmute(&id)).into() } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::DisplayName(this, core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::SetDisplayName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn UserId(this: *mut core::ffi::c_void, puser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn UserId(this: *mut core::ffi::c_void, puser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::UserId(this, core::mem::transmute_copy(&puser)).into() } - unsafe extern "system" fn SetUserId(this: *mut core::ffi::c_void, user: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn SetUserId(this: *mut core::ffi::c_void, user: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::SetUserId(this, core::mem::transmute(&user)).into() } - unsafe extern "system" fn LogonType(this: *mut core::ffi::c_void, plogon: *mut TASK_LOGON_TYPE) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn LogonType(this: *mut core::ffi::c_void, plogon: *mut TASK_LOGON_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::LogonType(this, core::mem::transmute_copy(&plogon)).into() } - unsafe extern "system" fn SetLogonType(this: *mut core::ffi::c_void, logon: TASK_LOGON_TYPE) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn SetLogonType(this: *mut core::ffi::c_void, logon: TASK_LOGON_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::SetLogonType(this, core::mem::transmute_copy(&logon)).into() } - unsafe extern "system" fn GroupId(this: *mut core::ffi::c_void, pgroup: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn GroupId(this: *mut core::ffi::c_void, pgroup: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::GroupId(this, core::mem::transmute_copy(&pgroup)).into() } - unsafe extern "system" fn SetGroupId(this: *mut core::ffi::c_void, group: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn SetGroupId(this: *mut core::ffi::c_void, group: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::SetGroupId(this, core::mem::transmute(&group)).into() } - unsafe extern "system" fn RunLevel(this: *mut core::ffi::c_void, prunlevel: *mut TASK_RUNLEVEL_TYPE) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn RunLevel(this: *mut core::ffi::c_void, prunlevel: *mut TASK_RUNLEVEL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::RunLevel(this, core::mem::transmute_copy(&prunlevel)).into() } - unsafe extern "system" fn SetRunLevel(this: *mut core::ffi::c_void, runlevel: TASK_RUNLEVEL_TYPE) -> windows_core::HRESULT - where - Identity: IPrincipal_Impl, - { + unsafe extern "system" fn SetRunLevel(this: *mut core::ffi::c_void, runlevel: TASK_RUNLEVEL_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal_Impl::SetRunLevel(this, core::mem::transmute_copy(&runlevel)).into() } @@ -1395,42 +1002,24 @@ pub trait IPrincipal2_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IPrincipal2 {} #[cfg(feature = "Win32_System_Com")] impl IPrincipal2_Vtbl { - pub const fn new() -> IPrincipal2_Vtbl - where - Identity: IPrincipal2_Impl, - { - unsafe extern "system" fn ProcessTokenSidType(this: *mut core::ffi::c_void, pprocesstokensidtype: *mut TASK_PROCESSTOKENSID_TYPE) -> windows_core::HRESULT - where - Identity: IPrincipal2_Impl, - { + pub const fn new() -> IPrincipal2_Vtbl { + unsafe extern "system" fn ProcessTokenSidType(this: *mut core::ffi::c_void, pprocesstokensidtype: *mut TASK_PROCESSTOKENSID_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal2_Impl::ProcessTokenSidType(this, core::mem::transmute_copy(&pprocesstokensidtype)).into() } - unsafe extern "system" fn SetProcessTokenSidType(this: *mut core::ffi::c_void, processtokensidtype: TASK_PROCESSTOKENSID_TYPE) -> windows_core::HRESULT - where - Identity: IPrincipal2_Impl, - { + unsafe extern "system" fn SetProcessTokenSidType(this: *mut core::ffi::c_void, processtokensidtype: TASK_PROCESSTOKENSID_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal2_Impl::SetProcessTokenSidType(this, core::mem::transmute_copy(&processtokensidtype)).into() } - unsafe extern "system" fn RequiredPrivilegeCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: IPrincipal2_Impl, - { + unsafe extern "system" fn RequiredPrivilegeCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal2_Impl::RequiredPrivilegeCount(this, core::mem::transmute_copy(&pcount)).into() } - unsafe extern "system" fn get_RequiredPrivilege(this: *mut core::ffi::c_void, index: i32, pprivilege: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrincipal2_Impl, - { + unsafe extern "system" fn get_RequiredPrivilege(this: *mut core::ffi::c_void, index: i32, pprivilege: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal2_Impl::get_RequiredPrivilege(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pprivilege)).into() } - unsafe extern "system" fn AddRequiredPrivilege(this: *mut core::ffi::c_void, privilege: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPrincipal2_Impl, - { + unsafe extern "system" fn AddRequiredPrivilege(this: *mut core::ffi::c_void, privilege: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrincipal2_Impl::AddRequiredPrivilege(this, core::mem::transmute(&privilege)).into() } @@ -1448,21 +1037,15 @@ impl IPrincipal2_Vtbl { } } #[cfg(feature = "Win32_UI_Controls")] -pub trait IProvideTaskPage_Impl: Sized { +pub trait IProvideTaskPage_Impl: Sized + windows_core::IUnknownImpl { fn GetPage(&self, tptype: TASKPAGE, fpersistchanges: super::super::Foundation::BOOL) -> windows_core::Result; } #[cfg(feature = "Win32_UI_Controls")] impl windows_core::RuntimeName for IProvideTaskPage {} #[cfg(feature = "Win32_UI_Controls")] impl IProvideTaskPage_Vtbl { - pub const fn new() -> IProvideTaskPage_Vtbl - where - Identity: IProvideTaskPage_Impl, - { - unsafe extern "system" fn GetPage(this: *mut core::ffi::c_void, tptype: TASKPAGE, fpersistchanges: super::super::Foundation::BOOL, phpage: *mut super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT - where - Identity: IProvideTaskPage_Impl, - { + pub const fn new() -> IProvideTaskPage_Vtbl { + unsafe extern "system" fn GetPage(this: *mut core::ffi::c_void, tptype: TASKPAGE, fpersistchanges: super::super::Foundation::BOOL, phpage: *mut super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideTaskPage_Impl::GetPage(this, core::mem::transmute_copy(&tptype), core::mem::transmute_copy(&fpersistchanges)) { Ok(ok__) => { @@ -1503,14 +1086,8 @@ pub trait IRegisteredTask_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRegisteredTask {} #[cfg(feature = "Win32_System_Com")] impl IRegisteredTask_Vtbl { - pub const fn new() -> IRegisteredTask_Vtbl - where - Identity: IRegisteredTask_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + pub const fn new() -> IRegisteredTask_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::Name(this) { Ok(ok__) => { @@ -1520,10 +1097,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::Path(this) { Ok(ok__) => { @@ -1533,10 +1107,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut TASK_STATE) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut TASK_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::State(this) { Ok(ok__) => { @@ -1546,10 +1117,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::Enabled(this) { Ok(ok__) => { @@ -1559,17 +1127,11 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisteredTask_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void, params: core::mem::MaybeUninit, pprunningtask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void, params: core::mem::MaybeUninit, pprunningtask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::Run(this, core::mem::transmute(¶ms)) { Ok(ok__) => { @@ -1579,10 +1141,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RunEx(this: *mut core::ffi::c_void, params: core::mem::MaybeUninit, flags: i32, sessionid: i32, user: core::mem::MaybeUninit, pprunningtask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn RunEx(this: *mut core::ffi::c_void, params: core::mem::MaybeUninit, flags: i32, sessionid: i32, user: core::mem::MaybeUninit, pprunningtask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::RunEx(this, core::mem::transmute(¶ms), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&sessionid), core::mem::transmute(&user)) { Ok(ok__) => { @@ -1592,10 +1151,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInstances(this: *mut core::ffi::c_void, flags: i32, pprunningtasks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn GetInstances(this: *mut core::ffi::c_void, flags: i32, pprunningtasks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::GetInstances(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -1605,10 +1161,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastRunTime(this: *mut core::ffi::c_void, plastruntime: *mut f64) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn LastRunTime(this: *mut core::ffi::c_void, plastruntime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::LastRunTime(this) { Ok(ok__) => { @@ -1618,10 +1171,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastTaskResult(this: *mut core::ffi::c_void, plasttaskresult: *mut i32) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn LastTaskResult(this: *mut core::ffi::c_void, plasttaskresult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::LastTaskResult(this) { Ok(ok__) => { @@ -1631,10 +1181,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NumberOfMissedRuns(this: *mut core::ffi::c_void, pnumberofmissedruns: *mut i32) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn NumberOfMissedRuns(this: *mut core::ffi::c_void, pnumberofmissedruns: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::NumberOfMissedRuns(this) { Ok(ok__) => { @@ -1644,10 +1191,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NextRunTime(this: *mut core::ffi::c_void, pnextruntime: *mut f64) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn NextRunTime(this: *mut core::ffi::c_void, pnextruntime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::NextRunTime(this) { Ok(ok__) => { @@ -1657,10 +1201,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Definition(this: *mut core::ffi::c_void, ppdefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn Definition(this: *mut core::ffi::c_void, ppdefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::Definition(this) { Ok(ok__) => { @@ -1670,10 +1211,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, pxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn Xml(this: *mut core::ffi::c_void, pxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::Xml(this) { Ok(ok__) => { @@ -1683,10 +1221,7 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSecurityDescriptor(this: *mut core::ffi::c_void, securityinformation: i32, psddl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn GetSecurityDescriptor(this: *mut core::ffi::c_void, securityinformation: i32, psddl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTask_Impl::GetSecurityDescriptor(this, core::mem::transmute_copy(&securityinformation)) { Ok(ok__) => { @@ -1696,24 +1231,15 @@ impl IRegisteredTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, sddl: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, sddl: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisteredTask_Impl::SetSecurityDescriptor(this, core::mem::transmute(&sddl), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisteredTask_Impl::Stop(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetRunTimes(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 - where - Identity: IRegisteredTask_Impl, - { + unsafe extern "system" fn GetRunTimes(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisteredTask_Impl::GetRunTimes(this, core::mem::transmute_copy(&pststart), core::mem::transmute_copy(&pstend), core::mem::transmute_copy(&pcount), core::mem::transmute_copy(&pruntimes)).into() } @@ -1753,14 +1279,8 @@ pub trait IRegisteredTaskCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRegisteredTaskCollection {} #[cfg(feature = "Win32_System_Com")] impl IRegisteredTaskCollection_Vtbl { - pub const fn new() -> IRegisteredTaskCollection_Vtbl - where - Identity: IRegisteredTaskCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: IRegisteredTaskCollection_Impl, - { + pub const fn new() -> IRegisteredTaskCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTaskCollection_Impl::Count(this) { Ok(ok__) => { @@ -1770,10 +1290,7 @@ impl IRegisteredTaskCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppregisteredtask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisteredTaskCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppregisteredtask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTaskCollection_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -1783,10 +1300,7 @@ impl IRegisteredTaskCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisteredTaskCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredTaskCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1832,133 +1346,76 @@ pub trait IRegistrationInfo_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRegistrationInfo {} #[cfg(feature = "Win32_System_Com")] impl IRegistrationInfo_Vtbl { - pub const fn new() -> IRegistrationInfo_Vtbl - where - Identity: IRegistrationInfo_Impl, - { - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + pub const fn new() -> IRegistrationInfo_Vtbl { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::Description(this, core::mem::transmute_copy(&pdescription)).into() } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, description: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::SetDescription(this, core::mem::transmute(&description)).into() } - unsafe extern "system" fn Author(this: *mut core::ffi::c_void, pauthor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn Author(this: *mut core::ffi::c_void, pauthor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::Author(this, core::mem::transmute_copy(&pauthor)).into() } - unsafe extern "system" fn SetAuthor(this: *mut core::ffi::c_void, author: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn SetAuthor(this: *mut core::ffi::c_void, author: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::SetAuthor(this, core::mem::transmute(&author)).into() } - unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn Version(this: *mut core::ffi::c_void, pversion: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::Version(this, core::mem::transmute_copy(&pversion)).into() } - unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, version: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn SetVersion(this: *mut core::ffi::c_void, version: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::SetVersion(this, core::mem::transmute(&version)).into() } - unsafe extern "system" fn Date(this: *mut core::ffi::c_void, pdate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn Date(this: *mut core::ffi::c_void, pdate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::Date(this, core::mem::transmute_copy(&pdate)).into() } - unsafe extern "system" fn SetDate(this: *mut core::ffi::c_void, date: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn SetDate(this: *mut core::ffi::c_void, date: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::SetDate(this, core::mem::transmute(&date)).into() } - unsafe extern "system" fn Documentation(this: *mut core::ffi::c_void, pdocumentation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn Documentation(this: *mut core::ffi::c_void, pdocumentation: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::Documentation(this, core::mem::transmute_copy(&pdocumentation)).into() } - unsafe extern "system" fn SetDocumentation(this: *mut core::ffi::c_void, documentation: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn SetDocumentation(this: *mut core::ffi::c_void, documentation: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::SetDocumentation(this, core::mem::transmute(&documentation)).into() } - unsafe extern "system" fn XmlText(this: *mut core::ffi::c_void, ptext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn XmlText(this: *mut core::ffi::c_void, ptext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::XmlText(this, core::mem::transmute_copy(&ptext)).into() } - unsafe extern "system" fn SetXmlText(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn SetXmlText(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::SetXmlText(this, core::mem::transmute(&text)).into() } - unsafe extern "system" fn URI(this: *mut core::ffi::c_void, puri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn URI(this: *mut core::ffi::c_void, puri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::URI(this, core::mem::transmute_copy(&puri)).into() } - unsafe extern "system" fn SetURI(this: *mut core::ffi::c_void, uri: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn SetURI(this: *mut core::ffi::c_void, uri: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::SetURI(this, core::mem::transmute(&uri)).into() } - unsafe extern "system" fn SecurityDescriptor(this: *mut core::ffi::c_void, psddl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn SecurityDescriptor(this: *mut core::ffi::c_void, psddl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::SecurityDescriptor(this, core::mem::transmute_copy(&psddl)).into() } - unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, sddl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, sddl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::SetSecurityDescriptor(this, core::mem::transmute(&sddl)).into() } - unsafe extern "system" fn Source(this: *mut core::ffi::c_void, psource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn Source(this: *mut core::ffi::c_void, psource: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::Source(this, core::mem::transmute_copy(&psource)).into() } - unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, source: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationInfo_Impl, - { + unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, source: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationInfo_Impl::SetSource(this, core::mem::transmute(&source)).into() } @@ -1997,21 +1454,12 @@ pub trait IRegistrationTrigger_Impl: Sized + ITrigger_Impl { impl windows_core::RuntimeName for IRegistrationTrigger {} #[cfg(feature = "Win32_System_Com")] impl IRegistrationTrigger_Vtbl { - pub const fn new() -> IRegistrationTrigger_Vtbl - where - Identity: IRegistrationTrigger_Impl, - { - unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationTrigger_Impl, - { + pub const fn new() -> IRegistrationTrigger_Vtbl { + unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationTrigger_Impl::Delay(this, core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetDelay(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRegistrationTrigger_Impl, - { + unsafe extern "system" fn SetDelay(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegistrationTrigger_Impl::SetDelay(this, core::mem::transmute(&delay)).into() } @@ -2034,49 +1482,28 @@ pub trait IRepetitionPattern_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRepetitionPattern {} #[cfg(feature = "Win32_System_Com")] impl IRepetitionPattern_Vtbl { - pub const fn new() -> IRepetitionPattern_Vtbl - where - Identity: IRepetitionPattern_Impl, - { - unsafe extern "system" fn Interval(this: *mut core::ffi::c_void, pinterval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRepetitionPattern_Impl, - { + pub const fn new() -> IRepetitionPattern_Vtbl { + unsafe extern "system" fn Interval(this: *mut core::ffi::c_void, pinterval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRepetitionPattern_Impl::Interval(this, core::mem::transmute_copy(&pinterval)).into() } - unsafe extern "system" fn SetInterval(this: *mut core::ffi::c_void, interval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRepetitionPattern_Impl, - { + unsafe extern "system" fn SetInterval(this: *mut core::ffi::c_void, interval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRepetitionPattern_Impl::SetInterval(this, core::mem::transmute(&interval)).into() } - unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, pduration: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRepetitionPattern_Impl, - { + unsafe extern "system" fn Duration(this: *mut core::ffi::c_void, pduration: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRepetitionPattern_Impl::Duration(this, core::mem::transmute_copy(&pduration)).into() } - unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, duration: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRepetitionPattern_Impl, - { + unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, duration: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRepetitionPattern_Impl::SetDuration(this, core::mem::transmute(&duration)).into() } - unsafe extern "system" fn StopAtDurationEnd(this: *mut core::ffi::c_void, pstop: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRepetitionPattern_Impl, - { + unsafe extern "system" fn StopAtDurationEnd(this: *mut core::ffi::c_void, pstop: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRepetitionPattern_Impl::StopAtDurationEnd(this, core::mem::transmute_copy(&pstop)).into() } - unsafe extern "system" fn SetStopAtDurationEnd(this: *mut core::ffi::c_void, stop: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IRepetitionPattern_Impl, - { + unsafe extern "system" fn SetStopAtDurationEnd(this: *mut core::ffi::c_void, stop: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRepetitionPattern_Impl::SetStopAtDurationEnd(this, core::mem::transmute_copy(&stop)).into() } @@ -2109,14 +1536,8 @@ pub trait IRunningTask_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRunningTask {} #[cfg(feature = "Win32_System_Com")] impl IRunningTask_Vtbl { - pub const fn new() -> IRunningTask_Vtbl - where - Identity: IRunningTask_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRunningTask_Impl, - { + pub const fn new() -> IRunningTask_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningTask_Impl::Name(this) { Ok(ok__) => { @@ -2126,10 +1547,7 @@ impl IRunningTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstanceGuid(this: *mut core::ffi::c_void, pguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRunningTask_Impl, - { + unsafe extern "system" fn InstanceGuid(this: *mut core::ffi::c_void, pguid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningTask_Impl::InstanceGuid(this) { Ok(ok__) => { @@ -2139,10 +1557,7 @@ impl IRunningTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRunningTask_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningTask_Impl::Path(this) { Ok(ok__) => { @@ -2152,10 +1567,7 @@ impl IRunningTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut TASK_STATE) -> windows_core::HRESULT - where - Identity: IRunningTask_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pstate: *mut TASK_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningTask_Impl::State(this) { Ok(ok__) => { @@ -2165,10 +1577,7 @@ impl IRunningTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAction(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRunningTask_Impl, - { + unsafe extern "system" fn CurrentAction(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningTask_Impl::CurrentAction(this) { Ok(ok__) => { @@ -2178,24 +1587,15 @@ impl IRunningTask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunningTask_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunningTask_Impl::Stop(this).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunningTask_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunningTask_Impl::Refresh(this).into() } - unsafe extern "system" fn EnginePID(this: *mut core::ffi::c_void, ppid: *mut u32) -> windows_core::HRESULT - where - Identity: IRunningTask_Impl, - { + unsafe extern "system" fn EnginePID(this: *mut core::ffi::c_void, ppid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningTask_Impl::EnginePID(this) { Ok(ok__) => { @@ -2231,14 +1631,8 @@ pub trait IRunningTaskCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRunningTaskCollection {} #[cfg(feature = "Win32_System_Com")] impl IRunningTaskCollection_Vtbl { - pub const fn new() -> IRunningTaskCollection_Vtbl - where - Identity: IRunningTaskCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: IRunningTaskCollection_Impl, - { + pub const fn new() -> IRunningTaskCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningTaskCollection_Impl::Count(this) { Ok(ok__) => { @@ -2248,10 +1642,7 @@ impl IRunningTaskCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pprunningtask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunningTaskCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, pprunningtask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningTaskCollection_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -2261,10 +1652,7 @@ impl IRunningTaskCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunningTaskCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRunningTaskCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2285,7 +1673,7 @@ impl IRunningTaskCollection_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IScheduledWorkItem_Impl: Sized { +pub trait IScheduledWorkItem_Impl: Sized + windows_core::IUnknownImpl { fn CreateTrigger(&self, pinewtrigger: *mut u16, pptrigger: *mut Option) -> windows_core::Result<()>; fn DeleteTrigger(&self, itrigger: u16) -> windows_core::Result<()>; fn GetTriggerCount(&self) -> windows_core::Result; @@ -2318,28 +1706,16 @@ pub trait IScheduledWorkItem_Impl: Sized { } impl windows_core::RuntimeName for IScheduledWorkItem {} impl IScheduledWorkItem_Vtbl { - pub const fn new() -> IScheduledWorkItem_Vtbl - where - Identity: IScheduledWorkItem_Impl, - { - unsafe extern "system" fn CreateTrigger(this: *mut core::ffi::c_void, pinewtrigger: *mut u16, pptrigger: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + pub const fn new() -> IScheduledWorkItem_Vtbl { + unsafe extern "system" fn CreateTrigger(this: *mut core::ffi::c_void, pinewtrigger: *mut u16, pptrigger: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::CreateTrigger(this, core::mem::transmute_copy(&pinewtrigger), core::mem::transmute_copy(&pptrigger)).into() } - unsafe extern "system" fn DeleteTrigger(this: *mut core::ffi::c_void, itrigger: u16) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn DeleteTrigger(this: *mut core::ffi::c_void, itrigger: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::DeleteTrigger(this, core::mem::transmute_copy(&itrigger)).into() } - unsafe extern "system" fn GetTriggerCount(this: *mut core::ffi::c_void, pwcount: *mut u16) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetTriggerCount(this: *mut core::ffi::c_void, pwcount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetTriggerCount(this) { Ok(ok__) => { @@ -2349,10 +1725,7 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTrigger(this: *mut core::ffi::c_void, itrigger: u16, pptrigger: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetTrigger(this: *mut core::ffi::c_void, itrigger: u16, pptrigger: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetTrigger(this, core::mem::transmute_copy(&itrigger)) { Ok(ok__) => { @@ -2362,10 +1735,7 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTriggerString(this: *mut core::ffi::c_void, itrigger: u16, ppwsztrigger: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetTriggerString(this: *mut core::ffi::c_void, itrigger: u16, ppwsztrigger: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetTriggerString(this, core::mem::transmute_copy(&itrigger)) { Ok(ok__) => { @@ -2375,59 +1745,35 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunTimes(this: *mut core::ffi::c_void, pstbegin: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u16, rgsttasktimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetRunTimes(this: *mut core::ffi::c_void, pstbegin: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u16, rgsttasktimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::GetRunTimes(this, core::mem::transmute_copy(&pstbegin), core::mem::transmute_copy(&pstend), core::mem::transmute_copy(&pcount), core::mem::transmute_copy(&rgsttasktimes)).into() } - unsafe extern "system" fn GetNextRunTime(this: *mut core::ffi::c_void, pstnextrun: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetNextRunTime(this: *mut core::ffi::c_void, pstnextrun: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::GetNextRunTime(this, core::mem::transmute_copy(&pstnextrun)).into() } - unsafe extern "system" fn SetIdleWait(this: *mut core::ffi::c_void, widleminutes: u16, wdeadlineminutes: u16) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn SetIdleWait(this: *mut core::ffi::c_void, widleminutes: u16, wdeadlineminutes: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::SetIdleWait(this, core::mem::transmute_copy(&widleminutes), core::mem::transmute_copy(&wdeadlineminutes)).into() } - unsafe extern "system" fn GetIdleWait(this: *mut core::ffi::c_void, pwidleminutes: *mut u16, pwdeadlineminutes: *mut u16) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetIdleWait(this: *mut core::ffi::c_void, pwidleminutes: *mut u16, pwdeadlineminutes: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::GetIdleWait(this, core::mem::transmute_copy(&pwidleminutes), core::mem::transmute_copy(&pwdeadlineminutes)).into() } - unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::Run(this).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::Terminate(this).into() } - unsafe extern "system" fn EditWorkItem(this: *mut core::ffi::c_void, hparent: super::super::Foundation::HWND, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn EditWorkItem(this: *mut core::ffi::c_void, hparent: super::super::Foundation::HWND, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::EditWorkItem(this, core::mem::transmute_copy(&hparent), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn GetMostRecentRunTime(this: *mut core::ffi::c_void, pstlastrun: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetMostRecentRunTime(this: *mut core::ffi::c_void, pstlastrun: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetMostRecentRunTime(this) { Ok(ok__) => { @@ -2437,10 +1783,7 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, phrstatus: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, phrstatus: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetStatus(this) { Ok(ok__) => { @@ -2450,10 +1793,7 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, pdwexitcode: *mut u32) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetExitCode(this: *mut core::ffi::c_void, pdwexitcode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetExitCode(this) { Ok(ok__) => { @@ -2463,17 +1803,11 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetComment(this: *mut core::ffi::c_void, pwszcomment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn SetComment(this: *mut core::ffi::c_void, pwszcomment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::SetComment(this, core::mem::transmute(&pwszcomment)).into() } - unsafe extern "system" fn GetComment(this: *mut core::ffi::c_void, ppwszcomment: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetComment(this: *mut core::ffi::c_void, ppwszcomment: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetComment(this) { Ok(ok__) => { @@ -2483,17 +1817,11 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCreator(this: *mut core::ffi::c_void, pwszcreator: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn SetCreator(this: *mut core::ffi::c_void, pwszcreator: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::SetCreator(this, core::mem::transmute(&pwszcreator)).into() } - unsafe extern "system" fn GetCreator(this: *mut core::ffi::c_void, ppwszcreator: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetCreator(this: *mut core::ffi::c_void, ppwszcreator: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetCreator(this) { Ok(ok__) => { @@ -2503,31 +1831,19 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWorkItemData(this: *mut core::ffi::c_void, cbdata: u16, rgbdata: *const u8) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn SetWorkItemData(this: *mut core::ffi::c_void, cbdata: u16, rgbdata: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::SetWorkItemData(this, core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&rgbdata)).into() } - unsafe extern "system" fn GetWorkItemData(this: *mut core::ffi::c_void, pcbdata: *mut u16, prgbdata: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetWorkItemData(this: *mut core::ffi::c_void, pcbdata: *mut u16, prgbdata: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::GetWorkItemData(this, core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&prgbdata)).into() } - unsafe extern "system" fn SetErrorRetryCount(this: *mut core::ffi::c_void, wretrycount: u16) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn SetErrorRetryCount(this: *mut core::ffi::c_void, wretrycount: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::SetErrorRetryCount(this, core::mem::transmute_copy(&wretrycount)).into() } - unsafe extern "system" fn GetErrorRetryCount(this: *mut core::ffi::c_void, pwretrycount: *mut u16) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetErrorRetryCount(this: *mut core::ffi::c_void, pwretrycount: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetErrorRetryCount(this) { Ok(ok__) => { @@ -2537,17 +1853,11 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetErrorRetryInterval(this: *mut core::ffi::c_void, wretryinterval: u16) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn SetErrorRetryInterval(this: *mut core::ffi::c_void, wretryinterval: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::SetErrorRetryInterval(this, core::mem::transmute_copy(&wretryinterval)).into() } - unsafe extern "system" fn GetErrorRetryInterval(this: *mut core::ffi::c_void, pwretryinterval: *mut u16) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetErrorRetryInterval(this: *mut core::ffi::c_void, pwretryinterval: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetErrorRetryInterval(this) { Ok(ok__) => { @@ -2557,17 +1867,11 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::SetFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetFlags(this) { Ok(ok__) => { @@ -2577,17 +1881,11 @@ impl IScheduledWorkItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAccountInformation(this: *mut core::ffi::c_void, pwszaccountname: windows_core::PCWSTR, pwszpassword: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn SetAccountInformation(this: *mut core::ffi::c_void, pwszaccountname: windows_core::PCWSTR, pwszpassword: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScheduledWorkItem_Impl::SetAccountInformation(this, core::mem::transmute(&pwszaccountname), core::mem::transmute(&pwszpassword)).into() } - unsafe extern "system" fn GetAccountInformation(this: *mut core::ffi::c_void, ppwszaccountname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IScheduledWorkItem_Impl, - { + unsafe extern "system" fn GetAccountInformation(this: *mut core::ffi::c_void, ppwszaccountname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScheduledWorkItem_Impl::GetAccountInformation(this) { Ok(ok__) => { @@ -2647,49 +1945,28 @@ pub trait ISessionStateChangeTrigger_Impl: Sized + ITrigger_Impl { impl windows_core::RuntimeName for ISessionStateChangeTrigger {} #[cfg(feature = "Win32_System_Com")] impl ISessionStateChangeTrigger_Vtbl { - pub const fn new() -> ISessionStateChangeTrigger_Vtbl - where - Identity: ISessionStateChangeTrigger_Impl, - { - unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISessionStateChangeTrigger_Impl, - { + pub const fn new() -> ISessionStateChangeTrigger_Vtbl { + unsafe extern "system" fn Delay(this: *mut core::ffi::c_void, pdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISessionStateChangeTrigger_Impl::Delay(this, core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetDelay(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISessionStateChangeTrigger_Impl, - { + unsafe extern "system" fn SetDelay(this: *mut core::ffi::c_void, delay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISessionStateChangeTrigger_Impl::SetDelay(this, core::mem::transmute(&delay)).into() } - unsafe extern "system" fn UserId(this: *mut core::ffi::c_void, puser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISessionStateChangeTrigger_Impl, - { + unsafe extern "system" fn UserId(this: *mut core::ffi::c_void, puser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISessionStateChangeTrigger_Impl::UserId(this, core::mem::transmute_copy(&puser)).into() } - unsafe extern "system" fn SetUserId(this: *mut core::ffi::c_void, user: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISessionStateChangeTrigger_Impl, - { + unsafe extern "system" fn SetUserId(this: *mut core::ffi::c_void, user: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISessionStateChangeTrigger_Impl::SetUserId(this, core::mem::transmute(&user)).into() } - unsafe extern "system" fn StateChange(this: *mut core::ffi::c_void, ptype: *mut TASK_SESSION_STATE_CHANGE_TYPE) -> windows_core::HRESULT - where - Identity: ISessionStateChangeTrigger_Impl, - { + unsafe extern "system" fn StateChange(this: *mut core::ffi::c_void, ptype: *mut TASK_SESSION_STATE_CHANGE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISessionStateChangeTrigger_Impl::StateChange(this, core::mem::transmute_copy(&ptype)).into() } - unsafe extern "system" fn SetStateChange(this: *mut core::ffi::c_void, r#type: TASK_SESSION_STATE_CHANGE_TYPE) -> windows_core::HRESULT - where - Identity: ISessionStateChangeTrigger_Impl, - { + unsafe extern "system" fn SetStateChange(this: *mut core::ffi::c_void, r#type: TASK_SESSION_STATE_CHANGE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISessionStateChangeTrigger_Impl::SetStateChange(this, core::mem::transmute_copy(&r#type)).into() } @@ -2718,35 +1995,20 @@ pub trait IShowMessageAction_Impl: Sized + IAction_Impl { impl windows_core::RuntimeName for IShowMessageAction {} #[cfg(feature = "Win32_System_Com")] impl IShowMessageAction_Vtbl { - pub const fn new() -> IShowMessageAction_Vtbl - where - Identity: IShowMessageAction_Impl, - { - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, ptitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShowMessageAction_Impl, - { + pub const fn new() -> IShowMessageAction_Vtbl { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, ptitle: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShowMessageAction_Impl::Title(this, core::mem::transmute_copy(&ptitle)).into() } - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, title: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShowMessageAction_Impl, - { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, title: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShowMessageAction_Impl::SetTitle(this, core::mem::transmute(&title)).into() } - unsafe extern "system" fn MessageBody(this: *mut core::ffi::c_void, pmessagebody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShowMessageAction_Impl, - { + unsafe extern "system" fn MessageBody(this: *mut core::ffi::c_void, pmessagebody: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShowMessageAction_Impl::MessageBody(this, core::mem::transmute_copy(&pmessagebody)).into() } - unsafe extern "system" fn SetMessageBody(this: *mut core::ffi::c_void, messagebody: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShowMessageAction_Impl, - { + unsafe extern "system" fn SetMessageBody(this: *mut core::ffi::c_void, messagebody: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShowMessageAction_Impl::SetMessageBody(this, core::mem::transmute(&messagebody)).into() } @@ -2778,21 +2040,12 @@ pub trait ITask_Impl: Sized + IScheduledWorkItem_Impl { } impl windows_core::RuntimeName for ITask {} impl ITask_Vtbl { - pub const fn new() -> ITask_Vtbl - where - Identity: ITask_Impl, - { - unsafe extern "system" fn SetApplicationName(this: *mut core::ffi::c_void, pwszapplicationname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + pub const fn new() -> ITask_Vtbl { + unsafe extern "system" fn SetApplicationName(this: *mut core::ffi::c_void, pwszapplicationname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITask_Impl::SetApplicationName(this, core::mem::transmute(&pwszapplicationname)).into() } - unsafe extern "system" fn GetApplicationName(this: *mut core::ffi::c_void, ppwszapplicationname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn GetApplicationName(this: *mut core::ffi::c_void, ppwszapplicationname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITask_Impl::GetApplicationName(this) { Ok(ok__) => { @@ -2802,17 +2055,11 @@ impl ITask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, pwszparameters: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, pwszparameters: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITask_Impl::SetParameters(this, core::mem::transmute(&pwszparameters)).into() } - unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, ppwszparameters: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, ppwszparameters: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITask_Impl::GetParameters(this) { Ok(ok__) => { @@ -2822,17 +2069,11 @@ impl ITask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, pwszworkingdirectory: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, pwszworkingdirectory: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITask_Impl::SetWorkingDirectory(this, core::mem::transmute(&pwszworkingdirectory)).into() } - unsafe extern "system" fn GetWorkingDirectory(this: *mut core::ffi::c_void, ppwszworkingdirectory: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn GetWorkingDirectory(this: *mut core::ffi::c_void, ppwszworkingdirectory: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITask_Impl::GetWorkingDirectory(this) { Ok(ok__) => { @@ -2842,17 +2083,11 @@ impl ITask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, dwpriority: u32) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, dwpriority: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITask_Impl::SetPriority(this, core::mem::transmute_copy(&dwpriority)).into() } - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pdwpriority: *mut u32) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, pdwpriority: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITask_Impl::GetPriority(this) { Ok(ok__) => { @@ -2862,17 +2097,11 @@ impl ITask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn SetTaskFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITask_Impl::SetTaskFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetTaskFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn GetTaskFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITask_Impl::GetTaskFlags(this) { Ok(ok__) => { @@ -2882,17 +2111,11 @@ impl ITask_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxRunTime(this: *mut core::ffi::c_void, dwmaxruntimems: u32) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn SetMaxRunTime(this: *mut core::ffi::c_void, dwmaxruntimems: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITask_Impl::SetMaxRunTime(this, core::mem::transmute_copy(&dwmaxruntimems)).into() } - unsafe extern "system" fn GetMaxRunTime(this: *mut core::ffi::c_void, pdwmaxruntimems: *mut u32) -> windows_core::HRESULT - where - Identity: ITask_Impl, - { + unsafe extern "system" fn GetMaxRunTime(this: *mut core::ffi::c_void, pdwmaxruntimems: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITask_Impl::GetMaxRunTime(this) { Ok(ok__) => { @@ -2943,14 +2166,8 @@ pub trait ITaskDefinition_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITaskDefinition {} #[cfg(feature = "Win32_System_Com")] impl ITaskDefinition_Vtbl { - pub const fn new() -> ITaskDefinition_Vtbl - where - Identity: ITaskDefinition_Impl, - { - unsafe extern "system" fn RegistrationInfo(this: *mut core::ffi::c_void, ppregistrationinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + pub const fn new() -> ITaskDefinition_Vtbl { + unsafe extern "system" fn RegistrationInfo(this: *mut core::ffi::c_void, ppregistrationinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskDefinition_Impl::RegistrationInfo(this) { Ok(ok__) => { @@ -2960,17 +2177,11 @@ impl ITaskDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRegistrationInfo(this: *mut core::ffi::c_void, pregistrationinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn SetRegistrationInfo(this: *mut core::ffi::c_void, pregistrationinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskDefinition_Impl::SetRegistrationInfo(this, windows_core::from_raw_borrowed(&pregistrationinfo)).into() } - unsafe extern "system" fn Triggers(this: *mut core::ffi::c_void, pptriggers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn Triggers(this: *mut core::ffi::c_void, pptriggers: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskDefinition_Impl::Triggers(this) { Ok(ok__) => { @@ -2980,17 +2191,11 @@ impl ITaskDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTriggers(this: *mut core::ffi::c_void, ptriggers: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn SetTriggers(this: *mut core::ffi::c_void, ptriggers: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskDefinition_Impl::SetTriggers(this, windows_core::from_raw_borrowed(&ptriggers)).into() } - unsafe extern "system" fn Settings(this: *mut core::ffi::c_void, ppsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn Settings(this: *mut core::ffi::c_void, ppsettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskDefinition_Impl::Settings(this) { Ok(ok__) => { @@ -3000,31 +2205,19 @@ impl ITaskDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSettings(this: *mut core::ffi::c_void, psettings: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn SetSettings(this: *mut core::ffi::c_void, psettings: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskDefinition_Impl::SetSettings(this, windows_core::from_raw_borrowed(&psettings)).into() } - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, pdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, pdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskDefinition_Impl::Data(this, core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskDefinition_Impl::SetData(this, core::mem::transmute(&data)).into() } - unsafe extern "system" fn Principal(this: *mut core::ffi::c_void, ppprincipal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn Principal(this: *mut core::ffi::c_void, ppprincipal: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskDefinition_Impl::Principal(this) { Ok(ok__) => { @@ -3034,17 +2227,11 @@ impl ITaskDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrincipal(this: *mut core::ffi::c_void, pprincipal: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn SetPrincipal(this: *mut core::ffi::c_void, pprincipal: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskDefinition_Impl::SetPrincipal(this, windows_core::from_raw_borrowed(&pprincipal)).into() } - unsafe extern "system" fn Actions(this: *mut core::ffi::c_void, ppactions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn Actions(this: *mut core::ffi::c_void, ppactions: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskDefinition_Impl::Actions(this) { Ok(ok__) => { @@ -3054,24 +2241,15 @@ impl ITaskDefinition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActions(this: *mut core::ffi::c_void, pactions: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn SetActions(this: *mut core::ffi::c_void, pactions: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskDefinition_Impl::SetActions(this, windows_core::from_raw_borrowed(&pactions)).into() } - unsafe extern "system" fn XmlText(this: *mut core::ffi::c_void, pxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn XmlText(this: *mut core::ffi::c_void, pxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskDefinition_Impl::XmlText(this, core::mem::transmute_copy(&pxml)).into() } - unsafe extern "system" fn SetXmlText(this: *mut core::ffi::c_void, xml: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskDefinition_Impl, - { + unsafe extern "system" fn SetXmlText(this: *mut core::ffi::c_void, xml: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskDefinition_Impl::SetXmlText(this, core::mem::transmute(&xml)).into() } @@ -3117,14 +2295,8 @@ pub trait ITaskFolder_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITaskFolder {} #[cfg(feature = "Win32_System_Com")] impl ITaskFolder_Vtbl { - pub const fn new() -> ITaskFolder_Vtbl - where - Identity: ITaskFolder_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + pub const fn new() -> ITaskFolder_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolder_Impl::Name(this) { Ok(ok__) => { @@ -3134,10 +2306,7 @@ impl ITaskFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, ppath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolder_Impl::Path(this) { Ok(ok__) => { @@ -3147,10 +2316,7 @@ impl ITaskFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, ppfolder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, ppfolder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolder_Impl::GetFolder(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -3160,10 +2326,7 @@ impl ITaskFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolders(this: *mut core::ffi::c_void, flags: i32, ppfolders: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn GetFolders(this: *mut core::ffi::c_void, flags: i32, ppfolders: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolder_Impl::GetFolders(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3173,10 +2336,7 @@ impl ITaskFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFolder(this: *mut core::ffi::c_void, subfoldername: core::mem::MaybeUninit, sddl: core::mem::MaybeUninit, ppfolder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn CreateFolder(this: *mut core::ffi::c_void, subfoldername: core::mem::MaybeUninit, sddl: core::mem::MaybeUninit, ppfolder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolder_Impl::CreateFolder(this, core::mem::transmute(&subfoldername), core::mem::transmute(&sddl)) { Ok(ok__) => { @@ -3186,17 +2346,11 @@ impl ITaskFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteFolder(this: *mut core::ffi::c_void, subfoldername: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn DeleteFolder(this: *mut core::ffi::c_void, subfoldername: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskFolder_Impl::DeleteFolder(this, core::mem::transmute(&subfoldername), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetTask(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn GetTask(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolder_Impl::GetTask(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -3206,10 +2360,7 @@ impl ITaskFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTasks(this: *mut core::ffi::c_void, flags: i32, pptasks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn GetTasks(this: *mut core::ffi::c_void, flags: i32, pptasks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolder_Impl::GetTasks(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3219,17 +2370,11 @@ impl ITaskFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteTask(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn DeleteTask(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskFolder_Impl::DeleteTask(this, core::mem::transmute(&name), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn RegisterTask(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, xmltext: core::mem::MaybeUninit, flags: i32, userid: core::mem::MaybeUninit, password: core::mem::MaybeUninit, logontype: TASK_LOGON_TYPE, sddl: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn RegisterTask(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, xmltext: core::mem::MaybeUninit, flags: i32, userid: core::mem::MaybeUninit, password: core::mem::MaybeUninit, logontype: TASK_LOGON_TYPE, sddl: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolder_Impl::RegisterTask(this, 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)) { Ok(ok__) => { @@ -3239,10 +2384,7 @@ impl ITaskFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterTaskDefinition(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, pdefinition: *mut core::ffi::c_void, flags: i32, userid: core::mem::MaybeUninit, password: core::mem::MaybeUninit, logontype: TASK_LOGON_TYPE, sddl: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn RegisterTaskDefinition(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, pdefinition: *mut core::ffi::c_void, flags: i32, userid: core::mem::MaybeUninit, password: core::mem::MaybeUninit, logontype: TASK_LOGON_TYPE, sddl: core::mem::MaybeUninit, pptask: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolder_Impl::RegisterTaskDefinition(this, core::mem::transmute(&path), windows_core::from_raw_borrowed(&pdefinition), core::mem::transmute_copy(&flags), core::mem::transmute(&userid), core::mem::transmute(&password), core::mem::transmute_copy(&logontype), core::mem::transmute(&sddl)) { Ok(ok__) => { @@ -3252,10 +2394,7 @@ impl ITaskFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSecurityDescriptor(this: *mut core::ffi::c_void, securityinformation: i32, psddl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn GetSecurityDescriptor(this: *mut core::ffi::c_void, securityinformation: i32, psddl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolder_Impl::GetSecurityDescriptor(this, core::mem::transmute_copy(&securityinformation)) { Ok(ok__) => { @@ -3265,10 +2404,7 @@ impl ITaskFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, sddl: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT - where - Identity: ITaskFolder_Impl, - { + unsafe extern "system" fn SetSecurityDescriptor(this: *mut core::ffi::c_void, sddl: core::mem::MaybeUninit, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskFolder_Impl::SetSecurityDescriptor(this, core::mem::transmute(&sddl), core::mem::transmute_copy(&flags)).into() } @@ -3303,14 +2439,8 @@ pub trait ITaskFolderCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITaskFolderCollection {} #[cfg(feature = "Win32_System_Com")] impl ITaskFolderCollection_Vtbl { - pub const fn new() -> ITaskFolderCollection_Vtbl - where - Identity: ITaskFolderCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITaskFolderCollection_Impl, - { + pub const fn new() -> ITaskFolderCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolderCollection_Impl::Count(this) { Ok(ok__) => { @@ -3320,10 +2450,7 @@ impl ITaskFolderCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppfolder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskFolderCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppfolder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolderCollection_Impl::get_Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -3333,10 +2460,7 @@ impl ITaskFolderCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskFolderCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskFolderCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3357,7 +2481,7 @@ impl ITaskFolderCollection_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITaskHandler_Impl: Sized { +pub trait ITaskHandler_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self, phandlerservices: Option<&windows_core::IUnknown>, data: &windows_core::BSTR) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result; fn Pause(&self) -> windows_core::Result<()>; @@ -3365,21 +2489,12 @@ pub trait ITaskHandler_Impl: Sized { } impl windows_core::RuntimeName for ITaskHandler {} impl ITaskHandler_Vtbl { - pub const fn new() -> ITaskHandler_Vtbl - where - Identity: ITaskHandler_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void, phandlerservices: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskHandler_Impl, - { + pub const fn new() -> ITaskHandler_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void, phandlerservices: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskHandler_Impl::Start(this, windows_core::from_raw_borrowed(&phandlerservices), core::mem::transmute(&data)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, pretcode: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITaskHandler_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void, pretcode: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskHandler_Impl::Stop(this) { Ok(ok__) => { @@ -3389,17 +2504,11 @@ impl ITaskHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskHandler_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskHandler_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskHandler_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskHandler_Impl::Resume(this).into() } @@ -3415,27 +2524,18 @@ impl ITaskHandler_Vtbl { iid == &::IID } } -pub trait ITaskHandlerStatus_Impl: Sized { +pub trait ITaskHandlerStatus_Impl: Sized + windows_core::IUnknownImpl { fn UpdateStatus(&self, percentcomplete: i16, statusmessage: &windows_core::BSTR) -> windows_core::Result<()>; fn TaskCompleted(&self, taskerrcode: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITaskHandlerStatus {} impl ITaskHandlerStatus_Vtbl { - pub const fn new() -> ITaskHandlerStatus_Vtbl - where - Identity: ITaskHandlerStatus_Impl, - { - unsafe extern "system" fn UpdateStatus(this: *mut core::ffi::c_void, percentcomplete: i16, statusmessage: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskHandlerStatus_Impl, - { + pub const fn new() -> ITaskHandlerStatus_Vtbl { + unsafe extern "system" fn UpdateStatus(this: *mut core::ffi::c_void, percentcomplete: i16, statusmessage: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskHandlerStatus_Impl::UpdateStatus(this, core::mem::transmute_copy(&percentcomplete), core::mem::transmute(&statusmessage)).into() } - unsafe extern "system" fn TaskCompleted(this: *mut core::ffi::c_void, taskerrcode: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITaskHandlerStatus_Impl, - { + unsafe extern "system" fn TaskCompleted(this: *mut core::ffi::c_void, taskerrcode: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskHandlerStatus_Impl::TaskCompleted(this, core::mem::transmute_copy(&taskerrcode)).into() } @@ -3462,21 +2562,12 @@ pub trait ITaskNamedValueCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITaskNamedValueCollection {} #[cfg(feature = "Win32_System_Com")] impl ITaskNamedValueCollection_Vtbl { - pub const fn new() -> ITaskNamedValueCollection_Vtbl - where - Identity: ITaskNamedValueCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITaskNamedValueCollection_Impl, - { + pub const fn new() -> ITaskNamedValueCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskNamedValueCollection_Impl::Count(this, core::mem::transmute_copy(&pcount)).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pppair: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskNamedValueCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pppair: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskNamedValueCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3486,10 +2577,7 @@ impl ITaskNamedValueCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskNamedValueCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskNamedValueCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3499,10 +2587,7 @@ impl ITaskNamedValueCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit, pppair: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskNamedValueCollection_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit, pppair: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskNamedValueCollection_Impl::Create(this, core::mem::transmute(&name), core::mem::transmute(&value)) { Ok(ok__) => { @@ -3512,17 +2597,11 @@ impl ITaskNamedValueCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: ITaskNamedValueCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskNamedValueCollection_Impl::Remove(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskNamedValueCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskNamedValueCollection_Impl::Clear(this).into() } @@ -3551,35 +2630,20 @@ pub trait ITaskNamedValuePair_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITaskNamedValuePair {} #[cfg(feature = "Win32_System_Com")] impl ITaskNamedValuePair_Vtbl { - pub const fn new() -> ITaskNamedValuePair_Vtbl - where - Identity: ITaskNamedValuePair_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskNamedValuePair_Impl, - { + pub const fn new() -> ITaskNamedValuePair_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskNamedValuePair_Impl::Name(this, core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskNamedValuePair_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskNamedValuePair_Impl::SetName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskNamedValuePair_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskNamedValuePair_Impl::Value(this, core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskNamedValuePair_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskNamedValuePair_Impl::SetValue(this, core::mem::transmute(&value)).into() } @@ -3595,7 +2659,7 @@ impl ITaskNamedValuePair_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITaskScheduler_Impl: Sized { +pub trait ITaskScheduler_Impl: Sized + windows_core::IUnknownImpl { fn SetTargetComputer(&self, pwszcomputer: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetTargetComputer(&self) -> windows_core::Result; fn Enum(&self) -> windows_core::Result; @@ -3607,21 +2671,12 @@ pub trait ITaskScheduler_Impl: Sized { } impl windows_core::RuntimeName for ITaskScheduler {} impl ITaskScheduler_Vtbl { - pub const fn new() -> ITaskScheduler_Vtbl - where - Identity: ITaskScheduler_Impl, - { - unsafe extern "system" fn SetTargetComputer(this: *mut core::ffi::c_void, pwszcomputer: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITaskScheduler_Impl, - { + pub const fn new() -> ITaskScheduler_Vtbl { + unsafe extern "system" fn SetTargetComputer(this: *mut core::ffi::c_void, pwszcomputer: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskScheduler_Impl::SetTargetComputer(this, core::mem::transmute(&pwszcomputer)).into() } - unsafe extern "system" fn GetTargetComputer(this: *mut core::ffi::c_void, ppwszcomputer: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITaskScheduler_Impl, - { + unsafe extern "system" fn GetTargetComputer(this: *mut core::ffi::c_void, ppwszcomputer: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskScheduler_Impl::GetTargetComputer(this) { Ok(ok__) => { @@ -3631,10 +2686,7 @@ impl ITaskScheduler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, ppenumworkitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskScheduler_Impl, - { + unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, ppenumworkitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskScheduler_Impl::Enum(this) { Ok(ok__) => { @@ -3644,10 +2696,7 @@ impl ITaskScheduler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskScheduler_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskScheduler_Impl::Activate(this, core::mem::transmute(&pwszname), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -3657,17 +2706,11 @@ impl ITaskScheduler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITaskScheduler_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskScheduler_Impl::Delete(this, core::mem::transmute(&pwszname)).into() } - unsafe extern "system" fn NewWorkItem(this: *mut core::ffi::c_void, pwsztaskname: windows_core::PCWSTR, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskScheduler_Impl, - { + unsafe extern "system" fn NewWorkItem(this: *mut core::ffi::c_void, pwsztaskname: windows_core::PCWSTR, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskScheduler_Impl::NewWorkItem(this, core::mem::transmute(&pwsztaskname), core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -3677,17 +2720,11 @@ impl ITaskScheduler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddWorkItem(this: *mut core::ffi::c_void, pwsztaskname: windows_core::PCWSTR, pworkitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskScheduler_Impl, - { + unsafe extern "system" fn AddWorkItem(this: *mut core::ffi::c_void, pwsztaskname: windows_core::PCWSTR, pworkitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskScheduler_Impl::AddWorkItem(this, core::mem::transmute(&pwsztaskname), windows_core::from_raw_borrowed(&pworkitem)).into() } - unsafe extern "system" fn IsOfType(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, riid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITaskScheduler_Impl, - { + unsafe extern "system" fn IsOfType(this: *mut core::ffi::c_void, pwszname: windows_core::PCWSTR, riid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskScheduler_Impl::IsOfType(this, core::mem::transmute(&pwszname), core::mem::transmute_copy(&riid)).into() } @@ -3723,14 +2760,8 @@ pub trait ITaskService_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITaskService {} #[cfg(feature = "Win32_System_Com")] impl ITaskService_Vtbl { - pub const fn new() -> ITaskService_Vtbl - where - Identity: ITaskService_Impl, - { - unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, ppfolder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskService_Impl, - { + pub const fn new() -> ITaskService_Vtbl { + unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, ppfolder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskService_Impl::GetFolder(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -3740,10 +2771,7 @@ impl ITaskService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRunningTasks(this: *mut core::ffi::c_void, flags: i32, pprunningtasks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskService_Impl, - { + unsafe extern "system" fn GetRunningTasks(this: *mut core::ffi::c_void, flags: i32, pprunningtasks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskService_Impl::GetRunningTasks(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3753,10 +2781,7 @@ impl ITaskService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NewTask(this: *mut core::ffi::c_void, flags: u32, ppdefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskService_Impl, - { + unsafe extern "system" fn NewTask(this: *mut core::ffi::c_void, flags: u32, ppdefinition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskService_Impl::NewTask(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -3766,17 +2791,11 @@ impl ITaskService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, servername: core::mem::MaybeUninit, user: core::mem::MaybeUninit, domain: core::mem::MaybeUninit, password: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskService_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, servername: core::mem::MaybeUninit, user: core::mem::MaybeUninit, domain: core::mem::MaybeUninit, password: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskService_Impl::Connect(this, core::mem::transmute(&servername), core::mem::transmute(&user), core::mem::transmute(&domain), core::mem::transmute(&password)).into() } - unsafe extern "system" fn Connected(this: *mut core::ffi::c_void, pconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskService_Impl, - { + unsafe extern "system" fn Connected(this: *mut core::ffi::c_void, pconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskService_Impl::Connected(this) { Ok(ok__) => { @@ -3786,10 +2805,7 @@ impl ITaskService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TargetServer(this: *mut core::ffi::c_void, pserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskService_Impl, - { + unsafe extern "system" fn TargetServer(this: *mut core::ffi::c_void, pserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskService_Impl::TargetServer(this) { Ok(ok__) => { @@ -3799,10 +2815,7 @@ impl ITaskService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectedUser(this: *mut core::ffi::c_void, puser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskService_Impl, - { + unsafe extern "system" fn ConnectedUser(this: *mut core::ffi::c_void, puser: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskService_Impl::ConnectedUser(this) { Ok(ok__) => { @@ -3812,10 +2825,7 @@ impl ITaskService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConnectedDomain(this: *mut core::ffi::c_void, pdomain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskService_Impl, - { + unsafe extern "system" fn ConnectedDomain(this: *mut core::ffi::c_void, pdomain: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskService_Impl::ConnectedDomain(this) { Ok(ok__) => { @@ -3825,10 +2835,7 @@ impl ITaskService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HighestVersion(this: *mut core::ffi::c_void, pversion: *mut u32) -> windows_core::HRESULT - where - Identity: ITaskService_Impl, - { + unsafe extern "system" fn HighestVersion(this: *mut core::ffi::c_void, pversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskService_Impl::HighestVersion(this) { Ok(ok__) => { @@ -3902,238 +2909,136 @@ pub trait ITaskSettings_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITaskSettings {} #[cfg(feature = "Win32_System_Com")] impl ITaskSettings_Vtbl { - pub const fn new() -> ITaskSettings_Vtbl - where - Identity: ITaskSettings_Impl, - { - unsafe extern "system" fn AllowDemandStart(this: *mut core::ffi::c_void, pallowdemandstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + pub const fn new() -> ITaskSettings_Vtbl { + unsafe extern "system" fn AllowDemandStart(this: *mut core::ffi::c_void, pallowdemandstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::AllowDemandStart(this, core::mem::transmute_copy(&pallowdemandstart)).into() } - unsafe extern "system" fn SetAllowDemandStart(this: *mut core::ffi::c_void, allowdemandstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetAllowDemandStart(this: *mut core::ffi::c_void, allowdemandstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetAllowDemandStart(this, core::mem::transmute_copy(&allowdemandstart)).into() } - unsafe extern "system" fn RestartInterval(this: *mut core::ffi::c_void, prestartinterval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn RestartInterval(this: *mut core::ffi::c_void, prestartinterval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::RestartInterval(this, core::mem::transmute_copy(&prestartinterval)).into() } - unsafe extern "system" fn SetRestartInterval(this: *mut core::ffi::c_void, restartinterval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetRestartInterval(this: *mut core::ffi::c_void, restartinterval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetRestartInterval(this, core::mem::transmute(&restartinterval)).into() } - unsafe extern "system" fn RestartCount(this: *mut core::ffi::c_void, prestartcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn RestartCount(this: *mut core::ffi::c_void, prestartcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::RestartCount(this, core::mem::transmute_copy(&prestartcount)).into() } - unsafe extern "system" fn SetRestartCount(this: *mut core::ffi::c_void, restartcount: i32) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetRestartCount(this: *mut core::ffi::c_void, restartcount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetRestartCount(this, core::mem::transmute_copy(&restartcount)).into() } - unsafe extern "system" fn MultipleInstances(this: *mut core::ffi::c_void, ppolicy: *mut TASK_INSTANCES_POLICY) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn MultipleInstances(this: *mut core::ffi::c_void, ppolicy: *mut TASK_INSTANCES_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::MultipleInstances(this, core::mem::transmute_copy(&ppolicy)).into() } - unsafe extern "system" fn SetMultipleInstances(this: *mut core::ffi::c_void, policy: TASK_INSTANCES_POLICY) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetMultipleInstances(this: *mut core::ffi::c_void, policy: TASK_INSTANCES_POLICY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetMultipleInstances(this, core::mem::transmute_copy(&policy)).into() } - unsafe extern "system" fn StopIfGoingOnBatteries(this: *mut core::ffi::c_void, pstopifonbatteries: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn StopIfGoingOnBatteries(this: *mut core::ffi::c_void, pstopifonbatteries: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::StopIfGoingOnBatteries(this, core::mem::transmute_copy(&pstopifonbatteries)).into() } - unsafe extern "system" fn SetStopIfGoingOnBatteries(this: *mut core::ffi::c_void, stopifonbatteries: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetStopIfGoingOnBatteries(this: *mut core::ffi::c_void, stopifonbatteries: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetStopIfGoingOnBatteries(this, core::mem::transmute_copy(&stopifonbatteries)).into() } - unsafe extern "system" fn DisallowStartIfOnBatteries(this: *mut core::ffi::c_void, pdisallowstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn DisallowStartIfOnBatteries(this: *mut core::ffi::c_void, pdisallowstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::DisallowStartIfOnBatteries(this, core::mem::transmute_copy(&pdisallowstart)).into() } - unsafe extern "system" fn SetDisallowStartIfOnBatteries(this: *mut core::ffi::c_void, disallowstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetDisallowStartIfOnBatteries(this: *mut core::ffi::c_void, disallowstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetDisallowStartIfOnBatteries(this, core::mem::transmute_copy(&disallowstart)).into() } - unsafe extern "system" fn AllowHardTerminate(this: *mut core::ffi::c_void, pallowhardterminate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn AllowHardTerminate(this: *mut core::ffi::c_void, pallowhardterminate: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::AllowHardTerminate(this, core::mem::transmute_copy(&pallowhardterminate)).into() } - unsafe extern "system" fn SetAllowHardTerminate(this: *mut core::ffi::c_void, allowhardterminate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetAllowHardTerminate(this: *mut core::ffi::c_void, allowhardterminate: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetAllowHardTerminate(this, core::mem::transmute_copy(&allowhardterminate)).into() } - unsafe extern "system" fn StartWhenAvailable(this: *mut core::ffi::c_void, pstartwhenavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn StartWhenAvailable(this: *mut core::ffi::c_void, pstartwhenavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::StartWhenAvailable(this, core::mem::transmute_copy(&pstartwhenavailable)).into() } - unsafe extern "system" fn SetStartWhenAvailable(this: *mut core::ffi::c_void, startwhenavailable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetStartWhenAvailable(this: *mut core::ffi::c_void, startwhenavailable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetStartWhenAvailable(this, core::mem::transmute_copy(&startwhenavailable)).into() } - unsafe extern "system" fn XmlText(this: *mut core::ffi::c_void, ptext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn XmlText(this: *mut core::ffi::c_void, ptext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::XmlText(this, core::mem::transmute_copy(&ptext)).into() } - unsafe extern "system" fn SetXmlText(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetXmlText(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetXmlText(this, core::mem::transmute(&text)).into() } - unsafe extern "system" fn RunOnlyIfNetworkAvailable(this: *mut core::ffi::c_void, prunonlyifnetworkavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn RunOnlyIfNetworkAvailable(this: *mut core::ffi::c_void, prunonlyifnetworkavailable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::RunOnlyIfNetworkAvailable(this, core::mem::transmute_copy(&prunonlyifnetworkavailable)).into() } - unsafe extern "system" fn SetRunOnlyIfNetworkAvailable(this: *mut core::ffi::c_void, runonlyifnetworkavailable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetRunOnlyIfNetworkAvailable(this: *mut core::ffi::c_void, runonlyifnetworkavailable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetRunOnlyIfNetworkAvailable(this, core::mem::transmute_copy(&runonlyifnetworkavailable)).into() } - unsafe extern "system" fn ExecutionTimeLimit(this: *mut core::ffi::c_void, pexecutiontimelimit: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn ExecutionTimeLimit(this: *mut core::ffi::c_void, pexecutiontimelimit: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::ExecutionTimeLimit(this, core::mem::transmute_copy(&pexecutiontimelimit)).into() } - unsafe extern "system" fn SetExecutionTimeLimit(this: *mut core::ffi::c_void, executiontimelimit: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetExecutionTimeLimit(this: *mut core::ffi::c_void, executiontimelimit: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetExecutionTimeLimit(this, core::mem::transmute(&executiontimelimit)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::Enabled(this, core::mem::transmute_copy(&penabled)).into() } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn DeleteExpiredTaskAfter(this: *mut core::ffi::c_void, pexpirationdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn DeleteExpiredTaskAfter(this: *mut core::ffi::c_void, pexpirationdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::DeleteExpiredTaskAfter(this, core::mem::transmute_copy(&pexpirationdelay)).into() } - unsafe extern "system" fn SetDeleteExpiredTaskAfter(this: *mut core::ffi::c_void, expirationdelay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetDeleteExpiredTaskAfter(this: *mut core::ffi::c_void, expirationdelay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetDeleteExpiredTaskAfter(this, core::mem::transmute(&expirationdelay)).into() } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, ppriority: *mut i32) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, ppriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::Priority(this, core::mem::transmute_copy(&ppriority)).into() } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, priority: i32) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, priority: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetPriority(this, core::mem::transmute_copy(&priority)).into() } - unsafe extern "system" fn Compatibility(this: *mut core::ffi::c_void, pcompatlevel: *mut TASK_COMPATIBILITY) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn Compatibility(this: *mut core::ffi::c_void, pcompatlevel: *mut TASK_COMPATIBILITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::Compatibility(this, core::mem::transmute_copy(&pcompatlevel)).into() } - unsafe extern "system" fn SetCompatibility(this: *mut core::ffi::c_void, compatlevel: TASK_COMPATIBILITY) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetCompatibility(this: *mut core::ffi::c_void, compatlevel: TASK_COMPATIBILITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetCompatibility(this, core::mem::transmute_copy(&compatlevel)).into() } - unsafe extern "system" fn Hidden(this: *mut core::ffi::c_void, phidden: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn Hidden(this: *mut core::ffi::c_void, phidden: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::Hidden(this, core::mem::transmute_copy(&phidden)).into() } - unsafe extern "system" fn SetHidden(this: *mut core::ffi::c_void, hidden: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetHidden(this: *mut core::ffi::c_void, hidden: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetHidden(this, core::mem::transmute_copy(&hidden)).into() } - unsafe extern "system" fn IdleSettings(this: *mut core::ffi::c_void, ppidlesettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn IdleSettings(this: *mut core::ffi::c_void, ppidlesettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskSettings_Impl::IdleSettings(this) { Ok(ok__) => { @@ -4143,45 +3048,27 @@ impl ITaskSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIdleSettings(this: *mut core::ffi::c_void, pidlesettings: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetIdleSettings(this: *mut core::ffi::c_void, pidlesettings: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetIdleSettings(this, windows_core::from_raw_borrowed(&pidlesettings)).into() } - unsafe extern "system" fn RunOnlyIfIdle(this: *mut core::ffi::c_void, prunonlyifidle: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn RunOnlyIfIdle(this: *mut core::ffi::c_void, prunonlyifidle: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::RunOnlyIfIdle(this, core::mem::transmute_copy(&prunonlyifidle)).into() } - unsafe extern "system" fn SetRunOnlyIfIdle(this: *mut core::ffi::c_void, runonlyifidle: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetRunOnlyIfIdle(this: *mut core::ffi::c_void, runonlyifidle: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetRunOnlyIfIdle(this, core::mem::transmute_copy(&runonlyifidle)).into() } - unsafe extern "system" fn WakeToRun(this: *mut core::ffi::c_void, pwake: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn WakeToRun(this: *mut core::ffi::c_void, pwake: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::WakeToRun(this, core::mem::transmute_copy(&pwake)).into() } - unsafe extern "system" fn SetWakeToRun(this: *mut core::ffi::c_void, wake: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetWakeToRun(this: *mut core::ffi::c_void, wake: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetWakeToRun(this, core::mem::transmute_copy(&wake)).into() } - unsafe extern "system" fn NetworkSettings(this: *mut core::ffi::c_void, ppnetworksettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn NetworkSettings(this: *mut core::ffi::c_void, ppnetworksettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskSettings_Impl::NetworkSettings(this) { Ok(ok__) => { @@ -4191,10 +3078,7 @@ impl ITaskSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkSettings(this: *mut core::ffi::c_void, pnetworksettings: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskSettings_Impl, - { + unsafe extern "system" fn SetNetworkSettings(this: *mut core::ffi::c_void, pnetworksettings: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings_Impl::SetNetworkSettings(this, windows_core::from_raw_borrowed(&pnetworksettings)).into() } @@ -4257,35 +3141,20 @@ pub trait ITaskSettings2_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITaskSettings2 {} #[cfg(feature = "Win32_System_Com")] impl ITaskSettings2_Vtbl { - pub const fn new() -> ITaskSettings2_Vtbl - where - Identity: ITaskSettings2_Impl, - { - unsafe extern "system" fn DisallowStartOnRemoteAppSession(this: *mut core::ffi::c_void, pdisallowstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings2_Impl, - { + pub const fn new() -> ITaskSettings2_Vtbl { + unsafe extern "system" fn DisallowStartOnRemoteAppSession(this: *mut core::ffi::c_void, pdisallowstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings2_Impl::DisallowStartOnRemoteAppSession(this, core::mem::transmute_copy(&pdisallowstart)).into() } - unsafe extern "system" fn SetDisallowStartOnRemoteAppSession(this: *mut core::ffi::c_void, disallowstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings2_Impl, - { + unsafe extern "system" fn SetDisallowStartOnRemoteAppSession(this: *mut core::ffi::c_void, disallowstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings2_Impl::SetDisallowStartOnRemoteAppSession(this, core::mem::transmute_copy(&disallowstart)).into() } - unsafe extern "system" fn UseUnifiedSchedulingEngine(this: *mut core::ffi::c_void, puseunifiedengine: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings2_Impl, - { + unsafe extern "system" fn UseUnifiedSchedulingEngine(this: *mut core::ffi::c_void, puseunifiedengine: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings2_Impl::UseUnifiedSchedulingEngine(this, core::mem::transmute_copy(&puseunifiedengine)).into() } - unsafe extern "system" fn SetUseUnifiedSchedulingEngine(this: *mut core::ffi::c_void, useunifiedengine: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings2_Impl, - { + unsafe extern "system" fn SetUseUnifiedSchedulingEngine(this: *mut core::ffi::c_void, useunifiedengine: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings2_Impl::SetUseUnifiedSchedulingEngine(this, core::mem::transmute_copy(&useunifiedengine)).into() } @@ -4317,42 +3186,24 @@ pub trait ITaskSettings3_Impl: Sized + ITaskSettings_Impl { impl windows_core::RuntimeName for ITaskSettings3 {} #[cfg(feature = "Win32_System_Com")] impl ITaskSettings3_Vtbl { - pub const fn new() -> ITaskSettings3_Vtbl - where - Identity: ITaskSettings3_Impl, - { - unsafe extern "system" fn DisallowStartOnRemoteAppSession(this: *mut core::ffi::c_void, pdisallowstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings3_Impl, - { + pub const fn new() -> ITaskSettings3_Vtbl { + unsafe extern "system" fn DisallowStartOnRemoteAppSession(this: *mut core::ffi::c_void, pdisallowstart: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings3_Impl::DisallowStartOnRemoteAppSession(this, core::mem::transmute_copy(&pdisallowstart)).into() } - unsafe extern "system" fn SetDisallowStartOnRemoteAppSession(this: *mut core::ffi::c_void, disallowstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings3_Impl, - { + unsafe extern "system" fn SetDisallowStartOnRemoteAppSession(this: *mut core::ffi::c_void, disallowstart: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings3_Impl::SetDisallowStartOnRemoteAppSession(this, core::mem::transmute_copy(&disallowstart)).into() } - unsafe extern "system" fn UseUnifiedSchedulingEngine(this: *mut core::ffi::c_void, puseunifiedengine: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings3_Impl, - { + unsafe extern "system" fn UseUnifiedSchedulingEngine(this: *mut core::ffi::c_void, puseunifiedengine: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings3_Impl::UseUnifiedSchedulingEngine(this, core::mem::transmute_copy(&puseunifiedengine)).into() } - unsafe extern "system" fn SetUseUnifiedSchedulingEngine(this: *mut core::ffi::c_void, useunifiedengine: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings3_Impl, - { + unsafe extern "system" fn SetUseUnifiedSchedulingEngine(this: *mut core::ffi::c_void, useunifiedengine: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings3_Impl::SetUseUnifiedSchedulingEngine(this, core::mem::transmute_copy(&useunifiedengine)).into() } - unsafe extern "system" fn MaintenanceSettings(this: *mut core::ffi::c_void, ppmaintenancesettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskSettings3_Impl, - { + unsafe extern "system" fn MaintenanceSettings(this: *mut core::ffi::c_void, ppmaintenancesettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskSettings3_Impl::MaintenanceSettings(this) { Ok(ok__) => { @@ -4362,17 +3213,11 @@ impl ITaskSettings3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaintenanceSettings(this: *mut core::ffi::c_void, pmaintenancesettings: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskSettings3_Impl, - { + unsafe extern "system" fn SetMaintenanceSettings(this: *mut core::ffi::c_void, pmaintenancesettings: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings3_Impl::SetMaintenanceSettings(this, windows_core::from_raw_borrowed(&pmaintenancesettings)).into() } - unsafe extern "system" fn CreateMaintenanceSettings(this: *mut core::ffi::c_void, ppmaintenancesettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskSettings3_Impl, - { + unsafe extern "system" fn CreateMaintenanceSettings(this: *mut core::ffi::c_void, ppmaintenancesettings: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskSettings3_Impl::CreateMaintenanceSettings(this) { Ok(ok__) => { @@ -4382,17 +3227,11 @@ impl ITaskSettings3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Volatile(this: *mut core::ffi::c_void, pvolatile: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings3_Impl, - { + unsafe extern "system" fn Volatile(this: *mut core::ffi::c_void, pvolatile: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings3_Impl::Volatile(this, core::mem::transmute_copy(&pvolatile)).into() } - unsafe extern "system" fn SetVolatile(this: *mut core::ffi::c_void, volatile: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITaskSettings3_Impl, - { + unsafe extern "system" fn SetVolatile(this: *mut core::ffi::c_void, volatile: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskSettings3_Impl::SetVolatile(this, core::mem::transmute_copy(&volatile)).into() } @@ -4413,35 +3252,23 @@ impl ITaskSettings3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ITaskTrigger_Impl: Sized { +pub trait ITaskTrigger_Impl: Sized + windows_core::IUnknownImpl { fn SetTrigger(&self, ptrigger: *const TASK_TRIGGER) -> windows_core::Result<()>; fn GetTrigger(&self, ptrigger: *mut TASK_TRIGGER) -> windows_core::Result<()>; fn GetTriggerString(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITaskTrigger {} impl ITaskTrigger_Vtbl { - pub const fn new() -> ITaskTrigger_Vtbl - where - Identity: ITaskTrigger_Impl, - { - unsafe extern "system" fn SetTrigger(this: *mut core::ffi::c_void, ptrigger: *const TASK_TRIGGER) -> windows_core::HRESULT - where - Identity: ITaskTrigger_Impl, - { + pub const fn new() -> ITaskTrigger_Vtbl { + unsafe extern "system" fn SetTrigger(this: *mut core::ffi::c_void, ptrigger: *const TASK_TRIGGER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskTrigger_Impl::SetTrigger(this, core::mem::transmute_copy(&ptrigger)).into() } - unsafe extern "system" fn GetTrigger(this: *mut core::ffi::c_void, ptrigger: *mut TASK_TRIGGER) -> windows_core::HRESULT - where - Identity: ITaskTrigger_Impl, - { + unsafe extern "system" fn GetTrigger(this: *mut core::ffi::c_void, ptrigger: *mut TASK_TRIGGER) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskTrigger_Impl::GetTrigger(this, core::mem::transmute_copy(&ptrigger)).into() } - unsafe extern "system" fn GetTriggerString(this: *mut core::ffi::c_void, ppwsztrigger: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITaskTrigger_Impl, - { + unsafe extern "system" fn GetTriggerString(this: *mut core::ffi::c_void, ppwsztrigger: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskTrigger_Impl::GetTriggerString(this) { Ok(ok__) => { @@ -4462,21 +3289,15 @@ impl ITaskTrigger_Vtbl { iid == &::IID } } -pub trait ITaskVariables_Impl: Sized { +pub trait ITaskVariables_Impl: Sized + windows_core::IUnknownImpl { fn GetInput(&self) -> windows_core::Result; fn SetOutput(&self, input: &windows_core::BSTR) -> windows_core::Result<()>; fn GetContext(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITaskVariables {} impl ITaskVariables_Vtbl { - pub const fn new() -> ITaskVariables_Vtbl - where - Identity: ITaskVariables_Impl, - { - unsafe extern "system" fn GetInput(this: *mut core::ffi::c_void, pinput: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskVariables_Impl, - { + pub const fn new() -> ITaskVariables_Vtbl { + unsafe extern "system" fn GetInput(this: *mut core::ffi::c_void, pinput: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskVariables_Impl::GetInput(this) { Ok(ok__) => { @@ -4486,17 +3307,11 @@ impl ITaskVariables_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutput(this: *mut core::ffi::c_void, input: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskVariables_Impl, - { + unsafe extern "system" fn SetOutput(this: *mut core::ffi::c_void, input: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskVariables_Impl::SetOutput(this, core::mem::transmute(&input)).into() } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, pcontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITaskVariables_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, pcontext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITaskVariables_Impl::GetContext(this) { Ok(ok__) => { @@ -4526,21 +3341,12 @@ pub trait ITimeTrigger_Impl: Sized + ITrigger_Impl { impl windows_core::RuntimeName for ITimeTrigger {} #[cfg(feature = "Win32_System_Com")] impl ITimeTrigger_Vtbl { - pub const fn new() -> ITimeTrigger_Vtbl - where - Identity: ITimeTrigger_Impl, - { - unsafe extern "system" fn RandomDelay(this: *mut core::ffi::c_void, prandomdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITimeTrigger_Impl, - { + pub const fn new() -> ITimeTrigger_Vtbl { + unsafe extern "system" fn RandomDelay(this: *mut core::ffi::c_void, prandomdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITimeTrigger_Impl::RandomDelay(this, core::mem::transmute_copy(&prandomdelay)).into() } - unsafe extern "system" fn SetRandomDelay(this: *mut core::ffi::c_void, randomdelay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITimeTrigger_Impl, - { + unsafe extern "system" fn SetRandomDelay(this: *mut core::ffi::c_void, randomdelay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITimeTrigger_Impl::SetRandomDelay(this, core::mem::transmute(&randomdelay)).into() } @@ -4574,35 +3380,20 @@ pub trait ITrigger_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITrigger {} #[cfg(feature = "Win32_System_Com")] impl ITrigger_Vtbl { - pub const fn new() -> ITrigger_Vtbl - where - Identity: ITrigger_Impl, - { - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut TASK_TRIGGER_TYPE2) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + pub const fn new() -> ITrigger_Vtbl { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, ptype: *mut TASK_TRIGGER_TYPE2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::Type(this, core::mem::transmute_copy(&ptype)).into() } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::Id(this, core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, id: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::SetId(this, core::mem::transmute(&id)).into() } - unsafe extern "system" fn Repetition(this: *mut core::ffi::c_void, pprepeat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn Repetition(this: *mut core::ffi::c_void, pprepeat: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITrigger_Impl::Repetition(this) { Ok(ok__) => { @@ -4612,66 +3403,39 @@ impl ITrigger_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRepetition(this: *mut core::ffi::c_void, prepeat: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn SetRepetition(this: *mut core::ffi::c_void, prepeat: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::SetRepetition(this, windows_core::from_raw_borrowed(&prepeat)).into() } - unsafe extern "system" fn ExecutionTimeLimit(this: *mut core::ffi::c_void, ptimelimit: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn ExecutionTimeLimit(this: *mut core::ffi::c_void, ptimelimit: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::ExecutionTimeLimit(this, core::mem::transmute_copy(&ptimelimit)).into() } - unsafe extern "system" fn SetExecutionTimeLimit(this: *mut core::ffi::c_void, timelimit: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn SetExecutionTimeLimit(this: *mut core::ffi::c_void, timelimit: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::SetExecutionTimeLimit(this, core::mem::transmute(&timelimit)).into() } - unsafe extern "system" fn StartBoundary(this: *mut core::ffi::c_void, pstart: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn StartBoundary(this: *mut core::ffi::c_void, pstart: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::StartBoundary(this, core::mem::transmute_copy(&pstart)).into() } - unsafe extern "system" fn SetStartBoundary(this: *mut core::ffi::c_void, start: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn SetStartBoundary(this: *mut core::ffi::c_void, start: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::SetStartBoundary(this, core::mem::transmute(&start)).into() } - unsafe extern "system" fn EndBoundary(this: *mut core::ffi::c_void, pend: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn EndBoundary(this: *mut core::ffi::c_void, pend: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::EndBoundary(this, core::mem::transmute_copy(&pend)).into() } - unsafe extern "system" fn SetEndBoundary(this: *mut core::ffi::c_void, end: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn SetEndBoundary(this: *mut core::ffi::c_void, end: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::SetEndBoundary(this, core::mem::transmute(&end)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::Enabled(this, core::mem::transmute_copy(&penabled)).into() } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ITrigger_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrigger_Impl::SetEnabled(this, core::mem::transmute_copy(&enabled)).into() } @@ -4709,21 +3473,12 @@ pub trait ITriggerCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ITriggerCollection {} #[cfg(feature = "Win32_System_Com")] impl ITriggerCollection_Vtbl { - pub const fn new() -> ITriggerCollection_Vtbl - where - Identity: ITriggerCollection_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITriggerCollection_Impl, - { + pub const fn new() -> ITriggerCollection_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITriggerCollection_Impl::Count(this, core::mem::transmute_copy(&pcount)).into() } - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pptrigger: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITriggerCollection_Impl, - { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, pptrigger: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITriggerCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -4733,10 +3488,7 @@ impl ITriggerCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITriggerCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITriggerCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4746,10 +3498,7 @@ impl ITriggerCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, r#type: TASK_TRIGGER_TYPE2, pptrigger: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITriggerCollection_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, r#type: TASK_TRIGGER_TYPE2, pptrigger: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITriggerCollection_Impl::Create(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -4759,17 +3508,11 @@ impl ITriggerCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITriggerCollection_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITriggerCollection_Impl::Remove(this, core::mem::transmute(&index)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITriggerCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITriggerCollection_Impl::Clear(this).into() } @@ -4800,49 +3543,28 @@ pub trait IWeeklyTrigger_Impl: Sized + ITrigger_Impl { impl windows_core::RuntimeName for IWeeklyTrigger {} #[cfg(feature = "Win32_System_Com")] impl IWeeklyTrigger_Vtbl { - pub const fn new() -> IWeeklyTrigger_Vtbl - where - Identity: IWeeklyTrigger_Impl, - { - unsafe extern "system" fn DaysOfWeek(this: *mut core::ffi::c_void, pdays: *mut i16) -> windows_core::HRESULT - where - Identity: IWeeklyTrigger_Impl, - { + pub const fn new() -> IWeeklyTrigger_Vtbl { + unsafe extern "system" fn DaysOfWeek(this: *mut core::ffi::c_void, pdays: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWeeklyTrigger_Impl::DaysOfWeek(this, core::mem::transmute_copy(&pdays)).into() } - unsafe extern "system" fn SetDaysOfWeek(this: *mut core::ffi::c_void, days: i16) -> windows_core::HRESULT - where - Identity: IWeeklyTrigger_Impl, - { + unsafe extern "system" fn SetDaysOfWeek(this: *mut core::ffi::c_void, days: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWeeklyTrigger_Impl::SetDaysOfWeek(this, core::mem::transmute_copy(&days)).into() } - unsafe extern "system" fn WeeksInterval(this: *mut core::ffi::c_void, pweeks: *mut i16) -> windows_core::HRESULT - where - Identity: IWeeklyTrigger_Impl, - { + unsafe extern "system" fn WeeksInterval(this: *mut core::ffi::c_void, pweeks: *mut i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWeeklyTrigger_Impl::WeeksInterval(this, core::mem::transmute_copy(&pweeks)).into() } - unsafe extern "system" fn SetWeeksInterval(this: *mut core::ffi::c_void, weeks: i16) -> windows_core::HRESULT - where - Identity: IWeeklyTrigger_Impl, - { + unsafe extern "system" fn SetWeeksInterval(this: *mut core::ffi::c_void, weeks: i16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWeeklyTrigger_Impl::SetWeeksInterval(this, core::mem::transmute_copy(&weeks)).into() } - unsafe extern "system" fn RandomDelay(this: *mut core::ffi::c_void, prandomdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWeeklyTrigger_Impl, - { + unsafe extern "system" fn RandomDelay(this: *mut core::ffi::c_void, prandomdelay: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWeeklyTrigger_Impl::RandomDelay(this, core::mem::transmute_copy(&prandomdelay)).into() } - unsafe extern "system" fn SetRandomDelay(this: *mut core::ffi::c_void, randomdelay: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWeeklyTrigger_Impl, - { + unsafe extern "system" fn SetRandomDelay(this: *mut core::ffi::c_void, randomdelay: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWeeklyTrigger_Impl::SetRandomDelay(this, core::mem::transmute(&randomdelay)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/Threading/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Threading/impl.rs index a2863f3c71..b3351c510c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Threading/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Threading/impl.rs @@ -1,24 +1,15 @@ -pub trait IRtwqAsyncCallback_Impl: Sized { +pub trait IRtwqAsyncCallback_Impl: Sized + windows_core::IUnknownImpl { fn GetParameters(&self, pdwflags: *mut u32, pdwqueue: *mut u32) -> windows_core::Result<()>; fn Invoke(&self, pasyncresult: Option<&IRtwqAsyncResult>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRtwqAsyncCallback {} impl IRtwqAsyncCallback_Vtbl { - pub const fn new() -> IRtwqAsyncCallback_Vtbl - where - Identity: IRtwqAsyncCallback_Impl, - { - unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, pdwflags: *mut u32, pdwqueue: *mut u32) -> windows_core::HRESULT - where - Identity: IRtwqAsyncCallback_Impl, - { + pub const fn new() -> IRtwqAsyncCallback_Vtbl { + unsafe extern "system" fn GetParameters(this: *mut core::ffi::c_void, pdwflags: *mut u32, pdwqueue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRtwqAsyncCallback_Impl::GetParameters(this, core::mem::transmute_copy(&pdwflags), core::mem::transmute_copy(&pdwqueue)).into() } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRtwqAsyncCallback_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, pasyncresult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRtwqAsyncCallback_Impl::Invoke(this, windows_core::from_raw_borrowed(&pasyncresult)).into() } @@ -32,7 +23,7 @@ impl IRtwqAsyncCallback_Vtbl { iid == &::IID } } -pub trait IRtwqAsyncResult_Impl: Sized { +pub trait IRtwqAsyncResult_Impl: Sized + windows_core::IUnknownImpl { fn GetState(&self) -> windows_core::Result; fn GetStatus(&self) -> windows_core::Result<()>; fn SetStatus(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; @@ -41,14 +32,8 @@ pub trait IRtwqAsyncResult_Impl: Sized { } impl windows_core::RuntimeName for IRtwqAsyncResult {} impl IRtwqAsyncResult_Vtbl { - pub const fn new() -> IRtwqAsyncResult_Vtbl - where - Identity: IRtwqAsyncResult_Impl, - { - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, ppunkstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRtwqAsyncResult_Impl, - { + pub const fn new() -> IRtwqAsyncResult_Vtbl { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, ppunkstate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRtwqAsyncResult_Impl::GetState(this) { Ok(ok__) => { @@ -58,24 +43,15 @@ impl IRtwqAsyncResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRtwqAsyncResult_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRtwqAsyncResult_Impl::GetStatus(this).into() } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IRtwqAsyncResult_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRtwqAsyncResult_Impl::SetStatus(this, core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRtwqAsyncResult_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRtwqAsyncResult_Impl::GetObject(this) { Ok(ok__) => { @@ -85,10 +61,7 @@ impl IRtwqAsyncResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStateNoAddRef(this: *mut core::ffi::c_void) -> Option - where - Identity: IRtwqAsyncResult_Impl, - { + unsafe extern "system" fn GetStateNoAddRef(this: *mut core::ffi::c_void) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRtwqAsyncResult_Impl::GetStateNoAddRef(this) } @@ -105,35 +78,23 @@ impl IRtwqAsyncResult_Vtbl { iid == &::IID } } -pub trait IRtwqPlatformEvents_Impl: Sized { +pub trait IRtwqPlatformEvents_Impl: Sized + windows_core::IUnknownImpl { fn InitializationComplete(&self) -> windows_core::Result<()>; fn ShutdownStart(&self) -> windows_core::Result<()>; fn ShutdownComplete(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRtwqPlatformEvents {} impl IRtwqPlatformEvents_Vtbl { - pub const fn new() -> IRtwqPlatformEvents_Vtbl - where - Identity: IRtwqPlatformEvents_Impl, - { - unsafe extern "system" fn InitializationComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRtwqPlatformEvents_Impl, - { + pub const fn new() -> IRtwqPlatformEvents_Vtbl { + unsafe extern "system" fn InitializationComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRtwqPlatformEvents_Impl::InitializationComplete(this).into() } - unsafe extern "system" fn ShutdownStart(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRtwqPlatformEvents_Impl, - { + unsafe extern "system" fn ShutdownStart(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRtwqPlatformEvents_Impl::ShutdownStart(this).into() } - unsafe extern "system" fn ShutdownComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRtwqPlatformEvents_Impl, - { + unsafe extern "system" fn ShutdownComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRtwqPlatformEvents_Impl::ShutdownComplete(this).into() } @@ -151,10 +112,7 @@ impl IRtwqPlatformEvents_Vtbl { pub trait RTWQASYNCRESULT_Impl: Sized + IRtwqAsyncResult_Impl {} impl windows_core::RuntimeName for RTWQASYNCRESULT {} impl RTWQASYNCRESULT_Vtbl { - pub const fn new() -> RTWQASYNCRESULT_Vtbl - where - Identity: RTWQASYNCRESULT_Impl, - { + pub const fn new() -> RTWQASYNCRESULT_Vtbl { Self { base__: IRtwqAsyncResult_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { 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 5cbf6dbb89..a983ddb855 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/impl.rs @@ -9,14 +9,8 @@ pub trait ICatalog_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ICatalog {} #[cfg(feature = "Win32_System_Com")] impl ICatalog_Vtbl { - pub const fn new() -> ICatalog_Vtbl - where - Identity: ICatalog_Impl, - { - unsafe extern "system" fn GetCollection(this: *mut core::ffi::c_void, bstrcollname: core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalog_Impl, - { + pub const fn new() -> ICatalog_Vtbl { + unsafe extern "system" fn GetCollection(this: *mut core::ffi::c_void, bstrcollname: core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalog_Impl::GetCollection(this, core::mem::transmute(&bstrcollname)) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl ICatalog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, bstrconnectstring: core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICatalog_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, bstrconnectstring: core::mem::MaybeUninit, ppcatalogcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICatalog_Impl::Connect(this, core::mem::transmute(&bstrconnectstring)) { Ok(ok__) => { @@ -39,17 +30,11 @@ impl ICatalog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: ICatalog_Impl, - { + unsafe extern "system" fn MajorVersion(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatalog_Impl::MajorVersion(this, core::mem::transmute_copy(&retval)).into() } - unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: ICatalog_Impl, - { + unsafe extern "system" fn MinorVersion(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICatalog_Impl::MinorVersion(this, core::mem::transmute_copy(&retval)).into() } @@ -76,35 +61,20 @@ pub trait IComponentUtil_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IComponentUtil {} #[cfg(feature = "Win32_System_Com")] impl IComponentUtil_Vtbl { - pub const fn new() -> IComponentUtil_Vtbl - where - Identity: IComponentUtil_Impl, - { - unsafe extern "system" fn InstallComponent(this: *mut core::ffi::c_void, bstrdllfile: core::mem::MaybeUninit, bstrtypelibfile: core::mem::MaybeUninit, bstrproxystubdllfile: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentUtil_Impl, - { + pub const fn new() -> IComponentUtil_Vtbl { + unsafe extern "system" fn InstallComponent(this: *mut core::ffi::c_void, bstrdllfile: core::mem::MaybeUninit, bstrtypelibfile: core::mem::MaybeUninit, bstrproxystubdllfile: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentUtil_Impl::InstallComponent(this, core::mem::transmute(&bstrdllfile), core::mem::transmute(&bstrtypelibfile), core::mem::transmute(&bstrproxystubdllfile)).into() } - unsafe extern "system" fn ImportComponent(this: *mut core::ffi::c_void, bstrclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentUtil_Impl, - { + unsafe extern "system" fn ImportComponent(this: *mut core::ffi::c_void, bstrclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentUtil_Impl::ImportComponent(this, core::mem::transmute(&bstrclsid)).into() } - unsafe extern "system" fn ImportComponentByName(this: *mut core::ffi::c_void, bstrprogid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IComponentUtil_Impl, - { + unsafe extern "system" fn ImportComponentByName(this: *mut core::ffi::c_void, bstrprogid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentUtil_Impl::ImportComponentByName(this, core::mem::transmute(&bstrprogid)).into() } - unsafe extern "system" fn GetCLSIDs(this: *mut core::ffi::c_void, bstrdllfile: core::mem::MaybeUninit, bstrtypelibfile: core::mem::MaybeUninit, aclsids: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IComponentUtil_Impl, - { + unsafe extern "system" fn GetCLSIDs(this: *mut core::ffi::c_void, bstrdllfile: core::mem::MaybeUninit, bstrtypelibfile: core::mem::MaybeUninit, aclsids: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComponentUtil_Impl::GetCLSIDs(this, core::mem::transmute(&bstrdllfile), core::mem::transmute(&bstrtypelibfile), core::mem::transmute_copy(&aclsids)).into() } @@ -130,28 +100,16 @@ pub trait IPackageUtil_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IPackageUtil {} #[cfg(feature = "Win32_System_Com")] impl IPackageUtil_Vtbl { - pub const fn new() -> IPackageUtil_Vtbl - where - Identity: IPackageUtil_Impl, - { - unsafe extern "system" fn InstallPackage(this: *mut core::ffi::c_void, bstrpackagefile: core::mem::MaybeUninit, bstrinstallpath: core::mem::MaybeUninit, loptions: i32) -> windows_core::HRESULT - where - Identity: IPackageUtil_Impl, - { + pub const fn new() -> IPackageUtil_Vtbl { + unsafe extern "system" fn InstallPackage(this: *mut core::ffi::c_void, bstrpackagefile: core::mem::MaybeUninit, bstrinstallpath: core::mem::MaybeUninit, loptions: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageUtil_Impl::InstallPackage(this, core::mem::transmute(&bstrpackagefile), core::mem::transmute(&bstrinstallpath), core::mem::transmute_copy(&loptions)).into() } - unsafe extern "system" fn ExportPackage(this: *mut core::ffi::c_void, bstrpackageid: core::mem::MaybeUninit, bstrpackagefile: core::mem::MaybeUninit, loptions: i32) -> windows_core::HRESULT - where - Identity: IPackageUtil_Impl, - { + unsafe extern "system" fn ExportPackage(this: *mut core::ffi::c_void, bstrpackageid: core::mem::MaybeUninit, bstrpackagefile: core::mem::MaybeUninit, loptions: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageUtil_Impl::ExportPackage(this, core::mem::transmute(&bstrpackageid), core::mem::transmute(&bstrpackagefile), core::mem::transmute_copy(&loptions)).into() } - unsafe extern "system" fn ShutdownPackage(this: *mut core::ffi::c_void, bstrpackageid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPackageUtil_Impl, - { + unsafe extern "system" fn ShutdownPackage(this: *mut core::ffi::c_void, bstrpackageid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageUtil_Impl::ShutdownPackage(this, core::mem::transmute(&bstrpackageid)).into() } @@ -175,21 +133,12 @@ pub trait IRemoteComponentUtil_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRemoteComponentUtil {} #[cfg(feature = "Win32_System_Com")] impl IRemoteComponentUtil_Vtbl { - pub const fn new() -> IRemoteComponentUtil_Vtbl - where - Identity: IRemoteComponentUtil_Impl, - { - unsafe extern "system" fn InstallRemoteComponent(this: *mut core::ffi::c_void, bstrserver: core::mem::MaybeUninit, bstrpackageid: core::mem::MaybeUninit, bstrclsid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRemoteComponentUtil_Impl, - { + pub const fn new() -> IRemoteComponentUtil_Vtbl { + unsafe extern "system" fn InstallRemoteComponent(this: *mut core::ffi::c_void, bstrserver: core::mem::MaybeUninit, bstrpackageid: core::mem::MaybeUninit, bstrclsid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteComponentUtil_Impl::InstallRemoteComponent(this, core::mem::transmute(&bstrserver), core::mem::transmute(&bstrpackageid), core::mem::transmute(&bstrclsid)).into() } - unsafe extern "system" fn InstallRemoteComponentByName(this: *mut core::ffi::c_void, bstrserver: core::mem::MaybeUninit, bstrpackagename: core::mem::MaybeUninit, bstrprogid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRemoteComponentUtil_Impl, - { + unsafe extern "system" fn InstallRemoteComponentByName(this: *mut core::ffi::c_void, bstrserver: core::mem::MaybeUninit, bstrpackagename: core::mem::MaybeUninit, bstrprogid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteComponentUtil_Impl::InstallRemoteComponentByName(this, core::mem::transmute(&bstrserver), core::mem::transmute(&bstrpackagename), core::mem::transmute(&bstrprogid)).into() } @@ -212,21 +161,12 @@ pub trait IRoleAssociationUtil_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IRoleAssociationUtil {} #[cfg(feature = "Win32_System_Com")] impl IRoleAssociationUtil_Vtbl { - pub const fn new() -> IRoleAssociationUtil_Vtbl - where - Identity: IRoleAssociationUtil_Impl, - { - unsafe extern "system" fn AssociateRole(this: *mut core::ffi::c_void, bstrroleid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRoleAssociationUtil_Impl, - { + pub const fn new() -> IRoleAssociationUtil_Vtbl { + unsafe extern "system" fn AssociateRole(this: *mut core::ffi::c_void, bstrroleid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRoleAssociationUtil_Impl::AssociateRole(this, core::mem::transmute(&bstrroleid)).into() } - unsafe extern "system" fn AssociateRoleByName(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRoleAssociationUtil_Impl, - { + unsafe extern "system" fn AssociateRoleByName(this: *mut core::ffi::c_void, bstrrolename: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRoleAssociationUtil_Impl::AssociateRoleByName(this, core::mem::transmute(&bstrrolename)).into() } 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 d6c475223e..fb791596de 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/impl.rs @@ -12,42 +12,24 @@ pub trait IAutomaticUpdates_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAutomaticUpdates {} #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdates_Vtbl { - pub const fn new() -> IAutomaticUpdates_Vtbl - where - Identity: IAutomaticUpdates_Impl, - { - unsafe extern "system" fn DetectNow(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAutomaticUpdates_Impl, - { + pub const fn new() -> IAutomaticUpdates_Vtbl { + unsafe extern "system" fn DetectNow(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdates_Impl::DetectNow(this).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAutomaticUpdates_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdates_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAutomaticUpdates_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdates_Impl::Resume(this).into() } - unsafe extern "system" fn ShowSettingsDialog(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAutomaticUpdates_Impl, - { + unsafe extern "system" fn ShowSettingsDialog(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdates_Impl::ShowSettingsDialog(this).into() } - unsafe extern "system" fn Settings(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAutomaticUpdates_Impl, - { + unsafe extern "system" fn Settings(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdates_Impl::Settings(this) { Ok(ok__) => { @@ -57,10 +39,7 @@ impl IAutomaticUpdates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceEnabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAutomaticUpdates_Impl, - { + unsafe extern "system" fn ServiceEnabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdates_Impl::ServiceEnabled(this) { Ok(ok__) => { @@ -70,10 +49,7 @@ impl IAutomaticUpdates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableService(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAutomaticUpdates_Impl, - { + unsafe extern "system" fn EnableService(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdates_Impl::EnableService(this).into() } @@ -100,14 +76,8 @@ pub trait IAutomaticUpdates2_Impl: Sized + IAutomaticUpdates_Impl { impl windows_core::RuntimeName for IAutomaticUpdates2 {} #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdates2_Vtbl { - pub const fn new() -> IAutomaticUpdates2_Vtbl - where - Identity: IAutomaticUpdates2_Impl, - { - unsafe extern "system" fn Results(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAutomaticUpdates2_Impl, - { + pub const fn new() -> IAutomaticUpdates2_Vtbl { + unsafe extern "system" fn Results(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdates2_Impl::Results(this) { Ok(ok__) => { @@ -132,14 +102,8 @@ pub trait IAutomaticUpdatesResults_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAutomaticUpdatesResults {} #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdatesResults_Vtbl { - pub const fn new() -> IAutomaticUpdatesResults_Vtbl - where - Identity: IAutomaticUpdatesResults_Impl, - { - unsafe extern "system" fn LastSearchSuccessDate(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesResults_Impl, - { + pub const fn new() -> IAutomaticUpdatesResults_Vtbl { + unsafe extern "system" fn LastSearchSuccessDate(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesResults_Impl::LastSearchSuccessDate(this) { Ok(ok__) => { @@ -149,10 +113,7 @@ impl IAutomaticUpdatesResults_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastInstallationSuccessDate(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesResults_Impl, - { + unsafe extern "system" fn LastInstallationSuccessDate(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesResults_Impl::LastInstallationSuccessDate(this) { Ok(ok__) => { @@ -189,14 +150,8 @@ pub trait IAutomaticUpdatesSettings_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAutomaticUpdatesSettings {} #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdatesSettings_Vtbl { - pub const fn new() -> IAutomaticUpdatesSettings_Vtbl - where - Identity: IAutomaticUpdatesSettings_Impl, - { - unsafe extern "system" fn NotificationLevel(this: *mut core::ffi::c_void, retval: *mut AutomaticUpdatesNotificationLevel) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings_Impl, - { + pub const fn new() -> IAutomaticUpdatesSettings_Vtbl { + unsafe extern "system" fn NotificationLevel(this: *mut core::ffi::c_void, retval: *mut AutomaticUpdatesNotificationLevel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesSettings_Impl::NotificationLevel(this) { Ok(ok__) => { @@ -206,17 +161,11 @@ impl IAutomaticUpdatesSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotificationLevel(this: *mut core::ffi::c_void, value: AutomaticUpdatesNotificationLevel) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings_Impl, - { + unsafe extern "system" fn SetNotificationLevel(this: *mut core::ffi::c_void, value: AutomaticUpdatesNotificationLevel) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdatesSettings_Impl::SetNotificationLevel(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings_Impl, - { + unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesSettings_Impl::ReadOnly(this) { Ok(ok__) => { @@ -226,10 +175,7 @@ impl IAutomaticUpdatesSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Required(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings_Impl, - { + unsafe extern "system" fn Required(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesSettings_Impl::Required(this) { Ok(ok__) => { @@ -239,10 +185,7 @@ impl IAutomaticUpdatesSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScheduledInstallationDay(this: *mut core::ffi::c_void, retval: *mut AutomaticUpdatesScheduledInstallationDay) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings_Impl, - { + unsafe extern "system" fn ScheduledInstallationDay(this: *mut core::ffi::c_void, retval: *mut AutomaticUpdatesScheduledInstallationDay) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesSettings_Impl::ScheduledInstallationDay(this) { Ok(ok__) => { @@ -252,17 +195,11 @@ impl IAutomaticUpdatesSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScheduledInstallationDay(this: *mut core::ffi::c_void, value: AutomaticUpdatesScheduledInstallationDay) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings_Impl, - { + unsafe extern "system" fn SetScheduledInstallationDay(this: *mut core::ffi::c_void, value: AutomaticUpdatesScheduledInstallationDay) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdatesSettings_Impl::SetScheduledInstallationDay(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ScheduledInstallationTime(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings_Impl, - { + unsafe extern "system" fn ScheduledInstallationTime(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesSettings_Impl::ScheduledInstallationTime(this) { Ok(ok__) => { @@ -272,24 +209,15 @@ impl IAutomaticUpdatesSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScheduledInstallationTime(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings_Impl, - { + unsafe extern "system" fn SetScheduledInstallationTime(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdatesSettings_Impl::SetScheduledInstallationTime(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdatesSettings_Impl::Refresh(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdatesSettings_Impl::Save(this).into() } @@ -321,14 +249,8 @@ pub trait IAutomaticUpdatesSettings2_Impl: Sized + IAutomaticUpdatesSettings_Imp impl windows_core::RuntimeName for IAutomaticUpdatesSettings2 {} #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdatesSettings2_Vtbl { - pub const fn new() -> IAutomaticUpdatesSettings2_Vtbl - where - Identity: IAutomaticUpdatesSettings2_Impl, - { - unsafe extern "system" fn IncludeRecommendedUpdates(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings2_Impl, - { + pub const fn new() -> IAutomaticUpdatesSettings2_Vtbl { + unsafe extern "system" fn IncludeRecommendedUpdates(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesSettings2_Impl::IncludeRecommendedUpdates(this) { Ok(ok__) => { @@ -338,17 +260,11 @@ impl IAutomaticUpdatesSettings2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIncludeRecommendedUpdates(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings2_Impl, - { + unsafe extern "system" fn SetIncludeRecommendedUpdates(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdatesSettings2_Impl::SetIncludeRecommendedUpdates(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn CheckPermission(this: *mut core::ffi::c_void, usertype: AutomaticUpdatesUserType, permissiontype: AutomaticUpdatesPermissionType, userhaspermission: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings2_Impl, - { + unsafe extern "system" fn CheckPermission(this: *mut core::ffi::c_void, usertype: AutomaticUpdatesUserType, permissiontype: AutomaticUpdatesPermissionType, userhaspermission: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesSettings2_Impl::CheckPermission(this, core::mem::transmute_copy(&usertype), core::mem::transmute_copy(&permissiontype)) { Ok(ok__) => { @@ -380,14 +296,8 @@ pub trait IAutomaticUpdatesSettings3_Impl: Sized + IAutomaticUpdatesSettings2_Im impl windows_core::RuntimeName for IAutomaticUpdatesSettings3 {} #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdatesSettings3_Vtbl { - pub const fn new() -> IAutomaticUpdatesSettings3_Vtbl - where - Identity: IAutomaticUpdatesSettings3_Impl, - { - unsafe extern "system" fn NonAdministratorsElevated(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings3_Impl, - { + pub const fn new() -> IAutomaticUpdatesSettings3_Vtbl { + unsafe extern "system" fn NonAdministratorsElevated(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesSettings3_Impl::NonAdministratorsElevated(this) { Ok(ok__) => { @@ -397,17 +307,11 @@ impl IAutomaticUpdatesSettings3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNonAdministratorsElevated(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings3_Impl, - { + unsafe extern "system" fn SetNonAdministratorsElevated(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdatesSettings3_Impl::SetNonAdministratorsElevated(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn FeaturedUpdatesEnabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings3_Impl, - { + unsafe extern "system" fn FeaturedUpdatesEnabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutomaticUpdatesSettings3_Impl::FeaturedUpdatesEnabled(this) { Ok(ok__) => { @@ -417,10 +321,7 @@ impl IAutomaticUpdatesSettings3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFeaturedUpdatesEnabled(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IAutomaticUpdatesSettings3_Impl, - { + unsafe extern "system" fn SetFeaturedUpdatesEnabled(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutomaticUpdatesSettings3_Impl::SetFeaturedUpdatesEnabled(this, core::mem::transmute_copy(&value)).into() } @@ -452,14 +353,8 @@ pub trait ICategory_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ICategory {} #[cfg(feature = "Win32_System_Com")] impl ICategory_Vtbl { - pub const fn new() -> ICategory_Vtbl - where - Identity: ICategory_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICategory_Impl, - { + pub const fn new() -> ICategory_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategory_Impl::Name(this) { Ok(ok__) => { @@ -469,10 +364,7 @@ impl ICategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CategoryID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICategory_Impl, - { + unsafe extern "system" fn CategoryID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategory_Impl::CategoryID(this) { Ok(ok__) => { @@ -482,10 +374,7 @@ impl ICategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Children(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICategory_Impl, - { + unsafe extern "system" fn Children(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategory_Impl::Children(this) { Ok(ok__) => { @@ -495,10 +384,7 @@ impl ICategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICategory_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategory_Impl::Description(this) { Ok(ok__) => { @@ -508,10 +394,7 @@ impl ICategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Image(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICategory_Impl, - { + unsafe extern "system" fn Image(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategory_Impl::Image(this) { Ok(ok__) => { @@ -521,10 +404,7 @@ impl ICategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Order(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: ICategory_Impl, - { + unsafe extern "system" fn Order(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategory_Impl::Order(this) { Ok(ok__) => { @@ -534,10 +414,7 @@ impl ICategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICategory_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategory_Impl::Parent(this) { Ok(ok__) => { @@ -547,10 +424,7 @@ impl ICategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICategory_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategory_Impl::Type(this) { Ok(ok__) => { @@ -560,10 +434,7 @@ impl ICategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICategory_Impl, - { + unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategory_Impl::Updates(this) { Ok(ok__) => { @@ -600,14 +471,8 @@ pub trait ICategoryCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ICategoryCollection {} #[cfg(feature = "Win32_System_Com")] impl ICategoryCollection_Vtbl { - pub const fn new() -> ICategoryCollection_Vtbl - where - Identity: ICategoryCollection_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICategoryCollection_Impl, - { + pub const fn new() -> ICategoryCollection_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategoryCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -617,10 +482,7 @@ impl ICategoryCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICategoryCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategoryCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -630,10 +492,7 @@ impl ICategoryCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: ICategoryCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategoryCollection_Impl::Count(this) { Ok(ok__) => { @@ -655,21 +514,15 @@ impl ICategoryCollection_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDownloadCompletedCallback_Impl: Sized { +pub trait IDownloadCompletedCallback_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self, downloadjob: Option<&IDownloadJob>, callbackargs: Option<&IDownloadCompletedCallbackArgs>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IDownloadCompletedCallback {} #[cfg(feature = "Win32_System_Com")] impl IDownloadCompletedCallback_Vtbl { - pub const fn new() -> IDownloadCompletedCallback_Vtbl - where - Identity: IDownloadCompletedCallback_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, downloadjob: *mut core::ffi::c_void, callbackargs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDownloadCompletedCallback_Impl, - { + pub const fn new() -> IDownloadCompletedCallback_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, downloadjob: *mut core::ffi::c_void, callbackargs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDownloadCompletedCallback_Impl::Invoke(this, windows_core::from_raw_borrowed(&downloadjob), windows_core::from_raw_borrowed(&callbackargs)).into() } @@ -685,10 +538,7 @@ pub trait IDownloadCompletedCallbackArgs_Impl: Sized + super::Com::IDispatch_Imp impl windows_core::RuntimeName for IDownloadCompletedCallbackArgs {} #[cfg(feature = "Win32_System_Com")] impl IDownloadCompletedCallbackArgs_Vtbl { - pub const fn new() -> IDownloadCompletedCallbackArgs_Vtbl - where - Identity: IDownloadCompletedCallbackArgs_Impl, - { + pub const fn new() -> IDownloadCompletedCallbackArgs_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -708,14 +558,8 @@ pub trait IDownloadJob_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDownloadJob {} #[cfg(feature = "Win32_System_Com")] impl IDownloadJob_Vtbl { - pub const fn new() -> IDownloadJob_Vtbl - where - Identity: IDownloadJob_Impl, - { - unsafe extern "system" fn AsyncState(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDownloadJob_Impl, - { + pub const fn new() -> IDownloadJob_Vtbl { + unsafe extern "system" fn AsyncState(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadJob_Impl::AsyncState(this) { Ok(ok__) => { @@ -725,10 +569,7 @@ impl IDownloadJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCompleted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IDownloadJob_Impl, - { + unsafe extern "system" fn IsCompleted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadJob_Impl::IsCompleted(this) { Ok(ok__) => { @@ -738,10 +579,7 @@ impl IDownloadJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDownloadJob_Impl, - { + unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadJob_Impl::Updates(this) { Ok(ok__) => { @@ -751,17 +589,11 @@ impl IDownloadJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CleanUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDownloadJob_Impl, - { + unsafe extern "system" fn CleanUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDownloadJob_Impl::CleanUp(this).into() } - unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDownloadJob_Impl, - { + unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadJob_Impl::GetProgress(this) { Ok(ok__) => { @@ -771,10 +603,7 @@ impl IDownloadJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDownloadJob_Impl, - { + unsafe extern "system" fn RequestAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDownloadJob_Impl::RequestAbort(this).into() } @@ -808,14 +637,8 @@ pub trait IDownloadProgress_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDownloadProgress {} #[cfg(feature = "Win32_System_Com")] impl IDownloadProgress_Vtbl { - pub const fn new() -> IDownloadProgress_Vtbl - where - Identity: IDownloadProgress_Impl, - { - unsafe extern "system" fn CurrentUpdateBytesDownloaded(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT - where - Identity: IDownloadProgress_Impl, - { + pub const fn new() -> IDownloadProgress_Vtbl { + unsafe extern "system" fn CurrentUpdateBytesDownloaded(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadProgress_Impl::CurrentUpdateBytesDownloaded(this) { Ok(ok__) => { @@ -825,10 +648,7 @@ impl IDownloadProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentUpdateBytesToDownload(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT - where - Identity: IDownloadProgress_Impl, - { + unsafe extern "system" fn CurrentUpdateBytesToDownload(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadProgress_Impl::CurrentUpdateBytesToDownload(this) { Ok(ok__) => { @@ -838,10 +658,7 @@ impl IDownloadProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentUpdateIndex(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IDownloadProgress_Impl, - { + unsafe extern "system" fn CurrentUpdateIndex(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadProgress_Impl::CurrentUpdateIndex(this) { Ok(ok__) => { @@ -851,10 +668,7 @@ impl IDownloadProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PercentComplete(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IDownloadProgress_Impl, - { + unsafe extern "system" fn PercentComplete(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadProgress_Impl::PercentComplete(this) { Ok(ok__) => { @@ -864,10 +678,7 @@ impl IDownloadProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalBytesDownloaded(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT - where - Identity: IDownloadProgress_Impl, - { + unsafe extern "system" fn TotalBytesDownloaded(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadProgress_Impl::TotalBytesDownloaded(this) { Ok(ok__) => { @@ -877,10 +688,7 @@ impl IDownloadProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TotalBytesToDownload(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT - where - Identity: IDownloadProgress_Impl, - { + unsafe extern "system" fn TotalBytesToDownload(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadProgress_Impl::TotalBytesToDownload(this) { Ok(ok__) => { @@ -890,10 +698,7 @@ impl IDownloadProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUpdateResult(this: *mut core::ffi::c_void, updateindex: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDownloadProgress_Impl, - { + unsafe extern "system" fn GetUpdateResult(this: *mut core::ffi::c_void, updateindex: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadProgress_Impl::GetUpdateResult(this, core::mem::transmute_copy(&updateindex)) { Ok(ok__) => { @@ -903,10 +708,7 @@ impl IDownloadProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentUpdateDownloadPhase(this: *mut core::ffi::c_void, retval: *mut DownloadPhase) -> windows_core::HRESULT - where - Identity: IDownloadProgress_Impl, - { + unsafe extern "system" fn CurrentUpdateDownloadPhase(this: *mut core::ffi::c_void, retval: *mut DownloadPhase) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadProgress_Impl::CurrentUpdateDownloadPhase(this) { Ok(ok__) => { @@ -916,10 +718,7 @@ impl IDownloadProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentUpdatePercentComplete(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IDownloadProgress_Impl, - { + unsafe extern "system" fn CurrentUpdatePercentComplete(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadProgress_Impl::CurrentUpdatePercentComplete(this) { Ok(ok__) => { @@ -947,21 +746,15 @@ impl IDownloadProgress_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDownloadProgressChangedCallback_Impl: Sized { +pub trait IDownloadProgressChangedCallback_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self, downloadjob: Option<&IDownloadJob>, callbackargs: Option<&IDownloadProgressChangedCallbackArgs>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IDownloadProgressChangedCallback {} #[cfg(feature = "Win32_System_Com")] impl IDownloadProgressChangedCallback_Vtbl { - pub const fn new() -> IDownloadProgressChangedCallback_Vtbl - where - Identity: IDownloadProgressChangedCallback_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, downloadjob: *mut core::ffi::c_void, callbackargs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDownloadProgressChangedCallback_Impl, - { + pub const fn new() -> IDownloadProgressChangedCallback_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, downloadjob: *mut core::ffi::c_void, callbackargs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDownloadProgressChangedCallback_Impl::Invoke(this, windows_core::from_raw_borrowed(&downloadjob), windows_core::from_raw_borrowed(&callbackargs)).into() } @@ -979,14 +772,8 @@ pub trait IDownloadProgressChangedCallbackArgs_Impl: Sized + super::Com::IDispat impl windows_core::RuntimeName for IDownloadProgressChangedCallbackArgs {} #[cfg(feature = "Win32_System_Com")] impl IDownloadProgressChangedCallbackArgs_Vtbl { - pub const fn new() -> IDownloadProgressChangedCallbackArgs_Vtbl - where - Identity: IDownloadProgressChangedCallbackArgs_Impl, - { - unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDownloadProgressChangedCallbackArgs_Impl, - { + pub const fn new() -> IDownloadProgressChangedCallbackArgs_Vtbl { + unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadProgressChangedCallbackArgs_Impl::Progress(this) { Ok(ok__) => { @@ -1012,14 +799,8 @@ pub trait IDownloadResult_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IDownloadResult {} #[cfg(feature = "Win32_System_Com")] impl IDownloadResult_Vtbl { - pub const fn new() -> IDownloadResult_Vtbl - where - Identity: IDownloadResult_Impl, - { - unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IDownloadResult_Impl, - { + pub const fn new() -> IDownloadResult_Vtbl { + unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadResult_Impl::HResult(this) { Ok(ok__) => { @@ -1029,10 +810,7 @@ impl IDownloadResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT - where - Identity: IDownloadResult_Impl, - { + unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadResult_Impl::ResultCode(this) { Ok(ok__) => { @@ -1042,10 +820,7 @@ impl IDownloadResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUpdateResult(this: *mut core::ffi::c_void, updateindex: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDownloadResult_Impl, - { + unsafe extern "system" fn GetUpdateResult(this: *mut core::ffi::c_void, updateindex: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDownloadResult_Impl::GetUpdateResult(this, core::mem::transmute_copy(&updateindex)) { Ok(ok__) => { @@ -1077,14 +852,8 @@ pub trait IImageInformation_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IImageInformation {} #[cfg(feature = "Win32_System_Com")] impl IImageInformation_Vtbl { - pub const fn new() -> IImageInformation_Vtbl - where - Identity: IImageInformation_Impl, - { - unsafe extern "system" fn AltText(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IImageInformation_Impl, - { + pub const fn new() -> IImageInformation_Vtbl { + unsafe extern "system" fn AltText(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageInformation_Impl::AltText(this) { Ok(ok__) => { @@ -1094,10 +863,7 @@ impl IImageInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Height(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IImageInformation_Impl, - { + unsafe extern "system" fn Height(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageInformation_Impl::Height(this) { Ok(ok__) => { @@ -1107,10 +873,7 @@ impl IImageInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Source(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IImageInformation_Impl, - { + unsafe extern "system" fn Source(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageInformation_Impl::Source(this) { Ok(ok__) => { @@ -1120,10 +883,7 @@ impl IImageInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IImageInformation_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageInformation_Impl::Width(this) { Ok(ok__) => { @@ -1153,14 +913,8 @@ pub trait IInstallationAgent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInstallationAgent {} #[cfg(feature = "Win32_System_Com")] impl IInstallationAgent_Vtbl { - pub const fn new() -> IInstallationAgent_Vtbl - where - Identity: IInstallationAgent_Impl, - { - unsafe extern "system" fn RecordInstallationResult(this: *mut core::ffi::c_void, installationresultcookie: core::mem::MaybeUninit, hresult: i32, extendedreportingdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInstallationAgent_Impl, - { + pub const fn new() -> IInstallationAgent_Vtbl { + unsafe extern "system" fn RecordInstallationResult(this: *mut core::ffi::c_void, installationresultcookie: core::mem::MaybeUninit, hresult: i32, extendedreportingdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInstallationAgent_Impl::RecordInstallationResult(this, core::mem::transmute(&installationresultcookie), core::mem::transmute_copy(&hresult), windows_core::from_raw_borrowed(&extendedreportingdata)).into() } @@ -1181,14 +935,8 @@ pub trait IInstallationBehavior_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInstallationBehavior {} #[cfg(feature = "Win32_System_Com")] impl IInstallationBehavior_Vtbl { - pub const fn new() -> IInstallationBehavior_Vtbl - where - Identity: IInstallationBehavior_Impl, - { - unsafe extern "system" fn CanRequestUserInput(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInstallationBehavior_Impl, - { + pub const fn new() -> IInstallationBehavior_Vtbl { + unsafe extern "system" fn CanRequestUserInput(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationBehavior_Impl::CanRequestUserInput(this) { Ok(ok__) => { @@ -1198,10 +946,7 @@ impl IInstallationBehavior_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Impact(this: *mut core::ffi::c_void, retval: *mut InstallationImpact) -> windows_core::HRESULT - where - Identity: IInstallationBehavior_Impl, - { + unsafe extern "system" fn Impact(this: *mut core::ffi::c_void, retval: *mut InstallationImpact) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationBehavior_Impl::Impact(this) { Ok(ok__) => { @@ -1211,10 +956,7 @@ impl IInstallationBehavior_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RebootBehavior(this: *mut core::ffi::c_void, retval: *mut InstallationRebootBehavior) -> windows_core::HRESULT - where - Identity: IInstallationBehavior_Impl, - { + unsafe extern "system" fn RebootBehavior(this: *mut core::ffi::c_void, retval: *mut InstallationRebootBehavior) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationBehavior_Impl::RebootBehavior(this) { Ok(ok__) => { @@ -1224,10 +966,7 @@ impl IInstallationBehavior_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequiresNetworkConnectivity(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInstallationBehavior_Impl, - { + unsafe extern "system" fn RequiresNetworkConnectivity(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationBehavior_Impl::RequiresNetworkConnectivity(this) { Ok(ok__) => { @@ -1250,21 +989,15 @@ impl IInstallationBehavior_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IInstallationCompletedCallback_Impl: Sized { +pub trait IInstallationCompletedCallback_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self, installationjob: Option<&IInstallationJob>, callbackargs: Option<&IInstallationCompletedCallbackArgs>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IInstallationCompletedCallback {} #[cfg(feature = "Win32_System_Com")] impl IInstallationCompletedCallback_Vtbl { - pub const fn new() -> IInstallationCompletedCallback_Vtbl - where - Identity: IInstallationCompletedCallback_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, installationjob: *mut core::ffi::c_void, callbackargs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInstallationCompletedCallback_Impl, - { + pub const fn new() -> IInstallationCompletedCallback_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, installationjob: *mut core::ffi::c_void, callbackargs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInstallationCompletedCallback_Impl::Invoke(this, windows_core::from_raw_borrowed(&installationjob), windows_core::from_raw_borrowed(&callbackargs)).into() } @@ -1280,10 +1013,7 @@ pub trait IInstallationCompletedCallbackArgs_Impl: Sized + super::Com::IDispatch impl windows_core::RuntimeName for IInstallationCompletedCallbackArgs {} #[cfg(feature = "Win32_System_Com")] impl IInstallationCompletedCallbackArgs_Vtbl { - pub const fn new() -> IInstallationCompletedCallbackArgs_Vtbl - where - Identity: IInstallationCompletedCallbackArgs_Impl, - { + pub const fn new() -> IInstallationCompletedCallbackArgs_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1303,14 +1033,8 @@ pub trait IInstallationJob_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInstallationJob {} #[cfg(feature = "Win32_System_Com")] impl IInstallationJob_Vtbl { - pub const fn new() -> IInstallationJob_Vtbl - where - Identity: IInstallationJob_Impl, - { - unsafe extern "system" fn AsyncState(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInstallationJob_Impl, - { + pub const fn new() -> IInstallationJob_Vtbl { + unsafe extern "system" fn AsyncState(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationJob_Impl::AsyncState(this) { Ok(ok__) => { @@ -1320,10 +1044,7 @@ impl IInstallationJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCompleted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInstallationJob_Impl, - { + unsafe extern "system" fn IsCompleted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationJob_Impl::IsCompleted(this) { Ok(ok__) => { @@ -1333,10 +1054,7 @@ impl IInstallationJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInstallationJob_Impl, - { + unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationJob_Impl::Updates(this) { Ok(ok__) => { @@ -1346,17 +1064,11 @@ impl IInstallationJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CleanUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInstallationJob_Impl, - { + unsafe extern "system" fn CleanUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInstallationJob_Impl::CleanUp(this).into() } - unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInstallationJob_Impl, - { + unsafe extern "system" fn GetProgress(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationJob_Impl::GetProgress(this) { Ok(ok__) => { @@ -1366,10 +1078,7 @@ impl IInstallationJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInstallationJob_Impl, - { + unsafe extern "system" fn RequestAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInstallationJob_Impl::RequestAbort(this).into() } @@ -1398,14 +1107,8 @@ pub trait IInstallationProgress_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInstallationProgress {} #[cfg(feature = "Win32_System_Com")] impl IInstallationProgress_Vtbl { - pub const fn new() -> IInstallationProgress_Vtbl - where - Identity: IInstallationProgress_Impl, - { - unsafe extern "system" fn CurrentUpdateIndex(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IInstallationProgress_Impl, - { + pub const fn new() -> IInstallationProgress_Vtbl { + unsafe extern "system" fn CurrentUpdateIndex(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationProgress_Impl::CurrentUpdateIndex(this) { Ok(ok__) => { @@ -1415,10 +1118,7 @@ impl IInstallationProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentUpdatePercentComplete(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IInstallationProgress_Impl, - { + unsafe extern "system" fn CurrentUpdatePercentComplete(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationProgress_Impl::CurrentUpdatePercentComplete(this) { Ok(ok__) => { @@ -1428,10 +1128,7 @@ impl IInstallationProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PercentComplete(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IInstallationProgress_Impl, - { + unsafe extern "system" fn PercentComplete(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationProgress_Impl::PercentComplete(this) { Ok(ok__) => { @@ -1441,10 +1138,7 @@ impl IInstallationProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUpdateResult(this: *mut core::ffi::c_void, updateindex: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInstallationProgress_Impl, - { + unsafe extern "system" fn GetUpdateResult(this: *mut core::ffi::c_void, updateindex: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationProgress_Impl::GetUpdateResult(this, core::mem::transmute_copy(&updateindex)) { Ok(ok__) => { @@ -1467,21 +1161,15 @@ impl IInstallationProgress_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IInstallationProgressChangedCallback_Impl: Sized { +pub trait IInstallationProgressChangedCallback_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self, installationjob: Option<&IInstallationJob>, callbackargs: Option<&IInstallationProgressChangedCallbackArgs>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IInstallationProgressChangedCallback {} #[cfg(feature = "Win32_System_Com")] impl IInstallationProgressChangedCallback_Vtbl { - pub const fn new() -> IInstallationProgressChangedCallback_Vtbl - where - Identity: IInstallationProgressChangedCallback_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, installationjob: *mut core::ffi::c_void, callbackargs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInstallationProgressChangedCallback_Impl, - { + pub const fn new() -> IInstallationProgressChangedCallback_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, installationjob: *mut core::ffi::c_void, callbackargs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInstallationProgressChangedCallback_Impl::Invoke(this, windows_core::from_raw_borrowed(&installationjob), windows_core::from_raw_borrowed(&callbackargs)).into() } @@ -1499,14 +1187,8 @@ pub trait IInstallationProgressChangedCallbackArgs_Impl: Sized + super::Com::IDi impl windows_core::RuntimeName for IInstallationProgressChangedCallbackArgs {} #[cfg(feature = "Win32_System_Com")] impl IInstallationProgressChangedCallbackArgs_Vtbl { - pub const fn new() -> IInstallationProgressChangedCallbackArgs_Vtbl - where - Identity: IInstallationProgressChangedCallbackArgs_Impl, - { - unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInstallationProgressChangedCallbackArgs_Impl, - { + pub const fn new() -> IInstallationProgressChangedCallbackArgs_Vtbl { + unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationProgressChangedCallbackArgs_Impl::Progress(this) { Ok(ok__) => { @@ -1533,14 +1215,8 @@ pub trait IInstallationResult_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInstallationResult {} #[cfg(feature = "Win32_System_Com")] impl IInstallationResult_Vtbl { - pub const fn new() -> IInstallationResult_Vtbl - where - Identity: IInstallationResult_Impl, - { - unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IInstallationResult_Impl, - { + pub const fn new() -> IInstallationResult_Vtbl { + unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationResult_Impl::HResult(this) { Ok(ok__) => { @@ -1550,10 +1226,7 @@ impl IInstallationResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RebootRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInstallationResult_Impl, - { + unsafe extern "system" fn RebootRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationResult_Impl::RebootRequired(this) { Ok(ok__) => { @@ -1563,10 +1236,7 @@ impl IInstallationResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT - where - Identity: IInstallationResult_Impl, - { + unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationResult_Impl::ResultCode(this) { Ok(ok__) => { @@ -1576,10 +1246,7 @@ impl IInstallationResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUpdateResult(this: *mut core::ffi::c_void, updateindex: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInstallationResult_Impl, - { + unsafe extern "system" fn GetUpdateResult(this: *mut core::ffi::c_void, updateindex: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInstallationResult_Impl::GetUpdateResult(this, core::mem::transmute_copy(&updateindex)) { Ok(ok__) => { @@ -1609,14 +1276,8 @@ pub trait IInvalidProductLicenseException_Impl: Sized + IUpdateException_Impl { impl windows_core::RuntimeName for IInvalidProductLicenseException {} #[cfg(feature = "Win32_System_Com")] impl IInvalidProductLicenseException_Vtbl { - pub const fn new() -> IInvalidProductLicenseException_Vtbl - where - Identity: IInvalidProductLicenseException_Impl, - { - unsafe extern "system" fn Product(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInvalidProductLicenseException_Impl, - { + pub const fn new() -> IInvalidProductLicenseException_Vtbl { + unsafe extern "system" fn Product(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInvalidProductLicenseException_Impl::Product(this) { Ok(ok__) => { @@ -1633,21 +1294,15 @@ impl IInvalidProductLicenseException_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISearchCompletedCallback_Impl: Sized { +pub trait ISearchCompletedCallback_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self, searchjob: Option<&ISearchJob>, callbackargs: Option<&ISearchCompletedCallbackArgs>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ISearchCompletedCallback {} #[cfg(feature = "Win32_System_Com")] impl ISearchCompletedCallback_Vtbl { - pub const fn new() -> ISearchCompletedCallback_Vtbl - where - Identity: ISearchCompletedCallback_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, searchjob: *mut core::ffi::c_void, callbackargs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchCompletedCallback_Impl, - { + pub const fn new() -> ISearchCompletedCallback_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, searchjob: *mut core::ffi::c_void, callbackargs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCompletedCallback_Impl::Invoke(this, windows_core::from_raw_borrowed(&searchjob), windows_core::from_raw_borrowed(&callbackargs)).into() } @@ -1663,10 +1318,7 @@ pub trait ISearchCompletedCallbackArgs_Impl: Sized + super::Com::IDispatch_Impl impl windows_core::RuntimeName for ISearchCompletedCallbackArgs {} #[cfg(feature = "Win32_System_Com")] impl ISearchCompletedCallbackArgs_Vtbl { - pub const fn new() -> ISearchCompletedCallbackArgs_Vtbl - where - Identity: ISearchCompletedCallbackArgs_Impl, - { + pub const fn new() -> ISearchCompletedCallbackArgs_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -1684,14 +1336,8 @@ pub trait ISearchJob_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISearchJob {} #[cfg(feature = "Win32_System_Com")] impl ISearchJob_Vtbl { - pub const fn new() -> ISearchJob_Vtbl - where - Identity: ISearchJob_Impl, - { - unsafe extern "system" fn AsyncState(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISearchJob_Impl, - { + pub const fn new() -> ISearchJob_Vtbl { + unsafe extern "system" fn AsyncState(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchJob_Impl::AsyncState(this) { Ok(ok__) => { @@ -1701,10 +1347,7 @@ impl ISearchJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsCompleted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISearchJob_Impl, - { + unsafe extern "system" fn IsCompleted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchJob_Impl::IsCompleted(this) { Ok(ok__) => { @@ -1714,17 +1357,11 @@ impl ISearchJob_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CleanUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchJob_Impl, - { + unsafe extern "system" fn CleanUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchJob_Impl::CleanUp(this).into() } - unsafe extern "system" fn RequestAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchJob_Impl, - { + unsafe extern "system" fn RequestAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchJob_Impl::RequestAbort(this).into() } @@ -1751,14 +1388,8 @@ pub trait ISearchResult_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISearchResult {} #[cfg(feature = "Win32_System_Com")] impl ISearchResult_Vtbl { - pub const fn new() -> ISearchResult_Vtbl - where - Identity: ISearchResult_Impl, - { - unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT - where - Identity: ISearchResult_Impl, - { + pub const fn new() -> ISearchResult_Vtbl { + unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchResult_Impl::ResultCode(this) { Ok(ok__) => { @@ -1768,10 +1399,7 @@ impl ISearchResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RootCategories(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchResult_Impl, - { + unsafe extern "system" fn RootCategories(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchResult_Impl::RootCategories(this) { Ok(ok__) => { @@ -1781,10 +1409,7 @@ impl ISearchResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchResult_Impl, - { + unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchResult_Impl::Updates(this) { Ok(ok__) => { @@ -1794,10 +1419,7 @@ impl ISearchResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Warnings(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchResult_Impl, - { + unsafe extern "system" fn Warnings(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchResult_Impl::Warnings(this) { Ok(ok__) => { @@ -1836,14 +1458,8 @@ pub trait IStringCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IStringCollection {} #[cfg(feature = "Win32_System_Com")] impl IStringCollection_Vtbl { - pub const fn new() -> IStringCollection_Vtbl - where - Identity: IStringCollection_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStringCollection_Impl, - { + pub const fn new() -> IStringCollection_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1853,17 +1469,11 @@ impl IStringCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Item(this: *mut core::ffi::c_void, index: i32, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStringCollection_Impl, - { + unsafe extern "system" fn put_Item(this: *mut core::ffi::c_void, index: i32, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStringCollection_Impl::put_Item(this, core::mem::transmute_copy(&index), core::mem::transmute(&value)).into() } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStringCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1873,10 +1483,7 @@ impl IStringCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IStringCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringCollection_Impl::Count(this) { Ok(ok__) => { @@ -1886,10 +1493,7 @@ impl IStringCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IStringCollection_Impl, - { + unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringCollection_Impl::ReadOnly(this) { Ok(ok__) => { @@ -1899,10 +1503,7 @@ impl IStringCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IStringCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringCollection_Impl::Add(this, core::mem::transmute(&value)) { Ok(ok__) => { @@ -1912,17 +1513,11 @@ impl IStringCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStringCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStringCollection_Impl::Clear(this).into() } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStringCollection_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStringCollection_Impl::Copy(this) { Ok(ok__) => { @@ -1932,17 +1527,11 @@ impl IStringCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, index: i32, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStringCollection_Impl, - { + unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, index: i32, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStringCollection_Impl::Insert(this, core::mem::transmute_copy(&index), core::mem::transmute(&value)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IStringCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStringCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } @@ -1973,14 +1562,8 @@ pub trait ISystemInformation_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISystemInformation {} #[cfg(feature = "Win32_System_Com")] impl ISystemInformation_Vtbl { - pub const fn new() -> ISystemInformation_Vtbl - where - Identity: ISystemInformation_Impl, - { - unsafe extern "system" fn OemHardwareSupportLink(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISystemInformation_Impl, - { + pub const fn new() -> ISystemInformation_Vtbl { + unsafe extern "system" fn OemHardwareSupportLink(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemInformation_Impl::OemHardwareSupportLink(this) { Ok(ok__) => { @@ -1990,10 +1573,7 @@ impl ISystemInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RebootRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISystemInformation_Impl, - { + unsafe extern "system" fn RebootRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISystemInformation_Impl::RebootRequired(this) { Ok(ok__) => { @@ -2065,14 +1645,8 @@ pub trait IUpdate_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdate {} #[cfg(feature = "Win32_System_Com")] impl IUpdate_Vtbl { - pub const fn new() -> IUpdate_Vtbl - where - Identity: IUpdate_Impl, - { - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + pub const fn new() -> IUpdate_Vtbl { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::Title(this) { Ok(ok__) => { @@ -2082,10 +1656,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AutoSelectOnWebSites(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn AutoSelectOnWebSites(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::AutoSelectOnWebSites(this) { Ok(ok__) => { @@ -2095,10 +1666,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BundledUpdates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn BundledUpdates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::BundledUpdates(this) { Ok(ok__) => { @@ -2108,10 +1676,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanRequireSource(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn CanRequireSource(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::CanRequireSource(this) { Ok(ok__) => { @@ -2121,10 +1686,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Categories(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn Categories(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::Categories(this) { Ok(ok__) => { @@ -2134,10 +1696,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Deadline(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn Deadline(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::Deadline(this) { Ok(ok__) => { @@ -2147,10 +1706,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeltaCompressedContentAvailable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn DeltaCompressedContentAvailable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::DeltaCompressedContentAvailable(this) { Ok(ok__) => { @@ -2160,10 +1716,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeltaCompressedContentPreferred(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn DeltaCompressedContentPreferred(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::DeltaCompressedContentPreferred(this) { Ok(ok__) => { @@ -2173,10 +1726,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::Description(this) { Ok(ok__) => { @@ -2186,10 +1736,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EulaAccepted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn EulaAccepted(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::EulaAccepted(this) { Ok(ok__) => { @@ -2199,10 +1746,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EulaText(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn EulaText(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::EulaText(this) { Ok(ok__) => { @@ -2212,10 +1756,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HandlerID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn HandlerID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::HandlerID(this) { Ok(ok__) => { @@ -2225,10 +1766,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Identity(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn Identity(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::Identity(this) { Ok(ok__) => { @@ -2238,10 +1776,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Image(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn Image(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::Image(this) { Ok(ok__) => { @@ -2251,10 +1786,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallationBehavior(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn InstallationBehavior(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::InstallationBehavior(this) { Ok(ok__) => { @@ -2264,10 +1796,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsBeta(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn IsBeta(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::IsBeta(this) { Ok(ok__) => { @@ -2277,10 +1806,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsDownloaded(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn IsDownloaded(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::IsDownloaded(this) { Ok(ok__) => { @@ -2290,10 +1816,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsHidden(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn IsHidden(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::IsHidden(this) { Ok(ok__) => { @@ -2303,17 +1826,11 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsHidden(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn SetIsHidden(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdate_Impl::SetIsHidden(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn IsInstalled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn IsInstalled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::IsInstalled(this) { Ok(ok__) => { @@ -2323,10 +1840,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsMandatory(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn IsMandatory(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::IsMandatory(this) { Ok(ok__) => { @@ -2336,10 +1850,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsUninstallable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn IsUninstallable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::IsUninstallable(this) { Ok(ok__) => { @@ -2349,10 +1860,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Languages(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn Languages(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::Languages(this) { Ok(ok__) => { @@ -2362,10 +1870,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastDeploymentChangeTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn LastDeploymentChangeTime(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::LastDeploymentChangeTime(this) { Ok(ok__) => { @@ -2375,10 +1880,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaxDownloadSize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn MaxDownloadSize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::MaxDownloadSize(this) { Ok(ok__) => { @@ -2388,10 +1890,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinDownloadSize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn MinDownloadSize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::DECIMAL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::MinDownloadSize(this) { Ok(ok__) => { @@ -2401,10 +1900,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoreInfoUrls(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn MoreInfoUrls(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::MoreInfoUrls(this) { Ok(ok__) => { @@ -2414,10 +1910,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MsrcSeverity(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn MsrcSeverity(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::MsrcSeverity(this) { Ok(ok__) => { @@ -2427,10 +1920,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecommendedCpuSpeed(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn RecommendedCpuSpeed(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::RecommendedCpuSpeed(this) { Ok(ok__) => { @@ -2440,10 +1930,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecommendedHardDiskSpace(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn RecommendedHardDiskSpace(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::RecommendedHardDiskSpace(this) { Ok(ok__) => { @@ -2453,10 +1940,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecommendedMemory(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn RecommendedMemory(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::RecommendedMemory(this) { Ok(ok__) => { @@ -2466,10 +1950,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseNotes(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn ReleaseNotes(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::ReleaseNotes(this) { Ok(ok__) => { @@ -2479,10 +1960,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SecurityBulletinIDs(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn SecurityBulletinIDs(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::SecurityBulletinIDs(this) { Ok(ok__) => { @@ -2492,10 +1970,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupersededUpdateIDs(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn SupersededUpdateIDs(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::SupersededUpdateIDs(this) { Ok(ok__) => { @@ -2505,10 +1980,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportUrl(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn SupportUrl(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::SupportUrl(this) { Ok(ok__) => { @@ -2518,10 +1990,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, retval: *mut UpdateType) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, retval: *mut UpdateType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::Type(this) { Ok(ok__) => { @@ -2531,10 +2000,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UninstallationNotes(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn UninstallationNotes(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::UninstallationNotes(this) { Ok(ok__) => { @@ -2544,10 +2010,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UninstallationBehavior(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn UninstallationBehavior(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::UninstallationBehavior(this) { Ok(ok__) => { @@ -2557,10 +2020,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UninstallationSteps(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn UninstallationSteps(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::UninstallationSteps(this) { Ok(ok__) => { @@ -2570,10 +2030,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KBArticleIDs(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn KBArticleIDs(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::KBArticleIDs(this) { Ok(ok__) => { @@ -2583,17 +2040,11 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AcceptEula(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn AcceptEula(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdate_Impl::AcceptEula(this).into() } - unsafe extern "system" fn DeploymentAction(this: *mut core::ffi::c_void, retval: *mut DeploymentAction) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn DeploymentAction(this: *mut core::ffi::c_void, retval: *mut DeploymentAction) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::DeploymentAction(this) { Ok(ok__) => { @@ -2603,17 +2054,11 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyFromCache(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, toextractcabfiles: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn CopyFromCache(this: *mut core::ffi::c_void, path: core::mem::MaybeUninit, toextractcabfiles: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdate_Impl::CopyFromCache(this, core::mem::transmute(&path), core::mem::transmute_copy(&toextractcabfiles)).into() } - unsafe extern "system" fn DownloadPriority(this: *mut core::ffi::c_void, retval: *mut DownloadPriority) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn DownloadPriority(this: *mut core::ffi::c_void, retval: *mut DownloadPriority) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::DownloadPriority(this) { Ok(ok__) => { @@ -2623,10 +2068,7 @@ impl IUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DownloadContents(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate_Impl, - { + unsafe extern "system" fn DownloadContents(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate_Impl::DownloadContents(this) { Ok(ok__) => { @@ -2700,14 +2142,8 @@ pub trait IUpdate2_Impl: Sized + IUpdate_Impl { impl windows_core::RuntimeName for IUpdate2 {} #[cfg(feature = "Win32_System_Com")] impl IUpdate2_Vtbl { - pub const fn new() -> IUpdate2_Vtbl - where - Identity: IUpdate2_Impl, - { - unsafe extern "system" fn RebootRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate2_Impl, - { + pub const fn new() -> IUpdate2_Vtbl { + unsafe extern "system" fn RebootRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate2_Impl::RebootRequired(this) { Ok(ok__) => { @@ -2717,10 +2153,7 @@ impl IUpdate2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPresent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate2_Impl, - { + unsafe extern "system" fn IsPresent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate2_Impl::IsPresent(this) { Ok(ok__) => { @@ -2730,10 +2163,7 @@ impl IUpdate2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CveIDs(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate2_Impl, - { + unsafe extern "system" fn CveIDs(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate2_Impl::CveIDs(this) { Ok(ok__) => { @@ -2743,10 +2173,7 @@ impl IUpdate2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyToCache(this: *mut core::ffi::c_void, pfiles: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdate2_Impl, - { + unsafe extern "system" fn CopyToCache(this: *mut core::ffi::c_void, pfiles: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdate2_Impl::CopyToCache(this, windows_core::from_raw_borrowed(&pfiles)).into() } @@ -2770,14 +2197,8 @@ pub trait IUpdate3_Impl: Sized + IUpdate2_Impl { impl windows_core::RuntimeName for IUpdate3 {} #[cfg(feature = "Win32_System_Com")] impl IUpdate3_Vtbl { - pub const fn new() -> IUpdate3_Vtbl - where - Identity: IUpdate3_Impl, - { - unsafe extern "system" fn BrowseOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate3_Impl, - { + pub const fn new() -> IUpdate3_Vtbl { + unsafe extern "system" fn BrowseOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate3_Impl::BrowseOnly(this) { Ok(ok__) => { @@ -2801,14 +2222,8 @@ pub trait IUpdate4_Impl: Sized + IUpdate3_Impl { impl windows_core::RuntimeName for IUpdate4 {} #[cfg(feature = "Win32_System_Com")] impl IUpdate4_Vtbl { - pub const fn new() -> IUpdate4_Vtbl - where - Identity: IUpdate4_Impl, - { - unsafe extern "system" fn PerUser(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdate4_Impl, - { + pub const fn new() -> IUpdate4_Vtbl { + unsafe extern "system" fn PerUser(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate4_Impl::PerUser(this) { Ok(ok__) => { @@ -2833,14 +2248,8 @@ pub trait IUpdate5_Impl: Sized + IUpdate4_Impl { impl windows_core::RuntimeName for IUpdate5 {} #[cfg(feature = "Win32_System_Com")] impl IUpdate5_Vtbl { - pub const fn new() -> IUpdate5_Vtbl - where - Identity: IUpdate5_Impl, - { - unsafe extern "system" fn AutoSelection(this: *mut core::ffi::c_void, retval: *mut AutoSelectionMode) -> windows_core::HRESULT - where - Identity: IUpdate5_Impl, - { + pub const fn new() -> IUpdate5_Vtbl { + unsafe extern "system" fn AutoSelection(this: *mut core::ffi::c_void, retval: *mut AutoSelectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate5_Impl::AutoSelection(this) { Ok(ok__) => { @@ -2850,10 +2259,7 @@ impl IUpdate5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AutoDownload(this: *mut core::ffi::c_void, retval: *mut AutoDownloadMode) -> windows_core::HRESULT - where - Identity: IUpdate5_Impl, - { + unsafe extern "system" fn AutoDownload(this: *mut core::ffi::c_void, retval: *mut AutoDownloadMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdate5_Impl::AutoDownload(this) { Ok(ok__) => { @@ -2890,14 +2296,8 @@ pub trait IUpdateCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateCollection {} #[cfg(feature = "Win32_System_Com")] impl IUpdateCollection_Vtbl { - pub const fn new() -> IUpdateCollection_Vtbl - where - Identity: IUpdateCollection_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateCollection_Impl, - { + pub const fn new() -> IUpdateCollection_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -2907,17 +2307,11 @@ impl IUpdateCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Item(this: *mut core::ffi::c_void, index: i32, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateCollection_Impl, - { + unsafe extern "system" fn put_Item(this: *mut core::ffi::c_void, index: i32, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateCollection_Impl::put_Item(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2927,10 +2321,7 @@ impl IUpdateCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateCollection_Impl::Count(this) { Ok(ok__) => { @@ -2940,10 +2331,7 @@ impl IUpdateCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateCollection_Impl, - { + unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateCollection_Impl::ReadOnly(this) { Ok(ok__) => { @@ -2953,10 +2341,7 @@ impl IUpdateCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateCollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateCollection_Impl::Add(this, windows_core::from_raw_borrowed(&value)) { Ok(ok__) => { @@ -2966,17 +2351,11 @@ impl IUpdateCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateCollection_Impl::Clear(this).into() } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateCollection_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateCollection_Impl::Copy(this) { Ok(ok__) => { @@ -2986,17 +2365,11 @@ impl IUpdateCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, index: i32, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateCollection_Impl, - { + unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, index: i32, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateCollection_Impl::Insert(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IUpdateCollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateCollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } @@ -3026,14 +2399,8 @@ pub trait IUpdateDownloadContent_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateDownloadContent {} #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloadContent_Vtbl { - pub const fn new() -> IUpdateDownloadContent_Vtbl - where - Identity: IUpdateDownloadContent_Impl, - { - unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateDownloadContent_Impl, - { + pub const fn new() -> IUpdateDownloadContent_Vtbl { + unsafe extern "system" fn DownloadUrl(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloadContent_Impl::DownloadUrl(this) { Ok(ok__) => { @@ -3057,14 +2424,8 @@ pub trait IUpdateDownloadContent2_Impl: Sized + IUpdateDownloadContent_Impl { impl windows_core::RuntimeName for IUpdateDownloadContent2 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloadContent2_Vtbl { - pub const fn new() -> IUpdateDownloadContent2_Vtbl - where - Identity: IUpdateDownloadContent2_Impl, - { - unsafe extern "system" fn IsDeltaCompressedContent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateDownloadContent2_Impl, - { + pub const fn new() -> IUpdateDownloadContent2_Vtbl { + unsafe extern "system" fn IsDeltaCompressedContent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloadContent2_Impl::IsDeltaCompressedContent(this) { Ok(ok__) => { @@ -3090,14 +2451,8 @@ pub trait IUpdateDownloadContentCollection_Impl: Sized + super::Com::IDispatch_I impl windows_core::RuntimeName for IUpdateDownloadContentCollection {} #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloadContentCollection_Vtbl { - pub const fn new() -> IUpdateDownloadContentCollection_Vtbl - where - Identity: IUpdateDownloadContentCollection_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateDownloadContentCollection_Impl, - { + pub const fn new() -> IUpdateDownloadContentCollection_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloadContentCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3107,10 +2462,7 @@ impl IUpdateDownloadContentCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateDownloadContentCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloadContentCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3120,10 +2472,7 @@ impl IUpdateDownloadContentCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateDownloadContentCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloadContentCollection_Impl::Count(this) { Ok(ok__) => { @@ -3153,14 +2502,8 @@ pub trait IUpdateDownloadResult_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateDownloadResult {} #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloadResult_Vtbl { - pub const fn new() -> IUpdateDownloadResult_Vtbl - where - Identity: IUpdateDownloadResult_Impl, - { - unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateDownloadResult_Impl, - { + pub const fn new() -> IUpdateDownloadResult_Vtbl { + unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloadResult_Impl::HResult(this) { Ok(ok__) => { @@ -3170,10 +2513,7 @@ impl IUpdateDownloadResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT - where - Identity: IUpdateDownloadResult_Impl, - { + unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloadResult_Impl::ResultCode(this) { Ok(ok__) => { @@ -3207,14 +2547,8 @@ pub trait IUpdateDownloader_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateDownloader {} #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloader_Vtbl { - pub const fn new() -> IUpdateDownloader_Vtbl - where - Identity: IUpdateDownloader_Impl, - { - unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + pub const fn new() -> IUpdateDownloader_Vtbl { + unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloader_Impl::ClientApplicationID(this) { Ok(ok__) => { @@ -3224,17 +2558,11 @@ impl IUpdateDownloader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientApplicationID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + unsafe extern "system" fn SetClientApplicationID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateDownloader_Impl::SetClientApplicationID(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn IsForced(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + unsafe extern "system" fn IsForced(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloader_Impl::IsForced(this) { Ok(ok__) => { @@ -3244,17 +2572,11 @@ impl IUpdateDownloader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsForced(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + unsafe extern "system" fn SetIsForced(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateDownloader_Impl::SetIsForced(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, retval: *mut DownloadPriority) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + unsafe extern "system" fn Priority(this: *mut core::ffi::c_void, retval: *mut DownloadPriority) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloader_Impl::Priority(this) { Ok(ok__) => { @@ -3264,17 +2586,11 @@ impl IUpdateDownloader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, value: DownloadPriority) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + unsafe extern "system" fn SetPriority(this: *mut core::ffi::c_void, value: DownloadPriority) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateDownloader_Impl::SetPriority(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloader_Impl::Updates(this) { Ok(ok__) => { @@ -3284,17 +2600,11 @@ impl IUpdateDownloader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUpdates(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + unsafe extern "system" fn SetUpdates(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateDownloader_Impl::SetUpdates(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn BeginDownload(this: *mut core::ffi::c_void, onprogresschanged: *mut core::ffi::c_void, oncompleted: *mut core::ffi::c_void, state: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + unsafe extern "system" fn BeginDownload(this: *mut core::ffi::c_void, onprogresschanged: *mut core::ffi::c_void, oncompleted: *mut core::ffi::c_void, state: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloader_Impl::BeginDownload(this, windows_core::from_raw_borrowed(&onprogresschanged), windows_core::from_raw_borrowed(&oncompleted), core::mem::transmute(&state)) { Ok(ok__) => { @@ -3304,10 +2614,7 @@ impl IUpdateDownloader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Download(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + unsafe extern "system" fn Download(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloader_Impl::Download(this) { Ok(ok__) => { @@ -3317,10 +2624,7 @@ impl IUpdateDownloader_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndDownload(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateDownloader_Impl, - { + unsafe extern "system" fn EndDownload(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateDownloader_Impl::EndDownload(this, windows_core::from_raw_borrowed(&value)) { Ok(ok__) => { @@ -3359,14 +2663,8 @@ pub trait IUpdateException_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateException {} #[cfg(feature = "Win32_System_Com")] impl IUpdateException_Vtbl { - pub const fn new() -> IUpdateException_Vtbl - where - Identity: IUpdateException_Impl, - { - unsafe extern "system" fn Message(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateException_Impl, - { + pub const fn new() -> IUpdateException_Vtbl { + unsafe extern "system" fn Message(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateException_Impl::Message(this) { Ok(ok__) => { @@ -3376,10 +2674,7 @@ impl IUpdateException_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateException_Impl, - { + unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateException_Impl::HResult(this) { Ok(ok__) => { @@ -3389,10 +2684,7 @@ impl IUpdateException_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Context(this: *mut core::ffi::c_void, retval: *mut UpdateExceptionContext) -> windows_core::HRESULT - where - Identity: IUpdateException_Impl, - { + unsafe extern "system" fn Context(this: *mut core::ffi::c_void, retval: *mut UpdateExceptionContext) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateException_Impl::Context(this) { Ok(ok__) => { @@ -3423,14 +2715,8 @@ pub trait IUpdateExceptionCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateExceptionCollection {} #[cfg(feature = "Win32_System_Com")] impl IUpdateExceptionCollection_Vtbl { - pub const fn new() -> IUpdateExceptionCollection_Vtbl - where - Identity: IUpdateExceptionCollection_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateExceptionCollection_Impl, - { + pub const fn new() -> IUpdateExceptionCollection_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateExceptionCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3440,10 +2726,7 @@ impl IUpdateExceptionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateExceptionCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateExceptionCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3453,10 +2736,7 @@ impl IUpdateExceptionCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateExceptionCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateExceptionCollection_Impl::Count(this) { Ok(ok__) => { @@ -3498,14 +2778,8 @@ pub trait IUpdateHistoryEntry_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateHistoryEntry {} #[cfg(feature = "Win32_System_Com")] impl IUpdateHistoryEntry_Vtbl { - pub const fn new() -> IUpdateHistoryEntry_Vtbl - where - Identity: IUpdateHistoryEntry_Impl, - { - unsafe extern "system" fn Operation(this: *mut core::ffi::c_void, retval: *mut UpdateOperation) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + pub const fn new() -> IUpdateHistoryEntry_Vtbl { + unsafe extern "system" fn Operation(this: *mut core::ffi::c_void, retval: *mut UpdateOperation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::Operation(this) { Ok(ok__) => { @@ -3515,10 +2789,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::ResultCode(this) { Ok(ok__) => { @@ -3528,10 +2799,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::HResult(this) { Ok(ok__) => { @@ -3541,10 +2809,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Date(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn Date(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::Date(this) { Ok(ok__) => { @@ -3554,10 +2819,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateIdentity(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn UpdateIdentity(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::UpdateIdentity(this) { Ok(ok__) => { @@ -3567,10 +2829,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::Title(this) { Ok(ok__) => { @@ -3580,10 +2839,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::Description(this) { Ok(ok__) => { @@ -3593,10 +2849,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnmappedResultCode(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn UnmappedResultCode(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::UnmappedResultCode(this) { Ok(ok__) => { @@ -3606,10 +2859,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::ClientApplicationID(this) { Ok(ok__) => { @@ -3619,10 +2869,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServerSelection(this: *mut core::ffi::c_void, retval: *mut ServerSelection) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn ServerSelection(this: *mut core::ffi::c_void, retval: *mut ServerSelection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::ServerSelection(this) { Ok(ok__) => { @@ -3632,10 +2879,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn ServiceID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::ServiceID(this) { Ok(ok__) => { @@ -3645,10 +2889,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UninstallationSteps(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn UninstallationSteps(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::UninstallationSteps(this) { Ok(ok__) => { @@ -3658,10 +2899,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UninstallationNotes(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn UninstallationNotes(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::UninstallationNotes(this) { Ok(ok__) => { @@ -3671,10 +2909,7 @@ impl IUpdateHistoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportUrl(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry_Impl, - { + unsafe extern "system" fn SupportUrl(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry_Impl::SupportUrl(this) { Ok(ok__) => { @@ -3714,14 +2949,8 @@ pub trait IUpdateHistoryEntry2_Impl: Sized + IUpdateHistoryEntry_Impl { impl windows_core::RuntimeName for IUpdateHistoryEntry2 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateHistoryEntry2_Vtbl { - pub const fn new() -> IUpdateHistoryEntry2_Vtbl - where - Identity: IUpdateHistoryEntry2_Impl, - { - unsafe extern "system" fn Categories(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntry2_Impl, - { + pub const fn new() -> IUpdateHistoryEntry2_Vtbl { + unsafe extern "system" fn Categories(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntry2_Impl::Categories(this) { Ok(ok__) => { @@ -3747,14 +2976,8 @@ pub trait IUpdateHistoryEntryCollection_Impl: Sized + super::Com::IDispatch_Impl impl windows_core::RuntimeName for IUpdateHistoryEntryCollection {} #[cfg(feature = "Win32_System_Com")] impl IUpdateHistoryEntryCollection_Vtbl { - pub const fn new() -> IUpdateHistoryEntryCollection_Vtbl - where - Identity: IUpdateHistoryEntryCollection_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntryCollection_Impl, - { + pub const fn new() -> IUpdateHistoryEntryCollection_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntryCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -3764,10 +2987,7 @@ impl IUpdateHistoryEntryCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntryCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntryCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3777,10 +2997,7 @@ impl IUpdateHistoryEntryCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateHistoryEntryCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateHistoryEntryCollection_Impl::Count(this) { Ok(ok__) => { @@ -3810,14 +3027,8 @@ pub trait IUpdateIdentity_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateIdentity {} #[cfg(feature = "Win32_System_Com")] impl IUpdateIdentity_Vtbl { - pub const fn new() -> IUpdateIdentity_Vtbl - where - Identity: IUpdateIdentity_Impl, - { - unsafe extern "system" fn RevisionNumber(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateIdentity_Impl, - { + pub const fn new() -> IUpdateIdentity_Vtbl { + unsafe extern "system" fn RevisionNumber(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateIdentity_Impl::RevisionNumber(this) { Ok(ok__) => { @@ -3827,10 +3038,7 @@ impl IUpdateIdentity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateIdentity_Impl, - { + unsafe extern "system" fn UpdateID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateIdentity_Impl::UpdateID(this) { Ok(ok__) => { @@ -3860,14 +3068,8 @@ pub trait IUpdateInstallationResult_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateInstallationResult {} #[cfg(feature = "Win32_System_Com")] impl IUpdateInstallationResult_Vtbl { - pub const fn new() -> IUpdateInstallationResult_Vtbl - where - Identity: IUpdateInstallationResult_Impl, - { - unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateInstallationResult_Impl, - { + pub const fn new() -> IUpdateInstallationResult_Vtbl { + unsafe extern "system" fn HResult(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstallationResult_Impl::HResult(this) { Ok(ok__) => { @@ -3877,10 +3079,7 @@ impl IUpdateInstallationResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RebootRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstallationResult_Impl, - { + unsafe extern "system" fn RebootRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstallationResult_Impl::RebootRequired(this) { Ok(ok__) => { @@ -3890,10 +3089,7 @@ impl IUpdateInstallationResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT - where - Identity: IUpdateInstallationResult_Impl, - { + unsafe extern "system" fn ResultCode(this: *mut core::ffi::c_void, retval: *mut OperationResultCode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstallationResult_Impl::ResultCode(this) { Ok(ok__) => { @@ -3942,14 +3138,8 @@ pub trait IUpdateInstaller_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateInstaller {} #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller_Vtbl { - pub const fn new() -> IUpdateInstaller_Vtbl - where - Identity: IUpdateInstaller_Impl, - { - unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + pub const fn new() -> IUpdateInstaller_Vtbl { + unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::ClientApplicationID(this) { Ok(ok__) => { @@ -3959,17 +3149,11 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientApplicationID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn SetClientApplicationID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateInstaller_Impl::SetClientApplicationID(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn IsForced(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn IsForced(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::IsForced(this) { Ok(ok__) => { @@ -3979,17 +3163,11 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsForced(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn SetIsForced(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateInstaller_Impl::SetIsForced(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ParentHwnd(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn ParentHwnd(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::ParentHwnd(this) { Ok(ok__) => { @@ -3999,24 +3177,15 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParentHwnd(this: *mut core::ffi::c_void, value: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn SetParentHwnd(this: *mut core::ffi::c_void, value: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateInstaller_Impl::SetParentHwnd(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetParentWindow(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn SetParentWindow(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateInstaller_Impl::SetParentWindow(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn ParentWindow(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn ParentWindow(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::ParentWindow(this) { Ok(ok__) => { @@ -4026,10 +3195,7 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn Updates(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::Updates(this) { Ok(ok__) => { @@ -4039,17 +3205,11 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUpdates(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn SetUpdates(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateInstaller_Impl::SetUpdates(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn BeginInstall(this: *mut core::ffi::c_void, onprogresschanged: *mut core::ffi::c_void, oncompleted: *mut core::ffi::c_void, state: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn BeginInstall(this: *mut core::ffi::c_void, onprogresschanged: *mut core::ffi::c_void, oncompleted: *mut core::ffi::c_void, state: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::BeginInstall(this, windows_core::from_raw_borrowed(&onprogresschanged), windows_core::from_raw_borrowed(&oncompleted), core::mem::transmute(&state)) { Ok(ok__) => { @@ -4059,10 +3219,7 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginUninstall(this: *mut core::ffi::c_void, onprogresschanged: *mut core::ffi::c_void, oncompleted: *mut core::ffi::c_void, state: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn BeginUninstall(this: *mut core::ffi::c_void, onprogresschanged: *mut core::ffi::c_void, oncompleted: *mut core::ffi::c_void, state: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::BeginUninstall(this, windows_core::from_raw_borrowed(&onprogresschanged), windows_core::from_raw_borrowed(&oncompleted), core::mem::transmute(&state)) { Ok(ok__) => { @@ -4072,10 +3229,7 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndInstall(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn EndInstall(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::EndInstall(this, windows_core::from_raw_borrowed(&value)) { Ok(ok__) => { @@ -4085,10 +3239,7 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndUninstall(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn EndUninstall(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::EndUninstall(this, windows_core::from_raw_borrowed(&value)) { Ok(ok__) => { @@ -4098,10 +3249,7 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Install(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn Install(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::Install(this) { Ok(ok__) => { @@ -4111,10 +3259,7 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RunWizard(this: *mut core::ffi::c_void, dialogtitle: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn RunWizard(this: *mut core::ffi::c_void, dialogtitle: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::RunWizard(this, core::mem::transmute(&dialogtitle)) { Ok(ok__) => { @@ -4124,10 +3269,7 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsBusy(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn IsBusy(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::IsBusy(this) { Ok(ok__) => { @@ -4137,10 +3279,7 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Uninstall(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn Uninstall(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::Uninstall(this) { Ok(ok__) => { @@ -4150,10 +3289,7 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AllowSourcePrompts(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn AllowSourcePrompts(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::AllowSourcePrompts(this) { Ok(ok__) => { @@ -4163,17 +3299,11 @@ impl IUpdateInstaller_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllowSourcePrompts(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn SetAllowSourcePrompts(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateInstaller_Impl::SetAllowSourcePrompts(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn RebootRequiredBeforeInstallation(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstaller_Impl, - { + unsafe extern "system" fn RebootRequiredBeforeInstallation(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller_Impl::RebootRequiredBeforeInstallation(this) { Ok(ok__) => { @@ -4221,14 +3351,8 @@ pub trait IUpdateInstaller2_Impl: Sized + IUpdateInstaller_Impl { impl windows_core::RuntimeName for IUpdateInstaller2 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller2_Vtbl { - pub const fn new() -> IUpdateInstaller2_Vtbl - where - Identity: IUpdateInstaller2_Impl, - { - unsafe extern "system" fn ForceQuiet(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstaller2_Impl, - { + pub const fn new() -> IUpdateInstaller2_Vtbl { + unsafe extern "system" fn ForceQuiet(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller2_Impl::ForceQuiet(this) { Ok(ok__) => { @@ -4238,10 +3362,7 @@ impl IUpdateInstaller2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetForceQuiet(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstaller2_Impl, - { + unsafe extern "system" fn SetForceQuiet(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateInstaller2_Impl::SetForceQuiet(this, core::mem::transmute_copy(&value)).into() } @@ -4264,14 +3385,8 @@ pub trait IUpdateInstaller3_Impl: Sized + IUpdateInstaller2_Impl { impl windows_core::RuntimeName for IUpdateInstaller3 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller3_Vtbl { - pub const fn new() -> IUpdateInstaller3_Vtbl - where - Identity: IUpdateInstaller3_Impl, - { - unsafe extern "system" fn AttemptCloseAppsIfNecessary(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstaller3_Impl, - { + pub const fn new() -> IUpdateInstaller3_Vtbl { + unsafe extern "system" fn AttemptCloseAppsIfNecessary(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateInstaller3_Impl::AttemptCloseAppsIfNecessary(this) { Ok(ok__) => { @@ -4281,10 +3396,7 @@ impl IUpdateInstaller3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttemptCloseAppsIfNecessary(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateInstaller3_Impl, - { + unsafe extern "system" fn SetAttemptCloseAppsIfNecessary(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateInstaller3_Impl::SetAttemptCloseAppsIfNecessary(this, core::mem::transmute_copy(&value)).into() } @@ -4306,14 +3418,8 @@ pub trait IUpdateInstaller4_Impl: Sized + IUpdateInstaller3_Impl { impl windows_core::RuntimeName for IUpdateInstaller4 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller4_Vtbl { - pub const fn new() -> IUpdateInstaller4_Vtbl - where - Identity: IUpdateInstaller4_Impl, - { - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IUpdateInstaller4_Impl, - { + pub const fn new() -> IUpdateInstaller4_Vtbl { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateInstaller4_Impl::Commit(this, core::mem::transmute_copy(&dwflags)).into() } @@ -4323,19 +3429,13 @@ impl IUpdateInstaller4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IUpdateLockdown_Impl: Sized { +pub trait IUpdateLockdown_Impl: Sized + windows_core::IUnknownImpl { fn LockDown(&self, flags: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUpdateLockdown {} impl IUpdateLockdown_Vtbl { - pub const fn new() -> IUpdateLockdown_Vtbl - where - Identity: IUpdateLockdown_Impl, - { - unsafe extern "system" fn LockDown(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: IUpdateLockdown_Impl, - { + pub const fn new() -> IUpdateLockdown_Vtbl { + unsafe extern "system" fn LockDown(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateLockdown_Impl::LockDown(this, core::mem::transmute_copy(&flags)).into() } @@ -4370,14 +3470,8 @@ pub trait IUpdateSearcher_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateSearcher {} #[cfg(feature = "Win32_System_Com")] impl IUpdateSearcher_Vtbl { - pub const fn new() -> IUpdateSearcher_Vtbl - where - Identity: IUpdateSearcher_Impl, - { - unsafe extern "system" fn CanAutomaticallyUpgradeService(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + pub const fn new() -> IUpdateSearcher_Vtbl { + unsafe extern "system" fn CanAutomaticallyUpgradeService(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::CanAutomaticallyUpgradeService(this) { Ok(ok__) => { @@ -4387,17 +3481,11 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCanAutomaticallyUpgradeService(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn SetCanAutomaticallyUpgradeService(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSearcher_Impl::SetCanAutomaticallyUpgradeService(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::ClientApplicationID(this) { Ok(ok__) => { @@ -4407,17 +3495,11 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientApplicationID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn SetClientApplicationID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSearcher_Impl::SetClientApplicationID(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn IncludePotentiallySupersededUpdates(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn IncludePotentiallySupersededUpdates(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::IncludePotentiallySupersededUpdates(this) { Ok(ok__) => { @@ -4427,17 +3509,11 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIncludePotentiallySupersededUpdates(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn SetIncludePotentiallySupersededUpdates(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSearcher_Impl::SetIncludePotentiallySupersededUpdates(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ServerSelection(this: *mut core::ffi::c_void, retval: *mut ServerSelection) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn ServerSelection(this: *mut core::ffi::c_void, retval: *mut ServerSelection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::ServerSelection(this) { Ok(ok__) => { @@ -4447,17 +3523,11 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServerSelection(this: *mut core::ffi::c_void, value: ServerSelection) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn SetServerSelection(this: *mut core::ffi::c_void, value: ServerSelection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSearcher_Impl::SetServerSelection(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn BeginSearch(this: *mut core::ffi::c_void, criteria: core::mem::MaybeUninit, oncompleted: *mut core::ffi::c_void, state: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn BeginSearch(this: *mut core::ffi::c_void, criteria: core::mem::MaybeUninit, oncompleted: *mut core::ffi::c_void, state: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::BeginSearch(this, core::mem::transmute(&criteria), windows_core::from_raw_borrowed(&oncompleted), core::mem::transmute(&state)) { Ok(ok__) => { @@ -4467,10 +3537,7 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndSearch(this: *mut core::ffi::c_void, searchjob: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn EndSearch(this: *mut core::ffi::c_void, searchjob: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::EndSearch(this, windows_core::from_raw_borrowed(&searchjob)) { Ok(ok__) => { @@ -4480,10 +3547,7 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EscapeString(this: *mut core::ffi::c_void, unescaped: core::mem::MaybeUninit, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn EscapeString(this: *mut core::ffi::c_void, unescaped: core::mem::MaybeUninit, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::EscapeString(this, core::mem::transmute(&unescaped)) { Ok(ok__) => { @@ -4493,10 +3557,7 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryHistory(this: *mut core::ffi::c_void, startindex: i32, count: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn QueryHistory(this: *mut core::ffi::c_void, startindex: i32, count: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::QueryHistory(this, core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4506,10 +3567,7 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Search(this: *mut core::ffi::c_void, criteria: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn Search(this: *mut core::ffi::c_void, criteria: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::Search(this, core::mem::transmute(&criteria)) { Ok(ok__) => { @@ -4519,10 +3577,7 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Online(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn Online(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::Online(this) { Ok(ok__) => { @@ -4532,17 +3587,11 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOnline(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn SetOnline(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSearcher_Impl::SetOnline(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetTotalHistoryCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn GetTotalHistoryCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::GetTotalHistoryCount(this) { Ok(ok__) => { @@ -4552,10 +3601,7 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn ServiceID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher_Impl::ServiceID(this) { Ok(ok__) => { @@ -4565,10 +3611,7 @@ impl IUpdateSearcher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateSearcher_Impl, - { + unsafe extern "system" fn SetServiceID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSearcher_Impl::SetServiceID(this, core::mem::transmute(&value)).into() } @@ -4607,14 +3650,8 @@ pub trait IUpdateSearcher2_Impl: Sized + IUpdateSearcher_Impl { impl windows_core::RuntimeName for IUpdateSearcher2 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateSearcher2_Vtbl { - pub const fn new() -> IUpdateSearcher2_Vtbl - where - Identity: IUpdateSearcher2_Impl, - { - unsafe extern "system" fn IgnoreDownloadPriority(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateSearcher2_Impl, - { + pub const fn new() -> IUpdateSearcher2_Vtbl { + unsafe extern "system" fn IgnoreDownloadPriority(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher2_Impl::IgnoreDownloadPriority(this) { Ok(ok__) => { @@ -4624,10 +3661,7 @@ impl IUpdateSearcher2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIgnoreDownloadPriority(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateSearcher2_Impl, - { + unsafe extern "system" fn SetIgnoreDownloadPriority(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSearcher2_Impl::SetIgnoreDownloadPriority(this, core::mem::transmute_copy(&value)).into() } @@ -4650,14 +3684,8 @@ pub trait IUpdateSearcher3_Impl: Sized + IUpdateSearcher2_Impl { impl windows_core::RuntimeName for IUpdateSearcher3 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateSearcher3_Vtbl { - pub const fn new() -> IUpdateSearcher3_Vtbl - where - Identity: IUpdateSearcher3_Impl, - { - unsafe extern "system" fn SearchScope(this: *mut core::ffi::c_void, retval: *mut SearchScope) -> windows_core::HRESULT - where - Identity: IUpdateSearcher3_Impl, - { + pub const fn new() -> IUpdateSearcher3_Vtbl { + unsafe extern "system" fn SearchScope(this: *mut core::ffi::c_void, retval: *mut SearchScope) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSearcher3_Impl::SearchScope(this) { Ok(ok__) => { @@ -4667,10 +3695,7 @@ impl IUpdateSearcher3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSearchScope(this: *mut core::ffi::c_void, value: SearchScope) -> windows_core::HRESULT - where - Identity: IUpdateSearcher3_Impl, - { + unsafe extern "system" fn SetSearchScope(this: *mut core::ffi::c_void, value: SearchScope) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSearcher3_Impl::SetSearchScope(this, core::mem::transmute_copy(&value)).into() } @@ -4704,14 +3729,8 @@ pub trait IUpdateService_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateService {} #[cfg(feature = "Win32_System_Com")] impl IUpdateService_Vtbl { - pub const fn new() -> IUpdateService_Vtbl - where - Identity: IUpdateService_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + pub const fn new() -> IUpdateService_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::Name(this) { Ok(ok__) => { @@ -4721,10 +3740,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContentValidationCert(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn ContentValidationCert(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::ContentValidationCert(this) { Ok(ok__) => { @@ -4734,10 +3750,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpirationDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn ExpirationDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::ExpirationDate(this) { Ok(ok__) => { @@ -4747,10 +3760,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsManaged(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn IsManaged(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::IsManaged(this) { Ok(ok__) => { @@ -4760,10 +3770,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsRegisteredWithAU(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn IsRegisteredWithAU(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::IsRegisteredWithAU(this) { Ok(ok__) => { @@ -4773,10 +3780,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IssueDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn IssueDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::IssueDate(this) { Ok(ok__) => { @@ -4786,10 +3790,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OffersWindowsUpdates(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn OffersWindowsUpdates(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::OffersWindowsUpdates(this) { Ok(ok__) => { @@ -4799,10 +3800,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RedirectUrls(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn RedirectUrls(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::RedirectUrls(this) { Ok(ok__) => { @@ -4812,10 +3810,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn ServiceID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::ServiceID(this) { Ok(ok__) => { @@ -4825,10 +3820,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsScanPackageService(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn IsScanPackageService(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::IsScanPackageService(this) { Ok(ok__) => { @@ -4838,10 +3830,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanRegisterWithAU(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn CanRegisterWithAU(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::CanRegisterWithAU(this) { Ok(ok__) => { @@ -4851,10 +3840,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceUrl(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn ServiceUrl(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::ServiceUrl(this) { Ok(ok__) => { @@ -4864,10 +3850,7 @@ impl IUpdateService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetupPrefix(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateService_Impl, - { + unsafe extern "system" fn SetupPrefix(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService_Impl::SetupPrefix(this) { Ok(ok__) => { @@ -4906,14 +3889,8 @@ pub trait IUpdateService2_Impl: Sized + IUpdateService_Impl { impl windows_core::RuntimeName for IUpdateService2 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateService2_Vtbl { - pub const fn new() -> IUpdateService2_Vtbl - where - Identity: IUpdateService2_Impl, - { - unsafe extern "system" fn IsDefaultAUService(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateService2_Impl, - { + pub const fn new() -> IUpdateService2_Vtbl { + unsafe extern "system" fn IsDefaultAUService(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateService2_Impl::IsDefaultAUService(this) { Ok(ok__) => { @@ -4939,14 +3916,8 @@ pub trait IUpdateServiceCollection_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateServiceCollection {} #[cfg(feature = "Win32_System_Com")] impl IUpdateServiceCollection_Vtbl { - pub const fn new() -> IUpdateServiceCollection_Vtbl - where - Identity: IUpdateServiceCollection_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateServiceCollection_Impl, - { + pub const fn new() -> IUpdateServiceCollection_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -4956,10 +3927,7 @@ impl IUpdateServiceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateServiceCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -4969,10 +3937,7 @@ impl IUpdateServiceCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUpdateServiceCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceCollection_Impl::Count(this) { Ok(ok__) => { @@ -5007,14 +3972,8 @@ pub trait IUpdateServiceManager_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateServiceManager {} #[cfg(feature = "Win32_System_Com")] impl IUpdateServiceManager_Vtbl { - pub const fn new() -> IUpdateServiceManager_Vtbl - where - Identity: IUpdateServiceManager_Impl, - { - unsafe extern "system" fn Services(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager_Impl, - { + pub const fn new() -> IUpdateServiceManager_Vtbl { + unsafe extern "system" fn Services(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceManager_Impl::Services(this) { Ok(ok__) => { @@ -5024,10 +3983,7 @@ impl IUpdateServiceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddService(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit, authorizationcabpath: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager_Impl, - { + unsafe extern "system" fn AddService(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit, authorizationcabpath: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceManager_Impl::AddService(this, core::mem::transmute(&serviceid), core::mem::transmute(&authorizationcabpath)) { Ok(ok__) => { @@ -5037,31 +3993,19 @@ impl IUpdateServiceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterServiceWithAU(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager_Impl, - { + unsafe extern "system" fn RegisterServiceWithAU(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateServiceManager_Impl::RegisterServiceWithAU(this, core::mem::transmute(&serviceid)).into() } - unsafe extern "system" fn RemoveService(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager_Impl, - { + unsafe extern "system" fn RemoveService(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateServiceManager_Impl::RemoveService(this, core::mem::transmute(&serviceid)).into() } - unsafe extern "system" fn UnregisterServiceWithAU(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager_Impl, - { + unsafe extern "system" fn UnregisterServiceWithAU(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateServiceManager_Impl::UnregisterServiceWithAU(this, core::mem::transmute(&serviceid)).into() } - unsafe extern "system" fn AddScanPackageService(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, scanfilelocation: core::mem::MaybeUninit, flags: i32, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager_Impl, - { + unsafe extern "system" fn AddScanPackageService(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, scanfilelocation: core::mem::MaybeUninit, flags: i32, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceManager_Impl::AddScanPackageService(this, core::mem::transmute(&servicename), core::mem::transmute(&scanfilelocation), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -5071,10 +4015,7 @@ impl IUpdateServiceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, optionname: core::mem::MaybeUninit, optionvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager_Impl, - { + unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, optionname: core::mem::MaybeUninit, optionvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateServiceManager_Impl::SetOption(this, core::mem::transmute(&optionname), core::mem::transmute(&optionvalue)).into() } @@ -5104,14 +4045,8 @@ pub trait IUpdateServiceManager2_Impl: Sized + IUpdateServiceManager_Impl { impl windows_core::RuntimeName for IUpdateServiceManager2 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateServiceManager2_Vtbl { - pub const fn new() -> IUpdateServiceManager2_Vtbl - where - Identity: IUpdateServiceManager2_Impl, - { - unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager2_Impl, - { + pub const fn new() -> IUpdateServiceManager2_Vtbl { + unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceManager2_Impl::ClientApplicationID(this) { Ok(ok__) => { @@ -5121,17 +4056,11 @@ impl IUpdateServiceManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientApplicationID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager2_Impl, - { + unsafe extern "system" fn SetClientApplicationID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateServiceManager2_Impl::SetClientApplicationID(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn QueryServiceRegistration(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager2_Impl, - { + unsafe extern "system" fn QueryServiceRegistration(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceManager2_Impl::QueryServiceRegistration(this, core::mem::transmute(&serviceid)) { Ok(ok__) => { @@ -5141,10 +4070,7 @@ impl IUpdateServiceManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddService2(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit, flags: i32, authorizationcabpath: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateServiceManager2_Impl, - { + unsafe extern "system" fn AddService2(this: *mut core::ffi::c_void, serviceid: core::mem::MaybeUninit, flags: i32, authorizationcabpath: core::mem::MaybeUninit, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceManager2_Impl::AddService2(this, core::mem::transmute(&serviceid), core::mem::transmute_copy(&flags), core::mem::transmute(&authorizationcabpath)) { Ok(ok__) => { @@ -5177,14 +4103,8 @@ pub trait IUpdateServiceRegistration_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateServiceRegistration {} #[cfg(feature = "Win32_System_Com")] impl IUpdateServiceRegistration_Vtbl { - pub const fn new() -> IUpdateServiceRegistration_Vtbl - where - Identity: IUpdateServiceRegistration_Impl, - { - unsafe extern "system" fn RegistrationState(this: *mut core::ffi::c_void, retval: *mut UpdateServiceRegistrationState) -> windows_core::HRESULT - where - Identity: IUpdateServiceRegistration_Impl, - { + pub const fn new() -> IUpdateServiceRegistration_Vtbl { + unsafe extern "system" fn RegistrationState(this: *mut core::ffi::c_void, retval: *mut UpdateServiceRegistrationState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceRegistration_Impl::RegistrationState(this) { Ok(ok__) => { @@ -5194,10 +4114,7 @@ impl IUpdateServiceRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateServiceRegistration_Impl, - { + unsafe extern "system" fn ServiceID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceRegistration_Impl::ServiceID(this) { Ok(ok__) => { @@ -5207,10 +4124,7 @@ impl IUpdateServiceRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPendingRegistrationWithAU(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateServiceRegistration_Impl, - { + unsafe extern "system" fn IsPendingRegistrationWithAU(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceRegistration_Impl::IsPendingRegistrationWithAU(this) { Ok(ok__) => { @@ -5220,10 +4134,7 @@ impl IUpdateServiceRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Service(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateServiceRegistration_Impl, - { + unsafe extern "system" fn Service(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateServiceRegistration_Impl::Service(this) { Ok(ok__) => { @@ -5260,14 +4171,8 @@ pub trait IUpdateSession_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IUpdateSession {} #[cfg(feature = "Win32_System_Com")] impl IUpdateSession_Vtbl { - pub const fn new() -> IUpdateSession_Vtbl - where - Identity: IUpdateSession_Impl, - { - unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateSession_Impl, - { + pub const fn new() -> IUpdateSession_Vtbl { + unsafe extern "system" fn ClientApplicationID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSession_Impl::ClientApplicationID(this) { Ok(ok__) => { @@ -5277,17 +4182,11 @@ impl IUpdateSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClientApplicationID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUpdateSession_Impl, - { + unsafe extern "system" fn SetClientApplicationID(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSession_Impl::SetClientApplicationID(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IUpdateSession_Impl, - { + unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSession_Impl::ReadOnly(this) { Ok(ok__) => { @@ -5297,10 +4196,7 @@ impl IUpdateSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WebProxy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSession_Impl, - { + unsafe extern "system" fn WebProxy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSession_Impl::WebProxy(this) { Ok(ok__) => { @@ -5310,17 +4206,11 @@ impl IUpdateSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWebProxy(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSession_Impl, - { + unsafe extern "system" fn SetWebProxy(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSession_Impl::SetWebProxy(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn CreateUpdateSearcher(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSession_Impl, - { + unsafe extern "system" fn CreateUpdateSearcher(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSession_Impl::CreateUpdateSearcher(this) { Ok(ok__) => { @@ -5330,10 +4220,7 @@ impl IUpdateSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateUpdateDownloader(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSession_Impl, - { + unsafe extern "system" fn CreateUpdateDownloader(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSession_Impl::CreateUpdateDownloader(this) { Ok(ok__) => { @@ -5343,10 +4230,7 @@ impl IUpdateSession_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateUpdateInstaller(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSession_Impl, - { + unsafe extern "system" fn CreateUpdateInstaller(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSession_Impl::CreateUpdateInstaller(this) { Ok(ok__) => { @@ -5381,14 +4265,8 @@ pub trait IUpdateSession2_Impl: Sized + IUpdateSession_Impl { impl windows_core::RuntimeName for IUpdateSession2 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateSession2_Vtbl { - pub const fn new() -> IUpdateSession2_Vtbl - where - Identity: IUpdateSession2_Impl, - { - unsafe extern "system" fn UserLocale(this: *mut core::ffi::c_void, retval: *mut u32) -> windows_core::HRESULT - where - Identity: IUpdateSession2_Impl, - { + pub const fn new() -> IUpdateSession2_Vtbl { + unsafe extern "system" fn UserLocale(this: *mut core::ffi::c_void, retval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSession2_Impl::UserLocale(this) { Ok(ok__) => { @@ -5398,10 +4276,7 @@ impl IUpdateSession2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUserLocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT - where - Identity: IUpdateSession2_Impl, - { + unsafe extern "system" fn SetUserLocale(this: *mut core::ffi::c_void, lcid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUpdateSession2_Impl::SetUserLocale(this, core::mem::transmute_copy(&lcid)).into() } @@ -5424,14 +4299,8 @@ pub trait IUpdateSession3_Impl: Sized + IUpdateSession2_Impl { impl windows_core::RuntimeName for IUpdateSession3 {} #[cfg(feature = "Win32_System_Com")] impl IUpdateSession3_Vtbl { - pub const fn new() -> IUpdateSession3_Vtbl - where - Identity: IUpdateSession3_Impl, - { - unsafe extern "system" fn CreateUpdateServiceManager(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSession3_Impl, - { + pub const fn new() -> IUpdateSession3_Vtbl { + unsafe extern "system" fn CreateUpdateServiceManager(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSession3_Impl::CreateUpdateServiceManager(this) { Ok(ok__) => { @@ -5441,10 +4310,7 @@ impl IUpdateSession3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryHistory(this: *mut core::ffi::c_void, criteria: core::mem::MaybeUninit, startindex: i32, count: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUpdateSession3_Impl, - { + unsafe extern "system" fn QueryHistory(this: *mut core::ffi::c_void, criteria: core::mem::MaybeUninit, startindex: i32, count: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateSession3_Impl::QueryHistory(this, core::mem::transmute(&criteria), core::mem::transmute_copy(&startindex), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -5485,14 +4351,8 @@ pub trait IWebProxy_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWebProxy {} #[cfg(feature = "Win32_System_Com")] impl IWebProxy_Vtbl { - pub const fn new() -> IWebProxy_Vtbl - where - Identity: IWebProxy_Impl, - { - unsafe extern "system" fn Address(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + pub const fn new() -> IWebProxy_Vtbl { + unsafe extern "system" fn Address(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebProxy_Impl::Address(this) { Ok(ok__) => { @@ -5502,17 +4362,11 @@ impl IWebProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAddress(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn SetAddress(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebProxy_Impl::SetAddress(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn BypassList(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn BypassList(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebProxy_Impl::BypassList(this) { Ok(ok__) => { @@ -5522,17 +4376,11 @@ impl IWebProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBypassList(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn SetBypassList(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebProxy_Impl::SetBypassList(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn BypassProxyOnLocal(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn BypassProxyOnLocal(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebProxy_Impl::BypassProxyOnLocal(this) { Ok(ok__) => { @@ -5542,17 +4390,11 @@ impl IWebProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBypassProxyOnLocal(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn SetBypassProxyOnLocal(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebProxy_Impl::SetBypassProxyOnLocal(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn ReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebProxy_Impl::ReadOnly(this) { Ok(ok__) => { @@ -5562,10 +4404,7 @@ impl IWebProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn UserName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebProxy_Impl::UserName(this) { Ok(ok__) => { @@ -5575,38 +4414,23 @@ impl IWebProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUserName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn SetUserName(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebProxy_Impl::SetUserName(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebProxy_Impl::SetPassword(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn PromptForCredentials(this: *mut core::ffi::c_void, parentwindow: *mut core::ffi::c_void, title: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn PromptForCredentials(this: *mut core::ffi::c_void, parentwindow: *mut core::ffi::c_void, title: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebProxy_Impl::PromptForCredentials(this, windows_core::from_raw_borrowed(&parentwindow), core::mem::transmute(&title)).into() } - unsafe extern "system" fn PromptForCredentialsFromHwnd(this: *mut core::ffi::c_void, parentwindow: super::super::Foundation::HWND, title: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn PromptForCredentialsFromHwnd(this: *mut core::ffi::c_void, parentwindow: super::super::Foundation::HWND, title: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebProxy_Impl::PromptForCredentialsFromHwnd(this, core::mem::transmute_copy(&parentwindow), core::mem::transmute(&title)).into() } - unsafe extern "system" fn AutoDetect(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn AutoDetect(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebProxy_Impl::AutoDetect(this) { Ok(ok__) => { @@ -5616,10 +4440,7 @@ impl IWebProxy_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoDetect(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebProxy_Impl, - { + unsafe extern "system" fn SetAutoDetect(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebProxy_Impl::SetAutoDetect(this, core::mem::transmute_copy(&value)).into() } @@ -5660,14 +4481,8 @@ pub trait IWindowsDriverUpdate_Impl: Sized + IUpdate_Impl { impl windows_core::RuntimeName for IWindowsDriverUpdate {} #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate_Vtbl { - pub const fn new() -> IWindowsDriverUpdate_Vtbl - where - Identity: IWindowsDriverUpdate_Impl, - { - unsafe extern "system" fn DriverClass(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate_Impl, - { + pub const fn new() -> IWindowsDriverUpdate_Vtbl { + unsafe extern "system" fn DriverClass(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate_Impl::DriverClass(this) { Ok(ok__) => { @@ -5677,10 +4492,7 @@ impl IWindowsDriverUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverHardwareID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate_Impl, - { + unsafe extern "system" fn DriverHardwareID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate_Impl::DriverHardwareID(this) { Ok(ok__) => { @@ -5690,10 +4502,7 @@ impl IWindowsDriverUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverManufacturer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate_Impl, - { + unsafe extern "system" fn DriverManufacturer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate_Impl::DriverManufacturer(this) { Ok(ok__) => { @@ -5703,10 +4512,7 @@ impl IWindowsDriverUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverModel(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate_Impl, - { + unsafe extern "system" fn DriverModel(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate_Impl::DriverModel(this) { Ok(ok__) => { @@ -5716,10 +4522,7 @@ impl IWindowsDriverUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverProvider(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate_Impl, - { + unsafe extern "system" fn DriverProvider(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate_Impl::DriverProvider(this) { Ok(ok__) => { @@ -5729,10 +4532,7 @@ impl IWindowsDriverUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverVerDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate_Impl, - { + unsafe extern "system" fn DriverVerDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate_Impl::DriverVerDate(this) { Ok(ok__) => { @@ -5742,10 +4542,7 @@ impl IWindowsDriverUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceProblemNumber(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate_Impl, - { + unsafe extern "system" fn DeviceProblemNumber(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate_Impl::DeviceProblemNumber(this) { Ok(ok__) => { @@ -5755,10 +4552,7 @@ impl IWindowsDriverUpdate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceStatus(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate_Impl, - { + unsafe extern "system" fn DeviceStatus(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate_Impl::DeviceStatus(this) { Ok(ok__) => { @@ -5795,14 +4589,8 @@ pub trait IWindowsDriverUpdate2_Impl: Sized + IWindowsDriverUpdate_Impl { impl windows_core::RuntimeName for IWindowsDriverUpdate2 {} #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate2_Vtbl { - pub const fn new() -> IWindowsDriverUpdate2_Vtbl - where - Identity: IWindowsDriverUpdate2_Impl, - { - unsafe extern "system" fn RebootRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate2_Impl, - { + pub const fn new() -> IWindowsDriverUpdate2_Vtbl { + unsafe extern "system" fn RebootRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate2_Impl::RebootRequired(this) { Ok(ok__) => { @@ -5812,10 +4600,7 @@ impl IWindowsDriverUpdate2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPresent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate2_Impl, - { + unsafe extern "system" fn IsPresent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate2_Impl::IsPresent(this) { Ok(ok__) => { @@ -5825,10 +4610,7 @@ impl IWindowsDriverUpdate2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CveIDs(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate2_Impl, - { + unsafe extern "system" fn CveIDs(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate2_Impl::CveIDs(this) { Ok(ok__) => { @@ -5838,10 +4620,7 @@ impl IWindowsDriverUpdate2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CopyToCache(this: *mut core::ffi::c_void, pfiles: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate2_Impl, - { + unsafe extern "system" fn CopyToCache(this: *mut core::ffi::c_void, pfiles: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsDriverUpdate2_Impl::CopyToCache(this, windows_core::from_raw_borrowed(&pfiles)).into() } @@ -5865,14 +4644,8 @@ pub trait IWindowsDriverUpdate3_Impl: Sized + IWindowsDriverUpdate2_Impl { impl windows_core::RuntimeName for IWindowsDriverUpdate3 {} #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate3_Vtbl { - pub const fn new() -> IWindowsDriverUpdate3_Vtbl - where - Identity: IWindowsDriverUpdate3_Impl, - { - unsafe extern "system" fn BrowseOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate3_Impl, - { + pub const fn new() -> IWindowsDriverUpdate3_Vtbl { + unsafe extern "system" fn BrowseOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate3_Impl::BrowseOnly(this) { Ok(ok__) => { @@ -5897,14 +4670,8 @@ pub trait IWindowsDriverUpdate4_Impl: Sized + IWindowsDriverUpdate3_Impl { impl windows_core::RuntimeName for IWindowsDriverUpdate4 {} #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate4_Vtbl { - pub const fn new() -> IWindowsDriverUpdate4_Vtbl - where - Identity: IWindowsDriverUpdate4_Impl, - { - unsafe extern "system" fn WindowsDriverUpdateEntries(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate4_Impl, - { + pub const fn new() -> IWindowsDriverUpdate4_Vtbl { + unsafe extern "system" fn WindowsDriverUpdateEntries(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate4_Impl::WindowsDriverUpdateEntries(this) { Ok(ok__) => { @@ -5914,10 +4681,7 @@ impl IWindowsDriverUpdate4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PerUser(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate4_Impl, - { + unsafe extern "system" fn PerUser(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate4_Impl::PerUser(this) { Ok(ok__) => { @@ -5946,14 +4710,8 @@ pub trait IWindowsDriverUpdate5_Impl: Sized + IWindowsDriverUpdate4_Impl { impl windows_core::RuntimeName for IWindowsDriverUpdate5 {} #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate5_Vtbl { - pub const fn new() -> IWindowsDriverUpdate5_Vtbl - where - Identity: IWindowsDriverUpdate5_Impl, - { - unsafe extern "system" fn AutoSelection(this: *mut core::ffi::c_void, retval: *mut AutoSelectionMode) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate5_Impl, - { + pub const fn new() -> IWindowsDriverUpdate5_Vtbl { + unsafe extern "system" fn AutoSelection(this: *mut core::ffi::c_void, retval: *mut AutoSelectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate5_Impl::AutoSelection(this) { Ok(ok__) => { @@ -5963,10 +4721,7 @@ impl IWindowsDriverUpdate5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AutoDownload(this: *mut core::ffi::c_void, retval: *mut AutoDownloadMode) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdate5_Impl, - { + unsafe extern "system" fn AutoDownload(this: *mut core::ffi::c_void, retval: *mut AutoDownloadMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdate5_Impl::AutoDownload(this) { Ok(ok__) => { @@ -6001,14 +4756,8 @@ pub trait IWindowsDriverUpdateEntry_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWindowsDriverUpdateEntry {} #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdateEntry_Vtbl { - pub const fn new() -> IWindowsDriverUpdateEntry_Vtbl - where - Identity: IWindowsDriverUpdateEntry_Impl, - { - unsafe extern "system" fn DriverClass(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntry_Impl, - { + pub const fn new() -> IWindowsDriverUpdateEntry_Vtbl { + unsafe extern "system" fn DriverClass(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntry_Impl::DriverClass(this) { Ok(ok__) => { @@ -6018,10 +4767,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverHardwareID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntry_Impl, - { + unsafe extern "system" fn DriverHardwareID(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntry_Impl::DriverHardwareID(this) { Ok(ok__) => { @@ -6031,10 +4777,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverManufacturer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntry_Impl, - { + unsafe extern "system" fn DriverManufacturer(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntry_Impl::DriverManufacturer(this) { Ok(ok__) => { @@ -6044,10 +4787,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverModel(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntry_Impl, - { + unsafe extern "system" fn DriverModel(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntry_Impl::DriverModel(this) { Ok(ok__) => { @@ -6057,10 +4797,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverProvider(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntry_Impl, - { + unsafe extern "system" fn DriverProvider(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntry_Impl::DriverProvider(this) { Ok(ok__) => { @@ -6070,10 +4807,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverVerDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntry_Impl, - { + unsafe extern "system" fn DriverVerDate(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntry_Impl::DriverVerDate(this) { Ok(ok__) => { @@ -6083,10 +4817,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceProblemNumber(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntry_Impl, - { + unsafe extern "system" fn DeviceProblemNumber(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntry_Impl::DeviceProblemNumber(this) { Ok(ok__) => { @@ -6096,10 +4827,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceStatus(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntry_Impl, - { + unsafe extern "system" fn DeviceStatus(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntry_Impl::DeviceStatus(this) { Ok(ok__) => { @@ -6135,14 +4863,8 @@ pub trait IWindowsDriverUpdateEntryCollection_Impl: Sized + super::Com::IDispatc impl windows_core::RuntimeName for IWindowsDriverUpdateEntryCollection {} #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdateEntryCollection_Vtbl { - pub const fn new() -> IWindowsDriverUpdateEntryCollection_Vtbl - where - Identity: IWindowsDriverUpdateEntryCollection_Impl, - { - unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntryCollection_Impl, - { + pub const fn new() -> IWindowsDriverUpdateEntryCollection_Vtbl { + unsafe extern "system" fn get_Item(this: *mut core::ffi::c_void, index: i32, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntryCollection_Impl::get_Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6152,10 +4874,7 @@ impl IWindowsDriverUpdateEntryCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntryCollection_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntryCollection_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6165,10 +4884,7 @@ impl IWindowsDriverUpdateEntryCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IWindowsDriverUpdateEntryCollection_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDriverUpdateEntryCollection_Impl::Count(this) { Ok(ok__) => { @@ -6197,14 +4913,8 @@ pub trait IWindowsUpdateAgentInfo_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWindowsUpdateAgentInfo {} #[cfg(feature = "Win32_System_Com")] impl IWindowsUpdateAgentInfo_Vtbl { - pub const fn new() -> IWindowsUpdateAgentInfo_Vtbl - where - Identity: IWindowsUpdateAgentInfo_Impl, - { - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, varinfoidentifier: core::mem::MaybeUninit, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWindowsUpdateAgentInfo_Impl, - { + pub const fn new() -> IWindowsUpdateAgentInfo_Vtbl { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, varinfoidentifier: core::mem::MaybeUninit, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsUpdateAgentInfo_Impl::GetInfo(this, core::mem::transmute(&varinfoidentifier)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/impl.rs b/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/impl.rs index 1203f989eb..d2d5fc473a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/impl.rs @@ -1,16 +1,10 @@ -pub trait IWaaSAssessor_Impl: Sized { +pub trait IWaaSAssessor_Impl: Sized + windows_core::IUnknownImpl { fn GetOSUpdateAssessment(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWaaSAssessor {} impl IWaaSAssessor_Vtbl { - pub const fn new() -> IWaaSAssessor_Vtbl - where - Identity: IWaaSAssessor_Impl, - { - unsafe extern "system" fn GetOSUpdateAssessment(this: *mut core::ffi::c_void, result: *mut OSUpdateAssessment) -> windows_core::HRESULT - where - Identity: IWaaSAssessor_Impl, - { + pub const fn new() -> IWaaSAssessor_Vtbl { + unsafe extern "system" fn GetOSUpdateAssessment(this: *mut core::ffi::c_void, result: *mut OSUpdateAssessment) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWaaSAssessor_Impl::GetOSUpdateAssessment(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/impl.rs index 7d10ce9a5b..62ad6a0d55 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/impl.rs @@ -1,16 +1,10 @@ -pub trait IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Impl: Sized { +pub trait IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateFromWin32Handle(&self, win32handle: u64, enableaboutdata: u8, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWindowsDevicesAllJoynBusAttachmentFactoryInterop {} impl IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Vtbl { - pub const fn new() -> IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Vtbl - where - Identity: IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Impl, - { - unsafe extern "system" fn CreateFromWin32Handle(this: *mut core::ffi::c_void, win32handle: u64, enableaboutdata: u8, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Impl, - { + pub const fn new() -> IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Vtbl { + unsafe extern "system" fn CreateFromWin32Handle(this: *mut core::ffi::c_void, win32handle: u64, enableaboutdata: u8, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Impl::CreateFromWin32Handle(this, core::mem::transmute_copy(&win32handle), core::mem::transmute_copy(&enableaboutdata), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -23,19 +17,13 @@ impl IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Vtbl { iid == &::IID } } -pub trait IWindowsDevicesAllJoynBusAttachmentInterop_Impl: Sized { +pub trait IWindowsDevicesAllJoynBusAttachmentInterop_Impl: Sized + windows_core::IUnknownImpl { fn Win32Handle(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWindowsDevicesAllJoynBusAttachmentInterop {} impl IWindowsDevicesAllJoynBusAttachmentInterop_Vtbl { - pub const fn new() -> IWindowsDevicesAllJoynBusAttachmentInterop_Vtbl - where - Identity: IWindowsDevicesAllJoynBusAttachmentInterop_Impl, - { - unsafe extern "system" fn Win32Handle(this: *mut core::ffi::c_void, value: *mut u64) -> windows_core::HRESULT - where - Identity: IWindowsDevicesAllJoynBusAttachmentInterop_Impl, - { + pub const fn new() -> IWindowsDevicesAllJoynBusAttachmentInterop_Vtbl { + unsafe extern "system" fn Win32Handle(this: *mut core::ffi::c_void, value: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDevicesAllJoynBusAttachmentInterop_Impl::Win32Handle(this) { Ok(ok__) => { @@ -54,19 +42,13 @@ impl IWindowsDevicesAllJoynBusAttachmentInterop_Vtbl { iid == &::IID } } -pub trait IWindowsDevicesAllJoynBusObjectFactoryInterop_Impl: Sized { +pub trait IWindowsDevicesAllJoynBusObjectFactoryInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateFromWin32Handle(&self, win32handle: u64, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWindowsDevicesAllJoynBusObjectFactoryInterop {} impl IWindowsDevicesAllJoynBusObjectFactoryInterop_Vtbl { - pub const fn new() -> IWindowsDevicesAllJoynBusObjectFactoryInterop_Vtbl - where - Identity: IWindowsDevicesAllJoynBusObjectFactoryInterop_Impl, - { - unsafe extern "system" fn CreateFromWin32Handle(this: *mut core::ffi::c_void, win32handle: u64, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowsDevicesAllJoynBusObjectFactoryInterop_Impl, - { + pub const fn new() -> IWindowsDevicesAllJoynBusObjectFactoryInterop_Vtbl { + unsafe extern "system" fn CreateFromWin32Handle(this: *mut core::ffi::c_void, win32handle: u64, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsDevicesAllJoynBusObjectFactoryInterop_Impl::CreateFromWin32Handle(this, core::mem::transmute_copy(&win32handle), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -79,35 +61,23 @@ impl IWindowsDevicesAllJoynBusObjectFactoryInterop_Vtbl { iid == &::IID } } -pub trait IWindowsDevicesAllJoynBusObjectInterop_Impl: Sized { +pub trait IWindowsDevicesAllJoynBusObjectInterop_Impl: Sized + windows_core::IUnknownImpl { fn AddPropertyGetHandler(&self, context: *const core::ffi::c_void, interfacename: &windows_core::HSTRING, callback: isize) -> windows_core::Result<()>; fn AddPropertySetHandler(&self, context: *const core::ffi::c_void, interfacename: &windows_core::HSTRING, callback: isize) -> windows_core::Result<()>; fn Win32Handle(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWindowsDevicesAllJoynBusObjectInterop {} impl IWindowsDevicesAllJoynBusObjectInterop_Vtbl { - pub const fn new() -> IWindowsDevicesAllJoynBusObjectInterop_Vtbl - where - Identity: IWindowsDevicesAllJoynBusObjectInterop_Impl, - { - unsafe extern "system" fn AddPropertyGetHandler(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, interfacename: core::mem::MaybeUninit, callback: isize) -> windows_core::HRESULT - where - Identity: IWindowsDevicesAllJoynBusObjectInterop_Impl, - { + pub const fn new() -> IWindowsDevicesAllJoynBusObjectInterop_Vtbl { + unsafe extern "system" fn AddPropertyGetHandler(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, interfacename: core::mem::MaybeUninit, callback: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsDevicesAllJoynBusObjectInterop_Impl::AddPropertyGetHandler(this, core::mem::transmute_copy(&context), core::mem::transmute(&interfacename), core::mem::transmute_copy(&callback)).into() } - unsafe extern "system" fn AddPropertySetHandler(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, interfacename: core::mem::MaybeUninit, callback: isize) -> windows_core::HRESULT - where - Identity: IWindowsDevicesAllJoynBusObjectInterop_Impl, - { + unsafe extern "system" fn AddPropertySetHandler(this: *mut core::ffi::c_void, context: *const core::ffi::c_void, interfacename: core::mem::MaybeUninit, callback: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowsDevicesAllJoynBusObjectInterop_Impl::AddPropertySetHandler(this, core::mem::transmute_copy(&context), core::mem::transmute(&interfacename), core::mem::transmute_copy(&callback)).into() } - unsafe extern "system" fn Win32Handle(this: *mut core::ffi::c_void, value: *mut u64) -> windows_core::HRESULT - where - Identity: IWindowsDevicesAllJoynBusObjectInterop_Impl, - { + unsafe extern "system" fn Win32Handle(this: *mut core::ffi::c_void, value: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsDevicesAllJoynBusObjectInterop_Impl::Win32Handle(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/impl.rs index 2d82c06d2a..4ae640adba 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/impl.rs @@ -1,19 +1,13 @@ #[cfg(feature = "UI_Composition")] -pub trait ICompositionCapabilitiesInteropFactory_Impl: Sized { +pub trait ICompositionCapabilitiesInteropFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, hwnd: super::super::super::Foundation::HWND) -> windows_core::Result; } #[cfg(feature = "UI_Composition")] impl windows_core::RuntimeName for ICompositionCapabilitiesInteropFactory {} #[cfg(feature = "UI_Composition")] impl ICompositionCapabilitiesInteropFactory_Vtbl { - pub const fn new() -> ICompositionCapabilitiesInteropFactory_Vtbl - where - Identity: ICompositionCapabilitiesInteropFactory_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositionCapabilitiesInteropFactory_Impl, - { + pub const fn new() -> ICompositionCapabilitiesInteropFactory_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositionCapabilitiesInteropFactory_Impl::GetForWindow(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -32,7 +26,7 @@ impl ICompositionCapabilitiesInteropFactory_Vtbl { iid == &::IID } } -pub trait ICompositionDrawingSurfaceInterop_Impl: Sized { +pub trait ICompositionDrawingSurfaceInterop_Impl: Sized + windows_core::IUnknownImpl { fn BeginDraw(&self, updaterect: *const super::super::super::Foundation::RECT, iid: *const windows_core::GUID, updateobject: *mut *mut core::ffi::c_void, updateoffset: *mut super::super::super::Foundation::POINT) -> windows_core::Result<()>; fn EndDraw(&self) -> windows_core::Result<()>; fn Resize(&self, sizepixels: &super::super::super::Foundation::SIZE) -> windows_core::Result<()>; @@ -42,49 +36,28 @@ pub trait ICompositionDrawingSurfaceInterop_Impl: Sized { } impl windows_core::RuntimeName for ICompositionDrawingSurfaceInterop {} impl ICompositionDrawingSurfaceInterop_Vtbl { - pub const fn new() -> ICompositionDrawingSurfaceInterop_Vtbl - where - Identity: ICompositionDrawingSurfaceInterop_Impl, - { - unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void, updaterect: *const super::super::super::Foundation::RECT, iid: *const windows_core::GUID, updateobject: *mut *mut core::ffi::c_void, updateoffset: *mut super::super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: ICompositionDrawingSurfaceInterop_Impl, - { + pub const fn new() -> ICompositionDrawingSurfaceInterop_Vtbl { + unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void, updaterect: *const super::super::super::Foundation::RECT, iid: *const windows_core::GUID, updateobject: *mut *mut core::ffi::c_void, updateoffset: *mut super::super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionDrawingSurfaceInterop_Impl::BeginDraw(this, core::mem::transmute_copy(&updaterect), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&updateobject), core::mem::transmute_copy(&updateoffset)).into() } - unsafe extern "system" fn EndDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositionDrawingSurfaceInterop_Impl, - { + unsafe extern "system" fn EndDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionDrawingSurfaceInterop_Impl::EndDraw(this).into() } - unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, sizepixels: super::super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: ICompositionDrawingSurfaceInterop_Impl, - { + unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, sizepixels: super::super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionDrawingSurfaceInterop_Impl::Resize(this, core::mem::transmute(&sizepixels)).into() } - unsafe extern "system" fn Scroll(this: *mut core::ffi::c_void, scrollrect: *const super::super::super::Foundation::RECT, cliprect: *const super::super::super::Foundation::RECT, offsetx: i32, offsety: i32) -> windows_core::HRESULT - where - Identity: ICompositionDrawingSurfaceInterop_Impl, - { + unsafe extern "system" fn Scroll(this: *mut core::ffi::c_void, scrollrect: *const super::super::super::Foundation::RECT, cliprect: *const super::super::super::Foundation::RECT, offsetx: i32, offsety: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionDrawingSurfaceInterop_Impl::Scroll(this, core::mem::transmute_copy(&scrollrect), core::mem::transmute_copy(&cliprect), core::mem::transmute_copy(&offsetx), core::mem::transmute_copy(&offsety)).into() } - unsafe extern "system" fn ResumeDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositionDrawingSurfaceInterop_Impl, - { + unsafe extern "system" fn ResumeDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionDrawingSurfaceInterop_Impl::ResumeDraw(this).into() } - unsafe extern "system" fn SuspendDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositionDrawingSurfaceInterop_Impl, - { + unsafe extern "system" fn SuspendDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionDrawingSurfaceInterop_Impl::SuspendDraw(this).into() } @@ -107,14 +80,8 @@ pub trait ICompositionDrawingSurfaceInterop2_Impl: Sized + ICompositionDrawingSu } impl windows_core::RuntimeName for ICompositionDrawingSurfaceInterop2 {} impl ICompositionDrawingSurfaceInterop2_Vtbl { - pub const fn new() -> ICompositionDrawingSurfaceInterop2_Vtbl - where - Identity: ICompositionDrawingSurfaceInterop2_Impl, - { - unsafe extern "system" fn CopySurface(this: *mut core::ffi::c_void, destinationresource: *mut core::ffi::c_void, destinationoffsetx: i32, destinationoffsety: i32, sourcerectangle: *const super::super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ICompositionDrawingSurfaceInterop2_Impl, - { + pub const fn new() -> ICompositionDrawingSurfaceInterop2_Vtbl { + unsafe extern "system" fn CopySurface(this: *mut core::ffi::c_void, destinationresource: *mut core::ffi::c_void, destinationoffsetx: i32, destinationoffsety: i32, sourcerectangle: *const super::super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionDrawingSurfaceInterop2_Impl::CopySurface(this, windows_core::from_raw_borrowed(&destinationresource), core::mem::transmute_copy(&destinationoffsetx), core::mem::transmute_copy(&destinationoffsety), core::mem::transmute_copy(&sourcerectangle)).into() } @@ -124,20 +91,14 @@ impl ICompositionDrawingSurfaceInterop2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ICompositionGraphicsDeviceInterop_Impl: Sized { +pub trait ICompositionGraphicsDeviceInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetRenderingDevice(&self) -> windows_core::Result; fn SetRenderingDevice(&self, value: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICompositionGraphicsDeviceInterop {} impl ICompositionGraphicsDeviceInterop_Vtbl { - pub const fn new() -> ICompositionGraphicsDeviceInterop_Vtbl - where - Identity: ICompositionGraphicsDeviceInterop_Impl, - { - unsafe extern "system" fn GetRenderingDevice(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositionGraphicsDeviceInterop_Impl, - { + pub const fn new() -> ICompositionGraphicsDeviceInterop_Vtbl { + unsafe extern "system" fn GetRenderingDevice(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositionGraphicsDeviceInterop_Impl::GetRenderingDevice(this) { Ok(ok__) => { @@ -147,10 +108,7 @@ impl ICompositionGraphicsDeviceInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRenderingDevice(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositionGraphicsDeviceInterop_Impl, - { + unsafe extern "system" fn SetRenderingDevice(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionGraphicsDeviceInterop_Impl::SetRenderingDevice(this, windows_core::from_raw_borrowed(&value)).into() } @@ -164,19 +122,13 @@ impl ICompositionGraphicsDeviceInterop_Vtbl { iid == &::IID } } -pub trait ICompositionTextureInterop_Impl: Sized { +pub trait ICompositionTextureInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetAvailableFence(&self, fencevalue: *mut u64, iid: *const windows_core::GUID, availablefence: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICompositionTextureInterop {} impl ICompositionTextureInterop_Vtbl { - pub const fn new() -> ICompositionTextureInterop_Vtbl - where - Identity: ICompositionTextureInterop_Impl, - { - unsafe extern "system" fn GetAvailableFence(this: *mut core::ffi::c_void, fencevalue: *mut u64, iid: *const windows_core::GUID, availablefence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositionTextureInterop_Impl, - { + pub const fn new() -> ICompositionTextureInterop_Vtbl { + unsafe extern "system" fn GetAvailableFence(this: *mut core::ffi::c_void, fencevalue: *mut u64, iid: *const windows_core::GUID, availablefence: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositionTextureInterop_Impl::GetAvailableFence(this, core::mem::transmute_copy(&fencevalue), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&availablefence)).into() } @@ -187,7 +139,7 @@ impl ICompositionTextureInterop_Vtbl { } } #[cfg(feature = "UI_Composition_Desktop")] -pub trait ICompositorDesktopInterop_Impl: Sized { +pub trait ICompositorDesktopInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateDesktopWindowTarget(&self, hwndtarget: super::super::super::Foundation::HWND, istopmost: super::super::super::Foundation::BOOL) -> windows_core::Result; fn EnsureOnThread(&self, threadid: u32) -> windows_core::Result<()>; } @@ -195,14 +147,8 @@ pub trait ICompositorDesktopInterop_Impl: Sized { impl windows_core::RuntimeName for ICompositorDesktopInterop {} #[cfg(feature = "UI_Composition_Desktop")] impl ICompositorDesktopInterop_Vtbl { - pub const fn new() -> ICompositorDesktopInterop_Vtbl - where - Identity: ICompositorDesktopInterop_Impl, - { - unsafe extern "system" fn CreateDesktopWindowTarget(this: *mut core::ffi::c_void, hwndtarget: super::super::super::Foundation::HWND, istopmost: super::super::super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositorDesktopInterop_Impl, - { + pub const fn new() -> ICompositorDesktopInterop_Vtbl { + unsafe extern "system" fn CreateDesktopWindowTarget(this: *mut core::ffi::c_void, hwndtarget: super::super::super::Foundation::HWND, istopmost: super::super::super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositorDesktopInterop_Impl::CreateDesktopWindowTarget(this, core::mem::transmute_copy(&hwndtarget), core::mem::transmute_copy(&istopmost)) { Ok(ok__) => { @@ -212,10 +158,7 @@ impl ICompositorDesktopInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnsureOnThread(this: *mut core::ffi::c_void, threadid: u32) -> windows_core::HRESULT - where - Identity: ICompositorDesktopInterop_Impl, - { + unsafe extern "system" fn EnsureOnThread(this: *mut core::ffi::c_void, threadid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICompositorDesktopInterop_Impl::EnsureOnThread(this, core::mem::transmute_copy(&threadid)).into() } @@ -230,7 +173,7 @@ impl ICompositorDesktopInterop_Vtbl { } } #[cfg(feature = "UI_Composition")] -pub trait ICompositorInterop_Impl: Sized { +pub trait ICompositorInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateCompositionSurfaceForHandle(&self, swapchain: super::super::super::Foundation::HANDLE) -> windows_core::Result; fn CreateCompositionSurfaceForSwapChain(&self, swapchain: Option<&windows_core::IUnknown>) -> windows_core::Result; fn CreateGraphicsDevice(&self, renderingdevice: Option<&windows_core::IUnknown>) -> windows_core::Result; @@ -239,14 +182,8 @@ pub trait ICompositorInterop_Impl: Sized { impl windows_core::RuntimeName for ICompositorInterop {} #[cfg(feature = "UI_Composition")] impl ICompositorInterop_Vtbl { - pub const fn new() -> ICompositorInterop_Vtbl - where - Identity: ICompositorInterop_Impl, - { - unsafe extern "system" fn CreateCompositionSurfaceForHandle(this: *mut core::ffi::c_void, swapchain: super::super::super::Foundation::HANDLE, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositorInterop_Impl, - { + pub const fn new() -> ICompositorInterop_Vtbl { + unsafe extern "system" fn CreateCompositionSurfaceForHandle(this: *mut core::ffi::c_void, swapchain: super::super::super::Foundation::HANDLE, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositorInterop_Impl::CreateCompositionSurfaceForHandle(this, core::mem::transmute_copy(&swapchain)) { Ok(ok__) => { @@ -256,10 +193,7 @@ impl ICompositorInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCompositionSurfaceForSwapChain(this: *mut core::ffi::c_void, swapchain: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositorInterop_Impl, - { + unsafe extern "system" fn CreateCompositionSurfaceForSwapChain(this: *mut core::ffi::c_void, swapchain: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositorInterop_Impl::CreateCompositionSurfaceForSwapChain(this, windows_core::from_raw_borrowed(&swapchain)) { Ok(ok__) => { @@ -269,10 +203,7 @@ impl ICompositorInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateGraphicsDevice(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositorInterop_Impl, - { + unsafe extern "system" fn CreateGraphicsDevice(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositorInterop_Impl::CreateGraphicsDevice(this, windows_core::from_raw_borrowed(&renderingdevice)) { Ok(ok__) => { @@ -294,7 +225,7 @@ impl ICompositorInterop_Vtbl { } } #[cfg(feature = "UI_Composition")] -pub trait ICompositorInterop2_Impl: Sized { +pub trait ICompositorInterop2_Impl: Sized + windows_core::IUnknownImpl { fn CheckCompositionTextureSupport(&self, renderingdevice: Option<&windows_core::IUnknown>) -> windows_core::Result; fn CreateCompositionTexture(&self, d3dtexture: Option<&windows_core::IUnknown>) -> windows_core::Result; } @@ -302,14 +233,8 @@ pub trait ICompositorInterop2_Impl: Sized { impl windows_core::RuntimeName for ICompositorInterop2 {} #[cfg(feature = "UI_Composition")] impl ICompositorInterop2_Vtbl { - pub const fn new() -> ICompositorInterop2_Vtbl - where - Identity: ICompositorInterop2_Impl, - { - unsafe extern "system" fn CheckCompositionTextureSupport(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, supportscompositiontextures: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICompositorInterop2_Impl, - { + pub const fn new() -> ICompositorInterop2_Vtbl { + unsafe extern "system" fn CheckCompositionTextureSupport(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, supportscompositiontextures: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositorInterop2_Impl::CheckCompositionTextureSupport(this, windows_core::from_raw_borrowed(&renderingdevice)) { Ok(ok__) => { @@ -319,10 +244,7 @@ impl ICompositorInterop2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCompositionTexture(this: *mut core::ffi::c_void, d3dtexture: *mut core::ffi::c_void, compositiontexture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICompositorInterop2_Impl, - { + unsafe extern "system" fn CreateCompositionTexture(this: *mut core::ffi::c_void, d3dtexture: *mut core::ffi::c_void, compositiontexture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositorInterop2_Impl::CreateCompositionTexture(this, windows_core::from_raw_borrowed(&d3dtexture)) { Ok(ok__) => { @@ -342,19 +264,13 @@ impl ICompositorInterop2_Vtbl { iid == &::IID } } -pub trait IDesktopWindowTargetInterop_Impl: Sized { +pub trait IDesktopWindowTargetInterop_Impl: Sized + windows_core::IUnknownImpl { fn Hwnd(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDesktopWindowTargetInterop {} impl IDesktopWindowTargetInterop_Vtbl { - pub const fn new() -> IDesktopWindowTargetInterop_Vtbl - where - Identity: IDesktopWindowTargetInterop_Impl, - { - unsafe extern "system" fn Hwnd(this: *mut core::ffi::c_void, value: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDesktopWindowTargetInterop_Impl, - { + pub const fn new() -> IDesktopWindowTargetInterop_Vtbl { + unsafe extern "system" fn Hwnd(this: *mut core::ffi::c_void, value: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDesktopWindowTargetInterop_Impl::Hwnd(this) { Ok(ok__) => { @@ -371,21 +287,15 @@ impl IDesktopWindowTargetInterop_Vtbl { } } #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IVisualInteractionSourceInterop_Impl: Sized { +pub trait IVisualInteractionSourceInterop_Impl: Sized + windows_core::IUnknownImpl { fn TryRedirectForManipulation(&self, pointerinfo: *const super::super::super::UI::Input::Pointer::POINTER_INFO) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] impl windows_core::RuntimeName for IVisualInteractionSourceInterop {} #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] impl IVisualInteractionSourceInterop_Vtbl { - pub const fn new() -> IVisualInteractionSourceInterop_Vtbl - where - Identity: IVisualInteractionSourceInterop_Impl, - { - unsafe extern "system" fn TryRedirectForManipulation(this: *mut core::ffi::c_void, pointerinfo: *const super::super::super::UI::Input::Pointer::POINTER_INFO) -> windows_core::HRESULT - where - Identity: IVisualInteractionSourceInterop_Impl, - { + pub const fn new() -> IVisualInteractionSourceInterop_Vtbl { + unsafe extern "system" fn TryRedirectForManipulation(this: *mut core::ffi::c_void, pointerinfo: *const super::super::super::UI::Input::Pointer::POINTER_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVisualInteractionSourceInterop_Impl::TryRedirectForManipulation(this, core::mem::transmute_copy(&pointerinfo)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/impl.rs index 41117e5bb2..b0a50f9b39 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/impl.rs @@ -1,16 +1,10 @@ -pub trait ICoreFrameworkInputViewInterop_Impl: Sized { +pub trait ICoreFrameworkInputViewInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, coreframeworkinputview: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICoreFrameworkInputViewInterop {} impl ICoreFrameworkInputViewInterop_Vtbl { - pub const fn new() -> ICoreFrameworkInputViewInterop_Vtbl - where - Identity: ICoreFrameworkInputViewInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, coreframeworkinputview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreFrameworkInputViewInterop_Impl, - { + pub const fn new() -> ICoreFrameworkInputViewInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, coreframeworkinputview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreFrameworkInputViewInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&coreframeworkinputview)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/impl.rs index 5ff0724bb6..c0ca79b8b9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/impl.rs @@ -1,16 +1,10 @@ -pub trait IDirect3DDxgiInterfaceAccess_Impl: Sized { +pub trait IDirect3DDxgiInterfaceAccess_Impl: Sized + windows_core::IUnknownImpl { fn GetInterface(&self, iid: *const windows_core::GUID, p: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDirect3DDxgiInterfaceAccess {} impl IDirect3DDxgiInterfaceAccess_Vtbl { - pub const fn new() -> IDirect3DDxgiInterfaceAccess_Vtbl - where - Identity: IDirect3DDxgiInterfaceAccess_Impl, - { - unsafe extern "system" fn GetInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, p: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDirect3DDxgiInterfaceAccess_Impl, - { + pub const fn new() -> IDirect3DDxgiInterfaceAccess_Vtbl { + unsafe extern "system" fn GetInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, p: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDxgiInterfaceAccess_Impl::GetInterface(this, core::mem::transmute_copy(&iid), core::mem::transmute_copy(&p)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/impl.rs index ede6e35679..5c7554e309 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_Security")] -pub trait IDisplayDeviceInterop_Impl: Sized { +pub trait IDisplayDeviceInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateSharedHandle(&self, pobject: Option<&windows_core::IInspectable>, psecurityattributes: *const super::super::super::Security::SECURITY_ATTRIBUTES, access: u32, name: &windows_core::HSTRING) -> windows_core::Result; fn OpenSharedHandle(&self, nthandle: super::super::super::Foundation::HANDLE, riid: &windows_core::GUID) -> windows_core::Result<*mut core::ffi::c_void>; } @@ -7,14 +7,8 @@ pub trait IDisplayDeviceInterop_Impl: Sized { impl windows_core::RuntimeName for IDisplayDeviceInterop {} #[cfg(feature = "Win32_Security")] impl IDisplayDeviceInterop_Vtbl { - pub const fn new() -> IDisplayDeviceInterop_Vtbl - where - Identity: IDisplayDeviceInterop_Impl, - { - unsafe extern "system" fn CreateSharedHandle(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, psecurityattributes: *const super::super::super::Security::SECURITY_ATTRIBUTES, access: u32, name: core::mem::MaybeUninit, phandle: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDisplayDeviceInterop_Impl, - { + pub const fn new() -> IDisplayDeviceInterop_Vtbl { + unsafe extern "system" fn CreateSharedHandle(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, psecurityattributes: *const super::super::super::Security::SECURITY_ATTRIBUTES, access: u32, name: core::mem::MaybeUninit, phandle: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDisplayDeviceInterop_Impl::CreateSharedHandle(this, windows_core::from_raw_borrowed(&pobject), core::mem::transmute_copy(&psecurityattributes), core::mem::transmute_copy(&access), core::mem::transmute(&name)) { Ok(ok__) => { @@ -24,10 +18,7 @@ impl IDisplayDeviceInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenSharedHandle(this: *mut core::ffi::c_void, nthandle: super::super::super::Foundation::HANDLE, riid: windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDisplayDeviceInterop_Impl, - { + unsafe extern "system" fn OpenSharedHandle(this: *mut core::ffi::c_void, nthandle: super::super::super::Foundation::HANDLE, riid: windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDisplayDeviceInterop_Impl::OpenSharedHandle(this, core::mem::transmute_copy(&nthandle), core::mem::transmute(&riid)) { Ok(ok__) => { @@ -47,20 +38,14 @@ impl IDisplayDeviceInterop_Vtbl { iid == &::IID } } -pub trait IDisplayPathInterop_Impl: Sized { +pub trait IDisplayPathInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateSourcePresentationHandle(&self) -> windows_core::Result; fn GetSourceId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDisplayPathInterop {} impl IDisplayPathInterop_Vtbl { - pub const fn new() -> IDisplayPathInterop_Vtbl - where - Identity: IDisplayPathInterop_Impl, - { - unsafe extern "system" fn CreateSourcePresentationHandle(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IDisplayPathInterop_Impl, - { + pub const fn new() -> IDisplayPathInterop_Vtbl { + unsafe extern "system" fn CreateSourcePresentationHandle(this: *mut core::ffi::c_void, pvalue: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDisplayPathInterop_Impl::CreateSourcePresentationHandle(this) { Ok(ok__) => { @@ -70,10 +55,7 @@ impl IDisplayPathInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceId(this: *mut core::ffi::c_void, psourceid: *mut u32) -> windows_core::HRESULT - where - Identity: IDisplayPathInterop_Impl, - { + unsafe extern "system" fn GetSourceId(this: *mut core::ffi::c_void, psourceid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDisplayPathInterop_Impl::GetSourceId(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/impl.rs index 5976225f5f..182bbda88d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IGraphicsCaptureItemInterop_Impl: Sized { +pub trait IGraphicsCaptureItemInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateForWindow(&self, window: super::super::super::super::Foundation::HWND, riid: *const windows_core::GUID, result: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateForMonitor(&self, monitor: super::super::super::super::Graphics::Gdi::HMONITOR, riid: *const windows_core::GUID, result: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } @@ -7,21 +7,12 @@ pub trait IGraphicsCaptureItemInterop_Impl: Sized { impl windows_core::RuntimeName for IGraphicsCaptureItemInterop {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IGraphicsCaptureItemInterop_Vtbl { - pub const fn new() -> IGraphicsCaptureItemInterop_Vtbl - where - Identity: IGraphicsCaptureItemInterop_Impl, - { - unsafe extern "system" fn CreateForWindow(this: *mut core::ffi::c_void, window: super::super::super::super::Foundation::HWND, riid: *const windows_core::GUID, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphicsCaptureItemInterop_Impl, - { + pub const fn new() -> IGraphicsCaptureItemInterop_Vtbl { + unsafe extern "system" fn CreateForWindow(this: *mut core::ffi::c_void, window: super::super::super::super::Foundation::HWND, riid: *const windows_core::GUID, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphicsCaptureItemInterop_Impl::CreateForWindow(this, core::mem::transmute_copy(&window), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&result)).into() } - unsafe extern "system" fn CreateForMonitor(this: *mut core::ffi::c_void, monitor: super::super::super::super::Graphics::Gdi::HMONITOR, riid: *const windows_core::GUID, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphicsCaptureItemInterop_Impl, - { + unsafe extern "system" fn CreateForMonitor(this: *mut core::ffi::c_void, monitor: super::super::super::super::Graphics::Gdi::HMONITOR, riid: *const windows_core::GUID, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphicsCaptureItemInterop_Impl::CreateForMonitor(this, core::mem::transmute_copy(&monitor), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&result)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/impl.rs index 2d01d9839d..82f276b8c8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_Graphics_Direct2D")] -pub trait IGeometrySource2DInterop_Impl: Sized { +pub trait IGeometrySource2DInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetGeometry(&self) -> windows_core::Result; fn TryGetGeometryUsingFactory(&self, factory: Option<&super::super::super::super::Graphics::Direct2D::ID2D1Factory>) -> windows_core::Result; } @@ -7,14 +7,8 @@ pub trait IGeometrySource2DInterop_Impl: Sized { impl windows_core::RuntimeName for IGeometrySource2DInterop {} #[cfg(feature = "Win32_Graphics_Direct2D")] impl IGeometrySource2DInterop_Vtbl { - pub const fn new() -> IGeometrySource2DInterop_Vtbl - where - Identity: IGeometrySource2DInterop_Impl, - { - unsafe extern "system" fn GetGeometry(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGeometrySource2DInterop_Impl, - { + pub const fn new() -> IGeometrySource2DInterop_Vtbl { + unsafe extern "system" fn GetGeometry(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGeometrySource2DInterop_Impl::GetGeometry(this) { Ok(ok__) => { @@ -24,10 +18,7 @@ impl IGeometrySource2DInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TryGetGeometryUsingFactory(this: *mut core::ffi::c_void, factory: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGeometrySource2DInterop_Impl, - { + unsafe extern "system" fn TryGetGeometryUsingFactory(this: *mut core::ffi::c_void, factory: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGeometrySource2DInterop_Impl::TryGetGeometryUsingFactory(this, windows_core::from_raw_borrowed(&factory)) { Ok(ok__) => { @@ -48,7 +39,7 @@ impl IGeometrySource2DInterop_Vtbl { } } #[cfg(all(feature = "Foundation", feature = "Graphics_Effects"))] -pub trait IGraphicsEffectD2D1Interop_Impl: Sized { +pub trait IGraphicsEffectD2D1Interop_Impl: Sized + windows_core::IUnknownImpl { fn GetEffectId(&self) -> windows_core::Result; fn GetNamedPropertyMapping(&self, name: &windows_core::PCWSTR, index: *mut u32, mapping: *mut GRAPHICS_EFFECT_PROPERTY_MAPPING) -> windows_core::Result<()>; fn GetPropertyCount(&self) -> windows_core::Result; @@ -60,14 +51,8 @@ pub trait IGraphicsEffectD2D1Interop_Impl: Sized { impl windows_core::RuntimeName for IGraphicsEffectD2D1Interop {} #[cfg(all(feature = "Foundation", feature = "Graphics_Effects"))] impl IGraphicsEffectD2D1Interop_Vtbl { - pub const fn new() -> IGraphicsEffectD2D1Interop_Vtbl - where - Identity: IGraphicsEffectD2D1Interop_Impl, - { - unsafe extern "system" fn GetEffectId(this: *mut core::ffi::c_void, id: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IGraphicsEffectD2D1Interop_Impl, - { + pub const fn new() -> IGraphicsEffectD2D1Interop_Vtbl { + unsafe extern "system" fn GetEffectId(this: *mut core::ffi::c_void, id: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphicsEffectD2D1Interop_Impl::GetEffectId(this) { Ok(ok__) => { @@ -77,17 +62,11 @@ impl IGraphicsEffectD2D1Interop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNamedPropertyMapping(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, index: *mut u32, mapping: *mut GRAPHICS_EFFECT_PROPERTY_MAPPING) -> windows_core::HRESULT - where - Identity: IGraphicsEffectD2D1Interop_Impl, - { + unsafe extern "system" fn GetNamedPropertyMapping(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, index: *mut u32, mapping: *mut GRAPHICS_EFFECT_PROPERTY_MAPPING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGraphicsEffectD2D1Interop_Impl::GetNamedPropertyMapping(this, core::mem::transmute(&name), core::mem::transmute_copy(&index), core::mem::transmute_copy(&mapping)).into() } - unsafe extern "system" fn GetPropertyCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IGraphicsEffectD2D1Interop_Impl, - { + unsafe extern "system" fn GetPropertyCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphicsEffectD2D1Interop_Impl::GetPropertyCount(this) { Ok(ok__) => { @@ -97,10 +76,7 @@ impl IGraphicsEffectD2D1Interop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, index: u32, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphicsEffectD2D1Interop_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, index: u32, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphicsEffectD2D1Interop_Impl::GetProperty(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -110,10 +86,7 @@ impl IGraphicsEffectD2D1Interop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, index: u32, source: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGraphicsEffectD2D1Interop_Impl, - { + unsafe extern "system" fn GetSource(this: *mut core::ffi::c_void, index: u32, source: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphicsEffectD2D1Interop_Impl::GetSource(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -123,10 +96,7 @@ impl IGraphicsEffectD2D1Interop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IGraphicsEffectD2D1Interop_Impl, - { + unsafe extern "system" fn GetSourceCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGraphicsEffectD2D1Interop_Impl::GetSourceCount(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/impl.rs index 4f74ad25ea..e399b095a9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/impl.rs @@ -1,16 +1,10 @@ -pub trait ISoftwareBitmapNative_Impl: Sized { +pub trait ISoftwareBitmapNative_Impl: Sized + windows_core::IUnknownImpl { fn GetData(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISoftwareBitmapNative {} impl ISoftwareBitmapNative_Vtbl { - pub const fn new() -> ISoftwareBitmapNative_Vtbl - where - Identity: ISoftwareBitmapNative_Impl, - { - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISoftwareBitmapNative_Impl, - { + pub const fn new() -> ISoftwareBitmapNative_Vtbl { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISoftwareBitmapNative_Impl::GetData(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -21,7 +15,7 @@ impl ISoftwareBitmapNative_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Imaging", feature = "Win32_Media_MediaFoundation"))] -pub trait ISoftwareBitmapNativeFactory_Impl: Sized { +pub trait ISoftwareBitmapNativeFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateFromWICBitmap(&self, data: Option<&super::super::super::super::Graphics::Imaging::IWICBitmap>, forcereadonly: super::super::super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateFromMF2DBuffer2(&self, data: Option<&super::super::super::super::Media::MediaFoundation::IMF2DBuffer2>, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: super::super::super::super::Foundation::BOOL, mindisplayaperture: *const super::super::super::super::Media::MediaFoundation::MFVideoArea, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } @@ -29,21 +23,12 @@ pub trait ISoftwareBitmapNativeFactory_Impl: Sized { impl windows_core::RuntimeName for ISoftwareBitmapNativeFactory {} #[cfg(all(feature = "Win32_Graphics_Imaging", feature = "Win32_Media_MediaFoundation"))] impl ISoftwareBitmapNativeFactory_Vtbl { - pub const fn new() -> ISoftwareBitmapNativeFactory_Vtbl - where - Identity: ISoftwareBitmapNativeFactory_Impl, - { - unsafe extern "system" fn CreateFromWICBitmap(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, forcereadonly: super::super::super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISoftwareBitmapNativeFactory_Impl, - { + pub const fn new() -> ISoftwareBitmapNativeFactory_Vtbl { + unsafe extern "system" fn CreateFromWICBitmap(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, forcereadonly: super::super::super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISoftwareBitmapNativeFactory_Impl::CreateFromWICBitmap(this, windows_core::from_raw_borrowed(&data), core::mem::transmute_copy(&forcereadonly), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateFromMF2DBuffer2(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: super::super::super::super::Foundation::BOOL, mindisplayaperture: *const super::super::super::super::Media::MediaFoundation::MFVideoArea, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISoftwareBitmapNativeFactory_Impl, - { + unsafe extern "system" fn CreateFromMF2DBuffer2(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: super::super::super::super::Foundation::BOOL, mindisplayaperture: *const super::super::super::super::Media::MediaFoundation::MFVideoArea, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISoftwareBitmapNativeFactory_Impl::CreateFromMF2DBuffer2(this, windows_core::from_raw_borrowed(&data), core::mem::transmute_copy(&subtype), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&forcereadonly), core::mem::transmute_copy(&mindisplayaperture), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/impl.rs index b0ace747f3..55969c88ca 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] -pub trait IHolographicCameraInterop_Impl: Sized { +pub trait IHolographicCameraInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateDirect3D12BackBufferResource(&self, pdevice: Option<&super::super::super::Graphics::Direct3D12::ID3D12Device>, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC) -> windows_core::Result; fn CreateDirect3D12HardwareProtectedBackBufferResource(&self, pdevice: Option<&super::super::super::Graphics::Direct3D12::ID3D12Device>, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, pprotectedresourcesession: Option<&super::super::super::Graphics::Direct3D12::ID3D12ProtectedResourceSession>) -> windows_core::Result; fn AcquireDirect3D12BufferResource(&self, presourcetoacquire: Option<&super::super::super::Graphics::Direct3D12::ID3D12Resource>, pcommandqueue: Option<&super::super::super::Graphics::Direct3D12::ID3D12CommandQueue>) -> windows_core::Result<()>; @@ -10,14 +10,8 @@ pub trait IHolographicCameraInterop_Impl: Sized { impl windows_core::RuntimeName for IHolographicCameraInterop {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl IHolographicCameraInterop_Vtbl { - pub const fn new() -> IHolographicCameraInterop_Vtbl - where - Identity: IHolographicCameraInterop_Impl, - { - unsafe extern "system" fn CreateDirect3D12BackBufferResource(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, ppcreatedtexture2dresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHolographicCameraInterop_Impl, - { + pub const fn new() -> IHolographicCameraInterop_Vtbl { + unsafe extern "system" fn CreateDirect3D12BackBufferResource(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, ppcreatedtexture2dresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHolographicCameraInterop_Impl::CreateDirect3D12BackBufferResource(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&ptexture2ddesc)) { Ok(ok__) => { @@ -27,10 +21,7 @@ impl IHolographicCameraInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDirect3D12HardwareProtectedBackBufferResource(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, pprotectedresourcesession: *mut core::ffi::c_void, ppcreatedtexture2dresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHolographicCameraInterop_Impl, - { + unsafe extern "system" fn CreateDirect3D12HardwareProtectedBackBufferResource(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, pprotectedresourcesession: *mut core::ffi::c_void, ppcreatedtexture2dresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHolographicCameraInterop_Impl::CreateDirect3D12HardwareProtectedBackBufferResource(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&ptexture2ddesc), windows_core::from_raw_borrowed(&pprotectedresourcesession)) { Ok(ok__) => { @@ -40,24 +31,15 @@ impl IHolographicCameraInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AcquireDirect3D12BufferResource(this: *mut core::ffi::c_void, presourcetoacquire: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHolographicCameraInterop_Impl, - { + unsafe extern "system" fn AcquireDirect3D12BufferResource(this: *mut core::ffi::c_void, presourcetoacquire: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolographicCameraInterop_Impl::AcquireDirect3D12BufferResource(this, windows_core::from_raw_borrowed(&presourcetoacquire), windows_core::from_raw_borrowed(&pcommandqueue)).into() } - unsafe extern "system" fn AcquireDirect3D12BufferResourceWithTimeout(this: *mut core::ffi::c_void, presourcetoacquire: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void, duration: u64) -> windows_core::HRESULT - where - Identity: IHolographicCameraInterop_Impl, - { + unsafe extern "system" fn AcquireDirect3D12BufferResourceWithTimeout(this: *mut core::ffi::c_void, presourcetoacquire: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void, duration: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolographicCameraInterop_Impl::AcquireDirect3D12BufferResourceWithTimeout(this, windows_core::from_raw_borrowed(&presourcetoacquire), windows_core::from_raw_borrowed(&pcommandqueue), core::mem::transmute_copy(&duration)).into() } - unsafe extern "system" fn UnacquireDirect3D12BufferResource(this: *mut core::ffi::c_void, presourcetounacquire: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHolographicCameraInterop_Impl, - { + unsafe extern "system" fn UnacquireDirect3D12BufferResource(this: *mut core::ffi::c_void, presourcetounacquire: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolographicCameraInterop_Impl::UnacquireDirect3D12BufferResource(this, windows_core::from_raw_borrowed(&presourcetounacquire)).into() } @@ -75,7 +57,7 @@ impl IHolographicCameraInterop_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -pub trait IHolographicCameraRenderingParametersInterop_Impl: Sized { +pub trait IHolographicCameraRenderingParametersInterop_Impl: Sized + windows_core::IUnknownImpl { fn CommitDirect3D12Resource(&self, pcolorresourcetocommit: Option<&super::super::super::Graphics::Direct3D12::ID3D12Resource>, pcolorresourcefence: Option<&super::super::super::Graphics::Direct3D12::ID3D12Fence>, colorresourcefencesignalvalue: u64) -> windows_core::Result<()>; fn CommitDirect3D12ResourceWithDepthData(&self, pcolorresourcetocommit: Option<&super::super::super::Graphics::Direct3D12::ID3D12Resource>, pcolorresourcefence: Option<&super::super::super::Graphics::Direct3D12::ID3D12Fence>, colorresourcefencesignalvalue: u64, pdepthresourcetocommit: Option<&super::super::super::Graphics::Direct3D12::ID3D12Resource>, pdepthresourcefence: Option<&super::super::super::Graphics::Direct3D12::ID3D12Fence>, depthresourcefencesignalvalue: u64) -> windows_core::Result<()>; } @@ -83,21 +65,12 @@ pub trait IHolographicCameraRenderingParametersInterop_Impl: Sized { impl windows_core::RuntimeName for IHolographicCameraRenderingParametersInterop {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl IHolographicCameraRenderingParametersInterop_Vtbl { - pub const fn new() -> IHolographicCameraRenderingParametersInterop_Vtbl - where - Identity: IHolographicCameraRenderingParametersInterop_Impl, - { - unsafe extern "system" fn CommitDirect3D12Resource(this: *mut core::ffi::c_void, pcolorresourcetocommit: *mut core::ffi::c_void, pcolorresourcefence: *mut core::ffi::c_void, colorresourcefencesignalvalue: u64) -> windows_core::HRESULT - where - Identity: IHolographicCameraRenderingParametersInterop_Impl, - { + pub const fn new() -> IHolographicCameraRenderingParametersInterop_Vtbl { + unsafe extern "system" fn CommitDirect3D12Resource(this: *mut core::ffi::c_void, pcolorresourcetocommit: *mut core::ffi::c_void, pcolorresourcefence: *mut core::ffi::c_void, colorresourcefencesignalvalue: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolographicCameraRenderingParametersInterop_Impl::CommitDirect3D12Resource(this, windows_core::from_raw_borrowed(&pcolorresourcetocommit), windows_core::from_raw_borrowed(&pcolorresourcefence), core::mem::transmute_copy(&colorresourcefencesignalvalue)).into() } - unsafe extern "system" fn CommitDirect3D12ResourceWithDepthData(this: *mut core::ffi::c_void, pcolorresourcetocommit: *mut core::ffi::c_void, pcolorresourcefence: *mut core::ffi::c_void, colorresourcefencesignalvalue: u64, pdepthresourcetocommit: *mut core::ffi::c_void, pdepthresourcefence: *mut core::ffi::c_void, depthresourcefencesignalvalue: u64) -> windows_core::HRESULT - where - Identity: IHolographicCameraRenderingParametersInterop_Impl, - { + unsafe extern "system" fn CommitDirect3D12ResourceWithDepthData(this: *mut core::ffi::c_void, pcolorresourcetocommit: *mut core::ffi::c_void, pcolorresourcefence: *mut core::ffi::c_void, colorresourcefencesignalvalue: u64, pdepthresourcetocommit: *mut core::ffi::c_void, pdepthresourcefence: *mut core::ffi::c_void, depthresourcefencesignalvalue: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolographicCameraRenderingParametersInterop_Impl::CommitDirect3D12ResourceWithDepthData(this, windows_core::from_raw_borrowed(&pcolorresourcetocommit), windows_core::from_raw_borrowed(&pcolorresourcefence), core::mem::transmute_copy(&colorresourcefencesignalvalue), windows_core::from_raw_borrowed(&pdepthresourcetocommit), windows_core::from_raw_borrowed(&pdepthresourcefence), core::mem::transmute_copy(&depthresourcefencesignalvalue)).into() } @@ -112,7 +85,7 @@ impl IHolographicCameraRenderingParametersInterop_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] -pub trait IHolographicQuadLayerInterop_Impl: Sized { +pub trait IHolographicQuadLayerInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateDirect3D12ContentBufferResource(&self, pdevice: Option<&super::super::super::Graphics::Direct3D12::ID3D12Device>, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC) -> windows_core::Result; fn CreateDirect3D12HardwareProtectedContentBufferResource(&self, pdevice: Option<&super::super::super::Graphics::Direct3D12::ID3D12Device>, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, pprotectedresourcesession: Option<&super::super::super::Graphics::Direct3D12::ID3D12ProtectedResourceSession>) -> windows_core::Result; fn AcquireDirect3D12BufferResource(&self, presourcetoacquire: Option<&super::super::super::Graphics::Direct3D12::ID3D12Resource>, pcommandqueue: Option<&super::super::super::Graphics::Direct3D12::ID3D12CommandQueue>) -> windows_core::Result<()>; @@ -123,14 +96,8 @@ pub trait IHolographicQuadLayerInterop_Impl: Sized { impl windows_core::RuntimeName for IHolographicQuadLayerInterop {} #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] impl IHolographicQuadLayerInterop_Vtbl { - pub const fn new() -> IHolographicQuadLayerInterop_Vtbl - where - Identity: IHolographicQuadLayerInterop_Impl, - { - unsafe extern "system" fn CreateDirect3D12ContentBufferResource(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, pptexture2dresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHolographicQuadLayerInterop_Impl, - { + pub const fn new() -> IHolographicQuadLayerInterop_Vtbl { + unsafe extern "system" fn CreateDirect3D12ContentBufferResource(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, pptexture2dresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHolographicQuadLayerInterop_Impl::CreateDirect3D12ContentBufferResource(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&ptexture2ddesc)) { Ok(ok__) => { @@ -140,10 +107,7 @@ impl IHolographicQuadLayerInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDirect3D12HardwareProtectedContentBufferResource(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, pprotectedresourcesession: *mut core::ffi::c_void, ppcreatedtexture2dresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHolographicQuadLayerInterop_Impl, - { + unsafe extern "system" fn CreateDirect3D12HardwareProtectedContentBufferResource(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, ptexture2ddesc: *const super::super::super::Graphics::Direct3D12::D3D12_RESOURCE_DESC, pprotectedresourcesession: *mut core::ffi::c_void, ppcreatedtexture2dresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHolographicQuadLayerInterop_Impl::CreateDirect3D12HardwareProtectedContentBufferResource(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&ptexture2ddesc), windows_core::from_raw_borrowed(&pprotectedresourcesession)) { Ok(ok__) => { @@ -153,24 +117,15 @@ impl IHolographicQuadLayerInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AcquireDirect3D12BufferResource(this: *mut core::ffi::c_void, presourcetoacquire: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHolographicQuadLayerInterop_Impl, - { + unsafe extern "system" fn AcquireDirect3D12BufferResource(this: *mut core::ffi::c_void, presourcetoacquire: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolographicQuadLayerInterop_Impl::AcquireDirect3D12BufferResource(this, windows_core::from_raw_borrowed(&presourcetoacquire), windows_core::from_raw_borrowed(&pcommandqueue)).into() } - unsafe extern "system" fn AcquireDirect3D12BufferResourceWithTimeout(this: *mut core::ffi::c_void, presourcetoacquire: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void, duration: u64) -> windows_core::HRESULT - where - Identity: IHolographicQuadLayerInterop_Impl, - { + unsafe extern "system" fn AcquireDirect3D12BufferResourceWithTimeout(this: *mut core::ffi::c_void, presourcetoacquire: *mut core::ffi::c_void, pcommandqueue: *mut core::ffi::c_void, duration: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolographicQuadLayerInterop_Impl::AcquireDirect3D12BufferResourceWithTimeout(this, windows_core::from_raw_borrowed(&presourcetoacquire), windows_core::from_raw_borrowed(&pcommandqueue), core::mem::transmute_copy(&duration)).into() } - unsafe extern "system" fn UnacquireDirect3D12BufferResource(this: *mut core::ffi::c_void, presourcetounacquire: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHolographicQuadLayerInterop_Impl, - { + unsafe extern "system" fn UnacquireDirect3D12BufferResource(this: *mut core::ffi::c_void, presourcetounacquire: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolographicQuadLayerInterop_Impl::UnacquireDirect3D12BufferResource(this, windows_core::from_raw_borrowed(&presourcetounacquire)).into() } @@ -188,21 +143,15 @@ impl IHolographicQuadLayerInterop_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -pub trait IHolographicQuadLayerUpdateParametersInterop_Impl: Sized { +pub trait IHolographicQuadLayerUpdateParametersInterop_Impl: Sized + windows_core::IUnknownImpl { fn CommitDirect3D12Resource(&self, pcolorresourcetocommit: Option<&super::super::super::Graphics::Direct3D12::ID3D12Resource>, pcolorresourcefence: Option<&super::super::super::Graphics::Direct3D12::ID3D12Fence>, colorresourcefencesignalvalue: u64) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Direct3D12")] impl windows_core::RuntimeName for IHolographicQuadLayerUpdateParametersInterop {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl IHolographicQuadLayerUpdateParametersInterop_Vtbl { - pub const fn new() -> IHolographicQuadLayerUpdateParametersInterop_Vtbl - where - Identity: IHolographicQuadLayerUpdateParametersInterop_Impl, - { - unsafe extern "system" fn CommitDirect3D12Resource(this: *mut core::ffi::c_void, pcolorresourcetocommit: *mut core::ffi::c_void, pcolorresourcefence: *mut core::ffi::c_void, colorresourcefencesignalvalue: u64) -> windows_core::HRESULT - where - Identity: IHolographicQuadLayerUpdateParametersInterop_Impl, - { + pub const fn new() -> IHolographicQuadLayerUpdateParametersInterop_Vtbl { + unsafe extern "system" fn CommitDirect3D12Resource(this: *mut core::ffi::c_void, pcolorresourcetocommit: *mut core::ffi::c_void, pcolorresourcefence: *mut core::ffi::c_void, colorresourcefencesignalvalue: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolographicQuadLayerUpdateParametersInterop_Impl::CommitDirect3D12Resource(this, windows_core::from_raw_borrowed(&pcolorresourcetocommit), windows_core::from_raw_borrowed(&pcolorresourcefence), core::mem::transmute_copy(&colorresourcefencesignalvalue)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/impl.rs index 2d9128d413..31944b07e1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/impl.rs @@ -1,16 +1,10 @@ -pub trait IIsolatedEnvironmentInterop_Impl: Sized { +pub trait IIsolatedEnvironmentInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetHostHwndInterop(&self, containerhwnd: super::super::super::Foundation::HWND) -> windows_core::Result; } impl windows_core::RuntimeName for IIsolatedEnvironmentInterop {} impl IIsolatedEnvironmentInterop_Vtbl { - pub const fn new() -> IIsolatedEnvironmentInterop_Vtbl - where - Identity: IIsolatedEnvironmentInterop_Impl, - { - unsafe extern "system" fn GetHostHwndInterop(this: *mut core::ffi::c_void, containerhwnd: super::super::super::Foundation::HWND, hosthwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IIsolatedEnvironmentInterop_Impl, - { + pub const fn new() -> IIsolatedEnvironmentInterop_Vtbl { + unsafe extern "system" fn GetHostHwndInterop(this: *mut core::ffi::c_void, containerhwnd: super::super::super::Foundation::HWND, hosthwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsolatedEnvironmentInterop_Impl::GetHostHwndInterop(this, core::mem::transmute_copy(&containerhwnd)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/impl.rs index bfa8dc6063..ed764303c1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/impl.rs @@ -1,19 +1,13 @@ #[cfg(feature = "Win32_Graphics_Direct3D12")] -pub trait ILearningModelDeviceFactoryNative_Impl: Sized { +pub trait ILearningModelDeviceFactoryNative_Impl: Sized + windows_core::IUnknownImpl { fn CreateFromD3D12CommandQueue(&self, value: Option<&super::super::super::Graphics::Direct3D12::ID3D12CommandQueue>) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Direct3D12")] impl windows_core::RuntimeName for ILearningModelDeviceFactoryNative {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ILearningModelDeviceFactoryNative_Vtbl { - pub const fn new() -> ILearningModelDeviceFactoryNative_Vtbl - where - Identity: ILearningModelDeviceFactoryNative_Impl, - { - unsafe extern "system" fn CreateFromD3D12CommandQueue(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILearningModelDeviceFactoryNative_Impl, - { + pub const fn new() -> ILearningModelDeviceFactoryNative_Vtbl { + unsafe extern "system" fn CreateFromD3D12CommandQueue(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILearningModelDeviceFactoryNative_Impl::CreateFromD3D12CommandQueue(this, windows_core::from_raw_borrowed(&value)) { Ok(ok__) => { @@ -30,21 +24,15 @@ impl ILearningModelDeviceFactoryNative_Vtbl { } } #[cfg(feature = "Win32_AI_MachineLearning_WinML")] -pub trait ILearningModelOperatorProviderNative_Impl: Sized { +pub trait ILearningModelOperatorProviderNative_Impl: Sized + windows_core::IUnknownImpl { fn GetRegistry(&self) -> windows_core::Result; } #[cfg(feature = "Win32_AI_MachineLearning_WinML")] impl windows_core::RuntimeName for ILearningModelOperatorProviderNative {} #[cfg(feature = "Win32_AI_MachineLearning_WinML")] impl ILearningModelOperatorProviderNative_Vtbl { - pub const fn new() -> ILearningModelOperatorProviderNative_Vtbl - where - Identity: ILearningModelOperatorProviderNative_Impl, - { - unsafe extern "system" fn GetRegistry(this: *mut core::ffi::c_void, ppoperatorregistry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILearningModelOperatorProviderNative_Impl, - { + pub const fn new() -> ILearningModelOperatorProviderNative_Vtbl { + unsafe extern "system" fn GetRegistry(this: *mut core::ffi::c_void, ppoperatorregistry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILearningModelOperatorProviderNative_Impl::GetRegistry(this) { Ok(ok__) => { @@ -60,19 +48,13 @@ impl ILearningModelOperatorProviderNative_Vtbl { iid == &::IID } } -pub trait ILearningModelSessionOptionsNative_Impl: Sized { +pub trait ILearningModelSessionOptionsNative_Impl: Sized + windows_core::IUnknownImpl { fn SetIntraOpNumThreadsOverride(&self, intraopnumthreads: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILearningModelSessionOptionsNative {} impl ILearningModelSessionOptionsNative_Vtbl { - pub const fn new() -> ILearningModelSessionOptionsNative_Vtbl - where - Identity: ILearningModelSessionOptionsNative_Impl, - { - unsafe extern "system" fn SetIntraOpNumThreadsOverride(this: *mut core::ffi::c_void, intraopnumthreads: u32) -> windows_core::HRESULT - where - Identity: ILearningModelSessionOptionsNative_Impl, - { + pub const fn new() -> ILearningModelSessionOptionsNative_Vtbl { + unsafe extern "system" fn SetIntraOpNumThreadsOverride(this: *mut core::ffi::c_void, intraopnumthreads: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILearningModelSessionOptionsNative_Impl::SetIntraOpNumThreadsOverride(this, core::mem::transmute_copy(&intraopnumthreads)).into() } @@ -82,19 +64,13 @@ impl ILearningModelSessionOptionsNative_Vtbl { iid == &::IID } } -pub trait ILearningModelSessionOptionsNative1_Impl: Sized { +pub trait ILearningModelSessionOptionsNative1_Impl: Sized + windows_core::IUnknownImpl { fn SetIntraOpThreadSpinning(&self, allowspinning: u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILearningModelSessionOptionsNative1 {} impl ILearningModelSessionOptionsNative1_Vtbl { - pub const fn new() -> ILearningModelSessionOptionsNative1_Vtbl - where - Identity: ILearningModelSessionOptionsNative1_Impl, - { - unsafe extern "system" fn SetIntraOpThreadSpinning(this: *mut core::ffi::c_void, allowspinning: u8) -> windows_core::HRESULT - where - Identity: ILearningModelSessionOptionsNative1_Impl, - { + pub const fn new() -> ILearningModelSessionOptionsNative1_Vtbl { + unsafe extern "system" fn SetIntraOpThreadSpinning(this: *mut core::ffi::c_void, allowspinning: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILearningModelSessionOptionsNative1_Impl::SetIntraOpThreadSpinning(this, core::mem::transmute_copy(&allowspinning)).into() } @@ -105,7 +81,7 @@ impl ILearningModelSessionOptionsNative1_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -pub trait ITensorNative_Impl: Sized { +pub trait ITensorNative_Impl: Sized + windows_core::IUnknownImpl { fn GetBuffer(&self, value: *mut *mut u8, capacity: *mut u32) -> windows_core::Result<()>; fn GetD3D12Resource(&self) -> windows_core::Result; } @@ -113,21 +89,12 @@ pub trait ITensorNative_Impl: Sized { impl windows_core::RuntimeName for ITensorNative {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ITensorNative_Vtbl { - pub const fn new() -> ITensorNative_Vtbl - where - Identity: ITensorNative_Impl, - { - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, value: *mut *mut u8, capacity: *mut u32) -> windows_core::HRESULT - where - Identity: ITensorNative_Impl, - { + pub const fn new() -> ITensorNative_Vtbl { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, value: *mut *mut u8, capacity: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITensorNative_Impl::GetBuffer(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&capacity)).into() } - unsafe extern "system" fn GetD3D12Resource(this: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITensorNative_Impl, - { + unsafe extern "system" fn GetD3D12Resource(this: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITensorNative_Impl::GetD3D12Resource(this) { Ok(ok__) => { @@ -148,21 +115,15 @@ impl ITensorNative_Vtbl { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -pub trait ITensorStaticsNative_Impl: Sized { +pub trait ITensorStaticsNative_Impl: Sized + windows_core::IUnknownImpl { fn CreateFromD3D12Resource(&self, value: Option<&super::super::super::Graphics::Direct3D12::ID3D12Resource>, shape: *mut i64, shapecount: i32, result: *mut Option) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Direct3D12")] impl windows_core::RuntimeName for ITensorStaticsNative {} #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ITensorStaticsNative_Vtbl { - pub const fn new() -> ITensorStaticsNative_Vtbl - where - Identity: ITensorStaticsNative_Impl, - { - unsafe extern "system" fn CreateFromD3D12Resource(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, shape: *mut i64, shapecount: i32, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITensorStaticsNative_Impl, - { + pub const fn new() -> ITensorStaticsNative_Vtbl { + unsafe extern "system" fn CreateFromD3D12Resource(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, shape: *mut i64, shapecount: i32, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITensorStaticsNative_Impl::CreateFromD3D12Resource(this, windows_core::from_raw_borrowed(&value), core::mem::transmute_copy(&shape), core::mem::transmute_copy(&shapecount), core::mem::transmute_copy(&result)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/impl.rs index 51460e63fb..472b70299c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/impl.rs @@ -1,16 +1,10 @@ -pub trait IAudioFrameNative_Impl: Sized { +pub trait IAudioFrameNative_Impl: Sized + windows_core::IUnknownImpl { fn GetData(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioFrameNative {} impl IAudioFrameNative_Vtbl { - pub const fn new() -> IAudioFrameNative_Vtbl - where - Identity: IAudioFrameNative_Impl, - { - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioFrameNative_Impl, - { + pub const fn new() -> IAudioFrameNative_Vtbl { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioFrameNative_Impl::GetData(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -21,21 +15,15 @@ impl IAudioFrameNative_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IAudioFrameNativeFactory_Impl: Sized { +pub trait IAudioFrameNativeFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateFromMFSample(&self, data: Option<&super::super::super::Media::MediaFoundation::IMFSample>, forcereadonly: super::super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Media_MediaFoundation")] impl windows_core::RuntimeName for IAudioFrameNativeFactory {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IAudioFrameNativeFactory_Vtbl { - pub const fn new() -> IAudioFrameNativeFactory_Vtbl - where - Identity: IAudioFrameNativeFactory_Impl, - { - unsafe extern "system" fn CreateFromMFSample(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, forcereadonly: super::super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAudioFrameNativeFactory_Impl, - { + pub const fn new() -> IAudioFrameNativeFactory_Vtbl { + unsafe extern "system" fn CreateFromMFSample(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, forcereadonly: super::super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioFrameNativeFactory_Impl::CreateFromMFSample(this, windows_core::from_raw_borrowed(&data), core::mem::transmute_copy(&forcereadonly), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -48,27 +36,18 @@ impl IAudioFrameNativeFactory_Vtbl { iid == &::IID } } -pub trait IVideoFrameNative_Impl: Sized { +pub trait IVideoFrameNative_Impl: Sized + windows_core::IUnknownImpl { fn GetData(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetDevice(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVideoFrameNative {} impl IVideoFrameNative_Vtbl { - pub const fn new() -> IVideoFrameNative_Vtbl - where - Identity: IVideoFrameNative_Impl, - { - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoFrameNative_Impl, - { + pub const fn new() -> IVideoFrameNative_Vtbl { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoFrameNative_Impl::GetData(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoFrameNative_Impl, - { + unsafe extern "system" fn GetDevice(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoFrameNative_Impl::GetDevice(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -83,21 +62,15 @@ impl IVideoFrameNative_Vtbl { } } #[cfg(feature = "Win32_Media_MediaFoundation")] -pub trait IVideoFrameNativeFactory_Impl: Sized { +pub trait IVideoFrameNativeFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateFromMFSample(&self, data: Option<&super::super::super::Media::MediaFoundation::IMFSample>, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: super::super::super::Foundation::BOOL, mindisplayaperture: *const super::super::super::Media::MediaFoundation::MFVideoArea, device: Option<&super::super::super::Media::MediaFoundation::IMFDXGIDeviceManager>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Media_MediaFoundation")] impl windows_core::RuntimeName for IVideoFrameNativeFactory {} #[cfg(feature = "Win32_Media_MediaFoundation")] impl IVideoFrameNativeFactory_Vtbl { - pub const fn new() -> IVideoFrameNativeFactory_Vtbl - where - Identity: IVideoFrameNativeFactory_Impl, - { - unsafe extern "system" fn CreateFromMFSample(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: super::super::super::Foundation::BOOL, mindisplayaperture: *const super::super::super::Media::MediaFoundation::MFVideoArea, device: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVideoFrameNativeFactory_Impl, - { + pub const fn new() -> IVideoFrameNativeFactory_Vtbl { + unsafe extern "system" fn CreateFromMFSample(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: super::super::super::Foundation::BOOL, mindisplayaperture: *const super::super::super::Media::MediaFoundation::MFVideoArea, device: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoFrameNativeFactory_Impl::CreateFromMFSample(this, windows_core::from_raw_borrowed(&data), core::mem::transmute_copy(&subtype), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&forcereadonly), core::mem::transmute_copy(&mindisplayaperture), windows_core::from_raw_borrowed(&device), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/impl.rs index e50deebe45..3c7aaf89fa 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/impl.rs @@ -1,4 +1,4 @@ -pub trait ICeeGen_Impl: Sized { +pub trait ICeeGen_Impl: Sized + windows_core::IUnknownImpl { fn EmitString(&self, lpstring: &windows_core::PCWSTR, rva: *mut u32) -> windows_core::Result<()>; fn GetString(&self, rva: u32, lpstring: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn AllocateMethodBuffer(&self, cchbuffer: u32, lpbuffer: *mut *mut u8, rva: *mut u32) -> windows_core::Result<()>; @@ -17,42 +17,24 @@ pub trait ICeeGen_Impl: Sized { } impl windows_core::RuntimeName for ICeeGen {} impl ICeeGen_Vtbl { - pub const fn new() -> ICeeGen_Vtbl - where - Identity: ICeeGen_Impl, - { - unsafe extern "system" fn EmitString(this: *mut core::ffi::c_void, lpstring: windows_core::PCWSTR, rva: *mut u32) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + pub const fn new() -> ICeeGen_Vtbl { + unsafe extern "system" fn EmitString(this: *mut core::ffi::c_void, lpstring: windows_core::PCWSTR, rva: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::EmitString(this, core::mem::transmute(&lpstring), core::mem::transmute_copy(&rva)).into() } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, rva: u32, lpstring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, rva: u32, lpstring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::GetString(this, core::mem::transmute_copy(&rva), core::mem::transmute_copy(&lpstring)).into() } - unsafe extern "system" fn AllocateMethodBuffer(this: *mut core::ffi::c_void, cchbuffer: u32, lpbuffer: *mut *mut u8, rva: *mut u32) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn AllocateMethodBuffer(this: *mut core::ffi::c_void, cchbuffer: u32, lpbuffer: *mut *mut u8, rva: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::AllocateMethodBuffer(this, core::mem::transmute_copy(&cchbuffer), core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&rva)).into() } - unsafe extern "system" fn GetMethodBuffer(this: *mut core::ffi::c_void, rva: u32, lpbuffer: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn GetMethodBuffer(this: *mut core::ffi::c_void, rva: u32, lpbuffer: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::GetMethodBuffer(this, core::mem::transmute_copy(&rva), core::mem::transmute_copy(&lpbuffer)).into() } - unsafe extern "system" fn GetIMapTokenIface(this: *mut core::ffi::c_void, pimaptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn GetIMapTokenIface(this: *mut core::ffi::c_void, pimaptoken: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICeeGen_Impl::GetIMapTokenIface(this) { Ok(ok__) => { @@ -62,73 +44,43 @@ impl ICeeGen_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GenerateCeeFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn GenerateCeeFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::GenerateCeeFile(this).into() } - unsafe extern "system" fn GetIlSection(this: *mut core::ffi::c_void, section: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn GetIlSection(this: *mut core::ffi::c_void, section: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::GetIlSection(this, core::mem::transmute_copy(§ion)).into() } - unsafe extern "system" fn GetStringSection(this: *mut core::ffi::c_void, section: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn GetStringSection(this: *mut core::ffi::c_void, section: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::GetStringSection(this, core::mem::transmute_copy(§ion)).into() } - unsafe extern "system" fn AddSectionReloc(this: *mut core::ffi::c_void, section: *mut core::ffi::c_void, offset: u32, relativeto: *mut core::ffi::c_void, reloctype: CeeSectionRelocType) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn AddSectionReloc(this: *mut core::ffi::c_void, section: *mut core::ffi::c_void, offset: u32, relativeto: *mut core::ffi::c_void, reloctype: CeeSectionRelocType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::AddSectionReloc(this, core::mem::transmute_copy(§ion), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&relativeto), core::mem::transmute_copy(&reloctype)).into() } - unsafe extern "system" fn GetSectionCreate(this: *mut core::ffi::c_void, name: windows_core::PCSTR, flags: u32, section: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn GetSectionCreate(this: *mut core::ffi::c_void, name: windows_core::PCSTR, flags: u32, section: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::GetSectionCreate(this, core::mem::transmute(&name), core::mem::transmute_copy(&flags), core::mem::transmute_copy(§ion)).into() } - unsafe extern "system" fn GetSectionDataLen(this: *mut core::ffi::c_void, section: *mut core::ffi::c_void, datalen: *mut u32) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn GetSectionDataLen(this: *mut core::ffi::c_void, section: *mut core::ffi::c_void, datalen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::GetSectionDataLen(this, core::mem::transmute_copy(§ion), core::mem::transmute_copy(&datalen)).into() } - unsafe extern "system" fn GetSectionBlock(this: *mut core::ffi::c_void, section: *mut core::ffi::c_void, len: u32, align: u32, ppbytes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn GetSectionBlock(this: *mut core::ffi::c_void, section: *mut core::ffi::c_void, len: u32, align: u32, ppbytes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::GetSectionBlock(this, core::mem::transmute_copy(§ion), core::mem::transmute_copy(&len), core::mem::transmute_copy(&align), core::mem::transmute_copy(&ppbytes)).into() } - unsafe extern "system" fn TruncateSection(this: *mut core::ffi::c_void, section: *mut core::ffi::c_void, len: u32) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn TruncateSection(this: *mut core::ffi::c_void, section: *mut core::ffi::c_void, len: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::TruncateSection(this, core::mem::transmute_copy(§ion), core::mem::transmute_copy(&len)).into() } - unsafe extern "system" fn GenerateCeeMemoryImage(this: *mut core::ffi::c_void, ppimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn GenerateCeeMemoryImage(this: *mut core::ffi::c_void, ppimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::GenerateCeeMemoryImage(this, core::mem::transmute_copy(&ppimage)).into() } - unsafe extern "system" fn ComputePointer(this: *mut core::ffi::c_void, section: *mut core::ffi::c_void, rva: u32, lpbuffer: *mut *mut u8) -> windows_core::HRESULT - where - Identity: ICeeGen_Impl, - { + unsafe extern "system" fn ComputePointer(this: *mut core::ffi::c_void, section: *mut core::ffi::c_void, rva: u32, lpbuffer: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICeeGen_Impl::ComputePointer(this, core::mem::transmute_copy(§ion), core::mem::transmute_copy(&rva), core::mem::transmute_copy(&lpbuffer)).into() } @@ -155,19 +107,13 @@ impl ICeeGen_Vtbl { iid == &::IID } } -pub trait IHostFilter_Impl: Sized { +pub trait IHostFilter_Impl: Sized + windows_core::IUnknownImpl { fn MarkToken(&self, tk: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHostFilter {} impl IHostFilter_Vtbl { - pub const fn new() -> IHostFilter_Vtbl - where - Identity: IHostFilter_Impl, - { - unsafe extern "system" fn MarkToken(this: *mut core::ffi::c_void, tk: u32) -> windows_core::HRESULT - where - Identity: IHostFilter_Impl, - { + pub const fn new() -> IHostFilter_Vtbl { + unsafe extern "system" fn MarkToken(this: *mut core::ffi::c_void, tk: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHostFilter_Impl::MarkToken(this, core::mem::transmute_copy(&tk)).into() } @@ -177,19 +123,13 @@ impl IHostFilter_Vtbl { iid == &::IID } } -pub trait IMapToken_Impl: Sized { +pub trait IMapToken_Impl: Sized + windows_core::IUnknownImpl { fn Map(&self, tkimp: u32, tkemit: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMapToken {} impl IMapToken_Vtbl { - pub const fn new() -> IMapToken_Vtbl - where - Identity: IMapToken_Impl, - { - unsafe extern "system" fn Map(this: *mut core::ffi::c_void, tkimp: u32, tkemit: u32) -> windows_core::HRESULT - where - Identity: IMapToken_Impl, - { + pub const fn new() -> IMapToken_Vtbl { + unsafe extern "system" fn Map(this: *mut core::ffi::c_void, tkimp: u32, tkemit: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMapToken_Impl::Map(this, core::mem::transmute_copy(&tkimp), core::mem::transmute_copy(&tkemit)).into() } @@ -199,7 +139,7 @@ impl IMapToken_Vtbl { iid == &::IID } } -pub trait IMetaDataAssemblyEmit_Impl: Sized { +pub trait IMetaDataAssemblyEmit_Impl: Sized + windows_core::IUnknownImpl { fn DefineAssembly(&self, pbpublickey: *const core::ffi::c_void, cbpublickey: u32, ulhashalgid: u32, szname: &windows_core::PCWSTR, pmetadata: *const ASSEMBLYMETADATA, dwassemblyflags: u32, pma: *mut u32) -> windows_core::Result<()>; fn DefineAssemblyRef(&self, pbpublickeyortoken: *const core::ffi::c_void, cbpublickeyortoken: u32, szname: &windows_core::PCWSTR, pmetadata: *const ASSEMBLYMETADATA, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwassemblyrefflags: u32, pmdar: *mut u32) -> windows_core::Result<()>; fn DefineFile(&self, szname: &windows_core::PCWSTR, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwfileflags: u32, pmdf: *mut u32) -> windows_core::Result<()>; @@ -213,77 +153,44 @@ pub trait IMetaDataAssemblyEmit_Impl: Sized { } impl windows_core::RuntimeName for IMetaDataAssemblyEmit {} impl IMetaDataAssemblyEmit_Vtbl { - pub const fn new() -> IMetaDataAssemblyEmit_Vtbl - where - Identity: IMetaDataAssemblyEmit_Impl, - { - unsafe extern "system" fn DefineAssembly(this: *mut core::ffi::c_void, pbpublickey: *const core::ffi::c_void, cbpublickey: u32, ulhashalgid: u32, szname: windows_core::PCWSTR, pmetadata: *const ASSEMBLYMETADATA, dwassemblyflags: u32, pma: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyEmit_Impl, - { + pub const fn new() -> IMetaDataAssemblyEmit_Vtbl { + unsafe extern "system" fn DefineAssembly(this: *mut core::ffi::c_void, pbpublickey: *const core::ffi::c_void, cbpublickey: u32, ulhashalgid: u32, szname: windows_core::PCWSTR, pmetadata: *const ASSEMBLYMETADATA, dwassemblyflags: u32, pma: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyEmit_Impl::DefineAssembly(this, core::mem::transmute_copy(&pbpublickey), core::mem::transmute_copy(&cbpublickey), core::mem::transmute_copy(&ulhashalgid), core::mem::transmute(&szname), core::mem::transmute_copy(&pmetadata), core::mem::transmute_copy(&dwassemblyflags), core::mem::transmute_copy(&pma)).into() } - unsafe extern "system" fn DefineAssemblyRef(this: *mut core::ffi::c_void, pbpublickeyortoken: *const core::ffi::c_void, cbpublickeyortoken: u32, szname: windows_core::PCWSTR, pmetadata: *const ASSEMBLYMETADATA, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwassemblyrefflags: u32, pmdar: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyEmit_Impl, - { + unsafe extern "system" fn DefineAssemblyRef(this: *mut core::ffi::c_void, pbpublickeyortoken: *const core::ffi::c_void, cbpublickeyortoken: u32, szname: windows_core::PCWSTR, pmetadata: *const ASSEMBLYMETADATA, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwassemblyrefflags: u32, pmdar: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyEmit_Impl::DefineAssemblyRef(this, core::mem::transmute_copy(&pbpublickeyortoken), core::mem::transmute_copy(&cbpublickeyortoken), core::mem::transmute(&szname), core::mem::transmute_copy(&pmetadata), core::mem::transmute_copy(&pbhashvalue), core::mem::transmute_copy(&cbhashvalue), core::mem::transmute_copy(&dwassemblyrefflags), core::mem::transmute_copy(&pmdar)).into() } - unsafe extern "system" fn DefineFile(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwfileflags: u32, pmdf: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyEmit_Impl, - { + unsafe extern "system" fn DefineFile(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwfileflags: u32, pmdf: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyEmit_Impl::DefineFile(this, core::mem::transmute(&szname), core::mem::transmute_copy(&pbhashvalue), core::mem::transmute_copy(&cbhashvalue), core::mem::transmute_copy(&dwfileflags), core::mem::transmute_copy(&pmdf)).into() } - unsafe extern "system" fn DefineExportedType(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, tkimplementation: u32, tktypedef: u32, dwexportedtypeflags: u32, pmdct: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyEmit_Impl, - { + unsafe extern "system" fn DefineExportedType(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, tkimplementation: u32, tktypedef: u32, dwexportedtypeflags: u32, pmdct: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyEmit_Impl::DefineExportedType(this, core::mem::transmute(&szname), core::mem::transmute_copy(&tkimplementation), core::mem::transmute_copy(&tktypedef), core::mem::transmute_copy(&dwexportedtypeflags), core::mem::transmute_copy(&pmdct)).into() } - unsafe extern "system" fn DefineManifestResource(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, tkimplementation: u32, dwoffset: u32, dwresourceflags: u32, pmdmr: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyEmit_Impl, - { + unsafe extern "system" fn DefineManifestResource(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, tkimplementation: u32, dwoffset: u32, dwresourceflags: u32, pmdmr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyEmit_Impl::DefineManifestResource(this, core::mem::transmute(&szname), core::mem::transmute_copy(&tkimplementation), core::mem::transmute_copy(&dwoffset), core::mem::transmute_copy(&dwresourceflags), core::mem::transmute_copy(&pmdmr)).into() } - unsafe extern "system" fn SetAssemblyProps(this: *mut core::ffi::c_void, pma: u32, pbpublickey: *const core::ffi::c_void, cbpublickey: u32, ulhashalgid: u32, szname: windows_core::PCWSTR, pmetadata: *const ASSEMBLYMETADATA, dwassemblyflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyEmit_Impl, - { + unsafe extern "system" fn SetAssemblyProps(this: *mut core::ffi::c_void, pma: u32, pbpublickey: *const core::ffi::c_void, cbpublickey: u32, ulhashalgid: u32, szname: windows_core::PCWSTR, pmetadata: *const ASSEMBLYMETADATA, dwassemblyflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyEmit_Impl::SetAssemblyProps(this, core::mem::transmute_copy(&pma), core::mem::transmute_copy(&pbpublickey), core::mem::transmute_copy(&cbpublickey), core::mem::transmute_copy(&ulhashalgid), core::mem::transmute(&szname), core::mem::transmute_copy(&pmetadata), core::mem::transmute_copy(&dwassemblyflags)).into() } - unsafe extern "system" fn SetAssemblyRefProps(this: *mut core::ffi::c_void, ar: u32, pbpublickeyortoken: *const core::ffi::c_void, cbpublickeyortoken: u32, szname: windows_core::PCWSTR, pmetadata: *const ASSEMBLYMETADATA, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwassemblyrefflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyEmit_Impl, - { + unsafe extern "system" fn SetAssemblyRefProps(this: *mut core::ffi::c_void, ar: u32, pbpublickeyortoken: *const core::ffi::c_void, cbpublickeyortoken: u32, szname: windows_core::PCWSTR, pmetadata: *const ASSEMBLYMETADATA, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwassemblyrefflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyEmit_Impl::SetAssemblyRefProps(this, core::mem::transmute_copy(&ar), core::mem::transmute_copy(&pbpublickeyortoken), core::mem::transmute_copy(&cbpublickeyortoken), core::mem::transmute(&szname), core::mem::transmute_copy(&pmetadata), core::mem::transmute_copy(&pbhashvalue), core::mem::transmute_copy(&cbhashvalue), core::mem::transmute_copy(&dwassemblyrefflags)).into() } - unsafe extern "system" fn SetFileProps(this: *mut core::ffi::c_void, file: u32, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwfileflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyEmit_Impl, - { + unsafe extern "system" fn SetFileProps(this: *mut core::ffi::c_void, file: u32, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, dwfileflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyEmit_Impl::SetFileProps(this, core::mem::transmute_copy(&file), core::mem::transmute_copy(&pbhashvalue), core::mem::transmute_copy(&cbhashvalue), core::mem::transmute_copy(&dwfileflags)).into() } - unsafe extern "system" fn SetExportedTypeProps(this: *mut core::ffi::c_void, ct: u32, tkimplementation: u32, tktypedef: u32, dwexportedtypeflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyEmit_Impl, - { + unsafe extern "system" fn SetExportedTypeProps(this: *mut core::ffi::c_void, ct: u32, tkimplementation: u32, tktypedef: u32, dwexportedtypeflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyEmit_Impl::SetExportedTypeProps(this, core::mem::transmute_copy(&ct), core::mem::transmute_copy(&tkimplementation), core::mem::transmute_copy(&tktypedef), core::mem::transmute_copy(&dwexportedtypeflags)).into() } - unsafe extern "system" fn SetManifestResourceProps(this: *mut core::ffi::c_void, mr: u32, tkimplementation: u32, dwoffset: u32, dwresourceflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyEmit_Impl, - { + unsafe extern "system" fn SetManifestResourceProps(this: *mut core::ffi::c_void, mr: u32, tkimplementation: u32, dwoffset: u32, dwresourceflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyEmit_Impl::SetManifestResourceProps(this, core::mem::transmute_copy(&mr), core::mem::transmute_copy(&tkimplementation), core::mem::transmute_copy(&dwoffset), core::mem::transmute_copy(&dwresourceflags)).into() } @@ -305,7 +212,7 @@ impl IMetaDataAssemblyEmit_Vtbl { iid == &::IID } } -pub trait IMetaDataAssemblyImport_Impl: Sized { +pub trait IMetaDataAssemblyImport_Impl: Sized + windows_core::IUnknownImpl { fn GetAssemblyProps(&self, mda: u32, ppbpublickey: *const *const core::ffi::c_void, pcbpublickey: *mut u32, pulhashalgid: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pmetadata: *mut ASSEMBLYMETADATA, pdwassemblyflags: *mut u32) -> windows_core::Result<()>; fn GetAssemblyRefProps(&self, mdar: u32, ppbpublickeyortoken: *const *const core::ffi::c_void, pcbpublickeyortoken: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pmetadata: *mut ASSEMBLYMETADATA, ppbhashvalue: *const *const core::ffi::c_void, pcbhashvalue: *mut u32, pdwassemblyrefflags: *mut u32) -> windows_core::Result<()>; fn GetFileProps(&self, mdf: u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, ppbhashvalue: *const *const core::ffi::c_void, pcbhashvalue: *mut u32, pdwfileflags: *mut u32) -> windows_core::Result<()>; @@ -323,105 +230,60 @@ pub trait IMetaDataAssemblyImport_Impl: Sized { } impl windows_core::RuntimeName for IMetaDataAssemblyImport {} impl IMetaDataAssemblyImport_Vtbl { - pub const fn new() -> IMetaDataAssemblyImport_Vtbl - where - Identity: IMetaDataAssemblyImport_Impl, - { - unsafe extern "system" fn GetAssemblyProps(this: *mut core::ffi::c_void, mda: u32, ppbpublickey: *const *const core::ffi::c_void, pcbpublickey: *mut u32, pulhashalgid: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pmetadata: *mut ASSEMBLYMETADATA, pdwassemblyflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + pub const fn new() -> IMetaDataAssemblyImport_Vtbl { + unsafe extern "system" fn GetAssemblyProps(this: *mut core::ffi::c_void, mda: u32, ppbpublickey: *const *const core::ffi::c_void, pcbpublickey: *mut u32, pulhashalgid: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pmetadata: *mut ASSEMBLYMETADATA, pdwassemblyflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::GetAssemblyProps(this, core::mem::transmute_copy(&mda), core::mem::transmute_copy(&ppbpublickey), core::mem::transmute_copy(&pcbpublickey), core::mem::transmute_copy(&pulhashalgid), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname), core::mem::transmute_copy(&pmetadata), core::mem::transmute_copy(&pdwassemblyflags)).into() } - unsafe extern "system" fn GetAssemblyRefProps(this: *mut core::ffi::c_void, mdar: u32, ppbpublickeyortoken: *const *const core::ffi::c_void, pcbpublickeyortoken: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pmetadata: *mut ASSEMBLYMETADATA, ppbhashvalue: *const *const core::ffi::c_void, pcbhashvalue: *mut u32, pdwassemblyrefflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn GetAssemblyRefProps(this: *mut core::ffi::c_void, mdar: u32, ppbpublickeyortoken: *const *const core::ffi::c_void, pcbpublickeyortoken: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pmetadata: *mut ASSEMBLYMETADATA, ppbhashvalue: *const *const core::ffi::c_void, pcbhashvalue: *mut u32, pdwassemblyrefflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::GetAssemblyRefProps(this, core::mem::transmute_copy(&mdar), core::mem::transmute_copy(&ppbpublickeyortoken), core::mem::transmute_copy(&pcbpublickeyortoken), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname), core::mem::transmute_copy(&pmetadata), core::mem::transmute_copy(&ppbhashvalue), core::mem::transmute_copy(&pcbhashvalue), core::mem::transmute_copy(&pdwassemblyrefflags)).into() } - unsafe extern "system" fn GetFileProps(this: *mut core::ffi::c_void, mdf: u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, ppbhashvalue: *const *const core::ffi::c_void, pcbhashvalue: *mut u32, pdwfileflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn GetFileProps(this: *mut core::ffi::c_void, mdf: u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, ppbhashvalue: *const *const core::ffi::c_void, pcbhashvalue: *mut u32, pdwfileflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::GetFileProps(this, core::mem::transmute_copy(&mdf), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname), core::mem::transmute_copy(&ppbhashvalue), core::mem::transmute_copy(&pcbhashvalue), core::mem::transmute_copy(&pdwfileflags)).into() } - unsafe extern "system" fn GetExportedTypeProps(this: *mut core::ffi::c_void, mdct: u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, ptkimplementation: *mut u32, ptktypedef: *mut u32, pdwexportedtypeflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn GetExportedTypeProps(this: *mut core::ffi::c_void, mdct: u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, ptkimplementation: *mut u32, ptktypedef: *mut u32, pdwexportedtypeflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::GetExportedTypeProps(this, core::mem::transmute_copy(&mdct), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname), core::mem::transmute_copy(&ptkimplementation), core::mem::transmute_copy(&ptktypedef), core::mem::transmute_copy(&pdwexportedtypeflags)).into() } - unsafe extern "system" fn GetManifestResourceProps(this: *mut core::ffi::c_void, mdmr: u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, ptkimplementation: *mut u32, pdwoffset: *mut u32, pdwresourceflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn GetManifestResourceProps(this: *mut core::ffi::c_void, mdmr: u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, ptkimplementation: *mut u32, pdwoffset: *mut u32, pdwresourceflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::GetManifestResourceProps(this, core::mem::transmute_copy(&mdmr), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname), core::mem::transmute_copy(&ptkimplementation), core::mem::transmute_copy(&pdwoffset), core::mem::transmute_copy(&pdwresourceflags)).into() } - unsafe extern "system" fn EnumAssemblyRefs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rassemblyrefs: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn EnumAssemblyRefs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rassemblyrefs: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::EnumAssemblyRefs(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rassemblyrefs), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumFiles(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rfiles: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn EnumFiles(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rfiles: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::EnumFiles(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rfiles), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumExportedTypes(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rexportedtypes: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn EnumExportedTypes(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rexportedtypes: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::EnumExportedTypes(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rexportedtypes), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumManifestResources(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rmanifestresources: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn EnumManifestResources(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rmanifestresources: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::EnumManifestResources(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rmanifestresources), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn GetAssemblyFromScope(this: *mut core::ffi::c_void, ptkassembly: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn GetAssemblyFromScope(this: *mut core::ffi::c_void, ptkassembly: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::GetAssemblyFromScope(this, core::mem::transmute_copy(&ptkassembly)).into() } - unsafe extern "system" fn FindExportedTypeByName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, mdtexportedtype: u32, ptkexportedtype: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn FindExportedTypeByName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, mdtexportedtype: u32, ptkexportedtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::FindExportedTypeByName(this, core::mem::transmute(&szname), core::mem::transmute_copy(&mdtexportedtype), core::mem::transmute_copy(&ptkexportedtype)).into() } - unsafe extern "system" fn FindManifestResourceByName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, ptkmanifestresource: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn FindManifestResourceByName(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, ptkmanifestresource: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::FindManifestResourceByName(this, core::mem::transmute(&szname), core::mem::transmute_copy(&ptkmanifestresource)).into() } - unsafe extern "system" fn CloseEnum(this: *mut core::ffi::c_void, henum: *mut core::ffi::c_void) - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn CloseEnum(this: *mut core::ffi::c_void, henum: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::CloseEnum(this, core::mem::transmute_copy(&henum)) } - unsafe extern "system" fn FindAssembliesByName(this: *mut core::ffi::c_void, szappbase: windows_core::PCWSTR, szprivatebin: windows_core::PCWSTR, szassemblyname: windows_core::PCWSTR, ppiunk: *mut *mut core::ffi::c_void, cmax: u32, pcassemblies: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataAssemblyImport_Impl, - { + unsafe extern "system" fn FindAssembliesByName(this: *mut core::ffi::c_void, szappbase: windows_core::PCWSTR, szprivatebin: windows_core::PCWSTR, szassemblyname: windows_core::PCWSTR, ppiunk: *mut *mut core::ffi::c_void, cmax: u32, pcassemblies: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataAssemblyImport_Impl::FindAssembliesByName(this, core::mem::transmute(&szappbase), core::mem::transmute(&szprivatebin), core::mem::transmute(&szassemblyname), core::mem::transmute_copy(&ppiunk), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcassemblies)).into() } @@ -447,21 +309,15 @@ impl IMetaDataAssemblyImport_Vtbl { iid == &::IID } } -pub trait IMetaDataDispenser_Impl: Sized { +pub trait IMetaDataDispenser_Impl: Sized + windows_core::IUnknownImpl { fn DefineScope(&self, rclsid: *const windows_core::GUID, dwcreateflags: u32, riid: *const windows_core::GUID) -> windows_core::Result; fn OpenScope(&self, szscope: &windows_core::PCWSTR, dwopenflags: u32, riid: *const windows_core::GUID) -> windows_core::Result; fn OpenScopeOnMemory(&self, pdata: *const core::ffi::c_void, cbdata: u32, dwopenflags: u32, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IMetaDataDispenser {} impl IMetaDataDispenser_Vtbl { - pub const fn new() -> IMetaDataDispenser_Vtbl - where - Identity: IMetaDataDispenser_Impl, - { - unsafe extern "system" fn DefineScope(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, dwcreateflags: u32, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataDispenser_Impl, - { + pub const fn new() -> IMetaDataDispenser_Vtbl { + unsafe extern "system" fn DefineScope(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, dwcreateflags: u32, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMetaDataDispenser_Impl::DefineScope(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&dwcreateflags), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -471,10 +327,7 @@ impl IMetaDataDispenser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenScope(this: *mut core::ffi::c_void, szscope: windows_core::PCWSTR, dwopenflags: u32, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataDispenser_Impl, - { + unsafe extern "system" fn OpenScope(this: *mut core::ffi::c_void, szscope: windows_core::PCWSTR, dwopenflags: u32, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMetaDataDispenser_Impl::OpenScope(this, core::mem::transmute(&szscope), core::mem::transmute_copy(&dwopenflags), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -484,10 +337,7 @@ impl IMetaDataDispenser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenScopeOnMemory(this: *mut core::ffi::c_void, pdata: *const core::ffi::c_void, cbdata: u32, dwopenflags: u32, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataDispenser_Impl, - { + unsafe extern "system" fn OpenScopeOnMemory(this: *mut core::ffi::c_void, pdata: *const core::ffi::c_void, cbdata: u32, dwopenflags: u32, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMetaDataDispenser_Impl::OpenScopeOnMemory(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&dwopenflags), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -521,28 +371,16 @@ pub trait IMetaDataDispenserEx_Impl: Sized + IMetaDataDispenser_Impl { impl windows_core::RuntimeName for IMetaDataDispenserEx {} #[cfg(feature = "Win32_System_Com")] impl IMetaDataDispenserEx_Vtbl { - pub const fn new() -> IMetaDataDispenserEx_Vtbl - where - Identity: IMetaDataDispenserEx_Impl, - { - unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, optionid: *const windows_core::GUID, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMetaDataDispenserEx_Impl, - { + pub const fn new() -> IMetaDataDispenserEx_Vtbl { + unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, optionid: *const windows_core::GUID, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataDispenserEx_Impl::SetOption(this, core::mem::transmute_copy(&optionid), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetOption(this: *mut core::ffi::c_void, optionid: *const windows_core::GUID, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMetaDataDispenserEx_Impl, - { + unsafe extern "system" fn GetOption(this: *mut core::ffi::c_void, optionid: *const windows_core::GUID, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataDispenserEx_Impl::GetOption(this, core::mem::transmute_copy(&optionid), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn OpenScopeOnITypeInfo(this: *mut core::ffi::c_void, piti: *mut core::ffi::c_void, dwopenflags: u32, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataDispenserEx_Impl, - { + unsafe extern "system" fn OpenScopeOnITypeInfo(this: *mut core::ffi::c_void, piti: *mut core::ffi::c_void, dwopenflags: u32, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMetaDataDispenserEx_Impl::OpenScopeOnITypeInfo(this, windows_core::from_raw_borrowed(&piti), core::mem::transmute_copy(&dwopenflags), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -552,24 +390,15 @@ impl IMetaDataDispenserEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCORSystemDirectory(this: *mut core::ffi::c_void, szbuffer: windows_core::PWSTR, cchbuffer: u32, pchbuffer: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataDispenserEx_Impl, - { + unsafe extern "system" fn GetCORSystemDirectory(this: *mut core::ffi::c_void, szbuffer: windows_core::PWSTR, cchbuffer: u32, pchbuffer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataDispenserEx_Impl::GetCORSystemDirectory(this, core::mem::transmute_copy(&szbuffer), core::mem::transmute_copy(&cchbuffer), core::mem::transmute_copy(&pchbuffer)).into() } - unsafe extern "system" fn FindAssembly(this: *mut core::ffi::c_void, szappbase: windows_core::PCWSTR, szprivatebin: windows_core::PCWSTR, szglobalbin: windows_core::PCWSTR, szassemblyname: windows_core::PCWSTR, szname: windows_core::PCWSTR, cchname: u32, pcname: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataDispenserEx_Impl, - { + unsafe extern "system" fn FindAssembly(this: *mut core::ffi::c_void, szappbase: windows_core::PCWSTR, szprivatebin: windows_core::PCWSTR, szglobalbin: windows_core::PCWSTR, szassemblyname: windows_core::PCWSTR, szname: windows_core::PCWSTR, cchname: u32, pcname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataDispenserEx_Impl::FindAssembly(this, core::mem::transmute(&szappbase), core::mem::transmute(&szprivatebin), core::mem::transmute(&szglobalbin), core::mem::transmute(&szassemblyname), core::mem::transmute(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pcname)).into() } - unsafe extern "system" fn FindAssemblyModule(this: *mut core::ffi::c_void, szappbase: windows_core::PCWSTR, szprivatebin: windows_core::PCWSTR, szglobalbin: windows_core::PCWSTR, szassemblyname: windows_core::PCWSTR, szmodulename: windows_core::PCWSTR, szname: windows_core::PWSTR, cchname: u32, pcname: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataDispenserEx_Impl, - { + unsafe extern "system" fn FindAssemblyModule(this: *mut core::ffi::c_void, szappbase: windows_core::PCWSTR, szprivatebin: windows_core::PCWSTR, szglobalbin: windows_core::PCWSTR, szassemblyname: windows_core::PCWSTR, szmodulename: windows_core::PCWSTR, szname: windows_core::PWSTR, cchname: u32, pcname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataDispenserEx_Impl::FindAssemblyModule(this, core::mem::transmute(&szappbase), core::mem::transmute(&szprivatebin), core::mem::transmute(&szglobalbin), core::mem::transmute(&szassemblyname), core::mem::transmute(&szmodulename), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pcname)).into() } @@ -588,7 +417,7 @@ impl IMetaDataDispenserEx_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMetaDataEmit_Impl: Sized { +pub trait IMetaDataEmit_Impl: Sized + windows_core::IUnknownImpl { fn SetModuleProps(&self, szname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Save(&self, szfile: &windows_core::PCWSTR, dwsaveflags: u32) -> windows_core::Result<()>; fn SaveToStream(&self, pistream: Option<&super::super::Com::IStream>, dwsaveflags: u32) -> windows_core::Result<()>; @@ -643,350 +472,200 @@ pub trait IMetaDataEmit_Impl: Sized { impl windows_core::RuntimeName for IMetaDataEmit {} #[cfg(feature = "Win32_System_Com")] impl IMetaDataEmit_Vtbl { - pub const fn new() -> IMetaDataEmit_Vtbl - where - Identity: IMetaDataEmit_Impl, - { - unsafe extern "system" fn SetModuleProps(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + pub const fn new() -> IMetaDataEmit_Vtbl { + unsafe extern "system" fn SetModuleProps(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetModuleProps(this, core::mem::transmute(&szname)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, szfile: windows_core::PCWSTR, dwsaveflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, szfile: windows_core::PCWSTR, dwsaveflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::Save(this, core::mem::transmute(&szfile), core::mem::transmute_copy(&dwsaveflags)).into() } - unsafe extern "system" fn SaveToStream(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, dwsaveflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SaveToStream(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, dwsaveflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SaveToStream(this, windows_core::from_raw_borrowed(&pistream), core::mem::transmute_copy(&dwsaveflags)).into() } - unsafe extern "system" fn GetSaveSize(this: *mut core::ffi::c_void, fsave: CorSaveSize, pdwsavesize: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn GetSaveSize(this: *mut core::ffi::c_void, fsave: CorSaveSize, pdwsavesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::GetSaveSize(this, core::mem::transmute_copy(&fsave), core::mem::transmute_copy(&pdwsavesize)).into() } - unsafe extern "system" fn DefineTypeDef(this: *mut core::ffi::c_void, sztypedef: windows_core::PCWSTR, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32, ptd: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineTypeDef(this: *mut core::ffi::c_void, sztypedef: windows_core::PCWSTR, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32, ptd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineTypeDef(this, core::mem::transmute(&sztypedef), core::mem::transmute_copy(&dwtypedefflags), core::mem::transmute_copy(&tkextends), core::mem::transmute_copy(&rtkimplements), core::mem::transmute_copy(&ptd)).into() } - unsafe extern "system" fn DefineNestedType(this: *mut core::ffi::c_void, sztypedef: windows_core::PCWSTR, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32, tdencloser: u32, ptd: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineNestedType(this: *mut core::ffi::c_void, sztypedef: windows_core::PCWSTR, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32, tdencloser: u32, ptd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineNestedType(this, core::mem::transmute(&sztypedef), core::mem::transmute_copy(&dwtypedefflags), core::mem::transmute_copy(&tkextends), core::mem::transmute_copy(&rtkimplements), core::mem::transmute_copy(&tdencloser), core::mem::transmute_copy(&ptd)).into() } - unsafe extern "system" fn SetHandler(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetHandler(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetHandler(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn DefineMethod(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, dwmethodflags: u32, pvsigblob: *mut u8, cbsigblob: u32, ulcoderva: u32, dwimplflags: u32, pmd: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineMethod(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, dwmethodflags: u32, pvsigblob: *mut u8, cbsigblob: u32, ulcoderva: u32, dwimplflags: u32, pmd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineMethod(this, core::mem::transmute_copy(&td), core::mem::transmute(&szname), core::mem::transmute_copy(&dwmethodflags), core::mem::transmute_copy(&pvsigblob), core::mem::transmute_copy(&cbsigblob), core::mem::transmute_copy(&ulcoderva), core::mem::transmute_copy(&dwimplflags), core::mem::transmute_copy(&pmd)).into() } - unsafe extern "system" fn DefineMethodImpl(this: *mut core::ffi::c_void, td: u32, tkbody: u32, tkdecl: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineMethodImpl(this: *mut core::ffi::c_void, td: u32, tkbody: u32, tkdecl: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineMethodImpl(this, core::mem::transmute_copy(&td), core::mem::transmute_copy(&tkbody), core::mem::transmute_copy(&tkdecl)).into() } - unsafe extern "system" fn DefineTypeRefByName(this: *mut core::ffi::c_void, tkresolutionscope: u32, szname: windows_core::PCWSTR, ptr: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineTypeRefByName(this: *mut core::ffi::c_void, tkresolutionscope: u32, szname: windows_core::PCWSTR, ptr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineTypeRefByName(this, core::mem::transmute_copy(&tkresolutionscope), core::mem::transmute(&szname), core::mem::transmute_copy(&ptr)).into() } - unsafe extern "system" fn DefineImportType(this: *mut core::ffi::c_void, passemimport: *mut core::ffi::c_void, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, pimport: *mut core::ffi::c_void, tdimport: u32, passememit: *mut core::ffi::c_void, ptr: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineImportType(this: *mut core::ffi::c_void, passemimport: *mut core::ffi::c_void, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, pimport: *mut core::ffi::c_void, tdimport: u32, passememit: *mut core::ffi::c_void, ptr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineImportType(this, windows_core::from_raw_borrowed(&passemimport), core::mem::transmute_copy(&pbhashvalue), core::mem::transmute_copy(&cbhashvalue), windows_core::from_raw_borrowed(&pimport), core::mem::transmute_copy(&tdimport), windows_core::from_raw_borrowed(&passememit), core::mem::transmute_copy(&ptr)).into() } - unsafe extern "system" fn DefineMemberRef(this: *mut core::ffi::c_void, tkimport: u32, szname: windows_core::PCWSTR, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineMemberRef(this: *mut core::ffi::c_void, tkimport: u32, szname: windows_core::PCWSTR, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineMemberRef(this, core::mem::transmute_copy(&tkimport), core::mem::transmute(&szname), core::mem::transmute_copy(&pvsigblob), core::mem::transmute_copy(&cbsigblob), core::mem::transmute_copy(&pmr)).into() } - unsafe extern "system" fn DefineImportMember(this: *mut core::ffi::c_void, passemimport: *mut core::ffi::c_void, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, pimport: *mut core::ffi::c_void, mbmember: u32, passememit: *mut core::ffi::c_void, tkparent: u32, pmr: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineImportMember(this: *mut core::ffi::c_void, passemimport: *mut core::ffi::c_void, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, pimport: *mut core::ffi::c_void, mbmember: u32, passememit: *mut core::ffi::c_void, tkparent: u32, pmr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineImportMember(this, windows_core::from_raw_borrowed(&passemimport), core::mem::transmute_copy(&pbhashvalue), core::mem::transmute_copy(&cbhashvalue), windows_core::from_raw_borrowed(&pimport), core::mem::transmute_copy(&mbmember), windows_core::from_raw_borrowed(&passememit), core::mem::transmute_copy(&tkparent), core::mem::transmute_copy(&pmr)).into() } - unsafe extern "system" fn DefineEvent(this: *mut core::ffi::c_void, td: u32, szevent: windows_core::PCWSTR, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32, pmdevent: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineEvent(this: *mut core::ffi::c_void, td: u32, szevent: windows_core::PCWSTR, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32, pmdevent: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineEvent(this, core::mem::transmute_copy(&td), core::mem::transmute(&szevent), core::mem::transmute_copy(&dweventflags), core::mem::transmute_copy(&tkeventtype), core::mem::transmute_copy(&mdaddon), core::mem::transmute_copy(&mdremoveon), core::mem::transmute_copy(&mdfire), core::mem::transmute_copy(&rmdothermethods), core::mem::transmute_copy(&pmdevent)).into() } - unsafe extern "system" fn SetClassLayout(this: *mut core::ffi::c_void, td: u32, dwpacksize: u32, rfieldoffsets: *mut COR_FIELD_OFFSET, ulclasssize: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetClassLayout(this: *mut core::ffi::c_void, td: u32, dwpacksize: u32, rfieldoffsets: *mut COR_FIELD_OFFSET, ulclasssize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetClassLayout(this, core::mem::transmute_copy(&td), core::mem::transmute_copy(&dwpacksize), core::mem::transmute_copy(&rfieldoffsets), core::mem::transmute_copy(&ulclasssize)).into() } - unsafe extern "system" fn DeleteClassLayout(this: *mut core::ffi::c_void, td: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DeleteClassLayout(this: *mut core::ffi::c_void, td: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DeleteClassLayout(this, core::mem::transmute_copy(&td)).into() } - unsafe extern "system" fn SetFieldMarshal(this: *mut core::ffi::c_void, tk: u32, pvnativetype: *mut u8, cbnativetype: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetFieldMarshal(this: *mut core::ffi::c_void, tk: u32, pvnativetype: *mut u8, cbnativetype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetFieldMarshal(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&pvnativetype), core::mem::transmute_copy(&cbnativetype)).into() } - unsafe extern "system" fn DeleteFieldMarshal(this: *mut core::ffi::c_void, tk: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DeleteFieldMarshal(this: *mut core::ffi::c_void, tk: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DeleteFieldMarshal(this, core::mem::transmute_copy(&tk)).into() } - unsafe extern "system" fn DefinePermissionSet(this: *mut core::ffi::c_void, tk: u32, dwaction: u32, pvpermission: *const core::ffi::c_void, cbpermission: u32, ppm: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefinePermissionSet(this: *mut core::ffi::c_void, tk: u32, dwaction: u32, pvpermission: *const core::ffi::c_void, cbpermission: u32, ppm: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefinePermissionSet(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&pvpermission), core::mem::transmute_copy(&cbpermission), core::mem::transmute_copy(&ppm)).into() } - unsafe extern "system" fn SetRVA(this: *mut core::ffi::c_void, md: u32, ulrva: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetRVA(this: *mut core::ffi::c_void, md: u32, ulrva: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetRVA(this, core::mem::transmute_copy(&md), core::mem::transmute_copy(&ulrva)).into() } - unsafe extern "system" fn GetTokenFromSig(this: *mut core::ffi::c_void, pvsig: *mut u8, cbsig: u32, pmsig: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn GetTokenFromSig(this: *mut core::ffi::c_void, pvsig: *mut u8, cbsig: u32, pmsig: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::GetTokenFromSig(this, core::mem::transmute_copy(&pvsig), core::mem::transmute_copy(&cbsig), core::mem::transmute_copy(&pmsig)).into() } - unsafe extern "system" fn DefineModuleRef(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, pmur: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineModuleRef(this: *mut core::ffi::c_void, szname: windows_core::PCWSTR, pmur: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineModuleRef(this, core::mem::transmute(&szname), core::mem::transmute_copy(&pmur)).into() } - unsafe extern "system" fn SetParent(this: *mut core::ffi::c_void, mr: u32, tk: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetParent(this: *mut core::ffi::c_void, mr: u32, tk: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetParent(this, core::mem::transmute_copy(&mr), core::mem::transmute_copy(&tk)).into() } - unsafe extern "system" fn GetTokenFromTypeSpec(this: *mut core::ffi::c_void, pvsig: *mut u8, cbsig: u32, ptypespec: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn GetTokenFromTypeSpec(this: *mut core::ffi::c_void, pvsig: *mut u8, cbsig: u32, ptypespec: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::GetTokenFromTypeSpec(this, core::mem::transmute_copy(&pvsig), core::mem::transmute_copy(&cbsig), core::mem::transmute_copy(&ptypespec)).into() } - unsafe extern "system" fn SaveToMemory(this: *mut core::ffi::c_void, pbdata: *mut core::ffi::c_void, cbdata: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SaveToMemory(this: *mut core::ffi::c_void, pbdata: *mut core::ffi::c_void, cbdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SaveToMemory(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn DefineUserString(this: *mut core::ffi::c_void, szstring: windows_core::PCWSTR, cchstring: u32, pstk: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineUserString(this: *mut core::ffi::c_void, szstring: windows_core::PCWSTR, cchstring: u32, pstk: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineUserString(this, core::mem::transmute(&szstring), core::mem::transmute_copy(&cchstring), core::mem::transmute_copy(&pstk)).into() } - unsafe extern "system" fn DeleteToken(this: *mut core::ffi::c_void, tkobj: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DeleteToken(this: *mut core::ffi::c_void, tkobj: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DeleteToken(this, core::mem::transmute_copy(&tkobj)).into() } - unsafe extern "system" fn SetMethodProps(this: *mut core::ffi::c_void, md: u32, dwmethodflags: u32, ulcoderva: u32, dwimplflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetMethodProps(this: *mut core::ffi::c_void, md: u32, dwmethodflags: u32, ulcoderva: u32, dwimplflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetMethodProps(this, core::mem::transmute_copy(&md), core::mem::transmute_copy(&dwmethodflags), core::mem::transmute_copy(&ulcoderva), core::mem::transmute_copy(&dwimplflags)).into() } - unsafe extern "system" fn SetTypeDefProps(this: *mut core::ffi::c_void, td: u32, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetTypeDefProps(this: *mut core::ffi::c_void, td: u32, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetTypeDefProps(this, core::mem::transmute_copy(&td), core::mem::transmute_copy(&dwtypedefflags), core::mem::transmute_copy(&tkextends), core::mem::transmute_copy(&rtkimplements)).into() } - unsafe extern "system" fn SetEventProps(this: *mut core::ffi::c_void, ev: u32, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetEventProps(this: *mut core::ffi::c_void, ev: u32, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetEventProps(this, core::mem::transmute_copy(&ev), core::mem::transmute_copy(&dweventflags), core::mem::transmute_copy(&tkeventtype), core::mem::transmute_copy(&mdaddon), core::mem::transmute_copy(&mdremoveon), core::mem::transmute_copy(&mdfire), core::mem::transmute_copy(&rmdothermethods)).into() } - unsafe extern "system" fn SetPermissionSetProps(this: *mut core::ffi::c_void, tk: u32, dwaction: u32, pvpermission: *const core::ffi::c_void, cbpermission: u32, ppm: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetPermissionSetProps(this: *mut core::ffi::c_void, tk: u32, dwaction: u32, pvpermission: *const core::ffi::c_void, cbpermission: u32, ppm: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetPermissionSetProps(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&pvpermission), core::mem::transmute_copy(&cbpermission), core::mem::transmute_copy(&ppm)).into() } - unsafe extern "system" fn DefinePinvokeMap(this: *mut core::ffi::c_void, tk: u32, dwmappingflags: u32, szimportname: windows_core::PCWSTR, mrimportdll: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefinePinvokeMap(this: *mut core::ffi::c_void, tk: u32, dwmappingflags: u32, szimportname: windows_core::PCWSTR, mrimportdll: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefinePinvokeMap(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&dwmappingflags), core::mem::transmute(&szimportname), core::mem::transmute_copy(&mrimportdll)).into() } - unsafe extern "system" fn SetPinvokeMap(this: *mut core::ffi::c_void, tk: u32, dwmappingflags: u32, szimportname: windows_core::PCWSTR, mrimportdll: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetPinvokeMap(this: *mut core::ffi::c_void, tk: u32, dwmappingflags: u32, szimportname: windows_core::PCWSTR, mrimportdll: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetPinvokeMap(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&dwmappingflags), core::mem::transmute(&szimportname), core::mem::transmute_copy(&mrimportdll)).into() } - unsafe extern "system" fn DeletePinvokeMap(this: *mut core::ffi::c_void, tk: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DeletePinvokeMap(this: *mut core::ffi::c_void, tk: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DeletePinvokeMap(this, core::mem::transmute_copy(&tk)).into() } - unsafe extern "system" fn DefineCustomAttribute(this: *mut core::ffi::c_void, tkowner: u32, tkctor: u32, pcustomattribute: *const core::ffi::c_void, cbcustomattribute: u32, pcv: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineCustomAttribute(this: *mut core::ffi::c_void, tkowner: u32, tkctor: u32, pcustomattribute: *const core::ffi::c_void, cbcustomattribute: u32, pcv: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineCustomAttribute(this, core::mem::transmute_copy(&tkowner), core::mem::transmute_copy(&tkctor), core::mem::transmute_copy(&pcustomattribute), core::mem::transmute_copy(&cbcustomattribute), core::mem::transmute_copy(&pcv)).into() } - unsafe extern "system" fn SetCustomAttributeValue(this: *mut core::ffi::c_void, pcv: u32, pcustomattribute: *const core::ffi::c_void, cbcustomattribute: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetCustomAttributeValue(this: *mut core::ffi::c_void, pcv: u32, pcustomattribute: *const core::ffi::c_void, cbcustomattribute: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetCustomAttributeValue(this, core::mem::transmute_copy(&pcv), core::mem::transmute_copy(&pcustomattribute), core::mem::transmute_copy(&cbcustomattribute)).into() } - unsafe extern "system" fn DefineField(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, dwfieldflags: u32, pvsigblob: *mut u8, cbsigblob: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, pmd: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineField(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, dwfieldflags: u32, pvsigblob: *mut u8, cbsigblob: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, pmd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineField(this, core::mem::transmute_copy(&td), core::mem::transmute(&szname), core::mem::transmute_copy(&dwfieldflags), core::mem::transmute_copy(&pvsigblob), core::mem::transmute_copy(&cbsigblob), core::mem::transmute_copy(&dwcplustypeflag), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cchvalue), core::mem::transmute_copy(&pmd)).into() } - unsafe extern "system" fn DefineProperty(this: *mut core::ffi::c_void, td: u32, szproperty: windows_core::PCWSTR, dwpropflags: u32, pvsig: *mut u8, cbsig: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, mdsetter: u32, mdgetter: u32, rmdothermethods: *mut u32, pmdprop: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineProperty(this: *mut core::ffi::c_void, td: u32, szproperty: windows_core::PCWSTR, dwpropflags: u32, pvsig: *mut u8, cbsig: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, mdsetter: u32, mdgetter: u32, rmdothermethods: *mut u32, pmdprop: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineProperty(this, core::mem::transmute_copy(&td), core::mem::transmute(&szproperty), core::mem::transmute_copy(&dwpropflags), core::mem::transmute_copy(&pvsig), core::mem::transmute_copy(&cbsig), core::mem::transmute_copy(&dwcplustypeflag), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cchvalue), core::mem::transmute_copy(&mdsetter), core::mem::transmute_copy(&mdgetter), core::mem::transmute_copy(&rmdothermethods), core::mem::transmute_copy(&pmdprop)).into() } - unsafe extern "system" fn DefineParam(this: *mut core::ffi::c_void, md: u32, ulparamseq: u32, szname: windows_core::PCWSTR, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, ppd: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineParam(this: *mut core::ffi::c_void, md: u32, ulparamseq: u32, szname: windows_core::PCWSTR, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, ppd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineParam(this, core::mem::transmute_copy(&md), core::mem::transmute_copy(&ulparamseq), core::mem::transmute(&szname), core::mem::transmute_copy(&dwparamflags), core::mem::transmute_copy(&dwcplustypeflag), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cchvalue), core::mem::transmute_copy(&ppd)).into() } - unsafe extern "system" fn SetFieldProps(this: *mut core::ffi::c_void, fd: u32, dwfieldflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetFieldProps(this: *mut core::ffi::c_void, fd: u32, dwfieldflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetFieldProps(this, core::mem::transmute_copy(&fd), core::mem::transmute_copy(&dwfieldflags), core::mem::transmute_copy(&dwcplustypeflag), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cchvalue)).into() } - unsafe extern "system" fn SetPropertyProps(this: *mut core::ffi::c_void, pr: u32, dwpropflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, mdsetter: u32, mdgetter: u32, rmdothermethods: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetPropertyProps(this: *mut core::ffi::c_void, pr: u32, dwpropflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32, mdsetter: u32, mdgetter: u32, rmdothermethods: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetPropertyProps(this, core::mem::transmute_copy(&pr), core::mem::transmute_copy(&dwpropflags), core::mem::transmute_copy(&dwcplustypeflag), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cchvalue), core::mem::transmute_copy(&mdsetter), core::mem::transmute_copy(&mdgetter), core::mem::transmute_copy(&rmdothermethods)).into() } - unsafe extern "system" fn SetParamProps(this: *mut core::ffi::c_void, pd: u32, szname: windows_core::PCWSTR, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetParamProps(this: *mut core::ffi::c_void, pd: u32, szname: windows_core::PCWSTR, dwparamflags: u32, dwcplustypeflag: u32, pvalue: *const core::ffi::c_void, cchvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetParamProps(this, core::mem::transmute_copy(&pd), core::mem::transmute(&szname), core::mem::transmute_copy(&dwparamflags), core::mem::transmute_copy(&dwcplustypeflag), core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&cchvalue)).into() } - unsafe extern "system" fn DefineSecurityAttributeSet(this: *mut core::ffi::c_void, tkobj: u32, rsecattrs: *mut COR_SECATTR, csecattrs: u32, pulerrorattr: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn DefineSecurityAttributeSet(this: *mut core::ffi::c_void, tkobj: u32, rsecattrs: *mut COR_SECATTR, csecattrs: u32, pulerrorattr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::DefineSecurityAttributeSet(this, core::mem::transmute_copy(&tkobj), core::mem::transmute_copy(&rsecattrs), core::mem::transmute_copy(&csecattrs), core::mem::transmute_copy(&pulerrorattr)).into() } - unsafe extern "system" fn ApplyEditAndContinue(this: *mut core::ffi::c_void, pimport: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn ApplyEditAndContinue(this: *mut core::ffi::c_void, pimport: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::ApplyEditAndContinue(this, windows_core::from_raw_borrowed(&pimport)).into() } - unsafe extern "system" fn TranslateSigWithScope(this: *mut core::ffi::c_void, passemimport: *mut core::ffi::c_void, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, import: *mut core::ffi::c_void, pbsigblob: *mut u8, cbsigblob: u32, passememit: *mut core::ffi::c_void, emit: *mut core::ffi::c_void, pvtranslatedsig: *mut u8, cbtranslatedsigmax: u32, pcbtranslatedsig: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn TranslateSigWithScope(this: *mut core::ffi::c_void, passemimport: *mut core::ffi::c_void, pbhashvalue: *const core::ffi::c_void, cbhashvalue: u32, import: *mut core::ffi::c_void, pbsigblob: *mut u8, cbsigblob: u32, passememit: *mut core::ffi::c_void, emit: *mut core::ffi::c_void, pvtranslatedsig: *mut u8, cbtranslatedsigmax: u32, pcbtranslatedsig: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::TranslateSigWithScope(this, windows_core::from_raw_borrowed(&passemimport), core::mem::transmute_copy(&pbhashvalue), core::mem::transmute_copy(&cbhashvalue), windows_core::from_raw_borrowed(&import), core::mem::transmute_copy(&pbsigblob), core::mem::transmute_copy(&cbsigblob), windows_core::from_raw_borrowed(&passememit), windows_core::from_raw_borrowed(&emit), core::mem::transmute_copy(&pvtranslatedsig), core::mem::transmute_copy(&cbtranslatedsigmax), core::mem::transmute_copy(&pcbtranslatedsig)).into() } - unsafe extern "system" fn SetMethodImplFlags(this: *mut core::ffi::c_void, md: u32, dwimplflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetMethodImplFlags(this: *mut core::ffi::c_void, md: u32, dwimplflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetMethodImplFlags(this, core::mem::transmute_copy(&md), core::mem::transmute_copy(&dwimplflags)).into() } - unsafe extern "system" fn SetFieldRVA(this: *mut core::ffi::c_void, fd: u32, ulrva: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn SetFieldRVA(this: *mut core::ffi::c_void, fd: u32, ulrva: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::SetFieldRVA(this, core::mem::transmute_copy(&fd), core::mem::transmute_copy(&ulrva)).into() } - unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, pimport: *mut core::ffi::c_void, phostmaptoken: *mut core::ffi::c_void, phandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, pimport: *mut core::ffi::c_void, phostmaptoken: *mut core::ffi::c_void, phandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::Merge(this, windows_core::from_raw_borrowed(&pimport), windows_core::from_raw_borrowed(&phostmaptoken), windows_core::from_raw_borrowed(&phandler)).into() } - unsafe extern "system" fn MergeEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataEmit_Impl, - { + unsafe extern "system" fn MergeEnd(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit_Impl::MergeEnd(this).into() } @@ -1062,63 +741,36 @@ pub trait IMetaDataEmit2_Impl: Sized + IMetaDataEmit_Impl { impl windows_core::RuntimeName for IMetaDataEmit2 {} #[cfg(feature = "Win32_System_Com")] impl IMetaDataEmit2_Vtbl { - pub const fn new() -> IMetaDataEmit2_Vtbl - where - Identity: IMetaDataEmit2_Impl, - { - unsafe extern "system" fn DefineMethodSpec(this: *mut core::ffi::c_void, tkparent: u32, pvsigblob: *mut u8, cbsigblob: u32, pmi: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit2_Impl, - { + pub const fn new() -> IMetaDataEmit2_Vtbl { + unsafe extern "system" fn DefineMethodSpec(this: *mut core::ffi::c_void, tkparent: u32, pvsigblob: *mut u8, cbsigblob: u32, pmi: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit2_Impl::DefineMethodSpec(this, core::mem::transmute_copy(&tkparent), core::mem::transmute_copy(&pvsigblob), core::mem::transmute_copy(&cbsigblob), core::mem::transmute_copy(&pmi)).into() } - unsafe extern "system" fn GetDeltaSaveSize(this: *mut core::ffi::c_void, fsave: CorSaveSize, pdwsavesize: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit2_Impl, - { + unsafe extern "system" fn GetDeltaSaveSize(this: *mut core::ffi::c_void, fsave: CorSaveSize, pdwsavesize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit2_Impl::GetDeltaSaveSize(this, core::mem::transmute_copy(&fsave), core::mem::transmute_copy(&pdwsavesize)).into() } - unsafe extern "system" fn SaveDelta(this: *mut core::ffi::c_void, szfile: windows_core::PCWSTR, dwsaveflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit2_Impl, - { + unsafe extern "system" fn SaveDelta(this: *mut core::ffi::c_void, szfile: windows_core::PCWSTR, dwsaveflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit2_Impl::SaveDelta(this, core::mem::transmute(&szfile), core::mem::transmute_copy(&dwsaveflags)).into() } - unsafe extern "system" fn SaveDeltaToStream(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, dwsaveflags: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit2_Impl, - { + unsafe extern "system" fn SaveDeltaToStream(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, dwsaveflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit2_Impl::SaveDeltaToStream(this, windows_core::from_raw_borrowed(&pistream), core::mem::transmute_copy(&dwsaveflags)).into() } - unsafe extern "system" fn SaveDeltaToMemory(this: *mut core::ffi::c_void, pbdata: *mut core::ffi::c_void, cbdata: u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit2_Impl, - { + unsafe extern "system" fn SaveDeltaToMemory(this: *mut core::ffi::c_void, pbdata: *mut core::ffi::c_void, cbdata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit2_Impl::SaveDeltaToMemory(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata)).into() } - unsafe extern "system" fn DefineGenericParam(this: *mut core::ffi::c_void, tk: u32, ulparamseq: u32, dwparamflags: u32, szname: windows_core::PCWSTR, reserved: u32, rtkconstraints: *mut u32, pgp: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit2_Impl, - { + unsafe extern "system" fn DefineGenericParam(this: *mut core::ffi::c_void, tk: u32, ulparamseq: u32, dwparamflags: u32, szname: windows_core::PCWSTR, reserved: u32, rtkconstraints: *mut u32, pgp: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit2_Impl::DefineGenericParam(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&ulparamseq), core::mem::transmute_copy(&dwparamflags), core::mem::transmute(&szname), core::mem::transmute_copy(&reserved), core::mem::transmute_copy(&rtkconstraints), core::mem::transmute_copy(&pgp)).into() } - unsafe extern "system" fn SetGenericParamProps(this: *mut core::ffi::c_void, gp: u32, dwparamflags: u32, szname: windows_core::PCWSTR, reserved: u32, rtkconstraints: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataEmit2_Impl, - { + unsafe extern "system" fn SetGenericParamProps(this: *mut core::ffi::c_void, gp: u32, dwparamflags: u32, szname: windows_core::PCWSTR, reserved: u32, rtkconstraints: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit2_Impl::SetGenericParamProps(this, core::mem::transmute_copy(&gp), core::mem::transmute_copy(&dwparamflags), core::mem::transmute(&szname), core::mem::transmute_copy(&reserved), core::mem::transmute_copy(&rtkconstraints)).into() } - unsafe extern "system" fn ResetENCLog(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataEmit2_Impl, - { + unsafe extern "system" fn ResetENCLog(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataEmit2_Impl::ResetENCLog(this).into() } @@ -1138,19 +790,13 @@ impl IMetaDataEmit2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMetaDataError_Impl: Sized { +pub trait IMetaDataError_Impl: Sized + windows_core::IUnknownImpl { fn OnError(&self, hrerror: windows_core::HRESULT, token: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMetaDataError {} impl IMetaDataError_Vtbl { - pub const fn new() -> IMetaDataError_Vtbl - where - Identity: IMetaDataError_Impl, - { - unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, token: u32) -> windows_core::HRESULT - where - Identity: IMetaDataError_Impl, - { + pub const fn new() -> IMetaDataError_Vtbl { + unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, token: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataError_Impl::OnError(this, core::mem::transmute_copy(&hrerror), core::mem::transmute_copy(&token)).into() } @@ -1160,35 +806,23 @@ impl IMetaDataError_Vtbl { iid == &::IID } } -pub trait IMetaDataFilter_Impl: Sized { +pub trait IMetaDataFilter_Impl: Sized + windows_core::IUnknownImpl { fn UnmarkAll(&self) -> windows_core::Result<()>; fn MarkToken(&self, tk: u32) -> windows_core::Result<()>; fn IsTokenMarked(&self, tk: u32, pismarked: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMetaDataFilter {} impl IMetaDataFilter_Vtbl { - pub const fn new() -> IMetaDataFilter_Vtbl - where - Identity: IMetaDataFilter_Impl, - { - unsafe extern "system" fn UnmarkAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataFilter_Impl, - { + pub const fn new() -> IMetaDataFilter_Vtbl { + unsafe extern "system" fn UnmarkAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataFilter_Impl::UnmarkAll(this).into() } - unsafe extern "system" fn MarkToken(this: *mut core::ffi::c_void, tk: u32) -> windows_core::HRESULT - where - Identity: IMetaDataFilter_Impl, - { + unsafe extern "system" fn MarkToken(this: *mut core::ffi::c_void, tk: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataFilter_Impl::MarkToken(this, core::mem::transmute_copy(&tk)).into() } - unsafe extern "system" fn IsTokenMarked(this: *mut core::ffi::c_void, tk: u32, pismarked: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMetaDataFilter_Impl, - { + unsafe extern "system" fn IsTokenMarked(this: *mut core::ffi::c_void, tk: u32, pismarked: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataFilter_Impl::IsTokenMarked(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&pismarked)).into() } @@ -1203,7 +837,7 @@ impl IMetaDataFilter_Vtbl { iid == &::IID } } -pub trait IMetaDataImport_Impl: Sized { +pub trait IMetaDataImport_Impl: Sized + windows_core::IUnknownImpl { fn CloseEnum(&self, henum: *mut core::ffi::c_void); fn CountEnum(&self, henum: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::Result<()>; fn ResetEnum(&self, henum: *mut core::ffi::c_void, ulpos: u32) -> windows_core::Result<()>; @@ -1269,231 +903,132 @@ pub trait IMetaDataImport_Impl: Sized { } impl windows_core::RuntimeName for IMetaDataImport {} impl IMetaDataImport_Vtbl { - pub const fn new() -> IMetaDataImport_Vtbl - where - Identity: IMetaDataImport_Impl, - { - unsafe extern "system" fn CloseEnum(this: *mut core::ffi::c_void, henum: *mut core::ffi::c_void) - where - Identity: IMetaDataImport_Impl, - { + pub const fn new() -> IMetaDataImport_Vtbl { + unsafe extern "system" fn CloseEnum(this: *mut core::ffi::c_void, henum: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::CloseEnum(this, core::mem::transmute_copy(&henum)) } - unsafe extern "system" fn CountEnum(this: *mut core::ffi::c_void, henum: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn CountEnum(this: *mut core::ffi::c_void, henum: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::CountEnum(this, core::mem::transmute_copy(&henum), core::mem::transmute_copy(&pulcount)).into() } - unsafe extern "system" fn ResetEnum(this: *mut core::ffi::c_void, henum: *mut core::ffi::c_void, ulpos: u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn ResetEnum(this: *mut core::ffi::c_void, henum: *mut core::ffi::c_void, ulpos: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::ResetEnum(this, core::mem::transmute_copy(&henum), core::mem::transmute_copy(&ulpos)).into() } - unsafe extern "system" fn EnumTypeDefs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rtypedefs: *mut u32, cmax: u32, pctypedefs: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumTypeDefs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rtypedefs: *mut u32, cmax: u32, pctypedefs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumTypeDefs(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rtypedefs), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctypedefs)).into() } - unsafe extern "system" fn EnumInterfaceImpls(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, td: u32, rimpls: *mut u32, cmax: u32, pcimpls: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumInterfaceImpls(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, td: u32, rimpls: *mut u32, cmax: u32, pcimpls: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumInterfaceImpls(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&td), core::mem::transmute_copy(&rimpls), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcimpls)).into() } - unsafe extern "system" fn EnumTypeRefs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rtyperefs: *mut u32, cmax: u32, pctyperefs: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumTypeRefs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rtyperefs: *mut u32, cmax: u32, pctyperefs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumTypeRefs(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rtyperefs), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctyperefs)).into() } - unsafe extern "system" fn FindTypeDefByName(this: *mut core::ffi::c_void, sztypedef: windows_core::PCWSTR, tkenclosingclass: u32, ptd: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn FindTypeDefByName(this: *mut core::ffi::c_void, sztypedef: windows_core::PCWSTR, tkenclosingclass: u32, ptd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::FindTypeDefByName(this, core::mem::transmute(&sztypedef), core::mem::transmute_copy(&tkenclosingclass), core::mem::transmute_copy(&ptd)).into() } - unsafe extern "system" fn GetScopeProps(this: *mut core::ffi::c_void, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pmvid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetScopeProps(this: *mut core::ffi::c_void, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pmvid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetScopeProps(this, core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname), core::mem::transmute_copy(&pmvid)).into() } - unsafe extern "system" fn GetModuleFromScope(this: *mut core::ffi::c_void, pmd: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetModuleFromScope(this: *mut core::ffi::c_void, pmd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetModuleFromScope(this, core::mem::transmute_copy(&pmd)).into() } - unsafe extern "system" fn GetTypeDefProps(this: *mut core::ffi::c_void, td: u32, sztypedef: windows_core::PWSTR, cchtypedef: u32, pchtypedef: *mut u32, pdwtypedefflags: *mut u32, ptkextends: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetTypeDefProps(this: *mut core::ffi::c_void, td: u32, sztypedef: windows_core::PWSTR, cchtypedef: u32, pchtypedef: *mut u32, pdwtypedefflags: *mut u32, ptkextends: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetTypeDefProps(this, core::mem::transmute_copy(&td), core::mem::transmute_copy(&sztypedef), core::mem::transmute_copy(&cchtypedef), core::mem::transmute_copy(&pchtypedef), core::mem::transmute_copy(&pdwtypedefflags), core::mem::transmute_copy(&ptkextends)).into() } - unsafe extern "system" fn GetInterfaceImplProps(this: *mut core::ffi::c_void, iiimpl: u32, pclass: *mut u32, ptkiface: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetInterfaceImplProps(this: *mut core::ffi::c_void, iiimpl: u32, pclass: *mut u32, ptkiface: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetInterfaceImplProps(this, core::mem::transmute_copy(&iiimpl), core::mem::transmute_copy(&pclass), core::mem::transmute_copy(&ptkiface)).into() } - unsafe extern "system" fn GetTypeRefProps(this: *mut core::ffi::c_void, tr: u32, ptkresolutionscope: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetTypeRefProps(this: *mut core::ffi::c_void, tr: u32, ptkresolutionscope: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetTypeRefProps(this, core::mem::transmute_copy(&tr), core::mem::transmute_copy(&ptkresolutionscope), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname)).into() } - unsafe extern "system" fn ResolveTypeRef(this: *mut core::ffi::c_void, tr: u32, riid: *const windows_core::GUID, ppiscope: *mut *mut core::ffi::c_void, ptd: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn ResolveTypeRef(this: *mut core::ffi::c_void, tr: u32, riid: *const windows_core::GUID, ppiscope: *mut *mut core::ffi::c_void, ptd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::ResolveTypeRef(this, core::mem::transmute_copy(&tr), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppiscope), core::mem::transmute_copy(&ptd)).into() } - unsafe extern "system" fn EnumMembers(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, rmembers: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumMembers(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, rmembers: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumMembers(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&cl), core::mem::transmute_copy(&rmembers), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumMembersWithName(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: windows_core::PCWSTR, rmembers: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumMembersWithName(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: windows_core::PCWSTR, rmembers: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumMembersWithName(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&cl), core::mem::transmute(&szname), core::mem::transmute_copy(&rmembers), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumMethods(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumMethods(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumMethods(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&cl), core::mem::transmute_copy(&rmethods), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumMethodsWithName(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: windows_core::PCWSTR, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumMethodsWithName(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: windows_core::PCWSTR, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumMethodsWithName(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&cl), core::mem::transmute(&szname), core::mem::transmute_copy(&rmethods), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumFields(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, rfields: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumFields(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, rfields: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumFields(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&cl), core::mem::transmute_copy(&rfields), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumFieldsWithName(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: windows_core::PCWSTR, rfields: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumFieldsWithName(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, cl: u32, szname: windows_core::PCWSTR, rfields: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumFieldsWithName(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&cl), core::mem::transmute(&szname), core::mem::transmute_copy(&rfields), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumParams(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, mb: u32, rparams: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumParams(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, mb: u32, rparams: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumParams(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&mb), core::mem::transmute_copy(&rparams), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumMemberRefs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tkparent: u32, rmemberrefs: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumMemberRefs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tkparent: u32, rmemberrefs: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumMemberRefs(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&tkparent), core::mem::transmute_copy(&rmemberrefs), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumMethodImpls(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, td: u32, rmethodbody: *mut u32, rmethoddecl: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumMethodImpls(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, td: u32, rmethodbody: *mut u32, rmethoddecl: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumMethodImpls(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&td), core::mem::transmute_copy(&rmethodbody), core::mem::transmute_copy(&rmethoddecl), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn EnumPermissionSets(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tk: u32, dwactions: u32, rpermission: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumPermissionSets(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tk: u32, dwactions: u32, rpermission: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumPermissionSets(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&tk), core::mem::transmute_copy(&dwactions), core::mem::transmute_copy(&rpermission), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn FindMember(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn FindMember(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::FindMember(this, core::mem::transmute_copy(&td), core::mem::transmute(&szname), core::mem::transmute_copy(&pvsigblob), core::mem::transmute_copy(&cbsigblob), core::mem::transmute_copy(&pmb)).into() } - unsafe extern "system" fn FindMethod(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn FindMethod(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::FindMethod(this, core::mem::transmute_copy(&td), core::mem::transmute(&szname), core::mem::transmute_copy(&pvsigblob), core::mem::transmute_copy(&cbsigblob), core::mem::transmute_copy(&pmb)).into() } - unsafe extern "system" fn FindField(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn FindField(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::FindField(this, core::mem::transmute_copy(&td), core::mem::transmute(&szname), core::mem::transmute_copy(&pvsigblob), core::mem::transmute_copy(&cbsigblob), core::mem::transmute_copy(&pmb)).into() } - unsafe extern "system" fn FindMemberRef(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn FindMemberRef(this: *mut core::ffi::c_void, td: u32, szname: windows_core::PCWSTR, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::FindMemberRef(this, core::mem::transmute_copy(&td), core::mem::transmute(&szname), core::mem::transmute_copy(&pvsigblob), core::mem::transmute_copy(&cbsigblob), core::mem::transmute_copy(&pmr)).into() } - unsafe extern "system" fn GetMethodProps(this: *mut core::ffi::c_void, mb: u32, pclass: *mut u32, szmethod: windows_core::PWSTR, cchmethod: u32, pchmethod: *mut u32, pdwattr: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32, pulcoderva: *mut u32, pdwimplflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetMethodProps(this: *mut core::ffi::c_void, mb: u32, pclass: *mut u32, szmethod: windows_core::PWSTR, cchmethod: u32, pchmethod: *mut u32, pdwattr: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32, pulcoderva: *mut u32, pdwimplflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetMethodProps(this, core::mem::transmute_copy(&mb), core::mem::transmute_copy(&pclass), core::mem::transmute_copy(&szmethod), core::mem::transmute_copy(&cchmethod), core::mem::transmute_copy(&pchmethod), core::mem::transmute_copy(&pdwattr), core::mem::transmute_copy(&ppvsigblob), core::mem::transmute_copy(&pcbsigblob), core::mem::transmute_copy(&pulcoderva), core::mem::transmute_copy(&pdwimplflags)).into() } - unsafe extern "system" fn GetMemberRefProps(this: *mut core::ffi::c_void, mr: u32, ptk: *mut u32, szmember: windows_core::PWSTR, cchmember: u32, pchmember: *mut u32, ppvsigblob: *mut *mut u8, pbsig: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetMemberRefProps(this: *mut core::ffi::c_void, mr: u32, ptk: *mut u32, szmember: windows_core::PWSTR, cchmember: u32, pchmember: *mut u32, ppvsigblob: *mut *mut u8, pbsig: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetMemberRefProps(this, core::mem::transmute_copy(&mr), core::mem::transmute_copy(&ptk), core::mem::transmute_copy(&szmember), core::mem::transmute_copy(&cchmember), core::mem::transmute_copy(&pchmember), core::mem::transmute_copy(&ppvsigblob), core::mem::transmute_copy(&pbsig)).into() } - unsafe extern "system" fn EnumProperties(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, td: u32, rproperties: *mut u32, cmax: u32, pcproperties: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumProperties(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, td: u32, rproperties: *mut u32, cmax: u32, pcproperties: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumProperties(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&td), core::mem::transmute_copy(&rproperties), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcproperties)).into() } - unsafe extern "system" fn EnumEvents(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, td: u32, revents: *mut u32, cmax: u32, pcevents: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumEvents(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, td: u32, revents: *mut u32, cmax: u32, pcevents: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumEvents(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&td), core::mem::transmute_copy(&revents), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcevents)).into() } - unsafe extern "system" fn GetEventProps(this: *mut core::ffi::c_void, ev: u32, pclass: *mut u32, szevent: windows_core::PCWSTR, cchevent: u32, pchevent: *mut u32, pdweventflags: *mut u32, ptkeventtype: *mut u32, pmdaddon: *mut u32, pmdremoveon: *mut u32, pmdfire: *mut u32, rmdothermethod: *mut u32, cmax: u32, pcothermethod: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetEventProps(this: *mut core::ffi::c_void, ev: u32, pclass: *mut u32, szevent: windows_core::PCWSTR, cchevent: u32, pchevent: *mut u32, pdweventflags: *mut u32, ptkeventtype: *mut u32, pmdaddon: *mut u32, pmdremoveon: *mut u32, pmdfire: *mut u32, rmdothermethod: *mut u32, cmax: u32, pcothermethod: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetEventProps( this, @@ -1513,157 +1048,91 @@ impl IMetaDataImport_Vtbl { ) .into() } - unsafe extern "system" fn EnumMethodSemantics(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, mb: u32, reventprop: *mut u32, cmax: u32, pceventprop: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumMethodSemantics(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, mb: u32, reventprop: *mut u32, cmax: u32, pceventprop: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumMethodSemantics(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&mb), core::mem::transmute_copy(&reventprop), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pceventprop)).into() } - unsafe extern "system" fn GetMethodSemantics(this: *mut core::ffi::c_void, mb: u32, tkeventprop: u32, pdwsemanticsflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetMethodSemantics(this: *mut core::ffi::c_void, mb: u32, tkeventprop: u32, pdwsemanticsflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetMethodSemantics(this, core::mem::transmute_copy(&mb), core::mem::transmute_copy(&tkeventprop), core::mem::transmute_copy(&pdwsemanticsflags)).into() } - unsafe extern "system" fn GetClassLayout(this: *mut core::ffi::c_void, td: u32, pdwpacksize: *mut u32, rfieldoffset: *mut COR_FIELD_OFFSET, cmax: u32, pcfieldoffset: *mut u32, pulclasssize: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetClassLayout(this: *mut core::ffi::c_void, td: u32, pdwpacksize: *mut u32, rfieldoffset: *mut COR_FIELD_OFFSET, cmax: u32, pcfieldoffset: *mut u32, pulclasssize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetClassLayout(this, core::mem::transmute_copy(&td), core::mem::transmute_copy(&pdwpacksize), core::mem::transmute_copy(&rfieldoffset), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcfieldoffset), core::mem::transmute_copy(&pulclasssize)).into() } - unsafe extern "system" fn GetFieldMarshal(this: *mut core::ffi::c_void, tk: u32, ppvnativetype: *mut *mut u8, pcbnativetype: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetFieldMarshal(this: *mut core::ffi::c_void, tk: u32, ppvnativetype: *mut *mut u8, pcbnativetype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetFieldMarshal(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&ppvnativetype), core::mem::transmute_copy(&pcbnativetype)).into() } - unsafe extern "system" fn GetRVA(this: *mut core::ffi::c_void, tk: u32, pulcoderva: *mut u32, pdwimplflags: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetRVA(this: *mut core::ffi::c_void, tk: u32, pulcoderva: *mut u32, pdwimplflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetRVA(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&pulcoderva), core::mem::transmute_copy(&pdwimplflags)).into() } - unsafe extern "system" fn GetPermissionSetProps(this: *mut core::ffi::c_void, pm: u32, pdwaction: *mut u32, ppvpermission: *const *const core::ffi::c_void, pcbpermission: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetPermissionSetProps(this: *mut core::ffi::c_void, pm: u32, pdwaction: *mut u32, ppvpermission: *const *const core::ffi::c_void, pcbpermission: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetPermissionSetProps(this, core::mem::transmute_copy(&pm), core::mem::transmute_copy(&pdwaction), core::mem::transmute_copy(&ppvpermission), core::mem::transmute_copy(&pcbpermission)).into() } - unsafe extern "system" fn GetSigFromToken(this: *mut core::ffi::c_void, mdsig: u32, ppvsig: *mut *mut u8, pcbsig: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetSigFromToken(this: *mut core::ffi::c_void, mdsig: u32, ppvsig: *mut *mut u8, pcbsig: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetSigFromToken(this, core::mem::transmute_copy(&mdsig), core::mem::transmute_copy(&ppvsig), core::mem::transmute_copy(&pcbsig)).into() } - unsafe extern "system" fn GetModuleRefProps(this: *mut core::ffi::c_void, mur: u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetModuleRefProps(this: *mut core::ffi::c_void, mur: u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetModuleRefProps(this, core::mem::transmute_copy(&mur), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname)).into() } - unsafe extern "system" fn EnumModuleRefs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rmodulerefs: *mut u32, cmax: u32, pcmodulerefs: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumModuleRefs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rmodulerefs: *mut u32, cmax: u32, pcmodulerefs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumModuleRefs(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rmodulerefs), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcmodulerefs)).into() } - unsafe extern "system" fn GetTypeSpecFromToken(this: *mut core::ffi::c_void, typespec: u32, ppvsig: *mut *mut u8, pcbsig: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetTypeSpecFromToken(this: *mut core::ffi::c_void, typespec: u32, ppvsig: *mut *mut u8, pcbsig: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetTypeSpecFromToken(this, core::mem::transmute_copy(&typespec), core::mem::transmute_copy(&ppvsig), core::mem::transmute_copy(&pcbsig)).into() } - unsafe extern "system" fn GetNameFromToken(this: *mut core::ffi::c_void, tk: u32, pszutf8nameptr: *mut *mut i8) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetNameFromToken(this: *mut core::ffi::c_void, tk: u32, pszutf8nameptr: *mut *mut i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetNameFromToken(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&pszutf8nameptr)).into() } - unsafe extern "system" fn EnumUnresolvedMethods(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumUnresolvedMethods(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rmethods: *mut u32, cmax: u32, pctokens: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumUnresolvedMethods(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rmethods), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctokens)).into() } - unsafe extern "system" fn GetUserString(this: *mut core::ffi::c_void, stk: u32, szstring: windows_core::PWSTR, cchstring: u32, pchstring: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetUserString(this: *mut core::ffi::c_void, stk: u32, szstring: windows_core::PWSTR, cchstring: u32, pchstring: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetUserString(this, core::mem::transmute_copy(&stk), core::mem::transmute_copy(&szstring), core::mem::transmute_copy(&cchstring), core::mem::transmute_copy(&pchstring)).into() } - unsafe extern "system" fn GetPinvokeMap(this: *mut core::ffi::c_void, tk: u32, pdwmappingflags: *mut u32, szimportname: windows_core::PWSTR, cchimportname: u32, pchimportname: *mut u32, pmrimportdll: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetPinvokeMap(this: *mut core::ffi::c_void, tk: u32, pdwmappingflags: *mut u32, szimportname: windows_core::PWSTR, cchimportname: u32, pchimportname: *mut u32, pmrimportdll: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetPinvokeMap(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&pdwmappingflags), core::mem::transmute_copy(&szimportname), core::mem::transmute_copy(&cchimportname), core::mem::transmute_copy(&pchimportname), core::mem::transmute_copy(&pmrimportdll)).into() } - unsafe extern "system" fn EnumSignatures(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rsignatures: *mut u32, cmax: u32, pcsignatures: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumSignatures(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rsignatures: *mut u32, cmax: u32, pcsignatures: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumSignatures(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rsignatures), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcsignatures)).into() } - unsafe extern "system" fn EnumTypeSpecs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rtypespecs: *mut u32, cmax: u32, pctypespecs: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumTypeSpecs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rtypespecs: *mut u32, cmax: u32, pctypespecs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumTypeSpecs(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rtypespecs), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pctypespecs)).into() } - unsafe extern "system" fn EnumUserStrings(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rstrings: *mut u32, cmax: u32, pcstrings: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumUserStrings(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, rstrings: *mut u32, cmax: u32, pcstrings: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumUserStrings(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&rstrings), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcstrings)).into() } - unsafe extern "system" fn GetParamForMethodIndex(this: *mut core::ffi::c_void, md: u32, ulparamseq: u32, ppd: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetParamForMethodIndex(this: *mut core::ffi::c_void, md: u32, ulparamseq: u32, ppd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetParamForMethodIndex(this, core::mem::transmute_copy(&md), core::mem::transmute_copy(&ulparamseq), core::mem::transmute_copy(&ppd)).into() } - unsafe extern "system" fn EnumCustomAttributes(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tk: u32, tktype: u32, rcustomattributes: *mut u32, cmax: u32, pccustomattributes: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn EnumCustomAttributes(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tk: u32, tktype: u32, rcustomattributes: *mut u32, cmax: u32, pccustomattributes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::EnumCustomAttributes(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&tk), core::mem::transmute_copy(&tktype), core::mem::transmute_copy(&rcustomattributes), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pccustomattributes)).into() } - unsafe extern "system" fn GetCustomAttributeProps(this: *mut core::ffi::c_void, cv: u32, ptkobj: *mut u32, ptktype: *mut u32, ppblob: *const *const core::ffi::c_void, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetCustomAttributeProps(this: *mut core::ffi::c_void, cv: u32, ptkobj: *mut u32, ptktype: *mut u32, ppblob: *const *const core::ffi::c_void, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetCustomAttributeProps(this, core::mem::transmute_copy(&cv), core::mem::transmute_copy(&ptkobj), core::mem::transmute_copy(&ptktype), core::mem::transmute_copy(&ppblob), core::mem::transmute_copy(&pcbsize)).into() } - unsafe extern "system" fn FindTypeRef(this: *mut core::ffi::c_void, tkresolutionscope: u32, szname: windows_core::PCWSTR, ptr: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn FindTypeRef(this: *mut core::ffi::c_void, tkresolutionscope: u32, szname: windows_core::PCWSTR, ptr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::FindTypeRef(this, core::mem::transmute_copy(&tkresolutionscope), core::mem::transmute(&szname), core::mem::transmute_copy(&ptr)).into() } - unsafe extern "system" fn GetMemberProps(this: *mut core::ffi::c_void, mb: u32, pclass: *mut u32, szmember: windows_core::PWSTR, cchmember: u32, pchmember: *mut u32, pdwattr: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32, pulcoderva: *mut u32, pdwimplflags: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut core::ffi::c_void, pcchvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetMemberProps(this: *mut core::ffi::c_void, mb: u32, pclass: *mut u32, szmember: windows_core::PWSTR, cchmember: u32, pchmember: *mut u32, pdwattr: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32, pulcoderva: *mut u32, pdwimplflags: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut core::ffi::c_void, pcchvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetMemberProps( this, @@ -1683,17 +1152,11 @@ impl IMetaDataImport_Vtbl { ) .into() } - unsafe extern "system" fn GetFieldProps(this: *mut core::ffi::c_void, mb: u32, pclass: *mut u32, szfield: windows_core::PWSTR, cchfield: u32, pchfield: *mut u32, pdwattr: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut core::ffi::c_void, pcchvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetFieldProps(this: *mut core::ffi::c_void, mb: u32, pclass: *mut u32, szfield: windows_core::PWSTR, cchfield: u32, pchfield: *mut u32, pdwattr: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut core::ffi::c_void, pcchvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetFieldProps(this, core::mem::transmute_copy(&mb), core::mem::transmute_copy(&pclass), core::mem::transmute_copy(&szfield), core::mem::transmute_copy(&cchfield), core::mem::transmute_copy(&pchfield), core::mem::transmute_copy(&pdwattr), core::mem::transmute_copy(&ppvsigblob), core::mem::transmute_copy(&pcbsigblob), core::mem::transmute_copy(&pdwcplustypeflag), core::mem::transmute_copy(&ppvalue), core::mem::transmute_copy(&pcchvalue)).into() } - unsafe extern "system" fn GetPropertyProps(this: *mut core::ffi::c_void, prop: u32, pclass: *mut u32, szproperty: windows_core::PCWSTR, cchproperty: u32, pchproperty: *mut u32, pdwpropflags: *mut u32, ppvsig: *mut *mut u8, pbsig: *mut u32, pdwcplustypeflag: *mut u32, ppdefaultvalue: *mut *mut core::ffi::c_void, pcchdefaultvalue: *mut u32, pmdsetter: *mut u32, pmdgetter: *mut u32, rmdothermethod: *mut u32, cmax: u32, pcothermethod: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetPropertyProps(this: *mut core::ffi::c_void, prop: u32, pclass: *mut u32, szproperty: windows_core::PCWSTR, cchproperty: u32, pchproperty: *mut u32, pdwpropflags: *mut u32, ppvsig: *mut *mut u8, pbsig: *mut u32, pdwcplustypeflag: *mut u32, ppdefaultvalue: *mut *mut core::ffi::c_void, pcchdefaultvalue: *mut u32, pmdsetter: *mut u32, pmdgetter: *mut u32, rmdothermethod: *mut u32, cmax: u32, pcothermethod: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetPropertyProps( this, @@ -1716,45 +1179,27 @@ impl IMetaDataImport_Vtbl { ) .into() } - unsafe extern "system" fn GetParamProps(this: *mut core::ffi::c_void, tk: u32, pmd: *mut u32, pulsequence: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pdwattr: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut core::ffi::c_void, pcchvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetParamProps(this: *mut core::ffi::c_void, tk: u32, pmd: *mut u32, pulsequence: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pdwattr: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut core::ffi::c_void, pcchvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetParamProps(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&pmd), core::mem::transmute_copy(&pulsequence), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname), core::mem::transmute_copy(&pdwattr), core::mem::transmute_copy(&pdwcplustypeflag), core::mem::transmute_copy(&ppvalue), core::mem::transmute_copy(&pcchvalue)).into() } - unsafe extern "system" fn GetCustomAttributeByName(this: *mut core::ffi::c_void, tkobj: u32, szname: windows_core::PCWSTR, ppdata: *const *const core::ffi::c_void, pcbdata: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetCustomAttributeByName(this: *mut core::ffi::c_void, tkobj: u32, szname: windows_core::PCWSTR, ppdata: *const *const core::ffi::c_void, pcbdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetCustomAttributeByName(this, core::mem::transmute_copy(&tkobj), core::mem::transmute(&szname), core::mem::transmute_copy(&ppdata), core::mem::transmute_copy(&pcbdata)).into() } - unsafe extern "system" fn IsValidToken(this: *mut core::ffi::c_void, tk: u32) -> super::super::super::Foundation::BOOL - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn IsValidToken(this: *mut core::ffi::c_void, tk: u32) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::IsValidToken(this, core::mem::transmute_copy(&tk)) } - unsafe extern "system" fn GetNestedClassProps(this: *mut core::ffi::c_void, tdnestedclass: u32, ptdenclosingclass: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetNestedClassProps(this: *mut core::ffi::c_void, tdnestedclass: u32, ptdenclosingclass: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetNestedClassProps(this, core::mem::transmute_copy(&tdnestedclass), core::mem::transmute_copy(&ptdenclosingclass)).into() } - unsafe extern "system" fn GetNativeCallConvFromSig(this: *mut core::ffi::c_void, pvsig: *const core::ffi::c_void, cbsig: u32, pcallconv: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn GetNativeCallConvFromSig(this: *mut core::ffi::c_void, pvsig: *const core::ffi::c_void, cbsig: u32, pcallconv: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::GetNativeCallConvFromSig(this, core::mem::transmute_copy(&pvsig), core::mem::transmute_copy(&cbsig), core::mem::transmute_copy(&pcallconv)).into() } - unsafe extern "system" fn IsGlobal(this: *mut core::ffi::c_void, pd: u32, pbglobal: *mut i32) -> windows_core::HRESULT - where - Identity: IMetaDataImport_Impl, - { + unsafe extern "system" fn IsGlobal(this: *mut core::ffi::c_void, pd: u32, pbglobal: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::IsGlobal(this, core::mem::transmute_copy(&pd), core::mem::transmute_copy(&pbglobal)).into() } @@ -1840,63 +1285,36 @@ pub trait IMetaDataImport2_Impl: Sized + IMetaDataImport_Impl { } impl windows_core::RuntimeName for IMetaDataImport2 {} impl IMetaDataImport2_Vtbl { - pub const fn new() -> IMetaDataImport2_Vtbl - where - Identity: IMetaDataImport2_Impl, - { - unsafe extern "system" fn EnumGenericParams(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tk: u32, rgenericparams: *mut u32, cmax: u32, pcgenericparams: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport2_Impl, - { + pub const fn new() -> IMetaDataImport2_Vtbl { + unsafe extern "system" fn EnumGenericParams(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tk: u32, rgenericparams: *mut u32, cmax: u32, pcgenericparams: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport2_Impl::EnumGenericParams(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&tk), core::mem::transmute_copy(&rgenericparams), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcgenericparams)).into() } - unsafe extern "system" fn GetGenericParamProps(this: *mut core::ffi::c_void, gp: u32, pulparamseq: *mut u32, pdwparamflags: *mut u32, ptowner: *mut u32, reserved: *mut u32, wzname: windows_core::PWSTR, cchname: u32, pchname: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport2_Impl, - { + unsafe extern "system" fn GetGenericParamProps(this: *mut core::ffi::c_void, gp: u32, pulparamseq: *mut u32, pdwparamflags: *mut u32, ptowner: *mut u32, reserved: *mut u32, wzname: windows_core::PWSTR, cchname: u32, pchname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport2_Impl::GetGenericParamProps(this, core::mem::transmute_copy(&gp), core::mem::transmute_copy(&pulparamseq), core::mem::transmute_copy(&pdwparamflags), core::mem::transmute_copy(&ptowner), core::mem::transmute_copy(&reserved), core::mem::transmute_copy(&wzname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname)).into() } - unsafe extern "system" fn GetMethodSpecProps(this: *mut core::ffi::c_void, mi: u32, tkparent: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport2_Impl, - { + unsafe extern "system" fn GetMethodSpecProps(this: *mut core::ffi::c_void, mi: u32, tkparent: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport2_Impl::GetMethodSpecProps(this, core::mem::transmute_copy(&mi), core::mem::transmute_copy(&tkparent), core::mem::transmute_copy(&ppvsigblob), core::mem::transmute_copy(&pcbsigblob)).into() } - unsafe extern "system" fn EnumGenericParamConstraints(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tk: u32, rgenericparamconstraints: *mut u32, cmax: u32, pcgenericparamconstraints: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport2_Impl, - { + unsafe extern "system" fn EnumGenericParamConstraints(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tk: u32, rgenericparamconstraints: *mut u32, cmax: u32, pcgenericparamconstraints: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport2_Impl::EnumGenericParamConstraints(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&tk), core::mem::transmute_copy(&rgenericparamconstraints), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcgenericparamconstraints)).into() } - unsafe extern "system" fn GetGenericParamConstraintProps(this: *mut core::ffi::c_void, gpc: u32, ptgenericparam: *mut u32, ptkconstrainttype: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport2_Impl, - { + unsafe extern "system" fn GetGenericParamConstraintProps(this: *mut core::ffi::c_void, gpc: u32, ptgenericparam: *mut u32, ptkconstrainttype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport2_Impl::GetGenericParamConstraintProps(this, core::mem::transmute_copy(&gpc), core::mem::transmute_copy(&ptgenericparam), core::mem::transmute_copy(&ptkconstrainttype)).into() } - unsafe extern "system" fn GetPEKind(this: *mut core::ffi::c_void, pdwpekind: *mut u32, pdwmachine: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport2_Impl, - { + unsafe extern "system" fn GetPEKind(this: *mut core::ffi::c_void, pdwpekind: *mut u32, pdwmachine: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport2_Impl::GetPEKind(this, core::mem::transmute_copy(&pdwpekind), core::mem::transmute_copy(&pdwmachine)).into() } - unsafe extern "system" fn GetVersionString(this: *mut core::ffi::c_void, pwzbuf: windows_core::PWSTR, ccbufsize: u32, pccbufsize: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport2_Impl, - { + unsafe extern "system" fn GetVersionString(this: *mut core::ffi::c_void, pwzbuf: windows_core::PWSTR, ccbufsize: u32, pccbufsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport2_Impl::GetVersionString(this, core::mem::transmute_copy(&pwzbuf), core::mem::transmute_copy(&ccbufsize), core::mem::transmute_copy(&pccbufsize)).into() } - unsafe extern "system" fn EnumMethodSpecs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tk: u32, rmethodspecs: *mut u32, cmax: u32, pcmethodspecs: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataImport2_Impl, - { + unsafe extern "system" fn EnumMethodSpecs(this: *mut core::ffi::c_void, phenum: *mut *mut core::ffi::c_void, tk: u32, rmethodspecs: *mut u32, cmax: u32, pcmethodspecs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport2_Impl::EnumMethodSpecs(this, core::mem::transmute_copy(&phenum), core::mem::transmute_copy(&tk), core::mem::transmute_copy(&rmethodspecs), core::mem::transmute_copy(&cmax), core::mem::transmute_copy(&pcmethodspecs)).into() } @@ -1916,19 +1334,13 @@ impl IMetaDataImport2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMetaDataInfo_Impl: Sized { +pub trait IMetaDataInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetFileMapping(&self, ppvdata: *const *const core::ffi::c_void, pcbdata: *mut u64, pdwmappingtype: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMetaDataInfo {} impl IMetaDataInfo_Vtbl { - pub const fn new() -> IMetaDataInfo_Vtbl - where - Identity: IMetaDataInfo_Impl, - { - unsafe extern "system" fn GetFileMapping(this: *mut core::ffi::c_void, ppvdata: *const *const core::ffi::c_void, pcbdata: *mut u64, pdwmappingtype: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataInfo_Impl, - { + pub const fn new() -> IMetaDataInfo_Vtbl { + unsafe extern "system" fn GetFileMapping(this: *mut core::ffi::c_void, ppvdata: *const *const core::ffi::c_void, pcbdata: *mut u64, pdwmappingtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataInfo_Impl::GetFileMapping(this, core::mem::transmute_copy(&ppvdata), core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&pdwmappingtype)).into() } @@ -1938,7 +1350,7 @@ impl IMetaDataInfo_Vtbl { iid == &::IID } } -pub trait IMetaDataTables_Impl: Sized { +pub trait IMetaDataTables_Impl: Sized + windows_core::IUnknownImpl { fn GetStringHeapSize(&self, pcbstrings: *mut u32) -> windows_core::Result<()>; fn GetBlobHeapSize(&self, pcbblobs: *mut u32) -> windows_core::Result<()>; fn GetGuidHeapSize(&self, pcbguids: *mut u32) -> windows_core::Result<()>; @@ -1961,140 +1373,80 @@ pub trait IMetaDataTables_Impl: Sized { } impl windows_core::RuntimeName for IMetaDataTables {} impl IMetaDataTables_Vtbl { - pub const fn new() -> IMetaDataTables_Vtbl - where - Identity: IMetaDataTables_Impl, - { - unsafe extern "system" fn GetStringHeapSize(this: *mut core::ffi::c_void, pcbstrings: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + pub const fn new() -> IMetaDataTables_Vtbl { + unsafe extern "system" fn GetStringHeapSize(this: *mut core::ffi::c_void, pcbstrings: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetStringHeapSize(this, core::mem::transmute_copy(&pcbstrings)).into() } - unsafe extern "system" fn GetBlobHeapSize(this: *mut core::ffi::c_void, pcbblobs: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetBlobHeapSize(this: *mut core::ffi::c_void, pcbblobs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetBlobHeapSize(this, core::mem::transmute_copy(&pcbblobs)).into() } - unsafe extern "system" fn GetGuidHeapSize(this: *mut core::ffi::c_void, pcbguids: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetGuidHeapSize(this: *mut core::ffi::c_void, pcbguids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetGuidHeapSize(this, core::mem::transmute_copy(&pcbguids)).into() } - unsafe extern "system" fn GetUserStringHeapSize(this: *mut core::ffi::c_void, pcbblobs: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetUserStringHeapSize(this: *mut core::ffi::c_void, pcbblobs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetUserStringHeapSize(this, core::mem::transmute_copy(&pcbblobs)).into() } - unsafe extern "system" fn GetNumTables(this: *mut core::ffi::c_void, pctables: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetNumTables(this: *mut core::ffi::c_void, pctables: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetNumTables(this, core::mem::transmute_copy(&pctables)).into() } - unsafe extern "system" fn GetTableIndex(this: *mut core::ffi::c_void, token: u32, pixtbl: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetTableIndex(this: *mut core::ffi::c_void, token: u32, pixtbl: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetTableIndex(this, core::mem::transmute_copy(&token), core::mem::transmute_copy(&pixtbl)).into() } - unsafe extern "system" fn GetTableInfo(this: *mut core::ffi::c_void, ixtbl: u32, pcbrow: *mut u32, pcrows: *mut u32, pccols: *mut u32, pikey: *mut u32, ppname: *const *const i8) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetTableInfo(this: *mut core::ffi::c_void, ixtbl: u32, pcbrow: *mut u32, pcrows: *mut u32, pccols: *mut u32, pikey: *mut u32, ppname: *const *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetTableInfo(this, core::mem::transmute_copy(&ixtbl), core::mem::transmute_copy(&pcbrow), core::mem::transmute_copy(&pcrows), core::mem::transmute_copy(&pccols), core::mem::transmute_copy(&pikey), core::mem::transmute_copy(&ppname)).into() } - unsafe extern "system" fn GetColumnInfo(this: *mut core::ffi::c_void, ixtbl: u32, ixcol: u32, pocol: *mut u32, pcbcol: *mut u32, ptype: *mut u32, ppname: *const *const i8) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetColumnInfo(this: *mut core::ffi::c_void, ixtbl: u32, ixcol: u32, pocol: *mut u32, pcbcol: *mut u32, ptype: *mut u32, ppname: *const *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetColumnInfo(this, core::mem::transmute_copy(&ixtbl), core::mem::transmute_copy(&ixcol), core::mem::transmute_copy(&pocol), core::mem::transmute_copy(&pcbcol), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&ppname)).into() } - unsafe extern "system" fn GetCodedTokenInfo(this: *mut core::ffi::c_void, ixcdtkn: u32, pctokens: *mut u32, pptokens: *mut *mut u32, ppname: *const *const i8) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetCodedTokenInfo(this: *mut core::ffi::c_void, ixcdtkn: u32, pctokens: *mut u32, pptokens: *mut *mut u32, ppname: *const *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetCodedTokenInfo(this, core::mem::transmute_copy(&ixcdtkn), core::mem::transmute_copy(&pctokens), core::mem::transmute_copy(&pptokens), core::mem::transmute_copy(&ppname)).into() } - unsafe extern "system" fn GetRow(this: *mut core::ffi::c_void, ixtbl: u32, rid: u32, pprow: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetRow(this: *mut core::ffi::c_void, ixtbl: u32, rid: u32, pprow: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetRow(this, core::mem::transmute_copy(&ixtbl), core::mem::transmute_copy(&rid), core::mem::transmute_copy(&pprow)).into() } - unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, ixtbl: u32, ixcol: u32, rid: u32, pval: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, ixtbl: u32, ixcol: u32, rid: u32, pval: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetColumn(this, core::mem::transmute_copy(&ixtbl), core::mem::transmute_copy(&ixcol), core::mem::transmute_copy(&rid), core::mem::transmute_copy(&pval)).into() } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, ixstring: u32, ppstring: *const *const i8) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, ixstring: u32, ppstring: *const *const i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetString(this, core::mem::transmute_copy(&ixstring), core::mem::transmute_copy(&ppstring)).into() } - unsafe extern "system" fn GetBlob(this: *mut core::ffi::c_void, ixblob: u32, pcbdata: *mut u32, ppdata: *const *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetBlob(this: *mut core::ffi::c_void, ixblob: u32, pcbdata: *mut u32, ppdata: *const *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetBlob(this, core::mem::transmute_copy(&ixblob), core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&ppdata)).into() } - unsafe extern "system" fn GetGuid(this: *mut core::ffi::c_void, ixguid: u32, ppguid: *const *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetGuid(this: *mut core::ffi::c_void, ixguid: u32, ppguid: *const *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetGuid(this, core::mem::transmute_copy(&ixguid), core::mem::transmute_copy(&ppguid)).into() } - unsafe extern "system" fn GetUserString(this: *mut core::ffi::c_void, ixuserstring: u32, pcbdata: *mut u32, ppdata: *const *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetUserString(this: *mut core::ffi::c_void, ixuserstring: u32, pcbdata: *mut u32, ppdata: *const *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetUserString(this, core::mem::transmute_copy(&ixuserstring), core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&ppdata)).into() } - unsafe extern "system" fn GetNextString(this: *mut core::ffi::c_void, ixstring: u32, pnext: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetNextString(this: *mut core::ffi::c_void, ixstring: u32, pnext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetNextString(this, core::mem::transmute_copy(&ixstring), core::mem::transmute_copy(&pnext)).into() } - unsafe extern "system" fn GetNextBlob(this: *mut core::ffi::c_void, ixblob: u32, pnext: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetNextBlob(this: *mut core::ffi::c_void, ixblob: u32, pnext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetNextBlob(this, core::mem::transmute_copy(&ixblob), core::mem::transmute_copy(&pnext)).into() } - unsafe extern "system" fn GetNextGuid(this: *mut core::ffi::c_void, ixguid: u32, pnext: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetNextGuid(this: *mut core::ffi::c_void, ixguid: u32, pnext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetNextGuid(this, core::mem::transmute_copy(&ixguid), core::mem::transmute_copy(&pnext)).into() } - unsafe extern "system" fn GetNextUserString(this: *mut core::ffi::c_void, ixuserstring: u32, pnext: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables_Impl, - { + unsafe extern "system" fn GetNextUserString(this: *mut core::ffi::c_void, ixuserstring: u32, pnext: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables_Impl::GetNextUserString(this, core::mem::transmute_copy(&ixuserstring), core::mem::transmute_copy(&pnext)).into() } @@ -2131,21 +1483,12 @@ pub trait IMetaDataTables2_Impl: Sized + IMetaDataTables_Impl { } impl windows_core::RuntimeName for IMetaDataTables2 {} impl IMetaDataTables2_Vtbl { - pub const fn new() -> IMetaDataTables2_Vtbl - where - Identity: IMetaDataTables2_Impl, - { - unsafe extern "system" fn GetMetaDataStorage(this: *mut core::ffi::c_void, ppvmd: *const *const core::ffi::c_void, pcbmd: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables2_Impl, - { + pub const fn new() -> IMetaDataTables2_Vtbl { + unsafe extern "system" fn GetMetaDataStorage(this: *mut core::ffi::c_void, ppvmd: *const *const core::ffi::c_void, pcbmd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables2_Impl::GetMetaDataStorage(this, core::mem::transmute_copy(&ppvmd), core::mem::transmute_copy(&pcbmd)).into() } - unsafe extern "system" fn GetMetaDataStreamInfo(this: *mut core::ffi::c_void, ix: u32, ppchname: *const *const i8, ppv: *const *const core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataTables2_Impl, - { + unsafe extern "system" fn GetMetaDataStreamInfo(this: *mut core::ffi::c_void, ix: u32, ppchname: *const *const i8, ppv: *const *const core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataTables2_Impl::GetMetaDataStreamInfo(this, core::mem::transmute_copy(&ix), core::mem::transmute_copy(&ppchname), core::mem::transmute_copy(&ppv), core::mem::transmute_copy(&pcb)).into() } @@ -2159,27 +1502,18 @@ impl IMetaDataTables2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMetaDataValidate_Impl: Sized { +pub trait IMetaDataValidate_Impl: Sized + windows_core::IUnknownImpl { fn ValidatorInit(&self, dwmoduletype: u32, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn ValidateMetaData(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMetaDataValidate {} impl IMetaDataValidate_Vtbl { - pub const fn new() -> IMetaDataValidate_Vtbl - where - Identity: IMetaDataValidate_Impl, - { - unsafe extern "system" fn ValidatorInit(this: *mut core::ffi::c_void, dwmoduletype: u32, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataValidate_Impl, - { + pub const fn new() -> IMetaDataValidate_Vtbl { + unsafe extern "system" fn ValidatorInit(this: *mut core::ffi::c_void, dwmoduletype: u32, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataValidate_Impl::ValidatorInit(this, core::mem::transmute_copy(&dwmoduletype), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn ValidateMetaData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMetaDataValidate_Impl, - { + unsafe extern "system" fn ValidateMetaData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataValidate_Impl::ValidateMetaData(this).into() } @@ -2193,19 +1527,13 @@ impl IMetaDataValidate_Vtbl { iid == &::IID } } -pub trait IMetaDataWinMDImport_Impl: Sized { +pub trait IMetaDataWinMDImport_Impl: Sized + windows_core::IUnknownImpl { fn GetUntransformedTypeRefProps(&self, tr: u32, ptkresolutionscope: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMetaDataWinMDImport {} impl IMetaDataWinMDImport_Vtbl { - pub const fn new() -> IMetaDataWinMDImport_Vtbl - where - Identity: IMetaDataWinMDImport_Impl, - { - unsafe extern "system" fn GetUntransformedTypeRefProps(this: *mut core::ffi::c_void, tr: u32, ptkresolutionscope: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32) -> windows_core::HRESULT - where - Identity: IMetaDataWinMDImport_Impl, - { + pub const fn new() -> IMetaDataWinMDImport_Vtbl { + unsafe extern "system" fn GetUntransformedTypeRefProps(this: *mut core::ffi::c_void, tr: u32, ptkresolutionscope: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataWinMDImport_Impl::GetUntransformedTypeRefProps(this, core::mem::transmute_copy(&tr), core::mem::transmute_copy(&ptkresolutionscope), core::mem::transmute_copy(&szname), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pchname)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/impl.rs index 95884d03d1..ec828a33d9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi"))] -pub trait IPdfRendererNative_Impl: Sized { +pub trait IPdfRendererNative_Impl: Sized + windows_core::IUnknownImpl { fn RenderPageToSurface(&self, pdfpage: Option<&windows_core::IUnknown>, psurface: Option<&super::super::super::Graphics::Dxgi::IDXGISurface>, offset: &super::super::super::Foundation::POINT, prenderparams: *const PDF_RENDER_PARAMS) -> windows_core::Result<()>; fn RenderPageToDeviceContext(&self, pdfpage: Option<&windows_core::IUnknown>, pd2ddevicecontext: Option<&super::super::super::Graphics::Direct2D::ID2D1DeviceContext>, prenderparams: *const PDF_RENDER_PARAMS) -> windows_core::Result<()>; } @@ -7,21 +7,12 @@ pub trait IPdfRendererNative_Impl: Sized { impl windows_core::RuntimeName for IPdfRendererNative {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi"))] impl IPdfRendererNative_Vtbl { - pub const fn new() -> IPdfRendererNative_Vtbl - where - Identity: IPdfRendererNative_Impl, - { - unsafe extern "system" fn RenderPageToSurface(this: *mut core::ffi::c_void, pdfpage: *mut core::ffi::c_void, psurface: *mut core::ffi::c_void, offset: super::super::super::Foundation::POINT, prenderparams: *const PDF_RENDER_PARAMS) -> windows_core::HRESULT - where - Identity: IPdfRendererNative_Impl, - { + pub const fn new() -> IPdfRendererNative_Vtbl { + unsafe extern "system" fn RenderPageToSurface(this: *mut core::ffi::c_void, pdfpage: *mut core::ffi::c_void, psurface: *mut core::ffi::c_void, offset: super::super::super::Foundation::POINT, prenderparams: *const PDF_RENDER_PARAMS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPdfRendererNative_Impl::RenderPageToSurface(this, windows_core::from_raw_borrowed(&pdfpage), windows_core::from_raw_borrowed(&psurface), core::mem::transmute(&offset), core::mem::transmute_copy(&prenderparams)).into() } - unsafe extern "system" fn RenderPageToDeviceContext(this: *mut core::ffi::c_void, pdfpage: *mut core::ffi::c_void, pd2ddevicecontext: *mut core::ffi::c_void, prenderparams: *const PDF_RENDER_PARAMS) -> windows_core::HRESULT - where - Identity: IPdfRendererNative_Impl, - { + unsafe extern "system" fn RenderPageToDeviceContext(this: *mut core::ffi::c_void, pdfpage: *mut core::ffi::c_void, pd2ddevicecontext: *mut core::ffi::c_void, prenderparams: *const PDF_RENDER_PARAMS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPdfRendererNative_Impl::RenderPageToDeviceContext(this, windows_core::from_raw_borrowed(&pdfpage), windows_core::from_raw_borrowed(&pd2ddevicecontext), core::mem::transmute_copy(&prenderparams)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/impl.rs index d6bb476737..b49a398755 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_Storage_Xps_Printing")] -pub trait IPrintDocumentPageSource_Impl: Sized { +pub trait IPrintDocumentPageSource_Impl: Sized + windows_core::IUnknownImpl { fn GetPreviewPageCollection(&self, docpackagetarget: Option<&super::super::super::Storage::Xps::Printing::IPrintDocumentPackageTarget>) -> windows_core::Result; fn MakeDocument(&self, printtaskoptions: Option<&windows_core::IInspectable>, docpackagetarget: Option<&super::super::super::Storage::Xps::Printing::IPrintDocumentPackageTarget>) -> windows_core::Result<()>; } @@ -7,14 +7,8 @@ pub trait IPrintDocumentPageSource_Impl: Sized { impl windows_core::RuntimeName for IPrintDocumentPageSource {} #[cfg(feature = "Win32_Storage_Xps_Printing")] impl IPrintDocumentPageSource_Vtbl { - pub const fn new() -> IPrintDocumentPageSource_Vtbl - where - Identity: IPrintDocumentPageSource_Impl, - { - unsafe extern "system" fn GetPreviewPageCollection(this: *mut core::ffi::c_void, docpackagetarget: *mut core::ffi::c_void, docpagecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintDocumentPageSource_Impl, - { + pub const fn new() -> IPrintDocumentPageSource_Vtbl { + unsafe extern "system" fn GetPreviewPageCollection(this: *mut core::ffi::c_void, docpackagetarget: *mut core::ffi::c_void, docpagecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintDocumentPageSource_Impl::GetPreviewPageCollection(this, windows_core::from_raw_borrowed(&docpackagetarget)) { Ok(ok__) => { @@ -24,10 +18,7 @@ impl IPrintDocumentPageSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MakeDocument(this: *mut core::ffi::c_void, printtaskoptions: *mut core::ffi::c_void, docpackagetarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintDocumentPageSource_Impl, - { + unsafe extern "system" fn MakeDocument(this: *mut core::ffi::c_void, printtaskoptions: *mut core::ffi::c_void, docpackagetarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDocumentPageSource_Impl::MakeDocument(this, windows_core::from_raw_borrowed(&printtaskoptions), windows_core::from_raw_borrowed(&docpackagetarget)).into() } @@ -41,27 +32,18 @@ impl IPrintDocumentPageSource_Vtbl { iid == &::IID } } -pub trait IPrintManagerInterop_Impl: Sized { +pub trait IPrintManagerInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, printmanager: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn ShowPrintUIForWindowAsync(&self, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintManagerInterop {} impl IPrintManagerInterop_Vtbl { - pub const fn new() -> IPrintManagerInterop_Vtbl - where - Identity: IPrintManagerInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, printmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintManagerInterop_Impl, - { + pub const fn new() -> IPrintManagerInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, printmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintManagerInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&printmanager)).into() } - unsafe extern "system" fn ShowPrintUIForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintManagerInterop_Impl, - { + unsafe extern "system" fn ShowPrintUIForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintManagerInterop_Impl::ShowPrintUIForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } @@ -75,27 +57,18 @@ impl IPrintManagerInterop_Vtbl { iid == &::IID } } -pub trait IPrintPreviewPageCollection_Impl: Sized { +pub trait IPrintPreviewPageCollection_Impl: Sized + windows_core::IUnknownImpl { fn Paginate(&self, currentjobpage: u32, printtaskoptions: Option<&windows_core::IInspectable>) -> windows_core::Result<()>; fn MakePage(&self, desiredjobpage: u32, width: f32, height: f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintPreviewPageCollection {} impl IPrintPreviewPageCollection_Vtbl { - pub const fn new() -> IPrintPreviewPageCollection_Vtbl - where - Identity: IPrintPreviewPageCollection_Impl, - { - unsafe extern "system" fn Paginate(this: *mut core::ffi::c_void, currentjobpage: u32, printtaskoptions: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintPreviewPageCollection_Impl, - { + pub const fn new() -> IPrintPreviewPageCollection_Vtbl { + unsafe extern "system" fn Paginate(this: *mut core::ffi::c_void, currentjobpage: u32, printtaskoptions: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPreviewPageCollection_Impl::Paginate(this, core::mem::transmute_copy(¤tjobpage), windows_core::from_raw_borrowed(&printtaskoptions)).into() } - unsafe extern "system" fn MakePage(this: *mut core::ffi::c_void, desiredjobpage: u32, width: f32, height: f32) -> windows_core::HRESULT - where - Identity: IPrintPreviewPageCollection_Impl, - { + unsafe extern "system" fn MakePage(this: *mut core::ffi::c_void, desiredjobpage: u32, width: f32, height: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPreviewPageCollection_Impl::MakePage(this, core::mem::transmute_copy(&desiredjobpage), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } @@ -106,7 +79,7 @@ impl IPrintPreviewPageCollection_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Printing", feature = "Win32_System_Com"))] -pub trait IPrintWorkflowConfigurationNative_Impl: Sized { +pub trait IPrintWorkflowConfigurationNative_Impl: Sized + windows_core::IUnknownImpl { fn PrinterQueue(&self) -> windows_core::Result; fn DriverProperties(&self) -> windows_core::Result; fn UserProperties(&self) -> windows_core::Result; @@ -115,14 +88,8 @@ pub trait IPrintWorkflowConfigurationNative_Impl: Sized { impl windows_core::RuntimeName for IPrintWorkflowConfigurationNative {} #[cfg(all(feature = "Win32_Graphics_Printing", feature = "Win32_System_Com"))] impl IPrintWorkflowConfigurationNative_Vtbl { - pub const fn new() -> IPrintWorkflowConfigurationNative_Vtbl - where - Identity: IPrintWorkflowConfigurationNative_Impl, - { - unsafe extern "system" fn PrinterQueue(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintWorkflowConfigurationNative_Impl, - { + pub const fn new() -> IPrintWorkflowConfigurationNative_Vtbl { + unsafe extern "system" fn PrinterQueue(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintWorkflowConfigurationNative_Impl::PrinterQueue(this) { Ok(ok__) => { @@ -132,10 +99,7 @@ impl IPrintWorkflowConfigurationNative_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DriverProperties(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintWorkflowConfigurationNative_Impl, - { + unsafe extern "system" fn DriverProperties(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintWorkflowConfigurationNative_Impl::DriverProperties(this) { Ok(ok__) => { @@ -145,10 +109,7 @@ impl IPrintWorkflowConfigurationNative_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UserProperties(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintWorkflowConfigurationNative_Impl, - { + unsafe extern "system" fn UserProperties(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintWorkflowConfigurationNative_Impl::UserProperties(this) { Ok(ok__) => { @@ -170,7 +131,7 @@ impl IPrintWorkflowConfigurationNative_Vtbl { } } #[cfg(feature = "Win32_Storage_Xps")] -pub trait IPrintWorkflowObjectModelSourceFileContentNative_Impl: Sized { +pub trait IPrintWorkflowObjectModelSourceFileContentNative_Impl: Sized + windows_core::IUnknownImpl { fn StartXpsOMGeneration(&self, receiver: Option<&IPrintWorkflowXpsReceiver>) -> windows_core::Result<()>; fn ObjectFactory(&self) -> windows_core::Result; } @@ -178,21 +139,12 @@ pub trait IPrintWorkflowObjectModelSourceFileContentNative_Impl: Sized { impl windows_core::RuntimeName for IPrintWorkflowObjectModelSourceFileContentNative {} #[cfg(feature = "Win32_Storage_Xps")] impl IPrintWorkflowObjectModelSourceFileContentNative_Vtbl { - pub const fn new() -> IPrintWorkflowObjectModelSourceFileContentNative_Vtbl - where - Identity: IPrintWorkflowObjectModelSourceFileContentNative_Impl, - { - unsafe extern "system" fn StartXpsOMGeneration(this: *mut core::ffi::c_void, receiver: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintWorkflowObjectModelSourceFileContentNative_Impl, - { + pub const fn new() -> IPrintWorkflowObjectModelSourceFileContentNative_Vtbl { + unsafe extern "system" fn StartXpsOMGeneration(this: *mut core::ffi::c_void, receiver: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintWorkflowObjectModelSourceFileContentNative_Impl::StartXpsOMGeneration(this, windows_core::from_raw_borrowed(&receiver)).into() } - unsafe extern "system" fn ObjectFactory(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintWorkflowObjectModelSourceFileContentNative_Impl, - { + unsafe extern "system" fn ObjectFactory(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintWorkflowObjectModelSourceFileContentNative_Impl::ObjectFactory(this) { Ok(ok__) => { @@ -213,21 +165,15 @@ impl IPrintWorkflowObjectModelSourceFileContentNative_Vtbl { } } #[cfg(feature = "Win32_Storage_Xps")] -pub trait IPrintWorkflowXpsObjectModelTargetPackageNative_Impl: Sized { +pub trait IPrintWorkflowXpsObjectModelTargetPackageNative_Impl: Sized + windows_core::IUnknownImpl { fn DocumentPackageTarget(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Storage_Xps")] impl windows_core::RuntimeName for IPrintWorkflowXpsObjectModelTargetPackageNative {} #[cfg(feature = "Win32_Storage_Xps")] impl IPrintWorkflowXpsObjectModelTargetPackageNative_Vtbl { - pub const fn new() -> IPrintWorkflowXpsObjectModelTargetPackageNative_Vtbl - where - Identity: IPrintWorkflowXpsObjectModelTargetPackageNative_Impl, - { - unsafe extern "system" fn DocumentPackageTarget(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintWorkflowXpsObjectModelTargetPackageNative_Impl, - { + pub const fn new() -> IPrintWorkflowXpsObjectModelTargetPackageNative_Vtbl { + unsafe extern "system" fn DocumentPackageTarget(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintWorkflowXpsObjectModelTargetPackageNative_Impl::DocumentPackageTarget(this) { Ok(ok__) => { @@ -244,7 +190,7 @@ impl IPrintWorkflowXpsObjectModelTargetPackageNative_Vtbl { } } #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] -pub trait IPrintWorkflowXpsReceiver_Impl: Sized { +pub trait IPrintWorkflowXpsReceiver_Impl: Sized + windows_core::IUnknownImpl { fn SetDocumentSequencePrintTicket(&self, documentsequenceprintticket: Option<&super::super::Com::IStream>) -> windows_core::Result<()>; fn SetDocumentSequenceUri(&self, documentsequenceuri: &windows_core::PCWSTR) -> windows_core::Result<()>; fn AddDocumentData(&self, documentid: u32, documentprintticket: Option<&super::super::Com::IStream>, documenturi: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -255,42 +201,24 @@ pub trait IPrintWorkflowXpsReceiver_Impl: Sized { impl windows_core::RuntimeName for IPrintWorkflowXpsReceiver {} #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] impl IPrintWorkflowXpsReceiver_Vtbl { - pub const fn new() -> IPrintWorkflowXpsReceiver_Vtbl - where - Identity: IPrintWorkflowXpsReceiver_Impl, - { - unsafe extern "system" fn SetDocumentSequencePrintTicket(this: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintWorkflowXpsReceiver_Impl, - { + pub const fn new() -> IPrintWorkflowXpsReceiver_Vtbl { + unsafe extern "system" fn SetDocumentSequencePrintTicket(this: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintWorkflowXpsReceiver_Impl::SetDocumentSequencePrintTicket(this, windows_core::from_raw_borrowed(&documentsequenceprintticket)).into() } - unsafe extern "system" fn SetDocumentSequenceUri(this: *mut core::ffi::c_void, documentsequenceuri: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPrintWorkflowXpsReceiver_Impl, - { + unsafe extern "system" fn SetDocumentSequenceUri(this: *mut core::ffi::c_void, documentsequenceuri: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintWorkflowXpsReceiver_Impl::SetDocumentSequenceUri(this, core::mem::transmute(&documentsequenceuri)).into() } - unsafe extern "system" fn AddDocumentData(this: *mut core::ffi::c_void, documentid: u32, documentprintticket: *mut core::ffi::c_void, documenturi: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPrintWorkflowXpsReceiver_Impl, - { + unsafe extern "system" fn AddDocumentData(this: *mut core::ffi::c_void, documentid: u32, documentprintticket: *mut core::ffi::c_void, documenturi: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintWorkflowXpsReceiver_Impl::AddDocumentData(this, core::mem::transmute_copy(&documentid), windows_core::from_raw_borrowed(&documentprintticket), core::mem::transmute(&documenturi)).into() } - unsafe extern "system" fn AddPage(this: *mut core::ffi::c_void, documentid: u32, pageid: u32, pagereference: *mut core::ffi::c_void, pageuri: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPrintWorkflowXpsReceiver_Impl, - { + unsafe extern "system" fn AddPage(this: *mut core::ffi::c_void, documentid: u32, pageid: u32, pagereference: *mut core::ffi::c_void, pageuri: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintWorkflowXpsReceiver_Impl::AddPage(this, core::mem::transmute_copy(&documentid), core::mem::transmute_copy(&pageid), windows_core::from_raw_borrowed(&pagereference), core::mem::transmute(&pageuri)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintWorkflowXpsReceiver_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintWorkflowXpsReceiver_Impl::Close(this).into() } @@ -315,14 +243,8 @@ pub trait IPrintWorkflowXpsReceiver2_Impl: Sized + IPrintWorkflowXpsReceiver_Imp impl windows_core::RuntimeName for IPrintWorkflowXpsReceiver2 {} #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] impl IPrintWorkflowXpsReceiver2_Vtbl { - pub const fn new() -> IPrintWorkflowXpsReceiver2_Vtbl - where - Identity: IPrintWorkflowXpsReceiver2_Impl, - { - unsafe extern "system" fn Failed(this: *mut core::ffi::c_void, xpserror: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IPrintWorkflowXpsReceiver2_Impl, - { + pub const fn new() -> IPrintWorkflowXpsReceiver2_Vtbl { + unsafe extern "system" fn Failed(this: *mut core::ffi::c_void, xpserror: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintWorkflowXpsReceiver2_Impl::Failed(this, core::mem::transmute_copy(&xpserror)).into() } @@ -332,27 +254,18 @@ impl IPrintWorkflowXpsReceiver2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPrinting3DManagerInterop_Impl: Sized { +pub trait IPrinting3DManagerInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, printmanager: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn ShowPrintUIForWindowAsync(&self, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrinting3DManagerInterop {} impl IPrinting3DManagerInterop_Vtbl { - pub const fn new() -> IPrinting3DManagerInterop_Vtbl - where - Identity: IPrinting3DManagerInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, printmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinting3DManagerInterop_Impl, - { + pub const fn new() -> IPrinting3DManagerInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, printmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinting3DManagerInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&printmanager)).into() } - unsafe extern "system" fn ShowPrintUIForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrinting3DManagerInterop_Impl, - { + unsafe extern "system" fn ShowPrintUIForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinting3DManagerInterop_Impl::ShowPrintUIForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/impl.rs index 02cc32eb1e..950d92d81c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/impl.rs @@ -1,19 +1,13 @@ #[cfg(feature = "Win32_UI_Shell")] -pub trait IDDEInitializer_Impl: Sized { +pub trait IDDEInitializer_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, fileextensionorprotocol: &windows_core::PCWSTR, method: CreateProcessMethod, currentdirectory: &windows_core::PCWSTR, exectarget: Option<&super::super::super::UI::Shell::IShellItem>, site: Option<&windows_core::IUnknown>, application: &windows_core::PCWSTR, targetfile: &windows_core::PCWSTR, arguments: &windows_core::PCWSTR, verb: &windows_core::PCWSTR) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_Shell")] impl windows_core::RuntimeName for IDDEInitializer {} #[cfg(feature = "Win32_UI_Shell")] impl IDDEInitializer_Vtbl { - pub const fn new() -> IDDEInitializer_Vtbl - where - Identity: IDDEInitializer_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, fileextensionorprotocol: windows_core::PCWSTR, method: CreateProcessMethod, currentdirectory: windows_core::PCWSTR, exectarget: *mut core::ffi::c_void, site: *mut core::ffi::c_void, application: windows_core::PCWSTR, targetfile: windows_core::PCWSTR, arguments: windows_core::PCWSTR, verb: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDDEInitializer_Impl, - { + pub const fn new() -> IDDEInitializer_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, fileextensionorprotocol: windows_core::PCWSTR, method: CreateProcessMethod, currentdirectory: windows_core::PCWSTR, exectarget: *mut core::ffi::c_void, site: *mut core::ffi::c_void, application: windows_core::PCWSTR, targetfile: windows_core::PCWSTR, arguments: windows_core::PCWSTR, verb: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDEInitializer_Impl::Initialize(this, core::mem::transmute(&fileextensionorprotocol), core::mem::transmute_copy(&method), core::mem::transmute(¤tdirectory), windows_core::from_raw_borrowed(&exectarget), windows_core::from_raw_borrowed(&site), core::mem::transmute(&application), core::mem::transmute(&targetfile), core::mem::transmute(&arguments), core::mem::transmute(&verb)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/impl.rs index cd11a09a08..a93a1a2d93 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/impl.rs @@ -1,16 +1,10 @@ -pub trait IOplockBreakingHandler_Impl: Sized { +pub trait IOplockBreakingHandler_Impl: Sized + windows_core::IUnknownImpl { fn OplockBreaking(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOplockBreakingHandler {} impl IOplockBreakingHandler_Vtbl { - pub const fn new() -> IOplockBreakingHandler_Vtbl - where - Identity: IOplockBreakingHandler_Impl, - { - unsafe extern "system" fn OplockBreaking(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOplockBreakingHandler_Impl, - { + pub const fn new() -> IOplockBreakingHandler_Vtbl { + unsafe extern "system" fn OplockBreaking(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOplockBreakingHandler_Impl::OplockBreaking(this).into() } @@ -20,19 +14,13 @@ impl IOplockBreakingHandler_Vtbl { iid == &::IID } } -pub trait IRandomAccessStreamFileAccessMode_Impl: Sized { +pub trait IRandomAccessStreamFileAccessMode_Impl: Sized + windows_core::IUnknownImpl { fn GetMode(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IRandomAccessStreamFileAccessMode {} impl IRandomAccessStreamFileAccessMode_Vtbl { - pub const fn new() -> IRandomAccessStreamFileAccessMode_Vtbl - where - Identity: IRandomAccessStreamFileAccessMode_Impl, - { - unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, fileaccessmode: *mut u32) -> windows_core::HRESULT - where - Identity: IRandomAccessStreamFileAccessMode_Impl, - { + pub const fn new() -> IRandomAccessStreamFileAccessMode_Vtbl { + unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, fileaccessmode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRandomAccessStreamFileAccessMode_Impl::GetMode(this) { Ok(ok__) => { @@ -48,19 +36,13 @@ impl IRandomAccessStreamFileAccessMode_Vtbl { iid == &::IID } } -pub trait IStorageFolderHandleAccess_Impl: Sized { +pub trait IStorageFolderHandleAccess_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, filename: &windows_core::PCWSTR, creationoptions: HANDLE_CREATION_OPTIONS, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: Option<&IOplockBreakingHandler>) -> windows_core::Result; } impl windows_core::RuntimeName for IStorageFolderHandleAccess {} impl IStorageFolderHandleAccess_Vtbl { - pub const fn new() -> IStorageFolderHandleAccess_Vtbl - where - Identity: IStorageFolderHandleAccess_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, creationoptions: HANDLE_CREATION_OPTIONS, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: *mut core::ffi::c_void, interophandle: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IStorageFolderHandleAccess_Impl, - { + pub const fn new() -> IStorageFolderHandleAccess_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, creationoptions: HANDLE_CREATION_OPTIONS, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: *mut core::ffi::c_void, interophandle: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageFolderHandleAccess_Impl::Create(this, core::mem::transmute(&filename), core::mem::transmute_copy(&creationoptions), core::mem::transmute_copy(&accessoptions), core::mem::transmute_copy(&sharingoptions), core::mem::transmute_copy(&options), windows_core::from_raw_borrowed(&oplockbreakinghandler)) { Ok(ok__) => { @@ -76,19 +58,13 @@ impl IStorageFolderHandleAccess_Vtbl { iid == &::IID } } -pub trait IStorageItemHandleAccess_Impl: Sized { +pub trait IStorageItemHandleAccess_Impl: Sized + windows_core::IUnknownImpl { fn Create(&self, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: Option<&IOplockBreakingHandler>) -> windows_core::Result; } impl windows_core::RuntimeName for IStorageItemHandleAccess {} impl IStorageItemHandleAccess_Vtbl { - pub const fn new() -> IStorageItemHandleAccess_Vtbl - where - Identity: IStorageItemHandleAccess_Impl, - { - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: *mut core::ffi::c_void, interophandle: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IStorageItemHandleAccess_Impl, - { + pub const fn new() -> IStorageItemHandleAccess_Vtbl { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: *mut core::ffi::c_void, interophandle: *mut super::super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageItemHandleAccess_Impl::Create(this, core::mem::transmute_copy(&accessoptions), core::mem::transmute_copy(&sharingoptions), core::mem::transmute_copy(&options), windows_core::from_raw_borrowed(&oplockbreakinghandler)) { Ok(ok__) => { @@ -104,19 +80,13 @@ impl IStorageItemHandleAccess_Vtbl { iid == &::IID } } -pub trait IUnbufferedFileHandleOplockCallback_Impl: Sized { +pub trait IUnbufferedFileHandleOplockCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnBrokenCallback(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUnbufferedFileHandleOplockCallback {} impl IUnbufferedFileHandleOplockCallback_Vtbl { - pub const fn new() -> IUnbufferedFileHandleOplockCallback_Vtbl - where - Identity: IUnbufferedFileHandleOplockCallback_Impl, - { - unsafe extern "system" fn OnBrokenCallback(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUnbufferedFileHandleOplockCallback_Impl, - { + pub const fn new() -> IUnbufferedFileHandleOplockCallback_Vtbl { + unsafe extern "system" fn OnBrokenCallback(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUnbufferedFileHandleOplockCallback_Impl::OnBrokenCallback(this).into() } @@ -126,20 +96,14 @@ impl IUnbufferedFileHandleOplockCallback_Vtbl { iid == &::IID } } -pub trait IUnbufferedFileHandleProvider_Impl: Sized { +pub trait IUnbufferedFileHandleProvider_Impl: Sized + windows_core::IUnknownImpl { fn OpenUnbufferedFileHandle(&self, oplockbreakcallback: Option<&IUnbufferedFileHandleOplockCallback>) -> windows_core::Result; fn CloseUnbufferedFileHandle(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUnbufferedFileHandleProvider {} impl IUnbufferedFileHandleProvider_Vtbl { - pub const fn new() -> IUnbufferedFileHandleProvider_Vtbl - where - Identity: IUnbufferedFileHandleProvider_Impl, - { - unsafe extern "system" fn OpenUnbufferedFileHandle(this: *mut core::ffi::c_void, oplockbreakcallback: *mut core::ffi::c_void, filehandle: *mut usize) -> windows_core::HRESULT - where - Identity: IUnbufferedFileHandleProvider_Impl, - { + pub const fn new() -> IUnbufferedFileHandleProvider_Vtbl { + unsafe extern "system" fn OpenUnbufferedFileHandle(this: *mut core::ffi::c_void, oplockbreakcallback: *mut core::ffi::c_void, filehandle: *mut usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUnbufferedFileHandleProvider_Impl::OpenUnbufferedFileHandle(this, windows_core::from_raw_borrowed(&oplockbreakcallback)) { Ok(ok__) => { @@ -149,10 +113,7 @@ impl IUnbufferedFileHandleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseUnbufferedFileHandle(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUnbufferedFileHandleProvider_Impl, - { + unsafe extern "system" fn CloseUnbufferedFileHandle(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUnbufferedFileHandleProvider_Impl::CloseUnbufferedFileHandle(this).into() } 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 5de0c9d845..cd1ed8db3e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/impl.rs @@ -1,32 +1,20 @@ -pub trait IAccountsSettingsPaneInterop_Impl: Sized { +pub trait IAccountsSettingsPaneInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, accountssettingspane: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn ShowManageAccountsForWindowAsync(&self, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncaction: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn ShowAddAccountForWindowAsync(&self, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncaction: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAccountsSettingsPaneInterop {} impl IAccountsSettingsPaneInterop_Vtbl { - pub const fn new() -> IAccountsSettingsPaneInterop_Vtbl - where - Identity: IAccountsSettingsPaneInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, accountssettingspane: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccountsSettingsPaneInterop_Impl, - { + pub const fn new() -> IAccountsSettingsPaneInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, accountssettingspane: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccountsSettingsPaneInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&accountssettingspane)).into() } - unsafe extern "system" fn ShowManageAccountsForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccountsSettingsPaneInterop_Impl, - { + unsafe extern "system" fn ShowManageAccountsForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccountsSettingsPaneInterop_Impl::ShowManageAccountsForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncaction)).into() } - unsafe extern "system" fn ShowAddAccountForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccountsSettingsPaneInterop_Impl, - { + unsafe extern "system" fn ShowAddAccountForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, asyncaction: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccountsSettingsPaneInterop_Impl::ShowAddAccountForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncaction)).into() } @@ -41,19 +29,13 @@ impl IAccountsSettingsPaneInterop_Vtbl { iid == &::IID } } -pub trait IActivationFactory_Impl: Sized { +pub trait IActivationFactory_Impl: Sized + windows_core::IUnknownImpl { fn ActivateInstance(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IActivationFactory {} impl IActivationFactory_Vtbl { - pub const fn new() -> IActivationFactory_Vtbl - where - Identity: IActivationFactory_Impl, - { - unsafe extern "system" fn ActivateInstance(this: *mut core::ffi::c_void, instance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActivationFactory_Impl, - { + pub const fn new() -> IActivationFactory_Vtbl { + unsafe extern "system" fn ActivateInstance(this: *mut core::ffi::c_void, instance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActivationFactory_Impl::ActivateInstance(this) { Ok(ok__) => { @@ -69,19 +51,13 @@ impl IActivationFactory_Vtbl { iid == &::IID } } -pub trait IAgileReference_Impl: Sized { +pub trait IAgileReference_Impl: Sized + windows_core::IUnknownImpl { fn Resolve(&self, riid: *const windows_core::GUID, ppvobjectreference: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAgileReference {} impl IAgileReference_Vtbl { - pub const fn new() -> IAgileReference_Vtbl - where - Identity: IAgileReference_Impl, - { - unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobjectreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAgileReference_Impl, - { + pub const fn new() -> IAgileReference_Vtbl { + unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvobjectreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAgileReference_Impl::Resolve(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobjectreference)).into() } @@ -91,19 +67,13 @@ impl IAgileReference_Vtbl { iid == &::IID } } -pub trait IApartmentShutdown_Impl: Sized { +pub trait IApartmentShutdown_Impl: Sized + windows_core::IUnknownImpl { fn OnUninitialize(&self, ui64apartmentidentifier: u64); } impl windows_core::RuntimeName for IApartmentShutdown {} impl IApartmentShutdown_Vtbl { - pub const fn new() -> IApartmentShutdown_Vtbl - where - Identity: IApartmentShutdown_Impl, - { - unsafe extern "system" fn OnUninitialize(this: *mut core::ffi::c_void, ui64apartmentidentifier: u64) - where - Identity: IApartmentShutdown_Impl, - { + pub const fn new() -> IApartmentShutdown_Vtbl { + unsafe extern "system" fn OnUninitialize(this: *mut core::ffi::c_void, ui64apartmentidentifier: u64) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApartmentShutdown_Impl::OnUninitialize(this, core::mem::transmute_copy(&ui64apartmentidentifier)) } @@ -113,19 +83,13 @@ impl IApartmentShutdown_Vtbl { iid == &::IID } } -pub trait IAppServiceConnectionExtendedExecution_Impl: Sized { +pub trait IAppServiceConnectionExtendedExecution_Impl: Sized + windows_core::IUnknownImpl { fn OpenForExtendedExecutionAsync(&self, riid: *const windows_core::GUID, operation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAppServiceConnectionExtendedExecution {} impl IAppServiceConnectionExtendedExecution_Vtbl { - pub const fn new() -> IAppServiceConnectionExtendedExecution_Vtbl - where - Identity: IAppServiceConnectionExtendedExecution_Impl, - { - unsafe extern "system" fn OpenForExtendedExecutionAsync(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, operation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppServiceConnectionExtendedExecution_Impl, - { + pub const fn new() -> IAppServiceConnectionExtendedExecution_Vtbl { + unsafe extern "system" fn OpenForExtendedExecutionAsync(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, operation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppServiceConnectionExtendedExecution_Impl::OpenForExtendedExecutionAsync(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&operation)).into() } @@ -135,19 +99,13 @@ impl IAppServiceConnectionExtendedExecution_Vtbl { iid == &::IID } } -pub trait IBufferByteAccess_Impl: Sized { +pub trait IBufferByteAccess_Impl: Sized + windows_core::IUnknownImpl { fn Buffer(&self) -> windows_core::Result<*mut u8>; } impl windows_core::RuntimeName for IBufferByteAccess {} impl IBufferByteAccess_Vtbl { - pub const fn new() -> IBufferByteAccess_Vtbl - where - Identity: IBufferByteAccess_Impl, - { - unsafe extern "system" fn Buffer(this: *mut core::ffi::c_void, value: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IBufferByteAccess_Impl, - { + pub const fn new() -> IBufferByteAccess_Vtbl { + unsafe extern "system" fn Buffer(this: *mut core::ffi::c_void, value: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBufferByteAccess_Impl::Buffer(this) { Ok(ok__) => { @@ -163,7 +121,7 @@ impl IBufferByteAccess_Vtbl { iid == &::IID } } -pub trait ICastingController_Impl: Sized { +pub trait ICastingController_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, castingengine: Option<&windows_core::IUnknown>, castingsource: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Connect(&self) -> windows_core::Result<()>; fn Disconnect(&self) -> windows_core::Result<()>; @@ -172,35 +130,20 @@ pub trait ICastingController_Impl: Sized { } impl windows_core::RuntimeName for ICastingController {} impl ICastingController_Vtbl { - pub const fn new() -> ICastingController_Vtbl - where - Identity: ICastingController_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, castingengine: *mut core::ffi::c_void, castingsource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICastingController_Impl, - { + pub const fn new() -> ICastingController_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, castingengine: *mut core::ffi::c_void, castingsource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICastingController_Impl::Initialize(this, windows_core::from_raw_borrowed(&castingengine), windows_core::from_raw_borrowed(&castingsource)).into() } - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICastingController_Impl, - { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICastingController_Impl::Connect(this).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICastingController_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICastingController_Impl::Disconnect(this).into() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, cookie: *mut u32) -> windows_core::HRESULT - where - Identity: ICastingController_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, cookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICastingController_Impl::Advise(this, windows_core::from_raw_borrowed(&eventhandler)) { Ok(ok__) => { @@ -210,10 +153,7 @@ impl ICastingController_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnAdvise(this: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT - where - Identity: ICastingController_Impl, - { + unsafe extern "system" fn UnAdvise(this: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICastingController_Impl::UnAdvise(this, core::mem::transmute_copy(&cookie)).into() } @@ -230,27 +170,18 @@ impl ICastingController_Vtbl { iid == &::IID } } -pub trait ICastingEventHandler_Impl: Sized { +pub trait ICastingEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnStateChanged(&self, newstate: CASTING_CONNECTION_STATE) -> windows_core::Result<()>; fn OnError(&self, errorstatus: CASTING_CONNECTION_ERROR_STATUS, errormessage: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICastingEventHandler {} impl ICastingEventHandler_Vtbl { - pub const fn new() -> ICastingEventHandler_Vtbl - where - Identity: ICastingEventHandler_Impl, - { - unsafe extern "system" fn OnStateChanged(this: *mut core::ffi::c_void, newstate: CASTING_CONNECTION_STATE) -> windows_core::HRESULT - where - Identity: ICastingEventHandler_Impl, - { + pub const fn new() -> ICastingEventHandler_Vtbl { + unsafe extern "system" fn OnStateChanged(this: *mut core::ffi::c_void, newstate: CASTING_CONNECTION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICastingEventHandler_Impl::OnStateChanged(this, core::mem::transmute_copy(&newstate)).into() } - unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, errorstatus: CASTING_CONNECTION_ERROR_STATUS, errormessage: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICastingEventHandler_Impl, - { + unsafe extern "system" fn OnError(this: *mut core::ffi::c_void, errorstatus: CASTING_CONNECTION_ERROR_STATUS, errormessage: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICastingEventHandler_Impl::OnError(this, core::mem::transmute_copy(&errorstatus), core::mem::transmute(&errormessage)).into() } @@ -265,7 +196,7 @@ impl ICastingEventHandler_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ICastingSourceInfo_Impl: Sized { +pub trait ICastingSourceInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetController(&self) -> windows_core::Result; fn GetProperties(&self) -> windows_core::Result; } @@ -273,14 +204,8 @@ pub trait ICastingSourceInfo_Impl: Sized { impl windows_core::RuntimeName for ICastingSourceInfo {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ICastingSourceInfo_Vtbl { - pub const fn new() -> ICastingSourceInfo_Vtbl - where - Identity: ICastingSourceInfo_Impl, - { - unsafe extern "system" fn GetController(this: *mut core::ffi::c_void, controller: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICastingSourceInfo_Impl, - { + pub const fn new() -> ICastingSourceInfo_Vtbl { + unsafe extern "system" fn GetController(this: *mut core::ffi::c_void, controller: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICastingSourceInfo_Impl::GetController(this) { Ok(ok__) => { @@ -290,10 +215,7 @@ impl ICastingSourceInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, props: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICastingSourceInfo_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, props: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICastingSourceInfo_Impl::GetProperties(this) { Ok(ok__) => { @@ -313,27 +235,18 @@ impl ICastingSourceInfo_Vtbl { iid == &::IID } } -pub trait ICoreInputInterop_Impl: Sized { +pub trait ICoreInputInterop_Impl: Sized + windows_core::IUnknownImpl { fn SetInputSource(&self, value: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn SetMessageHandled(&self, value: u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICoreInputInterop {} impl ICoreInputInterop_Vtbl { - pub const fn new() -> ICoreInputInterop_Vtbl - where - Identity: ICoreInputInterop_Impl, - { - unsafe extern "system" fn SetInputSource(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreInputInterop_Impl, - { + pub const fn new() -> ICoreInputInterop_Vtbl { + unsafe extern "system" fn SetInputSource(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreInputInterop_Impl::SetInputSource(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn SetMessageHandled(this: *mut core::ffi::c_void, value: u8) -> windows_core::HRESULT - where - Identity: ICoreInputInterop_Impl, - { + unsafe extern "system" fn SetMessageHandled(this: *mut core::ffi::c_void, value: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreInputInterop_Impl::SetMessageHandled(this, core::mem::transmute_copy(&value)).into() } @@ -347,20 +260,14 @@ impl ICoreInputInterop_Vtbl { iid == &::IID } } -pub trait ICoreInputInterop2_Impl: Sized { +pub trait ICoreInputInterop2_Impl: Sized + windows_core::IUnknownImpl { fn WindowHandle(&self) -> windows_core::Result; fn ChangeHostingContext(&self, newparentwindow: super::super::Foundation::HWND, newviewinstanceid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICoreInputInterop2 {} impl ICoreInputInterop2_Vtbl { - pub const fn new() -> ICoreInputInterop2_Vtbl - where - Identity: ICoreInputInterop2_Impl, - { - unsafe extern "system" fn WindowHandle(this: *mut core::ffi::c_void, window: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ICoreInputInterop2_Impl, - { + pub const fn new() -> ICoreInputInterop2_Vtbl { + unsafe extern "system" fn WindowHandle(this: *mut core::ffi::c_void, window: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreInputInterop2_Impl::WindowHandle(this) { Ok(ok__) => { @@ -370,10 +277,7 @@ impl ICoreInputInterop2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChangeHostingContext(this: *mut core::ffi::c_void, newparentwindow: super::super::Foundation::HWND, newviewinstanceid: u32) -> windows_core::HRESULT - where - Identity: ICoreInputInterop2_Impl, - { + unsafe extern "system" fn ChangeHostingContext(this: *mut core::ffi::c_void, newparentwindow: super::super::Foundation::HWND, newviewinstanceid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreInputInterop2_Impl::ChangeHostingContext(this, core::mem::transmute_copy(&newparentwindow), core::mem::transmute_copy(&newviewinstanceid)).into() } @@ -387,7 +291,7 @@ impl ICoreInputInterop2_Vtbl { iid == &::IID } } -pub trait ICoreWindowAdapterInterop_Impl: Sized { +pub trait ICoreWindowAdapterInterop_Impl: Sized + windows_core::IUnknownImpl { fn AppActivationClientAdapter(&self) -> windows_core::Result; fn ApplicationViewClientAdapter(&self) -> windows_core::Result; fn CoreApplicationViewClientAdapter(&self) -> windows_core::Result; @@ -399,14 +303,8 @@ pub trait ICoreWindowAdapterInterop_Impl: Sized { } impl windows_core::RuntimeName for ICoreWindowAdapterInterop {} impl ICoreWindowAdapterInterop_Vtbl { - pub const fn new() -> ICoreWindowAdapterInterop_Vtbl - where - Identity: ICoreWindowAdapterInterop_Impl, - { - unsafe extern "system" fn AppActivationClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindowAdapterInterop_Impl, - { + pub const fn new() -> ICoreWindowAdapterInterop_Vtbl { + unsafe extern "system" fn AppActivationClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindowAdapterInterop_Impl::AppActivationClientAdapter(this) { Ok(ok__) => { @@ -416,10 +314,7 @@ impl ICoreWindowAdapterInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplicationViewClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindowAdapterInterop_Impl, - { + unsafe extern "system" fn ApplicationViewClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindowAdapterInterop_Impl::ApplicationViewClientAdapter(this) { Ok(ok__) => { @@ -429,10 +324,7 @@ impl ICoreWindowAdapterInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CoreApplicationViewClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindowAdapterInterop_Impl, - { + unsafe extern "system" fn CoreApplicationViewClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindowAdapterInterop_Impl::CoreApplicationViewClientAdapter(this) { Ok(ok__) => { @@ -442,10 +334,7 @@ impl ICoreWindowAdapterInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HoloViewClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindowAdapterInterop_Impl, - { + unsafe extern "system" fn HoloViewClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindowAdapterInterop_Impl::HoloViewClientAdapter(this) { Ok(ok__) => { @@ -455,10 +344,7 @@ impl ICoreWindowAdapterInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PositionerClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindowAdapterInterop_Impl, - { + unsafe extern "system" fn PositionerClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindowAdapterInterop_Impl::PositionerClientAdapter(this) { Ok(ok__) => { @@ -468,10 +354,7 @@ impl ICoreWindowAdapterInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SystemNavigationClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindowAdapterInterop_Impl, - { + unsafe extern "system" fn SystemNavigationClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindowAdapterInterop_Impl::SystemNavigationClientAdapter(this) { Ok(ok__) => { @@ -481,10 +364,7 @@ impl ICoreWindowAdapterInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TitleBarClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindowAdapterInterop_Impl, - { + unsafe extern "system" fn TitleBarClientAdapter(this: *mut core::ffi::c_void, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindowAdapterInterop_Impl::TitleBarClientAdapter(this) { Ok(ok__) => { @@ -494,10 +374,7 @@ impl ICoreWindowAdapterInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWindowClientAdapter(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindowAdapterInterop_Impl, - { + unsafe extern "system" fn SetWindowClientAdapter(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindowAdapterInterop_Impl::SetWindowClientAdapter(this, windows_core::from_raw_borrowed(&value)).into() } @@ -517,27 +394,18 @@ impl ICoreWindowAdapterInterop_Vtbl { iid == &::IID } } -pub trait ICoreWindowComponentInterop_Impl: Sized { +pub trait ICoreWindowComponentInterop_Impl: Sized + windows_core::IUnknownImpl { fn ConfigureComponentInput(&self, hostviewinstanceid: u32, hwndhost: super::super::Foundation::HWND, inputsourcevisual: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetViewInstanceId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ICoreWindowComponentInterop {} impl ICoreWindowComponentInterop_Vtbl { - pub const fn new() -> ICoreWindowComponentInterop_Vtbl - where - Identity: ICoreWindowComponentInterop_Impl, - { - unsafe extern "system" fn ConfigureComponentInput(this: *mut core::ffi::c_void, hostviewinstanceid: u32, hwndhost: super::super::Foundation::HWND, inputsourcevisual: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreWindowComponentInterop_Impl, - { + pub const fn new() -> ICoreWindowComponentInterop_Vtbl { + unsafe extern "system" fn ConfigureComponentInput(this: *mut core::ffi::c_void, hostviewinstanceid: u32, hwndhost: super::super::Foundation::HWND, inputsourcevisual: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindowComponentInterop_Impl::ConfigureComponentInput(this, core::mem::transmute_copy(&hostviewinstanceid), core::mem::transmute_copy(&hwndhost), windows_core::from_raw_borrowed(&inputsourcevisual)).into() } - unsafe extern "system" fn GetViewInstanceId(this: *mut core::ffi::c_void, componentviewinstanceid: *mut u32) -> windows_core::HRESULT - where - Identity: ICoreWindowComponentInterop_Impl, - { + unsafe extern "system" fn GetViewInstanceId(this: *mut core::ffi::c_void, componentviewinstanceid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindowComponentInterop_Impl::GetViewInstanceId(this) { Ok(ok__) => { @@ -557,20 +425,14 @@ impl ICoreWindowComponentInterop_Vtbl { iid == &::IID } } -pub trait ICoreWindowInterop_Impl: Sized { +pub trait ICoreWindowInterop_Impl: Sized + windows_core::IUnknownImpl { fn WindowHandle(&self) -> windows_core::Result; fn SetMessageHandled(&self, value: u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICoreWindowInterop {} impl ICoreWindowInterop_Vtbl { - pub const fn new() -> ICoreWindowInterop_Vtbl - where - Identity: ICoreWindowInterop_Impl, - { - unsafe extern "system" fn WindowHandle(this: *mut core::ffi::c_void, hwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ICoreWindowInterop_Impl, - { + pub const fn new() -> ICoreWindowInterop_Vtbl { + unsafe extern "system" fn WindowHandle(this: *mut core::ffi::c_void, hwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWindowInterop_Impl::WindowHandle(this) { Ok(ok__) => { @@ -580,10 +442,7 @@ impl ICoreWindowInterop_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMessageHandled(this: *mut core::ffi::c_void, value: u8) -> windows_core::HRESULT - where - Identity: ICoreWindowInterop_Impl, - { + unsafe extern "system" fn SetMessageHandled(this: *mut core::ffi::c_void, value: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWindowInterop_Impl::SetMessageHandled(this, core::mem::transmute_copy(&value)).into() } @@ -597,21 +456,15 @@ impl ICoreWindowInterop_Vtbl { iid == &::IID } } -pub trait ICorrelationVectorInformation_Impl: Sized { +pub trait ICorrelationVectorInformation_Impl: Sized + windows_core::IUnknownImpl { fn LastCorrelationVectorForThread(&self) -> windows_core::Result; fn NextCorrelationVectorForThread(&self) -> windows_core::Result; fn SetNextCorrelationVectorForThread(&self, cv: &windows_core::HSTRING) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICorrelationVectorInformation {} impl ICorrelationVectorInformation_Vtbl { - pub const fn new() -> ICorrelationVectorInformation_Vtbl - where - Identity: ICorrelationVectorInformation_Impl, - { - unsafe extern "system" fn LastCorrelationVectorForThread(this: *mut core::ffi::c_void, cv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICorrelationVectorInformation_Impl, - { + pub const fn new() -> ICorrelationVectorInformation_Vtbl { + unsafe extern "system" fn LastCorrelationVectorForThread(this: *mut core::ffi::c_void, cv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorrelationVectorInformation_Impl::LastCorrelationVectorForThread(this) { Ok(ok__) => { @@ -621,10 +474,7 @@ impl ICorrelationVectorInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NextCorrelationVectorForThread(this: *mut core::ffi::c_void, cv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICorrelationVectorInformation_Impl, - { + unsafe extern "system" fn NextCorrelationVectorForThread(this: *mut core::ffi::c_void, cv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorrelationVectorInformation_Impl::NextCorrelationVectorForThread(this) { Ok(ok__) => { @@ -634,10 +484,7 @@ impl ICorrelationVectorInformation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNextCorrelationVectorForThread(this: *mut core::ffi::c_void, cv: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICorrelationVectorInformation_Impl, - { + unsafe extern "system" fn SetNextCorrelationVectorForThread(this: *mut core::ffi::c_void, cv: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorrelationVectorInformation_Impl::SetNextCorrelationVectorForThread(this, core::mem::transmute(&cv)).into() } @@ -652,19 +499,13 @@ impl ICorrelationVectorInformation_Vtbl { iid == &::IID } } -pub trait ICorrelationVectorSource_Impl: Sized { +pub trait ICorrelationVectorSource_Impl: Sized + windows_core::IUnknownImpl { fn CorrelationVector(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ICorrelationVectorSource {} impl ICorrelationVectorSource_Vtbl { - pub const fn new() -> ICorrelationVectorSource_Vtbl - where - Identity: ICorrelationVectorSource_Impl, - { - unsafe extern "system" fn CorrelationVector(this: *mut core::ffi::c_void, cv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICorrelationVectorSource_Impl, - { + pub const fn new() -> ICorrelationVectorSource_Vtbl { + unsafe extern "system" fn CorrelationVector(this: *mut core::ffi::c_void, cv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorrelationVectorSource_Impl::CorrelationVector(this) { Ok(ok__) => { @@ -680,19 +521,13 @@ impl ICorrelationVectorSource_Vtbl { iid == &::IID } } -pub trait IDragDropManagerInterop_Impl: Sized { +pub trait IDragDropManagerInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDragDropManagerInterop {} impl IDragDropManagerInterop_Vtbl { - pub const fn new() -> IDragDropManagerInterop_Vtbl - where - Identity: IDragDropManagerInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDragDropManagerInterop_Impl, - { + pub const fn new() -> IDragDropManagerInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDragDropManagerInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -702,19 +537,13 @@ impl IDragDropManagerInterop_Vtbl { iid == &::IID } } -pub trait IHolographicSpaceInterop_Impl: Sized { +pub trait IHolographicSpaceInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateForWindow(&self, window: super::super::Foundation::HWND, riid: *const windows_core::GUID, holographicspace: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHolographicSpaceInterop {} impl IHolographicSpaceInterop_Vtbl { - pub const fn new() -> IHolographicSpaceInterop_Vtbl - where - Identity: IHolographicSpaceInterop_Impl, - { - unsafe extern "system" fn CreateForWindow(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, riid: *const windows_core::GUID, holographicspace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHolographicSpaceInterop_Impl, - { + pub const fn new() -> IHolographicSpaceInterop_Vtbl { + unsafe extern "system" fn CreateForWindow(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, riid: *const windows_core::GUID, holographicspace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolographicSpaceInterop_Impl::CreateForWindow(this, core::mem::transmute_copy(&window), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&holographicspace)).into() } @@ -727,19 +556,13 @@ impl IHolographicSpaceInterop_Vtbl { iid == &::IID } } -pub trait IInputPaneInterop_Impl: Sized { +pub trait IInputPaneInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, inputpane: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInputPaneInterop {} impl IInputPaneInterop_Vtbl { - pub const fn new() -> IInputPaneInterop_Vtbl - where - Identity: IInputPaneInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, inputpane: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInputPaneInterop_Impl, - { + pub const fn new() -> IInputPaneInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, inputpane: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputPaneInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&inputpane)).into() } @@ -749,19 +572,13 @@ impl IInputPaneInterop_Vtbl { iid == &::IID } } -pub trait ILanguageExceptionErrorInfo_Impl: Sized { +pub trait ILanguageExceptionErrorInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetLanguageException(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ILanguageExceptionErrorInfo {} impl ILanguageExceptionErrorInfo_Vtbl { - pub const fn new() -> ILanguageExceptionErrorInfo_Vtbl - where - Identity: ILanguageExceptionErrorInfo_Impl, - { - unsafe extern "system" fn GetLanguageException(this: *mut core::ffi::c_void, languageexception: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILanguageExceptionErrorInfo_Impl, - { + pub const fn new() -> ILanguageExceptionErrorInfo_Vtbl { + unsafe extern "system" fn GetLanguageException(this: *mut core::ffi::c_void, languageexception: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILanguageExceptionErrorInfo_Impl::GetLanguageException(this) { Ok(ok__) => { @@ -784,14 +601,8 @@ pub trait ILanguageExceptionErrorInfo2_Impl: Sized + ILanguageExceptionErrorInfo } impl windows_core::RuntimeName for ILanguageExceptionErrorInfo2 {} impl ILanguageExceptionErrorInfo2_Vtbl { - pub const fn new() -> ILanguageExceptionErrorInfo2_Vtbl - where - Identity: ILanguageExceptionErrorInfo2_Impl, - { - unsafe extern "system" fn GetPreviousLanguageExceptionErrorInfo(this: *mut core::ffi::c_void, previouslanguageexceptionerrorinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILanguageExceptionErrorInfo2_Impl, - { + pub const fn new() -> ILanguageExceptionErrorInfo2_Vtbl { + unsafe extern "system" fn GetPreviousLanguageExceptionErrorInfo(this: *mut core::ffi::c_void, previouslanguageexceptionerrorinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILanguageExceptionErrorInfo2_Impl::GetPreviousLanguageExceptionErrorInfo(this) { Ok(ok__) => { @@ -801,17 +612,11 @@ impl ILanguageExceptionErrorInfo2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CapturePropagationContext(this: *mut core::ffi::c_void, languageexception: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILanguageExceptionErrorInfo2_Impl, - { + unsafe extern "system" fn CapturePropagationContext(this: *mut core::ffi::c_void, languageexception: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILanguageExceptionErrorInfo2_Impl::CapturePropagationContext(this, windows_core::from_raw_borrowed(&languageexception)).into() } - unsafe extern "system" fn GetPropagationContextHead(this: *mut core::ffi::c_void, propagatedlanguageexceptionerrorinfohead: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILanguageExceptionErrorInfo2_Impl, - { + unsafe extern "system" fn GetPropagationContextHead(this: *mut core::ffi::c_void, propagatedlanguageexceptionerrorinfohead: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILanguageExceptionErrorInfo2_Impl::GetPropagationContextHead(this) { Ok(ok__) => { @@ -832,19 +637,13 @@ impl ILanguageExceptionErrorInfo2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ILanguageExceptionStackBackTrace_Impl: Sized { +pub trait ILanguageExceptionStackBackTrace_Impl: Sized + windows_core::IUnknownImpl { fn GetStackBackTrace(&self, maxframestocapture: u32, stackbacktrace: *mut usize, framescaptured: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILanguageExceptionStackBackTrace {} impl ILanguageExceptionStackBackTrace_Vtbl { - pub const fn new() -> ILanguageExceptionStackBackTrace_Vtbl - where - Identity: ILanguageExceptionStackBackTrace_Impl, - { - unsafe extern "system" fn GetStackBackTrace(this: *mut core::ffi::c_void, maxframestocapture: u32, stackbacktrace: *mut usize, framescaptured: *mut u32) -> windows_core::HRESULT - where - Identity: ILanguageExceptionStackBackTrace_Impl, - { + pub const fn new() -> ILanguageExceptionStackBackTrace_Vtbl { + unsafe extern "system" fn GetStackBackTrace(this: *mut core::ffi::c_void, maxframestocapture: u32, stackbacktrace: *mut usize, framescaptured: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILanguageExceptionStackBackTrace_Impl::GetStackBackTrace(this, core::mem::transmute_copy(&maxframestocapture), core::mem::transmute_copy(&stackbacktrace), core::mem::transmute_copy(&framescaptured)).into() } @@ -854,19 +653,13 @@ impl ILanguageExceptionStackBackTrace_Vtbl { iid == &::IID } } -pub trait ILanguageExceptionTransform_Impl: Sized { +pub trait ILanguageExceptionTransform_Impl: Sized + windows_core::IUnknownImpl { fn GetTransformedRestrictedErrorInfo(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ILanguageExceptionTransform {} impl ILanguageExceptionTransform_Vtbl { - pub const fn new() -> ILanguageExceptionTransform_Vtbl - where - Identity: ILanguageExceptionTransform_Impl, - { - unsafe extern "system" fn GetTransformedRestrictedErrorInfo(this: *mut core::ffi::c_void, restrictederrorinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILanguageExceptionTransform_Impl, - { + pub const fn new() -> ILanguageExceptionTransform_Vtbl { + unsafe extern "system" fn GetTransformedRestrictedErrorInfo(this: *mut core::ffi::c_void, restrictederrorinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILanguageExceptionTransform_Impl::GetTransformedRestrictedErrorInfo(this) { Ok(ok__) => { @@ -885,19 +678,13 @@ impl ILanguageExceptionTransform_Vtbl { iid == &::IID } } -pub trait IMemoryBufferByteAccess_Impl: Sized { +pub trait IMemoryBufferByteAccess_Impl: Sized + windows_core::IUnknownImpl { fn GetBuffer(&self, value: *mut *mut u8, capacity: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMemoryBufferByteAccess {} impl IMemoryBufferByteAccess_Vtbl { - pub const fn new() -> IMemoryBufferByteAccess_Vtbl - where - Identity: IMemoryBufferByteAccess_Impl, - { - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, value: *mut *mut u8, capacity: *mut u32) -> windows_core::HRESULT - where - Identity: IMemoryBufferByteAccess_Impl, - { + pub const fn new() -> IMemoryBufferByteAccess_Vtbl { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, value: *mut *mut u8, capacity: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemoryBufferByteAccess_Impl::GetBuffer(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&capacity)).into() } @@ -907,19 +694,13 @@ impl IMemoryBufferByteAccess_Vtbl { iid == &::IID } } -pub trait IMessageDispatcher_Impl: Sized { +pub trait IMessageDispatcher_Impl: Sized + windows_core::IUnknownImpl { fn PumpMessages(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMessageDispatcher {} impl IMessageDispatcher_Vtbl { - pub const fn new() -> IMessageDispatcher_Vtbl - where - Identity: IMessageDispatcher_Impl, - { - unsafe extern "system" fn PumpMessages(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMessageDispatcher_Impl, - { + pub const fn new() -> IMessageDispatcher_Vtbl { + unsafe extern "system" fn PumpMessages(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMessageDispatcher_Impl::PumpMessages(this).into() } @@ -929,27 +710,18 @@ impl IMessageDispatcher_Vtbl { iid == &::IID } } -pub trait IPlayToManagerInterop_Impl: Sized { +pub trait IPlayToManagerInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, playtomanager: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn ShowPlayToUIForWindow(&self, appwindow: super::super::Foundation::HWND) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPlayToManagerInterop {} impl IPlayToManagerInterop_Vtbl { - pub const fn new() -> IPlayToManagerInterop_Vtbl - where - Identity: IPlayToManagerInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, playtomanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPlayToManagerInterop_Impl, - { + pub const fn new() -> IPlayToManagerInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, playtomanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlayToManagerInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&playtomanager)).into() } - unsafe extern "system" fn ShowPlayToUIForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IPlayToManagerInterop_Impl, - { + unsafe extern "system" fn ShowPlayToUIForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPlayToManagerInterop_Impl::ShowPlayToUIForWindow(this, core::mem::transmute_copy(&appwindow)).into() } @@ -963,27 +735,18 @@ impl IPlayToManagerInterop_Vtbl { iid == &::IID } } -pub trait IRestrictedErrorInfo_Impl: Sized { +pub trait IRestrictedErrorInfo_Impl: Sized + windows_core::IUnknownImpl { 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; } impl windows_core::RuntimeName for IRestrictedErrorInfo {} impl IRestrictedErrorInfo_Vtbl { - pub const fn new() -> IRestrictedErrorInfo_Vtbl - where - Identity: IRestrictedErrorInfo_Impl, - { - unsafe extern "system" fn GetErrorDetails(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit, error: *mut windows_core::HRESULT, restricteddescription: *mut core::mem::MaybeUninit, capabilitysid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRestrictedErrorInfo_Impl, - { + pub const fn new() -> IRestrictedErrorInfo_Vtbl { + unsafe extern "system" fn GetErrorDetails(this: *mut core::ffi::c_void, description: *mut core::mem::MaybeUninit, error: *mut windows_core::HRESULT, restricteddescription: *mut core::mem::MaybeUninit, capabilitysid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRestrictedErrorInfo_Impl::GetErrorDetails(this, 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(this: *mut core::ffi::c_void, reference: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRestrictedErrorInfo_Impl, - { + unsafe extern "system" fn GetReference(this: *mut core::ffi::c_void, reference: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRestrictedErrorInfo_Impl::GetReference(this) { Ok(ok__) => { @@ -1003,19 +766,13 @@ impl IRestrictedErrorInfo_Vtbl { iid == &::IID } } -pub trait IShareWindowCommandEventArgsInterop_Impl: Sized { +pub trait IShareWindowCommandEventArgsInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetWindow(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IShareWindowCommandEventArgsInterop {} impl IShareWindowCommandEventArgsInterop_Vtbl { - pub const fn new() -> IShareWindowCommandEventArgsInterop_Vtbl - where - Identity: IShareWindowCommandEventArgsInterop_Impl, - { - unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IShareWindowCommandEventArgsInterop_Impl, - { + pub const fn new() -> IShareWindowCommandEventArgsInterop_Vtbl { + unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShareWindowCommandEventArgsInterop_Impl::GetWindow(this) { Ok(ok__) => { @@ -1031,19 +788,13 @@ impl IShareWindowCommandEventArgsInterop_Vtbl { iid == &::IID } } -pub trait IShareWindowCommandSourceInterop_Impl: Sized { +pub trait IShareWindowCommandSourceInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, sharewindowcommandsource: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IShareWindowCommandSourceInterop {} impl IShareWindowCommandSourceInterop_Vtbl { - pub const fn new() -> IShareWindowCommandSourceInterop_Vtbl - where - Identity: IShareWindowCommandSourceInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, sharewindowcommandsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShareWindowCommandSourceInterop_Impl, - { + pub const fn new() -> IShareWindowCommandSourceInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, sharewindowcommandsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShareWindowCommandSourceInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&sharewindowcommandsource)).into() } @@ -1053,19 +804,13 @@ impl IShareWindowCommandSourceInterop_Vtbl { iid == &::IID } } -pub trait ISpatialInteractionManagerInterop_Impl: Sized { +pub trait ISpatialInteractionManagerInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, window: super::super::Foundation::HWND, riid: *const windows_core::GUID, spatialinteractionmanager: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpatialInteractionManagerInterop {} impl ISpatialInteractionManagerInterop_Vtbl { - pub const fn new() -> ISpatialInteractionManagerInterop_Vtbl - where - Identity: ISpatialInteractionManagerInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, riid: *const windows_core::GUID, spatialinteractionmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpatialInteractionManagerInterop_Impl, - { + pub const fn new() -> ISpatialInteractionManagerInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, riid: *const windows_core::GUID, spatialinteractionmanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpatialInteractionManagerInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&window), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&spatialinteractionmanager)).into() } @@ -1078,19 +823,13 @@ impl ISpatialInteractionManagerInterop_Vtbl { iid == &::IID } } -pub trait ISystemMediaTransportControlsInterop_Impl: Sized { +pub trait ISystemMediaTransportControlsInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, mediatransportcontrol: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISystemMediaTransportControlsInterop {} impl ISystemMediaTransportControlsInterop_Vtbl { - pub const fn new() -> ISystemMediaTransportControlsInterop_Vtbl - where - Identity: ISystemMediaTransportControlsInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, mediatransportcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISystemMediaTransportControlsInterop_Impl, - { + pub const fn new() -> ISystemMediaTransportControlsInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, mediatransportcontrol: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISystemMediaTransportControlsInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&mediatransportcontrol)).into() } @@ -1103,19 +842,13 @@ impl ISystemMediaTransportControlsInterop_Vtbl { iid == &::IID } } -pub trait IUIViewSettingsInterop_Impl: Sized { +pub trait IUIViewSettingsInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIViewSettingsInterop {} impl IUIViewSettingsInterop_Vtbl { - pub const fn new() -> IUIViewSettingsInterop_Vtbl - where - Identity: IUIViewSettingsInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIViewSettingsInterop_Impl, - { + pub const fn new() -> IUIViewSettingsInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIViewSettingsInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -1125,19 +858,13 @@ impl IUIViewSettingsInterop_Vtbl { iid == &::IID } } -pub trait IUserActivityInterop_Impl: Sized { +pub trait IUserActivityInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateSessionForWindow(&self, window: super::super::Foundation::HWND, iid: *const windows_core::GUID, value: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUserActivityInterop {} impl IUserActivityInterop_Vtbl { - pub const fn new() -> IUserActivityInterop_Vtbl - where - Identity: IUserActivityInterop_Impl, - { - unsafe extern "system" fn CreateSessionForWindow(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, iid: *const windows_core::GUID, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUserActivityInterop_Impl, - { + pub const fn new() -> IUserActivityInterop_Vtbl { + unsafe extern "system" fn CreateSessionForWindow(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, iid: *const windows_core::GUID, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserActivityInterop_Impl::CreateSessionForWindow(this, core::mem::transmute_copy(&window), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&value)).into() } @@ -1150,19 +877,13 @@ impl IUserActivityInterop_Vtbl { iid == &::IID } } -pub trait IUserActivityRequestManagerInterop_Impl: Sized { +pub trait IUserActivityRequestManagerInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, window: super::super::Foundation::HWND, iid: *const windows_core::GUID, value: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUserActivityRequestManagerInterop {} impl IUserActivityRequestManagerInterop_Vtbl { - pub const fn new() -> IUserActivityRequestManagerInterop_Vtbl - where - Identity: IUserActivityRequestManagerInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, iid: *const windows_core::GUID, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUserActivityRequestManagerInterop_Impl, - { + pub const fn new() -> IUserActivityRequestManagerInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, window: super::super::Foundation::HWND, iid: *const windows_core::GUID, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserActivityRequestManagerInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&window), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&value)).into() } @@ -1175,19 +896,13 @@ impl IUserActivityRequestManagerInterop_Vtbl { iid == &::IID } } -pub trait IUserActivitySourceHostInterop_Impl: Sized { +pub trait IUserActivitySourceHostInterop_Impl: Sized + windows_core::IUnknownImpl { fn SetActivitySourceHost(&self, activitysourcehost: &windows_core::HSTRING) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUserActivitySourceHostInterop {} impl IUserActivitySourceHostInterop_Vtbl { - pub const fn new() -> IUserActivitySourceHostInterop_Vtbl - where - Identity: IUserActivitySourceHostInterop_Impl, - { - unsafe extern "system" fn SetActivitySourceHost(this: *mut core::ffi::c_void, activitysourcehost: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUserActivitySourceHostInterop_Impl, - { + pub const fn new() -> IUserActivitySourceHostInterop_Vtbl { + unsafe extern "system" fn SetActivitySourceHost(this: *mut core::ffi::c_void, activitysourcehost: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserActivitySourceHostInterop_Impl::SetActivitySourceHost(this, core::mem::transmute(&activitysourcehost)).into() } @@ -1200,19 +915,13 @@ impl IUserActivitySourceHostInterop_Vtbl { iid == &::IID } } -pub trait IUserConsentVerifierInterop_Impl: Sized { +pub trait IUserConsentVerifierInterop_Impl: Sized + windows_core::IUnknownImpl { fn RequestVerificationForWindowAsync(&self, appwindow: super::super::Foundation::HWND, message: &windows_core::HSTRING, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUserConsentVerifierInterop {} impl IUserConsentVerifierInterop_Vtbl { - pub const fn new() -> IUserConsentVerifierInterop_Vtbl - where - Identity: IUserConsentVerifierInterop_Impl, - { - unsafe extern "system" fn RequestVerificationForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, message: core::mem::MaybeUninit, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUserConsentVerifierInterop_Impl, - { + pub const fn new() -> IUserConsentVerifierInterop_Vtbl { + unsafe extern "system" fn RequestVerificationForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, message: core::mem::MaybeUninit, riid: *const windows_core::GUID, asyncoperation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserConsentVerifierInterop_Impl::RequestVerificationForWindowAsync(this, core::mem::transmute_copy(&appwindow), core::mem::transmute(&message), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncoperation)).into() } @@ -1225,19 +934,13 @@ impl IUserConsentVerifierInterop_Vtbl { iid == &::IID } } -pub trait IWeakReference_Impl: Sized { +pub trait IWeakReference_Impl: Sized + windows_core::IUnknownImpl { fn Resolve(&self, riid: *const windows_core::GUID, objectreference: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWeakReference {} impl IWeakReference_Vtbl { - pub const fn new() -> IWeakReference_Vtbl - where - Identity: IWeakReference_Impl, - { - unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, objectreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWeakReference_Impl, - { + pub const fn new() -> IWeakReference_Vtbl { + unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, objectreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWeakReference_Impl::Resolve(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&objectreference)).into() } @@ -1247,19 +950,13 @@ impl IWeakReference_Vtbl { iid == &::IID } } -pub trait IWeakReferenceSource_Impl: Sized { +pub trait IWeakReferenceSource_Impl: Sized + windows_core::IUnknownImpl { fn GetWeakReference(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWeakReferenceSource {} impl IWeakReferenceSource_Vtbl { - pub const fn new() -> IWeakReferenceSource_Vtbl - where - Identity: IWeakReferenceSource_Impl, - { - unsafe extern "system" fn GetWeakReference(this: *mut core::ffi::c_void, weakreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWeakReferenceSource_Impl, - { + pub const fn new() -> IWeakReferenceSource_Vtbl { + unsafe extern "system" fn GetWeakReference(this: *mut core::ffi::c_void, weakreference: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWeakReferenceSource_Impl::GetWeakReference(this) { Ok(ok__) => { @@ -1275,27 +972,18 @@ impl IWeakReferenceSource_Vtbl { iid == &::IID } } -pub trait IWebAuthenticationCoreManagerInterop_Impl: Sized { +pub trait IWebAuthenticationCoreManagerInterop_Impl: Sized + windows_core::IUnknownImpl { fn RequestTokenForWindowAsync(&self, appwindow: super::super::Foundation::HWND, request: Option<&windows_core::IInspectable>, riid: *const windows_core::GUID, asyncinfo: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RequestTokenWithWebAccountForWindowAsync(&self, appwindow: super::super::Foundation::HWND, request: Option<&windows_core::IInspectable>, webaccount: Option<&windows_core::IInspectable>, riid: *const windows_core::GUID, asyncinfo: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWebAuthenticationCoreManagerInterop {} impl IWebAuthenticationCoreManagerInterop_Vtbl { - pub const fn new() -> IWebAuthenticationCoreManagerInterop_Vtbl - where - Identity: IWebAuthenticationCoreManagerInterop_Impl, - { - unsafe extern "system" fn RequestTokenForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, request: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAuthenticationCoreManagerInterop_Impl, - { + pub const fn new() -> IWebAuthenticationCoreManagerInterop_Vtbl { + unsafe extern "system" fn RequestTokenForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, request: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebAuthenticationCoreManagerInterop_Impl::RequestTokenForWindowAsync(this, core::mem::transmute_copy(&appwindow), windows_core::from_raw_borrowed(&request), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncinfo)).into() } - unsafe extern "system" fn RequestTokenWithWebAccountForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, request: *mut core::ffi::c_void, webaccount: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebAuthenticationCoreManagerInterop_Impl, - { + unsafe extern "system" fn RequestTokenWithWebAccountForWindowAsync(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, request: *mut core::ffi::c_void, webaccount: *mut core::ffi::c_void, riid: *const windows_core::GUID, asyncinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebAuthenticationCoreManagerInterop_Impl::RequestTokenWithWebAccountForWindowAsync(this, core::mem::transmute_copy(&appwindow), windows_core::from_raw_borrowed(&request), windows_core::from_raw_borrowed(&webaccount), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&asyncinfo)).into() } 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 baf6fab837..ec00923fe8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_System_Com")] -pub trait ICameraUIControl_Impl: Sized { +pub trait ICameraUIControl_Impl: Sized + windows_core::IUnknownImpl { fn Show(&self, pwindow: Option<&windows_core::IUnknown>, mode: CameraUIControlMode, selectionmode: CameraUIControlLinearSelectionMode, capturemode: CameraUIControlCaptureMode, photoformat: CameraUIControlPhotoFormat, videoformat: CameraUIControlVideoFormat, bhasclosebutton: super::super::Foundation::BOOL, peventcallback: Option<&ICameraUIControlEventCallback>) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn Suspend(&self) -> windows_core::Result; @@ -13,28 +13,16 @@ pub trait ICameraUIControl_Impl: Sized { impl windows_core::RuntimeName for ICameraUIControl {} #[cfg(feature = "Win32_System_Com")] impl ICameraUIControl_Vtbl { - pub const fn new() -> ICameraUIControl_Vtbl - where - Identity: ICameraUIControl_Impl, - { - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, pwindow: *mut core::ffi::c_void, mode: CameraUIControlMode, selectionmode: CameraUIControlLinearSelectionMode, capturemode: CameraUIControlCaptureMode, photoformat: CameraUIControlPhotoFormat, videoformat: CameraUIControlVideoFormat, bhasclosebutton: super::super::Foundation::BOOL, peventcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICameraUIControl_Impl, - { + pub const fn new() -> ICameraUIControl_Vtbl { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, pwindow: *mut core::ffi::c_void, mode: CameraUIControlMode, selectionmode: CameraUIControlLinearSelectionMode, capturemode: CameraUIControlCaptureMode, photoformat: CameraUIControlPhotoFormat, videoformat: CameraUIControlVideoFormat, bhasclosebutton: super::super::Foundation::BOOL, peventcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControl_Impl::Show(this, windows_core::from_raw_borrowed(&pwindow), core::mem::transmute_copy(&mode), core::mem::transmute_copy(&selectionmode), core::mem::transmute_copy(&capturemode), core::mem::transmute_copy(&photoformat), core::mem::transmute_copy(&videoformat), core::mem::transmute_copy(&bhasclosebutton), windows_core::from_raw_borrowed(&peventcallback)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICameraUIControl_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControl_Impl::Close(this).into() } - unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void, pbdeferralrequired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICameraUIControl_Impl, - { + unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void, pbdeferralrequired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICameraUIControl_Impl::Suspend(this) { Ok(ok__) => { @@ -44,17 +32,11 @@ impl ICameraUIControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICameraUIControl_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControl_Impl::Resume(this).into() } - unsafe extern "system" fn GetCurrentViewType(this: *mut core::ffi::c_void, pviewtype: *mut CameraUIControlViewType) -> windows_core::HRESULT - where - Identity: ICameraUIControl_Impl, - { + unsafe extern "system" fn GetCurrentViewType(this: *mut core::ffi::c_void, pviewtype: *mut CameraUIControlViewType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICameraUIControl_Impl::GetCurrentViewType(this) { Ok(ok__) => { @@ -64,17 +46,11 @@ impl ICameraUIControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActiveItem(this: *mut core::ffi::c_void, pbstractiveitempath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICameraUIControl_Impl, - { + unsafe extern "system" fn GetActiveItem(this: *mut core::ffi::c_void, pbstractiveitempath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControl_Impl::GetActiveItem(this, core::mem::transmute_copy(&pbstractiveitempath)).into() } - unsafe extern "system" fn GetSelectedItems(this: *mut core::ffi::c_void, ppselecteditempaths: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ICameraUIControl_Impl, - { + unsafe extern "system" fn GetSelectedItems(this: *mut core::ffi::c_void, ppselecteditempaths: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICameraUIControl_Impl::GetSelectedItems(this) { Ok(ok__) => { @@ -84,10 +60,7 @@ impl ICameraUIControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveCapturedItem(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICameraUIControl_Impl, - { + unsafe extern "system" fn RemoveCapturedItem(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControl_Impl::RemoveCapturedItem(this, core::mem::transmute(&pszpath)).into() } @@ -107,7 +80,7 @@ impl ICameraUIControl_Vtbl { iid == &::IID } } -pub trait ICameraUIControlEventCallback_Impl: Sized { +pub trait ICameraUIControlEventCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnStartupComplete(&self); fn OnSuspendComplete(&self); fn OnItemCaptured(&self, pszpath: &windows_core::PCWSTR); @@ -116,42 +89,24 @@ pub trait ICameraUIControlEventCallback_Impl: Sized { } impl windows_core::RuntimeName for ICameraUIControlEventCallback {} impl ICameraUIControlEventCallback_Vtbl { - pub const fn new() -> ICameraUIControlEventCallback_Vtbl - where - Identity: ICameraUIControlEventCallback_Impl, - { - unsafe extern "system" fn OnStartupComplete(this: *mut core::ffi::c_void) - where - Identity: ICameraUIControlEventCallback_Impl, - { + pub const fn new() -> ICameraUIControlEventCallback_Vtbl { + unsafe extern "system" fn OnStartupComplete(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControlEventCallback_Impl::OnStartupComplete(this) } - unsafe extern "system" fn OnSuspendComplete(this: *mut core::ffi::c_void) - where - Identity: ICameraUIControlEventCallback_Impl, - { + unsafe extern "system" fn OnSuspendComplete(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControlEventCallback_Impl::OnSuspendComplete(this) } - unsafe extern "system" fn OnItemCaptured(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) - where - Identity: ICameraUIControlEventCallback_Impl, - { + unsafe extern "system" fn OnItemCaptured(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControlEventCallback_Impl::OnItemCaptured(this, core::mem::transmute(&pszpath)) } - unsafe extern "system" fn OnItemDeleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) - where - Identity: ICameraUIControlEventCallback_Impl, - { + unsafe extern "system" fn OnItemDeleted(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControlEventCallback_Impl::OnItemDeleted(this, core::mem::transmute(&pszpath)) } - unsafe extern "system" fn OnClosed(this: *mut core::ffi::c_void) - where - Identity: ICameraUIControlEventCallback_Impl, - { + unsafe extern "system" fn OnClosed(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControlEventCallback_Impl::OnClosed(this) } @@ -168,19 +123,13 @@ impl ICameraUIControlEventCallback_Vtbl { iid == &::IID } } -pub trait IClipServiceNotificationHelper_Impl: Sized { +pub trait IClipServiceNotificationHelper_Impl: Sized + windows_core::IUnknownImpl { 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<()>; } impl windows_core::RuntimeName for IClipServiceNotificationHelper {} impl IClipServiceNotificationHelper_Vtbl { - pub const fn new() -> IClipServiceNotificationHelper_Vtbl - where - Identity: IClipServiceNotificationHelper_Impl, - { - unsafe extern "system" fn ShowToast(this: *mut core::ffi::c_void, titletext: core::mem::MaybeUninit, bodytext: core::mem::MaybeUninit, packagename: core::mem::MaybeUninit, appid: core::mem::MaybeUninit, launchcommand: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IClipServiceNotificationHelper_Impl, - { + pub const fn new() -> IClipServiceNotificationHelper_Vtbl { + unsafe extern "system" fn ShowToast(this: *mut core::ffi::c_void, titletext: core::mem::MaybeUninit, bodytext: core::mem::MaybeUninit, packagename: core::mem::MaybeUninit, appid: core::mem::MaybeUninit, launchcommand: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClipServiceNotificationHelper_Impl::ShowToast(this, core::mem::transmute(&titletext), core::mem::transmute(&bodytext), core::mem::transmute(&packagename), core::mem::transmute(&appid), core::mem::transmute(&launchcommand)).into() } @@ -190,19 +139,13 @@ impl IClipServiceNotificationHelper_Vtbl { iid == &::IID } } -pub trait IContainerActivationHelper_Impl: Sized { +pub trait IContainerActivationHelper_Impl: Sized + windows_core::IUnknownImpl { fn CanActivateClientVM(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IContainerActivationHelper {} impl IContainerActivationHelper_Vtbl { - pub const fn new() -> IContainerActivationHelper_Vtbl - where - Identity: IContainerActivationHelper_Impl, - { - unsafe extern "system" fn CanActivateClientVM(this: *mut core::ffi::c_void, isallowed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IContainerActivationHelper_Impl, - { + pub const fn new() -> IContainerActivationHelper_Vtbl { + unsafe extern "system" fn CanActivateClientVM(this: *mut core::ffi::c_void, isallowed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContainerActivationHelper_Impl::CanActivateClientVM(this) { Ok(ok__) => { @@ -218,19 +161,13 @@ impl IContainerActivationHelper_Vtbl { iid == &::IID } } -pub trait IDefaultBrowserSyncSettings_Impl: Sized { +pub trait IDefaultBrowserSyncSettings_Impl: Sized + windows_core::IUnknownImpl { fn IsEnabled(&self) -> super::super::Foundation::BOOL; } impl windows_core::RuntimeName for IDefaultBrowserSyncSettings {} impl IDefaultBrowserSyncSettings_Vtbl { - pub const fn new() -> IDefaultBrowserSyncSettings_Vtbl - where - Identity: IDefaultBrowserSyncSettings_Impl, - { - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IDefaultBrowserSyncSettings_Impl, - { + pub const fn new() -> IDefaultBrowserSyncSettings_Vtbl { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultBrowserSyncSettings_Impl::IsEnabled(this) } @@ -240,19 +177,13 @@ impl IDefaultBrowserSyncSettings_Vtbl { iid == &::IID } } -pub trait IDeleteBrowsingHistory_Impl: Sized { +pub trait IDeleteBrowsingHistory_Impl: Sized + windows_core::IUnknownImpl { fn DeleteBrowsingHistory(&self, dwflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDeleteBrowsingHistory {} impl IDeleteBrowsingHistory_Vtbl { - pub const fn new() -> IDeleteBrowsingHistory_Vtbl - where - Identity: IDeleteBrowsingHistory_Impl, - { - unsafe extern "system" fn DeleteBrowsingHistory(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDeleteBrowsingHistory_Impl, - { + pub const fn new() -> IDeleteBrowsingHistory_Vtbl { + unsafe extern "system" fn DeleteBrowsingHistory(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeleteBrowsingHistory_Impl::DeleteBrowsingHistory(this, core::mem::transmute_copy(&dwflags)).into() } @@ -263,7 +194,7 @@ impl IDeleteBrowsingHistory_Vtbl { } } #[cfg(feature = "Win32_System_Ole")] -pub trait IEditionUpgradeBroker_Impl: Sized { +pub trait IEditionUpgradeBroker_Impl: Sized + windows_core::IUnknownImpl { fn InitializeParentWindow(&self, parenthandle: super::Ole::OLE_HANDLE) -> windows_core::Result<()>; fn UpdateOperatingSystem(&self, parameter: &windows_core::BSTR) -> windows_core::Result<()>; fn ShowProductKeyUI(&self) -> windows_core::Result<()>; @@ -273,35 +204,20 @@ pub trait IEditionUpgradeBroker_Impl: Sized { impl windows_core::RuntimeName for IEditionUpgradeBroker {} #[cfg(feature = "Win32_System_Ole")] impl IEditionUpgradeBroker_Vtbl { - pub const fn new() -> IEditionUpgradeBroker_Vtbl - where - Identity: IEditionUpgradeBroker_Impl, - { - unsafe extern "system" fn InitializeParentWindow(this: *mut core::ffi::c_void, parenthandle: super::Ole::OLE_HANDLE) -> windows_core::HRESULT - where - Identity: IEditionUpgradeBroker_Impl, - { + pub const fn new() -> IEditionUpgradeBroker_Vtbl { + unsafe extern "system" fn InitializeParentWindow(this: *mut core::ffi::c_void, parenthandle: super::Ole::OLE_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEditionUpgradeBroker_Impl::InitializeParentWindow(this, core::mem::transmute_copy(&parenthandle)).into() } - unsafe extern "system" fn UpdateOperatingSystem(this: *mut core::ffi::c_void, parameter: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IEditionUpgradeBroker_Impl, - { + unsafe extern "system" fn UpdateOperatingSystem(this: *mut core::ffi::c_void, parameter: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEditionUpgradeBroker_Impl::UpdateOperatingSystem(this, core::mem::transmute(¶meter)).into() } - unsafe extern "system" fn ShowProductKeyUI(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEditionUpgradeBroker_Impl, - { + unsafe extern "system" fn ShowProductKeyUI(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEditionUpgradeBroker_Impl::ShowProductKeyUI(this).into() } - unsafe extern "system" fn CanUpgrade(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEditionUpgradeBroker_Impl, - { + unsafe extern "system" fn CanUpgrade(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEditionUpgradeBroker_Impl::CanUpgrade(this).into() } @@ -317,7 +233,7 @@ impl IEditionUpgradeBroker_Vtbl { iid == &::IID } } -pub trait IEditionUpgradeHelper_Impl: Sized { +pub trait IEditionUpgradeHelper_Impl: Sized + windows_core::IUnknownImpl { fn CanUpgrade(&self) -> windows_core::Result; fn UpdateOperatingSystem(&self, contentid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ShowProductKeyUI(&self) -> windows_core::Result<()>; @@ -326,14 +242,8 @@ pub trait IEditionUpgradeHelper_Impl: Sized { } impl windows_core::RuntimeName for IEditionUpgradeHelper {} impl IEditionUpgradeHelper_Vtbl { - pub const fn new() -> IEditionUpgradeHelper_Vtbl - where - Identity: IEditionUpgradeHelper_Impl, - { - unsafe extern "system" fn CanUpgrade(this: *mut core::ffi::c_void, isallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEditionUpgradeHelper_Impl, - { + pub const fn new() -> IEditionUpgradeHelper_Vtbl { + unsafe extern "system" fn CanUpgrade(this: *mut core::ffi::c_void, isallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEditionUpgradeHelper_Impl::CanUpgrade(this) { Ok(ok__) => { @@ -343,24 +253,15 @@ impl IEditionUpgradeHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateOperatingSystem(this: *mut core::ffi::c_void, contentid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEditionUpgradeHelper_Impl, - { + unsafe extern "system" fn UpdateOperatingSystem(this: *mut core::ffi::c_void, contentid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEditionUpgradeHelper_Impl::UpdateOperatingSystem(this, core::mem::transmute(&contentid)).into() } - unsafe extern "system" fn ShowProductKeyUI(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEditionUpgradeHelper_Impl, - { + unsafe extern "system" fn ShowProductKeyUI(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEditionUpgradeHelper_Impl::ShowProductKeyUI(this).into() } - unsafe extern "system" fn GetOsProductContentId(this: *mut core::ffi::c_void, contentid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IEditionUpgradeHelper_Impl, - { + unsafe extern "system" fn GetOsProductContentId(this: *mut core::ffi::c_void, contentid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEditionUpgradeHelper_Impl::GetOsProductContentId(this) { Ok(ok__) => { @@ -370,10 +271,7 @@ impl IEditionUpgradeHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGenuineLocalStatus(this: *mut core::ffi::c_void, isgenuine: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IEditionUpgradeHelper_Impl, - { + unsafe extern "system" fn GetGenuineLocalStatus(this: *mut core::ffi::c_void, isgenuine: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEditionUpgradeHelper_Impl::GetGenuineLocalStatus(this) { Ok(ok__) => { @@ -396,19 +294,13 @@ impl IEditionUpgradeHelper_Vtbl { iid == &::IID } } -pub trait IFClipNotificationHelper_Impl: Sized { +pub trait IFClipNotificationHelper_Impl: Sized + windows_core::IUnknownImpl { fn ShowSystemDialog(&self, titletext: &windows_core::BSTR, bodytext: &windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFClipNotificationHelper {} impl IFClipNotificationHelper_Vtbl { - pub const fn new() -> IFClipNotificationHelper_Vtbl - where - Identity: IFClipNotificationHelper_Impl, - { - unsafe extern "system" fn ShowSystemDialog(this: *mut core::ffi::c_void, titletext: core::mem::MaybeUninit, bodytext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFClipNotificationHelper_Impl, - { + pub const fn new() -> IFClipNotificationHelper_Vtbl { + unsafe extern "system" fn ShowSystemDialog(this: *mut core::ffi::c_void, titletext: core::mem::MaybeUninit, bodytext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFClipNotificationHelper_Impl::ShowSystemDialog(this, core::mem::transmute(&titletext), core::mem::transmute(&bodytext)).into() } @@ -418,19 +310,13 @@ impl IFClipNotificationHelper_Vtbl { iid == &::IID } } -pub trait IWindowsLockModeHelper_Impl: Sized { +pub trait IWindowsLockModeHelper_Impl: Sized + windows_core::IUnknownImpl { fn GetSMode(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWindowsLockModeHelper {} impl IWindowsLockModeHelper_Vtbl { - pub const fn new() -> IWindowsLockModeHelper_Vtbl - where - Identity: IWindowsLockModeHelper_Impl, - { - unsafe extern "system" fn GetSMode(this: *mut core::ffi::c_void, issmode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWindowsLockModeHelper_Impl, - { + pub const fn new() -> IWindowsLockModeHelper_Vtbl { + unsafe extern "system" fn GetSMode(this: *mut core::ffi::c_void, issmode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsLockModeHelper_Impl::GetSMode(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/System/WindowsSync/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WindowsSync/impl.rs index 185c1c9434..8f611b50c3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsSync/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsSync/impl.rs @@ -1,4 +1,4 @@ -pub trait IAsynchronousDataRetriever_Impl: Sized { +pub trait IAsynchronousDataRetriever_Impl: Sized + windows_core::IUnknownImpl { fn GetIdParameters(&self, pidparameters: *mut ID_PARAMETERS) -> windows_core::Result<()>; fn RegisterCallback(&self, pdataretrievercallback: Option<&IDataRetrieverCallback>) -> windows_core::Result<()>; fn RevokeCallback(&self, pdataretrievercallback: Option<&IDataRetrieverCallback>) -> windows_core::Result<()>; @@ -6,35 +6,20 @@ pub trait IAsynchronousDataRetriever_Impl: Sized { } impl windows_core::RuntimeName for IAsynchronousDataRetriever {} impl IAsynchronousDataRetriever_Vtbl { - pub const fn new() -> IAsynchronousDataRetriever_Vtbl - where - Identity: IAsynchronousDataRetriever_Impl, - { - unsafe extern "system" fn GetIdParameters(this: *mut core::ffi::c_void, pidparameters: *mut ID_PARAMETERS) -> windows_core::HRESULT - where - Identity: IAsynchronousDataRetriever_Impl, - { + pub const fn new() -> IAsynchronousDataRetriever_Vtbl { + unsafe extern "system" fn GetIdParameters(this: *mut core::ffi::c_void, pidparameters: *mut ID_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsynchronousDataRetriever_Impl::GetIdParameters(this, core::mem::transmute_copy(&pidparameters)).into() } - unsafe extern "system" fn RegisterCallback(this: *mut core::ffi::c_void, pdataretrievercallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsynchronousDataRetriever_Impl, - { + unsafe extern "system" fn RegisterCallback(this: *mut core::ffi::c_void, pdataretrievercallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsynchronousDataRetriever_Impl::RegisterCallback(this, windows_core::from_raw_borrowed(&pdataretrievercallback)).into() } - unsafe extern "system" fn RevokeCallback(this: *mut core::ffi::c_void, pdataretrievercallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsynchronousDataRetriever_Impl, - { + unsafe extern "system" fn RevokeCallback(this: *mut core::ffi::c_void, pdataretrievercallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsynchronousDataRetriever_Impl::RevokeCallback(this, windows_core::from_raw_borrowed(&pdataretrievercallback)).into() } - unsafe extern "system" fn LoadChangeData(this: *mut core::ffi::c_void, ploadchangecontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAsynchronousDataRetriever_Impl, - { + unsafe extern "system" fn LoadChangeData(this: *mut core::ffi::c_void, ploadchangecontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsynchronousDataRetriever_Impl::LoadChangeData(this, windows_core::from_raw_borrowed(&ploadchangecontext)).into() } @@ -50,7 +35,7 @@ impl IAsynchronousDataRetriever_Vtbl { iid == &::IID } } -pub trait IChangeConflict_Impl: Sized { +pub trait IChangeConflict_Impl: Sized + windows_core::IUnknownImpl { fn GetDestinationProviderConflictingChange(&self) -> windows_core::Result; fn GetSourceProviderConflictingChange(&self) -> windows_core::Result; fn GetDestinationProviderConflictingData(&self) -> windows_core::Result; @@ -62,14 +47,8 @@ pub trait IChangeConflict_Impl: Sized { } impl windows_core::RuntimeName for IChangeConflict {} impl IChangeConflict_Vtbl { - pub const fn new() -> IChangeConflict_Vtbl - where - Identity: IChangeConflict_Impl, - { - unsafe extern "system" fn GetDestinationProviderConflictingChange(this: *mut core::ffi::c_void, ppconflictingchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IChangeConflict_Impl, - { + pub const fn new() -> IChangeConflict_Vtbl { + unsafe extern "system" fn GetDestinationProviderConflictingChange(this: *mut core::ffi::c_void, ppconflictingchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IChangeConflict_Impl::GetDestinationProviderConflictingChange(this) { Ok(ok__) => { @@ -79,10 +58,7 @@ impl IChangeConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceProviderConflictingChange(this: *mut core::ffi::c_void, ppconflictingchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IChangeConflict_Impl, - { + unsafe extern "system" fn GetSourceProviderConflictingChange(this: *mut core::ffi::c_void, ppconflictingchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IChangeConflict_Impl::GetSourceProviderConflictingChange(this) { Ok(ok__) => { @@ -92,10 +68,7 @@ impl IChangeConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDestinationProviderConflictingData(this: *mut core::ffi::c_void, ppconflictingdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IChangeConflict_Impl, - { + unsafe extern "system" fn GetDestinationProviderConflictingData(this: *mut core::ffi::c_void, ppconflictingdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IChangeConflict_Impl::GetDestinationProviderConflictingData(this) { Ok(ok__) => { @@ -105,10 +78,7 @@ impl IChangeConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceProviderConflictingData(this: *mut core::ffi::c_void, ppconflictingdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IChangeConflict_Impl, - { + unsafe extern "system" fn GetSourceProviderConflictingData(this: *mut core::ffi::c_void, ppconflictingdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IChangeConflict_Impl::GetSourceProviderConflictingData(this) { Ok(ok__) => { @@ -118,31 +88,19 @@ impl IChangeConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResolveActionForChange(this: *mut core::ffi::c_void, presolveaction: *mut SYNC_RESOLVE_ACTION) -> windows_core::HRESULT - where - Identity: IChangeConflict_Impl, - { + unsafe extern "system" fn GetResolveActionForChange(this: *mut core::ffi::c_void, presolveaction: *mut SYNC_RESOLVE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChangeConflict_Impl::GetResolveActionForChange(this, core::mem::transmute_copy(&presolveaction)).into() } - unsafe extern "system" fn SetResolveActionForChange(this: *mut core::ffi::c_void, resolveaction: SYNC_RESOLVE_ACTION) -> windows_core::HRESULT - where - Identity: IChangeConflict_Impl, - { + unsafe extern "system" fn SetResolveActionForChange(this: *mut core::ffi::c_void, resolveaction: SYNC_RESOLVE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChangeConflict_Impl::SetResolveActionForChange(this, core::mem::transmute_copy(&resolveaction)).into() } - unsafe extern "system" fn GetResolveActionForChangeUnit(this: *mut core::ffi::c_void, pchangeunit: *mut core::ffi::c_void, presolveaction: *mut SYNC_RESOLVE_ACTION) -> windows_core::HRESULT - where - Identity: IChangeConflict_Impl, - { + unsafe extern "system" fn GetResolveActionForChangeUnit(this: *mut core::ffi::c_void, pchangeunit: *mut core::ffi::c_void, presolveaction: *mut SYNC_RESOLVE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChangeConflict_Impl::GetResolveActionForChangeUnit(this, windows_core::from_raw_borrowed(&pchangeunit), core::mem::transmute_copy(&presolveaction)).into() } - unsafe extern "system" fn SetResolveActionForChangeUnit(this: *mut core::ffi::c_void, pchangeunit: *mut core::ffi::c_void, resolveaction: SYNC_RESOLVE_ACTION) -> windows_core::HRESULT - where - Identity: IChangeConflict_Impl, - { + unsafe extern "system" fn SetResolveActionForChangeUnit(this: *mut core::ffi::c_void, pchangeunit: *mut core::ffi::c_void, resolveaction: SYNC_RESOLVE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChangeConflict_Impl::SetResolveActionForChangeUnit(this, windows_core::from_raw_borrowed(&pchangeunit), core::mem::transmute_copy(&resolveaction)).into() } @@ -162,35 +120,23 @@ impl IChangeConflict_Vtbl { iid == &::IID } } -pub trait IChangeUnitException_Impl: Sized { +pub trait IChangeUnitException_Impl: Sized + windows_core::IUnknownImpl { fn GetItemId(&self, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; fn GetChangeUnitId(&self, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; fn GetClockVector(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IChangeUnitException {} impl IChangeUnitException_Vtbl { - pub const fn new() -> IChangeUnitException_Vtbl - where - Identity: IChangeUnitException_Impl, - { - unsafe extern "system" fn GetItemId(this: *mut core::ffi::c_void, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: IChangeUnitException_Impl, - { + pub const fn new() -> IChangeUnitException_Vtbl { + unsafe extern "system" fn GetItemId(this: *mut core::ffi::c_void, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChangeUnitException_Impl::GetItemId(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn GetChangeUnitId(this: *mut core::ffi::c_void, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: IChangeUnitException_Impl, - { + unsafe extern "system" fn GetChangeUnitId(this: *mut core::ffi::c_void, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChangeUnitException_Impl::GetChangeUnitId(this, core::mem::transmute_copy(&pbchangeunitid), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn GetClockVector(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IChangeUnitException_Impl, - { + unsafe extern "system" fn GetClockVector(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChangeUnitException_Impl::GetClockVector(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } @@ -212,28 +158,16 @@ pub trait IChangeUnitListFilterInfo_Impl: Sized + ISyncFilterInfo_Impl { } impl windows_core::RuntimeName for IChangeUnitListFilterInfo {} impl IChangeUnitListFilterInfo_Vtbl { - pub const fn new() -> IChangeUnitListFilterInfo_Vtbl - where - Identity: IChangeUnitListFilterInfo_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, ppbchangeunitids: *const *const u8, dwchangeunitcount: u32) -> windows_core::HRESULT - where - Identity: IChangeUnitListFilterInfo_Impl, - { + pub const fn new() -> IChangeUnitListFilterInfo_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, ppbchangeunitids: *const *const u8, dwchangeunitcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChangeUnitListFilterInfo_Impl::Initialize(this, core::mem::transmute_copy(&ppbchangeunitids), core::mem::transmute_copy(&dwchangeunitcount)).into() } - unsafe extern "system" fn GetChangeUnitIdCount(this: *mut core::ffi::c_void, pdwchangeunitidcount: *mut u32) -> windows_core::HRESULT - where - Identity: IChangeUnitListFilterInfo_Impl, - { + unsafe extern "system" fn GetChangeUnitIdCount(this: *mut core::ffi::c_void, pdwchangeunitidcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChangeUnitListFilterInfo_Impl::GetChangeUnitIdCount(this, core::mem::transmute_copy(&pdwchangeunitidcount)).into() } - unsafe extern "system" fn GetChangeUnitId(this: *mut core::ffi::c_void, dwchangeunitidindex: u32, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: IChangeUnitListFilterInfo_Impl, - { + unsafe extern "system" fn GetChangeUnitId(this: *mut core::ffi::c_void, dwchangeunitidindex: u32, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChangeUnitListFilterInfo_Impl::GetChangeUnitId(this, core::mem::transmute_copy(&dwchangeunitidindex), core::mem::transmute_copy(&pbchangeunitid), core::mem::transmute_copy(&pcbidsize)).into() } @@ -248,27 +182,18 @@ impl IChangeUnitListFilterInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IClockVector_Impl: Sized { +pub trait IClockVector_Impl: Sized + windows_core::IUnknownImpl { fn GetClockVectorElements(&self, riid: *const windows_core::GUID, ppienumclockvector: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetClockVectorElementCount(&self, pdwcount: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IClockVector {} impl IClockVector_Vtbl { - pub const fn new() -> IClockVector_Vtbl - where - Identity: IClockVector_Impl, - { - unsafe extern "system" fn GetClockVectorElements(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppienumclockvector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IClockVector_Impl, - { + pub const fn new() -> IClockVector_Vtbl { + unsafe extern "system" fn GetClockVectorElements(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppienumclockvector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClockVector_Impl::GetClockVectorElements(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppienumclockvector)).into() } - unsafe extern "system" fn GetClockVectorElementCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IClockVector_Impl, - { + unsafe extern "system" fn GetClockVectorElementCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClockVector_Impl::GetClockVectorElementCount(this, core::mem::transmute_copy(&pdwcount)).into() } @@ -282,27 +207,18 @@ impl IClockVector_Vtbl { iid == &::IID } } -pub trait IClockVectorElement_Impl: Sized { +pub trait IClockVectorElement_Impl: Sized + windows_core::IUnknownImpl { fn GetReplicaKey(&self, pdwreplicakey: *mut u32) -> windows_core::Result<()>; fn GetTickCount(&self, pulltickcount: *mut u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IClockVectorElement {} impl IClockVectorElement_Vtbl { - pub const fn new() -> IClockVectorElement_Vtbl - where - Identity: IClockVectorElement_Impl, - { - unsafe extern "system" fn GetReplicaKey(this: *mut core::ffi::c_void, pdwreplicakey: *mut u32) -> windows_core::HRESULT - where - Identity: IClockVectorElement_Impl, - { + pub const fn new() -> IClockVectorElement_Vtbl { + unsafe extern "system" fn GetReplicaKey(this: *mut core::ffi::c_void, pdwreplicakey: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClockVectorElement_Impl::GetReplicaKey(this, core::mem::transmute_copy(&pdwreplicakey)).into() } - unsafe extern "system" fn GetTickCount(this: *mut core::ffi::c_void, pulltickcount: *mut u64) -> windows_core::HRESULT - where - Identity: IClockVectorElement_Impl, - { + unsafe extern "system" fn GetTickCount(this: *mut core::ffi::c_void, pulltickcount: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClockVectorElement_Impl::GetTickCount(this, core::mem::transmute_copy(&pulltickcount)).into() } @@ -323,21 +239,12 @@ pub trait ICombinedFilterInfo_Impl: Sized + ISyncFilterInfo_Impl { } impl windows_core::RuntimeName for ICombinedFilterInfo {} impl ICombinedFilterInfo_Vtbl { - pub const fn new() -> ICombinedFilterInfo_Vtbl - where - Identity: ICombinedFilterInfo_Impl, - { - unsafe extern "system" fn GetFilterCount(this: *mut core::ffi::c_void, pdwfiltercount: *mut u32) -> windows_core::HRESULT - where - Identity: ICombinedFilterInfo_Impl, - { + pub const fn new() -> ICombinedFilterInfo_Vtbl { + unsafe extern "system" fn GetFilterCount(this: *mut core::ffi::c_void, pdwfiltercount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICombinedFilterInfo_Impl::GetFilterCount(this, core::mem::transmute_copy(&pdwfiltercount)).into() } - unsafe extern "system" fn GetFilterInfo(this: *mut core::ffi::c_void, dwfilterindex: u32, ppifilterinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICombinedFilterInfo_Impl, - { + unsafe extern "system" fn GetFilterInfo(this: *mut core::ffi::c_void, dwfilterindex: u32, ppifilterinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICombinedFilterInfo_Impl::GetFilterInfo(this, core::mem::transmute_copy(&dwfilterindex)) { Ok(ok__) => { @@ -347,10 +254,7 @@ impl ICombinedFilterInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilterCombinationType(this: *mut core::ffi::c_void, pfiltercombinationtype: *mut FILTER_COMBINATION_TYPE) -> windows_core::HRESULT - where - Identity: ICombinedFilterInfo_Impl, - { + unsafe extern "system" fn GetFilterCombinationType(this: *mut core::ffi::c_void, pfiltercombinationtype: *mut FILTER_COMBINATION_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICombinedFilterInfo_Impl::GetFilterCombinationType(this, core::mem::transmute_copy(&pfiltercombinationtype)).into() } @@ -365,7 +269,7 @@ impl ICombinedFilterInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IConstraintConflict_Impl: Sized { +pub trait IConstraintConflict_Impl: Sized + windows_core::IUnknownImpl { fn GetDestinationProviderConflictingChange(&self) -> windows_core::Result; fn GetSourceProviderConflictingChange(&self) -> windows_core::Result; fn GetDestinationProviderOriginalChange(&self) -> windows_core::Result; @@ -381,14 +285,8 @@ pub trait IConstraintConflict_Impl: Sized { } impl windows_core::RuntimeName for IConstraintConflict {} impl IConstraintConflict_Vtbl { - pub const fn new() -> IConstraintConflict_Vtbl - where - Identity: IConstraintConflict_Impl, - { - unsafe extern "system" fn GetDestinationProviderConflictingChange(this: *mut core::ffi::c_void, ppconflictingchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + pub const fn new() -> IConstraintConflict_Vtbl { + unsafe extern "system" fn GetDestinationProviderConflictingChange(this: *mut core::ffi::c_void, ppconflictingchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConstraintConflict_Impl::GetDestinationProviderConflictingChange(this) { Ok(ok__) => { @@ -398,10 +296,7 @@ impl IConstraintConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceProviderConflictingChange(this: *mut core::ffi::c_void, ppconflictingchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn GetSourceProviderConflictingChange(this: *mut core::ffi::c_void, ppconflictingchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConstraintConflict_Impl::GetSourceProviderConflictingChange(this) { Ok(ok__) => { @@ -411,10 +306,7 @@ impl IConstraintConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDestinationProviderOriginalChange(this: *mut core::ffi::c_void, pporiginalchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn GetDestinationProviderOriginalChange(this: *mut core::ffi::c_void, pporiginalchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConstraintConflict_Impl::GetDestinationProviderOriginalChange(this) { Ok(ok__) => { @@ -424,10 +316,7 @@ impl IConstraintConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDestinationProviderConflictingData(this: *mut core::ffi::c_void, ppconflictingdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn GetDestinationProviderConflictingData(this: *mut core::ffi::c_void, ppconflictingdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConstraintConflict_Impl::GetDestinationProviderConflictingData(this) { Ok(ok__) => { @@ -437,10 +326,7 @@ impl IConstraintConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceProviderConflictingData(this: *mut core::ffi::c_void, ppconflictingdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn GetSourceProviderConflictingData(this: *mut core::ffi::c_void, ppconflictingdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConstraintConflict_Impl::GetSourceProviderConflictingData(this) { Ok(ok__) => { @@ -450,10 +336,7 @@ impl IConstraintConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDestinationProviderOriginalData(this: *mut core::ffi::c_void, pporiginaldata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn GetDestinationProviderOriginalData(this: *mut core::ffi::c_void, pporiginaldata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConstraintConflict_Impl::GetDestinationProviderOriginalData(this) { Ok(ok__) => { @@ -463,45 +346,27 @@ impl IConstraintConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConstraintResolveActionForChange(this: *mut core::ffi::c_void, pconstraintresolveaction: *mut SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn GetConstraintResolveActionForChange(this: *mut core::ffi::c_void, pconstraintresolveaction: *mut SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConstraintConflict_Impl::GetConstraintResolveActionForChange(this, core::mem::transmute_copy(&pconstraintresolveaction)).into() } - unsafe extern "system" fn SetConstraintResolveActionForChange(this: *mut core::ffi::c_void, constraintresolveaction: SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn SetConstraintResolveActionForChange(this: *mut core::ffi::c_void, constraintresolveaction: SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConstraintConflict_Impl::SetConstraintResolveActionForChange(this, core::mem::transmute_copy(&constraintresolveaction)).into() } - unsafe extern "system" fn GetConstraintResolveActionForChangeUnit(this: *mut core::ffi::c_void, pchangeunit: *mut core::ffi::c_void, pconstraintresolveaction: *mut SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn GetConstraintResolveActionForChangeUnit(this: *mut core::ffi::c_void, pchangeunit: *mut core::ffi::c_void, pconstraintresolveaction: *mut SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConstraintConflict_Impl::GetConstraintResolveActionForChangeUnit(this, windows_core::from_raw_borrowed(&pchangeunit), core::mem::transmute_copy(&pconstraintresolveaction)).into() } - unsafe extern "system" fn SetConstraintResolveActionForChangeUnit(this: *mut core::ffi::c_void, pchangeunit: *mut core::ffi::c_void, constraintresolveaction: SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn SetConstraintResolveActionForChangeUnit(this: *mut core::ffi::c_void, pchangeunit: *mut core::ffi::c_void, constraintresolveaction: SYNC_CONSTRAINT_RESOLVE_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConstraintConflict_Impl::SetConstraintResolveActionForChangeUnit(this, windows_core::from_raw_borrowed(&pchangeunit), core::mem::transmute_copy(&constraintresolveaction)).into() } - unsafe extern "system" fn GetConstraintConflictReason(this: *mut core::ffi::c_void, pconstraintconflictreason: *mut CONSTRAINT_CONFLICT_REASON) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn GetConstraintConflictReason(this: *mut core::ffi::c_void, pconstraintconflictreason: *mut CONSTRAINT_CONFLICT_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConstraintConflict_Impl::GetConstraintConflictReason(this, core::mem::transmute_copy(&pconstraintconflictreason)).into() } - unsafe extern "system" fn IsTemporary(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConstraintConflict_Impl, - { + unsafe extern "system" fn IsTemporary(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConstraintConflict_Impl::IsTemporary(this).into() } @@ -525,19 +390,13 @@ impl IConstraintConflict_Vtbl { iid == &::IID } } -pub trait IConstructReplicaKeyMap_Impl: Sized { +pub trait IConstructReplicaKeyMap_Impl: Sized + windows_core::IUnknownImpl { fn FindOrAddReplica(&self, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IConstructReplicaKeyMap {} impl IConstructReplicaKeyMap_Vtbl { - pub const fn new() -> IConstructReplicaKeyMap_Vtbl - where - Identity: IConstructReplicaKeyMap_Impl, - { - unsafe extern "system" fn FindOrAddReplica(this: *mut core::ffi::c_void, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> windows_core::HRESULT - where - Identity: IConstructReplicaKeyMap_Impl, - { + pub const fn new() -> IConstructReplicaKeyMap_Vtbl { + unsafe extern "system" fn FindOrAddReplica(this: *mut core::ffi::c_void, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConstructReplicaKeyMap_Impl::FindOrAddReplica(this, core::mem::transmute_copy(&pbreplicaid), core::mem::transmute_copy(&pdwreplicakey)).into() } @@ -547,7 +406,7 @@ impl IConstructReplicaKeyMap_Vtbl { iid == &::IID } } -pub trait ICoreFragment_Impl: Sized { +pub trait ICoreFragment_Impl: Sized + windows_core::IUnknownImpl { fn NextColumn(&self, pchangeunitid: *mut u8, pchangeunitidsize: *mut u32) -> windows_core::Result<()>; fn NextRange(&self, pitemid: *mut u8, pitemidsize: *mut u32, piclockvector: *mut Option) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -556,42 +415,24 @@ pub trait ICoreFragment_Impl: Sized { } impl windows_core::RuntimeName for ICoreFragment {} impl ICoreFragment_Vtbl { - pub const fn new() -> ICoreFragment_Vtbl - where - Identity: ICoreFragment_Impl, - { - unsafe extern "system" fn NextColumn(this: *mut core::ffi::c_void, pchangeunitid: *mut u8, pchangeunitidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ICoreFragment_Impl, - { + pub const fn new() -> ICoreFragment_Vtbl { + unsafe extern "system" fn NextColumn(this: *mut core::ffi::c_void, pchangeunitid: *mut u8, pchangeunitidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreFragment_Impl::NextColumn(this, core::mem::transmute_copy(&pchangeunitid), core::mem::transmute_copy(&pchangeunitidsize)).into() } - unsafe extern "system" fn NextRange(this: *mut core::ffi::c_void, pitemid: *mut u8, pitemidsize: *mut u32, piclockvector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreFragment_Impl, - { + unsafe extern "system" fn NextRange(this: *mut core::ffi::c_void, pitemid: *mut u8, pitemidsize: *mut u32, piclockvector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreFragment_Impl::NextRange(this, core::mem::transmute_copy(&pitemid), core::mem::transmute_copy(&pitemidsize), core::mem::transmute_copy(&piclockvector)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreFragment_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreFragment_Impl::Reset(this).into() } - unsafe extern "system" fn GetColumnCount(this: *mut core::ffi::c_void, pcolumncount: *mut u32) -> windows_core::HRESULT - where - Identity: ICoreFragment_Impl, - { + unsafe extern "system" fn GetColumnCount(this: *mut core::ffi::c_void, pcolumncount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreFragment_Impl::GetColumnCount(this, core::mem::transmute_copy(&pcolumncount)).into() } - unsafe extern "system" fn GetRangeCount(this: *mut core::ffi::c_void, prangecount: *mut u32) -> windows_core::HRESULT - where - Identity: ICoreFragment_Impl, - { + unsafe extern "system" fn GetRangeCount(this: *mut core::ffi::c_void, prangecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreFragment_Impl::GetRangeCount(this, core::mem::transmute_copy(&prangecount)).into() } @@ -608,27 +449,18 @@ impl ICoreFragment_Vtbl { iid == &::IID } } -pub trait ICoreFragmentInspector_Impl: Sized { +pub trait ICoreFragmentInspector_Impl: Sized + windows_core::IUnknownImpl { fn NextCoreFragments(&self, requestedcount: u32, ppicorefragments: *mut Option, pfetchedcount: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICoreFragmentInspector {} impl ICoreFragmentInspector_Vtbl { - pub const fn new() -> ICoreFragmentInspector_Vtbl - where - Identity: ICoreFragmentInspector_Impl, - { - unsafe extern "system" fn NextCoreFragments(this: *mut core::ffi::c_void, requestedcount: u32, ppicorefragments: *mut *mut core::ffi::c_void, pfetchedcount: *mut u32) -> windows_core::HRESULT - where - Identity: ICoreFragmentInspector_Impl, - { + pub const fn new() -> ICoreFragmentInspector_Vtbl { + unsafe extern "system" fn NextCoreFragments(this: *mut core::ffi::c_void, requestedcount: u32, ppicorefragments: *mut *mut core::ffi::c_void, pfetchedcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreFragmentInspector_Impl::NextCoreFragments(this, core::mem::transmute_copy(&requestedcount), core::mem::transmute_copy(&ppicorefragments), core::mem::transmute_copy(&pfetchedcount)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICoreFragmentInspector_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreFragmentInspector_Impl::Reset(this).into() } @@ -647,14 +479,8 @@ pub trait ICustomFilterInfo_Impl: Sized + ISyncFilterInfo_Impl { } impl windows_core::RuntimeName for ICustomFilterInfo {} impl ICustomFilterInfo_Vtbl { - pub const fn new() -> ICustomFilterInfo_Vtbl - where - Identity: ICustomFilterInfo_Impl, - { - unsafe extern "system" fn GetSyncFilter(this: *mut core::ffi::c_void, pisyncfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomFilterInfo_Impl, - { + pub const fn new() -> ICustomFilterInfo_Vtbl { + unsafe extern "system" fn GetSyncFilter(this: *mut core::ffi::c_void, pisyncfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICustomFilterInfo_Impl::GetSyncFilter(this) { Ok(ok__) => { @@ -670,27 +496,18 @@ impl ICustomFilterInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDataRetrieverCallback_Impl: Sized { +pub trait IDataRetrieverCallback_Impl: Sized + windows_core::IUnknownImpl { fn LoadChangeDataComplete(&self, punkdata: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn LoadChangeDataError(&self, hrerror: windows_core::HRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDataRetrieverCallback {} impl IDataRetrieverCallback_Vtbl { - pub const fn new() -> IDataRetrieverCallback_Vtbl - where - Identity: IDataRetrieverCallback_Impl, - { - unsafe extern "system" fn LoadChangeDataComplete(this: *mut core::ffi::c_void, punkdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataRetrieverCallback_Impl, - { + pub const fn new() -> IDataRetrieverCallback_Vtbl { + unsafe extern "system" fn LoadChangeDataComplete(this: *mut core::ffi::c_void, punkdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataRetrieverCallback_Impl::LoadChangeDataComplete(this, windows_core::from_raw_borrowed(&punkdata)).into() } - unsafe extern "system" fn LoadChangeDataError(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IDataRetrieverCallback_Impl, - { + unsafe extern "system" fn LoadChangeDataError(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataRetrieverCallback_Impl::LoadChangeDataError(this, core::mem::transmute_copy(&hrerror)).into() } @@ -704,7 +521,7 @@ impl IDataRetrieverCallback_Vtbl { iid == &::IID } } -pub trait IEnumChangeUnitExceptions_Impl: Sized { +pub trait IEnumChangeUnitExceptions_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cexceptions: u32, ppchangeunitexception: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cexceptions: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -712,35 +529,20 @@ pub trait IEnumChangeUnitExceptions_Impl: Sized { } impl windows_core::RuntimeName for IEnumChangeUnitExceptions {} impl IEnumChangeUnitExceptions_Vtbl { - pub const fn new() -> IEnumChangeUnitExceptions_Vtbl - where - Identity: IEnumChangeUnitExceptions_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cexceptions: u32, ppchangeunitexception: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumChangeUnitExceptions_Impl, - { + pub const fn new() -> IEnumChangeUnitExceptions_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cexceptions: u32, ppchangeunitexception: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumChangeUnitExceptions_Impl::Next(this, core::mem::transmute_copy(&cexceptions), core::mem::transmute_copy(&ppchangeunitexception), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cexceptions: u32) -> windows_core::HRESULT - where - Identity: IEnumChangeUnitExceptions_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cexceptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumChangeUnitExceptions_Impl::Skip(this, core::mem::transmute_copy(&cexceptions)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumChangeUnitExceptions_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumChangeUnitExceptions_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumChangeUnitExceptions_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumChangeUnitExceptions_Impl::Clone(this) { Ok(ok__) => { @@ -762,7 +564,7 @@ impl IEnumChangeUnitExceptions_Vtbl { iid == &::IID } } -pub trait IEnumClockVector_Impl: Sized { +pub trait IEnumClockVector_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cclockvectorelements: u32, ppiclockvectorelements: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, csyncversions: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -770,35 +572,20 @@ pub trait IEnumClockVector_Impl: Sized { } impl windows_core::RuntimeName for IEnumClockVector {} impl IEnumClockVector_Vtbl { - pub const fn new() -> IEnumClockVector_Vtbl - where - Identity: IEnumClockVector_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cclockvectorelements: u32, ppiclockvectorelements: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumClockVector_Impl, - { + pub const fn new() -> IEnumClockVector_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cclockvectorelements: u32, ppiclockvectorelements: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumClockVector_Impl::Next(this, core::mem::transmute_copy(&cclockvectorelements), core::mem::transmute_copy(&ppiclockvectorelements), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, csyncversions: u32) -> windows_core::HRESULT - where - Identity: IEnumClockVector_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, csyncversions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumClockVector_Impl::Skip(this, core::mem::transmute_copy(&csyncversions)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumClockVector_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumClockVector_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumClockVector_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumClockVector_Impl::Clone(this) { Ok(ok__) => { @@ -820,7 +607,7 @@ impl IEnumClockVector_Vtbl { iid == &::IID } } -pub trait IEnumFeedClockVector_Impl: Sized { +pub trait IEnumFeedClockVector_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cclockvectorelements: u32, ppiclockvectorelements: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, csyncversions: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -828,35 +615,20 @@ pub trait IEnumFeedClockVector_Impl: Sized { } impl windows_core::RuntimeName for IEnumFeedClockVector {} impl IEnumFeedClockVector_Vtbl { - pub const fn new() -> IEnumFeedClockVector_Vtbl - where - Identity: IEnumFeedClockVector_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cclockvectorelements: u32, ppiclockvectorelements: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumFeedClockVector_Impl, - { + pub const fn new() -> IEnumFeedClockVector_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cclockvectorelements: u32, ppiclockvectorelements: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFeedClockVector_Impl::Next(this, core::mem::transmute_copy(&cclockvectorelements), core::mem::transmute_copy(&ppiclockvectorelements), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, csyncversions: u32) -> windows_core::HRESULT - where - Identity: IEnumFeedClockVector_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, csyncversions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFeedClockVector_Impl::Skip(this, core::mem::transmute_copy(&csyncversions)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumFeedClockVector_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFeedClockVector_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumFeedClockVector_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumFeedClockVector_Impl::Clone(this) { Ok(ok__) => { @@ -878,19 +650,13 @@ impl IEnumFeedClockVector_Vtbl { iid == &::IID } } -pub trait IEnumItemIds_Impl: Sized { +pub trait IEnumItemIds_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, pbitemid: *mut u8, pcbitemidsize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IEnumItemIds {} impl IEnumItemIds_Vtbl { - pub const fn new() -> IEnumItemIds_Vtbl - where - Identity: IEnumItemIds_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pbitemid: *mut u8, pcbitemidsize: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumItemIds_Impl, - { + pub const fn new() -> IEnumItemIds_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pbitemid: *mut u8, pcbitemidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumItemIds_Impl::Next(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pcbitemidsize)).into() } @@ -900,7 +666,7 @@ impl IEnumItemIds_Vtbl { iid == &::IID } } -pub trait IEnumRangeExceptions_Impl: Sized { +pub trait IEnumRangeExceptions_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cexceptions: u32, pprangeexception: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cexceptions: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -908,35 +674,20 @@ pub trait IEnumRangeExceptions_Impl: Sized { } impl windows_core::RuntimeName for IEnumRangeExceptions {} impl IEnumRangeExceptions_Vtbl { - pub const fn new() -> IEnumRangeExceptions_Vtbl - where - Identity: IEnumRangeExceptions_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cexceptions: u32, pprangeexception: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumRangeExceptions_Impl, - { + pub const fn new() -> IEnumRangeExceptions_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cexceptions: u32, pprangeexception: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRangeExceptions_Impl::Next(this, core::mem::transmute_copy(&cexceptions), core::mem::transmute_copy(&pprangeexception), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cexceptions: u32) -> windows_core::HRESULT - where - Identity: IEnumRangeExceptions_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cexceptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRangeExceptions_Impl::Skip(this, core::mem::transmute_copy(&cexceptions)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRangeExceptions_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRangeExceptions_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRangeExceptions_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumRangeExceptions_Impl::Clone(this) { Ok(ok__) => { @@ -958,7 +709,7 @@ impl IEnumRangeExceptions_Vtbl { iid == &::IID } } -pub trait IEnumSingleItemExceptions_Impl: Sized { +pub trait IEnumSingleItemExceptions_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cexceptions: u32, ppsingleitemexception: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cexceptions: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -966,35 +717,20 @@ pub trait IEnumSingleItemExceptions_Impl: Sized { } impl windows_core::RuntimeName for IEnumSingleItemExceptions {} impl IEnumSingleItemExceptions_Vtbl { - pub const fn new() -> IEnumSingleItemExceptions_Vtbl - where - Identity: IEnumSingleItemExceptions_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cexceptions: u32, ppsingleitemexception: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSingleItemExceptions_Impl, - { + pub const fn new() -> IEnumSingleItemExceptions_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cexceptions: u32, ppsingleitemexception: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSingleItemExceptions_Impl::Next(this, core::mem::transmute_copy(&cexceptions), core::mem::transmute_copy(&ppsingleitemexception), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cexceptions: u32) -> windows_core::HRESULT - where - Identity: IEnumSingleItemExceptions_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cexceptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSingleItemExceptions_Impl::Skip(this, core::mem::transmute_copy(&cexceptions)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSingleItemExceptions_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSingleItemExceptions_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSingleItemExceptions_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSingleItemExceptions_Impl::Clone(this) { Ok(ok__) => { @@ -1016,7 +752,7 @@ impl IEnumSingleItemExceptions_Vtbl { iid == &::IID } } -pub trait IEnumSyncChangeUnits_Impl: Sized { +pub trait IEnumSyncChangeUnits_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cchanges: u32, ppchangeunit: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cchanges: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1024,35 +760,20 @@ pub trait IEnumSyncChangeUnits_Impl: Sized { } impl windows_core::RuntimeName for IEnumSyncChangeUnits {} impl IEnumSyncChangeUnits_Vtbl { - pub const fn new() -> IEnumSyncChangeUnits_Vtbl - where - Identity: IEnumSyncChangeUnits_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cchanges: u32, ppchangeunit: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSyncChangeUnits_Impl, - { + pub const fn new() -> IEnumSyncChangeUnits_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cchanges: u32, ppchangeunit: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncChangeUnits_Impl::Next(this, core::mem::transmute_copy(&cchanges), core::mem::transmute_copy(&ppchangeunit), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cchanges: u32) -> windows_core::HRESULT - where - Identity: IEnumSyncChangeUnits_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cchanges: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncChangeUnits_Impl::Skip(this, core::mem::transmute_copy(&cchanges)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncChangeUnits_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncChangeUnits_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncChangeUnits_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSyncChangeUnits_Impl::Clone(this) { Ok(ok__) => { @@ -1074,7 +795,7 @@ impl IEnumSyncChangeUnits_Vtbl { iid == &::IID } } -pub trait IEnumSyncChanges_Impl: Sized { +pub trait IEnumSyncChanges_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cchanges: u32, ppchange: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cchanges: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1082,35 +803,20 @@ pub trait IEnumSyncChanges_Impl: Sized { } impl windows_core::RuntimeName for IEnumSyncChanges {} impl IEnumSyncChanges_Vtbl { - pub const fn new() -> IEnumSyncChanges_Vtbl - where - Identity: IEnumSyncChanges_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cchanges: u32, ppchange: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSyncChanges_Impl, - { + pub const fn new() -> IEnumSyncChanges_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cchanges: u32, ppchange: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncChanges_Impl::Next(this, core::mem::transmute_copy(&cchanges), core::mem::transmute_copy(&ppchange), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cchanges: u32) -> windows_core::HRESULT - where - Identity: IEnumSyncChanges_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cchanges: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncChanges_Impl::Skip(this, core::mem::transmute_copy(&cchanges)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncChanges_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncChanges_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncChanges_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSyncChanges_Impl::Clone(this) { Ok(ok__) => { @@ -1133,7 +839,7 @@ impl IEnumSyncChanges_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IEnumSyncProviderConfigUIInfos_Impl: Sized { +pub trait IEnumSyncProviderConfigUIInfos_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cfactories: u32, ppsyncproviderconfiguiinfo: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cfactories: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1143,35 +849,20 @@ pub trait IEnumSyncProviderConfigUIInfos_Impl: Sized { impl windows_core::RuntimeName for IEnumSyncProviderConfigUIInfos {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IEnumSyncProviderConfigUIInfos_Vtbl { - pub const fn new() -> IEnumSyncProviderConfigUIInfos_Vtbl - where - Identity: IEnumSyncProviderConfigUIInfos_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfactories: u32, ppsyncproviderconfiguiinfo: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSyncProviderConfigUIInfos_Impl, - { + pub const fn new() -> IEnumSyncProviderConfigUIInfos_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cfactories: u32, ppsyncproviderconfiguiinfo: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncProviderConfigUIInfos_Impl::Next(this, core::mem::transmute_copy(&cfactories), core::mem::transmute_copy(&ppsyncproviderconfiguiinfo), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cfactories: u32) -> windows_core::HRESULT - where - Identity: IEnumSyncProviderConfigUIInfos_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cfactories: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncProviderConfigUIInfos_Impl::Skip(this, core::mem::transmute_copy(&cfactories)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncProviderConfigUIInfos_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncProviderConfigUIInfos_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncProviderConfigUIInfos_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSyncProviderConfigUIInfos_Impl::Clone(this) { Ok(ok__) => { @@ -1194,7 +885,7 @@ impl IEnumSyncProviderConfigUIInfos_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IEnumSyncProviderInfos_Impl: Sized { +pub trait IEnumSyncProviderInfos_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, cinstances: u32, ppsyncproviderinfo: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, cinstances: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1204,35 +895,20 @@ pub trait IEnumSyncProviderInfos_Impl: Sized { impl windows_core::RuntimeName for IEnumSyncProviderInfos {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IEnumSyncProviderInfos_Vtbl { - pub const fn new() -> IEnumSyncProviderInfos_Vtbl - where - Identity: IEnumSyncProviderInfos_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cinstances: u32, ppsyncproviderinfo: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSyncProviderInfos_Impl, - { + pub const fn new() -> IEnumSyncProviderInfos_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, cinstances: u32, ppsyncproviderinfo: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncProviderInfos_Impl::Next(this, core::mem::transmute_copy(&cinstances), core::mem::transmute_copy(&ppsyncproviderinfo), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cinstances: u32) -> windows_core::HRESULT - where - Identity: IEnumSyncProviderInfos_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, cinstances: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncProviderInfos_Impl::Skip(this, core::mem::transmute_copy(&cinstances)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncProviderInfos_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncProviderInfos_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncProviderInfos_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSyncProviderInfos_Impl::Clone(this) { Ok(ok__) => { @@ -1260,21 +936,12 @@ pub trait IFeedClockVector_Impl: Sized + IClockVector_Impl { } impl windows_core::RuntimeName for IFeedClockVector {} impl IFeedClockVector_Vtbl { - pub const fn new() -> IFeedClockVector_Vtbl - where - Identity: IFeedClockVector_Impl, - { - unsafe extern "system" fn GetUpdateCount(this: *mut core::ffi::c_void, pdwupdatecount: *mut u32) -> windows_core::HRESULT - where - Identity: IFeedClockVector_Impl, - { + pub const fn new() -> IFeedClockVector_Vtbl { + unsafe extern "system" fn GetUpdateCount(this: *mut core::ffi::c_void, pdwupdatecount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedClockVector_Impl::GetUpdateCount(this, core::mem::transmute_copy(&pdwupdatecount)).into() } - unsafe extern "system" fn IsNoConflictsSpecified(this: *mut core::ffi::c_void, pfisnoconflictsspecified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFeedClockVector_Impl, - { + unsafe extern "system" fn IsNoConflictsSpecified(this: *mut core::ffi::c_void, pfisnoconflictsspecified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedClockVector_Impl::IsNoConflictsSpecified(this, core::mem::transmute_copy(&pfisnoconflictsspecified)).into() } @@ -1294,21 +961,12 @@ pub trait IFeedClockVectorElement_Impl: Sized + IClockVectorElement_Impl { } impl windows_core::RuntimeName for IFeedClockVectorElement {} impl IFeedClockVectorElement_Vtbl { - pub const fn new() -> IFeedClockVectorElement_Vtbl - where - Identity: IFeedClockVectorElement_Impl, - { - unsafe extern "system" fn GetSyncTime(this: *mut core::ffi::c_void, psynctime: *mut SYNC_TIME) -> windows_core::HRESULT - where - Identity: IFeedClockVectorElement_Impl, - { + pub const fn new() -> IFeedClockVectorElement_Vtbl { + unsafe extern "system" fn GetSyncTime(this: *mut core::ffi::c_void, psynctime: *mut SYNC_TIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedClockVectorElement_Impl::GetSyncTime(this, core::mem::transmute_copy(&psynctime)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pbflags: *mut u8) -> windows_core::HRESULT - where - Identity: IFeedClockVectorElement_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pbflags: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedClockVectorElement_Impl::GetFlags(this, core::mem::transmute_copy(&pbflags)).into() } @@ -1322,7 +980,7 @@ impl IFeedClockVectorElement_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IFilterKeyMap_Impl: Sized { +pub trait IFilterKeyMap_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self, pdwcount: *mut u32) -> windows_core::Result<()>; fn AddFilter(&self, pisyncfilter: Option<&ISyncFilter>, pdwfilterkey: *mut u32) -> windows_core::Result<()>; fn GetFilter(&self, dwfilterkey: u32) -> windows_core::Result; @@ -1330,28 +988,16 @@ pub trait IFilterKeyMap_Impl: Sized { } impl windows_core::RuntimeName for IFilterKeyMap {} impl IFilterKeyMap_Vtbl { - pub const fn new() -> IFilterKeyMap_Vtbl - where - Identity: IFilterKeyMap_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: IFilterKeyMap_Impl, - { + pub const fn new() -> IFilterKeyMap_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterKeyMap_Impl::GetCount(this, core::mem::transmute_copy(&pdwcount)).into() } - unsafe extern "system" fn AddFilter(this: *mut core::ffi::c_void, pisyncfilter: *mut core::ffi::c_void, pdwfilterkey: *mut u32) -> windows_core::HRESULT - where - Identity: IFilterKeyMap_Impl, - { + unsafe extern "system" fn AddFilter(this: *mut core::ffi::c_void, pisyncfilter: *mut core::ffi::c_void, pdwfilterkey: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterKeyMap_Impl::AddFilter(this, windows_core::from_raw_borrowed(&pisyncfilter), core::mem::transmute_copy(&pdwfilterkey)).into() } - unsafe extern "system" fn GetFilter(this: *mut core::ffi::c_void, dwfilterkey: u32, ppisyncfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterKeyMap_Impl, - { + unsafe extern "system" fn GetFilter(this: *mut core::ffi::c_void, dwfilterkey: u32, ppisyncfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFilterKeyMap_Impl::GetFilter(this, core::mem::transmute_copy(&dwfilterkey)) { Ok(ok__) => { @@ -1361,10 +1007,7 @@ impl IFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pbfilterkeymap: *mut u8, pcbfilterkeymap: *mut u32) -> windows_core::HRESULT - where - Identity: IFilterKeyMap_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pbfilterkeymap: *mut u8, pcbfilterkeymap: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterKeyMap_Impl::Serialize(this, core::mem::transmute_copy(&pbfilterkeymap), core::mem::transmute_copy(&pcbfilterkeymap)).into() } @@ -1380,19 +1023,13 @@ impl IFilterKeyMap_Vtbl { iid == &::IID } } -pub trait IFilterRequestCallback_Impl: Sized { +pub trait IFilterRequestCallback_Impl: Sized + windows_core::IUnknownImpl { fn RequestFilter(&self, pfilter: Option<&windows_core::IUnknown>, filteringtype: FILTERING_TYPE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFilterRequestCallback {} impl IFilterRequestCallback_Vtbl { - pub const fn new() -> IFilterRequestCallback_Vtbl - where - Identity: IFilterRequestCallback_Impl, - { - unsafe extern "system" fn RequestFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, filteringtype: FILTERING_TYPE) -> windows_core::HRESULT - where - Identity: IFilterRequestCallback_Impl, - { + pub const fn new() -> IFilterRequestCallback_Vtbl { + unsafe extern "system" fn RequestFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, filteringtype: FILTERING_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterRequestCallback_Impl::RequestFilter(this, windows_core::from_raw_borrowed(&pfilter), core::mem::transmute_copy(&filteringtype)).into() } @@ -1402,27 +1039,18 @@ impl IFilterRequestCallback_Vtbl { iid == &::IID } } -pub trait IFilterTrackingProvider_Impl: Sized { +pub trait IFilterTrackingProvider_Impl: Sized + windows_core::IUnknownImpl { fn SpecifyTrackedFilters(&self, pcallback: Option<&IFilterTrackingRequestCallback>) -> windows_core::Result<()>; fn AddTrackedFilter(&self, pfilter: Option<&ISyncFilter>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFilterTrackingProvider {} impl IFilterTrackingProvider_Vtbl { - pub const fn new() -> IFilterTrackingProvider_Vtbl - where - Identity: IFilterTrackingProvider_Impl, - { - unsafe extern "system" fn SpecifyTrackedFilters(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterTrackingProvider_Impl, - { + pub const fn new() -> IFilterTrackingProvider_Vtbl { + unsafe extern "system" fn SpecifyTrackedFilters(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterTrackingProvider_Impl::SpecifyTrackedFilters(this, windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn AddTrackedFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterTrackingProvider_Impl, - { + unsafe extern "system" fn AddTrackedFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterTrackingProvider_Impl::AddTrackedFilter(this, windows_core::from_raw_borrowed(&pfilter)).into() } @@ -1436,19 +1064,13 @@ impl IFilterTrackingProvider_Vtbl { iid == &::IID } } -pub trait IFilterTrackingRequestCallback_Impl: Sized { +pub trait IFilterTrackingRequestCallback_Impl: Sized + windows_core::IUnknownImpl { fn RequestTrackedFilter(&self, pfilter: Option<&ISyncFilter>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFilterTrackingRequestCallback {} impl IFilterTrackingRequestCallback_Vtbl { - pub const fn new() -> IFilterTrackingRequestCallback_Vtbl - where - Identity: IFilterTrackingRequestCallback_Impl, - { - unsafe extern "system" fn RequestTrackedFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterTrackingRequestCallback_Impl, - { + pub const fn new() -> IFilterTrackingRequestCallback_Vtbl { + unsafe extern "system" fn RequestTrackedFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterTrackingRequestCallback_Impl::RequestTrackedFilter(this, windows_core::from_raw_borrowed(&pfilter)).into() } @@ -1458,27 +1080,18 @@ impl IFilterTrackingRequestCallback_Vtbl { iid == &::IID } } -pub trait IFilterTrackingSyncChangeBuilder_Impl: Sized { +pub trait IFilterTrackingSyncChangeBuilder_Impl: Sized + windows_core::IUnknownImpl { fn AddFilterChange(&self, dwfilterkey: u32, pfilterchange: *const SYNC_FILTER_CHANGE) -> windows_core::Result<()>; fn SetAllChangeUnitsPresentFlag(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFilterTrackingSyncChangeBuilder {} impl IFilterTrackingSyncChangeBuilder_Vtbl { - pub const fn new() -> IFilterTrackingSyncChangeBuilder_Vtbl - where - Identity: IFilterTrackingSyncChangeBuilder_Impl, - { - unsafe extern "system" fn AddFilterChange(this: *mut core::ffi::c_void, dwfilterkey: u32, pfilterchange: *const SYNC_FILTER_CHANGE) -> windows_core::HRESULT - where - Identity: IFilterTrackingSyncChangeBuilder_Impl, - { + pub const fn new() -> IFilterTrackingSyncChangeBuilder_Vtbl { + unsafe extern "system" fn AddFilterChange(this: *mut core::ffi::c_void, dwfilterkey: u32, pfilterchange: *const SYNC_FILTER_CHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterTrackingSyncChangeBuilder_Impl::AddFilterChange(this, core::mem::transmute_copy(&dwfilterkey), core::mem::transmute_copy(&pfilterchange)).into() } - unsafe extern "system" fn SetAllChangeUnitsPresentFlag(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFilterTrackingSyncChangeBuilder_Impl, - { + unsafe extern "system" fn SetAllChangeUnitsPresentFlag(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterTrackingSyncChangeBuilder_Impl::SetAllChangeUnitsPresentFlag(this).into() } @@ -1497,14 +1110,8 @@ pub trait IForgottenKnowledge_Impl: Sized + ISyncKnowledge_Impl { } impl windows_core::RuntimeName for IForgottenKnowledge {} impl IForgottenKnowledge_Vtbl { - pub const fn new() -> IForgottenKnowledge_Vtbl - where - Identity: IForgottenKnowledge_Impl, - { - unsafe extern "system" fn ForgetToVersion(this: *mut core::ffi::c_void, pknowledge: *mut core::ffi::c_void, pversion: *const SYNC_VERSION) -> windows_core::HRESULT - where - Identity: IForgottenKnowledge_Impl, - { + pub const fn new() -> IForgottenKnowledge_Vtbl { + unsafe extern "system" fn ForgetToVersion(this: *mut core::ffi::c_void, pknowledge: *mut core::ffi::c_void, pversion: *const SYNC_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IForgottenKnowledge_Impl::ForgetToVersion(this, windows_core::from_raw_borrowed(&pknowledge), core::mem::transmute_copy(&pversion)).into() } @@ -1525,56 +1132,32 @@ pub trait IKnowledgeSyncProvider_Impl: Sized + ISyncProvider_Impl { } impl windows_core::RuntimeName for IKnowledgeSyncProvider {} impl IKnowledgeSyncProvider_Vtbl { - pub const fn new() -> IKnowledgeSyncProvider_Vtbl - where - Identity: IKnowledgeSyncProvider_Impl, - { - unsafe extern "system" fn BeginSession(this: *mut core::ffi::c_void, role: SYNC_PROVIDER_ROLE, psessionstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKnowledgeSyncProvider_Impl, - { + pub const fn new() -> IKnowledgeSyncProvider_Vtbl { + unsafe extern "system" fn BeginSession(this: *mut core::ffi::c_void, role: SYNC_PROVIDER_ROLE, psessionstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnowledgeSyncProvider_Impl::BeginSession(this, core::mem::transmute_copy(&role), windows_core::from_raw_borrowed(&psessionstate)).into() } - unsafe extern "system" fn GetSyncBatchParameters(this: *mut core::ffi::c_void, ppsyncknowledge: *mut *mut core::ffi::c_void, pdwrequestedbatchsize: *mut u32) -> windows_core::HRESULT - where - Identity: IKnowledgeSyncProvider_Impl, - { + unsafe extern "system" fn GetSyncBatchParameters(this: *mut core::ffi::c_void, ppsyncknowledge: *mut *mut core::ffi::c_void, pdwrequestedbatchsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnowledgeSyncProvider_Impl::GetSyncBatchParameters(this, core::mem::transmute_copy(&ppsyncknowledge), core::mem::transmute_copy(&pdwrequestedbatchsize)).into() } - unsafe extern "system" fn GetChangeBatch(this: *mut core::ffi::c_void, dwbatchsize: u32, psyncknowledge: *mut core::ffi::c_void, ppsyncchangebatch: *mut *mut core::ffi::c_void, ppunkdataretriever: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKnowledgeSyncProvider_Impl, - { + unsafe extern "system" fn GetChangeBatch(this: *mut core::ffi::c_void, dwbatchsize: u32, psyncknowledge: *mut core::ffi::c_void, ppsyncchangebatch: *mut *mut core::ffi::c_void, ppunkdataretriever: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnowledgeSyncProvider_Impl::GetChangeBatch(this, core::mem::transmute_copy(&dwbatchsize), windows_core::from_raw_borrowed(&psyncknowledge), core::mem::transmute_copy(&ppsyncchangebatch), core::mem::transmute_copy(&ppunkdataretriever)).into() } - unsafe extern "system" fn GetFullEnumerationChangeBatch(this: *mut core::ffi::c_void, dwbatchsize: u32, pblowerenumerationbound: *const u8, psyncknowledge: *mut core::ffi::c_void, ppsyncchangebatch: *mut *mut core::ffi::c_void, ppunkdataretriever: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKnowledgeSyncProvider_Impl, - { + unsafe extern "system" fn GetFullEnumerationChangeBatch(this: *mut core::ffi::c_void, dwbatchsize: u32, pblowerenumerationbound: *const u8, psyncknowledge: *mut core::ffi::c_void, ppsyncchangebatch: *mut *mut core::ffi::c_void, ppunkdataretriever: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnowledgeSyncProvider_Impl::GetFullEnumerationChangeBatch(this, core::mem::transmute_copy(&dwbatchsize), core::mem::transmute_copy(&pblowerenumerationbound), windows_core::from_raw_borrowed(&psyncknowledge), core::mem::transmute_copy(&ppsyncchangebatch), core::mem::transmute_copy(&ppunkdataretriever)).into() } - unsafe extern "system" fn ProcessChangeBatch(this: *mut core::ffi::c_void, resolutionpolicy: CONFLICT_RESOLUTION_POLICY, psourcechangebatch: *mut core::ffi::c_void, punkdataretriever: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, psyncsessionstatistics: *mut SYNC_SESSION_STATISTICS) -> windows_core::HRESULT - where - Identity: IKnowledgeSyncProvider_Impl, - { + unsafe extern "system" fn ProcessChangeBatch(this: *mut core::ffi::c_void, resolutionpolicy: CONFLICT_RESOLUTION_POLICY, psourcechangebatch: *mut core::ffi::c_void, punkdataretriever: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, psyncsessionstatistics: *mut SYNC_SESSION_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnowledgeSyncProvider_Impl::ProcessChangeBatch(this, core::mem::transmute_copy(&resolutionpolicy), windows_core::from_raw_borrowed(&psourcechangebatch), windows_core::from_raw_borrowed(&punkdataretriever), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&psyncsessionstatistics)).into() } - unsafe extern "system" fn ProcessFullEnumerationChangeBatch(this: *mut core::ffi::c_void, resolutionpolicy: CONFLICT_RESOLUTION_POLICY, psourcechangebatch: *mut core::ffi::c_void, punkdataretriever: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, psyncsessionstatistics: *mut SYNC_SESSION_STATISTICS) -> windows_core::HRESULT - where - Identity: IKnowledgeSyncProvider_Impl, - { + unsafe extern "system" fn ProcessFullEnumerationChangeBatch(this: *mut core::ffi::c_void, resolutionpolicy: CONFLICT_RESOLUTION_POLICY, psourcechangebatch: *mut core::ffi::c_void, punkdataretriever: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, psyncsessionstatistics: *mut SYNC_SESSION_STATISTICS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnowledgeSyncProvider_Impl::ProcessFullEnumerationChangeBatch(this, core::mem::transmute_copy(&resolutionpolicy), windows_core::from_raw_borrowed(&psourcechangebatch), windows_core::from_raw_borrowed(&punkdataretriever), windows_core::from_raw_borrowed(&pcallback), core::mem::transmute_copy(&psyncsessionstatistics)).into() } - unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, psessionstate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKnowledgeSyncProvider_Impl, - { + unsafe extern "system" fn EndSession(this: *mut core::ffi::c_void, psessionstate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnowledgeSyncProvider_Impl::EndSession(this, windows_core::from_raw_borrowed(&psessionstate)).into() } @@ -1593,21 +1176,15 @@ impl IKnowledgeSyncProvider_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ILoadChangeContext_Impl: Sized { +pub trait ILoadChangeContext_Impl: Sized + windows_core::IUnknownImpl { fn GetSyncChange(&self) -> windows_core::Result; fn SetRecoverableErrorOnChange(&self, hrerror: windows_core::HRESULT, perrordata: Option<&IRecoverableErrorData>) -> windows_core::Result<()>; fn SetRecoverableErrorOnChangeUnit(&self, hrerror: windows_core::HRESULT, pchangeunit: Option<&ISyncChangeUnit>, perrordata: Option<&IRecoverableErrorData>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILoadChangeContext {} impl ILoadChangeContext_Vtbl { - pub const fn new() -> ILoadChangeContext_Vtbl - where - Identity: ILoadChangeContext_Impl, - { - unsafe extern "system" fn GetSyncChange(this: *mut core::ffi::c_void, ppsyncchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoadChangeContext_Impl, - { + pub const fn new() -> ILoadChangeContext_Vtbl { + unsafe extern "system" fn GetSyncChange(this: *mut core::ffi::c_void, ppsyncchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILoadChangeContext_Impl::GetSyncChange(this) { Ok(ok__) => { @@ -1617,17 +1194,11 @@ impl ILoadChangeContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRecoverableErrorOnChange(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, perrordata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoadChangeContext_Impl, - { + unsafe extern "system" fn SetRecoverableErrorOnChange(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, perrordata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoadChangeContext_Impl::SetRecoverableErrorOnChange(this, core::mem::transmute_copy(&hrerror), windows_core::from_raw_borrowed(&perrordata)).into() } - unsafe extern "system" fn SetRecoverableErrorOnChangeUnit(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, pchangeunit: *mut core::ffi::c_void, perrordata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILoadChangeContext_Impl, - { + unsafe extern "system" fn SetRecoverableErrorOnChangeUnit(this: *mut core::ffi::c_void, hrerror: windows_core::HRESULT, pchangeunit: *mut core::ffi::c_void, perrordata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoadChangeContext_Impl::SetRecoverableErrorOnChangeUnit(this, core::mem::transmute_copy(&hrerror), windows_core::from_raw_borrowed(&pchangeunit), windows_core::from_raw_borrowed(&perrordata)).into() } @@ -1642,19 +1213,13 @@ impl ILoadChangeContext_Vtbl { iid == &::IID } } -pub trait IProviderConverter_Impl: Sized { +pub trait IProviderConverter_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pisyncprovider: Option<&ISyncProvider>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IProviderConverter {} impl IProviderConverter_Vtbl { - pub const fn new() -> IProviderConverter_Vtbl - where - Identity: IProviderConverter_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pisyncprovider: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProviderConverter_Impl, - { + pub const fn new() -> IProviderConverter_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pisyncprovider: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProviderConverter_Impl::Initialize(this, windows_core::from_raw_borrowed(&pisyncprovider)).into() } @@ -1664,35 +1229,23 @@ impl IProviderConverter_Vtbl { iid == &::IID } } -pub trait IRangeException_Impl: Sized { +pub trait IRangeException_Impl: Sized + windows_core::IUnknownImpl { fn GetClosedRangeStart(&self, pbclosedrangestart: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; fn GetClosedRangeEnd(&self, pbclosedrangeend: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; fn GetClockVector(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRangeException {} impl IRangeException_Vtbl { - pub const fn new() -> IRangeException_Vtbl - where - Identity: IRangeException_Impl, - { - unsafe extern "system" fn GetClosedRangeStart(this: *mut core::ffi::c_void, pbclosedrangestart: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: IRangeException_Impl, - { + pub const fn new() -> IRangeException_Vtbl { + unsafe extern "system" fn GetClosedRangeStart(this: *mut core::ffi::c_void, pbclosedrangestart: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRangeException_Impl::GetClosedRangeStart(this, core::mem::transmute_copy(&pbclosedrangestart), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn GetClosedRangeEnd(this: *mut core::ffi::c_void, pbclosedrangeend: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: IRangeException_Impl, - { + unsafe extern "system" fn GetClosedRangeEnd(this: *mut core::ffi::c_void, pbclosedrangeend: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRangeException_Impl::GetClosedRangeEnd(this, core::mem::transmute_copy(&pbclosedrangeend), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn GetClockVector(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRangeException_Impl, - { + unsafe extern "system" fn GetClockVector(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRangeException_Impl::GetClockVector(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } @@ -1707,7 +1260,7 @@ impl IRangeException_Vtbl { iid == &::IID } } -pub trait IRecoverableError_Impl: Sized { +pub trait IRecoverableError_Impl: Sized + windows_core::IUnknownImpl { fn GetStage(&self, pstage: *mut SYNC_PROGRESS_STAGE) -> windows_core::Result<()>; fn GetProvider(&self, pproviderrole: *mut SYNC_PROVIDER_ROLE) -> windows_core::Result<()>; fn GetChangeWithRecoverableError(&self) -> windows_core::Result; @@ -1716,28 +1269,16 @@ pub trait IRecoverableError_Impl: Sized { } impl windows_core::RuntimeName for IRecoverableError {} impl IRecoverableError_Vtbl { - pub const fn new() -> IRecoverableError_Vtbl - where - Identity: IRecoverableError_Impl, - { - unsafe extern "system" fn GetStage(this: *mut core::ffi::c_void, pstage: *mut SYNC_PROGRESS_STAGE) -> windows_core::HRESULT - where - Identity: IRecoverableError_Impl, - { + pub const fn new() -> IRecoverableError_Vtbl { + unsafe extern "system" fn GetStage(this: *mut core::ffi::c_void, pstage: *mut SYNC_PROGRESS_STAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecoverableError_Impl::GetStage(this, core::mem::transmute_copy(&pstage)).into() } - unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, pproviderrole: *mut SYNC_PROVIDER_ROLE) -> windows_core::HRESULT - where - Identity: IRecoverableError_Impl, - { + unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, pproviderrole: *mut SYNC_PROVIDER_ROLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecoverableError_Impl::GetProvider(this, core::mem::transmute_copy(&pproviderrole)).into() } - unsafe extern "system" fn GetChangeWithRecoverableError(this: *mut core::ffi::c_void, ppchangewithrecoverableerror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRecoverableError_Impl, - { + unsafe extern "system" fn GetChangeWithRecoverableError(this: *mut core::ffi::c_void, ppchangewithrecoverableerror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRecoverableError_Impl::GetChangeWithRecoverableError(this) { Ok(ok__) => { @@ -1747,17 +1288,11 @@ impl IRecoverableError_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRecoverableErrorDataForChange(this: *mut core::ffi::c_void, phrerror: *mut windows_core::HRESULT, pperrordata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRecoverableError_Impl, - { + unsafe extern "system" fn GetRecoverableErrorDataForChange(this: *mut core::ffi::c_void, phrerror: *mut windows_core::HRESULT, pperrordata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecoverableError_Impl::GetRecoverableErrorDataForChange(this, core::mem::transmute_copy(&phrerror), core::mem::transmute_copy(&pperrordata)).into() } - unsafe extern "system" fn GetRecoverableErrorDataForChangeUnit(this: *mut core::ffi::c_void, pchangeunit: *mut core::ffi::c_void, phrerror: *mut windows_core::HRESULT, pperrordata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRecoverableError_Impl, - { + unsafe extern "system" fn GetRecoverableErrorDataForChangeUnit(this: *mut core::ffi::c_void, pchangeunit: *mut core::ffi::c_void, phrerror: *mut windows_core::HRESULT, pperrordata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecoverableError_Impl::GetRecoverableErrorDataForChangeUnit(this, windows_core::from_raw_borrowed(&pchangeunit), core::mem::transmute_copy(&phrerror), core::mem::transmute_copy(&pperrordata)).into() } @@ -1774,35 +1309,23 @@ impl IRecoverableError_Vtbl { iid == &::IID } } -pub trait IRecoverableErrorData_Impl: Sized { +pub trait IRecoverableErrorData_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pcszitemdisplayname: &windows_core::PCWSTR, pcszerrordescription: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetItemDisplayName(&self, pszitemdisplayname: &windows_core::PCWSTR, pcchitemdisplayname: *mut u32) -> windows_core::Result<()>; fn GetErrorDescription(&self, pszerrordescription: &windows_core::PCWSTR, pccherrordescription: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRecoverableErrorData {} impl IRecoverableErrorData_Vtbl { - pub const fn new() -> IRecoverableErrorData_Vtbl - where - Identity: IRecoverableErrorData_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pcszitemdisplayname: windows_core::PCWSTR, pcszerrordescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IRecoverableErrorData_Impl, - { + pub const fn new() -> IRecoverableErrorData_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pcszitemdisplayname: windows_core::PCWSTR, pcszerrordescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecoverableErrorData_Impl::Initialize(this, core::mem::transmute(&pcszitemdisplayname), core::mem::transmute(&pcszerrordescription)).into() } - unsafe extern "system" fn GetItemDisplayName(this: *mut core::ffi::c_void, pszitemdisplayname: windows_core::PCWSTR, pcchitemdisplayname: *mut u32) -> windows_core::HRESULT - where - Identity: IRecoverableErrorData_Impl, - { + unsafe extern "system" fn GetItemDisplayName(this: *mut core::ffi::c_void, pszitemdisplayname: windows_core::PCWSTR, pcchitemdisplayname: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecoverableErrorData_Impl::GetItemDisplayName(this, core::mem::transmute(&pszitemdisplayname), core::mem::transmute_copy(&pcchitemdisplayname)).into() } - unsafe extern "system" fn GetErrorDescription(this: *mut core::ffi::c_void, pszerrordescription: windows_core::PCWSTR, pccherrordescription: *mut u32) -> windows_core::HRESULT - where - Identity: IRecoverableErrorData_Impl, - { + unsafe extern "system" fn GetErrorDescription(this: *mut core::ffi::c_void, pszerrordescription: windows_core::PCWSTR, pccherrordescription: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecoverableErrorData_Impl::GetErrorDescription(this, core::mem::transmute(&pszerrordescription), core::mem::transmute_copy(&pccherrordescription)).into() } @@ -1818,7 +1341,7 @@ impl IRecoverableErrorData_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IRegisteredSyncProvider_Impl: Sized { +pub trait IRegisteredSyncProvider_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, pguidinstanceid: *const windows_core::GUID, pguidcontenttype: *const windows_core::GUID, pcontextpropertystore: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>) -> windows_core::Result<()>; fn GetInstanceId(&self) -> windows_core::Result; fn Reset(&self) -> windows_core::Result<()>; @@ -1827,21 +1350,12 @@ pub trait IRegisteredSyncProvider_Impl: Sized { impl windows_core::RuntimeName for IRegisteredSyncProvider {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IRegisteredSyncProvider_Vtbl { - pub const fn new() -> IRegisteredSyncProvider_Vtbl - where - Identity: IRegisteredSyncProvider_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, pguidcontenttype: *const windows_core::GUID, pcontextpropertystore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisteredSyncProvider_Impl, - { + pub const fn new() -> IRegisteredSyncProvider_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, pguidcontenttype: *const windows_core::GUID, pcontextpropertystore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisteredSyncProvider_Impl::Init(this, core::mem::transmute_copy(&pguidinstanceid), core::mem::transmute_copy(&pguidcontenttype), windows_core::from_raw_borrowed(&pcontextpropertystore)).into() } - unsafe extern "system" fn GetInstanceId(this: *mut core::ffi::c_void, pguidinstanceid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRegisteredSyncProvider_Impl, - { + unsafe extern "system" fn GetInstanceId(this: *mut core::ffi::c_void, pguidinstanceid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegisteredSyncProvider_Impl::GetInstanceId(this) { Ok(ok__) => { @@ -1851,10 +1365,7 @@ impl IRegisteredSyncProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRegisteredSyncProvider_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegisteredSyncProvider_Impl::Reset(this).into() } @@ -1869,35 +1380,23 @@ impl IRegisteredSyncProvider_Vtbl { iid == &::IID } } -pub trait IReplicaKeyMap_Impl: Sized { +pub trait IReplicaKeyMap_Impl: Sized + windows_core::IUnknownImpl { fn LookupReplicaKey(&self, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> windows_core::Result<()>; fn LookupReplicaId(&self, dwreplicakey: u32, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; fn Serialize(&self, pbreplicakeymap: *mut u8, pcbreplicakeymap: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IReplicaKeyMap {} impl IReplicaKeyMap_Vtbl { - pub const fn new() -> IReplicaKeyMap_Vtbl - where - Identity: IReplicaKeyMap_Impl, - { - unsafe extern "system" fn LookupReplicaKey(this: *mut core::ffi::c_void, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> windows_core::HRESULT - where - Identity: IReplicaKeyMap_Impl, - { + pub const fn new() -> IReplicaKeyMap_Vtbl { + unsafe extern "system" fn LookupReplicaKey(this: *mut core::ffi::c_void, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReplicaKeyMap_Impl::LookupReplicaKey(this, core::mem::transmute_copy(&pbreplicaid), core::mem::transmute_copy(&pdwreplicakey)).into() } - unsafe extern "system" fn LookupReplicaId(this: *mut core::ffi::c_void, dwreplicakey: u32, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: IReplicaKeyMap_Impl, - { + unsafe extern "system" fn LookupReplicaId(this: *mut core::ffi::c_void, dwreplicakey: u32, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReplicaKeyMap_Impl::LookupReplicaId(this, core::mem::transmute_copy(&dwreplicakey), core::mem::transmute_copy(&pbreplicaid), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pbreplicakeymap: *mut u8, pcbreplicakeymap: *mut u32) -> windows_core::HRESULT - where - Identity: IReplicaKeyMap_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pbreplicakeymap: *mut u8, pcbreplicakeymap: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReplicaKeyMap_Impl::Serialize(this, core::mem::transmute_copy(&pbreplicakeymap), core::mem::transmute_copy(&pcbreplicakeymap)).into() } @@ -1912,19 +1411,13 @@ impl IReplicaKeyMap_Vtbl { iid == &::IID } } -pub trait IRequestFilteredSync_Impl: Sized { +pub trait IRequestFilteredSync_Impl: Sized + windows_core::IUnknownImpl { fn SpecifyFilter(&self, pcallback: Option<&IFilterRequestCallback>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRequestFilteredSync {} impl IRequestFilteredSync_Vtbl { - pub const fn new() -> IRequestFilteredSync_Vtbl - where - Identity: IRequestFilteredSync_Impl, - { - unsafe extern "system" fn SpecifyFilter(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRequestFilteredSync_Impl, - { + pub const fn new() -> IRequestFilteredSync_Vtbl { + unsafe extern "system" fn SpecifyFilter(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRequestFilteredSync_Impl::SpecifyFilter(this, windows_core::from_raw_borrowed(&pcallback)).into() } @@ -1934,27 +1427,18 @@ impl IRequestFilteredSync_Vtbl { iid == &::IID } } -pub trait ISingleItemException_Impl: Sized { +pub trait ISingleItemException_Impl: Sized + windows_core::IUnknownImpl { fn GetItemId(&self, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; fn GetClockVector(&self, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISingleItemException {} impl ISingleItemException_Vtbl { - pub const fn new() -> ISingleItemException_Vtbl - where - Identity: ISingleItemException_Impl, - { - unsafe extern "system" fn GetItemId(this: *mut core::ffi::c_void, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISingleItemException_Impl, - { + pub const fn new() -> ISingleItemException_Vtbl { + unsafe extern "system" fn GetItemId(this: *mut core::ffi::c_void, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISingleItemException_Impl::GetItemId(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn GetClockVector(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISingleItemException_Impl, - { + unsafe extern "system" fn GetClockVector(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISingleItemException_Impl::GetClockVector(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } @@ -1968,19 +1452,13 @@ impl ISingleItemException_Vtbl { iid == &::IID } } -pub trait ISupportFilteredSync_Impl: Sized { +pub trait ISupportFilteredSync_Impl: Sized + windows_core::IUnknownImpl { fn AddFilter(&self, pfilter: Option<&windows_core::IUnknown>, filteringtype: FILTERING_TYPE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISupportFilteredSync {} impl ISupportFilteredSync_Vtbl { - pub const fn new() -> ISupportFilteredSync_Vtbl - where - Identity: ISupportFilteredSync_Impl, - { - unsafe extern "system" fn AddFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, filteringtype: FILTERING_TYPE) -> windows_core::HRESULT - where - Identity: ISupportFilteredSync_Impl, - { + pub const fn new() -> ISupportFilteredSync_Vtbl { + unsafe extern "system" fn AddFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void, filteringtype: FILTERING_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISupportFilteredSync_Impl::AddFilter(this, windows_core::from_raw_borrowed(&pfilter), core::mem::transmute_copy(&filteringtype)).into() } @@ -1990,27 +1468,18 @@ impl ISupportFilteredSync_Vtbl { iid == &::IID } } -pub trait ISupportLastWriteTime_Impl: Sized { +pub trait ISupportLastWriteTime_Impl: Sized + windows_core::IUnknownImpl { fn GetItemChangeTime(&self, pbitemid: *const u8, pulltimestamp: *mut u64) -> windows_core::Result<()>; fn GetChangeUnitChangeTime(&self, pbitemid: *const u8, pbchangeunitid: *const u8, pulltimestamp: *mut u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISupportLastWriteTime {} impl ISupportLastWriteTime_Vtbl { - pub const fn new() -> ISupportLastWriteTime_Vtbl - where - Identity: ISupportLastWriteTime_Impl, - { - unsafe extern "system" fn GetItemChangeTime(this: *mut core::ffi::c_void, pbitemid: *const u8, pulltimestamp: *mut u64) -> windows_core::HRESULT - where - Identity: ISupportLastWriteTime_Impl, - { + pub const fn new() -> ISupportLastWriteTime_Vtbl { + unsafe extern "system" fn GetItemChangeTime(this: *mut core::ffi::c_void, pbitemid: *const u8, pulltimestamp: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISupportLastWriteTime_Impl::GetItemChangeTime(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pulltimestamp)).into() } - unsafe extern "system" fn GetChangeUnitChangeTime(this: *mut core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8, pulltimestamp: *mut u64) -> windows_core::HRESULT - where - Identity: ISupportLastWriteTime_Impl, - { + unsafe extern "system" fn GetChangeUnitChangeTime(this: *mut core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8, pulltimestamp: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISupportLastWriteTime_Impl::GetChangeUnitChangeTime(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pbchangeunitid), core::mem::transmute_copy(&pulltimestamp)).into() } @@ -2024,7 +1493,7 @@ impl ISupportLastWriteTime_Vtbl { iid == &::IID } } -pub trait ISyncCallback_Impl: Sized { +pub trait ISyncCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnProgress(&self, provider: SYNC_PROVIDER_ROLE, syncstage: SYNC_PROGRESS_STAGE, dwcompletedwork: u32, dwtotalwork: u32) -> windows_core::Result<()>; fn OnChange(&self, psyncchange: Option<&ISyncChange>) -> windows_core::Result<()>; fn OnConflict(&self, pconflict: Option<&IChangeConflict>) -> windows_core::Result<()>; @@ -2033,42 +1502,24 @@ pub trait ISyncCallback_Impl: Sized { } impl windows_core::RuntimeName for ISyncCallback {} impl ISyncCallback_Vtbl { - pub const fn new() -> ISyncCallback_Vtbl - where - Identity: ISyncCallback_Impl, - { - unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, provider: SYNC_PROVIDER_ROLE, syncstage: SYNC_PROGRESS_STAGE, dwcompletedwork: u32, dwtotalwork: u32) -> windows_core::HRESULT - where - Identity: ISyncCallback_Impl, - { + pub const fn new() -> ISyncCallback_Vtbl { + unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, provider: SYNC_PROVIDER_ROLE, syncstage: SYNC_PROGRESS_STAGE, dwcompletedwork: u32, dwtotalwork: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncCallback_Impl::OnProgress(this, core::mem::transmute_copy(&provider), core::mem::transmute_copy(&syncstage), core::mem::transmute_copy(&dwcompletedwork), core::mem::transmute_copy(&dwtotalwork)).into() } - unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, psyncchange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncCallback_Impl, - { + unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, psyncchange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncCallback_Impl::OnChange(this, windows_core::from_raw_borrowed(&psyncchange)).into() } - unsafe extern "system" fn OnConflict(this: *mut core::ffi::c_void, pconflict: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncCallback_Impl, - { + unsafe extern "system" fn OnConflict(this: *mut core::ffi::c_void, pconflict: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncCallback_Impl::OnConflict(this, windows_core::from_raw_borrowed(&pconflict)).into() } - unsafe extern "system" fn OnFullEnumerationNeeded(this: *mut core::ffi::c_void, pfullenumerationaction: *mut SYNC_FULL_ENUMERATION_ACTION) -> windows_core::HRESULT - where - Identity: ISyncCallback_Impl, - { + unsafe extern "system" fn OnFullEnumerationNeeded(this: *mut core::ffi::c_void, pfullenumerationaction: *mut SYNC_FULL_ENUMERATION_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncCallback_Impl::OnFullEnumerationNeeded(this, core::mem::transmute_copy(&pfullenumerationaction)).into() } - unsafe extern "system" fn OnRecoverableError(this: *mut core::ffi::c_void, precoverableerror: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncCallback_Impl, - { + unsafe extern "system" fn OnRecoverableError(this: *mut core::ffi::c_void, precoverableerror: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncCallback_Impl::OnRecoverableError(this, windows_core::from_raw_borrowed(&precoverableerror)).into() } @@ -2091,21 +1542,12 @@ pub trait ISyncCallback2_Impl: Sized + ISyncCallback_Impl { } impl windows_core::RuntimeName for ISyncCallback2 {} impl ISyncCallback2_Vtbl { - pub const fn new() -> ISyncCallback2_Vtbl - where - Identity: ISyncCallback2_Impl, - { - unsafe extern "system" fn OnChangeApplied(this: *mut core::ffi::c_void, dwchangesapplied: u32, dwchangesfailed: u32) -> windows_core::HRESULT - where - Identity: ISyncCallback2_Impl, - { + pub const fn new() -> ISyncCallback2_Vtbl { + unsafe extern "system" fn OnChangeApplied(this: *mut core::ffi::c_void, dwchangesapplied: u32, dwchangesfailed: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncCallback2_Impl::OnChangeApplied(this, core::mem::transmute_copy(&dwchangesapplied), core::mem::transmute_copy(&dwchangesfailed)).into() } - unsafe extern "system" fn OnChangeFailed(this: *mut core::ffi::c_void, dwchangesapplied: u32, dwchangesfailed: u32) -> windows_core::HRESULT - where - Identity: ISyncCallback2_Impl, - { + unsafe extern "system" fn OnChangeFailed(this: *mut core::ffi::c_void, dwchangesapplied: u32, dwchangesfailed: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncCallback2_Impl::OnChangeFailed(this, core::mem::transmute_copy(&dwchangesapplied), core::mem::transmute_copy(&dwchangesfailed)).into() } @@ -2119,7 +1561,7 @@ impl ISyncCallback2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISyncChange_Impl: Sized { +pub trait ISyncChange_Impl: Sized + windows_core::IUnknownImpl { fn GetOwnerReplicaId(&self, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; fn GetRootItemId(&self, pbrootitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; fn GetChangeVersion(&self, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::Result<()>; @@ -2133,56 +1575,32 @@ pub trait ISyncChange_Impl: Sized { } impl windows_core::RuntimeName for ISyncChange {} impl ISyncChange_Vtbl { - pub const fn new() -> ISyncChange_Vtbl - where - Identity: ISyncChange_Impl, - { - unsafe extern "system" fn GetOwnerReplicaId(this: *mut core::ffi::c_void, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChange_Impl, - { + pub const fn new() -> ISyncChange_Vtbl { + unsafe extern "system" fn GetOwnerReplicaId(this: *mut core::ffi::c_void, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChange_Impl::GetOwnerReplicaId(this, core::mem::transmute_copy(&pbreplicaid), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn GetRootItemId(this: *mut core::ffi::c_void, pbrootitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChange_Impl, - { + unsafe extern "system" fn GetRootItemId(this: *mut core::ffi::c_void, pbrootitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChange_Impl::GetRootItemId(this, core::mem::transmute_copy(&pbrootitemid), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn GetChangeVersion(this: *mut core::ffi::c_void, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::HRESULT - where - Identity: ISyncChange_Impl, - { + unsafe extern "system" fn GetChangeVersion(this: *mut core::ffi::c_void, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChange_Impl::GetChangeVersion(this, core::mem::transmute_copy(&pbcurrentreplicaid), core::mem::transmute_copy(&pversion)).into() } - unsafe extern "system" fn GetCreationVersion(this: *mut core::ffi::c_void, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::HRESULT - where - Identity: ISyncChange_Impl, - { + unsafe extern "system" fn GetCreationVersion(this: *mut core::ffi::c_void, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChange_Impl::GetCreationVersion(this, core::mem::transmute_copy(&pbcurrentreplicaid), core::mem::transmute_copy(&pversion)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChange_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChange_Impl::GetFlags(this, core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn GetWorkEstimate(this: *mut core::ffi::c_void, pdwwork: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChange_Impl, - { + unsafe extern "system" fn GetWorkEstimate(this: *mut core::ffi::c_void, pdwwork: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChange_Impl::GetWorkEstimate(this, core::mem::transmute_copy(&pdwwork)).into() } - unsafe extern "system" fn GetChangeUnits(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChange_Impl, - { + unsafe extern "system" fn GetChangeUnits(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChange_Impl::GetChangeUnits(this) { Ok(ok__) => { @@ -2192,10 +1610,7 @@ impl ISyncChange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMadeWithKnowledge(this: *mut core::ffi::c_void, ppmadewithknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChange_Impl, - { + unsafe extern "system" fn GetMadeWithKnowledge(this: *mut core::ffi::c_void, ppmadewithknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChange_Impl::GetMadeWithKnowledge(this) { Ok(ok__) => { @@ -2205,10 +1620,7 @@ impl ISyncChange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLearnedKnowledge(this: *mut core::ffi::c_void, pplearnedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChange_Impl, - { + unsafe extern "system" fn GetLearnedKnowledge(this: *mut core::ffi::c_void, pplearnedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChange_Impl::GetLearnedKnowledge(this) { Ok(ok__) => { @@ -2218,10 +1630,7 @@ impl ISyncChange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWorkEstimate(this: *mut core::ffi::c_void, dwwork: u32) -> windows_core::HRESULT - where - Identity: ISyncChange_Impl, - { + unsafe extern "system" fn SetWorkEstimate(this: *mut core::ffi::c_void, dwwork: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChange_Impl::SetWorkEstimate(this, core::mem::transmute_copy(&dwwork)).into() } @@ -2250,28 +1659,16 @@ pub trait ISyncChangeBatch_Impl: Sized + ISyncChangeBatchBase_Impl { } impl windows_core::RuntimeName for ISyncChangeBatch {} impl ISyncChangeBatch_Vtbl { - pub const fn new() -> ISyncChangeBatch_Vtbl - where - Identity: ISyncChangeBatch_Impl, - { - unsafe extern "system" fn BeginUnorderedGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatch_Impl, - { + pub const fn new() -> ISyncChangeBatch_Vtbl { + unsafe extern "system" fn BeginUnorderedGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatch_Impl::BeginUnorderedGroup(this).into() } - unsafe extern "system" fn EndUnorderedGroup(this: *mut core::ffi::c_void, pmadewithknowledge: *mut core::ffi::c_void, fallchangesforknowledge: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncChangeBatch_Impl, - { + unsafe extern "system" fn EndUnorderedGroup(this: *mut core::ffi::c_void, pmadewithknowledge: *mut core::ffi::c_void, fallchangesforknowledge: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatch_Impl::EndUnorderedGroup(this, windows_core::from_raw_borrowed(&pmadewithknowledge), core::mem::transmute_copy(&fallchangesforknowledge)).into() } - unsafe extern "system" fn AddLoggedConflict(this: *mut core::ffi::c_void, pbownerreplicaid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwflags: u32, dwworkforchange: u32, pconflictknowledge: *mut core::ffi::c_void, ppchangebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatch_Impl, - { + unsafe extern "system" fn AddLoggedConflict(this: *mut core::ffi::c_void, pbownerreplicaid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwflags: u32, dwworkforchange: u32, pconflictknowledge: *mut core::ffi::c_void, ppchangebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatch_Impl::AddLoggedConflict(this, core::mem::transmute_copy(&pbownerreplicaid), core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pchangeversion), core::mem::transmute_copy(&pcreationversion), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwworkforchange), windows_core::from_raw_borrowed(&pconflictknowledge)) { Ok(ok__) => { @@ -2298,14 +1695,8 @@ pub trait ISyncChangeBatch2_Impl: Sized + ISyncChangeBatch_Impl { } impl windows_core::RuntimeName for ISyncChangeBatch2 {} impl ISyncChangeBatch2_Vtbl { - pub const fn new() -> ISyncChangeBatch2_Vtbl - where - Identity: ISyncChangeBatch2_Impl, - { - unsafe extern "system" fn AddMergeTombstoneMetadataToGroup(this: *mut core::ffi::c_void, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32, ppchangebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatch2_Impl, - { + pub const fn new() -> ISyncChangeBatch2_Vtbl { + unsafe extern "system" fn AddMergeTombstoneMetadataToGroup(this: *mut core::ffi::c_void, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32, ppchangebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatch2_Impl::AddMergeTombstoneMetadataToGroup(this, core::mem::transmute_copy(&pbownerreplicaid), core::mem::transmute_copy(&pbwinneritemid), core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pchangeversion), core::mem::transmute_copy(&pcreationversion), core::mem::transmute_copy(&dwworkforchange)) { Ok(ok__) => { @@ -2315,10 +1706,7 @@ impl ISyncChangeBatch2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddMergeTombstoneLoggedConflict(this: *mut core::ffi::c_void, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32, pconflictknowledge: *mut core::ffi::c_void, ppchangebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatch2_Impl, - { + unsafe extern "system" fn AddMergeTombstoneLoggedConflict(this: *mut core::ffi::c_void, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32, pconflictknowledge: *mut core::ffi::c_void, ppchangebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatch2_Impl::AddMergeTombstoneLoggedConflict(this, core::mem::transmute_copy(&pbownerreplicaid), core::mem::transmute_copy(&pbwinneritemid), core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pchangeversion), core::mem::transmute_copy(&pcreationversion), core::mem::transmute_copy(&dwworkforchange), windows_core::from_raw_borrowed(&pconflictknowledge)) { Ok(ok__) => { @@ -2338,7 +1726,7 @@ impl ISyncChangeBatch2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ISyncChangeBatchAdvanced_Impl: Sized { +pub trait ISyncChangeBatchAdvanced_Impl: Sized + windows_core::IUnknownImpl { fn GetFilterInfo(&self) -> windows_core::Result; fn ConvertFullEnumerationChangeBatchToRegularChangeBatch(&self) -> windows_core::Result; fn GetUpperBoundItemId(&self, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; @@ -2346,14 +1734,8 @@ pub trait ISyncChangeBatchAdvanced_Impl: Sized { } impl windows_core::RuntimeName for ISyncChangeBatchAdvanced {} impl ISyncChangeBatchAdvanced_Vtbl { - pub const fn new() -> ISyncChangeBatchAdvanced_Vtbl - where - Identity: ISyncChangeBatchAdvanced_Impl, - { - unsafe extern "system" fn GetFilterInfo(this: *mut core::ffi::c_void, ppfilterinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchAdvanced_Impl, - { + pub const fn new() -> ISyncChangeBatchAdvanced_Vtbl { + unsafe extern "system" fn GetFilterInfo(this: *mut core::ffi::c_void, ppfilterinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchAdvanced_Impl::GetFilterInfo(this) { Ok(ok__) => { @@ -2363,10 +1745,7 @@ impl ISyncChangeBatchAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertFullEnumerationChangeBatchToRegularChangeBatch(this: *mut core::ffi::c_void, ppchangebatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchAdvanced_Impl, - { + unsafe extern "system" fn ConvertFullEnumerationChangeBatchToRegularChangeBatch(this: *mut core::ffi::c_void, ppchangebatch: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchAdvanced_Impl::ConvertFullEnumerationChangeBatchToRegularChangeBatch(this) { Ok(ok__) => { @@ -2376,17 +1755,11 @@ impl ISyncChangeBatchAdvanced_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUpperBoundItemId(this: *mut core::ffi::c_void, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchAdvanced_Impl, - { + unsafe extern "system" fn GetUpperBoundItemId(this: *mut core::ffi::c_void, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchAdvanced_Impl::GetUpperBoundItemId(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn GetBatchLevelKnowledgeShouldBeApplied(this: *mut core::ffi::c_void, pfbatchknowledgeshouldbeapplied: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchAdvanced_Impl, - { + unsafe extern "system" fn GetBatchLevelKnowledgeShouldBeApplied(this: *mut core::ffi::c_void, pfbatchknowledgeshouldbeapplied: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchAdvanced_Impl::GetBatchLevelKnowledgeShouldBeApplied(this, core::mem::transmute_copy(&pfbatchknowledgeshouldbeapplied)).into() } @@ -2402,7 +1775,7 @@ impl ISyncChangeBatchAdvanced_Vtbl { iid == &::IID } } -pub trait ISyncChangeBatchBase_Impl: Sized { +pub trait ISyncChangeBatchBase_Impl: Sized + windows_core::IUnknownImpl { fn GetChangeEnumerator(&self) -> windows_core::Result; fn GetIsLastBatch(&self, pflastbatch: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetWorkEstimateForBatch(&self, pdwworkforbatch: *mut u32) -> windows_core::Result<()>; @@ -2420,14 +1793,8 @@ pub trait ISyncChangeBatchBase_Impl: Sized { } impl windows_core::RuntimeName for ISyncChangeBatchBase {} impl ISyncChangeBatchBase_Vtbl { - pub const fn new() -> ISyncChangeBatchBase_Vtbl - where - Identity: ISyncChangeBatchBase_Impl, - { - unsafe extern "system" fn GetChangeEnumerator(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + pub const fn new() -> ISyncChangeBatchBase_Vtbl { + unsafe extern "system" fn GetChangeEnumerator(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchBase_Impl::GetChangeEnumerator(this) { Ok(ok__) => { @@ -2437,45 +1804,27 @@ impl ISyncChangeBatchBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIsLastBatch(this: *mut core::ffi::c_void, pflastbatch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn GetIsLastBatch(this: *mut core::ffi::c_void, pflastbatch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase_Impl::GetIsLastBatch(this, core::mem::transmute_copy(&pflastbatch)).into() } - unsafe extern "system" fn GetWorkEstimateForBatch(this: *mut core::ffi::c_void, pdwworkforbatch: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn GetWorkEstimateForBatch(this: *mut core::ffi::c_void, pdwworkforbatch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase_Impl::GetWorkEstimateForBatch(this, core::mem::transmute_copy(&pdwworkforbatch)).into() } - unsafe extern "system" fn GetRemainingWorkEstimateForSession(this: *mut core::ffi::c_void, pdwremainingworkforsession: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn GetRemainingWorkEstimateForSession(this: *mut core::ffi::c_void, pdwremainingworkforsession: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase_Impl::GetRemainingWorkEstimateForSession(this, core::mem::transmute_copy(&pdwremainingworkforsession)).into() } - unsafe extern "system" fn BeginOrderedGroup(this: *mut core::ffi::c_void, pblowerbound: *const u8) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn BeginOrderedGroup(this: *mut core::ffi::c_void, pblowerbound: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase_Impl::BeginOrderedGroup(this, core::mem::transmute_copy(&pblowerbound)).into() } - unsafe extern "system" fn EndOrderedGroup(this: *mut core::ffi::c_void, pbupperbound: *const u8, pmadewithknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn EndOrderedGroup(this: *mut core::ffi::c_void, pbupperbound: *const u8, pmadewithknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase_Impl::EndOrderedGroup(this, core::mem::transmute_copy(&pbupperbound), windows_core::from_raw_borrowed(&pmadewithknowledge)).into() } - unsafe extern "system" fn AddItemMetadataToGroup(this: *mut core::ffi::c_void, pbownerreplicaid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwflags: u32, dwworkforchange: u32, ppchangebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn AddItemMetadataToGroup(this: *mut core::ffi::c_void, pbownerreplicaid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwflags: u32, dwworkforchange: u32, ppchangebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchBase_Impl::AddItemMetadataToGroup(this, core::mem::transmute_copy(&pbownerreplicaid), core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pchangeversion), core::mem::transmute_copy(&pcreationversion), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwworkforchange)) { Ok(ok__) => { @@ -2485,10 +1834,7 @@ impl ISyncChangeBatchBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLearnedKnowledge(this: *mut core::ffi::c_void, pplearnedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn GetLearnedKnowledge(this: *mut core::ffi::c_void, pplearnedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchBase_Impl::GetLearnedKnowledge(this) { Ok(ok__) => { @@ -2498,10 +1844,7 @@ impl ISyncChangeBatchBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPrerequisiteKnowledge(this: *mut core::ffi::c_void, ppprerequisteknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn GetPrerequisiteKnowledge(this: *mut core::ffi::c_void, ppprerequisteknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchBase_Impl::GetPrerequisiteKnowledge(this) { Ok(ok__) => { @@ -2511,10 +1854,7 @@ impl ISyncChangeBatchBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceForgottenKnowledge(this: *mut core::ffi::c_void, ppsourceforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn GetSourceForgottenKnowledge(this: *mut core::ffi::c_void, ppsourceforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchBase_Impl::GetSourceForgottenKnowledge(this) { Ok(ok__) => { @@ -2524,31 +1864,19 @@ impl ISyncChangeBatchBase_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLastBatch(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn SetLastBatch(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase_Impl::SetLastBatch(this).into() } - unsafe extern "system" fn SetWorkEstimateForBatch(this: *mut core::ffi::c_void, dwworkforbatch: u32) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn SetWorkEstimateForBatch(this: *mut core::ffi::c_void, dwworkforbatch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase_Impl::SetWorkEstimateForBatch(this, core::mem::transmute_copy(&dwworkforbatch)).into() } - unsafe extern "system" fn SetRemainingWorkEstimateForSession(this: *mut core::ffi::c_void, dwremainingworkforsession: u32) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn SetRemainingWorkEstimateForSession(this: *mut core::ffi::c_void, dwremainingworkforsession: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase_Impl::SetRemainingWorkEstimateForSession(this, core::mem::transmute_copy(&dwremainingworkforsession)).into() } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pbchangebatch: *mut u8, pcbchangebatch: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pbchangebatch: *mut u8, pcbchangebatch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase_Impl::Serialize(this, core::mem::transmute_copy(&pbchangebatch), core::mem::transmute_copy(&pcbchangebatch)).into() } @@ -2579,14 +1907,8 @@ pub trait ISyncChangeBatchBase2_Impl: Sized + ISyncChangeBatchBase_Impl { } impl windows_core::RuntimeName for ISyncChangeBatchBase2 {} impl ISyncChangeBatchBase2_Vtbl { - pub const fn new() -> ISyncChangeBatchBase2_Vtbl - where - Identity: ISyncChangeBatchBase2_Impl, - { - unsafe extern "system" fn SerializeWithOptions(this: *mut core::ffi::c_void, targetformatversion: SYNC_SERIALIZATION_VERSION, dwflags: u32, pbbuffer: *mut u8, pdwserializedsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchBase2_Impl, - { + pub const fn new() -> ISyncChangeBatchBase2_Vtbl { + unsafe extern "system" fn SerializeWithOptions(this: *mut core::ffi::c_void, targetformatversion: SYNC_SERIALIZATION_VERSION, dwflags: u32, pbbuffer: *mut u8, pdwserializedsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase2_Impl::SerializeWithOptions(this, core::mem::transmute_copy(&targetformatversion), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&pdwserializedsize)).into() } @@ -2596,7 +1918,7 @@ impl ISyncChangeBatchBase2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISyncChangeBatchWithFilterKeyMap_Impl: Sized { +pub trait ISyncChangeBatchWithFilterKeyMap_Impl: Sized + windows_core::IUnknownImpl { fn GetFilterKeyMap(&self) -> windows_core::Result; fn SetFilterKeyMap(&self, pifilterkeymap: Option<&IFilterKeyMap>) -> windows_core::Result<()>; fn SetFilterForgottenKnowledge(&self, dwfilterkey: u32, pfilterforgottenknowledge: Option<&ISyncKnowledge>) -> windows_core::Result<()>; @@ -2608,14 +1930,8 @@ pub trait ISyncChangeBatchWithFilterKeyMap_Impl: Sized { } impl windows_core::RuntimeName for ISyncChangeBatchWithFilterKeyMap {} impl ISyncChangeBatchWithFilterKeyMap_Vtbl { - pub const fn new() -> ISyncChangeBatchWithFilterKeyMap_Vtbl - where - Identity: ISyncChangeBatchWithFilterKeyMap_Impl, - { - unsafe extern "system" fn GetFilterKeyMap(this: *mut core::ffi::c_void, ppifilterkeymap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithFilterKeyMap_Impl, - { + pub const fn new() -> ISyncChangeBatchWithFilterKeyMap_Vtbl { + unsafe extern "system" fn GetFilterKeyMap(this: *mut core::ffi::c_void, ppifilterkeymap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchWithFilterKeyMap_Impl::GetFilterKeyMap(this) { Ok(ok__) => { @@ -2625,24 +1941,15 @@ impl ISyncChangeBatchWithFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFilterKeyMap(this: *mut core::ffi::c_void, pifilterkeymap: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithFilterKeyMap_Impl, - { + unsafe extern "system" fn SetFilterKeyMap(this: *mut core::ffi::c_void, pifilterkeymap: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchWithFilterKeyMap_Impl::SetFilterKeyMap(this, windows_core::from_raw_borrowed(&pifilterkeymap)).into() } - unsafe extern "system" fn SetFilterForgottenKnowledge(this: *mut core::ffi::c_void, dwfilterkey: u32, pfilterforgottenknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithFilterKeyMap_Impl, - { + unsafe extern "system" fn SetFilterForgottenKnowledge(this: *mut core::ffi::c_void, dwfilterkey: u32, pfilterforgottenknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchWithFilterKeyMap_Impl::SetFilterForgottenKnowledge(this, core::mem::transmute_copy(&dwfilterkey), windows_core::from_raw_borrowed(&pfilterforgottenknowledge)).into() } - unsafe extern "system" fn GetFilteredReplicaLearnedKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetFilteredReplicaLearnedKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchWithFilterKeyMap_Impl::GetFilteredReplicaLearnedKnowledge(this, windows_core::from_raw_borrowed(&pdestinationknowledge), windows_core::from_raw_borrowed(&pnewmoveins)) { Ok(ok__) => { @@ -2652,10 +1959,7 @@ impl ISyncChangeBatchWithFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLearnedFilterForgottenKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, dwfilterkey: u32, pplearnedfilterforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetLearnedFilterForgottenKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, dwfilterkey: u32, pplearnedfilterforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchWithFilterKeyMap_Impl::GetLearnedFilterForgottenKnowledge(this, windows_core::from_raw_borrowed(&pdestinationknowledge), windows_core::from_raw_borrowed(&pnewmoveins), core::mem::transmute_copy(&dwfilterkey)) { Ok(ok__) => { @@ -2665,10 +1969,7 @@ impl ISyncChangeBatchWithFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilteredReplicaLearnedForgottenKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetFilteredReplicaLearnedForgottenKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchWithFilterKeyMap_Impl::GetFilteredReplicaLearnedForgottenKnowledge(this, windows_core::from_raw_borrowed(&pdestinationknowledge), windows_core::from_raw_borrowed(&pnewmoveins)) { Ok(ok__) => { @@ -2678,10 +1979,7 @@ impl ISyncChangeBatchWithFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchWithFilterKeyMap_Impl::GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete(this, windows_core::from_raw_borrowed(&pdestinationknowledge), windows_core::from_raw_borrowed(&pnewmoveins)) { Ok(ok__) => { @@ -2691,10 +1989,7 @@ impl ISyncChangeBatchWithFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, dwfilterkey: u32, pplearnedfilterforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, dwfilterkey: u32, pplearnedfilterforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchWithFilterKeyMap_Impl::GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete(this, windows_core::from_raw_borrowed(&pdestinationknowledge), windows_core::from_raw_borrowed(&pnewmoveins), core::mem::transmute_copy(&dwfilterkey)) { Ok(ok__) => { @@ -2727,21 +2022,12 @@ pub trait ISyncChangeBatchWithPrerequisite_Impl: Sized + ISyncChangeBatchBase_Im } impl windows_core::RuntimeName for ISyncChangeBatchWithPrerequisite {} impl ISyncChangeBatchWithPrerequisite_Vtbl { - pub const fn new() -> ISyncChangeBatchWithPrerequisite_Vtbl - where - Identity: ISyncChangeBatchWithPrerequisite_Impl, - { - unsafe extern "system" fn SetPrerequisiteKnowledge(this: *mut core::ffi::c_void, pprerequisiteknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithPrerequisite_Impl, - { + pub const fn new() -> ISyncChangeBatchWithPrerequisite_Vtbl { + unsafe extern "system" fn SetPrerequisiteKnowledge(this: *mut core::ffi::c_void, pprerequisiteknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchWithPrerequisite_Impl::SetPrerequisiteKnowledge(this, windows_core::from_raw_borrowed(&pprerequisiteknowledge)).into() } - unsafe extern "system" fn GetLearnedKnowledgeWithPrerequisite(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pplearnedwithprerequisiteknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithPrerequisite_Impl, - { + unsafe extern "system" fn GetLearnedKnowledgeWithPrerequisite(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pplearnedwithprerequisiteknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchWithPrerequisite_Impl::GetLearnedKnowledgeWithPrerequisite(this, windows_core::from_raw_borrowed(&pdestinationknowledge)) { Ok(ok__) => { @@ -2751,10 +2037,7 @@ impl ISyncChangeBatchWithPrerequisite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLearnedForgottenKnowledge(this: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeBatchWithPrerequisite_Impl, - { + unsafe extern "system" fn GetLearnedForgottenKnowledge(this: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeBatchWithPrerequisite_Impl::GetLearnedForgottenKnowledge(this) { Ok(ok__) => { @@ -2775,19 +2058,13 @@ impl ISyncChangeBatchWithPrerequisite_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISyncChangeBuilder_Impl: Sized { +pub trait ISyncChangeBuilder_Impl: Sized + windows_core::IUnknownImpl { fn AddChangeUnitMetadata(&self, pbchangeunitid: *const u8, pchangeunitversion: *const SYNC_VERSION) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncChangeBuilder {} impl ISyncChangeBuilder_Vtbl { - pub const fn new() -> ISyncChangeBuilder_Vtbl - where - Identity: ISyncChangeBuilder_Impl, - { - unsafe extern "system" fn AddChangeUnitMetadata(this: *mut core::ffi::c_void, pbchangeunitid: *const u8, pchangeunitversion: *const SYNC_VERSION) -> windows_core::HRESULT - where - Identity: ISyncChangeBuilder_Impl, - { + pub const fn new() -> ISyncChangeBuilder_Vtbl { + unsafe extern "system" fn AddChangeUnitMetadata(this: *mut core::ffi::c_void, pbchangeunitid: *const u8, pchangeunitversion: *const SYNC_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBuilder_Impl::AddChangeUnitMetadata(this, core::mem::transmute_copy(&pbchangeunitid), core::mem::transmute_copy(&pchangeunitversion)).into() } @@ -2797,21 +2074,15 @@ impl ISyncChangeBuilder_Vtbl { iid == &::IID } } -pub trait ISyncChangeUnit_Impl: Sized { +pub trait ISyncChangeUnit_Impl: Sized + windows_core::IUnknownImpl { fn GetItemChange(&self) -> windows_core::Result; fn GetChangeUnitId(&self, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; fn GetChangeUnitVersion(&self, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncChangeUnit {} impl ISyncChangeUnit_Vtbl { - pub const fn new() -> ISyncChangeUnit_Vtbl - where - Identity: ISyncChangeUnit_Impl, - { - unsafe extern "system" fn GetItemChange(this: *mut core::ffi::c_void, ppsyncchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeUnit_Impl, - { + pub const fn new() -> ISyncChangeUnit_Vtbl { + unsafe extern "system" fn GetItemChange(this: *mut core::ffi::c_void, ppsyncchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeUnit_Impl::GetItemChange(this) { Ok(ok__) => { @@ -2821,17 +2092,11 @@ impl ISyncChangeUnit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChangeUnitId(this: *mut core::ffi::c_void, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChangeUnit_Impl, - { + unsafe extern "system" fn GetChangeUnitId(this: *mut core::ffi::c_void, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeUnit_Impl::GetChangeUnitId(this, core::mem::transmute_copy(&pbchangeunitid), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn GetChangeUnitVersion(this: *mut core::ffi::c_void, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::HRESULT - where - Identity: ISyncChangeUnit_Impl, - { + unsafe extern "system" fn GetChangeUnitVersion(this: *mut core::ffi::c_void, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeUnit_Impl::GetChangeUnitVersion(this, core::mem::transmute_copy(&pbcurrentreplicaid), core::mem::transmute_copy(&pversion)).into() } @@ -2846,7 +2111,7 @@ impl ISyncChangeUnit_Vtbl { iid == &::IID } } -pub trait ISyncChangeWithFilterKeyMap_Impl: Sized { +pub trait ISyncChangeWithFilterKeyMap_Impl: Sized + windows_core::IUnknownImpl { fn GetFilterCount(&self, pdwfiltercount: *mut u32) -> windows_core::Result<()>; fn GetFilterChange(&self, dwfilterkey: u32, pfilterchange: *mut SYNC_FILTER_CHANGE) -> windows_core::Result<()>; fn GetAllChangeUnitsPresentFlag(&self, pfallchangeunitspresent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -2859,35 +2124,20 @@ pub trait ISyncChangeWithFilterKeyMap_Impl: Sized { } impl windows_core::RuntimeName for ISyncChangeWithFilterKeyMap {} impl ISyncChangeWithFilterKeyMap_Vtbl { - pub const fn new() -> ISyncChangeWithFilterKeyMap_Vtbl - where - Identity: ISyncChangeWithFilterKeyMap_Impl, - { - unsafe extern "system" fn GetFilterCount(this: *mut core::ffi::c_void, pdwfiltercount: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncChangeWithFilterKeyMap_Impl, - { + pub const fn new() -> ISyncChangeWithFilterKeyMap_Vtbl { + unsafe extern "system" fn GetFilterCount(this: *mut core::ffi::c_void, pdwfiltercount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeWithFilterKeyMap_Impl::GetFilterCount(this, core::mem::transmute_copy(&pdwfiltercount)).into() } - unsafe extern "system" fn GetFilterChange(this: *mut core::ffi::c_void, dwfilterkey: u32, pfilterchange: *mut SYNC_FILTER_CHANGE) -> windows_core::HRESULT - where - Identity: ISyncChangeWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetFilterChange(this: *mut core::ffi::c_void, dwfilterkey: u32, pfilterchange: *mut SYNC_FILTER_CHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeWithFilterKeyMap_Impl::GetFilterChange(this, core::mem::transmute_copy(&dwfilterkey), core::mem::transmute_copy(&pfilterchange)).into() } - unsafe extern "system" fn GetAllChangeUnitsPresentFlag(this: *mut core::ffi::c_void, pfallchangeunitspresent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncChangeWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetAllChangeUnitsPresentFlag(this: *mut core::ffi::c_void, pfallchangeunitspresent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeWithFilterKeyMap_Impl::GetAllChangeUnitsPresentFlag(this, core::mem::transmute_copy(&pfallchangeunitspresent)).into() } - unsafe extern "system" fn GetFilterForgottenKnowledge(this: *mut core::ffi::c_void, dwfilterkey: u32, ppifilterforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetFilterForgottenKnowledge(this: *mut core::ffi::c_void, dwfilterkey: u32, ppifilterforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeWithFilterKeyMap_Impl::GetFilterForgottenKnowledge(this, core::mem::transmute_copy(&dwfilterkey)) { Ok(ok__) => { @@ -2897,10 +2147,7 @@ impl ISyncChangeWithFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilteredReplicaLearnedKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetFilteredReplicaLearnedKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeWithFilterKeyMap_Impl::GetFilteredReplicaLearnedKnowledge(this, windows_core::from_raw_borrowed(&pdestinationknowledge), windows_core::from_raw_borrowed(&pnewmoveins)) { Ok(ok__) => { @@ -2910,10 +2157,7 @@ impl ISyncChangeWithFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLearnedFilterForgottenKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, dwfilterkey: u32, pplearnedfilterforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetLearnedFilterForgottenKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, dwfilterkey: u32, pplearnedfilterforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeWithFilterKeyMap_Impl::GetLearnedFilterForgottenKnowledge(this, windows_core::from_raw_borrowed(&pdestinationknowledge), windows_core::from_raw_borrowed(&pnewmoveins), core::mem::transmute_copy(&dwfilterkey)) { Ok(ok__) => { @@ -2923,10 +2167,7 @@ impl ISyncChangeWithFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilteredReplicaLearnedForgottenKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetFilteredReplicaLearnedForgottenKnowledge(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeWithFilterKeyMap_Impl::GetFilteredReplicaLearnedForgottenKnowledge(this, windows_core::from_raw_borrowed(&pdestinationknowledge), windows_core::from_raw_borrowed(&pnewmoveins)) { Ok(ok__) => { @@ -2936,10 +2177,7 @@ impl ISyncChangeWithFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeWithFilterKeyMap_Impl::GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete(this, windows_core::from_raw_borrowed(&pdestinationknowledge), windows_core::from_raw_borrowed(&pnewmoveins)) { Ok(ok__) => { @@ -2949,10 +2187,7 @@ impl ISyncChangeWithFilterKeyMap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, dwfilterkey: u32, pplearnedfilterforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeWithFilterKeyMap_Impl, - { + unsafe extern "system" fn GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pnewmoveins: *mut core::ffi::c_void, dwfilterkey: u32, pplearnedfilterforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeWithFilterKeyMap_Impl::GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete(this, windows_core::from_raw_borrowed(&pdestinationknowledge), windows_core::from_raw_borrowed(&pnewmoveins), core::mem::transmute_copy(&dwfilterkey)) { Ok(ok__) => { @@ -2979,20 +2214,14 @@ impl ISyncChangeWithFilterKeyMap_Vtbl { iid == &::IID } } -pub trait ISyncChangeWithPrerequisite_Impl: Sized { +pub trait ISyncChangeWithPrerequisite_Impl: Sized + windows_core::IUnknownImpl { fn GetPrerequisiteKnowledge(&self) -> windows_core::Result; fn GetLearnedKnowledgeWithPrerequisite(&self, pdestinationknowledge: Option<&ISyncKnowledge>) -> windows_core::Result; } impl windows_core::RuntimeName for ISyncChangeWithPrerequisite {} impl ISyncChangeWithPrerequisite_Vtbl { - pub const fn new() -> ISyncChangeWithPrerequisite_Vtbl - where - Identity: ISyncChangeWithPrerequisite_Impl, - { - unsafe extern "system" fn GetPrerequisiteKnowledge(this: *mut core::ffi::c_void, ppprerequisiteknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeWithPrerequisite_Impl, - { + pub const fn new() -> ISyncChangeWithPrerequisite_Vtbl { + unsafe extern "system" fn GetPrerequisiteKnowledge(this: *mut core::ffi::c_void, ppprerequisiteknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeWithPrerequisite_Impl::GetPrerequisiteKnowledge(this) { Ok(ok__) => { @@ -3002,10 +2231,7 @@ impl ISyncChangeWithPrerequisite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLearnedKnowledgeWithPrerequisite(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pplearnedknowledgewithprerequisite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncChangeWithPrerequisite_Impl, - { + unsafe extern "system" fn GetLearnedKnowledgeWithPrerequisite(this: *mut core::ffi::c_void, pdestinationknowledge: *mut core::ffi::c_void, pplearnedknowledgewithprerequisite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncChangeWithPrerequisite_Impl::GetLearnedKnowledgeWithPrerequisite(this, windows_core::from_raw_borrowed(&pdestinationknowledge)) { Ok(ok__) => { @@ -3025,19 +2251,13 @@ impl ISyncChangeWithPrerequisite_Vtbl { iid == &::IID } } -pub trait ISyncConstraintCallback_Impl: Sized { +pub trait ISyncConstraintCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnConstraintConflict(&self, pconflict: Option<&IConstraintConflict>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncConstraintCallback {} impl ISyncConstraintCallback_Vtbl { - pub const fn new() -> ISyncConstraintCallback_Vtbl - where - Identity: ISyncConstraintCallback_Impl, - { - unsafe extern "system" fn OnConstraintConflict(this: *mut core::ffi::c_void, pconflict: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncConstraintCallback_Impl, - { + pub const fn new() -> ISyncConstraintCallback_Vtbl { + unsafe extern "system" fn OnConstraintConflict(this: *mut core::ffi::c_void, pconflict: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncConstraintCallback_Impl::OnConstraintConflict(this, windows_core::from_raw_borrowed(&pconflict)).into() } @@ -3047,7 +2267,7 @@ impl ISyncConstraintCallback_Vtbl { iid == &::IID } } -pub trait ISyncDataConverter_Impl: Sized { +pub trait ISyncDataConverter_Impl: Sized + windows_core::IUnknownImpl { fn ConvertDataRetrieverFromProviderFormat(&self, punkdataretrieverin: Option<&windows_core::IUnknown>, penumsyncchanges: Option<&IEnumSyncChanges>) -> windows_core::Result; fn ConvertDataRetrieverToProviderFormat(&self, punkdataretrieverin: Option<&windows_core::IUnknown>, penumsyncchanges: Option<&IEnumSyncChanges>) -> windows_core::Result; fn ConvertDataFromProviderFormat(&self, pdatacontext: Option<&ILoadChangeContext>, punkdatain: Option<&windows_core::IUnknown>) -> windows_core::Result; @@ -3055,14 +2275,8 @@ pub trait ISyncDataConverter_Impl: Sized { } impl windows_core::RuntimeName for ISyncDataConverter {} impl ISyncDataConverter_Vtbl { - pub const fn new() -> ISyncDataConverter_Vtbl - where - Identity: ISyncDataConverter_Impl, - { - unsafe extern "system" fn ConvertDataRetrieverFromProviderFormat(this: *mut core::ffi::c_void, punkdataretrieverin: *mut core::ffi::c_void, penumsyncchanges: *mut core::ffi::c_void, ppunkdataout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncDataConverter_Impl, - { + pub const fn new() -> ISyncDataConverter_Vtbl { + unsafe extern "system" fn ConvertDataRetrieverFromProviderFormat(this: *mut core::ffi::c_void, punkdataretrieverin: *mut core::ffi::c_void, penumsyncchanges: *mut core::ffi::c_void, ppunkdataout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncDataConverter_Impl::ConvertDataRetrieverFromProviderFormat(this, windows_core::from_raw_borrowed(&punkdataretrieverin), windows_core::from_raw_borrowed(&penumsyncchanges)) { Ok(ok__) => { @@ -3072,10 +2286,7 @@ impl ISyncDataConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertDataRetrieverToProviderFormat(this: *mut core::ffi::c_void, punkdataretrieverin: *mut core::ffi::c_void, penumsyncchanges: *mut core::ffi::c_void, ppunkdataout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncDataConverter_Impl, - { + unsafe extern "system" fn ConvertDataRetrieverToProviderFormat(this: *mut core::ffi::c_void, punkdataretrieverin: *mut core::ffi::c_void, penumsyncchanges: *mut core::ffi::c_void, ppunkdataout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncDataConverter_Impl::ConvertDataRetrieverToProviderFormat(this, windows_core::from_raw_borrowed(&punkdataretrieverin), windows_core::from_raw_borrowed(&penumsyncchanges)) { Ok(ok__) => { @@ -3085,10 +2296,7 @@ impl ISyncDataConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertDataFromProviderFormat(this: *mut core::ffi::c_void, pdatacontext: *mut core::ffi::c_void, punkdatain: *mut core::ffi::c_void, ppunkdataout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncDataConverter_Impl, - { + unsafe extern "system" fn ConvertDataFromProviderFormat(this: *mut core::ffi::c_void, pdatacontext: *mut core::ffi::c_void, punkdatain: *mut core::ffi::c_void, ppunkdataout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncDataConverter_Impl::ConvertDataFromProviderFormat(this, windows_core::from_raw_borrowed(&pdatacontext), windows_core::from_raw_borrowed(&punkdatain)) { Ok(ok__) => { @@ -3098,10 +2306,7 @@ impl ISyncDataConverter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertDataToProviderFormat(this: *mut core::ffi::c_void, pdatacontext: *mut core::ffi::c_void, punkdataout: *mut core::ffi::c_void, ppunkdataout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncDataConverter_Impl, - { + unsafe extern "system" fn ConvertDataToProviderFormat(this: *mut core::ffi::c_void, pdatacontext: *mut core::ffi::c_void, punkdataout: *mut core::ffi::c_void, ppunkdataout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncDataConverter_Impl::ConvertDataToProviderFormat(this, windows_core::from_raw_borrowed(&pdatacontext), windows_core::from_raw_borrowed(&punkdataout)) { Ok(ok__) => { @@ -3123,27 +2328,18 @@ impl ISyncDataConverter_Vtbl { iid == &::IID } } -pub trait ISyncFilter_Impl: Sized { +pub trait ISyncFilter_Impl: Sized + windows_core::IUnknownImpl { fn IsIdentical(&self, psyncfilter: Option<&ISyncFilter>) -> windows_core::Result<()>; fn Serialize(&self, pbsyncfilter: *mut u8, pcbsyncfilter: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncFilter {} impl ISyncFilter_Vtbl { - pub const fn new() -> ISyncFilter_Vtbl - where - Identity: ISyncFilter_Impl, - { - unsafe extern "system" fn IsIdentical(this: *mut core::ffi::c_void, psyncfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncFilter_Impl, - { + pub const fn new() -> ISyncFilter_Vtbl { + unsafe extern "system" fn IsIdentical(this: *mut core::ffi::c_void, psyncfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncFilter_Impl::IsIdentical(this, windows_core::from_raw_borrowed(&psyncfilter)).into() } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pbsyncfilter: *mut u8, pcbsyncfilter: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncFilter_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pbsyncfilter: *mut u8, pcbsyncfilter: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncFilter_Impl::Serialize(this, core::mem::transmute_copy(&pbsyncfilter), core::mem::transmute_copy(&pcbsyncfilter)).into() } @@ -3157,19 +2353,13 @@ impl ISyncFilter_Vtbl { iid == &::IID } } -pub trait ISyncFilterDeserializer_Impl: Sized { +pub trait ISyncFilterDeserializer_Impl: Sized + windows_core::IUnknownImpl { fn DeserializeSyncFilter(&self, pbsyncfilter: *const u8, dwcbsyncfilter: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ISyncFilterDeserializer {} impl ISyncFilterDeserializer_Vtbl { - pub const fn new() -> ISyncFilterDeserializer_Vtbl - where - Identity: ISyncFilterDeserializer_Impl, - { - unsafe extern "system" fn DeserializeSyncFilter(this: *mut core::ffi::c_void, pbsyncfilter: *const u8, dwcbsyncfilter: u32, ppisyncfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncFilterDeserializer_Impl, - { + pub const fn new() -> ISyncFilterDeserializer_Vtbl { + unsafe extern "system" fn DeserializeSyncFilter(this: *mut core::ffi::c_void, pbsyncfilter: *const u8, dwcbsyncfilter: u32, ppisyncfilter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncFilterDeserializer_Impl::DeserializeSyncFilter(this, core::mem::transmute_copy(&pbsyncfilter), core::mem::transmute_copy(&dwcbsyncfilter)) { Ok(ok__) => { @@ -3185,19 +2375,13 @@ impl ISyncFilterDeserializer_Vtbl { iid == &::IID } } -pub trait ISyncFilterInfo_Impl: Sized { +pub trait ISyncFilterInfo_Impl: Sized + windows_core::IUnknownImpl { fn Serialize(&self, pbbuffer: *mut u8, pcbbuffer: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncFilterInfo {} impl ISyncFilterInfo_Vtbl { - pub const fn new() -> ISyncFilterInfo_Vtbl - where - Identity: ISyncFilterInfo_Impl, - { - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pbbuffer: *mut u8, pcbbuffer: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncFilterInfo_Impl, - { + pub const fn new() -> ISyncFilterInfo_Vtbl { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pbbuffer: *mut u8, pcbbuffer: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncFilterInfo_Impl::Serialize(this, core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&pcbbuffer)).into() } @@ -3212,14 +2396,8 @@ pub trait ISyncFilterInfo2_Impl: Sized + ISyncFilterInfo_Impl { } impl windows_core::RuntimeName for ISyncFilterInfo2 {} impl ISyncFilterInfo2_Vtbl { - pub const fn new() -> ISyncFilterInfo2_Vtbl - where - Identity: ISyncFilterInfo2_Impl, - { - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncFilterInfo2_Impl, - { + pub const fn new() -> ISyncFilterInfo2_Vtbl { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncFilterInfo2_Impl::GetFlags(this, core::mem::transmute_copy(&pdwflags)).into() } @@ -3229,20 +2407,14 @@ impl ISyncFilterInfo2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISyncFullEnumerationChange_Impl: Sized { +pub trait ISyncFullEnumerationChange_Impl: Sized + windows_core::IUnknownImpl { fn GetLearnedKnowledgeAfterRecoveryComplete(&self) -> windows_core::Result; fn GetLearnedForgottenKnowledge(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISyncFullEnumerationChange {} impl ISyncFullEnumerationChange_Vtbl { - pub const fn new() -> ISyncFullEnumerationChange_Vtbl - where - Identity: ISyncFullEnumerationChange_Impl, - { - unsafe extern "system" fn GetLearnedKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pplearnedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncFullEnumerationChange_Impl, - { + pub const fn new() -> ISyncFullEnumerationChange_Vtbl { + unsafe extern "system" fn GetLearnedKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pplearnedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncFullEnumerationChange_Impl::GetLearnedKnowledgeAfterRecoveryComplete(this) { Ok(ok__) => { @@ -3252,10 +2424,7 @@ impl ISyncFullEnumerationChange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLearnedForgottenKnowledge(this: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncFullEnumerationChange_Impl, - { + unsafe extern "system" fn GetLearnedForgottenKnowledge(this: *mut core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncFullEnumerationChange_Impl::GetLearnedForgottenKnowledge(this) { Ok(ok__) => { @@ -3282,14 +2451,8 @@ pub trait ISyncFullEnumerationChangeBatch_Impl: Sized + ISyncChangeBatchBase_Imp } impl windows_core::RuntimeName for ISyncFullEnumerationChangeBatch {} impl ISyncFullEnumerationChangeBatch_Vtbl { - pub const fn new() -> ISyncFullEnumerationChangeBatch_Vtbl - where - Identity: ISyncFullEnumerationChangeBatch_Impl, - { - unsafe extern "system" fn GetLearnedKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pplearnedknowledgeafterrecoverycomplete: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncFullEnumerationChangeBatch_Impl, - { + pub const fn new() -> ISyncFullEnumerationChangeBatch_Vtbl { + unsafe extern "system" fn GetLearnedKnowledgeAfterRecoveryComplete(this: *mut core::ffi::c_void, pplearnedknowledgeafterrecoverycomplete: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncFullEnumerationChangeBatch_Impl::GetLearnedKnowledgeAfterRecoveryComplete(this) { Ok(ok__) => { @@ -3299,17 +2462,11 @@ impl ISyncFullEnumerationChangeBatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClosedLowerBoundItemId(this: *mut core::ffi::c_void, pbclosedlowerbounditemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncFullEnumerationChangeBatch_Impl, - { + unsafe extern "system" fn GetClosedLowerBoundItemId(this: *mut core::ffi::c_void, pbclosedlowerbounditemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncFullEnumerationChangeBatch_Impl::GetClosedLowerBoundItemId(this, core::mem::transmute_copy(&pbclosedlowerbounditemid), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn GetClosedUpperBoundItemId(this: *mut core::ffi::c_void, pbclosedupperbounditemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncFullEnumerationChangeBatch_Impl, - { + unsafe extern "system" fn GetClosedUpperBoundItemId(this: *mut core::ffi::c_void, pbclosedupperbounditemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncFullEnumerationChangeBatch_Impl::GetClosedUpperBoundItemId(this, core::mem::transmute_copy(&pbclosedupperbounditemid), core::mem::transmute_copy(&pcbidsize)).into() } @@ -3329,14 +2486,8 @@ pub trait ISyncFullEnumerationChangeBatch2_Impl: Sized + ISyncFullEnumerationCha } impl windows_core::RuntimeName for ISyncFullEnumerationChangeBatch2 {} impl ISyncFullEnumerationChangeBatch2_Vtbl { - pub const fn new() -> ISyncFullEnumerationChangeBatch2_Vtbl - where - Identity: ISyncFullEnumerationChangeBatch2_Impl, - { - unsafe extern "system" fn AddMergeTombstoneMetadataToGroup(this: *mut core::ffi::c_void, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32, ppchangebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncFullEnumerationChangeBatch2_Impl, - { + pub const fn new() -> ISyncFullEnumerationChangeBatch2_Vtbl { + unsafe extern "system" fn AddMergeTombstoneMetadataToGroup(this: *mut core::ffi::c_void, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32, ppchangebuilder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncFullEnumerationChangeBatch2_Impl::AddMergeTombstoneMetadataToGroup(this, core::mem::transmute_copy(&pbownerreplicaid), core::mem::transmute_copy(&pbwinneritemid), core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pchangeversion), core::mem::transmute_copy(&pcreationversion), core::mem::transmute_copy(&dwworkforchange)) { Ok(ok__) => { @@ -3355,7 +2506,7 @@ impl ISyncFullEnumerationChangeBatch2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ISyncKnowledge_Impl: Sized { +pub trait ISyncKnowledge_Impl: Sized + windows_core::IUnknownImpl { fn GetOwnerReplicaId(&self, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; fn Serialize(&self, fserializereplicakeymap: super::super::Foundation::BOOL, pbknowledge: *mut u8, pcbknowledge: *mut u32) -> windows_core::Result<()>; fn SetLocalTickCount(&self, ulltickcount: u64) -> windows_core::Result<()>; @@ -3383,56 +2534,32 @@ pub trait ISyncKnowledge_Impl: Sized { } impl windows_core::RuntimeName for ISyncKnowledge {} impl ISyncKnowledge_Vtbl { - pub const fn new() -> ISyncKnowledge_Vtbl - where - Identity: ISyncKnowledge_Impl, - { - unsafe extern "system" fn GetOwnerReplicaId(this: *mut core::ffi::c_void, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + pub const fn new() -> ISyncKnowledge_Vtbl { + unsafe extern "system" fn GetOwnerReplicaId(this: *mut core::ffi::c_void, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::GetOwnerReplicaId(this, core::mem::transmute_copy(&pbreplicaid), core::mem::transmute_copy(&pcbidsize)).into() } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, fserializereplicakeymap: super::super::Foundation::BOOL, pbknowledge: *mut u8, pcbknowledge: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, fserializereplicakeymap: super::super::Foundation::BOOL, pbknowledge: *mut u8, pcbknowledge: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::Serialize(this, core::mem::transmute_copy(&fserializereplicakeymap), core::mem::transmute_copy(&pbknowledge), core::mem::transmute_copy(&pcbknowledge)).into() } - unsafe extern "system" fn SetLocalTickCount(this: *mut core::ffi::c_void, ulltickcount: u64) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn SetLocalTickCount(this: *mut core::ffi::c_void, ulltickcount: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::SetLocalTickCount(this, core::mem::transmute_copy(&ulltickcount)).into() } - unsafe extern "system" fn ContainsChange(this: *mut core::ffi::c_void, pbversionownerreplicaid: *const u8, pgiditemid: *const u8, psyncversion: *const SYNC_VERSION) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn ContainsChange(this: *mut core::ffi::c_void, pbversionownerreplicaid: *const u8, pgiditemid: *const u8, psyncversion: *const SYNC_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::ContainsChange(this, core::mem::transmute_copy(&pbversionownerreplicaid), core::mem::transmute_copy(&pgiditemid), core::mem::transmute_copy(&psyncversion)).into() } - unsafe extern "system" fn ContainsChangeUnit(this: *mut core::ffi::c_void, pbversionownerreplicaid: *const u8, pbitemid: *const u8, pbchangeunitid: *const u8, psyncversion: *const SYNC_VERSION) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn ContainsChangeUnit(this: *mut core::ffi::c_void, pbversionownerreplicaid: *const u8, pbitemid: *const u8, pbchangeunitid: *const u8, psyncversion: *const SYNC_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::ContainsChangeUnit(this, core::mem::transmute_copy(&pbversionownerreplicaid), core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pbchangeunitid), core::mem::transmute_copy(&psyncversion)).into() } - unsafe extern "system" fn GetScopeVector(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn GetScopeVector(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::GetScopeVector(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn GetReplicaKeyMap(this: *mut core::ffi::c_void, ppreplicakeymap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn GetReplicaKeyMap(this: *mut core::ffi::c_void, ppreplicakeymap: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncKnowledge_Impl::GetReplicaKeyMap(this) { Ok(ok__) => { @@ -3442,10 +2569,7 @@ impl ISyncKnowledge_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppclonedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppclonedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncKnowledge_Impl::Clone(this) { Ok(ok__) => { @@ -3455,17 +2579,11 @@ impl ISyncKnowledge_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertVersion(this: *mut core::ffi::c_void, pknowledgein: *mut core::ffi::c_void, pbcurrentownerid: *const u8, pversionin: *const SYNC_VERSION, pbnewownerid: *mut u8, pcbidsize: *mut u32, pversionout: *mut SYNC_VERSION) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn ConvertVersion(this: *mut core::ffi::c_void, pknowledgein: *mut core::ffi::c_void, pbcurrentownerid: *const u8, pversionin: *const SYNC_VERSION, pbnewownerid: *mut u8, pcbidsize: *mut u32, pversionout: *mut SYNC_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::ConvertVersion(this, windows_core::from_raw_borrowed(&pknowledgein), core::mem::transmute_copy(&pbcurrentownerid), core::mem::transmute_copy(&pversionin), core::mem::transmute_copy(&pbnewownerid), core::mem::transmute_copy(&pcbidsize), core::mem::transmute_copy(&pversionout)).into() } - unsafe extern "system" fn MapRemoteToLocal(this: *mut core::ffi::c_void, premoteknowledge: *mut core::ffi::c_void, ppmappedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn MapRemoteToLocal(this: *mut core::ffi::c_void, premoteknowledge: *mut core::ffi::c_void, ppmappedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncKnowledge_Impl::MapRemoteToLocal(this, windows_core::from_raw_borrowed(&premoteknowledge)) { Ok(ok__) => { @@ -3475,17 +2593,11 @@ impl ISyncKnowledge_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Union(this: *mut core::ffi::c_void, pknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn Union(this: *mut core::ffi::c_void, pknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::Union(this, windows_core::from_raw_borrowed(&pknowledge)).into() } - unsafe extern "system" fn ProjectOntoItem(this: *mut core::ffi::c_void, pbitemid: *const u8, ppknowledgeout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn ProjectOntoItem(this: *mut core::ffi::c_void, pbitemid: *const u8, ppknowledgeout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncKnowledge_Impl::ProjectOntoItem(this, core::mem::transmute_copy(&pbitemid)) { Ok(ok__) => { @@ -3495,10 +2607,7 @@ impl ISyncKnowledge_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProjectOntoChangeUnit(this: *mut core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8, ppknowledgeout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn ProjectOntoChangeUnit(this: *mut core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8, ppknowledgeout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncKnowledge_Impl::ProjectOntoChangeUnit(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pbchangeunitid)) { Ok(ok__) => { @@ -3508,10 +2617,7 @@ impl ISyncKnowledge_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProjectOntoRange(this: *mut core::ffi::c_void, psrngsyncrange: *const SYNC_RANGE, ppknowledgeout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn ProjectOntoRange(this: *mut core::ffi::c_void, psrngsyncrange: *const SYNC_RANGE, ppknowledgeout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncKnowledge_Impl::ProjectOntoRange(this, core::mem::transmute_copy(&psrngsyncrange)) { Ok(ok__) => { @@ -3521,73 +2627,43 @@ impl ISyncKnowledge_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExcludeItem(this: *mut core::ffi::c_void, pbitemid: *const u8) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn ExcludeItem(this: *mut core::ffi::c_void, pbitemid: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::ExcludeItem(this, core::mem::transmute_copy(&pbitemid)).into() } - unsafe extern "system" fn ExcludeChangeUnit(this: *mut core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn ExcludeChangeUnit(this: *mut core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::ExcludeChangeUnit(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pbchangeunitid)).into() } - unsafe extern "system" fn ContainsKnowledge(this: *mut core::ffi::c_void, pknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn ContainsKnowledge(this: *mut core::ffi::c_void, pknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::ContainsKnowledge(this, windows_core::from_raw_borrowed(&pknowledge)).into() } - unsafe extern "system" fn FindMinTickCountForReplica(this: *mut core::ffi::c_void, pbreplicaid: *const u8, pullreplicatickcount: *mut u64) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn FindMinTickCountForReplica(this: *mut core::ffi::c_void, pbreplicaid: *const u8, pullreplicatickcount: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::FindMinTickCountForReplica(this, core::mem::transmute_copy(&pbreplicaid), core::mem::transmute_copy(&pullreplicatickcount)).into() } - unsafe extern "system" fn GetRangeExceptions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn GetRangeExceptions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::GetRangeExceptions(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn GetSingleItemExceptions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn GetSingleItemExceptions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::GetSingleItemExceptions(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn GetChangeUnitExceptions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn GetChangeUnitExceptions(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::GetChangeUnitExceptions(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn FindClockVectorForItem(this: *mut core::ffi::c_void, pbitemid: *const u8, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn FindClockVectorForItem(this: *mut core::ffi::c_void, pbitemid: *const u8, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::FindClockVectorForItem(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn FindClockVectorForChangeUnit(this: *mut core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn FindClockVectorForChangeUnit(this: *mut core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::FindClockVectorForChangeUnit(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pbchangeunitid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncKnowledge_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pdwversion: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::GetVersion(this, core::mem::transmute_copy(&pdwversion)).into() } @@ -3641,21 +2717,12 @@ pub trait ISyncKnowledge2_Impl: Sized + ISyncKnowledge_Impl { } impl windows_core::RuntimeName for ISyncKnowledge2 {} impl ISyncKnowledge2_Vtbl { - pub const fn new() -> ISyncKnowledge2_Vtbl - where - Identity: ISyncKnowledge2_Impl, - { - unsafe extern "system" fn GetIdParameters(this: *mut core::ffi::c_void, pidparameters: *mut ID_PARAMETERS) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + pub const fn new() -> ISyncKnowledge2_Vtbl { + unsafe extern "system" fn GetIdParameters(this: *mut core::ffi::c_void, pidparameters: *mut ID_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge2_Impl::GetIdParameters(this, core::mem::transmute_copy(&pidparameters)).into() } - unsafe extern "system" fn ProjectOntoColumnSet(this: *mut core::ffi::c_void, ppcolumns: *const *const u8, count: u32, ppiknowledgeout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn ProjectOntoColumnSet(this: *mut core::ffi::c_void, ppcolumns: *const *const u8, count: u32, ppiknowledgeout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncKnowledge2_Impl::ProjectOntoColumnSet(this, core::mem::transmute_copy(&ppcolumns), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -3665,59 +2732,35 @@ impl ISyncKnowledge2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SerializeWithOptions(this: *mut core::ffi::c_void, targetformatversion: SYNC_SERIALIZATION_VERSION, dwflags: u32, pbbuffer: *mut u8, pdwserializedsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn SerializeWithOptions(this: *mut core::ffi::c_void, targetformatversion: SYNC_SERIALIZATION_VERSION, dwflags: u32, pbbuffer: *mut u8, pdwserializedsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge2_Impl::SerializeWithOptions(this, core::mem::transmute_copy(&targetformatversion), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pbbuffer), core::mem::transmute_copy(&pdwserializedsize)).into() } - unsafe extern "system" fn GetLowestUncontainedId(this: *mut core::ffi::c_void, pisyncknowledge: *mut core::ffi::c_void, pbitemid: *mut u8, pcbitemidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn GetLowestUncontainedId(this: *mut core::ffi::c_void, pisyncknowledge: *mut core::ffi::c_void, pbitemid: *mut u8, pcbitemidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge2_Impl::GetLowestUncontainedId(this, windows_core::from_raw_borrowed(&pisyncknowledge), core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pcbitemidsize)).into() } - unsafe extern "system" fn GetInspector(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppiinspector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn GetInspector(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppiinspector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge2_Impl::GetInspector(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppiinspector)).into() } - unsafe extern "system" fn GetMinimumSupportedVersion(this: *mut core::ffi::c_void, pversion: *mut SYNC_SERIALIZATION_VERSION) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn GetMinimumSupportedVersion(this: *mut core::ffi::c_void, pversion: *mut SYNC_SERIALIZATION_VERSION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge2_Impl::GetMinimumSupportedVersion(this, core::mem::transmute_copy(&pversion)).into() } - unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, which: SYNC_STATISTICS, pvalue: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, which: SYNC_STATISTICS, pvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge2_Impl::GetStatistics(this, core::mem::transmute_copy(&which), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn ContainsKnowledgeForItem(this: *mut core::ffi::c_void, pknowledge: *mut core::ffi::c_void, pbitemid: *const u8) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn ContainsKnowledgeForItem(this: *mut core::ffi::c_void, pknowledge: *mut core::ffi::c_void, pbitemid: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge2_Impl::ContainsKnowledgeForItem(this, windows_core::from_raw_borrowed(&pknowledge), core::mem::transmute_copy(&pbitemid)).into() } - unsafe extern "system" fn ContainsKnowledgeForChangeUnit(this: *mut core::ffi::c_void, pknowledge: *mut core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn ContainsKnowledgeForChangeUnit(this: *mut core::ffi::c_void, pknowledge: *mut core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge2_Impl::ContainsKnowledgeForChangeUnit(this, windows_core::from_raw_borrowed(&pknowledge), core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pbchangeunitid)).into() } - unsafe extern "system" fn ProjectOntoKnowledgeWithPrerequisite(this: *mut core::ffi::c_void, pprerequisiteknowledge: *mut core::ffi::c_void, ptemplateknowledge: *mut core::ffi::c_void, ppprojectedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn ProjectOntoKnowledgeWithPrerequisite(this: *mut core::ffi::c_void, pprerequisiteknowledge: *mut core::ffi::c_void, ptemplateknowledge: *mut core::ffi::c_void, ppprojectedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncKnowledge2_Impl::ProjectOntoKnowledgeWithPrerequisite(this, windows_core::from_raw_borrowed(&pprerequisiteknowledge), windows_core::from_raw_borrowed(&ptemplateknowledge)) { Ok(ok__) => { @@ -3727,10 +2770,7 @@ impl ISyncKnowledge2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Complement(this: *mut core::ffi::c_void, psyncknowledge: *mut core::ffi::c_void, ppcomplementedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn Complement(this: *mut core::ffi::c_void, psyncknowledge: *mut core::ffi::c_void, ppcomplementedknowledge: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncKnowledge2_Impl::Complement(this, windows_core::from_raw_borrowed(&psyncknowledge)) { Ok(ok__) => { @@ -3740,17 +2780,11 @@ impl ISyncKnowledge2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IntersectsWithKnowledge(this: *mut core::ffi::c_void, psyncknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn IntersectsWithKnowledge(this: *mut core::ffi::c_void, psyncknowledge: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge2_Impl::IntersectsWithKnowledge(this, windows_core::from_raw_borrowed(&psyncknowledge)).into() } - unsafe extern "system" fn GetKnowledgeCookie(this: *mut core::ffi::c_void, ppknowledgecookie: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn GetKnowledgeCookie(this: *mut core::ffi::c_void, ppknowledgecookie: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncKnowledge2_Impl::GetKnowledgeCookie(this) { Ok(ok__) => { @@ -3760,10 +2794,7 @@ impl ISyncKnowledge2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareToKnowledgeCookie(this: *mut core::ffi::c_void, pknowledgecookie: *mut core::ffi::c_void, presult: *mut KNOWLEDGE_COOKIE_COMPARISON_RESULT) -> windows_core::HRESULT - where - Identity: ISyncKnowledge2_Impl, - { + unsafe extern "system" fn CompareToKnowledgeCookie(this: *mut core::ffi::c_void, pknowledgecookie: *mut core::ffi::c_void, presult: *mut KNOWLEDGE_COOKIE_COMPARISON_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge2_Impl::CompareToKnowledgeCookie(this, windows_core::from_raw_borrowed(&pknowledgecookie), core::mem::transmute_copy(&presult)).into() } @@ -3789,19 +2820,13 @@ impl ISyncKnowledge2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISyncMergeTombstoneChange_Impl: Sized { +pub trait ISyncMergeTombstoneChange_Impl: Sized + windows_core::IUnknownImpl { fn GetWinnerItemId(&self, pbwinneritemid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncMergeTombstoneChange {} impl ISyncMergeTombstoneChange_Vtbl { - pub const fn new() -> ISyncMergeTombstoneChange_Vtbl - where - Identity: ISyncMergeTombstoneChange_Impl, - { - unsafe extern "system" fn GetWinnerItemId(this: *mut core::ffi::c_void, pbwinneritemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMergeTombstoneChange_Impl, - { + pub const fn new() -> ISyncMergeTombstoneChange_Vtbl { + unsafe extern "system" fn GetWinnerItemId(this: *mut core::ffi::c_void, pbwinneritemid: *mut u8, pcbidsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMergeTombstoneChange_Impl::GetWinnerItemId(this, core::mem::transmute_copy(&pbwinneritemid), core::mem::transmute_copy(&pcbidsize)).into() } @@ -3811,19 +2836,13 @@ impl ISyncMergeTombstoneChange_Vtbl { iid == &::IID } } -pub trait ISyncProvider_Impl: Sized { +pub trait ISyncProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetIdParameters(&self, pidparameters: *mut ID_PARAMETERS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncProvider {} impl ISyncProvider_Vtbl { - pub const fn new() -> ISyncProvider_Vtbl - where - Identity: ISyncProvider_Impl, - { - unsafe extern "system" fn GetIdParameters(this: *mut core::ffi::c_void, pidparameters: *mut ID_PARAMETERS) -> windows_core::HRESULT - where - Identity: ISyncProvider_Impl, - { + pub const fn new() -> ISyncProvider_Vtbl { + unsafe extern "system" fn GetIdParameters(this: *mut core::ffi::c_void, pidparameters: *mut ID_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncProvider_Impl::GetIdParameters(this, core::mem::transmute_copy(&pidparameters)).into() } @@ -3834,7 +2853,7 @@ impl ISyncProvider_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ISyncProviderConfigUI_Impl: Sized { +pub trait ISyncProviderConfigUI_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, pguidinstanceid: *const windows_core::GUID, pguidcontenttype: *const windows_core::GUID, pconfigurationproperties: Option<&super::super::UI::Shell::PropertiesSystem::IPropertyStore>) -> windows_core::Result<()>; fn GetRegisteredProperties(&self) -> windows_core::Result; fn CreateAndRegisterNewSyncProvider(&self, hwndparent: super::super::Foundation::HWND, punkcontext: Option<&windows_core::IUnknown>) -> windows_core::Result; @@ -3844,21 +2863,12 @@ pub trait ISyncProviderConfigUI_Impl: Sized { impl windows_core::RuntimeName for ISyncProviderConfigUI {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISyncProviderConfigUI_Vtbl { - pub const fn new() -> ISyncProviderConfigUI_Vtbl - where - Identity: ISyncProviderConfigUI_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, pguidcontenttype: *const windows_core::GUID, pconfigurationproperties: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderConfigUI_Impl, - { + pub const fn new() -> ISyncProviderConfigUI_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, pguidcontenttype: *const windows_core::GUID, pconfigurationproperties: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncProviderConfigUI_Impl::Init(this, core::mem::transmute_copy(&pguidinstanceid), core::mem::transmute_copy(&pguidcontenttype), windows_core::from_raw_borrowed(&pconfigurationproperties)).into() } - unsafe extern "system" fn GetRegisteredProperties(this: *mut core::ffi::c_void, ppconfiguiproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderConfigUI_Impl, - { + unsafe extern "system" fn GetRegisteredProperties(this: *mut core::ffi::c_void, ppconfiguiproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderConfigUI_Impl::GetRegisteredProperties(this) { Ok(ok__) => { @@ -3868,10 +2878,7 @@ impl ISyncProviderConfigUI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAndRegisterNewSyncProvider(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, punkcontext: *mut core::ffi::c_void, ppproviderinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderConfigUI_Impl, - { + unsafe extern "system" fn CreateAndRegisterNewSyncProvider(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, punkcontext: *mut core::ffi::c_void, ppproviderinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderConfigUI_Impl::CreateAndRegisterNewSyncProvider(this, core::mem::transmute_copy(&hwndparent), windows_core::from_raw_borrowed(&punkcontext)) { Ok(ok__) => { @@ -3881,10 +2888,7 @@ impl ISyncProviderConfigUI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifySyncProvider(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, punkcontext: *mut core::ffi::c_void, pproviderinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderConfigUI_Impl, - { + unsafe extern "system" fn ModifySyncProvider(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, punkcontext: *mut core::ffi::c_void, pproviderinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncProviderConfigUI_Impl::ModifySyncProvider(this, core::mem::transmute_copy(&hwndparent), windows_core::from_raw_borrowed(&punkcontext), windows_core::from_raw_borrowed(&pproviderinfo)).into() } @@ -3908,14 +2912,8 @@ pub trait ISyncProviderConfigUIInfo_Impl: Sized + super::super::UI::Shell::Prope impl windows_core::RuntimeName for ISyncProviderConfigUIInfo {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISyncProviderConfigUIInfo_Vtbl { - pub const fn new() -> ISyncProviderConfigUIInfo_Vtbl - where - Identity: ISyncProviderConfigUIInfo_Impl, - { - unsafe extern "system" fn GetSyncProviderConfigUI(this: *mut core::ffi::c_void, dwclscontext: u32, ppsyncproviderconfigui: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderConfigUIInfo_Impl, - { + pub const fn new() -> ISyncProviderConfigUIInfo_Vtbl { + unsafe extern "system" fn GetSyncProviderConfigUI(this: *mut core::ffi::c_void, dwclscontext: u32, ppsyncproviderconfigui: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderConfigUIInfo_Impl::GetSyncProviderConfigUI(this, core::mem::transmute_copy(&dwclscontext)) { Ok(ok__) => { @@ -3942,14 +2940,8 @@ pub trait ISyncProviderInfo_Impl: Sized + super::super::UI::Shell::PropertiesSys impl windows_core::RuntimeName for ISyncProviderInfo {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISyncProviderInfo_Vtbl { - pub const fn new() -> ISyncProviderInfo_Vtbl - where - Identity: ISyncProviderInfo_Impl, - { - unsafe extern "system" fn GetSyncProvider(this: *mut core::ffi::c_void, dwclscontext: u32, ppsyncprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderInfo_Impl, - { + pub const fn new() -> ISyncProviderInfo_Vtbl { + unsafe extern "system" fn GetSyncProvider(this: *mut core::ffi::c_void, dwclscontext: u32, ppsyncprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderInfo_Impl::GetSyncProvider(this, core::mem::transmute_copy(&dwclscontext)) { Ok(ok__) => { @@ -3969,7 +2961,7 @@ impl ISyncProviderInfo_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ISyncProviderRegistration_Impl: Sized { +pub trait ISyncProviderRegistration_Impl: Sized + windows_core::IUnknownImpl { fn CreateSyncProviderConfigUIRegistrationInstance(&self, pconfiguiconfig: *const SyncProviderConfigUIConfiguration) -> windows_core::Result; fn UnregisterSyncProviderConfigUI(&self, pguidinstanceid: *const windows_core::GUID) -> windows_core::Result<()>; fn EnumerateSyncProviderConfigUIs(&self, pguidcontenttype: *const windows_core::GUID, dwsupportedarchitecture: u32) -> windows_core::Result; @@ -3991,14 +2983,8 @@ pub trait ISyncProviderRegistration_Impl: Sized { impl windows_core::RuntimeName for ISyncProviderRegistration {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISyncProviderRegistration_Vtbl { - pub const fn new() -> ISyncProviderRegistration_Vtbl - where - Identity: ISyncProviderRegistration_Impl, - { - unsafe extern "system" fn CreateSyncProviderConfigUIRegistrationInstance(this: *mut core::ffi::c_void, pconfiguiconfig: *const SyncProviderConfigUIConfiguration, ppconfiguiinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + pub const fn new() -> ISyncProviderRegistration_Vtbl { + unsafe extern "system" fn CreateSyncProviderConfigUIRegistrationInstance(this: *mut core::ffi::c_void, pconfiguiconfig: *const SyncProviderConfigUIConfiguration, ppconfiguiinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::CreateSyncProviderConfigUIRegistrationInstance(this, core::mem::transmute_copy(&pconfiguiconfig)) { Ok(ok__) => { @@ -4008,17 +2994,11 @@ impl ISyncProviderRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterSyncProviderConfigUI(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn UnregisterSyncProviderConfigUI(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncProviderRegistration_Impl::UnregisterSyncProviderConfigUI(this, core::mem::transmute_copy(&pguidinstanceid)).into() } - unsafe extern "system" fn EnumerateSyncProviderConfigUIs(this: *mut core::ffi::c_void, pguidcontenttype: *const windows_core::GUID, dwsupportedarchitecture: u32, ppenumsyncproviderconfiguiinfos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn EnumerateSyncProviderConfigUIs(this: *mut core::ffi::c_void, pguidcontenttype: *const windows_core::GUID, dwsupportedarchitecture: u32, ppenumsyncproviderconfiguiinfos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::EnumerateSyncProviderConfigUIs(this, core::mem::transmute_copy(&pguidcontenttype), core::mem::transmute_copy(&dwsupportedarchitecture)) { Ok(ok__) => { @@ -4028,10 +3008,7 @@ impl ISyncProviderRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSyncProviderRegistrationInstance(this: *mut core::ffi::c_void, pproviderconfiguration: *const SyncProviderConfiguration, ppproviderinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn CreateSyncProviderRegistrationInstance(this: *mut core::ffi::c_void, pproviderconfiguration: *const SyncProviderConfiguration, ppproviderinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::CreateSyncProviderRegistrationInstance(this, core::mem::transmute_copy(&pproviderconfiguration)) { Ok(ok__) => { @@ -4041,17 +3018,11 @@ impl ISyncProviderRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterSyncProvider(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn UnregisterSyncProvider(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncProviderRegistration_Impl::UnregisterSyncProvider(this, core::mem::transmute_copy(&pguidinstanceid)).into() } - unsafe extern "system" fn GetSyncProviderConfigUIInfoforProvider(this: *mut core::ffi::c_void, pguidproviderinstanceid: *const windows_core::GUID, ppproviderconfiguiinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn GetSyncProviderConfigUIInfoforProvider(this: *mut core::ffi::c_void, pguidproviderinstanceid: *const windows_core::GUID, ppproviderconfiguiinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::GetSyncProviderConfigUIInfoforProvider(this, core::mem::transmute_copy(&pguidproviderinstanceid)) { Ok(ok__) => { @@ -4061,10 +3032,7 @@ impl ISyncProviderRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateSyncProviders(this: *mut core::ffi::c_void, pguidcontenttype: *const windows_core::GUID, dwstateflagstofiltermask: u32, dwstateflagstofilter: u32, refproviderclsid: *const windows_core::GUID, dwsupportedarchitecture: u32, ppenumsyncproviderinfos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn EnumerateSyncProviders(this: *mut core::ffi::c_void, pguidcontenttype: *const windows_core::GUID, dwstateflagstofiltermask: u32, dwstateflagstofilter: u32, refproviderclsid: *const windows_core::GUID, dwsupportedarchitecture: u32, ppenumsyncproviderinfos: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::EnumerateSyncProviders(this, core::mem::transmute_copy(&pguidcontenttype), core::mem::transmute_copy(&dwstateflagstofiltermask), core::mem::transmute_copy(&dwstateflagstofilter), core::mem::transmute_copy(&refproviderclsid), core::mem::transmute_copy(&dwsupportedarchitecture)) { Ok(ok__) => { @@ -4074,10 +3042,7 @@ impl ISyncProviderRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSyncProviderInfo(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, ppproviderinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn GetSyncProviderInfo(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, ppproviderinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::GetSyncProviderInfo(this, core::mem::transmute_copy(&pguidinstanceid)) { Ok(ok__) => { @@ -4087,10 +3052,7 @@ impl ISyncProviderRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSyncProviderFromInstanceId(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, dwclscontext: u32, ppsyncprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn GetSyncProviderFromInstanceId(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, dwclscontext: u32, ppsyncprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::GetSyncProviderFromInstanceId(this, core::mem::transmute_copy(&pguidinstanceid), core::mem::transmute_copy(&dwclscontext)) { Ok(ok__) => { @@ -4100,10 +3062,7 @@ impl ISyncProviderRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSyncProviderConfigUIInfo(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, ppconfiguiinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn GetSyncProviderConfigUIInfo(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, ppconfiguiinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::GetSyncProviderConfigUIInfo(this, core::mem::transmute_copy(&pguidinstanceid)) { Ok(ok__) => { @@ -4113,10 +3072,7 @@ impl ISyncProviderRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSyncProviderConfigUIFromInstanceId(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, dwclscontext: u32, ppconfigui: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn GetSyncProviderConfigUIFromInstanceId(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, dwclscontext: u32, ppconfigui: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::GetSyncProviderConfigUIFromInstanceId(this, core::mem::transmute_copy(&pguidinstanceid), core::mem::transmute_copy(&dwclscontext)) { Ok(ok__) => { @@ -4126,10 +3082,7 @@ impl ISyncProviderRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSyncProviderState(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, pdwstateflags: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn GetSyncProviderState(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, pdwstateflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::GetSyncProviderState(this, core::mem::transmute_copy(&pguidinstanceid)) { Ok(ok__) => { @@ -4139,31 +3092,19 @@ impl ISyncProviderRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSyncProviderState(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, dwstateflagsmask: u32, dwstateflags: u32) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn SetSyncProviderState(this: *mut core::ffi::c_void, pguidinstanceid: *const windows_core::GUID, dwstateflagsmask: u32, dwstateflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncProviderRegistration_Impl::SetSyncProviderState(this, core::mem::transmute_copy(&pguidinstanceid), core::mem::transmute_copy(&dwstateflagsmask), core::mem::transmute_copy(&dwstateflags)).into() } - unsafe extern "system" fn RegisterForEvent(this: *mut core::ffi::c_void, phevent: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn RegisterForEvent(this: *mut core::ffi::c_void, phevent: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncProviderRegistration_Impl::RegisterForEvent(this, core::mem::transmute_copy(&phevent)).into() } - unsafe extern "system" fn RevokeEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn RevokeEvent(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncProviderRegistration_Impl::RevokeEvent(this, core::mem::transmute_copy(&hevent)).into() } - unsafe extern "system" fn GetChange(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, ppchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncProviderRegistration_Impl, - { + unsafe extern "system" fn GetChange(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, ppchange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncProviderRegistration_Impl::GetChange(this, core::mem::transmute_copy(&hevent)) { Ok(ok__) => { @@ -4197,20 +3138,14 @@ impl ISyncProviderRegistration_Vtbl { iid == &::IID } } -pub trait ISyncRegistrationChange_Impl: Sized { +pub trait ISyncRegistrationChange_Impl: Sized + windows_core::IUnknownImpl { fn GetEvent(&self) -> windows_core::Result; fn GetInstanceId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISyncRegistrationChange {} impl ISyncRegistrationChange_Vtbl { - pub const fn new() -> ISyncRegistrationChange_Vtbl - where - Identity: ISyncRegistrationChange_Impl, - { - unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, psreevent: *mut SYNC_REGISTRATION_EVENT) -> windows_core::HRESULT - where - Identity: ISyncRegistrationChange_Impl, - { + pub const fn new() -> ISyncRegistrationChange_Vtbl { + unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, psreevent: *mut SYNC_REGISTRATION_EVENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncRegistrationChange_Impl::GetEvent(this) { Ok(ok__) => { @@ -4220,10 +3155,7 @@ impl ISyncRegistrationChange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInstanceId(this: *mut core::ffi::c_void, pguidinstanceid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISyncRegistrationChange_Impl, - { + unsafe extern "system" fn GetInstanceId(this: *mut core::ffi::c_void, pguidinstanceid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncRegistrationChange_Impl::GetInstanceId(this) { Ok(ok__) => { @@ -4243,19 +3175,13 @@ impl ISyncRegistrationChange_Vtbl { iid == &::IID } } -pub trait ISyncSessionExtendedErrorInfo_Impl: Sized { +pub trait ISyncSessionExtendedErrorInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetSyncProviderWithError(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISyncSessionExtendedErrorInfo {} impl ISyncSessionExtendedErrorInfo_Vtbl { - pub const fn new() -> ISyncSessionExtendedErrorInfo_Vtbl - where - Identity: ISyncSessionExtendedErrorInfo_Impl, - { - unsafe extern "system" fn GetSyncProviderWithError(this: *mut core::ffi::c_void, ppproviderwitherror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncSessionExtendedErrorInfo_Impl, - { + pub const fn new() -> ISyncSessionExtendedErrorInfo_Vtbl { + unsafe extern "system" fn GetSyncProviderWithError(this: *mut core::ffi::c_void, ppproviderwitherror: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncSessionExtendedErrorInfo_Impl::GetSyncProviderWithError(this) { Ok(ok__) => { @@ -4271,7 +3197,7 @@ impl ISyncSessionExtendedErrorInfo_Vtbl { iid == &::IID } } -pub trait ISyncSessionState_Impl: Sized { +pub trait ISyncSessionState_Impl: Sized + windows_core::IUnknownImpl { fn IsCanceled(&self, pfiscanceled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetInfoForChangeApplication(&self, pbchangeapplierinfo: *mut u8, pcbchangeapplierinfo: *mut u32) -> windows_core::Result<()>; fn LoadInfoFromChangeApplication(&self, pbchangeapplierinfo: *const u8, cbchangeapplierinfo: u32) -> windows_core::Result<()>; @@ -4282,56 +3208,32 @@ pub trait ISyncSessionState_Impl: Sized { } impl windows_core::RuntimeName for ISyncSessionState {} impl ISyncSessionState_Vtbl { - pub const fn new() -> ISyncSessionState_Vtbl - where - Identity: ISyncSessionState_Impl, - { - unsafe extern "system" fn IsCanceled(this: *mut core::ffi::c_void, pfiscanceled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncSessionState_Impl, - { + pub const fn new() -> ISyncSessionState_Vtbl { + unsafe extern "system" fn IsCanceled(this: *mut core::ffi::c_void, pfiscanceled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState_Impl::IsCanceled(this, core::mem::transmute_copy(&pfiscanceled)).into() } - unsafe extern "system" fn GetInfoForChangeApplication(this: *mut core::ffi::c_void, pbchangeapplierinfo: *mut u8, pcbchangeapplierinfo: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncSessionState_Impl, - { + unsafe extern "system" fn GetInfoForChangeApplication(this: *mut core::ffi::c_void, pbchangeapplierinfo: *mut u8, pcbchangeapplierinfo: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState_Impl::GetInfoForChangeApplication(this, core::mem::transmute_copy(&pbchangeapplierinfo), core::mem::transmute_copy(&pcbchangeapplierinfo)).into() } - unsafe extern "system" fn LoadInfoFromChangeApplication(this: *mut core::ffi::c_void, pbchangeapplierinfo: *const u8, cbchangeapplierinfo: u32) -> windows_core::HRESULT - where - Identity: ISyncSessionState_Impl, - { + unsafe extern "system" fn LoadInfoFromChangeApplication(this: *mut core::ffi::c_void, pbchangeapplierinfo: *const u8, cbchangeapplierinfo: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState_Impl::LoadInfoFromChangeApplication(this, core::mem::transmute_copy(&pbchangeapplierinfo), core::mem::transmute_copy(&cbchangeapplierinfo)).into() } - unsafe extern "system" fn GetForgottenKnowledgeRecoveryRangeStart(this: *mut core::ffi::c_void, pbrangestart: *mut u8, pcbrangestart: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncSessionState_Impl, - { + unsafe extern "system" fn GetForgottenKnowledgeRecoveryRangeStart(this: *mut core::ffi::c_void, pbrangestart: *mut u8, pcbrangestart: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState_Impl::GetForgottenKnowledgeRecoveryRangeStart(this, core::mem::transmute_copy(&pbrangestart), core::mem::transmute_copy(&pcbrangestart)).into() } - unsafe extern "system" fn GetForgottenKnowledgeRecoveryRangeEnd(this: *mut core::ffi::c_void, pbrangeend: *mut u8, pcbrangeend: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncSessionState_Impl, - { + unsafe extern "system" fn GetForgottenKnowledgeRecoveryRangeEnd(this: *mut core::ffi::c_void, pbrangeend: *mut u8, pcbrangeend: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState_Impl::GetForgottenKnowledgeRecoveryRangeEnd(this, core::mem::transmute_copy(&pbrangeend), core::mem::transmute_copy(&pcbrangeend)).into() } - unsafe extern "system" fn SetForgottenKnowledgeRecoveryRange(this: *mut core::ffi::c_void, prange: *const SYNC_RANGE) -> windows_core::HRESULT - where - Identity: ISyncSessionState_Impl, - { + unsafe extern "system" fn SetForgottenKnowledgeRecoveryRange(this: *mut core::ffi::c_void, prange: *const SYNC_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState_Impl::SetForgottenKnowledgeRecoveryRange(this, core::mem::transmute_copy(&prange)).into() } - unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, provider: SYNC_PROVIDER_ROLE, syncstage: SYNC_PROGRESS_STAGE, dwcompletedwork: u32, dwtotalwork: u32) -> windows_core::HRESULT - where - Identity: ISyncSessionState_Impl, - { + unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, provider: SYNC_PROVIDER_ROLE, syncstage: SYNC_PROGRESS_STAGE, dwcompletedwork: u32, dwtotalwork: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState_Impl::OnProgress(this, core::mem::transmute_copy(&provider), core::mem::transmute_copy(&syncstage), core::mem::transmute_copy(&dwcompletedwork), core::mem::transmute_copy(&dwtotalwork)).into() } @@ -4356,21 +3258,12 @@ pub trait ISyncSessionState2_Impl: Sized + ISyncSessionState_Impl { } impl windows_core::RuntimeName for ISyncSessionState2 {} impl ISyncSessionState2_Vtbl { - pub const fn new() -> ISyncSessionState2_Vtbl - where - Identity: ISyncSessionState2_Impl, - { - unsafe extern "system" fn SetProviderWithError(this: *mut core::ffi::c_void, fself: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncSessionState2_Impl, - { + pub const fn new() -> ISyncSessionState2_Vtbl { + unsafe extern "system" fn SetProviderWithError(this: *mut core::ffi::c_void, fself: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState2_Impl::SetProviderWithError(this, core::mem::transmute_copy(&fself)).into() } - unsafe extern "system" fn GetSessionErrorStatus(this: *mut core::ffi::c_void, phrsessionerror: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISyncSessionState2_Impl, - { + unsafe extern "system" fn GetSessionErrorStatus(this: *mut core::ffi::c_void, phrsessionerror: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState2_Impl::GetSessionErrorStatus(this, core::mem::transmute_copy(&phrsessionerror)).into() } @@ -4384,27 +3277,18 @@ impl ISyncSessionState2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISynchronousDataRetriever_Impl: Sized { +pub trait ISynchronousDataRetriever_Impl: Sized + windows_core::IUnknownImpl { fn GetIdParameters(&self, pidparameters: *mut ID_PARAMETERS) -> windows_core::Result<()>; fn LoadChangeData(&self, ploadchangecontext: Option<&ILoadChangeContext>) -> windows_core::Result; } impl windows_core::RuntimeName for ISynchronousDataRetriever {} impl ISynchronousDataRetriever_Vtbl { - pub const fn new() -> ISynchronousDataRetriever_Vtbl - where - Identity: ISynchronousDataRetriever_Impl, - { - unsafe extern "system" fn GetIdParameters(this: *mut core::ffi::c_void, pidparameters: *mut ID_PARAMETERS) -> windows_core::HRESULT - where - Identity: ISynchronousDataRetriever_Impl, - { + pub const fn new() -> ISynchronousDataRetriever_Vtbl { + unsafe extern "system" fn GetIdParameters(this: *mut core::ffi::c_void, pidparameters: *mut ID_PARAMETERS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISynchronousDataRetriever_Impl::GetIdParameters(this, core::mem::transmute_copy(&pidparameters)).into() } - unsafe extern "system" fn LoadChangeData(this: *mut core::ffi::c_void, ploadchangecontext: *mut core::ffi::c_void, ppunkdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISynchronousDataRetriever_Impl, - { + unsafe extern "system" fn LoadChangeData(this: *mut core::ffi::c_void, ploadchangecontext: *mut core::ffi::c_void, ppunkdata: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISynchronousDataRetriever_Impl::LoadChangeData(this, windows_core::from_raw_borrowed(&ploadchangecontext)) { Ok(ok__) => { 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 45ea41a503..fc5d0b98e3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Wmi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Wmi/impl.rs @@ -1,4 +1,4 @@ -pub trait IEnumWbemClassObject_Impl: Sized { +pub trait IEnumWbemClassObject_Impl: Sized + windows_core::IUnknownImpl { fn Reset(&self) -> windows_core::Result<()>; fn Next(&self, ltimeout: i32, ucount: u32, apobjects: *mut Option, pureturned: *mut u32) -> windows_core::HRESULT; fn NextAsync(&self, ucount: u32, psink: Option<&IWbemObjectSink>) -> windows_core::HRESULT; @@ -7,35 +7,20 @@ pub trait IEnumWbemClassObject_Impl: Sized { } impl windows_core::RuntimeName for IEnumWbemClassObject {} impl IEnumWbemClassObject_Vtbl { - pub const fn new() -> IEnumWbemClassObject_Vtbl - where - Identity: IEnumWbemClassObject_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWbemClassObject_Impl, - { + pub const fn new() -> IEnumWbemClassObject_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWbemClassObject_Impl::Reset(this).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ltimeout: i32, ucount: u32, apobjects: *mut *mut core::ffi::c_void, pureturned: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumWbemClassObject_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ltimeout: i32, ucount: u32, apobjects: *mut *mut core::ffi::c_void, pureturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWbemClassObject_Impl::Next(this, core::mem::transmute_copy(<imeout), core::mem::transmute_copy(&ucount), core::mem::transmute_copy(&apobjects), core::mem::transmute_copy(&pureturned)) } - unsafe extern "system" fn NextAsync(this: *mut core::ffi::c_void, ucount: u32, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWbemClassObject_Impl, - { + unsafe extern "system" fn NextAsync(this: *mut core::ffi::c_void, ucount: u32, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWbemClassObject_Impl::NextAsync(this, core::mem::transmute_copy(&ucount), windows_core::from_raw_borrowed(&psink)) } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumWbemClassObject_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumWbemClassObject_Impl::Clone(this) { Ok(ok__) => { @@ -45,10 +30,7 @@ impl IEnumWbemClassObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ltimeout: i32, ncount: u32) -> windows_core::HRESULT - where - Identity: IEnumWbemClassObject_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ltimeout: i32, ncount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumWbemClassObject_Impl::Skip(this, core::mem::transmute_copy(<imeout), core::mem::transmute_copy(&ncount)) } @@ -65,35 +47,23 @@ impl IEnumWbemClassObject_Vtbl { iid == &::IID } } -pub trait IMofCompiler_Impl: Sized { +pub trait IMofCompiler_Impl: Sized + windows_core::IUnknownImpl { fn CompileFile(&self, filename: &windows_core::PCWSTR, serverandnamespace: &windows_core::PCWSTR, user: &windows_core::PCWSTR, authority: &windows_core::PCWSTR, password: &windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::Result<()>; fn CompileBuffer(&self, buffsize: i32, pbuffer: *const u8, serverandnamespace: &windows_core::PCWSTR, user: &windows_core::PCWSTR, authority: &windows_core::PCWSTR, password: &windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::Result<()>; fn CreateBMOF(&self, textfilename: &windows_core::PCWSTR, bmoffilename: &windows_core::PCWSTR, serverandnamespace: &windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMofCompiler {} impl IMofCompiler_Vtbl { - pub const fn new() -> IMofCompiler_Vtbl - where - Identity: IMofCompiler_Impl, - { - unsafe extern "system" fn CompileFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, serverandnamespace: windows_core::PCWSTR, user: windows_core::PCWSTR, authority: windows_core::PCWSTR, password: windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::HRESULT - where - Identity: IMofCompiler_Impl, - { + pub const fn new() -> IMofCompiler_Vtbl { + unsafe extern "system" fn CompileFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, serverandnamespace: windows_core::PCWSTR, user: windows_core::PCWSTR, authority: windows_core::PCWSTR, password: windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMofCompiler_Impl::CompileFile(this, core::mem::transmute(&filename), core::mem::transmute(&serverandnamespace), core::mem::transmute(&user), core::mem::transmute(&authority), core::mem::transmute(&password), core::mem::transmute_copy(&loptionflags), core::mem::transmute_copy(&lclassflags), core::mem::transmute_copy(&linstanceflags), core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn CompileBuffer(this: *mut core::ffi::c_void, buffsize: i32, pbuffer: *const u8, serverandnamespace: windows_core::PCWSTR, user: windows_core::PCWSTR, authority: windows_core::PCWSTR, password: windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::HRESULT - where - Identity: IMofCompiler_Impl, - { + unsafe extern "system" fn CompileBuffer(this: *mut core::ffi::c_void, buffsize: i32, pbuffer: *const u8, serverandnamespace: windows_core::PCWSTR, user: windows_core::PCWSTR, authority: windows_core::PCWSTR, password: windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMofCompiler_Impl::CompileBuffer(this, core::mem::transmute_copy(&buffsize), core::mem::transmute_copy(&pbuffer), core::mem::transmute(&serverandnamespace), core::mem::transmute(&user), core::mem::transmute(&authority), core::mem::transmute(&password), core::mem::transmute_copy(&loptionflags), core::mem::transmute_copy(&lclassflags), core::mem::transmute_copy(&linstanceflags), core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn CreateBMOF(this: *mut core::ffi::c_void, textfilename: windows_core::PCWSTR, bmoffilename: windows_core::PCWSTR, serverandnamespace: windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::HRESULT - where - Identity: IMofCompiler_Impl, - { + unsafe extern "system" fn CreateBMOF(this: *mut core::ffi::c_void, textfilename: windows_core::PCWSTR, bmoffilename: windows_core::PCWSTR, serverandnamespace: windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMofCompiler_Impl::CreateBMOF(this, core::mem::transmute(&textfilename), core::mem::transmute(&bmoffilename), core::mem::transmute(&serverandnamespace), core::mem::transmute_copy(&loptionflags), core::mem::transmute_copy(&lclassflags), core::mem::transmute_copy(&linstanceflags), core::mem::transmute_copy(&pinfo)).into() } @@ -155,14 +125,8 @@ pub trait ISWbemDateTime_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemDateTime {} #[cfg(feature = "Win32_System_Com")] impl ISWbemDateTime_Vtbl { - pub const fn new() -> ISWbemDateTime_Vtbl - where - Identity: ISWbemDateTime_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + pub const fn new() -> ISWbemDateTime_Vtbl { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, strvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::Value(this) { Ok(ok__) => { @@ -172,17 +136,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, strvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetValue(this, core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn Year(this: *mut core::ffi::c_void, iyear: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn Year(this: *mut core::ffi::c_void, iyear: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::Year(this) { Ok(ok__) => { @@ -192,17 +150,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetYear(this: *mut core::ffi::c_void, iyear: i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetYear(this: *mut core::ffi::c_void, iyear: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetYear(this, core::mem::transmute_copy(&iyear)).into() } - unsafe extern "system" fn YearSpecified(this: *mut core::ffi::c_void, byearspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn YearSpecified(this: *mut core::ffi::c_void, byearspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::YearSpecified(this) { Ok(ok__) => { @@ -212,17 +164,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetYearSpecified(this: *mut core::ffi::c_void, byearspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetYearSpecified(this: *mut core::ffi::c_void, byearspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetYearSpecified(this, core::mem::transmute_copy(&byearspecified)).into() } - unsafe extern "system" fn Month(this: *mut core::ffi::c_void, imonth: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn Month(this: *mut core::ffi::c_void, imonth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::Month(this) { Ok(ok__) => { @@ -232,17 +178,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMonth(this: *mut core::ffi::c_void, imonth: i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetMonth(this: *mut core::ffi::c_void, imonth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetMonth(this, core::mem::transmute_copy(&imonth)).into() } - unsafe extern "system" fn MonthSpecified(this: *mut core::ffi::c_void, bmonthspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn MonthSpecified(this: *mut core::ffi::c_void, bmonthspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::MonthSpecified(this) { Ok(ok__) => { @@ -252,17 +192,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMonthSpecified(this: *mut core::ffi::c_void, bmonthspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetMonthSpecified(this: *mut core::ffi::c_void, bmonthspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetMonthSpecified(this, core::mem::transmute_copy(&bmonthspecified)).into() } - unsafe extern "system" fn Day(this: *mut core::ffi::c_void, iday: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn Day(this: *mut core::ffi::c_void, iday: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::Day(this) { Ok(ok__) => { @@ -272,17 +206,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDay(this: *mut core::ffi::c_void, iday: i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetDay(this: *mut core::ffi::c_void, iday: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetDay(this, core::mem::transmute_copy(&iday)).into() } - unsafe extern "system" fn DaySpecified(this: *mut core::ffi::c_void, bdayspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn DaySpecified(this: *mut core::ffi::c_void, bdayspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::DaySpecified(this) { Ok(ok__) => { @@ -292,17 +220,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDaySpecified(this: *mut core::ffi::c_void, bdayspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetDaySpecified(this: *mut core::ffi::c_void, bdayspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetDaySpecified(this, core::mem::transmute_copy(&bdayspecified)).into() } - unsafe extern "system" fn Hours(this: *mut core::ffi::c_void, ihours: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn Hours(this: *mut core::ffi::c_void, ihours: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::Hours(this) { Ok(ok__) => { @@ -312,17 +234,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHours(this: *mut core::ffi::c_void, ihours: i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetHours(this: *mut core::ffi::c_void, ihours: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetHours(this, core::mem::transmute_copy(&ihours)).into() } - unsafe extern "system" fn HoursSpecified(this: *mut core::ffi::c_void, bhoursspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn HoursSpecified(this: *mut core::ffi::c_void, bhoursspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::HoursSpecified(this) { Ok(ok__) => { @@ -332,17 +248,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHoursSpecified(this: *mut core::ffi::c_void, bhoursspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetHoursSpecified(this: *mut core::ffi::c_void, bhoursspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetHoursSpecified(this, core::mem::transmute_copy(&bhoursspecified)).into() } - unsafe extern "system" fn Minutes(this: *mut core::ffi::c_void, iminutes: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn Minutes(this: *mut core::ffi::c_void, iminutes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::Minutes(this) { Ok(ok__) => { @@ -352,17 +262,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinutes(this: *mut core::ffi::c_void, iminutes: i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetMinutes(this: *mut core::ffi::c_void, iminutes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetMinutes(this, core::mem::transmute_copy(&iminutes)).into() } - unsafe extern "system" fn MinutesSpecified(this: *mut core::ffi::c_void, bminutesspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn MinutesSpecified(this: *mut core::ffi::c_void, bminutesspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::MinutesSpecified(this) { Ok(ok__) => { @@ -372,17 +276,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinutesSpecified(this: *mut core::ffi::c_void, bminutesspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetMinutesSpecified(this: *mut core::ffi::c_void, bminutesspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetMinutesSpecified(this, core::mem::transmute_copy(&bminutesspecified)).into() } - unsafe extern "system" fn Seconds(this: *mut core::ffi::c_void, iseconds: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn Seconds(this: *mut core::ffi::c_void, iseconds: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::Seconds(this) { Ok(ok__) => { @@ -392,17 +290,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSeconds(this: *mut core::ffi::c_void, iseconds: i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetSeconds(this: *mut core::ffi::c_void, iseconds: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetSeconds(this, core::mem::transmute_copy(&iseconds)).into() } - unsafe extern "system" fn SecondsSpecified(this: *mut core::ffi::c_void, bsecondsspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SecondsSpecified(this: *mut core::ffi::c_void, bsecondsspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::SecondsSpecified(this) { Ok(ok__) => { @@ -412,17 +304,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSecondsSpecified(this: *mut core::ffi::c_void, bsecondsspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetSecondsSpecified(this: *mut core::ffi::c_void, bsecondsspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetSecondsSpecified(this, core::mem::transmute_copy(&bsecondsspecified)).into() } - unsafe extern "system" fn Microseconds(this: *mut core::ffi::c_void, imicroseconds: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn Microseconds(this: *mut core::ffi::c_void, imicroseconds: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::Microseconds(this) { Ok(ok__) => { @@ -432,17 +318,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMicroseconds(this: *mut core::ffi::c_void, imicroseconds: i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetMicroseconds(this: *mut core::ffi::c_void, imicroseconds: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetMicroseconds(this, core::mem::transmute_copy(&imicroseconds)).into() } - unsafe extern "system" fn MicrosecondsSpecified(this: *mut core::ffi::c_void, bmicrosecondsspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn MicrosecondsSpecified(this: *mut core::ffi::c_void, bmicrosecondsspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::MicrosecondsSpecified(this) { Ok(ok__) => { @@ -452,17 +332,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMicrosecondsSpecified(this: *mut core::ffi::c_void, bmicrosecondsspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetMicrosecondsSpecified(this: *mut core::ffi::c_void, bmicrosecondsspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetMicrosecondsSpecified(this, core::mem::transmute_copy(&bmicrosecondsspecified)).into() } - unsafe extern "system" fn UTC(this: *mut core::ffi::c_void, iutc: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn UTC(this: *mut core::ffi::c_void, iutc: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::UTC(this) { Ok(ok__) => { @@ -472,17 +346,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUTC(this: *mut core::ffi::c_void, iutc: i32) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetUTC(this: *mut core::ffi::c_void, iutc: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetUTC(this, core::mem::transmute_copy(&iutc)).into() } - unsafe extern "system" fn UTCSpecified(this: *mut core::ffi::c_void, butcspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn UTCSpecified(this: *mut core::ffi::c_void, butcspecified: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::UTCSpecified(this) { Ok(ok__) => { @@ -492,17 +360,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUTCSpecified(this: *mut core::ffi::c_void, butcspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetUTCSpecified(this: *mut core::ffi::c_void, butcspecified: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetUTCSpecified(this, core::mem::transmute_copy(&butcspecified)).into() } - unsafe extern "system" fn IsInterval(this: *mut core::ffi::c_void, bisinterval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn IsInterval(this: *mut core::ffi::c_void, bisinterval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::IsInterval(this) { Ok(ok__) => { @@ -512,17 +374,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsInterval(this: *mut core::ffi::c_void, bisinterval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetIsInterval(this: *mut core::ffi::c_void, bisinterval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetIsInterval(this, core::mem::transmute_copy(&bisinterval)).into() } - unsafe extern "system" fn GetVarDate(this: *mut core::ffi::c_void, bislocal: super::super::Foundation::VARIANT_BOOL, dvardate: *mut f64) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn GetVarDate(this: *mut core::ffi::c_void, bislocal: super::super::Foundation::VARIANT_BOOL, dvardate: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::GetVarDate(this, core::mem::transmute_copy(&bislocal)) { Ok(ok__) => { @@ -532,17 +388,11 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVarDate(this: *mut core::ffi::c_void, dvardate: f64, bislocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetVarDate(this: *mut core::ffi::c_void, dvardate: f64, bislocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetVarDate(this, core::mem::transmute_copy(&dvardate), core::mem::transmute_copy(&bislocal)).into() } - unsafe extern "system" fn GetFileTime(this: *mut core::ffi::c_void, bislocal: super::super::Foundation::VARIANT_BOOL, strfiletime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn GetFileTime(this: *mut core::ffi::c_void, bislocal: super::super::Foundation::VARIANT_BOOL, strfiletime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemDateTime_Impl::GetFileTime(this, core::mem::transmute_copy(&bislocal)) { Ok(ok__) => { @@ -552,10 +402,7 @@ impl ISWbemDateTime_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileTime(this: *mut core::ffi::c_void, strfiletime: core::mem::MaybeUninit, bislocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemDateTime_Impl, - { + unsafe extern "system" fn SetFileTime(this: *mut core::ffi::c_void, strfiletime: core::mem::MaybeUninit, bislocal: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemDateTime_Impl::SetFileTime(this, core::mem::transmute(&strfiletime), core::mem::transmute_copy(&bislocal)).into() } @@ -616,14 +463,8 @@ pub trait ISWbemEventSource_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemEventSource {} #[cfg(feature = "Win32_System_Com")] impl ISWbemEventSource_Vtbl { - pub const fn new() -> ISWbemEventSource_Vtbl - where - Identity: ISWbemEventSource_Impl, - { - unsafe extern "system" fn NextEvent(this: *mut core::ffi::c_void, itimeoutms: i32, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemEventSource_Impl, - { + pub const fn new() -> ISWbemEventSource_Vtbl { + unsafe extern "system" fn NextEvent(this: *mut core::ffi::c_void, itimeoutms: i32, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemEventSource_Impl::NextEvent(this, core::mem::transmute_copy(&itimeoutms)) { Ok(ok__) => { @@ -633,10 +474,7 @@ impl ISWbemEventSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemEventSource_Impl, - { + unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemEventSource_Impl::Security_(this) { Ok(ok__) => { @@ -662,10 +500,7 @@ pub trait ISWbemLastError_Impl: Sized + ISWbemObject_Impl {} impl windows_core::RuntimeName for ISWbemLastError {} #[cfg(feature = "Win32_System_Com")] impl ISWbemLastError_Vtbl { - pub const fn new() -> ISWbemLastError_Vtbl - where - Identity: ISWbemLastError_Impl, - { + pub const fn new() -> ISWbemLastError_Vtbl { Self { base__: ISWbemObject_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -681,14 +516,8 @@ pub trait ISWbemLocator_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemLocator {} #[cfg(feature = "Win32_System_Com")] impl ISWbemLocator_Vtbl { - pub const fn new() -> ISWbemLocator_Vtbl - where - Identity: ISWbemLocator_Impl, - { - unsafe extern "system" fn ConnectServer(this: *mut core::ffi::c_void, strserver: core::mem::MaybeUninit, strnamespace: core::mem::MaybeUninit, struser: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, strlocale: core::mem::MaybeUninit, strauthority: core::mem::MaybeUninit, isecurityflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemLocator_Impl, - { + pub const fn new() -> ISWbemLocator_Vtbl { + unsafe extern "system" fn ConnectServer(this: *mut core::ffi::c_void, strserver: core::mem::MaybeUninit, strnamespace: core::mem::MaybeUninit, struser: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, strlocale: core::mem::MaybeUninit, strauthority: core::mem::MaybeUninit, isecurityflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemLocator_Impl::ConnectServer(this, 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), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -698,10 +527,7 @@ impl ISWbemLocator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemLocator_Impl, - { + unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemLocator_Impl::Security_(this) { Ok(ok__) => { @@ -733,14 +559,8 @@ pub trait ISWbemMethod_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemMethod {} #[cfg(feature = "Win32_System_Com")] impl ISWbemMethod_Vtbl { - pub const fn new() -> ISWbemMethod_Vtbl - where - Identity: ISWbemMethod_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemMethod_Impl, - { + pub const fn new() -> ISWbemMethod_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemMethod_Impl::Name(this) { Ok(ok__) => { @@ -750,10 +570,7 @@ impl ISWbemMethod_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Origin(this: *mut core::ffi::c_void, strorigin: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemMethod_Impl, - { + unsafe extern "system" fn Origin(this: *mut core::ffi::c_void, strorigin: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemMethod_Impl::Origin(this) { Ok(ok__) => { @@ -763,10 +580,7 @@ impl ISWbemMethod_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InParameters(this: *mut core::ffi::c_void, objwbeminparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemMethod_Impl, - { + unsafe extern "system" fn InParameters(this: *mut core::ffi::c_void, objwbeminparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemMethod_Impl::InParameters(this) { Ok(ok__) => { @@ -776,10 +590,7 @@ impl ISWbemMethod_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OutParameters(this: *mut core::ffi::c_void, objwbemoutparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemMethod_Impl, - { + unsafe extern "system" fn OutParameters(this: *mut core::ffi::c_void, objwbemoutparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemMethod_Impl::OutParameters(this) { Ok(ok__) => { @@ -789,10 +600,7 @@ impl ISWbemMethod_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Qualifiers_(this: *mut core::ffi::c_void, objwbemqualifierset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemMethod_Impl, - { + unsafe extern "system" fn Qualifiers_(this: *mut core::ffi::c_void, objwbemqualifierset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemMethod_Impl::Qualifiers_(this) { Ok(ok__) => { @@ -825,14 +633,8 @@ pub trait ISWbemMethodSet_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemMethodSet {} #[cfg(feature = "Win32_System_Com")] impl ISWbemMethodSet_Vtbl { - pub const fn new() -> ISWbemMethodSet_Vtbl - where - Identity: ISWbemMethodSet_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemMethodSet_Impl, - { + pub const fn new() -> ISWbemMethodSet_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemMethodSet_Impl::_NewEnum(this) { Ok(ok__) => { @@ -842,10 +644,7 @@ impl ISWbemMethodSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32, objwbemmethod: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemMethodSet_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32, objwbemmethod: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemMethodSet_Impl::Item(this, core::mem::transmute(&strname), core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -855,10 +654,7 @@ impl ISWbemMethodSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemMethodSet_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemMethodSet_Impl::Count(this) { Ok(ok__) => { @@ -889,14 +685,8 @@ pub trait ISWbemNamedValue_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemNamedValue {} #[cfg(feature = "Win32_System_Com")] impl ISWbemNamedValue_Vtbl { - pub const fn new() -> ISWbemNamedValue_Vtbl - where - Identity: ISWbemNamedValue_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, varvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemNamedValue_Impl, - { + pub const fn new() -> ISWbemNamedValue_Vtbl { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, varvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemNamedValue_Impl::Value(this) { Ok(ok__) => { @@ -906,17 +696,11 @@ impl ISWbemNamedValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, varvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemNamedValue_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, varvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemNamedValue_Impl::SetValue(this, core::mem::transmute_copy(&varvalue)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemNamedValue_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemNamedValue_Impl::Name(this) { Ok(ok__) => { @@ -951,14 +735,8 @@ pub trait ISWbemNamedValueSet_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemNamedValueSet {} #[cfg(feature = "Win32_System_Com")] impl ISWbemNamedValueSet_Vtbl { - pub const fn new() -> ISWbemNamedValueSet_Vtbl - where - Identity: ISWbemNamedValueSet_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemNamedValueSet_Impl, - { + pub const fn new() -> ISWbemNamedValueSet_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemNamedValueSet_Impl::_NewEnum(this) { Ok(ok__) => { @@ -968,10 +746,7 @@ impl ISWbemNamedValueSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemNamedValueSet_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemNamedValueSet_Impl::Item(this, core::mem::transmute(&strname), core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -981,10 +756,7 @@ impl ISWbemNamedValueSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemNamedValueSet_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemNamedValueSet_Impl::Count(this) { Ok(ok__) => { @@ -994,10 +766,7 @@ impl ISWbemNamedValueSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varvalue: *const core::mem::MaybeUninit, iflags: i32, objwbemnamedvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemNamedValueSet_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varvalue: *const core::mem::MaybeUninit, iflags: i32, objwbemnamedvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemNamedValueSet_Impl::Add(this, core::mem::transmute(&strname), core::mem::transmute_copy(&varvalue), core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -1007,17 +776,11 @@ impl ISWbemNamedValueSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32) -> windows_core::HRESULT - where - Identity: ISWbemNamedValueSet_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemNamedValueSet_Impl::Remove(this, core::mem::transmute(&strname), core::mem::transmute_copy(&iflags)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, objwbemnamedvalueset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemNamedValueSet_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, objwbemnamedvalueset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemNamedValueSet_Impl::Clone(this) { Ok(ok__) => { @@ -1027,10 +790,7 @@ impl ISWbemNamedValueSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemNamedValueSet_Impl, - { + unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemNamedValueSet_Impl::DeleteAll(this).into() } @@ -1081,14 +841,8 @@ pub trait ISWbemObject_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemObject {} #[cfg(feature = "Win32_System_Com")] impl ISWbemObject_Vtbl { - pub const fn new() -> ISWbemObject_Vtbl - where - Identity: ISWbemObject_Impl, - { - unsafe extern "system" fn Put_(this: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectpath: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + pub const fn new() -> ISWbemObject_Vtbl { + unsafe extern "system" fn Put_(this: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectpath: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Put_(this, core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -1098,31 +852,19 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutAsync_(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 - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn PutAsync_(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObject_Impl::PutAsync_(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn Delete_(this: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Delete_(this: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObject_Impl::Delete_(this, core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)).into() } - unsafe extern "system" fn DeleteAsync_(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 - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn DeleteAsync_(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObject_Impl::DeleteAsync_(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn Instances_(this: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Instances_(this: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Instances_(this, core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -1132,17 +874,11 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstancesAsync_(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 - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn InstancesAsync_(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObject_Impl::InstancesAsync_(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn Subclasses_(this: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Subclasses_(this: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Subclasses_(this, core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -1152,17 +888,11 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubclassesAsync_(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 - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn SubclassesAsync_(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObject_Impl::SubclassesAsync_(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn Associators_(this: *mut core::ffi::c_void, strassocclass: core::mem::MaybeUninit, strresultclass: core::mem::MaybeUninit, strresultrole: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredassocqualifier: core::mem::MaybeUninit, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Associators_(this: *mut core::ffi::c_void, strassocclass: core::mem::MaybeUninit, strresultclass: core::mem::MaybeUninit, strresultrole: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredassocqualifier: core::mem::MaybeUninit, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Associators_(this, 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), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -1172,10 +902,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AssociatorsAsync_(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strassocclass: core::mem::MaybeUninit, strresultclass: core::mem::MaybeUninit, strresultrole: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredassocqualifier: core::mem::MaybeUninit, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn AssociatorsAsync_(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strassocclass: core::mem::MaybeUninit, strresultclass: core::mem::MaybeUninit, strresultrole: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredassocqualifier: core::mem::MaybeUninit, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObject_Impl::AssociatorsAsync_( this, @@ -1194,10 +921,7 @@ impl ISWbemObject_Vtbl { ) .into() } - unsafe extern "system" fn References_(this: *mut core::ffi::c_void, strresultclass: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn References_(this: *mut core::ffi::c_void, strresultclass: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::References_(this, 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), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -1207,17 +931,11 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReferencesAsync_(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strresultclass: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn ReferencesAsync_(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strresultclass: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObject_Impl::ReferencesAsync_(this, windows_core::from_raw_borrowed(&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), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn ExecMethod_(this: *mut core::ffi::c_void, strmethodname: core::mem::MaybeUninit, objwbeminparameters: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemoutparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn ExecMethod_(this: *mut core::ffi::c_void, strmethodname: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::ExecMethod_(this, core::mem::transmute(&strmethodname), windows_core::from_raw_borrowed(&objwbeminparameters), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -1227,17 +945,11 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExecMethodAsync_(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strmethodname: core::mem::MaybeUninit, objwbeminparameters: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn ExecMethodAsync_(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strmethodname: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObject_Impl::ExecMethodAsync_(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute(&strmethodname), windows_core::from_raw_borrowed(&objwbeminparameters), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn Clone_(this: *mut core::ffi::c_void, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Clone_(this: *mut core::ffi::c_void, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Clone_(this) { Ok(ok__) => { @@ -1247,10 +959,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectText_(this: *mut core::ffi::c_void, iflags: i32, strobjecttext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn GetObjectText_(this: *mut core::ffi::c_void, iflags: i32, strobjecttext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::GetObjectText_(this, core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -1260,10 +969,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpawnDerivedClass_(this: *mut core::ffi::c_void, iflags: i32, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn SpawnDerivedClass_(this: *mut core::ffi::c_void, iflags: i32, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::SpawnDerivedClass_(this, core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -1273,10 +979,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpawnInstance_(this: *mut core::ffi::c_void, iflags: i32, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn SpawnInstance_(this: *mut core::ffi::c_void, iflags: i32, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::SpawnInstance_(this, core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -1286,10 +989,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareTo_(this: *mut core::ffi::c_void, objwbemobject: *mut core::ffi::c_void, iflags: i32, bresult: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn CompareTo_(this: *mut core::ffi::c_void, objwbemobject: *mut core::ffi::c_void, iflags: i32, bresult: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::CompareTo_(this, windows_core::from_raw_borrowed(&objwbemobject), core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -1299,10 +999,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Qualifiers_(this: *mut core::ffi::c_void, objwbemqualifierset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Qualifiers_(this: *mut core::ffi::c_void, objwbemqualifierset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Qualifiers_(this) { Ok(ok__) => { @@ -1312,10 +1009,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Properties_(this: *mut core::ffi::c_void, objwbempropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Properties_(this: *mut core::ffi::c_void, objwbempropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Properties_(this) { Ok(ok__) => { @@ -1325,10 +1019,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Methods_(this: *mut core::ffi::c_void, objwbemmethodset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Methods_(this: *mut core::ffi::c_void, objwbemmethodset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Methods_(this) { Ok(ok__) => { @@ -1338,10 +1029,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Derivation_(this: *mut core::ffi::c_void, strclassnamearray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Derivation_(this: *mut core::ffi::c_void, strclassnamearray: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Derivation_(this) { Ok(ok__) => { @@ -1351,10 +1039,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path_(this: *mut core::ffi::c_void, objwbemobjectpath: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Path_(this: *mut core::ffi::c_void, objwbemobjectpath: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Path_(this) { Ok(ok__) => { @@ -1364,10 +1049,7 @@ impl ISWbemObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObject_Impl, - { + unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObject_Impl::Security_(this) { Ok(ok__) => { @@ -1421,21 +1103,12 @@ pub trait ISWbemObjectEx_Impl: Sized + ISWbemObject_Impl { impl windows_core::RuntimeName for ISWbemObjectEx {} #[cfg(feature = "Win32_System_Com")] impl ISWbemObjectEx_Vtbl { - pub const fn new() -> ISWbemObjectEx_Vtbl - where - Identity: ISWbemObjectEx_Impl, - { - unsafe extern "system" fn Refresh_(this: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectEx_Impl, - { + pub const fn new() -> ISWbemObjectEx_Vtbl { + unsafe extern "system" fn Refresh_(this: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectEx_Impl::Refresh_(this, core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)).into() } - unsafe extern "system" fn SystemProperties_(this: *mut core::ffi::c_void, objwbempropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectEx_Impl, - { + unsafe extern "system" fn SystemProperties_(this: *mut core::ffi::c_void, objwbempropertyset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectEx_Impl::SystemProperties_(this) { Ok(ok__) => { @@ -1445,10 +1118,7 @@ impl ISWbemObjectEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetText_(this: *mut core::ffi::c_void, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, bstext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectEx_Impl, - { + unsafe extern "system" fn GetText_(this: *mut core::ffi::c_void, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, bstext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectEx_Impl::GetText_(this, core::mem::transmute_copy(&iobjecttextformat), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -1458,10 +1128,7 @@ impl ISWbemObjectEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFromText_(this: *mut core::ffi::c_void, bstext: core::mem::MaybeUninit, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectEx_Impl, - { + unsafe extern "system" fn SetFromText_(this: *mut core::ffi::c_void, bstext: core::mem::MaybeUninit, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectEx_Impl::SetFromText_(this, core::mem::transmute(&bstext), core::mem::transmute_copy(&iobjecttextformat), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)).into() } @@ -1507,14 +1174,8 @@ pub trait ISWbemObjectPath_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemObjectPath {} #[cfg(feature = "Win32_System_Com")] impl ISWbemObjectPath_Vtbl { - pub const fn new() -> ISWbemObjectPath_Vtbl - where - Identity: ISWbemObjectPath_Impl, - { - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, strpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + pub const fn new() -> ISWbemObjectPath_Vtbl { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, strpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::Path(this) { Ok(ok__) => { @@ -1524,17 +1185,11 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, strpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, strpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectPath_Impl::SetPath(this, core::mem::transmute(&strpath)).into() } - unsafe extern "system" fn RelPath(this: *mut core::ffi::c_void, strrelpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn RelPath(this: *mut core::ffi::c_void, strrelpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::RelPath(this) { Ok(ok__) => { @@ -1544,17 +1199,11 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRelPath(this: *mut core::ffi::c_void, strrelpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn SetRelPath(this: *mut core::ffi::c_void, strrelpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectPath_Impl::SetRelPath(this, core::mem::transmute(&strrelpath)).into() } - unsafe extern "system" fn Server(this: *mut core::ffi::c_void, strserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn Server(this: *mut core::ffi::c_void, strserver: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::Server(this) { Ok(ok__) => { @@ -1564,17 +1213,11 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServer(this: *mut core::ffi::c_void, strserver: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn SetServer(this: *mut core::ffi::c_void, strserver: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectPath_Impl::SetServer(this, core::mem::transmute(&strserver)).into() } - unsafe extern "system" fn Namespace(this: *mut core::ffi::c_void, strnamespace: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn Namespace(this: *mut core::ffi::c_void, strnamespace: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::Namespace(this) { Ok(ok__) => { @@ -1584,17 +1227,11 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNamespace(this: *mut core::ffi::c_void, strnamespace: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn SetNamespace(this: *mut core::ffi::c_void, strnamespace: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectPath_Impl::SetNamespace(this, core::mem::transmute(&strnamespace)).into() } - unsafe extern "system" fn ParentNamespace(this: *mut core::ffi::c_void, strparentnamespace: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn ParentNamespace(this: *mut core::ffi::c_void, strparentnamespace: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::ParentNamespace(this) { Ok(ok__) => { @@ -1604,10 +1241,7 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, strdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, strdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::DisplayName(this) { Ok(ok__) => { @@ -1617,17 +1251,11 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, strdisplayname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, strdisplayname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectPath_Impl::SetDisplayName(this, core::mem::transmute(&strdisplayname)).into() } - unsafe extern "system" fn Class(this: *mut core::ffi::c_void, strclass: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn Class(this: *mut core::ffi::c_void, strclass: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::Class(this) { Ok(ok__) => { @@ -1637,17 +1265,11 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClass(this: *mut core::ffi::c_void, strclass: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn SetClass(this: *mut core::ffi::c_void, strclass: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectPath_Impl::SetClass(this, core::mem::transmute(&strclass)).into() } - unsafe extern "system" fn IsClass(this: *mut core::ffi::c_void, bisclass: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn IsClass(this: *mut core::ffi::c_void, bisclass: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::IsClass(this) { Ok(ok__) => { @@ -1657,17 +1279,11 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAsClass(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn SetAsClass(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectPath_Impl::SetAsClass(this).into() } - unsafe extern "system" fn IsSingleton(this: *mut core::ffi::c_void, bissingleton: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn IsSingleton(this: *mut core::ffi::c_void, bissingleton: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::IsSingleton(this) { Ok(ok__) => { @@ -1677,17 +1293,11 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAsSingleton(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn SetAsSingleton(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectPath_Impl::SetAsSingleton(this).into() } - unsafe extern "system" fn Keys(this: *mut core::ffi::c_void, objwbemnamedvalueset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn Keys(this: *mut core::ffi::c_void, objwbemnamedvalueset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::Keys(this) { Ok(ok__) => { @@ -1697,10 +1307,7 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::Security_(this) { Ok(ok__) => { @@ -1710,10 +1317,7 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Locale(this: *mut core::ffi::c_void, strlocale: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn Locale(this: *mut core::ffi::c_void, strlocale: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::Locale(this) { Ok(ok__) => { @@ -1723,17 +1327,11 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocale(this: *mut core::ffi::c_void, strlocale: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn SetLocale(this: *mut core::ffi::c_void, strlocale: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectPath_Impl::SetLocale(this, core::mem::transmute(&strlocale)).into() } - unsafe extern "system" fn Authority(this: *mut core::ffi::c_void, strauthority: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn Authority(this: *mut core::ffi::c_void, strauthority: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectPath_Impl::Authority(this) { Ok(ok__) => { @@ -1743,10 +1341,7 @@ impl ISWbemObjectPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthority(this: *mut core::ffi::c_void, strauthority: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemObjectPath_Impl, - { + unsafe extern "system" fn SetAuthority(this: *mut core::ffi::c_void, strauthority: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemObjectPath_Impl::SetAuthority(this, core::mem::transmute(&strauthority)).into() } @@ -1793,14 +1388,8 @@ pub trait ISWbemObjectSet_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemObjectSet {} #[cfg(feature = "Win32_System_Com")] impl ISWbemObjectSet_Vtbl { - pub const fn new() -> ISWbemObjectSet_Vtbl - where - Identity: ISWbemObjectSet_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectSet_Impl, - { + pub const fn new() -> ISWbemObjectSet_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectSet_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1810,10 +1399,7 @@ impl ISWbemObjectSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, iflags: i32, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectSet_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, iflags: i32, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectSet_Impl::Item(this, core::mem::transmute(&strobjectpath), core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -1823,10 +1409,7 @@ impl ISWbemObjectSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemObjectSet_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectSet_Impl::Count(this) { Ok(ok__) => { @@ -1836,10 +1419,7 @@ impl ISWbemObjectSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectSet_Impl, - { + unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectSet_Impl::Security_(this) { Ok(ok__) => { @@ -1849,10 +1429,7 @@ impl ISWbemObjectSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ItemIndex(this: *mut core::ffi::c_void, lindex: i32, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemObjectSet_Impl, - { + unsafe extern "system" fn ItemIndex(this: *mut core::ffi::c_void, lindex: i32, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemObjectSet_Impl::ItemIndex(this, core::mem::transmute_copy(&lindex)) { Ok(ok__) => { @@ -1887,14 +1464,8 @@ pub trait ISWbemPrivilege_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemPrivilege {} #[cfg(feature = "Win32_System_Com")] impl ISWbemPrivilege_Vtbl { - pub const fn new() -> ISWbemPrivilege_Vtbl - where - Identity: ISWbemPrivilege_Impl, - { - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, bisenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemPrivilege_Impl, - { + pub const fn new() -> ISWbemPrivilege_Vtbl { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, bisenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPrivilege_Impl::IsEnabled(this) { Ok(ok__) => { @@ -1904,17 +1475,11 @@ impl ISWbemPrivilege_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsEnabled(this: *mut core::ffi::c_void, bisenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemPrivilege_Impl, - { + unsafe extern "system" fn SetIsEnabled(this: *mut core::ffi::c_void, bisenabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemPrivilege_Impl::SetIsEnabled(this, core::mem::transmute_copy(&bisenabled)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemPrivilege_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPrivilege_Impl::Name(this) { Ok(ok__) => { @@ -1924,10 +1489,7 @@ impl ISWbemPrivilege_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, strdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemPrivilege_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, strdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPrivilege_Impl::DisplayName(this) { Ok(ok__) => { @@ -1937,10 +1499,7 @@ impl ISWbemPrivilege_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Identifier(this: *mut core::ffi::c_void, iprivilege: *mut WbemPrivilegeEnum) -> windows_core::HRESULT - where - Identity: ISWbemPrivilege_Impl, - { + unsafe extern "system" fn Identifier(this: *mut core::ffi::c_void, iprivilege: *mut WbemPrivilegeEnum) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPrivilege_Impl::Identifier(this) { Ok(ok__) => { @@ -1977,14 +1536,8 @@ pub trait ISWbemPrivilegeSet_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemPrivilegeSet {} #[cfg(feature = "Win32_System_Com")] impl ISWbemPrivilegeSet_Vtbl { - pub const fn new() -> ISWbemPrivilegeSet_Vtbl - where - Identity: ISWbemPrivilegeSet_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemPrivilegeSet_Impl, - { + pub const fn new() -> ISWbemPrivilegeSet_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPrivilegeSet_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1994,10 +1547,7 @@ impl ISWbemPrivilegeSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, iprivilege: WbemPrivilegeEnum, objwbemprivilege: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemPrivilegeSet_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, iprivilege: WbemPrivilegeEnum, objwbemprivilege: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPrivilegeSet_Impl::Item(this, core::mem::transmute_copy(&iprivilege)) { Ok(ok__) => { @@ -2007,10 +1557,7 @@ impl ISWbemPrivilegeSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemPrivilegeSet_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPrivilegeSet_Impl::Count(this) { Ok(ok__) => { @@ -2020,10 +1567,7 @@ impl ISWbemPrivilegeSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, iprivilege: WbemPrivilegeEnum, bisenabled: super::super::Foundation::VARIANT_BOOL, objwbemprivilege: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemPrivilegeSet_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, iprivilege: WbemPrivilegeEnum, bisenabled: super::super::Foundation::VARIANT_BOOL, objwbemprivilege: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPrivilegeSet_Impl::Add(this, core::mem::transmute_copy(&iprivilege), core::mem::transmute_copy(&bisenabled)) { Ok(ok__) => { @@ -2033,24 +1577,15 @@ impl ISWbemPrivilegeSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, iprivilege: WbemPrivilegeEnum) -> windows_core::HRESULT - where - Identity: ISWbemPrivilegeSet_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, iprivilege: WbemPrivilegeEnum) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemPrivilegeSet_Impl::Remove(this, core::mem::transmute_copy(&iprivilege)).into() } - unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemPrivilegeSet_Impl, - { + unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemPrivilegeSet_Impl::DeleteAll(this).into() } - unsafe extern "system" fn AddAsString(this: *mut core::ffi::c_void, strprivilege: core::mem::MaybeUninit, bisenabled: super::super::Foundation::VARIANT_BOOL, objwbemprivilege: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemPrivilegeSet_Impl, - { + unsafe extern "system" fn AddAsString(this: *mut core::ffi::c_void, strprivilege: core::mem::MaybeUninit, bisenabled: super::super::Foundation::VARIANT_BOOL, objwbemprivilege: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPrivilegeSet_Impl::AddAsString(this, core::mem::transmute(&strprivilege), core::mem::transmute_copy(&bisenabled)) { Ok(ok__) => { @@ -2090,14 +1625,8 @@ pub trait ISWbemProperty_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemProperty {} #[cfg(feature = "Win32_System_Com")] impl ISWbemProperty_Vtbl { - pub const fn new() -> ISWbemProperty_Vtbl - where - Identity: ISWbemProperty_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, varvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemProperty_Impl, - { + pub const fn new() -> ISWbemProperty_Vtbl { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, varvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemProperty_Impl::Value(this) { Ok(ok__) => { @@ -2107,17 +1636,11 @@ impl ISWbemProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, varvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemProperty_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, varvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemProperty_Impl::SetValue(this, core::mem::transmute_copy(&varvalue)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemProperty_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemProperty_Impl::Name(this) { Ok(ok__) => { @@ -2127,10 +1650,7 @@ impl ISWbemProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLocal(this: *mut core::ffi::c_void, bislocal: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemProperty_Impl, - { + unsafe extern "system" fn IsLocal(this: *mut core::ffi::c_void, bislocal: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemProperty_Impl::IsLocal(this) { Ok(ok__) => { @@ -2140,10 +1660,7 @@ impl ISWbemProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Origin(this: *mut core::ffi::c_void, strorigin: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemProperty_Impl, - { + unsafe extern "system" fn Origin(this: *mut core::ffi::c_void, strorigin: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemProperty_Impl::Origin(this) { Ok(ok__) => { @@ -2153,10 +1670,7 @@ impl ISWbemProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CIMType(this: *mut core::ffi::c_void, icimtype: *mut WbemCimtypeEnum) -> windows_core::HRESULT - where - Identity: ISWbemProperty_Impl, - { + unsafe extern "system" fn CIMType(this: *mut core::ffi::c_void, icimtype: *mut WbemCimtypeEnum) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemProperty_Impl::CIMType(this) { Ok(ok__) => { @@ -2166,10 +1680,7 @@ impl ISWbemProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Qualifiers_(this: *mut core::ffi::c_void, objwbemqualifierset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemProperty_Impl, - { + unsafe extern "system" fn Qualifiers_(this: *mut core::ffi::c_void, objwbemqualifierset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemProperty_Impl::Qualifiers_(this) { Ok(ok__) => { @@ -2179,10 +1690,7 @@ impl ISWbemProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsArray(this: *mut core::ffi::c_void, bisarray: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemProperty_Impl, - { + unsafe extern "system" fn IsArray(this: *mut core::ffi::c_void, bisarray: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemProperty_Impl::IsArray(this) { Ok(ok__) => { @@ -2220,14 +1728,8 @@ pub trait ISWbemPropertySet_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemPropertySet {} #[cfg(feature = "Win32_System_Com")] impl ISWbemPropertySet_Vtbl { - pub const fn new() -> ISWbemPropertySet_Vtbl - where - Identity: ISWbemPropertySet_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemPropertySet_Impl, - { + pub const fn new() -> ISWbemPropertySet_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPropertySet_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2237,10 +1739,7 @@ impl ISWbemPropertySet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32, objwbemproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemPropertySet_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32, objwbemproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPropertySet_Impl::Item(this, core::mem::transmute(&strname), core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -2250,10 +1749,7 @@ impl ISWbemPropertySet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemPropertySet_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPropertySet_Impl::Count(this) { Ok(ok__) => { @@ -2263,10 +1759,7 @@ impl ISWbemPropertySet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, icimtype: WbemCimtypeEnum, bisarray: super::super::Foundation::VARIANT_BOOL, iflags: i32, objwbemproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemPropertySet_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, icimtype: WbemCimtypeEnum, bisarray: super::super::Foundation::VARIANT_BOOL, iflags: i32, objwbemproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemPropertySet_Impl::Add(this, core::mem::transmute(&strname), core::mem::transmute_copy(&icimtype), core::mem::transmute_copy(&bisarray), core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -2276,10 +1769,7 @@ impl ISWbemPropertySet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32) -> windows_core::HRESULT - where - Identity: ISWbemPropertySet_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemPropertySet_Impl::Remove(this, core::mem::transmute(&strname), core::mem::transmute_copy(&iflags)).into() } @@ -2314,14 +1804,8 @@ pub trait ISWbemQualifier_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemQualifier {} #[cfg(feature = "Win32_System_Com")] impl ISWbemQualifier_Vtbl { - pub const fn new() -> ISWbemQualifier_Vtbl - where - Identity: ISWbemQualifier_Impl, - { - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, varvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + pub const fn new() -> ISWbemQualifier_Vtbl { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, varvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifier_Impl::Value(this) { Ok(ok__) => { @@ -2331,17 +1815,11 @@ impl ISWbemQualifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, varvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, varvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemQualifier_Impl::SetValue(this, core::mem::transmute_copy(&varvalue)).into() } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, strname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifier_Impl::Name(this) { Ok(ok__) => { @@ -2351,10 +1829,7 @@ impl ISWbemQualifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLocal(this: *mut core::ffi::c_void, bislocal: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + unsafe extern "system" fn IsLocal(this: *mut core::ffi::c_void, bislocal: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifier_Impl::IsLocal(this) { Ok(ok__) => { @@ -2364,10 +1839,7 @@ impl ISWbemQualifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PropagatesToSubclass(this: *mut core::ffi::c_void, bpropagatestosubclass: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + unsafe extern "system" fn PropagatesToSubclass(this: *mut core::ffi::c_void, bpropagatestosubclass: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifier_Impl::PropagatesToSubclass(this) { Ok(ok__) => { @@ -2377,17 +1849,11 @@ impl ISWbemQualifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPropagatesToSubclass(this: *mut core::ffi::c_void, bpropagatestosubclass: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + unsafe extern "system" fn SetPropagatesToSubclass(this: *mut core::ffi::c_void, bpropagatestosubclass: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemQualifier_Impl::SetPropagatesToSubclass(this, core::mem::transmute_copy(&bpropagatestosubclass)).into() } - unsafe extern "system" fn PropagatesToInstance(this: *mut core::ffi::c_void, bpropagatestoinstance: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + unsafe extern "system" fn PropagatesToInstance(this: *mut core::ffi::c_void, bpropagatestoinstance: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifier_Impl::PropagatesToInstance(this) { Ok(ok__) => { @@ -2397,17 +1863,11 @@ impl ISWbemQualifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPropagatesToInstance(this: *mut core::ffi::c_void, bpropagatestoinstance: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + unsafe extern "system" fn SetPropagatesToInstance(this: *mut core::ffi::c_void, bpropagatestoinstance: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemQualifier_Impl::SetPropagatesToInstance(this, core::mem::transmute_copy(&bpropagatestoinstance)).into() } - unsafe extern "system" fn IsOverridable(this: *mut core::ffi::c_void, bisoverridable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + unsafe extern "system" fn IsOverridable(this: *mut core::ffi::c_void, bisoverridable: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifier_Impl::IsOverridable(this) { Ok(ok__) => { @@ -2417,17 +1877,11 @@ impl ISWbemQualifier_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIsOverridable(this: *mut core::ffi::c_void, bisoverridable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + unsafe extern "system" fn SetIsOverridable(this: *mut core::ffi::c_void, bisoverridable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemQualifier_Impl::SetIsOverridable(this, core::mem::transmute_copy(&bisoverridable)).into() } - unsafe extern "system" fn IsAmended(this: *mut core::ffi::c_void, bisamended: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemQualifier_Impl, - { + unsafe extern "system" fn IsAmended(this: *mut core::ffi::c_void, bisamended: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifier_Impl::IsAmended(this) { Ok(ok__) => { @@ -2468,14 +1922,8 @@ pub trait ISWbemQualifierSet_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemQualifierSet {} #[cfg(feature = "Win32_System_Com")] impl ISWbemQualifierSet_Vtbl { - pub const fn new() -> ISWbemQualifierSet_Vtbl - where - Identity: ISWbemQualifierSet_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemQualifierSet_Impl, - { + pub const fn new() -> ISWbemQualifierSet_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifierSet_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2485,10 +1933,7 @@ impl ISWbemQualifierSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, iflags: i32, objwbemqualifier: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemQualifierSet_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, iflags: i32, objwbemqualifier: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifierSet_Impl::Item(this, core::mem::transmute(&name), core::mem::transmute_copy(&iflags)) { Ok(ok__) => { @@ -2498,10 +1943,7 @@ impl ISWbemQualifierSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemQualifierSet_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifierSet_Impl::Count(this) { Ok(ok__) => { @@ -2511,10 +1953,7 @@ impl ISWbemQualifierSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varval: *const core::mem::MaybeUninit, bpropagatestosubclass: super::super::Foundation::VARIANT_BOOL, bpropagatestoinstance: super::super::Foundation::VARIANT_BOOL, bisoverridable: super::super::Foundation::VARIANT_BOOL, iflags: i32, objwbemqualifier: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemQualifierSet_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, varval: *const core::mem::MaybeUninit, bpropagatestosubclass: super::super::Foundation::VARIANT_BOOL, bpropagatestoinstance: super::super::Foundation::VARIANT_BOOL, bisoverridable: super::super::Foundation::VARIANT_BOOL, iflags: i32, objwbemqualifier: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemQualifierSet_Impl::Add(this, 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)) { Ok(ok__) => { @@ -2524,10 +1963,7 @@ impl ISWbemQualifierSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32) -> windows_core::HRESULT - where - Identity: ISWbemQualifierSet_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, iflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemQualifierSet_Impl::Remove(this, core::mem::transmute(&strname), core::mem::transmute_copy(&iflags)).into() } @@ -2557,14 +1993,8 @@ pub trait ISWbemRefreshableItem_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemRefreshableItem {} #[cfg(feature = "Win32_System_Com")] impl ISWbemRefreshableItem_Vtbl { - pub const fn new() -> ISWbemRefreshableItem_Vtbl - where - Identity: ISWbemRefreshableItem_Impl, - { - unsafe extern "system" fn Index(this: *mut core::ffi::c_void, iindex: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemRefreshableItem_Impl, - { + pub const fn new() -> ISWbemRefreshableItem_Vtbl { + unsafe extern "system" fn Index(this: *mut core::ffi::c_void, iindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefreshableItem_Impl::Index(this) { Ok(ok__) => { @@ -2574,10 +2004,7 @@ impl ISWbemRefreshableItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Refresher(this: *mut core::ffi::c_void, objwbemrefresher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemRefreshableItem_Impl, - { + unsafe extern "system" fn Refresher(this: *mut core::ffi::c_void, objwbemrefresher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefreshableItem_Impl::Refresher(this) { Ok(ok__) => { @@ -2587,10 +2014,7 @@ impl ISWbemRefreshableItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSet(this: *mut core::ffi::c_void, bisset: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemRefreshableItem_Impl, - { + unsafe extern "system" fn IsSet(this: *mut core::ffi::c_void, bisset: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefreshableItem_Impl::IsSet(this) { Ok(ok__) => { @@ -2600,10 +2024,7 @@ impl ISWbemRefreshableItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Object(this: *mut core::ffi::c_void, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemRefreshableItem_Impl, - { + unsafe extern "system" fn Object(this: *mut core::ffi::c_void, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefreshableItem_Impl::Object(this) { Ok(ok__) => { @@ -2613,10 +2034,7 @@ impl ISWbemRefreshableItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ObjectSet(this: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemRefreshableItem_Impl, - { + unsafe extern "system" fn ObjectSet(this: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefreshableItem_Impl::ObjectSet(this) { Ok(ok__) => { @@ -2626,10 +2044,7 @@ impl ISWbemRefreshableItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, iflags: i32) -> windows_core::HRESULT - where - Identity: ISWbemRefreshableItem_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, iflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemRefreshableItem_Impl::Remove(this, core::mem::transmute_copy(&iflags)).into() } @@ -2664,14 +2079,8 @@ pub trait ISWbemRefresher_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemRefresher {} #[cfg(feature = "Win32_System_Com")] impl ISWbemRefresher_Vtbl { - pub const fn new() -> ISWbemRefresher_Vtbl - where - Identity: ISWbemRefresher_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemRefresher_Impl, - { + pub const fn new() -> ISWbemRefresher_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, punk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefresher_Impl::_NewEnum(this) { Ok(ok__) => { @@ -2681,10 +2090,7 @@ impl ISWbemRefresher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, iindex: i32, objwbemrefreshableitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemRefresher_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, iindex: i32, objwbemrefreshableitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefresher_Impl::Item(this, core::mem::transmute_copy(&iindex)) { Ok(ok__) => { @@ -2694,10 +2100,7 @@ impl ISWbemRefresher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT - where - Identity: ISWbemRefresher_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, icount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefresher_Impl::Count(this) { Ok(ok__) => { @@ -2707,10 +2110,7 @@ impl ISWbemRefresher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, objwbemservices: *mut core::ffi::c_void, bsinstancepath: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemrefreshableitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemRefresher_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, objwbemservices: *mut core::ffi::c_void, bsinstancepath: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemrefreshableitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefresher_Impl::Add(this, windows_core::from_raw_borrowed(&objwbemservices), core::mem::transmute(&bsinstancepath), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -2720,10 +2120,7 @@ impl ISWbemRefresher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEnum(this: *mut core::ffi::c_void, objwbemservices: *mut core::ffi::c_void, bsclassname: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemrefreshableitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemRefresher_Impl, - { + unsafe extern "system" fn AddEnum(this: *mut core::ffi::c_void, objwbemservices: *mut core::ffi::c_void, bsclassname: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemrefreshableitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefresher_Impl::AddEnum(this, windows_core::from_raw_borrowed(&objwbemservices), core::mem::transmute(&bsclassname), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -2733,24 +2130,15 @@ impl ISWbemRefresher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, iindex: i32, iflags: i32) -> windows_core::HRESULT - where - Identity: ISWbemRefresher_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, iindex: i32, iflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemRefresher_Impl::Remove(this, core::mem::transmute_copy(&iindex), core::mem::transmute_copy(&iflags)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void, iflags: i32) -> windows_core::HRESULT - where - Identity: ISWbemRefresher_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void, iflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemRefresher_Impl::Refresh(this, core::mem::transmute_copy(&iflags)).into() } - unsafe extern "system" fn AutoReconnect(this: *mut core::ffi::c_void, bcount: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemRefresher_Impl, - { + unsafe extern "system" fn AutoReconnect(this: *mut core::ffi::c_void, bcount: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemRefresher_Impl::AutoReconnect(this) { Ok(ok__) => { @@ -2760,17 +2148,11 @@ impl ISWbemRefresher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoReconnect(this: *mut core::ffi::c_void, bcount: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ISWbemRefresher_Impl, - { + unsafe extern "system" fn SetAutoReconnect(this: *mut core::ffi::c_void, bcount: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemRefresher_Impl::SetAutoReconnect(this, core::mem::transmute_copy(&bcount)).into() } - unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemRefresher_Impl, - { + unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemRefresher_Impl::DeleteAll(this).into() } @@ -2804,14 +2186,8 @@ pub trait ISWbemSecurity_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemSecurity {} #[cfg(feature = "Win32_System_Com")] impl ISWbemSecurity_Vtbl { - pub const fn new() -> ISWbemSecurity_Vtbl - where - Identity: ISWbemSecurity_Impl, - { - unsafe extern "system" fn ImpersonationLevel(this: *mut core::ffi::c_void, iimpersonationlevel: *mut WbemImpersonationLevelEnum) -> windows_core::HRESULT - where - Identity: ISWbemSecurity_Impl, - { + pub const fn new() -> ISWbemSecurity_Vtbl { + unsafe extern "system" fn ImpersonationLevel(this: *mut core::ffi::c_void, iimpersonationlevel: *mut WbemImpersonationLevelEnum) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemSecurity_Impl::ImpersonationLevel(this) { Ok(ok__) => { @@ -2821,17 +2197,11 @@ impl ISWbemSecurity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImpersonationLevel(this: *mut core::ffi::c_void, iimpersonationlevel: WbemImpersonationLevelEnum) -> windows_core::HRESULT - where - Identity: ISWbemSecurity_Impl, - { + unsafe extern "system" fn SetImpersonationLevel(this: *mut core::ffi::c_void, iimpersonationlevel: WbemImpersonationLevelEnum) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemSecurity_Impl::SetImpersonationLevel(this, core::mem::transmute_copy(&iimpersonationlevel)).into() } - unsafe extern "system" fn AuthenticationLevel(this: *mut core::ffi::c_void, iauthenticationlevel: *mut WbemAuthenticationLevelEnum) -> windows_core::HRESULT - where - Identity: ISWbemSecurity_Impl, - { + unsafe extern "system" fn AuthenticationLevel(this: *mut core::ffi::c_void, iauthenticationlevel: *mut WbemAuthenticationLevelEnum) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemSecurity_Impl::AuthenticationLevel(this) { Ok(ok__) => { @@ -2841,17 +2211,11 @@ impl ISWbemSecurity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationLevel(this: *mut core::ffi::c_void, iauthenticationlevel: WbemAuthenticationLevelEnum) -> windows_core::HRESULT - where - Identity: ISWbemSecurity_Impl, - { + unsafe extern "system" fn SetAuthenticationLevel(this: *mut core::ffi::c_void, iauthenticationlevel: WbemAuthenticationLevelEnum) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemSecurity_Impl::SetAuthenticationLevel(this, core::mem::transmute_copy(&iauthenticationlevel)).into() } - unsafe extern "system" fn Privileges(this: *mut core::ffi::c_void, objwbemprivilegeset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemSecurity_Impl, - { + unsafe extern "system" fn Privileges(this: *mut core::ffi::c_void, objwbemprivilegeset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemSecurity_Impl::Privileges(this) { Ok(ok__) => { @@ -2900,14 +2264,8 @@ pub trait ISWbemServices_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemServices {} #[cfg(feature = "Win32_System_Com")] impl ISWbemServices_Vtbl { - pub const fn new() -> ISWbemServices_Vtbl - where - Identity: ISWbemServices_Impl, - { - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + pub const fn new() -> ISWbemServices_Vtbl { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemServices_Impl::Get(this, core::mem::transmute(&strobjectpath), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -2917,31 +2275,19 @@ impl ISWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn GetAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServices_Impl::GetAsync(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute(&strobjectpath), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServices_Impl::Delete(this, core::mem::transmute(&strobjectpath), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)).into() } - unsafe extern "system" fn DeleteAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn DeleteAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServices_Impl::DeleteAsync(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute(&strobjectpath), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn InstancesOf(this: *mut core::ffi::c_void, strclass: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn InstancesOf(this: *mut core::ffi::c_void, strclass: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemServices_Impl::InstancesOf(this, core::mem::transmute(&strclass), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -2951,17 +2297,11 @@ impl ISWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstancesOfAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strclass: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn InstancesOfAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strclass: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServices_Impl::InstancesOfAsync(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute(&strclass), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn SubclassesOf(this: *mut core::ffi::c_void, strsuperclass: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn SubclassesOf(this: *mut core::ffi::c_void, strsuperclass: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemServices_Impl::SubclassesOf(this, core::mem::transmute(&strsuperclass), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -2971,17 +2311,11 @@ impl ISWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SubclassesOfAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strsuperclass: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn SubclassesOfAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strsuperclass: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServices_Impl::SubclassesOfAsync(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute(&strsuperclass), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn ExecQuery(this: *mut core::ffi::c_void, strquery: core::mem::MaybeUninit, strquerylanguage: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn ExecQuery(this: *mut core::ffi::c_void, strquery: core::mem::MaybeUninit, strquerylanguage: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemServices_Impl::ExecQuery(this, core::mem::transmute(&strquery), core::mem::transmute(&strquerylanguage), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -2991,31 +2325,11 @@ impl ISWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExecQueryAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strquery: core::mem::MaybeUninit, strquerylanguage: core::mem::MaybeUninit, lflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn ExecQueryAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strquery: core::mem::MaybeUninit, strquerylanguage: core::mem::MaybeUninit, lflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServices_Impl::ExecQueryAsync(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute(&strquery), core::mem::transmute(&strquerylanguage), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn AssociatorsOf( - this: *mut core::ffi::c_void, - strobjectpath: core::mem::MaybeUninit, - strassocclass: core::mem::MaybeUninit, - strresultclass: core::mem::MaybeUninit, - strresultrole: core::mem::MaybeUninit, - strrole: core::mem::MaybeUninit, - bclassesonly: super::super::Foundation::VARIANT_BOOL, - bschemaonly: super::super::Foundation::VARIANT_BOOL, - strrequiredassocqualifier: core::mem::MaybeUninit, - strrequiredqualifier: core::mem::MaybeUninit, - iflags: i32, - objwbemnamedvalueset: *mut core::ffi::c_void, - objwbemobjectset: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn AssociatorsOf(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strassocclass: core::mem::MaybeUninit, strresultclass: core::mem::MaybeUninit, strresultrole: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredassocqualifier: core::mem::MaybeUninit, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemServices_Impl::AssociatorsOf(this, core::mem::transmute(&strobjectpath), 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), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -3025,7 +2339,7 @@ impl ISWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AssociatorsOfAsync( + unsafe extern "system" fn AssociatorsOfAsync( this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, @@ -3040,10 +2354,7 @@ impl ISWbemServices_Vtbl { iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServices_Impl::AssociatorsOfAsync( this, @@ -3063,10 +2374,7 @@ impl ISWbemServices_Vtbl { ) .into() } - unsafe extern "system" fn ReferencesTo(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strresultclass: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn ReferencesTo(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strresultclass: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemServices_Impl::ReferencesTo(this, 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), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -3076,17 +2384,11 @@ impl ISWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReferencesToAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strresultclass: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn ReferencesToAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strresultclass: core::mem::MaybeUninit, strrole: core::mem::MaybeUninit, bclassesonly: super::super::Foundation::VARIANT_BOOL, bschemaonly: super::super::Foundation::VARIANT_BOOL, strrequiredqualifier: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServices_Impl::ReferencesToAsync(this, windows_core::from_raw_borrowed(&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), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn ExecNotificationQuery(this: *mut core::ffi::c_void, strquery: core::mem::MaybeUninit, strquerylanguage: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemeventsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn ExecNotificationQuery(this: *mut core::ffi::c_void, strquery: core::mem::MaybeUninit, strquerylanguage: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemeventsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemServices_Impl::ExecNotificationQuery(this, core::mem::transmute(&strquery), core::mem::transmute(&strquerylanguage), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -3096,17 +2398,11 @@ impl ISWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExecNotificationQueryAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strquery: core::mem::MaybeUninit, strquerylanguage: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn ExecNotificationQueryAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strquery: core::mem::MaybeUninit, strquerylanguage: core::mem::MaybeUninit, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServices_Impl::ExecNotificationQueryAsync(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute(&strquery), core::mem::transmute(&strquerylanguage), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn ExecMethod(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strmethodname: core::mem::MaybeUninit, objwbeminparameters: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemoutparameters: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn ExecMethod(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strmethodname: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemServices_Impl::ExecMethod(this, core::mem::transmute(&strobjectpath), core::mem::transmute(&strmethodname), windows_core::from_raw_borrowed(&objwbeminparameters), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -3116,17 +2412,11 @@ impl ISWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExecMethodAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strmethodname: core::mem::MaybeUninit, objwbeminparameters: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn ExecMethodAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strmethodname: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServices_Impl::ExecMethodAsync(this, windows_core::from_raw_borrowed(&objwbemsink), core::mem::transmute(&strobjectpath), core::mem::transmute(&strmethodname), windows_core::from_raw_borrowed(&objwbeminparameters), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } - unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServices_Impl, - { + unsafe extern "system" fn Security_(this: *mut core::ffi::c_void, objwbemsecurity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemServices_Impl::Security_(this) { Ok(ok__) => { @@ -3172,14 +2462,8 @@ pub trait ISWbemServicesEx_Impl: Sized + ISWbemServices_Impl { impl windows_core::RuntimeName for ISWbemServicesEx {} #[cfg(feature = "Win32_System_Com")] impl ISWbemServicesEx_Vtbl { - pub const fn new() -> ISWbemServicesEx_Vtbl - where - Identity: ISWbemServicesEx_Impl, - { - unsafe extern "system" fn Put(this: *mut core::ffi::c_void, objwbemobject: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectpath: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServicesEx_Impl, - { + pub const fn new() -> ISWbemServicesEx_Vtbl { + unsafe extern "system" fn Put(this: *mut core::ffi::c_void, objwbemobject: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemobjectpath: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISWbemServicesEx_Impl::Put(this, windows_core::from_raw_borrowed(&objwbemobject), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset)) { Ok(ok__) => { @@ -3189,10 +2473,7 @@ impl ISWbemServicesEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, objwbemobject: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemServicesEx_Impl, - { + unsafe extern "system" fn PutAsync(this: *mut core::ffi::c_void, objwbemsink: *mut core::ffi::c_void, objwbemobject: *mut core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut core::ffi::c_void, objwbemasynccontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemServicesEx_Impl::PutAsync(this, windows_core::from_raw_borrowed(&objwbemsink), windows_core::from_raw_borrowed(&objwbemobject), core::mem::transmute_copy(&iflags), windows_core::from_raw_borrowed(&objwbemnamedvalueset), windows_core::from_raw_borrowed(&objwbemasynccontext)).into() } @@ -3210,14 +2491,8 @@ pub trait ISWbemSink_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for ISWbemSink {} #[cfg(feature = "Win32_System_Com")] impl ISWbemSink_Vtbl { - pub const fn new() -> ISWbemSink_Vtbl - where - Identity: ISWbemSink_Impl, - { - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISWbemSink_Impl, - { + pub const fn new() -> ISWbemSink_Vtbl { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISWbemSink_Impl::Cancel(this).into() } @@ -3233,29 +2508,20 @@ pub trait ISWbemSinkEvents_Impl: Sized + super::Com::IDispatch_Impl {} impl windows_core::RuntimeName for ISWbemSinkEvents {} #[cfg(feature = "Win32_System_Com")] impl ISWbemSinkEvents_Vtbl { - pub const fn new() -> ISWbemSinkEvents_Vtbl - where - Identity: ISWbemSinkEvents_Impl, - { + pub const fn new() -> ISWbemSinkEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IUnsecuredApartment_Impl: Sized { +pub trait IUnsecuredApartment_Impl: Sized + windows_core::IUnknownImpl { fn CreateObjectStub(&self, pobject: Option<&windows_core::IUnknown>) -> windows_core::Result; } impl windows_core::RuntimeName for IUnsecuredApartment {} impl IUnsecuredApartment_Vtbl { - pub const fn new() -> IUnsecuredApartment_Vtbl - where - Identity: IUnsecuredApartment_Impl, - { - unsafe extern "system" fn CreateObjectStub(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, ppstub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUnsecuredApartment_Impl, - { + pub const fn new() -> IUnsecuredApartment_Vtbl { + unsafe extern "system" fn CreateObjectStub(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, ppstub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUnsecuredApartment_Impl::CreateObjectStub(this, windows_core::from_raw_borrowed(&pobject)) { Ok(ok__) => { @@ -3281,14 +2547,8 @@ pub trait IWMIExtension_Impl: Sized + super::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWMIExtension {} #[cfg(feature = "Win32_System_Com")] impl IWMIExtension_Vtbl { - pub const fn new() -> IWMIExtension_Vtbl - where - Identity: IWMIExtension_Impl, - { - unsafe extern "system" fn WMIObjectPath(this: *mut core::ffi::c_void, strwmiobjectpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWMIExtension_Impl, - { + pub const fn new() -> IWMIExtension_Vtbl { + unsafe extern "system" fn WMIObjectPath(this: *mut core::ffi::c_void, strwmiobjectpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMIExtension_Impl::WMIObjectPath(this) { Ok(ok__) => { @@ -3298,10 +2558,7 @@ impl IWMIExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWMIObject(this: *mut core::ffi::c_void, objwmiobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMIExtension_Impl, - { + unsafe extern "system" fn GetWMIObject(this: *mut core::ffi::c_void, objwmiobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMIExtension_Impl::GetWMIObject(this) { Ok(ok__) => { @@ -3311,10 +2568,7 @@ impl IWMIExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWMIServices(this: *mut core::ffi::c_void, objwmiservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWMIExtension_Impl, - { + unsafe extern "system" fn GetWMIServices(this: *mut core::ffi::c_void, objwmiservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMIExtension_Impl::GetWMIServices(this) { Ok(ok__) => { @@ -3335,19 +2589,13 @@ impl IWMIExtension_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWbemAddressResolution_Impl: Sized { +pub trait IWbemAddressResolution_Impl: Sized + windows_core::IUnknownImpl { fn Resolve(&self, wsznamespacepath: &windows_core::PCWSTR, wszaddresstype: windows_core::PWSTR, pdwaddresslength: *mut u32, pabbinaryaddress: *mut *mut u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemAddressResolution {} impl IWbemAddressResolution_Vtbl { - pub const fn new() -> IWbemAddressResolution_Vtbl - where - Identity: IWbemAddressResolution_Impl, - { - unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, wsznamespacepath: windows_core::PCWSTR, wszaddresstype: windows_core::PWSTR, pdwaddresslength: *mut u32, pabbinaryaddress: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IWbemAddressResolution_Impl, - { + pub const fn new() -> IWbemAddressResolution_Vtbl { + unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, wsznamespacepath: windows_core::PCWSTR, wszaddresstype: windows_core::PWSTR, pdwaddresslength: *mut u32, pabbinaryaddress: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemAddressResolution_Impl::Resolve(this, core::mem::transmute(&wsznamespacepath), core::mem::transmute_copy(&wszaddresstype), core::mem::transmute_copy(&pdwaddresslength), core::mem::transmute_copy(&pabbinaryaddress)).into() } @@ -3357,27 +2605,18 @@ impl IWbemAddressResolution_Vtbl { iid == &::IID } } -pub trait IWbemBackupRestore_Impl: Sized { +pub trait IWbemBackupRestore_Impl: Sized + windows_core::IUnknownImpl { fn Backup(&self, strbackuptofile: &windows_core::PCWSTR, lflags: i32) -> windows_core::Result<()>; fn Restore(&self, strrestorefromfile: &windows_core::PCWSTR, lflags: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemBackupRestore {} impl IWbemBackupRestore_Vtbl { - pub const fn new() -> IWbemBackupRestore_Vtbl - where - Identity: IWbemBackupRestore_Impl, - { - unsafe extern "system" fn Backup(this: *mut core::ffi::c_void, strbackuptofile: windows_core::PCWSTR, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemBackupRestore_Impl, - { + pub const fn new() -> IWbemBackupRestore_Vtbl { + unsafe extern "system" fn Backup(this: *mut core::ffi::c_void, strbackuptofile: windows_core::PCWSTR, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemBackupRestore_Impl::Backup(this, core::mem::transmute(&strbackuptofile), core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void, strrestorefromfile: windows_core::PCWSTR, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemBackupRestore_Impl, - { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void, strrestorefromfile: windows_core::PCWSTR, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemBackupRestore_Impl::Restore(this, core::mem::transmute(&strrestorefromfile), core::mem::transmute_copy(&lflags)).into() } @@ -3393,21 +2632,12 @@ pub trait IWbemBackupRestoreEx_Impl: Sized + IWbemBackupRestore_Impl { } impl windows_core::RuntimeName for IWbemBackupRestoreEx {} impl IWbemBackupRestoreEx_Vtbl { - pub const fn new() -> IWbemBackupRestoreEx_Vtbl - where - Identity: IWbemBackupRestoreEx_Impl, - { - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemBackupRestoreEx_Impl, - { + pub const fn new() -> IWbemBackupRestoreEx_Vtbl { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemBackupRestoreEx_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemBackupRestoreEx_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemBackupRestoreEx_Impl::Resume(this).into() } @@ -3417,7 +2647,7 @@ impl IWbemBackupRestoreEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWbemCallResult_Impl: Sized { +pub trait IWbemCallResult_Impl: Sized + windows_core::IUnknownImpl { fn GetResultObject(&self, ltimeout: i32) -> windows_core::Result; fn GetResultString(&self, ltimeout: i32) -> windows_core::Result; fn GetResultServices(&self, ltimeout: i32) -> windows_core::Result; @@ -3425,14 +2655,8 @@ pub trait IWbemCallResult_Impl: Sized { } impl windows_core::RuntimeName for IWbemCallResult {} impl IWbemCallResult_Vtbl { - pub const fn new() -> IWbemCallResult_Vtbl - where - Identity: IWbemCallResult_Impl, - { - unsafe extern "system" fn GetResultObject(this: *mut core::ffi::c_void, ltimeout: i32, ppresultobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemCallResult_Impl, - { + pub const fn new() -> IWbemCallResult_Vtbl { + unsafe extern "system" fn GetResultObject(this: *mut core::ffi::c_void, ltimeout: i32, ppresultobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemCallResult_Impl::GetResultObject(this, core::mem::transmute_copy(<imeout)) { Ok(ok__) => { @@ -3442,10 +2666,7 @@ impl IWbemCallResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResultString(this: *mut core::ffi::c_void, ltimeout: i32, pstrresultstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemCallResult_Impl, - { + unsafe extern "system" fn GetResultString(this: *mut core::ffi::c_void, ltimeout: i32, pstrresultstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemCallResult_Impl::GetResultString(this, core::mem::transmute_copy(<imeout)) { Ok(ok__) => { @@ -3455,10 +2676,7 @@ impl IWbemCallResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetResultServices(this: *mut core::ffi::c_void, ltimeout: i32, ppservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemCallResult_Impl, - { + unsafe extern "system" fn GetResultServices(this: *mut core::ffi::c_void, ltimeout: i32, ppservices: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemCallResult_Impl::GetResultServices(this, core::mem::transmute_copy(<imeout)) { Ok(ok__) => { @@ -3468,10 +2686,7 @@ impl IWbemCallResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCallStatus(this: *mut core::ffi::c_void, ltimeout: i32, plstatus: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemCallResult_Impl, - { + unsafe extern "system" fn GetCallStatus(this: *mut core::ffi::c_void, ltimeout: i32, plstatus: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemCallResult_Impl::GetCallStatus(this, core::mem::transmute_copy(<imeout)) { Ok(ok__) => { @@ -3494,7 +2709,7 @@ impl IWbemCallResult_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWbemClassObject_Impl: Sized { +pub trait IWbemClassObject_Impl: Sized + windows_core::IUnknownImpl { fn GetQualifierSet(&self) -> windows_core::Result; fn Get(&self, wszname: &windows_core::PCWSTR, lflags: i32, pval: *mut windows_core::VARIANT, ptype: *mut i32, plflavor: *mut i32) -> windows_core::Result<()>; fn Put(&self, wszname: &windows_core::PCWSTR, lflags: i32, pval: *const windows_core::VARIANT, r#type: i32) -> windows_core::Result<()>; @@ -3524,14 +2739,8 @@ pub trait IWbemClassObject_Impl: Sized { impl windows_core::RuntimeName for IWbemClassObject {} #[cfg(feature = "Win32_System_Com")] impl IWbemClassObject_Vtbl { - pub const fn new() -> IWbemClassObject_Vtbl - where - Identity: IWbemClassObject_Impl, - { - unsafe extern "system" fn GetQualifierSet(this: *mut core::ffi::c_void, ppqualset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + pub const fn new() -> IWbemClassObject_Vtbl { + unsafe extern "system" fn GetQualifierSet(this: *mut core::ffi::c_void, ppqualset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClassObject_Impl::GetQualifierSet(this) { Ok(ok__) => { @@ -3541,31 +2750,19 @@ impl IWbemClassObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32, pval: *mut core::mem::MaybeUninit, ptype: *mut i32, plflavor: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32, pval: *mut core::mem::MaybeUninit, ptype: *mut i32, plflavor: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::Get(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pval), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&plflavor)).into() } - unsafe extern "system" fn Put(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32, pval: *const core::mem::MaybeUninit, r#type: i32) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn Put(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32, pval: *const core::mem::MaybeUninit, r#type: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::Put(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pval), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::Delete(this, core::mem::transmute(&wszname)).into() } - unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, wszqualifiername: windows_core::PCWSTR, lflags: WBEM_CONDITION_FLAG_TYPE, pqualifierval: *const core::mem::MaybeUninit, pnames: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, wszqualifiername: windows_core::PCWSTR, lflags: WBEM_CONDITION_FLAG_TYPE, pqualifierval: *const core::mem::MaybeUninit, pnames: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClassObject_Impl::GetNames(this, core::mem::transmute(&wszqualifiername), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pqualifierval)) { Ok(ok__) => { @@ -3575,31 +2772,19 @@ impl IWbemClassObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginEnumeration(this: *mut core::ffi::c_void, lenumflags: i32) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn BeginEnumeration(this: *mut core::ffi::c_void, lenumflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::BeginEnumeration(this, core::mem::transmute_copy(&lenumflags)).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, lflags: i32, strname: *mut core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit, ptype: *mut i32, plflavor: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, lflags: i32, strname: *mut core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit, ptype: *mut i32, plflavor: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::Next(this, 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() } - unsafe extern "system" fn EndEnumeration(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn EndEnumeration(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::EndEnumeration(this).into() } - unsafe extern "system" fn GetPropertyQualifierSet(this: *mut core::ffi::c_void, wszproperty: windows_core::PCWSTR, ppqualset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn GetPropertyQualifierSet(this: *mut core::ffi::c_void, wszproperty: windows_core::PCWSTR, ppqualset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClassObject_Impl::GetPropertyQualifierSet(this, core::mem::transmute(&wszproperty)) { Ok(ok__) => { @@ -3609,10 +2794,7 @@ impl IWbemClassObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppcopy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppcopy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClassObject_Impl::Clone(this) { Ok(ok__) => { @@ -3622,10 +2804,7 @@ impl IWbemClassObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectText(this: *mut core::ffi::c_void, lflags: i32, pstrobjecttext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn GetObjectText(this: *mut core::ffi::c_void, lflags: i32, pstrobjecttext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClassObject_Impl::GetObjectText(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -3635,10 +2814,7 @@ impl IWbemClassObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpawnDerivedClass(this: *mut core::ffi::c_void, lflags: i32, ppnewclass: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn SpawnDerivedClass(this: *mut core::ffi::c_void, lflags: i32, ppnewclass: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClassObject_Impl::SpawnDerivedClass(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -3648,10 +2824,7 @@ impl IWbemClassObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SpawnInstance(this: *mut core::ffi::c_void, lflags: i32, ppnewinstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn SpawnInstance(this: *mut core::ffi::c_void, lflags: i32, ppnewinstance: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClassObject_Impl::SpawnInstance(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -3661,17 +2834,11 @@ impl IWbemClassObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareTo(this: *mut core::ffi::c_void, lflags: WBEM_COMPARISON_FLAG, pcompareto: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn CompareTo(this: *mut core::ffi::c_void, lflags: WBEM_COMPARISON_FLAG, pcompareto: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::CompareTo(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pcompareto)).into() } - unsafe extern "system" fn GetPropertyOrigin(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, pstrclassname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn GetPropertyOrigin(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, pstrclassname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClassObject_Impl::GetPropertyOrigin(this, core::mem::transmute(&wszname)) { Ok(ok__) => { @@ -3681,59 +2848,35 @@ impl IWbemClassObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InheritsFrom(this: *mut core::ffi::c_void, strancestor: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn InheritsFrom(this: *mut core::ffi::c_void, strancestor: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::InheritsFrom(this, core::mem::transmute(&strancestor)).into() } - unsafe extern "system" fn GetMethod(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 - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn GetMethod(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::GetMethod(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&ppinsignature), core::mem::transmute_copy(&ppoutsignature)).into() } - unsafe extern "system" fn PutMethod(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 - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn PutMethod(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::PutMethod(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pinsignature), windows_core::from_raw_borrowed(&poutsignature)).into() } - unsafe extern "system" fn DeleteMethod(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn DeleteMethod(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::DeleteMethod(this, core::mem::transmute(&wszname)).into() } - unsafe extern "system" fn BeginMethodEnumeration(this: *mut core::ffi::c_void, lenumflags: i32) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn BeginMethodEnumeration(this: *mut core::ffi::c_void, lenumflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::BeginMethodEnumeration(this, core::mem::transmute_copy(&lenumflags)).into() } - unsafe extern "system" fn NextMethod(this: *mut core::ffi::c_void, lflags: i32, pstrname: *mut core::mem::MaybeUninit, ppinsignature: *mut *mut core::ffi::c_void, ppoutsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn NextMethod(this: *mut core::ffi::c_void, lflags: i32, pstrname: *mut core::mem::MaybeUninit, ppinsignature: *mut *mut core::ffi::c_void, ppoutsignature: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::NextMethod(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pstrname), core::mem::transmute_copy(&ppinsignature), core::mem::transmute_copy(&ppoutsignature)).into() } - unsafe extern "system" fn EndMethodEnumeration(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn EndMethodEnumeration(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClassObject_Impl::EndMethodEnumeration(this).into() } - unsafe extern "system" fn GetMethodQualifierSet(this: *mut core::ffi::c_void, wszmethod: windows_core::PCWSTR, ppqualset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn GetMethodQualifierSet(this: *mut core::ffi::c_void, wszmethod: windows_core::PCWSTR, ppqualset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClassObject_Impl::GetMethodQualifierSet(this, core::mem::transmute(&wszmethod)) { Ok(ok__) => { @@ -3743,10 +2886,7 @@ impl IWbemClassObject_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMethodOrigin(this: *mut core::ffi::c_void, wszmethodname: windows_core::PCWSTR, pstrclassname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemClassObject_Impl, - { + unsafe extern "system" fn GetMethodOrigin(this: *mut core::ffi::c_void, wszmethodname: windows_core::PCWSTR, pstrclassname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClassObject_Impl::GetMethodOrigin(this, core::mem::transmute(&wszmethodname)) { Ok(ok__) => { @@ -3788,35 +2928,23 @@ impl IWbemClassObject_Vtbl { iid == &::IID } } -pub trait IWbemClientConnectionTransport_Impl: Sized { +pub trait IWbemClientConnectionTransport_Impl: Sized + windows_core::IUnknownImpl { 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: Option<&IWbemContext>, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void, pcallres: *mut 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: Option<&IWbemContext>, riid: *const windows_core::GUID, presponsehandler: Option<&IWbemObjectSink>) -> windows_core::Result<()>; fn Cancel(&self, lflags: i32, phandler: Option<&IWbemObjectSink>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemClientConnectionTransport {} impl IWbemClientConnectionTransport_Vtbl { - pub const fn new() -> IWbemClientConnectionTransport_Vtbl - where - Identity: IWbemClientConnectionTransport_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, straddresstype: core::mem::MaybeUninit, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: core::mem::MaybeUninit, struser: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, strlocale: core::mem::MaybeUninit, 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 - where - Identity: IWbemClientConnectionTransport_Impl, - { + pub const fn new() -> IWbemClientConnectionTransport_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, straddresstype: core::mem::MaybeUninit, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: core::mem::MaybeUninit, struser: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, strlocale: core::mem::MaybeUninit, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClientConnectionTransport_Impl::Open(this, 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), windows_core::from_raw_borrowed(&pctx), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pinterface), core::mem::transmute_copy(&pcallres)).into() } - unsafe extern "system" fn OpenAsync(this: *mut core::ffi::c_void, straddresstype: core::mem::MaybeUninit, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: core::mem::MaybeUninit, struser: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, strlocale: core::mem::MaybeUninit, lflags: i32, pctx: *mut core::ffi::c_void, riid: *const windows_core::GUID, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClientConnectionTransport_Impl, - { + unsafe extern "system" fn OpenAsync(this: *mut core::ffi::c_void, straddresstype: core::mem::MaybeUninit, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: core::mem::MaybeUninit, struser: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, strlocale: core::mem::MaybeUninit, lflags: i32, pctx: *mut core::ffi::c_void, riid: *const windows_core::GUID, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClientConnectionTransport_Impl::OpenAsync(this, 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), windows_core::from_raw_borrowed(&pctx), core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&presponsehandler)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, lflags: i32, phandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClientConnectionTransport_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void, lflags: i32, phandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemClientConnectionTransport_Impl::Cancel(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&phandler)).into() } @@ -3831,19 +2959,13 @@ impl IWbemClientConnectionTransport_Vtbl { iid == &::IID } } -pub trait IWbemClientTransport_Impl: Sized { +pub trait IWbemClientTransport_Impl: Sized + windows_core::IUnknownImpl { 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: Option<&IWbemContext>) -> windows_core::Result; } impl windows_core::RuntimeName for IWbemClientTransport {} impl IWbemClientTransport_Vtbl { - pub const fn new() -> IWbemClientTransport_Vtbl - where - Identity: IWbemClientTransport_Impl, - { - unsafe extern "system" fn ConnectServer(this: *mut core::ffi::c_void, straddresstype: core::mem::MaybeUninit, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strnetworkresource: core::mem::MaybeUninit, struser: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, strlocale: core::mem::MaybeUninit, lsecurityflags: i32, strauthority: core::mem::MaybeUninit, pctx: *mut core::ffi::c_void, ppnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemClientTransport_Impl, - { + pub const fn new() -> IWbemClientTransport_Vtbl { + unsafe extern "system" fn ConnectServer(this: *mut core::ffi::c_void, straddresstype: core::mem::MaybeUninit, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strnetworkresource: core::mem::MaybeUninit, struser: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, strlocale: core::mem::MaybeUninit, lsecurityflags: i32, strauthority: core::mem::MaybeUninit, pctx: *mut core::ffi::c_void, ppnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemClientTransport_Impl::ConnectServer(this, 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), windows_core::from_raw_borrowed(&pctx)) { Ok(ok__) => { @@ -3859,7 +2981,7 @@ impl IWbemClientTransport_Vtbl { iid == &::IID } } -pub trait IWbemConfigureRefresher_Impl: Sized { +pub trait IWbemConfigureRefresher_Impl: Sized + windows_core::IUnknownImpl { fn AddObjectByPath(&self, pnamespace: Option<&IWbemServices>, wszpath: &windows_core::PCWSTR, lflags: i32, pcontext: Option<&IWbemContext>, pprefreshable: *mut Option, plid: *mut i32) -> windows_core::Result<()>; fn AddObjectByTemplate(&self, pnamespace: Option<&IWbemServices>, ptemplate: Option<&IWbemClassObject>, lflags: i32, pcontext: Option<&IWbemContext>, pprefreshable: *mut Option, plid: *mut i32) -> windows_core::Result<()>; fn AddRefresher(&self, prefresher: Option<&IWbemRefresher>, lflags: i32, plid: *mut i32) -> windows_core::Result<()>; @@ -3868,42 +2990,24 @@ pub trait IWbemConfigureRefresher_Impl: Sized { } impl windows_core::RuntimeName for IWbemConfigureRefresher {} impl IWbemConfigureRefresher_Vtbl { - pub const fn new() -> IWbemConfigureRefresher_Vtbl - where - Identity: IWbemConfigureRefresher_Impl, - { - unsafe extern "system" fn AddObjectByPath(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, wszpath: windows_core::PCWSTR, lflags: i32, pcontext: *mut core::ffi::c_void, pprefreshable: *mut *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemConfigureRefresher_Impl, - { + pub const fn new() -> IWbemConfigureRefresher_Vtbl { + unsafe extern "system" fn AddObjectByPath(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, wszpath: windows_core::PCWSTR, lflags: i32, pcontext: *mut core::ffi::c_void, pprefreshable: *mut *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemConfigureRefresher_Impl::AddObjectByPath(this, windows_core::from_raw_borrowed(&pnamespace), core::mem::transmute(&wszpath), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pcontext), core::mem::transmute_copy(&pprefreshable), core::mem::transmute_copy(&plid)).into() } - unsafe extern "system" fn AddObjectByTemplate(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void, lflags: i32, pcontext: *mut core::ffi::c_void, pprefreshable: *mut *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemConfigureRefresher_Impl, - { + unsafe extern "system" fn AddObjectByTemplate(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void, lflags: i32, pcontext: *mut core::ffi::c_void, pprefreshable: *mut *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemConfigureRefresher_Impl::AddObjectByTemplate(this, windows_core::from_raw_borrowed(&pnamespace), windows_core::from_raw_borrowed(&ptemplate), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pcontext), core::mem::transmute_copy(&pprefreshable), core::mem::transmute_copy(&plid)).into() } - unsafe extern "system" fn AddRefresher(this: *mut core::ffi::c_void, prefresher: *mut core::ffi::c_void, lflags: i32, plid: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemConfigureRefresher_Impl, - { + unsafe extern "system" fn AddRefresher(this: *mut core::ffi::c_void, prefresher: *mut core::ffi::c_void, lflags: i32, plid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemConfigureRefresher_Impl::AddRefresher(this, windows_core::from_raw_borrowed(&prefresher), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&plid)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lid: i32, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemConfigureRefresher_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, lid: i32, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemConfigureRefresher_Impl::Remove(this, core::mem::transmute_copy(&lid), core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn AddEnum(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, wszclassname: windows_core::PCWSTR, lflags: i32, pcontext: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemConfigureRefresher_Impl, - { + unsafe extern "system" fn AddEnum(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, wszclassname: windows_core::PCWSTR, lflags: i32, pcontext: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemConfigureRefresher_Impl::AddEnum(this, windows_core::from_raw_borrowed(&pnamespace), core::mem::transmute(&wszclassname), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pcontext), core::mem::transmute_copy(&ppenum), core::mem::transmute_copy(&plid)).into() } @@ -3920,19 +3024,13 @@ impl IWbemConfigureRefresher_Vtbl { iid == &::IID } } -pub trait IWbemConnectorLogin_Impl: Sized { +pub trait IWbemConnectorLogin_Impl: Sized + windows_core::IUnknownImpl { fn ConnectorLogin(&self, wsznetworkresource: &windows_core::PCWSTR, wszpreferredlocale: &windows_core::PCWSTR, lflags: i32, pctx: Option<&IWbemContext>, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemConnectorLogin {} impl IWbemConnectorLogin_Vtbl { - pub const fn new() -> IWbemConnectorLogin_Vtbl - where - Identity: IWbemConnectorLogin_Impl, - { - unsafe extern "system" fn ConnectorLogin(this: *mut core::ffi::c_void, wsznetworkresource: windows_core::PCWSTR, wszpreferredlocale: windows_core::PCWSTR, lflags: i32, pctx: *mut core::ffi::c_void, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemConnectorLogin_Impl, - { + pub const fn new() -> IWbemConnectorLogin_Vtbl { + unsafe extern "system" fn ConnectorLogin(this: *mut core::ffi::c_void, wsznetworkresource: windows_core::PCWSTR, wszpreferredlocale: windows_core::PCWSTR, lflags: i32, pctx: *mut core::ffi::c_void, riid: *const windows_core::GUID, pinterface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemConnectorLogin_Impl::ConnectorLogin(this, core::mem::transmute(&wsznetworkresource), core::mem::transmute(&wszpreferredlocale), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&pinterface)).into() } @@ -3942,7 +3040,7 @@ impl IWbemConnectorLogin_Vtbl { iid == &::IID } } -pub trait IWbemConstructClassObject_Impl: Sized { +pub trait IWbemConstructClassObject_Impl: Sized + windows_core::IUnknownImpl { fn SetInheritanceChain(&self, lnumantecedents: i32, awszantecedents: *const windows_core::PCWSTR) -> windows_core::Result<()>; fn SetPropertyOrigin(&self, wszpropertyname: &windows_core::PCWSTR, loriginindex: i32) -> windows_core::Result<()>; fn SetMethodOrigin(&self, wszmethodname: &windows_core::PCWSTR, loriginindex: i32) -> windows_core::Result<()>; @@ -3950,35 +3048,20 @@ pub trait IWbemConstructClassObject_Impl: Sized { } impl windows_core::RuntimeName for IWbemConstructClassObject {} impl IWbemConstructClassObject_Vtbl { - pub const fn new() -> IWbemConstructClassObject_Vtbl - where - Identity: IWbemConstructClassObject_Impl, - { - unsafe extern "system" fn SetInheritanceChain(this: *mut core::ffi::c_void, lnumantecedents: i32, awszantecedents: *const windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemConstructClassObject_Impl, - { + pub const fn new() -> IWbemConstructClassObject_Vtbl { + unsafe extern "system" fn SetInheritanceChain(this: *mut core::ffi::c_void, lnumantecedents: i32, awszantecedents: *const windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemConstructClassObject_Impl::SetInheritanceChain(this, core::mem::transmute_copy(&lnumantecedents), core::mem::transmute_copy(&awszantecedents)).into() } - unsafe extern "system" fn SetPropertyOrigin(this: *mut core::ffi::c_void, wszpropertyname: windows_core::PCWSTR, loriginindex: i32) -> windows_core::HRESULT - where - Identity: IWbemConstructClassObject_Impl, - { + unsafe extern "system" fn SetPropertyOrigin(this: *mut core::ffi::c_void, wszpropertyname: windows_core::PCWSTR, loriginindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemConstructClassObject_Impl::SetPropertyOrigin(this, core::mem::transmute(&wszpropertyname), core::mem::transmute_copy(&loriginindex)).into() } - unsafe extern "system" fn SetMethodOrigin(this: *mut core::ffi::c_void, wszmethodname: windows_core::PCWSTR, loriginindex: i32) -> windows_core::HRESULT - where - Identity: IWbemConstructClassObject_Impl, - { + unsafe extern "system" fn SetMethodOrigin(this: *mut core::ffi::c_void, wszmethodname: windows_core::PCWSTR, loriginindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemConstructClassObject_Impl::SetMethodOrigin(this, core::mem::transmute(&wszmethodname), core::mem::transmute_copy(&loriginindex)).into() } - unsafe extern "system" fn SetServerNamespace(this: *mut core::ffi::c_void, wszserver: windows_core::PCWSTR, wsznamespace: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemConstructClassObject_Impl, - { + unsafe extern "system" fn SetServerNamespace(this: *mut core::ffi::c_void, wszserver: windows_core::PCWSTR, wsznamespace: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemConstructClassObject_Impl::SetServerNamespace(this, core::mem::transmute(&wszserver), core::mem::transmute(&wsznamespace)).into() } @@ -3995,7 +3078,7 @@ impl IWbemConstructClassObject_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWbemContext_Impl: Sized { +pub trait IWbemContext_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -4010,14 +3093,8 @@ pub trait IWbemContext_Impl: Sized { impl windows_core::RuntimeName for IWbemContext {} #[cfg(feature = "Win32_System_Com")] impl IWbemContext_Vtbl { - pub const fn new() -> IWbemContext_Vtbl - where - Identity: IWbemContext_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppnewcopy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemContext_Impl, - { + pub const fn new() -> IWbemContext_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppnewcopy: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemContext_Impl::Clone(this) { Ok(ok__) => { @@ -4027,10 +3104,7 @@ impl IWbemContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, lflags: i32, pnames: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IWbemContext_Impl, - { + unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, lflags: i32, pnames: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemContext_Impl::GetNames(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -4040,38 +3114,23 @@ impl IWbemContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginEnumeration(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemContext_Impl, - { + unsafe extern "system" fn BeginEnumeration(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemContext_Impl::BeginEnumeration(this, core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, lflags: i32, pstrname: *mut core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemContext_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, lflags: i32, pstrname: *mut core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemContext_Impl::Next(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pstrname), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn EndEnumeration(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemContext_Impl, - { + unsafe extern "system" fn EndEnumeration(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemContext_Impl::EndEnumeration(this).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemContext_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32, pvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemContext_Impl::SetValue(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemContext_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemContext_Impl::GetValue(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -4081,17 +3140,11 @@ impl IWbemContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteValue(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemContext_Impl, - { + unsafe extern "system" fn DeleteValue(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemContext_Impl::DeleteValue(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemContext_Impl, - { + unsafe extern "system" fn DeleteAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemContext_Impl::DeleteAll(this).into() } @@ -4118,14 +3171,8 @@ pub trait IWbemDecoupledBasicEventProvider_Impl: Sized + IWbemDecoupledRegistrar } impl windows_core::RuntimeName for IWbemDecoupledBasicEventProvider {} impl IWbemDecoupledBasicEventProvider_Vtbl { - pub const fn new() -> IWbemDecoupledBasicEventProvider_Vtbl - where - Identity: IWbemDecoupledBasicEventProvider_Impl, - { - unsafe extern "system" fn GetSink(this: *mut core::ffi::c_void, a_flags: i32, a_context: *mut core::ffi::c_void, a_sink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemDecoupledBasicEventProvider_Impl, - { + pub const fn new() -> IWbemDecoupledBasicEventProvider_Vtbl { + unsafe extern "system" fn GetSink(this: *mut core::ffi::c_void, a_flags: i32, a_context: *mut core::ffi::c_void, a_sink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemDecoupledBasicEventProvider_Impl::GetSink(this, core::mem::transmute_copy(&a_flags), windows_core::from_raw_borrowed(&a_context)) { Ok(ok__) => { @@ -4135,10 +3182,7 @@ impl IWbemDecoupledBasicEventProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, a_flags: i32, a_context: *mut core::ffi::c_void, a_service: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemDecoupledBasicEventProvider_Impl, - { + unsafe extern "system" fn GetService(this: *mut core::ffi::c_void, a_flags: i32, a_context: *mut core::ffi::c_void, a_service: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemDecoupledBasicEventProvider_Impl::GetService(this, core::mem::transmute_copy(&a_flags), windows_core::from_raw_borrowed(&a_context)) { Ok(ok__) => { @@ -4158,27 +3202,18 @@ impl IWbemDecoupledBasicEventProvider_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWbemDecoupledRegistrar_Impl: Sized { +pub trait IWbemDecoupledRegistrar_Impl: Sized + windows_core::IUnknownImpl { fn Register(&self, a_flags: i32, a_context: Option<&IWbemContext>, a_user: &windows_core::PCWSTR, a_locale: &windows_core::PCWSTR, a_scope: &windows_core::PCWSTR, a_registration: &windows_core::PCWSTR, piunknown: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn UnRegister(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemDecoupledRegistrar {} impl IWbemDecoupledRegistrar_Vtbl { - pub const fn new() -> IWbemDecoupledRegistrar_Vtbl - where - Identity: IWbemDecoupledRegistrar_Impl, - { - unsafe extern "system" fn Register(this: *mut core::ffi::c_void, a_flags: i32, a_context: *mut core::ffi::c_void, a_user: windows_core::PCWSTR, a_locale: windows_core::PCWSTR, a_scope: windows_core::PCWSTR, a_registration: windows_core::PCWSTR, piunknown: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemDecoupledRegistrar_Impl, - { + pub const fn new() -> IWbemDecoupledRegistrar_Vtbl { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void, a_flags: i32, a_context: *mut core::ffi::c_void, a_user: windows_core::PCWSTR, a_locale: windows_core::PCWSTR, a_scope: windows_core::PCWSTR, a_registration: windows_core::PCWSTR, piunknown: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemDecoupledRegistrar_Impl::Register(this, core::mem::transmute_copy(&a_flags), windows_core::from_raw_borrowed(&a_context), core::mem::transmute(&a_user), core::mem::transmute(&a_locale), core::mem::transmute(&a_scope), core::mem::transmute(&a_registration), windows_core::from_raw_borrowed(&piunknown)).into() } - unsafe extern "system" fn UnRegister(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemDecoupledRegistrar_Impl, - { + unsafe extern "system" fn UnRegister(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemDecoupledRegistrar_Impl::UnRegister(this).into() } @@ -4192,19 +3227,13 @@ impl IWbemDecoupledRegistrar_Vtbl { iid == &::IID } } -pub trait IWbemEventConsumerProvider_Impl: Sized { +pub trait IWbemEventConsumerProvider_Impl: Sized + windows_core::IUnknownImpl { fn FindConsumer(&self, plogicalconsumer: Option<&IWbemClassObject>) -> windows_core::Result; } impl windows_core::RuntimeName for IWbemEventConsumerProvider {} impl IWbemEventConsumerProvider_Vtbl { - pub const fn new() -> IWbemEventConsumerProvider_Vtbl - where - Identity: IWbemEventConsumerProvider_Impl, - { - unsafe extern "system" fn FindConsumer(this: *mut core::ffi::c_void, plogicalconsumer: *mut core::ffi::c_void, ppconsumer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemEventConsumerProvider_Impl, - { + pub const fn new() -> IWbemEventConsumerProvider_Vtbl { + unsafe extern "system" fn FindConsumer(this: *mut core::ffi::c_void, plogicalconsumer: *mut core::ffi::c_void, ppconsumer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemEventConsumerProvider_Impl::FindConsumer(this, windows_core::from_raw_borrowed(&plogicalconsumer)) { Ok(ok__) => { @@ -4220,19 +3249,13 @@ impl IWbemEventConsumerProvider_Vtbl { iid == &::IID } } -pub trait IWbemEventProvider_Impl: Sized { +pub trait IWbemEventProvider_Impl: Sized + windows_core::IUnknownImpl { fn ProvideEvents(&self, psink: Option<&IWbemObjectSink>, lflags: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemEventProvider {} impl IWbemEventProvider_Vtbl { - pub const fn new() -> IWbemEventProvider_Vtbl - where - Identity: IWbemEventProvider_Impl, - { - unsafe extern "system" fn ProvideEvents(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemEventProvider_Impl, - { + pub const fn new() -> IWbemEventProvider_Vtbl { + unsafe extern "system" fn ProvideEvents(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemEventProvider_Impl::ProvideEvents(this, windows_core::from_raw_borrowed(&psink), core::mem::transmute_copy(&lflags)).into() } @@ -4242,27 +3265,18 @@ impl IWbemEventProvider_Vtbl { iid == &::IID } } -pub trait IWbemEventProviderQuerySink_Impl: Sized { +pub trait IWbemEventProviderQuerySink_Impl: Sized + windows_core::IUnknownImpl { fn NewQuery(&self, dwid: u32, wszquerylanguage: *const u16, wszquery: *const u16) -> windows_core::Result<()>; fn CancelQuery(&self, dwid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemEventProviderQuerySink {} impl IWbemEventProviderQuerySink_Vtbl { - pub const fn new() -> IWbemEventProviderQuerySink_Vtbl - where - Identity: IWbemEventProviderQuerySink_Impl, - { - unsafe extern "system" fn NewQuery(this: *mut core::ffi::c_void, dwid: u32, wszquerylanguage: *const u16, wszquery: *const u16) -> windows_core::HRESULT - where - Identity: IWbemEventProviderQuerySink_Impl, - { + pub const fn new() -> IWbemEventProviderQuerySink_Vtbl { + unsafe extern "system" fn NewQuery(this: *mut core::ffi::c_void, dwid: u32, wszquerylanguage: *const u16, wszquery: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemEventProviderQuerySink_Impl::NewQuery(this, core::mem::transmute_copy(&dwid), core::mem::transmute_copy(&wszquerylanguage), core::mem::transmute_copy(&wszquery)).into() } - unsafe extern "system" fn CancelQuery(this: *mut core::ffi::c_void, dwid: u32) -> windows_core::HRESULT - where - Identity: IWbemEventProviderQuerySink_Impl, - { + unsafe extern "system" fn CancelQuery(this: *mut core::ffi::c_void, dwid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemEventProviderQuerySink_Impl::CancelQuery(this, core::mem::transmute_copy(&dwid)).into() } @@ -4276,19 +3290,13 @@ impl IWbemEventProviderQuerySink_Vtbl { iid == &::IID } } -pub trait IWbemEventProviderSecurity_Impl: Sized { +pub trait IWbemEventProviderSecurity_Impl: Sized + windows_core::IUnknownImpl { fn AccessCheck(&self, wszquerylanguage: *const u16, wszquery: *const u16, lsidlength: i32, psid: *const u8) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemEventProviderSecurity {} impl IWbemEventProviderSecurity_Vtbl { - pub const fn new() -> IWbemEventProviderSecurity_Vtbl - where - Identity: IWbemEventProviderSecurity_Impl, - { - unsafe extern "system" fn AccessCheck(this: *mut core::ffi::c_void, wszquerylanguage: *const u16, wszquery: *const u16, lsidlength: i32, psid: *const u8) -> windows_core::HRESULT - where - Identity: IWbemEventProviderSecurity_Impl, - { + pub const fn new() -> IWbemEventProviderSecurity_Vtbl { + unsafe extern "system" fn AccessCheck(this: *mut core::ffi::c_void, wszquerylanguage: *const u16, wszquery: *const u16, lsidlength: i32, psid: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemEventProviderSecurity_Impl::AccessCheck(this, core::mem::transmute_copy(&wszquerylanguage), core::mem::transmute_copy(&wszquery), core::mem::transmute_copy(&lsidlength), core::mem::transmute_copy(&psid)).into() } @@ -4306,28 +3314,16 @@ pub trait IWbemEventSink_Impl: Sized + IWbemObjectSink_Impl { } impl windows_core::RuntimeName for IWbemEventSink {} impl IWbemEventSink_Vtbl { - pub const fn new() -> IWbemEventSink_Vtbl - where - Identity: IWbemEventSink_Impl, - { - unsafe extern "system" fn SetSinkSecurity(this: *mut core::ffi::c_void, lsdlength: i32, psd: *const u8) -> windows_core::HRESULT - where - Identity: IWbemEventSink_Impl, - { + pub const fn new() -> IWbemEventSink_Vtbl { + unsafe extern "system" fn SetSinkSecurity(this: *mut core::ffi::c_void, lsdlength: i32, psd: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemEventSink_Impl::SetSinkSecurity(this, core::mem::transmute_copy(&lsdlength), core::mem::transmute_copy(&psd)).into() } - unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemEventSink_Impl, - { + unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemEventSink_Impl::IsActive(this).into() } - unsafe extern "system" fn GetRestrictedSink(this: *mut core::ffi::c_void, lnumqueries: i32, awszqueries: *const windows_core::PCWSTR, pcallback: *mut core::ffi::c_void, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemEventSink_Impl, - { + unsafe extern "system" fn GetRestrictedSink(this: *mut core::ffi::c_void, lnumqueries: i32, awszqueries: *const windows_core::PCWSTR, pcallback: *mut core::ffi::c_void, ppsink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemEventSink_Impl::GetRestrictedSink(this, core::mem::transmute_copy(&lnumqueries), core::mem::transmute_copy(&awszqueries), windows_core::from_raw_borrowed(&pcallback)) { Ok(ok__) => { @@ -4337,10 +3333,7 @@ impl IWbemEventSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBatchingParameters(this: *mut core::ffi::c_void, lflags: i32, dwmaxbuffersize: u32, dwmaxsendlatency: u32) -> windows_core::HRESULT - where - Identity: IWbemEventSink_Impl, - { + unsafe extern "system" fn SetBatchingParameters(this: *mut core::ffi::c_void, lflags: i32, dwmaxbuffersize: u32, dwmaxsendlatency: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemEventSink_Impl::SetBatchingParameters(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&dwmaxbuffersize), core::mem::transmute_copy(&dwmaxsendlatency)).into() } @@ -4356,7 +3349,7 @@ impl IWbemEventSink_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWbemHiPerfEnum_Impl: Sized { +pub trait IWbemHiPerfEnum_Impl: Sized + windows_core::IUnknownImpl { fn AddObjects(&self, lflags: i32, unumobjects: u32, apids: *const i32, apobj: *const Option) -> windows_core::Result<()>; fn RemoveObjects(&self, lflags: i32, unumobjects: u32, apids: *const i32) -> windows_core::Result<()>; fn GetObjects(&self, lflags: i32, unumobjects: u32, apobj: *mut Option, pureturned: *mut u32) -> windows_core::Result<()>; @@ -4364,35 +3357,20 @@ pub trait IWbemHiPerfEnum_Impl: Sized { } impl windows_core::RuntimeName for IWbemHiPerfEnum {} impl IWbemHiPerfEnum_Vtbl { - pub const fn new() -> IWbemHiPerfEnum_Vtbl - where - Identity: IWbemHiPerfEnum_Impl, - { - unsafe extern "system" fn AddObjects(this: *mut core::ffi::c_void, lflags: i32, unumobjects: u32, apids: *const i32, apobj: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemHiPerfEnum_Impl, - { + pub const fn new() -> IWbemHiPerfEnum_Vtbl { + unsafe extern "system" fn AddObjects(this: *mut core::ffi::c_void, lflags: i32, unumobjects: u32, apids: *const i32, apobj: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemHiPerfEnum_Impl::AddObjects(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&unumobjects), core::mem::transmute_copy(&apids), core::mem::transmute_copy(&apobj)).into() } - unsafe extern "system" fn RemoveObjects(this: *mut core::ffi::c_void, lflags: i32, unumobjects: u32, apids: *const i32) -> windows_core::HRESULT - where - Identity: IWbemHiPerfEnum_Impl, - { + unsafe extern "system" fn RemoveObjects(this: *mut core::ffi::c_void, lflags: i32, unumobjects: u32, apids: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemHiPerfEnum_Impl::RemoveObjects(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&unumobjects), core::mem::transmute_copy(&apids)).into() } - unsafe extern "system" fn GetObjects(this: *mut core::ffi::c_void, lflags: i32, unumobjects: u32, apobj: *mut *mut core::ffi::c_void, pureturned: *mut u32) -> windows_core::HRESULT - where - Identity: IWbemHiPerfEnum_Impl, - { + unsafe extern "system" fn GetObjects(this: *mut core::ffi::c_void, lflags: i32, unumobjects: u32, apobj: *mut *mut core::ffi::c_void, pureturned: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemHiPerfEnum_Impl::GetObjects(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&unumobjects), core::mem::transmute_copy(&apobj), core::mem::transmute_copy(&pureturned)).into() } - unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemHiPerfEnum_Impl, - { + unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemHiPerfEnum_Impl::RemoveAll(this, core::mem::transmute_copy(&lflags)).into() } @@ -4408,7 +3386,7 @@ impl IWbemHiPerfEnum_Vtbl { iid == &::IID } } -pub trait IWbemHiPerfProvider_Impl: Sized { +pub trait IWbemHiPerfProvider_Impl: Sized + windows_core::IUnknownImpl { fn QueryInstances(&self, pnamespace: Option<&IWbemServices>, wszclass: &windows_core::PCWSTR, lflags: i32, pctx: Option<&IWbemContext>, psink: Option<&IWbemObjectSink>) -> windows_core::Result<()>; fn CreateRefresher(&self, pnamespace: Option<&IWbemServices>, lflags: i32) -> windows_core::Result; fn CreateRefreshableObject(&self, pnamespace: Option<&IWbemServices>, ptemplate: Option<&IWbemObjectAccess>, prefresher: Option<&IWbemRefresher>, lflags: i32, pcontext: Option<&IWbemContext>, pprefreshable: *mut Option, plid: *mut i32) -> windows_core::Result<()>; @@ -4418,21 +3396,12 @@ pub trait IWbemHiPerfProvider_Impl: Sized { } impl windows_core::RuntimeName for IWbemHiPerfProvider {} impl IWbemHiPerfProvider_Vtbl { - pub const fn new() -> IWbemHiPerfProvider_Vtbl - where - Identity: IWbemHiPerfProvider_Impl, - { - unsafe extern "system" fn QueryInstances(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, wszclass: windows_core::PCWSTR, lflags: i32, pctx: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemHiPerfProvider_Impl, - { + pub const fn new() -> IWbemHiPerfProvider_Vtbl { + unsafe extern "system" fn QueryInstances(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, wszclass: windows_core::PCWSTR, lflags: i32, pctx: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemHiPerfProvider_Impl::QueryInstances(this, windows_core::from_raw_borrowed(&pnamespace), core::mem::transmute(&wszclass), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn CreateRefresher(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, lflags: i32, pprefresher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemHiPerfProvider_Impl, - { + unsafe extern "system" fn CreateRefresher(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, lflags: i32, pprefresher: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemHiPerfProvider_Impl::CreateRefresher(this, windows_core::from_raw_borrowed(&pnamespace), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -4442,24 +3411,15 @@ impl IWbemHiPerfProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRefreshableObject(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void, prefresher: *mut core::ffi::c_void, lflags: i32, pcontext: *mut core::ffi::c_void, pprefreshable: *mut *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemHiPerfProvider_Impl, - { + unsafe extern "system" fn CreateRefreshableObject(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, ptemplate: *mut core::ffi::c_void, prefresher: *mut core::ffi::c_void, lflags: i32, pcontext: *mut core::ffi::c_void, pprefreshable: *mut *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemHiPerfProvider_Impl::CreateRefreshableObject(this, windows_core::from_raw_borrowed(&pnamespace), windows_core::from_raw_borrowed(&ptemplate), windows_core::from_raw_borrowed(&prefresher), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pcontext), core::mem::transmute_copy(&pprefreshable), core::mem::transmute_copy(&plid)).into() } - unsafe extern "system" fn StopRefreshing(this: *mut core::ffi::c_void, prefresher: *mut core::ffi::c_void, lid: i32, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemHiPerfProvider_Impl, - { + unsafe extern "system" fn StopRefreshing(this: *mut core::ffi::c_void, prefresher: *mut core::ffi::c_void, lid: i32, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemHiPerfProvider_Impl::StopRefreshing(this, windows_core::from_raw_borrowed(&prefresher), core::mem::transmute_copy(&lid), core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn CreateRefreshableEnum(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, wszclass: windows_core::PCWSTR, prefresher: *mut core::ffi::c_void, lflags: i32, pcontext: *mut core::ffi::c_void, phiperfenum: *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemHiPerfProvider_Impl, - { + unsafe extern "system" fn CreateRefreshableEnum(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, wszclass: windows_core::PCWSTR, prefresher: *mut core::ffi::c_void, lflags: i32, pcontext: *mut core::ffi::c_void, phiperfenum: *mut core::ffi::c_void, plid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemHiPerfProvider_Impl::CreateRefreshableEnum(this, windows_core::from_raw_borrowed(&pnamespace), core::mem::transmute(&wszclass), windows_core::from_raw_borrowed(&prefresher), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pcontext), windows_core::from_raw_borrowed(&phiperfenum)) { Ok(ok__) => { @@ -4469,10 +3429,7 @@ impl IWbemHiPerfProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjects(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, lnumobjects: i32, apobj: *mut *mut core::ffi::c_void, lflags: i32, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemHiPerfProvider_Impl, - { + unsafe extern "system" fn GetObjects(this: *mut core::ffi::c_void, pnamespace: *mut core::ffi::c_void, lnumobjects: i32, apobj: *mut *mut core::ffi::c_void, lflags: i32, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemHiPerfProvider_Impl::GetObjects(this, windows_core::from_raw_borrowed(&pnamespace), core::mem::transmute_copy(&lnumobjects), core::mem::transmute_copy(&apobj), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pcontext)).into() } @@ -4490,7 +3447,7 @@ impl IWbemHiPerfProvider_Vtbl { iid == &::IID } } -pub trait IWbemLevel1Login_Impl: Sized { +pub trait IWbemLevel1Login_Impl: Sized + windows_core::IUnknownImpl { fn EstablishPosition(&self, wszlocalelist: &windows_core::PCWSTR, dwnumlocales: u32) -> windows_core::Result; fn RequestChallenge(&self, wsznetworkresource: &windows_core::PCWSTR, wszuser: &windows_core::PCWSTR) -> windows_core::Result; fn WBEMLogin(&self, wszpreferredlocale: &windows_core::PCWSTR, accesstoken: *const u8, lflags: i32, pctx: Option<&IWbemContext>) -> windows_core::Result; @@ -4498,14 +3455,8 @@ pub trait IWbemLevel1Login_Impl: Sized { } impl windows_core::RuntimeName for IWbemLevel1Login {} impl IWbemLevel1Login_Vtbl { - pub const fn new() -> IWbemLevel1Login_Vtbl - where - Identity: IWbemLevel1Login_Impl, - { - unsafe extern "system" fn EstablishPosition(this: *mut core::ffi::c_void, wszlocalelist: windows_core::PCWSTR, dwnumlocales: u32, reserved: *mut u32) -> windows_core::HRESULT - where - Identity: IWbemLevel1Login_Impl, - { + pub const fn new() -> IWbemLevel1Login_Vtbl { + unsafe extern "system" fn EstablishPosition(this: *mut core::ffi::c_void, wszlocalelist: windows_core::PCWSTR, dwnumlocales: u32, reserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemLevel1Login_Impl::EstablishPosition(this, core::mem::transmute(&wszlocalelist), core::mem::transmute_copy(&dwnumlocales)) { Ok(ok__) => { @@ -4515,10 +3466,7 @@ impl IWbemLevel1Login_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestChallenge(this: *mut core::ffi::c_void, wsznetworkresource: windows_core::PCWSTR, wszuser: windows_core::PCWSTR, nonce: *mut u8) -> windows_core::HRESULT - where - Identity: IWbemLevel1Login_Impl, - { + unsafe extern "system" fn RequestChallenge(this: *mut core::ffi::c_void, wsznetworkresource: windows_core::PCWSTR, wszuser: windows_core::PCWSTR, nonce: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemLevel1Login_Impl::RequestChallenge(this, core::mem::transmute(&wsznetworkresource), core::mem::transmute(&wszuser)) { Ok(ok__) => { @@ -4528,10 +3476,7 @@ impl IWbemLevel1Login_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WBEMLogin(this: *mut core::ffi::c_void, wszpreferredlocale: windows_core::PCWSTR, accesstoken: *const u8, lflags: i32, pctx: *mut core::ffi::c_void, ppnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemLevel1Login_Impl, - { + unsafe extern "system" fn WBEMLogin(this: *mut core::ffi::c_void, wszpreferredlocale: windows_core::PCWSTR, accesstoken: *const u8, lflags: i32, pctx: *mut core::ffi::c_void, ppnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemLevel1Login_Impl::WBEMLogin(this, core::mem::transmute(&wszpreferredlocale), core::mem::transmute_copy(&accesstoken), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx)) { Ok(ok__) => { @@ -4541,10 +3486,7 @@ impl IWbemLevel1Login_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NTLMLogin(this: *mut core::ffi::c_void, wsznetworkresource: windows_core::PCWSTR, wszpreferredlocale: windows_core::PCWSTR, lflags: i32, pctx: *mut core::ffi::c_void, ppnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemLevel1Login_Impl, - { + unsafe extern "system" fn NTLMLogin(this: *mut core::ffi::c_void, wsznetworkresource: windows_core::PCWSTR, wszpreferredlocale: windows_core::PCWSTR, lflags: i32, pctx: *mut core::ffi::c_void, ppnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemLevel1Login_Impl::NTLMLogin(this, core::mem::transmute(&wsznetworkresource), core::mem::transmute(&wszpreferredlocale), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx)) { Ok(ok__) => { @@ -4566,19 +3508,13 @@ impl IWbemLevel1Login_Vtbl { iid == &::IID } } -pub trait IWbemLocator_Impl: Sized { +pub trait IWbemLocator_Impl: Sized + windows_core::IUnknownImpl { 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: Option<&IWbemContext>) -> windows_core::Result; } impl windows_core::RuntimeName for IWbemLocator {} impl IWbemLocator_Vtbl { - pub const fn new() -> IWbemLocator_Vtbl - where - Identity: IWbemLocator_Impl, - { - unsafe extern "system" fn ConnectServer(this: *mut core::ffi::c_void, strnetworkresource: core::mem::MaybeUninit, struser: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, strlocale: core::mem::MaybeUninit, lsecurityflags: i32, strauthority: core::mem::MaybeUninit, pctx: *mut core::ffi::c_void, ppnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemLocator_Impl, - { + pub const fn new() -> IWbemLocator_Vtbl { + unsafe extern "system" fn ConnectServer(this: *mut core::ffi::c_void, strnetworkresource: core::mem::MaybeUninit, struser: core::mem::MaybeUninit, strpassword: core::mem::MaybeUninit, strlocale: core::mem::MaybeUninit, lsecurityflags: i32, strauthority: core::mem::MaybeUninit, pctx: *mut core::ffi::c_void, ppnamespace: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemLocator_Impl::ConnectServer(this, 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), windows_core::from_raw_borrowed(&pctx)) { Ok(ok__) => { @@ -4611,35 +3547,20 @@ pub trait IWbemObjectAccess_Impl: Sized + IWbemClassObject_Impl { impl windows_core::RuntimeName for IWbemObjectAccess {} #[cfg(feature = "Win32_System_Com")] impl IWbemObjectAccess_Vtbl { - pub const fn new() -> IWbemObjectAccess_Vtbl - where - Identity: IWbemObjectAccess_Impl, - { - unsafe extern "system" fn GetPropertyHandle(this: *mut core::ffi::c_void, wszpropertyname: windows_core::PCWSTR, ptype: *mut i32, plhandle: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemObjectAccess_Impl, - { + pub const fn new() -> IWbemObjectAccess_Vtbl { + unsafe extern "system" fn GetPropertyHandle(this: *mut core::ffi::c_void, wszpropertyname: windows_core::PCWSTR, ptype: *mut i32, plhandle: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectAccess_Impl::GetPropertyHandle(this, core::mem::transmute(&wszpropertyname), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&plhandle)).into() } - unsafe extern "system" fn WritePropertyValue(this: *mut core::ffi::c_void, lhandle: i32, lnumbytes: i32, adata: *const u8) -> windows_core::HRESULT - where - Identity: IWbemObjectAccess_Impl, - { + unsafe extern "system" fn WritePropertyValue(this: *mut core::ffi::c_void, lhandle: i32, lnumbytes: i32, adata: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectAccess_Impl::WritePropertyValue(this, core::mem::transmute_copy(&lhandle), core::mem::transmute_copy(&lnumbytes), core::mem::transmute_copy(&adata)).into() } - unsafe extern "system" fn ReadPropertyValue(this: *mut core::ffi::c_void, lhandle: i32, lbuffersize: i32, plnumbytes: *mut i32, adata: *mut u8) -> windows_core::HRESULT - where - Identity: IWbemObjectAccess_Impl, - { + unsafe extern "system" fn ReadPropertyValue(this: *mut core::ffi::c_void, lhandle: i32, lbuffersize: i32, plnumbytes: *mut i32, adata: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectAccess_Impl::ReadPropertyValue(this, core::mem::transmute_copy(&lhandle), core::mem::transmute_copy(&lbuffersize), core::mem::transmute_copy(&plnumbytes), core::mem::transmute_copy(&adata)).into() } - unsafe extern "system" fn ReadDWORD(this: *mut core::ffi::c_void, lhandle: i32, pdw: *mut u32) -> windows_core::HRESULT - where - Identity: IWbemObjectAccess_Impl, - { + unsafe extern "system" fn ReadDWORD(this: *mut core::ffi::c_void, lhandle: i32, pdw: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemObjectAccess_Impl::ReadDWORD(this, core::mem::transmute_copy(&lhandle)) { Ok(ok__) => { @@ -4649,17 +3570,11 @@ impl IWbemObjectAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteDWORD(this: *mut core::ffi::c_void, lhandle: i32, dw: u32) -> windows_core::HRESULT - where - Identity: IWbemObjectAccess_Impl, - { + unsafe extern "system" fn WriteDWORD(this: *mut core::ffi::c_void, lhandle: i32, dw: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectAccess_Impl::WriteDWORD(this, core::mem::transmute_copy(&lhandle), core::mem::transmute_copy(&dw)).into() } - unsafe extern "system" fn ReadQWORD(this: *mut core::ffi::c_void, lhandle: i32, pqw: *mut u64) -> windows_core::HRESULT - where - Identity: IWbemObjectAccess_Impl, - { + unsafe extern "system" fn ReadQWORD(this: *mut core::ffi::c_void, lhandle: i32, pqw: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemObjectAccess_Impl::ReadQWORD(this, core::mem::transmute_copy(&lhandle)) { Ok(ok__) => { @@ -4669,31 +3584,19 @@ impl IWbemObjectAccess_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteQWORD(this: *mut core::ffi::c_void, lhandle: i32, pw: u64) -> windows_core::HRESULT - where - Identity: IWbemObjectAccess_Impl, - { + unsafe extern "system" fn WriteQWORD(this: *mut core::ffi::c_void, lhandle: i32, pw: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectAccess_Impl::WriteQWORD(this, core::mem::transmute_copy(&lhandle), core::mem::transmute_copy(&pw)).into() } - unsafe extern "system" fn GetPropertyInfoByHandle(this: *mut core::ffi::c_void, lhandle: i32, pstrname: *mut core::mem::MaybeUninit, ptype: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemObjectAccess_Impl, - { + unsafe extern "system" fn GetPropertyInfoByHandle(this: *mut core::ffi::c_void, lhandle: i32, pstrname: *mut core::mem::MaybeUninit, ptype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectAccess_Impl::GetPropertyInfoByHandle(this, core::mem::transmute_copy(&lhandle), core::mem::transmute_copy(&pstrname), core::mem::transmute_copy(&ptype)).into() } - unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemObjectAccess_Impl, - { + unsafe extern "system" fn Lock(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectAccess_Impl::Lock(this, core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemObjectAccess_Impl, - { + unsafe extern "system" fn Unlock(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectAccess_Impl::Unlock(this, core::mem::transmute_copy(&lflags)).into() } @@ -4715,27 +3618,18 @@ impl IWbemObjectAccess_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWbemObjectSink_Impl: Sized { +pub trait IWbemObjectSink_Impl: Sized + windows_core::IUnknownImpl { fn Indicate(&self, lobjectcount: i32, apobjarray: *const Option) -> windows_core::Result<()>; fn SetStatus(&self, lflags: i32, hresult: windows_core::HRESULT, strparam: &windows_core::BSTR, pobjparam: Option<&IWbemClassObject>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemObjectSink {} impl IWbemObjectSink_Vtbl { - pub const fn new() -> IWbemObjectSink_Vtbl - where - Identity: IWbemObjectSink_Impl, - { - unsafe extern "system" fn Indicate(this: *mut core::ffi::c_void, lobjectcount: i32, apobjarray: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemObjectSink_Impl, - { + pub const fn new() -> IWbemObjectSink_Vtbl { + unsafe extern "system" fn Indicate(this: *mut core::ffi::c_void, lobjectcount: i32, apobjarray: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectSink_Impl::Indicate(this, core::mem::transmute_copy(&lobjectcount), core::mem::transmute_copy(&apobjarray)).into() } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, lflags: i32, hresult: windows_core::HRESULT, strparam: core::mem::MaybeUninit, pobjparam: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemObjectSink_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, lflags: i32, hresult: windows_core::HRESULT, strparam: core::mem::MaybeUninit, pobjparam: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectSink_Impl::SetStatus(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&hresult), core::mem::transmute(&strparam), windows_core::from_raw_borrowed(&pobjparam)).into() } @@ -4754,21 +3648,12 @@ pub trait IWbemObjectSinkEx_Impl: Sized + IWbemObjectSink_Impl { } impl windows_core::RuntimeName for IWbemObjectSinkEx {} impl IWbemObjectSinkEx_Vtbl { - pub const fn new() -> IWbemObjectSinkEx_Vtbl - where - Identity: IWbemObjectSinkEx_Impl, - { - unsafe extern "system" fn WriteMessage(this: *mut core::ffi::c_void, uchannel: u32, strmessage: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemObjectSinkEx_Impl, - { + pub const fn new() -> IWbemObjectSinkEx_Vtbl { + unsafe extern "system" fn WriteMessage(this: *mut core::ffi::c_void, uchannel: u32, strmessage: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectSinkEx_Impl::WriteMessage(this, core::mem::transmute_copy(&uchannel), core::mem::transmute(&strmessage)).into() } - unsafe extern "system" fn WriteError(this: *mut core::ffi::c_void, pobjerror: *mut core::ffi::c_void, pureturned: *mut u8) -> windows_core::HRESULT - where - Identity: IWbemObjectSinkEx_Impl, - { + unsafe extern "system" fn WriteError(this: *mut core::ffi::c_void, pobjerror: *mut core::ffi::c_void, pureturned: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemObjectSinkEx_Impl::WriteError(this, windows_core::from_raw_borrowed(&pobjerror)) { Ok(ok__) => { @@ -4778,10 +3663,7 @@ impl IWbemObjectSinkEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PromptUser(this: *mut core::ffi::c_void, strmessage: core::mem::MaybeUninit, uprompttype: u8, pureturned: *mut u8) -> windows_core::HRESULT - where - Identity: IWbemObjectSinkEx_Impl, - { + unsafe extern "system" fn PromptUser(this: *mut core::ffi::c_void, strmessage: core::mem::MaybeUninit, uprompttype: u8, pureturned: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemObjectSinkEx_Impl::PromptUser(this, core::mem::transmute(&strmessage), core::mem::transmute_copy(&uprompttype)) { Ok(ok__) => { @@ -4791,17 +3673,11 @@ impl IWbemObjectSinkEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WriteProgress(this: *mut core::ffi::c_void, stractivity: core::mem::MaybeUninit, strcurrentoperation: core::mem::MaybeUninit, strstatusdescription: core::mem::MaybeUninit, upercentcomplete: u32, usecondsremaining: u32) -> windows_core::HRESULT - where - Identity: IWbemObjectSinkEx_Impl, - { + unsafe extern "system" fn WriteProgress(this: *mut core::ffi::c_void, stractivity: core::mem::MaybeUninit, strcurrentoperation: core::mem::MaybeUninit, strstatusdescription: core::mem::MaybeUninit, upercentcomplete: u32, usecondsremaining: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectSinkEx_Impl::WriteProgress(this, 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(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, vtvalue: *const core::mem::MaybeUninit, ultype: u32, ulflags: u32) -> windows_core::HRESULT - where - Identity: IWbemObjectSinkEx_Impl, - { + unsafe extern "system" fn WriteStreamParameter(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit, vtvalue: *const core::mem::MaybeUninit, ultype: u32, ulflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemObjectSinkEx_Impl::WriteStreamParameter(this, core::mem::transmute(&strname), core::mem::transmute_copy(&vtvalue), core::mem::transmute_copy(&ultype), core::mem::transmute_copy(&ulflags)).into() } @@ -4818,20 +3694,14 @@ impl IWbemObjectSinkEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IWbemObjectTextSrc_Impl: Sized { +pub trait IWbemObjectTextSrc_Impl: Sized + windows_core::IUnknownImpl { fn GetText(&self, lflags: i32, pobj: Option<&IWbemClassObject>, uobjtextformat: u32, pctx: Option<&IWbemContext>) -> windows_core::Result; fn CreateFromText(&self, lflags: i32, strtext: &windows_core::BSTR, uobjtextformat: u32, pctx: Option<&IWbemContext>) -> windows_core::Result; } impl windows_core::RuntimeName for IWbemObjectTextSrc {} impl IWbemObjectTextSrc_Vtbl { - pub const fn new() -> IWbemObjectTextSrc_Vtbl - where - Identity: IWbemObjectTextSrc_Impl, - { - unsafe extern "system" fn GetText(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::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemObjectTextSrc_Impl, - { + pub const fn new() -> IWbemObjectTextSrc_Vtbl { + unsafe extern "system" fn GetText(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::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemObjectTextSrc_Impl::GetText(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pobj), core::mem::transmute_copy(&uobjtextformat), windows_core::from_raw_borrowed(&pctx)) { Ok(ok__) => { @@ -4841,10 +3711,7 @@ impl IWbemObjectTextSrc_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFromText(this: *mut core::ffi::c_void, lflags: i32, strtext: core::mem::MaybeUninit, uobjtextformat: u32, pctx: *mut core::ffi::c_void, pnewobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemObjectTextSrc_Impl, - { + unsafe extern "system" fn CreateFromText(this: *mut core::ffi::c_void, lflags: i32, strtext: core::mem::MaybeUninit, uobjtextformat: u32, pctx: *mut core::ffi::c_void, pnewobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemObjectTextSrc_Impl::CreateFromText(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&strtext), core::mem::transmute_copy(&uobjtextformat), windows_core::from_raw_borrowed(&pctx)) { Ok(ok__) => { @@ -4864,7 +3731,7 @@ impl IWbemObjectTextSrc_Vtbl { iid == &::IID } } -pub trait IWbemPath_Impl: Sized { +pub trait IWbemPath_Impl: Sized + windows_core::IUnknownImpl { fn SetText(&self, umode: u32, pszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetText(&self, lflags: i32, pubufflength: *mut u32, psztext: windows_core::PWSTR) -> windows_core::Result<()>; fn GetInfo(&self, urequestedinfo: u32) -> windows_core::Result; @@ -4894,28 +3761,16 @@ pub trait IWbemPath_Impl: Sized { } impl windows_core::RuntimeName for IWbemPath {} impl IWbemPath_Vtbl { - pub const fn new() -> IWbemPath_Vtbl - where - Identity: IWbemPath_Impl, - { - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, umode: u32, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + pub const fn new() -> IWbemPath_Vtbl { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, umode: u32, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::SetText(this, core::mem::transmute_copy(&umode), core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, lflags: i32, pubufflength: *mut u32, psztext: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, lflags: i32, pubufflength: *mut u32, psztext: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::GetText(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pubufflength), core::mem::transmute_copy(&psztext)).into() } - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, urequestedinfo: u32, puresponse: *mut u64) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, urequestedinfo: u32, puresponse: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemPath_Impl::GetInfo(this, core::mem::transmute_copy(&urequestedinfo)) { Ok(ok__) => { @@ -4925,24 +3780,15 @@ impl IWbemPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetServer(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn SetServer(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::SetServer(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn GetServer(this: *mut core::ffi::c_void, punamebuflength: *mut u32, pname: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn GetServer(this: *mut core::ffi::c_void, punamebuflength: *mut u32, pname: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::GetServer(this, core::mem::transmute_copy(&punamebuflength), core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn GetNamespaceCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn GetNamespaceCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemPath_Impl::GetNamespaceCount(this) { Ok(ok__) => { @@ -4952,38 +3798,23 @@ impl IWbemPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNamespaceAt(this: *mut core::ffi::c_void, uindex: u32, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn SetNamespaceAt(this: *mut core::ffi::c_void, uindex: u32, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::SetNamespaceAt(this, core::mem::transmute_copy(&uindex), core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn GetNamespaceAt(this: *mut core::ffi::c_void, uindex: u32, punamebuflength: *mut u32, pname: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn GetNamespaceAt(this: *mut core::ffi::c_void, uindex: u32, punamebuflength: *mut u32, pname: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::GetNamespaceAt(this, core::mem::transmute_copy(&uindex), core::mem::transmute_copy(&punamebuflength), core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn RemoveNamespaceAt(this: *mut core::ffi::c_void, uindex: u32) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn RemoveNamespaceAt(this: *mut core::ffi::c_void, uindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::RemoveNamespaceAt(this, core::mem::transmute_copy(&uindex)).into() } - unsafe extern "system" fn RemoveAllNamespaces(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn RemoveAllNamespaces(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::RemoveAllNamespaces(this).into() } - unsafe extern "system" fn GetScopeCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn GetScopeCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemPath_Impl::GetScopeCount(this) { Ok(ok__) => { @@ -4993,66 +3824,39 @@ impl IWbemPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, uindex: u32, pszclass: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, uindex: u32, pszclass: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::SetScope(this, core::mem::transmute_copy(&uindex), core::mem::transmute(&pszclass)).into() } - unsafe extern "system" fn SetScopeFromText(this: *mut core::ffi::c_void, uindex: u32, psztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn SetScopeFromText(this: *mut core::ffi::c_void, uindex: u32, psztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::SetScopeFromText(this, core::mem::transmute_copy(&uindex), core::mem::transmute(&psztext)).into() } - unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, uindex: u32, puclassnamebufsize: *mut u32, pszclass: windows_core::PWSTR, pkeylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn GetScope(this: *mut core::ffi::c_void, uindex: u32, puclassnamebufsize: *mut u32, pszclass: windows_core::PWSTR, pkeylist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::GetScope(this, core::mem::transmute_copy(&uindex), core::mem::transmute_copy(&puclassnamebufsize), core::mem::transmute_copy(&pszclass), core::mem::transmute_copy(&pkeylist)).into() } - unsafe extern "system" fn GetScopeAsText(this: *mut core::ffi::c_void, uindex: u32, putextbufsize: *mut u32, psztext: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn GetScopeAsText(this: *mut core::ffi::c_void, uindex: u32, putextbufsize: *mut u32, psztext: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::GetScopeAsText(this, core::mem::transmute_copy(&uindex), core::mem::transmute_copy(&putextbufsize), core::mem::transmute_copy(&psztext)).into() } - unsafe extern "system" fn RemoveScope(this: *mut core::ffi::c_void, uindex: u32) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn RemoveScope(this: *mut core::ffi::c_void, uindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::RemoveScope(this, core::mem::transmute_copy(&uindex)).into() } - unsafe extern "system" fn RemoveAllScopes(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn RemoveAllScopes(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::RemoveAllScopes(this).into() } - unsafe extern "system" fn SetClassName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn SetClassName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::SetClassName(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn GetClassName(this: *mut core::ffi::c_void, pubufflength: *mut u32, pszname: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn GetClassName(this: *mut core::ffi::c_void, pubufflength: *mut u32, pszname: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::GetClassName(this, core::mem::transmute_copy(&pubufflength), core::mem::transmute_copy(&pszname)).into() } - unsafe extern "system" fn GetKeyList(this: *mut core::ffi::c_void, pout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn GetKeyList(this: *mut core::ffi::c_void, pout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemPath_Impl::GetKeyList(this) { Ok(ok__) => { @@ -5062,45 +3866,27 @@ impl IWbemPath_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateClassPart(this: *mut core::ffi::c_void, lflags: i32, name: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn CreateClassPart(this: *mut core::ffi::c_void, lflags: i32, name: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::CreateClassPart(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&name)).into() } - unsafe extern "system" fn DeleteClassPart(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn DeleteClassPart(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::DeleteClassPart(this, core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn IsRelative(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR, wsznamespace: windows_core::PCWSTR) -> super::super::Foundation::BOOL - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn IsRelative(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR, wsznamespace: windows_core::PCWSTR) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::IsRelative(this, core::mem::transmute(&wszmachine), core::mem::transmute(&wsznamespace)) } - unsafe extern "system" fn IsRelativeOrChild(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR, wsznamespace: windows_core::PCWSTR, lflags: i32) -> super::super::Foundation::BOOL - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn IsRelativeOrChild(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR, wsznamespace: windows_core::PCWSTR, lflags: i32) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::IsRelativeOrChild(this, core::mem::transmute(&wszmachine), core::mem::transmute(&wsznamespace), core::mem::transmute_copy(&lflags)) } - unsafe extern "system" fn IsLocal(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR) -> super::super::Foundation::BOOL - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn IsLocal(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::IsLocal(this, core::mem::transmute(&wszmachine)) } - unsafe extern "system" fn IsSameClassName(this: *mut core::ffi::c_void, wszclass: windows_core::PCWSTR) -> super::super::Foundation::BOOL - where - Identity: IWbemPath_Impl, - { + unsafe extern "system" fn IsSameClassName(this: *mut core::ffi::c_void, wszclass: windows_core::PCWSTR) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::IsSameClassName(this, core::mem::transmute(&wszclass)) } @@ -5138,7 +3924,7 @@ impl IWbemPath_Vtbl { iid == &::IID } } -pub trait IWbemPathKeyList_Impl: Sized { +pub trait IWbemPathKeyList_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn SetKey(&self, wszname: &windows_core::PCWSTR, uflags: u32, ucimtype: u32, pkeyval: *const core::ffi::c_void) -> windows_core::Result<()>; fn SetKey2(&self, wszname: &windows_core::PCWSTR, uflags: u32, ucimtype: u32, pkeyval: *const windows_core::VARIANT) -> windows_core::Result<()>; @@ -5152,14 +3938,8 @@ pub trait IWbemPathKeyList_Impl: Sized { } impl windows_core::RuntimeName for IWbemPathKeyList {} impl IWbemPathKeyList_Vtbl { - pub const fn new() -> IWbemPathKeyList_Vtbl - where - Identity: IWbemPathKeyList_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pukeycount: *mut u32) -> windows_core::HRESULT - where - Identity: IWbemPathKeyList_Impl, - { + pub const fn new() -> IWbemPathKeyList_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pukeycount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemPathKeyList_Impl::GetCount(this) { Ok(ok__) => { @@ -5169,59 +3949,35 @@ impl IWbemPathKeyList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, uflags: u32, ucimtype: u32, pkeyval: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemPathKeyList_Impl, - { + unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, uflags: u32, ucimtype: u32, pkeyval: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPathKeyList_Impl::SetKey(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&ucimtype), core::mem::transmute_copy(&pkeyval)).into() } - unsafe extern "system" fn SetKey2(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, uflags: u32, ucimtype: u32, pkeyval: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemPathKeyList_Impl, - { + unsafe extern "system" fn SetKey2(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, uflags: u32, ucimtype: u32, pkeyval: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPathKeyList_Impl::SetKey2(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&ucimtype), core::mem::transmute_copy(&pkeyval)).into() } - unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, ukeyix: u32, uflags: u32, punamebufsize: *mut u32, pszkeyname: windows_core::PWSTR, pukeyvalbufsize: *mut u32, pkeyval: *mut core::ffi::c_void, puapparentcimtype: *mut u32) -> windows_core::HRESULT - where - Identity: IWbemPathKeyList_Impl, - { + unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, ukeyix: u32, uflags: u32, punamebufsize: *mut u32, pszkeyname: windows_core::PWSTR, pukeyvalbufsize: *mut u32, pkeyval: *mut core::ffi::c_void, puapparentcimtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPathKeyList_Impl::GetKey(this, core::mem::transmute_copy(&ukeyix), core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&punamebufsize), core::mem::transmute_copy(&pszkeyname), core::mem::transmute_copy(&pukeyvalbufsize), core::mem::transmute_copy(&pkeyval), core::mem::transmute_copy(&puapparentcimtype)).into() } - unsafe extern "system" fn GetKey2(this: *mut core::ffi::c_void, ukeyix: u32, uflags: u32, punamebufsize: *mut u32, pszkeyname: windows_core::PWSTR, pkeyvalue: *mut core::mem::MaybeUninit, puapparentcimtype: *mut u32) -> windows_core::HRESULT - where - Identity: IWbemPathKeyList_Impl, - { + unsafe extern "system" fn GetKey2(this: *mut core::ffi::c_void, ukeyix: u32, uflags: u32, punamebufsize: *mut u32, pszkeyname: windows_core::PWSTR, pkeyvalue: *mut core::mem::MaybeUninit, puapparentcimtype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPathKeyList_Impl::GetKey2(this, core::mem::transmute_copy(&ukeyix), core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&punamebufsize), core::mem::transmute_copy(&pszkeyname), core::mem::transmute_copy(&pkeyvalue), core::mem::transmute_copy(&puapparentcimtype)).into() } - unsafe extern "system" fn RemoveKey(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, uflags: u32) -> windows_core::HRESULT - where - Identity: IWbemPathKeyList_Impl, - { + unsafe extern "system" fn RemoveKey(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPathKeyList_Impl::RemoveKey(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn RemoveAllKeys(this: *mut core::ffi::c_void, uflags: u32) -> windows_core::HRESULT - where - Identity: IWbemPathKeyList_Impl, - { + unsafe extern "system" fn RemoveAllKeys(this: *mut core::ffi::c_void, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPathKeyList_Impl::RemoveAllKeys(this, core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn MakeSingleton(this: *mut core::ffi::c_void, bset: u8) -> windows_core::HRESULT - where - Identity: IWbemPathKeyList_Impl, - { + unsafe extern "system" fn MakeSingleton(this: *mut core::ffi::c_void, bset: u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPathKeyList_Impl::MakeSingleton(this, core::mem::transmute_copy(&bset)).into() } - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, urequestedinfo: u32, puresponse: *mut u64) -> windows_core::HRESULT - where - Identity: IWbemPathKeyList_Impl, - { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, urequestedinfo: u32, puresponse: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemPathKeyList_Impl::GetInfo(this, core::mem::transmute_copy(&urequestedinfo)) { Ok(ok__) => { @@ -5231,10 +3987,7 @@ impl IWbemPathKeyList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, lflags: i32, pubufflength: *mut u32, psztext: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IWbemPathKeyList_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, lflags: i32, pubufflength: *mut u32, psztext: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPathKeyList_Impl::GetText(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pubufflength), core::mem::transmute_copy(&psztext)).into() } @@ -5256,20 +4009,14 @@ impl IWbemPathKeyList_Vtbl { iid == &::IID } } -pub trait IWbemPropertyProvider_Impl: Sized { +pub trait IWbemPropertyProvider_Impl: Sized + windows_core::IUnknownImpl { 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 windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemPropertyProvider {} impl IWbemPropertyProvider_Vtbl { - pub const fn new() -> IWbemPropertyProvider_Vtbl - where - Identity: IWbemPropertyProvider_Impl, - { - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lflags: i32, strlocale: core::mem::MaybeUninit, strclassmapping: core::mem::MaybeUninit, strinstmapping: core::mem::MaybeUninit, strpropmapping: core::mem::MaybeUninit, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemPropertyProvider_Impl, - { + pub const fn new() -> IWbemPropertyProvider_Vtbl { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, lflags: i32, strlocale: core::mem::MaybeUninit, strclassmapping: core::mem::MaybeUninit, strinstmapping: core::mem::MaybeUninit, strpropmapping: core::mem::MaybeUninit, pvvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemPropertyProvider_Impl::GetProperty(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&strlocale), core::mem::transmute(&strclassmapping), core::mem::transmute(&strinstmapping), core::mem::transmute(&strpropmapping)) { Ok(ok__) => { @@ -5279,10 +4026,7 @@ impl IWbemPropertyProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutProperty(this: *mut core::ffi::c_void, lflags: i32, strlocale: core::mem::MaybeUninit, strclassmapping: core::mem::MaybeUninit, strinstmapping: core::mem::MaybeUninit, strpropmapping: core::mem::MaybeUninit, pvvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemPropertyProvider_Impl, - { + unsafe extern "system" fn PutProperty(this: *mut core::ffi::c_void, lflags: i32, strlocale: core::mem::MaybeUninit, strclassmapping: core::mem::MaybeUninit, strinstmapping: core::mem::MaybeUninit, strpropmapping: core::mem::MaybeUninit, pvvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPropertyProvider_Impl::PutProperty(this, 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() } @@ -5296,19 +4040,13 @@ impl IWbemPropertyProvider_Vtbl { iid == &::IID } } -pub trait IWbemProviderIdentity_Impl: Sized { +pub trait IWbemProviderIdentity_Impl: Sized + windows_core::IUnknownImpl { fn SetRegistrationObject(&self, lflags: i32, pprovreg: Option<&IWbemClassObject>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemProviderIdentity {} impl IWbemProviderIdentity_Vtbl { - pub const fn new() -> IWbemProviderIdentity_Vtbl - where - Identity: IWbemProviderIdentity_Impl, - { - unsafe extern "system" fn SetRegistrationObject(this: *mut core::ffi::c_void, lflags: i32, pprovreg: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemProviderIdentity_Impl, - { + pub const fn new() -> IWbemProviderIdentity_Vtbl { + unsafe extern "system" fn SetRegistrationObject(this: *mut core::ffi::c_void, lflags: i32, pprovreg: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemProviderIdentity_Impl::SetRegistrationObject(this, core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pprovreg)).into() } @@ -5318,19 +4056,13 @@ impl IWbemProviderIdentity_Vtbl { iid == &::IID } } -pub trait IWbemProviderInit_Impl: Sized { +pub trait IWbemProviderInit_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, wszuser: &windows_core::PCWSTR, lflags: i32, wsznamespace: &windows_core::PCWSTR, wszlocale: &windows_core::PCWSTR, pnamespace: Option<&IWbemServices>, pctx: Option<&IWbemContext>, pinitsink: Option<&IWbemProviderInitSink>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemProviderInit {} impl IWbemProviderInit_Vtbl { - pub const fn new() -> IWbemProviderInit_Vtbl - where - Identity: IWbemProviderInit_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, wszuser: windows_core::PCWSTR, lflags: i32, wsznamespace: windows_core::PCWSTR, wszlocale: windows_core::PCWSTR, pnamespace: *mut core::ffi::c_void, pctx: *mut core::ffi::c_void, pinitsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemProviderInit_Impl, - { + pub const fn new() -> IWbemProviderInit_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, wszuser: windows_core::PCWSTR, lflags: i32, wsznamespace: windows_core::PCWSTR, wszlocale: windows_core::PCWSTR, pnamespace: *mut core::ffi::c_void, pctx: *mut core::ffi::c_void, pinitsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemProviderInit_Impl::Initialize(this, core::mem::transmute(&wszuser), core::mem::transmute_copy(&lflags), core::mem::transmute(&wsznamespace), core::mem::transmute(&wszlocale), windows_core::from_raw_borrowed(&pnamespace), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&pinitsink)).into() } @@ -5340,19 +4072,13 @@ impl IWbemProviderInit_Vtbl { iid == &::IID } } -pub trait IWbemProviderInitSink_Impl: Sized { +pub trait IWbemProviderInitSink_Impl: Sized + windows_core::IUnknownImpl { fn SetStatus(&self, lstatus: i32, lflags: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemProviderInitSink {} impl IWbemProviderInitSink_Vtbl { - pub const fn new() -> IWbemProviderInitSink_Vtbl - where - Identity: IWbemProviderInitSink_Impl, - { - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, lstatus: i32, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemProviderInitSink_Impl, - { + pub const fn new() -> IWbemProviderInitSink_Vtbl { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, lstatus: i32, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemProviderInitSink_Impl::SetStatus(this, core::mem::transmute_copy(&lstatus), core::mem::transmute_copy(&lflags)).into() } @@ -5363,7 +4089,7 @@ impl IWbemProviderInitSink_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IWbemQualifierSet_Impl: Sized { +pub trait IWbemQualifierSet_Impl: Sized + windows_core::IUnknownImpl { fn Get(&self, wszname: &windows_core::PCWSTR, lflags: i32, pval: *mut windows_core::VARIANT, plflavor: *mut i32) -> windows_core::Result<()>; fn Put(&self, wszname: &windows_core::PCWSTR, pval: *const windows_core::VARIANT, lflavor: i32) -> windows_core::Result<()>; fn Delete(&self, wszname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -5376,35 +4102,20 @@ pub trait IWbemQualifierSet_Impl: Sized { impl windows_core::RuntimeName for IWbemQualifierSet {} #[cfg(feature = "Win32_System_Com")] impl IWbemQualifierSet_Vtbl { - pub const fn new() -> IWbemQualifierSet_Vtbl - where - Identity: IWbemQualifierSet_Impl, - { - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32, pval: *mut core::mem::MaybeUninit, plflavor: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemQualifierSet_Impl, - { + pub const fn new() -> IWbemQualifierSet_Vtbl { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, lflags: i32, pval: *mut core::mem::MaybeUninit, plflavor: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQualifierSet_Impl::Get(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pval), core::mem::transmute_copy(&plflavor)).into() } - unsafe extern "system" fn Put(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, pval: *const core::mem::MaybeUninit, lflavor: i32) -> windows_core::HRESULT - where - Identity: IWbemQualifierSet_Impl, - { + unsafe extern "system" fn Put(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, pval: *const core::mem::MaybeUninit, lflavor: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQualifierSet_Impl::Put(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&pval), core::mem::transmute_copy(&lflavor)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWbemQualifierSet_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQualifierSet_Impl::Delete(this, core::mem::transmute(&wszname)).into() } - unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, lflags: i32, pnames: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IWbemQualifierSet_Impl, - { + unsafe extern "system" fn GetNames(this: *mut core::ffi::c_void, lflags: i32, pnames: *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemQualifierSet_Impl::GetNames(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -5414,24 +4125,15 @@ impl IWbemQualifierSet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginEnumeration(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemQualifierSet_Impl, - { + unsafe extern "system" fn BeginEnumeration(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQualifierSet_Impl::BeginEnumeration(this, core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, lflags: i32, pstrname: *mut core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit, plflavor: *mut i32) -> windows_core::HRESULT - where - Identity: IWbemQualifierSet_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, lflags: i32, pstrname: *mut core::mem::MaybeUninit, pval: *mut core::mem::MaybeUninit, plflavor: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQualifierSet_Impl::Next(this, core::mem::transmute_copy(&lflags), core::mem::transmute_copy(&pstrname), core::mem::transmute_copy(&pval), core::mem::transmute_copy(&plflavor)).into() } - unsafe extern "system" fn EndEnumeration(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemQualifierSet_Impl, - { + unsafe extern "system" fn EndEnumeration(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQualifierSet_Impl::EndEnumeration(this).into() } @@ -5450,7 +4152,7 @@ impl IWbemQualifierSet_Vtbl { iid == &::IID } } -pub trait IWbemQuery_Impl: Sized { +pub trait IWbemQuery_Impl: Sized + windows_core::IUnknownImpl { fn Empty(&self) -> windows_core::Result<()>; fn SetLanguageFeatures(&self, uflags: u32, uarraysize: u32, pufeatures: *const u32) -> windows_core::Result<()>; fn TestLanguageFeatures(&self, uflags: u32, uarraysize: *mut u32, pufeatures: *mut u32) -> windows_core::Result<()>; @@ -5461,56 +4163,32 @@ pub trait IWbemQuery_Impl: Sized { } impl windows_core::RuntimeName for IWbemQuery {} impl IWbemQuery_Vtbl { - pub const fn new() -> IWbemQuery_Vtbl - where - Identity: IWbemQuery_Impl, - { - unsafe extern "system" fn Empty(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemQuery_Impl, - { + pub const fn new() -> IWbemQuery_Vtbl { + unsafe extern "system" fn Empty(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQuery_Impl::Empty(this).into() } - unsafe extern "system" fn SetLanguageFeatures(this: *mut core::ffi::c_void, uflags: u32, uarraysize: u32, pufeatures: *const u32) -> windows_core::HRESULT - where - Identity: IWbemQuery_Impl, - { + unsafe extern "system" fn SetLanguageFeatures(this: *mut core::ffi::c_void, uflags: u32, uarraysize: u32, pufeatures: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQuery_Impl::SetLanguageFeatures(this, core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&uarraysize), core::mem::transmute_copy(&pufeatures)).into() } - unsafe extern "system" fn TestLanguageFeatures(this: *mut core::ffi::c_void, uflags: u32, uarraysize: *mut u32, pufeatures: *mut u32) -> windows_core::HRESULT - where - Identity: IWbemQuery_Impl, - { + unsafe extern "system" fn TestLanguageFeatures(this: *mut core::ffi::c_void, uflags: u32, uarraysize: *mut u32, pufeatures: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQuery_Impl::TestLanguageFeatures(this, core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&uarraysize), core::mem::transmute_copy(&pufeatures)).into() } - unsafe extern "system" fn Parse(this: *mut core::ffi::c_void, pszlang: windows_core::PCWSTR, pszquery: windows_core::PCWSTR, uflags: u32) -> windows_core::HRESULT - where - Identity: IWbemQuery_Impl, - { + unsafe extern "system" fn Parse(this: *mut core::ffi::c_void, pszlang: windows_core::PCWSTR, pszquery: windows_core::PCWSTR, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQuery_Impl::Parse(this, core::mem::transmute(&pszlang), core::mem::transmute(&pszquery), core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn GetAnalysis(this: *mut core::ffi::c_void, uanalysistype: u32, uflags: u32, panalysis: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemQuery_Impl, - { + unsafe extern "system" fn GetAnalysis(this: *mut core::ffi::c_void, uanalysistype: u32, uflags: u32, panalysis: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQuery_Impl::GetAnalysis(this, core::mem::transmute_copy(&uanalysistype), core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&panalysis)).into() } - unsafe extern "system" fn FreeMemory(this: *mut core::ffi::c_void, pmem: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemQuery_Impl, - { + unsafe extern "system" fn FreeMemory(this: *mut core::ffi::c_void, pmem: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQuery_Impl::FreeMemory(this, core::mem::transmute_copy(&pmem)).into() } - unsafe extern "system" fn GetQueryInfo(this: *mut core::ffi::c_void, uanalysistype: u32, uinfoid: u32, ubufsize: u32, pdestbuf: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemQuery_Impl, - { + unsafe extern "system" fn GetQueryInfo(this: *mut core::ffi::c_void, uanalysistype: u32, uinfoid: u32, ubufsize: u32, pdestbuf: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemQuery_Impl::GetQueryInfo(this, core::mem::transmute_copy(&uanalysistype), core::mem::transmute_copy(&uinfoid), core::mem::transmute_copy(&ubufsize), core::mem::transmute_copy(&pdestbuf)).into() } @@ -5529,19 +4207,13 @@ impl IWbemQuery_Vtbl { iid == &::IID } } -pub trait IWbemRefresher_Impl: Sized { +pub trait IWbemRefresher_Impl: Sized + windows_core::IUnknownImpl { fn Refresh(&self, lflags: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemRefresher {} impl IWbemRefresher_Vtbl { - pub const fn new() -> IWbemRefresher_Vtbl - where - Identity: IWbemRefresher_Impl, - { - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT - where - Identity: IWbemRefresher_Impl, - { + pub const fn new() -> IWbemRefresher_Vtbl { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void, lflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemRefresher_Impl::Refresh(this, core::mem::transmute_copy(&lflags)).into() } @@ -5551,7 +4223,7 @@ impl IWbemRefresher_Vtbl { iid == &::IID } } -pub trait IWbemServices_Impl: Sized { +pub trait IWbemServices_Impl: Sized + windows_core::IUnknownImpl { fn OpenNamespace(&self, strnamespace: &windows_core::BSTR, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: Option<&IWbemContext>, ppworkingnamespace: *mut Option, ppresult: *mut Option) -> windows_core::Result<()>; fn CancelAsyncCall(&self, psink: Option<&IWbemObjectSink>) -> windows_core::Result<()>; fn QueryObjectSink(&self, lflags: WBEM_GENERIC_FLAG_TYPE) -> windows_core::Result; @@ -5578,28 +4250,16 @@ pub trait IWbemServices_Impl: Sized { } impl windows_core::RuntimeName for IWbemServices {} impl IWbemServices_Vtbl { - pub const fn new() -> IWbemServices_Vtbl - where - Identity: IWbemServices_Impl, - { - unsafe extern "system" fn OpenNamespace(this: *mut core::ffi::c_void, strnamespace: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppworkingnamespace: *mut *mut core::ffi::c_void, ppresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + pub const fn new() -> IWbemServices_Vtbl { + unsafe extern "system" fn OpenNamespace(this: *mut core::ffi::c_void, strnamespace: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::OpenNamespace(this, core::mem::transmute(&strnamespace), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), core::mem::transmute_copy(&ppworkingnamespace), core::mem::transmute_copy(&ppresult)).into() } - unsafe extern "system" fn CancelAsyncCall(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn CancelAsyncCall(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::CancelAsyncCall(this, windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn QueryObjectSink(this: *mut core::ffi::c_void, lflags: WBEM_GENERIC_FLAG_TYPE, ppresponsehandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn QueryObjectSink(this: *mut core::ffi::c_void, lflags: WBEM_GENERIC_FLAG_TYPE, ppresponsehandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemServices_Impl::QueryObjectSink(this, core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -5609,52 +4269,31 @@ impl IWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void, ppcallresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::GetObject(this, core::mem::transmute(&strobjectpath), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), core::mem::transmute_copy(&ppobject), core::mem::transmute_copy(&ppcallresult)).into() } - unsafe extern "system" fn GetObjectAsync(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn GetObjectAsync(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::GetObjectAsync(this, core::mem::transmute(&strobjectpath), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&presponsehandler)).into() } - unsafe extern "system" fn PutClass(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppcallresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn PutClass(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppcallresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::PutClass(this, windows_core::from_raw_borrowed(&pobject), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), core::mem::transmute_copy(&ppcallresult)).into() } - unsafe extern "system" fn PutClassAsync(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn PutClassAsync(this: *mut core::ffi::c_void, pobject: *mut core::ffi::c_void, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::PutClassAsync(this, windows_core::from_raw_borrowed(&pobject), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&presponsehandler)).into() } - unsafe extern "system" fn DeleteClass(this: *mut core::ffi::c_void, strclass: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppcallresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn DeleteClass(this: *mut core::ffi::c_void, strclass: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppcallresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::DeleteClass(this, core::mem::transmute(&strclass), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), core::mem::transmute_copy(&ppcallresult)).into() } - unsafe extern "system" fn DeleteClassAsync(this: *mut core::ffi::c_void, strclass: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn DeleteClassAsync(this: *mut core::ffi::c_void, strclass: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::DeleteClassAsync(this, core::mem::transmute(&strclass), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&presponsehandler)).into() } - unsafe extern "system" fn CreateClassEnum(this: *mut core::ffi::c_void, strsuperclass: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn CreateClassEnum(this: *mut core::ffi::c_void, strsuperclass: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemServices_Impl::CreateClassEnum(this, core::mem::transmute(&strsuperclass), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx)) { Ok(ok__) => { @@ -5664,45 +4303,27 @@ impl IWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateClassEnumAsync(this: *mut core::ffi::c_void, strsuperclass: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn CreateClassEnumAsync(this: *mut core::ffi::c_void, strsuperclass: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::CreateClassEnumAsync(this, core::mem::transmute(&strsuperclass), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&presponsehandler)).into() } - unsafe extern "system" fn PutInstance(this: *mut core::ffi::c_void, pinst: *mut core::ffi::c_void, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppcallresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn PutInstance(this: *mut core::ffi::c_void, pinst: *mut core::ffi::c_void, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppcallresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::PutInstance(this, windows_core::from_raw_borrowed(&pinst), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), core::mem::transmute_copy(&ppcallresult)).into() } - unsafe extern "system" fn PutInstanceAsync(this: *mut core::ffi::c_void, pinst: *mut core::ffi::c_void, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn PutInstanceAsync(this: *mut core::ffi::c_void, pinst: *mut core::ffi::c_void, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::PutInstanceAsync(this, windows_core::from_raw_borrowed(&pinst), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&presponsehandler)).into() } - unsafe extern "system" fn DeleteInstance(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppcallresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn DeleteInstance(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppcallresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::DeleteInstance(this, core::mem::transmute(&strobjectpath), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), core::mem::transmute_copy(&ppcallresult)).into() } - unsafe extern "system" fn DeleteInstanceAsync(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn DeleteInstanceAsync(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::DeleteInstanceAsync(this, core::mem::transmute(&strobjectpath), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&presponsehandler)).into() } - unsafe extern "system" fn CreateInstanceEnum(this: *mut core::ffi::c_void, strfilter: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn CreateInstanceEnum(this: *mut core::ffi::c_void, strfilter: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemServices_Impl::CreateInstanceEnum(this, core::mem::transmute(&strfilter), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx)) { Ok(ok__) => { @@ -5712,17 +4333,11 @@ impl IWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstanceEnumAsync(this: *mut core::ffi::c_void, strfilter: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn CreateInstanceEnumAsync(this: *mut core::ffi::c_void, strfilter: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::CreateInstanceEnumAsync(this, core::mem::transmute(&strfilter), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&presponsehandler)).into() } - unsafe extern "system" fn ExecQuery(this: *mut core::ffi::c_void, strquerylanguage: core::mem::MaybeUninit, strquery: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn ExecQuery(this: *mut core::ffi::c_void, strquerylanguage: core::mem::MaybeUninit, strquery: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemServices_Impl::ExecQuery(this, core::mem::transmute(&strquerylanguage), core::mem::transmute(&strquery), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx)) { Ok(ok__) => { @@ -5732,17 +4347,11 @@ impl IWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExecQueryAsync(this: *mut core::ffi::c_void, strquerylanguage: core::mem::MaybeUninit, strquery: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn ExecQueryAsync(this: *mut core::ffi::c_void, strquerylanguage: core::mem::MaybeUninit, strquery: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::ExecQueryAsync(this, core::mem::transmute(&strquerylanguage), core::mem::transmute(&strquery), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&presponsehandler)).into() } - unsafe extern "system" fn ExecNotificationQuery(this: *mut core::ffi::c_void, strquerylanguage: core::mem::MaybeUninit, strquery: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn ExecNotificationQuery(this: *mut core::ffi::c_void, strquerylanguage: core::mem::MaybeUninit, strquery: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemServices_Impl::ExecNotificationQuery(this, core::mem::transmute(&strquerylanguage), core::mem::transmute(&strquery), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx)) { Ok(ok__) => { @@ -5752,24 +4361,15 @@ impl IWbemServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExecNotificationQueryAsync(this: *mut core::ffi::c_void, strquerylanguage: core::mem::MaybeUninit, strquery: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn ExecNotificationQueryAsync(this: *mut core::ffi::c_void, strquerylanguage: core::mem::MaybeUninit, strquery: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::ExecNotificationQueryAsync(this, core::mem::transmute(&strquerylanguage), core::mem::transmute(&strquery), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&presponsehandler)).into() } - unsafe extern "system" fn ExecMethod(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strmethodname: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, 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 - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn ExecMethod(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strmethodname: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, 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: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::ExecMethod(this, core::mem::transmute(&strobjectpath), core::mem::transmute(&strmethodname), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&pinparams), core::mem::transmute_copy(&ppoutparams), core::mem::transmute_copy(&ppcallresult)).into() } - unsafe extern "system" fn ExecMethodAsync(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strmethodname: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, pinparams: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemServices_Impl, - { + unsafe extern "system" fn ExecMethodAsync(this: *mut core::ffi::c_void, strobjectpath: core::mem::MaybeUninit, strmethodname: core::mem::MaybeUninit, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut core::ffi::c_void, pinparams: *mut core::ffi::c_void, presponsehandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemServices_Impl::ExecMethodAsync(this, core::mem::transmute(&strobjectpath), core::mem::transmute(&strmethodname), core::mem::transmute_copy(&lflags), windows_core::from_raw_borrowed(&pctx), windows_core::from_raw_borrowed(&pinparams), windows_core::from_raw_borrowed(&presponsehandler)).into() } @@ -5804,19 +4404,13 @@ impl IWbemServices_Vtbl { iid == &::IID } } -pub trait IWbemShutdown_Impl: Sized { +pub trait IWbemShutdown_Impl: Sized + windows_core::IUnknownImpl { fn Shutdown(&self, ureason: i32, umaxmilliseconds: u32, pctx: Option<&IWbemContext>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemShutdown {} impl IWbemShutdown_Vtbl { - pub const fn new() -> IWbemShutdown_Vtbl - where - Identity: IWbemShutdown_Impl, - { - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void, ureason: i32, umaxmilliseconds: u32, pctx: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemShutdown_Impl, - { + pub const fn new() -> IWbemShutdown_Vtbl { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void, ureason: i32, umaxmilliseconds: u32, pctx: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemShutdown_Impl::Shutdown(this, core::mem::transmute_copy(&ureason), core::mem::transmute_copy(&umaxmilliseconds), windows_core::from_raw_borrowed(&pctx)).into() } @@ -5826,20 +4420,14 @@ impl IWbemShutdown_Vtbl { iid == &::IID } } -pub trait IWbemStatusCodeText_Impl: Sized { +pub trait IWbemStatusCodeText_Impl: Sized + windows_core::IUnknownImpl { 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; } impl windows_core::RuntimeName for IWbemStatusCodeText {} impl IWbemStatusCodeText_Vtbl { - pub const fn new() -> IWbemStatusCodeText_Vtbl - where - Identity: IWbemStatusCodeText_Impl, - { - unsafe extern "system" fn GetErrorCodeText(this: *mut core::ffi::c_void, hres: windows_core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemStatusCodeText_Impl, - { + pub const fn new() -> IWbemStatusCodeText_Vtbl { + unsafe extern "system" fn GetErrorCodeText(this: *mut core::ffi::c_void, hres: windows_core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemStatusCodeText_Impl::GetErrorCodeText(this, core::mem::transmute_copy(&hres), core::mem::transmute_copy(&localeid), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -5849,10 +4437,7 @@ impl IWbemStatusCodeText_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFacilityCodeText(this: *mut core::ffi::c_void, hres: windows_core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWbemStatusCodeText_Impl, - { + unsafe extern "system" fn GetFacilityCodeText(this: *mut core::ffi::c_void, hres: windows_core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemStatusCodeText_Impl::GetFacilityCodeText(this, core::mem::transmute_copy(&hres), core::mem::transmute_copy(&localeid), core::mem::transmute_copy(&lflags)) { Ok(ok__) => { @@ -5872,19 +4457,13 @@ impl IWbemStatusCodeText_Vtbl { iid == &::IID } } -pub trait IWbemTransport_Impl: Sized { +pub trait IWbemTransport_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemTransport {} impl IWbemTransport_Vtbl { - pub const fn new() -> IWbemTransport_Vtbl - where - Identity: IWbemTransport_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemTransport_Impl, - { + pub const fn new() -> IWbemTransport_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemTransport_Impl::Initialize(this).into() } @@ -5894,19 +4473,13 @@ impl IWbemTransport_Vtbl { iid == &::IID } } -pub trait IWbemUnboundObjectSink_Impl: Sized { +pub trait IWbemUnboundObjectSink_Impl: Sized + windows_core::IUnknownImpl { fn IndicateToConsumer(&self, plogicalconsumer: Option<&IWbemClassObject>, lnumobjects: i32, apobjects: *const Option) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IWbemUnboundObjectSink {} impl IWbemUnboundObjectSink_Vtbl { - pub const fn new() -> IWbemUnboundObjectSink_Vtbl - where - Identity: IWbemUnboundObjectSink_Impl, - { - unsafe extern "system" fn IndicateToConsumer(this: *mut core::ffi::c_void, plogicalconsumer: *mut core::ffi::c_void, lnumobjects: i32, apobjects: *const *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemUnboundObjectSink_Impl, - { + pub const fn new() -> IWbemUnboundObjectSink_Vtbl { + unsafe extern "system" fn IndicateToConsumer(this: *mut core::ffi::c_void, plogicalconsumer: *mut core::ffi::c_void, lnumobjects: i32, apobjects: *const *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemUnboundObjectSink_Impl::IndicateToConsumer(this, windows_core::from_raw_borrowed(&plogicalconsumer), core::mem::transmute_copy(&lnumobjects), core::mem::transmute_copy(&apobjects)).into() } @@ -5921,14 +4494,8 @@ pub trait IWbemUnsecuredApartment_Impl: Sized + IUnsecuredApartment_Impl { } impl windows_core::RuntimeName for IWbemUnsecuredApartment {} impl IWbemUnsecuredApartment_Vtbl { - pub const fn new() -> IWbemUnsecuredApartment_Vtbl - where - Identity: IWbemUnsecuredApartment_Impl, - { - unsafe extern "system" fn CreateSinkStub(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, dwflags: u32, wszreserved: windows_core::PCWSTR, ppstub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWbemUnsecuredApartment_Impl, - { + pub const fn new() -> IWbemUnsecuredApartment_Vtbl { + unsafe extern "system" fn CreateSinkStub(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, dwflags: u32, wszreserved: windows_core::PCWSTR, ppstub: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWbemUnsecuredApartment_Impl::CreateSinkStub(this, windows_core::from_raw_borrowed(&psink), core::mem::transmute_copy(&dwflags), core::mem::transmute(&wszreserved)) { Ok(ok__) => { 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 5268ff0436..32751d646d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/impl.rs @@ -1,16 +1,10 @@ -pub trait IAccIdentity_Impl: Sized { +pub trait IAccIdentity_Impl: Sized + windows_core::IUnknownImpl { fn GetIdentityString(&self, dwidchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAccIdentity {} impl IAccIdentity_Vtbl { - pub const fn new() -> IAccIdentity_Vtbl - where - Identity: IAccIdentity_Impl, - { - unsafe extern "system" fn GetIdentityString(this: *mut core::ffi::c_void, dwidchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::HRESULT - where - Identity: IAccIdentity_Impl, - { + pub const fn new() -> IAccIdentity_Vtbl { + unsafe extern "system" fn GetIdentityString(this: *mut core::ffi::c_void, dwidchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccIdentity_Impl::GetIdentityString(this, core::mem::transmute_copy(&dwidchild), core::mem::transmute_copy(&ppidstring), core::mem::transmute_copy(&pdwidstringlen)).into() } @@ -20,19 +14,13 @@ impl IAccIdentity_Vtbl { iid == &::IID } } -pub trait IAccPropServer_Impl: Sized { +pub trait IAccPropServer_Impl: Sized + windows_core::IUnknownImpl { fn GetPropValue(&self, pidstring: *const u8, dwidstringlen: u32, idprop: &windows_core::GUID, pvarvalue: *mut windows_core::VARIANT, pfhasprop: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAccPropServer {} impl IAccPropServer_Vtbl { - pub const fn new() -> IAccPropServer_Vtbl - where - Identity: IAccPropServer_Impl, - { - unsafe extern "system" fn GetPropValue(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, idprop: windows_core::GUID, pvarvalue: *mut core::mem::MaybeUninit, pfhasprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAccPropServer_Impl, - { + pub const fn new() -> IAccPropServer_Vtbl { + unsafe extern "system" fn GetPropValue(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, idprop: windows_core::GUID, pvarvalue: *mut core::mem::MaybeUninit, pfhasprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServer_Impl::GetPropValue(this, core::mem::transmute_copy(&pidstring), core::mem::transmute_copy(&dwidstringlen), core::mem::transmute(&idprop), core::mem::transmute_copy(&pvarvalue), core::mem::transmute_copy(&pfhasprop)).into() } @@ -43,7 +31,7 @@ impl IAccPropServer_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IAccPropServices_Impl: Sized { +pub trait IAccPropServices_Impl: Sized + windows_core::IUnknownImpl { fn SetPropValue(&self, pidstring: *const u8, dwidstringlen: u32, idprop: &windows_core::GUID, var: &windows_core::VARIANT) -> windows_core::Result<()>; fn SetPropServer(&self, pidstring: *const u8, dwidstringlen: u32, paprops: *const windows_core::GUID, cprops: i32, pserver: Option<&IAccPropServer>, annoscope: AnnoScope) -> windows_core::Result<()>; fn ClearProps(&self, pidstring: *const u8, dwidstringlen: u32, paprops: *const windows_core::GUID, cprops: i32) -> windows_core::Result<()>; @@ -64,112 +52,64 @@ pub trait IAccPropServices_Impl: Sized { impl windows_core::RuntimeName for IAccPropServices {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IAccPropServices_Vtbl { - pub const fn new() -> IAccPropServices_Vtbl - where - Identity: IAccPropServices_Impl, - { - unsafe extern "system" fn SetPropValue(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, idprop: windows_core::GUID, var: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + pub const fn new() -> IAccPropServices_Vtbl { + unsafe extern "system" fn SetPropValue(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, idprop: windows_core::GUID, var: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::SetPropValue(this, core::mem::transmute_copy(&pidstring), core::mem::transmute_copy(&dwidstringlen), core::mem::transmute(&idprop), core::mem::transmute(&var)).into() } - unsafe extern "system" fn SetPropServer(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, paprops: *const windows_core::GUID, cprops: i32, pserver: *mut core::ffi::c_void, annoscope: AnnoScope) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn SetPropServer(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, paprops: *const windows_core::GUID, cprops: i32, pserver: *mut core::ffi::c_void, annoscope: AnnoScope) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::SetPropServer(this, core::mem::transmute_copy(&pidstring), core::mem::transmute_copy(&dwidstringlen), core::mem::transmute_copy(&paprops), core::mem::transmute_copy(&cprops), windows_core::from_raw_borrowed(&pserver), core::mem::transmute_copy(&annoscope)).into() } - unsafe extern "system" fn ClearProps(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, paprops: *const windows_core::GUID, cprops: i32) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn ClearProps(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, paprops: *const windows_core::GUID, cprops: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::ClearProps(this, core::mem::transmute_copy(&pidstring), core::mem::transmute_copy(&dwidstringlen), core::mem::transmute_copy(&paprops), core::mem::transmute_copy(&cprops)).into() } - unsafe extern "system" fn SetHwndProp(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, idprop: windows_core::GUID, var: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn SetHwndProp(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, idprop: windows_core::GUID, var: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::SetHwndProp(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&idobject), core::mem::transmute_copy(&idchild), core::mem::transmute(&idprop), core::mem::transmute(&var)).into() } - unsafe extern "system" fn SetHwndPropStr(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, idprop: windows_core::GUID, str: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn SetHwndPropStr(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, idprop: windows_core::GUID, str: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::SetHwndPropStr(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&idobject), core::mem::transmute_copy(&idchild), core::mem::transmute(&idprop), core::mem::transmute(&str)).into() } - unsafe extern "system" fn SetHwndPropServer(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, paprops: *const windows_core::GUID, cprops: i32, pserver: *mut core::ffi::c_void, annoscope: AnnoScope) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn SetHwndPropServer(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, paprops: *const windows_core::GUID, cprops: i32, pserver: *mut core::ffi::c_void, annoscope: AnnoScope) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::SetHwndPropServer(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&idobject), core::mem::transmute_copy(&idchild), core::mem::transmute_copy(&paprops), core::mem::transmute_copy(&cprops), windows_core::from_raw_borrowed(&pserver), core::mem::transmute_copy(&annoscope)).into() } - unsafe extern "system" fn ClearHwndProps(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, paprops: *const windows_core::GUID, cprops: i32) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn ClearHwndProps(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, paprops: *const windows_core::GUID, cprops: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::ClearHwndProps(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&idobject), core::mem::transmute_copy(&idchild), core::mem::transmute_copy(&paprops), core::mem::transmute_copy(&cprops)).into() } - unsafe extern "system" fn ComposeHwndIdentityString(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn ComposeHwndIdentityString(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: u32, idchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::ComposeHwndIdentityString(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&idobject), core::mem::transmute_copy(&idchild), core::mem::transmute_copy(&ppidstring), core::mem::transmute_copy(&pdwidstringlen)).into() } - unsafe extern "system" fn DecomposeHwndIdentityString(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, phwnd: *mut super::super::Foundation::HWND, pidobject: *mut u32, pidchild: *mut u32) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn DecomposeHwndIdentityString(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, phwnd: *mut super::super::Foundation::HWND, pidobject: *mut u32, pidchild: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::DecomposeHwndIdentityString(this, core::mem::transmute_copy(&pidstring), core::mem::transmute_copy(&dwidstringlen), core::mem::transmute_copy(&phwnd), core::mem::transmute_copy(&pidobject), core::mem::transmute_copy(&pidchild)).into() } - unsafe extern "system" fn SetHmenuProp(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, idprop: windows_core::GUID, var: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn SetHmenuProp(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, idprop: windows_core::GUID, var: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::SetHmenuProp(this, core::mem::transmute_copy(&hmenu), core::mem::transmute_copy(&idchild), core::mem::transmute(&idprop), core::mem::transmute(&var)).into() } - unsafe extern "system" fn SetHmenuPropStr(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, idprop: windows_core::GUID, str: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn SetHmenuPropStr(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, idprop: windows_core::GUID, str: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::SetHmenuPropStr(this, core::mem::transmute_copy(&hmenu), core::mem::transmute_copy(&idchild), core::mem::transmute(&idprop), core::mem::transmute(&str)).into() } - unsafe extern "system" fn SetHmenuPropServer(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, paprops: *const windows_core::GUID, cprops: i32, pserver: *mut core::ffi::c_void, annoscope: AnnoScope) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn SetHmenuPropServer(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, paprops: *const windows_core::GUID, cprops: i32, pserver: *mut core::ffi::c_void, annoscope: AnnoScope) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::SetHmenuPropServer(this, core::mem::transmute_copy(&hmenu), core::mem::transmute_copy(&idchild), core::mem::transmute_copy(&paprops), core::mem::transmute_copy(&cprops), windows_core::from_raw_borrowed(&pserver), core::mem::transmute_copy(&annoscope)).into() } - unsafe extern "system" fn ClearHmenuProps(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, paprops: *const windows_core::GUID, cprops: i32) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn ClearHmenuProps(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, paprops: *const windows_core::GUID, cprops: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::ClearHmenuProps(this, core::mem::transmute_copy(&hmenu), core::mem::transmute_copy(&idchild), core::mem::transmute_copy(&paprops), core::mem::transmute_copy(&cprops)).into() } - unsafe extern "system" fn ComposeHmenuIdentityString(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn ComposeHmenuIdentityString(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, idchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::ComposeHmenuIdentityString(this, core::mem::transmute_copy(&hmenu), core::mem::transmute_copy(&idchild), core::mem::transmute_copy(&ppidstring), core::mem::transmute_copy(&pdwidstringlen)).into() } - unsafe extern "system" fn DecomposeHmenuIdentityString(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, phmenu: *mut super::WindowsAndMessaging::HMENU, pidchild: *mut u32) -> windows_core::HRESULT - where - Identity: IAccPropServices_Impl, - { + unsafe extern "system" fn DecomposeHmenuIdentityString(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, phmenu: *mut super::WindowsAndMessaging::HMENU, pidchild: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServices_Impl::DecomposeHmenuIdentityString(this, core::mem::transmute_copy(&pidstring), core::mem::transmute_copy(&dwidstringlen), core::mem::transmute_copy(&phmenu), core::mem::transmute_copy(&pidchild)).into() } @@ -224,14 +164,8 @@ pub trait IAccessible_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAccessible {} #[cfg(feature = "Win32_System_Com")] impl IAccessible_Vtbl { - pub const fn new() -> IAccessible_Vtbl - where - Identity: IAccessible_Impl, - { - unsafe extern "system" fn accParent(this: *mut core::ffi::c_void, ppdispparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + pub const fn new() -> IAccessible_Vtbl { + unsafe extern "system" fn accParent(this: *mut core::ffi::c_void, ppdispparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::accParent(this) { Ok(ok__) => { @@ -241,10 +175,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn accChildCount(this: *mut core::ffi::c_void, pcountchildren: *mut i32) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn accChildCount(this: *mut core::ffi::c_void, pcountchildren: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::accChildCount(this) { Ok(ok__) => { @@ -254,10 +185,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_accChild(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, ppdispchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn get_accChild(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, ppdispchild: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::get_accChild(this, core::mem::transmute(&varchild)) { Ok(ok__) => { @@ -267,10 +195,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_accName(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn get_accName(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::get_accName(this, core::mem::transmute(&varchild)) { Ok(ok__) => { @@ -280,10 +205,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_accValue(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn get_accValue(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::get_accValue(this, core::mem::transmute(&varchild)) { Ok(ok__) => { @@ -293,10 +215,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_accDescription(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn get_accDescription(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::get_accDescription(this, core::mem::transmute(&varchild)) { Ok(ok__) => { @@ -306,10 +225,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_accRole(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pvarrole: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn get_accRole(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pvarrole: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::get_accRole(this, core::mem::transmute(&varchild)) { Ok(ok__) => { @@ -319,10 +235,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_accState(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pvarstate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn get_accState(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pvarstate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::get_accState(this, core::mem::transmute(&varchild)) { Ok(ok__) => { @@ -332,10 +245,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_accHelp(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszhelp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn get_accHelp(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszhelp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::get_accHelp(this, core::mem::transmute(&varchild)) { Ok(ok__) => { @@ -345,10 +255,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_accHelpTopic(this: *mut core::ffi::c_void, pszhelpfile: *mut core::mem::MaybeUninit, varchild: core::mem::MaybeUninit, pidtopic: *mut i32) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn get_accHelpTopic(this: *mut core::ffi::c_void, pszhelpfile: *mut core::mem::MaybeUninit, varchild: core::mem::MaybeUninit, pidtopic: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::get_accHelpTopic(this, core::mem::transmute_copy(&pszhelpfile), core::mem::transmute(&varchild)) { Ok(ok__) => { @@ -358,10 +265,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_accKeyboardShortcut(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszkeyboardshortcut: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn get_accKeyboardShortcut(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszkeyboardshortcut: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::get_accKeyboardShortcut(this, core::mem::transmute(&varchild)) { Ok(ok__) => { @@ -371,10 +275,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn accFocus(this: *mut core::ffi::c_void, pvarchild: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn accFocus(this: *mut core::ffi::c_void, pvarchild: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::accFocus(this) { Ok(ok__) => { @@ -384,10 +285,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn accSelection(this: *mut core::ffi::c_void, pvarchildren: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn accSelection(this: *mut core::ffi::c_void, pvarchildren: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::accSelection(this) { Ok(ok__) => { @@ -397,10 +295,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn get_accDefaultAction(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszdefaultaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn get_accDefaultAction(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, pszdefaultaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::get_accDefaultAction(this, core::mem::transmute(&varchild)) { Ok(ok__) => { @@ -410,24 +305,15 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn accSelect(this: *mut core::ffi::c_void, flagsselect: i32, varchild: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn accSelect(this: *mut core::ffi::c_void, flagsselect: i32, varchild: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessible_Impl::accSelect(this, core::mem::transmute_copy(&flagsselect), core::mem::transmute(&varchild)).into() } - unsafe extern "system" fn accLocation(this: *mut core::ffi::c_void, pxleft: *mut i32, pytop: *mut i32, pcxwidth: *mut i32, pcyheight: *mut i32, varchild: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn accLocation(this: *mut core::ffi::c_void, pxleft: *mut i32, pytop: *mut i32, pcxwidth: *mut i32, pcyheight: *mut i32, varchild: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessible_Impl::accLocation(this, core::mem::transmute_copy(&pxleft), core::mem::transmute_copy(&pytop), core::mem::transmute_copy(&pcxwidth), core::mem::transmute_copy(&pcyheight), core::mem::transmute(&varchild)).into() } - unsafe extern "system" fn accNavigate(this: *mut core::ffi::c_void, navdir: i32, varstart: core::mem::MaybeUninit, pvarendupat: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn accNavigate(this: *mut core::ffi::c_void, navdir: i32, varstart: core::mem::MaybeUninit, pvarendupat: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::accNavigate(this, core::mem::transmute_copy(&navdir), core::mem::transmute(&varstart)) { Ok(ok__) => { @@ -437,10 +323,7 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn accHitTest(this: *mut core::ffi::c_void, xleft: i32, ytop: i32, pvarchild: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn accHitTest(this: *mut core::ffi::c_void, xleft: i32, ytop: i32, pvarchild: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessible_Impl::accHitTest(this, core::mem::transmute_copy(&xleft), core::mem::transmute_copy(&ytop)) { Ok(ok__) => { @@ -450,24 +333,15 @@ impl IAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn accDoDefaultAction(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn accDoDefaultAction(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessible_Impl::accDoDefaultAction(this, core::mem::transmute(&varchild)).into() } - unsafe extern "system" fn put_accName(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, szname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn put_accName(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, szname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessible_Impl::put_accName(this, core::mem::transmute(&varchild), core::mem::transmute(&szname)).into() } - unsafe extern "system" fn put_accValue(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, szvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccessible_Impl, - { + unsafe extern "system" fn put_accValue(this: *mut core::ffi::c_void, varchild: core::mem::MaybeUninit, szvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessible_Impl::put_accValue(this, core::mem::transmute(&varchild), core::mem::transmute(&szvalue)).into() } @@ -501,7 +375,7 @@ impl IAccessible_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAccessibleEx_Impl: Sized { +pub trait IAccessibleEx_Impl: Sized + windows_core::IUnknownImpl { fn GetObjectForChild(&self, idchild: i32) -> windows_core::Result; fn GetIAccessiblePair(&self, ppacc: *mut Option, pidchild: *mut i32) -> windows_core::Result<()>; fn GetRuntimeId(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -511,14 +385,8 @@ pub trait IAccessibleEx_Impl: Sized { impl windows_core::RuntimeName for IAccessibleEx {} #[cfg(feature = "Win32_System_Com")] impl IAccessibleEx_Vtbl { - pub const fn new() -> IAccessibleEx_Vtbl - where - Identity: IAccessibleEx_Impl, - { - unsafe extern "system" fn GetObjectForChild(this: *mut core::ffi::c_void, idchild: i32, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccessibleEx_Impl, - { + pub const fn new() -> IAccessibleEx_Vtbl { + unsafe extern "system" fn GetObjectForChild(this: *mut core::ffi::c_void, idchild: i32, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessibleEx_Impl::GetObjectForChild(this, core::mem::transmute_copy(&idchild)) { Ok(ok__) => { @@ -528,17 +396,11 @@ impl IAccessibleEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIAccessiblePair(this: *mut core::ffi::c_void, ppacc: *mut *mut core::ffi::c_void, pidchild: *mut i32) -> windows_core::HRESULT - where - Identity: IAccessibleEx_Impl, - { + unsafe extern "system" fn GetIAccessiblePair(this: *mut core::ffi::c_void, ppacc: *mut *mut core::ffi::c_void, pidchild: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessibleEx_Impl::GetIAccessiblePair(this, core::mem::transmute_copy(&ppacc), core::mem::transmute_copy(&pidchild)).into() } - unsafe extern "system" fn GetRuntimeId(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IAccessibleEx_Impl, - { + unsafe extern "system" fn GetRuntimeId(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessibleEx_Impl::GetRuntimeId(this) { Ok(ok__) => { @@ -548,10 +410,7 @@ impl IAccessibleEx_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertReturnedElement(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, ppretvalout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccessibleEx_Impl, - { + unsafe extern "system" fn ConvertReturnedElement(this: *mut core::ffi::c_void, pin: *mut core::ffi::c_void, ppretvalout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessibleEx_Impl::ConvertReturnedElement(this, windows_core::from_raw_borrowed(&pin)) { Ok(ok__) => { @@ -574,21 +433,15 @@ impl IAccessibleEx_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAccessibleHandler_Impl: Sized { +pub trait IAccessibleHandler_Impl: Sized + windows_core::IUnknownImpl { fn AccessibleObjectFromID(&self, hwnd: i32, lobjectid: i32) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IAccessibleHandler {} #[cfg(feature = "Win32_System_Com")] impl IAccessibleHandler_Vtbl { - pub const fn new() -> IAccessibleHandler_Vtbl - where - Identity: IAccessibleHandler_Impl, - { - unsafe extern "system" fn AccessibleObjectFromID(this: *mut core::ffi::c_void, hwnd: i32, lobjectid: i32, piaccessible: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccessibleHandler_Impl, - { + pub const fn new() -> IAccessibleHandler_Vtbl { + unsafe extern "system" fn AccessibleObjectFromID(this: *mut core::ffi::c_void, hwnd: i32, lobjectid: i32, piaccessible: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessibleHandler_Impl::AccessibleObjectFromID(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&lobjectid)) { Ok(ok__) => { @@ -605,7 +458,7 @@ impl IAccessibleHandler_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAccessibleHostingElementProviders_Impl: Sized { +pub trait IAccessibleHostingElementProviders_Impl: Sized + windows_core::IUnknownImpl { fn GetEmbeddedFragmentRoots(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetObjectIdForProvider(&self, pprovider: Option<&IRawElementProviderSimple>) -> windows_core::Result; } @@ -613,14 +466,8 @@ pub trait IAccessibleHostingElementProviders_Impl: Sized { impl windows_core::RuntimeName for IAccessibleHostingElementProviders {} #[cfg(feature = "Win32_System_Com")] impl IAccessibleHostingElementProviders_Vtbl { - pub const fn new() -> IAccessibleHostingElementProviders_Vtbl - where - Identity: IAccessibleHostingElementProviders_Impl, - { - unsafe extern "system" fn GetEmbeddedFragmentRoots(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IAccessibleHostingElementProviders_Impl, - { + pub const fn new() -> IAccessibleHostingElementProviders_Vtbl { + unsafe extern "system" fn GetEmbeddedFragmentRoots(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessibleHostingElementProviders_Impl::GetEmbeddedFragmentRoots(this) { Ok(ok__) => { @@ -630,10 +477,7 @@ impl IAccessibleHostingElementProviders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectIdForProvider(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void, pidobject: *mut i32) -> windows_core::HRESULT - where - Identity: IAccessibleHostingElementProviders_Impl, - { + unsafe extern "system" fn GetObjectIdForProvider(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void, pidobject: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessibleHostingElementProviders_Impl::GetObjectIdForProvider(this, windows_core::from_raw_borrowed(&pprovider)) { Ok(ok__) => { @@ -654,7 +498,7 @@ impl IAccessibleHostingElementProviders_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAccessibleWindowlessSite_Impl: Sized { +pub trait IAccessibleWindowlessSite_Impl: Sized + windows_core::IUnknownImpl { fn AcquireObjectIdRange(&self, rangesize: i32, prangeowner: Option<&IAccessibleHandler>) -> windows_core::Result; fn ReleaseObjectIdRange(&self, rangebase: i32, prangeowner: Option<&IAccessibleHandler>) -> windows_core::Result<()>; fn QueryObjectIdRanges(&self, prangesowner: Option<&IAccessibleHandler>) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -664,14 +508,8 @@ pub trait IAccessibleWindowlessSite_Impl: Sized { impl windows_core::RuntimeName for IAccessibleWindowlessSite {} #[cfg(feature = "Win32_System_Com")] impl IAccessibleWindowlessSite_Vtbl { - pub const fn new() -> IAccessibleWindowlessSite_Vtbl - where - Identity: IAccessibleWindowlessSite_Impl, - { - unsafe extern "system" fn AcquireObjectIdRange(this: *mut core::ffi::c_void, rangesize: i32, prangeowner: *mut core::ffi::c_void, prangebase: *mut i32) -> windows_core::HRESULT - where - Identity: IAccessibleWindowlessSite_Impl, - { + pub const fn new() -> IAccessibleWindowlessSite_Vtbl { + unsafe extern "system" fn AcquireObjectIdRange(this: *mut core::ffi::c_void, rangesize: i32, prangeowner: *mut core::ffi::c_void, prangebase: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessibleWindowlessSite_Impl::AcquireObjectIdRange(this, core::mem::transmute_copy(&rangesize), windows_core::from_raw_borrowed(&prangeowner)) { Ok(ok__) => { @@ -681,17 +519,11 @@ impl IAccessibleWindowlessSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseObjectIdRange(this: *mut core::ffi::c_void, rangebase: i32, prangeowner: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccessibleWindowlessSite_Impl, - { + unsafe extern "system" fn ReleaseObjectIdRange(this: *mut core::ffi::c_void, rangebase: i32, prangeowner: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessibleWindowlessSite_Impl::ReleaseObjectIdRange(this, core::mem::transmute_copy(&rangebase), windows_core::from_raw_borrowed(&prangeowner)).into() } - unsafe extern "system" fn QueryObjectIdRanges(this: *mut core::ffi::c_void, prangesowner: *mut core::ffi::c_void, psaranges: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IAccessibleWindowlessSite_Impl, - { + unsafe extern "system" fn QueryObjectIdRanges(this: *mut core::ffi::c_void, prangesowner: *mut core::ffi::c_void, psaranges: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessibleWindowlessSite_Impl::QueryObjectIdRanges(this, windows_core::from_raw_borrowed(&prangesowner)) { Ok(ok__) => { @@ -701,10 +533,7 @@ impl IAccessibleWindowlessSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentAccessible(this: *mut core::ffi::c_void, ppparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccessibleWindowlessSite_Impl, - { + unsafe extern "system" fn GetParentAccessible(this: *mut core::ffi::c_void, ppparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccessibleWindowlessSite_Impl::GetParentAccessible(this) { Ok(ok__) => { @@ -726,7 +555,7 @@ impl IAccessibleWindowlessSite_Vtbl { iid == &::IID } } -pub trait IAnnotationProvider_Impl: Sized { +pub trait IAnnotationProvider_Impl: Sized + windows_core::IUnknownImpl { fn AnnotationTypeId(&self) -> windows_core::Result; fn AnnotationTypeName(&self) -> windows_core::Result; fn Author(&self) -> windows_core::Result; @@ -735,14 +564,8 @@ pub trait IAnnotationProvider_Impl: Sized { } impl windows_core::RuntimeName for IAnnotationProvider {} impl IAnnotationProvider_Vtbl { - pub const fn new() -> IAnnotationProvider_Vtbl - where - Identity: IAnnotationProvider_Impl, - { - unsafe extern "system" fn AnnotationTypeId(this: *mut core::ffi::c_void, retval: *mut UIA_ANNOTATIONTYPE) -> windows_core::HRESULT - where - Identity: IAnnotationProvider_Impl, - { + pub const fn new() -> IAnnotationProvider_Vtbl { + unsafe extern "system" fn AnnotationTypeId(this: *mut core::ffi::c_void, retval: *mut UIA_ANNOTATIONTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnnotationProvider_Impl::AnnotationTypeId(this) { Ok(ok__) => { @@ -752,10 +575,7 @@ impl IAnnotationProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AnnotationTypeName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAnnotationProvider_Impl, - { + unsafe extern "system" fn AnnotationTypeName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnnotationProvider_Impl::AnnotationTypeName(this) { Ok(ok__) => { @@ -765,10 +585,7 @@ impl IAnnotationProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Author(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAnnotationProvider_Impl, - { + unsafe extern "system" fn Author(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnnotationProvider_Impl::Author(this) { Ok(ok__) => { @@ -778,10 +595,7 @@ impl IAnnotationProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DateTime(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAnnotationProvider_Impl, - { + unsafe extern "system" fn DateTime(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnnotationProvider_Impl::DateTime(this) { Ok(ok__) => { @@ -791,10 +605,7 @@ impl IAnnotationProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Target(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAnnotationProvider_Impl, - { + unsafe extern "system" fn Target(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnnotationProvider_Impl::Target(this) { Ok(ok__) => { @@ -817,19 +628,13 @@ impl IAnnotationProvider_Vtbl { iid == &::IID } } -pub trait ICustomNavigationProvider_Impl: Sized { +pub trait ICustomNavigationProvider_Impl: Sized + windows_core::IUnknownImpl { fn Navigate(&self, direction: NavigateDirection) -> windows_core::Result; } impl windows_core::RuntimeName for ICustomNavigationProvider {} impl ICustomNavigationProvider_Vtbl { - pub const fn new() -> ICustomNavigationProvider_Vtbl - where - Identity: ICustomNavigationProvider_Impl, - { - unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, direction: NavigateDirection, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomNavigationProvider_Impl, - { + pub const fn new() -> ICustomNavigationProvider_Vtbl { + unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, direction: NavigateDirection, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICustomNavigationProvider_Impl::Navigate(this, core::mem::transmute_copy(&direction)) { Ok(ok__) => { @@ -845,27 +650,18 @@ impl ICustomNavigationProvider_Vtbl { iid == &::IID } } -pub trait IDockProvider_Impl: Sized { +pub trait IDockProvider_Impl: Sized + windows_core::IUnknownImpl { fn SetDockPosition(&self, dockposition: DockPosition) -> windows_core::Result<()>; fn DockPosition(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IDockProvider {} impl IDockProvider_Vtbl { - pub const fn new() -> IDockProvider_Vtbl - where - Identity: IDockProvider_Impl, - { - unsafe extern "system" fn SetDockPosition(this: *mut core::ffi::c_void, dockposition: DockPosition) -> windows_core::HRESULT - where - Identity: IDockProvider_Impl, - { + pub const fn new() -> IDockProvider_Vtbl { + unsafe extern "system" fn SetDockPosition(this: *mut core::ffi::c_void, dockposition: DockPosition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockProvider_Impl::SetDockPosition(this, core::mem::transmute_copy(&dockposition)).into() } - unsafe extern "system" fn DockPosition(this: *mut core::ffi::c_void, pretval: *mut DockPosition) -> windows_core::HRESULT - where - Identity: IDockProvider_Impl, - { + unsafe extern "system" fn DockPosition(this: *mut core::ffi::c_void, pretval: *mut DockPosition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDockProvider_Impl::DockPosition(this) { Ok(ok__) => { @@ -886,7 +682,7 @@ impl IDockProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDragProvider_Impl: Sized { +pub trait IDragProvider_Impl: Sized + windows_core::IUnknownImpl { fn IsGrabbed(&self) -> windows_core::Result; fn DropEffect(&self) -> windows_core::Result; fn DropEffects(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -896,14 +692,8 @@ pub trait IDragProvider_Impl: Sized { impl windows_core::RuntimeName for IDragProvider {} #[cfg(feature = "Win32_System_Com")] impl IDragProvider_Vtbl { - pub const fn new() -> IDragProvider_Vtbl - where - Identity: IDragProvider_Impl, - { - unsafe extern "system" fn IsGrabbed(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDragProvider_Impl, - { + pub const fn new() -> IDragProvider_Vtbl { + unsafe extern "system" fn IsGrabbed(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDragProvider_Impl::IsGrabbed(this) { Ok(ok__) => { @@ -913,10 +703,7 @@ impl IDragProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DropEffect(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDragProvider_Impl, - { + unsafe extern "system" fn DropEffect(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDragProvider_Impl::DropEffect(this) { Ok(ok__) => { @@ -926,10 +713,7 @@ impl IDragProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DropEffects(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDragProvider_Impl, - { + unsafe extern "system" fn DropEffects(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDragProvider_Impl::DropEffects(this) { Ok(ok__) => { @@ -939,10 +723,7 @@ impl IDragProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGrabbedItems(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDragProvider_Impl, - { + unsafe extern "system" fn GetGrabbedItems(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDragProvider_Impl::GetGrabbedItems(this) { Ok(ok__) => { @@ -965,7 +746,7 @@ impl IDragProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDropTargetProvider_Impl: Sized { +pub trait IDropTargetProvider_Impl: Sized + windows_core::IUnknownImpl { fn DropTargetEffect(&self) -> windows_core::Result; fn DropTargetEffects(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; } @@ -973,14 +754,8 @@ pub trait IDropTargetProvider_Impl: Sized { impl windows_core::RuntimeName for IDropTargetProvider {} #[cfg(feature = "Win32_System_Com")] impl IDropTargetProvider_Vtbl { - pub const fn new() -> IDropTargetProvider_Vtbl - where - Identity: IDropTargetProvider_Impl, - { - unsafe extern "system" fn DropTargetEffect(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDropTargetProvider_Impl, - { + pub const fn new() -> IDropTargetProvider_Vtbl { + unsafe extern "system" fn DropTargetEffect(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDropTargetProvider_Impl::DropTargetEffect(this) { Ok(ok__) => { @@ -990,10 +765,7 @@ impl IDropTargetProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DropTargetEffects(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IDropTargetProvider_Impl, - { + unsafe extern "system" fn DropTargetEffects(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDropTargetProvider_Impl::DropTargetEffects(this) { Ok(ok__) => { @@ -1013,35 +785,23 @@ impl IDropTargetProvider_Vtbl { iid == &::IID } } -pub trait IExpandCollapseProvider_Impl: Sized { +pub trait IExpandCollapseProvider_Impl: Sized + windows_core::IUnknownImpl { fn Expand(&self) -> windows_core::Result<()>; fn Collapse(&self) -> windows_core::Result<()>; fn ExpandCollapseState(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IExpandCollapseProvider {} impl IExpandCollapseProvider_Vtbl { - pub const fn new() -> IExpandCollapseProvider_Vtbl - where - Identity: IExpandCollapseProvider_Impl, - { - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExpandCollapseProvider_Impl, - { + pub const fn new() -> IExpandCollapseProvider_Vtbl { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExpandCollapseProvider_Impl::Expand(this).into() } - unsafe extern "system" fn Collapse(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExpandCollapseProvider_Impl, - { + unsafe extern "system" fn Collapse(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExpandCollapseProvider_Impl::Collapse(this).into() } - unsafe extern "system" fn ExpandCollapseState(this: *mut core::ffi::c_void, pretval: *mut ExpandCollapseState) -> windows_core::HRESULT - where - Identity: IExpandCollapseProvider_Impl, - { + unsafe extern "system" fn ExpandCollapseState(this: *mut core::ffi::c_void, pretval: *mut ExpandCollapseState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExpandCollapseProvider_Impl::ExpandCollapseState(this) { Ok(ok__) => { @@ -1062,7 +822,7 @@ impl IExpandCollapseProvider_Vtbl { iid == &::IID } } -pub trait IGridItemProvider_Impl: Sized { +pub trait IGridItemProvider_Impl: Sized + windows_core::IUnknownImpl { fn Row(&self) -> windows_core::Result; fn Column(&self) -> windows_core::Result; fn RowSpan(&self) -> windows_core::Result; @@ -1071,14 +831,8 @@ pub trait IGridItemProvider_Impl: Sized { } impl windows_core::RuntimeName for IGridItemProvider {} impl IGridItemProvider_Vtbl { - pub const fn new() -> IGridItemProvider_Vtbl - where - Identity: IGridItemProvider_Impl, - { - unsafe extern "system" fn Row(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IGridItemProvider_Impl, - { + pub const fn new() -> IGridItemProvider_Vtbl { + unsafe extern "system" fn Row(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGridItemProvider_Impl::Row(this) { Ok(ok__) => { @@ -1088,10 +842,7 @@ impl IGridItemProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Column(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IGridItemProvider_Impl, - { + unsafe extern "system" fn Column(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGridItemProvider_Impl::Column(this) { Ok(ok__) => { @@ -1101,10 +852,7 @@ impl IGridItemProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RowSpan(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IGridItemProvider_Impl, - { + unsafe extern "system" fn RowSpan(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGridItemProvider_Impl::RowSpan(this) { Ok(ok__) => { @@ -1114,10 +862,7 @@ impl IGridItemProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ColumnSpan(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IGridItemProvider_Impl, - { + unsafe extern "system" fn ColumnSpan(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGridItemProvider_Impl::ColumnSpan(this) { Ok(ok__) => { @@ -1127,10 +872,7 @@ impl IGridItemProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContainingGrid(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGridItemProvider_Impl, - { + unsafe extern "system" fn ContainingGrid(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGridItemProvider_Impl::ContainingGrid(this) { Ok(ok__) => { @@ -1153,21 +895,15 @@ impl IGridItemProvider_Vtbl { iid == &::IID } } -pub trait IGridProvider_Impl: Sized { +pub trait IGridProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetItem(&self, row: i32, column: i32) -> windows_core::Result; fn RowCount(&self) -> windows_core::Result; fn ColumnCount(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IGridProvider {} impl IGridProvider_Vtbl { - pub const fn new() -> IGridProvider_Vtbl - where - Identity: IGridProvider_Impl, - { - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, row: i32, column: i32, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGridProvider_Impl, - { + pub const fn new() -> IGridProvider_Vtbl { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, row: i32, column: i32, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGridProvider_Impl::GetItem(this, core::mem::transmute_copy(&row), core::mem::transmute_copy(&column)) { Ok(ok__) => { @@ -1177,10 +913,7 @@ impl IGridProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RowCount(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IGridProvider_Impl, - { + unsafe extern "system" fn RowCount(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGridProvider_Impl::RowCount(this) { Ok(ok__) => { @@ -1190,10 +923,7 @@ impl IGridProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ColumnCount(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IGridProvider_Impl, - { + unsafe extern "system" fn ColumnCount(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGridProvider_Impl::ColumnCount(this) { Ok(ok__) => { @@ -1214,19 +944,13 @@ impl IGridProvider_Vtbl { iid == &::IID } } -pub trait IInvokeProvider_Impl: Sized { +pub trait IInvokeProvider_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInvokeProvider {} impl IInvokeProvider_Vtbl { - pub const fn new() -> IInvokeProvider_Vtbl - where - Identity: IInvokeProvider_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInvokeProvider_Impl, - { + pub const fn new() -> IInvokeProvider_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInvokeProvider_Impl::Invoke(this).into() } @@ -1236,19 +960,13 @@ impl IInvokeProvider_Vtbl { iid == &::IID } } -pub trait IItemContainerProvider_Impl: Sized { +pub trait IItemContainerProvider_Impl: Sized + windows_core::IUnknownImpl { fn FindItemByProperty(&self, pstartafter: Option<&IRawElementProviderSimple>, propertyid: UIA_PROPERTY_ID, value: &windows_core::VARIANT) -> windows_core::Result; } impl windows_core::RuntimeName for IItemContainerProvider {} impl IItemContainerProvider_Vtbl { - pub const fn new() -> IItemContainerProvider_Vtbl - where - Identity: IItemContainerProvider_Impl, - { - unsafe extern "system" fn FindItemByProperty(this: *mut core::ffi::c_void, pstartafter: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, value: core::mem::MaybeUninit, pfound: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IItemContainerProvider_Impl, - { + pub const fn new() -> IItemContainerProvider_Vtbl { + unsafe extern "system" fn FindItemByProperty(this: *mut core::ffi::c_void, pstartafter: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, value: core::mem::MaybeUninit, pfound: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IItemContainerProvider_Impl::FindItemByProperty(this, windows_core::from_raw_borrowed(&pstartafter), core::mem::transmute_copy(&propertyid), core::mem::transmute(&value)) { Ok(ok__) => { @@ -1265,7 +983,7 @@ impl IItemContainerProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ILegacyIAccessibleProvider_Impl: Sized { +pub trait ILegacyIAccessibleProvider_Impl: Sized + windows_core::IUnknownImpl { fn Select(&self, flagsselect: i32) -> windows_core::Result<()>; fn DoDefaultAction(&self) -> windows_core::Result<()>; fn SetValue(&self, szvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -1285,35 +1003,20 @@ pub trait ILegacyIAccessibleProvider_Impl: Sized { impl windows_core::RuntimeName for ILegacyIAccessibleProvider {} #[cfg(feature = "Win32_System_Com")] impl ILegacyIAccessibleProvider_Vtbl { - pub const fn new() -> ILegacyIAccessibleProvider_Vtbl - where - Identity: ILegacyIAccessibleProvider_Impl, - { - unsafe extern "system" fn Select(this: *mut core::ffi::c_void, flagsselect: i32) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + pub const fn new() -> ILegacyIAccessibleProvider_Vtbl { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void, flagsselect: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILegacyIAccessibleProvider_Impl::Select(this, core::mem::transmute_copy(&flagsselect)).into() } - unsafe extern "system" fn DoDefaultAction(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn DoDefaultAction(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILegacyIAccessibleProvider_Impl::DoDefaultAction(this).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, szvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, szvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILegacyIAccessibleProvider_Impl::SetValue(this, core::mem::transmute(&szvalue)).into() } - unsafe extern "system" fn GetIAccessible(this: *mut core::ffi::c_void, ppaccessible: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn GetIAccessible(this: *mut core::ffi::c_void, ppaccessible: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::GetIAccessible(this) { Ok(ok__) => { @@ -1323,10 +1026,7 @@ impl ILegacyIAccessibleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChildId(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn ChildId(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::ChildId(this) { Ok(ok__) => { @@ -1336,10 +1036,7 @@ impl ILegacyIAccessibleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::Name(this) { Ok(ok__) => { @@ -1349,10 +1046,7 @@ impl ILegacyIAccessibleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pszvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pszvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::Value(this) { Ok(ok__) => { @@ -1362,10 +1056,7 @@ impl ILegacyIAccessibleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::Description(this) { Ok(ok__) => { @@ -1375,10 +1066,7 @@ impl ILegacyIAccessibleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Role(this: *mut core::ffi::c_void, pdwrole: *mut u32) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn Role(this: *mut core::ffi::c_void, pdwrole: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::Role(this) { Ok(ok__) => { @@ -1388,10 +1076,7 @@ impl ILegacyIAccessibleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::State(this) { Ok(ok__) => { @@ -1401,10 +1086,7 @@ impl ILegacyIAccessibleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Help(this: *mut core::ffi::c_void, pszhelp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn Help(this: *mut core::ffi::c_void, pszhelp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::Help(this) { Ok(ok__) => { @@ -1414,10 +1096,7 @@ impl ILegacyIAccessibleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeyboardShortcut(this: *mut core::ffi::c_void, pszkeyboardshortcut: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn KeyboardShortcut(this: *mut core::ffi::c_void, pszkeyboardshortcut: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::KeyboardShortcut(this) { Ok(ok__) => { @@ -1427,10 +1106,7 @@ impl ILegacyIAccessibleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, pvarselectedchildren: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, pvarselectedchildren: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::GetSelection(this) { Ok(ok__) => { @@ -1440,10 +1116,7 @@ impl ILegacyIAccessibleProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultAction(this: *mut core::ffi::c_void, pszdefaultaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILegacyIAccessibleProvider_Impl, - { + unsafe extern "system" fn DefaultAction(this: *mut core::ffi::c_void, pszdefaultaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILegacyIAccessibleProvider_Impl::DefaultAction(this) { Ok(ok__) => { @@ -1476,7 +1149,7 @@ impl ILegacyIAccessibleProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IMultipleViewProvider_Impl: Sized { +pub trait IMultipleViewProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetViewName(&self, viewid: i32) -> windows_core::Result; fn SetCurrentView(&self, viewid: i32) -> windows_core::Result<()>; fn CurrentView(&self) -> windows_core::Result; @@ -1486,14 +1159,8 @@ pub trait IMultipleViewProvider_Impl: Sized { impl windows_core::RuntimeName for IMultipleViewProvider {} #[cfg(feature = "Win32_System_Com")] impl IMultipleViewProvider_Vtbl { - pub const fn new() -> IMultipleViewProvider_Vtbl - where - Identity: IMultipleViewProvider_Impl, - { - unsafe extern "system" fn GetViewName(this: *mut core::ffi::c_void, viewid: i32, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMultipleViewProvider_Impl, - { + pub const fn new() -> IMultipleViewProvider_Vtbl { + unsafe extern "system" fn GetViewName(this: *mut core::ffi::c_void, viewid: i32, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultipleViewProvider_Impl::GetViewName(this, core::mem::transmute_copy(&viewid)) { Ok(ok__) => { @@ -1503,17 +1170,11 @@ impl IMultipleViewProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentView(this: *mut core::ffi::c_void, viewid: i32) -> windows_core::HRESULT - where - Identity: IMultipleViewProvider_Impl, - { + unsafe extern "system" fn SetCurrentView(this: *mut core::ffi::c_void, viewid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultipleViewProvider_Impl::SetCurrentView(this, core::mem::transmute_copy(&viewid)).into() } - unsafe extern "system" fn CurrentView(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IMultipleViewProvider_Impl, - { + unsafe extern "system" fn CurrentView(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultipleViewProvider_Impl::CurrentView(this) { Ok(ok__) => { @@ -1523,10 +1184,7 @@ impl IMultipleViewProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSupportedViews(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IMultipleViewProvider_Impl, - { + unsafe extern "system" fn GetSupportedViews(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultipleViewProvider_Impl::GetSupportedViews(this) { Ok(ok__) => { @@ -1548,19 +1206,13 @@ impl IMultipleViewProvider_Vtbl { iid == &::IID } } -pub trait IObjectModelProvider_Impl: Sized { +pub trait IObjectModelProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetUnderlyingObjectModel(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IObjectModelProvider {} impl IObjectModelProvider_Vtbl { - pub const fn new() -> IObjectModelProvider_Vtbl - where - Identity: IObjectModelProvider_Impl, - { - unsafe extern "system" fn GetUnderlyingObjectModel(this: *mut core::ffi::c_void, ppunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectModelProvider_Impl, - { + pub const fn new() -> IObjectModelProvider_Vtbl { + unsafe extern "system" fn GetUnderlyingObjectModel(this: *mut core::ffi::c_void, ppunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectModelProvider_Impl::GetUnderlyingObjectModel(this) { Ok(ok__) => { @@ -1576,19 +1228,13 @@ impl IObjectModelProvider_Vtbl { iid == &::IID } } -pub trait IProxyProviderWinEventHandler_Impl: Sized { +pub trait IProxyProviderWinEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn RespondToWinEvent(&self, idwinevent: u32, hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32, psink: Option<&IProxyProviderWinEventSink>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IProxyProviderWinEventHandler {} impl IProxyProviderWinEventHandler_Vtbl { - pub const fn new() -> IProxyProviderWinEventHandler_Vtbl - where - Identity: IProxyProviderWinEventHandler_Impl, - { - unsafe extern "system" fn RespondToWinEvent(this: *mut core::ffi::c_void, idwinevent: u32, hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProxyProviderWinEventHandler_Impl, - { + pub const fn new() -> IProxyProviderWinEventHandler_Vtbl { + unsafe extern "system" fn RespondToWinEvent(this: *mut core::ffi::c_void, idwinevent: u32, hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProxyProviderWinEventHandler_Impl::RespondToWinEvent(this, core::mem::transmute_copy(&idwinevent), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&idobject), core::mem::transmute_copy(&idchild), windows_core::from_raw_borrowed(&psink)).into() } @@ -1599,7 +1245,7 @@ impl IProxyProviderWinEventHandler_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IProxyProviderWinEventSink_Impl: Sized { +pub trait IProxyProviderWinEventSink_Impl: Sized + windows_core::IUnknownImpl { fn AddAutomationPropertyChangedEvent(&self, pprovider: Option<&IRawElementProviderSimple>, id: UIA_PROPERTY_ID, newvalue: &windows_core::VARIANT) -> windows_core::Result<()>; fn AddAutomationEvent(&self, pprovider: Option<&IRawElementProviderSimple>, id: UIA_EVENT_ID) -> windows_core::Result<()>; fn AddStructureChangedEvent(&self, pprovider: Option<&IRawElementProviderSimple>, structurechangetype: StructureChangeType, runtimeid: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; @@ -1608,28 +1254,16 @@ pub trait IProxyProviderWinEventSink_Impl: Sized { impl windows_core::RuntimeName for IProxyProviderWinEventSink {} #[cfg(feature = "Win32_System_Com")] impl IProxyProviderWinEventSink_Vtbl { - pub const fn new() -> IProxyProviderWinEventSink_Vtbl - where - Identity: IProxyProviderWinEventSink_Impl, - { - unsafe extern "system" fn AddAutomationPropertyChangedEvent(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void, id: UIA_PROPERTY_ID, newvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IProxyProviderWinEventSink_Impl, - { + pub const fn new() -> IProxyProviderWinEventSink_Vtbl { + unsafe extern "system" fn AddAutomationPropertyChangedEvent(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void, id: UIA_PROPERTY_ID, newvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProxyProviderWinEventSink_Impl::AddAutomationPropertyChangedEvent(this, windows_core::from_raw_borrowed(&pprovider), core::mem::transmute_copy(&id), core::mem::transmute(&newvalue)).into() } - unsafe extern "system" fn AddAutomationEvent(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void, id: UIA_EVENT_ID) -> windows_core::HRESULT - where - Identity: IProxyProviderWinEventSink_Impl, - { + unsafe extern "system" fn AddAutomationEvent(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void, id: UIA_EVENT_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProxyProviderWinEventSink_Impl::AddAutomationEvent(this, windows_core::from_raw_borrowed(&pprovider), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn AddStructureChangedEvent(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void, structurechangetype: StructureChangeType, runtimeid: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IProxyProviderWinEventSink_Impl, - { + unsafe extern "system" fn AddStructureChangedEvent(this: *mut core::ffi::c_void, pprovider: *mut core::ffi::c_void, structurechangetype: StructureChangeType, runtimeid: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProxyProviderWinEventSink_Impl::AddStructureChangedEvent(this, windows_core::from_raw_borrowed(&pprovider), core::mem::transmute_copy(&structurechangetype), core::mem::transmute_copy(&runtimeid)).into() } @@ -1644,7 +1278,7 @@ impl IProxyProviderWinEventSink_Vtbl { iid == &::IID } } -pub trait IRangeValueProvider_Impl: Sized { +pub trait IRangeValueProvider_Impl: Sized + windows_core::IUnknownImpl { fn SetValue(&self, val: f64) -> windows_core::Result<()>; fn Value(&self) -> windows_core::Result; fn IsReadOnly(&self) -> windows_core::Result; @@ -1655,21 +1289,12 @@ pub trait IRangeValueProvider_Impl: Sized { } impl windows_core::RuntimeName for IRangeValueProvider {} impl IRangeValueProvider_Vtbl { - pub const fn new() -> IRangeValueProvider_Vtbl - where - Identity: IRangeValueProvider_Impl, - { - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, val: f64) -> windows_core::HRESULT - where - Identity: IRangeValueProvider_Impl, - { + pub const fn new() -> IRangeValueProvider_Vtbl { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, val: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRangeValueProvider_Impl::SetValue(this, core::mem::transmute_copy(&val)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: IRangeValueProvider_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRangeValueProvider_Impl::Value(this) { Ok(ok__) => { @@ -1679,10 +1304,7 @@ impl IRangeValueProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRangeValueProvider_Impl, - { + unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRangeValueProvider_Impl::IsReadOnly(this) { Ok(ok__) => { @@ -1692,10 +1314,7 @@ impl IRangeValueProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Maximum(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: IRangeValueProvider_Impl, - { + unsafe extern "system" fn Maximum(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRangeValueProvider_Impl::Maximum(this) { Ok(ok__) => { @@ -1705,10 +1324,7 @@ impl IRangeValueProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Minimum(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: IRangeValueProvider_Impl, - { + unsafe extern "system" fn Minimum(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRangeValueProvider_Impl::Minimum(this) { Ok(ok__) => { @@ -1718,10 +1334,7 @@ impl IRangeValueProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LargeChange(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: IRangeValueProvider_Impl, - { + unsafe extern "system" fn LargeChange(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRangeValueProvider_Impl::LargeChange(this) { Ok(ok__) => { @@ -1731,10 +1344,7 @@ impl IRangeValueProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SmallChange(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: IRangeValueProvider_Impl, - { + unsafe extern "system" fn SmallChange(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRangeValueProvider_Impl::SmallChange(this) { Ok(ok__) => { @@ -1760,7 +1370,7 @@ impl IRangeValueProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRawElementProviderAdviseEvents_Impl: Sized { +pub trait IRawElementProviderAdviseEvents_Impl: Sized + windows_core::IUnknownImpl { fn AdviseEventAdded(&self, eventid: UIA_EVENT_ID, propertyids: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; fn AdviseEventRemoved(&self, eventid: UIA_EVENT_ID, propertyids: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; } @@ -1768,21 +1378,12 @@ pub trait IRawElementProviderAdviseEvents_Impl: Sized { impl windows_core::RuntimeName for IRawElementProviderAdviseEvents {} #[cfg(feature = "Win32_System_Com")] impl IRawElementProviderAdviseEvents_Vtbl { - pub const fn new() -> IRawElementProviderAdviseEvents_Vtbl - where - Identity: IRawElementProviderAdviseEvents_Impl, - { - unsafe extern "system" fn AdviseEventAdded(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, propertyids: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IRawElementProviderAdviseEvents_Impl, - { + pub const fn new() -> IRawElementProviderAdviseEvents_Vtbl { + unsafe extern "system" fn AdviseEventAdded(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, propertyids: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawElementProviderAdviseEvents_Impl::AdviseEventAdded(this, core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&propertyids)).into() } - unsafe extern "system" fn AdviseEventRemoved(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, propertyids: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IRawElementProviderAdviseEvents_Impl, - { + unsafe extern "system" fn AdviseEventRemoved(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, propertyids: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawElementProviderAdviseEvents_Impl::AdviseEventRemoved(this, core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&propertyids)).into() } @@ -1797,7 +1398,7 @@ impl IRawElementProviderAdviseEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRawElementProviderFragment_Impl: Sized { +pub trait IRawElementProviderFragment_Impl: Sized + windows_core::IUnknownImpl { fn Navigate(&self, direction: NavigateDirection) -> windows_core::Result; fn GetRuntimeId(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn BoundingRectangle(&self) -> windows_core::Result; @@ -1809,14 +1410,8 @@ pub trait IRawElementProviderFragment_Impl: Sized { impl windows_core::RuntimeName for IRawElementProviderFragment {} #[cfg(feature = "Win32_System_Com")] impl IRawElementProviderFragment_Vtbl { - pub const fn new() -> IRawElementProviderFragment_Vtbl - where - Identity: IRawElementProviderFragment_Impl, - { - unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, direction: NavigateDirection, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawElementProviderFragment_Impl, - { + pub const fn new() -> IRawElementProviderFragment_Vtbl { + unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, direction: NavigateDirection, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderFragment_Impl::Navigate(this, core::mem::transmute_copy(&direction)) { Ok(ok__) => { @@ -1826,10 +1421,7 @@ impl IRawElementProviderFragment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRuntimeId(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IRawElementProviderFragment_Impl, - { + unsafe extern "system" fn GetRuntimeId(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderFragment_Impl::GetRuntimeId(this) { Ok(ok__) => { @@ -1839,10 +1431,7 @@ impl IRawElementProviderFragment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BoundingRectangle(this: *mut core::ffi::c_void, pretval: *mut UiaRect) -> windows_core::HRESULT - where - Identity: IRawElementProviderFragment_Impl, - { + unsafe extern "system" fn BoundingRectangle(this: *mut core::ffi::c_void, pretval: *mut UiaRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderFragment_Impl::BoundingRectangle(this) { Ok(ok__) => { @@ -1852,10 +1441,7 @@ impl IRawElementProviderFragment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEmbeddedFragmentRoots(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IRawElementProviderFragment_Impl, - { + unsafe extern "system" fn GetEmbeddedFragmentRoots(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderFragment_Impl::GetEmbeddedFragmentRoots(this) { Ok(ok__) => { @@ -1865,17 +1451,11 @@ impl IRawElementProviderFragment_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawElementProviderFragment_Impl, - { + unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawElementProviderFragment_Impl::SetFocus(this).into() } - unsafe extern "system" fn FragmentRoot(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawElementProviderFragment_Impl, - { + unsafe extern "system" fn FragmentRoot(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderFragment_Impl::FragmentRoot(this) { Ok(ok__) => { @@ -1899,20 +1479,14 @@ impl IRawElementProviderFragment_Vtbl { iid == &::IID } } -pub trait IRawElementProviderFragmentRoot_Impl: Sized { +pub trait IRawElementProviderFragmentRoot_Impl: Sized + windows_core::IUnknownImpl { fn ElementProviderFromPoint(&self, x: f64, y: f64) -> windows_core::Result; fn GetFocus(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IRawElementProviderFragmentRoot {} impl IRawElementProviderFragmentRoot_Vtbl { - pub const fn new() -> IRawElementProviderFragmentRoot_Vtbl - where - Identity: IRawElementProviderFragmentRoot_Impl, - { - unsafe extern "system" fn ElementProviderFromPoint(this: *mut core::ffi::c_void, x: f64, y: f64, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawElementProviderFragmentRoot_Impl, - { + pub const fn new() -> IRawElementProviderFragmentRoot_Vtbl { + unsafe extern "system" fn ElementProviderFromPoint(this: *mut core::ffi::c_void, x: f64, y: f64, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderFragmentRoot_Impl::ElementProviderFromPoint(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)) { Ok(ok__) => { @@ -1922,10 +1496,7 @@ impl IRawElementProviderFragmentRoot_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFocus(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawElementProviderFragmentRoot_Impl, - { + unsafe extern "system" fn GetFocus(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderFragmentRoot_Impl::GetFocus(this) { Ok(ok__) => { @@ -1946,21 +1517,15 @@ impl IRawElementProviderFragmentRoot_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRawElementProviderHostingAccessibles_Impl: Sized { +pub trait IRawElementProviderHostingAccessibles_Impl: Sized + windows_core::IUnknownImpl { fn GetEmbeddedAccessibles(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IRawElementProviderHostingAccessibles {} #[cfg(feature = "Win32_System_Com")] impl IRawElementProviderHostingAccessibles_Vtbl { - pub const fn new() -> IRawElementProviderHostingAccessibles_Vtbl - where - Identity: IRawElementProviderHostingAccessibles_Impl, - { - unsafe extern "system" fn GetEmbeddedAccessibles(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IRawElementProviderHostingAccessibles_Impl, - { + pub const fn new() -> IRawElementProviderHostingAccessibles_Vtbl { + unsafe extern "system" fn GetEmbeddedAccessibles(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderHostingAccessibles_Impl::GetEmbeddedAccessibles(this) { Ok(ok__) => { @@ -1976,19 +1541,13 @@ impl IRawElementProviderHostingAccessibles_Vtbl { iid == &::IID } } -pub trait IRawElementProviderHwndOverride_Impl: Sized { +pub trait IRawElementProviderHwndOverride_Impl: Sized + windows_core::IUnknownImpl { fn GetOverrideProviderForHwnd(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result; } impl windows_core::RuntimeName for IRawElementProviderHwndOverride {} impl IRawElementProviderHwndOverride_Vtbl { - pub const fn new() -> IRawElementProviderHwndOverride_Vtbl - where - Identity: IRawElementProviderHwndOverride_Impl, - { - unsafe extern "system" fn GetOverrideProviderForHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawElementProviderHwndOverride_Impl, - { + pub const fn new() -> IRawElementProviderHwndOverride_Vtbl { + unsafe extern "system" fn GetOverrideProviderForHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderHwndOverride_Impl::GetOverrideProviderForHwnd(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -2004,7 +1563,7 @@ impl IRawElementProviderHwndOverride_Vtbl { iid == &::IID } } -pub trait IRawElementProviderSimple_Impl: Sized { +pub trait IRawElementProviderSimple_Impl: Sized + windows_core::IUnknownImpl { fn ProviderOptions(&self) -> windows_core::Result; fn GetPatternProvider(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result; fn GetPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result; @@ -2012,14 +1571,8 @@ pub trait IRawElementProviderSimple_Impl: Sized { } impl windows_core::RuntimeName for IRawElementProviderSimple {} impl IRawElementProviderSimple_Vtbl { - pub const fn new() -> IRawElementProviderSimple_Vtbl - where - Identity: IRawElementProviderSimple_Impl, - { - unsafe extern "system" fn ProviderOptions(this: *mut core::ffi::c_void, pretval: *mut ProviderOptions) -> windows_core::HRESULT - where - Identity: IRawElementProviderSimple_Impl, - { + pub const fn new() -> IRawElementProviderSimple_Vtbl { + unsafe extern "system" fn ProviderOptions(this: *mut core::ffi::c_void, pretval: *mut ProviderOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderSimple_Impl::ProviderOptions(this) { Ok(ok__) => { @@ -2029,10 +1582,7 @@ impl IRawElementProviderSimple_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPatternProvider(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawElementProviderSimple_Impl, - { + unsafe extern "system" fn GetPatternProvider(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderSimple_Impl::GetPatternProvider(this, core::mem::transmute_copy(&patternid)) { Ok(ok__) => { @@ -2042,10 +1592,7 @@ impl IRawElementProviderSimple_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyValue(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRawElementProviderSimple_Impl, - { + unsafe extern "system" fn GetPropertyValue(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderSimple_Impl::GetPropertyValue(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -2055,10 +1602,7 @@ impl IRawElementProviderSimple_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HostRawElementProvider(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawElementProviderSimple_Impl, - { + unsafe extern "system" fn HostRawElementProvider(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderSimple_Impl::HostRawElementProvider(this) { Ok(ok__) => { @@ -2085,14 +1629,8 @@ pub trait IRawElementProviderSimple2_Impl: Sized + IRawElementProviderSimple_Imp } impl windows_core::RuntimeName for IRawElementProviderSimple2 {} impl IRawElementProviderSimple2_Vtbl { - pub const fn new() -> IRawElementProviderSimple2_Vtbl - where - Identity: IRawElementProviderSimple2_Impl, - { - unsafe extern "system" fn ShowContextMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawElementProviderSimple2_Impl, - { + pub const fn new() -> IRawElementProviderSimple2_Vtbl { + unsafe extern "system" fn ShowContextMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRawElementProviderSimple2_Impl::ShowContextMenu(this).into() } @@ -2107,14 +1645,8 @@ pub trait IRawElementProviderSimple3_Impl: Sized + IRawElementProviderSimple2_Im } impl windows_core::RuntimeName for IRawElementProviderSimple3 {} impl IRawElementProviderSimple3_Vtbl { - pub const fn new() -> IRawElementProviderSimple3_Vtbl - where - Identity: IRawElementProviderSimple3_Impl, - { - unsafe extern "system" fn GetMetadataValue(this: *mut core::ffi::c_void, targetid: i32, metadataid: UIA_METADATA_ID, returnval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRawElementProviderSimple3_Impl, - { + pub const fn new() -> IRawElementProviderSimple3_Vtbl { + unsafe extern "system" fn GetMetadataValue(this: *mut core::ffi::c_void, targetid: i32, metadataid: UIA_METADATA_ID, returnval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderSimple3_Impl::GetMetadataValue(this, core::mem::transmute_copy(&targetid), core::mem::transmute_copy(&metadataid)) { Ok(ok__) => { @@ -2131,7 +1663,7 @@ impl IRawElementProviderSimple3_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRawElementProviderWindowlessSite_Impl: Sized { +pub trait IRawElementProviderWindowlessSite_Impl: Sized + windows_core::IUnknownImpl { fn GetAdjacentFragment(&self, direction: NavigateDirection) -> windows_core::Result; fn GetRuntimeIdPrefix(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; } @@ -2139,14 +1671,8 @@ pub trait IRawElementProviderWindowlessSite_Impl: Sized { impl windows_core::RuntimeName for IRawElementProviderWindowlessSite {} #[cfg(feature = "Win32_System_Com")] impl IRawElementProviderWindowlessSite_Vtbl { - pub const fn new() -> IRawElementProviderWindowlessSite_Vtbl - where - Identity: IRawElementProviderWindowlessSite_Impl, - { - unsafe extern "system" fn GetAdjacentFragment(this: *mut core::ffi::c_void, direction: NavigateDirection, ppparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRawElementProviderWindowlessSite_Impl, - { + pub const fn new() -> IRawElementProviderWindowlessSite_Vtbl { + unsafe extern "system" fn GetAdjacentFragment(this: *mut core::ffi::c_void, direction: NavigateDirection, ppparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderWindowlessSite_Impl::GetAdjacentFragment(this, core::mem::transmute_copy(&direction)) { Ok(ok__) => { @@ -2156,10 +1682,7 @@ impl IRawElementProviderWindowlessSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRuntimeIdPrefix(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IRawElementProviderWindowlessSite_Impl, - { + unsafe extern "system" fn GetRuntimeIdPrefix(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRawElementProviderWindowlessSite_Impl::GetRuntimeIdPrefix(this) { Ok(ok__) => { @@ -2179,27 +1702,18 @@ impl IRawElementProviderWindowlessSite_Vtbl { iid == &::IID } } -pub trait IRichEditUiaInformation_Impl: Sized { +pub trait IRichEditUiaInformation_Impl: Sized + windows_core::IUnknownImpl { fn GetBoundaryRectangle(&self, puiarect: *mut UiaRect) -> windows_core::Result<()>; fn IsVisible(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRichEditUiaInformation {} impl IRichEditUiaInformation_Vtbl { - pub const fn new() -> IRichEditUiaInformation_Vtbl - where - Identity: IRichEditUiaInformation_Impl, - { - unsafe extern "system" fn GetBoundaryRectangle(this: *mut core::ffi::c_void, puiarect: *mut UiaRect) -> windows_core::HRESULT - where - Identity: IRichEditUiaInformation_Impl, - { + pub const fn new() -> IRichEditUiaInformation_Vtbl { + unsafe extern "system" fn GetBoundaryRectangle(this: *mut core::ffi::c_void, puiarect: *mut UiaRect) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditUiaInformation_Impl::GetBoundaryRectangle(this, core::mem::transmute_copy(&puiarect)).into() } - unsafe extern "system" fn IsVisible(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRichEditUiaInformation_Impl, - { + unsafe extern "system" fn IsVisible(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditUiaInformation_Impl::IsVisible(this).into() } @@ -2213,19 +1727,13 @@ impl IRichEditUiaInformation_Vtbl { iid == &::IID } } -pub trait IRicheditWindowlessAccessibility_Impl: Sized { +pub trait IRicheditWindowlessAccessibility_Impl: Sized + windows_core::IUnknownImpl { fn CreateProvider(&self, psite: Option<&IRawElementProviderWindowlessSite>) -> windows_core::Result; } impl windows_core::RuntimeName for IRicheditWindowlessAccessibility {} impl IRicheditWindowlessAccessibility_Vtbl { - pub const fn new() -> IRicheditWindowlessAccessibility_Vtbl - where - Identity: IRicheditWindowlessAccessibility_Impl, - { - unsafe extern "system" fn CreateProvider(this: *mut core::ffi::c_void, psite: *mut core::ffi::c_void, ppprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRicheditWindowlessAccessibility_Impl, - { + pub const fn new() -> IRicheditWindowlessAccessibility_Vtbl { + unsafe extern "system" fn CreateProvider(this: *mut core::ffi::c_void, psite: *mut core::ffi::c_void, ppprovider: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRicheditWindowlessAccessibility_Impl::CreateProvider(this, windows_core::from_raw_borrowed(&psite)) { Ok(ok__) => { @@ -2241,19 +1749,13 @@ impl IRicheditWindowlessAccessibility_Vtbl { iid == &::IID } } -pub trait IScrollItemProvider_Impl: Sized { +pub trait IScrollItemProvider_Impl: Sized + windows_core::IUnknownImpl { fn ScrollIntoView(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IScrollItemProvider {} impl IScrollItemProvider_Vtbl { - pub const fn new() -> IScrollItemProvider_Vtbl - where - Identity: IScrollItemProvider_Impl, - { - unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScrollItemProvider_Impl, - { + pub const fn new() -> IScrollItemProvider_Vtbl { + unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScrollItemProvider_Impl::ScrollIntoView(this).into() } @@ -2263,7 +1765,7 @@ impl IScrollItemProvider_Vtbl { iid == &::IID } } -pub trait IScrollProvider_Impl: Sized { +pub trait IScrollProvider_Impl: Sized + windows_core::IUnknownImpl { fn Scroll(&self, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::Result<()>; fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> windows_core::Result<()>; fn HorizontalScrollPercent(&self) -> windows_core::Result; @@ -2275,28 +1777,16 @@ pub trait IScrollProvider_Impl: Sized { } impl windows_core::RuntimeName for IScrollProvider {} impl IScrollProvider_Vtbl { - pub const fn new() -> IScrollProvider_Vtbl - where - Identity: IScrollProvider_Impl, - { - unsafe extern "system" fn Scroll(this: *mut core::ffi::c_void, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::HRESULT - where - Identity: IScrollProvider_Impl, - { + pub const fn new() -> IScrollProvider_Vtbl { + unsafe extern "system" fn Scroll(this: *mut core::ffi::c_void, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScrollProvider_Impl::Scroll(this, core::mem::transmute_copy(&horizontalamount), core::mem::transmute_copy(&verticalamount)).into() } - unsafe extern "system" fn SetScrollPercent(this: *mut core::ffi::c_void, horizontalpercent: f64, verticalpercent: f64) -> windows_core::HRESULT - where - Identity: IScrollProvider_Impl, - { + unsafe extern "system" fn SetScrollPercent(this: *mut core::ffi::c_void, horizontalpercent: f64, verticalpercent: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScrollProvider_Impl::SetScrollPercent(this, core::mem::transmute_copy(&horizontalpercent), core::mem::transmute_copy(&verticalpercent)).into() } - unsafe extern "system" fn HorizontalScrollPercent(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: IScrollProvider_Impl, - { + unsafe extern "system" fn HorizontalScrollPercent(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScrollProvider_Impl::HorizontalScrollPercent(this) { Ok(ok__) => { @@ -2306,10 +1796,7 @@ impl IScrollProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VerticalScrollPercent(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: IScrollProvider_Impl, - { + unsafe extern "system" fn VerticalScrollPercent(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScrollProvider_Impl::VerticalScrollPercent(this) { Ok(ok__) => { @@ -2319,10 +1806,7 @@ impl IScrollProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HorizontalViewSize(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: IScrollProvider_Impl, - { + unsafe extern "system" fn HorizontalViewSize(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScrollProvider_Impl::HorizontalViewSize(this) { Ok(ok__) => { @@ -2332,10 +1816,7 @@ impl IScrollProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VerticalViewSize(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: IScrollProvider_Impl, - { + unsafe extern "system" fn VerticalViewSize(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScrollProvider_Impl::VerticalViewSize(this) { Ok(ok__) => { @@ -2345,10 +1826,7 @@ impl IScrollProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HorizontallyScrollable(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IScrollProvider_Impl, - { + unsafe extern "system" fn HorizontallyScrollable(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScrollProvider_Impl::HorizontallyScrollable(this) { Ok(ok__) => { @@ -2358,10 +1836,7 @@ impl IScrollProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VerticallyScrollable(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IScrollProvider_Impl, - { + unsafe extern "system" fn VerticallyScrollable(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScrollProvider_Impl::VerticallyScrollable(this) { Ok(ok__) => { @@ -2387,7 +1862,7 @@ impl IScrollProvider_Vtbl { iid == &::IID } } -pub trait ISelectionItemProvider_Impl: Sized { +pub trait ISelectionItemProvider_Impl: Sized + windows_core::IUnknownImpl { fn Select(&self) -> windows_core::Result<()>; fn AddToSelection(&self) -> windows_core::Result<()>; fn RemoveFromSelection(&self) -> windows_core::Result<()>; @@ -2396,35 +1871,20 @@ pub trait ISelectionItemProvider_Impl: Sized { } impl windows_core::RuntimeName for ISelectionItemProvider {} impl ISelectionItemProvider_Vtbl { - pub const fn new() -> ISelectionItemProvider_Vtbl - where - Identity: ISelectionItemProvider_Impl, - { - unsafe extern "system" fn Select(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISelectionItemProvider_Impl, - { + pub const fn new() -> ISelectionItemProvider_Vtbl { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISelectionItemProvider_Impl::Select(this).into() } - unsafe extern "system" fn AddToSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISelectionItemProvider_Impl, - { + unsafe extern "system" fn AddToSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISelectionItemProvider_Impl::AddToSelection(this).into() } - unsafe extern "system" fn RemoveFromSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISelectionItemProvider_Impl, - { + unsafe extern "system" fn RemoveFromSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISelectionItemProvider_Impl::RemoveFromSelection(this).into() } - unsafe extern "system" fn IsSelected(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISelectionItemProvider_Impl, - { + unsafe extern "system" fn IsSelected(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionItemProvider_Impl::IsSelected(this) { Ok(ok__) => { @@ -2434,10 +1894,7 @@ impl ISelectionItemProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectionContainer(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISelectionItemProvider_Impl, - { + unsafe extern "system" fn SelectionContainer(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionItemProvider_Impl::SelectionContainer(this) { Ok(ok__) => { @@ -2461,7 +1918,7 @@ impl ISelectionItemProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISelectionProvider_Impl: Sized { +pub trait ISelectionProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetSelection(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn CanSelectMultiple(&self) -> windows_core::Result; fn IsSelectionRequired(&self) -> windows_core::Result; @@ -2470,14 +1927,8 @@ pub trait ISelectionProvider_Impl: Sized { impl windows_core::RuntimeName for ISelectionProvider {} #[cfg(feature = "Win32_System_Com")] impl ISelectionProvider_Vtbl { - pub const fn new() -> ISelectionProvider_Vtbl - where - Identity: ISelectionProvider_Impl, - { - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ISelectionProvider_Impl, - { + pub const fn new() -> ISelectionProvider_Vtbl { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionProvider_Impl::GetSelection(this) { Ok(ok__) => { @@ -2487,10 +1938,7 @@ impl ISelectionProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanSelectMultiple(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISelectionProvider_Impl, - { + unsafe extern "system" fn CanSelectMultiple(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionProvider_Impl::CanSelectMultiple(this) { Ok(ok__) => { @@ -2500,10 +1948,7 @@ impl ISelectionProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSelectionRequired(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISelectionProvider_Impl, - { + unsafe extern "system" fn IsSelectionRequired(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionProvider_Impl::IsSelectionRequired(this) { Ok(ok__) => { @@ -2535,14 +1980,8 @@ pub trait ISelectionProvider2_Impl: Sized + ISelectionProvider_Impl { impl windows_core::RuntimeName for ISelectionProvider2 {} #[cfg(feature = "Win32_System_Com")] impl ISelectionProvider2_Vtbl { - pub const fn new() -> ISelectionProvider2_Vtbl - where - Identity: ISelectionProvider2_Impl, - { - unsafe extern "system" fn FirstSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISelectionProvider2_Impl, - { + pub const fn new() -> ISelectionProvider2_Vtbl { + unsafe extern "system" fn FirstSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionProvider2_Impl::FirstSelectedItem(this) { Ok(ok__) => { @@ -2552,10 +1991,7 @@ impl ISelectionProvider2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LastSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISelectionProvider2_Impl, - { + unsafe extern "system" fn LastSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionProvider2_Impl::LastSelectedItem(this) { Ok(ok__) => { @@ -2565,10 +2001,7 @@ impl ISelectionProvider2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISelectionProvider2_Impl, - { + unsafe extern "system" fn CurrentSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionProvider2_Impl::CurrentSelectedItem(this) { Ok(ok__) => { @@ -2578,10 +2011,7 @@ impl ISelectionProvider2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ItemCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: ISelectionProvider2_Impl, - { + unsafe extern "system" fn ItemCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionProvider2_Impl::ItemCount(this) { Ok(ok__) => { @@ -2604,7 +2034,7 @@ impl ISelectionProvider2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISpreadsheetItemProvider_Impl: Sized { +pub trait ISpreadsheetItemProvider_Impl: Sized + windows_core::IUnknownImpl { fn Formula(&self) -> windows_core::Result; fn GetAnnotationObjects(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetAnnotationTypes(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -2613,14 +2043,8 @@ pub trait ISpreadsheetItemProvider_Impl: Sized { impl windows_core::RuntimeName for ISpreadsheetItemProvider {} #[cfg(feature = "Win32_System_Com")] impl ISpreadsheetItemProvider_Vtbl { - pub const fn new() -> ISpreadsheetItemProvider_Vtbl - where - Identity: ISpreadsheetItemProvider_Impl, - { - unsafe extern "system" fn Formula(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISpreadsheetItemProvider_Impl, - { + pub const fn new() -> ISpreadsheetItemProvider_Vtbl { + unsafe extern "system" fn Formula(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpreadsheetItemProvider_Impl::Formula(this) { Ok(ok__) => { @@ -2630,10 +2054,7 @@ impl ISpreadsheetItemProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAnnotationObjects(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ISpreadsheetItemProvider_Impl, - { + unsafe extern "system" fn GetAnnotationObjects(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpreadsheetItemProvider_Impl::GetAnnotationObjects(this) { Ok(ok__) => { @@ -2643,10 +2064,7 @@ impl ISpreadsheetItemProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAnnotationTypes(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ISpreadsheetItemProvider_Impl, - { + unsafe extern "system" fn GetAnnotationTypes(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpreadsheetItemProvider_Impl::GetAnnotationTypes(this) { Ok(ok__) => { @@ -2667,19 +2085,13 @@ impl ISpreadsheetItemProvider_Vtbl { iid == &::IID } } -pub trait ISpreadsheetProvider_Impl: Sized { +pub trait ISpreadsheetProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetItemByName(&self, name: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for ISpreadsheetProvider {} impl ISpreadsheetProvider_Vtbl { - pub const fn new() -> ISpreadsheetProvider_Vtbl - where - Identity: ISpreadsheetProvider_Impl, - { - unsafe extern "system" fn GetItemByName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpreadsheetProvider_Impl, - { + pub const fn new() -> ISpreadsheetProvider_Vtbl { + unsafe extern "system" fn GetItemByName(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpreadsheetProvider_Impl::GetItemByName(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -2695,7 +2107,7 @@ impl ISpreadsheetProvider_Vtbl { iid == &::IID } } -pub trait IStylesProvider_Impl: Sized { +pub trait IStylesProvider_Impl: Sized + windows_core::IUnknownImpl { fn StyleId(&self) -> windows_core::Result; fn StyleName(&self) -> windows_core::Result; fn FillColor(&self) -> windows_core::Result; @@ -2706,14 +2118,8 @@ pub trait IStylesProvider_Impl: Sized { } impl windows_core::RuntimeName for IStylesProvider {} impl IStylesProvider_Vtbl { - pub const fn new() -> IStylesProvider_Vtbl - where - Identity: IStylesProvider_Impl, - { - unsafe extern "system" fn StyleId(this: *mut core::ffi::c_void, retval: *mut UIA_STYLE_ID) -> windows_core::HRESULT - where - Identity: IStylesProvider_Impl, - { + pub const fn new() -> IStylesProvider_Vtbl { + unsafe extern "system" fn StyleId(this: *mut core::ffi::c_void, retval: *mut UIA_STYLE_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStylesProvider_Impl::StyleId(this) { Ok(ok__) => { @@ -2723,10 +2129,7 @@ impl IStylesProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StyleName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStylesProvider_Impl, - { + unsafe extern "system" fn StyleName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStylesProvider_Impl::StyleName(this) { Ok(ok__) => { @@ -2736,10 +2139,7 @@ impl IStylesProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FillColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IStylesProvider_Impl, - { + unsafe extern "system" fn FillColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStylesProvider_Impl::FillColor(this) { Ok(ok__) => { @@ -2749,10 +2149,7 @@ impl IStylesProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FillPatternStyle(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStylesProvider_Impl, - { + unsafe extern "system" fn FillPatternStyle(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStylesProvider_Impl::FillPatternStyle(this) { Ok(ok__) => { @@ -2762,10 +2159,7 @@ impl IStylesProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shape(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStylesProvider_Impl, - { + unsafe extern "system" fn Shape(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStylesProvider_Impl::Shape(this) { Ok(ok__) => { @@ -2775,10 +2169,7 @@ impl IStylesProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FillPatternColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IStylesProvider_Impl, - { + unsafe extern "system" fn FillPatternColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStylesProvider_Impl::FillPatternColor(this) { Ok(ok__) => { @@ -2788,10 +2179,7 @@ impl IStylesProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IStylesProvider_Impl, - { + unsafe extern "system" fn ExtendedProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStylesProvider_Impl::ExtendedProperties(this) { Ok(ok__) => { @@ -2816,27 +2204,18 @@ impl IStylesProvider_Vtbl { iid == &::IID } } -pub trait ISynchronizedInputProvider_Impl: Sized { +pub trait ISynchronizedInputProvider_Impl: Sized + windows_core::IUnknownImpl { fn StartListening(&self, inputtype: SynchronizedInputType) -> windows_core::Result<()>; fn Cancel(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISynchronizedInputProvider {} impl ISynchronizedInputProvider_Vtbl { - pub const fn new() -> ISynchronizedInputProvider_Vtbl - where - Identity: ISynchronizedInputProvider_Impl, - { - unsafe extern "system" fn StartListening(this: *mut core::ffi::c_void, inputtype: SynchronizedInputType) -> windows_core::HRESULT - where - Identity: ISynchronizedInputProvider_Impl, - { + pub const fn new() -> ISynchronizedInputProvider_Vtbl { + unsafe extern "system" fn StartListening(this: *mut core::ffi::c_void, inputtype: SynchronizedInputType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISynchronizedInputProvider_Impl::StartListening(this, core::mem::transmute_copy(&inputtype)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISynchronizedInputProvider_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISynchronizedInputProvider_Impl::Cancel(this).into() } @@ -2851,7 +2230,7 @@ impl ISynchronizedInputProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITableItemProvider_Impl: Sized { +pub trait ITableItemProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetRowHeaderItems(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetColumnHeaderItems(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; } @@ -2859,14 +2238,8 @@ pub trait ITableItemProvider_Impl: Sized { impl windows_core::RuntimeName for ITableItemProvider {} #[cfg(feature = "Win32_System_Com")] impl ITableItemProvider_Vtbl { - pub const fn new() -> ITableItemProvider_Vtbl - where - Identity: ITableItemProvider_Impl, - { - unsafe extern "system" fn GetRowHeaderItems(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITableItemProvider_Impl, - { + pub const fn new() -> ITableItemProvider_Vtbl { + unsafe extern "system" fn GetRowHeaderItems(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITableItemProvider_Impl::GetRowHeaderItems(this) { Ok(ok__) => { @@ -2876,10 +2249,7 @@ impl ITableItemProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumnHeaderItems(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITableItemProvider_Impl, - { + unsafe extern "system" fn GetColumnHeaderItems(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITableItemProvider_Impl::GetColumnHeaderItems(this) { Ok(ok__) => { @@ -2900,7 +2270,7 @@ impl ITableItemProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITableProvider_Impl: Sized { +pub trait ITableProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetRowHeaders(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetColumnHeaders(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn RowOrColumnMajor(&self) -> windows_core::Result; @@ -2909,14 +2279,8 @@ pub trait ITableProvider_Impl: Sized { impl windows_core::RuntimeName for ITableProvider {} #[cfg(feature = "Win32_System_Com")] impl ITableProvider_Vtbl { - pub const fn new() -> ITableProvider_Vtbl - where - Identity: ITableProvider_Impl, - { - unsafe extern "system" fn GetRowHeaders(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITableProvider_Impl, - { + pub const fn new() -> ITableProvider_Vtbl { + unsafe extern "system" fn GetRowHeaders(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITableProvider_Impl::GetRowHeaders(this) { Ok(ok__) => { @@ -2926,10 +2290,7 @@ impl ITableProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumnHeaders(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITableProvider_Impl, - { + unsafe extern "system" fn GetColumnHeaders(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITableProvider_Impl::GetColumnHeaders(this) { Ok(ok__) => { @@ -2939,10 +2300,7 @@ impl ITableProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RowOrColumnMajor(this: *mut core::ffi::c_void, pretval: *mut RowOrColumnMajor) -> windows_core::HRESULT - where - Identity: ITableProvider_Impl, - { + unsafe extern "system" fn RowOrColumnMajor(this: *mut core::ffi::c_void, pretval: *mut RowOrColumnMajor) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITableProvider_Impl::RowOrColumnMajor(this) { Ok(ok__) => { @@ -2963,20 +2321,14 @@ impl ITableProvider_Vtbl { iid == &::IID } } -pub trait ITextChildProvider_Impl: Sized { +pub trait ITextChildProvider_Impl: Sized + windows_core::IUnknownImpl { fn TextContainer(&self) -> windows_core::Result; fn TextRange(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITextChildProvider {} impl ITextChildProvider_Vtbl { - pub const fn new() -> ITextChildProvider_Vtbl - where - Identity: ITextChildProvider_Impl, - { - unsafe extern "system" fn TextContainer(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextChildProvider_Impl, - { + pub const fn new() -> ITextChildProvider_Vtbl { + unsafe extern "system" fn TextContainer(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextChildProvider_Impl::TextContainer(this) { Ok(ok__) => { @@ -2986,10 +2338,7 @@ impl ITextChildProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TextRange(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextChildProvider_Impl, - { + unsafe extern "system" fn TextRange(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextChildProvider_Impl::TextRange(this) { Ok(ok__) => { @@ -3018,14 +2367,8 @@ pub trait ITextEditProvider_Impl: Sized + ITextProvider_Impl { impl windows_core::RuntimeName for ITextEditProvider {} #[cfg(feature = "Win32_System_Com")] impl ITextEditProvider_Vtbl { - pub const fn new() -> ITextEditProvider_Vtbl - where - Identity: ITextEditProvider_Impl, - { - unsafe extern "system" fn GetActiveComposition(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextEditProvider_Impl, - { + pub const fn new() -> ITextEditProvider_Vtbl { + unsafe extern "system" fn GetActiveComposition(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextEditProvider_Impl::GetActiveComposition(this) { Ok(ok__) => { @@ -3035,10 +2378,7 @@ impl ITextEditProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConversionTarget(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextEditProvider_Impl, - { + unsafe extern "system" fn GetConversionTarget(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextEditProvider_Impl::GetConversionTarget(this) { Ok(ok__) => { @@ -3059,7 +2399,7 @@ impl ITextEditProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITextProvider_Impl: Sized { +pub trait ITextProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetSelection(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetVisibleRanges(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn RangeFromChild(&self, childelement: Option<&IRawElementProviderSimple>) -> windows_core::Result; @@ -3071,14 +2411,8 @@ pub trait ITextProvider_Impl: Sized { impl windows_core::RuntimeName for ITextProvider {} #[cfg(feature = "Win32_System_Com")] impl ITextProvider_Vtbl { - pub const fn new() -> ITextProvider_Vtbl - where - Identity: ITextProvider_Impl, - { - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITextProvider_Impl, - { + pub const fn new() -> ITextProvider_Vtbl { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextProvider_Impl::GetSelection(this) { Ok(ok__) => { @@ -3088,10 +2422,7 @@ impl ITextProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVisibleRanges(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITextProvider_Impl, - { + unsafe extern "system" fn GetVisibleRanges(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextProvider_Impl::GetVisibleRanges(this) { Ok(ok__) => { @@ -3101,10 +2432,7 @@ impl ITextProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RangeFromChild(this: *mut core::ffi::c_void, childelement: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextProvider_Impl, - { + unsafe extern "system" fn RangeFromChild(this: *mut core::ffi::c_void, childelement: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextProvider_Impl::RangeFromChild(this, windows_core::from_raw_borrowed(&childelement)) { Ok(ok__) => { @@ -3114,10 +2442,7 @@ impl ITextProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RangeFromPoint(this: *mut core::ffi::c_void, point: UiaPoint, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextProvider_Impl, - { + unsafe extern "system" fn RangeFromPoint(this: *mut core::ffi::c_void, point: UiaPoint, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextProvider_Impl::RangeFromPoint(this, core::mem::transmute(&point)) { Ok(ok__) => { @@ -3127,10 +2452,7 @@ impl ITextProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DocumentRange(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextProvider_Impl, - { + unsafe extern "system" fn DocumentRange(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextProvider_Impl::DocumentRange(this) { Ok(ok__) => { @@ -3140,10 +2462,7 @@ impl ITextProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedTextSelection(this: *mut core::ffi::c_void, pretval: *mut SupportedTextSelection) -> windows_core::HRESULT - where - Identity: ITextProvider_Impl, - { + unsafe extern "system" fn SupportedTextSelection(this: *mut core::ffi::c_void, pretval: *mut SupportedTextSelection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextProvider_Impl::SupportedTextSelection(this) { Ok(ok__) => { @@ -3176,14 +2495,8 @@ pub trait ITextProvider2_Impl: Sized + ITextProvider_Impl { impl windows_core::RuntimeName for ITextProvider2 {} #[cfg(feature = "Win32_System_Com")] impl ITextProvider2_Vtbl { - pub const fn new() -> ITextProvider2_Vtbl - where - Identity: ITextProvider2_Impl, - { - unsafe extern "system" fn RangeFromAnnotation(this: *mut core::ffi::c_void, annotationelement: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextProvider2_Impl, - { + pub const fn new() -> ITextProvider2_Vtbl { + unsafe extern "system" fn RangeFromAnnotation(this: *mut core::ffi::c_void, annotationelement: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextProvider2_Impl::RangeFromAnnotation(this, windows_core::from_raw_borrowed(&annotationelement)) { Ok(ok__) => { @@ -3193,10 +2506,7 @@ impl ITextProvider2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCaretRange(this: *mut core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextProvider2_Impl, - { + unsafe extern "system" fn GetCaretRange(this: *mut core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextProvider2_Impl::GetCaretRange(this, core::mem::transmute_copy(&isactive)) { Ok(ok__) => { @@ -3217,7 +2527,7 @@ impl ITextProvider2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITextRangeProvider_Impl: Sized { +pub trait ITextRangeProvider_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Compare(&self, range: Option<&ITextRangeProvider>) -> windows_core::Result; fn CompareEndpoints(&self, endpoint: TextPatternRangeEndpoint, targetrange: Option<&ITextRangeProvider>, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result; @@ -3241,14 +2551,8 @@ pub trait ITextRangeProvider_Impl: Sized { impl windows_core::RuntimeName for ITextRangeProvider {} #[cfg(feature = "Win32_System_Com")] impl ITextRangeProvider_Vtbl { - pub const fn new() -> ITextRangeProvider_Vtbl - where - Identity: ITextRangeProvider_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + pub const fn new() -> ITextRangeProvider_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::Clone(this) { Ok(ok__) => { @@ -3258,10 +2562,7 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::Compare(this, windows_core::from_raw_borrowed(&range)) { Ok(ok__) => { @@ -3271,10 +2572,7 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareEndpoints(this: *mut core::ffi::c_void, endpoint: TextPatternRangeEndpoint, targetrange: *mut core::ffi::c_void, targetendpoint: TextPatternRangeEndpoint, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn CompareEndpoints(this: *mut core::ffi::c_void, endpoint: TextPatternRangeEndpoint, targetrange: *mut core::ffi::c_void, targetendpoint: TextPatternRangeEndpoint, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::CompareEndpoints(this, core::mem::transmute_copy(&endpoint), windows_core::from_raw_borrowed(&targetrange), core::mem::transmute_copy(&targetendpoint)) { Ok(ok__) => { @@ -3284,17 +2582,11 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpandToEnclosingUnit(this: *mut core::ffi::c_void, unit: TextUnit) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn ExpandToEnclosingUnit(this: *mut core::ffi::c_void, unit: TextUnit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRangeProvider_Impl::ExpandToEnclosingUnit(this, core::mem::transmute_copy(&unit)).into() } - unsafe extern "system" fn FindAttribute(this: *mut core::ffi::c_void, attributeid: UIA_TEXTATTRIBUTE_ID, val: core::mem::MaybeUninit, backward: super::super::Foundation::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn FindAttribute(this: *mut core::ffi::c_void, attributeid: UIA_TEXTATTRIBUTE_ID, val: core::mem::MaybeUninit, backward: super::super::Foundation::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::FindAttribute(this, core::mem::transmute_copy(&attributeid), core::mem::transmute(&val), core::mem::transmute_copy(&backward)) { Ok(ok__) => { @@ -3304,10 +2596,7 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::FindText(this, core::mem::transmute(&text), core::mem::transmute_copy(&backward), core::mem::transmute_copy(&ignorecase)) { Ok(ok__) => { @@ -3317,10 +2606,7 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeValue(this: *mut core::ffi::c_void, attributeid: UIA_TEXTATTRIBUTE_ID, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn GetAttributeValue(this: *mut core::ffi::c_void, attributeid: UIA_TEXTATTRIBUTE_ID, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::GetAttributeValue(this, core::mem::transmute_copy(&attributeid)) { Ok(ok__) => { @@ -3330,10 +2616,7 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBoundingRectangles(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn GetBoundingRectangles(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::GetBoundingRectangles(this) { Ok(ok__) => { @@ -3343,10 +2626,7 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnclosingElement(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn GetEnclosingElement(this: *mut core::ffi::c_void, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::GetEnclosingElement(this) { Ok(ok__) => { @@ -3356,10 +2636,7 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, maxlength: i32, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, maxlength: i32, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::GetText(this, core::mem::transmute_copy(&maxlength)) { Ok(ok__) => { @@ -3369,10 +2646,7 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, unit: TextUnit, count: i32, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, unit: TextUnit, count: i32, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::Move(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -3382,10 +2656,7 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveEndpointByUnit(this: *mut core::ffi::c_void, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn MoveEndpointByUnit(this: *mut core::ffi::c_void, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::MoveEndpointByUnit(this, core::mem::transmute_copy(&endpoint), core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -3395,45 +2666,27 @@ impl ITextRangeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveEndpointByRange(this: *mut core::ffi::c_void, endpoint: TextPatternRangeEndpoint, targetrange: *mut core::ffi::c_void, targetendpoint: TextPatternRangeEndpoint) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn MoveEndpointByRange(this: *mut core::ffi::c_void, endpoint: TextPatternRangeEndpoint, targetrange: *mut core::ffi::c_void, targetendpoint: TextPatternRangeEndpoint) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRangeProvider_Impl::MoveEndpointByRange(this, core::mem::transmute_copy(&endpoint), windows_core::from_raw_borrowed(&targetrange), core::mem::transmute_copy(&targetendpoint)).into() } - unsafe extern "system" fn Select(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRangeProvider_Impl::Select(this).into() } - unsafe extern "system" fn AddToSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn AddToSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRangeProvider_Impl::AddToSelection(this).into() } - unsafe extern "system" fn RemoveFromSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn RemoveFromSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRangeProvider_Impl::RemoveFromSelection(this).into() } - unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, aligntotop: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, aligntotop: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRangeProvider_Impl::ScrollIntoView(this, core::mem::transmute_copy(&aligntotop)).into() } - unsafe extern "system" fn GetChildren(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITextRangeProvider_Impl, - { + unsafe extern "system" fn GetChildren(this: *mut core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::GetChildren(this) { Ok(ok__) => { @@ -3477,14 +2730,8 @@ pub trait ITextRangeProvider2_Impl: Sized + ITextRangeProvider_Impl { impl windows_core::RuntimeName for ITextRangeProvider2 {} #[cfg(feature = "Win32_System_Com")] impl ITextRangeProvider2_Vtbl { - pub const fn new() -> ITextRangeProvider2_Vtbl - where - Identity: ITextRangeProvider2_Impl, - { - unsafe extern "system" fn ShowContextMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRangeProvider2_Impl, - { + pub const fn new() -> ITextRangeProvider2_Vtbl { + unsafe extern "system" fn ShowContextMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRangeProvider2_Impl::ShowContextMenu(this).into() } @@ -3494,27 +2741,18 @@ impl ITextRangeProvider2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IToggleProvider_Impl: Sized { +pub trait IToggleProvider_Impl: Sized + windows_core::IUnknownImpl { fn Toggle(&self) -> windows_core::Result<()>; fn ToggleState(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IToggleProvider {} impl IToggleProvider_Vtbl { - pub const fn new() -> IToggleProvider_Vtbl - where - Identity: IToggleProvider_Impl, - { - unsafe extern "system" fn Toggle(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IToggleProvider_Impl, - { + pub const fn new() -> IToggleProvider_Vtbl { + unsafe extern "system" fn Toggle(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToggleProvider_Impl::Toggle(this).into() } - unsafe extern "system" fn ToggleState(this: *mut core::ffi::c_void, pretval: *mut ToggleState) -> windows_core::HRESULT - where - Identity: IToggleProvider_Impl, - { + unsafe extern "system" fn ToggleState(this: *mut core::ffi::c_void, pretval: *mut ToggleState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IToggleProvider_Impl::ToggleState(this) { Ok(ok__) => { @@ -3530,7 +2768,7 @@ impl IToggleProvider_Vtbl { iid == &::IID } } -pub trait ITransformProvider_Impl: Sized { +pub trait ITransformProvider_Impl: Sized + windows_core::IUnknownImpl { fn Move(&self, x: f64, y: f64) -> windows_core::Result<()>; fn Resize(&self, width: f64, height: f64) -> windows_core::Result<()>; fn Rotate(&self, degrees: f64) -> windows_core::Result<()>; @@ -3540,35 +2778,20 @@ pub trait ITransformProvider_Impl: Sized { } impl windows_core::RuntimeName for ITransformProvider {} impl ITransformProvider_Vtbl { - pub const fn new() -> ITransformProvider_Vtbl - where - Identity: ITransformProvider_Impl, - { - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, x: f64, y: f64) -> windows_core::HRESULT - where - Identity: ITransformProvider_Impl, - { + pub const fn new() -> ITransformProvider_Vtbl { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, x: f64, y: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransformProvider_Impl::Move(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, width: f64, height: f64) -> windows_core::HRESULT - where - Identity: ITransformProvider_Impl, - { + unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, width: f64, height: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransformProvider_Impl::Resize(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f64) -> windows_core::HRESULT - where - Identity: ITransformProvider_Impl, - { + unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransformProvider_Impl::Rotate(this, core::mem::transmute_copy(°rees)).into() } - unsafe extern "system" fn CanMove(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITransformProvider_Impl, - { + unsafe extern "system" fn CanMove(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider_Impl::CanMove(this) { Ok(ok__) => { @@ -3578,10 +2801,7 @@ impl ITransformProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanResize(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITransformProvider_Impl, - { + unsafe extern "system" fn CanResize(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider_Impl::CanResize(this) { Ok(ok__) => { @@ -3591,10 +2811,7 @@ impl ITransformProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanRotate(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITransformProvider_Impl, - { + unsafe extern "system" fn CanRotate(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider_Impl::CanRotate(this) { Ok(ok__) => { @@ -3628,21 +2845,12 @@ pub trait ITransformProvider2_Impl: Sized + ITransformProvider_Impl { } impl windows_core::RuntimeName for ITransformProvider2 {} impl ITransformProvider2_Vtbl { - pub const fn new() -> ITransformProvider2_Vtbl - where - Identity: ITransformProvider2_Impl, - { - unsafe extern "system" fn Zoom(this: *mut core::ffi::c_void, zoom: f64) -> windows_core::HRESULT - where - Identity: ITransformProvider2_Impl, - { + pub const fn new() -> ITransformProvider2_Vtbl { + unsafe extern "system" fn Zoom(this: *mut core::ffi::c_void, zoom: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransformProvider2_Impl::Zoom(this, core::mem::transmute_copy(&zoom)).into() } - unsafe extern "system" fn CanZoom(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITransformProvider2_Impl, - { + unsafe extern "system" fn CanZoom(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider2_Impl::CanZoom(this) { Ok(ok__) => { @@ -3652,10 +2860,7 @@ impl ITransformProvider2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ZoomLevel(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: ITransformProvider2_Impl, - { + unsafe extern "system" fn ZoomLevel(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider2_Impl::ZoomLevel(this) { Ok(ok__) => { @@ -3665,10 +2870,7 @@ impl ITransformProvider2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ZoomMinimum(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: ITransformProvider2_Impl, - { + unsafe extern "system" fn ZoomMinimum(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider2_Impl::ZoomMinimum(this) { Ok(ok__) => { @@ -3678,10 +2880,7 @@ impl ITransformProvider2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ZoomMaximum(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT - where - Identity: ITransformProvider2_Impl, - { + unsafe extern "system" fn ZoomMaximum(this: *mut core::ffi::c_void, pretval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider2_Impl::ZoomMaximum(this) { Ok(ok__) => { @@ -3691,10 +2890,7 @@ impl ITransformProvider2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ZoomByUnit(this: *mut core::ffi::c_void, zoomunit: ZoomUnit) -> windows_core::HRESULT - where - Identity: ITransformProvider2_Impl, - { + unsafe extern "system" fn ZoomByUnit(this: *mut core::ffi::c_void, zoomunit: ZoomUnit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransformProvider2_Impl::ZoomByUnit(this, core::mem::transmute_copy(&zoomunit)).into() } @@ -3713,7 +2909,7 @@ impl ITransformProvider2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomation_Impl: Sized { +pub trait IUIAutomation_Impl: Sized + windows_core::IUnknownImpl { fn CompareElements(&self, el1: Option<&IUIAutomationElement>, el2: Option<&IUIAutomationElement>) -> windows_core::Result; fn CompareRuntimeIds(&self, runtimeid1: *const super::super::System::Com::SAFEARRAY, runtimeid2: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result; fn GetRootElement(&self) -> windows_core::Result; @@ -3774,14 +2970,8 @@ pub trait IUIAutomation_Impl: Sized { impl windows_core::RuntimeName for IUIAutomation {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomation_Vtbl { - pub const fn new() -> IUIAutomation_Vtbl - where - Identity: IUIAutomation_Impl, - { - unsafe extern "system" fn CompareElements(this: *mut core::ffi::c_void, el1: *mut core::ffi::c_void, el2: *mut core::ffi::c_void, aresame: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + pub const fn new() -> IUIAutomation_Vtbl { + unsafe extern "system" fn CompareElements(this: *mut core::ffi::c_void, el1: *mut core::ffi::c_void, el2: *mut core::ffi::c_void, aresame: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CompareElements(this, windows_core::from_raw_borrowed(&el1), windows_core::from_raw_borrowed(&el2)) { Ok(ok__) => { @@ -3791,10 +2981,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareRuntimeIds(this: *mut core::ffi::c_void, runtimeid1: *const super::super::System::Com::SAFEARRAY, runtimeid2: *const super::super::System::Com::SAFEARRAY, aresame: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CompareRuntimeIds(this: *mut core::ffi::c_void, runtimeid1: *const super::super::System::Com::SAFEARRAY, runtimeid2: *const super::super::System::Com::SAFEARRAY, aresame: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CompareRuntimeIds(this, core::mem::transmute_copy(&runtimeid1), core::mem::transmute_copy(&runtimeid2)) { Ok(ok__) => { @@ -3804,10 +2991,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRootElement(this: *mut core::ffi::c_void, root: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn GetRootElement(this: *mut core::ffi::c_void, root: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::GetRootElement(this) { Ok(ok__) => { @@ -3817,10 +3001,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ElementFromHandle(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ElementFromHandle(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ElementFromHandle(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -3830,10 +3011,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ElementFromPoint(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ElementFromPoint(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ElementFromPoint(this, core::mem::transmute(&pt)) { Ok(ok__) => { @@ -3843,10 +3021,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFocusedElement(this: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn GetFocusedElement(this: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::GetFocusedElement(this) { Ok(ok__) => { @@ -3856,10 +3031,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRootElementBuildCache(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, root: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn GetRootElementBuildCache(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, root: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::GetRootElementBuildCache(this, windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -3869,10 +3041,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ElementFromHandleBuildCache(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, cacherequest: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ElementFromHandleBuildCache(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, cacherequest: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ElementFromHandleBuildCache(this, core::mem::transmute_copy(&hwnd), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -3882,10 +3051,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ElementFromPointBuildCache(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT, cacherequest: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ElementFromPointBuildCache(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT, cacherequest: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ElementFromPointBuildCache(this, core::mem::transmute(&pt), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -3895,10 +3061,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFocusedElementBuildCache(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn GetFocusedElementBuildCache(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::GetFocusedElementBuildCache(this, windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -3908,10 +3071,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTreeWalker(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void, walker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateTreeWalker(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void, walker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateTreeWalker(this, windows_core::from_raw_borrowed(&pcondition)) { Ok(ok__) => { @@ -3921,10 +3081,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ControlViewWalker(this: *mut core::ffi::c_void, walker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ControlViewWalker(this: *mut core::ffi::c_void, walker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ControlViewWalker(this) { Ok(ok__) => { @@ -3934,10 +3091,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContentViewWalker(this: *mut core::ffi::c_void, walker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ContentViewWalker(this: *mut core::ffi::c_void, walker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ContentViewWalker(this) { Ok(ok__) => { @@ -3947,10 +3101,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RawViewWalker(this: *mut core::ffi::c_void, walker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn RawViewWalker(this: *mut core::ffi::c_void, walker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::RawViewWalker(this) { Ok(ok__) => { @@ -3960,10 +3111,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RawViewCondition(this: *mut core::ffi::c_void, condition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn RawViewCondition(this: *mut core::ffi::c_void, condition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::RawViewCondition(this) { Ok(ok__) => { @@ -3973,10 +3121,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ControlViewCondition(this: *mut core::ffi::c_void, condition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ControlViewCondition(this: *mut core::ffi::c_void, condition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ControlViewCondition(this) { Ok(ok__) => { @@ -3986,10 +3131,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ContentViewCondition(this: *mut core::ffi::c_void, condition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ContentViewCondition(this: *mut core::ffi::c_void, condition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ContentViewCondition(this) { Ok(ok__) => { @@ -3999,10 +3141,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCacheRequest(this: *mut core::ffi::c_void, cacherequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateCacheRequest(this: *mut core::ffi::c_void, cacherequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateCacheRequest(this) { Ok(ok__) => { @@ -4012,10 +3151,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateTrueCondition(this: *mut core::ffi::c_void, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateTrueCondition(this: *mut core::ffi::c_void, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateTrueCondition(this) { Ok(ok__) => { @@ -4025,10 +3161,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateFalseCondition(this: *mut core::ffi::c_void, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateFalseCondition(this: *mut core::ffi::c_void, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateFalseCondition(this) { Ok(ok__) => { @@ -4038,10 +3171,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePropertyCondition(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, value: core::mem::MaybeUninit, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreatePropertyCondition(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, value: core::mem::MaybeUninit, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreatePropertyCondition(this, core::mem::transmute_copy(&propertyid), core::mem::transmute(&value)) { Ok(ok__) => { @@ -4051,10 +3181,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePropertyConditionEx(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, value: core::mem::MaybeUninit, flags: PropertyConditionFlags, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreatePropertyConditionEx(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, value: core::mem::MaybeUninit, flags: PropertyConditionFlags, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreatePropertyConditionEx(this, core::mem::transmute_copy(&propertyid), core::mem::transmute(&value), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4064,10 +3191,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAndCondition(this: *mut core::ffi::c_void, condition1: *mut core::ffi::c_void, condition2: *mut core::ffi::c_void, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateAndCondition(this: *mut core::ffi::c_void, condition1: *mut core::ffi::c_void, condition2: *mut core::ffi::c_void, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateAndCondition(this, windows_core::from_raw_borrowed(&condition1), windows_core::from_raw_borrowed(&condition2)) { Ok(ok__) => { @@ -4077,10 +3201,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAndConditionFromArray(this: *mut core::ffi::c_void, conditions: *const super::super::System::Com::SAFEARRAY, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateAndConditionFromArray(this: *mut core::ffi::c_void, conditions: *const super::super::System::Com::SAFEARRAY, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateAndConditionFromArray(this, core::mem::transmute_copy(&conditions)) { Ok(ok__) => { @@ -4090,10 +3211,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAndConditionFromNativeArray(this: *mut core::ffi::c_void, conditions: *const *mut core::ffi::c_void, conditioncount: i32, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateAndConditionFromNativeArray(this: *mut core::ffi::c_void, conditions: *const *mut core::ffi::c_void, conditioncount: i32, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateAndConditionFromNativeArray(this, core::mem::transmute_copy(&conditions), core::mem::transmute_copy(&conditioncount)) { Ok(ok__) => { @@ -4103,10 +3221,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateOrCondition(this: *mut core::ffi::c_void, condition1: *mut core::ffi::c_void, condition2: *mut core::ffi::c_void, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateOrCondition(this: *mut core::ffi::c_void, condition1: *mut core::ffi::c_void, condition2: *mut core::ffi::c_void, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateOrCondition(this, windows_core::from_raw_borrowed(&condition1), windows_core::from_raw_borrowed(&condition2)) { Ok(ok__) => { @@ -4116,10 +3231,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateOrConditionFromArray(this: *mut core::ffi::c_void, conditions: *const super::super::System::Com::SAFEARRAY, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateOrConditionFromArray(this: *mut core::ffi::c_void, conditions: *const super::super::System::Com::SAFEARRAY, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateOrConditionFromArray(this, core::mem::transmute_copy(&conditions)) { Ok(ok__) => { @@ -4129,10 +3241,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateOrConditionFromNativeArray(this: *mut core::ffi::c_void, conditions: *const *mut core::ffi::c_void, conditioncount: i32, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateOrConditionFromNativeArray(this: *mut core::ffi::c_void, conditions: *const *mut core::ffi::c_void, conditioncount: i32, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateOrConditionFromNativeArray(this, core::mem::transmute_copy(&conditions), core::mem::transmute_copy(&conditioncount)) { Ok(ok__) => { @@ -4142,10 +3251,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateNotCondition(this: *mut core::ffi::c_void, condition: *mut core::ffi::c_void, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateNotCondition(this: *mut core::ffi::c_void, condition: *mut core::ffi::c_void, newcondition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateNotCondition(this, windows_core::from_raw_borrowed(&condition)) { Ok(ok__) => { @@ -4155,80 +3261,47 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddAutomationEventHandler(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn AddAutomationEventHandler(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::AddAutomationEventHandler(this, core::mem::transmute_copy(&eventid), windows_core::from_raw_borrowed(&element), core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn RemoveAutomationEventHandler(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn RemoveAutomationEventHandler(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::RemoveAutomationEventHandler(this, core::mem::transmute_copy(&eventid), windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn AddPropertyChangedEventHandlerNativeArray(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, propertyarray: *const UIA_PROPERTY_ID, propertycount: i32) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn AddPropertyChangedEventHandlerNativeArray(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, propertyarray: *const UIA_PROPERTY_ID, propertycount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::AddPropertyChangedEventHandlerNativeArray(this, windows_core::from_raw_borrowed(&element), core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler), core::mem::transmute_copy(&propertyarray), core::mem::transmute_copy(&propertycount)).into() } - unsafe extern "system" fn AddPropertyChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, propertyarray: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn AddPropertyChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, propertyarray: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::AddPropertyChangedEventHandler(this, windows_core::from_raw_borrowed(&element), core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler), core::mem::transmute_copy(&propertyarray)).into() } - unsafe extern "system" fn RemovePropertyChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn RemovePropertyChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::RemovePropertyChangedEventHandler(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn AddStructureChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn AddStructureChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::AddStructureChangedEventHandler(this, windows_core::from_raw_borrowed(&element), core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn RemoveStructureChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn RemoveStructureChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::RemoveStructureChangedEventHandler(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn AddFocusChangedEventHandler(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn AddFocusChangedEventHandler(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::AddFocusChangedEventHandler(this, windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn RemoveFocusChangedEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn RemoveFocusChangedEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::RemoveFocusChangedEventHandler(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn RemoveAllEventHandlers(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn RemoveAllEventHandlers(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::RemoveAllEventHandlers(this).into() } - unsafe extern "system" fn IntNativeArrayToSafeArray(this: *mut core::ffi::c_void, array: *const i32, arraycount: i32, safearray: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn IntNativeArrayToSafeArray(this: *mut core::ffi::c_void, array: *const i32, arraycount: i32, safearray: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::IntNativeArrayToSafeArray(this, core::mem::transmute_copy(&array), core::mem::transmute_copy(&arraycount)) { Ok(ok__) => { @@ -4238,10 +3311,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IntSafeArrayToNativeArray(this: *mut core::ffi::c_void, intarray: *const super::super::System::Com::SAFEARRAY, array: *mut *mut i32, arraycount: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn IntSafeArrayToNativeArray(this: *mut core::ffi::c_void, intarray: *const super::super::System::Com::SAFEARRAY, array: *mut *mut i32, arraycount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::IntSafeArrayToNativeArray(this, core::mem::transmute_copy(&intarray), core::mem::transmute_copy(&array)) { Ok(ok__) => { @@ -4251,10 +3321,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RectToVariant(this: *mut core::ffi::c_void, rc: super::super::Foundation::RECT, var: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn RectToVariant(this: *mut core::ffi::c_void, rc: super::super::Foundation::RECT, var: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::RectToVariant(this, core::mem::transmute(&rc)) { Ok(ok__) => { @@ -4264,10 +3331,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VariantToRect(this: *mut core::ffi::c_void, var: core::mem::MaybeUninit, rc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn VariantToRect(this: *mut core::ffi::c_void, var: core::mem::MaybeUninit, rc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::VariantToRect(this, core::mem::transmute(&var)) { Ok(ok__) => { @@ -4277,10 +3341,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SafeArrayToRectNativeArray(this: *mut core::ffi::c_void, rects: *const super::super::System::Com::SAFEARRAY, rectarray: *mut *mut super::super::Foundation::RECT, rectarraycount: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn SafeArrayToRectNativeArray(this: *mut core::ffi::c_void, rects: *const super::super::System::Com::SAFEARRAY, rectarray: *mut *mut super::super::Foundation::RECT, rectarraycount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::SafeArrayToRectNativeArray(this, core::mem::transmute_copy(&rects), core::mem::transmute_copy(&rectarray)) { Ok(ok__) => { @@ -4290,10 +3351,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateProxyFactoryEntry(this: *mut core::ffi::c_void, factory: *mut core::ffi::c_void, factoryentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CreateProxyFactoryEntry(this: *mut core::ffi::c_void, factory: *mut core::ffi::c_void, factoryentry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CreateProxyFactoryEntry(this, windows_core::from_raw_borrowed(&factory)) { Ok(ok__) => { @@ -4303,10 +3361,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProxyFactoryMapping(this: *mut core::ffi::c_void, factorymapping: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ProxyFactoryMapping(this: *mut core::ffi::c_void, factorymapping: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ProxyFactoryMapping(this) { Ok(ok__) => { @@ -4316,10 +3371,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyProgrammaticName(this: *mut core::ffi::c_void, property: UIA_PROPERTY_ID, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn GetPropertyProgrammaticName(this: *mut core::ffi::c_void, property: UIA_PROPERTY_ID, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::GetPropertyProgrammaticName(this, core::mem::transmute_copy(&property)) { Ok(ok__) => { @@ -4329,10 +3381,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPatternProgrammaticName(this: *mut core::ffi::c_void, pattern: UIA_PATTERN_ID, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn GetPatternProgrammaticName(this: *mut core::ffi::c_void, pattern: UIA_PATTERN_ID, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::GetPatternProgrammaticName(this, core::mem::transmute_copy(&pattern)) { Ok(ok__) => { @@ -4342,24 +3391,15 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PollForPotentialSupportedPatterns(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 - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn PollForPotentialSupportedPatterns(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::PollForPotentialSupportedPatterns(this, windows_core::from_raw_borrowed(&pelement), core::mem::transmute_copy(&patternids), core::mem::transmute_copy(&patternnames)).into() } - unsafe extern "system" fn PollForPotentialSupportedProperties(this: *mut core::ffi::c_void, pelement: *mut core::ffi::c_void, propertyids: *mut *mut super::super::System::Com::SAFEARRAY, propertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn PollForPotentialSupportedProperties(this: *mut core::ffi::c_void, pelement: *mut core::ffi::c_void, propertyids: *mut *mut super::super::System::Com::SAFEARRAY, propertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation_Impl::PollForPotentialSupportedProperties(this, windows_core::from_raw_borrowed(&pelement), core::mem::transmute_copy(&propertyids), core::mem::transmute_copy(&propertynames)).into() } - unsafe extern "system" fn CheckNotSupported(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, isnotsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn CheckNotSupported(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, isnotsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CheckNotSupported(this, core::mem::transmute(&value)) { Ok(ok__) => { @@ -4369,10 +3409,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReservedNotSupportedValue(this: *mut core::ffi::c_void, notsupportedvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ReservedNotSupportedValue(this: *mut core::ffi::c_void, notsupportedvalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ReservedNotSupportedValue(this) { Ok(ok__) => { @@ -4382,10 +3419,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReservedMixedAttributeValue(this: *mut core::ffi::c_void, mixedattributevalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ReservedMixedAttributeValue(this: *mut core::ffi::c_void, mixedattributevalue: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ReservedMixedAttributeValue(this) { Ok(ok__) => { @@ -4395,10 +3429,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ElementFromIAccessible(this: *mut core::ffi::c_void, accessible: *mut core::ffi::c_void, childid: i32, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ElementFromIAccessible(this: *mut core::ffi::c_void, accessible: *mut core::ffi::c_void, childid: i32, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ElementFromIAccessible(this, windows_core::from_raw_borrowed(&accessible), core::mem::transmute_copy(&childid)) { Ok(ok__) => { @@ -4408,10 +3439,7 @@ impl IUIAutomation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ElementFromIAccessibleBuildCache(this: *mut core::ffi::c_void, accessible: *mut core::ffi::c_void, childid: i32, cacherequest: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation_Impl, - { + unsafe extern "system" fn ElementFromIAccessibleBuildCache(this: *mut core::ffi::c_void, accessible: *mut core::ffi::c_void, childid: i32, cacherequest: *mut core::ffi::c_void, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::ElementFromIAccessibleBuildCache(this, windows_core::from_raw_borrowed(&accessible), core::mem::transmute_copy(&childid), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -4497,14 +3525,8 @@ pub trait IUIAutomation2_Impl: Sized + IUIAutomation_Impl { impl windows_core::RuntimeName for IUIAutomation2 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomation2_Vtbl { - pub const fn new() -> IUIAutomation2_Vtbl - where - Identity: IUIAutomation2_Impl, - { - unsafe extern "system" fn AutoSetFocus(this: *mut core::ffi::c_void, autosetfocus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomation2_Impl, - { + pub const fn new() -> IUIAutomation2_Vtbl { + unsafe extern "system" fn AutoSetFocus(this: *mut core::ffi::c_void, autosetfocus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation2_Impl::AutoSetFocus(this) { Ok(ok__) => { @@ -4514,17 +3536,11 @@ impl IUIAutomation2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoSetFocus(this: *mut core::ffi::c_void, autosetfocus: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomation2_Impl, - { + unsafe extern "system" fn SetAutoSetFocus(this: *mut core::ffi::c_void, autosetfocus: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation2_Impl::SetAutoSetFocus(this, core::mem::transmute_copy(&autosetfocus)).into() } - unsafe extern "system" fn ConnectionTimeout(this: *mut core::ffi::c_void, timeout: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAutomation2_Impl, - { + unsafe extern "system" fn ConnectionTimeout(this: *mut core::ffi::c_void, timeout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation2_Impl::ConnectionTimeout(this) { Ok(ok__) => { @@ -4534,17 +3550,11 @@ impl IUIAutomation2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectionTimeout(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IUIAutomation2_Impl, - { + unsafe extern "system" fn SetConnectionTimeout(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation2_Impl::SetConnectionTimeout(this, core::mem::transmute_copy(&timeout)).into() } - unsafe extern "system" fn TransactionTimeout(this: *mut core::ffi::c_void, timeout: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAutomation2_Impl, - { + unsafe extern "system" fn TransactionTimeout(this: *mut core::ffi::c_void, timeout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation2_Impl::TransactionTimeout(this) { Ok(ok__) => { @@ -4554,10 +3564,7 @@ impl IUIAutomation2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransactionTimeout(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT - where - Identity: IUIAutomation2_Impl, - { + unsafe extern "system" fn SetTransactionTimeout(this: *mut core::ffi::c_void, timeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation2_Impl::SetTransactionTimeout(this, core::mem::transmute_copy(&timeout)).into() } @@ -4584,21 +3591,12 @@ pub trait IUIAutomation3_Impl: Sized + IUIAutomation2_Impl { impl windows_core::RuntimeName for IUIAutomation3 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomation3_Vtbl { - pub const fn new() -> IUIAutomation3_Vtbl - where - Identity: IUIAutomation3_Impl, - { - unsafe extern "system" fn AddTextEditTextChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation3_Impl, - { + pub const fn new() -> IUIAutomation3_Vtbl { + unsafe extern "system" fn AddTextEditTextChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation3_Impl::AddTextEditTextChangedEventHandler(this, windows_core::from_raw_borrowed(&element), core::mem::transmute_copy(&scope), core::mem::transmute_copy(&texteditchangetype), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn RemoveTextEditTextChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation3_Impl, - { + unsafe extern "system" fn RemoveTextEditTextChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation3_Impl::RemoveTextEditTextChangedEventHandler(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&handler)).into() } @@ -4621,21 +3619,12 @@ pub trait IUIAutomation4_Impl: Sized + IUIAutomation3_Impl { impl windows_core::RuntimeName for IUIAutomation4 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomation4_Vtbl { - pub const fn new() -> IUIAutomation4_Vtbl - where - Identity: IUIAutomation4_Impl, - { - unsafe extern "system" fn AddChangesEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, changetypes: *const i32, changescount: i32, pcacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation4_Impl, - { + pub const fn new() -> IUIAutomation4_Vtbl { + unsafe extern "system" fn AddChangesEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, changetypes: *const i32, changescount: i32, pcacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation4_Impl::AddChangesEventHandler(this, windows_core::from_raw_borrowed(&element), core::mem::transmute_copy(&scope), core::mem::transmute_copy(&changetypes), core::mem::transmute_copy(&changescount), windows_core::from_raw_borrowed(&pcacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn RemoveChangesEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation4_Impl, - { + unsafe extern "system" fn RemoveChangesEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation4_Impl::RemoveChangesEventHandler(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&handler)).into() } @@ -4658,21 +3647,12 @@ pub trait IUIAutomation5_Impl: Sized + IUIAutomation4_Impl { impl windows_core::RuntimeName for IUIAutomation5 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomation5_Vtbl { - pub const fn new() -> IUIAutomation5_Vtbl - where - Identity: IUIAutomation5_Impl, - { - unsafe extern "system" fn AddNotificationEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation5_Impl, - { + pub const fn new() -> IUIAutomation5_Vtbl { + unsafe extern "system" fn AddNotificationEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation5_Impl::AddNotificationEventHandler(this, windows_core::from_raw_borrowed(&element), core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn RemoveNotificationEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation5_Impl, - { + unsafe extern "system" fn RemoveNotificationEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation5_Impl::RemoveNotificationEventHandler(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&handler)).into() } @@ -4702,14 +3682,8 @@ pub trait IUIAutomation6_Impl: Sized + IUIAutomation5_Impl { impl windows_core::RuntimeName for IUIAutomation6 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomation6_Vtbl { - pub const fn new() -> IUIAutomation6_Vtbl - where - Identity: IUIAutomation6_Impl, - { - unsafe extern "system" fn CreateEventHandlerGroup(this: *mut core::ffi::c_void, handlergroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation6_Impl, - { + pub const fn new() -> IUIAutomation6_Vtbl { + unsafe extern "system" fn CreateEventHandlerGroup(this: *mut core::ffi::c_void, handlergroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation6_Impl::CreateEventHandlerGroup(this) { Ok(ok__) => { @@ -4719,24 +3693,15 @@ impl IUIAutomation6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddEventHandlerGroup(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handlergroup: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation6_Impl, - { + unsafe extern "system" fn AddEventHandlerGroup(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handlergroup: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation6_Impl::AddEventHandlerGroup(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&handlergroup)).into() } - unsafe extern "system" fn RemoveEventHandlerGroup(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handlergroup: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation6_Impl, - { + unsafe extern "system" fn RemoveEventHandlerGroup(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handlergroup: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation6_Impl::RemoveEventHandlerGroup(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&handlergroup)).into() } - unsafe extern "system" fn ConnectionRecoveryBehavior(this: *mut core::ffi::c_void, connectionrecoverybehavioroptions: *mut ConnectionRecoveryBehaviorOptions) -> windows_core::HRESULT - where - Identity: IUIAutomation6_Impl, - { + unsafe extern "system" fn ConnectionRecoveryBehavior(this: *mut core::ffi::c_void, connectionrecoverybehavioroptions: *mut ConnectionRecoveryBehaviorOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation6_Impl::ConnectionRecoveryBehavior(this) { Ok(ok__) => { @@ -4746,17 +3711,11 @@ impl IUIAutomation6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectionRecoveryBehavior(this: *mut core::ffi::c_void, connectionrecoverybehavioroptions: ConnectionRecoveryBehaviorOptions) -> windows_core::HRESULT - where - Identity: IUIAutomation6_Impl, - { + unsafe extern "system" fn SetConnectionRecoveryBehavior(this: *mut core::ffi::c_void, connectionrecoverybehavioroptions: ConnectionRecoveryBehaviorOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation6_Impl::SetConnectionRecoveryBehavior(this, core::mem::transmute_copy(&connectionrecoverybehavioroptions)).into() } - unsafe extern "system" fn CoalesceEvents(this: *mut core::ffi::c_void, coalesceeventsoptions: *mut CoalesceEventsOptions) -> windows_core::HRESULT - where - Identity: IUIAutomation6_Impl, - { + unsafe extern "system" fn CoalesceEvents(this: *mut core::ffi::c_void, coalesceeventsoptions: *mut CoalesceEventsOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation6_Impl::CoalesceEvents(this) { Ok(ok__) => { @@ -4766,24 +3725,15 @@ impl IUIAutomation6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCoalesceEvents(this: *mut core::ffi::c_void, coalesceeventsoptions: CoalesceEventsOptions) -> windows_core::HRESULT - where - Identity: IUIAutomation6_Impl, - { + unsafe extern "system" fn SetCoalesceEvents(this: *mut core::ffi::c_void, coalesceeventsoptions: CoalesceEventsOptions) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation6_Impl::SetCoalesceEvents(this, core::mem::transmute_copy(&coalesceeventsoptions)).into() } - unsafe extern "system" fn AddActiveTextPositionChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation6_Impl, - { + unsafe extern "system" fn AddActiveTextPositionChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation6_Impl::AddActiveTextPositionChangedEventHandler(this, windows_core::from_raw_borrowed(&element), core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn RemoveActiveTextPositionChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomation6_Impl, - { + unsafe extern "system" fn RemoveActiveTextPositionChangedEventHandler(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation6_Impl::RemoveActiveTextPositionChangedEventHandler(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&handler)).into() } @@ -4804,19 +3754,13 @@ impl IUIAutomation6_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IUIAutomationActiveTextPositionChangedEventHandler_Impl: Sized { +pub trait IUIAutomationActiveTextPositionChangedEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn HandleActiveTextPositionChangedEvent(&self, sender: Option<&IUIAutomationElement>, range: Option<&IUIAutomationTextRange>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationActiveTextPositionChangedEventHandler {} impl IUIAutomationActiveTextPositionChangedEventHandler_Vtbl { - pub const fn new() -> IUIAutomationActiveTextPositionChangedEventHandler_Vtbl - where - Identity: IUIAutomationActiveTextPositionChangedEventHandler_Impl, - { - unsafe extern "system" fn HandleActiveTextPositionChangedEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, range: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationActiveTextPositionChangedEventHandler_Impl, - { + pub const fn new() -> IUIAutomationActiveTextPositionChangedEventHandler_Vtbl { + unsafe extern "system" fn HandleActiveTextPositionChangedEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, range: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationActiveTextPositionChangedEventHandler_Impl::HandleActiveTextPositionChangedEvent(this, windows_core::from_raw_borrowed(&sender), windows_core::from_raw_borrowed(&range)).into() } @@ -4839,14 +3783,8 @@ pub trait IUIAutomationAndCondition_Impl: Sized + IUIAutomationCondition_Impl { impl windows_core::RuntimeName for IUIAutomationAndCondition {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationAndCondition_Vtbl { - pub const fn new() -> IUIAutomationAndCondition_Vtbl - where - Identity: IUIAutomationAndCondition_Impl, - { - unsafe extern "system" fn ChildCount(this: *mut core::ffi::c_void, childcount: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationAndCondition_Impl, - { + pub const fn new() -> IUIAutomationAndCondition_Vtbl { + unsafe extern "system" fn ChildCount(this: *mut core::ffi::c_void, childcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAndCondition_Impl::ChildCount(this) { Ok(ok__) => { @@ -4856,17 +3794,11 @@ impl IUIAutomationAndCondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChildrenAsNativeArray(this: *mut core::ffi::c_void, childarray: *mut *mut Option, childarraycount: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationAndCondition_Impl, - { + unsafe extern "system" fn GetChildrenAsNativeArray(this: *mut core::ffi::c_void, childarray: *mut *mut Option, childarraycount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationAndCondition_Impl::GetChildrenAsNativeArray(this, core::mem::transmute_copy(&childarray), core::mem::transmute_copy(&childarraycount)).into() } - unsafe extern "system" fn GetChildren(this: *mut core::ffi::c_void, childarray: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationAndCondition_Impl, - { + unsafe extern "system" fn GetChildren(this: *mut core::ffi::c_void, childarray: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAndCondition_Impl::GetChildren(this) { Ok(ok__) => { @@ -4887,7 +3819,7 @@ impl IUIAutomationAndCondition_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IUIAutomationAnnotationPattern_Impl: Sized { +pub trait IUIAutomationAnnotationPattern_Impl: Sized + windows_core::IUnknownImpl { fn CurrentAnnotationTypeId(&self) -> windows_core::Result; fn CurrentAnnotationTypeName(&self) -> windows_core::Result; fn CurrentAuthor(&self) -> windows_core::Result; @@ -4901,14 +3833,8 @@ pub trait IUIAutomationAnnotationPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationAnnotationPattern {} impl IUIAutomationAnnotationPattern_Vtbl { - pub const fn new() -> IUIAutomationAnnotationPattern_Vtbl - where - Identity: IUIAutomationAnnotationPattern_Impl, - { - unsafe extern "system" fn CurrentAnnotationTypeId(this: *mut core::ffi::c_void, retval: *mut UIA_ANNOTATIONTYPE) -> windows_core::HRESULT - where - Identity: IUIAutomationAnnotationPattern_Impl, - { + pub const fn new() -> IUIAutomationAnnotationPattern_Vtbl { + unsafe extern "system" fn CurrentAnnotationTypeId(this: *mut core::ffi::c_void, retval: *mut UIA_ANNOTATIONTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAnnotationPattern_Impl::CurrentAnnotationTypeId(this) { Ok(ok__) => { @@ -4918,10 +3844,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAnnotationTypeName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationAnnotationPattern_Impl, - { + unsafe extern "system" fn CurrentAnnotationTypeName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAnnotationPattern_Impl::CurrentAnnotationTypeName(this) { Ok(ok__) => { @@ -4931,10 +3854,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAuthor(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationAnnotationPattern_Impl, - { + unsafe extern "system" fn CurrentAuthor(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAnnotationPattern_Impl::CurrentAuthor(this) { Ok(ok__) => { @@ -4944,10 +3864,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDateTime(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationAnnotationPattern_Impl, - { + unsafe extern "system" fn CurrentDateTime(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAnnotationPattern_Impl::CurrentDateTime(this) { Ok(ok__) => { @@ -4957,10 +3874,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentTarget(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationAnnotationPattern_Impl, - { + unsafe extern "system" fn CurrentTarget(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAnnotationPattern_Impl::CurrentTarget(this) { Ok(ok__) => { @@ -4970,10 +3884,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedAnnotationTypeId(this: *mut core::ffi::c_void, retval: *mut UIA_ANNOTATIONTYPE) -> windows_core::HRESULT - where - Identity: IUIAutomationAnnotationPattern_Impl, - { + unsafe extern "system" fn CachedAnnotationTypeId(this: *mut core::ffi::c_void, retval: *mut UIA_ANNOTATIONTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAnnotationPattern_Impl::CachedAnnotationTypeId(this) { Ok(ok__) => { @@ -4983,10 +3894,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedAnnotationTypeName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationAnnotationPattern_Impl, - { + unsafe extern "system" fn CachedAnnotationTypeName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAnnotationPattern_Impl::CachedAnnotationTypeName(this) { Ok(ok__) => { @@ -4996,10 +3904,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedAuthor(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationAnnotationPattern_Impl, - { + unsafe extern "system" fn CachedAuthor(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAnnotationPattern_Impl::CachedAuthor(this) { Ok(ok__) => { @@ -5009,10 +3914,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedDateTime(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationAnnotationPattern_Impl, - { + unsafe extern "system" fn CachedDateTime(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAnnotationPattern_Impl::CachedDateTime(this) { Ok(ok__) => { @@ -5022,10 +3924,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedTarget(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationAnnotationPattern_Impl, - { + unsafe extern "system" fn CachedTarget(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationAnnotationPattern_Impl::CachedTarget(this) { Ok(ok__) => { @@ -5058,14 +3957,8 @@ pub trait IUIAutomationBoolCondition_Impl: Sized + IUIAutomationCondition_Impl { } impl windows_core::RuntimeName for IUIAutomationBoolCondition {} impl IUIAutomationBoolCondition_Vtbl { - pub const fn new() -> IUIAutomationBoolCondition_Vtbl - where - Identity: IUIAutomationBoolCondition_Impl, - { - unsafe extern "system" fn BooleanValue(this: *mut core::ffi::c_void, boolval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationBoolCondition_Impl, - { + pub const fn new() -> IUIAutomationBoolCondition_Vtbl { + unsafe extern "system" fn BooleanValue(this: *mut core::ffi::c_void, boolval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationBoolCondition_Impl::BooleanValue(this) { Ok(ok__) => { @@ -5081,7 +3974,7 @@ impl IUIAutomationBoolCondition_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IUIAutomationCacheRequest_Impl: Sized { +pub trait IUIAutomationCacheRequest_Impl: Sized + windows_core::IUnknownImpl { fn AddProperty(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result<()>; fn AddPattern(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result<()>; fn Clone(&self) -> windows_core::Result; @@ -5094,28 +3987,16 @@ pub trait IUIAutomationCacheRequest_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationCacheRequest {} impl IUIAutomationCacheRequest_Vtbl { - pub const fn new() -> IUIAutomationCacheRequest_Vtbl - where - Identity: IUIAutomationCacheRequest_Impl, - { - unsafe extern "system" fn AddProperty(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationCacheRequest_Impl, - { + pub const fn new() -> IUIAutomationCacheRequest_Vtbl { + unsafe extern "system" fn AddProperty(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationCacheRequest_Impl::AddProperty(this, core::mem::transmute_copy(&propertyid)).into() } - unsafe extern "system" fn AddPattern(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationCacheRequest_Impl, - { + unsafe extern "system" fn AddPattern(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationCacheRequest_Impl::AddPattern(this, core::mem::transmute_copy(&patternid)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, clonedrequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationCacheRequest_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, clonedrequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationCacheRequest_Impl::Clone(this) { Ok(ok__) => { @@ -5125,10 +4006,7 @@ impl IUIAutomationCacheRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TreeScope(this: *mut core::ffi::c_void, scope: *mut TreeScope) -> windows_core::HRESULT - where - Identity: IUIAutomationCacheRequest_Impl, - { + unsafe extern "system" fn TreeScope(this: *mut core::ffi::c_void, scope: *mut TreeScope) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationCacheRequest_Impl::TreeScope(this) { Ok(ok__) => { @@ -5138,17 +4016,11 @@ impl IUIAutomationCacheRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTreeScope(this: *mut core::ffi::c_void, scope: TreeScope) -> windows_core::HRESULT - where - Identity: IUIAutomationCacheRequest_Impl, - { + unsafe extern "system" fn SetTreeScope(this: *mut core::ffi::c_void, scope: TreeScope) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationCacheRequest_Impl::SetTreeScope(this, core::mem::transmute_copy(&scope)).into() } - unsafe extern "system" fn TreeFilter(this: *mut core::ffi::c_void, filter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationCacheRequest_Impl, - { + unsafe extern "system" fn TreeFilter(this: *mut core::ffi::c_void, filter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationCacheRequest_Impl::TreeFilter(this) { Ok(ok__) => { @@ -5158,17 +4030,11 @@ impl IUIAutomationCacheRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTreeFilter(this: *mut core::ffi::c_void, filter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationCacheRequest_Impl, - { + unsafe extern "system" fn SetTreeFilter(this: *mut core::ffi::c_void, filter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationCacheRequest_Impl::SetTreeFilter(this, windows_core::from_raw_borrowed(&filter)).into() } - unsafe extern "system" fn AutomationElementMode(this: *mut core::ffi::c_void, mode: *mut AutomationElementMode) -> windows_core::HRESULT - where - Identity: IUIAutomationCacheRequest_Impl, - { + unsafe extern "system" fn AutomationElementMode(this: *mut core::ffi::c_void, mode: *mut AutomationElementMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationCacheRequest_Impl::AutomationElementMode(this) { Ok(ok__) => { @@ -5178,10 +4044,7 @@ impl IUIAutomationCacheRequest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutomationElementMode(this: *mut core::ffi::c_void, mode: AutomationElementMode) -> windows_core::HRESULT - where - Identity: IUIAutomationCacheRequest_Impl, - { + unsafe extern "system" fn SetAutomationElementMode(this: *mut core::ffi::c_void, mode: AutomationElementMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationCacheRequest_Impl::SetAutomationElementMode(this, core::mem::transmute_copy(&mode)).into() } @@ -5202,19 +4065,13 @@ impl IUIAutomationCacheRequest_Vtbl { iid == &::IID } } -pub trait IUIAutomationChangesEventHandler_Impl: Sized { +pub trait IUIAutomationChangesEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn HandleChangesEvent(&self, sender: Option<&IUIAutomationElement>, uiachanges: *const UiaChangeInfo, changescount: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationChangesEventHandler {} impl IUIAutomationChangesEventHandler_Vtbl { - pub const fn new() -> IUIAutomationChangesEventHandler_Vtbl - where - Identity: IUIAutomationChangesEventHandler_Impl, - { - unsafe extern "system" fn HandleChangesEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, uiachanges: *const UiaChangeInfo, changescount: i32) -> windows_core::HRESULT - where - Identity: IUIAutomationChangesEventHandler_Impl, - { + pub const fn new() -> IUIAutomationChangesEventHandler_Vtbl { + unsafe extern "system" fn HandleChangesEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, uiachanges: *const UiaChangeInfo, changescount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationChangesEventHandler_Impl::HandleChangesEvent(this, windows_core::from_raw_borrowed(&sender), core::mem::transmute_copy(&uiachanges), core::mem::transmute_copy(&changescount)).into() } @@ -5224,32 +4081,23 @@ impl IUIAutomationChangesEventHandler_Vtbl { iid == &::IID } } -pub trait IUIAutomationCondition_Impl: Sized {} +pub trait IUIAutomationCondition_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IUIAutomationCondition {} impl IUIAutomationCondition_Vtbl { - pub const fn new() -> IUIAutomationCondition_Vtbl - where - Identity: IUIAutomationCondition_Impl, - { + pub const fn new() -> IUIAutomationCondition_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID } } -pub trait IUIAutomationCustomNavigationPattern_Impl: Sized { +pub trait IUIAutomationCustomNavigationPattern_Impl: Sized + windows_core::IUnknownImpl { fn Navigate(&self, direction: NavigateDirection) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAutomationCustomNavigationPattern {} impl IUIAutomationCustomNavigationPattern_Vtbl { - pub const fn new() -> IUIAutomationCustomNavigationPattern_Vtbl - where - Identity: IUIAutomationCustomNavigationPattern_Impl, - { - unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, direction: NavigateDirection, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationCustomNavigationPattern_Impl, - { + pub const fn new() -> IUIAutomationCustomNavigationPattern_Vtbl { + unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, direction: NavigateDirection, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationCustomNavigationPattern_Impl::Navigate(this, core::mem::transmute_copy(&direction)) { Ok(ok__) => { @@ -5265,28 +4113,19 @@ impl IUIAutomationCustomNavigationPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationDockPattern_Impl: Sized { +pub trait IUIAutomationDockPattern_Impl: Sized + windows_core::IUnknownImpl { fn SetDockPosition(&self, dockpos: DockPosition) -> windows_core::Result<()>; fn CurrentDockPosition(&self) -> windows_core::Result; fn CachedDockPosition(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAutomationDockPattern {} impl IUIAutomationDockPattern_Vtbl { - pub const fn new() -> IUIAutomationDockPattern_Vtbl - where - Identity: IUIAutomationDockPattern_Impl, - { - unsafe extern "system" fn SetDockPosition(this: *mut core::ffi::c_void, dockpos: DockPosition) -> windows_core::HRESULT - where - Identity: IUIAutomationDockPattern_Impl, - { + pub const fn new() -> IUIAutomationDockPattern_Vtbl { + unsafe extern "system" fn SetDockPosition(this: *mut core::ffi::c_void, dockpos: DockPosition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationDockPattern_Impl::SetDockPosition(this, core::mem::transmute_copy(&dockpos)).into() } - unsafe extern "system" fn CurrentDockPosition(this: *mut core::ffi::c_void, retval: *mut DockPosition) -> windows_core::HRESULT - where - Identity: IUIAutomationDockPattern_Impl, - { + unsafe extern "system" fn CurrentDockPosition(this: *mut core::ffi::c_void, retval: *mut DockPosition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDockPattern_Impl::CurrentDockPosition(this) { Ok(ok__) => { @@ -5296,10 +4135,7 @@ impl IUIAutomationDockPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedDockPosition(this: *mut core::ffi::c_void, retval: *mut DockPosition) -> windows_core::HRESULT - where - Identity: IUIAutomationDockPattern_Impl, - { + unsafe extern "system" fn CachedDockPosition(this: *mut core::ffi::c_void, retval: *mut DockPosition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDockPattern_Impl::CachedDockPosition(this) { Ok(ok__) => { @@ -5321,7 +4157,7 @@ impl IUIAutomationDockPattern_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationDragPattern_Impl: Sized { +pub trait IUIAutomationDragPattern_Impl: Sized + windows_core::IUnknownImpl { fn CurrentIsGrabbed(&self) -> windows_core::Result; fn CachedIsGrabbed(&self) -> windows_core::Result; fn CurrentDropEffect(&self) -> windows_core::Result; @@ -5335,14 +4171,8 @@ pub trait IUIAutomationDragPattern_Impl: Sized { impl windows_core::RuntimeName for IUIAutomationDragPattern {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationDragPattern_Vtbl { - pub const fn new() -> IUIAutomationDragPattern_Vtbl - where - Identity: IUIAutomationDragPattern_Impl, - { - unsafe extern "system" fn CurrentIsGrabbed(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationDragPattern_Impl, - { + pub const fn new() -> IUIAutomationDragPattern_Vtbl { + unsafe extern "system" fn CurrentIsGrabbed(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDragPattern_Impl::CurrentIsGrabbed(this) { Ok(ok__) => { @@ -5352,10 +4182,7 @@ impl IUIAutomationDragPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsGrabbed(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationDragPattern_Impl, - { + unsafe extern "system" fn CachedIsGrabbed(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDragPattern_Impl::CachedIsGrabbed(this) { Ok(ok__) => { @@ -5365,10 +4192,7 @@ impl IUIAutomationDragPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDropEffect(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationDragPattern_Impl, - { + unsafe extern "system" fn CurrentDropEffect(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDragPattern_Impl::CurrentDropEffect(this) { Ok(ok__) => { @@ -5378,10 +4202,7 @@ impl IUIAutomationDragPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedDropEffect(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationDragPattern_Impl, - { + unsafe extern "system" fn CachedDropEffect(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDragPattern_Impl::CachedDropEffect(this) { Ok(ok__) => { @@ -5391,10 +4212,7 @@ impl IUIAutomationDragPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDropEffects(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationDragPattern_Impl, - { + unsafe extern "system" fn CurrentDropEffects(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDragPattern_Impl::CurrentDropEffects(this) { Ok(ok__) => { @@ -5404,10 +4222,7 @@ impl IUIAutomationDragPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedDropEffects(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationDragPattern_Impl, - { + unsafe extern "system" fn CachedDropEffects(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDragPattern_Impl::CachedDropEffects(this) { Ok(ok__) => { @@ -5417,10 +4232,7 @@ impl IUIAutomationDragPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentGrabbedItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationDragPattern_Impl, - { + unsafe extern "system" fn GetCurrentGrabbedItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDragPattern_Impl::GetCurrentGrabbedItems(this) { Ok(ok__) => { @@ -5430,10 +4242,7 @@ impl IUIAutomationDragPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedGrabbedItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationDragPattern_Impl, - { + unsafe extern "system" fn GetCachedGrabbedItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDragPattern_Impl::GetCachedGrabbedItems(this) { Ok(ok__) => { @@ -5460,7 +4269,7 @@ impl IUIAutomationDragPattern_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationDropTargetPattern_Impl: Sized { +pub trait IUIAutomationDropTargetPattern_Impl: Sized + windows_core::IUnknownImpl { fn CurrentDropTargetEffect(&self) -> windows_core::Result; fn CachedDropTargetEffect(&self) -> windows_core::Result; fn CurrentDropTargetEffects(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -5470,14 +4279,8 @@ pub trait IUIAutomationDropTargetPattern_Impl: Sized { impl windows_core::RuntimeName for IUIAutomationDropTargetPattern {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationDropTargetPattern_Vtbl { - pub const fn new() -> IUIAutomationDropTargetPattern_Vtbl - where - Identity: IUIAutomationDropTargetPattern_Impl, - { - unsafe extern "system" fn CurrentDropTargetEffect(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationDropTargetPattern_Impl, - { + pub const fn new() -> IUIAutomationDropTargetPattern_Vtbl { + unsafe extern "system" fn CurrentDropTargetEffect(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDropTargetPattern_Impl::CurrentDropTargetEffect(this) { Ok(ok__) => { @@ -5487,10 +4290,7 @@ impl IUIAutomationDropTargetPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedDropTargetEffect(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationDropTargetPattern_Impl, - { + unsafe extern "system" fn CachedDropTargetEffect(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDropTargetPattern_Impl::CachedDropTargetEffect(this) { Ok(ok__) => { @@ -5500,10 +4300,7 @@ impl IUIAutomationDropTargetPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDropTargetEffects(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationDropTargetPattern_Impl, - { + unsafe extern "system" fn CurrentDropTargetEffects(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDropTargetPattern_Impl::CurrentDropTargetEffects(this) { Ok(ok__) => { @@ -5513,10 +4310,7 @@ impl IUIAutomationDropTargetPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedDropTargetEffects(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationDropTargetPattern_Impl, - { + unsafe extern "system" fn CachedDropTargetEffects(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDropTargetPattern_Impl::CachedDropTargetEffects(this) { Ok(ok__) => { @@ -5539,7 +4333,7 @@ impl IUIAutomationDropTargetPattern_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationElement_Impl: Sized { +pub trait IUIAutomationElement_Impl: Sized + windows_core::IUnknownImpl { fn SetFocus(&self) -> windows_core::Result<()>; fn GetRuntimeId(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn FindFirst(&self, scope: TreeScope, condition: Option<&IUIAutomationCondition>) -> windows_core::Result; @@ -5627,21 +4421,12 @@ pub trait IUIAutomationElement_Impl: Sized { impl windows_core::RuntimeName for IUIAutomationElement {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationElement_Vtbl { - pub const fn new() -> IUIAutomationElement_Vtbl - where - Identity: IUIAutomationElement_Impl, - { - unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + pub const fn new() -> IUIAutomationElement_Vtbl { + unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationElement_Impl::SetFocus(this).into() } - unsafe extern "system" fn GetRuntimeId(this: *mut core::ffi::c_void, runtimeid: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetRuntimeId(this: *mut core::ffi::c_void, runtimeid: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetRuntimeId(this) { Ok(ok__) => { @@ -5651,10 +4436,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn FindFirst(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::FindFirst(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&condition)) { Ok(ok__) => { @@ -5664,10 +4446,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindAll(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn FindAll(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::FindAll(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&condition)) { Ok(ok__) => { @@ -5677,10 +4456,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstBuildCache(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn FindFirstBuildCache(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::FindFirstBuildCache(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&condition), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -5690,10 +4466,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindAllBuildCache(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn FindAllBuildCache(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::FindAllBuildCache(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&condition), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -5703,10 +4476,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BuildUpdatedCache(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, updatedelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn BuildUpdatedCache(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, updatedelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::BuildUpdatedCache(this, windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -5716,10 +4486,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentPropertyValue(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetCurrentPropertyValue(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetCurrentPropertyValue(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -5729,10 +4496,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentPropertyValueEx(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: super::super::Foundation::BOOL, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetCurrentPropertyValueEx(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: super::super::Foundation::BOOL, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetCurrentPropertyValueEx(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&ignoredefaultvalue)) { Ok(ok__) => { @@ -5742,10 +4506,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedPropertyValue(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetCachedPropertyValue(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetCachedPropertyValue(this, core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -5755,10 +4516,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedPropertyValueEx(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: super::super::Foundation::BOOL, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetCachedPropertyValueEx(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: super::super::Foundation::BOOL, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetCachedPropertyValueEx(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&ignoredefaultvalue)) { Ok(ok__) => { @@ -5768,24 +4526,15 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentPatternAs(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID, riid: *const windows_core::GUID, patternobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetCurrentPatternAs(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID, riid: *const windows_core::GUID, patternobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationElement_Impl::GetCurrentPatternAs(this, core::mem::transmute_copy(&patternid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&patternobject)).into() } - unsafe extern "system" fn GetCachedPatternAs(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID, riid: *const windows_core::GUID, patternobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetCachedPatternAs(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID, riid: *const windows_core::GUID, patternobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationElement_Impl::GetCachedPatternAs(this, core::mem::transmute_copy(&patternid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&patternobject)).into() } - unsafe extern "system" fn GetCurrentPattern(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID, patternobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetCurrentPattern(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID, patternobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetCurrentPattern(this, core::mem::transmute_copy(&patternid)) { Ok(ok__) => { @@ -5795,10 +4544,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedPattern(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID, patternobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetCachedPattern(this: *mut core::ffi::c_void, patternid: UIA_PATTERN_ID, patternobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetCachedPattern(this, core::mem::transmute_copy(&patternid)) { Ok(ok__) => { @@ -5808,10 +4554,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedParent(this: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetCachedParent(this: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetCachedParent(this) { Ok(ok__) => { @@ -5821,10 +4564,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedChildren(this: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetCachedChildren(this: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetCachedChildren(this) { Ok(ok__) => { @@ -5834,10 +4574,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentProcessId(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentProcessId(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentProcessId(this) { Ok(ok__) => { @@ -5847,10 +4584,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentControlType(this: *mut core::ffi::c_void, retval: *mut UIA_CONTROLTYPE_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentControlType(this: *mut core::ffi::c_void, retval: *mut UIA_CONTROLTYPE_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentControlType(this) { Ok(ok__) => { @@ -5860,10 +4594,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentLocalizedControlType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentLocalizedControlType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentLocalizedControlType(this) { Ok(ok__) => { @@ -5873,10 +4604,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentName(this) { Ok(ok__) => { @@ -5886,10 +4614,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAcceleratorKey(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentAcceleratorKey(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentAcceleratorKey(this) { Ok(ok__) => { @@ -5899,10 +4624,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAccessKey(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentAccessKey(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentAccessKey(this) { Ok(ok__) => { @@ -5912,10 +4634,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentHasKeyboardFocus(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentHasKeyboardFocus(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentHasKeyboardFocus(this) { Ok(ok__) => { @@ -5925,10 +4644,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsKeyboardFocusable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentIsKeyboardFocusable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsKeyboardFocusable(this) { Ok(ok__) => { @@ -5938,10 +4654,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsEnabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentIsEnabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsEnabled(this) { Ok(ok__) => { @@ -5951,10 +4664,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAutomationId(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentAutomationId(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentAutomationId(this) { Ok(ok__) => { @@ -5964,10 +4674,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentClassName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentClassName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentClassName(this) { Ok(ok__) => { @@ -5977,10 +4684,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentHelpText(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentHelpText(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentHelpText(this) { Ok(ok__) => { @@ -5990,10 +4694,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentCulture(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentCulture(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentCulture(this) { Ok(ok__) => { @@ -6003,10 +4704,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsControlElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentIsControlElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsControlElement(this) { Ok(ok__) => { @@ -6016,10 +4714,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsContentElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentIsContentElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsContentElement(this) { Ok(ok__) => { @@ -6029,10 +4724,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsPassword(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentIsPassword(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsPassword(this) { Ok(ok__) => { @@ -6042,10 +4734,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentNativeWindowHandle(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentNativeWindowHandle(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentNativeWindowHandle(this) { Ok(ok__) => { @@ -6055,10 +4744,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentItemType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentItemType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentItemType(this) { Ok(ok__) => { @@ -6068,10 +4754,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsOffscreen(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentIsOffscreen(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsOffscreen(this) { Ok(ok__) => { @@ -6081,10 +4764,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentOrientation(this: *mut core::ffi::c_void, retval: *mut OrientationType) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentOrientation(this: *mut core::ffi::c_void, retval: *mut OrientationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentOrientation(this) { Ok(ok__) => { @@ -6094,10 +4774,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentFrameworkId(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentFrameworkId(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentFrameworkId(this) { Ok(ok__) => { @@ -6107,10 +4784,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsRequiredForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentIsRequiredForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsRequiredForForm(this) { Ok(ok__) => { @@ -6120,10 +4794,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentItemStatus(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentItemStatus(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentItemStatus(this) { Ok(ok__) => { @@ -6133,10 +4804,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentBoundingRectangle(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentBoundingRectangle(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentBoundingRectangle(this) { Ok(ok__) => { @@ -6146,10 +4814,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentLabeledBy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentLabeledBy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentLabeledBy(this) { Ok(ok__) => { @@ -6159,10 +4824,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAriaRole(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentAriaRole(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentAriaRole(this) { Ok(ok__) => { @@ -6172,10 +4834,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAriaProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentAriaProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentAriaProperties(this) { Ok(ok__) => { @@ -6185,10 +4844,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsDataValidForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentIsDataValidForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsDataValidForForm(this) { Ok(ok__) => { @@ -6198,10 +4854,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentControllerFor(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentControllerFor(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentControllerFor(this) { Ok(ok__) => { @@ -6211,10 +4864,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDescribedBy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentDescribedBy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentDescribedBy(this) { Ok(ok__) => { @@ -6224,10 +4874,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentFlowsTo(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentFlowsTo(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentFlowsTo(this) { Ok(ok__) => { @@ -6237,10 +4884,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentProviderDescription(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CurrentProviderDescription(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentProviderDescription(this) { Ok(ok__) => { @@ -6250,10 +4894,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedProcessId(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedProcessId(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedProcessId(this) { Ok(ok__) => { @@ -6263,10 +4904,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedControlType(this: *mut core::ffi::c_void, retval: *mut UIA_CONTROLTYPE_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedControlType(this: *mut core::ffi::c_void, retval: *mut UIA_CONTROLTYPE_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedControlType(this) { Ok(ok__) => { @@ -6276,10 +4914,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedLocalizedControlType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedLocalizedControlType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedLocalizedControlType(this) { Ok(ok__) => { @@ -6289,10 +4924,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedName(this) { Ok(ok__) => { @@ -6302,10 +4934,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedAcceleratorKey(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedAcceleratorKey(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedAcceleratorKey(this) { Ok(ok__) => { @@ -6315,10 +4944,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedAccessKey(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedAccessKey(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedAccessKey(this) { Ok(ok__) => { @@ -6328,10 +4954,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedHasKeyboardFocus(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedHasKeyboardFocus(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedHasKeyboardFocus(this) { Ok(ok__) => { @@ -6341,10 +4964,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsKeyboardFocusable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedIsKeyboardFocusable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsKeyboardFocusable(this) { Ok(ok__) => { @@ -6354,10 +4974,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsEnabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedIsEnabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsEnabled(this) { Ok(ok__) => { @@ -6367,10 +4984,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedAutomationId(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedAutomationId(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedAutomationId(this) { Ok(ok__) => { @@ -6380,10 +4994,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedClassName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedClassName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedClassName(this) { Ok(ok__) => { @@ -6393,10 +5004,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedHelpText(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedHelpText(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedHelpText(this) { Ok(ok__) => { @@ -6406,10 +5014,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedCulture(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedCulture(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedCulture(this) { Ok(ok__) => { @@ -6419,10 +5024,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsControlElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedIsControlElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsControlElement(this) { Ok(ok__) => { @@ -6432,10 +5034,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsContentElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedIsContentElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsContentElement(this) { Ok(ok__) => { @@ -6445,10 +5044,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsPassword(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedIsPassword(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsPassword(this) { Ok(ok__) => { @@ -6458,10 +5054,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedNativeWindowHandle(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedNativeWindowHandle(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedNativeWindowHandle(this) { Ok(ok__) => { @@ -6471,10 +5064,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedItemType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedItemType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedItemType(this) { Ok(ok__) => { @@ -6484,10 +5074,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsOffscreen(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedIsOffscreen(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsOffscreen(this) { Ok(ok__) => { @@ -6497,10 +5084,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedOrientation(this: *mut core::ffi::c_void, retval: *mut OrientationType) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedOrientation(this: *mut core::ffi::c_void, retval: *mut OrientationType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedOrientation(this) { Ok(ok__) => { @@ -6510,10 +5094,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedFrameworkId(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedFrameworkId(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedFrameworkId(this) { Ok(ok__) => { @@ -6523,10 +5104,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsRequiredForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedIsRequiredForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsRequiredForForm(this) { Ok(ok__) => { @@ -6536,10 +5114,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedItemStatus(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedItemStatus(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedItemStatus(this) { Ok(ok__) => { @@ -6549,10 +5124,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedBoundingRectangle(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedBoundingRectangle(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedBoundingRectangle(this) { Ok(ok__) => { @@ -6562,10 +5134,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedLabeledBy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedLabeledBy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedLabeledBy(this) { Ok(ok__) => { @@ -6575,10 +5144,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedAriaRole(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedAriaRole(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedAriaRole(this) { Ok(ok__) => { @@ -6588,10 +5154,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedAriaProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedAriaProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedAriaProperties(this) { Ok(ok__) => { @@ -6601,10 +5164,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsDataValidForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedIsDataValidForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsDataValidForForm(this) { Ok(ok__) => { @@ -6614,10 +5174,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedControllerFor(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedControllerFor(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedControllerFor(this) { Ok(ok__) => { @@ -6627,10 +5184,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedDescribedBy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedDescribedBy(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedDescribedBy(this) { Ok(ok__) => { @@ -6640,10 +5194,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedFlowsTo(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedFlowsTo(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedFlowsTo(this) { Ok(ok__) => { @@ -6653,10 +5204,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedProviderDescription(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn CachedProviderDescription(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedProviderDescription(this) { Ok(ok__) => { @@ -6666,10 +5214,7 @@ impl IUIAutomationElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClickablePoint(this: *mut core::ffi::c_void, clickable: *mut super::super::Foundation::POINT, gotclickable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement_Impl, - { + unsafe extern "system" fn GetClickablePoint(this: *mut core::ffi::c_void, clickable: *mut super::super::Foundation::POINT, gotclickable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetClickablePoint(this, core::mem::transmute_copy(&clickable)) { Ok(ok__) => { @@ -6782,14 +5327,8 @@ pub trait IUIAutomationElement2_Impl: Sized + IUIAutomationElement_Impl { impl windows_core::RuntimeName for IUIAutomationElement2 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationElement2_Vtbl { - pub const fn new() -> IUIAutomationElement2_Vtbl - where - Identity: IUIAutomationElement2_Impl, - { - unsafe extern "system" fn CurrentOptimizeForVisualContent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement2_Impl, - { + pub const fn new() -> IUIAutomationElement2_Vtbl { + unsafe extern "system" fn CurrentOptimizeForVisualContent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement2_Impl::CurrentOptimizeForVisualContent(this) { Ok(ok__) => { @@ -6799,10 +5338,7 @@ impl IUIAutomationElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedOptimizeForVisualContent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement2_Impl, - { + unsafe extern "system" fn CachedOptimizeForVisualContent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement2_Impl::CachedOptimizeForVisualContent(this) { Ok(ok__) => { @@ -6812,10 +5348,7 @@ impl IUIAutomationElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentLiveSetting(this: *mut core::ffi::c_void, retval: *mut LiveSetting) -> windows_core::HRESULT - where - Identity: IUIAutomationElement2_Impl, - { + unsafe extern "system" fn CurrentLiveSetting(this: *mut core::ffi::c_void, retval: *mut LiveSetting) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement2_Impl::CurrentLiveSetting(this) { Ok(ok__) => { @@ -6825,10 +5358,7 @@ impl IUIAutomationElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedLiveSetting(this: *mut core::ffi::c_void, retval: *mut LiveSetting) -> windows_core::HRESULT - where - Identity: IUIAutomationElement2_Impl, - { + unsafe extern "system" fn CachedLiveSetting(this: *mut core::ffi::c_void, retval: *mut LiveSetting) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement2_Impl::CachedLiveSetting(this) { Ok(ok__) => { @@ -6838,10 +5368,7 @@ impl IUIAutomationElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentFlowsFrom(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement2_Impl, - { + unsafe extern "system" fn CurrentFlowsFrom(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement2_Impl::CurrentFlowsFrom(this) { Ok(ok__) => { @@ -6851,10 +5378,7 @@ impl IUIAutomationElement2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedFlowsFrom(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement2_Impl, - { + unsafe extern "system" fn CachedFlowsFrom(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement2_Impl::CachedFlowsFrom(this) { Ok(ok__) => { @@ -6888,21 +5412,12 @@ pub trait IUIAutomationElement3_Impl: Sized + IUIAutomationElement2_Impl { impl windows_core::RuntimeName for IUIAutomationElement3 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationElement3_Vtbl { - pub const fn new() -> IUIAutomationElement3_Vtbl - where - Identity: IUIAutomationElement3_Impl, - { - unsafe extern "system" fn ShowContextMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement3_Impl, - { + pub const fn new() -> IUIAutomationElement3_Vtbl { + unsafe extern "system" fn ShowContextMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationElement3_Impl::ShowContextMenu(this).into() } - unsafe extern "system" fn CurrentIsPeripheral(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement3_Impl, - { + unsafe extern "system" fn CurrentIsPeripheral(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement3_Impl::CurrentIsPeripheral(this) { Ok(ok__) => { @@ -6912,10 +5427,7 @@ impl IUIAutomationElement3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsPeripheral(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement3_Impl, - { + unsafe extern "system" fn CachedIsPeripheral(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement3_Impl::CachedIsPeripheral(this) { Ok(ok__) => { @@ -6953,14 +5465,8 @@ pub trait IUIAutomationElement4_Impl: Sized + IUIAutomationElement3_Impl { impl windows_core::RuntimeName for IUIAutomationElement4 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationElement4_Vtbl { - pub const fn new() -> IUIAutomationElement4_Vtbl - where - Identity: IUIAutomationElement4_Impl, - { - unsafe extern "system" fn CurrentPositionInSet(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElement4_Impl, - { + pub const fn new() -> IUIAutomationElement4_Vtbl { + unsafe extern "system" fn CurrentPositionInSet(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement4_Impl::CurrentPositionInSet(this) { Ok(ok__) => { @@ -6970,10 +5476,7 @@ impl IUIAutomationElement4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentSizeOfSet(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElement4_Impl, - { + unsafe extern "system" fn CurrentSizeOfSet(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement4_Impl::CurrentSizeOfSet(this) { Ok(ok__) => { @@ -6983,10 +5486,7 @@ impl IUIAutomationElement4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentLevel(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElement4_Impl, - { + unsafe extern "system" fn CurrentLevel(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement4_Impl::CurrentLevel(this) { Ok(ok__) => { @@ -6996,10 +5496,7 @@ impl IUIAutomationElement4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAnnotationTypes(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationElement4_Impl, - { + unsafe extern "system" fn CurrentAnnotationTypes(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement4_Impl::CurrentAnnotationTypes(this) { Ok(ok__) => { @@ -7009,10 +5506,7 @@ impl IUIAutomationElement4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAnnotationObjects(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement4_Impl, - { + unsafe extern "system" fn CurrentAnnotationObjects(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement4_Impl::CurrentAnnotationObjects(this) { Ok(ok__) => { @@ -7022,10 +5516,7 @@ impl IUIAutomationElement4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedPositionInSet(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElement4_Impl, - { + unsafe extern "system" fn CachedPositionInSet(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement4_Impl::CachedPositionInSet(this) { Ok(ok__) => { @@ -7035,10 +5526,7 @@ impl IUIAutomationElement4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedSizeOfSet(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElement4_Impl, - { + unsafe extern "system" fn CachedSizeOfSet(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement4_Impl::CachedSizeOfSet(this) { Ok(ok__) => { @@ -7048,10 +5536,7 @@ impl IUIAutomationElement4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedLevel(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElement4_Impl, - { + unsafe extern "system" fn CachedLevel(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement4_Impl::CachedLevel(this) { Ok(ok__) => { @@ -7061,10 +5546,7 @@ impl IUIAutomationElement4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedAnnotationTypes(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationElement4_Impl, - { + unsafe extern "system" fn CachedAnnotationTypes(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement4_Impl::CachedAnnotationTypes(this) { Ok(ok__) => { @@ -7074,10 +5556,7 @@ impl IUIAutomationElement4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedAnnotationObjects(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement4_Impl, - { + unsafe extern "system" fn CachedAnnotationObjects(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement4_Impl::CachedAnnotationObjects(this) { Ok(ok__) => { @@ -7116,14 +5595,8 @@ pub trait IUIAutomationElement5_Impl: Sized + IUIAutomationElement4_Impl { impl windows_core::RuntimeName for IUIAutomationElement5 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationElement5_Vtbl { - pub const fn new() -> IUIAutomationElement5_Vtbl - where - Identity: IUIAutomationElement5_Impl, - { - unsafe extern "system" fn CurrentLandmarkType(this: *mut core::ffi::c_void, retval: *mut UIA_LANDMARKTYPE_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationElement5_Impl, - { + pub const fn new() -> IUIAutomationElement5_Vtbl { + unsafe extern "system" fn CurrentLandmarkType(this: *mut core::ffi::c_void, retval: *mut UIA_LANDMARKTYPE_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement5_Impl::CurrentLandmarkType(this) { Ok(ok__) => { @@ -7133,10 +5606,7 @@ impl IUIAutomationElement5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentLocalizedLandmarkType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement5_Impl, - { + unsafe extern "system" fn CurrentLocalizedLandmarkType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement5_Impl::CurrentLocalizedLandmarkType(this) { Ok(ok__) => { @@ -7146,10 +5616,7 @@ impl IUIAutomationElement5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedLandmarkType(this: *mut core::ffi::c_void, retval: *mut UIA_LANDMARKTYPE_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationElement5_Impl, - { + unsafe extern "system" fn CachedLandmarkType(this: *mut core::ffi::c_void, retval: *mut UIA_LANDMARKTYPE_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement5_Impl::CachedLandmarkType(this) { Ok(ok__) => { @@ -7159,10 +5626,7 @@ impl IUIAutomationElement5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedLocalizedLandmarkType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement5_Impl, - { + unsafe extern "system" fn CachedLocalizedLandmarkType(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement5_Impl::CachedLocalizedLandmarkType(this) { Ok(ok__) => { @@ -7193,14 +5657,8 @@ pub trait IUIAutomationElement6_Impl: Sized + IUIAutomationElement5_Impl { impl windows_core::RuntimeName for IUIAutomationElement6 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationElement6_Vtbl { - pub const fn new() -> IUIAutomationElement6_Vtbl - where - Identity: IUIAutomationElement6_Impl, - { - unsafe extern "system" fn CurrentFullDescription(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement6_Impl, - { + pub const fn new() -> IUIAutomationElement6_Vtbl { + unsafe extern "system" fn CurrentFullDescription(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement6_Impl::CurrentFullDescription(this) { Ok(ok__) => { @@ -7210,10 +5668,7 @@ impl IUIAutomationElement6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedFullDescription(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement6_Impl, - { + unsafe extern "system" fn CachedFullDescription(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement6_Impl::CachedFullDescription(this) { Ok(ok__) => { @@ -7245,14 +5700,8 @@ pub trait IUIAutomationElement7_Impl: Sized + IUIAutomationElement6_Impl { impl windows_core::RuntimeName for IUIAutomationElement7 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationElement7_Vtbl { - pub const fn new() -> IUIAutomationElement7_Vtbl - where - Identity: IUIAutomationElement7_Impl, - { - unsafe extern "system" fn FindFirstWithOptions(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, traversaloptions: TreeTraversalOptions, root: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement7_Impl, - { + pub const fn new() -> IUIAutomationElement7_Vtbl { + unsafe extern "system" fn FindFirstWithOptions(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, traversaloptions: TreeTraversalOptions, root: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement7_Impl::FindFirstWithOptions(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&condition), core::mem::transmute_copy(&traversaloptions), windows_core::from_raw_borrowed(&root)) { Ok(ok__) => { @@ -7262,10 +5711,7 @@ impl IUIAutomationElement7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindAllWithOptions(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, traversaloptions: TreeTraversalOptions, root: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement7_Impl, - { + unsafe extern "system" fn FindAllWithOptions(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, traversaloptions: TreeTraversalOptions, root: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement7_Impl::FindAllWithOptions(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&condition), core::mem::transmute_copy(&traversaloptions), windows_core::from_raw_borrowed(&root)) { Ok(ok__) => { @@ -7275,10 +5721,7 @@ impl IUIAutomationElement7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFirstWithOptionsBuildCache(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, traversaloptions: TreeTraversalOptions, root: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement7_Impl, - { + unsafe extern "system" fn FindFirstWithOptionsBuildCache(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, traversaloptions: TreeTraversalOptions, root: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement7_Impl::FindFirstWithOptionsBuildCache(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&condition), windows_core::from_raw_borrowed(&cacherequest), core::mem::transmute_copy(&traversaloptions), windows_core::from_raw_borrowed(&root)) { Ok(ok__) => { @@ -7288,10 +5731,7 @@ impl IUIAutomationElement7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindAllWithOptionsBuildCache(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, traversaloptions: TreeTraversalOptions, root: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElement7_Impl, - { + unsafe extern "system" fn FindAllWithOptionsBuildCache(this: *mut core::ffi::c_void, scope: TreeScope, condition: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, traversaloptions: TreeTraversalOptions, root: *mut core::ffi::c_void, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement7_Impl::FindAllWithOptionsBuildCache(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&condition), windows_core::from_raw_borrowed(&cacherequest), core::mem::transmute_copy(&traversaloptions), windows_core::from_raw_borrowed(&root)) { Ok(ok__) => { @@ -7301,10 +5741,7 @@ impl IUIAutomationElement7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentMetadataValue(this: *mut core::ffi::c_void, targetid: i32, metadataid: UIA_METADATA_ID, returnval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationElement7_Impl, - { + unsafe extern "system" fn GetCurrentMetadataValue(this: *mut core::ffi::c_void, targetid: i32, metadataid: UIA_METADATA_ID, returnval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement7_Impl::GetCurrentMetadataValue(this, core::mem::transmute_copy(&targetid), core::mem::transmute_copy(&metadataid)) { Ok(ok__) => { @@ -7336,14 +5773,8 @@ pub trait IUIAutomationElement8_Impl: Sized + IUIAutomationElement7_Impl { impl windows_core::RuntimeName for IUIAutomationElement8 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationElement8_Vtbl { - pub const fn new() -> IUIAutomationElement8_Vtbl - where - Identity: IUIAutomationElement8_Impl, - { - unsafe extern "system" fn CurrentHeadingLevel(this: *mut core::ffi::c_void, retval: *mut UIA_HEADINGLEVEL_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationElement8_Impl, - { + pub const fn new() -> IUIAutomationElement8_Vtbl { + unsafe extern "system" fn CurrentHeadingLevel(this: *mut core::ffi::c_void, retval: *mut UIA_HEADINGLEVEL_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement8_Impl::CurrentHeadingLevel(this) { Ok(ok__) => { @@ -7353,10 +5784,7 @@ impl IUIAutomationElement8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedHeadingLevel(this: *mut core::ffi::c_void, retval: *mut UIA_HEADINGLEVEL_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationElement8_Impl, - { + unsafe extern "system" fn CachedHeadingLevel(this: *mut core::ffi::c_void, retval: *mut UIA_HEADINGLEVEL_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement8_Impl::CachedHeadingLevel(this) { Ok(ok__) => { @@ -7385,14 +5813,8 @@ pub trait IUIAutomationElement9_Impl: Sized + IUIAutomationElement8_Impl { impl windows_core::RuntimeName for IUIAutomationElement9 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationElement9_Vtbl { - pub const fn new() -> IUIAutomationElement9_Vtbl - where - Identity: IUIAutomationElement9_Impl, - { - unsafe extern "system" fn CurrentIsDialog(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement9_Impl, - { + pub const fn new() -> IUIAutomationElement9_Vtbl { + unsafe extern "system" fn CurrentIsDialog(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement9_Impl::CurrentIsDialog(this) { Ok(ok__) => { @@ -7402,10 +5824,7 @@ impl IUIAutomationElement9_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsDialog(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationElement9_Impl, - { + unsafe extern "system" fn CachedIsDialog(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement9_Impl::CachedIsDialog(this) { Ok(ok__) => { @@ -7425,20 +5844,14 @@ impl IUIAutomationElement9_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IUIAutomationElementArray_Impl: Sized { +pub trait IUIAutomationElementArray_Impl: Sized + windows_core::IUnknownImpl { fn Length(&self) -> windows_core::Result; fn GetElement(&self, index: i32) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAutomationElementArray {} impl IUIAutomationElementArray_Vtbl { - pub const fn new() -> IUIAutomationElementArray_Vtbl - where - Identity: IUIAutomationElementArray_Impl, - { - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationElementArray_Impl, - { + pub const fn new() -> IUIAutomationElementArray_Vtbl { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElementArray_Impl::Length(this) { Ok(ok__) => { @@ -7448,10 +5861,7 @@ impl IUIAutomationElementArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetElement(this: *mut core::ffi::c_void, index: i32, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationElementArray_Impl, - { + unsafe extern "system" fn GetElement(this: *mut core::ffi::c_void, index: i32, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElementArray_Impl::GetElement(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -7467,19 +5877,13 @@ impl IUIAutomationElementArray_Vtbl { iid == &::IID } } -pub trait IUIAutomationEventHandler_Impl: Sized { +pub trait IUIAutomationEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn HandleAutomationEvent(&self, sender: Option<&IUIAutomationElement>, eventid: UIA_EVENT_ID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationEventHandler {} impl IUIAutomationEventHandler_Vtbl { - pub const fn new() -> IUIAutomationEventHandler_Vtbl - where - Identity: IUIAutomationEventHandler_Impl, - { - unsafe extern "system" fn HandleAutomationEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, eventid: UIA_EVENT_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationEventHandler_Impl, - { + pub const fn new() -> IUIAutomationEventHandler_Vtbl { + unsafe extern "system" fn HandleAutomationEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, eventid: UIA_EVENT_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationEventHandler_Impl::HandleAutomationEvent(this, windows_core::from_raw_borrowed(&sender), core::mem::transmute_copy(&eventid)).into() } @@ -7489,7 +5893,7 @@ impl IUIAutomationEventHandler_Vtbl { iid == &::IID } } -pub trait IUIAutomationEventHandlerGroup_Impl: Sized { +pub trait IUIAutomationEventHandlerGroup_Impl: Sized + windows_core::IUnknownImpl { fn AddActiveTextPositionChangedEventHandler(&self, scope: TreeScope, cacherequest: Option<&IUIAutomationCacheRequest>, handler: Option<&IUIAutomationActiveTextPositionChangedEventHandler>) -> windows_core::Result<()>; fn AddAutomationEventHandler(&self, eventid: UIA_EVENT_ID, scope: TreeScope, cacherequest: Option<&IUIAutomationCacheRequest>, handler: Option<&IUIAutomationEventHandler>) -> windows_core::Result<()>; fn AddChangesEventHandler(&self, scope: TreeScope, changetypes: *const i32, changescount: i32, cacherequest: Option<&IUIAutomationCacheRequest>, handler: Option<&IUIAutomationChangesEventHandler>) -> windows_core::Result<()>; @@ -7500,56 +5904,32 @@ pub trait IUIAutomationEventHandlerGroup_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationEventHandlerGroup {} impl IUIAutomationEventHandlerGroup_Vtbl { - pub const fn new() -> IUIAutomationEventHandlerGroup_Vtbl - where - Identity: IUIAutomationEventHandlerGroup_Impl, - { - unsafe extern "system" fn AddActiveTextPositionChangedEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationEventHandlerGroup_Impl, - { + pub const fn new() -> IUIAutomationEventHandlerGroup_Vtbl { + unsafe extern "system" fn AddActiveTextPositionChangedEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationEventHandlerGroup_Impl::AddActiveTextPositionChangedEventHandler(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn AddAutomationEventHandler(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationEventHandlerGroup_Impl, - { + unsafe extern "system" fn AddAutomationEventHandler(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationEventHandlerGroup_Impl::AddAutomationEventHandler(this, core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn AddChangesEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, changetypes: *const i32, changescount: i32, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationEventHandlerGroup_Impl, - { + unsafe extern "system" fn AddChangesEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, changetypes: *const i32, changescount: i32, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationEventHandlerGroup_Impl::AddChangesEventHandler(this, core::mem::transmute_copy(&scope), core::mem::transmute_copy(&changetypes), core::mem::transmute_copy(&changescount), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn AddNotificationEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationEventHandlerGroup_Impl, - { + unsafe extern "system" fn AddNotificationEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationEventHandlerGroup_Impl::AddNotificationEventHandler(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn AddPropertyChangedEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, propertyarray: *const UIA_PROPERTY_ID, propertycount: i32) -> windows_core::HRESULT - where - Identity: IUIAutomationEventHandlerGroup_Impl, - { + unsafe extern "system" fn AddPropertyChangedEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, propertyarray: *const UIA_PROPERTY_ID, propertycount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationEventHandlerGroup_Impl::AddPropertyChangedEventHandler(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler), core::mem::transmute_copy(&propertyarray), core::mem::transmute_copy(&propertycount)).into() } - unsafe extern "system" fn AddStructureChangedEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationEventHandlerGroup_Impl, - { + unsafe extern "system" fn AddStructureChangedEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationEventHandlerGroup_Impl::AddStructureChangedEventHandler(this, core::mem::transmute_copy(&scope), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn AddTextEditTextChangedEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationEventHandlerGroup_Impl, - { + unsafe extern "system" fn AddTextEditTextChangedEventHandler(this: *mut core::ffi::c_void, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationEventHandlerGroup_Impl::AddTextEditTextChangedEventHandler(this, core::mem::transmute_copy(&scope), core::mem::transmute_copy(&texteditchangetype), windows_core::from_raw_borrowed(&cacherequest), windows_core::from_raw_borrowed(&handler)).into() } @@ -7568,7 +5948,7 @@ impl IUIAutomationEventHandlerGroup_Vtbl { iid == &::IID } } -pub trait IUIAutomationExpandCollapsePattern_Impl: Sized { +pub trait IUIAutomationExpandCollapsePattern_Impl: Sized + windows_core::IUnknownImpl { fn Expand(&self) -> windows_core::Result<()>; fn Collapse(&self) -> windows_core::Result<()>; fn CurrentExpandCollapseState(&self) -> windows_core::Result; @@ -7576,28 +5956,16 @@ pub trait IUIAutomationExpandCollapsePattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationExpandCollapsePattern {} impl IUIAutomationExpandCollapsePattern_Vtbl { - pub const fn new() -> IUIAutomationExpandCollapsePattern_Vtbl - where - Identity: IUIAutomationExpandCollapsePattern_Impl, - { - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationExpandCollapsePattern_Impl, - { + pub const fn new() -> IUIAutomationExpandCollapsePattern_Vtbl { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationExpandCollapsePattern_Impl::Expand(this).into() } - unsafe extern "system" fn Collapse(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationExpandCollapsePattern_Impl, - { + unsafe extern "system" fn Collapse(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationExpandCollapsePattern_Impl::Collapse(this).into() } - unsafe extern "system" fn CurrentExpandCollapseState(this: *mut core::ffi::c_void, retval: *mut ExpandCollapseState) -> windows_core::HRESULT - where - Identity: IUIAutomationExpandCollapsePattern_Impl, - { + unsafe extern "system" fn CurrentExpandCollapseState(this: *mut core::ffi::c_void, retval: *mut ExpandCollapseState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationExpandCollapsePattern_Impl::CurrentExpandCollapseState(this) { Ok(ok__) => { @@ -7607,10 +5975,7 @@ impl IUIAutomationExpandCollapsePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedExpandCollapseState(this: *mut core::ffi::c_void, retval: *mut ExpandCollapseState) -> windows_core::HRESULT - where - Identity: IUIAutomationExpandCollapsePattern_Impl, - { + unsafe extern "system" fn CachedExpandCollapseState(this: *mut core::ffi::c_void, retval: *mut ExpandCollapseState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationExpandCollapsePattern_Impl::CachedExpandCollapseState(this) { Ok(ok__) => { @@ -7632,19 +5997,13 @@ impl IUIAutomationExpandCollapsePattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationFocusChangedEventHandler_Impl: Sized { +pub trait IUIAutomationFocusChangedEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn HandleFocusChangedEvent(&self, sender: Option<&IUIAutomationElement>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationFocusChangedEventHandler {} impl IUIAutomationFocusChangedEventHandler_Vtbl { - pub const fn new() -> IUIAutomationFocusChangedEventHandler_Vtbl - where - Identity: IUIAutomationFocusChangedEventHandler_Impl, - { - unsafe extern "system" fn HandleFocusChangedEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationFocusChangedEventHandler_Impl, - { + pub const fn new() -> IUIAutomationFocusChangedEventHandler_Vtbl { + unsafe extern "system" fn HandleFocusChangedEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationFocusChangedEventHandler_Impl::HandleFocusChangedEvent(this, windows_core::from_raw_borrowed(&sender)).into() } @@ -7654,7 +6013,7 @@ impl IUIAutomationFocusChangedEventHandler_Vtbl { iid == &::IID } } -pub trait IUIAutomationGridItemPattern_Impl: Sized { +pub trait IUIAutomationGridItemPattern_Impl: Sized + windows_core::IUnknownImpl { fn CurrentContainingGrid(&self) -> windows_core::Result; fn CurrentRow(&self) -> windows_core::Result; fn CurrentColumn(&self) -> windows_core::Result; @@ -7668,14 +6027,8 @@ pub trait IUIAutomationGridItemPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationGridItemPattern {} impl IUIAutomationGridItemPattern_Vtbl { - pub const fn new() -> IUIAutomationGridItemPattern_Vtbl - where - Identity: IUIAutomationGridItemPattern_Impl, - { - unsafe extern "system" fn CurrentContainingGrid(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationGridItemPattern_Impl, - { + pub const fn new() -> IUIAutomationGridItemPattern_Vtbl { + unsafe extern "system" fn CurrentContainingGrid(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridItemPattern_Impl::CurrentContainingGrid(this) { Ok(ok__) => { @@ -7685,10 +6038,7 @@ impl IUIAutomationGridItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentRow(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridItemPattern_Impl, - { + unsafe extern "system" fn CurrentRow(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridItemPattern_Impl::CurrentRow(this) { Ok(ok__) => { @@ -7698,10 +6048,7 @@ impl IUIAutomationGridItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentColumn(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridItemPattern_Impl, - { + unsafe extern "system" fn CurrentColumn(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridItemPattern_Impl::CurrentColumn(this) { Ok(ok__) => { @@ -7711,10 +6058,7 @@ impl IUIAutomationGridItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentRowSpan(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridItemPattern_Impl, - { + unsafe extern "system" fn CurrentRowSpan(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridItemPattern_Impl::CurrentRowSpan(this) { Ok(ok__) => { @@ -7724,10 +6068,7 @@ impl IUIAutomationGridItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentColumnSpan(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridItemPattern_Impl, - { + unsafe extern "system" fn CurrentColumnSpan(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridItemPattern_Impl::CurrentColumnSpan(this) { Ok(ok__) => { @@ -7737,10 +6078,7 @@ impl IUIAutomationGridItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedContainingGrid(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationGridItemPattern_Impl, - { + unsafe extern "system" fn CachedContainingGrid(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridItemPattern_Impl::CachedContainingGrid(this) { Ok(ok__) => { @@ -7750,10 +6088,7 @@ impl IUIAutomationGridItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedRow(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridItemPattern_Impl, - { + unsafe extern "system" fn CachedRow(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridItemPattern_Impl::CachedRow(this) { Ok(ok__) => { @@ -7763,10 +6098,7 @@ impl IUIAutomationGridItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedColumn(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridItemPattern_Impl, - { + unsafe extern "system" fn CachedColumn(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridItemPattern_Impl::CachedColumn(this) { Ok(ok__) => { @@ -7776,10 +6108,7 @@ impl IUIAutomationGridItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedRowSpan(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridItemPattern_Impl, - { + unsafe extern "system" fn CachedRowSpan(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridItemPattern_Impl::CachedRowSpan(this) { Ok(ok__) => { @@ -7789,10 +6118,7 @@ impl IUIAutomationGridItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedColumnSpan(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridItemPattern_Impl, - { + unsafe extern "system" fn CachedColumnSpan(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridItemPattern_Impl::CachedColumnSpan(this) { Ok(ok__) => { @@ -7820,7 +6146,7 @@ impl IUIAutomationGridItemPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationGridPattern_Impl: Sized { +pub trait IUIAutomationGridPattern_Impl: Sized + windows_core::IUnknownImpl { fn GetItem(&self, row: i32, column: i32) -> windows_core::Result; fn CurrentRowCount(&self) -> windows_core::Result; fn CurrentColumnCount(&self) -> windows_core::Result; @@ -7829,14 +6155,8 @@ pub trait IUIAutomationGridPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationGridPattern {} impl IUIAutomationGridPattern_Vtbl { - pub const fn new() -> IUIAutomationGridPattern_Vtbl - where - Identity: IUIAutomationGridPattern_Impl, - { - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, row: i32, column: i32, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationGridPattern_Impl, - { + pub const fn new() -> IUIAutomationGridPattern_Vtbl { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, row: i32, column: i32, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridPattern_Impl::GetItem(this, core::mem::transmute_copy(&row), core::mem::transmute_copy(&column)) { Ok(ok__) => { @@ -7846,10 +6166,7 @@ impl IUIAutomationGridPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentRowCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridPattern_Impl, - { + unsafe extern "system" fn CurrentRowCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridPattern_Impl::CurrentRowCount(this) { Ok(ok__) => { @@ -7859,10 +6176,7 @@ impl IUIAutomationGridPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentColumnCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridPattern_Impl, - { + unsafe extern "system" fn CurrentColumnCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridPattern_Impl::CurrentColumnCount(this) { Ok(ok__) => { @@ -7872,10 +6186,7 @@ impl IUIAutomationGridPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedRowCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridPattern_Impl, - { + unsafe extern "system" fn CachedRowCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridPattern_Impl::CachedRowCount(this) { Ok(ok__) => { @@ -7885,10 +6196,7 @@ impl IUIAutomationGridPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedColumnCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationGridPattern_Impl, - { + unsafe extern "system" fn CachedColumnCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationGridPattern_Impl::CachedColumnCount(this) { Ok(ok__) => { @@ -7911,19 +6219,13 @@ impl IUIAutomationGridPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationInvokePattern_Impl: Sized { +pub trait IUIAutomationInvokePattern_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationInvokePattern {} impl IUIAutomationInvokePattern_Vtbl { - pub const fn new() -> IUIAutomationInvokePattern_Vtbl - where - Identity: IUIAutomationInvokePattern_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationInvokePattern_Impl, - { + pub const fn new() -> IUIAutomationInvokePattern_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationInvokePattern_Impl::Invoke(this).into() } @@ -7933,19 +6235,13 @@ impl IUIAutomationInvokePattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationItemContainerPattern_Impl: Sized { +pub trait IUIAutomationItemContainerPattern_Impl: Sized + windows_core::IUnknownImpl { fn FindItemByProperty(&self, pstartafter: Option<&IUIAutomationElement>, propertyid: UIA_PROPERTY_ID, value: &windows_core::VARIANT) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAutomationItemContainerPattern {} impl IUIAutomationItemContainerPattern_Vtbl { - pub const fn new() -> IUIAutomationItemContainerPattern_Vtbl - where - Identity: IUIAutomationItemContainerPattern_Impl, - { - unsafe extern "system" fn FindItemByProperty(this: *mut core::ffi::c_void, pstartafter: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, value: core::mem::MaybeUninit, pfound: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationItemContainerPattern_Impl, - { + pub const fn new() -> IUIAutomationItemContainerPattern_Vtbl { + unsafe extern "system" fn FindItemByProperty(this: *mut core::ffi::c_void, pstartafter: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, value: core::mem::MaybeUninit, pfound: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationItemContainerPattern_Impl::FindItemByProperty(this, windows_core::from_raw_borrowed(&pstartafter), core::mem::transmute_copy(&propertyid), core::mem::transmute(&value)) { Ok(ok__) => { @@ -7962,7 +6258,7 @@ impl IUIAutomationItemContainerPattern_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationLegacyIAccessiblePattern_Impl: Sized { +pub trait IUIAutomationLegacyIAccessiblePattern_Impl: Sized + windows_core::IUnknownImpl { fn Select(&self, flagsselect: i32) -> windows_core::Result<()>; fn DoDefaultAction(&self) -> windows_core::Result<()>; fn SetValue(&self, szvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -7992,35 +6288,20 @@ pub trait IUIAutomationLegacyIAccessiblePattern_Impl: Sized { impl windows_core::RuntimeName for IUIAutomationLegacyIAccessiblePattern {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationLegacyIAccessiblePattern_Vtbl { - pub const fn new() -> IUIAutomationLegacyIAccessiblePattern_Vtbl - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { - unsafe extern "system" fn Select(this: *mut core::ffi::c_void, flagsselect: i32) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + pub const fn new() -> IUIAutomationLegacyIAccessiblePattern_Vtbl { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void, flagsselect: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationLegacyIAccessiblePattern_Impl::Select(this, core::mem::transmute_copy(&flagsselect)).into() } - unsafe extern "system" fn DoDefaultAction(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn DoDefaultAction(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationLegacyIAccessiblePattern_Impl::DoDefaultAction(this).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, szvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, szvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationLegacyIAccessiblePattern_Impl::SetValue(this, core::mem::transmute(&szvalue)).into() } - unsafe extern "system" fn CurrentChildId(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CurrentChildId(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CurrentChildId(this) { Ok(ok__) => { @@ -8030,10 +6311,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentName(this: *mut core::ffi::c_void, pszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CurrentName(this: *mut core::ffi::c_void, pszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CurrentName(this) { Ok(ok__) => { @@ -8043,10 +6321,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentValue(this: *mut core::ffi::c_void, pszvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CurrentValue(this: *mut core::ffi::c_void, pszvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CurrentValue(this) { Ok(ok__) => { @@ -8056,10 +6331,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDescription(this: *mut core::ffi::c_void, pszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CurrentDescription(this: *mut core::ffi::c_void, pszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CurrentDescription(this) { Ok(ok__) => { @@ -8069,10 +6341,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentRole(this: *mut core::ffi::c_void, pdwrole: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CurrentRole(this: *mut core::ffi::c_void, pdwrole: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CurrentRole(this) { Ok(ok__) => { @@ -8082,10 +6351,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CurrentState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CurrentState(this) { Ok(ok__) => { @@ -8095,10 +6361,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentHelp(this: *mut core::ffi::c_void, pszhelp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CurrentHelp(this: *mut core::ffi::c_void, pszhelp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CurrentHelp(this) { Ok(ok__) => { @@ -8108,10 +6371,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentKeyboardShortcut(this: *mut core::ffi::c_void, pszkeyboardshortcut: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CurrentKeyboardShortcut(this: *mut core::ffi::c_void, pszkeyboardshortcut: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CurrentKeyboardShortcut(this) { Ok(ok__) => { @@ -8121,10 +6381,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSelection(this: *mut core::ffi::c_void, pvarselectedchildren: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn GetCurrentSelection(this: *mut core::ffi::c_void, pvarselectedchildren: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::GetCurrentSelection(this) { Ok(ok__) => { @@ -8134,10 +6391,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDefaultAction(this: *mut core::ffi::c_void, pszdefaultaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CurrentDefaultAction(this: *mut core::ffi::c_void, pszdefaultaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CurrentDefaultAction(this) { Ok(ok__) => { @@ -8147,10 +6401,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedChildId(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CachedChildId(this: *mut core::ffi::c_void, pretval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CachedChildId(this) { Ok(ok__) => { @@ -8160,10 +6411,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedName(this: *mut core::ffi::c_void, pszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CachedName(this: *mut core::ffi::c_void, pszname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CachedName(this) { Ok(ok__) => { @@ -8173,10 +6421,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedValue(this: *mut core::ffi::c_void, pszvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CachedValue(this: *mut core::ffi::c_void, pszvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CachedValue(this) { Ok(ok__) => { @@ -8186,10 +6431,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedDescription(this: *mut core::ffi::c_void, pszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CachedDescription(this: *mut core::ffi::c_void, pszdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CachedDescription(this) { Ok(ok__) => { @@ -8199,10 +6441,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedRole(this: *mut core::ffi::c_void, pdwrole: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CachedRole(this: *mut core::ffi::c_void, pdwrole: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CachedRole(this) { Ok(ok__) => { @@ -8212,10 +6451,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CachedState(this: *mut core::ffi::c_void, pdwstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CachedState(this) { Ok(ok__) => { @@ -8225,10 +6461,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedHelp(this: *mut core::ffi::c_void, pszhelp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CachedHelp(this: *mut core::ffi::c_void, pszhelp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CachedHelp(this) { Ok(ok__) => { @@ -8238,10 +6471,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedKeyboardShortcut(this: *mut core::ffi::c_void, pszkeyboardshortcut: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CachedKeyboardShortcut(this: *mut core::ffi::c_void, pszkeyboardshortcut: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CachedKeyboardShortcut(this) { Ok(ok__) => { @@ -8251,10 +6481,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedSelection(this: *mut core::ffi::c_void, pvarselectedchildren: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn GetCachedSelection(this: *mut core::ffi::c_void, pvarselectedchildren: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::GetCachedSelection(this) { Ok(ok__) => { @@ -8264,10 +6491,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedDefaultAction(this: *mut core::ffi::c_void, pszdefaultaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn CachedDefaultAction(this: *mut core::ffi::c_void, pszdefaultaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::CachedDefaultAction(this) { Ok(ok__) => { @@ -8277,10 +6501,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIAccessible(this: *mut core::ffi::c_void, ppaccessible: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationLegacyIAccessiblePattern_Impl, - { + unsafe extern "system" fn GetIAccessible(this: *mut core::ffi::c_void, ppaccessible: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationLegacyIAccessiblePattern_Impl::GetIAccessible(this) { Ok(ok__) => { @@ -8323,7 +6544,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationMultipleViewPattern_Impl: Sized { +pub trait IUIAutomationMultipleViewPattern_Impl: Sized + windows_core::IUnknownImpl { fn GetViewName(&self, view: i32) -> windows_core::Result; fn SetCurrentView(&self, view: i32) -> windows_core::Result<()>; fn CurrentCurrentView(&self) -> windows_core::Result; @@ -8335,14 +6556,8 @@ pub trait IUIAutomationMultipleViewPattern_Impl: Sized { impl windows_core::RuntimeName for IUIAutomationMultipleViewPattern {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationMultipleViewPattern_Vtbl { - pub const fn new() -> IUIAutomationMultipleViewPattern_Vtbl - where - Identity: IUIAutomationMultipleViewPattern_Impl, - { - unsafe extern "system" fn GetViewName(this: *mut core::ffi::c_void, view: i32, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationMultipleViewPattern_Impl, - { + pub const fn new() -> IUIAutomationMultipleViewPattern_Vtbl { + unsafe extern "system" fn GetViewName(this: *mut core::ffi::c_void, view: i32, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationMultipleViewPattern_Impl::GetViewName(this, core::mem::transmute_copy(&view)) { Ok(ok__) => { @@ -8352,17 +6567,11 @@ impl IUIAutomationMultipleViewPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentView(this: *mut core::ffi::c_void, view: i32) -> windows_core::HRESULT - where - Identity: IUIAutomationMultipleViewPattern_Impl, - { + unsafe extern "system" fn SetCurrentView(this: *mut core::ffi::c_void, view: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationMultipleViewPattern_Impl::SetCurrentView(this, core::mem::transmute_copy(&view)).into() } - unsafe extern "system" fn CurrentCurrentView(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationMultipleViewPattern_Impl, - { + unsafe extern "system" fn CurrentCurrentView(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationMultipleViewPattern_Impl::CurrentCurrentView(this) { Ok(ok__) => { @@ -8372,10 +6581,7 @@ impl IUIAutomationMultipleViewPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSupportedViews(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationMultipleViewPattern_Impl, - { + unsafe extern "system" fn GetCurrentSupportedViews(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationMultipleViewPattern_Impl::GetCurrentSupportedViews(this) { Ok(ok__) => { @@ -8385,10 +6591,7 @@ impl IUIAutomationMultipleViewPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedCurrentView(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationMultipleViewPattern_Impl, - { + unsafe extern "system" fn CachedCurrentView(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationMultipleViewPattern_Impl::CachedCurrentView(this) { Ok(ok__) => { @@ -8398,10 +6601,7 @@ impl IUIAutomationMultipleViewPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedSupportedViews(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationMultipleViewPattern_Impl, - { + unsafe extern "system" fn GetCachedSupportedViews(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationMultipleViewPattern_Impl::GetCachedSupportedViews(this) { Ok(ok__) => { @@ -8430,14 +6630,8 @@ pub trait IUIAutomationNotCondition_Impl: Sized + IUIAutomationCondition_Impl { } impl windows_core::RuntimeName for IUIAutomationNotCondition {} impl IUIAutomationNotCondition_Vtbl { - pub const fn new() -> IUIAutomationNotCondition_Vtbl - where - Identity: IUIAutomationNotCondition_Impl, - { - unsafe extern "system" fn GetChild(this: *mut core::ffi::c_void, condition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationNotCondition_Impl, - { + pub const fn new() -> IUIAutomationNotCondition_Vtbl { + unsafe extern "system" fn GetChild(this: *mut core::ffi::c_void, condition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationNotCondition_Impl::GetChild(this) { Ok(ok__) => { @@ -8453,19 +6647,13 @@ impl IUIAutomationNotCondition_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IUIAutomationNotificationEventHandler_Impl: Sized { +pub trait IUIAutomationNotificationEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn HandleNotificationEvent(&self, sender: Option<&IUIAutomationElement>, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: &windows_core::BSTR, activityid: &windows_core::BSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationNotificationEventHandler {} impl IUIAutomationNotificationEventHandler_Vtbl { - pub const fn new() -> IUIAutomationNotificationEventHandler_Vtbl - where - Identity: IUIAutomationNotificationEventHandler_Impl, - { - unsafe extern "system" fn HandleNotificationEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: core::mem::MaybeUninit, activityid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationNotificationEventHandler_Impl, - { + pub const fn new() -> IUIAutomationNotificationEventHandler_Vtbl { + unsafe extern "system" fn HandleNotificationEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: core::mem::MaybeUninit, activityid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationNotificationEventHandler_Impl::HandleNotificationEvent(this, windows_core::from_raw_borrowed(&sender), core::mem::transmute_copy(¬ificationkind), core::mem::transmute_copy(¬ificationprocessing), core::mem::transmute(&displaystring), core::mem::transmute(&activityid)).into() } @@ -8475,19 +6663,13 @@ impl IUIAutomationNotificationEventHandler_Vtbl { iid == &::IID } } -pub trait IUIAutomationObjectModelPattern_Impl: Sized { +pub trait IUIAutomationObjectModelPattern_Impl: Sized + windows_core::IUnknownImpl { fn GetUnderlyingObjectModel(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAutomationObjectModelPattern {} impl IUIAutomationObjectModelPattern_Vtbl { - pub const fn new() -> IUIAutomationObjectModelPattern_Vtbl - where - Identity: IUIAutomationObjectModelPattern_Impl, - { - unsafe extern "system" fn GetUnderlyingObjectModel(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationObjectModelPattern_Impl, - { + pub const fn new() -> IUIAutomationObjectModelPattern_Vtbl { + unsafe extern "system" fn GetUnderlyingObjectModel(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationObjectModelPattern_Impl::GetUnderlyingObjectModel(this) { Ok(ok__) => { @@ -8513,14 +6695,8 @@ pub trait IUIAutomationOrCondition_Impl: Sized + IUIAutomationCondition_Impl { impl windows_core::RuntimeName for IUIAutomationOrCondition {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationOrCondition_Vtbl { - pub const fn new() -> IUIAutomationOrCondition_Vtbl - where - Identity: IUIAutomationOrCondition_Impl, - { - unsafe extern "system" fn ChildCount(this: *mut core::ffi::c_void, childcount: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationOrCondition_Impl, - { + pub const fn new() -> IUIAutomationOrCondition_Vtbl { + unsafe extern "system" fn ChildCount(this: *mut core::ffi::c_void, childcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationOrCondition_Impl::ChildCount(this) { Ok(ok__) => { @@ -8530,17 +6706,11 @@ impl IUIAutomationOrCondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChildrenAsNativeArray(this: *mut core::ffi::c_void, childarray: *mut *mut Option, childarraycount: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationOrCondition_Impl, - { + unsafe extern "system" fn GetChildrenAsNativeArray(this: *mut core::ffi::c_void, childarray: *mut *mut Option, childarraycount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationOrCondition_Impl::GetChildrenAsNativeArray(this, core::mem::transmute_copy(&childarray), core::mem::transmute_copy(&childarraycount)).into() } - unsafe extern "system" fn GetChildren(this: *mut core::ffi::c_void, childarray: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationOrCondition_Impl, - { + unsafe extern "system" fn GetChildren(this: *mut core::ffi::c_void, childarray: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationOrCondition_Impl::GetChildren(this) { Ok(ok__) => { @@ -8561,20 +6731,14 @@ impl IUIAutomationOrCondition_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IUIAutomationPatternHandler_Impl: Sized { +pub trait IUIAutomationPatternHandler_Impl: Sized + windows_core::IUnknownImpl { fn CreateClientWrapper(&self, ppatterninstance: Option<&IUIAutomationPatternInstance>) -> windows_core::Result; fn Dispatch(&self, ptarget: Option<&windows_core::IUnknown>, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationPatternHandler {} impl IUIAutomationPatternHandler_Vtbl { - pub const fn new() -> IUIAutomationPatternHandler_Vtbl - where - Identity: IUIAutomationPatternHandler_Impl, - { - unsafe extern "system" fn CreateClientWrapper(this: *mut core::ffi::c_void, ppatterninstance: *mut core::ffi::c_void, pclientwrapper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationPatternHandler_Impl, - { + pub const fn new() -> IUIAutomationPatternHandler_Vtbl { + unsafe extern "system" fn CreateClientWrapper(this: *mut core::ffi::c_void, ppatterninstance: *mut core::ffi::c_void, pclientwrapper: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationPatternHandler_Impl::CreateClientWrapper(this, windows_core::from_raw_borrowed(&ppatterninstance)) { Ok(ok__) => { @@ -8584,10 +6748,7 @@ impl IUIAutomationPatternHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Dispatch(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> windows_core::HRESULT - where - Identity: IUIAutomationPatternHandler_Impl, - { + unsafe extern "system" fn Dispatch(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationPatternHandler_Impl::Dispatch(this, windows_core::from_raw_borrowed(&ptarget), core::mem::transmute_copy(&index), core::mem::transmute_copy(&pparams), core::mem::transmute_copy(&cparams)).into() } @@ -8601,27 +6762,18 @@ impl IUIAutomationPatternHandler_Vtbl { iid == &::IID } } -pub trait IUIAutomationPatternInstance_Impl: Sized { +pub trait IUIAutomationPatternInstance_Impl: Sized + windows_core::IUnknownImpl { fn GetProperty(&self, index: u32, cached: super::super::Foundation::BOOL, r#type: UIAutomationType, pptr: *mut core::ffi::c_void) -> windows_core::Result<()>; fn CallMethod(&self, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationPatternInstance {} impl IUIAutomationPatternInstance_Vtbl { - pub const fn new() -> IUIAutomationPatternInstance_Vtbl - where - Identity: IUIAutomationPatternInstance_Impl, - { - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, index: u32, cached: super::super::Foundation::BOOL, r#type: UIAutomationType, pptr: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationPatternInstance_Impl, - { + pub const fn new() -> IUIAutomationPatternInstance_Vtbl { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, index: u32, cached: super::super::Foundation::BOOL, r#type: UIAutomationType, pptr: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationPatternInstance_Impl::GetProperty(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&cached), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pptr)).into() } - unsafe extern "system" fn CallMethod(this: *mut core::ffi::c_void, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> windows_core::HRESULT - where - Identity: IUIAutomationPatternInstance_Impl, - { + unsafe extern "system" fn CallMethod(this: *mut core::ffi::c_void, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationPatternInstance_Impl::CallMethod(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pparams), core::mem::transmute_copy(&cparams)).into() } @@ -8635,19 +6787,13 @@ impl IUIAutomationPatternInstance_Vtbl { iid == &::IID } } -pub trait IUIAutomationPropertyChangedEventHandler_Impl: Sized { +pub trait IUIAutomationPropertyChangedEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn HandlePropertyChangedEvent(&self, sender: Option<&IUIAutomationElement>, propertyid: UIA_PROPERTY_ID, newvalue: &windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationPropertyChangedEventHandler {} impl IUIAutomationPropertyChangedEventHandler_Vtbl { - pub const fn new() -> IUIAutomationPropertyChangedEventHandler_Vtbl - where - Identity: IUIAutomationPropertyChangedEventHandler_Impl, - { - unsafe extern "system" fn HandlePropertyChangedEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, newvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationPropertyChangedEventHandler_Impl, - { + pub const fn new() -> IUIAutomationPropertyChangedEventHandler_Vtbl { + unsafe extern "system" fn HandlePropertyChangedEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, newvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationPropertyChangedEventHandler_Impl::HandlePropertyChangedEvent(this, windows_core::from_raw_borrowed(&sender), core::mem::transmute_copy(&propertyid), core::mem::transmute(&newvalue)).into() } @@ -8664,14 +6810,8 @@ pub trait IUIAutomationPropertyCondition_Impl: Sized + IUIAutomationCondition_Im } impl windows_core::RuntimeName for IUIAutomationPropertyCondition {} impl IUIAutomationPropertyCondition_Vtbl { - pub const fn new() -> IUIAutomationPropertyCondition_Vtbl - where - Identity: IUIAutomationPropertyCondition_Impl, - { - unsafe extern "system" fn PropertyId(this: *mut core::ffi::c_void, propertyid: *mut UIA_PROPERTY_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationPropertyCondition_Impl, - { + pub const fn new() -> IUIAutomationPropertyCondition_Vtbl { + unsafe extern "system" fn PropertyId(this: *mut core::ffi::c_void, propertyid: *mut UIA_PROPERTY_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationPropertyCondition_Impl::PropertyId(this) { Ok(ok__) => { @@ -8681,10 +6821,7 @@ impl IUIAutomationPropertyCondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PropertyValue(this: *mut core::ffi::c_void, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationPropertyCondition_Impl, - { + unsafe extern "system" fn PropertyValue(this: *mut core::ffi::c_void, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationPropertyCondition_Impl::PropertyValue(this) { Ok(ok__) => { @@ -8694,10 +6831,7 @@ impl IUIAutomationPropertyCondition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PropertyConditionFlags(this: *mut core::ffi::c_void, flags: *mut PropertyConditionFlags) -> windows_core::HRESULT - where - Identity: IUIAutomationPropertyCondition_Impl, - { + unsafe extern "system" fn PropertyConditionFlags(this: *mut core::ffi::c_void, flags: *mut PropertyConditionFlags) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationPropertyCondition_Impl::PropertyConditionFlags(this) { Ok(ok__) => { @@ -8718,20 +6852,14 @@ impl IUIAutomationPropertyCondition_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IUIAutomationProxyFactory_Impl: Sized { +pub trait IUIAutomationProxyFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateProvider(&self, hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32) -> windows_core::Result; fn ProxyFactoryId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAutomationProxyFactory {} impl IUIAutomationProxyFactory_Vtbl { - pub const fn new() -> IUIAutomationProxyFactory_Vtbl - where - Identity: IUIAutomationProxyFactory_Impl, - { - unsafe extern "system" fn CreateProvider(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 - where - Identity: IUIAutomationProxyFactory_Impl, - { + pub const fn new() -> IUIAutomationProxyFactory_Vtbl { + unsafe extern "system" fn CreateProvider(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactory_Impl::CreateProvider(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&idobject), core::mem::transmute_copy(&idchild)) { Ok(ok__) => { @@ -8741,10 +6869,7 @@ impl IUIAutomationProxyFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProxyFactoryId(this: *mut core::ffi::c_void, factoryid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactory_Impl, - { + unsafe extern "system" fn ProxyFactoryId(this: *mut core::ffi::c_void, factoryid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactory_Impl::ProxyFactoryId(this) { Ok(ok__) => { @@ -8765,7 +6890,7 @@ impl IUIAutomationProxyFactory_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationProxyFactoryEntry_Impl: Sized { +pub trait IUIAutomationProxyFactoryEntry_Impl: Sized + windows_core::IUnknownImpl { fn ProxyFactory(&self) -> windows_core::Result; fn ClassName(&self) -> windows_core::Result; fn ImageName(&self) -> windows_core::Result; @@ -8784,14 +6909,8 @@ pub trait IUIAutomationProxyFactoryEntry_Impl: Sized { impl windows_core::RuntimeName for IUIAutomationProxyFactoryEntry {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationProxyFactoryEntry_Vtbl { - pub const fn new() -> IUIAutomationProxyFactoryEntry_Vtbl - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { - unsafe extern "system" fn ProxyFactory(this: *mut core::ffi::c_void, factory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + pub const fn new() -> IUIAutomationProxyFactoryEntry_Vtbl { + unsafe extern "system" fn ProxyFactory(this: *mut core::ffi::c_void, factory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryEntry_Impl::ProxyFactory(this) { Ok(ok__) => { @@ -8801,10 +6920,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClassName(this: *mut core::ffi::c_void, classname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn ClassName(this: *mut core::ffi::c_void, classname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryEntry_Impl::ClassName(this) { Ok(ok__) => { @@ -8814,10 +6930,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ImageName(this: *mut core::ffi::c_void, imagename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn ImageName(this: *mut core::ffi::c_void, imagename: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryEntry_Impl::ImageName(this) { Ok(ok__) => { @@ -8827,10 +6940,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AllowSubstringMatch(this: *mut core::ffi::c_void, allowsubstringmatch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn AllowSubstringMatch(this: *mut core::ffi::c_void, allowsubstringmatch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryEntry_Impl::AllowSubstringMatch(this) { Ok(ok__) => { @@ -8840,10 +6950,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanCheckBaseClass(this: *mut core::ffi::c_void, cancheckbaseclass: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn CanCheckBaseClass(this: *mut core::ffi::c_void, cancheckbaseclass: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryEntry_Impl::CanCheckBaseClass(this) { Ok(ok__) => { @@ -8853,10 +6960,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NeedsAdviseEvents(this: *mut core::ffi::c_void, adviseevents: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn NeedsAdviseEvents(this: *mut core::ffi::c_void, adviseevents: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryEntry_Impl::NeedsAdviseEvents(this) { Ok(ok__) => { @@ -8866,52 +6970,31 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClassName(this: *mut core::ffi::c_void, classname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn SetClassName(this: *mut core::ffi::c_void, classname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryEntry_Impl::SetClassName(this, core::mem::transmute(&classname)).into() } - unsafe extern "system" fn SetImageName(this: *mut core::ffi::c_void, imagename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn SetImageName(this: *mut core::ffi::c_void, imagename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryEntry_Impl::SetImageName(this, core::mem::transmute(&imagename)).into() } - unsafe extern "system" fn SetAllowSubstringMatch(this: *mut core::ffi::c_void, allowsubstringmatch: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn SetAllowSubstringMatch(this: *mut core::ffi::c_void, allowsubstringmatch: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryEntry_Impl::SetAllowSubstringMatch(this, core::mem::transmute_copy(&allowsubstringmatch)).into() } - unsafe extern "system" fn SetCanCheckBaseClass(this: *mut core::ffi::c_void, cancheckbaseclass: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn SetCanCheckBaseClass(this: *mut core::ffi::c_void, cancheckbaseclass: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryEntry_Impl::SetCanCheckBaseClass(this, core::mem::transmute_copy(&cancheckbaseclass)).into() } - unsafe extern "system" fn SetNeedsAdviseEvents(this: *mut core::ffi::c_void, adviseevents: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn SetNeedsAdviseEvents(this: *mut core::ffi::c_void, adviseevents: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryEntry_Impl::SetNeedsAdviseEvents(this, core::mem::transmute_copy(&adviseevents)).into() } - unsafe extern "system" fn SetWinEventsForAutomationEvent(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, propertyid: UIA_PROPERTY_ID, winevents: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn SetWinEventsForAutomationEvent(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, propertyid: UIA_PROPERTY_ID, winevents: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryEntry_Impl::SetWinEventsForAutomationEvent(this, core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&winevents)).into() } - unsafe extern "system" fn GetWinEventsForAutomationEvent(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, propertyid: UIA_PROPERTY_ID, winevents: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryEntry_Impl, - { + unsafe extern "system" fn GetWinEventsForAutomationEvent(this: *mut core::ffi::c_void, eventid: UIA_EVENT_ID, propertyid: UIA_PROPERTY_ID, winevents: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryEntry_Impl::GetWinEventsForAutomationEvent(this, core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&propertyid)) { Ok(ok__) => { @@ -8943,7 +7026,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationProxyFactoryMapping_Impl: Sized { +pub trait IUIAutomationProxyFactoryMapping_Impl: Sized + windows_core::IUnknownImpl { fn Count(&self) -> windows_core::Result; fn GetTable(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetEntry(&self, index: u32) -> windows_core::Result; @@ -8958,14 +7041,8 @@ pub trait IUIAutomationProxyFactoryMapping_Impl: Sized { impl windows_core::RuntimeName for IUIAutomationProxyFactoryMapping {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationProxyFactoryMapping_Vtbl { - pub const fn new() -> IUIAutomationProxyFactoryMapping_Vtbl - where - Identity: IUIAutomationProxyFactoryMapping_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryMapping_Impl, - { + pub const fn new() -> IUIAutomationProxyFactoryMapping_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryMapping_Impl::Count(this) { Ok(ok__) => { @@ -8975,10 +7052,7 @@ impl IUIAutomationProxyFactoryMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTable(this: *mut core::ffi::c_void, table: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryMapping_Impl, - { + unsafe extern "system" fn GetTable(this: *mut core::ffi::c_void, table: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryMapping_Impl::GetTable(this) { Ok(ok__) => { @@ -8988,10 +7062,7 @@ impl IUIAutomationProxyFactoryMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEntry(this: *mut core::ffi::c_void, index: u32, entry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryMapping_Impl, - { + unsafe extern "system" fn GetEntry(this: *mut core::ffi::c_void, index: u32, entry: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryMapping_Impl::GetEntry(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -9001,45 +7072,27 @@ impl IUIAutomationProxyFactoryMapping_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTable(this: *mut core::ffi::c_void, factorylist: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryMapping_Impl, - { + unsafe extern "system" fn SetTable(this: *mut core::ffi::c_void, factorylist: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryMapping_Impl::SetTable(this, core::mem::transmute_copy(&factorylist)).into() } - unsafe extern "system" fn InsertEntries(this: *mut core::ffi::c_void, before: u32, factorylist: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryMapping_Impl, - { + unsafe extern "system" fn InsertEntries(this: *mut core::ffi::c_void, before: u32, factorylist: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryMapping_Impl::InsertEntries(this, core::mem::transmute_copy(&before), core::mem::transmute_copy(&factorylist)).into() } - unsafe extern "system" fn InsertEntry(this: *mut core::ffi::c_void, before: u32, factory: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryMapping_Impl, - { + unsafe extern "system" fn InsertEntry(this: *mut core::ffi::c_void, before: u32, factory: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryMapping_Impl::InsertEntry(this, core::mem::transmute_copy(&before), windows_core::from_raw_borrowed(&factory)).into() } - unsafe extern "system" fn RemoveEntry(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryMapping_Impl, - { + unsafe extern "system" fn RemoveEntry(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryMapping_Impl::RemoveEntry(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn ClearTable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryMapping_Impl, - { + unsafe extern "system" fn ClearTable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryMapping_Impl::ClearTable(this).into() } - unsafe extern "system" fn RestoreDefaultTable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationProxyFactoryMapping_Impl, - { + unsafe extern "system" fn RestoreDefaultTable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryMapping_Impl::RestoreDefaultTable(this).into() } @@ -9060,7 +7113,7 @@ impl IUIAutomationProxyFactoryMapping_Vtbl { iid == &::IID } } -pub trait IUIAutomationRangeValuePattern_Impl: Sized { +pub trait IUIAutomationRangeValuePattern_Impl: Sized + windows_core::IUnknownImpl { fn SetValue(&self, val: f64) -> windows_core::Result<()>; fn CurrentValue(&self) -> windows_core::Result; fn CurrentIsReadOnly(&self) -> windows_core::Result; @@ -9077,21 +7130,12 @@ pub trait IUIAutomationRangeValuePattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationRangeValuePattern {} impl IUIAutomationRangeValuePattern_Vtbl { - pub const fn new() -> IUIAutomationRangeValuePattern_Vtbl - where - Identity: IUIAutomationRangeValuePattern_Impl, - { - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, val: f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + pub const fn new() -> IUIAutomationRangeValuePattern_Vtbl { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, val: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationRangeValuePattern_Impl::SetValue(this, core::mem::transmute_copy(&val)).into() } - unsafe extern "system" fn CurrentValue(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CurrentValue(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CurrentValue(this) { Ok(ok__) => { @@ -9101,10 +7145,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CurrentIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CurrentIsReadOnly(this) { Ok(ok__) => { @@ -9114,10 +7155,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentMaximum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CurrentMaximum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CurrentMaximum(this) { Ok(ok__) => { @@ -9127,10 +7165,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentMinimum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CurrentMinimum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CurrentMinimum(this) { Ok(ok__) => { @@ -9140,10 +7175,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentLargeChange(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CurrentLargeChange(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CurrentLargeChange(this) { Ok(ok__) => { @@ -9153,10 +7185,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentSmallChange(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CurrentSmallChange(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CurrentSmallChange(this) { Ok(ok__) => { @@ -9166,10 +7195,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedValue(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CachedValue(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CachedValue(this) { Ok(ok__) => { @@ -9179,10 +7205,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CachedIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CachedIsReadOnly(this) { Ok(ok__) => { @@ -9192,10 +7215,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedMaximum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CachedMaximum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CachedMaximum(this) { Ok(ok__) => { @@ -9205,10 +7225,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedMinimum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CachedMinimum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CachedMinimum(this) { Ok(ok__) => { @@ -9218,10 +7235,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedLargeChange(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CachedLargeChange(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CachedLargeChange(this) { Ok(ok__) => { @@ -9231,10 +7245,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedSmallChange(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationRangeValuePattern_Impl, - { + unsafe extern "system" fn CachedSmallChange(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CachedSmallChange(this) { Ok(ok__) => { @@ -9265,21 +7276,15 @@ impl IUIAutomationRangeValuePattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationRegistrar_Impl: Sized { +pub trait IUIAutomationRegistrar_Impl: Sized + windows_core::IUnknownImpl { fn RegisterProperty(&self, property: *const UIAutomationPropertyInfo) -> windows_core::Result; fn RegisterEvent(&self, event: *const UIAutomationEventInfo) -> windows_core::Result; fn RegisterPattern(&self, pattern: *const UIAutomationPatternInfo, ppatternid: *mut i32, ppatternavailablepropertyid: *mut i32, propertyidcount: u32, ppropertyids: *mut i32, eventidcount: u32, peventids: *mut i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationRegistrar {} impl IUIAutomationRegistrar_Vtbl { - pub const fn new() -> IUIAutomationRegistrar_Vtbl - where - Identity: IUIAutomationRegistrar_Impl, - { - unsafe extern "system" fn RegisterProperty(this: *mut core::ffi::c_void, property: *const UIAutomationPropertyInfo, propertyid: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationRegistrar_Impl, - { + pub const fn new() -> IUIAutomationRegistrar_Vtbl { + unsafe extern "system" fn RegisterProperty(this: *mut core::ffi::c_void, property: *const UIAutomationPropertyInfo, propertyid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRegistrar_Impl::RegisterProperty(this, core::mem::transmute_copy(&property)) { Ok(ok__) => { @@ -9289,10 +7294,7 @@ impl IUIAutomationRegistrar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterEvent(this: *mut core::ffi::c_void, event: *const UIAutomationEventInfo, eventid: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationRegistrar_Impl, - { + unsafe extern "system" fn RegisterEvent(this: *mut core::ffi::c_void, event: *const UIAutomationEventInfo, eventid: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRegistrar_Impl::RegisterEvent(this, core::mem::transmute_copy(&event)) { Ok(ok__) => { @@ -9302,10 +7304,7 @@ impl IUIAutomationRegistrar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterPattern(this: *mut core::ffi::c_void, pattern: *const UIAutomationPatternInfo, ppatternid: *mut i32, ppatternavailablepropertyid: *mut i32, propertyidcount: u32, ppropertyids: *mut i32, eventidcount: u32, peventids: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationRegistrar_Impl, - { + unsafe extern "system" fn RegisterPattern(this: *mut core::ffi::c_void, pattern: *const UIAutomationPatternInfo, ppatternid: *mut i32, ppatternavailablepropertyid: *mut i32, propertyidcount: u32, ppropertyids: *mut i32, eventidcount: u32, peventids: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationRegistrar_Impl::RegisterPattern(this, core::mem::transmute_copy(&pattern), core::mem::transmute_copy(&ppatternid), core::mem::transmute_copy(&ppatternavailablepropertyid), core::mem::transmute_copy(&propertyidcount), core::mem::transmute_copy(&ppropertyids), core::mem::transmute_copy(&eventidcount), core::mem::transmute_copy(&peventids)).into() } @@ -9320,19 +7319,13 @@ impl IUIAutomationRegistrar_Vtbl { iid == &::IID } } -pub trait IUIAutomationScrollItemPattern_Impl: Sized { +pub trait IUIAutomationScrollItemPattern_Impl: Sized + windows_core::IUnknownImpl { fn ScrollIntoView(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationScrollItemPattern {} impl IUIAutomationScrollItemPattern_Vtbl { - pub const fn new() -> IUIAutomationScrollItemPattern_Vtbl - where - Identity: IUIAutomationScrollItemPattern_Impl, - { - unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollItemPattern_Impl, - { + pub const fn new() -> IUIAutomationScrollItemPattern_Vtbl { + unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationScrollItemPattern_Impl::ScrollIntoView(this).into() } @@ -9342,7 +7335,7 @@ impl IUIAutomationScrollItemPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationScrollPattern_Impl: Sized { +pub trait IUIAutomationScrollPattern_Impl: Sized + windows_core::IUnknownImpl { fn Scroll(&self, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::Result<()>; fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> windows_core::Result<()>; fn CurrentHorizontalScrollPercent(&self) -> windows_core::Result; @@ -9360,28 +7353,16 @@ pub trait IUIAutomationScrollPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationScrollPattern {} impl IUIAutomationScrollPattern_Vtbl { - pub const fn new() -> IUIAutomationScrollPattern_Vtbl - where - Identity: IUIAutomationScrollPattern_Impl, - { - unsafe extern "system" fn Scroll(this: *mut core::ffi::c_void, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + pub const fn new() -> IUIAutomationScrollPattern_Vtbl { + unsafe extern "system" fn Scroll(this: *mut core::ffi::c_void, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationScrollPattern_Impl::Scroll(this, core::mem::transmute_copy(&horizontalamount), core::mem::transmute_copy(&verticalamount)).into() } - unsafe extern "system" fn SetScrollPercent(this: *mut core::ffi::c_void, horizontalpercent: f64, verticalpercent: f64) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn SetScrollPercent(this: *mut core::ffi::c_void, horizontalpercent: f64, verticalpercent: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationScrollPattern_Impl::SetScrollPercent(this, core::mem::transmute_copy(&horizontalpercent), core::mem::transmute_copy(&verticalpercent)).into() } - unsafe extern "system" fn CurrentHorizontalScrollPercent(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CurrentHorizontalScrollPercent(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CurrentHorizontalScrollPercent(this) { Ok(ok__) => { @@ -9391,10 +7372,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentVerticalScrollPercent(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CurrentVerticalScrollPercent(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CurrentVerticalScrollPercent(this) { Ok(ok__) => { @@ -9404,10 +7382,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentHorizontalViewSize(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CurrentHorizontalViewSize(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CurrentHorizontalViewSize(this) { Ok(ok__) => { @@ -9417,10 +7392,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentVerticalViewSize(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CurrentVerticalViewSize(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CurrentVerticalViewSize(this) { Ok(ok__) => { @@ -9430,10 +7402,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentHorizontallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CurrentHorizontallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CurrentHorizontallyScrollable(this) { Ok(ok__) => { @@ -9443,10 +7412,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentVerticallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CurrentVerticallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CurrentVerticallyScrollable(this) { Ok(ok__) => { @@ -9456,10 +7422,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedHorizontalScrollPercent(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CachedHorizontalScrollPercent(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CachedHorizontalScrollPercent(this) { Ok(ok__) => { @@ -9469,10 +7432,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedVerticalScrollPercent(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CachedVerticalScrollPercent(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CachedVerticalScrollPercent(this) { Ok(ok__) => { @@ -9482,10 +7442,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedHorizontalViewSize(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CachedHorizontalViewSize(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CachedHorizontalViewSize(this) { Ok(ok__) => { @@ -9495,10 +7452,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedVerticalViewSize(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CachedVerticalViewSize(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CachedVerticalViewSize(this) { Ok(ok__) => { @@ -9508,10 +7462,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedHorizontallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CachedHorizontallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CachedHorizontallyScrollable(this) { Ok(ok__) => { @@ -9521,10 +7472,7 @@ impl IUIAutomationScrollPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedVerticallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationScrollPattern_Impl, - { + unsafe extern "system" fn CachedVerticallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CachedVerticallyScrollable(this) { Ok(ok__) => { @@ -9556,7 +7504,7 @@ impl IUIAutomationScrollPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationSelectionItemPattern_Impl: Sized { +pub trait IUIAutomationSelectionItemPattern_Impl: Sized + windows_core::IUnknownImpl { fn Select(&self) -> windows_core::Result<()>; fn AddToSelection(&self) -> windows_core::Result<()>; fn RemoveFromSelection(&self) -> windows_core::Result<()>; @@ -9567,35 +7515,20 @@ pub trait IUIAutomationSelectionItemPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationSelectionItemPattern {} impl IUIAutomationSelectionItemPattern_Vtbl { - pub const fn new() -> IUIAutomationSelectionItemPattern_Vtbl - where - Identity: IUIAutomationSelectionItemPattern_Impl, - { - unsafe extern "system" fn Select(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionItemPattern_Impl, - { + pub const fn new() -> IUIAutomationSelectionItemPattern_Vtbl { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationSelectionItemPattern_Impl::Select(this).into() } - unsafe extern "system" fn AddToSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionItemPattern_Impl, - { + unsafe extern "system" fn AddToSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationSelectionItemPattern_Impl::AddToSelection(this).into() } - unsafe extern "system" fn RemoveFromSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionItemPattern_Impl, - { + unsafe extern "system" fn RemoveFromSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationSelectionItemPattern_Impl::RemoveFromSelection(this).into() } - unsafe extern "system" fn CurrentIsSelected(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionItemPattern_Impl, - { + unsafe extern "system" fn CurrentIsSelected(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionItemPattern_Impl::CurrentIsSelected(this) { Ok(ok__) => { @@ -9605,10 +7538,7 @@ impl IUIAutomationSelectionItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentSelectionContainer(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionItemPattern_Impl, - { + unsafe extern "system" fn CurrentSelectionContainer(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionItemPattern_Impl::CurrentSelectionContainer(this) { Ok(ok__) => { @@ -9618,10 +7548,7 @@ impl IUIAutomationSelectionItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsSelected(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionItemPattern_Impl, - { + unsafe extern "system" fn CachedIsSelected(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionItemPattern_Impl::CachedIsSelected(this) { Ok(ok__) => { @@ -9631,10 +7558,7 @@ impl IUIAutomationSelectionItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedSelectionContainer(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionItemPattern_Impl, - { + unsafe extern "system" fn CachedSelectionContainer(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionItemPattern_Impl::CachedSelectionContainer(this) { Ok(ok__) => { @@ -9659,7 +7583,7 @@ impl IUIAutomationSelectionItemPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationSelectionPattern_Impl: Sized { +pub trait IUIAutomationSelectionPattern_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentSelection(&self) -> windows_core::Result; fn CurrentCanSelectMultiple(&self) -> windows_core::Result; fn CurrentIsSelectionRequired(&self) -> windows_core::Result; @@ -9669,14 +7593,8 @@ pub trait IUIAutomationSelectionPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationSelectionPattern {} impl IUIAutomationSelectionPattern_Vtbl { - pub const fn new() -> IUIAutomationSelectionPattern_Vtbl - where - Identity: IUIAutomationSelectionPattern_Impl, - { - unsafe extern "system" fn GetCurrentSelection(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern_Impl, - { + pub const fn new() -> IUIAutomationSelectionPattern_Vtbl { + unsafe extern "system" fn GetCurrentSelection(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern_Impl::GetCurrentSelection(this) { Ok(ok__) => { @@ -9686,10 +7604,7 @@ impl IUIAutomationSelectionPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentCanSelectMultiple(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern_Impl, - { + unsafe extern "system" fn CurrentCanSelectMultiple(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern_Impl::CurrentCanSelectMultiple(this) { Ok(ok__) => { @@ -9699,10 +7614,7 @@ impl IUIAutomationSelectionPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsSelectionRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern_Impl, - { + unsafe extern "system" fn CurrentIsSelectionRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern_Impl::CurrentIsSelectionRequired(this) { Ok(ok__) => { @@ -9712,10 +7624,7 @@ impl IUIAutomationSelectionPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedSelection(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern_Impl, - { + unsafe extern "system" fn GetCachedSelection(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern_Impl::GetCachedSelection(this) { Ok(ok__) => { @@ -9725,10 +7634,7 @@ impl IUIAutomationSelectionPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedCanSelectMultiple(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern_Impl, - { + unsafe extern "system" fn CachedCanSelectMultiple(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern_Impl::CachedCanSelectMultiple(this) { Ok(ok__) => { @@ -9738,10 +7644,7 @@ impl IUIAutomationSelectionPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsSelectionRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern_Impl, - { + unsafe extern "system" fn CachedIsSelectionRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern_Impl::CachedIsSelectionRequired(this) { Ok(ok__) => { @@ -9777,14 +7680,8 @@ pub trait IUIAutomationSelectionPattern2_Impl: Sized + IUIAutomationSelectionPat } impl windows_core::RuntimeName for IUIAutomationSelectionPattern2 {} impl IUIAutomationSelectionPattern2_Vtbl { - pub const fn new() -> IUIAutomationSelectionPattern2_Vtbl - where - Identity: IUIAutomationSelectionPattern2_Impl, - { - unsafe extern "system" fn CurrentFirstSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern2_Impl, - { + pub const fn new() -> IUIAutomationSelectionPattern2_Vtbl { + unsafe extern "system" fn CurrentFirstSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern2_Impl::CurrentFirstSelectedItem(this) { Ok(ok__) => { @@ -9794,10 +7691,7 @@ impl IUIAutomationSelectionPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentLastSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern2_Impl, - { + unsafe extern "system" fn CurrentLastSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern2_Impl::CurrentLastSelectedItem(this) { Ok(ok__) => { @@ -9807,10 +7701,7 @@ impl IUIAutomationSelectionPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentCurrentSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern2_Impl, - { + unsafe extern "system" fn CurrentCurrentSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern2_Impl::CurrentCurrentSelectedItem(this) { Ok(ok__) => { @@ -9820,10 +7711,7 @@ impl IUIAutomationSelectionPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentItemCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern2_Impl, - { + unsafe extern "system" fn CurrentItemCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern2_Impl::CurrentItemCount(this) { Ok(ok__) => { @@ -9833,10 +7721,7 @@ impl IUIAutomationSelectionPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedFirstSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern2_Impl, - { + unsafe extern "system" fn CachedFirstSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern2_Impl::CachedFirstSelectedItem(this) { Ok(ok__) => { @@ -9846,10 +7731,7 @@ impl IUIAutomationSelectionPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedLastSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern2_Impl, - { + unsafe extern "system" fn CachedLastSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern2_Impl::CachedLastSelectedItem(this) { Ok(ok__) => { @@ -9859,10 +7741,7 @@ impl IUIAutomationSelectionPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedCurrentSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern2_Impl, - { + unsafe extern "system" fn CachedCurrentSelectedItem(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern2_Impl::CachedCurrentSelectedItem(this) { Ok(ok__) => { @@ -9872,10 +7751,7 @@ impl IUIAutomationSelectionPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedItemCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationSelectionPattern2_Impl, - { + unsafe extern "system" fn CachedItemCount(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern2_Impl::CachedItemCount(this) { Ok(ok__) => { @@ -9902,7 +7778,7 @@ impl IUIAutomationSelectionPattern2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationSpreadsheetItemPattern_Impl: Sized { +pub trait IUIAutomationSpreadsheetItemPattern_Impl: Sized + windows_core::IUnknownImpl { fn CurrentFormula(&self) -> windows_core::Result; fn GetCurrentAnnotationObjects(&self) -> windows_core::Result; fn GetCurrentAnnotationTypes(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -9914,14 +7790,8 @@ pub trait IUIAutomationSpreadsheetItemPattern_Impl: Sized { impl windows_core::RuntimeName for IUIAutomationSpreadsheetItemPattern {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationSpreadsheetItemPattern_Vtbl { - pub const fn new() -> IUIAutomationSpreadsheetItemPattern_Vtbl - where - Identity: IUIAutomationSpreadsheetItemPattern_Impl, - { - unsafe extern "system" fn CurrentFormula(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationSpreadsheetItemPattern_Impl, - { + pub const fn new() -> IUIAutomationSpreadsheetItemPattern_Vtbl { + unsafe extern "system" fn CurrentFormula(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSpreadsheetItemPattern_Impl::CurrentFormula(this) { Ok(ok__) => { @@ -9931,10 +7801,7 @@ impl IUIAutomationSpreadsheetItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentAnnotationObjects(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSpreadsheetItemPattern_Impl, - { + unsafe extern "system" fn GetCurrentAnnotationObjects(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSpreadsheetItemPattern_Impl::GetCurrentAnnotationObjects(this) { Ok(ok__) => { @@ -9944,10 +7811,7 @@ impl IUIAutomationSpreadsheetItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentAnnotationTypes(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationSpreadsheetItemPattern_Impl, - { + unsafe extern "system" fn GetCurrentAnnotationTypes(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSpreadsheetItemPattern_Impl::GetCurrentAnnotationTypes(this) { Ok(ok__) => { @@ -9957,10 +7821,7 @@ impl IUIAutomationSpreadsheetItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedFormula(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationSpreadsheetItemPattern_Impl, - { + unsafe extern "system" fn CachedFormula(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSpreadsheetItemPattern_Impl::CachedFormula(this) { Ok(ok__) => { @@ -9970,10 +7831,7 @@ impl IUIAutomationSpreadsheetItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedAnnotationObjects(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSpreadsheetItemPattern_Impl, - { + unsafe extern "system" fn GetCachedAnnotationObjects(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSpreadsheetItemPattern_Impl::GetCachedAnnotationObjects(this) { Ok(ok__) => { @@ -9983,10 +7841,7 @@ impl IUIAutomationSpreadsheetItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedAnnotationTypes(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationSpreadsheetItemPattern_Impl, - { + unsafe extern "system" fn GetCachedAnnotationTypes(this: *mut core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSpreadsheetItemPattern_Impl::GetCachedAnnotationTypes(this) { Ok(ok__) => { @@ -10010,19 +7865,13 @@ impl IUIAutomationSpreadsheetItemPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationSpreadsheetPattern_Impl: Sized { +pub trait IUIAutomationSpreadsheetPattern_Impl: Sized + windows_core::IUnknownImpl { fn GetItemByName(&self, name: &windows_core::BSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAutomationSpreadsheetPattern {} impl IUIAutomationSpreadsheetPattern_Vtbl { - pub const fn new() -> IUIAutomationSpreadsheetPattern_Vtbl - where - Identity: IUIAutomationSpreadsheetPattern_Impl, - { - unsafe extern "system" fn GetItemByName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSpreadsheetPattern_Impl, - { + pub const fn new() -> IUIAutomationSpreadsheetPattern_Vtbl { + unsafe extern "system" fn GetItemByName(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSpreadsheetPattern_Impl::GetItemByName(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -10039,21 +7888,15 @@ impl IUIAutomationSpreadsheetPattern_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationStructureChangedEventHandler_Impl: Sized { +pub trait IUIAutomationStructureChangedEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn HandleStructureChangedEvent(&self, sender: Option<&IUIAutomationElement>, changetype: StructureChangeType, runtimeid: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IUIAutomationStructureChangedEventHandler {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationStructureChangedEventHandler_Vtbl { - pub const fn new() -> IUIAutomationStructureChangedEventHandler_Vtbl - where - Identity: IUIAutomationStructureChangedEventHandler_Impl, - { - unsafe extern "system" fn HandleStructureChangedEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, changetype: StructureChangeType, runtimeid: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationStructureChangedEventHandler_Impl, - { + pub const fn new() -> IUIAutomationStructureChangedEventHandler_Vtbl { + unsafe extern "system" fn HandleStructureChangedEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, changetype: StructureChangeType, runtimeid: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationStructureChangedEventHandler_Impl::HandleStructureChangedEvent(this, windows_core::from_raw_borrowed(&sender), core::mem::transmute_copy(&changetype), core::mem::transmute_copy(&runtimeid)).into() } @@ -10063,7 +7906,7 @@ impl IUIAutomationStructureChangedEventHandler_Vtbl { iid == &::IID } } -pub trait IUIAutomationStylesPattern_Impl: Sized { +pub trait IUIAutomationStylesPattern_Impl: Sized + windows_core::IUnknownImpl { fn CurrentStyleId(&self) -> windows_core::Result; fn CurrentStyleName(&self) -> windows_core::Result; fn CurrentFillColor(&self) -> windows_core::Result; @@ -10083,14 +7926,8 @@ pub trait IUIAutomationStylesPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationStylesPattern {} impl IUIAutomationStylesPattern_Vtbl { - pub const fn new() -> IUIAutomationStylesPattern_Vtbl - where - Identity: IUIAutomationStylesPattern_Impl, - { - unsafe extern "system" fn CurrentStyleId(this: *mut core::ffi::c_void, retval: *mut UIA_STYLE_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + pub const fn new() -> IUIAutomationStylesPattern_Vtbl { + unsafe extern "system" fn CurrentStyleId(this: *mut core::ffi::c_void, retval: *mut UIA_STYLE_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CurrentStyleId(this) { Ok(ok__) => { @@ -10100,10 +7937,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentStyleName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CurrentStyleName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CurrentStyleName(this) { Ok(ok__) => { @@ -10113,10 +7947,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentFillColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CurrentFillColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CurrentFillColor(this) { Ok(ok__) => { @@ -10126,10 +7957,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentFillPatternStyle(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CurrentFillPatternStyle(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CurrentFillPatternStyle(this) { Ok(ok__) => { @@ -10139,10 +7967,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentShape(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CurrentShape(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CurrentShape(this) { Ok(ok__) => { @@ -10152,10 +7977,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentFillPatternColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CurrentFillPatternColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CurrentFillPatternColor(this) { Ok(ok__) => { @@ -10165,10 +7987,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentExtendedProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CurrentExtendedProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CurrentExtendedProperties(this) { Ok(ok__) => { @@ -10178,17 +7997,11 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentExtendedPropertiesAsArray(this: *mut core::ffi::c_void, propertyarray: *mut *mut ExtendedProperty, propertycount: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn GetCurrentExtendedPropertiesAsArray(this: *mut core::ffi::c_void, propertyarray: *mut *mut ExtendedProperty, propertycount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationStylesPattern_Impl::GetCurrentExtendedPropertiesAsArray(this, core::mem::transmute_copy(&propertyarray), core::mem::transmute_copy(&propertycount)).into() } - unsafe extern "system" fn CachedStyleId(this: *mut core::ffi::c_void, retval: *mut UIA_STYLE_ID) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CachedStyleId(this: *mut core::ffi::c_void, retval: *mut UIA_STYLE_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CachedStyleId(this) { Ok(ok__) => { @@ -10198,10 +8011,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedStyleName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CachedStyleName(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CachedStyleName(this) { Ok(ok__) => { @@ -10211,10 +8021,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedFillColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CachedFillColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CachedFillColor(this) { Ok(ok__) => { @@ -10224,10 +8031,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedFillPatternStyle(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CachedFillPatternStyle(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CachedFillPatternStyle(this) { Ok(ok__) => { @@ -10237,10 +8041,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedShape(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CachedShape(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CachedShape(this) { Ok(ok__) => { @@ -10250,10 +8051,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedFillPatternColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CachedFillPatternColor(this: *mut core::ffi::c_void, retval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CachedFillPatternColor(this) { Ok(ok__) => { @@ -10263,10 +8061,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedExtendedProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn CachedExtendedProperties(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationStylesPattern_Impl::CachedExtendedProperties(this) { Ok(ok__) => { @@ -10276,10 +8071,7 @@ impl IUIAutomationStylesPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedExtendedPropertiesAsArray(this: *mut core::ffi::c_void, propertyarray: *mut *mut ExtendedProperty, propertycount: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationStylesPattern_Impl, - { + unsafe extern "system" fn GetCachedExtendedPropertiesAsArray(this: *mut core::ffi::c_void, propertyarray: *mut *mut ExtendedProperty, propertycount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationStylesPattern_Impl::GetCachedExtendedPropertiesAsArray(this, core::mem::transmute_copy(&propertyarray), core::mem::transmute_copy(&propertycount)).into() } @@ -10307,27 +8099,18 @@ impl IUIAutomationStylesPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationSynchronizedInputPattern_Impl: Sized { +pub trait IUIAutomationSynchronizedInputPattern_Impl: Sized + windows_core::IUnknownImpl { fn StartListening(&self, inputtype: SynchronizedInputType) -> windows_core::Result<()>; fn Cancel(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationSynchronizedInputPattern {} impl IUIAutomationSynchronizedInputPattern_Vtbl { - pub const fn new() -> IUIAutomationSynchronizedInputPattern_Vtbl - where - Identity: IUIAutomationSynchronizedInputPattern_Impl, - { - unsafe extern "system" fn StartListening(this: *mut core::ffi::c_void, inputtype: SynchronizedInputType) -> windows_core::HRESULT - where - Identity: IUIAutomationSynchronizedInputPattern_Impl, - { + pub const fn new() -> IUIAutomationSynchronizedInputPattern_Vtbl { + unsafe extern "system" fn StartListening(this: *mut core::ffi::c_void, inputtype: SynchronizedInputType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationSynchronizedInputPattern_Impl::StartListening(this, core::mem::transmute_copy(&inputtype)).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationSynchronizedInputPattern_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationSynchronizedInputPattern_Impl::Cancel(this).into() } @@ -10341,7 +8124,7 @@ impl IUIAutomationSynchronizedInputPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationTableItemPattern_Impl: Sized { +pub trait IUIAutomationTableItemPattern_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentRowHeaderItems(&self) -> windows_core::Result; fn GetCurrentColumnHeaderItems(&self) -> windows_core::Result; fn GetCachedRowHeaderItems(&self) -> windows_core::Result; @@ -10349,14 +8132,8 @@ pub trait IUIAutomationTableItemPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationTableItemPattern {} impl IUIAutomationTableItemPattern_Vtbl { - pub const fn new() -> IUIAutomationTableItemPattern_Vtbl - where - Identity: IUIAutomationTableItemPattern_Impl, - { - unsafe extern "system" fn GetCurrentRowHeaderItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTableItemPattern_Impl, - { + pub const fn new() -> IUIAutomationTableItemPattern_Vtbl { + unsafe extern "system" fn GetCurrentRowHeaderItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTableItemPattern_Impl::GetCurrentRowHeaderItems(this) { Ok(ok__) => { @@ -10366,10 +8143,7 @@ impl IUIAutomationTableItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentColumnHeaderItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTableItemPattern_Impl, - { + unsafe extern "system" fn GetCurrentColumnHeaderItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTableItemPattern_Impl::GetCurrentColumnHeaderItems(this) { Ok(ok__) => { @@ -10379,10 +8153,7 @@ impl IUIAutomationTableItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedRowHeaderItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTableItemPattern_Impl, - { + unsafe extern "system" fn GetCachedRowHeaderItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTableItemPattern_Impl::GetCachedRowHeaderItems(this) { Ok(ok__) => { @@ -10392,10 +8163,7 @@ impl IUIAutomationTableItemPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedColumnHeaderItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTableItemPattern_Impl, - { + unsafe extern "system" fn GetCachedColumnHeaderItems(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTableItemPattern_Impl::GetCachedColumnHeaderItems(this) { Ok(ok__) => { @@ -10417,7 +8185,7 @@ impl IUIAutomationTableItemPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationTablePattern_Impl: Sized { +pub trait IUIAutomationTablePattern_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentRowHeaders(&self) -> windows_core::Result; fn GetCurrentColumnHeaders(&self) -> windows_core::Result; fn CurrentRowOrColumnMajor(&self) -> windows_core::Result; @@ -10427,14 +8195,8 @@ pub trait IUIAutomationTablePattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationTablePattern {} impl IUIAutomationTablePattern_Vtbl { - pub const fn new() -> IUIAutomationTablePattern_Vtbl - where - Identity: IUIAutomationTablePattern_Impl, - { - unsafe extern "system" fn GetCurrentRowHeaders(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTablePattern_Impl, - { + pub const fn new() -> IUIAutomationTablePattern_Vtbl { + unsafe extern "system" fn GetCurrentRowHeaders(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTablePattern_Impl::GetCurrentRowHeaders(this) { Ok(ok__) => { @@ -10444,10 +8206,7 @@ impl IUIAutomationTablePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentColumnHeaders(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTablePattern_Impl, - { + unsafe extern "system" fn GetCurrentColumnHeaders(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTablePattern_Impl::GetCurrentColumnHeaders(this) { Ok(ok__) => { @@ -10457,10 +8216,7 @@ impl IUIAutomationTablePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentRowOrColumnMajor(this: *mut core::ffi::c_void, retval: *mut RowOrColumnMajor) -> windows_core::HRESULT - where - Identity: IUIAutomationTablePattern_Impl, - { + unsafe extern "system" fn CurrentRowOrColumnMajor(this: *mut core::ffi::c_void, retval: *mut RowOrColumnMajor) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTablePattern_Impl::CurrentRowOrColumnMajor(this) { Ok(ok__) => { @@ -10470,10 +8226,7 @@ impl IUIAutomationTablePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedRowHeaders(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTablePattern_Impl, - { + unsafe extern "system" fn GetCachedRowHeaders(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTablePattern_Impl::GetCachedRowHeaders(this) { Ok(ok__) => { @@ -10483,10 +8236,7 @@ impl IUIAutomationTablePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCachedColumnHeaders(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTablePattern_Impl, - { + unsafe extern "system" fn GetCachedColumnHeaders(this: *mut core::ffi::c_void, retval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTablePattern_Impl::GetCachedColumnHeaders(this) { Ok(ok__) => { @@ -10496,10 +8246,7 @@ impl IUIAutomationTablePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedRowOrColumnMajor(this: *mut core::ffi::c_void, retval: *mut RowOrColumnMajor) -> windows_core::HRESULT - where - Identity: IUIAutomationTablePattern_Impl, - { + unsafe extern "system" fn CachedRowOrColumnMajor(this: *mut core::ffi::c_void, retval: *mut RowOrColumnMajor) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTablePattern_Impl::CachedRowOrColumnMajor(this) { Ok(ok__) => { @@ -10523,20 +8270,14 @@ impl IUIAutomationTablePattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationTextChildPattern_Impl: Sized { +pub trait IUIAutomationTextChildPattern_Impl: Sized + windows_core::IUnknownImpl { fn TextContainer(&self) -> windows_core::Result; fn TextRange(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAutomationTextChildPattern {} impl IUIAutomationTextChildPattern_Vtbl { - pub const fn new() -> IUIAutomationTextChildPattern_Vtbl - where - Identity: IUIAutomationTextChildPattern_Impl, - { - unsafe extern "system" fn TextContainer(this: *mut core::ffi::c_void, container: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextChildPattern_Impl, - { + pub const fn new() -> IUIAutomationTextChildPattern_Vtbl { + unsafe extern "system" fn TextContainer(this: *mut core::ffi::c_void, container: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextChildPattern_Impl::TextContainer(this) { Ok(ok__) => { @@ -10546,10 +8287,7 @@ impl IUIAutomationTextChildPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TextRange(this: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextChildPattern_Impl, - { + unsafe extern "system" fn TextRange(this: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextChildPattern_Impl::TextRange(this) { Ok(ok__) => { @@ -10575,14 +8313,8 @@ pub trait IUIAutomationTextEditPattern_Impl: Sized + IUIAutomationTextPattern_Im } impl windows_core::RuntimeName for IUIAutomationTextEditPattern {} impl IUIAutomationTextEditPattern_Vtbl { - pub const fn new() -> IUIAutomationTextEditPattern_Vtbl - where - Identity: IUIAutomationTextEditPattern_Impl, - { - unsafe extern "system" fn GetActiveComposition(this: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextEditPattern_Impl, - { + pub const fn new() -> IUIAutomationTextEditPattern_Vtbl { + unsafe extern "system" fn GetActiveComposition(this: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextEditPattern_Impl::GetActiveComposition(this) { Ok(ok__) => { @@ -10592,10 +8324,7 @@ impl IUIAutomationTextEditPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConversionTarget(this: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextEditPattern_Impl, - { + unsafe extern "system" fn GetConversionTarget(this: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextEditPattern_Impl::GetConversionTarget(this) { Ok(ok__) => { @@ -10616,21 +8345,15 @@ impl IUIAutomationTextEditPattern_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationTextEditTextChangedEventHandler_Impl: Sized { +pub trait IUIAutomationTextEditTextChangedEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn HandleTextEditTextChangedEvent(&self, sender: Option<&IUIAutomationElement>, texteditchangetype: TextEditChangeType, eventstrings: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IUIAutomationTextEditTextChangedEventHandler {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationTextEditTextChangedEventHandler_Vtbl { - pub const fn new() -> IUIAutomationTextEditTextChangedEventHandler_Vtbl - where - Identity: IUIAutomationTextEditTextChangedEventHandler_Impl, - { - unsafe extern "system" fn HandleTextEditTextChangedEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, texteditchangetype: TextEditChangeType, eventstrings: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationTextEditTextChangedEventHandler_Impl, - { + pub const fn new() -> IUIAutomationTextEditTextChangedEventHandler_Vtbl { + unsafe extern "system" fn HandleTextEditTextChangedEvent(this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, texteditchangetype: TextEditChangeType, eventstrings: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTextEditTextChangedEventHandler_Impl::HandleTextEditTextChangedEvent(this, windows_core::from_raw_borrowed(&sender), core::mem::transmute_copy(&texteditchangetype), core::mem::transmute_copy(&eventstrings)).into() } @@ -10643,7 +8366,7 @@ impl IUIAutomationTextEditTextChangedEventHandler_Vtbl { iid == &::IID } } -pub trait IUIAutomationTextPattern_Impl: Sized { +pub trait IUIAutomationTextPattern_Impl: Sized + windows_core::IUnknownImpl { fn RangeFromPoint(&self, pt: &super::super::Foundation::POINT) -> windows_core::Result; fn RangeFromChild(&self, child: Option<&IUIAutomationElement>) -> windows_core::Result; fn GetSelection(&self) -> windows_core::Result; @@ -10653,14 +8376,8 @@ pub trait IUIAutomationTextPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationTextPattern {} impl IUIAutomationTextPattern_Vtbl { - pub const fn new() -> IUIAutomationTextPattern_Vtbl - where - Identity: IUIAutomationTextPattern_Impl, - { - unsafe extern "system" fn RangeFromPoint(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextPattern_Impl, - { + pub const fn new() -> IUIAutomationTextPattern_Vtbl { + unsafe extern "system" fn RangeFromPoint(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextPattern_Impl::RangeFromPoint(this, core::mem::transmute(&pt)) { Ok(ok__) => { @@ -10670,10 +8387,7 @@ impl IUIAutomationTextPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RangeFromChild(this: *mut core::ffi::c_void, child: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextPattern_Impl, - { + unsafe extern "system" fn RangeFromChild(this: *mut core::ffi::c_void, child: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextPattern_Impl::RangeFromChild(this, windows_core::from_raw_borrowed(&child)) { Ok(ok__) => { @@ -10683,10 +8397,7 @@ impl IUIAutomationTextPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ranges: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextPattern_Impl, - { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ranges: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextPattern_Impl::GetSelection(this) { Ok(ok__) => { @@ -10696,10 +8407,7 @@ impl IUIAutomationTextPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVisibleRanges(this: *mut core::ffi::c_void, ranges: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextPattern_Impl, - { + unsafe extern "system" fn GetVisibleRanges(this: *mut core::ffi::c_void, ranges: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextPattern_Impl::GetVisibleRanges(this) { Ok(ok__) => { @@ -10709,10 +8417,7 @@ impl IUIAutomationTextPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DocumentRange(this: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextPattern_Impl, - { + unsafe extern "system" fn DocumentRange(this: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextPattern_Impl::DocumentRange(this) { Ok(ok__) => { @@ -10722,10 +8427,7 @@ impl IUIAutomationTextPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedTextSelection(this: *mut core::ffi::c_void, supportedtextselection: *mut SupportedTextSelection) -> windows_core::HRESULT - where - Identity: IUIAutomationTextPattern_Impl, - { + unsafe extern "system" fn SupportedTextSelection(this: *mut core::ffi::c_void, supportedtextselection: *mut SupportedTextSelection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextPattern_Impl::SupportedTextSelection(this) { Ok(ok__) => { @@ -10755,14 +8457,8 @@ pub trait IUIAutomationTextPattern2_Impl: Sized + IUIAutomationTextPattern_Impl } impl windows_core::RuntimeName for IUIAutomationTextPattern2 {} impl IUIAutomationTextPattern2_Vtbl { - pub const fn new() -> IUIAutomationTextPattern2_Vtbl - where - Identity: IUIAutomationTextPattern2_Impl, - { - unsafe extern "system" fn RangeFromAnnotation(this: *mut core::ffi::c_void, annotation: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextPattern2_Impl, - { + pub const fn new() -> IUIAutomationTextPattern2_Vtbl { + unsafe extern "system" fn RangeFromAnnotation(this: *mut core::ffi::c_void, annotation: *mut core::ffi::c_void, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextPattern2_Impl::RangeFromAnnotation(this, windows_core::from_raw_borrowed(&annotation)) { Ok(ok__) => { @@ -10772,10 +8468,7 @@ impl IUIAutomationTextPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCaretRange(this: *mut core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextPattern2_Impl, - { + unsafe extern "system" fn GetCaretRange(this: *mut core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextPattern2_Impl::GetCaretRange(this, core::mem::transmute_copy(&isactive)) { Ok(ok__) => { @@ -10796,7 +8489,7 @@ impl IUIAutomationTextPattern2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIAutomationTextRange_Impl: Sized { +pub trait IUIAutomationTextRange_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Compare(&self, range: Option<&IUIAutomationTextRange>) -> windows_core::Result; fn CompareEndpoints(&self, srcendpoint: TextPatternRangeEndpoint, range: Option<&IUIAutomationTextRange>, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result; @@ -10820,14 +8513,8 @@ pub trait IUIAutomationTextRange_Impl: Sized { impl windows_core::RuntimeName for IUIAutomationTextRange {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationTextRange_Vtbl { - pub const fn new() -> IUIAutomationTextRange_Vtbl - where - Identity: IUIAutomationTextRange_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, clonedrange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + pub const fn new() -> IUIAutomationTextRange_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, clonedrange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::Clone(this) { Ok(ok__) => { @@ -10837,10 +8524,7 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, aresame: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, aresame: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::Compare(this, windows_core::from_raw_borrowed(&range)) { Ok(ok__) => { @@ -10850,10 +8534,7 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareEndpoints(this: *mut core::ffi::c_void, srcendpoint: TextPatternRangeEndpoint, range: *mut core::ffi::c_void, targetendpoint: TextPatternRangeEndpoint, compvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn CompareEndpoints(this: *mut core::ffi::c_void, srcendpoint: TextPatternRangeEndpoint, range: *mut core::ffi::c_void, targetendpoint: TextPatternRangeEndpoint, compvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::CompareEndpoints(this, core::mem::transmute_copy(&srcendpoint), windows_core::from_raw_borrowed(&range), core::mem::transmute_copy(&targetendpoint)) { Ok(ok__) => { @@ -10863,17 +8544,11 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExpandToEnclosingUnit(this: *mut core::ffi::c_void, textunit: TextUnit) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn ExpandToEnclosingUnit(this: *mut core::ffi::c_void, textunit: TextUnit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTextRange_Impl::ExpandToEnclosingUnit(this, core::mem::transmute_copy(&textunit)).into() } - unsafe extern "system" fn FindAttribute(this: *mut core::ffi::c_void, attr: UIA_TEXTATTRIBUTE_ID, val: core::mem::MaybeUninit, backward: super::super::Foundation::BOOL, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn FindAttribute(this: *mut core::ffi::c_void, attr: UIA_TEXTATTRIBUTE_ID, val: core::mem::MaybeUninit, backward: super::super::Foundation::BOOL, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::FindAttribute(this, core::mem::transmute_copy(&attr), core::mem::transmute(&val), core::mem::transmute_copy(&backward)) { Ok(ok__) => { @@ -10883,10 +8558,7 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, text: core::mem::MaybeUninit, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::FindText(this, core::mem::transmute(&text), core::mem::transmute_copy(&backward), core::mem::transmute_copy(&ignorecase)) { Ok(ok__) => { @@ -10896,10 +8568,7 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeValue(this: *mut core::ffi::c_void, attr: UIA_TEXTATTRIBUTE_ID, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn GetAttributeValue(this: *mut core::ffi::c_void, attr: UIA_TEXTATTRIBUTE_ID, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::GetAttributeValue(this, core::mem::transmute_copy(&attr)) { Ok(ok__) => { @@ -10909,10 +8578,7 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBoundingRectangles(this: *mut core::ffi::c_void, boundingrects: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn GetBoundingRectangles(this: *mut core::ffi::c_void, boundingrects: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::GetBoundingRectangles(this) { Ok(ok__) => { @@ -10922,10 +8588,7 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnclosingElement(this: *mut core::ffi::c_void, enclosingelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn GetEnclosingElement(this: *mut core::ffi::c_void, enclosingelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::GetEnclosingElement(this) { Ok(ok__) => { @@ -10935,10 +8598,7 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, maxlength: i32, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, maxlength: i32, text: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::GetText(this, core::mem::transmute_copy(&maxlength)) { Ok(ok__) => { @@ -10948,10 +8608,7 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, unit: TextUnit, count: i32, moved: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, unit: TextUnit, count: i32, moved: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::Move(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -10961,10 +8618,7 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveEndpointByUnit(this: *mut core::ffi::c_void, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, moved: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn MoveEndpointByUnit(this: *mut core::ffi::c_void, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, moved: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::MoveEndpointByUnit(this, core::mem::transmute_copy(&endpoint), core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -10974,45 +8628,27 @@ impl IUIAutomationTextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveEndpointByRange(this: *mut core::ffi::c_void, srcendpoint: TextPatternRangeEndpoint, range: *mut core::ffi::c_void, targetendpoint: TextPatternRangeEndpoint) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn MoveEndpointByRange(this: *mut core::ffi::c_void, srcendpoint: TextPatternRangeEndpoint, range: *mut core::ffi::c_void, targetendpoint: TextPatternRangeEndpoint) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTextRange_Impl::MoveEndpointByRange(this, core::mem::transmute_copy(&srcendpoint), windows_core::from_raw_borrowed(&range), core::mem::transmute_copy(&targetendpoint)).into() } - unsafe extern "system" fn Select(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTextRange_Impl::Select(this).into() } - unsafe extern "system" fn AddToSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn AddToSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTextRange_Impl::AddToSelection(this).into() } - unsafe extern "system" fn RemoveFromSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn RemoveFromSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTextRange_Impl::RemoveFromSelection(this).into() } - unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, aligntotop: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, aligntotop: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTextRange_Impl::ScrollIntoView(this, core::mem::transmute_copy(&aligntotop)).into() } - unsafe extern "system" fn GetChildren(this: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange_Impl, - { + unsafe extern "system" fn GetChildren(this: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::GetChildren(this) { Ok(ok__) => { @@ -11056,14 +8692,8 @@ pub trait IUIAutomationTextRange2_Impl: Sized + IUIAutomationTextRange_Impl { impl windows_core::RuntimeName for IUIAutomationTextRange2 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationTextRange2_Vtbl { - pub const fn new() -> IUIAutomationTextRange2_Vtbl - where - Identity: IUIAutomationTextRange2_Impl, - { - unsafe extern "system" fn ShowContextMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange2_Impl, - { + pub const fn new() -> IUIAutomationTextRange2_Vtbl { + unsafe extern "system" fn ShowContextMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTextRange2_Impl::ShowContextMenu(this).into() } @@ -11083,14 +8713,8 @@ pub trait IUIAutomationTextRange3_Impl: Sized + IUIAutomationTextRange2_Impl { impl windows_core::RuntimeName for IUIAutomationTextRange3 {} #[cfg(feature = "Win32_System_Com")] impl IUIAutomationTextRange3_Vtbl { - pub const fn new() -> IUIAutomationTextRange3_Vtbl - where - Identity: IUIAutomationTextRange3_Impl, - { - unsafe extern "system" fn GetEnclosingElementBuildCache(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, enclosingelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange3_Impl, - { + pub const fn new() -> IUIAutomationTextRange3_Vtbl { + unsafe extern "system" fn GetEnclosingElementBuildCache(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, enclosingelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange3_Impl::GetEnclosingElementBuildCache(this, windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -11100,10 +8724,7 @@ impl IUIAutomationTextRange3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChildrenBuildCache(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange3_Impl, - { + unsafe extern "system" fn GetChildrenBuildCache(this: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, children: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange3_Impl::GetChildrenBuildCache(this, windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -11113,10 +8734,7 @@ impl IUIAutomationTextRange3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeValues(this: *mut core::ffi::c_void, attributeids: *const UIA_TEXTATTRIBUTE_ID, attributeidcount: i32, attributevalues: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRange3_Impl, - { + unsafe extern "system" fn GetAttributeValues(this: *mut core::ffi::c_void, attributeids: *const UIA_TEXTATTRIBUTE_ID, attributeidcount: i32, attributevalues: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange3_Impl::GetAttributeValues(this, core::mem::transmute_copy(&attributeids), core::mem::transmute_copy(&attributeidcount)) { Ok(ok__) => { @@ -11137,20 +8755,14 @@ impl IUIAutomationTextRange3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IUIAutomationTextRangeArray_Impl: Sized { +pub trait IUIAutomationTextRangeArray_Impl: Sized + windows_core::IUnknownImpl { fn Length(&self) -> windows_core::Result; fn GetElement(&self, index: i32) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAutomationTextRangeArray {} impl IUIAutomationTextRangeArray_Vtbl { - pub const fn new() -> IUIAutomationTextRangeArray_Vtbl - where - Identity: IUIAutomationTextRangeArray_Impl, - { - unsafe extern "system" fn Length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRangeArray_Impl, - { + pub const fn new() -> IUIAutomationTextRangeArray_Vtbl { + unsafe extern "system" fn Length(this: *mut core::ffi::c_void, length: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRangeArray_Impl::Length(this) { Ok(ok__) => { @@ -11160,10 +8772,7 @@ impl IUIAutomationTextRangeArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetElement(this: *mut core::ffi::c_void, index: i32, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTextRangeArray_Impl, - { + unsafe extern "system" fn GetElement(this: *mut core::ffi::c_void, index: i32, element: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRangeArray_Impl::GetElement(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -11179,28 +8788,19 @@ impl IUIAutomationTextRangeArray_Vtbl { iid == &::IID } } -pub trait IUIAutomationTogglePattern_Impl: Sized { +pub trait IUIAutomationTogglePattern_Impl: Sized + windows_core::IUnknownImpl { fn Toggle(&self) -> windows_core::Result<()>; fn CurrentToggleState(&self) -> windows_core::Result; fn CachedToggleState(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAutomationTogglePattern {} impl IUIAutomationTogglePattern_Vtbl { - pub const fn new() -> IUIAutomationTogglePattern_Vtbl - where - Identity: IUIAutomationTogglePattern_Impl, - { - unsafe extern "system" fn Toggle(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTogglePattern_Impl, - { + pub const fn new() -> IUIAutomationTogglePattern_Vtbl { + unsafe extern "system" fn Toggle(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTogglePattern_Impl::Toggle(this).into() } - unsafe extern "system" fn CurrentToggleState(this: *mut core::ffi::c_void, retval: *mut ToggleState) -> windows_core::HRESULT - where - Identity: IUIAutomationTogglePattern_Impl, - { + unsafe extern "system" fn CurrentToggleState(this: *mut core::ffi::c_void, retval: *mut ToggleState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTogglePattern_Impl::CurrentToggleState(this) { Ok(ok__) => { @@ -11210,10 +8810,7 @@ impl IUIAutomationTogglePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedToggleState(this: *mut core::ffi::c_void, retval: *mut ToggleState) -> windows_core::HRESULT - where - Identity: IUIAutomationTogglePattern_Impl, - { + unsafe extern "system" fn CachedToggleState(this: *mut core::ffi::c_void, retval: *mut ToggleState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTogglePattern_Impl::CachedToggleState(this) { Ok(ok__) => { @@ -11234,7 +8831,7 @@ impl IUIAutomationTogglePattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationTransformPattern_Impl: Sized { +pub trait IUIAutomationTransformPattern_Impl: Sized + windows_core::IUnknownImpl { fn Move(&self, x: f64, y: f64) -> windows_core::Result<()>; fn Resize(&self, width: f64, height: f64) -> windows_core::Result<()>; fn Rotate(&self, degrees: f64) -> windows_core::Result<()>; @@ -11247,35 +8844,20 @@ pub trait IUIAutomationTransformPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationTransformPattern {} impl IUIAutomationTransformPattern_Vtbl { - pub const fn new() -> IUIAutomationTransformPattern_Vtbl - where - Identity: IUIAutomationTransformPattern_Impl, - { - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, x: f64, y: f64) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern_Impl, - { + pub const fn new() -> IUIAutomationTransformPattern_Vtbl { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, x: f64, y: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTransformPattern_Impl::Move(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, width: f64, height: f64) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern_Impl, - { + unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, width: f64, height: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTransformPattern_Impl::Resize(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f64) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern_Impl, - { + unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTransformPattern_Impl::Rotate(this, core::mem::transmute_copy(°rees)).into() } - unsafe extern "system" fn CurrentCanMove(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern_Impl, - { + unsafe extern "system" fn CurrentCanMove(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CurrentCanMove(this) { Ok(ok__) => { @@ -11285,10 +8867,7 @@ impl IUIAutomationTransformPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentCanResize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern_Impl, - { + unsafe extern "system" fn CurrentCanResize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CurrentCanResize(this) { Ok(ok__) => { @@ -11298,10 +8877,7 @@ impl IUIAutomationTransformPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentCanRotate(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern_Impl, - { + unsafe extern "system" fn CurrentCanRotate(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CurrentCanRotate(this) { Ok(ok__) => { @@ -11311,10 +8887,7 @@ impl IUIAutomationTransformPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedCanMove(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern_Impl, - { + unsafe extern "system" fn CachedCanMove(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CachedCanMove(this) { Ok(ok__) => { @@ -11324,10 +8897,7 @@ impl IUIAutomationTransformPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedCanResize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern_Impl, - { + unsafe extern "system" fn CachedCanResize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CachedCanResize(this) { Ok(ok__) => { @@ -11337,10 +8907,7 @@ impl IUIAutomationTransformPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedCanRotate(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern_Impl, - { + unsafe extern "system" fn CachedCanRotate(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CachedCanRotate(this) { Ok(ok__) => { @@ -11381,28 +8948,16 @@ pub trait IUIAutomationTransformPattern2_Impl: Sized + IUIAutomationTransformPat } impl windows_core::RuntimeName for IUIAutomationTransformPattern2 {} impl IUIAutomationTransformPattern2_Vtbl { - pub const fn new() -> IUIAutomationTransformPattern2_Vtbl - where - Identity: IUIAutomationTransformPattern2_Impl, - { - unsafe extern "system" fn Zoom(this: *mut core::ffi::c_void, zoomvalue: f64) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern2_Impl, - { + pub const fn new() -> IUIAutomationTransformPattern2_Vtbl { + unsafe extern "system" fn Zoom(this: *mut core::ffi::c_void, zoomvalue: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTransformPattern2_Impl::Zoom(this, core::mem::transmute_copy(&zoomvalue)).into() } - unsafe extern "system" fn ZoomByUnit(this: *mut core::ffi::c_void, zoomunit: ZoomUnit) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern2_Impl, - { + unsafe extern "system" fn ZoomByUnit(this: *mut core::ffi::c_void, zoomunit: ZoomUnit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTransformPattern2_Impl::ZoomByUnit(this, core::mem::transmute_copy(&zoomunit)).into() } - unsafe extern "system" fn CurrentCanZoom(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern2_Impl, - { + unsafe extern "system" fn CurrentCanZoom(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern2_Impl::CurrentCanZoom(this) { Ok(ok__) => { @@ -11412,10 +8967,7 @@ impl IUIAutomationTransformPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedCanZoom(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern2_Impl, - { + unsafe extern "system" fn CachedCanZoom(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern2_Impl::CachedCanZoom(this) { Ok(ok__) => { @@ -11425,10 +8977,7 @@ impl IUIAutomationTransformPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentZoomLevel(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern2_Impl, - { + unsafe extern "system" fn CurrentZoomLevel(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern2_Impl::CurrentZoomLevel(this) { Ok(ok__) => { @@ -11438,10 +8987,7 @@ impl IUIAutomationTransformPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedZoomLevel(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern2_Impl, - { + unsafe extern "system" fn CachedZoomLevel(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern2_Impl::CachedZoomLevel(this) { Ok(ok__) => { @@ -11451,10 +8997,7 @@ impl IUIAutomationTransformPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentZoomMinimum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern2_Impl, - { + unsafe extern "system" fn CurrentZoomMinimum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern2_Impl::CurrentZoomMinimum(this) { Ok(ok__) => { @@ -11464,10 +9007,7 @@ impl IUIAutomationTransformPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedZoomMinimum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern2_Impl, - { + unsafe extern "system" fn CachedZoomMinimum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern2_Impl::CachedZoomMinimum(this) { Ok(ok__) => { @@ -11477,10 +9017,7 @@ impl IUIAutomationTransformPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentZoomMaximum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern2_Impl, - { + unsafe extern "system" fn CurrentZoomMaximum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern2_Impl::CurrentZoomMaximum(this) { Ok(ok__) => { @@ -11490,10 +9027,7 @@ impl IUIAutomationTransformPattern2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedZoomMaximum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAutomationTransformPattern2_Impl, - { + unsafe extern "system" fn CachedZoomMaximum(this: *mut core::ffi::c_void, retval: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern2_Impl::CachedZoomMaximum(this) { Ok(ok__) => { @@ -11521,7 +9055,7 @@ impl IUIAutomationTransformPattern2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IUIAutomationTreeWalker_Impl: Sized { +pub trait IUIAutomationTreeWalker_Impl: Sized + windows_core::IUnknownImpl { fn GetParentElement(&self, element: Option<&IUIAutomationElement>) -> windows_core::Result; fn GetFirstChildElement(&self, element: Option<&IUIAutomationElement>) -> windows_core::Result; fn GetLastChildElement(&self, element: Option<&IUIAutomationElement>) -> windows_core::Result; @@ -11538,14 +9072,8 @@ pub trait IUIAutomationTreeWalker_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationTreeWalker {} impl IUIAutomationTreeWalker_Vtbl { - pub const fn new() -> IUIAutomationTreeWalker_Vtbl - where - Identity: IUIAutomationTreeWalker_Impl, - { - unsafe extern "system" fn GetParentElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + pub const fn new() -> IUIAutomationTreeWalker_Vtbl { + unsafe extern "system" fn GetParentElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::GetParentElement(this, windows_core::from_raw_borrowed(&element)) { Ok(ok__) => { @@ -11555,10 +9083,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFirstChildElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, first: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn GetFirstChildElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, first: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::GetFirstChildElement(this, windows_core::from_raw_borrowed(&element)) { Ok(ok__) => { @@ -11568,10 +9093,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastChildElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, last: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn GetLastChildElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, last: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::GetLastChildElement(this, windows_core::from_raw_borrowed(&element)) { Ok(ok__) => { @@ -11581,10 +9103,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSiblingElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, next: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn GetNextSiblingElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, next: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::GetNextSiblingElement(this, windows_core::from_raw_borrowed(&element)) { Ok(ok__) => { @@ -11594,10 +9113,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreviousSiblingElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, previous: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn GetPreviousSiblingElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, previous: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::GetPreviousSiblingElement(this, windows_core::from_raw_borrowed(&element)) { Ok(ok__) => { @@ -11607,10 +9123,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NormalizeElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, normalized: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn NormalizeElement(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, normalized: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::NormalizeElement(this, windows_core::from_raw_borrowed(&element)) { Ok(ok__) => { @@ -11620,10 +9133,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn GetParentElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, parent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::GetParentElementBuildCache(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -11633,10 +9143,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFirstChildElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, first: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn GetFirstChildElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, first: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::GetFirstChildElementBuildCache(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -11646,10 +9153,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastChildElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, last: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn GetLastChildElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, last: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::GetLastChildElementBuildCache(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -11659,10 +9163,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextSiblingElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, next: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn GetNextSiblingElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, next: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::GetNextSiblingElementBuildCache(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -11672,10 +9173,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreviousSiblingElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, previous: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn GetPreviousSiblingElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, previous: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::GetPreviousSiblingElementBuildCache(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -11685,10 +9183,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NormalizeElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, normalized: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn NormalizeElementBuildCache(this: *mut core::ffi::c_void, element: *mut core::ffi::c_void, cacherequest: *mut core::ffi::c_void, normalized: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::NormalizeElementBuildCache(this, windows_core::from_raw_borrowed(&element), windows_core::from_raw_borrowed(&cacherequest)) { Ok(ok__) => { @@ -11698,10 +9193,7 @@ impl IUIAutomationTreeWalker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Condition(this: *mut core::ffi::c_void, condition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationTreeWalker_Impl, - { + unsafe extern "system" fn Condition(this: *mut core::ffi::c_void, condition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTreeWalker_Impl::Condition(this) { Ok(ok__) => { @@ -11732,7 +9224,7 @@ impl IUIAutomationTreeWalker_Vtbl { iid == &::IID } } -pub trait IUIAutomationValuePattern_Impl: Sized { +pub trait IUIAutomationValuePattern_Impl: Sized + windows_core::IUnknownImpl { fn SetValue(&self, val: &windows_core::BSTR) -> windows_core::Result<()>; fn CurrentValue(&self) -> windows_core::Result; fn CurrentIsReadOnly(&self) -> windows_core::Result; @@ -11741,21 +9233,12 @@ pub trait IUIAutomationValuePattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationValuePattern {} impl IUIAutomationValuePattern_Vtbl { - pub const fn new() -> IUIAutomationValuePattern_Vtbl - where - Identity: IUIAutomationValuePattern_Impl, - { - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationValuePattern_Impl, - { + pub const fn new() -> IUIAutomationValuePattern_Vtbl { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, val: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationValuePattern_Impl::SetValue(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn CurrentValue(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationValuePattern_Impl, - { + unsafe extern "system" fn CurrentValue(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationValuePattern_Impl::CurrentValue(this) { Ok(ok__) => { @@ -11765,10 +9248,7 @@ impl IUIAutomationValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationValuePattern_Impl, - { + unsafe extern "system" fn CurrentIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationValuePattern_Impl::CurrentIsReadOnly(this) { Ok(ok__) => { @@ -11778,10 +9258,7 @@ impl IUIAutomationValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedValue(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIAutomationValuePattern_Impl, - { + unsafe extern "system" fn CachedValue(this: *mut core::ffi::c_void, retval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationValuePattern_Impl::CachedValue(this) { Ok(ok__) => { @@ -11791,10 +9268,7 @@ impl IUIAutomationValuePattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationValuePattern_Impl, - { + unsafe extern "system" fn CachedIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationValuePattern_Impl::CachedIsReadOnly(this) { Ok(ok__) => { @@ -11817,19 +9291,13 @@ impl IUIAutomationValuePattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationVirtualizedItemPattern_Impl: Sized { +pub trait IUIAutomationVirtualizedItemPattern_Impl: Sized + windows_core::IUnknownImpl { fn Realize(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAutomationVirtualizedItemPattern {} impl IUIAutomationVirtualizedItemPattern_Vtbl { - pub const fn new() -> IUIAutomationVirtualizedItemPattern_Vtbl - where - Identity: IUIAutomationVirtualizedItemPattern_Impl, - { - unsafe extern "system" fn Realize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationVirtualizedItemPattern_Impl, - { + pub const fn new() -> IUIAutomationVirtualizedItemPattern_Vtbl { + unsafe extern "system" fn Realize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationVirtualizedItemPattern_Impl::Realize(this).into() } @@ -11839,7 +9307,7 @@ impl IUIAutomationVirtualizedItemPattern_Vtbl { iid == &::IID } } -pub trait IUIAutomationWindowPattern_Impl: Sized { +pub trait IUIAutomationWindowPattern_Impl: Sized + windows_core::IUnknownImpl { fn Close(&self) -> windows_core::Result<()>; fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result; fn SetWindowVisualState(&self, state: WindowVisualState) -> windows_core::Result<()>; @@ -11858,21 +9326,12 @@ pub trait IUIAutomationWindowPattern_Impl: Sized { } impl windows_core::RuntimeName for IUIAutomationWindowPattern {} impl IUIAutomationWindowPattern_Vtbl { - pub const fn new() -> IUIAutomationWindowPattern_Vtbl - where - Identity: IUIAutomationWindowPattern_Impl, - { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + pub const fn new() -> IUIAutomationWindowPattern_Vtbl { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationWindowPattern_Impl::Close(this).into() } - unsafe extern "system" fn WaitForInputIdle(this: *mut core::ffi::c_void, milliseconds: i32, success: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn WaitForInputIdle(this: *mut core::ffi::c_void, milliseconds: i32, success: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::WaitForInputIdle(this, core::mem::transmute_copy(&milliseconds)) { Ok(ok__) => { @@ -11882,17 +9341,11 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWindowVisualState(this: *mut core::ffi::c_void, state: WindowVisualState) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn SetWindowVisualState(this: *mut core::ffi::c_void, state: WindowVisualState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationWindowPattern_Impl::SetWindowVisualState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn CurrentCanMaximize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CurrentCanMaximize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CurrentCanMaximize(this) { Ok(ok__) => { @@ -11902,10 +9355,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentCanMinimize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CurrentCanMinimize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CurrentCanMinimize(this) { Ok(ok__) => { @@ -11915,10 +9365,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsModal(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CurrentIsModal(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CurrentIsModal(this) { Ok(ok__) => { @@ -11928,10 +9375,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentIsTopmost(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CurrentIsTopmost(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CurrentIsTopmost(this) { Ok(ok__) => { @@ -11941,10 +9385,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentWindowVisualState(this: *mut core::ffi::c_void, retval: *mut WindowVisualState) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CurrentWindowVisualState(this: *mut core::ffi::c_void, retval: *mut WindowVisualState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CurrentWindowVisualState(this) { Ok(ok__) => { @@ -11954,10 +9395,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentWindowInteractionState(this: *mut core::ffi::c_void, retval: *mut WindowInteractionState) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CurrentWindowInteractionState(this: *mut core::ffi::c_void, retval: *mut WindowInteractionState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CurrentWindowInteractionState(this) { Ok(ok__) => { @@ -11967,10 +9405,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedCanMaximize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CachedCanMaximize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CachedCanMaximize(this) { Ok(ok__) => { @@ -11980,10 +9415,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedCanMinimize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CachedCanMinimize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CachedCanMinimize(this) { Ok(ok__) => { @@ -11993,10 +9425,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsModal(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CachedIsModal(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CachedIsModal(this) { Ok(ok__) => { @@ -12006,10 +9435,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedIsTopmost(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CachedIsTopmost(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CachedIsTopmost(this) { Ok(ok__) => { @@ -12019,10 +9445,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedWindowVisualState(this: *mut core::ffi::c_void, retval: *mut WindowVisualState) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CachedWindowVisualState(this: *mut core::ffi::c_void, retval: *mut WindowVisualState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CachedWindowVisualState(this) { Ok(ok__) => { @@ -12032,10 +9455,7 @@ impl IUIAutomationWindowPattern_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CachedWindowInteractionState(this: *mut core::ffi::c_void, retval: *mut WindowInteractionState) -> windows_core::HRESULT - where - Identity: IUIAutomationWindowPattern_Impl, - { + unsafe extern "system" fn CachedWindowInteractionState(this: *mut core::ffi::c_void, retval: *mut WindowInteractionState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CachedWindowInteractionState(this) { Ok(ok__) => { @@ -12068,28 +9488,19 @@ impl IUIAutomationWindowPattern_Vtbl { iid == &::IID } } -pub trait IValueProvider_Impl: Sized { +pub trait IValueProvider_Impl: Sized + windows_core::IUnknownImpl { fn SetValue(&self, val: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Value(&self) -> windows_core::Result; fn IsReadOnly(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IValueProvider {} impl IValueProvider_Vtbl { - pub const fn new() -> IValueProvider_Vtbl - where - Identity: IValueProvider_Impl, - { - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, val: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IValueProvider_Impl, - { + pub const fn new() -> IValueProvider_Vtbl { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, val: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IValueProvider_Impl::SetValue(this, core::mem::transmute(&val)).into() } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IValueProvider_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueProvider_Impl::Value(this) { Ok(ok__) => { @@ -12099,10 +9510,7 @@ impl IValueProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IValueProvider_Impl, - { + unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueProvider_Impl::IsReadOnly(this) { Ok(ok__) => { @@ -12123,19 +9531,13 @@ impl IValueProvider_Vtbl { iid == &::IID } } -pub trait IVirtualizedItemProvider_Impl: Sized { +pub trait IVirtualizedItemProvider_Impl: Sized + windows_core::IUnknownImpl { fn Realize(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVirtualizedItemProvider {} impl IVirtualizedItemProvider_Vtbl { - pub const fn new() -> IVirtualizedItemProvider_Vtbl - where - Identity: IVirtualizedItemProvider_Impl, - { - unsafe extern "system" fn Realize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IVirtualizedItemProvider_Impl, - { + pub const fn new() -> IVirtualizedItemProvider_Vtbl { + unsafe extern "system" fn Realize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVirtualizedItemProvider_Impl::Realize(this).into() } @@ -12145,7 +9547,7 @@ impl IVirtualizedItemProvider_Vtbl { iid == &::IID } } -pub trait IWindowProvider_Impl: Sized { +pub trait IWindowProvider_Impl: Sized + windows_core::IUnknownImpl { fn SetVisualState(&self, state: WindowVisualState) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result; @@ -12158,28 +9560,16 @@ pub trait IWindowProvider_Impl: Sized { } impl windows_core::RuntimeName for IWindowProvider {} impl IWindowProvider_Vtbl { - pub const fn new() -> IWindowProvider_Vtbl - where - Identity: IWindowProvider_Impl, - { - unsafe extern "system" fn SetVisualState(this: *mut core::ffi::c_void, state: WindowVisualState) -> windows_core::HRESULT - where - Identity: IWindowProvider_Impl, - { + pub const fn new() -> IWindowProvider_Vtbl { + unsafe extern "system" fn SetVisualState(this: *mut core::ffi::c_void, state: WindowVisualState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowProvider_Impl::SetVisualState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWindowProvider_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWindowProvider_Impl::Close(this).into() } - unsafe extern "system" fn WaitForInputIdle(this: *mut core::ffi::c_void, milliseconds: i32, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWindowProvider_Impl, - { + unsafe extern "system" fn WaitForInputIdle(this: *mut core::ffi::c_void, milliseconds: i32, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::WaitForInputIdle(this, core::mem::transmute_copy(&milliseconds)) { Ok(ok__) => { @@ -12189,10 +9579,7 @@ impl IWindowProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanMaximize(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWindowProvider_Impl, - { + unsafe extern "system" fn CanMaximize(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::CanMaximize(this) { Ok(ok__) => { @@ -12202,10 +9589,7 @@ impl IWindowProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanMinimize(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWindowProvider_Impl, - { + unsafe extern "system" fn CanMinimize(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::CanMinimize(this) { Ok(ok__) => { @@ -12215,10 +9599,7 @@ impl IWindowProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsModal(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWindowProvider_Impl, - { + unsafe extern "system" fn IsModal(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::IsModal(this) { Ok(ok__) => { @@ -12228,10 +9609,7 @@ impl IWindowProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WindowVisualState(this: *mut core::ffi::c_void, pretval: *mut WindowVisualState) -> windows_core::HRESULT - where - Identity: IWindowProvider_Impl, - { + unsafe extern "system" fn WindowVisualState(this: *mut core::ffi::c_void, pretval: *mut WindowVisualState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::WindowVisualState(this) { Ok(ok__) => { @@ -12241,10 +9619,7 @@ impl IWindowProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn WindowInteractionState(this: *mut core::ffi::c_void, pretval: *mut WindowInteractionState) -> windows_core::HRESULT - where - Identity: IWindowProvider_Impl, - { + unsafe extern "system" fn WindowInteractionState(this: *mut core::ffi::c_void, pretval: *mut WindowInteractionState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::WindowInteractionState(this) { Ok(ok__) => { @@ -12254,10 +9629,7 @@ impl IWindowProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsTopmost(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IWindowProvider_Impl, - { + unsafe extern "system" fn IsTopmost(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::IsTopmost(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Animation/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Animation/impl.rs index 50992d5470..a0ef2c8396 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Animation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Animation/impl.rs @@ -1,4 +1,4 @@ -pub trait IUIAnimationInterpolator_Impl: Sized { +pub trait IUIAnimationInterpolator_Impl: Sized + windows_core::IUnknownImpl { fn SetInitialValueAndVelocity(&self, initialvalue: f64, initialvelocity: f64) -> windows_core::Result<()>; fn SetDuration(&self, duration: f64) -> windows_core::Result<()>; fn GetDuration(&self) -> windows_core::Result; @@ -9,28 +9,16 @@ pub trait IUIAnimationInterpolator_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationInterpolator {} impl IUIAnimationInterpolator_Vtbl { - pub const fn new() -> IUIAnimationInterpolator_Vtbl - where - Identity: IUIAnimationInterpolator_Impl, - { - unsafe extern "system" fn SetInitialValueAndVelocity(this: *mut core::ffi::c_void, initialvalue: f64, initialvelocity: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator_Impl, - { + pub const fn new() -> IUIAnimationInterpolator_Vtbl { + unsafe extern "system" fn SetInitialValueAndVelocity(this: *mut core::ffi::c_void, initialvalue: f64, initialvelocity: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationInterpolator_Impl::SetInitialValueAndVelocity(this, core::mem::transmute_copy(&initialvalue), core::mem::transmute_copy(&initialvelocity)).into() } - unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, duration: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator_Impl, - { + unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, duration: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationInterpolator_Impl::SetDuration(this, core::mem::transmute_copy(&duration)).into() } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, duration: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, duration: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationInterpolator_Impl::GetDuration(this) { Ok(ok__) => { @@ -40,10 +28,7 @@ impl IUIAnimationInterpolator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFinalValue(this: *mut core::ffi::c_void, value: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator_Impl, - { + unsafe extern "system" fn GetFinalValue(this: *mut core::ffi::c_void, value: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationInterpolator_Impl::GetFinalValue(this) { Ok(ok__) => { @@ -53,10 +38,7 @@ impl IUIAnimationInterpolator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InterpolateValue(this: *mut core::ffi::c_void, offset: f64, value: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator_Impl, - { + unsafe extern "system" fn InterpolateValue(this: *mut core::ffi::c_void, offset: f64, value: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationInterpolator_Impl::InterpolateValue(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -66,10 +48,7 @@ impl IUIAnimationInterpolator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InterpolateVelocity(this: *mut core::ffi::c_void, offset: f64, velocity: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator_Impl, - { + unsafe extern "system" fn InterpolateVelocity(this: *mut core::ffi::c_void, offset: f64, velocity: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationInterpolator_Impl::InterpolateVelocity(this, core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -79,10 +58,7 @@ impl IUIAnimationInterpolator_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDependencies(this: *mut core::ffi::c_void, initialvaluedependencies: *mut UI_ANIMATION_DEPENDENCIES, initialvelocitydependencies: *mut UI_ANIMATION_DEPENDENCIES, durationdependencies: *mut UI_ANIMATION_DEPENDENCIES) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator_Impl, - { + unsafe extern "system" fn GetDependencies(this: *mut core::ffi::c_void, initialvaluedependencies: *mut UI_ANIMATION_DEPENDENCIES, initialvelocitydependencies: *mut UI_ANIMATION_DEPENDENCIES, durationdependencies: *mut UI_ANIMATION_DEPENDENCIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationInterpolator_Impl::GetDependencies(this, core::mem::transmute_copy(&initialvaluedependencies), core::mem::transmute_copy(&initialvelocitydependencies), core::mem::transmute_copy(&durationdependencies)).into() } @@ -101,7 +77,7 @@ impl IUIAnimationInterpolator_Vtbl { iid == &::IID } } -pub trait IUIAnimationInterpolator2_Impl: Sized { +pub trait IUIAnimationInterpolator2_Impl: Sized + windows_core::IUnknownImpl { fn GetDimension(&self) -> windows_core::Result; fn SetInitialValueAndVelocity(&self, initialvalue: *const f64, initialvelocity: *const f64, cdimension: u32) -> windows_core::Result<()>; fn SetDuration(&self, duration: f64) -> windows_core::Result<()>; @@ -114,14 +90,8 @@ pub trait IUIAnimationInterpolator2_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationInterpolator2 {} impl IUIAnimationInterpolator2_Vtbl { - pub const fn new() -> IUIAnimationInterpolator2_Vtbl - where - Identity: IUIAnimationInterpolator2_Impl, - { - unsafe extern "system" fn GetDimension(this: *mut core::ffi::c_void, dimension: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator2_Impl, - { + pub const fn new() -> IUIAnimationInterpolator2_Vtbl { + unsafe extern "system" fn GetDimension(this: *mut core::ffi::c_void, dimension: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationInterpolator2_Impl::GetDimension(this) { Ok(ok__) => { @@ -131,24 +101,15 @@ impl IUIAnimationInterpolator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialValueAndVelocity(this: *mut core::ffi::c_void, initialvalue: *const f64, initialvelocity: *const f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator2_Impl, - { + unsafe extern "system" fn SetInitialValueAndVelocity(this: *mut core::ffi::c_void, initialvalue: *const f64, initialvelocity: *const f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationInterpolator2_Impl::SetInitialValueAndVelocity(this, core::mem::transmute_copy(&initialvalue), core::mem::transmute_copy(&initialvelocity), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, duration: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator2_Impl, - { + unsafe extern "system" fn SetDuration(this: *mut core::ffi::c_void, duration: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationInterpolator2_Impl::SetDuration(this, core::mem::transmute_copy(&duration)).into() } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, duration: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator2_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, duration: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationInterpolator2_Impl::GetDuration(this) { Ok(ok__) => { @@ -158,38 +119,23 @@ impl IUIAnimationInterpolator2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFinalValue(this: *mut core::ffi::c_void, value: *mut f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator2_Impl, - { + unsafe extern "system" fn GetFinalValue(this: *mut core::ffi::c_void, value: *mut f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationInterpolator2_Impl::GetFinalValue(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn InterpolateValue(this: *mut core::ffi::c_void, offset: f64, value: *mut f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator2_Impl, - { + unsafe extern "system" fn InterpolateValue(this: *mut core::ffi::c_void, offset: f64, value: *mut f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationInterpolator2_Impl::InterpolateValue(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&value), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn InterpolateVelocity(this: *mut core::ffi::c_void, offset: f64, velocity: *mut f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator2_Impl, - { + unsafe extern "system" fn InterpolateVelocity(this: *mut core::ffi::c_void, offset: f64, velocity: *mut f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationInterpolator2_Impl::InterpolateVelocity(this, core::mem::transmute_copy(&offset), core::mem::transmute_copy(&velocity), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn GetPrimitiveInterpolation(this: *mut core::ffi::c_void, interpolation: *mut core::ffi::c_void, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator2_Impl, - { + unsafe extern "system" fn GetPrimitiveInterpolation(this: *mut core::ffi::c_void, interpolation: *mut core::ffi::c_void, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationInterpolator2_Impl::GetPrimitiveInterpolation(this, windows_core::from_raw_borrowed(&interpolation), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn GetDependencies(this: *mut core::ffi::c_void, initialvaluedependencies: *mut UI_ANIMATION_DEPENDENCIES, initialvelocitydependencies: *mut UI_ANIMATION_DEPENDENCIES, durationdependencies: *mut UI_ANIMATION_DEPENDENCIES) -> windows_core::HRESULT - where - Identity: IUIAnimationInterpolator2_Impl, - { + unsafe extern "system" fn GetDependencies(this: *mut core::ffi::c_void, initialvaluedependencies: *mut UI_ANIMATION_DEPENDENCIES, initialvelocitydependencies: *mut UI_ANIMATION_DEPENDENCIES, durationdependencies: *mut UI_ANIMATION_DEPENDENCIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationInterpolator2_Impl::GetDependencies(this, core::mem::transmute_copy(&initialvaluedependencies), core::mem::transmute_copy(&initialvelocitydependencies), core::mem::transmute_copy(&durationdependencies)).into() } @@ -210,19 +156,13 @@ impl IUIAnimationInterpolator2_Vtbl { iid == &::IID } } -pub trait IUIAnimationLoopIterationChangeHandler2_Impl: Sized { +pub trait IUIAnimationLoopIterationChangeHandler2_Impl: Sized + windows_core::IUnknownImpl { fn OnLoopIterationChanged(&self, storyboard: Option<&IUIAnimationStoryboard2>, id: usize, newiterationcount: u32, olditerationcount: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationLoopIterationChangeHandler2 {} impl IUIAnimationLoopIterationChangeHandler2_Vtbl { - pub const fn new() -> IUIAnimationLoopIterationChangeHandler2_Vtbl - where - Identity: IUIAnimationLoopIterationChangeHandler2_Impl, - { - unsafe extern "system" fn OnLoopIterationChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, id: usize, newiterationcount: u32, olditerationcount: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationLoopIterationChangeHandler2_Impl, - { + pub const fn new() -> IUIAnimationLoopIterationChangeHandler2_Vtbl { + unsafe extern "system" fn OnLoopIterationChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, id: usize, newiterationcount: u32, olditerationcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationLoopIterationChangeHandler2_Impl::OnLoopIterationChanged(this, windows_core::from_raw_borrowed(&storyboard), core::mem::transmute_copy(&id), core::mem::transmute_copy(&newiterationcount), core::mem::transmute_copy(&olditerationcount)).into() } @@ -232,7 +172,7 @@ impl IUIAnimationLoopIterationChangeHandler2_Vtbl { iid == &::IID } } -pub trait IUIAnimationManager_Impl: Sized { +pub trait IUIAnimationManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateAnimationVariable(&self, initialvalue: f64) -> windows_core::Result; fn ScheduleTransition(&self, variable: Option<&IUIAnimationVariable>, transition: Option<&IUIAnimationTransition>, timenow: f64) -> windows_core::Result<()>; fn CreateStoryboard(&self) -> windows_core::Result; @@ -255,14 +195,8 @@ pub trait IUIAnimationManager_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationManager {} impl IUIAnimationManager_Vtbl { - pub const fn new() -> IUIAnimationManager_Vtbl - where - Identity: IUIAnimationManager_Impl, - { - unsafe extern "system" fn CreateAnimationVariable(this: *mut core::ffi::c_void, initialvalue: f64, variable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + pub const fn new() -> IUIAnimationManager_Vtbl { + unsafe extern "system" fn CreateAnimationVariable(this: *mut core::ffi::c_void, initialvalue: f64, variable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager_Impl::CreateAnimationVariable(this, core::mem::transmute_copy(&initialvalue)) { Ok(ok__) => { @@ -272,17 +206,11 @@ impl IUIAnimationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScheduleTransition(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, timenow: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn ScheduleTransition(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, timenow: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::ScheduleTransition(this, windows_core::from_raw_borrowed(&variable), windows_core::from_raw_borrowed(&transition), core::mem::transmute_copy(&timenow)).into() } - unsafe extern "system" fn CreateStoryboard(this: *mut core::ffi::c_void, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn CreateStoryboard(this: *mut core::ffi::c_void, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager_Impl::CreateStoryboard(this) { Ok(ok__) => { @@ -292,31 +220,19 @@ impl IUIAnimationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FinishAllStoryboards(this: *mut core::ffi::c_void, completiondeadline: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn FinishAllStoryboards(this: *mut core::ffi::c_void, completiondeadline: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::FinishAllStoryboards(this, core::mem::transmute_copy(&completiondeadline)).into() } - unsafe extern "system" fn AbandonAllStoryboards(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn AbandonAllStoryboards(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::AbandonAllStoryboards(this).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, timenow: f64, updateresult: *mut UI_ANIMATION_UPDATE_RESULT) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, timenow: f64, updateresult: *mut UI_ANIMATION_UPDATE_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::Update(this, core::mem::transmute_copy(&timenow), core::mem::transmute_copy(&updateresult)).into() } - unsafe extern "system" fn GetVariableFromTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32, variable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn GetVariableFromTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32, variable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager_Impl::GetVariableFromTag(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -326,10 +242,7 @@ impl IUIAnimationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStoryboardFromTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn GetStoryboardFromTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager_Impl::GetStoryboardFromTag(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -339,10 +252,7 @@ impl IUIAnimationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut UI_ANIMATION_MANAGER_STATUS) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut UI_ANIMATION_MANAGER_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager_Impl::GetStatus(this) { Ok(ok__) => { @@ -352,73 +262,43 @@ impl IUIAnimationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAnimationMode(this: *mut core::ffi::c_void, mode: UI_ANIMATION_MODE) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn SetAnimationMode(this: *mut core::ffi::c_void, mode: UI_ANIMATION_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::SetAnimationMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::Resume(this).into() } - unsafe extern "system" fn SetManagerEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn SetManagerEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::SetManagerEventHandler(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn SetCancelPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn SetCancelPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::SetCancelPriorityComparison(this, windows_core::from_raw_borrowed(&comparison)).into() } - unsafe extern "system" fn SetTrimPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn SetTrimPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::SetTrimPriorityComparison(this, windows_core::from_raw_borrowed(&comparison)).into() } - unsafe extern "system" fn SetCompressPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn SetCompressPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::SetCompressPriorityComparison(this, windows_core::from_raw_borrowed(&comparison)).into() } - unsafe extern "system" fn SetConcludePriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn SetConcludePriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::SetConcludePriorityComparison(this, windows_core::from_raw_borrowed(&comparison)).into() } - unsafe extern "system" fn SetDefaultLongestAcceptableDelay(this: *mut core::ffi::c_void, delay: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn SetDefaultLongestAcceptableDelay(this: *mut core::ffi::c_void, delay: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::SetDefaultLongestAcceptableDelay(this, core::mem::transmute_copy(&delay)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager_Impl::Shutdown(this).into() } @@ -449,7 +329,7 @@ impl IUIAnimationManager_Vtbl { iid == &::IID } } -pub trait IUIAnimationManager2_Impl: Sized { +pub trait IUIAnimationManager2_Impl: Sized + windows_core::IUnknownImpl { fn CreateAnimationVectorVariable(&self, initialvalue: *const f64, cdimension: u32) -> windows_core::Result; fn CreateAnimationVariable(&self, initialvalue: f64) -> windows_core::Result; fn ScheduleTransition(&self, variable: Option<&IUIAnimationVariable2>, transition: Option<&IUIAnimationTransition2>, timenow: f64) -> windows_core::Result<()>; @@ -474,14 +354,8 @@ pub trait IUIAnimationManager2_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationManager2 {} impl IUIAnimationManager2_Vtbl { - pub const fn new() -> IUIAnimationManager2_Vtbl - where - Identity: IUIAnimationManager2_Impl, - { - unsafe extern "system" fn CreateAnimationVectorVariable(this: *mut core::ffi::c_void, initialvalue: *const f64, cdimension: u32, variable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + pub const fn new() -> IUIAnimationManager2_Vtbl { + unsafe extern "system" fn CreateAnimationVectorVariable(this: *mut core::ffi::c_void, initialvalue: *const f64, cdimension: u32, variable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager2_Impl::CreateAnimationVectorVariable(this, core::mem::transmute_copy(&initialvalue), core::mem::transmute_copy(&cdimension)) { Ok(ok__) => { @@ -491,10 +365,7 @@ impl IUIAnimationManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAnimationVariable(this: *mut core::ffi::c_void, initialvalue: f64, variable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn CreateAnimationVariable(this: *mut core::ffi::c_void, initialvalue: f64, variable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager2_Impl::CreateAnimationVariable(this, core::mem::transmute_copy(&initialvalue)) { Ok(ok__) => { @@ -504,17 +375,11 @@ impl IUIAnimationManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ScheduleTransition(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, timenow: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn ScheduleTransition(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, timenow: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::ScheduleTransition(this, windows_core::from_raw_borrowed(&variable), windows_core::from_raw_borrowed(&transition), core::mem::transmute_copy(&timenow)).into() } - unsafe extern "system" fn CreateStoryboard(this: *mut core::ffi::c_void, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn CreateStoryboard(this: *mut core::ffi::c_void, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager2_Impl::CreateStoryboard(this) { Ok(ok__) => { @@ -524,31 +389,19 @@ impl IUIAnimationManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FinishAllStoryboards(this: *mut core::ffi::c_void, completiondeadline: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn FinishAllStoryboards(this: *mut core::ffi::c_void, completiondeadline: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::FinishAllStoryboards(this, core::mem::transmute_copy(&completiondeadline)).into() } - unsafe extern "system" fn AbandonAllStoryboards(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn AbandonAllStoryboards(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::AbandonAllStoryboards(this).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, timenow: f64, updateresult: *mut UI_ANIMATION_UPDATE_RESULT) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, timenow: f64, updateresult: *mut UI_ANIMATION_UPDATE_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::Update(this, core::mem::transmute_copy(&timenow), core::mem::transmute_copy(&updateresult)).into() } - unsafe extern "system" fn GetVariableFromTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32, variable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn GetVariableFromTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32, variable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager2_Impl::GetVariableFromTag(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -558,10 +411,7 @@ impl IUIAnimationManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStoryboardFromTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn GetStoryboardFromTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager2_Impl::GetStoryboardFromTag(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -571,10 +421,7 @@ impl IUIAnimationManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EstimateNextEventTime(this: *mut core::ffi::c_void, seconds: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn EstimateNextEventTime(this: *mut core::ffi::c_void, seconds: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager2_Impl::EstimateNextEventTime(this) { Ok(ok__) => { @@ -584,10 +431,7 @@ impl IUIAnimationManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut UI_ANIMATION_MANAGER_STATUS) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut UI_ANIMATION_MANAGER_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationManager2_Impl::GetStatus(this) { Ok(ok__) => { @@ -597,73 +441,43 @@ impl IUIAnimationManager2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAnimationMode(this: *mut core::ffi::c_void, mode: UI_ANIMATION_MODE) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn SetAnimationMode(this: *mut core::ffi::c_void, mode: UI_ANIMATION_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::SetAnimationMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::Pause(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::Resume(this).into() } - unsafe extern "system" fn SetManagerEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn SetManagerEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::SetManagerEventHandler(this, windows_core::from_raw_borrowed(&handler), core::mem::transmute_copy(&fregisterfornextanimationevent)).into() } - unsafe extern "system" fn SetCancelPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn SetCancelPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::SetCancelPriorityComparison(this, windows_core::from_raw_borrowed(&comparison)).into() } - unsafe extern "system" fn SetTrimPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn SetTrimPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::SetTrimPriorityComparison(this, windows_core::from_raw_borrowed(&comparison)).into() } - unsafe extern "system" fn SetCompressPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn SetCompressPriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::SetCompressPriorityComparison(this, windows_core::from_raw_borrowed(&comparison)).into() } - unsafe extern "system" fn SetConcludePriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn SetConcludePriorityComparison(this: *mut core::ffi::c_void, comparison: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::SetConcludePriorityComparison(this, windows_core::from_raw_borrowed(&comparison)).into() } - unsafe extern "system" fn SetDefaultLongestAcceptableDelay(this: *mut core::ffi::c_void, delay: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn SetDefaultLongestAcceptableDelay(this: *mut core::ffi::c_void, delay: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::SetDefaultLongestAcceptableDelay(this, core::mem::transmute_copy(&delay)).into() } - unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationManager2_Impl, - { + unsafe extern "system" fn Shutdown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::Shutdown(this).into() } @@ -696,19 +510,13 @@ impl IUIAnimationManager2_Vtbl { iid == &::IID } } -pub trait IUIAnimationManagerEventHandler_Impl: Sized { +pub trait IUIAnimationManagerEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnManagerStatusChanged(&self, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationManagerEventHandler {} impl IUIAnimationManagerEventHandler_Vtbl { - pub const fn new() -> IUIAnimationManagerEventHandler_Vtbl - where - Identity: IUIAnimationManagerEventHandler_Impl, - { - unsafe extern "system" fn OnManagerStatusChanged(this: *mut core::ffi::c_void, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> windows_core::HRESULT - where - Identity: IUIAnimationManagerEventHandler_Impl, - { + pub const fn new() -> IUIAnimationManagerEventHandler_Vtbl { + unsafe extern "system" fn OnManagerStatusChanged(this: *mut core::ffi::c_void, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManagerEventHandler_Impl::OnManagerStatusChanged(this, core::mem::transmute_copy(&newstatus), core::mem::transmute_copy(&previousstatus)).into() } @@ -718,19 +526,13 @@ impl IUIAnimationManagerEventHandler_Vtbl { iid == &::IID } } -pub trait IUIAnimationManagerEventHandler2_Impl: Sized { +pub trait IUIAnimationManagerEventHandler2_Impl: Sized + windows_core::IUnknownImpl { fn OnManagerStatusChanged(&self, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationManagerEventHandler2 {} impl IUIAnimationManagerEventHandler2_Vtbl { - pub const fn new() -> IUIAnimationManagerEventHandler2_Vtbl - where - Identity: IUIAnimationManagerEventHandler2_Impl, - { - unsafe extern "system" fn OnManagerStatusChanged(this: *mut core::ffi::c_void, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> windows_core::HRESULT - where - Identity: IUIAnimationManagerEventHandler2_Impl, - { + pub const fn new() -> IUIAnimationManagerEventHandler2_Vtbl { + unsafe extern "system" fn OnManagerStatusChanged(this: *mut core::ffi::c_void, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManagerEventHandler2_Impl::OnManagerStatusChanged(this, core::mem::transmute_copy(&newstatus), core::mem::transmute_copy(&previousstatus)).into() } @@ -740,27 +542,18 @@ impl IUIAnimationManagerEventHandler2_Vtbl { iid == &::IID } } -pub trait IUIAnimationPrimitiveInterpolation_Impl: Sized { +pub trait IUIAnimationPrimitiveInterpolation_Impl: Sized + windows_core::IUnknownImpl { fn AddCubic(&self, dimension: u32, beginoffset: f64, constantcoefficient: f32, linearcoefficient: f32, quadraticcoefficient: f32, cubiccoefficient: f32) -> windows_core::Result<()>; fn AddSinusoidal(&self, dimension: u32, beginoffset: f64, bias: f32, amplitude: f32, frequency: f32, phase: f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationPrimitiveInterpolation {} impl IUIAnimationPrimitiveInterpolation_Vtbl { - pub const fn new() -> IUIAnimationPrimitiveInterpolation_Vtbl - where - Identity: IUIAnimationPrimitiveInterpolation_Impl, - { - unsafe extern "system" fn AddCubic(this: *mut core::ffi::c_void, dimension: u32, beginoffset: f64, constantcoefficient: f32, linearcoefficient: f32, quadraticcoefficient: f32, cubiccoefficient: f32) -> windows_core::HRESULT - where - Identity: IUIAnimationPrimitiveInterpolation_Impl, - { + pub const fn new() -> IUIAnimationPrimitiveInterpolation_Vtbl { + unsafe extern "system" fn AddCubic(this: *mut core::ffi::c_void, dimension: u32, beginoffset: f64, constantcoefficient: f32, linearcoefficient: f32, quadraticcoefficient: f32, cubiccoefficient: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationPrimitiveInterpolation_Impl::AddCubic(this, core::mem::transmute_copy(&dimension), core::mem::transmute_copy(&beginoffset), core::mem::transmute_copy(&constantcoefficient), core::mem::transmute_copy(&linearcoefficient), core::mem::transmute_copy(&quadraticcoefficient), core::mem::transmute_copy(&cubiccoefficient)).into() } - unsafe extern "system" fn AddSinusoidal(this: *mut core::ffi::c_void, dimension: u32, beginoffset: f64, bias: f32, amplitude: f32, frequency: f32, phase: f32) -> windows_core::HRESULT - where - Identity: IUIAnimationPrimitiveInterpolation_Impl, - { + unsafe extern "system" fn AddSinusoidal(this: *mut core::ffi::c_void, dimension: u32, beginoffset: f64, bias: f32, amplitude: f32, frequency: f32, phase: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationPrimitiveInterpolation_Impl::AddSinusoidal(this, core::mem::transmute_copy(&dimension), core::mem::transmute_copy(&beginoffset), core::mem::transmute_copy(&bias), core::mem::transmute_copy(&litude), core::mem::transmute_copy(&frequency), core::mem::transmute_copy(&phase)).into() } @@ -774,19 +567,13 @@ impl IUIAnimationPrimitiveInterpolation_Vtbl { iid == &::IID } } -pub trait IUIAnimationPriorityComparison_Impl: Sized { +pub trait IUIAnimationPriorityComparison_Impl: Sized + windows_core::IUnknownImpl { fn HasPriority(&self, scheduledstoryboard: Option<&IUIAnimationStoryboard>, newstoryboard: Option<&IUIAnimationStoryboard>, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationPriorityComparison {} impl IUIAnimationPriorityComparison_Vtbl { - pub const fn new() -> IUIAnimationPriorityComparison_Vtbl - where - Identity: IUIAnimationPriorityComparison_Impl, - { - unsafe extern "system" fn HasPriority(this: *mut core::ffi::c_void, scheduledstoryboard: *mut core::ffi::c_void, newstoryboard: *mut core::ffi::c_void, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> windows_core::HRESULT - where - Identity: IUIAnimationPriorityComparison_Impl, - { + pub const fn new() -> IUIAnimationPriorityComparison_Vtbl { + unsafe extern "system" fn HasPriority(this: *mut core::ffi::c_void, scheduledstoryboard: *mut core::ffi::c_void, newstoryboard: *mut core::ffi::c_void, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationPriorityComparison_Impl::HasPriority(this, windows_core::from_raw_borrowed(&scheduledstoryboard), windows_core::from_raw_borrowed(&newstoryboard), core::mem::transmute_copy(&priorityeffect)).into() } @@ -796,19 +583,13 @@ impl IUIAnimationPriorityComparison_Vtbl { iid == &::IID } } -pub trait IUIAnimationPriorityComparison2_Impl: Sized { +pub trait IUIAnimationPriorityComparison2_Impl: Sized + windows_core::IUnknownImpl { fn HasPriority(&self, scheduledstoryboard: Option<&IUIAnimationStoryboard2>, newstoryboard: Option<&IUIAnimationStoryboard2>, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationPriorityComparison2 {} impl IUIAnimationPriorityComparison2_Vtbl { - pub const fn new() -> IUIAnimationPriorityComparison2_Vtbl - where - Identity: IUIAnimationPriorityComparison2_Impl, - { - unsafe extern "system" fn HasPriority(this: *mut core::ffi::c_void, scheduledstoryboard: *mut core::ffi::c_void, newstoryboard: *mut core::ffi::c_void, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> windows_core::HRESULT - where - Identity: IUIAnimationPriorityComparison2_Impl, - { + pub const fn new() -> IUIAnimationPriorityComparison2_Vtbl { + unsafe extern "system" fn HasPriority(this: *mut core::ffi::c_void, scheduledstoryboard: *mut core::ffi::c_void, newstoryboard: *mut core::ffi::c_void, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationPriorityComparison2_Impl::HasPriority(this, windows_core::from_raw_borrowed(&scheduledstoryboard), windows_core::from_raw_borrowed(&newstoryboard), core::mem::transmute_copy(&priorityeffect)).into() } @@ -818,7 +599,7 @@ impl IUIAnimationPriorityComparison2_Vtbl { iid == &::IID } } -pub trait IUIAnimationStoryboard_Impl: Sized { +pub trait IUIAnimationStoryboard_Impl: Sized + windows_core::IUnknownImpl { fn AddTransition(&self, variable: Option<&IUIAnimationVariable>, transition: Option<&IUIAnimationTransition>) -> windows_core::Result<()>; fn AddKeyframeAtOffset(&self, existingkeyframe: UI_ANIMATION_KEYFRAME, offset: f64) -> windows_core::Result; fn AddKeyframeAfterTransition(&self, transition: Option<&IUIAnimationTransition>) -> windows_core::Result; @@ -839,21 +620,12 @@ pub trait IUIAnimationStoryboard_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationStoryboard {} impl IUIAnimationStoryboard_Vtbl { - pub const fn new() -> IUIAnimationStoryboard_Vtbl - where - Identity: IUIAnimationStoryboard_Impl, - { - unsafe extern "system" fn AddTransition(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + pub const fn new() -> IUIAnimationStoryboard_Vtbl { + unsafe extern "system" fn AddTransition(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::AddTransition(this, windows_core::from_raw_borrowed(&variable), windows_core::from_raw_borrowed(&transition)).into() } - unsafe extern "system" fn AddKeyframeAtOffset(this: *mut core::ffi::c_void, existingkeyframe: UI_ANIMATION_KEYFRAME, offset: f64, keyframe: *mut UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn AddKeyframeAtOffset(this: *mut core::ffi::c_void, existingkeyframe: UI_ANIMATION_KEYFRAME, offset: f64, keyframe: *mut UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationStoryboard_Impl::AddKeyframeAtOffset(this, core::mem::transmute_copy(&existingkeyframe), core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -863,10 +635,7 @@ impl IUIAnimationStoryboard_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddKeyframeAfterTransition(this: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, keyframe: *mut UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn AddKeyframeAfterTransition(this: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, keyframe: *mut UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationStoryboard_Impl::AddKeyframeAfterTransition(this, windows_core::from_raw_borrowed(&transition)) { Ok(ok__) => { @@ -876,87 +645,51 @@ impl IUIAnimationStoryboard_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTransitionAtKeyframe(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn AddTransitionAtKeyframe(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::AddTransitionAtKeyframe(this, windows_core::from_raw_borrowed(&variable), windows_core::from_raw_borrowed(&transition), core::mem::transmute_copy(&startkeyframe)).into() } - unsafe extern "system" fn AddTransitionBetweenKeyframes(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn AddTransitionBetweenKeyframes(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::AddTransitionBetweenKeyframes(this, windows_core::from_raw_borrowed(&variable), windows_core::from_raw_borrowed(&transition), core::mem::transmute_copy(&startkeyframe), core::mem::transmute_copy(&endkeyframe)).into() } - unsafe extern "system" fn RepeatBetweenKeyframes(this: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME, repetitioncount: i32) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn RepeatBetweenKeyframes(this: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME, repetitioncount: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::RepeatBetweenKeyframes(this, core::mem::transmute_copy(&startkeyframe), core::mem::transmute_copy(&endkeyframe), core::mem::transmute_copy(&repetitioncount)).into() } - unsafe extern "system" fn HoldVariable(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn HoldVariable(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::HoldVariable(this, windows_core::from_raw_borrowed(&variable)).into() } - unsafe extern "system" fn SetLongestAcceptableDelay(this: *mut core::ffi::c_void, delay: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn SetLongestAcceptableDelay(this: *mut core::ffi::c_void, delay: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::SetLongestAcceptableDelay(this, core::mem::transmute_copy(&delay)).into() } - unsafe extern "system" fn Schedule(this: *mut core::ffi::c_void, timenow: f64, schedulingresult: *mut UI_ANIMATION_SCHEDULING_RESULT) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn Schedule(this: *mut core::ffi::c_void, timenow: f64, schedulingresult: *mut UI_ANIMATION_SCHEDULING_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::Schedule(this, core::mem::transmute_copy(&timenow), core::mem::transmute_copy(&schedulingresult)).into() } - unsafe extern "system" fn Conclude(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn Conclude(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::Conclude(this).into() } - unsafe extern "system" fn Finish(this: *mut core::ffi::c_void, completiondeadline: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn Finish(this: *mut core::ffi::c_void, completiondeadline: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::Finish(this, core::mem::transmute_copy(&completiondeadline)).into() } - unsafe extern "system" fn Abandon(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn Abandon(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::Abandon(this).into() } - unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::SetTag(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::GetTag(this, core::mem::transmute_copy(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationStoryboard_Impl::GetStatus(this) { Ok(ok__) => { @@ -966,10 +699,7 @@ impl IUIAnimationStoryboard_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetElapsedTime(this: *mut core::ffi::c_void, elapsedtime: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn GetElapsedTime(this: *mut core::ffi::c_void, elapsedtime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationStoryboard_Impl::GetElapsedTime(this) { Ok(ok__) => { @@ -979,10 +709,7 @@ impl IUIAnimationStoryboard_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStoryboardEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard_Impl, - { + unsafe extern "system" fn SetStoryboardEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard_Impl::SetStoryboardEventHandler(this, windows_core::from_raw_borrowed(&handler)).into() } @@ -1011,7 +738,7 @@ impl IUIAnimationStoryboard_Vtbl { iid == &::IID } } -pub trait IUIAnimationStoryboard2_Impl: Sized { +pub trait IUIAnimationStoryboard2_Impl: Sized + windows_core::IUnknownImpl { fn AddTransition(&self, variable: Option<&IUIAnimationVariable2>, transition: Option<&IUIAnimationTransition2>) -> windows_core::Result<()>; fn AddKeyframeAtOffset(&self, existingkeyframe: UI_ANIMATION_KEYFRAME, offset: f64) -> windows_core::Result; fn AddKeyframeAfterTransition(&self, transition: Option<&IUIAnimationTransition2>) -> windows_core::Result; @@ -1033,21 +760,12 @@ pub trait IUIAnimationStoryboard2_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationStoryboard2 {} impl IUIAnimationStoryboard2_Vtbl { - pub const fn new() -> IUIAnimationStoryboard2_Vtbl - where - Identity: IUIAnimationStoryboard2_Impl, - { - unsafe extern "system" fn AddTransition(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + pub const fn new() -> IUIAnimationStoryboard2_Vtbl { + unsafe extern "system" fn AddTransition(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::AddTransition(this, windows_core::from_raw_borrowed(&variable), windows_core::from_raw_borrowed(&transition)).into() } - unsafe extern "system" fn AddKeyframeAtOffset(this: *mut core::ffi::c_void, existingkeyframe: UI_ANIMATION_KEYFRAME, offset: f64, keyframe: *mut UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn AddKeyframeAtOffset(this: *mut core::ffi::c_void, existingkeyframe: UI_ANIMATION_KEYFRAME, offset: f64, keyframe: *mut UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationStoryboard2_Impl::AddKeyframeAtOffset(this, core::mem::transmute_copy(&existingkeyframe), core::mem::transmute_copy(&offset)) { Ok(ok__) => { @@ -1057,10 +775,7 @@ impl IUIAnimationStoryboard2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddKeyframeAfterTransition(this: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, keyframe: *mut UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn AddKeyframeAfterTransition(this: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, keyframe: *mut UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationStoryboard2_Impl::AddKeyframeAfterTransition(this, windows_core::from_raw_borrowed(&transition)) { Ok(ok__) => { @@ -1070,94 +785,55 @@ impl IUIAnimationStoryboard2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTransitionAtKeyframe(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn AddTransitionAtKeyframe(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::AddTransitionAtKeyframe(this, windows_core::from_raw_borrowed(&variable), windows_core::from_raw_borrowed(&transition), core::mem::transmute_copy(&startkeyframe)).into() } - unsafe extern "system" fn AddTransitionBetweenKeyframes(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn AddTransitionBetweenKeyframes(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, transition: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::AddTransitionBetweenKeyframes(this, windows_core::from_raw_borrowed(&variable), windows_core::from_raw_borrowed(&transition), core::mem::transmute_copy(&startkeyframe), core::mem::transmute_copy(&endkeyframe)).into() } - unsafe extern "system" fn RepeatBetweenKeyframes(this: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME, crepetition: f64, repeatmode: UI_ANIMATION_REPEAT_MODE, piterationchangehandler: *mut core::ffi::c_void, id: usize, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn RepeatBetweenKeyframes(this: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME, crepetition: f64, repeatmode: UI_ANIMATION_REPEAT_MODE, piterationchangehandler: *mut core::ffi::c_void, id: usize, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::RepeatBetweenKeyframes(this, core::mem::transmute_copy(&startkeyframe), core::mem::transmute_copy(&endkeyframe), core::mem::transmute_copy(&crepetition), core::mem::transmute_copy(&repeatmode), windows_core::from_raw_borrowed(&piterationchangehandler), core::mem::transmute_copy(&id), core::mem::transmute_copy(&fregisterfornextanimationevent)).into() } - unsafe extern "system" fn HoldVariable(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn HoldVariable(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::HoldVariable(this, windows_core::from_raw_borrowed(&variable)).into() } - unsafe extern "system" fn SetLongestAcceptableDelay(this: *mut core::ffi::c_void, delay: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn SetLongestAcceptableDelay(this: *mut core::ffi::c_void, delay: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::SetLongestAcceptableDelay(this, core::mem::transmute_copy(&delay)).into() } - unsafe extern "system" fn SetSkipDuration(this: *mut core::ffi::c_void, secondsduration: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn SetSkipDuration(this: *mut core::ffi::c_void, secondsduration: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::SetSkipDuration(this, core::mem::transmute_copy(&secondsduration)).into() } - unsafe extern "system" fn Schedule(this: *mut core::ffi::c_void, timenow: f64, schedulingresult: *mut UI_ANIMATION_SCHEDULING_RESULT) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn Schedule(this: *mut core::ffi::c_void, timenow: f64, schedulingresult: *mut UI_ANIMATION_SCHEDULING_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::Schedule(this, core::mem::transmute_copy(&timenow), core::mem::transmute_copy(&schedulingresult)).into() } - unsafe extern "system" fn Conclude(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn Conclude(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::Conclude(this).into() } - unsafe extern "system" fn Finish(this: *mut core::ffi::c_void, completiondeadline: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn Finish(this: *mut core::ffi::c_void, completiondeadline: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::Finish(this, core::mem::transmute_copy(&completiondeadline)).into() } - unsafe extern "system" fn Abandon(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn Abandon(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::Abandon(this).into() } - unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::SetTag(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::GetTag(this, core::mem::transmute_copy(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, status: *mut UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationStoryboard2_Impl::GetStatus(this) { Ok(ok__) => { @@ -1167,10 +843,7 @@ impl IUIAnimationStoryboard2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetElapsedTime(this: *mut core::ffi::c_void, elapsedtime: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn GetElapsedTime(this: *mut core::ffi::c_void, elapsedtime: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationStoryboard2_Impl::GetElapsedTime(this) { Ok(ok__) => { @@ -1180,10 +853,7 @@ impl IUIAnimationStoryboard2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStoryboardEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterstatuschangefornextanimationevent: super::super::Foundation::BOOL, fregisterupdatefornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboard2_Impl, - { + unsafe extern "system" fn SetStoryboardEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterstatuschangefornextanimationevent: super::super::Foundation::BOOL, fregisterupdatefornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::SetStoryboardEventHandler(this, windows_core::from_raw_borrowed(&handler), core::mem::transmute_copy(&fregisterstatuschangefornextanimationevent), core::mem::transmute_copy(&fregisterupdatefornextanimationevent)).into() } @@ -1213,27 +883,18 @@ impl IUIAnimationStoryboard2_Vtbl { iid == &::IID } } -pub trait IUIAnimationStoryboardEventHandler_Impl: Sized { +pub trait IUIAnimationStoryboardEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnStoryboardStatusChanged(&self, storyboard: Option<&IUIAnimationStoryboard>, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::Result<()>; fn OnStoryboardUpdated(&self, storyboard: Option<&IUIAnimationStoryboard>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationStoryboardEventHandler {} impl IUIAnimationStoryboardEventHandler_Vtbl { - pub const fn new() -> IUIAnimationStoryboardEventHandler_Vtbl - where - Identity: IUIAnimationStoryboardEventHandler_Impl, - { - unsafe extern "system" fn OnStoryboardStatusChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboardEventHandler_Impl, - { + pub const fn new() -> IUIAnimationStoryboardEventHandler_Vtbl { + unsafe extern "system" fn OnStoryboardStatusChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboardEventHandler_Impl::OnStoryboardStatusChanged(this, windows_core::from_raw_borrowed(&storyboard), core::mem::transmute_copy(&newstatus), core::mem::transmute_copy(&previousstatus)).into() } - unsafe extern "system" fn OnStoryboardUpdated(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboardEventHandler_Impl, - { + unsafe extern "system" fn OnStoryboardUpdated(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboardEventHandler_Impl::OnStoryboardUpdated(this, windows_core::from_raw_borrowed(&storyboard)).into() } @@ -1247,27 +908,18 @@ impl IUIAnimationStoryboardEventHandler_Vtbl { iid == &::IID } } -pub trait IUIAnimationStoryboardEventHandler2_Impl: Sized { +pub trait IUIAnimationStoryboardEventHandler2_Impl: Sized + windows_core::IUnknownImpl { fn OnStoryboardStatusChanged(&self, storyboard: Option<&IUIAnimationStoryboard2>, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::Result<()>; fn OnStoryboardUpdated(&self, storyboard: Option<&IUIAnimationStoryboard2>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationStoryboardEventHandler2 {} impl IUIAnimationStoryboardEventHandler2_Vtbl { - pub const fn new() -> IUIAnimationStoryboardEventHandler2_Vtbl - where - Identity: IUIAnimationStoryboardEventHandler2_Impl, - { - unsafe extern "system" fn OnStoryboardStatusChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboardEventHandler2_Impl, - { + pub const fn new() -> IUIAnimationStoryboardEventHandler2_Vtbl { + unsafe extern "system" fn OnStoryboardStatusChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboardEventHandler2_Impl::OnStoryboardStatusChanged(this, windows_core::from_raw_borrowed(&storyboard), core::mem::transmute_copy(&newstatus), core::mem::transmute_copy(&previousstatus)).into() } - unsafe extern "system" fn OnStoryboardUpdated(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationStoryboardEventHandler2_Impl, - { + unsafe extern "system" fn OnStoryboardUpdated(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboardEventHandler2_Impl::OnStoryboardUpdated(this, windows_core::from_raw_borrowed(&storyboard)).into() } @@ -1281,7 +933,7 @@ impl IUIAnimationStoryboardEventHandler2_Vtbl { iid == &::IID } } -pub trait IUIAnimationTimer_Impl: Sized { +pub trait IUIAnimationTimer_Impl: Sized + windows_core::IUnknownImpl { fn SetTimerUpdateHandler(&self, updatehandler: Option<&IUIAnimationTimerUpdateHandler>, idlebehavior: UI_ANIMATION_IDLE_BEHAVIOR) -> windows_core::Result<()>; fn SetTimerEventHandler(&self, handler: Option<&IUIAnimationTimerEventHandler>) -> windows_core::Result<()>; fn Enable(&self) -> windows_core::Result<()>; @@ -1292,49 +944,28 @@ pub trait IUIAnimationTimer_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationTimer {} impl IUIAnimationTimer_Vtbl { - pub const fn new() -> IUIAnimationTimer_Vtbl - where - Identity: IUIAnimationTimer_Impl, - { - unsafe extern "system" fn SetTimerUpdateHandler(this: *mut core::ffi::c_void, updatehandler: *mut core::ffi::c_void, idlebehavior: UI_ANIMATION_IDLE_BEHAVIOR) -> windows_core::HRESULT - where - Identity: IUIAnimationTimer_Impl, - { + pub const fn new() -> IUIAnimationTimer_Vtbl { + unsafe extern "system" fn SetTimerUpdateHandler(this: *mut core::ffi::c_void, updatehandler: *mut core::ffi::c_void, idlebehavior: UI_ANIMATION_IDLE_BEHAVIOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimer_Impl::SetTimerUpdateHandler(this, windows_core::from_raw_borrowed(&updatehandler), core::mem::transmute_copy(&idlebehavior)).into() } - unsafe extern "system" fn SetTimerEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTimer_Impl, - { + unsafe extern "system" fn SetTimerEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimer_Impl::SetTimerEventHandler(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTimer_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimer_Impl::Enable(this).into() } - unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTimer_Impl, - { + unsafe extern "system" fn Disable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimer_Impl::Disable(this).into() } - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTimer_Impl, - { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimer_Impl::IsEnabled(this).into() } - unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, seconds: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationTimer_Impl, - { + unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, seconds: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTimer_Impl::GetTime(this) { Ok(ok__) => { @@ -1344,10 +975,7 @@ impl IUIAnimationTimer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrameRateThreshold(this: *mut core::ffi::c_void, framespersecond: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationTimer_Impl, - { + unsafe extern "system" fn SetFrameRateThreshold(this: *mut core::ffi::c_void, framespersecond: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimer_Impl::SetFrameRateThreshold(this, core::mem::transmute_copy(&framespersecond)).into() } @@ -1366,19 +994,13 @@ impl IUIAnimationTimer_Vtbl { iid == &::IID } } -pub trait IUIAnimationTimerClientEventHandler_Impl: Sized { +pub trait IUIAnimationTimerClientEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnTimerClientStatusChanged(&self, newstatus: UI_ANIMATION_TIMER_CLIENT_STATUS, previousstatus: UI_ANIMATION_TIMER_CLIENT_STATUS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationTimerClientEventHandler {} impl IUIAnimationTimerClientEventHandler_Vtbl { - pub const fn new() -> IUIAnimationTimerClientEventHandler_Vtbl - where - Identity: IUIAnimationTimerClientEventHandler_Impl, - { - unsafe extern "system" fn OnTimerClientStatusChanged(this: *mut core::ffi::c_void, newstatus: UI_ANIMATION_TIMER_CLIENT_STATUS, previousstatus: UI_ANIMATION_TIMER_CLIENT_STATUS) -> windows_core::HRESULT - where - Identity: IUIAnimationTimerClientEventHandler_Impl, - { + pub const fn new() -> IUIAnimationTimerClientEventHandler_Vtbl { + unsafe extern "system" fn OnTimerClientStatusChanged(this: *mut core::ffi::c_void, newstatus: UI_ANIMATION_TIMER_CLIENT_STATUS, previousstatus: UI_ANIMATION_TIMER_CLIENT_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimerClientEventHandler_Impl::OnTimerClientStatusChanged(this, core::mem::transmute_copy(&newstatus), core::mem::transmute_copy(&previousstatus)).into() } @@ -1388,35 +1010,23 @@ impl IUIAnimationTimerClientEventHandler_Vtbl { iid == &::IID } } -pub trait IUIAnimationTimerEventHandler_Impl: Sized { +pub trait IUIAnimationTimerEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnPreUpdate(&self) -> windows_core::Result<()>; fn OnPostUpdate(&self) -> windows_core::Result<()>; fn OnRenderingTooSlow(&self, framespersecond: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationTimerEventHandler {} impl IUIAnimationTimerEventHandler_Vtbl { - pub const fn new() -> IUIAnimationTimerEventHandler_Vtbl - where - Identity: IUIAnimationTimerEventHandler_Impl, - { - unsafe extern "system" fn OnPreUpdate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTimerEventHandler_Impl, - { + pub const fn new() -> IUIAnimationTimerEventHandler_Vtbl { + unsafe extern "system" fn OnPreUpdate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimerEventHandler_Impl::OnPreUpdate(this).into() } - unsafe extern "system" fn OnPostUpdate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTimerEventHandler_Impl, - { + unsafe extern "system" fn OnPostUpdate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimerEventHandler_Impl::OnPostUpdate(this).into() } - unsafe extern "system" fn OnRenderingTooSlow(this: *mut core::ffi::c_void, framespersecond: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationTimerEventHandler_Impl, - { + unsafe extern "system" fn OnRenderingTooSlow(this: *mut core::ffi::c_void, framespersecond: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimerEventHandler_Impl::OnRenderingTooSlow(this, core::mem::transmute_copy(&framespersecond)).into() } @@ -1431,21 +1041,15 @@ impl IUIAnimationTimerEventHandler_Vtbl { iid == &::IID } } -pub trait IUIAnimationTimerUpdateHandler_Impl: Sized { +pub trait IUIAnimationTimerUpdateHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnUpdate(&self, timenow: f64) -> windows_core::Result; fn SetTimerClientEventHandler(&self, handler: Option<&IUIAnimationTimerClientEventHandler>) -> windows_core::Result<()>; fn ClearTimerClientEventHandler(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationTimerUpdateHandler {} impl IUIAnimationTimerUpdateHandler_Vtbl { - pub const fn new() -> IUIAnimationTimerUpdateHandler_Vtbl - where - Identity: IUIAnimationTimerUpdateHandler_Impl, - { - unsafe extern "system" fn OnUpdate(this: *mut core::ffi::c_void, timenow: f64, result: *mut UI_ANIMATION_UPDATE_RESULT) -> windows_core::HRESULT - where - Identity: IUIAnimationTimerUpdateHandler_Impl, - { + pub const fn new() -> IUIAnimationTimerUpdateHandler_Vtbl { + unsafe extern "system" fn OnUpdate(this: *mut core::ffi::c_void, timenow: f64, result: *mut UI_ANIMATION_UPDATE_RESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTimerUpdateHandler_Impl::OnUpdate(this, core::mem::transmute_copy(&timenow)) { Ok(ok__) => { @@ -1455,17 +1059,11 @@ impl IUIAnimationTimerUpdateHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTimerClientEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTimerUpdateHandler_Impl, - { + unsafe extern "system" fn SetTimerClientEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimerUpdateHandler_Impl::SetTimerClientEventHandler(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn ClearTimerClientEventHandler(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTimerUpdateHandler_Impl, - { + unsafe extern "system" fn ClearTimerClientEventHandler(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTimerUpdateHandler_Impl::ClearTimerClientEventHandler(this).into() } @@ -1480,7 +1078,7 @@ impl IUIAnimationTimerUpdateHandler_Vtbl { iid == &::IID } } -pub trait IUIAnimationTransition_Impl: Sized { +pub trait IUIAnimationTransition_Impl: Sized + windows_core::IUnknownImpl { fn SetInitialValue(&self, value: f64) -> windows_core::Result<()>; fn SetInitialVelocity(&self, velocity: f64) -> windows_core::Result<()>; fn IsDurationKnown(&self) -> windows_core::Result<()>; @@ -1488,35 +1086,20 @@ pub trait IUIAnimationTransition_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationTransition {} impl IUIAnimationTransition_Vtbl { - pub const fn new() -> IUIAnimationTransition_Vtbl - where - Identity: IUIAnimationTransition_Impl, - { - unsafe extern "system" fn SetInitialValue(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition_Impl, - { + pub const fn new() -> IUIAnimationTransition_Vtbl { + unsafe extern "system" fn SetInitialValue(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTransition_Impl::SetInitialValue(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetInitialVelocity(this: *mut core::ffi::c_void, velocity: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition_Impl, - { + unsafe extern "system" fn SetInitialVelocity(this: *mut core::ffi::c_void, velocity: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTransition_Impl::SetInitialVelocity(this, core::mem::transmute_copy(&velocity)).into() } - unsafe extern "system" fn IsDurationKnown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition_Impl, - { + unsafe extern "system" fn IsDurationKnown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTransition_Impl::IsDurationKnown(this).into() } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, duration: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, duration: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransition_Impl::GetDuration(this) { Ok(ok__) => { @@ -1538,7 +1121,7 @@ impl IUIAnimationTransition_Vtbl { iid == &::IID } } -pub trait IUIAnimationTransition2_Impl: Sized { +pub trait IUIAnimationTransition2_Impl: Sized + windows_core::IUnknownImpl { fn GetDimension(&self) -> windows_core::Result; fn SetInitialValue(&self, value: f64) -> windows_core::Result<()>; fn SetInitialVectorValue(&self, value: *const f64, cdimension: u32) -> windows_core::Result<()>; @@ -1549,14 +1132,8 @@ pub trait IUIAnimationTransition2_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationTransition2 {} impl IUIAnimationTransition2_Vtbl { - pub const fn new() -> IUIAnimationTransition2_Vtbl - where - Identity: IUIAnimationTransition2_Impl, - { - unsafe extern "system" fn GetDimension(this: *mut core::ffi::c_void, dimension: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition2_Impl, - { + pub const fn new() -> IUIAnimationTransition2_Vtbl { + unsafe extern "system" fn GetDimension(this: *mut core::ffi::c_void, dimension: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransition2_Impl::GetDimension(this) { Ok(ok__) => { @@ -1566,45 +1143,27 @@ impl IUIAnimationTransition2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialValue(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition2_Impl, - { + unsafe extern "system" fn SetInitialValue(this: *mut core::ffi::c_void, value: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTransition2_Impl::SetInitialValue(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetInitialVectorValue(this: *mut core::ffi::c_void, value: *const f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition2_Impl, - { + unsafe extern "system" fn SetInitialVectorValue(this: *mut core::ffi::c_void, value: *const f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTransition2_Impl::SetInitialVectorValue(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn SetInitialVelocity(this: *mut core::ffi::c_void, velocity: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition2_Impl, - { + unsafe extern "system" fn SetInitialVelocity(this: *mut core::ffi::c_void, velocity: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTransition2_Impl::SetInitialVelocity(this, core::mem::transmute_copy(&velocity)).into() } - unsafe extern "system" fn SetInitialVectorVelocity(this: *mut core::ffi::c_void, velocity: *const f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition2_Impl, - { + unsafe extern "system" fn SetInitialVectorVelocity(this: *mut core::ffi::c_void, velocity: *const f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTransition2_Impl::SetInitialVectorVelocity(this, core::mem::transmute_copy(&velocity), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn IsDurationKnown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition2_Impl, - { + unsafe extern "system" fn IsDurationKnown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationTransition2_Impl::IsDurationKnown(this).into() } - unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, duration: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationTransition2_Impl, - { + unsafe extern "system" fn GetDuration(this: *mut core::ffi::c_void, duration: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransition2_Impl::GetDuration(this) { Ok(ok__) => { @@ -1629,19 +1188,13 @@ impl IUIAnimationTransition2_Vtbl { iid == &::IID } } -pub trait IUIAnimationTransitionFactory_Impl: Sized { +pub trait IUIAnimationTransitionFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateTransition(&self, interpolator: Option<&IUIAnimationInterpolator>) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAnimationTransitionFactory {} impl IUIAnimationTransitionFactory_Vtbl { - pub const fn new() -> IUIAnimationTransitionFactory_Vtbl - where - Identity: IUIAnimationTransitionFactory_Impl, - { - unsafe extern "system" fn CreateTransition(this: *mut core::ffi::c_void, interpolator: *mut core::ffi::c_void, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionFactory_Impl, - { + pub const fn new() -> IUIAnimationTransitionFactory_Vtbl { + unsafe extern "system" fn CreateTransition(this: *mut core::ffi::c_void, interpolator: *mut core::ffi::c_void, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionFactory_Impl::CreateTransition(this, windows_core::from_raw_borrowed(&interpolator)) { Ok(ok__) => { @@ -1657,19 +1210,13 @@ impl IUIAnimationTransitionFactory_Vtbl { iid == &::IID } } -pub trait IUIAnimationTransitionFactory2_Impl: Sized { +pub trait IUIAnimationTransitionFactory2_Impl: Sized + windows_core::IUnknownImpl { fn CreateTransition(&self, interpolator: Option<&IUIAnimationInterpolator2>) -> windows_core::Result; } impl windows_core::RuntimeName for IUIAnimationTransitionFactory2 {} impl IUIAnimationTransitionFactory2_Vtbl { - pub const fn new() -> IUIAnimationTransitionFactory2_Vtbl - where - Identity: IUIAnimationTransitionFactory2_Impl, - { - unsafe extern "system" fn CreateTransition(this: *mut core::ffi::c_void, interpolator: *mut core::ffi::c_void, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionFactory2_Impl, - { + pub const fn new() -> IUIAnimationTransitionFactory2_Vtbl { + unsafe extern "system" fn CreateTransition(this: *mut core::ffi::c_void, interpolator: *mut core::ffi::c_void, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionFactory2_Impl::CreateTransition(this, windows_core::from_raw_borrowed(&interpolator)) { Ok(ok__) => { @@ -1685,7 +1232,7 @@ impl IUIAnimationTransitionFactory2_Vtbl { iid == &::IID } } -pub trait IUIAnimationTransitionLibrary_Impl: Sized { +pub trait IUIAnimationTransitionLibrary_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstantaneousTransition(&self, finalvalue: f64) -> windows_core::Result; fn CreateConstantTransition(&self, duration: f64) -> windows_core::Result; fn CreateDiscreteTransition(&self, delay: f64, finalvalue: f64, hold: f64) -> windows_core::Result; @@ -1701,14 +1248,8 @@ pub trait IUIAnimationTransitionLibrary_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationTransitionLibrary {} impl IUIAnimationTransitionLibrary_Vtbl { - pub const fn new() -> IUIAnimationTransitionLibrary_Vtbl - where - Identity: IUIAnimationTransitionLibrary_Impl, - { - unsafe extern "system" fn CreateInstantaneousTransition(this: *mut core::ffi::c_void, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + pub const fn new() -> IUIAnimationTransitionLibrary_Vtbl { + unsafe extern "system" fn CreateInstantaneousTransition(this: *mut core::ffi::c_void, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateInstantaneousTransition(this, core::mem::transmute_copy(&finalvalue)) { Ok(ok__) => { @@ -1718,10 +1259,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateConstantTransition(this: *mut core::ffi::c_void, duration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateConstantTransition(this: *mut core::ffi::c_void, duration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateConstantTransition(this, core::mem::transmute_copy(&duration)) { Ok(ok__) => { @@ -1731,10 +1269,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDiscreteTransition(this: *mut core::ffi::c_void, delay: f64, finalvalue: f64, hold: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateDiscreteTransition(this: *mut core::ffi::c_void, delay: f64, finalvalue: f64, hold: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateDiscreteTransition(this, core::mem::transmute_copy(&delay), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&hold)) { Ok(ok__) => { @@ -1744,10 +1279,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLinearTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateLinearTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateLinearTransition(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&finalvalue)) { Ok(ok__) => { @@ -1757,10 +1289,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLinearTransitionFromSpeed(this: *mut core::ffi::c_void, speed: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateLinearTransitionFromSpeed(this: *mut core::ffi::c_void, speed: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateLinearTransitionFromSpeed(this, core::mem::transmute_copy(&speed), core::mem::transmute_copy(&finalvalue)) { Ok(ok__) => { @@ -1770,10 +1299,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSinusoidalTransitionFromVelocity(this: *mut core::ffi::c_void, duration: f64, period: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateSinusoidalTransitionFromVelocity(this: *mut core::ffi::c_void, duration: f64, period: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateSinusoidalTransitionFromVelocity(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&period)) { Ok(ok__) => { @@ -1783,10 +1309,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSinusoidalTransitionFromRange(this: *mut core::ffi::c_void, duration: f64, minimumvalue: f64, maximumvalue: f64, period: f64, slope: UI_ANIMATION_SLOPE, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateSinusoidalTransitionFromRange(this: *mut core::ffi::c_void, duration: f64, minimumvalue: f64, maximumvalue: f64, period: f64, slope: UI_ANIMATION_SLOPE, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateSinusoidalTransitionFromRange(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&minimumvalue), core::mem::transmute_copy(&maximumvalue), core::mem::transmute_copy(&period), core::mem::transmute_copy(&slope)) { Ok(ok__) => { @@ -1796,10 +1319,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAccelerateDecelerateTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, accelerationratio: f64, decelerationratio: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateAccelerateDecelerateTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, accelerationratio: f64, decelerationratio: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateAccelerateDecelerateTransition(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&accelerationratio), core::mem::transmute_copy(&decelerationratio)) { Ok(ok__) => { @@ -1809,10 +1329,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateReversalTransition(this: *mut core::ffi::c_void, duration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateReversalTransition(this: *mut core::ffi::c_void, duration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateReversalTransition(this, core::mem::transmute_copy(&duration)) { Ok(ok__) => { @@ -1822,10 +1339,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCubicTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, finalvelocity: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateCubicTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, finalvelocity: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateCubicTransition(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&finalvelocity)) { Ok(ok__) => { @@ -1835,10 +1349,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSmoothStopTransition(this: *mut core::ffi::c_void, maximumduration: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateSmoothStopTransition(this: *mut core::ffi::c_void, maximumduration: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateSmoothStopTransition(this, core::mem::transmute_copy(&maximumduration), core::mem::transmute_copy(&finalvalue)) { Ok(ok__) => { @@ -1848,10 +1359,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateParabolicTransitionFromAcceleration(this: *mut core::ffi::c_void, finalvalue: f64, finalvelocity: f64, acceleration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary_Impl, - { + unsafe extern "system" fn CreateParabolicTransitionFromAcceleration(this: *mut core::ffi::c_void, finalvalue: f64, finalvelocity: f64, acceleration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary_Impl::CreateParabolicTransitionFromAcceleration(this, core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&finalvelocity), core::mem::transmute_copy(&acceleration)) { Ok(ok__) => { @@ -1881,7 +1389,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { iid == &::IID } } -pub trait IUIAnimationTransitionLibrary2_Impl: Sized { +pub trait IUIAnimationTransitionLibrary2_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstantaneousTransition(&self, finalvalue: f64) -> windows_core::Result; fn CreateInstantaneousVectorTransition(&self, finalvalue: *const f64, cdimension: u32) -> windows_core::Result; fn CreateConstantTransition(&self, duration: f64) -> windows_core::Result; @@ -1904,14 +1412,8 @@ pub trait IUIAnimationTransitionLibrary2_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationTransitionLibrary2 {} impl IUIAnimationTransitionLibrary2_Vtbl { - pub const fn new() -> IUIAnimationTransitionLibrary2_Vtbl - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { - unsafe extern "system" fn CreateInstantaneousTransition(this: *mut core::ffi::c_void, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + pub const fn new() -> IUIAnimationTransitionLibrary2_Vtbl { + unsafe extern "system" fn CreateInstantaneousTransition(this: *mut core::ffi::c_void, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateInstantaneousTransition(this, core::mem::transmute_copy(&finalvalue)) { Ok(ok__) => { @@ -1921,10 +1423,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstantaneousVectorTransition(this: *mut core::ffi::c_void, finalvalue: *const f64, cdimension: u32, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateInstantaneousVectorTransition(this: *mut core::ffi::c_void, finalvalue: *const f64, cdimension: u32, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateInstantaneousVectorTransition(this, core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&cdimension)) { Ok(ok__) => { @@ -1934,10 +1433,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateConstantTransition(this: *mut core::ffi::c_void, duration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateConstantTransition(this: *mut core::ffi::c_void, duration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateConstantTransition(this, core::mem::transmute_copy(&duration)) { Ok(ok__) => { @@ -1947,10 +1443,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDiscreteTransition(this: *mut core::ffi::c_void, delay: f64, finalvalue: f64, hold: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateDiscreteTransition(this: *mut core::ffi::c_void, delay: f64, finalvalue: f64, hold: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateDiscreteTransition(this, core::mem::transmute_copy(&delay), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&hold)) { Ok(ok__) => { @@ -1960,10 +1453,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateDiscreteVectorTransition(this: *mut core::ffi::c_void, delay: f64, finalvalue: *const f64, cdimension: u32, hold: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateDiscreteVectorTransition(this: *mut core::ffi::c_void, delay: f64, finalvalue: *const f64, cdimension: u32, hold: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateDiscreteVectorTransition(this, core::mem::transmute_copy(&delay), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&cdimension), core::mem::transmute_copy(&hold)) { Ok(ok__) => { @@ -1973,10 +1463,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLinearTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateLinearTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateLinearTransition(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&finalvalue)) { Ok(ok__) => { @@ -1986,10 +1473,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLinearVectorTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: *const f64, cdimension: u32, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateLinearVectorTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: *const f64, cdimension: u32, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateLinearVectorTransition(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&cdimension)) { Ok(ok__) => { @@ -1999,10 +1483,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLinearTransitionFromSpeed(this: *mut core::ffi::c_void, speed: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateLinearTransitionFromSpeed(this: *mut core::ffi::c_void, speed: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateLinearTransitionFromSpeed(this, core::mem::transmute_copy(&speed), core::mem::transmute_copy(&finalvalue)) { Ok(ok__) => { @@ -2012,10 +1493,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateLinearVectorTransitionFromSpeed(this: *mut core::ffi::c_void, speed: f64, finalvalue: *const f64, cdimension: u32, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateLinearVectorTransitionFromSpeed(this: *mut core::ffi::c_void, speed: f64, finalvalue: *const f64, cdimension: u32, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateLinearVectorTransitionFromSpeed(this, core::mem::transmute_copy(&speed), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&cdimension)) { Ok(ok__) => { @@ -2025,10 +1503,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSinusoidalTransitionFromVelocity(this: *mut core::ffi::c_void, duration: f64, period: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateSinusoidalTransitionFromVelocity(this: *mut core::ffi::c_void, duration: f64, period: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateSinusoidalTransitionFromVelocity(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&period)) { Ok(ok__) => { @@ -2038,10 +1513,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSinusoidalTransitionFromRange(this: *mut core::ffi::c_void, duration: f64, minimumvalue: f64, maximumvalue: f64, period: f64, slope: UI_ANIMATION_SLOPE, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateSinusoidalTransitionFromRange(this: *mut core::ffi::c_void, duration: f64, minimumvalue: f64, maximumvalue: f64, period: f64, slope: UI_ANIMATION_SLOPE, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateSinusoidalTransitionFromRange(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&minimumvalue), core::mem::transmute_copy(&maximumvalue), core::mem::transmute_copy(&period), core::mem::transmute_copy(&slope)) { Ok(ok__) => { @@ -2051,10 +1523,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateAccelerateDecelerateTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, accelerationratio: f64, decelerationratio: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateAccelerateDecelerateTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, accelerationratio: f64, decelerationratio: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateAccelerateDecelerateTransition(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&accelerationratio), core::mem::transmute_copy(&decelerationratio)) { Ok(ok__) => { @@ -2064,10 +1533,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateReversalTransition(this: *mut core::ffi::c_void, duration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateReversalTransition(this: *mut core::ffi::c_void, duration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateReversalTransition(this, core::mem::transmute_copy(&duration)) { Ok(ok__) => { @@ -2077,10 +1543,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCubicTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, finalvelocity: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateCubicTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, finalvelocity: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateCubicTransition(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&finalvelocity)) { Ok(ok__) => { @@ -2090,10 +1553,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCubicVectorTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: *const f64, finalvelocity: *const f64, cdimension: u32, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateCubicVectorTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: *const f64, finalvelocity: *const f64, cdimension: u32, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateCubicVectorTransition(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&finalvelocity), core::mem::transmute_copy(&cdimension)) { Ok(ok__) => { @@ -2103,10 +1563,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSmoothStopTransition(this: *mut core::ffi::c_void, maximumduration: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateSmoothStopTransition(this: *mut core::ffi::c_void, maximumduration: f64, finalvalue: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateSmoothStopTransition(this, core::mem::transmute_copy(&maximumduration), core::mem::transmute_copy(&finalvalue)) { Ok(ok__) => { @@ -2116,10 +1573,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateParabolicTransitionFromAcceleration(this: *mut core::ffi::c_void, finalvalue: f64, finalvelocity: f64, acceleration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateParabolicTransitionFromAcceleration(this: *mut core::ffi::c_void, finalvalue: f64, finalvelocity: f64, acceleration: f64, transition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateParabolicTransitionFromAcceleration(this, core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&finalvelocity), core::mem::transmute_copy(&acceleration)) { Ok(ok__) => { @@ -2129,10 +1583,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCubicBezierLinearTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, x1: f64, y1: f64, x2: f64, y2: f64, pptransition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateCubicBezierLinearTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: f64, x1: f64, y1: f64, x2: f64, y2: f64, pptransition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateCubicBezierLinearTransition(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&x1), core::mem::transmute_copy(&y1), core::mem::transmute_copy(&x2), core::mem::transmute_copy(&y2)) { Ok(ok__) => { @@ -2142,10 +1593,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateCubicBezierLinearVectorTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: *const f64, cdimension: u32, x1: f64, y1: f64, x2: f64, y2: f64, pptransition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationTransitionLibrary2_Impl, - { + unsafe extern "system" fn CreateCubicBezierLinearVectorTransition(this: *mut core::ffi::c_void, duration: f64, finalvalue: *const f64, cdimension: u32, x1: f64, y1: f64, x2: f64, y2: f64, pptransition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationTransitionLibrary2_Impl::CreateCubicBezierLinearVectorTransition(this, core::mem::transmute_copy(&duration), core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&cdimension), core::mem::transmute_copy(&x1), core::mem::transmute_copy(&y1), core::mem::transmute_copy(&x2), core::mem::transmute_copy(&y2)) { Ok(ok__) => { @@ -2182,7 +1630,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { iid == &::IID } } -pub trait IUIAnimationVariable_Impl: Sized { +pub trait IUIAnimationVariable_Impl: Sized + windows_core::IUnknownImpl { fn GetValue(&self) -> windows_core::Result; fn GetFinalValue(&self) -> windows_core::Result; fn GetPreviousValue(&self) -> windows_core::Result; @@ -2200,14 +1648,8 @@ pub trait IUIAnimationVariable_Impl: Sized { } impl windows_core::RuntimeName for IUIAnimationVariable {} impl IUIAnimationVariable_Vtbl { - pub const fn new() -> IUIAnimationVariable_Vtbl - where - Identity: IUIAnimationVariable_Impl, - { - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + pub const fn new() -> IUIAnimationVariable_Vtbl { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable_Impl::GetValue(this) { Ok(ok__) => { @@ -2217,10 +1659,7 @@ impl IUIAnimationVariable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFinalValue(this: *mut core::ffi::c_void, finalvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn GetFinalValue(this: *mut core::ffi::c_void, finalvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable_Impl::GetFinalValue(this) { Ok(ok__) => { @@ -2230,10 +1669,7 @@ impl IUIAnimationVariable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreviousValue(this: *mut core::ffi::c_void, previousvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn GetPreviousValue(this: *mut core::ffi::c_void, previousvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable_Impl::GetPreviousValue(this) { Ok(ok__) => { @@ -2243,10 +1679,7 @@ impl IUIAnimationVariable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIntegerValue(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn GetIntegerValue(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable_Impl::GetIntegerValue(this) { Ok(ok__) => { @@ -2256,10 +1689,7 @@ impl IUIAnimationVariable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFinalIntegerValue(this: *mut core::ffi::c_void, finalvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn GetFinalIntegerValue(this: *mut core::ffi::c_void, finalvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable_Impl::GetFinalIntegerValue(this) { Ok(ok__) => { @@ -2269,10 +1699,7 @@ impl IUIAnimationVariable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreviousIntegerValue(this: *mut core::ffi::c_void, previousvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn GetPreviousIntegerValue(this: *mut core::ffi::c_void, previousvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable_Impl::GetPreviousIntegerValue(this) { Ok(ok__) => { @@ -2282,10 +1709,7 @@ impl IUIAnimationVariable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentStoryboard(this: *mut core::ffi::c_void, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn GetCurrentStoryboard(this: *mut core::ffi::c_void, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable_Impl::GetCurrentStoryboard(this) { Ok(ok__) => { @@ -2295,52 +1719,31 @@ impl IUIAnimationVariable_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLowerBound(this: *mut core::ffi::c_void, bound: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn SetLowerBound(this: *mut core::ffi::c_void, bound: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable_Impl::SetLowerBound(this, core::mem::transmute_copy(&bound)).into() } - unsafe extern "system" fn SetUpperBound(this: *mut core::ffi::c_void, bound: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn SetUpperBound(this: *mut core::ffi::c_void, bound: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable_Impl::SetUpperBound(this, core::mem::transmute_copy(&bound)).into() } - unsafe extern "system" fn SetRoundingMode(this: *mut core::ffi::c_void, mode: UI_ANIMATION_ROUNDING_MODE) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn SetRoundingMode(this: *mut core::ffi::c_void, mode: UI_ANIMATION_ROUNDING_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable_Impl::SetRoundingMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable_Impl::SetTag(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable_Impl::GetTag(this, core::mem::transmute_copy(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn SetVariableChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn SetVariableChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable_Impl::SetVariableChangeHandler(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn SetVariableIntegerChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable_Impl, - { + unsafe extern "system" fn SetVariableIntegerChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable_Impl::SetVariableIntegerChangeHandler(this, windows_core::from_raw_borrowed(&handler)).into() } @@ -2367,7 +1770,7 @@ impl IUIAnimationVariable_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectComposition")] -pub trait IUIAnimationVariable2_Impl: Sized { +pub trait IUIAnimationVariable2_Impl: Sized + windows_core::IUnknownImpl { fn GetDimension(&self) -> windows_core::Result; fn GetValue(&self) -> windows_core::Result; fn GetVectorValue(&self, value: *mut f64, cdimension: u32) -> windows_core::Result<()>; @@ -2399,14 +1802,8 @@ pub trait IUIAnimationVariable2_Impl: Sized { impl windows_core::RuntimeName for IUIAnimationVariable2 {} #[cfg(feature = "Win32_Graphics_DirectComposition")] impl IUIAnimationVariable2_Vtbl { - pub const fn new() -> IUIAnimationVariable2_Vtbl - where - Identity: IUIAnimationVariable2_Impl, - { - unsafe extern "system" fn GetDimension(this: *mut core::ffi::c_void, dimension: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + pub const fn new() -> IUIAnimationVariable2_Vtbl { + unsafe extern "system" fn GetDimension(this: *mut core::ffi::c_void, dimension: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable2_Impl::GetDimension(this) { Ok(ok__) => { @@ -2416,10 +1813,7 @@ impl IUIAnimationVariable2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, value: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable2_Impl::GetValue(this) { Ok(ok__) => { @@ -2429,31 +1823,19 @@ impl IUIAnimationVariable2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVectorValue(this: *mut core::ffi::c_void, value: *mut f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetVectorValue(this: *mut core::ffi::c_void, value: *mut f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::GetVectorValue(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn GetCurve(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetCurve(this: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::GetCurve(this, windows_core::from_raw_borrowed(&animation)).into() } - unsafe extern "system" fn GetVectorCurve(this: *mut core::ffi::c_void, animation: *const *mut core::ffi::c_void, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetVectorCurve(this: *mut core::ffi::c_void, animation: *const *mut core::ffi::c_void, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::GetVectorCurve(this, core::mem::transmute_copy(&animation), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn GetFinalValue(this: *mut core::ffi::c_void, finalvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetFinalValue(this: *mut core::ffi::c_void, finalvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable2_Impl::GetFinalValue(this) { Ok(ok__) => { @@ -2463,17 +1845,11 @@ impl IUIAnimationVariable2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFinalVectorValue(this: *mut core::ffi::c_void, finalvalue: *mut f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetFinalVectorValue(this: *mut core::ffi::c_void, finalvalue: *mut f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::GetFinalVectorValue(this, core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn GetPreviousValue(this: *mut core::ffi::c_void, previousvalue: *mut f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetPreviousValue(this: *mut core::ffi::c_void, previousvalue: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable2_Impl::GetPreviousValue(this) { Ok(ok__) => { @@ -2483,17 +1859,11 @@ impl IUIAnimationVariable2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreviousVectorValue(this: *mut core::ffi::c_void, previousvalue: *mut f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetPreviousVectorValue(this: *mut core::ffi::c_void, previousvalue: *mut f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::GetPreviousVectorValue(this, core::mem::transmute_copy(&previousvalue), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn GetIntegerValue(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetIntegerValue(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable2_Impl::GetIntegerValue(this) { Ok(ok__) => { @@ -2503,17 +1873,11 @@ impl IUIAnimationVariable2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIntegerVectorValue(this: *mut core::ffi::c_void, value: *mut i32, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetIntegerVectorValue(this: *mut core::ffi::c_void, value: *mut i32, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::GetIntegerVectorValue(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn GetFinalIntegerValue(this: *mut core::ffi::c_void, finalvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetFinalIntegerValue(this: *mut core::ffi::c_void, finalvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable2_Impl::GetFinalIntegerValue(this) { Ok(ok__) => { @@ -2523,17 +1887,11 @@ impl IUIAnimationVariable2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFinalIntegerVectorValue(this: *mut core::ffi::c_void, finalvalue: *mut i32, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetFinalIntegerVectorValue(this: *mut core::ffi::c_void, finalvalue: *mut i32, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::GetFinalIntegerVectorValue(this, core::mem::transmute_copy(&finalvalue), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn GetPreviousIntegerValue(this: *mut core::ffi::c_void, previousvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetPreviousIntegerValue(this: *mut core::ffi::c_void, previousvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable2_Impl::GetPreviousIntegerValue(this) { Ok(ok__) => { @@ -2543,17 +1901,11 @@ impl IUIAnimationVariable2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreviousIntegerVectorValue(this: *mut core::ffi::c_void, previousvalue: *mut i32, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetPreviousIntegerVectorValue(this: *mut core::ffi::c_void, previousvalue: *mut i32, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::GetPreviousIntegerVectorValue(this, core::mem::transmute_copy(&previousvalue), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn GetCurrentStoryboard(this: *mut core::ffi::c_void, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetCurrentStoryboard(this: *mut core::ffi::c_void, storyboard: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAnimationVariable2_Impl::GetCurrentStoryboard(this) { Ok(ok__) => { @@ -2563,73 +1915,43 @@ impl IUIAnimationVariable2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLowerBound(this: *mut core::ffi::c_void, bound: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn SetLowerBound(this: *mut core::ffi::c_void, bound: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetLowerBound(this, core::mem::transmute_copy(&bound)).into() } - unsafe extern "system" fn SetLowerBoundVector(this: *mut core::ffi::c_void, bound: *const f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn SetLowerBoundVector(this: *mut core::ffi::c_void, bound: *const f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetLowerBoundVector(this, core::mem::transmute_copy(&bound), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn SetUpperBound(this: *mut core::ffi::c_void, bound: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn SetUpperBound(this: *mut core::ffi::c_void, bound: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetUpperBound(this, core::mem::transmute_copy(&bound)).into() } - unsafe extern "system" fn SetUpperBoundVector(this: *mut core::ffi::c_void, bound: *const f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn SetUpperBoundVector(this: *mut core::ffi::c_void, bound: *const f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetUpperBoundVector(this, core::mem::transmute_copy(&bound), core::mem::transmute_copy(&cdimension)).into() } - unsafe extern "system" fn SetRoundingMode(this: *mut core::ffi::c_void, mode: UI_ANIMATION_ROUNDING_MODE) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn SetRoundingMode(this: *mut core::ffi::c_void, mode: UI_ANIMATION_ROUNDING_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetRoundingMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn SetTag(this: *mut core::ffi::c_void, object: *mut core::ffi::c_void, id: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetTag(this, windows_core::from_raw_borrowed(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn GetTag(this: *mut core::ffi::c_void, object: *mut *mut core::ffi::c_void, id: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::GetTag(this, core::mem::transmute_copy(&object), core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn SetVariableChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn SetVariableChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetVariableChangeHandler(this, windows_core::from_raw_borrowed(&handler), core::mem::transmute_copy(&fregisterfornextanimationevent)).into() } - unsafe extern "system" fn SetVariableIntegerChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn SetVariableIntegerChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetVariableIntegerChangeHandler(this, windows_core::from_raw_borrowed(&handler), core::mem::transmute_copy(&fregisterfornextanimationevent)).into() } - unsafe extern "system" fn SetVariableCurveChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationVariable2_Impl, - { + unsafe extern "system" fn SetVariableCurveChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetVariableCurveChangeHandler(this, windows_core::from_raw_borrowed(&handler)).into() } @@ -2667,19 +1989,13 @@ impl IUIAnimationVariable2_Vtbl { iid == &::IID } } -pub trait IUIAnimationVariableChangeHandler_Impl: Sized { +pub trait IUIAnimationVariableChangeHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnValueChanged(&self, storyboard: Option<&IUIAnimationStoryboard>, variable: Option<&IUIAnimationVariable>, newvalue: f64, previousvalue: f64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationVariableChangeHandler {} impl IUIAnimationVariableChangeHandler_Vtbl { - pub const fn new() -> IUIAnimationVariableChangeHandler_Vtbl - where - Identity: IUIAnimationVariableChangeHandler_Impl, - { - unsafe extern "system" fn OnValueChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, newvalue: f64, previousvalue: f64) -> windows_core::HRESULT - where - Identity: IUIAnimationVariableChangeHandler_Impl, - { + pub const fn new() -> IUIAnimationVariableChangeHandler_Vtbl { + unsafe extern "system" fn OnValueChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, newvalue: f64, previousvalue: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariableChangeHandler_Impl::OnValueChanged(this, windows_core::from_raw_borrowed(&storyboard), windows_core::from_raw_borrowed(&variable), core::mem::transmute_copy(&newvalue), core::mem::transmute_copy(&previousvalue)).into() } @@ -2689,19 +2005,13 @@ impl IUIAnimationVariableChangeHandler_Vtbl { iid == &::IID } } -pub trait IUIAnimationVariableChangeHandler2_Impl: Sized { +pub trait IUIAnimationVariableChangeHandler2_Impl: Sized + windows_core::IUnknownImpl { fn OnValueChanged(&self, storyboard: Option<&IUIAnimationStoryboard2>, variable: Option<&IUIAnimationVariable2>, newvalue: *const f64, previousvalue: *const f64, cdimension: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationVariableChangeHandler2 {} impl IUIAnimationVariableChangeHandler2_Vtbl { - pub const fn new() -> IUIAnimationVariableChangeHandler2_Vtbl - where - Identity: IUIAnimationVariableChangeHandler2_Impl, - { - unsafe extern "system" fn OnValueChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, newvalue: *const f64, previousvalue: *const f64, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariableChangeHandler2_Impl, - { + pub const fn new() -> IUIAnimationVariableChangeHandler2_Vtbl { + unsafe extern "system" fn OnValueChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, newvalue: *const f64, previousvalue: *const f64, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariableChangeHandler2_Impl::OnValueChanged(this, windows_core::from_raw_borrowed(&storyboard), windows_core::from_raw_borrowed(&variable), core::mem::transmute_copy(&newvalue), core::mem::transmute_copy(&previousvalue), core::mem::transmute_copy(&cdimension)).into() } @@ -2711,19 +2021,13 @@ impl IUIAnimationVariableChangeHandler2_Vtbl { iid == &::IID } } -pub trait IUIAnimationVariableCurveChangeHandler2_Impl: Sized { +pub trait IUIAnimationVariableCurveChangeHandler2_Impl: Sized + windows_core::IUnknownImpl { fn OnCurveChanged(&self, variable: Option<&IUIAnimationVariable2>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationVariableCurveChangeHandler2 {} impl IUIAnimationVariableCurveChangeHandler2_Vtbl { - pub const fn new() -> IUIAnimationVariableCurveChangeHandler2_Vtbl - where - Identity: IUIAnimationVariableCurveChangeHandler2_Impl, - { - unsafe extern "system" fn OnCurveChanged(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIAnimationVariableCurveChangeHandler2_Impl, - { + pub const fn new() -> IUIAnimationVariableCurveChangeHandler2_Vtbl { + unsafe extern "system" fn OnCurveChanged(this: *mut core::ffi::c_void, variable: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariableCurveChangeHandler2_Impl::OnCurveChanged(this, windows_core::from_raw_borrowed(&variable)).into() } @@ -2733,19 +2037,13 @@ impl IUIAnimationVariableCurveChangeHandler2_Vtbl { iid == &::IID } } -pub trait IUIAnimationVariableIntegerChangeHandler_Impl: Sized { +pub trait IUIAnimationVariableIntegerChangeHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnIntegerValueChanged(&self, storyboard: Option<&IUIAnimationStoryboard>, variable: Option<&IUIAnimationVariable>, newvalue: i32, previousvalue: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationVariableIntegerChangeHandler {} impl IUIAnimationVariableIntegerChangeHandler_Vtbl { - pub const fn new() -> IUIAnimationVariableIntegerChangeHandler_Vtbl - where - Identity: IUIAnimationVariableIntegerChangeHandler_Impl, - { - unsafe extern "system" fn OnIntegerValueChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, newvalue: i32, previousvalue: i32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariableIntegerChangeHandler_Impl, - { + pub const fn new() -> IUIAnimationVariableIntegerChangeHandler_Vtbl { + unsafe extern "system" fn OnIntegerValueChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, newvalue: i32, previousvalue: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariableIntegerChangeHandler_Impl::OnIntegerValueChanged(this, windows_core::from_raw_borrowed(&storyboard), windows_core::from_raw_borrowed(&variable), core::mem::transmute_copy(&newvalue), core::mem::transmute_copy(&previousvalue)).into() } @@ -2755,19 +2053,13 @@ impl IUIAnimationVariableIntegerChangeHandler_Vtbl { iid == &::IID } } -pub trait IUIAnimationVariableIntegerChangeHandler2_Impl: Sized { +pub trait IUIAnimationVariableIntegerChangeHandler2_Impl: Sized + windows_core::IUnknownImpl { fn OnIntegerValueChanged(&self, storyboard: Option<&IUIAnimationStoryboard2>, variable: Option<&IUIAnimationVariable2>, newvalue: *const i32, previousvalue: *const i32, cdimension: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIAnimationVariableIntegerChangeHandler2 {} impl IUIAnimationVariableIntegerChangeHandler2_Vtbl { - pub const fn new() -> IUIAnimationVariableIntegerChangeHandler2_Vtbl - where - Identity: IUIAnimationVariableIntegerChangeHandler2_Impl, - { - unsafe extern "system" fn OnIntegerValueChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, newvalue: *const i32, previousvalue: *const i32, cdimension: u32) -> windows_core::HRESULT - where - Identity: IUIAnimationVariableIntegerChangeHandler2_Impl, - { + pub const fn new() -> IUIAnimationVariableIntegerChangeHandler2_Vtbl { + unsafe extern "system" fn OnIntegerValueChanged(this: *mut core::ffi::c_void, storyboard: *mut core::ffi::c_void, variable: *mut core::ffi::c_void, newvalue: *const i32, previousvalue: *const i32, cdimension: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariableIntegerChangeHandler2_Impl::OnIntegerValueChanged(this, windows_core::from_raw_borrowed(&storyboard), windows_core::from_raw_borrowed(&variable), core::mem::transmute_copy(&newvalue), core::mem::transmute_copy(&previousvalue), core::mem::transmute_copy(&cdimension)).into() } 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 3b7131b5c3..19df199420 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/impl.rs @@ -1,4 +1,4 @@ -pub trait IDeviceModelPlugIn_Impl: Sized { +pub trait IDeviceModelPlugIn_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -13,21 +13,12 @@ pub trait IDeviceModelPlugIn_Impl: Sized { } impl windows_core::RuntimeName for IDeviceModelPlugIn {} impl IDeviceModelPlugIn_Vtbl { - pub const fn new() -> IDeviceModelPlugIn_Vtbl - where - Identity: IDeviceModelPlugIn_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, bstrxml: core::mem::MaybeUninit, cnummodels: u32, imodelposition: u32) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + pub const fn new() -> IDeviceModelPlugIn_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, bstrxml: core::mem::MaybeUninit, cnummodels: u32, imodelposition: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceModelPlugIn_Impl::Initialize(this, core::mem::transmute(&bstrxml), core::mem::transmute_copy(&cnummodels), core::mem::transmute_copy(&imodelposition)).into() } - unsafe extern "system" fn GetNumChannels(this: *mut core::ffi::c_void, pnumchannels: *mut u32) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + unsafe extern "system" fn GetNumChannels(this: *mut core::ffi::c_void, pnumchannels: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceModelPlugIn_Impl::GetNumChannels(this) { Ok(ok__) => { @@ -37,17 +28,11 @@ impl IDeviceModelPlugIn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeviceToColorimetricColors(this: *mut core::ffi::c_void, ccolors: u32, cchannels: u32, pdevicevalues: *const f32, pxyzcolors: *mut XYZColorF) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + unsafe extern "system" fn DeviceToColorimetricColors(this: *mut core::ffi::c_void, ccolors: u32, cchannels: u32, pdevicevalues: *const f32, pxyzcolors: *mut XYZColorF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceModelPlugIn_Impl::DeviceToColorimetricColors(this, core::mem::transmute_copy(&ccolors), core::mem::transmute_copy(&cchannels), core::mem::transmute_copy(&pdevicevalues), core::mem::transmute_copy(&pxyzcolors)).into() } - unsafe extern "system" fn ColorimetricToDeviceColors(this: *mut core::ffi::c_void, ccolors: u32, cchannels: u32, pxyzcolors: *const XYZColorF, pdevicevalues: *mut f32) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + unsafe extern "system" fn ColorimetricToDeviceColors(this: *mut core::ffi::c_void, ccolors: u32, cchannels: u32, pxyzcolors: *const XYZColorF, pdevicevalues: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceModelPlugIn_Impl::ColorimetricToDeviceColors(this, core::mem::transmute_copy(&ccolors), core::mem::transmute_copy(&cchannels), core::mem::transmute_copy(&pxyzcolors)) { Ok(ok__) => { @@ -57,10 +42,7 @@ impl IDeviceModelPlugIn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ColorimetricToDeviceColorsWithBlack(this: *mut core::ffi::c_void, ccolors: u32, cchannels: u32, pxyzcolors: *const XYZColorF, pblackinformation: *const BlackInformation, pdevicevalues: *mut f32) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + unsafe extern "system" fn ColorimetricToDeviceColorsWithBlack(this: *mut core::ffi::c_void, ccolors: u32, cchannels: u32, pxyzcolors: *const XYZColorF, pblackinformation: *const BlackInformation, pdevicevalues: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceModelPlugIn_Impl::ColorimetricToDeviceColorsWithBlack(this, core::mem::transmute_copy(&ccolors), core::mem::transmute_copy(&cchannels), core::mem::transmute_copy(&pxyzcolors), core::mem::transmute_copy(&pblackinformation)) { Ok(ok__) => { @@ -70,38 +52,23 @@ impl IDeviceModelPlugIn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransformDeviceModelInfo(this: *mut core::ffi::c_void, imodelposition: u32, pidevicemodelother: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + unsafe extern "system" fn SetTransformDeviceModelInfo(this: *mut core::ffi::c_void, imodelposition: u32, pidevicemodelother: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceModelPlugIn_Impl::SetTransformDeviceModelInfo(this, core::mem::transmute_copy(&imodelposition), windows_core::from_raw_borrowed(&pidevicemodelother)).into() } - unsafe extern "system" fn GetPrimarySamples(this: *mut core::ffi::c_void, pprimarycolor: *mut PrimaryXYZColors) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + unsafe extern "system" fn GetPrimarySamples(this: *mut core::ffi::c_void, pprimarycolor: *mut PrimaryXYZColors) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceModelPlugIn_Impl::GetPrimarySamples(this, core::mem::transmute_copy(&pprimarycolor)).into() } - unsafe extern "system" fn GetGamutBoundaryMeshSize(this: *mut core::ffi::c_void, pnumvertices: *mut u32, pnumtriangles: *mut u32) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + unsafe extern "system" fn GetGamutBoundaryMeshSize(this: *mut core::ffi::c_void, pnumvertices: *mut u32, pnumtriangles: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceModelPlugIn_Impl::GetGamutBoundaryMeshSize(this, core::mem::transmute_copy(&pnumvertices), core::mem::transmute_copy(&pnumtriangles)).into() } - unsafe extern "system" fn GetGamutBoundaryMesh(this: *mut core::ffi::c_void, cchannels: u32, cvertices: u32, ctriangles: u32, pvertices: *mut f32, ptriangles: *mut GamutShellTriangle) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + unsafe extern "system" fn GetGamutBoundaryMesh(this: *mut core::ffi::c_void, cchannels: u32, cvertices: u32, ctriangles: u32, pvertices: *mut f32, ptriangles: *mut GamutShellTriangle) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceModelPlugIn_Impl::GetGamutBoundaryMesh(this, core::mem::transmute_copy(&cchannels), core::mem::transmute_copy(&cvertices), core::mem::transmute_copy(&ctriangles), core::mem::transmute_copy(&pvertices), core::mem::transmute_copy(&ptriangles)).into() } - unsafe extern "system" fn GetNeutralAxisSize(this: *mut core::ffi::c_void, pccolors: *mut u32) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + unsafe extern "system" fn GetNeutralAxisSize(this: *mut core::ffi::c_void, pccolors: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceModelPlugIn_Impl::GetNeutralAxisSize(this) { Ok(ok__) => { @@ -111,10 +78,7 @@ impl IDeviceModelPlugIn_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNeutralAxis(this: *mut core::ffi::c_void, ccolors: u32, pxyzcolors: *mut XYZColorF) -> windows_core::HRESULT - where - Identity: IDeviceModelPlugIn_Impl, - { + unsafe extern "system" fn GetNeutralAxis(this: *mut core::ffi::c_void, ccolors: u32, pxyzcolors: *mut XYZColorF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeviceModelPlugIn_Impl::GetNeutralAxis(this, core::mem::transmute_copy(&ccolors), core::mem::transmute_copy(&pxyzcolors)).into() } @@ -137,27 +101,18 @@ impl IDeviceModelPlugIn_Vtbl { iid == &::IID } } -pub trait IGamutMapModelPlugIn_Impl: Sized { +pub trait IGamutMapModelPlugIn_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, bstrxml: &windows_core::BSTR, psrcplugin: Option<&IDeviceModelPlugIn>, pdestplugin: Option<&IDeviceModelPlugIn>, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> windows_core::Result<()>; fn SourceToDestinationAppearanceColors(&self, ccolors: u32, pinputcolors: *const JChColorF, poutputcolors: *mut JChColorF) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGamutMapModelPlugIn {} impl IGamutMapModelPlugIn_Vtbl { - pub const fn new() -> IGamutMapModelPlugIn_Vtbl - where - Identity: IGamutMapModelPlugIn_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, bstrxml: core::mem::MaybeUninit, psrcplugin: *mut core::ffi::c_void, pdestplugin: *mut core::ffi::c_void, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> windows_core::HRESULT - where - Identity: IGamutMapModelPlugIn_Impl, - { + pub const fn new() -> IGamutMapModelPlugIn_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, bstrxml: core::mem::MaybeUninit, psrcplugin: *mut core::ffi::c_void, pdestplugin: *mut core::ffi::c_void, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGamutMapModelPlugIn_Impl::Initialize(this, core::mem::transmute(&bstrxml), windows_core::from_raw_borrowed(&psrcplugin), windows_core::from_raw_borrowed(&pdestplugin), core::mem::transmute_copy(&psrcgbd), core::mem::transmute_copy(&pdestgbd)).into() } - unsafe extern "system" fn SourceToDestinationAppearanceColors(this: *mut core::ffi::c_void, ccolors: u32, pinputcolors: *const JChColorF, poutputcolors: *mut JChColorF) -> windows_core::HRESULT - where - Identity: IGamutMapModelPlugIn_Impl, - { + unsafe extern "system" fn SourceToDestinationAppearanceColors(this: *mut core::ffi::c_void, ccolors: u32, pinputcolors: *const JChColorF, poutputcolors: *mut JChColorF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGamutMapModelPlugIn_Impl::SourceToDestinationAppearanceColors(this, core::mem::transmute_copy(&ccolors), core::mem::transmute_copy(&pinputcolors), core::mem::transmute_copy(&poutputcolors)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/impl.rs index 4205f62780..4988c07329 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/impl.rs @@ -1,32 +1,20 @@ -pub trait IPrintDialogCallback_Impl: Sized { +pub trait IPrintDialogCallback_Impl: Sized + windows_core::IUnknownImpl { fn InitDone(&self) -> windows_core::Result<()>; fn SelectionChange(&self) -> windows_core::Result<()>; fn HandleMessage(&self, hdlg: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, presult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintDialogCallback {} impl IPrintDialogCallback_Vtbl { - pub const fn new() -> IPrintDialogCallback_Vtbl - where - Identity: IPrintDialogCallback_Impl, - { - unsafe extern "system" fn InitDone(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintDialogCallback_Impl, - { + pub const fn new() -> IPrintDialogCallback_Vtbl { + unsafe extern "system" fn InitDone(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDialogCallback_Impl::InitDone(this).into() } - unsafe extern "system" fn SelectionChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintDialogCallback_Impl, - { + unsafe extern "system" fn SelectionChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDialogCallback_Impl::SelectionChange(this).into() } - unsafe extern "system" fn HandleMessage(this: *mut core::ffi::c_void, hdlg: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, presult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IPrintDialogCallback_Impl, - { + unsafe extern "system" fn HandleMessage(this: *mut core::ffi::c_void, hdlg: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, presult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDialogCallback_Impl::HandleMessage(this, core::mem::transmute_copy(&hdlg), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&presult)).into() } @@ -42,7 +30,7 @@ impl IPrintDialogCallback_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IPrintDialogServices_Impl: Sized { +pub trait IPrintDialogServices_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentDevMode(&self, pdevmode: *mut super::super::super::Graphics::Gdi::DEVMODEA, pcbsize: *mut u32) -> windows_core::Result<()>; fn GetCurrentPrinterName(&self, pprintername: windows_core::PWSTR, pcchsize: *mut u32) -> windows_core::Result<()>; fn GetCurrentPortName(&self, pportname: windows_core::PWSTR, pcchsize: *mut u32) -> windows_core::Result<()>; @@ -51,28 +39,16 @@ pub trait IPrintDialogServices_Impl: Sized { impl windows_core::RuntimeName for IPrintDialogServices {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IPrintDialogServices_Vtbl { - pub const fn new() -> IPrintDialogServices_Vtbl - where - Identity: IPrintDialogServices_Impl, - { - unsafe extern "system" fn GetCurrentDevMode(this: *mut core::ffi::c_void, pdevmode: *mut super::super::super::Graphics::Gdi::DEVMODEA, pcbsize: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintDialogServices_Impl, - { + pub const fn new() -> IPrintDialogServices_Vtbl { + unsafe extern "system" fn GetCurrentDevMode(this: *mut core::ffi::c_void, pdevmode: *mut super::super::super::Graphics::Gdi::DEVMODEA, pcbsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDialogServices_Impl::GetCurrentDevMode(this, core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&pcbsize)).into() } - unsafe extern "system" fn GetCurrentPrinterName(this: *mut core::ffi::c_void, pprintername: windows_core::PWSTR, pcchsize: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintDialogServices_Impl, - { + unsafe extern "system" fn GetCurrentPrinterName(this: *mut core::ffi::c_void, pprintername: windows_core::PWSTR, pcchsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDialogServices_Impl::GetCurrentPrinterName(this, core::mem::transmute_copy(&pprintername), core::mem::transmute_copy(&pcchsize)).into() } - unsafe extern "system" fn GetCurrentPortName(this: *mut core::ffi::c_void, pportname: windows_core::PWSTR, pcchsize: *mut u32) -> windows_core::HRESULT - where - Identity: IPrintDialogServices_Impl, - { + unsafe extern "system" fn GetCurrentPortName(this: *mut core::ffi::c_void, pportname: windows_core::PWSTR, pcchsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintDialogServices_Impl::GetCurrentPortName(this, core::mem::transmute_copy(&pportname), core::mem::transmute_copy(&pcchsize)).into() } 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 11704581ca..1b4c10327b 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 @@ -1,5 +1,5 @@ #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole"))] -pub trait IRichEditOle_Impl: Sized { +pub trait IRichEditOle_Impl: Sized + windows_core::IUnknownImpl { fn GetClientSite(&self) -> windows_core::Result; fn GetObjectCount(&self) -> i32; fn GetLinkCount(&self) -> i32; @@ -21,14 +21,8 @@ pub trait IRichEditOle_Impl: Sized { impl windows_core::RuntimeName for IRichEditOle {} #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole"))] impl IRichEditOle_Vtbl { - pub const fn new() -> IRichEditOle_Vtbl - where - Identity: IRichEditOle_Impl, - { - unsafe extern "system" fn GetClientSite(this: *mut core::ffi::c_void, lplpolesite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + pub const fn new() -> IRichEditOle_Vtbl { + unsafe extern "system" fn GetClientSite(this: *mut core::ffi::c_void, lplpolesite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRichEditOle_Impl::GetClientSite(this) { Ok(ok__) => { @@ -38,108 +32,63 @@ impl IRichEditOle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectCount(this: *mut core::ffi::c_void) -> i32 - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn GetObjectCount(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::GetObjectCount(this) } - unsafe extern "system" fn GetLinkCount(this: *mut core::ffi::c_void) -> i32 - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn GetLinkCount(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::GetLinkCount(this) } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, iob: i32, lpreobject: *mut REOBJECT, dwflags: RICH_EDIT_GET_OBJECT_FLAGS) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, iob: i32, lpreobject: *mut REOBJECT, dwflags: RICH_EDIT_GET_OBJECT_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::GetObject(this, core::mem::transmute_copy(&iob), core::mem::transmute_copy(&lpreobject), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn InsertObject(this: *mut core::ffi::c_void, lpreobject: *mut REOBJECT) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn InsertObject(this: *mut core::ffi::c_void, lpreobject: *mut REOBJECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::InsertObject(this, core::mem::transmute_copy(&lpreobject)).into() } - unsafe extern "system" fn ConvertObject(this: *mut core::ffi::c_void, iob: i32, rclsidnew: *const windows_core::GUID, lpstrusertypenew: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn ConvertObject(this: *mut core::ffi::c_void, iob: i32, rclsidnew: *const windows_core::GUID, lpstrusertypenew: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::ConvertObject(this, core::mem::transmute_copy(&iob), core::mem::transmute_copy(&rclsidnew), core::mem::transmute(&lpstrusertypenew)).into() } - unsafe extern "system" fn ActivateAs(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rclsidas: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn ActivateAs(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rclsidas: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::ActivateAs(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&rclsidas)).into() } - unsafe extern "system" fn SetHostNames(this: *mut core::ffi::c_void, lpstrcontainerapp: windows_core::PCSTR, lpstrcontainerobj: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn SetHostNames(this: *mut core::ffi::c_void, lpstrcontainerapp: windows_core::PCSTR, lpstrcontainerobj: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::SetHostNames(this, core::mem::transmute(&lpstrcontainerapp), core::mem::transmute(&lpstrcontainerobj)).into() } - unsafe extern "system" fn SetLinkAvailable(this: *mut core::ffi::c_void, iob: i32, favailable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn SetLinkAvailable(this: *mut core::ffi::c_void, iob: i32, favailable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::SetLinkAvailable(this, core::mem::transmute_copy(&iob), core::mem::transmute_copy(&favailable)).into() } - unsafe extern "system" fn SetDvaspect(this: *mut core::ffi::c_void, iob: i32, dvaspect: u32) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn SetDvaspect(this: *mut core::ffi::c_void, iob: i32, dvaspect: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::SetDvaspect(this, core::mem::transmute_copy(&iob), core::mem::transmute_copy(&dvaspect)).into() } - unsafe extern "system" fn HandsOffStorage(this: *mut core::ffi::c_void, iob: i32) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn HandsOffStorage(this: *mut core::ffi::c_void, iob: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::HandsOffStorage(this, core::mem::transmute_copy(&iob)).into() } - unsafe extern "system" fn SaveCompleted(this: *mut core::ffi::c_void, iob: i32, lpstg: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn SaveCompleted(this: *mut core::ffi::c_void, iob: i32, lpstg: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::SaveCompleted(this, core::mem::transmute_copy(&iob), windows_core::from_raw_borrowed(&lpstg)).into() } - unsafe extern "system" fn InPlaceDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn InPlaceDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::InPlaceDeactivate(this).into() } - unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::ContextSensitiveHelp(this, core::mem::transmute_copy(&fentermode)).into() } - unsafe extern "system" fn GetClipboardData(this: *mut core::ffi::c_void, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn GetClipboardData(this: *mut core::ffi::c_void, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::GetClipboardData(this, core::mem::transmute_copy(&lpchrg), core::mem::transmute_copy(&reco), core::mem::transmute_copy(&lplpdataobj)).into() } - unsafe extern "system" fn ImportDataObject(this: *mut core::ffi::c_void, lpdataobj: *mut core::ffi::c_void, cf: u16, hmetapict: super::super::super::Foundation::HGLOBAL) -> windows_core::HRESULT - where - Identity: IRichEditOle_Impl, - { + unsafe extern "system" fn ImportDataObject(this: *mut core::ffi::c_void, lpdataobj: *mut core::ffi::c_void, cf: u16, hmetapict: super::super::super::Foundation::HGLOBAL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::ImportDataObject(this, windows_core::from_raw_borrowed(&lpdataobj), core::mem::transmute_copy(&cf), core::mem::transmute_copy(&hmetapict)).into() } @@ -168,7 +117,7 @@ impl IRichEditOle_Vtbl { } } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole", feature = "Win32_System_SystemServices", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IRichEditOleCallback_Impl: Sized { +pub trait IRichEditOleCallback_Impl: Sized + windows_core::IUnknownImpl { fn GetNewStorage(&self) -> windows_core::Result; fn GetInPlaceContext(&self, lplpframe: *mut Option, lplpdoc: *mut Option, lpframeinfo: *mut super::super::super::System::Ole::OLEINPLACEFRAMEINFO) -> windows_core::Result<()>; fn ShowContainerUI(&self, fshow: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -184,14 +133,8 @@ pub trait IRichEditOleCallback_Impl: Sized { impl windows_core::RuntimeName for IRichEditOleCallback {} #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole", feature = "Win32_System_SystemServices", feature = "Win32_UI_WindowsAndMessaging"))] impl IRichEditOleCallback_Vtbl { - pub const fn new() -> IRichEditOleCallback_Vtbl - where - Identity: IRichEditOleCallback_Impl, - { - unsafe extern "system" fn GetNewStorage(this: *mut core::ffi::c_void, lplpstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRichEditOleCallback_Impl, - { + pub const fn new() -> IRichEditOleCallback_Vtbl { + unsafe extern "system" fn GetNewStorage(this: *mut core::ffi::c_void, lplpstg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRichEditOleCallback_Impl::GetNewStorage(this) { Ok(ok__) => { @@ -201,66 +144,39 @@ impl IRichEditOleCallback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInPlaceContext(this: *mut core::ffi::c_void, lplpframe: *mut *mut core::ffi::c_void, lplpdoc: *mut *mut core::ffi::c_void, lpframeinfo: *mut super::super::super::System::Ole::OLEINPLACEFRAMEINFO) -> windows_core::HRESULT - where - Identity: IRichEditOleCallback_Impl, - { + unsafe extern "system" fn GetInPlaceContext(this: *mut core::ffi::c_void, lplpframe: *mut *mut core::ffi::c_void, lplpdoc: *mut *mut core::ffi::c_void, lpframeinfo: *mut super::super::super::System::Ole::OLEINPLACEFRAMEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::GetInPlaceContext(this, core::mem::transmute_copy(&lplpframe), core::mem::transmute_copy(&lplpdoc), core::mem::transmute_copy(&lpframeinfo)).into() } - unsafe extern "system" fn ShowContainerUI(this: *mut core::ffi::c_void, fshow: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRichEditOleCallback_Impl, - { + unsafe extern "system" fn ShowContainerUI(this: *mut core::ffi::c_void, fshow: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::ShowContainerUI(this, core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn QueryInsertObject(this: *mut core::ffi::c_void, lpclsid: *mut windows_core::GUID, lpstg: *mut core::ffi::c_void, cp: i32) -> windows_core::HRESULT - where - Identity: IRichEditOleCallback_Impl, - { + unsafe extern "system" fn QueryInsertObject(this: *mut core::ffi::c_void, lpclsid: *mut windows_core::GUID, lpstg: *mut core::ffi::c_void, cp: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::QueryInsertObject(this, core::mem::transmute_copy(&lpclsid), windows_core::from_raw_borrowed(&lpstg), core::mem::transmute_copy(&cp)).into() } - unsafe extern "system" fn DeleteObject(this: *mut core::ffi::c_void, lpoleobj: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRichEditOleCallback_Impl, - { + unsafe extern "system" fn DeleteObject(this: *mut core::ffi::c_void, lpoleobj: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::DeleteObject(this, windows_core::from_raw_borrowed(&lpoleobj)).into() } - unsafe extern "system" fn QueryAcceptData(this: *mut core::ffi::c_void, lpdataobj: *mut core::ffi::c_void, lpcfformat: *mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: super::super::super::Foundation::BOOL, hmetapict: super::super::super::Foundation::HGLOBAL) -> windows_core::HRESULT - where - Identity: IRichEditOleCallback_Impl, - { + unsafe extern "system" fn QueryAcceptData(this: *mut core::ffi::c_void, lpdataobj: *mut core::ffi::c_void, lpcfformat: *mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: super::super::super::Foundation::BOOL, hmetapict: super::super::super::Foundation::HGLOBAL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::QueryAcceptData(this, windows_core::from_raw_borrowed(&lpdataobj), core::mem::transmute_copy(&lpcfformat), core::mem::transmute_copy(&reco), core::mem::transmute_copy(&freally), core::mem::transmute_copy(&hmetapict)).into() } - unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRichEditOleCallback_Impl, - { + unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::ContextSensitiveHelp(this, core::mem::transmute_copy(&fentermode)).into() } - unsafe extern "system" fn GetClipboardData(this: *mut core::ffi::c_void, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRichEditOleCallback_Impl, - { + unsafe extern "system" fn GetClipboardData(this: *mut core::ffi::c_void, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::GetClipboardData(this, core::mem::transmute_copy(&lpchrg), core::mem::transmute_copy(&reco), core::mem::transmute_copy(&lplpdataobj)).into() } - unsafe extern "system" fn GetDragDropEffect(this: *mut core::ffi::c_void, fdrag: super::super::super::Foundation::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT - where - Identity: IRichEditOleCallback_Impl, - { + unsafe extern "system" fn GetDragDropEffect(this: *mut core::ffi::c_void, fdrag: super::super::super::Foundation::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::GetDragDropEffect(this, core::mem::transmute_copy(&fdrag), core::mem::transmute_copy(&grfkeystate), core::mem::transmute_copy(&pdweffect)).into() } - unsafe extern "system" fn GetContextMenu(this: *mut core::ffi::c_void, seltype: RICH_EDIT_GET_CONTEXT_MENU_SEL_TYPE, lpoleobj: *mut core::ffi::c_void, lpchrg: *mut CHARRANGE, lphmenu: *mut super::super::WindowsAndMessaging::HMENU) -> windows_core::HRESULT - where - Identity: IRichEditOleCallback_Impl, - { + unsafe extern "system" fn GetContextMenu(this: *mut core::ffi::c_void, seltype: RICH_EDIT_GET_CONTEXT_MENU_SEL_TYPE, lpoleobj: *mut core::ffi::c_void, lpchrg: *mut CHARRANGE, lphmenu: *mut super::super::WindowsAndMessaging::HMENU) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::GetContextMenu(this, core::mem::transmute_copy(&seltype), windows_core::from_raw_borrowed(&lpoleobj), core::mem::transmute_copy(&lpchrg), core::mem::transmute_copy(&lphmenu)).into() } @@ -282,19 +198,13 @@ impl IRichEditOleCallback_Vtbl { iid == &::IID } } -pub trait IRicheditUiaOverrides_Impl: Sized { +pub trait IRicheditUiaOverrides_Impl: Sized + windows_core::IUnknownImpl { fn GetPropertyOverrideValue(&self, propertyid: i32, pretvalue: *mut windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRicheditUiaOverrides {} impl IRicheditUiaOverrides_Vtbl { - pub const fn new() -> IRicheditUiaOverrides_Vtbl - where - Identity: IRicheditUiaOverrides_Impl, - { - unsafe extern "system" fn GetPropertyOverrideValue(this: *mut core::ffi::c_void, propertyid: i32, pretvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IRicheditUiaOverrides_Impl, - { + pub const fn new() -> IRicheditUiaOverrides_Vtbl { + unsafe extern "system" fn GetPropertyOverrideValue(this: *mut core::ffi::c_void, propertyid: i32, pretvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRicheditUiaOverrides_Impl::GetPropertyOverrideValue(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&pretvalue)).into() } @@ -310,10 +220,7 @@ pub trait ITextDisplays_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for ITextDisplays {} #[cfg(feature = "Win32_System_Com")] impl ITextDisplays_Vtbl { - pub const fn new() -> ITextDisplays_Vtbl - where - Identity: ITextDisplays_Impl, - { + pub const fn new() -> ITextDisplays_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -346,14 +253,8 @@ pub trait ITextDocument_Impl: Sized + super::super::super::System::Com::IDispatc impl windows_core::RuntimeName for ITextDocument {} #[cfg(feature = "Win32_System_Com")] impl ITextDocument_Vtbl { - pub const fn new() -> ITextDocument_Vtbl - where - Identity: ITextDocument_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + pub const fn new() -> ITextDocument_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::GetName(this) { Ok(ok__) => { @@ -363,10 +264,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ppsel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ppsel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::GetSelection(this) { Ok(ok__) => { @@ -376,10 +274,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStoryCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn GetStoryCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::GetStoryCount(this) { Ok(ok__) => { @@ -389,10 +284,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStoryRanges(this: *mut core::ffi::c_void, ppstories: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn GetStoryRanges(this: *mut core::ffi::c_void, ppstories: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::GetStoryRanges(this) { Ok(ok__) => { @@ -402,10 +294,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSaved(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn GetSaved(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::GetSaved(this) { Ok(ok__) => { @@ -415,17 +304,11 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSaved(this: *mut core::ffi::c_void, value: tomConstants) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn SetSaved(this: *mut core::ffi::c_void, value: tomConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::SetSaved(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetDefaultTabStop(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn GetDefaultTabStop(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::GetDefaultTabStop(this) { Ok(ok__) => { @@ -435,38 +318,23 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultTabStop(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn SetDefaultTabStop(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::SetDefaultTabStop(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn New(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn New(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::New(this).into() } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, flags: tomConstants, codepage: i32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, flags: tomConstants, codepage: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::Open(this, core::mem::transmute_copy(&pvar), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&codepage)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, flags: tomConstants, codepage: i32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, flags: tomConstants, codepage: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::Save(this, core::mem::transmute_copy(&pvar), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&codepage)).into() } - unsafe extern "system" fn Freeze(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn Freeze(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::Freeze(this) { Ok(ok__) => { @@ -476,10 +344,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unfreeze(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn Unfreeze(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::Unfreeze(this) { Ok(ok__) => { @@ -489,24 +354,15 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginEditCollection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn BeginEditCollection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::BeginEditCollection(this).into() } - unsafe extern "system" fn EndEditCollection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn EndEditCollection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument_Impl::EndEditCollection(this).into() } - unsafe extern "system" fn Undo(this: *mut core::ffi::c_void, count: i32, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn Undo(this: *mut core::ffi::c_void, count: i32, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::Undo(this, core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -516,10 +372,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Redo(this: *mut core::ffi::c_void, count: i32, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn Redo(this: *mut core::ffi::c_void, count: i32, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::Redo(this, core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -529,10 +382,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Range(this: *mut core::ffi::c_void, cpactive: i32, cpanchor: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn Range(this: *mut core::ffi::c_void, cpactive: i32, cpanchor: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::Range(this, core::mem::transmute_copy(&cpactive), core::mem::transmute_copy(&cpanchor)) { Ok(ok__) => { @@ -542,10 +392,7 @@ impl ITextDocument_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RangeFromPoint(this: *mut core::ffi::c_void, x: i32, y: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument_Impl, - { + unsafe extern "system" fn RangeFromPoint(this: *mut core::ffi::c_void, x: i32, y: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument_Impl::RangeFromPoint(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)) { Ok(ok__) => { @@ -633,14 +480,8 @@ pub trait ITextDocument2_Impl: Sized + ITextDocument_Impl { impl windows_core::RuntimeName for ITextDocument2 {} #[cfg(feature = "Win32_System_Com")] impl ITextDocument2_Vtbl { - pub const fn new() -> ITextDocument2_Vtbl - where - Identity: ITextDocument2_Impl, - { - unsafe extern "system" fn GetCaretType(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + pub const fn new() -> ITextDocument2_Vtbl { + unsafe extern "system" fn GetCaretType(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetCaretType(this) { Ok(ok__) => { @@ -650,17 +491,11 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCaretType(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SetCaretType(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SetCaretType(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetDisplays(this: *mut core::ffi::c_void, ppdisplays: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetDisplays(this: *mut core::ffi::c_void, ppdisplays: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetDisplays(this) { Ok(ok__) => { @@ -670,10 +505,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentFont(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetDocumentFont(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetDocumentFont(this) { Ok(ok__) => { @@ -683,17 +515,11 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDocumentFont(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SetDocumentFont(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SetDocumentFont(this, windows_core::from_raw_borrowed(&pfont)).into() } - unsafe extern "system" fn GetDocumentPara(this: *mut core::ffi::c_void, pppara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetDocumentPara(this: *mut core::ffi::c_void, pppara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetDocumentPara(this) { Ok(ok__) => { @@ -703,17 +529,11 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDocumentPara(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SetDocumentPara(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SetDocumentPara(this, windows_core::from_raw_borrowed(&ppara)).into() } - unsafe extern "system" fn GetEastAsianFlags(this: *mut core::ffi::c_void, pflags: *mut tomConstants) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetEastAsianFlags(this: *mut core::ffi::c_void, pflags: *mut tomConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetEastAsianFlags(this) { Ok(ok__) => { @@ -723,10 +543,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGenerator(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetGenerator(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetGenerator(this) { Ok(ok__) => { @@ -736,17 +553,11 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIMEInProgress(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SetIMEInProgress(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SetIMEInProgress(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetNotificationMode(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetNotificationMode(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetNotificationMode(this) { Ok(ok__) => { @@ -756,17 +567,11 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotificationMode(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SetNotificationMode(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SetNotificationMode(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSelection2(this: *mut core::ffi::c_void, ppsel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetSelection2(this: *mut core::ffi::c_void, ppsel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetSelection2(this) { Ok(ok__) => { @@ -776,10 +581,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStoryRanges2(this: *mut core::ffi::c_void, ppstories: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetStoryRanges2(this: *mut core::ffi::c_void, ppstories: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetStoryRanges2(this) { Ok(ok__) => { @@ -789,10 +591,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypographyOptions(this: *mut core::ffi::c_void, poptions: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetTypographyOptions(this: *mut core::ffi::c_void, poptions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetTypographyOptions(this) { Ok(ok__) => { @@ -802,10 +601,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetVersion(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetVersion(this) { Ok(ok__) => { @@ -815,10 +611,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut i64) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetWindow(this) { Ok(ok__) => { @@ -828,24 +621,15 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AttachMsgFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn AttachMsgFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::AttachMsgFilter(this, windows_core::from_raw_borrowed(&pfilter)).into() } - unsafe extern "system" fn CheckTextLimit(this: *mut core::ffi::c_void, cch: i32, pcch: *const i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn CheckTextLimit(this: *mut core::ffi::c_void, cch: i32, pcch: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::CheckTextLimit(this, core::mem::transmute_copy(&cch), core::mem::transmute_copy(&pcch)).into() } - unsafe extern "system" fn GetCallManager(this: *mut core::ffi::c_void, ppvoid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetCallManager(this: *mut core::ffi::c_void, ppvoid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetCallManager(this) { Ok(ok__) => { @@ -855,17 +639,11 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetClientRect(this: *mut core::ffi::c_void, r#type: tomConstants, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetClientRect(this: *mut core::ffi::c_void, r#type: tomConstants, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::GetClientRect(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pleft), core::mem::transmute_copy(&ptop), core::mem::transmute_copy(&pright), core::mem::transmute_copy(&pbottom)).into() } - unsafe extern "system" fn GetEffectColor(this: *mut core::ffi::c_void, index: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetEffectColor(this: *mut core::ffi::c_void, index: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetEffectColor(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -875,10 +653,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImmContext(this: *mut core::ffi::c_void, pcontext: *mut i64) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetImmContext(this: *mut core::ffi::c_void, pcontext: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetImmContext(this) { Ok(ok__) => { @@ -888,17 +663,11 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreferredFont(this: *mut core::ffi::c_void, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: *mut core::mem::MaybeUninit, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetPreferredFont(this: *mut core::ffi::c_void, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: *mut core::mem::MaybeUninit, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::GetPreferredFont(this, 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() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetProperty(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -908,10 +677,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStrings(this: *mut core::ffi::c_void, ppstrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetStrings(this: *mut core::ffi::c_void, ppstrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetStrings(this) { Ok(ok__) => { @@ -921,17 +687,11 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, notify: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, notify: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::Notify(this, core::mem::transmute_copy(¬ify)).into() } - unsafe extern "system" fn Range2(this: *mut core::ffi::c_void, cpactive: i32, cpanchor: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn Range2(this: *mut core::ffi::c_void, cpactive: i32, cpanchor: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::Range2(this, core::mem::transmute_copy(&cpactive), core::mem::transmute_copy(&cpanchor)) { Ok(ok__) => { @@ -941,10 +701,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RangeFromPoint2(this: *mut core::ffi::c_void, x: i32, y: i32, r#type: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn RangeFromPoint2(this: *mut core::ffi::c_void, x: i32, y: i32, r#type: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::RangeFromPoint2(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -954,66 +711,39 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseCallManager(this: *mut core::ffi::c_void, pvoid: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn ReleaseCallManager(this: *mut core::ffi::c_void, pvoid: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::ReleaseCallManager(this, windows_core::from_raw_borrowed(&pvoid)).into() } - unsafe extern "system" fn ReleaseImmContext(this: *mut core::ffi::c_void, context: i64) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn ReleaseImmContext(this: *mut core::ffi::c_void, context: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::ReleaseImmContext(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn SetEffectColor(this: *mut core::ffi::c_void, index: i32, value: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SetEffectColor(this: *mut core::ffi::c_void, index: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SetEffectColor(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SetProperty(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetTypographyOptions(this: *mut core::ffi::c_void, options: i32, mask: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SetTypographyOptions(this: *mut core::ffi::c_void, options: i32, mask: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SetTypographyOptions(this, core::mem::transmute_copy(&options), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn SysBeep(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SysBeep(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SysBeep(this).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::Update(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn UpdateWindow(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn UpdateWindow(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::UpdateWindow(this).into() } - unsafe extern "system" fn GetMathProperties(this: *mut core::ffi::c_void, poptions: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetMathProperties(this: *mut core::ffi::c_void, poptions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetMathProperties(this) { Ok(ok__) => { @@ -1023,17 +753,11 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMathProperties(this: *mut core::ffi::c_void, options: i32, mask: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SetMathProperties(this: *mut core::ffi::c_void, options: i32, mask: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SetMathProperties(this, core::mem::transmute_copy(&options), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn GetActiveStory(this: *mut core::ffi::c_void, ppstory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetActiveStory(this: *mut core::ffi::c_void, ppstory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetActiveStory(this) { Ok(ok__) => { @@ -1043,17 +767,11 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActiveStory(this: *mut core::ffi::c_void, pstory: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn SetActiveStory(this: *mut core::ffi::c_void, pstory: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2_Impl::SetActiveStory(this, windows_core::from_raw_borrowed(&pstory)).into() } - unsafe extern "system" fn GetMainStory(this: *mut core::ffi::c_void, ppstory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetMainStory(this: *mut core::ffi::c_void, ppstory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetMainStory(this) { Ok(ok__) => { @@ -1063,10 +781,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNewStory(this: *mut core::ffi::c_void, ppstory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetNewStory(this: *mut core::ffi::c_void, ppstory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetNewStory(this) { Ok(ok__) => { @@ -1076,10 +791,7 @@ impl ITextDocument2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStory(this: *mut core::ffi::c_void, index: i32, ppstory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2_Impl, - { + unsafe extern "system" fn GetStory(this: *mut core::ffi::c_void, index: i32, ppstory: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2_Impl::GetStory(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1172,28 +884,16 @@ pub trait ITextDocument2Old_Impl: Sized + ITextDocument_Impl { impl windows_core::RuntimeName for ITextDocument2Old {} #[cfg(feature = "Win32_System_Com")] impl ITextDocument2Old_Vtbl { - pub const fn new() -> ITextDocument2Old_Vtbl - where - Identity: ITextDocument2Old_Impl, - { - unsafe extern "system" fn AttachMsgFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + pub const fn new() -> ITextDocument2Old_Vtbl { + unsafe extern "system" fn AttachMsgFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::AttachMsgFilter(this, windows_core::from_raw_borrowed(&pfilter)).into() } - unsafe extern "system" fn SetEffectColor(this: *mut core::ffi::c_void, index: i32, cr: super::super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn SetEffectColor(this: *mut core::ffi::c_void, index: i32, cr: super::super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::SetEffectColor(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&cr)).into() } - unsafe extern "system" fn GetEffectColor(this: *mut core::ffi::c_void, index: i32, pcr: *mut super::super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetEffectColor(this: *mut core::ffi::c_void, index: i32, pcr: *mut super::super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2Old_Impl::GetEffectColor(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1203,10 +903,7 @@ impl ITextDocument2Old_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCaretType(this: *mut core::ffi::c_void, pcarettype: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetCaretType(this: *mut core::ffi::c_void, pcarettype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2Old_Impl::GetCaretType(this) { Ok(ok__) => { @@ -1216,17 +913,11 @@ impl ITextDocument2Old_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCaretType(this: *mut core::ffi::c_void, carettype: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn SetCaretType(this: *mut core::ffi::c_void, carettype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::SetCaretType(this, core::mem::transmute_copy(&carettype)).into() } - unsafe extern "system" fn GetImmContext(this: *mut core::ffi::c_void, pcontext: *mut i64) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetImmContext(this: *mut core::ffi::c_void, pcontext: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2Old_Impl::GetImmContext(this) { Ok(ok__) => { @@ -1236,24 +927,15 @@ impl ITextDocument2Old_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseImmContext(this: *mut core::ffi::c_void, context: i64) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn ReleaseImmContext(this: *mut core::ffi::c_void, context: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::ReleaseImmContext(this, core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn GetPreferredFont(this: *mut core::ffi::c_void, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: *mut core::mem::MaybeUninit, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetPreferredFont(this: *mut core::ffi::c_void, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: *mut core::mem::MaybeUninit, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::GetPreferredFont(this, 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() } - unsafe extern "system" fn GetNotificationMode(this: *mut core::ffi::c_void, pmode: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetNotificationMode(this: *mut core::ffi::c_void, pmode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2Old_Impl::GetNotificationMode(this) { Ok(ok__) => { @@ -1263,24 +945,15 @@ impl ITextDocument2Old_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNotificationMode(this: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn SetNotificationMode(this: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::SetNotificationMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn GetClientRect(this: *mut core::ffi::c_void, r#type: i32, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetClientRect(this: *mut core::ffi::c_void, r#type: i32, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::GetClientRect(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pleft), core::mem::transmute_copy(&ptop), core::mem::transmute_copy(&pright), core::mem::transmute_copy(&pbottom)).into() } - unsafe extern "system" fn GetSelection2(this: *mut core::ffi::c_void, ppsel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetSelection2(this: *mut core::ffi::c_void, ppsel: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2Old_Impl::GetSelection2(this) { Ok(ok__) => { @@ -1290,10 +963,7 @@ impl ITextDocument2Old_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetWindow(this: *mut core::ffi::c_void, phwnd: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2Old_Impl::GetWindow(this) { Ok(ok__) => { @@ -1303,10 +973,7 @@ impl ITextDocument2Old_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFEFlags(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetFEFlags(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2Old_Impl::GetFEFlags(this) { Ok(ok__) => { @@ -1316,52 +983,31 @@ impl ITextDocument2Old_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateWindow(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn UpdateWindow(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::UpdateWindow(this).into() } - unsafe extern "system" fn CheckTextLimit(this: *mut core::ffi::c_void, cch: i32, pcch: *const i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn CheckTextLimit(this: *mut core::ffi::c_void, cch: i32, pcch: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::CheckTextLimit(this, core::mem::transmute_copy(&cch), core::mem::transmute_copy(&pcch)).into() } - unsafe extern "system" fn IMEInProgress(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn IMEInProgress(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::IMEInProgress(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SysBeep(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn SysBeep(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::SysBeep(this).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, mode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::Update(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, notify: i32) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, notify: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::Notify(this, core::mem::transmute_copy(¬ify)).into() } - unsafe extern "system" fn GetDocumentFont(this: *mut core::ffi::c_void, ppitextfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetDocumentFont(this: *mut core::ffi::c_void, ppitextfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2Old_Impl::GetDocumentFont(this) { Ok(ok__) => { @@ -1371,10 +1017,7 @@ impl ITextDocument2Old_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentPara(this: *mut core::ffi::c_void, ppitextpara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetDocumentPara(this: *mut core::ffi::c_void, ppitextpara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2Old_Impl::GetDocumentPara(this) { Ok(ok__) => { @@ -1384,10 +1027,7 @@ impl ITextDocument2Old_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCallManager(this: *mut core::ffi::c_void, ppvoid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn GetCallManager(this: *mut core::ffi::c_void, ppvoid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextDocument2Old_Impl::GetCallManager(this) { Ok(ok__) => { @@ -1397,10 +1037,7 @@ impl ITextDocument2Old_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseCallManager(this: *mut core::ffi::c_void, pvoid: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextDocument2Old_Impl, - { + unsafe extern "system" fn ReleaseCallManager(this: *mut core::ffi::c_void, pvoid: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextDocument2Old_Impl::ReleaseCallManager(this, windows_core::from_raw_borrowed(&pvoid)).into() } @@ -1498,14 +1135,8 @@ pub trait ITextFont_Impl: Sized + super::super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ITextFont {} #[cfg(feature = "Win32_System_Com")] impl ITextFont_Vtbl { - pub const fn new() -> ITextFont_Vtbl - where - Identity: ITextFont_Impl, - { - unsafe extern "system" fn GetDuplicate(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + pub const fn new() -> ITextFont_Vtbl { + unsafe extern "system" fn GetDuplicate(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetDuplicate(this) { Ok(ok__) => { @@ -1515,17 +1146,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDuplicate(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetDuplicate(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetDuplicate(this, windows_core::from_raw_borrowed(&pfont)).into() } - unsafe extern "system" fn CanChange(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn CanChange(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::CanChange(this) { Ok(ok__) => { @@ -1535,10 +1160,7 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::IsEqual(this, windows_core::from_raw_borrowed(&pfont)) { Ok(ok__) => { @@ -1548,17 +1170,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, value: tomConstants) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, value: tomConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::Reset(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetStyle(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetStyle(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetStyle(this) { Ok(ok__) => { @@ -1568,17 +1184,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStyle(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetStyle(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetStyle(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetAllCaps(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetAllCaps(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetAllCaps(this) { Ok(ok__) => { @@ -1588,17 +1198,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAllCaps(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetAllCaps(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetAllCaps(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetAnimation(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetAnimation(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetAnimation(this) { Ok(ok__) => { @@ -1608,17 +1212,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAnimation(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetAnimation(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetAnimation(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetBackColor(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetBackColor(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetBackColor(this) { Ok(ok__) => { @@ -1628,17 +1226,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetBackColor(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetBold(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetBold(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetBold(this) { Ok(ok__) => { @@ -1648,17 +1240,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBold(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetBold(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetBold(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetEmboss(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetEmboss(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetEmboss(this) { Ok(ok__) => { @@ -1668,17 +1254,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEmboss(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetEmboss(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetEmboss(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetForeColor(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetForeColor(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetForeColor(this) { Ok(ok__) => { @@ -1688,17 +1268,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetForeColor(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetForeColor(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetForeColor(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetHidden(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetHidden(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetHidden(this) { Ok(ok__) => { @@ -1708,17 +1282,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHidden(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetHidden(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetHidden(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetEngrave(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetEngrave(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetEngrave(this) { Ok(ok__) => { @@ -1728,17 +1296,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEngrave(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetEngrave(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetEngrave(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetItalic(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetItalic(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetItalic(this) { Ok(ok__) => { @@ -1748,17 +1310,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetItalic(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetItalic(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetItalic(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetKerning(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetKerning(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetKerning(this) { Ok(ok__) => { @@ -1768,17 +1324,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKerning(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetKerning(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetKerning(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetLanguageID(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetLanguageID(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetLanguageID(this) { Ok(ok__) => { @@ -1788,17 +1338,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLanguageID(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetLanguageID(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetLanguageID(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetName(this) { Ok(ok__) => { @@ -1808,17 +1352,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetName(this, core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn GetOutline(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetOutline(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetOutline(this) { Ok(ok__) => { @@ -1828,17 +1366,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOutline(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetOutline(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetOutline(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetPosition(this) { Ok(ok__) => { @@ -1848,17 +1380,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetPosition(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetProtected(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetProtected(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetProtected(this) { Ok(ok__) => { @@ -1868,17 +1394,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProtected(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetProtected(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetProtected(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetShadow(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetShadow(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetShadow(this) { Ok(ok__) => { @@ -1888,17 +1408,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShadow(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetShadow(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetShadow(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetSize(this) { Ok(ok__) => { @@ -1908,17 +1422,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetSize(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSmallCaps(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetSmallCaps(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetSmallCaps(this) { Ok(ok__) => { @@ -1928,17 +1436,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSmallCaps(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetSmallCaps(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetSmallCaps(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSpacing(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetSpacing(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetSpacing(this) { Ok(ok__) => { @@ -1948,17 +1450,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpacing(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetSpacing(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetSpacing(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetStrikeThrough(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetStrikeThrough(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetStrikeThrough(this) { Ok(ok__) => { @@ -1968,17 +1464,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStrikeThrough(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetStrikeThrough(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetStrikeThrough(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSubscript(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetSubscript(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetSubscript(this) { Ok(ok__) => { @@ -1988,17 +1478,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSubscript(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetSubscript(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetSubscript(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSuperscript(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetSuperscript(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetSuperscript(this) { Ok(ok__) => { @@ -2008,17 +1492,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSuperscript(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetSuperscript(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetSuperscript(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetUnderline(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetUnderline(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetUnderline(this) { Ok(ok__) => { @@ -2028,17 +1506,11 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetUnderline(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetWeight(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn GetWeight(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont_Impl::GetWeight(this) { Ok(ok__) => { @@ -2048,10 +1520,7 @@ impl ITextFont_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWeight(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont_Impl, - { + unsafe extern "system" fn SetWeight(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont_Impl::SetWeight(this, core::mem::transmute_copy(&value)).into() } @@ -2171,14 +1640,8 @@ pub trait ITextFont2_Impl: Sized + ITextFont_Impl { impl windows_core::RuntimeName for ITextFont2 {} #[cfg(feature = "Win32_System_Com")] impl ITextFont2_Vtbl { - pub const fn new() -> ITextFont2_Vtbl - where - Identity: ITextFont2_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + pub const fn new() -> ITextFont2_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetCount(this) { Ok(ok__) => { @@ -2188,10 +1651,7 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAutoLigatures(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetAutoLigatures(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetAutoLigatures(this) { Ok(ok__) => { @@ -2201,17 +1661,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoLigatures(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetAutoLigatures(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetAutoLigatures(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetAutospaceAlpha(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetAutospaceAlpha(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetAutospaceAlpha(this) { Ok(ok__) => { @@ -2221,17 +1675,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutospaceAlpha(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetAutospaceAlpha(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetAutospaceAlpha(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetAutospaceNumeric(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetAutospaceNumeric(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetAutospaceNumeric(this) { Ok(ok__) => { @@ -2241,17 +1689,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutospaceNumeric(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetAutospaceNumeric(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetAutospaceNumeric(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetAutospaceParens(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetAutospaceParens(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetAutospaceParens(this) { Ok(ok__) => { @@ -2261,17 +1703,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutospaceParens(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetAutospaceParens(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetAutospaceParens(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCharRep(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetCharRep(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetCharRep(this) { Ok(ok__) => { @@ -2281,17 +1717,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCharRep(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetCharRep(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetCharRep(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCompressionMode(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetCompressionMode(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetCompressionMode(this) { Ok(ok__) => { @@ -2301,17 +1731,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCompressionMode(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetCompressionMode(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetCompressionMode(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCookie(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetCookie(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetCookie(this) { Ok(ok__) => { @@ -2321,17 +1745,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCookie(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetCookie(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetCookie(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetDoubleStrike(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetDoubleStrike(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetDoubleStrike(this) { Ok(ok__) => { @@ -2341,17 +1759,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDoubleStrike(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetDoubleStrike(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetDoubleStrike(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetDuplicate2(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetDuplicate2(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetDuplicate2(this) { Ok(ok__) => { @@ -2361,17 +1773,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDuplicate2(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetDuplicate2(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetDuplicate2(this, windows_core::from_raw_borrowed(&pfont)).into() } - unsafe extern "system" fn GetLinkType(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetLinkType(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetLinkType(this) { Ok(ok__) => { @@ -2381,10 +1787,7 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMathZone(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetMathZone(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetMathZone(this) { Ok(ok__) => { @@ -2394,17 +1797,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMathZone(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetMathZone(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetMathZone(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetModWidthPairs(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetModWidthPairs(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetModWidthPairs(this) { Ok(ok__) => { @@ -2414,17 +1811,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetModWidthPairs(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetModWidthPairs(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetModWidthPairs(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetModWidthSpace(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetModWidthSpace(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetModWidthSpace(this) { Ok(ok__) => { @@ -2434,17 +1825,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetModWidthSpace(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetModWidthSpace(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetModWidthSpace(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetOldNumbers(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetOldNumbers(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetOldNumbers(this) { Ok(ok__) => { @@ -2454,17 +1839,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOldNumbers(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetOldNumbers(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetOldNumbers(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetOverlapping(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetOverlapping(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetOverlapping(this) { Ok(ok__) => { @@ -2474,17 +1853,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOverlapping(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetOverlapping(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetOverlapping(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetPositionSubSuper(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetPositionSubSuper(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetPositionSubSuper(this) { Ok(ok__) => { @@ -2494,17 +1867,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPositionSubSuper(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetPositionSubSuper(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetPositionSubSuper(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetScaling(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetScaling(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetScaling(this) { Ok(ok__) => { @@ -2514,17 +1881,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScaling(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetScaling(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetScaling(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSpaceExtension(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetSpaceExtension(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetSpaceExtension(this) { Ok(ok__) => { @@ -2534,17 +1895,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpaceExtension(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetSpaceExtension(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetSpaceExtension(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetUnderlinePositionMode(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetUnderlinePositionMode(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetUnderlinePositionMode(this) { Ok(ok__) => { @@ -2554,31 +1909,19 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUnderlinePositionMode(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetUnderlinePositionMode(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetUnderlinePositionMode(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetEffects(this: *mut core::ffi::c_void, pvalue: *mut i32, pmask: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetEffects(this: *mut core::ffi::c_void, pvalue: *mut i32, pmask: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::GetEffects(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pmask)).into() } - unsafe extern "system" fn GetEffects2(this: *mut core::ffi::c_void, pvalue: *mut i32, pmask: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetEffects2(this: *mut core::ffi::c_void, pvalue: *mut i32, pmask: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::GetEffects2(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pmask)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::GetProperty(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -2588,17 +1931,11 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, index: i32, ptype: *mut i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn GetPropertyInfo(this: *mut core::ffi::c_void, index: i32, ptype: *mut i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::GetPropertyInfo(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn IsEqual2(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void, pb: *mut i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn IsEqual2(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void, pb: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextFont2_Impl::IsEqual2(this, windows_core::from_raw_borrowed(&pfont)) { Ok(ok__) => { @@ -2608,24 +1945,15 @@ impl ITextFont2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEffects(this: *mut core::ffi::c_void, value: i32, mask: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetEffects(this: *mut core::ffi::c_void, value: i32, mask: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetEffects(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn SetEffects2(this: *mut core::ffi::c_void, value: i32, mask: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetEffects2(this: *mut core::ffi::c_void, value: i32, mask: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetEffects2(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT - where - Identity: ITextFont2_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextFont2_Impl::SetProperty(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value)).into() } @@ -2684,7 +2012,7 @@ impl ITextFont2_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Input_Ime", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait ITextHost_Impl: Sized { +pub trait ITextHost_Impl: Sized + windows_core::IUnknownImpl { fn TxGetDC(&self) -> super::super::super::Graphics::Gdi::HDC; fn TxReleaseDC(&self, hdc: super::super::super::Graphics::Gdi::HDC) -> i32; fn TxShowScrollBar(&self, fnbar: i32, fshow: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL; @@ -2729,217 +2057,124 @@ pub trait ITextHost_Impl: Sized { impl windows_core::RuntimeName for ITextHost {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Input_Ime", feature = "Win32_UI_WindowsAndMessaging"))] impl ITextHost_Vtbl { - pub const fn new() -> ITextHost_Vtbl - where - Identity: ITextHost_Impl, - { - unsafe extern "system" fn TxGetDC(this: *mut core::ffi::c_void) -> super::super::super::Graphics::Gdi::HDC - where - Identity: ITextHost_Impl, - { + pub const fn new() -> ITextHost_Vtbl { + unsafe extern "system" fn TxGetDC(this: *mut core::ffi::c_void) -> super::super::super::Graphics::Gdi::HDC { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetDC(this) } - unsafe extern "system" fn TxReleaseDC(this: *mut core::ffi::c_void, hdc: super::super::super::Graphics::Gdi::HDC) -> i32 - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxReleaseDC(this: *mut core::ffi::c_void, hdc: super::super::super::Graphics::Gdi::HDC) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxReleaseDC(this, core::mem::transmute_copy(&hdc)) } - unsafe extern "system" fn TxShowScrollBar(this: *mut core::ffi::c_void, fnbar: i32, fshow: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxShowScrollBar(this: *mut core::ffi::c_void, fnbar: i32, fshow: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxShowScrollBar(this, core::mem::transmute_copy(&fnbar), core::mem::transmute_copy(&fshow)) } - unsafe extern "system" fn TxEnableScrollBar(this: *mut core::ffi::c_void, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxEnableScrollBar(this: *mut core::ffi::c_void, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxEnableScrollBar(this, core::mem::transmute_copy(&fusbflags), core::mem::transmute_copy(&fuarrowflags)) } - unsafe extern "system" fn TxSetScrollRange(this: *mut core::ffi::c_void, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxSetScrollRange(this: *mut core::ffi::c_void, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetScrollRange(this, core::mem::transmute_copy(&fnbar), core::mem::transmute_copy(&nminpos), core::mem::transmute_copy(&nmaxpos), core::mem::transmute_copy(&fredraw)) } - unsafe extern "system" fn TxSetScrollPos(this: *mut core::ffi::c_void, fnbar: i32, npos: i32, fredraw: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxSetScrollPos(this: *mut core::ffi::c_void, fnbar: i32, npos: i32, fredraw: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetScrollPos(this, core::mem::transmute_copy(&fnbar), core::mem::transmute_copy(&npos), core::mem::transmute_copy(&fredraw)) } - unsafe extern "system" fn TxInvalidateRect(this: *mut core::ffi::c_void, prc: *mut super::super::super::Foundation::RECT, fmode: super::super::super::Foundation::BOOL) - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxInvalidateRect(this: *mut core::ffi::c_void, prc: *mut super::super::super::Foundation::RECT, fmode: super::super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxInvalidateRect(this, core::mem::transmute_copy(&prc), core::mem::transmute_copy(&fmode)) } - unsafe extern "system" fn TxViewChange(this: *mut core::ffi::c_void, fupdate: super::super::super::Foundation::BOOL) - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxViewChange(this: *mut core::ffi::c_void, fupdate: super::super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxViewChange(this, core::mem::transmute_copy(&fupdate)) } - unsafe extern "system" fn TxCreateCaret(this: *mut core::ffi::c_void, hbmp: super::super::super::Graphics::Gdi::HBITMAP, xwidth: i32, yheight: i32) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxCreateCaret(this: *mut core::ffi::c_void, hbmp: super::super::super::Graphics::Gdi::HBITMAP, xwidth: i32, yheight: i32) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxCreateCaret(this, core::mem::transmute_copy(&hbmp), core::mem::transmute_copy(&xwidth), core::mem::transmute_copy(&yheight)) } - unsafe extern "system" fn TxShowCaret(this: *mut core::ffi::c_void, fshow: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxShowCaret(this: *mut core::ffi::c_void, fshow: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxShowCaret(this, core::mem::transmute_copy(&fshow)) } - unsafe extern "system" fn TxSetCaretPos(this: *mut core::ffi::c_void, x: i32, y: i32) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxSetCaretPos(this: *mut core::ffi::c_void, x: i32, y: i32) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetCaretPos(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)) } - unsafe extern "system" fn TxSetTimer(this: *mut core::ffi::c_void, idtimer: u32, utimeout: u32) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxSetTimer(this: *mut core::ffi::c_void, idtimer: u32, utimeout: u32) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetTimer(this, core::mem::transmute_copy(&idtimer), core::mem::transmute_copy(&utimeout)) } - unsafe extern "system" fn TxKillTimer(this: *mut core::ffi::c_void, idtimer: u32) - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxKillTimer(this: *mut core::ffi::c_void, idtimer: u32) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxKillTimer(this, core::mem::transmute_copy(&idtimer)) } - unsafe extern "system" fn TxScrollWindowEx(this: *mut core::ffi::c_void, dx: i32, dy: i32, lprcscroll: *mut super::super::super::Foundation::RECT, lprcclip: *mut super::super::super::Foundation::RECT, hrgnupdate: super::super::super::Graphics::Gdi::HRGN, lprcupdate: *mut super::super::super::Foundation::RECT, fuscroll: super::super::WindowsAndMessaging::SCROLL_WINDOW_FLAGS) - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxScrollWindowEx(this: *mut core::ffi::c_void, dx: i32, dy: i32, lprcscroll: *mut super::super::super::Foundation::RECT, lprcclip: *mut super::super::super::Foundation::RECT, hrgnupdate: super::super::super::Graphics::Gdi::HRGN, lprcupdate: *mut super::super::super::Foundation::RECT, fuscroll: super::super::WindowsAndMessaging::SCROLL_WINDOW_FLAGS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxScrollWindowEx(this, core::mem::transmute_copy(&dx), core::mem::transmute_copy(&dy), core::mem::transmute_copy(&lprcscroll), core::mem::transmute_copy(&lprcclip), core::mem::transmute_copy(&hrgnupdate), core::mem::transmute_copy(&lprcupdate), core::mem::transmute_copy(&fuscroll)) } - unsafe extern "system" fn TxSetCapture(this: *mut core::ffi::c_void, fcapture: super::super::super::Foundation::BOOL) - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxSetCapture(this: *mut core::ffi::c_void, fcapture: super::super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetCapture(this, core::mem::transmute_copy(&fcapture)) } - unsafe extern "system" fn TxSetFocus(this: *mut core::ffi::c_void) - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxSetFocus(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetFocus(this) } - unsafe extern "system" fn TxSetCursor(this: *mut core::ffi::c_void, hcur: super::super::WindowsAndMessaging::HCURSOR, ftext: super::super::super::Foundation::BOOL) - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxSetCursor(this: *mut core::ffi::c_void, hcur: super::super::WindowsAndMessaging::HCURSOR, ftext: super::super::super::Foundation::BOOL) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetCursor(this, core::mem::transmute_copy(&hcur), core::mem::transmute_copy(&ftext)) } - unsafe extern "system" fn TxScreenToClient(this: *mut core::ffi::c_void, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxScreenToClient(this: *mut core::ffi::c_void, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxScreenToClient(this, core::mem::transmute_copy(&lppt)) } - unsafe extern "system" fn TxClientToScreen(this: *mut core::ffi::c_void, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxClientToScreen(this: *mut core::ffi::c_void, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxClientToScreen(this, core::mem::transmute_copy(&lppt)) } - unsafe extern "system" fn TxActivate(this: *mut core::ffi::c_void, ploldstate: *mut i32) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxActivate(this: *mut core::ffi::c_void, ploldstate: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxActivate(this, core::mem::transmute_copy(&ploldstate)).into() } - unsafe extern "system" fn TxDeactivate(this: *mut core::ffi::c_void, lnewstate: i32) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxDeactivate(this: *mut core::ffi::c_void, lnewstate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxDeactivate(this, core::mem::transmute_copy(&lnewstate)).into() } - unsafe extern "system" fn TxGetClientRect(this: *mut core::ffi::c_void, prc: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetClientRect(this: *mut core::ffi::c_void, prc: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetClientRect(this, core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn TxGetViewInset(this: *mut core::ffi::c_void, prc: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetViewInset(this: *mut core::ffi::c_void, prc: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetViewInset(this, core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn TxGetCharFormat(this: *mut core::ffi::c_void, ppcf: *const *const CHARFORMATW) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetCharFormat(this: *mut core::ffi::c_void, ppcf: *const *const CHARFORMATW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetCharFormat(this, core::mem::transmute_copy(&ppcf)).into() } - unsafe extern "system" fn TxGetParaFormat(this: *mut core::ffi::c_void, pppf: *const *const PARAFORMAT) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetParaFormat(this: *mut core::ffi::c_void, pppf: *const *const PARAFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetParaFormat(this, core::mem::transmute_copy(&pppf)).into() } - unsafe extern "system" fn TxGetSysColor(this: *mut core::ffi::c_void, nindex: super::super::super::Graphics::Gdi::SYS_COLOR_INDEX) -> super::super::super::Foundation::COLORREF - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetSysColor(this: *mut core::ffi::c_void, nindex: super::super::super::Graphics::Gdi::SYS_COLOR_INDEX) -> super::super::super::Foundation::COLORREF { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetSysColor(this, core::mem::transmute_copy(&nindex)) } - unsafe extern "system" fn TxGetBackStyle(this: *mut core::ffi::c_void, pstyle: *mut TXTBACKSTYLE) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetBackStyle(this: *mut core::ffi::c_void, pstyle: *mut TXTBACKSTYLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetBackStyle(this, core::mem::transmute_copy(&pstyle)).into() } - unsafe extern "system" fn TxGetMaxLength(this: *mut core::ffi::c_void, plength: *mut u32) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetMaxLength(this: *mut core::ffi::c_void, plength: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetMaxLength(this, core::mem::transmute_copy(&plength)).into() } - unsafe extern "system" fn TxGetScrollBars(this: *mut core::ffi::c_void, pdwscrollbar: *mut u32) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetScrollBars(this: *mut core::ffi::c_void, pdwscrollbar: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetScrollBars(this, core::mem::transmute_copy(&pdwscrollbar)).into() } - unsafe extern "system" fn TxGetPasswordChar(this: *mut core::ffi::c_void, pch: *mut i8) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetPasswordChar(this: *mut core::ffi::c_void, pch: *mut i8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextHost_Impl::TxGetPasswordChar(this) { Ok(ok__) => { @@ -2949,66 +2184,39 @@ impl ITextHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TxGetAcceleratorPos(this: *mut core::ffi::c_void, pcp: *mut i32) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetAcceleratorPos(this: *mut core::ffi::c_void, pcp: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetAcceleratorPos(this, core::mem::transmute_copy(&pcp)).into() } - unsafe extern "system" fn TxGetExtent(this: *mut core::ffi::c_void, lpextent: *mut super::super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetExtent(this: *mut core::ffi::c_void, lpextent: *mut super::super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetExtent(this, core::mem::transmute_copy(&lpextent)).into() } - unsafe extern "system" fn OnTxCharFormatChange(this: *mut core::ffi::c_void, pcf: *const CHARFORMATW) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn OnTxCharFormatChange(this: *mut core::ffi::c_void, pcf: *const CHARFORMATW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::OnTxCharFormatChange(this, core::mem::transmute_copy(&pcf)).into() } - unsafe extern "system" fn OnTxParaFormatChange(this: *mut core::ffi::c_void, ppf: *const PARAFORMAT) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn OnTxParaFormatChange(this: *mut core::ffi::c_void, ppf: *const PARAFORMAT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::OnTxParaFormatChange(this, core::mem::transmute_copy(&ppf)).into() } - unsafe extern "system" fn TxGetPropertyBits(this: *mut core::ffi::c_void, dwmask: u32, pdwbits: *mut u32) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetPropertyBits(this: *mut core::ffi::c_void, dwmask: u32, pdwbits: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetPropertyBits(this, core::mem::transmute_copy(&dwmask), core::mem::transmute_copy(&pdwbits)).into() } - unsafe extern "system" fn TxNotify(this: *mut core::ffi::c_void, inotify: u32, pv: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxNotify(this: *mut core::ffi::c_void, inotify: u32, pv: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxNotify(this, core::mem::transmute_copy(&inotify), core::mem::transmute_copy(&pv)).into() } - unsafe extern "system" fn TxImmGetContext(this: *mut core::ffi::c_void) -> super::super::Input::Ime::HIMC - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxImmGetContext(this: *mut core::ffi::c_void) -> super::super::Input::Ime::HIMC { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxImmGetContext(this) } - unsafe extern "system" fn TxImmReleaseContext(this: *mut core::ffi::c_void, himc: super::super::Input::Ime::HIMC) - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxImmReleaseContext(this: *mut core::ffi::c_void, himc: super::super::Input::Ime::HIMC) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxImmReleaseContext(this, core::mem::transmute_copy(&himc)) } - unsafe extern "system" fn TxGetSelectionBarWidth(this: *mut core::ffi::c_void, lselbarwidth: *mut i32) -> windows_core::HRESULT - where - Identity: ITextHost_Impl, - { + unsafe extern "system" fn TxGetSelectionBarWidth(this: *mut core::ffi::c_void, lselbarwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxGetSelectionBarWidth(this, core::mem::transmute_copy(&lselbarwidth)).into() } @@ -3078,91 +2286,52 @@ pub trait ITextHost2_Impl: Sized + ITextHost_Impl { impl windows_core::RuntimeName for ITextHost2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Input_Ime", feature = "Win32_UI_WindowsAndMessaging"))] impl ITextHost2_Vtbl { - pub const fn new() -> ITextHost2_Vtbl - where - Identity: ITextHost2_Impl, - { - unsafe extern "system" fn TxIsDoubleClickPending(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL - where - Identity: ITextHost2_Impl, - { + pub const fn new() -> ITextHost2_Vtbl { + unsafe extern "system" fn TxIsDoubleClickPending(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxIsDoubleClickPending(this) } - unsafe extern "system" fn TxGetWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxGetWindow(this: *mut core::ffi::c_void, phwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxGetWindow(this, core::mem::transmute_copy(&phwnd)).into() } - unsafe extern "system" fn TxSetForegroundWindow(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxSetForegroundWindow(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxSetForegroundWindow(this).into() } - unsafe extern "system" fn TxGetPalette(this: *mut core::ffi::c_void) -> super::super::super::Graphics::Gdi::HPALETTE - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxGetPalette(this: *mut core::ffi::c_void) -> super::super::super::Graphics::Gdi::HPALETTE { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxGetPalette(this) } - unsafe extern "system" fn TxGetEastAsianFlags(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxGetEastAsianFlags(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxGetEastAsianFlags(this, core::mem::transmute_copy(&pflags)).into() } - unsafe extern "system" fn TxSetCursor2(this: *mut core::ffi::c_void, hcur: super::super::WindowsAndMessaging::HCURSOR, btext: super::super::super::Foundation::BOOL) -> super::super::WindowsAndMessaging::HCURSOR - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxSetCursor2(this: *mut core::ffi::c_void, hcur: super::super::WindowsAndMessaging::HCURSOR, btext: super::super::super::Foundation::BOOL) -> super::super::WindowsAndMessaging::HCURSOR { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxSetCursor2(this, core::mem::transmute_copy(&hcur), core::mem::transmute_copy(&btext)) } - unsafe extern "system" fn TxFreeTextServicesNotification(this: *mut core::ffi::c_void) - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxFreeTextServicesNotification(this: *mut core::ffi::c_void) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxFreeTextServicesNotification(this) } - unsafe extern "system" fn TxGetEditStyle(this: *mut core::ffi::c_void, dwitem: u32, pdwdata: *mut u32) -> windows_core::HRESULT - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxGetEditStyle(this: *mut core::ffi::c_void, dwitem: u32, pdwdata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxGetEditStyle(this, core::mem::transmute_copy(&dwitem), core::mem::transmute_copy(&pdwdata)).into() } - unsafe extern "system" fn TxGetWindowStyles(this: *mut core::ffi::c_void, pdwstyle: *mut u32, pdwexstyle: *mut u32) -> windows_core::HRESULT - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxGetWindowStyles(this: *mut core::ffi::c_void, pdwstyle: *mut u32, pdwexstyle: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxGetWindowStyles(this, core::mem::transmute_copy(&pdwstyle), core::mem::transmute_copy(&pdwexstyle)).into() } - unsafe extern "system" fn TxShowDropCaret(this: *mut core::ffi::c_void, fshow: super::super::super::Foundation::BOOL, hdc: super::super::super::Graphics::Gdi::HDC, prc: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxShowDropCaret(this: *mut core::ffi::c_void, fshow: super::super::super::Foundation::BOOL, hdc: super::super::super::Graphics::Gdi::HDC, prc: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxShowDropCaret(this, core::mem::transmute_copy(&fshow), core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn TxDestroyCaret(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxDestroyCaret(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxDestroyCaret(this).into() } - unsafe extern "system" fn TxGetHorzExtent(this: *mut core::ffi::c_void, plhorzextent: *mut i32) -> windows_core::HRESULT - where - Identity: ITextHost2_Impl, - { + unsafe extern "system" fn TxGetHorzExtent(this: *mut core::ffi::c_void, plhorzextent: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxGetHorzExtent(this, core::mem::transmute_copy(&plhorzextent)).into() } @@ -3241,14 +2410,8 @@ pub trait ITextPara_Impl: Sized + super::super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for ITextPara {} #[cfg(feature = "Win32_System_Com")] impl ITextPara_Vtbl { - pub const fn new() -> ITextPara_Vtbl - where - Identity: ITextPara_Impl, - { - unsafe extern "system" fn GetDuplicate(this: *mut core::ffi::c_void, pppara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + pub const fn new() -> ITextPara_Vtbl { + unsafe extern "system" fn GetDuplicate(this: *mut core::ffi::c_void, pppara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetDuplicate(this) { Ok(ok__) => { @@ -3258,17 +2421,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDuplicate(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetDuplicate(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetDuplicate(this, windows_core::from_raw_borrowed(&ppara)).into() } - unsafe extern "system" fn CanChange(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn CanChange(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::CanChange(this) { Ok(ok__) => { @@ -3278,10 +2435,7 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::IsEqual(this, windows_core::from_raw_borrowed(&ppara)) { Ok(ok__) => { @@ -3291,17 +2445,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::Reset(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetStyle(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetStyle(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetStyle(this) { Ok(ok__) => { @@ -3311,17 +2459,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStyle(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetStyle(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetStyle(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetAlignment(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetAlignment(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetAlignment(this) { Ok(ok__) => { @@ -3331,17 +2473,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlignment(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetAlignment(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetAlignment(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetHyphenation(this: *mut core::ffi::c_void, pvalue: *mut tomConstants) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetHyphenation(this: *mut core::ffi::c_void, pvalue: *mut tomConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetHyphenation(this) { Ok(ok__) => { @@ -3351,17 +2487,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHyphenation(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetHyphenation(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetHyphenation(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetFirstLineIndent(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetFirstLineIndent(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetFirstLineIndent(this) { Ok(ok__) => { @@ -3371,10 +2501,7 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeepTogether(this: *mut core::ffi::c_void, pvalue: *mut tomConstants) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetKeepTogether(this: *mut core::ffi::c_void, pvalue: *mut tomConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetKeepTogether(this) { Ok(ok__) => { @@ -3384,17 +2511,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeepTogether(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetKeepTogether(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetKeepTogether(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetKeepWithNext(this: *mut core::ffi::c_void, pvalue: *mut tomConstants) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetKeepWithNext(this: *mut core::ffi::c_void, pvalue: *mut tomConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetKeepWithNext(this) { Ok(ok__) => { @@ -3404,17 +2525,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeepWithNext(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetKeepWithNext(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetKeepWithNext(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetLeftIndent(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetLeftIndent(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetLeftIndent(this) { Ok(ok__) => { @@ -3424,10 +2539,7 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLineSpacing(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetLineSpacing(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetLineSpacing(this) { Ok(ok__) => { @@ -3437,10 +2549,7 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLineSpacingRule(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetLineSpacingRule(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetLineSpacingRule(this) { Ok(ok__) => { @@ -3450,10 +2559,7 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetListAlignment(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetListAlignment(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetListAlignment(this) { Ok(ok__) => { @@ -3463,17 +2569,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListAlignment(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetListAlignment(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetListAlignment(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetListLevelIndex(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetListLevelIndex(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetListLevelIndex(this) { Ok(ok__) => { @@ -3483,17 +2583,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListLevelIndex(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetListLevelIndex(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetListLevelIndex(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetListStart(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetListStart(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetListStart(this) { Ok(ok__) => { @@ -3503,17 +2597,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListStart(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetListStart(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetListStart(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetListTab(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetListTab(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetListTab(this) { Ok(ok__) => { @@ -3523,17 +2611,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListTab(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetListTab(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetListTab(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetListType(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetListType(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetListType(this) { Ok(ok__) => { @@ -3543,17 +2625,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetListType(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetListType(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetListType(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetNoLineNumber(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetNoLineNumber(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetNoLineNumber(this) { Ok(ok__) => { @@ -3563,17 +2639,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNoLineNumber(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetNoLineNumber(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetNoLineNumber(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetPageBreakBefore(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetPageBreakBefore(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetPageBreakBefore(this) { Ok(ok__) => { @@ -3583,17 +2653,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPageBreakBefore(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetPageBreakBefore(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetPageBreakBefore(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetRightIndent(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetRightIndent(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetRightIndent(this) { Ok(ok__) => { @@ -3603,31 +2667,19 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRightIndent(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetRightIndent(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetRightIndent(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetIndents(this: *mut core::ffi::c_void, first: f32, left: f32, right: f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetIndents(this: *mut core::ffi::c_void, first: f32, left: f32, right: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetIndents(this, core::mem::transmute_copy(&first), core::mem::transmute_copy(&left), core::mem::transmute_copy(&right)).into() } - unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, rule: i32, spacing: f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetLineSpacing(this: *mut core::ffi::c_void, rule: i32, spacing: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetLineSpacing(this, core::mem::transmute_copy(&rule), core::mem::transmute_copy(&spacing)).into() } - unsafe extern "system" fn GetSpaceAfter(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetSpaceAfter(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetSpaceAfter(this) { Ok(ok__) => { @@ -3637,17 +2689,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpaceAfter(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetSpaceAfter(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetSpaceAfter(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSpaceBefore(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetSpaceBefore(this: *mut core::ffi::c_void, pvalue: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetSpaceBefore(this) { Ok(ok__) => { @@ -3657,17 +2703,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSpaceBefore(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetSpaceBefore(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetSpaceBefore(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetWidowControl(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetWidowControl(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetWidowControl(this) { Ok(ok__) => { @@ -3677,17 +2717,11 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWidowControl(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn SetWidowControl(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::SetWidowControl(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetTabCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetTabCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara_Impl::GetTabCount(this) { Ok(ok__) => { @@ -3697,31 +2731,19 @@ impl ITextPara_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddTab(this: *mut core::ffi::c_void, tbpos: f32, tbalign: i32, tbleader: i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn AddTab(this: *mut core::ffi::c_void, tbpos: f32, tbalign: i32, tbleader: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::AddTab(this, core::mem::transmute_copy(&tbpos), core::mem::transmute_copy(&tbalign), core::mem::transmute_copy(&tbleader)).into() } - unsafe extern "system" fn ClearAllTabs(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn ClearAllTabs(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::ClearAllTabs(this).into() } - unsafe extern "system" fn DeleteTab(this: *mut core::ffi::c_void, tbpos: f32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn DeleteTab(this: *mut core::ffi::c_void, tbpos: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::DeleteTab(this, core::mem::transmute_copy(&tbpos)).into() } - unsafe extern "system" fn GetTab(this: *mut core::ffi::c_void, itab: i32, ptbpos: *mut f32, ptbalign: *mut i32, ptbleader: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara_Impl, - { + unsafe extern "system" fn GetTab(this: *mut core::ffi::c_void, itab: i32, ptbpos: *mut f32, ptbalign: *mut i32, ptbleader: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara_Impl::GetTab(this, core::mem::transmute_copy(&itab), core::mem::transmute_copy(&ptbpos), core::mem::transmute_copy(&ptbalign), core::mem::transmute_copy(&ptbleader)).into() } @@ -3804,14 +2826,8 @@ pub trait ITextPara2_Impl: Sized + ITextPara_Impl { impl windows_core::RuntimeName for ITextPara2 {} #[cfg(feature = "Win32_System_Com")] impl ITextPara2_Vtbl { - pub const fn new() -> ITextPara2_Vtbl - where - Identity: ITextPara2_Impl, - { - unsafe extern "system" fn GetBorders(this: *mut core::ffi::c_void, ppborders: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + pub const fn new() -> ITextPara2_Vtbl { + unsafe extern "system" fn GetBorders(this: *mut core::ffi::c_void, ppborders: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara2_Impl::GetBorders(this) { Ok(ok__) => { @@ -3821,10 +2837,7 @@ impl ITextPara2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDuplicate2(this: *mut core::ffi::c_void, pppara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn GetDuplicate2(this: *mut core::ffi::c_void, pppara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara2_Impl::GetDuplicate2(this) { Ok(ok__) => { @@ -3834,17 +2847,11 @@ impl ITextPara2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDuplicate2(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn SetDuplicate2(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara2_Impl::SetDuplicate2(this, windows_core::from_raw_borrowed(&ppara)).into() } - unsafe extern "system" fn GetFontAlignment(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn GetFontAlignment(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara2_Impl::GetFontAlignment(this) { Ok(ok__) => { @@ -3854,17 +2861,11 @@ impl ITextPara2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFontAlignment(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn SetFontAlignment(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara2_Impl::SetFontAlignment(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetHangingPunctuation(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn GetHangingPunctuation(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara2_Impl::GetHangingPunctuation(this) { Ok(ok__) => { @@ -3874,17 +2875,11 @@ impl ITextPara2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHangingPunctuation(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn SetHangingPunctuation(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara2_Impl::SetHangingPunctuation(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetSnapToGrid(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn GetSnapToGrid(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara2_Impl::GetSnapToGrid(this) { Ok(ok__) => { @@ -3894,17 +2889,11 @@ impl ITextPara2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSnapToGrid(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn SetSnapToGrid(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara2_Impl::SetSnapToGrid(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetTrimPunctuationAtStart(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn GetTrimPunctuationAtStart(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara2_Impl::GetTrimPunctuationAtStart(this) { Ok(ok__) => { @@ -3914,24 +2903,15 @@ impl ITextPara2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTrimPunctuationAtStart(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn SetTrimPunctuationAtStart(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara2_Impl::SetTrimPunctuationAtStart(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetEffects(this: *mut core::ffi::c_void, pvalue: *mut i32, pmask: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn GetEffects(this: *mut core::ffi::c_void, pvalue: *mut i32, pmask: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara2_Impl::GetEffects(this, core::mem::transmute_copy(&pvalue), core::mem::transmute_copy(&pmask)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara2_Impl::GetProperty(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -3941,10 +2921,7 @@ impl ITextPara2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual2(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void, pb: *mut i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn IsEqual2(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void, pb: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextPara2_Impl::IsEqual2(this, windows_core::from_raw_borrowed(&ppara)) { Ok(ok__) => { @@ -3954,17 +2931,11 @@ impl ITextPara2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEffects(this: *mut core::ffi::c_void, value: i32, mask: i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn SetEffects(this: *mut core::ffi::c_void, value: i32, mask: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara2_Impl::SetEffects(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&mask)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT - where - Identity: ITextPara2_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextPara2_Impl::SetProperty(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value)).into() } @@ -4050,14 +3021,8 @@ pub trait ITextRange_Impl: Sized + super::super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for ITextRange {} #[cfg(feature = "Win32_System_Com")] impl ITextRange_Vtbl { - pub const fn new() -> ITextRange_Vtbl - where - Identity: ITextRange_Impl, - { - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + pub const fn new() -> ITextRange_Vtbl { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetText(this) { Ok(ok__) => { @@ -4067,17 +3032,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetText(this, core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn GetChar(this: *mut core::ffi::c_void, pchar: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetChar(this: *mut core::ffi::c_void, pchar: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetChar(this) { Ok(ok__) => { @@ -4087,17 +3046,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChar(this: *mut core::ffi::c_void, char: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetChar(this: *mut core::ffi::c_void, char: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetChar(this, core::mem::transmute_copy(&char)).into() } - unsafe extern "system" fn GetDuplicate(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetDuplicate(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetDuplicate(this) { Ok(ok__) => { @@ -4107,10 +3060,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormattedText(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetFormattedText(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetFormattedText(this) { Ok(ok__) => { @@ -4120,17 +3070,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormattedText(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetFormattedText(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetFormattedText(this, windows_core::from_raw_borrowed(&prange)).into() } - unsafe extern "system" fn GetStart(this: *mut core::ffi::c_void, pcpfirst: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetStart(this: *mut core::ffi::c_void, pcpfirst: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetStart(this) { Ok(ok__) => { @@ -4140,17 +3084,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStart(this: *mut core::ffi::c_void, cpfirst: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetStart(this: *mut core::ffi::c_void, cpfirst: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetStart(this, core::mem::transmute_copy(&cpfirst)).into() } - unsafe extern "system" fn GetEnd(this: *mut core::ffi::c_void, pcplim: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetEnd(this: *mut core::ffi::c_void, pcplim: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetEnd(this) { Ok(ok__) => { @@ -4160,17 +3098,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnd(this: *mut core::ffi::c_void, cplim: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetEnd(this: *mut core::ffi::c_void, cplim: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetEnd(this, core::mem::transmute_copy(&cplim)).into() } - unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetFont(this) { Ok(ok__) => { @@ -4180,17 +3112,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFont(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetFont(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetFont(this, windows_core::from_raw_borrowed(&pfont)).into() } - unsafe extern "system" fn GetPara(this: *mut core::ffi::c_void, pppara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetPara(this: *mut core::ffi::c_void, pppara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetPara(this) { Ok(ok__) => { @@ -4200,17 +3126,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPara(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetPara(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetPara(this, windows_core::from_raw_borrowed(&ppara)).into() } - unsafe extern "system" fn GetStoryLength(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetStoryLength(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetStoryLength(this) { Ok(ok__) => { @@ -4220,10 +3140,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStoryType(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetStoryType(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetStoryType(this) { Ok(ok__) => { @@ -4233,17 +3150,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Collapse(this: *mut core::ffi::c_void, bstart: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Collapse(this: *mut core::ffi::c_void, bstart: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::Collapse(this, core::mem::transmute_copy(&bstart)).into() } - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, unit: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, unit: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Expand(this, core::mem::transmute_copy(&unit)) { Ok(ok__) => { @@ -4253,10 +3164,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, unit: i32, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, unit: i32, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetIndex(this, core::mem::transmute_copy(&unit)) { Ok(ok__) => { @@ -4266,24 +3174,15 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIndex(this: *mut core::ffi::c_void, unit: i32, index: i32, extend: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetIndex(this: *mut core::ffi::c_void, unit: i32, index: i32, extend: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetIndex(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&index), core::mem::transmute_copy(&extend)).into() } - unsafe extern "system" fn SetRange(this: *mut core::ffi::c_void, cpanchor: i32, cpactive: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetRange(this: *mut core::ffi::c_void, cpanchor: i32, cpactive: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetRange(this, core::mem::transmute_copy(&cpanchor), core::mem::transmute_copy(&cpactive)).into() } - unsafe extern "system" fn InRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn InRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::InRange(this, windows_core::from_raw_borrowed(&prange)) { Ok(ok__) => { @@ -4293,10 +3192,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InStory(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn InStory(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::InStory(this, windows_core::from_raw_borrowed(&prange)) { Ok(ok__) => { @@ -4306,10 +3202,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::IsEqual(this, windows_core::from_raw_borrowed(&prange)) { Ok(ok__) => { @@ -4319,17 +3212,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Select(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::Select(this).into() } - unsafe extern "system" fn StartOf(this: *mut core::ffi::c_void, unit: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn StartOf(this: *mut core::ffi::c_void, unit: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::StartOf(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&extend)) { Ok(ok__) => { @@ -4339,10 +3226,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndOf(this: *mut core::ffi::c_void, unit: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn EndOf(this: *mut core::ffi::c_void, unit: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::EndOf(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&extend)) { Ok(ok__) => { @@ -4352,10 +3236,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, unit: i32, count: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, unit: i32, count: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Move(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4365,10 +3246,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveStart(this: *mut core::ffi::c_void, unit: i32, count: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MoveStart(this: *mut core::ffi::c_void, unit: i32, count: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::MoveStart(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4378,10 +3256,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveEnd(this: *mut core::ffi::c_void, unit: i32, count: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MoveEnd(this: *mut core::ffi::c_void, unit: i32, count: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::MoveEnd(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4391,10 +3266,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveWhile(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MoveWhile(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::MoveWhile(this, core::mem::transmute_copy(&cset), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4404,10 +3276,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveStartWhile(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MoveStartWhile(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::MoveStartWhile(this, core::mem::transmute_copy(&cset), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4417,10 +3286,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveEndWhile(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MoveEndWhile(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::MoveEndWhile(this, core::mem::transmute_copy(&cset), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4430,10 +3296,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveUntil(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MoveUntil(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::MoveUntil(this, core::mem::transmute_copy(&cset), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4443,10 +3306,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveStartUntil(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MoveStartUntil(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::MoveStartUntil(this, core::mem::transmute_copy(&cset), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4456,10 +3316,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveEndUntil(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn MoveEndUntil(this: *mut core::ffi::c_void, cset: *const core::mem::MaybeUninit, count: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::MoveEndUntil(this, core::mem::transmute_copy(&cset), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4469,10 +3326,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit, count: i32, flags: tomConstants, plength: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit, count: i32, flags: tomConstants, plength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::FindText(this, core::mem::transmute(&bstr), core::mem::transmute_copy(&count), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4482,10 +3336,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindTextStart(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit, count: i32, flags: tomConstants, plength: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn FindTextStart(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit, count: i32, flags: tomConstants, plength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::FindTextStart(this, core::mem::transmute(&bstr), core::mem::transmute_copy(&count), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4495,10 +3346,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindTextEnd(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit, count: i32, flags: tomConstants, plength: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn FindTextEnd(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit, count: i32, flags: tomConstants, plength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::FindTextEnd(this, core::mem::transmute(&bstr), core::mem::transmute_copy(&count), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4508,10 +3356,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, unit: i32, count: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, unit: i32, count: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Delete(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -4521,10 +3366,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cut(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Cut(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Cut(this) { Ok(ok__) => { @@ -4534,10 +3376,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::Copy(this) { Ok(ok__) => { @@ -4547,17 +3386,11 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Paste(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, format: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn Paste(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, format: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::Paste(this, core::mem::transmute_copy(&pvar), core::mem::transmute_copy(&format)).into() } - unsafe extern "system" fn CanPaste(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, format: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn CanPaste(this: *mut core::ffi::c_void, pvar: *const core::mem::MaybeUninit, format: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::CanPaste(this, core::mem::transmute_copy(&pvar), core::mem::transmute_copy(&format)) { Ok(ok__) => { @@ -4567,10 +3400,7 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanEdit(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn CanEdit(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::CanEdit(this) { Ok(ok__) => { @@ -4580,38 +3410,23 @@ impl ITextRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChangeCase(this: *mut core::ffi::c_void, r#type: tomConstants) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn ChangeCase(this: *mut core::ffi::c_void, r#type: tomConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::ChangeCase(this, core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn GetPoint(this: *mut core::ffi::c_void, r#type: tomConstants, px: *mut i32, py: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetPoint(this: *mut core::ffi::c_void, r#type: tomConstants, px: *mut i32, py: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::GetPoint(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&px), core::mem::transmute_copy(&py)).into() } - unsafe extern "system" fn SetPoint(this: *mut core::ffi::c_void, x: i32, y: i32, r#type: tomConstants, extend: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn SetPoint(this: *mut core::ffi::c_void, x: i32, y: i32, r#type: tomConstants, extend: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::SetPoint(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&extend)).into() } - unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange_Impl::ScrollIntoView(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetEmbeddedObject(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange_Impl, - { + unsafe extern "system" fn GetEmbeddedObject(this: *mut core::ffi::c_void, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange_Impl::GetEmbeddedObject(this) { Ok(ok__) => { @@ -4727,14 +3542,8 @@ pub trait ITextRange2_Impl: Sized + ITextSelection_Impl { impl windows_core::RuntimeName for ITextRange2 {} #[cfg(feature = "Win32_System_Com")] impl ITextRange2_Vtbl { - pub const fn new() -> ITextRange2_Vtbl - where - Identity: ITextRange2_Impl, - { - unsafe extern "system" fn GetCch(this: *mut core::ffi::c_void, pcch: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + pub const fn new() -> ITextRange2_Vtbl { + unsafe extern "system" fn GetCch(this: *mut core::ffi::c_void, pcch: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetCch(this) { Ok(ok__) => { @@ -4744,10 +3553,7 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCells(this: *mut core::ffi::c_void, ppcells: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetCells(this: *mut core::ffi::c_void, ppcells: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetCells(this) { Ok(ok__) => { @@ -4757,10 +3563,7 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, ppcolumn: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetColumn(this: *mut core::ffi::c_void, ppcolumn: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetColumn(this) { Ok(ok__) => { @@ -4770,10 +3573,7 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetCount(this) { Ok(ok__) => { @@ -4783,10 +3583,7 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDuplicate2(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetDuplicate2(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetDuplicate2(this) { Ok(ok__) => { @@ -4796,10 +3593,7 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFont2(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetFont2(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetFont2(this) { Ok(ok__) => { @@ -4809,17 +3603,11 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFont2(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn SetFont2(this: *mut core::ffi::c_void, pfont: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::SetFont2(this, windows_core::from_raw_borrowed(&pfont)).into() } - unsafe extern "system" fn GetFormattedText2(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetFormattedText2(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetFormattedText2(this) { Ok(ok__) => { @@ -4829,17 +3617,11 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormattedText2(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn SetFormattedText2(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::SetFormattedText2(this, windows_core::from_raw_borrowed(&prange)).into() } - unsafe extern "system" fn GetGravity(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetGravity(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetGravity(this) { Ok(ok__) => { @@ -4849,17 +3631,11 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGravity(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn SetGravity(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::SetGravity(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetPara2(this: *mut core::ffi::c_void, pppara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetPara2(this: *mut core::ffi::c_void, pppara: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetPara2(this) { Ok(ok__) => { @@ -4869,17 +3645,11 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPara2(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn SetPara2(this: *mut core::ffi::c_void, ppara: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::SetPara2(this, windows_core::from_raw_borrowed(&ppara)).into() } - unsafe extern "system" fn GetRow(this: *mut core::ffi::c_void, pprow: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetRow(this: *mut core::ffi::c_void, pprow: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetRow(this) { Ok(ok__) => { @@ -4889,10 +3659,7 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStartPara(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetStartPara(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetStartPara(this) { Ok(ok__) => { @@ -4902,10 +3669,7 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTable(this: *mut core::ffi::c_void, pptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetTable(this: *mut core::ffi::c_void, pptable: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetTable(this) { Ok(ok__) => { @@ -4915,10 +3679,7 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetURL(this) { Ok(ok__) => { @@ -4928,38 +3689,23 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::SetURL(this, core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn AddSubrange(this: *mut core::ffi::c_void, cp1: i32, cp2: i32, activate: i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn AddSubrange(this: *mut core::ffi::c_void, cp1: i32, cp2: i32, activate: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::AddSubrange(this, core::mem::transmute_copy(&cp1), core::mem::transmute_copy(&cp2), core::mem::transmute_copy(&activate)).into() } - unsafe extern "system" fn BuildUpMath(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn BuildUpMath(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::BuildUpMath(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn DeleteSubrange(this: *mut core::ffi::c_void, cpfirst: i32, cplim: i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn DeleteSubrange(this: *mut core::ffi::c_void, cpfirst: i32, cplim: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::DeleteSubrange(this, core::mem::transmute_copy(&cpfirst), core::mem::transmute_copy(&cplim)).into() } - unsafe extern "system" fn Find(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, count: i32, flags: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn Find(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, count: i32, flags: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::Find(this, windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&count), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -4969,31 +3715,19 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChar2(this: *mut core::ffi::c_void, pchar: *mut i32, offset: i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetChar2(this: *mut core::ffi::c_void, pchar: *mut i32, offset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::GetChar2(this, core::mem::transmute_copy(&pchar), core::mem::transmute_copy(&offset)).into() } - unsafe extern "system" fn GetDropCap(this: *mut core::ffi::c_void, pcline: *mut i32, pposition: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetDropCap(this: *mut core::ffi::c_void, pcline: *mut i32, pposition: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::GetDropCap(this, core::mem::transmute_copy(&pcline), core::mem::transmute_copy(&pposition)).into() } - unsafe extern "system" fn GetInlineObject(this: *mut core::ffi::c_void, ptype: *mut i32, palign: *mut i32, pchar: *mut i32, pchar1: *mut i32, pchar2: *mut i32, pcount: *mut i32, ptexstyle: *mut i32, pccol: *mut i32, plevel: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetInlineObject(this: *mut core::ffi::c_void, ptype: *mut i32, palign: *mut i32, pchar: *mut i32, pchar1: *mut i32, pchar2: *mut i32, pcount: *mut i32, ptexstyle: *mut i32, pccol: *mut i32, plevel: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::GetInlineObject(this, core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&palign), core::mem::transmute_copy(&pchar), core::mem::transmute_copy(&pchar1), core::mem::transmute_copy(&pchar2), core::mem::transmute_copy(&pcount), core::mem::transmute_copy(&ptexstyle), core::mem::transmute_copy(&pccol), core::mem::transmute_copy(&plevel)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetProperty(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -5003,24 +3737,15 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRect(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 - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetRect(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::GetRect(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pleft), core::mem::transmute_copy(&ptop), core::mem::transmute_copy(&pright), core::mem::transmute_copy(&pbottom), core::mem::transmute_copy(&phit)).into() } - unsafe extern "system" fn GetSubrange(this: *mut core::ffi::c_void, isubrange: i32, pcpfirst: *mut i32, pcplim: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetSubrange(this: *mut core::ffi::c_void, isubrange: i32, pcpfirst: *mut i32, pcplim: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::GetSubrange(this, core::mem::transmute_copy(&isubrange), core::mem::transmute_copy(&pcpfirst), core::mem::transmute_copy(&pcplim)).into() } - unsafe extern "system" fn GetText2(this: *mut core::ffi::c_void, flags: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetText2(this: *mut core::ffi::c_void, flags: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetText2(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -5030,73 +3755,43 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HexToUnicode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn HexToUnicode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::HexToUnicode(this).into() } - unsafe extern "system" fn InsertTable(this: *mut core::ffi::c_void, ccol: i32, crow: i32, autofit: i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn InsertTable(this: *mut core::ffi::c_void, ccol: i32, crow: i32, autofit: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::InsertTable(this, core::mem::transmute_copy(&ccol), core::mem::transmute_copy(&crow), core::mem::transmute_copy(&autofit)).into() } - unsafe extern "system" fn Linearize(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn Linearize(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::Linearize(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetActiveSubrange(this: *mut core::ffi::c_void, cpanchor: i32, cpactive: i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn SetActiveSubrange(this: *mut core::ffi::c_void, cpanchor: i32, cpactive: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::SetActiveSubrange(this, core::mem::transmute_copy(&cpanchor), core::mem::transmute_copy(&cpactive)).into() } - unsafe extern "system" fn SetDropCap(this: *mut core::ffi::c_void, cline: i32, position: i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn SetDropCap(this: *mut core::ffi::c_void, cline: i32, position: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::SetDropCap(this, core::mem::transmute_copy(&cline), core::mem::transmute_copy(&position)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::SetProperty(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetText2(this: *mut core::ffi::c_void, flags: i32, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn SetText2(this: *mut core::ffi::c_void, flags: i32, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::SetText2(this, core::mem::transmute_copy(&flags), core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn UnicodeToHex(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn UnicodeToHex(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::UnicodeToHex(this).into() } - unsafe extern "system" fn SetInlineObject(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 - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn SetInlineObject(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::SetInlineObject(this, 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(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn GetMathFunctionType(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRange2_Impl::GetMathFunctionType(this, core::mem::transmute(&bstr)) { Ok(ok__) => { @@ -5106,10 +3801,7 @@ impl ITextRange2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertImage(this: *mut core::ffi::c_void, width: i32, height: i32, ascent: i32, r#type: i32, bstralttext: core::mem::MaybeUninit, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextRange2_Impl, - { + unsafe extern "system" fn InsertImage(this: *mut core::ffi::c_void, width: i32, height: i32, ascent: i32, r#type: i32, bstralttext: core::mem::MaybeUninit, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRange2_Impl::InsertImage(this, 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), windows_core::from_raw_borrowed(&pstream)).into() } @@ -5214,14 +3906,8 @@ pub trait ITextRow_Impl: Sized + super::super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for ITextRow {} #[cfg(feature = "Win32_System_Com")] impl ITextRow_Vtbl { - pub const fn new() -> ITextRow_Vtbl - where - Identity: ITextRow_Impl, - { - unsafe extern "system" fn GetAlignment(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + pub const fn new() -> ITextRow_Vtbl { + unsafe extern "system" fn GetAlignment(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetAlignment(this) { Ok(ok__) => { @@ -5231,17 +3917,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAlignment(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetAlignment(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetAlignment(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellCount(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellCount(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellCount(this) { Ok(ok__) => { @@ -5251,17 +3931,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellCount(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellCount(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellCount(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellCountCache(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellCountCache(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellCountCache(this) { Ok(ok__) => { @@ -5271,17 +3945,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellCountCache(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellCountCache(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellCountCache(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellIndex(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellIndex(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellIndex(this) { Ok(ok__) => { @@ -5291,17 +3959,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellIndex(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellIndex(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellIndex(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellMargin(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellMargin(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellMargin(this) { Ok(ok__) => { @@ -5311,17 +3973,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellMargin(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellMargin(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellMargin(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetHeight(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetHeight(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetHeight(this) { Ok(ok__) => { @@ -5331,17 +3987,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHeight(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetHeight(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetHeight(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetIndent(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetIndent(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetIndent(this) { Ok(ok__) => { @@ -5351,17 +4001,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIndent(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetIndent(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetIndent(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetKeepTogether(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetKeepTogether(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetKeepTogether(this) { Ok(ok__) => { @@ -5371,17 +4015,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeepTogether(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetKeepTogether(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetKeepTogether(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetKeepWithNext(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetKeepWithNext(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetKeepWithNext(this) { Ok(ok__) => { @@ -5391,17 +4029,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetKeepWithNext(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetKeepWithNext(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetKeepWithNext(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetNestLevel(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetNestLevel(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetNestLevel(this) { Ok(ok__) => { @@ -5411,10 +4043,7 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRTL(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetRTL(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetRTL(this) { Ok(ok__) => { @@ -5424,17 +4053,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRTL(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetRTL(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetRTL(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellAlignment(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellAlignment(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellAlignment(this) { Ok(ok__) => { @@ -5444,17 +4067,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellAlignment(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellAlignment(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellAlignment(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellColorBack(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellColorBack(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellColorBack(this) { Ok(ok__) => { @@ -5464,17 +4081,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellColorBack(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellColorBack(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellColorBack(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellColorFore(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellColorFore(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellColorFore(this) { Ok(ok__) => { @@ -5484,17 +4095,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellColorFore(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellColorFore(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellColorFore(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellMergeFlags(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellMergeFlags(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellMergeFlags(this) { Ok(ok__) => { @@ -5504,17 +4109,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellMergeFlags(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellMergeFlags(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellMergeFlags(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellShading(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellShading(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellShading(this) { Ok(ok__) => { @@ -5524,17 +4123,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellShading(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellShading(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellShading(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellVerticalText(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellVerticalText(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellVerticalText(this) { Ok(ok__) => { @@ -5544,17 +4137,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellVerticalText(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellVerticalText(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellVerticalText(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellWidth(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellWidth(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetCellWidth(this) { Ok(ok__) => { @@ -5564,52 +4151,31 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCellWidth(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellWidth(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellWidth(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetCellBorderColors(this: *mut core::ffi::c_void, pcrleft: *mut i32, pcrtop: *mut i32, pcrright: *mut i32, pcrbottom: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellBorderColors(this: *mut core::ffi::c_void, pcrleft: *mut i32, pcrtop: *mut i32, pcrright: *mut i32, pcrbottom: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::GetCellBorderColors(this, core::mem::transmute_copy(&pcrleft), core::mem::transmute_copy(&pcrtop), core::mem::transmute_copy(&pcrright), core::mem::transmute_copy(&pcrbottom)).into() } - unsafe extern "system" fn GetCellBorderWidths(this: *mut core::ffi::c_void, pduleft: *mut i32, pdutop: *mut i32, pduright: *mut i32, pdubottom: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetCellBorderWidths(this: *mut core::ffi::c_void, pduleft: *mut i32, pdutop: *mut i32, pduright: *mut i32, pdubottom: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::GetCellBorderWidths(this, core::mem::transmute_copy(&pduleft), core::mem::transmute_copy(&pdutop), core::mem::transmute_copy(&pduright), core::mem::transmute_copy(&pdubottom)).into() } - unsafe extern "system" fn SetCellBorderColors(this: *mut core::ffi::c_void, crleft: i32, crtop: i32, crright: i32, crbottom: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellBorderColors(this: *mut core::ffi::c_void, crleft: i32, crtop: i32, crright: i32, crbottom: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellBorderColors(this, core::mem::transmute_copy(&crleft), core::mem::transmute_copy(&crtop), core::mem::transmute_copy(&crright), core::mem::transmute_copy(&crbottom)).into() } - unsafe extern "system" fn SetCellBorderWidths(this: *mut core::ffi::c_void, duleft: i32, dutop: i32, duright: i32, dubottom: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetCellBorderWidths(this: *mut core::ffi::c_void, duleft: i32, dutop: i32, duright: i32, dubottom: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetCellBorderWidths(this, core::mem::transmute_copy(&duleft), core::mem::transmute_copy(&dutop), core::mem::transmute_copy(&duright), core::mem::transmute_copy(&dubottom)).into() } - unsafe extern "system" fn Apply(this: *mut core::ffi::c_void, crow: i32, flags: tomConstants) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn Apply(this: *mut core::ffi::c_void, crow: i32, flags: tomConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::Apply(this, core::mem::transmute_copy(&crow), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn CanChange(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn CanChange(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::CanChange(this) { Ok(ok__) => { @@ -5619,10 +4185,7 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::GetProperty(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -5632,17 +4195,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, crow: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, crow: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::Insert(this, core::mem::transmute_copy(&crow)).into() } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, prow: *mut core::ffi::c_void, pb: *mut i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, prow: *mut core::ffi::c_void, pb: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRow_Impl::IsEqual(this, windows_core::from_raw_borrowed(&prow)) { Ok(ok__) => { @@ -5652,17 +4209,11 @@ impl ITextRow_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::Reset(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT - where - Identity: ITextRow_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRow_Impl::SetProperty(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value)).into() } @@ -5737,14 +4288,8 @@ pub trait ITextSelection_Impl: Sized + ITextRange_Impl { impl windows_core::RuntimeName for ITextSelection {} #[cfg(feature = "Win32_System_Com")] impl ITextSelection_Vtbl { - pub const fn new() -> ITextSelection_Vtbl - where - Identity: ITextSelection_Impl, - { - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + pub const fn new() -> ITextSelection_Vtbl { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::GetFlags(this) { Ok(ok__) => { @@ -5754,17 +4299,11 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextSelection_Impl::SetFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::GetType(this) { Ok(ok__) => { @@ -5774,10 +4313,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveLeft(this: *mut core::ffi::c_void, unit: i32, count: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn MoveLeft(this: *mut core::ffi::c_void, unit: i32, count: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::MoveLeft(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count), core::mem::transmute_copy(&extend)) { Ok(ok__) => { @@ -5787,10 +4323,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveRight(this: *mut core::ffi::c_void, unit: i32, count: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn MoveRight(this: *mut core::ffi::c_void, unit: i32, count: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::MoveRight(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count), core::mem::transmute_copy(&extend)) { Ok(ok__) => { @@ -5800,10 +4333,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveUp(this: *mut core::ffi::c_void, unit: i32, count: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn MoveUp(this: *mut core::ffi::c_void, unit: i32, count: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::MoveUp(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count), core::mem::transmute_copy(&extend)) { Ok(ok__) => { @@ -5813,10 +4343,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveDown(this: *mut core::ffi::c_void, unit: i32, count: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn MoveDown(this: *mut core::ffi::c_void, unit: i32, count: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::MoveDown(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&count), core::mem::transmute_copy(&extend)) { Ok(ok__) => { @@ -5826,10 +4353,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HomeKey(this: *mut core::ffi::c_void, unit: tomConstants, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn HomeKey(this: *mut core::ffi::c_void, unit: tomConstants, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::HomeKey(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&extend)) { Ok(ok__) => { @@ -5839,10 +4363,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndKey(this: *mut core::ffi::c_void, unit: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn EndKey(this: *mut core::ffi::c_void, unit: i32, extend: i32, pdelta: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextSelection_Impl::EndKey(this, core::mem::transmute_copy(&unit), core::mem::transmute_copy(&extend)) { Ok(ok__) => { @@ -5852,10 +4373,7 @@ impl ITextSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TypeText(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextSelection_Impl, - { + unsafe extern "system" fn TypeText(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextSelection_Impl::TypeText(this, core::mem::transmute(&bstr)).into() } @@ -5883,10 +4401,7 @@ pub trait ITextSelection2_Impl: Sized + ITextRange2_Impl {} impl windows_core::RuntimeName for ITextSelection2 {} #[cfg(feature = "Win32_System_Com")] impl ITextSelection2_Vtbl { - pub const fn new() -> ITextSelection2_Vtbl - where - Identity: ITextSelection2_Impl, - { + pub const fn new() -> ITextSelection2_Vtbl { Self { base__: ITextRange2_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -5894,7 +4409,7 @@ impl ITextSelection2_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] -pub trait ITextServices_Impl: Sized { +pub trait ITextServices_Impl: Sized + windows_core::IUnknownImpl { fn TxSendMessage(&self, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()>; fn TxDraw(&self, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcbounds: *mut super::super::super::Foundation::RECTL, lprcwbounds: *mut super::super::super::Foundation::RECTL, lprcupdate: *mut super::super::super::Foundation::RECT, pfncontinue: isize, dwcontinue: u32, lviewid: i32) -> windows_core::Result<()>; fn TxGetHScroll(&self, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -5918,119 +4433,68 @@ pub trait ITextServices_Impl: Sized { impl windows_core::RuntimeName for ITextServices {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITextServices_Vtbl { - pub const fn new() -> ITextServices_Vtbl - where - Identity: ITextServices_Impl, - { - unsafe extern "system" fn TxSendMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + pub const fn new() -> ITextServices_Vtbl { + unsafe extern "system" fn TxSendMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxSendMessage(this, core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&plresult)).into() } - unsafe extern "system" fn TxDraw(this: *mut core::ffi::c_void, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcbounds: *mut super::super::super::Foundation::RECTL, lprcwbounds: *mut super::super::super::Foundation::RECTL, lprcupdate: *mut super::super::super::Foundation::RECT, pfncontinue: isize, dwcontinue: u32, lviewid: i32) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxDraw(this: *mut core::ffi::c_void, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcbounds: *mut super::super::super::Foundation::RECTL, lprcwbounds: *mut super::super::super::Foundation::RECTL, lprcupdate: *mut super::super::super::Foundation::RECT, pfncontinue: isize, dwcontinue: u32, lviewid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxDraw(this, core::mem::transmute_copy(&dwdrawaspect), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pvaspect), core::mem::transmute_copy(&ptd), core::mem::transmute_copy(&hdcdraw), core::mem::transmute_copy(&hictargetdev), core::mem::transmute_copy(&lprcbounds), core::mem::transmute_copy(&lprcwbounds), core::mem::transmute_copy(&lprcupdate), core::mem::transmute_copy(&pfncontinue), core::mem::transmute_copy(&dwcontinue), core::mem::transmute_copy(&lviewid)).into() } - unsafe extern "system" fn TxGetHScroll(this: *mut core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxGetHScroll(this: *mut core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxGetHScroll(this, core::mem::transmute_copy(&plmin), core::mem::transmute_copy(&plmax), core::mem::transmute_copy(&plpos), core::mem::transmute_copy(&plpage), core::mem::transmute_copy(&pfenabled)).into() } - unsafe extern "system" fn TxGetVScroll(this: *mut core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxGetVScroll(this: *mut core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxGetVScroll(this, core::mem::transmute_copy(&plmin), core::mem::transmute_copy(&plmax), core::mem::transmute_copy(&plpos), core::mem::transmute_copy(&plpage), core::mem::transmute_copy(&pfenabled)).into() } - unsafe extern "system" fn OnTxSetCursor(this: *mut core::ffi::c_void, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn OnTxSetCursor(this: *mut core::ffi::c_void, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::OnTxSetCursor(this, core::mem::transmute_copy(&dwdrawaspect), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pvaspect), core::mem::transmute_copy(&ptd), core::mem::transmute_copy(&hdcdraw), core::mem::transmute_copy(&hictargetdev), core::mem::transmute_copy(&lprcclient), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn TxQueryHitPoint(this: *mut core::ffi::c_void, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32, phitresult: *mut u32) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxQueryHitPoint(this: *mut core::ffi::c_void, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32, phitresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxQueryHitPoint(this, core::mem::transmute_copy(&dwdrawaspect), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pvaspect), core::mem::transmute_copy(&ptd), core::mem::transmute_copy(&hdcdraw), core::mem::transmute_copy(&hictargetdev), core::mem::transmute_copy(&lprcclient), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&phitresult)).into() } - unsafe extern "system" fn OnTxInPlaceActivate(this: *mut core::ffi::c_void, prcclient: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn OnTxInPlaceActivate(this: *mut core::ffi::c_void, prcclient: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::OnTxInPlaceActivate(this, core::mem::transmute_copy(&prcclient)).into() } - unsafe extern "system" fn OnTxInPlaceDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn OnTxInPlaceDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::OnTxInPlaceDeactivate(this).into() } - unsafe extern "system" fn OnTxUIActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn OnTxUIActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::OnTxUIActivate(this).into() } - unsafe extern "system" fn OnTxUIDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn OnTxUIDeactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::OnTxUIDeactivate(this).into() } - unsafe extern "system" fn TxGetText(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxGetText(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxGetText(this, core::mem::transmute_copy(&pbstrtext)).into() } - unsafe extern "system" fn TxSetText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxSetText(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxSetText(this, core::mem::transmute(&psztext)).into() } - unsafe extern "system" fn TxGetCurTargetX(this: *mut core::ffi::c_void, param0: *mut i32) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxGetCurTargetX(this: *mut core::ffi::c_void, param0: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxGetCurTargetX(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn TxGetBaseLinePos(this: *mut core::ffi::c_void, param0: *mut i32) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxGetBaseLinePos(this: *mut core::ffi::c_void, param0: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxGetBaseLinePos(this, core::mem::transmute_copy(¶m0)).into() } - unsafe extern "system" fn TxGetNaturalSize(this: *mut core::ffi::c_void, dwaspect: u32, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, dwmode: u32, psizelextent: *const super::super::super::Foundation::SIZE, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxGetNaturalSize(this: *mut core::ffi::c_void, dwaspect: u32, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, dwmode: u32, psizelextent: *const super::super::super::Foundation::SIZE, pwidth: *mut i32, pheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxGetNaturalSize(this, core::mem::transmute_copy(&dwaspect), core::mem::transmute_copy(&hdcdraw), core::mem::transmute_copy(&hictargetdev), core::mem::transmute_copy(&ptd), core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&psizelextent), core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight)).into() } - unsafe extern "system" fn TxGetDropTarget(this: *mut core::ffi::c_void, ppdroptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxGetDropTarget(this: *mut core::ffi::c_void, ppdroptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextServices_Impl::TxGetDropTarget(this) { Ok(ok__) => { @@ -6040,17 +4504,11 @@ impl ITextServices_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnTxPropertyBitsChange(this: *mut core::ffi::c_void, dwmask: u32, dwbits: u32) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn OnTxPropertyBitsChange(this: *mut core::ffi::c_void, dwmask: u32, dwbits: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::OnTxPropertyBitsChange(this, core::mem::transmute_copy(&dwmask), core::mem::transmute_copy(&dwbits)).into() } - unsafe extern "system" fn TxGetCachedSize(this: *mut core::ffi::c_void, pdwwidth: *mut u32, pdwheight: *mut u32) -> windows_core::HRESULT - where - Identity: ITextServices_Impl, - { + unsafe extern "system" fn TxGetCachedSize(this: *mut core::ffi::c_void, pdwwidth: *mut u32, pdwheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxGetCachedSize(this, core::mem::transmute_copy(&pdwwidth), core::mem::transmute_copy(&pdwheight)).into() } @@ -6089,21 +4547,12 @@ pub trait ITextServices2_Impl: Sized + ITextServices_Impl { impl windows_core::RuntimeName for ITextServices2 {} #[cfg(all(feature = "Win32_Graphics_Direct2D", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITextServices2_Vtbl { - pub const fn new() -> ITextServices2_Vtbl - where - Identity: ITextServices2_Impl, - { - unsafe extern "system" fn TxGetNaturalSize2(this: *mut core::ffi::c_void, dwaspect: u32, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, dwmode: u32, psizelextent: *const super::super::super::Foundation::SIZE, pwidth: *mut i32, pheight: *mut i32, pascent: *mut i32) -> windows_core::HRESULT - where - Identity: ITextServices2_Impl, - { + pub const fn new() -> ITextServices2_Vtbl { + unsafe extern "system" fn TxGetNaturalSize2(this: *mut core::ffi::c_void, dwaspect: u32, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, dwmode: u32, psizelextent: *const super::super::super::Foundation::SIZE, pwidth: *mut i32, pheight: *mut i32, pascent: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices2_Impl::TxGetNaturalSize2(this, core::mem::transmute_copy(&dwaspect), core::mem::transmute_copy(&hdcdraw), core::mem::transmute_copy(&hictargetdev), core::mem::transmute_copy(&ptd), core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&psizelextent), core::mem::transmute_copy(&pwidth), core::mem::transmute_copy(&pheight), core::mem::transmute_copy(&pascent)).into() } - unsafe extern "system" fn TxDrawD2D(this: *mut core::ffi::c_void, prendertarget: *mut core::ffi::c_void, lprcbounds: *mut super::super::super::Foundation::RECTL, lprcupdate: *mut super::super::super::Foundation::RECT, lviewid: i32) -> windows_core::HRESULT - where - Identity: ITextServices2_Impl, - { + unsafe extern "system" fn TxDrawD2D(this: *mut core::ffi::c_void, prendertarget: *mut core::ffi::c_void, lprcbounds: *mut super::super::super::Foundation::RECTL, lprcupdate: *mut super::super::super::Foundation::RECT, lviewid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices2_Impl::TxDrawD2D(this, windows_core::from_raw_borrowed(&prendertarget), core::mem::transmute_copy(&lprcbounds), core::mem::transmute_copy(&lprcupdate), core::mem::transmute_copy(&lviewid)).into() } @@ -6118,7 +4567,7 @@ impl ITextServices2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITextStory_Impl: Sized { +pub trait ITextStory_Impl: Sized + windows_core::IUnknownImpl { fn GetActive(&self) -> windows_core::Result; fn SetActive(&self, value: i32) -> windows_core::Result<()>; fn GetDisplay(&self) -> windows_core::Result; @@ -6136,14 +4585,8 @@ pub trait ITextStory_Impl: Sized { impl windows_core::RuntimeName for ITextStory {} #[cfg(feature = "Win32_System_Com")] impl ITextStory_Vtbl { - pub const fn new() -> ITextStory_Vtbl - where - Identity: ITextStory_Impl, - { - unsafe extern "system" fn GetActive(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + pub const fn new() -> ITextStory_Vtbl { + unsafe extern "system" fn GetActive(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStory_Impl::GetActive(this) { Ok(ok__) => { @@ -6153,17 +4596,11 @@ impl ITextStory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetActive(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn SetActive(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStory_Impl::SetActive(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetDisplay(this: *mut core::ffi::c_void, ppdisplay: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn GetDisplay(this: *mut core::ffi::c_void, ppdisplay: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStory_Impl::GetDisplay(this) { Ok(ok__) => { @@ -6173,10 +4610,7 @@ impl ITextStory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStory_Impl::GetIndex(this) { Ok(ok__) => { @@ -6186,10 +4620,7 @@ impl ITextStory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStory_Impl::GetType(this) { Ok(ok__) => { @@ -6199,17 +4630,11 @@ impl ITextStory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn SetType(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStory_Impl::SetType(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStory_Impl::GetProperty(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -6219,10 +4644,7 @@ impl ITextStory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, cpactive: i32, cpanchor: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, cpactive: i32, cpanchor: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStory_Impl::GetRange(this, core::mem::transmute_copy(&cpactive), core::mem::transmute_copy(&cpanchor)) { Ok(ok__) => { @@ -6232,10 +4654,7 @@ impl ITextStory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, flags: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, flags: i32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStory_Impl::GetText(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -6245,24 +4664,15 @@ impl ITextStory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFormattedText(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn SetFormattedText(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStory_Impl::SetFormattedText(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, r#type: i32, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStory_Impl::SetProperty(this, core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, flags: i32, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextStory_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, flags: i32, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStory_Impl::SetText(this, core::mem::transmute_copy(&flags), core::mem::transmute(&bstr)).into() } @@ -6296,14 +4706,8 @@ pub trait ITextStoryRanges_Impl: Sized + super::super::super::System::Com::IDisp impl windows_core::RuntimeName for ITextStoryRanges {} #[cfg(feature = "Win32_System_Com")] impl ITextStoryRanges_Vtbl { - pub const fn new() -> ITextStoryRanges_Vtbl - where - Identity: ITextStoryRanges_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunkenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoryRanges_Impl, - { + pub const fn new() -> ITextStoryRanges_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunkenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoryRanges_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6313,10 +4717,7 @@ impl ITextStoryRanges_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoryRanges_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoryRanges_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6326,10 +4727,7 @@ impl ITextStoryRanges_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoryRanges_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoryRanges_Impl::GetCount(this) { Ok(ok__) => { @@ -6358,14 +4756,8 @@ pub trait ITextStoryRanges2_Impl: Sized + ITextStoryRanges_Impl { impl windows_core::RuntimeName for ITextStoryRanges2 {} #[cfg(feature = "Win32_System_Com")] impl ITextStoryRanges2_Vtbl { - pub const fn new() -> ITextStoryRanges2_Vtbl - where - Identity: ITextStoryRanges2_Impl, - { - unsafe extern "system" fn Item2(this: *mut core::ffi::c_void, index: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoryRanges2_Impl, - { + pub const fn new() -> ITextStoryRanges2_Vtbl { + unsafe extern "system" fn Item2(this: *mut core::ffi::c_void, index: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoryRanges2_Impl::Item2(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6405,14 +4797,8 @@ pub trait ITextStrings_Impl: Sized + super::super::super::System::Com::IDispatch impl windows_core::RuntimeName for ITextStrings {} #[cfg(feature = "Win32_System_Com")] impl ITextStrings_Vtbl { - pub const fn new() -> ITextStrings_Vtbl - where - Identity: ITextStrings_Impl, - { - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + pub const fn new() -> ITextStrings_Vtbl { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStrings_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6422,10 +4808,7 @@ impl ITextStrings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStrings_Impl::GetCount(this) { Ok(ok__) => { @@ -6435,52 +4818,31 @@ impl ITextStrings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::Add(this, core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, istring: i32) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, istring: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::Append(this, windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&istring)).into() } - unsafe extern "system" fn Cat2(this: *mut core::ffi::c_void, istring: i32) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn Cat2(this: *mut core::ffi::c_void, istring: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::Cat2(this, core::mem::transmute_copy(&istring)).into() } - unsafe extern "system" fn CatTop2(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn CatTop2(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::CatTop2(this, core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn DeleteRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn DeleteRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::DeleteRange(this, windows_core::from_raw_borrowed(&prange)).into() } - unsafe extern "system" fn EncodeFunction(this: *mut core::ffi::c_void, r#type: i32, align: i32, char: i32, char1: i32, char2: i32, count: i32, texstyle: i32, ccol: i32, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn EncodeFunction(this: *mut core::ffi::c_void, r#type: i32, align: i32, char: i32, char1: i32, char2: i32, count: i32, texstyle: i32, ccol: i32, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::EncodeFunction(this, 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), windows_core::from_raw_borrowed(&prange)).into() } - unsafe extern "system" fn GetCch(this: *mut core::ffi::c_void, istring: i32, pcch: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn GetCch(this: *mut core::ffi::c_void, istring: i32, pcch: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStrings_Impl::GetCch(this, core::mem::transmute_copy(&istring)) { Ok(ok__) => { @@ -6490,59 +4852,35 @@ impl ITextStrings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertNullStr(this: *mut core::ffi::c_void, istring: i32) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn InsertNullStr(this: *mut core::ffi::c_void, istring: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::InsertNullStr(this, core::mem::transmute_copy(&istring)).into() } - unsafe extern "system" fn MoveBoundary(this: *mut core::ffi::c_void, istring: i32, cch: i32) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn MoveBoundary(this: *mut core::ffi::c_void, istring: i32, cch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::MoveBoundary(this, core::mem::transmute_copy(&istring), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn PrefixTop(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn PrefixTop(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::PrefixTop(this, core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, istring: i32, cstring: i32) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, istring: i32, cstring: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::Remove(this, core::mem::transmute_copy(&istring), core::mem::transmute_copy(&cstring)).into() } - unsafe extern "system" fn SetFormattedText(this: *mut core::ffi::c_void, pranged: *mut core::ffi::c_void, pranges: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn SetFormattedText(this: *mut core::ffi::c_void, pranged: *mut core::ffi::c_void, pranges: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::SetFormattedText(this, windows_core::from_raw_borrowed(&pranged), windows_core::from_raw_borrowed(&pranges)).into() } - unsafe extern "system" fn SetOpCp(this: *mut core::ffi::c_void, istring: i32, cp: i32) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn SetOpCp(this: *mut core::ffi::c_void, istring: i32, cp: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::SetOpCp(this, core::mem::transmute_copy(&istring), core::mem::transmute_copy(&cp)).into() } - unsafe extern "system" fn SuffixTop(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn SuffixTop(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::SuffixTop(this, core::mem::transmute(&bstr), windows_core::from_raw_borrowed(&prange)).into() } - unsafe extern "system" fn Swap(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStrings_Impl, - { + unsafe extern "system" fn Swap(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStrings_Impl::Swap(this).into() } diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/impl.rs index f6b070ef69..2a14cf0f84 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/impl.rs @@ -1,5 +1,5 @@ #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IImageList_Impl: Sized { +pub trait IImageList_Impl: Sized + windows_core::IUnknownImpl { fn Add(&self, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result; fn ReplaceIcon(&self, i: i32, hicon: super::WindowsAndMessaging::HICON) -> windows_core::Result; fn SetOverlayImage(&self, iimage: i32, ioverlay: i32) -> windows_core::Result<()>; @@ -34,14 +34,8 @@ pub trait IImageList_Impl: Sized { impl windows_core::RuntimeName for IImageList {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IImageList_Vtbl { - pub const fn new() -> IImageList_Vtbl - where - Identity: IImageList_Impl, - { - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: super::super::Graphics::Gdi::HBITMAP, pi: *mut i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + pub const fn new() -> IImageList_Vtbl { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: super::super::Graphics::Gdi::HBITMAP, pi: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageList_Impl::Add(this, core::mem::transmute_copy(&hbmimage), core::mem::transmute_copy(&hbmmask)) { Ok(ok__) => { @@ -51,10 +45,7 @@ impl IImageList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReplaceIcon(this: *mut core::ffi::c_void, i: i32, hicon: super::WindowsAndMessaging::HICON, pi: *mut i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn ReplaceIcon(this: *mut core::ffi::c_void, i: i32, hicon: super::WindowsAndMessaging::HICON, pi: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageList_Impl::ReplaceIcon(this, core::mem::transmute_copy(&i), core::mem::transmute_copy(&hicon)) { Ok(ok__) => { @@ -64,24 +55,15 @@ impl IImageList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOverlayImage(this: *mut core::ffi::c_void, iimage: i32, ioverlay: i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn SetOverlayImage(this: *mut core::ffi::c_void, iimage: i32, ioverlay: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::SetOverlayImage(this, core::mem::transmute_copy(&iimage), core::mem::transmute_copy(&ioverlay)).into() } - unsafe extern "system" fn Replace(this: *mut core::ffi::c_void, i: i32, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn Replace(this: *mut core::ffi::c_void, i: i32, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::Replace(this, core::mem::transmute_copy(&i), core::mem::transmute_copy(&hbmimage), core::mem::transmute_copy(&hbmmask)).into() } - unsafe extern "system" fn AddMasked(this: *mut core::ffi::c_void, hbmimage: super::super::Graphics::Gdi::HBITMAP, crmask: super::super::Foundation::COLORREF, pi: *mut i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn AddMasked(this: *mut core::ffi::c_void, hbmimage: super::super::Graphics::Gdi::HBITMAP, crmask: super::super::Foundation::COLORREF, pi: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageList_Impl::AddMasked(this, core::mem::transmute_copy(&hbmimage), core::mem::transmute_copy(&crmask)) { Ok(ok__) => { @@ -91,24 +73,15 @@ impl IImageList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, pimldp: *const IMAGELISTDRAWPARAMS) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, pimldp: *const IMAGELISTDRAWPARAMS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::Draw(this, core::mem::transmute_copy(&pimldp)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, i: i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, i: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::Remove(this, core::mem::transmute_copy(&i)).into() } - unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, i: i32, flags: u32, picon: *mut super::WindowsAndMessaging::HICON) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, i: i32, flags: u32, picon: *mut super::WindowsAndMessaging::HICON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageList_Impl::GetIcon(this, core::mem::transmute_copy(&i), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -118,38 +91,23 @@ impl IImageList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImageInfo(this: *mut core::ffi::c_void, i: i32, pimageinfo: *mut IMAGEINFO) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn GetImageInfo(this: *mut core::ffi::c_void, i: i32, pimageinfo: *mut IMAGEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::GetImageInfo(this, core::mem::transmute_copy(&i), core::mem::transmute_copy(&pimageinfo)).into() } - unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, idst: i32, punksrc: *mut core::ffi::c_void, isrc: i32, uflags: u32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn Copy(this: *mut core::ffi::c_void, idst: i32, punksrc: *mut core::ffi::c_void, isrc: i32, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::Copy(this, core::mem::transmute_copy(&idst), windows_core::from_raw_borrowed(&punksrc), core::mem::transmute_copy(&isrc), core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, i1: i32, punk2: *mut core::ffi::c_void, i2: i32, dx: i32, dy: i32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, i1: i32, punk2: *mut core::ffi::c_void, i2: i32, dx: i32, dy: i32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::Merge(this, core::mem::transmute_copy(&i1), windows_core::from_raw_borrowed(&punk2), core::mem::transmute_copy(&i2), core::mem::transmute_copy(&dx), core::mem::transmute_copy(&dy), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::Clone(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetImageRect(this: *mut core::ffi::c_void, i: i32, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn GetImageRect(this: *mut core::ffi::c_void, i: i32, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageList_Impl::GetImageRect(this, core::mem::transmute_copy(&i)) { Ok(ok__) => { @@ -159,24 +117,15 @@ impl IImageList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIconSize(this: *mut core::ffi::c_void, cx: *mut i32, cy: *mut i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn GetIconSize(this: *mut core::ffi::c_void, cx: *mut i32, cy: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::GetIconSize(this, core::mem::transmute_copy(&cx), core::mem::transmute_copy(&cy)).into() } - unsafe extern "system" fn SetIconSize(this: *mut core::ffi::c_void, cx: i32, cy: i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn SetIconSize(this: *mut core::ffi::c_void, cx: i32, cy: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::SetIconSize(this, core::mem::transmute_copy(&cx), core::mem::transmute_copy(&cy)).into() } - unsafe extern "system" fn GetImageCount(this: *mut core::ffi::c_void, pi: *mut i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn GetImageCount(this: *mut core::ffi::c_void, pi: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageList_Impl::GetImageCount(this) { Ok(ok__) => { @@ -186,17 +135,11 @@ impl IImageList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetImageCount(this: *mut core::ffi::c_void, unewcount: u32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn SetImageCount(this: *mut core::ffi::c_void, unewcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::SetImageCount(this, core::mem::transmute_copy(&unewcount)).into() } - unsafe extern "system" fn SetBkColor(this: *mut core::ffi::c_void, clrbk: super::super::Foundation::COLORREF, pclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn SetBkColor(this: *mut core::ffi::c_void, clrbk: super::super::Foundation::COLORREF, pclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageList_Impl::SetBkColor(this, core::mem::transmute_copy(&clrbk)) { Ok(ok__) => { @@ -206,10 +149,7 @@ impl IImageList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBkColor(this: *mut core::ffi::c_void, pclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn GetBkColor(this: *mut core::ffi::c_void, pclr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageList_Impl::GetBkColor(this) { Ok(ok__) => { @@ -219,66 +159,39 @@ impl IImageList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BeginDrag(this: *mut core::ffi::c_void, itrack: i32, dxhotspot: i32, dyhotspot: i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn BeginDrag(this: *mut core::ffi::c_void, itrack: i32, dxhotspot: i32, dyhotspot: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::BeginDrag(this, core::mem::transmute_copy(&itrack), core::mem::transmute_copy(&dxhotspot), core::mem::transmute_copy(&dyhotspot)).into() } - unsafe extern "system" fn EndDrag(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn EndDrag(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::EndDrag(this).into() } - unsafe extern "system" fn DragEnter(this: *mut core::ffi::c_void, hwndlock: super::super::Foundation::HWND, x: i32, y: i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn DragEnter(this: *mut core::ffi::c_void, hwndlock: super::super::Foundation::HWND, x: i32, y: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::DragEnter(this, core::mem::transmute_copy(&hwndlock), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn DragLeave(this: *mut core::ffi::c_void, hwndlock: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn DragLeave(this: *mut core::ffi::c_void, hwndlock: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::DragLeave(this, core::mem::transmute_copy(&hwndlock)).into() } - unsafe extern "system" fn DragMove(this: *mut core::ffi::c_void, x: i32, y: i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn DragMove(this: *mut core::ffi::c_void, x: i32, y: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::DragMove(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn SetDragCursorImage(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, idrag: i32, dxhotspot: i32, dyhotspot: i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn SetDragCursorImage(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, idrag: i32, dxhotspot: i32, dyhotspot: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::SetDragCursorImage(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&idrag), core::mem::transmute_copy(&dxhotspot), core::mem::transmute_copy(&dyhotspot)).into() } - unsafe extern "system" fn DragShowNolock(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn DragShowNolock(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::DragShowNolock(this, core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn GetDragImage(this: *mut core::ffi::c_void, ppt: *mut super::super::Foundation::POINT, ppthotspot: *mut super::super::Foundation::POINT, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn GetDragImage(this: *mut core::ffi::c_void, ppt: *mut super::super::Foundation::POINT, ppthotspot: *mut super::super::Foundation::POINT, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::GetDragImage(this, core::mem::transmute_copy(&ppt), core::mem::transmute_copy(&ppthotspot), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetItemFlags(this: *mut core::ffi::c_void, i: i32, dwflags: *mut IMAGE_LIST_ITEM_FLAGS) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn GetItemFlags(this: *mut core::ffi::c_void, i: i32, dwflags: *mut IMAGE_LIST_ITEM_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageList_Impl::GetItemFlags(this, core::mem::transmute_copy(&i)) { Ok(ok__) => { @@ -288,10 +201,7 @@ impl IImageList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOverlayImage(this: *mut core::ffi::c_void, ioverlay: i32, piindex: *mut i32) -> windows_core::HRESULT - where - Identity: IImageList_Impl, - { + unsafe extern "system" fn GetOverlayImage(this: *mut core::ffi::c_void, ioverlay: i32, piindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageList_Impl::GetOverlayImage(this, core::mem::transmute_copy(&ioverlay)) { Ok(ok__) => { @@ -357,91 +267,52 @@ pub trait IImageList2_Impl: Sized + IImageList_Impl { impl windows_core::RuntimeName for IImageList2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IImageList2_Vtbl { - pub const fn new() -> IImageList2_Vtbl - where - Identity: IImageList2_Impl, - { - unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, cxnewiconsize: i32, cynewiconsize: i32) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + pub const fn new() -> IImageList2_Vtbl { + unsafe extern "system" fn Resize(this: *mut core::ffi::c_void, cxnewiconsize: i32, cynewiconsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::Resize(this, core::mem::transmute_copy(&cxnewiconsize), core::mem::transmute_copy(&cynewiconsize)).into() } - unsafe extern "system" fn GetOriginalSize(this: *mut core::ffi::c_void, iimage: i32, dwflags: u32, pcx: *mut i32, pcy: *mut i32) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn GetOriginalSize(this: *mut core::ffi::c_void, iimage: i32, dwflags: u32, pcx: *mut i32, pcy: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::GetOriginalSize(this, core::mem::transmute_copy(&iimage), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pcx), core::mem::transmute_copy(&pcy)).into() } - unsafe extern "system" fn SetOriginalSize(this: *mut core::ffi::c_void, iimage: i32, cx: i32, cy: i32) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn SetOriginalSize(this: *mut core::ffi::c_void, iimage: i32, cx: i32, cy: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::SetOriginalSize(this, core::mem::transmute_copy(&iimage), core::mem::transmute_copy(&cx), core::mem::transmute_copy(&cy)).into() } - unsafe extern "system" fn SetCallback(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn SetCallback(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::SetCallback(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn GetCallback(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn GetCallback(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::GetCallback(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn ForceImagePresent(this: *mut core::ffi::c_void, iimage: i32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn ForceImagePresent(this: *mut core::ffi::c_void, iimage: i32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::ForceImagePresent(this, core::mem::transmute_copy(&iimage), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn DiscardImages(this: *mut core::ffi::c_void, ifirstimage: i32, ilastimage: i32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn DiscardImages(this: *mut core::ffi::c_void, ifirstimage: i32, ilastimage: i32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::DiscardImages(this, core::mem::transmute_copy(&ifirstimage), core::mem::transmute_copy(&ilastimage), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn PreloadImages(this: *mut core::ffi::c_void, pimldp: *const IMAGELISTDRAWPARAMS) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn PreloadImages(this: *mut core::ffi::c_void, pimldp: *const IMAGELISTDRAWPARAMS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::PreloadImages(this, core::mem::transmute_copy(&pimldp)).into() } - unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, pils: *mut IMAGELISTSTATS) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn GetStatistics(this: *mut core::ffi::c_void, pils: *mut IMAGELISTSTATS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::GetStatistics(this, core::mem::transmute_copy(&pils)).into() } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, cx: i32, cy: i32, flags: IMAGELIST_CREATION_FLAGS, cinitial: i32, cgrow: i32) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, cx: i32, cy: i32, flags: IMAGELIST_CREATION_FLAGS, cinitial: i32, cgrow: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::Initialize(this, core::mem::transmute_copy(&cx), core::mem::transmute_copy(&cy), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&cinitial), core::mem::transmute_copy(&cgrow)).into() } - unsafe extern "system" fn Replace2(this: *mut core::ffi::c_void, i: i32, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: super::super::Graphics::Gdi::HBITMAP, punk: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn Replace2(this: *mut core::ffi::c_void, i: i32, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: super::super::Graphics::Gdi::HBITMAP, punk: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::Replace2(this, core::mem::transmute_copy(&i), core::mem::transmute_copy(&hbmimage), core::mem::transmute_copy(&hbmmask), windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn ReplaceFromImageList(this: *mut core::ffi::c_void, i: i32, pil: *mut core::ffi::c_void, isrc: i32, punk: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IImageList2_Impl, - { + unsafe extern "system" fn ReplaceFromImageList(this: *mut core::ffi::c_void, i: i32, pil: *mut core::ffi::c_void, isrc: i32, punk: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList2_Impl::ReplaceFromImageList(this, core::mem::transmute_copy(&i), windows_core::from_raw_borrowed(&pil), core::mem::transmute_copy(&isrc), windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&dwflags)).into() } 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 7d6d3ba98d..1a09bee311 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 @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] -pub trait IActiveIME_Impl: Sized { +pub trait IActiveIME_Impl: Sized + windows_core::IUnknownImpl { fn Inquire(&self, dwsysteminfoflags: u32, pimeinfo: *mut IMEINFO, szwndclass: windows_core::PWSTR, pdwprivate: *mut u32) -> windows_core::Result<()>; fn ConversionList(&self, himc: HIMC, szsource: &windows_core::PCWSTR, uflag: u32, ubuflen: u32, pdest: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::Result<()>; fn Configure(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pregisterword: *const REGISTERWORDW) -> windows_core::Result<()>; @@ -22,112 +22,64 @@ pub trait IActiveIME_Impl: Sized { impl windows_core::RuntimeName for IActiveIME {} #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] impl IActiveIME_Vtbl { - pub const fn new() -> IActiveIME_Vtbl - where - Identity: IActiveIME_Impl, - { - unsafe extern "system" fn Inquire(this: *mut core::ffi::c_void, dwsysteminfoflags: u32, pimeinfo: *mut IMEINFO, szwndclass: windows_core::PWSTR, pdwprivate: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + pub const fn new() -> IActiveIME_Vtbl { + unsafe extern "system" fn Inquire(this: *mut core::ffi::c_void, dwsysteminfoflags: u32, pimeinfo: *mut IMEINFO, szwndclass: windows_core::PWSTR, pdwprivate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::Inquire(this, core::mem::transmute_copy(&dwsysteminfoflags), core::mem::transmute_copy(&pimeinfo), core::mem::transmute_copy(&szwndclass), core::mem::transmute_copy(&pdwprivate)).into() } - unsafe extern "system" fn ConversionList(this: *mut core::ffi::c_void, himc: HIMC, szsource: windows_core::PCWSTR, uflag: u32, ubuflen: u32, pdest: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn ConversionList(this: *mut core::ffi::c_void, himc: HIMC, szsource: windows_core::PCWSTR, uflag: u32, ubuflen: u32, pdest: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::ConversionList(this, core::mem::transmute_copy(&himc), core::mem::transmute(&szsource), core::mem::transmute_copy(&uflag), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&pdest), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pregisterword: *const REGISTERWORDW) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn Configure(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pregisterword: *const REGISTERWORDW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::Configure(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&pregisterword)).into() } - unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void, ureserved: u32) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void, ureserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::Destroy(this, core::mem::transmute_copy(&ureserved)).into() } - unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn Escape(this: *mut core::ffi::c_void, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::Escape(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&uescape), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&plresult)).into() } - unsafe extern "system" fn SetActiveContext(this: *mut core::ffi::c_void, himc: HIMC, fflag: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn SetActiveContext(this: *mut core::ffi::c_void, himc: HIMC, fflag: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::SetActiveContext(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fflag)).into() } - unsafe extern "system" fn ProcessKey(this: *mut core::ffi::c_void, himc: HIMC, uvirkey: u32, lparam: u32, pbkeystate: *const u8) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn ProcessKey(this: *mut core::ffi::c_void, himc: HIMC, uvirkey: u32, lparam: u32, pbkeystate: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::ProcessKey(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&uvirkey), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&pbkeystate)).into() } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, himc: HIMC, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, himc: HIMC, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::Notify(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwvalue)).into() } - unsafe extern "system" fn Select(this: *mut core::ffi::c_void, himc: HIMC, fselect: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void, himc: HIMC, fselect: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::Select(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fselect)).into() } - unsafe extern "system" fn SetCompositionString(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn SetCompositionString(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::SetCompositionString(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pcomp), core::mem::transmute_copy(&dwcomplen), core::mem::transmute_copy(&pread), core::mem::transmute_copy(&dwreadlen)).into() } - unsafe extern "system" fn ToAsciiEx(this: *mut core::ffi::c_void, uvirkey: u32, uscancode: u32, pbkeystate: *const u8, fustate: u32, himc: HIMC, pdwtransbuf: *mut u32, pusize: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn ToAsciiEx(this: *mut core::ffi::c_void, uvirkey: u32, uscancode: u32, pbkeystate: *const u8, fustate: u32, himc: HIMC, pdwtransbuf: *mut u32, pusize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::ToAsciiEx(this, core::mem::transmute_copy(&uvirkey), core::mem::transmute_copy(&uscancode), core::mem::transmute_copy(&pbkeystate), core::mem::transmute_copy(&fustate), core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pdwtransbuf), core::mem::transmute_copy(&pusize)).into() } - unsafe extern "system" fn RegisterWord(this: *mut core::ffi::c_void, szreading: windows_core::PCWSTR, dwstyle: u32, szstring: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn RegisterWord(this: *mut core::ffi::c_void, szreading: windows_core::PCWSTR, dwstyle: u32, szstring: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::RegisterWord(this, core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szstring)).into() } - unsafe extern "system" fn UnregisterWord(this: *mut core::ffi::c_void, szreading: windows_core::PCWSTR, dwstyle: u32, szstring: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn UnregisterWord(this: *mut core::ffi::c_void, szreading: windows_core::PCWSTR, dwstyle: u32, szstring: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::UnregisterWord(this, core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szstring)).into() } - unsafe extern "system" fn GetRegisterWordStyle(this: *mut core::ffi::c_void, nitem: u32, pstylebuf: *mut STYLEBUFW, pubufsize: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn GetRegisterWordStyle(this: *mut core::ffi::c_void, nitem: u32, pstylebuf: *mut STYLEBUFW, pubufsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::GetRegisterWordStyle(this, core::mem::transmute_copy(&nitem), core::mem::transmute_copy(&pstylebuf), core::mem::transmute_copy(&pubufsize)).into() } - unsafe extern "system" fn EnumRegisterWord(this: *mut core::ffi::c_void, szreading: windows_core::PCWSTR, dwstyle: u32, szregister: windows_core::PCWSTR, pdata: *const core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn EnumRegisterWord(this: *mut core::ffi::c_void, szreading: windows_core::PCWSTR, dwstyle: u32, szregister: windows_core::PCWSTR, pdata: *const core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIME_Impl::EnumRegisterWord(this, core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szregister), core::mem::transmute_copy(&pdata)) { Ok(ok__) => { @@ -137,10 +89,7 @@ impl IActiveIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCodePageA(this: *mut core::ffi::c_void, ucodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn GetCodePageA(this: *mut core::ffi::c_void, ucodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIME_Impl::GetCodePageA(this) { Ok(ok__) => { @@ -150,10 +99,7 @@ impl IActiveIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLangId(this: *mut core::ffi::c_void, plid: *mut u16) -> windows_core::HRESULT - where - Identity: IActiveIME_Impl, - { + unsafe extern "system" fn GetLangId(this: *mut core::ffi::c_void, plid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIME_Impl::GetLangId(this) { Ok(ok__) => { @@ -197,21 +143,12 @@ pub trait IActiveIME2_Impl: Sized + IActiveIME_Impl { impl windows_core::RuntimeName for IActiveIME2 {} #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] impl IActiveIME2_Vtbl { - pub const fn new() -> IActiveIME2_Vtbl - where - Identity: IActiveIME2_Impl, - { - unsafe extern "system" fn Sleep(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIME2_Impl, - { + pub const fn new() -> IActiveIME2_Vtbl { + unsafe extern "system" fn Sleep(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME2_Impl::Sleep(this).into() } - unsafe extern "system" fn Unsleep(this: *mut core::ffi::c_void, fdead: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveIME2_Impl, - { + unsafe extern "system" fn Unsleep(this: *mut core::ffi::c_void, fdead: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME2_Impl::Unsleep(this, core::mem::transmute_copy(&fdead)).into() } @@ -222,7 +159,7 @@ impl IActiveIME2_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Input_KeyboardAndMouse"))] -pub trait IActiveIMMApp_Impl: Sized { +pub trait IActiveIMMApp_Impl: Sized + windows_core::IUnknownImpl { fn AssociateContext(&self, hwnd: super::super::super::Foundation::HWND, hime: HIMC) -> windows_core::Result; fn ConfigureIMEA(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDA) -> windows_core::Result<()>; fn ConfigureIMEW(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDW) -> windows_core::Result<()>; @@ -296,14 +233,8 @@ pub trait IActiveIMMApp_Impl: Sized { impl windows_core::RuntimeName for IActiveIMMApp {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Input_KeyboardAndMouse"))] impl IActiveIMMApp_Vtbl { - pub const fn new() -> IActiveIMMApp_Vtbl - where - Identity: IActiveIMMApp_Impl, - { - unsafe extern "system" fn AssociateContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, hime: HIMC, phprev: *mut HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + pub const fn new() -> IActiveIMMApp_Vtbl { + unsafe extern "system" fn AssociateContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, hime: HIMC, phprev: *mut HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::AssociateContext(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&hime)) { Ok(ok__) => { @@ -313,24 +244,15 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConfigureIMEA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDA) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn ConfigureIMEA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::ConfigureIMEA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn ConfigureIMEW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDW) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn ConfigureIMEW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::ConfigureIMEW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn CreateContext(this: *mut core::ffi::c_void, phimc: *mut HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn CreateContext(this: *mut core::ffi::c_void, phimc: *mut HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::CreateContext(this) { Ok(ok__) => { @@ -340,17 +262,11 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestroyContext(this: *mut core::ffi::c_void, hime: HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn DestroyContext(this: *mut core::ffi::c_void, hime: HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::DestroyContext(this, core::mem::transmute_copy(&hime)).into() } - unsafe extern "system" fn EnumRegisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szregister: windows_core::PCSTR, pdata: *const core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn EnumRegisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szregister: windows_core::PCSTR, pdata: *const core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::EnumRegisterWordA(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szregister), core::mem::transmute_copy(&pdata)) { Ok(ok__) => { @@ -360,10 +276,7 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumRegisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szregister: windows_core::PCWSTR, pdata: *const core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn EnumRegisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szregister: windows_core::PCWSTR, pdata: *const core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::EnumRegisterWordW(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szregister), core::mem::transmute_copy(&pdata)) { Ok(ok__) => { @@ -373,94 +286,55 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EscapeA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn EscapeA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::EscapeA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&himc), core::mem::transmute_copy(&uescape), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&plresult)).into() } - unsafe extern "system" fn EscapeW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn EscapeW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::EscapeW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&himc), core::mem::transmute_copy(&uescape), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&plresult)).into() } - unsafe extern "system" fn GetCandidateListA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCandidateListA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetCandidateListA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&pcandlist), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetCandidateListW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCandidateListW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetCandidateListW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&pcandlist), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetCandidateListCountA(this: *mut core::ffi::c_void, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCandidateListCountA(this: *mut core::ffi::c_void, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetCandidateListCountA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pdwlistsize), core::mem::transmute_copy(&pdwbuflen)).into() } - unsafe extern "system" fn GetCandidateListCountW(this: *mut core::ffi::c_void, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCandidateListCountW(this: *mut core::ffi::c_void, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetCandidateListCountW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pdwlistsize), core::mem::transmute_copy(&pdwbuflen)).into() } - unsafe extern "system" fn GetCandidateWindow(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcandidate: *mut CANDIDATEFORM) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCandidateWindow(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcandidate: *mut CANDIDATEFORM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetCandidateWindow(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pcandidate)).into() } - unsafe extern "system" fn GetCompositionFontA(this: *mut core::ffi::c_void, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCompositionFontA(this: *mut core::ffi::c_void, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetCompositionFontA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&plf)).into() } - unsafe extern "system" fn GetCompositionFontW(this: *mut core::ffi::c_void, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCompositionFontW(this: *mut core::ffi::c_void, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetCompositionFontW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&plf)).into() } - unsafe extern "system" fn GetCompositionStringA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCompositionStringA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetCompositionStringA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwbuflen), core::mem::transmute_copy(&plcopied), core::mem::transmute_copy(&pbuf)).into() } - unsafe extern "system" fn GetCompositionStringW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCompositionStringW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetCompositionStringW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwbuflen), core::mem::transmute_copy(&plcopied), core::mem::transmute_copy(&pbuf)).into() } - unsafe extern "system" fn GetCompositionWindow(this: *mut core::ffi::c_void, himc: HIMC, pcompform: *mut COMPOSITIONFORM) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCompositionWindow(this: *mut core::ffi::c_void, himc: HIMC, pcompform: *mut COMPOSITIONFORM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetCompositionWindow(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pcompform)).into() } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, phimc: *mut HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, phimc: *mut HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::GetContext(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -470,31 +344,19 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConversionListA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: windows_core::PCSTR, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetConversionListA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: windows_core::PCSTR, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetConversionListA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&himc), core::mem::transmute(&psrc), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&uflag), core::mem::transmute_copy(&pdst), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetConversionListW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: windows_core::PCWSTR, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetConversionListW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: windows_core::PCWSTR, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetConversionListW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&himc), core::mem::transmute(&psrc), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&uflag), core::mem::transmute_copy(&pdst), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetConversionStatus(this: *mut core::ffi::c_void, himc: HIMC, pfdwconversion: *mut u32, pfdwsentence: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetConversionStatus(this: *mut core::ffi::c_void, himc: HIMC, pfdwconversion: *mut u32, pfdwsentence: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetConversionStatus(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pfdwconversion), core::mem::transmute_copy(&pfdwsentence)).into() } - unsafe extern "system" fn GetDefaultIMEWnd(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, phdefwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetDefaultIMEWnd(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, phdefwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::GetDefaultIMEWnd(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -504,59 +366,35 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescriptionA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PSTR, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetDescriptionA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PSTR, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetDescriptionA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&szdescription), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetDescriptionW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetDescriptionW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetDescriptionW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&szdescription), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetGuideLineA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PSTR, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetGuideLineA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PSTR, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetGuideLineA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwbuflen), core::mem::transmute_copy(&pbuf), core::mem::transmute_copy(&pdwresult)).into() } - unsafe extern "system" fn GetGuideLineW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PWSTR, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetGuideLineW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PWSTR, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetGuideLineW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwbuflen), core::mem::transmute_copy(&pbuf), core::mem::transmute_copy(&pdwresult)).into() } - unsafe extern "system" fn GetIMEFileNameA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PSTR, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetIMEFileNameA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PSTR, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetIMEFileNameA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&szfilename), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetIMEFileNameW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetIMEFileNameW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetIMEFileNameW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&szfilename), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetOpenStatus(this, core::mem::transmute_copy(&himc)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, fdwindex: u32, pdwproperty: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, fdwindex: u32, pdwproperty: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::GetProperty(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&fdwindex)) { Ok(ok__) => { @@ -566,24 +404,15 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRegisterWordStyleA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFA, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetRegisterWordStyleA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFA, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetRegisterWordStyleA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&nitem), core::mem::transmute_copy(&pstylebuf), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetRegisterWordStyleW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFW, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetRegisterWordStyleW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFW, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetRegisterWordStyleW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&nitem), core::mem::transmute_copy(&pstylebuf), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetStatusWindowPos(this: *mut core::ffi::c_void, himc: HIMC, pptpos: *mut super::super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetStatusWindowPos(this: *mut core::ffi::c_void, himc: HIMC, pptpos: *mut super::super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::GetStatusWindowPos(this, core::mem::transmute_copy(&himc)) { Ok(ok__) => { @@ -593,10 +422,7 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVirtualKey(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, puvirtualkey: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetVirtualKey(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, puvirtualkey: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::GetVirtualKey(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -606,10 +432,7 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallIMEA(this: *mut core::ffi::c_void, szimefilename: windows_core::PCSTR, szlayouttext: windows_core::PCSTR, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn InstallIMEA(this: *mut core::ffi::c_void, szimefilename: windows_core::PCSTR, szlayouttext: windows_core::PCSTR, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::InstallIMEA(this, core::mem::transmute(&szimefilename), core::mem::transmute(&szlayouttext)) { Ok(ok__) => { @@ -619,10 +442,7 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallIMEW(this: *mut core::ffi::c_void, szimefilename: windows_core::PCWSTR, szlayouttext: windows_core::PCWSTR, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn InstallIMEW(this: *mut core::ffi::c_void, szimefilename: windows_core::PCWSTR, szlayouttext: windows_core::PCWSTR, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::InstallIMEW(this, core::mem::transmute(&szimefilename), core::mem::transmute(&szlayouttext)) { Ok(ok__) => { @@ -632,157 +452,91 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsIME(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn IsIME(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::IsIME(this, core::mem::transmute_copy(&hkl)).into() } - unsafe extern "system" fn IsUIMessageA(this: *mut core::ffi::c_void, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn IsUIMessageA(this: *mut core::ffi::c_void, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::IsUIMessageA(this, core::mem::transmute_copy(&hwndime), core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn IsUIMessageW(this: *mut core::ffi::c_void, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn IsUIMessageW(this: *mut core::ffi::c_void, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::IsUIMessageW(this, core::mem::transmute_copy(&hwndime), core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn NotifyIME(this: *mut core::ffi::c_void, himc: HIMC, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn NotifyIME(this: *mut core::ffi::c_void, himc: HIMC, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::NotifyIME(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwvalue)).into() } - unsafe extern "system" fn RegisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szregister: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn RegisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szregister: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::RegisterWordA(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szregister)).into() } - unsafe extern "system" fn RegisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szregister: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn RegisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szregister: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::RegisterWordW(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szregister)).into() } - unsafe extern "system" fn ReleaseContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, himc: HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn ReleaseContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, himc: HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::ReleaseContext(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&himc)).into() } - unsafe extern "system" fn SetCandidateWindow(this: *mut core::ffi::c_void, himc: HIMC, pcandidate: *const CANDIDATEFORM) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn SetCandidateWindow(this: *mut core::ffi::c_void, himc: HIMC, pcandidate: *const CANDIDATEFORM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SetCandidateWindow(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pcandidate)).into() } - unsafe extern "system" fn SetCompositionFontA(this: *mut core::ffi::c_void, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn SetCompositionFontA(this: *mut core::ffi::c_void, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SetCompositionFontA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&plf)).into() } - unsafe extern "system" fn SetCompositionFontW(this: *mut core::ffi::c_void, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn SetCompositionFontW(this: *mut core::ffi::c_void, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SetCompositionFontW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&plf)).into() } - unsafe extern "system" fn SetCompositionStringA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn SetCompositionStringA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SetCompositionStringA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pcomp), core::mem::transmute_copy(&dwcomplen), core::mem::transmute_copy(&pread), core::mem::transmute_copy(&dwreadlen)).into() } - unsafe extern "system" fn SetCompositionStringW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn SetCompositionStringW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SetCompositionStringW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pcomp), core::mem::transmute_copy(&dwcomplen), core::mem::transmute_copy(&pread), core::mem::transmute_copy(&dwreadlen)).into() } - unsafe extern "system" fn SetCompositionWindow(this: *mut core::ffi::c_void, himc: HIMC, pcompform: *const COMPOSITIONFORM) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn SetCompositionWindow(this: *mut core::ffi::c_void, himc: HIMC, pcompform: *const COMPOSITIONFORM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SetCompositionWindow(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pcompform)).into() } - unsafe extern "system" fn SetConversionStatus(this: *mut core::ffi::c_void, himc: HIMC, fdwconversion: u32, fdwsentence: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn SetConversionStatus(this: *mut core::ffi::c_void, himc: HIMC, fdwconversion: u32, fdwsentence: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SetConversionStatus(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fdwconversion), core::mem::transmute_copy(&fdwsentence)).into() } - unsafe extern "system" fn SetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC, fopen: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn SetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC, fopen: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SetOpenStatus(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fopen)).into() } - unsafe extern "system" fn SetStatusWindowPos(this: *mut core::ffi::c_void, himc: HIMC, pptpos: *const super::super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn SetStatusWindowPos(this: *mut core::ffi::c_void, himc: HIMC, pptpos: *const super::super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SetStatusWindowPos(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pptpos)).into() } - unsafe extern "system" fn SimulateHotKey(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, dwhotkeyid: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn SimulateHotKey(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, dwhotkeyid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SimulateHotKey(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwhotkeyid)).into() } - unsafe extern "system" fn UnregisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szunregister: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn UnregisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szunregister: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::UnregisterWordA(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szunregister)).into() } - unsafe extern "system" fn UnregisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szunregister: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn UnregisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szunregister: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::UnregisterWordW(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szunregister)).into() } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, frestorelayout: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, frestorelayout: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::Activate(this, core::mem::transmute_copy(&frestorelayout)).into() } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::Deactivate(this).into() } - unsafe extern "system" fn OnDefWindowProc(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn OnDefWindowProc(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::OnDefWindowProc(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -792,17 +546,11 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FilterClientWindows(this: *mut core::ffi::c_void, aaclasslist: *const u16, usize: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn FilterClientWindows(this: *mut core::ffi::c_void, aaclasslist: *const u16, usize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::FilterClientWindows(this, core::mem::transmute_copy(&aaclasslist), core::mem::transmute_copy(&usize)).into() } - unsafe extern "system" fn GetCodePageA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ucodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetCodePageA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ucodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::GetCodePageA(this, core::mem::transmute_copy(&hkl)) { Ok(ok__) => { @@ -812,10 +560,7 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLangId(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, plid: *mut u16) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetLangId(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, plid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::GetLangId(this, core::mem::transmute_copy(&hkl)) { Ok(ok__) => { @@ -825,38 +570,23 @@ impl IActiveIMMApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AssociateContextEx(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, himc: HIMC, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn AssociateContextEx(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, himc: HIMC, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::AssociateContextEx(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn DisableIME(this: *mut core::ffi::c_void, idthread: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn DisableIME(this: *mut core::ffi::c_void, idthread: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::DisableIME(this, core::mem::transmute_copy(&idthread)).into() } - unsafe extern "system" fn GetImeMenuItemsA(this: *mut core::ffi::c_void, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOA, pimemenu: *mut IMEMENUITEMINFOA, dwsize: u32, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetImeMenuItemsA(this: *mut core::ffi::c_void, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOA, pimemenu: *mut IMEMENUITEMINFOA, dwsize: u32, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetImeMenuItemsA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&pimeparentmenu), core::mem::transmute_copy(&pimemenu), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwresult)).into() } - unsafe extern "system" fn GetImeMenuItemsW(this: *mut core::ffi::c_void, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOW, pimemenu: *mut IMEMENUITEMINFOW, dwsize: u32, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn GetImeMenuItemsW(this: *mut core::ffi::c_void, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOW, pimemenu: *mut IMEMENUITEMINFOW, dwsize: u32, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::GetImeMenuItemsW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&pimeparentmenu), core::mem::transmute_copy(&pimemenu), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwresult)).into() } - unsafe extern "system" fn EnumInputContext(this: *mut core::ffi::c_void, idthread: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMApp_Impl, - { + unsafe extern "system" fn EnumInputContext(this: *mut core::ffi::c_void, idthread: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMApp_Impl::EnumInputContext(this, core::mem::transmute_copy(&idthread)) { Ok(ok__) => { @@ -943,7 +673,7 @@ impl IActiveIMMApp_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Input_KeyboardAndMouse"))] -pub trait IActiveIMMIME_Impl: Sized { +pub trait IActiveIMMIME_Impl: Sized + windows_core::IUnknownImpl { fn AssociateContext(&self, hwnd: super::super::super::Foundation::HWND, hime: HIMC) -> windows_core::Result; fn ConfigureIMEA(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDA) -> windows_core::Result<()>; fn ConfigureIMEW(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDW) -> windows_core::Result<()>; @@ -1037,14 +767,8 @@ pub trait IActiveIMMIME_Impl: Sized { impl windows_core::RuntimeName for IActiveIMMIME {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Input_KeyboardAndMouse"))] impl IActiveIMMIME_Vtbl { - pub const fn new() -> IActiveIMMIME_Vtbl - where - Identity: IActiveIMMIME_Impl, - { - unsafe extern "system" fn AssociateContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, hime: HIMC, phprev: *mut HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + pub const fn new() -> IActiveIMMIME_Vtbl { + unsafe extern "system" fn AssociateContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, hime: HIMC, phprev: *mut HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::AssociateContext(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&hime)) { Ok(ok__) => { @@ -1054,24 +778,15 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConfigureIMEA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDA) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn ConfigureIMEA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::ConfigureIMEA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn ConfigureIMEW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDW) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn ConfigureIMEW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pdata: *const REGISTERWORDW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::ConfigureIMEW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwmode), core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn CreateContext(this: *mut core::ffi::c_void, phimc: *mut HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn CreateContext(this: *mut core::ffi::c_void, phimc: *mut HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::CreateContext(this) { Ok(ok__) => { @@ -1081,17 +796,11 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestroyContext(this: *mut core::ffi::c_void, hime: HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn DestroyContext(this: *mut core::ffi::c_void, hime: HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::DestroyContext(this, core::mem::transmute_copy(&hime)).into() } - unsafe extern "system" fn EnumRegisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szregister: windows_core::PCSTR, pdata: *const core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn EnumRegisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szregister: windows_core::PCSTR, pdata: *const core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::EnumRegisterWordA(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szregister), core::mem::transmute_copy(&pdata)) { Ok(ok__) => { @@ -1101,10 +810,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumRegisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szregister: windows_core::PCWSTR, pdata: *const core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn EnumRegisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szregister: windows_core::PCWSTR, pdata: *const core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::EnumRegisterWordW(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szregister), core::mem::transmute_copy(&pdata)) { Ok(ok__) => { @@ -1114,94 +820,55 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EscapeA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn EscapeA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::EscapeA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&himc), core::mem::transmute_copy(&uescape), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&plresult)).into() } - unsafe extern "system" fn EscapeW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn EscapeW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::EscapeW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&himc), core::mem::transmute_copy(&uescape), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&plresult)).into() } - unsafe extern "system" fn GetCandidateListA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCandidateListA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetCandidateListA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&pcandlist), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetCandidateListW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCandidateListW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, ubuflen: u32, pcandlist: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetCandidateListW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&pcandlist), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetCandidateListCountA(this: *mut core::ffi::c_void, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCandidateListCountA(this: *mut core::ffi::c_void, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetCandidateListCountA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pdwlistsize), core::mem::transmute_copy(&pdwbuflen)).into() } - unsafe extern "system" fn GetCandidateListCountW(this: *mut core::ffi::c_void, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCandidateListCountW(this: *mut core::ffi::c_void, himc: HIMC, pdwlistsize: *mut u32, pdwbuflen: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetCandidateListCountW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pdwlistsize), core::mem::transmute_copy(&pdwbuflen)).into() } - unsafe extern "system" fn GetCandidateWindow(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcandidate: *mut CANDIDATEFORM) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCandidateWindow(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcandidate: *mut CANDIDATEFORM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetCandidateWindow(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pcandidate)).into() } - unsafe extern "system" fn GetCompositionFontA(this: *mut core::ffi::c_void, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCompositionFontA(this: *mut core::ffi::c_void, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetCompositionFontA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&plf)).into() } - unsafe extern "system" fn GetCompositionFontW(this: *mut core::ffi::c_void, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCompositionFontW(this: *mut core::ffi::c_void, himc: HIMC, plf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetCompositionFontW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&plf)).into() } - unsafe extern "system" fn GetCompositionStringA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCompositionStringA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetCompositionStringA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwbuflen), core::mem::transmute_copy(&plcopied), core::mem::transmute_copy(&pbuf)).into() } - unsafe extern "system" fn GetCompositionStringW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCompositionStringW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, plcopied: *mut i32, pbuf: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetCompositionStringW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwbuflen), core::mem::transmute_copy(&plcopied), core::mem::transmute_copy(&pbuf)).into() } - unsafe extern "system" fn GetCompositionWindow(this: *mut core::ffi::c_void, himc: HIMC, pcompform: *mut COMPOSITIONFORM) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCompositionWindow(this: *mut core::ffi::c_void, himc: HIMC, pcompform: *mut COMPOSITIONFORM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetCompositionWindow(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pcompform)).into() } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, phimc: *mut HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, phimc: *mut HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::GetContext(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -1211,31 +878,19 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConversionListA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: windows_core::PCSTR, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetConversionListA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: windows_core::PCSTR, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetConversionListA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&himc), core::mem::transmute(&psrc), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&uflag), core::mem::transmute_copy(&pdst), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetConversionListW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: windows_core::PCWSTR, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetConversionListW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, himc: HIMC, psrc: windows_core::PCWSTR, ubuflen: u32, uflag: u32, pdst: *mut CANDIDATELIST, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetConversionListW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&himc), core::mem::transmute(&psrc), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&uflag), core::mem::transmute_copy(&pdst), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetConversionStatus(this: *mut core::ffi::c_void, himc: HIMC, pfdwconversion: *mut u32, pfdwsentence: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetConversionStatus(this: *mut core::ffi::c_void, himc: HIMC, pfdwconversion: *mut u32, pfdwsentence: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetConversionStatus(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pfdwconversion), core::mem::transmute_copy(&pfdwsentence)).into() } - unsafe extern "system" fn GetDefaultIMEWnd(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, phdefwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetDefaultIMEWnd(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, phdefwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::GetDefaultIMEWnd(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -1245,59 +900,35 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescriptionA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PSTR, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetDescriptionA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PSTR, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetDescriptionA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&szdescription), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetDescriptionW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetDescriptionW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szdescription: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetDescriptionW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&szdescription), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetGuideLineA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PSTR, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetGuideLineA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PSTR, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetGuideLineA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwbuflen), core::mem::transmute_copy(&pbuf), core::mem::transmute_copy(&pdwresult)).into() } - unsafe extern "system" fn GetGuideLineW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PWSTR, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetGuideLineW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, dwbuflen: u32, pbuf: windows_core::PWSTR, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetGuideLineW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwbuflen), core::mem::transmute_copy(&pbuf), core::mem::transmute_copy(&pdwresult)).into() } - unsafe extern "system" fn GetIMEFileNameA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PSTR, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetIMEFileNameA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PSTR, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetIMEFileNameA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&szfilename), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetIMEFileNameW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetIMEFileNameW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ubuflen: u32, szfilename: windows_core::PWSTR, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetIMEFileNameW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&ubuflen), core::mem::transmute_copy(&szfilename), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetOpenStatus(this, core::mem::transmute_copy(&himc)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, fdwindex: u32, pdwproperty: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, fdwindex: u32, pdwproperty: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::GetProperty(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&fdwindex)) { Ok(ok__) => { @@ -1307,24 +938,15 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRegisterWordStyleA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFA, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetRegisterWordStyleA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFA, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetRegisterWordStyleA(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&nitem), core::mem::transmute_copy(&pstylebuf), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetRegisterWordStyleW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFW, pucopied: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetRegisterWordStyleW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, nitem: u32, pstylebuf: *mut STYLEBUFW, pucopied: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetRegisterWordStyleW(this, core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&nitem), core::mem::transmute_copy(&pstylebuf), core::mem::transmute_copy(&pucopied)).into() } - unsafe extern "system" fn GetStatusWindowPos(this: *mut core::ffi::c_void, himc: HIMC, pptpos: *mut super::super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetStatusWindowPos(this: *mut core::ffi::c_void, himc: HIMC, pptpos: *mut super::super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::GetStatusWindowPos(this, core::mem::transmute_copy(&himc)) { Ok(ok__) => { @@ -1334,10 +956,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVirtualKey(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, puvirtualkey: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetVirtualKey(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, puvirtualkey: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::GetVirtualKey(this, core::mem::transmute_copy(&hwnd)) { Ok(ok__) => { @@ -1347,10 +966,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallIMEA(this: *mut core::ffi::c_void, szimefilename: windows_core::PCSTR, szlayouttext: windows_core::PCSTR, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn InstallIMEA(this: *mut core::ffi::c_void, szimefilename: windows_core::PCSTR, szlayouttext: windows_core::PCSTR, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::InstallIMEA(this, core::mem::transmute(&szimefilename), core::mem::transmute(&szlayouttext)) { Ok(ok__) => { @@ -1360,10 +976,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InstallIMEW(this: *mut core::ffi::c_void, szimefilename: windows_core::PCWSTR, szlayouttext: windows_core::PCWSTR, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn InstallIMEW(this: *mut core::ffi::c_void, szimefilename: windows_core::PCWSTR, szlayouttext: windows_core::PCWSTR, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::InstallIMEW(this, core::mem::transmute(&szimefilename), core::mem::transmute(&szlayouttext)) { Ok(ok__) => { @@ -1373,150 +986,87 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsIME(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn IsIME(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::IsIME(this, core::mem::transmute_copy(&hkl)).into() } - unsafe extern "system" fn IsUIMessageA(this: *mut core::ffi::c_void, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn IsUIMessageA(this: *mut core::ffi::c_void, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::IsUIMessageA(this, core::mem::transmute_copy(&hwndime), core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn IsUIMessageW(this: *mut core::ffi::c_void, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn IsUIMessageW(this: *mut core::ffi::c_void, hwndime: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::IsUIMessageW(this, core::mem::transmute_copy(&hwndime), core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn NotifyIME(this: *mut core::ffi::c_void, himc: HIMC, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn NotifyIME(this: *mut core::ffi::c_void, himc: HIMC, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::NotifyIME(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwvalue)).into() } - unsafe extern "system" fn RegisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szregister: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn RegisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szregister: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::RegisterWordA(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szregister)).into() } - unsafe extern "system" fn RegisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szregister: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn RegisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szregister: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::RegisterWordW(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szregister)).into() } - unsafe extern "system" fn ReleaseContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, himc: HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn ReleaseContext(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, himc: HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::ReleaseContext(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&himc)).into() } - unsafe extern "system" fn SetCandidateWindow(this: *mut core::ffi::c_void, himc: HIMC, pcandidate: *const CANDIDATEFORM) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SetCandidateWindow(this: *mut core::ffi::c_void, himc: HIMC, pcandidate: *const CANDIDATEFORM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetCandidateWindow(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pcandidate)).into() } - unsafe extern "system" fn SetCompositionFontA(this: *mut core::ffi::c_void, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SetCompositionFontA(this: *mut core::ffi::c_void, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetCompositionFontA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&plf)).into() } - unsafe extern "system" fn SetCompositionFontW(this: *mut core::ffi::c_void, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SetCompositionFontW(this: *mut core::ffi::c_void, himc: HIMC, plf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetCompositionFontW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&plf)).into() } - unsafe extern "system" fn SetCompositionStringA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SetCompositionStringA(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetCompositionStringA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pcomp), core::mem::transmute_copy(&dwcomplen), core::mem::transmute_copy(&pread), core::mem::transmute_copy(&dwreadlen)).into() } - unsafe extern "system" fn SetCompositionStringW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SetCompositionStringW(this: *mut core::ffi::c_void, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetCompositionStringW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pcomp), core::mem::transmute_copy(&dwcomplen), core::mem::transmute_copy(&pread), core::mem::transmute_copy(&dwreadlen)).into() } - unsafe extern "system" fn SetCompositionWindow(this: *mut core::ffi::c_void, himc: HIMC, pcompform: *const COMPOSITIONFORM) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SetCompositionWindow(this: *mut core::ffi::c_void, himc: HIMC, pcompform: *const COMPOSITIONFORM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetCompositionWindow(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pcompform)).into() } - unsafe extern "system" fn SetConversionStatus(this: *mut core::ffi::c_void, himc: HIMC, fdwconversion: u32, fdwsentence: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SetConversionStatus(this: *mut core::ffi::c_void, himc: HIMC, fdwconversion: u32, fdwsentence: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetConversionStatus(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fdwconversion), core::mem::transmute_copy(&fdwsentence)).into() } - unsafe extern "system" fn SetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC, fopen: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC, fopen: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetOpenStatus(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fopen)).into() } - unsafe extern "system" fn SetStatusWindowPos(this: *mut core::ffi::c_void, himc: HIMC, pptpos: *const super::super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SetStatusWindowPos(this: *mut core::ffi::c_void, himc: HIMC, pptpos: *const super::super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetStatusWindowPos(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&pptpos)).into() } - unsafe extern "system" fn SimulateHotKey(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, dwhotkeyid: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SimulateHotKey(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, dwhotkeyid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SimulateHotKey(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwhotkeyid)).into() } - unsafe extern "system" fn UnregisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szunregister: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn UnregisterWordA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCSTR, dwstyle: u32, szunregister: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::UnregisterWordA(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szunregister)).into() } - unsafe extern "system" fn UnregisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szunregister: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn UnregisterWordW(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, szreading: windows_core::PCWSTR, dwstyle: u32, szunregister: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::UnregisterWordW(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szunregister)).into() } - unsafe extern "system" fn GenerateMessage(this: *mut core::ffi::c_void, himc: HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GenerateMessage(this: *mut core::ffi::c_void, himc: HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GenerateMessage(this, core::mem::transmute_copy(&himc)).into() } - unsafe extern "system" fn LockIMC(this: *mut core::ffi::c_void, himc: HIMC, ppimc: *mut *mut INPUTCONTEXT) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn LockIMC(this: *mut core::ffi::c_void, himc: HIMC, ppimc: *mut *mut INPUTCONTEXT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::LockIMC(this, core::mem::transmute_copy(&himc)) { Ok(ok__) => { @@ -1526,17 +1076,11 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnlockIMC(this: *mut core::ffi::c_void, himc: HIMC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn UnlockIMC(this: *mut core::ffi::c_void, himc: HIMC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::UnlockIMC(this, core::mem::transmute_copy(&himc)).into() } - unsafe extern "system" fn GetIMCLockCount(this: *mut core::ffi::c_void, himc: HIMC, pdwlockcount: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetIMCLockCount(this: *mut core::ffi::c_void, himc: HIMC, pdwlockcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::GetIMCLockCount(this, core::mem::transmute_copy(&himc)) { Ok(ok__) => { @@ -1546,10 +1090,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateIMCC(this: *mut core::ffi::c_void, dwsize: u32, phimcc: *mut HIMCC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn CreateIMCC(this: *mut core::ffi::c_void, dwsize: u32, phimcc: *mut HIMCC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::CreateIMCC(this, core::mem::transmute_copy(&dwsize)) { Ok(ok__) => { @@ -1559,31 +1100,19 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestroyIMCC(this: *mut core::ffi::c_void, himcc: HIMCC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn DestroyIMCC(this: *mut core::ffi::c_void, himcc: HIMCC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::DestroyIMCC(this, core::mem::transmute_copy(&himcc)).into() } - unsafe extern "system" fn LockIMCC(this: *mut core::ffi::c_void, himcc: HIMCC, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn LockIMCC(this: *mut core::ffi::c_void, himcc: HIMCC, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::LockIMCC(this, core::mem::transmute_copy(&himcc), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn UnlockIMCC(this: *mut core::ffi::c_void, himcc: HIMCC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn UnlockIMCC(this: *mut core::ffi::c_void, himcc: HIMCC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::UnlockIMCC(this, core::mem::transmute_copy(&himcc)).into() } - unsafe extern "system" fn ReSizeIMCC(this: *mut core::ffi::c_void, himcc: HIMCC, dwsize: u32, phimcc: *mut HIMCC) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn ReSizeIMCC(this: *mut core::ffi::c_void, himcc: HIMCC, dwsize: u32, phimcc: *mut HIMCC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::ReSizeIMCC(this, core::mem::transmute_copy(&himcc), core::mem::transmute_copy(&dwsize)) { Ok(ok__) => { @@ -1593,10 +1122,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIMCCSize(this: *mut core::ffi::c_void, himcc: HIMCC, pdwsize: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetIMCCSize(this: *mut core::ffi::c_void, himcc: HIMCC, pdwsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::GetIMCCSize(this, core::mem::transmute_copy(&himcc)) { Ok(ok__) => { @@ -1606,10 +1132,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIMCCLockCount(this: *mut core::ffi::c_void, himcc: HIMCC, pdwlockcount: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetIMCCLockCount(this: *mut core::ffi::c_void, himcc: HIMCC, pdwlockcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::GetIMCCLockCount(this, core::mem::transmute_copy(&himcc)) { Ok(ok__) => { @@ -1619,24 +1142,15 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHotKey(this: *mut core::ffi::c_void, dwhotkeyid: u32, pumodifiers: *mut u32, puvkey: *mut u32, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetHotKey(this: *mut core::ffi::c_void, dwhotkeyid: u32, pumodifiers: *mut u32, puvkey: *mut u32, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetHotKey(this, core::mem::transmute_copy(&dwhotkeyid), core::mem::transmute_copy(&pumodifiers), core::mem::transmute_copy(&puvkey), core::mem::transmute_copy(&phkl)).into() } - unsafe extern "system" fn SetHotKey(this: *mut core::ffi::c_void, dwhotkeyid: u32, umodifiers: u32, uvkey: u32, hkl: super::KeyboardAndMouse::HKL) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SetHotKey(this: *mut core::ffi::c_void, dwhotkeyid: u32, umodifiers: u32, uvkey: u32, hkl: super::KeyboardAndMouse::HKL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetHotKey(this, core::mem::transmute_copy(&dwhotkeyid), core::mem::transmute_copy(&umodifiers), core::mem::transmute_copy(&uvkey), core::mem::transmute_copy(&hkl)).into() } - unsafe extern "system" fn CreateSoftKeyboard(this: *mut core::ffi::c_void, utype: u32, howner: super::super::super::Foundation::HWND, x: i32, y: i32, phsoftkbdwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn CreateSoftKeyboard(this: *mut core::ffi::c_void, utype: u32, howner: super::super::super::Foundation::HWND, x: i32, y: i32, phsoftkbdwnd: *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::CreateSoftKeyboard(this, core::mem::transmute_copy(&utype), core::mem::transmute_copy(&howner), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)) { Ok(ok__) => { @@ -1646,24 +1160,15 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestroySoftKeyboard(this: *mut core::ffi::c_void, hsoftkbdwnd: super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn DestroySoftKeyboard(this: *mut core::ffi::c_void, hsoftkbdwnd: super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::DestroySoftKeyboard(this, core::mem::transmute_copy(&hsoftkbdwnd)).into() } - unsafe extern "system" fn ShowSoftKeyboard(this: *mut core::ffi::c_void, hsoftkbdwnd: super::super::super::Foundation::HWND, ncmdshow: i32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn ShowSoftKeyboard(this: *mut core::ffi::c_void, hsoftkbdwnd: super::super::super::Foundation::HWND, ncmdshow: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::ShowSoftKeyboard(this, core::mem::transmute_copy(&hsoftkbdwnd), core::mem::transmute_copy(&ncmdshow)).into() } - unsafe extern "system" fn GetCodePageA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ucodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetCodePageA(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, ucodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::GetCodePageA(this, core::mem::transmute_copy(&hkl)) { Ok(ok__) => { @@ -1673,10 +1178,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLangId(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, plid: *mut u16) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetLangId(this: *mut core::ffi::c_void, hkl: super::KeyboardAndMouse::HKL, plid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::GetLangId(this, core::mem::transmute_copy(&hkl)) { Ok(ok__) => { @@ -1686,59 +1188,35 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeybdEvent(this: *mut core::ffi::c_void, lgidime: u16, bvk: u8, bscan: u8, dwflags: u32, dwextrainfo: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn KeybdEvent(this: *mut core::ffi::c_void, lgidime: u16, bvk: u8, bscan: u8, dwflags: u32, dwextrainfo: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::KeybdEvent(this, core::mem::transmute_copy(&lgidime), core::mem::transmute_copy(&bvk), core::mem::transmute_copy(&bscan), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwextrainfo)).into() } - unsafe extern "system" fn LockModal(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn LockModal(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::LockModal(this).into() } - unsafe extern "system" fn UnlockModal(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn UnlockModal(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::UnlockModal(this).into() } - unsafe extern "system" fn AssociateContextEx(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, himc: HIMC, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn AssociateContextEx(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, himc: HIMC, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::AssociateContextEx(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn DisableIME(this: *mut core::ffi::c_void, idthread: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn DisableIME(this: *mut core::ffi::c_void, idthread: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::DisableIME(this, core::mem::transmute_copy(&idthread)).into() } - unsafe extern "system" fn GetImeMenuItemsA(this: *mut core::ffi::c_void, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOA, pimemenu: *mut IMEMENUITEMINFOA, dwsize: u32, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetImeMenuItemsA(this: *mut core::ffi::c_void, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOA, pimemenu: *mut IMEMENUITEMINFOA, dwsize: u32, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetImeMenuItemsA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&pimeparentmenu), core::mem::transmute_copy(&pimemenu), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwresult)).into() } - unsafe extern "system" fn GetImeMenuItemsW(this: *mut core::ffi::c_void, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOW, pimemenu: *mut IMEMENUITEMINFOW, dwsize: u32, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn GetImeMenuItemsW(this: *mut core::ffi::c_void, himc: HIMC, dwflags: u32, dwtype: u32, pimeparentmenu: *const IMEMENUITEMINFOW, pimemenu: *mut IMEMENUITEMINFOW, dwsize: u32, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::GetImeMenuItemsW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&pimeparentmenu), core::mem::transmute_copy(&pimemenu), core::mem::transmute_copy(&dwsize), core::mem::transmute_copy(&pdwresult)).into() } - unsafe extern "system" fn EnumInputContext(this: *mut core::ffi::c_void, idthread: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn EnumInputContext(this: *mut core::ffi::c_void, idthread: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::EnumInputContext(this, core::mem::transmute_copy(&idthread)) { Ok(ok__) => { @@ -1748,10 +1226,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestMessageA(this: *mut core::ffi::c_void, himc: HIMC, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn RequestMessageA(this: *mut core::ffi::c_void, himc: HIMC, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::RequestMessageA(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -1761,10 +1236,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestMessageW(this: *mut core::ffi::c_void, himc: HIMC, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn RequestMessageW(this: *mut core::ffi::c_void, himc: HIMC, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::RequestMessageW(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -1774,10 +1246,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendIMCA(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SendIMCA(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::SendIMCA(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -1787,10 +1256,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendIMCW(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn SendIMCW(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMIME_Impl::SendIMCW(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -1800,10 +1266,7 @@ impl IActiveIMMIME_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSleeping(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMIME_Impl, - { + unsafe extern "system" fn IsSleeping(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::IsSleeping(this).into() } @@ -1904,7 +1367,7 @@ impl IActiveIMMIME_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IActiveIMMMessagePumpOwner_Impl: Sized { +pub trait IActiveIMMMessagePumpOwner_Impl: Sized + windows_core::IUnknownImpl { fn Start(&self) -> windows_core::Result<()>; fn End(&self) -> windows_core::Result<()>; fn OnTranslateMessage(&self, pmsg: *const super::super::WindowsAndMessaging::MSG) -> windows_core::Result<()>; @@ -1915,35 +1378,20 @@ pub trait IActiveIMMMessagePumpOwner_Impl: Sized { impl windows_core::RuntimeName for IActiveIMMMessagePumpOwner {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IActiveIMMMessagePumpOwner_Vtbl { - pub const fn new() -> IActiveIMMMessagePumpOwner_Vtbl - where - Identity: IActiveIMMMessagePumpOwner_Impl, - { - unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMMessagePumpOwner_Impl, - { + pub const fn new() -> IActiveIMMMessagePumpOwner_Vtbl { + unsafe extern "system" fn Start(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMMessagePumpOwner_Impl::Start(this).into() } - unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveIMMMessagePumpOwner_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMMessagePumpOwner_Impl::End(this).into() } - unsafe extern "system" fn OnTranslateMessage(this: *mut core::ffi::c_void, pmsg: *const super::super::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IActiveIMMMessagePumpOwner_Impl, - { + unsafe extern "system" fn OnTranslateMessage(this: *mut core::ffi::c_void, pmsg: *const super::super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMMessagePumpOwner_Impl::OnTranslateMessage(this, core::mem::transmute_copy(&pmsg)).into() } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IActiveIMMMessagePumpOwner_Impl, - { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveIMMMessagePumpOwner_Impl::Pause(this) { Ok(ok__) => { @@ -1953,10 +1401,7 @@ impl IActiveIMMMessagePumpOwner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IActiveIMMMessagePumpOwner_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMMessagePumpOwner_Impl::Resume(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -1973,27 +1418,18 @@ impl IActiveIMMMessagePumpOwner_Vtbl { iid == &::IID } } -pub trait IActiveIMMRegistrar_Impl: Sized { +pub trait IActiveIMMRegistrar_Impl: Sized + windows_core::IUnknownImpl { fn RegisterIME(&self, rclsid: *const windows_core::GUID, lgid: u16, psziconfile: &windows_core::PCWSTR, pszdesc: &windows_core::PCWSTR) -> windows_core::Result<()>; fn UnregisterIME(&self, rclsid: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveIMMRegistrar {} impl IActiveIMMRegistrar_Vtbl { - pub const fn new() -> IActiveIMMRegistrar_Vtbl - where - Identity: IActiveIMMRegistrar_Impl, - { - unsafe extern "system" fn RegisterIME(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, lgid: u16, psziconfile: windows_core::PCWSTR, pszdesc: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IActiveIMMRegistrar_Impl, - { + pub const fn new() -> IActiveIMMRegistrar_Vtbl { + unsafe extern "system" fn RegisterIME(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, lgid: u16, psziconfile: windows_core::PCWSTR, pszdesc: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMRegistrar_Impl::RegisterIME(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&lgid), core::mem::transmute(&psziconfile), core::mem::transmute(&pszdesc)).into() } - unsafe extern "system" fn UnregisterIME(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IActiveIMMRegistrar_Impl, - { + unsafe extern "system" fn UnregisterIME(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMRegistrar_Impl::UnregisterIME(this, core::mem::transmute_copy(&rclsid)).into() } @@ -2007,7 +1443,7 @@ impl IActiveIMMRegistrar_Vtbl { iid == &::IID } } -pub trait IEnumInputContext_Impl: Sized { +pub trait IEnumInputContext_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, rginputcontext: *mut HIMC, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2015,14 +1451,8 @@ pub trait IEnumInputContext_Impl: Sized { } impl windows_core::RuntimeName for IEnumInputContext {} impl IEnumInputContext_Vtbl { - pub const fn new() -> IEnumInputContext_Vtbl - where - Identity: IEnumInputContext_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumInputContext_Impl, - { + pub const fn new() -> IEnumInputContext_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumInputContext_Impl::Clone(this) { Ok(ok__) => { @@ -2032,24 +1462,15 @@ impl IEnumInputContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rginputcontext: *mut HIMC, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumInputContext_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rginputcontext: *mut HIMC, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumInputContext_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&rginputcontext), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumInputContext_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumInputContext_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumInputContext_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumInputContext_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -2065,7 +1486,7 @@ impl IEnumInputContext_Vtbl { iid == &::IID } } -pub trait IEnumRegisterWordA_Impl: Sized { +pub trait IEnumRegisterWordA_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, rgregisterword: *mut REGISTERWORDA, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2073,14 +1494,8 @@ pub trait IEnumRegisterWordA_Impl: Sized { } impl windows_core::RuntimeName for IEnumRegisterWordA {} impl IEnumRegisterWordA_Vtbl { - pub const fn new() -> IEnumRegisterWordA_Vtbl - where - Identity: IEnumRegisterWordA_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRegisterWordA_Impl, - { + pub const fn new() -> IEnumRegisterWordA_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumRegisterWordA_Impl::Clone(this) { Ok(ok__) => { @@ -2090,24 +1505,15 @@ impl IEnumRegisterWordA_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgregisterword: *mut REGISTERWORDA, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumRegisterWordA_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgregisterword: *mut REGISTERWORDA, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRegisterWordA_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&rgregisterword), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRegisterWordA_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRegisterWordA_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumRegisterWordA_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRegisterWordA_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -2123,7 +1529,7 @@ impl IEnumRegisterWordA_Vtbl { iid == &::IID } } -pub trait IEnumRegisterWordW_Impl: Sized { +pub trait IEnumRegisterWordW_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, rgregisterword: *mut REGISTERWORDW, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -2131,14 +1537,8 @@ pub trait IEnumRegisterWordW_Impl: Sized { } impl windows_core::RuntimeName for IEnumRegisterWordW {} impl IEnumRegisterWordW_Vtbl { - pub const fn new() -> IEnumRegisterWordW_Vtbl - where - Identity: IEnumRegisterWordW_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRegisterWordW_Impl, - { + pub const fn new() -> IEnumRegisterWordW_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumRegisterWordW_Impl::Clone(this) { Ok(ok__) => { @@ -2148,24 +1548,15 @@ impl IEnumRegisterWordW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgregisterword: *mut REGISTERWORDW, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumRegisterWordW_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgregisterword: *mut REGISTERWORDW, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRegisterWordW_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&rgregisterword), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumRegisterWordW_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRegisterWordW_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumRegisterWordW_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumRegisterWordW_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -2187,17 +1578,14 @@ pub trait IFEClassFactory_Impl: Sized + super::super::super::System::Com::IClass impl windows_core::RuntimeName for IFEClassFactory {} #[cfg(feature = "Win32_System_Com")] impl IFEClassFactory_Vtbl { - pub const fn new() -> IFEClassFactory_Vtbl - where - Identity: IFEClassFactory_Impl, - { + pub const fn new() -> IFEClassFactory_Vtbl { Self { base__: super::super::super::System::Com::IClassFactory_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IFECommon_Impl: Sized { +pub trait IFECommon_Impl: Sized + windows_core::IUnknownImpl { fn IsDefaultIME(&self, szname: &windows_core::PCSTR, cszname: i32) -> windows_core::Result<()>; fn SetDefaultIME(&self) -> windows_core::Result<()>; fn InvokeWordRegDialog(&self, pimedlg: *mut IMEDLG) -> windows_core::Result<()>; @@ -2205,35 +1593,20 @@ pub trait IFECommon_Impl: Sized { } impl windows_core::RuntimeName for IFECommon {} impl IFECommon_Vtbl { - pub const fn new() -> IFECommon_Vtbl - where - Identity: IFECommon_Impl, - { - unsafe extern "system" fn IsDefaultIME(this: *mut core::ffi::c_void, szname: windows_core::PCSTR, cszname: i32) -> windows_core::HRESULT - where - Identity: IFECommon_Impl, - { + pub const fn new() -> IFECommon_Vtbl { + unsafe extern "system" fn IsDefaultIME(this: *mut core::ffi::c_void, szname: windows_core::PCSTR, cszname: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFECommon_Impl::IsDefaultIME(this, core::mem::transmute(&szname), core::mem::transmute_copy(&cszname)).into() } - unsafe extern "system" fn SetDefaultIME(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFECommon_Impl, - { + unsafe extern "system" fn SetDefaultIME(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFECommon_Impl::SetDefaultIME(this).into() } - unsafe extern "system" fn InvokeWordRegDialog(this: *mut core::ffi::c_void, pimedlg: *mut IMEDLG) -> windows_core::HRESULT - where - Identity: IFECommon_Impl, - { + unsafe extern "system" fn InvokeWordRegDialog(this: *mut core::ffi::c_void, pimedlg: *mut IMEDLG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFECommon_Impl::InvokeWordRegDialog(this, core::mem::transmute_copy(&pimedlg)).into() } - unsafe extern "system" fn InvokeDictToolDialog(this: *mut core::ffi::c_void, pimedlg: *mut IMEDLG) -> windows_core::HRESULT - where - Identity: IFECommon_Impl, - { + unsafe extern "system" fn InvokeDictToolDialog(this: *mut core::ffi::c_void, pimedlg: *mut IMEDLG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFECommon_Impl::InvokeDictToolDialog(this, core::mem::transmute_copy(&pimedlg)).into() } @@ -2249,7 +1622,7 @@ impl IFECommon_Vtbl { iid == &::IID } } -pub trait IFEDictionary_Impl: Sized { +pub trait IFEDictionary_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, pchdictpath: &windows_core::PSTR, pshf: *mut IMESHF) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn GetHeader(&self, pchdictpath: &windows_core::PSTR, pshf: *mut IMESHF, pjfmt: *mut IMEFMT, pultype: *mut u32) -> windows_core::Result<()>; @@ -2270,126 +1643,72 @@ pub trait IFEDictionary_Impl: Sized { } impl windows_core::RuntimeName for IFEDictionary {} impl IFEDictionary_Vtbl { - pub const fn new() -> IFEDictionary_Vtbl - where - Identity: IFEDictionary_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pchdictpath: windows_core::PSTR, pshf: *mut IMESHF) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + pub const fn new() -> IFEDictionary_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pchdictpath: windows_core::PSTR, pshf: *mut IMESHF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::Open(this, core::mem::transmute(&pchdictpath), core::mem::transmute_copy(&pshf)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::Close(this).into() } - unsafe extern "system" fn GetHeader(this: *mut core::ffi::c_void, pchdictpath: windows_core::PSTR, pshf: *mut IMESHF, pjfmt: *mut IMEFMT, pultype: *mut u32) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn GetHeader(this: *mut core::ffi::c_void, pchdictpath: windows_core::PSTR, pshf: *mut IMESHF, pjfmt: *mut IMEFMT, pultype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::GetHeader(this, core::mem::transmute(&pchdictpath), core::mem::transmute_copy(&pshf), core::mem::transmute_copy(&pjfmt), core::mem::transmute_copy(&pultype)).into() } - unsafe extern "system" fn DisplayProperty(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn DisplayProperty(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::DisplayProperty(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn GetPosTable(this: *mut core::ffi::c_void, prgpostbl: *mut *mut POSTBL, pcpostbl: *mut i32) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn GetPosTable(this: *mut core::ffi::c_void, prgpostbl: *mut *mut POSTBL, pcpostbl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::GetPosTable(this, core::mem::transmute_copy(&prgpostbl), core::mem::transmute_copy(&pcpostbl)).into() } - unsafe extern "system" fn GetWords(this: *mut core::ffi::c_void, pwchfirst: windows_core::PCWSTR, pwchlast: windows_core::PCWSTR, pwchdisplay: windows_core::PCWSTR, ulpos: u32, ulselect: u32, ulwordsrc: u32, pchbuffer: *mut u8, cbbuffer: u32, pcwrd: *mut u32) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn GetWords(this: *mut core::ffi::c_void, pwchfirst: windows_core::PCWSTR, pwchlast: windows_core::PCWSTR, pwchdisplay: windows_core::PCWSTR, ulpos: u32, ulselect: u32, ulwordsrc: u32, pchbuffer: *mut u8, cbbuffer: u32, pcwrd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::GetWords(this, core::mem::transmute(&pwchfirst), core::mem::transmute(&pwchlast), core::mem::transmute(&pwchdisplay), core::mem::transmute_copy(&ulpos), core::mem::transmute_copy(&ulselect), core::mem::transmute_copy(&ulwordsrc), core::mem::transmute_copy(&pchbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&pcwrd)).into() } - unsafe extern "system" fn NextWords(this: *mut core::ffi::c_void, pchbuffer: *mut u8, cbbuffer: u32, pcwrd: *mut u32) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn NextWords(this: *mut core::ffi::c_void, pchbuffer: *mut u8, cbbuffer: u32, pcwrd: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::NextWords(this, core::mem::transmute_copy(&pchbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&pcwrd)).into() } - unsafe extern "system" fn Create(this: *mut core::ffi::c_void, pchdictpath: windows_core::PCSTR, pshf: *mut IMESHF) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn Create(this: *mut core::ffi::c_void, pchdictpath: windows_core::PCSTR, pshf: *mut IMESHF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::Create(this, core::mem::transmute(&pchdictpath), core::mem::transmute_copy(&pshf)).into() } - unsafe extern "system" fn SetHeader(this: *mut core::ffi::c_void, pshf: *mut IMESHF) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn SetHeader(this: *mut core::ffi::c_void, pshf: *mut IMESHF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::SetHeader(this, core::mem::transmute_copy(&pshf)).into() } - unsafe extern "system" fn ExistWord(this: *mut core::ffi::c_void, pwrd: *mut IMEWRD) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn ExistWord(this: *mut core::ffi::c_void, pwrd: *mut IMEWRD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::ExistWord(this, core::mem::transmute_copy(&pwrd)) } - unsafe extern "system" fn ExistDependency(this: *mut core::ffi::c_void, pdp: *mut IMEDP) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn ExistDependency(this: *mut core::ffi::c_void, pdp: *mut IMEDP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::ExistDependency(this, core::mem::transmute_copy(&pdp)).into() } - unsafe extern "system" fn RegisterWord(this: *mut core::ffi::c_void, reg: IMEREG, pwrd: *mut IMEWRD) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn RegisterWord(this: *mut core::ffi::c_void, reg: IMEREG, pwrd: *mut IMEWRD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::RegisterWord(this, core::mem::transmute_copy(®), core::mem::transmute_copy(&pwrd)).into() } - unsafe extern "system" fn RegisterDependency(this: *mut core::ffi::c_void, reg: IMEREG, pdp: *mut IMEDP) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn RegisterDependency(this: *mut core::ffi::c_void, reg: IMEREG, pdp: *mut IMEDP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::RegisterDependency(this, core::mem::transmute_copy(®), core::mem::transmute_copy(&pdp)).into() } - unsafe extern "system" fn GetDependencies(this: *mut core::ffi::c_void, pwchkakarireading: windows_core::PCWSTR, pwchkakaridisplay: windows_core::PCWSTR, ulkakaripos: u32, pwchukereading: windows_core::PCWSTR, pwchukedisplay: windows_core::PCWSTR, ulukepos: u32, jrel: IMEREL, ulwordsrc: u32, pchbuffer: *mut u8, cbbuffer: u32, pcdp: *mut u32) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn GetDependencies(this: *mut core::ffi::c_void, pwchkakarireading: windows_core::PCWSTR, pwchkakaridisplay: windows_core::PCWSTR, ulkakaripos: u32, pwchukereading: windows_core::PCWSTR, pwchukedisplay: windows_core::PCWSTR, ulukepos: u32, jrel: IMEREL, ulwordsrc: u32, pchbuffer: *mut u8, cbbuffer: u32, pcdp: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::GetDependencies(this, core::mem::transmute(&pwchkakarireading), core::mem::transmute(&pwchkakaridisplay), core::mem::transmute_copy(&ulkakaripos), core::mem::transmute(&pwchukereading), core::mem::transmute(&pwchukedisplay), core::mem::transmute_copy(&ulukepos), core::mem::transmute_copy(&jrel), core::mem::transmute_copy(&ulwordsrc), core::mem::transmute_copy(&pchbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&pcdp)).into() } - unsafe extern "system" fn NextDependencies(this: *mut core::ffi::c_void, pchbuffer: *mut u8, cbbuffer: u32, pcdp: *mut u32) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn NextDependencies(this: *mut core::ffi::c_void, pchbuffer: *mut u8, cbbuffer: u32, pcdp: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::NextDependencies(this, core::mem::transmute_copy(&pchbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&pcdp)).into() } - unsafe extern "system" fn ConvertFromOldMSIME(this: *mut core::ffi::c_void, pchdic: windows_core::PCSTR, pfnlog: PFNLOG, reg: IMEREG) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn ConvertFromOldMSIME(this: *mut core::ffi::c_void, pchdic: windows_core::PCSTR, pfnlog: PFNLOG, reg: IMEREG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::ConvertFromOldMSIME(this, core::mem::transmute(&pchdic), core::mem::transmute_copy(&pfnlog), core::mem::transmute_copy(®)).into() } - unsafe extern "system" fn ConvertFromUserToSys(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFEDictionary_Impl, - { + unsafe extern "system" fn ConvertFromUserToSys(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFEDictionary_Impl::ConvertFromUserToSys(this).into() } @@ -2418,7 +1737,7 @@ impl IFEDictionary_Vtbl { iid == &::IID } } -pub trait IFELanguage_Impl: Sized { +pub trait IFELanguage_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -2428,49 +1747,28 @@ pub trait IFELanguage_Impl: Sized { } impl windows_core::RuntimeName for IFELanguage {} impl IFELanguage_Vtbl { - pub const fn new() -> IFELanguage_Vtbl - where - Identity: IFELanguage_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFELanguage_Impl, - { + pub const fn new() -> IFELanguage_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFELanguage_Impl::Open(this).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFELanguage_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFELanguage_Impl::Close(this).into() } - unsafe extern "system" fn GetJMorphResult(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 - where - Identity: IFELanguage_Impl, - { + unsafe extern "system" fn GetJMorphResult(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFELanguage_Impl::GetJMorphResult(this, core::mem::transmute_copy(&dwrequest), core::mem::transmute_copy(&dwcmode), core::mem::transmute_copy(&cwchinput), core::mem::transmute(&pwchinput), core::mem::transmute_copy(&pfcinfo), core::mem::transmute_copy(&ppresult)).into() } - unsafe extern "system" fn GetConversionModeCaps(this: *mut core::ffi::c_void, pdwcaps: *mut u32) -> windows_core::HRESULT - where - Identity: IFELanguage_Impl, - { + unsafe extern "system" fn GetConversionModeCaps(this: *mut core::ffi::c_void, pdwcaps: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFELanguage_Impl::GetConversionModeCaps(this, core::mem::transmute_copy(&pdwcaps)).into() } - unsafe extern "system" fn GetPhonetic(this: *mut core::ffi::c_void, string: core::mem::MaybeUninit, start: i32, length: i32, phonetic: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFELanguage_Impl, - { + unsafe extern "system" fn GetPhonetic(this: *mut core::ffi::c_void, string: core::mem::MaybeUninit, start: i32, length: i32, phonetic: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFELanguage_Impl::GetPhonetic(this, 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(this: *mut core::ffi::c_void, string: core::mem::MaybeUninit, start: i32, length: i32, result: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFELanguage_Impl, - { + unsafe extern "system" fn GetConversion(this: *mut core::ffi::c_void, string: core::mem::MaybeUninit, start: i32, length: i32, result: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFELanguage_Impl::GetConversion(this, core::mem::transmute(&string), core::mem::transmute_copy(&start), core::mem::transmute_copy(&length), core::mem::transmute_copy(&result)).into() } @@ -2488,19 +1786,13 @@ impl IFELanguage_Vtbl { iid == &::IID } } -pub trait IImePad_Impl: Sized { +pub trait IImePad_Impl: Sized + windows_core::IUnknownImpl { fn Request(&self, piimepadapplet: Option<&IImePadApplet>, reqid: &IME_PAD_REQUEST_FLAGS, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IImePad {} impl IImePad_Vtbl { - pub const fn new() -> IImePad_Vtbl - where - Identity: IImePad_Impl, - { - unsafe extern "system" fn Request(this: *mut core::ffi::c_void, piimepadapplet: *mut core::ffi::c_void, reqid: i32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IImePad_Impl, - { + pub const fn new() -> IImePad_Vtbl { + unsafe extern "system" fn Request(this: *mut core::ffi::c_void, piimepadapplet: *mut core::ffi::c_void, reqid: i32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImePad_Impl::Request(this, windows_core::from_raw_borrowed(&piimepadapplet), core::mem::transmute(&reqid), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } @@ -2511,7 +1803,7 @@ impl IImePad_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IImePadApplet_Impl: Sized { +pub trait IImePadApplet_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, lpiimepad: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Terminate(&self) -> windows_core::Result<()>; fn GetAppletConfig(&self, lpappletcfg: *mut IMEAPPLETCFG) -> windows_core::Result<()>; @@ -2522,42 +1814,24 @@ pub trait IImePadApplet_Impl: Sized { impl windows_core::RuntimeName for IImePadApplet {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IImePadApplet_Vtbl { - pub const fn new() -> IImePadApplet_Vtbl - where - Identity: IImePadApplet_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, lpiimepad: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImePadApplet_Impl, - { + pub const fn new() -> IImePadApplet_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, lpiimepad: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImePadApplet_Impl::Initialize(this, windows_core::from_raw_borrowed(&lpiimepad)).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImePadApplet_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImePadApplet_Impl::Terminate(this).into() } - unsafe extern "system" fn GetAppletConfig(this: *mut core::ffi::c_void, lpappletcfg: *mut IMEAPPLETCFG) -> windows_core::HRESULT - where - Identity: IImePadApplet_Impl, - { + unsafe extern "system" fn GetAppletConfig(this: *mut core::ffi::c_void, lpappletcfg: *mut IMEAPPLETCFG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImePadApplet_Impl::GetAppletConfig(this, core::mem::transmute_copy(&lpappletcfg)).into() } - unsafe extern "system" fn CreateUI(this: *mut core::ffi::c_void, hwndparent: super::super::super::Foundation::HWND, lpimeappletui: *mut IMEAPPLETUI) -> windows_core::HRESULT - where - Identity: IImePadApplet_Impl, - { + unsafe extern "system" fn CreateUI(this: *mut core::ffi::c_void, hwndparent: super::super::super::Foundation::HWND, lpimeappletui: *mut IMEAPPLETUI) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImePadApplet_Impl::CreateUI(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&lpimeappletui)).into() } - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, lpimepad: *mut core::ffi::c_void, notify: i32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IImePadApplet_Impl, - { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, lpimepad: *mut core::ffi::c_void, notify: i32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImePadApplet_Impl::Notify(this, windows_core::from_raw_borrowed(&lpimepad), core::mem::transmute_copy(¬ify), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } @@ -2575,7 +1849,7 @@ impl IImePadApplet_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IImePlugInDictDictionaryList_Impl: Sized { +pub trait IImePlugInDictDictionaryList_Impl: Sized + windows_core::IUnknownImpl { 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: &windows_core::BSTR) -> windows_core::Result<()>; } @@ -2583,21 +1857,12 @@ pub trait IImePlugInDictDictionaryList_Impl: Sized { impl windows_core::RuntimeName for IImePlugInDictDictionaryList {} #[cfg(feature = "Win32_System_Com")] impl IImePlugInDictDictionaryList_Vtbl { - pub const fn new() -> IImePlugInDictDictionaryList_Vtbl - where - Identity: IImePlugInDictDictionaryList_Impl, - { - unsafe extern "system" fn GetDictionariesInUse(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 - where - Identity: IImePlugInDictDictionaryList_Impl, - { + pub const fn new() -> IImePlugInDictDictionaryList_Vtbl { + unsafe extern "system" fn GetDictionariesInUse(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImePlugInDictDictionaryList_Impl::GetDictionariesInUse(this, core::mem::transmute_copy(&prgdictionaryguid), core::mem::transmute_copy(&prgdatecreated), core::mem::transmute_copy(&prgfencrypted)).into() } - unsafe extern "system" fn DeleteDictionary(this: *mut core::ffi::c_void, bstrdictionaryguid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IImePlugInDictDictionaryList_Impl, - { + unsafe extern "system" fn DeleteDictionary(this: *mut core::ffi::c_void, bstrdictionaryguid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImePlugInDictDictionaryList_Impl::DeleteDictionary(this, core::mem::transmute(&bstrdictionaryguid)).into() } @@ -2611,19 +1876,13 @@ impl IImePlugInDictDictionaryList_Vtbl { iid == &::IID } } -pub trait IImeSpecifyApplets_Impl: Sized { +pub trait IImeSpecifyApplets_Impl: Sized + windows_core::IUnknownImpl { fn GetAppletIIDList(&self, refiid: *const windows_core::GUID, lpiidlist: *mut APPLETIDLIST) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IImeSpecifyApplets {} impl IImeSpecifyApplets_Vtbl { - pub const fn new() -> IImeSpecifyApplets_Vtbl - where - Identity: IImeSpecifyApplets_Impl, - { - unsafe extern "system" fn GetAppletIIDList(this: *mut core::ffi::c_void, refiid: *const windows_core::GUID, lpiidlist: *mut APPLETIDLIST) -> windows_core::HRESULT - where - Identity: IImeSpecifyApplets_Impl, - { + pub const fn new() -> IImeSpecifyApplets_Vtbl { + unsafe extern "system" fn GetAppletIIDList(this: *mut core::ffi::c_void, refiid: *const windows_core::GUID, lpiidlist: *mut APPLETIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImeSpecifyApplets_Impl::GetAppletIIDList(this, core::mem::transmute_copy(&refiid), core::mem::transmute_copy(&lpiidlist)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/impl.rs index 09939ab1c0..c7d16b8531 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/impl.rs @@ -1,16 +1,10 @@ -pub trait IInkCommitRequestHandler_Impl: Sized { +pub trait IInkCommitRequestHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnCommitRequested(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInkCommitRequestHandler {} impl IInkCommitRequestHandler_Vtbl { - pub const fn new() -> IInkCommitRequestHandler_Vtbl - where - Identity: IInkCommitRequestHandler_Impl, - { - unsafe extern "system" fn OnCommitRequested(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCommitRequestHandler_Impl, - { + pub const fn new() -> IInkCommitRequestHandler_Vtbl { + unsafe extern "system" fn OnCommitRequested(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCommitRequestHandler_Impl::OnCommitRequested(this).into() } @@ -20,19 +14,13 @@ impl IInkCommitRequestHandler_Vtbl { iid == &::IID } } -pub trait IInkD2DRenderer_Impl: Sized { +pub trait IInkD2DRenderer_Impl: Sized + windows_core::IUnknownImpl { fn Draw(&self, pd2d1devicecontext: Option<&windows_core::IUnknown>, pinkstrokeiterable: Option<&windows_core::IUnknown>, fhighcontrast: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInkD2DRenderer {} impl IInkD2DRenderer_Vtbl { - pub const fn new() -> IInkD2DRenderer_Vtbl - where - Identity: IInkD2DRenderer_Impl, - { - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, pd2d1devicecontext: *mut core::ffi::c_void, pinkstrokeiterable: *mut core::ffi::c_void, fhighcontrast: super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IInkD2DRenderer_Impl, - { + pub const fn new() -> IInkD2DRenderer_Vtbl { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, pd2d1devicecontext: *mut core::ffi::c_void, pinkstrokeiterable: *mut core::ffi::c_void, fhighcontrast: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkD2DRenderer_Impl::Draw(this, windows_core::from_raw_borrowed(&pd2d1devicecontext), windows_core::from_raw_borrowed(&pinkstrokeiterable), core::mem::transmute_copy(&fhighcontrast)).into() } @@ -42,19 +30,13 @@ impl IInkD2DRenderer_Vtbl { iid == &::IID } } -pub trait IInkD2DRenderer2_Impl: Sized { +pub trait IInkD2DRenderer2_Impl: Sized + windows_core::IUnknownImpl { fn Draw(&self, pd2d1devicecontext: Option<&windows_core::IUnknown>, pinkstrokeiterable: Option<&windows_core::IUnknown>, highcontrastadjustment: INK_HIGH_CONTRAST_ADJUSTMENT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInkD2DRenderer2 {} impl IInkD2DRenderer2_Vtbl { - pub const fn new() -> IInkD2DRenderer2_Vtbl - where - Identity: IInkD2DRenderer2_Impl, - { - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, pd2d1devicecontext: *mut core::ffi::c_void, pinkstrokeiterable: *mut core::ffi::c_void, highcontrastadjustment: INK_HIGH_CONTRAST_ADJUSTMENT) -> windows_core::HRESULT - where - Identity: IInkD2DRenderer2_Impl, - { + pub const fn new() -> IInkD2DRenderer2_Vtbl { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, pd2d1devicecontext: *mut core::ffi::c_void, pinkstrokeiterable: *mut core::ffi::c_void, highcontrastadjustment: INK_HIGH_CONTRAST_ADJUSTMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkD2DRenderer2_Impl::Draw(this, windows_core::from_raw_borrowed(&pd2d1devicecontext), windows_core::from_raw_borrowed(&pinkstrokeiterable), core::mem::transmute_copy(&highcontrastadjustment)).into() } @@ -64,35 +46,23 @@ impl IInkD2DRenderer2_Vtbl { iid == &::IID } } -pub trait IInkDesktopHost_Impl: Sized { +pub trait IInkDesktopHost_Impl: Sized + windows_core::IUnknownImpl { fn QueueWorkItem(&self, workitem: Option<&IInkHostWorkItem>) -> windows_core::Result<()>; fn CreateInkPresenter(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateAndInitializeInkPresenter(&self, rootvisual: Option<&windows_core::IUnknown>, width: f32, height: f32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInkDesktopHost {} impl IInkDesktopHost_Vtbl { - pub const fn new() -> IInkDesktopHost_Vtbl - where - Identity: IInkDesktopHost_Impl, - { - unsafe extern "system" fn QueueWorkItem(this: *mut core::ffi::c_void, workitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDesktopHost_Impl, - { + pub const fn new() -> IInkDesktopHost_Vtbl { + unsafe extern "system" fn QueueWorkItem(this: *mut core::ffi::c_void, workitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDesktopHost_Impl::QueueWorkItem(this, windows_core::from_raw_borrowed(&workitem)).into() } - unsafe extern "system" fn CreateInkPresenter(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDesktopHost_Impl, - { + unsafe extern "system" fn CreateInkPresenter(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDesktopHost_Impl::CreateInkPresenter(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateAndInitializeInkPresenter(this: *mut core::ffi::c_void, rootvisual: *mut core::ffi::c_void, width: f32, height: f32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDesktopHost_Impl, - { + unsafe extern "system" fn CreateAndInitializeInkPresenter(this: *mut core::ffi::c_void, rootvisual: *mut core::ffi::c_void, width: f32, height: f32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDesktopHost_Impl::CreateAndInitializeInkPresenter(this, windows_core::from_raw_borrowed(&rootvisual), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -107,19 +77,13 @@ impl IInkDesktopHost_Vtbl { iid == &::IID } } -pub trait IInkHostWorkItem_Impl: Sized { +pub trait IInkHostWorkItem_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInkHostWorkItem {} impl IInkHostWorkItem_Vtbl { - pub const fn new() -> IInkHostWorkItem_Vtbl - where - Identity: IInkHostWorkItem_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkHostWorkItem_Impl, - { + pub const fn new() -> IInkHostWorkItem_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkHostWorkItem_Impl::Invoke(this).into() } @@ -129,7 +93,7 @@ impl IInkHostWorkItem_Vtbl { iid == &::IID } } -pub trait IInkPresenterDesktop_Impl: Sized { +pub trait IInkPresenterDesktop_Impl: Sized + windows_core::IUnknownImpl { fn SetRootVisual(&self, rootvisual: Option<&windows_core::IUnknown>, device: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn SetCommitRequestHandler(&self, handler: Option<&IInkCommitRequestHandler>) -> windows_core::Result<()>; fn GetSize(&self, width: *mut f32, height: *mut f32) -> windows_core::Result<()>; @@ -138,42 +102,24 @@ pub trait IInkPresenterDesktop_Impl: Sized { } impl windows_core::RuntimeName for IInkPresenterDesktop {} impl IInkPresenterDesktop_Vtbl { - pub const fn new() -> IInkPresenterDesktop_Vtbl - where - Identity: IInkPresenterDesktop_Impl, - { - unsafe extern "system" fn SetRootVisual(this: *mut core::ffi::c_void, rootvisual: *mut core::ffi::c_void, device: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPresenterDesktop_Impl, - { + pub const fn new() -> IInkPresenterDesktop_Vtbl { + unsafe extern "system" fn SetRootVisual(this: *mut core::ffi::c_void, rootvisual: *mut core::ffi::c_void, device: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPresenterDesktop_Impl::SetRootVisual(this, windows_core::from_raw_borrowed(&rootvisual), windows_core::from_raw_borrowed(&device)).into() } - unsafe extern "system" fn SetCommitRequestHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPresenterDesktop_Impl, - { + unsafe extern "system" fn SetCommitRequestHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPresenterDesktop_Impl::SetCommitRequestHandler(this, windows_core::from_raw_borrowed(&handler)).into() } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, width: *mut f32, height: *mut f32) -> windows_core::HRESULT - where - Identity: IInkPresenterDesktop_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, width: *mut f32, height: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPresenterDesktop_Impl::GetSize(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, width: f32, height: f32) -> windows_core::HRESULT - where - Identity: IInkPresenterDesktop_Impl, - { + unsafe extern "system" fn SetSize(this: *mut core::ffi::c_void, width: f32, height: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPresenterDesktop_Impl::SetSize(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn OnHighContrastChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPresenterDesktop_Impl, - { + unsafe extern "system" fn OnHighContrastChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPresenterDesktop_Impl::OnHighContrastChanged(this).into() } diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/impl.rs index 5dff300799..af05c62eb3 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/impl.rs @@ -1,16 +1,10 @@ -pub trait IRadialControllerConfigurationInterop_Impl: Sized { +pub trait IRadialControllerConfigurationInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, hwnd: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRadialControllerConfigurationInterop {} impl IRadialControllerConfigurationInterop_Vtbl { - pub const fn new() -> IRadialControllerConfigurationInterop_Vtbl - where - Identity: IRadialControllerConfigurationInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRadialControllerConfigurationInterop_Impl, - { + pub const fn new() -> IRadialControllerConfigurationInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRadialControllerConfigurationInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -23,19 +17,13 @@ impl IRadialControllerConfigurationInterop_Vtbl { iid == &::IID } } -pub trait IRadialControllerIndependentInputSourceInterop_Impl: Sized { +pub trait IRadialControllerIndependentInputSourceInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateForWindow(&self, hwnd: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRadialControllerIndependentInputSourceInterop {} impl IRadialControllerIndependentInputSourceInterop_Vtbl { - pub const fn new() -> IRadialControllerIndependentInputSourceInterop_Vtbl - where - Identity: IRadialControllerIndependentInputSourceInterop_Impl, - { - unsafe extern "system" fn CreateForWindow(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRadialControllerIndependentInputSourceInterop_Impl, - { + pub const fn new() -> IRadialControllerIndependentInputSourceInterop_Vtbl { + unsafe extern "system" fn CreateForWindow(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRadialControllerIndependentInputSourceInterop_Impl::CreateForWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -48,19 +36,13 @@ impl IRadialControllerIndependentInputSourceInterop_Vtbl { iid == &::IID } } -pub trait IRadialControllerInterop_Impl: Sized { +pub trait IRadialControllerInterop_Impl: Sized + windows_core::IUnknownImpl { fn CreateForWindow(&self, hwnd: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRadialControllerInterop {} impl IRadialControllerInterop_Vtbl { - pub const fn new() -> IRadialControllerInterop_Vtbl - where - Identity: IRadialControllerInterop_Impl, - { - unsafe extern "system" fn CreateForWindow(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRadialControllerInterop_Impl, - { + pub const fn new() -> IRadialControllerInterop_Vtbl { + unsafe extern "system" fn CreateForWindow(this: *mut core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRadialControllerInterop_Impl::CreateForWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/impl.rs index c188f445e4..1405ca6f96 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/impl.rs @@ -1,4 +1,4 @@ -pub trait IInertiaProcessor_Impl: Sized { +pub trait IInertiaProcessor_Impl: Sized + windows_core::IUnknownImpl { fn InitialOriginX(&self) -> windows_core::Result; fn SetInitialOriginX(&self, x: f32) -> windows_core::Result<()>; fn InitialOriginY(&self) -> windows_core::Result; @@ -51,14 +51,8 @@ pub trait IInertiaProcessor_Impl: Sized { } impl windows_core::RuntimeName for IInertiaProcessor {} impl IInertiaProcessor_Vtbl { - pub const fn new() -> IInertiaProcessor_Vtbl - where - Identity: IInertiaProcessor_Impl, - { - unsafe extern "system" fn InitialOriginX(this: *mut core::ffi::c_void, x: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + pub const fn new() -> IInertiaProcessor_Vtbl { + unsafe extern "system" fn InitialOriginX(this: *mut core::ffi::c_void, x: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::InitialOriginX(this) { Ok(ok__) => { @@ -68,17 +62,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialOriginX(this: *mut core::ffi::c_void, x: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetInitialOriginX(this: *mut core::ffi::c_void, x: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetInitialOriginX(this, core::mem::transmute_copy(&x)).into() } - unsafe extern "system" fn InitialOriginY(this: *mut core::ffi::c_void, y: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn InitialOriginY(this: *mut core::ffi::c_void, y: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::InitialOriginY(this) { Ok(ok__) => { @@ -88,17 +76,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialOriginY(this: *mut core::ffi::c_void, y: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetInitialOriginY(this: *mut core::ffi::c_void, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetInitialOriginY(this, core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn InitialVelocityX(this: *mut core::ffi::c_void, x: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn InitialVelocityX(this: *mut core::ffi::c_void, x: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::InitialVelocityX(this) { Ok(ok__) => { @@ -108,17 +90,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialVelocityX(this: *mut core::ffi::c_void, x: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetInitialVelocityX(this: *mut core::ffi::c_void, x: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetInitialVelocityX(this, core::mem::transmute_copy(&x)).into() } - unsafe extern "system" fn InitialVelocityY(this: *mut core::ffi::c_void, y: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn InitialVelocityY(this: *mut core::ffi::c_void, y: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::InitialVelocityY(this) { Ok(ok__) => { @@ -128,17 +104,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialVelocityY(this: *mut core::ffi::c_void, y: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetInitialVelocityY(this: *mut core::ffi::c_void, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetInitialVelocityY(this, core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn InitialAngularVelocity(this: *mut core::ffi::c_void, velocity: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn InitialAngularVelocity(this: *mut core::ffi::c_void, velocity: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::InitialAngularVelocity(this) { Ok(ok__) => { @@ -148,17 +118,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialAngularVelocity(this: *mut core::ffi::c_void, velocity: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetInitialAngularVelocity(this: *mut core::ffi::c_void, velocity: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetInitialAngularVelocity(this, core::mem::transmute_copy(&velocity)).into() } - unsafe extern "system" fn InitialExpansionVelocity(this: *mut core::ffi::c_void, velocity: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn InitialExpansionVelocity(this: *mut core::ffi::c_void, velocity: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::InitialExpansionVelocity(this) { Ok(ok__) => { @@ -168,17 +132,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialExpansionVelocity(this: *mut core::ffi::c_void, velocity: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetInitialExpansionVelocity(this: *mut core::ffi::c_void, velocity: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetInitialExpansionVelocity(this, core::mem::transmute_copy(&velocity)).into() } - unsafe extern "system" fn InitialRadius(this: *mut core::ffi::c_void, radius: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn InitialRadius(this: *mut core::ffi::c_void, radius: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::InitialRadius(this) { Ok(ok__) => { @@ -188,17 +146,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialRadius(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetInitialRadius(this: *mut core::ffi::c_void, radius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetInitialRadius(this, core::mem::transmute_copy(&radius)).into() } - unsafe extern "system" fn BoundaryLeft(this: *mut core::ffi::c_void, left: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn BoundaryLeft(this: *mut core::ffi::c_void, left: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::BoundaryLeft(this) { Ok(ok__) => { @@ -208,17 +160,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBoundaryLeft(this: *mut core::ffi::c_void, left: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetBoundaryLeft(this: *mut core::ffi::c_void, left: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetBoundaryLeft(this, core::mem::transmute_copy(&left)).into() } - unsafe extern "system" fn BoundaryTop(this: *mut core::ffi::c_void, top: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn BoundaryTop(this: *mut core::ffi::c_void, top: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::BoundaryTop(this) { Ok(ok__) => { @@ -228,17 +174,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBoundaryTop(this: *mut core::ffi::c_void, top: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetBoundaryTop(this: *mut core::ffi::c_void, top: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetBoundaryTop(this, core::mem::transmute_copy(&top)).into() } - unsafe extern "system" fn BoundaryRight(this: *mut core::ffi::c_void, right: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn BoundaryRight(this: *mut core::ffi::c_void, right: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::BoundaryRight(this) { Ok(ok__) => { @@ -248,17 +188,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBoundaryRight(this: *mut core::ffi::c_void, right: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetBoundaryRight(this: *mut core::ffi::c_void, right: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetBoundaryRight(this, core::mem::transmute_copy(&right)).into() } - unsafe extern "system" fn BoundaryBottom(this: *mut core::ffi::c_void, bottom: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn BoundaryBottom(this: *mut core::ffi::c_void, bottom: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::BoundaryBottom(this) { Ok(ok__) => { @@ -268,17 +202,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBoundaryBottom(this: *mut core::ffi::c_void, bottom: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetBoundaryBottom(this: *mut core::ffi::c_void, bottom: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetBoundaryBottom(this, core::mem::transmute_copy(&bottom)).into() } - unsafe extern "system" fn ElasticMarginLeft(this: *mut core::ffi::c_void, left: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn ElasticMarginLeft(this: *mut core::ffi::c_void, left: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::ElasticMarginLeft(this) { Ok(ok__) => { @@ -288,17 +216,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetElasticMarginLeft(this: *mut core::ffi::c_void, left: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetElasticMarginLeft(this: *mut core::ffi::c_void, left: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetElasticMarginLeft(this, core::mem::transmute_copy(&left)).into() } - unsafe extern "system" fn ElasticMarginTop(this: *mut core::ffi::c_void, top: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn ElasticMarginTop(this: *mut core::ffi::c_void, top: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::ElasticMarginTop(this) { Ok(ok__) => { @@ -308,17 +230,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetElasticMarginTop(this: *mut core::ffi::c_void, top: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetElasticMarginTop(this: *mut core::ffi::c_void, top: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetElasticMarginTop(this, core::mem::transmute_copy(&top)).into() } - unsafe extern "system" fn ElasticMarginRight(this: *mut core::ffi::c_void, right: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn ElasticMarginRight(this: *mut core::ffi::c_void, right: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::ElasticMarginRight(this) { Ok(ok__) => { @@ -328,17 +244,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetElasticMarginRight(this: *mut core::ffi::c_void, right: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetElasticMarginRight(this: *mut core::ffi::c_void, right: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetElasticMarginRight(this, core::mem::transmute_copy(&right)).into() } - unsafe extern "system" fn ElasticMarginBottom(this: *mut core::ffi::c_void, bottom: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn ElasticMarginBottom(this: *mut core::ffi::c_void, bottom: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::ElasticMarginBottom(this) { Ok(ok__) => { @@ -348,17 +258,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetElasticMarginBottom(this: *mut core::ffi::c_void, bottom: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetElasticMarginBottom(this: *mut core::ffi::c_void, bottom: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetElasticMarginBottom(this, core::mem::transmute_copy(&bottom)).into() } - unsafe extern "system" fn DesiredDisplacement(this: *mut core::ffi::c_void, displacement: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn DesiredDisplacement(this: *mut core::ffi::c_void, displacement: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::DesiredDisplacement(this) { Ok(ok__) => { @@ -368,17 +272,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredDisplacement(this: *mut core::ffi::c_void, displacement: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetDesiredDisplacement(this: *mut core::ffi::c_void, displacement: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetDesiredDisplacement(this, core::mem::transmute_copy(&displacement)).into() } - unsafe extern "system" fn DesiredRotation(this: *mut core::ffi::c_void, rotation: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn DesiredRotation(this: *mut core::ffi::c_void, rotation: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::DesiredRotation(this) { Ok(ok__) => { @@ -388,17 +286,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredRotation(this: *mut core::ffi::c_void, rotation: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetDesiredRotation(this: *mut core::ffi::c_void, rotation: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetDesiredRotation(this, core::mem::transmute_copy(&rotation)).into() } - unsafe extern "system" fn DesiredExpansion(this: *mut core::ffi::c_void, expansion: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn DesiredExpansion(this: *mut core::ffi::c_void, expansion: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::DesiredExpansion(this) { Ok(ok__) => { @@ -408,17 +300,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredExpansion(this: *mut core::ffi::c_void, expansion: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetDesiredExpansion(this: *mut core::ffi::c_void, expansion: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetDesiredExpansion(this, core::mem::transmute_copy(&expansion)).into() } - unsafe extern "system" fn DesiredDeceleration(this: *mut core::ffi::c_void, deceleration: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn DesiredDeceleration(this: *mut core::ffi::c_void, deceleration: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::DesiredDeceleration(this) { Ok(ok__) => { @@ -428,17 +314,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredDeceleration(this: *mut core::ffi::c_void, deceleration: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetDesiredDeceleration(this: *mut core::ffi::c_void, deceleration: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetDesiredDeceleration(this, core::mem::transmute_copy(&deceleration)).into() } - unsafe extern "system" fn DesiredAngularDeceleration(this: *mut core::ffi::c_void, deceleration: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn DesiredAngularDeceleration(this: *mut core::ffi::c_void, deceleration: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::DesiredAngularDeceleration(this) { Ok(ok__) => { @@ -448,17 +328,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredAngularDeceleration(this: *mut core::ffi::c_void, deceleration: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetDesiredAngularDeceleration(this: *mut core::ffi::c_void, deceleration: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetDesiredAngularDeceleration(this, core::mem::transmute_copy(&deceleration)).into() } - unsafe extern "system" fn DesiredExpansionDeceleration(this: *mut core::ffi::c_void, deceleration: *mut f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn DesiredExpansionDeceleration(this: *mut core::ffi::c_void, deceleration: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::DesiredExpansionDeceleration(this) { Ok(ok__) => { @@ -468,17 +342,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredExpansionDeceleration(this: *mut core::ffi::c_void, deceleration: f32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetDesiredExpansionDeceleration(this: *mut core::ffi::c_void, deceleration: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetDesiredExpansionDeceleration(this, core::mem::transmute_copy(&deceleration)).into() } - unsafe extern "system" fn InitialTimestamp(this: *mut core::ffi::c_void, timestamp: *mut u32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn InitialTimestamp(this: *mut core::ffi::c_void, timestamp: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::InitialTimestamp(this) { Ok(ok__) => { @@ -488,24 +356,15 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialTimestamp(this: *mut core::ffi::c_void, timestamp: u32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn SetInitialTimestamp(this: *mut core::ffi::c_void, timestamp: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::SetInitialTimestamp(this, core::mem::transmute_copy(×tamp)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::Reset(this).into() } - unsafe extern "system" fn Process(this: *mut core::ffi::c_void, completed: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn Process(this: *mut core::ffi::c_void, completed: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::Process(this) { Ok(ok__) => { @@ -515,10 +374,7 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessTime(this: *mut core::ffi::c_void, timestamp: u32, completed: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn ProcessTime(this: *mut core::ffi::c_void, timestamp: u32, completed: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::ProcessTime(this, core::mem::transmute_copy(×tamp)) { Ok(ok__) => { @@ -528,17 +384,11 @@ impl IInertiaProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Complete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn Complete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::Complete(this).into() } - unsafe extern "system" fn CompleteTime(this: *mut core::ffi::c_void, timestamp: u32) -> windows_core::HRESULT - where - Identity: IInertiaProcessor_Impl, - { + unsafe extern "system" fn CompleteTime(this: *mut core::ffi::c_void, timestamp: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInertiaProcessor_Impl::CompleteTime(this, core::mem::transmute_copy(×tamp)).into() } @@ -599,7 +449,7 @@ impl IInertiaProcessor_Vtbl { iid == &::IID } } -pub trait IManipulationProcessor_Impl: Sized { +pub trait IManipulationProcessor_Impl: Sized + windows_core::IUnknownImpl { fn SupportedManipulations(&self) -> windows_core::Result; fn SetSupportedManipulations(&self, manipulations: MANIPULATION_PROCESSOR_MANIPULATIONS) -> windows_core::Result<()>; fn PivotPointX(&self) -> windows_core::Result; @@ -624,14 +474,8 @@ pub trait IManipulationProcessor_Impl: Sized { } impl windows_core::RuntimeName for IManipulationProcessor {} impl IManipulationProcessor_Vtbl { - pub const fn new() -> IManipulationProcessor_Vtbl - where - Identity: IManipulationProcessor_Impl, - { - unsafe extern "system" fn SupportedManipulations(this: *mut core::ffi::c_void, manipulations: *mut MANIPULATION_PROCESSOR_MANIPULATIONS) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + pub const fn new() -> IManipulationProcessor_Vtbl { + unsafe extern "system" fn SupportedManipulations(this: *mut core::ffi::c_void, manipulations: *mut MANIPULATION_PROCESSOR_MANIPULATIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManipulationProcessor_Impl::SupportedManipulations(this) { Ok(ok__) => { @@ -641,17 +485,11 @@ impl IManipulationProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSupportedManipulations(this: *mut core::ffi::c_void, manipulations: MANIPULATION_PROCESSOR_MANIPULATIONS) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn SetSupportedManipulations(this: *mut core::ffi::c_void, manipulations: MANIPULATION_PROCESSOR_MANIPULATIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::SetSupportedManipulations(this, core::mem::transmute_copy(&manipulations)).into() } - unsafe extern "system" fn PivotPointX(this: *mut core::ffi::c_void, pivotpointx: *mut f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn PivotPointX(this: *mut core::ffi::c_void, pivotpointx: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManipulationProcessor_Impl::PivotPointX(this) { Ok(ok__) => { @@ -661,17 +499,11 @@ impl IManipulationProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPivotPointX(this: *mut core::ffi::c_void, pivotpointx: f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn SetPivotPointX(this: *mut core::ffi::c_void, pivotpointx: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::SetPivotPointX(this, core::mem::transmute_copy(&pivotpointx)).into() } - unsafe extern "system" fn PivotPointY(this: *mut core::ffi::c_void, pivotpointy: *mut f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn PivotPointY(this: *mut core::ffi::c_void, pivotpointy: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManipulationProcessor_Impl::PivotPointY(this) { Ok(ok__) => { @@ -681,17 +513,11 @@ impl IManipulationProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPivotPointY(this: *mut core::ffi::c_void, pivotpointy: f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn SetPivotPointY(this: *mut core::ffi::c_void, pivotpointy: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::SetPivotPointY(this, core::mem::transmute_copy(&pivotpointy)).into() } - unsafe extern "system" fn PivotRadius(this: *mut core::ffi::c_void, pivotradius: *mut f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn PivotRadius(this: *mut core::ffi::c_void, pivotradius: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManipulationProcessor_Impl::PivotRadius(this) { Ok(ok__) => { @@ -701,66 +527,39 @@ impl IManipulationProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPivotRadius(this: *mut core::ffi::c_void, pivotradius: f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn SetPivotRadius(this: *mut core::ffi::c_void, pivotradius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::SetPivotRadius(this, core::mem::transmute_copy(&pivotradius)).into() } - unsafe extern "system" fn CompleteManipulation(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn CompleteManipulation(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::CompleteManipulation(this).into() } - unsafe extern "system" fn ProcessDown(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn ProcessDown(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::ProcessDown(this, core::mem::transmute_copy(&manipulatorid), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn ProcessMove(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn ProcessMove(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::ProcessMove(this, core::mem::transmute_copy(&manipulatorid), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn ProcessUp(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn ProcessUp(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::ProcessUp(this, core::mem::transmute_copy(&manipulatorid), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn ProcessDownWithTime(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32, timestamp: u32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn ProcessDownWithTime(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32, timestamp: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::ProcessDownWithTime(this, core::mem::transmute_copy(&manipulatorid), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(×tamp)).into() } - unsafe extern "system" fn ProcessMoveWithTime(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32, timestamp: u32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn ProcessMoveWithTime(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32, timestamp: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::ProcessMoveWithTime(this, core::mem::transmute_copy(&manipulatorid), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(×tamp)).into() } - unsafe extern "system" fn ProcessUpWithTime(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32, timestamp: u32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn ProcessUpWithTime(this: *mut core::ffi::c_void, manipulatorid: u32, x: f32, y: f32, timestamp: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::ProcessUpWithTime(this, core::mem::transmute_copy(&manipulatorid), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(×tamp)).into() } - unsafe extern "system" fn GetVelocityX(this: *mut core::ffi::c_void, velocityx: *mut f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn GetVelocityX(this: *mut core::ffi::c_void, velocityx: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManipulationProcessor_Impl::GetVelocityX(this) { Ok(ok__) => { @@ -770,10 +569,7 @@ impl IManipulationProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVelocityY(this: *mut core::ffi::c_void, velocityy: *mut f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn GetVelocityY(this: *mut core::ffi::c_void, velocityy: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManipulationProcessor_Impl::GetVelocityY(this) { Ok(ok__) => { @@ -783,10 +579,7 @@ impl IManipulationProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetExpansionVelocity(this: *mut core::ffi::c_void, expansionvelocity: *mut f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn GetExpansionVelocity(this: *mut core::ffi::c_void, expansionvelocity: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManipulationProcessor_Impl::GetExpansionVelocity(this) { Ok(ok__) => { @@ -796,10 +589,7 @@ impl IManipulationProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAngularVelocity(this: *mut core::ffi::c_void, angularvelocity: *mut f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn GetAngularVelocity(this: *mut core::ffi::c_void, angularvelocity: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManipulationProcessor_Impl::GetAngularVelocity(this) { Ok(ok__) => { @@ -809,10 +599,7 @@ impl IManipulationProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MinimumScaleRotateRadius(this: *mut core::ffi::c_void, minradius: *mut f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn MinimumScaleRotateRadius(this: *mut core::ffi::c_void, minradius: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IManipulationProcessor_Impl::MinimumScaleRotateRadius(this) { Ok(ok__) => { @@ -822,10 +609,7 @@ impl IManipulationProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMinimumScaleRotateRadius(this: *mut core::ffi::c_void, minradius: f32) -> windows_core::HRESULT - where - Identity: IManipulationProcessor_Impl, - { + unsafe extern "system" fn SetMinimumScaleRotateRadius(this: *mut core::ffi::c_void, minradius: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManipulationProcessor_Impl::SetMinimumScaleRotateRadius(this, core::mem::transmute_copy(&minradius)).into() } @@ -858,28 +642,19 @@ impl IManipulationProcessor_Vtbl { iid == &::IID } } -pub trait _IManipulationEvents_Impl: Sized { +pub trait _IManipulationEvents_Impl: Sized + windows_core::IUnknownImpl { fn ManipulationStarted(&self, x: f32, y: f32) -> windows_core::Result<()>; fn ManipulationDelta(&self, x: f32, y: f32, translationdeltax: f32, translationdeltay: f32, scaledelta: f32, expansiondelta: f32, rotationdelta: f32, cumulativetranslationx: f32, cumulativetranslationy: f32, cumulativescale: f32, cumulativeexpansion: f32, cumulativerotation: f32) -> windows_core::Result<()>; fn ManipulationCompleted(&self, x: f32, y: f32, cumulativetranslationx: f32, cumulativetranslationy: f32, cumulativescale: f32, cumulativeexpansion: f32, cumulativerotation: f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for _IManipulationEvents {} impl _IManipulationEvents_Vtbl { - pub const fn new() -> _IManipulationEvents_Vtbl - where - Identity: _IManipulationEvents_Impl, - { - unsafe extern "system" fn ManipulationStarted(this: *mut core::ffi::c_void, x: f32, y: f32) -> windows_core::HRESULT - where - Identity: _IManipulationEvents_Impl, - { + pub const fn new() -> _IManipulationEvents_Vtbl { + unsafe extern "system" fn ManipulationStarted(this: *mut core::ffi::c_void, x: f32, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _IManipulationEvents_Impl::ManipulationStarted(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn ManipulationDelta(this: *mut core::ffi::c_void, x: f32, y: f32, translationdeltax: f32, translationdeltay: f32, scaledelta: f32, expansiondelta: f32, rotationdelta: f32, cumulativetranslationx: f32, cumulativetranslationy: f32, cumulativescale: f32, cumulativeexpansion: f32, cumulativerotation: f32) -> windows_core::HRESULT - where - Identity: _IManipulationEvents_Impl, - { + unsafe extern "system" fn ManipulationDelta(this: *mut core::ffi::c_void, x: f32, y: f32, translationdeltax: f32, translationdeltay: f32, scaledelta: f32, expansiondelta: f32, rotationdelta: f32, cumulativetranslationx: f32, cumulativetranslationy: f32, cumulativescale: f32, cumulativeexpansion: f32, cumulativerotation: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _IManipulationEvents_Impl::ManipulationDelta( this, @@ -898,10 +673,7 @@ impl _IManipulationEvents_Vtbl { ) .into() } - unsafe extern "system" fn ManipulationCompleted(this: *mut core::ffi::c_void, x: f32, y: f32, cumulativetranslationx: f32, cumulativetranslationy: f32, cumulativescale: f32, cumulativeexpansion: f32, cumulativerotation: f32) -> windows_core::HRESULT - where - Identity: _IManipulationEvents_Impl, - { + unsafe extern "system" fn ManipulationCompleted(this: *mut core::ffi::c_void, x: f32, y: f32, cumulativetranslationx: f32, cumulativetranslationy: f32, cumulativescale: f32, cumulativeexpansion: f32, cumulativerotation: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _IManipulationEvents_Impl::ManipulationCompleted(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&cumulativetranslationx), core::mem::transmute_copy(&cumulativetranslationy), core::mem::transmute_copy(&cumulativescale), core::mem::transmute_copy(&cumulativeexpansion), core::mem::transmute_copy(&cumulativerotation)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/impl.rs index 4da5728a53..d7f16e9399 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_System_Ole")] -pub trait IADesktopP2_Impl: Sized { +pub trait IADesktopP2_Impl: Sized + windows_core::IUnknownImpl { fn ReReadWallpaper(&self) -> windows_core::Result<()>; fn GetADObjectFlags(&self, pdwflags: *mut u32, dwmask: u32) -> windows_core::Result<()>; fn UpdateAllDesktopSubscriptions(&self) -> windows_core::Result<()>; @@ -9,35 +9,20 @@ pub trait IADesktopP2_Impl: Sized { impl windows_core::RuntimeName for IADesktopP2 {} #[cfg(feature = "Win32_System_Ole")] impl IADesktopP2_Vtbl { - pub const fn new() -> IADesktopP2_Vtbl - where - Identity: IADesktopP2_Impl, - { - unsafe extern "system" fn ReReadWallpaper(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADesktopP2_Impl, - { + pub const fn new() -> IADesktopP2_Vtbl { + unsafe extern "system" fn ReReadWallpaper(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADesktopP2_Impl::ReReadWallpaper(this).into() } - unsafe extern "system" fn GetADObjectFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32, dwmask: u32) -> windows_core::HRESULT - where - Identity: IADesktopP2_Impl, - { + unsafe extern "system" fn GetADObjectFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32, dwmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADesktopP2_Impl::GetADObjectFlags(this, core::mem::transmute_copy(&pdwflags), core::mem::transmute_copy(&dwmask)).into() } - unsafe extern "system" fn UpdateAllDesktopSubscriptions(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADesktopP2_Impl, - { + unsafe extern "system" fn UpdateAllDesktopSubscriptions(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADesktopP2_Impl::UpdateAllDesktopSubscriptions(this).into() } - unsafe extern "system" fn MakeDynamicChanges(this: *mut core::ffi::c_void, poleobj: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IADesktopP2_Impl, - { + unsafe extern "system" fn MakeDynamicChanges(this: *mut core::ffi::c_void, poleobj: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IADesktopP2_Impl::MakeDynamicChanges(this, windows_core::from_raw_borrowed(&poleobj)).into() } @@ -53,7 +38,7 @@ impl IADesktopP2_Vtbl { iid == &::IID } } -pub trait IActiveDesktopP_Impl: Sized { +pub trait IActiveDesktopP_Impl: Sized + windows_core::IUnknownImpl { fn SetSafeMode(&self, dwflags: u32) -> windows_core::Result<()>; fn EnsureUpdateHTML(&self) -> windows_core::Result<()>; fn SetScheme(&self, pwszschemename: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; @@ -61,35 +46,20 @@ pub trait IActiveDesktopP_Impl: Sized { } impl windows_core::RuntimeName for IActiveDesktopP {} impl IActiveDesktopP_Vtbl { - pub const fn new() -> IActiveDesktopP_Vtbl - where - Identity: IActiveDesktopP_Impl, - { - unsafe extern "system" fn SetSafeMode(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveDesktopP_Impl, - { + pub const fn new() -> IActiveDesktopP_Vtbl { + unsafe extern "system" fn SetSafeMode(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveDesktopP_Impl::SetSafeMode(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn EnsureUpdateHTML(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveDesktopP_Impl, - { + unsafe extern "system" fn EnsureUpdateHTML(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveDesktopP_Impl::EnsureUpdateHTML(this).into() } - unsafe extern "system" fn SetScheme(this: *mut core::ffi::c_void, pwszschemename: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveDesktopP_Impl, - { + unsafe extern "system" fn SetScheme(this: *mut core::ffi::c_void, pwszschemename: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveDesktopP_Impl::SetScheme(this, core::mem::transmute(&pwszschemename), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetScheme(this: *mut core::ffi::c_void, pwszschemename: windows_core::PWSTR, pdwcchbuffer: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IActiveDesktopP_Impl, - { + unsafe extern "system" fn GetScheme(this: *mut core::ffi::c_void, pwszschemename: windows_core::PWSTR, pdwcchbuffer: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveDesktopP_Impl::GetScheme(this, core::mem::transmute_copy(&pwszschemename), core::mem::transmute_copy(&pdwcchbuffer), core::mem::transmute_copy(&dwflags)).into() } @@ -106,21 +76,15 @@ impl IActiveDesktopP_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IBriefcaseInitiator_Impl: Sized { +pub trait IBriefcaseInitiator_Impl: Sized + windows_core::IUnknownImpl { fn IsMonikerInBriefcase(&self, pmk: Option<&super::super::System::Com::IMoniker>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IBriefcaseInitiator {} #[cfg(feature = "Win32_System_Com")] impl IBriefcaseInitiator_Vtbl { - pub const fn new() -> IBriefcaseInitiator_Vtbl - where - Identity: IBriefcaseInitiator_Impl, - { - unsafe extern "system" fn IsMonikerInBriefcase(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBriefcaseInitiator_Impl, - { + pub const fn new() -> IBriefcaseInitiator_Vtbl { + unsafe extern "system" fn IsMonikerInBriefcase(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBriefcaseInitiator_Impl::IsMonikerInBriefcase(this, windows_core::from_raw_borrowed(&pmk)).into() } @@ -131,7 +95,7 @@ impl IBriefcaseInitiator_Vtbl { } } #[cfg(feature = "Win32_System_Registry")] -pub trait IEmptyVolumeCache_Impl: Sized { +pub trait IEmptyVolumeCache_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hkregkey: super::super::System::Registry::HKEY, pcwszvolume: &windows_core::PCWSTR, ppwszdisplayname: *mut windows_core::PWSTR, ppwszdescription: *mut windows_core::PWSTR, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> windows_core::Result<()>; fn GetSpaceUsed(&self, pdwlspaceused: *mut u64, picb: Option<&IEmptyVolumeCacheCallBack>) -> windows_core::Result<()>; fn Purge(&self, dwlspacetofree: u64, picb: Option<&IEmptyVolumeCacheCallBack>) -> windows_core::Result<()>; @@ -142,42 +106,24 @@ pub trait IEmptyVolumeCache_Impl: Sized { impl windows_core::RuntimeName for IEmptyVolumeCache {} #[cfg(feature = "Win32_System_Registry")] impl IEmptyVolumeCache_Vtbl { - pub const fn new() -> IEmptyVolumeCache_Vtbl - where - Identity: IEmptyVolumeCache_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hkregkey: super::super::System::Registry::HKEY, pcwszvolume: windows_core::PCWSTR, ppwszdisplayname: *mut windows_core::PWSTR, ppwszdescription: *mut windows_core::PWSTR, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> windows_core::HRESULT - where - Identity: IEmptyVolumeCache_Impl, - { + pub const fn new() -> IEmptyVolumeCache_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hkregkey: super::super::System::Registry::HKEY, pcwszvolume: windows_core::PCWSTR, ppwszdisplayname: *mut windows_core::PWSTR, ppwszdescription: *mut windows_core::PWSTR, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmptyVolumeCache_Impl::Initialize(this, core::mem::transmute_copy(&hkregkey), core::mem::transmute(&pcwszvolume), core::mem::transmute_copy(&ppwszdisplayname), core::mem::transmute_copy(&ppwszdescription), core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn GetSpaceUsed(this: *mut core::ffi::c_void, pdwlspaceused: *mut u64, picb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEmptyVolumeCache_Impl, - { + unsafe extern "system" fn GetSpaceUsed(this: *mut core::ffi::c_void, pdwlspaceused: *mut u64, picb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmptyVolumeCache_Impl::GetSpaceUsed(this, core::mem::transmute_copy(&pdwlspaceused), windows_core::from_raw_borrowed(&picb)).into() } - unsafe extern "system" fn Purge(this: *mut core::ffi::c_void, dwlspacetofree: u64, picb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEmptyVolumeCache_Impl, - { + unsafe extern "system" fn Purge(this: *mut core::ffi::c_void, dwlspacetofree: u64, picb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmptyVolumeCache_Impl::Purge(this, core::mem::transmute_copy(&dwlspacetofree), windows_core::from_raw_borrowed(&picb)).into() } - unsafe extern "system" fn ShowProperties(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IEmptyVolumeCache_Impl, - { + unsafe extern "system" fn ShowProperties(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmptyVolumeCache_Impl::ShowProperties(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> windows_core::HRESULT - where - Identity: IEmptyVolumeCache_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEmptyVolumeCache_Impl::Deactivate(this) { Ok(ok__) => { @@ -208,14 +154,8 @@ pub trait IEmptyVolumeCache2_Impl: Sized + IEmptyVolumeCache_Impl { impl windows_core::RuntimeName for IEmptyVolumeCache2 {} #[cfg(feature = "Win32_System_Registry")] impl IEmptyVolumeCache2_Vtbl { - pub const fn new() -> IEmptyVolumeCache2_Vtbl - where - Identity: IEmptyVolumeCache2_Impl, - { - unsafe extern "system" fn InitializeEx(this: *mut core::ffi::c_void, hkregkey: super::super::System::Registry::HKEY, pcwszvolume: windows_core::PCWSTR, pcwszkeyname: windows_core::PCWSTR, ppwszdisplayname: *mut windows_core::PWSTR, ppwszdescription: *mut windows_core::PWSTR, ppwszbtntext: *mut windows_core::PWSTR, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> windows_core::HRESULT - where - Identity: IEmptyVolumeCache2_Impl, - { + pub const fn new() -> IEmptyVolumeCache2_Vtbl { + unsafe extern "system" fn InitializeEx(this: *mut core::ffi::c_void, hkregkey: super::super::System::Registry::HKEY, pcwszvolume: windows_core::PCWSTR, pcwszkeyname: windows_core::PCWSTR, ppwszdisplayname: *mut windows_core::PWSTR, ppwszdescription: *mut windows_core::PWSTR, ppwszbtntext: *mut windows_core::PWSTR, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmptyVolumeCache2_Impl::InitializeEx(this, core::mem::transmute_copy(&hkregkey), core::mem::transmute(&pcwszvolume), core::mem::transmute(&pcwszkeyname), core::mem::transmute_copy(&ppwszdisplayname), core::mem::transmute_copy(&ppwszdescription), core::mem::transmute_copy(&ppwszbtntext), core::mem::transmute_copy(&pdwflags)).into() } @@ -225,27 +165,18 @@ impl IEmptyVolumeCache2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IEmptyVolumeCacheCallBack_Impl: Sized { +pub trait IEmptyVolumeCacheCallBack_Impl: Sized + windows_core::IUnknownImpl { fn ScanProgress(&self, dwlspaceused: u64, dwflags: u32, pcwszstatus: &windows_core::PCWSTR) -> windows_core::Result<()>; fn PurgeProgress(&self, dwlspacefreed: u64, dwlspacetofree: u64, dwflags: u32, pcwszstatus: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IEmptyVolumeCacheCallBack {} impl IEmptyVolumeCacheCallBack_Vtbl { - pub const fn new() -> IEmptyVolumeCacheCallBack_Vtbl - where - Identity: IEmptyVolumeCacheCallBack_Impl, - { - unsafe extern "system" fn ScanProgress(this: *mut core::ffi::c_void, dwlspaceused: u64, dwflags: u32, pcwszstatus: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEmptyVolumeCacheCallBack_Impl, - { + pub const fn new() -> IEmptyVolumeCacheCallBack_Vtbl { + unsafe extern "system" fn ScanProgress(this: *mut core::ffi::c_void, dwlspaceused: u64, dwflags: u32, pcwszstatus: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmptyVolumeCacheCallBack_Impl::ScanProgress(this, core::mem::transmute_copy(&dwlspaceused), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pcwszstatus)).into() } - unsafe extern "system" fn PurgeProgress(this: *mut core::ffi::c_void, dwlspacefreed: u64, dwlspacetofree: u64, dwflags: u32, pcwszstatus: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IEmptyVolumeCacheCallBack_Impl, - { + unsafe extern "system" fn PurgeProgress(this: *mut core::ffi::c_void, dwlspacefreed: u64, dwlspacetofree: u64, dwflags: u32, pcwszstatus: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEmptyVolumeCacheCallBack_Impl::PurgeProgress(this, core::mem::transmute_copy(&dwlspacefreed), core::mem::transmute_copy(&dwlspacetofree), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pcwszstatus)).into() } @@ -260,7 +191,7 @@ impl IEmptyVolumeCacheCallBack_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IReconcilableObject_Impl: Sized { +pub trait IReconcilableObject_Impl: Sized + windows_core::IUnknownImpl { fn Reconcile(&self, pinitiator: Option<&IReconcileInitiator>, dwflags: u32, hwndowner: super::super::Foundation::HWND, hwndprogressfeedback: super::super::Foundation::HWND, ulcinput: u32, rgpmkotherinput: *mut Option, ploutindex: *mut i32, pstgnewresidues: Option<&super::super::System::Com::StructuredStorage::IStorage>, pvreserved: *const core::ffi::c_void) -> windows_core::Result<()>; fn GetProgressFeedbackMaxEstimate(&self) -> windows_core::Result; } @@ -268,21 +199,12 @@ pub trait IReconcilableObject_Impl: Sized { impl windows_core::RuntimeName for IReconcilableObject {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IReconcilableObject_Vtbl { - pub const fn new() -> IReconcilableObject_Vtbl - where - Identity: IReconcilableObject_Impl, - { - unsafe extern "system" fn Reconcile(this: *mut core::ffi::c_void, pinitiator: *mut core::ffi::c_void, dwflags: u32, hwndowner: super::super::Foundation::HWND, hwndprogressfeedback: super::super::Foundation::HWND, ulcinput: u32, rgpmkotherinput: *mut *mut core::ffi::c_void, ploutindex: *mut i32, pstgnewresidues: *mut core::ffi::c_void, pvreserved: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IReconcilableObject_Impl, - { + pub const fn new() -> IReconcilableObject_Vtbl { + unsafe extern "system" fn Reconcile(this: *mut core::ffi::c_void, pinitiator: *mut core::ffi::c_void, dwflags: u32, hwndowner: super::super::Foundation::HWND, hwndprogressfeedback: super::super::Foundation::HWND, ulcinput: u32, rgpmkotherinput: *mut *mut core::ffi::c_void, ploutindex: *mut i32, pstgnewresidues: *mut core::ffi::c_void, pvreserved: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReconcilableObject_Impl::Reconcile(this, windows_core::from_raw_borrowed(&pinitiator), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&hwndowner), core::mem::transmute_copy(&hwndprogressfeedback), core::mem::transmute_copy(&ulcinput), core::mem::transmute_copy(&rgpmkotherinput), core::mem::transmute_copy(&ploutindex), windows_core::from_raw_borrowed(&pstgnewresidues), core::mem::transmute_copy(&pvreserved)).into() } - unsafe extern "system" fn GetProgressFeedbackMaxEstimate(this: *mut core::ffi::c_void, pulprogressmax: *mut u32) -> windows_core::HRESULT - where - Identity: IReconcilableObject_Impl, - { + unsafe extern "system" fn GetProgressFeedbackMaxEstimate(this: *mut core::ffi::c_void, pulprogressmax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IReconcilableObject_Impl::GetProgressFeedbackMaxEstimate(this) { Ok(ok__) => { @@ -302,27 +224,18 @@ impl IReconcilableObject_Vtbl { iid == &::IID } } -pub trait IReconcileInitiator_Impl: Sized { +pub trait IReconcileInitiator_Impl: Sized + windows_core::IUnknownImpl { fn SetAbortCallback(&self, punkforabort: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn SetProgressFeedback(&self, ulprogress: u32, ulprogressmax: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IReconcileInitiator {} impl IReconcileInitiator_Vtbl { - pub const fn new() -> IReconcileInitiator_Vtbl - where - Identity: IReconcileInitiator_Impl, - { - unsafe extern "system" fn SetAbortCallback(this: *mut core::ffi::c_void, punkforabort: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IReconcileInitiator_Impl, - { + pub const fn new() -> IReconcileInitiator_Vtbl { + unsafe extern "system" fn SetAbortCallback(this: *mut core::ffi::c_void, punkforabort: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReconcileInitiator_Impl::SetAbortCallback(this, windows_core::from_raw_borrowed(&punkforabort)).into() } - unsafe extern "system" fn SetProgressFeedback(this: *mut core::ffi::c_void, ulprogress: u32, ulprogressmax: u32) -> windows_core::HRESULT - where - Identity: IReconcileInitiator_Impl, - { + unsafe extern "system" fn SetProgressFeedback(this: *mut core::ffi::c_void, ulprogress: u32, ulprogressmax: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IReconcileInitiator_Impl::SetProgressFeedback(this, core::mem::transmute_copy(&ulprogress), core::mem::transmute_copy(&ulprogressmax)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/UI/Notifications/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Notifications/impl.rs index 1a789cd58e..979b2ae2eb 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Notifications/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Notifications/impl.rs @@ -1,16 +1,10 @@ -pub trait INotificationActivationCallback_Impl: Sized { +pub trait INotificationActivationCallback_Impl: Sized + windows_core::IUnknownImpl { fn Activate(&self, appusermodelid: &windows_core::PCWSTR, invokedargs: &windows_core::PCWSTR, data: *const NOTIFICATION_USER_INPUT_DATA, count: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INotificationActivationCallback {} impl INotificationActivationCallback_Vtbl { - pub const fn new() -> INotificationActivationCallback_Vtbl - where - Identity: INotificationActivationCallback_Impl, - { - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, appusermodelid: windows_core::PCWSTR, invokedargs: windows_core::PCWSTR, data: *const NOTIFICATION_USER_INPUT_DATA, count: u32) -> windows_core::HRESULT - where - Identity: INotificationActivationCallback_Impl, - { + pub const fn new() -> INotificationActivationCallback_Vtbl { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, appusermodelid: windows_core::PCWSTR, invokedargs: windows_core::PCWSTR, data: *const NOTIFICATION_USER_INPUT_DATA, count: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INotificationActivationCallback_Impl::Activate(this, core::mem::transmute(&appusermodelid), core::mem::transmute(&invokedargs), core::mem::transmute_copy(&data), core::mem::transmute_copy(&count)).into() } diff --git a/crates/libs/windows/src/Windows/Win32/UI/Ribbon/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Ribbon/impl.rs index 7bf6cf2e75..ac816845dd 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Ribbon/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Ribbon/impl.rs @@ -1,25 +1,16 @@ -pub trait IUIApplication_Impl: Sized { +pub trait IUIApplication_Impl: Sized + windows_core::IUnknownImpl { fn OnViewChanged(&self, viewid: u32, typeid: UI_VIEWTYPE, view: Option<&windows_core::IUnknown>, verb: UI_VIEWVERB, ureasoncode: i32) -> windows_core::Result<()>; fn OnCreateUICommand(&self, commandid: u32, typeid: UI_COMMANDTYPE) -> windows_core::Result; fn OnDestroyUICommand(&self, commandid: u32, typeid: UI_COMMANDTYPE, commandhandler: Option<&IUICommandHandler>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIApplication {} impl IUIApplication_Vtbl { - pub const fn new() -> IUIApplication_Vtbl - where - Identity: IUIApplication_Impl, - { - unsafe extern "system" fn OnViewChanged(this: *mut core::ffi::c_void, viewid: u32, typeid: UI_VIEWTYPE, view: *mut core::ffi::c_void, verb: UI_VIEWVERB, ureasoncode: i32) -> windows_core::HRESULT - where - Identity: IUIApplication_Impl, - { + pub const fn new() -> IUIApplication_Vtbl { + unsafe extern "system" fn OnViewChanged(this: *mut core::ffi::c_void, viewid: u32, typeid: UI_VIEWTYPE, view: *mut core::ffi::c_void, verb: UI_VIEWVERB, ureasoncode: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIApplication_Impl::OnViewChanged(this, core::mem::transmute_copy(&viewid), core::mem::transmute_copy(&typeid), windows_core::from_raw_borrowed(&view), core::mem::transmute_copy(&verb), core::mem::transmute_copy(&ureasoncode)).into() } - unsafe extern "system" fn OnCreateUICommand(this: *mut core::ffi::c_void, commandid: u32, typeid: UI_COMMANDTYPE, commandhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIApplication_Impl, - { + unsafe extern "system" fn OnCreateUICommand(this: *mut core::ffi::c_void, commandid: u32, typeid: UI_COMMANDTYPE, commandhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIApplication_Impl::OnCreateUICommand(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&typeid)) { Ok(ok__) => { @@ -29,10 +20,7 @@ impl IUIApplication_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnDestroyUICommand(this: *mut core::ffi::c_void, commandid: u32, typeid: UI_COMMANDTYPE, commandhandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIApplication_Impl, - { + unsafe extern "system" fn OnDestroyUICommand(this: *mut core::ffi::c_void, commandid: u32, typeid: UI_COMMANDTYPE, commandhandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIApplication_Impl::OnDestroyUICommand(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&typeid), windows_core::from_raw_borrowed(&commandhandler)).into() } @@ -47,7 +35,7 @@ impl IUIApplication_Vtbl { iid == &::IID } } -pub trait IUICollection_Impl: Sized { +pub trait IUICollection_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetItem(&self, index: u32) -> windows_core::Result; fn Add(&self, item: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -58,14 +46,8 @@ pub trait IUICollection_Impl: Sized { } impl windows_core::RuntimeName for IUICollection {} impl IUICollection_Vtbl { - pub const fn new() -> IUICollection_Vtbl - where - Identity: IUICollection_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IUICollection_Impl, - { + pub const fn new() -> IUICollection_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUICollection_Impl::GetCount(this) { Ok(ok__) => { @@ -75,10 +57,7 @@ impl IUICollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, index: u32, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICollection_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, index: u32, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUICollection_Impl::GetItem(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -88,38 +67,23 @@ impl IUICollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, item: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICollection_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, item: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUICollection_Impl::Add(this, windows_core::from_raw_borrowed(&item)).into() } - unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, index: u32, item: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICollection_Impl, - { + unsafe extern "system" fn Insert(this: *mut core::ffi::c_void, index: u32, item: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUICollection_Impl::Insert(this, core::mem::transmute_copy(&index), windows_core::from_raw_borrowed(&item)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT - where - Identity: IUICollection_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUICollection_Impl::RemoveAt(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Replace(this: *mut core::ffi::c_void, indexreplaced: u32, itemreplacewith: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICollection_Impl, - { + unsafe extern "system" fn Replace(this: *mut core::ffi::c_void, indexreplaced: u32, itemreplacewith: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUICollection_Impl::Replace(this, core::mem::transmute_copy(&indexreplaced), windows_core::from_raw_borrowed(&itemreplacewith)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUICollection_Impl::Clear(this).into() } @@ -138,19 +102,13 @@ impl IUICollection_Vtbl { iid == &::IID } } -pub trait IUICollectionChangedEvent_Impl: Sized { +pub trait IUICollectionChangedEvent_Impl: Sized + windows_core::IUnknownImpl { fn OnChanged(&self, action: UI_COLLECTIONCHANGE, oldindex: u32, olditem: Option<&windows_core::IUnknown>, newindex: u32, newitem: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUICollectionChangedEvent {} impl IUICollectionChangedEvent_Vtbl { - pub const fn new() -> IUICollectionChangedEvent_Vtbl - where - Identity: IUICollectionChangedEvent_Impl, - { - unsafe extern "system" fn OnChanged(this: *mut core::ffi::c_void, action: UI_COLLECTIONCHANGE, oldindex: u32, olditem: *mut core::ffi::c_void, newindex: u32, newitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICollectionChangedEvent_Impl, - { + pub const fn new() -> IUICollectionChangedEvent_Vtbl { + unsafe extern "system" fn OnChanged(this: *mut core::ffi::c_void, action: UI_COLLECTIONCHANGE, oldindex: u32, olditem: *mut core::ffi::c_void, newindex: u32, newitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUICollectionChangedEvent_Impl::OnChanged(this, core::mem::transmute_copy(&action), core::mem::transmute_copy(&oldindex), windows_core::from_raw_borrowed(&olditem), core::mem::transmute_copy(&newindex), windows_core::from_raw_borrowed(&newitem)).into() } @@ -161,7 +119,7 @@ impl IUICollectionChangedEvent_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IUICommandHandler_Impl: Sized { +pub trait IUICommandHandler_Impl: Sized + windows_core::IUnknownImpl { fn Execute(&self, commandid: u32, verb: UI_EXECUTIONVERB, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, currentvalue: *const windows_core::PROPVARIANT, commandexecutionproperties: Option<&IUISimplePropertySet>) -> windows_core::Result<()>; fn UpdateProperty(&self, commandid: u32, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, currentvalue: *const windows_core::PROPVARIANT) -> windows_core::Result; } @@ -169,21 +127,12 @@ pub trait IUICommandHandler_Impl: Sized { impl windows_core::RuntimeName for IUICommandHandler {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IUICommandHandler_Vtbl { - pub const fn new() -> IUICommandHandler_Vtbl - where - Identity: IUICommandHandler_Impl, - { - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, commandid: u32, verb: UI_EXECUTIONVERB, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, currentvalue: *const core::mem::MaybeUninit, commandexecutionproperties: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUICommandHandler_Impl, - { + pub const fn new() -> IUICommandHandler_Vtbl { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, commandid: u32, verb: UI_EXECUTIONVERB, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, currentvalue: *const core::mem::MaybeUninit, commandexecutionproperties: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUICommandHandler_Impl::Execute(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&verb), core::mem::transmute_copy(&key), core::mem::transmute_copy(¤tvalue), windows_core::from_raw_borrowed(&commandexecutionproperties)).into() } - unsafe extern "system" fn UpdateProperty(this: *mut core::ffi::c_void, commandid: u32, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, currentvalue: *const core::mem::MaybeUninit, newvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUICommandHandler_Impl, - { + unsafe extern "system" fn UpdateProperty(this: *mut core::ffi::c_void, commandid: u32, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, currentvalue: *const core::mem::MaybeUninit, newvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUICommandHandler_Impl::UpdateProperty(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&key), core::mem::transmute_copy(¤tvalue)) { Ok(ok__) => { @@ -203,19 +152,13 @@ impl IUICommandHandler_Vtbl { iid == &::IID } } -pub trait IUIContextualUI_Impl: Sized { +pub trait IUIContextualUI_Impl: Sized + windows_core::IUnknownImpl { fn ShowAtLocation(&self, x: i32, y: i32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIContextualUI {} impl IUIContextualUI_Vtbl { - pub const fn new() -> IUIContextualUI_Vtbl - where - Identity: IUIContextualUI_Impl, - { - unsafe extern "system" fn ShowAtLocation(this: *mut core::ffi::c_void, x: i32, y: i32) -> windows_core::HRESULT - where - Identity: IUIContextualUI_Impl, - { + pub const fn new() -> IUIContextualUI_Vtbl { + unsafe extern "system" fn ShowAtLocation(this: *mut core::ffi::c_void, x: i32, y: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIContextualUI_Impl::ShowAtLocation(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } @@ -225,19 +168,13 @@ impl IUIContextualUI_Vtbl { iid == &::IID } } -pub trait IUIEventLogger_Impl: Sized { +pub trait IUIEventLogger_Impl: Sized + windows_core::IUnknownImpl { fn OnUIEvent(&self, peventparams: *const UI_EVENTPARAMS); } impl windows_core::RuntimeName for IUIEventLogger {} impl IUIEventLogger_Vtbl { - pub const fn new() -> IUIEventLogger_Vtbl - where - Identity: IUIEventLogger_Impl, - { - unsafe extern "system" fn OnUIEvent(this: *mut core::ffi::c_void, peventparams: *const UI_EVENTPARAMS) - where - Identity: IUIEventLogger_Impl, - { + pub const fn new() -> IUIEventLogger_Vtbl { + unsafe extern "system" fn OnUIEvent(this: *mut core::ffi::c_void, peventparams: *const UI_EVENTPARAMS) { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIEventLogger_Impl::OnUIEvent(this, core::mem::transmute_copy(&peventparams)) } @@ -247,19 +184,13 @@ impl IUIEventLogger_Vtbl { iid == &::IID } } -pub trait IUIEventingManager_Impl: Sized { +pub trait IUIEventingManager_Impl: Sized + windows_core::IUnknownImpl { fn SetEventLogger(&self, eventlogger: Option<&IUIEventLogger>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUIEventingManager {} impl IUIEventingManager_Vtbl { - pub const fn new() -> IUIEventingManager_Vtbl - where - Identity: IUIEventingManager_Impl, - { - unsafe extern "system" fn SetEventLogger(this: *mut core::ffi::c_void, eventlogger: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIEventingManager_Impl, - { + pub const fn new() -> IUIEventingManager_Vtbl { + unsafe extern "system" fn SetEventLogger(this: *mut core::ffi::c_void, eventlogger: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIEventingManager_Impl::SetEventLogger(this, windows_core::from_raw_borrowed(&eventlogger)).into() } @@ -270,7 +201,7 @@ impl IUIEventingManager_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IUIFramework_Impl: Sized { +pub trait IUIFramework_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, framewnd: super::super::Foundation::HWND, application: Option<&IUIApplication>) -> windows_core::Result<()>; fn Destroy(&self) -> windows_core::Result<()>; fn LoadUI(&self, instance: super::super::Foundation::HINSTANCE, resourcename: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -285,42 +216,24 @@ pub trait IUIFramework_Impl: Sized { impl windows_core::RuntimeName for IUIFramework {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IUIFramework_Vtbl { - pub const fn new() -> IUIFramework_Vtbl - where - Identity: IUIFramework_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, framewnd: super::super::Foundation::HWND, application: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIFramework_Impl, - { + pub const fn new() -> IUIFramework_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, framewnd: super::super::Foundation::HWND, application: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIFramework_Impl::Initialize(this, core::mem::transmute_copy(&framewnd), windows_core::from_raw_borrowed(&application)).into() } - unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIFramework_Impl, - { + unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIFramework_Impl::Destroy(this).into() } - unsafe extern "system" fn LoadUI(this: *mut core::ffi::c_void, instance: super::super::Foundation::HINSTANCE, resourcename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUIFramework_Impl, - { + unsafe extern "system" fn LoadUI(this: *mut core::ffi::c_void, instance: super::super::Foundation::HINSTANCE, resourcename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIFramework_Impl::LoadUI(this, core::mem::transmute_copy(&instance), core::mem::transmute(&resourcename)).into() } - unsafe extern "system" fn GetView(this: *mut core::ffi::c_void, viewid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIFramework_Impl, - { + unsafe extern "system" fn GetView(this: *mut core::ffi::c_void, viewid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIFramework_Impl::GetView(this, core::mem::transmute_copy(&viewid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetUICommandProperty(this: *mut core::ffi::c_void, commandid: u32, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIFramework_Impl, - { + unsafe extern "system" fn GetUICommandProperty(this: *mut core::ffi::c_void, commandid: u32, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIFramework_Impl::GetUICommandProperty(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -330,31 +243,19 @@ impl IUIFramework_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUICommandProperty(this: *mut core::ffi::c_void, commandid: u32, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUIFramework_Impl, - { + unsafe extern "system" fn SetUICommandProperty(this: *mut core::ffi::c_void, commandid: u32, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, value: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIFramework_Impl::SetUICommandProperty(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn InvalidateUICommand(this: *mut core::ffi::c_void, commandid: u32, flags: UI_INVALIDATIONS, key: *const super::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IUIFramework_Impl, - { + unsafe extern "system" fn InvalidateUICommand(this: *mut core::ffi::c_void, commandid: u32, flags: UI_INVALIDATIONS, key: *const super::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIFramework_Impl::InvalidateUICommand(this, core::mem::transmute_copy(&commandid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&key)).into() } - unsafe extern "system" fn FlushPendingInvalidations(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIFramework_Impl, - { + unsafe extern "system" fn FlushPendingInvalidations(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIFramework_Impl::FlushPendingInvalidations(this).into() } - unsafe extern "system" fn SetModes(this: *mut core::ffi::c_void, imodes: i32) -> windows_core::HRESULT - where - Identity: IUIFramework_Impl, - { + unsafe extern "system" fn SetModes(this: *mut core::ffi::c_void, imodes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIFramework_Impl::SetModes(this, core::mem::transmute_copy(&imodes)).into() } @@ -376,21 +277,15 @@ impl IUIFramework_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IUIImage_Impl: Sized { +pub trait IUIImage_Impl: Sized + windows_core::IUnknownImpl { fn GetBitmap(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] impl windows_core::RuntimeName for IUIImage {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IUIImage_Vtbl { - pub const fn new() -> IUIImage_Vtbl - where - Identity: IUIImage_Impl, - { - unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, bitmap: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IUIImage_Impl, - { + pub const fn new() -> IUIImage_Vtbl { + unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, bitmap: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIImage_Impl::GetBitmap(this) { Ok(ok__) => { @@ -407,21 +302,15 @@ impl IUIImage_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IUIImageFromBitmap_Impl: Sized { +pub trait IUIImageFromBitmap_Impl: Sized + windows_core::IUnknownImpl { fn CreateImage(&self, bitmap: super::super::Graphics::Gdi::HBITMAP, options: UI_OWNERSHIP) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] impl windows_core::RuntimeName for IUIImageFromBitmap {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IUIImageFromBitmap_Vtbl { - pub const fn new() -> IUIImageFromBitmap_Vtbl - where - Identity: IUIImageFromBitmap_Impl, - { - unsafe extern "system" fn CreateImage(this: *mut core::ffi::c_void, bitmap: super::super::Graphics::Gdi::HBITMAP, options: UI_OWNERSHIP, image: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIImageFromBitmap_Impl, - { + pub const fn new() -> IUIImageFromBitmap_Vtbl { + unsafe extern "system" fn CreateImage(this: *mut core::ffi::c_void, bitmap: super::super::Graphics::Gdi::HBITMAP, options: UI_OWNERSHIP, image: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIImageFromBitmap_Impl::CreateImage(this, core::mem::transmute_copy(&bitmap), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -438,7 +327,7 @@ impl IUIImageFromBitmap_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IUIRibbon_Impl: Sized { +pub trait IUIRibbon_Impl: Sized + windows_core::IUnknownImpl { fn GetHeight(&self) -> windows_core::Result; fn LoadSettingsFromStream(&self, pstream: Option<&super::super::System::Com::IStream>) -> windows_core::Result<()>; fn SaveSettingsToStream(&self, pstream: Option<&super::super::System::Com::IStream>) -> windows_core::Result<()>; @@ -447,14 +336,8 @@ pub trait IUIRibbon_Impl: Sized { impl windows_core::RuntimeName for IUIRibbon {} #[cfg(feature = "Win32_System_Com")] impl IUIRibbon_Vtbl { - pub const fn new() -> IUIRibbon_Vtbl - where - Identity: IUIRibbon_Impl, - { - unsafe extern "system" fn GetHeight(this: *mut core::ffi::c_void, cy: *mut u32) -> windows_core::HRESULT - where - Identity: IUIRibbon_Impl, - { + pub const fn new() -> IUIRibbon_Vtbl { + unsafe extern "system" fn GetHeight(this: *mut core::ffi::c_void, cy: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIRibbon_Impl::GetHeight(this) { Ok(ok__) => { @@ -464,17 +347,11 @@ impl IUIRibbon_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LoadSettingsFromStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIRibbon_Impl, - { + unsafe extern "system" fn LoadSettingsFromStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIRibbon_Impl::LoadSettingsFromStream(this, windows_core::from_raw_borrowed(&pstream)).into() } - unsafe extern "system" fn SaveSettingsToStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIRibbon_Impl, - { + unsafe extern "system" fn SaveSettingsToStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIRibbon_Impl::SaveSettingsToStream(this, windows_core::from_raw_borrowed(&pstream)).into() } @@ -490,21 +367,15 @@ impl IUIRibbon_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IUISimplePropertySet_Impl: Sized { +pub trait IUISimplePropertySet_Impl: Sized + windows_core::IUnknownImpl { fn GetValue(&self, key: *const super::Shell::PropertiesSystem::PROPERTYKEY) -> windows_core::Result; } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl windows_core::RuntimeName for IUISimplePropertySet {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IUISimplePropertySet_Vtbl { - pub const fn new() -> IUISimplePropertySet_Vtbl - where - Identity: IUISimplePropertySet_Impl, - { - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IUISimplePropertySet_Impl, - { + pub const fn new() -> IUISimplePropertySet_Vtbl { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: *const super::Shell::PropertiesSystem::PROPERTYKEY, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUISimplePropertySet_Impl::GetValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/impl.rs index 7238c66b75..49ed5e4876 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/impl.rs @@ -1,17 +1,11 @@ -pub trait IObjectArray_Impl: Sized { +pub trait IObjectArray_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, uiindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjectArray {} impl IObjectArray_Vtbl { - pub const fn new() -> IObjectArray_Vtbl - where - Identity: IObjectArray_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcobjects: *mut u32) -> windows_core::HRESULT - where - Identity: IObjectArray_Impl, - { + pub const fn new() -> IObjectArray_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcobjects: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectArray_Impl::GetCount(this) { Ok(ok__) => { @@ -21,10 +15,7 @@ impl IObjectArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, uiindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectArray_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, uiindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectArray_Impl::GetAt(this, core::mem::transmute_copy(&uiindex), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -42,35 +33,20 @@ pub trait IObjectCollection_Impl: Sized + IObjectArray_Impl { } impl windows_core::RuntimeName for IObjectCollection {} impl IObjectCollection_Vtbl { - pub const fn new() -> IObjectCollection_Vtbl - where - Identity: IObjectCollection_Impl, - { - unsafe extern "system" fn AddObject(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectCollection_Impl, - { + pub const fn new() -> IObjectCollection_Vtbl { + unsafe extern "system" fn AddObject(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectCollection_Impl::AddObject(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn AddFromArray(this: *mut core::ffi::c_void, poasource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectCollection_Impl, - { + unsafe extern "system" fn AddFromArray(this: *mut core::ffi::c_void, poasource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectCollection_Impl::AddFromArray(this, windows_core::from_raw_borrowed(&poasource)).into() } - unsafe extern "system" fn RemoveObjectAt(this: *mut core::ffi::c_void, uiindex: u32) -> windows_core::HRESULT - where - Identity: IObjectCollection_Impl, - { + unsafe extern "system" fn RemoveObjectAt(this: *mut core::ffi::c_void, uiindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectCollection_Impl::RemoveObjectAt(this, core::mem::transmute_copy(&uiindex)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectCollection_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectCollection_Impl::Clear(this).into() } 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 85b7c14f16..03104960d2 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 @@ -1,16 +1,10 @@ -pub trait ICreateObject_Impl: Sized { +pub trait ICreateObject_Impl: Sized + windows_core::IUnknownImpl { fn CreateObject(&self, clsid: *const windows_core::GUID, punkouter: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICreateObject {} impl ICreateObject_Vtbl { - pub const fn new() -> ICreateObject_Vtbl - where - Identity: ICreateObject_Impl, - { - unsafe extern "system" fn CreateObject(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreateObject_Impl, - { + pub const fn new() -> ICreateObject_Vtbl { + unsafe extern "system" fn CreateObject(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, punkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateObject_Impl::CreateObject(this, core::mem::transmute_copy(&clsid), windows_core::from_raw_borrowed(&punkouter), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -25,14 +19,8 @@ pub trait IDelayedPropertyStoreFactory_Impl: Sized + IPropertyStoreFactory_Impl } impl windows_core::RuntimeName for IDelayedPropertyStoreFactory {} impl IDelayedPropertyStoreFactory_Vtbl { - pub const fn new() -> IDelayedPropertyStoreFactory_Vtbl - where - Identity: IDelayedPropertyStoreFactory_Impl, - { - unsafe extern "system" fn GetDelayedPropertyStore(this: *mut core::ffi::c_void, flags: GETPROPERTYSTOREFLAGS, dwstoreid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDelayedPropertyStoreFactory_Impl, - { + pub const fn new() -> IDelayedPropertyStoreFactory_Vtbl { + unsafe extern "system" fn GetDelayedPropertyStore(this: *mut core::ffi::c_void, flags: GETPROPERTYSTOREFLAGS, dwstoreid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDelayedPropertyStoreFactory_Impl::GetDelayedPropertyStore(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&dwstoreid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -42,19 +30,13 @@ impl IDelayedPropertyStoreFactory_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IInitializeWithFile_Impl: Sized { +pub trait IInitializeWithFile_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pszfilepath: &windows_core::PCWSTR, grfmode: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInitializeWithFile {} impl IInitializeWithFile_Vtbl { - pub const fn new() -> IInitializeWithFile_Vtbl - where - Identity: IInitializeWithFile_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszfilepath: windows_core::PCWSTR, grfmode: u32) -> windows_core::HRESULT - where - Identity: IInitializeWithFile_Impl, - { + pub const fn new() -> IInitializeWithFile_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszfilepath: windows_core::PCWSTR, grfmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeWithFile_Impl::Initialize(this, core::mem::transmute(&pszfilepath), core::mem::transmute_copy(&grfmode)).into() } @@ -65,21 +47,15 @@ impl IInitializeWithFile_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IInitializeWithStream_Impl: Sized { +pub trait IInitializeWithStream_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pstream: Option<&super::super::super::System::Com::IStream>, grfmode: u32) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IInitializeWithStream {} #[cfg(feature = "Win32_System_Com")] impl IInitializeWithStream_Vtbl { - pub const fn new() -> IInitializeWithStream_Vtbl - where - Identity: IInitializeWithStream_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, grfmode: u32) -> windows_core::HRESULT - where - Identity: IInitializeWithStream_Impl, - { + pub const fn new() -> IInitializeWithStream_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, grfmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeWithStream_Impl::Initialize(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&grfmode)).into() } @@ -89,7 +65,7 @@ impl IInitializeWithStream_Vtbl { iid == &::IID } } -pub trait INamedPropertyStore_Impl: Sized { +pub trait INamedPropertyStore_Impl: Sized + windows_core::IUnknownImpl { fn GetNamedValue(&self, pszname: &windows_core::PCWSTR) -> windows_core::Result; fn SetNamedValue(&self, pszname: &windows_core::PCWSTR, propvar: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; fn GetNameCount(&self) -> windows_core::Result; @@ -97,14 +73,8 @@ pub trait INamedPropertyStore_Impl: Sized { } impl windows_core::RuntimeName for INamedPropertyStore {} impl INamedPropertyStore_Vtbl { - pub const fn new() -> INamedPropertyStore_Vtbl - where - Identity: INamedPropertyStore_Impl, - { - unsafe extern "system" fn GetNamedValue(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INamedPropertyStore_Impl, - { + pub const fn new() -> INamedPropertyStore_Vtbl { + unsafe extern "system" fn GetNamedValue(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INamedPropertyStore_Impl::GetNamedValue(this, core::mem::transmute(&pszname)) { Ok(ok__) => { @@ -114,17 +84,11 @@ impl INamedPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNamedValue(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, propvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INamedPropertyStore_Impl, - { + unsafe extern "system" fn SetNamedValue(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, propvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamedPropertyStore_Impl::SetNamedValue(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&propvar)).into() } - unsafe extern "system" fn GetNameCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: INamedPropertyStore_Impl, - { + unsafe extern "system" fn GetNameCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INamedPropertyStore_Impl::GetNameCount(this) { Ok(ok__) => { @@ -134,10 +98,7 @@ impl INamedPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNameAt(this: *mut core::ffi::c_void, iprop: u32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INamedPropertyStore_Impl, - { + unsafe extern "system" fn GetNameAt(this: *mut core::ffi::c_void, iprop: u32, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INamedPropertyStore_Impl::GetNameAt(this, core::mem::transmute_copy(&iprop)) { Ok(ok__) => { @@ -159,27 +120,18 @@ impl INamedPropertyStore_Vtbl { iid == &::IID } } -pub trait IObjectWithPropertyKey_Impl: Sized { +pub trait IObjectWithPropertyKey_Impl: Sized + windows_core::IUnknownImpl { fn SetPropertyKey(&self, key: *const PROPERTYKEY) -> windows_core::Result<()>; fn GetPropertyKey(&self, pkey: *mut PROPERTYKEY) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjectWithPropertyKey {} impl IObjectWithPropertyKey_Vtbl { - pub const fn new() -> IObjectWithPropertyKey_Vtbl - where - Identity: IObjectWithPropertyKey_Impl, - { - unsafe extern "system" fn SetPropertyKey(this: *mut core::ffi::c_void, key: *const PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IObjectWithPropertyKey_Impl, - { + pub const fn new() -> IObjectWithPropertyKey_Vtbl { + unsafe extern "system" fn SetPropertyKey(this: *mut core::ffi::c_void, key: *const PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectWithPropertyKey_Impl::SetPropertyKey(this, core::mem::transmute_copy(&key)).into() } - unsafe extern "system" fn GetPropertyKey(this: *mut core::ffi::c_void, pkey: *mut PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IObjectWithPropertyKey_Impl, - { + unsafe extern "system" fn GetPropertyKey(this: *mut core::ffi::c_void, pkey: *mut PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectWithPropertyKey_Impl::GetPropertyKey(this, core::mem::transmute_copy(&pkey)).into() } @@ -193,35 +145,23 @@ impl IObjectWithPropertyKey_Vtbl { iid == &::IID } } -pub trait IPersistSerializedPropStorage_Impl: Sized { +pub trait IPersistSerializedPropStorage_Impl: Sized + windows_core::IUnknownImpl { fn SetFlags(&self, flags: i32) -> windows_core::Result<()>; fn SetPropertyStorage(&self, psps: PCUSERIALIZEDPROPSTORAGE, cb: u32) -> windows_core::Result<()>; fn GetPropertyStorage(&self, ppsps: *mut *mut SERIALIZEDPROPSTORAGE, pcb: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPersistSerializedPropStorage {} impl IPersistSerializedPropStorage_Vtbl { - pub const fn new() -> IPersistSerializedPropStorage_Vtbl - where - Identity: IPersistSerializedPropStorage_Impl, - { - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT - where - Identity: IPersistSerializedPropStorage_Impl, - { + pub const fn new() -> IPersistSerializedPropStorage_Vtbl { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistSerializedPropStorage_Impl::SetFlags(this, core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn SetPropertyStorage(this: *mut core::ffi::c_void, psps: PCUSERIALIZEDPROPSTORAGE, cb: u32) -> windows_core::HRESULT - where - Identity: IPersistSerializedPropStorage_Impl, - { + unsafe extern "system" fn SetPropertyStorage(this: *mut core::ffi::c_void, psps: PCUSERIALIZEDPROPSTORAGE, cb: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistSerializedPropStorage_Impl::SetPropertyStorage(this, core::mem::transmute_copy(&psps), core::mem::transmute_copy(&cb)).into() } - unsafe extern "system" fn GetPropertyStorage(this: *mut core::ffi::c_void, ppsps: *mut *mut SERIALIZEDPROPSTORAGE, pcb: *mut u32) -> windows_core::HRESULT - where - Identity: IPersistSerializedPropStorage_Impl, - { + unsafe extern "system" fn GetPropertyStorage(this: *mut core::ffi::c_void, ppsps: *mut *mut SERIALIZEDPROPSTORAGE, pcb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistSerializedPropStorage_Impl::GetPropertyStorage(this, core::mem::transmute_copy(&ppsps), core::mem::transmute_copy(&pcb)).into() } @@ -242,14 +182,8 @@ pub trait IPersistSerializedPropStorage2_Impl: Sized + IPersistSerializedPropSto } impl windows_core::RuntimeName for IPersistSerializedPropStorage2 {} impl IPersistSerializedPropStorage2_Vtbl { - pub const fn new() -> IPersistSerializedPropStorage2_Vtbl - where - Identity: IPersistSerializedPropStorage2_Impl, - { - unsafe extern "system" fn GetPropertyStorageSize(this: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT - where - Identity: IPersistSerializedPropStorage2_Impl, - { + pub const fn new() -> IPersistSerializedPropStorage2_Vtbl { + unsafe extern "system" fn GetPropertyStorageSize(this: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistSerializedPropStorage2_Impl::GetPropertyStorageSize(this) { Ok(ok__) => { @@ -259,10 +193,7 @@ impl IPersistSerializedPropStorage2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyStorageBuffer(this: *mut core::ffi::c_void, psps: *mut SERIALIZEDPROPSTORAGE, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT - where - Identity: IPersistSerializedPropStorage2_Impl, - { + unsafe extern "system" fn GetPropertyStorageBuffer(this: *mut core::ffi::c_void, psps: *mut SERIALIZEDPROPSTORAGE, cb: u32, pcbwritten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistSerializedPropStorage2_Impl::GetPropertyStorageBuffer(this, core::mem::transmute_copy(&psps), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbwritten)).into() } @@ -281,14 +212,8 @@ pub trait IPropertyChange_Impl: Sized + IObjectWithPropertyKey_Impl { } impl windows_core::RuntimeName for IPropertyChange {} impl IPropertyChange_Vtbl { - pub const fn new() -> IPropertyChange_Vtbl - where - Identity: IPropertyChange_Impl, - { - unsafe extern "system" fn ApplyToPropVariant(this: *mut core::ffi::c_void, propvarin: *const core::mem::MaybeUninit, ppropvarout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyChange_Impl, - { + pub const fn new() -> IPropertyChange_Vtbl { + unsafe extern "system" fn ApplyToPropVariant(this: *mut core::ffi::c_void, propvarin: *const core::mem::MaybeUninit, ppropvarout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyChange_Impl::ApplyToPropVariant(this, core::mem::transmute_copy(&propvarin)) { Ok(ok__) => { @@ -304,7 +229,7 @@ impl IPropertyChange_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPropertyChangeArray_Impl: Sized { +pub trait IPropertyChangeArray_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, iindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn InsertAt(&self, iindex: u32, ppropchange: Option<&IPropertyChange>) -> windows_core::Result<()>; @@ -315,14 +240,8 @@ pub trait IPropertyChangeArray_Impl: Sized { } impl windows_core::RuntimeName for IPropertyChangeArray {} impl IPropertyChangeArray_Vtbl { - pub const fn new() -> IPropertyChangeArray_Vtbl - where - Identity: IPropertyChangeArray_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcoperations: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyChangeArray_Impl, - { + pub const fn new() -> IPropertyChangeArray_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcoperations: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyChangeArray_Impl::GetCount(this) { Ok(ok__) => { @@ -332,45 +251,27 @@ impl IPropertyChangeArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, iindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyChangeArray_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, iindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyChangeArray_Impl::GetAt(this, core::mem::transmute_copy(&iindex), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, iindex: u32, ppropchange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyChangeArray_Impl, - { + unsafe extern "system" fn InsertAt(this: *mut core::ffi::c_void, iindex: u32, ppropchange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyChangeArray_Impl::InsertAt(this, core::mem::transmute_copy(&iindex), windows_core::from_raw_borrowed(&ppropchange)).into() } - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, ppropchange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyChangeArray_Impl, - { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, ppropchange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyChangeArray_Impl::Append(this, windows_core::from_raw_borrowed(&ppropchange)).into() } - unsafe extern "system" fn AppendOrReplace(this: *mut core::ffi::c_void, ppropchange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyChangeArray_Impl, - { + unsafe extern "system" fn AppendOrReplace(this: *mut core::ffi::c_void, ppropchange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyChangeArray_Impl::AppendOrReplace(this, windows_core::from_raw_borrowed(&ppropchange)).into() } - unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, iindex: u32) -> windows_core::HRESULT - where - Identity: IPropertyChangeArray_Impl, - { + unsafe extern "system" fn RemoveAt(this: *mut core::ffi::c_void, iindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyChangeArray_Impl::RemoveAt(this, core::mem::transmute_copy(&iindex)).into() } - unsafe extern "system" fn IsKeyInArray(this: *mut core::ffi::c_void, key: *const PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPropertyChangeArray_Impl, - { + unsafe extern "system" fn IsKeyInArray(this: *mut core::ffi::c_void, key: *const PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyChangeArray_Impl::IsKeyInArray(this, core::mem::transmute_copy(&key)).into() } @@ -390,7 +291,7 @@ impl IPropertyChangeArray_Vtbl { } } #[cfg(feature = "Win32_System_Search_Common")] -pub trait IPropertyDescription_Impl: Sized { +pub trait IPropertyDescription_Impl: Sized + windows_core::IUnknownImpl { fn GetPropertyKey(&self, pkey: *mut PROPERTYKEY) -> windows_core::Result<()>; fn GetCanonicalName(&self) -> windows_core::Result; fn GetPropertyType(&self) -> windows_core::Result; @@ -417,21 +318,12 @@ pub trait IPropertyDescription_Impl: Sized { impl windows_core::RuntimeName for IPropertyDescription {} #[cfg(feature = "Win32_System_Search_Common")] impl IPropertyDescription_Vtbl { - pub const fn new() -> IPropertyDescription_Vtbl - where - Identity: IPropertyDescription_Impl, - { - unsafe extern "system" fn GetPropertyKey(this: *mut core::ffi::c_void, pkey: *mut PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + pub const fn new() -> IPropertyDescription_Vtbl { + unsafe extern "system" fn GetPropertyKey(this: *mut core::ffi::c_void, pkey: *mut PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyDescription_Impl::GetPropertyKey(this, core::mem::transmute_copy(&pkey)).into() } - unsafe extern "system" fn GetCanonicalName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetCanonicalName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetCanonicalName(this) { Ok(ok__) => { @@ -441,10 +333,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyType(this: *mut core::ffi::c_void, pvartype: *mut u16) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetPropertyType(this: *mut core::ffi::c_void, pvartype: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetPropertyType(this) { Ok(ok__) => { @@ -454,10 +343,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetDisplayName(this) { Ok(ok__) => { @@ -467,10 +353,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEditInvitation(this: *mut core::ffi::c_void, ppszinvite: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetEditInvitation(this: *mut core::ffi::c_void, ppszinvite: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetEditInvitation(this) { Ok(ok__) => { @@ -480,10 +363,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeFlags(this: *mut core::ffi::c_void, mask: PROPDESC_TYPE_FLAGS, ppdtflags: *mut PROPDESC_TYPE_FLAGS) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetTypeFlags(this: *mut core::ffi::c_void, mask: PROPDESC_TYPE_FLAGS, ppdtflags: *mut PROPDESC_TYPE_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetTypeFlags(this, core::mem::transmute_copy(&mask)) { Ok(ok__) => { @@ -493,10 +373,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetViewFlags(this: *mut core::ffi::c_void, ppdvflags: *mut PROPDESC_VIEW_FLAGS) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetViewFlags(this: *mut core::ffi::c_void, ppdvflags: *mut PROPDESC_VIEW_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetViewFlags(this) { Ok(ok__) => { @@ -506,10 +383,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultColumnWidth(this: *mut core::ffi::c_void, pcxchars: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetDefaultColumnWidth(this: *mut core::ffi::c_void, pcxchars: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetDefaultColumnWidth(this) { Ok(ok__) => { @@ -519,10 +393,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayType(this: *mut core::ffi::c_void, pdisplaytype: *mut PROPDESC_DISPLAYTYPE) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetDisplayType(this: *mut core::ffi::c_void, pdisplaytype: *mut PROPDESC_DISPLAYTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetDisplayType(this) { Ok(ok__) => { @@ -532,10 +403,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumnState(this: *mut core::ffi::c_void, pcsflags: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetColumnState(this: *mut core::ffi::c_void, pcsflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetColumnState(this) { Ok(ok__) => { @@ -545,10 +413,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGroupingRange(this: *mut core::ffi::c_void, pgr: *mut PROPDESC_GROUPING_RANGE) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetGroupingRange(this: *mut core::ffi::c_void, pgr: *mut PROPDESC_GROUPING_RANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetGroupingRange(this) { Ok(ok__) => { @@ -558,10 +423,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRelativeDescriptionType(this: *mut core::ffi::c_void, prdt: *mut PROPDESC_RELATIVEDESCRIPTION_TYPE) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetRelativeDescriptionType(this: *mut core::ffi::c_void, prdt: *mut PROPDESC_RELATIVEDESCRIPTION_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetRelativeDescriptionType(this) { Ok(ok__) => { @@ -571,17 +433,11 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRelativeDescription(this: *mut core::ffi::c_void, propvar1: *const core::mem::MaybeUninit, propvar2: *const core::mem::MaybeUninit, ppszdesc1: *mut windows_core::PWSTR, ppszdesc2: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetRelativeDescription(this: *mut core::ffi::c_void, propvar1: *const core::mem::MaybeUninit, propvar2: *const core::mem::MaybeUninit, ppszdesc1: *mut windows_core::PWSTR, ppszdesc2: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyDescription_Impl::GetRelativeDescription(this, core::mem::transmute_copy(&propvar1), core::mem::transmute_copy(&propvar2), core::mem::transmute_copy(&ppszdesc1), core::mem::transmute_copy(&ppszdesc2)).into() } - unsafe extern "system" fn GetSortDescription(this: *mut core::ffi::c_void, psd: *mut PROPDESC_SORTDESCRIPTION) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetSortDescription(this: *mut core::ffi::c_void, psd: *mut PROPDESC_SORTDESCRIPTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetSortDescription(this) { Ok(ok__) => { @@ -591,10 +447,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSortDescriptionLabel(this: *mut core::ffi::c_void, fdescending: super::super::super::Foundation::BOOL, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetSortDescriptionLabel(this: *mut core::ffi::c_void, fdescending: super::super::super::Foundation::BOOL, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetSortDescriptionLabel(this, core::mem::transmute_copy(&fdescending)) { Ok(ok__) => { @@ -604,10 +457,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAggregationType(this: *mut core::ffi::c_void, paggtype: *mut PROPDESC_AGGREGATION_TYPE) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetAggregationType(this: *mut core::ffi::c_void, paggtype: *mut PROPDESC_AGGREGATION_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetAggregationType(this) { Ok(ok__) => { @@ -617,31 +467,19 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConditionType(this: *mut core::ffi::c_void, pcontype: *mut PROPDESC_CONDITION_TYPE, popdefault: *mut super::super::super::System::Search::Common::CONDITION_OPERATION) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetConditionType(this: *mut core::ffi::c_void, pcontype: *mut PROPDESC_CONDITION_TYPE, popdefault: *mut super::super::super::System::Search::Common::CONDITION_OPERATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyDescription_Impl::GetConditionType(this, core::mem::transmute_copy(&pcontype), core::mem::transmute_copy(&popdefault)).into() } - unsafe extern "system" fn GetEnumTypeList(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn GetEnumTypeList(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyDescription_Impl::GetEnumTypeList(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CoerceToCanonicalValue(this: *mut core::ffi::c_void, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn CoerceToCanonicalValue(this: *mut core::ffi::c_void, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyDescription_Impl::CoerceToCanonicalValue(this, core::mem::transmute_copy(&ppropvar)).into() } - unsafe extern "system" fn FormatForDisplay(this: *mut core::ffi::c_void, propvar: *const core::mem::MaybeUninit, pdfflags: PROPDESC_FORMAT_FLAGS, ppszdisplay: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn FormatForDisplay(this: *mut core::ffi::c_void, propvar: *const core::mem::MaybeUninit, pdfflags: PROPDESC_FORMAT_FLAGS, ppszdisplay: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::FormatForDisplay(this, core::mem::transmute_copy(&propvar), core::mem::transmute_copy(&pdfflags)) { Ok(ok__) => { @@ -651,10 +489,7 @@ impl IPropertyDescription_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsValueCanonical(this: *mut core::ffi::c_void, propvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyDescription_Impl, - { + unsafe extern "system" fn IsValueCanonical(this: *mut core::ffi::c_void, propvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyDescription_Impl::IsValueCanonical(this, core::mem::transmute_copy(&propvar)).into() } @@ -695,14 +530,8 @@ pub trait IPropertyDescription2_Impl: Sized + IPropertyDescription_Impl { impl windows_core::RuntimeName for IPropertyDescription2 {} #[cfg(feature = "Win32_System_Search_Common")] impl IPropertyDescription2_Vtbl { - pub const fn new() -> IPropertyDescription2_Vtbl - where - Identity: IPropertyDescription2_Impl, - { - unsafe extern "system" fn GetImageReferenceForValue(this: *mut core::ffi::c_void, propvar: *const core::mem::MaybeUninit, ppszimageres: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyDescription2_Impl, - { + pub const fn new() -> IPropertyDescription2_Vtbl { + unsafe extern "system" fn GetImageReferenceForValue(this: *mut core::ffi::c_void, propvar: *const core::mem::MaybeUninit, ppszimageres: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription2_Impl::GetImageReferenceForValue(this, core::mem::transmute_copy(&propvar)) { Ok(ok__) => { @@ -727,21 +556,12 @@ pub trait IPropertyDescriptionAliasInfo_Impl: Sized + IPropertyDescription_Impl impl windows_core::RuntimeName for IPropertyDescriptionAliasInfo {} #[cfg(feature = "Win32_System_Search_Common")] impl IPropertyDescriptionAliasInfo_Vtbl { - pub const fn new() -> IPropertyDescriptionAliasInfo_Vtbl - where - Identity: IPropertyDescriptionAliasInfo_Impl, - { - unsafe extern "system" fn GetSortByAlias(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyDescriptionAliasInfo_Impl, - { + pub const fn new() -> IPropertyDescriptionAliasInfo_Vtbl { + unsafe extern "system" fn GetSortByAlias(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyDescriptionAliasInfo_Impl::GetSortByAlias(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetAdditionalSortByAliases(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyDescriptionAliasInfo_Impl, - { + unsafe extern "system" fn GetAdditionalSortByAliases(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyDescriptionAliasInfo_Impl::GetAdditionalSortByAliases(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -755,20 +575,14 @@ impl IPropertyDescriptionAliasInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPropertyDescriptionList_Impl: Sized { +pub trait IPropertyDescriptionList_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, ielem: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPropertyDescriptionList {} impl IPropertyDescriptionList_Vtbl { - pub const fn new() -> IPropertyDescriptionList_Vtbl - where - Identity: IPropertyDescriptionList_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelem: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyDescriptionList_Impl, - { + pub const fn new() -> IPropertyDescriptionList_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcelem: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescriptionList_Impl::GetCount(this) { Ok(ok__) => { @@ -778,10 +592,7 @@ impl IPropertyDescriptionList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, ielem: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyDescriptionList_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, ielem: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyDescriptionList_Impl::GetAt(this, core::mem::transmute_copy(&ielem), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -799,14 +610,8 @@ pub trait IPropertyDescriptionRelatedPropertyInfo_Impl: Sized + IPropertyDescrip impl windows_core::RuntimeName for IPropertyDescriptionRelatedPropertyInfo {} #[cfg(feature = "Win32_System_Search_Common")] impl IPropertyDescriptionRelatedPropertyInfo_Vtbl { - pub const fn new() -> IPropertyDescriptionRelatedPropertyInfo_Vtbl - where - Identity: IPropertyDescriptionRelatedPropertyInfo_Impl, - { - unsafe extern "system" fn GetRelatedProperty(this: *mut core::ffi::c_void, pszrelationshipname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyDescriptionRelatedPropertyInfo_Impl, - { + pub const fn new() -> IPropertyDescriptionRelatedPropertyInfo_Vtbl { + unsafe extern "system" fn GetRelatedProperty(this: *mut core::ffi::c_void, pszrelationshipname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyDescriptionRelatedPropertyInfo_Impl::GetRelatedProperty(this, core::mem::transmute(&pszrelationshipname), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -827,14 +632,8 @@ pub trait IPropertyDescriptionSearchInfo_Impl: Sized + IPropertyDescription_Impl impl windows_core::RuntimeName for IPropertyDescriptionSearchInfo {} #[cfg(feature = "Win32_System_Search_Common")] impl IPropertyDescriptionSearchInfo_Vtbl { - pub const fn new() -> IPropertyDescriptionSearchInfo_Vtbl - where - Identity: IPropertyDescriptionSearchInfo_Impl, - { - unsafe extern "system" fn GetSearchInfoFlags(this: *mut core::ffi::c_void, ppdsiflags: *mut PROPDESC_SEARCHINFO_FLAGS) -> windows_core::HRESULT - where - Identity: IPropertyDescriptionSearchInfo_Impl, - { + pub const fn new() -> IPropertyDescriptionSearchInfo_Vtbl { + unsafe extern "system" fn GetSearchInfoFlags(this: *mut core::ffi::c_void, ppdsiflags: *mut PROPDESC_SEARCHINFO_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescriptionSearchInfo_Impl::GetSearchInfoFlags(this) { Ok(ok__) => { @@ -844,10 +643,7 @@ impl IPropertyDescriptionSearchInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumnIndexType(this: *mut core::ffi::c_void, ppdcitype: *mut PROPDESC_COLUMNINDEX_TYPE) -> windows_core::HRESULT - where - Identity: IPropertyDescriptionSearchInfo_Impl, - { + unsafe extern "system" fn GetColumnIndexType(this: *mut core::ffi::c_void, ppdcitype: *mut PROPDESC_COLUMNINDEX_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescriptionSearchInfo_Impl::GetColumnIndexType(this) { Ok(ok__) => { @@ -857,10 +653,7 @@ impl IPropertyDescriptionSearchInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProjectionString(this: *mut core::ffi::c_void, ppszprojection: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyDescriptionSearchInfo_Impl, - { + unsafe extern "system" fn GetProjectionString(this: *mut core::ffi::c_void, ppszprojection: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescriptionSearchInfo_Impl::GetProjectionString(this) { Ok(ok__) => { @@ -870,10 +663,7 @@ impl IPropertyDescriptionSearchInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxSize(this: *mut core::ffi::c_void, pcbmaxsize: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyDescriptionSearchInfo_Impl, - { + unsafe extern "system" fn GetMaxSize(this: *mut core::ffi::c_void, pcbmaxsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescriptionSearchInfo_Impl::GetMaxSize(this) { Ok(ok__) => { @@ -895,7 +685,7 @@ impl IPropertyDescriptionSearchInfo_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPropertyEnumType_Impl: Sized { +pub trait IPropertyEnumType_Impl: Sized + windows_core::IUnknownImpl { fn GetEnumType(&self) -> windows_core::Result; fn GetValue(&self) -> windows_core::Result; fn GetRangeMinValue(&self) -> windows_core::Result; @@ -904,14 +694,8 @@ pub trait IPropertyEnumType_Impl: Sized { } impl windows_core::RuntimeName for IPropertyEnumType {} impl IPropertyEnumType_Vtbl { - pub const fn new() -> IPropertyEnumType_Vtbl - where - Identity: IPropertyEnumType_Impl, - { - unsafe extern "system" fn GetEnumType(this: *mut core::ffi::c_void, penumtype: *mut PROPENUMTYPE) -> windows_core::HRESULT - where - Identity: IPropertyEnumType_Impl, - { + pub const fn new() -> IPropertyEnumType_Vtbl { + unsafe extern "system" fn GetEnumType(this: *mut core::ffi::c_void, penumtype: *mut PROPENUMTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyEnumType_Impl::GetEnumType(this) { Ok(ok__) => { @@ -921,10 +705,7 @@ impl IPropertyEnumType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyEnumType_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyEnumType_Impl::GetValue(this) { Ok(ok__) => { @@ -934,10 +715,7 @@ impl IPropertyEnumType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRangeMinValue(this: *mut core::ffi::c_void, ppropvarmin: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyEnumType_Impl, - { + unsafe extern "system" fn GetRangeMinValue(this: *mut core::ffi::c_void, ppropvarmin: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyEnumType_Impl::GetRangeMinValue(this) { Ok(ok__) => { @@ -947,10 +725,7 @@ impl IPropertyEnumType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRangeSetValue(this: *mut core::ffi::c_void, ppropvarset: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyEnumType_Impl, - { + unsafe extern "system" fn GetRangeSetValue(this: *mut core::ffi::c_void, ppropvarset: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyEnumType_Impl::GetRangeSetValue(this) { Ok(ok__) => { @@ -960,10 +735,7 @@ impl IPropertyEnumType_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayText(this: *mut core::ffi::c_void, ppszdisplay: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyEnumType_Impl, - { + unsafe extern "system" fn GetDisplayText(this: *mut core::ffi::c_void, ppszdisplay: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyEnumType_Impl::GetDisplayText(this) { Ok(ok__) => { @@ -991,14 +763,8 @@ pub trait IPropertyEnumType2_Impl: Sized + IPropertyEnumType_Impl { } impl windows_core::RuntimeName for IPropertyEnumType2 {} impl IPropertyEnumType2_Vtbl { - pub const fn new() -> IPropertyEnumType2_Vtbl - where - Identity: IPropertyEnumType2_Impl, - { - unsafe extern "system" fn GetImageReference(this: *mut core::ffi::c_void, ppszimageres: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertyEnumType2_Impl, - { + pub const fn new() -> IPropertyEnumType2_Vtbl { + unsafe extern "system" fn GetImageReference(this: *mut core::ffi::c_void, ppszimageres: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyEnumType2_Impl::GetImageReference(this) { Ok(ok__) => { @@ -1014,7 +780,7 @@ impl IPropertyEnumType2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPropertyEnumTypeList_Impl: Sized { +pub trait IPropertyEnumTypeList_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, itype: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetConditionAt(&self, nindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -1022,14 +788,8 @@ pub trait IPropertyEnumTypeList_Impl: Sized { } impl windows_core::RuntimeName for IPropertyEnumTypeList {} impl IPropertyEnumTypeList_Vtbl { - pub const fn new() -> IPropertyEnumTypeList_Vtbl - where - Identity: IPropertyEnumTypeList_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pctypes: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyEnumTypeList_Impl, - { + pub const fn new() -> IPropertyEnumTypeList_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pctypes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyEnumTypeList_Impl::GetCount(this) { Ok(ok__) => { @@ -1039,24 +799,15 @@ impl IPropertyEnumTypeList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, itype: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyEnumTypeList_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, itype: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyEnumTypeList_Impl::GetAt(this, core::mem::transmute_copy(&itype), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetConditionAt(this: *mut core::ffi::c_void, nindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyEnumTypeList_Impl, - { + unsafe extern "system" fn GetConditionAt(this: *mut core::ffi::c_void, nindex: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyEnumTypeList_Impl::GetConditionAt(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn FindMatchingIndex(this: *mut core::ffi::c_void, propvarcmp: *const core::mem::MaybeUninit, pnindex: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyEnumTypeList_Impl, - { + unsafe extern "system" fn FindMatchingIndex(this: *mut core::ffi::c_void, propvarcmp: *const core::mem::MaybeUninit, pnindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyEnumTypeList_Impl::FindMatchingIndex(this, core::mem::transmute_copy(&propvarcmp)) { Ok(ok__) => { @@ -1078,7 +829,7 @@ impl IPropertyEnumTypeList_Vtbl { iid == &::IID } } -pub trait IPropertyStore_Impl: Sized { +pub trait IPropertyStore_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, iprop: u32, pkey: *mut PROPERTYKEY) -> windows_core::Result<()>; fn GetValue(&self, key: *const PROPERTYKEY) -> windows_core::Result; @@ -1087,14 +838,8 @@ pub trait IPropertyStore_Impl: Sized { } impl windows_core::RuntimeName for IPropertyStore {} impl IPropertyStore_Vtbl { - pub const fn new() -> IPropertyStore_Vtbl - where - Identity: IPropertyStore_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, cprops: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyStore_Impl, - { + pub const fn new() -> IPropertyStore_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, cprops: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyStore_Impl::GetCount(this) { Ok(ok__) => { @@ -1104,17 +849,11 @@ impl IPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, iprop: u32, pkey: *mut PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPropertyStore_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, iprop: u32, pkey: *mut PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStore_Impl::GetAt(this, core::mem::transmute_copy(&iprop), core::mem::transmute_copy(&pkey)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, pv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyStore_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, pv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyStore_Impl::GetValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -1124,17 +863,11 @@ impl IPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, propvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPropertyStore_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, propvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStore_Impl::SetValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&propvar)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyStore_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStore_Impl::Commit(this).into() } @@ -1159,14 +892,8 @@ pub trait IPropertyStoreCache_Impl: Sized + IPropertyStore_Impl { } impl windows_core::RuntimeName for IPropertyStoreCache {} impl IPropertyStoreCache_Vtbl { - pub const fn new() -> IPropertyStoreCache_Vtbl - where - Identity: IPropertyStoreCache_Impl, - { - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, pstate: *mut PSC_STATE) -> windows_core::HRESULT - where - Identity: IPropertyStoreCache_Impl, - { + pub const fn new() -> IPropertyStoreCache_Vtbl { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, pstate: *mut PSC_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyStoreCache_Impl::GetState(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -1176,24 +903,15 @@ impl IPropertyStoreCache_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValueAndState(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit, pstate: *mut PSC_STATE) -> windows_core::HRESULT - where - Identity: IPropertyStoreCache_Impl, - { + unsafe extern "system" fn GetValueAndState(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit, pstate: *mut PSC_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStoreCache_Impl::GetValueAndState(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&ppropvar), core::mem::transmute_copy(&pstate)).into() } - unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, state: PSC_STATE) -> windows_core::HRESULT - where - Identity: IPropertyStoreCache_Impl, - { + unsafe extern "system" fn SetState(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, state: PSC_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStoreCache_Impl::SetState(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn SetValueAndState(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, ppropvar: *const core::mem::MaybeUninit, state: PSC_STATE) -> windows_core::HRESULT - where - Identity: IPropertyStoreCache_Impl, - { + unsafe extern "system" fn SetValueAndState(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, ppropvar: *const core::mem::MaybeUninit, state: PSC_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStoreCache_Impl::SetValueAndState(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&ppropvar), core::mem::transmute_copy(&state)).into() } @@ -1209,19 +927,13 @@ impl IPropertyStoreCache_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPropertyStoreCapabilities_Impl: Sized { +pub trait IPropertyStoreCapabilities_Impl: Sized + windows_core::IUnknownImpl { fn IsPropertyWritable(&self, key: *const PROPERTYKEY) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPropertyStoreCapabilities {} impl IPropertyStoreCapabilities_Vtbl { - pub const fn new() -> IPropertyStoreCapabilities_Vtbl - where - Identity: IPropertyStoreCapabilities_Impl, - { - unsafe extern "system" fn IsPropertyWritable(this: *mut core::ffi::c_void, key: *const PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPropertyStoreCapabilities_Impl, - { + pub const fn new() -> IPropertyStoreCapabilities_Vtbl { + unsafe extern "system" fn IsPropertyWritable(this: *mut core::ffi::c_void, key: *const PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStoreCapabilities_Impl::IsPropertyWritable(this, core::mem::transmute_copy(&key)).into() } @@ -1231,27 +943,18 @@ impl IPropertyStoreCapabilities_Vtbl { iid == &::IID } } -pub trait IPropertyStoreFactory_Impl: Sized { +pub trait IPropertyStoreFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetPropertyStore(&self, flags: GETPROPERTYSTOREFLAGS, punkfactory: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetPropertyStoreForKeys(&self, rgkeys: *const PROPERTYKEY, ckeys: u32, flags: GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPropertyStoreFactory {} impl IPropertyStoreFactory_Vtbl { - pub const fn new() -> IPropertyStoreFactory_Vtbl - where - Identity: IPropertyStoreFactory_Impl, - { - unsafe extern "system" fn GetPropertyStore(this: *mut core::ffi::c_void, flags: GETPROPERTYSTOREFLAGS, punkfactory: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyStoreFactory_Impl, - { + pub const fn new() -> IPropertyStoreFactory_Vtbl { + unsafe extern "system" fn GetPropertyStore(this: *mut core::ffi::c_void, flags: GETPROPERTYSTOREFLAGS, punkfactory: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStoreFactory_Impl::GetPropertyStore(this, core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&punkfactory), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetPropertyStoreForKeys(this: *mut core::ffi::c_void, rgkeys: *const PROPERTYKEY, ckeys: u32, flags: GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertyStoreFactory_Impl, - { + unsafe extern "system" fn GetPropertyStoreForKeys(this: *mut core::ffi::c_void, rgkeys: *const PROPERTYKEY, ckeys: u32, flags: GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyStoreFactory_Impl::GetPropertyStoreForKeys(this, core::mem::transmute_copy(&rgkeys), core::mem::transmute_copy(&ckeys), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -1265,7 +968,7 @@ impl IPropertyStoreFactory_Vtbl { iid == &::IID } } -pub trait IPropertySystem_Impl: Sized { +pub trait IPropertySystem_Impl: Sized + windows_core::IUnknownImpl { fn GetPropertyDescription(&self, propkey: *const PROPERTYKEY, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetPropertyDescriptionByName(&self, pszcanonicalname: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetPropertyDescriptionListFromString(&self, pszproplist: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -1278,49 +981,28 @@ pub trait IPropertySystem_Impl: Sized { } impl windows_core::RuntimeName for IPropertySystem {} impl IPropertySystem_Vtbl { - pub const fn new() -> IPropertySystem_Vtbl - where - Identity: IPropertySystem_Impl, - { - unsafe extern "system" fn GetPropertyDescription(this: *mut core::ffi::c_void, propkey: *const PROPERTYKEY, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySystem_Impl, - { + pub const fn new() -> IPropertySystem_Vtbl { + unsafe extern "system" fn GetPropertyDescription(this: *mut core::ffi::c_void, propkey: *const PROPERTYKEY, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySystem_Impl::GetPropertyDescription(this, core::mem::transmute_copy(&propkey), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetPropertyDescriptionByName(this: *mut core::ffi::c_void, pszcanonicalname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySystem_Impl, - { + unsafe extern "system" fn GetPropertyDescriptionByName(this: *mut core::ffi::c_void, pszcanonicalname: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySystem_Impl::GetPropertyDescriptionByName(this, core::mem::transmute(&pszcanonicalname), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetPropertyDescriptionListFromString(this: *mut core::ffi::c_void, pszproplist: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySystem_Impl, - { + unsafe extern "system" fn GetPropertyDescriptionListFromString(this: *mut core::ffi::c_void, pszproplist: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySystem_Impl::GetPropertyDescriptionListFromString(this, core::mem::transmute(&pszproplist), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn EnumeratePropertyDescriptions(this: *mut core::ffi::c_void, filteron: PROPDESC_ENUMFILTER, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySystem_Impl, - { + unsafe extern "system" fn EnumeratePropertyDescriptions(this: *mut core::ffi::c_void, filteron: PROPDESC_ENUMFILTER, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySystem_Impl::EnumeratePropertyDescriptions(this, core::mem::transmute_copy(&filteron), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn FormatForDisplay(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, propvar: *const core::mem::MaybeUninit, pdff: PROPDESC_FORMAT_FLAGS, psztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: IPropertySystem_Impl, - { + unsafe extern "system" fn FormatForDisplay(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, propvar: *const core::mem::MaybeUninit, pdff: PROPDESC_FORMAT_FLAGS, psztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySystem_Impl::FormatForDisplay(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&propvar), core::mem::transmute_copy(&pdff), core::mem::transmute_copy(&psztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn FormatForDisplayAlloc(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, propvar: *const core::mem::MaybeUninit, pdff: PROPDESC_FORMAT_FLAGS, ppszdisplay: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPropertySystem_Impl, - { + unsafe extern "system" fn FormatForDisplayAlloc(this: *mut core::ffi::c_void, key: *const PROPERTYKEY, propvar: *const core::mem::MaybeUninit, pdff: PROPDESC_FORMAT_FLAGS, ppszdisplay: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertySystem_Impl::FormatForDisplayAlloc(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&propvar), core::mem::transmute_copy(&pdff)) { Ok(ok__) => { @@ -1330,24 +1012,15 @@ impl IPropertySystem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterPropertySchema(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPropertySystem_Impl, - { + unsafe extern "system" fn RegisterPropertySchema(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySystem_Impl::RegisterPropertySchema(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn UnregisterPropertySchema(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPropertySystem_Impl, - { + unsafe extern "system" fn UnregisterPropertySchema(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySystem_Impl::UnregisterPropertySchema(this, core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn RefreshPropertySchema(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySystem_Impl, - { + unsafe extern "system" fn RefreshPropertySchema(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySystem_Impl::RefreshPropertySchema(this).into() } @@ -1368,19 +1041,13 @@ impl IPropertySystem_Vtbl { iid == &::IID } } -pub trait IPropertySystemChangeNotify_Impl: Sized { +pub trait IPropertySystemChangeNotify_Impl: Sized + windows_core::IUnknownImpl { fn SchemaRefreshed(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPropertySystemChangeNotify {} impl IPropertySystemChangeNotify_Vtbl { - pub const fn new() -> IPropertySystemChangeNotify_Vtbl - where - Identity: IPropertySystemChangeNotify_Impl, - { - unsafe extern "system" fn SchemaRefreshed(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPropertySystemChangeNotify_Impl, - { + pub const fn new() -> IPropertySystemChangeNotify_Vtbl { + unsafe extern "system" fn SchemaRefreshed(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySystemChangeNotify_Impl::SchemaRefreshed(this).into() } @@ -1390,7 +1057,7 @@ impl IPropertySystemChangeNotify_Vtbl { iid == &::IID } } -pub trait IPropertyUI_Impl: Sized { +pub trait IPropertyUI_Impl: Sized + windows_core::IUnknownImpl { fn ParsePropertyName(&self, pszname: &windows_core::PCWSTR, pfmtid: *mut windows_core::GUID, ppid: *mut u32, pcheaten: *mut u32) -> windows_core::Result<()>; fn GetCannonicalName(&self, fmtid: *const windows_core::GUID, pid: u32, pwsztext: windows_core::PWSTR, cchtext: u32) -> windows_core::Result<()>; fn GetDisplayName(&self, fmtid: *const windows_core::GUID, pid: u32, flags: PROPERTYUI_NAME_FLAGS, pwsztext: windows_core::PWSTR, cchtext: u32) -> windows_core::Result<()>; @@ -1402,42 +1069,24 @@ pub trait IPropertyUI_Impl: Sized { } impl windows_core::RuntimeName for IPropertyUI {} impl IPropertyUI_Vtbl { - pub const fn new() -> IPropertyUI_Vtbl - where - Identity: IPropertyUI_Impl, - { - unsafe extern "system" fn ParsePropertyName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pfmtid: *mut windows_core::GUID, ppid: *mut u32, pcheaten: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyUI_Impl, - { + pub const fn new() -> IPropertyUI_Vtbl { + unsafe extern "system" fn ParsePropertyName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pfmtid: *mut windows_core::GUID, ppid: *mut u32, pcheaten: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyUI_Impl::ParsePropertyName(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&pfmtid), core::mem::transmute_copy(&ppid), core::mem::transmute_copy(&pcheaten)).into() } - unsafe extern "system" fn GetCannonicalName(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, pwsztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: IPropertyUI_Impl, - { + unsafe extern "system" fn GetCannonicalName(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, pwsztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyUI_Impl::GetCannonicalName(this, core::mem::transmute_copy(&fmtid), core::mem::transmute_copy(&pid), core::mem::transmute_copy(&pwsztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, flags: PROPERTYUI_NAME_FLAGS, pwsztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: IPropertyUI_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, flags: PROPERTYUI_NAME_FLAGS, pwsztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyUI_Impl::GetDisplayName(this, core::mem::transmute_copy(&fmtid), core::mem::transmute_copy(&pid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&pwsztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn GetPropertyDescription(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, pwsztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: IPropertyUI_Impl, - { + unsafe extern "system" fn GetPropertyDescription(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, pwsztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyUI_Impl::GetPropertyDescription(this, core::mem::transmute_copy(&fmtid), core::mem::transmute_copy(&pid), core::mem::transmute_copy(&pwsztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn GetDefaultWidth(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, pcxchars: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyUI_Impl, - { + unsafe extern "system" fn GetDefaultWidth(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, pcxchars: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyUI_Impl::GetDefaultWidth(this, core::mem::transmute_copy(&fmtid), core::mem::transmute_copy(&pid)) { Ok(ok__) => { @@ -1447,10 +1096,7 @@ impl IPropertyUI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, pflags: *mut PROPERTYUI_FLAGS) -> windows_core::HRESULT - where - Identity: IPropertyUI_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, pflags: *mut PROPERTYUI_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyUI_Impl::GetFlags(this, core::mem::transmute_copy(&fmtid), core::mem::transmute_copy(&pid)) { Ok(ok__) => { @@ -1460,17 +1106,11 @@ impl IPropertyUI_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FormatForDisplay(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, ppropvar: *const core::mem::MaybeUninit, puiff: PROPERTYUI_FORMAT_FLAGS, pwsztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: IPropertyUI_Impl, - { + unsafe extern "system" fn FormatForDisplay(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, ppropvar: *const core::mem::MaybeUninit, puiff: PROPERTYUI_FORMAT_FLAGS, pwsztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyUI_Impl::FormatForDisplay(this, core::mem::transmute_copy(&fmtid), core::mem::transmute_copy(&pid), core::mem::transmute_copy(&ppropvar), core::mem::transmute_copy(&puiff), core::mem::transmute_copy(&pwsztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn GetHelpInfo(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, pwszhelpfile: windows_core::PWSTR, cch: u32, puhelpid: *mut u32) -> windows_core::HRESULT - where - Identity: IPropertyUI_Impl, - { + unsafe extern "system" fn GetHelpInfo(this: *mut core::ffi::c_void, fmtid: *const windows_core::GUID, pid: u32, pwszhelpfile: windows_core::PWSTR, cch: u32, puhelpid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyUI_Impl::GetHelpInfo(this, core::mem::transmute_copy(&fmtid), core::mem::transmute_copy(&pid), core::mem::transmute_copy(&pwszhelpfile), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&puhelpid)).into() } 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 d3aab5115f..4ecc347746 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs @@ -7,21 +7,12 @@ pub trait CIE4ConnectionPoint_Impl: Sized + super::super::System::Com::IConnecti impl windows_core::RuntimeName for CIE4ConnectionPoint {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl CIE4ConnectionPoint_Vtbl { - pub const fn new() -> CIE4ConnectionPoint_Vtbl - where - Identity: CIE4ConnectionPoint_Impl, - { - unsafe extern "system" fn DoInvokeIE4(this: *mut core::ffi::c_void, pf: *mut super::super::Foundation::BOOL, ppv: *mut *mut core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> windows_core::HRESULT - where - Identity: CIE4ConnectionPoint_Impl, - { + pub const fn new() -> CIE4ConnectionPoint_Vtbl { + unsafe extern "system" fn DoInvokeIE4(this: *mut core::ffi::c_void, pf: *mut super::super::Foundation::BOOL, ppv: *mut *mut core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); CIE4ConnectionPoint_Impl::DoInvokeIE4(this, core::mem::transmute_copy(&pf), core::mem::transmute_copy(&ppv), core::mem::transmute_copy(&dispid), core::mem::transmute_copy(&pdispparams)).into() } - unsafe extern "system" fn DoInvokePIDLIE4(this: *mut core::ffi::c_void, dispid: i32, pidl: *mut Common::ITEMIDLIST, fcancancel: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: CIE4ConnectionPoint_Impl, - { + unsafe extern "system" fn DoInvokePIDLIE4(this: *mut core::ffi::c_void, dispid: i32, pidl: *mut Common::ITEMIDLIST, fcancancel: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); CIE4ConnectionPoint_Impl::DoInvokePIDLIE4(this, core::mem::transmute_copy(&dispid), core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&fcancancel)).into() } @@ -44,14 +35,8 @@ pub trait DFConstraint_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for DFConstraint {} #[cfg(feature = "Win32_System_Com")] impl DFConstraint_Vtbl { - pub const fn new() -> DFConstraint_Vtbl - where - Identity: DFConstraint_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: DFConstraint_Impl, - { + pub const fn new() -> DFConstraint_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match DFConstraint_Impl::Name(this) { Ok(ok__) => { @@ -61,10 +46,7 @@ impl DFConstraint_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: DFConstraint_Impl, - { + unsafe extern "system" fn Value(this: *mut core::ffi::c_void, pv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match DFConstraint_Impl::Value(this) { Ok(ok__) => { @@ -86,10 +68,7 @@ pub trait DShellFolderViewEvents_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for DShellFolderViewEvents {} #[cfg(feature = "Win32_System_Com")] impl DShellFolderViewEvents_Vtbl { - pub const fn new() -> DShellFolderViewEvents_Vtbl - where - Identity: DShellFolderViewEvents_Impl, - { + pub const fn new() -> DShellFolderViewEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -102,10 +81,7 @@ pub trait DShellNameSpaceEvents_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for DShellNameSpaceEvents {} #[cfg(feature = "Win32_System_Com")] impl DShellNameSpaceEvents_Vtbl { - pub const fn new() -> DShellNameSpaceEvents_Vtbl - where - Identity: DShellNameSpaceEvents_Impl, - { + pub const fn new() -> DShellNameSpaceEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -118,10 +94,7 @@ pub trait DShellWindowsEvents_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for DShellWindowsEvents {} #[cfg(feature = "Win32_System_Com")] impl DShellWindowsEvents_Vtbl { - pub const fn new() -> DShellWindowsEvents_Vtbl - where - Identity: DShellWindowsEvents_Impl, - { + pub const fn new() -> DShellWindowsEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -134,10 +107,7 @@ pub trait DWebBrowserEvents_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for DWebBrowserEvents {} #[cfg(feature = "Win32_System_Com")] impl DWebBrowserEvents_Vtbl { - pub const fn new() -> DWebBrowserEvents_Vtbl - where - Identity: DWebBrowserEvents_Impl, - { + pub const fn new() -> DWebBrowserEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -150,10 +120,7 @@ pub trait DWebBrowserEvents2_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for DWebBrowserEvents2 {} #[cfg(feature = "Win32_System_Com")] impl DWebBrowserEvents2_Vtbl { - pub const fn new() -> DWebBrowserEvents2_Vtbl - where - Identity: DWebBrowserEvents2_Impl, - { + pub const fn new() -> DWebBrowserEvents2_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -177,14 +144,8 @@ pub trait Folder_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for Folder {} #[cfg(feature = "Win32_System_Com")] impl Folder_Vtbl { - pub const fn new() -> Folder_Vtbl - where - Identity: Folder_Impl, - { - unsafe extern "system" fn Title(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Folder_Impl, - { + pub const fn new() -> Folder_Vtbl { + unsafe extern "system" fn Title(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder_Impl::Title(this) { Ok(ok__) => { @@ -194,10 +155,7 @@ impl Folder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Folder_Impl, - { + unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder_Impl::Application(this) { Ok(ok__) => { @@ -207,10 +165,7 @@ impl Folder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Folder_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder_Impl::Parent(this) { Ok(ok__) => { @@ -220,10 +175,7 @@ impl Folder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParentFolder(this: *mut core::ffi::c_void, ppsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Folder_Impl, - { + unsafe extern "system" fn ParentFolder(this: *mut core::ffi::c_void, ppsf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder_Impl::ParentFolder(this) { Ok(ok__) => { @@ -233,10 +185,7 @@ impl Folder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Items(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Folder_Impl, - { + unsafe extern "system" fn Items(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder_Impl::Items(this) { Ok(ok__) => { @@ -246,10 +195,7 @@ impl Folder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ParseName(this: *mut core::ffi::c_void, bname: core::mem::MaybeUninit, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Folder_Impl, - { + unsafe extern "system" fn ParseName(this: *mut core::ffi::c_void, bname: core::mem::MaybeUninit, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder_Impl::ParseName(this, core::mem::transmute(&bname)) { Ok(ok__) => { @@ -259,31 +205,19 @@ impl Folder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NewFolder(this: *mut core::ffi::c_void, bname: core::mem::MaybeUninit, voptions: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Folder_Impl, - { + unsafe extern "system" fn NewFolder(this: *mut core::ffi::c_void, bname: core::mem::MaybeUninit, voptions: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Folder_Impl::NewFolder(this, core::mem::transmute(&bname), core::mem::transmute(&voptions)).into() } - unsafe extern "system" fn MoveHere(this: *mut core::ffi::c_void, vitem: core::mem::MaybeUninit, voptions: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Folder_Impl, - { + unsafe extern "system" fn MoveHere(this: *mut core::ffi::c_void, vitem: core::mem::MaybeUninit, voptions: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Folder_Impl::MoveHere(this, core::mem::transmute(&vitem), core::mem::transmute(&voptions)).into() } - unsafe extern "system" fn CopyHere(this: *mut core::ffi::c_void, vitem: core::mem::MaybeUninit, voptions: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Folder_Impl, - { + unsafe extern "system" fn CopyHere(this: *mut core::ffi::c_void, vitem: core::mem::MaybeUninit, voptions: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Folder_Impl::CopyHere(this, core::mem::transmute(&vitem), core::mem::transmute(&voptions)).into() } - unsafe extern "system" fn GetDetailsOf(this: *mut core::ffi::c_void, vitem: core::mem::MaybeUninit, icolumn: i32, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Folder_Impl, - { + unsafe extern "system" fn GetDetailsOf(this: *mut core::ffi::c_void, vitem: core::mem::MaybeUninit, icolumn: i32, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder_Impl::GetDetailsOf(this, core::mem::transmute(&vitem), core::mem::transmute_copy(&icolumn)) { Ok(ok__) => { @@ -323,14 +257,8 @@ pub trait Folder2_Impl: Sized + Folder_Impl { impl windows_core::RuntimeName for Folder2 {} #[cfg(feature = "Win32_System_Com")] impl Folder2_Vtbl { - pub const fn new() -> Folder2_Vtbl - where - Identity: Folder2_Impl, - { - unsafe extern "system" fn Self_(this: *mut core::ffi::c_void, ppfi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Folder2_Impl, - { + pub const fn new() -> Folder2_Vtbl { + unsafe extern "system" fn Self_(this: *mut core::ffi::c_void, ppfi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder2_Impl::Self_(this) { Ok(ok__) => { @@ -340,10 +268,7 @@ impl Folder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OfflineStatus(this: *mut core::ffi::c_void, pul: *mut i32) -> windows_core::HRESULT - where - Identity: Folder2_Impl, - { + unsafe extern "system" fn OfflineStatus(this: *mut core::ffi::c_void, pul: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder2_Impl::OfflineStatus(this) { Ok(ok__) => { @@ -353,17 +278,11 @@ impl Folder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Folder2_Impl, - { + unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Folder2_Impl::Synchronize(this).into() } - unsafe extern "system" fn HaveToShowWebViewBarricade(this: *mut core::ffi::c_void, pbhavetoshowwebviewbarricade: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: Folder2_Impl, - { + unsafe extern "system" fn HaveToShowWebViewBarricade(this: *mut core::ffi::c_void, pbhavetoshowwebviewbarricade: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder2_Impl::HaveToShowWebViewBarricade(this) { Ok(ok__) => { @@ -373,10 +292,7 @@ impl Folder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DismissedWebViewBarricade(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Folder2_Impl, - { + unsafe extern "system" fn DismissedWebViewBarricade(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Folder2_Impl::DismissedWebViewBarricade(this).into() } @@ -402,14 +318,8 @@ pub trait Folder3_Impl: Sized + Folder2_Impl { impl windows_core::RuntimeName for Folder3 {} #[cfg(feature = "Win32_System_Com")] impl Folder3_Vtbl { - pub const fn new() -> Folder3_Vtbl - where - Identity: Folder3_Impl, - { - unsafe extern "system" fn ShowWebViewBarricade(this: *mut core::ffi::c_void, pbshowwebviewbarricade: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: Folder3_Impl, - { + pub const fn new() -> Folder3_Vtbl { + unsafe extern "system" fn ShowWebViewBarricade(this: *mut core::ffi::c_void, pbshowwebviewbarricade: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Folder3_Impl::ShowWebViewBarricade(this) { Ok(ok__) => { @@ -419,10 +329,7 @@ impl Folder3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowWebViewBarricade(this: *mut core::ffi::c_void, bshowwebviewbarricade: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: Folder3_Impl, - { + unsafe extern "system" fn SetShowWebViewBarricade(this: *mut core::ffi::c_void, bshowwebviewbarricade: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Folder3_Impl::SetShowWebViewBarricade(this, core::mem::transmute_copy(&bshowwebviewbarricade)).into() } @@ -460,14 +367,8 @@ pub trait FolderItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for FolderItem {} #[cfg(feature = "Win32_System_Com")] impl FolderItem_Vtbl { - pub const fn new() -> FolderItem_Vtbl - where - Identity: FolderItem_Impl, - { - unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + pub const fn new() -> FolderItem_Vtbl { + unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::Application(this) { Ok(ok__) => { @@ -477,10 +378,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::Parent(this) { Ok(ok__) => { @@ -490,10 +388,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::Name(this) { Ok(ok__) => { @@ -503,17 +398,11 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn SetName(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); FolderItem_Impl::SetName(this, core::mem::transmute(&bs)).into() } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::Path(this) { Ok(ok__) => { @@ -523,10 +412,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLink(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn GetLink(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::GetLink(this) { Ok(ok__) => { @@ -536,10 +422,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::GetFolder(this) { Ok(ok__) => { @@ -549,10 +432,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLink(this: *mut core::ffi::c_void, pb: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn IsLink(this: *mut core::ffi::c_void, pb: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::IsLink(this) { Ok(ok__) => { @@ -562,10 +442,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFolder(this: *mut core::ffi::c_void, pb: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn IsFolder(this: *mut core::ffi::c_void, pb: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::IsFolder(this) { Ok(ok__) => { @@ -575,10 +452,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsFileSystem(this: *mut core::ffi::c_void, pb: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn IsFileSystem(this: *mut core::ffi::c_void, pb: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::IsFileSystem(this) { Ok(ok__) => { @@ -588,10 +462,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsBrowsable(this: *mut core::ffi::c_void, pb: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn IsBrowsable(this: *mut core::ffi::c_void, pb: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::IsBrowsable(this) { Ok(ok__) => { @@ -601,10 +472,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifyDate(this: *mut core::ffi::c_void, pdt: *mut f64) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn ModifyDate(this: *mut core::ffi::c_void, pdt: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::ModifyDate(this) { Ok(ok__) => { @@ -614,17 +482,11 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetModifyDate(this: *mut core::ffi::c_void, dt: f64) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn SetModifyDate(this: *mut core::ffi::c_void, dt: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); FolderItem_Impl::SetModifyDate(this, core::mem::transmute_copy(&dt)).into() } - unsafe extern "system" fn Size(this: *mut core::ffi::c_void, pul: *mut i32) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn Size(this: *mut core::ffi::c_void, pul: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::Size(this) { Ok(ok__) => { @@ -634,10 +496,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::Type(this) { Ok(ok__) => { @@ -647,10 +506,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Verbs(this: *mut core::ffi::c_void, ppfic: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn Verbs(this: *mut core::ffi::c_void, ppfic: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem_Impl::Verbs(this) { Ok(ok__) => { @@ -660,10 +516,7 @@ impl FolderItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InvokeVerb(this: *mut core::ffi::c_void, vverb: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: FolderItem_Impl, - { + unsafe extern "system" fn InvokeVerb(this: *mut core::ffi::c_void, vverb: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); FolderItem_Impl::InvokeVerb(this, core::mem::transmute(&vverb)).into() } @@ -701,21 +554,12 @@ pub trait FolderItem2_Impl: Sized + FolderItem_Impl { impl windows_core::RuntimeName for FolderItem2 {} #[cfg(feature = "Win32_System_Com")] impl FolderItem2_Vtbl { - pub const fn new() -> FolderItem2_Vtbl - where - Identity: FolderItem2_Impl, - { - unsafe extern "system" fn InvokeVerbEx(this: *mut core::ffi::c_void, vverb: core::mem::MaybeUninit, vargs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: FolderItem2_Impl, - { + pub const fn new() -> FolderItem2_Vtbl { + unsafe extern "system" fn InvokeVerbEx(this: *mut core::ffi::c_void, vverb: core::mem::MaybeUninit, vargs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); FolderItem2_Impl::InvokeVerbEx(this, core::mem::transmute(&vverb), core::mem::transmute(&vargs)).into() } - unsafe extern "system" fn ExtendedProperty(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pvret: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: FolderItem2_Impl, - { + unsafe extern "system" fn ExtendedProperty(this: *mut core::ffi::c_void, bstrpropname: core::mem::MaybeUninit, pvret: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItem2_Impl::ExtendedProperty(this, core::mem::transmute(&bstrpropname)) { Ok(ok__) => { @@ -746,14 +590,8 @@ pub trait FolderItemVerb_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for FolderItemVerb {} #[cfg(feature = "Win32_System_Com")] impl FolderItemVerb_Vtbl { - pub const fn new() -> FolderItemVerb_Vtbl - where - Identity: FolderItemVerb_Impl, - { - unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItemVerb_Impl, - { + pub const fn new() -> FolderItemVerb_Vtbl { + unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItemVerb_Impl::Application(this) { Ok(ok__) => { @@ -763,10 +601,7 @@ impl FolderItemVerb_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItemVerb_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItemVerb_Impl::Parent(this) { Ok(ok__) => { @@ -776,10 +611,7 @@ impl FolderItemVerb_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: FolderItemVerb_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItemVerb_Impl::Name(this) { Ok(ok__) => { @@ -789,10 +621,7 @@ impl FolderItemVerb_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DoIt(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItemVerb_Impl, - { + unsafe extern "system" fn DoIt(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); FolderItemVerb_Impl::DoIt(this).into() } @@ -820,14 +649,8 @@ pub trait FolderItemVerbs_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for FolderItemVerbs {} #[cfg(feature = "Win32_System_Com")] impl FolderItemVerbs_Vtbl { - pub const fn new() -> FolderItemVerbs_Vtbl - where - Identity: FolderItemVerbs_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: FolderItemVerbs_Impl, - { + pub const fn new() -> FolderItemVerbs_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItemVerbs_Impl::Count(this) { Ok(ok__) => { @@ -837,10 +660,7 @@ impl FolderItemVerbs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItemVerbs_Impl, - { + unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItemVerbs_Impl::Application(this) { Ok(ok__) => { @@ -850,10 +670,7 @@ impl FolderItemVerbs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItemVerbs_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItemVerbs_Impl::Parent(this) { Ok(ok__) => { @@ -863,10 +680,7 @@ impl FolderItemVerbs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItemVerbs_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItemVerbs_Impl::Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -876,10 +690,7 @@ impl FolderItemVerbs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItemVerbs_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItemVerbs_Impl::_NewEnum(this) { Ok(ok__) => { @@ -914,14 +725,8 @@ pub trait FolderItems_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for FolderItems {} #[cfg(feature = "Win32_System_Com")] impl FolderItems_Vtbl { - pub const fn new() -> FolderItems_Vtbl - where - Identity: FolderItems_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: FolderItems_Impl, - { + pub const fn new() -> FolderItems_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItems_Impl::Count(this) { Ok(ok__) => { @@ -931,10 +736,7 @@ impl FolderItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItems_Impl, - { + unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItems_Impl::Application(this) { Ok(ok__) => { @@ -944,10 +746,7 @@ impl FolderItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItems_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItems_Impl::Parent(this) { Ok(ok__) => { @@ -957,10 +756,7 @@ impl FolderItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItems_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItems_Impl::Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -970,10 +766,7 @@ impl FolderItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItems_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItems_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1004,14 +797,8 @@ pub trait FolderItems2_Impl: Sized + FolderItems_Impl { impl windows_core::RuntimeName for FolderItems2 {} #[cfg(feature = "Win32_System_Com")] impl FolderItems2_Vtbl { - pub const fn new() -> FolderItems2_Vtbl - where - Identity: FolderItems2_Impl, - { - unsafe extern "system" fn InvokeVerbEx(this: *mut core::ffi::c_void, vverb: core::mem::MaybeUninit, vargs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: FolderItems2_Impl, - { + pub const fn new() -> FolderItems2_Vtbl { + unsafe extern "system" fn InvokeVerbEx(this: *mut core::ffi::c_void, vverb: core::mem::MaybeUninit, vargs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); FolderItems2_Impl::InvokeVerbEx(this, core::mem::transmute(&vverb), core::mem::transmute(&vargs)).into() } @@ -1030,21 +817,12 @@ pub trait FolderItems3_Impl: Sized + FolderItems2_Impl { impl windows_core::RuntimeName for FolderItems3 {} #[cfg(feature = "Win32_System_Com")] impl FolderItems3_Vtbl { - pub const fn new() -> FolderItems3_Vtbl - where - Identity: FolderItems3_Impl, - { - unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, grfflags: i32, bstrfilespec: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: FolderItems3_Impl, - { + pub const fn new() -> FolderItems3_Vtbl { + unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, grfflags: i32, bstrfilespec: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); FolderItems3_Impl::Filter(this, core::mem::transmute_copy(&grfflags), core::mem::transmute(&bstrfilespec)).into() } - unsafe extern "system" fn Verbs(this: *mut core::ffi::c_void, ppfic: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: FolderItems3_Impl, - { + unsafe extern "system" fn Verbs(this: *mut core::ffi::c_void, ppfic: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match FolderItems3_Impl::Verbs(this) { Ok(ok__) => { @@ -1060,19 +838,13 @@ impl FolderItems3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IACList_Impl: Sized { +pub trait IACList_Impl: Sized + windows_core::IUnknownImpl { fn Expand(&self, pszexpand: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IACList {} impl IACList_Vtbl { - pub const fn new() -> IACList_Vtbl - where - Identity: IACList_Impl, - { - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, pszexpand: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IACList_Impl, - { + pub const fn new() -> IACList_Vtbl { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, pszexpand: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IACList_Impl::Expand(this, core::mem::transmute(&pszexpand)).into() } @@ -1088,21 +860,12 @@ pub trait IACList2_Impl: Sized + IACList_Impl { } impl windows_core::RuntimeName for IACList2 {} impl IACList2_Vtbl { - pub const fn new() -> IACList2_Vtbl - where - Identity: IACList2_Impl, - { - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, dwflag: u32) -> windows_core::HRESULT - where - Identity: IACList2_Impl, - { + pub const fn new() -> IACList2_Vtbl { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, dwflag: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IACList2_Impl::SetOptions(this, core::mem::transmute_copy(&dwflag)).into() } - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, pdwflag: *mut u32) -> windows_core::HRESULT - where - Identity: IACList2_Impl, - { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, pdwflag: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IACList2_Impl::GetOptions(this) { Ok(ok__) => { @@ -1119,7 +882,7 @@ impl IACList2_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IAccessibilityDockingService_Impl: Sized { +pub trait IAccessibilityDockingService_Impl: Sized + windows_core::IUnknownImpl { fn GetAvailableSize(&self, hmonitor: super::super::Graphics::Gdi::HMONITOR, pcxfixed: *mut u32, pcymax: *mut u32) -> windows_core::Result<()>; fn DockWindow(&self, hwnd: super::super::Foundation::HWND, hmonitor: super::super::Graphics::Gdi::HMONITOR, cyrequested: u32, pcallback: Option<&IAccessibilityDockingServiceCallback>) -> windows_core::Result<()>; fn UndockWindow(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; @@ -1128,28 +891,16 @@ pub trait IAccessibilityDockingService_Impl: Sized { impl windows_core::RuntimeName for IAccessibilityDockingService {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IAccessibilityDockingService_Vtbl { - pub const fn new() -> IAccessibilityDockingService_Vtbl - where - Identity: IAccessibilityDockingService_Impl, - { - unsafe extern "system" fn GetAvailableSize(this: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR, pcxfixed: *mut u32, pcymax: *mut u32) -> windows_core::HRESULT - where - Identity: IAccessibilityDockingService_Impl, - { + pub const fn new() -> IAccessibilityDockingService_Vtbl { + unsafe extern "system" fn GetAvailableSize(this: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR, pcxfixed: *mut u32, pcymax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessibilityDockingService_Impl::GetAvailableSize(this, core::mem::transmute_copy(&hmonitor), core::mem::transmute_copy(&pcxfixed), core::mem::transmute_copy(&pcymax)).into() } - unsafe extern "system" fn DockWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, hmonitor: super::super::Graphics::Gdi::HMONITOR, cyrequested: u32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccessibilityDockingService_Impl, - { + unsafe extern "system" fn DockWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, hmonitor: super::super::Graphics::Gdi::HMONITOR, cyrequested: u32, pcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessibilityDockingService_Impl::DockWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&hmonitor), core::mem::transmute_copy(&cyrequested), windows_core::from_raw_borrowed(&pcallback)).into() } - unsafe extern "system" fn UndockWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IAccessibilityDockingService_Impl, - { + unsafe extern "system" fn UndockWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessibilityDockingService_Impl::UndockWindow(this, core::mem::transmute_copy(&hwnd)).into() } @@ -1164,19 +915,13 @@ impl IAccessibilityDockingService_Vtbl { iid == &::IID } } -pub trait IAccessibilityDockingServiceCallback_Impl: Sized { +pub trait IAccessibilityDockingServiceCallback_Impl: Sized + windows_core::IUnknownImpl { fn Undocked(&self, undockreason: UNDOCK_REASON) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAccessibilityDockingServiceCallback {} impl IAccessibilityDockingServiceCallback_Vtbl { - pub const fn new() -> IAccessibilityDockingServiceCallback_Vtbl - where - Identity: IAccessibilityDockingServiceCallback_Impl, - { - unsafe extern "system" fn Undocked(this: *mut core::ffi::c_void, undockreason: UNDOCK_REASON) -> windows_core::HRESULT - where - Identity: IAccessibilityDockingServiceCallback_Impl, - { + pub const fn new() -> IAccessibilityDockingServiceCallback_Vtbl { + unsafe extern "system" fn Undocked(this: *mut core::ffi::c_void, undockreason: UNDOCK_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessibilityDockingServiceCallback_Impl::Undocked(this, core::mem::transmute_copy(&undockreason)).into() } @@ -1186,19 +931,13 @@ impl IAccessibilityDockingServiceCallback_Vtbl { iid == &::IID } } -pub trait IAccessibleObject_Impl: Sized { +pub trait IAccessibleObject_Impl: Sized + windows_core::IUnknownImpl { fn SetAccessibleName(&self, pszname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAccessibleObject {} impl IAccessibleObject_Vtbl { - pub const fn new() -> IAccessibleObject_Vtbl - where - Identity: IAccessibleObject_Impl, - { - unsafe extern "system" fn SetAccessibleName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAccessibleObject_Impl, - { + pub const fn new() -> IAccessibleObject_Vtbl { + unsafe extern "system" fn SetAccessibleName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccessibleObject_Impl::SetAccessibleName(this, core::mem::transmute(&pszname)).into() } @@ -1208,7 +947,7 @@ impl IAccessibleObject_Vtbl { iid == &::IID } } -pub trait IActionProgress_Impl: Sized { +pub trait IActionProgress_Impl: Sized + windows_core::IUnknownImpl { fn Begin(&self, action: SPACTION, flags: u32) -> windows_core::Result<()>; fn UpdateProgress(&self, ulcompleted: u64, ultotal: u64) -> windows_core::Result<()>; fn UpdateText(&self, sptext: SPTEXT, psztext: &windows_core::PCWSTR, fmaycompact: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -1218,35 +957,20 @@ pub trait IActionProgress_Impl: Sized { } impl windows_core::RuntimeName for IActionProgress {} impl IActionProgress_Vtbl { - pub const fn new() -> IActionProgress_Vtbl - where - Identity: IActionProgress_Impl, - { - unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, action: SPACTION, flags: u32) -> windows_core::HRESULT - where - Identity: IActionProgress_Impl, - { + pub const fn new() -> IActionProgress_Vtbl { + unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, action: SPACTION, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionProgress_Impl::Begin(this, core::mem::transmute_copy(&action), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn UpdateProgress(this: *mut core::ffi::c_void, ulcompleted: u64, ultotal: u64) -> windows_core::HRESULT - where - Identity: IActionProgress_Impl, - { + unsafe extern "system" fn UpdateProgress(this: *mut core::ffi::c_void, ulcompleted: u64, ultotal: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionProgress_Impl::UpdateProgress(this, core::mem::transmute_copy(&ulcompleted), core::mem::transmute_copy(&ultotal)).into() } - unsafe extern "system" fn UpdateText(this: *mut core::ffi::c_void, sptext: SPTEXT, psztext: windows_core::PCWSTR, fmaycompact: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActionProgress_Impl, - { + unsafe extern "system" fn UpdateText(this: *mut core::ffi::c_void, sptext: SPTEXT, psztext: windows_core::PCWSTR, fmaycompact: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionProgress_Impl::UpdateText(this, core::mem::transmute_copy(&sptext), core::mem::transmute(&psztext), core::mem::transmute_copy(&fmaycompact)).into() } - unsafe extern "system" fn QueryCancel(this: *mut core::ffi::c_void, pfcancelled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IActionProgress_Impl, - { + unsafe extern "system" fn QueryCancel(this: *mut core::ffi::c_void, pfcancelled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActionProgress_Impl::QueryCancel(this) { Ok(ok__) => { @@ -1256,17 +980,11 @@ impl IActionProgress_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResetCancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActionProgress_Impl, - { + unsafe extern "system" fn ResetCancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionProgress_Impl::ResetCancel(this).into() } - unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActionProgress_Impl, - { + unsafe extern "system" fn End(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionProgress_Impl::End(this).into() } @@ -1284,27 +1002,18 @@ impl IActionProgress_Vtbl { iid == &::IID } } -pub trait IActionProgressDialog_Impl: Sized { +pub trait IActionProgressDialog_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, flags: u32, psztitle: &windows_core::PCWSTR, pszcancel: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActionProgressDialog {} impl IActionProgressDialog_Vtbl { - pub const fn new() -> IActionProgressDialog_Vtbl - where - Identity: IActionProgressDialog_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, flags: u32, psztitle: windows_core::PCWSTR, pszcancel: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IActionProgressDialog_Impl, - { + pub const fn new() -> IActionProgressDialog_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, flags: u32, psztitle: windows_core::PCWSTR, pszcancel: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionProgressDialog_Impl::Initialize(this, core::mem::transmute_copy(&flags), core::mem::transmute(&psztitle), core::mem::transmute(&pszcancel)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActionProgressDialog_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionProgressDialog_Impl::Stop(this).into() } @@ -1315,7 +1024,7 @@ impl IActionProgressDialog_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IAppActivationUIInfo_Impl: Sized { +pub trait IAppActivationUIInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetMonitor(&self) -> windows_core::Result; fn GetInvokePoint(&self) -> windows_core::Result; fn GetShowCommand(&self) -> windows_core::Result; @@ -1326,14 +1035,8 @@ pub trait IAppActivationUIInfo_Impl: Sized { impl windows_core::RuntimeName for IAppActivationUIInfo {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IAppActivationUIInfo_Vtbl { - pub const fn new() -> IAppActivationUIInfo_Vtbl - where - Identity: IAppActivationUIInfo_Impl, - { - unsafe extern "system" fn GetMonitor(this: *mut core::ffi::c_void, value: *mut super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT - where - Identity: IAppActivationUIInfo_Impl, - { + pub const fn new() -> IAppActivationUIInfo_Vtbl { + unsafe extern "system" fn GetMonitor(this: *mut core::ffi::c_void, value: *mut super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppActivationUIInfo_Impl::GetMonitor(this) { Ok(ok__) => { @@ -1343,10 +1046,7 @@ impl IAppActivationUIInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInvokePoint(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IAppActivationUIInfo_Impl, - { + unsafe extern "system" fn GetInvokePoint(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppActivationUIInfo_Impl::GetInvokePoint(this) { Ok(ok__) => { @@ -1356,10 +1056,7 @@ impl IAppActivationUIInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetShowCommand(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IAppActivationUIInfo_Impl, - { + unsafe extern "system" fn GetShowCommand(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppActivationUIInfo_Impl::GetShowCommand(this) { Ok(ok__) => { @@ -1369,10 +1066,7 @@ impl IAppActivationUIInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetShowUI(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppActivationUIInfo_Impl, - { + unsafe extern "system" fn GetShowUI(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppActivationUIInfo_Impl::GetShowUI(this) { Ok(ok__) => { @@ -1382,10 +1076,7 @@ impl IAppActivationUIInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyState(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT - where - Identity: IAppActivationUIInfo_Impl, - { + unsafe extern "system" fn GetKeyState(this: *mut core::ffi::c_void, value: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppActivationUIInfo_Impl::GetKeyState(this) { Ok(ok__) => { @@ -1408,7 +1099,7 @@ impl IAppActivationUIInfo_Vtbl { iid == &::IID } } -pub trait IAppPublisher_Impl: Sized { +pub trait IAppPublisher_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberOfCategories(&self) -> windows_core::Result; fn GetCategories(&self) -> windows_core::Result; fn GetNumberOfApps(&self) -> windows_core::Result; @@ -1416,14 +1107,8 @@ pub trait IAppPublisher_Impl: Sized { } impl windows_core::RuntimeName for IAppPublisher {} impl IAppPublisher_Vtbl { - pub const fn new() -> IAppPublisher_Vtbl - where - Identity: IAppPublisher_Impl, - { - unsafe extern "system" fn GetNumberOfCategories(this: *mut core::ffi::c_void, pdwcat: *mut u32) -> windows_core::HRESULT - where - Identity: IAppPublisher_Impl, - { + pub const fn new() -> IAppPublisher_Vtbl { + unsafe extern "system" fn GetNumberOfCategories(this: *mut core::ffi::c_void, pdwcat: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppPublisher_Impl::GetNumberOfCategories(this) { Ok(ok__) => { @@ -1433,10 +1118,7 @@ impl IAppPublisher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCategories(this: *mut core::ffi::c_void, pappcategorylist: *mut APPCATEGORYINFOLIST) -> windows_core::HRESULT - where - Identity: IAppPublisher_Impl, - { + unsafe extern "system" fn GetCategories(this: *mut core::ffi::c_void, pappcategorylist: *mut APPCATEGORYINFOLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppPublisher_Impl::GetCategories(this) { Ok(ok__) => { @@ -1446,10 +1128,7 @@ impl IAppPublisher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOfApps(this: *mut core::ffi::c_void, pdwapps: *mut u32) -> windows_core::HRESULT - where - Identity: IAppPublisher_Impl, - { + unsafe extern "system" fn GetNumberOfApps(this: *mut core::ffi::c_void, pdwapps: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppPublisher_Impl::GetNumberOfApps(this) { Ok(ok__) => { @@ -1459,10 +1138,7 @@ impl IAppPublisher_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumApps(this: *mut core::ffi::c_void, pappcategoryid: *const windows_core::GUID, ppepa: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAppPublisher_Impl, - { + unsafe extern "system" fn EnumApps(this: *mut core::ffi::c_void, pappcategoryid: *const windows_core::GUID, ppepa: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppPublisher_Impl::EnumApps(this, core::mem::transmute_copy(&pappcategoryid)) { Ok(ok__) => { @@ -1485,7 +1161,7 @@ impl IAppPublisher_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IAppVisibility_Impl: Sized { +pub trait IAppVisibility_Impl: Sized + windows_core::IUnknownImpl { fn GetAppVisibilityOnMonitor(&self, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result; fn IsLauncherVisible(&self) -> windows_core::Result; fn Advise(&self, pcallback: Option<&IAppVisibilityEvents>) -> windows_core::Result; @@ -1495,14 +1171,8 @@ pub trait IAppVisibility_Impl: Sized { impl windows_core::RuntimeName for IAppVisibility {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IAppVisibility_Vtbl { - pub const fn new() -> IAppVisibility_Vtbl - where - Identity: IAppVisibility_Impl, - { - unsafe extern "system" fn GetAppVisibilityOnMonitor(this: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR, pmode: *mut MONITOR_APP_VISIBILITY) -> windows_core::HRESULT - where - Identity: IAppVisibility_Impl, - { + pub const fn new() -> IAppVisibility_Vtbl { + unsafe extern "system" fn GetAppVisibilityOnMonitor(this: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR, pmode: *mut MONITOR_APP_VISIBILITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppVisibility_Impl::GetAppVisibilityOnMonitor(this, core::mem::transmute_copy(&hmonitor)) { Ok(ok__) => { @@ -1512,10 +1182,7 @@ impl IAppVisibility_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsLauncherVisible(this: *mut core::ffi::c_void, pfvisible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppVisibility_Impl, - { + unsafe extern "system" fn IsLauncherVisible(this: *mut core::ffi::c_void, pfvisible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppVisibility_Impl::IsLauncherVisible(this) { Ok(ok__) => { @@ -1525,10 +1192,7 @@ impl IAppVisibility_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IAppVisibility_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pcallback: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppVisibility_Impl::Advise(this, windows_core::from_raw_borrowed(&pcallback)) { Ok(ok__) => { @@ -1538,10 +1202,7 @@ impl IAppVisibility_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IAppVisibility_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppVisibility_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -1558,7 +1219,7 @@ impl IAppVisibility_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IAppVisibilityEvents_Impl: Sized { +pub trait IAppVisibilityEvents_Impl: Sized + windows_core::IUnknownImpl { fn AppVisibilityOnMonitorChanged(&self, hmonitor: super::super::Graphics::Gdi::HMONITOR, previousmode: MONITOR_APP_VISIBILITY, currentmode: MONITOR_APP_VISIBILITY) -> windows_core::Result<()>; fn LauncherVisibilityChange(&self, currentvisiblestate: super::super::Foundation::BOOL) -> windows_core::Result<()>; } @@ -1566,21 +1227,12 @@ pub trait IAppVisibilityEvents_Impl: Sized { impl windows_core::RuntimeName for IAppVisibilityEvents {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IAppVisibilityEvents_Vtbl { - pub const fn new() -> IAppVisibilityEvents_Vtbl - where - Identity: IAppVisibilityEvents_Impl, - { - unsafe extern "system" fn AppVisibilityOnMonitorChanged(this: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR, previousmode: MONITOR_APP_VISIBILITY, currentmode: MONITOR_APP_VISIBILITY) -> windows_core::HRESULT - where - Identity: IAppVisibilityEvents_Impl, - { + pub const fn new() -> IAppVisibilityEvents_Vtbl { + unsafe extern "system" fn AppVisibilityOnMonitorChanged(this: *mut core::ffi::c_void, hmonitor: super::super::Graphics::Gdi::HMONITOR, previousmode: MONITOR_APP_VISIBILITY, currentmode: MONITOR_APP_VISIBILITY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppVisibilityEvents_Impl::AppVisibilityOnMonitorChanged(this, core::mem::transmute_copy(&hmonitor), core::mem::transmute_copy(&previousmode), core::mem::transmute_copy(¤tmode)).into() } - unsafe extern "system" fn LauncherVisibilityChange(this: *mut core::ffi::c_void, currentvisiblestate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAppVisibilityEvents_Impl, - { + unsafe extern "system" fn LauncherVisibilityChange(this: *mut core::ffi::c_void, currentvisiblestate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppVisibilityEvents_Impl::LauncherVisibilityChange(this, core::mem::transmute_copy(¤tvisiblestate)).into() } @@ -1594,21 +1246,15 @@ impl IAppVisibilityEvents_Vtbl { iid == &::IID } } -pub trait IApplicationActivationManager_Impl: Sized { +pub trait IApplicationActivationManager_Impl: Sized + windows_core::IUnknownImpl { fn ActivateApplication(&self, appusermodelid: &windows_core::PCWSTR, arguments: &windows_core::PCWSTR, options: ACTIVATEOPTIONS) -> windows_core::Result; fn ActivateForFile(&self, appusermodelid: &windows_core::PCWSTR, itemarray: Option<&IShellItemArray>, verb: &windows_core::PCWSTR) -> windows_core::Result; fn ActivateForProtocol(&self, appusermodelid: &windows_core::PCWSTR, itemarray: Option<&IShellItemArray>) -> windows_core::Result; } impl windows_core::RuntimeName for IApplicationActivationManager {} impl IApplicationActivationManager_Vtbl { - pub const fn new() -> IApplicationActivationManager_Vtbl - where - Identity: IApplicationActivationManager_Impl, - { - unsafe extern "system" fn ActivateApplication(this: *mut core::ffi::c_void, appusermodelid: windows_core::PCWSTR, arguments: windows_core::PCWSTR, options: ACTIVATEOPTIONS, processid: *mut u32) -> windows_core::HRESULT - where - Identity: IApplicationActivationManager_Impl, - { + pub const fn new() -> IApplicationActivationManager_Vtbl { + unsafe extern "system" fn ActivateApplication(this: *mut core::ffi::c_void, appusermodelid: windows_core::PCWSTR, arguments: windows_core::PCWSTR, options: ACTIVATEOPTIONS, processid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationActivationManager_Impl::ActivateApplication(this, core::mem::transmute(&appusermodelid), core::mem::transmute(&arguments), core::mem::transmute_copy(&options)) { Ok(ok__) => { @@ -1618,10 +1264,7 @@ impl IApplicationActivationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivateForFile(this: *mut core::ffi::c_void, appusermodelid: windows_core::PCWSTR, itemarray: *mut core::ffi::c_void, verb: windows_core::PCWSTR, processid: *mut u32) -> windows_core::HRESULT - where - Identity: IApplicationActivationManager_Impl, - { + unsafe extern "system" fn ActivateForFile(this: *mut core::ffi::c_void, appusermodelid: windows_core::PCWSTR, itemarray: *mut core::ffi::c_void, verb: windows_core::PCWSTR, processid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationActivationManager_Impl::ActivateForFile(this, core::mem::transmute(&appusermodelid), windows_core::from_raw_borrowed(&itemarray), core::mem::transmute(&verb)) { Ok(ok__) => { @@ -1631,10 +1274,7 @@ impl IApplicationActivationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivateForProtocol(this: *mut core::ffi::c_void, appusermodelid: windows_core::PCWSTR, itemarray: *mut core::ffi::c_void, processid: *mut u32) -> windows_core::HRESULT - where - Identity: IApplicationActivationManager_Impl, - { + unsafe extern "system" fn ActivateForProtocol(this: *mut core::ffi::c_void, appusermodelid: windows_core::PCWSTR, itemarray: *mut core::ffi::c_void, processid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationActivationManager_Impl::ActivateForProtocol(this, core::mem::transmute(&appusermodelid), windows_core::from_raw_borrowed(&itemarray)) { Ok(ok__) => { @@ -1655,7 +1295,7 @@ impl IApplicationActivationManager_Vtbl { iid == &::IID } } -pub trait IApplicationAssociationRegistration_Impl: Sized { +pub trait IApplicationAssociationRegistration_Impl: Sized + windows_core::IUnknownImpl { fn QueryCurrentDefault(&self, pszquery: &windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL) -> windows_core::Result; fn QueryAppIsDefault(&self, pszquery: &windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: &windows_core::PCWSTR) -> windows_core::Result; fn QueryAppIsDefaultAll(&self, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: &windows_core::PCWSTR) -> windows_core::Result; @@ -1665,14 +1305,8 @@ pub trait IApplicationAssociationRegistration_Impl: Sized { } impl windows_core::RuntimeName for IApplicationAssociationRegistration {} impl IApplicationAssociationRegistration_Vtbl { - pub const fn new() -> IApplicationAssociationRegistration_Vtbl - where - Identity: IApplicationAssociationRegistration_Impl, - { - unsafe extern "system" fn QueryCurrentDefault(this: *mut core::ffi::c_void, pszquery: windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, ppszassociation: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IApplicationAssociationRegistration_Impl, - { + pub const fn new() -> IApplicationAssociationRegistration_Vtbl { + unsafe extern "system" fn QueryCurrentDefault(this: *mut core::ffi::c_void, pszquery: windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, ppszassociation: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationAssociationRegistration_Impl::QueryCurrentDefault(this, core::mem::transmute(&pszquery), core::mem::transmute_copy(&atquerytype), core::mem::transmute_copy(&alquerylevel)) { Ok(ok__) => { @@ -1682,10 +1316,7 @@ impl IApplicationAssociationRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryAppIsDefault(this: *mut core::ffi::c_void, pszquery: windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: windows_core::PCWSTR, pfdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IApplicationAssociationRegistration_Impl, - { + unsafe extern "system" fn QueryAppIsDefault(this: *mut core::ffi::c_void, pszquery: windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: windows_core::PCWSTR, pfdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationAssociationRegistration_Impl::QueryAppIsDefault(this, core::mem::transmute(&pszquery), core::mem::transmute_copy(&atquerytype), core::mem::transmute_copy(&alquerylevel), core::mem::transmute(&pszappregistryname)) { Ok(ok__) => { @@ -1695,10 +1326,7 @@ impl IApplicationAssociationRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryAppIsDefaultAll(this: *mut core::ffi::c_void, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: windows_core::PCWSTR, pfdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IApplicationAssociationRegistration_Impl, - { + unsafe extern "system" fn QueryAppIsDefaultAll(this: *mut core::ffi::c_void, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: windows_core::PCWSTR, pfdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationAssociationRegistration_Impl::QueryAppIsDefaultAll(this, core::mem::transmute_copy(&alquerylevel), core::mem::transmute(&pszappregistryname)) { Ok(ok__) => { @@ -1708,24 +1336,15 @@ impl IApplicationAssociationRegistration_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAppAsDefault(this: *mut core::ffi::c_void, pszappregistryname: windows_core::PCWSTR, pszset: windows_core::PCWSTR, atsettype: ASSOCIATIONTYPE) -> windows_core::HRESULT - where - Identity: IApplicationAssociationRegistration_Impl, - { + unsafe extern "system" fn SetAppAsDefault(this: *mut core::ffi::c_void, pszappregistryname: windows_core::PCWSTR, pszset: windows_core::PCWSTR, atsettype: ASSOCIATIONTYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationAssociationRegistration_Impl::SetAppAsDefault(this, core::mem::transmute(&pszappregistryname), core::mem::transmute(&pszset), core::mem::transmute_copy(&atsettype)).into() } - unsafe extern "system" fn SetAppAsDefaultAll(this: *mut core::ffi::c_void, pszappregistryname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IApplicationAssociationRegistration_Impl, - { + unsafe extern "system" fn SetAppAsDefaultAll(this: *mut core::ffi::c_void, pszappregistryname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationAssociationRegistration_Impl::SetAppAsDefaultAll(this, core::mem::transmute(&pszappregistryname)).into() } - unsafe extern "system" fn ClearUserAssociations(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApplicationAssociationRegistration_Impl, - { + unsafe extern "system" fn ClearUserAssociations(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationAssociationRegistration_Impl::ClearUserAssociations(this).into() } @@ -1743,19 +1362,13 @@ impl IApplicationAssociationRegistration_Vtbl { iid == &::IID } } -pub trait IApplicationAssociationRegistrationUI_Impl: Sized { +pub trait IApplicationAssociationRegistrationUI_Impl: Sized + windows_core::IUnknownImpl { fn LaunchAdvancedAssociationUI(&self, pszappregistryname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IApplicationAssociationRegistrationUI {} impl IApplicationAssociationRegistrationUI_Vtbl { - pub const fn new() -> IApplicationAssociationRegistrationUI_Vtbl - where - Identity: IApplicationAssociationRegistrationUI_Impl, - { - unsafe extern "system" fn LaunchAdvancedAssociationUI(this: *mut core::ffi::c_void, pszappregistryname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IApplicationAssociationRegistrationUI_Impl, - { + pub const fn new() -> IApplicationAssociationRegistrationUI_Vtbl { + unsafe extern "system" fn LaunchAdvancedAssociationUI(this: *mut core::ffi::c_void, pszappregistryname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationAssociationRegistrationUI_Impl::LaunchAdvancedAssociationUI(this, core::mem::transmute(&pszappregistryname)).into() } @@ -1766,7 +1379,7 @@ impl IApplicationAssociationRegistrationUI_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IApplicationDesignModeSettings_Impl: Sized { +pub trait IApplicationDesignModeSettings_Impl: Sized + windows_core::IUnknownImpl { fn SetNativeDisplaySize(&self, nativedisplaysizepixels: &super::super::Foundation::SIZE) -> windows_core::Result<()>; fn SetScaleFactor(&self, scalefactor: Common::DEVICE_SCALE_FACTOR) -> windows_core::Result<()>; fn SetApplicationViewState(&self, viewstate: APPLICATION_VIEW_STATE) -> windows_core::Result<()>; @@ -1778,35 +1391,20 @@ pub trait IApplicationDesignModeSettings_Impl: Sized { impl windows_core::RuntimeName for IApplicationDesignModeSettings {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IApplicationDesignModeSettings_Vtbl { - pub const fn new() -> IApplicationDesignModeSettings_Vtbl - where - Identity: IApplicationDesignModeSettings_Impl, - { - unsafe extern "system" fn SetNativeDisplaySize(this: *mut core::ffi::c_void, nativedisplaysizepixels: super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings_Impl, - { + pub const fn new() -> IApplicationDesignModeSettings_Vtbl { + unsafe extern "system" fn SetNativeDisplaySize(this: *mut core::ffi::c_void, nativedisplaysizepixels: super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings_Impl::SetNativeDisplaySize(this, core::mem::transmute(&nativedisplaysizepixels)).into() } - unsafe extern "system" fn SetScaleFactor(this: *mut core::ffi::c_void, scalefactor: Common::DEVICE_SCALE_FACTOR) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings_Impl, - { + unsafe extern "system" fn SetScaleFactor(this: *mut core::ffi::c_void, scalefactor: Common::DEVICE_SCALE_FACTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings_Impl::SetScaleFactor(this, core::mem::transmute_copy(&scalefactor)).into() } - unsafe extern "system" fn SetApplicationViewState(this: *mut core::ffi::c_void, viewstate: APPLICATION_VIEW_STATE) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings_Impl, - { + unsafe extern "system" fn SetApplicationViewState(this: *mut core::ffi::c_void, viewstate: APPLICATION_VIEW_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings_Impl::SetApplicationViewState(this, core::mem::transmute_copy(&viewstate)).into() } - unsafe extern "system" fn ComputeApplicationSize(this: *mut core::ffi::c_void, applicationsizepixels: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings_Impl, - { + unsafe extern "system" fn ComputeApplicationSize(this: *mut core::ffi::c_void, applicationsizepixels: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationDesignModeSettings_Impl::ComputeApplicationSize(this) { Ok(ok__) => { @@ -1816,10 +1414,7 @@ impl IApplicationDesignModeSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsApplicationViewStateSupported(this: *mut core::ffi::c_void, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR, supported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings_Impl, - { + unsafe extern "system" fn IsApplicationViewStateSupported(this: *mut core::ffi::c_void, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR, supported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationDesignModeSettings_Impl::IsApplicationViewStateSupported(this, core::mem::transmute_copy(&viewstate), core::mem::transmute(&nativedisplaysizepixels), core::mem::transmute_copy(&scalefactor)) { Ok(ok__) => { @@ -1829,10 +1424,7 @@ impl IApplicationDesignModeSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TriggerEdgeGesture(this: *mut core::ffi::c_void, edgegesturekind: EDGE_GESTURE_KIND) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings_Impl, - { + unsafe extern "system" fn TriggerEdgeGesture(this: *mut core::ffi::c_void, edgegesturekind: EDGE_GESTURE_KIND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings_Impl::TriggerEdgeGesture(this, core::mem::transmute_copy(&edgegesturekind)).into() } @@ -1864,56 +1456,32 @@ pub trait IApplicationDesignModeSettings2_Impl: Sized + IApplicationDesignModeSe impl windows_core::RuntimeName for IApplicationDesignModeSettings2 {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IApplicationDesignModeSettings2_Vtbl { - pub const fn new() -> IApplicationDesignModeSettings2_Vtbl - where - Identity: IApplicationDesignModeSettings2_Impl, - { - unsafe extern "system" fn SetNativeDisplayOrientation(this: *mut core::ffi::c_void, nativedisplayorientation: NATIVE_DISPLAY_ORIENTATION) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings2_Impl, - { + pub const fn new() -> IApplicationDesignModeSettings2_Vtbl { + unsafe extern "system" fn SetNativeDisplayOrientation(this: *mut core::ffi::c_void, nativedisplayorientation: NATIVE_DISPLAY_ORIENTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings2_Impl::SetNativeDisplayOrientation(this, core::mem::transmute_copy(&nativedisplayorientation)).into() } - unsafe extern "system" fn SetApplicationViewOrientation(this: *mut core::ffi::c_void, vieworientation: APPLICATION_VIEW_ORIENTATION) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings2_Impl, - { + unsafe extern "system" fn SetApplicationViewOrientation(this: *mut core::ffi::c_void, vieworientation: APPLICATION_VIEW_ORIENTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings2_Impl::SetApplicationViewOrientation(this, core::mem::transmute_copy(&vieworientation)).into() } - unsafe extern "system" fn SetAdjacentDisplayEdges(this: *mut core::ffi::c_void, adjacentdisplayedges: ADJACENT_DISPLAY_EDGES) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings2_Impl, - { + unsafe extern "system" fn SetAdjacentDisplayEdges(this: *mut core::ffi::c_void, adjacentdisplayedges: ADJACENT_DISPLAY_EDGES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings2_Impl::SetAdjacentDisplayEdges(this, core::mem::transmute_copy(&adjacentdisplayedges)).into() } - unsafe extern "system" fn SetIsOnLockScreen(this: *mut core::ffi::c_void, isonlockscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings2_Impl, - { + unsafe extern "system" fn SetIsOnLockScreen(this: *mut core::ffi::c_void, isonlockscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings2_Impl::SetIsOnLockScreen(this, core::mem::transmute_copy(&isonlockscreen)).into() } - unsafe extern "system" fn SetApplicationViewMinWidth(this: *mut core::ffi::c_void, viewminwidth: APPLICATION_VIEW_MIN_WIDTH) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings2_Impl, - { + unsafe extern "system" fn SetApplicationViewMinWidth(this: *mut core::ffi::c_void, viewminwidth: APPLICATION_VIEW_MIN_WIDTH) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings2_Impl::SetApplicationViewMinWidth(this, core::mem::transmute_copy(&viewminwidth)).into() } - unsafe extern "system" fn GetApplicationSizeBounds(this: *mut core::ffi::c_void, minapplicationsizepixels: *mut super::super::Foundation::SIZE, maxapplicationsizepixels: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings2_Impl, - { + unsafe extern "system" fn GetApplicationSizeBounds(this: *mut core::ffi::c_void, minapplicationsizepixels: *mut super::super::Foundation::SIZE, maxapplicationsizepixels: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings2_Impl::GetApplicationSizeBounds(this, core::mem::transmute_copy(&minapplicationsizepixels), core::mem::transmute_copy(&maxapplicationsizepixels)).into() } - unsafe extern "system" fn GetApplicationViewOrientation(this: *mut core::ffi::c_void, applicationsizepixels: super::super::Foundation::SIZE, vieworientation: *mut APPLICATION_VIEW_ORIENTATION) -> windows_core::HRESULT - where - Identity: IApplicationDesignModeSettings2_Impl, - { + unsafe extern "system" fn GetApplicationViewOrientation(this: *mut core::ffi::c_void, applicationsizepixels: super::super::Foundation::SIZE, vieworientation: *mut APPLICATION_VIEW_ORIENTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationDesignModeSettings2_Impl::GetApplicationViewOrientation(this, core::mem::transmute(&applicationsizepixels)) { Ok(ok__) => { @@ -1938,35 +1506,23 @@ impl IApplicationDesignModeSettings2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IApplicationDestinations_Impl: Sized { +pub trait IApplicationDestinations_Impl: Sized + windows_core::IUnknownImpl { fn SetAppID(&self, pszappid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn RemoveDestination(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn RemoveAllDestinations(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IApplicationDestinations {} impl IApplicationDestinations_Vtbl { - pub const fn new() -> IApplicationDestinations_Vtbl - where - Identity: IApplicationDestinations_Impl, - { - unsafe extern "system" fn SetAppID(this: *mut core::ffi::c_void, pszappid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IApplicationDestinations_Impl, - { + pub const fn new() -> IApplicationDestinations_Vtbl { + unsafe extern "system" fn SetAppID(this: *mut core::ffi::c_void, pszappid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDestinations_Impl::SetAppID(this, core::mem::transmute(&pszappid)).into() } - unsafe extern "system" fn RemoveDestination(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApplicationDestinations_Impl, - { + unsafe extern "system" fn RemoveDestination(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDestinations_Impl::RemoveDestination(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn RemoveAllDestinations(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApplicationDestinations_Impl, - { + unsafe extern "system" fn RemoveAllDestinations(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDestinations_Impl::RemoveAllDestinations(this).into() } @@ -1981,27 +1537,18 @@ impl IApplicationDestinations_Vtbl { iid == &::IID } } -pub trait IApplicationDocumentLists_Impl: Sized { +pub trait IApplicationDocumentLists_Impl: Sized + windows_core::IUnknownImpl { fn SetAppID(&self, pszappid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetList(&self, listtype: APPDOCLISTTYPE, citemsdesired: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IApplicationDocumentLists {} impl IApplicationDocumentLists_Vtbl { - pub const fn new() -> IApplicationDocumentLists_Vtbl - where - Identity: IApplicationDocumentLists_Impl, - { - unsafe extern "system" fn SetAppID(this: *mut core::ffi::c_void, pszappid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IApplicationDocumentLists_Impl, - { + pub const fn new() -> IApplicationDocumentLists_Vtbl { + unsafe extern "system" fn SetAppID(this: *mut core::ffi::c_void, pszappid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDocumentLists_Impl::SetAppID(this, core::mem::transmute(&pszappid)).into() } - unsafe extern "system" fn GetList(this: *mut core::ffi::c_void, listtype: APPDOCLISTTYPE, citemsdesired: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IApplicationDocumentLists_Impl, - { + unsafe extern "system" fn GetList(this: *mut core::ffi::c_void, listtype: APPDOCLISTTYPE, citemsdesired: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDocumentLists_Impl::GetList(this, core::mem::transmute_copy(&listtype), core::mem::transmute_copy(&citemsdesired), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -2012,7 +1559,7 @@ impl IApplicationDocumentLists_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAssocHandler_Impl: Sized { +pub trait IAssocHandler_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetUIName(&self) -> windows_core::Result; fn GetIconLocation(&self, ppszpath: *mut windows_core::PWSTR, pindex: *mut i32) -> windows_core::Result<()>; @@ -2025,14 +1572,8 @@ pub trait IAssocHandler_Impl: Sized { impl windows_core::RuntimeName for IAssocHandler {} #[cfg(feature = "Win32_System_Com")] impl IAssocHandler_Vtbl { - pub const fn new() -> IAssocHandler_Vtbl - where - Identity: IAssocHandler_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAssocHandler_Impl, - { + pub const fn new() -> IAssocHandler_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAssocHandler_Impl::GetName(this) { Ok(ok__) => { @@ -2042,10 +1583,7 @@ impl IAssocHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUIName(this: *mut core::ffi::c_void, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAssocHandler_Impl, - { + unsafe extern "system" fn GetUIName(this: *mut core::ffi::c_void, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAssocHandler_Impl::GetUIName(this) { Ok(ok__) => { @@ -2055,38 +1593,23 @@ impl IAssocHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: IAssocHandler_Impl, - { + unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, ppszpath: *mut windows_core::PWSTR, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssocHandler_Impl::GetIconLocation(this, core::mem::transmute_copy(&ppszpath), core::mem::transmute_copy(&pindex)).into() } - unsafe extern "system" fn IsRecommended(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssocHandler_Impl, - { + unsafe extern "system" fn IsRecommended(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssocHandler_Impl::IsRecommended(this) } - unsafe extern "system" fn MakeDefault(this: *mut core::ffi::c_void, pszdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAssocHandler_Impl, - { + unsafe extern "system" fn MakeDefault(this: *mut core::ffi::c_void, pszdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssocHandler_Impl::MakeDefault(this, core::mem::transmute(&pszdescription)).into() } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, pdo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssocHandler_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, pdo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssocHandler_Impl::Invoke(this, windows_core::from_raw_borrowed(&pdo)).into() } - unsafe extern "system" fn CreateInvoker(this: *mut core::ffi::c_void, pdo: *mut core::ffi::c_void, ppinvoker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssocHandler_Impl, - { + unsafe extern "system" fn CreateInvoker(this: *mut core::ffi::c_void, pdo: *mut core::ffi::c_void, ppinvoker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAssocHandler_Impl::CreateInvoker(this, windows_core::from_raw_borrowed(&pdo)) { Ok(ok__) => { @@ -2111,27 +1634,18 @@ impl IAssocHandler_Vtbl { iid == &::IID } } -pub trait IAssocHandlerInvoker_Impl: Sized { +pub trait IAssocHandlerInvoker_Impl: Sized + windows_core::IUnknownImpl { fn SupportsSelection(&self) -> windows_core::Result<()>; fn Invoke(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAssocHandlerInvoker {} impl IAssocHandlerInvoker_Vtbl { - pub const fn new() -> IAssocHandlerInvoker_Vtbl - where - Identity: IAssocHandlerInvoker_Impl, - { - unsafe extern "system" fn SupportsSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssocHandlerInvoker_Impl, - { + pub const fn new() -> IAssocHandlerInvoker_Vtbl { + unsafe extern "system" fn SupportsSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssocHandlerInvoker_Impl::SupportsSelection(this).into() } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAssocHandlerInvoker_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAssocHandlerInvoker_Impl::Invoke(this).into() } @@ -2145,7 +1659,7 @@ impl IAssocHandlerInvoker_Vtbl { iid == &::IID } } -pub trait IAttachmentExecute_Impl: Sized { +pub trait IAttachmentExecute_Impl: Sized + windows_core::IUnknownImpl { fn SetClientTitle(&self, psztitle: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetClientGuid(&self, guid: *const windows_core::GUID) -> windows_core::Result<()>; fn SetLocalPath(&self, pszlocalpath: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -2161,63 +1675,36 @@ pub trait IAttachmentExecute_Impl: Sized { } impl windows_core::RuntimeName for IAttachmentExecute {} impl IAttachmentExecute_Vtbl { - pub const fn new() -> IAttachmentExecute_Vtbl - where - Identity: IAttachmentExecute_Impl, - { - unsafe extern "system" fn SetClientTitle(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + pub const fn new() -> IAttachmentExecute_Vtbl { + unsafe extern "system" fn SetClientTitle(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::SetClientTitle(this, core::mem::transmute(&psztitle)).into() } - unsafe extern "system" fn SetClientGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn SetClientGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::SetClientGuid(this, core::mem::transmute_copy(&guid)).into() } - unsafe extern "system" fn SetLocalPath(this: *mut core::ffi::c_void, pszlocalpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn SetLocalPath(this: *mut core::ffi::c_void, pszlocalpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::SetLocalPath(this, core::mem::transmute(&pszlocalpath)).into() } - unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::SetFileName(this, core::mem::transmute(&pszfilename)).into() } - unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, pszsource: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn SetSource(this: *mut core::ffi::c_void, pszsource: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::SetSource(this, core::mem::transmute(&pszsource)).into() } - unsafe extern "system" fn SetReferrer(this: *mut core::ffi::c_void, pszreferrer: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn SetReferrer(this: *mut core::ffi::c_void, pszreferrer: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::SetReferrer(this, core::mem::transmute(&pszreferrer)).into() } - unsafe extern "system" fn CheckPolicy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn CheckPolicy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::CheckPolicy(this).into() } - unsafe extern "system" fn Prompt(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, prompt: ATTACHMENT_PROMPT, paction: *mut ATTACHMENT_ACTION) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn Prompt(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, prompt: ATTACHMENT_PROMPT, paction: *mut ATTACHMENT_ACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAttachmentExecute_Impl::Prompt(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&prompt)) { Ok(ok__) => { @@ -2227,31 +1714,19 @@ impl IAttachmentExecute_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::Save(this).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pszverb: windows_core::PCWSTR, phprocess: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pszverb: windows_core::PCWSTR, phprocess: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::Execute(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&pszverb), core::mem::transmute_copy(&phprocess)).into() } - unsafe extern "system" fn SaveWithUI(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn SaveWithUI(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::SaveWithUI(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn ClearClientState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAttachmentExecute_Impl, - { + unsafe extern "system" fn ClearClientState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAttachmentExecute_Impl::ClearClientState(this).into() } @@ -2275,27 +1750,18 @@ impl IAttachmentExecute_Vtbl { iid == &::IID } } -pub trait IAutoComplete_Impl: Sized { +pub trait IAutoComplete_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, hwndedit: super::super::Foundation::HWND, punkacl: Option<&windows_core::IUnknown>, pwszregkeypath: &windows_core::PCWSTR, pwszquickcomplete: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Enable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAutoComplete {} impl IAutoComplete_Vtbl { - pub const fn new() -> IAutoComplete_Vtbl - where - Identity: IAutoComplete_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, hwndedit: super::super::Foundation::HWND, punkacl: *mut core::ffi::c_void, pwszregkeypath: windows_core::PCWSTR, pwszquickcomplete: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAutoComplete_Impl, - { + pub const fn new() -> IAutoComplete_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, hwndedit: super::super::Foundation::HWND, punkacl: *mut core::ffi::c_void, pwszregkeypath: windows_core::PCWSTR, pwszquickcomplete: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutoComplete_Impl::Init(this, core::mem::transmute_copy(&hwndedit), windows_core::from_raw_borrowed(&punkacl), core::mem::transmute(&pwszregkeypath), core::mem::transmute(&pwszquickcomplete)).into() } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAutoComplete_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutoComplete_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() } @@ -2311,21 +1777,12 @@ pub trait IAutoComplete2_Impl: Sized + IAutoComplete_Impl { } impl windows_core::RuntimeName for IAutoComplete2 {} impl IAutoComplete2_Vtbl { - pub const fn new() -> IAutoComplete2_Vtbl - where - Identity: IAutoComplete2_Impl, - { - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, dwflag: u32) -> windows_core::HRESULT - where - Identity: IAutoComplete2_Impl, - { + pub const fn new() -> IAutoComplete2_Vtbl { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, dwflag: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutoComplete2_Impl::SetOptions(this, core::mem::transmute_copy(&dwflag)).into() } - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, pdwflag: *mut u32) -> windows_core::HRESULT - where - Identity: IAutoComplete2_Impl, - { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, pdwflag: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAutoComplete2_Impl::GetOptions(this) { Ok(ok__) => { @@ -2341,27 +1798,18 @@ impl IAutoComplete2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAutoCompleteDropDown_Impl: Sized { +pub trait IAutoCompleteDropDown_Impl: Sized + windows_core::IUnknownImpl { fn GetDropDownStatus(&self, pdwflags: *mut u32, ppwszstring: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn ResetEnumerator(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAutoCompleteDropDown {} impl IAutoCompleteDropDown_Vtbl { - pub const fn new() -> IAutoCompleteDropDown_Vtbl - where - Identity: IAutoCompleteDropDown_Impl, - { - unsafe extern "system" fn GetDropDownStatus(this: *mut core::ffi::c_void, pdwflags: *mut u32, ppwszstring: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IAutoCompleteDropDown_Impl, - { + pub const fn new() -> IAutoCompleteDropDown_Vtbl { + unsafe extern "system" fn GetDropDownStatus(this: *mut core::ffi::c_void, pdwflags: *mut u32, ppwszstring: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutoCompleteDropDown_Impl::GetDropDownStatus(this, core::mem::transmute_copy(&pdwflags), core::mem::transmute_copy(&ppwszstring)).into() } - unsafe extern "system" fn ResetEnumerator(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAutoCompleteDropDown_Impl, - { + unsafe extern "system" fn ResetEnumerator(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutoCompleteDropDown_Impl::ResetEnumerator(this).into() } @@ -2375,35 +1823,23 @@ impl IAutoCompleteDropDown_Vtbl { iid == &::IID } } -pub trait IBandHost_Impl: Sized { +pub trait IBandHost_Impl: Sized + windows_core::IUnknownImpl { fn CreateBand(&self, rclsidband: *const windows_core::GUID, favailable: super::super::Foundation::BOOL, fvisible: super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn SetBandAvailability(&self, rclsidband: *const windows_core::GUID, favailable: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn DestroyBand(&self, rclsidband: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBandHost {} impl IBandHost_Vtbl { - pub const fn new() -> IBandHost_Vtbl - where - Identity: IBandHost_Impl, - { - unsafe extern "system" fn CreateBand(this: *mut core::ffi::c_void, rclsidband: *const windows_core::GUID, favailable: super::super::Foundation::BOOL, fvisible: super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBandHost_Impl, - { + pub const fn new() -> IBandHost_Vtbl { + unsafe extern "system" fn CreateBand(this: *mut core::ffi::c_void, rclsidband: *const windows_core::GUID, favailable: super::super::Foundation::BOOL, fvisible: super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandHost_Impl::CreateBand(this, core::mem::transmute_copy(&rclsidband), core::mem::transmute_copy(&favailable), core::mem::transmute_copy(&fvisible), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn SetBandAvailability(this: *mut core::ffi::c_void, rclsidband: *const windows_core::GUID, favailable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBandHost_Impl, - { + unsafe extern "system" fn SetBandAvailability(this: *mut core::ffi::c_void, rclsidband: *const windows_core::GUID, favailable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandHost_Impl::SetBandAvailability(this, core::mem::transmute_copy(&rclsidband), core::mem::transmute_copy(&favailable)).into() } - unsafe extern "system" fn DestroyBand(this: *mut core::ffi::c_void, rclsidband: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IBandHost_Impl, - { + unsafe extern "system" fn DestroyBand(this: *mut core::ffi::c_void, rclsidband: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandHost_Impl::DestroyBand(this, core::mem::transmute_copy(&rclsidband)).into() } @@ -2419,7 +1855,7 @@ impl IBandHost_Vtbl { } } #[cfg(feature = "Win32_System_Ole")] -pub trait IBandSite_Impl: Sized { +pub trait IBandSite_Impl: Sized + windows_core::IUnknownImpl { fn AddBand(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn EnumBands(&self, uband: u32) -> windows_core::Result; fn QueryBand(&self, dwbandid: u32, ppstb: *mut Option, pdwstate: *mut u32, pszname: windows_core::PWSTR, cchname: i32) -> windows_core::Result<()>; @@ -2433,21 +1869,12 @@ pub trait IBandSite_Impl: Sized { impl windows_core::RuntimeName for IBandSite {} #[cfg(feature = "Win32_System_Ole")] impl IBandSite_Vtbl { - pub const fn new() -> IBandSite_Vtbl - where - Identity: IBandSite_Impl, - { - unsafe extern "system" fn AddBand(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBandSite_Impl, - { + pub const fn new() -> IBandSite_Vtbl { + unsafe extern "system" fn AddBand(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandSite_Impl::AddBand(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn EnumBands(this: *mut core::ffi::c_void, uband: u32, pdwbandid: *mut u32) -> windows_core::HRESULT - where - Identity: IBandSite_Impl, - { + unsafe extern "system" fn EnumBands(this: *mut core::ffi::c_void, uband: u32, pdwbandid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBandSite_Impl::EnumBands(this, core::mem::transmute_copy(&uband)) { Ok(ok__) => { @@ -2457,45 +1884,27 @@ impl IBandSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryBand(this: *mut core::ffi::c_void, dwbandid: u32, ppstb: *mut *mut core::ffi::c_void, pdwstate: *mut u32, pszname: windows_core::PWSTR, cchname: i32) -> windows_core::HRESULT - where - Identity: IBandSite_Impl, - { + unsafe extern "system" fn QueryBand(this: *mut core::ffi::c_void, dwbandid: u32, ppstb: *mut *mut core::ffi::c_void, pdwstate: *mut u32, pszname: windows_core::PWSTR, cchname: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandSite_Impl::QueryBand(this, core::mem::transmute_copy(&dwbandid), core::mem::transmute_copy(&ppstb), core::mem::transmute_copy(&pdwstate), core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchname)).into() } - unsafe extern "system" fn SetBandState(this: *mut core::ffi::c_void, dwbandid: u32, dwmask: u32, dwstate: u32) -> windows_core::HRESULT - where - Identity: IBandSite_Impl, - { + unsafe extern "system" fn SetBandState(this: *mut core::ffi::c_void, dwbandid: u32, dwmask: u32, dwstate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandSite_Impl::SetBandState(this, core::mem::transmute_copy(&dwbandid), core::mem::transmute_copy(&dwmask), core::mem::transmute_copy(&dwstate)).into() } - unsafe extern "system" fn RemoveBand(this: *mut core::ffi::c_void, dwbandid: u32) -> windows_core::HRESULT - where - Identity: IBandSite_Impl, - { + unsafe extern "system" fn RemoveBand(this: *mut core::ffi::c_void, dwbandid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandSite_Impl::RemoveBand(this, core::mem::transmute_copy(&dwbandid)).into() } - unsafe extern "system" fn GetBandObject(this: *mut core::ffi::c_void, dwbandid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBandSite_Impl, - { + unsafe extern "system" fn GetBandObject(this: *mut core::ffi::c_void, dwbandid: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandSite_Impl::GetBandObject(this, core::mem::transmute_copy(&dwbandid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn SetBandSiteInfo(this: *mut core::ffi::c_void, pbsinfo: *const BANDSITEINFO) -> windows_core::HRESULT - where - Identity: IBandSite_Impl, - { + unsafe extern "system" fn SetBandSiteInfo(this: *mut core::ffi::c_void, pbsinfo: *const BANDSITEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandSite_Impl::SetBandSiteInfo(this, core::mem::transmute_copy(&pbsinfo)).into() } - unsafe extern "system" fn GetBandSiteInfo(this: *mut core::ffi::c_void, pbsinfo: *mut BANDSITEINFO) -> windows_core::HRESULT - where - Identity: IBandSite_Impl, - { + unsafe extern "system" fn GetBandSiteInfo(this: *mut core::ffi::c_void, pbsinfo: *mut BANDSITEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandSite_Impl::GetBandSiteInfo(this, core::mem::transmute_copy(&pbsinfo)).into() } @@ -2515,19 +1924,13 @@ impl IBandSite_Vtbl { iid == &::IID } } -pub trait IBannerNotificationHandler_Impl: Sized { +pub trait IBannerNotificationHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnBannerEvent(&self, notification: *const BANNER_NOTIFICATION) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IBannerNotificationHandler {} impl IBannerNotificationHandler_Vtbl { - pub const fn new() -> IBannerNotificationHandler_Vtbl - where - Identity: IBannerNotificationHandler_Impl, - { - unsafe extern "system" fn OnBannerEvent(this: *mut core::ffi::c_void, notification: *const BANNER_NOTIFICATION) -> windows_core::HRESULT - where - Identity: IBannerNotificationHandler_Impl, - { + pub const fn new() -> IBannerNotificationHandler_Vtbl { + unsafe extern "system" fn OnBannerEvent(this: *mut core::ffi::c_void, notification: *const BANNER_NOTIFICATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBannerNotificationHandler_Impl::OnBannerEvent(this, core::mem::transmute_copy(¬ification)).into() } @@ -2538,7 +1941,7 @@ impl IBannerNotificationHandler_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IBanneredBar_Impl: Sized { +pub trait IBanneredBar_Impl: Sized + windows_core::IUnknownImpl { fn SetIconSize(&self, iicon: u32) -> windows_core::Result<()>; fn GetIconSize(&self) -> windows_core::Result; fn SetBitmap(&self, hbitmap: super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result<()>; @@ -2548,21 +1951,12 @@ pub trait IBanneredBar_Impl: Sized { impl windows_core::RuntimeName for IBanneredBar {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IBanneredBar_Vtbl { - pub const fn new() -> IBanneredBar_Vtbl - where - Identity: IBanneredBar_Impl, - { - unsafe extern "system" fn SetIconSize(this: *mut core::ffi::c_void, iicon: u32) -> windows_core::HRESULT - where - Identity: IBanneredBar_Impl, - { + pub const fn new() -> IBanneredBar_Vtbl { + unsafe extern "system" fn SetIconSize(this: *mut core::ffi::c_void, iicon: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBanneredBar_Impl::SetIconSize(this, core::mem::transmute_copy(&iicon)).into() } - unsafe extern "system" fn GetIconSize(this: *mut core::ffi::c_void, piicon: *mut u32) -> windows_core::HRESULT - where - Identity: IBanneredBar_Impl, - { + unsafe extern "system" fn GetIconSize(this: *mut core::ffi::c_void, piicon: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBanneredBar_Impl::GetIconSize(this) { Ok(ok__) => { @@ -2572,17 +1966,11 @@ impl IBanneredBar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBitmap(this: *mut core::ffi::c_void, hbitmap: super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IBanneredBar_Impl, - { + unsafe extern "system" fn SetBitmap(this: *mut core::ffi::c_void, hbitmap: super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBanneredBar_Impl::SetBitmap(this, core::mem::transmute_copy(&hbitmap)).into() } - unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IBanneredBar_Impl, - { + unsafe extern "system" fn GetBitmap(this: *mut core::ffi::c_void, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBanneredBar_Impl::GetBitmap(this) { Ok(ok__) => { @@ -2604,19 +1992,13 @@ impl IBanneredBar_Vtbl { iid == &::IID } } -pub trait IBrowserFrameOptions_Impl: Sized { +pub trait IBrowserFrameOptions_Impl: Sized + windows_core::IUnknownImpl { fn GetFrameOptions(&self, dwmask: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IBrowserFrameOptions {} impl IBrowserFrameOptions_Vtbl { - pub const fn new() -> IBrowserFrameOptions_Vtbl - where - Identity: IBrowserFrameOptions_Impl, - { - unsafe extern "system" fn GetFrameOptions(this: *mut core::ffi::c_void, dwmask: u32, pdwoptions: *mut u32) -> windows_core::HRESULT - where - Identity: IBrowserFrameOptions_Impl, - { + pub const fn new() -> IBrowserFrameOptions_Vtbl { + unsafe extern "system" fn GetFrameOptions(this: *mut core::ffi::c_void, dwmask: u32, pdwoptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserFrameOptions_Impl::GetFrameOptions(this, core::mem::transmute_copy(&dwmask)) { Ok(ok__) => { @@ -2633,7 +2015,7 @@ impl IBrowserFrameOptions_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] -pub trait IBrowserService_Impl: Sized { +pub trait IBrowserService_Impl: Sized + windows_core::IUnknownImpl { fn GetParentSite(&self) -> windows_core::Result; fn SetTitle(&self, psv: Option<&IShellView>, pszname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetTitle(&self, psv: Option<&IShellView>, pszname: windows_core::PWSTR, cchname: u32) -> windows_core::Result<()>; @@ -2669,14 +2051,8 @@ pub trait IBrowserService_Impl: Sized { impl windows_core::RuntimeName for IBrowserService {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl IBrowserService_Vtbl { - pub const fn new() -> IBrowserService_Vtbl - where - Identity: IBrowserService_Impl, - { - unsafe extern "system" fn GetParentSite(this: *mut core::ffi::c_void, ppipsite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + pub const fn new() -> IBrowserService_Vtbl { + unsafe extern "system" fn GetParentSite(this: *mut core::ffi::c_void, ppipsite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::GetParentSite(this) { Ok(ok__) => { @@ -2686,24 +2062,15 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::SetTitle(this, windows_core::from_raw_borrowed(&psv), core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchname: u32) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchname: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::GetTitle(this, windows_core::from_raw_borrowed(&psv), core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchname)).into() } - unsafe extern "system" fn GetOleObject(this: *mut core::ffi::c_void, ppobjv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetOleObject(this: *mut core::ffi::c_void, ppobjv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::GetOleObject(this) { Ok(ok__) => { @@ -2713,10 +2080,7 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTravelLog(this: *mut core::ffi::c_void, pptl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetTravelLog(this: *mut core::ffi::c_void, pptl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::GetTravelLog(this) { Ok(ok__) => { @@ -2726,17 +2090,11 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShowControlWindow(this: *mut core::ffi::c_void, id: u32, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn ShowControlWindow(this: *mut core::ffi::c_void, id: u32, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::ShowControlWindow(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn IsControlWindowShown(this: *mut core::ffi::c_void, id: u32, pfshown: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn IsControlWindowShown(this: *mut core::ffi::c_void, id: u32, pfshown: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::IsControlWindowShown(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -2746,17 +2104,11 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IEGetDisplayName(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pwszname: windows_core::PWSTR, uflags: u32) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn IEGetDisplayName(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pwszname: windows_core::PWSTR, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::IEGetDisplayName(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&pwszname), core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn IEParseDisplayName(this: *mut core::ffi::c_void, uicp: u32, pwszpath: windows_core::PCWSTR, ppidlout: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn IEParseDisplayName(this: *mut core::ffi::c_void, uicp: u32, pwszpath: windows_core::PCWSTR, ppidlout: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::IEParseDisplayName(this, core::mem::transmute_copy(&uicp), core::mem::transmute(&pwszpath)) { Ok(ok__) => { @@ -2766,31 +2118,19 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DisplayParseError(this: *mut core::ffi::c_void, hres: windows_core::HRESULT, pwszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn DisplayParseError(this: *mut core::ffi::c_void, hres: windows_core::HRESULT, pwszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::DisplayParseError(this, core::mem::transmute_copy(&hres), core::mem::transmute(&pwszpath)).into() } - unsafe extern "system" fn NavigateToPidl(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn NavigateToPidl(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::NavigateToPidl(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&grfhlnf)).into() } - unsafe extern "system" fn SetNavigateState(this: *mut core::ffi::c_void, bnstate: BNSTATE) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn SetNavigateState(this: *mut core::ffi::c_void, bnstate: BNSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::SetNavigateState(this, core::mem::transmute_copy(&bnstate)).into() } - unsafe extern "system" fn GetNavigateState(this: *mut core::ffi::c_void, pbnstate: *mut BNSTATE) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetNavigateState(this: *mut core::ffi::c_void, pbnstate: *mut BNSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::GetNavigateState(this) { Ok(ok__) => { @@ -2800,10 +2140,7 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NotifyRedirect(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pfdidbrowse: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn NotifyRedirect(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pfdidbrowse: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::NotifyRedirect(this, windows_core::from_raw_borrowed(&psv), core::mem::transmute_copy(&pidl)) { Ok(ok__) => { @@ -2813,31 +2150,19 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateWindowList(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn UpdateWindowList(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::UpdateWindowList(this).into() } - unsafe extern "system" fn UpdateBackForwardState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn UpdateBackForwardState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::UpdateBackForwardState(this).into() } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32, dwflagmask: u32) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32, dwflagmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::SetFlags(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwflagmask)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::GetFlags(this) { Ok(ok__) => { @@ -2847,17 +2172,11 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanNavigateNow(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn CanNavigateNow(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::CanNavigateNow(this).into() } - unsafe extern "system" fn GetPidl(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetPidl(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::GetPidl(this) { Ok(ok__) => { @@ -2867,24 +2186,15 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetReferrer(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn SetReferrer(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::SetReferrer(this, core::mem::transmute_copy(&pidl)).into() } - unsafe extern "system" fn GetBrowserIndex(this: *mut core::ffi::c_void) -> u32 - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetBrowserIndex(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::GetBrowserIndex(this) } - unsafe extern "system" fn GetBrowserByIndex(this: *mut core::ffi::c_void, dwid: u32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetBrowserByIndex(this: *mut core::ffi::c_void, dwid: u32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::GetBrowserByIndex(this, core::mem::transmute_copy(&dwid)) { Ok(ok__) => { @@ -2894,31 +2204,19 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHistoryObject(this: *mut core::ffi::c_void, ppole: *mut *mut core::ffi::c_void, pstm: *mut *mut core::ffi::c_void, ppbc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetHistoryObject(this: *mut core::ffi::c_void, ppole: *mut *mut core::ffi::c_void, pstm: *mut *mut core::ffi::c_void, ppbc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::GetHistoryObject(this, core::mem::transmute_copy(&ppole), core::mem::transmute_copy(&pstm), core::mem::transmute_copy(&ppbc)).into() } - unsafe extern "system" fn SetHistoryObject(this: *mut core::ffi::c_void, pole: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn SetHistoryObject(this: *mut core::ffi::c_void, pole: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::SetHistoryObject(this, windows_core::from_raw_borrowed(&pole), core::mem::transmute_copy(&fislocalanchor)).into() } - unsafe extern "system" fn CacheOLEServer(this: *mut core::ffi::c_void, pole: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn CacheOLEServer(this: *mut core::ffi::c_void, pole: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::CacheOLEServer(this, windows_core::from_raw_borrowed(&pole)).into() } - unsafe extern "system" fn GetSetCodePage(this: *mut core::ffi::c_void, pvarin: *const core::mem::MaybeUninit, pvarout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetSetCodePage(this: *mut core::ffi::c_void, pvarin: *const core::mem::MaybeUninit, pvarout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::GetSetCodePage(this, core::mem::transmute_copy(&pvarin)) { Ok(ok__) => { @@ -2928,10 +2226,7 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnHttpEquiv(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, fdone: super::super::Foundation::BOOL, pvarargin: *const core::mem::MaybeUninit, pvarargout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn OnHttpEquiv(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, fdone: super::super::Foundation::BOOL, pvarargin: *const core::mem::MaybeUninit, pvarargout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::OnHttpEquiv(this, windows_core::from_raw_borrowed(&psv), core::mem::transmute_copy(&fdone), core::mem::transmute_copy(&pvarargin)) { Ok(ok__) => { @@ -2941,10 +2236,7 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, hpal: *mut super::super::Graphics::Gdi::HPALETTE) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn GetPalette(this: *mut core::ffi::c_void, hpal: *mut super::super::Graphics::Gdi::HPALETTE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::GetPalette(this) { Ok(ok__) => { @@ -2954,10 +2246,7 @@ impl IBrowserService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterWindow(this: *mut core::ffi::c_void, fforceregister: super::super::Foundation::BOOL, swc: ShellWindowTypeConstants) -> windows_core::HRESULT - where - Identity: IBrowserService_Impl, - { + unsafe extern "system" fn RegisterWindow(this: *mut core::ffi::c_void, fforceregister: super::super::Foundation::BOOL, swc: ShellWindowTypeConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::RegisterWindow(this, core::mem::transmute_copy(&fforceregister), core::mem::transmute_copy(&swc)).into() } @@ -3068,28 +2357,16 @@ pub trait IBrowserService2_Impl: Sized + IBrowserService_Impl { impl windows_core::RuntimeName for IBrowserService2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IBrowserService2_Vtbl { - pub const fn new() -> IBrowserService2_Vtbl - where - Identity: IBrowserService2_Impl, - { - unsafe extern "system" fn WndProcBS(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT - where - Identity: IBrowserService2_Impl, - { + pub const fn new() -> IBrowserService2_Vtbl { + unsafe extern "system" fn WndProcBS(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::WndProcBS(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) } - unsafe extern "system" fn SetAsDefFolderSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn SetAsDefFolderSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::SetAsDefFolderSettings(this).into() } - unsafe extern "system" fn GetViewRect(this: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn GetViewRect(this: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService2_Impl::GetViewRect(this) { Ok(ok__) => { @@ -3099,73 +2376,43 @@ impl IBrowserService2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnSize(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn OnSize(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::OnSize(this, core::mem::transmute_copy(&wparam)).into() } - unsafe extern "system" fn OnCreate(this: *mut core::ffi::c_void, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn OnCreate(this: *mut core::ffi::c_void, pcs: *const super::WindowsAndMessaging::CREATESTRUCTW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::OnCreate(this, core::mem::transmute_copy(&pcs)).into() } - unsafe extern "system" fn OnCommand(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn OnCommand(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::OnCommand(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) } - unsafe extern "system" fn OnDestroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn OnDestroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::OnDestroy(this).into() } - unsafe extern "system" fn OnNotify(this: *mut core::ffi::c_void, pnm: *const super::Controls::NMHDR) -> super::super::Foundation::LRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn OnNotify(this: *mut core::ffi::c_void, pnm: *const super::Controls::NMHDR) -> super::super::Foundation::LRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::OnNotify(this, core::mem::transmute_copy(&pnm)) } - unsafe extern "system" fn OnSetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn OnSetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::OnSetFocus(this).into() } - unsafe extern "system" fn OnFrameWindowActivateBS(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn OnFrameWindowActivateBS(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::OnFrameWindowActivateBS(this, core::mem::transmute_copy(&factive)).into() } - unsafe extern "system" fn ReleaseShellView(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn ReleaseShellView(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::ReleaseShellView(this).into() } - unsafe extern "system" fn ActivatePendingView(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn ActivatePendingView(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::ActivatePendingView(this).into() } - unsafe extern "system" fn CreateViewWindow(this: *mut core::ffi::c_void, psvnew: *mut core::ffi::c_void, psvold: *mut core::ffi::c_void, prcview: *const super::super::Foundation::RECT, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn CreateViewWindow(this: *mut core::ffi::c_void, psvnew: *mut core::ffi::c_void, psvold: *mut core::ffi::c_void, prcview: *const super::super::Foundation::RECT, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService2_Impl::CreateViewWindow(this, windows_core::from_raw_borrowed(&psvnew), windows_core::from_raw_borrowed(&psvold), core::mem::transmute_copy(&prcview)) { Ok(ok__) => { @@ -3175,17 +2422,11 @@ impl IBrowserService2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateBrowserPropSheetExt(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn CreateBrowserPropSheetExt(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::CreateBrowserPropSheetExt(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetViewWindow(this: *mut core::ffi::c_void, phwndview: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn GetViewWindow(this: *mut core::ffi::c_void, phwndview: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService2_Impl::GetViewWindow(this) { Ok(ok__) => { @@ -3195,10 +2436,7 @@ impl IBrowserService2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBaseBrowserData(this: *mut core::ffi::c_void, pbbd: *mut *mut BASEBROWSERDATALH) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn GetBaseBrowserData(this: *mut core::ffi::c_void, pbbd: *mut *mut BASEBROWSERDATALH) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService2_Impl::GetBaseBrowserData(this) { Ok(ok__) => { @@ -3208,325 +2446,187 @@ impl IBrowserService2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PutBaseBrowserData(this: *mut core::ffi::c_void) -> *mut BASEBROWSERDATALH - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn PutBaseBrowserData(this: *mut core::ffi::c_void) -> *mut BASEBROWSERDATALH { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::PutBaseBrowserData(this) } - unsafe extern "system" fn InitializeTravelLog(this: *mut core::ffi::c_void, ptl: *mut core::ffi::c_void, dw: u32) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn InitializeTravelLog(this: *mut core::ffi::c_void, ptl: *mut core::ffi::c_void, dw: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::InitializeTravelLog(this, windows_core::from_raw_borrowed(&ptl), core::mem::transmute_copy(&dw)).into() } - unsafe extern "system" fn SetTopBrowser(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn SetTopBrowser(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::SetTopBrowser(this).into() } - unsafe extern "system" fn Offline(this: *mut core::ffi::c_void, icmd: i32) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn Offline(this: *mut core::ffi::c_void, icmd: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::Offline(this, core::mem::transmute_copy(&icmd)).into() } - unsafe extern "system" fn AllowViewResize(this: *mut core::ffi::c_void, f: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn AllowViewResize(this: *mut core::ffi::c_void, f: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::AllowViewResize(this, core::mem::transmute_copy(&f)).into() } - unsafe extern "system" fn SetActivateState(this: *mut core::ffi::c_void, u: u32) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn SetActivateState(this: *mut core::ffi::c_void, u: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::SetActivateState(this, core::mem::transmute_copy(&u)).into() } - unsafe extern "system" fn UpdateSecureLockIcon(this: *mut core::ffi::c_void, esecurelock: i32) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn UpdateSecureLockIcon(this: *mut core::ffi::c_void, esecurelock: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::UpdateSecureLockIcon(this, core::mem::transmute_copy(&esecurelock)).into() } - unsafe extern "system" fn InitializeDownloadManager(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn InitializeDownloadManager(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::InitializeDownloadManager(this).into() } - unsafe extern "system" fn InitializeTransitionSite(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn InitializeTransitionSite(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::InitializeTransitionSite(this).into() } - unsafe extern "system" fn _Initialize(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pauto: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _Initialize(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pauto: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_Initialize(this, core::mem::transmute_copy(&hwnd), windows_core::from_raw_borrowed(&pauto)).into() } - unsafe extern "system" fn _CancelPendingNavigationAsync(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _CancelPendingNavigationAsync(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_CancelPendingNavigationAsync(this).into() } - unsafe extern "system" fn _CancelPendingView(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _CancelPendingView(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_CancelPendingView(this).into() } - unsafe extern "system" fn _MaySaveChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _MaySaveChanges(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_MaySaveChanges(this).into() } - unsafe extern "system" fn _PauseOrResumeView(this: *mut core::ffi::c_void, fpaused: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _PauseOrResumeView(this: *mut core::ffi::c_void, fpaused: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_PauseOrResumeView(this, core::mem::transmute_copy(&fpaused)).into() } - unsafe extern "system" fn _DisableModeless(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _DisableModeless(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_DisableModeless(this).into() } - unsafe extern "system" fn _NavigateToPidl2(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, grfhlnf: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _NavigateToPidl2(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, grfhlnf: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_NavigateToPidl2(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&grfhlnf), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn _TryShell2Rename(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, pidlnew: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _TryShell2Rename(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, pidlnew: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_TryShell2Rename(this, windows_core::from_raw_borrowed(&psv), core::mem::transmute_copy(&pidlnew)).into() } - unsafe extern "system" fn _SwitchActivationNow(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _SwitchActivationNow(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_SwitchActivationNow(this).into() } - unsafe extern "system" fn _ExecChildren(this: *mut core::ffi::c_void, punkbar: *mut core::ffi::c_void, fbroadcast: super::super::Foundation::BOOL, pguidcmdgroup: *const windows_core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const core::mem::MaybeUninit, pvarargout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _ExecChildren(this: *mut core::ffi::c_void, punkbar: *mut core::ffi::c_void, fbroadcast: super::super::Foundation::BOOL, pguidcmdgroup: *const windows_core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const core::mem::MaybeUninit, pvarargout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_ExecChildren(this, windows_core::from_raw_borrowed(&punkbar), core::mem::transmute_copy(&fbroadcast), core::mem::transmute_copy(&pguidcmdgroup), core::mem::transmute_copy(&ncmdid), core::mem::transmute_copy(&ncmdexecopt), core::mem::transmute_copy(&pvarargin), core::mem::transmute_copy(&pvarargout)).into() } - unsafe extern "system" fn _SendChildren(this: *mut core::ffi::c_void, hwndbar: super::super::Foundation::HWND, fbroadcast: super::super::Foundation::BOOL, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _SendChildren(this: *mut core::ffi::c_void, hwndbar: super::super::Foundation::HWND, fbroadcast: super::super::Foundation::BOOL, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_SendChildren(this, core::mem::transmute_copy(&hwndbar), core::mem::transmute_copy(&fbroadcast), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn GetFolderSetData(this: *mut core::ffi::c_void, pfsd: *mut FOLDERSETDATA) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn GetFolderSetData(this: *mut core::ffi::c_void, pfsd: *mut FOLDERSETDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::GetFolderSetData(this, core::mem::transmute_copy(&pfsd)).into() } - unsafe extern "system" fn _OnFocusChange(this: *mut core::ffi::c_void, itb: u32) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _OnFocusChange(this: *mut core::ffi::c_void, itb: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_OnFocusChange(this, core::mem::transmute_copy(&itb)).into() } - unsafe extern "system" fn v_ShowHideChildWindows(this: *mut core::ffi::c_void, fchildonly: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn v_ShowHideChildWindows(this: *mut core::ffi::c_void, fchildonly: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::v_ShowHideChildWindows(this, core::mem::transmute_copy(&fchildonly)).into() } - unsafe extern "system" fn _get_itbLastFocus(this: *mut core::ffi::c_void) -> u32 - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _get_itbLastFocus(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_get_itbLastFocus(this) } - unsafe extern "system" fn _put_itbLastFocus(this: *mut core::ffi::c_void, itblastfocus: u32) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _put_itbLastFocus(this: *mut core::ffi::c_void, itblastfocus: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_put_itbLastFocus(this, core::mem::transmute_copy(&itblastfocus)).into() } - unsafe extern "system" fn _UIActivateView(this: *mut core::ffi::c_void, ustate: u32) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _UIActivateView(this: *mut core::ffi::c_void, ustate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_UIActivateView(this, core::mem::transmute_copy(&ustate)).into() } - unsafe extern "system" fn _GetViewBorderRect(this: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _GetViewBorderRect(this: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_GetViewBorderRect(this, core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn _UpdateViewRectSize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _UpdateViewRectSize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_UpdateViewRectSize(this).into() } - unsafe extern "system" fn _ResizeNextBorder(this: *mut core::ffi::c_void, itb: u32) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _ResizeNextBorder(this: *mut core::ffi::c_void, itb: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_ResizeNextBorder(this, core::mem::transmute_copy(&itb)).into() } - unsafe extern "system" fn _ResizeView(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _ResizeView(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_ResizeView(this).into() } - unsafe extern "system" fn _GetEffectiveClientArea(this: *mut core::ffi::c_void, lprectborder: *mut super::super::Foundation::RECT, hmon: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _GetEffectiveClientArea(this: *mut core::ffi::c_void, lprectborder: *mut super::super::Foundation::RECT, hmon: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_GetEffectiveClientArea(this, core::mem::transmute_copy(&lprectborder), core::mem::transmute_copy(&hmon)).into() } - unsafe extern "system" fn v_GetViewStream(this: *mut core::ffi::c_void, pidl: *mut Common::ITEMIDLIST, grfmode: u32, pwszname: windows_core::PCWSTR) -> Option - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn v_GetViewStream(this: *mut core::ffi::c_void, pidl: *mut Common::ITEMIDLIST, grfmode: u32, pwszname: windows_core::PCWSTR) -> Option { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::v_GetViewStream(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&grfmode), core::mem::transmute(&pwszname)) } - unsafe extern "system" fn ForwardViewMsg(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn ForwardViewMsg(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::LRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::ForwardViewMsg(this, core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) } - unsafe extern "system" fn SetAcceleratorMenu(this: *mut core::ffi::c_void, hacc: super::WindowsAndMessaging::HACCEL) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn SetAcceleratorMenu(this: *mut core::ffi::c_void, hacc: super::WindowsAndMessaging::HACCEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::SetAcceleratorMenu(this, core::mem::transmute_copy(&hacc)).into() } - unsafe extern "system" fn _GetToolbarCount(this: *mut core::ffi::c_void) -> i32 - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _GetToolbarCount(this: *mut core::ffi::c_void) -> i32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_GetToolbarCount(this) } - unsafe extern "system" fn _GetToolbarItem(this: *mut core::ffi::c_void, itb: i32) -> *mut TOOLBARITEM - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _GetToolbarItem(this: *mut core::ffi::c_void, itb: i32) -> *mut TOOLBARITEM { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_GetToolbarItem(this, core::mem::transmute_copy(&itb)) } - unsafe extern "system" fn _SaveToolbars(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _SaveToolbars(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_SaveToolbars(this, windows_core::from_raw_borrowed(&pstm)).into() } - unsafe extern "system" fn _LoadToolbars(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _LoadToolbars(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_LoadToolbars(this, windows_core::from_raw_borrowed(&pstm)).into() } - unsafe extern "system" fn _CloseAndReleaseToolbars(this: *mut core::ffi::c_void, fclose: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _CloseAndReleaseToolbars(this: *mut core::ffi::c_void, fclose: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_CloseAndReleaseToolbars(this, core::mem::transmute_copy(&fclose)).into() } - unsafe extern "system" fn v_MayGetNextToolbarFocus(this: *mut core::ffi::c_void, lpmsg: *const super::WindowsAndMessaging::MSG, itbnext: u32, citb: i32, pptbi: *mut *mut TOOLBARITEM, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn v_MayGetNextToolbarFocus(this: *mut core::ffi::c_void, lpmsg: *const super::WindowsAndMessaging::MSG, itbnext: u32, citb: i32, pptbi: *mut *mut TOOLBARITEM, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::v_MayGetNextToolbarFocus(this, core::mem::transmute_copy(&lpmsg), core::mem::transmute_copy(&itbnext), core::mem::transmute_copy(&citb), core::mem::transmute_copy(&pptbi), core::mem::transmute_copy(&phwnd)).into() } - unsafe extern "system" fn _ResizeNextBorderHelper(this: *mut core::ffi::c_void, itb: u32, busehmonitor: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _ResizeNextBorderHelper(this: *mut core::ffi::c_void, itb: u32, busehmonitor: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_ResizeNextBorderHelper(this, core::mem::transmute_copy(&itb), core::mem::transmute_copy(&busehmonitor)).into() } - unsafe extern "system" fn _FindTBar(this: *mut core::ffi::c_void, punksrc: *mut core::ffi::c_void) -> u32 - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _FindTBar(this: *mut core::ffi::c_void, punksrc: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_FindTBar(this, windows_core::from_raw_borrowed(&punksrc)) } - unsafe extern "system" fn _SetFocus(this: *mut core::ffi::c_void, ptbi: *const TOOLBARITEM, hwnd: super::super::Foundation::HWND, lpmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _SetFocus(this: *mut core::ffi::c_void, ptbi: *const TOOLBARITEM, hwnd: super::super::Foundation::HWND, lpmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_SetFocus(this, core::mem::transmute_copy(&ptbi), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&lpmsg)).into() } - unsafe extern "system" fn v_MayTranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn v_MayTranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::v_MayTranslateAccelerator(this, core::mem::transmute_copy(&pmsg)).into() } - unsafe extern "system" fn _GetBorderDWHelper(this: *mut core::ffi::c_void, punksrc: *mut core::ffi::c_void, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn _GetBorderDWHelper(this: *mut core::ffi::c_void, punksrc: *mut core::ffi::c_void, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_GetBorderDWHelper(this, windows_core::from_raw_borrowed(&punksrc), core::mem::transmute_copy(&lprectborder), core::mem::transmute_copy(&busehmonitor)).into() } - unsafe extern "system" fn v_CheckZoneCrossing(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IBrowserService2_Impl, - { + unsafe extern "system" fn v_CheckZoneCrossing(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::v_CheckZoneCrossing(this, core::mem::transmute_copy(&pidl)).into() } @@ -3609,21 +2709,12 @@ pub trait IBrowserService3_Impl: Sized + IBrowserService2_Impl { impl windows_core::RuntimeName for IBrowserService3 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IBrowserService3_Vtbl { - pub const fn new() -> IBrowserService3_Vtbl - where - Identity: IBrowserService3_Impl, - { - unsafe extern "system" fn _PositionViewWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IBrowserService3_Impl, - { + pub const fn new() -> IBrowserService3_Vtbl { + unsafe extern "system" fn _PositionViewWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService3_Impl::_PositionViewWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn IEParseDisplayNameEx(this: *mut core::ffi::c_void, uicp: u32, pwszpath: windows_core::PCWSTR, dwflags: u32, ppidlout: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IBrowserService3_Impl, - { + unsafe extern "system" fn IEParseDisplayNameEx(this: *mut core::ffi::c_void, uicp: u32, pwszpath: windows_core::PCWSTR, dwflags: u32, ppidlout: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService3_Impl::IEParseDisplayNameEx(this, core::mem::transmute_copy(&uicp), core::mem::transmute(&pwszpath), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -3653,28 +2744,16 @@ pub trait IBrowserService4_Impl: Sized + IBrowserService3_Impl { impl windows_core::RuntimeName for IBrowserService4 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IBrowserService4_Vtbl { - pub const fn new() -> IBrowserService4_Vtbl - where - Identity: IBrowserService4_Impl, - { - unsafe extern "system" fn ActivateView(this: *mut core::ffi::c_void, fpendingview: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IBrowserService4_Impl, - { + pub const fn new() -> IBrowserService4_Vtbl { + unsafe extern "system" fn ActivateView(this: *mut core::ffi::c_void, fpendingview: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService4_Impl::ActivateView(this, core::mem::transmute_copy(&fpendingview)).into() } - unsafe extern "system" fn SaveViewState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService4_Impl, - { + unsafe extern "system" fn SaveViewState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService4_Impl::SaveViewState(this).into() } - unsafe extern "system" fn _ResizeAllBorders(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IBrowserService4_Impl, - { + unsafe extern "system" fn _ResizeAllBorders(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService4_Impl::_ResizeAllBorders(this).into() } @@ -3689,35 +2768,23 @@ impl IBrowserService4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ICDBurn_Impl: Sized { +pub trait ICDBurn_Impl: Sized + windows_core::IUnknownImpl { fn GetRecorderDriveLetter(&self, pszdrive: windows_core::PWSTR, cch: u32) -> windows_core::Result<()>; fn Burn(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn HasRecordableDrive(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ICDBurn {} impl ICDBurn_Vtbl { - pub const fn new() -> ICDBurn_Vtbl - where - Identity: ICDBurn_Impl, - { - unsafe extern "system" fn GetRecorderDriveLetter(this: *mut core::ffi::c_void, pszdrive: windows_core::PWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: ICDBurn_Impl, - { + pub const fn new() -> ICDBurn_Vtbl { + unsafe extern "system" fn GetRecorderDriveLetter(this: *mut core::ffi::c_void, pszdrive: windows_core::PWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICDBurn_Impl::GetRecorderDriveLetter(this, core::mem::transmute_copy(&pszdrive), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn Burn(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ICDBurn_Impl, - { + unsafe extern "system" fn Burn(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICDBurn_Impl::Burn(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn HasRecordableDrive(this: *mut core::ffi::c_void, pfhasrecorder: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICDBurn_Impl, - { + unsafe extern "system" fn HasRecordableDrive(this: *mut core::ffi::c_void, pfhasrecorder: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICDBurn_Impl::HasRecordableDrive(this) { Ok(ok__) => { @@ -3738,19 +2805,13 @@ impl ICDBurn_Vtbl { iid == &::IID } } -pub trait ICDBurnExt_Impl: Sized { +pub trait ICDBurnExt_Impl: Sized + windows_core::IUnknownImpl { fn GetSupportedActionTypes(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ICDBurnExt {} impl ICDBurnExt_Vtbl { - pub const fn new() -> ICDBurnExt_Vtbl - where - Identity: ICDBurnExt_Impl, - { - unsafe extern "system" fn GetSupportedActionTypes(this: *mut core::ffi::c_void, pdwactions: *mut u32) -> windows_core::HRESULT - where - Identity: ICDBurnExt_Impl, - { + pub const fn new() -> ICDBurnExt_Vtbl { + unsafe extern "system" fn GetSupportedActionTypes(this: *mut core::ffi::c_void, pdwactions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICDBurnExt_Impl::GetSupportedActionTypes(this) { Ok(ok__) => { @@ -3767,7 +2828,7 @@ impl ICDBurnExt_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait ICategorizer_Impl: Sized { +pub trait ICategorizer_Impl: Sized + windows_core::IUnknownImpl { fn GetDescription(&self, pszdesc: windows_core::PWSTR, cch: u32) -> windows_core::Result<()>; fn GetCategory(&self, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgcategoryids: *mut u32) -> windows_core::Result<()>; fn GetCategoryInfo(&self, dwcategoryid: u32, pci: *mut CATEGORY_INFO) -> windows_core::Result<()>; @@ -3777,35 +2838,20 @@ pub trait ICategorizer_Impl: Sized { impl windows_core::RuntimeName for ICategorizer {} #[cfg(feature = "Win32_UI_Shell_Common")] impl ICategorizer_Vtbl { - pub const fn new() -> ICategorizer_Vtbl - where - Identity: ICategorizer_Impl, - { - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pszdesc: windows_core::PWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: ICategorizer_Impl, - { + pub const fn new() -> ICategorizer_Vtbl { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pszdesc: windows_core::PWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICategorizer_Impl::GetDescription(this, core::mem::transmute_copy(&pszdesc), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgcategoryids: *mut u32) -> windows_core::HRESULT - where - Identity: ICategorizer_Impl, - { + unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgcategoryids: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICategorizer_Impl::GetCategory(this, core::mem::transmute_copy(&cidl), core::mem::transmute_copy(&apidl), core::mem::transmute_copy(&rgcategoryids)).into() } - unsafe extern "system" fn GetCategoryInfo(this: *mut core::ffi::c_void, dwcategoryid: u32, pci: *mut CATEGORY_INFO) -> windows_core::HRESULT - where - Identity: ICategorizer_Impl, - { + unsafe extern "system" fn GetCategoryInfo(this: *mut core::ffi::c_void, dwcategoryid: u32, pci: *mut CATEGORY_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICategorizer_Impl::GetCategoryInfo(this, core::mem::transmute_copy(&dwcategoryid), core::mem::transmute_copy(&pci)).into() } - unsafe extern "system" fn CompareCategory(this: *mut core::ffi::c_void, csfflags: CATSORT_FLAGS, dwcategoryid1: u32, dwcategoryid2: u32) -> windows_core::HRESULT - where - Identity: ICategorizer_Impl, - { + unsafe extern "system" fn CompareCategory(this: *mut core::ffi::c_void, csfflags: CATSORT_FLAGS, dwcategoryid1: u32, dwcategoryid2: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICategorizer_Impl::CompareCategory(this, core::mem::transmute_copy(&csfflags), core::mem::transmute_copy(&dwcategoryid1), core::mem::transmute_copy(&dwcategoryid2)).into() } @@ -3822,7 +2868,7 @@ impl ICategorizer_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait ICategoryProvider_Impl: Sized { +pub trait ICategoryProvider_Impl: Sized + windows_core::IUnknownImpl { fn CanCategorizeOnSCID(&self, pscid: *const PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()>; fn GetDefaultCategory(&self, pguid: *mut windows_core::GUID, pscid: *mut PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()>; fn GetCategoryForSCID(&self, pscid: *const PropertiesSystem::PROPERTYKEY) -> windows_core::Result; @@ -3834,28 +2880,16 @@ pub trait ICategoryProvider_Impl: Sized { impl windows_core::RuntimeName for ICategoryProvider {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl ICategoryProvider_Vtbl { - pub const fn new() -> ICategoryProvider_Vtbl - where - Identity: ICategoryProvider_Impl, - { - unsafe extern "system" fn CanCategorizeOnSCID(this: *mut core::ffi::c_void, pscid: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: ICategoryProvider_Impl, - { + pub const fn new() -> ICategoryProvider_Vtbl { + unsafe extern "system" fn CanCategorizeOnSCID(this: *mut core::ffi::c_void, pscid: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICategoryProvider_Impl::CanCategorizeOnSCID(this, core::mem::transmute_copy(&pscid)).into() } - unsafe extern "system" fn GetDefaultCategory(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID, pscid: *mut PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: ICategoryProvider_Impl, - { + unsafe extern "system" fn GetDefaultCategory(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID, pscid: *mut PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICategoryProvider_Impl::GetDefaultCategory(this, core::mem::transmute_copy(&pguid), core::mem::transmute_copy(&pscid)).into() } - unsafe extern "system" fn GetCategoryForSCID(this: *mut core::ffi::c_void, pscid: *const PropertiesSystem::PROPERTYKEY, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICategoryProvider_Impl, - { + unsafe extern "system" fn GetCategoryForSCID(this: *mut core::ffi::c_void, pscid: *const PropertiesSystem::PROPERTYKEY, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategoryProvider_Impl::GetCategoryForSCID(this, core::mem::transmute_copy(&pscid)) { Ok(ok__) => { @@ -3865,10 +2899,7 @@ impl ICategoryProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumCategories(this: *mut core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICategoryProvider_Impl, - { + unsafe extern "system" fn EnumCategories(this: *mut core::ffi::c_void, penum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICategoryProvider_Impl::EnumCategories(this) { Ok(ok__) => { @@ -3878,17 +2909,11 @@ impl ICategoryProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCategoryName(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, pszname: windows_core::PWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: ICategoryProvider_Impl, - { + unsafe extern "system" fn GetCategoryName(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, pszname: windows_core::PWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICategoryProvider_Impl::GetCategoryName(this, core::mem::transmute_copy(&pguid), core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn CreateCategory(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICategoryProvider_Impl, - { + unsafe extern "system" fn CreateCategory(this: *mut core::ffi::c_void, pguid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICategoryProvider_Impl::CreateCategory(this, core::mem::transmute_copy(&pguid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -3907,7 +2932,7 @@ impl ICategoryProvider_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IColumnManager_Impl: Sized { +pub trait IColumnManager_Impl: Sized + windows_core::IUnknownImpl { fn SetColumnInfo(&self, propkey: *const PropertiesSystem::PROPERTYKEY, pcmci: *const CM_COLUMNINFO) -> windows_core::Result<()>; fn GetColumnInfo(&self, propkey: *const PropertiesSystem::PROPERTYKEY, pcmci: *mut CM_COLUMNINFO) -> windows_core::Result<()>; fn GetColumnCount(&self, dwflags: CM_ENUM_FLAGS) -> windows_core::Result; @@ -3918,28 +2943,16 @@ pub trait IColumnManager_Impl: Sized { impl windows_core::RuntimeName for IColumnManager {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IColumnManager_Vtbl { - pub const fn new() -> IColumnManager_Vtbl - where - Identity: IColumnManager_Impl, - { - unsafe extern "system" fn SetColumnInfo(this: *mut core::ffi::c_void, propkey: *const PropertiesSystem::PROPERTYKEY, pcmci: *const CM_COLUMNINFO) -> windows_core::HRESULT - where - Identity: IColumnManager_Impl, - { + pub const fn new() -> IColumnManager_Vtbl { + unsafe extern "system" fn SetColumnInfo(this: *mut core::ffi::c_void, propkey: *const PropertiesSystem::PROPERTYKEY, pcmci: *const CM_COLUMNINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnManager_Impl::SetColumnInfo(this, core::mem::transmute_copy(&propkey), core::mem::transmute_copy(&pcmci)).into() } - unsafe extern "system" fn GetColumnInfo(this: *mut core::ffi::c_void, propkey: *const PropertiesSystem::PROPERTYKEY, pcmci: *mut CM_COLUMNINFO) -> windows_core::HRESULT - where - Identity: IColumnManager_Impl, - { + unsafe extern "system" fn GetColumnInfo(this: *mut core::ffi::c_void, propkey: *const PropertiesSystem::PROPERTYKEY, pcmci: *mut CM_COLUMNINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnManager_Impl::GetColumnInfo(this, core::mem::transmute_copy(&propkey), core::mem::transmute_copy(&pcmci)).into() } - unsafe extern "system" fn GetColumnCount(this: *mut core::ffi::c_void, dwflags: CM_ENUM_FLAGS, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IColumnManager_Impl, - { + unsafe extern "system" fn GetColumnCount(this: *mut core::ffi::c_void, dwflags: CM_ENUM_FLAGS, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IColumnManager_Impl::GetColumnCount(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -3949,17 +2962,11 @@ impl IColumnManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetColumns(this: *mut core::ffi::c_void, dwflags: CM_ENUM_FLAGS, rgkeyorder: *mut PropertiesSystem::PROPERTYKEY, ccolumns: u32) -> windows_core::HRESULT - where - Identity: IColumnManager_Impl, - { + unsafe extern "system" fn GetColumns(this: *mut core::ffi::c_void, dwflags: CM_ENUM_FLAGS, rgkeyorder: *mut PropertiesSystem::PROPERTYKEY, ccolumns: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnManager_Impl::GetColumns(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&rgkeyorder), core::mem::transmute_copy(&ccolumns)).into() } - unsafe extern "system" fn SetColumns(this: *mut core::ffi::c_void, rgkeyorder: *const PropertiesSystem::PROPERTYKEY, cvisible: u32) -> windows_core::HRESULT - where - Identity: IColumnManager_Impl, - { + unsafe extern "system" fn SetColumns(this: *mut core::ffi::c_void, rgkeyorder: *const PropertiesSystem::PROPERTYKEY, cvisible: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnManager_Impl::SetColumns(this, core::mem::transmute_copy(&rgkeyorder), core::mem::transmute_copy(&cvisible)).into() } @@ -3977,7 +2984,7 @@ impl IColumnManager_Vtbl { } } #[cfg(all(feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IColumnProvider_Impl: Sized { +pub trait IColumnProvider_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psci: *const SHCOLUMNINIT) -> windows_core::Result<()>; fn GetColumnInfo(&self, dwindex: u32, psci: *mut SHCOLUMNINFO) -> windows_core::Result<()>; fn GetItemData(&self, pscid: *const PropertiesSystem::PROPERTYKEY, pscd: *const SHCOLUMNDATA) -> windows_core::Result; @@ -3986,28 +2993,16 @@ pub trait IColumnProvider_Impl: Sized { impl windows_core::RuntimeName for IColumnProvider {} #[cfg(all(feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IColumnProvider_Vtbl { - pub const fn new() -> IColumnProvider_Vtbl - where - Identity: IColumnProvider_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psci: *const SHCOLUMNINIT) -> windows_core::HRESULT - where - Identity: IColumnProvider_Impl, - { + pub const fn new() -> IColumnProvider_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psci: *const SHCOLUMNINIT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnProvider_Impl::Initialize(this, core::mem::transmute_copy(&psci)).into() } - unsafe extern "system" fn GetColumnInfo(this: *mut core::ffi::c_void, dwindex: u32, psci: *mut SHCOLUMNINFO) -> windows_core::HRESULT - where - Identity: IColumnProvider_Impl, - { + unsafe extern "system" fn GetColumnInfo(this: *mut core::ffi::c_void, dwindex: u32, psci: *mut SHCOLUMNINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IColumnProvider_Impl::GetColumnInfo(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&psci)).into() } - unsafe extern "system" fn GetItemData(this: *mut core::ffi::c_void, pscid: *const PropertiesSystem::PROPERTYKEY, pscd: *const SHCOLUMNDATA, pvardata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IColumnProvider_Impl, - { + unsafe extern "system" fn GetItemData(this: *mut core::ffi::c_void, pscid: *const PropertiesSystem::PROPERTYKEY, pscd: *const SHCOLUMNDATA, pvardata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IColumnProvider_Impl::GetItemData(this, core::mem::transmute_copy(&pscid), core::mem::transmute_copy(&pscd)) { Ok(ok__) => { @@ -4029,7 +3024,7 @@ impl IColumnProvider_Vtbl { } } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] -pub trait ICommDlgBrowser_Impl: Sized { +pub trait ICommDlgBrowser_Impl: Sized + windows_core::IUnknownImpl { fn OnDefaultCommand(&self, ppshv: Option<&IShellView>) -> windows_core::Result<()>; fn OnStateChange(&self, ppshv: Option<&IShellView>, uchange: u32) -> windows_core::Result<()>; fn IncludeObject(&self, ppshv: Option<&IShellView>, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()>; @@ -4038,28 +3033,16 @@ pub trait ICommDlgBrowser_Impl: Sized { impl windows_core::RuntimeName for ICommDlgBrowser {} #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ICommDlgBrowser_Vtbl { - pub const fn new() -> ICommDlgBrowser_Vtbl - where - Identity: ICommDlgBrowser_Impl, - { - unsafe extern "system" fn OnDefaultCommand(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommDlgBrowser_Impl, - { + pub const fn new() -> ICommDlgBrowser_Vtbl { + unsafe extern "system" fn OnDefaultCommand(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommDlgBrowser_Impl::OnDefaultCommand(this, windows_core::from_raw_borrowed(&ppshv)).into() } - unsafe extern "system" fn OnStateChange(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void, uchange: u32) -> windows_core::HRESULT - where - Identity: ICommDlgBrowser_Impl, - { + unsafe extern "system" fn OnStateChange(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void, uchange: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommDlgBrowser_Impl::OnStateChange(this, windows_core::from_raw_borrowed(&ppshv), core::mem::transmute_copy(&uchange)).into() } - unsafe extern "system" fn IncludeObject(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: ICommDlgBrowser_Impl, - { + unsafe extern "system" fn IncludeObject(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommDlgBrowser_Impl::IncludeObject(this, windows_core::from_raw_borrowed(&ppshv), core::mem::transmute_copy(&pidl)).into() } @@ -4084,28 +3067,16 @@ pub trait ICommDlgBrowser2_Impl: Sized + ICommDlgBrowser_Impl { impl windows_core::RuntimeName for ICommDlgBrowser2 {} #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ICommDlgBrowser2_Vtbl { - pub const fn new() -> ICommDlgBrowser2_Vtbl - where - Identity: ICommDlgBrowser2_Impl, - { - unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void, dwnotifytype: u32) -> windows_core::HRESULT - where - Identity: ICommDlgBrowser2_Impl, - { + pub const fn new() -> ICommDlgBrowser2_Vtbl { + unsafe extern "system" fn Notify(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void, dwnotifytype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommDlgBrowser2_Impl::Notify(this, windows_core::from_raw_borrowed(&ppshv), core::mem::transmute_copy(&dwnotifytype)).into() } - unsafe extern "system" fn GetDefaultMenuText(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void, psztext: windows_core::PWSTR, cchmax: i32) -> windows_core::HRESULT - where - Identity: ICommDlgBrowser2_Impl, - { + unsafe extern "system" fn GetDefaultMenuText(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void, psztext: windows_core::PWSTR, cchmax: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommDlgBrowser2_Impl::GetDefaultMenuText(this, windows_core::from_raw_borrowed(&ppshv), core::mem::transmute_copy(&psztext), core::mem::transmute_copy(&cchmax)).into() } - unsafe extern "system" fn GetViewFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ICommDlgBrowser2_Impl, - { + unsafe extern "system" fn GetViewFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICommDlgBrowser2_Impl::GetViewFlags(this) { Ok(ok__) => { @@ -4136,28 +3107,16 @@ pub trait ICommDlgBrowser3_Impl: Sized + ICommDlgBrowser2_Impl { impl windows_core::RuntimeName for ICommDlgBrowser3 {} #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl ICommDlgBrowser3_Vtbl { - pub const fn new() -> ICommDlgBrowser3_Vtbl - where - Identity: ICommDlgBrowser3_Impl, - { - unsafe extern "system" fn OnColumnClicked(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void, icolumn: i32) -> windows_core::HRESULT - where - Identity: ICommDlgBrowser3_Impl, - { + pub const fn new() -> ICommDlgBrowser3_Vtbl { + unsafe extern "system" fn OnColumnClicked(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void, icolumn: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommDlgBrowser3_Impl::OnColumnClicked(this, windows_core::from_raw_borrowed(&ppshv), core::mem::transmute_copy(&icolumn)).into() } - unsafe extern "system" fn GetCurrentFilter(this: *mut core::ffi::c_void, pszfilespec: windows_core::PWSTR, cchfilespec: i32) -> windows_core::HRESULT - where - Identity: ICommDlgBrowser3_Impl, - { + unsafe extern "system" fn GetCurrentFilter(this: *mut core::ffi::c_void, pszfilespec: windows_core::PWSTR, cchfilespec: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommDlgBrowser3_Impl::GetCurrentFilter(this, core::mem::transmute_copy(&pszfilespec), core::mem::transmute_copy(&cchfilespec)).into() } - unsafe extern "system" fn OnPreViewCreated(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICommDlgBrowser3_Impl, - { + unsafe extern "system" fn OnPreViewCreated(this: *mut core::ffi::c_void, ppshv: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICommDlgBrowser3_Impl::OnPreViewCreated(this, windows_core::from_raw_borrowed(&ppshv)).into() } @@ -4172,19 +3131,13 @@ impl ICommDlgBrowser3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IComputerInfoChangeNotify_Impl: Sized { +pub trait IComputerInfoChangeNotify_Impl: Sized + windows_core::IUnknownImpl { fn ComputerInfoChanged(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IComputerInfoChangeNotify {} impl IComputerInfoChangeNotify_Vtbl { - pub const fn new() -> IComputerInfoChangeNotify_Vtbl - where - Identity: IComputerInfoChangeNotify_Impl, - { - unsafe extern "system" fn ComputerInfoChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IComputerInfoChangeNotify_Impl, - { + pub const fn new() -> IComputerInfoChangeNotify_Vtbl { + unsafe extern "system" fn ComputerInfoChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComputerInfoChangeNotify_Impl::ComputerInfoChanged(this).into() } @@ -4203,21 +3156,12 @@ pub trait IConnectableCredentialProviderCredential_Impl: Sized + ICredentialProv impl windows_core::RuntimeName for IConnectableCredentialProviderCredential {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IConnectableCredentialProviderCredential_Vtbl { - pub const fn new() -> IConnectableCredentialProviderCredential_Vtbl - where - Identity: IConnectableCredentialProviderCredential_Impl, - { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pqcws: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConnectableCredentialProviderCredential_Impl, - { + pub const fn new() -> IConnectableCredentialProviderCredential_Vtbl { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pqcws: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConnectableCredentialProviderCredential_Impl::Connect(this, windows_core::from_raw_borrowed(&pqcws)).into() } - unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IConnectableCredentialProviderCredential_Impl, - { + unsafe extern "system" fn Disconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConnectableCredentialProviderCredential_Impl::Disconnect(this).into() } @@ -4231,19 +3175,13 @@ impl IConnectableCredentialProviderCredential_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IContactManagerInterop_Impl: Sized { +pub trait IContactManagerInterop_Impl: Sized + windows_core::IUnknownImpl { fn ShowContactCardForWindow(&self, appwindow: super::super::Foundation::HWND, contact: Option<&windows_core::IUnknown>, selection: *const super::super::Foundation::RECT, preferredplacement: FLYOUT_PLACEMENT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IContactManagerInterop {} impl IContactManagerInterop_Vtbl { - pub const fn new() -> IContactManagerInterop_Vtbl - where - Identity: IContactManagerInterop_Impl, - { - unsafe extern "system" fn ShowContactCardForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, contact: *mut core::ffi::c_void, selection: *const super::super::Foundation::RECT, preferredplacement: FLYOUT_PLACEMENT) -> windows_core::HRESULT - where - Identity: IContactManagerInterop_Impl, - { + pub const fn new() -> IContactManagerInterop_Vtbl { + unsafe extern "system" fn ShowContactCardForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, contact: *mut core::ffi::c_void, selection: *const super::super::Foundation::RECT, preferredplacement: FLYOUT_PLACEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactManagerInterop_Impl::ShowContactCardForWindow(this, core::mem::transmute_copy(&appwindow), windows_core::from_raw_borrowed(&contact), core::mem::transmute_copy(&selection), core::mem::transmute_copy(&preferredplacement)).into() } @@ -4254,7 +3192,7 @@ impl IContactManagerInterop_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IContextMenu_Impl: Sized { +pub trait IContextMenu_Impl: Sized + windows_core::IUnknownImpl { fn QueryContextMenu(&self, hmenu: super::WindowsAndMessaging::HMENU, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> windows_core::Result<()>; fn InvokeCommand(&self, pici: *const CMINVOKECOMMANDINFO) -> windows_core::Result<()>; fn GetCommandString(&self, idcmd: usize, utype: u32, preserved: *const u32, pszname: windows_core::PSTR, cchmax: u32) -> windows_core::Result<()>; @@ -4263,28 +3201,16 @@ pub trait IContextMenu_Impl: Sized { impl windows_core::RuntimeName for IContextMenu {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IContextMenu_Vtbl { - pub const fn new() -> IContextMenu_Vtbl - where - Identity: IContextMenu_Impl, - { - unsafe extern "system" fn QueryContextMenu(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> windows_core::HRESULT - where - Identity: IContextMenu_Impl, - { + pub const fn new() -> IContextMenu_Vtbl { + unsafe extern "system" fn QueryContextMenu(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenu_Impl::QueryContextMenu(this, core::mem::transmute_copy(&hmenu), core::mem::transmute_copy(&indexmenu), core::mem::transmute_copy(&idcmdfirst), core::mem::transmute_copy(&idcmdlast), core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn InvokeCommand(this: *mut core::ffi::c_void, pici: *const CMINVOKECOMMANDINFO) -> windows_core::HRESULT - where - Identity: IContextMenu_Impl, - { + unsafe extern "system" fn InvokeCommand(this: *mut core::ffi::c_void, pici: *const CMINVOKECOMMANDINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenu_Impl::InvokeCommand(this, core::mem::transmute_copy(&pici)).into() } - unsafe extern "system" fn GetCommandString(this: *mut core::ffi::c_void, idcmd: usize, utype: u32, preserved: *const u32, pszname: windows_core::PSTR, cchmax: u32) -> windows_core::HRESULT - where - Identity: IContextMenu_Impl, - { + unsafe extern "system" fn GetCommandString(this: *mut core::ffi::c_void, idcmd: usize, utype: u32, preserved: *const u32, pszname: windows_core::PSTR, cchmax: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenu_Impl::GetCommandString(this, core::mem::transmute_copy(&idcmd), core::mem::transmute_copy(&utype), core::mem::transmute_copy(&preserved), core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchmax)).into() } @@ -4307,14 +3233,8 @@ pub trait IContextMenu2_Impl: Sized + IContextMenu_Impl { impl windows_core::RuntimeName for IContextMenu2 {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IContextMenu2_Vtbl { - pub const fn new() -> IContextMenu2_Vtbl - where - Identity: IContextMenu2_Impl, - { - unsafe extern "system" fn HandleMenuMsg(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IContextMenu2_Impl, - { + pub const fn new() -> IContextMenu2_Vtbl { + unsafe extern "system" fn HandleMenuMsg(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenu2_Impl::HandleMenuMsg(this, core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } @@ -4332,14 +3252,8 @@ pub trait IContextMenu3_Impl: Sized + IContextMenu2_Impl { impl windows_core::RuntimeName for IContextMenu3 {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IContextMenu3_Vtbl { - pub const fn new() -> IContextMenu3_Vtbl - where - Identity: IContextMenu3_Impl, - { - unsafe extern "system" fn HandleMenuMsg2(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IContextMenu3_Impl, - { + pub const fn new() -> IContextMenu3_Vtbl { + unsafe extern "system" fn HandleMenuMsg2(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenu3_Impl::HandleMenuMsg2(this, core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&plresult)).into() } @@ -4350,21 +3264,15 @@ impl IContextMenu3_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IContextMenuCB_Impl: Sized { +pub trait IContextMenuCB_Impl: Sized + windows_core::IUnknownImpl { fn CallBack(&self, psf: Option<&IShellFolder>, hwndowner: super::super::Foundation::HWND, pdtobj: Option<&super::super::System::Com::IDataObject>, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IContextMenuCB {} #[cfg(feature = "Win32_System_Com")] impl IContextMenuCB_Vtbl { - pub const fn new() -> IContextMenuCB_Vtbl - where - Identity: IContextMenuCB_Impl, - { - unsafe extern "system" fn CallBack(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdtobj: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IContextMenuCB_Impl, - { + pub const fn new() -> IContextMenuCB_Vtbl { + unsafe extern "system" fn CallBack(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdtobj: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenuCB_Impl::CallBack(this, windows_core::from_raw_borrowed(&psf), core::mem::transmute_copy(&hwndowner), windows_core::from_raw_borrowed(&pdtobj), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } @@ -4374,19 +3282,13 @@ impl IContextMenuCB_Vtbl { iid == &::IID } } -pub trait IContextMenuSite_Impl: Sized { +pub trait IContextMenuSite_Impl: Sized + windows_core::IUnknownImpl { fn DoContextMenuPopup(&self, punkcontextmenu: Option<&windows_core::IUnknown>, fflags: u32, pt: &super::super::Foundation::POINT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IContextMenuSite {} impl IContextMenuSite_Vtbl { - pub const fn new() -> IContextMenuSite_Vtbl - where - Identity: IContextMenuSite_Impl, - { - unsafe extern "system" fn DoContextMenuPopup(this: *mut core::ffi::c_void, punkcontextmenu: *mut core::ffi::c_void, fflags: u32, pt: super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IContextMenuSite_Impl, - { + pub const fn new() -> IContextMenuSite_Vtbl { + unsafe extern "system" fn DoContextMenuPopup(this: *mut core::ffi::c_void, punkcontextmenu: *mut core::ffi::c_void, fflags: u32, pt: super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextMenuSite_Impl::DoContextMenuPopup(this, windows_core::from_raw_borrowed(&punkcontextmenu), core::mem::transmute_copy(&fflags), core::mem::transmute(&pt)).into() } @@ -4396,19 +3298,13 @@ impl IContextMenuSite_Vtbl { iid == &::IID } } -pub trait ICopyHookA_Impl: Sized { +pub trait ICopyHookA_Impl: Sized + windows_core::IUnknownImpl { fn CopyCallback(&self, hwnd: super::super::Foundation::HWND, wfunc: u32, wflags: u32, pszsrcfile: &windows_core::PCSTR, dwsrcattribs: u32, pszdestfile: &windows_core::PCSTR, dwdestattribs: u32) -> u32; } impl windows_core::RuntimeName for ICopyHookA {} impl ICopyHookA_Vtbl { - pub const fn new() -> ICopyHookA_Vtbl - where - Identity: ICopyHookA_Impl, - { - unsafe extern "system" fn CopyCallback(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, wfunc: u32, wflags: u32, pszsrcfile: windows_core::PCSTR, dwsrcattribs: u32, pszdestfile: windows_core::PCSTR, dwdestattribs: u32) -> u32 - where - Identity: ICopyHookA_Impl, - { + pub const fn new() -> ICopyHookA_Vtbl { + unsafe extern "system" fn CopyCallback(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, wfunc: u32, wflags: u32, pszsrcfile: windows_core::PCSTR, dwsrcattribs: u32, pszdestfile: windows_core::PCSTR, dwdestattribs: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICopyHookA_Impl::CopyCallback(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&wfunc), core::mem::transmute_copy(&wflags), core::mem::transmute(&pszsrcfile), core::mem::transmute_copy(&dwsrcattribs), core::mem::transmute(&pszdestfile), core::mem::transmute_copy(&dwdestattribs)) } @@ -4418,19 +3314,13 @@ impl ICopyHookA_Vtbl { iid == &::IID } } -pub trait ICopyHookW_Impl: Sized { +pub trait ICopyHookW_Impl: Sized + windows_core::IUnknownImpl { fn CopyCallback(&self, hwnd: super::super::Foundation::HWND, wfunc: u32, wflags: u32, pszsrcfile: &windows_core::PCWSTR, dwsrcattribs: u32, pszdestfile: &windows_core::PCWSTR, dwdestattribs: u32) -> u32; } impl windows_core::RuntimeName for ICopyHookW {} impl ICopyHookW_Vtbl { - pub const fn new() -> ICopyHookW_Vtbl - where - Identity: ICopyHookW_Impl, - { - unsafe extern "system" fn CopyCallback(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, wfunc: u32, wflags: u32, pszsrcfile: windows_core::PCWSTR, dwsrcattribs: u32, pszdestfile: windows_core::PCWSTR, dwdestattribs: u32) -> u32 - where - Identity: ICopyHookW_Impl, - { + pub const fn new() -> ICopyHookW_Vtbl { + unsafe extern "system" fn CopyCallback(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, wfunc: u32, wflags: u32, pszsrcfile: windows_core::PCWSTR, dwsrcattribs: u32, pszdestfile: windows_core::PCWSTR, dwdestattribs: u32) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICopyHookW_Impl::CopyCallback(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&wfunc), core::mem::transmute_copy(&wflags), core::mem::transmute(&pszsrcfile), core::mem::transmute_copy(&dwsrcattribs), core::mem::transmute(&pszdestfile), core::mem::transmute_copy(&dwdestattribs)) } @@ -4440,7 +3330,7 @@ impl ICopyHookW_Vtbl { iid == &::IID } } -pub trait ICreateProcessInputs_Impl: Sized { +pub trait ICreateProcessInputs_Impl: Sized + windows_core::IUnknownImpl { fn GetCreateFlags(&self) -> windows_core::Result; fn SetCreateFlags(&self, dwcreationflags: u32) -> windows_core::Result<()>; fn AddCreateFlags(&self, dwcreationflags: u32) -> windows_core::Result<()>; @@ -4451,14 +3341,8 @@ pub trait ICreateProcessInputs_Impl: Sized { } impl windows_core::RuntimeName for ICreateProcessInputs {} impl ICreateProcessInputs_Vtbl { - pub const fn new() -> ICreateProcessInputs_Vtbl - where - Identity: ICreateProcessInputs_Impl, - { - unsafe extern "system" fn GetCreateFlags(this: *mut core::ffi::c_void, pdwcreationflags: *mut u32) -> windows_core::HRESULT - where - Identity: ICreateProcessInputs_Impl, - { + pub const fn new() -> ICreateProcessInputs_Vtbl { + unsafe extern "system" fn GetCreateFlags(this: *mut core::ffi::c_void, pdwcreationflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICreateProcessInputs_Impl::GetCreateFlags(this) { Ok(ok__) => { @@ -4468,45 +3352,27 @@ impl ICreateProcessInputs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCreateFlags(this: *mut core::ffi::c_void, dwcreationflags: u32) -> windows_core::HRESULT - where - Identity: ICreateProcessInputs_Impl, - { + unsafe extern "system" fn SetCreateFlags(this: *mut core::ffi::c_void, dwcreationflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateProcessInputs_Impl::SetCreateFlags(this, core::mem::transmute_copy(&dwcreationflags)).into() } - unsafe extern "system" fn AddCreateFlags(this: *mut core::ffi::c_void, dwcreationflags: u32) -> windows_core::HRESULT - where - Identity: ICreateProcessInputs_Impl, - { + unsafe extern "system" fn AddCreateFlags(this: *mut core::ffi::c_void, dwcreationflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateProcessInputs_Impl::AddCreateFlags(this, core::mem::transmute_copy(&dwcreationflags)).into() } - unsafe extern "system" fn SetHotKey(this: *mut core::ffi::c_void, whotkey: u16) -> windows_core::HRESULT - where - Identity: ICreateProcessInputs_Impl, - { + unsafe extern "system" fn SetHotKey(this: *mut core::ffi::c_void, whotkey: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateProcessInputs_Impl::SetHotKey(this, core::mem::transmute_copy(&whotkey)).into() } - unsafe extern "system" fn AddStartupFlags(this: *mut core::ffi::c_void, dwstartupinfoflags: u32) -> windows_core::HRESULT - where - Identity: ICreateProcessInputs_Impl, - { + unsafe extern "system" fn AddStartupFlags(this: *mut core::ffi::c_void, dwstartupinfoflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateProcessInputs_Impl::AddStartupFlags(this, core::mem::transmute_copy(&dwstartupinfoflags)).into() } - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateProcessInputs_Impl, - { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateProcessInputs_Impl::SetTitle(this, core::mem::transmute(&psztitle)).into() } - unsafe extern "system" fn SetEnvironmentVariable(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pszvalue: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICreateProcessInputs_Impl, - { + unsafe extern "system" fn SetEnvironmentVariable(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pszvalue: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreateProcessInputs_Impl::SetEnvironmentVariable(this, core::mem::transmute(&pszname), core::mem::transmute(&pszvalue)).into() } @@ -4525,19 +3391,13 @@ impl ICreateProcessInputs_Vtbl { iid == &::IID } } -pub trait ICreatingProcess_Impl: Sized { +pub trait ICreatingProcess_Impl: Sized + windows_core::IUnknownImpl { fn OnCreating(&self, pcpi: Option<&ICreateProcessInputs>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICreatingProcess {} impl ICreatingProcess_Vtbl { - pub const fn new() -> ICreatingProcess_Vtbl - where - Identity: ICreatingProcess_Impl, - { - unsafe extern "system" fn OnCreating(this: *mut core::ffi::c_void, pcpi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICreatingProcess_Impl, - { + pub const fn new() -> ICreatingProcess_Vtbl { + unsafe extern "system" fn OnCreating(this: *mut core::ffi::c_void, pcpi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICreatingProcess_Impl::OnCreating(this, windows_core::from_raw_borrowed(&pcpi)).into() } @@ -4547,7 +3407,7 @@ impl ICreatingProcess_Vtbl { iid == &::IID } } -pub trait ICredentialProvider_Impl: Sized { +pub trait ICredentialProvider_Impl: Sized + windows_core::IUnknownImpl { fn SetUsageScenario(&self, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32) -> windows_core::Result<()>; fn SetSerialization(&self, pcpcs: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::Result<()>; fn Advise(&self, pcpe: Option<&ICredentialProviderEvents>, upadvisecontext: usize) -> windows_core::Result<()>; @@ -4559,42 +3419,24 @@ pub trait ICredentialProvider_Impl: Sized { } impl windows_core::RuntimeName for ICredentialProvider {} impl ICredentialProvider_Vtbl { - pub const fn new() -> ICredentialProvider_Vtbl - where - Identity: ICredentialProvider_Impl, - { - unsafe extern "system" fn SetUsageScenario(this: *mut core::ffi::c_void, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32) -> windows_core::HRESULT - where - Identity: ICredentialProvider_Impl, - { + pub const fn new() -> ICredentialProvider_Vtbl { + unsafe extern "system" fn SetUsageScenario(this: *mut core::ffi::c_void, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProvider_Impl::SetUsageScenario(this, core::mem::transmute_copy(&cpus), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SetSerialization(this: *mut core::ffi::c_void, pcpcs: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::HRESULT - where - Identity: ICredentialProvider_Impl, - { + unsafe extern "system" fn SetSerialization(this: *mut core::ffi::c_void, pcpcs: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProvider_Impl::SetSerialization(this, core::mem::transmute_copy(&pcpcs)).into() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pcpe: *mut core::ffi::c_void, upadvisecontext: usize) -> windows_core::HRESULT - where - Identity: ICredentialProvider_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pcpe: *mut core::ffi::c_void, upadvisecontext: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProvider_Impl::Advise(this, windows_core::from_raw_borrowed(&pcpe), core::mem::transmute_copy(&upadvisecontext)).into() } - unsafe extern "system" fn UnAdvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICredentialProvider_Impl, - { + unsafe extern "system" fn UnAdvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProvider_Impl::UnAdvise(this).into() } - unsafe extern "system" fn GetFieldDescriptorCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT - where - Identity: ICredentialProvider_Impl, - { + unsafe extern "system" fn GetFieldDescriptorCount(this: *mut core::ffi::c_void, pdwcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProvider_Impl::GetFieldDescriptorCount(this) { Ok(ok__) => { @@ -4604,10 +3446,7 @@ impl ICredentialProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFieldDescriptorAt(this: *mut core::ffi::c_void, dwindex: u32, ppcpfd: *mut *mut CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR) -> windows_core::HRESULT - where - Identity: ICredentialProvider_Impl, - { + unsafe extern "system" fn GetFieldDescriptorAt(this: *mut core::ffi::c_void, dwindex: u32, ppcpfd: *mut *mut CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProvider_Impl::GetFieldDescriptorAt(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -4617,17 +3456,11 @@ impl ICredentialProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCredentialCount(this: *mut core::ffi::c_void, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICredentialProvider_Impl, - { + unsafe extern "system" fn GetCredentialCount(this: *mut core::ffi::c_void, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProvider_Impl::GetCredentialCount(this, core::mem::transmute_copy(&pdwcount), core::mem::transmute_copy(&pdwdefault), core::mem::transmute_copy(&pbautologonwithdefault)).into() } - unsafe extern "system" fn GetCredentialAt(this: *mut core::ffi::c_void, dwindex: u32, ppcpc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICredentialProvider_Impl, - { + unsafe extern "system" fn GetCredentialAt(this: *mut core::ffi::c_void, dwindex: u32, ppcpc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProvider_Impl::GetCredentialAt(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -4654,7 +3487,7 @@ impl ICredentialProvider_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait ICredentialProviderCredential_Impl: Sized { +pub trait ICredentialProviderCredential_Impl: Sized + windows_core::IUnknownImpl { fn Advise(&self, pcpce: Option<&ICredentialProviderCredentialEvents>) -> windows_core::Result<()>; fn UnAdvise(&self) -> windows_core::Result<()>; fn SetSelected(&self) -> windows_core::Result; @@ -4677,28 +3510,16 @@ pub trait ICredentialProviderCredential_Impl: Sized { impl windows_core::RuntimeName for ICredentialProviderCredential {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ICredentialProviderCredential_Vtbl { - pub const fn new() -> ICredentialProviderCredential_Vtbl - where - Identity: ICredentialProviderCredential_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pcpce: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + pub const fn new() -> ICredentialProviderCredential_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pcpce: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::Advise(this, windows_core::from_raw_borrowed(&pcpce)).into() } - unsafe extern "system" fn UnAdvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn UnAdvise(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::UnAdvise(this).into() } - unsafe extern "system" fn SetSelected(this: *mut core::ffi::c_void, pbautologon: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn SetSelected(this: *mut core::ffi::c_void, pbautologon: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderCredential_Impl::SetSelected(this) { Ok(ok__) => { @@ -4708,24 +3529,15 @@ impl ICredentialProviderCredential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDeselected(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn SetDeselected(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::SetDeselected(this).into() } - unsafe extern "system" fn GetFieldState(this: *mut core::ffi::c_void, dwfieldid: u32, pcpfs: *mut CREDENTIAL_PROVIDER_FIELD_STATE, pcpfis: *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn GetFieldState(this: *mut core::ffi::c_void, dwfieldid: u32, pcpfs: *mut CREDENTIAL_PROVIDER_FIELD_STATE, pcpfis: *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::GetFieldState(this, core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&pcpfs), core::mem::transmute_copy(&pcpfis)).into() } - unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, dwfieldid: u32, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, dwfieldid: u32, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderCredential_Impl::GetStringValue(this, core::mem::transmute_copy(&dwfieldid)) { Ok(ok__) => { @@ -4735,10 +3547,7 @@ impl ICredentialProviderCredential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBitmapValue(this: *mut core::ffi::c_void, dwfieldid: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn GetBitmapValue(this: *mut core::ffi::c_void, dwfieldid: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderCredential_Impl::GetBitmapValue(this, core::mem::transmute_copy(&dwfieldid)) { Ok(ok__) => { @@ -4748,17 +3557,11 @@ impl ICredentialProviderCredential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCheckboxValue(this: *mut core::ffi::c_void, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn GetCheckboxValue(this: *mut core::ffi::c_void, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::GetCheckboxValue(this, core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&pbchecked), core::mem::transmute_copy(&ppszlabel)).into() } - unsafe extern "system" fn GetSubmitButtonValue(this: *mut core::ffi::c_void, dwfieldid: u32, pdwadjacentto: *mut u32) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn GetSubmitButtonValue(this: *mut core::ffi::c_void, dwfieldid: u32, pdwadjacentto: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderCredential_Impl::GetSubmitButtonValue(this, core::mem::transmute_copy(&dwfieldid)) { Ok(ok__) => { @@ -4768,17 +3571,11 @@ impl ICredentialProviderCredential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComboBoxValueCount(this: *mut core::ffi::c_void, dwfieldid: u32, pcitems: *mut u32, pdwselecteditem: *mut u32) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn GetComboBoxValueCount(this: *mut core::ffi::c_void, dwfieldid: u32, pcitems: *mut u32, pdwselecteditem: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::GetComboBoxValueCount(this, core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&pcitems), core::mem::transmute_copy(&pdwselecteditem)).into() } - unsafe extern "system" fn GetComboBoxValueAt(this: *mut core::ffi::c_void, dwfieldid: u32, dwitem: u32, ppszitem: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn GetComboBoxValueAt(this: *mut core::ffi::c_void, dwfieldid: u32, dwitem: u32, ppszitem: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderCredential_Impl::GetComboBoxValueAt(this, core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&dwitem)) { Ok(ok__) => { @@ -4788,45 +3585,27 @@ impl ICredentialProviderCredential_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStringValue(this: *mut core::ffi::c_void, dwfieldid: u32, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn SetStringValue(this: *mut core::ffi::c_void, dwfieldid: u32, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::SetStringValue(this, core::mem::transmute_copy(&dwfieldid), core::mem::transmute(&psz)).into() } - unsafe extern "system" fn SetCheckboxValue(this: *mut core::ffi::c_void, dwfieldid: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn SetCheckboxValue(this: *mut core::ffi::c_void, dwfieldid: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::SetCheckboxValue(this, core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&bchecked)).into() } - unsafe extern "system" fn SetComboBoxSelectedValue(this: *mut core::ffi::c_void, dwfieldid: u32, dwselecteditem: u32) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn SetComboBoxSelectedValue(this: *mut core::ffi::c_void, dwfieldid: u32, dwselecteditem: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::SetComboBoxSelectedValue(this, core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&dwselecteditem)).into() } - unsafe extern "system" fn CommandLinkClicked(this: *mut core::ffi::c_void, dwfieldid: u32) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn CommandLinkClicked(this: *mut core::ffi::c_void, dwfieldid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::CommandLinkClicked(this, core::mem::transmute_copy(&dwfieldid)).into() } - unsafe extern "system" fn GetSerialization(this: *mut core::ffi::c_void, pcpgsr: *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, pcpcs: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, ppszoptionalstatustext: *mut windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn GetSerialization(this: *mut core::ffi::c_void, pcpgsr: *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, pcpcs: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, ppszoptionalstatustext: *mut windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::GetSerialization(this, core::mem::transmute_copy(&pcpgsr), core::mem::transmute_copy(&pcpcs), core::mem::transmute_copy(&ppszoptionalstatustext), core::mem::transmute_copy(&pcpsioptionalstatusicon)).into() } - unsafe extern "system" fn ReportResult(this: *mut core::ffi::c_void, ntsstatus: super::super::Foundation::NTSTATUS, ntssubstatus: super::super::Foundation::NTSTATUS, ppszoptionalstatustext: *mut windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential_Impl, - { + unsafe extern "system" fn ReportResult(this: *mut core::ffi::c_void, ntsstatus: super::super::Foundation::NTSTATUS, ntssubstatus: super::super::Foundation::NTSTATUS, ppszoptionalstatustext: *mut windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::ReportResult(this, core::mem::transmute_copy(&ntsstatus), core::mem::transmute_copy(&ntssubstatus), core::mem::transmute_copy(&ppszoptionalstatustext), core::mem::transmute_copy(&pcpsioptionalstatusicon)).into() } @@ -4863,14 +3642,8 @@ pub trait ICredentialProviderCredential2_Impl: Sized + ICredentialProviderCreden impl windows_core::RuntimeName for ICredentialProviderCredential2 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ICredentialProviderCredential2_Vtbl { - pub const fn new() -> ICredentialProviderCredential2_Vtbl - where - Identity: ICredentialProviderCredential2_Impl, - { - unsafe extern "system" fn GetUserSid(this: *mut core::ffi::c_void, sid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredential2_Impl, - { + pub const fn new() -> ICredentialProviderCredential2_Vtbl { + unsafe extern "system" fn GetUserSid(this: *mut core::ffi::c_void, sid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderCredential2_Impl::GetUserSid(this) { Ok(ok__) => { @@ -4887,7 +3660,7 @@ impl ICredentialProviderCredential2_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait ICredentialProviderCredentialEvents_Impl: Sized { +pub trait ICredentialProviderCredentialEvents_Impl: Sized + windows_core::IUnknownImpl { fn SetFieldState(&self, pcpc: Option<&ICredentialProviderCredential>, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> windows_core::Result<()>; fn SetFieldInteractiveState(&self, pcpc: Option<&ICredentialProviderCredential>, dwfieldid: u32, cpfis: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::Result<()>; fn SetFieldString(&self, pcpc: Option<&ICredentialProviderCredential>, dwfieldid: u32, psz: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -4903,77 +3676,44 @@ pub trait ICredentialProviderCredentialEvents_Impl: Sized { impl windows_core::RuntimeName for ICredentialProviderCredentialEvents {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ICredentialProviderCredentialEvents_Vtbl { - pub const fn new() -> ICredentialProviderCredentialEvents_Vtbl - where - Identity: ICredentialProviderCredentialEvents_Impl, - { - unsafe extern "system" fn SetFieldState(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents_Impl, - { + pub const fn new() -> ICredentialProviderCredentialEvents_Vtbl { + unsafe extern "system" fn SetFieldState(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents_Impl::SetFieldState(this, windows_core::from_raw_borrowed(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&cpfs)).into() } - unsafe extern "system" fn SetFieldInteractiveState(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, cpfis: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents_Impl, - { + unsafe extern "system" fn SetFieldInteractiveState(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, cpfis: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents_Impl::SetFieldInteractiveState(this, windows_core::from_raw_borrowed(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&cpfis)).into() } - unsafe extern "system" fn SetFieldString(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents_Impl, - { + unsafe extern "system" fn SetFieldString(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents_Impl::SetFieldString(this, windows_core::from_raw_borrowed(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute(&psz)).into() } - unsafe extern "system" fn SetFieldCheckbox(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, bchecked: super::super::Foundation::BOOL, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents_Impl, - { + unsafe extern "system" fn SetFieldCheckbox(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, bchecked: super::super::Foundation::BOOL, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents_Impl::SetFieldCheckbox(this, windows_core::from_raw_borrowed(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&bchecked), core::mem::transmute(&pszlabel)).into() } - unsafe extern "system" fn SetFieldBitmap(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, hbmp: super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents_Impl, - { + unsafe extern "system" fn SetFieldBitmap(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, hbmp: super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents_Impl::SetFieldBitmap(this, windows_core::from_raw_borrowed(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&hbmp)).into() } - unsafe extern "system" fn SetFieldComboBoxSelectedItem(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, dwselecteditem: u32) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents_Impl, - { + unsafe extern "system" fn SetFieldComboBoxSelectedItem(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, dwselecteditem: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents_Impl::SetFieldComboBoxSelectedItem(this, windows_core::from_raw_borrowed(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&dwselecteditem)).into() } - unsafe extern "system" fn DeleteFieldComboBoxItem(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, dwitem: u32) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents_Impl, - { + unsafe extern "system" fn DeleteFieldComboBoxItem(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, dwitem: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents_Impl::DeleteFieldComboBoxItem(this, windows_core::from_raw_borrowed(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&dwitem)).into() } - unsafe extern "system" fn AppendFieldComboBoxItem(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, pszitem: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents_Impl, - { + unsafe extern "system" fn AppendFieldComboBoxItem(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, pszitem: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents_Impl::AppendFieldComboBoxItem(this, windows_core::from_raw_borrowed(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute(&pszitem)).into() } - unsafe extern "system" fn SetFieldSubmitButton(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, dwadjacentto: u32) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents_Impl, - { + unsafe extern "system" fn SetFieldSubmitButton(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, dwadjacentto: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents_Impl::SetFieldSubmitButton(this, windows_core::from_raw_borrowed(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&dwadjacentto)).into() } - unsafe extern "system" fn OnCreatingWindow(this: *mut core::ffi::c_void, phwndowner: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents_Impl, - { + unsafe extern "system" fn OnCreatingWindow(this: *mut core::ffi::c_void, phwndowner: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderCredentialEvents_Impl::OnCreatingWindow(this) { Ok(ok__) => { @@ -5011,28 +3751,16 @@ pub trait ICredentialProviderCredentialEvents2_Impl: Sized + ICredentialProvider impl windows_core::RuntimeName for ICredentialProviderCredentialEvents2 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ICredentialProviderCredentialEvents2_Vtbl { - pub const fn new() -> ICredentialProviderCredentialEvents2_Vtbl - where - Identity: ICredentialProviderCredentialEvents2_Impl, - { - unsafe extern "system" fn BeginFieldUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents2_Impl, - { + pub const fn new() -> ICredentialProviderCredentialEvents2_Vtbl { + unsafe extern "system" fn BeginFieldUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents2_Impl::BeginFieldUpdates(this).into() } - unsafe extern "system" fn EndFieldUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents2_Impl, - { + unsafe extern "system" fn EndFieldUpdates(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents2_Impl::EndFieldUpdates(this).into() } - unsafe extern "system" fn SetFieldOptions(this: *mut core::ffi::c_void, credential: *mut core::ffi::c_void, fieldid: u32, options: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialEvents2_Impl, - { + unsafe extern "system" fn SetFieldOptions(this: *mut core::ffi::c_void, credential: *mut core::ffi::c_void, fieldid: u32, options: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents2_Impl::SetFieldOptions(this, windows_core::from_raw_borrowed(&credential), core::mem::transmute_copy(&fieldid), core::mem::transmute_copy(&options)).into() } @@ -5047,19 +3775,13 @@ impl ICredentialProviderCredentialEvents2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ICredentialProviderCredentialWithFieldOptions_Impl: Sized { +pub trait ICredentialProviderCredentialWithFieldOptions_Impl: Sized + windows_core::IUnknownImpl { fn GetFieldOptions(&self, fieldid: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ICredentialProviderCredentialWithFieldOptions {} impl ICredentialProviderCredentialWithFieldOptions_Vtbl { - pub const fn new() -> ICredentialProviderCredentialWithFieldOptions_Vtbl - where - Identity: ICredentialProviderCredentialWithFieldOptions_Impl, - { - unsafe extern "system" fn GetFieldOptions(this: *mut core::ffi::c_void, fieldid: u32, options: *mut CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) -> windows_core::HRESULT - where - Identity: ICredentialProviderCredentialWithFieldOptions_Impl, - { + pub const fn new() -> ICredentialProviderCredentialWithFieldOptions_Vtbl { + unsafe extern "system" fn GetFieldOptions(this: *mut core::ffi::c_void, fieldid: u32, options: *mut CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderCredentialWithFieldOptions_Impl::GetFieldOptions(this, core::mem::transmute_copy(&fieldid)) { Ok(ok__) => { @@ -5075,19 +3797,13 @@ impl ICredentialProviderCredentialWithFieldOptions_Vtbl { iid == &::IID } } -pub trait ICredentialProviderEvents_Impl: Sized { +pub trait ICredentialProviderEvents_Impl: Sized + windows_core::IUnknownImpl { fn CredentialsChanged(&self, upadvisecontext: usize) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICredentialProviderEvents {} impl ICredentialProviderEvents_Vtbl { - pub const fn new() -> ICredentialProviderEvents_Vtbl - where - Identity: ICredentialProviderEvents_Impl, - { - unsafe extern "system" fn CredentialsChanged(this: *mut core::ffi::c_void, upadvisecontext: usize) -> windows_core::HRESULT - where - Identity: ICredentialProviderEvents_Impl, - { + pub const fn new() -> ICredentialProviderEvents_Vtbl { + unsafe extern "system" fn CredentialsChanged(this: *mut core::ffi::c_void, upadvisecontext: usize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderEvents_Impl::CredentialsChanged(this, core::mem::transmute_copy(&upadvisecontext)).into() } @@ -5097,27 +3813,18 @@ impl ICredentialProviderEvents_Vtbl { iid == &::IID } } -pub trait ICredentialProviderFilter_Impl: Sized { +pub trait ICredentialProviderFilter_Impl: Sized + windows_core::IUnknownImpl { fn Filter(&self, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const windows_core::GUID, rgballow: *mut super::super::Foundation::BOOL, cproviders: u32) -> windows_core::Result<()>; fn UpdateRemoteCredential(&self, pcpcsin: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, pcpcsout: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICredentialProviderFilter {} impl ICredentialProviderFilter_Vtbl { - pub const fn new() -> ICredentialProviderFilter_Vtbl - where - Identity: ICredentialProviderFilter_Impl, - { - unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const windows_core::GUID, rgballow: *mut super::super::Foundation::BOOL, cproviders: u32) -> windows_core::HRESULT - where - Identity: ICredentialProviderFilter_Impl, - { + pub const fn new() -> ICredentialProviderFilter_Vtbl { + unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const windows_core::GUID, rgballow: *mut super::super::Foundation::BOOL, cproviders: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderFilter_Impl::Filter(this, core::mem::transmute_copy(&cpus), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&rgclsidproviders), core::mem::transmute_copy(&rgballow), core::mem::transmute_copy(&cproviders)).into() } - unsafe extern "system" fn UpdateRemoteCredential(this: *mut core::ffi::c_void, pcpcsin: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, pcpcsout: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::HRESULT - where - Identity: ICredentialProviderFilter_Impl, - { + unsafe extern "system" fn UpdateRemoteCredential(this: *mut core::ffi::c_void, pcpcsin: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, pcpcsout: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderFilter_Impl::UpdateRemoteCredential(this, core::mem::transmute_copy(&pcpcsin), core::mem::transmute_copy(&pcpcsout)).into() } @@ -5131,19 +3838,13 @@ impl ICredentialProviderFilter_Vtbl { iid == &::IID } } -pub trait ICredentialProviderSetUserArray_Impl: Sized { +pub trait ICredentialProviderSetUserArray_Impl: Sized + windows_core::IUnknownImpl { fn SetUserArray(&self, users: Option<&ICredentialProviderUserArray>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICredentialProviderSetUserArray {} impl ICredentialProviderSetUserArray_Vtbl { - pub const fn new() -> ICredentialProviderSetUserArray_Vtbl - where - Identity: ICredentialProviderSetUserArray_Impl, - { - unsafe extern "system" fn SetUserArray(this: *mut core::ffi::c_void, users: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICredentialProviderSetUserArray_Impl, - { + pub const fn new() -> ICredentialProviderSetUserArray_Vtbl { + unsafe extern "system" fn SetUserArray(this: *mut core::ffi::c_void, users: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderSetUserArray_Impl::SetUserArray(this, windows_core::from_raw_borrowed(&users)).into() } @@ -5154,7 +3855,7 @@ impl ICredentialProviderSetUserArray_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ICredentialProviderUser_Impl: Sized { +pub trait ICredentialProviderUser_Impl: Sized + windows_core::IUnknownImpl { fn GetSid(&self) -> windows_core::Result; fn GetProviderID(&self) -> windows_core::Result; fn GetStringValue(&self, key: *const PropertiesSystem::PROPERTYKEY) -> windows_core::Result; @@ -5164,14 +3865,8 @@ pub trait ICredentialProviderUser_Impl: Sized { impl windows_core::RuntimeName for ICredentialProviderUser {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ICredentialProviderUser_Vtbl { - pub const fn new() -> ICredentialProviderUser_Vtbl - where - Identity: ICredentialProviderUser_Impl, - { - unsafe extern "system" fn GetSid(this: *mut core::ffi::c_void, sid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICredentialProviderUser_Impl, - { + pub const fn new() -> ICredentialProviderUser_Vtbl { + unsafe extern "system" fn GetSid(this: *mut core::ffi::c_void, sid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderUser_Impl::GetSid(this) { Ok(ok__) => { @@ -5181,10 +3876,7 @@ impl ICredentialProviderUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderID(this: *mut core::ffi::c_void, providerid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICredentialProviderUser_Impl, - { + unsafe extern "system" fn GetProviderID(this: *mut core::ffi::c_void, providerid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderUser_Impl::GetProviderID(this) { Ok(ok__) => { @@ -5194,10 +3886,7 @@ impl ICredentialProviderUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, stringvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ICredentialProviderUser_Impl, - { + unsafe extern "system" fn GetStringValue(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, stringvalue: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderUser_Impl::GetStringValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -5207,10 +3896,7 @@ impl ICredentialProviderUser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICredentialProviderUser_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, value: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderUser_Impl::GetValue(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -5232,7 +3918,7 @@ impl ICredentialProviderUser_Vtbl { iid == &::IID } } -pub trait ICredentialProviderUserArray_Impl: Sized { +pub trait ICredentialProviderUserArray_Impl: Sized + windows_core::IUnknownImpl { fn SetProviderFilter(&self, guidprovidertofilterto: *const windows_core::GUID) -> windows_core::Result<()>; fn GetAccountOptions(&self) -> windows_core::Result; fn GetCount(&self) -> windows_core::Result; @@ -5240,21 +3926,12 @@ pub trait ICredentialProviderUserArray_Impl: Sized { } impl windows_core::RuntimeName for ICredentialProviderUserArray {} impl ICredentialProviderUserArray_Vtbl { - pub const fn new() -> ICredentialProviderUserArray_Vtbl - where - Identity: ICredentialProviderUserArray_Impl, - { - unsafe extern "system" fn SetProviderFilter(this: *mut core::ffi::c_void, guidprovidertofilterto: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ICredentialProviderUserArray_Impl, - { + pub const fn new() -> ICredentialProviderUserArray_Vtbl { + unsafe extern "system" fn SetProviderFilter(this: *mut core::ffi::c_void, guidprovidertofilterto: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderUserArray_Impl::SetProviderFilter(this, core::mem::transmute_copy(&guidprovidertofilterto)).into() } - unsafe extern "system" fn GetAccountOptions(this: *mut core::ffi::c_void, credentialprovideraccountoptions: *mut CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS) -> windows_core::HRESULT - where - Identity: ICredentialProviderUserArray_Impl, - { + unsafe extern "system" fn GetAccountOptions(this: *mut core::ffi::c_void, credentialprovideraccountoptions: *mut CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderUserArray_Impl::GetAccountOptions(this) { Ok(ok__) => { @@ -5264,10 +3941,7 @@ impl ICredentialProviderUserArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, usercount: *mut u32) -> windows_core::HRESULT - where - Identity: ICredentialProviderUserArray_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, usercount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderUserArray_Impl::GetCount(this) { Ok(ok__) => { @@ -5277,10 +3951,7 @@ impl ICredentialProviderUserArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, userindex: u32, user: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICredentialProviderUserArray_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, userindex: u32, user: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderUserArray_Impl::GetAt(this, core::mem::transmute_copy(&userindex)) { Ok(ok__) => { @@ -5308,37 +3979,25 @@ pub trait ICurrentItem_Impl: Sized + IRelatedItem_Impl {} impl windows_core::RuntimeName for ICurrentItem {} #[cfg(feature = "Win32_UI_Shell_Common")] impl ICurrentItem_Vtbl { - pub const fn new() -> ICurrentItem_Vtbl - where - Identity: ICurrentItem_Impl, - { + pub const fn new() -> ICurrentItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait ICurrentWorkingDirectory_Impl: Sized { +pub trait ICurrentWorkingDirectory_Impl: Sized + windows_core::IUnknownImpl { fn GetDirectory(&self, pwzpath: windows_core::PWSTR, cchsize: u32) -> windows_core::Result<()>; fn SetDirectory(&self, pwzpath: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICurrentWorkingDirectory {} impl ICurrentWorkingDirectory_Vtbl { - pub const fn new() -> ICurrentWorkingDirectory_Vtbl - where - Identity: ICurrentWorkingDirectory_Impl, - { - unsafe extern "system" fn GetDirectory(this: *mut core::ffi::c_void, pwzpath: windows_core::PWSTR, cchsize: u32) -> windows_core::HRESULT - where - Identity: ICurrentWorkingDirectory_Impl, - { + pub const fn new() -> ICurrentWorkingDirectory_Vtbl { + unsafe extern "system" fn GetDirectory(this: *mut core::ffi::c_void, pwzpath: windows_core::PWSTR, cchsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICurrentWorkingDirectory_Impl::GetDirectory(this, core::mem::transmute_copy(&pwzpath), core::mem::transmute_copy(&cchsize)).into() } - unsafe extern "system" fn SetDirectory(this: *mut core::ffi::c_void, pwzpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICurrentWorkingDirectory_Impl, - { + unsafe extern "system" fn SetDirectory(this: *mut core::ffi::c_void, pwzpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICurrentWorkingDirectory_Impl::SetDirectory(this, core::mem::transmute(&pwzpath)).into() } @@ -5353,7 +4012,7 @@ impl ICurrentWorkingDirectory_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait ICustomDestinationList_Impl: Sized { +pub trait ICustomDestinationList_Impl: Sized + windows_core::IUnknownImpl { fn SetAppID(&self, pszappid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn BeginList(&self, pcminslots: *mut u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn AppendCategory(&self, pszcategory: &windows_core::PCWSTR, poa: Option<&Common::IObjectArray>) -> windows_core::Result<()>; @@ -5368,70 +4027,40 @@ pub trait ICustomDestinationList_Impl: Sized { impl windows_core::RuntimeName for ICustomDestinationList {} #[cfg(feature = "Win32_UI_Shell_Common")] impl ICustomDestinationList_Vtbl { - pub const fn new() -> ICustomDestinationList_Vtbl - where - Identity: ICustomDestinationList_Impl, - { - unsafe extern "system" fn SetAppID(this: *mut core::ffi::c_void, pszappid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICustomDestinationList_Impl, - { + pub const fn new() -> ICustomDestinationList_Vtbl { + unsafe extern "system" fn SetAppID(this: *mut core::ffi::c_void, pszappid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomDestinationList_Impl::SetAppID(this, core::mem::transmute(&pszappid)).into() } - unsafe extern "system" fn BeginList(this: *mut core::ffi::c_void, pcminslots: *mut u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomDestinationList_Impl, - { + unsafe extern "system" fn BeginList(this: *mut core::ffi::c_void, pcminslots: *mut u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomDestinationList_Impl::BeginList(this, core::mem::transmute_copy(&pcminslots), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn AppendCategory(this: *mut core::ffi::c_void, pszcategory: windows_core::PCWSTR, poa: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomDestinationList_Impl, - { + unsafe extern "system" fn AppendCategory(this: *mut core::ffi::c_void, pszcategory: windows_core::PCWSTR, poa: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomDestinationList_Impl::AppendCategory(this, core::mem::transmute(&pszcategory), windows_core::from_raw_borrowed(&poa)).into() } - unsafe extern "system" fn AppendKnownCategory(this: *mut core::ffi::c_void, category: KNOWNDESTCATEGORY) -> windows_core::HRESULT - where - Identity: ICustomDestinationList_Impl, - { + unsafe extern "system" fn AppendKnownCategory(this: *mut core::ffi::c_void, category: KNOWNDESTCATEGORY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomDestinationList_Impl::AppendKnownCategory(this, core::mem::transmute_copy(&category)).into() } - unsafe extern "system" fn AddUserTasks(this: *mut core::ffi::c_void, poa: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomDestinationList_Impl, - { + unsafe extern "system" fn AddUserTasks(this: *mut core::ffi::c_void, poa: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomDestinationList_Impl::AddUserTasks(this, windows_core::from_raw_borrowed(&poa)).into() } - unsafe extern "system" fn CommitList(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomDestinationList_Impl, - { + unsafe extern "system" fn CommitList(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomDestinationList_Impl::CommitList(this).into() } - unsafe extern "system" fn GetRemovedDestinations(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomDestinationList_Impl, - { + unsafe extern "system" fn GetRemovedDestinations(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomDestinationList_Impl::GetRemovedDestinations(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn DeleteList(this: *mut core::ffi::c_void, pszappid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ICustomDestinationList_Impl, - { + unsafe extern "system" fn DeleteList(this: *mut core::ffi::c_void, pszappid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomDestinationList_Impl::DeleteList(this, core::mem::transmute(&pszappid)).into() } - unsafe extern "system" fn AbortList(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ICustomDestinationList_Impl, - { + unsafe extern "system" fn AbortList(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICustomDestinationList_Impl::AbortList(this).into() } @@ -5453,7 +4082,7 @@ impl ICustomDestinationList_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDataObjectAsyncCapability_Impl: Sized { +pub trait IDataObjectAsyncCapability_Impl: Sized + windows_core::IUnknownImpl { fn SetAsyncMode(&self, fdoopasync: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetAsyncMode(&self) -> windows_core::Result; fn StartOperation(&self, pbcreserved: Option<&super::super::System::Com::IBindCtx>) -> windows_core::Result<()>; @@ -5464,21 +4093,12 @@ pub trait IDataObjectAsyncCapability_Impl: Sized { impl windows_core::RuntimeName for IDataObjectAsyncCapability {} #[cfg(feature = "Win32_System_Com")] impl IDataObjectAsyncCapability_Vtbl { - pub const fn new() -> IDataObjectAsyncCapability_Vtbl - where - Identity: IDataObjectAsyncCapability_Impl, - { - unsafe extern "system" fn SetAsyncMode(this: *mut core::ffi::c_void, fdoopasync: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDataObjectAsyncCapability_Impl, - { + pub const fn new() -> IDataObjectAsyncCapability_Vtbl { + unsafe extern "system" fn SetAsyncMode(this: *mut core::ffi::c_void, fdoopasync: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObjectAsyncCapability_Impl::SetAsyncMode(this, core::mem::transmute_copy(&fdoopasync)).into() } - unsafe extern "system" fn GetAsyncMode(this: *mut core::ffi::c_void, pfisopasync: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDataObjectAsyncCapability_Impl, - { + unsafe extern "system" fn GetAsyncMode(this: *mut core::ffi::c_void, pfisopasync: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataObjectAsyncCapability_Impl::GetAsyncMode(this) { Ok(ok__) => { @@ -5488,17 +4108,11 @@ impl IDataObjectAsyncCapability_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StartOperation(this: *mut core::ffi::c_void, pbcreserved: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataObjectAsyncCapability_Impl, - { + unsafe extern "system" fn StartOperation(this: *mut core::ffi::c_void, pbcreserved: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObjectAsyncCapability_Impl::StartOperation(this, windows_core::from_raw_borrowed(&pbcreserved)).into() } - unsafe extern "system" fn InOperation(this: *mut core::ffi::c_void, pfinasyncop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDataObjectAsyncCapability_Impl, - { + unsafe extern "system" fn InOperation(this: *mut core::ffi::c_void, pfinasyncop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataObjectAsyncCapability_Impl::InOperation(this) { Ok(ok__) => { @@ -5508,10 +4122,7 @@ impl IDataObjectAsyncCapability_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EndOperation(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, pbcreserved: *mut core::ffi::c_void, dweffects: u32) -> windows_core::HRESULT - where - Identity: IDataObjectAsyncCapability_Impl, - { + unsafe extern "system" fn EndOperation(this: *mut core::ffi::c_void, hresult: windows_core::HRESULT, pbcreserved: *mut core::ffi::c_void, dweffects: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObjectAsyncCapability_Impl::EndOperation(this, core::mem::transmute_copy(&hresult), windows_core::from_raw_borrowed(&pbcreserved), core::mem::transmute_copy(&dweffects)).into() } @@ -5529,7 +4140,7 @@ impl IDataObjectAsyncCapability_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDataObjectProvider_Impl: Sized { +pub trait IDataObjectProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetDataObject(&self) -> windows_core::Result; fn SetDataObject(&self, dataobject: Option<&super::super::System::Com::IDataObject>) -> windows_core::Result<()>; } @@ -5537,14 +4148,8 @@ pub trait IDataObjectProvider_Impl: Sized { impl windows_core::RuntimeName for IDataObjectProvider {} #[cfg(feature = "Win32_System_Com")] impl IDataObjectProvider_Vtbl { - pub const fn new() -> IDataObjectProvider_Vtbl - where - Identity: IDataObjectProvider_Impl, - { - unsafe extern "system" fn GetDataObject(this: *mut core::ffi::c_void, dataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataObjectProvider_Impl, - { + pub const fn new() -> IDataObjectProvider_Vtbl { + unsafe extern "system" fn GetDataObject(this: *mut core::ffi::c_void, dataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataObjectProvider_Impl::GetDataObject(this) { Ok(ok__) => { @@ -5554,10 +4159,7 @@ impl IDataObjectProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDataObject(this: *mut core::ffi::c_void, dataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataObjectProvider_Impl, - { + unsafe extern "system" fn SetDataObject(this: *mut core::ffi::c_void, dataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObjectProvider_Impl::SetDataObject(this, windows_core::from_raw_borrowed(&dataobject)).into() } @@ -5571,27 +4173,18 @@ impl IDataObjectProvider_Vtbl { iid == &::IID } } -pub trait IDataTransferManagerInterop_Impl: Sized { +pub trait IDataTransferManagerInterop_Impl: Sized + windows_core::IUnknownImpl { fn GetForWindow(&self, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, datatransfermanager: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn ShowShareUIForWindow(&self, appwindow: super::super::Foundation::HWND) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDataTransferManagerInterop {} impl IDataTransferManagerInterop_Vtbl { - pub const fn new() -> IDataTransferManagerInterop_Vtbl - where - Identity: IDataTransferManagerInterop_Impl, - { - unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, datatransfermanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDataTransferManagerInterop_Impl, - { + pub const fn new() -> IDataTransferManagerInterop_Vtbl { + unsafe extern "system" fn GetForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const windows_core::GUID, datatransfermanager: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataTransferManagerInterop_Impl::GetForWindow(this, core::mem::transmute_copy(&appwindow), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&datatransfermanager)).into() } - unsafe extern "system" fn ShowShareUIForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IDataTransferManagerInterop_Impl, - { + unsafe extern "system" fn ShowShareUIForWindow(this: *mut core::ffi::c_void, appwindow: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataTransferManagerInterop_Impl::ShowShareUIForWindow(this, core::mem::transmute_copy(&appwindow)).into() } @@ -5606,7 +4199,7 @@ impl IDataTransferManagerInterop_Vtbl { } } #[cfg(feature = "Win32_System_Registry")] -pub trait IDefaultExtractIconInit_Impl: Sized { +pub trait IDefaultExtractIconInit_Impl: Sized + windows_core::IUnknownImpl { fn SetFlags(&self, uflags: u32) -> windows_core::Result<()>; fn SetKey(&self, hkey: super::super::System::Registry::HKEY) -> windows_core::Result<()>; fn SetNormalIcon(&self, pszfile: &windows_core::PCWSTR, iicon: i32) -> windows_core::Result<()>; @@ -5618,49 +4211,28 @@ pub trait IDefaultExtractIconInit_Impl: Sized { impl windows_core::RuntimeName for IDefaultExtractIconInit {} #[cfg(feature = "Win32_System_Registry")] impl IDefaultExtractIconInit_Vtbl { - pub const fn new() -> IDefaultExtractIconInit_Vtbl - where - Identity: IDefaultExtractIconInit_Impl, - { - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, uflags: u32) -> windows_core::HRESULT - where - Identity: IDefaultExtractIconInit_Impl, - { + pub const fn new() -> IDefaultExtractIconInit_Vtbl { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultExtractIconInit_Impl::SetFlags(this, core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, hkey: super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IDefaultExtractIconInit_Impl, - { + unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, hkey: super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultExtractIconInit_Impl::SetKey(this, core::mem::transmute_copy(&hkey)).into() } - unsafe extern "system" fn SetNormalIcon(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, iicon: i32) -> windows_core::HRESULT - where - Identity: IDefaultExtractIconInit_Impl, - { + unsafe extern "system" fn SetNormalIcon(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, iicon: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultExtractIconInit_Impl::SetNormalIcon(this, core::mem::transmute(&pszfile), core::mem::transmute_copy(&iicon)).into() } - unsafe extern "system" fn SetOpenIcon(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, iicon: i32) -> windows_core::HRESULT - where - Identity: IDefaultExtractIconInit_Impl, - { + unsafe extern "system" fn SetOpenIcon(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, iicon: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultExtractIconInit_Impl::SetOpenIcon(this, core::mem::transmute(&pszfile), core::mem::transmute_copy(&iicon)).into() } - unsafe extern "system" fn SetShortcutIcon(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, iicon: i32) -> windows_core::HRESULT - where - Identity: IDefaultExtractIconInit_Impl, - { + unsafe extern "system" fn SetShortcutIcon(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, iicon: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultExtractIconInit_Impl::SetShortcutIcon(this, core::mem::transmute(&pszfile), core::mem::transmute_copy(&iicon)).into() } - unsafe extern "system" fn SetDefaultIcon(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, iicon: i32) -> windows_core::HRESULT - where - Identity: IDefaultExtractIconInit_Impl, - { + unsafe extern "system" fn SetDefaultIcon(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, iicon: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultExtractIconInit_Impl::SetDefaultIcon(this, core::mem::transmute(&pszfile), core::mem::transmute_copy(&iicon)).into() } @@ -5679,7 +4251,7 @@ impl IDefaultExtractIconInit_Vtbl { } } #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] -pub trait IDefaultFolderMenuInitialize_Impl: Sized { +pub trait IDefaultFolderMenuInitialize_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hwnd: super::super::Foundation::HWND, pcmcb: Option<&IContextMenuCB>, pidlfolder: *const Common::ITEMIDLIST, psf: Option<&IShellFolder>, cidl: u32, apidl: *const *const Common::ITEMIDLIST, punkassociation: Option<&windows_core::IUnknown>, ckeys: u32, akeys: *const super::super::System::Registry::HKEY) -> windows_core::Result<()>; fn SetMenuRestrictions(&self, dfmrvalues: DEFAULT_FOLDER_MENU_RESTRICTIONS) -> windows_core::Result<()>; fn GetMenuRestrictions(&self, dfmrmask: DEFAULT_FOLDER_MENU_RESTRICTIONS) -> windows_core::Result; @@ -5689,28 +4261,16 @@ pub trait IDefaultFolderMenuInitialize_Impl: Sized { impl windows_core::RuntimeName for IDefaultFolderMenuInitialize {} #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] impl IDefaultFolderMenuInitialize_Vtbl { - pub const fn new() -> IDefaultFolderMenuInitialize_Vtbl - where - Identity: IDefaultFolderMenuInitialize_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pcmcb: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, psf: *mut core::ffi::c_void, cidl: u32, apidl: *const *const Common::ITEMIDLIST, punkassociation: *mut core::ffi::c_void, ckeys: u32, akeys: *const super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IDefaultFolderMenuInitialize_Impl, - { + pub const fn new() -> IDefaultFolderMenuInitialize_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pcmcb: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, psf: *mut core::ffi::c_void, cidl: u32, apidl: *const *const Common::ITEMIDLIST, punkassociation: *mut core::ffi::c_void, ckeys: u32, akeys: *const super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultFolderMenuInitialize_Impl::Initialize(this, core::mem::transmute_copy(&hwnd), windows_core::from_raw_borrowed(&pcmcb), core::mem::transmute_copy(&pidlfolder), windows_core::from_raw_borrowed(&psf), core::mem::transmute_copy(&cidl), core::mem::transmute_copy(&apidl), windows_core::from_raw_borrowed(&punkassociation), core::mem::transmute_copy(&ckeys), core::mem::transmute_copy(&akeys)).into() } - unsafe extern "system" fn SetMenuRestrictions(this: *mut core::ffi::c_void, dfmrvalues: DEFAULT_FOLDER_MENU_RESTRICTIONS) -> windows_core::HRESULT - where - Identity: IDefaultFolderMenuInitialize_Impl, - { + unsafe extern "system" fn SetMenuRestrictions(this: *mut core::ffi::c_void, dfmrvalues: DEFAULT_FOLDER_MENU_RESTRICTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultFolderMenuInitialize_Impl::SetMenuRestrictions(this, core::mem::transmute_copy(&dfmrvalues)).into() } - unsafe extern "system" fn GetMenuRestrictions(this: *mut core::ffi::c_void, dfmrmask: DEFAULT_FOLDER_MENU_RESTRICTIONS, pdfmrvalues: *mut DEFAULT_FOLDER_MENU_RESTRICTIONS) -> windows_core::HRESULT - where - Identity: IDefaultFolderMenuInitialize_Impl, - { + unsafe extern "system" fn GetMenuRestrictions(this: *mut core::ffi::c_void, dfmrmask: DEFAULT_FOLDER_MENU_RESTRICTIONS, pdfmrvalues: *mut DEFAULT_FOLDER_MENU_RESTRICTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDefaultFolderMenuInitialize_Impl::GetMenuRestrictions(this, core::mem::transmute_copy(&dfmrmask)) { Ok(ok__) => { @@ -5720,10 +4280,7 @@ impl IDefaultFolderMenuInitialize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHandlerClsid(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IDefaultFolderMenuInitialize_Impl, - { + unsafe extern "system" fn SetHandlerClsid(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultFolderMenuInitialize_Impl::SetHandlerClsid(this, core::mem::transmute_copy(&rclsid)).into() } @@ -5740,21 +4297,15 @@ impl IDefaultFolderMenuInitialize_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDelegateFolder_Impl: Sized { +pub trait IDelegateFolder_Impl: Sized + windows_core::IUnknownImpl { fn SetItemAlloc(&self, pmalloc: Option<&super::super::System::Com::IMalloc>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IDelegateFolder {} #[cfg(feature = "Win32_System_Com")] impl IDelegateFolder_Vtbl { - pub const fn new() -> IDelegateFolder_Vtbl - where - Identity: IDelegateFolder_Impl, - { - unsafe extern "system" fn SetItemAlloc(this: *mut core::ffi::c_void, pmalloc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDelegateFolder_Impl, - { + pub const fn new() -> IDelegateFolder_Vtbl { + unsafe extern "system" fn SetItemAlloc(this: *mut core::ffi::c_void, pmalloc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDelegateFolder_Impl::SetItemAlloc(this, windows_core::from_raw_borrowed(&pmalloc)).into() } @@ -5770,10 +4321,7 @@ pub trait IDelegateItem_Impl: Sized + IRelatedItem_Impl {} impl windows_core::RuntimeName for IDelegateItem {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IDelegateItem_Vtbl { - pub const fn new() -> IDelegateItem_Vtbl - where - Identity: IDelegateItem_Impl, - { + pub const fn new() -> IDelegateItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -5788,14 +4336,8 @@ pub trait IDeskBand_Impl: Sized + IDockingWindow_Impl { impl windows_core::RuntimeName for IDeskBand {} #[cfg(feature = "Win32_System_Ole")] impl IDeskBand_Vtbl { - pub const fn new() -> IDeskBand_Vtbl - where - Identity: IDeskBand_Impl, - { - unsafe extern "system" fn GetBandInfo(this: *mut core::ffi::c_void, dwbandid: u32, dwviewmode: u32, pdbi: *mut DESKBANDINFO) -> windows_core::HRESULT - where - Identity: IDeskBand_Impl, - { + pub const fn new() -> IDeskBand_Vtbl { + unsafe extern "system" fn GetBandInfo(this: *mut core::ffi::c_void, dwbandid: u32, dwviewmode: u32, pdbi: *mut DESKBANDINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeskBand_Impl::GetBandInfo(this, core::mem::transmute_copy(&dwbandid), core::mem::transmute_copy(&dwviewmode), core::mem::transmute_copy(&pdbi)).into() } @@ -5815,14 +4357,8 @@ pub trait IDeskBand2_Impl: Sized + IDeskBand_Impl { impl windows_core::RuntimeName for IDeskBand2 {} #[cfg(feature = "Win32_System_Ole")] impl IDeskBand2_Vtbl { - pub const fn new() -> IDeskBand2_Vtbl - where - Identity: IDeskBand2_Impl, - { - unsafe extern "system" fn CanRenderComposited(this: *mut core::ffi::c_void, pfcanrendercomposited: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDeskBand2_Impl, - { + pub const fn new() -> IDeskBand2_Vtbl { + unsafe extern "system" fn CanRenderComposited(this: *mut core::ffi::c_void, pfcanrendercomposited: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeskBand2_Impl::CanRenderComposited(this) { Ok(ok__) => { @@ -5832,17 +4368,11 @@ impl IDeskBand2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCompositionState(this: *mut core::ffi::c_void, fcompositionenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDeskBand2_Impl, - { + unsafe extern "system" fn SetCompositionState(this: *mut core::ffi::c_void, fcompositionenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeskBand2_Impl::SetCompositionState(this, core::mem::transmute_copy(&fcompositionenabled)).into() } - unsafe extern "system" fn GetCompositionState(this: *mut core::ffi::c_void, pfcompositionenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDeskBand2_Impl, - { + unsafe extern "system" fn GetCompositionState(this: *mut core::ffi::c_void, pfcompositionenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeskBand2_Impl::GetCompositionState(this) { Ok(ok__) => { @@ -5863,19 +4393,13 @@ impl IDeskBand2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IDeskBandInfo_Impl: Sized { +pub trait IDeskBandInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetDefaultBandWidth(&self, dwbandid: u32, dwviewmode: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IDeskBandInfo {} impl IDeskBandInfo_Vtbl { - pub const fn new() -> IDeskBandInfo_Vtbl - where - Identity: IDeskBandInfo_Impl, - { - unsafe extern "system" fn GetDefaultBandWidth(this: *mut core::ffi::c_void, dwbandid: u32, dwviewmode: u32, pnwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IDeskBandInfo_Impl, - { + pub const fn new() -> IDeskBandInfo_Vtbl { + unsafe extern "system" fn GetDefaultBandWidth(this: *mut core::ffi::c_void, dwbandid: u32, dwviewmode: u32, pnwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeskBandInfo_Impl::GetDefaultBandWidth(this, core::mem::transmute_copy(&dwbandid), core::mem::transmute_copy(&dwviewmode)) { Ok(ok__) => { @@ -5901,21 +4425,12 @@ pub trait IDeskBar_Impl: Sized + super::super::System::Ole::IOleWindow_Impl { impl windows_core::RuntimeName for IDeskBar {} #[cfg(feature = "Win32_System_Ole")] impl IDeskBar_Vtbl { - pub const fn new() -> IDeskBar_Vtbl - where - Identity: IDeskBar_Impl, - { - unsafe extern "system" fn SetClient(this: *mut core::ffi::c_void, punkclient: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDeskBar_Impl, - { + pub const fn new() -> IDeskBar_Vtbl { + unsafe extern "system" fn SetClient(this: *mut core::ffi::c_void, punkclient: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeskBar_Impl::SetClient(this, windows_core::from_raw_borrowed(&punkclient)).into() } - unsafe extern "system" fn GetClient(this: *mut core::ffi::c_void, ppunkclient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDeskBar_Impl, - { + unsafe extern "system" fn GetClient(this: *mut core::ffi::c_void, ppunkclient: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeskBar_Impl::GetClient(this) { Ok(ok__) => { @@ -5925,10 +4440,7 @@ impl IDeskBar_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnPosRectChangeDB(this: *mut core::ffi::c_void, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDeskBar_Impl, - { + unsafe extern "system" fn OnPosRectChangeDB(this: *mut core::ffi::c_void, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeskBar_Impl::OnPosRectChangeDB(this, core::mem::transmute_copy(&prc)).into() } @@ -5954,35 +4466,20 @@ pub trait IDeskBarClient_Impl: Sized + super::super::System::Ole::IOleWindow_Imp impl windows_core::RuntimeName for IDeskBarClient {} #[cfg(feature = "Win32_System_Ole")] impl IDeskBarClient_Vtbl { - pub const fn new() -> IDeskBarClient_Vtbl - where - Identity: IDeskBarClient_Impl, - { - unsafe extern "system" fn SetDeskBarSite(this: *mut core::ffi::c_void, punksite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDeskBarClient_Impl, - { + pub const fn new() -> IDeskBarClient_Vtbl { + unsafe extern "system" fn SetDeskBarSite(this: *mut core::ffi::c_void, punksite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeskBarClient_Impl::SetDeskBarSite(this, windows_core::from_raw_borrowed(&punksite)).into() } - unsafe extern "system" fn SetModeDBC(this: *mut core::ffi::c_void, dwmode: u32) -> windows_core::HRESULT - where - Identity: IDeskBarClient_Impl, - { + unsafe extern "system" fn SetModeDBC(this: *mut core::ffi::c_void, dwmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeskBarClient_Impl::SetModeDBC(this, core::mem::transmute_copy(&dwmode)).into() } - unsafe extern "system" fn UIActivateDBC(this: *mut core::ffi::c_void, dwstate: u32) -> windows_core::HRESULT - where - Identity: IDeskBarClient_Impl, - { + unsafe extern "system" fn UIActivateDBC(this: *mut core::ffi::c_void, dwstate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeskBarClient_Impl::UIActivateDBC(this, core::mem::transmute_copy(&dwstate)).into() } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, dwwhich: u32, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDeskBarClient_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, dwwhich: u32, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeskBarClient_Impl::GetSize(this, core::mem::transmute_copy(&dwwhich)) { Ok(ok__) => { @@ -6004,19 +4501,13 @@ impl IDeskBarClient_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IDesktopGadget_Impl: Sized { +pub trait IDesktopGadget_Impl: Sized + windows_core::IUnknownImpl { fn RunGadget(&self, gadgetpath: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDesktopGadget {} impl IDesktopGadget_Vtbl { - pub const fn new() -> IDesktopGadget_Vtbl - where - Identity: IDesktopGadget_Impl, - { - unsafe extern "system" fn RunGadget(this: *mut core::ffi::c_void, gadgetpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDesktopGadget_Impl, - { + pub const fn new() -> IDesktopGadget_Vtbl { + unsafe extern "system" fn RunGadget(this: *mut core::ffi::c_void, gadgetpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDesktopGadget_Impl::RunGadget(this, core::mem::transmute(&gadgetpath)).into() } @@ -6026,7 +4517,7 @@ impl IDesktopGadget_Vtbl { iid == &::IID } } -pub trait IDesktopWallpaper_Impl: Sized { +pub trait IDesktopWallpaper_Impl: Sized + windows_core::IUnknownImpl { fn SetWallpaper(&self, monitorid: &windows_core::PCWSTR, wallpaper: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetWallpaper(&self, monitorid: &windows_core::PCWSTR) -> windows_core::Result; fn GetMonitorDevicePathAt(&self, monitorindex: u32) -> windows_core::Result; @@ -6046,21 +4537,12 @@ pub trait IDesktopWallpaper_Impl: Sized { } impl windows_core::RuntimeName for IDesktopWallpaper {} impl IDesktopWallpaper_Vtbl { - pub const fn new() -> IDesktopWallpaper_Vtbl - where - Identity: IDesktopWallpaper_Impl, - { - unsafe extern "system" fn SetWallpaper(this: *mut core::ffi::c_void, monitorid: windows_core::PCWSTR, wallpaper: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + pub const fn new() -> IDesktopWallpaper_Vtbl { + unsafe extern "system" fn SetWallpaper(this: *mut core::ffi::c_void, monitorid: windows_core::PCWSTR, wallpaper: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDesktopWallpaper_Impl::SetWallpaper(this, core::mem::transmute(&monitorid), core::mem::transmute(&wallpaper)).into() } - unsafe extern "system" fn GetWallpaper(this: *mut core::ffi::c_void, monitorid: windows_core::PCWSTR, wallpaper: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn GetWallpaper(this: *mut core::ffi::c_void, monitorid: windows_core::PCWSTR, wallpaper: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDesktopWallpaper_Impl::GetWallpaper(this, core::mem::transmute(&monitorid)) { Ok(ok__) => { @@ -6070,10 +4552,7 @@ impl IDesktopWallpaper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMonitorDevicePathAt(this: *mut core::ffi::c_void, monitorindex: u32, monitorid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn GetMonitorDevicePathAt(this: *mut core::ffi::c_void, monitorindex: u32, monitorid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDesktopWallpaper_Impl::GetMonitorDevicePathAt(this, core::mem::transmute_copy(&monitorindex)) { Ok(ok__) => { @@ -6083,10 +4562,7 @@ impl IDesktopWallpaper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMonitorDevicePathCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn GetMonitorDevicePathCount(this: *mut core::ffi::c_void, count: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDesktopWallpaper_Impl::GetMonitorDevicePathCount(this) { Ok(ok__) => { @@ -6096,10 +4572,7 @@ impl IDesktopWallpaper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMonitorRECT(this: *mut core::ffi::c_void, monitorid: windows_core::PCWSTR, displayrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn GetMonitorRECT(this: *mut core::ffi::c_void, monitorid: windows_core::PCWSTR, displayrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDesktopWallpaper_Impl::GetMonitorRECT(this, core::mem::transmute(&monitorid)) { Ok(ok__) => { @@ -6109,17 +4582,11 @@ impl IDesktopWallpaper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, color: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, color: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDesktopWallpaper_Impl::SetBackgroundColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, color: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn GetBackgroundColor(this: *mut core::ffi::c_void, color: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDesktopWallpaper_Impl::GetBackgroundColor(this) { Ok(ok__) => { @@ -6129,17 +4596,11 @@ impl IDesktopWallpaper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, position: DESKTOP_WALLPAPER_POSITION) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, position: DESKTOP_WALLPAPER_POSITION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDesktopWallpaper_Impl::SetPosition(this, core::mem::transmute_copy(&position)).into() } - unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, position: *mut DESKTOP_WALLPAPER_POSITION) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, position: *mut DESKTOP_WALLPAPER_POSITION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDesktopWallpaper_Impl::GetPosition(this) { Ok(ok__) => { @@ -6149,17 +4610,11 @@ impl IDesktopWallpaper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSlideshow(this: *mut core::ffi::c_void, items: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn SetSlideshow(this: *mut core::ffi::c_void, items: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDesktopWallpaper_Impl::SetSlideshow(this, windows_core::from_raw_borrowed(&items)).into() } - unsafe extern "system" fn GetSlideshow(this: *mut core::ffi::c_void, items: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn GetSlideshow(this: *mut core::ffi::c_void, items: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDesktopWallpaper_Impl::GetSlideshow(this) { Ok(ok__) => { @@ -6169,31 +4624,19 @@ impl IDesktopWallpaper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSlideshowOptions(this: *mut core::ffi::c_void, options: DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: u32) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn SetSlideshowOptions(this: *mut core::ffi::c_void, options: DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDesktopWallpaper_Impl::SetSlideshowOptions(this, core::mem::transmute_copy(&options), core::mem::transmute_copy(&slideshowtick)).into() } - unsafe extern "system" fn GetSlideshowOptions(this: *mut core::ffi::c_void, options: *mut DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: *mut u32) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn GetSlideshowOptions(this: *mut core::ffi::c_void, options: *mut DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDesktopWallpaper_Impl::GetSlideshowOptions(this, core::mem::transmute_copy(&options), core::mem::transmute_copy(&slideshowtick)).into() } - unsafe extern "system" fn AdvanceSlideshow(this: *mut core::ffi::c_void, monitorid: windows_core::PCWSTR, direction: DESKTOP_SLIDESHOW_DIRECTION) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn AdvanceSlideshow(this: *mut core::ffi::c_void, monitorid: windows_core::PCWSTR, direction: DESKTOP_SLIDESHOW_DIRECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDesktopWallpaper_Impl::AdvanceSlideshow(this, core::mem::transmute(&monitorid), core::mem::transmute_copy(&direction)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, state: *mut DESKTOP_SLIDESHOW_STATE) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, state: *mut DESKTOP_SLIDESHOW_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDesktopWallpaper_Impl::GetStatus(this) { Ok(ok__) => { @@ -6203,10 +4646,7 @@ impl IDesktopWallpaper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDesktopWallpaper_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDesktopWallpaper_Impl::Enable(this, core::mem::transmute_copy(&enable)).into() } @@ -6235,21 +4675,15 @@ impl IDesktopWallpaper_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IDestinationStreamFactory_Impl: Sized { +pub trait IDestinationStreamFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetDestinationStream(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IDestinationStreamFactory {} #[cfg(feature = "Win32_System_Com")] impl IDestinationStreamFactory_Vtbl { - pub const fn new() -> IDestinationStreamFactory_Vtbl - where - Identity: IDestinationStreamFactory_Impl, - { - unsafe extern "system" fn GetDestinationStream(this: *mut core::ffi::c_void, ppstm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDestinationStreamFactory_Impl, - { + pub const fn new() -> IDestinationStreamFactory_Vtbl { + unsafe extern "system" fn GetDestinationStream(this: *mut core::ffi::c_void, ppstm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDestinationStreamFactory_Impl::GetDestinationStream(this) { Ok(ok__) => { @@ -6271,29 +4705,20 @@ pub trait IDisplayItem_Impl: Sized + IRelatedItem_Impl {} impl windows_core::RuntimeName for IDisplayItem {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IDisplayItem_Vtbl { - pub const fn new() -> IDisplayItem_Vtbl - where - Identity: IDisplayItem_Impl, - { + pub const fn new() -> IDisplayItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IDocViewSite_Impl: Sized { +pub trait IDocViewSite_Impl: Sized + windows_core::IUnknownImpl { fn OnSetTitle(&self, pvtitle: *const windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IDocViewSite {} impl IDocViewSite_Vtbl { - pub const fn new() -> IDocViewSite_Vtbl - where - Identity: IDocViewSite_Impl, - { - unsafe extern "system" fn OnSetTitle(this: *mut core::ffi::c_void, pvtitle: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IDocViewSite_Impl, - { + pub const fn new() -> IDocViewSite_Vtbl { + unsafe extern "system" fn OnSetTitle(this: *mut core::ffi::c_void, pvtitle: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDocViewSite_Impl::OnSetTitle(this, core::mem::transmute_copy(&pvtitle)).into() } @@ -6313,28 +4738,16 @@ pub trait IDockingWindow_Impl: Sized + super::super::System::Ole::IOleWindow_Imp impl windows_core::RuntimeName for IDockingWindow {} #[cfg(feature = "Win32_System_Ole")] impl IDockingWindow_Vtbl { - pub const fn new() -> IDockingWindow_Vtbl - where - Identity: IDockingWindow_Impl, - { - unsafe extern "system" fn ShowDW(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDockingWindow_Impl, - { + pub const fn new() -> IDockingWindow_Vtbl { + unsafe extern "system" fn ShowDW(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockingWindow_Impl::ShowDW(this, core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn CloseDW(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IDockingWindow_Impl, - { + unsafe extern "system" fn CloseDW(this: *mut core::ffi::c_void, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockingWindow_Impl::CloseDW(this, core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn ResizeBorderDW(this: *mut core::ffi::c_void, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: *mut core::ffi::c_void, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDockingWindow_Impl, - { + unsafe extern "system" fn ResizeBorderDW(this: *mut core::ffi::c_void, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: *mut core::ffi::c_void, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockingWindow_Impl::ResizeBorderDW(this, core::mem::transmute_copy(&prcborder), windows_core::from_raw_borrowed(&punktoolbarsite), core::mem::transmute_copy(&freserved)).into() } @@ -6359,28 +4772,16 @@ pub trait IDockingWindowFrame_Impl: Sized + super::super::System::Ole::IOleWindo impl windows_core::RuntimeName for IDockingWindowFrame {} #[cfg(feature = "Win32_System_Ole")] impl IDockingWindowFrame_Vtbl { - pub const fn new() -> IDockingWindowFrame_Vtbl - where - Identity: IDockingWindowFrame_Impl, - { - unsafe extern "system" fn AddToolbar(this: *mut core::ffi::c_void, punksrc: *mut core::ffi::c_void, pwszitem: windows_core::PCWSTR, dwaddflags: u32) -> windows_core::HRESULT - where - Identity: IDockingWindowFrame_Impl, - { + pub const fn new() -> IDockingWindowFrame_Vtbl { + unsafe extern "system" fn AddToolbar(this: *mut core::ffi::c_void, punksrc: *mut core::ffi::c_void, pwszitem: windows_core::PCWSTR, dwaddflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockingWindowFrame_Impl::AddToolbar(this, windows_core::from_raw_borrowed(&punksrc), core::mem::transmute(&pwszitem), core::mem::transmute_copy(&dwaddflags)).into() } - unsafe extern "system" fn RemoveToolbar(this: *mut core::ffi::c_void, punksrc: *mut core::ffi::c_void, dwremoveflags: u32) -> windows_core::HRESULT - where - Identity: IDockingWindowFrame_Impl, - { + unsafe extern "system" fn RemoveToolbar(this: *mut core::ffi::c_void, punksrc: *mut core::ffi::c_void, dwremoveflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockingWindowFrame_Impl::RemoveToolbar(this, windows_core::from_raw_borrowed(&punksrc), core::mem::transmute_copy(&dwremoveflags)).into() } - unsafe extern "system" fn FindToolbar(this: *mut core::ffi::c_void, pwszitem: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDockingWindowFrame_Impl, - { + unsafe extern "system" fn FindToolbar(this: *mut core::ffi::c_void, pwszitem: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockingWindowFrame_Impl::FindToolbar(this, core::mem::transmute(&pwszitem), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -6405,14 +4806,8 @@ pub trait IDockingWindowSite_Impl: Sized + super::super::System::Ole::IOleWindow impl windows_core::RuntimeName for IDockingWindowSite {} #[cfg(feature = "Win32_System_Ole")] impl IDockingWindowSite_Vtbl { - pub const fn new() -> IDockingWindowSite_Vtbl - where - Identity: IDockingWindowSite_Impl, - { - unsafe extern "system" fn GetBorderDW(this: *mut core::ffi::c_void, punkobj: *mut core::ffi::c_void, prcborder: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDockingWindowSite_Impl, - { + pub const fn new() -> IDockingWindowSite_Vtbl { + unsafe extern "system" fn GetBorderDW(this: *mut core::ffi::c_void, punkobj: *mut core::ffi::c_void, prcborder: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDockingWindowSite_Impl::GetBorderDW(this, windows_core::from_raw_borrowed(&punkobj)) { Ok(ok__) => { @@ -6422,17 +4817,11 @@ impl IDockingWindowSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RequestBorderSpaceDW(this: *mut core::ffi::c_void, punkobj: *mut core::ffi::c_void, pbw: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDockingWindowSite_Impl, - { + unsafe extern "system" fn RequestBorderSpaceDW(this: *mut core::ffi::c_void, punkobj: *mut core::ffi::c_void, pbw: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockingWindowSite_Impl::RequestBorderSpaceDW(this, windows_core::from_raw_borrowed(&punkobj), core::mem::transmute_copy(&pbw)).into() } - unsafe extern "system" fn SetBorderSpaceDW(this: *mut core::ffi::c_void, punkobj: *mut core::ffi::c_void, pbw: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDockingWindowSite_Impl, - { + unsafe extern "system" fn SetBorderSpaceDW(this: *mut core::ffi::c_void, punkobj: *mut core::ffi::c_void, pbw: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockingWindowSite_Impl::SetBorderSpaceDW(this, windows_core::from_raw_borrowed(&punkobj), core::mem::transmute_copy(&pbw)).into() } @@ -6448,7 +4837,7 @@ impl IDockingWindowSite_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] -pub trait IDragSourceHelper_Impl: Sized { +pub trait IDragSourceHelper_Impl: Sized + windows_core::IUnknownImpl { fn InitializeFromBitmap(&self, pshdi: *const SHDRAGIMAGE, pdataobject: Option<&super::super::System::Com::IDataObject>) -> windows_core::Result<()>; fn InitializeFromWindow(&self, hwnd: super::super::Foundation::HWND, ppt: *const super::super::Foundation::POINT, pdataobject: Option<&super::super::System::Com::IDataObject>) -> windows_core::Result<()>; } @@ -6456,21 +4845,12 @@ pub trait IDragSourceHelper_Impl: Sized { impl windows_core::RuntimeName for IDragSourceHelper {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IDragSourceHelper_Vtbl { - pub const fn new() -> IDragSourceHelper_Vtbl - where - Identity: IDragSourceHelper_Impl, - { - unsafe extern "system" fn InitializeFromBitmap(this: *mut core::ffi::c_void, pshdi: *const SHDRAGIMAGE, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDragSourceHelper_Impl, - { + pub const fn new() -> IDragSourceHelper_Vtbl { + unsafe extern "system" fn InitializeFromBitmap(this: *mut core::ffi::c_void, pshdi: *const SHDRAGIMAGE, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDragSourceHelper_Impl::InitializeFromBitmap(this, core::mem::transmute_copy(&pshdi), windows_core::from_raw_borrowed(&pdataobject)).into() } - unsafe extern "system" fn InitializeFromWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ppt: *const super::super::Foundation::POINT, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDragSourceHelper_Impl, - { + unsafe extern "system" fn InitializeFromWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ppt: *const super::super::Foundation::POINT, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDragSourceHelper_Impl::InitializeFromWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&ppt), windows_core::from_raw_borrowed(&pdataobject)).into() } @@ -6492,14 +4872,8 @@ pub trait IDragSourceHelper2_Impl: Sized + IDragSourceHelper_Impl { impl windows_core::RuntimeName for IDragSourceHelper2 {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IDragSourceHelper2_Vtbl { - pub const fn new() -> IDragSourceHelper2_Vtbl - where - Identity: IDragSourceHelper2_Impl, - { - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IDragSourceHelper2_Impl, - { + pub const fn new() -> IDragSourceHelper2_Vtbl { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDragSourceHelper2_Impl::SetFlags(this, core::mem::transmute_copy(&dwflags)).into() } @@ -6510,7 +4884,7 @@ impl IDragSourceHelper2_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] -pub trait IDropTargetHelper_Impl: Sized { +pub trait IDropTargetHelper_Impl: Sized + windows_core::IUnknownImpl { fn DragEnter(&self, hwndtarget: super::super::Foundation::HWND, pdataobject: Option<&super::super::System::Com::IDataObject>, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()>; fn DragLeave(&self) -> windows_core::Result<()>; fn DragOver(&self, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()>; @@ -6521,42 +4895,24 @@ pub trait IDropTargetHelper_Impl: Sized { impl windows_core::RuntimeName for IDropTargetHelper {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IDropTargetHelper_Vtbl { - pub const fn new() -> IDropTargetHelper_Vtbl - where - Identity: IDropTargetHelper_Impl, - { - unsafe extern "system" fn DragEnter(this: *mut core::ffi::c_void, hwndtarget: super::super::Foundation::HWND, pdataobject: *mut core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT - where - Identity: IDropTargetHelper_Impl, - { + pub const fn new() -> IDropTargetHelper_Vtbl { + unsafe extern "system" fn DragEnter(this: *mut core::ffi::c_void, hwndtarget: super::super::Foundation::HWND, pdataobject: *mut core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropTargetHelper_Impl::DragEnter(this, core::mem::transmute_copy(&hwndtarget), windows_core::from_raw_borrowed(&pdataobject), core::mem::transmute_copy(&ppt), core::mem::transmute_copy(&dweffect)).into() } - unsafe extern "system" fn DragLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDropTargetHelper_Impl, - { + unsafe extern "system" fn DragLeave(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropTargetHelper_Impl::DragLeave(this).into() } - unsafe extern "system" fn DragOver(this: *mut core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT - where - Identity: IDropTargetHelper_Impl, - { + unsafe extern "system" fn DragOver(this: *mut core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropTargetHelper_Impl::DragOver(this, core::mem::transmute_copy(&ppt), core::mem::transmute_copy(&dweffect)).into() } - unsafe extern "system" fn Drop(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT - where - Identity: IDropTargetHelper_Impl, - { + unsafe extern "system" fn Drop(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropTargetHelper_Impl::Drop(this, windows_core::from_raw_borrowed(&pdataobject), core::mem::transmute_copy(&ppt), core::mem::transmute_copy(&dweffect)).into() } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDropTargetHelper_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropTargetHelper_Impl::Show(this, core::mem::transmute_copy(&fshow)).into() } @@ -6573,19 +4929,13 @@ impl IDropTargetHelper_Vtbl { iid == &::IID } } -pub trait IDynamicHWHandler_Impl: Sized { +pub trait IDynamicHWHandler_Impl: Sized + windows_core::IUnknownImpl { fn GetDynamicInfo(&self, pszdeviceid: &windows_core::PCWSTR, dwcontenttype: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IDynamicHWHandler {} impl IDynamicHWHandler_Vtbl { - pub const fn new() -> IDynamicHWHandler_Vtbl - where - Identity: IDynamicHWHandler_Impl, - { - unsafe extern "system" fn GetDynamicInfo(this: *mut core::ffi::c_void, pszdeviceid: windows_core::PCWSTR, dwcontenttype: u32, ppszaction: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IDynamicHWHandler_Impl, - { + pub const fn new() -> IDynamicHWHandler_Vtbl { + unsafe extern "system" fn GetDynamicInfo(this: *mut core::ffi::c_void, pszdeviceid: windows_core::PCWSTR, dwcontenttype: u32, ppszaction: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicHWHandler_Impl::GetDynamicInfo(this, core::mem::transmute(&pszdeviceid), core::mem::transmute_copy(&dwcontenttype)) { Ok(ok__) => { @@ -6611,28 +4961,16 @@ pub trait IEnumACString_Impl: Sized + super::super::System::Com::IEnumString_Imp impl windows_core::RuntimeName for IEnumACString {} #[cfg(feature = "Win32_System_Com")] impl IEnumACString_Vtbl { - pub const fn new() -> IEnumACString_Vtbl - where - Identity: IEnumACString_Impl, - { - unsafe extern "system" fn NextItem(this: *mut core::ffi::c_void, pszurl: windows_core::PWSTR, cchmax: u32, pulsortindex: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumACString_Impl, - { + pub const fn new() -> IEnumACString_Vtbl { + unsafe extern "system" fn NextItem(this: *mut core::ffi::c_void, pszurl: windows_core::PWSTR, cchmax: u32, pulsortindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumACString_Impl::NextItem(this, core::mem::transmute_copy(&pszurl), core::mem::transmute_copy(&cchmax), core::mem::transmute_copy(&pulsortindex)).into() } - unsafe extern "system" fn SetEnumOptions(this: *mut core::ffi::c_void, dwoptions: u32) -> windows_core::HRESULT - where - Identity: IEnumACString_Impl, - { + unsafe extern "system" fn SetEnumOptions(this: *mut core::ffi::c_void, dwoptions: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumACString_Impl::SetEnumOptions(this, core::mem::transmute_copy(&dwoptions)).into() } - unsafe extern "system" fn GetEnumOptions(this: *mut core::ffi::c_void, pdwoptions: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumACString_Impl, - { + unsafe extern "system" fn GetEnumOptions(this: *mut core::ffi::c_void, pdwoptions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumACString_Impl::GetEnumOptions(this) { Ok(ok__) => { @@ -6653,19 +4991,13 @@ impl IEnumACString_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IEnumAssocHandlers_Impl: Sized { +pub trait IEnumAssocHandlers_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IEnumAssocHandlers {} impl IEnumAssocHandlers_Vtbl { - pub const fn new() -> IEnumAssocHandlers_Vtbl - where - Identity: IEnumAssocHandlers_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumAssocHandlers_Impl, - { + pub const fn new() -> IEnumAssocHandlers_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumAssocHandlers_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } @@ -6675,7 +5007,7 @@ impl IEnumAssocHandlers_Vtbl { iid == &::IID } } -pub trait IEnumExplorerCommand_Impl: Sized { +pub trait IEnumExplorerCommand_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, puicommand: *mut Option, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -6683,35 +5015,20 @@ pub trait IEnumExplorerCommand_Impl: Sized { } impl windows_core::RuntimeName for IEnumExplorerCommand {} impl IEnumExplorerCommand_Vtbl { - pub const fn new() -> IEnumExplorerCommand_Vtbl - where - Identity: IEnumExplorerCommand_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, puicommand: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumExplorerCommand_Impl, - { + pub const fn new() -> IEnumExplorerCommand_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, puicommand: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumExplorerCommand_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&puicommand), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumExplorerCommand_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumExplorerCommand_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumExplorerCommand_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumExplorerCommand_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumExplorerCommand_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumExplorerCommand_Impl::Clone(this) { Ok(ok__) => { @@ -6733,7 +5050,7 @@ impl IEnumExplorerCommand_Vtbl { iid == &::IID } } -pub trait IEnumExtraSearch_Impl: Sized { +pub trait IEnumExtraSearch_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut EXTRASEARCH, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -6741,35 +5058,20 @@ pub trait IEnumExtraSearch_Impl: Sized { } impl windows_core::RuntimeName for IEnumExtraSearch {} impl IEnumExtraSearch_Vtbl { - pub const fn new() -> IEnumExtraSearch_Vtbl - where - Identity: IEnumExtraSearch_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut EXTRASEARCH, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumExtraSearch_Impl, - { + pub const fn new() -> IEnumExtraSearch_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut EXTRASEARCH, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumExtraSearch_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumExtraSearch_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumExtraSearch_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumExtraSearch_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumExtraSearch_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumExtraSearch_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumExtraSearch_Impl::Clone(this) { Ok(ok__) => { @@ -6792,7 +5094,7 @@ impl IEnumExtraSearch_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IEnumFullIDList_Impl: Sized { +pub trait IEnumFullIDList_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut *mut Common::ITEMIDLIST, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -6802,35 +5104,20 @@ pub trait IEnumFullIDList_Impl: Sized { impl windows_core::RuntimeName for IEnumFullIDList {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IEnumFullIDList_Vtbl { - pub const fn new() -> IEnumFullIDList_Vtbl - where - Identity: IEnumFullIDList_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut Common::ITEMIDLIST, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumFullIDList_Impl, - { + pub const fn new() -> IEnumFullIDList_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut Common::ITEMIDLIST, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFullIDList_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumFullIDList_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFullIDList_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumFullIDList_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumFullIDList_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumFullIDList_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumFullIDList_Impl::Clone(this) { Ok(ok__) => { @@ -6852,7 +5139,7 @@ impl IEnumFullIDList_Vtbl { iid == &::IID } } -pub trait IEnumHLITEM_Impl: Sized { +pub trait IEnumHLITEM_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut HLITEM, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -6860,35 +5147,20 @@ pub trait IEnumHLITEM_Impl: Sized { } impl windows_core::RuntimeName for IEnumHLITEM {} impl IEnumHLITEM_Vtbl { - pub const fn new() -> IEnumHLITEM_Vtbl - where - Identity: IEnumHLITEM_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut HLITEM, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumHLITEM_Impl, - { + pub const fn new() -> IEnumHLITEM_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut HLITEM, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumHLITEM_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumHLITEM_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumHLITEM_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumHLITEM_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumHLITEM_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienumhlitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumHLITEM_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppienumhlitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumHLITEM_Impl::Clone(this) { Ok(ok__) => { @@ -6911,7 +5183,7 @@ impl IEnumHLITEM_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IEnumIDList_Impl: Sized { +pub trait IEnumIDList_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut *mut Common::ITEMIDLIST, pceltfetched: *mut u32) -> windows_core::HRESULT; fn Skip(&self, celt: u32) -> windows_core::HRESULT; fn Reset(&self) -> windows_core::HRESULT; @@ -6921,35 +5193,20 @@ pub trait IEnumIDList_Impl: Sized { impl windows_core::RuntimeName for IEnumIDList {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IEnumIDList_Vtbl { - pub const fn new() -> IEnumIDList_Vtbl - where - Identity: IEnumIDList_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut Common::ITEMIDLIST, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumIDList_Impl, - { + pub const fn new() -> IEnumIDList_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut Common::ITEMIDLIST, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumIDList_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)) } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumIDList_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumIDList_Impl::Skip(this, core::mem::transmute_copy(&celt)) } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumIDList_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumIDList_Impl::Reset(this) } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumIDList_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumIDList_Impl::Clone(this, core::mem::transmute_copy(&ppenum)) } @@ -6965,7 +5222,7 @@ impl IEnumIDList_Vtbl { iid == &::IID } } -pub trait IEnumObjects_Impl: Sized { +pub trait IEnumObjects_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, riid: *const windows_core::GUID, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -6973,35 +5230,20 @@ pub trait IEnumObjects_Impl: Sized { } impl windows_core::RuntimeName for IEnumObjects {} impl IEnumObjects_Vtbl { - pub const fn new() -> IEnumObjects_Vtbl - where - Identity: IEnumObjects_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, riid: *const windows_core::GUID, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumObjects_Impl, - { + pub const fn new() -> IEnumObjects_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, riid: *const windows_core::GUID, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumObjects_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumObjects_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumObjects_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumObjects_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumObjects_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumObjects_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumObjects_Impl::Clone(this) { Ok(ok__) => { @@ -7023,20 +5265,14 @@ impl IEnumObjects_Vtbl { iid == &::IID } } -pub trait IEnumPublishedApps_Impl: Sized { +pub trait IEnumPublishedApps_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self) -> windows_core::Result; fn Reset(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IEnumPublishedApps {} impl IEnumPublishedApps_Vtbl { - pub const fn new() -> IEnumPublishedApps_Vtbl - where - Identity: IEnumPublishedApps_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPublishedApps_Impl, - { + pub const fn new() -> IEnumPublishedApps_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, pia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumPublishedApps_Impl::Next(this) { Ok(ok__) => { @@ -7046,10 +5282,7 @@ impl IEnumPublishedApps_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumPublishedApps_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumPublishedApps_Impl::Reset(this).into() } @@ -7059,19 +5292,13 @@ impl IEnumPublishedApps_Vtbl { iid == &::IID } } -pub trait IEnumReadyCallback_Impl: Sized { +pub trait IEnumReadyCallback_Impl: Sized + windows_core::IUnknownImpl { fn EnumReady(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IEnumReadyCallback {} impl IEnumReadyCallback_Vtbl { - pub const fn new() -> IEnumReadyCallback_Vtbl - where - Identity: IEnumReadyCallback_Impl, - { - unsafe extern "system" fn EnumReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumReadyCallback_Impl, - { + pub const fn new() -> IEnumReadyCallback_Vtbl { + unsafe extern "system" fn EnumReady(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumReadyCallback_Impl::EnumReady(this).into() } @@ -7081,7 +5308,7 @@ impl IEnumReadyCallback_Vtbl { iid == &::IID } } -pub trait IEnumResources_Impl: Sized { +pub trait IEnumResources_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, psir: *mut SHELL_ITEM_RESOURCE, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -7089,35 +5316,20 @@ pub trait IEnumResources_Impl: Sized { } impl windows_core::RuntimeName for IEnumResources {} impl IEnumResources_Vtbl { - pub const fn new() -> IEnumResources_Vtbl - where - Identity: IEnumResources_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, psir: *mut SHELL_ITEM_RESOURCE, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumResources_Impl, - { + pub const fn new() -> IEnumResources_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, psir: *mut SHELL_ITEM_RESOURCE, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumResources_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&psir), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumResources_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumResources_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumResources_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumResources_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumResources_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenumr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumResources_Impl::Clone(this) { Ok(ok__) => { @@ -7139,7 +5351,7 @@ impl IEnumResources_Vtbl { iid == &::IID } } -pub trait IEnumShellItems_Impl: Sized { +pub trait IEnumShellItems_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -7147,35 +5359,20 @@ pub trait IEnumShellItems_Impl: Sized { } impl windows_core::RuntimeName for IEnumShellItems {} impl IEnumShellItems_Vtbl { - pub const fn new() -> IEnumShellItems_Vtbl - where - Identity: IEnumShellItems_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumShellItems_Impl, - { + pub const fn new() -> IEnumShellItems_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumShellItems_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumShellItems_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumShellItems_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumShellItems_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumShellItems_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumShellItems_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumShellItems_Impl::Clone(this) { Ok(ok__) => { @@ -7197,7 +5394,7 @@ impl IEnumShellItems_Vtbl { iid == &::IID } } -pub trait IEnumSyncMgrConflict_Impl: Sized { +pub trait IEnumSyncMgrConflict_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -7205,35 +5402,20 @@ pub trait IEnumSyncMgrConflict_Impl: Sized { } impl windows_core::RuntimeName for IEnumSyncMgrConflict {} impl IEnumSyncMgrConflict_Vtbl { - pub const fn new() -> IEnumSyncMgrConflict_Vtbl - where - Identity: IEnumSyncMgrConflict_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrConflict_Impl, - { + pub const fn new() -> IEnumSyncMgrConflict_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncMgrConflict_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrConflict_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncMgrConflict_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrConflict_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncMgrConflict_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrConflict_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSyncMgrConflict_Impl::Clone(this) { Ok(ok__) => { @@ -7255,7 +5437,7 @@ impl IEnumSyncMgrConflict_Vtbl { iid == &::IID } } -pub trait IEnumSyncMgrEvents_Impl: Sized { +pub trait IEnumSyncMgrEvents_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -7263,35 +5445,20 @@ pub trait IEnumSyncMgrEvents_Impl: Sized { } impl windows_core::RuntimeName for IEnumSyncMgrEvents {} impl IEnumSyncMgrEvents_Vtbl { - pub const fn new() -> IEnumSyncMgrEvents_Vtbl - where - Identity: IEnumSyncMgrEvents_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrEvents_Impl, - { + pub const fn new() -> IEnumSyncMgrEvents_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncMgrEvents_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrEvents_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncMgrEvents_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrEvents_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncMgrEvents_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrEvents_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSyncMgrEvents_Impl::Clone(this) { Ok(ok__) => { @@ -7313,7 +5480,7 @@ impl IEnumSyncMgrEvents_Vtbl { iid == &::IID } } -pub trait IEnumSyncMgrSyncItems_Impl: Sized { +pub trait IEnumSyncMgrSyncItems_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -7321,35 +5488,20 @@ pub trait IEnumSyncMgrSyncItems_Impl: Sized { } impl windows_core::RuntimeName for IEnumSyncMgrSyncItems {} impl IEnumSyncMgrSyncItems_Vtbl { - pub const fn new() -> IEnumSyncMgrSyncItems_Vtbl - where - Identity: IEnumSyncMgrSyncItems_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrSyncItems_Impl, - { + pub const fn new() -> IEnumSyncMgrSyncItems_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncMgrSyncItems_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrSyncItems_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncMgrSyncItems_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrSyncItems_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSyncMgrSyncItems_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSyncMgrSyncItems_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSyncMgrSyncItems_Impl::Clone(this) { Ok(ok__) => { @@ -7371,7 +5523,7 @@ impl IEnumSyncMgrSyncItems_Vtbl { iid == &::IID } } -pub trait IEnumTravelLogEntry_Impl: Sized { +pub trait IEnumTravelLogEntry_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -7379,35 +5531,20 @@ pub trait IEnumTravelLogEntry_Impl: Sized { } impl windows_core::RuntimeName for IEnumTravelLogEntry {} impl IEnumTravelLogEntry_Vtbl { - pub const fn new() -> IEnumTravelLogEntry_Vtbl - where - Identity: IEnumTravelLogEntry_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTravelLogEntry_Impl, - { + pub const fn new() -> IEnumTravelLogEntry_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTravelLogEntry_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumTravelLogEntry_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTravelLogEntry_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTravelLogEntry_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTravelLogEntry_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTravelLogEntry_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTravelLogEntry_Impl::Clone(this) { Ok(ok__) => { @@ -7430,7 +5567,7 @@ impl IEnumTravelLogEntry_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IEnumerableView_Impl: Sized { +pub trait IEnumerableView_Impl: Sized + windows_core::IUnknownImpl { fn SetEnumReadyCallback(&self, percb: Option<&IEnumReadyCallback>) -> windows_core::Result<()>; fn CreateEnumIDListFromContents(&self, pidlfolder: *const Common::ITEMIDLIST, dwenumflags: u32) -> windows_core::Result; } @@ -7438,21 +5575,12 @@ pub trait IEnumerableView_Impl: Sized { impl windows_core::RuntimeName for IEnumerableView {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IEnumerableView_Vtbl { - pub const fn new() -> IEnumerableView_Vtbl - where - Identity: IEnumerableView_Impl, - { - unsafe extern "system" fn SetEnumReadyCallback(this: *mut core::ffi::c_void, percb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumerableView_Impl, - { + pub const fn new() -> IEnumerableView_Vtbl { + unsafe extern "system" fn SetEnumReadyCallback(this: *mut core::ffi::c_void, percb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumerableView_Impl::SetEnumReadyCallback(this, windows_core::from_raw_borrowed(&percb)).into() } - unsafe extern "system" fn CreateEnumIDListFromContents(this: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, dwenumflags: u32, ppenumidlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumerableView_Impl, - { + unsafe extern "system" fn CreateEnumIDListFromContents(this: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, dwenumflags: u32, ppenumidlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumerableView_Impl::CreateEnumIDListFromContents(this, core::mem::transmute_copy(&pidlfolder), core::mem::transmute_copy(&dwenumflags)) { Ok(ok__) => { @@ -7472,7 +5600,7 @@ impl IEnumerableView_Vtbl { iid == &::IID } } -pub trait IExecuteCommand_Impl: Sized { +pub trait IExecuteCommand_Impl: Sized + windows_core::IUnknownImpl { fn SetKeyState(&self, grfkeystate: u32) -> windows_core::Result<()>; fn SetParameters(&self, pszparameters: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetPosition(&self, pt: &super::super::Foundation::POINT) -> windows_core::Result<()>; @@ -7483,56 +5611,32 @@ pub trait IExecuteCommand_Impl: Sized { } impl windows_core::RuntimeName for IExecuteCommand {} impl IExecuteCommand_Vtbl { - pub const fn new() -> IExecuteCommand_Vtbl - where - Identity: IExecuteCommand_Impl, - { - unsafe extern "system" fn SetKeyState(this: *mut core::ffi::c_void, grfkeystate: u32) -> windows_core::HRESULT - where - Identity: IExecuteCommand_Impl, - { + pub const fn new() -> IExecuteCommand_Vtbl { + unsafe extern "system" fn SetKeyState(this: *mut core::ffi::c_void, grfkeystate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecuteCommand_Impl::SetKeyState(this, core::mem::transmute_copy(&grfkeystate)).into() } - unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, pszparameters: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IExecuteCommand_Impl, - { + unsafe extern "system" fn SetParameters(this: *mut core::ffi::c_void, pszparameters: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecuteCommand_Impl::SetParameters(this, core::mem::transmute(&pszparameters)).into() } - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IExecuteCommand_Impl, - { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecuteCommand_Impl::SetPosition(this, core::mem::transmute(&pt)).into() } - unsafe extern "system" fn SetShowWindow(this: *mut core::ffi::c_void, nshow: i32) -> windows_core::HRESULT - where - Identity: IExecuteCommand_Impl, - { + unsafe extern "system" fn SetShowWindow(this: *mut core::ffi::c_void, nshow: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecuteCommand_Impl::SetShowWindow(this, core::mem::transmute_copy(&nshow)).into() } - unsafe extern "system" fn SetNoShowUI(this: *mut core::ffi::c_void, fnoshowui: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IExecuteCommand_Impl, - { + unsafe extern "system" fn SetNoShowUI(this: *mut core::ffi::c_void, fnoshowui: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecuteCommand_Impl::SetNoShowUI(this, core::mem::transmute_copy(&fnoshowui)).into() } - unsafe extern "system" fn SetDirectory(this: *mut core::ffi::c_void, pszdirectory: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IExecuteCommand_Impl, - { + unsafe extern "system" fn SetDirectory(this: *mut core::ffi::c_void, pszdirectory: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecuteCommand_Impl::SetDirectory(this, core::mem::transmute(&pszdirectory)).into() } - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExecuteCommand_Impl, - { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecuteCommand_Impl::Execute(this).into() } @@ -7551,19 +5655,13 @@ impl IExecuteCommand_Vtbl { iid == &::IID } } -pub trait IExecuteCommandApplicationHostEnvironment_Impl: Sized { +pub trait IExecuteCommandApplicationHostEnvironment_Impl: Sized + windows_core::IUnknownImpl { fn GetValue(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IExecuteCommandApplicationHostEnvironment {} impl IExecuteCommandApplicationHostEnvironment_Vtbl { - pub const fn new() -> IExecuteCommandApplicationHostEnvironment_Vtbl - where - Identity: IExecuteCommandApplicationHostEnvironment_Impl, - { - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pahe: *mut AHE_TYPE) -> windows_core::HRESULT - where - Identity: IExecuteCommandApplicationHostEnvironment_Impl, - { + pub const fn new() -> IExecuteCommandApplicationHostEnvironment_Vtbl { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pahe: *mut AHE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExecuteCommandApplicationHostEnvironment_Impl::GetValue(this) { Ok(ok__) => { @@ -7579,19 +5677,13 @@ impl IExecuteCommandApplicationHostEnvironment_Vtbl { iid == &::IID } } -pub trait IExecuteCommandHost_Impl: Sized { +pub trait IExecuteCommandHost_Impl: Sized + windows_core::IUnknownImpl { fn GetUIMode(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IExecuteCommandHost {} impl IExecuteCommandHost_Vtbl { - pub const fn new() -> IExecuteCommandHost_Vtbl - where - Identity: IExecuteCommandHost_Impl, - { - unsafe extern "system" fn GetUIMode(this: *mut core::ffi::c_void, puimode: *mut EC_HOST_UI_MODE) -> windows_core::HRESULT - where - Identity: IExecuteCommandHost_Impl, - { + pub const fn new() -> IExecuteCommandHost_Vtbl { + unsafe extern "system" fn GetUIMode(this: *mut core::ffi::c_void, puimode: *mut EC_HOST_UI_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExecuteCommandHost_Impl::GetUIMode(this) { Ok(ok__) => { @@ -7608,7 +5700,7 @@ impl IExecuteCommandHost_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IExpDispSupport_Impl: Sized { +pub trait IExpDispSupport_Impl: Sized + windows_core::IUnknownImpl { fn FindConnectionPoint(&self, riid: *const windows_core::GUID) -> windows_core::Result; fn OnTranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> windows_core::Result<()>; fn OnInvoke(&self, dispidmember: i32, iid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut windows_core::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::Result<()>; @@ -7617,14 +5709,8 @@ pub trait IExpDispSupport_Impl: Sized { impl windows_core::RuntimeName for IExpDispSupport {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] impl IExpDispSupport_Vtbl { - pub const fn new() -> IExpDispSupport_Vtbl - where - Identity: IExpDispSupport_Impl, - { - unsafe extern "system" fn FindConnectionPoint(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppccp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExpDispSupport_Impl, - { + pub const fn new() -> IExpDispSupport_Vtbl { + unsafe extern "system" fn FindConnectionPoint(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppccp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExpDispSupport_Impl::FindConnectionPoint(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -7634,17 +5720,11 @@ impl IExpDispSupport_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnTranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> windows_core::HRESULT - where - Identity: IExpDispSupport_Impl, - { + unsafe extern "system" fn OnTranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExpDispSupport_Impl::OnTranslateAccelerator(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&grfmodifiers)).into() } - unsafe extern "system" fn OnInvoke(this: *mut core::ffi::c_void, dispidmember: i32, iid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT - where - Identity: IExpDispSupport_Impl, - { + unsafe extern "system" fn OnInvoke(this: *mut core::ffi::c_void, dispidmember: i32, iid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExpDispSupport_Impl::OnInvoke(this, core::mem::transmute_copy(&dispidmember), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&lcid), 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() } @@ -7660,7 +5740,7 @@ impl IExpDispSupport_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IExpDispSupportXP_Impl: Sized { +pub trait IExpDispSupportXP_Impl: Sized + windows_core::IUnknownImpl { fn FindCIE4ConnectionPoint(&self, riid: *const windows_core::GUID) -> windows_core::Result; fn OnTranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> windows_core::Result<()>; fn OnInvoke(&self, dispidmember: i32, iid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut windows_core::VARIANT, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::Result<()>; @@ -7669,14 +5749,8 @@ pub trait IExpDispSupportXP_Impl: Sized { impl windows_core::RuntimeName for IExpDispSupportXP {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] impl IExpDispSupportXP_Vtbl { - pub const fn new() -> IExpDispSupportXP_Vtbl - where - Identity: IExpDispSupportXP_Impl, - { - unsafe extern "system" fn FindCIE4ConnectionPoint(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppccp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExpDispSupportXP_Impl, - { + pub const fn new() -> IExpDispSupportXP_Vtbl { + unsafe extern "system" fn FindCIE4ConnectionPoint(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppccp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExpDispSupportXP_Impl::FindCIE4ConnectionPoint(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -7686,17 +5760,11 @@ impl IExpDispSupportXP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnTranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> windows_core::HRESULT - where - Identity: IExpDispSupportXP_Impl, - { + unsafe extern "system" fn OnTranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG, grfmodifiers: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExpDispSupportXP_Impl::OnTranslateAccelerator(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&grfmodifiers)).into() } - unsafe extern "system" fn OnInvoke(this: *mut core::ffi::c_void, dispidmember: i32, iid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT - where - Identity: IExpDispSupportXP_Impl, - { + unsafe extern "system" fn OnInvoke(this: *mut core::ffi::c_void, dispidmember: i32, iid: *const windows_core::GUID, lcid: u32, wflags: u16, pdispparams: *const super::super::System::Com::DISPPARAMS, pvarresult: *mut core::mem::MaybeUninit, pexcepinfo: *mut super::super::System::Com::EXCEPINFO, puargerr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExpDispSupportXP_Impl::OnInvoke(this, core::mem::transmute_copy(&dispidmember), core::mem::transmute_copy(&iid), core::mem::transmute_copy(&lcid), 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() } @@ -7712,7 +5780,7 @@ impl IExpDispSupportXP_Vtbl { } } #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IExplorerBrowser_Impl: Sized { +pub trait IExplorerBrowser_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, pfs: *const FOLDERSETTINGS) -> windows_core::Result<()>; fn Destroy(&self) -> windows_core::Result<()>; fn SetRect(&self, phdwp: *mut super::WindowsAndMessaging::HDWP, rcbrowser: &super::super::Foundation::RECT) -> windows_core::Result<()>; @@ -7733,56 +5801,32 @@ pub trait IExplorerBrowser_Impl: Sized { impl windows_core::RuntimeName for IExplorerBrowser {} #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IExplorerBrowser_Vtbl { - pub const fn new() -> IExplorerBrowser_Vtbl - where - Identity: IExplorerBrowser_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, pfs: *const FOLDERSETTINGS) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + pub const fn new() -> IExplorerBrowser_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, pfs: *const FOLDERSETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::Initialize(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfs)).into() } - unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn Destroy(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::Destroy(this).into() } - unsafe extern "system" fn SetRect(this: *mut core::ffi::c_void, phdwp: *mut super::WindowsAndMessaging::HDWP, rcbrowser: super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn SetRect(this: *mut core::ffi::c_void, phdwp: *mut super::WindowsAndMessaging::HDWP, rcbrowser: super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::SetRect(this, core::mem::transmute_copy(&phdwp), core::mem::transmute(&rcbrowser)).into() } - unsafe extern "system" fn SetPropertyBag(this: *mut core::ffi::c_void, pszpropertybag: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn SetPropertyBag(this: *mut core::ffi::c_void, pszpropertybag: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::SetPropertyBag(this, core::mem::transmute(&pszpropertybag)).into() } - unsafe extern "system" fn SetEmptyText(this: *mut core::ffi::c_void, pszemptytext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn SetEmptyText(this: *mut core::ffi::c_void, pszemptytext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::SetEmptyText(this, core::mem::transmute(&pszemptytext)).into() } - unsafe extern "system" fn SetFolderSettings(this: *mut core::ffi::c_void, pfs: *const FOLDERSETTINGS) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn SetFolderSettings(this: *mut core::ffi::c_void, pfs: *const FOLDERSETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::SetFolderSettings(this, core::mem::transmute_copy(&pfs)).into() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, psbe: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, psbe: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerBrowser_Impl::Advise(this, windows_core::from_raw_borrowed(&psbe)) { Ok(ok__) => { @@ -7792,24 +5836,15 @@ impl IExplorerBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, dwflag: EXPLORER_BROWSER_OPTIONS) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, dwflag: EXPLORER_BROWSER_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::SetOptions(this, core::mem::transmute_copy(&dwflag)).into() } - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, pdwflag: *mut EXPLORER_BROWSER_OPTIONS) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, pdwflag: *mut EXPLORER_BROWSER_OPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerBrowser_Impl::GetOptions(this) { Ok(ok__) => { @@ -7819,38 +5854,23 @@ impl IExplorerBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BrowseToIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, uflags: u32) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn BrowseToIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::BrowseToIDList(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn BrowseToObject(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, uflags: u32) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn BrowseToObject(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::BrowseToObject(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn FillFromObject(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, dwflags: EXPLORER_BROWSER_FILL_FLAGS) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn FillFromObject(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, dwflags: EXPLORER_BROWSER_FILL_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::FillFromObject(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::RemoveAll(this).into() } - unsafe extern "system" fn GetCurrentView(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExplorerBrowser_Impl, - { + unsafe extern "system" fn GetCurrentView(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowser_Impl::GetCurrentView(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -7878,7 +5898,7 @@ impl IExplorerBrowser_Vtbl { } } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] -pub trait IExplorerBrowserEvents_Impl: Sized { +pub trait IExplorerBrowserEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnNavigationPending(&self, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::Result<()>; fn OnViewCreated(&self, psv: Option<&IShellView>) -> windows_core::Result<()>; fn OnNavigationComplete(&self, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::Result<()>; @@ -7888,35 +5908,20 @@ pub trait IExplorerBrowserEvents_Impl: Sized { impl windows_core::RuntimeName for IExplorerBrowserEvents {} #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl IExplorerBrowserEvents_Vtbl { - pub const fn new() -> IExplorerBrowserEvents_Vtbl - where - Identity: IExplorerBrowserEvents_Impl, - { - unsafe extern "system" fn OnNavigationPending(this: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IExplorerBrowserEvents_Impl, - { + pub const fn new() -> IExplorerBrowserEvents_Vtbl { + unsafe extern "system" fn OnNavigationPending(this: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowserEvents_Impl::OnNavigationPending(this, core::mem::transmute_copy(&pidlfolder)).into() } - unsafe extern "system" fn OnViewCreated(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExplorerBrowserEvents_Impl, - { + unsafe extern "system" fn OnViewCreated(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowserEvents_Impl::OnViewCreated(this, windows_core::from_raw_borrowed(&psv)).into() } - unsafe extern "system" fn OnNavigationComplete(this: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IExplorerBrowserEvents_Impl, - { + unsafe extern "system" fn OnNavigationComplete(this: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowserEvents_Impl::OnNavigationComplete(this, core::mem::transmute_copy(&pidlfolder)).into() } - unsafe extern "system" fn OnNavigationFailed(this: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IExplorerBrowserEvents_Impl, - { + unsafe extern "system" fn OnNavigationFailed(this: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerBrowserEvents_Impl::OnNavigationFailed(this, core::mem::transmute_copy(&pidlfolder)).into() } @@ -7933,7 +5938,7 @@ impl IExplorerBrowserEvents_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IExplorerCommand_Impl: Sized { +pub trait IExplorerCommand_Impl: Sized + windows_core::IUnknownImpl { fn GetTitle(&self, psiitemarray: Option<&IShellItemArray>) -> windows_core::Result; fn GetIcon(&self, psiitemarray: Option<&IShellItemArray>) -> windows_core::Result; fn GetToolTip(&self, psiitemarray: Option<&IShellItemArray>) -> windows_core::Result; @@ -7947,14 +5952,8 @@ pub trait IExplorerCommand_Impl: Sized { impl windows_core::RuntimeName for IExplorerCommand {} #[cfg(feature = "Win32_System_Com")] impl IExplorerCommand_Vtbl { - pub const fn new() -> IExplorerCommand_Vtbl - where - Identity: IExplorerCommand_Impl, - { - unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IExplorerCommand_Impl, - { + pub const fn new() -> IExplorerCommand_Vtbl { + unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerCommand_Impl::GetTitle(this, windows_core::from_raw_borrowed(&psiitemarray)) { Ok(ok__) => { @@ -7964,10 +5963,7 @@ impl IExplorerCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, ppszicon: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IExplorerCommand_Impl, - { + unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, ppszicon: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerCommand_Impl::GetIcon(this, windows_core::from_raw_borrowed(&psiitemarray)) { Ok(ok__) => { @@ -7977,10 +5973,7 @@ impl IExplorerCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetToolTip(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, ppszinfotip: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IExplorerCommand_Impl, - { + unsafe extern "system" fn GetToolTip(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, ppszinfotip: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerCommand_Impl::GetToolTip(this, windows_core::from_raw_borrowed(&psiitemarray)) { Ok(ok__) => { @@ -7990,10 +5983,7 @@ impl IExplorerCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCanonicalName(this: *mut core::ffi::c_void, pguidcommandname: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IExplorerCommand_Impl, - { + unsafe extern "system" fn GetCanonicalName(this: *mut core::ffi::c_void, pguidcommandname: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerCommand_Impl::GetCanonicalName(this) { Ok(ok__) => { @@ -8003,10 +5993,7 @@ impl IExplorerCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, foktobeslow: super::super::Foundation::BOOL, pcmdstate: *mut u32) -> windows_core::HRESULT - where - Identity: IExplorerCommand_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, foktobeslow: super::super::Foundation::BOOL, pcmdstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerCommand_Impl::GetState(this, windows_core::from_raw_borrowed(&psiitemarray), core::mem::transmute_copy(&foktobeslow)) { Ok(ok__) => { @@ -8016,17 +6003,11 @@ impl IExplorerCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExplorerCommand_Impl, - { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerCommand_Impl::Invoke(this, windows_core::from_raw_borrowed(&psiitemarray), windows_core::from_raw_borrowed(&pbc)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT - where - Identity: IExplorerCommand_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerCommand_Impl::GetFlags(this) { Ok(ok__) => { @@ -8036,10 +6017,7 @@ impl IExplorerCommand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumSubCommands(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExplorerCommand_Impl, - { + unsafe extern "system" fn EnumSubCommands(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerCommand_Impl::EnumSubCommands(this) { Ok(ok__) => { @@ -8065,27 +6043,18 @@ impl IExplorerCommand_Vtbl { iid == &::IID } } -pub trait IExplorerCommandProvider_Impl: Sized { +pub trait IExplorerCommandProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetCommands(&self, punksite: Option<&windows_core::IUnknown>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetCommand(&self, rguidcommandid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IExplorerCommandProvider {} impl IExplorerCommandProvider_Vtbl { - pub const fn new() -> IExplorerCommandProvider_Vtbl - where - Identity: IExplorerCommandProvider_Impl, - { - unsafe extern "system" fn GetCommands(this: *mut core::ffi::c_void, punksite: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExplorerCommandProvider_Impl, - { + pub const fn new() -> IExplorerCommandProvider_Vtbl { + unsafe extern "system" fn GetCommands(this: *mut core::ffi::c_void, punksite: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerCommandProvider_Impl::GetCommands(this, windows_core::from_raw_borrowed(&punksite), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetCommand(this: *mut core::ffi::c_void, rguidcommandid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IExplorerCommandProvider_Impl, - { + unsafe extern "system" fn GetCommand(this: *mut core::ffi::c_void, rguidcommandid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExplorerCommandProvider_Impl::GetCommand(this, core::mem::transmute_copy(&rguidcommandid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -8099,19 +6068,13 @@ impl IExplorerCommandProvider_Vtbl { iid == &::IID } } -pub trait IExplorerCommandState_Impl: Sized { +pub trait IExplorerCommandState_Impl: Sized + windows_core::IUnknownImpl { fn GetState(&self, psiitemarray: Option<&IShellItemArray>, foktobeslow: super::super::Foundation::BOOL) -> windows_core::Result; } impl windows_core::RuntimeName for IExplorerCommandState {} impl IExplorerCommandState_Vtbl { - pub const fn new() -> IExplorerCommandState_Vtbl - where - Identity: IExplorerCommandState_Impl, - { - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, foktobeslow: super::super::Foundation::BOOL, pcmdstate: *mut u32) -> windows_core::HRESULT - where - Identity: IExplorerCommandState_Impl, - { + pub const fn new() -> IExplorerCommandState_Vtbl { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, foktobeslow: super::super::Foundation::BOOL, pcmdstate: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerCommandState_Impl::GetState(this, windows_core::from_raw_borrowed(&psiitemarray), core::mem::transmute_copy(&foktobeslow)) { Ok(ok__) => { @@ -8127,19 +6090,13 @@ impl IExplorerCommandState_Vtbl { iid == &::IID } } -pub trait IExplorerPaneVisibility_Impl: Sized { +pub trait IExplorerPaneVisibility_Impl: Sized + windows_core::IUnknownImpl { fn GetPaneState(&self, ep: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IExplorerPaneVisibility {} impl IExplorerPaneVisibility_Vtbl { - pub const fn new() -> IExplorerPaneVisibility_Vtbl - where - Identity: IExplorerPaneVisibility_Impl, - { - unsafe extern "system" fn GetPaneState(this: *mut core::ffi::c_void, ep: *const windows_core::GUID, peps: *mut u32) -> windows_core::HRESULT - where - Identity: IExplorerPaneVisibility_Impl, - { + pub const fn new() -> IExplorerPaneVisibility_Vtbl { + unsafe extern "system" fn GetPaneState(this: *mut core::ffi::c_void, ep: *const windows_core::GUID, peps: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerPaneVisibility_Impl::GetPaneState(this, core::mem::transmute_copy(&ep)) { Ok(ok__) => { @@ -8155,27 +6112,18 @@ impl IExplorerPaneVisibility_Vtbl { iid == &::IID } } -pub trait IExtensionServices_Impl: Sized { +pub trait IExtensionServices_Impl: Sized + windows_core::IUnknownImpl { fn SetAdditionalHeaders(&self, pwzadditionalheaders: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetAuthenticateData(&self, phwnd: super::super::Foundation::HWND, pwzusername: &windows_core::PCWSTR, pwzpassword: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IExtensionServices {} impl IExtensionServices_Vtbl { - pub const fn new() -> IExtensionServices_Vtbl - where - Identity: IExtensionServices_Impl, - { - unsafe extern "system" fn SetAdditionalHeaders(this: *mut core::ffi::c_void, pwzadditionalheaders: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IExtensionServices_Impl, - { + pub const fn new() -> IExtensionServices_Vtbl { + unsafe extern "system" fn SetAdditionalHeaders(this: *mut core::ffi::c_void, pwzadditionalheaders: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtensionServices_Impl::SetAdditionalHeaders(this, core::mem::transmute(&pwzadditionalheaders)).into() } - unsafe extern "system" fn SetAuthenticateData(this: *mut core::ffi::c_void, phwnd: super::super::Foundation::HWND, pwzusername: windows_core::PCWSTR, pwzpassword: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IExtensionServices_Impl, - { + unsafe extern "system" fn SetAuthenticateData(this: *mut core::ffi::c_void, phwnd: super::super::Foundation::HWND, pwzusername: windows_core::PCWSTR, pwzpassword: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtensionServices_Impl::SetAuthenticateData(this, core::mem::transmute_copy(&phwnd), core::mem::transmute(&pwzusername), core::mem::transmute(&pwzpassword)).into() } @@ -8190,7 +6138,7 @@ impl IExtensionServices_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IExtractIconA_Impl: Sized { +pub trait IExtractIconA_Impl: Sized + windows_core::IUnknownImpl { fn GetIconLocation(&self, uflags: u32, psziconfile: windows_core::PSTR, cchmax: u32, piindex: *mut i32, pwflags: *mut u32) -> windows_core::Result<()>; fn Extract(&self, pszfile: &windows_core::PCSTR, niconindex: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> windows_core::Result<()>; } @@ -8198,21 +6146,12 @@ pub trait IExtractIconA_Impl: Sized { impl windows_core::RuntimeName for IExtractIconA {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IExtractIconA_Vtbl { - pub const fn new() -> IExtractIconA_Vtbl - where - Identity: IExtractIconA_Impl, - { - unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, uflags: u32, psziconfile: windows_core::PSTR, cchmax: u32, piindex: *mut i32, pwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IExtractIconA_Impl, - { + pub const fn new() -> IExtractIconA_Vtbl { + unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, uflags: u32, psziconfile: windows_core::PSTR, cchmax: u32, piindex: *mut i32, pwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtractIconA_Impl::GetIconLocation(this, core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&psziconfile), core::mem::transmute_copy(&cchmax), core::mem::transmute_copy(&piindex), core::mem::transmute_copy(&pwflags)).into() } - unsafe extern "system" fn Extract(this: *mut core::ffi::c_void, pszfile: windows_core::PCSTR, niconindex: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> windows_core::HRESULT - where - Identity: IExtractIconA_Impl, - { + unsafe extern "system" fn Extract(this: *mut core::ffi::c_void, pszfile: windows_core::PCSTR, niconindex: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtractIconA_Impl::Extract(this, core::mem::transmute(&pszfile), core::mem::transmute_copy(&niconindex), core::mem::transmute_copy(&phiconlarge), core::mem::transmute_copy(&phiconsmall), core::mem::transmute_copy(&niconsize)).into() } @@ -8227,7 +6166,7 @@ impl IExtractIconA_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IExtractIconW_Impl: Sized { +pub trait IExtractIconW_Impl: Sized + windows_core::IUnknownImpl { fn GetIconLocation(&self, uflags: u32, psziconfile: windows_core::PWSTR, cchmax: u32, piindex: *mut i32, pwflags: *mut u32) -> windows_core::Result<()>; fn Extract(&self, pszfile: &windows_core::PCWSTR, niconindex: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> windows_core::Result<()>; } @@ -8235,21 +6174,12 @@ pub trait IExtractIconW_Impl: Sized { impl windows_core::RuntimeName for IExtractIconW {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IExtractIconW_Vtbl { - pub const fn new() -> IExtractIconW_Vtbl - where - Identity: IExtractIconW_Impl, - { - unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, uflags: u32, psziconfile: windows_core::PWSTR, cchmax: u32, piindex: *mut i32, pwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IExtractIconW_Impl, - { + pub const fn new() -> IExtractIconW_Vtbl { + unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, uflags: u32, psziconfile: windows_core::PWSTR, cchmax: u32, piindex: *mut i32, pwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtractIconW_Impl::GetIconLocation(this, core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&psziconfile), core::mem::transmute_copy(&cchmax), core::mem::transmute_copy(&piindex), core::mem::transmute_copy(&pwflags)).into() } - unsafe extern "system" fn Extract(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, niconindex: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> windows_core::HRESULT - where - Identity: IExtractIconW_Impl, - { + unsafe extern "system" fn Extract(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR, niconindex: u32, phiconlarge: *mut super::WindowsAndMessaging::HICON, phiconsmall: *mut super::WindowsAndMessaging::HICON, niconsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtractIconW_Impl::Extract(this, core::mem::transmute(&pszfile), core::mem::transmute_copy(&niconindex), core::mem::transmute_copy(&phiconlarge), core::mem::transmute_copy(&phiconsmall), core::mem::transmute_copy(&niconsize)).into() } @@ -8264,7 +6194,7 @@ impl IExtractIconW_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IExtractImage_Impl: Sized { +pub trait IExtractImage_Impl: Sized + windows_core::IUnknownImpl { fn GetLocation(&self, pszpathbuffer: windows_core::PWSTR, cch: u32, pdwpriority: *mut u32, prgsize: *const super::super::Foundation::SIZE, dwrecclrdepth: u32, pdwflags: *mut u32) -> windows_core::Result<()>; fn Extract(&self) -> windows_core::Result; } @@ -8272,21 +6202,12 @@ pub trait IExtractImage_Impl: Sized { impl windows_core::RuntimeName for IExtractImage {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IExtractImage_Vtbl { - pub const fn new() -> IExtractImage_Vtbl - where - Identity: IExtractImage_Impl, - { - unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, pszpathbuffer: windows_core::PWSTR, cch: u32, pdwpriority: *mut u32, prgsize: *const super::super::Foundation::SIZE, dwrecclrdepth: u32, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IExtractImage_Impl, - { + pub const fn new() -> IExtractImage_Vtbl { + unsafe extern "system" fn GetLocation(this: *mut core::ffi::c_void, pszpathbuffer: windows_core::PWSTR, cch: u32, pdwpriority: *mut u32, prgsize: *const super::super::Foundation::SIZE, dwrecclrdepth: u32, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtractImage_Impl::GetLocation(this, core::mem::transmute_copy(&pszpathbuffer), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&pdwpriority), core::mem::transmute_copy(&prgsize), core::mem::transmute_copy(&dwrecclrdepth), core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn Extract(this: *mut core::ffi::c_void, phbmpthumbnail: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IExtractImage_Impl, - { + unsafe extern "system" fn Extract(this: *mut core::ffi::c_void, phbmpthumbnail: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExtractImage_Impl::Extract(this) { Ok(ok__) => { @@ -8314,14 +6235,8 @@ pub trait IExtractImage2_Impl: Sized + IExtractImage_Impl { impl windows_core::RuntimeName for IExtractImage2 {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IExtractImage2_Vtbl { - pub const fn new() -> IExtractImage2_Vtbl - where - Identity: IExtractImage2_Impl, - { - unsafe extern "system" fn GetDateStamp(this: *mut core::ffi::c_void, pdatestamp: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IExtractImage2_Impl, - { + pub const fn new() -> IExtractImage2_Vtbl { + unsafe extern "system" fn GetDateStamp(this: *mut core::ffi::c_void, pdatestamp: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExtractImage2_Impl::GetDateStamp(this) { Ok(ok__) => { @@ -8367,28 +6282,16 @@ pub trait IFileDialog_Impl: Sized + IModalWindow_Impl { impl windows_core::RuntimeName for IFileDialog {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IFileDialog_Vtbl { - pub const fn new() -> IFileDialog_Vtbl - where - Identity: IFileDialog_Impl, - { - unsafe extern "system" fn SetFileTypes(this: *mut core::ffi::c_void, cfiletypes: u32, rgfilterspec: *const Common::COMDLG_FILTERSPEC) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + pub const fn new() -> IFileDialog_Vtbl { + unsafe extern "system" fn SetFileTypes(this: *mut core::ffi::c_void, cfiletypes: u32, rgfilterspec: *const Common::COMDLG_FILTERSPEC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetFileTypes(this, core::mem::transmute_copy(&cfiletypes), core::mem::transmute_copy(&rgfilterspec)).into() } - unsafe extern "system" fn SetFileTypeIndex(this: *mut core::ffi::c_void, ifiletype: u32) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetFileTypeIndex(this: *mut core::ffi::c_void, ifiletype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetFileTypeIndex(this, core::mem::transmute_copy(&ifiletype)).into() } - unsafe extern "system" fn GetFileTypeIndex(this: *mut core::ffi::c_void, pifiletype: *mut u32) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn GetFileTypeIndex(this: *mut core::ffi::c_void, pifiletype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialog_Impl::GetFileTypeIndex(this) { Ok(ok__) => { @@ -8398,10 +6301,7 @@ impl IFileDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pfde: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pfde: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialog_Impl::Advise(this, windows_core::from_raw_borrowed(&pfde)) { Ok(ok__) => { @@ -8411,24 +6311,15 @@ impl IFileDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, fos: FILEOPENDIALOGOPTIONS) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, fos: FILEOPENDIALOGOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetOptions(this, core::mem::transmute_copy(&fos)).into() } - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, pfos: *mut FILEOPENDIALOGOPTIONS) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, pfos: *mut FILEOPENDIALOGOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialog_Impl::GetOptions(this) { Ok(ok__) => { @@ -8438,24 +6329,15 @@ impl IFileDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultFolder(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetDefaultFolder(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetDefaultFolder(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn SetFolder(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetFolder(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetFolder(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialog_Impl::GetFolder(this) { Ok(ok__) => { @@ -8465,10 +6347,7 @@ impl IFileDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentSelection(this: *mut core::ffi::c_void, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn GetCurrentSelection(this: *mut core::ffi::c_void, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialog_Impl::GetCurrentSelection(this) { Ok(ok__) => { @@ -8478,17 +6357,11 @@ impl IFileDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetFileName(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetFileName(this, core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, pszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn GetFileName(this: *mut core::ffi::c_void, pszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialog_Impl::GetFileName(this) { Ok(ok__) => { @@ -8498,31 +6371,19 @@ impl IFileDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetTitle(this, core::mem::transmute(&psztitle)).into() } - unsafe extern "system" fn SetOkButtonLabel(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetOkButtonLabel(this: *mut core::ffi::c_void, psztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetOkButtonLabel(this, core::mem::transmute(&psztext)).into() } - unsafe extern "system" fn SetFileNameLabel(this: *mut core::ffi::c_void, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetFileNameLabel(this: *mut core::ffi::c_void, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetFileNameLabel(this, core::mem::transmute(&pszlabel)).into() } - unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn GetResult(this: *mut core::ffi::c_void, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialog_Impl::GetResult(this) { Ok(ok__) => { @@ -8532,45 +6393,27 @@ impl IFileDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPlace(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, fdap: FDAP) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn AddPlace(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, fdap: FDAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::AddPlace(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&fdap)).into() } - unsafe extern "system" fn SetDefaultExtension(this: *mut core::ffi::c_void, pszdefaultextension: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetDefaultExtension(this: *mut core::ffi::c_void, pszdefaultextension: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetDefaultExtension(this, core::mem::transmute(&pszdefaultextension)).into() } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::Close(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn SetClientGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetClientGuid(this: *mut core::ffi::c_void, guid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetClientGuid(this, core::mem::transmute_copy(&guid)).into() } - unsafe extern "system" fn ClearClientData(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn ClearClientData(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::ClearClientData(this).into() } - unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialog_Impl, - { + unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, pfilter: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog_Impl::SetFilter(this, windows_core::from_raw_borrowed(&pfilter)).into() } @@ -8614,21 +6457,12 @@ pub trait IFileDialog2_Impl: Sized + IFileDialog_Impl { impl windows_core::RuntimeName for IFileDialog2 {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IFileDialog2_Vtbl { - pub const fn new() -> IFileDialog2_Vtbl - where - Identity: IFileDialog2_Impl, - { - unsafe extern "system" fn SetCancelButtonLabel(this: *mut core::ffi::c_void, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialog2_Impl, - { + pub const fn new() -> IFileDialog2_Vtbl { + unsafe extern "system" fn SetCancelButtonLabel(this: *mut core::ffi::c_void, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog2_Impl::SetCancelButtonLabel(this, core::mem::transmute(&pszlabel)).into() } - unsafe extern "system" fn SetNavigationRoot(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialog2_Impl, - { + unsafe extern "system" fn SetNavigationRoot(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialog2_Impl::SetNavigationRoot(this, windows_core::from_raw_borrowed(&psi)).into() } @@ -8642,7 +6476,7 @@ impl IFileDialog2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IFileDialogControlEvents_Impl: Sized { +pub trait IFileDialogControlEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnItemSelected(&self, pfdc: Option<&IFileDialogCustomize>, dwidctl: u32, dwiditem: u32) -> windows_core::Result<()>; fn OnButtonClicked(&self, pfdc: Option<&IFileDialogCustomize>, dwidctl: u32) -> windows_core::Result<()>; fn OnCheckButtonToggled(&self, pfdc: Option<&IFileDialogCustomize>, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -8650,35 +6484,20 @@ pub trait IFileDialogControlEvents_Impl: Sized { } impl windows_core::RuntimeName for IFileDialogControlEvents {} impl IFileDialogControlEvents_Vtbl { - pub const fn new() -> IFileDialogControlEvents_Vtbl - where - Identity: IFileDialogControlEvents_Impl, - { - unsafe extern "system" fn OnItemSelected(this: *mut core::ffi::c_void, pfdc: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32) -> windows_core::HRESULT - where - Identity: IFileDialogControlEvents_Impl, - { + pub const fn new() -> IFileDialogControlEvents_Vtbl { + unsafe extern "system" fn OnItemSelected(this: *mut core::ffi::c_void, pfdc: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogControlEvents_Impl::OnItemSelected(this, windows_core::from_raw_borrowed(&pfdc), core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&dwiditem)).into() } - unsafe extern "system" fn OnButtonClicked(this: *mut core::ffi::c_void, pfdc: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT - where - Identity: IFileDialogControlEvents_Impl, - { + unsafe extern "system" fn OnButtonClicked(this: *mut core::ffi::c_void, pfdc: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogControlEvents_Impl::OnButtonClicked(this, windows_core::from_raw_borrowed(&pfdc), core::mem::transmute_copy(&dwidctl)).into() } - unsafe extern "system" fn OnCheckButtonToggled(this: *mut core::ffi::c_void, pfdc: *mut core::ffi::c_void, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFileDialogControlEvents_Impl, - { + unsafe extern "system" fn OnCheckButtonToggled(this: *mut core::ffi::c_void, pfdc: *mut core::ffi::c_void, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogControlEvents_Impl::OnCheckButtonToggled(this, windows_core::from_raw_borrowed(&pfdc), core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&bchecked)).into() } - unsafe extern "system" fn OnControlActivating(this: *mut core::ffi::c_void, pfdc: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT - where - Identity: IFileDialogControlEvents_Impl, - { + unsafe extern "system" fn OnControlActivating(this: *mut core::ffi::c_void, pfdc: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogControlEvents_Impl::OnControlActivating(this, windows_core::from_raw_borrowed(&pfdc), core::mem::transmute_copy(&dwidctl)).into() } @@ -8694,7 +6513,7 @@ impl IFileDialogControlEvents_Vtbl { iid == &::IID } } -pub trait IFileDialogCustomize_Impl: Sized { +pub trait IFileDialogCustomize_Impl: Sized + windows_core::IUnknownImpl { fn EnableOpenDropDown(&self, dwidctl: u32) -> windows_core::Result<()>; fn AddMenu(&self, dwidctl: u32, pszlabel: &windows_core::PCWSTR) -> windows_core::Result<()>; fn AddPushButton(&self, dwidctl: u32, pszlabel: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -8725,84 +6544,48 @@ pub trait IFileDialogCustomize_Impl: Sized { } impl windows_core::RuntimeName for IFileDialogCustomize {} impl IFileDialogCustomize_Vtbl { - pub const fn new() -> IFileDialogCustomize_Vtbl - where - Identity: IFileDialogCustomize_Impl, - { - unsafe extern "system" fn EnableOpenDropDown(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + pub const fn new() -> IFileDialogCustomize_Vtbl { + unsafe extern "system" fn EnableOpenDropDown(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::EnableOpenDropDown(this, core::mem::transmute_copy(&dwidctl)).into() } - unsafe extern "system" fn AddMenu(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn AddMenu(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::AddMenu(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute(&pszlabel)).into() } - unsafe extern "system" fn AddPushButton(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn AddPushButton(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::AddPushButton(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute(&pszlabel)).into() } - unsafe extern "system" fn AddComboBox(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn AddComboBox(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::AddComboBox(this, core::mem::transmute_copy(&dwidctl)).into() } - unsafe extern "system" fn AddRadioButtonList(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn AddRadioButtonList(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::AddRadioButtonList(this, core::mem::transmute_copy(&dwidctl)).into() } - unsafe extern "system" fn AddCheckButton(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn AddCheckButton(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::AddCheckButton(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute(&pszlabel), core::mem::transmute_copy(&bchecked)).into() } - unsafe extern "system" fn AddEditBox(this: *mut core::ffi::c_void, dwidctl: u32, psztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn AddEditBox(this: *mut core::ffi::c_void, dwidctl: u32, psztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::AddEditBox(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute(&psztext)).into() } - unsafe extern "system" fn AddSeparator(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn AddSeparator(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::AddSeparator(this, core::mem::transmute_copy(&dwidctl)).into() } - unsafe extern "system" fn AddText(this: *mut core::ffi::c_void, dwidctl: u32, psztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn AddText(this: *mut core::ffi::c_void, dwidctl: u32, psztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::AddText(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute(&psztext)).into() } - unsafe extern "system" fn SetControlLabel(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn SetControlLabel(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::SetControlLabel(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute(&pszlabel)).into() } - unsafe extern "system" fn GetControlState(this: *mut core::ffi::c_void, dwidctl: u32, pdwstate: *mut CDCONTROLSTATEF) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn GetControlState(this: *mut core::ffi::c_void, dwidctl: u32, pdwstate: *mut CDCONTROLSTATEF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialogCustomize_Impl::GetControlState(this, core::mem::transmute_copy(&dwidctl)) { Ok(ok__) => { @@ -8812,17 +6595,11 @@ impl IFileDialogCustomize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetControlState(this: *mut core::ffi::c_void, dwidctl: u32, dwstate: CDCONTROLSTATEF) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn SetControlState(this: *mut core::ffi::c_void, dwidctl: u32, dwstate: CDCONTROLSTATEF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::SetControlState(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&dwstate)).into() } - unsafe extern "system" fn GetEditBoxText(this: *mut core::ffi::c_void, dwidctl: u32, ppsztext: *mut *mut u16) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn GetEditBoxText(this: *mut core::ffi::c_void, dwidctl: u32, ppsztext: *mut *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialogCustomize_Impl::GetEditBoxText(this, core::mem::transmute_copy(&dwidctl)) { Ok(ok__) => { @@ -8832,17 +6609,11 @@ impl IFileDialogCustomize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEditBoxText(this: *mut core::ffi::c_void, dwidctl: u32, psztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn SetEditBoxText(this: *mut core::ffi::c_void, dwidctl: u32, psztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::SetEditBoxText(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute(&psztext)).into() } - unsafe extern "system" fn GetCheckButtonState(this: *mut core::ffi::c_void, dwidctl: u32, pbchecked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn GetCheckButtonState(this: *mut core::ffi::c_void, dwidctl: u32, pbchecked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialogCustomize_Impl::GetCheckButtonState(this, core::mem::transmute_copy(&dwidctl)) { Ok(ok__) => { @@ -8852,38 +6623,23 @@ impl IFileDialogCustomize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCheckButtonState(this: *mut core::ffi::c_void, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn SetCheckButtonState(this: *mut core::ffi::c_void, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::SetCheckButtonState(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&bchecked)).into() } - unsafe extern "system" fn AddControlItem(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn AddControlItem(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::AddControlItem(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&dwiditem), core::mem::transmute(&pszlabel)).into() } - unsafe extern "system" fn RemoveControlItem(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn RemoveControlItem(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::RemoveControlItem(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&dwiditem)).into() } - unsafe extern "system" fn RemoveAllControlItems(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn RemoveAllControlItems(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::RemoveAllControlItems(this, core::mem::transmute_copy(&dwidctl)).into() } - unsafe extern "system" fn GetControlItemState(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32, pdwstate: *mut CDCONTROLSTATEF) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn GetControlItemState(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32, pdwstate: *mut CDCONTROLSTATEF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialogCustomize_Impl::GetControlItemState(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&dwiditem)) { Ok(ok__) => { @@ -8893,17 +6649,11 @@ impl IFileDialogCustomize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetControlItemState(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32, dwstate: CDCONTROLSTATEF) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn SetControlItemState(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32, dwstate: CDCONTROLSTATEF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::SetControlItemState(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&dwiditem), core::mem::transmute_copy(&dwstate)).into() } - unsafe extern "system" fn GetSelectedControlItem(this: *mut core::ffi::c_void, dwidctl: u32, pdwiditem: *mut u32) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn GetSelectedControlItem(this: *mut core::ffi::c_void, dwidctl: u32, pdwiditem: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialogCustomize_Impl::GetSelectedControlItem(this, core::mem::transmute_copy(&dwidctl)) { Ok(ok__) => { @@ -8913,38 +6663,23 @@ impl IFileDialogCustomize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelectedControlItem(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn SetSelectedControlItem(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::SetSelectedControlItem(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&dwiditem)).into() } - unsafe extern "system" fn StartVisualGroup(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn StartVisualGroup(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::StartVisualGroup(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute(&pszlabel)).into() } - unsafe extern "system" fn EndVisualGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn EndVisualGroup(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::EndVisualGroup(this).into() } - unsafe extern "system" fn MakeProminent(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn MakeProminent(this: *mut core::ffi::c_void, dwidctl: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::MakeProminent(this, core::mem::transmute_copy(&dwidctl)).into() } - unsafe extern "system" fn SetControlItemText(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileDialogCustomize_Impl, - { + unsafe extern "system" fn SetControlItemText(this: *mut core::ffi::c_void, dwidctl: u32, dwiditem: u32, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::SetControlItemText(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&dwiditem), core::mem::transmute(&pszlabel)).into() } @@ -8983,7 +6718,7 @@ impl IFileDialogCustomize_Vtbl { iid == &::IID } } -pub trait IFileDialogEvents_Impl: Sized { +pub trait IFileDialogEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnFileOk(&self, pfd: Option<&IFileDialog>) -> windows_core::Result<()>; fn OnFolderChanging(&self, pfd: Option<&IFileDialog>, psifolder: Option<&IShellItem>) -> windows_core::Result<()>; fn OnFolderChange(&self, pfd: Option<&IFileDialog>) -> windows_core::Result<()>; @@ -8994,42 +6729,24 @@ pub trait IFileDialogEvents_Impl: Sized { } impl windows_core::RuntimeName for IFileDialogEvents {} impl IFileDialogEvents_Vtbl { - pub const fn new() -> IFileDialogEvents_Vtbl - where - Identity: IFileDialogEvents_Impl, - { - unsafe extern "system" fn OnFileOk(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialogEvents_Impl, - { + pub const fn new() -> IFileDialogEvents_Vtbl { + unsafe extern "system" fn OnFileOk(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogEvents_Impl::OnFileOk(this, windows_core::from_raw_borrowed(&pfd)).into() } - unsafe extern "system" fn OnFolderChanging(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void, psifolder: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialogEvents_Impl, - { + unsafe extern "system" fn OnFolderChanging(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void, psifolder: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogEvents_Impl::OnFolderChanging(this, windows_core::from_raw_borrowed(&pfd), windows_core::from_raw_borrowed(&psifolder)).into() } - unsafe extern "system" fn OnFolderChange(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialogEvents_Impl, - { + unsafe extern "system" fn OnFolderChange(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogEvents_Impl::OnFolderChange(this, windows_core::from_raw_borrowed(&pfd)).into() } - unsafe extern "system" fn OnSelectionChange(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialogEvents_Impl, - { + unsafe extern "system" fn OnSelectionChange(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogEvents_Impl::OnSelectionChange(this, windows_core::from_raw_borrowed(&pfd)).into() } - unsafe extern "system" fn OnShareViolation(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, presponse: *mut FDE_SHAREVIOLATION_RESPONSE) -> windows_core::HRESULT - where - Identity: IFileDialogEvents_Impl, - { + unsafe extern "system" fn OnShareViolation(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, presponse: *mut FDE_SHAREVIOLATION_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialogEvents_Impl::OnShareViolation(this, windows_core::from_raw_borrowed(&pfd), windows_core::from_raw_borrowed(&psi)) { Ok(ok__) => { @@ -9039,17 +6756,11 @@ impl IFileDialogEvents_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnTypeChange(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileDialogEvents_Impl, - { + unsafe extern "system" fn OnTypeChange(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogEvents_Impl::OnTypeChange(this, windows_core::from_raw_borrowed(&pfd)).into() } - unsafe extern "system" fn OnOverwrite(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, presponse: *mut FDE_OVERWRITE_RESPONSE) -> windows_core::HRESULT - where - Identity: IFileDialogEvents_Impl, - { + unsafe extern "system" fn OnOverwrite(this: *mut core::ffi::c_void, pfd: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, presponse: *mut FDE_OVERWRITE_RESPONSE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialogEvents_Impl::OnOverwrite(this, windows_core::from_raw_borrowed(&pfd), windows_core::from_raw_borrowed(&psi)) { Ok(ok__) => { @@ -9074,7 +6785,7 @@ impl IFileDialogEvents_Vtbl { iid == &::IID } } -pub trait IFileIsInUse_Impl: Sized { +pub trait IFileIsInUse_Impl: Sized + windows_core::IUnknownImpl { fn GetAppName(&self) -> windows_core::Result; fn GetUsage(&self) -> windows_core::Result; fn GetCapabilities(&self) -> windows_core::Result; @@ -9083,14 +6794,8 @@ pub trait IFileIsInUse_Impl: Sized { } impl windows_core::RuntimeName for IFileIsInUse {} impl IFileIsInUse_Vtbl { - pub const fn new() -> IFileIsInUse_Vtbl - where - Identity: IFileIsInUse_Impl, - { - unsafe extern "system" fn GetAppName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IFileIsInUse_Impl, - { + pub const fn new() -> IFileIsInUse_Vtbl { + unsafe extern "system" fn GetAppName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileIsInUse_Impl::GetAppName(this) { Ok(ok__) => { @@ -9100,10 +6805,7 @@ impl IFileIsInUse_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUsage(this: *mut core::ffi::c_void, pfut: *mut FILE_USAGE_TYPE) -> windows_core::HRESULT - where - Identity: IFileIsInUse_Impl, - { + unsafe extern "system" fn GetUsage(this: *mut core::ffi::c_void, pfut: *mut FILE_USAGE_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileIsInUse_Impl::GetUsage(this) { Ok(ok__) => { @@ -9113,10 +6815,7 @@ impl IFileIsInUse_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapflags: *mut u32) -> windows_core::HRESULT - where - Identity: IFileIsInUse_Impl, - { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pdwcapflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileIsInUse_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -9126,10 +6825,7 @@ impl IFileIsInUse_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSwitchToHWND(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IFileIsInUse_Impl, - { + unsafe extern "system" fn GetSwitchToHWND(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileIsInUse_Impl::GetSwitchToHWND(this) { Ok(ok__) => { @@ -9139,10 +6835,7 @@ impl IFileIsInUse_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloseFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileIsInUse_Impl, - { + unsafe extern "system" fn CloseFile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIsInUse_Impl::CloseFile(this).into() } @@ -9168,14 +6861,8 @@ pub trait IFileOpenDialog_Impl: Sized + IFileDialog_Impl { impl windows_core::RuntimeName for IFileOpenDialog {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IFileOpenDialog_Vtbl { - pub const fn new() -> IFileOpenDialog_Vtbl - where - Identity: IFileOpenDialog_Impl, - { - unsafe extern "system" fn GetResults(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOpenDialog_Impl, - { + pub const fn new() -> IFileOpenDialog_Vtbl { + unsafe extern "system" fn GetResults(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileOpenDialog_Impl::GetResults(this) { Ok(ok__) => { @@ -9185,10 +6872,7 @@ impl IFileOpenDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectedItems(this: *mut core::ffi::c_void, ppsai: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOpenDialog_Impl, - { + unsafe extern "system" fn GetSelectedItems(this: *mut core::ffi::c_void, ppsai: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileOpenDialog_Impl::GetSelectedItems(this) { Ok(ok__) => { @@ -9209,7 +6893,7 @@ impl IFileOpenDialog_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IFileOperation_Impl: Sized { +pub trait IFileOperation_Impl: Sized + windows_core::IUnknownImpl { fn Advise(&self, pfops: Option<&IFileOperationProgressSink>) -> windows_core::Result; fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()>; fn SetOperationFlags(&self, dwoperationflags: FILEOPERATION_FLAGS) -> windows_core::Result<()>; @@ -9235,14 +6919,8 @@ pub trait IFileOperation_Impl: Sized { impl windows_core::RuntimeName for IFileOperation {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IFileOperation_Vtbl { - pub const fn new() -> IFileOperation_Vtbl - where - Identity: IFileOperation_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pfops: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + pub const fn new() -> IFileOperation_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pfops: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileOperation_Impl::Advise(this, windows_core::from_raw_borrowed(&pfops)) { Ok(ok__) => { @@ -9252,136 +6930,79 @@ impl IFileOperation_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn SetOperationFlags(this: *mut core::ffi::c_void, dwoperationflags: FILEOPERATION_FLAGS) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn SetOperationFlags(this: *mut core::ffi::c_void, dwoperationflags: FILEOPERATION_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::SetOperationFlags(this, core::mem::transmute_copy(&dwoperationflags)).into() } - unsafe extern "system" fn SetProgressMessage(this: *mut core::ffi::c_void, pszmessage: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn SetProgressMessage(this: *mut core::ffi::c_void, pszmessage: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::SetProgressMessage(this, core::mem::transmute(&pszmessage)).into() } - unsafe extern "system" fn SetProgressDialog(this: *mut core::ffi::c_void, popd: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn SetProgressDialog(this: *mut core::ffi::c_void, popd: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::SetProgressDialog(this, windows_core::from_raw_borrowed(&popd)).into() } - unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, pproparray: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, pproparray: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::SetProperties(this, windows_core::from_raw_borrowed(&pproparray)).into() } - unsafe extern "system" fn SetOwnerWindow(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn SetOwnerWindow(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::SetOwnerWindow(this, core::mem::transmute_copy(&hwndowner)).into() } - unsafe extern "system" fn ApplyPropertiesToItem(this: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn ApplyPropertiesToItem(this: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::ApplyPropertiesToItem(this, windows_core::from_raw_borrowed(&psiitem)).into() } - unsafe extern "system" fn ApplyPropertiesToItems(this: *mut core::ffi::c_void, punkitems: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn ApplyPropertiesToItems(this: *mut core::ffi::c_void, punkitems: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::ApplyPropertiesToItems(this, windows_core::from_raw_borrowed(&punkitems)).into() } - unsafe extern "system" fn RenameItem(this: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, pfopsitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn RenameItem(this: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, pfopsitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::RenameItem(this, windows_core::from_raw_borrowed(&psiitem), core::mem::transmute(&psznewname), windows_core::from_raw_borrowed(&pfopsitem)).into() } - unsafe extern "system" fn RenameItems(this: *mut core::ffi::c_void, punkitems: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn RenameItems(this: *mut core::ffi::c_void, punkitems: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::RenameItems(this, windows_core::from_raw_borrowed(&punkitems), core::mem::transmute(&psznewname)).into() } - unsafe extern "system" fn MoveItem(this: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, pfopsitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn MoveItem(this: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, pfopsitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::MoveItem(this, windows_core::from_raw_borrowed(&psiitem), windows_core::from_raw_borrowed(&psidestinationfolder), core::mem::transmute(&psznewname), windows_core::from_raw_borrowed(&pfopsitem)).into() } - unsafe extern "system" fn MoveItems(this: *mut core::ffi::c_void, punkitems: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn MoveItems(this: *mut core::ffi::c_void, punkitems: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::MoveItems(this, windows_core::from_raw_borrowed(&punkitems), windows_core::from_raw_borrowed(&psidestinationfolder)).into() } - unsafe extern "system" fn CopyItem(this: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, pszcopyname: windows_core::PCWSTR, pfopsitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn CopyItem(this: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, pszcopyname: windows_core::PCWSTR, pfopsitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::CopyItem(this, windows_core::from_raw_borrowed(&psiitem), windows_core::from_raw_borrowed(&psidestinationfolder), core::mem::transmute(&pszcopyname), windows_core::from_raw_borrowed(&pfopsitem)).into() } - unsafe extern "system" fn CopyItems(this: *mut core::ffi::c_void, punkitems: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn CopyItems(this: *mut core::ffi::c_void, punkitems: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::CopyItems(this, windows_core::from_raw_borrowed(&punkitems), windows_core::from_raw_borrowed(&psidestinationfolder)).into() } - unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void, pfopsitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn DeleteItem(this: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void, pfopsitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::DeleteItem(this, windows_core::from_raw_borrowed(&psiitem), windows_core::from_raw_borrowed(&pfopsitem)).into() } - unsafe extern "system" fn DeleteItems(this: *mut core::ffi::c_void, punkitems: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn DeleteItems(this: *mut core::ffi::c_void, punkitems: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::DeleteItems(this, windows_core::from_raw_borrowed(&punkitems)).into() } - unsafe extern "system" fn NewItem(this: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, dwfileattributes: u32, pszname: windows_core::PCWSTR, psztemplatename: windows_core::PCWSTR, pfopsitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn NewItem(this: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, dwfileattributes: u32, pszname: windows_core::PCWSTR, psztemplatename: windows_core::PCWSTR, pfopsitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::NewItem(this, windows_core::from_raw_borrowed(&psidestinationfolder), core::mem::transmute_copy(&dwfileattributes), core::mem::transmute(&pszname), core::mem::transmute(&psztemplatename), windows_core::from_raw_borrowed(&pfopsitem)).into() } - unsafe extern "system" fn PerformOperations(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn PerformOperations(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation_Impl::PerformOperations(this).into() } - unsafe extern "system" fn GetAnyOperationsAborted(this: *mut core::ffi::c_void, pfanyoperationsaborted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFileOperation_Impl, - { + unsafe extern "system" fn GetAnyOperationsAborted(this: *mut core::ffi::c_void, pfanyoperationsaborted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileOperation_Impl::GetAnyOperationsAborted(this) { Ok(ok__) => { @@ -9427,14 +7048,8 @@ pub trait IFileOperation2_Impl: Sized + IFileOperation_Impl { impl windows_core::RuntimeName for IFileOperation2 {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IFileOperation2_Vtbl { - pub const fn new() -> IFileOperation2_Vtbl - where - Identity: IFileOperation2_Impl, - { - unsafe extern "system" fn SetOperationFlags2(this: *mut core::ffi::c_void, operationflags2: FILE_OPERATION_FLAGS2) -> windows_core::HRESULT - where - Identity: IFileOperation2_Impl, - { + pub const fn new() -> IFileOperation2_Vtbl { + unsafe extern "system" fn SetOperationFlags2(this: *mut core::ffi::c_void, operationflags2: FILE_OPERATION_FLAGS2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperation2_Impl::SetOperationFlags2(this, core::mem::transmute_copy(&operationflags2)).into() } @@ -9444,7 +7059,7 @@ impl IFileOperation2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IFileOperationProgressSink_Impl: Sized { +pub trait IFileOperationProgressSink_Impl: Sized + windows_core::IUnknownImpl { fn StartOperations(&self) -> windows_core::Result<()>; fn FinishOperations(&self, hrresult: windows_core::HRESULT) -> windows_core::Result<()>; fn PreRenameItem(&self, dwflags: u32, psiitem: Option<&IShellItem>, psznewname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -9464,119 +7079,68 @@ pub trait IFileOperationProgressSink_Impl: Sized { } impl windows_core::RuntimeName for IFileOperationProgressSink {} impl IFileOperationProgressSink_Vtbl { - pub const fn new() -> IFileOperationProgressSink_Vtbl - where - Identity: IFileOperationProgressSink_Impl, - { - unsafe extern "system" fn StartOperations(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + pub const fn new() -> IFileOperationProgressSink_Vtbl { + unsafe extern "system" fn StartOperations(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::StartOperations(this).into() } - unsafe extern "system" fn FinishOperations(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn FinishOperations(this: *mut core::ffi::c_void, hrresult: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::FinishOperations(this, core::mem::transmute_copy(&hrresult)).into() } - unsafe extern "system" fn PreRenameItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PreRenameItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PreRenameItem(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psiitem), core::mem::transmute(&psznewname)).into() } - unsafe extern "system" fn PostRenameItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, hrrename: windows_core::HRESULT, psinewlycreated: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PostRenameItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, hrrename: windows_core::HRESULT, psinewlycreated: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PostRenameItem(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psiitem), core::mem::transmute(&psznewname), core::mem::transmute_copy(&hrrename), windows_core::from_raw_borrowed(&psinewlycreated)).into() } - unsafe extern "system" fn PreMoveItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PreMoveItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PreMoveItem(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psiitem), windows_core::from_raw_borrowed(&psidestinationfolder), core::mem::transmute(&psznewname)).into() } - unsafe extern "system" fn PostMoveItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, hrmove: windows_core::HRESULT, psinewlycreated: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PostMoveItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, hrmove: windows_core::HRESULT, psinewlycreated: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PostMoveItem(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psiitem), windows_core::from_raw_borrowed(&psidestinationfolder), core::mem::transmute(&psznewname), core::mem::transmute_copy(&hrmove), windows_core::from_raw_borrowed(&psinewlycreated)).into() } - unsafe extern "system" fn PreCopyItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PreCopyItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PreCopyItem(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psiitem), windows_core::from_raw_borrowed(&psidestinationfolder), core::mem::transmute(&psznewname)).into() } - unsafe extern "system" fn PostCopyItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, hrcopy: windows_core::HRESULT, psinewlycreated: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PostCopyItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, hrcopy: windows_core::HRESULT, psinewlycreated: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PostCopyItem(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psiitem), windows_core::from_raw_borrowed(&psidestinationfolder), core::mem::transmute(&psznewname), core::mem::transmute_copy(&hrcopy), windows_core::from_raw_borrowed(&psinewlycreated)).into() } - unsafe extern "system" fn PreDeleteItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PreDeleteItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PreDeleteItem(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psiitem)).into() } - unsafe extern "system" fn PostDeleteItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, hrdelete: windows_core::HRESULT, psinewlycreated: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PostDeleteItem(this: *mut core::ffi::c_void, dwflags: u32, psiitem: *mut core::ffi::c_void, hrdelete: windows_core::HRESULT, psinewlycreated: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PostDeleteItem(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psiitem), core::mem::transmute_copy(&hrdelete), windows_core::from_raw_borrowed(&psinewlycreated)).into() } - unsafe extern "system" fn PreNewItem(this: *mut core::ffi::c_void, dwflags: u32, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PreNewItem(this: *mut core::ffi::c_void, dwflags: u32, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PreNewItem(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psidestinationfolder), core::mem::transmute(&psznewname)).into() } - unsafe extern "system" fn PostNewItem(this: *mut core::ffi::c_void, dwflags: u32, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, psztemplatename: windows_core::PCWSTR, dwfileattributes: u32, hrnew: windows_core::HRESULT, psinewitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PostNewItem(this: *mut core::ffi::c_void, dwflags: u32, psidestinationfolder: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, psztemplatename: windows_core::PCWSTR, dwfileattributes: u32, hrnew: windows_core::HRESULT, psinewitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PostNewItem(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&psidestinationfolder), core::mem::transmute(&psznewname), core::mem::transmute(&psztemplatename), core::mem::transmute_copy(&dwfileattributes), core::mem::transmute_copy(&hrnew), windows_core::from_raw_borrowed(&psinewitem)).into() } - unsafe extern "system" fn UpdateProgress(this: *mut core::ffi::c_void, iworktotal: u32, iworksofar: u32) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn UpdateProgress(this: *mut core::ffi::c_void, iworktotal: u32, iworksofar: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::UpdateProgress(this, core::mem::transmute_copy(&iworktotal), core::mem::transmute_copy(&iworksofar)).into() } - unsafe extern "system" fn ResetTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn ResetTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::ResetTimer(this).into() } - unsafe extern "system" fn PauseTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn PauseTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::PauseTimer(this).into() } - unsafe extern "system" fn ResumeTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileOperationProgressSink_Impl, - { + unsafe extern "system" fn ResumeTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileOperationProgressSink_Impl::ResumeTimer(this).into() } @@ -9616,35 +7180,20 @@ pub trait IFileSaveDialog_Impl: Sized + IFileDialog_Impl { impl windows_core::RuntimeName for IFileSaveDialog {} #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IFileSaveDialog_Vtbl { - pub const fn new() -> IFileSaveDialog_Vtbl - where - Identity: IFileSaveDialog_Impl, - { - unsafe extern "system" fn SetSaveAsItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSaveDialog_Impl, - { + pub const fn new() -> IFileSaveDialog_Vtbl { + unsafe extern "system" fn SetSaveAsItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSaveDialog_Impl::SetSaveAsItem(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, pstore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSaveDialog_Impl, - { + unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, pstore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSaveDialog_Impl::SetProperties(this, windows_core::from_raw_borrowed(&pstore)).into() } - unsafe extern "system" fn SetCollectedProperties(this: *mut core::ffi::c_void, plist: *mut core::ffi::c_void, fappenddefault: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFileSaveDialog_Impl, - { + unsafe extern "system" fn SetCollectedProperties(this: *mut core::ffi::c_void, plist: *mut core::ffi::c_void, fappenddefault: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSaveDialog_Impl::SetCollectedProperties(this, windows_core::from_raw_borrowed(&plist), core::mem::transmute_copy(&fappenddefault)).into() } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, ppstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSaveDialog_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, ppstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSaveDialog_Impl::GetProperties(this) { Ok(ok__) => { @@ -9654,10 +7203,7 @@ impl IFileSaveDialog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplyProperties(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pstore: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSaveDialog_Impl, - { + unsafe extern "system" fn ApplyProperties(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pstore: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSaveDialog_Impl::ApplyProperties(this, windows_core::from_raw_borrowed(&psi), windows_core::from_raw_borrowed(&pstore), core::mem::transmute_copy(&hwnd), windows_core::from_raw_borrowed(&psink)).into() } @@ -9686,28 +7232,16 @@ pub trait IFileSearchBand_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IFileSearchBand {} #[cfg(feature = "Win32_System_Com")] impl IFileSearchBand_Vtbl { - pub const fn new() -> IFileSearchBand_Vtbl - where - Identity: IFileSearchBand_Impl, - { - unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFileSearchBand_Impl, - { + pub const fn new() -> IFileSearchBand_Vtbl { + unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSearchBand_Impl::SetFocus(this).into() } - unsafe extern "system" fn SetSearchParameters(this: *mut core::ffi::c_void, pbstrsearchid: *const core::mem::MaybeUninit, bnavtoresults: super::super::Foundation::VARIANT_BOOL, pvarscope: *const core::mem::MaybeUninit, pvarqueryfile: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSearchBand_Impl, - { + unsafe extern "system" fn SetSearchParameters(this: *mut core::ffi::c_void, pbstrsearchid: *const core::mem::MaybeUninit, bnavtoresults: super::super::Foundation::VARIANT_BOOL, pvarscope: *const core::mem::MaybeUninit, pvarqueryfile: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSearchBand_Impl::SetSearchParameters(this, 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(this: *mut core::ffi::c_void, pbstrsearchid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSearchBand_Impl, - { + unsafe extern "system" fn SearchID(this: *mut core::ffi::c_void, pbstrsearchid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSearchBand_Impl::SearchID(this) { Ok(ok__) => { @@ -9717,10 +7251,7 @@ impl IFileSearchBand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, pvarscope: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSearchBand_Impl, - { + unsafe extern "system" fn Scope(this: *mut core::ffi::c_void, pvarscope: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSearchBand_Impl::Scope(this) { Ok(ok__) => { @@ -9730,10 +7261,7 @@ impl IFileSearchBand_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryFile(this: *mut core::ffi::c_void, pvarfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFileSearchBand_Impl, - { + unsafe extern "system" fn QueryFile(this: *mut core::ffi::c_void, pvarfile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSearchBand_Impl::QueryFile(this) { Ok(ok__) => { @@ -9757,7 +7285,7 @@ impl IFileSearchBand_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IFileSyncMergeHandler_Impl: Sized { +pub trait IFileSyncMergeHandler_Impl: Sized + windows_core::IUnknownImpl { fn Merge(&self, localfilepath: &windows_core::PCWSTR, serverfilepath: &windows_core::PCWSTR) -> windows_core::Result; fn ShowResolveConflictUIAsync(&self, localfilepath: &windows_core::PCWSTR, monitortodisplayon: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result<()>; } @@ -9765,14 +7293,8 @@ pub trait IFileSyncMergeHandler_Impl: Sized { impl windows_core::RuntimeName for IFileSyncMergeHandler {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IFileSyncMergeHandler_Vtbl { - pub const fn new() -> IFileSyncMergeHandler_Vtbl - where - Identity: IFileSyncMergeHandler_Impl, - { - unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, localfilepath: windows_core::PCWSTR, serverfilepath: windows_core::PCWSTR, updatestatus: *mut MERGE_UPDATE_STATUS) -> windows_core::HRESULT - where - Identity: IFileSyncMergeHandler_Impl, - { + pub const fn new() -> IFileSyncMergeHandler_Vtbl { + unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, localfilepath: windows_core::PCWSTR, serverfilepath: windows_core::PCWSTR, updatestatus: *mut MERGE_UPDATE_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSyncMergeHandler_Impl::Merge(this, core::mem::transmute(&localfilepath), core::mem::transmute(&serverfilepath)) { Ok(ok__) => { @@ -9782,10 +7304,7 @@ impl IFileSyncMergeHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShowResolveConflictUIAsync(this: *mut core::ffi::c_void, localfilepath: windows_core::PCWSTR, monitortodisplayon: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT - where - Identity: IFileSyncMergeHandler_Impl, - { + unsafe extern "system" fn ShowResolveConflictUIAsync(this: *mut core::ffi::c_void, localfilepath: windows_core::PCWSTR, monitortodisplayon: super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSyncMergeHandler_Impl::ShowResolveConflictUIAsync(this, core::mem::transmute(&localfilepath), core::mem::transmute_copy(&monitortodisplayon)).into() } @@ -9800,7 +7319,7 @@ impl IFileSyncMergeHandler_Vtbl { } } #[cfg(feature = "Win32_Storage_FileSystem")] -pub trait IFileSystemBindData_Impl: Sized { +pub trait IFileSystemBindData_Impl: Sized + windows_core::IUnknownImpl { fn SetFindData(&self, pfd: *const super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> windows_core::Result<()>; fn GetFindData(&self, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> windows_core::Result<()>; } @@ -9808,21 +7327,12 @@ pub trait IFileSystemBindData_Impl: Sized { impl windows_core::RuntimeName for IFileSystemBindData {} #[cfg(feature = "Win32_Storage_FileSystem")] impl IFileSystemBindData_Vtbl { - pub const fn new() -> IFileSystemBindData_Vtbl - where - Identity: IFileSystemBindData_Impl, - { - unsafe extern "system" fn SetFindData(this: *mut core::ffi::c_void, pfd: *const super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> windows_core::HRESULT - where - Identity: IFileSystemBindData_Impl, - { + pub const fn new() -> IFileSystemBindData_Vtbl { + unsafe extern "system" fn SetFindData(this: *mut core::ffi::c_void, pfd: *const super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemBindData_Impl::SetFindData(this, core::mem::transmute_copy(&pfd)).into() } - unsafe extern "system" fn GetFindData(this: *mut core::ffi::c_void, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> windows_core::HRESULT - where - Identity: IFileSystemBindData_Impl, - { + unsafe extern "system" fn GetFindData(this: *mut core::ffi::c_void, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemBindData_Impl::GetFindData(this, core::mem::transmute_copy(&pfd)).into() } @@ -9847,21 +7357,12 @@ pub trait IFileSystemBindData2_Impl: Sized + IFileSystemBindData_Impl { impl windows_core::RuntimeName for IFileSystemBindData2 {} #[cfg(feature = "Win32_Storage_FileSystem")] impl IFileSystemBindData2_Vtbl { - pub const fn new() -> IFileSystemBindData2_Vtbl - where - Identity: IFileSystemBindData2_Impl, - { - unsafe extern "system" fn SetFileID(this: *mut core::ffi::c_void, lifileid: i64) -> windows_core::HRESULT - where - Identity: IFileSystemBindData2_Impl, - { + pub const fn new() -> IFileSystemBindData2_Vtbl { + unsafe extern "system" fn SetFileID(this: *mut core::ffi::c_void, lifileid: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemBindData2_Impl::SetFileID(this, core::mem::transmute_copy(&lifileid)).into() } - unsafe extern "system" fn GetFileID(this: *mut core::ffi::c_void, plifileid: *mut i64) -> windows_core::HRESULT - where - Identity: IFileSystemBindData2_Impl, - { + unsafe extern "system" fn GetFileID(this: *mut core::ffi::c_void, plifileid: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemBindData2_Impl::GetFileID(this) { Ok(ok__) => { @@ -9871,17 +7372,11 @@ impl IFileSystemBindData2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetJunctionCLSID(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFileSystemBindData2_Impl, - { + unsafe extern "system" fn SetJunctionCLSID(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSystemBindData2_Impl::SetJunctionCLSID(this, core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn GetJunctionCLSID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IFileSystemBindData2_Impl, - { + unsafe extern "system" fn GetJunctionCLSID(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileSystemBindData2_Impl::GetJunctionCLSID(this) { Ok(ok__) => { @@ -9903,7 +7398,7 @@ impl IFileSystemBindData2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IFolderBandPriv_Impl: Sized { +pub trait IFolderBandPriv_Impl: Sized + windows_core::IUnknownImpl { fn SetCascade(&self, fcascade: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn SetAccelerators(&self, faccelerators: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn SetNoIcons(&self, fnoicons: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -9911,35 +7406,20 @@ pub trait IFolderBandPriv_Impl: Sized { } impl windows_core::RuntimeName for IFolderBandPriv {} impl IFolderBandPriv_Vtbl { - pub const fn new() -> IFolderBandPriv_Vtbl - where - Identity: IFolderBandPriv_Impl, - { - unsafe extern "system" fn SetCascade(this: *mut core::ffi::c_void, fcascade: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFolderBandPriv_Impl, - { + pub const fn new() -> IFolderBandPriv_Vtbl { + unsafe extern "system" fn SetCascade(this: *mut core::ffi::c_void, fcascade: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderBandPriv_Impl::SetCascade(this, core::mem::transmute_copy(&fcascade)).into() } - unsafe extern "system" fn SetAccelerators(this: *mut core::ffi::c_void, faccelerators: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFolderBandPriv_Impl, - { + unsafe extern "system" fn SetAccelerators(this: *mut core::ffi::c_void, faccelerators: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderBandPriv_Impl::SetAccelerators(this, core::mem::transmute_copy(&faccelerators)).into() } - unsafe extern "system" fn SetNoIcons(this: *mut core::ffi::c_void, fnoicons: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFolderBandPriv_Impl, - { + unsafe extern "system" fn SetNoIcons(this: *mut core::ffi::c_void, fnoicons: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderBandPriv_Impl::SetNoIcons(this, core::mem::transmute_copy(&fnoicons)).into() } - unsafe extern "system" fn SetNoText(this: *mut core::ffi::c_void, fnotext: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFolderBandPriv_Impl, - { + unsafe extern "system" fn SetNoText(this: *mut core::ffi::c_void, fnotext: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderBandPriv_Impl::SetNoText(this, core::mem::transmute_copy(&fnotext)).into() } @@ -9956,7 +7436,7 @@ impl IFolderBandPriv_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IFolderFilter_Impl: Sized { +pub trait IFolderFilter_Impl: Sized + windows_core::IUnknownImpl { fn ShouldShow(&self, psf: Option<&IShellFolder>, pidlfolder: *const Common::ITEMIDLIST, pidlitem: *const Common::ITEMIDLIST) -> windows_core::Result<()>; fn GetEnumFlags(&self, psf: Option<&IShellFolder>, pidlfolder: *const Common::ITEMIDLIST, phwnd: *mut super::super::Foundation::HWND, pgrfflags: *mut u32) -> windows_core::Result<()>; } @@ -9964,21 +7444,12 @@ pub trait IFolderFilter_Impl: Sized { impl windows_core::RuntimeName for IFolderFilter {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IFolderFilter_Vtbl { - pub const fn new() -> IFolderFilter_Vtbl - where - Identity: IFolderFilter_Impl, - { - unsafe extern "system" fn ShouldShow(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, pidlitem: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IFolderFilter_Impl, - { + pub const fn new() -> IFolderFilter_Vtbl { + unsafe extern "system" fn ShouldShow(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, pidlitem: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderFilter_Impl::ShouldShow(this, windows_core::from_raw_borrowed(&psf), core::mem::transmute_copy(&pidlfolder), core::mem::transmute_copy(&pidlitem)).into() } - unsafe extern "system" fn GetEnumFlags(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, phwnd: *mut super::super::Foundation::HWND, pgrfflags: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderFilter_Impl, - { + unsafe extern "system" fn GetEnumFlags(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, phwnd: *mut super::super::Foundation::HWND, pgrfflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderFilter_Impl::GetEnumFlags(this, windows_core::from_raw_borrowed(&psf), core::mem::transmute_copy(&pidlfolder), core::mem::transmute_copy(&phwnd), core::mem::transmute_copy(&pgrfflags)).into() } @@ -9992,19 +7463,13 @@ impl IFolderFilter_Vtbl { iid == &::IID } } -pub trait IFolderFilterSite_Impl: Sized { +pub trait IFolderFilterSite_Impl: Sized + windows_core::IUnknownImpl { fn SetFilter(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFolderFilterSite {} impl IFolderFilterSite_Vtbl { - pub const fn new() -> IFolderFilterSite_Vtbl - where - Identity: IFolderFilterSite_Impl, - { - unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderFilterSite_Impl, - { + pub const fn new() -> IFolderFilterSite_Vtbl { + unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderFilterSite_Impl::SetFilter(this, windows_core::from_raw_borrowed(&punk)).into() } @@ -10015,7 +7480,7 @@ impl IFolderFilterSite_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IFolderView_Impl: Sized { +pub trait IFolderView_Impl: Sized + windows_core::IUnknownImpl { fn GetCurrentViewMode(&self) -> windows_core::Result; fn SetCurrentViewMode(&self, viewmode: u32) -> windows_core::Result<()>; fn GetFolder(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -10035,14 +7500,8 @@ pub trait IFolderView_Impl: Sized { impl windows_core::RuntimeName for IFolderView {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IFolderView_Vtbl { - pub const fn new() -> IFolderView_Vtbl - where - Identity: IFolderView_Impl, - { - unsafe extern "system" fn GetCurrentViewMode(this: *mut core::ffi::c_void, pviewmode: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + pub const fn new() -> IFolderView_Vtbl { + unsafe extern "system" fn GetCurrentViewMode(this: *mut core::ffi::c_void, pviewmode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView_Impl::GetCurrentViewMode(this) { Ok(ok__) => { @@ -10052,24 +7511,15 @@ impl IFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentViewMode(this: *mut core::ffi::c_void, viewmode: u32) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn SetCurrentViewMode(this: *mut core::ffi::c_void, viewmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView_Impl::SetCurrentViewMode(this, core::mem::transmute_copy(&viewmode)).into() } - unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView_Impl::GetFolder(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, iitemindex: i32, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, iitemindex: i32, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView_Impl::Item(this, core::mem::transmute_copy(&iitemindex)) { Ok(ok__) => { @@ -10079,10 +7529,7 @@ impl IFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ItemCount(this: *mut core::ffi::c_void, uflags: u32, pcitems: *mut i32) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn ItemCount(this: *mut core::ffi::c_void, uflags: u32, pcitems: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView_Impl::ItemCount(this, core::mem::transmute(&uflags)) { Ok(ok__) => { @@ -10092,17 +7539,11 @@ impl IFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Items(this: *mut core::ffi::c_void, uflags: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn Items(this: *mut core::ffi::c_void, uflags: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView_Impl::Items(this, core::mem::transmute(&uflags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetSelectionMarkedItem(this: *mut core::ffi::c_void, piitem: *mut i32) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn GetSelectionMarkedItem(this: *mut core::ffi::c_void, piitem: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView_Impl::GetSelectionMarkedItem(this) { Ok(ok__) => { @@ -10112,10 +7553,7 @@ impl IFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFocusedItem(this: *mut core::ffi::c_void, piitem: *mut i32) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn GetFocusedItem(this: *mut core::ffi::c_void, piitem: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView_Impl::GetFocusedItem(this) { Ok(ok__) => { @@ -10125,10 +7563,7 @@ impl IFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemPosition(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppt: *mut super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn GetItemPosition(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppt: *mut super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView_Impl::GetItemPosition(this, core::mem::transmute_copy(&pidl)) { Ok(ok__) => { @@ -10138,17 +7573,11 @@ impl IFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSpacing(this: *mut core::ffi::c_void, ppt: *mut super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn GetSpacing(this: *mut core::ffi::c_void, ppt: *mut super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView_Impl::GetSpacing(this, core::mem::transmute_copy(&ppt)).into() } - unsafe extern "system" fn GetDefaultSpacing(this: *mut core::ffi::c_void, ppt: *mut super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn GetDefaultSpacing(this: *mut core::ffi::c_void, ppt: *mut super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView_Impl::GetDefaultSpacing(this) { Ok(ok__) => { @@ -10158,24 +7587,15 @@ impl IFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAutoArrange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn GetAutoArrange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView_Impl::GetAutoArrange(this).into() } - unsafe extern "system" fn SelectItem(this: *mut core::ffi::c_void, iitem: i32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn SelectItem(this: *mut core::ffi::c_void, iitem: i32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView_Impl::SelectItem(this, core::mem::transmute_copy(&iitem), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SelectAndPositionItems(this: *mut core::ffi::c_void, cidl: u32, apidl: *const *const Common::ITEMIDLIST, apt: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::HRESULT - where - Identity: IFolderView_Impl, - { + unsafe extern "system" fn SelectAndPositionItems(this: *mut core::ffi::c_void, cidl: u32, apidl: *const *const Common::ITEMIDLIST, apt: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView_Impl::SelectAndPositionItems(this, core::mem::transmute_copy(&cidl), core::mem::transmute_copy(&apidl), core::mem::transmute_copy(&apt), core::mem::transmute_copy(&dwflags)).into() } @@ -10233,35 +7653,20 @@ pub trait IFolderView2_Impl: Sized + IFolderView_Impl { impl windows_core::RuntimeName for IFolderView2 {} #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IFolderView2_Vtbl { - pub const fn new() -> IFolderView2_Vtbl - where - Identity: IFolderView2_Impl, - { - unsafe extern "system" fn SetGroupBy(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, fascending: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + pub const fn new() -> IFolderView2_Vtbl { + unsafe extern "system" fn SetGroupBy(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, fascending: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetGroupBy(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&fascending)).into() } - unsafe extern "system" fn GetGroupBy(this: *mut core::ffi::c_void, pkey: *mut PropertiesSystem::PROPERTYKEY, pfascending: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetGroupBy(this: *mut core::ffi::c_void, pkey: *mut PropertiesSystem::PROPERTYKEY, pfascending: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::GetGroupBy(this, core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&pfascending)).into() } - unsafe extern "system" fn SetViewProperty(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, propkey: *const PropertiesSystem::PROPERTYKEY, propvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn SetViewProperty(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, propkey: *const PropertiesSystem::PROPERTYKEY, propvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetViewProperty(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&propkey), core::mem::transmute_copy(&propvar)).into() } - unsafe extern "system" fn GetViewProperty(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, propkey: *const PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetViewProperty(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, propkey: *const PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView2_Impl::GetViewProperty(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&propkey)) { Ok(ok__) => { @@ -10271,38 +7676,23 @@ impl IFolderView2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTileViewProperties(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pszproplist: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn SetTileViewProperties(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pszproplist: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetTileViewProperties(this, core::mem::transmute_copy(&pidl), core::mem::transmute(&pszproplist)).into() } - unsafe extern "system" fn SetExtendedTileViewProperties(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pszproplist: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn SetExtendedTileViewProperties(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pszproplist: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetExtendedTileViewProperties(this, core::mem::transmute_copy(&pidl), core::mem::transmute(&pszproplist)).into() } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, itype: FVTEXTTYPE, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, itype: FVTEXTTYPE, pwsztext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetText(this, core::mem::transmute_copy(&itype), core::mem::transmute(&pwsztext)).into() } - unsafe extern "system" fn SetCurrentFolderFlags(this: *mut core::ffi::c_void, dwmask: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn SetCurrentFolderFlags(this: *mut core::ffi::c_void, dwmask: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetCurrentFolderFlags(this, core::mem::transmute_copy(&dwmask), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetCurrentFolderFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetCurrentFolderFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView2_Impl::GetCurrentFolderFlags(this) { Ok(ok__) => { @@ -10312,10 +7702,7 @@ impl IFolderView2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSortColumnCount(this: *mut core::ffi::c_void, pccolumns: *mut i32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetSortColumnCount(this: *mut core::ffi::c_void, pccolumns: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView2_Impl::GetSortColumnCount(this) { Ok(ok__) => { @@ -10325,31 +7712,19 @@ impl IFolderView2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSortColumns(this: *mut core::ffi::c_void, rgsortcolumns: *const SORTCOLUMN, ccolumns: i32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn SetSortColumns(this: *mut core::ffi::c_void, rgsortcolumns: *const SORTCOLUMN, ccolumns: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetSortColumns(this, core::mem::transmute_copy(&rgsortcolumns), core::mem::transmute_copy(&ccolumns)).into() } - unsafe extern "system" fn GetSortColumns(this: *mut core::ffi::c_void, rgsortcolumns: *mut SORTCOLUMN, ccolumns: i32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetSortColumns(this: *mut core::ffi::c_void, rgsortcolumns: *mut SORTCOLUMN, ccolumns: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::GetSortColumns(this, core::mem::transmute_copy(&rgsortcolumns), core::mem::transmute_copy(&ccolumns)).into() } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, iitem: i32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, iitem: i32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::GetItem(this, core::mem::transmute_copy(&iitem), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetVisibleItem(this: *mut core::ffi::c_void, istart: i32, fprevious: super::super::Foundation::BOOL, piitem: *mut i32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetVisibleItem(this: *mut core::ffi::c_void, istart: i32, fprevious: super::super::Foundation::BOOL, piitem: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView2_Impl::GetVisibleItem(this, core::mem::transmute_copy(&istart), core::mem::transmute_copy(&fprevious)) { Ok(ok__) => { @@ -10359,10 +7734,7 @@ impl IFolderView2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectedItem(this: *mut core::ffi::c_void, istart: i32, piitem: *mut i32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetSelectedItem(this: *mut core::ffi::c_void, istart: i32, piitem: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView2_Impl::GetSelectedItem(this, core::mem::transmute_copy(&istart)) { Ok(ok__) => { @@ -10372,10 +7744,7 @@ impl IFolderView2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, fnoneimpliesfolder: super::super::Foundation::BOOL, ppsia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, fnoneimpliesfolder: super::super::Foundation::BOOL, ppsia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView2_Impl::GetSelection(this, core::mem::transmute_copy(&fnoneimpliesfolder)) { Ok(ok__) => { @@ -10385,10 +7754,7 @@ impl IFolderView2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectionState(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetSelectionState(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView2_Impl::GetSelectionState(this, core::mem::transmute_copy(&pidl)) { Ok(ok__) => { @@ -10398,38 +7764,23 @@ impl IFolderView2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InvokeVerbOnSelection(this: *mut core::ffi::c_void, pszverb: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn InvokeVerbOnSelection(this: *mut core::ffi::c_void, pszverb: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::InvokeVerbOnSelection(this, core::mem::transmute(&pszverb)).into() } - unsafe extern "system" fn SetViewModeAndIconSize(this: *mut core::ffi::c_void, uviewmode: FOLDERVIEWMODE, iimagesize: i32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn SetViewModeAndIconSize(this: *mut core::ffi::c_void, uviewmode: FOLDERVIEWMODE, iimagesize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetViewModeAndIconSize(this, core::mem::transmute_copy(&uviewmode), core::mem::transmute_copy(&iimagesize)).into() } - unsafe extern "system" fn GetViewModeAndIconSize(this: *mut core::ffi::c_void, puviewmode: *mut FOLDERVIEWMODE, piimagesize: *mut i32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetViewModeAndIconSize(this: *mut core::ffi::c_void, puviewmode: *mut FOLDERVIEWMODE, piimagesize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::GetViewModeAndIconSize(this, core::mem::transmute_copy(&puviewmode), core::mem::transmute_copy(&piimagesize)).into() } - unsafe extern "system" fn SetGroupSubsetCount(this: *mut core::ffi::c_void, cvisiblerows: u32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn SetGroupSubsetCount(this: *mut core::ffi::c_void, cvisiblerows: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetGroupSubsetCount(this, core::mem::transmute_copy(&cvisiblerows)).into() } - unsafe extern "system" fn GetGroupSubsetCount(this: *mut core::ffi::c_void, pcvisiblerows: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn GetGroupSubsetCount(this: *mut core::ffi::c_void, pcvisiblerows: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView2_Impl::GetGroupSubsetCount(this) { Ok(ok__) => { @@ -10439,24 +7790,15 @@ impl IFolderView2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRedraw(this: *mut core::ffi::c_void, fredrawon: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn SetRedraw(this: *mut core::ffi::c_void, fredrawon: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetRedraw(this, core::mem::transmute_copy(&fredrawon)).into() } - unsafe extern "system" fn IsMoveInSameFolder(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn IsMoveInSameFolder(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::IsMoveInSameFolder(this).into() } - unsafe extern "system" fn DoRename(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderView2_Impl, - { + unsafe extern "system" fn DoRename(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::DoRename(this).into() } @@ -10494,21 +7836,15 @@ impl IFolderView2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IFolderViewHost_Impl: Sized { +pub trait IFolderViewHost_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hwndparent: super::super::Foundation::HWND, pdo: Option<&super::super::System::Com::IDataObject>, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IFolderViewHost {} #[cfg(feature = "Win32_System_Com")] impl IFolderViewHost_Vtbl { - pub const fn new() -> IFolderViewHost_Vtbl - where - Identity: IFolderViewHost_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, pdo: *mut core::ffi::c_void, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IFolderViewHost_Impl, - { + pub const fn new() -> IFolderViewHost_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, pdo: *mut core::ffi::c_void, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderViewHost_Impl::Initialize(this, core::mem::transmute_copy(&hwndparent), windows_core::from_raw_borrowed(&pdo), core::mem::transmute_copy(&prc)).into() } @@ -10526,14 +7862,8 @@ pub trait IFolderViewOC_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IFolderViewOC {} #[cfg(feature = "Win32_System_Com")] impl IFolderViewOC_Vtbl { - pub const fn new() -> IFolderViewOC_Vtbl - where - Identity: IFolderViewOC_Impl, - { - unsafe extern "system" fn SetFolderView(this: *mut core::ffi::c_void, pdisp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderViewOC_Impl, - { + pub const fn new() -> IFolderViewOC_Vtbl { + unsafe extern "system" fn SetFolderView(this: *mut core::ffi::c_void, pdisp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderViewOC_Impl::SetFolderView(this, windows_core::from_raw_borrowed(&pdisp)).into() } @@ -10543,27 +7873,18 @@ impl IFolderViewOC_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IFolderViewOptions_Impl: Sized { +pub trait IFolderViewOptions_Impl: Sized + windows_core::IUnknownImpl { fn SetFolderViewOptions(&self, fvomask: FOLDERVIEWOPTIONS, fvoflags: FOLDERVIEWOPTIONS) -> windows_core::Result<()>; fn GetFolderViewOptions(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IFolderViewOptions {} impl IFolderViewOptions_Vtbl { - pub const fn new() -> IFolderViewOptions_Vtbl - where - Identity: IFolderViewOptions_Impl, - { - unsafe extern "system" fn SetFolderViewOptions(this: *mut core::ffi::c_void, fvomask: FOLDERVIEWOPTIONS, fvoflags: FOLDERVIEWOPTIONS) -> windows_core::HRESULT - where - Identity: IFolderViewOptions_Impl, - { + pub const fn new() -> IFolderViewOptions_Vtbl { + unsafe extern "system" fn SetFolderViewOptions(this: *mut core::ffi::c_void, fvomask: FOLDERVIEWOPTIONS, fvoflags: FOLDERVIEWOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderViewOptions_Impl::SetFolderViewOptions(this, core::mem::transmute_copy(&fvomask), core::mem::transmute_copy(&fvoflags)).into() } - unsafe extern "system" fn GetFolderViewOptions(this: *mut core::ffi::c_void, pfvoflags: *mut FOLDERVIEWOPTIONS) -> windows_core::HRESULT - where - Identity: IFolderViewOptions_Impl, - { + unsafe extern "system" fn GetFolderViewOptions(this: *mut core::ffi::c_void, pfvoflags: *mut FOLDERVIEWOPTIONS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderViewOptions_Impl::GetFolderViewOptions(this) { Ok(ok__) => { @@ -10584,7 +7905,7 @@ impl IFolderViewOptions_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IFolderViewSettings_Impl: Sized { +pub trait IFolderViewSettings_Impl: Sized + windows_core::IUnknownImpl { fn GetColumnPropertyList(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetGroupByProperty(&self, pkey: *mut PropertiesSystem::PROPERTYKEY, pfgroupascending: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetViewMode(&self) -> windows_core::Result; @@ -10597,28 +7918,16 @@ pub trait IFolderViewSettings_Impl: Sized { impl windows_core::RuntimeName for IFolderViewSettings {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IFolderViewSettings_Vtbl { - pub const fn new() -> IFolderViewSettings_Vtbl - where - Identity: IFolderViewSettings_Impl, - { - unsafe extern "system" fn GetColumnPropertyList(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IFolderViewSettings_Impl, - { + pub const fn new() -> IFolderViewSettings_Vtbl { + unsafe extern "system" fn GetColumnPropertyList(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderViewSettings_Impl::GetColumnPropertyList(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetGroupByProperty(this: *mut core::ffi::c_void, pkey: *mut PropertiesSystem::PROPERTYKEY, pfgroupascending: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFolderViewSettings_Impl, - { + unsafe extern "system" fn GetGroupByProperty(this: *mut core::ffi::c_void, pkey: *mut PropertiesSystem::PROPERTYKEY, pfgroupascending: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderViewSettings_Impl::GetGroupByProperty(this, core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&pfgroupascending)).into() } - unsafe extern "system" fn GetViewMode(this: *mut core::ffi::c_void, plvm: *mut FOLDERLOGICALVIEWMODE) -> windows_core::HRESULT - where - Identity: IFolderViewSettings_Impl, - { + unsafe extern "system" fn GetViewMode(this: *mut core::ffi::c_void, plvm: *mut FOLDERLOGICALVIEWMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderViewSettings_Impl::GetViewMode(this) { Ok(ok__) => { @@ -10628,10 +7937,7 @@ impl IFolderViewSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIconSize(this: *mut core::ffi::c_void, puiconsize: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderViewSettings_Impl, - { + unsafe extern "system" fn GetIconSize(this: *mut core::ffi::c_void, puiconsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderViewSettings_Impl::GetIconSize(this) { Ok(ok__) => { @@ -10641,24 +7947,15 @@ impl IFolderViewSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolderFlags(this: *mut core::ffi::c_void, pfoldermask: *mut FOLDERFLAGS, pfolderflags: *mut FOLDERFLAGS) -> windows_core::HRESULT - where - Identity: IFolderViewSettings_Impl, - { + unsafe extern "system" fn GetFolderFlags(this: *mut core::ffi::c_void, pfoldermask: *mut FOLDERFLAGS, pfolderflags: *mut FOLDERFLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderViewSettings_Impl::GetFolderFlags(this, core::mem::transmute_copy(&pfoldermask), core::mem::transmute_copy(&pfolderflags)).into() } - unsafe extern "system" fn GetSortColumns(this: *mut core::ffi::c_void, rgsortcolumns: *mut SORTCOLUMN, ccolumnsin: u32, pccolumnsout: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderViewSettings_Impl, - { + unsafe extern "system" fn GetSortColumns(this: *mut core::ffi::c_void, rgsortcolumns: *mut SORTCOLUMN, ccolumnsin: u32, pccolumnsout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderViewSettings_Impl::GetSortColumns(this, core::mem::transmute_copy(&rgsortcolumns), core::mem::transmute_copy(&ccolumnsin), core::mem::transmute_copy(&pccolumnsout)).into() } - unsafe extern "system" fn GetGroupSubsetCount(this: *mut core::ffi::c_void, pcvisiblerows: *mut u32) -> windows_core::HRESULT - where - Identity: IFolderViewSettings_Impl, - { + unsafe extern "system" fn GetGroupSubsetCount(this: *mut core::ffi::c_void, pcvisiblerows: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderViewSettings_Impl::GetGroupSubsetCount(this) { Ok(ok__) => { @@ -10683,7 +7980,7 @@ impl IFolderViewSettings_Vtbl { iid == &::IID } } -pub trait IFrameworkInputPane_Impl: Sized { +pub trait IFrameworkInputPane_Impl: Sized + windows_core::IUnknownImpl { fn Advise(&self, pwindow: Option<&windows_core::IUnknown>, phandler: Option<&IFrameworkInputPaneHandler>) -> windows_core::Result; fn AdviseWithHWND(&self, hwnd: super::super::Foundation::HWND, phandler: Option<&IFrameworkInputPaneHandler>) -> windows_core::Result; fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()>; @@ -10691,14 +7988,8 @@ pub trait IFrameworkInputPane_Impl: Sized { } impl windows_core::RuntimeName for IFrameworkInputPane {} impl IFrameworkInputPane_Vtbl { - pub const fn new() -> IFrameworkInputPane_Vtbl - where - Identity: IFrameworkInputPane_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pwindow: *mut core::ffi::c_void, phandler: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IFrameworkInputPane_Impl, - { + pub const fn new() -> IFrameworkInputPane_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, pwindow: *mut core::ffi::c_void, phandler: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFrameworkInputPane_Impl::Advise(this, windows_core::from_raw_borrowed(&pwindow), windows_core::from_raw_borrowed(&phandler)) { Ok(ok__) => { @@ -10708,10 +7999,7 @@ impl IFrameworkInputPane_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AdviseWithHWND(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, phandler: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IFrameworkInputPane_Impl, - { + unsafe extern "system" fn AdviseWithHWND(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, phandler: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFrameworkInputPane_Impl::AdviseWithHWND(this, core::mem::transmute_copy(&hwnd), windows_core::from_raw_borrowed(&phandler)) { Ok(ok__) => { @@ -10721,17 +8009,11 @@ impl IFrameworkInputPane_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IFrameworkInputPane_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrameworkInputPane_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn Location(this: *mut core::ffi::c_void, prcinputpanescreenlocation: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IFrameworkInputPane_Impl, - { + unsafe extern "system" fn Location(this: *mut core::ffi::c_void, prcinputpanescreenlocation: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFrameworkInputPane_Impl::Location(this) { Ok(ok__) => { @@ -10753,27 +8035,18 @@ impl IFrameworkInputPane_Vtbl { iid == &::IID } } -pub trait IFrameworkInputPaneHandler_Impl: Sized { +pub trait IFrameworkInputPaneHandler_Impl: Sized + windows_core::IUnknownImpl { fn Showing(&self, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn Hiding(&self, fensurefocusedelementinview: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IFrameworkInputPaneHandler {} impl IFrameworkInputPaneHandler_Vtbl { - pub const fn new() -> IFrameworkInputPaneHandler_Vtbl - where - Identity: IFrameworkInputPaneHandler_Impl, - { - unsafe extern "system" fn Showing(this: *mut core::ffi::c_void, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFrameworkInputPaneHandler_Impl, - { + pub const fn new() -> IFrameworkInputPaneHandler_Vtbl { + unsafe extern "system" fn Showing(this: *mut core::ffi::c_void, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrameworkInputPaneHandler_Impl::Showing(this, core::mem::transmute_copy(&prcinputpanescreenlocation), core::mem::transmute_copy(&fensurefocusedelementinview)).into() } - unsafe extern "system" fn Hiding(this: *mut core::ffi::c_void, fensurefocusedelementinview: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IFrameworkInputPaneHandler_Impl, - { + unsafe extern "system" fn Hiding(this: *mut core::ffi::c_void, fensurefocusedelementinview: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrameworkInputPaneHandler_Impl::Hiding(this, core::mem::transmute_copy(&fensurefocusedelementinview)).into() } @@ -10783,19 +8056,13 @@ impl IFrameworkInputPaneHandler_Vtbl { iid == &::IID } } -pub trait IGetServiceIds_Impl: Sized { +pub trait IGetServiceIds_Impl: Sized + windows_core::IUnknownImpl { fn GetServiceIds(&self, serviceidcount: *mut u32, serviceids: *mut *mut windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IGetServiceIds {} impl IGetServiceIds_Vtbl { - pub const fn new() -> IGetServiceIds_Vtbl - where - Identity: IGetServiceIds_Impl, - { - unsafe extern "system" fn GetServiceIds(this: *mut core::ffi::c_void, serviceidcount: *mut u32, serviceids: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IGetServiceIds_Impl, - { + pub const fn new() -> IGetServiceIds_Vtbl { + unsafe extern "system" fn GetServiceIds(this: *mut core::ffi::c_void, serviceidcount: *mut u32, serviceids: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetServiceIds_Impl::GetServiceIds(this, core::mem::transmute_copy(&serviceidcount), core::mem::transmute_copy(&serviceids)).into() } @@ -10806,7 +8073,7 @@ impl IGetServiceIds_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IHWEventHandler_Impl: Sized { +pub trait IHWEventHandler_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pszparams: &windows_core::PCWSTR) -> windows_core::Result<()>; fn HandleEvent(&self, pszdeviceid: &windows_core::PCWSTR, pszaltdeviceid: &windows_core::PCWSTR, pszeventtype: &windows_core::PCWSTR) -> windows_core::Result<()>; fn HandleEventWithContent(&self, pszdeviceid: &windows_core::PCWSTR, pszaltdeviceid: &windows_core::PCWSTR, pszeventtype: &windows_core::PCWSTR, pszcontenttypehandler: &windows_core::PCWSTR, pdataobject: Option<&super::super::System::Com::IDataObject>) -> windows_core::Result<()>; @@ -10815,28 +8082,16 @@ pub trait IHWEventHandler_Impl: Sized { impl windows_core::RuntimeName for IHWEventHandler {} #[cfg(feature = "Win32_System_Com")] impl IHWEventHandler_Vtbl { - pub const fn new() -> IHWEventHandler_Vtbl - where - Identity: IHWEventHandler_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszparams: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHWEventHandler_Impl, - { + pub const fn new() -> IHWEventHandler_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszparams: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHWEventHandler_Impl::Initialize(this, core::mem::transmute(&pszparams)).into() } - unsafe extern "system" fn HandleEvent(this: *mut core::ffi::c_void, pszdeviceid: windows_core::PCWSTR, pszaltdeviceid: windows_core::PCWSTR, pszeventtype: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHWEventHandler_Impl, - { + unsafe extern "system" fn HandleEvent(this: *mut core::ffi::c_void, pszdeviceid: windows_core::PCWSTR, pszaltdeviceid: windows_core::PCWSTR, pszeventtype: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHWEventHandler_Impl::HandleEvent(this, core::mem::transmute(&pszdeviceid), core::mem::transmute(&pszaltdeviceid), core::mem::transmute(&pszeventtype)).into() } - unsafe extern "system" fn HandleEventWithContent(this: *mut core::ffi::c_void, pszdeviceid: windows_core::PCWSTR, pszaltdeviceid: windows_core::PCWSTR, pszeventtype: windows_core::PCWSTR, pszcontenttypehandler: windows_core::PCWSTR, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHWEventHandler_Impl, - { + unsafe extern "system" fn HandleEventWithContent(this: *mut core::ffi::c_void, pszdeviceid: windows_core::PCWSTR, pszaltdeviceid: windows_core::PCWSTR, pszeventtype: windows_core::PCWSTR, pszcontenttypehandler: windows_core::PCWSTR, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHWEventHandler_Impl::HandleEventWithContent(this, core::mem::transmute(&pszdeviceid), core::mem::transmute(&pszaltdeviceid), core::mem::transmute(&pszeventtype), core::mem::transmute(&pszcontenttypehandler), windows_core::from_raw_borrowed(&pdataobject)).into() } @@ -10859,14 +8114,8 @@ pub trait IHWEventHandler2_Impl: Sized + IHWEventHandler_Impl { impl windows_core::RuntimeName for IHWEventHandler2 {} #[cfg(feature = "Win32_System_Com")] impl IHWEventHandler2_Vtbl { - pub const fn new() -> IHWEventHandler2_Vtbl - where - Identity: IHWEventHandler2_Impl, - { - unsafe extern "system" fn HandleEventWithHWND(this: *mut core::ffi::c_void, pszdeviceid: windows_core::PCWSTR, pszaltdeviceid: windows_core::PCWSTR, pszeventtype: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IHWEventHandler2_Impl, - { + pub const fn new() -> IHWEventHandler2_Vtbl { + unsafe extern "system" fn HandleEventWithHWND(this: *mut core::ffi::c_void, pszdeviceid: windows_core::PCWSTR, pszaltdeviceid: windows_core::PCWSTR, pszeventtype: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHWEventHandler2_Impl::HandleEventWithHWND(this, core::mem::transmute(&pszdeviceid), core::mem::transmute(&pszaltdeviceid), core::mem::transmute(&pszeventtype), core::mem::transmute_copy(&hwndowner)).into() } @@ -10876,27 +8125,18 @@ impl IHWEventHandler2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IHandlerActivationHost_Impl: Sized { +pub trait IHandlerActivationHost_Impl: Sized + windows_core::IUnknownImpl { fn BeforeCoCreateInstance(&self, clsidhandler: *const windows_core::GUID, itemsbeingactivated: Option<&IShellItemArray>, handlerinfo: Option<&IHandlerInfo>) -> windows_core::Result<()>; fn BeforeCreateProcess(&self, applicationpath: &windows_core::PCWSTR, commandline: &windows_core::PCWSTR, handlerinfo: Option<&IHandlerInfo>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHandlerActivationHost {} impl IHandlerActivationHost_Vtbl { - pub const fn new() -> IHandlerActivationHost_Vtbl - where - Identity: IHandlerActivationHost_Impl, - { - unsafe extern "system" fn BeforeCoCreateInstance(this: *mut core::ffi::c_void, clsidhandler: *const windows_core::GUID, itemsbeingactivated: *mut core::ffi::c_void, handlerinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHandlerActivationHost_Impl, - { + pub const fn new() -> IHandlerActivationHost_Vtbl { + unsafe extern "system" fn BeforeCoCreateInstance(this: *mut core::ffi::c_void, clsidhandler: *const windows_core::GUID, itemsbeingactivated: *mut core::ffi::c_void, handlerinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHandlerActivationHost_Impl::BeforeCoCreateInstance(this, core::mem::transmute_copy(&clsidhandler), windows_core::from_raw_borrowed(&itemsbeingactivated), windows_core::from_raw_borrowed(&handlerinfo)).into() } - unsafe extern "system" fn BeforeCreateProcess(this: *mut core::ffi::c_void, applicationpath: windows_core::PCWSTR, commandline: windows_core::PCWSTR, handlerinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHandlerActivationHost_Impl, - { + unsafe extern "system" fn BeforeCreateProcess(this: *mut core::ffi::c_void, applicationpath: windows_core::PCWSTR, commandline: windows_core::PCWSTR, handlerinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHandlerActivationHost_Impl::BeforeCreateProcess(this, core::mem::transmute(&applicationpath), core::mem::transmute(&commandline), windows_core::from_raw_borrowed(&handlerinfo)).into() } @@ -10910,21 +8150,15 @@ impl IHandlerActivationHost_Vtbl { iid == &::IID } } -pub trait IHandlerInfo_Impl: Sized { +pub trait IHandlerInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetApplicationDisplayName(&self) -> windows_core::Result; fn GetApplicationPublisher(&self) -> windows_core::Result; fn GetApplicationIconReference(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IHandlerInfo {} impl IHandlerInfo_Vtbl { - pub const fn new() -> IHandlerInfo_Vtbl - where - Identity: IHandlerInfo_Impl, - { - unsafe extern "system" fn GetApplicationDisplayName(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHandlerInfo_Impl, - { + pub const fn new() -> IHandlerInfo_Vtbl { + unsafe extern "system" fn GetApplicationDisplayName(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHandlerInfo_Impl::GetApplicationDisplayName(this) { Ok(ok__) => { @@ -10934,10 +8168,7 @@ impl IHandlerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetApplicationPublisher(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHandlerInfo_Impl, - { + unsafe extern "system" fn GetApplicationPublisher(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHandlerInfo_Impl::GetApplicationPublisher(this) { Ok(ok__) => { @@ -10947,10 +8178,7 @@ impl IHandlerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetApplicationIconReference(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHandlerInfo_Impl, - { + unsafe extern "system" fn GetApplicationIconReference(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHandlerInfo_Impl::GetApplicationIconReference(this) { Ok(ok__) => { @@ -10976,14 +8204,8 @@ pub trait IHandlerInfo2_Impl: Sized + IHandlerInfo_Impl { } impl windows_core::RuntimeName for IHandlerInfo2 {} impl IHandlerInfo2_Vtbl { - pub const fn new() -> IHandlerInfo2_Vtbl - where - Identity: IHandlerInfo2_Impl, - { - unsafe extern "system" fn GetApplicationId(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHandlerInfo2_Impl, - { + pub const fn new() -> IHandlerInfo2_Vtbl { + unsafe extern "system" fn GetApplicationId(this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHandlerInfo2_Impl::GetApplicationId(this) { Ok(ok__) => { @@ -11000,7 +8222,7 @@ impl IHandlerInfo2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IHlink_Impl: Sized { +pub trait IHlink_Impl: Sized + windows_core::IUnknownImpl { fn SetHlinkSite(&self, pihlsite: Option<&IHlinkSite>, dwsitedata: u32) -> windows_core::Result<()>; fn GetHlinkSite(&self, ppihlsite: *mut Option, pdwsitedata: *mut u32) -> windows_core::Result<()>; fn SetMonikerReference(&self, grfhlsetf: u32, pimktarget: Option<&super::super::System::Com::IMoniker>, pwzlocation: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -11020,63 +8242,36 @@ pub trait IHlink_Impl: Sized { impl windows_core::RuntimeName for IHlink {} #[cfg(feature = "Win32_System_Com")] impl IHlink_Vtbl { - pub const fn new() -> IHlink_Vtbl - where - Identity: IHlink_Impl, - { - unsafe extern "system" fn SetHlinkSite(this: *mut core::ffi::c_void, pihlsite: *mut core::ffi::c_void, dwsitedata: u32) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + pub const fn new() -> IHlink_Vtbl { + unsafe extern "system" fn SetHlinkSite(this: *mut core::ffi::c_void, pihlsite: *mut core::ffi::c_void, dwsitedata: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlink_Impl::SetHlinkSite(this, windows_core::from_raw_borrowed(&pihlsite), core::mem::transmute_copy(&dwsitedata)).into() } - unsafe extern "system" fn GetHlinkSite(this: *mut core::ffi::c_void, ppihlsite: *mut *mut core::ffi::c_void, pdwsitedata: *mut u32) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn GetHlinkSite(this: *mut core::ffi::c_void, ppihlsite: *mut *mut core::ffi::c_void, pdwsitedata: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlink_Impl::GetHlinkSite(this, core::mem::transmute_copy(&ppihlsite), core::mem::transmute_copy(&pdwsitedata)).into() } - unsafe extern "system" fn SetMonikerReference(this: *mut core::ffi::c_void, grfhlsetf: u32, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn SetMonikerReference(this: *mut core::ffi::c_void, grfhlsetf: u32, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlink_Impl::SetMonikerReference(this, core::mem::transmute_copy(&grfhlsetf), windows_core::from_raw_borrowed(&pimktarget), core::mem::transmute(&pwzlocation)).into() } - unsafe extern "system" fn GetMonikerReference(this: *mut core::ffi::c_void, dwwhichref: u32, ppimktarget: *mut *mut core::ffi::c_void, ppwzlocation: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn GetMonikerReference(this: *mut core::ffi::c_void, dwwhichref: u32, ppimktarget: *mut *mut core::ffi::c_void, ppwzlocation: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlink_Impl::GetMonikerReference(this, core::mem::transmute_copy(&dwwhichref), core::mem::transmute_copy(&ppimktarget), core::mem::transmute_copy(&ppwzlocation)).into() } - unsafe extern "system" fn SetStringReference(this: *mut core::ffi::c_void, grfhlsetf: u32, pwztarget: windows_core::PCWSTR, pwzlocation: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn SetStringReference(this: *mut core::ffi::c_void, grfhlsetf: u32, pwztarget: windows_core::PCWSTR, pwzlocation: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlink_Impl::SetStringReference(this, core::mem::transmute_copy(&grfhlsetf), core::mem::transmute(&pwztarget), core::mem::transmute(&pwzlocation)).into() } - unsafe extern "system" fn GetStringReference(this: *mut core::ffi::c_void, dwwhichref: u32, ppwztarget: *mut windows_core::PWSTR, ppwzlocation: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn GetStringReference(this: *mut core::ffi::c_void, dwwhichref: u32, ppwztarget: *mut windows_core::PWSTR, ppwzlocation: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlink_Impl::GetStringReference(this, core::mem::transmute_copy(&dwwhichref), core::mem::transmute_copy(&ppwztarget), core::mem::transmute_copy(&ppwzlocation)).into() } - unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, pwzfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn SetFriendlyName(this: *mut core::ffi::c_void, pwzfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlink_Impl::SetFriendlyName(this, core::mem::transmute(&pwzfriendlyname)).into() } - unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, grfhlfnamef: u32, ppwzfriendlyname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, grfhlfnamef: u32, ppwzfriendlyname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlink_Impl::GetFriendlyName(this, core::mem::transmute_copy(&grfhlfnamef)) { Ok(ok__) => { @@ -11086,17 +8281,11 @@ impl IHlink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetFrameName(this: *mut core::ffi::c_void, pwztargetframename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn SetTargetFrameName(this: *mut core::ffi::c_void, pwztargetframename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlink_Impl::SetTargetFrameName(this, core::mem::transmute(&pwztargetframename)).into() } - unsafe extern "system" fn GetTargetFrameName(this: *mut core::ffi::c_void, ppwztargetframename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn GetTargetFrameName(this: *mut core::ffi::c_void, ppwztargetframename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlink_Impl::GetTargetFrameName(this) { Ok(ok__) => { @@ -11106,10 +8295,7 @@ impl IHlink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMiscStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn GetMiscStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlink_Impl::GetMiscStatus(this) { Ok(ok__) => { @@ -11119,24 +8305,15 @@ impl IHlink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, grfhlnf: u32, pibc: *mut core::ffi::c_void, pibsc: *mut core::ffi::c_void, pihlbc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, grfhlnf: u32, pibc: *mut core::ffi::c_void, pibsc: *mut core::ffi::c_void, pihlbc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlink_Impl::Navigate(this, core::mem::transmute_copy(&grfhlnf), windows_core::from_raw_borrowed(&pibc), windows_core::from_raw_borrowed(&pibsc), windows_core::from_raw_borrowed(&pihlbc)).into() } - unsafe extern "system" fn SetAdditionalParams(this: *mut core::ffi::c_void, pwzadditionalparams: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn SetAdditionalParams(this: *mut core::ffi::c_void, pwzadditionalparams: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlink_Impl::SetAdditionalParams(this, core::mem::transmute(&pwzadditionalparams)).into() } - unsafe extern "system" fn GetAdditionalParams(this: *mut core::ffi::c_void, ppwzadditionalparams: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHlink_Impl, - { + unsafe extern "system" fn GetAdditionalParams(this: *mut core::ffi::c_void, ppwzadditionalparams: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlink_Impl::GetAdditionalParams(this) { Ok(ok__) => { @@ -11169,7 +8346,7 @@ impl IHlink_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IHlinkBrowseContext_Impl: Sized { +pub trait IHlinkBrowseContext_Impl: Sized + windows_core::IUnknownImpl { fn Register(&self, reserved: u32, piunk: Option<&windows_core::IUnknown>, pimk: Option<&super::super::System::Com::IMoniker>) -> windows_core::Result; fn GetObject(&self, pimk: Option<&super::super::System::Com::IMoniker>, fbindifrootregistered: super::super::Foundation::BOOL) -> windows_core::Result; fn Revoke(&self, dwregister: u32) -> windows_core::Result<()>; @@ -11189,14 +8366,8 @@ pub trait IHlinkBrowseContext_Impl: Sized { impl windows_core::RuntimeName for IHlinkBrowseContext {} #[cfg(feature = "Win32_System_Com")] impl IHlinkBrowseContext_Vtbl { - pub const fn new() -> IHlinkBrowseContext_Vtbl - where - Identity: IHlinkBrowseContext_Impl, - { - unsafe extern "system" fn Register(this: *mut core::ffi::c_void, reserved: u32, piunk: *mut core::ffi::c_void, pimk: *mut core::ffi::c_void, pdwregister: *mut u32) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + pub const fn new() -> IHlinkBrowseContext_Vtbl { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void, reserved: u32, piunk: *mut core::ffi::c_void, pimk: *mut core::ffi::c_void, pdwregister: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkBrowseContext_Impl::Register(this, core::mem::transmute_copy(&reserved), windows_core::from_raw_borrowed(&piunk), windows_core::from_raw_borrowed(&pimk)) { Ok(ok__) => { @@ -11206,10 +8377,7 @@ impl IHlinkBrowseContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, pimk: *mut core::ffi::c_void, fbindifrootregistered: super::super::Foundation::BOOL, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, pimk: *mut core::ffi::c_void, fbindifrootregistered: super::super::Foundation::BOOL, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkBrowseContext_Impl::GetObject(this, windows_core::from_raw_borrowed(&pimk), core::mem::transmute_copy(&fbindifrootregistered)) { Ok(ok__) => { @@ -11219,38 +8387,23 @@ impl IHlinkBrowseContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Revoke(this: *mut core::ffi::c_void, dwregister: u32) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn Revoke(this: *mut core::ffi::c_void, dwregister: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkBrowseContext_Impl::Revoke(this, core::mem::transmute_copy(&dwregister)).into() } - unsafe extern "system" fn SetBrowseWindowInfo(this: *mut core::ffi::c_void, phlbwi: *const HLBWINFO) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn SetBrowseWindowInfo(this: *mut core::ffi::c_void, phlbwi: *const HLBWINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkBrowseContext_Impl::SetBrowseWindowInfo(this, core::mem::transmute_copy(&phlbwi)).into() } - unsafe extern "system" fn GetBrowseWindowInfo(this: *mut core::ffi::c_void, phlbwi: *mut HLBWINFO) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn GetBrowseWindowInfo(this: *mut core::ffi::c_void, phlbwi: *mut HLBWINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkBrowseContext_Impl::GetBrowseWindowInfo(this, core::mem::transmute_copy(&phlbwi)).into() } - unsafe extern "system" fn SetInitialHlink(this: *mut core::ffi::c_void, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, pwzfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn SetInitialHlink(this: *mut core::ffi::c_void, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, pwzfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkBrowseContext_Impl::SetInitialHlink(this, windows_core::from_raw_borrowed(&pimktarget), core::mem::transmute(&pwzlocation), core::mem::transmute(&pwzfriendlyname)).into() } - unsafe extern "system" fn OnNavigateHlink(this: *mut core::ffi::c_void, grfhlnf: u32, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, pwzfriendlyname: windows_core::PCWSTR, puhlid: *mut u32) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn OnNavigateHlink(this: *mut core::ffi::c_void, grfhlnf: u32, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, pwzfriendlyname: windows_core::PCWSTR, puhlid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkBrowseContext_Impl::OnNavigateHlink(this, core::mem::transmute_copy(&grfhlnf), windows_core::from_raw_borrowed(&pimktarget), core::mem::transmute(&pwzlocation), core::mem::transmute(&pwzfriendlyname)) { Ok(ok__) => { @@ -11260,17 +8413,11 @@ impl IHlinkBrowseContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UpdateHlink(this: *mut core::ffi::c_void, uhlid: u32, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, pwzfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn UpdateHlink(this: *mut core::ffi::c_void, uhlid: u32, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, pwzfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkBrowseContext_Impl::UpdateHlink(this, core::mem::transmute_copy(&uhlid), windows_core::from_raw_borrowed(&pimktarget), core::mem::transmute(&pwzlocation), core::mem::transmute(&pwzfriendlyname)).into() } - unsafe extern "system" fn EnumNavigationStack(this: *mut core::ffi::c_void, dwreserved: u32, grfhlfnamef: u32, ppienumhlitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn EnumNavigationStack(this: *mut core::ffi::c_void, dwreserved: u32, grfhlfnamef: u32, ppienumhlitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkBrowseContext_Impl::EnumNavigationStack(this, core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&grfhlfnamef)) { Ok(ok__) => { @@ -11280,17 +8427,11 @@ impl IHlinkBrowseContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryHlink(this: *mut core::ffi::c_void, grfhlqf: u32, uhlid: u32) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn QueryHlink(this: *mut core::ffi::c_void, grfhlqf: u32, uhlid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkBrowseContext_Impl::QueryHlink(this, core::mem::transmute_copy(&grfhlqf), core::mem::transmute_copy(&uhlid)).into() } - unsafe extern "system" fn GetHlink(this: *mut core::ffi::c_void, uhlid: u32, ppihl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn GetHlink(this: *mut core::ffi::c_void, uhlid: u32, ppihl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkBrowseContext_Impl::GetHlink(this, core::mem::transmute_copy(&uhlid)) { Ok(ok__) => { @@ -11300,17 +8441,11 @@ impl IHlinkBrowseContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentHlink(this: *mut core::ffi::c_void, uhlid: u32) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn SetCurrentHlink(this: *mut core::ffi::c_void, uhlid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkBrowseContext_Impl::SetCurrentHlink(this, core::mem::transmute_copy(&uhlid)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, piunkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppiunkobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, piunkouter: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppiunkobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkBrowseContext_Impl::Clone(this, windows_core::from_raw_borrowed(&piunkouter), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -11320,10 +8455,7 @@ impl IHlinkBrowseContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, reserved: u32) -> windows_core::HRESULT - where - Identity: IHlinkBrowseContext_Impl, - { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, reserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkBrowseContext_Impl::Close(this, core::mem::transmute_copy(&reserved)).into() } @@ -11350,7 +8482,7 @@ impl IHlinkBrowseContext_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IHlinkFrame_Impl: Sized { +pub trait IHlinkFrame_Impl: Sized + windows_core::IUnknownImpl { fn SetBrowseContext(&self, pihlbc: Option<&IHlinkBrowseContext>) -> windows_core::Result<()>; fn GetBrowseContext(&self) -> windows_core::Result; fn Navigate(&self, grfhlnf: u32, pbc: Option<&super::super::System::Com::IBindCtx>, pibsc: Option<&super::super::System::Com::IBindStatusCallback>, pihlnavigate: Option<&IHlink>) -> windows_core::Result<()>; @@ -11361,21 +8493,12 @@ pub trait IHlinkFrame_Impl: Sized { impl windows_core::RuntimeName for IHlinkFrame {} #[cfg(feature = "Win32_System_Com")] impl IHlinkFrame_Vtbl { - pub const fn new() -> IHlinkFrame_Vtbl - where - Identity: IHlinkFrame_Impl, - { - unsafe extern "system" fn SetBrowseContext(this: *mut core::ffi::c_void, pihlbc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkFrame_Impl, - { + pub const fn new() -> IHlinkFrame_Vtbl { + unsafe extern "system" fn SetBrowseContext(this: *mut core::ffi::c_void, pihlbc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkFrame_Impl::SetBrowseContext(this, windows_core::from_raw_borrowed(&pihlbc)).into() } - unsafe extern "system" fn GetBrowseContext(this: *mut core::ffi::c_void, ppihlbc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkFrame_Impl, - { + unsafe extern "system" fn GetBrowseContext(this: *mut core::ffi::c_void, ppihlbc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkFrame_Impl::GetBrowseContext(this) { Ok(ok__) => { @@ -11385,24 +8508,15 @@ impl IHlinkFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, grfhlnf: u32, pbc: *mut core::ffi::c_void, pibsc: *mut core::ffi::c_void, pihlnavigate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkFrame_Impl, - { + unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, grfhlnf: u32, pbc: *mut core::ffi::c_void, pibsc: *mut core::ffi::c_void, pihlnavigate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkFrame_Impl::Navigate(this, core::mem::transmute_copy(&grfhlnf), windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pibsc), windows_core::from_raw_borrowed(&pihlnavigate)).into() } - unsafe extern "system" fn OnNavigate(this: *mut core::ffi::c_void, grfhlnf: u32, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, pwzfriendlyname: windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IHlinkFrame_Impl, - { + unsafe extern "system" fn OnNavigate(this: *mut core::ffi::c_void, grfhlnf: u32, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, pwzfriendlyname: windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkFrame_Impl::OnNavigate(this, core::mem::transmute_copy(&grfhlnf), windows_core::from_raw_borrowed(&pimktarget), core::mem::transmute(&pwzlocation), core::mem::transmute(&pwzfriendlyname), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn UpdateHlink(this: *mut core::ffi::c_void, uhlid: u32, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, pwzfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHlinkFrame_Impl, - { + unsafe extern "system" fn UpdateHlink(this: *mut core::ffi::c_void, uhlid: u32, pimktarget: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, pwzfriendlyname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkFrame_Impl::UpdateHlink(this, core::mem::transmute_copy(&uhlid), windows_core::from_raw_borrowed(&pimktarget), core::mem::transmute(&pwzlocation), core::mem::transmute(&pwzfriendlyname)).into() } @@ -11420,7 +8534,7 @@ impl IHlinkFrame_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IHlinkSite_Impl: Sized { +pub trait IHlinkSite_Impl: Sized + windows_core::IUnknownImpl { fn QueryService(&self, dwsitedata: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result; fn GetMoniker(&self, dwsitedata: u32, dwassign: u32, dwwhich: u32) -> windows_core::Result; fn ReadyToNavigate(&self, dwsitedata: u32, dwreserved: u32) -> windows_core::Result<()>; @@ -11430,14 +8544,8 @@ pub trait IHlinkSite_Impl: Sized { impl windows_core::RuntimeName for IHlinkSite {} #[cfg(feature = "Win32_System_Com")] impl IHlinkSite_Vtbl { - pub const fn new() -> IHlinkSite_Vtbl - where - Identity: IHlinkSite_Impl, - { - unsafe extern "system" fn QueryService(this: *mut core::ffi::c_void, dwsitedata: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkSite_Impl, - { + pub const fn new() -> IHlinkSite_Vtbl { + unsafe extern "system" fn QueryService(this: *mut core::ffi::c_void, dwsitedata: u32, guidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkSite_Impl::QueryService(this, core::mem::transmute_copy(&dwsitedata), core::mem::transmute_copy(&guidservice), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -11447,10 +8555,7 @@ impl IHlinkSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMoniker(this: *mut core::ffi::c_void, dwsitedata: u32, dwassign: u32, dwwhich: u32, ppimk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkSite_Impl, - { + unsafe extern "system" fn GetMoniker(this: *mut core::ffi::c_void, dwsitedata: u32, dwassign: u32, dwwhich: u32, ppimk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkSite_Impl::GetMoniker(this, core::mem::transmute_copy(&dwsitedata), core::mem::transmute_copy(&dwassign), core::mem::transmute_copy(&dwwhich)) { Ok(ok__) => { @@ -11460,17 +8565,11 @@ impl IHlinkSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReadyToNavigate(this: *mut core::ffi::c_void, dwsitedata: u32, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IHlinkSite_Impl, - { + unsafe extern "system" fn ReadyToNavigate(this: *mut core::ffi::c_void, dwsitedata: u32, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkSite_Impl::ReadyToNavigate(this, core::mem::transmute_copy(&dwsitedata), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn OnNavigationComplete(this: *mut core::ffi::c_void, dwsitedata: u32, dwreserved: u32, hrerror: windows_core::HRESULT, pwzerror: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHlinkSite_Impl, - { + unsafe extern "system" fn OnNavigationComplete(this: *mut core::ffi::c_void, dwsitedata: u32, dwreserved: u32, hrerror: windows_core::HRESULT, pwzerror: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkSite_Impl::OnNavigationComplete(this, core::mem::transmute_copy(&dwsitedata), core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&hrerror), core::mem::transmute(&pwzerror)).into() } @@ -11487,7 +8586,7 @@ impl IHlinkSite_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IHlinkTarget_Impl: Sized { +pub trait IHlinkTarget_Impl: Sized + windows_core::IUnknownImpl { fn SetBrowseContext(&self, pihlbc: Option<&IHlinkBrowseContext>) -> windows_core::Result<()>; fn GetBrowseContext(&self) -> windows_core::Result; fn Navigate(&self, grfhlnf: u32, pwzjumplocation: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -11498,21 +8597,12 @@ pub trait IHlinkTarget_Impl: Sized { impl windows_core::RuntimeName for IHlinkTarget {} #[cfg(feature = "Win32_System_Com")] impl IHlinkTarget_Vtbl { - pub const fn new() -> IHlinkTarget_Vtbl - where - Identity: IHlinkTarget_Impl, - { - unsafe extern "system" fn SetBrowseContext(this: *mut core::ffi::c_void, pihlbc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkTarget_Impl, - { + pub const fn new() -> IHlinkTarget_Vtbl { + unsafe extern "system" fn SetBrowseContext(this: *mut core::ffi::c_void, pihlbc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkTarget_Impl::SetBrowseContext(this, windows_core::from_raw_borrowed(&pihlbc)).into() } - unsafe extern "system" fn GetBrowseContext(this: *mut core::ffi::c_void, ppihlbc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkTarget_Impl, - { + unsafe extern "system" fn GetBrowseContext(this: *mut core::ffi::c_void, ppihlbc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkTarget_Impl::GetBrowseContext(this) { Ok(ok__) => { @@ -11522,17 +8612,11 @@ impl IHlinkTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, grfhlnf: u32, pwzjumplocation: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHlinkTarget_Impl, - { + unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, grfhlnf: u32, pwzjumplocation: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHlinkTarget_Impl::Navigate(this, core::mem::transmute_copy(&grfhlnf), core::mem::transmute(&pwzjumplocation)).into() } - unsafe extern "system" fn GetMoniker(this: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, dwassign: u32, ppimklocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHlinkTarget_Impl, - { + unsafe extern "system" fn GetMoniker(this: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, dwassign: u32, ppimklocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkTarget_Impl::GetMoniker(this, core::mem::transmute(&pwzlocation), core::mem::transmute_copy(&dwassign)) { Ok(ok__) => { @@ -11542,10 +8626,7 @@ impl IHlinkTarget_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, ppwzfriendlyname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IHlinkTarget_Impl, - { + unsafe extern "system" fn GetFriendlyName(this: *mut core::ffi::c_void, pwzlocation: windows_core::PCWSTR, ppwzfriendlyname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkTarget_Impl::GetFriendlyName(this, core::mem::transmute(&pwzlocation)) { Ok(ok__) => { @@ -11568,20 +8649,14 @@ impl IHlinkTarget_Vtbl { iid == &::IID } } -pub trait IHomeGroup_Impl: Sized { +pub trait IHomeGroup_Impl: Sized + windows_core::IUnknownImpl { fn IsMember(&self) -> windows_core::Result; fn ShowSharingWizard(&self, owner: super::super::Foundation::HWND) -> windows_core::Result; } impl windows_core::RuntimeName for IHomeGroup {} impl IHomeGroup_Vtbl { - pub const fn new() -> IHomeGroup_Vtbl - where - Identity: IHomeGroup_Impl, - { - unsafe extern "system" fn IsMember(this: *mut core::ffi::c_void, member: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IHomeGroup_Impl, - { + pub const fn new() -> IHomeGroup_Vtbl { + unsafe extern "system" fn IsMember(this: *mut core::ffi::c_void, member: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHomeGroup_Impl::IsMember(this) { Ok(ok__) => { @@ -11591,10 +8666,7 @@ impl IHomeGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShowSharingWizard(this: *mut core::ffi::c_void, owner: super::super::Foundation::HWND, sharingchoices: *mut HOMEGROUPSHARINGCHOICES) -> windows_core::HRESULT - where - Identity: IHomeGroup_Impl, - { + unsafe extern "system" fn ShowSharingWizard(this: *mut core::ffi::c_void, owner: super::super::Foundation::HWND, sharingchoices: *mut HOMEGROUPSHARINGCHOICES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHomeGroup_Impl::ShowSharingWizard(this, core::mem::transmute_copy(&owner)) { Ok(ok__) => { @@ -11614,27 +8686,18 @@ impl IHomeGroup_Vtbl { iid == &::IID } } -pub trait IIOCancelInformation_Impl: Sized { +pub trait IIOCancelInformation_Impl: Sized + windows_core::IUnknownImpl { fn SetCancelInformation(&self, dwthreadid: u32, umsgcancel: u32) -> windows_core::Result<()>; fn GetCancelInformation(&self, pdwthreadid: *mut u32, pumsgcancel: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IIOCancelInformation {} impl IIOCancelInformation_Vtbl { - pub const fn new() -> IIOCancelInformation_Vtbl - where - Identity: IIOCancelInformation_Impl, - { - unsafe extern "system" fn SetCancelInformation(this: *mut core::ffi::c_void, dwthreadid: u32, umsgcancel: u32) -> windows_core::HRESULT - where - Identity: IIOCancelInformation_Impl, - { + pub const fn new() -> IIOCancelInformation_Vtbl { + unsafe extern "system" fn SetCancelInformation(this: *mut core::ffi::c_void, dwthreadid: u32, umsgcancel: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIOCancelInformation_Impl::SetCancelInformation(this, core::mem::transmute_copy(&dwthreadid), core::mem::transmute_copy(&umsgcancel)).into() } - unsafe extern "system" fn GetCancelInformation(this: *mut core::ffi::c_void, pdwthreadid: *mut u32, pumsgcancel: *mut u32) -> windows_core::HRESULT - where - Identity: IIOCancelInformation_Impl, - { + unsafe extern "system" fn GetCancelInformation(this: *mut core::ffi::c_void, pdwthreadid: *mut u32, pumsgcancel: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIOCancelInformation_Impl::GetCancelInformation(this, core::mem::transmute_copy(&pdwthreadid), core::mem::transmute_copy(&pumsgcancel)).into() } @@ -11654,10 +8717,7 @@ pub trait IIdentityName_Impl: Sized + IRelatedItem_Impl {} impl windows_core::RuntimeName for IIdentityName {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IIdentityName_Vtbl { - pub const fn new() -> IIdentityName_Vtbl - where - Identity: IIdentityName_Impl, - { + pub const fn new() -> IIdentityName_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -11665,21 +8725,15 @@ impl IIdentityName_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IImageRecompress_Impl: Sized { +pub trait IImageRecompress_Impl: Sized + windows_core::IUnknownImpl { fn RecompressImage(&self, psi: Option<&IShellItem>, cx: i32, cy: i32, iquality: i32, pstg: Option<&super::super::System::Com::StructuredStorage::IStorage>) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl windows_core::RuntimeName for IImageRecompress {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IImageRecompress_Vtbl { - pub const fn new() -> IImageRecompress_Vtbl - where - Identity: IImageRecompress_Impl, - { - unsafe extern "system" fn RecompressImage(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, cx: i32, cy: i32, iquality: i32, pstg: *mut core::ffi::c_void, ppstrmout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageRecompress_Impl, - { + pub const fn new() -> IImageRecompress_Vtbl { + unsafe extern "system" fn RecompressImage(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, cx: i32, cy: i32, iquality: i32, pstg: *mut core::ffi::c_void, ppstrmout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageRecompress_Impl::RecompressImage(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&cx), core::mem::transmute_copy(&cy), core::mem::transmute_copy(&iquality), windows_core::from_raw_borrowed(&pstg)) { Ok(ok__) => { @@ -11696,21 +8750,15 @@ impl IImageRecompress_Vtbl { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -pub trait IInitializeCommand_Impl: Sized { +pub trait IInitializeCommand_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pszcommandname: &windows_core::PCWSTR, ppb: Option<&super::super::System::Com::StructuredStorage::IPropertyBag>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl windows_core::RuntimeName for IInitializeCommand {} #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IInitializeCommand_Vtbl { - pub const fn new() -> IInitializeCommand_Vtbl - where - Identity: IInitializeCommand_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszcommandname: windows_core::PCWSTR, ppb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInitializeCommand_Impl, - { + pub const fn new() -> IInitializeCommand_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszcommandname: windows_core::PCWSTR, ppb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeCommand_Impl::Initialize(this, core::mem::transmute(&pszcommandname), windows_core::from_raw_borrowed(&ppb)).into() } @@ -11721,21 +8769,15 @@ impl IInitializeCommand_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IInitializeNetworkFolder_Impl: Sized { +pub trait IInitializeNetworkFolder_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pidl: *const Common::ITEMIDLIST, pidltarget: *const Common::ITEMIDLIST, udisplaytype: u32, pszresname: &windows_core::PCWSTR, pszprovider: &windows_core::PCWSTR) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_Shell_Common")] impl windows_core::RuntimeName for IInitializeNetworkFolder {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IInitializeNetworkFolder_Vtbl { - pub const fn new() -> IInitializeNetworkFolder_Vtbl - where - Identity: IInitializeNetworkFolder_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pidltarget: *const Common::ITEMIDLIST, udisplaytype: u32, pszresname: windows_core::PCWSTR, pszprovider: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IInitializeNetworkFolder_Impl, - { + pub const fn new() -> IInitializeNetworkFolder_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pidltarget: *const Common::ITEMIDLIST, udisplaytype: u32, pszresname: windows_core::PCWSTR, pszprovider: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeNetworkFolder_Impl::Initialize(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&pidltarget), core::mem::transmute_copy(&udisplaytype), core::mem::transmute(&pszresname), core::mem::transmute(&pszprovider)).into() } @@ -11745,19 +8787,13 @@ impl IInitializeNetworkFolder_Vtbl { iid == &::IID } } -pub trait IInitializeObject_Impl: Sized { +pub trait IInitializeObject_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInitializeObject {} impl IInitializeObject_Vtbl { - pub const fn new() -> IInitializeObject_Vtbl - where - Identity: IInitializeObject_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInitializeObject_Impl, - { + pub const fn new() -> IInitializeObject_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeObject_Impl::Initialize(this).into() } @@ -11768,21 +8804,15 @@ impl IInitializeObject_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IInitializeWithBindCtx_Impl: Sized { +pub trait IInitializeWithBindCtx_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pbc: Option<&super::super::System::Com::IBindCtx>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for IInitializeWithBindCtx {} #[cfg(feature = "Win32_System_Com")] impl IInitializeWithBindCtx_Vtbl { - pub const fn new() -> IInitializeWithBindCtx_Vtbl - where - Identity: IInitializeWithBindCtx_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInitializeWithBindCtx_Impl, - { + pub const fn new() -> IInitializeWithBindCtx_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeWithBindCtx_Impl::Initialize(this, windows_core::from_raw_borrowed(&pbc)).into() } @@ -11792,19 +8822,13 @@ impl IInitializeWithBindCtx_Vtbl { iid == &::IID } } -pub trait IInitializeWithItem_Impl: Sized { +pub trait IInitializeWithItem_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psi: Option<&IShellItem>, grfmode: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInitializeWithItem {} impl IInitializeWithItem_Vtbl { - pub const fn new() -> IInitializeWithItem_Vtbl - where - Identity: IInitializeWithItem_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, grfmode: u32) -> windows_core::HRESULT - where - Identity: IInitializeWithItem_Impl, - { + pub const fn new() -> IInitializeWithItem_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, grfmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeWithItem_Impl::Initialize(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&grfmode)).into() } @@ -11815,21 +8839,15 @@ impl IInitializeWithItem_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IInitializeWithPropertyStore_Impl: Sized { +pub trait IInitializeWithPropertyStore_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pps: Option<&PropertiesSystem::IPropertyStore>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl windows_core::RuntimeName for IInitializeWithPropertyStore {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IInitializeWithPropertyStore_Vtbl { - pub const fn new() -> IInitializeWithPropertyStore_Vtbl - where - Identity: IInitializeWithPropertyStore_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pps: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInitializeWithPropertyStore_Impl, - { + pub const fn new() -> IInitializeWithPropertyStore_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pps: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeWithPropertyStore_Impl::Initialize(this, windows_core::from_raw_borrowed(&pps)).into() } @@ -11839,19 +8857,13 @@ impl IInitializeWithPropertyStore_Vtbl { iid == &::IID } } -pub trait IInitializeWithWindow_Impl: Sized { +pub trait IInitializeWithWindow_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInitializeWithWindow {} impl IInitializeWithWindow_Vtbl { - pub const fn new() -> IInitializeWithWindow_Vtbl - where - Identity: IInitializeWithWindow_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IInitializeWithWindow_Impl, - { + pub const fn new() -> IInitializeWithWindow_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInitializeWithWindow_Impl::Initialize(this, core::mem::transmute_copy(&hwnd)).into() } @@ -11862,7 +8874,7 @@ impl IInitializeWithWindow_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IInputObject_Impl: Sized { +pub trait IInputObject_Impl: Sized + windows_core::IUnknownImpl { fn UIActivateIO(&self, factivate: super::super::Foundation::BOOL, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()>; fn HasFocusIO(&self) -> windows_core::Result<()>; fn TranslateAcceleratorIO(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()>; @@ -11871,28 +8883,16 @@ pub trait IInputObject_Impl: Sized { impl windows_core::RuntimeName for IInputObject {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IInputObject_Vtbl { - pub const fn new() -> IInputObject_Vtbl - where - Identity: IInputObject_Impl, - { - unsafe extern "system" fn UIActivateIO(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IInputObject_Impl, - { + pub const fn new() -> IInputObject_Vtbl { + unsafe extern "system" fn UIActivateIO(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputObject_Impl::UIActivateIO(this, core::mem::transmute_copy(&factivate), core::mem::transmute_copy(&pmsg)).into() } - unsafe extern "system" fn HasFocusIO(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInputObject_Impl, - { + unsafe extern "system" fn HasFocusIO(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputObject_Impl::HasFocusIO(this).into() } - unsafe extern "system" fn TranslateAcceleratorIO(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IInputObject_Impl, - { + unsafe extern "system" fn TranslateAcceleratorIO(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputObject_Impl::TranslateAcceleratorIO(this, core::mem::transmute_copy(&pmsg)).into() } @@ -11915,14 +8915,8 @@ pub trait IInputObject2_Impl: Sized + IInputObject_Impl { impl windows_core::RuntimeName for IInputObject2 {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IInputObject2_Vtbl { - pub const fn new() -> IInputObject2_Vtbl - where - Identity: IInputObject2_Impl, - { - unsafe extern "system" fn TranslateAcceleratorGlobal(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IInputObject2_Impl, - { + pub const fn new() -> IInputObject2_Vtbl { + unsafe extern "system" fn TranslateAcceleratorGlobal(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputObject2_Impl::TranslateAcceleratorGlobal(this, core::mem::transmute_copy(&pmsg)).into() } @@ -11932,19 +8926,13 @@ impl IInputObject2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IInputObjectSite_Impl: Sized { +pub trait IInputObjectSite_Impl: Sized + windows_core::IUnknownImpl { fn OnFocusChangeIS(&self, punkobj: Option<&windows_core::IUnknown>, fsetfocus: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInputObjectSite {} impl IInputObjectSite_Vtbl { - pub const fn new() -> IInputObjectSite_Vtbl - where - Identity: IInputObjectSite_Impl, - { - unsafe extern "system" fn OnFocusChangeIS(this: *mut core::ffi::c_void, punkobj: *mut core::ffi::c_void, fsetfocus: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IInputObjectSite_Impl, - { + pub const fn new() -> IInputObjectSite_Vtbl { + unsafe extern "system" fn OnFocusChangeIS(this: *mut core::ffi::c_void, punkobj: *mut core::ffi::c_void, fsetfocus: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputObjectSite_Impl::OnFocusChangeIS(this, windows_core::from_raw_borrowed(&punkobj), core::mem::transmute_copy(&fsetfocus)).into() } @@ -11955,21 +8943,15 @@ impl IInputObjectSite_Vtbl { } } #[cfg(feature = "Win32_Graphics_DirectComposition")] -pub trait IInputPaneAnimationCoordinator_Impl: Sized { +pub trait IInputPaneAnimationCoordinator_Impl: Sized + windows_core::IUnknownImpl { fn AddAnimation(&self, device: Option<&windows_core::IUnknown>, animation: Option<&super::super::Graphics::DirectComposition::IDCompositionAnimation>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_DirectComposition")] impl windows_core::RuntimeName for IInputPaneAnimationCoordinator {} #[cfg(feature = "Win32_Graphics_DirectComposition")] impl IInputPaneAnimationCoordinator_Vtbl { - pub const fn new() -> IInputPaneAnimationCoordinator_Vtbl - where - Identity: IInputPaneAnimationCoordinator_Impl, - { - unsafe extern "system" fn AddAnimation(this: *mut core::ffi::c_void, device: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInputPaneAnimationCoordinator_Impl, - { + pub const fn new() -> IInputPaneAnimationCoordinator_Vtbl { + unsafe extern "system" fn AddAnimation(this: *mut core::ffi::c_void, device: *mut core::ffi::c_void, animation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputPaneAnimationCoordinator_Impl::AddAnimation(this, windows_core::from_raw_borrowed(&device), windows_core::from_raw_borrowed(&animation)).into() } @@ -11979,19 +8961,13 @@ impl IInputPaneAnimationCoordinator_Vtbl { iid == &::IID } } -pub trait IInputPanelConfiguration_Impl: Sized { +pub trait IInputPanelConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn EnableFocusTracking(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInputPanelConfiguration {} impl IInputPanelConfiguration_Vtbl { - pub const fn new() -> IInputPanelConfiguration_Vtbl - where - Identity: IInputPanelConfiguration_Impl, - { - unsafe extern "system" fn EnableFocusTracking(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInputPanelConfiguration_Impl, - { + pub const fn new() -> IInputPanelConfiguration_Vtbl { + unsafe extern "system" fn EnableFocusTracking(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputPanelConfiguration_Impl::EnableFocusTracking(this).into() } @@ -12001,19 +8977,13 @@ impl IInputPanelConfiguration_Vtbl { iid == &::IID } } -pub trait IInputPanelInvocationConfiguration_Impl: Sized { +pub trait IInputPanelInvocationConfiguration_Impl: Sized + windows_core::IUnknownImpl { fn RequireTouchInEditControl(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInputPanelInvocationConfiguration {} impl IInputPanelInvocationConfiguration_Vtbl { - pub const fn new() -> IInputPanelInvocationConfiguration_Vtbl - where - Identity: IInputPanelInvocationConfiguration_Impl, - { - unsafe extern "system" fn RequireTouchInEditControl(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInputPanelInvocationConfiguration_Impl, - { + pub const fn new() -> IInputPanelInvocationConfiguration_Vtbl { + unsafe extern "system" fn RequireTouchInEditControl(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputPanelInvocationConfiguration_Impl::RequireTouchInEditControl(this).into() } @@ -12024,21 +8994,15 @@ impl IInputPanelInvocationConfiguration_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IInsertItem_Impl: Sized { +pub trait IInsertItem_Impl: Sized + windows_core::IUnknownImpl { fn InsertItem(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_Shell_Common")] impl windows_core::RuntimeName for IInsertItem {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IInsertItem_Vtbl { - pub const fn new() -> IInsertItem_Vtbl - where - Identity: IInsertItem_Impl, - { - unsafe extern "system" fn InsertItem(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IInsertItem_Impl, - { + pub const fn new() -> IInsertItem_Vtbl { + unsafe extern "system" fn InsertItem(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInsertItem_Impl::InsertItem(this, core::mem::transmute_copy(&pidl)).into() } @@ -12048,27 +9012,18 @@ impl IInsertItem_Vtbl { iid == &::IID } } -pub trait IItemNameLimits_Impl: Sized { +pub trait IItemNameLimits_Impl: Sized + windows_core::IUnknownImpl { fn GetValidCharacters(&self, ppwszvalidchars: *mut windows_core::PWSTR, ppwszinvalidchars: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn GetMaxLength(&self, pszname: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IItemNameLimits {} impl IItemNameLimits_Vtbl { - pub const fn new() -> IItemNameLimits_Vtbl - where - Identity: IItemNameLimits_Impl, - { - unsafe extern "system" fn GetValidCharacters(this: *mut core::ffi::c_void, ppwszvalidchars: *mut windows_core::PWSTR, ppwszinvalidchars: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IItemNameLimits_Impl, - { + pub const fn new() -> IItemNameLimits_Vtbl { + unsafe extern "system" fn GetValidCharacters(this: *mut core::ffi::c_void, ppwszvalidchars: *mut windows_core::PWSTR, ppwszinvalidchars: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IItemNameLimits_Impl::GetValidCharacters(this, core::mem::transmute_copy(&ppwszvalidchars), core::mem::transmute_copy(&ppwszinvalidchars)).into() } - unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pimaxnamelen: *mut i32) -> windows_core::HRESULT - where - Identity: IItemNameLimits_Impl, - { + unsafe extern "system" fn GetMaxLength(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pimaxnamelen: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IItemNameLimits_Impl::GetMaxLength(this, core::mem::transmute(&pszname)) { Ok(ok__) => { @@ -12089,7 +9044,7 @@ impl IItemNameLimits_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IKnownFolder_Impl: Sized { +pub trait IKnownFolder_Impl: Sized + windows_core::IUnknownImpl { fn GetId(&self) -> windows_core::Result; fn GetCategory(&self) -> windows_core::Result; fn GetShellItem(&self, dwflags: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -12104,14 +9059,8 @@ pub trait IKnownFolder_Impl: Sized { impl windows_core::RuntimeName for IKnownFolder {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IKnownFolder_Vtbl { - pub const fn new() -> IKnownFolder_Vtbl - where - Identity: IKnownFolder_Impl, - { - unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, pkfid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IKnownFolder_Impl, - { + pub const fn new() -> IKnownFolder_Vtbl { + unsafe extern "system" fn GetId(this: *mut core::ffi::c_void, pkfid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolder_Impl::GetId(this) { Ok(ok__) => { @@ -12121,10 +9070,7 @@ impl IKnownFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, pcategory: *mut KF_CATEGORY) -> windows_core::HRESULT - where - Identity: IKnownFolder_Impl, - { + unsafe extern "system" fn GetCategory(this: *mut core::ffi::c_void, pcategory: *mut KF_CATEGORY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolder_Impl::GetCategory(this) { Ok(ok__) => { @@ -12134,17 +9080,11 @@ impl IKnownFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetShellItem(this: *mut core::ffi::c_void, dwflags: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKnownFolder_Impl, - { + unsafe extern "system" fn GetShellItem(this: *mut core::ffi::c_void, dwflags: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnownFolder_Impl::GetShellItem(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, dwflags: u32, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IKnownFolder_Impl, - { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, dwflags: u32, ppszpath: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolder_Impl::GetPath(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -12154,17 +9094,11 @@ impl IKnownFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, dwflags: u32, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IKnownFolder_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, dwflags: u32, pszpath: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnownFolder_Impl::SetPath(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszpath)).into() } - unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, dwflags: u32, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IKnownFolder_Impl, - { + unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, dwflags: u32, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolder_Impl::GetIDList(this, core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -12174,10 +9108,7 @@ impl IKnownFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolderType(this: *mut core::ffi::c_void, pftid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IKnownFolder_Impl, - { + unsafe extern "system" fn GetFolderType(this: *mut core::ffi::c_void, pftid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolder_Impl::GetFolderType(this) { Ok(ok__) => { @@ -12187,10 +9118,7 @@ impl IKnownFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRedirectionCapabilities(this: *mut core::ffi::c_void, pcapabilities: *mut u32) -> windows_core::HRESULT - where - Identity: IKnownFolder_Impl, - { + unsafe extern "system" fn GetRedirectionCapabilities(this: *mut core::ffi::c_void, pcapabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolder_Impl::GetRedirectionCapabilities(this) { Ok(ok__) => { @@ -12200,10 +9128,7 @@ impl IKnownFolder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolderDefinition(this: *mut core::ffi::c_void, pkfd: *mut KNOWNFOLDER_DEFINITION) -> windows_core::HRESULT - where - Identity: IKnownFolder_Impl, - { + unsafe extern "system" fn GetFolderDefinition(this: *mut core::ffi::c_void, pkfd: *mut KNOWNFOLDER_DEFINITION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnownFolder_Impl::GetFolderDefinition(this, core::mem::transmute_copy(&pkfd)).into() } @@ -12225,7 +9150,7 @@ impl IKnownFolder_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IKnownFolderManager_Impl: Sized { +pub trait IKnownFolderManager_Impl: Sized + windows_core::IUnknownImpl { fn FolderIdFromCsidl(&self, ncsidl: i32) -> windows_core::Result; fn FolderIdToCsidl(&self, rfid: *const windows_core::GUID) -> windows_core::Result; fn GetFolderIds(&self, ppkfid: *mut *mut windows_core::GUID, pcount: *mut u32) -> windows_core::Result<()>; @@ -12241,14 +9166,8 @@ pub trait IKnownFolderManager_Impl: Sized { impl windows_core::RuntimeName for IKnownFolderManager {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IKnownFolderManager_Vtbl { - pub const fn new() -> IKnownFolderManager_Vtbl - where - Identity: IKnownFolderManager_Impl, - { - unsafe extern "system" fn FolderIdFromCsidl(this: *mut core::ffi::c_void, ncsidl: i32, pfid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IKnownFolderManager_Impl, - { + pub const fn new() -> IKnownFolderManager_Vtbl { + unsafe extern "system" fn FolderIdFromCsidl(this: *mut core::ffi::c_void, ncsidl: i32, pfid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolderManager_Impl::FolderIdFromCsidl(this, core::mem::transmute_copy(&ncsidl)) { Ok(ok__) => { @@ -12258,10 +9177,7 @@ impl IKnownFolderManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FolderIdToCsidl(this: *mut core::ffi::c_void, rfid: *const windows_core::GUID, pncsidl: *mut i32) -> windows_core::HRESULT - where - Identity: IKnownFolderManager_Impl, - { + unsafe extern "system" fn FolderIdToCsidl(this: *mut core::ffi::c_void, rfid: *const windows_core::GUID, pncsidl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolderManager_Impl::FolderIdToCsidl(this, core::mem::transmute_copy(&rfid)) { Ok(ok__) => { @@ -12271,17 +9187,11 @@ impl IKnownFolderManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolderIds(this: *mut core::ffi::c_void, ppkfid: *mut *mut windows_core::GUID, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: IKnownFolderManager_Impl, - { + unsafe extern "system" fn GetFolderIds(this: *mut core::ffi::c_void, ppkfid: *mut *mut windows_core::GUID, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnownFolderManager_Impl::GetFolderIds(this, core::mem::transmute_copy(&ppkfid), core::mem::transmute_copy(&pcount)).into() } - unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, rfid: *const windows_core::GUID, ppkf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKnownFolderManager_Impl, - { + unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, rfid: *const windows_core::GUID, ppkf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolderManager_Impl::GetFolder(this, core::mem::transmute_copy(&rfid)) { Ok(ok__) => { @@ -12291,10 +9201,7 @@ impl IKnownFolderManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFolderByName(this: *mut core::ffi::c_void, pszcanonicalname: windows_core::PCWSTR, ppkf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKnownFolderManager_Impl, - { + unsafe extern "system" fn GetFolderByName(this: *mut core::ffi::c_void, pszcanonicalname: windows_core::PCWSTR, ppkf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolderManager_Impl::GetFolderByName(this, core::mem::transmute(&pszcanonicalname)) { Ok(ok__) => { @@ -12304,24 +9211,15 @@ impl IKnownFolderManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterFolder(this: *mut core::ffi::c_void, rfid: *const windows_core::GUID, pkfd: *const KNOWNFOLDER_DEFINITION) -> windows_core::HRESULT - where - Identity: IKnownFolderManager_Impl, - { + unsafe extern "system" fn RegisterFolder(this: *mut core::ffi::c_void, rfid: *const windows_core::GUID, pkfd: *const KNOWNFOLDER_DEFINITION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnownFolderManager_Impl::RegisterFolder(this, core::mem::transmute_copy(&rfid), core::mem::transmute_copy(&pkfd)).into() } - unsafe extern "system" fn UnregisterFolder(this: *mut core::ffi::c_void, rfid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IKnownFolderManager_Impl, - { + unsafe extern "system" fn UnregisterFolder(this: *mut core::ffi::c_void, rfid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnownFolderManager_Impl::UnregisterFolder(this, core::mem::transmute_copy(&rfid)).into() } - unsafe extern "system" fn FindFolderFromPath(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, mode: FFFP_MODE, ppkf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKnownFolderManager_Impl, - { + unsafe extern "system" fn FindFolderFromPath(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, mode: FFFP_MODE, ppkf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolderManager_Impl::FindFolderFromPath(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&mode)) { Ok(ok__) => { @@ -12331,10 +9229,7 @@ impl IKnownFolderManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFolderFromIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppkf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IKnownFolderManager_Impl, - { + unsafe extern "system" fn FindFolderFromIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppkf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IKnownFolderManager_Impl::FindFolderFromIDList(this, core::mem::transmute_copy(&pidl)) { Ok(ok__) => { @@ -12344,10 +9239,7 @@ impl IKnownFolderManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Redirect(this: *mut core::ffi::c_void, rfid: *const windows_core::GUID, hwnd: super::super::Foundation::HWND, flags: u32, psztargetpath: windows_core::PCWSTR, cfolders: u32, pexclusion: *const windows_core::GUID, ppszerror: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IKnownFolderManager_Impl, - { + unsafe extern "system" fn Redirect(this: *mut core::ffi::c_void, rfid: *const windows_core::GUID, hwnd: super::super::Foundation::HWND, flags: u32, psztargetpath: windows_core::PCWSTR, cfolders: u32, pexclusion: *const windows_core::GUID, ppszerror: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKnownFolderManager_Impl::Redirect(this, core::mem::transmute_copy(&rfid), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&flags), core::mem::transmute(&psztargetpath), core::mem::transmute_copy(&cfolders), core::mem::transmute_copy(&pexclusion), core::mem::transmute_copy(&ppszerror)).into() } @@ -12369,19 +9261,13 @@ impl IKnownFolderManager_Vtbl { iid == &::IID } } -pub trait ILaunchSourceAppUserModelId_Impl: Sized { +pub trait ILaunchSourceAppUserModelId_Impl: Sized + windows_core::IUnknownImpl { fn GetAppUserModelId(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ILaunchSourceAppUserModelId {} impl ILaunchSourceAppUserModelId_Vtbl { - pub const fn new() -> ILaunchSourceAppUserModelId_Vtbl - where - Identity: ILaunchSourceAppUserModelId_Impl, - { - unsafe extern "system" fn GetAppUserModelId(this: *mut core::ffi::c_void, launchingapp: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ILaunchSourceAppUserModelId_Impl, - { + pub const fn new() -> ILaunchSourceAppUserModelId_Vtbl { + unsafe extern "system" fn GetAppUserModelId(this: *mut core::ffi::c_void, launchingapp: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILaunchSourceAppUserModelId_Impl::GetAppUserModelId(this) { Ok(ok__) => { @@ -12397,20 +9283,14 @@ impl ILaunchSourceAppUserModelId_Vtbl { iid == &::IID } } -pub trait ILaunchSourceViewSizePreference_Impl: Sized { +pub trait ILaunchSourceViewSizePreference_Impl: Sized + windows_core::IUnknownImpl { fn GetSourceViewToPosition(&self) -> windows_core::Result; fn GetSourceViewSizePreference(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ILaunchSourceViewSizePreference {} impl ILaunchSourceViewSizePreference_Vtbl { - pub const fn new() -> ILaunchSourceViewSizePreference_Vtbl - where - Identity: ILaunchSourceViewSizePreference_Impl, - { - unsafe extern "system" fn GetSourceViewToPosition(this: *mut core::ffi::c_void, hwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ILaunchSourceViewSizePreference_Impl, - { + pub const fn new() -> ILaunchSourceViewSizePreference_Vtbl { + unsafe extern "system" fn GetSourceViewToPosition(this: *mut core::ffi::c_void, hwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILaunchSourceViewSizePreference_Impl::GetSourceViewToPosition(this) { Ok(ok__) => { @@ -12420,10 +9300,7 @@ impl ILaunchSourceViewSizePreference_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceViewSizePreference(this: *mut core::ffi::c_void, sourcesizeafterlaunch: *mut APPLICATION_VIEW_SIZE_PREFERENCE) -> windows_core::HRESULT - where - Identity: ILaunchSourceViewSizePreference_Impl, - { + unsafe extern "system" fn GetSourceViewSizePreference(this: *mut core::ffi::c_void, sourcesizeafterlaunch: *mut APPLICATION_VIEW_SIZE_PREFERENCE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILaunchSourceViewSizePreference_Impl::GetSourceViewSizePreference(this) { Ok(ok__) => { @@ -12444,21 +9321,15 @@ impl ILaunchSourceViewSizePreference_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait ILaunchTargetMonitor_Impl: Sized { +pub trait ILaunchTargetMonitor_Impl: Sized + windows_core::IUnknownImpl { fn GetMonitor(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] impl windows_core::RuntimeName for ILaunchTargetMonitor {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ILaunchTargetMonitor_Vtbl { - pub const fn new() -> ILaunchTargetMonitor_Vtbl - where - Identity: ILaunchTargetMonitor_Impl, - { - unsafe extern "system" fn GetMonitor(this: *mut core::ffi::c_void, monitor: *mut super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT - where - Identity: ILaunchTargetMonitor_Impl, - { + pub const fn new() -> ILaunchTargetMonitor_Vtbl { + unsafe extern "system" fn GetMonitor(this: *mut core::ffi::c_void, monitor: *mut super::super::Graphics::Gdi::HMONITOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILaunchTargetMonitor_Impl::GetMonitor(this) { Ok(ok__) => { @@ -12474,19 +9345,13 @@ impl ILaunchTargetMonitor_Vtbl { iid == &::IID } } -pub trait ILaunchTargetViewSizePreference_Impl: Sized { +pub trait ILaunchTargetViewSizePreference_Impl: Sized + windows_core::IUnknownImpl { fn GetTargetViewSizePreference(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ILaunchTargetViewSizePreference {} impl ILaunchTargetViewSizePreference_Vtbl { - pub const fn new() -> ILaunchTargetViewSizePreference_Vtbl - where - Identity: ILaunchTargetViewSizePreference_Impl, - { - unsafe extern "system" fn GetTargetViewSizePreference(this: *mut core::ffi::c_void, targetsizeonlaunch: *mut APPLICATION_VIEW_SIZE_PREFERENCE) -> windows_core::HRESULT - where - Identity: ILaunchTargetViewSizePreference_Impl, - { + pub const fn new() -> ILaunchTargetViewSizePreference_Vtbl { + unsafe extern "system" fn GetTargetViewSizePreference(this: *mut core::ffi::c_void, targetsizeonlaunch: *mut APPLICATION_VIEW_SIZE_PREFERENCE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILaunchTargetViewSizePreference_Impl::GetTargetViewSizePreference(this) { Ok(ok__) => { @@ -12502,27 +9367,18 @@ impl ILaunchTargetViewSizePreference_Vtbl { iid == &::IID } } -pub trait ILaunchUIContext_Impl: Sized { +pub trait ILaunchUIContext_Impl: Sized + windows_core::IUnknownImpl { fn SetAssociatedWindow(&self, value: super::super::Foundation::HWND) -> windows_core::Result<()>; fn SetTabGroupingPreference(&self, value: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILaunchUIContext {} impl ILaunchUIContext_Vtbl { - pub const fn new() -> ILaunchUIContext_Vtbl - where - Identity: ILaunchUIContext_Impl, - { - unsafe extern "system" fn SetAssociatedWindow(this: *mut core::ffi::c_void, value: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ILaunchUIContext_Impl, - { + pub const fn new() -> ILaunchUIContext_Vtbl { + unsafe extern "system" fn SetAssociatedWindow(this: *mut core::ffi::c_void, value: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILaunchUIContext_Impl::SetAssociatedWindow(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetTabGroupingPreference(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT - where - Identity: ILaunchUIContext_Impl, - { + unsafe extern "system" fn SetTabGroupingPreference(this: *mut core::ffi::c_void, value: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILaunchUIContext_Impl::SetTabGroupingPreference(this, core::mem::transmute_copy(&value)).into() } @@ -12536,19 +9392,13 @@ impl ILaunchUIContext_Vtbl { iid == &::IID } } -pub trait ILaunchUIContextProvider_Impl: Sized { +pub trait ILaunchUIContextProvider_Impl: Sized + windows_core::IUnknownImpl { fn UpdateContext(&self, context: Option<&ILaunchUIContext>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ILaunchUIContextProvider {} impl ILaunchUIContextProvider_Vtbl { - pub const fn new() -> ILaunchUIContextProvider_Vtbl - where - Identity: ILaunchUIContextProvider_Impl, - { - unsafe extern "system" fn UpdateContext(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILaunchUIContextProvider_Impl, - { + pub const fn new() -> ILaunchUIContextProvider_Vtbl { + unsafe extern "system" fn UpdateContext(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILaunchUIContextProvider_Impl::UpdateContext(this, windows_core::from_raw_borrowed(&context)).into() } @@ -12559,7 +9409,7 @@ impl ILaunchUIContextProvider_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IMenuBand_Impl: Sized { +pub trait IMenuBand_Impl: Sized + windows_core::IUnknownImpl { fn IsMenuMessage(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()>; fn TranslateMenuMessage(&self, pmsg: *mut super::WindowsAndMessaging::MSG, plret: *mut super::super::Foundation::LRESULT) -> windows_core::Result<()>; } @@ -12567,21 +9417,12 @@ pub trait IMenuBand_Impl: Sized { impl windows_core::RuntimeName for IMenuBand {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IMenuBand_Vtbl { - pub const fn new() -> IMenuBand_Vtbl - where - Identity: IMenuBand_Impl, - { - unsafe extern "system" fn IsMenuMessage(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IMenuBand_Impl, - { + pub const fn new() -> IMenuBand_Vtbl { + unsafe extern "system" fn IsMenuMessage(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMenuBand_Impl::IsMenuMessage(this, core::mem::transmute_copy(&pmsg)).into() } - unsafe extern "system" fn TranslateMenuMessage(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, plret: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IMenuBand_Impl, - { + unsafe extern "system" fn TranslateMenuMessage(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, plret: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMenuBand_Impl::TranslateMenuMessage(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&plret)).into() } @@ -12605,28 +9446,16 @@ pub trait IMenuPopup_Impl: Sized + IDeskBar_Impl { impl windows_core::RuntimeName for IMenuPopup {} #[cfg(feature = "Win32_System_Ole")] impl IMenuPopup_Vtbl { - pub const fn new() -> IMenuPopup_Vtbl - where - Identity: IMenuPopup_Impl, - { - unsafe extern "system" fn Popup(this: *mut core::ffi::c_void, ppt: *const super::super::Foundation::POINTL, prcexclude: *const super::super::Foundation::RECTL, dwflags: i32) -> windows_core::HRESULT - where - Identity: IMenuPopup_Impl, - { + pub const fn new() -> IMenuPopup_Vtbl { + unsafe extern "system" fn Popup(this: *mut core::ffi::c_void, ppt: *const super::super::Foundation::POINTL, prcexclude: *const super::super::Foundation::RECTL, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMenuPopup_Impl::Popup(this, core::mem::transmute_copy(&ppt), core::mem::transmute_copy(&prcexclude), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn OnSelect(this: *mut core::ffi::c_void, dwselecttype: u32) -> windows_core::HRESULT - where - Identity: IMenuPopup_Impl, - { + unsafe extern "system" fn OnSelect(this: *mut core::ffi::c_void, dwselecttype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMenuPopup_Impl::OnSelect(this, core::mem::transmute_copy(&dwselecttype)).into() } - unsafe extern "system" fn SetSubMenu(this: *mut core::ffi::c_void, pmp: *mut core::ffi::c_void, fset: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMenuPopup_Impl, - { + unsafe extern "system" fn SetSubMenu(this: *mut core::ffi::c_void, pmp: *mut core::ffi::c_void, fset: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMenuPopup_Impl::SetSubMenu(this, windows_core::from_raw_borrowed(&pmp), core::mem::transmute_copy(&fset)).into() } @@ -12641,19 +9470,13 @@ impl IMenuPopup_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IModalWindow_Impl: Sized { +pub trait IModalWindow_Impl: Sized + windows_core::IUnknownImpl { fn Show(&self, hwndowner: super::super::Foundation::HWND) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IModalWindow {} impl IModalWindow_Vtbl { - pub const fn new() -> IModalWindow_Vtbl - where - Identity: IModalWindow_Impl, - { - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IModalWindow_Impl, - { + pub const fn new() -> IModalWindow_Vtbl { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IModalWindow_Impl::Show(this, core::mem::transmute_copy(&hwndowner)).into() } @@ -12663,21 +9486,15 @@ impl IModalWindow_Vtbl { iid == &::IID } } -pub trait INameSpaceTreeAccessible_Impl: Sized { +pub trait INameSpaceTreeAccessible_Impl: Sized + windows_core::IUnknownImpl { fn OnGetDefaultAccessibilityAction(&self, psi: Option<&IShellItem>) -> windows_core::Result; fn OnDoDefaultAccessibilityAction(&self, psi: Option<&IShellItem>) -> windows_core::Result<()>; fn OnGetAccessibilityRole(&self, psi: Option<&IShellItem>) -> windows_core::Result; } impl windows_core::RuntimeName for INameSpaceTreeAccessible {} impl INameSpaceTreeAccessible_Vtbl { - pub const fn new() -> INameSpaceTreeAccessible_Vtbl - where - Identity: INameSpaceTreeAccessible_Impl, - { - unsafe extern "system" fn OnGetDefaultAccessibilityAction(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pbstrdefaultaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INameSpaceTreeAccessible_Impl, - { + pub const fn new() -> INameSpaceTreeAccessible_Vtbl { + unsafe extern "system" fn OnGetDefaultAccessibilityAction(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pbstrdefaultaction: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeAccessible_Impl::OnGetDefaultAccessibilityAction(this, windows_core::from_raw_borrowed(&psi)) { Ok(ok__) => { @@ -12687,17 +9504,11 @@ impl INameSpaceTreeAccessible_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnDoDefaultAccessibilityAction(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeAccessible_Impl, - { + unsafe extern "system" fn OnDoDefaultAccessibilityAction(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeAccessible_Impl::OnDoDefaultAccessibilityAction(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn OnGetAccessibilityRole(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pvarrole: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INameSpaceTreeAccessible_Impl, - { + unsafe extern "system" fn OnGetAccessibilityRole(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pvarrole: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeAccessible_Impl::OnGetAccessibilityRole(this, windows_core::from_raw_borrowed(&psi)) { Ok(ok__) => { @@ -12718,7 +9529,7 @@ impl INameSpaceTreeAccessible_Vtbl { iid == &::IID } } -pub trait INameSpaceTreeControl_Impl: Sized { +pub trait INameSpaceTreeControl_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> windows_core::Result<()>; fn TreeAdvise(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result; fn TreeUnadvise(&self, dwcookie: u32) -> windows_core::Result<()>; @@ -12741,21 +9552,12 @@ pub trait INameSpaceTreeControl_Impl: Sized { } impl windows_core::RuntimeName for INameSpaceTreeControl {} impl INameSpaceTreeControl_Vtbl { - pub const fn new() -> INameSpaceTreeControl_Vtbl - where - Identity: INameSpaceTreeControl_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + pub const fn new() -> INameSpaceTreeControl_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::Initialize(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&nsctsflags)).into() } - unsafe extern "system" fn TreeAdvise(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn TreeAdvise(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControl_Impl::TreeAdvise(this, windows_core::from_raw_borrowed(&punk)) { Ok(ok__) => { @@ -12765,45 +9567,27 @@ impl INameSpaceTreeControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TreeUnadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn TreeUnadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::TreeUnadvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn AppendRoot(this: *mut core::ffi::c_void, psiroot: *mut core::ffi::c_void, grfenumflags: u32, grfrootstyle: u32, pif: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn AppendRoot(this: *mut core::ffi::c_void, psiroot: *mut core::ffi::c_void, grfenumflags: u32, grfrootstyle: u32, pif: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::AppendRoot(this, windows_core::from_raw_borrowed(&psiroot), core::mem::transmute_copy(&grfenumflags), core::mem::transmute_copy(&grfrootstyle), windows_core::from_raw_borrowed(&pif)).into() } - unsafe extern "system" fn InsertRoot(this: *mut core::ffi::c_void, iindex: i32, psiroot: *mut core::ffi::c_void, grfenumflags: u32, grfrootstyle: u32, pif: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn InsertRoot(this: *mut core::ffi::c_void, iindex: i32, psiroot: *mut core::ffi::c_void, grfenumflags: u32, grfrootstyle: u32, pif: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::InsertRoot(this, core::mem::transmute_copy(&iindex), windows_core::from_raw_borrowed(&psiroot), core::mem::transmute_copy(&grfenumflags), core::mem::transmute_copy(&grfrootstyle), windows_core::from_raw_borrowed(&pif)).into() } - unsafe extern "system" fn RemoveRoot(this: *mut core::ffi::c_void, psiroot: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn RemoveRoot(this: *mut core::ffi::c_void, psiroot: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::RemoveRoot(this, windows_core::from_raw_borrowed(&psiroot)).into() } - unsafe extern "system" fn RemoveAllRoots(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn RemoveAllRoots(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::RemoveAllRoots(this).into() } - unsafe extern "system" fn GetRootItems(this: *mut core::ffi::c_void, ppsiarootitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn GetRootItems(this: *mut core::ffi::c_void, ppsiarootitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControl_Impl::GetRootItems(this) { Ok(ok__) => { @@ -12813,17 +9597,11 @@ impl INameSpaceTreeControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetItemState(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcismask: u32, nstcisflags: u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn SetItemState(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcismask: u32, nstcisflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::SetItemState(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&nstcismask), core::mem::transmute_copy(&nstcisflags)).into() } - unsafe extern "system" fn GetItemState(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcismask: u32, pnstcisflags: *mut u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn GetItemState(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcismask: u32, pnstcisflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControl_Impl::GetItemState(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&nstcismask)) { Ok(ok__) => { @@ -12833,10 +9611,7 @@ impl INameSpaceTreeControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectedItems(this: *mut core::ffi::c_void, psiaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn GetSelectedItems(this: *mut core::ffi::c_void, psiaitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControl_Impl::GetSelectedItems(this) { Ok(ok__) => { @@ -12846,10 +9621,7 @@ impl INameSpaceTreeControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemCustomState(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pistatenumber: *mut i32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn GetItemCustomState(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pistatenumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControl_Impl::GetItemCustomState(this, windows_core::from_raw_borrowed(&psi)) { Ok(ok__) => { @@ -12859,31 +9631,19 @@ impl INameSpaceTreeControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetItemCustomState(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, istatenumber: i32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn SetItemCustomState(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, istatenumber: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::SetItemCustomState(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&istatenumber)).into() } - unsafe extern "system" fn EnsureItemVisible(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn EnsureItemVisible(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::EnsureItemVisible(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn SetTheme(this: *mut core::ffi::c_void, psztheme: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn SetTheme(this: *mut core::ffi::c_void, psztheme: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::SetTheme(this, core::mem::transmute(&psztheme)).into() } - unsafe extern "system" fn GetNextItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcgi: NSTCGNI, ppsinext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn GetNextItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcgi: NSTCGNI, ppsinext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControl_Impl::GetNextItem(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&nstcgi)) { Ok(ok__) => { @@ -12893,10 +9653,7 @@ impl INameSpaceTreeControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HitTest(this: *mut core::ffi::c_void, ppt: *const super::super::Foundation::POINT, ppsiout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn HitTest(this: *mut core::ffi::c_void, ppt: *const super::super::Foundation::POINT, ppsiout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControl_Impl::HitTest(this, core::mem::transmute_copy(&ppt)) { Ok(ok__) => { @@ -12906,10 +9663,7 @@ impl INameSpaceTreeControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemRect(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn GetItemRect(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControl_Impl::GetItemRect(this, windows_core::from_raw_borrowed(&psi)) { Ok(ok__) => { @@ -12919,10 +9673,7 @@ impl INameSpaceTreeControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CollapseAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl_Impl, - { + unsafe extern "system" fn CollapseAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl_Impl::CollapseAll(this).into() } @@ -12961,21 +9712,12 @@ pub trait INameSpaceTreeControl2_Impl: Sized + INameSpaceTreeControl_Impl { } impl windows_core::RuntimeName for INameSpaceTreeControl2 {} impl INameSpaceTreeControl2_Vtbl { - pub const fn new() -> INameSpaceTreeControl2_Vtbl - where - Identity: INameSpaceTreeControl2_Impl, - { - unsafe extern "system" fn SetControlStyle(this: *mut core::ffi::c_void, nstcsmask: u32, nstcsstyle: u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl2_Impl, - { + pub const fn new() -> INameSpaceTreeControl2_Vtbl { + unsafe extern "system" fn SetControlStyle(this: *mut core::ffi::c_void, nstcsmask: u32, nstcsstyle: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl2_Impl::SetControlStyle(this, core::mem::transmute_copy(&nstcsmask), core::mem::transmute_copy(&nstcsstyle)).into() } - unsafe extern "system" fn GetControlStyle(this: *mut core::ffi::c_void, nstcsmask: u32, pnstcsstyle: *mut u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl2_Impl, - { + unsafe extern "system" fn GetControlStyle(this: *mut core::ffi::c_void, nstcsmask: u32, pnstcsstyle: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControl2_Impl::GetControlStyle(this, core::mem::transmute_copy(&nstcsmask)) { Ok(ok__) => { @@ -12985,17 +9727,11 @@ impl INameSpaceTreeControl2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetControlStyle2(this: *mut core::ffi::c_void, nstcsmask: NSTCSTYLE2, nstcsstyle: NSTCSTYLE2) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl2_Impl, - { + unsafe extern "system" fn SetControlStyle2(this: *mut core::ffi::c_void, nstcsmask: NSTCSTYLE2, nstcsstyle: NSTCSTYLE2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControl2_Impl::SetControlStyle2(this, core::mem::transmute_copy(&nstcsmask), core::mem::transmute_copy(&nstcsstyle)).into() } - unsafe extern "system" fn GetControlStyle2(this: *mut core::ffi::c_void, nstcsmask: NSTCSTYLE2, pnstcsstyle: *mut NSTCSTYLE2) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControl2_Impl, - { + unsafe extern "system" fn GetControlStyle2(this: *mut core::ffi::c_void, nstcsmask: NSTCSTYLE2, pnstcsstyle: *mut NSTCSTYLE2) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControl2_Impl::GetControlStyle2(this, core::mem::transmute_copy(&nstcsmask)) { Ok(ok__) => { @@ -13018,7 +9754,7 @@ impl INameSpaceTreeControl2_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] -pub trait INameSpaceTreeControlCustomDraw_Impl: Sized { +pub trait INameSpaceTreeControlCustomDraw_Impl: Sized + windows_core::IUnknownImpl { fn PrePaint(&self, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT) -> windows_core::Result; fn PostPaint(&self, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn ItemPrePaint(&self, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, pnstccditem: *const NSTCCUSTOMDRAW, pclrtext: *mut super::super::Foundation::COLORREF, pclrtextbk: *mut super::super::Foundation::COLORREF, plres: *mut super::super::Foundation::LRESULT) -> windows_core::Result<()>; @@ -13028,14 +9764,8 @@ pub trait INameSpaceTreeControlCustomDraw_Impl: Sized { impl windows_core::RuntimeName for INameSpaceTreeControlCustomDraw {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] impl INameSpaceTreeControlCustomDraw_Vtbl { - pub const fn new() -> INameSpaceTreeControlCustomDraw_Vtbl - where - Identity: INameSpaceTreeControlCustomDraw_Impl, - { - unsafe extern "system" fn PrePaint(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, plres: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlCustomDraw_Impl, - { + pub const fn new() -> INameSpaceTreeControlCustomDraw_Vtbl { + unsafe extern "system" fn PrePaint(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, plres: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControlCustomDraw_Impl::PrePaint(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&prc)) { Ok(ok__) => { @@ -13045,24 +9775,15 @@ impl INameSpaceTreeControlCustomDraw_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PostPaint(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlCustomDraw_Impl, - { + unsafe extern "system" fn PostPaint(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlCustomDraw_Impl::PostPaint(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn ItemPrePaint(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, pnstccditem: *const NSTCCUSTOMDRAW, pclrtext: *mut super::super::Foundation::COLORREF, pclrtextbk: *mut super::super::Foundation::COLORREF, plres: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlCustomDraw_Impl, - { + unsafe extern "system" fn ItemPrePaint(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, pnstccditem: *const NSTCCUSTOMDRAW, pclrtext: *mut super::super::Foundation::COLORREF, pclrtextbk: *mut super::super::Foundation::COLORREF, plres: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlCustomDraw_Impl::ItemPrePaint(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pnstccditem), core::mem::transmute_copy(&pclrtext), core::mem::transmute_copy(&pclrtextbk), core::mem::transmute_copy(&plres)).into() } - unsafe extern "system" fn ItemPostPaint(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, pnstccditem: *const NSTCCUSTOMDRAW) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlCustomDraw_Impl, - { + unsafe extern "system" fn ItemPostPaint(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, prc: *const super::super::Foundation::RECT, pnstccditem: *const NSTCCUSTOMDRAW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlCustomDraw_Impl::ItemPostPaint(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pnstccditem)).into() } @@ -13078,7 +9799,7 @@ impl INameSpaceTreeControlCustomDraw_Vtbl { iid == &::IID } } -pub trait INameSpaceTreeControlDropHandler_Impl: Sized { +pub trait INameSpaceTreeControlDropHandler_Impl: Sized + windows_core::IUnknownImpl { fn OnDragEnter(&self, psiover: Option<&IShellItem>, psiadata: Option<&IShellItemArray>, foutsidesource: super::super::Foundation::BOOL, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::Result<()>; fn OnDragOver(&self, psiover: Option<&IShellItem>, psiadata: Option<&IShellItemArray>, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::Result<()>; fn OnDragPosition(&self, psiover: Option<&IShellItem>, psiadata: Option<&IShellItemArray>, inewposition: i32, ioldposition: i32) -> windows_core::Result<()>; @@ -13088,49 +9809,28 @@ pub trait INameSpaceTreeControlDropHandler_Impl: Sized { } impl windows_core::RuntimeName for INameSpaceTreeControlDropHandler {} impl INameSpaceTreeControlDropHandler_Vtbl { - pub const fn new() -> INameSpaceTreeControlDropHandler_Vtbl - where - Identity: INameSpaceTreeControlDropHandler_Impl, - { - unsafe extern "system" fn OnDragEnter(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, foutsidesource: super::super::Foundation::BOOL, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlDropHandler_Impl, - { + pub const fn new() -> INameSpaceTreeControlDropHandler_Vtbl { + unsafe extern "system" fn OnDragEnter(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, foutsidesource: super::super::Foundation::BOOL, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlDropHandler_Impl::OnDragEnter(this, windows_core::from_raw_borrowed(&psiover), windows_core::from_raw_borrowed(&psiadata), core::mem::transmute_copy(&foutsidesource), core::mem::transmute_copy(&grfkeystate), core::mem::transmute_copy(&pdweffect)).into() } - unsafe extern "system" fn OnDragOver(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlDropHandler_Impl, - { + unsafe extern "system" fn OnDragOver(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlDropHandler_Impl::OnDragOver(this, windows_core::from_raw_borrowed(&psiover), windows_core::from_raw_borrowed(&psiadata), core::mem::transmute_copy(&grfkeystate), core::mem::transmute_copy(&pdweffect)).into() } - unsafe extern "system" fn OnDragPosition(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, inewposition: i32, ioldposition: i32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlDropHandler_Impl, - { + unsafe extern "system" fn OnDragPosition(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, inewposition: i32, ioldposition: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlDropHandler_Impl::OnDragPosition(this, windows_core::from_raw_borrowed(&psiover), windows_core::from_raw_borrowed(&psiadata), core::mem::transmute_copy(&inewposition), core::mem::transmute_copy(&ioldposition)).into() } - unsafe extern "system" fn OnDrop(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, iposition: i32, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlDropHandler_Impl, - { + unsafe extern "system" fn OnDrop(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, iposition: i32, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlDropHandler_Impl::OnDrop(this, windows_core::from_raw_borrowed(&psiover), windows_core::from_raw_borrowed(&psiadata), core::mem::transmute_copy(&iposition), core::mem::transmute_copy(&grfkeystate), core::mem::transmute_copy(&pdweffect)).into() } - unsafe extern "system" fn OnDropPosition(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, inewposition: i32, ioldposition: i32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlDropHandler_Impl, - { + unsafe extern "system" fn OnDropPosition(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, inewposition: i32, ioldposition: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlDropHandler_Impl::OnDropPosition(this, windows_core::from_raw_borrowed(&psiover), windows_core::from_raw_borrowed(&psiadata), core::mem::transmute_copy(&inewposition), core::mem::transmute_copy(&ioldposition)).into() } - unsafe extern "system" fn OnDragLeave(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlDropHandler_Impl, - { + unsafe extern "system" fn OnDragLeave(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlDropHandler_Impl::OnDragLeave(this, windows_core::from_raw_borrowed(&psiover)).into() } @@ -13148,7 +9848,7 @@ impl INameSpaceTreeControlDropHandler_Vtbl { iid == &::IID } } -pub trait INameSpaceTreeControlEvents_Impl: Sized { +pub trait INameSpaceTreeControlEvents_Impl: Sized + windows_core::IUnknownImpl { fn OnItemClick(&self, psi: Option<&IShellItem>, nstcehittest: u32, nstceclicktype: u32) -> windows_core::Result<()>; fn OnPropertyItemCommit(&self, psi: Option<&IShellItem>) -> windows_core::Result<()>; fn OnItemStateChanging(&self, psi: Option<&IShellItem>, nstcismask: u32, nstcisstate: u32) -> windows_core::Result<()>; @@ -13170,133 +9870,76 @@ pub trait INameSpaceTreeControlEvents_Impl: Sized { } impl windows_core::RuntimeName for INameSpaceTreeControlEvents {} impl INameSpaceTreeControlEvents_Vtbl { - pub const fn new() -> INameSpaceTreeControlEvents_Vtbl - where - Identity: INameSpaceTreeControlEvents_Impl, - { - unsafe extern "system" fn OnItemClick(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcehittest: u32, nstceclicktype: u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + pub const fn new() -> INameSpaceTreeControlEvents_Vtbl { + unsafe extern "system" fn OnItemClick(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcehittest: u32, nstceclicktype: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnItemClick(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&nstcehittest), core::mem::transmute_copy(&nstceclicktype)).into() } - unsafe extern "system" fn OnPropertyItemCommit(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnPropertyItemCommit(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnPropertyItemCommit(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn OnItemStateChanging(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcismask: u32, nstcisstate: u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnItemStateChanging(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcismask: u32, nstcisstate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnItemStateChanging(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&nstcismask), core::mem::transmute_copy(&nstcisstate)).into() } - unsafe extern "system" fn OnItemStateChanged(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcismask: u32, nstcisstate: u32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnItemStateChanged(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, nstcismask: u32, nstcisstate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnItemStateChanged(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&nstcismask), core::mem::transmute_copy(&nstcisstate)).into() } - unsafe extern "system" fn OnSelectionChanged(this: *mut core::ffi::c_void, psiaselection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnSelectionChanged(this: *mut core::ffi::c_void, psiaselection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnSelectionChanged(this, windows_core::from_raw_borrowed(&psiaselection)).into() } - unsafe extern "system" fn OnKeyboardInput(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnKeyboardInput(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnKeyboardInput(this, core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn OnBeforeExpand(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnBeforeExpand(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnBeforeExpand(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn OnAfterExpand(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnAfterExpand(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnAfterExpand(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn OnBeginLabelEdit(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnBeginLabelEdit(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnBeginLabelEdit(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn OnEndLabelEdit(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnEndLabelEdit(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnEndLabelEdit(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn OnGetToolTip(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, psztip: windows_core::PWSTR, cchtip: i32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnGetToolTip(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, psztip: windows_core::PWSTR, cchtip: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnGetToolTip(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&psztip), core::mem::transmute_copy(&cchtip)).into() } - unsafe extern "system" fn OnBeforeItemDelete(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnBeforeItemDelete(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnBeforeItemDelete(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn OnItemAdded(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, fisroot: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnItemAdded(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, fisroot: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnItemAdded(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&fisroot)).into() } - unsafe extern "system" fn OnItemDeleted(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, fisroot: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnItemDeleted(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, fisroot: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnItemDeleted(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&fisroot)).into() } - unsafe extern "system" fn OnBeforeContextMenu(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnBeforeContextMenu(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnBeforeContextMenu(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn OnAfterContextMenu(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pcmin: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnAfterContextMenu(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pcmin: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnAfterContextMenu(this, windows_core::from_raw_borrowed(&psi), windows_core::from_raw_borrowed(&pcmin), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn OnBeforeStateImageChange(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnBeforeStateImageChange(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnBeforeStateImageChange(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn OnGetDefaultIconIndex(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pidefaulticon: *mut i32, piopenicon: *mut i32) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlEvents_Impl, - { + unsafe extern "system" fn OnGetDefaultIconIndex(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pidefaulticon: *mut i32, piopenicon: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnGetDefaultIconIndex(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&pidefaulticon), core::mem::transmute_copy(&piopenicon)).into() } @@ -13326,19 +9969,13 @@ impl INameSpaceTreeControlEvents_Vtbl { iid == &::IID } } -pub trait INameSpaceTreeControlFolderCapabilities_Impl: Sized { +pub trait INameSpaceTreeControlFolderCapabilities_Impl: Sized + windows_core::IUnknownImpl { fn GetFolderCapabilities(&self, nfcmask: NSTCFOLDERCAPABILITIES) -> windows_core::Result; } impl windows_core::RuntimeName for INameSpaceTreeControlFolderCapabilities {} impl INameSpaceTreeControlFolderCapabilities_Vtbl { - pub const fn new() -> INameSpaceTreeControlFolderCapabilities_Vtbl - where - Identity: INameSpaceTreeControlFolderCapabilities_Impl, - { - unsafe extern "system" fn GetFolderCapabilities(this: *mut core::ffi::c_void, nfcmask: NSTCFOLDERCAPABILITIES, pnfcvalue: *mut NSTCFOLDERCAPABILITIES) -> windows_core::HRESULT - where - Identity: INameSpaceTreeControlFolderCapabilities_Impl, - { + pub const fn new() -> INameSpaceTreeControlFolderCapabilities_Vtbl { + unsafe extern "system" fn GetFolderCapabilities(this: *mut core::ffi::c_void, nfcmask: NSTCFOLDERCAPABILITIES, pnfcvalue: *mut NSTCFOLDERCAPABILITIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INameSpaceTreeControlFolderCapabilities_Impl::GetFolderCapabilities(this, core::mem::transmute_copy(&nfcmask)) { Ok(ok__) => { @@ -13354,35 +9991,23 @@ impl INameSpaceTreeControlFolderCapabilities_Vtbl { iid == &::IID } } -pub trait INamedPropertyBag_Impl: Sized { +pub trait INamedPropertyBag_Impl: Sized + windows_core::IUnknownImpl { fn ReadPropertyNPB(&self, pszbagname: &windows_core::PCWSTR, pszpropname: &windows_core::PCWSTR, pvar: *mut windows_core::PROPVARIANT) -> windows_core::Result<()>; fn WritePropertyNPB(&self, pszbagname: &windows_core::PCWSTR, pszpropname: &windows_core::PCWSTR, pvar: *const windows_core::PROPVARIANT) -> windows_core::Result<()>; fn RemovePropertyNPB(&self, pszbagname: &windows_core::PCWSTR, pszpropname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INamedPropertyBag {} impl INamedPropertyBag_Vtbl { - pub const fn new() -> INamedPropertyBag_Vtbl - where - Identity: INamedPropertyBag_Impl, - { - unsafe extern "system" fn ReadPropertyNPB(this: *mut core::ffi::c_void, pszbagname: windows_core::PCWSTR, pszpropname: windows_core::PCWSTR, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INamedPropertyBag_Impl, - { + pub const fn new() -> INamedPropertyBag_Vtbl { + unsafe extern "system" fn ReadPropertyNPB(this: *mut core::ffi::c_void, pszbagname: windows_core::PCWSTR, pszpropname: windows_core::PCWSTR, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamedPropertyBag_Impl::ReadPropertyNPB(this, core::mem::transmute(&pszbagname), core::mem::transmute(&pszpropname), core::mem::transmute_copy(&pvar)).into() } - unsafe extern "system" fn WritePropertyNPB(this: *mut core::ffi::c_void, pszbagname: windows_core::PCWSTR, pszpropname: windows_core::PCWSTR, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: INamedPropertyBag_Impl, - { + unsafe extern "system" fn WritePropertyNPB(this: *mut core::ffi::c_void, pszbagname: windows_core::PCWSTR, pszpropname: windows_core::PCWSTR, pvar: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamedPropertyBag_Impl::WritePropertyNPB(this, core::mem::transmute(&pszbagname), core::mem::transmute(&pszpropname), core::mem::transmute_copy(&pvar)).into() } - unsafe extern "system" fn RemovePropertyNPB(this: *mut core::ffi::c_void, pszbagname: windows_core::PCWSTR, pszpropname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: INamedPropertyBag_Impl, - { + unsafe extern "system" fn RemovePropertyNPB(this: *mut core::ffi::c_void, pszbagname: windows_core::PCWSTR, pszpropname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamedPropertyBag_Impl::RemovePropertyNPB(this, core::mem::transmute(&pszbagname), core::mem::transmute(&pszpropname)).into() } @@ -13398,7 +10023,7 @@ impl INamedPropertyBag_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait INamespaceWalk_Impl: Sized { +pub trait INamespaceWalk_Impl: Sized + windows_core::IUnknownImpl { fn Walk(&self, punktowalk: Option<&windows_core::IUnknown>, dwflags: u32, cdepth: i32, pnswcb: Option<&INamespaceWalkCB>) -> windows_core::Result<()>; fn GetIDArrayResult(&self, pcitems: *mut u32, prgpidl: *mut *mut *mut Common::ITEMIDLIST) -> windows_core::Result<()>; } @@ -13406,21 +10031,12 @@ pub trait INamespaceWalk_Impl: Sized { impl windows_core::RuntimeName for INamespaceWalk {} #[cfg(feature = "Win32_UI_Shell_Common")] impl INamespaceWalk_Vtbl { - pub const fn new() -> INamespaceWalk_Vtbl - where - Identity: INamespaceWalk_Impl, - { - unsafe extern "system" fn Walk(this: *mut core::ffi::c_void, punktowalk: *mut core::ffi::c_void, dwflags: u32, cdepth: i32, pnswcb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INamespaceWalk_Impl, - { + pub const fn new() -> INamespaceWalk_Vtbl { + unsafe extern "system" fn Walk(this: *mut core::ffi::c_void, punktowalk: *mut core::ffi::c_void, dwflags: u32, cdepth: i32, pnswcb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamespaceWalk_Impl::Walk(this, windows_core::from_raw_borrowed(&punktowalk), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&cdepth), windows_core::from_raw_borrowed(&pnswcb)).into() } - unsafe extern "system" fn GetIDArrayResult(this: *mut core::ffi::c_void, pcitems: *mut u32, prgpidl: *mut *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: INamespaceWalk_Impl, - { + unsafe extern "system" fn GetIDArrayResult(this: *mut core::ffi::c_void, pcitems: *mut u32, prgpidl: *mut *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamespaceWalk_Impl::GetIDArrayResult(this, core::mem::transmute_copy(&pcitems), core::mem::transmute_copy(&prgpidl)).into() } @@ -13435,7 +10051,7 @@ impl INamespaceWalk_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait INamespaceWalkCB_Impl: Sized { +pub trait INamespaceWalkCB_Impl: Sized + windows_core::IUnknownImpl { fn FoundItem(&self, psf: Option<&IShellFolder>, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()>; fn EnterFolder(&self, psf: Option<&IShellFolder>, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()>; fn LeaveFolder(&self, psf: Option<&IShellFolder>, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()>; @@ -13445,35 +10061,20 @@ pub trait INamespaceWalkCB_Impl: Sized { impl windows_core::RuntimeName for INamespaceWalkCB {} #[cfg(feature = "Win32_UI_Shell_Common")] impl INamespaceWalkCB_Vtbl { - pub const fn new() -> INamespaceWalkCB_Vtbl - where - Identity: INamespaceWalkCB_Impl, - { - unsafe extern "system" fn FoundItem(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: INamespaceWalkCB_Impl, - { + pub const fn new() -> INamespaceWalkCB_Vtbl { + unsafe extern "system" fn FoundItem(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamespaceWalkCB_Impl::FoundItem(this, windows_core::from_raw_borrowed(&psf), core::mem::transmute_copy(&pidl)).into() } - unsafe extern "system" fn EnterFolder(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: INamespaceWalkCB_Impl, - { + unsafe extern "system" fn EnterFolder(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamespaceWalkCB_Impl::EnterFolder(this, windows_core::from_raw_borrowed(&psf), core::mem::transmute_copy(&pidl)).into() } - unsafe extern "system" fn LeaveFolder(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: INamespaceWalkCB_Impl, - { + unsafe extern "system" fn LeaveFolder(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamespaceWalkCB_Impl::LeaveFolder(this, windows_core::from_raw_borrowed(&psf), core::mem::transmute_copy(&pidl)).into() } - unsafe extern "system" fn InitializeProgressDialog(this: *mut core::ffi::c_void, ppsztitle: *mut windows_core::PWSTR, ppszcancel: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INamespaceWalkCB_Impl, - { + unsafe extern "system" fn InitializeProgressDialog(this: *mut core::ffi::c_void, ppsztitle: *mut windows_core::PWSTR, ppszcancel: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamespaceWalkCB_Impl::InitializeProgressDialog(this, core::mem::transmute_copy(&ppsztitle), core::mem::transmute_copy(&ppszcancel)).into() } @@ -13497,14 +10098,8 @@ pub trait INamespaceWalkCB2_Impl: Sized + INamespaceWalkCB_Impl { impl windows_core::RuntimeName for INamespaceWalkCB2 {} #[cfg(feature = "Win32_UI_Shell_Common")] impl INamespaceWalkCB2_Vtbl { - pub const fn new() -> INamespaceWalkCB2_Vtbl - where - Identity: INamespaceWalkCB2_Impl, - { - unsafe extern "system" fn WalkComplete(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: INamespaceWalkCB2_Impl, - { + pub const fn new() -> INamespaceWalkCB2_Vtbl { + unsafe extern "system" fn WalkComplete(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INamespaceWalkCB2_Impl::WalkComplete(this, core::mem::transmute_copy(&hr)).into() } @@ -13515,7 +10110,7 @@ impl INamespaceWalkCB2_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait INetworkFolderInternal_Impl: Sized { +pub trait INetworkFolderInternal_Impl: Sized + windows_core::IUnknownImpl { fn GetResourceDisplayType(&self) -> windows_core::Result; fn GetIDList(&self) -> windows_core::Result<*mut Common::ITEMIDLIST>; fn GetProvider(&self, itemidcount: u32, itemids: *const *const Common::ITEMIDLIST, providermaxlength: u32, provider: windows_core::PWSTR) -> windows_core::Result<()>; @@ -13524,14 +10119,8 @@ pub trait INetworkFolderInternal_Impl: Sized { impl windows_core::RuntimeName for INetworkFolderInternal {} #[cfg(feature = "Win32_UI_Shell_Common")] impl INetworkFolderInternal_Vtbl { - pub const fn new() -> INetworkFolderInternal_Vtbl - where - Identity: INetworkFolderInternal_Impl, - { - unsafe extern "system" fn GetResourceDisplayType(this: *mut core::ffi::c_void, displaytype: *mut u32) -> windows_core::HRESULT - where - Identity: INetworkFolderInternal_Impl, - { + pub const fn new() -> INetworkFolderInternal_Vtbl { + unsafe extern "system" fn GetResourceDisplayType(this: *mut core::ffi::c_void, displaytype: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkFolderInternal_Impl::GetResourceDisplayType(this) { Ok(ok__) => { @@ -13541,10 +10130,7 @@ impl INetworkFolderInternal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, idlist: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: INetworkFolderInternal_Impl, - { + unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, idlist: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkFolderInternal_Impl::GetIDList(this) { Ok(ok__) => { @@ -13554,10 +10140,7 @@ impl INetworkFolderInternal_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, itemidcount: u32, itemids: *const *const Common::ITEMIDLIST, providermaxlength: u32, provider: windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: INetworkFolderInternal_Impl, - { + unsafe extern "system" fn GetProvider(this: *mut core::ffi::c_void, itemidcount: u32, itemids: *const *const Common::ITEMIDLIST, providermaxlength: u32, provider: windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetworkFolderInternal_Impl::GetProvider(this, core::mem::transmute_copy(&itemidcount), core::mem::transmute_copy(&itemids), core::mem::transmute_copy(&providermaxlength), core::mem::transmute_copy(&provider)).into() } @@ -13573,7 +10156,7 @@ impl INetworkFolderInternal_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait INewMenuClient_Impl: Sized { +pub trait INewMenuClient_Impl: Sized + windows_core::IUnknownImpl { fn IncludeItems(&self) -> windows_core::Result; fn SelectAndEditItem(&self, pidlitem: *const Common::ITEMIDLIST, flags: i32) -> windows_core::Result<()>; } @@ -13581,14 +10164,8 @@ pub trait INewMenuClient_Impl: Sized { impl windows_core::RuntimeName for INewMenuClient {} #[cfg(feature = "Win32_UI_Shell_Common")] impl INewMenuClient_Vtbl { - pub const fn new() -> INewMenuClient_Vtbl - where - Identity: INewMenuClient_Impl, - { - unsafe extern "system" fn IncludeItems(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT - where - Identity: INewMenuClient_Impl, - { + pub const fn new() -> INewMenuClient_Vtbl { + unsafe extern "system" fn IncludeItems(this: *mut core::ffi::c_void, pflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INewMenuClient_Impl::IncludeItems(this) { Ok(ok__) => { @@ -13598,10 +10175,7 @@ impl INewMenuClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectAndEditItem(this: *mut core::ffi::c_void, pidlitem: *const Common::ITEMIDLIST, flags: i32) -> windows_core::HRESULT - where - Identity: INewMenuClient_Impl, - { + unsafe extern "system" fn SelectAndEditItem(this: *mut core::ffi::c_void, pidlitem: *const Common::ITEMIDLIST, flags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewMenuClient_Impl::SelectAndEditItem(this, core::mem::transmute_copy(&pidlitem), core::mem::transmute_copy(&flags)).into() } @@ -13615,7 +10189,7 @@ impl INewMenuClient_Vtbl { iid == &::IID } } -pub trait INewShortcutHookA_Impl: Sized { +pub trait INewShortcutHookA_Impl: Sized + windows_core::IUnknownImpl { fn SetReferent(&self, pcszreferent: &windows_core::PCSTR, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn GetReferent(&self, pszreferent: windows_core::PSTR, cchreferent: i32) -> windows_core::Result<()>; fn SetFolder(&self, pcszfolder: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -13625,49 +10199,28 @@ pub trait INewShortcutHookA_Impl: Sized { } impl windows_core::RuntimeName for INewShortcutHookA {} impl INewShortcutHookA_Vtbl { - pub const fn new() -> INewShortcutHookA_Vtbl - where - Identity: INewShortcutHookA_Impl, - { - unsafe extern "system" fn SetReferent(this: *mut core::ffi::c_void, pcszreferent: windows_core::PCSTR, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: INewShortcutHookA_Impl, - { + pub const fn new() -> INewShortcutHookA_Vtbl { + unsafe extern "system" fn SetReferent(this: *mut core::ffi::c_void, pcszreferent: windows_core::PCSTR, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookA_Impl::SetReferent(this, core::mem::transmute(&pcszreferent), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn GetReferent(this: *mut core::ffi::c_void, pszreferent: windows_core::PSTR, cchreferent: i32) -> windows_core::HRESULT - where - Identity: INewShortcutHookA_Impl, - { + unsafe extern "system" fn GetReferent(this: *mut core::ffi::c_void, pszreferent: windows_core::PSTR, cchreferent: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookA_Impl::GetReferent(this, core::mem::transmute_copy(&pszreferent), core::mem::transmute_copy(&cchreferent)).into() } - unsafe extern "system" fn SetFolder(this: *mut core::ffi::c_void, pcszfolder: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: INewShortcutHookA_Impl, - { + unsafe extern "system" fn SetFolder(this: *mut core::ffi::c_void, pcszfolder: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookA_Impl::SetFolder(this, core::mem::transmute(&pcszfolder)).into() } - unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, pszfolder: windows_core::PSTR, cchfolder: i32) -> windows_core::HRESULT - where - Identity: INewShortcutHookA_Impl, - { + unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, pszfolder: windows_core::PSTR, cchfolder: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookA_Impl::GetFolder(this, core::mem::transmute_copy(&pszfolder), core::mem::transmute_copy(&cchfolder)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pszname: windows_core::PSTR, cchname: i32) -> windows_core::HRESULT - where - Identity: INewShortcutHookA_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pszname: windows_core::PSTR, cchname: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookA_Impl::GetName(this, core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchname)).into() } - unsafe extern "system" fn GetExtension(this: *mut core::ffi::c_void, pszextension: windows_core::PSTR, cchextension: i32) -> windows_core::HRESULT - where - Identity: INewShortcutHookA_Impl, - { + unsafe extern "system" fn GetExtension(this: *mut core::ffi::c_void, pszextension: windows_core::PSTR, cchextension: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookA_Impl::GetExtension(this, core::mem::transmute_copy(&pszextension), core::mem::transmute_copy(&cchextension)).into() } @@ -13685,7 +10238,7 @@ impl INewShortcutHookA_Vtbl { iid == &::IID } } -pub trait INewShortcutHookW_Impl: Sized { +pub trait INewShortcutHookW_Impl: Sized + windows_core::IUnknownImpl { fn SetReferent(&self, pcszreferent: &windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn GetReferent(&self, pszreferent: windows_core::PWSTR, cchreferent: i32) -> windows_core::Result<()>; fn SetFolder(&self, pcszfolder: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -13695,49 +10248,28 @@ pub trait INewShortcutHookW_Impl: Sized { } impl windows_core::RuntimeName for INewShortcutHookW {} impl INewShortcutHookW_Vtbl { - pub const fn new() -> INewShortcutHookW_Vtbl - where - Identity: INewShortcutHookW_Impl, - { - unsafe extern "system" fn SetReferent(this: *mut core::ffi::c_void, pcszreferent: windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: INewShortcutHookW_Impl, - { + pub const fn new() -> INewShortcutHookW_Vtbl { + unsafe extern "system" fn SetReferent(this: *mut core::ffi::c_void, pcszreferent: windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookW_Impl::SetReferent(this, core::mem::transmute(&pcszreferent), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn GetReferent(this: *mut core::ffi::c_void, pszreferent: windows_core::PWSTR, cchreferent: i32) -> windows_core::HRESULT - where - Identity: INewShortcutHookW_Impl, - { + unsafe extern "system" fn GetReferent(this: *mut core::ffi::c_void, pszreferent: windows_core::PWSTR, cchreferent: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookW_Impl::GetReferent(this, core::mem::transmute_copy(&pszreferent), core::mem::transmute_copy(&cchreferent)).into() } - unsafe extern "system" fn SetFolder(this: *mut core::ffi::c_void, pcszfolder: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: INewShortcutHookW_Impl, - { + unsafe extern "system" fn SetFolder(this: *mut core::ffi::c_void, pcszfolder: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookW_Impl::SetFolder(this, core::mem::transmute(&pcszfolder)).into() } - unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, pszfolder: windows_core::PWSTR, cchfolder: i32) -> windows_core::HRESULT - where - Identity: INewShortcutHookW_Impl, - { + unsafe extern "system" fn GetFolder(this: *mut core::ffi::c_void, pszfolder: windows_core::PWSTR, cchfolder: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookW_Impl::GetFolder(this, core::mem::transmute_copy(&pszfolder), core::mem::transmute_copy(&cchfolder)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchname: i32) -> windows_core::HRESULT - where - Identity: INewShortcutHookW_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cchname: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookW_Impl::GetName(this, core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cchname)).into() } - unsafe extern "system" fn GetExtension(this: *mut core::ffi::c_void, pszextension: windows_core::PWSTR, cchextension: i32) -> windows_core::HRESULT - where - Identity: INewShortcutHookW_Impl, - { + unsafe extern "system" fn GetExtension(this: *mut core::ffi::c_void, pszextension: windows_core::PWSTR, cchextension: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewShortcutHookW_Impl::GetExtension(this, core::mem::transmute_copy(&pszextension), core::mem::transmute_copy(&cchextension)).into() } @@ -13763,14 +10295,8 @@ pub trait INewWDEvents_Impl: Sized + IWebWizardHost_Impl { impl windows_core::RuntimeName for INewWDEvents {} #[cfg(feature = "Win32_System_Com")] impl INewWDEvents_Vtbl { - pub const fn new() -> INewWDEvents_Vtbl - where - Identity: INewWDEvents_Impl, - { - unsafe extern "system" fn PassportAuthenticate(this: *mut core::ffi::c_void, bstrsigninurl: core::mem::MaybeUninit, pvfauthenitcated: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: INewWDEvents_Impl, - { + pub const fn new() -> INewWDEvents_Vtbl { + unsafe extern "system" fn PassportAuthenticate(this: *mut core::ffi::c_void, bstrsigninurl: core::mem::MaybeUninit, pvfauthenitcated: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INewWDEvents_Impl::PassportAuthenticate(this, core::mem::transmute(&bstrsigninurl)) { Ok(ok__) => { @@ -13786,19 +10312,13 @@ impl INewWDEvents_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait INewWindowManager_Impl: Sized { +pub trait INewWindowManager_Impl: Sized + windows_core::IUnknownImpl { fn EvaluateNewWindow(&self, pszurl: &windows_core::PCWSTR, pszname: &windows_core::PCWSTR, pszurlcontext: &windows_core::PCWSTR, pszfeatures: &windows_core::PCWSTR, freplace: super::super::Foundation::BOOL, dwflags: u32, dwuseractiontime: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for INewWindowManager {} impl INewWindowManager_Vtbl { - pub const fn new() -> INewWindowManager_Vtbl - where - Identity: INewWindowManager_Impl, - { - unsafe extern "system" fn EvaluateNewWindow(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pszname: windows_core::PCWSTR, pszurlcontext: windows_core::PCWSTR, pszfeatures: windows_core::PCWSTR, freplace: super::super::Foundation::BOOL, dwflags: u32, dwuseractiontime: u32) -> windows_core::HRESULT - where - Identity: INewWindowManager_Impl, - { + pub const fn new() -> INewWindowManager_Vtbl { + unsafe extern "system" fn EvaluateNewWindow(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pszname: windows_core::PCWSTR, pszurlcontext: windows_core::PCWSTR, pszfeatures: windows_core::PCWSTR, freplace: super::super::Foundation::BOOL, dwflags: u32, dwuseractiontime: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewWindowManager_Impl::EvaluateNewWindow(this, core::mem::transmute(&pszurl), core::mem::transmute(&pszname), core::mem::transmute(&pszurlcontext), core::mem::transmute(&pszfeatures), core::mem::transmute_copy(&freplace), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwuseractiontime)).into() } @@ -13809,21 +10329,15 @@ impl INewWindowManager_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait INotifyReplica_Impl: Sized { +pub trait INotifyReplica_Impl: Sized + windows_core::IUnknownImpl { fn YouAreAReplica(&self, ulcotherreplicas: u32, rgpmkotherreplicas: *mut Option) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for INotifyReplica {} #[cfg(feature = "Win32_System_Com")] impl INotifyReplica_Vtbl { - pub const fn new() -> INotifyReplica_Vtbl - where - Identity: INotifyReplica_Impl, - { - unsafe extern "system" fn YouAreAReplica(this: *mut core::ffi::c_void, ulcotherreplicas: u32, rgpmkotherreplicas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: INotifyReplica_Impl, - { + pub const fn new() -> INotifyReplica_Vtbl { + unsafe extern "system" fn YouAreAReplica(this: *mut core::ffi::c_void, ulcotherreplicas: u32, rgpmkotherreplicas: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INotifyReplica_Impl::YouAreAReplica(this, core::mem::transmute_copy(&ulcotherreplicas), core::mem::transmute_copy(&rgpmkotherreplicas)).into() } @@ -13833,27 +10347,18 @@ impl INotifyReplica_Vtbl { iid == &::IID } } -pub trait IObjMgr_Impl: Sized { +pub trait IObjMgr_Impl: Sized + windows_core::IUnknownImpl { fn Append(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Remove(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjMgr {} impl IObjMgr_Vtbl { - pub const fn new() -> IObjMgr_Vtbl - where - Identity: IObjMgr_Impl, - { - unsafe extern "system" fn Append(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjMgr_Impl, - { + pub const fn new() -> IObjMgr_Vtbl { + unsafe extern "system" fn Append(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjMgr_Impl::Append(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjMgr_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjMgr_Impl::Remove(this, windows_core::from_raw_borrowed(&punk)).into() } @@ -13863,19 +10368,13 @@ impl IObjMgr_Vtbl { iid == &::IID } } -pub trait IObjectProvider_Impl: Sized { +pub trait IObjectProvider_Impl: Sized + windows_core::IUnknownImpl { fn QueryObject(&self, guidobject: *const windows_core::GUID, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjectProvider {} impl IObjectProvider_Vtbl { - pub const fn new() -> IObjectProvider_Vtbl - where - Identity: IObjectProvider_Impl, - { - unsafe extern "system" fn QueryObject(this: *mut core::ffi::c_void, guidobject: *const windows_core::GUID, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectProvider_Impl, - { + pub const fn new() -> IObjectProvider_Vtbl { + unsafe extern "system" fn QueryObject(this: *mut core::ffi::c_void, guidobject: *const windows_core::GUID, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectProvider_Impl::QueryObject(this, core::mem::transmute_copy(&guidobject), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvout)).into() } @@ -13885,27 +10384,18 @@ impl IObjectProvider_Vtbl { iid == &::IID } } -pub trait IObjectWithAppUserModelID_Impl: Sized { +pub trait IObjectWithAppUserModelID_Impl: Sized + windows_core::IUnknownImpl { fn SetAppID(&self, pszappid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetAppID(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IObjectWithAppUserModelID {} impl IObjectWithAppUserModelID_Vtbl { - pub const fn new() -> IObjectWithAppUserModelID_Vtbl - where - Identity: IObjectWithAppUserModelID_Impl, - { - unsafe extern "system" fn SetAppID(this: *mut core::ffi::c_void, pszappid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IObjectWithAppUserModelID_Impl, - { + pub const fn new() -> IObjectWithAppUserModelID_Vtbl { + unsafe extern "system" fn SetAppID(this: *mut core::ffi::c_void, pszappid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectWithAppUserModelID_Impl::SetAppID(this, core::mem::transmute(&pszappid)).into() } - unsafe extern "system" fn GetAppID(this: *mut core::ffi::c_void, ppszappid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IObjectWithAppUserModelID_Impl, - { + unsafe extern "system" fn GetAppID(this: *mut core::ffi::c_void, ppszappid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectWithAppUserModelID_Impl::GetAppID(this) { Ok(ok__) => { @@ -13921,19 +10411,13 @@ impl IObjectWithAppUserModelID_Vtbl { iid == &::IID } } -pub trait IObjectWithBackReferences_Impl: Sized { +pub trait IObjectWithBackReferences_Impl: Sized + windows_core::IUnknownImpl { fn RemoveBackReferences(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjectWithBackReferences {} impl IObjectWithBackReferences_Vtbl { - pub const fn new() -> IObjectWithBackReferences_Vtbl - where - Identity: IObjectWithBackReferences_Impl, - { - unsafe extern "system" fn RemoveBackReferences(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectWithBackReferences_Impl, - { + pub const fn new() -> IObjectWithBackReferences_Vtbl { + unsafe extern "system" fn RemoveBackReferences(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectWithBackReferences_Impl::RemoveBackReferences(this).into() } @@ -13943,19 +10427,13 @@ impl IObjectWithBackReferences_Vtbl { iid == &::IID } } -pub trait IObjectWithCancelEvent_Impl: Sized { +pub trait IObjectWithCancelEvent_Impl: Sized + windows_core::IUnknownImpl { fn GetCancelEvent(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IObjectWithCancelEvent {} impl IObjectWithCancelEvent_Vtbl { - pub const fn new() -> IObjectWithCancelEvent_Vtbl - where - Identity: IObjectWithCancelEvent_Impl, - { - unsafe extern "system" fn GetCancelEvent(this: *mut core::ffi::c_void, phevent: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: IObjectWithCancelEvent_Impl, - { + pub const fn new() -> IObjectWithCancelEvent_Vtbl { + unsafe extern "system" fn GetCancelEvent(this: *mut core::ffi::c_void, phevent: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectWithCancelEvent_Impl::GetCancelEvent(this) { Ok(ok__) => { @@ -13971,27 +10449,18 @@ impl IObjectWithCancelEvent_Vtbl { iid == &::IID } } -pub trait IObjectWithFolderEnumMode_Impl: Sized { +pub trait IObjectWithFolderEnumMode_Impl: Sized + windows_core::IUnknownImpl { fn SetMode(&self, femode: FOLDER_ENUM_MODE) -> windows_core::Result<()>; fn GetMode(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IObjectWithFolderEnumMode {} impl IObjectWithFolderEnumMode_Vtbl { - pub const fn new() -> IObjectWithFolderEnumMode_Vtbl - where - Identity: IObjectWithFolderEnumMode_Impl, - { - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, femode: FOLDER_ENUM_MODE) -> windows_core::HRESULT - where - Identity: IObjectWithFolderEnumMode_Impl, - { + pub const fn new() -> IObjectWithFolderEnumMode_Vtbl { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, femode: FOLDER_ENUM_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectWithFolderEnumMode_Impl::SetMode(this, core::mem::transmute_copy(&femode)).into() } - unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, pfemode: *mut FOLDER_ENUM_MODE) -> windows_core::HRESULT - where - Identity: IObjectWithFolderEnumMode_Impl, - { + unsafe extern "system" fn GetMode(this: *mut core::ffi::c_void, pfemode: *mut FOLDER_ENUM_MODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectWithFolderEnumMode_Impl::GetMode(this) { Ok(ok__) => { @@ -14007,27 +10476,18 @@ impl IObjectWithFolderEnumMode_Vtbl { iid == &::IID } } -pub trait IObjectWithProgID_Impl: Sized { +pub trait IObjectWithProgID_Impl: Sized + windows_core::IUnknownImpl { fn SetProgID(&self, pszprogid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetProgID(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IObjectWithProgID {} impl IObjectWithProgID_Vtbl { - pub const fn new() -> IObjectWithProgID_Vtbl - where - Identity: IObjectWithProgID_Impl, - { - unsafe extern "system" fn SetProgID(this: *mut core::ffi::c_void, pszprogid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IObjectWithProgID_Impl, - { + pub const fn new() -> IObjectWithProgID_Vtbl { + unsafe extern "system" fn SetProgID(this: *mut core::ffi::c_void, pszprogid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectWithProgID_Impl::SetProgID(this, core::mem::transmute(&pszprogid)).into() } - unsafe extern "system" fn GetProgID(this: *mut core::ffi::c_void, ppszprogid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IObjectWithProgID_Impl, - { + unsafe extern "system" fn GetProgID(this: *mut core::ffi::c_void, ppszprogid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectWithProgID_Impl::GetProgID(this) { Ok(ok__) => { @@ -14047,27 +10507,18 @@ impl IObjectWithProgID_Vtbl { iid == &::IID } } -pub trait IObjectWithSelection_Impl: Sized { +pub trait IObjectWithSelection_Impl: Sized + windows_core::IUnknownImpl { fn SetSelection(&self, psia: Option<&IShellItemArray>) -> windows_core::Result<()>; fn GetSelection(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IObjectWithSelection {} impl IObjectWithSelection_Vtbl { - pub const fn new() -> IObjectWithSelection_Vtbl - where - Identity: IObjectWithSelection_Impl, - { - unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, psia: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectWithSelection_Impl, - { + pub const fn new() -> IObjectWithSelection_Vtbl { + unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, psia: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectWithSelection_Impl::SetSelection(this, windows_core::from_raw_borrowed(&psia)).into() } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IObjectWithSelection_Impl, - { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectWithSelection_Impl::GetSelection(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -14081,35 +10532,23 @@ impl IObjectWithSelection_Vtbl { iid == &::IID } } -pub trait IOpenControlPanel_Impl: Sized { +pub trait IOpenControlPanel_Impl: Sized + windows_core::IUnknownImpl { fn Open(&self, pszname: &windows_core::PCWSTR, pszpage: &windows_core::PCWSTR, punksite: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetPath(&self, pszname: &windows_core::PCWSTR, pszpath: windows_core::PWSTR, cchpath: u32) -> windows_core::Result<()>; fn GetCurrentView(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOpenControlPanel {} impl IOpenControlPanel_Vtbl { - pub const fn new() -> IOpenControlPanel_Vtbl - where - Identity: IOpenControlPanel_Impl, - { - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pszpage: windows_core::PCWSTR, punksite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenControlPanel_Impl, - { + pub const fn new() -> IOpenControlPanel_Vtbl { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pszpage: windows_core::PCWSTR, punksite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenControlPanel_Impl::Open(this, core::mem::transmute(&pszname), core::mem::transmute(&pszpage), windows_core::from_raw_borrowed(&punksite)).into() } - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pszpath: windows_core::PWSTR, cchpath: u32) -> windows_core::HRESULT - where - Identity: IOpenControlPanel_Impl, - { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pszpath: windows_core::PWSTR, cchpath: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenControlPanel_Impl::GetPath(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&pszpath), core::mem::transmute_copy(&cchpath)).into() } - unsafe extern "system" fn GetCurrentView(this: *mut core::ffi::c_void, pview: *mut CPVIEW) -> windows_core::HRESULT - where - Identity: IOpenControlPanel_Impl, - { + unsafe extern "system" fn GetCurrentView(this: *mut core::ffi::c_void, pview: *mut CPVIEW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenControlPanel_Impl::GetCurrentView(this) { Ok(ok__) => { @@ -14130,19 +10569,13 @@ impl IOpenControlPanel_Vtbl { iid == &::IID } } -pub trait IOpenSearchSource_Impl: Sized { +pub trait IOpenSearchSource_Impl: Sized + windows_core::IUnknownImpl { fn GetResults(&self, hwnd: super::super::Foundation::HWND, pszquery: &windows_core::PCWSTR, dwstartindex: u32, dwcount: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IOpenSearchSource {} impl IOpenSearchSource_Vtbl { - pub const fn new() -> IOpenSearchSource_Vtbl - where - Identity: IOpenSearchSource_Impl, - { - unsafe extern "system" fn GetResults(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pszquery: windows_core::PCWSTR, dwstartindex: u32, dwcount: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenSearchSource_Impl, - { + pub const fn new() -> IOpenSearchSource_Vtbl { + unsafe extern "system" fn GetResults(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pszquery: windows_core::PCWSTR, dwstartindex: u32, dwcount: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenSearchSource_Impl::GetResults(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&pszquery), core::mem::transmute_copy(&dwstartindex), core::mem::transmute_copy(&dwcount), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -14153,7 +10586,7 @@ impl IOpenSearchSource_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IOperationsProgressDialog_Impl: Sized { +pub trait IOperationsProgressDialog_Impl: Sized + windows_core::IUnknownImpl { fn StartProgressDialog(&self, hwndowner: super::super::Foundation::HWND, flags: u32) -> windows_core::Result<()>; fn StopProgressDialog(&self) -> windows_core::Result<()>; fn SetOperation(&self, action: SPACTION) -> windows_core::Result<()>; @@ -14170,84 +10603,48 @@ pub trait IOperationsProgressDialog_Impl: Sized { impl windows_core::RuntimeName for IOperationsProgressDialog {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IOperationsProgressDialog_Vtbl { - pub const fn new() -> IOperationsProgressDialog_Vtbl - where - Identity: IOperationsProgressDialog_Impl, - { - unsafe extern "system" fn StartProgressDialog(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, flags: u32) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + pub const fn new() -> IOperationsProgressDialog_Vtbl { + unsafe extern "system" fn StartProgressDialog(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOperationsProgressDialog_Impl::StartProgressDialog(this, core::mem::transmute_copy(&hwndowner), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn StopProgressDialog(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + unsafe extern "system" fn StopProgressDialog(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOperationsProgressDialog_Impl::StopProgressDialog(this).into() } - unsafe extern "system" fn SetOperation(this: *mut core::ffi::c_void, action: SPACTION) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + unsafe extern "system" fn SetOperation(this: *mut core::ffi::c_void, action: SPACTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOperationsProgressDialog_Impl::SetOperation(this, core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: u32) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, mode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOperationsProgressDialog_Impl::SetMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn UpdateProgress(this: *mut core::ffi::c_void, ullpointscurrent: u64, ullpointstotal: u64, ullsizecurrent: u64, ullsizetotal: u64, ullitemscurrent: u64, ullitemstotal: u64) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + unsafe extern "system" fn UpdateProgress(this: *mut core::ffi::c_void, ullpointscurrent: u64, ullpointstotal: u64, ullsizecurrent: u64, ullsizetotal: u64, ullitemscurrent: u64, ullitemstotal: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOperationsProgressDialog_Impl::UpdateProgress(this, core::mem::transmute_copy(&ullpointscurrent), core::mem::transmute_copy(&ullpointstotal), core::mem::transmute_copy(&ullsizecurrent), core::mem::transmute_copy(&ullsizetotal), core::mem::transmute_copy(&ullitemscurrent), core::mem::transmute_copy(&ullitemstotal)).into() } - unsafe extern "system" fn UpdateLocations(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psitarget: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + unsafe extern "system" fn UpdateLocations(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psitarget: *mut core::ffi::c_void, psiitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOperationsProgressDialog_Impl::UpdateLocations(this, windows_core::from_raw_borrowed(&psisource), windows_core::from_raw_borrowed(&psitarget), windows_core::from_raw_borrowed(&psiitem)).into() } - unsafe extern "system" fn ResetTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + unsafe extern "system" fn ResetTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOperationsProgressDialog_Impl::ResetTimer(this).into() } - unsafe extern "system" fn PauseTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + unsafe extern "system" fn PauseTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOperationsProgressDialog_Impl::PauseTimer(this).into() } - unsafe extern "system" fn ResumeTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + unsafe extern "system" fn ResumeTimer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOperationsProgressDialog_Impl::ResumeTimer(this).into() } - unsafe extern "system" fn GetMilliseconds(this: *mut core::ffi::c_void, pullelapsed: *mut u64, pullremaining: *mut u64) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + unsafe extern "system" fn GetMilliseconds(this: *mut core::ffi::c_void, pullelapsed: *mut u64, pullremaining: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOperationsProgressDialog_Impl::GetMilliseconds(this, core::mem::transmute_copy(&pullelapsed), core::mem::transmute_copy(&pullremaining)).into() } - unsafe extern "system" fn GetOperationStatus(this: *mut core::ffi::c_void, popstatus: *mut PropertiesSystem::PDOPSTATUS) -> windows_core::HRESULT - where - Identity: IOperationsProgressDialog_Impl, - { + unsafe extern "system" fn GetOperationStatus(this: *mut core::ffi::c_void, popstatus: *mut PropertiesSystem::PDOPSTATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOperationsProgressDialog_Impl::GetOperationStatus(this) { Ok(ok__) => { @@ -14276,7 +10673,7 @@ impl IOperationsProgressDialog_Vtbl { iid == &::IID } } -pub trait IPackageDebugSettings_Impl: Sized { +pub trait IPackageDebugSettings_Impl: Sized + windows_core::IUnknownImpl { fn EnableDebugging(&self, packagefullname: &windows_core::PCWSTR, debuggercommandline: &windows_core::PCWSTR, environment: &windows_core::PCWSTR) -> windows_core::Result<()>; fn DisableDebugging(&self, packagefullname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Suspend(&self, packagefullname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -14295,98 +10692,56 @@ pub trait IPackageDebugSettings_Impl: Sized { } impl windows_core::RuntimeName for IPackageDebugSettings {} impl IPackageDebugSettings_Vtbl { - pub const fn new() -> IPackageDebugSettings_Vtbl - where - Identity: IPackageDebugSettings_Impl, - { - unsafe extern "system" fn EnableDebugging(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, debuggercommandline: windows_core::PCWSTR, environment: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + pub const fn new() -> IPackageDebugSettings_Vtbl { + unsafe extern "system" fn EnableDebugging(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, debuggercommandline: windows_core::PCWSTR, environment: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::EnableDebugging(this, core::mem::transmute(&packagefullname), core::mem::transmute(&debuggercommandline), core::mem::transmute(&environment)).into() } - unsafe extern "system" fn DisableDebugging(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn DisableDebugging(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::DisableDebugging(this, core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::Suspend(this, core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::Resume(this, core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn TerminateAllProcesses(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn TerminateAllProcesses(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::TerminateAllProcesses(this, core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn SetTargetSessionId(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn SetTargetSessionId(this: *mut core::ffi::c_void, sessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::SetTargetSessionId(this, core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn EnumerateBackgroundTasks(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, taskcount: *mut u32, taskids: *mut *mut windows_core::GUID, tasknames: *mut *mut windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn EnumerateBackgroundTasks(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, taskcount: *mut u32, taskids: *mut *mut windows_core::GUID, tasknames: *mut *mut windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::EnumerateBackgroundTasks(this, core::mem::transmute(&packagefullname), core::mem::transmute_copy(&taskcount), core::mem::transmute_copy(&taskids), core::mem::transmute_copy(&tasknames)).into() } - unsafe extern "system" fn ActivateBackgroundTask(this: *mut core::ffi::c_void, taskid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn ActivateBackgroundTask(this: *mut core::ffi::c_void, taskid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::ActivateBackgroundTask(this, core::mem::transmute_copy(&taskid)).into() } - unsafe extern "system" fn StartServicing(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn StartServicing(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::StartServicing(this, core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn StopServicing(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn StopServicing(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::StopServicing(this, core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn StartSessionRedirection(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, sessionid: u32) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn StartSessionRedirection(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, sessionid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::StartSessionRedirection(this, core::mem::transmute(&packagefullname), core::mem::transmute_copy(&sessionid)).into() } - unsafe extern "system" fn StopSessionRedirection(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn StopSessionRedirection(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::StopSessionRedirection(this, core::mem::transmute(&packagefullname)).into() } - unsafe extern "system" fn GetPackageExecutionState(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, packageexecutionstate: *mut PACKAGE_EXECUTION_STATE) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn GetPackageExecutionState(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, packageexecutionstate: *mut PACKAGE_EXECUTION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPackageDebugSettings_Impl::GetPackageExecutionState(this, core::mem::transmute(&packagefullname)) { Ok(ok__) => { @@ -14396,10 +10751,7 @@ impl IPackageDebugSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForPackageStateChanges(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, ppackageexecutionstatechangenotification: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn RegisterForPackageStateChanges(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, ppackageexecutionstatechangenotification: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPackageDebugSettings_Impl::RegisterForPackageStateChanges(this, core::mem::transmute(&packagefullname), windows_core::from_raw_borrowed(&ppackageexecutionstatechangenotification)) { Ok(ok__) => { @@ -14409,10 +10761,7 @@ impl IPackageDebugSettings_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterForPackageStateChanges(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings_Impl, - { + unsafe extern "system" fn UnregisterForPackageStateChanges(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings_Impl::UnregisterForPackageStateChanges(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -14444,14 +10793,8 @@ pub trait IPackageDebugSettings2_Impl: Sized + IPackageDebugSettings_Impl { } impl windows_core::RuntimeName for IPackageDebugSettings2 {} impl IPackageDebugSettings2_Vtbl { - pub const fn new() -> IPackageDebugSettings2_Vtbl - where - Identity: IPackageDebugSettings2_Impl, - { - unsafe extern "system" fn EnumerateApps(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, appcount: *mut u32, appusermodelids: *mut *mut windows_core::PWSTR, appdisplaynames: *mut *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IPackageDebugSettings2_Impl, - { + pub const fn new() -> IPackageDebugSettings2_Vtbl { + unsafe extern "system" fn EnumerateApps(this: *mut core::ffi::c_void, packagefullname: windows_core::PCWSTR, appcount: *mut u32, appusermodelids: *mut *mut windows_core::PWSTR, appdisplaynames: *mut *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageDebugSettings2_Impl::EnumerateApps(this, core::mem::transmute(&packagefullname), core::mem::transmute_copy(&appcount), core::mem::transmute_copy(&appusermodelids), core::mem::transmute_copy(&appdisplaynames)).into() } @@ -14461,19 +10804,13 @@ impl IPackageDebugSettings2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPackageExecutionStateChangeNotification_Impl: Sized { +pub trait IPackageExecutionStateChangeNotification_Impl: Sized + windows_core::IUnknownImpl { fn OnStateChanged(&self, pszpackagefullname: &windows_core::PCWSTR, pesnewstate: PACKAGE_EXECUTION_STATE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPackageExecutionStateChangeNotification {} impl IPackageExecutionStateChangeNotification_Vtbl { - pub const fn new() -> IPackageExecutionStateChangeNotification_Vtbl - where - Identity: IPackageExecutionStateChangeNotification_Impl, - { - unsafe extern "system" fn OnStateChanged(this: *mut core::ffi::c_void, pszpackagefullname: windows_core::PCWSTR, pesnewstate: PACKAGE_EXECUTION_STATE) -> windows_core::HRESULT - where - Identity: IPackageExecutionStateChangeNotification_Impl, - { + pub const fn new() -> IPackageExecutionStateChangeNotification_Vtbl { + unsafe extern "system" fn OnStateChanged(this: *mut core::ffi::c_void, pszpackagefullname: windows_core::PCWSTR, pesnewstate: PACKAGE_EXECUTION_STATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPackageExecutionStateChangeNotification_Impl::OnStateChanged(this, core::mem::transmute(&pszpackagefullname), core::mem::transmute_copy(&pesnewstate)).into() } @@ -14484,7 +10821,7 @@ impl IPackageExecutionStateChangeNotification_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IParentAndItem_Impl: Sized { +pub trait IParentAndItem_Impl: Sized + windows_core::IUnknownImpl { fn SetParentAndItem(&self, pidlparent: *const Common::ITEMIDLIST, psf: Option<&IShellFolder>, pidlchild: *const Common::ITEMIDLIST) -> windows_core::Result<()>; fn GetParentAndItem(&self, ppidlparent: *mut *mut Common::ITEMIDLIST, ppsf: *mut Option, ppidlchild: *mut *mut Common::ITEMIDLIST) -> windows_core::Result<()>; } @@ -14492,21 +10829,12 @@ pub trait IParentAndItem_Impl: Sized { impl windows_core::RuntimeName for IParentAndItem {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IParentAndItem_Vtbl { - pub const fn new() -> IParentAndItem_Vtbl - where - Identity: IParentAndItem_Impl, - { - unsafe extern "system" fn SetParentAndItem(this: *mut core::ffi::c_void, pidlparent: *const Common::ITEMIDLIST, psf: *mut core::ffi::c_void, pidlchild: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IParentAndItem_Impl, - { + pub const fn new() -> IParentAndItem_Vtbl { + unsafe extern "system" fn SetParentAndItem(this: *mut core::ffi::c_void, pidlparent: *const Common::ITEMIDLIST, psf: *mut core::ffi::c_void, pidlchild: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IParentAndItem_Impl::SetParentAndItem(this, core::mem::transmute_copy(&pidlparent), windows_core::from_raw_borrowed(&psf), core::mem::transmute_copy(&pidlchild)).into() } - unsafe extern "system" fn GetParentAndItem(this: *mut core::ffi::c_void, ppidlparent: *mut *mut Common::ITEMIDLIST, ppsf: *mut *mut core::ffi::c_void, ppidlchild: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IParentAndItem_Impl, - { + unsafe extern "system" fn GetParentAndItem(this: *mut core::ffi::c_void, ppidlparent: *mut *mut Common::ITEMIDLIST, ppsf: *mut *mut core::ffi::c_void, ppidlchild: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IParentAndItem_Impl::GetParentAndItem(this, core::mem::transmute_copy(&ppidlparent), core::mem::transmute_copy(&ppsf), core::mem::transmute_copy(&ppidlchild)).into() } @@ -14520,27 +10848,18 @@ impl IParentAndItem_Vtbl { iid == &::IID } } -pub trait IParseAndCreateItem_Impl: Sized { +pub trait IParseAndCreateItem_Impl: Sized + windows_core::IUnknownImpl { fn SetItem(&self, psi: Option<&IShellItem>) -> windows_core::Result<()>; fn GetItem(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IParseAndCreateItem {} impl IParseAndCreateItem_Vtbl { - pub const fn new() -> IParseAndCreateItem_Vtbl - where - Identity: IParseAndCreateItem_Impl, - { - unsafe extern "system" fn SetItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IParseAndCreateItem_Impl, - { + pub const fn new() -> IParseAndCreateItem_Vtbl { + unsafe extern "system" fn SetItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IParseAndCreateItem_Impl::SetItem(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IParseAndCreateItem_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IParseAndCreateItem_Impl::GetItem(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -14558,14 +10877,8 @@ pub trait IPersistFolder_Impl: Sized + super::super::System::Com::IPersist_Impl impl windows_core::RuntimeName for IPersistFolder {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl IPersistFolder_Vtbl { - pub const fn new() -> IPersistFolder_Vtbl - where - Identity: IPersistFolder_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IPersistFolder_Impl, - { + pub const fn new() -> IPersistFolder_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistFolder_Impl::Initialize(this, core::mem::transmute_copy(&pidl)).into() } @@ -14583,14 +10896,8 @@ pub trait IPersistFolder2_Impl: Sized + IPersistFolder_Impl { impl windows_core::RuntimeName for IPersistFolder2 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl IPersistFolder2_Vtbl { - pub const fn new() -> IPersistFolder2_Vtbl - where - Identity: IPersistFolder2_Impl, - { - unsafe extern "system" fn GetCurFolder(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IPersistFolder2_Impl, - { + pub const fn new() -> IPersistFolder2_Vtbl { + unsafe extern "system" fn GetCurFolder(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistFolder2_Impl::GetCurFolder(this) { Ok(ok__) => { @@ -14615,21 +10922,12 @@ pub trait IPersistFolder3_Impl: Sized + IPersistFolder2_Impl { impl windows_core::RuntimeName for IPersistFolder3 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl IPersistFolder3_Vtbl { - pub const fn new() -> IPersistFolder3_Vtbl - where - Identity: IPersistFolder3_Impl, - { - unsafe extern "system" fn InitializeEx(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pidlroot: *const Common::ITEMIDLIST, ppfti: *const PERSIST_FOLDER_TARGET_INFO) -> windows_core::HRESULT - where - Identity: IPersistFolder3_Impl, - { + pub const fn new() -> IPersistFolder3_Vtbl { + unsafe extern "system" fn InitializeEx(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pidlroot: *const Common::ITEMIDLIST, ppfti: *const PERSIST_FOLDER_TARGET_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistFolder3_Impl::InitializeEx(this, windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&pidlroot), core::mem::transmute_copy(&ppfti)).into() } - unsafe extern "system" fn GetFolderTargetInfo(this: *mut core::ffi::c_void, ppfti: *mut PERSIST_FOLDER_TARGET_INFO) -> windows_core::HRESULT - where - Identity: IPersistFolder3_Impl, - { + unsafe extern "system" fn GetFolderTargetInfo(this: *mut core::ffi::c_void, ppfti: *mut PERSIST_FOLDER_TARGET_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistFolder3_Impl::GetFolderTargetInfo(this, core::mem::transmute_copy(&ppfti)).into() } @@ -14652,21 +10950,12 @@ pub trait IPersistIDList_Impl: Sized + super::super::System::Com::IPersist_Impl impl windows_core::RuntimeName for IPersistIDList {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl IPersistIDList_Vtbl { - pub const fn new() -> IPersistIDList_Vtbl - where - Identity: IPersistIDList_Impl, - { - unsafe extern "system" fn SetIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IPersistIDList_Impl, - { + pub const fn new() -> IPersistIDList_Vtbl { + unsafe extern "system" fn SetIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistIDList_Impl::SetIDList(this, core::mem::transmute_copy(&pidl)).into() } - unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IPersistIDList_Impl, - { + unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistIDList_Impl::GetIDList(this) { Ok(ok__) => { @@ -14687,7 +10976,7 @@ impl IPersistIDList_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IPreviewHandler_Impl: Sized { +pub trait IPreviewHandler_Impl: Sized + windows_core::IUnknownImpl { fn SetWindow(&self, hwnd: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn SetRect(&self, prc: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn DoPreview(&self) -> windows_core::Result<()>; @@ -14700,49 +10989,28 @@ pub trait IPreviewHandler_Impl: Sized { impl windows_core::RuntimeName for IPreviewHandler {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IPreviewHandler_Vtbl { - pub const fn new() -> IPreviewHandler_Vtbl - where - Identity: IPreviewHandler_Impl, - { - unsafe extern "system" fn SetWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IPreviewHandler_Impl, - { + pub const fn new() -> IPreviewHandler_Vtbl { + unsafe extern "system" fn SetWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPreviewHandler_Impl::SetWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn SetRect(this: *mut core::ffi::c_void, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IPreviewHandler_Impl, - { + unsafe extern "system" fn SetRect(this: *mut core::ffi::c_void, prc: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPreviewHandler_Impl::SetRect(this, core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn DoPreview(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPreviewHandler_Impl, - { + unsafe extern "system" fn DoPreview(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPreviewHandler_Impl::DoPreview(this).into() } - unsafe extern "system" fn Unload(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPreviewHandler_Impl, - { + unsafe extern "system" fn Unload(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPreviewHandler_Impl::Unload(this).into() } - unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPreviewHandler_Impl, - { + unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPreviewHandler_Impl::SetFocus(this).into() } - unsafe extern "system" fn QueryFocus(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IPreviewHandler_Impl, - { + unsafe extern "system" fn QueryFocus(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPreviewHandler_Impl::QueryFocus(this) { Ok(ok__) => { @@ -14752,10 +11020,7 @@ impl IPreviewHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IPreviewHandler_Impl, - { + unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPreviewHandler_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&pmsg)).into() } @@ -14775,7 +11040,7 @@ impl IPreviewHandler_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IPreviewHandlerFrame_Impl: Sized { +pub trait IPreviewHandlerFrame_Impl: Sized + windows_core::IUnknownImpl { fn GetWindowContext(&self) -> windows_core::Result; fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()>; } @@ -14783,14 +11048,8 @@ pub trait IPreviewHandlerFrame_Impl: Sized { impl windows_core::RuntimeName for IPreviewHandlerFrame {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IPreviewHandlerFrame_Vtbl { - pub const fn new() -> IPreviewHandlerFrame_Vtbl - where - Identity: IPreviewHandlerFrame_Impl, - { - unsafe extern "system" fn GetWindowContext(this: *mut core::ffi::c_void, pinfo: *mut PREVIEWHANDLERFRAMEINFO) -> windows_core::HRESULT - where - Identity: IPreviewHandlerFrame_Impl, - { + pub const fn new() -> IPreviewHandlerFrame_Vtbl { + unsafe extern "system" fn GetWindowContext(this: *mut core::ffi::c_void, pinfo: *mut PREVIEWHANDLERFRAMEINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPreviewHandlerFrame_Impl::GetWindowContext(this) { Ok(ok__) => { @@ -14800,10 +11059,7 @@ impl IPreviewHandlerFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IPreviewHandlerFrame_Impl, - { + unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPreviewHandlerFrame_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&pmsg)).into() } @@ -14818,7 +11074,7 @@ impl IPreviewHandlerFrame_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IPreviewHandlerVisuals_Impl: Sized { +pub trait IPreviewHandlerVisuals_Impl: Sized + windows_core::IUnknownImpl { fn SetBackgroundColor(&self, color: super::super::Foundation::COLORREF) -> windows_core::Result<()>; fn SetFont(&self, plf: *const super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()>; fn SetTextColor(&self, color: super::super::Foundation::COLORREF) -> windows_core::Result<()>; @@ -14827,28 +11083,16 @@ pub trait IPreviewHandlerVisuals_Impl: Sized { impl windows_core::RuntimeName for IPreviewHandlerVisuals {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IPreviewHandlerVisuals_Vtbl { - pub const fn new() -> IPreviewHandlerVisuals_Vtbl - where - Identity: IPreviewHandlerVisuals_Impl, - { - unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, color: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IPreviewHandlerVisuals_Impl, - { + pub const fn new() -> IPreviewHandlerVisuals_Vtbl { + unsafe extern "system" fn SetBackgroundColor(this: *mut core::ffi::c_void, color: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPreviewHandlerVisuals_Impl::SetBackgroundColor(this, core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn SetFont(this: *mut core::ffi::c_void, plf: *const super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT - where - Identity: IPreviewHandlerVisuals_Impl, - { + unsafe extern "system" fn SetFont(this: *mut core::ffi::c_void, plf: *const super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPreviewHandlerVisuals_Impl::SetFont(this, core::mem::transmute_copy(&plf)).into() } - unsafe extern "system" fn SetTextColor(this: *mut core::ffi::c_void, color: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IPreviewHandlerVisuals_Impl, - { + unsafe extern "system" fn SetTextColor(this: *mut core::ffi::c_void, color: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPreviewHandlerVisuals_Impl::SetTextColor(this, core::mem::transmute_copy(&color)).into() } @@ -14869,29 +11113,20 @@ pub trait IPreviewItem_Impl: Sized + IRelatedItem_Impl {} impl windows_core::RuntimeName for IPreviewItem {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IPreviewItem_Vtbl { - pub const fn new() -> IPreviewItem_Vtbl - where - Identity: IPreviewItem_Impl, - { + pub const fn new() -> IPreviewItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IPreviousVersionsInfo_Impl: Sized { +pub trait IPreviousVersionsInfo_Impl: Sized + windows_core::IUnknownImpl { fn AreSnapshotsAvailable(&self, pszpath: &windows_core::PCWSTR, foktobeslow: super::super::Foundation::BOOL) -> windows_core::Result; } impl windows_core::RuntimeName for IPreviousVersionsInfo {} impl IPreviousVersionsInfo_Vtbl { - pub const fn new() -> IPreviousVersionsInfo_Vtbl - where - Identity: IPreviousVersionsInfo_Impl, - { - unsafe extern "system" fn AreSnapshotsAvailable(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, foktobeslow: super::super::Foundation::BOOL, pfavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IPreviousVersionsInfo_Impl, - { + pub const fn new() -> IPreviousVersionsInfo_Vtbl { + unsafe extern "system" fn AreSnapshotsAvailable(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, foktobeslow: super::super::Foundation::BOOL, pfavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPreviousVersionsInfo_Impl::AreSnapshotsAvailable(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&foktobeslow)) { Ok(ok__) => { @@ -14908,7 +11143,7 @@ impl IPreviousVersionsInfo_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IProfferService_Impl: Sized { +pub trait IProfferService_Impl: Sized + windows_core::IUnknownImpl { fn ProfferService(&self, serviceid: *const windows_core::GUID, serviceprovider: Option<&super::super::System::Com::IServiceProvider>) -> windows_core::Result; fn RevokeService(&self, cookie: u32) -> windows_core::Result<()>; } @@ -14916,14 +11151,8 @@ pub trait IProfferService_Impl: Sized { impl windows_core::RuntimeName for IProfferService {} #[cfg(feature = "Win32_System_Com")] impl IProfferService_Vtbl { - pub const fn new() -> IProfferService_Vtbl - where - Identity: IProfferService_Impl, - { - unsafe extern "system" fn ProfferService(this: *mut core::ffi::c_void, serviceid: *const windows_core::GUID, serviceprovider: *mut core::ffi::c_void, cookie: *mut u32) -> windows_core::HRESULT - where - Identity: IProfferService_Impl, - { + pub const fn new() -> IProfferService_Vtbl { + unsafe extern "system" fn ProfferService(this: *mut core::ffi::c_void, serviceid: *const windows_core::GUID, serviceprovider: *mut core::ffi::c_void, cookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProfferService_Impl::ProfferService(this, core::mem::transmute_copy(&serviceid), windows_core::from_raw_borrowed(&serviceprovider)) { Ok(ok__) => { @@ -14933,10 +11162,7 @@ impl IProfferService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RevokeService(this: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT - where - Identity: IProfferService_Impl, - { + unsafe extern "system" fn RevokeService(this: *mut core::ffi::c_void, cookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProfferService_Impl::RevokeService(this, core::mem::transmute_copy(&cookie)).into() } @@ -14950,7 +11176,7 @@ impl IProfferService_Vtbl { iid == &::IID } } -pub trait IProgressDialog_Impl: Sized { +pub trait IProgressDialog_Impl: Sized + windows_core::IUnknownImpl { fn StartProgressDialog(&self, hwndparent: super::super::Foundation::HWND, punkenablemodless: Option<&windows_core::IUnknown>, dwflags: u32, pvresevered: *const core::ffi::c_void) -> windows_core::Result<()>; fn StopProgressDialog(&self) -> windows_core::Result<()>; fn SetTitle(&self, pwztitle: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -14964,77 +11190,44 @@ pub trait IProgressDialog_Impl: Sized { } impl windows_core::RuntimeName for IProgressDialog {} impl IProgressDialog_Vtbl { - pub const fn new() -> IProgressDialog_Vtbl - where - Identity: IProgressDialog_Impl, - { - unsafe extern "system" fn StartProgressDialog(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, punkenablemodless: *mut core::ffi::c_void, dwflags: u32, pvresevered: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProgressDialog_Impl, - { + pub const fn new() -> IProgressDialog_Vtbl { + unsafe extern "system" fn StartProgressDialog(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, punkenablemodless: *mut core::ffi::c_void, dwflags: u32, pvresevered: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::StartProgressDialog(this, core::mem::transmute_copy(&hwndparent), windows_core::from_raw_borrowed(&punkenablemodless), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pvresevered)).into() } - unsafe extern "system" fn StopProgressDialog(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProgressDialog_Impl, - { + unsafe extern "system" fn StopProgressDialog(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::StopProgressDialog(this).into() } - unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, pwztitle: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IProgressDialog_Impl, - { + unsafe extern "system" fn SetTitle(this: *mut core::ffi::c_void, pwztitle: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::SetTitle(this, core::mem::transmute(&pwztitle)).into() } - unsafe extern "system" fn SetAnimation(this: *mut core::ffi::c_void, hinstanimation: super::super::Foundation::HINSTANCE, idanimation: u32) -> windows_core::HRESULT - where - Identity: IProgressDialog_Impl, - { + unsafe extern "system" fn SetAnimation(this: *mut core::ffi::c_void, hinstanimation: super::super::Foundation::HINSTANCE, idanimation: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::SetAnimation(this, core::mem::transmute_copy(&hinstanimation), core::mem::transmute_copy(&idanimation)).into() } - unsafe extern "system" fn HasUserCancelled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL - where - Identity: IProgressDialog_Impl, - { + unsafe extern "system" fn HasUserCancelled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::HasUserCancelled(this) } - unsafe extern "system" fn SetProgress(this: *mut core::ffi::c_void, dwcompleted: u32, dwtotal: u32) -> windows_core::HRESULT - where - Identity: IProgressDialog_Impl, - { + unsafe extern "system" fn SetProgress(this: *mut core::ffi::c_void, dwcompleted: u32, dwtotal: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::SetProgress(this, core::mem::transmute_copy(&dwcompleted), core::mem::transmute_copy(&dwtotal)).into() } - unsafe extern "system" fn SetProgress64(this: *mut core::ffi::c_void, ullcompleted: u64, ulltotal: u64) -> windows_core::HRESULT - where - Identity: IProgressDialog_Impl, - { + unsafe extern "system" fn SetProgress64(this: *mut core::ffi::c_void, ullcompleted: u64, ulltotal: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::SetProgress64(this, core::mem::transmute_copy(&ullcompleted), core::mem::transmute_copy(&ulltotal)).into() } - unsafe extern "system" fn SetLine(this: *mut core::ffi::c_void, dwlinenum: u32, pwzstring: windows_core::PCWSTR, fcompactpath: super::super::Foundation::BOOL, pvresevered: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProgressDialog_Impl, - { + unsafe extern "system" fn SetLine(this: *mut core::ffi::c_void, dwlinenum: u32, pwzstring: windows_core::PCWSTR, fcompactpath: super::super::Foundation::BOOL, pvresevered: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::SetLine(this, core::mem::transmute_copy(&dwlinenum), core::mem::transmute(&pwzstring), core::mem::transmute_copy(&fcompactpath), core::mem::transmute_copy(&pvresevered)).into() } - unsafe extern "system" fn SetCancelMsg(this: *mut core::ffi::c_void, pwzcancelmsg: windows_core::PCWSTR, pvresevered: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProgressDialog_Impl, - { + unsafe extern "system" fn SetCancelMsg(this: *mut core::ffi::c_void, pwzcancelmsg: windows_core::PCWSTR, pvresevered: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::SetCancelMsg(this, core::mem::transmute(&pwzcancelmsg), core::mem::transmute_copy(&pvresevered)).into() } - unsafe extern "system" fn Timer(this: *mut core::ffi::c_void, dwtimeraction: u32, pvresevered: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IProgressDialog_Impl, - { + unsafe extern "system" fn Timer(this: *mut core::ffi::c_void, dwtimeraction: u32, pvresevered: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::Timer(this, core::mem::transmute_copy(&dwtimeraction), core::mem::transmute_copy(&pvresevered)).into() } @@ -15057,7 +11250,7 @@ impl IProgressDialog_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IPropertyKeyStore_Impl: Sized { +pub trait IPropertyKeyStore_Impl: Sized + windows_core::IUnknownImpl { fn GetKeyCount(&self) -> windows_core::Result; fn GetKeyAt(&self, index: i32, pkey: *mut PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()>; fn AppendKey(&self, key: *const PropertiesSystem::PROPERTYKEY) -> windows_core::Result<()>; @@ -15069,14 +11262,8 @@ pub trait IPropertyKeyStore_Impl: Sized { impl windows_core::RuntimeName for IPropertyKeyStore {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IPropertyKeyStore_Vtbl { - pub const fn new() -> IPropertyKeyStore_Vtbl - where - Identity: IPropertyKeyStore_Impl, - { - unsafe extern "system" fn GetKeyCount(this: *mut core::ffi::c_void, keycount: *mut i32) -> windows_core::HRESULT - where - Identity: IPropertyKeyStore_Impl, - { + pub const fn new() -> IPropertyKeyStore_Vtbl { + unsafe extern "system" fn GetKeyCount(this: *mut core::ffi::c_void, keycount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyKeyStore_Impl::GetKeyCount(this) { Ok(ok__) => { @@ -15086,38 +11273,23 @@ impl IPropertyKeyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyAt(this: *mut core::ffi::c_void, index: i32, pkey: *mut PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPropertyKeyStore_Impl, - { + unsafe extern "system" fn GetKeyAt(this: *mut core::ffi::c_void, index: i32, pkey: *mut PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyKeyStore_Impl::GetKeyAt(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pkey)).into() } - unsafe extern "system" fn AppendKey(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPropertyKeyStore_Impl, - { + unsafe extern "system" fn AppendKey(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyKeyStore_Impl::AppendKey(this, core::mem::transmute_copy(&key)).into() } - unsafe extern "system" fn DeleteKey(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT - where - Identity: IPropertyKeyStore_Impl, - { + unsafe extern "system" fn DeleteKey(this: *mut core::ffi::c_void, index: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyKeyStore_Impl::DeleteKey(this, core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn IsKeyInStore(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPropertyKeyStore_Impl, - { + unsafe extern "system" fn IsKeyInStore(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyKeyStore_Impl::IsKeyInStore(this, core::mem::transmute_copy(&key)).into() } - unsafe extern "system" fn RemoveKey(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IPropertyKeyStore_Impl, - { + unsafe extern "system" fn RemoveKey(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyKeyStore_Impl::RemoveKey(this, core::mem::transmute_copy(&key)).into() } @@ -15142,28 +11314,16 @@ pub trait IPublishedApp_Impl: Sized + IShellApp_Impl { } impl windows_core::RuntimeName for IPublishedApp {} impl IPublishedApp_Vtbl { - pub const fn new() -> IPublishedApp_Vtbl - where - Identity: IPublishedApp_Impl, - { - unsafe extern "system" fn Install(this: *mut core::ffi::c_void, pstinstall: *const super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT - where - Identity: IPublishedApp_Impl, - { + pub const fn new() -> IPublishedApp_Vtbl { + unsafe extern "system" fn Install(this: *mut core::ffi::c_void, pstinstall: *const super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPublishedApp_Impl::Install(this, core::mem::transmute_copy(&pstinstall)).into() } - unsafe extern "system" fn GetPublishedAppInfo(this: *mut core::ffi::c_void, ppai: *mut PUBAPPINFO) -> windows_core::HRESULT - where - Identity: IPublishedApp_Impl, - { + unsafe extern "system" fn GetPublishedAppInfo(this: *mut core::ffi::c_void, ppai: *mut PUBAPPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPublishedApp_Impl::GetPublishedAppInfo(this, core::mem::transmute_copy(&ppai)).into() } - unsafe extern "system" fn Unschedule(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPublishedApp_Impl, - { + unsafe extern "system" fn Unschedule(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPublishedApp_Impl::Unschedule(this).into() } @@ -15183,14 +11343,8 @@ pub trait IPublishedApp2_Impl: Sized + IPublishedApp_Impl { } impl windows_core::RuntimeName for IPublishedApp2 {} impl IPublishedApp2_Vtbl { - pub const fn new() -> IPublishedApp2_Vtbl - where - Identity: IPublishedApp2_Impl, - { - unsafe extern "system" fn Install2(this: *mut core::ffi::c_void, pstinstall: *const super::super::Foundation::SYSTEMTIME, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IPublishedApp2_Impl, - { + pub const fn new() -> IPublishedApp2_Vtbl { + unsafe extern "system" fn Install2(this: *mut core::ffi::c_void, pstinstall: *const super::super::Foundation::SYSTEMTIME, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPublishedApp2_Impl::Install2(this, core::mem::transmute_copy(&pstinstall), core::mem::transmute_copy(&hwndparent)).into() } @@ -15209,21 +11363,12 @@ pub trait IPublishingWizard_Impl: Sized + IWizardExtension_Impl { impl windows_core::RuntimeName for IPublishingWizard {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com", feature = "Win32_UI_Controls"))] impl IPublishingWizard_Vtbl { - pub const fn new() -> IPublishingWizard_Vtbl - where - Identity: IPublishingWizard_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pdo: *mut core::ffi::c_void, dwoptions: u32, pszservicescope: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IPublishingWizard_Impl, - { + pub const fn new() -> IPublishingWizard_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pdo: *mut core::ffi::c_void, dwoptions: u32, pszservicescope: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPublishingWizard_Impl::Initialize(this, windows_core::from_raw_borrowed(&pdo), core::mem::transmute_copy(&dwoptions), core::mem::transmute(&pszservicescope)).into() } - unsafe extern "system" fn GetTransferManifest(this: *mut core::ffi::c_void, phrfromtransfer: *mut windows_core::HRESULT, pdocmanifest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPublishingWizard_Impl, - { + unsafe extern "system" fn GetTransferManifest(this: *mut core::ffi::c_void, phrfromtransfer: *mut windows_core::HRESULT, pdocmanifest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPublishingWizard_Impl::GetTransferManifest(this, core::mem::transmute_copy(&phrfromtransfer), core::mem::transmute_copy(&pdocmanifest)).into() } @@ -15238,7 +11383,7 @@ impl IPublishingWizard_Vtbl { } } #[cfg(feature = "Win32_System_Registry")] -pub trait IQueryAssociations_Impl: Sized { +pub trait IQueryAssociations_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, flags: ASSOCF, pszassoc: &windows_core::PCWSTR, hkprogid: super::super::System::Registry::HKEY, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn GetString(&self, flags: ASSOCF, str: ASSOCSTR, pszextra: &windows_core::PCWSTR, pszout: windows_core::PWSTR, pcchout: *mut u32) -> windows_core::Result<()>; fn GetKey(&self, flags: ASSOCF, key: ASSOCKEY, pszextra: &windows_core::PCWSTR) -> windows_core::Result; @@ -15249,28 +11394,16 @@ pub trait IQueryAssociations_Impl: Sized { impl windows_core::RuntimeName for IQueryAssociations {} #[cfg(feature = "Win32_System_Registry")] impl IQueryAssociations_Vtbl { - pub const fn new() -> IQueryAssociations_Vtbl - where - Identity: IQueryAssociations_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, flags: ASSOCF, pszassoc: windows_core::PCWSTR, hkprogid: super::super::System::Registry::HKEY, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IQueryAssociations_Impl, - { + pub const fn new() -> IQueryAssociations_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, flags: ASSOCF, pszassoc: windows_core::PCWSTR, hkprogid: super::super::System::Registry::HKEY, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryAssociations_Impl::Init(this, core::mem::transmute_copy(&flags), core::mem::transmute(&pszassoc), core::mem::transmute_copy(&hkprogid), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, flags: ASSOCF, str: ASSOCSTR, pszextra: windows_core::PCWSTR, pszout: windows_core::PWSTR, pcchout: *mut u32) -> windows_core::HRESULT - where - Identity: IQueryAssociations_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, flags: ASSOCF, str: ASSOCSTR, pszextra: windows_core::PCWSTR, pszout: windows_core::PWSTR, pcchout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryAssociations_Impl::GetString(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&str), core::mem::transmute(&pszextra), core::mem::transmute_copy(&pszout), core::mem::transmute_copy(&pcchout)).into() } - unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, flags: ASSOCF, key: ASSOCKEY, pszextra: windows_core::PCWSTR, phkeyout: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IQueryAssociations_Impl, - { + unsafe extern "system" fn GetKey(this: *mut core::ffi::c_void, flags: ASSOCF, key: ASSOCKEY, pszextra: windows_core::PCWSTR, phkeyout: *mut super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryAssociations_Impl::GetKey(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&key), core::mem::transmute(&pszextra)) { Ok(ok__) => { @@ -15280,17 +11413,11 @@ impl IQueryAssociations_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, flags: ASSOCF, data: ASSOCDATA, pszextra: windows_core::PCWSTR, pvout: *mut core::ffi::c_void, pcbout: *mut u32) -> windows_core::HRESULT - where - Identity: IQueryAssociations_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, flags: ASSOCF, data: ASSOCDATA, pszextra: windows_core::PCWSTR, pvout: *mut core::ffi::c_void, pcbout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryAssociations_Impl::GetData(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&data), core::mem::transmute(&pszextra), core::mem::transmute_copy(&pvout), core::mem::transmute_copy(&pcbout)).into() } - unsafe extern "system" fn GetEnum(this: *mut core::ffi::c_void, flags: ASSOCF, assocenum: ASSOCENUM, pszextra: windows_core::PCWSTR, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQueryAssociations_Impl, - { + unsafe extern "system" fn GetEnum(this: *mut core::ffi::c_void, flags: ASSOCF, assocenum: ASSOCENUM, pszextra: windows_core::PCWSTR, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryAssociations_Impl::GetEnum(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&assocenum), core::mem::transmute(&pszextra), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvout)).into() } @@ -15307,19 +11434,13 @@ impl IQueryAssociations_Vtbl { iid == &::IID } } -pub trait IQueryCancelAutoPlay_Impl: Sized { +pub trait IQueryCancelAutoPlay_Impl: Sized + windows_core::IUnknownImpl { fn AllowAutoPlay(&self, pszpath: &windows_core::PCWSTR, dwcontenttype: u32, pszlabel: &windows_core::PCWSTR, dwserialnumber: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IQueryCancelAutoPlay {} impl IQueryCancelAutoPlay_Vtbl { - pub const fn new() -> IQueryCancelAutoPlay_Vtbl - where - Identity: IQueryCancelAutoPlay_Impl, - { - unsafe extern "system" fn AllowAutoPlay(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, dwcontenttype: u32, pszlabel: windows_core::PCWSTR, dwserialnumber: u32) -> windows_core::HRESULT - where - Identity: IQueryCancelAutoPlay_Impl, - { + pub const fn new() -> IQueryCancelAutoPlay_Vtbl { + unsafe extern "system" fn AllowAutoPlay(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, dwcontenttype: u32, pszlabel: windows_core::PCWSTR, dwserialnumber: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryCancelAutoPlay_Impl::AllowAutoPlay(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&dwcontenttype), core::mem::transmute(&pszlabel), core::mem::transmute_copy(&dwserialnumber)).into() } @@ -15329,20 +11450,14 @@ impl IQueryCancelAutoPlay_Vtbl { iid == &::IID } } -pub trait IQueryCodePage_Impl: Sized { +pub trait IQueryCodePage_Impl: Sized + windows_core::IUnknownImpl { fn GetCodePage(&self) -> windows_core::Result; fn SetCodePage(&self, uicodepage: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IQueryCodePage {} impl IQueryCodePage_Vtbl { - pub const fn new() -> IQueryCodePage_Vtbl - where - Identity: IQueryCodePage_Impl, - { - unsafe extern "system" fn GetCodePage(this: *mut core::ffi::c_void, puicodepage: *mut u32) -> windows_core::HRESULT - where - Identity: IQueryCodePage_Impl, - { + pub const fn new() -> IQueryCodePage_Vtbl { + unsafe extern "system" fn GetCodePage(this: *mut core::ffi::c_void, puicodepage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryCodePage_Impl::GetCodePage(this) { Ok(ok__) => { @@ -15352,10 +11467,7 @@ impl IQueryCodePage_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCodePage(this: *mut core::ffi::c_void, uicodepage: u32) -> windows_core::HRESULT - where - Identity: IQueryCodePage_Impl, - { + unsafe extern "system" fn SetCodePage(this: *mut core::ffi::c_void, uicodepage: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryCodePage_Impl::SetCodePage(this, core::mem::transmute_copy(&uicodepage)).into() } @@ -15369,19 +11481,13 @@ impl IQueryCodePage_Vtbl { iid == &::IID } } -pub trait IQueryContinue_Impl: Sized { +pub trait IQueryContinue_Impl: Sized + windows_core::IUnknownImpl { fn QueryContinue(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IQueryContinue {} impl IQueryContinue_Vtbl { - pub const fn new() -> IQueryContinue_Vtbl - where - Identity: IQueryContinue_Impl, - { - unsafe extern "system" fn QueryContinue(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IQueryContinue_Impl, - { + pub const fn new() -> IQueryContinue_Vtbl { + unsafe extern "system" fn QueryContinue(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryContinue_Impl::QueryContinue(this).into() } @@ -15396,14 +11502,8 @@ pub trait IQueryContinueWithStatus_Impl: Sized + IQueryContinue_Impl { } impl windows_core::RuntimeName for IQueryContinueWithStatus {} impl IQueryContinueWithStatus_Vtbl { - pub const fn new() -> IQueryContinueWithStatus_Vtbl - where - Identity: IQueryContinueWithStatus_Impl, - { - unsafe extern "system" fn SetStatusMessage(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IQueryContinueWithStatus_Impl, - { + pub const fn new() -> IQueryContinueWithStatus_Vtbl { + unsafe extern "system" fn SetStatusMessage(this: *mut core::ffi::c_void, psz: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryContinueWithStatus_Impl::SetStatusMessage(this, core::mem::transmute(&psz)).into() } @@ -15413,20 +11513,14 @@ impl IQueryContinueWithStatus_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IQueryInfo_Impl: Sized { +pub trait IQueryInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetInfoTip(&self, dwflags: &QITIPF_FLAGS) -> windows_core::Result; fn GetInfoFlags(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IQueryInfo {} impl IQueryInfo_Vtbl { - pub const fn new() -> IQueryInfo_Vtbl - where - Identity: IQueryInfo_Impl, - { - unsafe extern "system" fn GetInfoTip(this: *mut core::ffi::c_void, dwflags: u32, ppwsztip: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IQueryInfo_Impl, - { + pub const fn new() -> IQueryInfo_Vtbl { + unsafe extern "system" fn GetInfoTip(this: *mut core::ffi::c_void, dwflags: u32, ppwsztip: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryInfo_Impl::GetInfoTip(this, core::mem::transmute(&dwflags)) { Ok(ok__) => { @@ -15436,10 +11530,7 @@ impl IQueryInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInfoFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IQueryInfo_Impl, - { + unsafe extern "system" fn GetInfoFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryInfo_Impl::GetInfoFlags(this) { Ok(ok__) => { @@ -15459,20 +11550,14 @@ impl IQueryInfo_Vtbl { iid == &::IID } } -pub trait IRegTreeItem_Impl: Sized { +pub trait IRegTreeItem_Impl: Sized + windows_core::IUnknownImpl { fn GetCheckState(&self) -> windows_core::Result; fn SetCheckState(&self, bcheck: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRegTreeItem {} impl IRegTreeItem_Vtbl { - pub const fn new() -> IRegTreeItem_Vtbl - where - Identity: IRegTreeItem_Impl, - { - unsafe extern "system" fn GetCheckState(this: *mut core::ffi::c_void, pbcheck: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRegTreeItem_Impl, - { + pub const fn new() -> IRegTreeItem_Vtbl { + unsafe extern "system" fn GetCheckState(this: *mut core::ffi::c_void, pbcheck: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegTreeItem_Impl::GetCheckState(this) { Ok(ok__) => { @@ -15482,10 +11567,7 @@ impl IRegTreeItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCheckState(this: *mut core::ffi::c_void, bcheck: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRegTreeItem_Impl, - { + unsafe extern "system" fn SetCheckState(this: *mut core::ffi::c_void, bcheck: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegTreeItem_Impl::SetCheckState(this, core::mem::transmute_copy(&bcheck)).into() } @@ -15500,7 +11582,7 @@ impl IRegTreeItem_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IRelatedItem_Impl: Sized { +pub trait IRelatedItem_Impl: Sized + windows_core::IUnknownImpl { fn GetItemIDList(&self) -> windows_core::Result<*mut Common::ITEMIDLIST>; fn GetItem(&self) -> windows_core::Result; } @@ -15508,14 +11590,8 @@ pub trait IRelatedItem_Impl: Sized { impl windows_core::RuntimeName for IRelatedItem {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IRelatedItem_Vtbl { - pub const fn new() -> IRelatedItem_Vtbl - where - Identity: IRelatedItem_Impl, - { - unsafe extern "system" fn GetItemIDList(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IRelatedItem_Impl, - { + pub const fn new() -> IRelatedItem_Vtbl { + unsafe extern "system" fn GetItemIDList(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRelatedItem_Impl::GetItemIDList(this) { Ok(ok__) => { @@ -15525,10 +11601,7 @@ impl IRelatedItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRelatedItem_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRelatedItem_Impl::GetItem(this) { Ok(ok__) => { @@ -15548,19 +11621,13 @@ impl IRelatedItem_Vtbl { iid == &::IID } } -pub trait IRemoteComputer_Impl: Sized { +pub trait IRemoteComputer_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pszmachine: &windows_core::PCWSTR, benumerating: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRemoteComputer {} impl IRemoteComputer_Vtbl { - pub const fn new() -> IRemoteComputer_Vtbl - where - Identity: IRemoteComputer_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszmachine: windows_core::PCWSTR, benumerating: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRemoteComputer_Impl, - { + pub const fn new() -> IRemoteComputer_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszmachine: windows_core::PCWSTR, benumerating: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteComputer_Impl::Initialize(this, core::mem::transmute(&pszmachine), core::mem::transmute_copy(&benumerating)).into() } @@ -15570,19 +11637,13 @@ impl IRemoteComputer_Vtbl { iid == &::IID } } -pub trait IResolveShellLink_Impl: Sized { +pub trait IResolveShellLink_Impl: Sized + windows_core::IUnknownImpl { fn ResolveShellLink(&self, punklink: Option<&windows_core::IUnknown>, hwnd: super::super::Foundation::HWND, fflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IResolveShellLink {} impl IResolveShellLink_Vtbl { - pub const fn new() -> IResolveShellLink_Vtbl - where - Identity: IResolveShellLink_Impl, - { - unsafe extern "system" fn ResolveShellLink(this: *mut core::ffi::c_void, punklink: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, fflags: u32) -> windows_core::HRESULT - where - Identity: IResolveShellLink_Impl, - { + pub const fn new() -> IResolveShellLink_Vtbl { + unsafe extern "system" fn ResolveShellLink(this: *mut core::ffi::c_void, punklink: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, fflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResolveShellLink_Impl::ResolveShellLink(this, windows_core::from_raw_borrowed(&punklink), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&fflags)).into() } @@ -15593,7 +11654,7 @@ impl IResolveShellLink_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IResultsFolder_Impl: Sized { +pub trait IResultsFolder_Impl: Sized + windows_core::IUnknownImpl { fn AddItem(&self, psi: Option<&IShellItem>) -> windows_core::Result<()>; fn AddIDList(&self, pidl: *const Common::ITEMIDLIST, ppidladded: *mut *mut Common::ITEMIDLIST) -> windows_core::Result<()>; fn RemoveItem(&self, psi: Option<&IShellItem>) -> windows_core::Result<()>; @@ -15604,42 +11665,24 @@ pub trait IResultsFolder_Impl: Sized { impl windows_core::RuntimeName for IResultsFolder {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IResultsFolder_Vtbl { - pub const fn new() -> IResultsFolder_Vtbl - where - Identity: IResultsFolder_Impl, - { - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResultsFolder_Impl, - { + pub const fn new() -> IResultsFolder_Vtbl { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultsFolder_Impl::AddItem(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn AddIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppidladded: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IResultsFolder_Impl, - { + unsafe extern "system" fn AddIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppidladded: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultsFolder_Impl::AddIDList(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&ppidladded)).into() } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResultsFolder_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultsFolder_Impl::RemoveItem(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn RemoveIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IResultsFolder_Impl, - { + unsafe extern "system" fn RemoveIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultsFolder_Impl::RemoveIDList(this, core::mem::transmute_copy(&pidl)).into() } - unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IResultsFolder_Impl, - { + unsafe extern "system" fn RemoveAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResultsFolder_Impl::RemoveAll(this).into() } @@ -15656,7 +11699,7 @@ impl IResultsFolder_Vtbl { iid == &::IID } } -pub trait IRunnableTask_Impl: Sized { +pub trait IRunnableTask_Impl: Sized + windows_core::IUnknownImpl { fn Run(&self) -> windows_core::Result<()>; fn Kill(&self, bwait: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn Suspend(&self) -> windows_core::Result<()>; @@ -15665,42 +11708,24 @@ pub trait IRunnableTask_Impl: Sized { } impl windows_core::RuntimeName for IRunnableTask {} impl IRunnableTask_Vtbl { - pub const fn new() -> IRunnableTask_Vtbl - where - Identity: IRunnableTask_Impl, - { - unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunnableTask_Impl, - { + pub const fn new() -> IRunnableTask_Vtbl { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableTask_Impl::Run(this).into() } - unsafe extern "system" fn Kill(this: *mut core::ffi::c_void, bwait: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRunnableTask_Impl, - { + unsafe extern "system" fn Kill(this: *mut core::ffi::c_void, bwait: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableTask_Impl::Kill(this, core::mem::transmute_copy(&bwait)).into() } - unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunnableTask_Impl, - { + unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableTask_Impl::Suspend(this).into() } - unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRunnableTask_Impl, - { + unsafe extern "system" fn Resume(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableTask_Impl::Resume(this).into() } - unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void) -> u32 - where - Identity: IRunnableTask_Impl, - { + unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableTask_Impl::IsRunning(this) } @@ -15738,28 +11763,16 @@ pub trait IScriptErrorList_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IScriptErrorList {} #[cfg(feature = "Win32_System_Com")] impl IScriptErrorList_Vtbl { - pub const fn new() -> IScriptErrorList_Vtbl - where - Identity: IScriptErrorList_Impl, - { - unsafe extern "system" fn advanceError(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + pub const fn new() -> IScriptErrorList_Vtbl { + unsafe extern "system" fn advanceError(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptErrorList_Impl::advanceError(this).into() } - unsafe extern "system" fn retreatError(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn retreatError(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptErrorList_Impl::retreatError(this).into() } - unsafe extern "system" fn canAdvanceError(this: *mut core::ffi::c_void, pfcanadvance: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn canAdvanceError(this: *mut core::ffi::c_void, pfcanadvance: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::canAdvanceError(this) { Ok(ok__) => { @@ -15769,10 +11782,7 @@ impl IScriptErrorList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn canRetreatError(this: *mut core::ffi::c_void, pfcanretreat: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn canRetreatError(this: *mut core::ffi::c_void, pfcanretreat: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::canRetreatError(this) { Ok(ok__) => { @@ -15782,10 +11792,7 @@ impl IScriptErrorList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getErrorLine(this: *mut core::ffi::c_void, plline: *mut i32) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn getErrorLine(this: *mut core::ffi::c_void, plline: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getErrorLine(this) { Ok(ok__) => { @@ -15795,10 +11802,7 @@ impl IScriptErrorList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getErrorChar(this: *mut core::ffi::c_void, plchar: *mut i32) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn getErrorChar(this: *mut core::ffi::c_void, plchar: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getErrorChar(this) { Ok(ok__) => { @@ -15808,10 +11812,7 @@ impl IScriptErrorList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getErrorCode(this: *mut core::ffi::c_void, plcode: *mut i32) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn getErrorCode(this: *mut core::ffi::c_void, plcode: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getErrorCode(this) { Ok(ok__) => { @@ -15821,10 +11822,7 @@ impl IScriptErrorList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getErrorMsg(this: *mut core::ffi::c_void, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn getErrorMsg(this: *mut core::ffi::c_void, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getErrorMsg(this) { Ok(ok__) => { @@ -15834,10 +11832,7 @@ impl IScriptErrorList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getErrorUrl(this: *mut core::ffi::c_void, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn getErrorUrl(this: *mut core::ffi::c_void, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getErrorUrl(this) { Ok(ok__) => { @@ -15847,10 +11842,7 @@ impl IScriptErrorList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getAlwaysShowLockState(this: *mut core::ffi::c_void, pfalwaysshowlocked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn getAlwaysShowLockState(this: *mut core::ffi::c_void, pfalwaysshowlocked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getAlwaysShowLockState(this) { Ok(ok__) => { @@ -15860,10 +11852,7 @@ impl IScriptErrorList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getDetailsPaneOpen(this: *mut core::ffi::c_void, pfdetailspaneopen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn getDetailsPaneOpen(this: *mut core::ffi::c_void, pfdetailspaneopen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getDetailsPaneOpen(this) { Ok(ok__) => { @@ -15873,17 +11862,11 @@ impl IScriptErrorList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setDetailsPaneOpen(this: *mut core::ffi::c_void, fdetailspaneopen: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn setDetailsPaneOpen(this: *mut core::ffi::c_void, fdetailspaneopen: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptErrorList_Impl::setDetailsPaneOpen(this, core::mem::transmute_copy(&fdetailspaneopen)).into() } - unsafe extern "system" fn getPerErrorDisplay(this: *mut core::ffi::c_void, pfpererrordisplay: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn getPerErrorDisplay(this: *mut core::ffi::c_void, pfpererrordisplay: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getPerErrorDisplay(this) { Ok(ok__) => { @@ -15893,10 +11876,7 @@ impl IScriptErrorList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setPerErrorDisplay(this: *mut core::ffi::c_void, fpererrordisplay: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IScriptErrorList_Impl, - { + unsafe extern "system" fn setPerErrorDisplay(this: *mut core::ffi::c_void, fpererrordisplay: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptErrorList_Impl::setPerErrorDisplay(this, core::mem::transmute_copy(&fpererrordisplay)).into() } @@ -15922,27 +11902,18 @@ impl IScriptErrorList_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISearchBoxInfo_Impl: Sized { +pub trait ISearchBoxInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetCondition(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetText(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISearchBoxInfo {} impl ISearchBoxInfo_Vtbl { - pub const fn new() -> ISearchBoxInfo_Vtbl - where - Identity: ISearchBoxInfo_Impl, - { - unsafe extern "system" fn GetCondition(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchBoxInfo_Impl, - { + pub const fn new() -> ISearchBoxInfo_Vtbl { + unsafe extern "system" fn GetCondition(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchBoxInfo_Impl::GetCondition(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISearchBoxInfo_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchBoxInfo_Impl::GetText(this) { Ok(ok__) => { @@ -15962,21 +11933,15 @@ impl ISearchBoxInfo_Vtbl { iid == &::IID } } -pub trait ISearchContext_Impl: Sized { +pub trait ISearchContext_Impl: Sized + windows_core::IUnknownImpl { fn GetSearchUrl(&self) -> windows_core::Result; fn GetSearchText(&self) -> windows_core::Result; fn GetSearchStyle(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISearchContext {} impl ISearchContext_Vtbl { - pub const fn new() -> ISearchContext_Vtbl - where - Identity: ISearchContext_Impl, - { - unsafe extern "system" fn GetSearchUrl(this: *mut core::ffi::c_void, pbstrsearchurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISearchContext_Impl, - { + pub const fn new() -> ISearchContext_Vtbl { + unsafe extern "system" fn GetSearchUrl(this: *mut core::ffi::c_void, pbstrsearchurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchContext_Impl::GetSearchUrl(this) { Ok(ok__) => { @@ -15986,10 +11951,7 @@ impl ISearchContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSearchText(this: *mut core::ffi::c_void, pbstrsearchtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISearchContext_Impl, - { + unsafe extern "system" fn GetSearchText(this: *mut core::ffi::c_void, pbstrsearchtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchContext_Impl::GetSearchText(this) { Ok(ok__) => { @@ -15999,10 +11961,7 @@ impl ISearchContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSearchStyle(this: *mut core::ffi::c_void, pdwsearchstyle: *mut u32) -> windows_core::HRESULT - where - Identity: ISearchContext_Impl, - { + unsafe extern "system" fn GetSearchStyle(this: *mut core::ffi::c_void, pdwsearchstyle: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchContext_Impl::GetSearchStyle(this) { Ok(ok__) => { @@ -16024,7 +11983,7 @@ impl ISearchContext_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait ISearchFolderItemFactory_Impl: Sized { +pub trait ISearchFolderItemFactory_Impl: Sized + windows_core::IUnknownImpl { fn SetDisplayName(&self, pszdisplayname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetFolderTypeID(&self, ftid: &windows_core::GUID) -> windows_core::Result<()>; fn SetFolderLogicalViewMode(&self, flvm: FOLDERLOGICALVIEWMODE) -> windows_core::Result<()>; @@ -16042,91 +12001,52 @@ pub trait ISearchFolderItemFactory_Impl: Sized { impl windows_core::RuntimeName for ISearchFolderItemFactory {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] impl ISearchFolderItemFactory_Vtbl { - pub const fn new() -> ISearchFolderItemFactory_Vtbl - where - Identity: ISearchFolderItemFactory_Impl, - { - unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, pszdisplayname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + pub const fn new() -> ISearchFolderItemFactory_Vtbl { + unsafe extern "system" fn SetDisplayName(this: *mut core::ffi::c_void, pszdisplayname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::SetDisplayName(this, core::mem::transmute(&pszdisplayname)).into() } - unsafe extern "system" fn SetFolderTypeID(this: *mut core::ffi::c_void, ftid: windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn SetFolderTypeID(this: *mut core::ffi::c_void, ftid: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::SetFolderTypeID(this, core::mem::transmute(&ftid)).into() } - unsafe extern "system" fn SetFolderLogicalViewMode(this: *mut core::ffi::c_void, flvm: FOLDERLOGICALVIEWMODE) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn SetFolderLogicalViewMode(this: *mut core::ffi::c_void, flvm: FOLDERLOGICALVIEWMODE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::SetFolderLogicalViewMode(this, core::mem::transmute_copy(&flvm)).into() } - unsafe extern "system" fn SetIconSize(this: *mut core::ffi::c_void, iiconsize: i32) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn SetIconSize(this: *mut core::ffi::c_void, iiconsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::SetIconSize(this, core::mem::transmute_copy(&iiconsize)).into() } - unsafe extern "system" fn SetVisibleColumns(this: *mut core::ffi::c_void, cvisiblecolumns: u32, rgkey: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn SetVisibleColumns(this: *mut core::ffi::c_void, cvisiblecolumns: u32, rgkey: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::SetVisibleColumns(this, core::mem::transmute_copy(&cvisiblecolumns), core::mem::transmute_copy(&rgkey)).into() } - unsafe extern "system" fn SetSortColumns(this: *mut core::ffi::c_void, csortcolumns: u32, rgsortcolumns: *const SORTCOLUMN) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn SetSortColumns(this: *mut core::ffi::c_void, csortcolumns: u32, rgsortcolumns: *const SORTCOLUMN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::SetSortColumns(this, core::mem::transmute_copy(&csortcolumns), core::mem::transmute_copy(&rgsortcolumns)).into() } - unsafe extern "system" fn SetGroupColumn(this: *mut core::ffi::c_void, keygroup: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn SetGroupColumn(this: *mut core::ffi::c_void, keygroup: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::SetGroupColumn(this, core::mem::transmute_copy(&keygroup)).into() } - unsafe extern "system" fn SetStacks(this: *mut core::ffi::c_void, cstackkeys: u32, rgstackkeys: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn SetStacks(this: *mut core::ffi::c_void, cstackkeys: u32, rgstackkeys: *const PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::SetStacks(this, core::mem::transmute_copy(&cstackkeys), core::mem::transmute_copy(&rgstackkeys)).into() } - unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, psiascope: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn SetScope(this: *mut core::ffi::c_void, psiascope: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::SetScope(this, windows_core::from_raw_borrowed(&psiascope)).into() } - unsafe extern "system" fn SetCondition(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn SetCondition(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::SetCondition(this, windows_core::from_raw_borrowed(&pcondition)).into() } - unsafe extern "system" fn GetShellItem(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn GetShellItem(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchFolderItemFactory_Impl::GetShellItem(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: ISearchFolderItemFactory_Impl, - { + unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchFolderItemFactory_Impl::GetIDList(this) { Ok(ok__) => { @@ -16157,7 +12077,7 @@ impl ISearchFolderItemFactory_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait ISharedBitmap_Impl: Sized { +pub trait ISharedBitmap_Impl: Sized + windows_core::IUnknownImpl { fn GetSharedBitmap(&self) -> windows_core::Result; fn GetSize(&self) -> windows_core::Result; fn GetFormat(&self) -> windows_core::Result; @@ -16168,14 +12088,8 @@ pub trait ISharedBitmap_Impl: Sized { impl windows_core::RuntimeName for ISharedBitmap {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ISharedBitmap_Vtbl { - pub const fn new() -> ISharedBitmap_Vtbl - where - Identity: ISharedBitmap_Impl, - { - unsafe extern "system" fn GetSharedBitmap(this: *mut core::ffi::c_void, phbm: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: ISharedBitmap_Impl, - { + pub const fn new() -> ISharedBitmap_Vtbl { + unsafe extern "system" fn GetSharedBitmap(this: *mut core::ffi::c_void, phbm: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISharedBitmap_Impl::GetSharedBitmap(this) { Ok(ok__) => { @@ -16185,10 +12099,7 @@ impl ISharedBitmap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: ISharedBitmap_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISharedBitmap_Impl::GetSize(this) { Ok(ok__) => { @@ -16198,10 +12109,7 @@ impl ISharedBitmap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pat: *mut WTS_ALPHATYPE) -> windows_core::HRESULT - where - Identity: ISharedBitmap_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pat: *mut WTS_ALPHATYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISharedBitmap_Impl::GetFormat(this) { Ok(ok__) => { @@ -16211,17 +12119,11 @@ impl ISharedBitmap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InitializeBitmap(this: *mut core::ffi::c_void, hbm: super::super::Graphics::Gdi::HBITMAP, wtsat: WTS_ALPHATYPE) -> windows_core::HRESULT - where - Identity: ISharedBitmap_Impl, - { + unsafe extern "system" fn InitializeBitmap(this: *mut core::ffi::c_void, hbm: super::super::Graphics::Gdi::HBITMAP, wtsat: WTS_ALPHATYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharedBitmap_Impl::InitializeBitmap(this, core::mem::transmute_copy(&hbm), core::mem::transmute_copy(&wtsat)).into() } - unsafe extern "system" fn Detach(this: *mut core::ffi::c_void, phbm: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: ISharedBitmap_Impl, - { + unsafe extern "system" fn Detach(this: *mut core::ffi::c_void, phbm: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISharedBitmap_Impl::Detach(this) { Ok(ok__) => { @@ -16244,7 +12146,7 @@ impl ISharedBitmap_Vtbl { iid == &::IID } } -pub trait ISharingConfigurationManager_Impl: Sized { +pub trait ISharingConfigurationManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateShare(&self, dsid: DEF_SHARE_ID, role: SHARE_ROLE) -> windows_core::Result<()>; fn DeleteShare(&self, dsid: DEF_SHARE_ID) -> windows_core::Result<()>; fn ShareExists(&self, dsid: DEF_SHARE_ID) -> windows_core::Result<()>; @@ -16255,35 +12157,20 @@ pub trait ISharingConfigurationManager_Impl: Sized { } impl windows_core::RuntimeName for ISharingConfigurationManager {} impl ISharingConfigurationManager_Vtbl { - pub const fn new() -> ISharingConfigurationManager_Vtbl - where - Identity: ISharingConfigurationManager_Impl, - { - unsafe extern "system" fn CreateShare(this: *mut core::ffi::c_void, dsid: DEF_SHARE_ID, role: SHARE_ROLE) -> windows_core::HRESULT - where - Identity: ISharingConfigurationManager_Impl, - { + pub const fn new() -> ISharingConfigurationManager_Vtbl { + unsafe extern "system" fn CreateShare(this: *mut core::ffi::c_void, dsid: DEF_SHARE_ID, role: SHARE_ROLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharingConfigurationManager_Impl::CreateShare(this, core::mem::transmute_copy(&dsid), core::mem::transmute_copy(&role)).into() } - unsafe extern "system" fn DeleteShare(this: *mut core::ffi::c_void, dsid: DEF_SHARE_ID) -> windows_core::HRESULT - where - Identity: ISharingConfigurationManager_Impl, - { + unsafe extern "system" fn DeleteShare(this: *mut core::ffi::c_void, dsid: DEF_SHARE_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharingConfigurationManager_Impl::DeleteShare(this, core::mem::transmute_copy(&dsid)).into() } - unsafe extern "system" fn ShareExists(this: *mut core::ffi::c_void, dsid: DEF_SHARE_ID) -> windows_core::HRESULT - where - Identity: ISharingConfigurationManager_Impl, - { + unsafe extern "system" fn ShareExists(this: *mut core::ffi::c_void, dsid: DEF_SHARE_ID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharingConfigurationManager_Impl::ShareExists(this, core::mem::transmute_copy(&dsid)).into() } - unsafe extern "system" fn GetSharePermissions(this: *mut core::ffi::c_void, dsid: DEF_SHARE_ID, prole: *mut SHARE_ROLE) -> windows_core::HRESULT - where - Identity: ISharingConfigurationManager_Impl, - { + unsafe extern "system" fn GetSharePermissions(this: *mut core::ffi::c_void, dsid: DEF_SHARE_ID, prole: *mut SHARE_ROLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISharingConfigurationManager_Impl::GetSharePermissions(this, core::mem::transmute_copy(&dsid)) { Ok(ok__) => { @@ -16293,24 +12180,15 @@ impl ISharingConfigurationManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SharePrinters(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISharingConfigurationManager_Impl, - { + unsafe extern "system" fn SharePrinters(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharingConfigurationManager_Impl::SharePrinters(this).into() } - unsafe extern "system" fn StopSharingPrinters(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISharingConfigurationManager_Impl, - { + unsafe extern "system" fn StopSharingPrinters(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharingConfigurationManager_Impl::StopSharingPrinters(this).into() } - unsafe extern "system" fn ArePrintersShared(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISharingConfigurationManager_Impl, - { + unsafe extern "system" fn ArePrintersShared(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISharingConfigurationManager_Impl::ArePrintersShared(this).into() } @@ -16329,7 +12207,7 @@ impl ISharingConfigurationManager_Vtbl { iid == &::IID } } -pub trait IShellApp_Impl: Sized { +pub trait IShellApp_Impl: Sized + windows_core::IUnknownImpl { fn GetAppInfo(&self, pai: *mut APPINFODATA) -> windows_core::Result<()>; fn GetPossibleActions(&self) -> windows_core::Result; fn GetSlowAppInfo(&self, psaid: *mut SLOWAPPINFO) -> windows_core::Result<()>; @@ -16338,21 +12216,12 @@ pub trait IShellApp_Impl: Sized { } impl windows_core::RuntimeName for IShellApp {} impl IShellApp_Vtbl { - pub const fn new() -> IShellApp_Vtbl - where - Identity: IShellApp_Impl, - { - unsafe extern "system" fn GetAppInfo(this: *mut core::ffi::c_void, pai: *mut APPINFODATA) -> windows_core::HRESULT - where - Identity: IShellApp_Impl, - { + pub const fn new() -> IShellApp_Vtbl { + unsafe extern "system" fn GetAppInfo(this: *mut core::ffi::c_void, pai: *mut APPINFODATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellApp_Impl::GetAppInfo(this, core::mem::transmute_copy(&pai)).into() } - unsafe extern "system" fn GetPossibleActions(this: *mut core::ffi::c_void, pdwactions: *mut u32) -> windows_core::HRESULT - where - Identity: IShellApp_Impl, - { + unsafe extern "system" fn GetPossibleActions(this: *mut core::ffi::c_void, pdwactions: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellApp_Impl::GetPossibleActions(this) { Ok(ok__) => { @@ -16362,24 +12231,15 @@ impl IShellApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSlowAppInfo(this: *mut core::ffi::c_void, psaid: *mut SLOWAPPINFO) -> windows_core::HRESULT - where - Identity: IShellApp_Impl, - { + unsafe extern "system" fn GetSlowAppInfo(this: *mut core::ffi::c_void, psaid: *mut SLOWAPPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellApp_Impl::GetSlowAppInfo(this, core::mem::transmute_copy(&psaid)).into() } - unsafe extern "system" fn GetCachedSlowAppInfo(this: *mut core::ffi::c_void, psaid: *mut SLOWAPPINFO) -> windows_core::HRESULT - where - Identity: IShellApp_Impl, - { + unsafe extern "system" fn GetCachedSlowAppInfo(this: *mut core::ffi::c_void, psaid: *mut SLOWAPPINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellApp_Impl::GetCachedSlowAppInfo(this, core::mem::transmute_copy(&psaid)).into() } - unsafe extern "system" fn IsInstalled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellApp_Impl, - { + unsafe extern "system" fn IsInstalled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellApp_Impl::IsInstalled(this).into() } @@ -16416,63 +12276,36 @@ pub trait IShellBrowser_Impl: Sized + super::super::System::Ole::IOleWindow_Impl impl windows_core::RuntimeName for IShellBrowser {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IShellBrowser_Vtbl { - pub const fn new() -> IShellBrowser_Vtbl - where - Identity: IShellBrowser_Impl, - { - unsafe extern "system" fn InsertMenusSB(this: *mut core::ffi::c_void, hmenushared: super::WindowsAndMessaging::HMENU, lpmenuwidths: *mut super::super::System::Ole::OLEMENUGROUPWIDTHS) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + pub const fn new() -> IShellBrowser_Vtbl { + unsafe extern "system" fn InsertMenusSB(this: *mut core::ffi::c_void, hmenushared: super::WindowsAndMessaging::HMENU, lpmenuwidths: *mut super::super::System::Ole::OLEMENUGROUPWIDTHS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::InsertMenusSB(this, core::mem::transmute_copy(&hmenushared), core::mem::transmute_copy(&lpmenuwidths)).into() } - unsafe extern "system" fn SetMenuSB(this: *mut core::ffi::c_void, hmenushared: super::WindowsAndMessaging::HMENU, holemenures: isize, hwndactiveobject: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn SetMenuSB(this: *mut core::ffi::c_void, hmenushared: super::WindowsAndMessaging::HMENU, holemenures: isize, hwndactiveobject: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::SetMenuSB(this, core::mem::transmute_copy(&hmenushared), core::mem::transmute_copy(&holemenures), core::mem::transmute_copy(&hwndactiveobject)).into() } - unsafe extern "system" fn RemoveMenusSB(this: *mut core::ffi::c_void, hmenushared: super::WindowsAndMessaging::HMENU) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn RemoveMenusSB(this: *mut core::ffi::c_void, hmenushared: super::WindowsAndMessaging::HMENU) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::RemoveMenusSB(this, core::mem::transmute_copy(&hmenushared)).into() } - unsafe extern "system" fn SetStatusTextSB(this: *mut core::ffi::c_void, pszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn SetStatusTextSB(this: *mut core::ffi::c_void, pszstatustext: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::SetStatusTextSB(this, core::mem::transmute(&pszstatustext)).into() } - unsafe extern "system" fn EnableModelessSB(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn EnableModelessSB(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::EnableModelessSB(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn TranslateAcceleratorSB(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG, wid: u16) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn TranslateAcceleratorSB(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG, wid: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::TranslateAcceleratorSB(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&wid)).into() } - unsafe extern "system" fn BrowseObject(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, wflags: u32) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn BrowseObject(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, wflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::BrowseObject(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&wflags)).into() } - unsafe extern "system" fn GetViewStateStream(this: *mut core::ffi::c_void, grfmode: u32, ppstrm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn GetViewStateStream(this: *mut core::ffi::c_void, grfmode: u32, ppstrm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellBrowser_Impl::GetViewStateStream(this, core::mem::transmute_copy(&grfmode)) { Ok(ok__) => { @@ -16482,10 +12315,7 @@ impl IShellBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetControlWindow(this: *mut core::ffi::c_void, id: u32, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn GetControlWindow(this: *mut core::ffi::c_void, id: u32, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellBrowser_Impl::GetControlWindow(this, core::mem::transmute_copy(&id)) { Ok(ok__) => { @@ -16495,17 +12325,11 @@ impl IShellBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SendControlMsg(this: *mut core::ffi::c_void, id: u32, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pret: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn SendControlMsg(this: *mut core::ffi::c_void, id: u32, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pret: *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::SendControlMsg(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&pret)).into() } - unsafe extern "system" fn QueryActiveShellView(this: *mut core::ffi::c_void, ppshv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn QueryActiveShellView(this: *mut core::ffi::c_void, ppshv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellBrowser_Impl::QueryActiveShellView(this) { Ok(ok__) => { @@ -16515,17 +12339,11 @@ impl IShellBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnViewWindowActive(this: *mut core::ffi::c_void, pshv: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn OnViewWindowActive(this: *mut core::ffi::c_void, pshv: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::OnViewWindowActive(this, windows_core::from_raw_borrowed(&pshv)).into() } - unsafe extern "system" fn SetToolbarItems(this: *mut core::ffi::c_void, lpbuttons: *const super::Controls::TBBUTTON, nbuttons: u32, uflags: u32) -> windows_core::HRESULT - where - Identity: IShellBrowser_Impl, - { + unsafe extern "system" fn SetToolbarItems(this: *mut core::ffi::c_void, lpbuttons: *const super::Controls::TBBUTTON, nbuttons: u32, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::SetToolbarItems(this, core::mem::transmute_copy(&lpbuttons), core::mem::transmute_copy(&nbuttons), core::mem::transmute_copy(&uflags)).into() } @@ -16551,21 +12369,15 @@ impl IShellBrowser_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IShellChangeNotify_Impl: Sized { +pub trait IShellChangeNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnChange(&self, levent: i32, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_Shell_Common")] impl windows_core::RuntimeName for IShellChangeNotify {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IShellChangeNotify_Vtbl { - pub const fn new() -> IShellChangeNotify_Vtbl - where - Identity: IShellChangeNotify_Impl, - { - unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, levent: i32, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IShellChangeNotify_Impl, - { + pub const fn new() -> IShellChangeNotify_Vtbl { + unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, levent: i32, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellChangeNotify_Impl::OnChange(this, core::mem::transmute_copy(&levent), core::mem::transmute_copy(&pidl1), core::mem::transmute_copy(&pidl2)).into() } @@ -16576,7 +12388,7 @@ impl IShellChangeNotify_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IShellDetails_Impl: Sized { +pub trait IShellDetails_Impl: Sized + windows_core::IUnknownImpl { fn GetDetailsOf(&self, pidl: *const Common::ITEMIDLIST, icolumn: u32, pdetails: *mut Common::SHELLDETAILS) -> windows_core::Result<()>; fn ColumnClick(&self, icolumn: u32) -> windows_core::Result<()>; } @@ -16584,21 +12396,12 @@ pub trait IShellDetails_Impl: Sized { impl windows_core::RuntimeName for IShellDetails {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IShellDetails_Vtbl { - pub const fn new() -> IShellDetails_Vtbl - where - Identity: IShellDetails_Impl, - { - unsafe extern "system" fn GetDetailsOf(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, icolumn: u32, pdetails: *mut Common::SHELLDETAILS) -> windows_core::HRESULT - where - Identity: IShellDetails_Impl, - { + pub const fn new() -> IShellDetails_Vtbl { + unsafe extern "system" fn GetDetailsOf(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, icolumn: u32, pdetails: *mut Common::SHELLDETAILS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDetails_Impl::GetDetailsOf(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&icolumn), core::mem::transmute_copy(&pdetails)).into() } - unsafe extern "system" fn ColumnClick(this: *mut core::ffi::c_void, icolumn: u32) -> windows_core::HRESULT - where - Identity: IShellDetails_Impl, - { + unsafe extern "system" fn ColumnClick(this: *mut core::ffi::c_void, icolumn: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDetails_Impl::ColumnClick(this, core::mem::transmute_copy(&icolumn)).into() } @@ -16642,14 +12445,8 @@ pub trait IShellDispatch_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IShellDispatch {} #[cfg(feature = "Win32_System_Com")] impl IShellDispatch_Vtbl { - pub const fn new() -> IShellDispatch_Vtbl - where - Identity: IShellDispatch_Impl, - { - unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + pub const fn new() -> IShellDispatch_Vtbl { + unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch_Impl::Application(this) { Ok(ok__) => { @@ -16659,10 +12456,7 @@ impl IShellDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch_Impl::Parent(this) { Ok(ok__) => { @@ -16672,10 +12466,7 @@ impl IShellDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NameSpace(this: *mut core::ffi::c_void, vdir: core::mem::MaybeUninit, ppsdf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn NameSpace(this: *mut core::ffi::c_void, vdir: core::mem::MaybeUninit, ppsdf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch_Impl::NameSpace(this, core::mem::transmute(&vdir)) { Ok(ok__) => { @@ -16685,10 +12476,7 @@ impl IShellDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BrowseForFolder(this: *mut core::ffi::c_void, hwnd: i32, title: core::mem::MaybeUninit, options: i32, rootfolder: core::mem::MaybeUninit, ppsdf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn BrowseForFolder(this: *mut core::ffi::c_void, hwnd: i32, title: core::mem::MaybeUninit, options: i32, rootfolder: core::mem::MaybeUninit, ppsdf: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch_Impl::BrowseForFolder(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&title), core::mem::transmute_copy(&options), core::mem::transmute(&rootfolder)) { Ok(ok__) => { @@ -16698,10 +12486,7 @@ impl IShellDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Windows(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn Windows(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch_Impl::Windows(this) { Ok(ok__) => { @@ -16711,129 +12496,75 @@ impl IShellDispatch_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Open(this: *mut core::ffi::c_void, vdir: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn Open(this: *mut core::ffi::c_void, vdir: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::Open(this, core::mem::transmute(&vdir)).into() } - unsafe extern "system" fn Explore(this: *mut core::ffi::c_void, vdir: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn Explore(this: *mut core::ffi::c_void, vdir: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::Explore(this, core::mem::transmute(&vdir)).into() } - unsafe extern "system" fn MinimizeAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn MinimizeAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::MinimizeAll(this).into() } - unsafe extern "system" fn UndoMinimizeALL(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn UndoMinimizeALL(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::UndoMinimizeALL(this).into() } - unsafe extern "system" fn FileRun(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn FileRun(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::FileRun(this).into() } - unsafe extern "system" fn CascadeWindows(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn CascadeWindows(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::CascadeWindows(this).into() } - unsafe extern "system" fn TileVertically(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn TileVertically(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::TileVertically(this).into() } - unsafe extern "system" fn TileHorizontally(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn TileHorizontally(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::TileHorizontally(this).into() } - unsafe extern "system" fn ShutdownWindows(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn ShutdownWindows(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::ShutdownWindows(this).into() } - unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::Suspend(this).into() } - unsafe extern "system" fn EjectPC(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn EjectPC(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::EjectPC(this).into() } - unsafe extern "system" fn SetTime(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn SetTime(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::SetTime(this).into() } - unsafe extern "system" fn TrayProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn TrayProperties(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::TrayProperties(this).into() } - unsafe extern "system" fn Help(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn Help(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::Help(this).into() } - unsafe extern "system" fn FindFiles(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn FindFiles(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::FindFiles(this).into() } - unsafe extern "system" fn FindComputer(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn FindComputer(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::FindComputer(this).into() } - unsafe extern "system" fn RefreshMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn RefreshMenu(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::RefreshMenu(this).into() } - unsafe extern "system" fn ControlPanelItem(this: *mut core::ffi::c_void, bstrdir: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch_Impl, - { + unsafe extern "system" fn ControlPanelItem(this: *mut core::ffi::c_void, bstrdir: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch_Impl::ControlPanelItem(this, core::mem::transmute(&bstrdir)).into() } @@ -16884,14 +12615,8 @@ pub trait IShellDispatch2_Impl: Sized + IShellDispatch_Impl { impl windows_core::RuntimeName for IShellDispatch2 {} #[cfg(feature = "Win32_System_Com")] impl IShellDispatch2_Vtbl { - pub const fn new() -> IShellDispatch2_Vtbl - where - Identity: IShellDispatch2_Impl, - { - unsafe extern "system" fn IsRestricted(this: *mut core::ffi::c_void, group: core::mem::MaybeUninit, restriction: core::mem::MaybeUninit, plrestrictvalue: *mut i32) -> windows_core::HRESULT - where - Identity: IShellDispatch2_Impl, - { + pub const fn new() -> IShellDispatch2_Vtbl { + unsafe extern "system" fn IsRestricted(this: *mut core::ffi::c_void, group: core::mem::MaybeUninit, restriction: core::mem::MaybeUninit, plrestrictvalue: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch2_Impl::IsRestricted(this, core::mem::transmute(&group), core::mem::transmute(&restriction)) { Ok(ok__) => { @@ -16901,24 +12626,15 @@ impl IShellDispatch2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShellExecute(this: *mut core::ffi::c_void, file: core::mem::MaybeUninit, vargs: core::mem::MaybeUninit, vdir: core::mem::MaybeUninit, voperation: core::mem::MaybeUninit, vshow: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch2_Impl, - { + unsafe extern "system" fn ShellExecute(this: *mut core::ffi::c_void, file: core::mem::MaybeUninit, vargs: core::mem::MaybeUninit, vdir: core::mem::MaybeUninit, voperation: core::mem::MaybeUninit, vshow: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch2_Impl::ShellExecute(this, 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(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, location: core::mem::MaybeUninit, model: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch2_Impl, - { + unsafe extern "system" fn FindPrinter(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, location: core::mem::MaybeUninit, model: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch2_Impl::FindPrinter(this, core::mem::transmute(&name), core::mem::transmute(&location), core::mem::transmute(&model)).into() } - unsafe extern "system" fn GetSystemInformation(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch2_Impl, - { + unsafe extern "system" fn GetSystemInformation(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch2_Impl::GetSystemInformation(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -16928,10 +12644,7 @@ impl IShellDispatch2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceStart(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, persistent: core::mem::MaybeUninit, psuccess: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch2_Impl, - { + unsafe extern "system" fn ServiceStart(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, persistent: core::mem::MaybeUninit, psuccess: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch2_Impl::ServiceStart(this, core::mem::transmute(&servicename), core::mem::transmute(&persistent)) { Ok(ok__) => { @@ -16941,10 +12654,7 @@ impl IShellDispatch2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ServiceStop(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, persistent: core::mem::MaybeUninit, psuccess: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch2_Impl, - { + unsafe extern "system" fn ServiceStop(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, persistent: core::mem::MaybeUninit, psuccess: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch2_Impl::ServiceStop(this, core::mem::transmute(&servicename), core::mem::transmute(&persistent)) { Ok(ok__) => { @@ -16954,10 +12664,7 @@ impl IShellDispatch2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsServiceRunning(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, prunning: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch2_Impl, - { + unsafe extern "system" fn IsServiceRunning(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, prunning: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch2_Impl::IsServiceRunning(this, core::mem::transmute(&servicename)) { Ok(ok__) => { @@ -16967,10 +12674,7 @@ impl IShellDispatch2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanStartStopService(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, pcanstartstop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch2_Impl, - { + unsafe extern "system" fn CanStartStopService(this: *mut core::ffi::c_void, servicename: core::mem::MaybeUninit, pcanstartstop: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch2_Impl::CanStartStopService(this, core::mem::transmute(&servicename)) { Ok(ok__) => { @@ -16980,10 +12684,7 @@ impl IShellDispatch2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShowBrowserBar(this: *mut core::ffi::c_void, bstrclsid: core::mem::MaybeUninit, bshow: core::mem::MaybeUninit, psuccess: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch2_Impl, - { + unsafe extern "system" fn ShowBrowserBar(this: *mut core::ffi::c_void, bstrclsid: core::mem::MaybeUninit, bshow: core::mem::MaybeUninit, psuccess: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch2_Impl::ShowBrowserBar(this, core::mem::transmute(&bstrclsid), core::mem::transmute(&bshow)) { Ok(ok__) => { @@ -17018,14 +12719,8 @@ pub trait IShellDispatch3_Impl: Sized + IShellDispatch2_Impl { impl windows_core::RuntimeName for IShellDispatch3 {} #[cfg(feature = "Win32_System_Com")] impl IShellDispatch3_Vtbl { - pub const fn new() -> IShellDispatch3_Vtbl - where - Identity: IShellDispatch3_Impl, - { - unsafe extern "system" fn AddToRecent(this: *mut core::ffi::c_void, varfile: core::mem::MaybeUninit, bstrcategory: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch3_Impl, - { + pub const fn new() -> IShellDispatch3_Vtbl { + unsafe extern "system" fn AddToRecent(this: *mut core::ffi::c_void, varfile: core::mem::MaybeUninit, bstrcategory: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch3_Impl::AddToRecent(this, core::mem::transmute(&varfile), core::mem::transmute(&bstrcategory)).into() } @@ -17046,28 +12741,16 @@ pub trait IShellDispatch4_Impl: Sized + IShellDispatch3_Impl { impl windows_core::RuntimeName for IShellDispatch4 {} #[cfg(feature = "Win32_System_Com")] impl IShellDispatch4_Vtbl { - pub const fn new() -> IShellDispatch4_Vtbl - where - Identity: IShellDispatch4_Impl, - { - unsafe extern "system" fn WindowsSecurity(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch4_Impl, - { + pub const fn new() -> IShellDispatch4_Vtbl { + unsafe extern "system" fn WindowsSecurity(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch4_Impl::WindowsSecurity(this).into() } - unsafe extern "system" fn ToggleDesktop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch4_Impl, - { + unsafe extern "system" fn ToggleDesktop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch4_Impl::ToggleDesktop(this).into() } - unsafe extern "system" fn ExplorerPolicy(this: *mut core::ffi::c_void, bstrpolicyname: core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellDispatch4_Impl, - { + unsafe extern "system" fn ExplorerPolicy(this: *mut core::ffi::c_void, bstrpolicyname: core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch4_Impl::ExplorerPolicy(this, core::mem::transmute(&bstrpolicyname)) { Ok(ok__) => { @@ -17077,10 +12760,7 @@ impl IShellDispatch4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSetting(this: *mut core::ffi::c_void, lsetting: i32, presult: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellDispatch4_Impl, - { + unsafe extern "system" fn GetSetting(this: *mut core::ffi::c_void, lsetting: i32, presult: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellDispatch4_Impl::GetSetting(this, core::mem::transmute_copy(&lsetting)) { Ok(ok__) => { @@ -17110,14 +12790,8 @@ pub trait IShellDispatch5_Impl: Sized + IShellDispatch4_Impl { impl windows_core::RuntimeName for IShellDispatch5 {} #[cfg(feature = "Win32_System_Com")] impl IShellDispatch5_Vtbl { - pub const fn new() -> IShellDispatch5_Vtbl - where - Identity: IShellDispatch5_Impl, - { - unsafe extern "system" fn WindowSwitcher(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch5_Impl, - { + pub const fn new() -> IShellDispatch5_Vtbl { + unsafe extern "system" fn WindowSwitcher(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch5_Impl::WindowSwitcher(this).into() } @@ -17135,14 +12809,8 @@ pub trait IShellDispatch6_Impl: Sized + IShellDispatch5_Impl { impl windows_core::RuntimeName for IShellDispatch6 {} #[cfg(feature = "Win32_System_Com")] impl IShellDispatch6_Vtbl { - pub const fn new() -> IShellDispatch6_Vtbl - where - Identity: IShellDispatch6_Impl, - { - unsafe extern "system" fn SearchCommand(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellDispatch6_Impl, - { + pub const fn new() -> IShellDispatch6_Vtbl { + unsafe extern "system" fn SearchCommand(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellDispatch6_Impl::SearchCommand(this).into() } @@ -17153,21 +12821,15 @@ impl IShellDispatch6_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] -pub trait IShellExtInit_Impl: Sized { +pub trait IShellExtInit_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, pidlfolder: *const Common::ITEMIDLIST, pdtobj: Option<&super::super::System::Com::IDataObject>, hkeyprogid: super::super::System::Registry::HKEY) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] impl windows_core::RuntimeName for IShellExtInit {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] impl IShellExtInit_Vtbl { - pub const fn new() -> IShellExtInit_Vtbl - where - Identity: IShellExtInit_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, pdtobj: *mut core::ffi::c_void, hkeyprogid: super::super::System::Registry::HKEY) -> windows_core::HRESULT - where - Identity: IShellExtInit_Impl, - { + pub const fn new() -> IShellExtInit_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, pdtobj: *mut core::ffi::c_void, hkeyprogid: super::super::System::Registry::HKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellExtInit_Impl::Initialize(this, core::mem::transmute_copy(&pidlfolder), windows_core::from_raw_borrowed(&pdtobj), core::mem::transmute_copy(&hkeyprogid)).into() } @@ -17197,77 +12859,44 @@ pub trait IShellFavoritesNameSpace_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for IShellFavoritesNameSpace {} #[cfg(feature = "Win32_System_Com")] impl IShellFavoritesNameSpace_Vtbl { - pub const fn new() -> IShellFavoritesNameSpace_Vtbl - where - Identity: IShellFavoritesNameSpace_Impl, - { - unsafe extern "system" fn MoveSelectionUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + pub const fn new() -> IShellFavoritesNameSpace_Vtbl { + unsafe extern "system" fn MoveSelectionUp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFavoritesNameSpace_Impl::MoveSelectionUp(this).into() } - unsafe extern "system" fn MoveSelectionDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn MoveSelectionDown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFavoritesNameSpace_Impl::MoveSelectionDown(this).into() } - unsafe extern "system" fn ResetSort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn ResetSort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFavoritesNameSpace_Impl::ResetSort(this).into() } - unsafe extern "system" fn NewFolder(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn NewFolder(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFavoritesNameSpace_Impl::NewFolder(this).into() } - unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFavoritesNameSpace_Impl::Synchronize(this).into() } - unsafe extern "system" fn Import(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn Import(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFavoritesNameSpace_Impl::Import(this).into() } - unsafe extern "system" fn Export(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn Export(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFavoritesNameSpace_Impl::Export(this).into() } - unsafe extern "system" fn InvokeContextMenuCommand(this: *mut core::ffi::c_void, strcommand: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn InvokeContextMenuCommand(this: *mut core::ffi::c_void, strcommand: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFavoritesNameSpace_Impl::InvokeContextMenuCommand(this, core::mem::transmute(&strcommand)).into() } - unsafe extern "system" fn MoveSelectionTo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn MoveSelectionTo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFavoritesNameSpace_Impl::MoveSelectionTo(this).into() } - unsafe extern "system" fn SubscriptionsEnabled(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn SubscriptionsEnabled(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFavoritesNameSpace_Impl::SubscriptionsEnabled(this) { Ok(ok__) => { @@ -17277,10 +12906,7 @@ impl IShellFavoritesNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateSubscriptionForSelection(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn CreateSubscriptionForSelection(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFavoritesNameSpace_Impl::CreateSubscriptionForSelection(this) { Ok(ok__) => { @@ -17290,10 +12916,7 @@ impl IShellFavoritesNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteSubscriptionForSelection(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn DeleteSubscriptionForSelection(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFavoritesNameSpace_Impl::DeleteSubscriptionForSelection(this) { Ok(ok__) => { @@ -17303,10 +12926,7 @@ impl IShellFavoritesNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRoot(this: *mut core::ffi::c_void, bstrfullpath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellFavoritesNameSpace_Impl, - { + unsafe extern "system" fn SetRoot(this: *mut core::ffi::c_void, bstrfullpath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFavoritesNameSpace_Impl::SetRoot(this, core::mem::transmute(&bstrfullpath)).into() } @@ -17332,7 +12952,7 @@ impl IShellFavoritesNameSpace_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] -pub trait IShellFolder_Impl: Sized { +pub trait IShellFolder_Impl: Sized + windows_core::IUnknownImpl { fn ParseDisplayName(&self, hwnd: super::super::Foundation::HWND, pbc: Option<&super::super::System::Com::IBindCtx>, pszdisplayname: &windows_core::PCWSTR, pcheaten: *const u32, ppidl: *mut *mut Common::ITEMIDLIST, pdwattributes: *mut u32) -> windows_core::Result<()>; fn EnumObjects(&self, hwnd: super::super::Foundation::HWND, grfflags: u32, ppenumidlist: *mut Option) -> windows_core::HRESULT; fn BindToObject(&self, pidl: *const Common::ITEMIDLIST, pbc: Option<&super::super::System::Com::IBindCtx>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -17348,77 +12968,44 @@ pub trait IShellFolder_Impl: Sized { impl windows_core::RuntimeName for IShellFolder {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl IShellFolder_Vtbl { - pub const fn new() -> IShellFolder_Vtbl - where - Identity: IShellFolder_Impl, - { - unsafe extern "system" fn ParseDisplayName(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pbc: *mut core::ffi::c_void, pszdisplayname: windows_core::PCWSTR, pcheaten: *const u32, ppidl: *mut *mut Common::ITEMIDLIST, pdwattributes: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolder_Impl, - { + pub const fn new() -> IShellFolder_Vtbl { + unsafe extern "system" fn ParseDisplayName(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pbc: *mut core::ffi::c_void, pszdisplayname: windows_core::PCWSTR, pcheaten: *const u32, ppidl: *mut *mut Common::ITEMIDLIST, pdwattributes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder_Impl::ParseDisplayName(this, core::mem::transmute_copy(&hwnd), windows_core::from_raw_borrowed(&pbc), core::mem::transmute(&pszdisplayname), core::mem::transmute_copy(&pcheaten), core::mem::transmute_copy(&ppidl), core::mem::transmute_copy(&pdwattributes)).into() } - unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, grfflags: u32, ppenumidlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolder_Impl, - { + unsafe extern "system" fn EnumObjects(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, grfflags: u32, ppenumidlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder_Impl::EnumObjects(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&grfflags), core::mem::transmute_copy(&ppenumidlist)) } - unsafe extern "system" fn BindToObject(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pbc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolder_Impl, - { + unsafe extern "system" fn BindToObject(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pbc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder_Impl::BindToObject(this, core::mem::transmute_copy(&pidl), windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn BindToStorage(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pbc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolder_Impl, - { + unsafe extern "system" fn BindToStorage(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pbc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder_Impl::BindToStorage(this, core::mem::transmute_copy(&pidl), windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CompareIDs(this: *mut core::ffi::c_void, lparam: super::super::Foundation::LPARAM, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IShellFolder_Impl, - { + unsafe extern "system" fn CompareIDs(this: *mut core::ffi::c_void, lparam: super::super::Foundation::LPARAM, pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder_Impl::CompareIDs(this, core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&pidl1), core::mem::transmute_copy(&pidl2)) } - unsafe extern "system" fn CreateViewObject(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolder_Impl, - { + unsafe extern "system" fn CreateViewObject(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder_Impl::CreateViewObject(this, core::mem::transmute_copy(&hwndowner), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetAttributesOf(this: *mut core::ffi::c_void, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgfinout: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolder_Impl, - { + unsafe extern "system" fn GetAttributesOf(this: *mut core::ffi::c_void, cidl: u32, apidl: *const *const Common::ITEMIDLIST, rgfinout: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder_Impl::GetAttributesOf(this, core::mem::transmute_copy(&cidl), core::mem::transmute_copy(&apidl), core::mem::transmute_copy(&rgfinout)).into() } - unsafe extern "system" fn GetUIObjectOf(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, cidl: u32, apidl: *const *const Common::ITEMIDLIST, riid: *const windows_core::GUID, rgfreserved: *const u32, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolder_Impl, - { + unsafe extern "system" fn GetUIObjectOf(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND, cidl: u32, apidl: *const *const Common::ITEMIDLIST, riid: *const windows_core::GUID, rgfreserved: *const u32, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder_Impl::GetUIObjectOf(this, core::mem::transmute_copy(&hwndowner), core::mem::transmute_copy(&cidl), core::mem::transmute_copy(&apidl), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&rgfreserved), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetDisplayNameOf(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, uflags: SHGDNF, pname: *mut Common::STRRET) -> windows_core::HRESULT - where - Identity: IShellFolder_Impl, - { + unsafe extern "system" fn GetDisplayNameOf(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, uflags: SHGDNF, pname: *mut Common::STRRET) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder_Impl::GetDisplayNameOf(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn SetNameOf(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pidl: *const Common::ITEMIDLIST, pszname: windows_core::PCWSTR, uflags: SHGDNF, ppidlout: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IShellFolder_Impl, - { + unsafe extern "system" fn SetNameOf(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pidl: *const Common::ITEMIDLIST, pszname: windows_core::PCWSTR, uflags: SHGDNF, ppidlout: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder_Impl::SetNameOf(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&pidl), core::mem::transmute(&pszname), core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&ppidlout)).into() } @@ -17454,14 +13041,8 @@ pub trait IShellFolder2_Impl: Sized + IShellFolder_Impl { impl windows_core::RuntimeName for IShellFolder2 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IShellFolder2_Vtbl { - pub const fn new() -> IShellFolder2_Vtbl - where - Identity: IShellFolder2_Impl, - { - unsafe extern "system" fn GetDefaultSearchGUID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IShellFolder2_Impl, - { + pub const fn new() -> IShellFolder2_Vtbl { + unsafe extern "system" fn GetDefaultSearchGUID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolder2_Impl::GetDefaultSearchGUID(this) { Ok(ok__) => { @@ -17471,10 +13052,7 @@ impl IShellFolder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumSearches(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolder2_Impl, - { + unsafe extern "system" fn EnumSearches(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolder2_Impl::EnumSearches(this) { Ok(ok__) => { @@ -17484,17 +13062,11 @@ impl IShellFolder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultColumn(this: *mut core::ffi::c_void, dwres: u32, psort: *mut u32, pdisplay: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolder2_Impl, - { + unsafe extern "system" fn GetDefaultColumn(this: *mut core::ffi::c_void, dwres: u32, psort: *mut u32, pdisplay: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder2_Impl::GetDefaultColumn(this, core::mem::transmute_copy(&dwres), core::mem::transmute_copy(&psort), core::mem::transmute_copy(&pdisplay)).into() } - unsafe extern "system" fn GetDefaultColumnState(this: *mut core::ffi::c_void, icolumn: u32, pcsflags: *mut Common::SHCOLSTATE) -> windows_core::HRESULT - where - Identity: IShellFolder2_Impl, - { + unsafe extern "system" fn GetDefaultColumnState(this: *mut core::ffi::c_void, icolumn: u32, pcsflags: *mut Common::SHCOLSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolder2_Impl::GetDefaultColumnState(this, core::mem::transmute_copy(&icolumn)) { Ok(ok__) => { @@ -17504,10 +13076,7 @@ impl IShellFolder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDetailsEx(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pscid: *const PropertiesSystem::PROPERTYKEY, pv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellFolder2_Impl, - { + unsafe extern "system" fn GetDetailsEx(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pscid: *const PropertiesSystem::PROPERTYKEY, pv: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolder2_Impl::GetDetailsEx(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&pscid)) { Ok(ok__) => { @@ -17517,17 +13086,11 @@ impl IShellFolder2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDetailsOf(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, icolumn: u32, psd: *mut Common::SHELLDETAILS) -> windows_core::HRESULT - where - Identity: IShellFolder2_Impl, - { + unsafe extern "system" fn GetDetailsOf(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, icolumn: u32, psd: *mut Common::SHELLDETAILS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder2_Impl::GetDetailsOf(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&icolumn), core::mem::transmute_copy(&psd)).into() } - unsafe extern "system" fn MapColumnToSCID(this: *mut core::ffi::c_void, icolumn: u32, pscid: *mut PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT - where - Identity: IShellFolder2_Impl, - { + unsafe extern "system" fn MapColumnToSCID(this: *mut core::ffi::c_void, icolumn: u32, pscid: *mut PropertiesSystem::PROPERTYKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolder2_Impl::MapColumnToSCID(this, core::mem::transmute_copy(&icolumn), core::mem::transmute_copy(&pscid)).into() } @@ -17547,7 +13110,7 @@ impl IShellFolder2_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IShellFolderBand_Impl: Sized { +pub trait IShellFolderBand_Impl: Sized + windows_core::IUnknownImpl { fn InitializeSFB(&self, psf: Option<&IShellFolder>, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()>; fn SetBandInfoSFB(&self, pbi: *const BANDINFOSFB) -> windows_core::Result<()>; fn GetBandInfoSFB(&self, pbi: *mut BANDINFOSFB) -> windows_core::Result<()>; @@ -17556,28 +13119,16 @@ pub trait IShellFolderBand_Impl: Sized { impl windows_core::RuntimeName for IShellFolderBand {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IShellFolderBand_Vtbl { - pub const fn new() -> IShellFolderBand_Vtbl - where - Identity: IShellFolderBand_Impl, - { - unsafe extern "system" fn InitializeSFB(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IShellFolderBand_Impl, - { + pub const fn new() -> IShellFolderBand_Vtbl { + unsafe extern "system" fn InitializeSFB(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderBand_Impl::InitializeSFB(this, windows_core::from_raw_borrowed(&psf), core::mem::transmute_copy(&pidl)).into() } - unsafe extern "system" fn SetBandInfoSFB(this: *mut core::ffi::c_void, pbi: *const BANDINFOSFB) -> windows_core::HRESULT - where - Identity: IShellFolderBand_Impl, - { + unsafe extern "system" fn SetBandInfoSFB(this: *mut core::ffi::c_void, pbi: *const BANDINFOSFB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderBand_Impl::SetBandInfoSFB(this, core::mem::transmute_copy(&pbi)).into() } - unsafe extern "system" fn GetBandInfoSFB(this: *mut core::ffi::c_void, pbi: *mut BANDINFOSFB) -> windows_core::HRESULT - where - Identity: IShellFolderBand_Impl, - { + unsafe extern "system" fn GetBandInfoSFB(this: *mut core::ffi::c_void, pbi: *mut BANDINFOSFB) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderBand_Impl::GetBandInfoSFB(this, core::mem::transmute_copy(&pbi)).into() } @@ -17593,7 +13144,7 @@ impl IShellFolderBand_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] -pub trait IShellFolderView_Impl: Sized { +pub trait IShellFolderView_Impl: Sized + windows_core::IUnknownImpl { fn Rearrange(&self, lparamsort: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn GetArrangeParam(&self) -> windows_core::Result; fn ArrangeGrid(&self) -> windows_core::Result<()>; @@ -17627,21 +13178,12 @@ pub trait IShellFolderView_Impl: Sized { impl windows_core::RuntimeName for IShellFolderView {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] impl IShellFolderView_Vtbl { - pub const fn new() -> IShellFolderView_Vtbl - where - Identity: IShellFolderView_Impl, - { - unsafe extern "system" fn Rearrange(this: *mut core::ffi::c_void, lparamsort: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + pub const fn new() -> IShellFolderView_Vtbl { + unsafe extern "system" fn Rearrange(this: *mut core::ffi::c_void, lparamsort: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::Rearrange(this, core::mem::transmute_copy(&lparamsort)).into() } - unsafe extern "system" fn GetArrangeParam(this: *mut core::ffi::c_void, plparamsort: *mut super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn GetArrangeParam(this: *mut core::ffi::c_void, plparamsort: *mut super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::GetArrangeParam(this) { Ok(ok__) => { @@ -17651,31 +13193,19 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ArrangeGrid(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn ArrangeGrid(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::ArrangeGrid(this).into() } - unsafe extern "system" fn AutoArrange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn AutoArrange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::AutoArrange(this).into() } - unsafe extern "system" fn GetAutoArrange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn GetAutoArrange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::GetAutoArrange(this).into() } - unsafe extern "system" fn AddObject(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, puitem: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn AddObject(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, puitem: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::AddObject(this, core::mem::transmute_copy(&pidl)) { Ok(ok__) => { @@ -17685,17 +13215,11 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST, uitem: u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST, uitem: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::GetObject(this, core::mem::transmute_copy(&ppidl), core::mem::transmute_copy(&uitem)).into() } - unsafe extern "system" fn RemoveObject(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, puitem: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn RemoveObject(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, puitem: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::RemoveObject(this, core::mem::transmute_copy(&pidl)) { Ok(ok__) => { @@ -17705,10 +13229,7 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn GetObjectCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::GetObjectCount(this) { Ok(ok__) => { @@ -17718,17 +13239,11 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectCount(this: *mut core::ffi::c_void, ucount: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn SetObjectCount(this: *mut core::ffi::c_void, ucount: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::SetObjectCount(this, core::mem::transmute_copy(&ucount), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn UpdateObject(this: *mut core::ffi::c_void, pidlold: *const Common::ITEMIDLIST, pidlnew: *const Common::ITEMIDLIST, puitem: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn UpdateObject(this: *mut core::ffi::c_void, pidlold: *const Common::ITEMIDLIST, pidlnew: *const Common::ITEMIDLIST, puitem: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::UpdateObject(this, core::mem::transmute_copy(&pidlold), core::mem::transmute_copy(&pidlnew)) { Ok(ok__) => { @@ -17738,10 +13253,7 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RefreshObject(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, puitem: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn RefreshObject(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, puitem: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::RefreshObject(this, core::mem::transmute_copy(&pidl)) { Ok(ok__) => { @@ -17751,17 +13263,11 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRedraw(this: *mut core::ffi::c_void, bredraw: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn SetRedraw(this: *mut core::ffi::c_void, bredraw: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::SetRedraw(this, core::mem::transmute_copy(&bredraw)).into() } - unsafe extern "system" fn GetSelectedCount(this: *mut core::ffi::c_void, puselected: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn GetSelectedCount(this: *mut core::ffi::c_void, puselected: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::GetSelectedCount(this) { Ok(ok__) => { @@ -17771,24 +13277,15 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelectedObjects(this: *mut core::ffi::c_void, pppidl: *mut *mut *mut Common::ITEMIDLIST, puitems: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn GetSelectedObjects(this: *mut core::ffi::c_void, pppidl: *mut *mut *mut Common::ITEMIDLIST, puitems: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::GetSelectedObjects(this, core::mem::transmute_copy(&pppidl), core::mem::transmute_copy(&puitems)).into() } - unsafe extern "system" fn IsDropOnSource(this: *mut core::ffi::c_void, pdroptarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn IsDropOnSource(this: *mut core::ffi::c_void, pdroptarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::IsDropOnSource(this, windows_core::from_raw_borrowed(&pdroptarget)).into() } - unsafe extern "system" fn GetDragPoint(this: *mut core::ffi::c_void, ppt: *mut super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn GetDragPoint(this: *mut core::ffi::c_void, ppt: *mut super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::GetDragPoint(this) { Ok(ok__) => { @@ -17798,10 +13295,7 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDropPoint(this: *mut core::ffi::c_void, ppt: *mut super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn GetDropPoint(this: *mut core::ffi::c_void, ppt: *mut super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::GetDropPoint(this) { Ok(ok__) => { @@ -17811,45 +13305,27 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveIcons(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn MoveIcons(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::MoveIcons(this, windows_core::from_raw_borrowed(&pdataobject)).into() } - unsafe extern "system" fn SetItemPos(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppt: *const super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn SetItemPos(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppt: *const super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::SetItemPos(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&ppt)).into() } - unsafe extern "system" fn IsBkDropTarget(this: *mut core::ffi::c_void, pdroptarget: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn IsBkDropTarget(this: *mut core::ffi::c_void, pdroptarget: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::IsBkDropTarget(this, windows_core::from_raw_borrowed(&pdroptarget)).into() } - unsafe extern "system" fn SetClipboard(this: *mut core::ffi::c_void, bmove: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn SetClipboard(this: *mut core::ffi::c_void, bmove: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::SetClipboard(this, core::mem::transmute_copy(&bmove)).into() } - unsafe extern "system" fn SetPoints(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn SetPoints(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::SetPoints(this, windows_core::from_raw_borrowed(&pdataobject)).into() } - unsafe extern "system" fn GetItemSpacing(this: *mut core::ffi::c_void, pspacing: *mut ITEMSPACING) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn GetItemSpacing(this: *mut core::ffi::c_void, pspacing: *mut ITEMSPACING) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::GetItemSpacing(this) { Ok(ok__) => { @@ -17859,10 +13335,7 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCallback(this: *mut core::ffi::c_void, pnewcb: *mut core::ffi::c_void, ppoldcb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn SetCallback(this: *mut core::ffi::c_void, pnewcb: *mut core::ffi::c_void, ppoldcb: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderView_Impl::SetCallback(this, windows_core::from_raw_borrowed(&pnewcb)) { Ok(ok__) => { @@ -17872,24 +13345,15 @@ impl IShellFolderView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Select(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::Select(this, core::mem::transmute(&dwflags)).into() } - unsafe extern "system" fn QuerySupport(this: *mut core::ffi::c_void, pdwsupport: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn QuerySupport(this: *mut core::ffi::c_void, pdwsupport: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::QuerySupport(this, core::mem::transmute_copy(&pdwsupport)).into() } - unsafe extern "system" fn SetAutomationObject(this: *mut core::ffi::c_void, pdisp: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderView_Impl, - { + unsafe extern "system" fn SetAutomationObject(this: *mut core::ffi::c_void, pdisp: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::SetAutomationObject(this, windows_core::from_raw_borrowed(&pdisp)).into() } @@ -17929,19 +13393,13 @@ impl IShellFolderView_Vtbl { iid == &::IID } } -pub trait IShellFolderViewCB_Impl: Sized { +pub trait IShellFolderViewCB_Impl: Sized + windows_core::IUnknownImpl { fn MessageSFVCB(&self, umsg: &SFVM_MESSAGE_ID, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IShellFolderViewCB {} impl IShellFolderViewCB_Vtbl { - pub const fn new() -> IShellFolderViewCB_Vtbl - where - Identity: IShellFolderViewCB_Impl, - { - unsafe extern "system" fn MessageSFVCB(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IShellFolderViewCB_Impl, - { + pub const fn new() -> IShellFolderViewCB_Vtbl { + unsafe extern "system" fn MessageSFVCB(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderViewCB_Impl::MessageSFVCB(this, core::mem::transmute(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } @@ -17967,14 +13425,8 @@ pub trait IShellFolderViewDual_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for IShellFolderViewDual {} #[cfg(feature = "Win32_System_Com")] impl IShellFolderViewDual_Vtbl { - pub const fn new() -> IShellFolderViewDual_Vtbl - where - Identity: IShellFolderViewDual_Impl, - { - unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual_Impl, - { + pub const fn new() -> IShellFolderViewDual_Vtbl { + unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual_Impl::Application(this) { Ok(ok__) => { @@ -17984,10 +13436,7 @@ impl IShellFolderViewDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual_Impl::Parent(this) { Ok(ok__) => { @@ -17997,10 +13446,7 @@ impl IShellFolderViewDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Folder(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual_Impl, - { + unsafe extern "system" fn Folder(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual_Impl::Folder(this) { Ok(ok__) => { @@ -18010,10 +13456,7 @@ impl IShellFolderViewDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectedItems(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual_Impl, - { + unsafe extern "system" fn SelectedItems(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual_Impl::SelectedItems(this) { Ok(ok__) => { @@ -18023,10 +13466,7 @@ impl IShellFolderViewDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FocusedItem(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual_Impl, - { + unsafe extern "system" fn FocusedItem(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual_Impl::FocusedItem(this) { Ok(ok__) => { @@ -18036,17 +13476,11 @@ impl IShellFolderViewDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelectItem(this: *mut core::ffi::c_void, pvfi: *const core::mem::MaybeUninit, dwflags: i32) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual_Impl, - { + unsafe extern "system" fn SelectItem(this: *mut core::ffi::c_void, pvfi: *const core::mem::MaybeUninit, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderViewDual_Impl::SelectItem(this, core::mem::transmute_copy(&pvfi), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn PopupItemMenu(this: *mut core::ffi::c_void, pfi: *mut core::ffi::c_void, vx: core::mem::MaybeUninit, vy: core::mem::MaybeUninit, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual_Impl, - { + unsafe extern "system" fn PopupItemMenu(this: *mut core::ffi::c_void, pfi: *mut core::ffi::c_void, vx: core::mem::MaybeUninit, vy: core::mem::MaybeUninit, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual_Impl::PopupItemMenu(this, windows_core::from_raw_borrowed(&pfi), core::mem::transmute(&vx), core::mem::transmute(&vy)) { Ok(ok__) => { @@ -18056,10 +13490,7 @@ impl IShellFolderViewDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Script(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual_Impl, - { + unsafe extern "system" fn Script(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual_Impl::Script(this) { Ok(ok__) => { @@ -18069,10 +13500,7 @@ impl IShellFolderViewDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ViewOptions(this: *mut core::ffi::c_void, plviewoptions: *mut i32) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual_Impl, - { + unsafe extern "system" fn ViewOptions(this: *mut core::ffi::c_void, plviewoptions: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual_Impl::ViewOptions(this) { Ok(ok__) => { @@ -18109,14 +13537,8 @@ pub trait IShellFolderViewDual2_Impl: Sized + IShellFolderViewDual_Impl { impl windows_core::RuntimeName for IShellFolderViewDual2 {} #[cfg(feature = "Win32_System_Com")] impl IShellFolderViewDual2_Vtbl { - pub const fn new() -> IShellFolderViewDual2_Vtbl - where - Identity: IShellFolderViewDual2_Impl, - { - unsafe extern "system" fn CurrentViewMode(this: *mut core::ffi::c_void, pviewmode: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual2_Impl, - { + pub const fn new() -> IShellFolderViewDual2_Vtbl { + unsafe extern "system" fn CurrentViewMode(this: *mut core::ffi::c_void, pviewmode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual2_Impl::CurrentViewMode(this) { Ok(ok__) => { @@ -18126,17 +13548,11 @@ impl IShellFolderViewDual2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentViewMode(this: *mut core::ffi::c_void, viewmode: u32) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual2_Impl, - { + unsafe extern "system" fn SetCurrentViewMode(this: *mut core::ffi::c_void, viewmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderViewDual2_Impl::SetCurrentViewMode(this, core::mem::transmute_copy(&viewmode)).into() } - unsafe extern "system" fn SelectItemRelative(this: *mut core::ffi::c_void, irelative: i32) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual2_Impl, - { + unsafe extern "system" fn SelectItemRelative(this: *mut core::ffi::c_void, irelative: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderViewDual2_Impl::SelectItemRelative(this, core::mem::transmute_copy(&irelative)).into() } @@ -18167,14 +13583,8 @@ pub trait IShellFolderViewDual3_Impl: Sized + IShellFolderViewDual2_Impl { impl windows_core::RuntimeName for IShellFolderViewDual3 {} #[cfg(feature = "Win32_System_Com")] impl IShellFolderViewDual3_Vtbl { - pub const fn new() -> IShellFolderViewDual3_Vtbl - where - Identity: IShellFolderViewDual3_Impl, - { - unsafe extern "system" fn GroupBy(this: *mut core::ffi::c_void, pbstrgroupby: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual3_Impl, - { + pub const fn new() -> IShellFolderViewDual3_Vtbl { + unsafe extern "system" fn GroupBy(this: *mut core::ffi::c_void, pbstrgroupby: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual3_Impl::GroupBy(this) { Ok(ok__) => { @@ -18184,17 +13594,11 @@ impl IShellFolderViewDual3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGroupBy(this: *mut core::ffi::c_void, bstrgroupby: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual3_Impl, - { + unsafe extern "system" fn SetGroupBy(this: *mut core::ffi::c_void, bstrgroupby: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderViewDual3_Impl::SetGroupBy(this, core::mem::transmute(&bstrgroupby)).into() } - unsafe extern "system" fn FolderFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual3_Impl, - { + unsafe extern "system" fn FolderFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual3_Impl::FolderFlags(this) { Ok(ok__) => { @@ -18204,17 +13608,11 @@ impl IShellFolderViewDual3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFolderFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual3_Impl, - { + unsafe extern "system" fn SetFolderFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderViewDual3_Impl::SetFolderFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SortColumns(this: *mut core::ffi::c_void, pbstrsortcolumns: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual3_Impl, - { + unsafe extern "system" fn SortColumns(this: *mut core::ffi::c_void, pbstrsortcolumns: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual3_Impl::SortColumns(this) { Ok(ok__) => { @@ -18224,24 +13622,15 @@ impl IShellFolderViewDual3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSortColumns(this: *mut core::ffi::c_void, bstrsortcolumns: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual3_Impl, - { + unsafe extern "system" fn SetSortColumns(this: *mut core::ffi::c_void, bstrsortcolumns: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderViewDual3_Impl::SetSortColumns(this, core::mem::transmute(&bstrsortcolumns)).into() } - unsafe extern "system" fn SetIconSize(this: *mut core::ffi::c_void, iiconsize: i32) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual3_Impl, - { + unsafe extern "system" fn SetIconSize(this: *mut core::ffi::c_void, iiconsize: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderViewDual3_Impl::SetIconSize(this, core::mem::transmute_copy(&iiconsize)).into() } - unsafe extern "system" fn IconSize(this: *mut core::ffi::c_void, piiconsize: *mut i32) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual3_Impl, - { + unsafe extern "system" fn IconSize(this: *mut core::ffi::c_void, piiconsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellFolderViewDual3_Impl::IconSize(this) { Ok(ok__) => { @@ -18251,10 +13640,7 @@ impl IShellFolderViewDual3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FilterView(this: *mut core::ffi::c_void, bstrfiltertext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellFolderViewDual3_Impl, - { + unsafe extern "system" fn FilterView(this: *mut core::ffi::c_void, bstrfiltertext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderViewDual3_Impl::FilterView(this, core::mem::transmute(&bstrfiltertext)).into() } @@ -18276,21 +13662,15 @@ impl IShellFolderViewDual3_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IShellIcon_Impl: Sized { +pub trait IShellIcon_Impl: Sized + windows_core::IUnknownImpl { fn GetIconOf(&self, pidl: *const Common::ITEMIDLIST, flags: u32) -> windows_core::Result; } #[cfg(feature = "Win32_UI_Shell_Common")] impl windows_core::RuntimeName for IShellIcon {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IShellIcon_Vtbl { - pub const fn new() -> IShellIcon_Vtbl - where - Identity: IShellIcon_Impl, - { - unsafe extern "system" fn GetIconOf(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, flags: u32, piconindex: *mut i32) -> windows_core::HRESULT - where - Identity: IShellIcon_Impl, - { + pub const fn new() -> IShellIcon_Vtbl { + unsafe extern "system" fn GetIconOf(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, flags: u32, piconindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellIcon_Impl::GetIconOf(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -18307,7 +13687,7 @@ impl IShellIcon_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait IShellIconOverlay_Impl: Sized { +pub trait IShellIconOverlay_Impl: Sized + windows_core::IUnknownImpl { fn GetOverlayIndex(&self, pidl: *const Common::ITEMIDLIST, pindex: *mut i32) -> windows_core::Result<()>; fn GetOverlayIconIndex(&self, pidl: *const Common::ITEMIDLIST, piconindex: *mut i32) -> windows_core::Result<()>; } @@ -18315,21 +13695,12 @@ pub trait IShellIconOverlay_Impl: Sized { impl windows_core::RuntimeName for IShellIconOverlay {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IShellIconOverlay_Vtbl { - pub const fn new() -> IShellIconOverlay_Vtbl - where - Identity: IShellIconOverlay_Impl, - { - unsafe extern "system" fn GetOverlayIndex(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pindex: *mut i32) -> windows_core::HRESULT - where - Identity: IShellIconOverlay_Impl, - { + pub const fn new() -> IShellIconOverlay_Vtbl { + unsafe extern "system" fn GetOverlayIndex(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellIconOverlay_Impl::GetOverlayIndex(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&pindex)).into() } - unsafe extern "system" fn GetOverlayIconIndex(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, piconindex: *mut i32) -> windows_core::HRESULT - where - Identity: IShellIconOverlay_Impl, - { + unsafe extern "system" fn GetOverlayIconIndex(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, piconindex: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellIconOverlay_Impl::GetOverlayIconIndex(this, core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&piconindex)).into() } @@ -18343,35 +13714,23 @@ impl IShellIconOverlay_Vtbl { iid == &::IID } } -pub trait IShellIconOverlayIdentifier_Impl: Sized { +pub trait IShellIconOverlayIdentifier_Impl: Sized + windows_core::IUnknownImpl { fn IsMemberOf(&self, pwszpath: &windows_core::PCWSTR, dwattrib: u32) -> windows_core::Result<()>; fn GetOverlayInfo(&self, pwsziconfile: windows_core::PWSTR, cchmax: i32, pindex: *mut i32, pdwflags: *mut u32) -> windows_core::Result<()>; fn GetPriority(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IShellIconOverlayIdentifier {} impl IShellIconOverlayIdentifier_Vtbl { - pub const fn new() -> IShellIconOverlayIdentifier_Vtbl - where - Identity: IShellIconOverlayIdentifier_Impl, - { - unsafe extern "system" fn IsMemberOf(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR, dwattrib: u32) -> windows_core::HRESULT - where - Identity: IShellIconOverlayIdentifier_Impl, - { + pub const fn new() -> IShellIconOverlayIdentifier_Vtbl { + unsafe extern "system" fn IsMemberOf(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR, dwattrib: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellIconOverlayIdentifier_Impl::IsMemberOf(this, core::mem::transmute(&pwszpath), core::mem::transmute_copy(&dwattrib)).into() } - unsafe extern "system" fn GetOverlayInfo(this: *mut core::ffi::c_void, pwsziconfile: windows_core::PWSTR, cchmax: i32, pindex: *mut i32, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IShellIconOverlayIdentifier_Impl, - { + unsafe extern "system" fn GetOverlayInfo(this: *mut core::ffi::c_void, pwsziconfile: windows_core::PWSTR, cchmax: i32, pindex: *mut i32, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellIconOverlayIdentifier_Impl::GetOverlayInfo(this, core::mem::transmute_copy(&pwsziconfile), core::mem::transmute_copy(&cchmax), core::mem::transmute_copy(&pindex), core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, ppriority: *mut i32) -> windows_core::HRESULT - where - Identity: IShellIconOverlayIdentifier_Impl, - { + unsafe extern "system" fn GetPriority(this: *mut core::ffi::c_void, ppriority: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellIconOverlayIdentifier_Impl::GetPriority(this) { Ok(ok__) => { @@ -18392,7 +13751,7 @@ impl IShellIconOverlayIdentifier_Vtbl { iid == &::IID } } -pub trait IShellIconOverlayManager_Impl: Sized { +pub trait IShellIconOverlayManager_Impl: Sized + windows_core::IUnknownImpl { fn GetFileOverlayInfo(&self, pwszpath: &windows_core::PCWSTR, dwattrib: u32, pindex: *mut i32, dwflags: u32) -> windows_core::Result<()>; fn GetReservedOverlayInfo(&self, pwszpath: &windows_core::PCWSTR, dwattrib: u32, pindex: *mut i32, dwflags: u32, ireservedid: i32) -> windows_core::Result<()>; fn RefreshOverlayImages(&self, dwflags: u32) -> windows_core::Result<()>; @@ -18401,42 +13760,24 @@ pub trait IShellIconOverlayManager_Impl: Sized { } impl windows_core::RuntimeName for IShellIconOverlayManager {} impl IShellIconOverlayManager_Vtbl { - pub const fn new() -> IShellIconOverlayManager_Vtbl - where - Identity: IShellIconOverlayManager_Impl, - { - unsafe extern "system" fn GetFileOverlayInfo(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR, dwattrib: u32, pindex: *mut i32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellIconOverlayManager_Impl, - { + pub const fn new() -> IShellIconOverlayManager_Vtbl { + unsafe extern "system" fn GetFileOverlayInfo(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR, dwattrib: u32, pindex: *mut i32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellIconOverlayManager_Impl::GetFileOverlayInfo(this, core::mem::transmute(&pwszpath), core::mem::transmute_copy(&dwattrib), core::mem::transmute_copy(&pindex), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetReservedOverlayInfo(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR, dwattrib: u32, pindex: *mut i32, dwflags: u32, ireservedid: i32) -> windows_core::HRESULT - where - Identity: IShellIconOverlayManager_Impl, - { + unsafe extern "system" fn GetReservedOverlayInfo(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR, dwattrib: u32, pindex: *mut i32, dwflags: u32, ireservedid: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellIconOverlayManager_Impl::GetReservedOverlayInfo(this, core::mem::transmute(&pwszpath), core::mem::transmute_copy(&dwattrib), core::mem::transmute_copy(&pindex), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&ireservedid)).into() } - unsafe extern "system" fn RefreshOverlayImages(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellIconOverlayManager_Impl, - { + unsafe extern "system" fn RefreshOverlayImages(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellIconOverlayManager_Impl::RefreshOverlayImages(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn LoadNonloadedOverlayIdentifiers(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellIconOverlayManager_Impl, - { + unsafe extern "system" fn LoadNonloadedOverlayIdentifiers(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellIconOverlayManager_Impl::LoadNonloadedOverlayIdentifiers(this).into() } - unsafe extern "system" fn OverlayIndexFromImageIndex(this: *mut core::ffi::c_void, iimage: i32, piindex: *mut i32, fadd: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IShellIconOverlayManager_Impl, - { + unsafe extern "system" fn OverlayIndexFromImageIndex(this: *mut core::ffi::c_void, iimage: i32, piindex: *mut i32, fadd: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellIconOverlayManager_Impl::OverlayIndexFromImageIndex(this, core::mem::transmute_copy(&iimage), core::mem::transmute_copy(&piindex), core::mem::transmute_copy(&fadd)).into() } @@ -18454,7 +13795,7 @@ impl IShellIconOverlayManager_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Graphics_GdiPlus", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IShellImageData_Impl: Sized { +pub trait IShellImageData_Impl: Sized + windows_core::IUnknownImpl { fn Decode(&self, dwflags: u32, cxdesired: u32, cydesired: u32) -> windows_core::Result<()>; fn Draw(&self, hdc: super::super::Graphics::Gdi::HDC, prcdest: *mut super::super::Foundation::RECT, prcsrc: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; fn NextFrame(&self) -> windows_core::Result<()>; @@ -18490,147 +13831,84 @@ pub trait IShellImageData_Impl: Sized { impl windows_core::RuntimeName for IShellImageData {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Graphics_GdiPlus", feature = "Win32_System_Com_StructuredStorage"))] impl IShellImageData_Vtbl { - pub const fn new() -> IShellImageData_Vtbl - where - Identity: IShellImageData_Impl, - { - unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, dwflags: u32, cxdesired: u32, cydesired: u32) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + pub const fn new() -> IShellImageData_Vtbl { + unsafe extern "system" fn Decode(this: *mut core::ffi::c_void, dwflags: u32, cxdesired: u32, cydesired: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::Decode(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&cxdesired), core::mem::transmute_copy(&cydesired)).into() } - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, prcdest: *mut super::super::Foundation::RECT, prcsrc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, hdc: super::super::Graphics::Gdi::HDC, prcdest: *mut super::super::Foundation::RECT, prcsrc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::Draw(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&prcdest), core::mem::transmute_copy(&prcsrc)).into() } - unsafe extern "system" fn NextFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn NextFrame(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::NextFrame(this).into() } - unsafe extern "system" fn NextPage(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn NextPage(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::NextPage(this).into() } - unsafe extern "system" fn PrevPage(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn PrevPage(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::PrevPage(this).into() } - unsafe extern "system" fn IsTransparent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn IsTransparent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::IsTransparent(this).into() } - unsafe extern "system" fn IsAnimated(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn IsAnimated(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::IsAnimated(this).into() } - unsafe extern "system" fn IsVector(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn IsVector(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::IsVector(this).into() } - unsafe extern "system" fn IsMultipage(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn IsMultipage(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::IsMultipage(this).into() } - unsafe extern "system" fn IsEditable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn IsEditable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::IsEditable(this).into() } - unsafe extern "system" fn IsPrintable(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn IsPrintable(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::IsPrintable(this).into() } - unsafe extern "system" fn IsDecoded(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn IsDecoded(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::IsDecoded(this).into() } - unsafe extern "system" fn GetCurrentPage(this: *mut core::ffi::c_void, pnpage: *mut u32) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn GetCurrentPage(this: *mut core::ffi::c_void, pnpage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::GetCurrentPage(this, core::mem::transmute_copy(&pnpage)).into() } - unsafe extern "system" fn GetPageCount(this: *mut core::ffi::c_void, pcpages: *mut u32) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn GetPageCount(this: *mut core::ffi::c_void, pcpages: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::GetPageCount(this, core::mem::transmute_copy(&pcpages)).into() } - unsafe extern "system" fn SelectPage(this: *mut core::ffi::c_void, ipage: u32) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn SelectPage(this: *mut core::ffi::c_void, ipage: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::SelectPage(this, core::mem::transmute_copy(&ipage)).into() } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::GetSize(this, core::mem::transmute_copy(&psize)).into() } - unsafe extern "system" fn GetRawDataFormat(this: *mut core::ffi::c_void, pdataformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn GetRawDataFormat(this: *mut core::ffi::c_void, pdataformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::GetRawDataFormat(this, core::mem::transmute_copy(&pdataformat)).into() } - unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, pformat: *mut u32) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn GetPixelFormat(this: *mut core::ffi::c_void, pformat: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::GetPixelFormat(this, core::mem::transmute_copy(&pformat)).into() } - unsafe extern "system" fn GetDelay(this: *mut core::ffi::c_void, pdwdelay: *mut u32) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn GetDelay(this: *mut core::ffi::c_void, pdwdelay: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::GetDelay(this, core::mem::transmute_copy(&pdwdelay)).into() } - unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, dwmode: u32, pppropset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn GetProperties(this: *mut core::ffi::c_void, dwmode: u32, pppropset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellImageData_Impl::GetProperties(this, core::mem::transmute_copy(&dwmode)) { Ok(ok__) => { @@ -18640,59 +13918,35 @@ impl IShellImageData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, dwangle: u32) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, dwangle: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::Rotate(this, core::mem::transmute_copy(&dwangle)).into() } - unsafe extern "system" fn Scale(this: *mut core::ffi::c_void, cx: u32, cy: u32, hints: super::super::Graphics::GdiPlus::InterpolationMode) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn Scale(this: *mut core::ffi::c_void, cx: u32, cy: u32, hints: super::super::Graphics::GdiPlus::InterpolationMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::Scale(this, core::mem::transmute_copy(&cx), core::mem::transmute_copy(&cy), core::mem::transmute_copy(&hints)).into() } - unsafe extern "system" fn DiscardEdit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn DiscardEdit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::DiscardEdit(this).into() } - unsafe extern "system" fn SetEncoderParams(this: *mut core::ffi::c_void, pbagenc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn SetEncoderParams(this: *mut core::ffi::c_void, pbagenc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::SetEncoderParams(this, windows_core::from_raw_borrowed(&pbagenc)).into() } - unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, wszname: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::DisplayName(this, core::mem::transmute(&wszname), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn GetResolution(this: *mut core::ffi::c_void, puresolutionx: *mut u32, puresolutiony: *mut u32) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn GetResolution(this: *mut core::ffi::c_void, puresolutionx: *mut u32, puresolutiony: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::GetResolution(this, core::mem::transmute_copy(&puresolutionx), core::mem::transmute_copy(&puresolutiony)).into() } - unsafe extern "system" fn GetEncoderParams(this: *mut core::ffi::c_void, pguidfmt: *mut windows_core::GUID, ppencparams: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn GetEncoderParams(this: *mut core::ffi::c_void, pguidfmt: *mut windows_core::GUID, ppencparams: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::GetEncoderParams(this, core::mem::transmute_copy(&pguidfmt), core::mem::transmute_copy(&ppencparams)).into() } - unsafe extern "system" fn RegisterAbort(this: *mut core::ffi::c_void, pabort: *mut core::ffi::c_void, ppabortprev: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn RegisterAbort(this: *mut core::ffi::c_void, pabort: *mut core::ffi::c_void, ppabortprev: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellImageData_Impl::RegisterAbort(this, windows_core::from_raw_borrowed(&pabort)) { Ok(ok__) => { @@ -18702,17 +13956,11 @@ impl IShellImageData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CloneFrame(this: *mut core::ffi::c_void, ppimg: *mut *mut u8) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn CloneFrame(this: *mut core::ffi::c_void, ppimg: *mut *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::CloneFrame(this, core::mem::transmute_copy(&ppimg)).into() } - unsafe extern "system" fn ReplaceFrame(this: *mut core::ffi::c_void, pimg: *mut u8) -> windows_core::HRESULT - where - Identity: IShellImageData_Impl, - { + unsafe extern "system" fn ReplaceFrame(this: *mut core::ffi::c_void, pimg: *mut u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageData_Impl::ReplaceFrame(this, core::mem::transmute_copy(&pimg)).into() } @@ -18754,19 +14002,13 @@ impl IShellImageData_Vtbl { iid == &::IID } } -pub trait IShellImageDataAbort_Impl: Sized { +pub trait IShellImageDataAbort_Impl: Sized + windows_core::IUnknownImpl { fn QueryAbort(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IShellImageDataAbort {} impl IShellImageDataAbort_Vtbl { - pub const fn new() -> IShellImageDataAbort_Vtbl - where - Identity: IShellImageDataAbort_Impl, - { - unsafe extern "system" fn QueryAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageDataAbort_Impl, - { + pub const fn new() -> IShellImageDataAbort_Vtbl { + unsafe extern "system" fn QueryAbort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellImageDataAbort_Impl::QueryAbort(this).into() } @@ -18777,7 +14019,7 @@ impl IShellImageDataAbort_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IShellImageDataFactory_Impl: Sized { +pub trait IShellImageDataFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateIShellImageData(&self) -> windows_core::Result; fn CreateImageFromFile(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result; fn CreateImageFromStream(&self, pstream: Option<&super::super::System::Com::IStream>) -> windows_core::Result; @@ -18787,14 +14029,8 @@ pub trait IShellImageDataFactory_Impl: Sized { impl windows_core::RuntimeName for IShellImageDataFactory {} #[cfg(feature = "Win32_System_Com")] impl IShellImageDataFactory_Vtbl { - pub const fn new() -> IShellImageDataFactory_Vtbl - where - Identity: IShellImageDataFactory_Impl, - { - unsafe extern "system" fn CreateIShellImageData(this: *mut core::ffi::c_void, ppshimg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageDataFactory_Impl, - { + pub const fn new() -> IShellImageDataFactory_Vtbl { + unsafe extern "system" fn CreateIShellImageData(this: *mut core::ffi::c_void, ppshimg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellImageDataFactory_Impl::CreateIShellImageData(this) { Ok(ok__) => { @@ -18804,10 +14040,7 @@ impl IShellImageDataFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateImageFromFile(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, ppshimg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageDataFactory_Impl, - { + unsafe extern "system" fn CreateImageFromFile(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, ppshimg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellImageDataFactory_Impl::CreateImageFromFile(this, core::mem::transmute(&pszpath)) { Ok(ok__) => { @@ -18817,10 +14050,7 @@ impl IShellImageDataFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateImageFromStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, ppshimg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellImageDataFactory_Impl, - { + unsafe extern "system" fn CreateImageFromStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, ppshimg: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellImageDataFactory_Impl::CreateImageFromStream(this, windows_core::from_raw_borrowed(&pstream)) { Ok(ok__) => { @@ -18830,10 +14060,7 @@ impl IShellImageDataFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataFormatFromPath(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pdataformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IShellImageDataFactory_Impl, - { + unsafe extern "system" fn GetDataFormatFromPath(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pdataformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellImageDataFactory_Impl::GetDataFormatFromPath(this, core::mem::transmute(&pszpath)) { Ok(ok__) => { @@ -18856,7 +14083,7 @@ impl IShellImageDataFactory_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] -pub trait IShellItem_Impl: Sized { +pub trait IShellItem_Impl: Sized + windows_core::IUnknownImpl { fn BindToHandler(&self, pbc: Option<&super::super::System::Com::IBindCtx>, bhid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetParent(&self) -> windows_core::Result; fn GetDisplayName(&self, sigdnname: SIGDN) -> windows_core::Result; @@ -18867,21 +14094,12 @@ pub trait IShellItem_Impl: Sized { impl windows_core::RuntimeName for IShellItem {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] impl IShellItem_Vtbl { - pub const fn new() -> IShellItem_Vtbl - where - Identity: IShellItem_Impl, - { - unsafe extern "system" fn BindToHandler(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, bhid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItem_Impl, - { + pub const fn new() -> IShellItem_Vtbl { + unsafe extern "system" fn BindToHandler(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, bhid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItem_Impl::BindToHandler(this, windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&bhid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItem_Impl, - { + unsafe extern "system" fn GetParent(this: *mut core::ffi::c_void, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem_Impl::GetParent(this) { Ok(ok__) => { @@ -18891,10 +14109,7 @@ impl IShellItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, sigdnname: SIGDN, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IShellItem_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, sigdnname: SIGDN, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem_Impl::GetDisplayName(this, core::mem::transmute_copy(&sigdnname)) { Ok(ok__) => { @@ -18904,10 +14119,7 @@ impl IShellItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS, psfgaoattribs: *mut super::super::System::SystemServices::SFGAO_FLAGS) -> windows_core::HRESULT - where - Identity: IShellItem_Impl, - { + unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS, psfgaoattribs: *mut super::super::System::SystemServices::SFGAO_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem_Impl::GetAttributes(this, core::mem::transmute_copy(&sfgaomask)) { Ok(ok__) => { @@ -18917,10 +14129,7 @@ impl IShellItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, hint: u32, piorder: *mut i32) -> windows_core::HRESULT - where - Identity: IShellItem_Impl, - { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, hint: u32, piorder: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem_Impl::Compare(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&hint)) { Ok(ok__) => { @@ -18963,49 +14172,28 @@ pub trait IShellItem2_Impl: Sized + IShellItem_Impl { impl windows_core::RuntimeName for IShellItem2 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IShellItem2_Vtbl { - pub const fn new() -> IShellItem2_Vtbl - where - Identity: IShellItem2_Impl, - { - unsafe extern "system" fn GetPropertyStore(this: *mut core::ffi::c_void, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + pub const fn new() -> IShellItem2_Vtbl { + unsafe extern "system" fn GetPropertyStore(this: *mut core::ffi::c_void, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItem2_Impl::GetPropertyStore(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetPropertyStoreWithCreateObject(this: *mut core::ffi::c_void, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, punkcreateobject: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetPropertyStoreWithCreateObject(this: *mut core::ffi::c_void, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, punkcreateobject: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItem2_Impl::GetPropertyStoreWithCreateObject(this, core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&punkcreateobject), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetPropertyStoreForKeys(this: *mut core::ffi::c_void, rgkeys: *const PropertiesSystem::PROPERTYKEY, ckeys: u32, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetPropertyStoreForKeys(this: *mut core::ffi::c_void, rgkeys: *const PropertiesSystem::PROPERTYKEY, ckeys: u32, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItem2_Impl::GetPropertyStoreForKeys(this, core::mem::transmute_copy(&rgkeys), core::mem::transmute_copy(&ckeys), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetPropertyDescriptionList(this: *mut core::ffi::c_void, keytype: *const PropertiesSystem::PROPERTYKEY, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetPropertyDescriptionList(this: *mut core::ffi::c_void, keytype: *const PropertiesSystem::PROPERTYKEY, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItem2_Impl::GetPropertyDescriptionList(this, core::mem::transmute_copy(&keytype), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItem2_Impl::Update(this, windows_core::from_raw_borrowed(&pbc)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem2_Impl::GetProperty(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -19015,10 +14203,7 @@ impl IShellItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCLSID(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetCLSID(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem2_Impl::GetCLSID(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -19028,10 +14213,7 @@ impl IShellItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFileTime(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pft: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetFileTime(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pft: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem2_Impl::GetFileTime(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -19041,10 +14223,7 @@ impl IShellItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInt32(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pi: *mut i32) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetInt32(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pi: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem2_Impl::GetInt32(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -19054,10 +14233,7 @@ impl IShellItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, ppsz: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem2_Impl::GetString(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -19067,10 +14243,7 @@ impl IShellItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUInt32(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pui: *mut u32) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetUInt32(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pui: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem2_Impl::GetUInt32(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -19080,10 +14253,7 @@ impl IShellItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetUInt64(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pull: *mut u64) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetUInt64(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pull: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem2_Impl::GetUInt64(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -19093,10 +14263,7 @@ impl IShellItem2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pf: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IShellItem2_Impl, - { + unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, key: *const PropertiesSystem::PROPERTYKEY, pf: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem2_Impl::GetBool(this, core::mem::transmute_copy(&key)) { Ok(ok__) => { @@ -19128,7 +14295,7 @@ impl IShellItem2_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait IShellItemArray_Impl: Sized { +pub trait IShellItemArray_Impl: Sized + windows_core::IUnknownImpl { fn BindToHandler(&self, pbc: Option<&super::super::System::Com::IBindCtx>, bhid: *const windows_core::GUID, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetPropertyStore(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetPropertyDescriptionList(&self, keytype: *const PropertiesSystem::PROPERTYKEY, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -19141,35 +14308,20 @@ pub trait IShellItemArray_Impl: Sized { impl windows_core::RuntimeName for IShellItemArray {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IShellItemArray_Vtbl { - pub const fn new() -> IShellItemArray_Vtbl - where - Identity: IShellItemArray_Impl, - { - unsafe extern "system" fn BindToHandler(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, bhid: *const windows_core::GUID, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItemArray_Impl, - { + pub const fn new() -> IShellItemArray_Vtbl { + unsafe extern "system" fn BindToHandler(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, bhid: *const windows_core::GUID, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItemArray_Impl::BindToHandler(this, windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&bhid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvout)).into() } - unsafe extern "system" fn GetPropertyStore(this: *mut core::ffi::c_void, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItemArray_Impl, - { + unsafe extern "system" fn GetPropertyStore(this: *mut core::ffi::c_void, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItemArray_Impl::GetPropertyStore(this, core::mem::transmute_copy(&flags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetPropertyDescriptionList(this: *mut core::ffi::c_void, keytype: *const PropertiesSystem::PROPERTYKEY, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItemArray_Impl, - { + unsafe extern "system" fn GetPropertyDescriptionList(this: *mut core::ffi::c_void, keytype: *const PropertiesSystem::PROPERTYKEY, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItemArray_Impl::GetPropertyDescriptionList(this, core::mem::transmute_copy(&keytype), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, attribflags: SIATTRIBFLAGS, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS, psfgaoattribs: *mut super::super::System::SystemServices::SFGAO_FLAGS) -> windows_core::HRESULT - where - Identity: IShellItemArray_Impl, - { + unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, attribflags: SIATTRIBFLAGS, sfgaomask: super::super::System::SystemServices::SFGAO_FLAGS, psfgaoattribs: *mut super::super::System::SystemServices::SFGAO_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItemArray_Impl::GetAttributes(this, core::mem::transmute_copy(&attribflags), core::mem::transmute_copy(&sfgaomask)) { Ok(ok__) => { @@ -19179,10 +14331,7 @@ impl IShellItemArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwnumitems: *mut u32) -> windows_core::HRESULT - where - Identity: IShellItemArray_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pdwnumitems: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItemArray_Impl::GetCount(this) { Ok(ok__) => { @@ -19192,10 +14341,7 @@ impl IShellItemArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemAt(this: *mut core::ffi::c_void, dwindex: u32, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItemArray_Impl, - { + unsafe extern "system" fn GetItemAt(this: *mut core::ffi::c_void, dwindex: u32, ppsi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItemArray_Impl::GetItemAt(this, core::mem::transmute_copy(&dwindex)) { Ok(ok__) => { @@ -19205,10 +14351,7 @@ impl IShellItemArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumItems(this: *mut core::ffi::c_void, ppenumshellitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItemArray_Impl, - { + unsafe extern "system" fn EnumItems(this: *mut core::ffi::c_void, ppenumshellitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItemArray_Impl::EnumItems(this) { Ok(ok__) => { @@ -19233,27 +14376,18 @@ impl IShellItemArray_Vtbl { iid == &::IID } } -pub trait IShellItemFilter_Impl: Sized { +pub trait IShellItemFilter_Impl: Sized + windows_core::IUnknownImpl { fn IncludeItem(&self, psi: Option<&IShellItem>) -> windows_core::Result<()>; fn GetEnumFlagsForItem(&self, psi: Option<&IShellItem>) -> windows_core::Result; } impl windows_core::RuntimeName for IShellItemFilter {} impl IShellItemFilter_Vtbl { - pub const fn new() -> IShellItemFilter_Vtbl - where - Identity: IShellItemFilter_Impl, - { - unsafe extern "system" fn IncludeItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItemFilter_Impl, - { + pub const fn new() -> IShellItemFilter_Vtbl { + unsafe extern "system" fn IncludeItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItemFilter_Impl::IncludeItem(this, windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn GetEnumFlagsForItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pgrfflags: *mut u32) -> windows_core::HRESULT - where - Identity: IShellItemFilter_Impl, - { + unsafe extern "system" fn GetEnumFlagsForItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pgrfflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItemFilter_Impl::GetEnumFlagsForItem(this, windows_core::from_raw_borrowed(&psi)) { Ok(ok__) => { @@ -19274,21 +14408,15 @@ impl IShellItemFilter_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IShellItemImageFactory_Impl: Sized { +pub trait IShellItemImageFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetImage(&self, size: &super::super::Foundation::SIZE, flags: SIIGBF) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] impl windows_core::RuntimeName for IShellItemImageFactory {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IShellItemImageFactory_Vtbl { - pub const fn new() -> IShellItemImageFactory_Vtbl - where - Identity: IShellItemImageFactory_Impl, - { - unsafe extern "system" fn GetImage(this: *mut core::ffi::c_void, size: super::super::Foundation::SIZE, flags: SIIGBF, phbm: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IShellItemImageFactory_Impl, - { + pub const fn new() -> IShellItemImageFactory_Vtbl { + unsafe extern "system" fn GetImage(this: *mut core::ffi::c_void, size: super::super::Foundation::SIZE, flags: SIIGBF, phbm: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItemImageFactory_Impl::GetImage(this, core::mem::transmute(&size), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -19304,7 +14432,7 @@ impl IShellItemImageFactory_Vtbl { iid == &::IID } } -pub trait IShellItemResources_Impl: Sized { +pub trait IShellItemResources_Impl: Sized + windows_core::IUnknownImpl { fn GetAttributes(&self) -> windows_core::Result; fn GetSize(&self) -> windows_core::Result; fn GetTimes(&self, pftcreation: *mut super::super::Foundation::FILETIME, pftwrite: *mut super::super::Foundation::FILETIME, pftaccess: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()>; @@ -19318,14 +14446,8 @@ pub trait IShellItemResources_Impl: Sized { } impl windows_core::RuntimeName for IShellItemResources {} impl IShellItemResources_Vtbl { - pub const fn new() -> IShellItemResources_Vtbl - where - Identity: IShellItemResources_Impl, - { - unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pdwattributes: *mut u32) -> windows_core::HRESULT - where - Identity: IShellItemResources_Impl, - { + pub const fn new() -> IShellItemResources_Vtbl { + unsafe extern "system" fn GetAttributes(this: *mut core::ffi::c_void, pdwattributes: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItemResources_Impl::GetAttributes(this) { Ok(ok__) => { @@ -19335,10 +14457,7 @@ impl IShellItemResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pullsize: *mut u64) -> windows_core::HRESULT - where - Identity: IShellItemResources_Impl, - { + unsafe extern "system" fn GetSize(this: *mut core::ffi::c_void, pullsize: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItemResources_Impl::GetSize(this) { Ok(ok__) => { @@ -19348,24 +14467,15 @@ impl IShellItemResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTimes(this: *mut core::ffi::c_void, pftcreation: *mut super::super::Foundation::FILETIME, pftwrite: *mut super::super::Foundation::FILETIME, pftaccess: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IShellItemResources_Impl, - { + unsafe extern "system" fn GetTimes(this: *mut core::ffi::c_void, pftcreation: *mut super::super::Foundation::FILETIME, pftwrite: *mut super::super::Foundation::FILETIME, pftaccess: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItemResources_Impl::GetTimes(this, core::mem::transmute_copy(&pftcreation), core::mem::transmute_copy(&pftwrite), core::mem::transmute_copy(&pftaccess)).into() } - unsafe extern "system" fn SetTimes(this: *mut core::ffi::c_void, pftcreation: *const super::super::Foundation::FILETIME, pftwrite: *const super::super::Foundation::FILETIME, pftaccess: *const super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: IShellItemResources_Impl, - { + unsafe extern "system" fn SetTimes(this: *mut core::ffi::c_void, pftcreation: *const super::super::Foundation::FILETIME, pftwrite: *const super::super::Foundation::FILETIME, pftaccess: *const super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItemResources_Impl::SetTimes(this, core::mem::transmute_copy(&pftcreation), core::mem::transmute_copy(&pftwrite), core::mem::transmute_copy(&pftaccess)).into() } - unsafe extern "system" fn GetResourceDescription(this: *mut core::ffi::c_void, pcsir: *const SHELL_ITEM_RESOURCE, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IShellItemResources_Impl, - { + unsafe extern "system" fn GetResourceDescription(this: *mut core::ffi::c_void, pcsir: *const SHELL_ITEM_RESOURCE, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItemResources_Impl::GetResourceDescription(this, core::mem::transmute_copy(&pcsir)) { Ok(ok__) => { @@ -19375,10 +14485,7 @@ impl IShellItemResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumResources(this: *mut core::ffi::c_void, ppenumr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItemResources_Impl, - { + unsafe extern "system" fn EnumResources(this: *mut core::ffi::c_void, ppenumr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItemResources_Impl::EnumResources(this) { Ok(ok__) => { @@ -19388,31 +14495,19 @@ impl IShellItemResources_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportsResource(this: *mut core::ffi::c_void, pcsir: *const SHELL_ITEM_RESOURCE) -> windows_core::HRESULT - where - Identity: IShellItemResources_Impl, - { + unsafe extern "system" fn SupportsResource(this: *mut core::ffi::c_void, pcsir: *const SHELL_ITEM_RESOURCE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItemResources_Impl::SupportsResource(this, core::mem::transmute_copy(&pcsir)).into() } - unsafe extern "system" fn OpenResource(this: *mut core::ffi::c_void, pcsir: *const SHELL_ITEM_RESOURCE, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItemResources_Impl, - { + unsafe extern "system" fn OpenResource(this: *mut core::ffi::c_void, pcsir: *const SHELL_ITEM_RESOURCE, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItemResources_Impl::OpenResource(this, core::mem::transmute_copy(&pcsir), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn CreateResource(this: *mut core::ffi::c_void, pcsir: *const SHELL_ITEM_RESOURCE, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItemResources_Impl, - { + unsafe extern "system" fn CreateResource(this: *mut core::ffi::c_void, pcsir: *const SHELL_ITEM_RESOURCE, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItemResources_Impl::CreateResource(this, core::mem::transmute_copy(&pcsir), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn MarkForDelete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellItemResources_Impl, - { + unsafe extern "system" fn MarkForDelete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellItemResources_Impl::MarkForDelete(this).into() } @@ -19434,7 +14529,7 @@ impl IShellItemResources_Vtbl { iid == &::IID } } -pub trait IShellLibrary_Impl: Sized { +pub trait IShellLibrary_Impl: Sized + windows_core::IUnknownImpl { fn LoadLibraryFromItem(&self, psilibrary: Option<&IShellItem>, grfmode: u32) -> windows_core::Result<()>; fn LoadLibraryFromKnownFolder(&self, kfidlibrary: *const windows_core::GUID, grfmode: u32) -> windows_core::Result<()>; fn AddFolder(&self, psilocation: Option<&IShellItem>) -> windows_core::Result<()>; @@ -19455,70 +14550,40 @@ pub trait IShellLibrary_Impl: Sized { } impl windows_core::RuntimeName for IShellLibrary {} impl IShellLibrary_Vtbl { - pub const fn new() -> IShellLibrary_Vtbl - where - Identity: IShellLibrary_Impl, - { - unsafe extern "system" fn LoadLibraryFromItem(this: *mut core::ffi::c_void, psilibrary: *mut core::ffi::c_void, grfmode: u32) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + pub const fn new() -> IShellLibrary_Vtbl { + unsafe extern "system" fn LoadLibraryFromItem(this: *mut core::ffi::c_void, psilibrary: *mut core::ffi::c_void, grfmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::LoadLibraryFromItem(this, windows_core::from_raw_borrowed(&psilibrary), core::mem::transmute_copy(&grfmode)).into() } - unsafe extern "system" fn LoadLibraryFromKnownFolder(this: *mut core::ffi::c_void, kfidlibrary: *const windows_core::GUID, grfmode: u32) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn LoadLibraryFromKnownFolder(this: *mut core::ffi::c_void, kfidlibrary: *const windows_core::GUID, grfmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::LoadLibraryFromKnownFolder(this, core::mem::transmute_copy(&kfidlibrary), core::mem::transmute_copy(&grfmode)).into() } - unsafe extern "system" fn AddFolder(this: *mut core::ffi::c_void, psilocation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn AddFolder(this: *mut core::ffi::c_void, psilocation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::AddFolder(this, windows_core::from_raw_borrowed(&psilocation)).into() } - unsafe extern "system" fn RemoveFolder(this: *mut core::ffi::c_void, psilocation: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn RemoveFolder(this: *mut core::ffi::c_void, psilocation: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::RemoveFolder(this, windows_core::from_raw_borrowed(&psilocation)).into() } - unsafe extern "system" fn GetFolders(this: *mut core::ffi::c_void, lff: LIBRARYFOLDERFILTER, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn GetFolders(this: *mut core::ffi::c_void, lff: LIBRARYFOLDERFILTER, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::GetFolders(this, core::mem::transmute_copy(&lff), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn ResolveFolder(this: *mut core::ffi::c_void, psifoldertoresolve: *mut core::ffi::c_void, dwtimeout: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn ResolveFolder(this: *mut core::ffi::c_void, psifoldertoresolve: *mut core::ffi::c_void, dwtimeout: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::ResolveFolder(this, windows_core::from_raw_borrowed(&psifoldertoresolve), core::mem::transmute_copy(&dwtimeout), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetDefaultSaveFolder(this: *mut core::ffi::c_void, dsft: DEFAULTSAVEFOLDERTYPE, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn GetDefaultSaveFolder(this: *mut core::ffi::c_void, dsft: DEFAULTSAVEFOLDERTYPE, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::GetDefaultSaveFolder(this, core::mem::transmute_copy(&dsft), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn SetDefaultSaveFolder(this: *mut core::ffi::c_void, dsft: DEFAULTSAVEFOLDERTYPE, psi: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn SetDefaultSaveFolder(this: *mut core::ffi::c_void, dsft: DEFAULTSAVEFOLDERTYPE, psi: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::SetDefaultSaveFolder(this, core::mem::transmute_copy(&dsft), windows_core::from_raw_borrowed(&psi)).into() } - unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, plofoptions: *mut LIBRARYOPTIONFLAGS) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn GetOptions(this: *mut core::ffi::c_void, plofoptions: *mut LIBRARYOPTIONFLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLibrary_Impl::GetOptions(this) { Ok(ok__) => { @@ -19528,17 +14593,11 @@ impl IShellLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, lofmask: LIBRARYOPTIONFLAGS, lofoptions: LIBRARYOPTIONFLAGS) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, lofmask: LIBRARYOPTIONFLAGS, lofoptions: LIBRARYOPTIONFLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::SetOptions(this, core::mem::transmute_copy(&lofmask), core::mem::transmute_copy(&lofoptions)).into() } - unsafe extern "system" fn GetFolderType(this: *mut core::ffi::c_void, pftid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn GetFolderType(this: *mut core::ffi::c_void, pftid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLibrary_Impl::GetFolderType(this) { Ok(ok__) => { @@ -19548,17 +14607,11 @@ impl IShellLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFolderType(this: *mut core::ffi::c_void, ftid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn SetFolderType(this: *mut core::ffi::c_void, ftid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::SetFolderType(this, core::mem::transmute_copy(&ftid)).into() } - unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, ppszicon: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, ppszicon: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLibrary_Impl::GetIcon(this) { Ok(ok__) => { @@ -19568,24 +14621,15 @@ impl IShellLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIcon(this: *mut core::ffi::c_void, pszicon: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn SetIcon(this: *mut core::ffi::c_void, pszicon: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::SetIcon(this, core::mem::transmute(&pszicon)).into() } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLibrary_Impl::Commit(this).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, psifoldertosavein: *mut core::ffi::c_void, pszlibraryname: windows_core::PCWSTR, lsf: LIBRARYSAVEFLAGS, ppsisavedto: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, psifoldertosavein: *mut core::ffi::c_void, pszlibraryname: windows_core::PCWSTR, lsf: LIBRARYSAVEFLAGS, ppsisavedto: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLibrary_Impl::Save(this, windows_core::from_raw_borrowed(&psifoldertosavein), core::mem::transmute(&pszlibraryname), core::mem::transmute_copy(&lsf)) { Ok(ok__) => { @@ -19595,10 +14639,7 @@ impl IShellLibrary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveInKnownFolder(this: *mut core::ffi::c_void, kfidtosavein: *const windows_core::GUID, pszlibraryname: windows_core::PCWSTR, lsf: LIBRARYSAVEFLAGS, ppsisavedto: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLibrary_Impl, - { + unsafe extern "system" fn SaveInKnownFolder(this: *mut core::ffi::c_void, kfidtosavein: *const windows_core::GUID, pszlibraryname: windows_core::PCWSTR, lsf: LIBRARYSAVEFLAGS, ppsisavedto: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLibrary_Impl::SaveInKnownFolder(this, core::mem::transmute_copy(&kfidtosavein), core::mem::transmute(&pszlibraryname), core::mem::transmute_copy(&lsf)) { Ok(ok__) => { @@ -19634,7 +14675,7 @@ impl IShellLibrary_Vtbl { } } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IShellLinkA_Impl: Sized { +pub trait IShellLinkA_Impl: Sized + windows_core::IUnknownImpl { fn GetPath(&self, pszfile: windows_core::PSTR, cch: i32, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAA, fflags: u32) -> windows_core::Result<()>; fn GetIDList(&self) -> windows_core::Result<*mut Common::ITEMIDLIST>; fn SetIDList(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()>; @@ -19658,21 +14699,12 @@ pub trait IShellLinkA_Impl: Sized { impl windows_core::RuntimeName for IShellLinkA {} #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IShellLinkA_Vtbl { - pub const fn new() -> IShellLinkA_Vtbl - where - Identity: IShellLinkA_Impl, - { - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pszfile: windows_core::PSTR, cch: i32, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAA, fflags: u32) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + pub const fn new() -> IShellLinkA_Vtbl { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pszfile: windows_core::PSTR, cch: i32, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAA, fflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::GetPath(this, core::mem::transmute_copy(&pszfile), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&pfd), core::mem::transmute_copy(&fflags)).into() } - unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkA_Impl::GetIDList(this) { Ok(ok__) => { @@ -19682,59 +14714,35 @@ impl IShellLinkA_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn SetIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::SetIDList(this, core::mem::transmute_copy(&pidl)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pszname: windows_core::PSTR, cch: i32) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pszname: windows_core::PSTR, cch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::GetDescription(this, core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pszname: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pszname: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::SetDescription(this, core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn GetWorkingDirectory(this: *mut core::ffi::c_void, pszdir: windows_core::PSTR, cch: i32) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn GetWorkingDirectory(this: *mut core::ffi::c_void, pszdir: windows_core::PSTR, cch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::GetWorkingDirectory(this, core::mem::transmute_copy(&pszdir), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, pszdir: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, pszdir: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::SetWorkingDirectory(this, core::mem::transmute(&pszdir)).into() } - unsafe extern "system" fn GetArguments(this: *mut core::ffi::c_void, pszargs: windows_core::PSTR, cch: i32) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn GetArguments(this: *mut core::ffi::c_void, pszargs: windows_core::PSTR, cch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::GetArguments(this, core::mem::transmute_copy(&pszargs), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn SetArguments(this: *mut core::ffi::c_void, pszargs: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn SetArguments(this: *mut core::ffi::c_void, pszargs: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::SetArguments(this, core::mem::transmute(&pszargs)).into() } - unsafe extern "system" fn GetHotkey(this: *mut core::ffi::c_void, pwhotkey: *mut u16) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn GetHotkey(this: *mut core::ffi::c_void, pwhotkey: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkA_Impl::GetHotkey(this) { Ok(ok__) => { @@ -19744,17 +14752,11 @@ impl IShellLinkA_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHotkey(this: *mut core::ffi::c_void, whotkey: u16) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn SetHotkey(this: *mut core::ffi::c_void, whotkey: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::SetHotkey(this, core::mem::transmute_copy(&whotkey)).into() } - unsafe extern "system" fn GetShowCmd(this: *mut core::ffi::c_void, pishowcmd: *mut super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn GetShowCmd(this: *mut core::ffi::c_void, pishowcmd: *mut super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkA_Impl::GetShowCmd(this) { Ok(ok__) => { @@ -19764,45 +14766,27 @@ impl IShellLinkA_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowCmd(this: *mut core::ffi::c_void, ishowcmd: super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn SetShowCmd(this: *mut core::ffi::c_void, ishowcmd: super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::SetShowCmd(this, core::mem::transmute_copy(&ishowcmd)).into() } - unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, psziconpath: windows_core::PSTR, cch: i32, piicon: *mut i32) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, psziconpath: windows_core::PSTR, cch: i32, piicon: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::GetIconLocation(this, core::mem::transmute_copy(&psziconpath), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&piicon)).into() } - unsafe extern "system" fn SetIconLocation(this: *mut core::ffi::c_void, psziconpath: windows_core::PCSTR, iicon: i32) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn SetIconLocation(this: *mut core::ffi::c_void, psziconpath: windows_core::PCSTR, iicon: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::SetIconLocation(this, core::mem::transmute(&psziconpath), core::mem::transmute_copy(&iicon)).into() } - unsafe extern "system" fn SetRelativePath(this: *mut core::ffi::c_void, pszpathrel: windows_core::PCSTR, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn SetRelativePath(this: *mut core::ffi::c_void, pszpathrel: windows_core::PCSTR, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::SetRelativePath(this, core::mem::transmute(&pszpathrel), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, fflags: u32) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, fflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::Resolve(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&fflags)).into() } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, pszfile: windows_core::PCSTR) -> windows_core::HRESULT - where - Identity: IShellLinkA_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, pszfile: windows_core::PCSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkA_Impl::SetPath(this, core::mem::transmute(&pszfile)).into() } @@ -19832,7 +14816,7 @@ impl IShellLinkA_Vtbl { iid == &::IID } } -pub trait IShellLinkDataList_Impl: Sized { +pub trait IShellLinkDataList_Impl: Sized + windows_core::IUnknownImpl { fn AddDataBlock(&self, pdatablock: *const core::ffi::c_void) -> windows_core::Result<()>; fn CopyDataBlock(&self, dwsig: u32, ppdatablock: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RemoveDataBlock(&self, dwsig: u32) -> windows_core::Result<()>; @@ -19841,35 +14825,20 @@ pub trait IShellLinkDataList_Impl: Sized { } impl windows_core::RuntimeName for IShellLinkDataList {} impl IShellLinkDataList_Vtbl { - pub const fn new() -> IShellLinkDataList_Vtbl - where - Identity: IShellLinkDataList_Impl, - { - unsafe extern "system" fn AddDataBlock(this: *mut core::ffi::c_void, pdatablock: *const core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLinkDataList_Impl, - { + pub const fn new() -> IShellLinkDataList_Vtbl { + unsafe extern "system" fn AddDataBlock(this: *mut core::ffi::c_void, pdatablock: *const core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDataList_Impl::AddDataBlock(this, core::mem::transmute_copy(&pdatablock)).into() } - unsafe extern "system" fn CopyDataBlock(this: *mut core::ffi::c_void, dwsig: u32, ppdatablock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLinkDataList_Impl, - { + unsafe extern "system" fn CopyDataBlock(this: *mut core::ffi::c_void, dwsig: u32, ppdatablock: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDataList_Impl::CopyDataBlock(this, core::mem::transmute_copy(&dwsig), core::mem::transmute_copy(&ppdatablock)).into() } - unsafe extern "system" fn RemoveDataBlock(this: *mut core::ffi::c_void, dwsig: u32) -> windows_core::HRESULT - where - Identity: IShellLinkDataList_Impl, - { + unsafe extern "system" fn RemoveDataBlock(this: *mut core::ffi::c_void, dwsig: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDataList_Impl::RemoveDataBlock(this, core::mem::transmute_copy(&dwsig)).into() } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IShellLinkDataList_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkDataList_Impl::GetFlags(this) { Ok(ok__) => { @@ -19879,10 +14848,7 @@ impl IShellLinkDataList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellLinkDataList_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDataList_Impl::SetFlags(this, core::mem::transmute_copy(&dwflags)).into() } @@ -19922,14 +14888,8 @@ pub trait IShellLinkDual_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IShellLinkDual {} #[cfg(feature = "Win32_System_Com")] impl IShellLinkDual_Vtbl { - pub const fn new() -> IShellLinkDual_Vtbl - where - Identity: IShellLinkDual_Impl, - { - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + pub const fn new() -> IShellLinkDual_Vtbl { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkDual_Impl::Path(this) { Ok(ok__) => { @@ -19939,17 +14899,11 @@ impl IShellLinkDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDual_Impl::SetPath(this, core::mem::transmute(&bs)).into() } - unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn Description(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkDual_Impl::Description(this) { Ok(ok__) => { @@ -19959,17 +14913,11 @@ impl IShellLinkDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDual_Impl::SetDescription(this, core::mem::transmute(&bs)).into() } - unsafe extern "system" fn WorkingDirectory(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn WorkingDirectory(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkDual_Impl::WorkingDirectory(this) { Ok(ok__) => { @@ -19979,17 +14927,11 @@ impl IShellLinkDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDual_Impl::SetWorkingDirectory(this, core::mem::transmute(&bs)).into() } - unsafe extern "system" fn Arguments(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn Arguments(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkDual_Impl::Arguments(this) { Ok(ok__) => { @@ -19999,17 +14941,11 @@ impl IShellLinkDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetArguments(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn SetArguments(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDual_Impl::SetArguments(this, core::mem::transmute(&bs)).into() } - unsafe extern "system" fn Hotkey(this: *mut core::ffi::c_void, pihk: *mut i32) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn Hotkey(this: *mut core::ffi::c_void, pihk: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkDual_Impl::Hotkey(this) { Ok(ok__) => { @@ -20019,17 +14955,11 @@ impl IShellLinkDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHotkey(this: *mut core::ffi::c_void, ihk: i32) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn SetHotkey(this: *mut core::ffi::c_void, ihk: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDual_Impl::SetHotkey(this, core::mem::transmute_copy(&ihk)).into() } - unsafe extern "system" fn ShowCommand(this: *mut core::ffi::c_void, pishowcommand: *mut i32) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn ShowCommand(this: *mut core::ffi::c_void, pishowcommand: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkDual_Impl::ShowCommand(this) { Ok(ok__) => { @@ -20039,24 +14969,15 @@ impl IShellLinkDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowCommand(this: *mut core::ffi::c_void, ishowcommand: i32) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn SetShowCommand(this: *mut core::ffi::c_void, ishowcommand: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDual_Impl::SetShowCommand(this, core::mem::transmute_copy(&ishowcommand)).into() } - unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, fflags: i32) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, fflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDual_Impl::Resolve(this, core::mem::transmute_copy(&fflags)).into() } - unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit, piicon: *mut i32) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, pbs: *mut core::mem::MaybeUninit, piicon: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkDual_Impl::GetIconLocation(this, core::mem::transmute_copy(&pbs)) { Ok(ok__) => { @@ -20066,17 +14987,11 @@ impl IShellLinkDual_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIconLocation(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit, iicon: i32) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn SetIconLocation(this: *mut core::ffi::c_void, bs: core::mem::MaybeUninit, iicon: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDual_Impl::SetIconLocation(this, core::mem::transmute(&bs), core::mem::transmute_copy(&iicon)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, vwhere: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellLinkDual_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, vwhere: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkDual_Impl::Save(this, core::mem::transmute(&vwhere)).into() } @@ -20112,14 +15027,8 @@ pub trait IShellLinkDual2_Impl: Sized + IShellLinkDual_Impl { impl windows_core::RuntimeName for IShellLinkDual2 {} #[cfg(feature = "Win32_System_Com")] impl IShellLinkDual2_Vtbl { - pub const fn new() -> IShellLinkDual2_Vtbl - where - Identity: IShellLinkDual2_Impl, - { - unsafe extern "system" fn Target(this: *mut core::ffi::c_void, ppfi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellLinkDual2_Impl, - { + pub const fn new() -> IShellLinkDual2_Vtbl { + unsafe extern "system" fn Target(this: *mut core::ffi::c_void, ppfi: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkDual2_Impl::Target(this) { Ok(ok__) => { @@ -20136,7 +15045,7 @@ impl IShellLinkDual2_Vtbl { } } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IShellLinkW_Impl: Sized { +pub trait IShellLinkW_Impl: Sized + windows_core::IUnknownImpl { fn GetPath(&self, pszfile: windows_core::PWSTR, cch: i32, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW, fflags: u32) -> windows_core::Result<()>; fn GetIDList(&self) -> windows_core::Result<*mut Common::ITEMIDLIST>; fn SetIDList(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()>; @@ -20160,21 +15069,12 @@ pub trait IShellLinkW_Impl: Sized { impl windows_core::RuntimeName for IShellLinkW {} #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IShellLinkW_Vtbl { - pub const fn new() -> IShellLinkW_Vtbl - where - Identity: IShellLinkW_Impl, - { - unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pszfile: windows_core::PWSTR, cch: i32, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW, fflags: u32) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + pub const fn new() -> IShellLinkW_Vtbl { + unsafe extern "system" fn GetPath(this: *mut core::ffi::c_void, pszfile: windows_core::PWSTR, cch: i32, pfd: *mut super::super::Storage::FileSystem::WIN32_FIND_DATAW, fflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::GetPath(this, core::mem::transmute_copy(&pszfile), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&pfd), core::mem::transmute_copy(&fflags)).into() } - unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn GetIDList(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkW_Impl::GetIDList(this) { Ok(ok__) => { @@ -20184,59 +15084,35 @@ impl IShellLinkW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn SetIDList(this: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::SetIDList(this, core::mem::transmute_copy(&pidl)).into() } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cch: i32) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pszname: windows_core::PWSTR, cch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::GetDescription(this, core::mem::transmute_copy(&pszname), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn SetDescription(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::SetDescription(this, core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn GetWorkingDirectory(this: *mut core::ffi::c_void, pszdir: windows_core::PWSTR, cch: i32) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn GetWorkingDirectory(this: *mut core::ffi::c_void, pszdir: windows_core::PWSTR, cch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::GetWorkingDirectory(this, core::mem::transmute_copy(&pszdir), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, pszdir: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn SetWorkingDirectory(this: *mut core::ffi::c_void, pszdir: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::SetWorkingDirectory(this, core::mem::transmute(&pszdir)).into() } - unsafe extern "system" fn GetArguments(this: *mut core::ffi::c_void, pszargs: windows_core::PWSTR, cch: i32) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn GetArguments(this: *mut core::ffi::c_void, pszargs: windows_core::PWSTR, cch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::GetArguments(this, core::mem::transmute_copy(&pszargs), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn SetArguments(this: *mut core::ffi::c_void, pszargs: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn SetArguments(this: *mut core::ffi::c_void, pszargs: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::SetArguments(this, core::mem::transmute(&pszargs)).into() } - unsafe extern "system" fn GetHotkey(this: *mut core::ffi::c_void, pwhotkey: *mut u16) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn GetHotkey(this: *mut core::ffi::c_void, pwhotkey: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkW_Impl::GetHotkey(this) { Ok(ok__) => { @@ -20246,17 +15122,11 @@ impl IShellLinkW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHotkey(this: *mut core::ffi::c_void, whotkey: u16) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn SetHotkey(this: *mut core::ffi::c_void, whotkey: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::SetHotkey(this, core::mem::transmute_copy(&whotkey)).into() } - unsafe extern "system" fn GetShowCmd(this: *mut core::ffi::c_void, pishowcmd: *mut super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn GetShowCmd(this: *mut core::ffi::c_void, pishowcmd: *mut super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellLinkW_Impl::GetShowCmd(this) { Ok(ok__) => { @@ -20266,45 +15136,27 @@ impl IShellLinkW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetShowCmd(this: *mut core::ffi::c_void, ishowcmd: super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn SetShowCmd(this: *mut core::ffi::c_void, ishowcmd: super::WindowsAndMessaging::SHOW_WINDOW_CMD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::SetShowCmd(this, core::mem::transmute_copy(&ishowcmd)).into() } - unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, psziconpath: windows_core::PWSTR, cch: i32, piicon: *mut i32) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn GetIconLocation(this: *mut core::ffi::c_void, psziconpath: windows_core::PWSTR, cch: i32, piicon: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::GetIconLocation(this, core::mem::transmute_copy(&psziconpath), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&piicon)).into() } - unsafe extern "system" fn SetIconLocation(this: *mut core::ffi::c_void, psziconpath: windows_core::PCWSTR, iicon: i32) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn SetIconLocation(this: *mut core::ffi::c_void, psziconpath: windows_core::PCWSTR, iicon: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::SetIconLocation(this, core::mem::transmute(&psziconpath), core::mem::transmute_copy(&iicon)).into() } - unsafe extern "system" fn SetRelativePath(this: *mut core::ffi::c_void, pszpathrel: windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn SetRelativePath(this: *mut core::ffi::c_void, pszpathrel: windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::SetRelativePath(this, core::mem::transmute(&pszpathrel), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, fflags: u32) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, fflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::Resolve(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&fflags)).into() } - unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IShellLinkW_Impl, - { + unsafe extern "system" fn SetPath(this: *mut core::ffi::c_void, pszfile: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellLinkW_Impl::SetPath(this, core::mem::transmute(&pszfile)).into() } @@ -20335,7 +15187,7 @@ impl IShellLinkW_Vtbl { } } #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IShellMenu_Impl: Sized { +pub trait IShellMenu_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, psmc: Option<&IShellMenuCallback>, uid: u32, uidancestor: u32, dwflags: u32) -> windows_core::Result<()>; fn GetMenuInfo(&self, ppsmc: *mut Option, puid: *mut u32, puidancestor: *mut u32, pdwflags: *mut u32) -> windows_core::Result<()>; fn SetShellFolder(&self, psf: Option<&IShellFolder>, pidlfolder: *const Common::ITEMIDLIST, hkey: super::super::System::Registry::HKEY, dwflags: u32) -> windows_core::Result<()>; @@ -20350,70 +15202,40 @@ pub trait IShellMenu_Impl: Sized { impl windows_core::RuntimeName for IShellMenu {} #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IShellMenu_Vtbl { - pub const fn new() -> IShellMenu_Vtbl - where - Identity: IShellMenu_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psmc: *mut core::ffi::c_void, uid: u32, uidancestor: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellMenu_Impl, - { + pub const fn new() -> IShellMenu_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psmc: *mut core::ffi::c_void, uid: u32, uidancestor: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellMenu_Impl::Initialize(this, windows_core::from_raw_borrowed(&psmc), core::mem::transmute_copy(&uid), core::mem::transmute_copy(&uidancestor), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetMenuInfo(this: *mut core::ffi::c_void, ppsmc: *mut *mut core::ffi::c_void, puid: *mut u32, puidancestor: *mut u32, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IShellMenu_Impl, - { + unsafe extern "system" fn GetMenuInfo(this: *mut core::ffi::c_void, ppsmc: *mut *mut core::ffi::c_void, puid: *mut u32, puidancestor: *mut u32, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellMenu_Impl::GetMenuInfo(this, core::mem::transmute_copy(&ppsmc), core::mem::transmute_copy(&puid), core::mem::transmute_copy(&puidancestor), core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn SetShellFolder(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, hkey: super::super::System::Registry::HKEY, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellMenu_Impl, - { + unsafe extern "system" fn SetShellFolder(this: *mut core::ffi::c_void, psf: *mut core::ffi::c_void, pidlfolder: *const Common::ITEMIDLIST, hkey: super::super::System::Registry::HKEY, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellMenu_Impl::SetShellFolder(this, windows_core::from_raw_borrowed(&psf), core::mem::transmute_copy(&pidlfolder), core::mem::transmute_copy(&hkey), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetShellFolder(this: *mut core::ffi::c_void, pdwflags: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellMenu_Impl, - { + unsafe extern "system" fn GetShellFolder(this: *mut core::ffi::c_void, pdwflags: *mut u32, ppidl: *mut *mut Common::ITEMIDLIST, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellMenu_Impl::GetShellFolder(this, core::mem::transmute_copy(&pdwflags), core::mem::transmute_copy(&ppidl), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn SetMenu(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, hwnd: super::super::Foundation::HWND, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellMenu_Impl, - { + unsafe extern "system" fn SetMenu(this: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, hwnd: super::super::Foundation::HWND, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellMenu_Impl::SetMenu(this, core::mem::transmute_copy(&hmenu), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetMenu(this: *mut core::ffi::c_void, phmenu: *mut super::WindowsAndMessaging::HMENU, phwnd: *mut super::super::Foundation::HWND, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IShellMenu_Impl, - { + unsafe extern "system" fn GetMenu(this: *mut core::ffi::c_void, phmenu: *mut super::WindowsAndMessaging::HMENU, phwnd: *mut super::super::Foundation::HWND, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellMenu_Impl::GetMenu(this, core::mem::transmute_copy(&phmenu), core::mem::transmute_copy(&phwnd), core::mem::transmute_copy(&pdwflags)).into() } - unsafe extern "system" fn InvalidateItem(this: *mut core::ffi::c_void, psmd: *const SMDATA, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellMenu_Impl, - { + unsafe extern "system" fn InvalidateItem(this: *mut core::ffi::c_void, psmd: *const SMDATA, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellMenu_Impl::InvalidateItem(this, core::mem::transmute_copy(&psmd), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, psmd: *mut SMDATA) -> windows_core::HRESULT - where - Identity: IShellMenu_Impl, - { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, psmd: *mut SMDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellMenu_Impl::GetState(this, core::mem::transmute_copy(&psmd)).into() } - unsafe extern "system" fn SetMenuToolbar(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellMenu_Impl, - { + unsafe extern "system" fn SetMenuToolbar(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellMenu_Impl::SetMenuToolbar(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&dwflags)).into() } @@ -20435,21 +15257,15 @@ impl IShellMenu_Vtbl { } } #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait IShellMenuCallback_Impl: Sized { +pub trait IShellMenuCallback_Impl: Sized + windows_core::IUnknownImpl { fn CallbackSM(&self, psmd: *mut SMDATA, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl windows_core::RuntimeName for IShellMenuCallback {} #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IShellMenuCallback_Vtbl { - pub const fn new() -> IShellMenuCallback_Vtbl - where - Identity: IShellMenuCallback_Impl, - { - unsafe extern "system" fn CallbackSM(this: *mut core::ffi::c_void, psmd: *mut SMDATA, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IShellMenuCallback_Impl, - { + pub const fn new() -> IShellMenuCallback_Vtbl { + unsafe extern "system" fn CallbackSM(this: *mut core::ffi::c_void, psmd: *mut SMDATA, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellMenuCallback_Impl::CallbackSM(this, core::mem::transmute_copy(&psmd), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } @@ -20487,14 +15303,8 @@ pub trait IShellNameSpace_Impl: Sized + IShellFavoritesNameSpace_Impl { impl windows_core::RuntimeName for IShellNameSpace {} #[cfg(feature = "Win32_System_Com")] impl IShellNameSpace_Vtbl { - pub const fn new() -> IShellNameSpace_Vtbl - where - Identity: IShellNameSpace_Impl, - { - unsafe extern "system" fn EnumOptions(this: *mut core::ffi::c_void, pgrfenumflags: *mut i32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + pub const fn new() -> IShellNameSpace_Vtbl { + unsafe extern "system" fn EnumOptions(this: *mut core::ffi::c_void, pgrfenumflags: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellNameSpace_Impl::EnumOptions(this) { Ok(ok__) => { @@ -20504,17 +15314,11 @@ impl IShellNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnumOptions(this: *mut core::ffi::c_void, lval: i32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SetEnumOptions(this: *mut core::ffi::c_void, lval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::SetEnumOptions(this, core::mem::transmute_copy(&lval)).into() } - unsafe extern "system" fn SelectedItem(this: *mut core::ffi::c_void, pitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SelectedItem(this: *mut core::ffi::c_void, pitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellNameSpace_Impl::SelectedItem(this) { Ok(ok__) => { @@ -20524,17 +15328,11 @@ impl IShellNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelectedItem(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SetSelectedItem(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::SetSelectedItem(this, windows_core::from_raw_borrowed(&pitem)).into() } - unsafe extern "system" fn Root(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn Root(this: *mut core::ffi::c_void, pvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellNameSpace_Impl::Root(this) { Ok(ok__) => { @@ -20544,17 +15342,11 @@ impl IShellNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRoot(this: *mut core::ffi::c_void, var: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SetRoot(this: *mut core::ffi::c_void, var: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::SetRoot(this, core::mem::transmute(&var)).into() } - unsafe extern "system" fn Depth(this: *mut core::ffi::c_void, pidepth: *mut i32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn Depth(this: *mut core::ffi::c_void, pidepth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellNameSpace_Impl::Depth(this) { Ok(ok__) => { @@ -20564,17 +15356,11 @@ impl IShellNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDepth(this: *mut core::ffi::c_void, idepth: i32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SetDepth(this: *mut core::ffi::c_void, idepth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::SetDepth(this, core::mem::transmute_copy(&idepth)).into() } - unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, pumode: *mut u32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn Mode(this: *mut core::ffi::c_void, pumode: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellNameSpace_Impl::Mode(this) { Ok(ok__) => { @@ -20584,17 +15370,11 @@ impl IShellNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, umode: u32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, umode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::SetMode(this, core::mem::transmute_copy(&umode)).into() } - unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn Flags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellNameSpace_Impl::Flags(this) { Ok(ok__) => { @@ -20604,24 +15384,15 @@ impl IShellNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::SetFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SetTVFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SetTVFlags(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::SetTVFlags(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn TVFlags(this: *mut core::ffi::c_void, dwflags: *mut u32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn TVFlags(this: *mut core::ffi::c_void, dwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellNameSpace_Impl::TVFlags(this) { Ok(ok__) => { @@ -20631,10 +15402,7 @@ impl IShellNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Columns(this: *mut core::ffi::c_void, bstrcolumns: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn Columns(this: *mut core::ffi::c_void, bstrcolumns: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellNameSpace_Impl::Columns(this) { Ok(ok__) => { @@ -20644,17 +15412,11 @@ impl IShellNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColumns(this: *mut core::ffi::c_void, bstrcolumns: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SetColumns(this: *mut core::ffi::c_void, bstrcolumns: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::SetColumns(this, core::mem::transmute(&bstrcolumns)).into() } - unsafe extern "system" fn CountViewTypes(this: *mut core::ffi::c_void, pitypes: *mut i32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn CountViewTypes(this: *mut core::ffi::c_void, pitypes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellNameSpace_Impl::CountViewTypes(this) { Ok(ok__) => { @@ -20664,17 +15426,11 @@ impl IShellNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetViewType(this: *mut core::ffi::c_void, itype: i32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SetViewType(this: *mut core::ffi::c_void, itype: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::SetViewType(this, core::mem::transmute_copy(&itype)).into() } - unsafe extern "system" fn SelectedItems(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn SelectedItems(this: *mut core::ffi::c_void, ppid: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellNameSpace_Impl::SelectedItems(this) { Ok(ok__) => { @@ -20684,17 +15440,11 @@ impl IShellNameSpace_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, var: core::mem::MaybeUninit, idepth: i32) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, var: core::mem::MaybeUninit, idepth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::Expand(this, core::mem::transmute(&var), core::mem::transmute_copy(&idepth)).into() } - unsafe extern "system" fn UnselectAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellNameSpace_Impl, - { + unsafe extern "system" fn UnselectAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellNameSpace_Impl::UnselectAll(this).into() } @@ -20728,7 +15478,7 @@ impl IShellNameSpace_Vtbl { } } #[cfg(feature = "Win32_UI_Controls")] -pub trait IShellPropSheetExt_Impl: Sized { +pub trait IShellPropSheetExt_Impl: Sized + windows_core::IUnknownImpl { fn AddPages(&self, pfnaddpage: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn ReplacePage(&self, upageid: u32, pfnreplacewith: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; } @@ -20736,21 +15486,12 @@ pub trait IShellPropSheetExt_Impl: Sized { impl windows_core::RuntimeName for IShellPropSheetExt {} #[cfg(feature = "Win32_UI_Controls")] impl IShellPropSheetExt_Vtbl { - pub const fn new() -> IShellPropSheetExt_Vtbl - where - Identity: IShellPropSheetExt_Impl, - { - unsafe extern "system" fn AddPages(this: *mut core::ffi::c_void, pfnaddpage: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IShellPropSheetExt_Impl, - { + pub const fn new() -> IShellPropSheetExt_Vtbl { + unsafe extern "system" fn AddPages(this: *mut core::ffi::c_void, pfnaddpage: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellPropSheetExt_Impl::AddPages(this, core::mem::transmute_copy(&pfnaddpage), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn ReplacePage(this: *mut core::ffi::c_void, upageid: u32, pfnreplacewith: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IShellPropSheetExt_Impl, - { + unsafe extern "system" fn ReplacePage(this: *mut core::ffi::c_void, upageid: u32, pfnreplacewith: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellPropSheetExt_Impl::ReplacePage(this, core::mem::transmute_copy(&upageid), core::mem::transmute_copy(&pfnreplacewith), core::mem::transmute_copy(&lparam)).into() } @@ -20764,19 +15505,13 @@ impl IShellPropSheetExt_Vtbl { iid == &::IID } } -pub trait IShellRunDll_Impl: Sized { +pub trait IShellRunDll_Impl: Sized + windows_core::IUnknownImpl { fn Run(&self, pszargs: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IShellRunDll {} impl IShellRunDll_Vtbl { - pub const fn new() -> IShellRunDll_Vtbl - where - Identity: IShellRunDll_Impl, - { - unsafe extern "system" fn Run(this: *mut core::ffi::c_void, pszargs: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IShellRunDll_Impl, - { + pub const fn new() -> IShellRunDll_Vtbl { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void, pszargs: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellRunDll_Impl::Run(this, core::mem::transmute(&pszargs)).into() } @@ -20786,19 +15521,13 @@ impl IShellRunDll_Vtbl { iid == &::IID } } -pub trait IShellService_Impl: Sized { +pub trait IShellService_Impl: Sized + windows_core::IUnknownImpl { fn SetOwner(&self, punkowner: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IShellService {} impl IShellService_Vtbl { - pub const fn new() -> IShellService_Vtbl - where - Identity: IShellService_Impl, - { - unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, punkowner: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellService_Impl, - { + pub const fn new() -> IShellService_Vtbl { + unsafe extern "system" fn SetOwner(this: *mut core::ffi::c_void, punkowner: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellService_Impl::SetOwner(this, windows_core::from_raw_borrowed(&punkowner)).into() } @@ -20808,7 +15537,7 @@ impl IShellService_Vtbl { iid == &::IID } } -pub trait IShellTaskScheduler_Impl: Sized { +pub trait IShellTaskScheduler_Impl: Sized + windows_core::IUnknownImpl { fn AddTask(&self, prt: Option<&IRunnableTask>, rtoid: *const windows_core::GUID, lparam: usize, dwpriority: u32) -> windows_core::Result<()>; fn RemoveTasks(&self, rtoid: *const windows_core::GUID, lparam: usize, bwaitifrunning: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn CountTasks(&self, rtoid: *const windows_core::GUID) -> u32; @@ -20816,35 +15545,20 @@ pub trait IShellTaskScheduler_Impl: Sized { } impl windows_core::RuntimeName for IShellTaskScheduler {} impl IShellTaskScheduler_Vtbl { - pub const fn new() -> IShellTaskScheduler_Vtbl - where - Identity: IShellTaskScheduler_Impl, - { - unsafe extern "system" fn AddTask(this: *mut core::ffi::c_void, prt: *mut core::ffi::c_void, rtoid: *const windows_core::GUID, lparam: usize, dwpriority: u32) -> windows_core::HRESULT - where - Identity: IShellTaskScheduler_Impl, - { + pub const fn new() -> IShellTaskScheduler_Vtbl { + unsafe extern "system" fn AddTask(this: *mut core::ffi::c_void, prt: *mut core::ffi::c_void, rtoid: *const windows_core::GUID, lparam: usize, dwpriority: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellTaskScheduler_Impl::AddTask(this, windows_core::from_raw_borrowed(&prt), core::mem::transmute_copy(&rtoid), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&dwpriority)).into() } - unsafe extern "system" fn RemoveTasks(this: *mut core::ffi::c_void, rtoid: *const windows_core::GUID, lparam: usize, bwaitifrunning: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IShellTaskScheduler_Impl, - { + unsafe extern "system" fn RemoveTasks(this: *mut core::ffi::c_void, rtoid: *const windows_core::GUID, lparam: usize, bwaitifrunning: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellTaskScheduler_Impl::RemoveTasks(this, core::mem::transmute_copy(&rtoid), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&bwaitifrunning)).into() } - unsafe extern "system" fn CountTasks(this: *mut core::ffi::c_void, rtoid: *const windows_core::GUID) -> u32 - where - Identity: IShellTaskScheduler_Impl, - { + unsafe extern "system" fn CountTasks(this: *mut core::ffi::c_void, rtoid: *const windows_core::GUID) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellTaskScheduler_Impl::CountTasks(this, core::mem::transmute_copy(&rtoid)) } - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, dwreleasestatus: u32, dwthreadtimeout: u32) -> windows_core::HRESULT - where - Identity: IShellTaskScheduler_Impl, - { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, dwreleasestatus: u32, dwthreadtimeout: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellTaskScheduler_Impl::Status(this, core::mem::transmute_copy(&dwreleasestatus), core::mem::transmute_copy(&dwthreadtimeout)).into() } @@ -20880,56 +15594,32 @@ pub trait IShellUIHelper_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IShellUIHelper {} #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper_Vtbl { - pub const fn new() -> IShellUIHelper_Vtbl - where - Identity: IShellUIHelper_Impl, - { - unsafe extern "system" fn ResetFirstBootMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + pub const fn new() -> IShellUIHelper_Vtbl { + unsafe extern "system" fn ResetFirstBootMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::ResetFirstBootMode(this).into() } - unsafe extern "system" fn ResetSafeMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn ResetSafeMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::ResetSafeMode(this).into() } - unsafe extern "system" fn RefreshOfflineDesktop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn RefreshOfflineDesktop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::RefreshOfflineDesktop(this).into() } - unsafe extern "system" fn AddFavorite(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, title: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn AddFavorite(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, title: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::AddFavorite(this, core::mem::transmute(&url), core::mem::transmute_copy(&title)).into() } - unsafe extern "system" fn AddChannel(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn AddChannel(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::AddChannel(this, core::mem::transmute(&url)).into() } - unsafe extern "system" fn AddDesktopComponent(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, r#type: core::mem::MaybeUninit, left: *const core::mem::MaybeUninit, top: *const core::mem::MaybeUninit, width: *const core::mem::MaybeUninit, height: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn AddDesktopComponent(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, r#type: core::mem::MaybeUninit, left: *const core::mem::MaybeUninit, top: *const core::mem::MaybeUninit, width: *const core::mem::MaybeUninit, height: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::AddDesktopComponent(this, 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(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper_Impl::IsSubscribed(this, core::mem::transmute(&url)) { Ok(ok__) => { @@ -20939,45 +15629,27 @@ impl IShellUIHelper_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NavigateAndFind(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, strquery: core::mem::MaybeUninit, vartargetframe: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn NavigateAndFind(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, strquery: core::mem::MaybeUninit, vartargetframe: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::NavigateAndFind(this, core::mem::transmute(&url), core::mem::transmute(&strquery), core::mem::transmute_copy(&vartargetframe)).into() } - unsafe extern "system" fn ImportExportFavorites(this: *mut core::ffi::c_void, fimport: super::super::Foundation::VARIANT_BOOL, strimpexppath: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn ImportExportFavorites(this: *mut core::ffi::c_void, fimport: super::super::Foundation::VARIANT_BOOL, strimpexppath: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::ImportExportFavorites(this, core::mem::transmute_copy(&fimport), core::mem::transmute(&strimpexppath)).into() } - unsafe extern "system" fn AutoCompleteSaveForm(this: *mut core::ffi::c_void, form: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn AutoCompleteSaveForm(this: *mut core::ffi::c_void, form: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::AutoCompleteSaveForm(this, core::mem::transmute_copy(&form)).into() } - unsafe extern "system" fn AutoScan(this: *mut core::ffi::c_void, strsearch: core::mem::MaybeUninit, strfailureurl: core::mem::MaybeUninit, pvartargetframe: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn AutoScan(this: *mut core::ffi::c_void, strsearch: core::mem::MaybeUninit, strfailureurl: core::mem::MaybeUninit, pvartargetframe: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::AutoScan(this, core::mem::transmute(&strsearch), core::mem::transmute(&strfailureurl), core::mem::transmute_copy(&pvartargetframe)).into() } - unsafe extern "system" fn AutoCompleteAttach(this: *mut core::ffi::c_void, reserved: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn AutoCompleteAttach(this: *mut core::ffi::c_void, reserved: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper_Impl::AutoCompleteAttach(this, core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ShowBrowserUI(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pvarin: *const core::mem::MaybeUninit, pvarout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper_Impl, - { + unsafe extern "system" fn ShowBrowserUI(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, pvarin: *const core::mem::MaybeUninit, pvarout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper_Impl::ShowBrowserUI(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&pvarin)) { Ok(ok__) => { @@ -21031,42 +15703,24 @@ pub trait IShellUIHelper2_Impl: Sized + IShellUIHelper_Impl { impl windows_core::RuntimeName for IShellUIHelper2 {} #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper2_Vtbl { - pub const fn new() -> IShellUIHelper2_Vtbl - where - Identity: IShellUIHelper2_Impl, - { - unsafe extern "system" fn AddSearchProvider(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + pub const fn new() -> IShellUIHelper2_Vtbl { + unsafe extern "system" fn AddSearchProvider(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper2_Impl::AddSearchProvider(this, core::mem::transmute(&url)).into() } - unsafe extern "system" fn RunOnceShown(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn RunOnceShown(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper2_Impl::RunOnceShown(this).into() } - unsafe extern "system" fn SkipRunOnce(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn SkipRunOnce(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper2_Impl::SkipRunOnce(this).into() } - unsafe extern "system" fn CustomizeSettings(this: *mut core::ffi::c_void, fsqm: super::super::Foundation::VARIANT_BOOL, fphishing: super::super::Foundation::VARIANT_BOOL, bstrlocale: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn CustomizeSettings(this: *mut core::ffi::c_void, fsqm: super::super::Foundation::VARIANT_BOOL, fphishing: super::super::Foundation::VARIANT_BOOL, bstrlocale: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper2_Impl::CustomizeSettings(this, core::mem::transmute_copy(&fsqm), core::mem::transmute_copy(&fphishing), core::mem::transmute(&bstrlocale)).into() } - unsafe extern "system" fn SqmEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn SqmEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper2_Impl::SqmEnabled(this) { Ok(ok__) => { @@ -21076,10 +15730,7 @@ impl IShellUIHelper2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PhishingEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn PhishingEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper2_Impl::PhishingEnabled(this) { Ok(ok__) => { @@ -21089,10 +15740,7 @@ impl IShellUIHelper2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BrandImageUri(this: *mut core::ffi::c_void, pbstruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn BrandImageUri(this: *mut core::ffi::c_void, pbstruri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper2_Impl::BrandImageUri(this) { Ok(ok__) => { @@ -21102,31 +15750,19 @@ impl IShellUIHelper2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SkipTabsWelcome(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn SkipTabsWelcome(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper2_Impl::SkipTabsWelcome(this).into() } - unsafe extern "system" fn DiagnoseConnection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn DiagnoseConnection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper2_Impl::DiagnoseConnection(this).into() } - unsafe extern "system" fn CustomizeClearType(this: *mut core::ffi::c_void, fset: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn CustomizeClearType(this: *mut core::ffi::c_void, fset: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper2_Impl::CustomizeClearType(this, core::mem::transmute_copy(&fset)).into() } - unsafe extern "system" fn IsSearchProviderInstalled(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn IsSearchProviderInstalled(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper2_Impl::IsSearchProviderInstalled(this, core::mem::transmute(&url)) { Ok(ok__) => { @@ -21136,10 +15772,7 @@ impl IShellUIHelper2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsSearchMigrated(this: *mut core::ffi::c_void, pfmigrated: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn IsSearchMigrated(this: *mut core::ffi::c_void, pfmigrated: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper2_Impl::IsSearchMigrated(this) { Ok(ok__) => { @@ -21149,10 +15782,7 @@ impl IShellUIHelper2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultSearchProvider(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn DefaultSearchProvider(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper2_Impl::DefaultSearchProvider(this) { Ok(ok__) => { @@ -21162,17 +15792,11 @@ impl IShellUIHelper2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RunOnceRequiredSettingsComplete(this: *mut core::ffi::c_void, fcomplete: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn RunOnceRequiredSettingsComplete(this: *mut core::ffi::c_void, fcomplete: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper2_Impl::RunOnceRequiredSettingsComplete(this, core::mem::transmute_copy(&fcomplete)).into() } - unsafe extern "system" fn RunOnceHasShown(this: *mut core::ffi::c_void, pfshown: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn RunOnceHasShown(this: *mut core::ffi::c_void, pfshown: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper2_Impl::RunOnceHasShown(this) { Ok(ok__) => { @@ -21182,10 +15806,7 @@ impl IShellUIHelper2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SearchGuideUrl(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper2_Impl, - { + unsafe extern "system" fn SearchGuideUrl(this: *mut core::ffi::c_void, pbstrurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper2_Impl::SearchGuideUrl(this) { Ok(ok__) => { @@ -21239,21 +15860,12 @@ pub trait IShellUIHelper3_Impl: Sized + IShellUIHelper2_Impl { impl windows_core::RuntimeName for IShellUIHelper3 {} #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper3_Vtbl { - pub const fn new() -> IShellUIHelper3_Vtbl - where - Identity: IShellUIHelper3_Impl, - { - unsafe extern "system" fn AddService(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + pub const fn new() -> IShellUIHelper3_Vtbl { + unsafe extern "system" fn AddService(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper3_Impl::AddService(this, core::mem::transmute(&url)).into() } - unsafe extern "system" fn IsServiceInstalled(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, verb: core::mem::MaybeUninit, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn IsServiceInstalled(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, verb: core::mem::MaybeUninit, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper3_Impl::IsServiceInstalled(this, core::mem::transmute(&url), core::mem::transmute(&verb)) { Ok(ok__) => { @@ -21263,10 +15875,7 @@ impl IShellUIHelper3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InPrivateFilteringEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn InPrivateFilteringEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper3_Impl::InPrivateFilteringEnabled(this) { Ok(ok__) => { @@ -21276,45 +15885,27 @@ impl IShellUIHelper3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddToFavoritesBar(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, title: core::mem::MaybeUninit, r#type: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn AddToFavoritesBar(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, title: core::mem::MaybeUninit, r#type: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper3_Impl::AddToFavoritesBar(this, core::mem::transmute(&url), core::mem::transmute(&title), core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn BuildNewTabPage(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn BuildNewTabPage(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper3_Impl::BuildNewTabPage(this).into() } - unsafe extern "system" fn SetRecentlyClosedVisible(this: *mut core::ffi::c_void, fvisible: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn SetRecentlyClosedVisible(this: *mut core::ffi::c_void, fvisible: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper3_Impl::SetRecentlyClosedVisible(this, core::mem::transmute_copy(&fvisible)).into() } - unsafe extern "system" fn SetActivitiesVisible(this: *mut core::ffi::c_void, fvisible: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn SetActivitiesVisible(this: *mut core::ffi::c_void, fvisible: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper3_Impl::SetActivitiesVisible(this, core::mem::transmute_copy(&fvisible)).into() } - unsafe extern "system" fn ContentDiscoveryReset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn ContentDiscoveryReset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper3_Impl::ContentDiscoveryReset(this).into() } - unsafe extern "system" fn IsSuggestedSitesEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn IsSuggestedSitesEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper3_Impl::IsSuggestedSitesEnabled(this) { Ok(ok__) => { @@ -21324,31 +15915,19 @@ impl IShellUIHelper3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableSuggestedSites(this: *mut core::ffi::c_void, fenable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn EnableSuggestedSites(this: *mut core::ffi::c_void, fenable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper3_Impl::EnableSuggestedSites(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn NavigateToSuggestedSites(this: *mut core::ffi::c_void, bstrrelativeurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn NavigateToSuggestedSites(this: *mut core::ffi::c_void, bstrrelativeurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper3_Impl::NavigateToSuggestedSites(this, core::mem::transmute(&bstrrelativeurl)).into() } - unsafe extern "system" fn ShowTabsHelp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn ShowTabsHelp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper3_Impl::ShowTabsHelp(this).into() } - unsafe extern "system" fn ShowInPrivateHelp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper3_Impl, - { + unsafe extern "system" fn ShowInPrivateHelp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper3_Impl::ShowInPrivateHelp(this).into() } @@ -21398,14 +15977,8 @@ pub trait IShellUIHelper4_Impl: Sized + IShellUIHelper3_Impl { impl windows_core::RuntimeName for IShellUIHelper4 {} #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper4_Vtbl { - pub const fn new() -> IShellUIHelper4_Vtbl - where - Identity: IShellUIHelper4_Impl, - { - unsafe extern "system" fn msIsSiteMode(this: *mut core::ffi::c_void, pfsitemode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + pub const fn new() -> IShellUIHelper4_Vtbl { + unsafe extern "system" fn msIsSiteMode(this: *mut core::ffi::c_void, pfsitemode: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper4_Impl::msIsSiteMode(this) { Ok(ok__) => { @@ -21415,17 +15988,11 @@ impl IShellUIHelper4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn msSiteModeShowThumbBar(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeShowThumbBar(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msSiteModeShowThumbBar(this).into() } - unsafe extern "system" fn msSiteModeAddThumbBarButton(this: *mut core::ffi::c_void, bstriconurl: core::mem::MaybeUninit, bstrtooltip: core::mem::MaybeUninit, pvarbuttonid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeAddThumbBarButton(this: *mut core::ffi::c_void, bstriconurl: core::mem::MaybeUninit, bstrtooltip: core::mem::MaybeUninit, pvarbuttonid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper4_Impl::msSiteModeAddThumbBarButton(this, core::mem::transmute(&bstriconurl), core::mem::transmute(&bstrtooltip)) { Ok(ok__) => { @@ -21435,66 +16002,39 @@ impl IShellUIHelper4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn msSiteModeUpdateThumbBarButton(this: *mut core::ffi::c_void, buttonid: core::mem::MaybeUninit, fenabled: super::super::Foundation::VARIANT_BOOL, fvisible: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeUpdateThumbBarButton(this: *mut core::ffi::c_void, buttonid: core::mem::MaybeUninit, fenabled: super::super::Foundation::VARIANT_BOOL, fvisible: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msSiteModeUpdateThumbBarButton(this, core::mem::transmute(&buttonid), core::mem::transmute_copy(&fenabled), core::mem::transmute_copy(&fvisible)).into() } - unsafe extern "system" fn msSiteModeSetIconOverlay(this: *mut core::ffi::c_void, iconurl: core::mem::MaybeUninit, pvardescription: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeSetIconOverlay(this: *mut core::ffi::c_void, iconurl: core::mem::MaybeUninit, pvardescription: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msSiteModeSetIconOverlay(this, core::mem::transmute(&iconurl), core::mem::transmute_copy(&pvardescription)).into() } - unsafe extern "system" fn msSiteModeClearIconOverlay(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeClearIconOverlay(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msSiteModeClearIconOverlay(this).into() } - unsafe extern "system" fn msAddSiteMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msAddSiteMode(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msAddSiteMode(this).into() } - unsafe extern "system" fn msSiteModeCreateJumpList(this: *mut core::ffi::c_void, bstrheader: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeCreateJumpList(this: *mut core::ffi::c_void, bstrheader: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msSiteModeCreateJumpList(this, core::mem::transmute(&bstrheader)).into() } - unsafe extern "system" fn msSiteModeAddJumpListItem(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstractionuri: core::mem::MaybeUninit, bstriconuri: core::mem::MaybeUninit, pvarwindowtype: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeAddJumpListItem(this: *mut core::ffi::c_void, bstrname: core::mem::MaybeUninit, bstractionuri: core::mem::MaybeUninit, bstriconuri: core::mem::MaybeUninit, pvarwindowtype: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msSiteModeAddJumpListItem(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstractionuri), core::mem::transmute(&bstriconuri), core::mem::transmute_copy(&pvarwindowtype)).into() } - unsafe extern "system" fn msSiteModeClearJumpList(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeClearJumpList(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msSiteModeClearJumpList(this).into() } - unsafe extern "system" fn msSiteModeShowJumpList(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeShowJumpList(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msSiteModeShowJumpList(this).into() } - unsafe extern "system" fn msSiteModeAddButtonStyle(this: *mut core::ffi::c_void, uibuttonid: core::mem::MaybeUninit, bstriconurl: core::mem::MaybeUninit, bstrtooltip: core::mem::MaybeUninit, pvarstyleid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeAddButtonStyle(this: *mut core::ffi::c_void, uibuttonid: core::mem::MaybeUninit, bstriconurl: core::mem::MaybeUninit, bstrtooltip: core::mem::MaybeUninit, pvarstyleid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper4_Impl::msSiteModeAddButtonStyle(this, core::mem::transmute(&uibuttonid), core::mem::transmute(&bstriconurl), core::mem::transmute(&bstrtooltip)) { Ok(ok__) => { @@ -21504,24 +16044,15 @@ impl IShellUIHelper4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn msSiteModeShowButtonStyle(this: *mut core::ffi::c_void, uibuttonid: core::mem::MaybeUninit, uistyleid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeShowButtonStyle(this: *mut core::ffi::c_void, uibuttonid: core::mem::MaybeUninit, uistyleid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msSiteModeShowButtonStyle(this, core::mem::transmute(&uibuttonid), core::mem::transmute(&uistyleid)).into() } - unsafe extern "system" fn msSiteModeActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msSiteModeActivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msSiteModeActivate(this).into() } - unsafe extern "system" fn msIsSiteModeFirstRun(this: *mut core::ffi::c_void, fpreservestate: super::super::Foundation::VARIANT_BOOL, puifirstrun: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msIsSiteModeFirstRun(this: *mut core::ffi::c_void, fpreservestate: super::super::Foundation::VARIANT_BOOL, puifirstrun: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper4_Impl::msIsSiteModeFirstRun(this, core::mem::transmute_copy(&fpreservestate)) { Ok(ok__) => { @@ -21531,17 +16062,11 @@ impl IShellUIHelper4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn msAddTrackingProtectionList(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, bstrfiltername: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msAddTrackingProtectionList(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, bstrfiltername: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper4_Impl::msAddTrackingProtectionList(this, core::mem::transmute(&url), core::mem::transmute(&bstrfiltername)).into() } - unsafe extern "system" fn msTrackingProtectionEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msTrackingProtectionEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper4_Impl::msTrackingProtectionEnabled(this) { Ok(ok__) => { @@ -21551,10 +16076,7 @@ impl IShellUIHelper4_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn msActiveXFilteringEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper4_Impl, - { + unsafe extern "system" fn msActiveXFilteringEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper4_Impl::msActiveXFilteringEnabled(this) { Ok(ok__) => { @@ -21604,14 +16126,8 @@ pub trait IShellUIHelper5_Impl: Sized + IShellUIHelper4_Impl { impl windows_core::RuntimeName for IShellUIHelper5 {} #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper5_Vtbl { - pub const fn new() -> IShellUIHelper5_Vtbl - where - Identity: IShellUIHelper5_Impl, - { - unsafe extern "system" fn msProvisionNetworks(this: *mut core::ffi::c_void, bstrprovisioningxml: core::mem::MaybeUninit, puiresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper5_Impl, - { + pub const fn new() -> IShellUIHelper5_Vtbl { + unsafe extern "system" fn msProvisionNetworks(this: *mut core::ffi::c_void, bstrprovisioningxml: core::mem::MaybeUninit, puiresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper5_Impl::msProvisionNetworks(this, core::mem::transmute(&bstrprovisioningxml)) { Ok(ok__) => { @@ -21621,45 +16137,27 @@ impl IShellUIHelper5_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn msReportSafeUrl(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper5_Impl, - { + unsafe extern "system" fn msReportSafeUrl(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper5_Impl::msReportSafeUrl(this).into() } - unsafe extern "system" fn msSiteModeRefreshBadge(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper5_Impl, - { + unsafe extern "system" fn msSiteModeRefreshBadge(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper5_Impl::msSiteModeRefreshBadge(this).into() } - unsafe extern "system" fn msSiteModeClearBadge(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper5_Impl, - { + unsafe extern "system" fn msSiteModeClearBadge(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper5_Impl::msSiteModeClearBadge(this).into() } - unsafe extern "system" fn msDiagnoseConnectionUILess(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper5_Impl, - { + unsafe extern "system" fn msDiagnoseConnectionUILess(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper5_Impl::msDiagnoseConnectionUILess(this).into() } - unsafe extern "system" fn msLaunchNetworkClientHelp(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper5_Impl, - { + unsafe extern "system" fn msLaunchNetworkClientHelp(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper5_Impl::msLaunchNetworkClientHelp(this).into() } - unsafe extern "system" fn msChangeDefaultBrowser(this: *mut core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper5_Impl, - { + unsafe extern "system" fn msChangeDefaultBrowser(this: *mut core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper5_Impl::msChangeDefaultBrowser(this, core::mem::transmute_copy(&fchange)).into() } @@ -21699,49 +16197,28 @@ pub trait IShellUIHelper6_Impl: Sized + IShellUIHelper5_Impl { impl windows_core::RuntimeName for IShellUIHelper6 {} #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper6_Vtbl { - pub const fn new() -> IShellUIHelper6_Vtbl - where - Identity: IShellUIHelper6_Impl, - { - unsafe extern "system" fn msStopPeriodicTileUpdate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + pub const fn new() -> IShellUIHelper6_Vtbl { + unsafe extern "system" fn msStopPeriodicTileUpdate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msStopPeriodicTileUpdate(this).into() } - unsafe extern "system" fn msStartPeriodicTileUpdate(this: *mut core::ffi::c_void, pollinguris: core::mem::MaybeUninit, starttime: core::mem::MaybeUninit, uiupdaterecurrence: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msStartPeriodicTileUpdate(this: *mut core::ffi::c_void, pollinguris: core::mem::MaybeUninit, starttime: core::mem::MaybeUninit, uiupdaterecurrence: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msStartPeriodicTileUpdate(this, core::mem::transmute(&pollinguris), core::mem::transmute(&starttime), core::mem::transmute(&uiupdaterecurrence)).into() } - unsafe extern "system" fn msStartPeriodicTileUpdateBatch(this: *mut core::ffi::c_void, pollinguris: core::mem::MaybeUninit, starttime: core::mem::MaybeUninit, uiupdaterecurrence: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msStartPeriodicTileUpdateBatch(this: *mut core::ffi::c_void, pollinguris: core::mem::MaybeUninit, starttime: core::mem::MaybeUninit, uiupdaterecurrence: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msStartPeriodicTileUpdateBatch(this, core::mem::transmute(&pollinguris), core::mem::transmute(&starttime), core::mem::transmute(&uiupdaterecurrence)).into() } - unsafe extern "system" fn msClearTile(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msClearTile(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msClearTile(this).into() } - unsafe extern "system" fn msEnableTileNotificationQueue(this: *mut core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msEnableTileNotificationQueue(this: *mut core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msEnableTileNotificationQueue(this, core::mem::transmute_copy(&fchange)).into() } - unsafe extern "system" fn msPinnedSiteState(this: *mut core::ffi::c_void, pvarsitestate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msPinnedSiteState(this: *mut core::ffi::c_void, pvarsitestate: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper6_Impl::msPinnedSiteState(this) { Ok(ok__) => { @@ -21751,59 +16228,35 @@ impl IShellUIHelper6_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn msEnableTileNotificationQueueForSquare150x150(this: *mut core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msEnableTileNotificationQueueForSquare150x150(this: *mut core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msEnableTileNotificationQueueForSquare150x150(this, core::mem::transmute_copy(&fchange)).into() } - unsafe extern "system" fn msEnableTileNotificationQueueForWide310x150(this: *mut core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msEnableTileNotificationQueueForWide310x150(this: *mut core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msEnableTileNotificationQueueForWide310x150(this, core::mem::transmute_copy(&fchange)).into() } - unsafe extern "system" fn msEnableTileNotificationQueueForSquare310x310(this: *mut core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msEnableTileNotificationQueueForSquare310x310(this: *mut core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msEnableTileNotificationQueueForSquare310x310(this, core::mem::transmute_copy(&fchange)).into() } - unsafe extern "system" fn msScheduledTileNotification(this: *mut core::ffi::c_void, bstrnotificationxml: core::mem::MaybeUninit, bstrnotificationid: core::mem::MaybeUninit, bstrnotificationtag: core::mem::MaybeUninit, starttime: core::mem::MaybeUninit, expirationtime: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msScheduledTileNotification(this: *mut core::ffi::c_void, bstrnotificationxml: core::mem::MaybeUninit, bstrnotificationid: core::mem::MaybeUninit, bstrnotificationtag: core::mem::MaybeUninit, starttime: core::mem::MaybeUninit, expirationtime: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msScheduledTileNotification(this, 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(this: *mut core::ffi::c_void, bstrnotificationid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msRemoveScheduledTileNotification(this: *mut core::ffi::c_void, bstrnotificationid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msRemoveScheduledTileNotification(this, core::mem::transmute(&bstrnotificationid)).into() } - unsafe extern "system" fn msStartPeriodicBadgeUpdate(this: *mut core::ffi::c_void, pollinguri: core::mem::MaybeUninit, starttime: core::mem::MaybeUninit, uiupdaterecurrence: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msStartPeriodicBadgeUpdate(this: *mut core::ffi::c_void, pollinguri: core::mem::MaybeUninit, starttime: core::mem::MaybeUninit, uiupdaterecurrence: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msStartPeriodicBadgeUpdate(this, core::mem::transmute(&pollinguri), core::mem::transmute(&starttime), core::mem::transmute(&uiupdaterecurrence)).into() } - unsafe extern "system" fn msStopPeriodicBadgeUpdate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msStopPeriodicBadgeUpdate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msStopPeriodicBadgeUpdate(this).into() } - unsafe extern "system" fn msLaunchInternetOptions(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper6_Impl, - { + unsafe extern "system" fn msLaunchInternetOptions(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper6_Impl::msLaunchInternetOptions(this).into() } @@ -21845,21 +16298,12 @@ pub trait IShellUIHelper7_Impl: Sized + IShellUIHelper6_Impl { impl windows_core::RuntimeName for IShellUIHelper7 {} #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper7_Vtbl { - pub const fn new() -> IShellUIHelper7_Vtbl - where - Identity: IShellUIHelper7_Impl, - { - unsafe extern "system" fn SetExperimentalFlag(this: *mut core::ffi::c_void, bstrflagstring: core::mem::MaybeUninit, vfflag: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper7_Impl, - { + pub const fn new() -> IShellUIHelper7_Vtbl { + unsafe extern "system" fn SetExperimentalFlag(this: *mut core::ffi::c_void, bstrflagstring: core::mem::MaybeUninit, vfflag: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper7_Impl::SetExperimentalFlag(this, core::mem::transmute(&bstrflagstring), core::mem::transmute_copy(&vfflag)).into() } - unsafe extern "system" fn GetExperimentalFlag(this: *mut core::ffi::c_void, bstrflagstring: core::mem::MaybeUninit, vfflag: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper7_Impl, - { + unsafe extern "system" fn GetExperimentalFlag(this: *mut core::ffi::c_void, bstrflagstring: core::mem::MaybeUninit, vfflag: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper7_Impl::GetExperimentalFlag(this, core::mem::transmute(&bstrflagstring)) { Ok(ok__) => { @@ -21869,17 +16313,11 @@ impl IShellUIHelper7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExperimentalValue(this: *mut core::ffi::c_void, bstrvaluestring: core::mem::MaybeUninit, dwvalue: u32) -> windows_core::HRESULT - where - Identity: IShellUIHelper7_Impl, - { + unsafe extern "system" fn SetExperimentalValue(this: *mut core::ffi::c_void, bstrvaluestring: core::mem::MaybeUninit, dwvalue: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper7_Impl::SetExperimentalValue(this, core::mem::transmute(&bstrvaluestring), core::mem::transmute_copy(&dwvalue)).into() } - unsafe extern "system" fn GetExperimentalValue(this: *mut core::ffi::c_void, bstrvaluestring: core::mem::MaybeUninit, pdwvalue: *mut u32) -> windows_core::HRESULT - where - Identity: IShellUIHelper7_Impl, - { + unsafe extern "system" fn GetExperimentalValue(this: *mut core::ffi::c_void, bstrvaluestring: core::mem::MaybeUninit, pdwvalue: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper7_Impl::GetExperimentalValue(this, core::mem::transmute(&bstrvaluestring)) { Ok(ok__) => { @@ -21889,17 +16327,11 @@ impl IShellUIHelper7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResetAllExperimentalFlagsAndValues(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper7_Impl, - { + unsafe extern "system" fn ResetAllExperimentalFlagsAndValues(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper7_Impl::ResetAllExperimentalFlagsAndValues(this).into() } - unsafe extern "system" fn GetNeedIEAutoLaunchFlag(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, flag: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper7_Impl, - { + unsafe extern "system" fn GetNeedIEAutoLaunchFlag(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, flag: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper7_Impl::GetNeedIEAutoLaunchFlag(this, core::mem::transmute(&bstrurl)) { Ok(ok__) => { @@ -21909,17 +16341,11 @@ impl IShellUIHelper7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNeedIEAutoLaunchFlag(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper7_Impl, - { + unsafe extern "system" fn SetNeedIEAutoLaunchFlag(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper7_Impl::SetNeedIEAutoLaunchFlag(this, core::mem::transmute(&bstrurl), core::mem::transmute_copy(&flag)).into() } - unsafe extern "system" fn HasNeedIEAutoLaunchFlag(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, exists: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper7_Impl, - { + unsafe extern "system" fn HasNeedIEAutoLaunchFlag(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, exists: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper7_Impl::HasNeedIEAutoLaunchFlag(this, core::mem::transmute(&bstrurl)) { Ok(ok__) => { @@ -21929,10 +16355,7 @@ impl IShellUIHelper7_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LaunchIE(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, automated: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellUIHelper7_Impl, - { + unsafe extern "system" fn LaunchIE(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, automated: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper7_Impl::LaunchIE(this, core::mem::transmute(&bstrurl), core::mem::transmute_copy(&automated)).into() } @@ -21967,14 +16390,8 @@ pub trait IShellUIHelper8_Impl: Sized + IShellUIHelper7_Impl { impl windows_core::RuntimeName for IShellUIHelper8 {} #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper8_Vtbl { - pub const fn new() -> IShellUIHelper8_Vtbl - where - Identity: IShellUIHelper8_Impl, - { - unsafe extern "system" fn GetCVListData(this: *mut core::ffi::c_void, pbstrresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper8_Impl, - { + pub const fn new() -> IShellUIHelper8_Vtbl { + unsafe extern "system" fn GetCVListData(this: *mut core::ffi::c_void, pbstrresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper8_Impl::GetCVListData(this) { Ok(ok__) => { @@ -21984,10 +16401,7 @@ impl IShellUIHelper8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCVListLocalData(this: *mut core::ffi::c_void, pbstrresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper8_Impl, - { + unsafe extern "system" fn GetCVListLocalData(this: *mut core::ffi::c_void, pbstrresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper8_Impl::GetCVListLocalData(this) { Ok(ok__) => { @@ -21997,10 +16411,7 @@ impl IShellUIHelper8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEMIEListData(this: *mut core::ffi::c_void, pbstrresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper8_Impl, - { + unsafe extern "system" fn GetEMIEListData(this: *mut core::ffi::c_void, pbstrresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper8_Impl::GetEMIEListData(this) { Ok(ok__) => { @@ -22010,10 +16421,7 @@ impl IShellUIHelper8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEMIEListLocalData(this: *mut core::ffi::c_void, pbstrresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper8_Impl, - { + unsafe extern "system" fn GetEMIEListLocalData(this: *mut core::ffi::c_void, pbstrresult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper8_Impl::GetEMIEListLocalData(this) { Ok(ok__) => { @@ -22023,24 +16431,15 @@ impl IShellUIHelper8_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OpenFavoritesPane(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper8_Impl, - { + unsafe extern "system" fn OpenFavoritesPane(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper8_Impl::OpenFavoritesPane(this).into() } - unsafe extern "system" fn OpenFavoritesSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellUIHelper8_Impl, - { + unsafe extern "system" fn OpenFavoritesSettings(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper8_Impl::OpenFavoritesSettings(this).into() } - unsafe extern "system" fn LaunchInHVSI(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellUIHelper8_Impl, - { + unsafe extern "system" fn LaunchInHVSI(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellUIHelper8_Impl::LaunchInHVSI(this, core::mem::transmute(&bstrurl)).into() } @@ -22067,14 +16466,8 @@ pub trait IShellUIHelper9_Impl: Sized + IShellUIHelper8_Impl { impl windows_core::RuntimeName for IShellUIHelper9 {} #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper9_Vtbl { - pub const fn new() -> IShellUIHelper9_Vtbl - where - Identity: IShellUIHelper9_Impl, - { - unsafe extern "system" fn GetOSSku(this: *mut core::ffi::c_void, pdwresult: *mut u32) -> windows_core::HRESULT - where - Identity: IShellUIHelper9_Impl, - { + pub const fn new() -> IShellUIHelper9_Vtbl { + unsafe extern "system" fn GetOSSku(this: *mut core::ffi::c_void, pdwresult: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellUIHelper9_Impl::GetOSSku(this) { Ok(ok__) => { @@ -22108,42 +16501,24 @@ pub trait IShellView_Impl: Sized + super::super::System::Ole::IOleWindow_Impl { impl windows_core::RuntimeName for IShellView {} #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IShellView_Vtbl { - pub const fn new() -> IShellView_Vtbl - where - Identity: IShellView_Impl, - { - unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + pub const fn new() -> IShellView_Vtbl { + unsafe extern "system" fn TranslateAccelerator(this: *mut core::ffi::c_void, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&pmsg)) } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn UIActivate(this: *mut core::ffi::c_void, ustate: u32) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + unsafe extern "system" fn UIActivate(this: *mut core::ffi::c_void, ustate: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView_Impl::UIActivate(this, core::mem::transmute_copy(&ustate)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView_Impl::Refresh(this).into() } - unsafe extern "system" fn CreateViewWindow(this: *mut core::ffi::c_void, psvprevious: *mut core::ffi::c_void, pfs: *const FOLDERSETTINGS, psb: *mut core::ffi::c_void, prcview: *const super::super::Foundation::RECT, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + unsafe extern "system" fn CreateViewWindow(this: *mut core::ffi::c_void, psvprevious: *mut core::ffi::c_void, pfs: *const FOLDERSETTINGS, psb: *mut core::ffi::c_void, prcview: *const super::super::Foundation::RECT, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellView_Impl::CreateViewWindow(this, windows_core::from_raw_borrowed(&psvprevious), core::mem::transmute_copy(&pfs), windows_core::from_raw_borrowed(&psb), core::mem::transmute_copy(&prcview)) { Ok(ok__) => { @@ -22153,17 +16528,11 @@ impl IShellView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DestroyViewWindow(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + unsafe extern "system" fn DestroyViewWindow(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView_Impl::DestroyViewWindow(this).into() } - unsafe extern "system" fn GetCurrentInfo(this: *mut core::ffi::c_void, pfs: *mut FOLDERSETTINGS) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + unsafe extern "system" fn GetCurrentInfo(this: *mut core::ffi::c_void, pfs: *mut FOLDERSETTINGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellView_Impl::GetCurrentInfo(this) { Ok(ok__) => { @@ -22173,31 +16542,19 @@ impl IShellView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddPropertySheetPages(this: *mut core::ffi::c_void, dwreserved: u32, pfn: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + unsafe extern "system" fn AddPropertySheetPages(this: *mut core::ffi::c_void, dwreserved: u32, pfn: super::Controls::LPFNSVADDPROPSHEETPAGE, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView_Impl::AddPropertySheetPages(this, core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&pfn), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn SaveViewState(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + unsafe extern "system" fn SaveViewState(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView_Impl::SaveViewState(this).into() } - unsafe extern "system" fn SelectItem(this: *mut core::ffi::c_void, pidlitem: *const Common::ITEMIDLIST, uflags: u32) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + unsafe extern "system" fn SelectItem(this: *mut core::ffi::c_void, pidlitem: *const Common::ITEMIDLIST, uflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView_Impl::SelectItem(this, core::mem::transmute_copy(&pidlitem), core::mem::transmute_copy(&uflags)).into() } - unsafe extern "system" fn GetItemObject(this: *mut core::ffi::c_void, uitem: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellView_Impl, - { + unsafe extern "system" fn GetItemObject(this: *mut core::ffi::c_void, uitem: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView_Impl::GetItemObject(this, core::mem::transmute(&uitem), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -22231,35 +16588,20 @@ pub trait IShellView2_Impl: Sized + IShellView_Impl { impl windows_core::RuntimeName for IShellView2 {} #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IShellView2_Vtbl { - pub const fn new() -> IShellView2_Vtbl - where - Identity: IShellView2_Impl, - { - unsafe extern "system" fn GetView(this: *mut core::ffi::c_void, pvid: *mut windows_core::GUID, uview: u32) -> windows_core::HRESULT - where - Identity: IShellView2_Impl, - { + pub const fn new() -> IShellView2_Vtbl { + unsafe extern "system" fn GetView(this: *mut core::ffi::c_void, pvid: *mut windows_core::GUID, uview: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView2_Impl::GetView(this, core::mem::transmute_copy(&pvid), core::mem::transmute_copy(&uview)).into() } - unsafe extern "system" fn CreateViewWindow2(this: *mut core::ffi::c_void, lpparams: *const SV2CVW2_PARAMS) -> windows_core::HRESULT - where - Identity: IShellView2_Impl, - { + unsafe extern "system" fn CreateViewWindow2(this: *mut core::ffi::c_void, lpparams: *const SV2CVW2_PARAMS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView2_Impl::CreateViewWindow2(this, core::mem::transmute_copy(&lpparams)).into() } - unsafe extern "system" fn HandleRename(this: *mut core::ffi::c_void, pidlnew: *const Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IShellView2_Impl, - { + unsafe extern "system" fn HandleRename(this: *mut core::ffi::c_void, pidlnew: *const Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView2_Impl::HandleRename(this, core::mem::transmute_copy(&pidlnew)).into() } - unsafe extern "system" fn SelectAndPositionItem(this: *mut core::ffi::c_void, pidlitem: *const Common::ITEMIDLIST, uflags: u32, ppt: *const super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IShellView2_Impl, - { + unsafe extern "system" fn SelectAndPositionItem(this: *mut core::ffi::c_void, pidlitem: *const Common::ITEMIDLIST, uflags: u32, ppt: *const super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView2_Impl::SelectAndPositionItem(this, core::mem::transmute_copy(&pidlitem), core::mem::transmute_copy(&uflags), core::mem::transmute_copy(&ppt)).into() } @@ -22283,14 +16625,8 @@ pub trait IShellView3_Impl: Sized + IShellView2_Impl { impl windows_core::RuntimeName for IShellView3 {} #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IShellView3_Vtbl { - pub const fn new() -> IShellView3_Vtbl - where - Identity: IShellView3_Impl, - { - unsafe extern "system" fn CreateViewWindow3(this: *mut core::ffi::c_void, psbowner: *mut core::ffi::c_void, psvprev: *mut core::ffi::c_void, dwviewflags: u32, dwmask: FOLDERFLAGS, dwflags: FOLDERFLAGS, fvmode: FOLDERVIEWMODE, pvid: *const windows_core::GUID, prcview: *const super::super::Foundation::RECT, phwndview: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IShellView3_Impl, - { + pub const fn new() -> IShellView3_Vtbl { + unsafe extern "system" fn CreateViewWindow3(this: *mut core::ffi::c_void, psbowner: *mut core::ffi::c_void, psvprev: *mut core::ffi::c_void, dwviewflags: u32, dwmask: FOLDERFLAGS, dwflags: FOLDERFLAGS, fvmode: FOLDERVIEWMODE, pvid: *const windows_core::GUID, prcview: *const super::super::Foundation::RECT, phwndview: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellView3_Impl::CreateViewWindow3(this, windows_core::from_raw_borrowed(&psbowner), windows_core::from_raw_borrowed(&psvprev), core::mem::transmute_copy(&dwviewflags), core::mem::transmute_copy(&dwmask), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&fvmode), core::mem::transmute_copy(&pvid), core::mem::transmute_copy(&prcview)) { Ok(ok__) => { @@ -22324,14 +16660,8 @@ pub trait IShellWindows_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IShellWindows {} #[cfg(feature = "Win32_System_Com")] impl IShellWindows_Vtbl { - pub const fn new() -> IShellWindows_Vtbl - where - Identity: IShellWindows_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + pub const fn new() -> IShellWindows_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellWindows_Impl::Count(this) { Ok(ok__) => { @@ -22341,10 +16671,7 @@ impl IShellWindows_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, folder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: core::mem::MaybeUninit, folder: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellWindows_Impl::Item(this, core::mem::transmute(&index)) { Ok(ok__) => { @@ -22354,10 +16681,7 @@ impl IShellWindows_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellWindows_Impl::_NewEnum(this) { Ok(ok__) => { @@ -22367,10 +16691,7 @@ impl IShellWindows_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Register(this: *mut core::ffi::c_void, pid: *mut core::ffi::c_void, hwnd: i32, swclass: ShellWindowTypeConstants, plcookie: *mut i32) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void, pid: *mut core::ffi::c_void, hwnd: i32, swclass: ShellWindowTypeConstants, plcookie: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellWindows_Impl::Register(this, windows_core::from_raw_borrowed(&pid), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&swclass)) { Ok(ok__) => { @@ -22380,10 +16701,7 @@ impl IShellWindows_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterPending(this: *mut core::ffi::c_void, lthreadid: i32, pvarloc: *const core::mem::MaybeUninit, pvarlocroot: *const core::mem::MaybeUninit, swclass: ShellWindowTypeConstants, plcookie: *mut i32) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + unsafe extern "system" fn RegisterPending(this: *mut core::ffi::c_void, lthreadid: i32, pvarloc: *const core::mem::MaybeUninit, pvarlocroot: *const core::mem::MaybeUninit, swclass: ShellWindowTypeConstants, plcookie: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellWindows_Impl::RegisterPending(this, core::mem::transmute_copy(<hreadid), core::mem::transmute_copy(&pvarloc), core::mem::transmute_copy(&pvarlocroot), core::mem::transmute_copy(&swclass)) { Ok(ok__) => { @@ -22393,31 +16711,19 @@ impl IShellWindows_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Revoke(this: *mut core::ffi::c_void, lcookie: i32) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + unsafe extern "system" fn Revoke(this: *mut core::ffi::c_void, lcookie: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellWindows_Impl::Revoke(this, core::mem::transmute_copy(&lcookie)).into() } - unsafe extern "system" fn OnNavigate(this: *mut core::ffi::c_void, lcookie: i32, pvarloc: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + unsafe extern "system" fn OnNavigate(this: *mut core::ffi::c_void, lcookie: i32, pvarloc: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellWindows_Impl::OnNavigate(this, core::mem::transmute_copy(&lcookie), core::mem::transmute_copy(&pvarloc)).into() } - unsafe extern "system" fn OnActivated(this: *mut core::ffi::c_void, lcookie: i32, factive: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + unsafe extern "system" fn OnActivated(this: *mut core::ffi::c_void, lcookie: i32, factive: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellWindows_Impl::OnActivated(this, core::mem::transmute_copy(&lcookie), core::mem::transmute_copy(&factive)).into() } - unsafe extern "system" fn FindWindowSW(this: *mut core::ffi::c_void, pvarloc: *const core::mem::MaybeUninit, pvarlocroot: *const core::mem::MaybeUninit, swclass: ShellWindowTypeConstants, phwnd: *mut i32, swfwoptions: ShellWindowFindWindowOptions, ppdispout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + unsafe extern "system" fn FindWindowSW(this: *mut core::ffi::c_void, pvarloc: *const core::mem::MaybeUninit, pvarlocroot: *const core::mem::MaybeUninit, swclass: ShellWindowTypeConstants, phwnd: *mut i32, swfwoptions: ShellWindowFindWindowOptions, ppdispout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellWindows_Impl::FindWindowSW(this, core::mem::transmute_copy(&pvarloc), core::mem::transmute_copy(&pvarlocroot), core::mem::transmute_copy(&swclass), core::mem::transmute_copy(&phwnd), core::mem::transmute_copy(&swfwoptions)) { Ok(ok__) => { @@ -22427,17 +16733,11 @@ impl IShellWindows_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnCreated(this: *mut core::ffi::c_void, lcookie: i32, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + unsafe extern "system" fn OnCreated(this: *mut core::ffi::c_void, lcookie: i32, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellWindows_Impl::OnCreated(this, core::mem::transmute_copy(&lcookie), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn ProcessAttachDetach(this: *mut core::ffi::c_void, fattach: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IShellWindows_Impl, - { + unsafe extern "system" fn ProcessAttachDetach(this: *mut core::ffi::c_void, fattach: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellWindows_Impl::ProcessAttachDetach(this, core::mem::transmute_copy(&fattach)).into() } @@ -22461,7 +16761,7 @@ impl IShellWindows_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ISortColumnArray_Impl: Sized { +pub trait ISortColumnArray_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetAt(&self, index: u32, sortcolumn: *mut SORTCOLUMN) -> windows_core::Result<()>; fn GetSortType(&self) -> windows_core::Result; @@ -22470,14 +16770,8 @@ pub trait ISortColumnArray_Impl: Sized { impl windows_core::RuntimeName for ISortColumnArray {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISortColumnArray_Vtbl { - pub const fn new() -> ISortColumnArray_Vtbl - where - Identity: ISortColumnArray_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, columncount: *mut u32) -> windows_core::HRESULT - where - Identity: ISortColumnArray_Impl, - { + pub const fn new() -> ISortColumnArray_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, columncount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISortColumnArray_Impl::GetCount(this) { Ok(ok__) => { @@ -22487,17 +16781,11 @@ impl ISortColumnArray_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, sortcolumn: *mut SORTCOLUMN) -> windows_core::HRESULT - where - Identity: ISortColumnArray_Impl, - { + unsafe extern "system" fn GetAt(this: *mut core::ffi::c_void, index: u32, sortcolumn: *mut SORTCOLUMN) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISortColumnArray_Impl::GetAt(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&sortcolumn)).into() } - unsafe extern "system" fn GetSortType(this: *mut core::ffi::c_void, r#type: *mut SORT_ORDER_TYPE) -> windows_core::HRESULT - where - Identity: ISortColumnArray_Impl, - { + unsafe extern "system" fn GetSortType(this: *mut core::ffi::c_void, r#type: *mut SORT_ORDER_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISortColumnArray_Impl::GetSortType(this) { Ok(ok__) => { @@ -22518,19 +16806,13 @@ impl ISortColumnArray_Vtbl { iid == &::IID } } -pub trait IStartMenuPinnedList_Impl: Sized { +pub trait IStartMenuPinnedList_Impl: Sized + windows_core::IUnknownImpl { fn RemoveFromList(&self, pitem: Option<&IShellItem>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IStartMenuPinnedList {} impl IStartMenuPinnedList_Vtbl { - pub const fn new() -> IStartMenuPinnedList_Vtbl - where - Identity: IStartMenuPinnedList_Impl, - { - unsafe extern "system" fn RemoveFromList(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStartMenuPinnedList_Impl, - { + pub const fn new() -> IStartMenuPinnedList_Vtbl { + unsafe extern "system" fn RemoveFromList(this: *mut core::ffi::c_void, pitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStartMenuPinnedList_Impl::RemoveFromList(this, windows_core::from_raw_borrowed(&pitem)).into() } @@ -22540,7 +16822,7 @@ impl IStartMenuPinnedList_Vtbl { iid == &::IID } } -pub trait IStorageProviderBanners_Impl: Sized { +pub trait IStorageProviderBanners_Impl: Sized + windows_core::IUnknownImpl { fn SetBanner(&self, provideridentity: &windows_core::PCWSTR, subscriptionid: &windows_core::PCWSTR, contentid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ClearBanner(&self, provideridentity: &windows_core::PCWSTR, subscriptionid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ClearAllBanners(&self, provideridentity: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -22548,35 +16830,20 @@ pub trait IStorageProviderBanners_Impl: Sized { } impl windows_core::RuntimeName for IStorageProviderBanners {} impl IStorageProviderBanners_Vtbl { - pub const fn new() -> IStorageProviderBanners_Vtbl - where - Identity: IStorageProviderBanners_Impl, - { - unsafe extern "system" fn SetBanner(this: *mut core::ffi::c_void, provideridentity: windows_core::PCWSTR, subscriptionid: windows_core::PCWSTR, contentid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStorageProviderBanners_Impl, - { + pub const fn new() -> IStorageProviderBanners_Vtbl { + unsafe extern "system" fn SetBanner(this: *mut core::ffi::c_void, provideridentity: windows_core::PCWSTR, subscriptionid: windows_core::PCWSTR, contentid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageProviderBanners_Impl::SetBanner(this, core::mem::transmute(&provideridentity), core::mem::transmute(&subscriptionid), core::mem::transmute(&contentid)).into() } - unsafe extern "system" fn ClearBanner(this: *mut core::ffi::c_void, provideridentity: windows_core::PCWSTR, subscriptionid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStorageProviderBanners_Impl, - { + unsafe extern "system" fn ClearBanner(this: *mut core::ffi::c_void, provideridentity: windows_core::PCWSTR, subscriptionid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageProviderBanners_Impl::ClearBanner(this, core::mem::transmute(&provideridentity), core::mem::transmute(&subscriptionid)).into() } - unsafe extern "system" fn ClearAllBanners(this: *mut core::ffi::c_void, provideridentity: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IStorageProviderBanners_Impl, - { + unsafe extern "system" fn ClearAllBanners(this: *mut core::ffi::c_void, provideridentity: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageProviderBanners_Impl::ClearAllBanners(this, core::mem::transmute(&provideridentity)).into() } - unsafe extern "system" fn GetBanner(this: *mut core::ffi::c_void, provideridentity: windows_core::PCWSTR, subscriptionid: windows_core::PCWSTR, contentid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IStorageProviderBanners_Impl, - { + unsafe extern "system" fn GetBanner(this: *mut core::ffi::c_void, provideridentity: windows_core::PCWSTR, subscriptionid: windows_core::PCWSTR, contentid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderBanners_Impl::GetBanner(this, core::mem::transmute(&provideridentity), core::mem::transmute(&subscriptionid)) { Ok(ok__) => { @@ -22598,19 +16865,13 @@ impl IStorageProviderBanners_Vtbl { iid == &::IID } } -pub trait IStorageProviderCopyHook_Impl: Sized { +pub trait IStorageProviderCopyHook_Impl: Sized + windows_core::IUnknownImpl { fn CopyCallback(&self, hwnd: super::super::Foundation::HWND, operation: u32, flags: u32, srcfile: &windows_core::PCWSTR, srcattribs: u32, destfile: &windows_core::PCWSTR, destattribs: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IStorageProviderCopyHook {} impl IStorageProviderCopyHook_Vtbl { - pub const fn new() -> IStorageProviderCopyHook_Vtbl - where - Identity: IStorageProviderCopyHook_Impl, - { - unsafe extern "system" fn CopyCallback(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, operation: u32, flags: u32, srcfile: windows_core::PCWSTR, srcattribs: u32, destfile: windows_core::PCWSTR, destattribs: u32, result: *mut u32) -> windows_core::HRESULT - where - Identity: IStorageProviderCopyHook_Impl, - { + pub const fn new() -> IStorageProviderCopyHook_Vtbl { + unsafe extern "system" fn CopyCallback(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, operation: u32, flags: u32, srcfile: windows_core::PCWSTR, srcattribs: u32, destfile: windows_core::PCWSTR, destattribs: u32, result: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderCopyHook_Impl::CopyCallback(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&operation), core::mem::transmute_copy(&flags), core::mem::transmute(&srcfile), core::mem::transmute_copy(&srcattribs), core::mem::transmute(&destfile), core::mem::transmute_copy(&destattribs)) { Ok(ok__) => { @@ -22626,21 +16887,15 @@ impl IStorageProviderCopyHook_Vtbl { iid == &::IID } } -pub trait IStorageProviderHandler_Impl: Sized { +pub trait IStorageProviderHandler_Impl: Sized + windows_core::IUnknownImpl { fn GetPropertyHandlerFromPath(&self, path: &windows_core::PCWSTR) -> windows_core::Result; fn GetPropertyHandlerFromUri(&self, uri: &windows_core::PCWSTR) -> windows_core::Result; fn GetPropertyHandlerFromFileId(&self, fileid: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IStorageProviderHandler {} impl IStorageProviderHandler_Vtbl { - pub const fn new() -> IStorageProviderHandler_Vtbl - where - Identity: IStorageProviderHandler_Impl, - { - unsafe extern "system" fn GetPropertyHandlerFromPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, propertyhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderHandler_Impl, - { + pub const fn new() -> IStorageProviderHandler_Vtbl { + unsafe extern "system" fn GetPropertyHandlerFromPath(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, propertyhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderHandler_Impl::GetPropertyHandlerFromPath(this, core::mem::transmute(&path)) { Ok(ok__) => { @@ -22650,10 +16905,7 @@ impl IStorageProviderHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyHandlerFromUri(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, propertyhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderHandler_Impl, - { + unsafe extern "system" fn GetPropertyHandlerFromUri(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, propertyhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderHandler_Impl::GetPropertyHandlerFromUri(this, core::mem::transmute(&uri)) { Ok(ok__) => { @@ -22663,10 +16915,7 @@ impl IStorageProviderHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyHandlerFromFileId(this: *mut core::ffi::c_void, fileid: windows_core::PCWSTR, propertyhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderHandler_Impl, - { + unsafe extern "system" fn GetPropertyHandlerFromFileId(this: *mut core::ffi::c_void, fileid: windows_core::PCWSTR, propertyhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderHandler_Impl::GetPropertyHandlerFromFileId(this, core::mem::transmute(&fileid)) { Ok(ok__) => { @@ -22688,7 +16937,7 @@ impl IStorageProviderHandler_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait IStorageProviderPropertyHandler_Impl: Sized { +pub trait IStorageProviderPropertyHandler_Impl: Sized + windows_core::IUnknownImpl { fn RetrieveProperties(&self, propertiestoretrieve: *const PropertiesSystem::PROPERTYKEY, propertiestoretrievecount: u32) -> windows_core::Result; fn SaveProperties(&self, propertiestosave: Option<&PropertiesSystem::IPropertyStore>) -> windows_core::Result<()>; } @@ -22696,14 +16945,8 @@ pub trait IStorageProviderPropertyHandler_Impl: Sized { impl windows_core::RuntimeName for IStorageProviderPropertyHandler {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IStorageProviderPropertyHandler_Vtbl { - pub const fn new() -> IStorageProviderPropertyHandler_Vtbl - where - Identity: IStorageProviderPropertyHandler_Impl, - { - unsafe extern "system" fn RetrieveProperties(this: *mut core::ffi::c_void, propertiestoretrieve: *const PropertiesSystem::PROPERTYKEY, propertiestoretrievecount: u32, retrievedproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderPropertyHandler_Impl, - { + pub const fn new() -> IStorageProviderPropertyHandler_Vtbl { + unsafe extern "system" fn RetrieveProperties(this: *mut core::ffi::c_void, propertiestoretrieve: *const PropertiesSystem::PROPERTYKEY, propertiestoretrievecount: u32, retrievedproperties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStorageProviderPropertyHandler_Impl::RetrieveProperties(this, core::mem::transmute_copy(&propertiestoretrieve), core::mem::transmute_copy(&propertiestoretrievecount)) { Ok(ok__) => { @@ -22713,10 +16956,7 @@ impl IStorageProviderPropertyHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SaveProperties(this: *mut core::ffi::c_void, propertiestosave: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStorageProviderPropertyHandler_Impl, - { + unsafe extern "system" fn SaveProperties(this: *mut core::ffi::c_void, propertiestosave: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStorageProviderPropertyHandler_Impl::SaveProperties(this, windows_core::from_raw_borrowed(&propertiestosave)).into() } @@ -22741,35 +16981,20 @@ pub trait IStreamAsync_Impl: Sized + super::super::System::Com::IStream_Impl { impl windows_core::RuntimeName for IStreamAsync {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_IO"))] impl IStreamAsync_Vtbl { - pub const fn new() -> IStreamAsync_Vtbl - where - Identity: IStreamAsync_Impl, - { - unsafe extern "system" fn ReadAsync(this: *mut core::ffi::c_void, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStreamAsync_Impl, - { + pub const fn new() -> IStreamAsync_Vtbl { + unsafe extern "system" fn ReadAsync(this: *mut core::ffi::c_void, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamAsync_Impl::ReadAsync(this, core::mem::transmute_copy(&pv), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbread), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn WriteAsync(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT - where - Identity: IStreamAsync_Impl, - { + unsafe extern "system" fn WriteAsync(this: *mut core::ffi::c_void, lpbuffer: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamAsync_Impl::WriteAsync(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbwritten), core::mem::transmute_copy(&lpoverlapped)).into() } - unsafe extern "system" fn OverlappedResult(this: *mut core::ffi::c_void, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IStreamAsync_Impl, - { + unsafe extern "system" fn OverlappedResult(this: *mut core::ffi::c_void, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamAsync_Impl::OverlappedResult(this, core::mem::transmute_copy(&lpoverlapped), core::mem::transmute_copy(&lpnumberofbytestransferred), core::mem::transmute_copy(&bwait)).into() } - unsafe extern "system" fn CancelIo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStreamAsync_Impl, - { + unsafe extern "system" fn CancelIo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamAsync_Impl::CancelIo(this).into() } @@ -22785,19 +17010,13 @@ impl IStreamAsync_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IStreamUnbufferedInfo_Impl: Sized { +pub trait IStreamUnbufferedInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetSectorSize(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IStreamUnbufferedInfo {} impl IStreamUnbufferedInfo_Vtbl { - pub const fn new() -> IStreamUnbufferedInfo_Vtbl - where - Identity: IStreamUnbufferedInfo_Impl, - { - unsafe extern "system" fn GetSectorSize(this: *mut core::ffi::c_void, pcbsectorsize: *mut u32) -> windows_core::HRESULT - where - Identity: IStreamUnbufferedInfo_Impl, - { + pub const fn new() -> IStreamUnbufferedInfo_Vtbl { + unsafe extern "system" fn GetSectorSize(this: *mut core::ffi::c_void, pcbsectorsize: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamUnbufferedInfo_Impl::GetSectorSize(this) { Ok(ok__) => { @@ -22813,35 +17032,23 @@ impl IStreamUnbufferedInfo_Vtbl { iid == &::IID } } -pub trait ISuspensionDependencyManager_Impl: Sized { +pub trait ISuspensionDependencyManager_Impl: Sized + windows_core::IUnknownImpl { fn RegisterAsChild(&self, processhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn GroupChildWithParent(&self, childprocesshandle: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn UngroupChildFromParent(&self, childprocesshandle: super::super::Foundation::HANDLE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISuspensionDependencyManager {} impl ISuspensionDependencyManager_Vtbl { - pub const fn new() -> ISuspensionDependencyManager_Vtbl - where - Identity: ISuspensionDependencyManager_Impl, - { - unsafe extern "system" fn RegisterAsChild(this: *mut core::ffi::c_void, processhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ISuspensionDependencyManager_Impl, - { + pub const fn new() -> ISuspensionDependencyManager_Vtbl { + unsafe extern "system" fn RegisterAsChild(this: *mut core::ffi::c_void, processhandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISuspensionDependencyManager_Impl::RegisterAsChild(this, core::mem::transmute_copy(&processhandle)).into() } - unsafe extern "system" fn GroupChildWithParent(this: *mut core::ffi::c_void, childprocesshandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ISuspensionDependencyManager_Impl, - { + unsafe extern "system" fn GroupChildWithParent(this: *mut core::ffi::c_void, childprocesshandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISuspensionDependencyManager_Impl::GroupChildWithParent(this, core::mem::transmute_copy(&childprocesshandle)).into() } - unsafe extern "system" fn UngroupChildFromParent(this: *mut core::ffi::c_void, childprocesshandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT - where - Identity: ISuspensionDependencyManager_Impl, - { + unsafe extern "system" fn UngroupChildFromParent(this: *mut core::ffi::c_void, childprocesshandle: super::super::Foundation::HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISuspensionDependencyManager_Impl::UngroupChildFromParent(this, core::mem::transmute_copy(&childprocesshandle)).into() } @@ -22857,7 +17064,7 @@ impl ISuspensionDependencyManager_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] -pub trait ISyncMgrConflict_Impl: Sized { +pub trait ISyncMgrConflict_Impl: Sized + windows_core::IUnknownImpl { fn GetProperty(&self, propkey: *const PropertiesSystem::PROPERTYKEY) -> windows_core::Result; fn GetConflictIdInfo(&self) -> windows_core::Result; fn GetItemsArray(&self) -> windows_core::Result; @@ -22868,14 +17075,8 @@ pub trait ISyncMgrConflict_Impl: Sized { impl windows_core::RuntimeName for ISyncMgrConflict {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl ISyncMgrConflict_Vtbl { - pub const fn new() -> ISyncMgrConflict_Vtbl - where - Identity: ISyncMgrConflict_Impl, - { - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propkey: *const PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ISyncMgrConflict_Impl, - { + pub const fn new() -> ISyncMgrConflict_Vtbl { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, propkey: *const PropertiesSystem::PROPERTYKEY, ppropvar: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflict_Impl::GetProperty(this, core::mem::transmute_copy(&propkey)) { Ok(ok__) => { @@ -22885,10 +17086,7 @@ impl ISyncMgrConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConflictIdInfo(this: *mut core::ffi::c_void, pconflictidinfo: *mut SYNCMGR_CONFLICT_ID_INFO) -> windows_core::HRESULT - where - Identity: ISyncMgrConflict_Impl, - { + unsafe extern "system" fn GetConflictIdInfo(this: *mut core::ffi::c_void, pconflictidinfo: *mut SYNCMGR_CONFLICT_ID_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflict_Impl::GetConflictIdInfo(this) { Ok(ok__) => { @@ -22898,10 +17096,7 @@ impl ISyncMgrConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemsArray(this: *mut core::ffi::c_void, pparray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrConflict_Impl, - { + unsafe extern "system" fn GetItemsArray(this: *mut core::ffi::c_void, pparray: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflict_Impl::GetItemsArray(this) { Ok(ok__) => { @@ -22911,17 +17106,11 @@ impl ISyncMgrConflict_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, presolveinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrConflict_Impl, - { + unsafe extern "system" fn Resolve(this: *mut core::ffi::c_void, presolveinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflict_Impl::Resolve(this, windows_core::from_raw_borrowed(&presolveinfo)).into() } - unsafe extern "system" fn GetResolutionHandler(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvresolutionhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrConflict_Impl, - { + unsafe extern "system" fn GetResolutionHandler(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppvresolutionhandler: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflict_Impl::GetResolutionHandler(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvresolutionhandler)).into() } @@ -22939,21 +17128,15 @@ impl ISyncMgrConflict_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait ISyncMgrConflictFolder_Impl: Sized { +pub trait ISyncMgrConflictFolder_Impl: Sized + windows_core::IUnknownImpl { fn GetConflictIDList(&self, pconflict: Option<&ISyncMgrConflict>) -> windows_core::Result<*mut Common::ITEMIDLIST>; } #[cfg(feature = "Win32_UI_Shell_Common")] impl windows_core::RuntimeName for ISyncMgrConflictFolder {} #[cfg(feature = "Win32_UI_Shell_Common")] impl ISyncMgrConflictFolder_Vtbl { - pub const fn new() -> ISyncMgrConflictFolder_Vtbl - where - Identity: ISyncMgrConflictFolder_Impl, - { - unsafe extern "system" fn GetConflictIDList(this: *mut core::ffi::c_void, pconflict: *mut core::ffi::c_void, ppidlconflict: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictFolder_Impl, - { + pub const fn new() -> ISyncMgrConflictFolder_Vtbl { + unsafe extern "system" fn GetConflictIDList(this: *mut core::ffi::c_void, pconflict: *mut core::ffi::c_void, ppidlconflict: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflictFolder_Impl::GetConflictIDList(this, windows_core::from_raw_borrowed(&pconflict)) { Ok(ok__) => { @@ -22969,20 +17152,14 @@ impl ISyncMgrConflictFolder_Vtbl { iid == &::IID } } -pub trait ISyncMgrConflictItems_Impl: Sized { +pub trait ISyncMgrConflictItems_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetItem(&self, iindex: u32, piteminfo: *mut CONFIRM_CONFLICT_ITEM) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncMgrConflictItems {} impl ISyncMgrConflictItems_Vtbl { - pub const fn new() -> ISyncMgrConflictItems_Vtbl - where - Identity: ISyncMgrConflictItems_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictItems_Impl, - { + pub const fn new() -> ISyncMgrConflictItems_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflictItems_Impl::GetCount(this) { Ok(ok__) => { @@ -22992,10 +17169,7 @@ impl ISyncMgrConflictItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, iindex: u32, piteminfo: *mut CONFIRM_CONFLICT_ITEM) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictItems_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, iindex: u32, piteminfo: *mut CONFIRM_CONFLICT_ITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictItems_Impl::GetItem(this, core::mem::transmute_copy(&iindex), core::mem::transmute_copy(&piteminfo)).into() } @@ -23005,19 +17179,13 @@ impl ISyncMgrConflictItems_Vtbl { iid == &::IID } } -pub trait ISyncMgrConflictPresenter_Impl: Sized { +pub trait ISyncMgrConflictPresenter_Impl: Sized + windows_core::IUnknownImpl { fn PresentConflict(&self, pconflict: Option<&ISyncMgrConflict>, presolveinfo: Option<&ISyncMgrConflictResolveInfo>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncMgrConflictPresenter {} impl ISyncMgrConflictPresenter_Vtbl { - pub const fn new() -> ISyncMgrConflictPresenter_Vtbl - where - Identity: ISyncMgrConflictPresenter_Impl, - { - unsafe extern "system" fn PresentConflict(this: *mut core::ffi::c_void, pconflict: *mut core::ffi::c_void, presolveinfo: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictPresenter_Impl, - { + pub const fn new() -> ISyncMgrConflictPresenter_Vtbl { + unsafe extern "system" fn PresentConflict(this: *mut core::ffi::c_void, pconflict: *mut core::ffi::c_void, presolveinfo: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictPresenter_Impl::PresentConflict(this, windows_core::from_raw_borrowed(&pconflict), windows_core::from_raw_borrowed(&presolveinfo)).into() } @@ -23027,20 +17195,14 @@ impl ISyncMgrConflictPresenter_Vtbl { iid == &::IID } } -pub trait ISyncMgrConflictResolutionItems_Impl: Sized { +pub trait ISyncMgrConflictResolutionItems_Impl: Sized + windows_core::IUnknownImpl { fn GetCount(&self) -> windows_core::Result; fn GetItem(&self, iindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ISyncMgrConflictResolutionItems {} impl ISyncMgrConflictResolutionItems_Vtbl { - pub const fn new() -> ISyncMgrConflictResolutionItems_Vtbl - where - Identity: ISyncMgrConflictResolutionItems_Impl, - { - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictResolutionItems_Impl, - { + pub const fn new() -> ISyncMgrConflictResolutionItems_Vtbl { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflictResolutionItems_Impl::GetCount(this) { Ok(ok__) => { @@ -23050,10 +17212,7 @@ impl ISyncMgrConflictResolutionItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, iindex: u32, piteminfo: *mut CONFIRM_CONFLICT_RESULT_INFO) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictResolutionItems_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, iindex: u32, piteminfo: *mut CONFIRM_CONFLICT_RESULT_INFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflictResolutionItems_Impl::GetItem(this, core::mem::transmute_copy(&iindex)) { Ok(ok__) => { @@ -23069,7 +17228,7 @@ impl ISyncMgrConflictResolutionItems_Vtbl { iid == &::IID } } -pub trait ISyncMgrConflictResolveInfo_Impl: Sized { +pub trait ISyncMgrConflictResolveInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetIterationInfo(&self, pncurrentconflict: *mut u32, pcconflicts: *mut u32, pcremainingforapplytoall: *mut u32) -> windows_core::Result<()>; fn GetPresenterNextStep(&self) -> windows_core::Result; fn GetPresenterChoice(&self, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -23081,21 +17240,12 @@ pub trait ISyncMgrConflictResolveInfo_Impl: Sized { } impl windows_core::RuntimeName for ISyncMgrConflictResolveInfo {} impl ISyncMgrConflictResolveInfo_Vtbl { - pub const fn new() -> ISyncMgrConflictResolveInfo_Vtbl - where - Identity: ISyncMgrConflictResolveInfo_Impl, - { - unsafe extern "system" fn GetIterationInfo(this: *mut core::ffi::c_void, pncurrentconflict: *mut u32, pcconflicts: *mut u32, pcremainingforapplytoall: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictResolveInfo_Impl, - { + pub const fn new() -> ISyncMgrConflictResolveInfo_Vtbl { + unsafe extern "system" fn GetIterationInfo(this: *mut core::ffi::c_void, pncurrentconflict: *mut u32, pcconflicts: *mut u32, pcremainingforapplytoall: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictResolveInfo_Impl::GetIterationInfo(this, core::mem::transmute_copy(&pncurrentconflict), core::mem::transmute_copy(&pcconflicts), core::mem::transmute_copy(&pcremainingforapplytoall)).into() } - unsafe extern "system" fn GetPresenterNextStep(this: *mut core::ffi::c_void, pnpresenternextstep: *mut SYNCMGR_PRESENTER_NEXT_STEP) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictResolveInfo_Impl, - { + unsafe extern "system" fn GetPresenterNextStep(this: *mut core::ffi::c_void, pnpresenternextstep: *mut SYNCMGR_PRESENTER_NEXT_STEP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflictResolveInfo_Impl::GetPresenterNextStep(this) { Ok(ok__) => { @@ -23105,17 +17255,11 @@ impl ISyncMgrConflictResolveInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPresenterChoice(this: *mut core::ffi::c_void, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictResolveInfo_Impl, - { + unsafe extern "system" fn GetPresenterChoice(this: *mut core::ffi::c_void, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictResolveInfo_Impl::GetPresenterChoice(this, core::mem::transmute_copy(&pnpresenterchoice), core::mem::transmute_copy(&pfapplytoall)).into() } - unsafe extern "system" fn GetItemChoiceCount(this: *mut core::ffi::c_void, pcchoices: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictResolveInfo_Impl, - { + unsafe extern "system" fn GetItemChoiceCount(this: *mut core::ffi::c_void, pcchoices: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflictResolveInfo_Impl::GetItemChoiceCount(this) { Ok(ok__) => { @@ -23125,10 +17269,7 @@ impl ISyncMgrConflictResolveInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemChoice(this: *mut core::ffi::c_void, ichoice: u32, pichoiceindex: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictResolveInfo_Impl, - { + unsafe extern "system" fn GetItemChoice(this: *mut core::ffi::c_void, ichoice: u32, pichoiceindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflictResolveInfo_Impl::GetItemChoice(this, core::mem::transmute_copy(&ichoice)) { Ok(ok__) => { @@ -23138,24 +17279,15 @@ impl ISyncMgrConflictResolveInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPresenterNextStep(this: *mut core::ffi::c_void, npresenternextstep: SYNCMGR_PRESENTER_NEXT_STEP) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictResolveInfo_Impl, - { + unsafe extern "system" fn SetPresenterNextStep(this: *mut core::ffi::c_void, npresenternextstep: SYNCMGR_PRESENTER_NEXT_STEP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictResolveInfo_Impl::SetPresenterNextStep(this, core::mem::transmute_copy(&npresenternextstep)).into() } - unsafe extern "system" fn SetPresenterChoice(this: *mut core::ffi::c_void, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictResolveInfo_Impl, - { + unsafe extern "system" fn SetPresenterChoice(this: *mut core::ffi::c_void, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictResolveInfo_Impl::SetPresenterChoice(this, core::mem::transmute_copy(&npresenterchoice), core::mem::transmute_copy(&fapplytoall)).into() } - unsafe extern "system" fn SetItemChoices(this: *mut core::ffi::c_void, prgiconflictitemindexes: *mut u32, cchoices: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictResolveInfo_Impl, - { + unsafe extern "system" fn SetItemChoices(this: *mut core::ffi::c_void, prgiconflictitemindexes: *mut u32, cchoices: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictResolveInfo_Impl::SetItemChoices(this, core::mem::transmute_copy(&prgiconflictitemindexes), core::mem::transmute_copy(&cchoices)).into() } @@ -23176,7 +17308,7 @@ impl ISyncMgrConflictResolveInfo_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISyncMgrConflictStore_Impl: Sized { +pub trait ISyncMgrConflictStore_Impl: Sized + windows_core::IUnknownImpl { fn EnumConflicts(&self, pszhandlerid: &windows_core::PCWSTR, pszitemid: &windows_core::PCWSTR) -> windows_core::Result; fn BindToConflict(&self, pconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RemoveConflicts(&self, rgconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO, cconflicts: u32) -> windows_core::Result<()>; @@ -23186,14 +17318,8 @@ pub trait ISyncMgrConflictStore_Impl: Sized { impl windows_core::RuntimeName for ISyncMgrConflictStore {} #[cfg(feature = "Win32_System_Com")] impl ISyncMgrConflictStore_Vtbl { - pub const fn new() -> ISyncMgrConflictStore_Vtbl - where - Identity: ISyncMgrConflictStore_Impl, - { - unsafe extern "system" fn EnumConflicts(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictStore_Impl, - { + pub const fn new() -> ISyncMgrConflictStore_Vtbl { + unsafe extern "system" fn EnumConflicts(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflictStore_Impl::EnumConflicts(this, core::mem::transmute(&pszhandlerid), core::mem::transmute(&pszitemid)) { Ok(ok__) => { @@ -23203,24 +17329,15 @@ impl ISyncMgrConflictStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BindToConflict(this: *mut core::ffi::c_void, pconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictStore_Impl, - { + unsafe extern "system" fn BindToConflict(this: *mut core::ffi::c_void, pconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictStore_Impl::BindToConflict(this, core::mem::transmute_copy(&pconflictidinfo), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn RemoveConflicts(this: *mut core::ffi::c_void, rgconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO, cconflicts: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictStore_Impl, - { + unsafe extern "system" fn RemoveConflicts(this: *mut core::ffi::c_void, rgconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO, cconflicts: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictStore_Impl::RemoveConflicts(this, core::mem::transmute_copy(&rgconflictidinfo), core::mem::transmute_copy(&cconflicts)).into() } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, pnconflicts: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrConflictStore_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, pnconflicts: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrConflictStore_Impl::GetCount(this, core::mem::transmute(&pszhandlerid), core::mem::transmute(&pszitemid)) { Ok(ok__) => { @@ -23242,7 +17359,7 @@ impl ISyncMgrConflictStore_Vtbl { iid == &::IID } } -pub trait ISyncMgrControl_Impl: Sized { +pub trait ISyncMgrControl_Impl: Sized + windows_core::IUnknownImpl { fn StartHandlerSync(&self, pszhandlerid: &windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, punk: Option<&windows_core::IUnknown>, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: Option<&ISyncMgrSyncResult>) -> windows_core::Result<()>; fn StartItemSync(&self, pszhandlerid: &windows_core::PCWSTR, ppszitemids: *const windows_core::PCWSTR, citems: u32, hwndowner: super::super::Foundation::HWND, punk: Option<&windows_core::IUnknown>, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: Option<&ISyncMgrSyncResult>) -> windows_core::Result<()>; fn StartSyncAll(&self, hwndowner: super::super::Foundation::HWND) -> windows_core::Result<()>; @@ -23261,112 +17378,64 @@ pub trait ISyncMgrControl_Impl: Sized { } impl windows_core::RuntimeName for ISyncMgrControl {} impl ISyncMgrControl_Vtbl { - pub const fn new() -> ISyncMgrControl_Vtbl - where - Identity: ISyncMgrControl_Impl, - { - unsafe extern "system" fn StartHandlerSync(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, punk: *mut core::ffi::c_void, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + pub const fn new() -> ISyncMgrControl_Vtbl { + unsafe extern "system" fn StartHandlerSync(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, punk: *mut core::ffi::c_void, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::StartHandlerSync(this, core::mem::transmute(&pszhandlerid), core::mem::transmute_copy(&hwndowner), windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&nsynccontrolflags), windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn StartItemSync(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, ppszitemids: *const windows_core::PCWSTR, citems: u32, hwndowner: super::super::Foundation::HWND, punk: *mut core::ffi::c_void, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn StartItemSync(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, ppszitemids: *const windows_core::PCWSTR, citems: u32, hwndowner: super::super::Foundation::HWND, punk: *mut core::ffi::c_void, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::StartItemSync(this, core::mem::transmute(&pszhandlerid), core::mem::transmute_copy(&ppszitemids), core::mem::transmute_copy(&citems), core::mem::transmute_copy(&hwndowner), windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&nsynccontrolflags), windows_core::from_raw_borrowed(&presult)).into() } - unsafe extern "system" fn StartSyncAll(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn StartSyncAll(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::StartSyncAll(this, core::mem::transmute_copy(&hwndowner)).into() } - unsafe extern "system" fn StopHandlerSync(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn StopHandlerSync(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::StopHandlerSync(this, core::mem::transmute(&pszhandlerid)).into() } - unsafe extern "system" fn StopItemSync(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, ppszitemids: *const windows_core::PCWSTR, citems: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn StopItemSync(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, ppszitemids: *const windows_core::PCWSTR, citems: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::StopItemSync(this, core::mem::transmute(&pszhandlerid), core::mem::transmute_copy(&ppszitemids), core::mem::transmute_copy(&citems)).into() } - unsafe extern "system" fn StopSyncAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn StopSyncAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::StopSyncAll(this).into() } - unsafe extern "system" fn UpdateHandlerCollection(this: *mut core::ffi::c_void, rclsidcollectionid: *const windows_core::GUID, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn UpdateHandlerCollection(this: *mut core::ffi::c_void, rclsidcollectionid: *const windows_core::GUID, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::UpdateHandlerCollection(this, core::mem::transmute_copy(&rclsidcollectionid), core::mem::transmute_copy(&ncontrolflags)).into() } - unsafe extern "system" fn UpdateHandler(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn UpdateHandler(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::UpdateHandler(this, core::mem::transmute(&pszhandlerid), core::mem::transmute_copy(&ncontrolflags)).into() } - unsafe extern "system" fn UpdateItem(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn UpdateItem(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::UpdateItem(this, core::mem::transmute(&pszhandlerid), core::mem::transmute(&pszitemid), core::mem::transmute_copy(&ncontrolflags)).into() } - unsafe extern "system" fn UpdateEvents(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn UpdateEvents(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::UpdateEvents(this, core::mem::transmute(&pszhandlerid), core::mem::transmute(&pszitemid), core::mem::transmute_copy(&ncontrolflags)).into() } - unsafe extern "system" fn UpdateConflict(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, pconflict: *mut core::ffi::c_void, nreason: SYNCMGR_UPDATE_REASON) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn UpdateConflict(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, pconflict: *mut core::ffi::c_void, nreason: SYNCMGR_UPDATE_REASON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::UpdateConflict(this, core::mem::transmute(&pszhandlerid), core::mem::transmute(&pszitemid), windows_core::from_raw_borrowed(&pconflict), core::mem::transmute_copy(&nreason)).into() } - unsafe extern "system" fn UpdateConflicts(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn UpdateConflicts(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::UpdateConflicts(this, core::mem::transmute(&pszhandlerid), core::mem::transmute(&pszitemid), core::mem::transmute_copy(&ncontrolflags)).into() } - unsafe extern "system" fn ActivateHandler(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL, pszhandlerid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn ActivateHandler(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL, pszhandlerid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::ActivateHandler(this, core::mem::transmute_copy(&factivate), core::mem::transmute(&pszhandlerid), core::mem::transmute_copy(&hwndowner), core::mem::transmute_copy(&ncontrolflags)).into() } - unsafe extern "system" fn EnableHandler(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL, pszhandlerid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn EnableHandler(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL, pszhandlerid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::EnableHandler(this, core::mem::transmute_copy(&fenable), core::mem::transmute(&pszhandlerid), core::mem::transmute_copy(&hwndowner), core::mem::transmute_copy(&ncontrolflags)).into() } - unsafe extern "system" fn EnableItem(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT - where - Identity: ISyncMgrControl_Impl, - { + unsafe extern "system" fn EnableItem(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::EnableItem(this, core::mem::transmute_copy(&fenable), core::mem::transmute(&pszhandlerid), core::mem::transmute(&pszitemid), core::mem::transmute_copy(&hwndowner), core::mem::transmute_copy(&ncontrolflags)).into() } @@ -23394,7 +17463,7 @@ impl ISyncMgrControl_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait ISyncMgrEnumItems_Impl: Sized { +pub trait ISyncMgrEnumItems_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut SYNCMGRITEM, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -23404,35 +17473,20 @@ pub trait ISyncMgrEnumItems_Impl: Sized { impl windows_core::RuntimeName for ISyncMgrEnumItems {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ISyncMgrEnumItems_Vtbl { - pub const fn new() -> ISyncMgrEnumItems_Vtbl - where - Identity: ISyncMgrEnumItems_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut SYNCMGRITEM, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrEnumItems_Impl, - { + pub const fn new() -> ISyncMgrEnumItems_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut SYNCMGRITEM, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrEnumItems_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrEnumItems_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrEnumItems_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrEnumItems_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrEnumItems_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrEnumItems_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEnumItems_Impl::Clone(this) { Ok(ok__) => { @@ -23454,7 +17508,7 @@ impl ISyncMgrEnumItems_Vtbl { iid == &::IID } } -pub trait ISyncMgrEvent_Impl: Sized { +pub trait ISyncMgrEvent_Impl: Sized + windows_core::IUnknownImpl { fn GetEventID(&self) -> windows_core::Result; fn GetHandlerID(&self) -> windows_core::Result; fn GetItemID(&self) -> windows_core::Result; @@ -23469,14 +17523,8 @@ pub trait ISyncMgrEvent_Impl: Sized { } impl windows_core::RuntimeName for ISyncMgrEvent {} impl ISyncMgrEvent_Vtbl { - pub const fn new() -> ISyncMgrEvent_Vtbl - where - Identity: ISyncMgrEvent_Impl, - { - unsafe extern "system" fn GetEventID(this: *mut core::ffi::c_void, pguideventid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + pub const fn new() -> ISyncMgrEvent_Vtbl { + unsafe extern "system" fn GetEventID(this: *mut core::ffi::c_void, pguideventid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetEventID(this) { Ok(ok__) => { @@ -23486,10 +17534,7 @@ impl ISyncMgrEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHandlerID(this: *mut core::ffi::c_void, ppszhandlerid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + unsafe extern "system" fn GetHandlerID(this: *mut core::ffi::c_void, ppszhandlerid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetHandlerID(this) { Ok(ok__) => { @@ -23499,10 +17544,7 @@ impl ISyncMgrEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemID(this: *mut core::ffi::c_void, ppszitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + unsafe extern "system" fn GetItemID(this: *mut core::ffi::c_void, ppszitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetItemID(this) { Ok(ok__) => { @@ -23512,10 +17554,7 @@ impl ISyncMgrEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLevel(this: *mut core::ffi::c_void, pnlevel: *mut SYNCMGR_EVENT_LEVEL) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + unsafe extern "system" fn GetLevel(this: *mut core::ffi::c_void, pnlevel: *mut SYNCMGR_EVENT_LEVEL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetLevel(this) { Ok(ok__) => { @@ -23525,10 +17564,7 @@ impl ISyncMgrEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pnflags: *mut SYNCMGR_EVENT_FLAGS) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pnflags: *mut SYNCMGR_EVENT_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetFlags(this) { Ok(ok__) => { @@ -23538,10 +17574,7 @@ impl ISyncMgrEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, pfcreationtime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, pfcreationtime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetTime(this) { Ok(ok__) => { @@ -23551,10 +17584,7 @@ impl ISyncMgrEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetName(this) { Ok(ok__) => { @@ -23564,10 +17594,7 @@ impl ISyncMgrEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetDescription(this) { Ok(ok__) => { @@ -23577,10 +17604,7 @@ impl ISyncMgrEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLinkText(this: *mut core::ffi::c_void, ppszlinktext: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + unsafe extern "system" fn GetLinkText(this: *mut core::ffi::c_void, ppszlinktext: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetLinkText(this) { Ok(ok__) => { @@ -23590,10 +17614,7 @@ impl ISyncMgrEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLinkReference(this: *mut core::ffi::c_void, ppszlinkreference: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + unsafe extern "system" fn GetLinkReference(this: *mut core::ffi::c_void, ppszlinkreference: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetLinkReference(this) { Ok(ok__) => { @@ -23603,10 +17624,7 @@ impl ISyncMgrEvent_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, ppszcontext: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrEvent_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, ppszcontext: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEvent_Impl::GetContext(this) { Ok(ok__) => { @@ -23640,14 +17658,8 @@ pub trait ISyncMgrEventLinkUIOperation_Impl: Sized + ISyncMgrUIOperation_Impl { } impl windows_core::RuntimeName for ISyncMgrEventLinkUIOperation {} impl ISyncMgrEventLinkUIOperation_Vtbl { - pub const fn new() -> ISyncMgrEventLinkUIOperation_Vtbl - where - Identity: ISyncMgrEventLinkUIOperation_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, rguideventid: *const windows_core::GUID, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrEventLinkUIOperation_Impl, - { + pub const fn new() -> ISyncMgrEventLinkUIOperation_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, rguideventid: *const windows_core::GUID, pevent: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrEventLinkUIOperation_Impl::Init(this, core::mem::transmute_copy(&rguideventid), windows_core::from_raw_borrowed(&pevent)).into() } @@ -23657,7 +17669,7 @@ impl ISyncMgrEventLinkUIOperation_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISyncMgrEventStore_Impl: Sized { +pub trait ISyncMgrEventStore_Impl: Sized + windows_core::IUnknownImpl { fn GetEventEnumerator(&self) -> windows_core::Result; fn GetEventCount(&self) -> windows_core::Result; fn GetEvent(&self, rguideventid: *const windows_core::GUID) -> windows_core::Result; @@ -23665,14 +17677,8 @@ pub trait ISyncMgrEventStore_Impl: Sized { } impl windows_core::RuntimeName for ISyncMgrEventStore {} impl ISyncMgrEventStore_Vtbl { - pub const fn new() -> ISyncMgrEventStore_Vtbl - where - Identity: ISyncMgrEventStore_Impl, - { - unsafe extern "system" fn GetEventEnumerator(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrEventStore_Impl, - { + pub const fn new() -> ISyncMgrEventStore_Vtbl { + unsafe extern "system" fn GetEventEnumerator(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEventStore_Impl::GetEventEnumerator(this) { Ok(ok__) => { @@ -23682,10 +17688,7 @@ impl ISyncMgrEventStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEventCount(this: *mut core::ffi::c_void, pcevents: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrEventStore_Impl, - { + unsafe extern "system" fn GetEventCount(this: *mut core::ffi::c_void, pcevents: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEventStore_Impl::GetEventCount(this) { Ok(ok__) => { @@ -23695,10 +17698,7 @@ impl ISyncMgrEventStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, rguideventid: *const windows_core::GUID, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrEventStore_Impl, - { + unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, rguideventid: *const windows_core::GUID, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrEventStore_Impl::GetEvent(this, core::mem::transmute_copy(&rguideventid)) { Ok(ok__) => { @@ -23708,10 +17708,7 @@ impl ISyncMgrEventStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveEvent(this: *mut core::ffi::c_void, pguideventids: *const windows_core::GUID, cevents: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrEventStore_Impl, - { + unsafe extern "system" fn RemoveEvent(this: *mut core::ffi::c_void, pguideventids: *const windows_core::GUID, cevents: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrEventStore_Impl::RemoveEvent(this, core::mem::transmute_copy(&pguideventids), core::mem::transmute_copy(&cevents)).into() } @@ -23727,7 +17724,7 @@ impl ISyncMgrEventStore_Vtbl { iid == &::IID } } -pub trait ISyncMgrHandler_Impl: Sized { +pub trait ISyncMgrHandler_Impl: Sized + windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; fn GetHandlerInfo(&self) -> windows_core::Result; fn GetObject(&self, rguidobjectid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -23739,14 +17736,8 @@ pub trait ISyncMgrHandler_Impl: Sized { } impl windows_core::RuntimeName for ISyncMgrHandler {} impl ISyncMgrHandler_Vtbl { - pub const fn new() -> ISyncMgrHandler_Vtbl - where - Identity: ISyncMgrHandler_Impl, - { - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrHandler_Impl, - { + pub const fn new() -> ISyncMgrHandler_Vtbl { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrHandler_Impl::GetName(this) { Ok(ok__) => { @@ -23756,10 +17747,7 @@ impl ISyncMgrHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHandlerInfo(this: *mut core::ffi::c_void, pphandlerinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrHandler_Impl, - { + unsafe extern "system" fn GetHandlerInfo(this: *mut core::ffi::c_void, pphandlerinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrHandler_Impl::GetHandlerInfo(this) { Ok(ok__) => { @@ -23769,17 +17757,11 @@ impl ISyncMgrHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, rguidobjectid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrHandler_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, rguidobjectid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrHandler_Impl::GetObject(this, core::mem::transmute_copy(&rguidobjectid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pmcapabilities: *mut SYNCMGR_HANDLER_CAPABILITIES) -> windows_core::HRESULT - where - Identity: ISyncMgrHandler_Impl, - { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pmcapabilities: *mut SYNCMGR_HANDLER_CAPABILITIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrHandler_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -23789,10 +17771,7 @@ impl ISyncMgrHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPolicies(this: *mut core::ffi::c_void, pmpolicies: *mut SYNCMGR_HANDLER_POLICIES) -> windows_core::HRESULT - where - Identity: ISyncMgrHandler_Impl, - { + unsafe extern "system" fn GetPolicies(this: *mut core::ffi::c_void, pmpolicies: *mut SYNCMGR_HANDLER_POLICIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrHandler_Impl::GetPolicies(this) { Ok(ok__) => { @@ -23802,24 +17781,15 @@ impl ISyncMgrHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncMgrHandler_Impl, - { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrHandler_Impl::Activate(this, core::mem::transmute_copy(&factivate)).into() } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncMgrHandler_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrHandler_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void, ppszitemids: *const windows_core::PCWSTR, citems: u32, hwndowner: super::super::Foundation::HWND, psessioncreator: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrHandler_Impl, - { + unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void, ppszitemids: *const windows_core::PCWSTR, citems: u32, hwndowner: super::super::Foundation::HWND, psessioncreator: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrHandler_Impl::Synchronize(this, core::mem::transmute_copy(&ppszitemids), core::mem::transmute_copy(&citems), core::mem::transmute_copy(&hwndowner), windows_core::from_raw_borrowed(&psessioncreator), windows_core::from_raw_borrowed(&punk)).into() } @@ -23840,7 +17810,7 @@ impl ISyncMgrHandler_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISyncMgrHandlerCollection_Impl: Sized { +pub trait ISyncMgrHandlerCollection_Impl: Sized + windows_core::IUnknownImpl { fn GetHandlerEnumerator(&self) -> windows_core::Result; fn BindToHandler(&self, pszhandlerid: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } @@ -23848,14 +17818,8 @@ pub trait ISyncMgrHandlerCollection_Impl: Sized { impl windows_core::RuntimeName for ISyncMgrHandlerCollection {} #[cfg(feature = "Win32_System_Com")] impl ISyncMgrHandlerCollection_Vtbl { - pub const fn new() -> ISyncMgrHandlerCollection_Vtbl - where - Identity: ISyncMgrHandlerCollection_Impl, - { - unsafe extern "system" fn GetHandlerEnumerator(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrHandlerCollection_Impl, - { + pub const fn new() -> ISyncMgrHandlerCollection_Vtbl { + unsafe extern "system" fn GetHandlerEnumerator(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrHandlerCollection_Impl::GetHandlerEnumerator(this) { Ok(ok__) => { @@ -23865,10 +17829,7 @@ impl ISyncMgrHandlerCollection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BindToHandler(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrHandlerCollection_Impl, - { + unsafe extern "system" fn BindToHandler(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrHandlerCollection_Impl::BindToHandler(this, core::mem::transmute(&pszhandlerid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -23882,7 +17843,7 @@ impl ISyncMgrHandlerCollection_Vtbl { iid == &::IID } } -pub trait ISyncMgrHandlerInfo_Impl: Sized { +pub trait ISyncMgrHandlerInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetType(&self) -> windows_core::Result; fn GetTypeLabel(&self) -> windows_core::Result; fn GetComment(&self) -> windows_core::Result; @@ -23893,14 +17854,8 @@ pub trait ISyncMgrHandlerInfo_Impl: Sized { } impl windows_core::RuntimeName for ISyncMgrHandlerInfo {} impl ISyncMgrHandlerInfo_Vtbl { - pub const fn new() -> ISyncMgrHandlerInfo_Vtbl - where - Identity: ISyncMgrHandlerInfo_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pntype: *mut SYNCMGR_HANDLER_TYPE) -> windows_core::HRESULT - where - Identity: ISyncMgrHandlerInfo_Impl, - { + pub const fn new() -> ISyncMgrHandlerInfo_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pntype: *mut SYNCMGR_HANDLER_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrHandlerInfo_Impl::GetType(this) { Ok(ok__) => { @@ -23910,10 +17865,7 @@ impl ISyncMgrHandlerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTypeLabel(this: *mut core::ffi::c_void, ppsztypelabel: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrHandlerInfo_Impl, - { + unsafe extern "system" fn GetTypeLabel(this: *mut core::ffi::c_void, ppsztypelabel: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrHandlerInfo_Impl::GetTypeLabel(this) { Ok(ok__) => { @@ -23923,10 +17875,7 @@ impl ISyncMgrHandlerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComment(this: *mut core::ffi::c_void, ppszcomment: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrHandlerInfo_Impl, - { + unsafe extern "system" fn GetComment(this: *mut core::ffi::c_void, ppszcomment: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrHandlerInfo_Impl::GetComment(this) { Ok(ok__) => { @@ -23936,10 +17885,7 @@ impl ISyncMgrHandlerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastSyncTime(this: *mut core::ffi::c_void, pftlastsync: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ISyncMgrHandlerInfo_Impl, - { + unsafe extern "system" fn GetLastSyncTime(this: *mut core::ffi::c_void, pftlastsync: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrHandlerInfo_Impl::GetLastSyncTime(this) { Ok(ok__) => { @@ -23949,24 +17895,15 @@ impl ISyncMgrHandlerInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrHandlerInfo_Impl, - { + unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrHandlerInfo_Impl::IsActive(this).into() } - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrHandlerInfo_Impl, - { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrHandlerInfo_Impl::IsEnabled(this).into() } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrHandlerInfo_Impl, - { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrHandlerInfo_Impl::IsConnected(this).into() } @@ -23985,35 +17922,23 @@ impl ISyncMgrHandlerInfo_Vtbl { iid == &::IID } } -pub trait ISyncMgrRegister_Impl: Sized { +pub trait ISyncMgrRegister_Impl: Sized + windows_core::IUnknownImpl { fn RegisterSyncMgrHandler(&self, clsidhandler: *const windows_core::GUID, pwszdescription: &windows_core::PCWSTR, dwsyncmgrregisterflags: u32) -> windows_core::Result<()>; fn UnregisterSyncMgrHandler(&self, clsidhandler: *const windows_core::GUID, dwreserved: u32) -> windows_core::Result<()>; fn GetHandlerRegistrationInfo(&self, clsidhandler: *const windows_core::GUID, pdwsyncmgrregisterflags: *mut u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncMgrRegister {} impl ISyncMgrRegister_Vtbl { - pub const fn new() -> ISyncMgrRegister_Vtbl - where - Identity: ISyncMgrRegister_Impl, - { - unsafe extern "system" fn RegisterSyncMgrHandler(this: *mut core::ffi::c_void, clsidhandler: *const windows_core::GUID, pwszdescription: windows_core::PCWSTR, dwsyncmgrregisterflags: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrRegister_Impl, - { + pub const fn new() -> ISyncMgrRegister_Vtbl { + unsafe extern "system" fn RegisterSyncMgrHandler(this: *mut core::ffi::c_void, clsidhandler: *const windows_core::GUID, pwszdescription: windows_core::PCWSTR, dwsyncmgrregisterflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrRegister_Impl::RegisterSyncMgrHandler(this, core::mem::transmute_copy(&clsidhandler), core::mem::transmute(&pwszdescription), core::mem::transmute_copy(&dwsyncmgrregisterflags)).into() } - unsafe extern "system" fn UnregisterSyncMgrHandler(this: *mut core::ffi::c_void, clsidhandler: *const windows_core::GUID, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrRegister_Impl, - { + unsafe extern "system" fn UnregisterSyncMgrHandler(this: *mut core::ffi::c_void, clsidhandler: *const windows_core::GUID, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrRegister_Impl::UnregisterSyncMgrHandler(this, core::mem::transmute_copy(&clsidhandler), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn GetHandlerRegistrationInfo(this: *mut core::ffi::c_void, clsidhandler: *const windows_core::GUID, pdwsyncmgrregisterflags: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrRegister_Impl, - { + unsafe extern "system" fn GetHandlerRegistrationInfo(this: *mut core::ffi::c_void, clsidhandler: *const windows_core::GUID, pdwsyncmgrregisterflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrRegister_Impl::GetHandlerRegistrationInfo(this, core::mem::transmute_copy(&clsidhandler), core::mem::transmute_copy(&pdwsyncmgrregisterflags)).into() } @@ -24028,7 +17953,7 @@ impl ISyncMgrRegister_Vtbl { iid == &::IID } } -pub trait ISyncMgrResolutionHandler_Impl: Sized { +pub trait ISyncMgrResolutionHandler_Impl: Sized + windows_core::IUnknownImpl { fn QueryAbilities(&self) -> windows_core::Result; fn KeepOther(&self, psiother: Option<&IShellItem>) -> windows_core::Result; fn KeepRecent(&self) -> windows_core::Result; @@ -24037,14 +17962,8 @@ pub trait ISyncMgrResolutionHandler_Impl: Sized { } impl windows_core::RuntimeName for ISyncMgrResolutionHandler {} impl ISyncMgrResolutionHandler_Vtbl { - pub const fn new() -> ISyncMgrResolutionHandler_Vtbl - where - Identity: ISyncMgrResolutionHandler_Impl, - { - unsafe extern "system" fn QueryAbilities(this: *mut core::ffi::c_void, pdwabilities: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrResolutionHandler_Impl, - { + pub const fn new() -> ISyncMgrResolutionHandler_Vtbl { + unsafe extern "system" fn QueryAbilities(this: *mut core::ffi::c_void, pdwabilities: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrResolutionHandler_Impl::QueryAbilities(this) { Ok(ok__) => { @@ -24054,10 +17973,7 @@ impl ISyncMgrResolutionHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeepOther(this: *mut core::ffi::c_void, psiother: *mut core::ffi::c_void, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> windows_core::HRESULT - where - Identity: ISyncMgrResolutionHandler_Impl, - { + unsafe extern "system" fn KeepOther(this: *mut core::ffi::c_void, psiother: *mut core::ffi::c_void, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrResolutionHandler_Impl::KeepOther(this, windows_core::from_raw_borrowed(&psiother)) { Ok(ok__) => { @@ -24067,10 +17983,7 @@ impl ISyncMgrResolutionHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeepRecent(this: *mut core::ffi::c_void, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> windows_core::HRESULT - where - Identity: ISyncMgrResolutionHandler_Impl, - { + unsafe extern "system" fn KeepRecent(this: *mut core::ffi::c_void, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrResolutionHandler_Impl::KeepRecent(this) { Ok(ok__) => { @@ -24080,10 +17993,7 @@ impl ISyncMgrResolutionHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFromSyncSet(this: *mut core::ffi::c_void, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> windows_core::HRESULT - where - Identity: ISyncMgrResolutionHandler_Impl, - { + unsafe extern "system" fn RemoveFromSyncSet(this: *mut core::ffi::c_void, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrResolutionHandler_Impl::RemoveFromSyncSet(this) { Ok(ok__) => { @@ -24093,10 +18003,7 @@ impl ISyncMgrResolutionHandler_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeepItems(this: *mut core::ffi::c_void, parray: *mut core::ffi::c_void, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> windows_core::HRESULT - where - Identity: ISyncMgrResolutionHandler_Impl, - { + unsafe extern "system" fn KeepItems(this: *mut core::ffi::c_void, parray: *mut core::ffi::c_void, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrResolutionHandler_Impl::KeepItems(this, windows_core::from_raw_borrowed(&parray)) { Ok(ok__) => { @@ -24124,14 +18031,8 @@ pub trait ISyncMgrScheduleWizardUIOperation_Impl: Sized + ISyncMgrUIOperation_Im } impl windows_core::RuntimeName for ISyncMgrScheduleWizardUIOperation {} impl ISyncMgrScheduleWizardUIOperation_Vtbl { - pub const fn new() -> ISyncMgrScheduleWizardUIOperation_Vtbl - where - Identity: ISyncMgrScheduleWizardUIOperation_Impl, - { - unsafe extern "system" fn InitWizard(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrScheduleWizardUIOperation_Impl, - { + pub const fn new() -> ISyncMgrScheduleWizardUIOperation_Vtbl { + unsafe extern "system" fn InitWizard(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrScheduleWizardUIOperation_Impl::InitWizard(this, core::mem::transmute(&pszhandlerid)).into() } @@ -24141,19 +18042,13 @@ impl ISyncMgrScheduleWizardUIOperation_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ISyncMgrSessionCreator_Impl: Sized { +pub trait ISyncMgrSessionCreator_Impl: Sized + windows_core::IUnknownImpl { fn CreateSession(&self, pszhandlerid: &windows_core::PCWSTR, ppszitemids: *const windows_core::PCWSTR, citems: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ISyncMgrSessionCreator {} impl ISyncMgrSessionCreator_Vtbl { - pub const fn new() -> ISyncMgrSessionCreator_Vtbl - where - Identity: ISyncMgrSessionCreator_Impl, - { - unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, ppszitemids: *const windows_core::PCWSTR, citems: u32, ppcallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSessionCreator_Impl, - { + pub const fn new() -> ISyncMgrSessionCreator_Vtbl { + unsafe extern "system" fn CreateSession(this: *mut core::ffi::c_void, pszhandlerid: windows_core::PCWSTR, ppszitemids: *const windows_core::PCWSTR, citems: u32, ppcallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSessionCreator_Impl::CreateSession(this, core::mem::transmute(&pszhandlerid), core::mem::transmute_copy(&ppszitemids), core::mem::transmute_copy(&citems)) { Ok(ok__) => { @@ -24170,7 +18065,7 @@ impl ISyncMgrSessionCreator_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISyncMgrSyncCallback_Impl: Sized { +pub trait ISyncMgrSyncCallback_Impl: Sized + windows_core::IUnknownImpl { fn ReportProgress(&self, pszitemid: &windows_core::PCWSTR, pszprogresstext: &windows_core::PCWSTR, nstatus: SYNCMGR_PROGRESS_STATUS, ucurrentstep: u32, umaxstep: u32, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> windows_core::Result<()>; fn SetHandlerProgressText(&self, pszprogresstext: &windows_core::PCWSTR, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> windows_core::Result<()>; fn ReportEvent(&self, pszitemid: &windows_core::PCWSTR, nlevel: SYNCMGR_EVENT_LEVEL, nflags: SYNCMGR_EVENT_FLAGS, pszname: &windows_core::PCWSTR, pszdescription: &windows_core::PCWSTR, pszlinktext: &windows_core::PCWSTR, pszlinkreference: &windows_core::PCWSTR, pszcontext: &windows_core::PCWSTR) -> windows_core::Result; @@ -24186,28 +18081,16 @@ pub trait ISyncMgrSyncCallback_Impl: Sized { impl windows_core::RuntimeName for ISyncMgrSyncCallback {} #[cfg(feature = "Win32_System_Com")] impl ISyncMgrSyncCallback_Vtbl { - pub const fn new() -> ISyncMgrSyncCallback_Vtbl - where - Identity: ISyncMgrSyncCallback_Impl, - { - unsafe extern "system" fn ReportProgress(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR, pszprogresstext: windows_core::PCWSTR, nstatus: SYNCMGR_PROGRESS_STATUS, ucurrentstep: u32, umaxstep: u32, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncCallback_Impl, - { + pub const fn new() -> ISyncMgrSyncCallback_Vtbl { + unsafe extern "system" fn ReportProgress(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR, pszprogresstext: windows_core::PCWSTR, nstatus: SYNCMGR_PROGRESS_STATUS, ucurrentstep: u32, umaxstep: u32, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncCallback_Impl::ReportProgress(this, core::mem::transmute(&pszitemid), core::mem::transmute(&pszprogresstext), core::mem::transmute_copy(&nstatus), core::mem::transmute_copy(&ucurrentstep), core::mem::transmute_copy(&umaxstep), core::mem::transmute_copy(&pncancelrequest)).into() } - unsafe extern "system" fn SetHandlerProgressText(this: *mut core::ffi::c_void, pszprogresstext: windows_core::PCWSTR, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncCallback_Impl, - { + unsafe extern "system" fn SetHandlerProgressText(this: *mut core::ffi::c_void, pszprogresstext: windows_core::PCWSTR, pncancelrequest: *mut SYNCMGR_CANCEL_REQUEST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncCallback_Impl::SetHandlerProgressText(this, core::mem::transmute(&pszprogresstext), core::mem::transmute_copy(&pncancelrequest)).into() } - unsafe extern "system" fn ReportEvent(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR, nlevel: SYNCMGR_EVENT_LEVEL, nflags: SYNCMGR_EVENT_FLAGS, pszname: windows_core::PCWSTR, pszdescription: windows_core::PCWSTR, pszlinktext: windows_core::PCWSTR, pszlinkreference: windows_core::PCWSTR, pszcontext: windows_core::PCWSTR, pguideventid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncCallback_Impl, - { + unsafe extern "system" fn ReportEvent(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR, nlevel: SYNCMGR_EVENT_LEVEL, nflags: SYNCMGR_EVENT_FLAGS, pszname: windows_core::PCWSTR, pszdescription: windows_core::PCWSTR, pszlinktext: windows_core::PCWSTR, pszlinkreference: windows_core::PCWSTR, pszcontext: windows_core::PCWSTR, pguideventid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncCallback_Impl::ReportEvent(this, core::mem::transmute(&pszitemid), core::mem::transmute_copy(&nlevel), core::mem::transmute_copy(&nflags), core::mem::transmute(&pszname), core::mem::transmute(&pszdescription), core::mem::transmute(&pszlinktext), core::mem::transmute(&pszlinkreference), core::mem::transmute(&pszcontext)) { Ok(ok__) => { @@ -24217,52 +18100,31 @@ impl ISyncMgrSyncCallback_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanContinue(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncCallback_Impl, - { + unsafe extern "system" fn CanContinue(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncCallback_Impl::CanContinue(this, core::mem::transmute(&pszitemid)).into() } - unsafe extern "system" fn QueryForAdditionalItems(this: *mut core::ffi::c_void, ppenumitemids: *mut *mut core::ffi::c_void, ppenumpunks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncCallback_Impl, - { + unsafe extern "system" fn QueryForAdditionalItems(this: *mut core::ffi::c_void, ppenumitemids: *mut *mut core::ffi::c_void, ppenumpunks: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncCallback_Impl::QueryForAdditionalItems(this, core::mem::transmute_copy(&ppenumitemids), core::mem::transmute_copy(&ppenumpunks)).into() } - unsafe extern "system" fn AddItemToSession(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncCallback_Impl, - { + unsafe extern "system" fn AddItemToSession(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncCallback_Impl::AddItemToSession(this, core::mem::transmute(&pszitemid)).into() } - unsafe extern "system" fn AddIUnknownToSession(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncCallback_Impl, - { + unsafe extern "system" fn AddIUnknownToSession(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncCallback_Impl::AddIUnknownToSession(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn ProposeItem(this: *mut core::ffi::c_void, pnewitem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncCallback_Impl, - { + unsafe extern "system" fn ProposeItem(this: *mut core::ffi::c_void, pnewitem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncCallback_Impl::ProposeItem(this, windows_core::from_raw_borrowed(&pnewitem)).into() } - unsafe extern "system" fn CommitItem(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncCallback_Impl, - { + unsafe extern "system" fn CommitItem(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncCallback_Impl::CommitItem(this, core::mem::transmute(&pszitemid)).into() } - unsafe extern "system" fn ReportManualSync(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncCallback_Impl, - { + unsafe extern "system" fn ReportManualSync(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncCallback_Impl::ReportManualSync(this).into() } @@ -24284,7 +18146,7 @@ impl ISyncMgrSyncCallback_Vtbl { iid == &::IID } } -pub trait ISyncMgrSyncItem_Impl: Sized { +pub trait ISyncMgrSyncItem_Impl: Sized + windows_core::IUnknownImpl { fn GetItemID(&self) -> windows_core::Result; fn GetName(&self) -> windows_core::Result; fn GetItemInfo(&self) -> windows_core::Result; @@ -24296,14 +18158,8 @@ pub trait ISyncMgrSyncItem_Impl: Sized { } impl windows_core::RuntimeName for ISyncMgrSyncItem {} impl ISyncMgrSyncItem_Vtbl { - pub const fn new() -> ISyncMgrSyncItem_Vtbl - where - Identity: ISyncMgrSyncItem_Impl, - { - unsafe extern "system" fn GetItemID(this: *mut core::ffi::c_void, ppszitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItem_Impl, - { + pub const fn new() -> ISyncMgrSyncItem_Vtbl { + unsafe extern "system" fn GetItemID(this: *mut core::ffi::c_void, ppszitemid: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItem_Impl::GetItemID(this) { Ok(ok__) => { @@ -24313,10 +18169,7 @@ impl ISyncMgrSyncItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItem_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, ppszname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItem_Impl::GetName(this) { Ok(ok__) => { @@ -24326,10 +18179,7 @@ impl ISyncMgrSyncItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemInfo(this: *mut core::ffi::c_void, ppiteminfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItem_Impl, - { + unsafe extern "system" fn GetItemInfo(this: *mut core::ffi::c_void, ppiteminfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItem_Impl::GetItemInfo(this) { Ok(ok__) => { @@ -24339,17 +18189,11 @@ impl ISyncMgrSyncItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, rguidobjectid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItem_Impl, - { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, rguidobjectid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncItem_Impl::GetObject(this, core::mem::transmute_copy(&rguidobjectid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pmcapabilities: *mut SYNCMGR_ITEM_CAPABILITIES) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItem_Impl, - { + unsafe extern "system" fn GetCapabilities(this: *mut core::ffi::c_void, pmcapabilities: *mut SYNCMGR_ITEM_CAPABILITIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItem_Impl::GetCapabilities(this) { Ok(ok__) => { @@ -24359,10 +18203,7 @@ impl ISyncMgrSyncItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPolicies(this: *mut core::ffi::c_void, pmpolicies: *mut SYNCMGR_ITEM_POLICIES) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItem_Impl, - { + unsafe extern "system" fn GetPolicies(this: *mut core::ffi::c_void, pmpolicies: *mut SYNCMGR_ITEM_POLICIES) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItem_Impl::GetPolicies(this) { Ok(ok__) => { @@ -24372,17 +18213,11 @@ impl ISyncMgrSyncItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItem_Impl, - { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncItem_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItem_Impl, - { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncItem_Impl::Delete(this).into() } @@ -24402,21 +18237,15 @@ impl ISyncMgrSyncItem_Vtbl { iid == &::IID } } -pub trait ISyncMgrSyncItemContainer_Impl: Sized { +pub trait ISyncMgrSyncItemContainer_Impl: Sized + windows_core::IUnknownImpl { fn GetSyncItem(&self, pszitemid: &windows_core::PCWSTR) -> windows_core::Result; fn GetSyncItemEnumerator(&self) -> windows_core::Result; fn GetSyncItemCount(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ISyncMgrSyncItemContainer {} impl ISyncMgrSyncItemContainer_Vtbl { - pub const fn new() -> ISyncMgrSyncItemContainer_Vtbl - where - Identity: ISyncMgrSyncItemContainer_Impl, - { - unsafe extern "system" fn GetSyncItem(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItemContainer_Impl, - { + pub const fn new() -> ISyncMgrSyncItemContainer_Vtbl { + unsafe extern "system" fn GetSyncItem(this: *mut core::ffi::c_void, pszitemid: windows_core::PCWSTR, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItemContainer_Impl::GetSyncItem(this, core::mem::transmute(&pszitemid)) { Ok(ok__) => { @@ -24426,10 +18255,7 @@ impl ISyncMgrSyncItemContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSyncItemEnumerator(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItemContainer_Impl, - { + unsafe extern "system" fn GetSyncItemEnumerator(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItemContainer_Impl::GetSyncItemEnumerator(this) { Ok(ok__) => { @@ -24439,10 +18265,7 @@ impl ISyncMgrSyncItemContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSyncItemCount(this: *mut core::ffi::c_void, pcitems: *mut u32) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItemContainer_Impl, - { + unsafe extern "system" fn GetSyncItemCount(this: *mut core::ffi::c_void, pcitems: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItemContainer_Impl::GetSyncItemCount(this) { Ok(ok__) => { @@ -24463,7 +18286,7 @@ impl ISyncMgrSyncItemContainer_Vtbl { iid == &::IID } } -pub trait ISyncMgrSyncItemInfo_Impl: Sized { +pub trait ISyncMgrSyncItemInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetTypeLabel(&self) -> windows_core::Result; fn GetComment(&self) -> windows_core::Result; fn GetLastSyncTime(&self) -> windows_core::Result; @@ -24472,14 +18295,8 @@ pub trait ISyncMgrSyncItemInfo_Impl: Sized { } impl windows_core::RuntimeName for ISyncMgrSyncItemInfo {} impl ISyncMgrSyncItemInfo_Vtbl { - pub const fn new() -> ISyncMgrSyncItemInfo_Vtbl - where - Identity: ISyncMgrSyncItemInfo_Impl, - { - unsafe extern "system" fn GetTypeLabel(this: *mut core::ffi::c_void, ppsztypelabel: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItemInfo_Impl, - { + pub const fn new() -> ISyncMgrSyncItemInfo_Vtbl { + unsafe extern "system" fn GetTypeLabel(this: *mut core::ffi::c_void, ppsztypelabel: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItemInfo_Impl::GetTypeLabel(this) { Ok(ok__) => { @@ -24489,10 +18306,7 @@ impl ISyncMgrSyncItemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetComment(this: *mut core::ffi::c_void, ppszcomment: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItemInfo_Impl, - { + unsafe extern "system" fn GetComment(this: *mut core::ffi::c_void, ppszcomment: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItemInfo_Impl::GetComment(this) { Ok(ok__) => { @@ -24502,10 +18316,7 @@ impl ISyncMgrSyncItemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastSyncTime(this: *mut core::ffi::c_void, pftlastsync: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItemInfo_Impl, - { + unsafe extern "system" fn GetLastSyncTime(this: *mut core::ffi::c_void, pftlastsync: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSyncItemInfo_Impl::GetLastSyncTime(this) { Ok(ok__) => { @@ -24515,17 +18326,11 @@ impl ISyncMgrSyncItemInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItemInfo_Impl, - { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncItemInfo_Impl::IsEnabled(this).into() } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncItemInfo_Impl, - { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncItemInfo_Impl::IsConnected(this) } @@ -24542,19 +18347,13 @@ impl ISyncMgrSyncItemInfo_Vtbl { iid == &::IID } } -pub trait ISyncMgrSyncResult_Impl: Sized { +pub trait ISyncMgrSyncResult_Impl: Sized + windows_core::IUnknownImpl { fn Result(&self, nstatus: SYNCMGR_PROGRESS_STATUS, cerror: u32, cconflicts: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncMgrSyncResult {} impl ISyncMgrSyncResult_Vtbl { - pub const fn new() -> ISyncMgrSyncResult_Vtbl - where - Identity: ISyncMgrSyncResult_Impl, - { - unsafe extern "system" fn Result(this: *mut core::ffi::c_void, nstatus: SYNCMGR_PROGRESS_STATUS, cerror: u32, cconflicts: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrSyncResult_Impl, - { + pub const fn new() -> ISyncMgrSyncResult_Vtbl { + unsafe extern "system" fn Result(this: *mut core::ffi::c_void, nstatus: SYNCMGR_PROGRESS_STATUS, cerror: u32, cconflicts: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncResult_Impl::Result(this, core::mem::transmute_copy(&nstatus), core::mem::transmute_copy(&cerror), core::mem::transmute_copy(&cconflicts)).into() } @@ -24565,7 +18364,7 @@ impl ISyncMgrSyncResult_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait ISyncMgrSynchronize_Impl: Sized { +pub trait ISyncMgrSynchronize_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, dwreserved: u32, dwsyncmgrflags: u32, cbcookie: u32, lpcookie: *const u8) -> windows_core::Result<()>; fn GetHandlerInfo(&self) -> windows_core::Result<*mut SYNCMGRHANDLERINFO>; fn EnumSyncMgrItems(&self) -> windows_core::Result; @@ -24581,21 +18380,12 @@ pub trait ISyncMgrSynchronize_Impl: Sized { impl windows_core::RuntimeName for ISyncMgrSynchronize {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ISyncMgrSynchronize_Vtbl { - pub const fn new() -> ISyncMgrSynchronize_Vtbl - where - Identity: ISyncMgrSynchronize_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, dwreserved: u32, dwsyncmgrflags: u32, cbcookie: u32, lpcookie: *const u8) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronize_Impl, - { + pub const fn new() -> ISyncMgrSynchronize_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, dwreserved: u32, dwsyncmgrflags: u32, cbcookie: u32, lpcookie: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronize_Impl::Initialize(this, core::mem::transmute_copy(&dwreserved), core::mem::transmute_copy(&dwsyncmgrflags), core::mem::transmute_copy(&cbcookie), core::mem::transmute_copy(&lpcookie)).into() } - unsafe extern "system" fn GetHandlerInfo(this: *mut core::ffi::c_void, ppsyncmgrhandlerinfo: *mut *mut SYNCMGRHANDLERINFO) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronize_Impl, - { + unsafe extern "system" fn GetHandlerInfo(this: *mut core::ffi::c_void, ppsyncmgrhandlerinfo: *mut *mut SYNCMGRHANDLERINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSynchronize_Impl::GetHandlerInfo(this) { Ok(ok__) => { @@ -24605,10 +18395,7 @@ impl ISyncMgrSynchronize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumSyncMgrItems(this: *mut core::ffi::c_void, ppsyncmgrenumitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronize_Impl, - { + unsafe extern "system" fn EnumSyncMgrItems(this: *mut core::ffi::c_void, ppsyncmgrenumitems: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISyncMgrSynchronize_Impl::EnumSyncMgrItems(this) { Ok(ok__) => { @@ -24618,52 +18405,31 @@ impl ISyncMgrSynchronize_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemObject(this: *mut core::ffi::c_void, itemid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronize_Impl, - { + unsafe extern "system" fn GetItemObject(this: *mut core::ffi::c_void, itemid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronize_Impl::GetItemObject(this, core::mem::transmute_copy(&itemid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn ShowProperties(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, itemid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronize_Impl, - { + unsafe extern "system" fn ShowProperties(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, itemid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronize_Impl::ShowProperties(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&itemid)).into() } - unsafe extern "system" fn SetProgressCallback(this: *mut core::ffi::c_void, lpcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronize_Impl, - { + unsafe extern "system" fn SetProgressCallback(this: *mut core::ffi::c_void, lpcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronize_Impl::SetProgressCallback(this, windows_core::from_raw_borrowed(&lpcallback)).into() } - unsafe extern "system" fn PrepareForSync(this: *mut core::ffi::c_void, cbnumitems: u32, pitemids: *const windows_core::GUID, hwndparent: super::super::Foundation::HWND, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronize_Impl, - { + unsafe extern "system" fn PrepareForSync(this: *mut core::ffi::c_void, cbnumitems: u32, pitemids: *const windows_core::GUID, hwndparent: super::super::Foundation::HWND, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronize_Impl::PrepareForSync(this, core::mem::transmute_copy(&cbnumitems), core::mem::transmute_copy(&pitemids), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronize_Impl, - { + unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronize_Impl::Synchronize(this, core::mem::transmute_copy(&hwndparent)).into() } - unsafe extern "system" fn SetItemStatus(this: *mut core::ffi::c_void, pitemid: *const windows_core::GUID, dwsyncmgrstatus: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronize_Impl, - { + unsafe extern "system" fn SetItemStatus(this: *mut core::ffi::c_void, pitemid: *const windows_core::GUID, dwsyncmgrstatus: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronize_Impl::SetItemStatus(this, core::mem::transmute_copy(&pitemid), core::mem::transmute_copy(&dwsyncmgrstatus)).into() } - unsafe extern "system" fn ShowError(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, errorid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronize_Impl, - { + unsafe extern "system" fn ShowError(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, errorid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronize_Impl::ShowError(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&errorid)).into() } @@ -24685,7 +18451,7 @@ impl ISyncMgrSynchronize_Vtbl { iid == &::IID } } -pub trait ISyncMgrSynchronizeCallback_Impl: Sized { +pub trait ISyncMgrSynchronizeCallback_Impl: Sized + windows_core::IUnknownImpl { fn ShowPropertiesCompleted(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn PrepareForSyncCompleted(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn SynchronizeCompleted(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; @@ -24698,70 +18464,40 @@ pub trait ISyncMgrSynchronizeCallback_Impl: Sized { } impl windows_core::RuntimeName for ISyncMgrSynchronizeCallback {} impl ISyncMgrSynchronizeCallback_Vtbl { - pub const fn new() -> ISyncMgrSynchronizeCallback_Vtbl - where - Identity: ISyncMgrSynchronizeCallback_Impl, - { - unsafe extern "system" fn ShowPropertiesCompleted(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeCallback_Impl, - { + pub const fn new() -> ISyncMgrSynchronizeCallback_Vtbl { + unsafe extern "system" fn ShowPropertiesCompleted(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeCallback_Impl::ShowPropertiesCompleted(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn PrepareForSyncCompleted(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeCallback_Impl, - { + unsafe extern "system" fn PrepareForSyncCompleted(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeCallback_Impl::PrepareForSyncCompleted(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn SynchronizeCompleted(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeCallback_Impl, - { + unsafe extern "system" fn SynchronizeCompleted(this: *mut core::ffi::c_void, hr: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeCallback_Impl::SynchronizeCompleted(this, core::mem::transmute_copy(&hr)).into() } - unsafe extern "system" fn ShowErrorCompleted(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, citems: u32, pitemids: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeCallback_Impl, - { + unsafe extern "system" fn ShowErrorCompleted(this: *mut core::ffi::c_void, hr: windows_core::HRESULT, citems: u32, pitemids: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeCallback_Impl::ShowErrorCompleted(this, core::mem::transmute_copy(&hr), core::mem::transmute_copy(&citems), core::mem::transmute_copy(&pitemids)).into() } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeCallback_Impl, - { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeCallback_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, itemid: *const windows_core::GUID, psyncprogressitem: *const SYNCMGRPROGRESSITEM) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeCallback_Impl, - { + unsafe extern "system" fn Progress(this: *mut core::ffi::c_void, itemid: *const windows_core::GUID, psyncprogressitem: *const SYNCMGRPROGRESSITEM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeCallback_Impl::Progress(this, core::mem::transmute_copy(&itemid), core::mem::transmute_copy(&psyncprogressitem)).into() } - unsafe extern "system" fn LogError(this: *mut core::ffi::c_void, dwerrorlevel: u32, pszerrortext: windows_core::PCWSTR, psynclogerror: *const SYNCMGRLOGERRORINFO) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeCallback_Impl, - { + unsafe extern "system" fn LogError(this: *mut core::ffi::c_void, dwerrorlevel: u32, pszerrortext: windows_core::PCWSTR, psynclogerror: *const SYNCMGRLOGERRORINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeCallback_Impl::LogError(this, core::mem::transmute_copy(&dwerrorlevel), core::mem::transmute(&pszerrortext), core::mem::transmute_copy(&psynclogerror)).into() } - unsafe extern "system" fn DeleteLogError(this: *mut core::ffi::c_void, errorid: *const windows_core::GUID, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeCallback_Impl, - { + unsafe extern "system" fn DeleteLogError(this: *mut core::ffi::c_void, errorid: *const windows_core::GUID, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeCallback_Impl::DeleteLogError(this, core::mem::transmute_copy(&errorid), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn EstablishConnection(this: *mut core::ffi::c_void, pwszconnection: windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeCallback_Impl, - { + unsafe extern "system" fn EstablishConnection(this: *mut core::ffi::c_void, pwszconnection: windows_core::PCWSTR, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeCallback_Impl::EstablishConnection(this, core::mem::transmute(&pwszconnection), core::mem::transmute_copy(&dwreserved)).into() } @@ -24782,27 +18518,18 @@ impl ISyncMgrSynchronizeCallback_Vtbl { iid == &::IID } } -pub trait ISyncMgrSynchronizeInvoke_Impl: Sized { +pub trait ISyncMgrSynchronizeInvoke_Impl: Sized + windows_core::IUnknownImpl { fn UpdateItems(&self, dwinvokeflags: u32, clsid: *const windows_core::GUID, cbcookie: u32, pcookie: *const u8) -> windows_core::Result<()>; fn UpdateAll(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISyncMgrSynchronizeInvoke {} impl ISyncMgrSynchronizeInvoke_Vtbl { - pub const fn new() -> ISyncMgrSynchronizeInvoke_Vtbl - where - Identity: ISyncMgrSynchronizeInvoke_Impl, - { - unsafe extern "system" fn UpdateItems(this: *mut core::ffi::c_void, dwinvokeflags: u32, clsid: *const windows_core::GUID, cbcookie: u32, pcookie: *const u8) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeInvoke_Impl, - { + pub const fn new() -> ISyncMgrSynchronizeInvoke_Vtbl { + unsafe extern "system" fn UpdateItems(this: *mut core::ffi::c_void, dwinvokeflags: u32, clsid: *const windows_core::GUID, cbcookie: u32, pcookie: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeInvoke_Impl::UpdateItems(this, core::mem::transmute_copy(&dwinvokeflags), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&cbcookie), core::mem::transmute_copy(&pcookie)).into() } - unsafe extern "system" fn UpdateAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISyncMgrSynchronizeInvoke_Impl, - { + unsafe extern "system" fn UpdateAll(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeInvoke_Impl::UpdateAll(this).into() } @@ -24816,19 +18543,13 @@ impl ISyncMgrSynchronizeInvoke_Vtbl { iid == &::IID } } -pub trait ISyncMgrUIOperation_Impl: Sized { +pub trait ISyncMgrUIOperation_Impl: Sized + windows_core::IUnknownImpl { fn Run(&self, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT; } impl windows_core::RuntimeName for ISyncMgrUIOperation {} impl ISyncMgrUIOperation_Vtbl { - pub const fn new() -> ISyncMgrUIOperation_Vtbl - where - Identity: ISyncMgrUIOperation_Impl, - { - unsafe extern "system" fn Run(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ISyncMgrUIOperation_Impl, - { + pub const fn new() -> ISyncMgrUIOperation_Vtbl { + unsafe extern "system" fn Run(this: *mut core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrUIOperation_Impl::Run(this, core::mem::transmute_copy(&hwndowner)) } @@ -24838,7 +18559,7 @@ impl ISyncMgrUIOperation_Vtbl { iid == &::IID } } -pub trait ITaskbarList_Impl: Sized { +pub trait ITaskbarList_Impl: Sized + windows_core::IUnknownImpl { fn HrInit(&self) -> windows_core::Result<()>; fn AddTab(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn DeleteTab(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; @@ -24847,42 +18568,24 @@ pub trait ITaskbarList_Impl: Sized { } impl windows_core::RuntimeName for ITaskbarList {} impl ITaskbarList_Vtbl { - pub const fn new() -> ITaskbarList_Vtbl - where - Identity: ITaskbarList_Impl, - { - unsafe extern "system" fn HrInit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITaskbarList_Impl, - { + pub const fn new() -> ITaskbarList_Vtbl { + unsafe extern "system" fn HrInit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList_Impl::HrInit(this).into() } - unsafe extern "system" fn AddTab(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITaskbarList_Impl, - { + unsafe extern "system" fn AddTab(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList_Impl::AddTab(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn DeleteTab(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITaskbarList_Impl, - { + unsafe extern "system" fn DeleteTab(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList_Impl::DeleteTab(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn ActivateTab(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITaskbarList_Impl, - { + unsafe extern "system" fn ActivateTab(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList_Impl::ActivateTab(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn SetActiveAlt(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITaskbarList_Impl, - { + unsafe extern "system" fn SetActiveAlt(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList_Impl::SetActiveAlt(this, core::mem::transmute_copy(&hwnd)).into() } @@ -24904,14 +18607,8 @@ pub trait ITaskbarList2_Impl: Sized + ITaskbarList_Impl { } impl windows_core::RuntimeName for ITaskbarList2 {} impl ITaskbarList2_Vtbl { - pub const fn new() -> ITaskbarList2_Vtbl - where - Identity: ITaskbarList2_Impl, - { - unsafe extern "system" fn MarkFullscreenWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITaskbarList2_Impl, - { + pub const fn new() -> ITaskbarList2_Vtbl { + unsafe extern "system" fn MarkFullscreenWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList2_Impl::MarkFullscreenWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&ffullscreen)).into() } @@ -24940,91 +18637,52 @@ pub trait ITaskbarList3_Impl: Sized + ITaskbarList2_Impl { impl windows_core::RuntimeName for ITaskbarList3 {} #[cfg(all(feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] impl ITaskbarList3_Vtbl { - pub const fn new() -> ITaskbarList3_Vtbl - where - Identity: ITaskbarList3_Impl, - { - unsafe extern "system" fn SetProgressValue(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ullcompleted: u64, ulltotal: u64) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + pub const fn new() -> ITaskbarList3_Vtbl { + unsafe extern "system" fn SetProgressValue(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ullcompleted: u64, ulltotal: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::SetProgressValue(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&ullcompleted), core::mem::transmute_copy(&ulltotal)).into() } - unsafe extern "system" fn SetProgressState(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, tbpflags: TBPFLAG) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn SetProgressState(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, tbpflags: TBPFLAG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::SetProgressState(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&tbpflags)).into() } - unsafe extern "system" fn RegisterTab(this: *mut core::ffi::c_void, hwndtab: super::super::Foundation::HWND, hwndmdi: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn RegisterTab(this: *mut core::ffi::c_void, hwndtab: super::super::Foundation::HWND, hwndmdi: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::RegisterTab(this, core::mem::transmute_copy(&hwndtab), core::mem::transmute_copy(&hwndmdi)).into() } - unsafe extern "system" fn UnregisterTab(this: *mut core::ffi::c_void, hwndtab: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn UnregisterTab(this: *mut core::ffi::c_void, hwndtab: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::UnregisterTab(this, core::mem::transmute_copy(&hwndtab)).into() } - unsafe extern "system" fn SetTabOrder(this: *mut core::ffi::c_void, hwndtab: super::super::Foundation::HWND, hwndinsertbefore: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn SetTabOrder(this: *mut core::ffi::c_void, hwndtab: super::super::Foundation::HWND, hwndinsertbefore: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::SetTabOrder(this, core::mem::transmute_copy(&hwndtab), core::mem::transmute_copy(&hwndinsertbefore)).into() } - unsafe extern "system" fn SetTabActive(this: *mut core::ffi::c_void, hwndtab: super::super::Foundation::HWND, hwndmdi: super::super::Foundation::HWND, dwreserved: u32) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn SetTabActive(this: *mut core::ffi::c_void, hwndtab: super::super::Foundation::HWND, hwndmdi: super::super::Foundation::HWND, dwreserved: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::SetTabActive(this, core::mem::transmute_copy(&hwndtab), core::mem::transmute_copy(&hwndmdi), core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn ThumbBarAddButtons(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, cbuttons: u32, pbutton: *const THUMBBUTTON) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn ThumbBarAddButtons(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, cbuttons: u32, pbutton: *const THUMBBUTTON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::ThumbBarAddButtons(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&cbuttons), core::mem::transmute_copy(&pbutton)).into() } - unsafe extern "system" fn ThumbBarUpdateButtons(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, cbuttons: u32, pbutton: *const THUMBBUTTON) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn ThumbBarUpdateButtons(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, cbuttons: u32, pbutton: *const THUMBBUTTON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::ThumbBarUpdateButtons(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&cbuttons), core::mem::transmute_copy(&pbutton)).into() } - unsafe extern "system" fn ThumbBarSetImageList(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, himl: super::Controls::HIMAGELIST) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn ThumbBarSetImageList(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, himl: super::Controls::HIMAGELIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::ThumbBarSetImageList(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&himl)).into() } - unsafe extern "system" fn SetOverlayIcon(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, hicon: super::WindowsAndMessaging::HICON, pszdescription: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn SetOverlayIcon(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, hicon: super::WindowsAndMessaging::HICON, pszdescription: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::SetOverlayIcon(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&hicon), core::mem::transmute(&pszdescription)).into() } - unsafe extern "system" fn SetThumbnailTooltip(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, psztip: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn SetThumbnailTooltip(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, psztip: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::SetThumbnailTooltip(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&psztip)).into() } - unsafe extern "system" fn SetThumbnailClip(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, prcclip: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITaskbarList3_Impl, - { + unsafe extern "system" fn SetThumbnailClip(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, prcclip: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList3_Impl::SetThumbnailClip(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&prcclip)).into() } @@ -25056,14 +18714,8 @@ pub trait ITaskbarList4_Impl: Sized + ITaskbarList3_Impl { impl windows_core::RuntimeName for ITaskbarList4 {} #[cfg(all(feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] impl ITaskbarList4_Vtbl { - pub const fn new() -> ITaskbarList4_Vtbl - where - Identity: ITaskbarList4_Impl, - { - unsafe extern "system" fn SetTabProperties(this: *mut core::ffi::c_void, hwndtab: super::super::Foundation::HWND, stpflags: STPFLAG) -> windows_core::HRESULT - where - Identity: ITaskbarList4_Impl, - { + pub const fn new() -> ITaskbarList4_Vtbl { + unsafe extern "system" fn SetTabProperties(this: *mut core::ffi::c_void, hwndtab: super::super::Foundation::HWND, stpflags: STPFLAG) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList4_Impl::SetTabProperties(this, core::mem::transmute_copy(&hwndtab), core::mem::transmute_copy(&stpflags)).into() } @@ -25073,27 +18725,18 @@ impl ITaskbarList4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IThumbnailCache_Impl: Sized { +pub trait IThumbnailCache_Impl: Sized + windows_core::IUnknownImpl { fn GetThumbnail(&self, pshellitem: Option<&IShellItem>, cxyrequestedthumbsize: u32, flags: WTS_FLAGS, ppvthumb: *mut Option, poutflags: *mut WTS_CACHEFLAGS, pthumbnailid: *mut WTS_THUMBNAILID) -> windows_core::Result<()>; fn GetThumbnailByID(&self, thumbnailid: &WTS_THUMBNAILID, cxyrequestedthumbsize: u32, ppvthumb: *mut Option, poutflags: *mut WTS_CACHEFLAGS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IThumbnailCache {} impl IThumbnailCache_Vtbl { - pub const fn new() -> IThumbnailCache_Vtbl - where - Identity: IThumbnailCache_Impl, - { - unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, pshellitem: *mut core::ffi::c_void, cxyrequestedthumbsize: u32, flags: WTS_FLAGS, ppvthumb: *mut *mut core::ffi::c_void, poutflags: *mut WTS_CACHEFLAGS, pthumbnailid: *mut WTS_THUMBNAILID) -> windows_core::HRESULT - where - Identity: IThumbnailCache_Impl, - { + pub const fn new() -> IThumbnailCache_Vtbl { + unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, pshellitem: *mut core::ffi::c_void, cxyrequestedthumbsize: u32, flags: WTS_FLAGS, ppvthumb: *mut *mut core::ffi::c_void, poutflags: *mut WTS_CACHEFLAGS, pthumbnailid: *mut WTS_THUMBNAILID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThumbnailCache_Impl::GetThumbnail(this, windows_core::from_raw_borrowed(&pshellitem), core::mem::transmute_copy(&cxyrequestedthumbsize), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&ppvthumb), core::mem::transmute_copy(&poutflags), core::mem::transmute_copy(&pthumbnailid)).into() } - unsafe extern "system" fn GetThumbnailByID(this: *mut core::ffi::c_void, thumbnailid: WTS_THUMBNAILID, cxyrequestedthumbsize: u32, ppvthumb: *mut *mut core::ffi::c_void, poutflags: *mut WTS_CACHEFLAGS) -> windows_core::HRESULT - where - Identity: IThumbnailCache_Impl, - { + unsafe extern "system" fn GetThumbnailByID(this: *mut core::ffi::c_void, thumbnailid: WTS_THUMBNAILID, cxyrequestedthumbsize: u32, ppvthumb: *mut *mut core::ffi::c_void, poutflags: *mut WTS_CACHEFLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThumbnailCache_Impl::GetThumbnailByID(this, core::mem::transmute(&thumbnailid), core::mem::transmute_copy(&cxyrequestedthumbsize), core::mem::transmute_copy(&ppvthumb), core::mem::transmute_copy(&poutflags)).into() } @@ -25107,19 +18750,13 @@ impl IThumbnailCache_Vtbl { iid == &::IID } } -pub trait IThumbnailCachePrimer_Impl: Sized { +pub trait IThumbnailCachePrimer_Impl: Sized + windows_core::IUnknownImpl { fn PageInThumbnail(&self, psi: Option<&IShellItem>, wtsflags: WTS_FLAGS, cxyrequestedthumbsize: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IThumbnailCachePrimer {} impl IThumbnailCachePrimer_Vtbl { - pub const fn new() -> IThumbnailCachePrimer_Vtbl - where - Identity: IThumbnailCachePrimer_Impl, - { - unsafe extern "system" fn PageInThumbnail(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, wtsflags: WTS_FLAGS, cxyrequestedthumbsize: u32) -> windows_core::HRESULT - where - Identity: IThumbnailCachePrimer_Impl, - { + pub const fn new() -> IThumbnailCachePrimer_Vtbl { + unsafe extern "system" fn PageInThumbnail(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, wtsflags: WTS_FLAGS, cxyrequestedthumbsize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThumbnailCachePrimer_Impl::PageInThumbnail(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&wtsflags), core::mem::transmute_copy(&cxyrequestedthumbsize)).into() } @@ -25130,21 +18767,15 @@ impl IThumbnailCachePrimer_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IThumbnailCapture_Impl: Sized { +pub trait IThumbnailCapture_Impl: Sized + windows_core::IUnknownImpl { fn CaptureThumbnail(&self, pmaxsize: *const super::super::Foundation::SIZE, phtmldoc2: Option<&windows_core::IUnknown>) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] impl windows_core::RuntimeName for IThumbnailCapture {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IThumbnailCapture_Vtbl { - pub const fn new() -> IThumbnailCapture_Vtbl - where - Identity: IThumbnailCapture_Impl, - { - unsafe extern "system" fn CaptureThumbnail(this: *mut core::ffi::c_void, pmaxsize: *const super::super::Foundation::SIZE, phtmldoc2: *mut core::ffi::c_void, phbmthumbnail: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT - where - Identity: IThumbnailCapture_Impl, - { + pub const fn new() -> IThumbnailCapture_Vtbl { + unsafe extern "system" fn CaptureThumbnail(this: *mut core::ffi::c_void, pmaxsize: *const super::super::Foundation::SIZE, phtmldoc2: *mut core::ffi::c_void, phbmthumbnail: *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IThumbnailCapture_Impl::CaptureThumbnail(this, core::mem::transmute_copy(&pmaxsize), windows_core::from_raw_borrowed(&phtmldoc2)) { Ok(ok__) => { @@ -25161,21 +18792,15 @@ impl IThumbnailCapture_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] -pub trait IThumbnailHandlerFactory_Impl: Sized { +pub trait IThumbnailHandlerFactory_Impl: Sized + windows_core::IUnknownImpl { fn GetThumbnailHandler(&self, pidlchild: *const Common::ITEMIDLIST, pbc: Option<&super::super::System::Com::IBindCtx>, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl windows_core::RuntimeName for IThumbnailHandlerFactory {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl IThumbnailHandlerFactory_Vtbl { - pub const fn new() -> IThumbnailHandlerFactory_Vtbl - where - Identity: IThumbnailHandlerFactory_Impl, - { - unsafe extern "system" fn GetThumbnailHandler(this: *mut core::ffi::c_void, pidlchild: *const Common::ITEMIDLIST, pbc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IThumbnailHandlerFactory_Impl, - { + pub const fn new() -> IThumbnailHandlerFactory_Vtbl { + unsafe extern "system" fn GetThumbnailHandler(this: *mut core::ffi::c_void, pidlchild: *const Common::ITEMIDLIST, pbc: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThumbnailHandlerFactory_Impl::GetThumbnailHandler(this, core::mem::transmute_copy(&pidlchild), windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -25186,21 +18811,15 @@ impl IThumbnailHandlerFactory_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IThumbnailProvider_Impl: Sized { +pub trait IThumbnailProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetThumbnail(&self, cx: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP, pdwalpha: *mut WTS_ALPHATYPE) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Gdi")] impl windows_core::RuntimeName for IThumbnailProvider {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IThumbnailProvider_Vtbl { - pub const fn new() -> IThumbnailProvider_Vtbl - where - Identity: IThumbnailProvider_Impl, - { - unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, cx: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP, pdwalpha: *mut WTS_ALPHATYPE) -> windows_core::HRESULT - where - Identity: IThumbnailProvider_Impl, - { + pub const fn new() -> IThumbnailProvider_Vtbl { + unsafe extern "system" fn GetThumbnail(this: *mut core::ffi::c_void, cx: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP, pdwalpha: *mut WTS_ALPHATYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThumbnailProvider_Impl::GetThumbnail(this, core::mem::transmute_copy(&cx), core::mem::transmute_copy(&phbmp), core::mem::transmute_copy(&pdwalpha)).into() } @@ -25210,19 +18829,13 @@ impl IThumbnailProvider_Vtbl { iid == &::IID } } -pub trait IThumbnailSettings_Impl: Sized { +pub trait IThumbnailSettings_Impl: Sized + windows_core::IUnknownImpl { fn SetContext(&self, dwcontext: WTS_CONTEXTFLAGS) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IThumbnailSettings {} impl IThumbnailSettings_Vtbl { - pub const fn new() -> IThumbnailSettings_Vtbl - where - Identity: IThumbnailSettings_Impl, - { - unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, dwcontext: WTS_CONTEXTFLAGS) -> windows_core::HRESULT - where - Identity: IThumbnailSettings_Impl, - { + pub const fn new() -> IThumbnailSettings_Vtbl { + unsafe extern "system" fn SetContext(this: *mut core::ffi::c_void, dwcontext: WTS_CONTEXTFLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThumbnailSettings_Impl::SetContext(this, core::mem::transmute_copy(&dwcontext)).into() } @@ -25233,7 +18846,7 @@ impl IThumbnailSettings_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IThumbnailStreamCache_Impl: Sized { +pub trait IThumbnailStreamCache_Impl: Sized + windows_core::IUnknownImpl { fn GetThumbnailStream(&self, path: &windows_core::PCWSTR, cacheid: u64, options: ThumbnailStreamCacheOptions, requestedthumbnailsize: u32, thumbnailsize: *mut super::super::Foundation::SIZE, thumbnailstream: *mut Option) -> windows_core::Result<()>; fn SetThumbnailStream(&self, path: &windows_core::PCWSTR, cacheid: u64, thumbnailsize: &super::super::Foundation::SIZE, thumbnailstream: Option<&super::super::System::Com::IStream>) -> windows_core::Result<()>; } @@ -25241,21 +18854,12 @@ pub trait IThumbnailStreamCache_Impl: Sized { impl windows_core::RuntimeName for IThumbnailStreamCache {} #[cfg(feature = "Win32_System_Com")] impl IThumbnailStreamCache_Vtbl { - pub const fn new() -> IThumbnailStreamCache_Vtbl - where - Identity: IThumbnailStreamCache_Impl, - { - unsafe extern "system" fn GetThumbnailStream(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, cacheid: u64, options: ThumbnailStreamCacheOptions, requestedthumbnailsize: u32, thumbnailsize: *mut super::super::Foundation::SIZE, thumbnailstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IThumbnailStreamCache_Impl, - { + pub const fn new() -> IThumbnailStreamCache_Vtbl { + unsafe extern "system" fn GetThumbnailStream(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, cacheid: u64, options: ThumbnailStreamCacheOptions, requestedthumbnailsize: u32, thumbnailsize: *mut super::super::Foundation::SIZE, thumbnailstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThumbnailStreamCache_Impl::GetThumbnailStream(this, core::mem::transmute(&path), core::mem::transmute_copy(&cacheid), core::mem::transmute_copy(&options), core::mem::transmute_copy(&requestedthumbnailsize), core::mem::transmute_copy(&thumbnailsize), core::mem::transmute_copy(&thumbnailstream)).into() } - unsafe extern "system" fn SetThumbnailStream(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, cacheid: u64, thumbnailsize: super::super::Foundation::SIZE, thumbnailstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IThumbnailStreamCache_Impl, - { + unsafe extern "system" fn SetThumbnailStream(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, cacheid: u64, thumbnailsize: super::super::Foundation::SIZE, thumbnailstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThumbnailStreamCache_Impl::SetThumbnailStream(this, core::mem::transmute(&path), core::mem::transmute_copy(&cacheid), core::mem::transmute(&thumbnailsize), windows_core::from_raw_borrowed(&thumbnailstream)).into() } @@ -25278,21 +18882,12 @@ pub trait ITrackShellMenu_Impl: Sized + IShellMenu_Impl { impl windows_core::RuntimeName for ITrackShellMenu {} #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl ITrackShellMenu_Vtbl { - pub const fn new() -> ITrackShellMenu_Vtbl - where - Identity: ITrackShellMenu_Impl, - { - unsafe extern "system" fn SetObscured(this: *mut core::ffi::c_void, hwndtb: super::super::Foundation::HWND, punkband: *mut core::ffi::c_void, dwsmsetflags: u32) -> windows_core::HRESULT - where - Identity: ITrackShellMenu_Impl, - { + pub const fn new() -> ITrackShellMenu_Vtbl { + unsafe extern "system" fn SetObscured(this: *mut core::ffi::c_void, hwndtb: super::super::Foundation::HWND, punkband: *mut core::ffi::c_void, dwsmsetflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrackShellMenu_Impl::SetObscured(this, core::mem::transmute_copy(&hwndtb), windows_core::from_raw_borrowed(&punkband), core::mem::transmute_copy(&dwsmsetflags)).into() } - unsafe extern "system" fn Popup(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ppt: *mut super::super::Foundation::POINTL, prcexclude: *mut super::super::Foundation::RECTL, dwflags: i32) -> windows_core::HRESULT - where - Identity: ITrackShellMenu_Impl, - { + unsafe extern "system" fn Popup(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ppt: *mut super::super::Foundation::POINTL, prcexclude: *mut super::super::Foundation::RECTL, dwflags: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrackShellMenu_Impl::Popup(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&ppt), core::mem::transmute_copy(&prcexclude), core::mem::transmute_copy(&dwflags)).into() } @@ -25303,21 +18898,15 @@ impl ITrackShellMenu_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITranscodeImage_Impl: Sized { +pub trait ITranscodeImage_Impl: Sized + windows_core::IUnknownImpl { fn TranscodeImage(&self, pshellitem: Option<&IShellItem>, uimaxwidth: u32, uimaxheight: u32, flags: u32, pvimage: Option<&super::super::System::Com::IStream>, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ITranscodeImage {} #[cfg(feature = "Win32_System_Com")] impl ITranscodeImage_Vtbl { - pub const fn new() -> ITranscodeImage_Vtbl - where - Identity: ITranscodeImage_Impl, - { - unsafe extern "system" fn TranscodeImage(this: *mut core::ffi::c_void, pshellitem: *mut core::ffi::c_void, uimaxwidth: u32, uimaxheight: u32, flags: u32, pvimage: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::HRESULT - where - Identity: ITranscodeImage_Impl, - { + pub const fn new() -> ITranscodeImage_Vtbl { + unsafe extern "system" fn TranscodeImage(this: *mut core::ffi::c_void, pshellitem: *mut core::ffi::c_void, uimaxwidth: u32, uimaxheight: u32, flags: u32, pvimage: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITranscodeImage_Impl::TranscodeImage(this, windows_core::from_raw_borrowed(&pshellitem), core::mem::transmute_copy(&uimaxwidth), core::mem::transmute_copy(&uimaxheight), core::mem::transmute_copy(&flags), windows_core::from_raw_borrowed(&pvimage), core::mem::transmute_copy(&puiwidth), core::mem::transmute_copy(&puiheight)).into() } @@ -25328,7 +18917,7 @@ impl ITranscodeImage_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ITransferAdviseSink_Impl: Sized { +pub trait ITransferAdviseSink_Impl: Sized + windows_core::IUnknownImpl { fn UpdateProgress(&self, ullsizecurrent: u64, ullsizetotal: u64, nfilescurrent: i32, nfilestotal: i32, nfolderscurrent: i32, nfolderstotal: i32) -> windows_core::Result<()>; fn UpdateTransferState(&self, ts: u32) -> windows_core::Result<()>; fn ConfirmOverwrite(&self, psisource: Option<&IShellItem>, psidestparent: Option<&IShellItem>, pszname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -25341,56 +18930,32 @@ pub trait ITransferAdviseSink_Impl: Sized { impl windows_core::RuntimeName for ITransferAdviseSink {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ITransferAdviseSink_Vtbl { - pub const fn new() -> ITransferAdviseSink_Vtbl - where - Identity: ITransferAdviseSink_Impl, - { - unsafe extern "system" fn UpdateProgress(this: *mut core::ffi::c_void, ullsizecurrent: u64, ullsizetotal: u64, nfilescurrent: i32, nfilestotal: i32, nfolderscurrent: i32, nfolderstotal: i32) -> windows_core::HRESULT - where - Identity: ITransferAdviseSink_Impl, - { + pub const fn new() -> ITransferAdviseSink_Vtbl { + unsafe extern "system" fn UpdateProgress(this: *mut core::ffi::c_void, ullsizecurrent: u64, ullsizetotal: u64, nfilescurrent: i32, nfilestotal: i32, nfolderscurrent: i32, nfolderstotal: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferAdviseSink_Impl::UpdateProgress(this, core::mem::transmute_copy(&ullsizecurrent), core::mem::transmute_copy(&ullsizetotal), core::mem::transmute_copy(&nfilescurrent), core::mem::transmute_copy(&nfilestotal), core::mem::transmute_copy(&nfolderscurrent), core::mem::transmute_copy(&nfolderstotal)).into() } - unsafe extern "system" fn UpdateTransferState(this: *mut core::ffi::c_void, ts: u32) -> windows_core::HRESULT - where - Identity: ITransferAdviseSink_Impl, - { + unsafe extern "system" fn UpdateTransferState(this: *mut core::ffi::c_void, ts: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferAdviseSink_Impl::UpdateTransferState(this, core::mem::transmute_copy(&ts)).into() } - unsafe extern "system" fn ConfirmOverwrite(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psidestparent: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITransferAdviseSink_Impl, - { + unsafe extern "system" fn ConfirmOverwrite(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psidestparent: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferAdviseSink_Impl::ConfirmOverwrite(this, windows_core::from_raw_borrowed(&psisource), windows_core::from_raw_borrowed(&psidestparent), core::mem::transmute(&pszname)).into() } - unsafe extern "system" fn ConfirmEncryptionLoss(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferAdviseSink_Impl, - { + unsafe extern "system" fn ConfirmEncryptionLoss(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferAdviseSink_Impl::ConfirmEncryptionLoss(this, windows_core::from_raw_borrowed(&psisource)).into() } - unsafe extern "system" fn FileFailure(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pszitem: windows_core::PCWSTR, hrerror: windows_core::HRESULT, pszrename: windows_core::PWSTR, cchrename: u32) -> windows_core::HRESULT - where - Identity: ITransferAdviseSink_Impl, - { + unsafe extern "system" fn FileFailure(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pszitem: windows_core::PCWSTR, hrerror: windows_core::HRESULT, pszrename: windows_core::PWSTR, cchrename: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferAdviseSink_Impl::FileFailure(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute(&pszitem), core::mem::transmute_copy(&hrerror), core::mem::transmute(&pszrename), core::mem::transmute_copy(&cchrename)).into() } - unsafe extern "system" fn SubStreamFailure(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pszstreamname: windows_core::PCWSTR, hrerror: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITransferAdviseSink_Impl, - { + unsafe extern "system" fn SubStreamFailure(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pszstreamname: windows_core::PCWSTR, hrerror: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferAdviseSink_Impl::SubStreamFailure(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute(&pszstreamname), core::mem::transmute_copy(&hrerror)).into() } - unsafe extern "system" fn PropertyFailure(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pkey: *const PropertiesSystem::PROPERTYKEY, hrerror: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITransferAdviseSink_Impl, - { + unsafe extern "system" fn PropertyFailure(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, pkey: *const PropertiesSystem::PROPERTYKEY, hrerror: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferAdviseSink_Impl::PropertyFailure(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&hrerror)).into() } @@ -25409,21 +18974,15 @@ impl ITransferAdviseSink_Vtbl { iid == &::IID } } -pub trait ITransferDestination_Impl: Sized { +pub trait ITransferDestination_Impl: Sized + windows_core::IUnknownImpl { fn Advise(&self, psink: Option<&ITransferAdviseSink>) -> windows_core::Result; fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()>; fn CreateItem(&self, pszname: &windows_core::PCWSTR, dwattributes: u32, ullsize: u64, flags: u32, riiditem: *const windows_core::GUID, ppvitem: *mut *mut core::ffi::c_void, riidresources: *const windows_core::GUID, ppvresources: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITransferDestination {} impl ITransferDestination_Vtbl { - pub const fn new() -> ITransferDestination_Vtbl - where - Identity: ITransferDestination_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ITransferDestination_Impl, - { + pub const fn new() -> ITransferDestination_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransferDestination_Impl::Advise(this, windows_core::from_raw_borrowed(&psink)) { Ok(ok__) => { @@ -25433,17 +18992,11 @@ impl ITransferDestination_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ITransferDestination_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferDestination_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, dwattributes: u32, ullsize: u64, flags: u32, riiditem: *const windows_core::GUID, ppvitem: *mut *mut core::ffi::c_void, riidresources: *const windows_core::GUID, ppvresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferDestination_Impl, - { + unsafe extern "system" fn CreateItem(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, dwattributes: u32, ullsize: u64, flags: u32, riiditem: *const windows_core::GUID, ppvitem: *mut *mut core::ffi::c_void, riidresources: *const windows_core::GUID, ppvresources: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferDestination_Impl::CreateItem(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&ullsize), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&riiditem), core::mem::transmute_copy(&ppvitem), core::mem::transmute_copy(&riidresources), core::mem::transmute_copy(&ppvresources)).into() } @@ -25464,10 +19017,7 @@ pub trait ITransferMediumItem_Impl: Sized + IRelatedItem_Impl {} impl windows_core::RuntimeName for ITransferMediumItem {} #[cfg(feature = "Win32_UI_Shell_Common")] impl ITransferMediumItem_Vtbl { - pub const fn new() -> ITransferMediumItem_Vtbl - where - Identity: ITransferMediumItem_Impl, - { + pub const fn new() -> ITransferMediumItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -25475,7 +19025,7 @@ impl ITransferMediumItem_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -pub trait ITransferSource_Impl: Sized { +pub trait ITransferSource_Impl: Sized + windows_core::IUnknownImpl { fn Advise(&self, psink: Option<&ITransferAdviseSink>) -> windows_core::Result; fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()>; fn SetProperties(&self, pproparray: Option<&PropertiesSystem::IPropertyChangeArray>) -> windows_core::Result<()>; @@ -25494,14 +19044,8 @@ pub trait ITransferSource_Impl: Sized { impl windows_core::RuntimeName for ITransferSource {} #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ITransferSource_Vtbl { - pub const fn new() -> ITransferSource_Vtbl - where - Identity: ITransferSource_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + pub const fn new() -> ITransferSource_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransferSource_Impl::Advise(this, windows_core::from_raw_borrowed(&psink)) { Ok(ok__) => { @@ -25511,31 +19055,19 @@ impl ITransferSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferSource_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, pproparray: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn SetProperties(this: *mut core::ffi::c_void, pproparray: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferSource_Impl::SetProperties(this, windows_core::from_raw_borrowed(&pproparray)).into() } - unsafe extern "system" fn OpenItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, flags: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn OpenItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, flags: u32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferSource_Impl::OpenItem(this, windows_core::from_raw_borrowed(&psi), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } - unsafe extern "system" fn MoveItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, psiparentdst: *mut core::ffi::c_void, psznamedst: windows_core::PCWSTR, flags: u32, ppsinew: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn MoveItem(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, psiparentdst: *mut core::ffi::c_void, psznamedst: windows_core::PCWSTR, flags: u32, ppsinew: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransferSource_Impl::MoveItem(this, windows_core::from_raw_borrowed(&psi), windows_core::from_raw_borrowed(&psiparentdst), core::mem::transmute(&psznamedst), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -25545,10 +19077,7 @@ impl ITransferSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecycleItem(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psiparentdest: *mut core::ffi::c_void, flags: u32, ppsinewdest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn RecycleItem(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psiparentdest: *mut core::ffi::c_void, flags: u32, ppsinewdest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransferSource_Impl::RecycleItem(this, windows_core::from_raw_borrowed(&psisource), windows_core::from_raw_borrowed(&psiparentdest), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -25558,17 +19087,11 @@ impl ITransferSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, flags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferSource_Impl::RemoveItem(this, windows_core::from_raw_borrowed(&psisource), core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn RenameItem(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, flags: u32, ppsinewdest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn RenameItem(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, flags: u32, ppsinewdest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransferSource_Impl::RenameItem(this, windows_core::from_raw_borrowed(&psisource), core::mem::transmute(&psznewname), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -25578,10 +19101,7 @@ impl ITransferSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LinkItem(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psiparentdest: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, flags: u32, ppsinewdest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn LinkItem(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psiparentdest: *mut core::ffi::c_void, psznewname: windows_core::PCWSTR, flags: u32, ppsinewdest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransferSource_Impl::LinkItem(this, windows_core::from_raw_borrowed(&psisource), windows_core::from_raw_borrowed(&psiparentdest), core::mem::transmute(&psznewname), core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -25591,10 +19111,7 @@ impl ITransferSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ApplyPropertiesToItem(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, ppsinew: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn ApplyPropertiesToItem(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, ppsinew: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransferSource_Impl::ApplyPropertiesToItem(this, windows_core::from_raw_borrowed(&psisource)) { Ok(ok__) => { @@ -25604,10 +19121,7 @@ impl ITransferSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultDestinationName(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psiparentdest: *mut core::ffi::c_void, ppszdestinationname: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn GetDefaultDestinationName(this: *mut core::ffi::c_void, psisource: *mut core::ffi::c_void, psiparentdest: *mut core::ffi::c_void, ppszdestinationname: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransferSource_Impl::GetDefaultDestinationName(this, windows_core::from_raw_borrowed(&psisource), windows_core::from_raw_borrowed(&psiparentdest)) { Ok(ok__) => { @@ -25617,17 +19131,11 @@ impl ITransferSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnterFolder(this: *mut core::ffi::c_void, psichildfolderdest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn EnterFolder(this: *mut core::ffi::c_void, psichildfolderdest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferSource_Impl::EnterFolder(this, windows_core::from_raw_borrowed(&psichildfolderdest)).into() } - unsafe extern "system" fn LeaveFolder(this: *mut core::ffi::c_void, psichildfolderdest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITransferSource_Impl, - { + unsafe extern "system" fn LeaveFolder(this: *mut core::ffi::c_void, psichildfolderdest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransferSource_Impl::LeaveFolder(this, windows_core::from_raw_borrowed(&psichildfolderdest)).into() } @@ -25653,7 +19161,7 @@ impl ITransferSource_Vtbl { } } #[cfg(feature = "Win32_UI_Shell_Common")] -pub trait ITravelEntry_Impl: Sized { +pub trait ITravelEntry_Impl: Sized + windows_core::IUnknownImpl { fn Invoke(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Update(&self, punk: Option<&windows_core::IUnknown>, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetPidl(&self) -> windows_core::Result<*mut Common::ITEMIDLIST>; @@ -25662,28 +19170,16 @@ pub trait ITravelEntry_Impl: Sized { impl windows_core::RuntimeName for ITravelEntry {} #[cfg(feature = "Win32_UI_Shell_Common")] impl ITravelEntry_Vtbl { - pub const fn new() -> ITravelEntry_Vtbl - where - Identity: ITravelEntry_Impl, - { - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelEntry_Impl, - { + pub const fn new() -> ITravelEntry_Vtbl { + unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelEntry_Impl::Invoke(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITravelEntry_Impl, - { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelEntry_Impl::Update(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&fislocalanchor)).into() } - unsafe extern "system" fn GetPidl(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: ITravelEntry_Impl, - { + unsafe extern "system" fn GetPidl(this: *mut core::ffi::c_void, ppidl: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelEntry_Impl::GetPidl(this) { Ok(ok__) => { @@ -25705,7 +19201,7 @@ impl ITravelEntry_Vtbl { } } #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] -pub trait ITravelLog_Impl: Sized { +pub trait ITravelLog_Impl: Sized + windows_core::IUnknownImpl { fn AddEntry(&self, punk: Option<&windows_core::IUnknown>, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn UpdateEntry(&self, punk: Option<&windows_core::IUnknown>, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn UpdateExternal(&self, punk: Option<&windows_core::IUnknown>, punkhlbrowsecontext: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -25722,49 +19218,28 @@ pub trait ITravelLog_Impl: Sized { impl windows_core::RuntimeName for ITravelLog {} #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl ITravelLog_Vtbl { - pub const fn new() -> ITravelLog_Vtbl - where - Identity: ITravelLog_Impl, - { - unsafe extern "system" fn AddEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITravelLog_Impl, - { + pub const fn new() -> ITravelLog_Vtbl { + unsafe extern "system" fn AddEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::AddEntry(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&fislocalanchor)).into() } - unsafe extern "system" fn UpdateEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITravelLog_Impl, - { + unsafe extern "system" fn UpdateEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::UpdateEntry(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&fislocalanchor)).into() } - unsafe extern "system" fn UpdateExternal(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, punkhlbrowsecontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLog_Impl, - { + unsafe extern "system" fn UpdateExternal(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, punkhlbrowsecontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::UpdateExternal(this, windows_core::from_raw_borrowed(&punk), windows_core::from_raw_borrowed(&punkhlbrowsecontext)).into() } - unsafe extern "system" fn Travel(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, ioffset: i32) -> windows_core::HRESULT - where - Identity: ITravelLog_Impl, - { + unsafe extern "system" fn Travel(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, ioffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::Travel(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&ioffset)).into() } - unsafe extern "system" fn GetTravelEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, ioffset: i32, ppte: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLog_Impl, - { + unsafe extern "system" fn GetTravelEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, ioffset: i32, ppte: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::GetTravelEntry(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&ioffset), core::mem::transmute_copy(&ppte)).into() } - unsafe extern "system" fn FindTravelEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppte: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLog_Impl, - { + unsafe extern "system" fn FindTravelEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, ppte: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLog_Impl::FindTravelEntry(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&pidl)) { Ok(ok__) => { @@ -25774,24 +19249,15 @@ impl ITravelLog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetToolTipText(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, ioffset: i32, idstemplate: i32, pwztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT - where - Identity: ITravelLog_Impl, - { + unsafe extern "system" fn GetToolTipText(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, ioffset: i32, idstemplate: i32, pwztext: windows_core::PWSTR, cchtext: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::GetToolTipText(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&ioffset), core::mem::transmute_copy(&idstemplate), core::mem::transmute_copy(&pwztext), core::mem::transmute_copy(&cchtext)).into() } - unsafe extern "system" fn InsertMenuEntries(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, npos: i32, idfirst: i32, idlast: i32, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITravelLog_Impl, - { + unsafe extern "system" fn InsertMenuEntries(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, hmenu: super::WindowsAndMessaging::HMENU, npos: i32, idfirst: i32, idlast: i32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::InsertMenuEntries(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&hmenu), core::mem::transmute_copy(&npos), core::mem::transmute_copy(&idfirst), core::mem::transmute_copy(&idlast), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pptl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLog_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, pptl: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLog_Impl::Clone(this) { Ok(ok__) => { @@ -25801,17 +19267,11 @@ impl ITravelLog_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CountEntries(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> u32 - where - Identity: ITravelLog_Impl, - { + unsafe extern "system" fn CountEntries(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> u32 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::CountEntries(this, windows_core::from_raw_borrowed(&punk)) } - unsafe extern "system" fn Revert(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLog_Impl, - { + unsafe extern "system" fn Revert(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::Revert(this).into() } @@ -25835,7 +19295,7 @@ impl ITravelLog_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] -pub trait ITravelLogClient_Impl: Sized { +pub trait ITravelLogClient_Impl: Sized + windows_core::IUnknownImpl { fn FindWindowByIndex(&self, dwid: u32) -> windows_core::Result; fn GetWindowData(&self, pstream: Option<&super::super::System::Com::IStream>, pwindata: *mut WINDOWDATA) -> windows_core::Result<()>; fn LoadHistoryPosition(&self, pszurllocation: &windows_core::PCWSTR, dwposition: u32) -> windows_core::Result<()>; @@ -25844,14 +19304,8 @@ pub trait ITravelLogClient_Impl: Sized { impl windows_core::RuntimeName for ITravelLogClient {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl ITravelLogClient_Vtbl { - pub const fn new() -> ITravelLogClient_Vtbl - where - Identity: ITravelLogClient_Impl, - { - unsafe extern "system" fn FindWindowByIndex(this: *mut core::ffi::c_void, dwid: u32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLogClient_Impl, - { + pub const fn new() -> ITravelLogClient_Vtbl { + unsafe extern "system" fn FindWindowByIndex(this: *mut core::ffi::c_void, dwid: u32, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLogClient_Impl::FindWindowByIndex(this, core::mem::transmute_copy(&dwid)) { Ok(ok__) => { @@ -25861,17 +19315,11 @@ impl ITravelLogClient_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWindowData(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pwindata: *mut WINDOWDATA) -> windows_core::HRESULT - where - Identity: ITravelLogClient_Impl, - { + unsafe extern "system" fn GetWindowData(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pwindata: *mut WINDOWDATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLogClient_Impl::GetWindowData(this, windows_core::from_raw_borrowed(&pstream), core::mem::transmute_copy(&pwindata)).into() } - unsafe extern "system" fn LoadHistoryPosition(this: *mut core::ffi::c_void, pszurllocation: windows_core::PCWSTR, dwposition: u32) -> windows_core::HRESULT - where - Identity: ITravelLogClient_Impl, - { + unsafe extern "system" fn LoadHistoryPosition(this: *mut core::ffi::c_void, pszurllocation: windows_core::PCWSTR, dwposition: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLogClient_Impl::LoadHistoryPosition(this, core::mem::transmute(&pszurllocation), core::mem::transmute_copy(&dwposition)).into() } @@ -25886,20 +19334,14 @@ impl ITravelLogClient_Vtbl { iid == &::IID } } -pub trait ITravelLogEntry_Impl: Sized { +pub trait ITravelLogEntry_Impl: Sized + windows_core::IUnknownImpl { fn GetTitle(&self) -> windows_core::Result; fn GetURL(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITravelLogEntry {} impl ITravelLogEntry_Vtbl { - pub const fn new() -> ITravelLogEntry_Vtbl - where - Identity: ITravelLogEntry_Impl, - { - unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, ppsztitle: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITravelLogEntry_Impl, - { + pub const fn new() -> ITravelLogEntry_Vtbl { + unsafe extern "system" fn GetTitle(this: *mut core::ffi::c_void, ppsztitle: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLogEntry_Impl::GetTitle(this) { Ok(ok__) => { @@ -25909,10 +19351,7 @@ impl ITravelLogEntry_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITravelLogEntry_Impl, - { + unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLogEntry_Impl::GetURL(this) { Ok(ok__) => { @@ -25928,7 +19367,7 @@ impl ITravelLogEntry_Vtbl { iid == &::IID } } -pub trait ITravelLogStg_Impl: Sized { +pub trait ITravelLogStg_Impl: Sized + windows_core::IUnknownImpl { fn CreateEntry(&self, pszurl: &windows_core::PCWSTR, psztitle: &windows_core::PCWSTR, ptlerelativeto: Option<&ITravelLogEntry>, fprepend: super::super::Foundation::BOOL) -> windows_core::Result; fn TravelTo(&self, ptle: Option<&ITravelLogEntry>) -> windows_core::Result<()>; fn EnumEntries(&self, flags: TLENUMF) -> windows_core::Result; @@ -25939,14 +19378,8 @@ pub trait ITravelLogStg_Impl: Sized { } impl windows_core::RuntimeName for ITravelLogStg {} impl ITravelLogStg_Vtbl { - pub const fn new() -> ITravelLogStg_Vtbl - where - Identity: ITravelLogStg_Impl, - { - unsafe extern "system" fn CreateEntry(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, psztitle: windows_core::PCWSTR, ptlerelativeto: *mut core::ffi::c_void, fprepend: super::super::Foundation::BOOL, pptle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLogStg_Impl, - { + pub const fn new() -> ITravelLogStg_Vtbl { + unsafe extern "system" fn CreateEntry(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, psztitle: windows_core::PCWSTR, ptlerelativeto: *mut core::ffi::c_void, fprepend: super::super::Foundation::BOOL, pptle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLogStg_Impl::CreateEntry(this, core::mem::transmute(&pszurl), core::mem::transmute(&psztitle), windows_core::from_raw_borrowed(&ptlerelativeto), core::mem::transmute_copy(&fprepend)) { Ok(ok__) => { @@ -25956,17 +19389,11 @@ impl ITravelLogStg_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TravelTo(this: *mut core::ffi::c_void, ptle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLogStg_Impl, - { + unsafe extern "system" fn TravelTo(this: *mut core::ffi::c_void, ptle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLogStg_Impl::TravelTo(this, windows_core::from_raw_borrowed(&ptle)).into() } - unsafe extern "system" fn EnumEntries(this: *mut core::ffi::c_void, flags: TLENUMF, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLogStg_Impl, - { + unsafe extern "system" fn EnumEntries(this: *mut core::ffi::c_void, flags: TLENUMF, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLogStg_Impl::EnumEntries(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -25976,10 +19403,7 @@ impl ITravelLogStg_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindEntries(this: *mut core::ffi::c_void, flags: TLENUMF, pszurl: windows_core::PCWSTR, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLogStg_Impl, - { + unsafe extern "system" fn FindEntries(this: *mut core::ffi::c_void, flags: TLENUMF, pszurl: windows_core::PCWSTR, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLogStg_Impl::FindEntries(this, core::mem::transmute_copy(&flags), core::mem::transmute(&pszurl)) { Ok(ok__) => { @@ -25989,10 +19413,7 @@ impl ITravelLogStg_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, flags: TLENUMF, pcentries: *mut u32) -> windows_core::HRESULT - where - Identity: ITravelLogStg_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, flags: TLENUMF, pcentries: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLogStg_Impl::GetCount(this, core::mem::transmute_copy(&flags)) { Ok(ok__) => { @@ -26002,17 +19423,11 @@ impl ITravelLogStg_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveEntry(this: *mut core::ffi::c_void, ptle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLogStg_Impl, - { + unsafe extern "system" fn RemoveEntry(this: *mut core::ffi::c_void, ptle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLogStg_Impl::RemoveEntry(this, windows_core::from_raw_borrowed(&ptle)).into() } - unsafe extern "system" fn GetRelativeEntry(this: *mut core::ffi::c_void, ioffset: i32, ptle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITravelLogStg_Impl, - { + unsafe extern "system" fn GetRelativeEntry(this: *mut core::ffi::c_void, ioffset: i32, ptle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLogStg_Impl::GetRelativeEntry(this, core::mem::transmute_copy(&ioffset)) { Ok(ok__) => { @@ -26037,7 +19452,7 @@ impl ITravelLogStg_Vtbl { iid == &::IID } } -pub trait ITrayDeskBand_Impl: Sized { +pub trait ITrayDeskBand_Impl: Sized + windows_core::IUnknownImpl { fn ShowDeskBand(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()>; fn HideDeskBand(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()>; fn IsDeskBandShown(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()>; @@ -26045,35 +19460,20 @@ pub trait ITrayDeskBand_Impl: Sized { } impl windows_core::RuntimeName for ITrayDeskBand {} impl ITrayDeskBand_Vtbl { - pub const fn new() -> ITrayDeskBand_Vtbl - where - Identity: ITrayDeskBand_Impl, - { - unsafe extern "system" fn ShowDeskBand(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITrayDeskBand_Impl, - { + pub const fn new() -> ITrayDeskBand_Vtbl { + unsafe extern "system" fn ShowDeskBand(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrayDeskBand_Impl::ShowDeskBand(this, core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn HideDeskBand(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITrayDeskBand_Impl, - { + unsafe extern "system" fn HideDeskBand(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrayDeskBand_Impl::HideDeskBand(this, core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn IsDeskBandShown(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITrayDeskBand_Impl, - { + unsafe extern "system" fn IsDeskBandShown(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrayDeskBand_Impl::IsDeskBandShown(this, core::mem::transmute_copy(&clsid)).into() } - unsafe extern "system" fn DeskBandRegistrationChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITrayDeskBand_Impl, - { + unsafe extern "system" fn DeskBandRegistrationChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITrayDeskBand_Impl::DeskBandRegistrationChanged(this).into() } @@ -26089,19 +19489,13 @@ impl ITrayDeskBand_Vtbl { iid == &::IID } } -pub trait IURLSearchHook_Impl: Sized { +pub trait IURLSearchHook_Impl: Sized + windows_core::IUnknownImpl { fn Translate(&self, pwszsearchurl: windows_core::PWSTR, cchbuffersize: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IURLSearchHook {} impl IURLSearchHook_Vtbl { - pub const fn new() -> IURLSearchHook_Vtbl - where - Identity: IURLSearchHook_Impl, - { - unsafe extern "system" fn Translate(this: *mut core::ffi::c_void, pwszsearchurl: windows_core::PWSTR, cchbuffersize: u32) -> windows_core::HRESULT - where - Identity: IURLSearchHook_Impl, - { + pub const fn new() -> IURLSearchHook_Vtbl { + unsafe extern "system" fn Translate(this: *mut core::ffi::c_void, pwszsearchurl: windows_core::PWSTR, cchbuffersize: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IURLSearchHook_Impl::Translate(this, core::mem::transmute_copy(&pwszsearchurl), core::mem::transmute_copy(&cchbuffersize)).into() } @@ -26116,14 +19510,8 @@ pub trait IURLSearchHook2_Impl: Sized + IURLSearchHook_Impl { } impl windows_core::RuntimeName for IURLSearchHook2 {} impl IURLSearchHook2_Vtbl { - pub const fn new() -> IURLSearchHook2_Vtbl - where - Identity: IURLSearchHook2_Impl, - { - unsafe extern "system" fn TranslateWithSearchContext(this: *mut core::ffi::c_void, pwszsearchurl: windows_core::PWSTR, cchbuffersize: u32, psearchcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IURLSearchHook2_Impl, - { + pub const fn new() -> IURLSearchHook2_Vtbl { + unsafe extern "system" fn TranslateWithSearchContext(this: *mut core::ffi::c_void, pwszsearchurl: windows_core::PWSTR, cchbuffersize: u32, psearchcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IURLSearchHook2_Impl::TranslateWithSearchContext(this, core::mem::transmute_copy(&pwszsearchurl), core::mem::transmute_copy(&cchbuffersize), windows_core::from_raw_borrowed(&psearchcontext)).into() } @@ -26133,28 +19521,19 @@ impl IURLSearchHook2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IUniformResourceLocatorA_Impl: Sized { +pub trait IUniformResourceLocatorA_Impl: Sized + windows_core::IUnknownImpl { fn SetURL(&self, pcszurl: &windows_core::PCSTR, dwinflags: u32) -> windows_core::Result<()>; fn GetURL(&self) -> windows_core::Result; fn InvokeCommand(&self, purlici: *mut URLINVOKECOMMANDINFOA) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUniformResourceLocatorA {} impl IUniformResourceLocatorA_Vtbl { - pub const fn new() -> IUniformResourceLocatorA_Vtbl - where - Identity: IUniformResourceLocatorA_Impl, - { - unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, pcszurl: windows_core::PCSTR, dwinflags: u32) -> windows_core::HRESULT - where - Identity: IUniformResourceLocatorA_Impl, - { + pub const fn new() -> IUniformResourceLocatorA_Vtbl { + unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, pcszurl: windows_core::PCSTR, dwinflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUniformResourceLocatorA_Impl::SetURL(this, core::mem::transmute(&pcszurl), core::mem::transmute_copy(&dwinflags)).into() } - unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PSTR) -> windows_core::HRESULT - where - Identity: IUniformResourceLocatorA_Impl, - { + unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUniformResourceLocatorA_Impl::GetURL(this) { Ok(ok__) => { @@ -26164,10 +19543,7 @@ impl IUniformResourceLocatorA_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InvokeCommand(this: *mut core::ffi::c_void, purlici: *mut URLINVOKECOMMANDINFOA) -> windows_core::HRESULT - where - Identity: IUniformResourceLocatorA_Impl, - { + unsafe extern "system" fn InvokeCommand(this: *mut core::ffi::c_void, purlici: *mut URLINVOKECOMMANDINFOA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUniformResourceLocatorA_Impl::InvokeCommand(this, core::mem::transmute_copy(&purlici)).into() } @@ -26182,28 +19558,19 @@ impl IUniformResourceLocatorA_Vtbl { iid == &::IID } } -pub trait IUniformResourceLocatorW_Impl: Sized { +pub trait IUniformResourceLocatorW_Impl: Sized + windows_core::IUnknownImpl { fn SetURL(&self, pcszurl: &windows_core::PCWSTR, dwinflags: u32) -> windows_core::Result<()>; fn GetURL(&self) -> windows_core::Result; fn InvokeCommand(&self, purlici: *mut URLINVOKECOMMANDINFOW) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUniformResourceLocatorW {} impl IUniformResourceLocatorW_Vtbl { - pub const fn new() -> IUniformResourceLocatorW_Vtbl - where - Identity: IUniformResourceLocatorW_Impl, - { - unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, pcszurl: windows_core::PCWSTR, dwinflags: u32) -> windows_core::HRESULT - where - Identity: IUniformResourceLocatorW_Impl, - { + pub const fn new() -> IUniformResourceLocatorW_Vtbl { + unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, pcszurl: windows_core::PCWSTR, dwinflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUniformResourceLocatorW_Impl::SetURL(this, core::mem::transmute(&pcszurl), core::mem::transmute_copy(&dwinflags)).into() } - unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IUniformResourceLocatorW_Impl, - { + unsafe extern "system" fn GetURL(this: *mut core::ffi::c_void, ppszurl: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUniformResourceLocatorW_Impl::GetURL(this) { Ok(ok__) => { @@ -26213,10 +19580,7 @@ impl IUniformResourceLocatorW_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InvokeCommand(this: *mut core::ffi::c_void, purlici: *mut URLINVOKECOMMANDINFOW) -> windows_core::HRESULT - where - Identity: IUniformResourceLocatorW_Impl, - { + unsafe extern "system" fn InvokeCommand(this: *mut core::ffi::c_void, purlici: *mut URLINVOKECOMMANDINFOW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUniformResourceLocatorW_Impl::InvokeCommand(this, core::mem::transmute_copy(&purlici)).into() } @@ -26232,21 +19596,15 @@ impl IUniformResourceLocatorW_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] -pub trait IUpdateIDList_Impl: Sized { +pub trait IUpdateIDList_Impl: Sized + windows_core::IUnknownImpl { fn Update(&self, pbc: Option<&super::super::System::Com::IBindCtx>, pidlin: *const Common::ITEMIDLIST) -> windows_core::Result<*mut Common::ITEMIDLIST>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl windows_core::RuntimeName for IUpdateIDList {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] impl IUpdateIDList_Vtbl { - pub const fn new() -> IUpdateIDList_Vtbl - where - Identity: IUpdateIDList_Impl, - { - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pidlin: *const Common::ITEMIDLIST, ppidlout: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT - where - Identity: IUpdateIDList_Impl, - { + pub const fn new() -> IUpdateIDList_Vtbl { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, pidlin: *const Common::ITEMIDLIST, ppidlout: *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUpdateIDList_Impl::Update(this, windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&pidlin)) { Ok(ok__) => { @@ -26268,29 +19626,20 @@ pub trait IUseToBrowseItem_Impl: Sized + IRelatedItem_Impl {} impl windows_core::RuntimeName for IUseToBrowseItem {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IUseToBrowseItem_Vtbl { - pub const fn new() -> IUseToBrowseItem_Vtbl - where - Identity: IUseToBrowseItem_Impl, - { + pub const fn new() -> IUseToBrowseItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IUserAccountChangeCallback_Impl: Sized { +pub trait IUserAccountChangeCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnPictureChange(&self, pszusername: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUserAccountChangeCallback {} impl IUserAccountChangeCallback_Vtbl { - pub const fn new() -> IUserAccountChangeCallback_Vtbl - where - Identity: IUserAccountChangeCallback_Impl, - { - unsafe extern "system" fn OnPictureChange(this: *mut core::ffi::c_void, pszusername: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUserAccountChangeCallback_Impl, - { + pub const fn new() -> IUserAccountChangeCallback_Vtbl { + unsafe extern "system" fn OnPictureChange(this: *mut core::ffi::c_void, pszusername: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserAccountChangeCallback_Impl::OnPictureChange(this, core::mem::transmute(&pszusername)).into() } @@ -26301,7 +19650,7 @@ impl IUserAccountChangeCallback_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IUserNotification_Impl: Sized { +pub trait IUserNotification_Impl: Sized + windows_core::IUnknownImpl { fn SetBalloonInfo(&self, psztitle: &windows_core::PCWSTR, psztext: &windows_core::PCWSTR, dwinfoflags: u32) -> windows_core::Result<()>; fn SetBalloonRetry(&self, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> windows_core::Result<()>; fn SetIconInfo(&self, hicon: super::WindowsAndMessaging::HICON, psztooltip: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -26312,42 +19661,24 @@ pub trait IUserNotification_Impl: Sized { impl windows_core::RuntimeName for IUserNotification {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IUserNotification_Vtbl { - pub const fn new() -> IUserNotification_Vtbl - where - Identity: IUserNotification_Impl, - { - unsafe extern "system" fn SetBalloonInfo(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR, psztext: windows_core::PCWSTR, dwinfoflags: u32) -> windows_core::HRESULT - where - Identity: IUserNotification_Impl, - { + pub const fn new() -> IUserNotification_Vtbl { + unsafe extern "system" fn SetBalloonInfo(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR, psztext: windows_core::PCWSTR, dwinfoflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotification_Impl::SetBalloonInfo(this, core::mem::transmute(&psztitle), core::mem::transmute(&psztext), core::mem::transmute_copy(&dwinfoflags)).into() } - unsafe extern "system" fn SetBalloonRetry(this: *mut core::ffi::c_void, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> windows_core::HRESULT - where - Identity: IUserNotification_Impl, - { + unsafe extern "system" fn SetBalloonRetry(this: *mut core::ffi::c_void, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotification_Impl::SetBalloonRetry(this, core::mem::transmute_copy(&dwshowtime), core::mem::transmute_copy(&dwinterval), core::mem::transmute_copy(&cretrycount)).into() } - unsafe extern "system" fn SetIconInfo(this: *mut core::ffi::c_void, hicon: super::WindowsAndMessaging::HICON, psztooltip: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUserNotification_Impl, - { + unsafe extern "system" fn SetIconInfo(this: *mut core::ffi::c_void, hicon: super::WindowsAndMessaging::HICON, psztooltip: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotification_Impl::SetIconInfo(this, core::mem::transmute_copy(&hicon), core::mem::transmute(&psztooltip)).into() } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, pqc: *mut core::ffi::c_void, dwcontinuepollinterval: u32) -> windows_core::HRESULT - where - Identity: IUserNotification_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, pqc: *mut core::ffi::c_void, dwcontinuepollinterval: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotification_Impl::Show(this, windows_core::from_raw_borrowed(&pqc), core::mem::transmute_copy(&dwcontinuepollinterval)).into() } - unsafe extern "system" fn PlaySound(this: *mut core::ffi::c_void, pszsoundname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUserNotification_Impl, - { + unsafe extern "system" fn PlaySound(this: *mut core::ffi::c_void, pszsoundname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotification_Impl::PlaySound(this, core::mem::transmute(&pszsoundname)).into() } @@ -26365,7 +19696,7 @@ impl IUserNotification_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait IUserNotification2_Impl: Sized { +pub trait IUserNotification2_Impl: Sized + windows_core::IUnknownImpl { fn SetBalloonInfo(&self, psztitle: &windows_core::PCWSTR, psztext: &windows_core::PCWSTR, dwinfoflags: u32) -> windows_core::Result<()>; fn SetBalloonRetry(&self, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> windows_core::Result<()>; fn SetIconInfo(&self, hicon: super::WindowsAndMessaging::HICON, psztooltip: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -26376,42 +19707,24 @@ pub trait IUserNotification2_Impl: Sized { impl windows_core::RuntimeName for IUserNotification2 {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IUserNotification2_Vtbl { - pub const fn new() -> IUserNotification2_Vtbl - where - Identity: IUserNotification2_Impl, - { - unsafe extern "system" fn SetBalloonInfo(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR, psztext: windows_core::PCWSTR, dwinfoflags: u32) -> windows_core::HRESULT - where - Identity: IUserNotification2_Impl, - { + pub const fn new() -> IUserNotification2_Vtbl { + unsafe extern "system" fn SetBalloonInfo(this: *mut core::ffi::c_void, psztitle: windows_core::PCWSTR, psztext: windows_core::PCWSTR, dwinfoflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotification2_Impl::SetBalloonInfo(this, core::mem::transmute(&psztitle), core::mem::transmute(&psztext), core::mem::transmute_copy(&dwinfoflags)).into() } - unsafe extern "system" fn SetBalloonRetry(this: *mut core::ffi::c_void, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> windows_core::HRESULT - where - Identity: IUserNotification2_Impl, - { + unsafe extern "system" fn SetBalloonRetry(this: *mut core::ffi::c_void, dwshowtime: u32, dwinterval: u32, cretrycount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotification2_Impl::SetBalloonRetry(this, core::mem::transmute_copy(&dwshowtime), core::mem::transmute_copy(&dwinterval), core::mem::transmute_copy(&cretrycount)).into() } - unsafe extern "system" fn SetIconInfo(this: *mut core::ffi::c_void, hicon: super::WindowsAndMessaging::HICON, psztooltip: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUserNotification2_Impl, - { + unsafe extern "system" fn SetIconInfo(this: *mut core::ffi::c_void, hicon: super::WindowsAndMessaging::HICON, psztooltip: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotification2_Impl::SetIconInfo(this, core::mem::transmute_copy(&hicon), core::mem::transmute(&psztooltip)).into() } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, pqc: *mut core::ffi::c_void, dwcontinuepollinterval: u32, psink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUserNotification2_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, pqc: *mut core::ffi::c_void, dwcontinuepollinterval: u32, psink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotification2_Impl::Show(this, windows_core::from_raw_borrowed(&pqc), core::mem::transmute_copy(&dwcontinuepollinterval), windows_core::from_raw_borrowed(&psink)).into() } - unsafe extern "system" fn PlaySound(this: *mut core::ffi::c_void, pszsoundname: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IUserNotification2_Impl, - { + unsafe extern "system" fn PlaySound(this: *mut core::ffi::c_void, pszsoundname: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotification2_Impl::PlaySound(this, core::mem::transmute(&pszsoundname)).into() } @@ -26428,35 +19741,23 @@ impl IUserNotification2_Vtbl { iid == &::IID } } -pub trait IUserNotificationCallback_Impl: Sized { +pub trait IUserNotificationCallback_Impl: Sized + windows_core::IUnknownImpl { fn OnBalloonUserClick(&self, pt: *const super::super::Foundation::POINT) -> windows_core::Result<()>; fn OnLeftClick(&self, pt: *const super::super::Foundation::POINT) -> windows_core::Result<()>; fn OnContextMenu(&self, pt: *const super::super::Foundation::POINT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IUserNotificationCallback {} impl IUserNotificationCallback_Vtbl { - pub const fn new() -> IUserNotificationCallback_Vtbl - where - Identity: IUserNotificationCallback_Impl, - { - unsafe extern "system" fn OnBalloonUserClick(this: *mut core::ffi::c_void, pt: *const super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IUserNotificationCallback_Impl, - { + pub const fn new() -> IUserNotificationCallback_Vtbl { + unsafe extern "system" fn OnBalloonUserClick(this: *mut core::ffi::c_void, pt: *const super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotificationCallback_Impl::OnBalloonUserClick(this, core::mem::transmute_copy(&pt)).into() } - unsafe extern "system" fn OnLeftClick(this: *mut core::ffi::c_void, pt: *const super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IUserNotificationCallback_Impl, - { + unsafe extern "system" fn OnLeftClick(this: *mut core::ffi::c_void, pt: *const super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotificationCallback_Impl::OnLeftClick(this, core::mem::transmute_copy(&pt)).into() } - unsafe extern "system" fn OnContextMenu(this: *mut core::ffi::c_void, pt: *const super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IUserNotificationCallback_Impl, - { + unsafe extern "system" fn OnContextMenu(this: *mut core::ffi::c_void, pt: *const super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUserNotificationCallback_Impl::OnContextMenu(this, core::mem::transmute_copy(&pt)).into() } @@ -26477,31 +19778,22 @@ pub trait IViewStateIdentityItem_Impl: Sized + IRelatedItem_Impl {} impl windows_core::RuntimeName for IViewStateIdentityItem {} #[cfg(feature = "Win32_UI_Shell_Common")] impl IViewStateIdentityItem_Vtbl { - pub const fn new() -> IViewStateIdentityItem_Vtbl - where - Identity: IViewStateIdentityItem_Impl, - { + pub const fn new() -> IViewStateIdentityItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IVirtualDesktopManager_Impl: Sized { +pub trait IVirtualDesktopManager_Impl: Sized + windows_core::IUnknownImpl { fn IsWindowOnCurrentVirtualDesktop(&self, toplevelwindow: super::super::Foundation::HWND) -> windows_core::Result; fn GetWindowDesktopId(&self, toplevelwindow: super::super::Foundation::HWND) -> windows_core::Result; fn MoveWindowToDesktop(&self, toplevelwindow: super::super::Foundation::HWND, desktopid: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IVirtualDesktopManager {} impl IVirtualDesktopManager_Vtbl { - pub const fn new() -> IVirtualDesktopManager_Vtbl - where - Identity: IVirtualDesktopManager_Impl, - { - unsafe extern "system" fn IsWindowOnCurrentVirtualDesktop(this: *mut core::ffi::c_void, toplevelwindow: super::super::Foundation::HWND, oncurrentdesktop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVirtualDesktopManager_Impl, - { + pub const fn new() -> IVirtualDesktopManager_Vtbl { + unsafe extern "system" fn IsWindowOnCurrentVirtualDesktop(this: *mut core::ffi::c_void, toplevelwindow: super::super::Foundation::HWND, oncurrentdesktop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVirtualDesktopManager_Impl::IsWindowOnCurrentVirtualDesktop(this, core::mem::transmute_copy(&toplevelwindow)) { Ok(ok__) => { @@ -26511,10 +19803,7 @@ impl IVirtualDesktopManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWindowDesktopId(this: *mut core::ffi::c_void, toplevelwindow: super::super::Foundation::HWND, desktopid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVirtualDesktopManager_Impl, - { + unsafe extern "system" fn GetWindowDesktopId(this: *mut core::ffi::c_void, toplevelwindow: super::super::Foundation::HWND, desktopid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVirtualDesktopManager_Impl::GetWindowDesktopId(this, core::mem::transmute_copy(&toplevelwindow)) { Ok(ok__) => { @@ -26524,10 +19813,7 @@ impl IVirtualDesktopManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MoveWindowToDesktop(this: *mut core::ffi::c_void, toplevelwindow: super::super::Foundation::HWND, desktopid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVirtualDesktopManager_Impl, - { + unsafe extern "system" fn MoveWindowToDesktop(this: *mut core::ffi::c_void, toplevelwindow: super::super::Foundation::HWND, desktopid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVirtualDesktopManager_Impl::MoveWindowToDesktop(this, core::mem::transmute_copy(&toplevelwindow), core::mem::transmute_copy(&desktopid)).into() } @@ -26543,7 +19829,7 @@ impl IVirtualDesktopManager_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IVisualProperties_Impl: Sized { +pub trait IVisualProperties_Impl: Sized + windows_core::IUnknownImpl { fn SetWatermark(&self, hbmp: super::super::Graphics::Gdi::HBITMAP, vpwf: VPWATERMARKFLAGS) -> windows_core::Result<()>; fn SetColor(&self, vpcf: VPCOLORFLAGS, cr: super::super::Foundation::COLORREF) -> windows_core::Result<()>; fn GetColor(&self, vpcf: VPCOLORFLAGS) -> windows_core::Result; @@ -26557,28 +19843,16 @@ pub trait IVisualProperties_Impl: Sized { impl windows_core::RuntimeName for IVisualProperties {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IVisualProperties_Vtbl { - pub const fn new() -> IVisualProperties_Vtbl - where - Identity: IVisualProperties_Impl, - { - unsafe extern "system" fn SetWatermark(this: *mut core::ffi::c_void, hbmp: super::super::Graphics::Gdi::HBITMAP, vpwf: VPWATERMARKFLAGS) -> windows_core::HRESULT - where - Identity: IVisualProperties_Impl, - { + pub const fn new() -> IVisualProperties_Vtbl { + unsafe extern "system" fn SetWatermark(this: *mut core::ffi::c_void, hbmp: super::super::Graphics::Gdi::HBITMAP, vpwf: VPWATERMARKFLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVisualProperties_Impl::SetWatermark(this, core::mem::transmute_copy(&hbmp), core::mem::transmute_copy(&vpwf)).into() } - unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, vpcf: VPCOLORFLAGS, cr: super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVisualProperties_Impl, - { + unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, vpcf: VPCOLORFLAGS, cr: super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVisualProperties_Impl::SetColor(this, core::mem::transmute_copy(&vpcf), core::mem::transmute_copy(&cr)).into() } - unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, vpcf: VPCOLORFLAGS, pcr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT - where - Identity: IVisualProperties_Impl, - { + unsafe extern "system" fn GetColor(this: *mut core::ffi::c_void, vpcf: VPCOLORFLAGS, pcr: *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVisualProperties_Impl::GetColor(this, core::mem::transmute_copy(&vpcf)) { Ok(ok__) => { @@ -26588,17 +19862,11 @@ impl IVisualProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetItemHeight(this: *mut core::ffi::c_void, cyiteminpixels: i32) -> windows_core::HRESULT - where - Identity: IVisualProperties_Impl, - { + unsafe extern "system" fn SetItemHeight(this: *mut core::ffi::c_void, cyiteminpixels: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVisualProperties_Impl::SetItemHeight(this, core::mem::transmute_copy(&cyiteminpixels)).into() } - unsafe extern "system" fn GetItemHeight(this: *mut core::ffi::c_void, cyiteminpixels: *mut i32) -> windows_core::HRESULT - where - Identity: IVisualProperties_Impl, - { + unsafe extern "system" fn GetItemHeight(this: *mut core::ffi::c_void, cyiteminpixels: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVisualProperties_Impl::GetItemHeight(this) { Ok(ok__) => { @@ -26608,24 +19876,15 @@ impl IVisualProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFont(this: *mut core::ffi::c_void, plf: *const super::super::Graphics::Gdi::LOGFONTW, bredraw: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IVisualProperties_Impl, - { + unsafe extern "system" fn SetFont(this: *mut core::ffi::c_void, plf: *const super::super::Graphics::Gdi::LOGFONTW, bredraw: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVisualProperties_Impl::SetFont(this, core::mem::transmute_copy(&plf), core::mem::transmute_copy(&bredraw)).into() } - unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void, plf: *mut super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT - where - Identity: IVisualProperties_Impl, - { + unsafe extern "system" fn GetFont(this: *mut core::ffi::c_void, plf: *mut super::super::Graphics::Gdi::LOGFONTW) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVisualProperties_Impl::GetFont(this, core::mem::transmute_copy(&plf)).into() } - unsafe extern "system" fn SetTheme(this: *mut core::ffi::c_void, pszsubappname: windows_core::PCWSTR, pszsubidlist: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IVisualProperties_Impl, - { + unsafe extern "system" fn SetTheme(this: *mut core::ffi::c_void, pszsubappname: windows_core::PCWSTR, pszsubidlist: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVisualProperties_Impl::SetTheme(this, core::mem::transmute(&pszsubappname), core::mem::transmute(&pszsubidlist)).into() } @@ -26677,70 +19936,40 @@ pub trait IWebBrowser_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IWebBrowser {} #[cfg(feature = "Win32_System_Com")] impl IWebBrowser_Vtbl { - pub const fn new() -> IWebBrowser_Vtbl - where - Identity: IWebBrowser_Impl, - { - unsafe extern "system" fn GoBack(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + pub const fn new() -> IWebBrowser_Vtbl { + unsafe extern "system" fn GoBack(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::GoBack(this).into() } - unsafe extern "system" fn GoForward(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn GoForward(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::GoForward(this).into() } - unsafe extern "system" fn GoHome(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn GoHome(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::GoHome(this).into() } - unsafe extern "system" fn GoSearch(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn GoSearch(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::GoSearch(this).into() } - unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, flags: *const core::mem::MaybeUninit, targetframename: *const core::mem::MaybeUninit, postdata: *const core::mem::MaybeUninit, headers: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, url: core::mem::MaybeUninit, flags: *const core::mem::MaybeUninit, targetframename: *const core::mem::MaybeUninit, postdata: *const core::mem::MaybeUninit, headers: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::Navigate(this, 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() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::Refresh(this).into() } - unsafe extern "system" fn Refresh2(this: *mut core::ffi::c_void, level: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Refresh2(this: *mut core::ffi::c_void, level: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::Refresh2(this, core::mem::transmute_copy(&level)).into() } - unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Stop(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::Stop(this).into() } - unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Application(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::Application(this) { Ok(ok__) => { @@ -26750,10 +19979,7 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::Parent(this) { Ok(ok__) => { @@ -26763,10 +19989,7 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Container(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Container(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::Container(this) { Ok(ok__) => { @@ -26776,10 +19999,7 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Document(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Document(this: *mut core::ffi::c_void, ppdisp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::Document(this) { Ok(ok__) => { @@ -26789,10 +20009,7 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TopLevelContainer(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn TopLevelContainer(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::TopLevelContainer(this) { Ok(ok__) => { @@ -26802,10 +20019,7 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Type(this: *mut core::ffi::c_void, r#type: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::Type(this) { Ok(ok__) => { @@ -26815,10 +20029,7 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Left(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Left(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::Left(this) { Ok(ok__) => { @@ -26828,17 +20039,11 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, left: i32) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, left: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::SetLeft(this, core::mem::transmute_copy(&left)).into() } - unsafe extern "system" fn Top(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Top(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::Top(this) { Ok(ok__) => { @@ -26848,17 +20053,11 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, top: i32) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, top: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::SetTop(this, core::mem::transmute_copy(&top)).into() } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::Width(this) { Ok(ok__) => { @@ -26868,17 +20067,11 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, width: i32) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, width: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::SetWidth(this, core::mem::transmute_copy(&width)).into() } - unsafe extern "system" fn Height(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Height(this: *mut core::ffi::c_void, pl: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::Height(this) { Ok(ok__) => { @@ -26888,17 +20081,11 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHeight(this: *mut core::ffi::c_void, height: i32) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn SetHeight(this: *mut core::ffi::c_void, height: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser_Impl::SetHeight(this, core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn LocationName(this: *mut core::ffi::c_void, locationname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn LocationName(this: *mut core::ffi::c_void, locationname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::LocationName(this) { Ok(ok__) => { @@ -26908,10 +20095,7 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LocationURL(this: *mut core::ffi::c_void, locationurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn LocationURL(this: *mut core::ffi::c_void, locationurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::LocationURL(this) { Ok(ok__) => { @@ -26921,10 +20105,7 @@ impl IWebBrowser_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Busy(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser_Impl, - { + unsafe extern "system" fn Busy(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser_Impl::Busy(this) { Ok(ok__) => { @@ -26993,21 +20174,12 @@ pub trait IWebBrowser2_Impl: Sized + IWebBrowserApp_Impl { impl windows_core::RuntimeName for IWebBrowser2 {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWebBrowser2_Vtbl { - pub const fn new() -> IWebBrowser2_Vtbl - where - Identity: IWebBrowser2_Impl, - { - unsafe extern "system" fn Navigate2(this: *mut core::ffi::c_void, url: *const core::mem::MaybeUninit, flags: *const core::mem::MaybeUninit, targetframename: *const core::mem::MaybeUninit, postdata: *const core::mem::MaybeUninit, headers: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + pub const fn new() -> IWebBrowser2_Vtbl { + unsafe extern "system" fn Navigate2(this: *mut core::ffi::c_void, url: *const core::mem::MaybeUninit, flags: *const core::mem::MaybeUninit, targetframename: *const core::mem::MaybeUninit, postdata: *const core::mem::MaybeUninit, headers: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser2_Impl::Navigate2(this, core::mem::transmute_copy(&url), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&targetframename), core::mem::transmute_copy(&postdata), core::mem::transmute_copy(&headers)).into() } - unsafe extern "system" fn QueryStatusWB(this: *mut core::ffi::c_void, cmdid: super::super::System::Ole::OLECMDID, pcmdf: *mut super::super::System::Ole::OLECMDF) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn QueryStatusWB(this: *mut core::ffi::c_void, cmdid: super::super::System::Ole::OLECMDID, pcmdf: *mut super::super::System::Ole::OLECMDF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser2_Impl::QueryStatusWB(this, core::mem::transmute_copy(&cmdid)) { Ok(ok__) => { @@ -27017,24 +20189,15 @@ impl IWebBrowser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExecWB(this: *mut core::ffi::c_void, cmdid: super::super::System::Ole::OLECMDID, cmdexecopt: super::super::System::Ole::OLECMDEXECOPT, pvain: *const core::mem::MaybeUninit, pvaout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn ExecWB(this: *mut core::ffi::c_void, cmdid: super::super::System::Ole::OLECMDID, cmdexecopt: super::super::System::Ole::OLECMDEXECOPT, pvain: *const core::mem::MaybeUninit, pvaout: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser2_Impl::ExecWB(this, core::mem::transmute_copy(&cmdid), core::mem::transmute_copy(&cmdexecopt), core::mem::transmute_copy(&pvain), core::mem::transmute_copy(&pvaout)).into() } - unsafe extern "system" fn ShowBrowserBar(this: *mut core::ffi::c_void, pvaclsid: *const core::mem::MaybeUninit, pvarshow: *const core::mem::MaybeUninit, pvarsize: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn ShowBrowserBar(this: *mut core::ffi::c_void, pvaclsid: *const core::mem::MaybeUninit, pvarshow: *const core::mem::MaybeUninit, pvarsize: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser2_Impl::ShowBrowserBar(this, core::mem::transmute_copy(&pvaclsid), core::mem::transmute_copy(&pvarshow), core::mem::transmute_copy(&pvarsize)).into() } - unsafe extern "system" fn ReadyState(this: *mut core::ffi::c_void, plreadystate: *mut super::super::System::Ole::READYSTATE) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn ReadyState(this: *mut core::ffi::c_void, plreadystate: *mut super::super::System::Ole::READYSTATE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser2_Impl::ReadyState(this) { Ok(ok__) => { @@ -27044,10 +20207,7 @@ impl IWebBrowser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Offline(this: *mut core::ffi::c_void, pboffline: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn Offline(this: *mut core::ffi::c_void, pboffline: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser2_Impl::Offline(this) { Ok(ok__) => { @@ -27057,17 +20217,11 @@ impl IWebBrowser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetOffline(this: *mut core::ffi::c_void, boffline: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn SetOffline(this: *mut core::ffi::c_void, boffline: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser2_Impl::SetOffline(this, core::mem::transmute_copy(&boffline)).into() } - unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pbsilent: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn Silent(this: *mut core::ffi::c_void, pbsilent: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser2_Impl::Silent(this) { Ok(ok__) => { @@ -27077,17 +20231,11 @@ impl IWebBrowser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, bsilent: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn SetSilent(this: *mut core::ffi::c_void, bsilent: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser2_Impl::SetSilent(this, core::mem::transmute_copy(&bsilent)).into() } - unsafe extern "system" fn RegisterAsBrowser(this: *mut core::ffi::c_void, pbregister: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn RegisterAsBrowser(this: *mut core::ffi::c_void, pbregister: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser2_Impl::RegisterAsBrowser(this) { Ok(ok__) => { @@ -27097,17 +20245,11 @@ impl IWebBrowser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRegisterAsBrowser(this: *mut core::ffi::c_void, bregister: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn SetRegisterAsBrowser(this: *mut core::ffi::c_void, bregister: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser2_Impl::SetRegisterAsBrowser(this, core::mem::transmute_copy(&bregister)).into() } - unsafe extern "system" fn RegisterAsDropTarget(this: *mut core::ffi::c_void, pbregister: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn RegisterAsDropTarget(this: *mut core::ffi::c_void, pbregister: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser2_Impl::RegisterAsDropTarget(this) { Ok(ok__) => { @@ -27117,17 +20259,11 @@ impl IWebBrowser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRegisterAsDropTarget(this: *mut core::ffi::c_void, bregister: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn SetRegisterAsDropTarget(this: *mut core::ffi::c_void, bregister: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser2_Impl::SetRegisterAsDropTarget(this, core::mem::transmute_copy(&bregister)).into() } - unsafe extern "system" fn TheaterMode(this: *mut core::ffi::c_void, pbregister: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn TheaterMode(this: *mut core::ffi::c_void, pbregister: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser2_Impl::TheaterMode(this) { Ok(ok__) => { @@ -27137,17 +20273,11 @@ impl IWebBrowser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTheaterMode(this: *mut core::ffi::c_void, bregister: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn SetTheaterMode(this: *mut core::ffi::c_void, bregister: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser2_Impl::SetTheaterMode(this, core::mem::transmute_copy(&bregister)).into() } - unsafe extern "system" fn AddressBar(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn AddressBar(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser2_Impl::AddressBar(this) { Ok(ok__) => { @@ -27157,17 +20287,11 @@ impl IWebBrowser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAddressBar(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn SetAddressBar(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser2_Impl::SetAddressBar(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Resizable(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn Resizable(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowser2_Impl::Resizable(this) { Ok(ok__) => { @@ -27177,10 +20301,7 @@ impl IWebBrowser2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetResizable(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowser2_Impl, - { + unsafe extern "system" fn SetResizable(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowser2_Impl::SetResizable(this, core::mem::transmute_copy(&value)).into() } @@ -27238,35 +20359,20 @@ pub trait IWebBrowserApp_Impl: Sized + IWebBrowser_Impl { impl windows_core::RuntimeName for IWebBrowserApp {} #[cfg(feature = "Win32_System_Com")] impl IWebBrowserApp_Vtbl { - pub const fn new() -> IWebBrowserApp_Vtbl - where - Identity: IWebBrowserApp_Impl, - { - unsafe extern "system" fn Quit(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + pub const fn new() -> IWebBrowserApp_Vtbl { + unsafe extern "system" fn Quit(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserApp_Impl::Quit(this).into() } - unsafe extern "system" fn ClientToWindow(this: *mut core::ffi::c_void, pcx: *mut i32, pcy: *mut i32) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn ClientToWindow(this: *mut core::ffi::c_void, pcx: *mut i32, pcy: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserApp_Impl::ClientToWindow(this, core::mem::transmute_copy(&pcx), core::mem::transmute_copy(&pcy)).into() } - unsafe extern "system" fn PutProperty(this: *mut core::ffi::c_void, property: core::mem::MaybeUninit, vtvalue: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn PutProperty(this: *mut core::ffi::c_void, property: core::mem::MaybeUninit, vtvalue: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserApp_Impl::PutProperty(this, core::mem::transmute(&property), core::mem::transmute(&vtvalue)).into() } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, property: core::mem::MaybeUninit, pvtvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, property: core::mem::MaybeUninit, pvtvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::GetProperty(this, core::mem::transmute(&property)) { Ok(ok__) => { @@ -27276,10 +20382,7 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::Name(this) { Ok(ok__) => { @@ -27289,10 +20392,7 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HWND(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::SHANDLE_PTR) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn HWND(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::SHANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::HWND(this) { Ok(ok__) => { @@ -27302,10 +20402,7 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FullName(this: *mut core::ffi::c_void, fullname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn FullName(this: *mut core::ffi::c_void, fullname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::FullName(this) { Ok(ok__) => { @@ -27315,10 +20412,7 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn Path(this: *mut core::ffi::c_void, path: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::Path(this) { Ok(ok__) => { @@ -27328,10 +20422,7 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::Visible(this) { Ok(ok__) => { @@ -27341,17 +20432,11 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserApp_Impl::SetVisible(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn StatusBar(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn StatusBar(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::StatusBar(this) { Ok(ok__) => { @@ -27361,17 +20446,11 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStatusBar(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn SetStatusBar(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserApp_Impl::SetStatusBar(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, statustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn StatusText(this: *mut core::ffi::c_void, statustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::StatusText(this) { Ok(ok__) => { @@ -27381,17 +20460,11 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStatusText(this: *mut core::ffi::c_void, statustext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn SetStatusText(this: *mut core::ffi::c_void, statustext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserApp_Impl::SetStatusText(this, core::mem::transmute(&statustext)).into() } - unsafe extern "system" fn ToolBar(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn ToolBar(this: *mut core::ffi::c_void, value: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::ToolBar(this) { Ok(ok__) => { @@ -27401,17 +20474,11 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetToolBar(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn SetToolBar(this: *mut core::ffi::c_void, value: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserApp_Impl::SetToolBar(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn MenuBar(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn MenuBar(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::MenuBar(this) { Ok(ok__) => { @@ -27421,17 +20488,11 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMenuBar(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn SetMenuBar(this: *mut core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserApp_Impl::SetMenuBar(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn FullScreen(this: *mut core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn FullScreen(this: *mut core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserApp_Impl::FullScreen(this) { Ok(ok__) => { @@ -27441,10 +20502,7 @@ impl IWebBrowserApp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFullScreen(this: *mut core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowserApp_Impl, - { + unsafe extern "system" fn SetFullScreen(this: *mut core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserApp_Impl::SetFullScreen(this, core::mem::transmute_copy(&bfullscreen)).into() } @@ -27485,21 +20543,12 @@ pub trait IWebWizardExtension_Impl: Sized + IWizardExtension_Impl { impl windows_core::RuntimeName for IWebWizardExtension {} #[cfg(feature = "Win32_UI_Controls")] impl IWebWizardExtension_Vtbl { - pub const fn new() -> IWebWizardExtension_Vtbl - where - Identity: IWebWizardExtension_Impl, - { - unsafe extern "system" fn SetInitialURL(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWebWizardExtension_Impl, - { + pub const fn new() -> IWebWizardExtension_Vtbl { + unsafe extern "system" fn SetInitialURL(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebWizardExtension_Impl::SetInitialURL(this, core::mem::transmute(&pszurl)).into() } - unsafe extern "system" fn SetErrorURL(this: *mut core::ffi::c_void, pszerrorurl: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IWebWizardExtension_Impl, - { + unsafe extern "system" fn SetErrorURL(this: *mut core::ffi::c_void, pszerrorurl: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebWizardExtension_Impl::SetErrorURL(this, core::mem::transmute(&pszerrorurl)).into() } @@ -27529,42 +20578,24 @@ pub trait IWebWizardHost_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IWebWizardHost {} #[cfg(feature = "Win32_System_Com")] impl IWebWizardHost_Vtbl { - pub const fn new() -> IWebWizardHost_Vtbl - where - Identity: IWebWizardHost_Impl, - { - unsafe extern "system" fn FinalBack(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebWizardHost_Impl, - { + pub const fn new() -> IWebWizardHost_Vtbl { + unsafe extern "system" fn FinalBack(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebWizardHost_Impl::FinalBack(this).into() } - unsafe extern "system" fn FinalNext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebWizardHost_Impl, - { + unsafe extern "system" fn FinalNext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebWizardHost_Impl::FinalNext(this).into() } - unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebWizardHost_Impl, - { + unsafe extern "system" fn Cancel(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebWizardHost_Impl::Cancel(this).into() } - unsafe extern "system" fn SetCaption(this: *mut core::ffi::c_void, bstrcaption: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebWizardHost_Impl, - { + unsafe extern "system" fn SetCaption(this: *mut core::ffi::c_void, bstrcaption: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebWizardHost_Impl::SetCaption(this, core::mem::transmute(&bstrcaption)).into() } - unsafe extern "system" fn Caption(this: *mut core::ffi::c_void, pbstrcaption: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebWizardHost_Impl, - { + unsafe extern "system" fn Caption(this: *mut core::ffi::c_void, pbstrcaption: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebWizardHost_Impl::Caption(this) { Ok(ok__) => { @@ -27574,17 +20605,11 @@ impl IWebWizardHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn put_Property(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, pvproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebWizardHost_Impl, - { + unsafe extern "system" fn put_Property(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, pvproperty: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebWizardHost_Impl::put_Property(this, core::mem::transmute(&bstrpropertyname), core::mem::transmute_copy(&pvproperty)).into() } - unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, pvproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebWizardHost_Impl, - { + unsafe extern "system" fn get_Property(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, pvproperty: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebWizardHost_Impl::get_Property(this, core::mem::transmute(&bstrpropertyname)) { Ok(ok__) => { @@ -27594,17 +20619,11 @@ impl IWebWizardHost_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWizardButtons(this: *mut core::ffi::c_void, vfenableback: super::super::Foundation::VARIANT_BOOL, vfenablenext: super::super::Foundation::VARIANT_BOOL, vflastpage: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebWizardHost_Impl, - { + unsafe extern "system" fn SetWizardButtons(this: *mut core::ffi::c_void, vfenableback: super::super::Foundation::VARIANT_BOOL, vfenablenext: super::super::Foundation::VARIANT_BOOL, vflastpage: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebWizardHost_Impl::SetWizardButtons(this, core::mem::transmute_copy(&vfenableback), core::mem::transmute_copy(&vfenablenext), core::mem::transmute_copy(&vflastpage)).into() } - unsafe extern "system" fn SetHeaderText(this: *mut core::ffi::c_void, bstrheadertitle: core::mem::MaybeUninit, bstrheadersubtitle: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebWizardHost_Impl, - { + unsafe extern "system" fn SetHeaderText(this: *mut core::ffi::c_void, bstrheadertitle: core::mem::MaybeUninit, bstrheadersubtitle: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebWizardHost_Impl::SetHeaderText(this, core::mem::transmute(&bstrheadertitle), core::mem::transmute(&bstrheadersubtitle)).into() } @@ -27633,14 +20652,8 @@ pub trait IWebWizardHost2_Impl: Sized + IWebWizardHost_Impl { impl windows_core::RuntimeName for IWebWizardHost2 {} #[cfg(feature = "Win32_System_Com")] impl IWebWizardHost2_Vtbl { - pub const fn new() -> IWebWizardHost2_Vtbl - where - Identity: IWebWizardHost2_Impl, - { - unsafe extern "system" fn SignString(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, signedvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebWizardHost2_Impl, - { + pub const fn new() -> IWebWizardHost2_Vtbl { + unsafe extern "system" fn SignString(this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, signedvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebWizardHost2_Impl::SignString(this, core::mem::transmute(&value)) { Ok(ok__) => { @@ -27657,7 +20670,7 @@ impl IWebWizardHost2_Vtbl { } } #[cfg(feature = "Win32_UI_Controls")] -pub trait IWizardExtension_Impl: Sized { +pub trait IWizardExtension_Impl: Sized + windows_core::IUnknownImpl { fn AddPages(&self, apages: *mut super::Controls::HPROPSHEETPAGE, cpages: u32, pnpagesadded: *mut u32) -> windows_core::Result<()>; fn GetFirstPage(&self) -> windows_core::Result; fn GetLastPage(&self) -> windows_core::Result; @@ -27666,21 +20679,12 @@ pub trait IWizardExtension_Impl: Sized { impl windows_core::RuntimeName for IWizardExtension {} #[cfg(feature = "Win32_UI_Controls")] impl IWizardExtension_Vtbl { - pub const fn new() -> IWizardExtension_Vtbl - where - Identity: IWizardExtension_Impl, - { - unsafe extern "system" fn AddPages(this: *mut core::ffi::c_void, apages: *mut super::Controls::HPROPSHEETPAGE, cpages: u32, pnpagesadded: *mut u32) -> windows_core::HRESULT - where - Identity: IWizardExtension_Impl, - { + pub const fn new() -> IWizardExtension_Vtbl { + unsafe extern "system" fn AddPages(this: *mut core::ffi::c_void, apages: *mut super::Controls::HPROPSHEETPAGE, cpages: u32, pnpagesadded: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWizardExtension_Impl::AddPages(this, core::mem::transmute_copy(&apages), core::mem::transmute_copy(&cpages), core::mem::transmute_copy(&pnpagesadded)).into() } - unsafe extern "system" fn GetFirstPage(this: *mut core::ffi::c_void, phpage: *mut super::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT - where - Identity: IWizardExtension_Impl, - { + unsafe extern "system" fn GetFirstPage(this: *mut core::ffi::c_void, phpage: *mut super::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWizardExtension_Impl::GetFirstPage(this) { Ok(ok__) => { @@ -27690,10 +20694,7 @@ impl IWizardExtension_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetLastPage(this: *mut core::ffi::c_void, phpage: *mut super::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT - where - Identity: IWizardExtension_Impl, - { + unsafe extern "system" fn GetLastPage(this: *mut core::ffi::c_void, phpage: *mut super::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWizardExtension_Impl::GetLastPage(this) { Ok(ok__) => { @@ -27715,7 +20716,7 @@ impl IWizardExtension_Vtbl { } } #[cfg(feature = "Win32_UI_Controls")] -pub trait IWizardSite_Impl: Sized { +pub trait IWizardSite_Impl: Sized + windows_core::IUnknownImpl { fn GetPreviousPage(&self) -> windows_core::Result; fn GetNextPage(&self) -> windows_core::Result; fn GetCancelledPage(&self) -> windows_core::Result; @@ -27724,14 +20725,8 @@ pub trait IWizardSite_Impl: Sized { impl windows_core::RuntimeName for IWizardSite {} #[cfg(feature = "Win32_UI_Controls")] impl IWizardSite_Vtbl { - pub const fn new() -> IWizardSite_Vtbl - where - Identity: IWizardSite_Impl, - { - unsafe extern "system" fn GetPreviousPage(this: *mut core::ffi::c_void, phpage: *mut super::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT - where - Identity: IWizardSite_Impl, - { + pub const fn new() -> IWizardSite_Vtbl { + unsafe extern "system" fn GetPreviousPage(this: *mut core::ffi::c_void, phpage: *mut super::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWizardSite_Impl::GetPreviousPage(this) { Ok(ok__) => { @@ -27741,10 +20736,7 @@ impl IWizardSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNextPage(this: *mut core::ffi::c_void, phpage: *mut super::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT - where - Identity: IWizardSite_Impl, - { + unsafe extern "system" fn GetNextPage(this: *mut core::ffi::c_void, phpage: *mut super::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWizardSite_Impl::GetNextPage(this) { Ok(ok__) => { @@ -27754,10 +20746,7 @@ impl IWizardSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCancelledPage(this: *mut core::ffi::c_void, phpage: *mut super::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT - where - Identity: IWizardSite_Impl, - { + unsafe extern "system" fn GetCancelledPage(this: *mut core::ffi::c_void, phpage: *mut super::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWizardSite_Impl::GetCancelledPage(this) { Ok(ok__) => { 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 e07ed00c07..356bb092c6 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_System_Com")] -pub trait IDynamicRenderer_Impl: Sized { +pub trait IDynamicRenderer_Impl: Sized + windows_core::IUnknownImpl { fn Enabled(&self) -> windows_core::Result; fn SetEnabled(&self, benabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn HWND(&self) -> windows_core::Result; @@ -20,14 +20,8 @@ pub trait IDynamicRenderer_Impl: Sized { impl windows_core::RuntimeName for IDynamicRenderer {} #[cfg(feature = "Win32_System_Com")] impl IDynamicRenderer_Vtbl { - pub const fn new() -> IDynamicRenderer_Vtbl - where - Identity: IDynamicRenderer_Impl, - { - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, benabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + pub const fn new() -> IDynamicRenderer_Vtbl { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, benabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicRenderer_Impl::Enabled(this) { Ok(ok__) => { @@ -37,17 +31,11 @@ impl IDynamicRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::SetEnabled(this, core::mem::transmute_copy(&benabled)).into() } - unsafe extern "system" fn HWND(this: *mut core::ffi::c_void, hwnd: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn HWND(this: *mut core::ffi::c_void, hwnd: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicRenderer_Impl::HWND(this) { Ok(ok__) => { @@ -57,17 +45,11 @@ impl IDynamicRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHWND(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn SetHWND(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::SetHWND(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn ClipRectangle(this: *mut core::ffi::c_void, prccliprect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn ClipRectangle(this: *mut core::ffi::c_void, prccliprect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicRenderer_Impl::ClipRectangle(this) { Ok(ok__) => { @@ -77,17 +59,11 @@ impl IDynamicRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClipRectangle(this: *mut core::ffi::c_void, prccliprect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn SetClipRectangle(this: *mut core::ffi::c_void, prccliprect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::SetClipRectangle(this, core::mem::transmute_copy(&prccliprect)).into() } - unsafe extern "system" fn ClipRegion(this: *mut core::ffi::c_void, phcliprgn: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn ClipRegion(this: *mut core::ffi::c_void, phcliprgn: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicRenderer_Impl::ClipRegion(this) { Ok(ok__) => { @@ -97,17 +73,11 @@ impl IDynamicRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetClipRegion(this: *mut core::ffi::c_void, hcliprgn: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn SetClipRegion(this: *mut core::ffi::c_void, hcliprgn: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::SetClipRegion(this, core::mem::transmute_copy(&hcliprgn)).into() } - unsafe extern "system" fn DrawingAttributes(this: *mut core::ffi::c_void, ppida: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn DrawingAttributes(this: *mut core::ffi::c_void, ppida: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicRenderer_Impl::DrawingAttributes(this) { Ok(ok__) => { @@ -117,17 +87,11 @@ impl IDynamicRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_DrawingAttributes(this: *mut core::ffi::c_void, pida: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn putref_DrawingAttributes(this: *mut core::ffi::c_void, pida: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::putref_DrawingAttributes(this, windows_core::from_raw_borrowed(&pida)).into() } - unsafe extern "system" fn DataCacheEnabled(this: *mut core::ffi::c_void, pfcachedata: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn DataCacheEnabled(this: *mut core::ffi::c_void, pfcachedata: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicRenderer_Impl::DataCacheEnabled(this) { Ok(ok__) => { @@ -137,31 +101,19 @@ impl IDynamicRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDataCacheEnabled(this: *mut core::ffi::c_void, fcachedata: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn SetDataCacheEnabled(this: *mut core::ffi::c_void, fcachedata: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::SetDataCacheEnabled(this, core::mem::transmute_copy(&fcachedata)).into() } - unsafe extern "system" fn ReleaseCachedData(this: *mut core::ffi::c_void, strokeid: u32) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn ReleaseCachedData(this: *mut core::ffi::c_void, strokeid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::ReleaseCachedData(this, core::mem::transmute_copy(&strokeid)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::Refresh(this).into() } - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, hdc: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IDynamicRenderer_Impl, - { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, hdc: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::Draw(this, core::mem::transmute_copy(&hdc)).into() } @@ -188,7 +140,7 @@ impl IDynamicRenderer_Vtbl { iid == &::IID } } -pub trait IGestureRecognizer_Impl: Sized { +pub trait IGestureRecognizer_Impl: Sized + windows_core::IUnknownImpl { fn Enabled(&self) -> windows_core::Result; fn SetEnabled(&self, fenabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn MaxStrokeCount(&self) -> windows_core::Result; @@ -198,14 +150,8 @@ pub trait IGestureRecognizer_Impl: Sized { } impl windows_core::RuntimeName for IGestureRecognizer {} impl IGestureRecognizer_Vtbl { - pub const fn new() -> IGestureRecognizer_Vtbl - where - Identity: IGestureRecognizer_Impl, - { - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IGestureRecognizer_Impl, - { + pub const fn new() -> IGestureRecognizer_Vtbl { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGestureRecognizer_Impl::Enabled(this) { Ok(ok__) => { @@ -215,17 +161,11 @@ impl IGestureRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IGestureRecognizer_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGestureRecognizer_Impl::SetEnabled(this, core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn MaxStrokeCount(this: *mut core::ffi::c_void, pcstrokes: *mut i32) -> windows_core::HRESULT - where - Identity: IGestureRecognizer_Impl, - { + unsafe extern "system" fn MaxStrokeCount(this: *mut core::ffi::c_void, pcstrokes: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGestureRecognizer_Impl::MaxStrokeCount(this) { Ok(ok__) => { @@ -235,24 +175,15 @@ impl IGestureRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxStrokeCount(this: *mut core::ffi::c_void, cstrokes: i32) -> windows_core::HRESULT - where - Identity: IGestureRecognizer_Impl, - { + unsafe extern "system" fn SetMaxStrokeCount(this: *mut core::ffi::c_void, cstrokes: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGestureRecognizer_Impl::SetMaxStrokeCount(this, core::mem::transmute_copy(&cstrokes)).into() } - unsafe extern "system" fn EnableGestures(this: *mut core::ffi::c_void, cgestures: u32, pgestures: *const i32) -> windows_core::HRESULT - where - Identity: IGestureRecognizer_Impl, - { + unsafe extern "system" fn EnableGestures(this: *mut core::ffi::c_void, cgestures: u32, pgestures: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGestureRecognizer_Impl::EnableGestures(this, core::mem::transmute_copy(&cgestures), core::mem::transmute_copy(&pgestures)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IGestureRecognizer_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGestureRecognizer_Impl::Reset(this).into() } @@ -271,7 +202,7 @@ impl IGestureRecognizer_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IHandwrittenTextInsertion_Impl: Sized { +pub trait IHandwrittenTextInsertion_Impl: Sized + windows_core::IUnknownImpl { fn InsertRecognitionResultsArray(&self, psaalternates: *const super::super::System::Com::SAFEARRAY, locale: u32, falternatecontainsautospacinginformation: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn InsertInkRecognitionResult(&self, piinkrecoresult: Option<&IInkRecognitionResult>, locale: u32, falternatecontainsautospacinginformation: super::super::Foundation::BOOL) -> windows_core::Result<()>; } @@ -279,21 +210,12 @@ pub trait IHandwrittenTextInsertion_Impl: Sized { impl windows_core::RuntimeName for IHandwrittenTextInsertion {} #[cfg(feature = "Win32_System_Com")] impl IHandwrittenTextInsertion_Vtbl { - pub const fn new() -> IHandwrittenTextInsertion_Vtbl - where - Identity: IHandwrittenTextInsertion_Impl, - { - unsafe extern "system" fn InsertRecognitionResultsArray(this: *mut core::ffi::c_void, psaalternates: *const super::super::System::Com::SAFEARRAY, locale: u32, falternatecontainsautospacinginformation: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IHandwrittenTextInsertion_Impl, - { + pub const fn new() -> IHandwrittenTextInsertion_Vtbl { + unsafe extern "system" fn InsertRecognitionResultsArray(this: *mut core::ffi::c_void, psaalternates: *const super::super::System::Com::SAFEARRAY, locale: u32, falternatecontainsautospacinginformation: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHandwrittenTextInsertion_Impl::InsertRecognitionResultsArray(this, core::mem::transmute_copy(&psaalternates), core::mem::transmute_copy(&locale), core::mem::transmute_copy(&falternatecontainsautospacinginformation)).into() } - unsafe extern "system" fn InsertInkRecognitionResult(this: *mut core::ffi::c_void, piinkrecoresult: *mut core::ffi::c_void, locale: u32, falternatecontainsautospacinginformation: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IHandwrittenTextInsertion_Impl, - { + unsafe extern "system" fn InsertInkRecognitionResult(this: *mut core::ffi::c_void, piinkrecoresult: *mut core::ffi::c_void, locale: u32, falternatecontainsautospacinginformation: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHandwrittenTextInsertion_Impl::InsertInkRecognitionResult(this, windows_core::from_raw_borrowed(&piinkrecoresult), core::mem::transmute_copy(&locale), core::mem::transmute_copy(&falternatecontainsautospacinginformation)).into() } @@ -313,10 +235,7 @@ pub trait IInk_Impl: Sized + super::super::System::Com::IDispatch_Impl {} impl windows_core::RuntimeName for IInk {} #[cfg(feature = "Win32_System_Com")] impl IInk_Vtbl { - pub const fn new() -> IInk_Vtbl - where - Identity: IInk_Impl, - { + pub const fn new() -> IInk_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -370,14 +289,8 @@ pub trait IInkCollector_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IInkCollector {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkCollector_Vtbl { - pub const fn new() -> IInkCollector_Vtbl - where - Identity: IInkCollector_Impl, - { - unsafe extern "system" fn hWnd(this: *mut core::ffi::c_void, currentwindow: *mut isize) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + pub const fn new() -> IInkCollector_Vtbl { + unsafe extern "system" fn hWnd(this: *mut core::ffi::c_void, currentwindow: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::hWnd(this) { Ok(ok__) => { @@ -387,17 +300,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SethWnd(this: *mut core::ffi::c_void, newwindow: isize) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SethWnd(this: *mut core::ffi::c_void, newwindow: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SethWnd(this, core::mem::transmute_copy(&newwindow)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::Enabled(this) { Ok(ok__) => { @@ -407,17 +314,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, collecting: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, collecting: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetEnabled(this, core::mem::transmute_copy(&collecting)).into() } - unsafe extern "system" fn DefaultDrawingAttributes(this: *mut core::ffi::c_void, currentattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn DefaultDrawingAttributes(this: *mut core::ffi::c_void, currentattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::DefaultDrawingAttributes(this) { Ok(ok__) => { @@ -427,17 +328,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_DefaultDrawingAttributes(this: *mut core::ffi::c_void, newattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn putref_DefaultDrawingAttributes(this: *mut core::ffi::c_void, newattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::putref_DefaultDrawingAttributes(this, windows_core::from_raw_borrowed(&newattributes)).into() } - unsafe extern "system" fn Renderer(this: *mut core::ffi::c_void, currentinkrenderer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn Renderer(this: *mut core::ffi::c_void, currentinkrenderer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::Renderer(this) { Ok(ok__) => { @@ -447,17 +342,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Renderer(this: *mut core::ffi::c_void, newinkrenderer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn putref_Renderer(this: *mut core::ffi::c_void, newinkrenderer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::putref_Renderer(this, windows_core::from_raw_borrowed(&newinkrenderer)).into() } - unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::Ink(this) { Ok(ok__) => { @@ -467,17 +356,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Ink(this: *mut core::ffi::c_void, newink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn putref_Ink(this: *mut core::ffi::c_void, newink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::putref_Ink(this, windows_core::from_raw_borrowed(&newink)).into() } - unsafe extern "system" fn AutoRedraw(this: *mut core::ffi::c_void, autoredraw: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn AutoRedraw(this: *mut core::ffi::c_void, autoredraw: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::AutoRedraw(this) { Ok(ok__) => { @@ -487,17 +370,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoRedraw(this: *mut core::ffi::c_void, autoredraw: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetAutoRedraw(this: *mut core::ffi::c_void, autoredraw: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetAutoRedraw(this, core::mem::transmute_copy(&autoredraw)).into() } - unsafe extern "system" fn CollectingInk(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn CollectingInk(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::CollectingInk(this) { Ok(ok__) => { @@ -507,10 +384,7 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CollectionMode(this: *mut core::ffi::c_void, mode: *mut InkCollectionMode) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn CollectionMode(this: *mut core::ffi::c_void, mode: *mut InkCollectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::CollectionMode(this) { Ok(ok__) => { @@ -520,17 +394,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCollectionMode(this: *mut core::ffi::c_void, mode: InkCollectionMode) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetCollectionMode(this: *mut core::ffi::c_void, mode: InkCollectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetCollectionMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn DynamicRendering(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn DynamicRendering(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::DynamicRendering(this) { Ok(ok__) => { @@ -540,17 +408,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDynamicRendering(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetDynamicRendering(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetDynamicRendering(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn DesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn DesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::DesiredPacketDescription(this) { Ok(ok__) => { @@ -560,17 +422,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetDesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetDesiredPacketDescription(this, core::mem::transmute(&packetguids)).into() } - unsafe extern "system" fn MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::MouseIcon(this) { Ok(ok__) => { @@ -580,24 +436,15 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetMouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetMouseIcon(this, windows_core::from_raw_borrowed(&mouseicon)).into() } - unsafe extern "system" fn putref_MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn putref_MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::putref_MouseIcon(this, windows_core::from_raw_borrowed(&mouseicon)).into() } - unsafe extern "system" fn MousePointer(this: *mut core::ffi::c_void, mousepointer: *mut InkMousePointer) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn MousePointer(this: *mut core::ffi::c_void, mousepointer: *mut InkMousePointer) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::MousePointer(this) { Ok(ok__) => { @@ -607,17 +454,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMousePointer(this: *mut core::ffi::c_void, mousepointer: InkMousePointer) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetMousePointer(this: *mut core::ffi::c_void, mousepointer: InkMousePointer) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetMousePointer(this, core::mem::transmute_copy(&mousepointer)).into() } - unsafe extern "system" fn Cursors(this: *mut core::ffi::c_void, cursors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn Cursors(this: *mut core::ffi::c_void, cursors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::Cursors(this) { Ok(ok__) => { @@ -627,10 +468,7 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MarginX(this: *mut core::ffi::c_void, marginx: *mut i32) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn MarginX(this: *mut core::ffi::c_void, marginx: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::MarginX(this) { Ok(ok__) => { @@ -640,17 +478,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMarginX(this: *mut core::ffi::c_void, marginx: i32) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetMarginX(this: *mut core::ffi::c_void, marginx: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetMarginX(this, core::mem::transmute_copy(&marginx)).into() } - unsafe extern "system" fn MarginY(this: *mut core::ffi::c_void, marginy: *mut i32) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn MarginY(this: *mut core::ffi::c_void, marginy: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::MarginY(this) { Ok(ok__) => { @@ -660,17 +492,11 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMarginY(this: *mut core::ffi::c_void, marginy: i32) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetMarginY(this: *mut core::ffi::c_void, marginy: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetMarginY(this, core::mem::transmute_copy(&marginy)).into() } - unsafe extern "system" fn Tablet(this: *mut core::ffi::c_void, singletablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn Tablet(this: *mut core::ffi::c_void, singletablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::Tablet(this) { Ok(ok__) => { @@ -680,10 +506,7 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportHighContrastInk(this: *mut core::ffi::c_void, support: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SupportHighContrastInk(this: *mut core::ffi::c_void, support: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::SupportHighContrastInk(this) { Ok(ok__) => { @@ -693,24 +516,15 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSupportHighContrastInk(this: *mut core::ffi::c_void, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetSupportHighContrastInk(this: *mut core::ffi::c_void, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetSupportHighContrastInk(this, core::mem::transmute_copy(&support)).into() } - unsafe extern "system" fn SetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetGestureStatus(this, core::mem::transmute_copy(&gesture), core::mem::transmute_copy(&listen)).into() } - unsafe extern "system" fn GetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listening: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn GetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listening: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::GetGestureStatus(this, core::mem::transmute_copy(&gesture)) { Ok(ok__) => { @@ -720,38 +534,23 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn GetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::GetWindowInputRectangle(this, core::mem::transmute_copy(&windowinputrectangle)).into() } - unsafe extern "system" fn SetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetWindowInputRectangle(this, windows_core::from_raw_borrowed(&windowinputrectangle)).into() } - unsafe extern "system" fn SetAllTabletsMode(this: *mut core::ffi::c_void, usemouseforinput: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetAllTabletsMode(this: *mut core::ffi::c_void, usemouseforinput: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetAllTabletsMode(this, core::mem::transmute_copy(&usemouseforinput)).into() } - unsafe extern "system" fn SetSingleTabletIntegratedMode(this: *mut core::ffi::c_void, tablet: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetSingleTabletIntegratedMode(this: *mut core::ffi::c_void, tablet: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetSingleTabletIntegratedMode(this, windows_core::from_raw_borrowed(&tablet)).into() } - unsafe extern "system" fn GetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn GetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCollector_Impl::GetEventInterest(this, core::mem::transmute_copy(&eventid)) { Ok(ok__) => { @@ -761,10 +560,7 @@ impl IInkCollector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCollector_Impl, - { + unsafe extern "system" fn SetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCollector_Impl::SetEventInterest(this, core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&listen)).into() } @@ -830,14 +626,8 @@ pub trait IInkCursor_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkCursor {} #[cfg(feature = "Win32_System_Com")] impl IInkCursor_Vtbl { - pub const fn new() -> IInkCursor_Vtbl - where - Identity: IInkCursor_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkCursor_Impl, - { + pub const fn new() -> IInkCursor_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursor_Impl::Name(this) { Ok(ok__) => { @@ -847,10 +637,7 @@ impl IInkCursor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT - where - Identity: IInkCursor_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursor_Impl::Id(this) { Ok(ok__) => { @@ -860,10 +647,7 @@ impl IInkCursor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Inverted(this: *mut core::ffi::c_void, status: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkCursor_Impl, - { + unsafe extern "system" fn Inverted(this: *mut core::ffi::c_void, status: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursor_Impl::Inverted(this) { Ok(ok__) => { @@ -873,10 +657,7 @@ impl IInkCursor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DrawingAttributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCursor_Impl, - { + unsafe extern "system" fn DrawingAttributes(this: *mut core::ffi::c_void, attributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursor_Impl::DrawingAttributes(this) { Ok(ok__) => { @@ -886,17 +667,11 @@ impl IInkCursor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_DrawingAttributes(this: *mut core::ffi::c_void, attributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCursor_Impl, - { + unsafe extern "system" fn putref_DrawingAttributes(this: *mut core::ffi::c_void, attributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCursor_Impl::putref_DrawingAttributes(this, windows_core::from_raw_borrowed(&attributes)).into() } - unsafe extern "system" fn Tablet(this: *mut core::ffi::c_void, tablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCursor_Impl, - { + unsafe extern "system" fn Tablet(this: *mut core::ffi::c_void, tablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursor_Impl::Tablet(this) { Ok(ok__) => { @@ -906,10 +681,7 @@ impl IInkCursor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Buttons(this: *mut core::ffi::c_void, buttons: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCursor_Impl, - { + unsafe extern "system" fn Buttons(this: *mut core::ffi::c_void, buttons: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursor_Impl::Buttons(this) { Ok(ok__) => { @@ -944,14 +716,8 @@ pub trait IInkCursorButton_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IInkCursorButton {} #[cfg(feature = "Win32_System_Com")] impl IInkCursorButton_Vtbl { - pub const fn new() -> IInkCursorButton_Vtbl - where - Identity: IInkCursorButton_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkCursorButton_Impl, - { + pub const fn new() -> IInkCursorButton_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursorButton_Impl::Name(this) { Ok(ok__) => { @@ -961,10 +727,7 @@ impl IInkCursorButton_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkCursorButton_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursorButton_Impl::Id(this) { Ok(ok__) => { @@ -974,10 +737,7 @@ impl IInkCursorButton_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn State(this: *mut core::ffi::c_void, currentstate: *mut InkCursorButtonState) -> windows_core::HRESULT - where - Identity: IInkCursorButton_Impl, - { + unsafe extern "system" fn State(this: *mut core::ffi::c_void, currentstate: *mut InkCursorButtonState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursorButton_Impl::State(this) { Ok(ok__) => { @@ -1008,14 +768,8 @@ pub trait IInkCursorButtons_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IInkCursorButtons {} #[cfg(feature = "Win32_System_Com")] impl IInkCursorButtons_Vtbl { - pub const fn new() -> IInkCursorButtons_Vtbl - where - Identity: IInkCursorButtons_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IInkCursorButtons_Impl, - { + pub const fn new() -> IInkCursorButtons_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursorButtons_Impl::Count(this) { Ok(ok__) => { @@ -1025,10 +779,7 @@ impl IInkCursorButtons_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCursorButtons_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursorButtons_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1038,10 +789,7 @@ impl IInkCursorButtons_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, identifier: core::mem::MaybeUninit, button: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCursorButtons_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, identifier: core::mem::MaybeUninit, button: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursorButtons_Impl::Item(this, core::mem::transmute(&identifier)) { Ok(ok__) => { @@ -1072,14 +820,8 @@ pub trait IInkCursors_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkCursors {} #[cfg(feature = "Win32_System_Com")] impl IInkCursors_Vtbl { - pub const fn new() -> IInkCursors_Vtbl - where - Identity: IInkCursors_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IInkCursors_Impl, - { + pub const fn new() -> IInkCursors_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursors_Impl::Count(this) { Ok(ok__) => { @@ -1089,10 +831,7 @@ impl IInkCursors_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCursors_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursors_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1102,10 +841,7 @@ impl IInkCursors_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, cursor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCursors_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, cursor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCursors_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1139,14 +875,8 @@ pub trait IInkCustomStrokes_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IInkCustomStrokes {} #[cfg(feature = "Win32_System_Com")] impl IInkCustomStrokes_Vtbl { - pub const fn new() -> IInkCustomStrokes_Vtbl - where - Identity: IInkCustomStrokes_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IInkCustomStrokes_Impl, - { + pub const fn new() -> IInkCustomStrokes_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCustomStrokes_Impl::Count(this) { Ok(ok__) => { @@ -1156,10 +886,7 @@ impl IInkCustomStrokes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCustomStrokes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCustomStrokes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1169,10 +896,7 @@ impl IInkCustomStrokes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, identifier: core::mem::MaybeUninit, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCustomStrokes_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, identifier: core::mem::MaybeUninit, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkCustomStrokes_Impl::Item(this, core::mem::transmute(&identifier)) { Ok(ok__) => { @@ -1182,24 +906,15 @@ impl IInkCustomStrokes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, strokes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCustomStrokes_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, strokes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCustomStrokes_Impl::Add(this, core::mem::transmute(&name), windows_core::from_raw_borrowed(&strokes)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, identifier: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkCustomStrokes_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, identifier: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCustomStrokes_Impl::Remove(this, core::mem::transmute(&identifier)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkCustomStrokes_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkCustomStrokes_Impl::Clear(this).into() } @@ -1249,14 +964,8 @@ pub trait IInkDisp_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkDisp {} #[cfg(feature = "Win32_System_Com")] impl IInkDisp_Vtbl { - pub const fn new() -> IInkDisp_Vtbl - where - Identity: IInkDisp_Impl, - { - unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + pub const fn new() -> IInkDisp_Vtbl { + unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::Strokes(this) { Ok(ok__) => { @@ -1266,10 +975,7 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedProperties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn ExtendedProperties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::ExtendedProperties(this) { Ok(ok__) => { @@ -1279,10 +985,7 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Dirty(this: *mut core::ffi::c_void, dirty: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn Dirty(this: *mut core::ffi::c_void, dirty: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::Dirty(this) { Ok(ok__) => { @@ -1292,17 +995,11 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDirty(this: *mut core::ffi::c_void, dirty: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn SetDirty(this: *mut core::ffi::c_void, dirty: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDisp_Impl::SetDirty(this, core::mem::transmute_copy(&dirty)).into() } - unsafe extern "system" fn CustomStrokes(this: *mut core::ffi::c_void, ppunkinkcustomstrokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn CustomStrokes(this: *mut core::ffi::c_void, ppunkinkcustomstrokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::CustomStrokes(this) { Ok(ok__) => { @@ -1312,10 +1009,7 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBoundingBox(this: *mut core::ffi::c_void, boundingboxmode: InkBoundingBoxMode, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn GetBoundingBox(this: *mut core::ffi::c_void, boundingboxmode: InkBoundingBoxMode, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::GetBoundingBox(this, core::mem::transmute_copy(&boundingboxmode)) { Ok(ok__) => { @@ -1325,24 +1019,15 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DeleteStrokes(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn DeleteStrokes(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDisp_Impl::DeleteStrokes(this, windows_core::from_raw_borrowed(&strokes)).into() } - unsafe extern "system" fn DeleteStroke(this: *mut core::ffi::c_void, stroke: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn DeleteStroke(this: *mut core::ffi::c_void, stroke: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDisp_Impl::DeleteStroke(this, windows_core::from_raw_borrowed(&stroke)).into() } - unsafe extern "system" fn ExtractStrokes(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, extractflags: InkExtractFlags, extractedink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn ExtractStrokes(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, extractflags: InkExtractFlags, extractedink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::ExtractStrokes(this, windows_core::from_raw_borrowed(&strokes), core::mem::transmute_copy(&extractflags)) { Ok(ok__) => { @@ -1352,10 +1037,7 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtractWithRectangle(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void, extractflags: InkExtractFlags, extractedink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn ExtractWithRectangle(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void, extractflags: InkExtractFlags, extractedink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::ExtractWithRectangle(this, windows_core::from_raw_borrowed(&rectangle), core::mem::transmute_copy(&extractflags)) { Ok(ok__) => { @@ -1365,17 +1047,11 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clip(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn Clip(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDisp_Impl::Clip(this, windows_core::from_raw_borrowed(&rectangle)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, newink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::Clone(this) { Ok(ok__) => { @@ -1385,10 +1061,7 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HitTestCircle(this: *mut core::ffi::c_void, x: i32, y: i32, radius: f32, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn HitTestCircle(this: *mut core::ffi::c_void, x: i32, y: i32, radius: f32, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::HitTestCircle(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&radius)) { Ok(ok__) => { @@ -1398,10 +1071,7 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HitTestWithRectangle(this: *mut core::ffi::c_void, selectionrectangle: *mut core::ffi::c_void, intersectpercent: f32, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn HitTestWithRectangle(this: *mut core::ffi::c_void, selectionrectangle: *mut core::ffi::c_void, intersectpercent: f32, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::HitTestWithRectangle(this, windows_core::from_raw_borrowed(&selectionrectangle), core::mem::transmute_copy(&intersectpercent)) { Ok(ok__) => { @@ -1411,24 +1081,15 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HitTestWithLasso(this: *mut core::ffi::c_void, points: core::mem::MaybeUninit, intersectpercent: f32, lassopoints: *mut core::mem::MaybeUninit, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn HitTestWithLasso(this: *mut core::ffi::c_void, points: core::mem::MaybeUninit, intersectpercent: f32, lassopoints: *mut core::mem::MaybeUninit, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDisp_Impl::HitTestWithLasso(this, core::mem::transmute(&points), core::mem::transmute_copy(&intersectpercent), core::mem::transmute_copy(&lassopoints), core::mem::transmute_copy(&strokes)).into() } - unsafe extern "system" fn NearestPoint(this: *mut core::ffi::c_void, x: i32, y: i32, pointonstroke: *mut f32, distancefrompacket: *mut f32, stroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn NearestPoint(this: *mut core::ffi::c_void, x: i32, y: i32, pointonstroke: *mut f32, distancefrompacket: *mut f32, stroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDisp_Impl::NearestPoint(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&pointonstroke), core::mem::transmute_copy(&distancefrompacket), core::mem::transmute_copy(&stroke)).into() } - unsafe extern "system" fn CreateStrokes(this: *mut core::ffi::c_void, strokeids: core::mem::MaybeUninit, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn CreateStrokes(this: *mut core::ffi::c_void, strokeids: core::mem::MaybeUninit, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::CreateStrokes(this, core::mem::transmute(&strokeids)) { Ok(ok__) => { @@ -1438,17 +1099,11 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStrokesAtRectangle(this: *mut core::ffi::c_void, sourcestrokes: *mut core::ffi::c_void, targetrectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn AddStrokesAtRectangle(this: *mut core::ffi::c_void, sourcestrokes: *mut core::ffi::c_void, targetrectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDisp_Impl::AddStrokesAtRectangle(this, windows_core::from_raw_borrowed(&sourcestrokes), windows_core::from_raw_borrowed(&targetrectangle)).into() } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, persistenceformat: InkPersistenceFormat, compressionmode: InkPersistenceCompressionMode, data: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, persistenceformat: InkPersistenceFormat, compressionmode: InkPersistenceCompressionMode, data: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::Save(this, core::mem::transmute_copy(&persistenceformat), core::mem::transmute_copy(&compressionmode)) { Ok(ok__) => { @@ -1458,17 +1113,11 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDisp_Impl::Load(this, core::mem::transmute(&data)).into() } - unsafe extern "system" fn CreateStroke(this: *mut core::ffi::c_void, packetdata: core::mem::MaybeUninit, packetdescription: core::mem::MaybeUninit, stroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn CreateStroke(this: *mut core::ffi::c_void, packetdata: core::mem::MaybeUninit, packetdescription: core::mem::MaybeUninit, stroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::CreateStroke(this, core::mem::transmute(&packetdata), core::mem::transmute(&packetdescription)) { Ok(ok__) => { @@ -1478,10 +1127,7 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClipboardCopyWithRectangle(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void, clipboardformats: InkClipboardFormats, clipboardmodes: InkClipboardModes, dataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn ClipboardCopyWithRectangle(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void, clipboardformats: InkClipboardFormats, clipboardmodes: InkClipboardModes, dataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::ClipboardCopyWithRectangle(this, windows_core::from_raw_borrowed(&rectangle), core::mem::transmute_copy(&clipboardformats), core::mem::transmute_copy(&clipboardmodes)) { Ok(ok__) => { @@ -1491,10 +1137,7 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClipboardCopy(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, clipboardformats: InkClipboardFormats, clipboardmodes: InkClipboardModes, dataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn ClipboardCopy(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, clipboardformats: InkClipboardFormats, clipboardmodes: InkClipboardModes, dataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::ClipboardCopy(this, windows_core::from_raw_borrowed(&strokes), core::mem::transmute_copy(&clipboardformats), core::mem::transmute_copy(&clipboardmodes)) { Ok(ok__) => { @@ -1504,10 +1147,7 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanPaste(this: *mut core::ffi::c_void, dataobject: *mut core::ffi::c_void, canpaste: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn CanPaste(this: *mut core::ffi::c_void, dataobject: *mut core::ffi::c_void, canpaste: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::CanPaste(this, windows_core::from_raw_borrowed(&dataobject)) { Ok(ok__) => { @@ -1517,10 +1157,7 @@ impl IInkDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClipboardPaste(this: *mut core::ffi::c_void, x: i32, y: i32, dataobject: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDisp_Impl, - { + unsafe extern "system" fn ClipboardPaste(this: *mut core::ffi::c_void, x: i32, y: i32, dataobject: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDisp_Impl::ClipboardPaste(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), windows_core::from_raw_borrowed(&dataobject)) { Ok(ok__) => { @@ -1577,14 +1214,8 @@ pub trait IInkDivider_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkDivider {} #[cfg(feature = "Win32_System_Com")] impl IInkDivider_Vtbl { - pub const fn new() -> IInkDivider_Vtbl - where - Identity: IInkDivider_Impl, - { - unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivider_Impl, - { + pub const fn new() -> IInkDivider_Vtbl { + unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivider_Impl::Strokes(this) { Ok(ok__) => { @@ -1594,17 +1225,11 @@ impl IInkDivider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Strokes(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivider_Impl, - { + unsafe extern "system" fn putref_Strokes(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDivider_Impl::putref_Strokes(this, windows_core::from_raw_borrowed(&strokes)).into() } - unsafe extern "system" fn RecognizerContext(this: *mut core::ffi::c_void, recognizercontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivider_Impl, - { + unsafe extern "system" fn RecognizerContext(this: *mut core::ffi::c_void, recognizercontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivider_Impl::RecognizerContext(this) { Ok(ok__) => { @@ -1614,17 +1239,11 @@ impl IInkDivider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_RecognizerContext(this: *mut core::ffi::c_void, recognizercontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivider_Impl, - { + unsafe extern "system" fn putref_RecognizerContext(this: *mut core::ffi::c_void, recognizercontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDivider_Impl::putref_RecognizerContext(this, windows_core::from_raw_borrowed(&recognizercontext)).into() } - unsafe extern "system" fn LineHeight(this: *mut core::ffi::c_void, lineheight: *mut i32) -> windows_core::HRESULT - where - Identity: IInkDivider_Impl, - { + unsafe extern "system" fn LineHeight(this: *mut core::ffi::c_void, lineheight: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivider_Impl::LineHeight(this) { Ok(ok__) => { @@ -1634,17 +1253,11 @@ impl IInkDivider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLineHeight(this: *mut core::ffi::c_void, lineheight: i32) -> windows_core::HRESULT - where - Identity: IInkDivider_Impl, - { + unsafe extern "system" fn SetLineHeight(this: *mut core::ffi::c_void, lineheight: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDivider_Impl::SetLineHeight(this, core::mem::transmute_copy(&lineheight)).into() } - unsafe extern "system" fn Divide(this: *mut core::ffi::c_void, inkdivisionresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivider_Impl, - { + unsafe extern "system" fn Divide(this: *mut core::ffi::c_void, inkdivisionresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivider_Impl::Divide(this) { Ok(ok__) => { @@ -1678,14 +1291,8 @@ pub trait IInkDivisionResult_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IInkDivisionResult {} #[cfg(feature = "Win32_System_Com")] impl IInkDivisionResult_Vtbl { - pub const fn new() -> IInkDivisionResult_Vtbl - where - Identity: IInkDivisionResult_Impl, - { - unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivisionResult_Impl, - { + pub const fn new() -> IInkDivisionResult_Vtbl { + unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivisionResult_Impl::Strokes(this) { Ok(ok__) => { @@ -1695,10 +1302,7 @@ impl IInkDivisionResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ResultByType(this: *mut core::ffi::c_void, divisiontype: InkDivisionType, inkdivisionunits: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivisionResult_Impl, - { + unsafe extern "system" fn ResultByType(this: *mut core::ffi::c_void, divisiontype: InkDivisionType, inkdivisionunits: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivisionResult_Impl::ResultByType(this, core::mem::transmute_copy(&divisiontype)) { Ok(ok__) => { @@ -1729,14 +1333,8 @@ pub trait IInkDivisionUnit_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IInkDivisionUnit {} #[cfg(feature = "Win32_System_Com")] impl IInkDivisionUnit_Vtbl { - pub const fn new() -> IInkDivisionUnit_Vtbl - where - Identity: IInkDivisionUnit_Impl, - { - unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivisionUnit_Impl, - { + pub const fn new() -> IInkDivisionUnit_Vtbl { + unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivisionUnit_Impl::Strokes(this) { Ok(ok__) => { @@ -1746,10 +1344,7 @@ impl IInkDivisionUnit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DivisionType(this: *mut core::ffi::c_void, divisiontype: *mut InkDivisionType) -> windows_core::HRESULT - where - Identity: IInkDivisionUnit_Impl, - { + unsafe extern "system" fn DivisionType(this: *mut core::ffi::c_void, divisiontype: *mut InkDivisionType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivisionUnit_Impl::DivisionType(this) { Ok(ok__) => { @@ -1759,10 +1354,7 @@ impl IInkDivisionUnit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecognizedString(this: *mut core::ffi::c_void, recostring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkDivisionUnit_Impl, - { + unsafe extern "system" fn RecognizedString(this: *mut core::ffi::c_void, recostring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivisionUnit_Impl::RecognizedString(this) { Ok(ok__) => { @@ -1772,10 +1364,7 @@ impl IInkDivisionUnit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RotationTransform(this: *mut core::ffi::c_void, rotationtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivisionUnit_Impl, - { + unsafe extern "system" fn RotationTransform(this: *mut core::ffi::c_void, rotationtransform: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivisionUnit_Impl::RotationTransform(this) { Ok(ok__) => { @@ -1807,14 +1396,8 @@ pub trait IInkDivisionUnits_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IInkDivisionUnits {} #[cfg(feature = "Win32_System_Com")] impl IInkDivisionUnits_Vtbl { - pub const fn new() -> IInkDivisionUnits_Vtbl - where - Identity: IInkDivisionUnits_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IInkDivisionUnits_Impl, - { + pub const fn new() -> IInkDivisionUnits_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivisionUnits_Impl::Count(this) { Ok(ok__) => { @@ -1824,10 +1407,7 @@ impl IInkDivisionUnits_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivisionUnits_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivisionUnits_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1837,10 +1417,7 @@ impl IInkDivisionUnits_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, inkdivisionunit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDivisionUnits_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, inkdivisionunit: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDivisionUnits_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -1888,14 +1465,8 @@ pub trait IInkDrawingAttributes_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for IInkDrawingAttributes {} #[cfg(feature = "Win32_System_Com")] impl IInkDrawingAttributes_Vtbl { - pub const fn new() -> IInkDrawingAttributes_Vtbl - where - Identity: IInkDrawingAttributes_Impl, - { - unsafe extern "system" fn Color(this: *mut core::ffi::c_void, currentcolor: *mut i32) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + pub const fn new() -> IInkDrawingAttributes_Vtbl { + unsafe extern "system" fn Color(this: *mut core::ffi::c_void, currentcolor: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::Color(this) { Ok(ok__) => { @@ -1905,17 +1476,11 @@ impl IInkDrawingAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, newcolor: i32) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn SetColor(this: *mut core::ffi::c_void, newcolor: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDrawingAttributes_Impl::SetColor(this, core::mem::transmute_copy(&newcolor)).into() } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, currentwidth: *mut f32) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, currentwidth: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::Width(this) { Ok(ok__) => { @@ -1925,17 +1490,11 @@ impl IInkDrawingAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, newwidth: f32) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn SetWidth(this: *mut core::ffi::c_void, newwidth: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDrawingAttributes_Impl::SetWidth(this, core::mem::transmute_copy(&newwidth)).into() } - unsafe extern "system" fn Height(this: *mut core::ffi::c_void, currentheight: *mut f32) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn Height(this: *mut core::ffi::c_void, currentheight: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::Height(this) { Ok(ok__) => { @@ -1945,17 +1504,11 @@ impl IInkDrawingAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHeight(this: *mut core::ffi::c_void, newheight: f32) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn SetHeight(this: *mut core::ffi::c_void, newheight: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDrawingAttributes_Impl::SetHeight(this, core::mem::transmute_copy(&newheight)).into() } - unsafe extern "system" fn FitToCurve(this: *mut core::ffi::c_void, flag: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn FitToCurve(this: *mut core::ffi::c_void, flag: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::FitToCurve(this) { Ok(ok__) => { @@ -1965,17 +1518,11 @@ impl IInkDrawingAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFitToCurve(this: *mut core::ffi::c_void, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn SetFitToCurve(this: *mut core::ffi::c_void, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDrawingAttributes_Impl::SetFitToCurve(this, core::mem::transmute_copy(&flag)).into() } - unsafe extern "system" fn IgnorePressure(this: *mut core::ffi::c_void, flag: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn IgnorePressure(this: *mut core::ffi::c_void, flag: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::IgnorePressure(this) { Ok(ok__) => { @@ -1985,17 +1532,11 @@ impl IInkDrawingAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetIgnorePressure(this: *mut core::ffi::c_void, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn SetIgnorePressure(this: *mut core::ffi::c_void, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDrawingAttributes_Impl::SetIgnorePressure(this, core::mem::transmute_copy(&flag)).into() } - unsafe extern "system" fn AntiAliased(this: *mut core::ffi::c_void, flag: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn AntiAliased(this: *mut core::ffi::c_void, flag: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::AntiAliased(this) { Ok(ok__) => { @@ -2005,17 +1546,11 @@ impl IInkDrawingAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAntiAliased(this: *mut core::ffi::c_void, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn SetAntiAliased(this: *mut core::ffi::c_void, flag: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDrawingAttributes_Impl::SetAntiAliased(this, core::mem::transmute_copy(&flag)).into() } - unsafe extern "system" fn Transparency(this: *mut core::ffi::c_void, currenttransparency: *mut i32) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn Transparency(this: *mut core::ffi::c_void, currenttransparency: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::Transparency(this) { Ok(ok__) => { @@ -2025,17 +1560,11 @@ impl IInkDrawingAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTransparency(this: *mut core::ffi::c_void, newtransparency: i32) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn SetTransparency(this: *mut core::ffi::c_void, newtransparency: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDrawingAttributes_Impl::SetTransparency(this, core::mem::transmute_copy(&newtransparency)).into() } - unsafe extern "system" fn RasterOperation(this: *mut core::ffi::c_void, currentrasteroperation: *mut InkRasterOperation) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn RasterOperation(this: *mut core::ffi::c_void, currentrasteroperation: *mut InkRasterOperation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::RasterOperation(this) { Ok(ok__) => { @@ -2045,17 +1574,11 @@ impl IInkDrawingAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRasterOperation(this: *mut core::ffi::c_void, newrasteroperation: InkRasterOperation) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn SetRasterOperation(this: *mut core::ffi::c_void, newrasteroperation: InkRasterOperation) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDrawingAttributes_Impl::SetRasterOperation(this, core::mem::transmute_copy(&newrasteroperation)).into() } - unsafe extern "system" fn PenTip(this: *mut core::ffi::c_void, currentpentip: *mut InkPenTip) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn PenTip(this: *mut core::ffi::c_void, currentpentip: *mut InkPenTip) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::PenTip(this) { Ok(ok__) => { @@ -2065,17 +1588,11 @@ impl IInkDrawingAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPenTip(this: *mut core::ffi::c_void, newpentip: InkPenTip) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn SetPenTip(this: *mut core::ffi::c_void, newpentip: InkPenTip) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkDrawingAttributes_Impl::SetPenTip(this, core::mem::transmute_copy(&newpentip)).into() } - unsafe extern "system" fn ExtendedProperties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn ExtendedProperties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::ExtendedProperties(this) { Ok(ok__) => { @@ -2085,10 +1602,7 @@ impl IInkDrawingAttributes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, drawingattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkDrawingAttributes_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, drawingattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkDrawingAttributes_Impl::Clone(this) { Ok(ok__) => { @@ -2210,14 +1724,8 @@ pub trait IInkEdit_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkEdit {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkEdit_Vtbl { - pub const fn new() -> IInkEdit_Vtbl - where - Identity: IInkEdit_Impl, - { - unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut InkEditStatus) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + pub const fn new() -> IInkEdit_Vtbl { + unsafe extern "system" fn Status(this: *mut core::ffi::c_void, pstatus: *mut InkEditStatus) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::Status(this) { Ok(ok__) => { @@ -2227,10 +1735,7 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UseMouseForInput(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn UseMouseForInput(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::UseMouseForInput(this) { Ok(ok__) => { @@ -2240,17 +1745,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseMouseForInput(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetUseMouseForInput(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetUseMouseForInput(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn InkMode(this: *mut core::ffi::c_void, pval: *mut InkMode) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn InkMode(this: *mut core::ffi::c_void, pval: *mut InkMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::InkMode(this) { Ok(ok__) => { @@ -2260,17 +1759,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInkMode(this: *mut core::ffi::c_void, newval: InkMode) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetInkMode(this: *mut core::ffi::c_void, newval: InkMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetInkMode(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn InkInsertMode(this: *mut core::ffi::c_void, pval: *mut InkInsertMode) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn InkInsertMode(this: *mut core::ffi::c_void, pval: *mut InkInsertMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::InkInsertMode(this) { Ok(ok__) => { @@ -2280,17 +1773,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInkInsertMode(this: *mut core::ffi::c_void, newval: InkInsertMode) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetInkInsertMode(this: *mut core::ffi::c_void, newval: InkInsertMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetInkInsertMode(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn DrawingAttributes(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn DrawingAttributes(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::DrawingAttributes(this) { Ok(ok__) => { @@ -2300,17 +1787,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_DrawingAttributes(this: *mut core::ffi::c_void, newval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn putref_DrawingAttributes(this: *mut core::ffi::c_void, newval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::putref_DrawingAttributes(this, windows_core::from_raw_borrowed(&newval)).into() } - unsafe extern "system" fn RecognitionTimeout(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn RecognitionTimeout(this: *mut core::ffi::c_void, pval: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::RecognitionTimeout(this) { Ok(ok__) => { @@ -2320,17 +1801,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRecognitionTimeout(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetRecognitionTimeout(this: *mut core::ffi::c_void, newval: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetRecognitionTimeout(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Recognizer(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn Recognizer(this: *mut core::ffi::c_void, pval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::Recognizer(this) { Ok(ok__) => { @@ -2340,17 +1815,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Recognizer(this: *mut core::ffi::c_void, newval: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn putref_Recognizer(this: *mut core::ffi::c_void, newval: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::putref_Recognizer(this, windows_core::from_raw_borrowed(&newval)).into() } - unsafe extern "system" fn Factoid(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn Factoid(this: *mut core::ffi::c_void, pval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::Factoid(this) { Ok(ok__) => { @@ -2360,17 +1829,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFactoid(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetFactoid(this: *mut core::ffi::c_void, newval: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetFactoid(this, core::mem::transmute(&newval)).into() } - unsafe extern "system" fn SelInks(this: *mut core::ffi::c_void, pselink: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelInks(this: *mut core::ffi::c_void, pselink: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelInks(this) { Ok(ok__) => { @@ -2380,17 +1843,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelInks(this: *mut core::ffi::c_void, selink: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelInks(this: *mut core::ffi::c_void, selink: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelInks(this, core::mem::transmute(&selink)).into() } - unsafe extern "system" fn SelInksDisplayMode(this: *mut core::ffi::c_void, pinkdisplaymode: *mut InkDisplayMode) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelInksDisplayMode(this: *mut core::ffi::c_void, pinkdisplaymode: *mut InkDisplayMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelInksDisplayMode(this) { Ok(ok__) => { @@ -2400,24 +1857,15 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelInksDisplayMode(this: *mut core::ffi::c_void, inkdisplaymode: InkDisplayMode) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelInksDisplayMode(this: *mut core::ffi::c_void, inkdisplaymode: InkDisplayMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelInksDisplayMode(this, core::mem::transmute_copy(&inkdisplaymode)).into() } - unsafe extern "system" fn Recognize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn Recognize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::Recognize(this).into() } - unsafe extern "system" fn GetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, plisten: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn GetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, plisten: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::GetGestureStatus(this, core::mem::transmute_copy(&gesture)) { Ok(ok__) => { @@ -2427,24 +1875,15 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetGestureStatus(this, core::mem::transmute_copy(&gesture), core::mem::transmute_copy(&listen)).into() } - unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, clr: u32) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, clr: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetBackColor(this, core::mem::transmute_copy(&clr)).into() } - unsafe extern "system" fn BackColor(this: *mut core::ffi::c_void, pclr: *mut u32) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn BackColor(this: *mut core::ffi::c_void, pclr: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::BackColor(this) { Ok(ok__) => { @@ -2454,10 +1893,7 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Appearance(this: *mut core::ffi::c_void, pappearance: *mut AppearanceConstants) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn Appearance(this: *mut core::ffi::c_void, pappearance: *mut AppearanceConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::Appearance(this) { Ok(ok__) => { @@ -2467,17 +1903,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAppearance(this: *mut core::ffi::c_void, pappearance: AppearanceConstants) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetAppearance(this: *mut core::ffi::c_void, pappearance: AppearanceConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetAppearance(this, core::mem::transmute_copy(&pappearance)).into() } - unsafe extern "system" fn BorderStyle(this: *mut core::ffi::c_void, pborderstyle: *mut BorderStyleConstants) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn BorderStyle(this: *mut core::ffi::c_void, pborderstyle: *mut BorderStyleConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::BorderStyle(this) { Ok(ok__) => { @@ -2487,17 +1917,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBorderStyle(this: *mut core::ffi::c_void, pborderstyle: BorderStyleConstants) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetBorderStyle(this: *mut core::ffi::c_void, pborderstyle: BorderStyleConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetBorderStyle(this, core::mem::transmute_copy(&pborderstyle)).into() } - unsafe extern "system" fn Hwnd(this: *mut core::ffi::c_void, pohhwnd: *mut super::super::System::Ole::OLE_HANDLE) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn Hwnd(this: *mut core::ffi::c_void, pohhwnd: *mut super::super::System::Ole::OLE_HANDLE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::Hwnd(this) { Ok(ok__) => { @@ -2507,10 +1931,7 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Font(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn Font(this: *mut core::ffi::c_void, ppfont: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::Font(this) { Ok(ok__) => { @@ -2520,17 +1941,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Font(this: *mut core::ffi::c_void, ppfont: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn putref_Font(this: *mut core::ffi::c_void, ppfont: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::putref_Font(this, windows_core::from_raw_borrowed(&ppfont)).into() } - unsafe extern "system" fn Text(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn Text(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::Text(this) { Ok(ok__) => { @@ -2540,17 +1955,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, pbstrtext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, pbstrtext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetText(this, core::mem::transmute(&pbstrtext)).into() } - unsafe extern "system" fn MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::MouseIcon(this) { Ok(ok__) => { @@ -2560,24 +1969,15 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetMouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetMouseIcon(this, windows_core::from_raw_borrowed(&mouseicon)).into() } - unsafe extern "system" fn putref_MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn putref_MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::putref_MouseIcon(this, windows_core::from_raw_borrowed(&mouseicon)).into() } - unsafe extern "system" fn MousePointer(this: *mut core::ffi::c_void, mousepointer: *mut InkMousePointer) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn MousePointer(this: *mut core::ffi::c_void, mousepointer: *mut InkMousePointer) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::MousePointer(this) { Ok(ok__) => { @@ -2587,17 +1987,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMousePointer(this: *mut core::ffi::c_void, mousepointer: InkMousePointer) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetMousePointer(this: *mut core::ffi::c_void, mousepointer: InkMousePointer) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetMousePointer(this, core::mem::transmute_copy(&mousepointer)).into() } - unsafe extern "system" fn Locked(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn Locked(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::Locked(this) { Ok(ok__) => { @@ -2607,17 +2001,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLocked(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetLocked(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetLocked(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::Enabled(this) { Ok(ok__) => { @@ -2627,17 +2015,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetEnabled(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn MaxLength(this: *mut core::ffi::c_void, plmaxlength: *mut i32) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn MaxLength(this: *mut core::ffi::c_void, plmaxlength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::MaxLength(this) { Ok(ok__) => { @@ -2647,17 +2029,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMaxLength(this: *mut core::ffi::c_void, lmaxlength: i32) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetMaxLength(this: *mut core::ffi::c_void, lmaxlength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetMaxLength(this, core::mem::transmute_copy(&lmaxlength)).into() } - unsafe extern "system" fn MultiLine(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn MultiLine(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::MultiLine(this) { Ok(ok__) => { @@ -2667,17 +2043,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMultiLine(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetMultiLine(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetMultiLine(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn ScrollBars(this: *mut core::ffi::c_void, pval: *mut ScrollBarsConstants) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn ScrollBars(this: *mut core::ffi::c_void, pval: *mut ScrollBarsConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::ScrollBars(this) { Ok(ok__) => { @@ -2687,17 +2057,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetScrollBars(this: *mut core::ffi::c_void, newval: ScrollBarsConstants) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetScrollBars(this: *mut core::ffi::c_void, newval: ScrollBarsConstants) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetScrollBars(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn DisableNoScroll(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn DisableNoScroll(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::DisableNoScroll(this) { Ok(ok__) => { @@ -2707,17 +2071,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDisableNoScroll(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetDisableNoScroll(this: *mut core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetDisableNoScroll(this, core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn SelAlignment(this: *mut core::ffi::c_void, pvarselalignment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelAlignment(this: *mut core::ffi::c_void, pvarselalignment: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelAlignment(this) { Ok(ok__) => { @@ -2727,17 +2085,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelAlignment(this: *mut core::ffi::c_void, pvarselalignment: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelAlignment(this: *mut core::ffi::c_void, pvarselalignment: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelAlignment(this, core::mem::transmute(&pvarselalignment)).into() } - unsafe extern "system" fn SelBold(this: *mut core::ffi::c_void, pvarselbold: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelBold(this: *mut core::ffi::c_void, pvarselbold: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelBold(this) { Ok(ok__) => { @@ -2747,17 +2099,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelBold(this: *mut core::ffi::c_void, pvarselbold: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelBold(this: *mut core::ffi::c_void, pvarselbold: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelBold(this, core::mem::transmute(&pvarselbold)).into() } - unsafe extern "system" fn SelItalic(this: *mut core::ffi::c_void, pvarselitalic: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelItalic(this: *mut core::ffi::c_void, pvarselitalic: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelItalic(this) { Ok(ok__) => { @@ -2767,17 +2113,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelItalic(this: *mut core::ffi::c_void, pvarselitalic: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelItalic(this: *mut core::ffi::c_void, pvarselitalic: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelItalic(this, core::mem::transmute(&pvarselitalic)).into() } - unsafe extern "system" fn SelUnderline(this: *mut core::ffi::c_void, pvarselunderline: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelUnderline(this: *mut core::ffi::c_void, pvarselunderline: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelUnderline(this) { Ok(ok__) => { @@ -2787,17 +2127,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelUnderline(this: *mut core::ffi::c_void, pvarselunderline: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelUnderline(this: *mut core::ffi::c_void, pvarselunderline: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelUnderline(this, core::mem::transmute(&pvarselunderline)).into() } - unsafe extern "system" fn SelColor(this: *mut core::ffi::c_void, pvarselcolor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelColor(this: *mut core::ffi::c_void, pvarselcolor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelColor(this) { Ok(ok__) => { @@ -2807,17 +2141,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelColor(this: *mut core::ffi::c_void, pvarselcolor: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelColor(this: *mut core::ffi::c_void, pvarselcolor: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelColor(this, core::mem::transmute(&pvarselcolor)).into() } - unsafe extern "system" fn SelFontName(this: *mut core::ffi::c_void, pvarselfontname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelFontName(this: *mut core::ffi::c_void, pvarselfontname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelFontName(this) { Ok(ok__) => { @@ -2827,17 +2155,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelFontName(this: *mut core::ffi::c_void, pvarselfontname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelFontName(this: *mut core::ffi::c_void, pvarselfontname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelFontName(this, core::mem::transmute(&pvarselfontname)).into() } - unsafe extern "system" fn SelFontSize(this: *mut core::ffi::c_void, pvarselfontsize: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelFontSize(this: *mut core::ffi::c_void, pvarselfontsize: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelFontSize(this) { Ok(ok__) => { @@ -2847,17 +2169,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelFontSize(this: *mut core::ffi::c_void, pvarselfontsize: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelFontSize(this: *mut core::ffi::c_void, pvarselfontsize: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelFontSize(this, core::mem::transmute(&pvarselfontsize)).into() } - unsafe extern "system" fn SelCharOffset(this: *mut core::ffi::c_void, pvarselcharoffset: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelCharOffset(this: *mut core::ffi::c_void, pvarselcharoffset: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelCharOffset(this) { Ok(ok__) => { @@ -2867,17 +2183,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelCharOffset(this: *mut core::ffi::c_void, pvarselcharoffset: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelCharOffset(this: *mut core::ffi::c_void, pvarselcharoffset: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelCharOffset(this, core::mem::transmute(&pvarselcharoffset)).into() } - unsafe extern "system" fn TextRTF(this: *mut core::ffi::c_void, pbstrtextrtf: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn TextRTF(this: *mut core::ffi::c_void, pbstrtextrtf: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::TextRTF(this) { Ok(ok__) => { @@ -2887,17 +2197,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTextRTF(this: *mut core::ffi::c_void, pbstrtextrtf: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetTextRTF(this: *mut core::ffi::c_void, pbstrtextrtf: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetTextRTF(this, core::mem::transmute(&pbstrtextrtf)).into() } - unsafe extern "system" fn SelStart(this: *mut core::ffi::c_void, plselstart: *mut i32) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelStart(this: *mut core::ffi::c_void, plselstart: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelStart(this) { Ok(ok__) => { @@ -2907,17 +2211,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelStart(this: *mut core::ffi::c_void, plselstart: i32) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelStart(this: *mut core::ffi::c_void, plselstart: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelStart(this, core::mem::transmute_copy(&plselstart)).into() } - unsafe extern "system" fn SelLength(this: *mut core::ffi::c_void, plsellength: *mut i32) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelLength(this: *mut core::ffi::c_void, plsellength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelLength(this) { Ok(ok__) => { @@ -2927,17 +2225,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelLength(this: *mut core::ffi::c_void, plsellength: i32) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelLength(this: *mut core::ffi::c_void, plsellength: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelLength(this, core::mem::transmute_copy(&plsellength)).into() } - unsafe extern "system" fn SelText(this: *mut core::ffi::c_void, pbstrseltext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelText(this: *mut core::ffi::c_void, pbstrseltext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelText(this) { Ok(ok__) => { @@ -2947,17 +2239,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelText(this: *mut core::ffi::c_void, pbstrseltext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelText(this: *mut core::ffi::c_void, pbstrseltext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelText(this, core::mem::transmute(&pbstrseltext)).into() } - unsafe extern "system" fn SelRTF(this: *mut core::ffi::c_void, pbstrselrtf: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SelRTF(this: *mut core::ffi::c_void, pbstrselrtf: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkEdit_Impl::SelRTF(this) { Ok(ok__) => { @@ -2967,17 +2253,11 @@ impl IInkEdit_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelRTF(this: *mut core::ffi::c_void, pbstrselrtf: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn SetSelRTF(this: *mut core::ffi::c_void, pbstrselrtf: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::SetSelRTF(this, core::mem::transmute(&pbstrselrtf)).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkEdit_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkEdit_Impl::Refresh(this).into() } @@ -3080,14 +2360,8 @@ pub trait IInkExtendedProperties_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IInkExtendedProperties {} #[cfg(feature = "Win32_System_Com")] impl IInkExtendedProperties_Vtbl { - pub const fn new() -> IInkExtendedProperties_Vtbl - where - Identity: IInkExtendedProperties_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IInkExtendedProperties_Impl, - { + pub const fn new() -> IInkExtendedProperties_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkExtendedProperties_Impl::Count(this) { Ok(ok__) => { @@ -3097,10 +2371,7 @@ impl IInkExtendedProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkExtendedProperties_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkExtendedProperties_Impl::_NewEnum(this) { Ok(ok__) => { @@ -3110,10 +2381,7 @@ impl IInkExtendedProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, identifier: core::mem::MaybeUninit, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkExtendedProperties_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, identifier: core::mem::MaybeUninit, item: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkExtendedProperties_Impl::Item(this, core::mem::transmute(&identifier)) { Ok(ok__) => { @@ -3123,10 +2391,7 @@ impl IInkExtendedProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit, data: core::mem::MaybeUninit, inkextendedproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkExtendedProperties_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit, data: core::mem::MaybeUninit, inkextendedproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkExtendedProperties_Impl::Add(this, core::mem::transmute(&guid), core::mem::transmute(&data)) { Ok(ok__) => { @@ -3136,24 +2401,15 @@ impl IInkExtendedProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, identifier: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkExtendedProperties_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, identifier: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkExtendedProperties_Impl::Remove(this, core::mem::transmute(&identifier)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkExtendedProperties_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkExtendedProperties_Impl::Clear(this).into() } - unsafe extern "system" fn DoesPropertyExist(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit, doespropertyexist: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkExtendedProperties_Impl, - { + unsafe extern "system" fn DoesPropertyExist(this: *mut core::ffi::c_void, guid: core::mem::MaybeUninit, doespropertyexist: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkExtendedProperties_Impl::DoesPropertyExist(this, core::mem::transmute(&guid)) { Ok(ok__) => { @@ -3188,14 +2444,8 @@ pub trait IInkExtendedProperty_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for IInkExtendedProperty {} #[cfg(feature = "Win32_System_Com")] impl IInkExtendedProperty_Vtbl { - pub const fn new() -> IInkExtendedProperty_Vtbl - where - Identity: IInkExtendedProperty_Impl, - { - unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, guid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkExtendedProperty_Impl, - { + pub const fn new() -> IInkExtendedProperty_Vtbl { + unsafe extern "system" fn Guid(this: *mut core::ffi::c_void, guid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkExtendedProperty_Impl::Guid(this) { Ok(ok__) => { @@ -3205,10 +2455,7 @@ impl IInkExtendedProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, data: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkExtendedProperty_Impl, - { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, data: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkExtendedProperty_Impl::Data(this) { Ok(ok__) => { @@ -3218,10 +2465,7 @@ impl IInkExtendedProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkExtendedProperty_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, data: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkExtendedProperty_Impl::SetData(this, core::mem::transmute(&data)).into() } @@ -3246,14 +2490,8 @@ pub trait IInkGesture_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkGesture {} #[cfg(feature = "Win32_System_Com")] impl IInkGesture_Vtbl { - pub const fn new() -> IInkGesture_Vtbl - where - Identity: IInkGesture_Impl, - { - unsafe extern "system" fn Confidence(this: *mut core::ffi::c_void, confidence: *mut InkRecognitionConfidence) -> windows_core::HRESULT - where - Identity: IInkGesture_Impl, - { + pub const fn new() -> IInkGesture_Vtbl { + unsafe extern "system" fn Confidence(this: *mut core::ffi::c_void, confidence: *mut InkRecognitionConfidence) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkGesture_Impl::Confidence(this) { Ok(ok__) => { @@ -3263,10 +2501,7 @@ impl IInkGesture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut InkApplicationGesture) -> windows_core::HRESULT - where - Identity: IInkGesture_Impl, - { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, id: *mut InkApplicationGesture) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkGesture_Impl::Id(this) { Ok(ok__) => { @@ -3276,10 +2511,7 @@ impl IInkGesture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHotPoint(this: *mut core::ffi::c_void, x: *mut i32, y: *mut i32) -> windows_core::HRESULT - where - Identity: IInkGesture_Impl, - { + unsafe extern "system" fn GetHotPoint(this: *mut core::ffi::c_void, x: *mut i32, y: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkGesture_Impl::GetHotPoint(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } @@ -3294,7 +2526,7 @@ impl IInkGesture_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IInkLineInfo_Impl: Sized { +pub trait IInkLineInfo_Impl: Sized + windows_core::IUnknownImpl { fn SetFormat(&self, pim: *const INKMETRIC) -> windows_core::Result<()>; fn GetFormat(&self, pim: *const INKMETRIC) -> windows_core::Result<()>; fn GetInkExtent(&self, pim: *const INKMETRIC, pnwidth: *const u32) -> windows_core::Result<()>; @@ -3304,49 +2536,28 @@ pub trait IInkLineInfo_Impl: Sized { } impl windows_core::RuntimeName for IInkLineInfo {} impl IInkLineInfo_Vtbl { - pub const fn new() -> IInkLineInfo_Vtbl - where - Identity: IInkLineInfo_Impl, - { - unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pim: *const INKMETRIC) -> windows_core::HRESULT - where - Identity: IInkLineInfo_Impl, - { + pub const fn new() -> IInkLineInfo_Vtbl { + unsafe extern "system" fn SetFormat(this: *mut core::ffi::c_void, pim: *const INKMETRIC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkLineInfo_Impl::SetFormat(this, core::mem::transmute_copy(&pim)).into() } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pim: *const INKMETRIC) -> windows_core::HRESULT - where - Identity: IInkLineInfo_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, pim: *const INKMETRIC) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkLineInfo_Impl::GetFormat(this, core::mem::transmute_copy(&pim)).into() } - unsafe extern "system" fn GetInkExtent(this: *mut core::ffi::c_void, pim: *const INKMETRIC, pnwidth: *const u32) -> windows_core::HRESULT - where - Identity: IInkLineInfo_Impl, - { + unsafe extern "system" fn GetInkExtent(this: *mut core::ffi::c_void, pim: *const INKMETRIC, pnwidth: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkLineInfo_Impl::GetInkExtent(this, core::mem::transmute_copy(&pim), core::mem::transmute_copy(&pnwidth)).into() } - unsafe extern "system" fn GetCandidate(this: *mut core::ffi::c_void, ncandidatenum: u32, pwcrecogword: windows_core::PCWSTR, pcwcrecogword: *const u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: IInkLineInfo_Impl, - { + unsafe extern "system" fn GetCandidate(this: *mut core::ffi::c_void, ncandidatenum: u32, pwcrecogword: windows_core::PCWSTR, pcwcrecogword: *const u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkLineInfo_Impl::GetCandidate(this, core::mem::transmute_copy(&ncandidatenum), core::mem::transmute(&pwcrecogword), core::mem::transmute_copy(&pcwcrecogword), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SetCandidate(this: *mut core::ffi::c_void, ncandidatenum: u32, strrecogword: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IInkLineInfo_Impl, - { + unsafe extern "system" fn SetCandidate(this: *mut core::ffi::c_void, ncandidatenum: u32, strrecogword: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkLineInfo_Impl::SetCandidate(this, core::mem::transmute_copy(&ncandidatenum), core::mem::transmute(&strrecogword)).into() } - unsafe extern "system" fn Recognize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkLineInfo_Impl, - { + unsafe extern "system" fn Recognize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkLineInfo_Impl::Recognize(this).into() } @@ -3425,14 +2636,8 @@ pub trait IInkOverlay_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkOverlay {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkOverlay_Vtbl { - pub const fn new() -> IInkOverlay_Vtbl - where - Identity: IInkOverlay_Impl, - { - unsafe extern "system" fn hWnd(this: *mut core::ffi::c_void, currentwindow: *mut isize) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + pub const fn new() -> IInkOverlay_Vtbl { + unsafe extern "system" fn hWnd(this: *mut core::ffi::c_void, currentwindow: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::hWnd(this) { Ok(ok__) => { @@ -3442,17 +2647,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SethWnd(this: *mut core::ffi::c_void, newwindow: isize) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SethWnd(this: *mut core::ffi::c_void, newwindow: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SethWnd(this, core::mem::transmute_copy(&newwindow)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::Enabled(this) { Ok(ok__) => { @@ -3462,17 +2661,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, collecting: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, collecting: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetEnabled(this, core::mem::transmute_copy(&collecting)).into() } - unsafe extern "system" fn DefaultDrawingAttributes(this: *mut core::ffi::c_void, currentattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn DefaultDrawingAttributes(this: *mut core::ffi::c_void, currentattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::DefaultDrawingAttributes(this) { Ok(ok__) => { @@ -3482,17 +2675,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_DefaultDrawingAttributes(this: *mut core::ffi::c_void, newattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn putref_DefaultDrawingAttributes(this: *mut core::ffi::c_void, newattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::putref_DefaultDrawingAttributes(this, windows_core::from_raw_borrowed(&newattributes)).into() } - unsafe extern "system" fn Renderer(this: *mut core::ffi::c_void, currentinkrenderer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn Renderer(this: *mut core::ffi::c_void, currentinkrenderer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::Renderer(this) { Ok(ok__) => { @@ -3502,17 +2689,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Renderer(this: *mut core::ffi::c_void, newinkrenderer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn putref_Renderer(this: *mut core::ffi::c_void, newinkrenderer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::putref_Renderer(this, windows_core::from_raw_borrowed(&newinkrenderer)).into() } - unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::Ink(this) { Ok(ok__) => { @@ -3522,17 +2703,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Ink(this: *mut core::ffi::c_void, newink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn putref_Ink(this: *mut core::ffi::c_void, newink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::putref_Ink(this, windows_core::from_raw_borrowed(&newink)).into() } - unsafe extern "system" fn AutoRedraw(this: *mut core::ffi::c_void, autoredraw: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn AutoRedraw(this: *mut core::ffi::c_void, autoredraw: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::AutoRedraw(this) { Ok(ok__) => { @@ -3542,17 +2717,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoRedraw(this: *mut core::ffi::c_void, autoredraw: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetAutoRedraw(this: *mut core::ffi::c_void, autoredraw: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetAutoRedraw(this, core::mem::transmute_copy(&autoredraw)).into() } - unsafe extern "system" fn CollectingInk(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn CollectingInk(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::CollectingInk(this) { Ok(ok__) => { @@ -3562,10 +2731,7 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CollectionMode(this: *mut core::ffi::c_void, mode: *mut InkCollectionMode) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn CollectionMode(this: *mut core::ffi::c_void, mode: *mut InkCollectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::CollectionMode(this) { Ok(ok__) => { @@ -3575,17 +2741,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCollectionMode(this: *mut core::ffi::c_void, mode: InkCollectionMode) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetCollectionMode(this: *mut core::ffi::c_void, mode: InkCollectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetCollectionMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn DynamicRendering(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn DynamicRendering(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::DynamicRendering(this) { Ok(ok__) => { @@ -3595,17 +2755,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDynamicRendering(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetDynamicRendering(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetDynamicRendering(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn DesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn DesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::DesiredPacketDescription(this) { Ok(ok__) => { @@ -3615,17 +2769,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetDesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetDesiredPacketDescription(this, core::mem::transmute(&packetguids)).into() } - unsafe extern "system" fn MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::MouseIcon(this) { Ok(ok__) => { @@ -3635,24 +2783,15 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetMouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetMouseIcon(this, windows_core::from_raw_borrowed(&mouseicon)).into() } - unsafe extern "system" fn putref_MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn putref_MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::putref_MouseIcon(this, windows_core::from_raw_borrowed(&mouseicon)).into() } - unsafe extern "system" fn MousePointer(this: *mut core::ffi::c_void, mousepointer: *mut InkMousePointer) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn MousePointer(this: *mut core::ffi::c_void, mousepointer: *mut InkMousePointer) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::MousePointer(this) { Ok(ok__) => { @@ -3662,17 +2801,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMousePointer(this: *mut core::ffi::c_void, mousepointer: InkMousePointer) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetMousePointer(this: *mut core::ffi::c_void, mousepointer: InkMousePointer) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetMousePointer(this, core::mem::transmute_copy(&mousepointer)).into() } - unsafe extern "system" fn EditingMode(this: *mut core::ffi::c_void, editingmode: *mut InkOverlayEditingMode) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn EditingMode(this: *mut core::ffi::c_void, editingmode: *mut InkOverlayEditingMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::EditingMode(this) { Ok(ok__) => { @@ -3682,17 +2815,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEditingMode(this: *mut core::ffi::c_void, editingmode: InkOverlayEditingMode) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetEditingMode(this: *mut core::ffi::c_void, editingmode: InkOverlayEditingMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetEditingMode(this, core::mem::transmute_copy(&editingmode)).into() } - unsafe extern "system" fn Selection(this: *mut core::ffi::c_void, selection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn Selection(this: *mut core::ffi::c_void, selection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::Selection(this) { Ok(ok__) => { @@ -3702,17 +2829,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, selection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, selection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetSelection(this, windows_core::from_raw_borrowed(&selection)).into() } - unsafe extern "system" fn EraserMode(this: *mut core::ffi::c_void, erasermode: *mut InkOverlayEraserMode) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn EraserMode(this: *mut core::ffi::c_void, erasermode: *mut InkOverlayEraserMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::EraserMode(this) { Ok(ok__) => { @@ -3722,17 +2843,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEraserMode(this: *mut core::ffi::c_void, erasermode: InkOverlayEraserMode) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetEraserMode(this: *mut core::ffi::c_void, erasermode: InkOverlayEraserMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetEraserMode(this, core::mem::transmute_copy(&erasermode)).into() } - unsafe extern "system" fn EraserWidth(this: *mut core::ffi::c_void, eraserwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn EraserWidth(this: *mut core::ffi::c_void, eraserwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::EraserWidth(this) { Ok(ok__) => { @@ -3742,17 +2857,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEraserWidth(this: *mut core::ffi::c_void, neweraserwidth: i32) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetEraserWidth(this: *mut core::ffi::c_void, neweraserwidth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetEraserWidth(this, core::mem::transmute_copy(&neweraserwidth)).into() } - unsafe extern "system" fn AttachMode(this: *mut core::ffi::c_void, attachmode: *mut InkOverlayAttachMode) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn AttachMode(this: *mut core::ffi::c_void, attachmode: *mut InkOverlayAttachMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::AttachMode(this) { Ok(ok__) => { @@ -3762,17 +2871,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttachMode(this: *mut core::ffi::c_void, attachmode: InkOverlayAttachMode) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetAttachMode(this: *mut core::ffi::c_void, attachmode: InkOverlayAttachMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetAttachMode(this, core::mem::transmute_copy(&attachmode)).into() } - unsafe extern "system" fn Cursors(this: *mut core::ffi::c_void, cursors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn Cursors(this: *mut core::ffi::c_void, cursors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::Cursors(this) { Ok(ok__) => { @@ -3782,10 +2885,7 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MarginX(this: *mut core::ffi::c_void, marginx: *mut i32) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn MarginX(this: *mut core::ffi::c_void, marginx: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::MarginX(this) { Ok(ok__) => { @@ -3795,17 +2895,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMarginX(this: *mut core::ffi::c_void, marginx: i32) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetMarginX(this: *mut core::ffi::c_void, marginx: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetMarginX(this, core::mem::transmute_copy(&marginx)).into() } - unsafe extern "system" fn MarginY(this: *mut core::ffi::c_void, marginy: *mut i32) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn MarginY(this: *mut core::ffi::c_void, marginy: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::MarginY(this) { Ok(ok__) => { @@ -3815,17 +2909,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMarginY(this: *mut core::ffi::c_void, marginy: i32) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetMarginY(this: *mut core::ffi::c_void, marginy: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetMarginY(this, core::mem::transmute_copy(&marginy)).into() } - unsafe extern "system" fn Tablet(this: *mut core::ffi::c_void, singletablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn Tablet(this: *mut core::ffi::c_void, singletablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::Tablet(this) { Ok(ok__) => { @@ -3835,10 +2923,7 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportHighContrastInk(this: *mut core::ffi::c_void, support: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SupportHighContrastInk(this: *mut core::ffi::c_void, support: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::SupportHighContrastInk(this) { Ok(ok__) => { @@ -3848,17 +2933,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSupportHighContrastInk(this: *mut core::ffi::c_void, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetSupportHighContrastInk(this: *mut core::ffi::c_void, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetSupportHighContrastInk(this, core::mem::transmute_copy(&support)).into() } - unsafe extern "system" fn SupportHighContrastSelectionUI(this: *mut core::ffi::c_void, support: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SupportHighContrastSelectionUI(this: *mut core::ffi::c_void, support: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::SupportHighContrastSelectionUI(this) { Ok(ok__) => { @@ -3868,17 +2947,11 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSupportHighContrastSelectionUI(this: *mut core::ffi::c_void, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetSupportHighContrastSelectionUI(this: *mut core::ffi::c_void, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetSupportHighContrastSelectionUI(this, core::mem::transmute_copy(&support)).into() } - unsafe extern "system" fn HitTestSelection(this: *mut core::ffi::c_void, x: i32, y: i32, selarea: *mut SelectionHitResult) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn HitTestSelection(this: *mut core::ffi::c_void, x: i32, y: i32, selarea: *mut SelectionHitResult) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::HitTestSelection(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)) { Ok(ok__) => { @@ -3888,24 +2961,15 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, rect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, rect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::Draw(this, windows_core::from_raw_borrowed(&rect)).into() } - unsafe extern "system" fn SetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetGestureStatus(this, core::mem::transmute_copy(&gesture), core::mem::transmute_copy(&listen)).into() } - unsafe extern "system" fn GetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listening: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn GetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listening: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::GetGestureStatus(this, core::mem::transmute_copy(&gesture)) { Ok(ok__) => { @@ -3915,38 +2979,23 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn GetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::GetWindowInputRectangle(this, core::mem::transmute_copy(&windowinputrectangle)).into() } - unsafe extern "system" fn SetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetWindowInputRectangle(this, windows_core::from_raw_borrowed(&windowinputrectangle)).into() } - unsafe extern "system" fn SetAllTabletsMode(this: *mut core::ffi::c_void, usemouseforinput: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetAllTabletsMode(this: *mut core::ffi::c_void, usemouseforinput: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetAllTabletsMode(this, core::mem::transmute_copy(&usemouseforinput)).into() } - unsafe extern "system" fn SetSingleTabletIntegratedMode(this: *mut core::ffi::c_void, tablet: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetSingleTabletIntegratedMode(this: *mut core::ffi::c_void, tablet: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetSingleTabletIntegratedMode(this, windows_core::from_raw_borrowed(&tablet)).into() } - unsafe extern "system" fn GetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn GetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkOverlay_Impl::GetEventInterest(this, core::mem::transmute_copy(&eventid)) { Ok(ok__) => { @@ -3956,10 +3005,7 @@ impl IInkOverlay_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkOverlay_Impl, - { + unsafe extern "system" fn SetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkOverlay_Impl::SetEventInterest(this, core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&listen)).into() } @@ -4091,14 +3137,8 @@ pub trait IInkPicture_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkPicture {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkPicture_Vtbl { - pub const fn new() -> IInkPicture_Vtbl - where - Identity: IInkPicture_Impl, - { - unsafe extern "system" fn hWnd(this: *mut core::ffi::c_void, currentwindow: *mut isize) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + pub const fn new() -> IInkPicture_Vtbl { + unsafe extern "system" fn hWnd(this: *mut core::ffi::c_void, currentwindow: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::hWnd(this) { Ok(ok__) => { @@ -4108,10 +3148,7 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultDrawingAttributes(this: *mut core::ffi::c_void, currentattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn DefaultDrawingAttributes(this: *mut core::ffi::c_void, currentattributes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::DefaultDrawingAttributes(this) { Ok(ok__) => { @@ -4121,17 +3158,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_DefaultDrawingAttributes(this: *mut core::ffi::c_void, newattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn putref_DefaultDrawingAttributes(this: *mut core::ffi::c_void, newattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::putref_DefaultDrawingAttributes(this, windows_core::from_raw_borrowed(&newattributes)).into() } - unsafe extern "system" fn Renderer(this: *mut core::ffi::c_void, currentinkrenderer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn Renderer(this: *mut core::ffi::c_void, currentinkrenderer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::Renderer(this) { Ok(ok__) => { @@ -4141,17 +3172,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Renderer(this: *mut core::ffi::c_void, newinkrenderer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn putref_Renderer(this: *mut core::ffi::c_void, newinkrenderer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::putref_Renderer(this, windows_core::from_raw_borrowed(&newinkrenderer)).into() } - unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::Ink(this) { Ok(ok__) => { @@ -4161,17 +3186,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Ink(this: *mut core::ffi::c_void, newink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn putref_Ink(this: *mut core::ffi::c_void, newink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::putref_Ink(this, windows_core::from_raw_borrowed(&newink)).into() } - unsafe extern "system" fn AutoRedraw(this: *mut core::ffi::c_void, autoredraw: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn AutoRedraw(this: *mut core::ffi::c_void, autoredraw: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::AutoRedraw(this) { Ok(ok__) => { @@ -4181,17 +3200,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoRedraw(this: *mut core::ffi::c_void, autoredraw: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetAutoRedraw(this: *mut core::ffi::c_void, autoredraw: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetAutoRedraw(this, core::mem::transmute_copy(&autoredraw)).into() } - unsafe extern "system" fn CollectingInk(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn CollectingInk(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::CollectingInk(this) { Ok(ok__) => { @@ -4201,10 +3214,7 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CollectionMode(this: *mut core::ffi::c_void, mode: *mut InkCollectionMode) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn CollectionMode(this: *mut core::ffi::c_void, mode: *mut InkCollectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::CollectionMode(this) { Ok(ok__) => { @@ -4214,17 +3224,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCollectionMode(this: *mut core::ffi::c_void, mode: InkCollectionMode) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetCollectionMode(this: *mut core::ffi::c_void, mode: InkCollectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetCollectionMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn DynamicRendering(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn DynamicRendering(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::DynamicRendering(this) { Ok(ok__) => { @@ -4234,17 +3238,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDynamicRendering(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetDynamicRendering(this: *mut core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetDynamicRendering(this, core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn DesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn DesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::DesiredPacketDescription(this) { Ok(ok__) => { @@ -4254,17 +3252,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetDesiredPacketDescription(this: *mut core::ffi::c_void, packetguids: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetDesiredPacketDescription(this, core::mem::transmute(&packetguids)).into() } - unsafe extern "system" fn MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::MouseIcon(this) { Ok(ok__) => { @@ -4274,24 +3266,15 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetMouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetMouseIcon(this, windows_core::from_raw_borrowed(&mouseicon)).into() } - unsafe extern "system" fn putref_MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn putref_MouseIcon(this: *mut core::ffi::c_void, mouseicon: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::putref_MouseIcon(this, windows_core::from_raw_borrowed(&mouseicon)).into() } - unsafe extern "system" fn MousePointer(this: *mut core::ffi::c_void, mousepointer: *mut InkMousePointer) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn MousePointer(this: *mut core::ffi::c_void, mousepointer: *mut InkMousePointer) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::MousePointer(this) { Ok(ok__) => { @@ -4301,17 +3284,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMousePointer(this: *mut core::ffi::c_void, mousepointer: InkMousePointer) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetMousePointer(this: *mut core::ffi::c_void, mousepointer: InkMousePointer) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetMousePointer(this, core::mem::transmute_copy(&mousepointer)).into() } - unsafe extern "system" fn EditingMode(this: *mut core::ffi::c_void, editingmode: *mut InkOverlayEditingMode) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn EditingMode(this: *mut core::ffi::c_void, editingmode: *mut InkOverlayEditingMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::EditingMode(this) { Ok(ok__) => { @@ -4321,17 +3298,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEditingMode(this: *mut core::ffi::c_void, editingmode: InkOverlayEditingMode) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetEditingMode(this: *mut core::ffi::c_void, editingmode: InkOverlayEditingMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetEditingMode(this, core::mem::transmute_copy(&editingmode)).into() } - unsafe extern "system" fn Selection(this: *mut core::ffi::c_void, selection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn Selection(this: *mut core::ffi::c_void, selection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::Selection(this) { Ok(ok__) => { @@ -4341,17 +3312,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, selection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, selection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetSelection(this, windows_core::from_raw_borrowed(&selection)).into() } - unsafe extern "system" fn EraserMode(this: *mut core::ffi::c_void, erasermode: *mut InkOverlayEraserMode) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn EraserMode(this: *mut core::ffi::c_void, erasermode: *mut InkOverlayEraserMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::EraserMode(this) { Ok(ok__) => { @@ -4361,17 +3326,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEraserMode(this: *mut core::ffi::c_void, erasermode: InkOverlayEraserMode) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetEraserMode(this: *mut core::ffi::c_void, erasermode: InkOverlayEraserMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetEraserMode(this, core::mem::transmute_copy(&erasermode)).into() } - unsafe extern "system" fn EraserWidth(this: *mut core::ffi::c_void, eraserwidth: *mut i32) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn EraserWidth(this: *mut core::ffi::c_void, eraserwidth: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::EraserWidth(this) { Ok(ok__) => { @@ -4381,31 +3340,19 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEraserWidth(this: *mut core::ffi::c_void, neweraserwidth: i32) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetEraserWidth(this: *mut core::ffi::c_void, neweraserwidth: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetEraserWidth(this, core::mem::transmute_copy(&neweraserwidth)).into() } - unsafe extern "system" fn putref_Picture(this: *mut core::ffi::c_void, ppicture: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn putref_Picture(this: *mut core::ffi::c_void, ppicture: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::putref_Picture(this, windows_core::from_raw_borrowed(&ppicture)).into() } - unsafe extern "system" fn SetPicture(this: *mut core::ffi::c_void, ppicture: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetPicture(this: *mut core::ffi::c_void, ppicture: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetPicture(this, windows_core::from_raw_borrowed(&ppicture)).into() } - unsafe extern "system" fn Picture(this: *mut core::ffi::c_void, pppicture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn Picture(this: *mut core::ffi::c_void, pppicture: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::Picture(this) { Ok(ok__) => { @@ -4415,17 +3362,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSizeMode(this: *mut core::ffi::c_void, smnewsizemode: InkPictureSizeMode) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetSizeMode(this: *mut core::ffi::c_void, smnewsizemode: InkPictureSizeMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetSizeMode(this, core::mem::transmute_copy(&smnewsizemode)).into() } - unsafe extern "system" fn SizeMode(this: *mut core::ffi::c_void, smsizemode: *mut InkPictureSizeMode) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SizeMode(this: *mut core::ffi::c_void, smsizemode: *mut InkPictureSizeMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::SizeMode(this) { Ok(ok__) => { @@ -4435,17 +3376,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, newcolor: u32) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetBackColor(this: *mut core::ffi::c_void, newcolor: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetBackColor(this, core::mem::transmute_copy(&newcolor)).into() } - unsafe extern "system" fn BackColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn BackColor(this: *mut core::ffi::c_void, pcolor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::BackColor(this) { Ok(ok__) => { @@ -4455,10 +3390,7 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Cursors(this: *mut core::ffi::c_void, cursors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn Cursors(this: *mut core::ffi::c_void, cursors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::Cursors(this) { Ok(ok__) => { @@ -4468,10 +3400,7 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MarginX(this: *mut core::ffi::c_void, marginx: *mut i32) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn MarginX(this: *mut core::ffi::c_void, marginx: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::MarginX(this) { Ok(ok__) => { @@ -4481,17 +3410,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMarginX(this: *mut core::ffi::c_void, marginx: i32) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetMarginX(this: *mut core::ffi::c_void, marginx: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetMarginX(this, core::mem::transmute_copy(&marginx)).into() } - unsafe extern "system" fn MarginY(this: *mut core::ffi::c_void, marginy: *mut i32) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn MarginY(this: *mut core::ffi::c_void, marginy: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::MarginY(this) { Ok(ok__) => { @@ -4501,17 +3424,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMarginY(this: *mut core::ffi::c_void, marginy: i32) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetMarginY(this: *mut core::ffi::c_void, marginy: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetMarginY(this, core::mem::transmute_copy(&marginy)).into() } - unsafe extern "system" fn Tablet(this: *mut core::ffi::c_void, singletablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn Tablet(this: *mut core::ffi::c_void, singletablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::Tablet(this) { Ok(ok__) => { @@ -4521,10 +3438,7 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportHighContrastInk(this: *mut core::ffi::c_void, support: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SupportHighContrastInk(this: *mut core::ffi::c_void, support: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::SupportHighContrastInk(this) { Ok(ok__) => { @@ -4534,17 +3448,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSupportHighContrastInk(this: *mut core::ffi::c_void, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetSupportHighContrastInk(this: *mut core::ffi::c_void, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetSupportHighContrastInk(this, core::mem::transmute_copy(&support)).into() } - unsafe extern "system" fn SupportHighContrastSelectionUI(this: *mut core::ffi::c_void, support: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SupportHighContrastSelectionUI(this: *mut core::ffi::c_void, support: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::SupportHighContrastSelectionUI(this) { Ok(ok__) => { @@ -4554,17 +3462,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSupportHighContrastSelectionUI(this: *mut core::ffi::c_void, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetSupportHighContrastSelectionUI(this: *mut core::ffi::c_void, support: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetSupportHighContrastSelectionUI(this, core::mem::transmute_copy(&support)).into() } - unsafe extern "system" fn HitTestSelection(this: *mut core::ffi::c_void, x: i32, y: i32, selarea: *mut SelectionHitResult) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn HitTestSelection(this: *mut core::ffi::c_void, x: i32, y: i32, selarea: *mut SelectionHitResult) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::HitTestSelection(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)) { Ok(ok__) => { @@ -4574,17 +3476,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetGestureStatus(this, core::mem::transmute_copy(&gesture), core::mem::transmute_copy(&listen)).into() } - unsafe extern "system" fn GetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listening: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn GetGestureStatus(this: *mut core::ffi::c_void, gesture: InkApplicationGesture, listening: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::GetGestureStatus(this, core::mem::transmute_copy(&gesture)) { Ok(ok__) => { @@ -4594,38 +3490,23 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn GetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::GetWindowInputRectangle(this, core::mem::transmute_copy(&windowinputrectangle)).into() } - unsafe extern "system" fn SetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetWindowInputRectangle(this: *mut core::ffi::c_void, windowinputrectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetWindowInputRectangle(this, windows_core::from_raw_borrowed(&windowinputrectangle)).into() } - unsafe extern "system" fn SetAllTabletsMode(this: *mut core::ffi::c_void, usemouseforinput: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetAllTabletsMode(this: *mut core::ffi::c_void, usemouseforinput: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetAllTabletsMode(this, core::mem::transmute_copy(&usemouseforinput)).into() } - unsafe extern "system" fn SetSingleTabletIntegratedMode(this: *mut core::ffi::c_void, tablet: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetSingleTabletIntegratedMode(this: *mut core::ffi::c_void, tablet: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetSingleTabletIntegratedMode(this, windows_core::from_raw_borrowed(&tablet)).into() } - unsafe extern "system" fn GetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn GetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::GetEventInterest(this, core::mem::transmute_copy(&eventid)) { Ok(ok__) => { @@ -4635,17 +3516,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetEventInterest(this: *mut core::ffi::c_void, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetEventInterest(this, core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&listen)).into() } - unsafe extern "system" fn InkEnabled(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn InkEnabled(this: *mut core::ffi::c_void, collecting: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::InkEnabled(this) { Ok(ok__) => { @@ -4655,17 +3530,11 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInkEnabled(this: *mut core::ffi::c_void, collecting: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetInkEnabled(this: *mut core::ffi::c_void, collecting: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetInkEnabled(this, core::mem::transmute_copy(&collecting)).into() } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkPicture_Impl::Enabled(this) { Ok(ok__) => { @@ -4675,10 +3544,7 @@ impl IInkPicture_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, vbool: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkPicture_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, vbool: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkPicture_Impl::SetEnabled(this, core::mem::transmute_copy(&vbool)).into() } @@ -4771,14 +3637,8 @@ pub trait IInkRecognitionAlternate_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for IInkRecognitionAlternate {} #[cfg(feature = "Win32_System_Com")] impl IInkRecognitionAlternate_Vtbl { - pub const fn new() -> IInkRecognitionAlternate_Vtbl - where - Identity: IInkRecognitionAlternate_Impl, - { - unsafe extern "system" fn String(this: *mut core::ffi::c_void, recostring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + pub const fn new() -> IInkRecognitionAlternate_Vtbl { + unsafe extern "system" fn String(this: *mut core::ffi::c_void, recostring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::String(this) { Ok(ok__) => { @@ -4788,10 +3648,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Confidence(this: *mut core::ffi::c_void, confidence: *mut InkRecognitionConfidence) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn Confidence(this: *mut core::ffi::c_void, confidence: *mut InkRecognitionConfidence) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::Confidence(this) { Ok(ok__) => { @@ -4801,10 +3658,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Baseline(this: *mut core::ffi::c_void, baseline: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn Baseline(this: *mut core::ffi::c_void, baseline: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::Baseline(this) { Ok(ok__) => { @@ -4814,10 +3668,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Midline(this: *mut core::ffi::c_void, midline: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn Midline(this: *mut core::ffi::c_void, midline: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::Midline(this) { Ok(ok__) => { @@ -4827,10 +3678,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Ascender(this: *mut core::ffi::c_void, ascender: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn Ascender(this: *mut core::ffi::c_void, ascender: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::Ascender(this) { Ok(ok__) => { @@ -4840,10 +3688,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Descender(this: *mut core::ffi::c_void, descender: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn Descender(this: *mut core::ffi::c_void, descender: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::Descender(this) { Ok(ok__) => { @@ -4853,10 +3698,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LineNumber(this: *mut core::ffi::c_void, linenumber: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn LineNumber(this: *mut core::ffi::c_void, linenumber: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::LineNumber(this) { Ok(ok__) => { @@ -4866,10 +3708,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::Strokes(this) { Ok(ok__) => { @@ -4879,10 +3718,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LineAlternates(this: *mut core::ffi::c_void, linealternates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn LineAlternates(this: *mut core::ffi::c_void, linealternates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::LineAlternates(this) { Ok(ok__) => { @@ -4892,10 +3728,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConfidenceAlternates(this: *mut core::ffi::c_void, confidencealternates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn ConfidenceAlternates(this: *mut core::ffi::c_void, confidencealternates: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::ConfidenceAlternates(this) { Ok(ok__) => { @@ -4905,10 +3738,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStrokesFromStrokeRanges(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, getstrokesfromstrokeranges: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn GetStrokesFromStrokeRanges(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, getstrokesfromstrokeranges: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::GetStrokesFromStrokeRanges(this, windows_core::from_raw_borrowed(&strokes)) { Ok(ok__) => { @@ -4918,24 +3748,15 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStrokesFromTextRange(this: *mut core::ffi::c_void, selectionstart: *mut i32, selectionlength: *mut i32, getstrokesfromtextrange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn GetStrokesFromTextRange(this: *mut core::ffi::c_void, selectionstart: *mut i32, selectionlength: *mut i32, getstrokesfromtextrange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognitionAlternate_Impl::GetStrokesFromTextRange(this, core::mem::transmute_copy(&selectionstart), core::mem::transmute_copy(&selectionlength), core::mem::transmute_copy(&getstrokesfromtextrange)).into() } - unsafe extern "system" fn GetTextRangeFromStrokes(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, selectionstart: *mut i32, selectionlength: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn GetTextRangeFromStrokes(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, selectionstart: *mut i32, selectionlength: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognitionAlternate_Impl::GetTextRangeFromStrokes(this, windows_core::from_raw_borrowed(&strokes), core::mem::transmute_copy(&selectionstart), core::mem::transmute_copy(&selectionlength)).into() } - unsafe extern "system" fn AlternatesWithConstantPropertyValues(this: *mut core::ffi::c_void, propertytype: core::mem::MaybeUninit, alternateswithconstantpropertyvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn AlternatesWithConstantPropertyValues(this: *mut core::ffi::c_void, propertytype: core::mem::MaybeUninit, alternateswithconstantpropertyvalues: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::AlternatesWithConstantPropertyValues(this, core::mem::transmute(&propertytype)) { Ok(ok__) => { @@ -4945,10 +3766,7 @@ impl IInkRecognitionAlternate_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyValue(this: *mut core::ffi::c_void, propertytype: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternate_Impl, - { + unsafe extern "system" fn GetPropertyValue(this: *mut core::ffi::c_void, propertytype: core::mem::MaybeUninit, propertyvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternate_Impl::GetPropertyValue(this, core::mem::transmute(&propertytype)) { Ok(ok__) => { @@ -4992,14 +3810,8 @@ pub trait IInkRecognitionAlternates_Impl: Sized + super::super::System::Com::IDi impl windows_core::RuntimeName for IInkRecognitionAlternates {} #[cfg(feature = "Win32_System_Com")] impl IInkRecognitionAlternates_Vtbl { - pub const fn new() -> IInkRecognitionAlternates_Vtbl - where - Identity: IInkRecognitionAlternates_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternates_Impl, - { + pub const fn new() -> IInkRecognitionAlternates_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternates_Impl::Count(this) { Ok(ok__) => { @@ -5009,10 +3821,7 @@ impl IInkRecognitionAlternates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternates_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternates_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5022,10 +3831,7 @@ impl IInkRecognitionAlternates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternates_Impl, - { + unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternates_Impl::Strokes(this) { Ok(ok__) => { @@ -5035,10 +3841,7 @@ impl IInkRecognitionAlternates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, inkrecoalternate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionAlternates_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, inkrecoalternate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionAlternates_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5074,14 +3877,8 @@ pub trait IInkRecognitionResult_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for IInkRecognitionResult {} #[cfg(feature = "Win32_System_Com")] impl IInkRecognitionResult_Vtbl { - pub const fn new() -> IInkRecognitionResult_Vtbl - where - Identity: IInkRecognitionResult_Impl, - { - unsafe extern "system" fn TopString(this: *mut core::ffi::c_void, topstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognitionResult_Impl, - { + pub const fn new() -> IInkRecognitionResult_Vtbl { + unsafe extern "system" fn TopString(this: *mut core::ffi::c_void, topstring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionResult_Impl::TopString(this) { Ok(ok__) => { @@ -5091,10 +3888,7 @@ impl IInkRecognitionResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TopAlternate(this: *mut core::ffi::c_void, topalternate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionResult_Impl, - { + unsafe extern "system" fn TopAlternate(this: *mut core::ffi::c_void, topalternate: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionResult_Impl::TopAlternate(this) { Ok(ok__) => { @@ -5104,10 +3898,7 @@ impl IInkRecognitionResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TopConfidence(this: *mut core::ffi::c_void, topconfidence: *mut InkRecognitionConfidence) -> windows_core::HRESULT - where - Identity: IInkRecognitionResult_Impl, - { + unsafe extern "system" fn TopConfidence(this: *mut core::ffi::c_void, topconfidence: *mut InkRecognitionConfidence) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionResult_Impl::TopConfidence(this) { Ok(ok__) => { @@ -5117,10 +3908,7 @@ impl IInkRecognitionResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionResult_Impl, - { + unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionResult_Impl::Strokes(this) { Ok(ok__) => { @@ -5130,10 +3918,7 @@ impl IInkRecognitionResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AlternatesFromSelection(this: *mut core::ffi::c_void, selectionstart: i32, selectionlength: i32, maximumalternates: i32, alternatesfromselection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionResult_Impl, - { + unsafe extern "system" fn AlternatesFromSelection(this: *mut core::ffi::c_void, selectionstart: i32, selectionlength: i32, maximumalternates: i32, alternatesfromselection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognitionResult_Impl::AlternatesFromSelection(this, core::mem::transmute_copy(&selectionstart), core::mem::transmute_copy(&selectionlength), core::mem::transmute_copy(&maximumalternates)) { Ok(ok__) => { @@ -5143,17 +3928,11 @@ impl IInkRecognitionResult_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ModifyTopAlternate(this: *mut core::ffi::c_void, alternate: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionResult_Impl, - { + unsafe extern "system" fn ModifyTopAlternate(this: *mut core::ffi::c_void, alternate: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognitionResult_Impl::ModifyTopAlternate(this, windows_core::from_raw_borrowed(&alternate)).into() } - unsafe extern "system" fn SetResultOnStrokes(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognitionResult_Impl, - { + unsafe extern "system" fn SetResultOnStrokes(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognitionResult_Impl::SetResultOnStrokes(this).into() } @@ -5186,14 +3965,8 @@ pub trait IInkRecognizer_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IInkRecognizer {} #[cfg(feature = "Win32_System_Com")] impl IInkRecognizer_Vtbl { - pub const fn new() -> IInkRecognizer_Vtbl - where - Identity: IInkRecognizer_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizer_Impl, - { + pub const fn new() -> IInkRecognizer_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizer_Impl::Name(this) { Ok(ok__) => { @@ -5203,10 +3976,7 @@ impl IInkRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Vendor(this: *mut core::ffi::c_void, vendor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizer_Impl, - { + unsafe extern "system" fn Vendor(this: *mut core::ffi::c_void, vendor: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizer_Impl::Vendor(this) { Ok(ok__) => { @@ -5216,10 +3986,7 @@ impl IInkRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Capabilities(this: *mut core::ffi::c_void, capabilitiesflags: *mut InkRecognizerCapabilities) -> windows_core::HRESULT - where - Identity: IInkRecognizer_Impl, - { + unsafe extern "system" fn Capabilities(this: *mut core::ffi::c_void, capabilitiesflags: *mut InkRecognizerCapabilities) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizer_Impl::Capabilities(this) { Ok(ok__) => { @@ -5229,10 +3996,7 @@ impl IInkRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Languages(this: *mut core::ffi::c_void, languages: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizer_Impl, - { + unsafe extern "system" fn Languages(this: *mut core::ffi::c_void, languages: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizer_Impl::Languages(this) { Ok(ok__) => { @@ -5242,10 +4006,7 @@ impl IInkRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SupportedProperties(this: *mut core::ffi::c_void, supportedproperties: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizer_Impl, - { + unsafe extern "system" fn SupportedProperties(this: *mut core::ffi::c_void, supportedproperties: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizer_Impl::SupportedProperties(this) { Ok(ok__) => { @@ -5255,10 +4016,7 @@ impl IInkRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PreferredPacketDescription(this: *mut core::ffi::c_void, preferredpacketdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizer_Impl, - { + unsafe extern "system" fn PreferredPacketDescription(this: *mut core::ffi::c_void, preferredpacketdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizer_Impl::PreferredPacketDescription(this) { Ok(ok__) => { @@ -5268,10 +4026,7 @@ impl IInkRecognizer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRecognizerContext(this: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizer_Impl, - { + unsafe extern "system" fn CreateRecognizerContext(this: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizer_Impl::CreateRecognizerContext(this) { Ok(ok__) => { @@ -5305,14 +4060,8 @@ pub trait IInkRecognizer2_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IInkRecognizer2 {} #[cfg(feature = "Win32_System_Com")] impl IInkRecognizer2_Vtbl { - pub const fn new() -> IInkRecognizer2_Vtbl - where - Identity: IInkRecognizer2_Impl, - { - unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizer2_Impl, - { + pub const fn new() -> IInkRecognizer2_Vtbl { + unsafe extern "system" fn Id(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizer2_Impl::Id(this) { Ok(ok__) => { @@ -5322,10 +4071,7 @@ impl IInkRecognizer2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnicodeRanges(this: *mut core::ffi::c_void, unicoderanges: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizer2_Impl, - { + unsafe extern "system" fn UnicodeRanges(this: *mut core::ffi::c_void, unicoderanges: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizer2_Impl::UnicodeRanges(this) { Ok(ok__) => { @@ -5376,14 +4122,8 @@ pub trait IInkRecognizerContext_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for IInkRecognizerContext {} #[cfg(feature = "Win32_System_Com")] impl IInkRecognizerContext_Vtbl { - pub const fn new() -> IInkRecognizerContext_Vtbl - where - Identity: IInkRecognizerContext_Impl, - { - unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + pub const fn new() -> IInkRecognizerContext_Vtbl { + unsafe extern "system" fn Strokes(this: *mut core::ffi::c_void, strokes: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::Strokes(this) { Ok(ok__) => { @@ -5393,17 +4133,11 @@ impl IInkRecognizerContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Strokes(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn putref_Strokes(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::putref_Strokes(this, windows_core::from_raw_borrowed(&strokes)).into() } - unsafe extern "system" fn CharacterAutoCompletionMode(this: *mut core::ffi::c_void, mode: *mut InkRecognizerCharacterAutoCompletionMode) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn CharacterAutoCompletionMode(this: *mut core::ffi::c_void, mode: *mut InkRecognizerCharacterAutoCompletionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::CharacterAutoCompletionMode(this) { Ok(ok__) => { @@ -5413,17 +4147,11 @@ impl IInkRecognizerContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCharacterAutoCompletionMode(this: *mut core::ffi::c_void, mode: InkRecognizerCharacterAutoCompletionMode) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn SetCharacterAutoCompletionMode(this: *mut core::ffi::c_void, mode: InkRecognizerCharacterAutoCompletionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::SetCharacterAutoCompletionMode(this, core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn Factoid(this: *mut core::ffi::c_void, factoid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn Factoid(this: *mut core::ffi::c_void, factoid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::Factoid(this) { Ok(ok__) => { @@ -5433,17 +4161,11 @@ impl IInkRecognizerContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFactoid(this: *mut core::ffi::c_void, factoid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn SetFactoid(this: *mut core::ffi::c_void, factoid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::SetFactoid(this, core::mem::transmute(&factoid)).into() } - unsafe extern "system" fn Guide(this: *mut core::ffi::c_void, recognizerguide: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn Guide(this: *mut core::ffi::c_void, recognizerguide: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::Guide(this) { Ok(ok__) => { @@ -5453,17 +4175,11 @@ impl IInkRecognizerContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Guide(this: *mut core::ffi::c_void, recognizerguide: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn putref_Guide(this: *mut core::ffi::c_void, recognizerguide: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::putref_Guide(this, windows_core::from_raw_borrowed(&recognizerguide)).into() } - unsafe extern "system" fn PrefixText(this: *mut core::ffi::c_void, prefix: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn PrefixText(this: *mut core::ffi::c_void, prefix: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::PrefixText(this) { Ok(ok__) => { @@ -5473,17 +4189,11 @@ impl IInkRecognizerContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPrefixText(this: *mut core::ffi::c_void, prefix: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn SetPrefixText(this: *mut core::ffi::c_void, prefix: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::SetPrefixText(this, core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn SuffixText(this: *mut core::ffi::c_void, suffix: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn SuffixText(this: *mut core::ffi::c_void, suffix: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::SuffixText(this) { Ok(ok__) => { @@ -5493,17 +4203,11 @@ impl IInkRecognizerContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetSuffixText(this: *mut core::ffi::c_void, suffix: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn SetSuffixText(this: *mut core::ffi::c_void, suffix: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::SetSuffixText(this, core::mem::transmute(&suffix)).into() } - unsafe extern "system" fn RecognitionFlags(this: *mut core::ffi::c_void, modes: *mut InkRecognitionModes) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn RecognitionFlags(this: *mut core::ffi::c_void, modes: *mut InkRecognitionModes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::RecognitionFlags(this) { Ok(ok__) => { @@ -5513,17 +4217,11 @@ impl IInkRecognizerContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRecognitionFlags(this: *mut core::ffi::c_void, modes: InkRecognitionModes) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn SetRecognitionFlags(this: *mut core::ffi::c_void, modes: InkRecognitionModes) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::SetRecognitionFlags(this, core::mem::transmute_copy(&modes)).into() } - unsafe extern "system" fn WordList(this: *mut core::ffi::c_void, wordlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn WordList(this: *mut core::ffi::c_void, wordlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::WordList(this) { Ok(ok__) => { @@ -5533,17 +4231,11 @@ impl IInkRecognizerContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_WordList(this: *mut core::ffi::c_void, wordlist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn putref_WordList(this: *mut core::ffi::c_void, wordlist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::putref_WordList(this, windows_core::from_raw_borrowed(&wordlist)).into() } - unsafe extern "system" fn Recognizer(this: *mut core::ffi::c_void, recognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn Recognizer(this: *mut core::ffi::c_void, recognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::Recognizer(this) { Ok(ok__) => { @@ -5553,45 +4245,27 @@ impl IInkRecognizerContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Recognize(this: *mut core::ffi::c_void, recognitionstatus: *mut InkRecognitionStatus, recognitionresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn Recognize(this: *mut core::ffi::c_void, recognitionstatus: *mut InkRecognitionStatus, recognitionresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::Recognize(this, core::mem::transmute_copy(&recognitionstatus), core::mem::transmute_copy(&recognitionresult)).into() } - unsafe extern "system" fn StopBackgroundRecognition(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn StopBackgroundRecognition(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::StopBackgroundRecognition(this).into() } - unsafe extern "system" fn EndInkInput(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn EndInkInput(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::EndInkInput(this).into() } - unsafe extern "system" fn BackgroundRecognize(this: *mut core::ffi::c_void, customdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn BackgroundRecognize(this: *mut core::ffi::c_void, customdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::BackgroundRecognize(this, core::mem::transmute(&customdata)).into() } - unsafe extern "system" fn BackgroundRecognizeWithAlternates(this: *mut core::ffi::c_void, customdata: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn BackgroundRecognizeWithAlternates(this: *mut core::ffi::c_void, customdata: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext_Impl::BackgroundRecognizeWithAlternates(this, core::mem::transmute(&customdata)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, recocontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, recocontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::Clone(this) { Ok(ok__) => { @@ -5601,10 +4275,7 @@ impl IInkRecognizerContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsStringSupported(this: *mut core::ffi::c_void, string: core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext_Impl, - { + unsafe extern "system" fn IsStringSupported(this: *mut core::ffi::c_void, string: core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext_Impl::IsStringSupported(this, core::mem::transmute(&string)) { Ok(ok__) => { @@ -5655,14 +4326,8 @@ pub trait IInkRecognizerContext2_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for IInkRecognizerContext2 {} #[cfg(feature = "Win32_System_Com")] impl IInkRecognizerContext2_Vtbl { - pub const fn new() -> IInkRecognizerContext2_Vtbl - where - Identity: IInkRecognizerContext2_Impl, - { - unsafe extern "system" fn EnabledUnicodeRanges(this: *mut core::ffi::c_void, unicoderanges: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext2_Impl, - { + pub const fn new() -> IInkRecognizerContext2_Vtbl { + unsafe extern "system" fn EnabledUnicodeRanges(this: *mut core::ffi::c_void, unicoderanges: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerContext2_Impl::EnabledUnicodeRanges(this) { Ok(ok__) => { @@ -5672,10 +4337,7 @@ impl IInkRecognizerContext2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabledUnicodeRanges(this: *mut core::ffi::c_void, unicoderanges: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRecognizerContext2_Impl, - { + unsafe extern "system" fn SetEnabledUnicodeRanges(this: *mut core::ffi::c_void, unicoderanges: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerContext2_Impl::SetEnabledUnicodeRanges(this, core::mem::transmute(&unicoderanges)).into() } @@ -5708,14 +4370,8 @@ pub trait IInkRecognizerGuide_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IInkRecognizerGuide {} #[cfg(feature = "Win32_System_Com")] impl IInkRecognizerGuide_Vtbl { - pub const fn new() -> IInkRecognizerGuide_Vtbl - where - Identity: IInkRecognizerGuide_Impl, - { - unsafe extern "system" fn WritingBox(this: *mut core::ffi::c_void, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + pub const fn new() -> IInkRecognizerGuide_Vtbl { + unsafe extern "system" fn WritingBox(this: *mut core::ffi::c_void, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerGuide_Impl::WritingBox(this) { Ok(ok__) => { @@ -5725,17 +4381,11 @@ impl IInkRecognizerGuide_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWritingBox(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn SetWritingBox(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerGuide_Impl::SetWritingBox(this, windows_core::from_raw_borrowed(&rectangle)).into() } - unsafe extern "system" fn DrawnBox(this: *mut core::ffi::c_void, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn DrawnBox(this: *mut core::ffi::c_void, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerGuide_Impl::DrawnBox(this) { Ok(ok__) => { @@ -5745,17 +4395,11 @@ impl IInkRecognizerGuide_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDrawnBox(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn SetDrawnBox(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerGuide_Impl::SetDrawnBox(this, windows_core::from_raw_borrowed(&rectangle)).into() } - unsafe extern "system" fn Rows(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn Rows(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerGuide_Impl::Rows(this) { Ok(ok__) => { @@ -5765,17 +4409,11 @@ impl IInkRecognizerGuide_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRows(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn SetRows(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerGuide_Impl::SetRows(this, core::mem::transmute_copy(&units)).into() } - unsafe extern "system" fn Columns(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn Columns(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerGuide_Impl::Columns(this) { Ok(ok__) => { @@ -5785,17 +4423,11 @@ impl IInkRecognizerGuide_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetColumns(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn SetColumns(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerGuide_Impl::SetColumns(this, core::mem::transmute_copy(&units)).into() } - unsafe extern "system" fn Midline(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn Midline(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizerGuide_Impl::Midline(this) { Ok(ok__) => { @@ -5805,24 +4437,15 @@ impl IInkRecognizerGuide_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMidline(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn SetMidline(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerGuide_Impl::SetMidline(this, core::mem::transmute_copy(&units)).into() } - unsafe extern "system" fn GuideData(this: *mut core::ffi::c_void, precoguide: *mut InkRecoGuide) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn GuideData(this: *mut core::ffi::c_void, precoguide: *mut InkRecoGuide) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerGuide_Impl::GuideData(this, core::mem::transmute_copy(&precoguide)).into() } - unsafe extern "system" fn SetGuideData(this: *mut core::ffi::c_void, recoguide: InkRecoGuide) -> windows_core::HRESULT - where - Identity: IInkRecognizerGuide_Impl, - { + unsafe extern "system" fn SetGuideData(this: *mut core::ffi::c_void, recoguide: InkRecoGuide) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRecognizerGuide_Impl::SetGuideData(this, core::mem::transmute(&recoguide)).into() } @@ -5857,14 +4480,8 @@ pub trait IInkRecognizers_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IInkRecognizers {} #[cfg(feature = "Win32_System_Com")] impl IInkRecognizers_Vtbl { - pub const fn new() -> IInkRecognizers_Vtbl - where - Identity: IInkRecognizers_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRecognizers_Impl, - { + pub const fn new() -> IInkRecognizers_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizers_Impl::Count(this) { Ok(ok__) => { @@ -5874,10 +4491,7 @@ impl IInkRecognizers_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizers_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizers_Impl::_NewEnum(this) { Ok(ok__) => { @@ -5887,10 +4501,7 @@ impl IInkRecognizers_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultRecognizer(this: *mut core::ffi::c_void, lcid: i32, defaultrecognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizers_Impl, - { + unsafe extern "system" fn GetDefaultRecognizer(this: *mut core::ffi::c_void, lcid: i32, defaultrecognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizers_Impl::GetDefaultRecognizer(this, core::mem::transmute_copy(&lcid)) { Ok(ok__) => { @@ -5900,10 +4511,7 @@ impl IInkRecognizers_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, inkrecognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRecognizers_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, inkrecognizer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRecognizers_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -5944,14 +4552,8 @@ pub trait IInkRectangle_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IInkRectangle {} #[cfg(feature = "Win32_System_Com")] impl IInkRectangle_Vtbl { - pub const fn new() -> IInkRectangle_Vtbl - where - Identity: IInkRectangle_Impl, - { - unsafe extern "system" fn Top(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + pub const fn new() -> IInkRectangle_Vtbl { + unsafe extern "system" fn Top(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRectangle_Impl::Top(this) { Ok(ok__) => { @@ -5961,17 +4563,11 @@ impl IInkRectangle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn SetTop(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRectangle_Impl::SetTop(this, core::mem::transmute_copy(&units)).into() } - unsafe extern "system" fn Left(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn Left(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRectangle_Impl::Left(this) { Ok(ok__) => { @@ -5981,17 +4577,11 @@ impl IInkRectangle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn SetLeft(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRectangle_Impl::SetLeft(this, core::mem::transmute_copy(&units)).into() } - unsafe extern "system" fn Bottom(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn Bottom(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRectangle_Impl::Bottom(this) { Ok(ok__) => { @@ -6001,17 +4591,11 @@ impl IInkRectangle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetBottom(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn SetBottom(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRectangle_Impl::SetBottom(this, core::mem::transmute_copy(&units)).into() } - unsafe extern "system" fn Right(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn Right(this: *mut core::ffi::c_void, units: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRectangle_Impl::Right(this) { Ok(ok__) => { @@ -6021,17 +4605,11 @@ impl IInkRectangle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetRight(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn SetRight(this: *mut core::ffi::c_void, units: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRectangle_Impl::SetRight(this, core::mem::transmute_copy(&units)).into() } - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, rect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, rect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRectangle_Impl::Data(this) { Ok(ok__) => { @@ -6041,24 +4619,15 @@ impl IInkRectangle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, rect: super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, rect: super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRectangle_Impl::SetData(this, core::mem::transmute(&rect)).into() } - unsafe extern "system" fn GetRectangle(this: *mut core::ffi::c_void, top: *mut i32, left: *mut i32, bottom: *mut i32, right: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn GetRectangle(this: *mut core::ffi::c_void, top: *mut i32, left: *mut i32, bottom: *mut i32, right: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRectangle_Impl::GetRectangle(this, core::mem::transmute_copy(&top), core::mem::transmute_copy(&left), core::mem::transmute_copy(&bottom), core::mem::transmute_copy(&right)).into() } - unsafe extern "system" fn SetRectangle(this: *mut core::ffi::c_void, top: i32, left: i32, bottom: i32, right: i32) -> windows_core::HRESULT - where - Identity: IInkRectangle_Impl, - { + unsafe extern "system" fn SetRectangle(this: *mut core::ffi::c_void, top: i32, left: i32, bottom: i32, right: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRectangle_Impl::SetRectangle(this, core::mem::transmute_copy(&top), core::mem::transmute_copy(&left), core::mem::transmute_copy(&bottom), core::mem::transmute_copy(&right)).into() } @@ -6104,84 +4673,48 @@ pub trait IInkRenderer_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkRenderer {} #[cfg(feature = "Win32_System_Com")] impl IInkRenderer_Vtbl { - pub const fn new() -> IInkRenderer_Vtbl - where - Identity: IInkRenderer_Impl, - { - unsafe extern "system" fn GetViewTransform(this: *mut core::ffi::c_void, viewtransform: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + pub const fn new() -> IInkRenderer_Vtbl { + unsafe extern "system" fn GetViewTransform(this: *mut core::ffi::c_void, viewtransform: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::GetViewTransform(this, windows_core::from_raw_borrowed(&viewtransform)).into() } - unsafe extern "system" fn SetViewTransform(this: *mut core::ffi::c_void, viewtransform: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn SetViewTransform(this: *mut core::ffi::c_void, viewtransform: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::SetViewTransform(this, windows_core::from_raw_borrowed(&viewtransform)).into() } - unsafe extern "system" fn GetObjectTransform(this: *mut core::ffi::c_void, objecttransform: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn GetObjectTransform(this: *mut core::ffi::c_void, objecttransform: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::GetObjectTransform(this, windows_core::from_raw_borrowed(&objecttransform)).into() } - unsafe extern "system" fn SetObjectTransform(this: *mut core::ffi::c_void, objecttransform: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn SetObjectTransform(this: *mut core::ffi::c_void, objecttransform: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::SetObjectTransform(this, windows_core::from_raw_borrowed(&objecttransform)).into() } - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, hdc: isize, strokes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, hdc: isize, strokes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::Draw(this, core::mem::transmute_copy(&hdc), windows_core::from_raw_borrowed(&strokes)).into() } - unsafe extern "system" fn DrawStroke(this: *mut core::ffi::c_void, hdc: isize, stroke: *mut core::ffi::c_void, drawingattributes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn DrawStroke(this: *mut core::ffi::c_void, hdc: isize, stroke: *mut core::ffi::c_void, drawingattributes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::DrawStroke(this, core::mem::transmute_copy(&hdc), windows_core::from_raw_borrowed(&stroke), windows_core::from_raw_borrowed(&drawingattributes)).into() } - unsafe extern "system" fn PixelToInkSpace(this: *mut core::ffi::c_void, hdc: isize, x: *mut i32, y: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn PixelToInkSpace(this: *mut core::ffi::c_void, hdc: isize, x: *mut i32, y: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::PixelToInkSpace(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn InkSpaceToPixel(this: *mut core::ffi::c_void, hdcdisplay: isize, x: *mut i32, y: *mut i32) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn InkSpaceToPixel(this: *mut core::ffi::c_void, hdcdisplay: isize, x: *mut i32, y: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::InkSpaceToPixel(this, core::mem::transmute_copy(&hdcdisplay), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn PixelToInkSpaceFromPoints(this: *mut core::ffi::c_void, hdc: isize, points: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn PixelToInkSpaceFromPoints(this: *mut core::ffi::c_void, hdc: isize, points: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::PixelToInkSpaceFromPoints(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&points)).into() } - unsafe extern "system" fn InkSpaceToPixelFromPoints(this: *mut core::ffi::c_void, hdc: isize, points: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn InkSpaceToPixelFromPoints(this: *mut core::ffi::c_void, hdc: isize, points: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::InkSpaceToPixelFromPoints(this, core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&points)).into() } - unsafe extern "system" fn Measure(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn Measure(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRenderer_Impl::Measure(this, windows_core::from_raw_borrowed(&strokes)) { Ok(ok__) => { @@ -6191,10 +4724,7 @@ impl IInkRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MeasureStroke(this: *mut core::ffi::c_void, stroke: *mut core::ffi::c_void, drawingattributes: *mut core::ffi::c_void, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn MeasureStroke(this: *mut core::ffi::c_void, stroke: *mut core::ffi::c_void, drawingattributes: *mut core::ffi::c_void, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkRenderer_Impl::MeasureStroke(this, windows_core::from_raw_borrowed(&stroke), windows_core::from_raw_borrowed(&drawingattributes)) { Ok(ok__) => { @@ -6204,24 +4734,15 @@ impl IInkRenderer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::Move(this, core::mem::transmute_copy(&horizontalcomponent), core::mem::transmute_copy(&verticalcomponent)).into() } - unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f32, x: f32, y: f32) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f32, x: f32, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::Rotate(this, core::mem::transmute_copy(°rees), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn ScaleTransform(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32, applyonpenwidth: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkRenderer_Impl, - { + unsafe extern "system" fn ScaleTransform(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32, applyonpenwidth: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkRenderer_Impl::ScaleTransform(this, core::mem::transmute_copy(&horizontalmultiplier), core::mem::transmute_copy(&verticalmultiplier), core::mem::transmute_copy(&applyonpenwidth)).into() } @@ -6288,14 +4809,8 @@ pub trait IInkStrokeDisp_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IInkStrokeDisp {} #[cfg(feature = "Win32_System_Com")] impl IInkStrokeDisp_Vtbl { - pub const fn new() -> IInkStrokeDisp_Vtbl - where - Identity: IInkStrokeDisp_Impl, - { - unsafe extern "system" fn ID(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + pub const fn new() -> IInkStrokeDisp_Vtbl { + unsafe extern "system" fn ID(this: *mut core::ffi::c_void, id: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::ID(this) { Ok(ok__) => { @@ -6305,10 +4820,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BezierPoints(this: *mut core::ffi::c_void, points: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn BezierPoints(this: *mut core::ffi::c_void, points: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::BezierPoints(this) { Ok(ok__) => { @@ -6318,10 +4830,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DrawingAttributes(this: *mut core::ffi::c_void, drawattrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn DrawingAttributes(this: *mut core::ffi::c_void, drawattrs: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::DrawingAttributes(this) { Ok(ok__) => { @@ -6331,17 +4840,11 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_DrawingAttributes(this: *mut core::ffi::c_void, drawattrs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn putref_DrawingAttributes(this: *mut core::ffi::c_void, drawattrs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeDisp_Impl::putref_DrawingAttributes(this, windows_core::from_raw_borrowed(&drawattrs)).into() } - unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::Ink(this) { Ok(ok__) => { @@ -6351,10 +4854,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedProperties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn ExtendedProperties(this: *mut core::ffi::c_void, properties: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::ExtendedProperties(this) { Ok(ok__) => { @@ -6364,10 +4864,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PolylineCusps(this: *mut core::ffi::c_void, cusps: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn PolylineCusps(this: *mut core::ffi::c_void, cusps: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::PolylineCusps(this) { Ok(ok__) => { @@ -6377,10 +4874,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn BezierCusps(this: *mut core::ffi::c_void, cusps: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn BezierCusps(this: *mut core::ffi::c_void, cusps: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::BezierCusps(this) { Ok(ok__) => { @@ -6390,10 +4884,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SelfIntersections(this: *mut core::ffi::c_void, intersections: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn SelfIntersections(this: *mut core::ffi::c_void, intersections: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::SelfIntersections(this) { Ok(ok__) => { @@ -6403,10 +4894,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PacketCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn PacketCount(this: *mut core::ffi::c_void, plcount: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::PacketCount(this) { Ok(ok__) => { @@ -6416,10 +4904,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PacketSize(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn PacketSize(this: *mut core::ffi::c_void, plsize: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::PacketSize(this) { Ok(ok__) => { @@ -6429,10 +4914,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PacketDescription(this: *mut core::ffi::c_void, packetdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn PacketDescription(this: *mut core::ffi::c_void, packetdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::PacketDescription(this) { Ok(ok__) => { @@ -6442,10 +4924,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Deleted(this: *mut core::ffi::c_void, deleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn Deleted(this: *mut core::ffi::c_void, deleted: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::Deleted(this) { Ok(ok__) => { @@ -6455,10 +4934,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBoundingBox(this: *mut core::ffi::c_void, boundingboxmode: InkBoundingBoxMode, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn GetBoundingBox(this: *mut core::ffi::c_void, boundingboxmode: InkBoundingBoxMode, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::GetBoundingBox(this, core::mem::transmute_copy(&boundingboxmode)) { Ok(ok__) => { @@ -6468,10 +4944,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindIntersections(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, intersections: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn FindIntersections(this: *mut core::ffi::c_void, strokes: *mut core::ffi::c_void, intersections: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::FindIntersections(this, windows_core::from_raw_borrowed(&strokes)) { Ok(ok__) => { @@ -6481,10 +4954,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRectangleIntersections(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void, intersections: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn GetRectangleIntersections(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void, intersections: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::GetRectangleIntersections(this, windows_core::from_raw_borrowed(&rectangle)) { Ok(ok__) => { @@ -6494,17 +4964,11 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clip(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn Clip(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeDisp_Impl::Clip(this, windows_core::from_raw_borrowed(&rectangle)).into() } - unsafe extern "system" fn HitTestCircle(this: *mut core::ffi::c_void, x: i32, y: i32, radius: f32, intersects: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn HitTestCircle(this: *mut core::ffi::c_void, x: i32, y: i32, radius: f32, intersects: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::HitTestCircle(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&radius)) { Ok(ok__) => { @@ -6514,17 +4978,11 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn NearestPoint(this: *mut core::ffi::c_void, x: i32, y: i32, distance: *mut f32, point: *mut f32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn NearestPoint(this: *mut core::ffi::c_void, x: i32, y: i32, distance: *mut f32, point: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeDisp_Impl::NearestPoint(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&distance), core::mem::transmute_copy(&point)).into() } - unsafe extern "system" fn Split(this: *mut core::ffi::c_void, splitat: f32, newstroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn Split(this: *mut core::ffi::c_void, splitat: f32, newstroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::Split(this, core::mem::transmute_copy(&splitat)) { Ok(ok__) => { @@ -6534,17 +4992,11 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPacketDescriptionPropertyMetrics(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn GetPacketDescriptionPropertyMetrics(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeDisp_Impl::GetPacketDescriptionPropertyMetrics(this, 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() } - unsafe extern "system" fn GetPoints(this: *mut core::ffi::c_void, index: i32, count: i32, points: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn GetPoints(this: *mut core::ffi::c_void, index: i32, count: i32, points: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::GetPoints(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -6554,10 +5006,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPoints(this: *mut core::ffi::c_void, points: core::mem::MaybeUninit, index: i32, count: i32, numberofpointsset: *mut i32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn SetPoints(this: *mut core::ffi::c_void, points: core::mem::MaybeUninit, index: i32, count: i32, numberofpointsset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::SetPoints(this, core::mem::transmute(&points), core::mem::transmute_copy(&index), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -6567,10 +5016,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPacketData(this: *mut core::ffi::c_void, index: i32, count: i32, packetdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn GetPacketData(this: *mut core::ffi::c_void, index: i32, count: i32, packetdata: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::GetPacketData(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -6580,10 +5026,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPacketValuesByProperty(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, index: i32, count: i32, packetvalues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn GetPacketValuesByProperty(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, index: i32, count: i32, packetvalues: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::GetPacketValuesByProperty(this, core::mem::transmute(&propertyname), core::mem::transmute_copy(&index), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -6593,10 +5036,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPacketValuesByProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, packetvalues: core::mem::MaybeUninit, index: i32, count: i32, numberofpacketsset: *mut i32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn SetPacketValuesByProperty(this: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit, packetvalues: core::mem::MaybeUninit, index: i32, count: i32, numberofpacketsset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::SetPacketValuesByProperty(this, core::mem::transmute(&bstrpropertyname), core::mem::transmute(&packetvalues), core::mem::transmute_copy(&index), core::mem::transmute_copy(&count)) { Ok(ok__) => { @@ -6606,10 +5046,7 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFlattenedBezierPoints(this: *mut core::ffi::c_void, fittingerror: i32, flattenedbezierpoints: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn GetFlattenedBezierPoints(this: *mut core::ffi::c_void, fittingerror: i32, flattenedbezierpoints: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokeDisp_Impl::GetFlattenedBezierPoints(this, core::mem::transmute_copy(&fittingerror)) { Ok(ok__) => { @@ -6619,45 +5056,27 @@ impl IInkStrokeDisp_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Transform(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void, applyonpenwidth: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn Transform(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void, applyonpenwidth: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeDisp_Impl::Transform(this, windows_core::from_raw_borrowed(&transform), core::mem::transmute_copy(&applyonpenwidth)).into() } - unsafe extern "system" fn ScaleToRectangle(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn ScaleToRectangle(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeDisp_Impl::ScaleToRectangle(this, windows_core::from_raw_borrowed(&rectangle)).into() } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeDisp_Impl::Move(this, core::mem::transmute_copy(&horizontalcomponent), core::mem::transmute_copy(&verticalcomponent)).into() } - unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f32, x: f32, y: f32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f32, x: f32, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeDisp_Impl::Rotate(this, core::mem::transmute_copy(°rees), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn Shear(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn Shear(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeDisp_Impl::Shear(this, core::mem::transmute_copy(&horizontalmultiplier), core::mem::transmute_copy(&verticalmultiplier)).into() } - unsafe extern "system" fn ScaleTransform(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::HRESULT - where - Identity: IInkStrokeDisp_Impl, - { + unsafe extern "system" fn ScaleTransform(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokeDisp_Impl::ScaleTransform(this, core::mem::transmute_copy(&horizontalmultiplier), core::mem::transmute_copy(&verticalmultiplier)).into() } @@ -6729,14 +5148,8 @@ pub trait IInkStrokes_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkStrokes {} #[cfg(feature = "Win32_System_Com")] impl IInkStrokes_Vtbl { - pub const fn new() -> IInkStrokes_Vtbl - where - Identity: IInkStrokes_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + pub const fn new() -> IInkStrokes_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokes_Impl::Count(this) { Ok(ok__) => { @@ -6746,10 +5159,7 @@ impl IInkStrokes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokes_Impl::_NewEnum(this) { Ok(ok__) => { @@ -6759,10 +5169,7 @@ impl IInkStrokes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ink: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokes_Impl::Ink(this) { Ok(ok__) => { @@ -6772,10 +5179,7 @@ impl IInkStrokes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RecognitionResult(this: *mut core::ffi::c_void, recognitionresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn RecognitionResult(this: *mut core::ffi::c_void, recognitionresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokes_Impl::RecognitionResult(this) { Ok(ok__) => { @@ -6785,10 +5189,7 @@ impl IInkStrokes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ToString(this: *mut core::ffi::c_void, tostring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn ToString(this: *mut core::ffi::c_void, tostring: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokes_Impl::ToString(this) { Ok(ok__) => { @@ -6798,10 +5199,7 @@ impl IInkStrokes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, stroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, stroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokes_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -6811,45 +5209,27 @@ impl IInkStrokes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, inkstroke: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, inkstroke: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::Add(this, windows_core::from_raw_borrowed(&inkstroke)).into() } - unsafe extern "system" fn AddStrokes(this: *mut core::ffi::c_void, inkstrokes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn AddStrokes(this: *mut core::ffi::c_void, inkstrokes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::AddStrokes(this, windows_core::from_raw_borrowed(&inkstrokes)).into() } - unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, inkstroke: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn Remove(this: *mut core::ffi::c_void, inkstroke: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::Remove(this, windows_core::from_raw_borrowed(&inkstroke)).into() } - unsafe extern "system" fn RemoveStrokes(this: *mut core::ffi::c_void, inkstrokes: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn RemoveStrokes(this: *mut core::ffi::c_void, inkstrokes: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::RemoveStrokes(this, windows_core::from_raw_borrowed(&inkstrokes)).into() } - unsafe extern "system" fn ModifyDrawingAttributes(this: *mut core::ffi::c_void, drawattrs: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn ModifyDrawingAttributes(this: *mut core::ffi::c_void, drawattrs: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::ModifyDrawingAttributes(this, windows_core::from_raw_borrowed(&drawattrs)).into() } - unsafe extern "system" fn GetBoundingBox(this: *mut core::ffi::c_void, boundingboxmode: InkBoundingBoxMode, boundingbox: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn GetBoundingBox(this: *mut core::ffi::c_void, boundingboxmode: InkBoundingBoxMode, boundingbox: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkStrokes_Impl::GetBoundingBox(this, core::mem::transmute_copy(&boundingboxmode)) { Ok(ok__) => { @@ -6859,59 +5239,35 @@ impl IInkStrokes_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Transform(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void, applyonpenwidth: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn Transform(this: *mut core::ffi::c_void, transform: *mut core::ffi::c_void, applyonpenwidth: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::Transform(this, windows_core::from_raw_borrowed(&transform), core::mem::transmute_copy(&applyonpenwidth)).into() } - unsafe extern "system" fn ScaleToRectangle(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn ScaleToRectangle(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::ScaleToRectangle(this, windows_core::from_raw_borrowed(&rectangle)).into() } - unsafe extern "system" fn Move(this: *mut core::ffi::c_void, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn Move(this: *mut core::ffi::c_void, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::Move(this, core::mem::transmute_copy(&horizontalcomponent), core::mem::transmute_copy(&verticalcomponent)).into() } - unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f32, x: f32, y: f32) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f32, x: f32, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::Rotate(this, core::mem::transmute_copy(°rees), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn Shear(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn Shear(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::Shear(this, core::mem::transmute_copy(&horizontalmultiplier), core::mem::transmute_copy(&verticalmultiplier)).into() } - unsafe extern "system" fn ScaleTransform(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn ScaleTransform(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::ScaleTransform(this, core::mem::transmute_copy(&horizontalmultiplier), core::mem::transmute_copy(&verticalmultiplier)).into() } - unsafe extern "system" fn Clip(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn Clip(this: *mut core::ffi::c_void, rectangle: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::Clip(this, windows_core::from_raw_borrowed(&rectangle)).into() } - unsafe extern "system" fn RemoveRecognitionResult(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkStrokes_Impl, - { + unsafe extern "system" fn RemoveRecognitionResult(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkStrokes_Impl::RemoveRecognitionResult(this).into() } @@ -6956,14 +5312,8 @@ pub trait IInkTablet_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkTablet {} #[cfg(feature = "Win32_System_Com")] impl IInkTablet_Vtbl { - pub const fn new() -> IInkTablet_Vtbl - where - Identity: IInkTablet_Impl, - { - unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkTablet_Impl, - { + pub const fn new() -> IInkTablet_Vtbl { + unsafe extern "system" fn Name(this: *mut core::ffi::c_void, name: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablet_Impl::Name(this) { Ok(ok__) => { @@ -6973,10 +5323,7 @@ impl IInkTablet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PlugAndPlayId(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkTablet_Impl, - { + unsafe extern "system" fn PlugAndPlayId(this: *mut core::ffi::c_void, id: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablet_Impl::PlugAndPlayId(this) { Ok(ok__) => { @@ -6986,10 +5333,7 @@ impl IInkTablet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaximumInputRectangle(this: *mut core::ffi::c_void, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkTablet_Impl, - { + unsafe extern "system" fn MaximumInputRectangle(this: *mut core::ffi::c_void, rectangle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablet_Impl::MaximumInputRectangle(this) { Ok(ok__) => { @@ -6999,10 +5343,7 @@ impl IInkTablet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HardwareCapabilities(this: *mut core::ffi::c_void, capabilities: *mut TabletHardwareCapabilities) -> windows_core::HRESULT - where - Identity: IInkTablet_Impl, - { + unsafe extern "system" fn HardwareCapabilities(this: *mut core::ffi::c_void, capabilities: *mut TabletHardwareCapabilities) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablet_Impl::HardwareCapabilities(this) { Ok(ok__) => { @@ -7012,10 +5353,7 @@ impl IInkTablet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPacketPropertySupported(this: *mut core::ffi::c_void, packetpropertyname: core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkTablet_Impl, - { + unsafe extern "system" fn IsPacketPropertySupported(this: *mut core::ffi::c_void, packetpropertyname: core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablet_Impl::IsPacketPropertySupported(this, core::mem::transmute(&packetpropertyname)) { Ok(ok__) => { @@ -7025,10 +5363,7 @@ impl IInkTablet_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyMetrics(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> windows_core::HRESULT - where - Identity: IInkTablet_Impl, - { + unsafe extern "system" fn GetPropertyMetrics(this: *mut core::ffi::c_void, propertyname: core::mem::MaybeUninit, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTablet_Impl::GetPropertyMetrics(this, 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() } @@ -7054,14 +5389,8 @@ pub trait IInkTablet2_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkTablet2 {} #[cfg(feature = "Win32_System_Com")] impl IInkTablet2_Vtbl { - pub const fn new() -> IInkTablet2_Vtbl - where - Identity: IInkTablet2_Impl, - { - unsafe extern "system" fn DeviceKind(this: *mut core::ffi::c_void, kind: *mut TabletDeviceKind) -> windows_core::HRESULT - where - Identity: IInkTablet2_Impl, - { + pub const fn new() -> IInkTablet2_Vtbl { + unsafe extern "system" fn DeviceKind(this: *mut core::ffi::c_void, kind: *mut TabletDeviceKind) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablet2_Impl::DeviceKind(this) { Ok(ok__) => { @@ -7086,14 +5415,8 @@ pub trait IInkTablet3_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkTablet3 {} #[cfg(feature = "Win32_System_Com")] impl IInkTablet3_Vtbl { - pub const fn new() -> IInkTablet3_Vtbl - where - Identity: IInkTablet3_Impl, - { - unsafe extern "system" fn IsMultiTouch(this: *mut core::ffi::c_void, pismultitouch: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkTablet3_Impl, - { + pub const fn new() -> IInkTablet3_Vtbl { + unsafe extern "system" fn IsMultiTouch(this: *mut core::ffi::c_void, pismultitouch: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablet3_Impl::IsMultiTouch(this) { Ok(ok__) => { @@ -7103,10 +5426,7 @@ impl IInkTablet3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn MaximumCursors(this: *mut core::ffi::c_void, pmaximumcursors: *mut u32) -> windows_core::HRESULT - where - Identity: IInkTablet3_Impl, - { + unsafe extern "system" fn MaximumCursors(this: *mut core::ffi::c_void, pmaximumcursors: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablet3_Impl::MaximumCursors(this) { Ok(ok__) => { @@ -7138,14 +5458,8 @@ pub trait IInkTablets_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkTablets {} #[cfg(feature = "Win32_System_Com")] impl IInkTablets_Vtbl { - pub const fn new() -> IInkTablets_Vtbl - where - Identity: IInkTablets_Impl, - { - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT - where - Identity: IInkTablets_Impl, - { + pub const fn new() -> IInkTablets_Vtbl { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, count: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablets_Impl::Count(this) { Ok(ok__) => { @@ -7155,10 +5469,7 @@ impl IInkTablets_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkTablets_Impl, - { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, _newenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablets_Impl::_NewEnum(this) { Ok(ok__) => { @@ -7168,10 +5479,7 @@ impl IInkTablets_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultTablet(this: *mut core::ffi::c_void, defaulttablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkTablets_Impl, - { + unsafe extern "system" fn DefaultTablet(this: *mut core::ffi::c_void, defaulttablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablets_Impl::DefaultTablet(this) { Ok(ok__) => { @@ -7181,10 +5489,7 @@ impl IInkTablets_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, tablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkTablets_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, index: i32, tablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablets_Impl::Item(this, core::mem::transmute_copy(&index)) { Ok(ok__) => { @@ -7194,10 +5499,7 @@ impl IInkTablets_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPacketPropertySupported(this: *mut core::ffi::c_void, packetpropertyname: core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkTablets_Impl, - { + unsafe extern "system" fn IsPacketPropertySupported(this: *mut core::ffi::c_void, packetpropertyname: core::mem::MaybeUninit, supported: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTablets_Impl::IsPacketPropertySupported(this, core::mem::transmute(&packetpropertyname)) { Ok(ok__) => { @@ -7249,70 +5551,40 @@ pub trait IInkTransform_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IInkTransform {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IInkTransform_Vtbl { - pub const fn new() -> IInkTransform_Vtbl - where - Identity: IInkTransform_Impl, - { - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + pub const fn new() -> IInkTransform_Vtbl { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::Reset(this).into() } - unsafe extern "system" fn Translate(this: *mut core::ffi::c_void, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn Translate(this: *mut core::ffi::c_void, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::Translate(this, core::mem::transmute_copy(&horizontalcomponent), core::mem::transmute_copy(&verticalcomponent)).into() } - unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f32, x: f32, y: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn Rotate(this: *mut core::ffi::c_void, degrees: f32, x: f32, y: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::Rotate(this, core::mem::transmute_copy(°rees), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() } - unsafe extern "system" fn Reflect(this: *mut core::ffi::c_void, horizontally: super::super::Foundation::VARIANT_BOOL, vertically: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn Reflect(this: *mut core::ffi::c_void, horizontally: super::super::Foundation::VARIANT_BOOL, vertically: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::Reflect(this, core::mem::transmute_copy(&horizontally), core::mem::transmute_copy(&vertically)).into() } - unsafe extern "system" fn Shear(this: *mut core::ffi::c_void, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn Shear(this: *mut core::ffi::c_void, horizontalcomponent: f32, verticalcomponent: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::Shear(this, core::mem::transmute_copy(&horizontalcomponent), core::mem::transmute_copy(&verticalcomponent)).into() } - unsafe extern "system" fn ScaleTransform(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn ScaleTransform(this: *mut core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::ScaleTransform(this, core::mem::transmute_copy(&horizontalmultiplier), core::mem::transmute_copy(&verticalmultiplier)).into() } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, em11: *mut f32, em12: *mut f32, em21: *mut f32, em22: *mut f32, edx: *mut f32, edy: *mut f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, em11: *mut f32, em12: *mut f32, em21: *mut f32, em22: *mut f32, edx: *mut f32, edy: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::GetTransform(this, core::mem::transmute_copy(&em11), core::mem::transmute_copy(&em12), core::mem::transmute_copy(&em21), core::mem::transmute_copy(&em22), core::mem::transmute_copy(&edx), core::mem::transmute_copy(&edy)).into() } - unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, em11: f32, em12: f32, em21: f32, em22: f32, edx: f32, edy: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn SetTransform(this: *mut core::ffi::c_void, em11: f32, em12: f32, em21: f32, em22: f32, edx: f32, edy: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::SetTransform(this, core::mem::transmute_copy(&em11), core::mem::transmute_copy(&em12), core::mem::transmute_copy(&em21), core::mem::transmute_copy(&em22), core::mem::transmute_copy(&edx), core::mem::transmute_copy(&edy)).into() } - unsafe extern "system" fn eM11(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn eM11(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTransform_Impl::eM11(this) { Ok(ok__) => { @@ -7322,17 +5594,11 @@ impl IInkTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SeteM11(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn SeteM11(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::SeteM11(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn eM12(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn eM12(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTransform_Impl::eM12(this) { Ok(ok__) => { @@ -7342,17 +5608,11 @@ impl IInkTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SeteM12(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn SeteM12(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::SeteM12(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn eM21(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn eM21(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTransform_Impl::eM21(this) { Ok(ok__) => { @@ -7362,17 +5622,11 @@ impl IInkTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SeteM21(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn SeteM21(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::SeteM21(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn eM22(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn eM22(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTransform_Impl::eM22(this) { Ok(ok__) => { @@ -7382,17 +5636,11 @@ impl IInkTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SeteM22(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn SeteM22(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::SeteM22(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn eDx(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn eDx(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTransform_Impl::eDx(this) { Ok(ok__) => { @@ -7402,17 +5650,11 @@ impl IInkTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SeteDx(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn SeteDx(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::SeteDx(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn eDy(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn eDy(this: *mut core::ffi::c_void, value: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInkTransform_Impl::eDy(this) { Ok(ok__) => { @@ -7422,24 +5664,15 @@ impl IInkTransform_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SeteDy(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn SeteDy(this: *mut core::ffi::c_void, value: f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::SeteDy(this, core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Data(this: *mut core::ffi::c_void, xform: *mut super::super::Graphics::Gdi::XFORM) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn Data(this: *mut core::ffi::c_void, xform: *mut super::super::Graphics::Gdi::XFORM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::Data(this, core::mem::transmute_copy(&xform)).into() } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, xform: super::super::Graphics::Gdi::XFORM) -> windows_core::HRESULT - where - Identity: IInkTransform_Impl, - { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, xform: super::super::Graphics::Gdi::XFORM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkTransform_Impl::SetData(this, core::mem::transmute(&xform)).into() } @@ -7483,28 +5716,16 @@ pub trait IInkWordList_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IInkWordList {} #[cfg(feature = "Win32_System_Com")] impl IInkWordList_Vtbl { - pub const fn new() -> IInkWordList_Vtbl - where - Identity: IInkWordList_Impl, - { - unsafe extern "system" fn AddWord(this: *mut core::ffi::c_void, newword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkWordList_Impl, - { + pub const fn new() -> IInkWordList_Vtbl { + unsafe extern "system" fn AddWord(this: *mut core::ffi::c_void, newword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkWordList_Impl::AddWord(this, core::mem::transmute(&newword)).into() } - unsafe extern "system" fn RemoveWord(this: *mut core::ffi::c_void, removeword: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkWordList_Impl, - { + unsafe extern "system" fn RemoveWord(this: *mut core::ffi::c_void, removeword: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkWordList_Impl::RemoveWord(this, core::mem::transmute(&removeword)).into() } - unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, mergewordlist: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInkWordList_Impl, - { + unsafe extern "system" fn Merge(this: *mut core::ffi::c_void, mergewordlist: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkWordList_Impl::Merge(this, windows_core::from_raw_borrowed(&mergewordlist)).into() } @@ -7527,14 +5748,8 @@ pub trait IInkWordList2_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IInkWordList2 {} #[cfg(feature = "Win32_System_Com")] impl IInkWordList2_Vtbl { - pub const fn new() -> IInkWordList2_Vtbl - where - Identity: IInkWordList2_Impl, - { - unsafe extern "system" fn AddWords(this: *mut core::ffi::c_void, newwords: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IInkWordList2_Impl, - { + pub const fn new() -> IInkWordList2_Vtbl { + unsafe extern "system" fn AddWords(this: *mut core::ffi::c_void, newwords: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkWordList2_Impl::AddWords(this, core::mem::transmute(&newwords)).into() } @@ -7544,7 +5759,7 @@ impl IInkWordList2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IInputPanelWindowHandle_Impl: Sized { +pub trait IInputPanelWindowHandle_Impl: Sized + windows_core::IUnknownImpl { fn AttachedEditWindow32(&self) -> windows_core::Result; fn SetAttachedEditWindow32(&self, attachededitwindow: i32) -> windows_core::Result<()>; fn AttachedEditWindow64(&self) -> windows_core::Result; @@ -7552,14 +5767,8 @@ pub trait IInputPanelWindowHandle_Impl: Sized { } impl windows_core::RuntimeName for IInputPanelWindowHandle {} impl IInputPanelWindowHandle_Vtbl { - pub const fn new() -> IInputPanelWindowHandle_Vtbl - where - Identity: IInputPanelWindowHandle_Impl, - { - unsafe extern "system" fn AttachedEditWindow32(this: *mut core::ffi::c_void, attachededitwindow: *mut i32) -> windows_core::HRESULT - where - Identity: IInputPanelWindowHandle_Impl, - { + pub const fn new() -> IInputPanelWindowHandle_Vtbl { + unsafe extern "system" fn AttachedEditWindow32(this: *mut core::ffi::c_void, attachededitwindow: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInputPanelWindowHandle_Impl::AttachedEditWindow32(this) { Ok(ok__) => { @@ -7569,17 +5778,11 @@ impl IInputPanelWindowHandle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttachedEditWindow32(this: *mut core::ffi::c_void, attachededitwindow: i32) -> windows_core::HRESULT - where - Identity: IInputPanelWindowHandle_Impl, - { + unsafe extern "system" fn SetAttachedEditWindow32(this: *mut core::ffi::c_void, attachededitwindow: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputPanelWindowHandle_Impl::SetAttachedEditWindow32(this, core::mem::transmute_copy(&attachededitwindow)).into() } - unsafe extern "system" fn AttachedEditWindow64(this: *mut core::ffi::c_void, attachededitwindow: *mut i64) -> windows_core::HRESULT - where - Identity: IInputPanelWindowHandle_Impl, - { + unsafe extern "system" fn AttachedEditWindow64(this: *mut core::ffi::c_void, attachededitwindow: *mut i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInputPanelWindowHandle_Impl::AttachedEditWindow64(this) { Ok(ok__) => { @@ -7589,10 +5792,7 @@ impl IInputPanelWindowHandle_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttachedEditWindow64(this: *mut core::ffi::c_void, attachededitwindow: i64) -> windows_core::HRESULT - where - Identity: IInputPanelWindowHandle_Impl, - { + unsafe extern "system" fn SetAttachedEditWindow64(this: *mut core::ffi::c_void, attachededitwindow: i64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputPanelWindowHandle_Impl::SetAttachedEditWindow64(this, core::mem::transmute_copy(&attachededitwindow)).into() } @@ -7632,28 +5832,16 @@ pub trait IMathInputControl_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IMathInputControl {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMathInputControl_Vtbl { - pub const fn new() -> IMathInputControl_Vtbl - where - Identity: IMathInputControl_Impl, - { - unsafe extern "system" fn Show(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + pub const fn new() -> IMathInputControl_Vtbl { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::Show(this).into() } - unsafe extern "system" fn Hide(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn Hide(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::Hide(this).into() } - unsafe extern "system" fn IsVisible(this: *mut core::ffi::c_void, pvbshown: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn IsVisible(this: *mut core::ffi::c_void, pvbshown: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMathInputControl_Impl::IsVisible(this) { Ok(ok__) => { @@ -7663,66 +5851,39 @@ impl IMathInputControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, left: *mut i32, top: *mut i32, right: *mut i32, bottom: *mut i32) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn GetPosition(this: *mut core::ffi::c_void, left: *mut i32, top: *mut i32, right: *mut i32, bottom: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::GetPosition(this, core::mem::transmute_copy(&left), core::mem::transmute_copy(&top), core::mem::transmute_copy(&right), core::mem::transmute_copy(&bottom)).into() } - unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn SetPosition(this: *mut core::ffi::c_void, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::SetPosition(this, core::mem::transmute_copy(&left), core::mem::transmute_copy(&top), core::mem::transmute_copy(&right), core::mem::transmute_copy(&bottom)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::Clear(this).into() } - unsafe extern "system" fn SetCustomPaint(this: *mut core::ffi::c_void, element: i32, paint: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn SetCustomPaint(this: *mut core::ffi::c_void, element: i32, paint: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::SetCustomPaint(this, core::mem::transmute_copy(&element), core::mem::transmute_copy(&paint)).into() } - unsafe extern "system" fn SetCaptionText(this: *mut core::ffi::c_void, captiontext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn SetCaptionText(this: *mut core::ffi::c_void, captiontext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::SetCaptionText(this, core::mem::transmute(&captiontext)).into() } - unsafe extern "system" fn LoadInk(this: *mut core::ffi::c_void, ink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn LoadInk(this: *mut core::ffi::c_void, ink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::LoadInk(this, windows_core::from_raw_borrowed(&ink)).into() } - unsafe extern "system" fn SetOwnerWindow(this: *mut core::ffi::c_void, ownerwindow: isize) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn SetOwnerWindow(this: *mut core::ffi::c_void, ownerwindow: isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::SetOwnerWindow(this, core::mem::transmute_copy(&ownerwindow)).into() } - unsafe extern "system" fn EnableExtendedButtons(this: *mut core::ffi::c_void, extended: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn EnableExtendedButtons(this: *mut core::ffi::c_void, extended: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::EnableExtendedButtons(this, core::mem::transmute_copy(&extended)).into() } - unsafe extern "system" fn GetPreviewHeight(this: *mut core::ffi::c_void, height: *mut i32) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn GetPreviewHeight(this: *mut core::ffi::c_void, height: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMathInputControl_Impl::GetPreviewHeight(this) { Ok(ok__) => { @@ -7732,38 +5893,23 @@ impl IMathInputControl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPreviewHeight(this: *mut core::ffi::c_void, height: i32) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn SetPreviewHeight(this: *mut core::ffi::c_void, height: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::SetPreviewHeight(this, core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn EnableAutoGrow(this: *mut core::ffi::c_void, autogrow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn EnableAutoGrow(this: *mut core::ffi::c_void, autogrow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::EnableAutoGrow(this, core::mem::transmute_copy(&autogrow)).into() } - unsafe extern "system" fn AddFunctionName(this: *mut core::ffi::c_void, functionname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn AddFunctionName(this: *mut core::ffi::c_void, functionname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::AddFunctionName(this, core::mem::transmute(&functionname)).into() } - unsafe extern "system" fn RemoveFunctionName(this: *mut core::ffi::c_void, functionname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn RemoveFunctionName(this: *mut core::ffi::c_void, functionname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMathInputControl_Impl::RemoveFunctionName(this, core::mem::transmute(&functionname)).into() } - unsafe extern "system" fn GetHoverIcon(this: *mut core::ffi::c_void, hoverimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMathInputControl_Impl, - { + unsafe extern "system" fn GetHoverIcon(this: *mut core::ffi::c_void, hoverimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMathInputControl_Impl::GetHoverIcon(this) { Ok(ok__) => { @@ -7830,14 +5976,8 @@ pub trait IPenInputPanel_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IPenInputPanel {} #[cfg(feature = "Win32_System_Com")] impl IPenInputPanel_Vtbl { - pub const fn new() -> IPenInputPanel_Vtbl - where - Identity: IPenInputPanel_Impl, - { - unsafe extern "system" fn Busy(this: *mut core::ffi::c_void, busy: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + pub const fn new() -> IPenInputPanel_Vtbl { + unsafe extern "system" fn Busy(this: *mut core::ffi::c_void, busy: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::Busy(this) { Ok(ok__) => { @@ -7847,10 +5987,7 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Factoid(this: *mut core::ffi::c_void, factoid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn Factoid(this: *mut core::ffi::c_void, factoid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::Factoid(this) { Ok(ok__) => { @@ -7860,17 +5997,11 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFactoid(this: *mut core::ffi::c_void, factoid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn SetFactoid(this: *mut core::ffi::c_void, factoid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::SetFactoid(this, core::mem::transmute(&factoid)).into() } - unsafe extern "system" fn AttachedEditWindow(this: *mut core::ffi::c_void, attachededitwindow: *mut i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn AttachedEditWindow(this: *mut core::ffi::c_void, attachededitwindow: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::AttachedEditWindow(this) { Ok(ok__) => { @@ -7880,17 +6011,11 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttachedEditWindow(this: *mut core::ffi::c_void, attachededitwindow: i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn SetAttachedEditWindow(this: *mut core::ffi::c_void, attachededitwindow: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::SetAttachedEditWindow(this, core::mem::transmute_copy(&attachededitwindow)).into() } - unsafe extern "system" fn CurrentPanel(this: *mut core::ffi::c_void, currentpanel: *mut PanelType) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn CurrentPanel(this: *mut core::ffi::c_void, currentpanel: *mut PanelType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::CurrentPanel(this) { Ok(ok__) => { @@ -7900,17 +6025,11 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentPanel(this: *mut core::ffi::c_void, currentpanel: PanelType) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn SetCurrentPanel(this: *mut core::ffi::c_void, currentpanel: PanelType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::SetCurrentPanel(this, core::mem::transmute_copy(¤tpanel)).into() } - unsafe extern "system" fn DefaultPanel(this: *mut core::ffi::c_void, pdefaultpanel: *mut PanelType) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn DefaultPanel(this: *mut core::ffi::c_void, pdefaultpanel: *mut PanelType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::DefaultPanel(this) { Ok(ok__) => { @@ -7920,17 +6039,11 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultPanel(this: *mut core::ffi::c_void, defaultpanel: PanelType) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn SetDefaultPanel(this: *mut core::ffi::c_void, defaultpanel: PanelType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::SetDefaultPanel(this, core::mem::transmute_copy(&defaultpanel)).into() } - unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::Visible(this) { Ok(ok__) => { @@ -7940,17 +6053,11 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, visible: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, visible: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::SetVisible(this, core::mem::transmute_copy(&visible)).into() } - unsafe extern "system" fn Top(this: *mut core::ffi::c_void, top: *mut i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn Top(this: *mut core::ffi::c_void, top: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::Top(this) { Ok(ok__) => { @@ -7960,10 +6067,7 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Left(this: *mut core::ffi::c_void, left: *mut i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn Left(this: *mut core::ffi::c_void, left: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::Left(this) { Ok(ok__) => { @@ -7973,10 +6077,7 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Width(this: *mut core::ffi::c_void, width: *mut i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn Width(this: *mut core::ffi::c_void, width: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::Width(this) { Ok(ok__) => { @@ -7986,10 +6087,7 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Height(this: *mut core::ffi::c_void, height: *mut i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn Height(this: *mut core::ffi::c_void, height: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::Height(this) { Ok(ok__) => { @@ -7999,10 +6097,7 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn VerticalOffset(this: *mut core::ffi::c_void, verticaloffset: *mut i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn VerticalOffset(this: *mut core::ffi::c_void, verticaloffset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::VerticalOffset(this) { Ok(ok__) => { @@ -8012,17 +6107,11 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetVerticalOffset(this: *mut core::ffi::c_void, verticaloffset: i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn SetVerticalOffset(this: *mut core::ffi::c_void, verticaloffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::SetVerticalOffset(this, core::mem::transmute_copy(&verticaloffset)).into() } - unsafe extern "system" fn HorizontalOffset(this: *mut core::ffi::c_void, horizontaloffset: *mut i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn HorizontalOffset(this: *mut core::ffi::c_void, horizontaloffset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::HorizontalOffset(this) { Ok(ok__) => { @@ -8032,17 +6121,11 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHorizontalOffset(this: *mut core::ffi::c_void, horizontaloffset: i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn SetHorizontalOffset(this: *mut core::ffi::c_void, horizontaloffset: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::SetHorizontalOffset(this, core::mem::transmute_copy(&horizontaloffset)).into() } - unsafe extern "system" fn AutoShow(this: *mut core::ffi::c_void, pautoshow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn AutoShow(this: *mut core::ffi::c_void, pautoshow: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPenInputPanel_Impl::AutoShow(this) { Ok(ok__) => { @@ -8052,38 +6135,23 @@ impl IPenInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAutoShow(this: *mut core::ffi::c_void, autoshow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn SetAutoShow(this: *mut core::ffi::c_void, autoshow: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::SetAutoShow(this, core::mem::transmute_copy(&autoshow)).into() } - unsafe extern "system" fn MoveTo(this: *mut core::ffi::c_void, left: i32, top: i32) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn MoveTo(this: *mut core::ffi::c_void, left: i32, top: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::MoveTo(this, core::mem::transmute_copy(&left), core::mem::transmute_copy(&top)).into() } - unsafe extern "system" fn CommitPendingInput(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn CommitPendingInput(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::CommitPendingInput(this).into() } - unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn Refresh(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::Refresh(this).into() } - unsafe extern "system" fn EnableTsf(this: *mut core::ffi::c_void, enable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IPenInputPanel_Impl, - { + unsafe extern "system" fn EnableTsf(this: *mut core::ffi::c_void, enable: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPenInputPanel_Impl::EnableTsf(this, core::mem::transmute_copy(&enable)).into() } @@ -8121,7 +6189,7 @@ impl IPenInputPanel_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IRealTimeStylus_Impl: Sized { +pub trait IRealTimeStylus_Impl: Sized + windows_core::IUnknownImpl { fn Enabled(&self) -> windows_core::Result; fn SetEnabled(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn HWND(&self) -> windows_core::Result; @@ -8158,14 +6226,8 @@ pub trait IRealTimeStylus_Impl: Sized { impl windows_core::RuntimeName for IRealTimeStylus {} #[cfg(feature = "Win32_System_Com")] impl IRealTimeStylus_Vtbl { - pub const fn new() -> IRealTimeStylus_Vtbl - where - Identity: IRealTimeStylus_Impl, - { - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + pub const fn new() -> IRealTimeStylus_Vtbl { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::Enabled(this) { Ok(ok__) => { @@ -8175,17 +6237,11 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::SetEnabled(this, core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn HWND(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn HWND(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::HWND(this) { Ok(ok__) => { @@ -8195,17 +6251,11 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHWND(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn SetHWND(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::SetHWND(this, core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn WindowInputRectangle(this: *mut core::ffi::c_void, prcwndinputrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn WindowInputRectangle(this: *mut core::ffi::c_void, prcwndinputrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::WindowInputRectangle(this) { Ok(ok__) => { @@ -8215,38 +6265,23 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetWindowInputRectangle(this: *mut core::ffi::c_void, prcwndinputrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn SetWindowInputRectangle(this: *mut core::ffi::c_void, prcwndinputrect: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::SetWindowInputRectangle(this, core::mem::transmute_copy(&prcwndinputrect)).into() } - unsafe extern "system" fn AddStylusSyncPlugin(this: *mut core::ffi::c_void, iindex: u32, piplugin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn AddStylusSyncPlugin(this: *mut core::ffi::c_void, iindex: u32, piplugin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::AddStylusSyncPlugin(this, core::mem::transmute_copy(&iindex), windows_core::from_raw_borrowed(&piplugin)).into() } - unsafe extern "system" fn RemoveStylusSyncPlugin(this: *mut core::ffi::c_void, iindex: u32, ppiplugin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn RemoveStylusSyncPlugin(this: *mut core::ffi::c_void, iindex: u32, ppiplugin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::RemoveStylusSyncPlugin(this, core::mem::transmute_copy(&iindex), core::mem::transmute_copy(&ppiplugin)).into() } - unsafe extern "system" fn RemoveAllStylusSyncPlugins(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn RemoveAllStylusSyncPlugins(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::RemoveAllStylusSyncPlugins(this).into() } - unsafe extern "system" fn GetStylusSyncPlugin(this: *mut core::ffi::c_void, iindex: u32, ppiplugin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetStylusSyncPlugin(this: *mut core::ffi::c_void, iindex: u32, ppiplugin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::GetStylusSyncPlugin(this, core::mem::transmute_copy(&iindex)) { Ok(ok__) => { @@ -8256,10 +6291,7 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStylusSyncPluginCount(this: *mut core::ffi::c_void, pcplugins: *mut u32) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetStylusSyncPluginCount(this: *mut core::ffi::c_void, pcplugins: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::GetStylusSyncPluginCount(this) { Ok(ok__) => { @@ -8269,31 +6301,19 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddStylusAsyncPlugin(this: *mut core::ffi::c_void, iindex: u32, piplugin: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn AddStylusAsyncPlugin(this: *mut core::ffi::c_void, iindex: u32, piplugin: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::AddStylusAsyncPlugin(this, core::mem::transmute_copy(&iindex), windows_core::from_raw_borrowed(&piplugin)).into() } - unsafe extern "system" fn RemoveStylusAsyncPlugin(this: *mut core::ffi::c_void, iindex: u32, ppiplugin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn RemoveStylusAsyncPlugin(this: *mut core::ffi::c_void, iindex: u32, ppiplugin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::RemoveStylusAsyncPlugin(this, core::mem::transmute_copy(&iindex), core::mem::transmute_copy(&ppiplugin)).into() } - unsafe extern "system" fn RemoveAllStylusAsyncPlugins(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn RemoveAllStylusAsyncPlugins(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::RemoveAllStylusAsyncPlugins(this).into() } - unsafe extern "system" fn GetStylusAsyncPlugin(this: *mut core::ffi::c_void, iindex: u32, ppiplugin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetStylusAsyncPlugin(this: *mut core::ffi::c_void, iindex: u32, ppiplugin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::GetStylusAsyncPlugin(this, core::mem::transmute_copy(&iindex)) { Ok(ok__) => { @@ -8303,10 +6323,7 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStylusAsyncPluginCount(this: *mut core::ffi::c_void, pcplugins: *mut u32) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetStylusAsyncPluginCount(this: *mut core::ffi::c_void, pcplugins: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::GetStylusAsyncPluginCount(this) { Ok(ok__) => { @@ -8316,10 +6333,7 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChildRealTimeStylusPlugin(this: *mut core::ffi::c_void, ppirts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn ChildRealTimeStylusPlugin(this: *mut core::ffi::c_void, ppirts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::ChildRealTimeStylusPlugin(this) { Ok(ok__) => { @@ -8329,45 +6343,27 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_ChildRealTimeStylusPlugin(this: *mut core::ffi::c_void, pirts: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn putref_ChildRealTimeStylusPlugin(this: *mut core::ffi::c_void, pirts: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::putref_ChildRealTimeStylusPlugin(this, windows_core::from_raw_borrowed(&pirts)).into() } - unsafe extern "system" fn AddCustomStylusDataToQueue(this: *mut core::ffi::c_void, sq: StylusQueue, pguidid: *const windows_core::GUID, cbdata: u32, pbdata: *const u8) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn AddCustomStylusDataToQueue(this: *mut core::ffi::c_void, sq: StylusQueue, pguidid: *const windows_core::GUID, cbdata: u32, pbdata: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::AddCustomStylusDataToQueue(this, core::mem::transmute_copy(&sq), core::mem::transmute_copy(&pguidid), core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&pbdata)).into() } - unsafe extern "system" fn ClearStylusQueues(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn ClearStylusQueues(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::ClearStylusQueues(this).into() } - unsafe extern "system" fn SetAllTabletsMode(this: *mut core::ffi::c_void, fusemouseforinput: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn SetAllTabletsMode(this: *mut core::ffi::c_void, fusemouseforinput: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::SetAllTabletsMode(this, core::mem::transmute_copy(&fusemouseforinput)).into() } - unsafe extern "system" fn SetSingleTabletMode(this: *mut core::ffi::c_void, pitablet: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn SetSingleTabletMode(this: *mut core::ffi::c_void, pitablet: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::SetSingleTabletMode(this, windows_core::from_raw_borrowed(&pitablet)).into() } - unsafe extern "system" fn GetTablet(this: *mut core::ffi::c_void, ppisingletablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetTablet(this: *mut core::ffi::c_void, ppisingletablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::GetTablet(this) { Ok(ok__) => { @@ -8377,10 +6373,7 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTabletContextIdFromTablet(this: *mut core::ffi::c_void, pitablet: *mut core::ffi::c_void, ptcid: *mut u32) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetTabletContextIdFromTablet(this: *mut core::ffi::c_void, pitablet: *mut core::ffi::c_void, ptcid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::GetTabletContextIdFromTablet(this, windows_core::from_raw_borrowed(&pitablet)) { Ok(ok__) => { @@ -8390,10 +6383,7 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTabletFromTabletContextId(this: *mut core::ffi::c_void, tcid: u32, ppitablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetTabletFromTabletContextId(this: *mut core::ffi::c_void, tcid: u32, ppitablet: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::GetTabletFromTabletContextId(this, core::mem::transmute_copy(&tcid)) { Ok(ok__) => { @@ -8403,17 +6393,11 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAllTabletContextIds(this: *mut core::ffi::c_void, pctcidcount: *mut u32, pptcids: *mut *mut u32) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetAllTabletContextIds(this: *mut core::ffi::c_void, pctcidcount: *mut u32, pptcids: *mut *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::GetAllTabletContextIds(this, core::mem::transmute_copy(&pctcidcount), core::mem::transmute_copy(&pptcids)).into() } - unsafe extern "system" fn GetStyluses(this: *mut core::ffi::c_void, ppiinkcursors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetStyluses(this: *mut core::ffi::c_void, ppiinkcursors: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::GetStyluses(this) { Ok(ok__) => { @@ -8423,10 +6407,7 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStylusForId(this: *mut core::ffi::c_void, sid: u32, ppiinkcursor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetStylusForId(this: *mut core::ffi::c_void, sid: u32, ppiinkcursor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::GetStylusForId(this, core::mem::transmute_copy(&sid)) { Ok(ok__) => { @@ -8436,24 +6417,15 @@ impl IRealTimeStylus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDesiredPacketDescription(this: *mut core::ffi::c_void, cproperties: u32, ppropertyguids: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn SetDesiredPacketDescription(this: *mut core::ffi::c_void, cproperties: u32, ppropertyguids: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::SetDesiredPacketDescription(this, core::mem::transmute_copy(&cproperties), core::mem::transmute_copy(&ppropertyguids)).into() } - unsafe extern "system" fn GetDesiredPacketDescription(this: *mut core::ffi::c_void, pcproperties: *mut u32, pppropertyguids: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetDesiredPacketDescription(this: *mut core::ffi::c_void, pcproperties: *mut u32, pppropertyguids: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::GetDesiredPacketDescription(this, core::mem::transmute_copy(&pcproperties), core::mem::transmute_copy(&pppropertyguids)).into() } - unsafe extern "system" fn GetPacketDescriptionData(this: *mut core::ffi::c_void, tcid: u32, pfinktodevicescalex: *mut f32, pfinktodevicescaley: *mut f32, pcpacketproperties: *mut u32, pppacketproperties: *mut *mut PACKET_PROPERTY) -> windows_core::HRESULT - where - Identity: IRealTimeStylus_Impl, - { + unsafe extern "system" fn GetPacketDescriptionData(this: *mut core::ffi::c_void, tcid: u32, pfinktodevicescalex: *mut f32, pfinktodevicescaley: *mut f32, pcpacketproperties: *mut u32, pppacketproperties: *mut *mut PACKET_PROPERTY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::GetPacketDescriptionData(this, core::mem::transmute_copy(&tcid), core::mem::transmute_copy(&pfinktodevicescalex), core::mem::transmute_copy(&pfinktodevicescaley), core::mem::transmute_copy(&pcpacketproperties), core::mem::transmute_copy(&pppacketproperties)).into() } @@ -8496,20 +6468,14 @@ impl IRealTimeStylus_Vtbl { iid == &::IID } } -pub trait IRealTimeStylus2_Impl: Sized { +pub trait IRealTimeStylus2_Impl: Sized + windows_core::IUnknownImpl { fn FlicksEnabled(&self) -> windows_core::Result; fn SetFlicksEnabled(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRealTimeStylus2 {} impl IRealTimeStylus2_Vtbl { - pub const fn new() -> IRealTimeStylus2_Vtbl - where - Identity: IRealTimeStylus2_Impl, - { - unsafe extern "system" fn FlicksEnabled(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRealTimeStylus2_Impl, - { + pub const fn new() -> IRealTimeStylus2_Vtbl { + unsafe extern "system" fn FlicksEnabled(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus2_Impl::FlicksEnabled(this) { Ok(ok__) => { @@ -8519,10 +6485,7 @@ impl IRealTimeStylus2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFlicksEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRealTimeStylus2_Impl, - { + unsafe extern "system" fn SetFlicksEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus2_Impl::SetFlicksEnabled(this, core::mem::transmute_copy(&fenable)).into() } @@ -8536,20 +6499,14 @@ impl IRealTimeStylus2_Vtbl { iid == &::IID } } -pub trait IRealTimeStylus3_Impl: Sized { +pub trait IRealTimeStylus3_Impl: Sized + windows_core::IUnknownImpl { fn MultiTouchEnabled(&self) -> windows_core::Result; fn SetMultiTouchEnabled(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRealTimeStylus3 {} impl IRealTimeStylus3_Vtbl { - pub const fn new() -> IRealTimeStylus3_Vtbl - where - Identity: IRealTimeStylus3_Impl, - { - unsafe extern "system" fn MultiTouchEnabled(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRealTimeStylus3_Impl, - { + pub const fn new() -> IRealTimeStylus3_Vtbl { + unsafe extern "system" fn MultiTouchEnabled(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus3_Impl::MultiTouchEnabled(this) { Ok(ok__) => { @@ -8559,10 +6516,7 @@ impl IRealTimeStylus3_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetMultiTouchEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IRealTimeStylus3_Impl, - { + unsafe extern "system" fn SetMultiTouchEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus3_Impl::SetMultiTouchEnabled(this, core::mem::transmute_copy(&fenable)).into() } @@ -8576,27 +6530,18 @@ impl IRealTimeStylus3_Vtbl { iid == &::IID } } -pub trait IRealTimeStylusSynchronization_Impl: Sized { +pub trait IRealTimeStylusSynchronization_Impl: Sized + windows_core::IUnknownImpl { fn AcquireLock(&self, lock: RealTimeStylusLockType) -> windows_core::Result<()>; fn ReleaseLock(&self, lock: RealTimeStylusLockType) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IRealTimeStylusSynchronization {} impl IRealTimeStylusSynchronization_Vtbl { - pub const fn new() -> IRealTimeStylusSynchronization_Vtbl - where - Identity: IRealTimeStylusSynchronization_Impl, - { - unsafe extern "system" fn AcquireLock(this: *mut core::ffi::c_void, lock: RealTimeStylusLockType) -> windows_core::HRESULT - where - Identity: IRealTimeStylusSynchronization_Impl, - { + pub const fn new() -> IRealTimeStylusSynchronization_Vtbl { + unsafe extern "system" fn AcquireLock(this: *mut core::ffi::c_void, lock: RealTimeStylusLockType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylusSynchronization_Impl::AcquireLock(this, core::mem::transmute_copy(&lock)).into() } - unsafe extern "system" fn ReleaseLock(this: *mut core::ffi::c_void, lock: RealTimeStylusLockType) -> windows_core::HRESULT - where - Identity: IRealTimeStylusSynchronization_Impl, - { + unsafe extern "system" fn ReleaseLock(this: *mut core::ffi::c_void, lock: RealTimeStylusLockType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylusSynchronization_Impl::ReleaseLock(this, core::mem::transmute_copy(&lock)).into() } @@ -8616,10 +6561,7 @@ pub trait ISketchInk_Impl: Sized + super::super::System::Com::IDispatch_Impl {} impl windows_core::RuntimeName for ISketchInk {} #[cfg(feature = "Win32_System_Com")] impl ISketchInk_Vtbl { - pub const fn new() -> ISketchInk_Vtbl - where - Identity: ISketchInk_Impl, - { + pub const fn new() -> ISketchInk_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -8627,7 +6569,7 @@ impl ISketchInk_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IStrokeBuilder_Impl: Sized { +pub trait IStrokeBuilder_Impl: Sized + windows_core::IUnknownImpl { fn CreateStroke(&self, cpktbufflength: u32, ppackets: *const i32, cpacketproperties: u32, ppacketproperties: *const PACKET_PROPERTY, finktodevicescalex: f32, finktodevicescaley: f32, ppiinkstroke: *mut Option) -> windows_core::Result<()>; fn BeginStroke(&self, tcid: u32, sid: u32, ppacket: *const i32, cpacketproperties: u32, ppacketproperties: *const PACKET_PROPERTY, finktodevicescalex: f32, finktodevicescaley: f32, ppiinkstroke: *mut Option) -> windows_core::Result<()>; fn AppendPackets(&self, tcid: u32, sid: u32, cpktbufflength: u32, ppackets: *const i32) -> windows_core::Result<()>; @@ -8639,42 +6581,24 @@ pub trait IStrokeBuilder_Impl: Sized { impl windows_core::RuntimeName for IStrokeBuilder {} #[cfg(feature = "Win32_System_Com")] impl IStrokeBuilder_Vtbl { - pub const fn new() -> IStrokeBuilder_Vtbl - where - Identity: IStrokeBuilder_Impl, - { - unsafe extern "system" fn CreateStroke(this: *mut core::ffi::c_void, cpktbufflength: u32, ppackets: *const i32, cpacketproperties: u32, ppacketproperties: *const PACKET_PROPERTY, finktodevicescalex: f32, finktodevicescaley: f32, ppiinkstroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStrokeBuilder_Impl, - { + pub const fn new() -> IStrokeBuilder_Vtbl { + unsafe extern "system" fn CreateStroke(this: *mut core::ffi::c_void, cpktbufflength: u32, ppackets: *const i32, cpacketproperties: u32, ppacketproperties: *const PACKET_PROPERTY, finktodevicescalex: f32, finktodevicescaley: f32, ppiinkstroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStrokeBuilder_Impl::CreateStroke(this, core::mem::transmute_copy(&cpktbufflength), core::mem::transmute_copy(&ppackets), core::mem::transmute_copy(&cpacketproperties), core::mem::transmute_copy(&ppacketproperties), core::mem::transmute_copy(&finktodevicescalex), core::mem::transmute_copy(&finktodevicescaley), core::mem::transmute_copy(&ppiinkstroke)).into() } - unsafe extern "system" fn BeginStroke(this: *mut core::ffi::c_void, tcid: u32, sid: u32, ppacket: *const i32, cpacketproperties: u32, ppacketproperties: *const PACKET_PROPERTY, finktodevicescalex: f32, finktodevicescaley: f32, ppiinkstroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStrokeBuilder_Impl, - { + unsafe extern "system" fn BeginStroke(this: *mut core::ffi::c_void, tcid: u32, sid: u32, ppacket: *const i32, cpacketproperties: u32, ppacketproperties: *const PACKET_PROPERTY, finktodevicescalex: f32, finktodevicescaley: f32, ppiinkstroke: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStrokeBuilder_Impl::BeginStroke(this, core::mem::transmute_copy(&tcid), core::mem::transmute_copy(&sid), core::mem::transmute_copy(&ppacket), core::mem::transmute_copy(&cpacketproperties), core::mem::transmute_copy(&ppacketproperties), core::mem::transmute_copy(&finktodevicescalex), core::mem::transmute_copy(&finktodevicescaley), core::mem::transmute_copy(&ppiinkstroke)).into() } - unsafe extern "system" fn AppendPackets(this: *mut core::ffi::c_void, tcid: u32, sid: u32, cpktbufflength: u32, ppackets: *const i32) -> windows_core::HRESULT - where - Identity: IStrokeBuilder_Impl, - { + unsafe extern "system" fn AppendPackets(this: *mut core::ffi::c_void, tcid: u32, sid: u32, cpktbufflength: u32, ppackets: *const i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStrokeBuilder_Impl::AppendPackets(this, core::mem::transmute_copy(&tcid), core::mem::transmute_copy(&sid), core::mem::transmute_copy(&cpktbufflength), core::mem::transmute_copy(&ppackets)).into() } - unsafe extern "system" fn EndStroke(this: *mut core::ffi::c_void, tcid: u32, sid: u32, ppiinkstroke: *mut *mut core::ffi::c_void, pdirtyrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IStrokeBuilder_Impl, - { + unsafe extern "system" fn EndStroke(this: *mut core::ffi::c_void, tcid: u32, sid: u32, ppiinkstroke: *mut *mut core::ffi::c_void, pdirtyrect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStrokeBuilder_Impl::EndStroke(this, core::mem::transmute_copy(&tcid), core::mem::transmute_copy(&sid), core::mem::transmute_copy(&ppiinkstroke), core::mem::transmute_copy(&pdirtyrect)).into() } - unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ppiinkobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStrokeBuilder_Impl, - { + unsafe extern "system" fn Ink(this: *mut core::ffi::c_void, ppiinkobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStrokeBuilder_Impl::Ink(this) { Ok(ok__) => { @@ -8684,10 +6608,7 @@ impl IStrokeBuilder_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn putref_Ink(this: *mut core::ffi::c_void, piinkobj: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStrokeBuilder_Impl, - { + unsafe extern "system" fn putref_Ink(this: *mut core::ffi::c_void, piinkobj: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStrokeBuilder_Impl::putref_Ink(this, windows_core::from_raw_borrowed(&piinkobj)).into() } @@ -8711,10 +6632,7 @@ pub trait IStylusAsyncPlugin_Impl: Sized + IStylusPlugin_Impl {} impl windows_core::RuntimeName for IStylusAsyncPlugin {} #[cfg(feature = "Win32_System_Com")] impl IStylusAsyncPlugin_Vtbl { - pub const fn new() -> IStylusAsyncPlugin_Vtbl - where - Identity: IStylusAsyncPlugin_Impl, - { + pub const fn new() -> IStylusAsyncPlugin_Vtbl { Self { base__: IStylusPlugin_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -8722,7 +6640,7 @@ impl IStylusAsyncPlugin_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IStylusPlugin_Impl: Sized { +pub trait IStylusPlugin_Impl: Sized + windows_core::IUnknownImpl { fn RealTimeStylusEnabled(&self, pirtssrc: Option<&IRealTimeStylus>, ctcidcount: u32, ptcids: *const u32) -> windows_core::Result<()>; fn RealTimeStylusDisabled(&self, pirtssrc: Option<&IRealTimeStylus>, ctcidcount: u32, ptcids: *const u32) -> windows_core::Result<()>; fn StylusInRange(&self, pirtssrc: Option<&IRealTimeStylus>, tcid: u32, sid: u32) -> windows_core::Result<()>; @@ -8745,126 +6663,72 @@ pub trait IStylusPlugin_Impl: Sized { impl windows_core::RuntimeName for IStylusPlugin {} #[cfg(feature = "Win32_System_Com")] impl IStylusPlugin_Vtbl { - pub const fn new() -> IStylusPlugin_Vtbl - where - Identity: IStylusPlugin_Impl, - { - unsafe extern "system" fn RealTimeStylusEnabled(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, ctcidcount: u32, ptcids: *const u32) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + pub const fn new() -> IStylusPlugin_Vtbl { + unsafe extern "system" fn RealTimeStylusEnabled(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, ctcidcount: u32, ptcids: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::RealTimeStylusEnabled(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&ctcidcount), core::mem::transmute_copy(&ptcids)).into() } - unsafe extern "system" fn RealTimeStylusDisabled(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, ctcidcount: u32, ptcids: *const u32) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn RealTimeStylusDisabled(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, ctcidcount: u32, ptcids: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::RealTimeStylusDisabled(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&ctcidcount), core::mem::transmute_copy(&ptcids)).into() } - unsafe extern "system" fn StylusInRange(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, tcid: u32, sid: u32) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn StylusInRange(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, tcid: u32, sid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::StylusInRange(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&tcid), core::mem::transmute_copy(&sid)).into() } - unsafe extern "system" fn StylusOutOfRange(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, tcid: u32, sid: u32) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn StylusOutOfRange(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, tcid: u32, sid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::StylusOutOfRange(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&tcid), core::mem::transmute_copy(&sid)).into() } - unsafe extern "system" fn StylusDown(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pstylusinfo: *const StylusInfo, cpropcountperpkt: u32, ppacket: *const i32, ppinoutpkt: *mut *mut i32) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn StylusDown(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pstylusinfo: *const StylusInfo, cpropcountperpkt: u32, ppacket: *const i32, ppinoutpkt: *mut *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::StylusDown(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&pstylusinfo), core::mem::transmute_copy(&cpropcountperpkt), core::mem::transmute_copy(&ppacket), core::mem::transmute_copy(&ppinoutpkt)).into() } - unsafe extern "system" fn StylusUp(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pstylusinfo: *const StylusInfo, cpropcountperpkt: u32, ppacket: *const i32, ppinoutpkt: *mut *mut i32) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn StylusUp(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pstylusinfo: *const StylusInfo, cpropcountperpkt: u32, ppacket: *const i32, ppinoutpkt: *mut *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::StylusUp(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&pstylusinfo), core::mem::transmute_copy(&cpropcountperpkt), core::mem::transmute_copy(&ppacket), core::mem::transmute_copy(&ppinoutpkt)).into() } - unsafe extern "system" fn StylusButtonDown(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, sid: u32, pguidstylusbutton: *const windows_core::GUID, pstyluspos: *mut super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn StylusButtonDown(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, sid: u32, pguidstylusbutton: *const windows_core::GUID, pstyluspos: *mut super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::StylusButtonDown(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&sid), core::mem::transmute_copy(&pguidstylusbutton), core::mem::transmute_copy(&pstyluspos)).into() } - unsafe extern "system" fn StylusButtonUp(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, sid: u32, pguidstylusbutton: *const windows_core::GUID, pstyluspos: *mut super::super::Foundation::POINT) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn StylusButtonUp(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, sid: u32, pguidstylusbutton: *const windows_core::GUID, pstyluspos: *mut super::super::Foundation::POINT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::StylusButtonUp(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&sid), core::mem::transmute_copy(&pguidstylusbutton), core::mem::transmute_copy(&pstyluspos)).into() } - unsafe extern "system" fn InAirPackets(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pstylusinfo: *const StylusInfo, cpktcount: u32, cpktbufflength: u32, ppackets: *const i32, pcinoutpkts: *mut u32, ppinoutpkts: *mut *mut i32) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn InAirPackets(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pstylusinfo: *const StylusInfo, cpktcount: u32, cpktbufflength: u32, ppackets: *const i32, pcinoutpkts: *mut u32, ppinoutpkts: *mut *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::InAirPackets(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&pstylusinfo), core::mem::transmute_copy(&cpktcount), core::mem::transmute_copy(&cpktbufflength), core::mem::transmute_copy(&ppackets), core::mem::transmute_copy(&pcinoutpkts), core::mem::transmute_copy(&ppinoutpkts)).into() } - unsafe extern "system" fn Packets(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pstylusinfo: *const StylusInfo, cpktcount: u32, cpktbufflength: u32, ppackets: *const i32, pcinoutpkts: *mut u32, ppinoutpkts: *mut *mut i32) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn Packets(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pstylusinfo: *const StylusInfo, cpktcount: u32, cpktbufflength: u32, ppackets: *const i32, pcinoutpkts: *mut u32, ppinoutpkts: *mut *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::Packets(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&pstylusinfo), core::mem::transmute_copy(&cpktcount), core::mem::transmute_copy(&cpktbufflength), core::mem::transmute_copy(&ppackets), core::mem::transmute_copy(&pcinoutpkts), core::mem::transmute_copy(&ppinoutpkts)).into() } - unsafe extern "system" fn CustomStylusDataAdded(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pguidid: *const windows_core::GUID, cbdata: u32, pbdata: *const u8) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn CustomStylusDataAdded(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pguidid: *const windows_core::GUID, cbdata: u32, pbdata: *const u8) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::CustomStylusDataAdded(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&pguidid), core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&pbdata)).into() } - unsafe extern "system" fn SystemEvent(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, tcid: u32, sid: u32, event: u16, eventdata: SYSTEM_EVENT_DATA) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn SystemEvent(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, tcid: u32, sid: u32, event: u16, eventdata: SYSTEM_EVENT_DATA) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::SystemEvent(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&tcid), core::mem::transmute_copy(&sid), core::mem::transmute_copy(&event), core::mem::transmute(&eventdata)).into() } - unsafe extern "system" fn TabletAdded(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pitablet: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn TabletAdded(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, pitablet: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::TabletAdded(this, windows_core::from_raw_borrowed(&pirtssrc), windows_core::from_raw_borrowed(&pitablet)).into() } - unsafe extern "system" fn TabletRemoved(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, itabletindex: i32) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn TabletRemoved(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, itabletindex: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::TabletRemoved(this, windows_core::from_raw_borrowed(&pirtssrc), core::mem::transmute_copy(&itabletindex)).into() } - unsafe extern "system" fn Error(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, piplugin: *mut core::ffi::c_void, datainterest: RealTimeStylusDataInterest, hrerrorcode: windows_core::HRESULT, lptrkey: *mut isize) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn Error(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void, piplugin: *mut core::ffi::c_void, datainterest: RealTimeStylusDataInterest, hrerrorcode: windows_core::HRESULT, lptrkey: *mut isize) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::Error(this, windows_core::from_raw_borrowed(&pirtssrc), windows_core::from_raw_borrowed(&piplugin), core::mem::transmute_copy(&datainterest), core::mem::transmute_copy(&hrerrorcode), core::mem::transmute_copy(&lptrkey)).into() } - unsafe extern "system" fn UpdateMapping(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn UpdateMapping(this: *mut core::ffi::c_void, pirtssrc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStylusPlugin_Impl::UpdateMapping(this, windows_core::from_raw_borrowed(&pirtssrc)).into() } - unsafe extern "system" fn DataInterest(this: *mut core::ffi::c_void, pdatainterest: *mut RealTimeStylusDataInterest) -> windows_core::HRESULT - where - Identity: IStylusPlugin_Impl, - { + unsafe extern "system" fn DataInterest(this: *mut core::ffi::c_void, pdatainterest: *mut RealTimeStylusDataInterest) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStylusPlugin_Impl::DataInterest(this) { Ok(ok__) => { @@ -8905,17 +6769,14 @@ pub trait IStylusSyncPlugin_Impl: Sized + IStylusPlugin_Impl {} impl windows_core::RuntimeName for IStylusSyncPlugin {} #[cfg(feature = "Win32_System_Com")] impl IStylusSyncPlugin_Vtbl { - pub const fn new() -> IStylusSyncPlugin_Vtbl - where - Identity: IStylusSyncPlugin_Impl, - { + pub const fn new() -> IStylusSyncPlugin_Vtbl { Self { base__: IStylusPlugin_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait ITextInputPanel_Impl: Sized { +pub trait ITextInputPanel_Impl: Sized + windows_core::IUnknownImpl { fn AttachedEditWindow(&self) -> windows_core::Result; fn SetAttachedEditWindow(&self, attachededitwindow: super::super::Foundation::HWND) -> windows_core::Result<()>; fn CurrentInteractionMode(&self) -> windows_core::Result; @@ -8944,14 +6805,8 @@ pub trait ITextInputPanel_Impl: Sized { } impl windows_core::RuntimeName for ITextInputPanel {} impl ITextInputPanel_Vtbl { - pub const fn new() -> ITextInputPanel_Vtbl - where - Identity: ITextInputPanel_Impl, - { - unsafe extern "system" fn AttachedEditWindow(this: *mut core::ffi::c_void, attachededitwindow: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + pub const fn new() -> ITextInputPanel_Vtbl { + unsafe extern "system" fn AttachedEditWindow(this: *mut core::ffi::c_void, attachededitwindow: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::AttachedEditWindow(this) { Ok(ok__) => { @@ -8961,17 +6816,11 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetAttachedEditWindow(this: *mut core::ffi::c_void, attachededitwindow: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn SetAttachedEditWindow(this: *mut core::ffi::c_void, attachededitwindow: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetAttachedEditWindow(this, core::mem::transmute_copy(&attachededitwindow)).into() } - unsafe extern "system" fn CurrentInteractionMode(this: *mut core::ffi::c_void, currentinteractionmode: *mut InteractionMode) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn CurrentInteractionMode(this: *mut core::ffi::c_void, currentinteractionmode: *mut InteractionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::CurrentInteractionMode(this) { Ok(ok__) => { @@ -8981,10 +6830,7 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultInPlaceState(this: *mut core::ffi::c_void, state: *mut InPlaceState) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn DefaultInPlaceState(this: *mut core::ffi::c_void, state: *mut InPlaceState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::DefaultInPlaceState(this) { Ok(ok__) => { @@ -8994,17 +6840,11 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultInPlaceState(this: *mut core::ffi::c_void, state: InPlaceState) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn SetDefaultInPlaceState(this: *mut core::ffi::c_void, state: InPlaceState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetDefaultInPlaceState(this, core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn CurrentInPlaceState(this: *mut core::ffi::c_void, state: *mut InPlaceState) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn CurrentInPlaceState(this: *mut core::ffi::c_void, state: *mut InPlaceState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::CurrentInPlaceState(this) { Ok(ok__) => { @@ -9014,10 +6854,7 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DefaultInputArea(this: *mut core::ffi::c_void, area: *mut PanelInputArea) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn DefaultInputArea(this: *mut core::ffi::c_void, area: *mut PanelInputArea) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::DefaultInputArea(this) { Ok(ok__) => { @@ -9027,17 +6864,11 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultInputArea(this: *mut core::ffi::c_void, area: PanelInputArea) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn SetDefaultInputArea(this: *mut core::ffi::c_void, area: PanelInputArea) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetDefaultInputArea(this, core::mem::transmute_copy(&area)).into() } - unsafe extern "system" fn CurrentInputArea(this: *mut core::ffi::c_void, area: *mut PanelInputArea) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn CurrentInputArea(this: *mut core::ffi::c_void, area: *mut PanelInputArea) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::CurrentInputArea(this) { Ok(ok__) => { @@ -9047,10 +6878,7 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CurrentCorrectionMode(this: *mut core::ffi::c_void, mode: *mut CorrectionMode) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn CurrentCorrectionMode(this: *mut core::ffi::c_void, mode: *mut CorrectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::CurrentCorrectionMode(this) { Ok(ok__) => { @@ -9060,10 +6888,7 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PreferredInPlaceDirection(this: *mut core::ffi::c_void, direction: *mut InPlaceDirection) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn PreferredInPlaceDirection(this: *mut core::ffi::c_void, direction: *mut InPlaceDirection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::PreferredInPlaceDirection(this) { Ok(ok__) => { @@ -9073,17 +6898,11 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetPreferredInPlaceDirection(this: *mut core::ffi::c_void, direction: InPlaceDirection) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn SetPreferredInPlaceDirection(this: *mut core::ffi::c_void, direction: InPlaceDirection) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetPreferredInPlaceDirection(this, core::mem::transmute_copy(&direction)).into() } - unsafe extern "system" fn ExpandPostInsertionCorrection(this: *mut core::ffi::c_void, expand: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn ExpandPostInsertionCorrection(this: *mut core::ffi::c_void, expand: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::ExpandPostInsertionCorrection(this) { Ok(ok__) => { @@ -9093,17 +6912,11 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetExpandPostInsertionCorrection(this: *mut core::ffi::c_void, expand: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn SetExpandPostInsertionCorrection(this: *mut core::ffi::c_void, expand: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetExpandPostInsertionCorrection(this, core::mem::transmute_copy(&expand)).into() } - unsafe extern "system" fn InPlaceVisibleOnFocus(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn InPlaceVisibleOnFocus(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::InPlaceVisibleOnFocus(this) { Ok(ok__) => { @@ -9113,17 +6926,11 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInPlaceVisibleOnFocus(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn SetInPlaceVisibleOnFocus(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetInPlaceVisibleOnFocus(this, core::mem::transmute_copy(&visible)).into() } - unsafe extern "system" fn InPlaceBoundingRectangle(this: *mut core::ffi::c_void, boundingrectangle: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn InPlaceBoundingRectangle(this: *mut core::ffi::c_void, boundingrectangle: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::InPlaceBoundingRectangle(this) { Ok(ok__) => { @@ -9133,10 +6940,7 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PopUpCorrectionHeight(this: *mut core::ffi::c_void, height: *mut i32) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn PopUpCorrectionHeight(this: *mut core::ffi::c_void, height: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::PopUpCorrectionHeight(this) { Ok(ok__) => { @@ -9146,10 +6950,7 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PopDownCorrectionHeight(this: *mut core::ffi::c_void, height: *mut i32) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn PopDownCorrectionHeight(this: *mut core::ffi::c_void, height: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::PopDownCorrectionHeight(this) { Ok(ok__) => { @@ -9159,45 +6960,27 @@ impl ITextInputPanel_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CommitPendingInput(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn CommitPendingInput(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::CommitPendingInput(this).into() } - unsafe extern "system" fn SetInPlaceVisibility(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn SetInPlaceVisibility(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetInPlaceVisibility(this, core::mem::transmute_copy(&visible)).into() } - unsafe extern "system" fn SetInPlacePosition(this: *mut core::ffi::c_void, xposition: i32, yposition: i32, position: CorrectionPosition) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn SetInPlacePosition(this: *mut core::ffi::c_void, xposition: i32, yposition: i32, position: CorrectionPosition) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetInPlacePosition(this, core::mem::transmute_copy(&xposition), core::mem::transmute_copy(&yposition), core::mem::transmute_copy(&position)).into() } - unsafe extern "system" fn SetInPlaceHoverTargetPosition(this: *mut core::ffi::c_void, xposition: i32, yposition: i32) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn SetInPlaceHoverTargetPosition(this: *mut core::ffi::c_void, xposition: i32, yposition: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetInPlaceHoverTargetPosition(this, core::mem::transmute_copy(&xposition), core::mem::transmute_copy(&yposition)).into() } - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, eventsink: *mut core::ffi::c_void, eventmask: u32) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, eventsink: *mut core::ffi::c_void, eventmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::Advise(this, windows_core::from_raw_borrowed(&eventsink), core::mem::transmute_copy(&eventmask)).into() } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, eventsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextInputPanel_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, eventsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::Unadvise(this, windows_core::from_raw_borrowed(&eventsink)).into() } @@ -9235,7 +7018,7 @@ impl ITextInputPanel_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITextInputPanelEventSink_Impl: Sized { +pub trait ITextInputPanelEventSink_Impl: Sized + windows_core::IUnknownImpl { fn InPlaceStateChanging(&self, oldinplacestate: InPlaceState, newinplacestate: InPlaceState) -> windows_core::Result<()>; fn InPlaceStateChanged(&self, oldinplacestate: InPlaceState, newinplacestate: InPlaceState) -> windows_core::Result<()>; fn InPlaceSizeChanging(&self, oldboundingrectangle: &super::super::Foundation::RECT, newboundingrectangle: &super::super::Foundation::RECT) -> windows_core::Result<()>; @@ -9253,91 +7036,52 @@ pub trait ITextInputPanelEventSink_Impl: Sized { impl windows_core::RuntimeName for ITextInputPanelEventSink {} #[cfg(feature = "Win32_System_Com")] impl ITextInputPanelEventSink_Vtbl { - pub const fn new() -> ITextInputPanelEventSink_Vtbl - where - Identity: ITextInputPanelEventSink_Impl, - { - unsafe extern "system" fn InPlaceStateChanging(this: *mut core::ffi::c_void, oldinplacestate: InPlaceState, newinplacestate: InPlaceState) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + pub const fn new() -> ITextInputPanelEventSink_Vtbl { + unsafe extern "system" fn InPlaceStateChanging(this: *mut core::ffi::c_void, oldinplacestate: InPlaceState, newinplacestate: InPlaceState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::InPlaceStateChanging(this, core::mem::transmute_copy(&oldinplacestate), core::mem::transmute_copy(&newinplacestate)).into() } - unsafe extern "system" fn InPlaceStateChanged(this: *mut core::ffi::c_void, oldinplacestate: InPlaceState, newinplacestate: InPlaceState) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn InPlaceStateChanged(this: *mut core::ffi::c_void, oldinplacestate: InPlaceState, newinplacestate: InPlaceState) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::InPlaceStateChanged(this, core::mem::transmute_copy(&oldinplacestate), core::mem::transmute_copy(&newinplacestate)).into() } - unsafe extern "system" fn InPlaceSizeChanging(this: *mut core::ffi::c_void, oldboundingrectangle: super::super::Foundation::RECT, newboundingrectangle: super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn InPlaceSizeChanging(this: *mut core::ffi::c_void, oldboundingrectangle: super::super::Foundation::RECT, newboundingrectangle: super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::InPlaceSizeChanging(this, core::mem::transmute(&oldboundingrectangle), core::mem::transmute(&newboundingrectangle)).into() } - unsafe extern "system" fn InPlaceSizeChanged(this: *mut core::ffi::c_void, oldboundingrectangle: super::super::Foundation::RECT, newboundingrectangle: super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn InPlaceSizeChanged(this: *mut core::ffi::c_void, oldboundingrectangle: super::super::Foundation::RECT, newboundingrectangle: super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::InPlaceSizeChanged(this, core::mem::transmute(&oldboundingrectangle), core::mem::transmute(&newboundingrectangle)).into() } - unsafe extern "system" fn InputAreaChanging(this: *mut core::ffi::c_void, oldinputarea: PanelInputArea, newinputarea: PanelInputArea) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn InputAreaChanging(this: *mut core::ffi::c_void, oldinputarea: PanelInputArea, newinputarea: PanelInputArea) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::InputAreaChanging(this, core::mem::transmute_copy(&oldinputarea), core::mem::transmute_copy(&newinputarea)).into() } - unsafe extern "system" fn InputAreaChanged(this: *mut core::ffi::c_void, oldinputarea: PanelInputArea, newinputarea: PanelInputArea) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn InputAreaChanged(this: *mut core::ffi::c_void, oldinputarea: PanelInputArea, newinputarea: PanelInputArea) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::InputAreaChanged(this, core::mem::transmute_copy(&oldinputarea), core::mem::transmute_copy(&newinputarea)).into() } - unsafe extern "system" fn CorrectionModeChanging(this: *mut core::ffi::c_void, oldcorrectionmode: CorrectionMode, newcorrectionmode: CorrectionMode) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn CorrectionModeChanging(this: *mut core::ffi::c_void, oldcorrectionmode: CorrectionMode, newcorrectionmode: CorrectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::CorrectionModeChanging(this, core::mem::transmute_copy(&oldcorrectionmode), core::mem::transmute_copy(&newcorrectionmode)).into() } - unsafe extern "system" fn CorrectionModeChanged(this: *mut core::ffi::c_void, oldcorrectionmode: CorrectionMode, newcorrectionmode: CorrectionMode) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn CorrectionModeChanged(this: *mut core::ffi::c_void, oldcorrectionmode: CorrectionMode, newcorrectionmode: CorrectionMode) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::CorrectionModeChanged(this, core::mem::transmute_copy(&oldcorrectionmode), core::mem::transmute_copy(&newcorrectionmode)).into() } - unsafe extern "system" fn InPlaceVisibilityChanging(this: *mut core::ffi::c_void, oldvisible: super::super::Foundation::BOOL, newvisible: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn InPlaceVisibilityChanging(this: *mut core::ffi::c_void, oldvisible: super::super::Foundation::BOOL, newvisible: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::InPlaceVisibilityChanging(this, core::mem::transmute_copy(&oldvisible), core::mem::transmute_copy(&newvisible)).into() } - unsafe extern "system" fn InPlaceVisibilityChanged(this: *mut core::ffi::c_void, oldvisible: super::super::Foundation::BOOL, newvisible: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn InPlaceVisibilityChanged(this: *mut core::ffi::c_void, oldvisible: super::super::Foundation::BOOL, newvisible: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::InPlaceVisibilityChanged(this, core::mem::transmute_copy(&oldvisible), core::mem::transmute_copy(&newvisible)).into() } - unsafe extern "system" fn TextInserting(this: *mut core::ffi::c_void, ink: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn TextInserting(this: *mut core::ffi::c_void, ink: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::TextInserting(this, core::mem::transmute_copy(&ink)).into() } - unsafe extern "system" fn TextInserted(this: *mut core::ffi::c_void, ink: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT - where - Identity: ITextInputPanelEventSink_Impl, - { + unsafe extern "system" fn TextInserted(this: *mut core::ffi::c_void, ink: *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::TextInserted(this, core::mem::transmute_copy(&ink)).into() } @@ -9361,19 +7105,13 @@ impl ITextInputPanelEventSink_Vtbl { iid == &::IID } } -pub trait ITextInputPanelRunInfo_Impl: Sized { +pub trait ITextInputPanelRunInfo_Impl: Sized + windows_core::IUnknownImpl { fn IsTipRunning(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITextInputPanelRunInfo {} impl ITextInputPanelRunInfo_Vtbl { - pub const fn new() -> ITextInputPanelRunInfo_Vtbl - where - Identity: ITextInputPanelRunInfo_Impl, - { - unsafe extern "system" fn IsTipRunning(this: *mut core::ffi::c_void, pfrunning: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextInputPanelRunInfo_Impl, - { + pub const fn new() -> ITextInputPanelRunInfo_Vtbl { + unsafe extern "system" fn IsTipRunning(this: *mut core::ffi::c_void, pfrunning: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanelRunInfo_Impl::IsTipRunning(this) { Ok(ok__) => { @@ -9389,7 +7127,7 @@ impl ITextInputPanelRunInfo_Vtbl { iid == &::IID } } -pub trait ITipAutoCompleteClient_Impl: Sized { +pub trait ITipAutoCompleteClient_Impl: Sized + windows_core::IUnknownImpl { fn AdviseProvider(&self, hwndfield: super::super::Foundation::HWND, piprovider: Option<&ITipAutoCompleteProvider>) -> windows_core::Result<()>; fn UnadviseProvider(&self, hwndfield: super::super::Foundation::HWND, piprovider: Option<&ITipAutoCompleteProvider>) -> windows_core::Result<()>; fn UserSelection(&self) -> windows_core::Result<()>; @@ -9398,42 +7136,24 @@ pub trait ITipAutoCompleteClient_Impl: Sized { } impl windows_core::RuntimeName for ITipAutoCompleteClient {} impl ITipAutoCompleteClient_Vtbl { - pub const fn new() -> ITipAutoCompleteClient_Vtbl - where - Identity: ITipAutoCompleteClient_Impl, - { - unsafe extern "system" fn AdviseProvider(this: *mut core::ffi::c_void, hwndfield: super::super::Foundation::HWND, piprovider: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITipAutoCompleteClient_Impl, - { + pub const fn new() -> ITipAutoCompleteClient_Vtbl { + unsafe extern "system" fn AdviseProvider(this: *mut core::ffi::c_void, hwndfield: super::super::Foundation::HWND, piprovider: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITipAutoCompleteClient_Impl::AdviseProvider(this, core::mem::transmute_copy(&hwndfield), windows_core::from_raw_borrowed(&piprovider)).into() } - unsafe extern "system" fn UnadviseProvider(this: *mut core::ffi::c_void, hwndfield: super::super::Foundation::HWND, piprovider: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITipAutoCompleteClient_Impl, - { + unsafe extern "system" fn UnadviseProvider(this: *mut core::ffi::c_void, hwndfield: super::super::Foundation::HWND, piprovider: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITipAutoCompleteClient_Impl::UnadviseProvider(this, core::mem::transmute_copy(&hwndfield), windows_core::from_raw_borrowed(&piprovider)).into() } - unsafe extern "system" fn UserSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITipAutoCompleteClient_Impl, - { + unsafe extern "system" fn UserSelection(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITipAutoCompleteClient_Impl::UserSelection(this).into() } - unsafe extern "system" fn PreferredRects(this: *mut core::ffi::c_void, prcaclist: *const super::super::Foundation::RECT, prcfield: *const super::super::Foundation::RECT, prcmodifiedaclist: *mut super::super::Foundation::RECT, pfshownabovetip: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITipAutoCompleteClient_Impl, - { + unsafe extern "system" fn PreferredRects(this: *mut core::ffi::c_void, prcaclist: *const super::super::Foundation::RECT, prcfield: *const super::super::Foundation::RECT, prcmodifiedaclist: *mut super::super::Foundation::RECT, pfshownabovetip: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITipAutoCompleteClient_Impl::PreferredRects(this, core::mem::transmute_copy(&prcaclist), core::mem::transmute_copy(&prcfield), core::mem::transmute_copy(&prcmodifiedaclist), core::mem::transmute_copy(&pfshownabovetip)).into() } - unsafe extern "system" fn RequestShowUI(this: *mut core::ffi::c_void, hwndlist: super::super::Foundation::HWND, pfallowshowing: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITipAutoCompleteClient_Impl, - { + unsafe extern "system" fn RequestShowUI(this: *mut core::ffi::c_void, hwndlist: super::super::Foundation::HWND, pfallowshowing: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITipAutoCompleteClient_Impl::RequestShowUI(this, core::mem::transmute_copy(&hwndlist)) { Ok(ok__) => { @@ -9456,27 +7176,18 @@ impl ITipAutoCompleteClient_Vtbl { iid == &::IID } } -pub trait ITipAutoCompleteProvider_Impl: Sized { +pub trait ITipAutoCompleteProvider_Impl: Sized + windows_core::IUnknownImpl { fn UpdatePendingText(&self, bstrpendingtext: &windows_core::BSTR) -> windows_core::Result<()>; fn Show(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITipAutoCompleteProvider {} impl ITipAutoCompleteProvider_Vtbl { - pub const fn new() -> ITipAutoCompleteProvider_Vtbl - where - Identity: ITipAutoCompleteProvider_Impl, - { - unsafe extern "system" fn UpdatePendingText(this: *mut core::ffi::c_void, bstrpendingtext: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITipAutoCompleteProvider_Impl, - { + pub const fn new() -> ITipAutoCompleteProvider_Vtbl { + unsafe extern "system" fn UpdatePendingText(this: *mut core::ffi::c_void, bstrpendingtext: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITipAutoCompleteProvider_Impl::UpdatePendingText(this, core::mem::transmute(&bstrpendingtext)).into() } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITipAutoCompleteProvider_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITipAutoCompleteProvider_Impl::Show(this, core::mem::transmute_copy(&fshow)).into() } @@ -9496,10 +7207,7 @@ pub trait _IInkCollectorEvents_Impl: Sized + super::super::System::Com::IDispatc impl windows_core::RuntimeName for _IInkCollectorEvents {} #[cfg(feature = "Win32_System_Com")] impl _IInkCollectorEvents_Vtbl { - pub const fn new() -> _IInkCollectorEvents_Vtbl - where - Identity: _IInkCollectorEvents_Impl, - { + pub const fn new() -> _IInkCollectorEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -9512,10 +7220,7 @@ pub trait _IInkEditEvents_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for _IInkEditEvents {} #[cfg(feature = "Win32_System_Com")] impl _IInkEditEvents_Vtbl { - pub const fn new() -> _IInkEditEvents_Vtbl - where - Identity: _IInkEditEvents_Impl, - { + pub const fn new() -> _IInkEditEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -9528,10 +7233,7 @@ pub trait _IInkEvents_Impl: Sized + super::super::System::Com::IDispatch_Impl {} impl windows_core::RuntimeName for _IInkEvents {} #[cfg(feature = "Win32_System_Com")] impl _IInkEvents_Vtbl { - pub const fn new() -> _IInkEvents_Vtbl - where - Identity: _IInkEvents_Impl, - { + pub const fn new() -> _IInkEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -9544,10 +7246,7 @@ pub trait _IInkOverlayEvents_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for _IInkOverlayEvents {} #[cfg(feature = "Win32_System_Com")] impl _IInkOverlayEvents_Vtbl { - pub const fn new() -> _IInkOverlayEvents_Vtbl - where - Identity: _IInkOverlayEvents_Impl, - { + pub const fn new() -> _IInkOverlayEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -9560,10 +7259,7 @@ pub trait _IInkPictureEvents_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for _IInkPictureEvents {} #[cfg(feature = "Win32_System_Com")] impl _IInkPictureEvents_Vtbl { - pub const fn new() -> _IInkPictureEvents_Vtbl - where - Identity: _IInkPictureEvents_Impl, - { + pub const fn new() -> _IInkPictureEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -9576,10 +7272,7 @@ pub trait _IInkRecognitionEvents_Impl: Sized + super::super::System::Com::IDispa impl windows_core::RuntimeName for _IInkRecognitionEvents {} #[cfg(feature = "Win32_System_Com")] impl _IInkRecognitionEvents_Vtbl { - pub const fn new() -> _IInkRecognitionEvents_Vtbl - where - Identity: _IInkRecognitionEvents_Impl, - { + pub const fn new() -> _IInkRecognitionEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -9592,10 +7285,7 @@ pub trait _IInkStrokesEvents_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for _IInkStrokesEvents {} #[cfg(feature = "Win32_System_Com")] impl _IInkStrokesEvents_Vtbl { - pub const fn new() -> _IInkStrokesEvents_Vtbl - where - Identity: _IInkStrokesEvents_Impl, - { + pub const fn new() -> _IInkStrokesEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -9608,10 +7298,7 @@ pub trait _IMathInputControlEvents_Impl: Sized + super::super::System::Com::IDis impl windows_core::RuntimeName for _IMathInputControlEvents {} #[cfg(feature = "Win32_System_Com")] impl _IMathInputControlEvents_Vtbl { - pub const fn new() -> _IMathInputControlEvents_Vtbl - where - Identity: _IMathInputControlEvents_Impl, - { + pub const fn new() -> _IMathInputControlEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -9624,10 +7311,7 @@ pub trait _IPenInputPanelEvents_Impl: Sized + super::super::System::Com::IDispat impl windows_core::RuntimeName for _IPenInputPanelEvents {} #[cfg(feature = "Win32_System_Com")] impl _IPenInputPanelEvents_Vtbl { - pub const fn new() -> _IPenInputPanelEvents_Vtbl - where - Identity: _IPenInputPanelEvents_Impl, - { + pub const fn new() -> _IPenInputPanelEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { 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 3999d03289..b341bfd774 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TextServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TextServices/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_System_Com")] -pub trait IAccClientDocMgr_Impl: Sized { +pub trait IAccClientDocMgr_Impl: Sized + windows_core::IUnknownImpl { fn GetDocuments(&self) -> windows_core::Result; fn LookupByHWND(&self, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID) -> windows_core::Result; fn LookupByPoint(&self, pt: &super::super::Foundation::POINT, riid: *const windows_core::GUID) -> windows_core::Result; @@ -9,14 +9,8 @@ pub trait IAccClientDocMgr_Impl: Sized { impl windows_core::RuntimeName for IAccClientDocMgr {} #[cfg(feature = "Win32_System_Com")] impl IAccClientDocMgr_Vtbl { - pub const fn new() -> IAccClientDocMgr_Vtbl - where - Identity: IAccClientDocMgr_Impl, - { - unsafe extern "system" fn GetDocuments(this: *mut core::ffi::c_void, enumunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccClientDocMgr_Impl, - { + pub const fn new() -> IAccClientDocMgr_Vtbl { + unsafe extern "system" fn GetDocuments(this: *mut core::ffi::c_void, enumunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccClientDocMgr_Impl::GetDocuments(this) { Ok(ok__) => { @@ -26,10 +20,7 @@ impl IAccClientDocMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LookupByHWND(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccClientDocMgr_Impl, - { + unsafe extern "system" fn LookupByHWND(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccClientDocMgr_Impl::LookupByHWND(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -39,10 +30,7 @@ impl IAccClientDocMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LookupByPoint(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccClientDocMgr_Impl, - { + unsafe extern "system" fn LookupByPoint(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccClientDocMgr_Impl::LookupByPoint(this, core::mem::transmute(&pt), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -52,10 +40,7 @@ impl IAccClientDocMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFocused(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccClientDocMgr_Impl, - { + unsafe extern "system" fn GetFocused(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccClientDocMgr_Impl::GetFocused(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -77,7 +62,7 @@ impl IAccClientDocMgr_Vtbl { iid == &::IID } } -pub trait IAccDictionary_Impl: Sized { +pub trait IAccDictionary_Impl: Sized + windows_core::IUnknownImpl { 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; fn GetMnemonicString(&self, term: *const windows_core::GUID) -> windows_core::Result; @@ -86,21 +71,12 @@ pub trait IAccDictionary_Impl: Sized { } impl windows_core::RuntimeName for IAccDictionary {} impl IAccDictionary_Vtbl { - pub const fn new() -> IAccDictionary_Vtbl - where - Identity: IAccDictionary_Impl, - { - unsafe extern "system" fn GetLocalizedString(this: *mut core::ffi::c_void, term: *const windows_core::GUID, lcid: u32, presult: *mut core::mem::MaybeUninit, plcid: *mut u32) -> windows_core::HRESULT - where - Identity: IAccDictionary_Impl, - { + pub const fn new() -> IAccDictionary_Vtbl { + unsafe extern "system" fn GetLocalizedString(this: *mut core::ffi::c_void, term: *const windows_core::GUID, lcid: u32, presult: *mut core::mem::MaybeUninit, plcid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccDictionary_Impl::GetLocalizedString(this, core::mem::transmute_copy(&term), core::mem::transmute_copy(&lcid), core::mem::transmute_copy(&presult), core::mem::transmute_copy(&plcid)).into() } - unsafe extern "system" fn GetParentTerm(this: *mut core::ffi::c_void, term: *const windows_core::GUID, pparentterm: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAccDictionary_Impl, - { + unsafe extern "system" fn GetParentTerm(this: *mut core::ffi::c_void, term: *const windows_core::GUID, pparentterm: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccDictionary_Impl::GetParentTerm(this, core::mem::transmute_copy(&term)) { Ok(ok__) => { @@ -110,10 +86,7 @@ impl IAccDictionary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMnemonicString(this: *mut core::ffi::c_void, term: *const windows_core::GUID, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IAccDictionary_Impl, - { + unsafe extern "system" fn GetMnemonicString(this: *mut core::ffi::c_void, term: *const windows_core::GUID, presult: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccDictionary_Impl::GetMnemonicString(this, core::mem::transmute_copy(&term)) { Ok(ok__) => { @@ -123,10 +96,7 @@ impl IAccDictionary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LookupMnemonicTerm(this: *mut core::ffi::c_void, bstrmnemonic: core::mem::MaybeUninit, pterm: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAccDictionary_Impl, - { + unsafe extern "system" fn LookupMnemonicTerm(this: *mut core::ffi::c_void, bstrmnemonic: core::mem::MaybeUninit, pterm: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccDictionary_Impl::LookupMnemonicTerm(this, core::mem::transmute(&bstrmnemonic)) { Ok(ok__) => { @@ -136,10 +106,7 @@ impl IAccDictionary_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ConvertValueToString(this: *mut core::ffi::c_void, term: *const windows_core::GUID, lcid: u32, varvalue: core::mem::MaybeUninit, pbstrresult: *mut core::mem::MaybeUninit, plcid: *mut u32) -> windows_core::HRESULT - where - Identity: IAccDictionary_Impl, - { + unsafe extern "system" fn ConvertValueToString(this: *mut core::ffi::c_void, term: *const windows_core::GUID, lcid: u32, varvalue: core::mem::MaybeUninit, pbstrresult: *mut core::mem::MaybeUninit, plcid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccDictionary_Impl::ConvertValueToString(this, 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() } @@ -156,35 +123,23 @@ impl IAccDictionary_Vtbl { iid == &::IID } } -pub trait IAccServerDocMgr_Impl: Sized { +pub trait IAccServerDocMgr_Impl: Sized + windows_core::IUnknownImpl { fn NewDocument(&self, riid: *const windows_core::GUID, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn RevokeDocument(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn OnDocumentFocus(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAccServerDocMgr {} impl IAccServerDocMgr_Vtbl { - pub const fn new() -> IAccServerDocMgr_Vtbl - where - Identity: IAccServerDocMgr_Impl, - { - unsafe extern "system" fn NewDocument(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccServerDocMgr_Impl, - { + pub const fn new() -> IAccServerDocMgr_Vtbl { + unsafe extern "system" fn NewDocument(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccServerDocMgr_Impl::NewDocument(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn RevokeDocument(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccServerDocMgr_Impl, - { + unsafe extern "system" fn RevokeDocument(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccServerDocMgr_Impl::RevokeDocument(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn OnDocumentFocus(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccServerDocMgr_Impl, - { + unsafe extern "system" fn OnDocumentFocus(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccServerDocMgr_Impl::OnDocumentFocus(this, windows_core::from_raw_borrowed(&punk)).into() } @@ -200,7 +155,7 @@ impl IAccServerDocMgr_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IAccStore_Impl: Sized { +pub trait IAccStore_Impl: Sized + windows_core::IUnknownImpl { fn Register(&self, riid: *const windows_core::GUID, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn Unregister(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetDocuments(&self) -> windows_core::Result; @@ -213,28 +168,16 @@ pub trait IAccStore_Impl: Sized { impl windows_core::RuntimeName for IAccStore {} #[cfg(feature = "Win32_System_Com")] impl IAccStore_Vtbl { - pub const fn new() -> IAccStore_Vtbl - where - Identity: IAccStore_Impl, - { - unsafe extern "system" fn Register(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccStore_Impl, - { + pub const fn new() -> IAccStore_Vtbl { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccStore_Impl::Register(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccStore_Impl, - { + unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccStore_Impl::Unregister(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn GetDocuments(this: *mut core::ffi::c_void, enumunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccStore_Impl, - { + unsafe extern "system" fn GetDocuments(this: *mut core::ffi::c_void, enumunknown: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccStore_Impl::GetDocuments(this) { Ok(ok__) => { @@ -244,10 +187,7 @@ impl IAccStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LookupByHWND(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccStore_Impl, - { + unsafe extern "system" fn LookupByHWND(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccStore_Impl::LookupByHWND(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -257,10 +197,7 @@ impl IAccStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn LookupByPoint(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccStore_Impl, - { + unsafe extern "system" fn LookupByPoint(this: *mut core::ffi::c_void, pt: super::super::Foundation::POINT, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccStore_Impl::LookupByPoint(this, core::mem::transmute(&pt), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -270,17 +207,11 @@ impl IAccStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnDocumentFocus(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccStore_Impl, - { + unsafe extern "system" fn OnDocumentFocus(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccStore_Impl::OnDocumentFocus(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn GetFocused(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAccStore_Impl, - { + unsafe extern "system" fn GetFocused(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAccStore_Impl::GetFocused(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -305,7 +236,7 @@ impl IAccStore_Vtbl { iid == &::IID } } -pub trait IAnchor_Impl: Sized { +pub trait IAnchor_Impl: Sized + windows_core::IUnknownImpl { fn SetGravity(&self, gravity: TsGravity) -> windows_core::Result<()>; fn GetGravity(&self) -> windows_core::Result; fn IsEqual(&self, pawith: Option<&IAnchor>) -> windows_core::Result; @@ -320,21 +251,12 @@ pub trait IAnchor_Impl: Sized { } impl windows_core::RuntimeName for IAnchor {} impl IAnchor_Vtbl { - pub const fn new() -> IAnchor_Vtbl - where - Identity: IAnchor_Impl, - { - unsafe extern "system" fn SetGravity(this: *mut core::ffi::c_void, gravity: TsGravity) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + pub const fn new() -> IAnchor_Vtbl { + unsafe extern "system" fn SetGravity(this: *mut core::ffi::c_void, gravity: TsGravity) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnchor_Impl::SetGravity(this, core::mem::transmute_copy(&gravity)).into() } - unsafe extern "system" fn GetGravity(this: *mut core::ffi::c_void, pgravity: *mut TsGravity) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + unsafe extern "system" fn GetGravity(this: *mut core::ffi::c_void, pgravity: *mut TsGravity) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnchor_Impl::GetGravity(this) { Ok(ok__) => { @@ -344,10 +266,7 @@ impl IAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pawith: *mut core::ffi::c_void, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pawith: *mut core::ffi::c_void, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnchor_Impl::IsEqual(this, windows_core::from_raw_borrowed(&pawith)) { Ok(ok__) => { @@ -357,10 +276,7 @@ impl IAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, pawith: *mut core::ffi::c_void, plresult: *mut i32) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, pawith: *mut core::ffi::c_void, plresult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnchor_Impl::Compare(this, windows_core::from_raw_borrowed(&pawith)) { Ok(ok__) => { @@ -370,24 +286,15 @@ impl IAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shift(this: *mut core::ffi::c_void, dwflags: u32, cchreq: i32, pcch: *mut i32, pahaltanchor: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + unsafe extern "system" fn Shift(this: *mut core::ffi::c_void, dwflags: u32, cchreq: i32, pcch: *mut i32, pahaltanchor: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnchor_Impl::Shift(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&cchreq), core::mem::transmute_copy(&pcch), windows_core::from_raw_borrowed(&pahaltanchor)).into() } - unsafe extern "system" fn ShiftTo(this: *mut core::ffi::c_void, pasite: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + unsafe extern "system" fn ShiftTo(this: *mut core::ffi::c_void, pasite: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnchor_Impl::ShiftTo(this, windows_core::from_raw_borrowed(&pasite)).into() } - unsafe extern "system" fn ShiftRegion(this: *mut core::ffi::c_void, dwflags: u32, dir: TsShiftDir, pfnoregion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + unsafe extern "system" fn ShiftRegion(this: *mut core::ffi::c_void, dwflags: u32, dir: TsShiftDir, pfnoregion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnchor_Impl::ShiftRegion(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dir)) { Ok(ok__) => { @@ -397,17 +304,11 @@ impl IAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetChangeHistoryMask(this: *mut core::ffi::c_void, dwmask: u32) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + unsafe extern "system" fn SetChangeHistoryMask(this: *mut core::ffi::c_void, dwmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnchor_Impl::SetChangeHistoryMask(this, core::mem::transmute_copy(&dwmask)).into() } - unsafe extern "system" fn GetChangeHistory(this: *mut core::ffi::c_void, pdwhistory: *mut ANCHOR_CHANGE_HISTORY_FLAGS) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + unsafe extern "system" fn GetChangeHistory(this: *mut core::ffi::c_void, pdwhistory: *mut ANCHOR_CHANGE_HISTORY_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnchor_Impl::GetChangeHistory(this) { Ok(ok__) => { @@ -417,17 +318,11 @@ impl IAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClearChangeHistory(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + unsafe extern "system" fn ClearChangeHistory(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnchor_Impl::ClearChangeHistory(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppaclone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAnchor_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppaclone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnchor_Impl::Clone(this) { Ok(ok__) => { @@ -456,19 +351,13 @@ impl IAnchor_Vtbl { iid == &::IID } } -pub trait IClonableWrapper_Impl: Sized { +pub trait IClonableWrapper_Impl: Sized + windows_core::IUnknownImpl { fn CloneNewWrapper(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IClonableWrapper {} impl IClonableWrapper_Vtbl { - pub const fn new() -> IClonableWrapper_Vtbl - where - Identity: IClonableWrapper_Impl, - { - unsafe extern "system" fn CloneNewWrapper(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IClonableWrapper_Impl, - { + pub const fn new() -> IClonableWrapper_Vtbl { + unsafe extern "system" fn CloneNewWrapper(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClonableWrapper_Impl::CloneNewWrapper(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -478,19 +367,13 @@ impl IClonableWrapper_Vtbl { iid == &::IID } } -pub trait ICoCreateLocally_Impl: Sized { +pub trait ICoCreateLocally_Impl: Sized + windows_core::IUnknownImpl { fn CoCreateLocally(&self, rclsid: *const windows_core::GUID, dwclscontext: u32, riid: *const windows_core::GUID, punk: *mut Option, riidparam: *const windows_core::GUID, punkparam: Option<&windows_core::IUnknown>, varparam: &windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICoCreateLocally {} impl ICoCreateLocally_Vtbl { - pub const fn new() -> ICoCreateLocally_Vtbl - where - Identity: ICoCreateLocally_Impl, - { - unsafe extern "system" fn CoCreateLocally(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, dwclscontext: u32, riid: *const windows_core::GUID, punk: *mut *mut core::ffi::c_void, riidparam: *const windows_core::GUID, punkparam: *mut core::ffi::c_void, varparam: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICoCreateLocally_Impl, - { + pub const fn new() -> ICoCreateLocally_Vtbl { + unsafe extern "system" fn CoCreateLocally(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, dwclscontext: u32, riid: *const windows_core::GUID, punk: *mut *mut core::ffi::c_void, riidparam: *const windows_core::GUID, punkparam: *mut core::ffi::c_void, varparam: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoCreateLocally_Impl::CoCreateLocally(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&dwclscontext), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&punk), core::mem::transmute_copy(&riidparam), windows_core::from_raw_borrowed(&punkparam), core::mem::transmute(&varparam)).into() } @@ -500,19 +383,13 @@ impl ICoCreateLocally_Vtbl { iid == &::IID } } -pub trait ICoCreatedLocally_Impl: Sized { +pub trait ICoCreatedLocally_Impl: Sized + windows_core::IUnknownImpl { fn LocalInit(&self, punklocalobject: Option<&windows_core::IUnknown>, riidparam: *const windows_core::GUID, punkparam: Option<&windows_core::IUnknown>, varparam: &windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICoCreatedLocally {} impl ICoCreatedLocally_Vtbl { - pub const fn new() -> ICoCreatedLocally_Vtbl - where - Identity: ICoCreatedLocally_Impl, - { - unsafe extern "system" fn LocalInit(this: *mut core::ffi::c_void, punklocalobject: *mut core::ffi::c_void, riidparam: *const windows_core::GUID, punkparam: *mut core::ffi::c_void, varparam: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ICoCreatedLocally_Impl, - { + pub const fn new() -> ICoCreatedLocally_Vtbl { + unsafe extern "system" fn LocalInit(this: *mut core::ffi::c_void, punklocalobject: *mut core::ffi::c_void, riidparam: *const windows_core::GUID, punkparam: *mut core::ffi::c_void, varparam: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoCreatedLocally_Impl::LocalInit(this, windows_core::from_raw_borrowed(&punklocalobject), core::mem::transmute_copy(&riidparam), windows_core::from_raw_borrowed(&punkparam), core::mem::transmute(&varparam)).into() } @@ -522,27 +399,18 @@ impl ICoCreatedLocally_Vtbl { iid == &::IID } } -pub trait IDocWrap_Impl: Sized { +pub trait IDocWrap_Impl: Sized + windows_core::IUnknownImpl { fn SetDoc(&self, riid: *const windows_core::GUID, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn GetWrappedDoc(&self, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for IDocWrap {} impl IDocWrap_Vtbl { - pub const fn new() -> IDocWrap_Vtbl - where - Identity: IDocWrap_Impl, - { - unsafe extern "system" fn SetDoc(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDocWrap_Impl, - { + pub const fn new() -> IDocWrap_Vtbl { + unsafe extern "system" fn SetDoc(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDocWrap_Impl::SetDoc(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn GetWrappedDoc(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDocWrap_Impl, - { + unsafe extern "system" fn GetWrappedDoc(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDocWrap_Impl::GetWrappedDoc(this, core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -562,7 +430,7 @@ impl IDocWrap_Vtbl { iid == &::IID } } -pub trait IEnumITfCompositionView_Impl: Sized { +pub trait IEnumITfCompositionView_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, rgcompositionview: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -570,14 +438,8 @@ pub trait IEnumITfCompositionView_Impl: Sized { } impl windows_core::RuntimeName for IEnumITfCompositionView {} impl IEnumITfCompositionView_Vtbl { - pub const fn new() -> IEnumITfCompositionView_Vtbl - where - Identity: IEnumITfCompositionView_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumITfCompositionView_Impl, - { + pub const fn new() -> IEnumITfCompositionView_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumITfCompositionView_Impl::Clone(this) { Ok(ok__) => { @@ -587,24 +449,15 @@ impl IEnumITfCompositionView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgcompositionview: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumITfCompositionView_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgcompositionview: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumITfCompositionView_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&rgcompositionview), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumITfCompositionView_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumITfCompositionView_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumITfCompositionView_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumITfCompositionView_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -620,7 +473,7 @@ impl IEnumITfCompositionView_Vtbl { iid == &::IID } } -pub trait IEnumSpeechCommands_Impl: Sized { +pub trait IEnumSpeechCommands_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, pspcmds: *mut *mut u16, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -628,14 +481,8 @@ pub trait IEnumSpeechCommands_Impl: Sized { } impl windows_core::RuntimeName for IEnumSpeechCommands {} impl IEnumSpeechCommands_Vtbl { - pub const fn new() -> IEnumSpeechCommands_Vtbl - where - Identity: IEnumSpeechCommands_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSpeechCommands_Impl, - { + pub const fn new() -> IEnumSpeechCommands_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSpeechCommands_Impl::Clone(this) { Ok(ok__) => { @@ -645,24 +492,15 @@ impl IEnumSpeechCommands_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, pspcmds: *mut *mut u16, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSpeechCommands_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, pspcmds: *mut *mut u16, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSpeechCommands_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pspcmds), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSpeechCommands_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSpeechCommands_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumSpeechCommands_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSpeechCommands_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -678,7 +516,7 @@ impl IEnumSpeechCommands_Vtbl { iid == &::IID } } -pub trait IEnumTfCandidates_Impl: Sized { +pub trait IEnumTfCandidates_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, ppcand: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -686,14 +524,8 @@ pub trait IEnumTfCandidates_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfCandidates {} impl IEnumTfCandidates_Vtbl { - pub const fn new() -> IEnumTfCandidates_Vtbl - where - Identity: IEnumTfCandidates_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfCandidates_Impl, - { + pub const fn new() -> IEnumTfCandidates_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfCandidates_Impl::Clone(this) { Ok(ok__) => { @@ -703,24 +535,15 @@ impl IEnumTfCandidates_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, ppcand: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfCandidates_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, ppcand: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfCandidates_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&ppcand), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfCandidates_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfCandidates_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfCandidates_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfCandidates_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -736,7 +559,7 @@ impl IEnumTfCandidates_Vtbl { iid == &::IID } } -pub trait IEnumTfContextViews_Impl: Sized { +pub trait IEnumTfContextViews_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, rgviews: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -744,14 +567,8 @@ pub trait IEnumTfContextViews_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfContextViews {} impl IEnumTfContextViews_Vtbl { - pub const fn new() -> IEnumTfContextViews_Vtbl - where - Identity: IEnumTfContextViews_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfContextViews_Impl, - { + pub const fn new() -> IEnumTfContextViews_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfContextViews_Impl::Clone(this) { Ok(ok__) => { @@ -761,24 +578,15 @@ impl IEnumTfContextViews_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgviews: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfContextViews_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgviews: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfContextViews_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&rgviews), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfContextViews_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfContextViews_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfContextViews_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfContextViews_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -794,7 +602,7 @@ impl IEnumTfContextViews_Vtbl { iid == &::IID } } -pub trait IEnumTfContexts_Impl: Sized { +pub trait IEnumTfContexts_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, rgcontext: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -802,14 +610,8 @@ pub trait IEnumTfContexts_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfContexts {} impl IEnumTfContexts_Vtbl { - pub const fn new() -> IEnumTfContexts_Vtbl - where - Identity: IEnumTfContexts_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfContexts_Impl, - { + pub const fn new() -> IEnumTfContexts_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfContexts_Impl::Clone(this) { Ok(ok__) => { @@ -819,24 +621,15 @@ impl IEnumTfContexts_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgcontext: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfContexts_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgcontext: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfContexts_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&rgcontext), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfContexts_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfContexts_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfContexts_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfContexts_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -852,7 +645,7 @@ impl IEnumTfContexts_Vtbl { iid == &::IID } } -pub trait IEnumTfDisplayAttributeInfo_Impl: Sized { +pub trait IEnumTfDisplayAttributeInfo_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, rginfo: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -860,14 +653,8 @@ pub trait IEnumTfDisplayAttributeInfo_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfDisplayAttributeInfo {} impl IEnumTfDisplayAttributeInfo_Vtbl { - pub const fn new() -> IEnumTfDisplayAttributeInfo_Vtbl - where - Identity: IEnumTfDisplayAttributeInfo_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfDisplayAttributeInfo_Impl, - { + pub const fn new() -> IEnumTfDisplayAttributeInfo_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfDisplayAttributeInfo_Impl::Clone(this) { Ok(ok__) => { @@ -877,24 +664,15 @@ impl IEnumTfDisplayAttributeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rginfo: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfDisplayAttributeInfo_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rginfo: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfDisplayAttributeInfo_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&rginfo), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfDisplayAttributeInfo_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfDisplayAttributeInfo_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfDisplayAttributeInfo_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfDisplayAttributeInfo_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -910,7 +688,7 @@ impl IEnumTfDisplayAttributeInfo_Vtbl { iid == &::IID } } -pub trait IEnumTfDocumentMgrs_Impl: Sized { +pub trait IEnumTfDocumentMgrs_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, rgdocumentmgr: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -918,14 +696,8 @@ pub trait IEnumTfDocumentMgrs_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfDocumentMgrs {} impl IEnumTfDocumentMgrs_Vtbl { - pub const fn new() -> IEnumTfDocumentMgrs_Vtbl - where - Identity: IEnumTfDocumentMgrs_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfDocumentMgrs_Impl, - { + pub const fn new() -> IEnumTfDocumentMgrs_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfDocumentMgrs_Impl::Clone(this) { Ok(ok__) => { @@ -935,24 +707,15 @@ impl IEnumTfDocumentMgrs_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgdocumentmgr: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfDocumentMgrs_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgdocumentmgr: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfDocumentMgrs_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&rgdocumentmgr), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfDocumentMgrs_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfDocumentMgrs_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfDocumentMgrs_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfDocumentMgrs_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -968,7 +731,7 @@ impl IEnumTfDocumentMgrs_Vtbl { iid == &::IID } } -pub trait IEnumTfFunctionProviders_Impl: Sized { +pub trait IEnumTfFunctionProviders_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, ppcmdobj: *mut Option, pcfetch: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -976,14 +739,8 @@ pub trait IEnumTfFunctionProviders_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfFunctionProviders {} impl IEnumTfFunctionProviders_Vtbl { - pub const fn new() -> IEnumTfFunctionProviders_Vtbl - where - Identity: IEnumTfFunctionProviders_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfFunctionProviders_Impl, - { + pub const fn new() -> IEnumTfFunctionProviders_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfFunctionProviders_Impl::Clone(this) { Ok(ok__) => { @@ -993,24 +750,15 @@ impl IEnumTfFunctionProviders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, ppcmdobj: *mut *mut core::ffi::c_void, pcfetch: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfFunctionProviders_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, ppcmdobj: *mut *mut core::ffi::c_void, pcfetch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfFunctionProviders_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&ppcmdobj), core::mem::transmute_copy(&pcfetch)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfFunctionProviders_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfFunctionProviders_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfFunctionProviders_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfFunctionProviders_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -1027,7 +775,7 @@ impl IEnumTfFunctionProviders_Vtbl { } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] -pub trait IEnumTfInputProcessorProfiles_Impl: Sized { +pub trait IEnumTfInputProcessorProfiles_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, pprofile: *mut TF_INPUTPROCESSORPROFILE, pcfetch: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1037,14 +785,8 @@ pub trait IEnumTfInputProcessorProfiles_Impl: Sized { impl windows_core::RuntimeName for IEnumTfInputProcessorProfiles {} #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] impl IEnumTfInputProcessorProfiles_Vtbl { - pub const fn new() -> IEnumTfInputProcessorProfiles_Vtbl - where - Identity: IEnumTfInputProcessorProfiles_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfInputProcessorProfiles_Impl, - { + pub const fn new() -> IEnumTfInputProcessorProfiles_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfInputProcessorProfiles_Impl::Clone(this) { Ok(ok__) => { @@ -1054,24 +796,15 @@ impl IEnumTfInputProcessorProfiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, pprofile: *mut TF_INPUTPROCESSORPROFILE, pcfetch: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, pprofile: *mut TF_INPUTPROCESSORPROFILE, pcfetch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfInputProcessorProfiles_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pprofile), core::mem::transmute_copy(&pcfetch)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfInputProcessorProfiles_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfInputProcessorProfiles_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -1087,7 +820,7 @@ impl IEnumTfInputProcessorProfiles_Vtbl { iid == &::IID } } -pub trait IEnumTfLangBarItems_Impl: Sized { +pub trait IEnumTfLangBarItems_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, ppitem: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1095,14 +828,8 @@ pub trait IEnumTfLangBarItems_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfLangBarItems {} impl IEnumTfLangBarItems_Vtbl { - pub const fn new() -> IEnumTfLangBarItems_Vtbl - where - Identity: IEnumTfLangBarItems_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfLangBarItems_Impl, - { + pub const fn new() -> IEnumTfLangBarItems_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfLangBarItems_Impl::Clone(this) { Ok(ok__) => { @@ -1112,24 +839,15 @@ impl IEnumTfLangBarItems_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, ppitem: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfLangBarItems_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, ppitem: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfLangBarItems_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&ppitem), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfLangBarItems_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfLangBarItems_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfLangBarItems_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfLangBarItems_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -1145,7 +863,7 @@ impl IEnumTfLangBarItems_Vtbl { iid == &::IID } } -pub trait IEnumTfLanguageProfiles_Impl: Sized { +pub trait IEnumTfLanguageProfiles_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, pprofile: *mut TF_LANGUAGEPROFILE, pcfetch: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1153,14 +871,8 @@ pub trait IEnumTfLanguageProfiles_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfLanguageProfiles {} impl IEnumTfLanguageProfiles_Vtbl { - pub const fn new() -> IEnumTfLanguageProfiles_Vtbl - where - Identity: IEnumTfLanguageProfiles_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfLanguageProfiles_Impl, - { + pub const fn new() -> IEnumTfLanguageProfiles_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfLanguageProfiles_Impl::Clone(this) { Ok(ok__) => { @@ -1170,24 +882,15 @@ impl IEnumTfLanguageProfiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, pprofile: *mut TF_LANGUAGEPROFILE, pcfetch: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfLanguageProfiles_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, pprofile: *mut TF_LANGUAGEPROFILE, pcfetch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfLanguageProfiles_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pprofile), core::mem::transmute_copy(&pcfetch)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfLanguageProfiles_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfLanguageProfiles_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfLanguageProfiles_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfLanguageProfiles_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -1203,7 +906,7 @@ impl IEnumTfLanguageProfiles_Vtbl { iid == &::IID } } -pub trait IEnumTfLatticeElements_Impl: Sized { +pub trait IEnumTfLatticeElements_Impl: Sized + windows_core::IUnknownImpl { 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<()>; @@ -1211,14 +914,8 @@ pub trait IEnumTfLatticeElements_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfLatticeElements {} impl IEnumTfLatticeElements_Vtbl { - pub const fn new() -> IEnumTfLatticeElements_Vtbl - where - Identity: IEnumTfLatticeElements_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfLatticeElements_Impl, - { + pub const fn new() -> IEnumTfLatticeElements_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfLatticeElements_Impl::Clone(this) { Ok(ok__) => { @@ -1228,24 +925,15 @@ impl IEnumTfLatticeElements_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgselements: *mut TF_LMLATTELEMENT, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfLatticeElements_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgselements: *mut TF_LMLATTELEMENT, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfLatticeElements_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&rgselements), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfLatticeElements_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfLatticeElements_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfLatticeElements_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfLatticeElements_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -1261,7 +949,7 @@ impl IEnumTfLatticeElements_Vtbl { iid == &::IID } } -pub trait IEnumTfProperties_Impl: Sized { +pub trait IEnumTfProperties_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, ppprop: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1269,14 +957,8 @@ pub trait IEnumTfProperties_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfProperties {} impl IEnumTfProperties_Vtbl { - pub const fn new() -> IEnumTfProperties_Vtbl - where - Identity: IEnumTfProperties_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfProperties_Impl, - { + pub const fn new() -> IEnumTfProperties_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfProperties_Impl::Clone(this) { Ok(ok__) => { @@ -1286,24 +968,15 @@ impl IEnumTfProperties_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, ppprop: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfProperties_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, ppprop: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfProperties_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&ppprop), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfProperties_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfProperties_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfProperties_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfProperties_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -1319,7 +992,7 @@ impl IEnumTfProperties_Vtbl { iid == &::IID } } -pub trait IEnumTfPropertyValue_Impl: Sized { +pub trait IEnumTfPropertyValue_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, rgvalues: *mut TF_PROPERTYVAL, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1327,14 +1000,8 @@ pub trait IEnumTfPropertyValue_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfPropertyValue {} impl IEnumTfPropertyValue_Vtbl { - pub const fn new() -> IEnumTfPropertyValue_Vtbl - where - Identity: IEnumTfPropertyValue_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfPropertyValue_Impl, - { + pub const fn new() -> IEnumTfPropertyValue_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfPropertyValue_Impl::Clone(this) { Ok(ok__) => { @@ -1344,24 +1011,15 @@ impl IEnumTfPropertyValue_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgvalues: *mut TF_PROPERTYVAL, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfPropertyValue_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, rgvalues: *mut TF_PROPERTYVAL, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfPropertyValue_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&rgvalues), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfPropertyValue_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfPropertyValue_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfPropertyValue_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfPropertyValue_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -1377,7 +1035,7 @@ impl IEnumTfPropertyValue_Vtbl { iid == &::IID } } -pub trait IEnumTfRanges_Impl: Sized { +pub trait IEnumTfRanges_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, pprange: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1385,14 +1043,8 @@ pub trait IEnumTfRanges_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfRanges {} impl IEnumTfRanges_Vtbl { - pub const fn new() -> IEnumTfRanges_Vtbl - where - Identity: IEnumTfRanges_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfRanges_Impl, - { + pub const fn new() -> IEnumTfRanges_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfRanges_Impl::Clone(this) { Ok(ok__) => { @@ -1402,24 +1054,15 @@ impl IEnumTfRanges_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, pprange: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfRanges_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, pprange: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfRanges_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pprange), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfRanges_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfRanges_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfRanges_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfRanges_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -1435,7 +1078,7 @@ impl IEnumTfRanges_Vtbl { iid == &::IID } } -pub trait IEnumTfUIElements_Impl: Sized { +pub trait IEnumTfUIElements_Impl: Sized + windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; fn Next(&self, ulcount: u32, ppelement: *mut Option, pcfetched: *mut u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -1443,14 +1086,8 @@ pub trait IEnumTfUIElements_Impl: Sized { } impl windows_core::RuntimeName for IEnumTfUIElements {} impl IEnumTfUIElements_Vtbl { - pub const fn new() -> IEnumTfUIElements_Vtbl - where - Identity: IEnumTfUIElements_Impl, - { - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfUIElements_Impl, - { + pub const fn new() -> IEnumTfUIElements_Vtbl { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumTfUIElements_Impl::Clone(this) { Ok(ok__) => { @@ -1460,24 +1097,15 @@ impl IEnumTfUIElements_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, ppelement: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumTfUIElements_Impl, - { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, ulcount: u32, ppelement: *mut *mut core::ffi::c_void, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfUIElements_Impl::Next(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&ppelement), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumTfUIElements_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfUIElements_Impl::Reset(this).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT - where - Identity: IEnumTfUIElements_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, ulcount: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumTfUIElements_Impl::Skip(this, core::mem::transmute_copy(&ulcount)).into() } @@ -1493,19 +1121,13 @@ impl IEnumTfUIElements_Vtbl { iid == &::IID } } -pub trait IInternalDocWrap_Impl: Sized { +pub trait IInternalDocWrap_Impl: Sized + windows_core::IUnknownImpl { fn NotifyRevoke(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInternalDocWrap {} impl IInternalDocWrap_Vtbl { - pub const fn new() -> IInternalDocWrap_Vtbl - where - Identity: IInternalDocWrap_Impl, - { - unsafe extern "system" fn NotifyRevoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternalDocWrap_Impl, - { + pub const fn new() -> IInternalDocWrap_Vtbl { + unsafe extern "system" fn NotifyRevoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternalDocWrap_Impl::NotifyRevoke(this).into() } @@ -1515,20 +1137,14 @@ impl IInternalDocWrap_Vtbl { iid == &::IID } } -pub trait ISpeechCommandProvider_Impl: Sized { +pub trait ISpeechCommandProvider_Impl: Sized + windows_core::IUnknownImpl { fn EnumSpeechCommands(&self, langid: u16) -> windows_core::Result; fn ProcessCommand(&self, pszcommand: &windows_core::PCWSTR, cch: u32, langid: u16) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISpeechCommandProvider {} impl ISpeechCommandProvider_Vtbl { - pub const fn new() -> ISpeechCommandProvider_Vtbl - where - Identity: ISpeechCommandProvider_Impl, - { - unsafe extern "system" fn EnumSpeechCommands(this: *mut core::ffi::c_void, langid: u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISpeechCommandProvider_Impl, - { + pub const fn new() -> ISpeechCommandProvider_Vtbl { + unsafe extern "system" fn EnumSpeechCommands(this: *mut core::ffi::c_void, langid: u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpeechCommandProvider_Impl::EnumSpeechCommands(this, core::mem::transmute_copy(&langid)) { Ok(ok__) => { @@ -1538,10 +1154,7 @@ impl ISpeechCommandProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ProcessCommand(this: *mut core::ffi::c_void, pszcommand: windows_core::PCWSTR, cch: u32, langid: u16) -> windows_core::HRESULT - where - Identity: ISpeechCommandProvider_Impl, - { + unsafe extern "system" fn ProcessCommand(this: *mut core::ffi::c_void, pszcommand: windows_core::PCWSTR, cch: u32, langid: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpeechCommandProvider_Impl::ProcessCommand(this, core::mem::transmute(&pszcommand), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&langid)).into() } @@ -1556,7 +1169,7 @@ impl ISpeechCommandProvider_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITextStoreACP_Impl: Sized { +pub trait ITextStoreACP_Impl: Sized + windows_core::IUnknownImpl { fn AdviseSink(&self, riid: *const windows_core::GUID, punk: Option<&windows_core::IUnknown>, dwmask: u32) -> windows_core::Result<()>; fn UnadviseSink(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn RequestLock(&self, dwlockflags: u32) -> windows_core::Result; @@ -1588,28 +1201,16 @@ pub trait ITextStoreACP_Impl: Sized { impl windows_core::RuntimeName for ITextStoreACP {} #[cfg(feature = "Win32_System_Com")] impl ITextStoreACP_Vtbl { - pub const fn new() -> ITextStoreACP_Vtbl - where - Identity: ITextStoreACP_Impl, - { - unsafe extern "system" fn AdviseSink(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void, dwmask: u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + pub const fn new() -> ITextStoreACP_Vtbl { + unsafe extern "system" fn AdviseSink(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void, dwmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::AdviseSink(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&dwmask)).into() } - unsafe extern "system" fn UnadviseSink(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn UnadviseSink(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::UnadviseSink(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn RequestLock(this: *mut core::ffi::c_void, dwlockflags: u32, phrsession: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn RequestLock(this: *mut core::ffi::c_void, dwlockflags: u32, phrsession: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::RequestLock(this, core::mem::transmute_copy(&dwlockflags)) { Ok(ok__) => { @@ -1619,10 +1220,7 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdcs: *mut TS_STATUS) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdcs: *mut TS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::GetStatus(this) { Ok(ok__) => { @@ -1632,38 +1230,23 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryInsert(this: *mut core::ffi::c_void, acpteststart: i32, acptestend: i32, cch: u32, pacpresultstart: *mut i32, pacpresultend: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn QueryInsert(this: *mut core::ffi::c_void, acpteststart: i32, acptestend: i32, cch: u32, pacpresultstart: *mut i32, pacpresultend: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::QueryInsert(this, core::mem::transmute_copy(&acpteststart), core::mem::transmute_copy(&acptestend), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&pacpresultstart), core::mem::transmute_copy(&pacpresultend)).into() } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ulindex: u32, ulcount: u32, pselection: *mut TS_SELECTION_ACP, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ulindex: u32, ulcount: u32, pselection: *mut TS_SELECTION_ACP, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::GetSelection(this, core::mem::transmute_copy(&ulindex), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pselection), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, ulcount: u32, pselection: *const TS_SELECTION_ACP) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, ulcount: u32, pselection: *const TS_SELECTION_ACP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::SetSelection(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pselection)).into() } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, pchplain: windows_core::PWSTR, cchplainreq: u32, pcchplainret: *mut u32, prgruninfo: *mut TS_RUNINFO, cruninforeq: u32, pcruninforet: *mut u32, pacpnext: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, pchplain: windows_core::PWSTR, cchplainreq: u32, pcchplainret: *mut u32, prgruninfo: *mut TS_RUNINFO, cruninforeq: u32, pcruninforet: *mut u32, pacpnext: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::GetText(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute_copy(&pchplain), core::mem::transmute_copy(&cchplainreq), core::mem::transmute_copy(&pcchplainret), core::mem::transmute_copy(&prgruninfo), core::mem::transmute_copy(&cruninforeq), core::mem::transmute_copy(&pcruninforet), core::mem::transmute_copy(&pacpnext)).into() } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, dwflags: u32, acpstart: i32, acpend: i32, pchtext: windows_core::PCWSTR, cch: u32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, dwflags: u32, acpstart: i32, acpend: i32, pchtext: windows_core::PCWSTR, cch: u32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::SetText(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute(&pchtext), core::mem::transmute_copy(&cch)) { Ok(ok__) => { @@ -1673,10 +1256,7 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormattedText(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetFormattedText(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::GetFormattedText(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend)) { Ok(ok__) => { @@ -1686,10 +1266,7 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEmbedded(this: *mut core::ffi::c_void, acppos: i32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetEmbedded(this: *mut core::ffi::c_void, acppos: i32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::GetEmbedded(this, core::mem::transmute_copy(&acppos), core::mem::transmute_copy(&rguidservice), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -1699,10 +1276,7 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::QueryInsertEmbedded(this, core::mem::transmute_copy(&pguidservice), core::mem::transmute_copy(&pformatetc)) { Ok(ok__) => { @@ -1712,10 +1286,7 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertEmbedded(this: *mut core::ffi::c_void, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: *mut core::ffi::c_void, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn InsertEmbedded(this: *mut core::ffi::c_void, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: *mut core::ffi::c_void, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::InsertEmbedded(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), windows_core::from_raw_borrowed(&pdataobject)) { Ok(ok__) => { @@ -1725,59 +1296,35 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertTextAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pchtext: windows_core::PCWSTR, cch: u32, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn InsertTextAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pchtext: windows_core::PCWSTR, cch: u32, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::InsertTextAtSelection(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pchtext), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&pacpstart), core::mem::transmute_copy(&pacpend), core::mem::transmute_copy(&pchange)).into() } - unsafe extern "system" fn InsertEmbeddedAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pdataobject: *mut core::ffi::c_void, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn InsertEmbeddedAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pdataobject: *mut core::ffi::c_void, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::InsertEmbeddedAtSelection(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pdataobject), core::mem::transmute_copy(&pacpstart), core::mem::transmute_copy(&pacpend), core::mem::transmute_copy(&pchange)).into() } - unsafe extern "system" fn RequestSupportedAttrs(this: *mut core::ffi::c_void, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn RequestSupportedAttrs(this: *mut core::ffi::c_void, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::RequestSupportedAttrs(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs)).into() } - unsafe extern "system" fn RequestAttrsAtPosition(this: *mut core::ffi::c_void, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn RequestAttrsAtPosition(this: *mut core::ffi::c_void, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::RequestAttrsAtPosition(this, core::mem::transmute_copy(&acppos), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RequestAttrsTransitioningAtPosition(this: *mut core::ffi::c_void, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn RequestAttrsTransitioningAtPosition(this: *mut core::ffi::c_void, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::RequestAttrsTransitioningAtPosition(this, core::mem::transmute_copy(&acppos), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::FindNextAttrTransition(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acphalt), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pacpnext), core::mem::transmute_copy(&pffound), core::mem::transmute_copy(&plfoundoffset)).into() } - unsafe extern "system" fn RetrieveRequestedAttrs(this: *mut core::ffi::c_void, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn RetrieveRequestedAttrs(this: *mut core::ffi::c_void, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::RetrieveRequestedAttrs(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&paattrvals), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn GetEndACP(this: *mut core::ffi::c_void, pacp: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetEndACP(this: *mut core::ffi::c_void, pacp: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::GetEndACP(this) { Ok(ok__) => { @@ -1787,10 +1334,7 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActiveView(this: *mut core::ffi::c_void, pvcview: *mut u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetActiveView(this: *mut core::ffi::c_void, pvcview: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::GetActiveView(this) { Ok(ok__) => { @@ -1800,10 +1344,7 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetACPFromPoint(this: *mut core::ffi::c_void, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32, pacp: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetACPFromPoint(this: *mut core::ffi::c_void, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32, pacp: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::GetACPFromPoint(this, core::mem::transmute_copy(&vcview), core::mem::transmute_copy(&ptscreen), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -1813,17 +1354,11 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::GetTextExt(this, core::mem::transmute_copy(&vcview), core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfclipped)).into() } - unsafe extern "system" fn GetScreenExt(this: *mut core::ffi::c_void, vcview: u32, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetScreenExt(this: *mut core::ffi::c_void, vcview: u32, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::GetScreenExt(this, core::mem::transmute_copy(&vcview)) { Ok(ok__) => { @@ -1833,10 +1368,7 @@ impl ITextStoreACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWnd(this: *mut core::ffi::c_void, vcview: u32, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITextStoreACP_Impl, - { + unsafe extern "system" fn GetWnd(this: *mut core::ffi::c_void, vcview: u32, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::GetWnd(this, core::mem::transmute_copy(&vcview)) { Ok(ok__) => { @@ -1881,7 +1413,7 @@ impl ITextStoreACP_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITextStoreACP2_Impl: Sized { +pub trait ITextStoreACP2_Impl: Sized + windows_core::IUnknownImpl { fn AdviseSink(&self, riid: *const windows_core::GUID, punk: Option<&windows_core::IUnknown>, dwmask: u32) -> windows_core::Result<()>; fn UnadviseSink(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn RequestLock(&self, dwlockflags: u32) -> windows_core::Result; @@ -1912,28 +1444,16 @@ pub trait ITextStoreACP2_Impl: Sized { impl windows_core::RuntimeName for ITextStoreACP2 {} #[cfg(feature = "Win32_System_Com")] impl ITextStoreACP2_Vtbl { - pub const fn new() -> ITextStoreACP2_Vtbl - where - Identity: ITextStoreACP2_Impl, - { - unsafe extern "system" fn AdviseSink(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void, dwmask: u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + pub const fn new() -> ITextStoreACP2_Vtbl { + unsafe extern "system" fn AdviseSink(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void, dwmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::AdviseSink(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&dwmask)).into() } - unsafe extern "system" fn UnadviseSink(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn UnadviseSink(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::UnadviseSink(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn RequestLock(this: *mut core::ffi::c_void, dwlockflags: u32, phrsession: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn RequestLock(this: *mut core::ffi::c_void, dwlockflags: u32, phrsession: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::RequestLock(this, core::mem::transmute_copy(&dwlockflags)) { Ok(ok__) => { @@ -1943,10 +1463,7 @@ impl ITextStoreACP2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdcs: *mut TS_STATUS) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdcs: *mut TS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::GetStatus(this) { Ok(ok__) => { @@ -1956,38 +1473,23 @@ impl ITextStoreACP2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryInsert(this: *mut core::ffi::c_void, acpteststart: i32, acptestend: i32, cch: u32, pacpresultstart: *mut i32, pacpresultend: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn QueryInsert(this: *mut core::ffi::c_void, acpteststart: i32, acptestend: i32, cch: u32, pacpresultstart: *mut i32, pacpresultend: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::QueryInsert(this, core::mem::transmute_copy(&acpteststart), core::mem::transmute_copy(&acptestend), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&pacpresultstart), core::mem::transmute_copy(&pacpresultend)).into() } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ulindex: u32, ulcount: u32, pselection: *mut TS_SELECTION_ACP, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ulindex: u32, ulcount: u32, pselection: *mut TS_SELECTION_ACP, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::GetSelection(this, core::mem::transmute_copy(&ulindex), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pselection), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, ulcount: u32, pselection: *const TS_SELECTION_ACP) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, ulcount: u32, pselection: *const TS_SELECTION_ACP) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::SetSelection(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pselection)).into() } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, pchplain: windows_core::PWSTR, cchplainreq: u32, pcchplainret: *mut u32, prgruninfo: *mut TS_RUNINFO, cruninforeq: u32, pcruninforet: *mut u32, pacpnext: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, pchplain: windows_core::PWSTR, cchplainreq: u32, pcchplainret: *mut u32, prgruninfo: *mut TS_RUNINFO, cruninforeq: u32, pcruninforet: *mut u32, pacpnext: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::GetText(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute_copy(&pchplain), core::mem::transmute_copy(&cchplainreq), core::mem::transmute_copy(&pcchplainret), core::mem::transmute_copy(&prgruninfo), core::mem::transmute_copy(&cruninforeq), core::mem::transmute_copy(&pcruninforet), core::mem::transmute_copy(&pacpnext)).into() } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, dwflags: u32, acpstart: i32, acpend: i32, pchtext: windows_core::PCWSTR, cch: u32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, dwflags: u32, acpstart: i32, acpend: i32, pchtext: windows_core::PCWSTR, cch: u32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::SetText(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute(&pchtext), core::mem::transmute_copy(&cch)) { Ok(ok__) => { @@ -1997,10 +1499,7 @@ impl ITextStoreACP2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormattedText(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn GetFormattedText(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::GetFormattedText(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend)) { Ok(ok__) => { @@ -2010,10 +1509,7 @@ impl ITextStoreACP2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEmbedded(this: *mut core::ffi::c_void, acppos: i32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn GetEmbedded(this: *mut core::ffi::c_void, acppos: i32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::GetEmbedded(this, core::mem::transmute_copy(&acppos), core::mem::transmute_copy(&rguidservice), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -2023,10 +1519,7 @@ impl ITextStoreACP2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::QueryInsertEmbedded(this, core::mem::transmute_copy(&pguidservice), core::mem::transmute_copy(&pformatetc)) { Ok(ok__) => { @@ -2036,10 +1529,7 @@ impl ITextStoreACP2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertEmbedded(this: *mut core::ffi::c_void, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: *mut core::ffi::c_void, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn InsertEmbedded(this: *mut core::ffi::c_void, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: *mut core::ffi::c_void, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::InsertEmbedded(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), windows_core::from_raw_borrowed(&pdataobject)) { Ok(ok__) => { @@ -2049,59 +1539,35 @@ impl ITextStoreACP2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertTextAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pchtext: windows_core::PCWSTR, cch: u32, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn InsertTextAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pchtext: windows_core::PCWSTR, cch: u32, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::InsertTextAtSelection(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pchtext), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&pacpstart), core::mem::transmute_copy(&pacpend), core::mem::transmute_copy(&pchange)).into() } - unsafe extern "system" fn InsertEmbeddedAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pdataobject: *mut core::ffi::c_void, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn InsertEmbeddedAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pdataobject: *mut core::ffi::c_void, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::InsertEmbeddedAtSelection(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pdataobject), core::mem::transmute_copy(&pacpstart), core::mem::transmute_copy(&pacpend), core::mem::transmute_copy(&pchange)).into() } - unsafe extern "system" fn RequestSupportedAttrs(this: *mut core::ffi::c_void, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn RequestSupportedAttrs(this: *mut core::ffi::c_void, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::RequestSupportedAttrs(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs)).into() } - unsafe extern "system" fn RequestAttrsAtPosition(this: *mut core::ffi::c_void, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn RequestAttrsAtPosition(this: *mut core::ffi::c_void, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::RequestAttrsAtPosition(this, core::mem::transmute_copy(&acppos), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RequestAttrsTransitioningAtPosition(this: *mut core::ffi::c_void, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn RequestAttrsTransitioningAtPosition(this: *mut core::ffi::c_void, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::RequestAttrsTransitioningAtPosition(this, core::mem::transmute_copy(&acppos), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::FindNextAttrTransition(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acphalt), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pacpnext), core::mem::transmute_copy(&pffound), core::mem::transmute_copy(&plfoundoffset)).into() } - unsafe extern "system" fn RetrieveRequestedAttrs(this: *mut core::ffi::c_void, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn RetrieveRequestedAttrs(this: *mut core::ffi::c_void, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::RetrieveRequestedAttrs(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&paattrvals), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn GetEndACP(this: *mut core::ffi::c_void, pacp: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn GetEndACP(this: *mut core::ffi::c_void, pacp: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::GetEndACP(this) { Ok(ok__) => { @@ -2111,10 +1577,7 @@ impl ITextStoreACP2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActiveView(this: *mut core::ffi::c_void, pvcview: *mut u32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn GetActiveView(this: *mut core::ffi::c_void, pvcview: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::GetActiveView(this) { Ok(ok__) => { @@ -2124,10 +1587,7 @@ impl ITextStoreACP2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetACPFromPoint(this: *mut core::ffi::c_void, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32, pacp: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn GetACPFromPoint(this: *mut core::ffi::c_void, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32, pacp: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::GetACPFromPoint(this, core::mem::transmute_copy(&vcview), core::mem::transmute_copy(&ptscreen), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -2137,17 +1597,11 @@ impl ITextStoreACP2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::GetTextExt(this, core::mem::transmute_copy(&vcview), core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfclipped)).into() } - unsafe extern "system" fn GetScreenExt(this: *mut core::ffi::c_void, vcview: u32, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITextStoreACP2_Impl, - { + unsafe extern "system" fn GetScreenExt(this: *mut core::ffi::c_void, vcview: u32, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::GetScreenExt(this, core::mem::transmute_copy(&vcview)) { Ok(ok__) => { @@ -2190,19 +1644,13 @@ impl ITextStoreACP2_Vtbl { iid == &::IID } } -pub trait ITextStoreACPEx_Impl: Sized { +pub trait ITextStoreACPEx_Impl: Sized + windows_core::IUnknownImpl { fn ScrollToRect(&self, acpstart: i32, acpend: i32, rc: &super::super::Foundation::RECT, dwposition: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITextStoreACPEx {} impl ITextStoreACPEx_Vtbl { - pub const fn new() -> ITextStoreACPEx_Vtbl - where - Identity: ITextStoreACPEx_Impl, - { - unsafe extern "system" fn ScrollToRect(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, rc: super::super::Foundation::RECT, dwposition: u32) -> windows_core::HRESULT - where - Identity: ITextStoreACPEx_Impl, - { + pub const fn new() -> ITextStoreACPEx_Vtbl { + unsafe extern "system" fn ScrollToRect(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, rc: super::super::Foundation::RECT, dwposition: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPEx_Impl::ScrollToRect(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute(&rc), core::mem::transmute_copy(&dwposition)).into() } @@ -2213,7 +1661,7 @@ impl ITextStoreACPEx_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITextStoreACPServices_Impl: Sized { +pub trait ITextStoreACPServices_Impl: Sized + windows_core::IUnknownImpl { fn Serialize(&self, pprop: Option<&ITfProperty>, prange: Option<&ITfRange>, phdr: *mut TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: Option<&super::super::System::Com::IStream>) -> windows_core::Result<()>; fn Unserialize(&self, pprop: Option<&ITfProperty>, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: Option<&super::super::System::Com::IStream>, ploader: Option<&ITfPersistentPropertyLoaderACP>) -> windows_core::Result<()>; fn ForceLoadProperty(&self, pprop: Option<&ITfProperty>) -> windows_core::Result<()>; @@ -2223,35 +1671,20 @@ pub trait ITextStoreACPServices_Impl: Sized { impl windows_core::RuntimeName for ITextStoreACPServices {} #[cfg(feature = "Win32_System_Com")] impl ITextStoreACPServices_Vtbl { - pub const fn new() -> ITextStoreACPServices_Vtbl - where - Identity: ITextStoreACPServices_Impl, - { - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, phdr: *mut TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACPServices_Impl, - { + pub const fn new() -> ITextStoreACPServices_Vtbl { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, phdr: *mut TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPServices_Impl::Serialize(this, windows_core::from_raw_borrowed(&pprop), windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&phdr), windows_core::from_raw_borrowed(&pstream)).into() } - unsafe extern "system" fn Unserialize(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: *mut core::ffi::c_void, ploader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACPServices_Impl, - { + unsafe extern "system" fn Unserialize(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: *mut core::ffi::c_void, ploader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPServices_Impl::Unserialize(this, windows_core::from_raw_borrowed(&pprop), core::mem::transmute_copy(&phdr), windows_core::from_raw_borrowed(&pstream), windows_core::from_raw_borrowed(&ploader)).into() } - unsafe extern "system" fn ForceLoadProperty(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACPServices_Impl, - { + unsafe extern "system" fn ForceLoadProperty(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPServices_Impl::ForceLoadProperty(this, windows_core::from_raw_borrowed(&pprop)).into() } - unsafe extern "system" fn CreateRange(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACPServices_Impl, - { + unsafe extern "system" fn CreateRange(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACPServices_Impl::CreateRange(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend)) { Ok(ok__) => { @@ -2273,7 +1706,7 @@ impl ITextStoreACPServices_Vtbl { iid == &::IID } } -pub trait ITextStoreACPSink_Impl: Sized { +pub trait ITextStoreACPSink_Impl: Sized + windows_core::IUnknownImpl { fn OnTextChange(&self, dwflags: TEXT_STORE_TEXT_CHANGE_FLAGS, pchange: *const TS_TEXTCHANGE) -> windows_core::Result<()>; fn OnSelectionChange(&self) -> windows_core::Result<()>; fn OnLayoutChange(&self, lcode: TsLayoutCode, vcview: u32) -> windows_core::Result<()>; @@ -2285,63 +1718,36 @@ pub trait ITextStoreACPSink_Impl: Sized { } impl windows_core::RuntimeName for ITextStoreACPSink {} impl ITextStoreACPSink_Vtbl { - pub const fn new() -> ITextStoreACPSink_Vtbl - where - Identity: ITextStoreACPSink_Impl, - { - unsafe extern "system" fn OnTextChange(this: *mut core::ffi::c_void, dwflags: TEXT_STORE_TEXT_CHANGE_FLAGS, pchange: *const TS_TEXTCHANGE) -> windows_core::HRESULT - where - Identity: ITextStoreACPSink_Impl, - { + pub const fn new() -> ITextStoreACPSink_Vtbl { + unsafe extern "system" fn OnTextChange(this: *mut core::ffi::c_void, dwflags: TEXT_STORE_TEXT_CHANGE_FLAGS, pchange: *const TS_TEXTCHANGE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPSink_Impl::OnTextChange(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pchange)).into() } - unsafe extern "system" fn OnSelectionChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACPSink_Impl, - { + unsafe extern "system" fn OnSelectionChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPSink_Impl::OnSelectionChange(this).into() } - unsafe extern "system" fn OnLayoutChange(this: *mut core::ffi::c_void, lcode: TsLayoutCode, vcview: u32) -> windows_core::HRESULT - where - Identity: ITextStoreACPSink_Impl, - { + unsafe extern "system" fn OnLayoutChange(this: *mut core::ffi::c_void, lcode: TsLayoutCode, vcview: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPSink_Impl::OnLayoutChange(this, core::mem::transmute_copy(&lcode), core::mem::transmute_copy(&vcview)).into() } - unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITextStoreACPSink_Impl, - { + unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPSink_Impl::OnStatusChange(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn OnAttrsChange(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, cattrs: u32, paattrs: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITextStoreACPSink_Impl, - { + unsafe extern "system" fn OnAttrsChange(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, cattrs: u32, paattrs: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPSink_Impl::OnAttrsChange(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute_copy(&cattrs), core::mem::transmute_copy(&paattrs)).into() } - unsafe extern "system" fn OnLockGranted(this: *mut core::ffi::c_void, dwlockflags: TEXT_STORE_LOCK_FLAGS) -> windows_core::HRESULT - where - Identity: ITextStoreACPSink_Impl, - { + unsafe extern "system" fn OnLockGranted(this: *mut core::ffi::c_void, dwlockflags: TEXT_STORE_LOCK_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPSink_Impl::OnLockGranted(this, core::mem::transmute_copy(&dwlockflags)).into() } - unsafe extern "system" fn OnStartEditTransaction(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACPSink_Impl, - { + unsafe extern "system" fn OnStartEditTransaction(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPSink_Impl::OnStartEditTransaction(this).into() } - unsafe extern "system" fn OnEndEditTransaction(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACPSink_Impl, - { + unsafe extern "system" fn OnEndEditTransaction(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPSink_Impl::OnEndEditTransaction(this).into() } @@ -2366,14 +1772,8 @@ pub trait ITextStoreACPSinkEx_Impl: Sized + ITextStoreACPSink_Impl { } impl windows_core::RuntimeName for ITextStoreACPSinkEx {} impl ITextStoreACPSinkEx_Vtbl { - pub const fn new() -> ITextStoreACPSinkEx_Vtbl - where - Identity: ITextStoreACPSinkEx_Impl, - { - unsafe extern "system" fn OnDisconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreACPSinkEx_Impl, - { + pub const fn new() -> ITextStoreACPSinkEx_Vtbl { + unsafe extern "system" fn OnDisconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACPSinkEx_Impl::OnDisconnect(this).into() } @@ -2384,7 +1784,7 @@ impl ITextStoreACPSinkEx_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITextStoreAnchor_Impl: Sized { +pub trait ITextStoreAnchor_Impl: Sized + windows_core::IUnknownImpl { fn AdviseSink(&self, riid: *const windows_core::GUID, punk: Option<&windows_core::IUnknown>, dwmask: u32) -> windows_core::Result<()>; fn UnadviseSink(&self, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn RequestLock(&self, dwlockflags: u32) -> windows_core::Result; @@ -2417,28 +1817,16 @@ pub trait ITextStoreAnchor_Impl: Sized { impl windows_core::RuntimeName for ITextStoreAnchor {} #[cfg(feature = "Win32_System_Com")] impl ITextStoreAnchor_Vtbl { - pub const fn new() -> ITextStoreAnchor_Vtbl - where - Identity: ITextStoreAnchor_Impl, - { - unsafe extern "system" fn AdviseSink(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void, dwmask: u32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + pub const fn new() -> ITextStoreAnchor_Vtbl { + unsafe extern "system" fn AdviseSink(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void, dwmask: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::AdviseSink(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&dwmask)).into() } - unsafe extern "system" fn UnadviseSink(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn UnadviseSink(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::UnadviseSink(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn RequestLock(this: *mut core::ffi::c_void, dwlockflags: u32, phrsession: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn RequestLock(this: *mut core::ffi::c_void, dwlockflags: u32, phrsession: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::RequestLock(this, core::mem::transmute_copy(&dwlockflags)) { Ok(ok__) => { @@ -2448,10 +1836,7 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdcs: *mut TS_STATUS) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdcs: *mut TS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::GetStatus(this) { Ok(ok__) => { @@ -2461,45 +1846,27 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryInsert(this: *mut core::ffi::c_void, pateststart: *mut core::ffi::c_void, patestend: *mut core::ffi::c_void, cch: u32, pparesultstart: *mut *mut core::ffi::c_void, pparesultend: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn QueryInsert(this: *mut core::ffi::c_void, pateststart: *mut core::ffi::c_void, patestend: *mut core::ffi::c_void, cch: u32, pparesultstart: *mut *mut core::ffi::c_void, pparesultend: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::QueryInsert(this, windows_core::from_raw_borrowed(&pateststart), windows_core::from_raw_borrowed(&patestend), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&pparesultstart), core::mem::transmute_copy(&pparesultend)).into() } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ulindex: u32, ulcount: u32, pselection: *mut TS_SELECTION_ANCHOR, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ulindex: u32, ulcount: u32, pselection: *mut TS_SELECTION_ANCHOR, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::GetSelection(this, core::mem::transmute_copy(&ulindex), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pselection), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, ulcount: u32, pselection: *const TS_SELECTION_ANCHOR) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, ulcount: u32, pselection: *const TS_SELECTION_ANCHOR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::SetSelection(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pselection)).into() } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, dwflags: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, pchtext: windows_core::PWSTR, cchreq: u32, pcch: *mut u32, fupdateanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, dwflags: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, pchtext: windows_core::PWSTR, cchreq: u32, pcch: *mut u32, fupdateanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::GetText(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pastart), windows_core::from_raw_borrowed(&paend), core::mem::transmute_copy(&pchtext), core::mem::transmute_copy(&cchreq), core::mem::transmute_copy(&pcch), core::mem::transmute_copy(&fupdateanchor)).into() } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, dwflags: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, pchtext: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, dwflags: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, pchtext: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::SetText(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pastart), windows_core::from_raw_borrowed(&paend), core::mem::transmute(&pchtext), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn GetFormattedText(this: *mut core::ffi::c_void, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetFormattedText(this: *mut core::ffi::c_void, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::GetFormattedText(this, windows_core::from_raw_borrowed(&pastart), windows_core::from_raw_borrowed(&paend)) { Ok(ok__) => { @@ -2509,10 +1876,7 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEmbedded(this: *mut core::ffi::c_void, dwflags: u32, papos: *mut core::ffi::c_void, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetEmbedded(this: *mut core::ffi::c_void, dwflags: u32, papos: *mut core::ffi::c_void, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::GetEmbedded(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&papos), core::mem::transmute_copy(&rguidservice), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -2522,52 +1886,31 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertEmbedded(this: *mut core::ffi::c_void, dwflags: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn InsertEmbedded(this: *mut core::ffi::c_void, dwflags: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::InsertEmbedded(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pastart), windows_core::from_raw_borrowed(&paend), windows_core::from_raw_borrowed(&pdataobject)).into() } - unsafe extern "system" fn RequestSupportedAttrs(this: *mut core::ffi::c_void, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn RequestSupportedAttrs(this: *mut core::ffi::c_void, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::RequestSupportedAttrs(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs)).into() } - unsafe extern "system" fn RequestAttrsAtPosition(this: *mut core::ffi::c_void, papos: *mut core::ffi::c_void, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn RequestAttrsAtPosition(this: *mut core::ffi::c_void, papos: *mut core::ffi::c_void, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::RequestAttrsAtPosition(this, windows_core::from_raw_borrowed(&papos), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RequestAttrsTransitioningAtPosition(this: *mut core::ffi::c_void, papos: *mut core::ffi::c_void, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn RequestAttrsTransitioningAtPosition(this: *mut core::ffi::c_void, papos: *mut core::ffi::c_void, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::RequestAttrsTransitioningAtPosition(this, windows_core::from_raw_borrowed(&papos), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, pastart: *mut core::ffi::c_void, pahalt: *mut core::ffi::c_void, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, pastart: *mut core::ffi::c_void, pahalt: *mut core::ffi::c_void, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::FindNextAttrTransition(this, windows_core::from_raw_borrowed(&pastart), windows_core::from_raw_borrowed(&pahalt), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pffound), core::mem::transmute_copy(&plfoundoffset)).into() } - unsafe extern "system" fn RetrieveRequestedAttrs(this: *mut core::ffi::c_void, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn RetrieveRequestedAttrs(this: *mut core::ffi::c_void, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::RetrieveRequestedAttrs(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&paattrvals), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn GetStart(this: *mut core::ffi::c_void, ppastart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetStart(this: *mut core::ffi::c_void, ppastart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::GetStart(this) { Ok(ok__) => { @@ -2577,10 +1920,7 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnd(this: *mut core::ffi::c_void, ppaend: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetEnd(this: *mut core::ffi::c_void, ppaend: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::GetEnd(this) { Ok(ok__) => { @@ -2590,10 +1930,7 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActiveView(this: *mut core::ffi::c_void, pvcview: *mut u32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetActiveView(this: *mut core::ffi::c_void, pvcview: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::GetActiveView(this) { Ok(ok__) => { @@ -2603,10 +1940,7 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAnchorFromPoint(this: *mut core::ffi::c_void, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32, ppasite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetAnchorFromPoint(this: *mut core::ffi::c_void, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32, ppasite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::GetAnchorFromPoint(this, core::mem::transmute_copy(&vcview), core::mem::transmute_copy(&ptscreen), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -2616,17 +1950,11 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::GetTextExt(this, core::mem::transmute_copy(&vcview), windows_core::from_raw_borrowed(&pastart), windows_core::from_raw_borrowed(&paend), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfclipped)).into() } - unsafe extern "system" fn GetScreenExt(this: *mut core::ffi::c_void, vcview: u32, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetScreenExt(this: *mut core::ffi::c_void, vcview: u32, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::GetScreenExt(this, core::mem::transmute_copy(&vcview)) { Ok(ok__) => { @@ -2636,10 +1964,7 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWnd(this: *mut core::ffi::c_void, vcview: u32, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn GetWnd(this: *mut core::ffi::c_void, vcview: u32, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::GetWnd(this, core::mem::transmute_copy(&vcview)) { Ok(ok__) => { @@ -2649,10 +1974,7 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::QueryInsertEmbedded(this, core::mem::transmute_copy(&pguidservice), core::mem::transmute_copy(&pformatetc)) { Ok(ok__) => { @@ -2662,17 +1984,11 @@ impl ITextStoreAnchor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertTextAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pchtext: windows_core::PCWSTR, cch: u32, ppastart: *mut *mut core::ffi::c_void, ppaend: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn InsertTextAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pchtext: windows_core::PCWSTR, cch: u32, ppastart: *mut *mut core::ffi::c_void, ppaend: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::InsertTextAtSelection(this, core::mem::transmute_copy(&dwflags), core::mem::transmute(&pchtext), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&ppastart), core::mem::transmute_copy(&ppaend)).into() } - unsafe extern "system" fn InsertEmbeddedAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pdataobject: *mut core::ffi::c_void, ppastart: *mut *mut core::ffi::c_void, ppaend: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchor_Impl, - { + unsafe extern "system" fn InsertEmbeddedAtSelection(this: *mut core::ffi::c_void, dwflags: u32, pdataobject: *mut core::ffi::c_void, ppastart: *mut *mut core::ffi::c_void, ppaend: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::InsertEmbeddedAtSelection(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pdataobject), core::mem::transmute_copy(&ppastart), core::mem::transmute_copy(&ppaend)).into() } @@ -2711,19 +2027,13 @@ impl ITextStoreAnchor_Vtbl { iid == &::IID } } -pub trait ITextStoreAnchorEx_Impl: Sized { +pub trait ITextStoreAnchorEx_Impl: Sized + windows_core::IUnknownImpl { fn ScrollToRect(&self, pstart: Option<&IAnchor>, pend: Option<&IAnchor>, rc: &super::super::Foundation::RECT, dwposition: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITextStoreAnchorEx {} impl ITextStoreAnchorEx_Vtbl { - pub const fn new() -> ITextStoreAnchorEx_Vtbl - where - Identity: ITextStoreAnchorEx_Impl, - { - unsafe extern "system" fn ScrollToRect(this: *mut core::ffi::c_void, pstart: *mut core::ffi::c_void, pend: *mut core::ffi::c_void, rc: super::super::Foundation::RECT, dwposition: u32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchorEx_Impl, - { + pub const fn new() -> ITextStoreAnchorEx_Vtbl { + unsafe extern "system" fn ScrollToRect(this: *mut core::ffi::c_void, pstart: *mut core::ffi::c_void, pend: *mut core::ffi::c_void, rc: super::super::Foundation::RECT, dwposition: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchorEx_Impl::ScrollToRect(this, windows_core::from_raw_borrowed(&pstart), windows_core::from_raw_borrowed(&pend), core::mem::transmute(&rc), core::mem::transmute_copy(&dwposition)).into() } @@ -2733,7 +2043,7 @@ impl ITextStoreAnchorEx_Vtbl { iid == &::IID } } -pub trait ITextStoreAnchorSink_Impl: Sized { +pub trait ITextStoreAnchorSink_Impl: Sized + windows_core::IUnknownImpl { fn OnTextChange(&self, dwflags: TEXT_STORE_CHANGE_FLAGS, pastart: Option<&IAnchor>, paend: Option<&IAnchor>) -> windows_core::Result<()>; fn OnSelectionChange(&self) -> windows_core::Result<()>; fn OnLayoutChange(&self, lcode: TsLayoutCode, vcview: u32) -> windows_core::Result<()>; @@ -2745,63 +2055,36 @@ pub trait ITextStoreAnchorSink_Impl: Sized { } impl windows_core::RuntimeName for ITextStoreAnchorSink {} impl ITextStoreAnchorSink_Vtbl { - pub const fn new() -> ITextStoreAnchorSink_Vtbl - where - Identity: ITextStoreAnchorSink_Impl, - { - unsafe extern "system" fn OnTextChange(this: *mut core::ffi::c_void, dwflags: TEXT_STORE_CHANGE_FLAGS, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchorSink_Impl, - { + pub const fn new() -> ITextStoreAnchorSink_Vtbl { + unsafe extern "system" fn OnTextChange(this: *mut core::ffi::c_void, dwflags: TEXT_STORE_CHANGE_FLAGS, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchorSink_Impl::OnTextChange(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pastart), windows_core::from_raw_borrowed(&paend)).into() } - unsafe extern "system" fn OnSelectionChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchorSink_Impl, - { + unsafe extern "system" fn OnSelectionChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchorSink_Impl::OnSelectionChange(this).into() } - unsafe extern "system" fn OnLayoutChange(this: *mut core::ffi::c_void, lcode: TsLayoutCode, vcview: u32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchorSink_Impl, - { + unsafe extern "system" fn OnLayoutChange(this: *mut core::ffi::c_void, lcode: TsLayoutCode, vcview: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchorSink_Impl::OnLayoutChange(this, core::mem::transmute_copy(&lcode), core::mem::transmute_copy(&vcview)).into() } - unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITextStoreAnchorSink_Impl, - { + unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchorSink_Impl::OnStatusChange(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn OnAttrsChange(this: *mut core::ffi::c_void, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, cattrs: u32, paattrs: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITextStoreAnchorSink_Impl, - { + unsafe extern "system" fn OnAttrsChange(this: *mut core::ffi::c_void, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, cattrs: u32, paattrs: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchorSink_Impl::OnAttrsChange(this, windows_core::from_raw_borrowed(&pastart), windows_core::from_raw_borrowed(&paend), core::mem::transmute_copy(&cattrs), core::mem::transmute_copy(&paattrs)).into() } - unsafe extern "system" fn OnLockGranted(this: *mut core::ffi::c_void, dwlockflags: TEXT_STORE_LOCK_FLAGS) -> windows_core::HRESULT - where - Identity: ITextStoreAnchorSink_Impl, - { + unsafe extern "system" fn OnLockGranted(this: *mut core::ffi::c_void, dwlockflags: TEXT_STORE_LOCK_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchorSink_Impl::OnLockGranted(this, core::mem::transmute_copy(&dwlockflags)).into() } - unsafe extern "system" fn OnStartEditTransaction(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchorSink_Impl, - { + unsafe extern "system" fn OnStartEditTransaction(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchorSink_Impl::OnStartEditTransaction(this).into() } - unsafe extern "system" fn OnEndEditTransaction(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreAnchorSink_Impl, - { + unsafe extern "system" fn OnEndEditTransaction(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchorSink_Impl::OnEndEditTransaction(this).into() } @@ -2826,14 +2109,8 @@ pub trait ITextStoreSinkAnchorEx_Impl: Sized + ITextStoreAnchorSink_Impl { } impl windows_core::RuntimeName for ITextStoreSinkAnchorEx {} impl ITextStoreSinkAnchorEx_Vtbl { - pub const fn new() -> ITextStoreSinkAnchorEx_Vtbl - where - Identity: ITextStoreSinkAnchorEx_Impl, - { - unsafe extern "system" fn OnDisconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITextStoreSinkAnchorEx_Impl, - { + pub const fn new() -> ITextStoreSinkAnchorEx_Vtbl { + unsafe extern "system" fn OnDisconnect(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreSinkAnchorEx_Impl::OnDisconnect(this).into() } @@ -2843,19 +2120,13 @@ impl ITextStoreSinkAnchorEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfActiveLanguageProfileNotifySink_Impl: Sized { +pub trait ITfActiveLanguageProfileNotifySink_Impl: Sized + windows_core::IUnknownImpl { fn OnActivated(&self, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, factivated: super::super::Foundation::BOOL) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfActiveLanguageProfileNotifySink {} impl ITfActiveLanguageProfileNotifySink_Vtbl { - pub const fn new() -> ITfActiveLanguageProfileNotifySink_Vtbl - where - Identity: ITfActiveLanguageProfileNotifySink_Impl, - { - unsafe extern "system" fn OnActivated(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, factivated: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfActiveLanguageProfileNotifySink_Impl, - { + pub const fn new() -> ITfActiveLanguageProfileNotifySink_Vtbl { + unsafe extern "system" fn OnActivated(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, factivated: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfActiveLanguageProfileNotifySink_Impl::OnActivated(this, core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&factivated)).into() } @@ -2865,7 +2136,7 @@ impl ITfActiveLanguageProfileNotifySink_Vtbl { iid == &::IID } } -pub trait ITfCandidateList_Impl: Sized { +pub trait ITfCandidateList_Impl: Sized + windows_core::IUnknownImpl { fn EnumCandidates(&self) -> windows_core::Result; fn GetCandidate(&self, nindex: u32) -> windows_core::Result; fn GetCandidateNum(&self) -> windows_core::Result; @@ -2873,14 +2144,8 @@ pub trait ITfCandidateList_Impl: Sized { } impl windows_core::RuntimeName for ITfCandidateList {} impl ITfCandidateList_Vtbl { - pub const fn new() -> ITfCandidateList_Vtbl - where - Identity: ITfCandidateList_Impl, - { - unsafe extern "system" fn EnumCandidates(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCandidateList_Impl, - { + pub const fn new() -> ITfCandidateList_Vtbl { + unsafe extern "system" fn EnumCandidates(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateList_Impl::EnumCandidates(this) { Ok(ok__) => { @@ -2890,10 +2155,7 @@ impl ITfCandidateList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCandidate(this: *mut core::ffi::c_void, nindex: u32, ppcand: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCandidateList_Impl, - { + unsafe extern "system" fn GetCandidate(this: *mut core::ffi::c_void, nindex: u32, ppcand: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateList_Impl::GetCandidate(this, core::mem::transmute_copy(&nindex)) { Ok(ok__) => { @@ -2903,10 +2165,7 @@ impl ITfCandidateList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCandidateNum(this: *mut core::ffi::c_void, pncnt: *mut u32) -> windows_core::HRESULT - where - Identity: ITfCandidateList_Impl, - { + unsafe extern "system" fn GetCandidateNum(this: *mut core::ffi::c_void, pncnt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateList_Impl::GetCandidateNum(this) { Ok(ok__) => { @@ -2916,10 +2175,7 @@ impl ITfCandidateList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetResult(this: *mut core::ffi::c_void, nindex: u32, imcr: TfCandidateResult) -> windows_core::HRESULT - where - Identity: ITfCandidateList_Impl, - { + unsafe extern "system" fn SetResult(this: *mut core::ffi::c_void, nindex: u32, imcr: TfCandidateResult) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCandidateList_Impl::SetResult(this, core::mem::transmute_copy(&nindex), core::mem::transmute_copy(&imcr)).into() } @@ -2947,14 +2203,8 @@ pub trait ITfCandidateListUIElement_Impl: Sized + ITfUIElement_Impl { } impl windows_core::RuntimeName for ITfCandidateListUIElement {} impl ITfCandidateListUIElement_Vtbl { - pub const fn new() -> ITfCandidateListUIElement_Vtbl - where - Identity: ITfCandidateListUIElement_Impl, - { - unsafe extern "system" fn GetUpdatedFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElement_Impl, - { + pub const fn new() -> ITfCandidateListUIElement_Vtbl { + unsafe extern "system" fn GetUpdatedFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateListUIElement_Impl::GetUpdatedFlags(this) { Ok(ok__) => { @@ -2964,10 +2214,7 @@ impl ITfCandidateListUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentMgr(this: *mut core::ffi::c_void, ppdim: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElement_Impl, - { + unsafe extern "system" fn GetDocumentMgr(this: *mut core::ffi::c_void, ppdim: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateListUIElement_Impl::GetDocumentMgr(this) { Ok(ok__) => { @@ -2977,10 +2224,7 @@ impl ITfCandidateListUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElement_Impl, - { + unsafe extern "system" fn GetCount(this: *mut core::ffi::c_void, pucount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateListUIElement_Impl::GetCount(this) { Ok(ok__) => { @@ -2990,10 +2234,7 @@ impl ITfCandidateListUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, puindex: *mut u32) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElement_Impl, - { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, puindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateListUIElement_Impl::GetSelection(this) { Ok(ok__) => { @@ -3003,10 +2244,7 @@ impl ITfCandidateListUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, uindex: u32, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElement_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, uindex: u32, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateListUIElement_Impl::GetString(this, core::mem::transmute_copy(&uindex)) { Ok(ok__) => { @@ -3016,24 +2254,15 @@ impl ITfCandidateListUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPageIndex(this: *mut core::ffi::c_void, pindex: *mut u32, usize: u32, pupagecnt: *mut u32) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElement_Impl, - { + unsafe extern "system" fn GetPageIndex(this: *mut core::ffi::c_void, pindex: *mut u32, usize: u32, pupagecnt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCandidateListUIElement_Impl::GetPageIndex(this, core::mem::transmute_copy(&pindex), core::mem::transmute_copy(&usize), core::mem::transmute_copy(&pupagecnt)).into() } - unsafe extern "system" fn SetPageIndex(this: *mut core::ffi::c_void, pindex: *const u32, upagecnt: u32) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElement_Impl, - { + unsafe extern "system" fn SetPageIndex(this: *mut core::ffi::c_void, pindex: *const u32, upagecnt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCandidateListUIElement_Impl::SetPageIndex(this, core::mem::transmute_copy(&pindex), core::mem::transmute_copy(&upagecnt)).into() } - unsafe extern "system" fn GetCurrentPage(this: *mut core::ffi::c_void, pupage: *mut u32) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElement_Impl, - { + unsafe extern "system" fn GetCurrentPage(this: *mut core::ffi::c_void, pupage: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateListUIElement_Impl::GetCurrentPage(this) { Ok(ok__) => { @@ -3066,28 +2295,16 @@ pub trait ITfCandidateListUIElementBehavior_Impl: Sized + ITfCandidateListUIElem } impl windows_core::RuntimeName for ITfCandidateListUIElementBehavior {} impl ITfCandidateListUIElementBehavior_Vtbl { - pub const fn new() -> ITfCandidateListUIElementBehavior_Vtbl - where - Identity: ITfCandidateListUIElementBehavior_Impl, - { - unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, nindex: u32) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElementBehavior_Impl, - { + pub const fn new() -> ITfCandidateListUIElementBehavior_Vtbl { + unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, nindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCandidateListUIElementBehavior_Impl::SetSelection(this, core::mem::transmute_copy(&nindex)).into() } - unsafe extern "system" fn Finalize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElementBehavior_Impl, - { + unsafe extern "system" fn Finalize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCandidateListUIElementBehavior_Impl::Finalize(this).into() } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCandidateListUIElementBehavior_Impl, - { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCandidateListUIElementBehavior_Impl::Abort(this).into() } @@ -3102,20 +2319,14 @@ impl ITfCandidateListUIElementBehavior_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait ITfCandidateString_Impl: Sized { +pub trait ITfCandidateString_Impl: Sized + windows_core::IUnknownImpl { fn GetString(&self) -> windows_core::Result; fn GetIndex(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITfCandidateString {} impl ITfCandidateString_Vtbl { - pub const fn new() -> ITfCandidateString_Vtbl - where - Identity: ITfCandidateString_Impl, - { - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfCandidateString_Impl, - { + pub const fn new() -> ITfCandidateString_Vtbl { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateString_Impl::GetString(this) { Ok(ok__) => { @@ -3125,10 +2336,7 @@ impl ITfCandidateString_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, pnindex: *mut u32) -> windows_core::HRESULT - where - Identity: ITfCandidateString_Impl, - { + unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, pnindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCandidateString_Impl::GetIndex(this) { Ok(ok__) => { @@ -3145,7 +2353,7 @@ impl ITfCandidateString_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITfCategoryMgr_Impl: Sized { +pub trait ITfCategoryMgr_Impl: Sized + windows_core::IUnknownImpl { fn RegisterCategory(&self, rclsid: *const windows_core::GUID, rcatid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::Result<()>; fn UnregisterCategory(&self, rclsid: *const windows_core::GUID, rcatid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::Result<()>; fn EnumCategoriesInItem(&self, rguid: *const windows_core::GUID) -> windows_core::Result; @@ -3165,28 +2373,16 @@ pub trait ITfCategoryMgr_Impl: Sized { impl windows_core::RuntimeName for ITfCategoryMgr {} #[cfg(feature = "Win32_System_Com")] impl ITfCategoryMgr_Vtbl { - pub const fn new() -> ITfCategoryMgr_Vtbl - where - Identity: ITfCategoryMgr_Impl, - { - unsafe extern "system" fn RegisterCategory(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rcatid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + pub const fn new() -> ITfCategoryMgr_Vtbl { + unsafe extern "system" fn RegisterCategory(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rcatid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCategoryMgr_Impl::RegisterCategory(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&rcatid), core::mem::transmute_copy(&rguid)).into() } - unsafe extern "system" fn UnregisterCategory(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rcatid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn UnregisterCategory(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rcatid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCategoryMgr_Impl::UnregisterCategory(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&rcatid), core::mem::transmute_copy(&rguid)).into() } - unsafe extern "system" fn EnumCategoriesInItem(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn EnumCategoriesInItem(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCategoryMgr_Impl::EnumCategoriesInItem(this, core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -3196,10 +2392,7 @@ impl ITfCategoryMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumItemsInCategory(this: *mut core::ffi::c_void, rcatid: *const windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn EnumItemsInCategory(this: *mut core::ffi::c_void, rcatid: *const windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCategoryMgr_Impl::EnumItemsInCategory(this, core::mem::transmute_copy(&rcatid)) { Ok(ok__) => { @@ -3209,31 +2402,19 @@ impl ITfCategoryMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindClosestCategory(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 - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn FindClosestCategory(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCategoryMgr_Impl::FindClosestCategory(this, core::mem::transmute_copy(&rguid), core::mem::transmute_copy(&pcatid), core::mem::transmute_copy(&ppcatidlist), core::mem::transmute_copy(&ulcount)).into() } - unsafe extern "system" fn RegisterGUIDDescription(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 - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn RegisterGUIDDescription(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCategoryMgr_Impl::RegisterGUIDDescription(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&rguid), core::mem::transmute(&pchdesc), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn UnregisterGUIDDescription(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn UnregisterGUIDDescription(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCategoryMgr_Impl::UnregisterGUIDDescription(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&rguid)).into() } - unsafe extern "system" fn GetGUIDDescription(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pbstrdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn GetGUIDDescription(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pbstrdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCategoryMgr_Impl::GetGUIDDescription(this, core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -3243,24 +2424,15 @@ impl ITfCategoryMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterGUIDDWORD(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rguid: *const windows_core::GUID, dw: u32) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn RegisterGUIDDWORD(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rguid: *const windows_core::GUID, dw: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCategoryMgr_Impl::RegisterGUIDDWORD(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&rguid), core::mem::transmute_copy(&dw)).into() } - unsafe extern "system" fn UnregisterGUIDDWORD(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn UnregisterGUIDDWORD(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, rguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCategoryMgr_Impl::UnregisterGUIDDWORD(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&rguid)).into() } - unsafe extern "system" fn GetGUIDDWORD(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pdw: *mut u32) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn GetGUIDDWORD(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pdw: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCategoryMgr_Impl::GetGUIDDWORD(this, core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -3270,10 +2442,7 @@ impl ITfCategoryMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RegisterGUID(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pguidatom: *mut u32) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn RegisterGUID(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pguidatom: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCategoryMgr_Impl::RegisterGUID(this, core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -3283,10 +2452,7 @@ impl ITfCategoryMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, guidatom: u32, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, guidatom: u32, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCategoryMgr_Impl::GetGUID(this, core::mem::transmute_copy(&guidatom)) { Ok(ok__) => { @@ -3296,10 +2462,7 @@ impl ITfCategoryMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqualTfGuidAtom(this: *mut core::ffi::c_void, guidatom: u32, rguid: *const windows_core::GUID, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfCategoryMgr_Impl, - { + unsafe extern "system" fn IsEqualTfGuidAtom(this: *mut core::ffi::c_void, guidatom: u32, rguid: *const windows_core::GUID, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCategoryMgr_Impl::IsEqualTfGuidAtom(this, core::mem::transmute_copy(&guidatom), core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -3331,27 +2494,18 @@ impl ITfCategoryMgr_Vtbl { iid == &::IID } } -pub trait ITfCleanupContextDurationSink_Impl: Sized { +pub trait ITfCleanupContextDurationSink_Impl: Sized + windows_core::IUnknownImpl { fn OnStartCleanupContext(&self) -> windows_core::Result<()>; fn OnEndCleanupContext(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfCleanupContextDurationSink {} impl ITfCleanupContextDurationSink_Vtbl { - pub const fn new() -> ITfCleanupContextDurationSink_Vtbl - where - Identity: ITfCleanupContextDurationSink_Impl, - { - unsafe extern "system" fn OnStartCleanupContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCleanupContextDurationSink_Impl, - { + pub const fn new() -> ITfCleanupContextDurationSink_Vtbl { + unsafe extern "system" fn OnStartCleanupContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCleanupContextDurationSink_Impl::OnStartCleanupContext(this).into() } - unsafe extern "system" fn OnEndCleanupContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCleanupContextDurationSink_Impl, - { + unsafe extern "system" fn OnEndCleanupContext(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCleanupContextDurationSink_Impl::OnEndCleanupContext(this).into() } @@ -3365,19 +2519,13 @@ impl ITfCleanupContextDurationSink_Vtbl { iid == &::IID } } -pub trait ITfCleanupContextSink_Impl: Sized { +pub trait ITfCleanupContextSink_Impl: Sized + windows_core::IUnknownImpl { fn OnCleanupContext(&self, ecwrite: u32, pic: Option<&ITfContext>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfCleanupContextSink {} impl ITfCleanupContextSink_Vtbl { - pub const fn new() -> ITfCleanupContextSink_Vtbl - where - Identity: ITfCleanupContextSink_Impl, - { - unsafe extern "system" fn OnCleanupContext(this: *mut core::ffi::c_void, ecwrite: u32, pic: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCleanupContextSink_Impl, - { + pub const fn new() -> ITfCleanupContextSink_Vtbl { + unsafe extern "system" fn OnCleanupContext(this: *mut core::ffi::c_void, ecwrite: u32, pic: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCleanupContextSink_Impl::OnCleanupContext(this, core::mem::transmute_copy(&ecwrite), windows_core::from_raw_borrowed(&pic)).into() } @@ -3387,19 +2535,13 @@ impl ITfCleanupContextSink_Vtbl { iid == &::IID } } -pub trait ITfClientId_Impl: Sized { +pub trait ITfClientId_Impl: Sized + windows_core::IUnknownImpl { fn GetClientId(&self, rclsid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for ITfClientId {} impl ITfClientId_Vtbl { - pub const fn new() -> ITfClientId_Vtbl - where - Identity: ITfClientId_Impl, - { - unsafe extern "system" fn GetClientId(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ptid: *mut u32) -> windows_core::HRESULT - where - Identity: ITfClientId_Impl, - { + pub const fn new() -> ITfClientId_Vtbl { + unsafe extern "system" fn GetClientId(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, ptid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfClientId_Impl::GetClientId(this, core::mem::transmute_copy(&rclsid)) { Ok(ok__) => { @@ -3415,27 +2557,18 @@ impl ITfClientId_Vtbl { iid == &::IID } } -pub trait ITfCompartment_Impl: Sized { +pub trait ITfCompartment_Impl: Sized + windows_core::IUnknownImpl { fn SetValue(&self, tid: u32, pvarvalue: *const windows_core::VARIANT) -> windows_core::Result<()>; fn GetValue(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITfCompartment {} impl ITfCompartment_Vtbl { - pub const fn new() -> ITfCompartment_Vtbl - where - Identity: ITfCompartment_Impl, - { - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, tid: u32, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfCompartment_Impl, - { + pub const fn new() -> ITfCompartment_Vtbl { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, tid: u32, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCompartment_Impl::SetValue(this, core::mem::transmute_copy(&tid), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfCompartment_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCompartment_Impl::GetValue(this) { Ok(ok__) => { @@ -3451,19 +2584,13 @@ impl ITfCompartment_Vtbl { iid == &::IID } } -pub trait ITfCompartmentEventSink_Impl: Sized { +pub trait ITfCompartmentEventSink_Impl: Sized + windows_core::IUnknownImpl { fn OnChange(&self, rguid: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfCompartmentEventSink {} impl ITfCompartmentEventSink_Vtbl { - pub const fn new() -> ITfCompartmentEventSink_Vtbl - where - Identity: ITfCompartmentEventSink_Impl, - { - unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfCompartmentEventSink_Impl, - { + pub const fn new() -> ITfCompartmentEventSink_Vtbl { + unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCompartmentEventSink_Impl::OnChange(this, core::mem::transmute_copy(&rguid)).into() } @@ -3474,7 +2601,7 @@ impl ITfCompartmentEventSink_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITfCompartmentMgr_Impl: Sized { +pub trait ITfCompartmentMgr_Impl: Sized + windows_core::IUnknownImpl { fn GetCompartment(&self, rguid: *const windows_core::GUID) -> windows_core::Result; fn ClearCompartment(&self, tid: u32, rguid: *const windows_core::GUID) -> windows_core::Result<()>; fn EnumCompartments(&self) -> windows_core::Result; @@ -3483,14 +2610,8 @@ pub trait ITfCompartmentMgr_Impl: Sized { impl windows_core::RuntimeName for ITfCompartmentMgr {} #[cfg(feature = "Win32_System_Com")] impl ITfCompartmentMgr_Vtbl { - pub const fn new() -> ITfCompartmentMgr_Vtbl - where - Identity: ITfCompartmentMgr_Impl, - { - unsafe extern "system" fn GetCompartment(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, ppcomp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCompartmentMgr_Impl, - { + pub const fn new() -> ITfCompartmentMgr_Vtbl { + unsafe extern "system" fn GetCompartment(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, ppcomp: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCompartmentMgr_Impl::GetCompartment(this, core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -3500,17 +2621,11 @@ impl ITfCompartmentMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ClearCompartment(this: *mut core::ffi::c_void, tid: u32, rguid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfCompartmentMgr_Impl, - { + unsafe extern "system" fn ClearCompartment(this: *mut core::ffi::c_void, tid: u32, rguid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCompartmentMgr_Impl::ClearCompartment(this, core::mem::transmute_copy(&tid), core::mem::transmute_copy(&rguid)).into() } - unsafe extern "system" fn EnumCompartments(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCompartmentMgr_Impl, - { + unsafe extern "system" fn EnumCompartments(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCompartmentMgr_Impl::EnumCompartments(this) { Ok(ok__) => { @@ -3531,7 +2646,7 @@ impl ITfCompartmentMgr_Vtbl { iid == &::IID } } -pub trait ITfComposition_Impl: Sized { +pub trait ITfComposition_Impl: Sized + windows_core::IUnknownImpl { fn GetRange(&self) -> windows_core::Result; fn ShiftStart(&self, ecwrite: u32, pnewstart: Option<&ITfRange>) -> windows_core::Result<()>; fn ShiftEnd(&self, ecwrite: u32, pnewend: Option<&ITfRange>) -> windows_core::Result<()>; @@ -3539,14 +2654,8 @@ pub trait ITfComposition_Impl: Sized { } impl windows_core::RuntimeName for ITfComposition {} impl ITfComposition_Vtbl { - pub const fn new() -> ITfComposition_Vtbl - where - Identity: ITfComposition_Impl, - { - unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfComposition_Impl, - { + pub const fn new() -> ITfComposition_Vtbl { + unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfComposition_Impl::GetRange(this) { Ok(ok__) => { @@ -3556,24 +2665,15 @@ impl ITfComposition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShiftStart(this: *mut core::ffi::c_void, ecwrite: u32, pnewstart: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfComposition_Impl, - { + unsafe extern "system" fn ShiftStart(this: *mut core::ffi::c_void, ecwrite: u32, pnewstart: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfComposition_Impl::ShiftStart(this, core::mem::transmute_copy(&ecwrite), windows_core::from_raw_borrowed(&pnewstart)).into() } - unsafe extern "system" fn ShiftEnd(this: *mut core::ffi::c_void, ecwrite: u32, pnewend: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfComposition_Impl, - { + unsafe extern "system" fn ShiftEnd(this: *mut core::ffi::c_void, ecwrite: u32, pnewend: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfComposition_Impl::ShiftEnd(this, core::mem::transmute_copy(&ecwrite), windows_core::from_raw_borrowed(&pnewend)).into() } - unsafe extern "system" fn EndComposition(this: *mut core::ffi::c_void, ecwrite: u32) -> windows_core::HRESULT - where - Identity: ITfComposition_Impl, - { + unsafe extern "system" fn EndComposition(this: *mut core::ffi::c_void, ecwrite: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfComposition_Impl::EndComposition(this, core::mem::transmute_copy(&ecwrite)).into() } @@ -3589,19 +2689,13 @@ impl ITfComposition_Vtbl { iid == &::IID } } -pub trait ITfCompositionSink_Impl: Sized { +pub trait ITfCompositionSink_Impl: Sized + windows_core::IUnknownImpl { fn OnCompositionTerminated(&self, ecwrite: u32, pcomposition: Option<&ITfComposition>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfCompositionSink {} impl ITfCompositionSink_Vtbl { - pub const fn new() -> ITfCompositionSink_Vtbl - where - Identity: ITfCompositionSink_Impl, - { - unsafe extern "system" fn OnCompositionTerminated(this: *mut core::ffi::c_void, ecwrite: u32, pcomposition: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCompositionSink_Impl, - { + pub const fn new() -> ITfCompositionSink_Vtbl { + unsafe extern "system" fn OnCompositionTerminated(this: *mut core::ffi::c_void, ecwrite: u32, pcomposition: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfCompositionSink_Impl::OnCompositionTerminated(this, core::mem::transmute_copy(&ecwrite), windows_core::from_raw_borrowed(&pcomposition)).into() } @@ -3611,20 +2705,14 @@ impl ITfCompositionSink_Vtbl { iid == &::IID } } -pub trait ITfCompositionView_Impl: Sized { +pub trait ITfCompositionView_Impl: Sized + windows_core::IUnknownImpl { fn GetOwnerClsid(&self) -> windows_core::Result; fn GetRange(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITfCompositionView {} impl ITfCompositionView_Vtbl { - pub const fn new() -> ITfCompositionView_Vtbl - where - Identity: ITfCompositionView_Impl, - { - unsafe extern "system" fn GetOwnerClsid(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfCompositionView_Impl, - { + pub const fn new() -> ITfCompositionView_Vtbl { + unsafe extern "system" fn GetOwnerClsid(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCompositionView_Impl::GetOwnerClsid(this) { Ok(ok__) => { @@ -3634,10 +2722,7 @@ impl ITfCompositionView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCompositionView_Impl, - { + unsafe extern "system" fn GetRange(this: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCompositionView_Impl::GetRange(this) { Ok(ok__) => { @@ -3657,27 +2742,18 @@ impl ITfCompositionView_Vtbl { iid == &::IID } } -pub trait ITfConfigureSystemKeystrokeFeed_Impl: Sized { +pub trait ITfConfigureSystemKeystrokeFeed_Impl: Sized + windows_core::IUnknownImpl { fn DisableSystemKeystrokeFeed(&self) -> windows_core::Result<()>; fn EnableSystemKeystrokeFeed(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfConfigureSystemKeystrokeFeed {} impl ITfConfigureSystemKeystrokeFeed_Vtbl { - pub const fn new() -> ITfConfigureSystemKeystrokeFeed_Vtbl - where - Identity: ITfConfigureSystemKeystrokeFeed_Impl, - { - unsafe extern "system" fn DisableSystemKeystrokeFeed(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfConfigureSystemKeystrokeFeed_Impl, - { + pub const fn new() -> ITfConfigureSystemKeystrokeFeed_Vtbl { + unsafe extern "system" fn DisableSystemKeystrokeFeed(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfConfigureSystemKeystrokeFeed_Impl::DisableSystemKeystrokeFeed(this).into() } - unsafe extern "system" fn EnableSystemKeystrokeFeed(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfConfigureSystemKeystrokeFeed_Impl, - { + unsafe extern "system" fn EnableSystemKeystrokeFeed(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfConfigureSystemKeystrokeFeed_Impl::EnableSystemKeystrokeFeed(this).into() } @@ -3691,7 +2767,7 @@ impl ITfConfigureSystemKeystrokeFeed_Vtbl { iid == &::IID } } -pub trait ITfContext_Impl: Sized { +pub trait ITfContext_Impl: Sized + windows_core::IUnknownImpl { fn RequestEditSession(&self, tid: u32, pes: Option<&ITfEditSession>, dwflags: TF_CONTEXT_EDIT_CONTEXT_FLAGS) -> windows_core::Result; fn InWriteSession(&self, tid: u32) -> windows_core::Result; fn GetSelection(&self, ec: u32, ulindex: u32, ulcount: u32, pselection: *mut TF_SELECTION, pcfetched: *mut u32) -> windows_core::Result<()>; @@ -3710,14 +2786,8 @@ pub trait ITfContext_Impl: Sized { } impl windows_core::RuntimeName for ITfContext {} impl ITfContext_Vtbl { - pub const fn new() -> ITfContext_Vtbl - where - Identity: ITfContext_Impl, - { - unsafe extern "system" fn RequestEditSession(this: *mut core::ffi::c_void, tid: u32, pes: *mut core::ffi::c_void, dwflags: TF_CONTEXT_EDIT_CONTEXT_FLAGS, phrsession: *mut windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + pub const fn new() -> ITfContext_Vtbl { + unsafe extern "system" fn RequestEditSession(this: *mut core::ffi::c_void, tid: u32, pes: *mut core::ffi::c_void, dwflags: TF_CONTEXT_EDIT_CONTEXT_FLAGS, phrsession: *mut windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::RequestEditSession(this, core::mem::transmute_copy(&tid), windows_core::from_raw_borrowed(&pes), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -3727,10 +2797,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InWriteSession(this: *mut core::ffi::c_void, tid: u32, pfwritesession: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn InWriteSession(this: *mut core::ffi::c_void, tid: u32, pfwritesession: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::InWriteSession(this, core::mem::transmute_copy(&tid)) { Ok(ok__) => { @@ -3740,24 +2807,15 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ec: u32, ulindex: u32, ulcount: u32, pselection: *mut TF_SELECTION, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, ec: u32, ulindex: u32, ulcount: u32, pselection: *mut TF_SELECTION, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContext_Impl::GetSelection(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&ulindex), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pselection), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, ec: u32, ulcount: u32, pselection: *const TF_SELECTION) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn SetSelection(this: *mut core::ffi::c_void, ec: u32, ulcount: u32, pselection: *const TF_SELECTION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContext_Impl::SetSelection(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pselection)).into() } - unsafe extern "system" fn GetStart(this: *mut core::ffi::c_void, ec: u32, ppstart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn GetStart(this: *mut core::ffi::c_void, ec: u32, ppstart: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::GetStart(this, core::mem::transmute_copy(&ec)) { Ok(ok__) => { @@ -3767,10 +2825,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEnd(this: *mut core::ffi::c_void, ec: u32, ppend: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn GetEnd(this: *mut core::ffi::c_void, ec: u32, ppend: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::GetEnd(this, core::mem::transmute_copy(&ec)) { Ok(ok__) => { @@ -3780,10 +2835,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActiveView(this: *mut core::ffi::c_void, ppview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn GetActiveView(this: *mut core::ffi::c_void, ppview: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::GetActiveView(this) { Ok(ok__) => { @@ -3793,10 +2845,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumViews(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn EnumViews(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::EnumViews(this) { Ok(ok__) => { @@ -3806,10 +2855,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdcs: *mut TS_STATUS) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdcs: *mut TS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::GetStatus(this) { Ok(ok__) => { @@ -3819,10 +2865,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, guidprop: *const windows_core::GUID, ppprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, guidprop: *const windows_core::GUID, ppprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::GetProperty(this, core::mem::transmute_copy(&guidprop)) { Ok(ok__) => { @@ -3832,10 +2875,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAppProperty(this: *mut core::ffi::c_void, guidprop: *const windows_core::GUID, ppprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn GetAppProperty(this: *mut core::ffi::c_void, guidprop: *const windows_core::GUID, ppprop: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::GetAppProperty(this, core::mem::transmute_copy(&guidprop)) { Ok(ok__) => { @@ -3845,10 +2885,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TrackProperties(this: *mut core::ffi::c_void, prgprop: *const *const windows_core::GUID, cprop: u32, prgappprop: *const *const windows_core::GUID, cappprop: u32, ppproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn TrackProperties(this: *mut core::ffi::c_void, prgprop: *const *const windows_core::GUID, cprop: u32, prgappprop: *const *const windows_core::GUID, cappprop: u32, ppproperty: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::TrackProperties(this, core::mem::transmute_copy(&prgprop), core::mem::transmute_copy(&cprop), core::mem::transmute_copy(&prgappprop), core::mem::transmute_copy(&cappprop)) { Ok(ok__) => { @@ -3858,10 +2895,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumProperties(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn EnumProperties(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::EnumProperties(this) { Ok(ok__) => { @@ -3871,10 +2905,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentMgr(this: *mut core::ffi::c_void, ppdm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn GetDocumentMgr(this: *mut core::ffi::c_void, ppdm: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::GetDocumentMgr(this) { Ok(ok__) => { @@ -3884,10 +2915,7 @@ impl ITfContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateRangeBackup(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, ppbackup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContext_Impl, - { + unsafe extern "system" fn CreateRangeBackup(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, ppbackup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::CreateRangeBackup(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&prange)) { Ok(ok__) => { @@ -3920,7 +2948,7 @@ impl ITfContext_Vtbl { iid == &::IID } } -pub trait ITfContextComposition_Impl: Sized { +pub trait ITfContextComposition_Impl: Sized + windows_core::IUnknownImpl { fn StartComposition(&self, ecwrite: u32, pcompositionrange: Option<&ITfRange>, psink: Option<&ITfCompositionSink>) -> windows_core::Result; fn EnumCompositions(&self) -> windows_core::Result; fn FindComposition(&self, ecread: u32, ptestrange: Option<&ITfRange>) -> windows_core::Result; @@ -3928,14 +2956,8 @@ pub trait ITfContextComposition_Impl: Sized { } impl windows_core::RuntimeName for ITfContextComposition {} impl ITfContextComposition_Vtbl { - pub const fn new() -> ITfContextComposition_Vtbl - where - Identity: ITfContextComposition_Impl, - { - unsafe extern "system" fn StartComposition(this: *mut core::ffi::c_void, ecwrite: u32, pcompositionrange: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, ppcomposition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextComposition_Impl, - { + pub const fn new() -> ITfContextComposition_Vtbl { + unsafe extern "system" fn StartComposition(this: *mut core::ffi::c_void, ecwrite: u32, pcompositionrange: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, ppcomposition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextComposition_Impl::StartComposition(this, core::mem::transmute_copy(&ecwrite), windows_core::from_raw_borrowed(&pcompositionrange), windows_core::from_raw_borrowed(&psink)) { Ok(ok__) => { @@ -3945,10 +2967,7 @@ impl ITfContextComposition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumCompositions(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextComposition_Impl, - { + unsafe extern "system" fn EnumCompositions(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextComposition_Impl::EnumCompositions(this) { Ok(ok__) => { @@ -3958,10 +2977,7 @@ impl ITfContextComposition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindComposition(this: *mut core::ffi::c_void, ecread: u32, ptestrange: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextComposition_Impl, - { + unsafe extern "system" fn FindComposition(this: *mut core::ffi::c_void, ecread: u32, ptestrange: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextComposition_Impl::FindComposition(this, core::mem::transmute_copy(&ecread), windows_core::from_raw_borrowed(&ptestrange)) { Ok(ok__) => { @@ -3971,10 +2987,7 @@ impl ITfContextComposition_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TakeOwnership(this: *mut core::ffi::c_void, ecwrite: u32, pcomposition: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, ppcomposition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextComposition_Impl, - { + unsafe extern "system" fn TakeOwnership(this: *mut core::ffi::c_void, ecwrite: u32, pcomposition: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, ppcomposition: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextComposition_Impl::TakeOwnership(this, core::mem::transmute_copy(&ecwrite), windows_core::from_raw_borrowed(&pcomposition), windows_core::from_raw_borrowed(&psink)) { Ok(ok__) => { @@ -3996,7 +3009,7 @@ impl ITfContextComposition_Vtbl { iid == &::IID } } -pub trait ITfContextKeyEventSink_Impl: Sized { +pub trait ITfContextKeyEventSink_Impl: Sized + windows_core::IUnknownImpl { fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; fn OnKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; fn OnTestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; @@ -4004,14 +3017,8 @@ pub trait ITfContextKeyEventSink_Impl: Sized { } impl windows_core::RuntimeName for ITfContextKeyEventSink {} impl ITfContextKeyEventSink_Vtbl { - pub const fn new() -> ITfContextKeyEventSink_Vtbl - where - Identity: ITfContextKeyEventSink_Impl, - { - unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfContextKeyEventSink_Impl, - { + pub const fn new() -> ITfContextKeyEventSink_Vtbl { + unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextKeyEventSink_Impl::OnKeyDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -4021,10 +3028,7 @@ impl ITfContextKeyEventSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfContextKeyEventSink_Impl, - { + unsafe extern "system" fn OnKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextKeyEventSink_Impl::OnKeyUp(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -4034,10 +3038,7 @@ impl ITfContextKeyEventSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnTestKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfContextKeyEventSink_Impl, - { + unsafe extern "system" fn OnTestKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextKeyEventSink_Impl::OnTestKeyDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -4047,10 +3048,7 @@ impl ITfContextKeyEventSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnTestKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfContextKeyEventSink_Impl, - { + unsafe extern "system" fn OnTestKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextKeyEventSink_Impl::OnTestKeyUp(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -4072,7 +3070,7 @@ impl ITfContextKeyEventSink_Vtbl { iid == &::IID } } -pub trait ITfContextOwner_Impl: Sized { +pub trait ITfContextOwner_Impl: Sized + windows_core::IUnknownImpl { fn GetACPFromPoint(&self, ptscreen: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result; fn GetTextExt(&self, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetScreenExt(&self) -> windows_core::Result; @@ -4082,14 +3080,8 @@ pub trait ITfContextOwner_Impl: Sized { } impl windows_core::RuntimeName for ITfContextOwner {} impl ITfContextOwner_Vtbl { - pub const fn new() -> ITfContextOwner_Vtbl - where - Identity: ITfContextOwner_Impl, - { - unsafe extern "system" fn GetACPFromPoint(this: *mut core::ffi::c_void, ptscreen: *const super::super::Foundation::POINT, dwflags: u32, pacp: *mut i32) -> windows_core::HRESULT - where - Identity: ITfContextOwner_Impl, - { + pub const fn new() -> ITfContextOwner_Vtbl { + unsafe extern "system" fn GetACPFromPoint(this: *mut core::ffi::c_void, ptscreen: *const super::super::Foundation::POINT, dwflags: u32, pacp: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextOwner_Impl::GetACPFromPoint(this, core::mem::transmute_copy(&ptscreen), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -4099,17 +3091,11 @@ impl ITfContextOwner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfContextOwner_Impl, - { + unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwner_Impl::GetTextExt(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfclipped)).into() } - unsafe extern "system" fn GetScreenExt(this: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITfContextOwner_Impl, - { + unsafe extern "system" fn GetScreenExt(this: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextOwner_Impl::GetScreenExt(this) { Ok(ok__) => { @@ -4119,10 +3105,7 @@ impl ITfContextOwner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdcs: *mut TS_STATUS) -> windows_core::HRESULT - where - Identity: ITfContextOwner_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdcs: *mut TS_STATUS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextOwner_Impl::GetStatus(this) { Ok(ok__) => { @@ -4132,10 +3115,7 @@ impl ITfContextOwner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWnd(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITfContextOwner_Impl, - { + unsafe extern "system" fn GetWnd(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextOwner_Impl::GetWnd(this) { Ok(ok__) => { @@ -4145,10 +3125,7 @@ impl ITfContextOwner_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, rguidattribute: *const windows_core::GUID, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfContextOwner_Impl, - { + unsafe extern "system" fn GetAttribute(this: *mut core::ffi::c_void, rguidattribute: *const windows_core::GUID, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextOwner_Impl::GetAttribute(this, core::mem::transmute_copy(&rguidattribute)) { Ok(ok__) => { @@ -4177,14 +3154,8 @@ pub trait ITfContextOwnerCompositionServices_Impl: Sized + ITfContextComposition } impl windows_core::RuntimeName for ITfContextOwnerCompositionServices {} impl ITfContextOwnerCompositionServices_Vtbl { - pub const fn new() -> ITfContextOwnerCompositionServices_Vtbl - where - Identity: ITfContextOwnerCompositionServices_Impl, - { - unsafe extern "system" fn TerminateComposition(this: *mut core::ffi::c_void, pcomposition: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextOwnerCompositionServices_Impl, - { + pub const fn new() -> ITfContextOwnerCompositionServices_Vtbl { + unsafe extern "system" fn TerminateComposition(this: *mut core::ffi::c_void, pcomposition: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwnerCompositionServices_Impl::TerminateComposition(this, windows_core::from_raw_borrowed(&pcomposition)).into() } @@ -4194,21 +3165,15 @@ impl ITfContextOwnerCompositionServices_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfContextOwnerCompositionSink_Impl: Sized { +pub trait ITfContextOwnerCompositionSink_Impl: Sized + windows_core::IUnknownImpl { fn OnStartComposition(&self, pcomposition: Option<&ITfCompositionView>) -> windows_core::Result; fn OnUpdateComposition(&self, pcomposition: Option<&ITfCompositionView>, prangenew: Option<&ITfRange>) -> windows_core::Result<()>; fn OnEndComposition(&self, pcomposition: Option<&ITfCompositionView>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfContextOwnerCompositionSink {} impl ITfContextOwnerCompositionSink_Vtbl { - pub const fn new() -> ITfContextOwnerCompositionSink_Vtbl - where - Identity: ITfContextOwnerCompositionSink_Impl, - { - unsafe extern "system" fn OnStartComposition(this: *mut core::ffi::c_void, pcomposition: *mut core::ffi::c_void, pfok: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfContextOwnerCompositionSink_Impl, - { + pub const fn new() -> ITfContextOwnerCompositionSink_Vtbl { + unsafe extern "system" fn OnStartComposition(this: *mut core::ffi::c_void, pcomposition: *mut core::ffi::c_void, pfok: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextOwnerCompositionSink_Impl::OnStartComposition(this, windows_core::from_raw_borrowed(&pcomposition)) { Ok(ok__) => { @@ -4218,17 +3183,11 @@ impl ITfContextOwnerCompositionSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnUpdateComposition(this: *mut core::ffi::c_void, pcomposition: *mut core::ffi::c_void, prangenew: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextOwnerCompositionSink_Impl, - { + unsafe extern "system" fn OnUpdateComposition(this: *mut core::ffi::c_void, pcomposition: *mut core::ffi::c_void, prangenew: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwnerCompositionSink_Impl::OnUpdateComposition(this, windows_core::from_raw_borrowed(&pcomposition), windows_core::from_raw_borrowed(&prangenew)).into() } - unsafe extern "system" fn OnEndComposition(this: *mut core::ffi::c_void, pcomposition: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextOwnerCompositionSink_Impl, - { + unsafe extern "system" fn OnEndComposition(this: *mut core::ffi::c_void, pcomposition: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwnerCompositionSink_Impl::OnEndComposition(this, windows_core::from_raw_borrowed(&pcomposition)).into() } @@ -4244,7 +3203,7 @@ impl ITfContextOwnerCompositionSink_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITfContextOwnerServices_Impl: Sized { +pub trait ITfContextOwnerServices_Impl: Sized + windows_core::IUnknownImpl { fn OnLayoutChange(&self) -> windows_core::Result<()>; fn OnStatusChange(&self, dwflags: u32) -> windows_core::Result<()>; fn OnAttributeChange(&self, rguidattribute: *const windows_core::GUID) -> windows_core::Result<()>; @@ -4257,56 +3216,32 @@ pub trait ITfContextOwnerServices_Impl: Sized { impl windows_core::RuntimeName for ITfContextOwnerServices {} #[cfg(feature = "Win32_System_Com")] impl ITfContextOwnerServices_Vtbl { - pub const fn new() -> ITfContextOwnerServices_Vtbl - where - Identity: ITfContextOwnerServices_Impl, - { - unsafe extern "system" fn OnLayoutChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextOwnerServices_Impl, - { + pub const fn new() -> ITfContextOwnerServices_Vtbl { + unsafe extern "system" fn OnLayoutChange(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwnerServices_Impl::OnLayoutChange(this).into() } - unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfContextOwnerServices_Impl, - { + unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwnerServices_Impl::OnStatusChange(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn OnAttributeChange(this: *mut core::ffi::c_void, rguidattribute: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfContextOwnerServices_Impl, - { + unsafe extern "system" fn OnAttributeChange(this: *mut core::ffi::c_void, rguidattribute: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwnerServices_Impl::OnAttributeChange(this, core::mem::transmute_copy(&rguidattribute)).into() } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, phdr: *mut TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextOwnerServices_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, phdr: *mut TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwnerServices_Impl::Serialize(this, windows_core::from_raw_borrowed(&pprop), windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&phdr), windows_core::from_raw_borrowed(&pstream)).into() } - unsafe extern "system" fn Unserialize(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: *mut core::ffi::c_void, ploader: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextOwnerServices_Impl, - { + unsafe extern "system" fn Unserialize(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP, pstream: *mut core::ffi::c_void, ploader: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwnerServices_Impl::Unserialize(this, windows_core::from_raw_borrowed(&pprop), core::mem::transmute_copy(&phdr), windows_core::from_raw_borrowed(&pstream), windows_core::from_raw_borrowed(&ploader)).into() } - unsafe extern "system" fn ForceLoadProperty(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextOwnerServices_Impl, - { + unsafe extern "system" fn ForceLoadProperty(this: *mut core::ffi::c_void, pprop: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwnerServices_Impl::ForceLoadProperty(this, windows_core::from_raw_borrowed(&pprop)).into() } - unsafe extern "system" fn CreateRange(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextOwnerServices_Impl, - { + unsafe extern "system" fn CreateRange(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextOwnerServices_Impl::CreateRange(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend)) { Ok(ok__) => { @@ -4331,7 +3266,7 @@ impl ITfContextOwnerServices_Vtbl { iid == &::IID } } -pub trait ITfContextView_Impl: Sized { +pub trait ITfContextView_Impl: Sized + windows_core::IUnknownImpl { fn GetRangeFromPoint(&self, ec: u32, ppt: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result; fn GetTextExt(&self, ec: u32, prange: Option<&ITfRange>, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetScreenExt(&self) -> windows_core::Result; @@ -4339,14 +3274,8 @@ pub trait ITfContextView_Impl: Sized { } impl windows_core::RuntimeName for ITfContextView {} impl ITfContextView_Vtbl { - pub const fn new() -> ITfContextView_Vtbl - where - Identity: ITfContextView_Impl, - { - unsafe extern "system" fn GetRangeFromPoint(this: *mut core::ffi::c_void, ec: u32, ppt: *const super::super::Foundation::POINT, dwflags: u32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfContextView_Impl, - { + pub const fn new() -> ITfContextView_Vtbl { + unsafe extern "system" fn GetRangeFromPoint(this: *mut core::ffi::c_void, ec: u32, ppt: *const super::super::Foundation::POINT, dwflags: u32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextView_Impl::GetRangeFromPoint(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&ppt), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -4356,17 +3285,11 @@ impl ITfContextView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfContextView_Impl, - { + unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextView_Impl::GetTextExt(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfclipped)).into() } - unsafe extern "system" fn GetScreenExt(this: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITfContextView_Impl, - { + unsafe extern "system" fn GetScreenExt(this: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextView_Impl::GetScreenExt(this) { Ok(ok__) => { @@ -4376,10 +3299,7 @@ impl ITfContextView_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetWnd(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITfContextView_Impl, - { + unsafe extern "system" fn GetWnd(this: *mut core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextView_Impl::GetWnd(this) { Ok(ok__) => { @@ -4402,7 +3322,7 @@ impl ITfContextView_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITfCreatePropertyStore_Impl: Sized { +pub trait ITfCreatePropertyStore_Impl: Sized + windows_core::IUnknownImpl { fn IsStoreSerializable(&self, guidprop: *const windows_core::GUID, prange: Option<&ITfRange>, ppropstore: Option<&ITfPropertyStore>) -> windows_core::Result; fn CreatePropertyStore(&self, guidprop: *const windows_core::GUID, prange: Option<&ITfRange>, cb: u32, pstream: Option<&super::super::System::Com::IStream>) -> windows_core::Result; } @@ -4410,14 +3330,8 @@ pub trait ITfCreatePropertyStore_Impl: Sized { impl windows_core::RuntimeName for ITfCreatePropertyStore {} #[cfg(feature = "Win32_System_Com")] impl ITfCreatePropertyStore_Vtbl { - pub const fn new() -> ITfCreatePropertyStore_Vtbl - where - Identity: ITfCreatePropertyStore_Impl, - { - unsafe extern "system" fn IsStoreSerializable(this: *mut core::ffi::c_void, guidprop: *const windows_core::GUID, prange: *mut core::ffi::c_void, ppropstore: *mut core::ffi::c_void, pfserializable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfCreatePropertyStore_Impl, - { + pub const fn new() -> ITfCreatePropertyStore_Vtbl { + unsafe extern "system" fn IsStoreSerializable(this: *mut core::ffi::c_void, guidprop: *const windows_core::GUID, prange: *mut core::ffi::c_void, ppropstore: *mut core::ffi::c_void, pfserializable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCreatePropertyStore_Impl::IsStoreSerializable(this, core::mem::transmute_copy(&guidprop), windows_core::from_raw_borrowed(&prange), windows_core::from_raw_borrowed(&ppropstore)) { Ok(ok__) => { @@ -4427,10 +3341,7 @@ impl ITfCreatePropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreatePropertyStore(this: *mut core::ffi::c_void, guidprop: *const windows_core::GUID, prange: *mut core::ffi::c_void, cb: u32, pstream: *mut core::ffi::c_void, ppstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfCreatePropertyStore_Impl, - { + unsafe extern "system" fn CreatePropertyStore(this: *mut core::ffi::c_void, guidprop: *const windows_core::GUID, prange: *mut core::ffi::c_void, cb: u32, pstream: *mut core::ffi::c_void, ppstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCreatePropertyStore_Impl::CreatePropertyStore(this, core::mem::transmute_copy(&guidprop), windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&cb), windows_core::from_raw_borrowed(&pstream)) { Ok(ok__) => { @@ -4450,7 +3361,7 @@ impl ITfCreatePropertyStore_Vtbl { iid == &::IID } } -pub trait ITfDisplayAttributeInfo_Impl: Sized { +pub trait ITfDisplayAttributeInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetGUID(&self) -> windows_core::Result; fn GetDescription(&self) -> windows_core::Result; fn GetAttributeInfo(&self, pda: *mut TF_DISPLAYATTRIBUTE) -> windows_core::Result<()>; @@ -4459,14 +3370,8 @@ pub trait ITfDisplayAttributeInfo_Impl: Sized { } impl windows_core::RuntimeName for ITfDisplayAttributeInfo {} impl ITfDisplayAttributeInfo_Vtbl { - pub const fn new() -> ITfDisplayAttributeInfo_Vtbl - where - Identity: ITfDisplayAttributeInfo_Impl, - { - unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeInfo_Impl, - { + pub const fn new() -> ITfDisplayAttributeInfo_Vtbl { + unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfDisplayAttributeInfo_Impl::GetGUID(this) { Ok(ok__) => { @@ -4476,10 +3381,7 @@ impl ITfDisplayAttributeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeInfo_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfDisplayAttributeInfo_Impl::GetDescription(this) { Ok(ok__) => { @@ -4489,24 +3391,15 @@ impl ITfDisplayAttributeInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeInfo(this: *mut core::ffi::c_void, pda: *mut TF_DISPLAYATTRIBUTE) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeInfo_Impl, - { + unsafe extern "system" fn GetAttributeInfo(this: *mut core::ffi::c_void, pda: *mut TF_DISPLAYATTRIBUTE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfDisplayAttributeInfo_Impl::GetAttributeInfo(this, core::mem::transmute_copy(&pda)).into() } - unsafe extern "system" fn SetAttributeInfo(this: *mut core::ffi::c_void, pda: *const TF_DISPLAYATTRIBUTE) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeInfo_Impl, - { + unsafe extern "system" fn SetAttributeInfo(this: *mut core::ffi::c_void, pda: *const TF_DISPLAYATTRIBUTE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfDisplayAttributeInfo_Impl::SetAttributeInfo(this, core::mem::transmute_copy(&pda)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeInfo_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfDisplayAttributeInfo_Impl::Reset(this).into() } @@ -4523,28 +3416,19 @@ impl ITfDisplayAttributeInfo_Vtbl { iid == &::IID } } -pub trait ITfDisplayAttributeMgr_Impl: Sized { +pub trait ITfDisplayAttributeMgr_Impl: Sized + windows_core::IUnknownImpl { fn OnUpdateInfo(&self) -> windows_core::Result<()>; fn EnumDisplayAttributeInfo(&self) -> windows_core::Result; fn GetDisplayAttributeInfo(&self, guid: *const windows_core::GUID, ppinfo: *mut Option, pclsidowner: *mut windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfDisplayAttributeMgr {} impl ITfDisplayAttributeMgr_Vtbl { - pub const fn new() -> ITfDisplayAttributeMgr_Vtbl - where - Identity: ITfDisplayAttributeMgr_Impl, - { - unsafe extern "system" fn OnUpdateInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeMgr_Impl, - { + pub const fn new() -> ITfDisplayAttributeMgr_Vtbl { + unsafe extern "system" fn OnUpdateInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfDisplayAttributeMgr_Impl::OnUpdateInfo(this).into() } - unsafe extern "system" fn EnumDisplayAttributeInfo(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeMgr_Impl, - { + unsafe extern "system" fn EnumDisplayAttributeInfo(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfDisplayAttributeMgr_Impl::EnumDisplayAttributeInfo(this) { Ok(ok__) => { @@ -4554,10 +3438,7 @@ impl ITfDisplayAttributeMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayAttributeInfo(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, ppinfo: *mut *mut core::ffi::c_void, pclsidowner: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeMgr_Impl, - { + unsafe extern "system" fn GetDisplayAttributeInfo(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, ppinfo: *mut *mut core::ffi::c_void, pclsidowner: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfDisplayAttributeMgr_Impl::GetDisplayAttributeInfo(this, core::mem::transmute_copy(&guid), core::mem::transmute_copy(&ppinfo), core::mem::transmute_copy(&pclsidowner)).into() } @@ -4572,19 +3453,13 @@ impl ITfDisplayAttributeMgr_Vtbl { iid == &::IID } } -pub trait ITfDisplayAttributeNotifySink_Impl: Sized { +pub trait ITfDisplayAttributeNotifySink_Impl: Sized + windows_core::IUnknownImpl { fn OnUpdateInfo(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfDisplayAttributeNotifySink {} impl ITfDisplayAttributeNotifySink_Vtbl { - pub const fn new() -> ITfDisplayAttributeNotifySink_Vtbl - where - Identity: ITfDisplayAttributeNotifySink_Impl, - { - unsafe extern "system" fn OnUpdateInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeNotifySink_Impl, - { + pub const fn new() -> ITfDisplayAttributeNotifySink_Vtbl { + unsafe extern "system" fn OnUpdateInfo(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfDisplayAttributeNotifySink_Impl::OnUpdateInfo(this).into() } @@ -4594,20 +3469,14 @@ impl ITfDisplayAttributeNotifySink_Vtbl { iid == &::IID } } -pub trait ITfDisplayAttributeProvider_Impl: Sized { +pub trait ITfDisplayAttributeProvider_Impl: Sized + windows_core::IUnknownImpl { fn EnumDisplayAttributeInfo(&self) -> windows_core::Result; fn GetDisplayAttributeInfo(&self, guid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for ITfDisplayAttributeProvider {} impl ITfDisplayAttributeProvider_Vtbl { - pub const fn new() -> ITfDisplayAttributeProvider_Vtbl - where - Identity: ITfDisplayAttributeProvider_Impl, - { - unsafe extern "system" fn EnumDisplayAttributeInfo(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeProvider_Impl, - { + pub const fn new() -> ITfDisplayAttributeProvider_Vtbl { + unsafe extern "system" fn EnumDisplayAttributeInfo(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfDisplayAttributeProvider_Impl::EnumDisplayAttributeInfo(this) { Ok(ok__) => { @@ -4617,10 +3486,7 @@ impl ITfDisplayAttributeProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayAttributeInfo(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, ppinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfDisplayAttributeProvider_Impl, - { + unsafe extern "system" fn GetDisplayAttributeInfo(this: *mut core::ffi::c_void, guid: *const windows_core::GUID, ppinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfDisplayAttributeProvider_Impl::GetDisplayAttributeInfo(this, core::mem::transmute_copy(&guid)) { Ok(ok__) => { @@ -4640,7 +3506,7 @@ impl ITfDisplayAttributeProvider_Vtbl { iid == &::IID } } -pub trait ITfDocumentMgr_Impl: Sized { +pub trait ITfDocumentMgr_Impl: Sized + windows_core::IUnknownImpl { fn CreateContext(&self, tidowner: u32, dwflags: u32, punk: Option<&windows_core::IUnknown>, ppic: *mut Option, pectextstore: *mut u32) -> windows_core::Result<()>; fn Push(&self, pic: Option<&ITfContext>) -> windows_core::Result<()>; fn Pop(&self, dwflags: u32) -> windows_core::Result<()>; @@ -4650,35 +3516,20 @@ pub trait ITfDocumentMgr_Impl: Sized { } impl windows_core::RuntimeName for ITfDocumentMgr {} impl ITfDocumentMgr_Vtbl { - pub const fn new() -> ITfDocumentMgr_Vtbl - where - Identity: ITfDocumentMgr_Impl, - { - unsafe extern "system" fn CreateContext(this: *mut core::ffi::c_void, tidowner: u32, dwflags: u32, punk: *mut core::ffi::c_void, ppic: *mut *mut core::ffi::c_void, pectextstore: *mut u32) -> windows_core::HRESULT - where - Identity: ITfDocumentMgr_Impl, - { + pub const fn new() -> ITfDocumentMgr_Vtbl { + unsafe extern "system" fn CreateContext(this: *mut core::ffi::c_void, tidowner: u32, dwflags: u32, punk: *mut core::ffi::c_void, ppic: *mut *mut core::ffi::c_void, pectextstore: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfDocumentMgr_Impl::CreateContext(this, core::mem::transmute_copy(&tidowner), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&ppic), core::mem::transmute_copy(&pectextstore)).into() } - unsafe extern "system" fn Push(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfDocumentMgr_Impl, - { + unsafe extern "system" fn Push(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfDocumentMgr_Impl::Push(this, windows_core::from_raw_borrowed(&pic)).into() } - unsafe extern "system" fn Pop(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfDocumentMgr_Impl, - { + unsafe extern "system" fn Pop(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfDocumentMgr_Impl::Pop(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetTop(this: *mut core::ffi::c_void, ppic: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfDocumentMgr_Impl, - { + unsafe extern "system" fn GetTop(this: *mut core::ffi::c_void, ppic: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfDocumentMgr_Impl::GetTop(this) { Ok(ok__) => { @@ -4688,10 +3539,7 @@ impl ITfDocumentMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBase(this: *mut core::ffi::c_void, ppic: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfDocumentMgr_Impl, - { + unsafe extern "system" fn GetBase(this: *mut core::ffi::c_void, ppic: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfDocumentMgr_Impl::GetBase(this) { Ok(ok__) => { @@ -4701,10 +3549,7 @@ impl ITfDocumentMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumContexts(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfDocumentMgr_Impl, - { + unsafe extern "system" fn EnumContexts(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfDocumentMgr_Impl::EnumContexts(this) { Ok(ok__) => { @@ -4728,20 +3573,14 @@ impl ITfDocumentMgr_Vtbl { iid == &::IID } } -pub trait ITfEditRecord_Impl: Sized { +pub trait ITfEditRecord_Impl: Sized + windows_core::IUnknownImpl { fn GetSelectionStatus(&self) -> windows_core::Result; fn GetTextAndPropertyUpdates(&self, dwflags: GET_TEXT_AND_PROPERTY_UPDATES_FLAGS, prgproperties: *const *const windows_core::GUID, cproperties: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ITfEditRecord {} impl ITfEditRecord_Vtbl { - pub const fn new() -> ITfEditRecord_Vtbl - where - Identity: ITfEditRecord_Impl, - { - unsafe extern "system" fn GetSelectionStatus(this: *mut core::ffi::c_void, pfchanged: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfEditRecord_Impl, - { + pub const fn new() -> ITfEditRecord_Vtbl { + unsafe extern "system" fn GetSelectionStatus(this: *mut core::ffi::c_void, pfchanged: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfEditRecord_Impl::GetSelectionStatus(this) { Ok(ok__) => { @@ -4751,10 +3590,7 @@ impl ITfEditRecord_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTextAndPropertyUpdates(this: *mut core::ffi::c_void, dwflags: GET_TEXT_AND_PROPERTY_UPDATES_FLAGS, prgproperties: *const *const windows_core::GUID, cproperties: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfEditRecord_Impl, - { + unsafe extern "system" fn GetTextAndPropertyUpdates(this: *mut core::ffi::c_void, dwflags: GET_TEXT_AND_PROPERTY_UPDATES_FLAGS, prgproperties: *const *const windows_core::GUID, cproperties: u32, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfEditRecord_Impl::GetTextAndPropertyUpdates(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&prgproperties), core::mem::transmute_copy(&cproperties)) { Ok(ok__) => { @@ -4774,19 +3610,13 @@ impl ITfEditRecord_Vtbl { iid == &::IID } } -pub trait ITfEditSession_Impl: Sized { +pub trait ITfEditSession_Impl: Sized + windows_core::IUnknownImpl { fn DoEditSession(&self, ec: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfEditSession {} impl ITfEditSession_Vtbl { - pub const fn new() -> ITfEditSession_Vtbl - where - Identity: ITfEditSession_Impl, - { - unsafe extern "system" fn DoEditSession(this: *mut core::ffi::c_void, ec: u32) -> windows_core::HRESULT - where - Identity: ITfEditSession_Impl, - { + pub const fn new() -> ITfEditSession_Vtbl { + unsafe extern "system" fn DoEditSession(this: *mut core::ffi::c_void, ec: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfEditSession_Impl::DoEditSession(this, core::mem::transmute_copy(&ec)).into() } @@ -4796,27 +3626,18 @@ impl ITfEditSession_Vtbl { iid == &::IID } } -pub trait ITfEditTransactionSink_Impl: Sized { +pub trait ITfEditTransactionSink_Impl: Sized + windows_core::IUnknownImpl { fn OnStartEditTransaction(&self, pic: Option<&ITfContext>) -> windows_core::Result<()>; fn OnEndEditTransaction(&self, pic: Option<&ITfContext>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfEditTransactionSink {} impl ITfEditTransactionSink_Vtbl { - pub const fn new() -> ITfEditTransactionSink_Vtbl - where - Identity: ITfEditTransactionSink_Impl, - { - unsafe extern "system" fn OnStartEditTransaction(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfEditTransactionSink_Impl, - { + pub const fn new() -> ITfEditTransactionSink_Vtbl { + unsafe extern "system" fn OnStartEditTransaction(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfEditTransactionSink_Impl::OnStartEditTransaction(this, windows_core::from_raw_borrowed(&pic)).into() } - unsafe extern "system" fn OnEndEditTransaction(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfEditTransactionSink_Impl, - { + unsafe extern "system" fn OnEndEditTransaction(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfEditTransactionSink_Impl::OnEndEditTransaction(this, windows_core::from_raw_borrowed(&pic)).into() } @@ -4836,21 +3657,12 @@ pub trait ITfFnAdviseText_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnAdviseText {} impl ITfFnAdviseText_Vtbl { - pub const fn new() -> ITfFnAdviseText_Vtbl - where - Identity: ITfFnAdviseText_Impl, - { - unsafe extern "system" fn OnTextUpdate(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, pchtext: windows_core::PCWSTR, cch: i32) -> windows_core::HRESULT - where - Identity: ITfFnAdviseText_Impl, - { + pub const fn new() -> ITfFnAdviseText_Vtbl { + unsafe extern "system" fn OnTextUpdate(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, pchtext: windows_core::PCWSTR, cch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnAdviseText_Impl::OnTextUpdate(this, windows_core::from_raw_borrowed(&prange), core::mem::transmute(&pchtext), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn OnLatticeUpdate(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, plattice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnAdviseText_Impl, - { + unsafe extern "system" fn OnLatticeUpdate(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, plattice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnAdviseText_Impl::OnLatticeUpdate(this, windows_core::from_raw_borrowed(&prange), windows_core::from_raw_borrowed(&plattice)).into() } @@ -4864,19 +3676,13 @@ impl ITfFnAdviseText_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfFnBalloon_Impl: Sized { +pub trait ITfFnBalloon_Impl: Sized + windows_core::IUnknownImpl { fn UpdateBalloon(&self, style: TfLBBalloonStyle, pch: &windows_core::PCWSTR, cch: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfFnBalloon {} impl ITfFnBalloon_Vtbl { - pub const fn new() -> ITfFnBalloon_Vtbl - where - Identity: ITfFnBalloon_Impl, - { - unsafe extern "system" fn UpdateBalloon(this: *mut core::ffi::c_void, style: TfLBBalloonStyle, pch: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: ITfFnBalloon_Impl, - { + pub const fn new() -> ITfFnBalloon_Vtbl { + unsafe extern "system" fn UpdateBalloon(this: *mut core::ffi::c_void, style: TfLBBalloonStyle, pch: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnBalloon_Impl::UpdateBalloon(this, core::mem::transmute_copy(&style), core::mem::transmute(&pch), core::mem::transmute_copy(&cch)).into() } @@ -4891,14 +3697,8 @@ pub trait ITfFnConfigure_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnConfigure {} impl ITfFnConfigure_Vtbl { - pub const fn new() -> ITfFnConfigure_Vtbl - where - Identity: ITfFnConfigure_Impl, - { - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfFnConfigure_Impl, - { + pub const fn new() -> ITfFnConfigure_Vtbl { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnConfigure_Impl::Show(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&rguidprofile)).into() } @@ -4913,14 +3713,8 @@ pub trait ITfFnConfigureRegisterEudc_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnConfigureRegisterEudc {} impl ITfFnConfigureRegisterEudc_Vtbl { - pub const fn new() -> ITfFnConfigureRegisterEudc_Vtbl - where - Identity: ITfFnConfigureRegisterEudc_Impl, - { - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const windows_core::GUID, bstrregistered: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfFnConfigureRegisterEudc_Impl, - { + pub const fn new() -> ITfFnConfigureRegisterEudc_Vtbl { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const windows_core::GUID, bstrregistered: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnConfigureRegisterEudc_Impl::Show(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&rguidprofile), core::mem::transmute(&bstrregistered)).into() } @@ -4935,14 +3729,8 @@ pub trait ITfFnConfigureRegisterWord_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnConfigureRegisterWord {} impl ITfFnConfigureRegisterWord_Vtbl { - pub const fn new() -> ITfFnConfigureRegisterWord_Vtbl - where - Identity: ITfFnConfigureRegisterWord_Impl, - { - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const windows_core::GUID, bstrregistered: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfFnConfigureRegisterWord_Impl, - { + pub const fn new() -> ITfFnConfigureRegisterWord_Vtbl { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const windows_core::GUID, bstrregistered: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnConfigureRegisterWord_Impl::Show(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&rguidprofile), core::mem::transmute(&bstrregistered)).into() } @@ -4957,14 +3745,8 @@ pub trait ITfFnCustomSpeechCommand_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnCustomSpeechCommand {} impl ITfFnCustomSpeechCommand_Vtbl { - pub const fn new() -> ITfFnCustomSpeechCommand_Vtbl - where - Identity: ITfFnCustomSpeechCommand_Impl, - { - unsafe extern "system" fn SetSpeechCommandProvider(this: *mut core::ffi::c_void, pspcmdprovider: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnCustomSpeechCommand_Impl, - { + pub const fn new() -> ITfFnCustomSpeechCommand_Vtbl { + unsafe extern "system" fn SetSpeechCommandProvider(this: *mut core::ffi::c_void, pspcmdprovider: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnCustomSpeechCommand_Impl::SetSpeechCommandProvider(this, windows_core::from_raw_borrowed(&pspcmdprovider)).into() } @@ -4979,14 +3761,8 @@ pub trait ITfFnGetLinguisticAlternates_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnGetLinguisticAlternates {} impl ITfFnGetLinguisticAlternates_Vtbl { - pub const fn new() -> ITfFnGetLinguisticAlternates_Vtbl - where - Identity: ITfFnGetLinguisticAlternates_Impl, - { - unsafe extern "system" fn GetAlternates(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppcandidatelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnGetLinguisticAlternates_Impl, - { + pub const fn new() -> ITfFnGetLinguisticAlternates_Vtbl { + unsafe extern "system" fn GetAlternates(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppcandidatelist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnGetLinguisticAlternates_Impl::GetAlternates(this, windows_core::from_raw_borrowed(&prange)) { Ok(ok__) => { @@ -5007,14 +3783,8 @@ pub trait ITfFnGetPreferredTouchKeyboardLayout_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnGetPreferredTouchKeyboardLayout {} impl ITfFnGetPreferredTouchKeyboardLayout_Vtbl { - pub const fn new() -> ITfFnGetPreferredTouchKeyboardLayout_Vtbl - where - Identity: ITfFnGetPreferredTouchKeyboardLayout_Impl, - { - unsafe extern "system" fn GetLayout(this: *mut core::ffi::c_void, ptkblayouttype: *mut TKBLayoutType, pwpreferredlayoutid: *const u16) -> windows_core::HRESULT - where - Identity: ITfFnGetPreferredTouchKeyboardLayout_Impl, - { + pub const fn new() -> ITfFnGetPreferredTouchKeyboardLayout_Vtbl { + unsafe extern "system" fn GetLayout(this: *mut core::ffi::c_void, ptkblayouttype: *mut TKBLayoutType, pwpreferredlayoutid: *const u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnGetPreferredTouchKeyboardLayout_Impl::GetLayout(this, core::mem::transmute_copy(&ptkblayouttype), core::mem::transmute_copy(&pwpreferredlayoutid)).into() } @@ -5029,14 +3799,8 @@ pub trait ITfFnGetSAPIObject_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnGetSAPIObject {} impl ITfFnGetSAPIObject_Vtbl { - pub const fn new() -> ITfFnGetSAPIObject_Vtbl - where - Identity: ITfFnGetSAPIObject_Impl, - { - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, sobj: TfSapiObject, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnGetSAPIObject_Impl, - { + pub const fn new() -> ITfFnGetSAPIObject_Vtbl { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, sobj: TfSapiObject, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnGetSAPIObject_Impl::Get(this, core::mem::transmute_copy(&sobj)) { Ok(ok__) => { @@ -5057,14 +3821,8 @@ pub trait ITfFnLMInternal_Impl: Sized + ITfFnLMProcessor_Impl { } impl windows_core::RuntimeName for ITfFnLMInternal {} impl ITfFnLMInternal_Vtbl { - pub const fn new() -> ITfFnLMInternal_Vtbl - where - Identity: ITfFnLMInternal_Impl, - { - unsafe extern "system" fn ProcessLattice(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnLMInternal_Impl, - { + pub const fn new() -> ITfFnLMInternal_Vtbl { + unsafe extern "system" fn ProcessLattice(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnLMInternal_Impl::ProcessLattice(this, windows_core::from_raw_borrowed(&prange)).into() } @@ -5085,21 +3843,12 @@ pub trait ITfFnLMProcessor_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnLMProcessor {} impl ITfFnLMProcessor_Vtbl { - pub const fn new() -> ITfFnLMProcessor_Vtbl - where - Identity: ITfFnLMProcessor_Impl, - { - unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfaccepted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfFnLMProcessor_Impl, - { + pub const fn new() -> ITfFnLMProcessor_Vtbl { + unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfaccepted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnLMProcessor_Impl::QueryRange(this, windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&ppnewrange), core::mem::transmute_copy(&pfaccepted)).into() } - unsafe extern "system" fn QueryLangID(this: *mut core::ffi::c_void, langid: u16, pfaccepted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfFnLMProcessor_Impl, - { + unsafe extern "system" fn QueryLangID(this: *mut core::ffi::c_void, langid: u16, pfaccepted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnLMProcessor_Impl::QueryLangID(this, core::mem::transmute_copy(&langid)) { Ok(ok__) => { @@ -5109,10 +3858,7 @@ impl ITfFnLMProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetReconversion(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppcandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnLMProcessor_Impl, - { + unsafe extern "system" fn GetReconversion(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppcandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnLMProcessor_Impl::GetReconversion(this, windows_core::from_raw_borrowed(&prange)) { Ok(ok__) => { @@ -5122,17 +3868,11 @@ impl ITfFnLMProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reconvert(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnLMProcessor_Impl, - { + unsafe extern "system" fn Reconvert(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnLMProcessor_Impl::Reconvert(this, windows_core::from_raw_borrowed(&prange)).into() } - unsafe extern "system" fn QueryKey(this: *mut core::ffi::c_void, fup: super::super::Foundation::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM, pfinterested: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfFnLMProcessor_Impl, - { + unsafe extern "system" fn QueryKey(this: *mut core::ffi::c_void, fup: super::super::Foundation::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM, pfinterested: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnLMProcessor_Impl::QueryKey(this, core::mem::transmute_copy(&fup), core::mem::transmute_copy(&vkey), core::mem::transmute_copy(&lparamkeydata)) { Ok(ok__) => { @@ -5142,17 +3882,11 @@ impl ITfFnLMProcessor_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InvokeKey(this: *mut core::ffi::c_void, fup: super::super::Foundation::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ITfFnLMProcessor_Impl, - { + unsafe extern "system" fn InvokeKey(this: *mut core::ffi::c_void, fup: super::super::Foundation::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnLMProcessor_Impl::InvokeKey(this, core::mem::transmute_copy(&fup), core::mem::transmute_copy(&vkey), core::mem::transmute_copy(&lparamkeydata)).into() } - unsafe extern "system" fn InvokeFunc(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, refguidfunc: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfFnLMProcessor_Impl, - { + unsafe extern "system" fn InvokeFunc(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, refguidfunc: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnLMProcessor_Impl::InvokeFunc(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&refguidfunc)).into() } @@ -5177,21 +3911,12 @@ pub trait ITfFnLangProfileUtil_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnLangProfileUtil {} impl ITfFnLangProfileUtil_Vtbl { - pub const fn new() -> ITfFnLangProfileUtil_Vtbl - where - Identity: ITfFnLangProfileUtil_Impl, - { - unsafe extern "system" fn RegisterActiveProfiles(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnLangProfileUtil_Impl, - { + pub const fn new() -> ITfFnLangProfileUtil_Vtbl { + unsafe extern "system" fn RegisterActiveProfiles(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnLangProfileUtil_Impl::RegisterActiveProfiles(this).into() } - unsafe extern "system" fn IsProfileAvailableForLang(this: *mut core::ffi::c_void, langid: u16, pfavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfFnLangProfileUtil_Impl, - { + unsafe extern "system" fn IsProfileAvailableForLang(this: *mut core::ffi::c_void, langid: u16, pfavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnLangProfileUtil_Impl::IsProfileAvailableForLang(this, core::mem::transmute_copy(&langid)) { Ok(ok__) => { @@ -5217,21 +3942,12 @@ pub trait ITfFnPlayBack_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnPlayBack {} impl ITfFnPlayBack_Vtbl { - pub const fn new() -> ITfFnPlayBack_Vtbl - where - Identity: ITfFnPlayBack_Impl, - { - unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfplayable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfFnPlayBack_Impl, - { + pub const fn new() -> ITfFnPlayBack_Vtbl { + unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfplayable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnPlayBack_Impl::QueryRange(this, windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&ppnewrange), core::mem::transmute_copy(&pfplayable)).into() } - unsafe extern "system" fn Play(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnPlayBack_Impl, - { + unsafe extern "system" fn Play(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnPlayBack_Impl::Play(this, windows_core::from_raw_borrowed(&prange)).into() } @@ -5247,14 +3963,8 @@ pub trait ITfFnPropertyUIStatus_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnPropertyUIStatus {} impl ITfFnPropertyUIStatus_Vtbl { - pub const fn new() -> ITfFnPropertyUIStatus_Vtbl - where - Identity: ITfFnPropertyUIStatus_Impl, - { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, refguidprop: *const windows_core::GUID, pdw: *mut u32) -> windows_core::HRESULT - where - Identity: ITfFnPropertyUIStatus_Impl, - { + pub const fn new() -> ITfFnPropertyUIStatus_Vtbl { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, refguidprop: *const windows_core::GUID, pdw: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnPropertyUIStatus_Impl::GetStatus(this, core::mem::transmute_copy(&refguidprop)) { Ok(ok__) => { @@ -5264,10 +3974,7 @@ impl ITfFnPropertyUIStatus_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, refguidprop: *const windows_core::GUID, dw: u32) -> windows_core::HRESULT - where - Identity: ITfFnPropertyUIStatus_Impl, - { + unsafe extern "system" fn SetStatus(this: *mut core::ffi::c_void, refguidprop: *const windows_core::GUID, dw: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnPropertyUIStatus_Impl::SetStatus(this, core::mem::transmute_copy(&refguidprop), core::mem::transmute_copy(&dw)).into() } @@ -5284,21 +3991,12 @@ pub trait ITfFnReconversion_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnReconversion {} impl ITfFnReconversion_Vtbl { - pub const fn new() -> ITfFnReconversion_Vtbl - where - Identity: ITfFnReconversion_Impl, - { - unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfconvertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfFnReconversion_Impl, - { + pub const fn new() -> ITfFnReconversion_Vtbl { + unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfconvertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnReconversion_Impl::QueryRange(this, windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&ppnewrange), core::mem::transmute_copy(&pfconvertable)).into() } - unsafe extern "system" fn GetReconversion(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppcandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnReconversion_Impl, - { + unsafe extern "system" fn GetReconversion(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppcandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnReconversion_Impl::GetReconversion(this, windows_core::from_raw_borrowed(&prange)) { Ok(ok__) => { @@ -5308,10 +4006,7 @@ impl ITfFnReconversion_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Reconvert(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnReconversion_Impl, - { + unsafe extern "system" fn Reconvert(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnReconversion_Impl::Reconvert(this, windows_core::from_raw_borrowed(&prange)).into() } @@ -5332,14 +4027,8 @@ pub trait ITfFnSearchCandidateProvider_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnSearchCandidateProvider {} impl ITfFnSearchCandidateProvider_Vtbl { - pub const fn new() -> ITfFnSearchCandidateProvider_Vtbl - where - Identity: ITfFnSearchCandidateProvider_Impl, - { - unsafe extern "system" fn GetSearchCandidates(this: *mut core::ffi::c_void, bstrquery: core::mem::MaybeUninit, bstrapplicationid: core::mem::MaybeUninit, pplist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfFnSearchCandidateProvider_Impl, - { + pub const fn new() -> ITfFnSearchCandidateProvider_Vtbl { + unsafe extern "system" fn GetSearchCandidates(this: *mut core::ffi::c_void, bstrquery: core::mem::MaybeUninit, bstrapplicationid: core::mem::MaybeUninit, pplist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnSearchCandidateProvider_Impl::GetSearchCandidates(this, core::mem::transmute(&bstrquery), core::mem::transmute(&bstrapplicationid)) { Ok(ok__) => { @@ -5349,10 +4038,7 @@ impl ITfFnSearchCandidateProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetResult(this: *mut core::ffi::c_void, bstrquery: core::mem::MaybeUninit, bstrapplicationid: core::mem::MaybeUninit, bstrresult: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfFnSearchCandidateProvider_Impl, - { + unsafe extern "system" fn SetResult(this: *mut core::ffi::c_void, bstrquery: core::mem::MaybeUninit, bstrapplicationid: core::mem::MaybeUninit, bstrresult: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnSearchCandidateProvider_Impl::SetResult(this, core::mem::transmute(&bstrquery), core::mem::transmute(&bstrapplicationid), core::mem::transmute(&bstrresult)).into() } @@ -5371,14 +4057,8 @@ pub trait ITfFnShowHelp_Impl: Sized + ITfFunction_Impl { } impl windows_core::RuntimeName for ITfFnShowHelp {} impl ITfFnShowHelp_Vtbl { - pub const fn new() -> ITfFnShowHelp_Vtbl - where - Identity: ITfFnShowHelp_Impl, - { - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: ITfFnShowHelp_Impl, - { + pub const fn new() -> ITfFnShowHelp_Vtbl { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnShowHelp_Impl::Show(this, core::mem::transmute_copy(&hwndparent)).into() } @@ -5388,19 +4068,13 @@ impl ITfFnShowHelp_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfFunction_Impl: Sized { +pub trait ITfFunction_Impl: Sized + windows_core::IUnknownImpl { fn GetDisplayName(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITfFunction {} impl ITfFunction_Vtbl { - pub const fn new() -> ITfFunction_Vtbl - where - Identity: ITfFunction_Impl, - { - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfFunction_Impl, - { + pub const fn new() -> ITfFunction_Vtbl { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFunction_Impl::GetDisplayName(this) { Ok(ok__) => { @@ -5416,21 +4090,15 @@ impl ITfFunction_Vtbl { iid == &::IID } } -pub trait ITfFunctionProvider_Impl: Sized { +pub trait ITfFunctionProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetType(&self) -> windows_core::Result; fn GetDescription(&self) -> windows_core::Result; fn GetFunction(&self, rguid: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for ITfFunctionProvider {} impl ITfFunctionProvider_Vtbl { - pub const fn new() -> ITfFunctionProvider_Vtbl - where - Identity: ITfFunctionProvider_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfFunctionProvider_Impl, - { + pub const fn new() -> ITfFunctionProvider_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFunctionProvider_Impl::GetType(this) { Ok(ok__) => { @@ -5440,10 +4108,7 @@ impl ITfFunctionProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfFunctionProvider_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFunctionProvider_Impl::GetDescription(this) { Ok(ok__) => { @@ -5453,10 +4118,7 @@ impl ITfFunctionProvider_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunction(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 - where - Identity: ITfFunctionProvider_Impl, - { + unsafe extern "system" fn GetFunction(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFunctionProvider_Impl::GetFunction(this, core::mem::transmute_copy(&rguid), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -5478,21 +4140,15 @@ impl ITfFunctionProvider_Vtbl { } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] -pub trait ITfInputProcessorProfileActivationSink_Impl: Sized { +pub trait ITfInputProcessorProfileActivationSink_Impl: Sized + windows_core::IUnknownImpl { fn OnActivated(&self, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, catid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, dwflags: u32) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] impl windows_core::RuntimeName for ITfInputProcessorProfileActivationSink {} #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] impl ITfInputProcessorProfileActivationSink_Vtbl { - pub const fn new() -> ITfInputProcessorProfileActivationSink_Vtbl - where - Identity: ITfInputProcessorProfileActivationSink_Impl, - { - unsafe extern "system" fn OnActivated(this: *mut core::ffi::c_void, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, catid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfileActivationSink_Impl, - { + pub const fn new() -> ITfInputProcessorProfileActivationSink_Vtbl { + unsafe extern "system" fn OnActivated(this: *mut core::ffi::c_void, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, catid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfileActivationSink_Impl::OnActivated(this, core::mem::transmute_copy(&dwprofiletype), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&catid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&dwflags)).into() } @@ -5503,7 +4159,7 @@ impl ITfInputProcessorProfileActivationSink_Vtbl { } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] -pub trait ITfInputProcessorProfileMgr_Impl: Sized { +pub trait ITfInputProcessorProfileMgr_Impl: Sized + windows_core::IUnknownImpl { fn ActivateProfile(&self, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, dwflags: u32) -> windows_core::Result<()>; fn DeactivateProfile(&self, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, dwflags: u32) -> windows_core::Result<()>; fn GetProfile(&self, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, pprofile: *mut TF_INPUTPROCESSORPROFILE) -> windows_core::Result<()>; @@ -5517,35 +4173,20 @@ pub trait ITfInputProcessorProfileMgr_Impl: Sized { impl windows_core::RuntimeName for ITfInputProcessorProfileMgr {} #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] impl ITfInputProcessorProfileMgr_Vtbl { - pub const fn new() -> ITfInputProcessorProfileMgr_Vtbl - where - Identity: ITfInputProcessorProfileMgr_Impl, - { - unsafe extern "system" fn ActivateProfile(this: *mut core::ffi::c_void, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfileMgr_Impl, - { + pub const fn new() -> ITfInputProcessorProfileMgr_Vtbl { + unsafe extern "system" fn ActivateProfile(this: *mut core::ffi::c_void, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfileMgr_Impl::ActivateProfile(this, core::mem::transmute_copy(&dwprofiletype), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn DeactivateProfile(this: *mut core::ffi::c_void, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfileMgr_Impl, - { + unsafe extern "system" fn DeactivateProfile(this: *mut core::ffi::c_void, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfileMgr_Impl::DeactivateProfile(this, core::mem::transmute_copy(&dwprofiletype), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetProfile(this: *mut core::ffi::c_void, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, pprofile: *mut TF_INPUTPROCESSORPROFILE) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfileMgr_Impl, - { + unsafe extern "system" fn GetProfile(this: *mut core::ffi::c_void, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, pprofile: *mut TF_INPUTPROCESSORPROFILE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfileMgr_Impl::GetProfile(this, core::mem::transmute_copy(&dwprofiletype), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&hkl), core::mem::transmute_copy(&pprofile)).into() } - unsafe extern "system" fn EnumProfiles(this: *mut core::ffi::c_void, langid: u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfileMgr_Impl, - { + unsafe extern "system" fn EnumProfiles(this: *mut core::ffi::c_void, langid: u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputProcessorProfileMgr_Impl::EnumProfiles(this, core::mem::transmute_copy(&langid)) { Ok(ok__) => { @@ -5555,31 +4196,19 @@ impl ITfInputProcessorProfileMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseInputProcessor(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfileMgr_Impl, - { + unsafe extern "system" fn ReleaseInputProcessor(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfileMgr_Impl::ReleaseInputProcessor(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RegisterProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: windows_core::PCWSTR, cchdesc: u32, pchiconfile: windows_core::PCWSTR, cchfile: u32, uiconindex: u32, hklsubstitute: super::Input::KeyboardAndMouse::HKL, dwpreferredlayout: u32, benabledbydefault: super::super::Foundation::BOOL, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfileMgr_Impl, - { + unsafe extern "system" fn RegisterProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: windows_core::PCWSTR, cchdesc: u32, pchiconfile: windows_core::PCWSTR, cchfile: u32, uiconindex: u32, hklsubstitute: super::Input::KeyboardAndMouse::HKL, dwpreferredlayout: u32, benabledbydefault: super::super::Foundation::BOOL, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfileMgr_Impl::RegisterProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute(&pchdesc), core::mem::transmute_copy(&cchdesc), core::mem::transmute(&pchiconfile), core::mem::transmute_copy(&cchfile), core::mem::transmute_copy(&uiconindex), core::mem::transmute_copy(&hklsubstitute), core::mem::transmute_copy(&dwpreferredlayout), core::mem::transmute_copy(&benabledbydefault), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn UnregisterProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfileMgr_Impl, - { + unsafe extern "system" fn UnregisterProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfileMgr_Impl::UnregisterProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetActiveProfile(this: *mut core::ffi::c_void, catid: *const windows_core::GUID, pprofile: *mut TF_INPUTPROCESSORPROFILE) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfileMgr_Impl, - { + unsafe extern "system" fn GetActiveProfile(this: *mut core::ffi::c_void, catid: *const windows_core::GUID, pprofile: *mut TF_INPUTPROCESSORPROFILE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfileMgr_Impl::GetActiveProfile(this, core::mem::transmute_copy(&catid), core::mem::transmute_copy(&pprofile)).into() } @@ -5600,21 +4229,15 @@ impl ITfInputProcessorProfileMgr_Vtbl { } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] -pub trait ITfInputProcessorProfileSubstituteLayout_Impl: Sized { +pub trait ITfInputProcessorProfileSubstituteLayout_Impl: Sized + windows_core::IUnknownImpl { fn GetSubstituteKeyboardLayout(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result; } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] impl windows_core::RuntimeName for ITfInputProcessorProfileSubstituteLayout {} #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] impl ITfInputProcessorProfileSubstituteLayout_Vtbl { - pub const fn new() -> ITfInputProcessorProfileSubstituteLayout_Vtbl - where - Identity: ITfInputProcessorProfileSubstituteLayout_Impl, - { - unsafe extern "system" fn GetSubstituteKeyboardLayout(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, phkl: *mut super::Input::KeyboardAndMouse::HKL) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfileSubstituteLayout_Impl, - { + pub const fn new() -> ITfInputProcessorProfileSubstituteLayout_Vtbl { + unsafe extern "system" fn GetSubstituteKeyboardLayout(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, phkl: *mut super::Input::KeyboardAndMouse::HKL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputProcessorProfileSubstituteLayout_Impl::GetSubstituteKeyboardLayout(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile)) { Ok(ok__) => { @@ -5631,7 +4254,7 @@ impl ITfInputProcessorProfileSubstituteLayout_Vtbl { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Input_KeyboardAndMouse"))] -pub trait ITfInputProcessorProfiles_Impl: Sized { +pub trait ITfInputProcessorProfiles_Impl: Sized + windows_core::IUnknownImpl { fn Register(&self, rclsid: *const windows_core::GUID) -> windows_core::Result<()>; fn Unregister(&self, rclsid: *const windows_core::GUID) -> windows_core::Result<()>; fn AddLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: &windows_core::PCWSTR, cchdesc: u32, pchiconfile: &windows_core::PCWSTR, cchfile: u32, uiconindex: u32) -> windows_core::Result<()>; @@ -5655,42 +4278,24 @@ pub trait ITfInputProcessorProfiles_Impl: Sized { impl windows_core::RuntimeName for ITfInputProcessorProfiles {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Input_KeyboardAndMouse"))] impl ITfInputProcessorProfiles_Vtbl { - pub const fn new() -> ITfInputProcessorProfiles_Vtbl - where - Identity: ITfInputProcessorProfiles_Impl, - { - unsafe extern "system" fn Register(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + pub const fn new() -> ITfInputProcessorProfiles_Vtbl { + unsafe extern "system" fn Register(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::Register(this, core::mem::transmute_copy(&rclsid)).into() } - unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn Unregister(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::Unregister(this, core::mem::transmute_copy(&rclsid)).into() } - unsafe extern "system" fn AddLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: windows_core::PCWSTR, cchdesc: u32, pchiconfile: windows_core::PCWSTR, cchfile: u32, uiconindex: u32) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn AddLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: windows_core::PCWSTR, cchdesc: u32, pchiconfile: windows_core::PCWSTR, cchfile: u32, uiconindex: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::AddLanguageProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute(&pchdesc), core::mem::transmute_copy(&cchdesc), core::mem::transmute(&pchiconfile), core::mem::transmute_copy(&cchfile), core::mem::transmute_copy(&uiconindex)).into() } - unsafe extern "system" fn RemoveLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn RemoveLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::RemoveLanguageProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile)).into() } - unsafe extern "system" fn EnumInputProcessorInfo(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn EnumInputProcessorInfo(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputProcessorProfiles_Impl::EnumInputProcessorInfo(this) { Ok(ok__) => { @@ -5700,38 +4305,23 @@ impl ITfInputProcessorProfiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultLanguageProfile(this: *mut core::ffi::c_void, langid: u16, catid: *const windows_core::GUID, pclsid: *mut windows_core::GUID, pguidprofile: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn GetDefaultLanguageProfile(this: *mut core::ffi::c_void, langid: u16, catid: *const windows_core::GUID, pclsid: *mut windows_core::GUID, pguidprofile: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::GetDefaultLanguageProfile(this, core::mem::transmute_copy(&langid), core::mem::transmute_copy(&catid), core::mem::transmute_copy(&pclsid), core::mem::transmute_copy(&pguidprofile)).into() } - unsafe extern "system" fn SetDefaultLanguageProfile(this: *mut core::ffi::c_void, langid: u16, rclsid: *const windows_core::GUID, guidprofiles: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn SetDefaultLanguageProfile(this: *mut core::ffi::c_void, langid: u16, rclsid: *const windows_core::GUID, guidprofiles: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::SetDefaultLanguageProfile(this, core::mem::transmute_copy(&langid), core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&guidprofiles)).into() } - unsafe extern "system" fn ActivateLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofiles: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn ActivateLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofiles: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::ActivateLanguageProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofiles)).into() } - unsafe extern "system" fn GetActiveLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, plangid: *mut u16, pguidprofile: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn GetActiveLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, plangid: *mut u16, pguidprofile: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::GetActiveLanguageProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&plangid), core::mem::transmute_copy(&pguidprofile)).into() } - unsafe extern "system" fn GetLanguageProfileDescription(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pbstrprofile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn GetLanguageProfileDescription(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pbstrprofile: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputProcessorProfiles_Impl::GetLanguageProfileDescription(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile)) { Ok(ok__) => { @@ -5741,10 +4331,7 @@ impl ITfInputProcessorProfiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCurrentLanguage(this: *mut core::ffi::c_void, plangid: *mut u16) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn GetCurrentLanguage(this: *mut core::ffi::c_void, plangid: *mut u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputProcessorProfiles_Impl::GetCurrentLanguage(this) { Ok(ok__) => { @@ -5754,24 +4341,15 @@ impl ITfInputProcessorProfiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ChangeCurrentLanguage(this: *mut core::ffi::c_void, langid: u16) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn ChangeCurrentLanguage(this: *mut core::ffi::c_void, langid: u16) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::ChangeCurrentLanguage(this, core::mem::transmute_copy(&langid)).into() } - unsafe extern "system" fn GetLanguageList(this: *mut core::ffi::c_void, pplangid: *mut *mut u16, pulcount: *mut u32) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn GetLanguageList(this: *mut core::ffi::c_void, pplangid: *mut *mut u16, pulcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::GetLanguageList(this, core::mem::transmute_copy(&pplangid), core::mem::transmute_copy(&pulcount)).into() } - unsafe extern "system" fn EnumLanguageProfiles(this: *mut core::ffi::c_void, langid: u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn EnumLanguageProfiles(this: *mut core::ffi::c_void, langid: u16, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputProcessorProfiles_Impl::EnumLanguageProfiles(this, core::mem::transmute_copy(&langid)) { Ok(ok__) => { @@ -5781,17 +4359,11 @@ impl ITfInputProcessorProfiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn EnableLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::EnableLanguageProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn IsEnabledLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn IsEnabledLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputProcessorProfiles_Impl::IsEnabledLanguageProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile)) { Ok(ok__) => { @@ -5801,17 +4373,11 @@ impl ITfInputProcessorProfiles_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnableLanguageProfileByDefault(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn EnableLanguageProfileByDefault(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::EnableLanguageProfileByDefault(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn SubstituteKeyboardLayout(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfiles_Impl, - { + unsafe extern "system" fn SubstituteKeyboardLayout(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::SubstituteKeyboardLayout(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&hkl)).into() } @@ -5849,14 +4415,8 @@ pub trait ITfInputProcessorProfilesEx_Impl: Sized + ITfInputProcessorProfiles_Im impl windows_core::RuntimeName for ITfInputProcessorProfilesEx {} #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Input_KeyboardAndMouse"))] impl ITfInputProcessorProfilesEx_Vtbl { - pub const fn new() -> ITfInputProcessorProfilesEx_Vtbl - where - Identity: ITfInputProcessorProfilesEx_Impl, - { - unsafe extern "system" fn SetLanguageProfileDisplayName(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchfile: windows_core::PCWSTR, cchfile: u32, uresid: u32) -> windows_core::HRESULT - where - Identity: ITfInputProcessorProfilesEx_Impl, - { + pub const fn new() -> ITfInputProcessorProfilesEx_Vtbl { + unsafe extern "system" fn SetLanguageProfileDisplayName(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchfile: windows_core::PCWSTR, cchfile: u32, uresid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfilesEx_Impl::SetLanguageProfileDisplayName(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute(&pchfile), core::mem::transmute_copy(&cchfile), core::mem::transmute_copy(&uresid)).into() } @@ -5869,7 +4429,7 @@ impl ITfInputProcessorProfilesEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfInputScope_Impl: Sized { +pub trait ITfInputScope_Impl: Sized + windows_core::IUnknownImpl { fn GetInputScopes(&self, pprginputscopes: *mut *mut InputScope, pccount: *mut u32) -> windows_core::Result<()>; fn GetPhrase(&self, ppbstrphrases: *mut *mut windows_core::BSTR, pccount: *mut u32) -> windows_core::Result<()>; fn GetRegularExpression(&self) -> windows_core::Result; @@ -5878,28 +4438,16 @@ pub trait ITfInputScope_Impl: Sized { } impl windows_core::RuntimeName for ITfInputScope {} impl ITfInputScope_Vtbl { - pub const fn new() -> ITfInputScope_Vtbl - where - Identity: ITfInputScope_Impl, - { - unsafe extern "system" fn GetInputScopes(this: *mut core::ffi::c_void, pprginputscopes: *mut *mut InputScope, pccount: *mut u32) -> windows_core::HRESULT - where - Identity: ITfInputScope_Impl, - { + pub const fn new() -> ITfInputScope_Vtbl { + unsafe extern "system" fn GetInputScopes(this: *mut core::ffi::c_void, pprginputscopes: *mut *mut InputScope, pccount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputScope_Impl::GetInputScopes(this, core::mem::transmute_copy(&pprginputscopes), core::mem::transmute_copy(&pccount)).into() } - unsafe extern "system" fn GetPhrase(this: *mut core::ffi::c_void, ppbstrphrases: *mut *mut windows_core::BSTR, pccount: *mut u32) -> windows_core::HRESULT - where - Identity: ITfInputScope_Impl, - { + unsafe extern "system" fn GetPhrase(this: *mut core::ffi::c_void, ppbstrphrases: *mut *mut windows_core::BSTR, pccount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputScope_Impl::GetPhrase(this, core::mem::transmute_copy(&ppbstrphrases), core::mem::transmute_copy(&pccount)).into() } - unsafe extern "system" fn GetRegularExpression(this: *mut core::ffi::c_void, pbstrregexp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfInputScope_Impl, - { + unsafe extern "system" fn GetRegularExpression(this: *mut core::ffi::c_void, pbstrregexp: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputScope_Impl::GetRegularExpression(this) { Ok(ok__) => { @@ -5909,10 +4457,7 @@ impl ITfInputScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetSRGS(this: *mut core::ffi::c_void, pbstrsrgs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfInputScope_Impl, - { + unsafe extern "system" fn GetSRGS(this: *mut core::ffi::c_void, pbstrsrgs: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputScope_Impl::GetSRGS(this) { Ok(ok__) => { @@ -5922,10 +4467,7 @@ impl ITfInputScope_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetXML(this: *mut core::ffi::c_void, pbstrxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfInputScope_Impl, - { + unsafe extern "system" fn GetXML(this: *mut core::ffi::c_void, pbstrxml: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputScope_Impl::GetXML(this) { Ok(ok__) => { @@ -5956,14 +4498,8 @@ pub trait ITfInputScope2_Impl: Sized + ITfInputScope_Impl { impl windows_core::RuntimeName for ITfInputScope2 {} #[cfg(feature = "Win32_System_Com")] impl ITfInputScope2_Vtbl { - pub const fn new() -> ITfInputScope2_Vtbl - where - Identity: ITfInputScope2_Impl, - { - unsafe extern "system" fn EnumWordList(this: *mut core::ffi::c_void, ppenumstring: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfInputScope2_Impl, - { + pub const fn new() -> ITfInputScope2_Vtbl { + unsafe extern "system" fn EnumWordList(this: *mut core::ffi::c_void, ppenumstring: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputScope2_Impl::EnumWordList(this) { Ok(ok__) => { @@ -5980,7 +4516,7 @@ impl ITfInputScope2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITfInsertAtSelection_Impl: Sized { +pub trait ITfInsertAtSelection_Impl: Sized + windows_core::IUnknownImpl { fn InsertTextAtSelection(&self, ec: u32, dwflags: INSERT_TEXT_AT_SELECTION_FLAGS, pchtext: &windows_core::PCWSTR, cch: i32) -> windows_core::Result; fn InsertEmbeddedAtSelection(&self, ec: u32, dwflags: u32, pdataobject: Option<&super::super::System::Com::IDataObject>) -> windows_core::Result; } @@ -5988,14 +4524,8 @@ pub trait ITfInsertAtSelection_Impl: Sized { impl windows_core::RuntimeName for ITfInsertAtSelection {} #[cfg(feature = "Win32_System_Com")] impl ITfInsertAtSelection_Vtbl { - pub const fn new() -> ITfInsertAtSelection_Vtbl - where - Identity: ITfInsertAtSelection_Impl, - { - unsafe extern "system" fn InsertTextAtSelection(this: *mut core::ffi::c_void, ec: u32, dwflags: INSERT_TEXT_AT_SELECTION_FLAGS, pchtext: windows_core::PCWSTR, cch: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfInsertAtSelection_Impl, - { + pub const fn new() -> ITfInsertAtSelection_Vtbl { + unsafe extern "system" fn InsertTextAtSelection(this: *mut core::ffi::c_void, ec: u32, dwflags: INSERT_TEXT_AT_SELECTION_FLAGS, pchtext: windows_core::PCWSTR, cch: i32, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInsertAtSelection_Impl::InsertTextAtSelection(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pchtext), core::mem::transmute_copy(&cch)) { Ok(ok__) => { @@ -6005,10 +4535,7 @@ impl ITfInsertAtSelection_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertEmbeddedAtSelection(this: *mut core::ffi::c_void, ec: u32, dwflags: u32, pdataobject: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfInsertAtSelection_Impl, - { + unsafe extern "system" fn InsertEmbeddedAtSelection(this: *mut core::ffi::c_void, ec: u32, dwflags: u32, pdataobject: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInsertAtSelection_Impl::InsertEmbeddedAtSelection(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pdataobject)) { Ok(ok__) => { @@ -6028,7 +4555,7 @@ impl ITfInsertAtSelection_Vtbl { iid == &::IID } } -pub trait ITfIntegratableCandidateListUIElement_Impl: Sized { +pub trait ITfIntegratableCandidateListUIElement_Impl: Sized + windows_core::IUnknownImpl { fn SetIntegrationStyle(&self, guidintegrationstyle: &windows_core::GUID) -> windows_core::Result<()>; fn GetSelectionStyle(&self) -> windows_core::Result; fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; @@ -6037,21 +4564,12 @@ pub trait ITfIntegratableCandidateListUIElement_Impl: Sized { } impl windows_core::RuntimeName for ITfIntegratableCandidateListUIElement {} impl ITfIntegratableCandidateListUIElement_Vtbl { - pub const fn new() -> ITfIntegratableCandidateListUIElement_Vtbl - where - Identity: ITfIntegratableCandidateListUIElement_Impl, - { - unsafe extern "system" fn SetIntegrationStyle(this: *mut core::ffi::c_void, guidintegrationstyle: windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfIntegratableCandidateListUIElement_Impl, - { + pub const fn new() -> ITfIntegratableCandidateListUIElement_Vtbl { + unsafe extern "system" fn SetIntegrationStyle(this: *mut core::ffi::c_void, guidintegrationstyle: windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfIntegratableCandidateListUIElement_Impl::SetIntegrationStyle(this, core::mem::transmute(&guidintegrationstyle)).into() } - unsafe extern "system" fn GetSelectionStyle(this: *mut core::ffi::c_void, ptfselectionstyle: *mut TfIntegratableCandidateListSelectionStyle) -> windows_core::HRESULT - where - Identity: ITfIntegratableCandidateListUIElement_Impl, - { + unsafe extern "system" fn GetSelectionStyle(this: *mut core::ffi::c_void, ptfselectionstyle: *mut TfIntegratableCandidateListSelectionStyle) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfIntegratableCandidateListUIElement_Impl::GetSelectionStyle(this) { Ok(ok__) => { @@ -6061,10 +4579,7 @@ impl ITfIntegratableCandidateListUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfIntegratableCandidateListUIElement_Impl, - { + unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfIntegratableCandidateListUIElement_Impl::OnKeyDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -6074,10 +4589,7 @@ impl ITfIntegratableCandidateListUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShowCandidateNumbers(this: *mut core::ffi::c_void, pfshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfIntegratableCandidateListUIElement_Impl, - { + unsafe extern "system" fn ShowCandidateNumbers(this: *mut core::ffi::c_void, pfshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfIntegratableCandidateListUIElement_Impl::ShowCandidateNumbers(this) { Ok(ok__) => { @@ -6087,10 +4599,7 @@ impl ITfIntegratableCandidateListUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FinalizeExactCompositionString(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfIntegratableCandidateListUIElement_Impl, - { + unsafe extern "system" fn FinalizeExactCompositionString(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfIntegratableCandidateListUIElement_Impl::FinalizeExactCompositionString(this).into() } @@ -6107,7 +4616,7 @@ impl ITfIntegratableCandidateListUIElement_Vtbl { iid == &::IID } } -pub trait ITfKeyEventSink_Impl: Sized { +pub trait ITfKeyEventSink_Impl: Sized + windows_core::IUnknownImpl { fn OnSetFocus(&self, fforeground: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn OnTestKeyDown(&self, pic: Option<&ITfContext>, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; fn OnTestKeyUp(&self, pic: Option<&ITfContext>, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; @@ -6117,21 +4626,12 @@ pub trait ITfKeyEventSink_Impl: Sized { } impl windows_core::RuntimeName for ITfKeyEventSink {} impl ITfKeyEventSink_Vtbl { - pub const fn new() -> ITfKeyEventSink_Vtbl - where - Identity: ITfKeyEventSink_Impl, - { - unsafe extern "system" fn OnSetFocus(this: *mut core::ffi::c_void, fforeground: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeyEventSink_Impl, - { + pub const fn new() -> ITfKeyEventSink_Vtbl { + unsafe extern "system" fn OnSetFocus(this: *mut core::ffi::c_void, fforeground: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfKeyEventSink_Impl::OnSetFocus(this, core::mem::transmute_copy(&fforeground)).into() } - unsafe extern "system" fn OnTestKeyDown(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeyEventSink_Impl, - { + unsafe extern "system" fn OnTestKeyDown(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeyEventSink_Impl::OnTestKeyDown(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -6141,10 +4641,7 @@ impl ITfKeyEventSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnTestKeyUp(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeyEventSink_Impl, - { + unsafe extern "system" fn OnTestKeyUp(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeyEventSink_Impl::OnTestKeyUp(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -6154,10 +4651,7 @@ impl ITfKeyEventSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeyEventSink_Impl, - { + unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeyEventSink_Impl::OnKeyDown(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -6167,10 +4661,7 @@ impl ITfKeyEventSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnKeyUp(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeyEventSink_Impl, - { + unsafe extern "system" fn OnKeyUp(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeyEventSink_Impl::OnKeyUp(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -6180,10 +4671,7 @@ impl ITfKeyEventSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnPreservedKey(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 - where - Identity: ITfKeyEventSink_Impl, - { + unsafe extern "system" fn OnPreservedKey(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeyEventSink_Impl::OnPreservedKey(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -6207,27 +4695,18 @@ impl ITfKeyEventSink_Vtbl { iid == &::IID } } -pub trait ITfKeyTraceEventSink_Impl: Sized { +pub trait ITfKeyTraceEventSink_Impl: Sized + windows_core::IUnknownImpl { fn OnKeyTraceDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn OnKeyTraceUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfKeyTraceEventSink {} impl ITfKeyTraceEventSink_Vtbl { - pub const fn new() -> ITfKeyTraceEventSink_Vtbl - where - Identity: ITfKeyTraceEventSink_Impl, - { - unsafe extern "system" fn OnKeyTraceDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ITfKeyTraceEventSink_Impl, - { + pub const fn new() -> ITfKeyTraceEventSink_Vtbl { + unsafe extern "system" fn OnKeyTraceDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfKeyTraceEventSink_Impl::OnKeyTraceDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn OnKeyTraceUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ITfKeyTraceEventSink_Impl, - { + unsafe extern "system" fn OnKeyTraceUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfKeyTraceEventSink_Impl::OnKeyTraceUp(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } @@ -6241,7 +4720,7 @@ impl ITfKeyTraceEventSink_Vtbl { iid == &::IID } } -pub trait ITfKeystrokeMgr_Impl: Sized { +pub trait ITfKeystrokeMgr_Impl: Sized + windows_core::IUnknownImpl { fn AdviseKeyEventSink(&self, tid: u32, psink: Option<&ITfKeyEventSink>, fforeground: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn UnadviseKeyEventSink(&self, tid: u32) -> windows_core::Result<()>; fn GetForeground(&self) -> windows_core::Result; @@ -6259,28 +4738,16 @@ pub trait ITfKeystrokeMgr_Impl: Sized { } impl windows_core::RuntimeName for ITfKeystrokeMgr {} impl ITfKeystrokeMgr_Vtbl { - pub const fn new() -> ITfKeystrokeMgr_Vtbl - where - Identity: ITfKeystrokeMgr_Impl, - { - unsafe extern "system" fn AdviseKeyEventSink(this: *mut core::ffi::c_void, tid: u32, psink: *mut core::ffi::c_void, fforeground: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + pub const fn new() -> ITfKeystrokeMgr_Vtbl { + unsafe extern "system" fn AdviseKeyEventSink(this: *mut core::ffi::c_void, tid: u32, psink: *mut core::ffi::c_void, fforeground: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfKeystrokeMgr_Impl::AdviseKeyEventSink(this, core::mem::transmute_copy(&tid), windows_core::from_raw_borrowed(&psink), core::mem::transmute_copy(&fforeground)).into() } - unsafe extern "system" fn UnadviseKeyEventSink(this: *mut core::ffi::c_void, tid: u32) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn UnadviseKeyEventSink(this: *mut core::ffi::c_void, tid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfKeystrokeMgr_Impl::UnadviseKeyEventSink(this, core::mem::transmute_copy(&tid)).into() } - unsafe extern "system" fn GetForeground(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn GetForeground(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::GetForeground(this) { Ok(ok__) => { @@ -6290,10 +4757,7 @@ impl ITfKeystrokeMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TestKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn TestKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::TestKeyDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -6303,10 +4767,7 @@ impl ITfKeystrokeMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TestKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn TestKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::TestKeyUp(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -6316,10 +4777,7 @@ impl ITfKeystrokeMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn KeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::KeyDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -6329,10 +4787,7 @@ impl ITfKeystrokeMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn KeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn KeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::KeyUp(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -6342,10 +4797,7 @@ impl ITfKeystrokeMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPreservedKey(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, pprekey: *const TF_PRESERVEDKEY, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn GetPreservedKey(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, pprekey: *const TF_PRESERVEDKEY, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::GetPreservedKey(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&pprekey)) { Ok(ok__) => { @@ -6355,10 +4807,7 @@ impl ITfKeystrokeMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsPreservedKey(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY, pfregistered: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn IsPreservedKey(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY, pfregistered: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::IsPreservedKey(this, core::mem::transmute_copy(&rguid), core::mem::transmute_copy(&pprekey)) { Ok(ok__) => { @@ -6368,31 +4817,19 @@ impl ITfKeystrokeMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PreserveKey(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 - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn PreserveKey(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfKeystrokeMgr_Impl::PreserveKey(this, core::mem::transmute_copy(&tid), core::mem::transmute_copy(&rguid), core::mem::transmute_copy(&prekey), core::mem::transmute(&pchdesc), core::mem::transmute_copy(&cchdesc)).into() } - unsafe extern "system" fn UnpreserveKey(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn UnpreserveKey(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfKeystrokeMgr_Impl::UnpreserveKey(this, core::mem::transmute_copy(&rguid), core::mem::transmute_copy(&pprekey)).into() } - unsafe extern "system" fn SetPreservedKeyDescription(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pchdesc: windows_core::PCWSTR, cchdesc: u32) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn SetPreservedKeyDescription(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pchdesc: windows_core::PCWSTR, cchdesc: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfKeystrokeMgr_Impl::SetPreservedKeyDescription(this, core::mem::transmute_copy(&rguid), core::mem::transmute(&pchdesc), core::mem::transmute_copy(&cchdesc)).into() } - unsafe extern "system" fn GetPreservedKeyDescription(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pbstrdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn GetPreservedKeyDescription(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pbstrdesc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::GetPreservedKeyDescription(this, core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -6402,10 +4839,7 @@ impl ITfKeystrokeMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SimulatePreservedKey(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 - where - Identity: ITfKeystrokeMgr_Impl, - { + unsafe extern "system" fn SimulatePreservedKey(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::SimulatePreservedKey(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -6437,20 +4871,14 @@ impl ITfKeystrokeMgr_Vtbl { iid == &::IID } } -pub trait ITfLMLattice_Impl: Sized { +pub trait ITfLMLattice_Impl: Sized + windows_core::IUnknownImpl { fn QueryType(&self, rguidtype: *const windows_core::GUID) -> windows_core::Result; fn EnumLatticeElements(&self, dwframestart: u32, rguidtype: *const windows_core::GUID) -> windows_core::Result; } impl windows_core::RuntimeName for ITfLMLattice {} impl ITfLMLattice_Vtbl { - pub const fn new() -> ITfLMLattice_Vtbl - where - Identity: ITfLMLattice_Impl, - { - unsafe extern "system" fn QueryType(this: *mut core::ffi::c_void, rguidtype: *const windows_core::GUID, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfLMLattice_Impl, - { + pub const fn new() -> ITfLMLattice_Vtbl { + unsafe extern "system" fn QueryType(this: *mut core::ffi::c_void, rguidtype: *const windows_core::GUID, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLMLattice_Impl::QueryType(this, core::mem::transmute_copy(&rguidtype)) { Ok(ok__) => { @@ -6460,10 +4888,7 @@ impl ITfLMLattice_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumLatticeElements(this: *mut core::ffi::c_void, dwframestart: u32, rguidtype: *const windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfLMLattice_Impl, - { + unsafe extern "system" fn EnumLatticeElements(this: *mut core::ffi::c_void, dwframestart: u32, rguidtype: *const windows_core::GUID, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLMLattice_Impl::EnumLatticeElements(this, core::mem::transmute_copy(&dwframestart), core::mem::transmute_copy(&rguidtype)) { Ok(ok__) => { @@ -6483,7 +4908,7 @@ impl ITfLMLattice_Vtbl { iid == &::IID } } -pub trait ITfLangBarEventSink_Impl: Sized { +pub trait ITfLangBarEventSink_Impl: Sized + windows_core::IUnknownImpl { fn OnSetFocus(&self, dwthreadid: u32) -> windows_core::Result<()>; fn OnThreadTerminate(&self, dwthreadid: u32) -> windows_core::Result<()>; fn OnThreadItemChange(&self, dwthreadid: u32) -> windows_core::Result<()>; @@ -6493,49 +4918,28 @@ pub trait ITfLangBarEventSink_Impl: Sized { } impl windows_core::RuntimeName for ITfLangBarEventSink {} impl ITfLangBarEventSink_Vtbl { - pub const fn new() -> ITfLangBarEventSink_Vtbl - where - Identity: ITfLangBarEventSink_Impl, - { - unsafe extern "system" fn OnSetFocus(this: *mut core::ffi::c_void, dwthreadid: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarEventSink_Impl, - { + pub const fn new() -> ITfLangBarEventSink_Vtbl { + unsafe extern "system" fn OnSetFocus(this: *mut core::ffi::c_void, dwthreadid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarEventSink_Impl::OnSetFocus(this, core::mem::transmute_copy(&dwthreadid)).into() } - unsafe extern "system" fn OnThreadTerminate(this: *mut core::ffi::c_void, dwthreadid: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarEventSink_Impl, - { + unsafe extern "system" fn OnThreadTerminate(this: *mut core::ffi::c_void, dwthreadid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarEventSink_Impl::OnThreadTerminate(this, core::mem::transmute_copy(&dwthreadid)).into() } - unsafe extern "system" fn OnThreadItemChange(this: *mut core::ffi::c_void, dwthreadid: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarEventSink_Impl, - { + unsafe extern "system" fn OnThreadItemChange(this: *mut core::ffi::c_void, dwthreadid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarEventSink_Impl::OnThreadItemChange(this, core::mem::transmute_copy(&dwthreadid)).into() } - unsafe extern "system" fn OnModalInput(this: *mut core::ffi::c_void, dwthreadid: u32, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT - where - Identity: ITfLangBarEventSink_Impl, - { + unsafe extern "system" fn OnModalInput(this: *mut core::ffi::c_void, dwthreadid: u32, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarEventSink_Impl::OnModalInput(this, core::mem::transmute_copy(&dwthreadid), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } - unsafe extern "system" fn ShowFloating(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarEventSink_Impl, - { + unsafe extern "system" fn ShowFloating(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarEventSink_Impl::ShowFloating(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetItemFloatingRect(this: *mut core::ffi::c_void, dwthreadid: u32, rguid: *const windows_core::GUID, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITfLangBarEventSink_Impl, - { + unsafe extern "system" fn GetItemFloatingRect(this: *mut core::ffi::c_void, dwthreadid: u32, rguid: *const windows_core::GUID, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarEventSink_Impl::GetItemFloatingRect(this, core::mem::transmute_copy(&dwthreadid), core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -6559,7 +4963,7 @@ impl ITfLangBarEventSink_Vtbl { iid == &::IID } } -pub trait ITfLangBarItem_Impl: Sized { +pub trait ITfLangBarItem_Impl: Sized + windows_core::IUnknownImpl { fn GetInfo(&self, pinfo: *mut TF_LANGBARITEMINFO) -> windows_core::Result<()>; fn GetStatus(&self) -> windows_core::Result; fn Show(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -6567,21 +4971,12 @@ pub trait ITfLangBarItem_Impl: Sized { } impl windows_core::RuntimeName for ITfLangBarItem {} impl ITfLangBarItem_Vtbl { - pub const fn new() -> ITfLangBarItem_Vtbl - where - Identity: ITfLangBarItem_Impl, - { - unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pinfo: *mut TF_LANGBARITEMINFO) -> windows_core::HRESULT - where - Identity: ITfLangBarItem_Impl, - { + pub const fn new() -> ITfLangBarItem_Vtbl { + unsafe extern "system" fn GetInfo(this: *mut core::ffi::c_void, pinfo: *mut TF_LANGBARITEMINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItem_Impl::GetInfo(this, core::mem::transmute_copy(&pinfo)).into() } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: ITfLangBarItem_Impl, - { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItem_Impl::GetStatus(this) { Ok(ok__) => { @@ -6591,17 +4986,11 @@ impl ITfLangBarItem_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfLangBarItem_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItem_Impl::Show(this, core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn GetTooltipString(this: *mut core::ffi::c_void, pbstrtooltip: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfLangBarItem_Impl, - { + unsafe extern "system" fn GetTooltipString(this: *mut core::ffi::c_void, pbstrtooltip: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItem_Impl::GetTooltipString(this) { Ok(ok__) => { @@ -6630,21 +5019,12 @@ pub trait ITfLangBarItemBalloon_Impl: Sized + ITfLangBarItem_Impl { } impl windows_core::RuntimeName for ITfLangBarItemBalloon {} impl ITfLangBarItemBalloon_Vtbl { - pub const fn new() -> ITfLangBarItemBalloon_Vtbl - where - Identity: ITfLangBarItemBalloon_Impl, - { - unsafe extern "system" fn OnClick(this: *mut core::ffi::c_void, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITfLangBarItemBalloon_Impl, - { + pub const fn new() -> ITfLangBarItemBalloon_Vtbl { + unsafe extern "system" fn OnClick(this: *mut core::ffi::c_void, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemBalloon_Impl::OnClick(this, core::mem::transmute_copy(&click), core::mem::transmute(&pt), core::mem::transmute_copy(&prcarea)).into() } - unsafe extern "system" fn GetPreferredSize(this: *mut core::ffi::c_void, pszdefault: *const super::super::Foundation::SIZE, psz: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: ITfLangBarItemBalloon_Impl, - { + unsafe extern "system" fn GetPreferredSize(this: *mut core::ffi::c_void, pszdefault: *const super::super::Foundation::SIZE, psz: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemBalloon_Impl::GetPreferredSize(this, core::mem::transmute_copy(&pszdefault)) { Ok(ok__) => { @@ -6654,10 +5034,7 @@ impl ITfLangBarItemBalloon_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBalloonInfo(this: *mut core::ffi::c_void, pinfo: *mut TF_LBBALLOONINFO) -> windows_core::HRESULT - where - Identity: ITfLangBarItemBalloon_Impl, - { + unsafe extern "system" fn GetBalloonInfo(this: *mut core::ffi::c_void, pinfo: *mut TF_LBBALLOONINFO) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemBalloon_Impl::GetBalloonInfo(this) { Ok(ok__) => { @@ -6688,21 +5065,12 @@ pub trait ITfLangBarItemBitmap_Impl: Sized + ITfLangBarItem_Impl { impl windows_core::RuntimeName for ITfLangBarItemBitmap {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ITfLangBarItemBitmap_Vtbl { - pub const fn new() -> ITfLangBarItemBitmap_Vtbl - where - Identity: ITfLangBarItemBitmap_Impl, - { - unsafe extern "system" fn OnClick(this: *mut core::ffi::c_void, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITfLangBarItemBitmap_Impl, - { + pub const fn new() -> ITfLangBarItemBitmap_Vtbl { + unsafe extern "system" fn OnClick(this: *mut core::ffi::c_void, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemBitmap_Impl::OnClick(this, core::mem::transmute_copy(&click), core::mem::transmute(&pt), core::mem::transmute_copy(&prcarea)).into() } - unsafe extern "system" fn GetPreferredSize(this: *mut core::ffi::c_void, pszdefault: *const super::super::Foundation::SIZE, psz: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: ITfLangBarItemBitmap_Impl, - { + unsafe extern "system" fn GetPreferredSize(this: *mut core::ffi::c_void, pszdefault: *const super::super::Foundation::SIZE, psz: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemBitmap_Impl::GetPreferredSize(this, core::mem::transmute_copy(&pszdefault)) { Ok(ok__) => { @@ -6712,10 +5080,7 @@ impl ITfLangBarItemBitmap_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DrawBitmap(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 - where - Identity: ITfLangBarItemBitmap_Impl, - { + unsafe extern "system" fn DrawBitmap(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemBitmap_Impl::DrawBitmap(this, 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() } @@ -6743,35 +5108,20 @@ pub trait ITfLangBarItemBitmapButton_Impl: Sized + ITfLangBarItem_Impl { impl windows_core::RuntimeName for ITfLangBarItemBitmapButton {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ITfLangBarItemBitmapButton_Vtbl { - pub const fn new() -> ITfLangBarItemBitmapButton_Vtbl - where - Identity: ITfLangBarItemBitmapButton_Impl, - { - unsafe extern "system" fn OnClick(this: *mut core::ffi::c_void, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITfLangBarItemBitmapButton_Impl, - { + pub const fn new() -> ITfLangBarItemBitmapButton_Vtbl { + unsafe extern "system" fn OnClick(this: *mut core::ffi::c_void, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemBitmapButton_Impl::OnClick(this, core::mem::transmute_copy(&click), core::mem::transmute(&pt), core::mem::transmute_copy(&prcarea)).into() } - unsafe extern "system" fn InitMenu(this: *mut core::ffi::c_void, pmenu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfLangBarItemBitmapButton_Impl, - { + unsafe extern "system" fn InitMenu(this: *mut core::ffi::c_void, pmenu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemBitmapButton_Impl::InitMenu(this, windows_core::from_raw_borrowed(&pmenu)).into() } - unsafe extern "system" fn OnMenuSelect(this: *mut core::ffi::c_void, wid: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarItemBitmapButton_Impl, - { + unsafe extern "system" fn OnMenuSelect(this: *mut core::ffi::c_void, wid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemBitmapButton_Impl::OnMenuSelect(this, core::mem::transmute_copy(&wid)).into() } - unsafe extern "system" fn GetPreferredSize(this: *mut core::ffi::c_void, pszdefault: *const super::super::Foundation::SIZE, psz: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT - where - Identity: ITfLangBarItemBitmapButton_Impl, - { + unsafe extern "system" fn GetPreferredSize(this: *mut core::ffi::c_void, pszdefault: *const super::super::Foundation::SIZE, psz: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemBitmapButton_Impl::GetPreferredSize(this, core::mem::transmute_copy(&pszdefault)) { Ok(ok__) => { @@ -6781,17 +5131,11 @@ impl ITfLangBarItemBitmapButton_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn DrawBitmap(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 - where - Identity: ITfLangBarItemBitmapButton_Impl, - { + unsafe extern "system" fn DrawBitmap(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 { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemBitmapButton_Impl::DrawBitmap(this, 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(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfLangBarItemBitmapButton_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemBitmapButton_Impl::GetText(this) { Ok(ok__) => { @@ -6827,35 +5171,20 @@ pub trait ITfLangBarItemButton_Impl: Sized + ITfLangBarItem_Impl { impl windows_core::RuntimeName for ITfLangBarItemButton {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ITfLangBarItemButton_Vtbl { - pub const fn new() -> ITfLangBarItemButton_Vtbl - where - Identity: ITfLangBarItemButton_Impl, - { - unsafe extern "system" fn OnClick(this: *mut core::ffi::c_void, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITfLangBarItemButton_Impl, - { + pub const fn new() -> ITfLangBarItemButton_Vtbl { + unsafe extern "system" fn OnClick(this: *mut core::ffi::c_void, click: TfLBIClick, pt: super::super::Foundation::POINT, prcarea: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemButton_Impl::OnClick(this, core::mem::transmute_copy(&click), core::mem::transmute(&pt), core::mem::transmute_copy(&prcarea)).into() } - unsafe extern "system" fn InitMenu(this: *mut core::ffi::c_void, pmenu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfLangBarItemButton_Impl, - { + unsafe extern "system" fn InitMenu(this: *mut core::ffi::c_void, pmenu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemButton_Impl::InitMenu(this, windows_core::from_raw_borrowed(&pmenu)).into() } - unsafe extern "system" fn OnMenuSelect(this: *mut core::ffi::c_void, wid: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarItemButton_Impl, - { + unsafe extern "system" fn OnMenuSelect(this: *mut core::ffi::c_void, wid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemButton_Impl::OnMenuSelect(this, core::mem::transmute_copy(&wid)).into() } - unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, phicon: *mut super::WindowsAndMessaging::HICON) -> windows_core::HRESULT - where - Identity: ITfLangBarItemButton_Impl, - { + unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, phicon: *mut super::WindowsAndMessaging::HICON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemButton_Impl::GetIcon(this) { Ok(ok__) => { @@ -6865,10 +5194,7 @@ impl ITfLangBarItemButton_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfLangBarItemButton_Impl, - { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemButton_Impl::GetText(this) { Ok(ok__) => { @@ -6891,7 +5217,7 @@ impl ITfLangBarItemButton_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfLangBarItemMgr_Impl: Sized { +pub trait ITfLangBarItemMgr_Impl: Sized + windows_core::IUnknownImpl { fn EnumItems(&self) -> windows_core::Result; fn GetItem(&self, rguid: *const windows_core::GUID) -> windows_core::Result; fn AddItem(&self, punk: Option<&ITfLangBarItem>) -> windows_core::Result<()>; @@ -6907,14 +5233,8 @@ pub trait ITfLangBarItemMgr_Impl: Sized { } impl windows_core::RuntimeName for ITfLangBarItemMgr {} impl ITfLangBarItemMgr_Vtbl { - pub const fn new() -> ITfLangBarItemMgr_Vtbl - where - Identity: ITfLangBarItemMgr_Impl, - { - unsafe extern "system" fn EnumItems(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + pub const fn new() -> ITfLangBarItemMgr_Vtbl { + unsafe extern "system" fn EnumItems(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemMgr_Impl::EnumItems(this) { Ok(ok__) => { @@ -6924,10 +5244,7 @@ impl ITfLangBarItemMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn GetItem(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, ppitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemMgr_Impl::GetItem(this, core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -6937,38 +5254,23 @@ impl ITfLangBarItemMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemMgr_Impl::AddItem(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn RemoveItem(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemMgr_Impl::RemoveItem(this, windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn AdviseItemSink(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, pdwcookie: *mut u32, rguiditem: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn AdviseItemSink(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, pdwcookie: *mut u32, rguiditem: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemMgr_Impl::AdviseItemSink(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(&pdwcookie), core::mem::transmute_copy(&rguiditem)).into() } - unsafe extern "system" fn UnadviseItemSink(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn UnadviseItemSink(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemMgr_Impl::UnadviseItemSink(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn GetItemFloatingRect(this: *mut core::ffi::c_void, dwthreadid: u32, rguid: *const windows_core::GUID, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn GetItemFloatingRect(this: *mut core::ffi::c_void, dwthreadid: u32, rguid: *const windows_core::GUID, prc: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemMgr_Impl::GetItemFloatingRect(this, core::mem::transmute_copy(&dwthreadid), core::mem::transmute_copy(&rguid)) { Ok(ok__) => { @@ -6978,17 +5280,11 @@ impl ITfLangBarItemMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItemsStatus(this: *mut core::ffi::c_void, ulcount: u32, prgguid: *const windows_core::GUID, pdwstatus: *mut u32) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn GetItemsStatus(this: *mut core::ffi::c_void, ulcount: u32, prgguid: *const windows_core::GUID, pdwstatus: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemMgr_Impl::GetItemsStatus(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&prgguid), core::mem::transmute_copy(&pdwstatus)).into() } - unsafe extern "system" fn GetItemNum(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn GetItemNum(this: *mut core::ffi::c_void, pulcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarItemMgr_Impl::GetItemNum(this) { Ok(ok__) => { @@ -6998,24 +5294,15 @@ impl ITfLangBarItemMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetItems(this: *mut core::ffi::c_void, ulcount: u32, ppitem: *mut *mut core::ffi::c_void, pinfo: *mut TF_LANGBARITEMINFO, pdwstatus: *mut u32, pcfetched: *mut u32) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn GetItems(this: *mut core::ffi::c_void, ulcount: u32, ppitem: *mut *mut core::ffi::c_void, pinfo: *mut TF_LANGBARITEMINFO, pdwstatus: *mut u32, pcfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemMgr_Impl::GetItems(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&ppitem), core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&pdwstatus), core::mem::transmute_copy(&pcfetched)).into() } - unsafe extern "system" fn AdviseItemsSink(this: *mut core::ffi::c_void, ulcount: u32, ppunk: *const *mut core::ffi::c_void, pguiditem: *const windows_core::GUID, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn AdviseItemsSink(this: *mut core::ffi::c_void, ulcount: u32, ppunk: *const *mut core::ffi::c_void, pguiditem: *const windows_core::GUID, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemMgr_Impl::AdviseItemsSink(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&ppunk), core::mem::transmute_copy(&pguiditem), core::mem::transmute_copy(&pdwcookie)).into() } - unsafe extern "system" fn UnadviseItemsSink(this: *mut core::ffi::c_void, ulcount: u32, pdwcookie: *const u32) -> windows_core::HRESULT - where - Identity: ITfLangBarItemMgr_Impl, - { + unsafe extern "system" fn UnadviseItemsSink(this: *mut core::ffi::c_void, ulcount: u32, pdwcookie: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemMgr_Impl::UnadviseItemsSink(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pdwcookie)).into() } @@ -7039,19 +5326,13 @@ impl ITfLangBarItemMgr_Vtbl { iid == &::IID } } -pub trait ITfLangBarItemSink_Impl: Sized { +pub trait ITfLangBarItemSink_Impl: Sized + windows_core::IUnknownImpl { fn OnUpdate(&self, dwflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfLangBarItemSink {} impl ITfLangBarItemSink_Vtbl { - pub const fn new() -> ITfLangBarItemSink_Vtbl - where - Identity: ITfLangBarItemSink_Impl, - { - unsafe extern "system" fn OnUpdate(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarItemSink_Impl, - { + pub const fn new() -> ITfLangBarItemSink_Vtbl { + unsafe extern "system" fn OnUpdate(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItemSink_Impl::OnUpdate(this, core::mem::transmute_copy(&dwflags)).into() } @@ -7061,7 +5342,7 @@ impl ITfLangBarItemSink_Vtbl { iid == &::IID } } -pub trait ITfLangBarMgr_Impl: Sized { +pub trait ITfLangBarMgr_Impl: Sized + windows_core::IUnknownImpl { fn AdviseEventSink(&self, psink: Option<&ITfLangBarEventSink>, hwnd: super::super::Foundation::HWND, dwflags: u32, pdwcookie: *const u32) -> windows_core::Result<()>; fn UnadviseEventSink(&self, dwcookie: u32) -> windows_core::Result<()>; fn GetThreadMarshalInterface(&self, dwthreadid: u32, dwtype: u32, riid: *const windows_core::GUID) -> windows_core::Result; @@ -7074,28 +5355,16 @@ pub trait ITfLangBarMgr_Impl: Sized { } impl windows_core::RuntimeName for ITfLangBarMgr {} impl ITfLangBarMgr_Vtbl { - pub const fn new() -> ITfLangBarMgr_Vtbl - where - Identity: ITfLangBarMgr_Impl, - { - unsafe extern "system" fn AdviseEventSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, dwflags: u32, pdwcookie: *const u32) -> windows_core::HRESULT - where - Identity: ITfLangBarMgr_Impl, - { + pub const fn new() -> ITfLangBarMgr_Vtbl { + unsafe extern "system" fn AdviseEventSink(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, dwflags: u32, pdwcookie: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarMgr_Impl::AdviseEventSink(this, windows_core::from_raw_borrowed(&psink), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pdwcookie)).into() } - unsafe extern "system" fn UnadviseEventSink(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarMgr_Impl, - { + unsafe extern "system" fn UnadviseEventSink(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarMgr_Impl::UnadviseEventSink(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn GetThreadMarshalInterface(this: *mut core::ffi::c_void, dwthreadid: u32, dwtype: u32, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfLangBarMgr_Impl, - { + unsafe extern "system" fn GetThreadMarshalInterface(this: *mut core::ffi::c_void, dwthreadid: u32, dwtype: u32, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarMgr_Impl::GetThreadMarshalInterface(this, core::mem::transmute_copy(&dwthreadid), core::mem::transmute_copy(&dwtype), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -7105,45 +5374,27 @@ impl ITfLangBarMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetThreadLangBarItemMgr(this: *mut core::ffi::c_void, dwthreadid: u32, pplbi: *mut *mut core::ffi::c_void, pdwthreadid: *mut u32) -> windows_core::HRESULT - where - Identity: ITfLangBarMgr_Impl, - { + unsafe extern "system" fn GetThreadLangBarItemMgr(this: *mut core::ffi::c_void, dwthreadid: u32, pplbi: *mut *mut core::ffi::c_void, pdwthreadid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarMgr_Impl::GetThreadLangBarItemMgr(this, core::mem::transmute_copy(&dwthreadid), core::mem::transmute_copy(&pplbi), core::mem::transmute_copy(&pdwthreadid)).into() } - unsafe extern "system" fn GetInputProcessorProfiles(this: *mut core::ffi::c_void, dwthreadid: u32, ppaip: *mut *mut core::ffi::c_void, pdwthreadid: *mut u32) -> windows_core::HRESULT - where - Identity: ITfLangBarMgr_Impl, - { + unsafe extern "system" fn GetInputProcessorProfiles(this: *mut core::ffi::c_void, dwthreadid: u32, ppaip: *mut *mut core::ffi::c_void, pdwthreadid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarMgr_Impl::GetInputProcessorProfiles(this, core::mem::transmute_copy(&dwthreadid), core::mem::transmute_copy(&ppaip), core::mem::transmute_copy(&pdwthreadid)).into() } - unsafe extern "system" fn RestoreLastFocus(this: *mut core::ffi::c_void, pdwthreadid: *mut u32, fprev: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfLangBarMgr_Impl, - { + unsafe extern "system" fn RestoreLastFocus(this: *mut core::ffi::c_void, pdwthreadid: *mut u32, fprev: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarMgr_Impl::RestoreLastFocus(this, core::mem::transmute_copy(&pdwthreadid), core::mem::transmute_copy(&fprev)).into() } - unsafe extern "system" fn SetModalInput(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, dwthreadid: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarMgr_Impl, - { + unsafe extern "system" fn SetModalInput(this: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, dwthreadid: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarMgr_Impl::SetModalInput(this, windows_core::from_raw_borrowed(&psink), core::mem::transmute_copy(&dwthreadid), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn ShowFloating(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfLangBarMgr_Impl, - { + unsafe extern "system" fn ShowFloating(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarMgr_Impl::ShowFloating(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetShowFloatingStatus(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITfLangBarMgr_Impl, - { + unsafe extern "system" fn GetShowFloatingStatus(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLangBarMgr_Impl::GetShowFloatingStatus(this) { Ok(ok__) => { @@ -7170,20 +5421,14 @@ impl ITfLangBarMgr_Vtbl { iid == &::IID } } -pub trait ITfLanguageProfileNotifySink_Impl: Sized { +pub trait ITfLanguageProfileNotifySink_Impl: Sized + windows_core::IUnknownImpl { fn OnLanguageChange(&self, langid: u16) -> windows_core::Result; fn OnLanguageChanged(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfLanguageProfileNotifySink {} impl ITfLanguageProfileNotifySink_Vtbl { - pub const fn new() -> ITfLanguageProfileNotifySink_Vtbl - where - Identity: ITfLanguageProfileNotifySink_Impl, - { - unsafe extern "system" fn OnLanguageChange(this: *mut core::ffi::c_void, langid: u16, pfaccept: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfLanguageProfileNotifySink_Impl, - { + pub const fn new() -> ITfLanguageProfileNotifySink_Vtbl { + unsafe extern "system" fn OnLanguageChange(this: *mut core::ffi::c_void, langid: u16, pfaccept: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLanguageProfileNotifySink_Impl::OnLanguageChange(this, core::mem::transmute_copy(&langid)) { Ok(ok__) => { @@ -7193,10 +5438,7 @@ impl ITfLanguageProfileNotifySink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnLanguageChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfLanguageProfileNotifySink_Impl, - { + unsafe extern "system" fn OnLanguageChanged(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLanguageProfileNotifySink_Impl::OnLanguageChanged(this).into() } @@ -7210,27 +5452,18 @@ impl ITfLanguageProfileNotifySink_Vtbl { iid == &::IID } } -pub trait ITfMSAAControl_Impl: Sized { +pub trait ITfMSAAControl_Impl: Sized + windows_core::IUnknownImpl { fn SystemEnableMSAA(&self) -> windows_core::Result<()>; fn SystemDisableMSAA(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfMSAAControl {} impl ITfMSAAControl_Vtbl { - pub const fn new() -> ITfMSAAControl_Vtbl - where - Identity: ITfMSAAControl_Impl, - { - unsafe extern "system" fn SystemEnableMSAA(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfMSAAControl_Impl, - { + pub const fn new() -> ITfMSAAControl_Vtbl { + unsafe extern "system" fn SystemEnableMSAA(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMSAAControl_Impl::SystemEnableMSAA(this).into() } - unsafe extern "system" fn SystemDisableMSAA(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfMSAAControl_Impl, - { + unsafe extern "system" fn SystemDisableMSAA(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMSAAControl_Impl::SystemDisableMSAA(this).into() } @@ -7245,21 +5478,15 @@ impl ITfMSAAControl_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait ITfMenu_Impl: Sized { +pub trait ITfMenu_Impl: Sized + windows_core::IUnknownImpl { fn AddMenuItem(&self, uid: u32, dwflags: u32, hbmp: super::super::Graphics::Gdi::HBITMAP, hbmpmask: super::super::Graphics::Gdi::HBITMAP, pch: &windows_core::PCWSTR, cch: u32, ppmenu: *mut Option) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Gdi")] impl windows_core::RuntimeName for ITfMenu {} #[cfg(feature = "Win32_Graphics_Gdi")] impl ITfMenu_Vtbl { - pub const fn new() -> ITfMenu_Vtbl - where - Identity: ITfMenu_Impl, - { - unsafe extern "system" fn AddMenuItem(this: *mut core::ffi::c_void, uid: u32, dwflags: u32, hbmp: super::super::Graphics::Gdi::HBITMAP, hbmpmask: super::super::Graphics::Gdi::HBITMAP, pch: windows_core::PCWSTR, cch: u32, ppmenu: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfMenu_Impl, - { + pub const fn new() -> ITfMenu_Vtbl { + unsafe extern "system" fn AddMenuItem(this: *mut core::ffi::c_void, uid: u32, dwflags: u32, hbmp: super::super::Graphics::Gdi::HBITMAP, hbmpmask: super::super::Graphics::Gdi::HBITMAP, pch: windows_core::PCWSTR, cch: u32, ppmenu: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMenu_Impl::AddMenuItem(this, core::mem::transmute_copy(&uid), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&hbmp), core::mem::transmute_copy(&hbmpmask), core::mem::transmute(&pch), core::mem::transmute_copy(&cch), core::mem::transmute_copy(&ppmenu)).into() } @@ -7270,7 +5497,7 @@ impl ITfMenu_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait ITfMessagePump_Impl: Sized { +pub trait ITfMessagePump_Impl: Sized + windows_core::IUnknownImpl { fn PeekMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn GetMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn PeekMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -7280,35 +5507,20 @@ pub trait ITfMessagePump_Impl: Sized { impl windows_core::RuntimeName for ITfMessagePump {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ITfMessagePump_Vtbl { - pub const fn new() -> ITfMessagePump_Vtbl - where - Identity: ITfMessagePump_Impl, - { - unsafe extern "system" fn PeekMessageA(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfMessagePump_Impl, - { + pub const fn new() -> ITfMessagePump_Vtbl { + unsafe extern "system" fn PeekMessageA(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMessagePump_Impl::PeekMessageA(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&wmsgfiltermin), core::mem::transmute_copy(&wmsgfiltermax), core::mem::transmute_copy(&wremovemsg), core::mem::transmute_copy(&pfresult)).into() } - unsafe extern "system" fn GetMessageA(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfMessagePump_Impl, - { + unsafe extern "system" fn GetMessageA(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMessagePump_Impl::GetMessageA(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&wmsgfiltermin), core::mem::transmute_copy(&wmsgfiltermax), core::mem::transmute_copy(&pfresult)).into() } - unsafe extern "system" fn PeekMessageW(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfMessagePump_Impl, - { + unsafe extern "system" fn PeekMessageW(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMessagePump_Impl::PeekMessageW(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&wmsgfiltermin), core::mem::transmute_copy(&wmsgfiltermax), core::mem::transmute_copy(&wremovemsg), core::mem::transmute_copy(&pfresult)).into() } - unsafe extern "system" fn GetMessageW(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfMessagePump_Impl, - { + unsafe extern "system" fn GetMessageW(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMessagePump_Impl::GetMessageW(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&wmsgfiltermin), core::mem::transmute_copy(&wmsgfiltermax), core::mem::transmute_copy(&pfresult)).into() } @@ -7324,19 +5536,13 @@ impl ITfMessagePump_Vtbl { iid == &::IID } } -pub trait ITfMouseSink_Impl: Sized { +pub trait ITfMouseSink_Impl: Sized + windows_core::IUnknownImpl { fn OnMouseEvent(&self, uedge: u32, uquadrant: u32, dwbtnstatus: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ITfMouseSink {} impl ITfMouseSink_Vtbl { - pub const fn new() -> ITfMouseSink_Vtbl - where - Identity: ITfMouseSink_Impl, - { - unsafe extern "system" fn OnMouseEvent(this: *mut core::ffi::c_void, uedge: u32, uquadrant: u32, dwbtnstatus: u32, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfMouseSink_Impl, - { + pub const fn new() -> ITfMouseSink_Vtbl { + unsafe extern "system" fn OnMouseEvent(this: *mut core::ffi::c_void, uedge: u32, uquadrant: u32, dwbtnstatus: u32, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfMouseSink_Impl::OnMouseEvent(this, core::mem::transmute_copy(&uedge), core::mem::transmute_copy(&uquadrant), core::mem::transmute_copy(&dwbtnstatus)) { Ok(ok__) => { @@ -7352,20 +5558,14 @@ impl ITfMouseSink_Vtbl { iid == &::IID } } -pub trait ITfMouseTracker_Impl: Sized { +pub trait ITfMouseTracker_Impl: Sized + windows_core::IUnknownImpl { fn AdviseMouseSink(&self, range: Option<&ITfRange>, psink: Option<&ITfMouseSink>) -> windows_core::Result; fn UnadviseMouseSink(&self, dwcookie: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfMouseTracker {} impl ITfMouseTracker_Vtbl { - pub const fn new() -> ITfMouseTracker_Vtbl - where - Identity: ITfMouseTracker_Impl, - { - unsafe extern "system" fn AdviseMouseSink(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ITfMouseTracker_Impl, - { + pub const fn new() -> ITfMouseTracker_Vtbl { + unsafe extern "system" fn AdviseMouseSink(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfMouseTracker_Impl::AdviseMouseSink(this, windows_core::from_raw_borrowed(&range), windows_core::from_raw_borrowed(&psink)) { Ok(ok__) => { @@ -7375,10 +5575,7 @@ impl ITfMouseTracker_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnadviseMouseSink(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ITfMouseTracker_Impl, - { + unsafe extern "system" fn UnadviseMouseSink(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMouseTracker_Impl::UnadviseMouseSink(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -7392,20 +5589,14 @@ impl ITfMouseTracker_Vtbl { iid == &::IID } } -pub trait ITfMouseTrackerACP_Impl: Sized { +pub trait ITfMouseTrackerACP_Impl: Sized + windows_core::IUnknownImpl { fn AdviseMouseSink(&self, range: Option<&ITfRangeACP>, psink: Option<&ITfMouseSink>) -> windows_core::Result; fn UnadviseMouseSink(&self, dwcookie: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfMouseTrackerACP {} impl ITfMouseTrackerACP_Vtbl { - pub const fn new() -> ITfMouseTrackerACP_Vtbl - where - Identity: ITfMouseTrackerACP_Impl, - { - unsafe extern "system" fn AdviseMouseSink(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ITfMouseTrackerACP_Impl, - { + pub const fn new() -> ITfMouseTrackerACP_Vtbl { + unsafe extern "system" fn AdviseMouseSink(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, psink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfMouseTrackerACP_Impl::AdviseMouseSink(this, windows_core::from_raw_borrowed(&range), windows_core::from_raw_borrowed(&psink)) { Ok(ok__) => { @@ -7415,10 +5606,7 @@ impl ITfMouseTrackerACP_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnadviseMouseSink(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ITfMouseTrackerACP_Impl, - { + unsafe extern "system" fn UnadviseMouseSink(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMouseTrackerACP_Impl::UnadviseMouseSink(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -7433,21 +5621,15 @@ impl ITfMouseTrackerACP_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITfPersistentPropertyLoaderACP_Impl: Sized { +pub trait ITfPersistentPropertyLoaderACP_Impl: Sized + windows_core::IUnknownImpl { fn LoadProperty(&self, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ITfPersistentPropertyLoaderACP {} #[cfg(feature = "Win32_System_Com")] impl ITfPersistentPropertyLoaderACP_Vtbl { - pub const fn new() -> ITfPersistentPropertyLoaderACP_Vtbl - where - Identity: ITfPersistentPropertyLoaderACP_Impl, - { - unsafe extern "system" fn LoadProperty(this: *mut core::ffi::c_void, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfPersistentPropertyLoaderACP_Impl, - { + pub const fn new() -> ITfPersistentPropertyLoaderACP_Vtbl { + unsafe extern "system" fn LoadProperty(this: *mut core::ffi::c_void, phdr: *const TF_PERSISTENT_PROPERTY_HEADER_ACP, ppstream: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPersistentPropertyLoaderACP_Impl::LoadProperty(this, core::mem::transmute_copy(&phdr)) { Ok(ok__) => { @@ -7463,19 +5645,13 @@ impl ITfPersistentPropertyLoaderACP_Vtbl { iid == &::IID } } -pub trait ITfPreservedKeyNotifySink_Impl: Sized { +pub trait ITfPreservedKeyNotifySink_Impl: Sized + windows_core::IUnknownImpl { fn OnUpdated(&self, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfPreservedKeyNotifySink {} impl ITfPreservedKeyNotifySink_Vtbl { - pub const fn new() -> ITfPreservedKeyNotifySink_Vtbl - where - Identity: ITfPreservedKeyNotifySink_Impl, - { - unsafe extern "system" fn OnUpdated(this: *mut core::ffi::c_void, pprekey: *const TF_PRESERVEDKEY) -> windows_core::HRESULT - where - Identity: ITfPreservedKeyNotifySink_Impl, - { + pub const fn new() -> ITfPreservedKeyNotifySink_Vtbl { + unsafe extern "system" fn OnUpdated(this: *mut core::ffi::c_void, pprekey: *const TF_PRESERVEDKEY) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfPreservedKeyNotifySink_Impl::OnUpdated(this, core::mem::transmute_copy(&pprekey)).into() } @@ -7493,35 +5669,20 @@ pub trait ITfProperty_Impl: Sized + ITfReadOnlyProperty_Impl { } impl windows_core::RuntimeName for ITfProperty {} impl ITfProperty_Vtbl { - pub const fn new() -> ITfProperty_Vtbl - where - Identity: ITfProperty_Impl, - { - unsafe extern "system" fn FindRange(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void, apos: TfAnchor) -> windows_core::HRESULT - where - Identity: ITfProperty_Impl, - { + pub const fn new() -> ITfProperty_Vtbl { + unsafe extern "system" fn FindRange(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, pprange: *mut *mut core::ffi::c_void, apos: TfAnchor) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfProperty_Impl::FindRange(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&pprange), core::mem::transmute_copy(&apos)).into() } - unsafe extern "system" fn SetValueStore(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, ppropstore: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfProperty_Impl, - { + unsafe extern "system" fn SetValueStore(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, ppropstore: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfProperty_Impl::SetValueStore(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&prange), windows_core::from_raw_borrowed(&ppropstore)).into() } - unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfProperty_Impl, - { + unsafe extern "system" fn SetValue(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, pvarvalue: *const core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfProperty_Impl::SetValue(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn Clear(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfProperty_Impl, - { + unsafe extern "system" fn Clear(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfProperty_Impl::Clear(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&prange)).into() } @@ -7538,7 +5699,7 @@ impl ITfProperty_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITfPropertyStore_Impl: Sized { +pub trait ITfPropertyStore_Impl: Sized + windows_core::IUnknownImpl { fn GetType(&self) -> windows_core::Result; fn GetDataType(&self) -> windows_core::Result; fn GetData(&self) -> windows_core::Result; @@ -7553,14 +5714,8 @@ pub trait ITfPropertyStore_Impl: Sized { impl windows_core::RuntimeName for ITfPropertyStore {} #[cfg(feature = "Win32_System_Com")] impl ITfPropertyStore_Vtbl { - pub const fn new() -> ITfPropertyStore_Vtbl - where - Identity: ITfPropertyStore_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfPropertyStore_Impl, - { + pub const fn new() -> ITfPropertyStore_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::GetType(this) { Ok(ok__) => { @@ -7570,10 +5725,7 @@ impl ITfPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDataType(this: *mut core::ffi::c_void, pdwreserved: *mut u32) -> windows_core::HRESULT - where - Identity: ITfPropertyStore_Impl, - { + unsafe extern "system" fn GetDataType(this: *mut core::ffi::c_void, pdwreserved: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::GetDataType(this) { Ok(ok__) => { @@ -7583,10 +5735,7 @@ impl ITfPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfPropertyStore_Impl, - { + unsafe extern "system" fn GetData(this: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::GetData(this) { Ok(ok__) => { @@ -7596,10 +5745,7 @@ impl ITfPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnTextUpdated(this: *mut core::ffi::c_void, dwflags: u32, prangenew: *mut core::ffi::c_void, pfaccept: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfPropertyStore_Impl, - { + unsafe extern "system" fn OnTextUpdated(this: *mut core::ffi::c_void, dwflags: u32, prangenew: *mut core::ffi::c_void, pfaccept: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::OnTextUpdated(this, core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&prangenew)) { Ok(ok__) => { @@ -7609,10 +5755,7 @@ impl ITfPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Shrink(this: *mut core::ffi::c_void, prangenew: *mut core::ffi::c_void, pffree: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfPropertyStore_Impl, - { + unsafe extern "system" fn Shrink(this: *mut core::ffi::c_void, prangenew: *mut core::ffi::c_void, pffree: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::Shrink(this, windows_core::from_raw_borrowed(&prangenew)) { Ok(ok__) => { @@ -7622,10 +5765,7 @@ impl ITfPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Divide(this: *mut core::ffi::c_void, prangethis: *mut core::ffi::c_void, prangenew: *mut core::ffi::c_void, pppropstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfPropertyStore_Impl, - { + unsafe extern "system" fn Divide(this: *mut core::ffi::c_void, prangethis: *mut core::ffi::c_void, prangenew: *mut core::ffi::c_void, pppropstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::Divide(this, windows_core::from_raw_borrowed(&prangethis), windows_core::from_raw_borrowed(&prangenew)) { Ok(ok__) => { @@ -7635,10 +5775,7 @@ impl ITfPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppropstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfPropertyStore_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppropstore: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::Clone(this) { Ok(ok__) => { @@ -7648,10 +5785,7 @@ impl ITfPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyRangeCreator(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfPropertyStore_Impl, - { + unsafe extern "system" fn GetPropertyRangeCreator(this: *mut core::ffi::c_void, pclsid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::GetPropertyRangeCreator(this) { Ok(ok__) => { @@ -7661,10 +5795,7 @@ impl ITfPropertyStore_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT - where - Identity: ITfPropertyStore_Impl, - { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pcb: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::Serialize(this, windows_core::from_raw_borrowed(&pstream)) { Ok(ok__) => { @@ -7692,21 +5823,15 @@ impl ITfPropertyStore_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITfQueryEmbedded_Impl: Sized { +pub trait ITfQueryEmbedded_Impl: Sized + windows_core::IUnknownImpl { fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl windows_core::RuntimeName for ITfQueryEmbedded {} #[cfg(feature = "Win32_System_Com")] impl ITfQueryEmbedded_Vtbl { - pub const fn new() -> ITfQueryEmbedded_Vtbl - where - Identity: ITfQueryEmbedded_Impl, - { - unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfQueryEmbedded_Impl, - { + pub const fn new() -> ITfQueryEmbedded_Vtbl { + unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfQueryEmbedded_Impl::QueryInsertEmbedded(this, core::mem::transmute_copy(&pguidservice), core::mem::transmute_copy(&pformatetc)) { Ok(ok__) => { @@ -7723,7 +5848,7 @@ impl ITfQueryEmbedded_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITfRange_Impl: Sized { +pub trait ITfRange_Impl: Sized + windows_core::IUnknownImpl { fn GetText(&self, ec: u32, dwflags: u32, pchtext: windows_core::PWSTR, cchmax: u32, pcch: *mut u32) -> windows_core::Result<()>; fn SetText(&self, ec: u32, dwflags: u32, pchtext: &windows_core::PCWSTR, cch: i32) -> windows_core::Result<()>; fn GetFormattedText(&self, ec: u32) -> windows_core::Result; @@ -7751,28 +5876,16 @@ pub trait ITfRange_Impl: Sized { impl windows_core::RuntimeName for ITfRange {} #[cfg(feature = "Win32_System_Com")] impl ITfRange_Vtbl { - pub const fn new() -> ITfRange_Vtbl - where - Identity: ITfRange_Impl, - { - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, ec: u32, dwflags: u32, pchtext: windows_core::PWSTR, cchmax: u32, pcch: *mut u32) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + pub const fn new() -> ITfRange_Vtbl { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, ec: u32, dwflags: u32, pchtext: windows_core::PWSTR, cchmax: u32, pcch: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRange_Impl::GetText(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pchtext), core::mem::transmute_copy(&cchmax), core::mem::transmute_copy(&pcch)).into() } - unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, ec: u32, dwflags: u32, pchtext: windows_core::PCWSTR, cch: i32) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn SetText(this: *mut core::ffi::c_void, ec: u32, dwflags: u32, pchtext: windows_core::PCWSTR, cch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRange_Impl::SetText(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pchtext), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn GetFormattedText(this: *mut core::ffi::c_void, ec: u32, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn GetFormattedText(this: *mut core::ffi::c_void, ec: u32, ppdataobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::GetFormattedText(this, core::mem::transmute_copy(&ec)) { Ok(ok__) => { @@ -7782,10 +5895,7 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetEmbedded(this: *mut core::ffi::c_void, ec: u32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn GetEmbedded(this: *mut core::ffi::c_void, ec: u32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::GetEmbedded(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&rguidservice), core::mem::transmute_copy(&riid)) { Ok(ok__) => { @@ -7795,45 +5905,27 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn InsertEmbedded(this: *mut core::ffi::c_void, ec: u32, dwflags: u32, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn InsertEmbedded(this: *mut core::ffi::c_void, ec: u32, dwflags: u32, pdataobject: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRange_Impl::InsertEmbedded(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&pdataobject)).into() } - unsafe extern "system" fn ShiftStart(this: *mut core::ffi::c_void, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn ShiftStart(this: *mut core::ffi::c_void, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRange_Impl::ShiftStart(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&cchreq), core::mem::transmute_copy(&pcch), core::mem::transmute_copy(&phalt)).into() } - unsafe extern "system" fn ShiftEnd(this: *mut core::ffi::c_void, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn ShiftEnd(this: *mut core::ffi::c_void, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRange_Impl::ShiftEnd(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&cchreq), core::mem::transmute_copy(&pcch), core::mem::transmute_copy(&phalt)).into() } - unsafe extern "system" fn ShiftStartToRange(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, apos: TfAnchor) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn ShiftStartToRange(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, apos: TfAnchor) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRange_Impl::ShiftStartToRange(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&apos)).into() } - unsafe extern "system" fn ShiftEndToRange(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, apos: TfAnchor) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn ShiftEndToRange(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, apos: TfAnchor) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRange_Impl::ShiftEndToRange(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&prange), core::mem::transmute_copy(&apos)).into() } - unsafe extern "system" fn ShiftStartRegion(this: *mut core::ffi::c_void, ec: u32, dir: TfShiftDir, pfnoregion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn ShiftStartRegion(this: *mut core::ffi::c_void, ec: u32, dir: TfShiftDir, pfnoregion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::ShiftStartRegion(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&dir)) { Ok(ok__) => { @@ -7843,10 +5935,7 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ShiftEndRegion(this: *mut core::ffi::c_void, ec: u32, dir: TfShiftDir, pfnoregion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn ShiftEndRegion(this: *mut core::ffi::c_void, ec: u32, dir: TfShiftDir, pfnoregion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::ShiftEndRegion(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&dir)) { Ok(ok__) => { @@ -7856,10 +5945,7 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEmpty(this: *mut core::ffi::c_void, ec: u32, pfempty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn IsEmpty(this: *mut core::ffi::c_void, ec: u32, pfempty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::IsEmpty(this, core::mem::transmute_copy(&ec)) { Ok(ok__) => { @@ -7869,17 +5955,11 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Collapse(this: *mut core::ffi::c_void, ec: u32, apos: TfAnchor) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn Collapse(this: *mut core::ffi::c_void, ec: u32, apos: TfAnchor) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRange_Impl::Collapse(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&apos)).into() } - unsafe extern "system" fn IsEqualStart(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn IsEqualStart(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::IsEqualStart(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&pwith), core::mem::transmute_copy(&apos)) { Ok(ok__) => { @@ -7889,10 +5969,7 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEqualEnd(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn IsEqualEnd(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::IsEqualEnd(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&pwith), core::mem::transmute_copy(&apos)) { Ok(ok__) => { @@ -7902,10 +5979,7 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareStart(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, plresult: *mut i32) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn CompareStart(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, plresult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::CompareStart(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&pwith), core::mem::transmute_copy(&apos)) { Ok(ok__) => { @@ -7915,10 +5989,7 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CompareEnd(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, plresult: *mut i32) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn CompareEnd(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, plresult: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::CompareEnd(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&pwith), core::mem::transmute_copy(&apos)) { Ok(ok__) => { @@ -7928,10 +5999,7 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn AdjustForInsert(this: *mut core::ffi::c_void, ec: u32, cchinsert: u32, pfinsertok: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn AdjustForInsert(this: *mut core::ffi::c_void, ec: u32, cchinsert: u32, pfinsertok: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::AdjustForInsert(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&cchinsert)) { Ok(ok__) => { @@ -7941,24 +6009,15 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGravity(this: *mut core::ffi::c_void, pgstart: *mut TfGravity, pgend: *mut TfGravity) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn GetGravity(this: *mut core::ffi::c_void, pgstart: *mut TfGravity, pgend: *mut TfGravity) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRange_Impl::GetGravity(this, core::mem::transmute_copy(&pgstart), core::mem::transmute_copy(&pgend)).into() } - unsafe extern "system" fn SetGravity(this: *mut core::ffi::c_void, ec: u32, gstart: TfGravity, gend: TfGravity) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn SetGravity(this: *mut core::ffi::c_void, ec: u32, gstart: TfGravity, gend: TfGravity) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRange_Impl::SetGravity(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&gstart), core::mem::transmute_copy(&gend)).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppclone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppclone: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::Clone(this) { Ok(ok__) => { @@ -7968,10 +6027,7 @@ impl ITfRange_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfRange_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::GetContext(this) { Ok(ok__) => { @@ -8020,21 +6076,12 @@ pub trait ITfRangeACP_Impl: Sized + ITfRange_Impl { impl windows_core::RuntimeName for ITfRangeACP {} #[cfg(feature = "Win32_System_Com")] impl ITfRangeACP_Vtbl { - pub const fn new() -> ITfRangeACP_Vtbl - where - Identity: ITfRangeACP_Impl, - { - unsafe extern "system" fn GetExtent(this: *mut core::ffi::c_void, pacpanchor: *mut i32, pcch: *mut i32) -> windows_core::HRESULT - where - Identity: ITfRangeACP_Impl, - { + pub const fn new() -> ITfRangeACP_Vtbl { + unsafe extern "system" fn GetExtent(this: *mut core::ffi::c_void, pacpanchor: *mut i32, pcch: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRangeACP_Impl::GetExtent(this, core::mem::transmute_copy(&pacpanchor), core::mem::transmute_copy(&pcch)).into() } - unsafe extern "system" fn SetExtent(this: *mut core::ffi::c_void, acpanchor: i32, cch: i32) -> windows_core::HRESULT - where - Identity: ITfRangeACP_Impl, - { + unsafe extern "system" fn SetExtent(this: *mut core::ffi::c_void, acpanchor: i32, cch: i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRangeACP_Impl::SetExtent(this, core::mem::transmute_copy(&acpanchor), core::mem::transmute_copy(&cch)).into() } @@ -8044,19 +6091,13 @@ impl ITfRangeACP_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfRangeBackup_Impl: Sized { +pub trait ITfRangeBackup_Impl: Sized + windows_core::IUnknownImpl { fn Restore(&self, ec: u32, prange: Option<&ITfRange>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfRangeBackup {} impl ITfRangeBackup_Vtbl { - pub const fn new() -> ITfRangeBackup_Vtbl - where - Identity: ITfRangeBackup_Impl, - { - unsafe extern "system" fn Restore(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfRangeBackup_Impl, - { + pub const fn new() -> ITfRangeBackup_Vtbl { + unsafe extern "system" fn Restore(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfRangeBackup_Impl::Restore(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&prange)).into() } @@ -8066,7 +6107,7 @@ impl ITfRangeBackup_Vtbl { iid == &::IID } } -pub trait ITfReadOnlyProperty_Impl: Sized { +pub trait ITfReadOnlyProperty_Impl: Sized + windows_core::IUnknownImpl { fn GetType(&self) -> windows_core::Result; fn EnumRanges(&self, ec: u32, ppenum: *mut Option, ptargetrange: Option<&ITfRange>) -> windows_core::Result<()>; fn GetValue(&self, ec: u32, prange: Option<&ITfRange>) -> windows_core::Result; @@ -8074,14 +6115,8 @@ pub trait ITfReadOnlyProperty_Impl: Sized { } impl windows_core::RuntimeName for ITfReadOnlyProperty {} impl ITfReadOnlyProperty_Vtbl { - pub const fn new() -> ITfReadOnlyProperty_Vtbl - where - Identity: ITfReadOnlyProperty_Impl, - { - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfReadOnlyProperty_Impl, - { + pub const fn new() -> ITfReadOnlyProperty_Vtbl { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReadOnlyProperty_Impl::GetType(this) { Ok(ok__) => { @@ -8091,17 +6126,11 @@ impl ITfReadOnlyProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumRanges(this: *mut core::ffi::c_void, ec: u32, ppenum: *mut *mut core::ffi::c_void, ptargetrange: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfReadOnlyProperty_Impl, - { + unsafe extern "system" fn EnumRanges(this: *mut core::ffi::c_void, ec: u32, ppenum: *mut *mut core::ffi::c_void, ptargetrange: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfReadOnlyProperty_Impl::EnumRanges(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&ppenum), windows_core::from_raw_borrowed(&ptargetrange)).into() } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfReadOnlyProperty_Impl, - { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, pvarvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReadOnlyProperty_Impl::GetValue(this, core::mem::transmute_copy(&ec), windows_core::from_raw_borrowed(&prange)) { Ok(ok__) => { @@ -8111,10 +6140,7 @@ impl ITfReadOnlyProperty_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfReadOnlyProperty_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReadOnlyProperty_Impl::GetContext(this) { Ok(ok__) => { @@ -8146,14 +6172,8 @@ pub trait ITfReadingInformationUIElement_Impl: Sized + ITfUIElement_Impl { } impl windows_core::RuntimeName for ITfReadingInformationUIElement {} impl ITfReadingInformationUIElement_Vtbl { - pub const fn new() -> ITfReadingInformationUIElement_Vtbl - where - Identity: ITfReadingInformationUIElement_Impl, - { - unsafe extern "system" fn GetUpdatedFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITfReadingInformationUIElement_Impl, - { + pub const fn new() -> ITfReadingInformationUIElement_Vtbl { + unsafe extern "system" fn GetUpdatedFlags(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReadingInformationUIElement_Impl::GetUpdatedFlags(this) { Ok(ok__) => { @@ -8163,10 +6183,7 @@ impl ITfReadingInformationUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, ppic: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfReadingInformationUIElement_Impl, - { + unsafe extern "system" fn GetContext(this: *mut core::ffi::c_void, ppic: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReadingInformationUIElement_Impl::GetContext(this) { Ok(ok__) => { @@ -8176,10 +6193,7 @@ impl ITfReadingInformationUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfReadingInformationUIElement_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReadingInformationUIElement_Impl::GetString(this) { Ok(ok__) => { @@ -8189,10 +6203,7 @@ impl ITfReadingInformationUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetMaxReadingStringLength(this: *mut core::ffi::c_void, pcchmax: *mut u32) -> windows_core::HRESULT - where - Identity: ITfReadingInformationUIElement_Impl, - { + unsafe extern "system" fn GetMaxReadingStringLength(this: *mut core::ffi::c_void, pcchmax: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReadingInformationUIElement_Impl::GetMaxReadingStringLength(this) { Ok(ok__) => { @@ -8202,10 +6213,7 @@ impl ITfReadingInformationUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorIndex(this: *mut core::ffi::c_void, perrorindex: *mut u32) -> windows_core::HRESULT - where - Identity: ITfReadingInformationUIElement_Impl, - { + unsafe extern "system" fn GetErrorIndex(this: *mut core::ffi::c_void, perrorindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReadingInformationUIElement_Impl::GetErrorIndex(this) { Ok(ok__) => { @@ -8215,10 +6223,7 @@ impl ITfReadingInformationUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsVerticalOrderPreferred(this: *mut core::ffi::c_void, pfvertical: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfReadingInformationUIElement_Impl, - { + unsafe extern "system" fn IsVerticalOrderPreferred(this: *mut core::ffi::c_void, pfvertical: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReadingInformationUIElement_Impl::IsVerticalOrderPreferred(this) { Ok(ok__) => { @@ -8242,19 +6247,13 @@ impl ITfReadingInformationUIElement_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfReverseConversion_Impl: Sized { +pub trait ITfReverseConversion_Impl: Sized + windows_core::IUnknownImpl { fn DoReverseConversion(&self, lpstr: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for ITfReverseConversion {} impl ITfReverseConversion_Vtbl { - pub const fn new() -> ITfReverseConversion_Vtbl - where - Identity: ITfReverseConversion_Impl, - { - unsafe extern "system" fn DoReverseConversion(this: *mut core::ffi::c_void, lpstr: windows_core::PCWSTR, pplist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfReverseConversion_Impl, - { + pub const fn new() -> ITfReverseConversion_Vtbl { + unsafe extern "system" fn DoReverseConversion(this: *mut core::ffi::c_void, lpstr: windows_core::PCWSTR, pplist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReverseConversion_Impl::DoReverseConversion(this, core::mem::transmute(&lpstr)) { Ok(ok__) => { @@ -8270,20 +6269,14 @@ impl ITfReverseConversion_Vtbl { iid == &::IID } } -pub trait ITfReverseConversionList_Impl: Sized { +pub trait ITfReverseConversionList_Impl: Sized + windows_core::IUnknownImpl { fn GetLength(&self) -> windows_core::Result; fn GetString(&self, uindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ITfReverseConversionList {} impl ITfReverseConversionList_Vtbl { - pub const fn new() -> ITfReverseConversionList_Vtbl - where - Identity: ITfReverseConversionList_Impl, - { - unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, puindex: *mut u32) -> windows_core::HRESULT - where - Identity: ITfReverseConversionList_Impl, - { + pub const fn new() -> ITfReverseConversionList_Vtbl { + unsafe extern "system" fn GetLength(this: *mut core::ffi::c_void, puindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReverseConversionList_Impl::GetLength(this) { Ok(ok__) => { @@ -8293,10 +6286,7 @@ impl ITfReverseConversionList_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, uindex: u32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfReverseConversionList_Impl, - { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, uindex: u32, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReverseConversionList_Impl::GetString(this, core::mem::transmute_copy(&uindex)) { Ok(ok__) => { @@ -8316,19 +6306,13 @@ impl ITfReverseConversionList_Vtbl { iid == &::IID } } -pub trait ITfReverseConversionMgr_Impl: Sized { +pub trait ITfReverseConversionMgr_Impl: Sized + windows_core::IUnknownImpl { fn GetReverseConversion(&self, langid: u16, guidprofile: *const windows_core::GUID, dwflag: u32) -> windows_core::Result; } impl windows_core::RuntimeName for ITfReverseConversionMgr {} impl ITfReverseConversionMgr_Vtbl { - pub const fn new() -> ITfReverseConversionMgr_Vtbl - where - Identity: ITfReverseConversionMgr_Impl, - { - unsafe extern "system" fn GetReverseConversion(this: *mut core::ffi::c_void, langid: u16, guidprofile: *const windows_core::GUID, dwflag: u32, ppreverseconversion: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfReverseConversionMgr_Impl, - { + pub const fn new() -> ITfReverseConversionMgr_Vtbl { + unsafe extern "system" fn GetReverseConversion(this: *mut core::ffi::c_void, langid: u16, guidprofile: *const windows_core::GUID, dwflag: u32, ppreverseconversion: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReverseConversionMgr_Impl::GetReverseConversion(this, core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&dwflag)) { Ok(ok__) => { @@ -8344,20 +6328,14 @@ impl ITfReverseConversionMgr_Vtbl { iid == &::IID } } -pub trait ITfSource_Impl: Sized { +pub trait ITfSource_Impl: Sized + windows_core::IUnknownImpl { fn AdviseSink(&self, riid: *const windows_core::GUID, punk: Option<&windows_core::IUnknown>) -> windows_core::Result; fn UnadviseSink(&self, dwcookie: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfSource {} impl ITfSource_Vtbl { - pub const fn new() -> ITfSource_Vtbl - where - Identity: ITfSource_Impl, - { - unsafe extern "system" fn AdviseSink(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ITfSource_Impl, - { + pub const fn new() -> ITfSource_Vtbl { + unsafe extern "system" fn AdviseSink(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfSource_Impl::AdviseSink(this, core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk)) { Ok(ok__) => { @@ -8367,10 +6345,7 @@ impl ITfSource_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UnadviseSink(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ITfSource_Impl, - { + unsafe extern "system" fn UnadviseSink(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSource_Impl::UnadviseSink(this, core::mem::transmute_copy(&dwcookie)).into() } @@ -8384,27 +6359,18 @@ impl ITfSource_Vtbl { iid == &::IID } } -pub trait ITfSourceSingle_Impl: Sized { +pub trait ITfSourceSingle_Impl: Sized + windows_core::IUnknownImpl { fn AdviseSingleSink(&self, tid: u32, riid: *const windows_core::GUID, punk: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn UnadviseSingleSink(&self, tid: u32, riid: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfSourceSingle {} impl ITfSourceSingle_Vtbl { - pub const fn new() -> ITfSourceSingle_Vtbl - where - Identity: ITfSourceSingle_Impl, - { - unsafe extern "system" fn AdviseSingleSink(this: *mut core::ffi::c_void, tid: u32, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfSourceSingle_Impl, - { + pub const fn new() -> ITfSourceSingle_Vtbl { + unsafe extern "system" fn AdviseSingleSink(this: *mut core::ffi::c_void, tid: u32, riid: *const windows_core::GUID, punk: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSourceSingle_Impl::AdviseSingleSink(this, core::mem::transmute_copy(&tid), core::mem::transmute_copy(&riid), windows_core::from_raw_borrowed(&punk)).into() } - unsafe extern "system" fn UnadviseSingleSink(this: *mut core::ffi::c_void, tid: u32, riid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfSourceSingle_Impl, - { + unsafe extern "system" fn UnadviseSingleSink(this: *mut core::ffi::c_void, tid: u32, riid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSourceSingle_Impl::UnadviseSingleSink(this, core::mem::transmute_copy(&tid), core::mem::transmute_copy(&riid)).into() } @@ -8418,35 +6384,23 @@ impl ITfSourceSingle_Vtbl { iid == &::IID } } -pub trait ITfSpeechUIServer_Impl: Sized { +pub trait ITfSpeechUIServer_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result<()>; fn ShowUI(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn UpdateBalloon(&self, style: TfLBBalloonStyle, pch: &windows_core::PCWSTR, cch: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfSpeechUIServer {} impl ITfSpeechUIServer_Vtbl { - pub const fn new() -> ITfSpeechUIServer_Vtbl - where - Identity: ITfSpeechUIServer_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfSpeechUIServer_Impl, - { + pub const fn new() -> ITfSpeechUIServer_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSpeechUIServer_Impl::Initialize(this).into() } - unsafe extern "system" fn ShowUI(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfSpeechUIServer_Impl, - { + unsafe extern "system" fn ShowUI(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSpeechUIServer_Impl::ShowUI(this, core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn UpdateBalloon(this: *mut core::ffi::c_void, style: TfLBBalloonStyle, pch: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: ITfSpeechUIServer_Impl, - { + unsafe extern "system" fn UpdateBalloon(this: *mut core::ffi::c_void, style: TfLBBalloonStyle, pch: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSpeechUIServer_Impl::UpdateBalloon(this, core::mem::transmute_copy(&style), core::mem::transmute(&pch), core::mem::transmute_copy(&cch)).into() } @@ -8461,19 +6415,13 @@ impl ITfSpeechUIServer_Vtbl { iid == &::IID } } -pub trait ITfStatusSink_Impl: Sized { +pub trait ITfStatusSink_Impl: Sized + windows_core::IUnknownImpl { fn OnStatusChange(&self, pic: Option<&ITfContext>, dwflags: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfStatusSink {} impl ITfStatusSink_Vtbl { - pub const fn new() -> ITfStatusSink_Vtbl - where - Identity: ITfStatusSink_Impl, - { - unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfStatusSink_Impl, - { + pub const fn new() -> ITfStatusSink_Vtbl { + unsafe extern "system" fn OnStatusChange(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfStatusSink_Impl::OnStatusChange(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&dwflags)).into() } @@ -8483,27 +6431,18 @@ impl ITfStatusSink_Vtbl { iid == &::IID } } -pub trait ITfSystemDeviceTypeLangBarItem_Impl: Sized { +pub trait ITfSystemDeviceTypeLangBarItem_Impl: Sized + windows_core::IUnknownImpl { fn SetIconMode(&self, dwflags: LANG_BAR_ITEM_ICON_MODE_FLAGS) -> windows_core::Result<()>; fn GetIconMode(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITfSystemDeviceTypeLangBarItem {} impl ITfSystemDeviceTypeLangBarItem_Vtbl { - pub const fn new() -> ITfSystemDeviceTypeLangBarItem_Vtbl - where - Identity: ITfSystemDeviceTypeLangBarItem_Impl, - { - unsafe extern "system" fn SetIconMode(this: *mut core::ffi::c_void, dwflags: LANG_BAR_ITEM_ICON_MODE_FLAGS) -> windows_core::HRESULT - where - Identity: ITfSystemDeviceTypeLangBarItem_Impl, - { + pub const fn new() -> ITfSystemDeviceTypeLangBarItem_Vtbl { + unsafe extern "system" fn SetIconMode(this: *mut core::ffi::c_void, dwflags: LANG_BAR_ITEM_ICON_MODE_FLAGS) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSystemDeviceTypeLangBarItem_Impl::SetIconMode(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetIconMode(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITfSystemDeviceTypeLangBarItem_Impl, - { + unsafe extern "system" fn GetIconMode(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfSystemDeviceTypeLangBarItem_Impl::GetIconMode(this) { Ok(ok__) => { @@ -8524,7 +6463,7 @@ impl ITfSystemDeviceTypeLangBarItem_Vtbl { } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub trait ITfSystemLangBarItem_Impl: Sized { +pub trait ITfSystemLangBarItem_Impl: Sized + windows_core::IUnknownImpl { fn SetIcon(&self, hicon: super::WindowsAndMessaging::HICON) -> windows_core::Result<()>; fn SetTooltipString(&self, pchtooltip: &windows_core::PCWSTR, cch: u32) -> windows_core::Result<()>; } @@ -8532,21 +6471,12 @@ pub trait ITfSystemLangBarItem_Impl: Sized { impl windows_core::RuntimeName for ITfSystemLangBarItem {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ITfSystemLangBarItem_Vtbl { - pub const fn new() -> ITfSystemLangBarItem_Vtbl - where - Identity: ITfSystemLangBarItem_Impl, - { - unsafe extern "system" fn SetIcon(this: *mut core::ffi::c_void, hicon: super::WindowsAndMessaging::HICON) -> windows_core::HRESULT - where - Identity: ITfSystemLangBarItem_Impl, - { + pub const fn new() -> ITfSystemLangBarItem_Vtbl { + unsafe extern "system" fn SetIcon(this: *mut core::ffi::c_void, hicon: super::WindowsAndMessaging::HICON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSystemLangBarItem_Impl::SetIcon(this, core::mem::transmute_copy(&hicon)).into() } - unsafe extern "system" fn SetTooltipString(this: *mut core::ffi::c_void, pchtooltip: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: ITfSystemLangBarItem_Impl, - { + unsafe extern "system" fn SetTooltipString(this: *mut core::ffi::c_void, pchtooltip: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSystemLangBarItem_Impl::SetTooltipString(this, core::mem::transmute(&pchtooltip), core::mem::transmute_copy(&cch)).into() } @@ -8560,27 +6490,18 @@ impl ITfSystemLangBarItem_Vtbl { iid == &::IID } } -pub trait ITfSystemLangBarItemSink_Impl: Sized { +pub trait ITfSystemLangBarItemSink_Impl: Sized + windows_core::IUnknownImpl { fn InitMenu(&self, pmenu: Option<&ITfMenu>) -> windows_core::Result<()>; fn OnMenuSelect(&self, wid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfSystemLangBarItemSink {} impl ITfSystemLangBarItemSink_Vtbl { - pub const fn new() -> ITfSystemLangBarItemSink_Vtbl - where - Identity: ITfSystemLangBarItemSink_Impl, - { - unsafe extern "system" fn InitMenu(this: *mut core::ffi::c_void, pmenu: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfSystemLangBarItemSink_Impl, - { + pub const fn new() -> ITfSystemLangBarItemSink_Vtbl { + unsafe extern "system" fn InitMenu(this: *mut core::ffi::c_void, pmenu: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSystemLangBarItemSink_Impl::InitMenu(this, windows_core::from_raw_borrowed(&pmenu)).into() } - unsafe extern "system" fn OnMenuSelect(this: *mut core::ffi::c_void, wid: u32) -> windows_core::HRESULT - where - Identity: ITfSystemLangBarItemSink_Impl, - { + unsafe extern "system" fn OnMenuSelect(this: *mut core::ffi::c_void, wid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSystemLangBarItemSink_Impl::OnMenuSelect(this, core::mem::transmute_copy(&wid)).into() } @@ -8594,27 +6515,18 @@ impl ITfSystemLangBarItemSink_Vtbl { iid == &::IID } } -pub trait ITfSystemLangBarItemText_Impl: Sized { +pub trait ITfSystemLangBarItemText_Impl: Sized + windows_core::IUnknownImpl { fn SetItemText(&self, pch: &windows_core::PCWSTR, cch: u32) -> windows_core::Result<()>; fn GetItemText(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITfSystemLangBarItemText {} impl ITfSystemLangBarItemText_Vtbl { - pub const fn new() -> ITfSystemLangBarItemText_Vtbl - where - Identity: ITfSystemLangBarItemText_Impl, - { - unsafe extern "system" fn SetItemText(this: *mut core::ffi::c_void, pch: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT - where - Identity: ITfSystemLangBarItemText_Impl, - { + pub const fn new() -> ITfSystemLangBarItemText_Vtbl { + unsafe extern "system" fn SetItemText(this: *mut core::ffi::c_void, pch: windows_core::PCWSTR, cch: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSystemLangBarItemText_Impl::SetItemText(this, core::mem::transmute(&pch), core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn GetItemText(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfSystemLangBarItemText_Impl, - { + unsafe extern "system" fn GetItemText(this: *mut core::ffi::c_void, pbstrtext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfSystemLangBarItemText_Impl::GetItemText(this) { Ok(ok__) => { @@ -8634,19 +6546,13 @@ impl ITfSystemLangBarItemText_Vtbl { iid == &::IID } } -pub trait ITfTextEditSink_Impl: Sized { +pub trait ITfTextEditSink_Impl: Sized + windows_core::IUnknownImpl { fn OnEndEdit(&self, pic: Option<&ITfContext>, ecreadonly: u32, peditrecord: Option<&ITfEditRecord>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfTextEditSink {} impl ITfTextEditSink_Vtbl { - pub const fn new() -> ITfTextEditSink_Vtbl - where - Identity: ITfTextEditSink_Impl, - { - unsafe extern "system" fn OnEndEdit(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, ecreadonly: u32, peditrecord: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfTextEditSink_Impl, - { + pub const fn new() -> ITfTextEditSink_Vtbl { + unsafe extern "system" fn OnEndEdit(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, ecreadonly: u32, peditrecord: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfTextEditSink_Impl::OnEndEdit(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&ecreadonly), windows_core::from_raw_borrowed(&peditrecord)).into() } @@ -8656,27 +6562,18 @@ impl ITfTextEditSink_Vtbl { iid == &::IID } } -pub trait ITfTextInputProcessor_Impl: Sized { +pub trait ITfTextInputProcessor_Impl: Sized + windows_core::IUnknownImpl { fn Activate(&self, ptim: Option<&ITfThreadMgr>, tid: u32) -> windows_core::Result<()>; fn Deactivate(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfTextInputProcessor {} impl ITfTextInputProcessor_Vtbl { - pub const fn new() -> ITfTextInputProcessor_Vtbl - where - Identity: ITfTextInputProcessor_Impl, - { - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, ptim: *mut core::ffi::c_void, tid: u32) -> windows_core::HRESULT - where - Identity: ITfTextInputProcessor_Impl, - { + pub const fn new() -> ITfTextInputProcessor_Vtbl { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, ptim: *mut core::ffi::c_void, tid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfTextInputProcessor_Impl::Activate(this, windows_core::from_raw_borrowed(&ptim), core::mem::transmute_copy(&tid)).into() } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfTextInputProcessor_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfTextInputProcessor_Impl::Deactivate(this).into() } @@ -8695,14 +6592,8 @@ pub trait ITfTextInputProcessorEx_Impl: Sized + ITfTextInputProcessor_Impl { } impl windows_core::RuntimeName for ITfTextInputProcessorEx {} impl ITfTextInputProcessorEx_Vtbl { - pub const fn new() -> ITfTextInputProcessorEx_Vtbl - where - Identity: ITfTextInputProcessorEx_Impl, - { - unsafe extern "system" fn ActivateEx(this: *mut core::ffi::c_void, ptim: *mut core::ffi::c_void, tid: u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfTextInputProcessorEx_Impl, - { + pub const fn new() -> ITfTextInputProcessorEx_Vtbl { + unsafe extern "system" fn ActivateEx(this: *mut core::ffi::c_void, ptim: *mut core::ffi::c_void, tid: u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfTextInputProcessorEx_Impl::ActivateEx(this, windows_core::from_raw_borrowed(&ptim), core::mem::transmute_copy(&tid), core::mem::transmute_copy(&dwflags)).into() } @@ -8712,19 +6603,13 @@ impl ITfTextInputProcessorEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfTextLayoutSink_Impl: Sized { +pub trait ITfTextLayoutSink_Impl: Sized + windows_core::IUnknownImpl { fn OnLayoutChange(&self, pic: Option<&ITfContext>, lcode: TfLayoutCode, pview: Option<&ITfContextView>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfTextLayoutSink {} impl ITfTextLayoutSink_Vtbl { - pub const fn new() -> ITfTextLayoutSink_Vtbl - where - Identity: ITfTextLayoutSink_Impl, - { - unsafe extern "system" fn OnLayoutChange(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, lcode: TfLayoutCode, pview: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfTextLayoutSink_Impl, - { + pub const fn new() -> ITfTextLayoutSink_Vtbl { + unsafe extern "system" fn OnLayoutChange(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, lcode: TfLayoutCode, pview: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfTextLayoutSink_Impl::OnLayoutChange(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&lcode), windows_core::from_raw_borrowed(&pview)).into() } @@ -8734,27 +6619,18 @@ impl ITfTextLayoutSink_Vtbl { iid == &::IID } } -pub trait ITfThreadFocusSink_Impl: Sized { +pub trait ITfThreadFocusSink_Impl: Sized + windows_core::IUnknownImpl { fn OnSetThreadFocus(&self) -> windows_core::Result<()>; fn OnKillThreadFocus(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfThreadFocusSink {} impl ITfThreadFocusSink_Vtbl { - pub const fn new() -> ITfThreadFocusSink_Vtbl - where - Identity: ITfThreadFocusSink_Impl, - { - unsafe extern "system" fn OnSetThreadFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadFocusSink_Impl, - { + pub const fn new() -> ITfThreadFocusSink_Vtbl { + unsafe extern "system" fn OnSetThreadFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadFocusSink_Impl::OnSetThreadFocus(this).into() } - unsafe extern "system" fn OnKillThreadFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadFocusSink_Impl, - { + unsafe extern "system" fn OnKillThreadFocus(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadFocusSink_Impl::OnKillThreadFocus(this).into() } @@ -8768,7 +6644,7 @@ impl ITfThreadFocusSink_Vtbl { iid == &::IID } } -pub trait ITfThreadMgr_Impl: Sized { +pub trait ITfThreadMgr_Impl: Sized + windows_core::IUnknownImpl { fn Activate(&self) -> windows_core::Result; fn Deactivate(&self) -> windows_core::Result<()>; fn CreateDocumentMgr(&self) -> windows_core::Result; @@ -8783,14 +6659,8 @@ pub trait ITfThreadMgr_Impl: Sized { } impl windows_core::RuntimeName for ITfThreadMgr {} impl ITfThreadMgr_Vtbl { - pub const fn new() -> ITfThreadMgr_Vtbl - where - Identity: ITfThreadMgr_Impl, - { - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, ptid: *mut u32) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + pub const fn new() -> ITfThreadMgr_Vtbl { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, ptid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr_Impl::Activate(this) { Ok(ok__) => { @@ -8800,17 +6670,11 @@ impl ITfThreadMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgr_Impl::Deactivate(this).into() } - unsafe extern "system" fn CreateDocumentMgr(this: *mut core::ffi::c_void, ppdim: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + unsafe extern "system" fn CreateDocumentMgr(this: *mut core::ffi::c_void, ppdim: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr_Impl::CreateDocumentMgr(this) { Ok(ok__) => { @@ -8820,10 +6684,7 @@ impl ITfThreadMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDocumentMgrs(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + unsafe extern "system" fn EnumDocumentMgrs(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr_Impl::EnumDocumentMgrs(this) { Ok(ok__) => { @@ -8833,10 +6694,7 @@ impl ITfThreadMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFocus(this: *mut core::ffi::c_void, ppdimfocus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + unsafe extern "system" fn GetFocus(this: *mut core::ffi::c_void, ppdimfocus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr_Impl::GetFocus(this) { Ok(ok__) => { @@ -8846,17 +6704,11 @@ impl ITfThreadMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void, pdimfocus: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void, pdimfocus: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgr_Impl::SetFocus(this, windows_core::from_raw_borrowed(&pdimfocus)).into() } - unsafe extern "system" fn AssociateFocus(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pdimnew: *mut core::ffi::c_void, ppdimprev: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + unsafe extern "system" fn AssociateFocus(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pdimnew: *mut core::ffi::c_void, ppdimprev: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr_Impl::AssociateFocus(this, core::mem::transmute_copy(&hwnd), windows_core::from_raw_borrowed(&pdimnew)) { Ok(ok__) => { @@ -8866,10 +6718,7 @@ impl ITfThreadMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsThreadFocus(this: *mut core::ffi::c_void, pfthreadfocus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + unsafe extern "system" fn IsThreadFocus(this: *mut core::ffi::c_void, pfthreadfocus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr_Impl::IsThreadFocus(this) { Ok(ok__) => { @@ -8879,10 +6728,7 @@ impl ITfThreadMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionProvider(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, ppfuncprov: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + unsafe extern "system" fn GetFunctionProvider(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, ppfuncprov: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr_Impl::GetFunctionProvider(this, core::mem::transmute_copy(&clsid)) { Ok(ok__) => { @@ -8892,10 +6738,7 @@ impl ITfThreadMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumFunctionProviders(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + unsafe extern "system" fn EnumFunctionProviders(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr_Impl::EnumFunctionProviders(this) { Ok(ok__) => { @@ -8905,10 +6748,7 @@ impl ITfThreadMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGlobalCompartment(this: *mut core::ffi::c_void, ppcompmgr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr_Impl, - { + unsafe extern "system" fn GetGlobalCompartment(this: *mut core::ffi::c_void, ppcompmgr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr_Impl::GetGlobalCompartment(this) { Ok(ok__) => { @@ -8937,7 +6777,7 @@ impl ITfThreadMgr_Vtbl { iid == &::IID } } -pub trait ITfThreadMgr2_Impl: Sized { +pub trait ITfThreadMgr2_Impl: Sized + windows_core::IUnknownImpl { fn Activate(&self) -> windows_core::Result; fn Deactivate(&self) -> windows_core::Result<()>; fn CreateDocumentMgr(&self) -> windows_core::Result; @@ -8955,14 +6795,8 @@ pub trait ITfThreadMgr2_Impl: Sized { } impl windows_core::RuntimeName for ITfThreadMgr2 {} impl ITfThreadMgr2_Vtbl { - pub const fn new() -> ITfThreadMgr2_Vtbl - where - Identity: ITfThreadMgr2_Impl, - { - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, ptid: *mut u32) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + pub const fn new() -> ITfThreadMgr2_Vtbl { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, ptid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr2_Impl::Activate(this) { Ok(ok__) => { @@ -8972,17 +6806,11 @@ impl ITfThreadMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn Deactivate(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgr2_Impl::Deactivate(this).into() } - unsafe extern "system" fn CreateDocumentMgr(this: *mut core::ffi::c_void, ppdim: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn CreateDocumentMgr(this: *mut core::ffi::c_void, ppdim: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr2_Impl::CreateDocumentMgr(this) { Ok(ok__) => { @@ -8992,10 +6820,7 @@ impl ITfThreadMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumDocumentMgrs(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn EnumDocumentMgrs(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr2_Impl::EnumDocumentMgrs(this) { Ok(ok__) => { @@ -9005,10 +6830,7 @@ impl ITfThreadMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFocus(this: *mut core::ffi::c_void, ppdimfocus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn GetFocus(this: *mut core::ffi::c_void, ppdimfocus: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr2_Impl::GetFocus(this) { Ok(ok__) => { @@ -9018,17 +6840,11 @@ impl ITfThreadMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void, pdimfocus: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void, pdimfocus: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgr2_Impl::SetFocus(this, windows_core::from_raw_borrowed(&pdimfocus)).into() } - unsafe extern "system" fn IsThreadFocus(this: *mut core::ffi::c_void, pfthreadfocus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn IsThreadFocus(this: *mut core::ffi::c_void, pfthreadfocus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr2_Impl::IsThreadFocus(this) { Ok(ok__) => { @@ -9038,10 +6854,7 @@ impl ITfThreadMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFunctionProvider(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, ppfuncprov: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn GetFunctionProvider(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, ppfuncprov: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr2_Impl::GetFunctionProvider(this, core::mem::transmute_copy(&clsid)) { Ok(ok__) => { @@ -9051,10 +6864,7 @@ impl ITfThreadMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumFunctionProviders(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn EnumFunctionProviders(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr2_Impl::EnumFunctionProviders(this) { Ok(ok__) => { @@ -9064,10 +6874,7 @@ impl ITfThreadMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGlobalCompartment(this: *mut core::ffi::c_void, ppcompmgr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn GetGlobalCompartment(this: *mut core::ffi::c_void, ppcompmgr: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr2_Impl::GetGlobalCompartment(this) { Ok(ok__) => { @@ -9077,17 +6884,11 @@ impl ITfThreadMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn ActivateEx(this: *mut core::ffi::c_void, ptid: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn ActivateEx(this: *mut core::ffi::c_void, ptid: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgr2_Impl::ActivateEx(this, core::mem::transmute_copy(&ptid), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetActiveFlags(this: *mut core::ffi::c_void, lpdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn GetActiveFlags(this: *mut core::ffi::c_void, lpdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr2_Impl::GetActiveFlags(this) { Ok(ok__) => { @@ -9097,17 +6898,11 @@ impl ITfThreadMgr2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SuspendKeystrokeHandling(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn SuspendKeystrokeHandling(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgr2_Impl::SuspendKeystrokeHandling(this).into() } - unsafe extern "system" fn ResumeKeystrokeHandling(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgr2_Impl, - { + unsafe extern "system" fn ResumeKeystrokeHandling(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgr2_Impl::ResumeKeystrokeHandling(this).into() } @@ -9133,7 +6928,7 @@ impl ITfThreadMgr2_Vtbl { iid == &::IID } } -pub trait ITfThreadMgrEventSink_Impl: Sized { +pub trait ITfThreadMgrEventSink_Impl: Sized + windows_core::IUnknownImpl { fn OnInitDocumentMgr(&self, pdim: Option<&ITfDocumentMgr>) -> windows_core::Result<()>; fn OnUninitDocumentMgr(&self, pdim: Option<&ITfDocumentMgr>) -> windows_core::Result<()>; fn OnSetFocus(&self, pdimfocus: Option<&ITfDocumentMgr>, pdimprevfocus: Option<&ITfDocumentMgr>) -> windows_core::Result<()>; @@ -9142,42 +6937,24 @@ pub trait ITfThreadMgrEventSink_Impl: Sized { } impl windows_core::RuntimeName for ITfThreadMgrEventSink {} impl ITfThreadMgrEventSink_Vtbl { - pub const fn new() -> ITfThreadMgrEventSink_Vtbl - where - Identity: ITfThreadMgrEventSink_Impl, - { - unsafe extern "system" fn OnInitDocumentMgr(this: *mut core::ffi::c_void, pdim: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgrEventSink_Impl, - { + pub const fn new() -> ITfThreadMgrEventSink_Vtbl { + unsafe extern "system" fn OnInitDocumentMgr(this: *mut core::ffi::c_void, pdim: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgrEventSink_Impl::OnInitDocumentMgr(this, windows_core::from_raw_borrowed(&pdim)).into() } - unsafe extern "system" fn OnUninitDocumentMgr(this: *mut core::ffi::c_void, pdim: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgrEventSink_Impl, - { + unsafe extern "system" fn OnUninitDocumentMgr(this: *mut core::ffi::c_void, pdim: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgrEventSink_Impl::OnUninitDocumentMgr(this, windows_core::from_raw_borrowed(&pdim)).into() } - unsafe extern "system" fn OnSetFocus(this: *mut core::ffi::c_void, pdimfocus: *mut core::ffi::c_void, pdimprevfocus: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgrEventSink_Impl, - { + unsafe extern "system" fn OnSetFocus(this: *mut core::ffi::c_void, pdimfocus: *mut core::ffi::c_void, pdimprevfocus: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgrEventSink_Impl::OnSetFocus(this, windows_core::from_raw_borrowed(&pdimfocus), windows_core::from_raw_borrowed(&pdimprevfocus)).into() } - unsafe extern "system" fn OnPushContext(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgrEventSink_Impl, - { + unsafe extern "system" fn OnPushContext(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgrEventSink_Impl::OnPushContext(this, windows_core::from_raw_borrowed(&pic)).into() } - unsafe extern "system" fn OnPopContext(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfThreadMgrEventSink_Impl, - { + unsafe extern "system" fn OnPopContext(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgrEventSink_Impl::OnPopContext(this, windows_core::from_raw_borrowed(&pic)).into() } @@ -9200,21 +6977,12 @@ pub trait ITfThreadMgrEx_Impl: Sized + ITfThreadMgr_Impl { } impl windows_core::RuntimeName for ITfThreadMgrEx {} impl ITfThreadMgrEx_Vtbl { - pub const fn new() -> ITfThreadMgrEx_Vtbl - where - Identity: ITfThreadMgrEx_Impl, - { - unsafe extern "system" fn ActivateEx(this: *mut core::ffi::c_void, ptid: *mut u32, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITfThreadMgrEx_Impl, - { + pub const fn new() -> ITfThreadMgrEx_Vtbl { + unsafe extern "system" fn ActivateEx(this: *mut core::ffi::c_void, ptid: *mut u32, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfThreadMgrEx_Impl::ActivateEx(this, core::mem::transmute_copy(&ptid), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetActiveFlags(this: *mut core::ffi::c_void, lpdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITfThreadMgrEx_Impl, - { + unsafe extern "system" fn GetActiveFlags(this: *mut core::ffi::c_void, lpdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgrEx_Impl::GetActiveFlags(this) { Ok(ok__) => { @@ -9239,14 +7007,8 @@ pub trait ITfToolTipUIElement_Impl: Sized + ITfUIElement_Impl { } impl windows_core::RuntimeName for ITfToolTipUIElement {} impl ITfToolTipUIElement_Vtbl { - pub const fn new() -> ITfToolTipUIElement_Vtbl - where - Identity: ITfToolTipUIElement_Impl, - { - unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfToolTipUIElement_Impl, - { + pub const fn new() -> ITfToolTipUIElement_Vtbl { + unsafe extern "system" fn GetString(this: *mut core::ffi::c_void, pstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfToolTipUIElement_Impl::GetString(this) { Ok(ok__) => { @@ -9262,19 +7024,13 @@ impl ITfToolTipUIElement_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfTransitoryExtensionSink_Impl: Sized { +pub trait ITfTransitoryExtensionSink_Impl: Sized + windows_core::IUnknownImpl { fn OnTransitoryExtensionUpdated(&self, pic: Option<&ITfContext>, ecreadonly: u32, presultrange: Option<&ITfRange>, pcompositionrange: Option<&ITfRange>) -> windows_core::Result; } impl windows_core::RuntimeName for ITfTransitoryExtensionSink {} impl ITfTransitoryExtensionSink_Vtbl { - pub const fn new() -> ITfTransitoryExtensionSink_Vtbl - where - Identity: ITfTransitoryExtensionSink_Impl, - { - unsafe extern "system" fn OnTransitoryExtensionUpdated(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, ecreadonly: u32, presultrange: *mut core::ffi::c_void, pcompositionrange: *mut core::ffi::c_void, pfdeleteresultrange: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfTransitoryExtensionSink_Impl, - { + pub const fn new() -> ITfTransitoryExtensionSink_Vtbl { + unsafe extern "system" fn OnTransitoryExtensionUpdated(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, ecreadonly: u32, presultrange: *mut core::ffi::c_void, pcompositionrange: *mut core::ffi::c_void, pfdeleteresultrange: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfTransitoryExtensionSink_Impl::OnTransitoryExtensionUpdated(this, windows_core::from_raw_borrowed(&pic), core::mem::transmute_copy(&ecreadonly), windows_core::from_raw_borrowed(&presultrange), windows_core::from_raw_borrowed(&pcompositionrange)) { Ok(ok__) => { @@ -9295,14 +7051,8 @@ pub trait ITfTransitoryExtensionUIElement_Impl: Sized + ITfUIElement_Impl { } impl windows_core::RuntimeName for ITfTransitoryExtensionUIElement {} impl ITfTransitoryExtensionUIElement_Vtbl { - pub const fn new() -> ITfTransitoryExtensionUIElement_Vtbl - where - Identity: ITfTransitoryExtensionUIElement_Impl, - { - unsafe extern "system" fn GetDocumentMgr(this: *mut core::ffi::c_void, ppdim: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfTransitoryExtensionUIElement_Impl, - { + pub const fn new() -> ITfTransitoryExtensionUIElement_Vtbl { + unsafe extern "system" fn GetDocumentMgr(this: *mut core::ffi::c_void, ppdim: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfTransitoryExtensionUIElement_Impl::GetDocumentMgr(this) { Ok(ok__) => { @@ -9318,7 +7068,7 @@ impl ITfTransitoryExtensionUIElement_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITfUIElement_Impl: Sized { +pub trait ITfUIElement_Impl: Sized + windows_core::IUnknownImpl { fn GetDescription(&self) -> windows_core::Result; fn GetGUID(&self) -> windows_core::Result; fn Show(&self, bshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -9326,14 +7076,8 @@ pub trait ITfUIElement_Impl: Sized { } impl windows_core::RuntimeName for ITfUIElement {} impl ITfUIElement_Vtbl { - pub const fn new() -> ITfUIElement_Vtbl - where - Identity: ITfUIElement_Impl, - { - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITfUIElement_Impl, - { + pub const fn new() -> ITfUIElement_Vtbl { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfUIElement_Impl::GetDescription(this) { Ok(ok__) => { @@ -9343,10 +7087,7 @@ impl ITfUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: ITfUIElement_Impl, - { + unsafe extern "system" fn GetGUID(this: *mut core::ffi::c_void, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfUIElement_Impl::GetGUID(this) { Ok(ok__) => { @@ -9356,17 +7097,11 @@ impl ITfUIElement_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, bshow: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfUIElement_Impl, - { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, bshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfUIElement_Impl::Show(this, core::mem::transmute_copy(&bshow)).into() } - unsafe extern "system" fn IsShown(this: *mut core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfUIElement_Impl, - { + unsafe extern "system" fn IsShown(this: *mut core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfUIElement_Impl::IsShown(this) { Ok(ok__) => { @@ -9388,7 +7123,7 @@ impl ITfUIElement_Vtbl { iid == &::IID } } -pub trait ITfUIElementMgr_Impl: Sized { +pub trait ITfUIElementMgr_Impl: Sized + windows_core::IUnknownImpl { fn BeginUIElement(&self, pelement: Option<&ITfUIElement>, pbshow: *mut super::super::Foundation::BOOL, pdwuielementid: *mut u32) -> windows_core::Result<()>; fn UpdateUIElement(&self, dwuielementid: u32) -> windows_core::Result<()>; fn EndUIElement(&self, dwuielementid: u32) -> windows_core::Result<()>; @@ -9397,35 +7132,20 @@ pub trait ITfUIElementMgr_Impl: Sized { } impl windows_core::RuntimeName for ITfUIElementMgr {} impl ITfUIElementMgr_Vtbl { - pub const fn new() -> ITfUIElementMgr_Vtbl - where - Identity: ITfUIElementMgr_Impl, - { - unsafe extern "system" fn BeginUIElement(this: *mut core::ffi::c_void, pelement: *mut core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL, pdwuielementid: *mut u32) -> windows_core::HRESULT - where - Identity: ITfUIElementMgr_Impl, - { + pub const fn new() -> ITfUIElementMgr_Vtbl { + unsafe extern "system" fn BeginUIElement(this: *mut core::ffi::c_void, pelement: *mut core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL, pdwuielementid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfUIElementMgr_Impl::BeginUIElement(this, windows_core::from_raw_borrowed(&pelement), core::mem::transmute_copy(&pbshow), core::mem::transmute_copy(&pdwuielementid)).into() } - unsafe extern "system" fn UpdateUIElement(this: *mut core::ffi::c_void, dwuielementid: u32) -> windows_core::HRESULT - where - Identity: ITfUIElementMgr_Impl, - { + unsafe extern "system" fn UpdateUIElement(this: *mut core::ffi::c_void, dwuielementid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfUIElementMgr_Impl::UpdateUIElement(this, core::mem::transmute_copy(&dwuielementid)).into() } - unsafe extern "system" fn EndUIElement(this: *mut core::ffi::c_void, dwuielementid: u32) -> windows_core::HRESULT - where - Identity: ITfUIElementMgr_Impl, - { + unsafe extern "system" fn EndUIElement(this: *mut core::ffi::c_void, dwuielementid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfUIElementMgr_Impl::EndUIElement(this, core::mem::transmute_copy(&dwuielementid)).into() } - unsafe extern "system" fn GetUIElement(this: *mut core::ffi::c_void, dwuielementid: u32, ppelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfUIElementMgr_Impl, - { + unsafe extern "system" fn GetUIElement(this: *mut core::ffi::c_void, dwuielementid: u32, ppelement: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfUIElementMgr_Impl::GetUIElement(this, core::mem::transmute_copy(&dwuielementid)) { Ok(ok__) => { @@ -9435,10 +7155,7 @@ impl ITfUIElementMgr_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn EnumUIElements(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITfUIElementMgr_Impl, - { + unsafe extern "system" fn EnumUIElements(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfUIElementMgr_Impl::EnumUIElements(this) { Ok(ok__) => { @@ -9461,35 +7178,23 @@ impl ITfUIElementMgr_Vtbl { iid == &::IID } } -pub trait ITfUIElementSink_Impl: Sized { +pub trait ITfUIElementSink_Impl: Sized + windows_core::IUnknownImpl { fn BeginUIElement(&self, dwuielementid: u32, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; fn UpdateUIElement(&self, dwuielementid: u32) -> windows_core::Result<()>; fn EndUIElement(&self, dwuielementid: u32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITfUIElementSink {} impl ITfUIElementSink_Vtbl { - pub const fn new() -> ITfUIElementSink_Vtbl - where - Identity: ITfUIElementSink_Impl, - { - unsafe extern "system" fn BeginUIElement(this: *mut core::ffi::c_void, dwuielementid: u32, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITfUIElementSink_Impl, - { + pub const fn new() -> ITfUIElementSink_Vtbl { + unsafe extern "system" fn BeginUIElement(this: *mut core::ffi::c_void, dwuielementid: u32, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfUIElementSink_Impl::BeginUIElement(this, core::mem::transmute_copy(&dwuielementid), core::mem::transmute_copy(&pbshow)).into() } - unsafe extern "system" fn UpdateUIElement(this: *mut core::ffi::c_void, dwuielementid: u32) -> windows_core::HRESULT - where - Identity: ITfUIElementSink_Impl, - { + unsafe extern "system" fn UpdateUIElement(this: *mut core::ffi::c_void, dwuielementid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfUIElementSink_Impl::UpdateUIElement(this, core::mem::transmute_copy(&dwuielementid)).into() } - unsafe extern "system" fn EndUIElement(this: *mut core::ffi::c_void, dwuielementid: u32) -> windows_core::HRESULT - where - Identity: ITfUIElementSink_Impl, - { + unsafe extern "system" fn EndUIElement(this: *mut core::ffi::c_void, dwuielementid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfUIElementSink_Impl::EndUIElement(this, core::mem::transmute_copy(&dwuielementid)).into() } @@ -9504,7 +7209,7 @@ impl ITfUIElementSink_Vtbl { iid == &::IID } } -pub trait IUIManagerEventSink_Impl: Sized { +pub trait IUIManagerEventSink_Impl: Sized + windows_core::IUnknownImpl { fn OnWindowOpening(&self, prcbounds: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn OnWindowOpened(&self, prcbounds: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn OnWindowUpdating(&self, prcupdatedbounds: *const super::super::Foundation::RECT) -> windows_core::Result<()>; @@ -9514,49 +7219,28 @@ pub trait IUIManagerEventSink_Impl: Sized { } impl windows_core::RuntimeName for IUIManagerEventSink {} impl IUIManagerEventSink_Vtbl { - pub const fn new() -> IUIManagerEventSink_Vtbl - where - Identity: IUIManagerEventSink_Impl, - { - unsafe extern "system" fn OnWindowOpening(this: *mut core::ffi::c_void, prcbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IUIManagerEventSink_Impl, - { + pub const fn new() -> IUIManagerEventSink_Vtbl { + unsafe extern "system" fn OnWindowOpening(this: *mut core::ffi::c_void, prcbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIManagerEventSink_Impl::OnWindowOpening(this, core::mem::transmute_copy(&prcbounds)).into() } - unsafe extern "system" fn OnWindowOpened(this: *mut core::ffi::c_void, prcbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IUIManagerEventSink_Impl, - { + unsafe extern "system" fn OnWindowOpened(this: *mut core::ffi::c_void, prcbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIManagerEventSink_Impl::OnWindowOpened(this, core::mem::transmute_copy(&prcbounds)).into() } - unsafe extern "system" fn OnWindowUpdating(this: *mut core::ffi::c_void, prcupdatedbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IUIManagerEventSink_Impl, - { + unsafe extern "system" fn OnWindowUpdating(this: *mut core::ffi::c_void, prcupdatedbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIManagerEventSink_Impl::OnWindowUpdating(this, core::mem::transmute_copy(&prcupdatedbounds)).into() } - unsafe extern "system" fn OnWindowUpdated(this: *mut core::ffi::c_void, prcupdatedbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT - where - Identity: IUIManagerEventSink_Impl, - { + unsafe extern "system" fn OnWindowUpdated(this: *mut core::ffi::c_void, prcupdatedbounds: *const super::super::Foundation::RECT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIManagerEventSink_Impl::OnWindowUpdated(this, core::mem::transmute_copy(&prcupdatedbounds)).into() } - unsafe extern "system" fn OnWindowClosing(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIManagerEventSink_Impl, - { + unsafe extern "system" fn OnWindowClosing(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIManagerEventSink_Impl::OnWindowClosing(this).into() } - unsafe extern "system" fn OnWindowClosed(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUIManagerEventSink_Impl, - { + unsafe extern "system" fn OnWindowClosed(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIManagerEventSink_Impl::OnWindowClosed(this).into() } @@ -9574,7 +7258,7 @@ impl IUIManagerEventSink_Vtbl { iid == &::IID } } -pub trait IVersionInfo_Impl: Sized { +pub trait IVersionInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetSubcomponentCount(&self, ulsub: u32) -> windows_core::Result; fn GetImplementationID(&self, ulsub: u32) -> windows_core::Result; fn GetBuildVersion(&self, ulsub: u32, pdwmajor: *mut u32, pdwminor: *mut u32) -> windows_core::Result<()>; @@ -9583,14 +7267,8 @@ pub trait IVersionInfo_Impl: Sized { } impl windows_core::RuntimeName for IVersionInfo {} impl IVersionInfo_Vtbl { - pub const fn new() -> IVersionInfo_Vtbl - where - Identity: IVersionInfo_Impl, - { - unsafe extern "system" fn GetSubcomponentCount(this: *mut core::ffi::c_void, ulsub: u32, ulcount: *mut u32) -> windows_core::HRESULT - where - Identity: IVersionInfo_Impl, - { + pub const fn new() -> IVersionInfo_Vtbl { + unsafe extern "system" fn GetSubcomponentCount(this: *mut core::ffi::c_void, ulsub: u32, ulcount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVersionInfo_Impl::GetSubcomponentCount(this, core::mem::transmute_copy(&ulsub)) { Ok(ok__) => { @@ -9600,10 +7278,7 @@ impl IVersionInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetImplementationID(this: *mut core::ffi::c_void, ulsub: u32, implid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IVersionInfo_Impl, - { + unsafe extern "system" fn GetImplementationID(this: *mut core::ffi::c_void, ulsub: u32, implid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVersionInfo_Impl::GetImplementationID(this, core::mem::transmute_copy(&ulsub)) { Ok(ok__) => { @@ -9613,17 +7288,11 @@ impl IVersionInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBuildVersion(this: *mut core::ffi::c_void, ulsub: u32, pdwmajor: *mut u32, pdwminor: *mut u32) -> windows_core::HRESULT - where - Identity: IVersionInfo_Impl, - { + unsafe extern "system" fn GetBuildVersion(this: *mut core::ffi::c_void, ulsub: u32, pdwmajor: *mut u32, pdwminor: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVersionInfo_Impl::GetBuildVersion(this, core::mem::transmute_copy(&ulsub), core::mem::transmute_copy(&pdwmajor), core::mem::transmute_copy(&pdwminor)).into() } - unsafe extern "system" fn GetComponentDescription(this: *mut core::ffi::c_void, ulsub: u32, pimplstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVersionInfo_Impl, - { + unsafe extern "system" fn GetComponentDescription(this: *mut core::ffi::c_void, ulsub: u32, pimplstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVersionInfo_Impl::GetComponentDescription(this, core::mem::transmute_copy(&ulsub)) { Ok(ok__) => { @@ -9633,10 +7302,7 @@ impl IVersionInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInstanceDescription(this: *mut core::ffi::c_void, ulsub: u32, pimplstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IVersionInfo_Impl, - { + unsafe extern "system" fn GetInstanceDescription(this: *mut core::ffi::c_void, ulsub: u32, pimplstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVersionInfo_Impl::GetInstanceDescription(this, core::mem::transmute_copy(&ulsub)) { Ok(ok__) => { 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 9f97cabb19..b1ccda4763 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Wpf/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Wpf/impl.rs @@ -1,5 +1,5 @@ #[cfg(feature = "Win32_Graphics_Imaging")] -pub trait IMILBitmapEffect_Impl: Sized { +pub trait IMILBitmapEffect_Impl: Sized + windows_core::IUnknownImpl { fn GetOutput(&self, uiindex: u32, pcontext: Option<&IMILBitmapEffectRenderContext>) -> windows_core::Result; fn GetParentEffect(&self) -> windows_core::Result; fn SetInputSource(&self, uiindex: u32, pbitmapsource: Option<&super::super::Graphics::Imaging::IWICBitmapSource>) -> windows_core::Result<()>; @@ -8,14 +8,8 @@ pub trait IMILBitmapEffect_Impl: Sized { impl windows_core::RuntimeName for IMILBitmapEffect {} #[cfg(feature = "Win32_Graphics_Imaging")] impl IMILBitmapEffect_Vtbl { - pub const fn new() -> IMILBitmapEffect_Vtbl - where - Identity: IMILBitmapEffect_Impl, - { - unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, uiindex: u32, pcontext: *mut core::ffi::c_void, ppbitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffect_Impl, - { + pub const fn new() -> IMILBitmapEffect_Vtbl { + unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, uiindex: u32, pcontext: *mut core::ffi::c_void, ppbitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffect_Impl::GetOutput(this, core::mem::transmute_copy(&uiindex), windows_core::from_raw_borrowed(&pcontext)) { Ok(ok__) => { @@ -25,10 +19,7 @@ impl IMILBitmapEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentEffect(this: *mut core::ffi::c_void, ppparenteffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffect_Impl, - { + unsafe extern "system" fn GetParentEffect(this: *mut core::ffi::c_void, ppparenteffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffect_Impl::GetParentEffect(this) { Ok(ok__) => { @@ -38,10 +29,7 @@ impl IMILBitmapEffect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInputSource(this: *mut core::ffi::c_void, uiindex: u32, pbitmapsource: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffect_Impl, - { + unsafe extern "system" fn SetInputSource(this: *mut core::ffi::c_void, uiindex: u32, pbitmapsource: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffect_Impl::SetInputSource(this, core::mem::transmute_copy(&uiindex), windows_core::from_raw_borrowed(&pbitmapsource)).into() } @@ -56,20 +44,14 @@ impl IMILBitmapEffect_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffectConnections_Impl: Sized { +pub trait IMILBitmapEffectConnections_Impl: Sized + windows_core::IUnknownImpl { fn GetInputConnector(&self, uiindex: u32) -> windows_core::Result; fn GetOutputConnector(&self, uiindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IMILBitmapEffectConnections {} impl IMILBitmapEffectConnections_Vtbl { - pub const fn new() -> IMILBitmapEffectConnections_Vtbl - where - Identity: IMILBitmapEffectConnections_Impl, - { - unsafe extern "system" fn GetInputConnector(this: *mut core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnections_Impl, - { + pub const fn new() -> IMILBitmapEffectConnections_Vtbl { + unsafe extern "system" fn GetInputConnector(this: *mut core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnections_Impl::GetInputConnector(this, core::mem::transmute_copy(&uiindex)) { Ok(ok__) => { @@ -79,10 +61,7 @@ impl IMILBitmapEffectConnections_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputConnector(this: *mut core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnections_Impl, - { + unsafe extern "system" fn GetOutputConnector(this: *mut core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnections_Impl::GetOutputConnector(this, core::mem::transmute_copy(&uiindex)) { Ok(ok__) => { @@ -102,7 +81,7 @@ impl IMILBitmapEffectConnections_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffectConnectionsInfo_Impl: Sized { +pub trait IMILBitmapEffectConnectionsInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetNumberInputs(&self) -> windows_core::Result; fn GetNumberOutputs(&self) -> windows_core::Result; fn GetInputConnectorInfo(&self, uiindex: u32) -> windows_core::Result; @@ -110,14 +89,8 @@ pub trait IMILBitmapEffectConnectionsInfo_Impl: Sized { } impl windows_core::RuntimeName for IMILBitmapEffectConnectionsInfo {} impl IMILBitmapEffectConnectionsInfo_Vtbl { - pub const fn new() -> IMILBitmapEffectConnectionsInfo_Vtbl - where - Identity: IMILBitmapEffectConnectionsInfo_Impl, - { - unsafe extern "system" fn GetNumberInputs(this: *mut core::ffi::c_void, puinuminputs: *mut u32) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnectionsInfo_Impl, - { + pub const fn new() -> IMILBitmapEffectConnectionsInfo_Vtbl { + unsafe extern "system" fn GetNumberInputs(this: *mut core::ffi::c_void, puinuminputs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnectionsInfo_Impl::GetNumberInputs(this) { Ok(ok__) => { @@ -127,10 +100,7 @@ impl IMILBitmapEffectConnectionsInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberOutputs(this: *mut core::ffi::c_void, puinumoutputs: *mut u32) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnectionsInfo_Impl, - { + unsafe extern "system" fn GetNumberOutputs(this: *mut core::ffi::c_void, puinumoutputs: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnectionsInfo_Impl::GetNumberOutputs(this) { Ok(ok__) => { @@ -140,10 +110,7 @@ impl IMILBitmapEffectConnectionsInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputConnectorInfo(this: *mut core::ffi::c_void, uiindex: u32, ppconnectorinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnectionsInfo_Impl, - { + unsafe extern "system" fn GetInputConnectorInfo(this: *mut core::ffi::c_void, uiindex: u32, ppconnectorinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnectionsInfo_Impl::GetInputConnectorInfo(this, core::mem::transmute_copy(&uiindex)) { Ok(ok__) => { @@ -153,10 +120,7 @@ impl IMILBitmapEffectConnectionsInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputConnectorInfo(this: *mut core::ffi::c_void, uiindex: u32, ppconnectorinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnectionsInfo_Impl, - { + unsafe extern "system" fn GetOutputConnectorInfo(this: *mut core::ffi::c_void, uiindex: u32, ppconnectorinfo: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnectionsInfo_Impl::GetOutputConnectorInfo(this, core::mem::transmute_copy(&uiindex)) { Ok(ok__) => { @@ -184,14 +148,8 @@ pub trait IMILBitmapEffectConnector_Impl: Sized + IMILBitmapEffectConnectorInfo_ } impl windows_core::RuntimeName for IMILBitmapEffectConnector {} impl IMILBitmapEffectConnector_Vtbl { - pub const fn new() -> IMILBitmapEffectConnector_Vtbl - where - Identity: IMILBitmapEffectConnector_Impl, - { - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pfconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnector_Impl, - { + pub const fn new() -> IMILBitmapEffectConnector_Vtbl { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pfconnected: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnector_Impl::IsConnected(this) { Ok(ok__) => { @@ -201,10 +159,7 @@ impl IMILBitmapEffectConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetBitmapEffect(this: *mut core::ffi::c_void, ppeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnector_Impl, - { + unsafe extern "system" fn GetBitmapEffect(this: *mut core::ffi::c_void, ppeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnector_Impl::GetBitmapEffect(this) { Ok(ok__) => { @@ -224,7 +179,7 @@ impl IMILBitmapEffectConnector_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMILBitmapEffectConnectorInfo_Impl: Sized { +pub trait IMILBitmapEffectConnectorInfo_Impl: Sized + windows_core::IUnknownImpl { fn GetIndex(&self) -> windows_core::Result; fn GetOptimalFormat(&self) -> windows_core::Result; fn GetNumberFormats(&self) -> windows_core::Result; @@ -232,14 +187,8 @@ pub trait IMILBitmapEffectConnectorInfo_Impl: Sized { } impl windows_core::RuntimeName for IMILBitmapEffectConnectorInfo {} impl IMILBitmapEffectConnectorInfo_Vtbl { - pub const fn new() -> IMILBitmapEffectConnectorInfo_Vtbl - where - Identity: IMILBitmapEffectConnectorInfo_Impl, - { - unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, puiindex: *mut u32) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnectorInfo_Impl, - { + pub const fn new() -> IMILBitmapEffectConnectorInfo_Vtbl { + unsafe extern "system" fn GetIndex(this: *mut core::ffi::c_void, puiindex: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnectorInfo_Impl::GetIndex(this) { Ok(ok__) => { @@ -249,10 +198,7 @@ impl IMILBitmapEffectConnectorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOptimalFormat(this: *mut core::ffi::c_void, pformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnectorInfo_Impl, - { + unsafe extern "system" fn GetOptimalFormat(this: *mut core::ffi::c_void, pformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnectorInfo_Impl::GetOptimalFormat(this) { Ok(ok__) => { @@ -262,10 +208,7 @@ impl IMILBitmapEffectConnectorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNumberFormats(this: *mut core::ffi::c_void, pulnumberformats: *mut u32) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnectorInfo_Impl, - { + unsafe extern "system" fn GetNumberFormats(this: *mut core::ffi::c_void, pulnumberformats: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnectorInfo_Impl::GetNumberFormats(this) { Ok(ok__) => { @@ -275,10 +218,7 @@ impl IMILBitmapEffectConnectorInfo_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, ulindex: u32, pformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectConnectorInfo_Impl, - { + unsafe extern "system" fn GetFormat(this: *mut core::ffi::c_void, ulindex: u32, pformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectConnectorInfo_Impl::GetFormat(this, core::mem::transmute_copy(&ulindex)) { Ok(ok__) => { @@ -300,27 +240,18 @@ impl IMILBitmapEffectConnectorInfo_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffectEvents_Impl: Sized { +pub trait IMILBitmapEffectEvents_Impl: Sized + windows_core::IUnknownImpl { fn PropertyChange(&self, peffect: Option<&IMILBitmapEffect>, bstrpropertyname: &windows_core::BSTR) -> windows_core::Result<()>; fn DirtyRegion(&self, peffect: Option<&IMILBitmapEffect>, prect: *const MilRectD) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMILBitmapEffectEvents {} impl IMILBitmapEffectEvents_Vtbl { - pub const fn new() -> IMILBitmapEffectEvents_Vtbl - where - Identity: IMILBitmapEffectEvents_Impl, - { - unsafe extern "system" fn PropertyChange(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectEvents_Impl, - { + pub const fn new() -> IMILBitmapEffectEvents_Vtbl { + unsafe extern "system" fn PropertyChange(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, bstrpropertyname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectEvents_Impl::PropertyChange(this, windows_core::from_raw_borrowed(&peffect), core::mem::transmute(&bstrpropertyname)).into() } - unsafe extern "system" fn DirtyRegion(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, prect: *const MilRectD) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectEvents_Impl, - { + unsafe extern "system" fn DirtyRegion(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, prect: *const MilRectD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectEvents_Impl::DirtyRegion(this, windows_core::from_raw_borrowed(&peffect), core::mem::transmute_copy(&prect)).into() } @@ -334,21 +265,15 @@ impl IMILBitmapEffectEvents_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffectFactory_Impl: Sized { +pub trait IMILBitmapEffectFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateEffect(&self, pguideffect: *const windows_core::GUID) -> windows_core::Result; fn CreateContext(&self) -> windows_core::Result; fn CreateEffectOuter(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMILBitmapEffectFactory {} impl IMILBitmapEffectFactory_Vtbl { - pub const fn new() -> IMILBitmapEffectFactory_Vtbl - where - Identity: IMILBitmapEffectFactory_Impl, - { - unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, pguideffect: *const windows_core::GUID, ppeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectFactory_Impl, - { + pub const fn new() -> IMILBitmapEffectFactory_Vtbl { + unsafe extern "system" fn CreateEffect(this: *mut core::ffi::c_void, pguideffect: *const windows_core::GUID, ppeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectFactory_Impl::CreateEffect(this, core::mem::transmute_copy(&pguideffect)) { Ok(ok__) => { @@ -358,10 +283,7 @@ impl IMILBitmapEffectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectFactory_Impl, - { + unsafe extern "system" fn CreateContext(this: *mut core::ffi::c_void, ppcontext: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectFactory_Impl::CreateContext(this) { Ok(ok__) => { @@ -371,10 +293,7 @@ impl IMILBitmapEffectFactory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CreateEffectOuter(this: *mut core::ffi::c_void, ppeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectFactory_Impl, - { + unsafe extern "system" fn CreateEffectOuter(this: *mut core::ffi::c_void, ppeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectFactory_Impl::CreateEffectOuter(this) { Ok(ok__) => { @@ -395,21 +314,15 @@ impl IMILBitmapEffectFactory_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffectGroup_Impl: Sized { +pub trait IMILBitmapEffectGroup_Impl: Sized + windows_core::IUnknownImpl { fn GetInteriorInputConnector(&self, uiindex: u32) -> windows_core::Result; fn GetInteriorOutputConnector(&self, uiindex: u32) -> windows_core::Result; fn Add(&self, peffect: Option<&IMILBitmapEffect>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMILBitmapEffectGroup {} impl IMILBitmapEffectGroup_Vtbl { - pub const fn new() -> IMILBitmapEffectGroup_Vtbl - where - Identity: IMILBitmapEffectGroup_Impl, - { - unsafe extern "system" fn GetInteriorInputConnector(this: *mut core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectGroup_Impl, - { + pub const fn new() -> IMILBitmapEffectGroup_Vtbl { + unsafe extern "system" fn GetInteriorInputConnector(this: *mut core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectGroup_Impl::GetInteriorInputConnector(this, core::mem::transmute_copy(&uiindex)) { Ok(ok__) => { @@ -419,10 +332,7 @@ impl IMILBitmapEffectGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInteriorOutputConnector(this: *mut core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectGroup_Impl, - { + unsafe extern "system" fn GetInteriorOutputConnector(this: *mut core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectGroup_Impl::GetInteriorOutputConnector(this, core::mem::transmute_copy(&uiindex)) { Ok(ok__) => { @@ -432,10 +342,7 @@ impl IMILBitmapEffectGroup_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Add(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectGroup_Impl, - { + unsafe extern "system" fn Add(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectGroup_Impl::Add(this, windows_core::from_raw_borrowed(&peffect)).into() } @@ -450,28 +357,19 @@ impl IMILBitmapEffectGroup_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffectGroupImpl_Impl: Sized { +pub trait IMILBitmapEffectGroupImpl_Impl: Sized + windows_core::IUnknownImpl { fn Preprocess(&self, pcontext: Option<&IMILBitmapEffectRenderContext>) -> windows_core::Result<()>; fn GetNumberChildren(&self) -> windows_core::Result; fn GetChildren(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMILBitmapEffectGroupImpl {} impl IMILBitmapEffectGroupImpl_Vtbl { - pub const fn new() -> IMILBitmapEffectGroupImpl_Vtbl - where - Identity: IMILBitmapEffectGroupImpl_Impl, - { - unsafe extern "system" fn Preprocess(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectGroupImpl_Impl, - { + pub const fn new() -> IMILBitmapEffectGroupImpl_Vtbl { + unsafe extern "system" fn Preprocess(this: *mut core::ffi::c_void, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectGroupImpl_Impl::Preprocess(this, windows_core::from_raw_borrowed(&pcontext)).into() } - unsafe extern "system" fn GetNumberChildren(this: *mut core::ffi::c_void, puinumberchildren: *mut u32) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectGroupImpl_Impl, - { + unsafe extern "system" fn GetNumberChildren(this: *mut core::ffi::c_void, puinumberchildren: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectGroupImpl_Impl::GetNumberChildren(this) { Ok(ok__) => { @@ -481,10 +379,7 @@ impl IMILBitmapEffectGroupImpl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetChildren(this: *mut core::ffi::c_void, pchildren: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectGroupImpl_Impl, - { + unsafe extern "system" fn GetChildren(this: *mut core::ffi::c_void, pchildren: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectGroupImpl_Impl::GetChildren(this) { Ok(ok__) => { @@ -506,7 +401,7 @@ impl IMILBitmapEffectGroupImpl_Vtbl { } } #[cfg(feature = "Win32_Graphics_Imaging")] -pub trait IMILBitmapEffectImpl_Impl: Sized { +pub trait IMILBitmapEffectImpl_Impl: Sized + windows_core::IUnknownImpl { fn IsInPlaceModificationAllowed(&self, poutputconnector: Option<&IMILBitmapEffectOutputConnector>) -> windows_core::Result; fn SetParentEffect(&self, pparenteffect: Option<&IMILBitmapEffectGroup>) -> windows_core::Result<()>; fn GetInputSource(&self, uiindex: u32) -> windows_core::Result; @@ -519,14 +414,8 @@ pub trait IMILBitmapEffectImpl_Impl: Sized { impl windows_core::RuntimeName for IMILBitmapEffectImpl {} #[cfg(feature = "Win32_Graphics_Imaging")] impl IMILBitmapEffectImpl_Vtbl { - pub const fn new() -> IMILBitmapEffectImpl_Vtbl - where - Identity: IMILBitmapEffectImpl_Impl, - { - unsafe extern "system" fn IsInPlaceModificationAllowed(this: *mut core::ffi::c_void, poutputconnector: *mut core::ffi::c_void, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectImpl_Impl, - { + pub const fn new() -> IMILBitmapEffectImpl_Vtbl { + unsafe extern "system" fn IsInPlaceModificationAllowed(this: *mut core::ffi::c_void, poutputconnector: *mut core::ffi::c_void, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectImpl_Impl::IsInPlaceModificationAllowed(this, windows_core::from_raw_borrowed(&poutputconnector)) { Ok(ok__) => { @@ -536,17 +425,11 @@ impl IMILBitmapEffectImpl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetParentEffect(this: *mut core::ffi::c_void, pparenteffect: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectImpl_Impl, - { + unsafe extern "system" fn SetParentEffect(this: *mut core::ffi::c_void, pparenteffect: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectImpl_Impl::SetParentEffect(this, windows_core::from_raw_borrowed(&pparenteffect)).into() } - unsafe extern "system" fn GetInputSource(this: *mut core::ffi::c_void, uiindex: u32, ppbitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectImpl_Impl, - { + unsafe extern "system" fn GetInputSource(this: *mut core::ffi::c_void, uiindex: u32, ppbitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectImpl_Impl::GetInputSource(this, core::mem::transmute_copy(&uiindex)) { Ok(ok__) => { @@ -556,17 +439,11 @@ impl IMILBitmapEffectImpl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInputSourceBounds(this: *mut core::ffi::c_void, uiindex: u32, prect: *mut MilRectD) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectImpl_Impl, - { + unsafe extern "system" fn GetInputSourceBounds(this: *mut core::ffi::c_void, uiindex: u32, prect: *mut MilRectD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectImpl_Impl::GetInputSourceBounds(this, core::mem::transmute_copy(&uiindex), core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn GetInputBitmapSource(this: *mut core::ffi::c_void, uiindex: u32, prendercontext: *mut core::ffi::c_void, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL, ppbitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectImpl_Impl, - { + unsafe extern "system" fn GetInputBitmapSource(this: *mut core::ffi::c_void, uiindex: u32, prendercontext: *mut core::ffi::c_void, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL, ppbitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectImpl_Impl::GetInputBitmapSource(this, core::mem::transmute_copy(&uiindex), windows_core::from_raw_borrowed(&prendercontext), core::mem::transmute_copy(&pfmodifyinplace)) { Ok(ok__) => { @@ -576,10 +453,7 @@ impl IMILBitmapEffectImpl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputBitmapSource(this: *mut core::ffi::c_void, uiindex: u32, prendercontext: *mut core::ffi::c_void, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL, ppbitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectImpl_Impl, - { + unsafe extern "system" fn GetOutputBitmapSource(this: *mut core::ffi::c_void, uiindex: u32, prendercontext: *mut core::ffi::c_void, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL, ppbitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectImpl_Impl::GetOutputBitmapSource(this, core::mem::transmute_copy(&uiindex), windows_core::from_raw_borrowed(&prendercontext), core::mem::transmute_copy(&pfmodifyinplace)) { Ok(ok__) => { @@ -589,10 +463,7 @@ impl IMILBitmapEffectImpl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pinner: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectImpl_Impl, - { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pinner: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectImpl_Impl::Initialize(this, windows_core::from_raw_borrowed(&pinner)).into() } @@ -617,21 +488,12 @@ pub trait IMILBitmapEffectInputConnector_Impl: Sized + IMILBitmapEffectConnector } impl windows_core::RuntimeName for IMILBitmapEffectInputConnector {} impl IMILBitmapEffectInputConnector_Vtbl { - pub const fn new() -> IMILBitmapEffectInputConnector_Vtbl - where - Identity: IMILBitmapEffectInputConnector_Impl, - { - unsafe extern "system" fn ConnectTo(this: *mut core::ffi::c_void, pconnector: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectInputConnector_Impl, - { + pub const fn new() -> IMILBitmapEffectInputConnector_Vtbl { + unsafe extern "system" fn ConnectTo(this: *mut core::ffi::c_void, pconnector: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectInputConnector_Impl::ConnectTo(this, windows_core::from_raw_borrowed(&pconnector)).into() } - unsafe extern "system" fn GetConnection(this: *mut core::ffi::c_void, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectInputConnector_Impl, - { + unsafe extern "system" fn GetConnection(this: *mut core::ffi::c_void, ppconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectInputConnector_Impl::GetConnection(this) { Ok(ok__) => { @@ -651,19 +513,13 @@ impl IMILBitmapEffectInputConnector_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMILBitmapEffectInteriorInputConnector_Impl: Sized { +pub trait IMILBitmapEffectInteriorInputConnector_Impl: Sized + windows_core::IUnknownImpl { fn GetInputConnector(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMILBitmapEffectInteriorInputConnector {} impl IMILBitmapEffectInteriorInputConnector_Vtbl { - pub const fn new() -> IMILBitmapEffectInteriorInputConnector_Vtbl - where - Identity: IMILBitmapEffectInteriorInputConnector_Impl, - { - unsafe extern "system" fn GetInputConnector(this: *mut core::ffi::c_void, pinputconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectInteriorInputConnector_Impl, - { + pub const fn new() -> IMILBitmapEffectInteriorInputConnector_Vtbl { + unsafe extern "system" fn GetInputConnector(this: *mut core::ffi::c_void, pinputconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectInteriorInputConnector_Impl::GetInputConnector(this) { Ok(ok__) => { @@ -679,19 +535,13 @@ impl IMILBitmapEffectInteriorInputConnector_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffectInteriorOutputConnector_Impl: Sized { +pub trait IMILBitmapEffectInteriorOutputConnector_Impl: Sized + windows_core::IUnknownImpl { fn GetOutputConnector(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IMILBitmapEffectInteriorOutputConnector {} impl IMILBitmapEffectInteriorOutputConnector_Vtbl { - pub const fn new() -> IMILBitmapEffectInteriorOutputConnector_Vtbl - where - Identity: IMILBitmapEffectInteriorOutputConnector_Impl, - { - unsafe extern "system" fn GetOutputConnector(this: *mut core::ffi::c_void, poutputconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectInteriorOutputConnector_Impl, - { + pub const fn new() -> IMILBitmapEffectInteriorOutputConnector_Vtbl { + unsafe extern "system" fn GetOutputConnector(this: *mut core::ffi::c_void, poutputconnector: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectInteriorOutputConnector_Impl::GetOutputConnector(this) { Ok(ok__) => { @@ -713,14 +563,8 @@ pub trait IMILBitmapEffectOutputConnector_Impl: Sized + IMILBitmapEffectConnecto } impl windows_core::RuntimeName for IMILBitmapEffectOutputConnector {} impl IMILBitmapEffectOutputConnector_Vtbl { - pub const fn new() -> IMILBitmapEffectOutputConnector_Vtbl - where - Identity: IMILBitmapEffectOutputConnector_Impl, - { - unsafe extern "system" fn GetNumberConnections(this: *mut core::ffi::c_void, puinumberconnections: *mut u32) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectOutputConnector_Impl, - { + pub const fn new() -> IMILBitmapEffectOutputConnector_Vtbl { + unsafe extern "system" fn GetNumberConnections(this: *mut core::ffi::c_void, puinumberconnections: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectOutputConnector_Impl::GetNumberConnections(this) { Ok(ok__) => { @@ -730,10 +574,7 @@ impl IMILBitmapEffectOutputConnector_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetConnection(this: *mut core::ffi::c_void, uiindex: u32, ppconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectOutputConnector_Impl, - { + unsafe extern "system" fn GetConnection(this: *mut core::ffi::c_void, uiindex: u32, ppconnection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectOutputConnector_Impl::GetConnection(this, core::mem::transmute_copy(&uiindex)) { Ok(ok__) => { @@ -753,27 +594,18 @@ impl IMILBitmapEffectOutputConnector_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -pub trait IMILBitmapEffectOutputConnectorImpl_Impl: Sized { +pub trait IMILBitmapEffectOutputConnectorImpl_Impl: Sized + windows_core::IUnknownImpl { fn AddBackLink(&self, pconnection: Option<&IMILBitmapEffectInputConnector>) -> windows_core::Result<()>; fn RemoveBackLink(&self, pconnection: Option<&IMILBitmapEffectInputConnector>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMILBitmapEffectOutputConnectorImpl {} impl IMILBitmapEffectOutputConnectorImpl_Vtbl { - pub const fn new() -> IMILBitmapEffectOutputConnectorImpl_Vtbl - where - Identity: IMILBitmapEffectOutputConnectorImpl_Impl, - { - unsafe extern "system" fn AddBackLink(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectOutputConnectorImpl_Impl, - { + pub const fn new() -> IMILBitmapEffectOutputConnectorImpl_Vtbl { + unsafe extern "system" fn AddBackLink(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectOutputConnectorImpl_Impl::AddBackLink(this, windows_core::from_raw_borrowed(&pconnection)).into() } - unsafe extern "system" fn RemoveBackLink(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectOutputConnectorImpl_Impl, - { + unsafe extern "system" fn RemoveBackLink(this: *mut core::ffi::c_void, pconnection: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectOutputConnectorImpl_Impl::RemoveBackLink(this, windows_core::from_raw_borrowed(&pconnection)).into() } @@ -788,7 +620,7 @@ impl IMILBitmapEffectOutputConnectorImpl_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Dwm", feature = "Win32_Graphics_Imaging"))] -pub trait IMILBitmapEffectPrimitive_Impl: Sized { +pub trait IMILBitmapEffectPrimitive_Impl: Sized + windows_core::IUnknownImpl { fn GetOutput(&self, uiindex: u32, pcontext: Option<&IMILBitmapEffectRenderContext>, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result; fn TransformPoint(&self, uiindex: u32, p: *mut MilPoint2D, fforwardtransform: super::super::Foundation::VARIANT_BOOL, pcontext: Option<&IMILBitmapEffectRenderContext>, pfpointtransformed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; fn TransformRect(&self, uiindex: u32, p: *mut MilRectD, fforwardtransform: super::super::Foundation::VARIANT_BOOL, pcontext: Option<&IMILBitmapEffectRenderContext>) -> windows_core::Result<()>; @@ -800,14 +632,8 @@ pub trait IMILBitmapEffectPrimitive_Impl: Sized { impl windows_core::RuntimeName for IMILBitmapEffectPrimitive {} #[cfg(all(feature = "Win32_Graphics_Dwm", feature = "Win32_Graphics_Imaging"))] impl IMILBitmapEffectPrimitive_Vtbl { - pub const fn new() -> IMILBitmapEffectPrimitive_Vtbl - where - Identity: IMILBitmapEffectPrimitive_Impl, - { - unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, uiindex: u32, pcontext: *mut core::ffi::c_void, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL, ppbitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectPrimitive_Impl, - { + pub const fn new() -> IMILBitmapEffectPrimitive_Vtbl { + unsafe extern "system" fn GetOutput(this: *mut core::ffi::c_void, uiindex: u32, pcontext: *mut core::ffi::c_void, pfmodifyinplace: *mut super::super::Foundation::VARIANT_BOOL, ppbitmapsource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectPrimitive_Impl::GetOutput(this, core::mem::transmute_copy(&uiindex), windows_core::from_raw_borrowed(&pcontext), core::mem::transmute_copy(&pfmodifyinplace)) { Ok(ok__) => { @@ -817,24 +643,15 @@ impl IMILBitmapEffectPrimitive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn TransformPoint(this: *mut core::ffi::c_void, uiindex: u32, p: *mut MilPoint2D, fforwardtransform: super::super::Foundation::VARIANT_BOOL, pcontext: *mut core::ffi::c_void, pfpointtransformed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectPrimitive_Impl, - { + unsafe extern "system" fn TransformPoint(this: *mut core::ffi::c_void, uiindex: u32, p: *mut MilPoint2D, fforwardtransform: super::super::Foundation::VARIANT_BOOL, pcontext: *mut core::ffi::c_void, pfpointtransformed: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectPrimitive_Impl::TransformPoint(this, core::mem::transmute_copy(&uiindex), core::mem::transmute_copy(&p), core::mem::transmute_copy(&fforwardtransform), windows_core::from_raw_borrowed(&pcontext), core::mem::transmute_copy(&pfpointtransformed)).into() } - unsafe extern "system" fn TransformRect(this: *mut core::ffi::c_void, uiindex: u32, p: *mut MilRectD, fforwardtransform: super::super::Foundation::VARIANT_BOOL, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectPrimitive_Impl, - { + unsafe extern "system" fn TransformRect(this: *mut core::ffi::c_void, uiindex: u32, p: *mut MilRectD, fforwardtransform: super::super::Foundation::VARIANT_BOOL, pcontext: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectPrimitive_Impl::TransformRect(this, core::mem::transmute_copy(&uiindex), core::mem::transmute_copy(&p), core::mem::transmute_copy(&fforwardtransform), windows_core::from_raw_borrowed(&pcontext)).into() } - unsafe extern "system" fn HasAffineTransform(this: *mut core::ffi::c_void, uiindex: u32, pfaffine: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectPrimitive_Impl, - { + unsafe extern "system" fn HasAffineTransform(this: *mut core::ffi::c_void, uiindex: u32, pfaffine: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectPrimitive_Impl::HasAffineTransform(this, core::mem::transmute_copy(&uiindex)) { Ok(ok__) => { @@ -844,10 +661,7 @@ impl IMILBitmapEffectPrimitive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasInverseTransform(this: *mut core::ffi::c_void, uiindex: u32, pfhasinverse: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectPrimitive_Impl, - { + unsafe extern "system" fn HasInverseTransform(this: *mut core::ffi::c_void, uiindex: u32, pfhasinverse: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectPrimitive_Impl::HasInverseTransform(this, core::mem::transmute_copy(&uiindex)) { Ok(ok__) => { @@ -857,10 +671,7 @@ impl IMILBitmapEffectPrimitive_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetAffineMatrix(this: *mut core::ffi::c_void, uiindex: u32, pmatrix: *mut super::super::Graphics::Dwm::MilMatrix3x2D) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectPrimitive_Impl, - { + unsafe extern "system" fn GetAffineMatrix(this: *mut core::ffi::c_void, uiindex: u32, pmatrix: *mut super::super::Graphics::Dwm::MilMatrix3x2D) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectPrimitive_Impl::GetAffineMatrix(this, core::mem::transmute_copy(&uiindex), core::mem::transmute_copy(&pmatrix)).into() } @@ -878,27 +689,18 @@ impl IMILBitmapEffectPrimitive_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffectPrimitiveImpl_Impl: Sized { +pub trait IMILBitmapEffectPrimitiveImpl_Impl: Sized + windows_core::IUnknownImpl { fn IsDirty(&self, uioutputindex: u32, pfdirty: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT; fn IsVolatile(&self, uioutputindex: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IMILBitmapEffectPrimitiveImpl {} impl IMILBitmapEffectPrimitiveImpl_Vtbl { - pub const fn new() -> IMILBitmapEffectPrimitiveImpl_Vtbl - where - Identity: IMILBitmapEffectPrimitiveImpl_Impl, - { - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void, uioutputindex: u32, pfdirty: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectPrimitiveImpl_Impl, - { + pub const fn new() -> IMILBitmapEffectPrimitiveImpl_Vtbl { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void, uioutputindex: u32, pfdirty: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectPrimitiveImpl_Impl::IsDirty(this, core::mem::transmute_copy(&uioutputindex), core::mem::transmute_copy(&pfdirty)) } - unsafe extern "system" fn IsVolatile(this: *mut core::ffi::c_void, uioutputindex: u32, pfvolatile: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectPrimitiveImpl_Impl, - { + unsafe extern "system" fn IsVolatile(this: *mut core::ffi::c_void, uioutputindex: u32, pfvolatile: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectPrimitiveImpl_Impl::IsVolatile(this, core::mem::transmute_copy(&uioutputindex)) { Ok(ok__) => { @@ -914,7 +716,7 @@ impl IMILBitmapEffectPrimitiveImpl_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffectRenderContext_Impl: Sized { +pub trait IMILBitmapEffectRenderContext_Impl: Sized + windows_core::IUnknownImpl { fn SetOutputPixelFormat(&self, format: *const windows_core::GUID) -> windows_core::Result<()>; fn GetOutputPixelFormat(&self) -> windows_core::Result; fn SetUseSoftwareRenderer(&self, fsoftware: super::super::Foundation::VARIANT_BOOL) -> windows_core::Result<()>; @@ -926,21 +728,12 @@ pub trait IMILBitmapEffectRenderContext_Impl: Sized { } impl windows_core::RuntimeName for IMILBitmapEffectRenderContext {} impl IMILBitmapEffectRenderContext_Vtbl { - pub const fn new() -> IMILBitmapEffectRenderContext_Vtbl - where - Identity: IMILBitmapEffectRenderContext_Impl, - { - unsafe extern "system" fn SetOutputPixelFormat(this: *mut core::ffi::c_void, format: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContext_Impl, - { + pub const fn new() -> IMILBitmapEffectRenderContext_Vtbl { + unsafe extern "system" fn SetOutputPixelFormat(this: *mut core::ffi::c_void, format: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContext_Impl::SetOutputPixelFormat(this, core::mem::transmute_copy(&format)).into() } - unsafe extern "system" fn GetOutputPixelFormat(this: *mut core::ffi::c_void, pformat: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContext_Impl, - { + unsafe extern "system" fn GetOutputPixelFormat(this: *mut core::ffi::c_void, pformat: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectRenderContext_Impl::GetOutputPixelFormat(this) { Ok(ok__) => { @@ -950,45 +743,27 @@ impl IMILBitmapEffectRenderContext_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetUseSoftwareRenderer(this: *mut core::ffi::c_void, fsoftware: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContext_Impl, - { + unsafe extern "system" fn SetUseSoftwareRenderer(this: *mut core::ffi::c_void, fsoftware: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContext_Impl::SetUseSoftwareRenderer(this, core::mem::transmute_copy(&fsoftware)).into() } - unsafe extern "system" fn SetInitialTransform(this: *mut core::ffi::c_void, pmatrix: *const MILMatrixF) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContext_Impl, - { + unsafe extern "system" fn SetInitialTransform(this: *mut core::ffi::c_void, pmatrix: *const MILMatrixF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContext_Impl::SetInitialTransform(this, core::mem::transmute_copy(&pmatrix)).into() } - unsafe extern "system" fn GetFinalTransform(this: *mut core::ffi::c_void, pmatrix: *mut MILMatrixF) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContext_Impl, - { + unsafe extern "system" fn GetFinalTransform(this: *mut core::ffi::c_void, pmatrix: *mut MILMatrixF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContext_Impl::GetFinalTransform(this, core::mem::transmute_copy(&pmatrix)).into() } - unsafe extern "system" fn SetOutputDPI(this: *mut core::ffi::c_void, dbldpix: f64, dbldpiy: f64) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContext_Impl, - { + unsafe extern "system" fn SetOutputDPI(this: *mut core::ffi::c_void, dbldpix: f64, dbldpiy: f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContext_Impl::SetOutputDPI(this, core::mem::transmute_copy(&dbldpix), core::mem::transmute_copy(&dbldpiy)).into() } - unsafe extern "system" fn GetOutputDPI(this: *mut core::ffi::c_void, pdbldpix: *mut f64, pdbldpiy: *mut f64) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContext_Impl, - { + unsafe extern "system" fn GetOutputDPI(this: *mut core::ffi::c_void, pdbldpix: *mut f64, pdbldpiy: *mut f64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContext_Impl::GetOutputDPI(this, core::mem::transmute_copy(&pdbldpix), core::mem::transmute_copy(&pdbldpiy)).into() } - unsafe extern "system" fn SetRegionOfInterest(this: *mut core::ffi::c_void, prect: *const MilRectD) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContext_Impl, - { + unsafe extern "system" fn SetRegionOfInterest(this: *mut core::ffi::c_void, prect: *const MilRectD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContext_Impl::SetRegionOfInterest(this, core::mem::transmute_copy(&prect)).into() } @@ -1008,7 +783,7 @@ impl IMILBitmapEffectRenderContext_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffectRenderContextImpl_Impl: Sized { +pub trait IMILBitmapEffectRenderContextImpl_Impl: Sized + windows_core::IUnknownImpl { fn GetUseSoftwareRenderer(&self) -> windows_core::Result; fn GetTransform(&self, pmatrix: *mut MILMatrixF) -> windows_core::Result<()>; fn UpdateTransform(&self, pmatrix: *const MILMatrixF) -> windows_core::Result<()>; @@ -1017,14 +792,8 @@ pub trait IMILBitmapEffectRenderContextImpl_Impl: Sized { } impl windows_core::RuntimeName for IMILBitmapEffectRenderContextImpl {} impl IMILBitmapEffectRenderContextImpl_Vtbl { - pub const fn new() -> IMILBitmapEffectRenderContextImpl_Vtbl - where - Identity: IMILBitmapEffectRenderContextImpl_Impl, - { - unsafe extern "system" fn GetUseSoftwareRenderer(this: *mut core::ffi::c_void, pfsoftware: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContextImpl_Impl, - { + pub const fn new() -> IMILBitmapEffectRenderContextImpl_Vtbl { + unsafe extern "system" fn GetUseSoftwareRenderer(this: *mut core::ffi::c_void, pfsoftware: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffectRenderContextImpl_Impl::GetUseSoftwareRenderer(this) { Ok(ok__) => { @@ -1034,31 +803,19 @@ impl IMILBitmapEffectRenderContextImpl_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, pmatrix: *mut MILMatrixF) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContextImpl_Impl, - { + unsafe extern "system" fn GetTransform(this: *mut core::ffi::c_void, pmatrix: *mut MILMatrixF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContextImpl_Impl::GetTransform(this, core::mem::transmute_copy(&pmatrix)).into() } - unsafe extern "system" fn UpdateTransform(this: *mut core::ffi::c_void, pmatrix: *const MILMatrixF) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContextImpl_Impl, - { + unsafe extern "system" fn UpdateTransform(this: *mut core::ffi::c_void, pmatrix: *const MILMatrixF) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContextImpl_Impl::UpdateTransform(this, core::mem::transmute_copy(&pmatrix)).into() } - unsafe extern "system" fn GetOutputBounds(this: *mut core::ffi::c_void, prect: *mut MilRectD) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContextImpl_Impl, - { + unsafe extern "system" fn GetOutputBounds(this: *mut core::ffi::c_void, prect: *mut MilRectD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContextImpl_Impl::GetOutputBounds(this, core::mem::transmute_copy(&prect)).into() } - unsafe extern "system" fn UpdateOutputBounds(this: *mut core::ffi::c_void, prect: *const MilRectD) -> windows_core::HRESULT - where - Identity: IMILBitmapEffectRenderContextImpl_Impl, - { + unsafe extern "system" fn UpdateOutputBounds(this: *mut core::ffi::c_void, prect: *const MilRectD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMILBitmapEffectRenderContextImpl_Impl::UpdateOutputBounds(this, core::mem::transmute_copy(&prect)).into() } @@ -1075,7 +832,7 @@ impl IMILBitmapEffectRenderContextImpl_Vtbl { iid == &::IID } } -pub trait IMILBitmapEffects_Impl: Sized { +pub trait IMILBitmapEffects_Impl: Sized + windows_core::IUnknownImpl { fn _NewEnum(&self) -> windows_core::Result; fn Parent(&self) -> windows_core::Result; fn Item(&self, uindex: u32) -> windows_core::Result; @@ -1083,14 +840,8 @@ pub trait IMILBitmapEffects_Impl: Sized { } impl windows_core::RuntimeName for IMILBitmapEffects {} impl IMILBitmapEffects_Vtbl { - pub const fn new() -> IMILBitmapEffects_Vtbl - where - Identity: IMILBitmapEffects_Impl, - { - unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppiureturn: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffects_Impl, - { + pub const fn new() -> IMILBitmapEffects_Vtbl { + unsafe extern "system" fn _NewEnum(this: *mut core::ffi::c_void, ppiureturn: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffects_Impl::_NewEnum(this) { Ok(ok__) => { @@ -1100,10 +851,7 @@ impl IMILBitmapEffects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffects_Impl, - { + unsafe extern "system" fn Parent(this: *mut core::ffi::c_void, ppeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffects_Impl::Parent(this) { Ok(ok__) => { @@ -1113,10 +861,7 @@ impl IMILBitmapEffects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Item(this: *mut core::ffi::c_void, uindex: u32, ppeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IMILBitmapEffects_Impl, - { + unsafe extern "system" fn Item(this: *mut core::ffi::c_void, uindex: u32, ppeffect: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffects_Impl::Item(this, core::mem::transmute_copy(&uindex)) { Ok(ok__) => { @@ -1126,10 +871,7 @@ impl IMILBitmapEffects_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, puicount: *mut u32) -> windows_core::HRESULT - where - Identity: IMILBitmapEffects_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, puicount: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMILBitmapEffects_Impl::Count(this) { Ok(ok__) => { diff --git a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs index 110eadb054..632aefb597 100644 --- a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs @@ -1,17 +1,11 @@ -pub trait IActiveXUIHandlerSite_Impl: Sized { +pub trait IActiveXUIHandlerSite_Impl: Sized + windows_core::IUnknownImpl { fn CreateScrollableContextMenu(&self) -> windows_core::Result; fn PickFileAndGetResult(&self, filepicker: Option<&windows_core::IUnknown>, allowmultipleselections: super::super::Foundation::BOOL) -> windows_core::Result; } impl windows_core::RuntimeName for IActiveXUIHandlerSite {} impl IActiveXUIHandlerSite_Vtbl { - pub const fn new() -> IActiveXUIHandlerSite_Vtbl - where - Identity: IActiveXUIHandlerSite_Impl, - { - unsafe extern "system" fn CreateScrollableContextMenu(this: *mut core::ffi::c_void, scrollablecontextmenu: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveXUIHandlerSite_Impl, - { + pub const fn new() -> IActiveXUIHandlerSite_Vtbl { + unsafe extern "system" fn CreateScrollableContextMenu(this: *mut core::ffi::c_void, scrollablecontextmenu: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveXUIHandlerSite_Impl::CreateScrollableContextMenu(this) { Ok(ok__) => { @@ -21,10 +15,7 @@ impl IActiveXUIHandlerSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn PickFileAndGetResult(this: *mut core::ffi::c_void, filepicker: *mut core::ffi::c_void, allowmultipleselections: super::super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IActiveXUIHandlerSite_Impl, - { + unsafe extern "system" fn PickFileAndGetResult(this: *mut core::ffi::c_void, filepicker: *mut core::ffi::c_void, allowmultipleselections: super::super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveXUIHandlerSite_Impl::PickFileAndGetResult(this, windows_core::from_raw_borrowed(&filepicker), core::mem::transmute_copy(&allowmultipleselections)) { Ok(ok__) => { @@ -44,20 +35,14 @@ impl IActiveXUIHandlerSite_Vtbl { iid == &::IID } } -pub trait IActiveXUIHandlerSite2_Impl: Sized { +pub trait IActiveXUIHandlerSite2_Impl: Sized + windows_core::IUnknownImpl { fn AddSuspensionExemption(&self) -> windows_core::Result; fn RemoveSuspensionExemption(&self, ullcookie: u64) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IActiveXUIHandlerSite2 {} impl IActiveXUIHandlerSite2_Vtbl { - pub const fn new() -> IActiveXUIHandlerSite2_Vtbl - where - Identity: IActiveXUIHandlerSite2_Impl, - { - unsafe extern "system" fn AddSuspensionExemption(this: *mut core::ffi::c_void, pullcookie: *mut u64) -> windows_core::HRESULT - where - Identity: IActiveXUIHandlerSite2_Impl, - { + pub const fn new() -> IActiveXUIHandlerSite2_Vtbl { + unsafe extern "system" fn AddSuspensionExemption(this: *mut core::ffi::c_void, pullcookie: *mut u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveXUIHandlerSite2_Impl::AddSuspensionExemption(this) { Ok(ok__) => { @@ -67,10 +52,7 @@ impl IActiveXUIHandlerSite2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn RemoveSuspensionExemption(this: *mut core::ffi::c_void, ullcookie: u64) -> windows_core::HRESULT - where - Identity: IActiveXUIHandlerSite2_Impl, - { + unsafe extern "system" fn RemoveSuspensionExemption(this: *mut core::ffi::c_void, ullcookie: u64) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveXUIHandlerSite2_Impl::RemoveSuspensionExemption(this, core::mem::transmute_copy(&ullcookie)).into() } @@ -84,19 +66,13 @@ impl IActiveXUIHandlerSite2_Vtbl { iid == &::IID } } -pub trait IActiveXUIHandlerSite3_Impl: Sized { +pub trait IActiveXUIHandlerSite3_Impl: Sized + windows_core::IUnknownImpl { fn MessageBoxW(&self, hwnd: super::super::Foundation::HWND, text: &windows_core::PCWSTR, caption: &windows_core::PCWSTR, r#type: u32) -> windows_core::Result; } impl windows_core::RuntimeName for IActiveXUIHandlerSite3 {} impl IActiveXUIHandlerSite3_Vtbl { - pub const fn new() -> IActiveXUIHandlerSite3_Vtbl - where - Identity: IActiveXUIHandlerSite3_Impl, - { - unsafe extern "system" fn MessageBoxW(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, text: windows_core::PCWSTR, caption: windows_core::PCWSTR, r#type: u32, result: *mut i32) -> windows_core::HRESULT - where - Identity: IActiveXUIHandlerSite3_Impl, - { + pub const fn new() -> IActiveXUIHandlerSite3_Vtbl { + unsafe extern "system" fn MessageBoxW(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, text: windows_core::PCWSTR, caption: windows_core::PCWSTR, r#type: u32, result: *mut i32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveXUIHandlerSite3_Impl::MessageBoxW(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&text), core::mem::transmute(&caption), core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -120,14 +96,8 @@ pub trait IAnchorClick_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IAnchorClick {} #[cfg(feature = "Win32_System_Com")] impl IAnchorClick_Vtbl { - pub const fn new() -> IAnchorClick_Vtbl - where - Identity: IAnchorClick_Impl, - { - unsafe extern "system" fn ProcOnClick(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IAnchorClick_Impl, - { + pub const fn new() -> IAnchorClick_Vtbl { + unsafe extern "system" fn ProcOnClick(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAnchorClick_Impl::ProcOnClick(this).into() } @@ -137,21 +107,15 @@ impl IAnchorClick_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IAudioSessionSite_Impl: Sized { +pub trait IAudioSessionSite_Impl: Sized + windows_core::IUnknownImpl { fn GetAudioSessionGuid(&self) -> windows_core::Result; fn OnAudioStreamCreated(&self, endpointid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OnAudioStreamDestroyed(&self, endpointid: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IAudioSessionSite {} impl IAudioSessionSite_Vtbl { - pub const fn new() -> IAudioSessionSite_Vtbl - where - Identity: IAudioSessionSite_Impl, - { - unsafe extern "system" fn GetAudioSessionGuid(this: *mut core::ffi::c_void, audiosessionguid: *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IAudioSessionSite_Impl, - { + pub const fn new() -> IAudioSessionSite_Vtbl { + unsafe extern "system" fn GetAudioSessionGuid(this: *mut core::ffi::c_void, audiosessionguid: *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioSessionSite_Impl::GetAudioSessionGuid(this) { Ok(ok__) => { @@ -161,17 +125,11 @@ impl IAudioSessionSite_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnAudioStreamCreated(this: *mut core::ffi::c_void, endpointid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAudioSessionSite_Impl, - { + unsafe extern "system" fn OnAudioStreamCreated(this: *mut core::ffi::c_void, endpointid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionSite_Impl::OnAudioStreamCreated(this, core::mem::transmute(&endpointid)).into() } - unsafe extern "system" fn OnAudioStreamDestroyed(this: *mut core::ffi::c_void, endpointid: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IAudioSessionSite_Impl, - { + unsafe extern "system" fn OnAudioStreamDestroyed(this: *mut core::ffi::c_void, endpointid: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionSite_Impl::OnAudioStreamDestroyed(this, core::mem::transmute(&endpointid)).into() } @@ -186,19 +144,13 @@ impl IAudioSessionSite_Vtbl { iid == &::IID } } -pub trait ICaretPositionProvider_Impl: Sized { +pub trait ICaretPositionProvider_Impl: Sized + windows_core::IUnknownImpl { fn GetCaretPosition(&self, pptcaret: *mut super::super::Foundation::POINT, pflheight: *mut f32) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ICaretPositionProvider {} impl ICaretPositionProvider_Vtbl { - pub const fn new() -> ICaretPositionProvider_Vtbl - where - Identity: ICaretPositionProvider_Impl, - { - unsafe extern "system" fn GetCaretPosition(this: *mut core::ffi::c_void, pptcaret: *mut super::super::Foundation::POINT, pflheight: *mut f32) -> windows_core::HRESULT - where - Identity: ICaretPositionProvider_Impl, - { + pub const fn new() -> ICaretPositionProvider_Vtbl { + unsafe extern "system" fn GetCaretPosition(this: *mut core::ffi::c_void, pptcaret: *mut super::super::Foundation::POINT, pflheight: *mut f32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICaretPositionProvider_Impl::GetCaretPosition(this, core::mem::transmute_copy(&pptcaret), core::mem::transmute_copy(&pflheight)).into() } @@ -214,10 +166,7 @@ pub trait IDeviceRect_Impl: Sized + super::super::System::Com::IDispatch_Impl {} impl windows_core::RuntimeName for IDeviceRect {} #[cfg(feature = "Win32_System_Com")] impl IDeviceRect_Vtbl { - pub const fn new() -> IDeviceRect_Vtbl - where - Identity: IDeviceRect_Impl, - { + pub const fn new() -> IDeviceRect_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -225,7 +174,7 @@ impl IDeviceRect_Vtbl { } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub trait IDithererImpl_Impl: Sized { +pub trait IDithererImpl_Impl: Sized + windows_core::IUnknownImpl { fn SetDestColorTable(&self, ncolors: u32, prgbcolors: *const super::super::Graphics::Gdi::RGBQUAD) -> windows_core::Result<()>; fn SetEventSink(&self, peventsink: Option<&IImageDecodeEventSink>) -> windows_core::Result<()>; } @@ -233,21 +182,12 @@ pub trait IDithererImpl_Impl: Sized { impl windows_core::RuntimeName for IDithererImpl {} #[cfg(feature = "Win32_Graphics_Gdi")] impl IDithererImpl_Vtbl { - pub const fn new() -> IDithererImpl_Vtbl - where - Identity: IDithererImpl_Impl, - { - unsafe extern "system" fn SetDestColorTable(this: *mut core::ffi::c_void, ncolors: u32, prgbcolors: *const super::super::Graphics::Gdi::RGBQUAD) -> windows_core::HRESULT - where - Identity: IDithererImpl_Impl, - { + pub const fn new() -> IDithererImpl_Vtbl { + unsafe extern "system" fn SetDestColorTable(this: *mut core::ffi::c_void, ncolors: u32, prgbcolors: *const super::super::Graphics::Gdi::RGBQUAD) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDithererImpl_Impl::SetDestColorTable(this, core::mem::transmute_copy(&ncolors), core::mem::transmute_copy(&prgbcolors)).into() } - unsafe extern "system" fn SetEventSink(this: *mut core::ffi::c_void, peventsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDithererImpl_Impl, - { + unsafe extern "system" fn SetEventSink(this: *mut core::ffi::c_void, peventsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDithererImpl_Impl::SetEventSink(this, windows_core::from_raw_borrowed(&peventsink)).into() } @@ -269,14 +209,8 @@ pub trait IDownloadBehavior_Impl: Sized + super::super::System::Com::IDispatch_I impl windows_core::RuntimeName for IDownloadBehavior {} #[cfg(feature = "Win32_System_Com")] impl IDownloadBehavior_Vtbl { - pub const fn new() -> IDownloadBehavior_Vtbl - where - Identity: IDownloadBehavior_Impl, - { - unsafe extern "system" fn startDownload(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, pdispcallback: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IDownloadBehavior_Impl, - { + pub const fn new() -> IDownloadBehavior_Vtbl { + unsafe extern "system" fn startDownload(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, pdispcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDownloadBehavior_Impl::startDownload(this, core::mem::transmute(&bstrurl), windows_core::from_raw_borrowed(&pdispcallback)).into() } @@ -287,21 +221,15 @@ impl IDownloadBehavior_Vtbl { } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] -pub trait IDownloadManager_Impl: Sized { +pub trait IDownloadManager_Impl: Sized + windows_core::IUnknownImpl { fn Download(&self, pmk: Option<&super::super::System::Com::IMoniker>, pbc: Option<&super::super::System::Com::IBindCtx>, dwbindverb: u32, grfbindf: i32, pbindinfo: *const super::super::System::Com::BINDINFO, pszheaders: &windows_core::PCWSTR, pszredir: &windows_core::PCWSTR, uicp: u32) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] impl windows_core::RuntimeName for IDownloadManager {} #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] impl IDownloadManager_Vtbl { - pub const fn new() -> IDownloadManager_Vtbl - where - Identity: IDownloadManager_Impl, - { - unsafe extern "system" fn Download(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, dwbindverb: u32, grfbindf: i32, pbindinfo: *const super::super::System::Com::BINDINFO, pszheaders: windows_core::PCWSTR, pszredir: windows_core::PCWSTR, uicp: u32) -> windows_core::HRESULT - where - Identity: IDownloadManager_Impl, - { + pub const fn new() -> IDownloadManager_Vtbl { + unsafe extern "system" fn Download(this: *mut core::ffi::c_void, pmk: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, dwbindverb: u32, grfbindf: i32, pbindinfo: *const super::super::System::Com::BINDINFO, pszheaders: windows_core::PCWSTR, pszredir: windows_core::PCWSTR, uicp: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDownloadManager_Impl::Download(this, windows_core::from_raw_borrowed(&pmk), windows_core::from_raw_borrowed(&pbc), core::mem::transmute_copy(&dwbindverb), core::mem::transmute_copy(&grfbindf), core::mem::transmute_copy(&pbindinfo), core::mem::transmute(&pszheaders), core::mem::transmute(&pszredir), core::mem::transmute_copy(&uicp)).into() } @@ -311,7 +239,7 @@ impl IDownloadManager_Vtbl { iid == &::IID } } -pub trait IEnumManagerFrames_Impl: Sized { +pub trait IEnumManagerFrames_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, ppwindows: *mut *mut super::super::Foundation::HWND, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Count(&self) -> windows_core::Result; fn Skip(&self, celt: u32) -> windows_core::Result<()>; @@ -320,21 +248,12 @@ pub trait IEnumManagerFrames_Impl: Sized { } impl windows_core::RuntimeName for IEnumManagerFrames {} impl IEnumManagerFrames_Vtbl { - pub const fn new() -> IEnumManagerFrames_Vtbl - where - Identity: IEnumManagerFrames_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppwindows: *mut *mut super::super::Foundation::HWND, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumManagerFrames_Impl, - { + pub const fn new() -> IEnumManagerFrames_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, ppwindows: *mut *mut super::super::Foundation::HWND, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumManagerFrames_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&ppwindows), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumManagerFrames_Impl, - { + unsafe extern "system" fn Count(this: *mut core::ffi::c_void, pcelt: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumManagerFrames_Impl::Count(this) { Ok(ok__) => { @@ -344,24 +263,15 @@ impl IEnumManagerFrames_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumManagerFrames_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumManagerFrames_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumManagerFrames_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumManagerFrames_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumManagerFrames_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumManagerFrames_Impl::Clone(this) { Ok(ok__) => { @@ -384,7 +294,7 @@ impl IEnumManagerFrames_Vtbl { iid == &::IID } } -pub trait IEnumOpenServiceActivity_Impl: Sized { +pub trait IEnumOpenServiceActivity_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -392,35 +302,20 @@ pub trait IEnumOpenServiceActivity_Impl: Sized { } impl windows_core::RuntimeName for IEnumOpenServiceActivity {} impl IEnumOpenServiceActivity_Vtbl { - pub const fn new() -> IEnumOpenServiceActivity_Vtbl - where - Identity: IEnumOpenServiceActivity_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumOpenServiceActivity_Impl, - { + pub const fn new() -> IEnumOpenServiceActivity_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOpenServiceActivity_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumOpenServiceActivity_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOpenServiceActivity_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOpenServiceActivity_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOpenServiceActivity_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOpenServiceActivity_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumOpenServiceActivity_Impl::Clone(this) { Ok(ok__) => { @@ -442,7 +337,7 @@ impl IEnumOpenServiceActivity_Vtbl { iid == &::IID } } -pub trait IEnumOpenServiceActivityCategory_Impl: Sized { +pub trait IEnumOpenServiceActivityCategory_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut Option, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -450,35 +345,20 @@ pub trait IEnumOpenServiceActivityCategory_Impl: Sized { } impl windows_core::RuntimeName for IEnumOpenServiceActivityCategory {} impl IEnumOpenServiceActivityCategory_Vtbl { - pub const fn new() -> IEnumOpenServiceActivityCategory_Vtbl - where - Identity: IEnumOpenServiceActivityCategory_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumOpenServiceActivityCategory_Impl, - { + pub const fn new() -> IEnumOpenServiceActivityCategory_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut *mut core::ffi::c_void, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOpenServiceActivityCategory_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumOpenServiceActivityCategory_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOpenServiceActivityCategory_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOpenServiceActivityCategory_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumOpenServiceActivityCategory_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumOpenServiceActivityCategory_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumOpenServiceActivityCategory_Impl::Clone(this) { Ok(ok__) => { @@ -500,7 +380,7 @@ impl IEnumOpenServiceActivityCategory_Vtbl { iid == &::IID } } -pub trait IEnumSTATURL_Impl: Sized { +pub trait IEnumSTATURL_Impl: Sized + windows_core::IUnknownImpl { fn Next(&self, celt: u32, rgelt: *mut STATURL, pceltfetched: *mut u32) -> windows_core::Result<()>; fn Skip(&self, celt: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; @@ -509,35 +389,20 @@ pub trait IEnumSTATURL_Impl: Sized { } impl windows_core::RuntimeName for IEnumSTATURL {} impl IEnumSTATURL_Vtbl { - pub const fn new() -> IEnumSTATURL_Vtbl - where - Identity: IEnumSTATURL_Impl, - { - unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut STATURL, pceltfetched: *mut u32) -> windows_core::HRESULT - where - Identity: IEnumSTATURL_Impl, - { + pub const fn new() -> IEnumSTATURL_Vtbl { + unsafe extern "system" fn Next(this: *mut core::ffi::c_void, celt: u32, rgelt: *mut STATURL, pceltfetched: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATURL_Impl::Next(this, core::mem::transmute_copy(&celt), core::mem::transmute_copy(&rgelt), core::mem::transmute_copy(&pceltfetched)).into() } - unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT - where - Identity: IEnumSTATURL_Impl, - { + unsafe extern "system" fn Skip(this: *mut core::ffi::c_void, celt: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATURL_Impl::Skip(this, core::mem::transmute_copy(&celt)).into() } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSTATURL_Impl, - { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATURL_Impl::Reset(this).into() } - unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IEnumSTATURL_Impl, - { + unsafe extern "system" fn Clone(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnumSTATURL_Impl::Clone(this) { Ok(ok__) => { @@ -547,10 +412,7 @@ impl IEnumSTATURL_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, poszfilter: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IEnumSTATURL_Impl, - { + unsafe extern "system" fn SetFilter(this: *mut core::ffi::c_void, poszfilter: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnumSTATURL_Impl::SetFilter(this, core::mem::transmute(&poszfilter), core::mem::transmute_copy(&dwflags)).into() } @@ -567,21 +429,15 @@ impl IEnumSTATURL_Vtbl { iid == &::IID } } -pub trait IHTMLPersistData_Impl: Sized { +pub trait IHTMLPersistData_Impl: Sized + windows_core::IUnknownImpl { fn save(&self, punk: Option<&windows_core::IUnknown>, ltype: i32) -> windows_core::Result; fn load(&self, punk: Option<&windows_core::IUnknown>, ltype: i32) -> windows_core::Result; fn queryType(&self, ltype: i32) -> windows_core::Result; } impl windows_core::RuntimeName for IHTMLPersistData {} impl IHTMLPersistData_Vtbl { - pub const fn new() -> IHTMLPersistData_Vtbl - where - Identity: IHTMLPersistData_Impl, - { - unsafe extern "system" fn save(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, ltype: i32, fcontinuebroacast: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IHTMLPersistData_Impl, - { + pub const fn new() -> IHTMLPersistData_Vtbl { + unsafe extern "system" fn save(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, ltype: i32, fcontinuebroacast: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHTMLPersistData_Impl::save(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(<ype)) { Ok(ok__) => { @@ -591,10 +447,7 @@ impl IHTMLPersistData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn load(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, ltype: i32, fdodefault: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IHTMLPersistData_Impl, - { + unsafe extern "system" fn load(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, ltype: i32, fdodefault: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHTMLPersistData_Impl::load(this, windows_core::from_raw_borrowed(&punk), core::mem::transmute_copy(<ype)) { Ok(ok__) => { @@ -604,10 +457,7 @@ impl IHTMLPersistData_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn queryType(this: *mut core::ffi::c_void, ltype: i32, pfsupportstype: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IHTMLPersistData_Impl, - { + unsafe extern "system" fn queryType(this: *mut core::ffi::c_void, ltype: i32, pfsupportstype: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHTMLPersistData_Impl::queryType(this, core::mem::transmute_copy(<ype)) { Ok(ok__) => { @@ -639,14 +489,8 @@ pub trait IHTMLPersistDataOM_Impl: Sized + super::super::System::Com::IDispatch_ impl windows_core::RuntimeName for IHTMLPersistDataOM {} #[cfg(feature = "Win32_System_Com")] impl IHTMLPersistDataOM_Vtbl { - pub const fn new() -> IHTMLPersistDataOM_Vtbl - where - Identity: IHTMLPersistDataOM_Impl, - { - unsafe extern "system" fn XMLDocument(this: *mut core::ffi::c_void, p: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHTMLPersistDataOM_Impl, - { + pub const fn new() -> IHTMLPersistDataOM_Vtbl { + unsafe extern "system" fn XMLDocument(this: *mut core::ffi::c_void, p: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHTMLPersistDataOM_Impl::XMLDocument(this) { Ok(ok__) => { @@ -656,10 +500,7 @@ impl IHTMLPersistDataOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn getAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHTMLPersistDataOM_Impl, - { + unsafe extern "system" fn getAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHTMLPersistDataOM_Impl::getAttribute(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -669,17 +510,11 @@ impl IHTMLPersistDataOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHTMLPersistDataOM_Impl, - { + unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHTMLPersistDataOM_Impl::setAttribute(this, core::mem::transmute(&name), core::mem::transmute(&value)).into() } - unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHTMLPersistDataOM_Impl, - { + unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHTMLPersistDataOM_Impl::removeAttribute(this, core::mem::transmute(&name)).into() } @@ -710,14 +545,8 @@ pub trait IHTMLUserDataOM_Impl: Sized + super::super::System::Com::IDispatch_Imp impl windows_core::RuntimeName for IHTMLUserDataOM {} #[cfg(feature = "Win32_System_Com")] impl IHTMLUserDataOM_Vtbl { - pub const fn new() -> IHTMLUserDataOM_Vtbl - where - Identity: IHTMLUserDataOM_Impl, - { - unsafe extern "system" fn XMLDocument(this: *mut core::ffi::c_void, p: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHTMLUserDataOM_Impl, - { + pub const fn new() -> IHTMLUserDataOM_Vtbl { + unsafe extern "system" fn XMLDocument(this: *mut core::ffi::c_void, p: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHTMLUserDataOM_Impl::XMLDocument(this) { Ok(ok__) => { @@ -727,24 +556,15 @@ impl IHTMLUserDataOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn save(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHTMLUserDataOM_Impl, - { + unsafe extern "system" fn save(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHTMLUserDataOM_Impl::save(this, core::mem::transmute(&strname)).into() } - unsafe extern "system" fn load(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHTMLUserDataOM_Impl, - { + unsafe extern "system" fn load(this: *mut core::ffi::c_void, strname: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHTMLUserDataOM_Impl::load(this, core::mem::transmute(&strname)).into() } - unsafe extern "system" fn getAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHTMLUserDataOM_Impl, - { + unsafe extern "system" fn getAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, pvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHTMLUserDataOM_Impl::getAttribute(this, core::mem::transmute(&name)) { Ok(ok__) => { @@ -754,31 +574,19 @@ impl IHTMLUserDataOM_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHTMLUserDataOM_Impl, - { + unsafe extern "system" fn setAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit, value: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHTMLUserDataOM_Impl::setAttribute(this, core::mem::transmute(&name), core::mem::transmute(&value)).into() } - unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHTMLUserDataOM_Impl, - { + unsafe extern "system" fn removeAttribute(this: *mut core::ffi::c_void, name: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHTMLUserDataOM_Impl::removeAttribute(this, core::mem::transmute(&name)).into() } - unsafe extern "system" fn Setexpires(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHTMLUserDataOM_Impl, - { + unsafe extern "system" fn Setexpires(this: *mut core::ffi::c_void, bstr: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHTMLUserDataOM_Impl::Setexpires(this, core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn expires(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHTMLUserDataOM_Impl, - { + unsafe extern "system" fn expires(this: *mut core::ffi::c_void, pbstr: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHTMLUserDataOM_Impl::expires(this) { Ok(ok__) => { @@ -833,14 +641,8 @@ pub trait IHeaderFooter_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IHeaderFooter {} #[cfg(feature = "Win32_System_Com")] impl IHeaderFooter_Vtbl { - pub const fn new() -> IHeaderFooter_Vtbl - where - Identity: IHeaderFooter_Impl, - { - unsafe extern "system" fn htmlHead(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + pub const fn new() -> IHeaderFooter_Vtbl { + unsafe extern "system" fn htmlHead(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::htmlHead(this) { Ok(ok__) => { @@ -850,10 +652,7 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn htmlFoot(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn htmlFoot(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::htmlFoot(this) { Ok(ok__) => { @@ -863,17 +662,11 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SettextHead(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn SettextHead(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter_Impl::SettextHead(this, core::mem::transmute(&v)).into() } - unsafe extern "system" fn textHead(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn textHead(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::textHead(this) { Ok(ok__) => { @@ -883,17 +676,11 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SettextFoot(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn SettextFoot(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter_Impl::SettextFoot(this, core::mem::transmute(&v)).into() } - unsafe extern "system" fn textFoot(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn textFoot(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::textFoot(this) { Ok(ok__) => { @@ -903,17 +690,11 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setpage(this: *mut core::ffi::c_void, v: u32) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn Setpage(this: *mut core::ffi::c_void, v: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter_Impl::Setpage(this, core::mem::transmute_copy(&v)).into() } - unsafe extern "system" fn page(this: *mut core::ffi::c_void, p: *mut u32) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn page(this: *mut core::ffi::c_void, p: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::page(this) { Ok(ok__) => { @@ -923,17 +704,11 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetpageTotal(this: *mut core::ffi::c_void, v: u32) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn SetpageTotal(this: *mut core::ffi::c_void, v: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter_Impl::SetpageTotal(this, core::mem::transmute_copy(&v)).into() } - unsafe extern "system" fn pageTotal(this: *mut core::ffi::c_void, p: *mut u32) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn pageTotal(this: *mut core::ffi::c_void, p: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::pageTotal(this) { Ok(ok__) => { @@ -943,17 +718,11 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn SetURL(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter_Impl::SetURL(this, core::mem::transmute(&v)).into() } - unsafe extern "system" fn URL(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn URL(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::URL(this) { Ok(ok__) => { @@ -963,17 +732,11 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Settitle(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn Settitle(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter_Impl::Settitle(this, core::mem::transmute(&v)).into() } - unsafe extern "system" fn title(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn title(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::title(this) { Ok(ok__) => { @@ -983,17 +746,11 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetdateShort(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn SetdateShort(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter_Impl::SetdateShort(this, core::mem::transmute(&v)).into() } - unsafe extern "system" fn dateShort(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn dateShort(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::dateShort(this) { Ok(ok__) => { @@ -1003,17 +760,11 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetdateLong(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn SetdateLong(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter_Impl::SetdateLong(this, core::mem::transmute(&v)).into() } - unsafe extern "system" fn dateLong(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn dateLong(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::dateLong(this) { Ok(ok__) => { @@ -1023,17 +774,11 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SettimeShort(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn SettimeShort(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter_Impl::SettimeShort(this, core::mem::transmute(&v)).into() } - unsafe extern "system" fn timeShort(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn timeShort(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::timeShort(this) { Ok(ok__) => { @@ -1043,17 +788,11 @@ impl IHeaderFooter_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SettimeLong(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn SettimeLong(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter_Impl::SettimeLong(this, core::mem::transmute(&v)).into() } - unsafe extern "system" fn timeLong(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter_Impl, - { + unsafe extern "system" fn timeLong(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter_Impl::timeLong(this) { Ok(ok__) => { @@ -1102,21 +841,12 @@ pub trait IHeaderFooter2_Impl: Sized + IHeaderFooter_Impl { impl windows_core::RuntimeName for IHeaderFooter2 {} #[cfg(feature = "Win32_System_Com")] impl IHeaderFooter2_Vtbl { - pub const fn new() -> IHeaderFooter2_Vtbl - where - Identity: IHeaderFooter2_Impl, - { - unsafe extern "system" fn Setfont(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter2_Impl, - { + pub const fn new() -> IHeaderFooter2_Vtbl { + unsafe extern "system" fn Setfont(this: *mut core::ffi::c_void, v: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHeaderFooter2_Impl::Setfont(this, core::mem::transmute(&v)).into() } - unsafe extern "system" fn font(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHeaderFooter2_Impl, - { + unsafe extern "system" fn font(this: *mut core::ffi::c_void, p: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHeaderFooter2_Impl::font(this) { Ok(ok__) => { @@ -1142,28 +872,16 @@ pub trait IHomePage_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for IHomePage {} #[cfg(feature = "Win32_System_Com")] impl IHomePage_Vtbl { - pub const fn new() -> IHomePage_Vtbl - where - Identity: IHomePage_Impl, - { - unsafe extern "system" fn navigateHomePage(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHomePage_Impl, - { + pub const fn new() -> IHomePage_Vtbl { + unsafe extern "system" fn navigateHomePage(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHomePage_Impl::navigateHomePage(this).into() } - unsafe extern "system" fn setHomePage(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IHomePage_Impl, - { + unsafe extern "system" fn setHomePage(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHomePage_Impl::setHomePage(this, core::mem::transmute(&bstrurl)).into() } - unsafe extern "system" fn isHomePage(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, p: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IHomePage_Impl, - { + unsafe extern "system" fn isHomePage(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, p: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHomePage_Impl::isHomePage(this, core::mem::transmute(&bstrurl)) { Ok(ok__) => { @@ -1184,28 +902,19 @@ impl IHomePage_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IHomePageSetting_Impl: Sized { +pub trait IHomePageSetting_Impl: Sized + windows_core::IUnknownImpl { fn SetHomePage(&self, hwnd: super::super::Foundation::HWND, homepageuri: &windows_core::PCWSTR, brandingmessage: &windows_core::PCWSTR) -> windows_core::Result<()>; fn IsHomePage(&self, uri: &windows_core::PCWSTR) -> windows_core::Result; fn SetHomePageToBrowserDefault(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IHomePageSetting {} impl IHomePageSetting_Vtbl { - pub const fn new() -> IHomePageSetting_Vtbl - where - Identity: IHomePageSetting_Impl, - { - unsafe extern "system" fn SetHomePage(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, homepageuri: windows_core::PCWSTR, brandingmessage: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: IHomePageSetting_Impl, - { + pub const fn new() -> IHomePageSetting_Vtbl { + unsafe extern "system" fn SetHomePage(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, homepageuri: windows_core::PCWSTR, brandingmessage: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHomePageSetting_Impl::SetHomePage(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&homepageuri), core::mem::transmute(&brandingmessage)).into() } - unsafe extern "system" fn IsHomePage(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, isdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IHomePageSetting_Impl, - { + unsafe extern "system" fn IsHomePage(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, isdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHomePageSetting_Impl::IsHomePage(this, core::mem::transmute(&uri)) { Ok(ok__) => { @@ -1215,10 +924,7 @@ impl IHomePageSetting_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetHomePageToBrowserDefault(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IHomePageSetting_Impl, - { + unsafe extern "system" fn SetHomePageToBrowserDefault(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHomePageSetting_Impl::SetHomePageToBrowserDefault(this).into() } @@ -1241,14 +947,8 @@ pub trait IIEWebDriverManager_Impl: Sized + super::super::System::Com::IDispatch impl windows_core::RuntimeName for IIEWebDriverManager {} #[cfg(feature = "Win32_System_Com")] impl IIEWebDriverManager_Vtbl { - pub const fn new() -> IIEWebDriverManager_Vtbl - where - Identity: IIEWebDriverManager_Impl, - { - unsafe extern "system" fn ExecuteCommand(this: *mut core::ffi::c_void, command: windows_core::PCWSTR, response: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: IIEWebDriverManager_Impl, - { + pub const fn new() -> IIEWebDriverManager_Vtbl { + unsafe extern "system" fn ExecuteCommand(this: *mut core::ffi::c_void, command: windows_core::PCWSTR, response: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIEWebDriverManager_Impl::ExecuteCommand(this, core::mem::transmute(&command)) { Ok(ok__) => { @@ -1274,28 +974,16 @@ pub trait IIEWebDriverSite_Impl: Sized + super::super::System::Com::IDispatch_Im impl windows_core::RuntimeName for IIEWebDriverSite {} #[cfg(feature = "Win32_System_Com")] impl IIEWebDriverSite_Vtbl { - pub const fn new() -> IIEWebDriverSite_Vtbl - where - Identity: IIEWebDriverSite_Impl, - { - unsafe extern "system" fn WindowOperation(this: *mut core::ffi::c_void, operationcode: u32, hwnd: u32) -> windows_core::HRESULT - where - Identity: IIEWebDriverSite_Impl, - { + pub const fn new() -> IIEWebDriverSite_Vtbl { + unsafe extern "system" fn WindowOperation(this: *mut core::ffi::c_void, operationcode: u32, hwnd: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIEWebDriverSite_Impl::WindowOperation(this, core::mem::transmute_copy(&operationcode), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn DetachWebdriver(this: *mut core::ffi::c_void, punkwd: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IIEWebDriverSite_Impl, - { + unsafe extern "system" fn DetachWebdriver(this: *mut core::ffi::c_void, punkwd: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIEWebDriverSite_Impl::DetachWebdriver(this, windows_core::from_raw_borrowed(&punkwd)).into() } - unsafe extern "system" fn GetCapabilityValue(this: *mut core::ffi::c_void, punkwd: *mut core::ffi::c_void, capname: windows_core::PCWSTR, capvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IIEWebDriverSite_Impl, - { + unsafe extern "system" fn GetCapabilityValue(this: *mut core::ffi::c_void, punkwd: *mut core::ffi::c_void, capname: windows_core::PCWSTR, capvalue: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIEWebDriverSite_Impl::GetCapabilityValue(this, windows_core::from_raw_borrowed(&punkwd), core::mem::transmute(&capname)) { Ok(ok__) => { @@ -1316,7 +1004,7 @@ impl IIEWebDriverSite_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IImageDecodeEventSink_Impl: Sized { +pub trait IImageDecodeEventSink_Impl: Sized + windows_core::IUnknownImpl { fn GetSurface(&self, nwidth: i32, nheight: i32, bfid: *const windows_core::GUID, npasses: u32, dwhints: u32) -> windows_core::Result; fn OnBeginDecode(&self, pdwevents: *mut u32, pnformats: *mut u32, ppformats: *mut *mut windows_core::GUID) -> windows_core::Result<()>; fn OnBitsComplete(&self) -> windows_core::Result<()>; @@ -1326,14 +1014,8 @@ pub trait IImageDecodeEventSink_Impl: Sized { } impl windows_core::RuntimeName for IImageDecodeEventSink {} impl IImageDecodeEventSink_Vtbl { - pub const fn new() -> IImageDecodeEventSink_Vtbl - where - Identity: IImageDecodeEventSink_Impl, - { - unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, nwidth: i32, nheight: i32, bfid: *const windows_core::GUID, npasses: u32, dwhints: u32, ppsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageDecodeEventSink_Impl, - { + pub const fn new() -> IImageDecodeEventSink_Vtbl { + unsafe extern "system" fn GetSurface(this: *mut core::ffi::c_void, nwidth: i32, nheight: i32, bfid: *const windows_core::GUID, npasses: u32, dwhints: u32, ppsurface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageDecodeEventSink_Impl::GetSurface(this, core::mem::transmute_copy(&nwidth), core::mem::transmute_copy(&nheight), core::mem::transmute_copy(&bfid), core::mem::transmute_copy(&npasses), core::mem::transmute_copy(&dwhints)) { Ok(ok__) => { @@ -1343,38 +1025,23 @@ impl IImageDecodeEventSink_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnBeginDecode(this: *mut core::ffi::c_void, pdwevents: *mut u32, pnformats: *mut u32, ppformats: *mut *mut windows_core::GUID) -> windows_core::HRESULT - where - Identity: IImageDecodeEventSink_Impl, - { + unsafe extern "system" fn OnBeginDecode(this: *mut core::ffi::c_void, pdwevents: *mut u32, pnformats: *mut u32, ppformats: *mut *mut windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageDecodeEventSink_Impl::OnBeginDecode(this, core::mem::transmute_copy(&pdwevents), core::mem::transmute_copy(&pnformats), core::mem::transmute_copy(&ppformats)).into() } - unsafe extern "system" fn OnBitsComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageDecodeEventSink_Impl, - { + unsafe extern "system" fn OnBitsComplete(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageDecodeEventSink_Impl::OnBitsComplete(this).into() } - unsafe extern "system" fn OnDecodeComplete(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IImageDecodeEventSink_Impl, - { + unsafe extern "system" fn OnDecodeComplete(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageDecodeEventSink_Impl::OnDecodeComplete(this, core::mem::transmute_copy(&hrstatus)).into() } - unsafe extern "system" fn OnPalette(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageDecodeEventSink_Impl, - { + unsafe extern "system" fn OnPalette(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageDecodeEventSink_Impl::OnPalette(this).into() } - unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, pbounds: *const super::super::Foundation::RECT, bcomplete: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IImageDecodeEventSink_Impl, - { + unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, pbounds: *const super::super::Foundation::RECT, bcomplete: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageDecodeEventSink_Impl::OnProgress(this, core::mem::transmute_copy(&pbounds), core::mem::transmute_copy(&bcomplete)).into() } @@ -1397,14 +1064,8 @@ pub trait IImageDecodeEventSink2_Impl: Sized + IImageDecodeEventSink_Impl { } impl windows_core::RuntimeName for IImageDecodeEventSink2 {} impl IImageDecodeEventSink2_Vtbl { - pub const fn new() -> IImageDecodeEventSink2_Vtbl - where - Identity: IImageDecodeEventSink2_Impl, - { - unsafe extern "system" fn IsAlphaPremultRequired(this: *mut core::ffi::c_void, pfpremultalpha: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IImageDecodeEventSink2_Impl, - { + pub const fn new() -> IImageDecodeEventSink2_Vtbl { + unsafe extern "system" fn IsAlphaPremultRequired(this: *mut core::ffi::c_void, pfpremultalpha: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageDecodeEventSink2_Impl::IsAlphaPremultRequired(this) { Ok(ok__) => { @@ -1421,7 +1082,7 @@ impl IImageDecodeEventSink2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IImageDecodeFilter_Impl: Sized { +pub trait IImageDecodeFilter_Impl: Sized + windows_core::IUnknownImpl { fn Initialize(&self, peventsink: Option<&IImageDecodeEventSink>) -> windows_core::Result<()>; fn Process(&self, pstream: Option<&super::super::System::Com::IStream>) -> windows_core::Result<()>; fn Terminate(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; @@ -1430,28 +1091,16 @@ pub trait IImageDecodeFilter_Impl: Sized { impl windows_core::RuntimeName for IImageDecodeFilter {} #[cfg(feature = "Win32_System_Com")] impl IImageDecodeFilter_Vtbl { - pub const fn new() -> IImageDecodeFilter_Vtbl - where - Identity: IImageDecodeFilter_Impl, - { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, peventsink: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageDecodeFilter_Impl, - { + pub const fn new() -> IImageDecodeFilter_Vtbl { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, peventsink: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageDecodeFilter_Impl::Initialize(this, windows_core::from_raw_borrowed(&peventsink)).into() } - unsafe extern "system" fn Process(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IImageDecodeFilter_Impl, - { + unsafe extern "system" fn Process(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageDecodeFilter_Impl::Process(this, windows_core::from_raw_borrowed(&pstream)).into() } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT - where - Identity: IImageDecodeFilter_Impl, - { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, hrstatus: windows_core::HRESULT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageDecodeFilter_Impl::Terminate(this, core::mem::transmute_copy(&hrstatus)).into() } @@ -1475,14 +1124,8 @@ pub trait IIntelliForms_Impl: Sized + super::super::System::Com::IDispatch_Impl impl windows_core::RuntimeName for IIntelliForms {} #[cfg(feature = "Win32_System_Com")] impl IIntelliForms_Vtbl { - pub const fn new() -> IIntelliForms_Vtbl - where - Identity: IIntelliForms_Impl, - { - unsafe extern "system" fn enabled(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IIntelliForms_Impl, - { + pub const fn new() -> IIntelliForms_Vtbl { + unsafe extern "system" fn enabled(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIntelliForms_Impl::enabled(this) { Ok(ok__) => { @@ -1492,10 +1135,7 @@ impl IIntelliForms_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Setenabled(this: *mut core::ffi::c_void, bval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IIntelliForms_Impl, - { + unsafe extern "system" fn Setenabled(this: *mut core::ffi::c_void, bval: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIntelliForms_Impl::Setenabled(this, core::mem::transmute_copy(&bval)).into() } @@ -1509,19 +1149,13 @@ impl IIntelliForms_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IInternetExplorerManager_Impl: Sized { +pub trait IInternetExplorerManager_Impl: Sized + windows_core::IUnknownImpl { fn CreateObject(&self, dwconfig: u32, pszurl: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IInternetExplorerManager {} impl IInternetExplorerManager_Vtbl { - pub const fn new() -> IInternetExplorerManager_Vtbl - where - Identity: IInternetExplorerManager_Impl, - { - unsafe extern "system" fn CreateObject(this: *mut core::ffi::c_void, dwconfig: u32, pszurl: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetExplorerManager_Impl, - { + pub const fn new() -> IInternetExplorerManager_Vtbl { + unsafe extern "system" fn CreateObject(this: *mut core::ffi::c_void, dwconfig: u32, pszurl: windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetExplorerManager_Impl::CreateObject(this, core::mem::transmute_copy(&dwconfig), core::mem::transmute(&pszurl), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } @@ -1531,19 +1165,13 @@ impl IInternetExplorerManager_Vtbl { iid == &::IID } } -pub trait IInternetExplorerManager2_Impl: Sized { +pub trait IInternetExplorerManager2_Impl: Sized + windows_core::IUnknownImpl { fn EnumFrameWindows(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IInternetExplorerManager2 {} impl IInternetExplorerManager2_Vtbl { - pub const fn new() -> IInternetExplorerManager2_Vtbl - where - Identity: IInternetExplorerManager2_Impl, - { - unsafe extern "system" fn EnumFrameWindows(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IInternetExplorerManager2_Impl, - { + pub const fn new() -> IInternetExplorerManager2_Vtbl { + unsafe extern "system" fn EnumFrameWindows(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInternetExplorerManager2_Impl::EnumFrameWindows(this) { Ok(ok__) => { @@ -1577,21 +1205,12 @@ pub trait ILayoutRect_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for ILayoutRect {} #[cfg(feature = "Win32_System_Com")] impl ILayoutRect_Vtbl { - pub const fn new() -> ILayoutRect_Vtbl - where - Identity: ILayoutRect_Impl, - { - unsafe extern "system" fn SetnextRect(this: *mut core::ffi::c_void, bstrelementid: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + pub const fn new() -> ILayoutRect_Vtbl { + unsafe extern "system" fn SetnextRect(this: *mut core::ffi::c_void, bstrelementid: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILayoutRect_Impl::SetnextRect(this, core::mem::transmute(&bstrelementid)).into() } - unsafe extern "system" fn nextRect(this: *mut core::ffi::c_void, pbstrelementid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + unsafe extern "system" fn nextRect(this: *mut core::ffi::c_void, pbstrelementid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILayoutRect_Impl::nextRect(this) { Ok(ok__) => { @@ -1601,17 +1220,11 @@ impl ILayoutRect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetcontentSrc(this: *mut core::ffi::c_void, varcontentsrc: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + unsafe extern "system" fn SetcontentSrc(this: *mut core::ffi::c_void, varcontentsrc: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILayoutRect_Impl::SetcontentSrc(this, core::mem::transmute(&varcontentsrc)).into() } - unsafe extern "system" fn contentSrc(this: *mut core::ffi::c_void, pvarcontentsrc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + unsafe extern "system" fn contentSrc(this: *mut core::ffi::c_void, pvarcontentsrc: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILayoutRect_Impl::contentSrc(this) { Ok(ok__) => { @@ -1621,17 +1234,11 @@ impl ILayoutRect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SethonorPageBreaks(this: *mut core::ffi::c_void, v: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + unsafe extern "system" fn SethonorPageBreaks(this: *mut core::ffi::c_void, v: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILayoutRect_Impl::SethonorPageBreaks(this, core::mem::transmute_copy(&v)).into() } - unsafe extern "system" fn honorPageBreaks(this: *mut core::ffi::c_void, p: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + unsafe extern "system" fn honorPageBreaks(this: *mut core::ffi::c_void, p: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILayoutRect_Impl::honorPageBreaks(this) { Ok(ok__) => { @@ -1641,17 +1248,11 @@ impl ILayoutRect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SethonorPageRules(this: *mut core::ffi::c_void, v: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + unsafe extern "system" fn SethonorPageRules(this: *mut core::ffi::c_void, v: super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILayoutRect_Impl::SethonorPageRules(this, core::mem::transmute_copy(&v)).into() } - unsafe extern "system" fn honorPageRules(this: *mut core::ffi::c_void, p: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + unsafe extern "system" fn honorPageRules(this: *mut core::ffi::c_void, p: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILayoutRect_Impl::honorPageRules(this) { Ok(ok__) => { @@ -1661,17 +1262,11 @@ impl ILayoutRect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetnextRectElement(this: *mut core::ffi::c_void, pelem: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + unsafe extern "system" fn SetnextRectElement(this: *mut core::ffi::c_void, pelem: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILayoutRect_Impl::SetnextRectElement(this, windows_core::from_raw_borrowed(&pelem)).into() } - unsafe extern "system" fn nextRectElement(this: *mut core::ffi::c_void, ppelem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + unsafe extern "system" fn nextRectElement(this: *mut core::ffi::c_void, ppelem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILayoutRect_Impl::nextRectElement(this) { Ok(ok__) => { @@ -1681,10 +1276,7 @@ impl ILayoutRect_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn contentDocument(this: *mut core::ffi::c_void, pdoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ILayoutRect_Impl, - { + unsafe extern "system" fn contentDocument(this: *mut core::ffi::c_void, pdoc: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILayoutRect_Impl::contentDocument(this) { Ok(ok__) => { @@ -1713,35 +1305,23 @@ impl ILayoutRect_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IMapMIMEToCLSID_Impl: Sized { +pub trait IMapMIMEToCLSID_Impl: Sized + windows_core::IUnknownImpl { fn EnableDefaultMappings(&self, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn MapMIMEToCLSID(&self, pszmimetype: &windows_core::PCWSTR, pclsid: *const windows_core::GUID) -> windows_core::Result<()>; fn SetMapping(&self, pszmimetype: &windows_core::PCWSTR, dwmapmode: u32, clsid: *const windows_core::GUID) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMapMIMEToCLSID {} impl IMapMIMEToCLSID_Vtbl { - pub const fn new() -> IMapMIMEToCLSID_Vtbl - where - Identity: IMapMIMEToCLSID_Impl, - { - unsafe extern "system" fn EnableDefaultMappings(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IMapMIMEToCLSID_Impl, - { + pub const fn new() -> IMapMIMEToCLSID_Vtbl { + unsafe extern "system" fn EnableDefaultMappings(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMapMIMEToCLSID_Impl::EnableDefaultMappings(this, core::mem::transmute_copy(&benable)).into() } - unsafe extern "system" fn MapMIMEToCLSID(this: *mut core::ffi::c_void, pszmimetype: windows_core::PCWSTR, pclsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMapMIMEToCLSID_Impl, - { + unsafe extern "system" fn MapMIMEToCLSID(this: *mut core::ffi::c_void, pszmimetype: windows_core::PCWSTR, pclsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMapMIMEToCLSID_Impl::MapMIMEToCLSID(this, core::mem::transmute(&pszmimetype), core::mem::transmute_copy(&pclsid)).into() } - unsafe extern "system" fn SetMapping(this: *mut core::ffi::c_void, pszmimetype: windows_core::PCWSTR, dwmapmode: u32, clsid: *const windows_core::GUID) -> windows_core::HRESULT - where - Identity: IMapMIMEToCLSID_Impl, - { + unsafe extern "system" fn SetMapping(this: *mut core::ffi::c_void, pszmimetype: windows_core::PCWSTR, dwmapmode: u32, clsid: *const windows_core::GUID) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMapMIMEToCLSID_Impl::SetMapping(this, core::mem::transmute(&pszmimetype), core::mem::transmute_copy(&dwmapmode), core::mem::transmute_copy(&clsid)).into() } @@ -1756,27 +1336,18 @@ impl IMapMIMEToCLSID_Vtbl { iid == &::IID } } -pub trait IMediaActivityNotifySite_Impl: Sized { +pub trait IMediaActivityNotifySite_Impl: Sized + windows_core::IUnknownImpl { fn OnMediaActivityStarted(&self, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> windows_core::Result<()>; fn OnMediaActivityStopped(&self, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IMediaActivityNotifySite {} impl IMediaActivityNotifySite_Vtbl { - pub const fn new() -> IMediaActivityNotifySite_Vtbl - where - Identity: IMediaActivityNotifySite_Impl, - { - unsafe extern "system" fn OnMediaActivityStarted(this: *mut core::ffi::c_void, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> windows_core::HRESULT - where - Identity: IMediaActivityNotifySite_Impl, - { + pub const fn new() -> IMediaActivityNotifySite_Vtbl { + unsafe extern "system" fn OnMediaActivityStarted(this: *mut core::ffi::c_void, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaActivityNotifySite_Impl::OnMediaActivityStarted(this, core::mem::transmute_copy(&mediaactivitytype)).into() } - unsafe extern "system" fn OnMediaActivityStopped(this: *mut core::ffi::c_void, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> windows_core::HRESULT - where - Identity: IMediaActivityNotifySite_Impl, - { + unsafe extern "system" fn OnMediaActivityStopped(this: *mut core::ffi::c_void, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaActivityNotifySite_Impl::OnMediaActivityStopped(this, core::mem::transmute_copy(&mediaactivitytype)).into() } @@ -1790,21 +1361,15 @@ impl IMediaActivityNotifySite_Vtbl { iid == &::IID } } -pub trait IOpenService_Impl: Sized { +pub trait IOpenService_Impl: Sized + windows_core::IUnknownImpl { fn IsDefault(&self) -> windows_core::Result; fn SetDefault(&self, fdefault: super::super::Foundation::BOOL, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn GetID(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOpenService {} impl IOpenService_Vtbl { - pub const fn new() -> IOpenService_Vtbl - where - Identity: IOpenService_Impl, - { - unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pfisdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpenService_Impl, - { + pub const fn new() -> IOpenService_Vtbl { + unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pfisdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenService_Impl::IsDefault(this) { Ok(ok__) => { @@ -1814,17 +1379,11 @@ impl IOpenService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void, fdefault: super::super::Foundation::BOOL, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IOpenService_Impl, - { + unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void, fdefault: super::super::Foundation::BOOL, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenService_Impl::SetDefault(this, core::mem::transmute_copy(&fdefault), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenService_Impl, - { + unsafe extern "system" fn GetID(this: *mut core::ffi::c_void, pbstrid: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenService_Impl::GetID(this) { Ok(ok__) => { @@ -1870,21 +1429,12 @@ pub trait IOpenServiceActivity_Impl: Sized + IOpenService_Impl { impl windows_core::RuntimeName for IOpenServiceActivity {} #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IOpenServiceActivity_Vtbl { - pub const fn new() -> IOpenServiceActivity_Vtbl - where - Identity: IOpenServiceActivity_Impl, - { - unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + pub const fn new() -> IOpenServiceActivity_Vtbl { + unsafe extern "system" fn Execute(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenServiceActivity_Impl::Execute(this, windows_core::from_raw_borrowed(&pinput), windows_core::from_raw_borrowed(&poutput)).into() } - unsafe extern "system" fn CanExecute(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void, pfcanexecute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn CanExecute(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void, pfcanexecute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::CanExecute(this, windows_core::from_raw_borrowed(&pinput), windows_core::from_raw_borrowed(&poutput)) { Ok(ok__) => { @@ -1894,10 +1444,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanExecuteType(this: *mut core::ffi::c_void, r#type: OpenServiceActivityContentType, pfcanexecute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn CanExecuteType(this: *mut core::ffi::c_void, r#type: OpenServiceActivityContentType, pfcanexecute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::CanExecuteType(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -1907,17 +1454,11 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Preview(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn Preview(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenServiceActivity_Impl::Preview(this, windows_core::from_raw_borrowed(&pinput), windows_core::from_raw_borrowed(&poutput)).into() } - unsafe extern "system" fn CanPreview(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void, pfcanpreview: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn CanPreview(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void, pfcanpreview: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::CanPreview(this, windows_core::from_raw_borrowed(&pinput), windows_core::from_raw_borrowed(&poutput)) { Ok(ok__) => { @@ -1927,10 +1468,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn CanPreviewType(this: *mut core::ffi::c_void, r#type: OpenServiceActivityContentType, pfcanpreview: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn CanPreviewType(this: *mut core::ffi::c_void, r#type: OpenServiceActivityContentType, pfcanpreview: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::CanPreviewType(this, core::mem::transmute_copy(&r#type)) { Ok(ok__) => { @@ -1940,10 +1478,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetStatusText(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn GetStatusText(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, pbstrstatustext: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetStatusText(this, windows_core::from_raw_borrowed(&pinput)) { Ok(ok__) => { @@ -1953,10 +1488,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetHomepageUrl(this: *mut core::ffi::c_void, pbstrhomepageurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn GetHomepageUrl(this: *mut core::ffi::c_void, pbstrhomepageurl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetHomepageUrl(this) { Ok(ok__) => { @@ -1966,10 +1498,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pbstrdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn GetDisplayName(this: *mut core::ffi::c_void, pbstrdisplayname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetDisplayName(this) { Ok(ok__) => { @@ -1979,10 +1508,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn GetDescription(this: *mut core::ffi::c_void, pbstrdescription: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetDescription(this) { Ok(ok__) => { @@ -1992,10 +1518,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetCategoryName(this: *mut core::ffi::c_void, pbstrcategoryname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn GetCategoryName(this: *mut core::ffi::c_void, pbstrcategoryname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetCategoryName(this) { Ok(ok__) => { @@ -2005,10 +1528,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIconPath(this: *mut core::ffi::c_void, pbstriconpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn GetIconPath(this: *mut core::ffi::c_void, pbstriconpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetIconPath(this) { Ok(ok__) => { @@ -2018,10 +1538,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, fsmallicon: super::super::Foundation::BOOL, phicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, fsmallicon: super::super::Foundation::BOOL, phicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetIcon(this, core::mem::transmute_copy(&fsmallicon)) { Ok(ok__) => { @@ -2031,10 +1548,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDescriptionFilePath(this: *mut core::ffi::c_void, pbstrxmlpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn GetDescriptionFilePath(this: *mut core::ffi::c_void, pbstrxmlpath: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetDescriptionFilePath(this) { Ok(ok__) => { @@ -2044,10 +1558,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDownloadUrl(this: *mut core::ffi::c_void, pbstrxmluri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn GetDownloadUrl(this: *mut core::ffi::c_void, pbstrxmluri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetDownloadUrl(this) { Ok(ok__) => { @@ -2057,10 +1568,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetInstallUrl(this: *mut core::ffi::c_void, pbstrinstalluri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn GetInstallUrl(this: *mut core::ffi::c_void, pbstrinstalluri: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetInstallUrl(this) { Ok(ok__) => { @@ -2070,10 +1578,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pfisenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pfisenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::IsEnabled(this) { Ok(ok__) => { @@ -2083,10 +1588,7 @@ impl IOpenServiceActivity_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpenServiceActivity_Impl, - { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenServiceActivity_Impl::SetEnabled(this, core::mem::transmute_copy(&fenable)).into() } @@ -2116,7 +1618,7 @@ impl IOpenServiceActivity_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IOpenServiceActivityCategory_Impl: Sized { +pub trait IOpenServiceActivityCategory_Impl: Sized + windows_core::IUnknownImpl { fn HasDefaultActivity(&self) -> windows_core::Result; fn GetDefaultActivity(&self) -> windows_core::Result; fn SetDefaultActivity(&self, pactivity: Option<&IOpenServiceActivity>, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; @@ -2125,14 +1627,8 @@ pub trait IOpenServiceActivityCategory_Impl: Sized { } impl windows_core::RuntimeName for IOpenServiceActivityCategory {} impl IOpenServiceActivityCategory_Vtbl { - pub const fn new() -> IOpenServiceActivityCategory_Vtbl - where - Identity: IOpenServiceActivityCategory_Impl, - { - unsafe extern "system" fn HasDefaultActivity(this: *mut core::ffi::c_void, pfhasdefaultactivity: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityCategory_Impl, - { + pub const fn new() -> IOpenServiceActivityCategory_Vtbl { + unsafe extern "system" fn HasDefaultActivity(this: *mut core::ffi::c_void, pfhasdefaultactivity: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityCategory_Impl::HasDefaultActivity(this) { Ok(ok__) => { @@ -2142,10 +1638,7 @@ impl IOpenServiceActivityCategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultActivity(this: *mut core::ffi::c_void, ppdefaultactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityCategory_Impl, - { + unsafe extern "system" fn GetDefaultActivity(this: *mut core::ffi::c_void, ppdefaultactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityCategory_Impl::GetDefaultActivity(this) { Ok(ok__) => { @@ -2155,17 +1648,11 @@ impl IOpenServiceActivityCategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultActivity(this: *mut core::ffi::c_void, pactivity: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityCategory_Impl, - { + unsafe extern "system" fn SetDefaultActivity(this: *mut core::ffi::c_void, pactivity: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenServiceActivityCategory_Impl::SetDefaultActivity(this, windows_core::from_raw_borrowed(&pactivity), core::mem::transmute_copy(&hwnd)).into() } - unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityCategory_Impl, - { + unsafe extern "system" fn GetName(this: *mut core::ffi::c_void, pbstrname: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityCategory_Impl::GetName(this) { Ok(ok__) => { @@ -2175,10 +1662,7 @@ impl IOpenServiceActivityCategory_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActivityEnumerator(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void, ppenumactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityCategory_Impl, - { + unsafe extern "system" fn GetActivityEnumerator(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void, ppenumactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityCategory_Impl::GetActivityEnumerator(this, windows_core::from_raw_borrowed(&pinput), windows_core::from_raw_borrowed(&poutput)) { Ok(ok__) => { @@ -2201,21 +1685,15 @@ impl IOpenServiceActivityCategory_Vtbl { iid == &::IID } } -pub trait IOpenServiceActivityInput_Impl: Sized { +pub trait IOpenServiceActivityInput_Impl: Sized + windows_core::IUnknownImpl { fn GetVariable(&self, pwzvariablename: &windows_core::PCWSTR, pwzvariabletype: &windows_core::PCWSTR) -> windows_core::Result; fn HasVariable(&self, pwzvariablename: &windows_core::PCWSTR, pwzvariabletype: &windows_core::PCWSTR) -> windows_core::Result; fn GetType(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IOpenServiceActivityInput {} impl IOpenServiceActivityInput_Vtbl { - pub const fn new() -> IOpenServiceActivityInput_Vtbl - where - Identity: IOpenServiceActivityInput_Impl, - { - unsafe extern "system" fn GetVariable(this: *mut core::ffi::c_void, pwzvariablename: windows_core::PCWSTR, pwzvariabletype: windows_core::PCWSTR, pbstrvariablecontent: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityInput_Impl, - { + pub const fn new() -> IOpenServiceActivityInput_Vtbl { + unsafe extern "system" fn GetVariable(this: *mut core::ffi::c_void, pwzvariablename: windows_core::PCWSTR, pwzvariabletype: windows_core::PCWSTR, pbstrvariablecontent: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityInput_Impl::GetVariable(this, core::mem::transmute(&pwzvariablename), core::mem::transmute(&pwzvariabletype)) { Ok(ok__) => { @@ -2225,10 +1703,7 @@ impl IOpenServiceActivityInput_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn HasVariable(this: *mut core::ffi::c_void, pwzvariablename: windows_core::PCWSTR, pwzvariabletype: windows_core::PCWSTR, pfhasvariable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityInput_Impl, - { + unsafe extern "system" fn HasVariable(this: *mut core::ffi::c_void, pwzvariablename: windows_core::PCWSTR, pwzvariabletype: windows_core::PCWSTR, pfhasvariable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityInput_Impl::HasVariable(this, core::mem::transmute(&pwzvariablename), core::mem::transmute(&pwzvariabletype)) { Ok(ok__) => { @@ -2238,10 +1713,7 @@ impl IOpenServiceActivityInput_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut OpenServiceActivityContentType) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityInput_Impl, - { + unsafe extern "system" fn GetType(this: *mut core::ffi::c_void, ptype: *mut OpenServiceActivityContentType) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityInput_Impl::GetType(this) { Ok(ok__) => { @@ -2262,7 +1734,7 @@ impl IOpenServiceActivityInput_Vtbl { iid == &::IID } } -pub trait IOpenServiceActivityManager_Impl: Sized { +pub trait IOpenServiceActivityManager_Impl: Sized + windows_core::IUnknownImpl { fn GetCategoryEnumerator(&self, etype: OpenServiceActivityContentType) -> windows_core::Result; fn GetActivityByID(&self, pwzactivityid: &windows_core::PCWSTR) -> windows_core::Result; fn GetActivityByHomepageAndCategory(&self, pwzhomepage: &windows_core::PCWSTR, pwzcategory: &windows_core::PCWSTR) -> windows_core::Result; @@ -2270,14 +1742,8 @@ pub trait IOpenServiceActivityManager_Impl: Sized { } impl windows_core::RuntimeName for IOpenServiceActivityManager {} impl IOpenServiceActivityManager_Vtbl { - pub const fn new() -> IOpenServiceActivityManager_Vtbl - where - Identity: IOpenServiceActivityManager_Impl, - { - unsafe extern "system" fn GetCategoryEnumerator(this: *mut core::ffi::c_void, etype: OpenServiceActivityContentType, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityManager_Impl, - { + pub const fn new() -> IOpenServiceActivityManager_Vtbl { + unsafe extern "system" fn GetCategoryEnumerator(this: *mut core::ffi::c_void, etype: OpenServiceActivityContentType, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityManager_Impl::GetCategoryEnumerator(this, core::mem::transmute_copy(&etype)) { Ok(ok__) => { @@ -2287,10 +1753,7 @@ impl IOpenServiceActivityManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActivityByID(this: *mut core::ffi::c_void, pwzactivityid: windows_core::PCWSTR, ppactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityManager_Impl, - { + unsafe extern "system" fn GetActivityByID(this: *mut core::ffi::c_void, pwzactivityid: windows_core::PCWSTR, ppactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityManager_Impl::GetActivityByID(this, core::mem::transmute(&pwzactivityid)) { Ok(ok__) => { @@ -2300,10 +1763,7 @@ impl IOpenServiceActivityManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetActivityByHomepageAndCategory(this: *mut core::ffi::c_void, pwzhomepage: windows_core::PCWSTR, pwzcategory: windows_core::PCWSTR, ppactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityManager_Impl, - { + unsafe extern "system" fn GetActivityByHomepageAndCategory(this: *mut core::ffi::c_void, pwzhomepage: windows_core::PCWSTR, pwzcategory: windows_core::PCWSTR, ppactivity: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityManager_Impl::GetActivityByHomepageAndCategory(this, core::mem::transmute(&pwzhomepage), core::mem::transmute(&pwzcategory)) { Ok(ok__) => { @@ -2313,10 +1773,7 @@ impl IOpenServiceActivityManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetVersionCookie(this: *mut core::ffi::c_void, pdwversioncookie: *mut u32) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityManager_Impl, - { + unsafe extern "system" fn GetVersionCookie(this: *mut core::ffi::c_void, pdwversioncookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityManager_Impl::GetVersionCookie(this) { Ok(ok__) => { @@ -2339,7 +1796,7 @@ impl IOpenServiceActivityManager_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait IOpenServiceActivityOutputContext_Impl: Sized { +pub trait IOpenServiceActivityOutputContext_Impl: Sized + windows_core::IUnknownImpl { fn Navigate(&self, pwzuri: &windows_core::PCWSTR, pwzmethod: &windows_core::PCWSTR, pwzheaders: &windows_core::PCWSTR, ppostdata: Option<&super::super::System::Com::IStream>) -> windows_core::Result<()>; fn CanNavigate(&self, pwzuri: &windows_core::PCWSTR, pwzmethod: &windows_core::PCWSTR, pwzheaders: &windows_core::PCWSTR, ppostdata: Option<&super::super::System::Com::IStream>) -> windows_core::Result; } @@ -2347,21 +1804,12 @@ pub trait IOpenServiceActivityOutputContext_Impl: Sized { impl windows_core::RuntimeName for IOpenServiceActivityOutputContext {} #[cfg(feature = "Win32_System_Com")] impl IOpenServiceActivityOutputContext_Vtbl { - pub const fn new() -> IOpenServiceActivityOutputContext_Vtbl - where - Identity: IOpenServiceActivityOutputContext_Impl, - { - unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, pwzuri: windows_core::PCWSTR, pwzmethod: windows_core::PCWSTR, pwzheaders: windows_core::PCWSTR, ppostdata: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityOutputContext_Impl, - { + pub const fn new() -> IOpenServiceActivityOutputContext_Vtbl { + unsafe extern "system" fn Navigate(this: *mut core::ffi::c_void, pwzuri: windows_core::PCWSTR, pwzmethod: windows_core::PCWSTR, pwzheaders: windows_core::PCWSTR, ppostdata: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenServiceActivityOutputContext_Impl::Navigate(this, core::mem::transmute(&pwzuri), core::mem::transmute(&pwzmethod), core::mem::transmute(&pwzheaders), windows_core::from_raw_borrowed(&ppostdata)).into() } - unsafe extern "system" fn CanNavigate(this: *mut core::ffi::c_void, pwzuri: windows_core::PCWSTR, pwzmethod: windows_core::PCWSTR, pwzheaders: windows_core::PCWSTR, ppostdata: *mut core::ffi::c_void, pfcannavigate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IOpenServiceActivityOutputContext_Impl, - { + unsafe extern "system" fn CanNavigate(this: *mut core::ffi::c_void, pwzuri: windows_core::PCWSTR, pwzmethod: windows_core::PCWSTR, pwzheaders: windows_core::PCWSTR, ppostdata: *mut core::ffi::c_void, pfcannavigate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityOutputContext_Impl::CanNavigate(this, core::mem::transmute(&pwzuri), core::mem::transmute(&pwzmethod), core::mem::transmute(&pwzheaders), windows_core::from_raw_borrowed(&ppostdata)) { Ok(ok__) => { @@ -2381,21 +1829,15 @@ impl IOpenServiceActivityOutputContext_Vtbl { iid == &::IID } } -pub trait IOpenServiceManager_Impl: Sized { +pub trait IOpenServiceManager_Impl: Sized + windows_core::IUnknownImpl { fn InstallService(&self, pwzserviceurl: &windows_core::PCWSTR) -> windows_core::Result; fn UninstallService(&self, pservice: Option<&IOpenService>) -> windows_core::Result<()>; fn GetServiceByID(&self, pwzid: &windows_core::PCWSTR) -> windows_core::Result; } impl windows_core::RuntimeName for IOpenServiceManager {} impl IOpenServiceManager_Vtbl { - pub const fn new() -> IOpenServiceManager_Vtbl - where - Identity: IOpenServiceManager_Impl, - { - unsafe extern "system" fn InstallService(this: *mut core::ffi::c_void, pwzserviceurl: windows_core::PCWSTR, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceManager_Impl, - { + pub const fn new() -> IOpenServiceManager_Vtbl { + unsafe extern "system" fn InstallService(this: *mut core::ffi::c_void, pwzserviceurl: windows_core::PCWSTR, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceManager_Impl::InstallService(this, core::mem::transmute(&pwzserviceurl)) { Ok(ok__) => { @@ -2405,17 +1847,11 @@ impl IOpenServiceManager_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn UninstallService(this: *mut core::ffi::c_void, pservice: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceManager_Impl, - { + unsafe extern "system" fn UninstallService(this: *mut core::ffi::c_void, pservice: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenServiceManager_Impl::UninstallService(this, windows_core::from_raw_borrowed(&pservice)).into() } - unsafe extern "system" fn GetServiceByID(this: *mut core::ffi::c_void, pwzid: windows_core::PCWSTR, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IOpenServiceManager_Impl, - { + unsafe extern "system" fn GetServiceByID(this: *mut core::ffi::c_void, pwzid: windows_core::PCWSTR, ppservice: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceManager_Impl::GetServiceByID(this, core::mem::transmute(&pwzid)) { Ok(ok__) => { @@ -2436,13 +1872,10 @@ impl IOpenServiceManager_Vtbl { iid == &::IID } } -pub trait IPeerFactory_Impl: Sized {} +pub trait IPeerFactory_Impl: Sized + windows_core::IUnknownImpl {} impl windows_core::RuntimeName for IPeerFactory {} impl IPeerFactory_Vtbl { - pub const fn new() -> IPeerFactory_Vtbl - where - Identity: IPeerFactory_Impl, - { + pub const fn new() -> IPeerFactory_Vtbl { Self { base__: windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -2460,35 +1893,20 @@ pub trait IPersistHistory_Impl: Sized + super::super::System::Com::IPersist_Impl impl windows_core::RuntimeName for IPersistHistory {} #[cfg(feature = "Win32_System_Com")] impl IPersistHistory_Vtbl { - pub const fn new() -> IPersistHistory_Vtbl - where - Identity: IPersistHistory_Impl, - { - unsafe extern "system" fn LoadHistory(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistHistory_Impl, - { + pub const fn new() -> IPersistHistory_Vtbl { + unsafe extern "system" fn LoadHistory(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistHistory_Impl::LoadHistory(this, windows_core::from_raw_borrowed(&pstream), windows_core::from_raw_borrowed(&pbc)).into() } - unsafe extern "system" fn SaveHistory(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPersistHistory_Impl, - { + unsafe extern "system" fn SaveHistory(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistHistory_Impl::SaveHistory(this, windows_core::from_raw_borrowed(&pstream)).into() } - unsafe extern "system" fn SetPositionCookie(this: *mut core::ffi::c_void, dwpositioncookie: u32) -> windows_core::HRESULT - where - Identity: IPersistHistory_Impl, - { + unsafe extern "system" fn SetPositionCookie(this: *mut core::ffi::c_void, dwpositioncookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistHistory_Impl::SetPositionCookie(this, core::mem::transmute_copy(&dwpositioncookie)).into() } - unsafe extern "system" fn GetPositionCookie(this: *mut core::ffi::c_void, pdwpositioncookie: *mut u32) -> windows_core::HRESULT - where - Identity: IPersistHistory_Impl, - { + unsafe extern "system" fn GetPositionCookie(this: *mut core::ffi::c_void, pdwpositioncookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPersistHistory_Impl::GetPositionCookie(this) { Ok(ok__) => { @@ -2510,19 +1928,13 @@ impl IPersistHistory_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IPrintTaskRequestFactory_Impl: Sized { +pub trait IPrintTaskRequestFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreatePrintTaskRequest(&self, pprinttaskrequesthandler: Option<&IPrintTaskRequestHandler>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintTaskRequestFactory {} impl IPrintTaskRequestFactory_Vtbl { - pub const fn new() -> IPrintTaskRequestFactory_Vtbl - where - Identity: IPrintTaskRequestFactory_Impl, - { - unsafe extern "system" fn CreatePrintTaskRequest(this: *mut core::ffi::c_void, pprinttaskrequesthandler: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintTaskRequestFactory_Impl, - { + pub const fn new() -> IPrintTaskRequestFactory_Vtbl { + unsafe extern "system" fn CreatePrintTaskRequest(this: *mut core::ffi::c_void, pprinttaskrequesthandler: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskRequestFactory_Impl::CreatePrintTaskRequest(this, windows_core::from_raw_borrowed(&pprinttaskrequesthandler)).into() } @@ -2532,19 +1944,13 @@ impl IPrintTaskRequestFactory_Vtbl { iid == &::IID } } -pub trait IPrintTaskRequestHandler_Impl: Sized { +pub trait IPrintTaskRequestHandler_Impl: Sized + windows_core::IUnknownImpl { fn HandlePrintTaskRequest(&self, pprinttaskrequest: Option<&windows_core::IInspectable>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IPrintTaskRequestHandler {} impl IPrintTaskRequestHandler_Vtbl { - pub const fn new() -> IPrintTaskRequestHandler_Vtbl - where - Identity: IPrintTaskRequestHandler_Impl, - { - unsafe extern "system" fn HandlePrintTaskRequest(this: *mut core::ffi::c_void, pprinttaskrequest: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IPrintTaskRequestHandler_Impl, - { + pub const fn new() -> IPrintTaskRequestHandler_Vtbl { + unsafe extern "system" fn HandlePrintTaskRequest(this: *mut core::ffi::c_void, pprinttaskrequest: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintTaskRequestHandler_Impl::HandlePrintTaskRequest(this, windows_core::from_raw_borrowed(&pprinttaskrequest)).into() } @@ -2554,27 +1960,18 @@ impl IPrintTaskRequestHandler_Vtbl { iid == &::IID } } -pub trait IScrollableContextMenu_Impl: Sized { +pub trait IScrollableContextMenu_Impl: Sized + windows_core::IUnknownImpl { fn AddItem(&self, itemtext: &windows_core::PCWSTR, cmdid: u32) -> windows_core::Result<()>; fn ShowModal(&self, x: i32, y: i32) -> windows_core::Result; } impl windows_core::RuntimeName for IScrollableContextMenu {} impl IScrollableContextMenu_Vtbl { - pub const fn new() -> IScrollableContextMenu_Vtbl - where - Identity: IScrollableContextMenu_Impl, - { - unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, itemtext: windows_core::PCWSTR, cmdid: u32) -> windows_core::HRESULT - where - Identity: IScrollableContextMenu_Impl, - { + pub const fn new() -> IScrollableContextMenu_Vtbl { + unsafe extern "system" fn AddItem(this: *mut core::ffi::c_void, itemtext: windows_core::PCWSTR, cmdid: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScrollableContextMenu_Impl::AddItem(this, core::mem::transmute(&itemtext), core::mem::transmute_copy(&cmdid)).into() } - unsafe extern "system" fn ShowModal(this: *mut core::ffi::c_void, x: i32, y: i32, cmdid: *mut u32) -> windows_core::HRESULT - where - Identity: IScrollableContextMenu_Impl, - { + unsafe extern "system" fn ShowModal(this: *mut core::ffi::c_void, x: i32, y: i32, cmdid: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScrollableContextMenu_Impl::ShowModal(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)) { Ok(ok__) => { @@ -2596,21 +1993,12 @@ pub trait IScrollableContextMenu2_Impl: Sized + IScrollableContextMenu_Impl { } impl windows_core::RuntimeName for IScrollableContextMenu2 {} impl IScrollableContextMenu2_Vtbl { - pub const fn new() -> IScrollableContextMenu2_Vtbl - where - Identity: IScrollableContextMenu2_Impl, - { - unsafe extern "system" fn AddSeparator(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IScrollableContextMenu2_Impl, - { + pub const fn new() -> IScrollableContextMenu2_Vtbl { + unsafe extern "system" fn AddSeparator(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScrollableContextMenu2_Impl::AddSeparator(this).into() } - unsafe extern "system" fn SetPlacement(this: *mut core::ffi::c_void, scmp: SCROLLABLECONTEXTMENU_PLACEMENT) -> windows_core::HRESULT - where - Identity: IScrollableContextMenu2_Impl, - { + unsafe extern "system" fn SetPlacement(this: *mut core::ffi::c_void, scmp: SCROLLABLECONTEXTMENU_PLACEMENT) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScrollableContextMenu2_Impl::SetPlacement(this, core::mem::transmute_copy(&scmp)).into() } @@ -2625,7 +2013,7 @@ impl IScrollableContextMenu2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ISniffStream_Impl: Sized { +pub trait ISniffStream_Impl: Sized + windows_core::IUnknownImpl { fn Init(&self, pstream: Option<&super::super::System::Com::IStream>) -> windows_core::Result<()>; fn Peek(&self, pbuffer: *mut core::ffi::c_void, nbytes: u32, pnbytesread: *mut u32) -> windows_core::Result<()>; } @@ -2633,21 +2021,12 @@ pub trait ISniffStream_Impl: Sized { impl windows_core::RuntimeName for ISniffStream {} #[cfg(feature = "Win32_System_Com")] impl ISniffStream_Vtbl { - pub const fn new() -> ISniffStream_Vtbl - where - Identity: ISniffStream_Impl, - { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISniffStream_Impl, - { + pub const fn new() -> ISniffStream_Vtbl { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISniffStream_Impl::Init(this, windows_core::from_raw_borrowed(&pstream)).into() } - unsafe extern "system" fn Peek(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void, nbytes: u32, pnbytesread: *mut u32) -> windows_core::HRESULT - where - Identity: ISniffStream_Impl, - { + unsafe extern "system" fn Peek(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void, nbytes: u32, pnbytesread: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISniffStream_Impl::Peek(this, core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&nbytes), core::mem::transmute_copy(&pnbytesread)).into() } @@ -2657,27 +2036,18 @@ impl ISniffStream_Vtbl { iid == &::IID } } -pub trait ISurfacePresenterFlip_Impl: Sized { +pub trait ISurfacePresenterFlip_Impl: Sized + windows_core::IUnknownImpl { fn Present(&self) -> windows_core::Result<()>; fn GetBuffer(&self, backbufferindex: u32, riid: *const windows_core::GUID, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISurfacePresenterFlip {} impl ISurfacePresenterFlip_Vtbl { - pub const fn new() -> ISurfacePresenterFlip_Vtbl - where - Identity: ISurfacePresenterFlip_Impl, - { - unsafe extern "system" fn Present(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISurfacePresenterFlip_Impl, - { + pub const fn new() -> ISurfacePresenterFlip_Vtbl { + unsafe extern "system" fn Present(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurfacePresenterFlip_Impl::Present(this).into() } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, backbufferindex: u32, riid: *const windows_core::GUID, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISurfacePresenterFlip_Impl, - { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, backbufferindex: u32, riid: *const windows_core::GUID, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurfacePresenterFlip_Impl::GetBuffer(this, core::mem::transmute_copy(&backbufferindex), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppbuffer)).into() } @@ -2688,21 +2058,15 @@ impl ISurfacePresenterFlip_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait ISurfacePresenterFlip2_Impl: Sized { +pub trait ISurfacePresenterFlip2_Impl: Sized + windows_core::IUnknownImpl { fn SetRotation(&self, dxgirotation: super::super::Graphics::Dxgi::Common::DXGI_MODE_ROTATION) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl windows_core::RuntimeName for ISurfacePresenterFlip2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ISurfacePresenterFlip2_Vtbl { - pub const fn new() -> ISurfacePresenterFlip2_Vtbl - where - Identity: ISurfacePresenterFlip2_Impl, - { - unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, dxgirotation: super::super::Graphics::Dxgi::Common::DXGI_MODE_ROTATION) -> windows_core::HRESULT - where - Identity: ISurfacePresenterFlip2_Impl, - { + pub const fn new() -> ISurfacePresenterFlip2_Vtbl { + unsafe extern "system" fn SetRotation(this: *mut core::ffi::c_void, dxgirotation: super::super::Graphics::Dxgi::Common::DXGI_MODE_ROTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurfacePresenterFlip2_Impl::SetRotation(this, core::mem::transmute_copy(&dxgirotation)).into() } @@ -2712,27 +2076,18 @@ impl ISurfacePresenterFlip2_Vtbl { iid == &::IID } } -pub trait ISurfacePresenterFlipBuffer_Impl: Sized { +pub trait ISurfacePresenterFlipBuffer_Impl: Sized + windows_core::IUnknownImpl { fn BeginDraw(&self, riid: *const windows_core::GUID, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn EndDraw(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ISurfacePresenterFlipBuffer {} impl ISurfacePresenterFlipBuffer_Vtbl { - pub const fn new() -> ISurfacePresenterFlipBuffer_Vtbl - where - Identity: ISurfacePresenterFlipBuffer_Impl, - { - unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISurfacePresenterFlipBuffer_Impl, - { + pub const fn new() -> ISurfacePresenterFlipBuffer_Vtbl { + unsafe extern "system" fn BeginDraw(this: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppbuffer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurfacePresenterFlipBuffer_Impl::BeginDraw(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppbuffer)).into() } - unsafe extern "system" fn EndDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ISurfacePresenterFlipBuffer_Impl, - { + unsafe extern "system" fn EndDraw(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISurfacePresenterFlipBuffer_Impl::EndDraw(this).into() } @@ -2743,7 +2098,7 @@ impl ISurfacePresenterFlipBuffer_Vtbl { } } #[cfg(feature = "Win32_System_Ole")] -pub trait ITargetContainer_Impl: Sized { +pub trait ITargetContainer_Impl: Sized + windows_core::IUnknownImpl { fn GetFrameUrl(&self) -> windows_core::Result; fn GetFramesContainer(&self) -> windows_core::Result; } @@ -2751,14 +2106,8 @@ pub trait ITargetContainer_Impl: Sized { impl windows_core::RuntimeName for ITargetContainer {} #[cfg(feature = "Win32_System_Ole")] impl ITargetContainer_Vtbl { - pub const fn new() -> ITargetContainer_Vtbl - where - Identity: ITargetContainer_Impl, - { - unsafe extern "system" fn GetFrameUrl(this: *mut core::ffi::c_void, ppszframesrc: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITargetContainer_Impl, - { + pub const fn new() -> ITargetContainer_Vtbl { + unsafe extern "system" fn GetFrameUrl(this: *mut core::ffi::c_void, ppszframesrc: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetContainer_Impl::GetFrameUrl(this) { Ok(ok__) => { @@ -2768,10 +2117,7 @@ impl ITargetContainer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFramesContainer(this: *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetContainer_Impl, - { + unsafe extern "system" fn GetFramesContainer(this: *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetContainer_Impl::GetFramesContainer(this) { Ok(ok__) => { @@ -2791,19 +2137,13 @@ impl ITargetContainer_Vtbl { iid == &::IID } } -pub trait ITargetEmbedding_Impl: Sized { +pub trait ITargetEmbedding_Impl: Sized + windows_core::IUnknownImpl { fn GetTargetFrame(&self) -> windows_core::Result; } impl windows_core::RuntimeName for ITargetEmbedding {} impl ITargetEmbedding_Vtbl { - pub const fn new() -> ITargetEmbedding_Vtbl - where - Identity: ITargetEmbedding_Impl, - { - unsafe extern "system" fn GetTargetFrame(this: *mut core::ffi::c_void, pptargetframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetEmbedding_Impl, - { + pub const fn new() -> ITargetEmbedding_Vtbl { + unsafe extern "system" fn GetTargetFrame(this: *mut core::ffi::c_void, pptargetframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetEmbedding_Impl::GetTargetFrame(this) { Ok(ok__) => { @@ -2820,7 +2160,7 @@ impl ITargetEmbedding_Vtbl { } } #[cfg(feature = "Win32_System_Ole")] -pub trait ITargetFrame_Impl: Sized { +pub trait ITargetFrame_Impl: Sized + windows_core::IUnknownImpl { fn SetFrameName(&self, pszframename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetFrameName(&self) -> windows_core::Result; fn GetParentFrame(&self) -> windows_core::Result; @@ -2840,21 +2180,12 @@ pub trait ITargetFrame_Impl: Sized { impl windows_core::RuntimeName for ITargetFrame {} #[cfg(feature = "Win32_System_Ole")] impl ITargetFrame_Vtbl { - pub const fn new() -> ITargetFrame_Vtbl - where - Identity: ITargetFrame_Impl, - { - unsafe extern "system" fn SetFrameName(this: *mut core::ffi::c_void, pszframename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + pub const fn new() -> ITargetFrame_Vtbl { + unsafe extern "system" fn SetFrameName(this: *mut core::ffi::c_void, pszframename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame_Impl::SetFrameName(this, core::mem::transmute(&pszframename)).into() } - unsafe extern "system" fn GetFrameName(this: *mut core::ffi::c_void, ppszframename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn GetFrameName(this: *mut core::ffi::c_void, ppszframename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame_Impl::GetFrameName(this) { Ok(ok__) => { @@ -2864,10 +2195,7 @@ impl ITargetFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentFrame(this: *mut core::ffi::c_void, ppunkparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn GetParentFrame(this: *mut core::ffi::c_void, ppunkparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame_Impl::GetParentFrame(this) { Ok(ok__) => { @@ -2877,10 +2205,7 @@ impl ITargetFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFrame(this: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, ppunkcontextframe: *mut core::ffi::c_void, dwflags: u32, ppunktargetframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn FindFrame(this: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, ppunkcontextframe: *mut core::ffi::c_void, dwflags: u32, ppunktargetframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame_Impl::FindFrame(this, core::mem::transmute(&psztargetname), windows_core::from_raw_borrowed(&ppunkcontextframe), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -2890,17 +2215,11 @@ impl ITargetFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrameSrc(this: *mut core::ffi::c_void, pszframesrc: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn SetFrameSrc(this: *mut core::ffi::c_void, pszframesrc: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame_Impl::SetFrameSrc(this, core::mem::transmute(&pszframesrc)).into() } - unsafe extern "system" fn GetFrameSrc(this: *mut core::ffi::c_void, ppszframesrc: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn GetFrameSrc(this: *mut core::ffi::c_void, ppszframesrc: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame_Impl::GetFrameSrc(this) { Ok(ok__) => { @@ -2910,10 +2229,7 @@ impl ITargetFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFramesContainer(this: *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn GetFramesContainer(this: *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame_Impl::GetFramesContainer(this) { Ok(ok__) => { @@ -2923,17 +2239,11 @@ impl ITargetFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrameOptions(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn SetFrameOptions(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame_Impl::SetFrameOptions(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetFrameOptions(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn GetFrameOptions(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame_Impl::GetFrameOptions(this) { Ok(ok__) => { @@ -2943,38 +2253,23 @@ impl ITargetFrame_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrameMargins(this: *mut core::ffi::c_void, dwwidth: u32, dwheight: u32) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn SetFrameMargins(this: *mut core::ffi::c_void, dwwidth: u32, dwheight: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame_Impl::SetFrameMargins(this, core::mem::transmute_copy(&dwwidth), core::mem::transmute_copy(&dwheight)).into() } - unsafe extern "system" fn GetFrameMargins(this: *mut core::ffi::c_void, pdwwidth: *mut u32, pdwheight: *mut u32) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn GetFrameMargins(this: *mut core::ffi::c_void, pdwwidth: *mut u32, pdwheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame_Impl::GetFrameMargins(this, core::mem::transmute_copy(&pdwwidth), core::mem::transmute_copy(&pdwheight)).into() } - unsafe extern "system" fn RemoteNavigate(this: *mut core::ffi::c_void, clength: u32, puldata: *const u32) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn RemoteNavigate(this: *mut core::ffi::c_void, clength: u32, puldata: *const u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame_Impl::RemoteNavigate(this, core::mem::transmute_copy(&clength), core::mem::transmute_copy(&puldata)).into() } - unsafe extern "system" fn OnChildFrameActivate(this: *mut core::ffi::c_void, punkchildframe: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn OnChildFrameActivate(this: *mut core::ffi::c_void, punkchildframe: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame_Impl::OnChildFrameActivate(this, windows_core::from_raw_borrowed(&punkchildframe)).into() } - unsafe extern "system" fn OnChildFrameDeactivate(this: *mut core::ffi::c_void, punkchildframe: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFrame_Impl, - { + unsafe extern "system" fn OnChildFrameDeactivate(this: *mut core::ffi::c_void, punkchildframe: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame_Impl::OnChildFrameDeactivate(this, windows_core::from_raw_borrowed(&punkchildframe)).into() } @@ -3001,7 +2296,7 @@ impl ITargetFrame_Vtbl { } } #[cfg(feature = "Win32_System_Ole")] -pub trait ITargetFrame2_Impl: Sized { +pub trait ITargetFrame2_Impl: Sized + windows_core::IUnknownImpl { fn SetFrameName(&self, pszframename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetFrameName(&self) -> windows_core::Result; fn GetParentFrame(&self) -> windows_core::Result; @@ -3019,21 +2314,12 @@ pub trait ITargetFrame2_Impl: Sized { impl windows_core::RuntimeName for ITargetFrame2 {} #[cfg(feature = "Win32_System_Ole")] impl ITargetFrame2_Vtbl { - pub const fn new() -> ITargetFrame2_Vtbl - where - Identity: ITargetFrame2_Impl, - { - unsafe extern "system" fn SetFrameName(this: *mut core::ffi::c_void, pszframename: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + pub const fn new() -> ITargetFrame2_Vtbl { + unsafe extern "system" fn SetFrameName(this: *mut core::ffi::c_void, pszframename: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame2_Impl::SetFrameName(this, core::mem::transmute(&pszframename)).into() } - unsafe extern "system" fn GetFrameName(this: *mut core::ffi::c_void, ppszframename: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn GetFrameName(this: *mut core::ffi::c_void, ppszframename: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame2_Impl::GetFrameName(this) { Ok(ok__) => { @@ -3043,10 +2329,7 @@ impl ITargetFrame2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetParentFrame(this: *mut core::ffi::c_void, ppunkparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn GetParentFrame(this: *mut core::ffi::c_void, ppunkparent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame2_Impl::GetParentFrame(this) { Ok(ok__) => { @@ -3056,17 +2339,11 @@ impl ITargetFrame2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrameSrc(this: *mut core::ffi::c_void, pszframesrc: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn SetFrameSrc(this: *mut core::ffi::c_void, pszframesrc: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame2_Impl::SetFrameSrc(this, core::mem::transmute(&pszframesrc)).into() } - unsafe extern "system" fn GetFrameSrc(this: *mut core::ffi::c_void, ppszframesrc: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn GetFrameSrc(this: *mut core::ffi::c_void, ppszframesrc: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame2_Impl::GetFrameSrc(this) { Ok(ok__) => { @@ -3076,10 +2353,7 @@ impl ITargetFrame2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetFramesContainer(this: *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn GetFramesContainer(this: *mut core::ffi::c_void, ppcontainer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame2_Impl::GetFramesContainer(this) { Ok(ok__) => { @@ -3089,17 +2363,11 @@ impl ITargetFrame2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrameOptions(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn SetFrameOptions(this: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame2_Impl::SetFrameOptions(this, core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn GetFrameOptions(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn GetFrameOptions(this: *mut core::ffi::c_void, pdwflags: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame2_Impl::GetFrameOptions(this) { Ok(ok__) => { @@ -3109,24 +2377,15 @@ impl ITargetFrame2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetFrameMargins(this: *mut core::ffi::c_void, dwwidth: u32, dwheight: u32) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn SetFrameMargins(this: *mut core::ffi::c_void, dwwidth: u32, dwheight: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame2_Impl::SetFrameMargins(this, core::mem::transmute_copy(&dwwidth), core::mem::transmute_copy(&dwheight)).into() } - unsafe extern "system" fn GetFrameMargins(this: *mut core::ffi::c_void, pdwwidth: *mut u32, pdwheight: *mut u32) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn GetFrameMargins(this: *mut core::ffi::c_void, pdwwidth: *mut u32, pdwheight: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFrame2_Impl::GetFrameMargins(this, core::mem::transmute_copy(&pdwwidth), core::mem::transmute_copy(&pdwheight)).into() } - unsafe extern "system" fn FindFrame(this: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, dwflags: u32, ppunktargetframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn FindFrame(this: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, dwflags: u32, ppunktargetframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame2_Impl::FindFrame(this, core::mem::transmute(&psztargetname), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -3136,10 +2395,7 @@ impl ITargetFrame2_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetTargetAlias(this: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, ppsztargetalias: *mut windows_core::PWSTR) -> windows_core::HRESULT - where - Identity: ITargetFrame2_Impl, - { + unsafe extern "system" fn GetTargetAlias(this: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, ppsztargetalias: *mut windows_core::PWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFrame2_Impl::GetTargetAlias(this, core::mem::transmute(&psztargetname)) { Ok(ok__) => { @@ -3170,7 +2426,7 @@ impl ITargetFrame2_Vtbl { } } #[cfg(feature = "Win32_System_Com")] -pub trait ITargetFramePriv_Impl: Sized { +pub trait ITargetFramePriv_Impl: Sized + windows_core::IUnknownImpl { fn FindFrameDownwards(&self, psztargetname: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result; fn FindFrameInContext(&self, psztargetname: &windows_core::PCWSTR, punkcontextframe: Option<&windows_core::IUnknown>, dwflags: u32) -> windows_core::Result; fn OnChildFrameActivate(&self, punkchildframe: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; @@ -3182,14 +2438,8 @@ pub trait ITargetFramePriv_Impl: Sized { impl windows_core::RuntimeName for ITargetFramePriv {} #[cfg(feature = "Win32_System_Com")] impl ITargetFramePriv_Vtbl { - pub const fn new() -> ITargetFramePriv_Vtbl - where - Identity: ITargetFramePriv_Impl, - { - unsafe extern "system" fn FindFrameDownwards(this: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, dwflags: u32, ppunktargetframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFramePriv_Impl, - { + pub const fn new() -> ITargetFramePriv_Vtbl { + unsafe extern "system" fn FindFrameDownwards(this: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, dwflags: u32, ppunktargetframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFramePriv_Impl::FindFrameDownwards(this, core::mem::transmute(&psztargetname), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -3199,10 +2449,7 @@ impl ITargetFramePriv_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FindFrameInContext(this: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, punkcontextframe: *mut core::ffi::c_void, dwflags: u32, ppunktargetframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFramePriv_Impl, - { + unsafe extern "system" fn FindFrameInContext(this: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, punkcontextframe: *mut core::ffi::c_void, dwflags: u32, ppunktargetframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFramePriv_Impl::FindFrameInContext(this, core::mem::transmute(&psztargetname), windows_core::from_raw_borrowed(&punkcontextframe), core::mem::transmute_copy(&dwflags)) { Ok(ok__) => { @@ -3212,31 +2459,19 @@ impl ITargetFramePriv_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn OnChildFrameActivate(this: *mut core::ffi::c_void, punkchildframe: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFramePriv_Impl, - { + unsafe extern "system" fn OnChildFrameActivate(this: *mut core::ffi::c_void, punkchildframe: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFramePriv_Impl::OnChildFrameActivate(this, windows_core::from_raw_borrowed(&punkchildframe)).into() } - unsafe extern "system" fn OnChildFrameDeactivate(this: *mut core::ffi::c_void, punkchildframe: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFramePriv_Impl, - { + unsafe extern "system" fn OnChildFrameDeactivate(this: *mut core::ffi::c_void, punkchildframe: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFramePriv_Impl::OnChildFrameDeactivate(this, windows_core::from_raw_borrowed(&punkchildframe)).into() } - unsafe extern "system" fn NavigateHack(this: *mut core::ffi::c_void, grfhlnf: u32, pbc: *mut core::ffi::c_void, pibsc: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, pszurl: windows_core::PCWSTR, pszlocation: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetFramePriv_Impl, - { + unsafe extern "system" fn NavigateHack(this: *mut core::ffi::c_void, grfhlnf: u32, pbc: *mut core::ffi::c_void, pibsc: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, pszurl: windows_core::PCWSTR, pszlocation: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFramePriv_Impl::NavigateHack(this, core::mem::transmute_copy(&grfhlnf), windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pibsc), core::mem::transmute(&psztargetname), core::mem::transmute(&pszurl), core::mem::transmute(&pszlocation)).into() } - unsafe extern "system" fn FindBrowserByIndex(this: *mut core::ffi::c_void, dwid: u32, ppunkbrowser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetFramePriv_Impl, - { + unsafe extern "system" fn FindBrowserByIndex(this: *mut core::ffi::c_void, dwid: u32, ppunkbrowser: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetFramePriv_Impl::FindBrowserByIndex(this, core::mem::transmute_copy(&dwid)) { Ok(ok__) => { @@ -3268,14 +2503,8 @@ pub trait ITargetFramePriv2_Impl: Sized + ITargetFramePriv_Impl { impl windows_core::RuntimeName for ITargetFramePriv2 {} #[cfg(feature = "Win32_System_Com")] impl ITargetFramePriv2_Vtbl { - pub const fn new() -> ITargetFramePriv2_Vtbl - where - Identity: ITargetFramePriv2_Impl, - { - unsafe extern "system" fn AggregatedNavigation2(this: *mut core::ffi::c_void, grfhlnf: u32, pbc: *mut core::ffi::c_void, pibsc: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, puri: *mut core::ffi::c_void, pszlocation: windows_core::PCWSTR) -> windows_core::HRESULT - where - Identity: ITargetFramePriv2_Impl, - { + pub const fn new() -> ITargetFramePriv2_Vtbl { + unsafe extern "system" fn AggregatedNavigation2(this: *mut core::ffi::c_void, grfhlnf: u32, pbc: *mut core::ffi::c_void, pibsc: *mut core::ffi::c_void, psztargetname: windows_core::PCWSTR, puri: *mut core::ffi::c_void, pszlocation: windows_core::PCWSTR) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetFramePriv2_Impl::AggregatedNavigation2(this, core::mem::transmute_copy(&grfhlnf), windows_core::from_raw_borrowed(&pbc), windows_core::from_raw_borrowed(&pibsc), core::mem::transmute(&psztargetname), windows_core::from_raw_borrowed(&puri), core::mem::transmute(&pszlocation)).into() } @@ -3285,27 +2514,18 @@ impl ITargetFramePriv2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITargetNotify_Impl: Sized { +pub trait ITargetNotify_Impl: Sized + windows_core::IUnknownImpl { fn OnCreate(&self, punkdestination: Option<&windows_core::IUnknown>, cbcookie: u32) -> windows_core::Result<()>; fn OnReuse(&self, punkdestination: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITargetNotify {} impl ITargetNotify_Vtbl { - pub const fn new() -> ITargetNotify_Vtbl - where - Identity: ITargetNotify_Impl, - { - unsafe extern "system" fn OnCreate(this: *mut core::ffi::c_void, punkdestination: *mut core::ffi::c_void, cbcookie: u32) -> windows_core::HRESULT - where - Identity: ITargetNotify_Impl, - { + pub const fn new() -> ITargetNotify_Vtbl { + unsafe extern "system" fn OnCreate(this: *mut core::ffi::c_void, punkdestination: *mut core::ffi::c_void, cbcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetNotify_Impl::OnCreate(this, windows_core::from_raw_borrowed(&punkdestination), core::mem::transmute_copy(&cbcookie)).into() } - unsafe extern "system" fn OnReuse(this: *mut core::ffi::c_void, punkdestination: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITargetNotify_Impl, - { + unsafe extern "system" fn OnReuse(this: *mut core::ffi::c_void, punkdestination: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetNotify_Impl::OnReuse(this, windows_core::from_raw_borrowed(&punkdestination)).into() } @@ -3320,14 +2540,8 @@ pub trait ITargetNotify2_Impl: Sized + ITargetNotify_Impl { } impl windows_core::RuntimeName for ITargetNotify2 {} impl ITargetNotify2_Vtbl { - pub const fn new() -> ITargetNotify2_Vtbl - where - Identity: ITargetNotify2_Impl, - { - unsafe extern "system" fn GetOptionString(this: *mut core::ffi::c_void, pbstroptions: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITargetNotify2_Impl, - { + pub const fn new() -> ITargetNotify2_Vtbl { + unsafe extern "system" fn GetOptionString(this: *mut core::ffi::c_void, pbstroptions: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetNotify2_Impl::GetOptionString(this, core::mem::transmute_copy(&pbstroptions)).into() } @@ -3337,7 +2551,7 @@ impl ITargetNotify2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITimer_Impl: Sized { +pub trait ITimer_Impl: Sized + windows_core::IUnknownImpl { fn Advise(&self, vtimemin: &windows_core::VARIANT, vtimemax: &windows_core::VARIANT, vtimeinterval: &windows_core::VARIANT, dwflags: u32, ptimersink: Option<&ITimerSink>) -> windows_core::Result; fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()>; fn Freeze(&self, ffreeze: super::super::Foundation::BOOL) -> windows_core::Result<()>; @@ -3345,14 +2559,8 @@ pub trait ITimer_Impl: Sized { } impl windows_core::RuntimeName for ITimer {} impl ITimer_Vtbl { - pub const fn new() -> ITimer_Vtbl - where - Identity: ITimer_Impl, - { - unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, vtimemin: core::mem::MaybeUninit, vtimemax: core::mem::MaybeUninit, vtimeinterval: core::mem::MaybeUninit, dwflags: u32, ptimersink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT - where - Identity: ITimer_Impl, - { + pub const fn new() -> ITimer_Vtbl { + unsafe extern "system" fn Advise(this: *mut core::ffi::c_void, vtimemin: core::mem::MaybeUninit, vtimemax: core::mem::MaybeUninit, vtimeinterval: core::mem::MaybeUninit, dwflags: u32, ptimersink: *mut core::ffi::c_void, pdwcookie: *mut u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITimer_Impl::Advise(this, core::mem::transmute(&vtimemin), core::mem::transmute(&vtimemax), core::mem::transmute(&vtimeinterval), core::mem::transmute_copy(&dwflags), windows_core::from_raw_borrowed(&ptimersink)) { Ok(ok__) => { @@ -3362,24 +2570,15 @@ impl ITimer_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT - where - Identity: ITimer_Impl, - { + unsafe extern "system" fn Unadvise(this: *mut core::ffi::c_void, dwcookie: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITimer_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } - unsafe extern "system" fn Freeze(this: *mut core::ffi::c_void, ffreeze: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITimer_Impl, - { + unsafe extern "system" fn Freeze(this: *mut core::ffi::c_void, ffreeze: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITimer_Impl::Freeze(this, core::mem::transmute_copy(&ffreeze)).into() } - unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, pvtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITimer_Impl, - { + unsafe extern "system" fn GetTime(this: *mut core::ffi::c_void, pvtime: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITimer_Impl::GetTime(this) { Ok(ok__) => { @@ -3406,14 +2605,8 @@ pub trait ITimerEx_Impl: Sized + ITimer_Impl { } impl windows_core::RuntimeName for ITimerEx {} impl ITimerEx_Vtbl { - pub const fn new() -> ITimerEx_Vtbl - where - Identity: ITimerEx_Impl, - { - unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, dwmode: u32) -> windows_core::HRESULT - where - Identity: ITimerEx_Impl, - { + pub const fn new() -> ITimerEx_Vtbl { + unsafe extern "system" fn SetMode(this: *mut core::ffi::c_void, dwmode: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITimerEx_Impl::SetMode(this, core::mem::transmute_copy(&dwmode)).into() } @@ -3423,21 +2616,15 @@ impl ITimerEx_Vtbl { iid == &::IID || iid == &::IID } } -pub trait ITimerService_Impl: Sized { +pub trait ITimerService_Impl: Sized + windows_core::IUnknownImpl { fn CreateTimer(&self, preferencetimer: Option<&ITimer>) -> windows_core::Result; fn GetNamedTimer(&self, rguidname: *const windows_core::GUID) -> windows_core::Result; fn SetNamedTimerReference(&self, rguidname: *const windows_core::GUID, preferencetimer: Option<&ITimer>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITimerService {} impl ITimerService_Vtbl { - pub const fn new() -> ITimerService_Vtbl - where - Identity: ITimerService_Impl, - { - unsafe extern "system" fn CreateTimer(this: *mut core::ffi::c_void, preferencetimer: *mut core::ffi::c_void, ppnewtimer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITimerService_Impl, - { + pub const fn new() -> ITimerService_Vtbl { + unsafe extern "system" fn CreateTimer(this: *mut core::ffi::c_void, preferencetimer: *mut core::ffi::c_void, ppnewtimer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITimerService_Impl::CreateTimer(this, windows_core::from_raw_borrowed(&preferencetimer)) { Ok(ok__) => { @@ -3447,10 +2634,7 @@ impl ITimerService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn GetNamedTimer(this: *mut core::ffi::c_void, rguidname: *const windows_core::GUID, pptimer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITimerService_Impl, - { + unsafe extern "system" fn GetNamedTimer(this: *mut core::ffi::c_void, rguidname: *const windows_core::GUID, pptimer: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITimerService_Impl::GetNamedTimer(this, core::mem::transmute_copy(&rguidname)) { Ok(ok__) => { @@ -3460,10 +2644,7 @@ impl ITimerService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetNamedTimerReference(this: *mut core::ffi::c_void, rguidname: *const windows_core::GUID, preferencetimer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: ITimerService_Impl, - { + unsafe extern "system" fn SetNamedTimerReference(this: *mut core::ffi::c_void, rguidname: *const windows_core::GUID, preferencetimer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITimerService_Impl::SetNamedTimerReference(this, core::mem::transmute_copy(&rguidname), windows_core::from_raw_borrowed(&preferencetimer)).into() } @@ -3478,19 +2659,13 @@ impl ITimerService_Vtbl { iid == &::IID } } -pub trait ITimerSink_Impl: Sized { +pub trait ITimerSink_Impl: Sized + windows_core::IUnknownImpl { fn OnTimer(&self, vtimeadvise: &windows_core::VARIANT) -> windows_core::Result<()>; } impl windows_core::RuntimeName for ITimerSink {} impl ITimerSink_Vtbl { - pub const fn new() -> ITimerSink_Vtbl - where - Identity: ITimerSink_Impl, - { - unsafe extern "system" fn OnTimer(this: *mut core::ffi::c_void, vtimeadvise: core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: ITimerSink_Impl, - { + pub const fn new() -> ITimerSink_Vtbl { + unsafe extern "system" fn OnTimer(this: *mut core::ffi::c_void, vtimeadvise: core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITimerSink_Impl::OnTimer(this, core::mem::transmute(&vtimeadvise)).into() } @@ -3500,19 +2675,13 @@ impl ITimerSink_Vtbl { iid == &::IID } } -pub trait ITridentTouchInput_Impl: Sized { +pub trait ITridentTouchInput_Impl: Sized + windows_core::IUnknownImpl { fn OnPointerMessage(&self, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; } impl windows_core::RuntimeName for ITridentTouchInput {} impl ITridentTouchInput_Vtbl { - pub const fn new() -> ITridentTouchInput_Vtbl - where - Identity: ITridentTouchInput_Impl, - { - unsafe extern "system" fn OnPointerMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfallowmanipulations: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: ITridentTouchInput_Impl, - { + pub const fn new() -> ITridentTouchInput_Vtbl { + unsafe extern "system" fn OnPointerMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfallowmanipulations: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITridentTouchInput_Impl::OnPointerMessage(this, core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { Ok(ok__) => { @@ -3534,17 +2703,14 @@ pub trait IUrlHistoryNotify_Impl: Sized + super::super::System::Ole::IOleCommand impl windows_core::RuntimeName for IUrlHistoryNotify {} #[cfg(feature = "Win32_System_Ole")] impl IUrlHistoryNotify_Vtbl { - pub const fn new() -> IUrlHistoryNotify_Vtbl - where - Identity: IUrlHistoryNotify_Impl, - { + pub const fn new() -> IUrlHistoryNotify_Vtbl { Self { base__: super::super::System::Ole::IOleCommandTarget_Vtbl::new::() } } pub fn matches(iid: &windows_core::GUID) -> bool { iid == &::IID || iid == &::IID } } -pub trait IUrlHistoryStg_Impl: Sized { +pub trait IUrlHistoryStg_Impl: Sized + windows_core::IUnknownImpl { fn AddUrl(&self, pocsurl: &windows_core::PCWSTR, pocstitle: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; fn DeleteUrl(&self, pocsurl: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; fn QueryUrl(&self, pocsurl: &windows_core::PCWSTR, dwflags: u32, lpstaturl: *mut STATURL) -> windows_core::Result<()>; @@ -3553,42 +2719,24 @@ pub trait IUrlHistoryStg_Impl: Sized { } impl windows_core::RuntimeName for IUrlHistoryStg {} impl IUrlHistoryStg_Vtbl { - pub const fn new() -> IUrlHistoryStg_Vtbl - where - Identity: IUrlHistoryStg_Impl, - { - unsafe extern "system" fn AddUrl(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, pocstitle: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IUrlHistoryStg_Impl, - { + pub const fn new() -> IUrlHistoryStg_Vtbl { + unsafe extern "system" fn AddUrl(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, pocstitle: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlHistoryStg_Impl::AddUrl(this, core::mem::transmute(&pocsurl), core::mem::transmute(&pocstitle), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn DeleteUrl(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT - where - Identity: IUrlHistoryStg_Impl, - { + unsafe extern "system" fn DeleteUrl(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, dwflags: u32) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlHistoryStg_Impl::DeleteUrl(this, core::mem::transmute(&pocsurl), core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn QueryUrl(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, dwflags: u32, lpstaturl: *mut STATURL) -> windows_core::HRESULT - where - Identity: IUrlHistoryStg_Impl, - { + unsafe extern "system" fn QueryUrl(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, dwflags: u32, lpstaturl: *mut STATURL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlHistoryStg_Impl::QueryUrl(this, core::mem::transmute(&pocsurl), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&lpstaturl)).into() } - unsafe extern "system" fn BindToObject(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUrlHistoryStg_Impl, - { + unsafe extern "system" fn BindToObject(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, riid: *const windows_core::GUID, ppvout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlHistoryStg_Impl::BindToObject(this, core::mem::transmute(&pocsurl), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvout)).into() } - unsafe extern "system" fn EnumUrls(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUrlHistoryStg_Impl, - { + unsafe extern "system" fn EnumUrls(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlHistoryStg_Impl::EnumUrls(this) { Ok(ok__) => { @@ -3620,21 +2768,12 @@ pub trait IUrlHistoryStg2_Impl: Sized + IUrlHistoryStg_Impl { impl windows_core::RuntimeName for IUrlHistoryStg2 {} #[cfg(feature = "Win32_System_Ole")] impl IUrlHistoryStg2_Vtbl { - pub const fn new() -> IUrlHistoryStg2_Vtbl - where - Identity: IUrlHistoryStg2_Impl, - { - unsafe extern "system" fn AddUrlAndNotify(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, pocstitle: windows_core::PCWSTR, dwflags: u32, fwritehistory: super::super::Foundation::BOOL, poctnotify: *mut core::ffi::c_void, punkisfolder: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUrlHistoryStg2_Impl, - { + pub const fn new() -> IUrlHistoryStg2_Vtbl { + unsafe extern "system" fn AddUrlAndNotify(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, pocstitle: windows_core::PCWSTR, dwflags: u32, fwritehistory: super::super::Foundation::BOOL, poctnotify: *mut core::ffi::c_void, punkisfolder: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlHistoryStg2_Impl::AddUrlAndNotify(this, core::mem::transmute(&pocsurl), core::mem::transmute(&pocstitle), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&fwritehistory), windows_core::from_raw_borrowed(&poctnotify), windows_core::from_raw_borrowed(&punkisfolder)).into() } - unsafe extern "system" fn ClearHistory(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IUrlHistoryStg2_Impl, - { + unsafe extern "system" fn ClearHistory(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlHistoryStg2_Impl::ClearHistory(this).into() } @@ -3648,35 +2787,23 @@ impl IUrlHistoryStg2_Vtbl { iid == &::IID || iid == &::IID } } -pub trait IViewObjectPresentFlip_Impl: Sized { +pub trait IViewObjectPresentFlip_Impl: Sized + windows_core::IUnknownImpl { fn NotifyRender(&self, frecreatepresenter: super::super::Foundation::BOOL) -> windows_core::Result<()>; fn RenderObjectToBitmap(&self, pbitmap: Option<&windows_core::IUnknown>) -> windows_core::Result<()>; fn RenderObjectToSharedBuffer(&self, pbuffer: Option<&ISurfacePresenterFlipBuffer>) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IViewObjectPresentFlip {} impl IViewObjectPresentFlip_Vtbl { - pub const fn new() -> IViewObjectPresentFlip_Vtbl - where - Identity: IViewObjectPresentFlip_Impl, - { - unsafe extern "system" fn NotifyRender(this: *mut core::ffi::c_void, frecreatepresenter: super::super::Foundation::BOOL) -> windows_core::HRESULT - where - Identity: IViewObjectPresentFlip_Impl, - { + pub const fn new() -> IViewObjectPresentFlip_Vtbl { + unsafe extern "system" fn NotifyRender(this: *mut core::ffi::c_void, frecreatepresenter: super::super::Foundation::BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObjectPresentFlip_Impl::NotifyRender(this, core::mem::transmute_copy(&frecreatepresenter)).into() } - unsafe extern "system" fn RenderObjectToBitmap(this: *mut core::ffi::c_void, pbitmap: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewObjectPresentFlip_Impl, - { + unsafe extern "system" fn RenderObjectToBitmap(this: *mut core::ffi::c_void, pbitmap: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObjectPresentFlip_Impl::RenderObjectToBitmap(this, windows_core::from_raw_borrowed(&pbitmap)).into() } - unsafe extern "system" fn RenderObjectToSharedBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewObjectPresentFlip_Impl, - { + unsafe extern "system" fn RenderObjectToSharedBuffer(this: *mut core::ffi::c_void, pbuffer: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObjectPresentFlip_Impl::RenderObjectToSharedBuffer(this, windows_core::from_raw_borrowed(&pbuffer)).into() } @@ -3691,19 +2818,13 @@ impl IViewObjectPresentFlip_Vtbl { iid == &::IID } } -pub trait IViewObjectPresentFlip2_Impl: Sized { +pub trait IViewObjectPresentFlip2_Impl: Sized + windows_core::IUnknownImpl { fn NotifyLeavingView(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IViewObjectPresentFlip2 {} impl IViewObjectPresentFlip2_Vtbl { - pub const fn new() -> IViewObjectPresentFlip2_Vtbl - where - Identity: IViewObjectPresentFlip2_Impl, - { - unsafe extern "system" fn NotifyLeavingView(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IViewObjectPresentFlip2_Impl, - { + pub const fn new() -> IViewObjectPresentFlip2_Vtbl { + unsafe extern "system" fn NotifyLeavingView(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObjectPresentFlip2_Impl::NotifyLeavingView(this).into() } @@ -3714,21 +2835,15 @@ impl IViewObjectPresentFlip2_Vtbl { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] -pub trait IViewObjectPresentFlipSite2_Impl: Sized { +pub trait IViewObjectPresentFlipSite2_Impl: Sized + windows_core::IUnknownImpl { fn GetRotationForCurrentOutput(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl windows_core::RuntimeName for IViewObjectPresentFlipSite2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IViewObjectPresentFlipSite2_Vtbl { - pub const fn new() -> IViewObjectPresentFlipSite2_Vtbl - where - Identity: IViewObjectPresentFlipSite2_Impl, - { - unsafe extern "system" fn GetRotationForCurrentOutput(this: *mut core::ffi::c_void, pdxgirotation: *mut super::super::Graphics::Dxgi::Common::DXGI_MODE_ROTATION) -> windows_core::HRESULT - where - Identity: IViewObjectPresentFlipSite2_Impl, - { + pub const fn new() -> IViewObjectPresentFlipSite2_Vtbl { + unsafe extern "system" fn GetRotationForCurrentOutput(this: *mut core::ffi::c_void, pdxgirotation: *mut super::super::Graphics::Dxgi::Common::DXGI_MODE_ROTATION) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewObjectPresentFlipSite2_Impl::GetRotationForCurrentOutput(this) { Ok(ok__) => { @@ -3744,7 +2859,7 @@ impl IViewObjectPresentFlipSite2_Vtbl { iid == &::IID } } -pub trait IWebBrowserEventsService_Impl: Sized { +pub trait IWebBrowserEventsService_Impl: Sized + windows_core::IUnknownImpl { fn FireBeforeNavigate2Event(&self) -> windows_core::Result; fn FireNavigateComplete2Event(&self) -> windows_core::Result<()>; fn FireDownloadBeginEvent(&self) -> windows_core::Result<()>; @@ -3753,14 +2868,8 @@ pub trait IWebBrowserEventsService_Impl: Sized { } impl windows_core::RuntimeName for IWebBrowserEventsService {} impl IWebBrowserEventsService_Vtbl { - pub const fn new() -> IWebBrowserEventsService_Vtbl - where - Identity: IWebBrowserEventsService_Impl, - { - unsafe extern "system" fn FireBeforeNavigate2Event(this: *mut core::ffi::c_void, pfcancel: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT - where - Identity: IWebBrowserEventsService_Impl, - { + pub const fn new() -> IWebBrowserEventsService_Vtbl { + unsafe extern "system" fn FireBeforeNavigate2Event(this: *mut core::ffi::c_void, pfcancel: *mut super::super::Foundation::VARIANT_BOOL) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserEventsService_Impl::FireBeforeNavigate2Event(this) { Ok(ok__) => { @@ -3770,31 +2879,19 @@ impl IWebBrowserEventsService_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn FireNavigateComplete2Event(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowserEventsService_Impl, - { + unsafe extern "system" fn FireNavigateComplete2Event(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserEventsService_Impl::FireNavigateComplete2Event(this).into() } - unsafe extern "system" fn FireDownloadBeginEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowserEventsService_Impl, - { + unsafe extern "system" fn FireDownloadBeginEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserEventsService_Impl::FireDownloadBeginEvent(this).into() } - unsafe extern "system" fn FireDownloadCompleteEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowserEventsService_Impl, - { + unsafe extern "system" fn FireDownloadCompleteEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserEventsService_Impl::FireDownloadCompleteEvent(this).into() } - unsafe extern "system" fn FireDocumentCompleteEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: IWebBrowserEventsService_Impl, - { + unsafe extern "system" fn FireDocumentCompleteEvent(this: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWebBrowserEventsService_Impl::FireDocumentCompleteEvent(this).into() } @@ -3811,19 +2908,13 @@ impl IWebBrowserEventsService_Vtbl { iid == &::IID } } -pub trait IWebBrowserEventsUrlService_Impl: Sized { +pub trait IWebBrowserEventsUrlService_Impl: Sized + windows_core::IUnknownImpl { fn GetUrlForEvents(&self) -> windows_core::Result; } impl windows_core::RuntimeName for IWebBrowserEventsUrlService {} impl IWebBrowserEventsUrlService_Vtbl { - pub const fn new() -> IWebBrowserEventsUrlService_Vtbl - where - Identity: IWebBrowserEventsUrlService_Impl, - { - unsafe extern "system" fn GetUrlForEvents(this: *mut core::ffi::c_void, purl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: IWebBrowserEventsUrlService_Impl, - { + pub const fn new() -> IWebBrowserEventsUrlService_Vtbl { + unsafe extern "system" fn GetUrlForEvents(this: *mut core::ffi::c_void, purl: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWebBrowserEventsUrlService_Impl::GetUrlForEvents(this) { Ok(ok__) => { @@ -3849,14 +2940,8 @@ pub trait Iwfolders_Impl: Sized + super::super::System::Com::IDispatch_Impl { impl windows_core::RuntimeName for Iwfolders {} #[cfg(feature = "Win32_System_Com")] impl Iwfolders_Vtbl { - pub const fn new() -> Iwfolders_Vtbl - where - Identity: Iwfolders_Impl, - { - unsafe extern "system" fn navigate(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, pbstrretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Iwfolders_Impl, - { + pub const fn new() -> Iwfolders_Vtbl { + unsafe extern "system" fn navigate(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, pbstrretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Iwfolders_Impl::navigate(this, core::mem::transmute(&bstrurl)) { Ok(ok__) => { @@ -3866,10 +2951,7 @@ impl Iwfolders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn navigateFrame(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, bstrtargetframe: core::mem::MaybeUninit, pbstrretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT - where - Identity: Iwfolders_Impl, - { + unsafe extern "system" fn navigateFrame(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, bstrtargetframe: core::mem::MaybeUninit, pbstrretval: *mut core::mem::MaybeUninit) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Iwfolders_Impl::navigateFrame(this, core::mem::transmute(&bstrurl), core::mem::transmute(&bstrtargetframe)) { Ok(ok__) => { @@ -3879,10 +2961,7 @@ impl Iwfolders_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn navigateNoSite(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, bstrtargetframe: core::mem::MaybeUninit, dwhwnd: u32, pwb: *mut core::ffi::c_void) -> windows_core::HRESULT - where - Identity: Iwfolders_Impl, - { + unsafe extern "system" fn navigateNoSite(this: *mut core::ffi::c_void, bstrurl: core::mem::MaybeUninit, bstrtargetframe: core::mem::MaybeUninit, dwhwnd: u32, pwb: *mut core::ffi::c_void) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Iwfolders_Impl::navigateNoSite(this, core::mem::transmute(&bstrurl), core::mem::transmute(&bstrtargetframe), core::mem::transmute_copy(&dwhwnd), windows_core::from_raw_borrowed(&pwb)).into() } diff --git a/crates/samples/components/json_validator_winrt/src/bindings.rs b/crates/samples/components/json_validator_winrt/src/bindings.rs index a73bc284ba..a79db2d90b 100644 --- a/crates/samples/components/json_validator_winrt/src/bindings.rs +++ b/crates/samples/components/json_validator_winrt/src/bindings.rs @@ -103,7 +103,7 @@ impl windows_core::RuntimeName for JsonValidator { } unsafe impl Send for JsonValidator {} unsafe impl Sync for JsonValidator {} -pub trait IJsonValidator_Impl: Sized { +pub trait IJsonValidator_Impl: Sized + windows_core::IUnknownImpl { fn Validate( &self, value: &windows_core::HSTRING, @@ -113,22 +113,12 @@ impl windows_core::RuntimeName for IJsonValidator { const NAME: &'static str = "Sample.IJsonValidator"; } impl IJsonValidator_Vtbl { - pub const fn new( - ) -> IJsonValidator_Vtbl - where - Identity: IJsonValidator_Impl, - { - unsafe extern "system" fn Validate< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + pub const fn new() -> IJsonValidator_Vtbl { + unsafe extern "system" fn Validate( this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, result__: *mut core::mem::MaybeUninit, - ) -> windows_core::HRESULT - where - Identity: IJsonValidator_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsonValidator_Impl::Validate(this, core::mem::transmute(&value)) { Ok(ok__) => { @@ -148,7 +138,7 @@ impl IJsonValidator_Vtbl { iid == &::IID } } -pub trait IJsonValidatorFactory_Impl: Sized { +pub trait IJsonValidatorFactory_Impl: Sized + windows_core::IUnknownImpl { fn CreateInstance(&self, schema: &windows_core::HSTRING) -> windows_core::Result; } @@ -156,22 +146,16 @@ impl windows_core::RuntimeName for IJsonValidatorFactory { const NAME: &'static str = "Sample.IJsonValidatorFactory"; } impl IJsonValidatorFactory_Vtbl { - pub const fn new( - ) -> IJsonValidatorFactory_Vtbl - where - Identity: IJsonValidatorFactory_Impl, - { + pub const fn new( + ) -> IJsonValidatorFactory_Vtbl { unsafe extern "system" fn CreateInstance< - Identity: windows_core::IUnknownImpl, + Identity: IJsonValidatorFactory_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, schema: core::mem::MaybeUninit, result__: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IJsonValidatorFactory_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsonValidatorFactory_Impl::CreateInstance(this, core::mem::transmute(&schema)) { Ok(ok__) => { diff --git a/crates/tests/component/src/bindings.rs b/crates/tests/component/src/bindings.rs index e264238ad4..a3729f3de0 100644 --- a/crates/tests/component/src/bindings.rs +++ b/crates/tests/component/src/bindings.rs @@ -42,26 +42,17 @@ pub mod Nested { pub base__: windows_core::IInspectable_Vtbl, pub Method: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } - pub trait IThing_Impl: Sized { + pub trait IThing_Impl: Sized + windows_core::IUnknownImpl { fn Method(&self) -> windows_core::Result<()>; } impl windows_core::RuntimeName for IThing { const NAME: &'static str = "test_component.Nested.IThing"; } impl IThing_Vtbl { - pub const fn new() -> IThing_Vtbl - where - Identity: IThing_Impl, - { - unsafe extern "system" fn Method< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + pub const fn new() -> IThing_Vtbl { + unsafe extern "system" fn Method( this: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IThing_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IThing_Impl::Method(this).into() @@ -405,7 +396,7 @@ pub struct Callback_Vtbl { pub Invoke: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut i32) -> windows_core::HRESULT, } -pub trait IClass_Impl: Sized { +pub trait IClass_Impl: Sized + windows_core::IUnknownImpl { fn Property(&self) -> windows_core::Result; fn SetProperty(&self, value: i32) -> windows_core::Result<()>; fn Flags(&self) -> windows_core::Result; @@ -433,20 +424,11 @@ impl windows_core::RuntimeName for IClass { const NAME: &'static str = "test_component.IClass"; } impl IClass_Vtbl { - pub const fn new() -> IClass_Vtbl - where - Identity: IClass_Impl, - { - unsafe extern "system" fn Property< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + pub const fn new() -> IClass_Vtbl { + unsafe extern "system" fn Property( this: *mut core::ffi::c_void, result__: *mut i32, - ) -> windows_core::HRESULT - where - Identity: IClass_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IClass_Impl::Property(this) { Ok(ok__) => { @@ -456,26 +438,17 @@ impl IClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn SetProperty( this: *mut core::ffi::c_void, value: i32, - ) -> windows_core::HRESULT - where - Identity: IClass_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClass_Impl::SetProperty(this, value).into() } - unsafe extern "system" fn Flags( + unsafe extern "system" fn Flags( this: *mut core::ffi::c_void, result__: *mut Flags, - ) -> windows_core::HRESULT - where - Identity: IClass_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IClass_Impl::Flags(this) { Ok(ok__) => { @@ -485,10 +458,7 @@ impl IClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Int32Array< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn Int32Array( this: *mut core::ffi::c_void, a_array_size: u32, a: *const i32, @@ -498,10 +468,7 @@ impl IClass_Vtbl { c: *mut *mut i32, result_size__: *mut u32, result__: *mut *mut i32, - ) -> windows_core::HRESULT - where - Identity: IClass_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IClass_Impl::Int32Array( this, @@ -525,10 +492,7 @@ impl IClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn StringArray< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn StringArray( this: *mut core::ffi::c_void, a_array_size: u32, a: *const core::mem::MaybeUninit, @@ -538,10 +502,7 @@ impl IClass_Vtbl { c: *mut *mut core::mem::MaybeUninit, result_size__: *mut u32, result__: *mut *mut core::mem::MaybeUninit, - ) -> windows_core::HRESULT - where - Identity: IClass_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IClass_Impl::StringArray( this, @@ -565,16 +526,13 @@ impl IClass_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn Input( + unsafe extern "system" fn Input( this: *mut core::ffi::c_void, a: *mut core::ffi::c_void, b: *mut core::ffi::c_void, c: *mut core::ffi::c_void, d: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IClass_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClass_Impl::Input( this, diff --git a/crates/tests/noexcept/src/bindings.rs b/crates/tests/noexcept/src/bindings.rs index 02266806b8..c97a629a71 100644 --- a/crates/tests/noexcept/src/bindings.rs +++ b/crates/tests/noexcept/src/bindings.rs @@ -283,7 +283,7 @@ pub struct ITest_Vtbl { *mut core::ffi::c_void, ) -> windows_core::HRESULT, } -pub trait ITest_Impl: Sized { +pub trait ITest_Impl: Sized + windows_core::IUnknownImpl { fn MethodString(&self, test: &windows_core::HSTRING) -> windows_core::Result<()>; fn MethodInt32(&self, test: i32) -> windows_core::Result<()>; fn MethodTest(&self, test: Option<&ITest>) -> windows_core::Result<()>; @@ -307,59 +307,32 @@ impl windows_core::RuntimeName for ITest { const NAME: &'static str = "Test.ITest"; } impl ITest_Vtbl { - pub const fn new() -> ITest_Vtbl - where - Identity: ITest_Impl, - { - unsafe extern "system" fn MethodString< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + pub const fn new() -> ITest_Vtbl { + unsafe extern "system" fn MethodString( this: *mut core::ffi::c_void, test: core::mem::MaybeUninit, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::MethodString(this, core::mem::transmute(&test)).into() } - unsafe extern "system" fn MethodInt32< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn MethodInt32( this: *mut core::ffi::c_void, test: i32, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::MethodInt32(this, test).into() } - unsafe extern "system" fn MethodTest< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn MethodTest( this: *mut core::ffi::c_void, test: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::MethodTest(this, windows_core::from_raw_borrowed(&test)).into() } - unsafe extern "system" fn String< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn String( this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITest_Impl::String(this) { Ok(ok__) => { @@ -370,26 +343,17 @@ impl ITest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetString< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn SetString( this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::SetString(this, core::mem::transmute(&value)).into() } - unsafe extern "system" fn Int32( + unsafe extern "system" fn Int32( this: *mut core::ffi::c_void, result__: *mut i32, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITest_Impl::Int32(this) { Ok(ok__) => { @@ -399,26 +363,17 @@ impl ITest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetInt32< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn SetInt32( this: *mut core::ffi::c_void, value: i32, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::SetInt32(this, value).into() } - unsafe extern "system" fn Test( + unsafe extern "system" fn Test( this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITest_Impl::Test(this) { Ok(ok__) => { @@ -429,143 +384,86 @@ impl ITest_Vtbl { Err(err) => err.into(), } } - unsafe extern "system" fn SetTest< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn SetTest( this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::SetTest(this, windows_core::from_raw_borrowed(&value)).into() } - unsafe extern "system" fn MethodStringN< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn MethodStringN( this: *mut core::ffi::c_void, test: core::mem::MaybeUninit, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::MethodStringN(this, core::mem::transmute(&test)); windows_core::HRESULT(0) } - unsafe extern "system" fn MethodInt32N< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn MethodInt32N( this: *mut core::ffi::c_void, test: i32, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::MethodInt32N(this, test); windows_core::HRESULT(0) } - unsafe extern "system" fn MethodTestN< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn MethodTestN( this: *mut core::ffi::c_void, test: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::MethodTestN(this, windows_core::from_raw_borrowed(&test)); windows_core::HRESULT(0) } - unsafe extern "system" fn StringN< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn StringN( this: *mut core::ffi::c_void, result__: *mut core::mem::MaybeUninit, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); let ok__ = ITest_Impl::StringN(this); result__.write(core::mem::transmute_copy(&ok__)); core::mem::forget(ok__); windows_core::HRESULT(0) } - unsafe extern "system" fn SetStringN< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn SetStringN( this: *mut core::ffi::c_void, value: core::mem::MaybeUninit, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::SetStringN(this, core::mem::transmute(&value)); windows_core::HRESULT(0) } - unsafe extern "system" fn Int32N< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn Int32N( this: *mut core::ffi::c_void, result__: *mut i32, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); let ok__ = ITest_Impl::Int32N(this); result__.write(core::mem::transmute_copy(&ok__)); windows_core::HRESULT(0) } - unsafe extern "system" fn SetInt32N< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn SetInt32N( this: *mut core::ffi::c_void, value: i32, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::SetInt32N(this, value); windows_core::HRESULT(0) } - unsafe extern "system" fn TestN( + unsafe extern "system" fn TestN( this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); let ok__ = ITest_Impl::TestN(this); result__.write(core::mem::transmute_copy(&ok__)); core::mem::forget(ok__); windows_core::HRESULT(0) } - unsafe extern "system" fn SetTestN< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn SetTestN( this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: ITest_Impl, - { + ) -> windows_core::HRESULT { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITest_Impl::SetTestN(this, windows_core::from_raw_borrowed(&value)); windows_core::HRESULT(0)